Lines Matching refs:buf_len
234 struct nd_intel_fw_info *nd_cmd, unsigned int buf_len, in nd_intel_test_get_fw_info() argument
241 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_get_fw_info()
243 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_get_fw_info()
260 struct nd_intel_fw_start *nd_cmd, unsigned int buf_len, in nd_intel_test_start_update() argument
267 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_start_update()
269 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_start_update()
290 struct nd_intel_fw_send_data *nd_cmd, unsigned int buf_len, in nd_intel_test_send_data() argument
298 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_send_data()
300 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_send_data()
342 unsigned int buf_len, int idx) in nd_intel_test_finish_fw() argument
348 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_finish_fw()
393 unsigned int buf_len, int idx) in nd_intel_test_finish_query() argument
399 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_finish_query()
401 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_finish_query()
454 unsigned int buf_len) in nfit_test_cmd_get_config_size() argument
456 if (buf_len < sizeof(*nd_cmd)) in nfit_test_cmd_get_config_size()
467 *nd_cmd, unsigned int buf_len, void *label) in nfit_test_cmd_get_config_data() argument
472 if (buf_len < sizeof(*nd_cmd)) in nfit_test_cmd_get_config_data()
476 if (nd_cmd->in_length + sizeof(*nd_cmd) > buf_len) in nfit_test_cmd_get_config_data()
482 rc = buf_len - sizeof(*nd_cmd) - len; in nfit_test_cmd_get_config_data()
488 unsigned int buf_len, void *label) in nfit_test_cmd_set_config_data() argument
494 if (buf_len < sizeof(*nd_cmd)) in nfit_test_cmd_set_config_data()
498 if (nd_cmd->in_length + sizeof(*nd_cmd) + 4 > buf_len) in nfit_test_cmd_set_config_data()
505 rc = buf_len - sizeof(*nd_cmd) - (len + 4); in nfit_test_cmd_set_config_data()
513 unsigned int buf_len) in nfit_test_cmd_ars_cap() argument
517 if (buf_len < sizeof(*nd_cmd)) in nfit_test_cmd_ars_cap()
572 struct nd_cmd_ars_start *ars_start, unsigned int buf_len, in nfit_test_cmd_ars_start() argument
575 if (buf_len < sizeof(*ars_start)) in nfit_test_cmd_ars_start()
595 struct nd_cmd_ars_status *ars_status, unsigned int buf_len, in nfit_test_cmd_ars_status() argument
598 if (buf_len < ars_state->ars_status->out_length) in nfit_test_cmd_ars_status()
603 memset(ars_status, 0, buf_len); in nfit_test_cmd_ars_status()
618 unsigned int buf_len, int *cmd_rc) in nfit_test_cmd_clear_error() argument
621 if (buf_len < sizeof(*clear_err)) in nfit_test_cmd_clear_error()
701 struct nd_cmd_translate_spa *spa, unsigned int buf_len) in nfit_test_cmd_translate_spa() argument
703 if (buf_len < spa->translate_length) in nfit_test_cmd_translate_spa()
712 static int nfit_test_cmd_smart(struct nd_intel_smart *smart, unsigned int buf_len, in nfit_test_cmd_smart() argument
715 if (buf_len < sizeof(*smart)) in nfit_test_cmd_smart()
723 unsigned int buf_len, in nfit_test_cmd_smart_threshold() argument
726 if (buf_len < sizeof(*smart_t)) in nfit_test_cmd_smart_threshold()
760 unsigned int buf_len, in nfit_test_cmd_smart_set_threshold() argument
768 if (buf_len < size) in nfit_test_cmd_smart_set_threshold()
779 unsigned int buf_len, in nfit_test_cmd_smart_inject() argument
784 if (buf_len != sizeof(*inj)) in nfit_test_cmd_smart_inject()
826 struct nd_cmd_ars_err_inj *err_inj, unsigned int buf_len) in nfit_test_cmd_ars_error_inject() argument
830 if (buf_len != sizeof(*err_inj)) { in nfit_test_cmd_ars_error_inject()
857 struct nd_cmd_ars_err_inj_clr *err_clr, unsigned int buf_len) in nfit_test_cmd_ars_inject_clear() argument
861 if (buf_len != sizeof(*err_clr)) { in nfit_test_cmd_ars_inject_clear()
884 unsigned int buf_len) in nfit_test_cmd_ars_inject_status() argument
906 struct nd_intel_lss *nd_cmd, unsigned int buf_len) in nd_intel_test_cmd_set_lss_status() argument
910 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_cmd_set_lss_status()
946 unsigned int buf_len, int dimm) in nd_intel_test_cmd_security_status() argument
961 unsigned int buf_len, int dimm) in nd_intel_test_cmd_unlock_unit() argument
987 unsigned int buf_len, int dimm) in nd_intel_test_cmd_set_pass() argument
1012 unsigned int buf_len, int dimm) in nd_intel_test_cmd_freeze_lock() argument
1031 unsigned int buf_len, int dimm) in nd_intel_test_cmd_disable_pass() argument
1055 unsigned int buf_len, int dimm) in nd_intel_test_cmd_secure_erase() argument
1086 unsigned int buf_len, int dimm) in nd_intel_test_cmd_overwrite() argument
1109 unsigned int buf_len, int dimm) in nd_intel_test_cmd_query_overwrite() argument
1132 unsigned int buf_len, int dimm) in nd_intel_test_cmd_master_set_pass() argument
1159 unsigned int buf_len, int dimm) in nd_intel_test_cmd_master_secure_erase() argument
1189 unsigned int buf_len) in nvdimm_bus_intel_fw_activate_businfo() argument
1231 unsigned int buf_len) in nvdimm_bus_intel_fw_activate() argument
1269 unsigned int buf_len, int dimm) in nd_intel_test_cmd_fw_activate_dimminfo() argument
1305 unsigned int buf_len, int dimm) in nd_intel_test_cmd_fw_activate_arm() argument
1352 unsigned int buf_len, int *cmd_rc) in nfit_test_ctl() argument
1363 nfit_ctl_dbg(acpi_desc, nvdimm, cmd, buf, buf_len); in nfit_test_ctl()
1375 buf_len = call_pkg->nd_size_in + call_pkg->nd_size_out; in nfit_test_ctl()
1393 buf, buf_len, i); in nfit_test_ctl()
1397 buf, buf_len, i); in nfit_test_ctl()
1401 buf, buf_len, i); in nfit_test_ctl()
1405 buf, buf_len, i); in nfit_test_ctl()
1409 buf, buf_len, i); in nfit_test_ctl()
1413 buf, buf_len, i); in nfit_test_ctl()
1417 buf, buf_len, i); in nfit_test_ctl()
1421 buf, buf_len, i); in nfit_test_ctl()
1425 buf, buf_len, i); in nfit_test_ctl()
1429 buf, buf_len, i); in nfit_test_ctl()
1433 t, buf, buf_len, i); in nfit_test_ctl()
1437 t, buf, buf_len, i); in nfit_test_ctl()
1441 buf, buf_len); in nfit_test_ctl()
1445 buf_len, i); in nfit_test_ctl()
1449 buf_len, i); in nfit_test_ctl()
1453 buf_len, i); in nfit_test_ctl()
1457 buf_len, i); in nfit_test_ctl()
1461 buf_len, i); in nfit_test_ctl()
1464 rc = nfit_test_cmd_smart(buf, buf_len, in nfit_test_ctl()
1469 buf_len, in nfit_test_ctl()
1474 buf_len, in nfit_test_ctl()
1481 buf_len, in nfit_test_ctl()
1502 rc = nfit_test_cmd_get_config_size(buf, buf_len); in nfit_test_ctl()
1505 rc = nfit_test_cmd_get_config_data(buf, buf_len, in nfit_test_ctl()
1509 rc = nfit_test_cmd_set_config_data(buf, buf_len, in nfit_test_ctl()
1526 buf_len = call_pkg->nd_size_in + call_pkg->nd_size_out; in nfit_test_ctl()
1532 acpi_desc->nvdimm_bus, buf, buf_len); in nfit_test_ctl()
1536 buf_len); in nfit_test_ctl()
1540 buf_len); in nfit_test_ctl()
1544 buf_len); in nfit_test_ctl()
1552 buf_len = call_pkg->nd_size_in + call_pkg->nd_size_out; in nfit_test_ctl()
1558 buf, buf_len); in nfit_test_ctl()
1562 buf_len); in nfit_test_ctl()
1575 rc = nfit_test_cmd_ars_cap(buf, buf_len); in nfit_test_ctl()
1579 buf_len, cmd_rc); in nfit_test_ctl()
1582 rc = nfit_test_cmd_ars_status(ars_state, buf, buf_len, in nfit_test_ctl()
1586 rc = nfit_test_cmd_clear_error(t, buf, buf_len, cmd_rc); in nfit_test_ctl()