• Home
  • Raw
  • Download

Lines Matching refs:buf

108 static ssize_t test_fw_misc_read(struct file *f, char __user *buf,  in test_fw_misc_read()  argument
115 rc = simple_read_from_buffer(buf, size, offset, in test_fw_misc_read()
199 const char *buf, size_t count) in reset_store() argument
227 char *buf) in config_show() argument
233 len += scnprintf(buf, PAGE_SIZE - len, in config_show()
238 len += scnprintf(buf+len, PAGE_SIZE - len, in config_show()
242 len += scnprintf(buf+len, PAGE_SIZE - len, in config_show()
245 len += scnprintf(buf+len, PAGE_SIZE - len, in config_show()
248 len += scnprintf(buf+len, PAGE_SIZE - len, in config_show()
253 len += scnprintf(buf+len, PAGE_SIZE - len, in config_show()
256 len += scnprintf(buf+len, PAGE_SIZE - len, in config_show()
259 len += scnprintf(buf+len, PAGE_SIZE - len, in config_show()
270 const char *buf, size_t count) in config_name_store() argument
276 ret = __kstrncpy(&test_fw_config->name, buf, count, GFP_KERNEL); in config_name_store()
297 static int test_dev_config_update_bool(const char *buf, size_t size, in test_dev_config_update_bool() argument
303 if (strtobool(buf, cfg) < 0) in test_dev_config_update_bool()
313 test_dev_config_show_bool(char *buf, in test_dev_config_show_bool() argument
322 return snprintf(buf, PAGE_SIZE, "%d\n", val); in test_dev_config_show_bool()
325 static ssize_t test_dev_config_show_int(char *buf, int cfg) in test_dev_config_show_int() argument
333 return snprintf(buf, PAGE_SIZE, "%d\n", val); in test_dev_config_show_int()
336 static int test_dev_config_update_u8(const char *buf, size_t size, u8 *cfg) in test_dev_config_update_u8() argument
341 ret = kstrtol(buf, 10, &new); in test_dev_config_update_u8()
356 static ssize_t test_dev_config_show_u8(char *buf, u8 cfg) in test_dev_config_show_u8() argument
364 return snprintf(buf, PAGE_SIZE, "%u\n", val); in test_dev_config_show_u8()
369 char *buf) in config_name_show() argument
371 return config_test_show_str(buf, test_fw_config->name); in config_name_show()
377 const char *buf, size_t count) in config_num_requests_store() argument
390 rc = test_dev_config_update_u8(buf, count, in config_num_requests_store()
399 char *buf) in config_num_requests_show() argument
401 return test_dev_config_show_u8(buf, test_fw_config->num_requests); in config_num_requests_show()
407 const char *buf, size_t count) in config_into_buf_store() argument
409 return test_dev_config_update_bool(buf, in config_into_buf_store()
416 char *buf) in config_into_buf_show() argument
418 return test_dev_config_show_bool(buf, test_fw_config->into_buf); in config_into_buf_show()
424 const char *buf, size_t count) in config_sync_direct_store() argument
426 int rc = test_dev_config_update_bool(buf, count, in config_sync_direct_store()
438 char *buf) in config_sync_direct_show() argument
440 return test_dev_config_show_bool(buf, test_fw_config->sync_direct); in config_sync_direct_show()
446 const char *buf, size_t count) in config_send_uevent_store() argument
448 return test_dev_config_update_bool(buf, count, in config_send_uevent_store()
454 char *buf) in config_send_uevent_show() argument
456 return test_dev_config_show_bool(buf, test_fw_config->send_uevent); in config_send_uevent_show()
462 const char *buf, size_t count) in config_read_fw_idx_store() argument
464 return test_dev_config_update_u8(buf, count, in config_read_fw_idx_store()
470 char *buf) in config_read_fw_idx_show() argument
472 return test_dev_config_show_u8(buf, test_fw_config->read_fw_idx); in config_read_fw_idx_show()
479 const char *buf, size_t count) in trigger_request_store() argument
484 name = kstrndup(buf, count, GFP_KERNEL); in trigger_request_store()
520 const char *buf, size_t count) in trigger_async_request_store() argument
525 name = kstrndup(buf, count, GFP_KERNEL); in trigger_async_request_store()
563 const char *buf, size_t count) in trigger_custom_fallback_store() argument
568 name = kstrndup(buf, count, GFP_KERNEL); in trigger_custom_fallback_store()
659 const char *buf, size_t count) in trigger_batched_requests_store() argument
756 const char *buf, size_t count) in trigger_batched_requests_async_store() argument
829 char *buf) in test_result_show() argument
831 return test_dev_config_show_int(buf, test_fw_config->test_result); in test_result_show()
837 const char *buf, size_t count) in release_all_firmware_store() argument
846 char *buf) in read_firmware_show() argument
879 memcpy(buf, req->fw->data, req->fw->size); in read_firmware_show()