Home
last modified time | relevance | path

Searched refs:map_len (Results 1 – 20 of 20) sorted by relevance

/linux/tools/testing/selftests/mm/
H A Dtranshuge-stress.c34 size_t map_len; in main() local
85 map_len = ram >> (HPAGE_SHIFT - 1); in main()
86 map = malloc(map_len); in main()
95 memset(map, 0, map_len); in main()
109 if (idx >= map_len) { in main()
113 memset(map + map_len, 0, idx + 1 - map_len); in main()
114 map_len = idx + 1; in main()
/linux/drivers/mtd/
H A Dssfdc.c28 int map_len; /* n. phys_blocks on the card */ member
247 ssfdc->map_len, in build_logical_block_map()
248 (unsigned long)ssfdc->map_len * ssfdc->erase_size / 1024); in build_logical_block_map()
251 for (phys_block = ssfdc->cis_block + 1; phys_block < ssfdc->map_len; in build_logical_block_map()
309 ssfdc->map_len = (u32)mtd->size / mtd->erasesize; in ssfdcr_add_mtd()
312 ssfdc->cis_block, ssfdc->erase_size, ssfdc->map_len, in ssfdcr_add_mtd()
313 DIV_ROUND_UP(ssfdc->map_len, MAX_PHYS_BLK_PER_ZONE)); in ssfdcr_add_mtd()
332 kmalloc_array(ssfdc->map_len, in ssfdcr_add_mtd()
337 ssfdc->map_len); in ssfdcr_add_mtd()
381 BUG_ON(block_address >= ssfdc->map_len); in ssfdcr_readsect()
/linux/arch/x86/kernel/
H A Ddevicetree.c295 u32 size, map_len; in x86_flattree_get_config() local
299 map_len = max(PAGE_SIZE - (initial_dtb & ~PAGE_MASK), (u64)128); in x86_flattree_get_config()
301 dt = early_memremap(initial_dtb, map_len); in x86_flattree_get_config()
303 if (map_len < size) { in x86_flattree_get_config()
304 early_memunmap(dt, map_len); in x86_flattree_get_config()
306 map_len = size; in x86_flattree_get_config()
315 early_memunmap(dt, map_len); in x86_flattree_get_config()
/linux/fs/iomap/
H A Dioend.c157 unsigned int map_len = min_t(u64, dirty_len, in iomap_add_to_ioend() local
163 WARN_ON_ONCE(!folio->private && map_len < dirty_len); in iomap_add_to_ioend()
170 return map_len; in iomap_add_to_ioend()
194 if (!bio_add_folio(&ioend->io_bio, folio, map_len, poff)) in iomap_add_to_ioend()
238 ioend->io_size += map_len; in iomap_add_to_ioend()
242 wbc_account_cgroup_owner(wpc->wbc, folio, map_len); in iomap_add_to_ioend()
243 return map_len; in iomap_add_to_ioend()
/linux/fs/ocfs2/
H A Dextent_map.h39 u64 map_start, u64 map_len);
42 u64 map_start, u64 map_len);
H A Dextent_map.c751 u64 map_start, u64 map_len) in ocfs2_fiemap() argument
761 ret = fiemap_prep(inode, fieinfo, map_start, &map_len, 0); in ocfs2_fiemap()
784 map_start + map_len); in ocfs2_fiemap()
838 u64 map_start, u64 map_len) in ocfs2_overwrite_io() argument
846 if (ocfs2_size_fits_inline_data(di_bh, map_start + map_len)) in ocfs2_overwrite_io()
854 map_start + map_len); in ocfs2_overwrite_io()
/linux/fs/
H A Ddax.c1638 ssize_t map_len; in dax_iomap_iter() local
1647 map_len = dax_direct_access(dax_dev, pgoff, PHYS_PFN(size), in dax_iomap_iter()
1649 if (map_len == -EHWPOISON && iov_iter_rw(iter) == WRITE) { in dax_iomap_iter()
1650 map_len = dax_direct_access(dax_dev, pgoff, in dax_iomap_iter()
1653 if (map_len > 0) in dax_iomap_iter()
1656 if (map_len < 0) { in dax_iomap_iter()
1657 ret = dax_mem2blk_err(map_len); in dax_iomap_iter()
1668 map_len = PFN_PHYS(map_len); in dax_iomap_iter()
1670 map_len -= offset; in dax_iomap_iter()
1671 if (map_len > end - pos) in dax_iomap_iter()
[all …]
/linux/drivers/net/ethernet/alacritech/
H A Dslic.h501 DEFINE_DMA_UNMAP_LEN(map_len);
524 DEFINE_DMA_UNMAP_LEN(map_len);
H A Dslicoss.c369 dma_unmap_len(buff, map_len), DMA_TO_DEVICE); in slic_xmit_complete()
440 dma_unmap_len_set(buff, map_len, maplen); in slic_refill_rx_queue()
588 dma_unmap_len(buff, map_len), in slic_handle_receive()
908 dma_unmap_len(buff, map_len), DMA_TO_DEVICE); in slic_free_tx_queue()
950 dma_unmap_len(buff, map_len), in slic_free_rx_queue()
1434 dma_unmap_len_set(buff, map_len, maplen); in slic_xmit()
/linux/tools/testing/selftests/bpf/
H A Dxdp_hw_metadata.c740 size_t map_len = 0; in main() local
774 map_len += strlen(buf); in main()
775 tmp = realloc(map, map_len + 1); in main()
/linux/drivers/net/ethernet/mellanox/mlxbf_gige/
H A Dmlxbf_gige.h200 unsigned int map_len,
H A Dmlxbf_gige_main.c31 unsigned int map_len, in mlxbf_gige_alloc_skb() argument
56 *buf_dma = dma_map_single(priv->dev, skb->data, map_len, dir); in mlxbf_gige_alloc_skb()
/linux/drivers/net/ethernet/atheros/atl1e/
H A Datl1e_main.c1708 u16 map_len = 0; in atl1e_tx_map() local
1722 map_len = hdr_len; in atl1e_tx_map()
1726 tx_buffer->length = map_len; in atl1e_tx_map()
1734 mapped_len += map_len; in atl1e_tx_map()
1753 tx_buffer->length = map_len = in atl1e_tx_map()
1758 skb->data + mapped_len, map_len, in atl1e_tx_map()
1779 mapped_len += map_len; in atl1e_tx_map()
/linux/include/linux/i3c/
H A Dmaster.h575 size_t map_len; member
/linux/drivers/i3c/
H A Dmaster.c1756 dma_xfer->map_len = len; in i3c_master_dma_map_single()
1762 dma_xfer->map_len = ALIGN(len, cache_line_size()); in i3c_master_dma_map_single()
1764 bounce = kzalloc(dma_xfer->map_len, GFP_KERNEL); in i3c_master_dma_map_single()
1766 bounce = kmemdup(buf, dma_xfer->map_len, GFP_KERNEL); in i3c_master_dma_map_single()
1772 dma_xfer->addr = dma_map_single(dev, dma_buf, dma_xfer->map_len, dir); in i3c_master_dma_map_single()
1790 dma_xfer->map_len, dma_xfer->dir); in i3c_master_dma_unmap_single()
/linux/Documentation/target/
H A Dtcmu-design.rst310 unsigned long long map_len;
329 map_len = strtoull(buf, NULL, 0);
332 map = mmap(NULL, map_len, PROT_READ|PROT_WRITE, MAP_SHARED, dev_fd, 0);
/linux/tools/bpf/bpftool/
H A Dbtf.c1223 __u32 map_len = sizeof(map_info); in build_btf_tables() local
1232 &map_len); in build_btf_tables()
/linux/drivers/net/ethernet/atheros/atl1c/
H A Datl1c_main.c2170 u16 map_len = 0; in atl1c_tx_map() local
2182 map_len = hdr_len; in atl1c_tx_map()
2186 buffer_info->length = map_len; in atl1c_tx_map()
2195 mapped_len += map_len; in atl1c_tx_map()
/linux/fs/xfs/scrub/
H A Dtrace.h788 xfs_daddr_t map_daddr, unsigned short map_len,
792 TP_ARGS(pag, startino, map_daddr, map_len, chunk_ino, nr_inodes,
799 __field(unsigned short, map_len)
811 __entry->map_len = map_len;
823 __entry->map_len,
/linux/tools/testing/selftests/iommu/
H A Diommufd.c977 unsigned int map_len; in TEST_F()
982 map_len = 0x5000; in TEST_F()
986 map_len = MOCK_PAGE_SIZE * 10; in TEST_F()
992 test_err_ioctl_ioas_map(ENOSPC, buffer, map_len, &iova); in TEST_F()
979 unsigned int map_len; TEST_F() local