Lines Matching refs:rfc_slots

91 static rfc_slot_t rfc_slots[MAX_RFC_CHANNEL];  variable
109 memset(rfc_slots, 0, sizeof(rfc_slots)); in btsock_rfc_init()
110 for (size_t i = 0; i < ARRAY_SIZE(rfc_slots); ++i) { in btsock_rfc_init()
111 rfc_slots[i].scn = -1; in btsock_rfc_init()
112 rfc_slots[i].sdp_handle = 0; in btsock_rfc_init()
113 rfc_slots[i].fd = INVALID_FD; in btsock_rfc_init()
114 rfc_slots[i].app_fd = INVALID_FD; in btsock_rfc_init()
115 rfc_slots[i].incoming_queue = list_new(GKI_freebuf); in btsock_rfc_init()
116 assert(rfc_slots[i].incoming_queue != NULL); in btsock_rfc_init()
128 for (size_t i = 0; i < ARRAY_SIZE(rfc_slots); ++i) { in btsock_rfc_cleanup()
129 if (rfc_slots[i].id) in btsock_rfc_cleanup()
130 cleanup_rfc_slot(&rfc_slots[i]); in btsock_rfc_cleanup()
131 list_free(rfc_slots[i].incoming_queue); in btsock_rfc_cleanup()
137 for (size_t i = 0; i < ARRAY_SIZE(rfc_slots); ++i) in find_free_slot()
138 if (rfc_slots[i].fd == INVALID_FD) in find_free_slot()
139 return &rfc_slots[i]; in find_free_slot()
146 for (size_t i = 0; i < ARRAY_SIZE(rfc_slots); ++i) in find_rfc_slot_by_id()
147 if (rfc_slots[i].id == id) in find_rfc_slot_by_id()
148 return &rfc_slots[i]; in find_rfc_slot_by_id()
157 for (size_t i = 0; i < ARRAY_SIZE(rfc_slots); ++i) in find_rfc_slot_by_pending_sdp()
158 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()
159 min_id = rfc_slots[i].id; in find_rfc_slot_by_pending_sdp()
163 return (slot == -1) ? NULL : &rfc_slots[slot]; in find_rfc_slot_by_pending_sdp()
167 for (size_t i = 0; i < ARRAY_SIZE(rfc_slots); ++i) in is_requesting_sdp()
168 if (rfc_slots[i].id && rfc_slots[i].f.doing_sdp_request) in is_requesting_sdp()