Home
last modified time | relevance | path

Searched refs:map_len (Results 1 - 25 of 48) sorted by relevance

12

/kernel/linux/linux-5.10/tools/testing/selftests/vm/
H A Dtranshuge-stress.c65 size_t map_len; in main() local
98 map_len = ram >> (HPAGE_SHIFT - 1); in main()
99 map = malloc(map_len); in main()
106 memset(map, 0, map_len); in main()
120 if (idx >= map_len) { in main()
124 memset(map + map_len, 0, idx + 1 - map_len); in main()
125 map_len = idx + 1; in main()
/kernel/linux/linux-6.6/tools/testing/selftests/mm/
H A Dtranshuge-stress.c33 size_t map_len; in main() local
79 map_len = ram >> (HPAGE_SHIFT - 1); in main()
80 map = malloc(map_len); in main()
89 memset(map, 0, map_len); in main()
103 if (idx >= map_len) { in main()
107 memset(map + map_len, 0, idx + 1 - map_len); in main()
108 map_len = idx + 1; in main()
/kernel/linux/linux-5.10/tools/testing/selftests/android/ion/
H A Dionapp_import.c25 unsigned long map_len; in main() local
64 map_len = info.buflen; in main()
65 read_buffer(map_buf, map_len); in main()
68 map_len = ION_BUFFER_LEN; in main()
69 write_buffer(map_buf, map_len); in main()
H A Dionapp_export.c34 unsigned long map_len, heap_type, heap_size, flags; in main() local
105 map_len = info.buflen; in main()
106 write_buffer(map_buf, map_len); in main()
111 skinfo.buflen = map_len; in main()
H A Dionutils.c154 unsigned long map_len; in ion_import_buffer_fd() local
161 map_len = ion_info->buflen; in ion_import_buffer_fd()
164 if (buffd < 0 || map_len <= 0) { in ion_import_buffer_fd()
166 __func__, buffd, map_len); in ion_import_buffer_fd()
170 map_buf = (unsigned char *)mmap(NULL, map_len, PROT_READ|PROT_WRITE, in ion_import_buffer_fd()
179 ion_info->buflen = map_len; in ion_import_buffer_fd()
/kernel/linux/linux-5.10/drivers/mtd/
H A Dssfdc.c29 int map_len; /* n. phys_blocks on the card */ member
248 ssfdc->map_len, in build_logical_block_map()
249 (unsigned long)ssfdc->map_len * ssfdc->erase_size / 1024); in build_logical_block_map()
252 for (phys_block = ssfdc->cis_block + 1; phys_block < ssfdc->map_len; in build_logical_block_map()
310 ssfdc->map_len = (u32)mtd->size / mtd->erasesize; in ssfdcr_add_mtd()
312 pr_debug("SSFDC_RO: cis_block=%d,erase_size=%d,map_len=%d,n_zones=%d\n", in ssfdcr_add_mtd()
313 ssfdc->cis_block, ssfdc->erase_size, ssfdc->map_len, in ssfdcr_add_mtd()
314 DIV_ROUND_UP(ssfdc->map_len, MAX_PHYS_BLK_PER_ZONE)); in ssfdcr_add_mtd()
333 kmalloc_array(ssfdc->map_len, in ssfdcr_add_mtd()
338 ssfdc->map_len); in ssfdcr_add_mtd()
[all...]
/kernel/linux/linux-6.6/drivers/mtd/
H A Dssfdc.c29 int map_len; /* n. phys_blocks on the card */ member
248 ssfdc->map_len, in build_logical_block_map()
249 (unsigned long)ssfdc->map_len * ssfdc->erase_size / 1024); in build_logical_block_map()
252 for (phys_block = ssfdc->cis_block + 1; phys_block < ssfdc->map_len; in build_logical_block_map()
310 ssfdc->map_len = (u32)mtd->size / mtd->erasesize; in ssfdcr_add_mtd()
312 pr_debug("SSFDC_RO: cis_block=%d,erase_size=%d,map_len=%d,n_zones=%d\n", in ssfdcr_add_mtd()
313 ssfdc->cis_block, ssfdc->erase_size, ssfdc->map_len, in ssfdcr_add_mtd()
314 DIV_ROUND_UP(ssfdc->map_len, MAX_PHYS_BLK_PER_ZONE)); in ssfdcr_add_mtd()
333 kmalloc_array(ssfdc->map_len, in ssfdcr_add_mtd()
338 ssfdc->map_len); in ssfdcr_add_mtd()
[all...]
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Ddevicetree.c292 u32 size, map_len; in x86_flattree_get_config() local
298 map_len = max(PAGE_SIZE - (initial_dtb & ~PAGE_MASK), (u64)128); in x86_flattree_get_config()
300 dt = early_memremap(initial_dtb, map_len); in x86_flattree_get_config()
302 if (map_len < size) { in x86_flattree_get_config()
303 early_memunmap(dt, map_len); in x86_flattree_get_config()
305 map_len = size; in x86_flattree_get_config()
310 early_memunmap(dt, map_len); in x86_flattree_get_config()
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Ddevicetree.c283 u32 size, map_len; in x86_flattree_get_config() local
289 map_len = max(PAGE_SIZE - (initial_dtb & ~PAGE_MASK), (u64)128); in x86_flattree_get_config()
291 dt = early_memremap(initial_dtb, map_len); in x86_flattree_get_config()
293 if (map_len < size) { in x86_flattree_get_config()
294 early_memunmap(dt, map_len); in x86_flattree_get_config()
296 map_len = size; in x86_flattree_get_config()
301 early_memunmap(dt, map_len); in x86_flattree_get_config()
/kernel/linux/linux-5.10/drivers/spi/
H A Dspi-dw-bt1.c39 resource_size_t map_len; member
62 if (desc->info.offset + desc->info.length > dwsbt1->map_len || in dw_spi_bt1_dirmap_create()
120 if (offs >= dwsbt1->map_len || !len) in dw_spi_bt1_dirmap_read()
123 len = min_t(size_t, len, dwsbt1->map_len - offs); in dw_spi_bt1_dirmap_read()
220 dwsbt1->map_len = (mem->end - mem->start + 1); in dw_spi_bt1_sys_init()
/kernel/linux/linux-6.6/drivers/spi/
H A Dspi-dw-bt1.c39 resource_size_t map_len; member
62 if (desc->info.offset + desc->info.length > dwsbt1->map_len || in dw_spi_bt1_dirmap_create()
120 if (offs >= dwsbt1->map_len || !len) in dw_spi_bt1_dirmap_read()
123 len = min_t(size_t, len, dwsbt1->map_len - offs); in dw_spi_bt1_dirmap_read()
220 dwsbt1->map_len = resource_size(mem); in dw_spi_bt1_sys_init()
/kernel/linux/linux-5.10/drivers/of/
H A Dbase.c1558 int i, ret, map_len, match; in of_parse_phandle_with_args_map() local
1599 map = of_get_property(cur, map_name, &map_len); in of_parse_phandle_with_args_map()
1604 map_len /= sizeof(u32); in of_parse_phandle_with_args_map()
1612 while (map_len > (list_size + 1) && !match) { in of_parse_phandle_with_args_map()
1615 for (i = 0; i < list_size; i++, map_len--) in of_parse_phandle_with_args_map()
1621 map_len--; in of_parse_phandle_with_args_map()
1637 if (map_len < new_size) in of_parse_phandle_with_args_map()
1642 map_len -= new_size; in of_parse_phandle_with_args_map()
2242 int map_len; in of_map_id() local
2248 map = of_get_property(np, map_name, &map_len); in of_map_id()
[all...]
/kernel/linux/linux-6.6/drivers/of/
H A Dbase.c1352 int i, ret, map_len, match; in of_parse_phandle_with_args_map() local
1393 map = of_get_property(cur, map_name, &map_len); in of_parse_phandle_with_args_map()
1398 map_len /= sizeof(u32); in of_parse_phandle_with_args_map()
1406 while (map_len > (list_size + 1) && !match) { in of_parse_phandle_with_args_map()
1409 for (i = 0; i < list_size; i++, map_len--) in of_parse_phandle_with_args_map()
1415 map_len--; in of_parse_phandle_with_args_map()
1431 if (map_len < new_size) in of_parse_phandle_with_args_map()
1436 map_len -= new_size; in of_parse_phandle_with_args_map()
1960 int map_len; in of_map_id() local
1966 map = of_get_property(np, map_name, &map_len); in of_map_id()
[all...]
/kernel/linux/linux-5.10/fs/ocfs2/
H A Dextent_map.h41 u64 map_start, u64 map_len);
44 u64 map_start, u64 map_len);
H A Dextent_map.c737 u64 map_start, u64 map_len) in ocfs2_fiemap()
747 ret = fiemap_prep(inode, fieinfo, map_start, &map_len, 0); in ocfs2_fiemap()
770 map_start + map_len); in ocfs2_fiemap()
822 u64 map_start, u64 map_len) in ocfs2_overwrite_io()
830 if (ocfs2_size_fits_inline_data(di_bh, map_start + map_len)) in ocfs2_overwrite_io()
838 map_start + map_len); in ocfs2_overwrite_io()
736 ocfs2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, u64 map_start, u64 map_len) ocfs2_fiemap() argument
821 ocfs2_overwrite_io(struct inode *inode, struct buffer_head *di_bh, u64 map_start, u64 map_len) ocfs2_overwrite_io() argument
/kernel/linux/linux-6.6/fs/ocfs2/
H A Dextent_map.h39 u64 map_start, u64 map_len);
42 u64 map_start, u64 map_len);
H A Dextent_map.c735 u64 map_start, u64 map_len) in ocfs2_fiemap()
745 ret = fiemap_prep(inode, fieinfo, map_start, &map_len, 0); in ocfs2_fiemap()
768 map_start + map_len); in ocfs2_fiemap()
820 u64 map_start, u64 map_len) in ocfs2_overwrite_io()
828 if (ocfs2_size_fits_inline_data(di_bh, map_start + map_len)) in ocfs2_overwrite_io()
836 map_start + map_len); in ocfs2_overwrite_io()
734 ocfs2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, u64 map_start, u64 map_len) ocfs2_fiemap() argument
819 ocfs2_overwrite_io(struct inode *inode, struct buffer_head *di_bh, u64 map_start, u64 map_len) ocfs2_overwrite_io() argument
/kernel/linux/linux-5.10/fs/
H A Ddax.c1147 ssize_t map_len; in dax_iomap_actor() local
1160 map_len = dax_direct_access(dax_dev, pgoff, PHYS_PFN(size), in dax_iomap_actor()
1162 if (map_len < 0) { in dax_iomap_actor()
1163 ret = map_len; in dax_iomap_actor()
1167 map_len = PFN_PHYS(map_len); in dax_iomap_actor()
1169 map_len -= offset; in dax_iomap_actor()
1170 if (map_len > end - pos) in dax_iomap_actor()
1171 map_len = end - pos; in dax_iomap_actor()
1180 map_len, ite in dax_iomap_actor()
[all...]
/kernel/linux/linux-6.6/fs/
H A Ddax.c1477 ssize_t map_len; in dax_iomap_iter() local
1486 map_len = dax_direct_access(dax_dev, pgoff, PHYS_PFN(size), in dax_iomap_iter()
1488 if (map_len == -EHWPOISON && iov_iter_rw(iter) == WRITE) { in dax_iomap_iter()
1489 map_len = dax_direct_access(dax_dev, pgoff, in dax_iomap_iter()
1492 if (map_len > 0) in dax_iomap_iter()
1495 if (map_len < 0) { in dax_iomap_iter()
1496 ret = dax_mem2blk_err(map_len); in dax_iomap_iter()
1507 map_len = PFN_PHYS(map_len); in dax_iomap_iter()
1509 map_len in dax_iomap_iter()
[all...]
/kernel/linux/linux-5.10/fs/xfs/scrub/
H A Dtrace.h554 unsigned short map_len, unsigned int chunk_ino,
557 TP_ARGS(mp, agno, startino, map_daddr, map_len, chunk_ino, nr_inodes,
564 __field(unsigned short, map_len)
576 __entry->map_len = map_len;
588 __entry->map_len,
/kernel/linux/linux-5.10/fs/ext4/
H A Dextents.c3435 unsigned int ee_len, depth, map_len = map->m_len; in ext4_ext_convert_to_initialized() local
3441 (unsigned long long)map->m_lblk, map_len); in ext4_ext_convert_to_initialized()
3446 if (eof_block < map->m_lblk + map_len) in ext4_ext_convert_to_initialized()
3447 eof_block = map->m_lblk + map_len; in ext4_ext_convert_to_initialized()
3480 (map_len < ee_len) && /*L1*/ in ext4_ext_convert_to_initialized()
3504 (prev_len < (EXT_INIT_MAX_LEN - map_len))) { /*C4*/ in ext4_ext_convert_to_initialized()
3512 /* Shift the start of ex by 'map_len' blocks */ in ext4_ext_convert_to_initialized()
3513 ex->ee_block = cpu_to_le32(ee_block + map_len); in ext4_ext_convert_to_initialized()
3514 ext4_ext_store_pblock(ex, ee_pblk + map_len); in ext4_ext_convert_to_initialized()
3515 ex->ee_len = cpu_to_le16(ee_len - map_len); in ext4_ext_convert_to_initialized()
[all...]
/kernel/linux/linux-6.6/fs/ext4/
H A Dextents.c3404 unsigned int ee_len, depth, map_len = map->m_len; in ext4_ext_convert_to_initialized() local
3410 (unsigned long long)map->m_lblk, map_len); in ext4_ext_convert_to_initialized()
3415 if (eof_block < map->m_lblk + map_len) in ext4_ext_convert_to_initialized()
3416 eof_block = map->m_lblk + map_len; in ext4_ext_convert_to_initialized()
3449 (map_len < ee_len) && /*L1*/ in ext4_ext_convert_to_initialized()
3473 (prev_len < (EXT_INIT_MAX_LEN - map_len))) { /*C4*/ in ext4_ext_convert_to_initialized()
3481 /* Shift the start of ex by 'map_len' blocks */ in ext4_ext_convert_to_initialized()
3482 ex->ee_block = cpu_to_le32(ee_block + map_len); in ext4_ext_convert_to_initialized()
3483 ext4_ext_store_pblock(ex, ee_pblk + map_len); in ext4_ext_convert_to_initialized()
3484 ex->ee_len = cpu_to_le16(ee_len - map_len); in ext4_ext_convert_to_initialized()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxbf_gige/
H A Dmlxbf_gige.h192 unsigned int map_len,
/kernel/linux/linux-6.6/drivers/net/ethernet/engleder/
H A Dtsnep_main.c442 int map_len = 0; in tsnep_tx_map() local
470 map_len += len; in tsnep_tx_map()
473 return map_len; in tsnep_tx_map()
480 int map_len = 0; in tsnep_tx_unmap() local
498 map_len += entry->len; in tsnep_tx_unmap()
503 return map_len; in tsnep_tx_unmap()
573 int map_len = 0; in tsnep_xdp_tx_map() local
609 map_len += len; in tsnep_xdp_tx_map()
617 return map_len; in tsnep_xdp_tx_map()
/kernel/linux/linux-5.10/drivers/net/ethernet/alacritech/
H A Dslic.h503 DEFINE_DMA_UNMAP_LEN(map_len);
526 DEFINE_DMA_UNMAP_LEN(map_len);

Completed in 33 milliseconds

12