Lines Matching defs:type

910 	di.type     = (hdev->bus & 0x0f);
1143 bool hci_is_blocked_key(struct hci_dev *hdev, u8 type, u8 val[16])
1150 if (b->type == type && !memcmp(b->val, val, sizeof(b->val))) {
1206 if (conn->type == LE_LINK)
1226 static u8 ltk_role(u8 type)
1228 if (type == SMP_LTK)
1244 if (smp_ltk_is_sc(k) || ltk_role(k->type) == role) {
1331 bdaddr_t *bdaddr, u8 *val, u8 type,
1339 old_key_type = old_key->type;
1349 BT_DBG("%s key for %pMR type %u", hdev->name, bdaddr, type);
1354 if (type == HCI_LK_CHANGED_COMBINATION &&
1356 type = HCI_LK_COMBINATION;
1358 conn->key_type = type;
1365 if (type == HCI_LK_CHANGED_COMBINATION)
1366 key->type = old_key_type;
1368 key->type = type;
1371 *persistent = hci_persistent_key(hdev, conn, type,
1378 u8 addr_type, u8 type, u8 authenticated,
1382 u8 role = ltk_role(type);
1401 key->type = type;
1479 bool hci_bdaddr_is_paired(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 type)
1485 if (type == BDADDR_BREDR) {
1491 /* Convert to HCI addr type which struct smp_ltk uses */
1492 if (type == BDADDR_LE_PUBLIC)
2092 bdaddr_t *bdaddr, u8 type)
2097 if (!bacmp(&b->bdaddr, bdaddr) && b->bdaddr_type == type)
2106 u8 type)
2111 if (!bacmp(&b->bdaddr, bdaddr) && b->bdaddr_type == type)
2120 bdaddr_t *bdaddr, u8 type)
2125 if (!bacmp(&b->bdaddr, bdaddr) && b->bdaddr_type == type)
2142 int hci_bdaddr_list_add(struct list_head *list, bdaddr_t *bdaddr, u8 type)
2149 if (hci_bdaddr_list_lookup(list, bdaddr, type))
2157 entry->bdaddr_type = type;
2165 u8 type, u8 *peer_irk, u8 *local_irk)
2172 if (hci_bdaddr_list_lookup(list, bdaddr, type))
2180 entry->bdaddr_type = type;
2194 u8 type, u32 flags)
2201 if (hci_bdaddr_list_lookup(list, bdaddr, type))
2209 entry->bdaddr_type = type;
2217 int hci_bdaddr_list_del(struct list_head *list, bdaddr_t *bdaddr, u8 type)
2226 entry = hci_bdaddr_list_lookup(list, bdaddr, type);
2237 u8 type)
2246 entry = hci_bdaddr_list_lookup_with_irk(list, bdaddr, type);
2257 u8 type)
2266 entry = hci_bdaddr_list_lookup_with_flags(list, bdaddr, type);
2359 BT_DBG("addr %pMR (type %u)", addr, addr_type);
2390 BT_DBG("addr %pMR (type %u)", addr, addr_type);
2963 __u8 type;
2965 type = hci_conn_lookup_type(hdev, hci_handle(handle));
2966 if (type == ISO_LINK)
3060 BT_DBG("%s type %d len %d", hdev->name, hci_skb_pkt_type(skb),
3390 switch (conn->type) {
3407 bt_dev_err(hdev, "unknown link type %d", conn->type);
3414 static struct hci_conn *hci_low_sent(struct hci_dev *hdev, __u8 type,
3427 if (c->type != type || skb_queue_empty(&c->data_q))
3440 if (hci_conn_num(hdev, type) == num)
3452 static void hci_link_tx_to(struct hci_dev *hdev, __u8 type)
3463 if (c->type == type && c->sent) {
3478 static struct hci_chan *hci_chan_sent(struct hci_dev *hdev, __u8 type,
3494 if (conn->type != type)
3526 if (hci_conn_num(hdev, type) == conn_num)
3541 static void hci_prio_recalculate(struct hci_dev *hdev, __u8 type)
3554 if (conn->type != type)
3583 if (hci_conn_num(hdev, type) == num)
3591 static void __check_timeout(struct hci_dev *hdev, unsigned int cnt, u8 type)
3598 switch (type) {
3611 hci_link_tx_to(hdev, type);
3809 /* Send next queued raw (unknown type) packet */