/linux-master/kernel/bpf/ |
H A D | map_in_map.h | 14 void *bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file, 16 void bpf_map_fd_put_ptr(struct bpf_map *map, void *ptr, bool need_defer);
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_map_in_map.c | 25 * perf_event_array map can be an inner 26 * map of hash/array_of_maps. 56 void *map; local 58 map = bpf_map_lookup_elem(&mim_array, &key); 59 if (!map) 62 bpf_map_update_elem(map, &key, &value, 0); 63 value_p = bpf_map_lookup_elem(map, &key); 67 map = bpf_map_lookup_elem(&mim_hash, &key); 68 if (!map) 71 bpf_map_update_elem(map, [all...] |
H A D | verifier_arena.c | 100 struct bpf_map map; member in struct:bpf_arena___l 110 pages = bpf_arena_alloc_pages(&ar->map, NULL, ar->map.max_entries, NUMA_NO_NODE, 0); 120 struct bpf_map *map = ctx->map; local 122 if (!map) 124 bpf_arena_alloc_pages(map, NULL, map->max_entries, 0, 0); 142 struct bpf_map *map = ctx->map; local [all...] |
/linux-master/drivers/xen/ |
H A D | pvcalls-back.c | 90 struct sock_mapping *map); 94 struct sock_mapping *map = (struct sock_mapping *)opaque; local 99 struct pvcalls_data_intf *intf = map->ring; 100 struct pvcalls_data *data = &map->data; 104 array_size = XEN_FLEX_RING_SIZE(map->ring_order); 117 spin_lock_irqsave(&map->sock->sk->sk_receive_queue.lock, flags); 118 if (skb_queue_empty(&map->sock->sk->sk_receive_queue)) { 119 atomic_set(&map->read, 0); 120 spin_unlock_irqrestore(&map->sock->sk->sk_receive_queue.lock, 124 spin_unlock_irqrestore(&map 168 pvcalls_conn_back_write(struct sock_mapping *map) argument 234 struct sock_mapping *map = container_of(ioworker, struct sock_mapping, local 291 struct sock_mapping *map = sock->sk_user_data; local 302 struct sock_mapping *map = sock->sk_user_data; local 324 struct sock_mapping *map; local 398 struct sock_mapping *map; local 436 pvcalls_back_release_active(struct xenbus_device *dev, struct pvcalls_fedata *fedata, struct sock_mapping *map) argument 482 struct sock_mapping *map, *n; local 520 struct sock_mapping *map; local 626 struct sockpass_mapping *map; local 691 struct sockpass_mapping *map; local 907 struct sock_mapping *map = sock_map; local 996 struct sock_mapping *map, *n; local [all...] |
/linux-master/drivers/cxl/core/ |
H A D | regs.c | 31 * @map: Map object describing the register block information found 36 * Probe for component register information and return it in map object. 39 struct cxl_component_reg_map *map) 44 *map = (struct cxl_component_reg_map) { 0 }; 86 rmap = &map->hdm_decoder; 93 rmap = &map->ras; 115 * @map: Map object describing the register block information found 117 * Probe for device register information and return it in map object. 120 struct cxl_device_reg_map *map) 125 *map 38 cxl_probe_component_regs(struct device *dev, void __iomem *base, struct cxl_component_reg_map *map) argument 119 cxl_probe_device_regs(struct device *dev, void __iomem *base, struct cxl_device_reg_map *map) argument 203 cxl_map_component_regs(const struct cxl_register_map *map, struct cxl_component_regs *regs, unsigned long map_mask) argument 237 cxl_map_device_regs(const struct cxl_register_map *map, struct cxl_device_regs *regs) argument 271 cxl_decode_regblock(struct pci_dev *pdev, u32 reg_lo, u32 reg_hi, struct cxl_register_map *map) argument 305 cxl_find_regblock_instance(struct pci_dev *pdev, enum cxl_regloc_type type, struct cxl_register_map *map, int index) argument 360 cxl_find_regblock(struct pci_dev *pdev, enum cxl_regloc_type type, struct cxl_register_map *map) argument 378 struct cxl_register_map map; local 390 cxl_map_pmu_regs(struct cxl_register_map *map, struct cxl_pmu_regs *regs) argument 404 cxl_map_regblock(struct cxl_register_map *map) argument 418 cxl_unmap_regblock(struct cxl_register_map *map) argument 424 cxl_probe_regs(struct cxl_register_map *map) argument 458 cxl_setup_regs(struct cxl_register_map *map) argument [all...] |
/linux-master/arch/loongarch/kernel/ |
H A D | dma.c | 12 const struct bus_dma_region *map = NULL; local 14 ret = acpi_dma_get_range(dev, &map); 15 if (!ret && map) { 16 const struct bus_dma_region *r = map; 25 dev->dma_range_map = map;
|
/linux-master/drivers/hwmon/ |
H A D | ltc2947-spi.c | 22 struct regmap *map; local 24 map = devm_regmap_init_spi(spi, <c2947_regmap_config); 25 if (IS_ERR(map)) 26 return PTR_ERR(map); 28 return ltc2947_core_probe(map, spi_get_device_id(spi)->name);
|
/linux-master/tools/perf/util/ |
H A D | addr_location.c | 3 #include "map.h" 11 al->map = NULL; 30 map__zput(al->map); 39 map__put(dst->map); 43 dst->map = map__get(src->map);
|
/linux-master/tools/testing/selftests/mm/ |
H A D | on-fault-limit.c | 13 void *map; local 21 map = mmap(NULL, 2 * lims.rlim_max, PROT_READ | PROT_WRITE, 24 ksft_test_result(map == MAP_FAILED, "The map failed respecting mlock limits\n"); 26 if (map != MAP_FAILED) 27 munmap(map, 2 * lims.rlim_max);
|
/linux-master/drivers/mtd/chips/ |
H A D | gen_probe.c | 11 #include <linux/mtd/map.h> 16 static struct cfi_private *genprobe_ident_chips(struct map_info *map, 18 static int genprobe_new_chip(struct map_info *map, struct chip_probe *cp, 21 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp) argument 26 /* First probe the map to see if we have CFI stuff there. */ 27 cfi = genprobe_ident_chips(map, cp); 32 map->fldrv_priv = cfi; 35 mtd = check_cmd_set(map, 1); /* First the primary cmdset */ 37 mtd = check_cmd_set(map, 0); /* Then the secondary */ 40 if (mtd->size > map 59 genprobe_ident_chips(struct map_info *map, struct chip_probe *cp) argument 164 genprobe_new_chip(struct map_info *map, struct chip_probe *cp, struct cfi_private *cfi) argument 198 cfi_cmdset_unknown(struct map_info *map, int primary) argument 232 check_cmd_set(struct map_info *map, int primary) argument [all...] |
H A D | cfi_probe.c | 18 #include <linux/mtd/map.h> 28 static int cfi_probe_chip(struct map_info *map, __u32 base, 30 static int cfi_chip_setup(struct map_info *map, struct cfi_private *cfi); 32 struct mtd_info *cfi_probe(struct map_info *map); 39 #define xip_allowed(base, map) \ 41 (void) map_read(map, base); \ 46 #define xip_enable(base, map, cfi) \ 48 cfi_qry_mode_off(base, map, cfi); \ 49 xip_allowed(base, map); \ 52 #define xip_disable_qry(base, map, cf 96 cfi_probe_chip(struct map_info *map, __u32 base, unsigned long *chip_map, struct cfi_private *cfi) argument 195 cfi_chip_setup(struct map_info *map, struct cfi_private *cfi) argument 432 cfi_probe(struct map_info *map) argument [all...] |
H A D | cfi_cmdset_0001.c | 35 #include <linux/mtd/map.h> 99 static int chip_ready (struct map_info *map, struct flchip *chip, unsigned long adr, int mode); 100 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode); 101 static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adr); 174 struct map_info *map = mtd->priv; local 175 struct cfi_private *cfi = map->fldrv_priv; 214 struct map_info *map = mtd->priv; local 215 struct cfi_private *cfi = map->fldrv_priv; 226 struct map_info *map = mtd->priv; local 227 struct cfi_private *cfi = map 239 struct map_info *map = mtd->priv; local 252 struct map_info *map = mtd->priv; local 261 struct map_info *map = mtd->priv; local 281 struct map_info *map = mtd->priv; local 301 struct map_info *map = mtd->priv; local 310 struct map_info *map = mtd->priv; local 324 struct map_info *map = mtd->priv; local 393 read_pri_intelext(struct map_info *map, __u16 adr) argument 498 cfi_cmdset_0001(struct map_info *map, int primary) argument 619 struct map_info *map = mtd->priv; local 700 struct map_info *map = mtd->priv; local 827 chip_ready(struct map_info *map, struct flchip *chip, unsigned long adr, int mode) argument 944 get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode) argument 1040 put_chip(struct map_info *map, struct flchip *chip, unsigned long adr) argument 1124 xip_disable(struct map_info *map, struct flchip *chip, unsigned long adr) argument 1132 xip_enable(struct map_info *map, struct flchip *chip, unsigned long adr) argument 1158 xip_wait_for_operation( struct map_info *map, struct flchip *chip, unsigned long adr, unsigned int chip_op_time_max) argument 1289 inval_cache_and_wait_for_operation( struct map_info *map, struct flchip *chip, unsigned long cmd_adr, unsigned long inval_adr, int inval_len, unsigned int chip_op_time, unsigned int chip_op_time_max) argument 1373 do_point_onechip(struct map_info *map, struct flchip *chip, loff_t adr, size_t len) argument 1403 struct map_info *map = mtd->priv; local 1455 struct map_info *map = mtd->priv; local 1500 do_read_onechip(struct map_info *map, struct flchip *chip, loff_t adr, size_t len, u_char *buf) argument 1534 struct map_info *map = mtd->priv; local 1569 do_write_oneword(struct map_info *map, struct flchip *chip, unsigned long adr, map_word datum, int mode) argument 1646 struct map_info *map = mtd->priv; local 1723 do_write_buffer(struct map_info *map, struct flchip *chip, unsigned long adr, const struct kvec **pvec, unsigned long *pvec_seek, int len) argument 1892 struct map_info *map = mtd->priv; local 1952 do_erase_oneblock(struct map_info *map, struct flchip *chip, unsigned long adr, int len, void *thunk) argument 2050 struct map_info *map = mtd->priv; local 2089 do_getlockstatus_oneblock(struct map_info *map, struct flchip *chip, unsigned long adr, int len, void *thunk) argument 2107 do_printlockstatus_oneblock(struct map_info *map, struct flchip *chip, unsigned long adr, int len, void *thunk) argument 2121 do_xxlock_oneblock(struct map_info *map, struct flchip *chip, unsigned long adr, int len, void *thunk) argument 2243 do_otp_read(struct map_info *map, struct flchip *chip, u_long offset, u_char *buf, u_int size, u_long prot, u_int grpno, u_int grpsz) argument 2276 do_otp_write(struct map_info *map, struct flchip *chip, u_long offset, u_char *buf, u_int size, u_long prot, u_int grpno, u_int grpsz) argument 2301 do_otp_lock(struct map_info *map, struct flchip *chip, u_long offset, u_char *buf, u_int size, u_long prot, u_int grpno, u_int grpsz) argument 2320 struct map_info *map = mtd->priv; local 2527 struct map_info *map = mtd->priv; local 2622 struct map_info *map = mtd->priv; local 2653 struct map_info *map = mtd->priv; local 2688 struct map_info *map = mtd->priv; local [all...] |
H A D | cfi_cmdset_0020.c | 33 #include <linux/mtd/map.h> 114 struct mtd_info *cfi_cmdset_0020(struct map_info *map, int primary) argument 116 struct cfi_private *cfi = map->fldrv_priv; 128 extp = (struct cfi_pri_intelext*)cfi_read_pri(map, adr, sizeof(*extp), "ST Microelectronics"); 142 extp->FeatureSupport = cfi32_to_cpu(map, extp->FeatureSupport); 143 extp->BlkStatusRegMask = cfi32_to_cpu(map, 163 return cfi_staa_setup(map); 167 static struct mtd_info *cfi_staa_setup(struct map_info *map) argument 169 struct cfi_private *cfi = map->fldrv_priv; 183 mtd->priv = map; 249 do_read_onechip(struct map_info *map, struct flchip *chip, loff_t adr, size_t len, u_char *buf) argument 386 struct map_info *map = mtd->priv; local 421 do_write_buffer(struct map_info *map, struct flchip *chip, unsigned long adr, const u_char *buf, int len) argument 610 struct map_info *map = mtd->priv; local 733 do_erase_oneblock(struct map_info *map, struct flchip *chip, unsigned long adr) argument 893 { struct map_info *map = mtd->priv; local 975 struct map_info *map = mtd->priv; local 1032 do_lock_oneblock(struct map_info *map, struct flchip *chip, unsigned long adr) argument 1129 struct map_info *map = mtd->priv; local 1178 do_unlock_oneblock(struct map_info *map, struct flchip *chip, unsigned long adr) argument 1275 struct map_info *map = mtd->priv; local 1314 struct map_info *map = mtd->priv; local 1372 struct map_info *map = mtd->priv; local 1396 struct map_info *map = mtd->priv; local [all...] |
/linux-master/net/netfilter/ipset/ |
H A D | ip_set_bitmap_port.c | 59 const struct bitmap_port *map, size_t dsize) 61 return !!test_bit(e->id, map->members); 65 bitmap_port_gc_test(u16 id, const struct bitmap_port *map, size_t dsize) argument 67 return !!test_bit(id, map->members); 72 struct bitmap_port *map, u32 flags, size_t dsize) 74 return !!test_bit(e->id, map->members); 79 struct bitmap_port *map) 81 return !test_and_clear_bit(e->id, map->members); 85 bitmap_port_do_list(struct sk_buff *skb, const struct bitmap_port *map, u32 id, argument 89 htons(map 58 bitmap_port_do_test(const struct bitmap_port_adt_elem *e, const struct bitmap_port *map, size_t dsize) argument 71 bitmap_port_do_add(const struct bitmap_port_adt_elem *e, struct bitmap_port *map, u32 flags, size_t dsize) argument 78 bitmap_port_do_del(const struct bitmap_port_adt_elem *e, struct bitmap_port *map) argument 93 bitmap_port_do_head(struct sk_buff *skb, const struct bitmap_port *map) argument 131 struct bitmap_port *map = set->data; local 156 struct bitmap_port *map = set->data; local 231 init_map_port(struct ip_set *set, struct bitmap_port *map, u16 first_port, u16 last_port) argument 252 struct bitmap_port *map; local [all...] |
/linux-master/drivers/firmware/efi/libstub/ |
H A D | relocate.c | 26 struct efi_boot_memmap *map; local 31 status = efi_get_memory_map(&map, false); 46 for (i = 0; i < map->map_size / map->desc_size; i++) { 48 unsigned long m = (unsigned long)map->map; 51 desc = efi_early_memdesc_ptr(m, map->desc_size, i); 81 if (i == map->map_size / map->desc_size) 84 efi_bs_call(free_pool, map); [all...] |
/linux-master/drivers/base/regmap/ |
H A D | regmap-kunit.c | 123 struct regmap *map; local 131 map = gen_regmap(&config, &data); 132 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); 133 if (IS_ERR(map)) 139 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, 0, val)); 140 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, 0, &rval)); 146 regmap_exit(map); 152 struct regmap *map; local 161 map = gen_regmap(&config, &data); 162 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); 189 struct regmap *map; local 222 struct regmap *map; local 257 struct regmap *map; local 297 struct regmap *map; local 325 struct regmap *map; local 359 struct regmap *map; local 411 struct regmap *map; local 485 struct regmap *map; local 557 struct regmap *map; local 611 struct regmap *map; local 649 struct regmap *map; local 687 struct regmap *map; local 723 struct regmap *map; local 764 struct regmap *map; local 825 struct regmap *map; local 867 struct regmap *map; local 907 struct regmap *map; local 1067 struct regmap *map; local 1092 struct regmap *map; local 1131 struct regmap *map; local 1157 struct regmap *map; local 1219 struct regmap *map; local 1269 struct regmap *map; local 1347 struct regmap *map; local [all...] |
/linux-master/arch/sh/kernel/cpu/sh4/ |
H A D | sq.c | 70 static inline void sq_mapping_list_add(struct sq_mapping *map) argument 80 map->next = tmp; 81 *p = map; 86 static inline void sq_mapping_list_del(struct sq_mapping *map) argument 93 if (tmp == map) { 101 static int __sq_remap(struct sq_mapping *map, pgprot_t prot) argument 106 vma = __get_vm_area_caller(map->size, VM_IOREMAP, map->sq_addr, 111 vma->phys_addr = map->addr; 114 (unsigned long)vma->addr + map 146 struct sq_mapping *map; local 209 struct sq_mapping **p, *map; local [all...] |
/linux-master/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_dev_mgr.c | 70 struct vf_id_map *map; local 75 map = list_entry(ptr, struct vf_id_map, list); 76 if (map->bdf != -1) { 77 id_map[map->id] = 0; 81 if (vf && map->bdf == -1) 85 kfree(map); 156 struct vf_id_map *map; local 175 map = kzalloc(sizeof(*map), GFP_KERNEL); 176 if (!map) { 187 struct vf_id_map *map; local 257 struct vf_id_map *map, *next; local [all...] |
/linux-master/drivers/dma/dw/ |
H A D | rzn1-dmamux.c | 32 struct rzn1_dmamux_map *map = route_data; local 34 dev_dbg(dev, "Unmapping DMAMUX request %u\n", map->req_idx); 36 clear_bit(map->req_idx, dmamux->used_chans); 38 kfree(map); 46 struct rzn1_dmamux_map *map; local 54 map = kzalloc(sizeof(*map), GFP_KERNEL); 55 if (!map) 59 map->req_idx = dma_spec->args[4]; 69 if (map [all...] |
/linux-master/drivers/power/supply/ |
H A D | max17042_battery.c | 98 struct regmap *map = chip->regmap; local 100 ret = regmap_read(map, MAX17042_TEMP, &data); 235 struct regmap *map = chip->regmap; local 250 ret = regmap_read(map, MAX17042_STATUS, &data); 263 ret = regmap_read(map, MAX17042_Cycles, &data); 270 ret = regmap_read(map, MAX17042_MinMaxVolt, &data); 278 ret = regmap_read(map, MAX17042_MinMaxVolt, &data); 286 ret = regmap_read(map, MAX17042_V_empty, &data); 288 ret = regmap_read(map, MAX17047_V_empty, &data); 296 ret = regmap_read(map, MAX17042_VCEL 444 struct regmap *map = chip->regmap; local 502 max17042_write_verify_reg(struct regmap *map, u8 reg, u32 value) argument 523 max17042_override_por(struct regmap *map, u8 reg, u16 value) argument 532 struct regmap *map = chip->regmap; local 540 struct regmap *map = chip->regmap; local 549 struct regmap *map = chip->regmap; local 560 struct regmap *map = chip->regmap; local 638 struct regmap *map = chip->regmap; local 655 struct regmap *map = chip->regmap; local 679 struct regmap *map = chip->regmap; local 691 struct regmap *map = chip->regmap; local 705 struct regmap *map = chip->regmap; local 742 struct regmap *map = chip->regmap; local 800 struct regmap *map = chip->regmap; local 850 struct regmap *map = chip->regmap; local [all...] |
/linux-master/tools/perf/tests/ |
H A D | topology.c | 62 static int check_cpu_topology(char *path, struct perf_cpu_map *map) argument 109 if (cpu__get_socket_id(perf_cpu_map__cpu(map, 0)) == -1) 113 TEST_ASSERT_VAL("Session header CPU map not set", session->header.env.cpu); 118 if (!perf_cpu_map__has(map, cpu)) 126 for (i = 0; i < perf_cpu_map__nr(map); i++) { 127 id = aggr_cpu_id__cpu(perf_cpu_map__cpu(map, i), NULL); 128 TEST_ASSERT_VAL("Cpu map - CPU ID doesn't match", 129 perf_cpu_map__cpu(map, i).cpu == id.cpu.cpu); 131 TEST_ASSERT_VAL("Cpu map - Core ID doesn't match", 132 session->header.env.cpu[perf_cpu_map__cpu(map, 208 struct perf_cpu_map *map; local [all...] |
H A D | mmap-thread-lookup.c | 15 #include "map.h" 28 void *map; member in struct:thread_data 36 void *map; local 38 map = mmap(NULL, page_size, 42 if (map == MAP_FAILED) { 47 td->map = map; 50 pr_debug("tid = %d, map = %p\n", td->tid, map); 75 munmap(td->map, page_siz 143 struct perf_thread_map *map; local [all...] |
/linux-master/drivers/vdpa/vdpa_user/ |
H A D | iova_domain.c | 49 struct vhost_iotlb_map *map; local 51 while ((map = vhost_iotlb_itree_first(domain->iotlb, start, last))) { 52 map_file = (struct vdpa_map_file *)map->opaque; 55 vhost_iotlb_map_free(domain->iotlb, map); 63 struct vhost_iotlb_map *map; local 70 for (map = vhost_iotlb_itree_first(iotlb, start, last); map; 71 map = vhost_iotlb_itree_next(map, start, last)) { 72 map_file = (struct vdpa_map_file *)map 92 struct vhost_iotlb_map *map; local 106 struct vduse_bounce_map *map; local 126 struct vduse_bounce_map *map; local 164 struct vduse_bounce_map *map; local 194 struct vhost_iotlb_map *map; local 213 struct vduse_bounce_map *map; local 232 struct vduse_bounce_map *map; local 253 struct vduse_bounce_map *map; local 288 struct vduse_bounce_map *map; local 484 struct vhost_iotlb_map *map; local 577 struct vduse_bounce_map *map; local [all...] |
/linux-master/drivers/auxdisplay/ |
H A D | line-display.c | 197 struct linedisp_map *map = linedisp->map; local 199 memcpy(buf, &map->map, map->size); 200 return map->size; 207 struct linedisp_map *map = linedisp->map; local 209 if (count != map->size) 212 memcpy(&map 234 struct linedisp_map *map = linedisp->map; local 279 struct linedisp_map *map; local [all...] |
/linux-master/drivers/mtd/maps/ |
H A D | physmap-gemini.c | 11 #include <linux/mtd/map.h> 81 static map_word __xipram gemini_flash_map_read(struct map_info *map, argument 87 ret = inline_map_read(map, ofs); 93 static void __xipram gemini_flash_map_write(struct map_info *map, argument 98 inline_map_write(map, datum, ofs); 102 static void __xipram gemini_flash_map_copy_from(struct map_info *map, argument 107 inline_map_copy_from(map, to, from, len); 111 static void __xipram gemini_flash_map_copy_to(struct map_info *map, argument 116 inline_map_copy_to(map, to, from, len); 122 struct map_info *map) 120 of_flash_probe_gemini(struct platform_device *pdev, struct device_node *np, struct map_info *map) argument [all...] |