Lines Matching full:lid

548 #define HFI1_IB_CFG_LIDLMC 0 /* LID (LS16b) and Mask (MS16b) */
793 /* LID programmed for this instance */
794 u32 lid; member
810 /* LID mask control */
1887 int hfi1_set_lid(struct hfi1_pportdata *ppd, u32 lid, u8 lmc);
2444 (ppd->lid >= be16_to_cpu(IB_MULTICAST_LID_BASE))) && in hfi1_update_ah_attr()
2456 * hfi1_check_mcast- Check if the given lid is
2459 * The LID might either reside in ah.dlid or might be
2463 static inline bool hfi1_check_mcast(u32 lid) in hfi1_check_mcast() argument
2465 return ((lid >= opa_get_mcast_base(OPA_MCAST_NR)) && in hfi1_check_mcast()
2466 (lid != be32_to_cpu(OPA_LID_PERMISSIVE))); in hfi1_check_mcast()
2469 #define opa_get_lid(lid, format) \ argument
2470 __opa_get_lid(lid, OPA_PORT_PACKET_FORMAT_##format)
2472 /* Convert a lid to a specific lid space */
2473 static inline u32 __opa_get_lid(u32 lid, u8 format) in __opa_get_lid() argument
2475 bool is_mcast = hfi1_check_mcast(lid); in __opa_get_lid()
2481 return (lid - opa_get_mcast_base(OPA_MCAST_NR) + in __opa_get_lid()
2483 return lid & 0xFFFFF; in __opa_get_lid()
2486 return (lid - opa_get_mcast_base(OPA_MCAST_NR) + in __opa_get_lid()
2488 return lid & 0xFFFFFF; in __opa_get_lid()
2491 return (lid - in __opa_get_lid()
2495 return lid & 0xFFFF; in __opa_get_lid()
2497 return lid; in __opa_get_lid()
2501 /* Return true if the given lid is the OPA 16B multicast range */
2502 static inline bool hfi1_is_16B_mcast(u32 lid) in hfi1_is_16B_mcast() argument
2504 return ((lid >= in hfi1_is_16B_mcast()
2506 (lid != opa_get_lid(be32_to_cpu(OPA_LID_PERMISSIVE), 16B))); in hfi1_is_16B_mcast()
2514 /* Modify ah_attr.dlid to be in the 32 bit LID space. in hfi1_make_opa_lid()
2517 * 32 bit permissive LID = 0xFFFFFFFF in hfi1_make_opa_lid()
2518 * Multicast LID range = 0xFFFFFFFE to 0xF0000000 in hfi1_make_opa_lid()
2519 * Unicast LID range = 0xEFFFFFFF to 1 in hfi1_make_opa_lid()
2520 * Invalid LID = 0 in hfi1_make_opa_lid()
2535 static inline u8 hfi1_get_packet_type(u32 lid) in hfi1_get_packet_type() argument
2537 /* 9B if lid > 0xF0000000 */ in hfi1_get_packet_type()
2538 if (lid >= opa_get_mcast_base(OPA_MCAST_NR)) in hfi1_get_packet_type()
2541 /* 16B if lid > 0xC000 */ in hfi1_get_packet_type()
2542 if (lid >= opa_get_lid(opa_get_mcast_base(OPA_MCAST_NR), 9B)) in hfi1_get_packet_type()
2548 static inline bool hfi1_get_hdr_type(u32 lid, struct rdma_ah_attr *attr) in hfi1_get_hdr_type() argument
2563 * or source lid is extended. in hfi1_get_hdr_type()
2568 return hfi1_get_packet_type(lid); in hfi1_get_hdr_type()