| /linux/drivers/crypto/allwinner/sun4i-ss/ |
| H A D | sun4i-ss-cipher.c | 32 unsigned int todo; in sun4i_ss_opti_poll() local 90 todo = min(rx_cnt, ileft); in sun4i_ss_opti_poll() 91 todo = min_t(size_t, todo, (mi.length - oi) / 4); in sun4i_ss_opti_poll() 92 if (todo) { in sun4i_ss_opti_poll() 93 ileft -= todo; in sun4i_ss_opti_poll() 94 writesl(ss->base + SS_RXFIFO, mi.addr + oi, todo); in sun4i_ss_opti_poll() 95 oi += todo * 4; in sun4i_ss_opti_poll() 118 todo = min(tx_cnt, oleft); 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() [all …]
|
| H A D | sun4i-ss-prng.c | 27 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()
|
| /linux/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | sun8i-ss-prng.c | 66 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 …]
|
| /linux/kernel/power/ |
| H A D | process.c | 34 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()
|
| /linux/drivers/usb/gadget/udc/ |
| H A D | max3420_udc.c | 163 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() 323 ep->todo &= ~ENABLE_EP; in spi_max3420_enable() 326 if (!todo || ep->id == 0) in spi_max3420_enable() 332 if (todo == ENABLE) { in spi_max3420_enable() 351 int todo; in spi_max3420_stall() local 354 todo = ep->todo & STALL_EP; in spi_max3420_stall() 355 ep->todo &= ~STALL_EP; in spi_max3420_stall() [all …]
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A D | opal-lpc.c | 188 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/lib/crypto/powerpc/ |
| H A D | chacha.h | 59 unsigned int todo = min_t(unsigned int, bytes, SZ_4K); in chacha_crypt_arch() local 62 chacha_p10_do_8x(state, dst, src, todo, nrounds); in chacha_crypt_arch() 65 bytes -= todo; in chacha_crypt_arch() 66 src += todo; in chacha_crypt_arch() 67 dst += todo; in chacha_crypt_arch()
|
| /linux/lib/crypto/arm64/ |
| H A D | chacha.h | 80 unsigned int todo = min_t(unsigned int, bytes, SZ_4K); in chacha_crypt_arch() local 83 chacha_doneon(state, dst, src, todo, nrounds); in chacha_crypt_arch() 85 bytes -= todo; in chacha_crypt_arch() 86 src += todo; in chacha_crypt_arch() 87 dst += todo; in chacha_crypt_arch()
|
| H A D | poly1305.h | 31 unsigned int todo = min_t(unsigned int, len, SZ_4K); in poly1305_blocks() local 34 poly1305_blocks_neon(state, src, todo, padbit); in poly1305_blocks() 36 len -= todo; in poly1305_blocks() 37 src += todo; in poly1305_blocks()
|
| /linux/drivers/staging/media/av7110/ |
| H A D | av7110_av.c | 389 unsigned long todo = count; in aux_ring_buffer_write() local 392 while (todo > 0) { in aux_ring_buffer_write() 396 return count - todo; 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() 406 return count - todo; in aux_ring_buffer_write() 439 unsigned long todo = count; in ts_play() local 452 while (todo >= TS_SIZE) { in ts_play() 455 return count - todo; in ts_play() [all …]
|
| /linux/lib/crypto/arm/ |
| H A D | poly1305.h | 32 unsigned int todo = min_t(unsigned int, len, SZ_4K); in poly1305_blocks() local 35 poly1305_blocks_neon(state, src, todo, padbit); in poly1305_blocks() 37 len -= todo; in poly1305_blocks() 38 src += todo; in poly1305_blocks()
|
| H A D | chacha.h | 86 unsigned int todo = min_t(unsigned int, bytes, SZ_4K); in chacha_crypt_arch() local 89 chacha_doneon(state, dst, src, todo, nrounds); in chacha_crypt_arch() 91 bytes -= todo; in chacha_crypt_arch() 92 src += todo; in chacha_crypt_arch() 93 dst += todo; in chacha_crypt_arch()
|
| /linux/drivers/crypto/gemini/ |
| H A D | sl3516-ce-cipher.c | 136 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()
|
| /linux/drivers/w1/slaves/ |
| H A D | w1_ds2430.c | 102 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 D | w1_ds2805.c | 99 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()
|
| H A D | w1_ds2431.c | 102 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()
|
| /linux/lib/crypto/x86/ |
| H A D | chacha.h | 147 unsigned int todo = min_t(unsigned int, bytes, SZ_4K); in chacha_crypt_arch() local 150 chacha_dosimd(state, dst, src, todo, nrounds); in chacha_crypt_arch() 153 bytes -= todo; in chacha_crypt_arch() 154 src += todo; in chacha_crypt_arch() 155 dst += todo; in chacha_crypt_arch()
|
| /linux/tools/testing/selftests/rcutorture/bin/ |
| H A D | torture.sh | 768 find "$tdir" -type d -name '*-k[ac]san' -print > $T/xz-todo-all 770 grep -e '-k[ac]san$' > $T/xz-todo-copy 771 sort $T/xz-todo-all $T/xz-todo-copy | uniq -u > $T/xz-todo 774 if test -s $T/xz-todo 776 for i in `cat $T/xz-todo` 779 done | wc -l | awk '{ print $1 }' > $T/xz-todo-count 780 n2compress="`cat $T/xz-todo-count`" 782 for i in `cat $T/xz-todo` [all...] |
| /linux/drivers/media/dvb-core/ |
| H A D | dvb_vb2.c | 256 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()
|
| /linux/drivers/gpu/drm/msm/dp/ |
| H A D | dp_display.c | 225 struct msm_dp_event *todo; in msm_dp_add_event() local 237 todo = &msm_dp_priv->event_list[msm_dp_priv->event_pndx++]; in msm_dp_add_event() 239 todo->event_id = event; in msm_dp_add_event() 240 todo->data = data; in msm_dp_add_event() 241 todo->delay = delay; in msm_dp_add_event() 251 struct msm_dp_event *todo; in msm_dp_del_event() local 262 todo = &msm_dp_priv->event_list[gndx]; in msm_dp_del_event() 263 if (todo->event_id == event) { in msm_dp_del_event() 264 todo->event_id = EV_NO_EVENT; /* deleted */ in msm_dp_del_event() 265 todo->delay = 0; in msm_dp_del_event() [all …]
|
| /linux/drivers/media/pci/bt8xx/ |
| H A D | bttv-risc.c | 41 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/drivers/gpu/drm/display/ |
| H A D | drm_dp_aux_dev.c | 159 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()
|
| /linux/drivers/base/ |
| H A D | devres.c | 437 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 …]
|
| /linux/drivers/usb/serial/ |
| H A D | usb_wwan.c | 143 int left, todo; in usb_wwan_write() local 155 todo = left; in usb_wwan_write() 156 if (todo > OUT_BUFLEN) in usb_wwan_write() 157 todo = OUT_BUFLEN; in usb_wwan_write() 177 memcpy(this_urb->transfer_buffer, buf, todo); in usb_wwan_write() 178 this_urb->transfer_buffer_length = todo; in usb_wwan_write() 203 buf += todo; in usb_wwan_write() 204 left -= todo; in usb_wwan_write()
|
| /linux/drivers/crypto/amlogic/ |
| H A D | amlogic-gxl-cipher.c | 93 unsigned int todo, eat, len; in meson_cipher() local 166 todo = min(keyivlen - eat, 16u); in meson_cipher() 172 eat += todo; in meson_cipher() 212 todo = min(len, sg_dma_len(src_sg)); in meson_cipher() 213 v = (op->keymode << 20) | DESC_OWN | todo | (algt->blockmode << 26); in meson_cipher() 216 len -= todo; in meson_cipher()
|