/Linux-v6.1/drivers/mtd/ubi/ |
D | gluebi.c | 156 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 …]
|
D | block.c | 186 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-v6.1/drivers/media/usb/gspca/ |
D | sq905c.c | 125 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()
|
D | sq905.c | 202 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()
|
D | jl2005bcd.c | 308 int bytes_left = 0; /* bytes remaining in current frame. */ in jl2005c_dostream() local 351 bytes_left = buffer[0x07] * dev->block_size - act_len; in jl2005c_dostream() 353 bytes_left); in jl2005c_dostream() 360 while (bytes_left > 0 && gspca_dev->present) { in jl2005c_dostream() 361 data_len = bytes_left > JL2005C_MAX_TRANSFER ? in jl2005c_dostream() 362 JL2005C_MAX_TRANSFER : bytes_left; in jl2005c_dostream() 371 data_len, bytes_left); in jl2005c_dostream() 372 bytes_left -= data_len; in jl2005c_dostream() 373 if (bytes_left == 0) { in jl2005c_dostream()
|
/Linux-v6.1/drivers/i2c/busses/ |
D | i2c-riic.c | 95 int bytes_left; member 134 riic->bytes_left = RIIC_INIT_MSG; in riic_xfer() 164 if (!riic->bytes_left) in riic_tdre_isr() 167 if (riic->bytes_left == RIIC_INIT_MSG) { in riic_tdre_isr() 173 riic->bytes_left = riic->msg->len; in riic_tdre_isr() 179 riic->bytes_left--; in riic_tdre_isr() 187 if (riic->bytes_left == 0) in riic_tdre_isr() 209 } else if (riic->bytes_left) { in riic_tend_isr() 229 if (!riic->bytes_left) in riic_rdrf_isr() 232 if (riic->bytes_left == RIIC_INIT_MSG) { in riic_rdrf_isr() [all …]
|
/Linux-v6.1/sound/soc/intel/skylake/ |
D | skl-sst-cldma.c | 252 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 …]
|
D | skl-sst.c | 334 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-v6.1/fs/btrfs/ |
D | zlib.c | 105 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() 365 unsigned long bytes_left; in zlib_decompress() local 370 bytes_left = destlen; in zlib_decompress() 395 while (bytes_left > 0) { in zlib_decompress() 422 bytes = min(bytes, bytes_left); in zlib_decompress() 428 bytes_left -= bytes; in zlib_decompress() 434 if (ret != Z_STREAM_END && bytes_left != 0) in zlib_decompress()
|
D | ordered-data.c | 202 entry->bytes_left = num_bytes; in btrfs_add_ordered_extent() 384 if (unlikely(len > entry->bytes_left)) { in btrfs_mark_ordered_io_finished() 392 len, entry->bytes_left); in btrfs_mark_ordered_io_finished() 393 entry->bytes_left = 0; in btrfs_mark_ordered_io_finished() 395 entry->bytes_left -= len; in btrfs_mark_ordered_io_finished() 405 if (entry->bytes_left == 0) { in btrfs_mark_ordered_io_finished() 462 if (io_size > entry->bytes_left) in btrfs_dec_test_ordered_pending() 465 entry->bytes_left, io_size); in btrfs_dec_test_ordered_pending() 467 entry->bytes_left -= io_size; in btrfs_dec_test_ordered_pending() 469 if (entry->bytes_left == 0) { in btrfs_dec_test_ordered_pending() [all …]
|
D | backref.c | 1889 s64 bytes_left = ((s64)size) - 1; in btrfs_ref_to_path() local 1894 if (bytes_left >= 0) in btrfs_ref_to_path() 1895 dest[bytes_left] = '\0'; in btrfs_ref_to_path() 1898 bytes_left -= name_len; in btrfs_ref_to_path() 1899 if (bytes_left >= 0) in btrfs_ref_to_path() 1900 read_extent_buffer(eb, dest + bytes_left, in btrfs_ref_to_path() 1934 --bytes_left; in btrfs_ref_to_path() 1935 if (bytes_left >= 0) in btrfs_ref_to_path() 1936 dest[bytes_left] = '/'; in btrfs_ref_to_path() 1944 return dest + bytes_left; in btrfs_ref_to_path() [all …]
|
/Linux-v6.1/drivers/virt/coco/efi_secret/ |
D | efi_secret.c | 216 int ret = 0, i = 0, bytes_left; in efi_secret_securityfs_setup() local 263 bytes_left = h->len - sizeof(*h); in efi_secret_securityfs_setup() 265 while (bytes_left >= (int)sizeof(*e) && i < EFI_SECRET_NUM_FILES) { in efi_secret_securityfs_setup() 267 if (e->len < sizeof(*e) || e->len > (unsigned int)bytes_left) { in efi_secret_securityfs_setup() 288 bytes_left -= e->len; in efi_secret_securityfs_setup()
|
/Linux-v6.1/sound/soc/sof/intel/ |
D | hda-loader-skl.c | 459 unsigned int bytes_left = total_size; in cl_skl_cldma_copy_to_buf() local 466 while (bytes_left > 0) { in cl_skl_cldma_copy_to_buf() 467 if (bytes_left > bufsize) { in cl_skl_cldma_copy_to_buf() 475 __func__, bytes_left); in cl_skl_cldma_copy_to_buf() 479 bytes_left -= bufsize; in cl_skl_cldma_copy_to_buf() 482 dev_dbg(sdev->dev, "cldma copy %#x bytes\n", bytes_left); in cl_skl_cldma_copy_to_buf() 485 cl_skl_cldma_fill_buffer(sdev, dmab, bufsize, bytes_left, curr_pos, false); in cl_skl_cldma_copy_to_buf() 490 return bytes_left; in cl_skl_cldma_copy_to_buf()
|
/Linux-v6.1/arch/x86/events/ |
D | utils.c | 91 int bytes_read, bytes_left, insn_offset; in get_branch_type() local 123 bytes_left = copy_from_user_nmi(buf, (void __user *)from, in get_branch_type() 125 bytes_read = MAX_INSN_SIZE - bytes_left; in get_branch_type()
|
/Linux-v6.1/drivers/net/wireless/marvell/mwifiex/ |
D | scan.c | 1214 u32 bytes_left; in mwifiex_update_bss_desc_with_ie() local 1222 bytes_left = bss_entry->beacon_buf_size; in mwifiex_update_bss_desc_with_ie() 1225 while (bytes_left >= 2) { in mwifiex_update_bss_desc_with_ie() 1230 if (bytes_left < total_ie_len) { in mwifiex_update_bss_desc_with_ie() 1451 bytes_left -= total_ie_len; in mwifiex_update_bss_desc_with_ie() 1741 u32 *bytes_left, u64 fw_tsf, u8 *radio_type, in mwifiex_parse_single_response_buf() argument 1762 if (*bytes_left >= sizeof(beacon_size)) { in mwifiex_parse_single_response_buf() 1765 *bytes_left -= sizeof(beacon_size); in mwifiex_parse_single_response_buf() 1769 if (!beacon_size || beacon_size > *bytes_left) { in mwifiex_parse_single_response_buf() 1770 *bss_info += *bytes_left; in mwifiex_parse_single_response_buf() [all …]
|
/Linux-v6.1/drivers/infiniband/hw/hfi1/ |
D | pio_copy.c | 360 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-v6.1/drivers/scsi/elx/efct/ |
D | efct_driver.c | 250 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-v6.1/drivers/remoteproc/ |
D | remoteproc_coredump.c | 179 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-v6.1/fs/nfs/blocklayout/ |
D | blocklayout.c | 172 size_t bytes_left = header->args.count; in bl_mark_devices_unavailable() local 177 bytes_left += header->args.offset - (isect << SECTOR_SHIFT); in bl_mark_devices_unavailable() 179 while (bytes_left > 0) { in bl_mark_devices_unavailable() 185 if (bytes_left > extent_length << SECTOR_SHIFT) in bl_mark_devices_unavailable() 186 bytes_left -= extent_length << SECTOR_SHIFT; in bl_mark_devices_unavailable() 188 bytes_left = 0; in bl_mark_devices_unavailable() 239 size_t bytes_left = header->args.count; in bl_read_pagelist() local 274 if (pg_offset + bytes_left > PAGE_SIZE) in bl_read_pagelist() 277 pg_len = bytes_left; in bl_read_pagelist() 307 bytes_left -= pg_len; in bl_read_pagelist()
|
/Linux-v6.1/drivers/mmc/host/ |
D | davinci_mmc.c | 190 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 …]
|
/Linux-v6.1/drivers/gpu/drm/ttm/ |
D | ttm_bo_vm.c | 372 unsigned long bytes_left = len; in ttm_bo_vm_access_kmap() local 380 unsigned long bytes = min(bytes_left, PAGE_SIZE - offset); in ttm_bo_vm_access_kmap() 399 bytes_left -= bytes; in ttm_bo_vm_access_kmap() 401 } while (bytes_left); in ttm_bo_vm_access_kmap()
|
/Linux-v6.1/drivers/memory/ |
D | renesas-rpc-if.c | 489 u32 bytes_left = rpc->xferlen - pos; in rpcif_manual_xfer() local 495 nbytes = bytes_left >= max ? max : (1 << ilog2(bytes_left)); in rpcif_manual_xfer() 496 if (bytes_left > nbytes) in rpcif_manual_xfer() 547 u32 bytes_left = rpc->xferlen - pos; in rpcif_manual_xfer() local 551 nbytes = bytes_left >= max ? max : (1 << ilog2(bytes_left)); in rpcif_manual_xfer()
|
/Linux-v6.1/drivers/crypto/ccp/ |
D | ccp-ops.c | 86 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 …]
|
/Linux-v6.1/drivers/platform/x86/dell/ |
D | dell_rbu.c | 428 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-v6.1/drivers/misc/eeprom/ |
D | at25.c | 84 size_t bytes_left = count; in at25_ee_read() local 100 segment = min(bytes_left, max_chunk); in at25_ee_read() 145 bytes_left -= segment; in at25_ee_read() 146 } while (bytes_left > 0); in at25_ee_read()
|