Lines Matching refs:rhp
127 static inline int t3b_device(const struct iwch_dev *rhp) in t3b_device() argument
129 return rhp->rdev.t3cdev_p->type == T3B; in t3b_device()
132 static inline int t3a_device(const struct iwch_dev *rhp) in t3a_device() argument
134 return rhp->rdev.t3cdev_p->type == T3A; in t3a_device()
137 static inline struct iwch_cq *get_chp(struct iwch_dev *rhp, u32 cqid) in get_chp() argument
139 return idr_find(&rhp->cqidr, cqid); in get_chp()
142 static inline struct iwch_qp *get_qhp(struct iwch_dev *rhp, u32 qpid) in get_qhp() argument
144 return idr_find(&rhp->qpidr, qpid); in get_qhp()
147 static inline struct iwch_mr *get_mhp(struct iwch_dev *rhp, u32 mmid) in get_mhp() argument
149 return idr_find(&rhp->mmidr, mmid); in get_mhp()
152 static inline int insert_handle(struct iwch_dev *rhp, struct idr *idr, in insert_handle() argument
162 spin_lock_irq(&rhp->lock); in insert_handle()
165 spin_unlock_irq(&rhp->lock); in insert_handle()
171 static inline void remove_handle(struct iwch_dev *rhp, struct idr *idr, u32 id) in remove_handle() argument
173 spin_lock_irq(&rhp->lock); in remove_handle()
175 spin_unlock_irq(&rhp->lock); in remove_handle()