Lines Matching defs:unit
59 struct hci_unit *unit;
67 SIMPLEQ_FOREACH(unit, &hci_unit_list, hci_next) {
68 if ((unit->hci_flags & BTF_UP) == 0)
71 TAILQ_FOREACH(link, &unit->hci_links, hl_next) {
84 SIMPLEQ_FOREACH(unit, &hci_unit_list, hci_next) {
85 if ((unit->hci_flags & BTF_UP) == 0)
88 memo = hci_memo_find(unit, dest);
94 * Last ditch effort, lets use the first unit we find
97 SIMPLEQ_FOREACH(unit, &hci_unit_list, hci_next) {
98 if ((unit->hci_flags & BTF_UP) == 0)
107 bdaddr_copy(src, &unit->hci_bdaddr);
112 * find unit memo from bdaddr
115 hci_memo_find(struct hci_unit *unit, bdaddr_t *bdaddr)
122 m0 = LIST_FIRST(&unit->hci_memos);
143 * Make a new memo on unit for bdaddr. If a memo exists, just
147 hci_memo_new(struct hci_unit *unit, bdaddr_t *bdaddr)
151 memo = hci_memo_find(unit, bdaddr);
166 LIST_INSERT_HEAD(&unit->hci_memos, memo, next);