Lines Matching refs:ct_pkt

71 	struct ct_entry_24xx *ct_pkt;  in qla24xx_prep_ms_iocb()  local
73 ct_pkt = (struct ct_entry_24xx *)arg->iocb; in qla24xx_prep_ms_iocb()
74 memset(ct_pkt, 0, sizeof(struct ct_entry_24xx)); in qla24xx_prep_ms_iocb()
76 ct_pkt->entry_type = CT_IOCB_TYPE; in qla24xx_prep_ms_iocb()
77 ct_pkt->entry_count = 1; in qla24xx_prep_ms_iocb()
78 ct_pkt->nport_handle = cpu_to_le16(arg->nport_handle); in qla24xx_prep_ms_iocb()
79 ct_pkt->timeout = cpu_to_le16(ha->r_a_tov / 10 * 2); in qla24xx_prep_ms_iocb()
80 ct_pkt->cmd_dsd_count = cpu_to_le16(1); in qla24xx_prep_ms_iocb()
81 ct_pkt->rsp_dsd_count = cpu_to_le16(1); in qla24xx_prep_ms_iocb()
82 ct_pkt->rsp_byte_count = cpu_to_le32(arg->rsp_size); in qla24xx_prep_ms_iocb()
83 ct_pkt->cmd_byte_count = cpu_to_le32(arg->req_size); in qla24xx_prep_ms_iocb()
85 put_unaligned_le64(arg->req_dma, &ct_pkt->dsd[0].address); in qla24xx_prep_ms_iocb()
86 ct_pkt->dsd[0].length = ct_pkt->cmd_byte_count; in qla24xx_prep_ms_iocb()
88 put_unaligned_le64(arg->rsp_dma, &ct_pkt->dsd[1].address); in qla24xx_prep_ms_iocb()
89 ct_pkt->dsd[1].length = ct_pkt->rsp_byte_count; in qla24xx_prep_ms_iocb()
90 ct_pkt->vp_index = vha->vp_idx; in qla24xx_prep_ms_iocb()
94 return (ct_pkt); in qla24xx_prep_ms_iocb()
1440 struct ct_entry_24xx *ct_pkt; in qla24xx_prep_ms_fdmi_iocb() local
1443 ct_pkt = (struct ct_entry_24xx *)ha->ms_iocb; in qla24xx_prep_ms_fdmi_iocb()
1444 memset(ct_pkt, 0, sizeof(struct ct_entry_24xx)); in qla24xx_prep_ms_fdmi_iocb()
1446 ct_pkt->entry_type = CT_IOCB_TYPE; in qla24xx_prep_ms_fdmi_iocb()
1447 ct_pkt->entry_count = 1; in qla24xx_prep_ms_fdmi_iocb()
1448 ct_pkt->nport_handle = cpu_to_le16(vha->mgmt_svr_loop_id); in qla24xx_prep_ms_fdmi_iocb()
1449 ct_pkt->timeout = cpu_to_le16(ha->r_a_tov / 10 * 2); in qla24xx_prep_ms_fdmi_iocb()
1450 ct_pkt->cmd_dsd_count = cpu_to_le16(1); in qla24xx_prep_ms_fdmi_iocb()
1451 ct_pkt->rsp_dsd_count = cpu_to_le16(1); in qla24xx_prep_ms_fdmi_iocb()
1452 ct_pkt->rsp_byte_count = cpu_to_le32(rsp_size); in qla24xx_prep_ms_fdmi_iocb()
1453 ct_pkt->cmd_byte_count = cpu_to_le32(req_size); in qla24xx_prep_ms_fdmi_iocb()
1455 put_unaligned_le64(ha->ct_sns_dma, &ct_pkt->dsd[0].address); in qla24xx_prep_ms_fdmi_iocb()
1456 ct_pkt->dsd[0].length = ct_pkt->cmd_byte_count; in qla24xx_prep_ms_fdmi_iocb()
1458 put_unaligned_le64(ha->ct_sns_dma, &ct_pkt->dsd[1].address); in qla24xx_prep_ms_fdmi_iocb()
1459 ct_pkt->dsd[1].length = ct_pkt->rsp_byte_count; in qla24xx_prep_ms_fdmi_iocb()
1460 ct_pkt->vp_index = vha->vp_idx; in qla24xx_prep_ms_fdmi_iocb()
1462 return ct_pkt; in qla24xx_prep_ms_fdmi_iocb()
1470 struct ct_entry_24xx *ct_pkt = (struct ct_entry_24xx *)ha->ms_iocb; in qla2x00_update_ms_fdmi_iocb() local
1473 ct_pkt->cmd_byte_count = cpu_to_le32(req_size); in qla2x00_update_ms_fdmi_iocb()
1474 ct_pkt->dsd[0].length = ct_pkt->cmd_byte_count; in qla2x00_update_ms_fdmi_iocb()