| /linux/tools/testing/selftests/mm/ |
| H A D | transhuge-stress.c | 35 size_t map_len; in main() 89 map_len = ram >> (HPAGE_SHIFT - 1); in main() 90 map = malloc(map_len); in main() 99 memset(map, 0, map_len); in main() 113 if (idx >= map_len) { in main() 117 memset(map + map_len, 0, idx + 1 - map_len); in main() 118 map_len = idx + 1; in main() 34 size_t map_len; main() local
|
| /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/fs/iomap/ |
| H A D | ioend.c | 175 unsigned int map_len, u16 ioend_flags) in iomap_can_add_to_ioend() argument 180 iomap_max_bio_size(&wpc->iomap) - map_len) in iomap_can_add_to_ioend() 219 unsigned int map_len = min_t(u64, dirty_len, in iomap_add_to_ioend() local 225 WARN_ON_ONCE(!folio->private && map_len < dirty_len); in iomap_add_to_ioend() 234 return map_len; in iomap_add_to_ioend() 245 if (!ioend || !iomap_can_add_to_ioend(wpc, pos, map_len, ioend_flags)) { in iomap_add_to_ioend() 255 if (!bio_add_folio(&ioend->io_bio, folio, map_len, poff)) in iomap_add_to_ioend() 302 ioend->io_size += map_len; in iomap_add_to_ioend() 310 wbc_account_cgroup_owner(wpc->wbc, folio, map_len); in iomap_add_to_ioend() 311 return map_len; in iomap_add_to_ioend()
|
| /linux/fs/ocfs2/ |
| H A D | extent_map.h | 39 u64 map_start, u64 map_len); 42 u64 map_start, u64 map_len);
|
| /linux/drivers/of/ |
| H A D | base.c | 1562 int i, ret, map_len, match; in of_parse_phandle_with_args_map() local 1589 map = of_get_property(cur, map_name, &map_len); in of_parse_phandle_with_args_map() 1595 map_len /= sizeof(u32); in of_parse_phandle_with_args_map() 1603 while (map_len > (list_size + 1) && !match) { in of_parse_phandle_with_args_map() 1606 for (i = 0; i < list_size; i++, map_len--) in of_parse_phandle_with_args_map() 1612 map_len--; in of_parse_phandle_with_args_map() 1629 map_len < new_size) { in of_parse_phandle_with_args_map() 1636 map_len -= new_size; in of_parse_phandle_with_args_map() 2189 int map_bytes, map_len, offset = 0; in of_map_id() local 2210 map_len = map_bytes / sizeof(*map); in of_map_id() [all …]
|
| /linux/fs/ |
| H A D | dax.c | 1675 ssize_t map_len; in dax_iomap_iter() local 1684 map_len = dax_direct_access(dax_dev, pgoff, PHYS_PFN(size), in dax_iomap_iter() 1686 if (map_len == -EHWPOISON && iov_iter_rw(iter) == WRITE) { in dax_iomap_iter() 1687 map_len = dax_direct_access(dax_dev, pgoff, in dax_iomap_iter() 1690 if (map_len > 0) in dax_iomap_iter() 1693 if (map_len < 0) { in dax_iomap_iter() 1694 ret = dax_mem2blk_err(map_len); in dax_iomap_iter() 1705 map_len = PFN_PHYS(map_len); in dax_iomap_iter() 1707 map_len -= offset; in dax_iomap_iter() 1708 if (map_len > end - pos) in dax_iomap_iter() [all …]
|
| /linux/fs/ext4/ |
| H A D | extents.c | 3575 unsigned int ee_len, depth, map_len = map->m_len; in ext4_ext_convert_to_initialized() local 3580 (unsigned long long)map->m_lblk, map_len); in ext4_ext_convert_to_initialized() 3585 if (eof_block < map->m_lblk + map_len) in ext4_ext_convert_to_initialized() 3586 eof_block = map->m_lblk + map_len; in ext4_ext_convert_to_initialized() 3620 (map_len < ee_len) && /*L1*/ in ext4_ext_convert_to_initialized() 3644 (prev_len < (EXT_INIT_MAX_LEN - map_len))) { /*C4*/ in ext4_ext_convert_to_initialized() 3653 ex->ee_block = cpu_to_le32(ee_block + map_len); in ext4_ext_convert_to_initialized() 3654 ext4_ext_store_pblock(ex, ee_pblk + map_len); in ext4_ext_convert_to_initialized() 3655 ex->ee_len = cpu_to_le16(ee_len - map_len); in ext4_ext_convert_to_initialized() 3659 abut_ex->ee_len = cpu_to_le16(prev_len + map_len); in ext4_ext_convert_to_initialized() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlxbf_gige/ |
| H A D | mlxbf_gige.h | 200 unsigned int map_len,
|
| 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()
|
| /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/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/tools/bpf/bpftool/ |
| H A D | btf.c | 1313 __u32 map_len = sizeof(map_info); in build_btf_tables() local 1322 &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_agblock_t map_agblock, unsigned short map_len, 792 TP_ARGS(pag, startino, map_agblock, 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 | 992 unsigned int map_len; in TEST_F() 997 map_len = 0x5000; in TEST_F() 1001 map_len = MOCK_PAGE_SIZE * 10; in TEST_F() 1007 test_err_ioctl_ioas_map(ENOSPC, buffer, map_len, &iova); in TEST_F() 977 unsigned int map_len; TEST_F() local
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_edid.c | 5319 int i, map_len = cea_db_payload_len(db) - 1; in parse_cta_y420cmdb() local 5323 if (map_len == 0) { in parse_cta_y420cmdb() 5341 if (WARN_ON_ONCE(map_len > 8)) in parse_cta_y420cmdb() 5342 map_len = 8; in parse_cta_y420cmdb() 5344 for (i = 0; i < map_len; i++) in parse_cta_y420cmdb()
|
| /linux/include/trace/events/ |
| H A D | btrfs.h | 398 __field( u64, map_len ) 407 __entry->map_len = map->len; 420 __entry->map_len)
|
| /linux/drivers/net/wireless/realtek/rtw89/ |
| H A D | fw.c | 11479 u8 map_len; in rtw89_fw_h2c_mcc_macid_bitmap() local 11483 map_len = RTW89_MAX_MAC_ID_NUM / 8; in rtw89_fw_h2c_mcc_macid_bitmap() 11484 h2c_len = H2C_MCC_MACID_BITMAP_DSC_LEN + map_len; in rtw89_fw_h2c_mcc_macid_bitmap() 11495 RTW89_SET_FWCMD_MCC_MACID_BITMAP_BITMAP_LENGTH(skb->data, map_len); in rtw89_fw_h2c_mcc_macid_bitmap() 11496 RTW89_SET_FWCMD_MCC_MACID_BITMAP_BITMAP(skb->data, bitmap, map_len); in rtw89_fw_h2c_mcc_macid_bitmap()
|