Lines Matching refs:req
267 struct pcap_adc_request *req;
272 req = pcap->adc_queue[pcap->adc_head];
274 if (WARN(!req, "adc irq without pending request\n")) {
282 tmp |= (req->ch[0] << PCAP_ADC_ADA1_SHIFT);
283 tmp |= (req->ch[1] << PCAP_ADC_ADA2_SHIFT);
294 req->callback(req->data, res);
295 kfree(req);
306 struct pcap_adc_request *req;
310 req = kmalloc(sizeof(struct pcap_adc_request), GFP_KERNEL);
311 if (!req)
314 req->bank = bank;
315 req->flags = flags;
316 req->ch[0] = ch[0];
317 req->ch[1] = ch[1];
318 req->callback = callback;
319 req->data = data;
324 kfree(req);
327 pcap->adc_queue[pcap->adc_tail] = req;
340 struct pcap_adc_sync_request *req = param;
342 req->res[0] = res[0];
343 req->res[1] = res[1];
344 complete(&req->completion);