Lines Matching refs:lcmd_pkt
2968 uint16_t tot_dsds, struct cmd_type_7_fx00 *lcmd_pkt) in qlafx00_build_scsi_iocbs() argument
2988 lcmd_pkt->entry_type = FX00_COMMAND_TYPE_7; in qlafx00_build_scsi_iocbs()
2992 lcmd_pkt->byte_count = cpu_to_le32(0); in qlafx00_build_scsi_iocbs()
2998 lcmd_pkt->cntrl_flags = TMF_WRITE_DATA; in qlafx00_build_scsi_iocbs()
3001 lcmd_pkt->cntrl_flags = TMF_READ_DATA; in qlafx00_build_scsi_iocbs()
3007 cur_dsd = &lcmd_pkt->dsd; in qlafx00_build_scsi_iocbs()
3061 struct cmd_type_7_fx00 lcmd_pkt; in qlafx00_start_scsi() local
3110 memset(&lcmd_pkt, 0, REQUEST_ENTRY_SIZE); in qlafx00_start_scsi()
3112 lcmd_pkt.handle = make_handle(req->id, sp->handle); in qlafx00_start_scsi()
3113 lcmd_pkt.reserved_0 = 0; in qlafx00_start_scsi()
3114 lcmd_pkt.port_path_ctrl = 0; in qlafx00_start_scsi()
3115 lcmd_pkt.reserved_1 = 0; in qlafx00_start_scsi()
3116 lcmd_pkt.dseg_count = cpu_to_le16(tot_dsds); in qlafx00_start_scsi()
3117 lcmd_pkt.tgt_idx = cpu_to_le16(sp->fcport->tgt_id); in qlafx00_start_scsi()
3120 host_to_adap((uint8_t *)&llun, (uint8_t *)&lcmd_pkt.lun, in qlafx00_start_scsi()
3121 sizeof(lcmd_pkt.lun)); in qlafx00_start_scsi()
3124 host_to_adap(cmd->cmnd, lcmd_pkt.fcp_cdb, sizeof(lcmd_pkt.fcp_cdb)); in qlafx00_start_scsi()
3125 lcmd_pkt.byte_count = cpu_to_le32((uint32_t)scsi_bufflen(cmd)); in qlafx00_start_scsi()
3128 qlafx00_build_scsi_iocbs(sp, cmd_pkt, tot_dsds, &lcmd_pkt); in qlafx00_start_scsi()
3131 lcmd_pkt.entry_count = (uint8_t)req_cnt; in qlafx00_start_scsi()
3134 lcmd_pkt.entry_status = (uint8_t) rsp->id; in qlafx00_start_scsi()
3139 &lcmd_pkt, sizeof(lcmd_pkt)); in qlafx00_start_scsi()
3141 memcpy_toio((void __iomem *)cmd_pkt, &lcmd_pkt, REQUEST_ENTRY_SIZE); in qlafx00_start_scsi()