Searched refs:tformat (Results 1 – 2 of 2) sorted by relevance
603 static inline int cxgbi_is_ddp_tag(struct cxgbi_tag_format *tformat, u32 tag) in cxgbi_is_ddp_tag() argument605 return !(tag & (1 << (tformat->rsvd_bits + tformat->rsvd_shift - 1))); in cxgbi_is_ddp_tag()608 static inline int cxgbi_sw_tag_usable(struct cxgbi_tag_format *tformat, in cxgbi_sw_tag_usable() argument611 sw_tag >>= (32 - tformat->rsvd_bits); in cxgbi_sw_tag_usable()615 static inline u32 cxgbi_set_non_ddp_tag(struct cxgbi_tag_format *tformat, in cxgbi_set_non_ddp_tag() argument618 unsigned char shift = tformat->rsvd_bits + tformat->rsvd_shift - 1; in cxgbi_set_non_ddp_tag()631 static inline u32 cxgbi_ddp_tag_base(struct cxgbi_tag_format *tformat, in cxgbi_ddp_tag_base() argument634 u32 mask = (1 << tformat->rsvd_shift) - 1; in cxgbi_ddp_tag_base()638 u32 v2 = sw_tag >> tformat->rsvd_shift; in cxgbi_ddp_tag_base()640 v2 <<= tformat->rsvd_bits + tformat->rsvd_shift; in cxgbi_ddp_tag_base()[all …]
1491 struct cxgbi_tag_format *tformat = &cdev->tag_format; in ddp_tag_reserve() local1519 tag = cxgbi_ddp_tag_base(tformat, sw_tag); in ddp_tag_reserve()1550 struct cxgbi_tag_format *tformat = &cdev->tag_format; in cxgbi_ddp_reserve() local1561 if (!cxgbi_sw_tag_usable(tformat, sw_tag)) { in cxgbi_ddp_reserve()1690 struct cxgbi_tag_format *tformat = &chba->cdev->tag_format; in task_release_itt() local1697 cxgbi_is_ddp_tag(tformat, tag)) in task_release_itt()1709 struct cxgbi_tag_format *tformat = &chba->cdev->tag_format; in task_reserve_itt() local1729 tag = cxgbi_set_non_ddp_tag(tformat, sw_tag); in task_reserve_itt()