Lines Matching refs:prop

19 	const __be32 *prop;  in read_prop_string()  local
21 prop = of_get_property(np, prop_name, NULL); in read_prop_string()
22 if (cxl_verbose && prop) in read_prop_string()
23 pr_info("%s: %s\n", prop_name, (char *) prop); in read_prop_string()
24 return prop; in read_prop_string()
30 const __be32 *prop; in read_prop_dword() local
32 prop = of_get_property(np, prop_name, NULL); in read_prop_dword()
33 if (prop) in read_prop_dword()
34 *val = be32_to_cpu(prop[0]); in read_prop_dword()
35 if (cxl_verbose && prop) in read_prop_dword()
37 return prop; in read_prop_dword()
43 const __be64 *prop; in read_prop64_dword() local
45 prop = of_get_property(np, prop_name, NULL); in read_prop64_dword()
46 if (prop) in read_prop64_dword()
47 *val = be64_to_cpu(prop[0]); in read_prop64_dword()
48 if (cxl_verbose && prop) in read_prop64_dword()
50 return prop; in read_prop64_dword()
56 const __be32 *prop; in read_handle() local
60 prop = of_get_address(np, 0, &size, NULL); in read_handle()
65 *handle = of_read_number(prop, of_n_addr_cells(np)); in read_handle()
74 const __be32 *prop; in read_phys_addr() local
79 prop = of_get_property(np, prop_name, &len); in read_phys_addr()
80 if (prop) { in read_phys_addr()
82 for (i = 0; i < (len / 4); i += entry_size, prop += entry_size) { in read_phys_addr()
83 type = be32_to_cpu(prop[0]); in read_phys_addr()
84 addr = of_read_number(prop, naddr); in read_phys_addr()
85 size = of_read_number(&prop[naddr], nsize); in read_phys_addr()
144 const __be32 *prop; in cxl_of_read_afu_properties() local
153 prop = of_get_property(np, "compatible", &len); in cxl_of_read_afu_properties()
156 p = (char *) prop + i; in cxl_of_read_afu_properties()
193 prop = read_prop_dword(np, "ibm,min-ints-per-process", &afu->pp_irqs); in cxl_of_read_afu_properties()
194 if (prop) { in cxl_of_read_afu_properties()
253 prop = read_prop_dword(np, "ibm,process-mmio", &val); in cxl_of_read_afu_properties()
254 if (prop && val == 1) in cxl_of_read_afu_properties()
265 prop = read_prop_dword(np, "ibm,function-error-interrupt", &val); in cxl_of_read_afu_properties()
266 if (prop) in cxl_of_read_afu_properties()
348 const __be32 *prop; in cxl_of_read_adapter_properties() local
361 prop = of_get_property(np, "compatible", &len); in cxl_of_read_adapter_properties()
364 p = (char *) prop + i; in cxl_of_read_adapter_properties()
371 prop = of_get_property(np, "reg", NULL); in cxl_of_read_adapter_properties()
372 if (prop) { in cxl_of_read_adapter_properties()
374 of_read_number(prop, naddr), in cxl_of_read_adapter_properties()
375 be32_to_cpu(prop[naddr])); in cxl_of_read_adapter_properties()
389 prop = read_prop_dword(np, "ibm,caia-version", &val); in cxl_of_read_adapter_properties()
390 if (prop) { in cxl_of_read_adapter_properties()
395 prop = read_prop_dword(np, "ibm,psl-revision", &val); in cxl_of_read_adapter_properties()
396 if (prop) in cxl_of_read_adapter_properties()
399 prop = read_prop_string(np, "status"); in cxl_of_read_adapter_properties()
400 if (prop) { in cxl_of_read_adapter_properties()
401 adapter->guest->status = kasprintf(GFP_KERNEL, "%s", (char *) prop); in cxl_of_read_adapter_properties()
406 prop = read_prop_dword(np, "vendor-id", &val); in cxl_of_read_adapter_properties()
407 if (prop) in cxl_of_read_adapter_properties()
410 prop = read_prop_dword(np, "device-id", &val); in cxl_of_read_adapter_properties()
411 if (prop) in cxl_of_read_adapter_properties()
420 prop = read_prop_dword(np, "subsystem-vendor-id", &val); in cxl_of_read_adapter_properties()
421 if (prop) in cxl_of_read_adapter_properties()
424 prop = read_prop_dword(np, "subsystem-id", &val); in cxl_of_read_adapter_properties()
425 if (prop) in cxl_of_read_adapter_properties()