Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/scsi/cxgbi/
Dlibcxgbi.h603 static inline int cxgbi_is_ddp_tag(struct cxgbi_tag_format *tformat, u32 tag) in cxgbi_is_ddp_tag() argument
605 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() argument
611 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() argument
618 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() argument
634 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 …]
Dlibcxgbi.c1495 struct cxgbi_tag_format *tformat = &cdev->tag_format; in ddp_tag_reserve() local
1523 tag = cxgbi_ddp_tag_base(tformat, sw_tag); in ddp_tag_reserve()
1554 struct cxgbi_tag_format *tformat = &cdev->tag_format; in cxgbi_ddp_reserve() local
1565 if (!cxgbi_sw_tag_usable(tformat, sw_tag)) { in cxgbi_ddp_reserve()
1694 struct cxgbi_tag_format *tformat = &chba->cdev->tag_format; in task_release_itt() local
1701 cxgbi_is_ddp_tag(tformat, tag)) in task_release_itt()
1713 struct cxgbi_tag_format *tformat = &chba->cdev->tag_format; in task_reserve_itt() local
1733 tag = cxgbi_set_non_ddp_tag(tformat, sw_tag); in task_reserve_itt()