Home
last modified time | relevance | path

Searched refs:map (Results 101 – 125 of 4918) sorted by relevance

12345678910>>...197

/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
H A Dvmmnv50.c39 map->type += ptes * map->ctag; in nv50_vmm_pgt_pte()
49 next += pten * map->next; in nv50_vmm_pgt_pte()
72 const u64 data = *map->dma++ + map->type; in nv50_vmm_pgt_dma()
74 map->type += map->ctag; in nv50_vmm_pgt_dma()
241 map->type = map->ctag = 0; in nv50_vmm_valid()
286 if (map->mem && map->mem->type != kindm[kind]) { in nv50_vmm_valid()
299 if (!map->no_comp) { in nv50_vmm_valid()
301 &map->tags); in nv50_vmm_valid()
307 if (map->tags->mn) { in nv50_vmm_valid()
313 map->next |= map->ctag; in nv50_vmm_valid()
[all …]
H A Dvmmgf100.c38 if (map->ctag && !(map->next & (1ULL << 44))) { in gf100_vmm_pgt_pte()
45 base += map->next; in gf100_vmm_pgt_pte()
48 map->type += ptes * map->ctag; in gf100_vmm_pgt_pte()
52 data += map->next; in gf100_vmm_pgt_pte()
72 const u64 data = (*map->dma++ >> 8) | map->type; in gf100_vmm_pgt_dma()
74 map->type += map->ctag; in gf100_vmm_pgt_dma()
254 map->type = map->ctag = 0; in gf100_vmm_valid()
293 &map->tags); in gf100_vmm_valid()
300 if (!map->no_comp && map->tags->mn) { in gf100_vmm_valid()
301 u64 tags = map->tags->mn->offset + (map->offset >> 17); in gf100_vmm_valid()
[all …]
H A Dvmmgp100.c120 map->type += ptes * map->ctag; in gp100_vmm_pgt_pte()
124 data += map->next; in gp100_vmm_pgt_pte()
143 const u64 data = (*map->dma++ >> 4) | map->type; in gp100_vmm_pgt_dma()
145 map->type += map->ctag; in gp100_vmm_pgt_dma()
203 map->type += ptes * map->ctag; in gp100_vmm_pd0_pte()
207 data += map->next; in gp100_vmm_pd0_pte()
421 map->type = 0; in gp100_vmm_valid()
459 &map->tags); in gp100_vmm_valid()
466 if (!map->no_comp && map->tags->mn) { in gp100_vmm_valid()
467 tags = map->tags->mn->offset + (map->offset >> 16); in gp100_vmm_valid()
[all …]
/openbmc/linux/arch/sh/mm/
H A Dioremap_fixed.c38 struct ioremap_map *map; in ioremap_fixed_init() local
42 map = &ioremap_maps[i]; in ioremap_fixed_init()
51 struct ioremap_map *map; in ioremap_fixed() local
65 map = &ioremap_maps[i]; in ioremap_fixed()
66 if (!map->addr) { in ioremap_fixed()
67 map->size = size; in ioremap_fixed()
96 map->addr = (void __iomem *)(offset + map->fixmap_addr); in ioremap_fixed()
97 return map->addr; in ioremap_fixed()
103 struct ioremap_map *map; in iounmap_fixed() local
131 map->size = 0; in iounmap_fixed()
[all …]
/openbmc/linux/drivers/platform/x86/intel/pmc/
H A Dcore.c86 const struct pmc_reg_map *map = pmc->map; in set_etr3() local
125 const struct pmc_reg_map *map = pmc->map; in etr3_is_visible() local
140 const struct pmc_reg_map *map = pmc->map; in etr3_show() local
198 const struct pmc_reg_map *map = pmc->map; in pmc_core_dev_state_get() local
238 ++map; in pmc_core_slps0_display()
375 const struct pmc_bit_map *map = pmc->map->mphy_sts; in pmc_core_mphy_pg_show() local
430 const struct pmc_bit_map *map = pmc->map->pll_sts; in pmc_core_pll_show() local
481 map = pmc->map; in pmc_core_send_ltr_ignore()
553 const struct pmc_reg_map *map = pmc->map; in pmc_core_slps0_dbg_latch() local
635 map = pmc->map->ltr_show_sts; in pmc_core_ltr_show()
[all …]
/openbmc/linux/net/netfilter/ipset/
H A Dip_set_bitmap_ipmac.c219 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ipmac_kadt()
227 e.id = ip_to_id(map, ip); in bitmap_ipmac_kadt()
265 if (ip < map->first_ip || ip > map->last_ip) in bitmap_ipmac_uadt()
268 e.id = ip_to_id(map, ip); in bitmap_ipmac_uadt()
303 if (!map->members) in init_map_ipmac()
306 map->last_ip = last_ip; in init_map_ipmac()
310 map->set = set; in init_map_ipmac()
311 set->data = map; in init_map_ipmac()
359 map = ip_set_alloc(sizeof(*map) + elements * set->dsize); in bitmap_ipmac_create()
360 if (!map) in bitmap_ipmac_create()
[all …]
H A Dip_set_list_set.c53 struct list_set *map = set->data; in list_set_ktest() local
433 kfree(map); in list_set_destroy()
574 struct list_set *map = from_timer(map, t, gc); in list_set_gc() local
582 add_timer(&map->gc); in list_set_gc()
599 struct list_set *map; in init_list_set() local
601 map = kzalloc(sizeof(*map), GFP_KERNEL); in init_list_set()
602 if (!map) in init_list_set()
605 map->size = size; in init_list_set()
606 map->net = net; in init_list_set()
607 map->set = set; in init_list_set()
[all …]
/openbmc/linux/fs/erofs/
H A Dzmap.c335 struct erofs_map_blocks *const map = m->map; in z_erofs_get_extent_compressedlen() local
407 struct erofs_map_blocks *map = m->map; in z_erofs_get_extent_decompressedlen() local
415 map->m_llen = inode->i_size - map->m_la; in z_erofs_get_extent_decompressedlen()
442 map->m_llen = (lcn << lclusterbits) + m->clusterofs - map->m_la; in z_erofs_get_extent_decompressedlen()
454 .map = map, in z_erofs_do_map_blocks()
519 map->m_llen = end - map->m_la; in z_erofs_do_map_blocks()
541 if (map->m_llen > map->m_plen) { in z_erofs_do_map_blocks()
662 erofs_blkoff(sb, map.m_pa) + map.m_plen > sb->s_blocksize) { in z_erofs_fill_inode_lazy()
664 map.m_plen); in z_erofs_fill_inode_lazy()
705 map->m_llen = map->m_la + 1 - inode->i_size; in z_erofs_map_blocks_iter()
[all …]
/openbmc/linux/kernel/bpf/
H A Dbpf_struct_ops.c33 struct bpf_map map; member
286 refcnt = atomic64_read(&map->refcnt) - atomic64_read(&map->usercnt); in bpf_struct_ops_map_sys_lookup_elem()
536 bpf_map_inc(map); in bpf_struct_ops_map_update_elem()
682 map = &st_map->map; in bpf_struct_ops_map_alloc()
698 return map; in bpf_struct_ops_map_alloc()
742 map = __bpf_map_inc_not_zero(&st_map->map, false); in bpf_struct_ops_get()
793 map = rcu_dereference(st_link->map); in bpf_struct_ops_map_link_show_fdinfo()
806 map = rcu_dereference(st_link->map); in bpf_struct_ops_map_link_fill_link_info()
874 if (IS_ERR(map)) in bpf_struct_ops_link_create()
901 RCU_INIT_POINTER(link->map, map); in bpf_struct_ops_link_create()
[all …]
H A Dbloom_filter.c16 struct bpf_map map; member
39 container_of(map, struct bpf_bloom_filter, map); in bloom_map_peek_elem()
43 h = hash(bloom, value, map->value_size, i); in bloom_map_peek_elem()
54 container_of(map, struct bpf_bloom_filter, map); in bloom_map_push_elem()
61 h = hash(bloom, value, map->value_size, i); in bloom_map_push_elem()
151 bpf_map_init_from_attr(&bloom->map, attr); in bloom_map_alloc()
159 return &bloom->map; in bloom_map_alloc()
162 static void bloom_map_free(struct bpf_map *map) in bloom_map_free() argument
165 container_of(map, struct bpf_bloom_filter, map); in bloom_map_free()
183 static int bloom_map_check_btf(const struct bpf_map *map, in bloom_map_check_btf() argument
[all …]
/openbmc/linux/drivers/staging/media/ipu3/
H A Dipu3-dmamap.c128 if (!map->vaddr) in imgu_dmamap_alloc()
131 map->pages = pages; in imgu_dmamap_alloc()
132 map->size = size; in imgu_dmamap_alloc()
136 size, &map->daddr, map->vaddr); in imgu_dmamap_alloc()
138 return map->vaddr; in imgu_dmamap_alloc()
172 __func__, map->size, &map->daddr, map->vaddr); in imgu_dmamap_free()
174 if (!map->vaddr) in imgu_dmamap_free()
180 imgu_dmamap_free_buffer(map->pages, map->size); in imgu_dmamap_free()
181 map->vaddr = NULL; in imgu_dmamap_free()
219 memset(map, 0, sizeof(*map)); in imgu_dmamap_map_sg()
[all …]
/openbmc/u-boot/arch/x86/cpu/efi/
H A Dpayload.c28 struct efi_entry_memmap *map; in board_get_usable_ram_top() local
48 desc = map->desc; in board_get_usable_ram_top()
74 struct efi_entry_memmap *map; in dram_init() local
86 desc = map->desc; in dram_init()
98 struct efi_entry_memmap *map; in dram_init_banksize() local
109 desc = map->desc; in dram_init_banksize()
179 struct efi_entry_memmap *map; in install_e820_map() local
194 for (desc = map->desc; desc < end; in install_e820_map()
259 struct efi_entry_memmap *map; in setup_efi_info() local
277 efi_info->efi_memdesc_size = map->desc_size; in setup_efi_info()
[all …]
/openbmc/linux/tools/testing/selftests/dma/
H A Ddma_map_benchmark.c26 struct map_benchmark map; in main() local
107 memset(&map, 0, sizeof(map)); in main()
108 map.seconds = seconds; in main()
109 map.threads = threads; in main()
110 map.node = node; in main()
111 map.dma_bits = bits; in main()
112 map.dma_dir = dir; in main()
113 map.dma_trans_ns = xdelay; in main()
114 map.granule = granule; in main()
124 map.avg_map_100ns/10.0, map.map_stddev/10.0); in main()
[all …]
/openbmc/linux/include/linux/
H A Dregmap.h158 __ret = regmap_read((map), (addr), &(val)); \
165 __ret = regmap_read((map), (addr), &(val)); \
1207 void regmap_exit(struct regmap *map);
1208 int regmap_reinit_cache(struct regmap *map,
1274 int regmap_get_val_bytes(struct regmap *map);
1276 int regmap_get_reg_stride(struct regmap *map);
1277 bool regmap_might_sleep(struct regmap *map);
1283 int regcache_sync(struct regmap *map);
1290 void regcache_mark_dirty(struct regmap *map);
1657 struct regmap *map, int irq,
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dglobal_map_resize.c23 struct bpf_map *map; in global_map_resize_bss_subtest() local
38 map = skel->maps.bss; in global_map_resize_bss_subtest()
39 err = bpf_map__set_value_size(map, desired_sz); in global_map_resize_bss_subtest()
92 struct bpf_map *map; in global_map_resize_data_subtest() local
108 map = skel->maps.data_custom; in global_map_resize_data_subtest()
109 err = bpf_map__set_value_size(map, desired_sz); in global_map_resize_data_subtest()
163 struct bpf_map *map; in global_map_resize_invalid_subtest() local
173 map = skel->maps.data_custom; in global_map_resize_invalid_subtest()
182 err = bpf_map__set_value_size(map, desired_sz); in global_map_resize_invalid_subtest()
190 map = skel->maps.data_non_array; in global_map_resize_invalid_subtest()
[all …]
/openbmc/linux/drivers/dma/dw/
H A Drzn1-dmamux.c32 struct rzn1_dmamux_map *map = route_data; in rzn1_dmamux_free() local
36 clear_bit(map->req_idx, dmamux->used_chans); in rzn1_dmamux_free()
38 kfree(map); in rzn1_dmamux_free()
46 struct rzn1_dmamux_map *map; in rzn1_dmamux_route_allocate() local
54 map = kzalloc(sizeof(*map), GFP_KERNEL); in rzn1_dmamux_route_allocate()
55 if (!map) in rzn1_dmamux_route_allocate()
59 map->req_idx = dma_spec->args[4]; in rzn1_dmamux_route_allocate()
85 map->req_idx, dmac_idx, chan); in rzn1_dmamux_route_allocate()
92 mask = BIT(map->req_idx); in rzn1_dmamux_route_allocate()
97 return map; in rzn1_dmamux_route_allocate()
[all …]
/openbmc/linux/arch/x86/include/asm/
H A Dmpspec.h86 #define physid_set(physid, map) set_bit(physid, (map).mask) argument
87 #define physid_isset(physid, map) test_bit(physid, (map).mask) argument
92 #define physids_clear(map) \ argument
93 bitmap_zero((map).mask, MAX_LOCAL_APIC)
95 #define physids_empty(map) \ argument
96 bitmap_empty((map).mask, MAX_LOCAL_APIC)
100 physids_clear(*map); in physids_promote()
101 map->mask[0] = physids; in physids_promote()
104 static inline void physid_set_mask_of_physid(int physid, physid_mask_t *map) in physid_set_mask_of_physid() argument
106 physids_clear(*map); in physid_set_mask_of_physid()
[all …]
/openbmc/linux/drivers/media/pci/cobalt/
H A Dcobalt-flash.c29 r.x[0] = cobalt_bus_read32(map->virt, ADRS(offset)); in flash_read16()
43 cobalt_bus_write16(map->virt, ADRS(offset), data); in flash_write16()
54 data = cobalt_bus_read32(map->virt, ADRS(src)); in flash_copy_from()
87 struct map_info *map = &cobalt_flash_map; in cobalt_flash_probe() local
90 BUG_ON(!map_bankwidth_supported(map->bankwidth)); in cobalt_flash_probe()
91 map->virt = cobalt->bar1; in cobalt_flash_probe()
92 map->read = flash_read16; in cobalt_flash_probe()
93 map->write = flash_write16; in cobalt_flash_probe()
94 map->copy_from = flash_copy_from; in cobalt_flash_probe()
95 map->copy_to = flash_copy_to; in cobalt_flash_probe()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dmxm.c81 u16 map = nvbios_rd16(bios, mxm + 4); in mxm_sor_map() local
82 if (map) { in mxm_sor_map()
83 ver = nvbios_rd08(bios, map); in mxm_sor_map()
86 map += nvbios_rd08(bios, map + 1); in mxm_sor_map()
87 map += conn; in mxm_sor_map()
88 return nvbios_rd08(bios, map); in mxm_sor_map()
119 if (map) { in mxm_ddc_map()
120 ver = nvbios_rd08(bios, map); in mxm_ddc_map()
123 map += nvbios_rd08(bios, map + 1); in mxm_ddc_map()
124 map += port; in mxm_ddc_map()
[all …]
/openbmc/linux/drivers/pinctrl/
H A Dpinctrl-utils.c19 struct pinctrl_map **map, unsigned *reserved_maps, in pinctrl_utils_reserve_map() argument
37 *map = new_map; in pinctrl_utils_reserve_map()
44 struct pinctrl_map **map, unsigned *reserved_maps, in pinctrl_utils_add_map_mux() argument
51 (*map)[*num_maps].type = PIN_MAP_TYPE_MUX_GROUP; in pinctrl_utils_add_map_mux()
52 (*map)[*num_maps].data.mux.group = group; in pinctrl_utils_add_map_mux()
53 (*map)[*num_maps].data.mux.function = function; in pinctrl_utils_add_map_mux()
76 (*map)[*num_maps].type = type; in pinctrl_utils_add_map_configs()
111 struct pinctrl_map *map, unsigned num_maps) in pinctrl_utils_free_map() argument
116 switch (map[i].type) { in pinctrl_utils_free_map()
119 kfree(map[i].data.configs.configs); in pinctrl_utils_free_map()
[all …]
/openbmc/linux/drivers/net/wireless/realtek/rtl818x/rtl8180/
H A Ddev.c724 rtl818x_iowrite32(priv, &priv->map->IMR, in rtl8180_int_enable()
823 rtl818x_ioread8(priv, &priv->map->CMD); in rtl8180_init_hw()
828 rtl818x_ioread8(priv, &priv->map->CMD); in rtl8180_init_hw()
834 rtl818x_ioread8(priv, &priv->map->CMD); in rtl8180_init_hw()
844 rtl818x_ioread8(priv, &priv->map->CMD); in rtl8180_init_hw()
1792 priv->map = pci_iomap(pdev, 1, mem_len); in rtl8180_probe()
1793 if (!priv->map) { in rtl8180_probe()
1794 priv->map = pci_iomap(pdev, 0, io_len); in rtl8180_probe()
1798 if (!priv->map) { in rtl8180_probe()
1948 pci_iounmap(pdev, priv->map); in rtl8180_probe()
[all …]
/openbmc/linux/drivers/firmware/tegra/
H A Divc.c200 if (tegra_ivc_empty(ivc, &ivc->rx.map)) in tegra_ivc_check_read()
215 if (!tegra_ivc_full(ivc, &ivc->tx.map)) in tegra_ivc_check_write()
220 if (tegra_ivc_full(ivc, &ivc->tx.map)) in tegra_ivc_check_write()
299 return tegra_ivc_frame_virt(ivc, &ivc->rx.map, ivc->rx.position, map); in tegra_ivc_read_get_next_frame()
351 return tegra_ivc_frame_virt(ivc, &ivc->tx.map, ivc->tx.position, map); in tegra_ivc_write_get_next_frame()
632 if (map->is_iomem) in iosys_map_get_address()
635 return (unsigned long)map->vaddr; in iosys_map_get_address()
640 if (WARN_ON(map->is_iomem)) in iosys_map_get_vaddr()
643 return map->vaddr; in iosys_map_get_vaddr()
690 iosys_map_copy(&ivc->rx.map, rx); in tegra_ivc_init()
[all …]
/openbmc/linux/net/ceph/
H A Dosdmap.c1127 map = kzalloc(sizeof(*map), GFP_NOIO); in ceph_osdmap_alloc()
1128 if (!map) in ceph_osdmap_alloc()
1140 return map; in ceph_osdmap_alloc()
1189 kfree(map); in ceph_osdmap_destroy()
1235 memset(map->osd_addr + i, 0, sizeof(*map->osd_addr)); in osdmap_set_max_osd()
1685 ceph_decode_copy(p, &map->fsid, sizeof(map->fsid)); in osdmap_decode()
1687 ceph_decode_copy(p, &map->created, sizeof(map->created)); in osdmap_decode()
1823 if (!map) in ceph_osdmap_decode()
1832 return map; in ceph_osdmap_decode()
2105 return map; in osdmap_apply_incremental()
[all …]
/openbmc/linux/sound/soc/uniphier/
H A Daio-core.c206 MAPCTR0_EN | sub->swm->rb.map); in aio_init()
208 MAPCTR0_EN | sub->swm->ch.map); in aio_init()
228 MAPCTR0_EN | sub->swm->oif.map); in aio_init()
232 MAPCTR0_EN | sub->swm->och.map); in aio_init()
234 MAPCTR0_EN | sub->swm->iif.map); in aio_init()
681 sub->swm->oif.map); in aio_port_set_enable()
745 int oport_map = sub->swm->oport.map; in aio_port_set_volume()
1010 v | BIT(sub->swm->och.map)); in aio_srcch_set_enable()
1042 BIT(sub->swm->rb.map), in aiodma_ch_set_enable()
1043 BIT(sub->swm->rb.map)); in aiodma_ch_set_enable()
[all …]
/openbmc/linux/include/linux/mtd/
H A Dcfi_endian.h27 #define cpu_to_cfi8(map, x) (x) argument
28 #define cfi8_to_cpu(map, x) (x) argument
29 #define cpu_to_cfi16(map, x) _cpu_to_cfi(16, (map)->swap, (x)) argument
30 #define cpu_to_cfi32(map, x) _cpu_to_cfi(32, (map)->swap, (x)) argument
31 #define cpu_to_cfi64(map, x) _cpu_to_cfi(64, (map)->swap, (x)) argument
32 #define cfi16_to_cpu(map, x) _cfi_to_cpu(16, (map)->swap, (x)) argument
33 #define cfi32_to_cpu(map, x) _cfi_to_cpu(32, (map)->swap, (x)) argument
34 #define cfi64_to_cpu(map, x) _cfi_to_cpu(64, (map)->swap, (x)) argument

12345678910>>...197