Home
last modified time | relevance | path

Searched refs:todo (Results 1 – 25 of 67) sorted by relevance

123

/Linux-v5.4/drivers/media/dvb-core/
Ddvb_ringbuffer.c135 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 …]
Ddvb_vb2.c263 int todo = len; in dvb_vb2_fill_buffer() local
278 while (todo) { in dvb_vb2_fill_buffer()
300 ll = min(todo, ctx->remain); in dvb_vb2_fill_buffer()
303 todo -= ll; in dvb_vb2_fill_buffer()
324 if (todo) in dvb_vb2_fill_buffer()
325 dprintk(1, "[%s] %d bytes are dropped.\n", ctx->name, todo); in dvb_vb2_fill_buffer()
329 dprintk(3, "[%s] %d bytes are copied\n", ctx->name, len - todo); in dvb_vb2_fill_buffer()
330 return (len - todo); in dvb_vb2_fill_buffer()
Ddmxdev.c67 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-v5.4/drivers/platform/chrome/
Dcros_ec_spi.c191 int todo; in cros_ec_spi_receive_packet() local
232 todo = end - ++ptr; in cros_ec_spi_receive_packet()
233 BUG_ON(todo < 0 || todo > ec_dev->din_size); in cros_ec_spi_receive_packet()
234 todo = min(todo, need_len); in cros_ec_spi_receive_packet()
235 memmove(ec_dev->din, ptr, todo); in cros_ec_spi_receive_packet()
236 ptr = ec_dev->din + todo; in cros_ec_spi_receive_packet()
238 need_len, todo); in cros_ec_spi_receive_packet()
239 need_len -= todo; in cros_ec_spi_receive_packet()
242 if (todo < sizeof(*response)) { in cros_ec_spi_receive_packet()
243 ret = receive_n_bytes(ec_dev, ptr, sizeof(*response) - todo); in cros_ec_spi_receive_packet()
[all …]
/Linux-v5.4/drivers/crypto/sunxi-ss/
Dsun4i-ss-cipher.c32 unsigned int todo; in sun4i_ss_opti_poll() local
75 todo = min3(rx_cnt, ileft, (mi.length - oi) / 4); in sun4i_ss_opti_poll()
76 if (todo) { in sun4i_ss_opti_poll()
77 ileft -= todo; in sun4i_ss_opti_poll()
78 writesl(ss->base + SS_RXFIFO, mi.addr + oi, todo); in sun4i_ss_opti_poll()
79 oi += todo * 4; in sun4i_ss_opti_poll()
90 todo = min3(tx_cnt, oleft, (mo.length - oo) / 4); in sun4i_ss_opti_poll()
91 if (todo) { in sun4i_ss_opti_poll()
92 oleft -= todo; in sun4i_ss_opti_poll()
93 readsl(ss->base + SS_TXFIFO, mo.addr + oo, todo); in sun4i_ss_opti_poll()
[all …]
Dsun4i-ss-prng.c26 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()
Dsun4i-ss-hash.c176 unsigned int i = 0, end, fill, min_fill, nwait, nbw = 0, j = 0, todo; in sun4i_hash() local
299 todo = min3((u32)(end - i) / 4, rx_cnt, (u32)in_r / 4); in sun4i_hash()
300 writesl(ss->base + SS_RXFIFO, mi.addr + in_i, todo); in sun4i_hash()
301 op->byte_count += todo * 4; in sun4i_hash()
302 i += todo * 4; in sun4i_hash()
303 in_i += todo * 4; in sun4i_hash()
304 rx_cnt -= todo; in sun4i_hash()
/Linux-v5.4/kernel/power/
Dprocess.c35 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-v5.4/arch/powerpc/platforms/powernv/
Dopal-lpc.c188 u32 data, pos, len, todo; in lpc_debug_read() local
194 todo = count; in lpc_debug_read()
195 while (todo) { in lpc_debug_read()
205 if (todo > 3 && (pos & 3) == 0) in lpc_debug_read()
207 else if (todo > 1 && (pos & 1) == 0) in lpc_debug_read()
269 todo -= len; in lpc_debug_read()
279 u32 data, pos, len, todo; in lpc_debug_write() local
285 todo = count; in lpc_debug_write()
286 while (todo) { in lpc_debug_write()
296 if (todo > 3 && (pos & 3) == 0) in lpc_debug_write()
[all …]
/Linux-v5.4/drivers/media/pci/tw68/
Dtw68-risc.c39 unsigned int line, todo, done; in tw68_risc_field() local
74 todo = bpl; /* one full line to be done */ in tw68_risc_field()
81 todo -= done; in tw68_risc_field()
84 while (todo > sg_dma_len(sg)) { in tw68_risc_field()
89 todo -= sg_dma_len(sg); in tw68_risc_field()
93 if (todo) { in tw68_risc_field()
97 todo); in tw68_risc_field()
100 offset = todo; in tw68_risc_field()
/Linux-v5.4/drivers/media/pci/ttpci/
Dav7110_av.c387 unsigned long todo = count; in aux_ring_buffer_write() local
390 while (todo > 0) { in aux_ring_buffer_write()
394 return count - todo; in aux_ring_buffer_write()
397 if (free > todo) in aux_ring_buffer_write()
398 free = todo; in aux_ring_buffer_write()
400 todo -= free; in aux_ring_buffer_write()
404 return count - todo; in aux_ring_buffer_write()
435 unsigned long todo = count; in ts_play() local
448 while (todo >= TS_SIZE) { in ts_play()
451 return count - todo; in ts_play()
[all …]
/Linux-v5.4/drivers/gpu/drm/
Ddrm_dp_aux_dev.c159 ssize_t todo = min(iov_iter_count(to), sizeof(buf)); in auxdev_read_iter() local
168 todo); in auxdev_read_iter()
170 res = drm_dp_dpcd_read(aux_dev->aux, pos, buf, todo); in auxdev_read_iter()
206 ssize_t todo = min(iov_iter_count(from), sizeof(buf)); in auxdev_write_iter() local
213 if (!copy_from_iter_full(buf, todo, from)) { in auxdev_write_iter()
220 todo); in auxdev_write_iter()
222 res = drm_dp_dpcd_write(aux_dev->aux, pos, buf, todo); in auxdev_write_iter()
/Linux-v5.4/drivers/w1/slaves/
Dw1_ds2431.c102 int todo = count; in eeprom_read() local
111 while (todo > 0) { in eeprom_read()
114 if (todo >= W1_F2D_READ_MAXLEN) in eeprom_read()
117 block_read = todo; in eeprom_read()
122 todo -= W1_F2D_READ_MAXLEN; in eeprom_read()
Dw1_ds2805.c99 int todo = count; in w1_f0d_read_bin() local
108 while (todo > 0) { in w1_f0d_read_bin()
111 if (todo >= W1_F0D_READ_MAXLEN) in w1_f0d_read_bin()
114 block_read = todo; in w1_f0d_read_bin()
121 todo -= W1_F0D_READ_MAXLEN; in w1_f0d_read_bin()
/Linux-v5.4/drivers/firewire/
Dcore-cdev.c129 ISO_RES_ALLOC_ONCE, ISO_RES_DEALLOC_ONCE,} todo; member
1240 int generation, channel, bandwidth, todo; in iso_resource_work() local
1245 todo = r->todo; in iso_resource_work()
1247 if (todo == ISO_RES_ALLOC && in iso_resource_work()
1254 skip = todo == ISO_RES_REALLOC && in iso_resource_work()
1257 free = todo == ISO_RES_DEALLOC || in iso_resource_work()
1258 todo == ISO_RES_ALLOC_ONCE || in iso_resource_work()
1259 todo == ISO_RES_DEALLOC_ONCE; in iso_resource_work()
1270 todo == ISO_RES_ALLOC || in iso_resource_work()
1271 todo == ISO_RES_REALLOC || in iso_resource_work()
[all …]
/Linux-v5.4/drivers/s390/cio/
Dccwreq.c174 enum uc_todo todo; in ccwreq_status() local
197 todo = cdev->drv->uc_handler(cdev, lcirb); in ccwreq_status()
199 CIO_HEX_EVENT(2, &todo, sizeof(todo)); in ccwreq_status()
200 switch (todo) { in ccwreq_status()
Dcss.c598 void css_sched_sch_todo(struct subchannel *sch, enum sch_todo todo) in css_sched_sch_todo() argument
601 sch->schid.ssid, sch->schid.sch_no, todo); in css_sched_sch_todo()
602 if (sch->todo >= todo) in css_sched_sch_todo()
607 sch->todo = todo; in css_sched_sch_todo()
618 enum sch_todo todo; in css_sch_todo() local
624 todo = sch->todo; in css_sch_todo()
626 sch->schid.sch_no, todo); in css_sch_todo()
627 sch->todo = SCH_TODO_NOTHING; in css_sch_todo()
630 switch (todo) { in css_sch_todo()
637 css_sched_sch_todo(sch, todo); in css_sch_todo()
/Linux-v5.4/drivers/media/pci/bt8xx/
Dbttv-risc.c41 u32 instructions,line,todo; in bttv_risc_packed() local
85 todo = bpl; in bttv_risc_packed()
89 todo -= (sg_dma_len(sg)-offset); in bttv_risc_packed()
92 while (todo > sg_dma_len(sg)) { in bttv_risc_packed()
96 todo -= sg_dma_len(sg); in bttv_risc_packed()
100 todo); in bttv_risc_packed()
102 offset += todo; in bttv_risc_packed()
122 unsigned int instructions,line,todo,ylen,chroma; in bttv_risc_planar() local
174 for (todo = ybpl; todo > 0; todo -= ylen) { in bttv_risc_planar()
182 ylen = todo; in bttv_risc_planar()
[all …]
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dgf100.c152 u64 mask, todo; in gf100_fifo_recover_work() local
159 for (todo = mask; engn = __ffs64(todo), todo; todo &= ~BIT_ULL(engn)) in gf100_fifo_recover_work()
163 for (todo = mask; engn = __ffs64(todo), todo; todo &= ~BIT_ULL(engn)) { in gf100_fifo_recover_work()
/Linux-v5.4/drivers/usb/serial/
Dusb_wwan.c186 int left, todo; in usb_wwan_write() local
199 todo = left; in usb_wwan_write()
200 if (todo > OUT_BUFLEN) in usb_wwan_write()
201 todo = OUT_BUFLEN; in usb_wwan_write()
221 memcpy(this_urb->transfer_buffer, buf, todo); in usb_wwan_write()
222 this_urb->transfer_buffer_length = todo; in usb_wwan_write()
247 buf += todo; in usb_wwan_write()
248 left -= todo; in usb_wwan_write()
Dkobil_sct.c299 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()
Dcyberjack.c314 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-v5.4/drivers/media/pci/cx25821/
Dcx25821-core.c999 unsigned int line, todo; in cx25821_risc_field() local
1027 todo = bpl; in cx25821_risc_field()
1032 todo -= (sg_dma_len(sg) - offset); in cx25821_risc_field()
1035 while (todo > sg_dma_len(sg)) { in cx25821_risc_field()
1040 todo -= sg_dma_len(sg); in cx25821_risc_field()
1043 *(rp++) = cpu_to_le32(RISC_WRITE | RISC_EOL | todo); in cx25821_risc_field()
1046 offset += todo; in cx25821_risc_field()
1110 unsigned int line, todo, sol; in cx25821_risc_field_audio() local
1138 todo = bpl; in cx25821_risc_field_audio()
1143 todo -= (sg_dma_len(sg) - offset); in cx25821_risc_field_audio()
[all …]
/Linux-v5.4/drivers/atm/
Dsuni.c109 if (todo & flag) { \
112 todo &= ~flag; \
118 int todo; in change_diag() local
120 if (get_user(todo,(int __user *)arg)) return -EFAULT; in change_diag()
129 return put_user(todo,(int __user *)arg) ? -EFAULT : 0; in change_diag()
/Linux-v5.4/drivers/usb/phy/
Dphy-isp1301-omap.c54 unsigned long todo; member
315 if (isp && !test_and_set_bit(work, &isp->todo)) { in isp1301_defer_work()
1094 stop = test_bit(WORK_STOP, &isp->todo); in isp1301_work()
1098 if (test_and_clear_bit(WORK_UPDATE_ISP, &isp->todo)) { in isp1301_work()
1104 if (test_and_clear_bit(WORK_UPDATE_OTG, &isp->todo)) { in isp1301_work()
1111 if (test_and_clear_bit(WORK_HOST_RESUME, &isp->todo)) { in isp1301_work()
1146 if (test_and_clear_bit(WORK_TIMER, &isp->todo)) { in isp1301_work()
1155 if (isp->todo) in isp1301_work()
1158 isp->todo); in isp1301_work()
1163 } while (isp->todo); in isp1301_work()
[all …]

123