Home
last modified time | relevance | path

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

1234

/openbmc/linux/drivers/mtd/maps/
H A 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 …]
H A 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()
H A 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 = {
H A 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 = {
H A 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()
125 ltq_mtd->map = devm_kzalloc(&pdev->dev, sizeof(struct map_info), in ltq_mtd_probe()
H A 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()
H A 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 = {
H A 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()
H A 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()
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()
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()
259 static void pcmcia_write8(struct map_info *map, map_word d, unsigned long adr) in pcmcia_write8()
272 static void pcmcia_write16(struct map_info *map, map_word d, unsigned long adr) in pcmcia_write16()
[all …]
/openbmc/linux/drivers/infiniband/core/
H A Diwpm_util.c117 if (!map_info) 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()
140 kfree(map_info); in iwpm_create_mapinfo()
177 kfree(map_info); in iwpm_remove_mapinfo()
202 kfree(map_info); in free_hash_bucket()
673 &map_info->local_sockaddr, in iwpm_send_mapinfo()
680 &map_info->mapped_sockaddr, in iwpm_send_mapinfo()
[all …]
/openbmc/linux/include/linux/mtd/
H A 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);
373 static inline map_word map_word_ff(struct map_info *map) in map_word_ff()
[all …]
H A 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 …]
/openbmc/linux/drivers/mtd/lpddr/
H A 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()
H A 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()
439 *map = (struct map_info) { in lpddr2_nvm_probe()
H A Dlpddr_cmds.c33 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()
348 static void put_chip(struct map_info *map, struct flchip *chip) in put_chip()
483 struct map_info *map = mtd->priv; in do_erase_oneblock()
511 struct map_info *map = mtd->priv; in lpddr_read()
535 struct map_info *map = mtd->priv; in lpddr_point()
587 struct map_info *map = mtd->priv; in lpddr_unpoint()
645 struct map_info *map = mtd->priv; in lpddr_writev()
693 struct map_info *map = mtd->priv; in lpddr_erase()
[all …]
/openbmc/linux/drivers/mtd/chips/
H A 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()
H A Dmap_ram.c23 static struct mtd_info *map_ram_probe(struct map_info *map);
35 static struct mtd_info *map_ram_probe(struct map_info *map) in map_ram_probe()
90 struct map_info *map = mtd->priv; in mapram_point()
108 struct map_info *map = mtd->priv; in mapram_read()
117 struct map_info *map = mtd->priv; in mapram_write()
128 struct map_info *map = mtd->priv; in mapram_erase()
H A Dmap_rom.c22 static struct mtd_info *map_rom_probe(struct map_info *map);
35 static unsigned int default_erasesize(struct map_info *map) in default_erasesize()
44 static struct mtd_info *map_rom_probe(struct map_info *map) in map_rom_probe()
76 struct map_info *map = mtd->priv; in maprom_point()
94 struct map_info *map = mtd->priv; in maprom_read()
H A Dcfi_cmdset_0002.c226 struct map_info *map = mtd->priv; in fixup_amd_bootblock()
276 struct map_info *map = mtd->priv; in fixup_use_write_buffers()
292 struct map_info *map = mtd->priv; in fixup_convert_atmel_pri()
330 struct map_info *map = mtd->priv; in fixup_use_erase_chip()
352 struct map_info *map = mtd->priv; in fixup_old_sst_eraseregion()
366 struct map_info *map = mtd->priv; in fixup_sst39vf()
377 struct map_info *map = mtd->priv; in fixup_sst39vf_rev_b()
390 struct map_info *map = mtd->priv; in fixup_sst38vf640x_sectorsize()
406 struct map_info *map = mtd->priv; in fixup_s29gl064n_sectors()
418 struct map_info *map = mtd->priv; in fixup_s29gl032n_sectors()
[all …]
H A Dcfi_util.c40 struct map_info *map, struct cfi_private *cfi) in cfi_build_cmd_addr()
66 map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cfi_private *cfi) in cfi_build_cmd()
132 unsigned long cfi_merge_status(map_word val, struct map_info *map, in cfi_merge_status()
203 struct map_info *map, struct cfi_private *cfi, in cfi_send_gen_cmd()
219 int __xipram cfi_qry_present(struct map_info *map, __u32 base, in cfi_qry_present()
247 int __xipram cfi_qry_mode_on(uint32_t base, struct map_info *map, in cfi_qry_mode_on()
285 void __xipram cfi_qry_mode_off(uint32_t base, struct map_info *map, in cfi_qry_mode_off()
298 __xipram cfi_read_pri(struct map_info *map, __u16 adr, __u16 size, const char* name) in cfi_read_pri()
343 struct map_info *map = mtd->priv; in cfi_fixup()
360 struct map_info *map = mtd->priv; in cfi_varsize_frob()
/openbmc/linux/drivers/media/pci/cobalt/
H A 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()
/openbmc/linux/drivers/mtd/hyperbus/
H A 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()
/openbmc/linux/arch/mips/cavium-octeon/
H A Dflash_setup.c21 static struct map_info flash_map;
31 static map_word octeon_flash_map_read(struct map_info *map, unsigned long ofs) in octeon_flash_map_read()
42 static void octeon_flash_map_write(struct map_info *map, const map_word datum, in octeon_flash_map_write()
50 static void octeon_flash_map_copy_from(struct map_info *map, void *to, in octeon_flash_map_copy_from()
58 static void octeon_flash_map_copy_to(struct map_info *map, unsigned long to, in octeon_flash_map_copy_to()
/openbmc/linux/tools/perf/util/
H A 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()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dmetadata.c19 struct bpf_map_info map_info = {}; in prog_holds_map() local
27 map_info_len = sizeof(map_info); in prog_holds_map()
28 ret = bpf_map_get_info_by_fd(map_fd, &map_info, &map_info_len); in prog_holds_map()
55 if (map_ids[i] == map_info.id) { in prog_holds_map()

1234