Lines Matching refs:req
269 struct pcap_adc_request *req;
274 req = pcap->adc_queue[pcap->adc_head];
276 if (WARN(!req, "adc irq without pending request\n")) {
284 tmp |= (req->ch[0] << PCAP_ADC_ADA1_SHIFT);
285 tmp |= (req->ch[1] << PCAP_ADC_ADA2_SHIFT);
296 req->callback(req->data, res);
297 kfree(req);
308 struct pcap_adc_request *req;
312 req = kmalloc(sizeof(struct pcap_adc_request), GFP_KERNEL);
313 if (!req)
316 req->bank = bank;
317 req->flags = flags;
318 req->ch[0] = ch[0];
319 req->ch[1] = ch[1];
320 req->callback = callback;
321 req->data = data;
326 kfree(req);
329 pcap->adc_queue[pcap->adc_tail] = req;
342 struct pcap_adc_sync_request *req = param;
344 req->res[0] = res[0];
345 req->res[1] = res[1];
346 complete(&req->completion);