ctio 1878 drivers/scsi/qla2xxx/qla_target.c struct ctio7_to_24xx *ctio; ctio 1882 drivers/scsi/qla2xxx/qla_target.c ctio = (struct ctio7_to_24xx *)qla2x00_alloc_iocbs_ready(qpair, NULL); ctio 1883 drivers/scsi/qla2xxx/qla_target.c if (ctio == NULL) { ctio 1902 drivers/scsi/qla2xxx/qla_target.c ctio->entry_type = CTIO_TYPE7; ctio 1903 drivers/scsi/qla2xxx/qla_target.c ctio->entry_count = 1; ctio 1904 drivers/scsi/qla2xxx/qla_target.c ctio->nport_handle = entry->nport_handle; ctio 1905 drivers/scsi/qla2xxx/qla_target.c ctio->handle = QLA_TGT_SKIP_HANDLE | CTIO_COMPLETION_HANDLE_MARK; ctio 1906 drivers/scsi/qla2xxx/qla_target.c ctio->timeout = cpu_to_le16(QLA_TGT_TIMEOUT); ctio 1907 drivers/scsi/qla2xxx/qla_target.c ctio->vp_index = vha->vp_idx; ctio 1908 drivers/scsi/qla2xxx/qla_target.c ctio->exchange_addr = entry->exchange_addr_to_abort; ctio 1912 drivers/scsi/qla2xxx/qla_target.c ctio->initiator_id = entry->fcp_hdr_le.s_id; ctio 1919 drivers/scsi/qla2xxx/qla_target.c ctio->initiator_id = entry->fcp_hdr_le.d_id; ctio 1924 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.flags = cpu_to_le16(tmp); ctio 1925 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.ox_id = entry->fcp_hdr_le.ox_id; ctio 1929 drivers/scsi/qla2xxx/qla_target.c le16_to_cpu(ctio->u.status1.flags), ctio 1930 drivers/scsi/qla2xxx/qla_target.c le16_to_cpu(ctio->u.status1.ox_id), ctio 2199 drivers/scsi/qla2xxx/qla_target.c struct ctio7_to_24xx *ctio; ctio 2207 drivers/scsi/qla2xxx/qla_target.c ctio = (struct ctio7_to_24xx *)__qla2x00_alloc_iocbs(qpair, NULL); ctio 2208 drivers/scsi/qla2xxx/qla_target.c if (ctio == NULL) { ctio 2215 drivers/scsi/qla2xxx/qla_target.c ctio->entry_type = CTIO_TYPE7; ctio 2216 drivers/scsi/qla2xxx/qla_target.c ctio->entry_count = 1; ctio 2217 drivers/scsi/qla2xxx/qla_target.c ctio->handle = QLA_TGT_SKIP_HANDLE | CTIO_COMPLETION_HANDLE_MARK; ctio 2218 drivers/scsi/qla2xxx/qla_target.c ctio->nport_handle = mcmd->sess->loop_id; ctio 2219 drivers/scsi/qla2xxx/qla_target.c ctio->timeout = cpu_to_le16(QLA_TGT_TIMEOUT); ctio 2220 drivers/scsi/qla2xxx/qla_target.c ctio->vp_index = ha->vp_idx; ctio 2221 drivers/scsi/qla2xxx/qla_target.c ctio->initiator_id = be_id_to_le(atio->u.isp24.fcp_hdr.s_id); ctio 2222 drivers/scsi/qla2xxx/qla_target.c ctio->exchange_addr = atio->u.isp24.exchange_addr; ctio 2225 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.flags = cpu_to_le16(temp); ctio 2227 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.ox_id = cpu_to_le16(temp); ctio 2228 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.scsi_status = ctio 2230 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.response_len = cpu_to_le16(8); ctio 2231 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.sense_data[0] = resp_code; ctio 2255 drivers/scsi/qla2xxx/qla_target.c struct ctio7_to_24xx *ctio; ctio 2264 drivers/scsi/qla2xxx/qla_target.c ctio = (struct ctio7_to_24xx *)qla2x00_alloc_iocbs(vha, NULL); ctio 2265 drivers/scsi/qla2xxx/qla_target.c if (!ctio) { ctio 2272 drivers/scsi/qla2xxx/qla_target.c ctio->entry_type = CTIO_TYPE7; ctio 2273 drivers/scsi/qla2xxx/qla_target.c ctio->entry_count = 1; ctio 2274 drivers/scsi/qla2xxx/qla_target.c ctio->handle = QLA_TGT_SKIP_HANDLE; ctio 2275 drivers/scsi/qla2xxx/qla_target.c ctio->nport_handle = cmd->sess->loop_id; ctio 2276 drivers/scsi/qla2xxx/qla_target.c ctio->timeout = cpu_to_le16(QLA_TGT_TIMEOUT); ctio 2277 drivers/scsi/qla2xxx/qla_target.c ctio->vp_index = vha->vp_idx; ctio 2278 drivers/scsi/qla2xxx/qla_target.c ctio->initiator_id = be_id_to_le(atio->u.isp24.fcp_hdr.s_id); ctio 2279 drivers/scsi/qla2xxx/qla_target.c ctio->exchange_addr = atio->u.isp24.exchange_addr; ctio 2282 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.flags = cpu_to_le16(temp); ctio 2284 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.ox_id = cpu_to_le16(temp); ctio 2285 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.scsi_status = ctio 2287 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.response_len = cpu_to_le16(18); ctio 2288 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.residual = cpu_to_le32(get_datalen_for_atio(atio)); ctio 2290 drivers/scsi/qla2xxx/qla_target.c if (ctio->u.status1.residual != 0) ctio 2291 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.scsi_status |= ctio 2295 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.sense_data[0] = 0x70; ctio 2296 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.sense_data[2] = sense_key; ctio 2298 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.sense_data[7] = 0xa; ctio 2300 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.sense_data[12] = asc; ctio 2301 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.sense_data[13] = ascq; ctio 2798 drivers/scsi/qla2xxx/qla_target.c static void qlt_24xx_init_ctio_to_isp(struct ctio7_to_24xx *ctio, ctio 2802 drivers/scsi/qla2xxx/qla_target.c (uint32_t)sizeof(ctio->u.status1.sense_data)); ctio 2803 drivers/scsi/qla2xxx/qla_target.c ctio->u.status0.flags |= cpu_to_le16(CTIO7_FLAGS_SEND_STATUS); ctio 2805 drivers/scsi/qla2xxx/qla_target.c ctio->u.status0.flags |= cpu_to_le16( ctio 2809 drivers/scsi/qla2xxx/qla_target.c ctio->u.status0.residual = cpu_to_le32(prm->residual); ctio 2810 drivers/scsi/qla2xxx/qla_target.c ctio->u.status0.scsi_status = cpu_to_le16(prm->rq_result); ctio 2822 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.flags |= cpu_to_le16( ctio 2827 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.flags &= ctio 2829 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.flags |= ctio 2831 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.scsi_status |= ctio 2833 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.sense_length = ctio 2836 drivers/scsi/qla2xxx/qla_target.c ((uint32_t *)ctio->u.status1.sense_data)[i] = ctio 2842 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.flags &= ctio 2844 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.flags |= ctio 2846 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.sense_length = 0; ctio 2847 drivers/scsi/qla2xxx/qla_target.c memset(ctio->u.status1.sense_data, 0, ctio 2848 drivers/scsi/qla2xxx/qla_target.c sizeof(ctio->u.status1.sense_data)); ctio 3292 drivers/scsi/qla2xxx/qla_target.c struct ctio7_to_24xx *ctio = ctio 3298 drivers/scsi/qla2xxx/qla_target.c ctio); ctio 3304 drivers/scsi/qla2xxx/qla_target.c memcpy(ctio, pkt, sizeof(*ctio)); ctio 3306 drivers/scsi/qla2xxx/qla_target.c ctio->entry_count = 1; ctio 3307 drivers/scsi/qla2xxx/qla_target.c ctio->entry_type = CTIO_TYPE7; ctio 3308 drivers/scsi/qla2xxx/qla_target.c ctio->dseg_count = 0; ctio 3309 drivers/scsi/qla2xxx/qla_target.c ctio->u.status1.flags &= ~cpu_to_le16( ctio 3321 drivers/scsi/qla2xxx/qla_target.c qlt_24xx_init_ctio_to_isp((struct ctio7_to_24xx *)ctio, ctio 3816 drivers/scsi/qla2xxx/qla_target.c static int qlt_term_ctio_exchange(struct qla_qpair *qpair, void *ctio, ctio 3832 drivers/scsi/qla2xxx/qla_target.c if (ctio != NULL) { ctio 3833 drivers/scsi/qla2xxx/qla_target.c struct ctio7_from_24xx *c = (struct ctio7_from_24xx *)ctio; ctio 3849 drivers/scsi/qla2xxx/qla_target.c struct rsp_que *rsp, uint32_t handle, void *ctio) ctio 3888 drivers/scsi/qla2xxx/qla_target.c } else if (ctio != NULL) { ctio 3903 drivers/scsi/qla2xxx/qla_target.c struct rsp_que *rsp, uint32_t handle, uint32_t status, void *ctio) ctio 3920 drivers/scsi/qla2xxx/qla_target.c cmd = qlt_ctio_to_cmd(vha, rsp, handle, ctio); ctio 3982 drivers/scsi/qla2xxx/qla_target.c (struct ctio_crc_from_fw *)ctio; ctio 3991 drivers/scsi/qla2xxx/qla_target.c qlt_handle_dif_error(qpair, cmd, ctio); ctio 4011 drivers/scsi/qla2xxx/qla_target.c if (qlt_term_ctio_exchange(qpair, ctio, cmd, status))