Home | History | Annotate | Download | only in netbt

Lines Matching refs:req

114 	struct l2cap_req *req;
126 req = TAILQ_FIRST(&link->hl_reqs);
127 if (req && req->lr_id == next_id)
130 req = pool_get(&l2cap_req_pool, PR_NOWAIT);
131 if (req == NULL)
134 req->lr_id = link->hl_lastid = next_id;
136 req->lr_code = code;
137 req->lr_chan = chan;
138 req->lr_link = link;
140 callout_init(&req->lr_rtx, 0);
141 callout_setfunc(&req->lr_rtx, l2cap_rtx, req);
142 callout_schedule(&req->lr_rtx, l2cap_response_timeout * hz);
144 TAILQ_INSERT_TAIL(&link->hl_reqs, req, lr_next);
155 struct l2cap_req *req;
157 TAILQ_FOREACH(req, &link->hl_reqs, lr_next) {
158 if (req->lr_id == id)
159 return req;
169 l2cap_request_free(struct l2cap_req *req)
171 struct hci_link *link = req->lr_link;
173 callout_stop(&req->lr_rtx);
174 if (callout_invoking(&req->lr_rtx))
177 callout_destroy(&req->lr_rtx);
179 TAILQ_REMOVE(&link->hl_reqs, req, lr_next);
180 pool_put(&l2cap_req_pool, req);
193 struct l2cap_req *req = arg;
197 callout_ack(&req->lr_rtx);
199 chan = req->lr_chan;
200 l2cap_request_free(req);
202 DPRINTF("cid %d, ident %d\n", (chan ? chan->lc_lcid : 0), req->lr_id);