/kernel/linux/linux-5.10/drivers/media/dvb-core/ |
H A 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 in dvb_ringbuffer_write() 211 size_t todo = len; dvb_ringbuffer_write_user() local 255 size_t todo; dvb_ringbuffer_pkt_read_user() local 283 size_t todo; dvb_ringbuffer_pkt_read() local [all...] |
/kernel/linux/linux-6.6/drivers/media/dvb-core/ |
H A 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 in dvb_ringbuffer_write() 211 size_t todo = len; dvb_ringbuffer_write_user() local 255 size_t todo; dvb_ringbuffer_pkt_read_user() local 283 size_t todo; dvb_ringbuffer_pkt_read() local [all...] |
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun4i-ss/ |
H A D | sun4i-ss-cipher.c | 33 unsigned int todo; in sun4i_ss_opti_poll() local 85 todo = min(rx_cnt, ileft); in sun4i_ss_opti_poll() 86 todo = min_t(size_t, todo, (mi.length - oi) / 4); in sun4i_ss_opti_poll() 87 if (todo) { in sun4i_ss_opti_poll() 88 ileft -= todo; in sun4i_ss_opti_poll() 89 writesl(ss->base + SS_RXFIFO, mi.addr + oi, todo); in sun4i_ss_opti_poll() 90 oi += todo * 4; in sun4i_ss_opti_poll() 113 todo = min(tx_cnt, oleft); in sun4i_ss_opti_poll() 114 todo in sun4i_ss_opti_poll() 187 unsigned int todo; sun4i_ss_cipher_poll() local [all...] |
H A D | sun4i-ss-prng.c | 26 unsigned int todo = (dlen / 4) * 4; in sun4i_ss_prng_generate() local 39 while (todo > 0) { in sun4i_ss_prng_generate() 45 len = min_t(size_t, SS_DATA_LEN / BITS_PER_BYTE, todo); in sun4i_ss_prng_generate() 48 todo -= len; in sun4i_ss_prng_generate()
|
/kernel/linux/linux-6.6/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 in sun4i_ss_opti_poll() 198 unsigned int todo; sun4i_ss_cipher_poll() local [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()
|
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ce/ |
H 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 / in sun8i_ce_trng_read() [all...] |
H A D | sun8i-ce-prng.c | 67 unsigned int todo; in sun8i_ce_prng_generate() local 82 todo = dlen + ctx->slen + PRNG_DATA_SIZE * 2; in sun8i_ce_prng_generate() 83 todo -= todo % PRNG_DATA_SIZE; in sun8i_ce_prng_generate() 85 d = kzalloc(todo, GFP_KERNEL | GFP_DMA); in sun8i_ce_prng_generate() 91 dev_dbg(ce->dev, "%s PRNG slen=%u dlen=%u todo=%u multi=%u\n", __func__, in sun8i_ce_prng_generate() 92 slen, dlen, todo, todo / PRNG_DATA_SIZE); in sun8i_ce_prng_generate() 96 algt->stat_bytes += todo; in sun8i_ce_prng_generate() 106 dma_dst = dma_map_single(ce->dev, d, todo, DMA_FROM_DEVIC in sun8i_ce_prng_generate() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/allwinner/sun8i-ce/ |
H 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() 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 / in sun8i_ce_trng_read() [all...] |
H 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() 89 dev_dbg(ce->dev, "%s PRNG slen=%u dlen=%u todo=%u multi=%u\n", __func__, 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_DEVIC in sun8i_ce_prng_generate() [all...] |
H A 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() 132 unsigned int todo, len, offset, ivsize; in sun8i_ce_cipher_prepare() local 240 todo = min(len, sg_dma_len(sg)); in sun8i_ce_cipher_prepare() 241 cet->t_src[i].len = cpu_to_le32(todo / in sun8i_ce_cipher_prepare() [all...] |
/kernel/linux/linux-5.10/drivers/platform/chrome/ |
H A D | cros_ec_spi.c | 198 int todo; in cros_ec_spi_receive_packet() local 239 todo = end - ++ptr; in cros_ec_spi_receive_packet() 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() 242 memmove(ec_dev->din, ptr, todo); in cros_ec_spi_receive_packet() 243 ptr = ec_dev->din + todo; 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() 306 int todo; cros_ec_spi_receive_response() local [all...] |
/kernel/linux/linux-6.6/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 / in sun8i_ss_prng_generate() [all...] |
H A 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() 127 unsigned int todo, offset; in sun8i_ss_setup_ivs() local 161 todo = min(len, sg_dma_len(sg)); in sun8i_ss_setup_ivs() 162 len -= todo; in sun8i_ss_setup_ivs() 193 unsigned int todo, len, offset, ivsize; sun8i_ss_cipher() local [all...] |
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-prng.c | 65 unsigned int todo; in sun8i_ss_prng_generate() local 83 todo = dlen + PRNG_SEED_SIZE + PRNG_DATA_SIZE; in sun8i_ss_prng_generate() 84 todo -= todo % PRNG_DATA_SIZE; in sun8i_ss_prng_generate() 86 d = kzalloc(todo, GFP_KERNEL | GFP_DMA); in sun8i_ss_prng_generate() 94 algt->stat_bytes += todo; in sun8i_ss_prng_generate() 110 dma_dst = dma_map_single(ss->dev, d, todo, DMA_FROM_DEVICE); in sun8i_ss_prng_generate() 129 writel(todo / 4, ss->base + SS_LEN_ADR_REG); in sun8i_ss_prng_generate() 139 msecs_to_jiffies(todo)); in sun8i_ss_prng_generate() 141 dev_err(ss->dev, "DMA timeout for PRNG (size=%u)\n", todo); in sun8i_ss_prng_generate() [all...] |
/kernel/linux/linux-6.6/drivers/platform/chrome/ |
H A D | cros_ec_spi.c | 193 int todo; in cros_ec_spi_receive_packet() local 235 todo = end - ++ptr; in cros_ec_spi_receive_packet() 236 todo = min(todo, need_len); in cros_ec_spi_receive_packet() 237 memmove(ec_dev->din, ptr, todo); in cros_ec_spi_receive_packet() 238 ptr = ec_dev->din + todo; 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() 244 if (todo < sizeof(*response)) { in cros_ec_spi_receive_packet() 245 ret = receive_n_bytes(ec_dev, ptr, sizeof(*response) - todo); in cros_ec_spi_receive_packet() 301 int todo; cros_ec_spi_receive_response() local [all...] |
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/ |
H 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() 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 in spi_max3420_stall() 480 int todo; max3420_start() local [all...] |
/kernel/linux/linux-6.6/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 in spi_max3420_stall() 478 int todo; max3420_start() local [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/tw68/ |
H 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() 94 /* final chunk - offset 0, count 'todo' */ in tw68_risc_field() 97 todo); in tw68_risc_field() 100 offset = todo; in tw68_risc_field()
|
/kernel/linux/linux-5.10/kernel/power/ |
H 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()
|
/kernel/linux/linux-6.6/drivers/media/pci/tw68/ |
H 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() 94 /* final chunk - offset 0, count 'todo' */ in tw68_risc_field() 97 todo); in tw68_risc_field() 100 offset = todo; in tw68_risc_field()
|
/kernel/linux/linux-5.10/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 > in lpc_debug_write() [all...] |
/kernel/linux/linux-6.6/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 > in lpc_debug_write() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dp/ |
H A D | dp_display.c | 132 struct dp_event *todo; in dp_add_event() local 144 todo = &dp_priv->event_list[dp_priv->event_pndx++]; in dp_add_event() 146 todo->event_id = event; in dp_add_event() 147 todo->data = data; in dp_add_event() 148 todo->delay = delay; in dp_add_event() 158 struct dp_event *todo; in dp_del_event() local 169 todo = &dp_priv->event_list[gndx]; in dp_del_event() 170 if (todo->event_id == event) { in dp_del_event() 171 todo->event_id = EV_NO_EVENT; /* deleted */ in dp_del_event() 172 todo in dp_del_event() 1041 struct dp_event *todo; hpd_event_thread() local [all...] |