Home
last modified time | relevance | path

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

123456

/openbmc/linux/drivers/media/dvb-core/
H 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 …]
/openbmc/linux/drivers/crypto/allwinner/sun8i-ce/
H 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 …]
H 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 …]
H A Dsun8i-ce-cipher.c30 unsigned int todo, len; in sun8i_ce_cipher_need_fallback() local
62 todo = min(len, sg->length); in sun8i_ce_cipher_need_fallback()
63 if (todo % 4) { in sun8i_ce_cipher_need_fallback()
67 len -= todo; in sun8i_ce_cipher_need_fallback()
78 todo = min(len, sg->length); in sun8i_ce_cipher_need_fallback()
79 if (todo % 4) { in sun8i_ce_cipher_need_fallback()
83 len -= todo; in sun8i_ce_cipher_need_fallback()
240 todo = min(len, sg_dma_len(sg)); in sun8i_ce_cipher_prepare()
244 len -= todo; in sun8i_ce_cipher_prepare()
255 todo = min(len, sg_dma_len(sg)); in sun8i_ce_cipher_prepare()
[all …]
/openbmc/linux/drivers/crypto/allwinner/sun4i-ss/
H 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 …]
H 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()
/openbmc/linux/drivers/crypto/allwinner/sun8i-ss/
H 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 …]
H 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 …]
/openbmc/linux/drivers/platform/chrome/
H 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 …]
/openbmc/linux/kernel/power/
H A Dprocess.c34 unsigned int todo; in try_to_freeze_tasks() local
51 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()
93 todo - wq_busy, wq_busy); in try_to_freeze_tasks()
111 return todo ? -EBUSY : 0; in try_to_freeze_tasks()
/openbmc/linux/arch/powerpc/platforms/powernv/
H A 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 …]
/openbmc/linux/drivers/usb/gadget/udc/
H 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 …]
/openbmc/linux/drivers/media/pci/tw68/
H 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()
/openbmc/qemu/audio/
H A Dsndioaudio.c82 size_t todo, n; in sndio_write() local
84 todo = self->qemu_pos - self->sndio_pos; in sndio_write()
89 while (todo > 0) { in sndio_write()
95 todo -= n; in sndio_write()
113 size_t todo, n; in sndio_read() local
120 while (todo > 0) { in sndio_read()
126 todo -= n; in sndio_read()
262 size_t todo, max_todo; in sndio_get_buffer_in() local
271 if (todo > max_todo) { in sndio_get_buffer_in()
272 todo = max_todo; in sndio_get_buffer_in()
[all …]
/openbmc/u-boot/arch/arm/mach-exynos/
H A Dspl_boot.c64 static void spi_rx_tx(struct exynos_spi *regs, int todo, in spi_rx_tx() argument
71 out_bytes = todo; in spi_rx_tx()
72 in_bytes = todo; in spi_rx_tx()
75 writel(((todo * 8) / 32) | SPI_PACKET_CNT_EN, &regs->pkt_cnt); in spi_rx_tx()
108 int upto, todo; in exynos_spi_copy() local
152 for (upto = 0, i = 0; upto < uboot_size; upto += todo, i++) { in exynos_spi_copy()
153 todo = min(uboot_size - upto, (unsigned int)(1 << 15)); in exynos_spi_copy()
154 spi_rx_tx(regs, todo, (void *)(uboot_addr), in exynos_spi_copy()
/openbmc/u-boot/tools/binman/
H A Dbsection.py143 todo = self._entries.values()
146 for entry in todo:
149 todo = next_todo
150 if not todo:
152 if todo:
154 'remaining %s' % todo)
220 todo = self._entries.values()
223 for entry in todo:
226 todo = next_todo
227 if not todo:
[all …]
/openbmc/linux/drivers/staging/media/av7110/
H A Dav7110_av.c391 while (todo > 0) { in aux_ring_buffer_write()
398 if (free > todo) in aux_ring_buffer_write()
399 free = todo; in aux_ring_buffer_write()
401 todo -= free; in aux_ring_buffer_write()
459 todo -= TS_SIZE; in ts_play()
490 n = todo; in dvb_play()
497 todo -= n; in dvb_play()
523 n = todo; in dvb_play_kernel()
527 todo -= n; in dvb_play_kernel()
552 n = todo; in dvb_aplay()
[all …]
/openbmc/u-boot/drivers/spi/
H A Dexynos_spi.c95 static int spi_rx_tx(struct exynos_spi_priv *priv, int todo, in spi_rx_tx() argument
108 out_bytes = in_bytes = todo; in spi_rx_tx()
118 if (!((todo | (uintptr_t)rxp | (uintptr_t)txp) & 3) && in spi_rx_tx()
126 spi_request_bytes(regs, todo, step); in spi_rx_tx()
326 int upto, todo; in exynos_spi_xfer() local
346 for (upto = 0; !ret && upto < bytelen; upto += todo) { in exynos_spi_xfer()
347 todo = min(bytelen - upto, (1 << 16) - 4); in exynos_spi_xfer()
348 ret = spi_rx_tx(priv, todo, &din, &dout, flags); in exynos_spi_xfer()
/openbmc/linux/drivers/w1/slaves/
H 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()
H 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()
H 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()
/openbmc/linux/drivers/crypto/gemini/
H 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()
/openbmc/u-boot/tools/gdb/
H A Dremote.c492 int todo; local
502 todo = min (len, max_buf_size);
507 todo = min (len, max_buf_size / 2); /* num bytes that will fit */
514 p += hexnumstr ((char *)p, (ULONGEST) todo);
525 (i < todo) && (i + escaped) < (max_buf_size - 2);
544 if (i < todo)
559 for (i = 0; i < todo; i++)
/openbmc/linux/tools/testing/selftests/rcutorture/bin/
H A Dtorture.sh632 find "$tdir" -type d -name '*-k[ac]san' -print > $T/xz-todo-all
634 grep -e '-k[ac]san$' > $T/xz-todo-copy
635 sort $T/xz-todo-all $T/xz-todo-copy | uniq -u > $T/xz-todo
638 if test -s $T/xz-todo
640 for i in `cat $T/xz-todo`
643 done | wc -l | awk '{ print $1 }' > $T/xz-todo-count
646 for i in `cat $T/xz-todo`
667 if test -s $T/xz-todo-copy
673 for i in `cat $T/xz-todo-copy`
676 find . -name vmlinux -print > $T/xz-todo-copy-vmlinux
[all …]
/openbmc/linux/arch/powerpc/crypto/
H A Dchacha-p10-glue.c74 unsigned int todo = min_t(unsigned int, bytes, SZ_4K); in chacha_crypt_arch() local
77 chacha_p10_do_8x(state, dst, src, todo, nrounds); in chacha_crypt_arch()
80 bytes -= todo; in chacha_crypt_arch()
81 src += todo; in chacha_crypt_arch()
82 dst += todo; in chacha_crypt_arch()

123456