Home
last modified time | relevance | path

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

123

/drivers/media/dvb-core/
A Ddvb_ringbuffer.c135 size_t todo = len; in dvb_ringbuffer_read_user() local
143 todo -= split; in dvb_ringbuffer_read_user()
168 todo -= split; in dvb_ringbuffer_read()
192 todo -= split; in dvb_ringbuffer_write()
221 todo -= split; in dvb_ringbuffer_write_user()
255 size_t todo; in dvb_ringbuffer_pkt_read_user() local
265 todo = len; in dvb_ringbuffer_pkt_read_user()
271 todo -= split; in dvb_ringbuffer_pkt_read_user()
283 size_t todo; in dvb_ringbuffer_pkt_read() local
293 todo = len; in dvb_ringbuffer_pkt_read()
[all …]
A Ddvb_vb2.c256 int todo = len; in dvb_vb2_fill_buffer() local
271 while (todo) { in dvb_vb2_fill_buffer()
293 ll = min(todo, ctx->remain); in dvb_vb2_fill_buffer()
296 todo -= ll; in dvb_vb2_fill_buffer()
317 if (todo) in dvb_vb2_fill_buffer()
318 dprintk(1, "[%s] %d bytes are dropped.\n", ctx->name, todo); in dvb_vb2_fill_buffer()
322 dprintk(3, "[%s] %d bytes are copied\n", ctx->name, len - todo); in dvb_vb2_fill_buffer()
323 return (len - todo); in dvb_vb2_fill_buffer()
A Ddmxdev.c57 size_t todo; in dvb_dmxdev_buffer_read() local
70 for (todo = count; todo > 0; todo -= ret) { in dvb_dmxdev_buffer_read()
89 if (avail > todo) in dvb_dmxdev_buffer_read()
90 avail = todo; in dvb_dmxdev_buffer_read()
99 return (count - todo) ? (count - todo) : ret; in dvb_dmxdev_buffer_read()
755 filter->todo = 0; in dvb_dmxdev_filter_start()
975 if (dfil->todo <= 0) { in dvb_dmxdev_read_sec()
983 dfil->todo = 0; in dvb_dmxdev_read_sec()
992 if (dfil->todo > -3) in dvb_dmxdev_read_sec()
999 count = dfil->todo; in dvb_dmxdev_read_sec()
[all …]
/drivers/crypto/allwinner/sun4i-ss/
A Dsun4i-ss-cipher.c32 unsigned int todo; in sun4i_ss_opti_poll() local
91 todo = min_t(size_t, todo, (mi.length - oi) / 4); in sun4i_ss_opti_poll()
92 if (todo) { in sun4i_ss_opti_poll()
119 todo = min_t(size_t, todo, (mo.length - oo) / 4); in sun4i_ss_opti_poll()
120 if (todo) { in sun4i_ss_opti_poll()
287 todo = min_t(size_t, todo, (mi.length - oi) / 4); in sun4i_ss_cipher_poll()
290 todo); in sun4i_ss_cipher_poll()
302 todo = min_t(size_t, todo, mi.length - oi); in sun4i_ss_cipher_poll()
305 oi += todo; in sun4i_ss_cipher_poll()
338 todo = min_t(size_t, todo, (mo.length - oo) / 4); in sun4i_ss_cipher_poll()
[all …]
A Dsun4i-ss-prng.c27 unsigned int todo = (dlen / 4) * 4; in sun4i_ss_prng_generate() local
38 algt->stat_bytes += todo; in sun4i_ss_prng_generate()
45 while (todo > 0) { in sun4i_ss_prng_generate()
51 len = min_t(size_t, SS_DATA_LEN / BITS_PER_BYTE, todo); in sun4i_ss_prng_generate()
54 todo -= len; in sun4i_ss_prng_generate()
/drivers/crypto/allwinner/sun8i-ce/
A Dsun8i-ce-trng.c29 unsigned int todo; in sun8i_ce_trng_read() local
38 todo = max + 32; in sun8i_ce_trng_read()
39 todo -= todo % 32; in sun8i_ce_trng_read()
41 d = kzalloc(todo, GFP_KERNEL | GFP_DMA); in sun8i_ce_trng_read()
47 ce->hwrng_stat_bytes += todo; in sun8i_ce_trng_read()
50 dma_dst = dma_map_single(ce->dev, d, todo, DMA_FROM_DEVICE); in sun8i_ce_trng_read()
73 cet->t_dlen = cpu_to_le32(todo); in sun8i_ce_trng_read()
75 cet->t_dlen = cpu_to_le32(todo / 4); in sun8i_ce_trng_read()
81 cet->t_dst[0].len = cpu_to_le32(todo / 4); in sun8i_ce_trng_read()
82 ce->chanlist[flow].timeout = todo; in sun8i_ce_trng_read()
[all …]
A Dsun8i-ce-prng.c65 unsigned int todo; in sun8i_ce_prng_generate() local
80 todo = dlen + ctx->slen + PRNG_DATA_SIZE * 2; in sun8i_ce_prng_generate()
81 todo -= todo % PRNG_DATA_SIZE; in sun8i_ce_prng_generate()
83 d = kzalloc(todo, GFP_KERNEL | GFP_DMA); in sun8i_ce_prng_generate()
90 slen, dlen, todo, todo / PRNG_DATA_SIZE); in sun8i_ce_prng_generate()
94 algt->stat_bytes += todo; in sun8i_ce_prng_generate()
104 dma_dst = dma_map_single(ce->dev, d, todo, DMA_FROM_DEVICE); in sun8i_ce_prng_generate()
127 cet->t_dlen = cpu_to_le32(todo); in sun8i_ce_prng_generate()
129 cet->t_dlen = cpu_to_le32(todo / 4); in sun8i_ce_prng_generate()
139 cet->t_dst[0].len = cpu_to_le32(todo / 4); in sun8i_ce_prng_generate()
[all …]
A Dsun8i-ce-cipher.c30 unsigned int todo, len; in sun8i_ce_cipher_need_fallback() local
72 todo = min(len, sg->length); in sun8i_ce_cipher_need_fallback()
73 if (todo % 4) { in sun8i_ce_cipher_need_fallback()
79 len -= todo; in sun8i_ce_cipher_need_fallback()
92 todo = min(len, sg->length); in sun8i_ce_cipher_need_fallback()
93 if (todo % 4) { in sun8i_ce_cipher_need_fallback()
99 len -= todo; in sun8i_ce_cipher_need_fallback()
252 todo = min(len, sg_dma_len(sg)); in sun8i_ce_cipher_prepare()
256 len -= todo; in sun8i_ce_cipher_prepare()
267 todo = min(len, sg_dma_len(sg)); in sun8i_ce_cipher_prepare()
[all …]
/drivers/platform/chrome/
A Dcros_ec_spi.c193 int todo; in cros_ec_spi_receive_packet() local
236 todo = min(todo, need_len); in cros_ec_spi_receive_packet()
240 need_len, todo); in cros_ec_spi_receive_packet()
241 need_len -= todo; in cros_ec_spi_receive_packet()
274 ptr += todo; in cros_ec_spi_receive_packet()
275 need_len -= todo; in cros_ec_spi_receive_packet()
301 int todo; in cros_ec_spi_receive_response() local
344 todo = min(todo, need_len); in cros_ec_spi_receive_response()
348 need_len, todo); in cros_ec_spi_receive_response()
349 need_len -= todo; in cros_ec_spi_receive_response()
[all …]
/drivers/crypto/allwinner/sun8i-ss/
A Dsun8i-ss-prng.c66 unsigned int todo; in sun8i_ss_prng_generate() local
84 todo = dlen + PRNG_SEED_SIZE + PRNG_DATA_SIZE; in sun8i_ss_prng_generate()
85 todo -= todo % PRNG_DATA_SIZE; in sun8i_ss_prng_generate()
87 todo_with_padding = ALIGN(todo, dma_get_cache_alignment()); in sun8i_ss_prng_generate()
88 if (todo_with_padding < todo || todo < dlen) in sun8i_ss_prng_generate()
99 algt->stat_bytes += todo; in sun8i_ss_prng_generate()
115 dma_dst = dma_map_single(ss->dev, d, todo, DMA_FROM_DEVICE); in sun8i_ss_prng_generate()
132 writel(todo / 4, ss->base + SS_LEN_ADR_REG); in sun8i_ss_prng_generate()
142 msecs_to_jiffies(todo)); in sun8i_ss_prng_generate()
144 dev_err(ss->dev, "DMA timeout for PRNG (size=%u)\n", todo); in sun8i_ss_prng_generate()
[all …]
A Dsun8i-ss-cipher.c31 unsigned int todo, len; in sun8i_ss_need_fallback() local
47 todo = min(len, sg->length); in sun8i_ss_need_fallback()
48 if ((todo % 16) != 0) { in sun8i_ss_need_fallback()
56 len -= todo; in sun8i_ss_need_fallback()
62 todo = min(len, sg->length); in sun8i_ss_need_fallback()
63 if ((todo % 16) != 0) { in sun8i_ss_need_fallback()
71 len -= todo; in sun8i_ss_need_fallback()
127 unsigned int todo, offset; in sun8i_ss_setup_ivs() local
162 len -= todo; in sun8i_ss_setup_ivs()
264 len -= todo; in sun8i_ss_cipher()
[all …]
/drivers/usb/gadget/udc/
A Dmax3420_udc.c163 u32 todo; member
182 u32 todo; member
319 int todo; in spi_max3420_enable() local
322 todo = ep->todo & ENABLE_EP; in spi_max3420_enable()
351 int todo; in spi_max3420_stall() local
354 todo = ep->todo & STALL_EP; in spi_max3420_stall()
362 if (todo == STALL) { in spi_max3420_stall()
478 int todo; in max3420_start() local
481 todo = udc->todo & UDC_START; in max3420_start()
485 if (!todo) in max3420_start()
[all …]
/drivers/media/pci/tw68/
A 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()
/drivers/staging/media/av7110/
A Dav7110_av.c392 while (todo > 0) { in aux_ring_buffer_write()
399 if (free > todo) in aux_ring_buffer_write()
400 free = todo; in aux_ring_buffer_write()
402 todo -= free; in aux_ring_buffer_write()
462 todo -= TS_SIZE; in ts_play()
493 n = todo; in dvb_play()
500 todo -= n; in dvb_play()
527 n = todo; in dvb_play_kernel()
531 todo -= n; in dvb_play_kernel()
557 n = todo; in dvb_aplay()
[all …]
/drivers/crypto/gemini/
A Dsl3516-ce-cipher.c136 unsigned int todo, len; in sl3516_ce_cipher() local
186 todo = min(len, sg_dma_len(sg)); in sl3516_ce_cipher()
187 rctx->t_src[i].len = todo; in sl3516_ce_cipher()
189 areq->cryptlen, i, rctx->t_src[i].len, sg->offset, todo); in sl3516_ce_cipher()
190 len -= todo; in sl3516_ce_cipher()
208 todo = min(len, sg_dma_len(sg)); in sl3516_ce_cipher()
209 rctx->t_dst[i].len = todo; in sl3516_ce_cipher()
211 areq->cryptlen, i, rctx->t_dst[i].len, sg->offset, todo); in sl3516_ce_cipher()
212 len -= todo; in sl3516_ce_cipher()
/drivers/w1/slaves/
A Dw1_ds2430.c102 int todo = count; in eeprom_read() local
111 while (todo > 0) { in eeprom_read()
114 if (todo >= W1_F14_READ_MAXLEN) in eeprom_read()
117 block_read = todo; in eeprom_read()
122 todo -= W1_F14_READ_MAXLEN; in eeprom_read()
A 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()
A 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()
/drivers/net/ethernet/netronome/nfp/nfd3/
A Dxsk.c280 int idx, todo; in nfp_nfd3_xsk_complete() local
292 todo = D_IDX(tx_ring, qcp_rd_p - tx_ring->qcp_rd_p); in nfp_nfd3_xsk_complete()
294 done_all = todo <= NFP_NET_XDP_MAX_COMPLETE; in nfp_nfd3_xsk_complete()
295 todo = min(todo, NFP_NET_XDP_MAX_COMPLETE); in nfp_nfd3_xsk_complete()
297 tx_ring->qcp_rd_p = D_IDX(tx_ring, tx_ring->qcp_rd_p + todo); in nfp_nfd3_xsk_complete()
299 done_pkts = todo; in nfp_nfd3_xsk_complete()
300 while (todo--) { in nfp_nfd3_xsk_complete()
/drivers/gpu/drm/msm/dp/
A Ddp_display.c216 struct msm_dp_event *todo; in msm_dp_add_event() local
230 todo->event_id = event; in msm_dp_add_event()
231 todo->data = data; in msm_dp_add_event()
232 todo->delay = delay; in msm_dp_add_event()
242 struct msm_dp_event *todo; in msm_dp_del_event() local
256 todo->delay = 0; in msm_dp_del_event()
1055 struct msm_dp_event *todo; in hpd_event_thread() local
1076 if (todo->delay) { in hpd_event_thread()
1091 todo->delay = 0; in hpd_event_thread()
1110 switch (todo->event_id) { in hpd_event_thread()
[all …]
/drivers/firewire/
A Dcore-cdev.c1324 todo = r->todo; in iso_resource_work()
1326 if (todo == ISO_RES_ALLOC && in iso_resource_work()
1348 todo == ISO_RES_ALLOC || in iso_resource_work()
1349 todo == ISO_RES_REALLOC || in iso_resource_work()
1350 todo == ISO_RES_ALLOC_ONCE); in iso_resource_work()
1357 (todo == ISO_RES_ALLOC || todo == ISO_RES_REALLOC)) in iso_resource_work()
1366 r->todo = ISO_RES_REALLOC; in iso_resource_work()
1383 if (todo == ISO_RES_ALLOC || todo == ISO_RES_ALLOC_ONCE) { in iso_resource_work()
1414 r->todo = ISO_RES_DEALLOC; in release_iso_resource()
1439 r->todo = todo; in init_iso_resource()
[all …]
/drivers/media/pci/bt8xx/
A 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()
174 for (todo = ybpl; todo > 0; todo -= ylen) { in bttv_risc_planar()
182 ylen = todo; in bttv_risc_planar()
203 if (ybpl == todo) in bttv_risc_planar()
[all …]
/drivers/s390/cio/
A 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()
/drivers/gpu/drm/display/
A Ddrm_dp_aux_dev.c159 ssize_t todo = min(iov_iter_count(to), sizeof(buf)); in auxdev_read_iter() local
166 res = drm_dp_dpcd_read(aux_dev->aux, pos, buf, todo); in auxdev_read_iter()
202 ssize_t todo = min(iov_iter_count(from), sizeof(buf)); in auxdev_write_iter() local
209 if (!copy_from_iter_full(buf, todo, from)) { in auxdev_write_iter()
214 res = drm_dp_dpcd_write(aux_dev->aux, pos, buf, todo); in auxdev_write_iter()
/drivers/base/
A Ddevres.c437 struct list_head *todo) in remove_nodes() argument
458 list_move_tail(&node->entry, todo); in remove_nodes()
488 list_move_tail(&grp->node[0].entry, todo); in remove_nodes()
496 static void release_nodes(struct device *dev, struct list_head *todo) in release_nodes() argument
503 list_for_each_entry_safe_reverse(dr, tmp, todo, node.entry) { in release_nodes()
520 LIST_HEAD(todo); in devres_release_all()
532 cnt = remove_nodes(dev, dev->devres_head.next, &dev->devres_head, &todo); in devres_release_all()
535 release_nodes(dev, &todo); in devres_release_all()
676 LIST_HEAD(todo); in devres_release_group()
689 cnt = remove_nodes(dev, first, end, &todo); in devres_release_group()
[all …]

Completed in 62 milliseconds

123