Lines Matching refs:ct_pkt

66 	struct ct_entry_24xx *ct_pkt;  in qla24xx_prep_ms_iocb()  local
68 ct_pkt = (struct ct_entry_24xx *)ha->ms_iocb; in qla24xx_prep_ms_iocb()
69 memset(ct_pkt, 0, sizeof(struct ct_entry_24xx)); in qla24xx_prep_ms_iocb()
71 ct_pkt->entry_type = CT_IOCB_TYPE; in qla24xx_prep_ms_iocb()
72 ct_pkt->entry_count = 1; in qla24xx_prep_ms_iocb()
73 ct_pkt->nport_handle = __constant_cpu_to_le16(NPH_SNS); in qla24xx_prep_ms_iocb()
74 ct_pkt->timeout = cpu_to_le16(ha->r_a_tov / 10 * 2); in qla24xx_prep_ms_iocb()
75 ct_pkt->cmd_dsd_count = __constant_cpu_to_le16(1); in qla24xx_prep_ms_iocb()
76 ct_pkt->rsp_dsd_count = __constant_cpu_to_le16(1); in qla24xx_prep_ms_iocb()
77 ct_pkt->rsp_byte_count = cpu_to_le32(rsp_size); in qla24xx_prep_ms_iocb()
78 ct_pkt->cmd_byte_count = cpu_to_le32(req_size); in qla24xx_prep_ms_iocb()
80 ct_pkt->dseg_0_address[0] = cpu_to_le32(LSD(ha->ct_sns_dma)); in qla24xx_prep_ms_iocb()
81 ct_pkt->dseg_0_address[1] = cpu_to_le32(MSD(ha->ct_sns_dma)); in qla24xx_prep_ms_iocb()
82 ct_pkt->dseg_0_len = ct_pkt->cmd_byte_count; in qla24xx_prep_ms_iocb()
84 ct_pkt->dseg_1_address[0] = cpu_to_le32(LSD(ha->ct_sns_dma)); in qla24xx_prep_ms_iocb()
85 ct_pkt->dseg_1_address[1] = cpu_to_le32(MSD(ha->ct_sns_dma)); in qla24xx_prep_ms_iocb()
86 ct_pkt->dseg_1_len = ct_pkt->rsp_byte_count; in qla24xx_prep_ms_iocb()
87 ct_pkt->vp_index = vha->vp_idx; in qla24xx_prep_ms_iocb()
89 return (ct_pkt); in qla24xx_prep_ms_iocb()
1201 struct ct_entry_24xx *ct_pkt; in qla24xx_prep_ms_fdmi_iocb() local
1204 ct_pkt = (struct ct_entry_24xx *)ha->ms_iocb; in qla24xx_prep_ms_fdmi_iocb()
1205 memset(ct_pkt, 0, sizeof(struct ct_entry_24xx)); in qla24xx_prep_ms_fdmi_iocb()
1207 ct_pkt->entry_type = CT_IOCB_TYPE; in qla24xx_prep_ms_fdmi_iocb()
1208 ct_pkt->entry_count = 1; in qla24xx_prep_ms_fdmi_iocb()
1209 ct_pkt->nport_handle = cpu_to_le16(vha->mgmt_svr_loop_id); in qla24xx_prep_ms_fdmi_iocb()
1210 ct_pkt->timeout = cpu_to_le16(ha->r_a_tov / 10 * 2); in qla24xx_prep_ms_fdmi_iocb()
1211 ct_pkt->cmd_dsd_count = __constant_cpu_to_le16(1); in qla24xx_prep_ms_fdmi_iocb()
1212 ct_pkt->rsp_dsd_count = __constant_cpu_to_le16(1); in qla24xx_prep_ms_fdmi_iocb()
1213 ct_pkt->rsp_byte_count = cpu_to_le32(rsp_size); in qla24xx_prep_ms_fdmi_iocb()
1214 ct_pkt->cmd_byte_count = cpu_to_le32(req_size); in qla24xx_prep_ms_fdmi_iocb()
1216 ct_pkt->dseg_0_address[0] = cpu_to_le32(LSD(ha->ct_sns_dma)); in qla24xx_prep_ms_fdmi_iocb()
1217 ct_pkt->dseg_0_address[1] = cpu_to_le32(MSD(ha->ct_sns_dma)); in qla24xx_prep_ms_fdmi_iocb()
1218 ct_pkt->dseg_0_len = ct_pkt->cmd_byte_count; in qla24xx_prep_ms_fdmi_iocb()
1220 ct_pkt->dseg_1_address[0] = cpu_to_le32(LSD(ha->ct_sns_dma)); in qla24xx_prep_ms_fdmi_iocb()
1221 ct_pkt->dseg_1_address[1] = cpu_to_le32(MSD(ha->ct_sns_dma)); in qla24xx_prep_ms_fdmi_iocb()
1222 ct_pkt->dseg_1_len = ct_pkt->rsp_byte_count; in qla24xx_prep_ms_fdmi_iocb()
1223 ct_pkt->vp_index = vha->vp_idx; in qla24xx_prep_ms_fdmi_iocb()
1225 return ct_pkt; in qla24xx_prep_ms_fdmi_iocb()
1233 struct ct_entry_24xx *ct_pkt = (struct ct_entry_24xx *)ha->ms_iocb; in qla2x00_update_ms_fdmi_iocb() local
1236 ct_pkt->cmd_byte_count = cpu_to_le32(req_size); in qla2x00_update_ms_fdmi_iocb()
1237 ct_pkt->dseg_0_len = ct_pkt->cmd_byte_count; in qla2x00_update_ms_fdmi_iocb()
1807 struct ct_entry_24xx *ct_pkt; in qla24xx_prep_ms_fm_iocb() local
1809 ct_pkt = (struct ct_entry_24xx *)ha->ms_iocb; in qla24xx_prep_ms_fm_iocb()
1810 memset(ct_pkt, 0, sizeof(struct ct_entry_24xx)); in qla24xx_prep_ms_fm_iocb()
1812 ct_pkt->entry_type = CT_IOCB_TYPE; in qla24xx_prep_ms_fm_iocb()
1813 ct_pkt->entry_count = 1; in qla24xx_prep_ms_fm_iocb()
1814 ct_pkt->nport_handle = cpu_to_le16(vha->mgmt_svr_loop_id); in qla24xx_prep_ms_fm_iocb()
1815 ct_pkt->timeout = cpu_to_le16(ha->r_a_tov / 10 * 2); in qla24xx_prep_ms_fm_iocb()
1816 ct_pkt->cmd_dsd_count = __constant_cpu_to_le16(1); in qla24xx_prep_ms_fm_iocb()
1817 ct_pkt->rsp_dsd_count = __constant_cpu_to_le16(1); in qla24xx_prep_ms_fm_iocb()
1818 ct_pkt->rsp_byte_count = cpu_to_le32(rsp_size); in qla24xx_prep_ms_fm_iocb()
1819 ct_pkt->cmd_byte_count = cpu_to_le32(req_size); in qla24xx_prep_ms_fm_iocb()
1821 ct_pkt->dseg_0_address[0] = cpu_to_le32(LSD(ha->ct_sns_dma)); in qla24xx_prep_ms_fm_iocb()
1822 ct_pkt->dseg_0_address[1] = cpu_to_le32(MSD(ha->ct_sns_dma)); in qla24xx_prep_ms_fm_iocb()
1823 ct_pkt->dseg_0_len = ct_pkt->cmd_byte_count; in qla24xx_prep_ms_fm_iocb()
1825 ct_pkt->dseg_1_address[0] = cpu_to_le32(LSD(ha->ct_sns_dma)); in qla24xx_prep_ms_fm_iocb()
1826 ct_pkt->dseg_1_address[1] = cpu_to_le32(MSD(ha->ct_sns_dma)); in qla24xx_prep_ms_fm_iocb()
1827 ct_pkt->dseg_1_len = ct_pkt->rsp_byte_count; in qla24xx_prep_ms_fm_iocb()
1828 ct_pkt->vp_index = vha->vp_idx; in qla24xx_prep_ms_fm_iocb()
1830 return ct_pkt; in qla24xx_prep_ms_fm_iocb()