Lines Matching refs:head
74 int head; in trigger_next_adc_job_if_any() local
76 head = adc->queue_head; in trigger_next_adc_job_if_any()
78 if (!adc->queue[head]) in trigger_next_adc_job_if_any()
81 adc_setup(pcf, adc->queue[head]->mux, adc->queue[head]->avg); in trigger_next_adc_job_if_any()
88 int head, tail; in adc_enqueue_request() local
92 head = adc->queue_head; in adc_enqueue_request()
102 if (head == tail) in adc_enqueue_request()
177 int head, res; in pcf50633_adc_irq() local
180 head = adc->queue_head; in pcf50633_adc_irq()
182 req = adc->queue[head]; in pcf50633_adc_irq()
188 adc->queue[head] = NULL; in pcf50633_adc_irq()
189 adc->queue_head = (head + 1) & in pcf50633_adc_irq()
223 int i, head; in pcf50633_adc_remove() local
228 head = adc->queue_head; in pcf50633_adc_remove()
230 if (WARN_ON(adc->queue[head])) in pcf50633_adc_remove()