Home
last modified time | relevance | path

Searched refs:map_info (Results 1 – 25 of 93) sorted by relevance

1234

/linux-6.1.9/drivers/infiniband/core/
Diwpm_util.c112 struct iwpm_mapping_info *map_info; in iwpm_create_mapinfo() local
116 map_info = kzalloc(sizeof(struct iwpm_mapping_info), GFP_KERNEL); in iwpm_create_mapinfo()
117 if (!map_info) in iwpm_create_mapinfo()
120 memcpy(&map_info->local_sockaddr, local_sockaddr, in iwpm_create_mapinfo()
122 memcpy(&map_info->mapped_sockaddr, mapped_sockaddr, in iwpm_create_mapinfo()
124 map_info->nl_client = nl_client; in iwpm_create_mapinfo()
125 map_info->map_flags = map_flags; in iwpm_create_mapinfo()
130 &map_info->local_sockaddr, in iwpm_create_mapinfo()
131 &map_info->mapped_sockaddr); in iwpm_create_mapinfo()
133 hlist_add_head(&map_info->hlist_node, hash_bucket_head); in iwpm_create_mapinfo()
[all …]
/linux-6.1.9/drivers/mtd/maps/
Ddc21285.c54 static map_word dc21285_read8(struct map_info *map, unsigned long ofs) in dc21285_read8()
61 static map_word dc21285_read16(struct map_info *map, unsigned long ofs) in dc21285_read16()
68 static map_word dc21285_read32(struct map_info *map, unsigned long ofs) in dc21285_read32()
75 static void dc21285_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) in dc21285_copy_from()
80 static void dc21285_write8(struct map_info *map, const map_word d, unsigned long adr) in dc21285_write8()
89 static void dc21285_write16(struct map_info *map, const map_word d, unsigned long adr) in dc21285_write16()
98 static void dc21285_write32(struct map_info *map, const map_word d, unsigned long adr) in dc21285_write32()
105 static void dc21285_copy_to_32(struct map_info *map, unsigned long to, const void *from, ssize_t le… in dc21285_copy_to_32()
117 static void dc21285_copy_to_16(struct map_info *map, unsigned long to, const void *from, ssize_t le… in dc21285_copy_to_16()
129 static void dc21285_copy_to_8(struct map_info *map, unsigned long to, const void *from, ssize_t len) in dc21285_copy_to_8()
[all …]
Dmap_funcs.c13 static map_word __xipram simple_map_read(struct map_info *map, unsigned long ofs) in simple_map_read()
18 static void __xipram simple_map_write(struct map_info *map, const map_word datum, unsigned long ofs) in simple_map_write()
23 static void __xipram simple_map_copy_from(struct map_info *map, void *to, unsigned long from, ssize… in simple_map_copy_from()
28 static void __xipram simple_map_copy_to(struct map_info *map, unsigned long to, const void *from, s… in simple_map_copy_to()
33 void simple_map_init(struct map_info *map) in simple_map_init()
Dtsunami_flash.c18 static inline map_word tsunami_flash_read8(struct map_info *map, unsigned long offset) in tsunami_flash_read8()
25 static void tsunami_flash_write8(struct map_info *map, map_word value, unsigned long offset) in tsunami_flash_write8()
31 struct map_info *map, void *addr, unsigned long offset, ssize_t len) in tsunami_flash_copy_from()
44 struct map_info *map, unsigned long offset, in tsunami_flash_copy_to()
62 static struct map_info tsunami_flash_map = {
Dsbc_gxx.c91 static inline void sbc_gxx_page(struct map_info *map, unsigned long ofs) in sbc_gxx_page()
102 static map_word sbc_gxx_read8(struct map_info *map, unsigned long ofs) in sbc_gxx_read8()
112 static void sbc_gxx_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) in sbc_gxx_copy_from()
129 static void sbc_gxx_write8(struct map_info *map, map_word d, unsigned long adr) in sbc_gxx_write8()
137 static void sbc_gxx_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) in sbc_gxx_copy_to()
154 static struct map_info sbc_gxx_map = {
Dlantiq-flash.c42 struct map_info *map;
48 ltq_read16(struct map_info *map, unsigned long adr) in ltq_read16()
62 ltq_write16(struct map_info *map, map_word d, unsigned long adr) in ltq_write16()
81 ltq_copy_from(struct map_info *map, void *to, in ltq_copy_from()
95 ltq_copy_to(struct map_info *map, unsigned long to, in ltq_copy_to()
127 ltq_mtd->map = devm_kzalloc(&pdev->dev, sizeof(struct map_info), in ltq_mtd_probe()
Dpci.c30 struct map_info map;
37 static map_word mtd_pci_read8(struct map_info *_map, unsigned long ofs) in mtd_pci_read8()
45 static map_word mtd_pci_read32(struct map_info *_map, unsigned long ofs) in mtd_pci_read32()
53 static void mtd_pci_copyfrom(struct map_info *_map, void *to, unsigned long from, ssize_t len) in mtd_pci_copyfrom()
59 static void mtd_pci_write8(struct map_info *_map, map_word val, unsigned long ofs) in mtd_pci_write8()
65 static void mtd_pci_write32(struct map_info *_map, map_word val, unsigned long ofs) in mtd_pci_write32()
71 static void mtd_pci_copyto(struct map_info *_map, unsigned long to, const void *from, ssize_t len) in mtd_pci_copyto()
77 static const struct map_info mtd_pci_map = {
Dphysmap-ixp4xx.c69 static map_word ixp4xx_read16(struct map_info *map, unsigned long ofs) in ixp4xx_read16()
82 static void ixp4xx_copy_from(struct map_info *map, void *to, in ixp4xx_copy_from()
109 static void ixp4xx_write16(struct map_info *map, map_word d, unsigned long adr) in ixp4xx_write16()
116 struct map_info *map) in of_flash_probe_ixp4xx()
Dphysmap-gemini.c81 static map_word __xipram gemini_flash_map_read(struct map_info *map, in gemini_flash_map_read()
93 static void __xipram gemini_flash_map_write(struct map_info *map, in gemini_flash_map_write()
102 static void __xipram gemini_flash_map_copy_from(struct map_info *map, in gemini_flash_map_copy_from()
111 static void __xipram gemini_flash_map_copy_to(struct map_info *map, in gemini_flash_map_copy_to()
122 struct map_info *map) in of_flash_probe_gemini()
Dpcmciamtd.c36 struct map_info pcmcia_map;
83 static void __iomem *remap_window(struct map_info *map, unsigned long to) in remap_window()
108 static map_word pcmcia_read8_remap(struct map_info *map, unsigned long ofs) in pcmcia_read8_remap()
123 static map_word pcmcia_read16_remap(struct map_info *map, unsigned long ofs) in pcmcia_read16_remap()
138 static void pcmcia_copy_from_remap(struct map_info *map, void *to, unsigned long from, ssize_t len) in pcmcia_copy_from_remap()
164 static void pcmcia_write8_remap(struct map_info *map, map_word d, unsigned long adr) in pcmcia_write8_remap()
176 static void pcmcia_write16_remap(struct map_info *map, map_word d, unsigned long adr) in pcmcia_write16_remap()
187 static void pcmcia_copy_to_remap(struct map_info *map, unsigned long to, const void *from, ssize_t … in pcmcia_copy_to_remap()
217 static map_word pcmcia_read8(struct map_info *map, unsigned long ofs) in pcmcia_read8()
232 static map_word pcmcia_read16(struct map_info *map, unsigned long ofs) in pcmcia_read16()
[all …]
/linux-6.1.9/include/linux/mtd/
Dmap.h191 struct map_info { struct
207 map_word (*read)(struct map_info *, unsigned long); argument
208 void (*copy_from)(struct map_info *, void *, unsigned long, ssize_t); argument
210 void (*write)(struct map_info *, const map_word, unsigned long); argument
211 void (*copy_to)(struct map_info *, unsigned long, const void *, ssize_t); argument
222 void (*inval_cache)(struct map_info *, unsigned long, ssize_t); argument
229 void (*set_vpp)(struct map_info *, int); argument
240 struct mtd_info *(*probe)(struct map_info *map); argument
250 struct mtd_info *do_map_probe(const char *name, struct map_info *map);
321 static inline map_word map_word_load(struct map_info *map, const void *ptr) in map_word_load()
[all …]
Dcfi.h281 struct mtd_info *(*cmdset_setup)(struct map_info *);
294 struct map_info *map, struct cfi_private *cfi);
296 map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cfi_private *cfi);
299 unsigned long cfi_merge_status(map_word val, struct map_info *map,
304 struct map_info *map, struct cfi_private *cfi,
307 static inline uint8_t cfi_read_query(struct map_info *map, uint32_t addr) in cfi_read_query()
323 static inline uint16_t cfi_read_query16(struct map_info *map, uint32_t addr) in cfi_read_query16()
341 int __xipram cfi_qry_present(struct map_info *map, __u32 base,
343 int __xipram cfi_qry_mode_on(uint32_t base, struct map_info *map,
345 void __xipram cfi_qry_mode_off(uint32_t base, struct map_info *map,
[all …]
/linux-6.1.9/drivers/mtd/lpddr/
Dqinfo_probe.c20 static int lpddr_chip_setup(struct map_info *map, struct lpddr_private *lpddr);
21 struct mtd_info *lpddr_probe(struct map_info *map);
22 static struct lpddr_private *lpddr_probe_chip(struct map_info *map);
23 static int lpddr_pfow_present(struct map_info *map,
44 static long lpddr_get_qinforec_pos(struct map_info *map, char *id_str) in lpddr_get_qinforec_pos()
63 static uint16_t lpddr_info_query(struct map_info *map, char *id_str) in lpddr_info_query()
91 static int lpddr_pfow_present(struct map_info *map, struct lpddr_private *lpddr) in lpddr_pfow_present()
120 static int lpddr_chip_setup(struct map_info *map, struct lpddr_private *lpddr) in lpddr_chip_setup()
145 static struct lpddr_private *lpddr_probe_chip(struct map_info *map) in lpddr_probe_chip()
184 struct mtd_info *lpddr_probe(struct map_info *map) in lpddr_probe()
Dlpddr2_nvm.c120 static inline u_long ow_reg_add(struct map_info *map, u_long offset) in ow_reg_add()
136 static inline void ow_enable(struct map_info *map) in ow_enable()
151 static inline void ow_disable(struct map_info *map) in ow_disable()
163 static int lpddr2_nvm_do_op(struct map_info *map, u_long cmd_code, in lpddr2_nvm_do_op()
236 struct map_info *map = mtd->priv; in lpddr2_nvm_do_block_op()
263 static int lpddr2_nvm_pfow_present(struct map_info *map) in lpddr2_nvm_pfow_present()
301 struct map_info *map = mtd->priv; in lpddr2_nvm_read()
319 struct map_info *map = mtd->priv; in lpddr2_nvm_write()
412 struct map_info *map; in lpddr2_nvm_probe()
440 *map = (struct map_info) { in lpddr2_nvm_probe()
Dlpddr_cmds.c31 static int get_chip(struct map_info *map, struct flchip *chip, int mode);
32 static int chip_ready(struct map_info *map, struct flchip *chip, int mode);
33 static void put_chip(struct map_info *map, struct flchip *chip);
35 struct mtd_info *lpddr_cmdset(struct map_info *map) in lpddr_cmdset()
125 static int wait_for_ready(struct map_info *map, struct flchip *chip, in wait_for_ready()
198 static int get_chip(struct map_info *map, struct flchip *chip, int mode) in get_chip()
294 static int chip_ready(struct map_info *map, struct flchip *chip, int mode) in chip_ready()
348 static void put_chip(struct map_info *map, struct flchip *chip) in put_chip()
403 static int do_write_buffer(struct map_info *map, struct flchip *chip, in do_write_buffer()
486 struct map_info *map = mtd->priv; in do_erase_oneblock()
[all …]
/linux-6.1.9/drivers/mtd/chips/
Dgen_probe.c15 static struct mtd_info *check_cmd_set(struct map_info *, int);
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) in mtd_do_chip_probe()
59 static struct cfi_private *genprobe_ident_chips(struct map_info *map, struct chip_probe *cp) in genprobe_ident_chips()
164 static int genprobe_new_chip(struct map_info *map, struct chip_probe *cp, in genprobe_new_chip()
192 typedef struct mtd_info *cfi_cmdset_fn_t(struct map_info *, int);
198 static inline struct mtd_info *cfi_cmdset_unknown(struct map_info *map, in cfi_cmdset_unknown()
232 static struct mtd_info *check_cmd_set(struct map_info *map, int primary) in check_cmd_set()
Dmap_ram.c22 static struct mtd_info *map_ram_probe(struct map_info *map);
34 static struct mtd_info *map_ram_probe(struct map_info *map) in map_ram_probe()
89 struct map_info *map = mtd->priv; in mapram_point()
107 struct map_info *map = mtd->priv; in mapram_read()
116 struct map_info *map = mtd->priv; in mapram_write()
127 struct map_info *map = mtd->priv; in mapram_erase()
Dcfi_cmdset_0002.c96 struct mtd_info *cfi_cmdset_0002(struct map_info *, int);
99 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
100 static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adr);
131 static int cfi_check_err_status(struct map_info *map, struct flchip *chip, in cfi_check_err_status()
228 struct map_info *map = mtd->priv; in fixup_amd_bootblock()
278 struct map_info *map = mtd->priv; in fixup_use_write_buffers()
294 struct map_info *map = mtd->priv; in fixup_convert_atmel_pri()
332 struct map_info *map = mtd->priv; in fixup_use_erase_chip()
354 struct map_info *map = mtd->priv; in fixup_old_sst_eraseregion()
368 struct map_info *map = mtd->priv; in fixup_sst39vf()
[all …]
Dmap_rom.c21 static struct mtd_info *map_rom_probe(struct map_info *map);
34 static unsigned int default_erasesize(struct map_info *map) in default_erasesize()
43 static struct mtd_info *map_rom_probe(struct map_info *map) in map_rom_probe()
75 struct map_info *map = mtd->priv; in maprom_point()
93 struct map_info *map = mtd->priv; in maprom_read()
Dcfi_util.c41 struct map_info *map, struct cfi_private *cfi) in cfi_build_cmd_addr()
67 map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cfi_private *cfi) in cfi_build_cmd()
133 unsigned long cfi_merge_status(map_word val, struct map_info *map, in cfi_merge_status()
204 struct map_info *map, struct cfi_private *cfi, in cfi_send_gen_cmd()
220 int __xipram cfi_qry_present(struct map_info *map, __u32 base, in cfi_qry_present()
248 int __xipram cfi_qry_mode_on(uint32_t base, struct map_info *map, in cfi_qry_mode_on()
286 void __xipram cfi_qry_mode_off(uint32_t base, struct map_info *map, in cfi_qry_mode_off()
299 __xipram cfi_read_pri(struct map_info *map, __u16 adr, __u16 size, const char* name) in cfi_read_pri()
344 struct map_info *map = mtd->priv; in cfi_fixup()
361 struct map_info *map = mtd->priv; in cfi_varsize_frob()
Dcfi_cmdset_0001.c89 struct mtd_info *cfi_cmdset_0001(struct map_info *, int);
98 static int chip_ready (struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
99 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
100 static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adr);
173 struct map_info *map = mtd->priv; in fixup_convert_atmel_pri()
213 struct map_info *map = mtd->priv; in fixup_at49bv640dx_lock()
225 struct map_info *map = mtd->priv; in fixup_intel_strataflash()
238 struct map_info *map = mtd->priv; in fixup_no_write_suspend()
251 struct map_info *map = mtd->priv; in fixup_st_m28w320ct()
260 struct map_info *map = mtd->priv; in fixup_st_m28w320cb()
[all …]
/linux-6.1.9/drivers/media/pci/cobalt/
Dcobalt-flash.c18 static struct map_info cobalt_flash_map = {
25 static map_word flash_read16(struct map_info *map, unsigned long offset) in flash_read16()
38 static void flash_write16(struct map_info *map, const map_word datum, in flash_write16()
46 static void flash_copy_from(struct map_info *map, void *to, in flash_copy_from()
64 static void flash_copy_to(struct map_info *map, unsigned long to, in flash_copy_to()
87 struct map_info *map = &cobalt_flash_map; in cobalt_flash_probe()
/linux-6.1.9/drivers/mtd/hyperbus/
Dhyperbus-core.c15 static struct hyperbus_device *map_to_hbdev(struct map_info *map) in map_to_hbdev()
20 static map_word hyperbus_read16(struct map_info *map, unsigned long addr) in hyperbus_read16()
31 static void hyperbus_write16(struct map_info *map, map_word d, in hyperbus_write16()
40 static void hyperbus_copy_from(struct map_info *map, void *to, in hyperbus_copy_from()
49 static void hyperbus_copy_to(struct map_info *map, unsigned long to, in hyperbus_copy_to()
63 struct map_info *map; in hyperbus_register_device()
/linux-6.1.9/arch/mips/cavium-octeon/
Dflash_setup.c20 static struct map_info flash_map;
30 static map_word octeon_flash_map_read(struct map_info *map, unsigned long ofs) in octeon_flash_map_read()
41 static void octeon_flash_map_write(struct map_info *map, const map_word datum, in octeon_flash_map_write()
49 static void octeon_flash_map_copy_from(struct map_info *map, void *to, in octeon_flash_map_copy_from()
57 static void octeon_flash_map_copy_to(struct map_info *map, unsigned long to, in octeon_flash_map_copy_to()
/linux-6.1.9/tools/perf/util/
Dbpf_counter.h115 struct bpf_map_info map_info = { .id = 0, }; in bpf_map_get_id() local
116 __u32 map_info_len = sizeof(map_info); in bpf_map_get_id()
118 bpf_obj_get_info_by_fd(fd, &map_info, &map_info_len); in bpf_map_get_id()
119 return map_info.id; in bpf_map_get_id()

1234