Lines Matching refs:addr
158 int bt_addr_le_create_nrpa(bt_addr_le_t *addr);
161 int bt_addr_le_create_static(bt_addr_le_t *addr);
170 static inline bool bt_addr_le_is_rpa(const bt_addr_le_t *addr) in bt_addr_le_is_rpa() argument
172 if (addr->type != BT_ADDR_LE_RANDOM) { in bt_addr_le_is_rpa()
176 return BT_ADDR_IS_RPA(&addr->a); in bt_addr_le_is_rpa()
188 static inline bool bt_addr_le_is_identity(const bt_addr_le_t *addr) in bt_addr_le_is_identity() argument
190 if (addr->type == BT_ADDR_LE_PUBLIC) { in bt_addr_le_is_identity()
194 return BT_ADDR_IS_STATIC(&addr->a); in bt_addr_le_is_identity()
225 static inline int bt_addr_to_str(const bt_addr_t *addr, char *str, size_t len) in bt_addr_to_str() argument
228 addr->val[5], addr->val[4], addr->val[3], in bt_addr_to_str()
229 addr->val[2], addr->val[1], addr->val[0]); in bt_addr_to_str()
242 static inline int bt_addr_le_to_str(const bt_addr_le_t *addr, char *str, in bt_addr_le_to_str() argument
247 switch (addr->type) { in bt_addr_le_to_str()
261 snprintk(type, sizeof(type), "0x%02x", addr->type); in bt_addr_le_to_str()
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()
278 int bt_addr_from_str(const char *str, bt_addr_t *addr);
289 int bt_addr_le_from_str(const char *str, const char *type, bt_addr_le_t *addr);