Searched refs:map (Results 226 - 250 of 2546) sorted by relevance

1234567891011>>

/linux-master/drivers/firmware/efi/libstub/
H A Dkaslr.c56 * same EFI memory map entry.
60 struct efi_boot_memmap *map; local
65 status = efi_get_memory_map(&map, false);
69 for (map_offset = 0; map_offset < map->map_size; map_offset += map->desc_size) {
70 efi_memory_desc_t *md = (void *)map->map + map_offset;
83 efi_bs_call(free_pool, map);
/linux-master/drivers/soundwire/
H A Ddmi-quirks.c166 struct adr_remap *map; local
168 for (map = dmi_id->driver_data; map->adr; map++) {
169 if (map->adr == addr) {
171 addr, map->remapped_adr);
172 addr = map->remapped_adr;
/linux-master/drivers/platform/x86/intel/pmc/
H A Dcore.c77 const int lpm_adj_x2 = pmc->map->lpm_res_counter_step_x2;
79 if (pmc->map == &adl_reg_map)
82 return (u64)value * pmc->map->slp_s0_res_counter_step;
88 const struct pmc_reg_map *map = pmc->map; local
92 if (!map->etr3_offset)
98 reg = pmc_core_reg_read(pmc, map->etr3_offset);
106 pmc_core_reg_write(pmc, map->etr3_offset, reg);
108 reg = pmc_core_reg_read(pmc, map->etr3_offset);
127 const struct pmc_reg_map *map local
142 const struct pmc_reg_map *map = pmc->map; local
200 const struct pmc_reg_map *map = pmc->map; local
214 const struct pmc_reg_map *map = pmc->map; local
237 const struct pmc_bit_map *map; local
391 const struct pmc_bit_map *map = pmc->map->mphy_sts; local
446 const struct pmc_bit_map *map = pmc->map->pll_sts; local
482 const struct pmc_reg_map *map; local
569 const struct pmc_reg_map *map = pmc->map; local
646 const struct pmc_bit_map *map; local
796 const struct pmc_bit_map *map; local
994 const struct pmc_bit_map *map = pmc->map->msr_sts; local
[all...]
/linux-master/drivers/power/reset/
H A Dsyscon-poweroff.c20 struct regmap *map; member in struct:syscon_poweroff_data
31 regmap_update_bits(data->map, data->offset, data->mask, data->value);
50 data->map = syscon_regmap_lookup_by_phandle(dev->of_node, "regmap");
51 if (IS_ERR(data->map)) {
52 data->map = syscon_node_to_regmap(dev->parent->of_node);
53 if (IS_ERR(data->map)) {
55 return PTR_ERR(data->map);
/linux-master/sound/soc/uniphier/
H A Devea.c109 struct regmap *map = evea->regmap; local
111 regmap_update_bits(map, AANAPOW, AANAPOW_A_POWD,
114 regmap_update_bits(map, ADAC1ODC, ADAC1ODC_HP_DIS_RES_MASK,
117 regmap_update_bits(map, ADAC1ODC, ADAC1ODC_ADAC_RAMPCLT_MASK,
120 regmap_update_bits(map, ADACSEQ2(0), ADACSEQ2_ADACIN_FIX, 0);
121 regmap_update_bits(map, ADACSEQ2(1), ADACSEQ2_ADACIN_FIX, 0);
122 regmap_update_bits(map, ADACSEQ2(2), ADACSEQ2_ADACIN_FIX, 0);
127 struct regmap *map = evea->regmap; local
129 regmap_update_bits(map, ADAC1ODC, ADAC1ODC_HP_DIS_RES_MASK,
132 regmap_update_bits(map, ADACSEQ
146 struct regmap *map = evea->regmap; local
170 struct regmap *map = evea->regmap; local
198 struct regmap *map = evea->regmap; local
[all...]
/linux-master/drivers/gpu/drm/bridge/analogix/
H A Danalogix-anx78xx.c80 struct regmap *map[I2C_NUM_ADDRESSES]; member in struct:anx78xx
98 static int anx78xx_set_bits(struct regmap *map, u8 reg, u8 mask) argument
100 return regmap_update_bits(map, reg, mask, mask);
103 static int anx78xx_clear_bits(struct regmap *map, u8 reg, u8 mask) argument
105 return regmap_update_bits(map, reg, mask, 0);
112 return anx_dp_aux_transfer(anx78xx->map[I2C_IDX_TX_P0], msg);
119 err = anx78xx_clear_bits(anx78xx->map[I2C_IDX_RX_P0],
124 err = anx78xx_set_bits(anx78xx->map[I2C_IDX_TX_P2], SP_VID_CTRL3_REG,
136 err = anx78xx_clear_bits(anx78xx->map[I2C_IDX_TX_P2], SP_VID_CTRL3_REG,
141 err = anx78xx_set_bits(anx78xx->map[I2C_IDX_RX_P
[all...]
/linux-master/drivers/mtd/maps/
H A Ddc21285.c2 * MTD map driver for flash on the DC21285 (the StrongARM-110 companion chip)
16 #include <linux/mtd/map.h>
54 static map_word dc21285_read8(struct map_info *map, unsigned long ofs) argument
57 val.x[0] = *(uint8_t*)(map->virt + ofs);
61 static map_word dc21285_read16(struct map_info *map, unsigned long ofs) argument
64 val.x[0] = *(uint16_t*)(map->virt + ofs);
68 static map_word dc21285_read32(struct map_info *map, unsigned long ofs) argument
71 val.x[0] = *(uint32_t*)(map->virt + ofs);
75 static void dc21285_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) argument
77 memcpy(to, (void*)(map
80 dc21285_write8(struct map_info *map, const map_word d, unsigned long adr) argument
89 dc21285_write16(struct map_info *map, const map_word d, unsigned long adr) argument
98 dc21285_write32(struct map_info *map, const map_word d, unsigned long adr) argument
105 dc21285_copy_to_32(struct map_info *map, unsigned long to, const void *from, ssize_t len) argument
117 dc21285_copy_to_16(struct map_info *map, unsigned long to, const void *from, ssize_t len) argument
129 dc21285_copy_to_8(struct map_info *map, unsigned long to, const void *from, ssize_t len) argument
[all...]
/linux-master/tools/bpf/bpftool/
H A Dpids.c19 int build_obj_refs_table(struct hashmap **map, enum bpf_obj_type type) argument
23 void delete_obj_refs_table(struct hashmap *map) {} argument
24 void emit_obj_refs_plain(struct hashmap *map, __u32 id, const char *prefix) {} argument
25 void emit_obj_refs_json(struct hashmap *map, __u32 id, json_writer_t *json_writer) {} argument
31 static void add_ref(struct hashmap *map, struct pid_iter_entry *e) argument
39 hashmap__for_each_key_entry(map, entry, e->id) {
84 err = hashmap__append(map, e->id, refs);
98 int build_obj_refs_table(struct hashmap **map, enum bpf_obj_type type) argument
106 *map = hashmap__new(hash_fn_for_key_as_id, equal_fn_for_key_as_id, NULL);
107 if (IS_ERR(*map)) {
177 delete_obj_refs_table(struct hashmap *map) argument
195 emit_obj_refs_json(struct hashmap *map, __u32 id, json_writer_t *json_writer) argument
228 emit_obj_refs_plain(struct hashmap *map, __u32 id, const char *prefix) argument
[all...]
/linux-master/include/linux/
H A Diosys-map.h45 * struct iosys_map map = IOSYS_MAP_INIT_VADDR(0xdeadbeaf);
47 * iosys_map_set_vaddr(&map, 0xdeadbeaf);
54 * struct iosys_map map = IOSYS_MAP_INIT_VADDR_IOMEM(0xdeadbeaf);
56 * iosys_map_set_vaddr_iomem(&map, 0xdeadbeaf);
64 * iosys_map_clear(&map);
71 * if (iosys_map_is_set(&map) != iosys_map_is_null(&map))
98 * iosys_map_memcpy_to(&map, src, len);
99 * iosys_map_incr(&map, len); // go to first byte after the memcpy
144 * without changing where the original map point
183 iosys_map_set_vaddr(struct iosys_map *map, void *vaddr) argument
196 iosys_map_set_vaddr_iomem(struct iosys_map *map, void __iomem *vaddr_iomem) argument
235 iosys_map_is_null(const struct iosys_map *map) argument
252 iosys_map_is_set(const struct iosys_map *map) argument
265 iosys_map_clear(struct iosys_map *map) argument
323 iosys_map_incr(struct iosys_map *map, size_t incr) argument
[all...]
/linux-master/drivers/dma/ti/
H A Ddma-crossbar.c68 struct ti_am335x_xbar_map *map = route_data; local
71 map->mux_val, map->dma_line);
73 ti_am335x_xbar_write(xbar->iomem, map->dma_line, 0);
74 kfree(map);
82 struct ti_am335x_xbar_map *map; local
106 map = kzalloc(sizeof(*map), GFP_KERNEL);
107 if (!map) {
112 map
227 struct ti_dra7_xbar_map *map = route_data; local
244 struct ti_dra7_xbar_map *map; local
[all...]
/linux-master/arch/powerpc/kvm/
H A Dbook3s_32_mmu_host.c81 struct kvmppc_sid_map *map; local
88 map = &to_book3s(vcpu)->sid_map[sid_map_mask];
89 if (map->guest_vsid == gvsid) {
91 gvsid, map->host_vsid);
92 return map;
95 map = &to_book3s(vcpu)->sid_map[SID_MAP_MASK - sid_map_mask];
96 if (map->guest_vsid == gvsid) {
98 gvsid, map->host_vsid);
99 return map;
136 struct kvmppc_sid_map *map; local
265 struct kvmppc_sid_map *map; local
307 struct kvmppc_sid_map *map; local
[all...]
/linux-master/fs/udf/
H A Dpartition.c29 struct udf_part_map *map; local
35 map = &sbi->s_partmaps[partition];
36 if (map->s_partition_func)
37 return map->s_partition_func(sb, block, partition, offset);
39 return map->s_partition_root + block + offset;
50 struct udf_part_map *map; local
55 map = &sbi->s_partmaps[partition];
56 vdata = &map->s_type_specific.s_virtual;
113 struct udf_part_map *map; local
117 map
161 struct udf_part_map *map = &sbi->s_partmaps[i]; local
279 struct udf_part_map *map; local
305 struct udf_part_map *map; local
[all...]
/linux-master/drivers/gpu/drm/gma500/
H A Dgma_display.c67 const struct psb_offset *map = &dev_priv->regmap[pipe]; local
91 REG_WRITE(map->stride, fb->pitches[0]);
93 dspcntr = REG_READ(map->cntr);
115 REG_WRITE(map->cntr, dspcntr);
121 the linear offset is named base for the other chips. map->surf
122 should be the base and map->linoff the offset for all chips */
124 REG_WRITE(map->base, offset + start);
125 REG_READ(map->base);
127 REG_WRITE(map->base, offset);
128 REG_READ(map
149 const struct psb_offset *map = &dev_priv->regmap[gma_crtc->pipe]; local
203 const struct psb_offset *map = &dev_priv->regmap[pipe]; local
581 const struct psb_offset *map = &dev_priv->regmap[gma_crtc->pipe]; local
624 const struct psb_offset *map = &dev_priv->regmap[gma_crtc->pipe]; local
[all...]
/linux-master/mm/
H A Dswap_cgroup.c10 struct page **map; member in struct:swap_cgroup_ctrl
51 ctrl->map[idx] = page;
60 __free_page(ctrl->map[idx]);
71 mappage = ctrl->map[offset / SC_PER_PAGE];
185 ctrl->map = array;
189 ctrl->map = NULL;
206 struct page **map; local
215 map = ctrl->map;
217 ctrl->map
[all...]
/linux-master/drivers/gpu/drm/xe/
H A Dxe_gsc_submit.c46 * @map: the iosys map to write to
47 * @offset: offset from the start of the map at which to write the header
54 u32 xe_gsc_emit_header(struct xe_device *xe, struct iosys_map *map, u32 offset, argument
62 xe_map_memset(xe, map, offset, 0, GSC_HDR_SIZE);
64 mtl_gsc_header_wr(xe, map, offset, validity_marker, GSC_HECI_VALIDITY_MARKER);
65 mtl_gsc_header_wr(xe, map, offset, heci_client_id, heci_client_id);
66 mtl_gsc_header_wr(xe, map, offset, host_session_handle, host_session_id);
67 mtl_gsc_header_wr(xe, map, offset, header_version, MTL_GSC_HEADER_VERSION);
68 mtl_gsc_header_wr(xe, map, offse
79 xe_gsc_poison_header(struct xe_device *xe, struct iosys_map *map, u32 offset) argument
121 xe_gsc_read_out_header(struct xe_device *xe, struct iosys_map *map, u32 offset, u32 min_payload_size, u32 *payload_offset) argument
[all...]
/linux-master/drivers/media/v4l2-core/
H A Dv4l2-cci.c19 int cci_read(struct regmap *map, u32 reg, u64 *val, int *err) argument
33 ret = regmap_bulk_read(map, reg, buf, len);
35 dev_err(regmap_get_device(map), "Error reading reg 0x%04x: %d\n",
69 dev_err(regmap_get_device(map), "Error invalid reg-width %u for reg 0x%04x\n",
83 int cci_write(struct regmap *map, u32 reg, u64 val, int *err) argument
126 dev_err(regmap_get_device(map), "Error invalid reg-width %u for reg 0x%04x\n",
132 ret = regmap_bulk_write(map, reg, buf, len);
134 dev_err(regmap_get_device(map), "Error writing reg 0x%04x: %d\n",
145 int cci_update_bits(struct regmap *map, u32 reg, u64 mask, u64 val, int *err) argument
150 ret = cci_read(map, re
160 cci_multi_reg_write(struct regmap *map, const struct cci_reg_sequence *regs, unsigned int num_regs, int *err) argument
[all...]
/linux-master/drivers/scsi/megaraid/
H A Dmegaraid_sas_fp.c57 #define SPAN_ROW_SIZE(map, ld, index_) (MR_LdSpanPtrGet(ld, index_, map)->spanRowSize)
58 #define SPAN_ROW_DATA_SIZE(map_, ld, index_) (MR_LdSpanPtrGet(ld, index_, map)->spanRowDataSize)
62 static void mr_update_span_set(struct MR_DRV_RAID_MAP_ALL *map,
66 struct RAID_CONTEXT *pRAID_Context, struct MR_DRV_RAID_MAP_ALL *map);
68 u64 strip, struct MR_DRV_RAID_MAP_ALL *map);
101 struct MR_LD_RAID *MR_LdRaidGet(u32 ld, struct MR_DRV_RAID_MAP_ALL *map) argument
103 return &map->raidMap.ldSpanMap[ld].ldRaid;
108 *map)
110 return &map
106 MR_LdSpanInfoGet(u32 ld, struct MR_DRV_RAID_MAP_ALL *map) argument
113 MR_LdDataArmGet(u32 ld, u32 armIdx, struct MR_DRV_RAID_MAP_ALL *map) argument
118 MR_ArPdGet(u32 ar, u32 arm, struct MR_DRV_RAID_MAP_ALL *map) argument
123 MR_LdSpanArrayGet(u32 ld, u32 span, struct MR_DRV_RAID_MAP_ALL *map) argument
128 MR_PdDevHandleGet(u32 pd, struct MR_DRV_RAID_MAP_ALL *map) argument
133 MR_PdInterfaceTypeGet(u32 pd, struct MR_DRV_RAID_MAP_ALL *map) argument
138 MR_GetLDTgtId(u32 ld, struct MR_DRV_RAID_MAP_ALL *map) argument
143 MR_TargetIdToLdGet(u32 ldTgtId, struct MR_DRV_RAID_MAP_ALL *map) argument
148 MR_LdSpanPtrGet(u32 ld, u32 span, struct MR_DRV_RAID_MAP_ALL *map) argument
373 MR_GetSpanBlock(u32 ld, u64 row, u64 *span_blk, struct MR_DRV_RAID_MAP_ALL *map) argument
423 mr_spanset_get_span_block(struct megasas_instance *instance, u32 ld, u64 row, u64 *span_blk, struct MR_DRV_RAID_MAP_ALL *map) argument
486 get_row_from_strip(struct megasas_instance *instance, u32 ld, u64 strip, struct MR_DRV_RAID_MAP_ALL *map) argument
543 get_strip_from_row(struct megasas_instance *instance, u32 ld, u64 row, struct MR_DRV_RAID_MAP_ALL *map) argument
604 get_arm_from_strip(struct megasas_instance *instance, u32 ld, u64 strip, struct MR_DRV_RAID_MAP_ALL *map) argument
648 get_arm(struct megasas_instance *instance, u32 ld, u8 span, u64 stripe, struct MR_DRV_RAID_MAP_ALL *map) argument
690 mr_spanset_get_phy_params(struct megasas_instance *instance, u32 ld, u64 stripRow, u16 stripRef, struct IO_REQUEST_INFO *io_info, struct RAID_CONTEXT *pRAID_Context, struct MR_DRV_RAID_MAP_ALL *map) argument
791 MR_GetPhyParams(struct megasas_instance *instance, u32 ld, u64 stripRow, u16 stripRef, struct IO_REQUEST_INFO *io_info, struct RAID_CONTEXT *pRAID_Context, struct MR_DRV_RAID_MAP_ALL *map) argument
902 mr_get_phy_params_r56_rmw(struct megasas_instance *instance, u32 ld, u64 stripNo, struct IO_REQUEST_INFO *io_info, struct RAID_CONTEXT_G35 *pRAID_Context, struct MR_DRV_RAID_MAP_ALL *map) argument
971 MR_BuildRaidContext(struct megasas_instance *instance, struct IO_REQUEST_INFO *io_info, struct RAID_CONTEXT *pRAID_Context, struct MR_DRV_RAID_MAP_ALL *map, u8 **raidLUN) argument
1220 mr_update_span_set(struct MR_DRV_RAID_MAP_ALL *map, PLD_SPAN_INFO ldSpanInfo) argument
[all...]
/linux-master/kernel/bpf/
H A Ddevmap.c5 /* Devmaps primary use is as a backend map for XDP BPF helper call
30 * unregister notifier must search for net devices in the map structure that
36 * possible that the initially referenced dev is no longer in the map. As the
37 * notifier hook walks the map we know that new dev references can not be
41 * The devmap_hash type is a map type which interprets keys as ifindexes and
75 struct bpf_map map; member in struct:bpf_dtab
130 bpf_map_init_from_attr(&dtab->map, attr);
136 if (dtab->map.max_entries > 1UL << 31)
139 dtab->n_buckets = roundup_pow_of_two(dtab->map.max_entries);
142 dtab->map
180 dev_map_free(struct bpf_map *map) argument
243 dev_map_get_next_key(struct bpf_map *map, void *key, void *next_key) argument
264 __dev_map_hash_lookup_elem(struct bpf_map *map, u32 key) argument
278 dev_map_hash_get_next_key(struct bpf_map *map, void *key, void *next_key) argument
436 __dev_map_lookup_elem(struct bpf_map *map, u32 key) argument
602 dev_map_enqueue_multi(struct xdp_frame *xdpf, struct net_device *dev_rx, struct bpf_map *map, bool exclude_ingress) argument
718 dev_map_redirect_multi(struct net_device *dev, struct sk_buff *skb, struct bpf_prog *xdp_prog, struct bpf_map *map, bool exclude_ingress) argument
794 dev_map_lookup_elem(struct bpf_map *map, void *key) argument
801 dev_map_hash_lookup_elem(struct bpf_map *map, void *key) argument
819 dev_map_delete_elem(struct bpf_map *map, void *key) argument
836 dev_map_hash_delete_elem(struct bpf_map *map, void *key) argument
906 __dev_map_update_elem(struct net *net, struct bpf_map *map, void *key, void *value, u64 map_flags) argument
948 dev_map_update_elem(struct bpf_map *map, void *key, void *value, u64 map_flags) argument
955 __dev_map_hash_update_elem(struct net *net, struct bpf_map *map, void *key, void *value, u64 map_flags) argument
1008 dev_map_hash_update_elem(struct bpf_map *map, void *key, void *value, u64 map_flags) argument
1015 dev_map_redirect(struct bpf_map *map, u64 ifindex, u64 flags) argument
1022 dev_hash_map_redirect(struct bpf_map *map, u64 ifindex, u64 flags) argument
1029 dev_map_mem_usage(const struct bpf_map *map) argument
[all...]
/linux-master/drivers/firmware/efi/
H A Dembedded-firmware.c43 u8 *map; local
46 map = memremap(md->phys_addr, size, MEMREMAP_WB);
47 if (!map) {
53 if (memcmp(map + i, desc->prefix, EFI_EMBEDDED_FW_PREFIX_LEN))
56 sha256(map + i, desc->length, hash);
61 memunmap(map);
69 memunmap(map);
73 fw->data = kmemdup(map + i, desc->length, GFP_KERNEL);
74 memunmap(map);
/linux-master/drivers/gpio/
H A Dgpio-wcd934x.c17 struct regmap *map; member in struct:wcd_gpio_data
27 ret = regmap_read(data->map, WCD_REG_DIR_CTL_OFFSET, &value);
41 return regmap_update_bits(data->map, WCD_REG_DIR_CTL_OFFSET,
50 regmap_update_bits(data->map, WCD_REG_DIR_CTL_OFFSET,
53 return regmap_update_bits(data->map, WCD_REG_VAL_CTL_OFFSET,
63 regmap_read(data->map, WCD_REG_VAL_CTL_OFFSET, &value);
72 regmap_update_bits(data->map, WCD_REG_VAL_CTL_OFFSET,
86 data->map = dev_get_regmap(dev->parent, NULL);
87 if (!data->map) {
/linux-master/kernel/bpf/preload/iterators/
H A Diterators.bpf.c23 struct bpf_map *map; member in struct:bpf_iter__bpf_map
76 __s64 bpf_map_sum_elem_count(struct bpf_map *map) __ksym;
83 struct bpf_map *map = ctx->map; local
85 if (!map)
92 map->id, map->name, map->max_entries,
93 bpf_map_sum_elem_count(map));
/linux-master/arch/mips/cavium-octeon/
H A Dflash_setup.c14 #include <linux/mtd/map.h>
31 static map_word octeon_flash_map_read(struct map_info *map, unsigned long ofs) argument
36 r = inline_map_read(map, ofs);
42 static void octeon_flash_map_write(struct map_info *map, const map_word datum, argument
46 inline_map_write(map, datum, ofs);
50 static void octeon_flash_map_copy_from(struct map_info *map, void *to, argument
54 inline_map_copy_from(map, to, from, len);
58 static void octeon_flash_map_copy_to(struct map_info *map, unsigned long to, argument
62 inline_map_copy_to(map, to, from, len);
/linux-master/drivers/irqchip/
H A Dirq-ingenic-tcu.c17 struct regmap *map; member in struct:ingenic_tcu
29 struct regmap *map = gc->private; local
34 regmap_read(map, TCU_REG_TFR, &irq_reg);
35 regmap_read(map, TCU_REG_TMR, &irq_mask);
52 struct regmap *map = gc->private; local
56 regmap_write(map, ct->regs.ack, mask);
57 regmap_write(map, ct->regs.enable, mask);
66 struct regmap *map = gc->private; local
70 regmap_write(map, ct->regs.disable, mask);
79 struct regmap *map local
94 struct regmap *map; local
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbloom_filter_map.c35 struct bpf_map *map; member in struct:callback_ctx
41 check_elem(struct bpf_map *map, __u32 *key, __u32 *val, argument
46 err = bpf_map_peek_elem(data->map, val);
68 data.map = inner_map;
79 data.map = (struct bpf_map *)&map_bloom;
H A Dtest_map_lookup_percpu_elem.c35 void *map; member in struct:read_percpu_elem_ctx
44 value = bpf_map_lookup_percpu_elem(ctx->map, &key, index);
58 map_ctx.map = &percpu_array_map;
63 map_ctx.map = &percpu_hash_map;
68 map_ctx.map = &percpu_lru_hash_map;

Completed in 603 milliseconds

1234567891011>>