/linux-6.12.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 | nvmem.c | 25 size_t to_read, bytes_left = bytes; in ubi_nvmem_reg_read() local 38 while (bytes_left) { in ubi_nvmem_reg_read() 41 if (to_read > bytes_left) in ubi_nvmem_reg_read() 42 to_read = bytes_left; in ubi_nvmem_reg_read() 50 bytes_left -= to_read; in ubi_nvmem_reg_read() 58 return bytes_left == 0 ? 0 : -EIO; in ubi_nvmem_reg_read()
|
D | block.c | 186 int bytes_left = to_read; in ubiblock_read() local 204 while (bytes_left) { in ubiblock_read() 216 bytes_left -= to_read; in ubiblock_read() 217 to_read = bytes_left; in ubiblock_read()
|
/linux-6.12.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-6.12.1/drivers/i2c/busses/ |
D | i2c-riic.c | 105 int bytes_left; member 160 riic->bytes_left = RIIC_INIT_MSG; in riic_xfer() 191 if (!riic->bytes_left) in riic_tdre_isr() 194 if (riic->bytes_left == RIIC_INIT_MSG) { in riic_tdre_isr() 200 riic->bytes_left = riic->msg->len; in riic_tdre_isr() 206 riic->bytes_left--; in riic_tdre_isr() 214 if (riic->bytes_left == 0) in riic_tdre_isr() 236 } else if (riic->bytes_left) { in riic_tend_isr() 256 if (!riic->bytes_left) in riic_rdrf_isr() 259 if (riic->bytes_left == RIIC_INIT_MSG) { in riic_rdrf_isr() [all …]
|
D | i2c-mv64xxx.c | 131 u32 bytes_left; member 267 if ((drv_data->bytes_left == 0) in mv64xxx_i2c_fsm() 283 drv_data->bytes_left--; in mv64xxx_i2c_fsm() 297 if (drv_data->bytes_left == 0) { in mv64xxx_i2c_fsm() 308 drv_data->bytes_left--; in mv64xxx_i2c_fsm() 312 if ((drv_data->bytes_left == 1) || drv_data->aborting) in mv64xxx_i2c_fsm() 347 drv_data->bytes_left = drv_data->msg->len; in mv64xxx_i2c_send_start()
|
/linux-6.12.1/sound/soc/sof/intel/ |
D | hda-loader-skl.c | 458 unsigned int bytes_left = total_size; in cl_skl_cldma_copy_to_buf() local 465 while (bytes_left > 0) { in cl_skl_cldma_copy_to_buf() 466 if (bytes_left > bufsize) { in cl_skl_cldma_copy_to_buf() 474 __func__, bytes_left); in cl_skl_cldma_copy_to_buf() 478 bytes_left -= bufsize; in cl_skl_cldma_copy_to_buf() 481 dev_dbg(sdev->dev, "cldma copy %#x bytes\n", bytes_left); in cl_skl_cldma_copy_to_buf() 484 cl_skl_cldma_fill_buffer(sdev, dmab, bufsize, bytes_left, curr_pos, false); in cl_skl_cldma_copy_to_buf() 489 return bytes_left; in cl_skl_cldma_copy_to_buf()
|
/linux-6.12.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-6.12.1/arch/x86/events/ |
D | utils.c | 92 int bytes_read, bytes_left, insn_offset; in get_branch_type() local 124 bytes_left = copy_from_user_nmi(buf, (void __user *)from, in get_branch_type() 126 bytes_read = MAX_INSN_SIZE - bytes_left; in get_branch_type()
|
/linux-6.12.1/fs/btrfs/ |
D | ordered-data.c | 182 entry->bytes_left = num_bytes; in alloc_ordered_extent() 360 if (WARN_ON_ONCE(len > ordered->bytes_left)) { in can_finish_ordered_extent() 365 len, ordered->bytes_left); in can_finish_ordered_extent() 366 ordered->bytes_left = 0; in can_finish_ordered_extent() 368 ordered->bytes_left -= len; in can_finish_ordered_extent() 374 if (ordered->bytes_left) in can_finish_ordered_extent() 578 if (io_size > entry->bytes_left) in btrfs_dec_test_ordered_pending() 581 entry->bytes_left, io_size); in btrfs_dec_test_ordered_pending() 583 entry->bytes_left -= io_size; in btrfs_dec_test_ordered_pending() 585 if (entry->bytes_left == 0) { in btrfs_dec_test_ordered_pending() [all …]
|
D | backref.c | 2133 s64 bytes_left = ((s64)size) - 1; in btrfs_ref_to_path() local 2138 if (bytes_left >= 0) in btrfs_ref_to_path() 2139 dest[bytes_left] = '\0'; in btrfs_ref_to_path() 2142 bytes_left -= name_len; in btrfs_ref_to_path() 2143 if (bytes_left >= 0) in btrfs_ref_to_path() 2144 read_extent_buffer(eb, dest + bytes_left, in btrfs_ref_to_path() 2178 --bytes_left; in btrfs_ref_to_path() 2179 if (bytes_left >= 0) in btrfs_ref_to_path() 2180 dest[bytes_left] = '/'; in btrfs_ref_to_path() 2188 return dest + bytes_left; in btrfs_ref_to_path() [all …]
|
/linux-6.12.1/drivers/net/wireless/marvell/mwifiex/ |
D | scan.c | 1197 u32 bytes_left; in mwifiex_update_bss_desc_with_ie() local 1205 bytes_left = bss_entry->beacon_buf_size; in mwifiex_update_bss_desc_with_ie() 1208 while (bytes_left >= 2) { in mwifiex_update_bss_desc_with_ie() 1213 if (bytes_left < total_ie_len) { in mwifiex_update_bss_desc_with_ie() 1440 bytes_left -= total_ie_len; in mwifiex_update_bss_desc_with_ie() 1730 u32 *bytes_left, u64 fw_tsf, u8 *radio_type, in mwifiex_parse_single_response_buf() argument 1751 if (*bytes_left >= sizeof(beacon_size)) { in mwifiex_parse_single_response_buf() 1754 *bytes_left -= sizeof(beacon_size); in mwifiex_parse_single_response_buf() 1758 if (!beacon_size || beacon_size > *bytes_left) { in mwifiex_parse_single_response_buf() 1759 *bss_info += *bytes_left; in mwifiex_parse_single_response_buf() [all …]
|
/linux-6.12.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-6.12.1/drivers/scsi/elx/efct/ |
D | efct_driver.c | 251 u32 bytes_left; in efct_firmware_write() local 260 bytes_left = buf_len; in efct_firmware_write() 269 while (bytes_left > 0) { in efct_firmware_write() 270 if (bytes_left > FW_WRITE_BUFSIZE) in efct_firmware_write() 273 xfer_size = bytes_left; in efct_firmware_write() 277 if (bytes_left == xfer_size) in efct_firmware_write() 296 bytes_left -= result.actual_xfer; in efct_firmware_write()
|
/linux-6.12.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-6.12.1/drivers/remoteproc/ |
D | remoteproc_coredump.c | 180 size_t seg_data, bytes_left = count; in rproc_coredump_read() local 199 while (bytes_left) { in rproc_coredump_read() 210 copy_sz = min_t(size_t, bytes_left, seg_data); in rproc_coredump_read() 217 bytes_left -= copy_sz; in rproc_coredump_read() 220 return count - bytes_left; in rproc_coredump_read()
|
/linux-6.12.1/drivers/gpu/drm/ttm/ |
D | ttm_bo_vm.c | 374 unsigned long bytes_left = len; in ttm_bo_vm_access_kmap() local 382 unsigned long bytes = min(bytes_left, PAGE_SIZE - offset); in ttm_bo_vm_access_kmap() 401 bytes_left -= bytes; in ttm_bo_vm_access_kmap() 403 } while (bytes_left); in ttm_bo_vm_access_kmap()
|
/linux-6.12.1/drivers/mmc/host/ |
D | davinci_mmc.c | 183 u32 bytes_left; member 255 host->bytes_left -= n; in davinci_fifo_data_trans() 361 if (!host->do_dma && host->bytes_left <= poll_threshold) { in mmc_davinci_start_command() 555 host->bytes_left = data->blocks * data->blksz; in mmc_davinci_prepare_data() 565 if (host->use_dma && (host->bytes_left & (rw_threshold - 1)) == 0 in mmc_davinci_prepare_data() 568 host->bytes_left = 0; in mmc_davinci_prepare_data() 884 if (host->bytes_left && (status & (MMCST0_DXRDY | MMCST0_DRRDY))) { in mmc_davinci_irq() 901 } while (host->bytes_left && in mmc_davinci_irq() 917 if (host->bytes_left > 0) in mmc_davinci_irq() 921 davinci_fifo_data_trans(host, host->bytes_left); in mmc_davinci_irq()
|
/linux-6.12.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() 314 nbytes = min_t(u64, sg_wa->bytes_left, dm_wa->length); in ccp_queue_buf() 320 while (sg_wa->bytes_left && (buf_count < dm_wa->length)) { in ccp_queue_buf() 323 nbytes = min_t(u64, sg_wa->bytes_left, nbytes); in ccp_queue_buf() 354 sg_src_len = min_t(u64, src->sg_wa.bytes_left, sg_src_len); in ccp_prepare_data() 358 sg_dst_len = min_t(u64, src->sg_wa.bytes_left, sg_dst_len); in ccp_prepare_data() 570 while (src.sg_wa.bytes_left) { in ccp_run_aes_cmac_cmd() 572 if (aes->cmac_final && !src.sg_wa.bytes_left) { in ccp_run_aes_cmac_cmd() [all …]
|
/linux-6.12.1/drivers/net/ethernet/intel/ice/ |
D | ice_gnss.c | 135 unsigned int bytes_left = data_len - i; in ice_gnss_read() local 137 bytes_read = min_t(typeof(bytes_left), bytes_left, in ice_gnss_read()
|
/linux-6.12.1/drivers/memory/ |
D | renesas-rpc-if.c | 526 u32 bytes_left = rpc->xferlen - pos; in rpcif_manual_xfer() local 532 nbytes = bytes_left >= max ? max : (1 << ilog2(bytes_left)); in rpcif_manual_xfer() 533 if (bytes_left > nbytes) in rpcif_manual_xfer() 584 u32 bytes_left = rpc->xferlen - pos; in rpcif_manual_xfer() local 588 nbytes = bytes_left >= max ? max : (1 << ilog2(bytes_left)); in rpcif_manual_xfer()
|
/linux-6.12.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()
|
/linux-6.12.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()
|