Home
last modified time | relevance | path

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

123

/linux/drivers/mtd/ubi/
A Dgluebi.c161 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()
205 bytes_left = len; in gluebi_write()
206 while (bytes_left) { in gluebi_write()
209 if (to_write > bytes_left) in gluebi_write()
210 to_write = bytes_left; in gluebi_write()
[all …]
A 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()
/linux/drivers/media/usb/gspca/
A 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()
A 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()
A 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()
/linux/drivers/i2c/busses/
A Di2c-riic.c100 int bytes_left; member
139 riic->bytes_left = RIIC_INIT_MSG; in riic_xfer()
169 if (!riic->bytes_left) in riic_tdre_isr()
178 riic->bytes_left = riic->msg->len; in riic_tdre_isr()
184 riic->bytes_left--; in riic_tdre_isr()
192 if (riic->bytes_left == 0) in riic_tdre_isr()
214 } else if (riic->bytes_left) { in riic_tend_isr()
234 if (!riic->bytes_left) in riic_rdrf_isr()
238 riic->bytes_left = riic->msg->len; in riic_rdrf_isr()
243 if (riic->bytes_left == 1) { in riic_rdrf_isr()
[all …]
A Di2c-mv64xxx.c132 u32 bytes_left; member
264 if ((drv_data->bytes_left == 0) in mv64xxx_i2c_fsm()
280 drv_data->bytes_left--; in mv64xxx_i2c_fsm()
294 if (drv_data->bytes_left == 0) { in mv64xxx_i2c_fsm()
305 drv_data->bytes_left--; in mv64xxx_i2c_fsm()
309 if ((drv_data->bytes_left == 1) || drv_data->aborting) in mv64xxx_i2c_fsm()
344 drv_data->bytes_left = drv_data->msg->len; in mv64xxx_i2c_send_start()
A Di2c-bcm-iproc.c595 u32 bytes_left, val; in bcm_iproc_i2c_read() local
598 bytes_left = msg->len - iproc_i2c->rx_bytes; in bcm_iproc_i2c_read()
599 if (bytes_left == 0) { in bcm_iproc_i2c_read()
606 } else if (bytes_left < iproc_i2c->thld_bytes) { in bcm_iproc_i2c_read()
610 val |= (bytes_left << M_FIFO_RX_THLD_SHIFT); in bcm_iproc_i2c_read()
612 iproc_i2c->thld_bytes = bytes_left; in bcm_iproc_i2c_read()
/linux/sound/soc/intel/skylake/
A 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 …]
A 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()
/linux/fs/btrfs/
A 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()
371 unsigned long bytes_left; in zlib_decompress() local
376 bytes_left = destlen; in zlib_decompress()
401 while (bytes_left > 0) { in zlib_decompress()
428 bytes = min(bytes, bytes_left); in zlib_decompress()
434 bytes_left -= bytes; in zlib_decompress()
440 if (ret != Z_STREAM_END && bytes_left != 0) in zlib_decompress()
A Dordered-data.c187 entry->bytes_left = num_bytes; in __btrfs_add_ordered_extent()
405 if (unlikely(len > entry->bytes_left)) { in btrfs_mark_ordered_io_finished()
413 len, entry->bytes_left); in btrfs_mark_ordered_io_finished()
414 entry->bytes_left = 0; in btrfs_mark_ordered_io_finished()
416 entry->bytes_left -= len; in btrfs_mark_ordered_io_finished()
426 if (entry->bytes_left == 0) { in btrfs_mark_ordered_io_finished()
482 if (io_size > entry->bytes_left) in btrfs_dec_test_ordered_pending()
485 entry->bytes_left, io_size); in btrfs_dec_test_ordered_pending()
487 entry->bytes_left -= io_size; in btrfs_dec_test_ordered_pending()
489 if (entry->bytes_left == 0) { in btrfs_dec_test_ordered_pending()
[all …]
A Dbackref.c1681 if (bytes_left >= 0)
1682 dest[bytes_left] = '\0';
1685 bytes_left -= name_len;
1686 if (bytes_left >= 0)
1721 --bytes_left;
1722 if (bytes_left >= 0)
1723 dest[bytes_left] = '/';
1731 return dest + bytes_left;
2206 u32 bytes_left; local
2208 bytes_left = ipath->fspath->bytes_left > s_ptr ?
[all …]
/linux/drivers/net/wireless/marvell/mwifiex/
A Dscan.c1226 u32 bytes_left; in mwifiex_update_bss_desc_with_ie() local
1237 while (bytes_left >= 2) { in mwifiex_update_bss_desc_with_ie()
1782 *bss_info += *bytes_left; in mwifiex_parse_single_response_buf()
1783 *bytes_left = 0; in mwifiex_parse_single_response_buf()
1794 *bytes_left -= beacon_size; in mwifiex_parse_single_response_buf()
2123 u32 bytes_left; in mwifiex_ret_802_11_scan() local
2156 bytes_left); in mwifiex_ret_802_11_scan()
2179 bytes_left); in mwifiex_ret_802_11_scan()
2242 &bytes_left, in mwifiex_ret_802_11_scan()
2707 bytes_left -= in mwifiex_handle_event_ext_scan_report()
[all …]
/linux/drivers/infiniband/hw/hfi1/
A Dpio_copy.c360 unsigned long bytes_left = nbytes & 0x7; in mid_copy_mix() local
433 if (pbuf->carry_bytes + bytes_left >= 8) { in mid_copy_mix()
463 bytes_left -= nread; in mid_copy_mix()
465 read_low_bytes(pbuf, from, bytes_left); in mid_copy_mix()
468 read_extra_bytes(pbuf, from, bytes_left); in mid_copy_mix()
/linux/drivers/scsi/elx/efct/
A Defct_driver.c250 u32 bytes_left; in efct_firmware_write() local
259 bytes_left = buf_len; in efct_firmware_write()
268 while (bytes_left > 0) { in efct_firmware_write()
269 if (bytes_left > FW_WRITE_BUFSIZE) in efct_firmware_write()
272 xfer_size = bytes_left; in efct_firmware_write()
276 if (bytes_left == xfer_size) in efct_firmware_write()
295 bytes_left -= result.actual_xfer; in efct_firmware_write()
/linux/drivers/mmc/host/
A 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()
908 } while (host->bytes_left && in mmc_davinci_irq()
923 if ((host->do_dma == 0) && (host->bytes_left > 0)) { in mmc_davinci_irq()
[all …]
/linux/fs/nfs/blocklayout/
A Dblocklayout.c190 size_t bytes_left = header->args.count; in bl_mark_devices_unavailable() local
195 bytes_left += header->args.offset - (isect << SECTOR_SHIFT); in bl_mark_devices_unavailable()
197 while (bytes_left > 0) { in bl_mark_devices_unavailable()
203 if (bytes_left > extent_length << SECTOR_SHIFT) in bl_mark_devices_unavailable()
204 bytes_left -= extent_length << SECTOR_SHIFT; in bl_mark_devices_unavailable()
206 bytes_left = 0; in bl_mark_devices_unavailable()
257 size_t bytes_left = header->args.count; in bl_read_pagelist() local
292 if (pg_offset + bytes_left > PAGE_SIZE) in bl_read_pagelist()
295 pg_len = bytes_left; in bl_read_pagelist()
325 bytes_left -= pg_len; in bl_read_pagelist()
/linux/drivers/remoteproc/
A Dremoteproc_coredump.c179 size_t seg_data, bytes_left = count; in rproc_coredump_read() local
198 while (bytes_left) { in rproc_coredump_read()
209 copy_sz = min_t(size_t, bytes_left, seg_data); in rproc_coredump_read()
216 bytes_left -= copy_sz; in rproc_coredump_read()
219 return count - bytes_left; in rproc_coredump_read()
/linux/drivers/memory/
A Drenesas-rpc-if.c432 u32 bytes_left = rpc->xferlen - pos; in rpcif_manual_xfer() local
438 nbytes = bytes_left >= max ? max : (1 << ilog2(bytes_left)); in rpcif_manual_xfer()
439 if (bytes_left > nbytes) in rpcif_manual_xfer()
495 u32 bytes_left = rpc->xferlen - pos; in rpcif_manual_xfer() local
499 nbytes = bytes_left >= max ? max : (1 << ilog2(bytes_left)); in rpcif_manual_xfer()
/linux/drivers/gpu/drm/ttm/
A Dttm_bo_vm.c380 unsigned long bytes_left = len; in ttm_bo_vm_access_kmap() local
388 unsigned long bytes = min(bytes_left, PAGE_SIZE - offset); in ttm_bo_vm_access_kmap()
407 bytes_left -= bytes; in ttm_bo_vm_access_kmap()
409 } while (bytes_left); in ttm_bo_vm_access_kmap()
/linux/drivers/crypto/ccp/
A Dccp-ops.c86 wa->bytes_left = len; in ccp_init_sg_workarea()
115 wa->bytes_left -= nbytes; in ccp_update_sg_workarea()
567 while (src.sg_wa.bytes_left) { in ccp_run_aes_cmac_cmd()
755 while (aad.sg_wa.bytes_left) { in ccp_run_aes_gcm_cmd()
797 if (!src.sg_wa.bytes_left) { in ccp_run_aes_gcm_cmd()
1035 while (src.sg_wa.bytes_left) { in ccp_run_aes_cmd()
1037 if (!src.sg_wa.bytes_left) { in ccp_run_aes_cmd()
1245 while (src.sg_wa.bytes_left) { in ccp_run_xts_aes_cmd()
1247 if (!src.sg_wa.bytes_left) in ccp_run_xts_aes_cmd()
1434 while (src.sg_wa.bytes_left) { in ccp_run_des3_cmd()
[all …]
/linux/drivers/platform/x86/dell/
A 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()
/linux/fs/nfs/
A 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()
468 dreq->bytes_left = dreq->max_count = count; in nfs_file_direct_read()
850 dreq->bytes_left -= req_len; in nfs_direct_write_schedule_iovec()
925 dreq->bytes_left = dreq->max_count = count; in nfs_file_direct_write()
/linux/drivers/usb/gadget/udc/
A Dgr_udc.c479 u16 bytes_left; /* Bytes left to provide descriptors for */ in gr_setup_out_desc_list() local
484 bytes_left = req->req.length; in gr_setup_out_desc_list()
486 while (bytes_left > 0) { in gr_setup_out_desc_list()
488 u16 size = min(bytes_left, ep->bytes_per_buffer); in gr_setup_out_desc_list()
492 req->evenlen = req->req.length - bytes_left; in gr_setup_out_desc_list()
500 bytes_left -= size; in gr_setup_out_desc_list()
532 u16 bytes_left; /* Bytes left in req to provide descriptors for */ in gr_setup_in_desc_list() local
537 bytes_left = req->req.length; in gr_setup_in_desc_list()
541 u16 size = min(bytes_left, ep->bytes_per_buffer); in gr_setup_in_desc_list()
547 bytes_left -= size; in gr_setup_in_desc_list()
[all …]

Completed in 88 milliseconds

123