Lines Matching refs:cmd
63 static struct pqi_cmd_priv *pqi_cmd_priv(struct scsi_cmnd *cmd) in pqi_cmd_priv() argument
65 return scsi_cmd_priv(cmd); in pqi_cmd_priv()
608 struct pqi_raid_path_request *request, u8 cmd, in pqi_build_raid_path_request() argument
628 switch (cmd) { in pqi_build_raid_path_request()
641 cdb[0] = cmd; in pqi_build_raid_path_request()
642 if (cmd == CISS_REPORT_PHYS) { in pqi_build_raid_path_request()
674 cdb[6] = cmd; in pqi_build_raid_path_request()
683 cdb[6] = cmd; in pqi_build_raid_path_request()
690 cdb[6] = cmd; in pqi_build_raid_path_request()
694 dev_err(&ctrl_info->pci_dev->dev, "unknown command 0x%c\n", cmd); in pqi_build_raid_path_request()
766 static int pqi_send_scsi_raid_request(struct pqi_ctrl_info *ctrl_info, u8 cmd, in pqi_send_scsi_raid_request() argument
774 rc = pqi_build_raid_path_request(ctrl_info, &request, cmd, scsi3addr, in pqi_send_scsi_raid_request()
789 u8 cmd, void *buffer, size_t buffer_length) in pqi_send_ctrl_raid_request() argument
791 return pqi_send_scsi_raid_request(ctrl_info, cmd, RAID_CTLR_LUNID, in pqi_send_ctrl_raid_request()
796 u8 cmd, void *buffer, size_t buffer_length, in pqi_send_ctrl_raid_with_error() argument
799 return pqi_send_scsi_raid_request(ctrl_info, cmd, RAID_CTLR_LUNID, in pqi_send_ctrl_raid_with_error()
1151 static inline int pqi_report_luns(struct pqi_ctrl_info *ctrl_info, u8 cmd, void *buffer, in pqi_report_luns() argument
1154 return pqi_send_ctrl_raid_request(ctrl_info, cmd, buffer, buffer_length); in pqi_report_luns()
1157 static int pqi_report_phys_logical_luns(struct pqi_ctrl_info *ctrl_info, u8 cmd, void **buffer) in pqi_report_phys_logical_luns() argument
1172 rc = pqi_report_luns(ctrl_info, cmd, report_lun_header, sizeof(*report_lun_header)); in pqi_report_phys_logical_luns()
1192 rc = pqi_report_luns(ctrl_info, cmd, lun_data, lun_data_length); in pqi_report_phys_logical_luns()
6836 static int pqi_ioctl(struct scsi_device *sdev, unsigned int cmd, in pqi_ioctl() argument
6844 switch (cmd) { in pqi_ioctl()