Lines Matching refs:buf_len

232 		struct nd_intel_fw_info *nd_cmd, unsigned int buf_len,  in nd_intel_test_get_fw_info()  argument
239 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_get_fw_info()
241 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_get_fw_info()
258 struct nd_intel_fw_start *nd_cmd, unsigned int buf_len, in nd_intel_test_start_update() argument
265 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_start_update()
267 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_start_update()
288 struct nd_intel_fw_send_data *nd_cmd, unsigned int buf_len, in nd_intel_test_send_data() argument
296 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_send_data()
298 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_send_data()
340 unsigned int buf_len, int idx) in nd_intel_test_finish_fw() argument
346 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_finish_fw()
391 unsigned int buf_len, int idx) in nd_intel_test_finish_query() argument
397 __func__, t, nd_cmd, buf_len, idx); in nd_intel_test_finish_query()
399 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_finish_query()
452 unsigned int buf_len) in nfit_test_cmd_get_config_size() argument
454 if (buf_len < sizeof(*nd_cmd)) in nfit_test_cmd_get_config_size()
465 *nd_cmd, unsigned int buf_len, void *label) in nfit_test_cmd_get_config_data() argument
470 if (buf_len < sizeof(*nd_cmd)) in nfit_test_cmd_get_config_data()
474 if (nd_cmd->in_length + sizeof(*nd_cmd) > buf_len) in nfit_test_cmd_get_config_data()
480 rc = buf_len - sizeof(*nd_cmd) - len; in nfit_test_cmd_get_config_data()
486 unsigned int buf_len, void *label) in nfit_test_cmd_set_config_data() argument
492 if (buf_len < sizeof(*nd_cmd)) in nfit_test_cmd_set_config_data()
496 if (nd_cmd->in_length + sizeof(*nd_cmd) + 4 > buf_len) in nfit_test_cmd_set_config_data()
503 rc = buf_len - sizeof(*nd_cmd) - (len + 4); in nfit_test_cmd_set_config_data()
511 unsigned int buf_len) in nfit_test_cmd_ars_cap() argument
515 if (buf_len < sizeof(*nd_cmd)) in nfit_test_cmd_ars_cap()
570 struct nd_cmd_ars_start *ars_start, unsigned int buf_len, in nfit_test_cmd_ars_start() argument
573 if (buf_len < sizeof(*ars_start)) in nfit_test_cmd_ars_start()
593 struct nd_cmd_ars_status *ars_status, unsigned int buf_len, in nfit_test_cmd_ars_status() argument
596 if (buf_len < ars_state->ars_status->out_length) in nfit_test_cmd_ars_status()
601 memset(ars_status, 0, buf_len); in nfit_test_cmd_ars_status()
616 unsigned int buf_len, int *cmd_rc) in nfit_test_cmd_clear_error() argument
619 if (buf_len < sizeof(*clear_err)) in nfit_test_cmd_clear_error()
699 struct nd_cmd_translate_spa *spa, unsigned int buf_len) in nfit_test_cmd_translate_spa() argument
701 if (buf_len < spa->translate_length) in nfit_test_cmd_translate_spa()
710 static int nfit_test_cmd_smart(struct nd_intel_smart *smart, unsigned int buf_len, in nfit_test_cmd_smart() argument
713 if (buf_len < sizeof(*smart)) in nfit_test_cmd_smart()
721 unsigned int buf_len, in nfit_test_cmd_smart_threshold() argument
724 if (buf_len < sizeof(*smart_t)) in nfit_test_cmd_smart_threshold()
758 unsigned int buf_len, in nfit_test_cmd_smart_set_threshold() argument
766 if (buf_len < size) in nfit_test_cmd_smart_set_threshold()
777 unsigned int buf_len, in nfit_test_cmd_smart_inject() argument
782 if (buf_len != sizeof(*inj)) in nfit_test_cmd_smart_inject()
824 struct nd_cmd_ars_err_inj *err_inj, unsigned int buf_len) in nfit_test_cmd_ars_error_inject() argument
828 if (buf_len != sizeof(*err_inj)) { in nfit_test_cmd_ars_error_inject()
855 struct nd_cmd_ars_err_inj_clr *err_clr, unsigned int buf_len) in nfit_test_cmd_ars_inject_clear() argument
859 if (buf_len != sizeof(*err_clr)) { in nfit_test_cmd_ars_inject_clear()
882 unsigned int buf_len) in nfit_test_cmd_ars_inject_status() argument
904 struct nd_intel_lss *nd_cmd, unsigned int buf_len) in nd_intel_test_cmd_set_lss_status() argument
908 if (buf_len < sizeof(*nd_cmd)) in nd_intel_test_cmd_set_lss_status()
944 unsigned int buf_len, int dimm) in nd_intel_test_cmd_security_status() argument
959 unsigned int buf_len, int dimm) in nd_intel_test_cmd_unlock_unit() argument
985 unsigned int buf_len, int dimm) in nd_intel_test_cmd_set_pass() argument
1010 unsigned int buf_len, int dimm) in nd_intel_test_cmd_freeze_lock() argument
1029 unsigned int buf_len, int dimm) in nd_intel_test_cmd_disable_pass() argument
1053 unsigned int buf_len, int dimm) in nd_intel_test_cmd_secure_erase() argument
1084 unsigned int buf_len, int dimm) in nd_intel_test_cmd_overwrite() argument
1107 unsigned int buf_len, int dimm) in nd_intel_test_cmd_query_overwrite() argument
1130 unsigned int buf_len, int dimm) in nd_intel_test_cmd_master_set_pass() argument
1157 unsigned int buf_len, int dimm) in nd_intel_test_cmd_master_secure_erase() argument
1187 unsigned int buf_len) in nvdimm_bus_intel_fw_activate_businfo() argument
1229 unsigned int buf_len) in nvdimm_bus_intel_fw_activate() argument
1267 unsigned int buf_len, int dimm) in nd_intel_test_cmd_fw_activate_dimminfo() argument
1303 unsigned int buf_len, int dimm) in nd_intel_test_cmd_fw_activate_arm() argument
1350 unsigned int buf_len, int *cmd_rc) in nfit_test_ctl() argument
1361 nfit_ctl_dbg(acpi_desc, nvdimm, cmd, buf, buf_len); in nfit_test_ctl()
1373 buf_len = call_pkg->nd_size_in + call_pkg->nd_size_out; in nfit_test_ctl()
1391 buf, buf_len, i); in nfit_test_ctl()
1395 buf, buf_len, i); in nfit_test_ctl()
1399 buf, buf_len, i); in nfit_test_ctl()
1403 buf, buf_len, i); in nfit_test_ctl()
1407 buf, buf_len, i); in nfit_test_ctl()
1411 buf, buf_len, i); in nfit_test_ctl()
1415 buf, buf_len, i); in nfit_test_ctl()
1419 buf, buf_len, i); in nfit_test_ctl()
1423 buf, buf_len, i); in nfit_test_ctl()
1427 buf, buf_len, i); in nfit_test_ctl()
1431 t, buf, buf_len, i); in nfit_test_ctl()
1435 t, buf, buf_len, i); in nfit_test_ctl()
1439 buf, buf_len); in nfit_test_ctl()
1443 buf_len, i); in nfit_test_ctl()
1447 buf_len, i); in nfit_test_ctl()
1451 buf_len, i); in nfit_test_ctl()
1455 buf_len, i); in nfit_test_ctl()
1459 buf_len, i); in nfit_test_ctl()
1462 rc = nfit_test_cmd_smart(buf, buf_len, in nfit_test_ctl()
1467 buf_len, in nfit_test_ctl()
1472 buf_len, in nfit_test_ctl()
1479 buf_len, in nfit_test_ctl()
1500 rc = nfit_test_cmd_get_config_size(buf, buf_len); in nfit_test_ctl()
1503 rc = nfit_test_cmd_get_config_data(buf, buf_len, in nfit_test_ctl()
1507 rc = nfit_test_cmd_set_config_data(buf, buf_len, in nfit_test_ctl()
1524 buf_len = call_pkg->nd_size_in + call_pkg->nd_size_out; in nfit_test_ctl()
1530 acpi_desc->nvdimm_bus, buf, buf_len); in nfit_test_ctl()
1534 buf_len); in nfit_test_ctl()
1538 buf_len); in nfit_test_ctl()
1542 buf_len); in nfit_test_ctl()
1550 buf_len = call_pkg->nd_size_in + call_pkg->nd_size_out; in nfit_test_ctl()
1556 buf, buf_len); in nfit_test_ctl()
1560 buf_len); in nfit_test_ctl()
1573 rc = nfit_test_cmd_ars_cap(buf, buf_len); in nfit_test_ctl()
1577 buf_len, cmd_rc); in nfit_test_ctl()
1580 rc = nfit_test_cmd_ars_status(ars_state, buf, buf_len, in nfit_test_ctl()
1584 rc = nfit_test_cmd_clear_error(t, buf, buf_len, cmd_rc); in nfit_test_ctl()