Lines Matching refs:lid
692 u32 lid;
2506 int (*attach_mcast)(struct ib_qp *qp, union ib_gid *gid, u16 lid);
2507 int (*detach_mcast)(struct ib_qp *qp, union ib_gid *gid, u16 lid);
4324 * @lid: Multicast group LID in host byte order.
4331 int ib_attach_mcast(struct ib_qp *qp, union ib_gid *gid, u16 lid);
4337 * @lid: Multicast group LID in host byte order.
4339 int ib_detach_mcast(struct ib_qp *qp, union ib_gid *gid, u16 lid);
4647 * ib_lid_cpu16 - Return lid in 16bit CPU encoding.
4649 * get the 32bit lid is from other sources for OPA.
4653 * @lid: A 32bit LID
4655 static inline u16 ib_lid_cpu16(u32 lid)
4657 WARN_ON_ONCE(lid & 0xFFFF0000);
4658 return (u16)lid;
4662 * ib_lid_be16 - Return lid in 16bit BE encoding.
4664 * @lid: A 32bit LID
4666 static inline __be16 ib_lid_be16(u32 lid)
4668 WARN_ON_ONCE(lid & 0xFFFF0000);
4669 return cpu_to_be16((u16)lid);