Lines Matching refs:p_q
1125 tL2C_CCB_Q *p_q = NULL;
1130 p_q = &p_ccb->p_lcb->ccb_queue;
1132 if ( (!p_ccb->in_use) || (p_q == NULL) )
1143 if (!p_q->p_first_ccb)
1145 p_q->p_first_ccb = p_q->p_last_ccb = p_ccb;
1150 p_ccb1 = p_q->p_first_ccb;
1158 if (p_ccb1 == p_q->p_first_ccb)
1159 p_q->p_first_ccb = p_ccb;
1176 p_q->p_last_ccb->p_next_ccb = p_ccb;
1179 p_ccb->p_prev_ccb = p_q->p_last_ccb;
1180 p_q->p_last_ccb = p_ccb;
1216 tL2C_CCB_Q *p_q = NULL;
1223 p_q = &p_ccb->p_lcb->ccb_queue;
1225 if ( (!p_ccb->in_use) || (p_q == NULL) || (p_q->p_first_ccb == NULL) )
1227 L2CAP_TRACE_ERROR5 ("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",
1228 p_ccb->local_cid, p_ccb->in_use, p_ccb->p_lcb, p_q, p_q ? p_q->p_first_ccb : 0);
1263 if (p_ccb == p_q->p_first_ccb)
1266 p_q->p_first_ccb = p_ccb->p_next_ccb;
1268 if (p_q->p_first_ccb)
1269 p_q->p_first_ccb->p_prev_ccb = NULL;
1271 p_q->p_last_ccb = NULL;
1273 else if (p_ccb == p_q->p_last_ccb)
1276 p_q->p_last_ccb = p_ccb->p_prev_ccb;
1277 p_q->p_last_ccb->p_next_ccb = NULL;