Home
last modified time | relevance | path

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

/linux/drivers/nvdimm/
H A Ddimm_devs.c66 int cmd_rc = 0; in nvdimm_init_nsarea() local
77 ND_CMD_GET_CONFIG_SIZE, cmd, sizeof(*cmd), &cmd_rc); in nvdimm_init_nsarea()
80 return cmd_rc; in nvdimm_init_nsarea()
88 int rc = validate_dimm(ndd), cmd_rc = 0; in nvdimm_get_config_data() local
113 ND_CMD_GET_CONFIG_DATA, cmd, cmd_size, &cmd_rc); in nvdimm_get_config_data()
116 if (cmd_rc < 0) { in nvdimm_get_config_data()
117 rc = cmd_rc; in nvdimm_get_config_data()
134 int rc = validate_dimm(ndd), cmd_rc = 0; in nvdimm_set_config_data() local
161 ND_CMD_SET_CONFIG_DATA, cmd, cmd_size, &cmd_rc); in nvdimm_set_config_data()
164 if (cmd_rc < 0) { in nvdimm_set_config_data()
[all …]
H A Dbus.c226 int cmd_rc, rc; in nvdimm_clear_poison() local
244 sizeof(ars_cap), &cmd_rc); in nvdimm_clear_poison()
248 if (cmd_rc < 0) in nvdimm_clear_poison()
249 return cmd_rc; in nvdimm_clear_poison()
262 sizeof(clear_err), &cmd_rc); in nvdimm_clear_poison()
266 if (cmd_rc < 0) in nvdimm_clear_poison()
267 return cmd_rc; in nvdimm_clear_poison()
1040 int rc, i, cmd_rc; in __nd_ioctl() local
1186 rc = nd_desc->ndctl(nd_desc, nvdimm, cmd, buf, buf_len, &cmd_rc); in __nd_ioctl()
1190 if (!nvdimm && cmd == ND_CMD_CLEAR_ERROR && cmd_rc >= 0) { in __nd_ioctl()
/linux/tools/testing/nvdimm/test/
H A 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 …]
H A Dndtest.c246 unsigned int buf_len, int *cmd_rc) in ndtest_ctl() argument
251 if (!cmd_rc) in ndtest_ctl()
252 cmd_rc = &_cmd_rc; in ndtest_ctl()
254 *cmd_rc = 0; in ndtest_ctl()
265 *cmd_rc = ndtest_get_config_size(dimm, buf_len, buf); in ndtest_ctl()
268 *cmd_rc = ndtest_config_get(dimm, buf_len, buf); in ndtest_ctl()
271 *cmd_rc = ndtest_config_set(dimm, buf_len, buf); in ndtest_ctl()
/linux/include/linux/
H A Dlibnvdimm.h81 unsigned int buf_len, int *cmd_rc);
304 unsigned int buf_len, int *cmd_rc) in nvdimm_ctl() argument
309 return nd_desc->ndctl(nd_desc, nvdimm, cmd, buf, buf_len, cmd_rc); in nvdimm_ctl()
/linux/drivers/acpi/nfit/
H A 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()
2345 int cmd_rc, rc; in ars_get_cap() local
[all …]
H A Dnfit.h346 unsigned int cmd, void *buf, unsigned int buf_len, int *cmd_rc);
/linux/arch/powerpc/platforms/pseries/
H A Dpapr_scm.c1005 unsigned int buf_len, int *cmd_rc) in papr_scm_ndctl() argument
1019 if (!cmd_rc) in papr_scm_ndctl()
1020 cmd_rc = &rc; in papr_scm_ndctl()
1031 *cmd_rc = 0; in papr_scm_ndctl()
1035 *cmd_rc = papr_scm_meta_get(p, buf); in papr_scm_ndctl()
1039 *cmd_rc = papr_scm_meta_set(p, buf); in papr_scm_ndctl()
1044 *cmd_rc = papr_scm_service_pdsm(p, call_pkg); in papr_scm_ndctl()
1052 dev_dbg(&p->pdev->dev, "returned with cmd_rc = %d\n", *cmd_rc); in papr_scm_ndctl()
/linux/drivers/cxl/
H A Dpmem.c219 unsigned int buf_len, int *cmd_rc) in cxl_pmem_ctl() argument
225 *cmd_rc = 0; in cxl_pmem_ctl()