| /linux/tools/testing/selftests/mm/ |
| H A D | transhuge-stress.c | 34 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 D | ssfdc.c | 28 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 D | devicetree.c | 295 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/drivers/of/ |
| H A D | base.c | 1530 int i, ret, map_len, match; in of_parse_phandle_with_args_map() local 1557 map = of_get_property(cur, map_name, &map_len); in of_parse_phandle_with_args_map() 1561 map_len /= sizeof(u32); in of_parse_phandle_with_args_map() 1569 while (map_len > (list_size + 1) && !match) { in of_parse_phandle_with_args_map() 1572 for (i = 0; i < list_size; i++, map_len--) in of_parse_phandle_with_args_map() 1578 map_len--; in of_parse_phandle_with_args_map() 1595 map_len < new_size) { in of_parse_phandle_with_args_map() 1602 map_len -= new_size; in of_parse_phandle_with_args_map() 2123 int map_len; in of_map_id() local 2129 map = of_get_property(np, map_name, &map_len); in of_map_id() [all …]
|
| /linux/fs/ocfs2/ |
| H A D | extent_map.h | 39 u64 map_start, u64 map_len); 42 u64 map_start, u64 map_len);
|
| H A D | extent_map.c | 751 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 D | dax.c | 1638 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/fs/ext4/ |
| H A D | extents.c | 3542 unsigned int ee_len, depth, map_len = map->m_len; in ext4_ext_convert_to_initialized() local 3547 (unsigned long long)map->m_lblk, map_len); in ext4_ext_convert_to_initialized() 3552 if (eof_block < map->m_lblk + map_len) in ext4_ext_convert_to_initialized() 3553 eof_block = map->m_lblk + map_len; in ext4_ext_convert_to_initialized() 3587 (map_len < ee_len) && /*L1*/ in ext4_ext_convert_to_initialized() 3611 (prev_len < (EXT_INIT_MAX_LEN - map_len))) { /*C4*/ in ext4_ext_convert_to_initialized() 3620 ex->ee_block = cpu_to_le32(ee_block + map_len); in ext4_ext_convert_to_initialized() 3621 ext4_ext_store_pblock(ex, ee_pblk + map_len); in ext4_ext_convert_to_initialized() 3622 ex->ee_len = cpu_to_le16(ee_len - map_len); in ext4_ext_convert_to_initialized() 3626 abut_ex->ee_len = cpu_to_le16(prev_len + map_len); in ext4_ext_convert_to_initialized() [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | xdp_hw_metadata.c | 740 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 D | mlxbf_gige_main.c | 31 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()
|
| H A D | mlxbf_gige.h | 200 unsigned int map_len,
|
| /linux/drivers/net/ethernet/engleder/ |
| H A D | tsnep_main.c | 489 int map_len = 0; in tsnep_tx_map() local 528 map_len += len; in tsnep_tx_map() 531 return map_len; in tsnep_tx_map() 538 int map_len = 0; in tsnep_tx_unmap() local 555 map_len += entry->len; in tsnep_tx_unmap() 560 return map_len; in tsnep_tx_unmap() 634 int map_len = 0; in tsnep_xdp_tx_map() local 670 map_len += len; in tsnep_xdp_tx_map() 678 return map_len; in tsnep_xdp_tx_map()
|
| /linux/drivers/net/ethernet/alacritech/ |
| H A D | slicoss.c | 369 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/drivers/net/ethernet/atheros/atl1e/ |
| H A D | atl1e_main.c | 1708 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/Documentation/target/ |
| H A D | tcmu-design.rst | 310 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/drivers/i3c/ |
| H A D | master.c | 1863 dma_xfer->map_len = len; in i3c_master_dma_map_single() 1869 dma_xfer->map_len = ALIGN(len, cache_line_size()); in i3c_master_dma_map_single() 1871 bounce = kzalloc(dma_xfer->map_len, GFP_KERNEL); in i3c_master_dma_map_single() 1873 bounce = kmemdup(buf, dma_xfer->map_len, GFP_KERNEL); in i3c_master_dma_map_single() 1879 dma_xfer->addr = dma_map_single(dev, dma_buf, dma_xfer->map_len, dir); in i3c_master_dma_map_single() 1897 dma_xfer->map_len, dma_xfer->dir); in i3c_master_dma_unmap_single()
|
| /linux/drivers/net/wireless/quantenna/qtnfmac/ |
| H A D | commands.c | 585 unsigned int map_len = 0; in qtnf_cmd_sta_info_parse() local 590 (qtnf_utils_is_bit_set(map, bitn, map_len) && \ in qtnf_cmd_sta_info_parse() 598 map_len = tlv_len; in qtnf_cmd_sta_info_parse() 2333 unsigned int map_len = 0; in qtnf_cmd_resp_proc_chan_stat_info() local 2343 map_len = tlv_value_len; in qtnf_cmd_resp_proc_chan_stat_info() 2364 (qtnf_utils_is_bit_set(map, bitn, map_len) && \ in qtnf_cmd_resp_proc_chan_stat_info()
|
| /linux/tools/bpf/bpftool/ |
| H A D | btf.c | 1223 __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 D | atl1c_main.c | 2170 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 D | trace.h | 788 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 D | iommufd.c | 977 unsigned int map_len; in TEST_F() local 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()
|
| /linux/include/trace/events/ |
| H A D | btrfs.h | 329 __field( u64, map_len ) 338 __entry->map_len = map->len; 351 __entry->map_len)
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_edid.c | 5289 int i, map_len = cea_db_payload_len(db) - 1; in parse_cta_y420cmdb() local 5293 if (map_len == 0) { in parse_cta_y420cmdb() 5311 if (WARN_ON_ONCE(map_len > 8)) in parse_cta_y420cmdb() 5312 map_len = 8; in parse_cta_y420cmdb() 5314 for (i = 0; i < map_len; i++) in parse_cta_y420cmdb()
|
| /linux/drivers/infiniband/hw/ocrdma/ |
| H A D | ocrdma_verbs.c | 473 u32 map_len = roundup(sizeof(u32) * 2048, PAGE_SIZE); in ocrdma_alloc_ucontext() local 480 ctx->ah_tbl.va = dma_alloc_coherent(&pdev->dev, map_len, in ocrdma_alloc_ucontext() 485 ctx->ah_tbl.len = map_len; in ocrdma_alloc_ucontext()
|
| /linux/drivers/net/wireless/realtek/rtw89/ |
| H A D | fw.c | 10147 u8 map_len; in rtw89_fw_h2c_mcc_macid_bitmap() local 10151 map_len = RTW89_MAX_MAC_ID_NUM / 8; in rtw89_fw_h2c_mcc_macid_bitmap() 10152 h2c_len = H2C_MCC_MACID_BITMAP_DSC_LEN + map_len; in rtw89_fw_h2c_mcc_macid_bitmap() 10163 RTW89_SET_FWCMD_MCC_MACID_BITMAP_BITMAP_LENGTH(skb->data, map_len); in rtw89_fw_h2c_mcc_macid_bitmap() 10164 RTW89_SET_FWCMD_MCC_MACID_BITMAP_BITMAP(skb->data, bitmap, map_len); in rtw89_fw_h2c_mcc_macid_bitmap()
|