Lines Matching defs:scsi_cmnd
88 lpfc_prot_group_type(struct lpfc_hba *phba, struct scsi_cmnd *sc);
91 lpfc_cmd_blksize(struct scsi_cmnd *sc)
99 lpfc_cmd_protect(struct scsi_cmnd *sc, int flag)
105 lpfc_cmd_guard_csum(struct scsi_cmnd *sc)
149 struct scsi_cmnd *cmd = lpfc_cmd->pCmd;
592 struct scsi_cmnd *cmnd)
631 struct scsi_cmnd *cmnd)
743 struct scsi_cmnd *cmnd)
837 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd;
846 int nseg, datadir = scsi_cmnd->sc_data_direction;
855 if (scsi_sg_count(scsi_cmnd)) {
863 nseg = dma_map_sg(&phba->pcidev->dev, scsi_sglist(scsi_cmnd),
864 scsi_sg_count(scsi_cmnd), datadir);
877 scsi_dma_unmap(scsi_cmnd);
890 scsi_for_each_sg(scsi_cmnd, sgel, nseg, num_bde) {
916 * scsi_cmnd request_buffer. Note that for SLI-2 the bdeSize is
949 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd));
955 iocb_cmd->un.fcpi.fcpi_parm = scsi_bufflen(scsi_cmnd);
984 lpfc_bg_err_inject(struct lpfc_hba *phba, struct scsi_cmnd *sc,
1391 lpfc_sc_to_bg_opcodes(struct lpfc_hba *phba, struct scsi_cmnd *sc,
1471 lpfc_bg_err_opcodes(struct lpfc_hba *phba, struct scsi_cmnd *sc,
1563 lpfc_bg_setup_bpl(struct lpfc_hba *phba, struct scsi_cmnd *sc,
1703 lpfc_bg_setup_bpl_prot(struct lpfc_hba *phba, struct scsi_cmnd *sc,
1948 lpfc_bg_setup_sgl(struct lpfc_hba *phba, struct scsi_cmnd *sc,
2128 lpfc_bg_setup_sgl_prot(struct lpfc_hba *phba, struct scsi_cmnd *sc,
2440 lpfc_prot_group_type(struct lpfc_hba *phba, struct scsi_cmnd *sc)
2480 struct scsi_cmnd *sc = lpfc_cmd->pCmd;
2523 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd;
2528 int datasegcnt, protsegcnt, datadir = scsi_cmnd->sc_data_direction;
2539 if (scsi_sg_count(scsi_cmnd)) {
2547 scsi_sglist(scsi_cmnd),
2548 scsi_sg_count(scsi_cmnd), datadir);
2561 prot_group_type = lpfc_prot_group_type(phba, scsi_cmnd);
2572 num_bde = lpfc_bg_setup_bpl(phba, scsi_cmnd, bpl,
2588 scsi_prot_sglist(scsi_cmnd),
2589 scsi_prot_sg_count(scsi_cmnd), datadir);
2591 scsi_dma_unmap(scsi_cmnd);
2607 num_bde = lpfc_bg_setup_bpl_prot(phba, scsi_cmnd, bpl,
2619 scsi_dma_unmap(scsi_cmnd);
2631 * scsi_cmnd request_buffer. Note that the bdeSize is explicitly
2660 scsi_dma_unmap(scsi_cmnd);
2662 dma_unmap_sg(&phba->pcidev->dev, scsi_prot_sglist(scsi_cmnd),
2663 scsi_prot_sg_count(scsi_cmnd),
2664 scsi_cmnd->sc_data_direction);
2717 struct scsi_cmnd *cmd = lpfc_cmd->pCmd;
2901 struct scsi_cmnd *cmd = lpfc_cmd->pCmd;
3048 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);
3219 * scsi_cmnd request_buffer. Note that for SLI-2 the bdeSize is
3223 fcp_cmnd->fcpDl = cpu_to_be32(scsi_bufflen(scsi_cmnd));
3229 iocb_cmd->un.fcpi.fcpi_parm = scsi_bufflen(scsi_cmnd);
3236 scsi_cmnd->device->hostdata)->oas_enabled) {
3239 scsi_cmnd->device->hostdata)->priority;
3262 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd;
3267 int datasegcnt, protsegcnt, datadir = scsi_cmnd->sc_data_direction;
3277 if (scsi_sg_count(scsi_cmnd)) {
3285 scsi_sglist(scsi_cmnd),
3286 scsi_sg_count(scsi_cmnd), datadir);
3307 prot_group_type = lpfc_prot_group_type(phba, scsi_cmnd);
3319 num_sge = lpfc_bg_setup_sgl(phba, scsi_cmnd, sgl,
3336 scsi_prot_sglist(scsi_cmnd),
3337 scsi_prot_sg_count(scsi_cmnd), datadir);
3339 scsi_dma_unmap(scsi_cmnd);
3355 num_sge = lpfc_bg_setup_sgl_prot(phba, scsi_cmnd, sgl,
3369 scsi_dma_unmap(scsi_cmnd);
3379 switch (scsi_get_prot_op(scsi_cmnd)) {
3416 scsi_cmnd->device->hostdata)->oas_enabled)
3422 scsi_dma_unmap(scsi_cmnd);
3424 dma_unmap_sg(&phba->pcidev->dev, scsi_prot_sglist(scsi_cmnd),
3425 scsi_prot_sg_count(scsi_cmnd),
3426 scsi_cmnd->sc_data_direction);
3490 struct scsi_cmnd *cmnd = lpfc_cmd->pCmd;
3612 struct scsi_cmnd *cmnd = lpfc_cmd->pCmd;
3805 struct scsi_cmnd *cmd;
4087 struct scsi_cmnd *scsi_cmnd = lpfc_cmd->pCmd;
4092 int datadir = scsi_cmnd->sc_data_direction;
4109 memcpy(ptr, scsi_cmnd->cmnd, scsi_cmnd->cmd_len);
4110 if (scsi_cmnd->cmd_len < LPFC_FCP_CDB_LEN) {
4111 ptr += scsi_cmnd->cmd_len;
4112 memset(ptr, 0, (LPFC_FCP_CDB_LEN - scsi_cmnd->cmd_len));
4129 if (scsi_sg_count(scsi_cmnd)) {
4135 fcpdl = scsi_bufflen(scsi_cmnd);
4165 * of the scsi_cmnd request_buffer
4490 * @cmnd: Pointer to scsi_cmnd data structure.
4502 lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd)
4717 * @cmnd: Pointer to scsi_cmnd data structure.
4726 lpfc_abort_handler(struct scsi_cmnd *cmnd)
5032 lpfc_send_taskmgmt(struct lpfc_vport *vport, struct scsi_cmnd *cmnd,
5121 * @cmnd: Pointer to scsi_cmnd data structure.
5131 lpfc_chk_tgt_mapped(struct lpfc_vport *vport, struct scsi_cmnd *cmnd)
5214 * @cmnd: Pointer to scsi_cmnd data structure.
5224 lpfc_device_reset_handler(struct scsi_cmnd *cmnd)
5285 * @cmnd: Pointer to scsi_cmnd data structure.
5295 lpfc_target_reset_handler(struct scsi_cmnd *cmnd)
5363 * @cmnd: Pointer to scsi_cmnd data structure.
5373 lpfc_bus_reset_handler(struct scsi_cmnd *cmnd)
5450 * @cmnd: Pointer to scsi_cmnd data structure.
5465 lpfc_host_reset_handler(struct scsi_cmnd *cmnd)
5997 lpfc_no_command(struct Scsi_Host *shost, struct scsi_cmnd *cmnd)
6003 lpfc_no_handler(struct scsi_cmnd *cmnd)