/linux-6.1.9/drivers/media/dvb-core/ |
D | dvb_ringbuffer.c | 135 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 …]
|
D | dvb_vb2.c | 259 int todo = len; in dvb_vb2_fill_buffer() local 274 while (todo) { in dvb_vb2_fill_buffer() 296 ll = min(todo, ctx->remain); in dvb_vb2_fill_buffer() 299 todo -= ll; in dvb_vb2_fill_buffer() 320 if (todo) in dvb_vb2_fill_buffer() 321 dprintk(1, "[%s] %d bytes are dropped.\n", ctx->name, todo); in dvb_vb2_fill_buffer() 325 dprintk(3, "[%s] %d bytes are copied\n", ctx->name, len - todo); in dvb_vb2_fill_buffer() 326 return (len - todo); in dvb_vb2_fill_buffer()
|
/linux-6.1.9/drivers/crypto/allwinner/sun8i-ce/ |
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() 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 …]
|
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() 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 …]
|
D | sun8i-ce-cipher.c | 30 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() 127 unsigned int todo, len, offset, ivsize; in sun8i_ce_cipher_prepare() local 235 todo = min(len, sg_dma_len(sg)); in sun8i_ce_cipher_prepare() 236 cet->t_src[i].len = cpu_to_le32(todo / 4); in sun8i_ce_cipher_prepare() [all …]
|
/linux-6.1.9/drivers/crypto/allwinner/sun4i-ss/ |
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 …]
|
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-6.1.9/drivers/platform/chrome/ |
D | cros_ec_spi.c | 199 int todo; in cros_ec_spi_receive_packet() local 241 todo = end - ++ptr; in cros_ec_spi_receive_packet() 242 todo = min(todo, need_len); in cros_ec_spi_receive_packet() 243 memmove(ec_dev->din, ptr, todo); in cros_ec_spi_receive_packet() 244 ptr = ec_dev->din + todo; in cros_ec_spi_receive_packet() 246 need_len, todo); in cros_ec_spi_receive_packet() 247 need_len -= todo; in cros_ec_spi_receive_packet() 250 if (todo < sizeof(*response)) { in cros_ec_spi_receive_packet() 251 ret = receive_n_bytes(ec_dev, ptr, sizeof(*response) - todo); in cros_ec_spi_receive_packet() 254 ptr += (sizeof(*response) - todo); in cros_ec_spi_receive_packet() [all …]
|
/linux-6.1.9/drivers/crypto/allwinner/sun8i-ss/ |
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() 125 writel(todo / 4, ss->base + SS_LEN_ADR_REG); in sun8i_ss_prng_generate() 135 msecs_to_jiffies(todo)); in sun8i_ss_prng_generate() 137 dev_err(ss->dev, "DMA timeout for PRNG (size=%u)\n", todo); in sun8i_ss_prng_generate() 157 dma_unmap_single(ss->dev, dma_dst, todo, DMA_FROM_DEVICE); in sun8i_ss_prng_generate()
|
D | sun8i-ss-cipher.c | 31 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() 122 unsigned int todo, offset; in sun8i_ss_setup_ivs() local 156 todo = min(len, sg_dma_len(sg)); in sun8i_ss_setup_ivs() 157 len -= todo; in sun8i_ss_setup_ivs() [all …]
|
/linux-6.1.9/kernel/power/ |
D | process.c | 32 unsigned int todo; in try_to_freeze_tasks() local 47 todo = 0; in try_to_freeze_tasks() 53 todo++; in try_to_freeze_tasks() 59 todo += wq_busy; in try_to_freeze_tasks() 62 if (!todo || time_after(jiffies, end_time)) in try_to_freeze_tasks() 84 if (todo) { in try_to_freeze_tasks() 90 todo - wq_busy, wq_busy); in try_to_freeze_tasks() 108 return todo ? -EBUSY : 0; in try_to_freeze_tasks()
|
/linux-6.1.9/drivers/usb/gadget/udc/ |
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() 325 ep->todo &= ~ENABLE_EP; in spi_max3420_enable() 328 if (!todo || ep->id == 0) in spi_max3420_enable() 334 if (todo == ENABLE) { in spi_max3420_enable() 353 int todo; in spi_max3420_stall() local 356 todo = ep->todo & STALL_EP; in spi_max3420_stall() 357 ep->todo &= ~STALL_EP; in spi_max3420_stall() [all …]
|
/linux-6.1.9/arch/powerpc/platforms/powernv/ |
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-6.1.9/drivers/media/pci/tw68/ |
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-6.1.9/drivers/staging/media/deprecated/saa7146/av7110/ |
D | av7110_av.c | 388 unsigned long todo = count; in aux_ring_buffer_write() local 391 while (todo > 0) { in aux_ring_buffer_write() 395 return count - todo; 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() 405 return count - todo; in aux_ring_buffer_write() 436 unsigned long todo = count; in ts_play() local 449 while (todo >= TS_SIZE) { in ts_play() 452 return count - todo; in ts_play() [all …]
|
/linux-6.1.9/drivers/crypto/gemini/ |
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-6.1.9/drivers/w1/slaves/ |
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()
|
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()
|
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-6.1.9/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
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-6.1.9/drivers/net/ethernet/netronome/nfp/nfd3/ |
D | xsk.c | 280 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()
|
/linux-6.1.9/drivers/gpu/drm/msm/dp/ |
D | dp_display.c | 194 struct dp_event *todo; in dp_add_event() local 206 todo = &dp_priv->event_list[dp_priv->event_pndx++]; in dp_add_event() 208 todo->event_id = event; in dp_add_event() 209 todo->data = data; in dp_add_event() 210 todo->delay = delay; in dp_add_event() 220 struct dp_event *todo; in dp_del_event() local 231 todo = &dp_priv->event_list[gndx]; in dp_del_event() 232 if (todo->event_id == event) { in dp_del_event() 233 todo->event_id = EV_NO_EVENT; /* deleted */ in dp_del_event() 234 todo->delay = 0; in dp_del_event() [all …]
|
/linux-6.1.9/arch/arm64/crypto/ |
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-6.1.9/drivers/firewire/ |
D | core-cdev.c | 130 ISO_RES_ALLOC_ONCE, ISO_RES_DEALLOC_ONCE,} todo; member 1260 int generation, channel, bandwidth, todo; in iso_resource_work() local 1265 todo = r->todo; in iso_resource_work() 1267 if (todo == ISO_RES_ALLOC && in iso_resource_work() 1274 skip = todo == ISO_RES_REALLOC && in iso_resource_work() 1277 free = todo == ISO_RES_DEALLOC || in iso_resource_work() 1278 todo == ISO_RES_ALLOC_ONCE || in iso_resource_work() 1279 todo == ISO_RES_DEALLOC_ONCE; in iso_resource_work() 1290 todo == ISO_RES_ALLOC || in iso_resource_work() 1291 todo == ISO_RES_REALLOC || in iso_resource_work() [all …]
|
/linux-6.1.9/drivers/base/ |
D | devres.c | 434 struct list_head *todo) in remove_nodes() argument 455 list_move_tail(&node->entry, todo); in remove_nodes() 485 list_move_tail(&grp->node[0].entry, todo); in remove_nodes() 493 static void release_nodes(struct device *dev, struct list_head *todo) in release_nodes() argument 500 list_for_each_entry_safe_reverse(dr, tmp, todo, node.entry) { in release_nodes() 517 LIST_HEAD(todo); in devres_release_all() 529 cnt = remove_nodes(dev, dev->devres_head.next, &dev->devres_head, &todo); in devres_release_all() 532 release_nodes(dev, &todo); in devres_release_all() 669 LIST_HEAD(todo); in devres_release_group() 682 cnt = remove_nodes(dev, first, end, &todo); in devres_release_group() [all …]
|