Searched refs:todo (Results 1 - 25 of 32) sorted by relevance

12

/drivers/media/dvb/dvb-core/
H A Ddvb_ringbuffer.c113 size_t todo = len; local
121 todo -= split;
124 if (copy_to_user(buf, rbuf->data+rbuf->pread, todo))
127 rbuf->pread = (rbuf->pread + todo) % rbuf->size;
134 size_t todo = len; local
141 todo -= split;
144 memcpy(buf, rbuf->data+rbuf->pread, todo);
146 rbuf->pread = (rbuf->pread + todo) % rbuf->size;
152 size_t todo = len; local
160 todo
186 size_t todo; local
214 size_t todo; local
[all...]
H A Ddmxdev.h88 int todo; member in struct:dmxdev_filter
H A Ddmxdev.c64 size_t todo; local
77 for (todo = count; todo > 0; todo -= ret) {
96 if (avail > todo)
97 avail = todo;
106 return (count - todo) ? (count - todo) : ret;
708 filter->todo = 0;
910 if (dfil->todo <
[all...]
/drivers/s390/cio/
H A Dccwreq.c173 enum uc_todo todo; local
195 todo = cdev->drv->uc_handler(cdev, lcirb);
197 CIO_HEX_EVENT(2, &todo, sizeof(todo));
198 switch (todo) {
H A Dcss.c427 * @todo: todo
429 * Schedule the operation identified by @todo to be performed on the slow path
433 void css_sched_sch_todo(struct subchannel *sch, enum sch_todo todo) argument
435 CIO_MSG_EVENT(4, "sch_todo: sched sch=0.%x.%04x todo=%d\n",
436 sch->schid.ssid, sch->schid.sch_no, todo);
437 if (sch->todo >= todo)
442 sch->todo = todo;
452 enum sch_todo todo; local
[all...]
H A Dcio.h72 * When rescheduled, todo's with higher values will overwrite those
100 enum sch_todo todo; member in struct:subchannel
H A Dcss.h149 void css_sched_sch_todo(struct subchannel *sch, enum sch_todo todo);
H A Ddevice.h103 void ccw_device_sched_todo(struct ccw_device *cdev, enum cdev_todo todo);
H A Ddevice.c2045 enum cdev_todo todo; local
2050 /* Find out todo. */
2052 todo = priv->todo;
2053 priv->todo = CDEV_TODO_NOTHING;
2054 CIO_MSG_EVENT(4, "cdev_todo: cdev=0.%x.%04x todo=%d\n",
2055 priv->dev_id.ssid, priv->dev_id.devno, todo);
2057 /* Perform todo. */
2058 switch (todo) {
2088 * @todo
2094 ccw_device_sched_todo(struct ccw_device *cdev, enum cdev_todo todo) argument
[all...]
H A Dio_sch.h157 enum cdev_todo todo; member in struct:ccw_device_private
/drivers/w1/slaves/
H A Dw1_ds2431.c104 int todo = count; local
113 while (todo > 0) {
116 if (todo >= W1_F2D_READ_MAXLEN)
119 block_read = todo;
124 todo -= W1_F2D_READ_MAXLEN;
/drivers/media/dvb/ttpci/
H A Dav7110_av.c402 unsigned long todo = count; local
405 while (todo > 0) {
409 return count - todo;
412 if (free > todo)
413 free = todo;
415 todo -= free;
419 return count - todo;
450 unsigned long todo = count; local
463 while (todo >= TS_SIZE) {
466 return count - todo;
487 unsigned long todo = count, n; local
520 unsigned long todo = count, n; local
550 unsigned long todo = count, n; local
[all...]
/drivers/firewire/
H A Dcore-cdev.c136 /* Schedule work and access todo only with client->lock held. */
139 ISO_RES_ALLOC_ONCE, ISO_RES_DEALLOC_ONCE,} todo; member in struct:iso_resource
1230 int generation, channel, bandwidth, todo; local
1235 todo = r->todo;
1237 if (todo == ISO_RES_ALLOC &&
1244 skip = todo == ISO_RES_REALLOC &&
1247 free = todo == ISO_RES_DEALLOC ||
1248 todo == ISO_RES_ALLOC_ONCE ||
1249 todo
1336 init_iso_resource(struct client *client, struct fw_cdev_allocate_iso_resource *request, int todo) argument
[all...]
/drivers/base/
H A Ddevres.c331 struct list_head *todo)
336 /* First pass - move normal devres entries to @todo and clear
356 list_move_tail(&node->entry, todo);
390 list_move_tail(&grp->node[0].entry, todo);
402 LIST_HEAD(todo); variable
406 cnt = remove_nodes(dev, first, end, &todo);
413 list_for_each_entry_safe_reverse(dr, tmp, &todo, node.entry) {
329 remove_nodes(struct device *dev, struct list_head *first, struct list_head *end, struct list_head *todo) argument
/drivers/usb/serial/
H A Dusb_wwan.c212 int left, todo; local
225 todo = left;
226 if (todo > OUT_BUFLEN)
227 todo = OUT_BUFLEN;
245 memcpy(this_urb->transfer_buffer, buf, todo);
246 this_urb->transfer_buffer_length = todo;
270 buf += todo;
271 left -= todo;
H A Dkobil_sct.c399 int todo = 0; local
430 todo = priv->filled - priv->cur_pos;
432 while (todo > 0) {
434 length = (todo < 8) ? todo : 8;
453 todo = priv->filled - priv->cur_pos;
455 if (todo > 0)
H A Dcyberjack.c366 short todo; local
398 todo = priv->rdtodo;
402 dbg("%s - rdtodo: %d", __func__, todo);
405 if (todo /* || (urb->actual_length==port->bulk_in_endpointAddress)*/) {
/drivers/atm/
H A Dsuni.c108 if (todo & flag) { \
111 todo &= ~flag; \
117 int todo; local
119 if (get_user(todo,(int __user *)arg)) return -EFAULT;
128 return put_user(todo,(int __user *)arg) ? -EFAULT : 0;
/drivers/media/video/bt8xx/
H A Dbttv-risc.c53 u32 instructions,line,todo; local
97 todo = bpl;
101 todo -= (sg_dma_len(sg)-offset);
104 while (todo > sg_dma_len(sg)) {
108 todo -= sg_dma_len(sg);
112 todo);
114 offset += todo;
134 unsigned int instructions,line,todo,ylen,chroma; local
186 for (todo = ybpl; todo >
[all...]
/drivers/media/video/cx25821/
H A Dcx25821-core.c1087 unsigned int line, todo; local
1109 todo = bpl;
1114 todo -= (sg_dma_len(sg) - offset);
1117 while (todo > sg_dma_len(sg)) {
1122 todo -= sg_dma_len(sg);
1125 *(rp++) = cpu_to_le32(RISC_WRITE | RISC_EOL | todo);
1128 offset += todo;
1192 unsigned int line, todo, sol; local
1220 todo = bpl;
1225 todo
[all...]
/drivers/usb/otg/
H A Disp1301_omap.c69 unsigned long todo; member in struct:isp1301
330 if (isp && !test_and_set_bit(work, &isp->todo)) {
1112 stop = test_bit(WORK_STOP, &isp->todo);
1116 if (test_and_clear_bit(WORK_UPDATE_ISP, &isp->todo)) {
1122 if (test_and_clear_bit(WORK_UPDATE_OTG, &isp->todo)) {
1129 if (test_and_clear_bit(WORK_HOST_RESUME, &isp->todo)) {
1164 if (test_and_clear_bit(WORK_TIMER, &isp->todo)) {
1173 if (isp->todo)
1175 "work done, todo = 0x%lx\n",
1176 isp->todo);
[all...]
/drivers/staging/android/
H A Dbinder.c308 struct list_head todo; member in struct:binder_proc
335 struct list_head todo; member in struct:binder_thread
1059 list_add_tail(&node->work.entry, &node->proc->todo);
1515 target_list = &target_thread->todo;
1518 target_list = &target_proc->todo;
1652 &thread->todo);
1769 list_add_tail(&tcomplete->entry, &thread->todo);
1997 list_move_tail(buffer->target_node->async_todo.next, &thread->todo);
2117 list_add_tail(&ref->death->work.entry, &thread->todo);
2119 list_add_tail(&ref->death->work.entry, &proc->todo);
[all...]
/drivers/media/video/cx88/
H A Dcx88-input.c515 unsigned todo, bits; local
532 for (todo = 32; todo > 0; todo -= bits) {
534 bits = min(todo, 32U - fls(ev.pulse ? samples : ~samples));
H A Dcx88-core.c80 unsigned int line,todo,sol; local
104 todo = bpl;
108 todo -= (sg_dma_len(sg)-offset);
111 while (todo > sg_dma_len(sg)) {
115 todo -= sg_dma_len(sg);
118 *(rp++)=cpu_to_le32(RISC_WRITE|RISC_EOL|todo);
120 offset += todo;
/drivers/ide/
H A Dide-tape.c1150 size_t todo; local
1165 todo = min_t(size_t, count - done, tape->valid);
1166 if (copy_to_user(buf + done, tape->cur, todo))
1169 tape->cur += todo;
1170 tape->valid -= todo;
1171 done += todo;
1203 size_t todo; local
1212 todo = min_t(size_t, count - done,
1214 if (copy_from_user(tape->cur, buf + done, todo))
1217 tape->cur += todo;
[all...]

Completed in 595 milliseconds

12