Lines Matching refs:sdp_slots
67 static sdp_slot_t sdp_slots[MAX_SDP_SLOTS]; variable
95 memset(sdp_slots, 0, sizeof(sdp_slot_t) * MAX_SDP_SLOTS); in init_sdp_slots()
99 sdp_slots[i].state = SDP_RECORD_FREE; in init_sdp_slots()
202 if (sdp_slots[i].state == SDP_RECORD_FREE) { in alloc_sdp_slot()
203 sdp_slots[i].state = SDP_RECORD_ALLOCED; in alloc_sdp_slot()
204 sdp_slots[i].record_data = record; in alloc_sdp_slot()
226 handle = sdp_slots[id].sdp_handle; in free_sdp_slot()
227 sdp_slots[id].sdp_handle = 0; in free_sdp_slot()
228 if (sdp_slots[id].state != SDP_RECORD_FREE) { in free_sdp_slot()
230 record = sdp_slots[id].record_data; in free_sdp_slot()
232 sdp_slots[id].state = SDP_RECORD_FREE; in free_sdp_slot()
255 if (sdp_slots[id].state != SDP_RECORD_ALLOCED) { in start_create_sdp()
260 __func__, id, sdp_slots[id].state, SDP_RECORD_ALLOCED); in start_create_sdp()
264 return &(sdp_slots[id]); in start_create_sdp()
269 sdp_slots[id].sdp_handle = handle; in set_sdp_handle()