• Home
  • Raw
  • Download

Lines Matching refs:ct_pkt

70 	struct ct_entry_24xx *ct_pkt;  in qla24xx_prep_ms_iocb()  local
72 ct_pkt = (struct ct_entry_24xx *)ha->ms_iocb; in qla24xx_prep_ms_iocb()
73 memset(ct_pkt, 0, sizeof(struct ct_entry_24xx)); in qla24xx_prep_ms_iocb()
75 ct_pkt->entry_type = CT_IOCB_TYPE; in qla24xx_prep_ms_iocb()
76 ct_pkt->entry_count = 1; in qla24xx_prep_ms_iocb()
77 ct_pkt->nport_handle = __constant_cpu_to_le16(NPH_SNS); in qla24xx_prep_ms_iocb()
78 ct_pkt->timeout = cpu_to_le16(ha->r_a_tov / 10 * 2); in qla24xx_prep_ms_iocb()
79 ct_pkt->cmd_dsd_count = __constant_cpu_to_le16(1); in qla24xx_prep_ms_iocb()
80 ct_pkt->rsp_dsd_count = __constant_cpu_to_le16(1); in qla24xx_prep_ms_iocb()
81 ct_pkt->rsp_byte_count = cpu_to_le32(rsp_size); in qla24xx_prep_ms_iocb()
82 ct_pkt->cmd_byte_count = cpu_to_le32(req_size); in qla24xx_prep_ms_iocb()
84 ct_pkt->dseg_0_address[0] = cpu_to_le32(LSD(ha->ct_sns_dma)); in qla24xx_prep_ms_iocb()
85 ct_pkt->dseg_0_address[1] = cpu_to_le32(MSD(ha->ct_sns_dma)); in qla24xx_prep_ms_iocb()
86 ct_pkt->dseg_0_len = ct_pkt->cmd_byte_count; in qla24xx_prep_ms_iocb()
88 ct_pkt->dseg_1_address[0] = cpu_to_le32(LSD(ha->ct_sns_dma)); in qla24xx_prep_ms_iocb()
89 ct_pkt->dseg_1_address[1] = cpu_to_le32(MSD(ha->ct_sns_dma)); in qla24xx_prep_ms_iocb()
90 ct_pkt->dseg_1_len = ct_pkt->rsp_byte_count; in qla24xx_prep_ms_iocb()
91 ct_pkt->vp_index = vha->vp_idx; in qla24xx_prep_ms_iocb()
95 return (ct_pkt); in qla24xx_prep_ms_iocb()
1186 struct ct_entry_24xx *ct_pkt; in qla24xx_prep_ms_fdmi_iocb() local
1189 ct_pkt = (struct ct_entry_24xx *)ha->ms_iocb; in qla24xx_prep_ms_fdmi_iocb()
1190 memset(ct_pkt, 0, sizeof(struct ct_entry_24xx)); in qla24xx_prep_ms_fdmi_iocb()
1192 ct_pkt->entry_type = CT_IOCB_TYPE; in qla24xx_prep_ms_fdmi_iocb()
1193 ct_pkt->entry_count = 1; in qla24xx_prep_ms_fdmi_iocb()
1194 ct_pkt->nport_handle = cpu_to_le16(vha->mgmt_svr_loop_id); in qla24xx_prep_ms_fdmi_iocb()
1195 ct_pkt->timeout = cpu_to_le16(ha->r_a_tov / 10 * 2); in qla24xx_prep_ms_fdmi_iocb()
1196 ct_pkt->cmd_dsd_count = __constant_cpu_to_le16(1); in qla24xx_prep_ms_fdmi_iocb()
1197 ct_pkt->rsp_dsd_count = __constant_cpu_to_le16(1); in qla24xx_prep_ms_fdmi_iocb()
1198 ct_pkt->rsp_byte_count = cpu_to_le32(rsp_size); in qla24xx_prep_ms_fdmi_iocb()
1199 ct_pkt->cmd_byte_count = cpu_to_le32(req_size); in qla24xx_prep_ms_fdmi_iocb()
1201 ct_pkt->dseg_0_address[0] = cpu_to_le32(LSD(ha->ct_sns_dma)); in qla24xx_prep_ms_fdmi_iocb()
1202 ct_pkt->dseg_0_address[1] = cpu_to_le32(MSD(ha->ct_sns_dma)); in qla24xx_prep_ms_fdmi_iocb()
1203 ct_pkt->dseg_0_len = ct_pkt->cmd_byte_count; in qla24xx_prep_ms_fdmi_iocb()
1205 ct_pkt->dseg_1_address[0] = cpu_to_le32(LSD(ha->ct_sns_dma)); in qla24xx_prep_ms_fdmi_iocb()
1206 ct_pkt->dseg_1_address[1] = cpu_to_le32(MSD(ha->ct_sns_dma)); in qla24xx_prep_ms_fdmi_iocb()
1207 ct_pkt->dseg_1_len = ct_pkt->rsp_byte_count; in qla24xx_prep_ms_fdmi_iocb()
1208 ct_pkt->vp_index = vha->vp_idx; in qla24xx_prep_ms_fdmi_iocb()
1210 return ct_pkt; in qla24xx_prep_ms_fdmi_iocb()
1218 struct ct_entry_24xx *ct_pkt = (struct ct_entry_24xx *)ha->ms_iocb; in qla2x00_update_ms_fdmi_iocb() local
1221 ct_pkt->cmd_byte_count = cpu_to_le32(req_size); in qla2x00_update_ms_fdmi_iocb()
1222 ct_pkt->dseg_0_len = ct_pkt->cmd_byte_count; in qla2x00_update_ms_fdmi_iocb()
2478 struct ct_entry_24xx *ct_pkt; in qla24xx_prep_ms_fm_iocb() local
2480 ct_pkt = (struct ct_entry_24xx *)ha->ms_iocb; in qla24xx_prep_ms_fm_iocb()
2481 memset(ct_pkt, 0, sizeof(struct ct_entry_24xx)); in qla24xx_prep_ms_fm_iocb()
2483 ct_pkt->entry_type = CT_IOCB_TYPE; in qla24xx_prep_ms_fm_iocb()
2484 ct_pkt->entry_count = 1; in qla24xx_prep_ms_fm_iocb()
2485 ct_pkt->nport_handle = cpu_to_le16(vha->mgmt_svr_loop_id); in qla24xx_prep_ms_fm_iocb()
2486 ct_pkt->timeout = cpu_to_le16(ha->r_a_tov / 10 * 2); in qla24xx_prep_ms_fm_iocb()
2487 ct_pkt->cmd_dsd_count = __constant_cpu_to_le16(1); in qla24xx_prep_ms_fm_iocb()
2488 ct_pkt->rsp_dsd_count = __constant_cpu_to_le16(1); in qla24xx_prep_ms_fm_iocb()
2489 ct_pkt->rsp_byte_count = cpu_to_le32(rsp_size); in qla24xx_prep_ms_fm_iocb()
2490 ct_pkt->cmd_byte_count = cpu_to_le32(req_size); in qla24xx_prep_ms_fm_iocb()
2492 ct_pkt->dseg_0_address[0] = cpu_to_le32(LSD(ha->ct_sns_dma)); in qla24xx_prep_ms_fm_iocb()
2493 ct_pkt->dseg_0_address[1] = cpu_to_le32(MSD(ha->ct_sns_dma)); in qla24xx_prep_ms_fm_iocb()
2494 ct_pkt->dseg_0_len = ct_pkt->cmd_byte_count; in qla24xx_prep_ms_fm_iocb()
2496 ct_pkt->dseg_1_address[0] = cpu_to_le32(LSD(ha->ct_sns_dma)); in qla24xx_prep_ms_fm_iocb()
2497 ct_pkt->dseg_1_address[1] = cpu_to_le32(MSD(ha->ct_sns_dma)); in qla24xx_prep_ms_fm_iocb()
2498 ct_pkt->dseg_1_len = ct_pkt->rsp_byte_count; in qla24xx_prep_ms_fm_iocb()
2499 ct_pkt->vp_index = vha->vp_idx; in qla24xx_prep_ms_fm_iocb()
2501 return ct_pkt; in qla24xx_prep_ms_fm_iocb()