Lines Matching refs:buf

23 				 char *buf)  in caia_version_show()  argument
27 return scnprintf(buf, PAGE_SIZE, "%i.%i\n", adapter->caia_major, in caia_version_show()
33 char *buf) in psl_revision_show() argument
37 return scnprintf(buf, PAGE_SIZE, "%i\n", adapter->psl_rev); in psl_revision_show()
42 char *buf) in base_image_show() argument
46 return scnprintf(buf, PAGE_SIZE, "%i\n", adapter->base_image); in base_image_show()
51 char *buf) in image_loaded_show() argument
56 return scnprintf(buf, PAGE_SIZE, "user\n"); in image_loaded_show()
57 return scnprintf(buf, PAGE_SIZE, "factory\n"); in image_loaded_show()
62 const char *buf, size_t count) in reset_adapter_store() argument
68 rc = sscanf(buf, "%i", &val); in reset_adapter_store()
79 char *buf) in load_image_on_perst_show() argument
84 return scnprintf(buf, PAGE_SIZE, "none\n"); in load_image_on_perst_show()
87 return scnprintf(buf, PAGE_SIZE, "user\n"); in load_image_on_perst_show()
88 return scnprintf(buf, PAGE_SIZE, "factory\n"); in load_image_on_perst_show()
93 const char *buf, size_t count) in load_image_on_perst_store() argument
98 if (!strncmp(buf, "none", 4)) in load_image_on_perst_store()
100 else if (!strncmp(buf, "user", 4)) { in load_image_on_perst_store()
103 } else if (!strncmp(buf, "factory", 7)) { in load_image_on_perst_store()
129 char *buf) in mmio_size_show_master() argument
133 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->adapter->ps_size); in mmio_size_show_master()
138 char *buf) in pp_mmio_off_show() argument
142 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->pp_offset); in pp_mmio_off_show()
147 char *buf) in pp_mmio_len_show() argument
151 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->pp_size); in pp_mmio_len_show()
165 char *buf) in mmio_size_show() argument
170 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->pp_size); in mmio_size_show()
171 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->adapter->ps_size); in mmio_size_show()
176 const char *buf, size_t count) in reset_store_afu() argument
199 char *buf) in irqs_min_show() argument
203 return scnprintf(buf, PAGE_SIZE, "%i\n", afu->pp_irqs); in irqs_min_show()
208 char *buf) in irqs_max_show() argument
212 return scnprintf(buf, PAGE_SIZE, "%i\n", afu->irqs_max); in irqs_max_show()
217 const char *buf, size_t count) in irqs_max_store() argument
223 ret = sscanf(buf, "%i", &irqs_max); in irqs_max_store()
238 struct device_attribute *attr, char *buf) in modes_supported_show() argument
241 char *p = buf, *end = buf + PAGE_SIZE; in modes_supported_show()
247 return (p - buf); in modes_supported_show()
252 char *buf) in prefault_mode_show() argument
258 return scnprintf(buf, PAGE_SIZE, "work_element_descriptor\n"); in prefault_mode_show()
260 return scnprintf(buf, PAGE_SIZE, "all\n"); in prefault_mode_show()
262 return scnprintf(buf, PAGE_SIZE, "none\n"); in prefault_mode_show()
268 const char *buf, size_t count) in prefault_mode_store() argument
273 if (!strncmp(buf, "work_element_descriptor", 23)) in prefault_mode_store()
275 if (!strncmp(buf, "all", 3)) in prefault_mode_store()
277 if (!strncmp(buf, "none", 4)) in prefault_mode_store()
289 char *buf) in mode_show() argument
294 return scnprintf(buf, PAGE_SIZE, "dedicated_process\n"); in mode_show()
296 return scnprintf(buf, PAGE_SIZE, "afu_directed\n"); in mode_show()
297 return scnprintf(buf, PAGE_SIZE, "none\n"); in mode_show()
301 const char *buf, size_t count) in mode_store() argument
312 if (!strncmp(buf, "dedicated_process", 17)) in mode_store()
314 if (!strncmp(buf, "afu_directed", 12)) in mode_store()
316 if (!strncmp(buf, "none", 4)) in mode_store()
347 char *buf) in api_version_show() argument
349 return scnprintf(buf, PAGE_SIZE, "%i\n", CXL_API_VERSION); in api_version_show()
354 char *buf) in api_version_compatible_show() argument
356 return scnprintf(buf, PAGE_SIZE, "%i\n", CXL_API_VERSION_COMPATIBLE); in api_version_compatible_show()
406 struct kobj_attribute *attr, char *buf) in vendor_show() argument
410 return scnprintf(buf, PAGE_SIZE, "0x%.4x\n", cr->vendor); in vendor_show()
414 struct kobj_attribute *attr, char *buf) in device_show() argument
418 return scnprintf(buf, PAGE_SIZE, "0x%.4x\n", cr->device); in device_show()
422 struct kobj_attribute *attr, char *buf) in class_show() argument
426 return scnprintf(buf, PAGE_SIZE, "0x%.6x\n", cr->class); in class_show()
430 struct bin_attribute *bin_attr, char *buf, in afu_read_config() argument
446 buf[i] = (val >> (j * 8)) & 0xff; in afu_read_config()