Lines Matching refs:cmd
704 static int is_cmd_valid(struct nvdimm *nvdimm, unsigned int cmd, void *buf, in is_cmd_valid() argument
719 if (!test_bit(cmd, &cmd_mask)) { in is_cmd_valid()
720 dev_dbg(&p->pdev->dev, "Unsupported cmd=%u\n", cmd); in is_cmd_valid()
725 if (cmd == ND_CMD_CALL) { in is_cmd_valid()
969 static inline const struct pdsm_cmd_desc *pdsm_cmd_desc(enum papr_pdsm cmd) in pdsm_cmd_desc() argument
971 if (cmd >= 0 || cmd < ARRAY_SIZE(__pdsm_cmd_descriptors)) in pdsm_cmd_desc()
972 return &__pdsm_cmd_descriptors[cmd]; in pdsm_cmd_desc()
1043 struct nvdimm *nvdimm, unsigned int cmd, void *buf, in papr_scm_ndctl() argument
1051 rc = is_cmd_valid(nvdimm, cmd, buf, buf_len); in papr_scm_ndctl()
1053 pr_debug("Invalid cmd=0x%x. Err=%d\n", cmd, rc); in papr_scm_ndctl()
1063 switch (cmd) { in papr_scm_ndctl()
1087 dev_dbg(&p->pdev->dev, "Unknown command = %d\n", cmd); in papr_scm_ndctl()