/Linux-v4.19/drivers/media/dvb-core/ |
D | dvb_ringbuffer.c | 135 size_t todo = len; in dvb_ringbuffer_read_user() local 143 todo -= split; in dvb_ringbuffer_read_user() 150 if (copy_to_user(buf, rbuf->data+rbuf->pread, todo)) in dvb_ringbuffer_read_user() 154 smp_store_release(&rbuf->pread, (rbuf->pread + todo) % rbuf->size); in dvb_ringbuffer_read_user() 161 size_t todo = len; in dvb_ringbuffer_read() local 168 todo -= split; in dvb_ringbuffer_read() 175 memcpy(buf, rbuf->data+rbuf->pread, todo); in dvb_ringbuffer_read() 178 smp_store_release(&rbuf->pread, (rbuf->pread + todo) % rbuf->size); in dvb_ringbuffer_read() 184 size_t todo = len; in dvb_ringbuffer_write() local 192 todo -= split; in dvb_ringbuffer_write() [all …]
|
D | dvb_vb2.c | 264 int todo = len; in dvb_vb2_fill_buffer() local 279 while (todo) { in dvb_vb2_fill_buffer() 301 ll = min(todo, ctx->remain); in dvb_vb2_fill_buffer() 304 todo -= ll; in dvb_vb2_fill_buffer() 325 if (todo) in dvb_vb2_fill_buffer() 326 dprintk(1, "[%s] %d bytes are dropped.\n", ctx->name, todo); in dvb_vb2_fill_buffer() 330 dprintk(3, "[%s] %d bytes are copied\n", ctx->name, len - todo); in dvb_vb2_fill_buffer() 331 return (len - todo); in dvb_vb2_fill_buffer()
|
D | dmxdev.c | 67 size_t todo; in dvb_dmxdev_buffer_read() local 80 for (todo = count; todo > 0; todo -= ret) { in dvb_dmxdev_buffer_read() 99 if (avail > todo) in dvb_dmxdev_buffer_read() 100 avail = todo; in dvb_dmxdev_buffer_read() 109 return (count - todo) ? (count - todo) : ret; in dvb_dmxdev_buffer_read() 764 filter->todo = 0; in dvb_dmxdev_filter_start() 979 if (dfil->todo <= 0) { in dvb_dmxdev_read_sec() 980 hcount = 3 + dfil->todo; in dvb_dmxdev_read_sec() 987 dfil->todo = 0; in dvb_dmxdev_read_sec() 990 if (copy_from_user(dfil->secheader - dfil->todo, buf, result)) in dvb_dmxdev_read_sec() [all …]
|
/Linux-v4.19/drivers/platform/chrome/ |
D | cros_ec_spi.c | 178 int todo; in cros_ec_spi_receive_packet() local 219 todo = end - ++ptr; in cros_ec_spi_receive_packet() 220 BUG_ON(todo < 0 || todo > ec_dev->din_size); in cros_ec_spi_receive_packet() 221 todo = min(todo, need_len); in cros_ec_spi_receive_packet() 222 memmove(ec_dev->din, ptr, todo); in cros_ec_spi_receive_packet() 223 ptr = ec_dev->din + todo; in cros_ec_spi_receive_packet() 225 need_len, todo); in cros_ec_spi_receive_packet() 226 need_len -= todo; in cros_ec_spi_receive_packet() 229 if (todo < sizeof(*response)) { in cros_ec_spi_receive_packet() 230 ret = receive_n_bytes(ec_dev, ptr, sizeof(*response) - todo); in cros_ec_spi_receive_packet() [all …]
|
/Linux-v4.19/drivers/crypto/sunxi-ss/ |
D | sun4i-ss-cipher.c | 36 unsigned int todo; in sun4i_ss_opti_poll() local 84 todo = min3(rx_cnt, ileft, (mi.length - oi) / 4); in sun4i_ss_opti_poll() 85 if (todo) { in sun4i_ss_opti_poll() 86 ileft -= todo; in sun4i_ss_opti_poll() 87 writesl(ss->base + SS_RXFIFO, mi.addr + oi, todo); in sun4i_ss_opti_poll() 88 oi += todo * 4; in sun4i_ss_opti_poll() 99 todo = min3(tx_cnt, oleft, (mo.length - oo) / 4); in sun4i_ss_opti_poll() 100 if (todo) { in sun4i_ss_opti_poll() 101 oleft -= todo; in sun4i_ss_opti_poll() 102 readsl(ss->base + SS_TXFIFO, mo.addr + oo, todo); in sun4i_ss_opti_poll() [all …]
|
D | sun4i-ss-prng.c | 26 unsigned int todo = (dlen / 4) * 4; in sun4i_ss_prng_generate() local 35 while (todo > 0) { in sun4i_ss_prng_generate() 41 len = min_t(size_t, SS_DATA_LEN / BITS_PER_BYTE, todo); in sun4i_ss_prng_generate() 44 todo -= len; in sun4i_ss_prng_generate()
|
D | sun4i-ss-hash.c | 180 unsigned int i = 0, end, fill, min_fill, nwait, nbw = 0, j = 0, todo; in sun4i_hash() local 300 todo = min3((u32)(end - i) / 4, rx_cnt, (u32)in_r / 4); in sun4i_hash() 301 writesl(ss->base + SS_RXFIFO, mi.addr + in_i, todo); in sun4i_hash() 302 op->byte_count += todo * 4; in sun4i_hash() 303 i += todo * 4; in sun4i_hash() 304 in_i += todo * 4; in sun4i_hash() 305 rx_cnt -= todo; in sun4i_hash()
|
/Linux-v4.19/kernel/power/ |
D | process.c | 35 unsigned int todo; in try_to_freeze_tasks() local 50 todo = 0; in try_to_freeze_tasks() 57 todo++; in try_to_freeze_tasks() 63 todo += wq_busy; in try_to_freeze_tasks() 66 if (!todo || time_after(jiffies, end_time)) in try_to_freeze_tasks() 88 if (todo) { in try_to_freeze_tasks() 94 todo - wq_busy, wq_busy); in try_to_freeze_tasks() 113 return todo ? -EBUSY : 0; in try_to_freeze_tasks()
|
/Linux-v4.19/arch/powerpc/platforms/powernv/ |
D | opal-lpc.c | 192 u32 data, pos, len, todo; in lpc_debug_read() local 198 todo = count; in lpc_debug_read() 199 while (todo) { in lpc_debug_read() 209 if (todo > 3 && (pos & 3) == 0) in lpc_debug_read() 211 else if (todo > 1 && (pos & 1) == 0) in lpc_debug_read() 273 todo -= len; in lpc_debug_read() 283 u32 data, pos, len, todo; in lpc_debug_write() local 289 todo = count; in lpc_debug_write() 290 while (todo) { in lpc_debug_write() 300 if (todo > 3 && (pos & 3) == 0) in lpc_debug_write() [all …]
|
/Linux-v4.19/drivers/media/pci/tw68/ |
D | tw68-risc.c | 48 unsigned int line, todo, done; in tw68_risc_field() local 83 todo = bpl; /* one full line to be done */ in tw68_risc_field() 90 todo -= done; in tw68_risc_field() 93 while (todo > sg_dma_len(sg)) { in tw68_risc_field() 98 todo -= sg_dma_len(sg); in tw68_risc_field() 102 if (todo) { in tw68_risc_field() 106 todo); in tw68_risc_field() 109 offset = todo; in tw68_risc_field()
|
/Linux-v4.19/drivers/media/pci/ttpci/ |
D | av7110_av.c | 401 unsigned long todo = count; in aux_ring_buffer_write() local 404 while (todo > 0) { in aux_ring_buffer_write() 408 return count - todo; in aux_ring_buffer_write() 411 if (free > todo) in aux_ring_buffer_write() 412 free = todo; in aux_ring_buffer_write() 414 todo -= free; in aux_ring_buffer_write() 418 return count - todo; in aux_ring_buffer_write() 449 unsigned long todo = count; in ts_play() local 462 while (todo >= TS_SIZE) { in ts_play() 465 return count - todo; in ts_play() [all …]
|
/Linux-v4.19/drivers/w1/slaves/ |
D | w1_ds2431.c | 104 int todo = count; in eeprom_read() local 113 while (todo > 0) { in eeprom_read() 116 if (todo >= W1_F2D_READ_MAXLEN) in eeprom_read() 119 block_read = todo; in eeprom_read() 124 todo -= W1_F2D_READ_MAXLEN; in eeprom_read()
|
D | w1_ds2805.c | 101 int todo = count; in w1_f0d_read_bin() local 110 while (todo > 0) { in w1_f0d_read_bin() 113 if (todo >= W1_F0D_READ_MAXLEN) in w1_f0d_read_bin() 116 block_read = todo; in w1_f0d_read_bin() 123 todo -= W1_F0D_READ_MAXLEN; in w1_f0d_read_bin()
|
/Linux-v4.19/drivers/firewire/ |
D | core-cdev.c | 142 ISO_RES_ALLOC_ONCE, ISO_RES_DEALLOC_ONCE,} todo; member 1253 int generation, channel, bandwidth, todo; in iso_resource_work() local 1258 todo = r->todo; in iso_resource_work() 1260 if (todo == ISO_RES_ALLOC && in iso_resource_work() 1267 skip = todo == ISO_RES_REALLOC && in iso_resource_work() 1270 free = todo == ISO_RES_DEALLOC || in iso_resource_work() 1271 todo == ISO_RES_ALLOC_ONCE || in iso_resource_work() 1272 todo == ISO_RES_DEALLOC_ONCE; in iso_resource_work() 1283 todo == ISO_RES_ALLOC || in iso_resource_work() 1284 todo == ISO_RES_REALLOC || in iso_resource_work() [all …]
|
/Linux-v4.19/drivers/s390/cio/ |
D | ccwreq.c | 174 enum uc_todo todo; in ccwreq_status() local 196 todo = cdev->drv->uc_handler(cdev, lcirb); in ccwreq_status() 198 CIO_HEX_EVENT(2, &todo, sizeof(todo)); in ccwreq_status() 199 switch (todo) { in ccwreq_status()
|
D | css.c | 536 void css_sched_sch_todo(struct subchannel *sch, enum sch_todo todo) in css_sched_sch_todo() argument 539 sch->schid.ssid, sch->schid.sch_no, todo); in css_sched_sch_todo() 540 if (sch->todo >= todo) in css_sched_sch_todo() 545 sch->todo = todo; in css_sched_sch_todo() 556 enum sch_todo todo; in css_sch_todo() local 562 todo = sch->todo; in css_sch_todo() 564 sch->schid.sch_no, todo); in css_sch_todo() 565 sch->todo = SCH_TODO_NOTHING; in css_sch_todo() 568 switch (todo) { in css_sch_todo() 575 css_sched_sch_todo(sch, todo); in css_sch_todo()
|
/Linux-v4.19/drivers/gpu/drm/ |
D | drm_dp_aux_dev.c | 157 ssize_t todo = min(iov_iter_count(to), sizeof(buf)); in auxdev_read_iter() local 164 res = drm_dp_dpcd_read(aux_dev->aux, pos, buf, todo); in auxdev_read_iter() 199 ssize_t todo = min(iov_iter_count(from), sizeof(buf)); in auxdev_write_iter() local 206 if (!copy_from_iter_full(buf, todo, from)) { in auxdev_write_iter() 211 res = drm_dp_dpcd_write(aux_dev->aux, pos, buf, todo); in auxdev_write_iter()
|
/Linux-v4.19/drivers/media/pci/bt8xx/ |
D | bttv-risc.c | 53 u32 instructions,line,todo; in bttv_risc_packed() local 97 todo = bpl; in bttv_risc_packed() 101 todo -= (sg_dma_len(sg)-offset); in bttv_risc_packed() 104 while (todo > sg_dma_len(sg)) { in bttv_risc_packed() 108 todo -= sg_dma_len(sg); in bttv_risc_packed() 112 todo); in bttv_risc_packed() 114 offset += todo; in bttv_risc_packed() 134 unsigned int instructions,line,todo,ylen,chroma; in bttv_risc_planar() local 186 for (todo = ybpl; todo > 0; todo -= ylen) { in bttv_risc_planar() 194 ylen = todo; in bttv_risc_planar() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
D | gf100.c | 151 u64 mask, todo; in gf100_fifo_recover_work() local 158 for (todo = mask; engn = __ffs64(todo), todo; todo &= ~BIT_ULL(engn)) in gf100_fifo_recover_work() 162 for (todo = mask; engn = __ffs64(todo), todo; todo &= ~BIT_ULL(engn)) { in gf100_fifo_recover_work()
|
/Linux-v4.19/drivers/media/pci/cx25821/ |
D | cx25821-core.c | 1009 unsigned int line, todo; in cx25821_risc_field() local 1037 todo = bpl; in cx25821_risc_field() 1042 todo -= (sg_dma_len(sg) - offset); in cx25821_risc_field() 1045 while (todo > sg_dma_len(sg)) { in cx25821_risc_field() 1050 todo -= sg_dma_len(sg); in cx25821_risc_field() 1053 *(rp++) = cpu_to_le32(RISC_WRITE | RISC_EOL | todo); in cx25821_risc_field() 1056 offset += todo; in cx25821_risc_field() 1120 unsigned int line, todo, sol; in cx25821_risc_field_audio() local 1148 todo = bpl; in cx25821_risc_field_audio() 1153 todo -= (sg_dma_len(sg) - offset); in cx25821_risc_field_audio() [all …]
|
/Linux-v4.19/arch/m68k/kernel/ |
D | sun3-head.S | 26 | todo: all these should be in bss! 91 | todo: remove next two. --m
|
/Linux-v4.19/drivers/usb/serial/ |
D | usb_wwan.c | 215 int left, todo; in usb_wwan_write() local 228 todo = left; in usb_wwan_write() 229 if (todo > OUT_BUFLEN) in usb_wwan_write() 230 todo = OUT_BUFLEN; in usb_wwan_write() 250 memcpy(this_urb->transfer_buffer, buf, todo); in usb_wwan_write() 251 this_urb->transfer_buffer_length = todo; in usb_wwan_write() 276 buf += todo; in usb_wwan_write() 277 left -= todo; in usb_wwan_write()
|
D | kobil_sct.c | 299 int todo = 0; in kobil_write() local 328 todo = priv->filled - priv->cur_pos; in kobil_write() 330 while (todo > 0) { in kobil_write() 332 length = min(todo, port->interrupt_out_size); in kobil_write() 342 todo = priv->filled - priv->cur_pos; in kobil_write() 344 if (todo > 0) in kobil_write()
|
D | cyberjack.c | 314 short todo; in cyberjack_read_bulk_callback() local 337 todo = priv->rdtodo; in cyberjack_read_bulk_callback() 341 dev_dbg(dev, "%s - rdtodo: %d\n", __func__, todo); in cyberjack_read_bulk_callback() 344 if (todo /* || (urb->actual_length==port->bulk_in_endpointAddress)*/) { in cyberjack_read_bulk_callback()
|
/Linux-v4.19/drivers/atm/ |
D | suni.c | 108 if (todo & flag) { \ 111 todo &= ~flag; \ 117 int todo; in change_diag() local 119 if (get_user(todo,(int __user *)arg)) return -EFAULT; in change_diag() 128 return put_user(todo,(int __user *)arg) ? -EFAULT : 0; in change_diag()
|