Lines Matching refs:p_q
1243 tL2C_CCB_Q *p_q = NULL;
1248 p_q = &p_ccb->p_lcb->ccb_queue;
1250 if ( (!p_ccb->in_use) || (p_q == NULL) )
1261 if (!p_q->p_first_ccb)
1263 p_q->p_first_ccb = p_q->p_last_ccb = p_ccb;
1268 p_ccb1 = p_q->p_first_ccb;
1276 if (p_ccb1 == p_q->p_first_ccb)
1277 p_q->p_first_ccb = p_ccb;
1294 p_q->p_last_ccb->p_next_ccb = p_ccb;
1297 p_ccb->p_prev_ccb = p_q->p_last_ccb;
1298 p_q->p_last_ccb = p_ccb;
1334 tL2C_CCB_Q *p_q = NULL;
1341 p_q = &p_ccb->p_lcb->ccb_queue;
1343 if ( (!p_ccb->in_use) || (p_q == NULL) || (p_q->p_first_ccb == NULL) )
1345 L2CAP_TRACE_ERROR ("l2cu_dequeue_ccb CID: 0x%04x ERROR in_use: %u p_lcb: 0x%08x p_q: 0x%08x p_q->p_first_ccb: 0x%08x",
1346 p_ccb->local_cid, p_ccb->in_use, p_ccb->p_lcb, p_q, p_q ? p_q->p_first_ccb : 0);
1381 if (p_ccb == p_q->p_first_ccb)
1384 p_q->p_first_ccb = p_ccb->p_next_ccb;
1386 if (p_q->p_first_ccb)
1387 p_q->p_first_ccb->p_prev_ccb = NULL;
1389 p_q->p_last_ccb = NULL;
1391 else if (p_ccb == p_q->p_last_ccb)
1394 p_q->p_last_ccb = p_ccb->p_prev_ccb;
1395 p_q->p_last_ccb->p_next_ccb = NULL;