/linux/drivers/spi/ |
H A D | spi-sh.c | 155 int cur_len; in spi_sh_send() local 164 cur_len = min(SPI_SH_FIFO_SIZE, remain); in spi_sh_send() 165 for (i = 0; i < cur_len && in spi_sh_send() 179 cur_len = i; in spi_sh_send() 181 remain -= cur_len; in spi_sh_send() 182 data += cur_len; in spi_sh_send() 220 int cur_len; in spi_sh_receive() local 249 cur_len = min(SPI_SH_FIFO_SIZE, remain); in spi_sh_receive() 250 for (i = 0; i < cur_len; i++) { in spi_sh_receive() 256 remain -= cur_len; in spi_sh_receive() [all …]
|
H A D | spi-ljca.c | 161 int complete, cur_len; in ljca_spi_transfer() local 176 cur_len = min_t(unsigned int, remaining, LJCA_SPI_MAX_XFER_SIZE); in ljca_spi_transfer() 177 complete = (cur_len == remaining); in ljca_spi_transfer() 182 cur_len, i, complete, cmd); in ljca_spi_transfer() 186 offset += cur_len; in ljca_spi_transfer() 187 remaining -= cur_len; in ljca_spi_transfer()
|
/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | mcu.c | 137 int err, cur_len; in __mt76_mcu_send_firmware() local 140 cur_len = min_t(int, max_len, len); in __mt76_mcu_send_firmware() 142 err = mt76_mcu_send_msg(dev, cmd, data, cur_len, false); in __mt76_mcu_send_firmware() 146 data += cur_len; in __mt76_mcu_send_firmware() 147 len -= cur_len; in __mt76_mcu_send_firmware()
|
/linux/fs/ext4/ |
H A D | move_extent.c | 635 int unwritten, cur_len; in ext4_move_extents() local 644 cur_len = ext4_ext_get_actual_len(ex); in ext4_move_extents() 646 if (cur_blk + cur_len - 1 < o_start) { in ext4_move_extents() 664 cur_len += cur_blk - o_start; in ext4_move_extents() 667 if (o_end - o_start < cur_len) in ext4_move_extents() 668 cur_len = o_end - o_start; in ext4_move_extents() 675 if (cur_len > blocks_per_page - offset_in_page) in ext4_move_extents() 676 cur_len = blocks_per_page - offset_in_page; in ext4_move_extents() 688 offset_in_page, cur_len, in ext4_move_extents() 693 o_start += cur_len; in ext4_move_extents() [all …]
|
/linux/drivers/input/rmi4/ |
H A D | rmi_smbus.c | 143 int cur_len = (int)len; in rmi_smb_write_block() local 147 while (cur_len > 0) { in rmi_smb_write_block() 164 cur_len -= SMB_MAX_COUNT; in rmi_smb_write_block() 196 int cur_len = (int)len; in rmi_smb_read_block() local 201 while (cur_len > 0) { in rmi_smb_read_block() 203 int block_len = min_t(int, cur_len, SMB_MAX_COUNT); in rmi_smb_read_block() 216 cur_len -= SMB_MAX_COUNT; in rmi_smb_read_block()
|
/linux/include/net/ |
H A D | fq_impl.h | 174 unsigned int cur_len; in fq_find_fattest_flow() local 176 cur_len = cur->backlog; in fq_find_fattest_flow() 177 if (cur_len <= len) in fq_find_fattest_flow() 181 len = cur_len; in fq_find_fattest_flow() 185 unsigned int cur_len = tin->default_flow.backlog; in fq_find_fattest_flow() local 187 if (cur_len <= len) in fq_find_fattest_flow() 191 len = cur_len; in fq_find_fattest_flow()
|
/linux/arch/arm/mach-rpc/ |
H A D | dma.c | 31 unsigned int cur_len; member 70 idma->cur_len = end - TRANSFER_SIZE; in iomd_get_next_sg() 89 idma->cur_len = 0; in iomd_get_next_sg() 92 idma->cur_len |= flags; in iomd_get_next_sg() 120 writel(idma->cur_len, base + end); in iomd_dma_handle() 123 idma->cur_len == (DMA_END_S|DMA_END_L)) in iomd_dma_handle()
|
/linux/drivers/md/ |
H A D | dm-ebs-target.c | 70 unsigned int cur_len; in __ebs_rw_bvec() local 83 cur_len = min(dm_bufio_get_block_size(ec->bufio) - buf_off, bv_len); in __ebs_rw_bvec() 101 memcpy(pa, ba, cur_len); in __ebs_rw_bvec() 105 memcpy(ba, pa, cur_len); in __ebs_rw_bvec() 106 dm_bufio_mark_partial_buffer_dirty(b, buf_off, buf_off + cur_len); in __ebs_rw_bvec() 112 pa += cur_len; in __ebs_rw_bvec() 113 bv_len -= cur_len; in __ebs_rw_bvec()
|
/linux/drivers/platform/mellanox/ |
H A D | mlxbf-tmfifo.c | 85 int cur_len; member 624 memcpy(&data, addr + vring->cur_len, in mlxbf_tmfifo_rxtx_word() 627 vring->cur_len += sizeof(u64); in mlxbf_tmfifo_rxtx_word() 633 len - vring->cur_len); in mlxbf_tmfifo_rxtx_word() 637 len - vring->cur_len); in mlxbf_tmfifo_rxtx_word() 639 vring->cur_len = len; in mlxbf_tmfifo_rxtx_word() 723 vring->cur_len = hdr_len; in mlxbf_tmfifo_rxtx_header() 780 if (vring->cur_len < len) { in mlxbf_tmfifo_rxtx_one_desc() 786 if (vring->cur_len == len) { in mlxbf_tmfifo_rxtx_one_desc() 787 vring->cur_len = 0; in mlxbf_tmfifo_rxtx_one_desc() [all …]
|
/linux/drivers/nvdimm/ |
H A D | btt.c | 1150 unsigned int cur_len; in btt_rw_integrity() local 1161 cur_len = min(len, bv.bv_len); in btt_rw_integrity() 1174 len -= cur_len; in btt_rw_integrity() 1175 meta_nsoff += cur_len; in btt_rw_integrity() 1201 u32 cur_len; in btt_read_pg() local 1209 cur_len = min(btt->sector_size, len); in btt_read_pg() 1275 len -= cur_len; in btt_read_pg() 1276 off += cur_len; in btt_read_pg() 1315 u32 cur_len; in btt_write_pg() local 1405 len -= cur_len; in btt_write_pg() [all …]
|
/linux/fs/btrfs/ |
H A D | zstd.c | 395 unsigned int cur_len; in zstd_compress_folios() local 422 cur_len = btrfs_calc_input_length(orig_end, start); in zstd_compress_folios() 425 workspace->in_buf.size = cur_len; in zstd_compress_folios() 502 start += cur_len; in zstd_compress_folios() 503 len -= cur_len; in zstd_compress_folios() 508 cur_len = btrfs_calc_input_length(orig_end, start); in zstd_compress_folios() 511 workspace->in_buf.size = cur_len; in zstd_compress_folios()
|
H A D | zlib.c | 183 unsigned int cur_len; in zlib_compress_folios() local 195 cur_len = btrfs_calc_input_length(orig_end, start); in zlib_compress_folios() 199 workspace->strm.avail_in = cur_len; in zlib_compress_folios()
|
H A D | extent_io.c | 2201 u32 cur_len = cur_end + 1 - cur; in extent_write_locked_range() local 2212 cur, cur_len, false); in extent_write_locked_range() 2234 cur, cur_len, !ret); in extent_write_locked_range() 2237 btrfs_folio_end_writer_lock(fs_info, folio, cur, cur_len); in extent_write_locked_range() 3761 cur += cur_len; in memset_extent_buffer() 3784 unsigned long cur_len = min(src->len, unit_size - offset); in copy_extent_buffer_full() local 3787 write_extent_buffer(dst, addr, cur, cur_len); in copy_extent_buffer_full() 3789 cur += cur_len; in copy_extent_buffer_full() 3992 unsigned long cur_len = min(src_offset + len - cur_src, in memcpy_extent_buffer() local 3996 dst_offset + cur_off, cur_len); in memcpy_extent_buffer() [all …]
|
/linux/net/wireless/ |
H A D | util.c | 702 int cur_len; in __ieee80211_amsdu_copy_frag() local 719 cur_len = min(len, frag_len); in __ieee80211_amsdu_copy_frag() 722 len -= cur_len; in __ieee80211_amsdu_copy_frag() 726 cur_len = min(len, frag_len); in __ieee80211_amsdu_copy_frag() 728 skb_frag_address(frag), cur_len, frag_len); in __ieee80211_amsdu_copy_frag() 729 len -= cur_len; in __ieee80211_amsdu_copy_frag() 740 int cur_len = len; in __ieee80211_amsdu_copy() local 751 cur_len = min_t(int, len, min_len); in __ieee80211_amsdu_copy() 763 skb_copy_bits(skb, offset, skb_put(frame, cur_len), cur_len); in __ieee80211_amsdu_copy() 765 len -= cur_len; in __ieee80211_amsdu_copy() [all …]
|
/linux/drivers/mmc/host/ |
H A D | mmci_stm32_sdmmc.c | 580 int cur_len = 0, max_len = 0, end_of_len = 0; in sdmmc_dlyb_phase_tuning() local 591 cur_len = 0; in sdmmc_dlyb_phase_tuning() 593 cur_len++; in sdmmc_dlyb_phase_tuning() 594 if (cur_len > max_len) { in sdmmc_dlyb_phase_tuning() 595 max_len = cur_len; in sdmmc_dlyb_phase_tuning()
|
/linux/drivers/usb/musb/ |
H A D | ux500_dma.c | 35 unsigned int cur_len; member 63 ux500_channel->channel.actual_len = ux500_channel->cur_len; in ux500_dma_callback() 91 ux500_channel->cur_len = len; in ux500_configure_channel()
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_alloc.c | 928 xfs_extlen_t cur_len;/* current search length */ member 951 acur->cur_len = args->maxlen; in xfs_alloc_cur_setup() 1143 xfs_extlen_t len, cur_len; in xfs_alloc_cntbt_iter() local 1151 cur_len = acur->cur_len; in xfs_alloc_cntbt_iter() 1165 ASSERT(len >= acur->cur_len); in xfs_alloc_cntbt_iter() 1166 acur->cur_len = len; in xfs_alloc_cntbt_iter() 1179 if (!error && i && len == acur->cur_len) in xfs_alloc_cntbt_iter() 1193 cur_len <<= 1; in xfs_alloc_cntbt_iter() 1194 if (!acur->len || acur->cur_len >= cur_len) in xfs_alloc_cntbt_iter() 1195 acur->cur_len++; in xfs_alloc_cntbt_iter() [all …]
|
/linux/drivers/iommu/ |
H A D | dma-iommu.c | 1253 unsigned int cur_len = 0, max_len = dma_get_max_seg_size(dev); in __finalise_sg() local 1275 cur_len = 0; in __finalise_sg() 1289 if (cur_len && !s_iova_off && (dma_addr & seg_mask) && in __finalise_sg() 1290 (max_len - cur_len >= s_length)) { in __finalise_sg() 1292 cur_len += s_length; in __finalise_sg() 1297 cur_len = s_length; in __finalise_sg() 1303 sg_dma_len(cur) = cur_len; in __finalise_sg() 1307 cur_len = 0; in __finalise_sg()
|
/linux/drivers/net/ethernet/atheros/ |
H A D | ag71xx.c | 1458 unsigned int cur_len = len; in ag71xx_fill_dma_desc() local 1466 if (cur_len > split) { in ag71xx_fill_dma_desc() 1467 cur_len = split; in ag71xx_fill_dma_desc() 1473 cur_len -= 4; in ag71xx_fill_dma_desc() 1477 addr += cur_len; in ag71xx_fill_dma_desc() 1478 len -= cur_len; in ag71xx_fill_dma_desc() 1481 cur_len |= DESC_MORE; in ag71xx_fill_dma_desc() 1485 cur_len |= DESC_EMPTY; in ag71xx_fill_dma_desc() 1487 desc->ctrl = cur_len; in ag71xx_fill_dma_desc()
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_init_ops.h | 94 u32 cur_len = min(buf_len32, len - i); in bnx2x_init_fill() local 96 bnx2x_write_big_buf(bp, addr + i*4, cur_len, wb); in bnx2x_init_fill() 133 u32 cur_len = min(buf_len32, len - i); in bnx2x_init_wr_64() local 135 bnx2x_write_big_buf_wb(bp, addr + i*4, cur_len); in bnx2x_init_wr_64()
|
/linux/drivers/ata/ |
H A D | pata_mpc52xx.c | 461 u32 cur_len = sg_dma_len(sg); in mpc52xx_ata_build_dmatable() local 463 while (cur_len) { in mpc52xx_ata_build_dmatable() 464 unsigned int tc = min(cur_len, MAX_DMA_BUFFER_SIZE); in mpc52xx_ata_build_dmatable() 483 cur_len -= tc; in mpc52xx_ata_build_dmatable()
|
/linux/drivers/target/ |
H A D | target_core_configfs.c | 2766 ssize_t len = 0, cur_len; in target_lu_gp_members_show() local 2774 cur_len = snprintf(buf, LU_GROUP_NAME_BUF, "%s/%s\n", in target_lu_gp_members_show() 2777 cur_len++; /* Extra byte for NULL terminator */ in target_lu_gp_members_show() 2779 if ((cur_len + len) > PAGE_SIZE) { in target_lu_gp_members_show() 2784 memcpy(page+len, buf, cur_len); in target_lu_gp_members_show() 2785 len += cur_len; in target_lu_gp_members_show() 3164 ssize_t len = 0, cur_len; in target_tg_pt_gp_members_show() local 3177 cur_len++; /* Extra byte for NULL terminator */ in target_tg_pt_gp_members_show() 3179 if ((cur_len + len) > PAGE_SIZE) { in target_tg_pt_gp_members_show() 3184 memcpy(page+len, buf, cur_len); in target_tg_pt_gp_members_show() [all …]
|
/linux/drivers/net/ethernet/google/gve/ |
H A D | gve_tx_dqo.c | 518 u32 cur_len = min_t(u32, len, GVE_TX_MAX_BUF_SIZE_DQO); in gve_tx_fill_pkt_desc_dqo() local 519 bool cur_eop = eop && cur_len == len; in gve_tx_fill_pkt_desc_dqo() 527 .buf_size = cur_len, in gve_tx_fill_pkt_desc_dqo() 530 addr += cur_len; in gve_tx_fill_pkt_desc_dqo() 531 len -= cur_len; in gve_tx_fill_pkt_desc_dqo()
|
/linux/drivers/target/iscsi/cxgbit/ |
H A D | cxgbit_target.c | 359 u32 cur_len = min_t(u32, data_length, sg->length - page_off); in cxgbit_map_skb() local 365 cur_len); in cxgbit_map_skb() 366 skb->data_len += cur_len; in cxgbit_map_skb() 367 skb->len += cur_len; in cxgbit_map_skb() 368 skb->truesize += cur_len; in cxgbit_map_skb() 370 data_length -= cur_len; in cxgbit_map_skb()
|
/linux/kernel/bpf/ |
H A D | helpers.c | 452 size_t cur_len = buf_len; in __bpf_strtoull() local 474 cur_len -= consumed; in __bpf_strtoull() 475 if (!cur_len) in __bpf_strtoull() 478 cur_len = min(cur_len, sizeof(str) - 1); in __bpf_strtoull() 479 memcpy(str, cur_buf, cur_len); in __bpf_strtoull() 480 str[cur_len] = '\0'; in __bpf_strtoull()
|