Lines Matching refs:desc

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