Home
last modified time | relevance | path

Searched refs:tformat (Results 1 – 3 of 3) sorted by relevance

/drivers/scsi/cxgb3i/
Dcxgb3i_ddp.h182 static inline int cxgb3i_is_ddp_tag(struct cxgb3i_tag_format *tformat, u32 tag) in cxgb3i_is_ddp_tag() argument
184 return !(tag & (1 << (tformat->rsvd_bits + tformat->rsvd_shift - 1))); in cxgb3i_is_ddp_tag()
195 static inline int cxgb3i_sw_tag_usable(struct cxgb3i_tag_format *tformat, in cxgb3i_sw_tag_usable() argument
198 sw_tag >>= (32 - tformat->rsvd_bits); in cxgb3i_sw_tag_usable()
209 static inline u32 cxgb3i_set_non_ddp_tag(struct cxgb3i_tag_format *tformat, in cxgb3i_set_non_ddp_tag() argument
212 unsigned char shift = tformat->rsvd_bits + tformat->rsvd_shift - 1; in cxgb3i_set_non_ddp_tag()
230 static inline u32 cxgb3i_ddp_tag_base(struct cxgb3i_tag_format *tformat, in cxgb3i_ddp_tag_base() argument
233 u32 mask = (1 << tformat->rsvd_shift) - 1; in cxgb3i_ddp_tag_base()
237 u32 v2 = sw_tag >> tformat->rsvd_shift; in cxgb3i_ddp_tag_base()
239 v2 <<= tformat->rsvd_shift + tformat->rsvd_bits; in cxgb3i_ddp_tag_base()
[all …]
Dcxgb3i_ddp.c367 struct cxgb3i_tag_format *tformat, u32 *tagp, in cxgb3i_ddp_tag_reserve() argument
408 tag = cxgb3i_ddp_tag_base(tformat, sw_tag); in cxgb3i_ddp_tag_reserve()
664 struct cxgb3i_tag_format *tformat, in cxgb3i_adapter_ddp_init() argument
670 if (!tformat) in cxgb3i_adapter_ddp_init()
680 idx_bits = 32 - tformat->sw_bits; in cxgb3i_adapter_ddp_init()
681 tformat->rsvd_bits = ddp->idx_bits; in cxgb3i_adapter_ddp_init()
682 tformat->rsvd_shift = PPOD_IDX_SHIFT; in cxgb3i_adapter_ddp_init()
683 tformat->rsvd_mask = (1 << tformat->rsvd_bits) - 1; in cxgb3i_adapter_ddp_init()
686 tformat->sw_bits, tformat->rsvd_bits, in cxgb3i_adapter_ddp_init()
687 tformat->rsvd_shift, tformat->rsvd_mask); in cxgb3i_adapter_ddp_init()
Dcxgb3i_iscsi.c774 struct cxgb3i_tag_format *tformat = &snic->tag_format; in cxgb3i_reserve_itt() local
781 cxgb3i_sw_tag_usable(tformat, sw_tag)) { in cxgb3i_reserve_itt()
793 tformat, &tag, in cxgb3i_reserve_itt()
801 tag = cxgb3i_set_non_ddp_tag(tformat, sw_tag); in cxgb3i_reserve_itt()
822 struct cxgb3i_tag_format *tformat = &snic->tag_format; in cxgb3i_release_itt() local
829 cxgb3i_is_ddp_tag(tformat, tag)) in cxgb3i_release_itt()