• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/fnic/

Lines Matching defs:desc

37 	struct wq_enet_desc *desc = vnic_wq_next_desc(wq);
39 wq_enet_desc_enc(desc,
61 struct wq_enet_desc *desc = vnic_wq_next_desc(wq);
63 wq_enet_desc_enc(desc,
91 struct fcpio_host_req *desc = vnic_wq_copy_next_desc(wq);
93 desc->hdr.type = FCPIO_ICMND_16; /* enum fcpio_type */
94 desc->hdr.status = 0; /* header status entry */
95 desc->hdr._resvd = 0; /* reserved */
96 desc->hdr.tag.u.req_id = req_id; /* id for this request */
98 desc->u.icmnd_16.lunmap_id = lunmap_id; /* index into lunmap table */
99 desc->u.icmnd_16.special_req_flags = spl_flags; /* exch req flags */
100 desc->u.icmnd_16._resvd0[0] = 0; /* reserved */
101 desc->u.icmnd_16._resvd0[1] = 0; /* reserved */
102 desc->u.icmnd_16._resvd0[2] = 0; /* reserved */
103 desc->u.icmnd_16.sgl_cnt = sgl_cnt; /* scatter-gather list count */
104 desc->u.icmnd_16.sense_len = sense_len; /* sense buffer length */
105 desc->u.icmnd_16.sgl_addr = sgl_addr; /* scatter-gather list addr */
106 desc->u.icmnd_16.sense_addr = sns_addr; /* sense buffer address */
107 desc->u.icmnd_16.crn = crn; /* SCSI Command Reference No.*/
108 desc->u.icmnd_16.pri_ta = pri_ta; /* SCSI Pri & Task attribute */
109 desc->u.icmnd_16._resvd1 = 0; /* reserved: should be 0 */
110 desc->u.icmnd_16.flags = flags; /* command flags */
111 memset(desc->u.icmnd_16.scsi_cdb, 0, CDB_16);
112 memcpy(desc->u.icmnd_16.scsi_cdb, scsi_cdb, cdb_len); /* SCSI CDB */
113 desc->u.icmnd_16.data_len = data_len; /* length of data expected */
114 memcpy(desc->u.icmnd_16.lun, lun, LUN_ADDRESS); /* LUN address */
115 desc->u.icmnd_16._resvd2 = 0; /* reserved */
116 hton24(desc->u.icmnd_16.d_id, d_id); /* FC vNIC only: Target D_ID */
117 desc->u.icmnd_16.mss = mss; /* FC vNIC only: max burst */
118 desc->u.icmnd_16.r_a_tov = ratov; /*FC vNIC only: Res. Alloc Timeout */
119 desc->u.icmnd_16.e_d_tov = edtov; /*FC vNIC only: Err Detect Timeout */
130 struct fcpio_host_req *desc = vnic_wq_copy_next_desc(wq);
132 desc->hdr.type = FCPIO_ITMF; /* enum fcpio_type */
133 desc->hdr.status = 0; /* header status entry */
134 desc->hdr._resvd = 0; /* reserved */
135 desc->hdr.tag.u.req_id = req_id; /* id for this request */
137 desc->u.itmf.lunmap_id = lunmap_id; /* index into lunmap table */
138 desc->u.itmf.tm_req = tm_req; /* SCSI Task Management request */
139 desc->u.itmf.t_tag = tm_id; /* tag of fcpio to be aborted */
140 desc->u.itmf._resvd = 0;
141 memcpy(desc->u.itmf.lun, lun, LUN_ADDRESS); /* LUN address */
142 desc->u.itmf._resvd1 = 0;
143 hton24(desc->u.itmf.d_id, d_id); /* FC vNIC only: Target D_ID */
144 desc->u.itmf.r_a_tov = r_a_tov; /* FC vNIC only: R_A_TOV in msec */
145 desc->u.itmf.e_d_tov = e_d_tov; /* FC vNIC only: E_D_TOV in msec */
154 struct fcpio_host_req *desc = vnic_wq_copy_next_desc(wq);
156 desc->hdr.type = FCPIO_FLOGI_REG; /* enum fcpio_type */
157 desc->hdr.status = 0; /* header status entry */
158 desc->hdr._resvd = 0; /* reserved */
159 desc->hdr.tag.u.req_id = req_id; /* id for this request */
161 desc->u.flogi_reg.format = format;
162 desc->u.flogi_reg._resvd = 0;
163 hton24(desc->u.flogi_reg.s_id, s_id);
164 memcpy(desc->u.flogi_reg.gateway_mac, gw_mac, ETH_ALEN);
174 struct fcpio_host_req *desc = vnic_wq_copy_next_desc(wq);
176 desc->hdr.type = FCPIO_FLOGI_FIP_REG; /* enum fcpio_type */
177 desc->hdr.status = 0; /* header status entry */
178 desc->hdr._resvd = 0; /* reserved */
179 desc->hdr.tag.u.req_id = req_id; /* id for this request */
181 desc->u.flogi_fip_reg._resvd0 = 0;
182 hton24(desc->u.flogi_fip_reg.s_id, s_id);
183 memcpy(desc->u.flogi_fip_reg.fcf_mac, fcf_mac, ETH_ALEN);
184 desc->u.flogi_fip_reg._resvd1 = 0;
185 desc->u.flogi_fip_reg.r_a_tov = r_a_tov;
186 desc->u.flogi_fip_reg.e_d_tov = e_d_tov;
187 memcpy(desc->u.flogi_fip_reg.ha_mac, ha_mac, ETH_ALEN);
188 desc->u.flogi_fip_reg._resvd2 = 0;
196 struct fcpio_host_req *desc = vnic_wq_copy_next_desc(wq);
198 desc->hdr.type = FCPIO_RESET; /* enum fcpio_type */
199 desc->hdr.status = 0; /* header status entry */
200 desc->hdr._resvd = 0; /* reserved */
201 desc->hdr.tag.u.req_id = req_id; /* id for this request */
210 struct fcpio_host_req *desc = vnic_wq_copy_next_desc(wq);
212 desc->hdr.type = FCPIO_LUNMAP_REQ; /* enum fcpio_type */
213 desc->hdr.status = 0; /* header status entry */
214 desc->hdr._resvd = 0; /* reserved */
215 desc->hdr.tag.u.req_id = req_id; /* id for this request */
217 desc->u.lunmap_req.addr = lunmap_addr; /* address of the buffer */
218 desc->u.lunmap_req.len = lunmap_len; /* len of the buffer */
227 struct rq_enet_desc *desc = vnic_rq_next_desc(rq);
229 rq_enet_desc_enc(desc,