Lines Matching defs:scsi_cmnd

89 lpfc_prot_group_type(struct lpfc_hba *phba, struct scsi_cmnd *sc);
440 struct scsi_cmnd *cmd;
550 * @cmnd: Pointer to scsi_cmnd data structure.
561 struct scsi_cmnd *cmnd)
591 * @cmnd: Pointer to scsi_cmnd data structure.
602 struct scsi_cmnd *cmnd)
686 * @cmnd: Pointer to scsi_cmnd data structure.
697 struct scsi_cmnd *cmnd)
811 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd;
820 int nseg, datadir = scsi_cmnd->sc_data_direction;
829 if (scsi_sg_count(scsi_cmnd)) {
837 nseg = dma_map_sg(&phba->pcidev->dev, scsi_sglist(scsi_cmnd),
838 scsi_sg_count(scsi_cmnd), datadir);
851 scsi_dma_unmap(scsi_cmnd);
864 scsi_for_each_sg(scsi_cmnd, sgel, nseg, num_bde) {
890 * scsi_cmnd request_buffer. Note that for SLI-2 the bdeSize is
923 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd));
929 iocb_cmd->un.fcpi.fcpi_parm = scsi_bufflen(scsi_cmnd);
959 lpfc_bg_err_inject(struct lpfc_hba *phba, struct scsi_cmnd *sc,
1366 lpfc_sc_to_bg_opcodes(struct lpfc_hba *phba, struct scsi_cmnd *sc,
1446 lpfc_bg_err_opcodes(struct lpfc_hba *phba, struct scsi_cmnd *sc,
1537 lpfc_bg_setup_bpl(struct lpfc_hba *phba, struct scsi_cmnd *sc,
1677 lpfc_bg_setup_bpl_prot(struct lpfc_hba *phba, struct scsi_cmnd *sc,
1922 lpfc_bg_setup_sgl(struct lpfc_hba *phba, struct scsi_cmnd *sc,
2103 lpfc_bg_setup_sgl_prot(struct lpfc_hba *phba, struct scsi_cmnd *sc,
2413 lpfc_prot_group_type(struct lpfc_hba *phba, struct scsi_cmnd *sc)
2453 struct scsi_cmnd *sc = lpfc_cmd->pCmd;
2496 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd;
2501 int datasegcnt, protsegcnt, datadir = scsi_cmnd->sc_data_direction;
2512 if (scsi_sg_count(scsi_cmnd)) {
2520 scsi_sglist(scsi_cmnd),
2521 scsi_sg_count(scsi_cmnd), datadir);
2534 prot_group_type = lpfc_prot_group_type(phba, scsi_cmnd);
2545 num_bde = lpfc_bg_setup_bpl(phba, scsi_cmnd, bpl,
2561 scsi_prot_sglist(scsi_cmnd),
2562 scsi_prot_sg_count(scsi_cmnd), datadir);
2564 scsi_dma_unmap(scsi_cmnd);
2580 num_bde = lpfc_bg_setup_bpl_prot(phba, scsi_cmnd, bpl,
2592 scsi_dma_unmap(scsi_cmnd);
2604 * scsi_cmnd request_buffer. Note that the bdeSize is explicitly
2633 scsi_dma_unmap(scsi_cmnd);
2635 dma_unmap_sg(&phba->pcidev->dev, scsi_prot_sglist(scsi_cmnd),
2636 scsi_prot_sg_count(scsi_cmnd),
2637 scsi_cmnd->sc_data_direction);
2690 struct scsi_cmnd *cmd = lpfc_cmd->pCmd;
2868 struct scsi_cmnd *cmd = lpfc_cmd->pCmd;
3047 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd;
3069 if (scsi_sg_count(scsi_cmnd)) {
3077 nseg = scsi_dma_map(scsi_cmnd);
3098 scsi_dma_unmap(scsi_cmnd);
3113 sgel = scsi_sglist(scsi_cmnd);
3137 scsi_dma_unmap(scsi_cmnd);
3227 * scsi_cmnd request_buffer. Note that for SLI-2 the bdeSize is
3231 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd));
3235 scsi_cmnd->sc_data_direction == DMA_TO_DEVICE) {
3255 scsi_cmnd->device->hostdata)->oas_enabled) {
3258 scsi_cmnd->device->hostdata)->priority;
3292 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd;
3298 int datasegcnt, protsegcnt, datadir = scsi_cmnd->sc_data_direction;
3308 if (scsi_sg_count(scsi_cmnd)) {
3316 scsi_sglist(scsi_cmnd),
3317 scsi_sg_count(scsi_cmnd), datadir);
3338 prot_group_type = lpfc_prot_group_type(phba, scsi_cmnd);
3350 num_sge = lpfc_bg_setup_sgl(phba, scsi_cmnd, sgl,
3367 scsi_prot_sglist(scsi_cmnd),
3368 scsi_prot_sg_count(scsi_cmnd), datadir);
3370 scsi_dma_unmap(scsi_cmnd);
3386 num_sge = lpfc_bg_setup_sgl_prot(phba, scsi_cmnd, sgl,
3400 scsi_dma_unmap(scsi_cmnd);
3410 switch (scsi_get_prot_op(scsi_cmnd)) {
3431 scsi_cmnd->sc_data_direction == DMA_TO_DEVICE) {
3451 scsi_cmnd->device->hostdata)->oas_enabled) {
3475 scsi_dma_unmap(scsi_cmnd);
3477 dma_unmap_sg(&phba->pcidev->dev, scsi_prot_sglist(scsi_cmnd),
3478 scsi_prot_sg_count(scsi_cmnd),
3479 scsi_cmnd->sc_data_direction);
3563 struct scsi_cmnd *cmnd = lpfc_cmd->pCmd;
3821 struct scsi_cmnd *cmnd = lpfc_cmd->pCmd;
4010 struct scsi_cmnd *cmd;
4340 struct scsi_cmnd *cmd;
4607 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd;
4610 int datadir = scsi_cmnd->sc_data_direction;
4621 if (scsi_sg_count(scsi_cmnd)) {
4629 fcpdl = scsi_bufflen(scsi_cmnd);
4649 * of the scsi_cmnd request_buffer
4683 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd;
4690 int datadir = scsi_cmnd->sc_data_direction;
4701 if (scsi_sg_count(scsi_cmnd)) {
4790 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd;
4805 memcpy(ptr, scsi_cmnd->cmnd, scsi_cmnd->cmd_len);
4806 if (scsi_cmnd->cmd_len < LPFC_FCP_CDB_LEN) {
4807 ptr += scsi_cmnd->cmd_len;
4808 memset(ptr, 0, (LPFC_FCP_CDB_LEN - scsi_cmnd->cmd_len));
5186 * @cmd: Pointer to scsi_cmnd data structure
5189 static char *lpfc_is_command_vm_io(struct scsi_cmnd *cmd)
5201 * @cmnd: Pointer to scsi_cmnd data structure.
5212 lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd)
5499 * @cmnd: Pointer to scsi_cmnd data structure.
5508 lpfc_abort_handler(struct scsi_cmnd *cmnd)
5960 * @cmnd: Pointer to scsi_cmnd data structure.
5970 lpfc_device_reset_handler(struct scsi_cmnd *cmnd)
6038 * @cmnd: Pointer to scsi_cmnd data structure.
6048 lpfc_target_reset_handler(struct scsi_cmnd *cmnd)
6163 * @cmnd: Pointer to scsi_cmnd data structure.
6178 lpfc_host_reset_handler(struct scsi_cmnd *cmnd)
6721 lpfc_no_command(struct Scsi_Host *shost, struct scsi_cmnd *cmnd)