Lines Matching refs:desc

25 	struct wq_enet_desc *desc = vnic_wq_next_desc(wq);  in fnic_queue_wq_desc()  local
27 wq_enet_desc_enc(desc, in fnic_queue_wq_desc()
49 struct wq_enet_desc *desc = vnic_wq_next_desc(wq); in fnic_queue_wq_eth_desc() local
51 wq_enet_desc_enc(desc, in fnic_queue_wq_eth_desc()
79 struct fcpio_host_req *desc = vnic_wq_copy_next_desc(wq); in fnic_queue_wq_copy_desc_icmnd_16() local
81 desc->hdr.type = FCPIO_ICMND_16; /* enum fcpio_type */ in fnic_queue_wq_copy_desc_icmnd_16()
82 desc->hdr.status = 0; /* header status entry */ in fnic_queue_wq_copy_desc_icmnd_16()
83 desc->hdr._resvd = 0; /* reserved */ in fnic_queue_wq_copy_desc_icmnd_16()
84 desc->hdr.tag.u.req_id = req_id; /* id for this request */ in fnic_queue_wq_copy_desc_icmnd_16()
86 desc->u.icmnd_16.lunmap_id = lunmap_id; /* index into lunmap table */ in fnic_queue_wq_copy_desc_icmnd_16()
87 desc->u.icmnd_16.special_req_flags = spl_flags; /* exch req flags */ in fnic_queue_wq_copy_desc_icmnd_16()
88 desc->u.icmnd_16._resvd0[0] = 0; /* reserved */ in fnic_queue_wq_copy_desc_icmnd_16()
89 desc->u.icmnd_16._resvd0[1] = 0; /* reserved */ in fnic_queue_wq_copy_desc_icmnd_16()
90 desc->u.icmnd_16._resvd0[2] = 0; /* reserved */ in fnic_queue_wq_copy_desc_icmnd_16()
91 desc->u.icmnd_16.sgl_cnt = sgl_cnt; /* scatter-gather list count */ in fnic_queue_wq_copy_desc_icmnd_16()
92 desc->u.icmnd_16.sense_len = sense_len; /* sense buffer length */ in fnic_queue_wq_copy_desc_icmnd_16()
93 desc->u.icmnd_16.sgl_addr = sgl_addr; /* scatter-gather list addr */ in fnic_queue_wq_copy_desc_icmnd_16()
94 desc->u.icmnd_16.sense_addr = sns_addr; /* sense buffer address */ in fnic_queue_wq_copy_desc_icmnd_16()
95 desc->u.icmnd_16.crn = crn; /* SCSI Command Reference No.*/ in fnic_queue_wq_copy_desc_icmnd_16()
96 desc->u.icmnd_16.pri_ta = pri_ta; /* SCSI Pri & Task attribute */ in fnic_queue_wq_copy_desc_icmnd_16()
97 desc->u.icmnd_16._resvd1 = 0; /* reserved: should be 0 */ in fnic_queue_wq_copy_desc_icmnd_16()
98 desc->u.icmnd_16.flags = flags; /* command flags */ in fnic_queue_wq_copy_desc_icmnd_16()
99 memset(desc->u.icmnd_16.scsi_cdb, 0, CDB_16); in fnic_queue_wq_copy_desc_icmnd_16()
100 memcpy(desc->u.icmnd_16.scsi_cdb, scsi_cdb, cdb_len); /* SCSI CDB */ in fnic_queue_wq_copy_desc_icmnd_16()
101 desc->u.icmnd_16.data_len = data_len; /* length of data expected */ in fnic_queue_wq_copy_desc_icmnd_16()
102 memcpy(desc->u.icmnd_16.lun, lun, LUN_ADDRESS); /* LUN address */ in fnic_queue_wq_copy_desc_icmnd_16()
103 desc->u.icmnd_16._resvd2 = 0; /* reserved */ in fnic_queue_wq_copy_desc_icmnd_16()
104 hton24(desc->u.icmnd_16.d_id, d_id); /* FC vNIC only: Target D_ID */ in fnic_queue_wq_copy_desc_icmnd_16()
105 desc->u.icmnd_16.mss = mss; /* FC vNIC only: max burst */ in fnic_queue_wq_copy_desc_icmnd_16()
106 desc->u.icmnd_16.r_a_tov = ratov; /*FC vNIC only: Res. Alloc Timeout */ in fnic_queue_wq_copy_desc_icmnd_16()
107 desc->u.icmnd_16.e_d_tov = edtov; /*FC vNIC only: Err Detect Timeout */ in fnic_queue_wq_copy_desc_icmnd_16()
118 struct fcpio_host_req *desc = vnic_wq_copy_next_desc(wq); in fnic_queue_wq_copy_desc_itmf() local
120 desc->hdr.type = FCPIO_ITMF; /* enum fcpio_type */ in fnic_queue_wq_copy_desc_itmf()
121 desc->hdr.status = 0; /* header status entry */ in fnic_queue_wq_copy_desc_itmf()
122 desc->hdr._resvd = 0; /* reserved */ in fnic_queue_wq_copy_desc_itmf()
123 desc->hdr.tag.u.req_id = req_id; /* id for this request */ in fnic_queue_wq_copy_desc_itmf()
125 desc->u.itmf.lunmap_id = lunmap_id; /* index into lunmap table */ in fnic_queue_wq_copy_desc_itmf()
126 desc->u.itmf.tm_req = tm_req; /* SCSI Task Management request */ in fnic_queue_wq_copy_desc_itmf()
127 desc->u.itmf.t_tag = tm_id; /* tag of fcpio to be aborted */ in fnic_queue_wq_copy_desc_itmf()
128 desc->u.itmf._resvd = 0; in fnic_queue_wq_copy_desc_itmf()
129 memcpy(desc->u.itmf.lun, lun, LUN_ADDRESS); /* LUN address */ in fnic_queue_wq_copy_desc_itmf()
130 desc->u.itmf._resvd1 = 0; in fnic_queue_wq_copy_desc_itmf()
131 hton24(desc->u.itmf.d_id, d_id); /* FC vNIC only: Target D_ID */ in fnic_queue_wq_copy_desc_itmf()
132 desc->u.itmf.r_a_tov = r_a_tov; /* FC vNIC only: R_A_TOV in msec */ in fnic_queue_wq_copy_desc_itmf()
133 desc->u.itmf.e_d_tov = e_d_tov; /* FC vNIC only: E_D_TOV in msec */ in fnic_queue_wq_copy_desc_itmf()
142 struct fcpio_host_req *desc = vnic_wq_copy_next_desc(wq); in fnic_queue_wq_copy_desc_flogi_reg() local
144 desc->hdr.type = FCPIO_FLOGI_REG; /* enum fcpio_type */ in fnic_queue_wq_copy_desc_flogi_reg()
145 desc->hdr.status = 0; /* header status entry */ in fnic_queue_wq_copy_desc_flogi_reg()
146 desc->hdr._resvd = 0; /* reserved */ in fnic_queue_wq_copy_desc_flogi_reg()
147 desc->hdr.tag.u.req_id = req_id; /* id for this request */ in fnic_queue_wq_copy_desc_flogi_reg()
149 desc->u.flogi_reg.format = format; in fnic_queue_wq_copy_desc_flogi_reg()
150 desc->u.flogi_reg._resvd = 0; in fnic_queue_wq_copy_desc_flogi_reg()
151 hton24(desc->u.flogi_reg.s_id, s_id); in fnic_queue_wq_copy_desc_flogi_reg()
152 memcpy(desc->u.flogi_reg.gateway_mac, gw_mac, ETH_ALEN); in fnic_queue_wq_copy_desc_flogi_reg()
162 struct fcpio_host_req *desc = vnic_wq_copy_next_desc(wq); in fnic_queue_wq_copy_desc_fip_reg() local
164 desc->hdr.type = FCPIO_FLOGI_FIP_REG; /* enum fcpio_type */ in fnic_queue_wq_copy_desc_fip_reg()
165 desc->hdr.status = 0; /* header status entry */ in fnic_queue_wq_copy_desc_fip_reg()
166 desc->hdr._resvd = 0; /* reserved */ in fnic_queue_wq_copy_desc_fip_reg()
167 desc->hdr.tag.u.req_id = req_id; /* id for this request */ in fnic_queue_wq_copy_desc_fip_reg()
169 desc->u.flogi_fip_reg._resvd0 = 0; in fnic_queue_wq_copy_desc_fip_reg()
170 hton24(desc->u.flogi_fip_reg.s_id, s_id); in fnic_queue_wq_copy_desc_fip_reg()
171 memcpy(desc->u.flogi_fip_reg.fcf_mac, fcf_mac, ETH_ALEN); in fnic_queue_wq_copy_desc_fip_reg()
172 desc->u.flogi_fip_reg._resvd1 = 0; in fnic_queue_wq_copy_desc_fip_reg()
173 desc->u.flogi_fip_reg.r_a_tov = r_a_tov; in fnic_queue_wq_copy_desc_fip_reg()
174 desc->u.flogi_fip_reg.e_d_tov = e_d_tov; in fnic_queue_wq_copy_desc_fip_reg()
175 memcpy(desc->u.flogi_fip_reg.ha_mac, ha_mac, ETH_ALEN); in fnic_queue_wq_copy_desc_fip_reg()
176 desc->u.flogi_fip_reg._resvd2 = 0; in fnic_queue_wq_copy_desc_fip_reg()
184 struct fcpio_host_req *desc = vnic_wq_copy_next_desc(wq); in fnic_queue_wq_copy_desc_fw_reset() local
186 desc->hdr.type = FCPIO_RESET; /* enum fcpio_type */ in fnic_queue_wq_copy_desc_fw_reset()
187 desc->hdr.status = 0; /* header status entry */ in fnic_queue_wq_copy_desc_fw_reset()
188 desc->hdr._resvd = 0; /* reserved */ in fnic_queue_wq_copy_desc_fw_reset()
189 desc->hdr.tag.u.req_id = req_id; /* id for this request */ in fnic_queue_wq_copy_desc_fw_reset()
198 struct fcpio_host_req *desc = vnic_wq_copy_next_desc(wq); in fnic_queue_wq_copy_desc_lunmap() local
200 desc->hdr.type = FCPIO_LUNMAP_REQ; /* enum fcpio_type */ in fnic_queue_wq_copy_desc_lunmap()
201 desc->hdr.status = 0; /* header status entry */ in fnic_queue_wq_copy_desc_lunmap()
202 desc->hdr._resvd = 0; /* reserved */ in fnic_queue_wq_copy_desc_lunmap()
203 desc->hdr.tag.u.req_id = req_id; /* id for this request */ in fnic_queue_wq_copy_desc_lunmap()
205 desc->u.lunmap_req.addr = lunmap_addr; /* address of the buffer */ in fnic_queue_wq_copy_desc_lunmap()
206 desc->u.lunmap_req.len = lunmap_len; /* len of the buffer */ in fnic_queue_wq_copy_desc_lunmap()
215 struct rq_enet_desc *desc = vnic_rq_next_desc(rq); in fnic_queue_rq_desc() local
217 rq_enet_desc_enc(desc, in fnic_queue_rq_desc()