Home
last modified time | relevance | path

Searched refs:cmd_rc (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/drivers/nvdimm/
Ddimm_devs.c64 int cmd_rc = 0; in nvdimm_init_nsarea() local
75 ND_CMD_GET_CONFIG_SIZE, cmd, sizeof(*cmd), &cmd_rc); in nvdimm_init_nsarea()
78 return cmd_rc; in nvdimm_init_nsarea()
86 int rc = validate_dimm(ndd), cmd_rc = 0; in nvdimm_get_config_data() local
111 ND_CMD_GET_CONFIG_DATA, cmd, cmd_size, &cmd_rc); in nvdimm_get_config_data()
114 if (cmd_rc < 0) { in nvdimm_get_config_data()
115 rc = cmd_rc; in nvdimm_get_config_data()
132 int rc = validate_dimm(ndd), cmd_rc = 0; in nvdimm_set_config_data() local
159 ND_CMD_SET_CONFIG_DATA, cmd, cmd_size, &cmd_rc); in nvdimm_set_config_data()
162 if (cmd_rc < 0) { in nvdimm_set_config_data()
[all …]
Dbus.c223 int cmd_rc, rc; in nvdimm_clear_poison() local
241 sizeof(ars_cap), &cmd_rc); in nvdimm_clear_poison()
245 if (cmd_rc < 0) in nvdimm_clear_poison()
246 return cmd_rc; in nvdimm_clear_poison()
259 sizeof(clear_err), &cmd_rc); in nvdimm_clear_poison()
263 if (cmd_rc < 0) in nvdimm_clear_poison()
264 return cmd_rc; in nvdimm_clear_poison()
1024 int rc, i, cmd_rc; in __nd_ioctl() local
1170 rc = nd_desc->ndctl(nd_desc, nvdimm, cmd, buf, buf_len, &cmd_rc); in __nd_ioctl()
1174 if (!nvdimm && cmd == ND_CMD_CLEAR_ERROR && cmd_rc >= 0) { in __nd_ioctl()
/linux-6.1.9/tools/testing/nvdimm/test/
Dnfit.c571 int *cmd_rc) in nfit_test_cmd_ars_start() argument
579 *cmd_rc = -EBUSY; in nfit_test_cmd_ars_start()
585 *cmd_rc = 0; in nfit_test_cmd_ars_start()
594 int *cmd_rc) in nfit_test_cmd_ars_status() argument
604 *cmd_rc = -EBUSY; in nfit_test_cmd_ars_status()
608 *cmd_rc = 0; in nfit_test_cmd_ars_status()
616 unsigned int buf_len, int *cmd_rc) in nfit_test_cmd_clear_error() argument
628 *cmd_rc = 0; in nfit_test_cmd_clear_error()
1350 unsigned int buf_len, int *cmd_rc) in nfit_test_ctl() argument
1357 if (!cmd_rc) in nfit_test_ctl()
[all …]
Dndtest.c240 unsigned int buf_len, int *cmd_rc) in ndtest_ctl() argument
245 if (!cmd_rc) in ndtest_ctl()
246 cmd_rc = &_cmd_rc; in ndtest_ctl()
248 *cmd_rc = 0; in ndtest_ctl()
259 *cmd_rc = ndtest_get_config_size(dimm, buf_len, buf); in ndtest_ctl()
262 *cmd_rc = ndtest_config_get(dimm, buf_len, buf); in ndtest_ctl()
265 *cmd_rc = ndtest_config_set(dimm, buf_len, buf); in ndtest_ctl()
/linux-6.1.9/include/linux/
Dlibnvdimm.h73 unsigned int buf_len, int *cmd_rc);
294 unsigned int buf_len, int *cmd_rc) in nvdimm_ctl() argument
299 return nd_desc->ndctl(nd_desc, nvdimm, cmd, buf, buf_len, cmd_rc); in nvdimm_ctl()
/linux-6.1.9/drivers/acpi/nfit/
Dcore.c438 unsigned int cmd, void *buf, unsigned int buf_len, int *cmd_rc) in acpi_nfit_ctl() argument
454 if (cmd_rc) in acpi_nfit_ctl()
455 *cmd_rc = -EINVAL; in acpi_nfit_ctl()
593 if (cmd_rc) in acpi_nfit_ctl()
594 *cmd_rc = 0; in acpi_nfit_ctl()
637 if (cmd_rc) in acpi_nfit_ctl()
638 *cmd_rc = xlat_status(nvdimm, buf, cmd, in acpi_nfit_ctl()
648 if (cmd_rc) in acpi_nfit_ctl()
649 *cmd_rc = xlat_status(nvdimm, buf, cmd, fw_status); in acpi_nfit_ctl()
2351 int cmd_rc, rc; in ars_get_cap() local
[all …]
Dnfit.h346 unsigned int cmd, void *buf, unsigned int buf_len, int *cmd_rc);
/linux-6.1.9/arch/powerpc/platforms/pseries/
Dpapr_scm.c1044 unsigned int buf_len, int *cmd_rc) in papr_scm_ndctl() argument
1058 if (!cmd_rc) in papr_scm_ndctl()
1059 cmd_rc = &rc; in papr_scm_ndctl()
1070 *cmd_rc = 0; in papr_scm_ndctl()
1074 *cmd_rc = papr_scm_meta_get(p, buf); in papr_scm_ndctl()
1078 *cmd_rc = papr_scm_meta_set(p, buf); in papr_scm_ndctl()
1083 *cmd_rc = papr_scm_service_pdsm(p, call_pkg); in papr_scm_ndctl()
1091 dev_dbg(&p->pdev->dev, "returned with cmd_rc = %d\n", *cmd_rc); in papr_scm_ndctl()
/linux-6.1.9/drivers/cxl/
Dpmem.c206 unsigned int buf_len, int *cmd_rc) in cxl_pmem_ctl() argument
212 *cmd_rc = 0; in cxl_pmem_ctl()