Home
last modified time | relevance | path

Searched refs:bytes_left (Results 1 – 25 of 57) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/mtd/ubi/
Dgluebi.c156 int err = 0, lnum, offs, bytes_left; in gluebi_read() local
161 bytes_left = len; in gluebi_read()
162 while (bytes_left) { in gluebi_read()
165 if (to_read > bytes_left) in gluebi_read()
166 to_read = bytes_left; in gluebi_read()
174 bytes_left -= to_read; in gluebi_read()
178 *retlen = len - bytes_left; in gluebi_read()
196 int err = 0, lnum, offs, bytes_left; in gluebi_write() local
205 bytes_left = len; in gluebi_write()
206 while (bytes_left) { in gluebi_write()
[all …]
Dblock.c186 int ret, leb, offset, bytes_left, to_read; in ubiblock_read() local
197 bytes_left = to_read; in ubiblock_read()
199 while (bytes_left) { in ubiblock_read()
211 bytes_left -= to_read; in ubiblock_read()
212 to_read = bytes_left; in ubiblock_read()
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-riic.c93 int bytes_left; member
132 riic->bytes_left = RIIC_INIT_MSG; in riic_xfer()
162 if (!riic->bytes_left) in riic_tdre_isr()
165 if (riic->bytes_left == RIIC_INIT_MSG) { in riic_tdre_isr()
171 riic->bytes_left = riic->msg->len; in riic_tdre_isr()
177 riic->bytes_left--; in riic_tdre_isr()
185 if (riic->bytes_left == 0) in riic_tdre_isr()
207 } else if (riic->bytes_left) { in riic_tend_isr()
227 if (!riic->bytes_left) in riic_rdrf_isr()
230 if (riic->bytes_left == RIIC_INIT_MSG) { in riic_rdrf_isr()
[all …]
Di2c-mv64xxx.c130 u32 bytes_left; member
257 if ((drv_data->bytes_left == 0) in mv64xxx_i2c_fsm()
273 drv_data->bytes_left--; in mv64xxx_i2c_fsm()
287 if (drv_data->bytes_left == 0) { in mv64xxx_i2c_fsm()
298 drv_data->bytes_left--; in mv64xxx_i2c_fsm()
302 if ((drv_data->bytes_left == 1) || drv_data->aborting) in mv64xxx_i2c_fsm()
336 drv_data->bytes_left = drv_data->msg->len; in mv64xxx_i2c_send_start()
Di2c-bcm-iproc.c580 u32 bytes_left, val; in bcm_iproc_i2c_read() local
583 bytes_left = msg->len - iproc_i2c->rx_bytes; in bcm_iproc_i2c_read()
584 if (bytes_left == 0) { in bcm_iproc_i2c_read()
591 } else if (bytes_left < iproc_i2c->thld_bytes) { in bcm_iproc_i2c_read()
595 val |= (bytes_left << M_FIFO_RX_THLD_SHIFT); in bcm_iproc_i2c_read()
597 iproc_i2c->thld_bytes = bytes_left; in bcm_iproc_i2c_read()
/kernel/linux/linux-5.10/drivers/media/usb/gspca/
Dsq905c.c125 int bytes_left; /* bytes remaining in current frame. */ in sq905c_dostream() local
154 bytes_left = buffer[0x40]|(buffer[0x41]<<8)|(buffer[0x42]<<16) in sq905c_dostream()
157 bytes_left); in sq905c_dostream()
162 while (bytes_left > 0 && gspca_dev->present) { in sq905c_dostream()
163 data_len = bytes_left > SQ905C_MAX_TRANSFER ? in sq905c_dostream()
164 SQ905C_MAX_TRANSFER : bytes_left; in sq905c_dostream()
173 data_len, bytes_left); in sq905c_dostream()
174 bytes_left -= data_len; in sq905c_dostream()
175 if (bytes_left == 0) in sq905c_dostream()
Dsq905.c202 int bytes_left; /* bytes remaining in current frame. */ in sq905_dostream() local
227 bytes_left = frame_sz; in sq905_dostream()
234 while (bytes_left > 0 && gspca_dev->present) { in sq905_dostream()
235 data_len = bytes_left > SQ905_MAX_TRANSFER ? in sq905_dostream()
236 SQ905_MAX_TRANSFER : bytes_left; in sq905_dostream()
242 data_len, bytes_left); in sq905_dostream()
243 bytes_left -= data_len; in sq905_dostream()
252 } else if (bytes_left == 0) { in sq905_dostream()
262 bytes_left == 0) in sq905_dostream()
Djl2005bcd.c306 int bytes_left = 0; /* bytes remaining in current frame. */ in jl2005c_dostream() local
349 bytes_left = buffer[0x07] * dev->block_size - act_len; in jl2005c_dostream()
351 bytes_left); in jl2005c_dostream()
358 while (bytes_left > 0 && gspca_dev->present) { in jl2005c_dostream()
359 data_len = bytes_left > JL2005C_MAX_TRANSFER ? in jl2005c_dostream()
360 JL2005C_MAX_TRANSFER : bytes_left; in jl2005c_dostream()
369 data_len, bytes_left); in jl2005c_dostream()
370 bytes_left -= data_len; in jl2005c_dostream()
371 if (bytes_left == 0) { in jl2005c_dostream()
/kernel/linux/linux-5.10/sound/soc/intel/skylake/
Dskl-sst-cldma.c252 unsigned int bytes_left = total_size; in skl_cldma_copy_to_buf() local
258 dev_dbg(ctx->dev, "%s: Total binary size: %u\n", __func__, bytes_left); in skl_cldma_copy_to_buf()
260 while (bytes_left) { in skl_cldma_copy_to_buf()
261 if (bytes_left > ctx->cl_dev.bufsize) { in skl_cldma_copy_to_buf()
284 if ((ctx->cl_dev.curr_spib_pos + bytes_left) in skl_cldma_copy_to_buf()
286 ctx->cl_dev.curr_spib_pos += bytes_left; in skl_cldma_copy_to_buf()
288 excess_bytes = bytes_left - in skl_cldma_copy_to_buf()
294 size = bytes_left; in skl_cldma_copy_to_buf()
298 bytes_left -= size; in skl_cldma_copy_to_buf()
301 return bytes_left; in skl_cldma_copy_to_buf()
[all …]
Dskl-sst.c334 int ret, bytes_left, curr_pos; in skl_transfer_module() local
338 bytes_left = ctx->cl_dev.ops.cl_copy_to_dmabuf(ctx, data, size, false); in skl_transfer_module()
339 if (bytes_left < 0) in skl_transfer_module()
340 return bytes_left; in skl_transfer_module()
359 while (bytes_left > 0) { in skl_transfer_module()
360 curr_pos = size - bytes_left; in skl_transfer_module()
366 bytes_left = ctx->cl_dev.ops.cl_copy_to_dmabuf(ctx, in skl_transfer_module()
368 bytes_left, false); in skl_transfer_module()
/kernel/linux/linux-5.10/fs/btrfs/
Dzlib.c105 unsigned long bytes_left; in zlib_compress_pages() local
144 bytes_left = len - workspace->strm.total_in; in zlib_compress_pages()
145 in_buf_pages = min(DIV_ROUND_UP(bytes_left, PAGE_SIZE), in zlib_compress_pages()
174 workspace->strm.avail_in = min(bytes_left, in zlib_compress_pages()
375 unsigned long bytes_left; in zlib_decompress() local
381 bytes_left = destlen; in zlib_decompress()
406 while (bytes_left > 0) { in zlib_decompress()
433 bytes = min(bytes, bytes_left); in zlib_decompress()
440 bytes_left -= bytes; in zlib_decompress()
446 if (ret != Z_STREAM_END && bytes_left != 0) in zlib_decompress()
Dordered-data.c197 entry->bytes_left = num_bytes; in __btrfs_add_ordered_extent()
347 if (to_dec > entry->bytes_left) { in btrfs_dec_test_first_ordered_pending()
350 entry->bytes_left, to_dec); in btrfs_dec_test_first_ordered_pending()
352 entry->bytes_left -= to_dec; in btrfs_dec_test_first_ordered_pending()
356 if (entry->bytes_left == 0) { in btrfs_dec_test_first_ordered_pending()
410 if (io_size > entry->bytes_left) { in btrfs_dec_test_ordered_pending()
413 entry->bytes_left, io_size); in btrfs_dec_test_ordered_pending()
415 entry->bytes_left -= io_size; in btrfs_dec_test_ordered_pending()
419 if (entry->bytes_left == 0) { in btrfs_dec_test_ordered_pending()
Dbackref.c1718 s64 bytes_left = ((s64)size) - 1; local
1724 if (bytes_left >= 0)
1725 dest[bytes_left] = '\0';
1729 bytes_left -= name_len;
1730 if (bytes_left >= 0)
1731 read_extent_buffer(eb, dest + bytes_left,
1767 --bytes_left;
1768 if (bytes_left >= 0)
1769 dest[bytes_left] = '/';
1778 return dest + bytes_left;
[all …]
Dlzo.c125 unsigned long bytes_left; in lzo_compress_pages() local
245 bytes_left = len - tot_in; in lzo_compress_pages()
252 in_len = min(bytes_left, PAGE_SIZE); in lzo_compress_pages()
/kernel/linux/linux-5.10/drivers/remoteproc/
Dremoteproc_coredump.c175 size_t seg_data, bytes_left = count; in rproc_coredump_read() local
194 while (bytes_left) { in rproc_coredump_read()
205 copy_sz = min_t(size_t, bytes_left, seg_data); in rproc_coredump_read()
212 bytes_left -= copy_sz; in rproc_coredump_read()
215 return count - bytes_left; in rproc_coredump_read()
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/
Dscan.c1227 u32 bytes_left; in mwifiex_update_bss_desc_with_ie() local
1235 bytes_left = bss_entry->beacon_buf_size; in mwifiex_update_bss_desc_with_ie()
1238 while (bytes_left >= 2) { in mwifiex_update_bss_desc_with_ie()
1243 if (bytes_left < total_ie_len) { in mwifiex_update_bss_desc_with_ie()
1464 bytes_left -= total_ie_len; in mwifiex_update_bss_desc_with_ie()
1754 u32 *bytes_left, u64 fw_tsf, u8 *radio_type, in mwifiex_parse_single_response_buf() argument
1775 if (*bytes_left >= sizeof(beacon_size)) { in mwifiex_parse_single_response_buf()
1778 *bytes_left -= sizeof(beacon_size); in mwifiex_parse_single_response_buf()
1782 if (!beacon_size || beacon_size > *bytes_left) { in mwifiex_parse_single_response_buf()
1783 *bss_info += *bytes_left; in mwifiex_parse_single_response_buf()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dpio_copy.c401 unsigned long bytes_left = nbytes & 0x7; in mid_copy_mix() local
474 if (pbuf->carry_bytes + bytes_left >= 8) { in mid_copy_mix()
504 bytes_left -= nread; in mid_copy_mix()
506 read_low_bytes(pbuf, from, bytes_left); in mid_copy_mix()
509 read_extra_bytes(pbuf, from, bytes_left); in mid_copy_mix()
/kernel/linux/linux-5.10/fs/nfs/blocklayout/
Dblocklayout.c195 size_t bytes_left = header->args.count; in bl_mark_devices_unavailable() local
200 bytes_left += header->args.offset - (isect << SECTOR_SHIFT); in bl_mark_devices_unavailable()
202 while (bytes_left > 0) { in bl_mark_devices_unavailable()
208 if (bytes_left > extent_length << SECTOR_SHIFT) in bl_mark_devices_unavailable()
209 bytes_left -= extent_length << SECTOR_SHIFT; in bl_mark_devices_unavailable()
211 bytes_left = 0; in bl_mark_devices_unavailable()
262 size_t bytes_left = header->args.count; in bl_read_pagelist() local
297 if (pg_offset + bytes_left > PAGE_SIZE) in bl_read_pagelist()
300 pg_len = bytes_left; in bl_read_pagelist()
330 bytes_left -= pg_len; in bl_read_pagelist()
/kernel/linux/linux-5.10/drivers/mmc/host/
Ddavinci_mmc.c190 u32 bytes_left; member
221 if (host->buffer_bytes_left > host->bytes_left) in mmc_davinci_sg_to_buf()
222 host->buffer_bytes_left = host->bytes_left; in mmc_davinci_sg_to_buf()
240 host->bytes_left -= n; in davinci_fifo_data_trans()
371 if (!host->do_dma && host->bytes_left <= poll_threshold) { in mmc_davinci_start_command()
563 host->bytes_left = data->blocks * data->blksz; in mmc_davinci_prepare_data()
573 if (host->use_dma && (host->bytes_left & (rw_threshold - 1)) == 0 in mmc_davinci_prepare_data()
576 host->bytes_left = 0; in mmc_davinci_prepare_data()
891 if (host->bytes_left && (status & (MMCST0_DXRDY | MMCST0_DRRDY))) { in mmc_davinci_irq()
908 } while (host->bytes_left && in mmc_davinci_irq()
[all …]
/kernel/linux/linux-5.10/drivers/memory/
Drenesas-rpc-if.c476 u32 bytes_left = rpc->xferlen - pos; in rpcif_manual_xfer() local
482 nbytes = bytes_left >= max ? max : (1 << ilog2(bytes_left)); in rpcif_manual_xfer()
483 if (bytes_left > nbytes) in rpcif_manual_xfer()
540 u32 bytes_left = rpc->xferlen - pos; in rpcif_manual_xfer() local
544 nbytes = bytes_left >= max ? max : (1 << ilog2(bytes_left)); in rpcif_manual_xfer()
/kernel/linux/linux-5.10/drivers/crypto/ccp/
Dccp-ops.c86 wa->bytes_left = len; in ccp_init_sg_workarea()
108 unsigned int nbytes = min_t(u64, len, wa->bytes_left); in ccp_update_sg_workarea()
115 wa->bytes_left -= nbytes; in ccp_update_sg_workarea()
311 nbytes = min_t(u64, sg_wa->bytes_left, dm_wa->length); in ccp_queue_buf()
317 while (sg_wa->bytes_left && (buf_count < dm_wa->length)) { in ccp_queue_buf()
320 nbytes = min_t(u64, sg_wa->bytes_left, nbytes); in ccp_queue_buf()
351 sg_src_len = min_t(u64, src->sg_wa.bytes_left, sg_src_len); in ccp_prepare_data()
355 sg_dst_len = min_t(u64, src->sg_wa.bytes_left, sg_dst_len); in ccp_prepare_data()
567 while (src.sg_wa.bytes_left) { in ccp_run_aes_cmac_cmd()
569 if (aes->cmac_final && !src.sg_wa.bytes_left) { in ccp_run_aes_cmac_cmd()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/
Dttm_bo_vm.c451 unsigned long bytes_left = len; in ttm_bo_vm_access_kmap() local
459 unsigned long bytes = min(bytes_left, PAGE_SIZE - offset); in ttm_bo_vm_access_kmap()
478 bytes_left -= bytes; in ttm_bo_vm_access_kmap()
480 } while (bytes_left); in ttm_bo_vm_access_kmap()
/kernel/linux/linux-5.10/drivers/platform/x86/
Ddell_rbu.c428 size_t bytes_left; in read_packet_data() local
445 bytes_left = rbu_data.imagesize - pos; in read_packet_data()
446 data_length = min(bytes_left, count); in read_packet_data()
454 retval = bytes_left; in read_packet_data()
/kernel/linux/linux-5.10/fs/nfs/
Ddirect.c83 bytes_left, /* bytes left to be sent */ member
234 return dreq->bytes_left; in nfs_dreq_bytes_left()
398 dreq->bytes_left -= req_len; in nfs_direct_read_schedule_iovec()
470 dreq->bytes_left = dreq->max_count = count; in nfs_file_direct_read()
854 dreq->bytes_left -= req_len; in nfs_direct_write_schedule_iovec()
935 dreq->bytes_left = dreq->max_count = count; in nfs_file_direct_write()
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/
Dgr_udc.c478 u16 bytes_left; /* Bytes left to provide descriptors for */ in gr_setup_out_desc_list() local
483 bytes_left = req->req.length; in gr_setup_out_desc_list()
485 while (bytes_left > 0) { in gr_setup_out_desc_list()
487 u16 size = min(bytes_left, ep->bytes_per_buffer); in gr_setup_out_desc_list()
491 req->evenlen = req->req.length - bytes_left; in gr_setup_out_desc_list()
499 bytes_left -= size; in gr_setup_out_desc_list()
531 u16 bytes_left; /* Bytes left in req to provide descriptors for */ in gr_setup_in_desc_list() local
536 bytes_left = req->req.length; in gr_setup_in_desc_list()
540 u16 size = min(bytes_left, ep->bytes_per_buffer); in gr_setup_in_desc_list()
546 bytes_left -= size; in gr_setup_in_desc_list()
[all …]

123