Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/nvdimm/
Ddimm_devs.c68 int cmd_rc = 0; in nvdimm_init_nsarea() local
79 ND_CMD_GET_CONFIG_SIZE, cmd, sizeof(*cmd), &cmd_rc); in nvdimm_init_nsarea()
82 return cmd_rc; in nvdimm_init_nsarea()
90 int rc = validate_dimm(ndd), cmd_rc = 0; in nvdimm_get_config_data() local
115 ND_CMD_GET_CONFIG_DATA, cmd, cmd_size, &cmd_rc); in nvdimm_get_config_data()
118 if (cmd_rc < 0) { in nvdimm_get_config_data()
119 rc = cmd_rc; in nvdimm_get_config_data()
136 int rc = validate_dimm(ndd), cmd_rc = 0; in nvdimm_set_config_data() local
163 ND_CMD_SET_CONFIG_DATA, cmd, cmd_size, &cmd_rc); in nvdimm_set_config_data()
166 if (cmd_rc < 0) { in nvdimm_set_config_data()
[all …]
Dbus.c234 int cmd_rc, rc; in nvdimm_clear_poison() local
252 sizeof(ars_cap), &cmd_rc); in nvdimm_clear_poison()
256 if (cmd_rc < 0) in nvdimm_clear_poison()
257 return cmd_rc; in nvdimm_clear_poison()
270 sizeof(clear_err), &cmd_rc); in nvdimm_clear_poison()
274 if (cmd_rc < 0) in nvdimm_clear_poison()
275 return cmd_rc; in nvdimm_clear_poison()
992 int rc, i, cmd_rc; in __nd_ioctl() local
1120 rc = nd_desc->ndctl(nd_desc, nvdimm, cmd, buf, buf_len, &cmd_rc); in __nd_ioctl()
1124 if (!nvdimm && cmd == ND_CMD_CLEAR_ERROR && cmd_rc >= 0) { in __nd_ioctl()
/Linux-v5.4/tools/testing/nvdimm/test/
Dnfit.c569 int *cmd_rc) in nfit_test_cmd_ars_start() argument
577 *cmd_rc = -EBUSY; in nfit_test_cmd_ars_start()
583 *cmd_rc = 0; in nfit_test_cmd_ars_start()
592 int *cmd_rc) in nfit_test_cmd_ars_status() argument
602 *cmd_rc = -EBUSY; in nfit_test_cmd_ars_status()
606 *cmd_rc = 0; in nfit_test_cmd_ars_status()
614 unsigned int buf_len, int *cmd_rc) in nfit_test_cmd_clear_error() argument
626 *cmd_rc = 0; in nfit_test_cmd_clear_error()
1197 unsigned int buf_len, int *cmd_rc) in nfit_test_ctl() argument
1204 if (!cmd_rc) in nfit_test_ctl()
[all …]
/Linux-v5.4/arch/powerpc/platforms/pseries/
Dpapr_scm.c249 unsigned int cmd, void *buf, unsigned int buf_len, int *cmd_rc) in papr_scm_ndctl() argument
267 *cmd_rc = 0; in papr_scm_ndctl()
271 *cmd_rc = papr_scm_meta_get(p, buf); in papr_scm_ndctl()
275 *cmd_rc = papr_scm_meta_set(p, buf); in papr_scm_ndctl()
282 dev_dbg(&p->pdev->dev, "returned with cmd_rc = %d\n", *cmd_rc); in papr_scm_ndctl()
/Linux-v5.4/include/linux/
Dlibnvdimm.h79 unsigned int buf_len, int *cmd_rc);
272 unsigned int buf_len, int *cmd_rc) in nvdimm_ctl() argument
277 return nd_desc->ndctl(nd_desc, nvdimm, cmd, buf, buf_len, cmd_rc); in nvdimm_ctl()
/Linux-v5.4/drivers/acpi/nfit/
Dcore.c439 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()
581 if (cmd_rc) in acpi_nfit_ctl()
582 *cmd_rc = 0; in acpi_nfit_ctl()
625 if (cmd_rc) in acpi_nfit_ctl()
626 *cmd_rc = xlat_status(nvdimm, buf, cmd, in acpi_nfit_ctl()
636 if (cmd_rc) in acpi_nfit_ctl()
637 *cmd_rc = xlat_status(nvdimm, buf, cmd, fw_status); in acpi_nfit_ctl()
2650 int cmd_rc, rc; in ars_get_cap() local
[all …]
Dnfit.h345 unsigned int cmd, void *buf, unsigned int buf_len, int *cmd_rc);