Lines Matching refs:i
179 uint16_t i; in pan_allocate_pcb() local
181 for (i = 0; i < MAX_PAN_CONNS; i++) { in pan_allocate_pcb()
182 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_allocate_pcb()
183 pan_cb.pcb[i].handle == handle) in pan_allocate_pcb()
187 for (i = 0; i < MAX_PAN_CONNS; i++) { in pan_allocate_pcb()
188 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_allocate_pcb()
189 pan_cb.pcb[i].rem_bda == p_bda) in pan_allocate_pcb()
193 for (i = 0; i < MAX_PAN_CONNS; i++) { in pan_allocate_pcb()
194 if (pan_cb.pcb[i].con_state == PAN_STATE_IDLE) { in pan_allocate_pcb()
195 memset(&(pan_cb.pcb[i]), 0, sizeof(tPAN_CONN)); in pan_allocate_pcb()
196 pan_cb.pcb[i].rem_bda = p_bda; in pan_allocate_pcb()
197 pan_cb.pcb[i].handle = handle; in pan_allocate_pcb()
198 return &(pan_cb.pcb[i]); in pan_allocate_pcb()
214 uint16_t i; in pan_get_pcb_by_handle() local
216 for (i = 0; i < MAX_PAN_CONNS; i++) { in pan_get_pcb_by_handle()
217 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_get_pcb_by_handle()
218 pan_cb.pcb[i].handle == handle) in pan_get_pcb_by_handle()
219 return &(pan_cb.pcb[i]); in pan_get_pcb_by_handle()
235 uint16_t i; in pan_get_pcb_by_addr() local
237 for (i = 0; i < MAX_PAN_CONNS; i++) { in pan_get_pcb_by_addr()
238 if (pan_cb.pcb[i].con_state == PAN_STATE_IDLE) continue; in pan_get_pcb_by_addr()
240 if (pan_cb.pcb[i].rem_bda == p_bda) return &(pan_cb.pcb[i]); in pan_get_pcb_by_addr()
262 uint16_t i; in pan_close_all_connections() local
264 for (i = 0; i < MAX_PAN_CONNS; i++) { in pan_close_all_connections()
265 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE) { in pan_close_all_connections()
266 BNEP_Disconnect(pan_cb.pcb[i].handle); in pan_close_all_connections()
267 pan_cb.pcb[i].con_state = PAN_STATE_IDLE; in pan_close_all_connections()
303 uint16_t i; in pan_dump_status() local
309 for (i = 0, p_pcb = pan_cb.pcb; i < MAX_PAN_CONNS; i++, p_pcb++) { in pan_dump_status()
310 VLOG(1) << +i << " state:" << p_pcb->con_state in pan_dump_status()