Lines Matching refs:rfc_slots
94 static rfc_slot_t rfc_slots[MAX_RFC_CHANNEL]; variable
114 memset(rfc_slots, 0, sizeof(rfc_slots)); in btsock_rfc_init()
115 for (size_t i = 0; i < ARRAY_SIZE(rfc_slots); ++i) { in btsock_rfc_init()
116 rfc_slots[i].scn = -1; in btsock_rfc_init()
117 rfc_slots[i].sdp_handle = 0; in btsock_rfc_init()
118 rfc_slots[i].fd = INVALID_FD; in btsock_rfc_init()
119 rfc_slots[i].app_fd = INVALID_FD; in btsock_rfc_init()
120 rfc_slots[i].incoming_queue = list_new(osi_free); in btsock_rfc_init()
121 assert(rfc_slots[i].incoming_queue != NULL); in btsock_rfc_init()
134 for (size_t i = 0; i < ARRAY_SIZE(rfc_slots); ++i) { in btsock_rfc_cleanup()
135 if (rfc_slots[i].id) in btsock_rfc_cleanup()
136 cleanup_rfc_slot(&rfc_slots[i]); in btsock_rfc_cleanup()
137 list_free(rfc_slots[i].incoming_queue); in btsock_rfc_cleanup()
138 rfc_slots[i].incoming_queue = NULL; in btsock_rfc_cleanup()
144 for (size_t i = 0; i < ARRAY_SIZE(rfc_slots); ++i) in find_free_slot()
145 if (rfc_slots[i].fd == INVALID_FD) in find_free_slot()
146 return &rfc_slots[i]; in find_free_slot()
153 for (size_t i = 0; i < ARRAY_SIZE(rfc_slots); ++i) in find_rfc_slot_by_id()
154 if (rfc_slots[i].id == id) in find_rfc_slot_by_id()
155 return &rfc_slots[i]; in find_rfc_slot_by_id()
164 for (size_t i = 0; i < ARRAY_SIZE(rfc_slots); ++i) in find_rfc_slot_by_pending_sdp()
165 if (rfc_slots[i].id && rfc_slots[i].f.pending_sdp_request && rfc_slots[i].id < min_id) { in find_rfc_slot_by_pending_sdp()
166 min_id = rfc_slots[i].id; in find_rfc_slot_by_pending_sdp()
170 return (slot == -1) ? NULL : &rfc_slots[slot]; in find_rfc_slot_by_pending_sdp()
174 for (size_t i = 0; i < ARRAY_SIZE(rfc_slots); ++i) in is_requesting_sdp()
175 if (rfc_slots[i].id && rfc_slots[i].f.doing_sdp_request) in is_requesting_sdp()