Lines Matching refs:pcb
150 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_allocate_pcb()
151 pan_cb.pcb[i].handle == handle) in pan_allocate_pcb()
156 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_allocate_pcb()
157 pan_cb.pcb[i].rem_bda == p_bda) in pan_allocate_pcb()
162 if (pan_cb.pcb[i].con_state == PAN_STATE_IDLE) { in pan_allocate_pcb()
163 memset(&(pan_cb.pcb[i]), 0, sizeof(tPAN_CONN)); in pan_allocate_pcb()
164 pan_cb.pcb[i].rem_bda = p_bda; in pan_allocate_pcb()
165 pan_cb.pcb[i].handle = handle; in pan_allocate_pcb()
166 return &(pan_cb.pcb[i]); in pan_allocate_pcb()
185 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE && in pan_get_pcb_by_handle()
186 pan_cb.pcb[i].handle == handle) in pan_get_pcb_by_handle()
187 return &(pan_cb.pcb[i]); in pan_get_pcb_by_handle()
206 if (pan_cb.pcb[i].con_state == PAN_STATE_IDLE) continue; in pan_get_pcb_by_addr()
208 if (pan_cb.pcb[i].rem_bda == p_bda) return &(pan_cb.pcb[i]); in pan_get_pcb_by_addr()
233 if (pan_cb.pcb[i].con_state != PAN_STATE_IDLE) { in pan_close_all_connections()
234 BNEP_Disconnect(pan_cb.pcb[i].handle); in pan_close_all_connections()
235 pan_cb.pcb[i].con_state = PAN_STATE_IDLE; in pan_close_all_connections()
277 for (i = 0, p_pcb = pan_cb.pcb; i < MAX_PAN_CONNS; i++, p_pcb++) { in pan_dump_status()