Lines Matching refs:np
248 static int cpm_get_uint_property(struct device_node *np, in cpm_get_uint_property() argument
252 const unsigned int *prop = of_get_property(np, name, &len); in cpm_get_uint_property()
262 struct device_node *np; in cpm_init() local
271 np = of_find_compatible_node(NULL, NULL, "ibm,cpm"); in cpm_init()
272 if (!np) { in cpm_init()
277 dcr_base = dcr_resource_start(np, 0); in cpm_init()
278 dcr_len = dcr_resource_len(np, 0); in cpm_init()
282 np->full_name); in cpm_init()
287 cpm.dcr_host = dcr_map(np, dcr_base, dcr_len); in cpm_init()
291 np->full_name); in cpm_init()
302 if (cpm_get_uint_property(np, "er-offset") == 0) { in cpm_init()
314 cpm.unused = cpm_get_uint_property(np, "unused-units"); in cpm_init()
315 cpm.idle_doze = cpm_get_uint_property(np, "idle-doze"); in cpm_init()
316 cpm.standby = cpm_get_uint_property(np, "standby"); in cpm_init()
317 cpm.suspend = cpm_get_uint_property(np, "suspend"); in cpm_init()
334 of_node_put(np); in cpm_init()