• 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/cxgb3i/

Lines Matching defs:tag

20  * struct cxgb3i_tag_format - cxgb3i ulp tag format for an iscsi entity
38 * @tag: ddp tag
46 u32 tag;
68 * @rsvd_tag_mask: tag mask
169 * cxgb3i ddp tag are 32 bits, it consists of reserved bits used by h/w and
174 * The upper most reserved bit can be used to check if a tag is ddp tag or not:
175 * if the bit is 0, the tag is a valid ddp tag
179 * cxgb3i_is_ddp_tag - check if a given tag is a hw/ddp tag
180 * @tformat: tag format information
181 * @tag: tag to be checked
183 * return true if the tag is a ddp tag, false otherwise.
185 static inline int cxgb3i_is_ddp_tag(struct cxgb3i_tag_format *tformat, u32 tag)
187 return !(tag & (1 << (tformat->rsvd_bits + tformat->rsvd_shift - 1)));
191 * cxgb3i_sw_tag_usable - check if s/w tag has enough bits left for hw bits
192 * @tformat: tag format information
193 * @sw_tag: s/w tag to be checked
195 * return true if the tag can be used for hw ddp tag, false otherwise.
205 * cxgb3i_set_non_ddp_tag - mark a given s/w tag as an invalid ddp tag
206 * @tformat: tag format information
207 * @sw_tag: s/w tag to be checked
209 * insert 1 at the upper most reserved bit to mark it as an invalid ddp tag.
227 * cxgb3i_ddp_tag_base - shift s/w tag bits so that reserved bits are not used
228 * @tformat: tag format information
229 * @sw_tag: s/w tag to be checked
248 * @tformat: tag format information
249 * @tag: tag to be checked
251 * return the reserved bits in the tag
254 u32 tag)
256 if (cxgb3i_is_ddp_tag(tformat, tag))
257 return (tag >> tformat->rsvd_shift) & tformat->rsvd_mask;
263 * @tformat: tag format information
264 * @tag: tag to be checked
266 * return the non-reserved bits in the tag.
269 u32 tag)
274 if (cxgb3i_is_ddp_tag(tformat, tag)) {
275 v1 = tag & ((1 << tformat->rsvd_shift) - 1);
276 v2 = (tag >> (shift + 1)) << tformat->rsvd_shift;
280 tag &= ~(1 << shift);
281 v1 = tag & mask;
282 v2 = (tag >> 1) & ~mask;
288 struct cxgb3i_tag_format *, u32 *tag,
290 void cxgb3i_ddp_tag_release(struct t3cdev *, u32 tag);