/linux/drivers/media/dvb-core/ |
A D | dvb_ringbuffer.c | 135 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 D | dvb_vb2.c | 263 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()
|
A 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() 987 dfil->todo = 0; in dvb_dmxdev_read_sec() 996 if (dfil->todo > -3) in dvb_dmxdev_read_sec() 1003 count = dfil->todo; in dvb_dmxdev_read_sec() [all …]
|
/linux/drivers/crypto/allwinner/sun4i-ss/ |
A D | sun4i-ss-cipher.c | 33 unsigned int todo; in sun4i_ss_opti_poll() local 94 todo = min_t(size_t, todo, (mi.length - oi) / 4); in sun4i_ss_opti_poll() 95 if (todo) { in sun4i_ss_opti_poll() 122 todo = min_t(size_t, todo, (mo.length - oo) / 4); in sun4i_ss_opti_poll() 123 if (todo) { in sun4i_ss_opti_poll() 293 todo = min_t(size_t, todo, (mi.length - oi) / 4); in sun4i_ss_cipher_poll() 296 todo); in sun4i_ss_cipher_poll() 308 todo = min_t(size_t, todo, mi.length - oi); in sun4i_ss_cipher_poll() 311 oi += todo; in sun4i_ss_cipher_poll() 344 todo = min_t(size_t, todo, (mo.length - oo) / 4); in sun4i_ss_cipher_poll() [all …]
|
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/platform/chrome/ |
A D | cros_ec_spi.c | 198 int todo; in cros_ec_spi_receive_packet() local 240 BUG_ON(todo < 0 || todo > ec_dev->din_size); in cros_ec_spi_receive_packet() 241 todo = min(todo, need_len); in cros_ec_spi_receive_packet() 245 need_len, todo); in cros_ec_spi_receive_packet() 246 need_len -= todo; in cros_ec_spi_receive_packet() 279 ptr += todo; in cros_ec_spi_receive_packet() 306 int todo; in cros_ec_spi_receive_response() local 348 BUG_ON(todo < 0 || todo > ec_dev->din_size); in cros_ec_spi_receive_response() 349 todo = min(todo, need_len); in cros_ec_spi_receive_response() 354 need_len -= todo; in cros_ec_spi_receive_response() [all …]
|
/linux/drivers/crypto/allwinner/sun8i-ce/ |
A D | sun8i-ce-trng.c | 29 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() 75 cet->t_dlen = cpu_to_le32(todo); in sun8i_ce_trng_read() 77 cet->t_dlen = cpu_to_le32(todo / 4); in sun8i_ce_trng_read() 83 cet->t_dst[0].len = cpu_to_le32(todo / 4); in sun8i_ce_trng_read() 84 ce->chanlist[flow].timeout = todo; in sun8i_ce_trng_read() [all …]
|
A D | sun8i-ce-prng.c | 65 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() 129 cet->t_dlen = cpu_to_le32(todo); in sun8i_ce_prng_generate() 131 cet->t_dlen = cpu_to_le32(todo / 4); in sun8i_ce_prng_generate() 141 cet->t_dst[0].len = cpu_to_le32(todo / 4); in sun8i_ce_prng_generate() [all …]
|
A D | sun8i-ce-cipher.c | 90 unsigned int todo, len, offset, ivsize; in sun8i_ce_cipher_prepare() local 209 todo = min(len, sg_dma_len(sg)); in sun8i_ce_cipher_prepare() 210 cet->t_src[i].len = cpu_to_le32(todo / 4); in sun8i_ce_cipher_prepare() 212 areq->cryptlen, i, cet->t_src[i].len, sg->offset, todo); in sun8i_ce_cipher_prepare() 213 len -= todo; in sun8i_ce_cipher_prepare() 224 todo = min(len, sg_dma_len(sg)); in sun8i_ce_cipher_prepare() 225 cet->t_dst[i].len = cpu_to_le32(todo / 4); in sun8i_ce_cipher_prepare() 227 areq->cryptlen, i, cet->t_dst[i].len, sg->offset, todo); in sun8i_ce_cipher_prepare() 228 len -= todo; in sun8i_ce_cipher_prepare()
|
/linux/drivers/crypto/allwinner/sun8i-ss/ |
A D | sun8i-ss-prng.c | 63 unsigned int todo; in sun8i_ss_prng_generate() local 81 todo = dlen + PRNG_SEED_SIZE + PRNG_DATA_SIZE; in sun8i_ss_prng_generate() 82 todo -= todo % PRNG_DATA_SIZE; in sun8i_ss_prng_generate() 84 d = kzalloc(todo, GFP_KERNEL | GFP_DMA); in sun8i_ss_prng_generate() 92 algt->stat_bytes += todo; in sun8i_ss_prng_generate() 108 dma_dst = dma_map_single(ss->dev, d, todo, DMA_FROM_DEVICE); in sun8i_ss_prng_generate() 127 writel(todo / 4, ss->base + SS_LEN_ADR_REG); in sun8i_ss_prng_generate() 137 msecs_to_jiffies(todo)); in sun8i_ss_prng_generate() 139 dev_err(ss->dev, "DMA timeout for PRNG (size=%u)\n", todo); in sun8i_ss_prng_generate() 159 dma_unmap_single(ss->dev, dma_dst, todo, DMA_FROM_DEVICE); in sun8i_ss_prng_generate()
|
A D | sun8i-ss-cipher.c | 104 unsigned int todo, len, offset, ivsize; in sun8i_ss_cipher() local 194 todo = min(len, sg_dma_len(sg)); in sun8i_ss_cipher() 195 rctx->t_src[i].len = todo / 4; in sun8i_ss_cipher() 197 areq->cryptlen, i, rctx->t_src[i].len, sg->offset, todo); in sun8i_ss_cipher() 198 len -= todo; in sun8i_ss_cipher() 216 todo = min(len, sg_dma_len(sg)); in sun8i_ss_cipher() 217 rctx->t_dst[i].len = todo / 4; in sun8i_ss_cipher() 219 areq->cryptlen, i, rctx->t_dst[i].len, sg->offset, todo); in sun8i_ss_cipher() 220 len -= todo; in sun8i_ss_cipher()
|
/linux/drivers/usb/gadget/udc/ |
A D | max3420_udc.c | 165 u32 todo; member 184 u32 todo; member 321 int todo; in spi_max3420_enable() local 324 todo = ep->todo & ENABLE_EP; in spi_max3420_enable() 353 int todo; in spi_max3420_stall() local 356 todo = ep->todo & STALL_EP; in spi_max3420_stall() 364 if (todo == STALL) { in spi_max3420_stall() 480 int todo; in max3420_start() local 483 todo = udc->todo & UDC_START; in max3420_start() 487 if (!todo) in max3420_start() [all …]
|
/linux/kernel/power/ |
A 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/arch/powerpc/platforms/powernv/ |
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/drivers/media/pci/tw68/ |
A D | tw68-risc.c | 39 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/drivers/staging/media/av7110/ |
A D | av7110_av.c | 391 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 …]
|
/linux/drivers/gpu/drm/msm/dp/ |
A D | dp_display.c | 154 struct dp_event *todo; in dp_add_event() local 168 todo->event_id = event; in dp_add_event() 169 todo->data = data; in dp_add_event() 170 todo->delay = delay; in dp_add_event() 180 struct dp_event *todo; in dp_del_event() local 194 todo->delay = 0; in dp_del_event() 1055 if (todo->delay) { in hpd_event_thread() 1070 todo->delay = 0; in hpd_event_thread() 1104 todo->data); in hpd_event_thread() 1108 todo->data); in hpd_event_thread() [all …]
|
/linux/drivers/crypto/gemini/ |
A D | sl3516-ce-cipher.c | 132 unsigned int todo, len; in sl3516_ce_cipher() local 182 todo = min(len, sg_dma_len(sg)); in sl3516_ce_cipher() 183 rctx->t_src[i].len = todo; in sl3516_ce_cipher() 185 areq->cryptlen, i, rctx->t_src[i].len, sg->offset, todo); in sl3516_ce_cipher() 186 len -= todo; in sl3516_ce_cipher() 204 todo = min(len, sg_dma_len(sg)); in sl3516_ce_cipher() 205 rctx->t_dst[i].len = todo; in sl3516_ce_cipher() 207 areq->cryptlen, i, rctx->t_dst[i].len, sg->offset, todo); in sl3516_ce_cipher() 208 len -= todo; in sl3516_ce_cipher()
|
/linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
A D | tu102.c | 125 u32 engm, runm, todo; in tu102_fifo_recover_work() local 137 for (todo = engm; engn = __ffs(todo), todo; todo &= ~BIT(engn)) { in tu102_fifo_recover_work() 144 for (todo = runm; runl = __ffs(todo), todo; todo &= ~BIT(runl)) in tu102_fifo_recover_work()
|
/linux/drivers/w1/slaves/ |
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()
|
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()
|
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()
|
/linux/drivers/firewire/ |
A D | core-cdev.c | 1263 todo = r->todo; in iso_resource_work() 1265 if (todo == ISO_RES_ALLOC && in iso_resource_work() 1288 todo == ISO_RES_ALLOC || in iso_resource_work() 1289 todo == ISO_RES_REALLOC || in iso_resource_work() 1297 (todo == ISO_RES_ALLOC || todo == ISO_RES_REALLOC)) in iso_resource_work() 1307 if (r->todo == ISO_RES_ALLOC) in iso_resource_work() 1308 r->todo = ISO_RES_REALLOC; in iso_resource_work() 1327 if (todo == ISO_RES_ALLOC || todo == ISO_RES_ALLOC_ONCE) { in iso_resource_work() 1358 r->todo = ISO_RES_DEALLOC; in release_iso_resource() 1384 r->todo = todo; in init_iso_resource() [all …]
|
/linux/arch/arm64/crypto/ |
A D | chacha-neon-glue.c | 91 unsigned int todo = min_t(unsigned int, bytes, SZ_4K); in chacha_crypt_arch() local 94 chacha_doneon(state, dst, src, todo, nrounds); in chacha_crypt_arch() 97 bytes -= todo; in chacha_crypt_arch() 98 src += todo; in chacha_crypt_arch() 99 dst += todo; in chacha_crypt_arch()
|
/linux/drivers/base/ |
A D | devres.c | 432 struct list_head *todo) in remove_nodes() argument 453 list_move_tail(&node->entry, todo); in remove_nodes() 483 list_move_tail(&grp->node[0].entry, todo); in remove_nodes() 491 static void release_nodes(struct device *dev, struct list_head *todo) in release_nodes() argument 498 list_for_each_entry_safe_reverse(dr, tmp, todo, node.entry) { in release_nodes() 515 LIST_HEAD(todo); in devres_release_all() 527 cnt = remove_nodes(dev, dev->devres_head.next, &dev->devres_head, &todo); in devres_release_all() 530 release_nodes(dev, &todo); in devres_release_all() 667 LIST_HEAD(todo); in devres_release_group() 680 cnt = remove_nodes(dev, first, end, &todo); in devres_release_group() [all …]
|