Lines Matching refs:a
55 bt_addr_t a; member
80 static inline int bt_addr_cmp(const bt_addr_t *a, const bt_addr_t *b) in bt_addr_cmp() argument
82 return memcmp(a, b, sizeof(*a)); in bt_addr_cmp()
90 static inline bool bt_addr_eq(const bt_addr_t *a, const bt_addr_t *b) in bt_addr_eq() argument
92 return bt_addr_cmp(a, b) == 0; in bt_addr_eq()
104 static inline int bt_addr_le_cmp(const bt_addr_le_t *a, const bt_addr_le_t *b) in bt_addr_le_cmp() argument
106 return memcmp(a, b, sizeof(*a)); in bt_addr_le_cmp()
117 static inline bool bt_addr_le_eq(const bt_addr_le_t *a, const bt_addr_le_t *b) in bt_addr_le_eq() argument
119 return bt_addr_le_cmp(a, b) == 0; in bt_addr_le_eq()
143 #define BT_ADDR_IS_RPA(a) (((a)->val[5] & 0xc0) == 0x40) argument
146 #define BT_ADDR_IS_NRPA(a) (((a)->val[5] & 0xc0) == 0x00) argument
148 #define BT_ADDR_IS_STATIC(a) (((a)->val[5] & 0xc0) == 0xc0) argument
151 #define BT_ADDR_SET_RPA(a) ((a)->val[5] = (((a)->val[5] & 0x3f) | 0x40)) argument
153 #define BT_ADDR_SET_NRPA(a) ((a)->val[5] &= 0x3f) argument
155 #define BT_ADDR_SET_STATIC(a) ((a)->val[5] |= 0xc0) argument
176 return BT_ADDR_IS_RPA(&addr->a); in bt_addr_le_is_rpa()
194 return BT_ADDR_IS_STATIC(&addr->a); in bt_addr_le_is_identity()
266 addr->a.val[5], addr->a.val[4], addr->a.val[3], in bt_addr_le_to_str()
267 addr->a.val[2], addr->a.val[1], addr->a.val[0], type); in bt_addr_le_to_str()