Searched refs:map_info (Results 1 - 72 of 72) sorted by relevance

/linux-4.1.27/drivers/mtd/maps/
H A Dmap_funcs.c12 static map_word __xipram simple_map_read(struct map_info *map, unsigned long ofs) simple_map_read()
17 static void __xipram simple_map_write(struct map_info *map, const map_word datum, unsigned long ofs) simple_map_write()
22 static void __xipram simple_map_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) simple_map_copy_from()
27 static void __xipram simple_map_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) simple_map_copy_to()
32 void simple_map_init(struct map_info *map) simple_map_init()
H A Dtsunami_flash.c17 static inline map_word tsunami_flash_read8(struct map_info *map, unsigned long offset) tsunami_flash_read8()
24 static void tsunami_flash_write8(struct map_info *map, map_word value, unsigned long offset) tsunami_flash_write8()
30 struct map_info *map, void *addr, unsigned long offset, ssize_t len) tsunami_flash_copy_from()
43 struct map_info *map, unsigned long offset, tsunami_flash_copy_to()
61 static struct map_info tsunami_flash_map = {
H A Ddc21285.c54 static map_word dc21285_read8(struct map_info *map, unsigned long ofs) dc21285_read8()
61 static map_word dc21285_read16(struct map_info *map, unsigned long ofs) dc21285_read16()
68 static map_word dc21285_read32(struct map_info *map, unsigned long ofs) dc21285_read32()
75 static void dc21285_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) dc21285_copy_from()
80 static void dc21285_write8(struct map_info *map, const map_word d, unsigned long adr) dc21285_write8()
89 static void dc21285_write16(struct map_info *map, const map_word d, unsigned long adr) dc21285_write16()
98 static void dc21285_write32(struct map_info *map, const map_word d, unsigned long adr) dc21285_write32()
105 static void dc21285_copy_to_32(struct map_info *map, unsigned long to, const void *from, ssize_t len) dc21285_copy_to_32()
117 static void dc21285_copy_to_16(struct map_info *map, unsigned long to, const void *from, ssize_t len) dc21285_copy_to_16()
129 static void dc21285_copy_to_8(struct map_info *map, unsigned long to, const void *from, ssize_t len) dc21285_copy_to_8()
139 static struct map_info dc21285_map = {
H A Duclinux.c36 extern struct map_info uclinux_ram_map;
38 struct map_info uclinux_ram_map = {
61 struct map_info *map = mtd->priv; uclinux_point()
74 struct map_info *mapp; uclinux_mtd_init()
H A Dlantiq-flash.c44 struct map_info *map;
51 ltq_read16(struct map_info *map, unsigned long adr) ltq_read16()
65 ltq_write16(struct map_info *map, map_word d, unsigned long adr) ltq_write16()
84 ltq_copy_from(struct map_info *map, void *to, ltq_copy_from()
98 ltq_copy_to(struct map_info *map, unsigned long to, ltq_copy_to()
137 ltq_mtd->map = devm_kzalloc(&pdev->dev, sizeof(struct map_info), ltq_mtd_probe()
H A Dpci.c33 struct map_info map;
40 static map_word mtd_pci_read8(struct map_info *_map, unsigned long ofs) mtd_pci_read8()
48 static map_word mtd_pci_read32(struct map_info *_map, unsigned long ofs) mtd_pci_read32()
56 static void mtd_pci_copyfrom(struct map_info *_map, void *to, unsigned long from, ssize_t len) mtd_pci_copyfrom()
62 static void mtd_pci_write8(struct map_info *_map, map_word val, unsigned long ofs) mtd_pci_write8()
68 static void mtd_pci_write32(struct map_info *_map, map_word val, unsigned long ofs) mtd_pci_write32()
74 static void mtd_pci_copyto(struct map_info *_map, unsigned long to, const void *from, ssize_t len) mtd_pci_copyto()
80 static const struct map_info mtd_pci_map = {
H A Dsolutionengine.c22 struct map_info soleng_eprom_map = {
28 struct map_info soleng_flash_map = {
H A Dbfin-async-flash.c39 struct map_info map;
70 static map_word bfin_flash_read(struct map_info *map, unsigned long ofs) bfin_flash_read()
86 static void bfin_flash_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) bfin_flash_copy_from()
97 static void bfin_flash_write(struct map_info *map, map_word d1, unsigned long ofs) bfin_flash_write()
112 static void bfin_flash_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) bfin_flash_copy_to()
H A Dlatch-addr-flash.c26 struct map_info map;
38 static map_word lf_read(struct map_info *map, unsigned long ofs) lf_read()
55 static void lf_write(struct map_info *map, map_word datum, unsigned long ofs) lf_write()
69 static void lf_copy_from(struct map_info *map, void *to, lf_copy_from()
H A Dsbc_gxx.c103 static inline void sbc_gxx_page(struct map_info *map, unsigned long ofs) sbc_gxx_page()
114 static map_word sbc_gxx_read8(struct map_info *map, unsigned long ofs) sbc_gxx_read8()
124 static void sbc_gxx_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) sbc_gxx_copy_from()
141 static void sbc_gxx_write8(struct map_info *map, map_word d, unsigned long adr) sbc_gxx_write8()
149 static void sbc_gxx_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) sbc_gxx_copy_to()
166 static struct map_info sbc_gxx_map = {
H A Dpcmciamtd.c36 struct map_info pcmcia_map;
83 static caddr_t remap_window(struct map_info *map, unsigned long to) remap_window()
108 static map_word pcmcia_read8_remap(struct map_info *map, unsigned long ofs) pcmcia_read8_remap()
123 static map_word pcmcia_read16_remap(struct map_info *map, unsigned long ofs) pcmcia_read16_remap()
138 static void pcmcia_copy_from_remap(struct map_info *map, void *to, unsigned long from, ssize_t len) pcmcia_copy_from_remap()
164 static void pcmcia_write8_remap(struct map_info *map, map_word d, unsigned long adr) pcmcia_write8_remap()
176 static void pcmcia_write16_remap(struct map_info *map, map_word d, unsigned long adr) pcmcia_write16_remap()
187 static void pcmcia_copy_to_remap(struct map_info *map, unsigned long to, const void *from, ssize_t len) pcmcia_copy_to_remap()
217 static map_word pcmcia_read8(struct map_info *map, unsigned long ofs) pcmcia_read8()
232 static map_word pcmcia_read16(struct map_info *map, unsigned long ofs) pcmcia_read16()
247 static void pcmcia_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) pcmcia_copy_from()
259 static void pcmcia_write8(struct map_info *map, map_word d, unsigned long adr) pcmcia_write8()
272 static void pcmcia_write16(struct map_info *map, map_word d, unsigned long adr) pcmcia_write16()
285 static void pcmcia_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) pcmcia_copy_to()
299 static void pcmciamtd_set_vpp(struct map_info *map, int on) pcmciamtd_set_vpp()
H A Dgpio-addr-flash.c45 struct map_info map;
82 static map_word gf_read(struct map_info *map, unsigned long ofs) gf_read()
105 static void gf_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) gf_copy_from()
131 static void gf_write(struct map_info *map, map_word d1, unsigned long ofs) gf_write()
151 static void gf_copy_to(struct map_info *map, unsigned long to, gf_copy_to()
H A Dixp4xx.c88 static map_word ixp4xx_read16(struct map_info *map, unsigned long ofs) ixp4xx_read16()
100 static void ixp4xx_copy_from(struct map_info *map, void *to, ixp4xx_copy_from()
131 static void ixp4xx_probe_write16(struct map_info *map, map_word d, unsigned long adr) ixp4xx_probe_write16()
140 static void ixp4xx_write16(struct map_info *map, map_word d, unsigned long adr) ixp4xx_write16()
147 struct map_info map;
H A Dl440gx.c32 static void l440gx_set_vpp(struct map_info *map, int vpp) l440gx_set_vpp()
47 static struct map_info l440gx_map = {
H A Dpxa2xx-flash.c28 static void pxa2xx_map_inval_cache(struct map_info *map, unsigned long from, pxa2xx_map_inval_cache()
44 struct map_info map;
H A Dsun_uflash.c40 struct map_info map; /* mtd map info */
44 struct map_info uflash_map_templ = {
H A Dimpa7.c34 static struct map_info impa7_map[NUM_FLASHBANKS] = {
H A Dsa1100-flash.c28 struct map_info map;
41 static void sa1100_set_vpp(struct map_info *map, int on) sa1100_set_vpp()
173 * Allocate the map_info structs in one go. sa1100_setup_mtd()
H A Dcfi_flagadm.c58 static struct map_info flagadm_map = {
H A Drbtx4939-flash.c26 struct map_info map;
H A Dts5500_flash.c39 static struct map_info ts5500_map = {
H A Dintel_vr_nor.c44 struct map_info map;
115 * Initialize the map_info structure and map the flash.
H A Dphysmap.c29 struct map_info map[MAX_RESOURCES];
63 static void physmap_set_vpp(struct map_info *map, int state) physmap_set_vpp()
H A Dpmcmsp-flash.c47 static struct map_info *msp_maps;
78 msp_flash = kmalloc(fcnt * sizeof(struct map_info *), GFP_KERNEL); init_msp_flash()
H A Dscb2_flash.c64 static struct map_info scb2_map = {
75 struct map_info *map = mtd->priv; scb2_fixup_mtd()
H A Dnetsc520.c82 static struct map_info netsc520_map = {
H A Dscx200_docflash.c71 static struct map_info scx200_docflash_map = {
H A Dnettel.c66 static struct map_info nettel_intel_map = {
104 static struct map_info nettel_amd_map = {
H A Dphysmap_of.c30 struct map_info map;
78 struct map_info *map) obsolete_probe()
H A Dplat-ram.c45 struct map_info map;
H A Damd76xrom.c41 struct map_info map;
H A Dck804xrom.c45 struct map_info map;
H A Dichxrom.c46 struct map_info map;
H A Dsc520cdp.c86 static struct map_info sc520cdp_map[] = {
H A Desb2rom.c107 struct map_info map;
/linux-4.1.27/include/linux/mtd/
H A Dmap.h190 /* The map stuff is very simple. You fill in your struct map_info with
201 The mtd->priv field will point to the struct map_info, and any further
208 struct map_info { struct
224 map_word (*read)(struct map_info *, unsigned long);
225 void (*copy_from)(struct map_info *, void *, unsigned long, ssize_t);
227 void (*write)(struct map_info *, const map_word, unsigned long);
228 void (*copy_to)(struct map_info *, unsigned long, const void *, ssize_t);
239 void (*inval_cache)(struct map_info *, unsigned long, ssize_t);
243 void (*set_vpp)(struct map_info *, int);
254 struct mtd_info *(*probe)(struct map_info *map);
264 struct mtd_info *do_map_probe(const char *name, struct map_info *map);
274 static inline int map_word_equal(struct map_info *map, map_word val1, map_word val2) map_word_equal()
286 static inline map_word map_word_and(struct map_info *map, map_word val1, map_word val2) map_word_and()
297 static inline map_word map_word_clr(struct map_info *map, map_word val1, map_word val2) map_word_clr()
308 static inline map_word map_word_or(struct map_info *map, map_word val1, map_word val2) map_word_or()
319 static inline int map_word_andequal(struct map_info *map, map_word val1, map_word val2, map_word val3) map_word_andequal()
331 static inline int map_word_bitsset(struct map_info *map, map_word val1, map_word val2) map_word_bitsset()
343 static inline map_word map_word_load(struct map_info *map, const void *ptr) map_word_load()
365 static inline map_word map_word_load_partial(struct map_info *map, map_word orig, const unsigned char *buf, int start, int len) map_word_load_partial()
395 static inline map_word map_word_ff(struct map_info *map) map_word_ff()
411 static inline map_word inline_map_read(struct map_info *map, unsigned long ofs) inline_map_read()
433 static inline void inline_map_write(struct map_info *map, const map_word datum, unsigned long ofs) inline_map_write()
452 static inline void inline_map_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) inline_map_copy_from()
460 static inline void inline_map_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) inline_map_copy_to()
471 extern void simple_map_init(struct map_info *);
H A Dlatch-addr-flash.h13 struct map_info;
H A Dgen_probe.h31 int (*probe_chip)(struct map_info *map, __u32 base,
35 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp);
H A Dcfi.h288 struct mtd_info *(*cmdset_setup)(struct map_info *);
303 struct map_info *map, struct cfi_private *cfi) cfi_build_cmd_addr()
328 static inline map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cfi_private *cfi) cfi_build_cmd()
392 static inline unsigned long cfi_merge_status(map_word val, struct map_info *map, cfi_merge_status()
462 struct map_info *map, struct cfi_private *cfi, cfi_send_gen_cmd()
477 static inline uint8_t cfi_read_query(struct map_info *map, uint32_t addr) cfi_read_query()
493 static inline uint16_t cfi_read_query16(struct map_info *map, uint32_t addr) cfi_read_query16()
519 int __xipram cfi_qry_present(struct map_info *map, __u32 base,
521 int __xipram cfi_qry_mode_on(uint32_t base, struct map_info *map,
523 void __xipram cfi_qry_mode_off(uint32_t base, struct map_info *map,
526 struct cfi_extquery *cfi_read_pri(struct map_info *map, uint16_t adr, uint16_t size,
557 typedef int (*varsize_frob_t)(struct map_info *map, struct flchip *chip,
H A Dphysmap.h21 struct map_info;
H A Dqinfo.h78 static inline map_word lpddr_build_cmd(u_long cmd, struct map_info *map) lpddr_build_cmd()
88 struct mtd_info *lpddr_cmdset(struct map_info *);
H A Dpfow.h99 static inline void send_pfow_command(struct map_info *map, send_pfow_command()
/linux-4.1.27/drivers/mtd/chips/
H A Dmap_ram.c22 static struct mtd_info *map_ram_probe(struct map_info *map);
33 static struct mtd_info *map_ram_probe(struct map_info *map) map_ram_probe()
95 struct map_info *map = mtd->priv; mapram_unmapped_area()
101 struct map_info *map = mtd->priv; mapram_read()
110 struct map_info *map = mtd->priv; mapram_write()
121 struct map_info *map = mtd->priv; mapram_erase()
H A Dmap_rom.c21 static struct mtd_info *map_rom_probe(struct map_info *map);
32 static unsigned int default_erasesize(struct map_info *map) default_erasesize()
41 static struct mtd_info *map_rom_probe(struct map_info *map) map_rom_probe()
79 struct map_info *map = mtd->priv; maprom_unmapped_area()
85 struct map_info *map = mtd->priv; maprom_read()
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) mtd_do_chip_probe()
59 static struct cfi_private *genprobe_ident_chips(struct map_info *map, struct chip_probe *cp) genprobe_ident_chips()
165 static int genprobe_new_chip(struct map_info *map, struct chip_probe *cp, genprobe_new_chip()
193 typedef struct mtd_info *cfi_cmdset_fn_t(struct map_info *, int);
199 static inline struct mtd_info *cfi_cmdset_unknown(struct map_info *map, cfi_cmdset_unknown()
230 static struct mtd_info *check_cmd_set(struct map_info *map, int primary) check_cmd_set()
H A Dchipreg.c57 struct mtd_info *do_map_probe(const char *name, struct map_info *map) do_map_probe()
87 struct map_info *map = mtd->priv; map_destroy()
H A Dmap_absent.c33 static struct mtd_info *map_absent_probe(struct map_info *map);
44 static struct mtd_info *map_absent_probe(struct map_info *map) map_absent_probe()
H A Dcfi_util.c26 int __xipram cfi_qry_present(struct map_info *map, __u32 base, cfi_qry_present()
54 int __xipram cfi_qry_mode_on(uint32_t base, struct map_info *map, cfi_qry_mode_on()
92 void __xipram cfi_qry_mode_off(uint32_t base, struct map_info *map, cfi_qry_mode_off()
105 __xipram cfi_read_pri(struct map_info *map, __u16 adr, __u16 size, const char* name) cfi_read_pri()
150 struct map_info *map = mtd->priv; cfi_fixup()
167 struct map_info *map = mtd->priv; cfi_varsize_frob()
H A Dcfi_cmdset_0002.c79 struct mtd_info *cfi_cmdset_0002(struct map_info *, int);
82 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
83 static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adr);
158 struct map_info *map = mtd->priv; fixup_amd_bootblock()
207 struct map_info *map = mtd->priv; fixup_use_write_buffers()
218 struct map_info *map = mtd->priv; fixup_convert_atmel_pri()
256 struct map_info *map = mtd->priv; fixup_use_erase_chip()
278 struct map_info *map = mtd->priv; fixup_old_sst_eraseregion()
292 struct map_info *map = mtd->priv; fixup_sst39vf()
303 struct map_info *map = mtd->priv; fixup_sst39vf_rev_b()
316 struct map_info *map = mtd->priv; fixup_sst38vf640x_sectorsize()
331 struct map_info *map = mtd->priv; fixup_s29gl064n_sectors()
342 struct map_info *map = mtd->priv; fixup_s29gl032n_sectors()
353 struct map_info *map = mtd->priv; fixup_s29ns512p_sectors()
469 static void cfi_fixup_m29ew_erase_suspend(struct map_info *map, cfi_fixup_m29ew_erase_suspend()
512 struct mtd_info *cfi_cmdset_0002(struct map_info *map, int primary) cfi_cmdset_0002()
673 struct mtd_info *cfi_cmdset_0006(struct map_info *map, int primary) __attribute__((alias("cfi_cmdset_0002")));
674 struct mtd_info *cfi_cmdset_0701(struct map_info *map, int primary) __attribute__((alias("cfi_cmdset_0002")));
681 struct map_info *map = mtd->priv; cfi_amdstd_setup()
742 static int __xipram chip_ready(struct map_info *map, unsigned long addr) chip_ready()
767 static int __xipram chip_good(struct map_info *map, unsigned long addr, map_word expected) chip_good()
778 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode) get_chip()
882 static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adr) put_chip()
923 static void xip_disable(struct map_info *map, struct flchip *chip, xip_disable()
931 static void __xipram xip_enable(struct map_info *map, struct flchip *chip, xip_enable()
958 static void __xipram xip_udelay(struct map_info *map, struct flchip *chip, xip_udelay()
1105 static inline int do_read_onechip(struct map_info *map, struct flchip *chip, loff_t adr, size_t len, u_char *buf) do_read_onechip()
1139 struct map_info *map = mtd->priv; cfi_amdstd_read()
1174 typedef int (*otp_op_t)(struct map_info *map, struct flchip *chip,
1177 static inline void otp_enter(struct map_info *map, struct flchip *chip, otp_enter()
1192 static inline void otp_exit(struct map_info *map, struct flchip *chip, otp_exit()
1209 static inline int do_read_secsi_onechip(struct map_info *map, do_read_secsi_onechip()
1249 struct map_info *map = mtd->priv; cfi_amdstd_secsi_read()
1286 static int __xipram do_write_oneword(struct map_info *map, struct flchip *chip,
1290 static int do_otp_write(struct map_info *map, struct flchip *chip, loff_t adr, do_otp_write()
1320 static int do_otp_lock(struct map_info *map, struct flchip *chip, loff_t adr, do_otp_lock()
1388 struct map_info *map = mtd->priv; cfi_amdstd_otp_walk()
1548 static int __xipram do_write_oneword(struct map_info *map, struct flchip *chip, do_write_oneword()
1668 struct map_info *map = mtd->priv; cfi_amdstd_write_words()
1792 static int __xipram do_write_buffer(struct map_info *map, struct flchip *chip, do_write_buffer()
1923 struct map_info *map = mtd->priv; cfi_amdstd_write_buffers()
2003 static int cfi_amdstd_panic_wait(struct map_info *map, struct flchip *chip, cfi_amdstd_panic_wait()
2055 static int do_panic_write_oneword(struct map_info *map, struct flchip *chip, do_panic_write_oneword()
2133 struct map_info *map = mtd->priv; cfi_amdstd_panic_write()
2234 static int __xipram do_erase_chip(struct map_info *map, struct flchip *chip) do_erase_chip()
2324 static int __xipram do_erase_oneblock(struct map_info *map, struct flchip *chip, unsigned long adr, int len, void *thunk) do_erase_oneblock()
2435 struct map_info *map = mtd->priv; cfi_amdstd_erase_chip()
2455 static int do_atmel_lock(struct map_info *map, struct flchip *chip, do_atmel_lock()
2490 static int do_atmel_unlock(struct map_info *map, struct flchip *chip, do_atmel_unlock()
2543 static int __maybe_unused do_ppb_xxlock(struct map_info *map, do_ppb_xxlock()
2626 struct map_info *map = mtd->priv; cfi_ppb_unlock()
2729 struct map_info *map = mtd->priv; cfi_amdstd_sync()
2790 struct map_info *map = mtd->priv; cfi_amdstd_suspend()
2844 struct map_info *map = mtd->priv; cfi_amdstd_resume()
2876 struct map_info *map = mtd->priv; cfi_amdstd_reset()
2914 struct map_info *map = mtd->priv; cfi_amdstd_destroy()
H A Dcfi_cmdset_0001.c87 struct mtd_info *cfi_cmdset_0001(struct map_info *, int);
96 static int chip_ready (struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
97 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode);
98 static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adr);
171 struct map_info *map = mtd->priv; fixup_convert_atmel_pri()
211 struct map_info *map = mtd->priv; fixup_at49bv640dx_lock()
223 struct map_info *map = mtd->priv; fixup_intel_strataflash()
236 struct map_info *map = mtd->priv; fixup_no_write_suspend()
249 struct map_info *map = mtd->priv; fixup_st_m28w320ct()
258 struct map_info *map = mtd->priv; fixup_st_m28w320cb()
278 struct map_info *map = mtd->priv; fixup_LH28F640BF()
298 struct map_info *map = mtd->priv; fixup_use_point()
307 struct map_info *map = mtd->priv; fixup_use_write_buffers()
321 struct map_info *map = mtd->priv; fixup_unlock_powerup_lock()
379 read_pri_intelext(struct map_info *map, __u16 adr) read_pri_intelext()
467 struct mtd_info *cfi_cmdset_0001(struct map_info *map, int primary) cfi_cmdset_0001()
580 struct mtd_info *cfi_cmdset_0003(struct map_info *map, int primary) __attribute__((alias("cfi_cmdset_0001")));
581 struct mtd_info *cfi_cmdset_0200(struct map_info *map, int primary) __attribute__((alias("cfi_cmdset_0001")));
588 struct map_info *map = mtd->priv; cfi_intelext_setup()
662 struct map_info *map = mtd->priv; cfi_intelext_partition_fixup()
784 static int chip_ready (struct map_info *map, struct flchip *chip, unsigned long adr, int mode) chip_ready()
892 static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode) get_chip()
988 static void put_chip(struct map_info *map, struct flchip *chip, unsigned long adr) put_chip()
1072 static void xip_disable(struct map_info *map, struct flchip *chip, xip_disable()
1080 static void __xipram xip_enable(struct map_info *map, struct flchip *chip, xip_enable()
1107 struct map_info *map, struct flchip *chip, xip_wait_for_operation()
1238 struct map_info *map, struct flchip *chip, inval_cache_and_wait_for_operation()
1321 static int do_point_onechip (struct map_info *map, struct flchip *chip, loff_t adr, size_t len) do_point_onechip()
1351 struct map_info *map = mtd->priv; cfi_intelext_point()
1403 struct map_info *map = mtd->priv; cfi_intelext_unpoint()
1448 static inline int do_read_onechip(struct map_info *map, struct flchip *chip, loff_t adr, size_t len, u_char *buf) do_read_onechip()
1482 struct map_info *map = mtd->priv; cfi_intelext_read()
1517 static int __xipram do_write_oneword(struct map_info *map, struct flchip *chip, do_write_oneword()
1594 struct map_info *map = mtd->priv; cfi_intelext_write_words()
1671 static int __xipram do_write_buffer(struct map_info *map, struct flchip *chip, do_write_buffer()
1840 struct map_info *map = mtd->priv; cfi_intelext_writev()
1900 static int __xipram do_erase_oneblock(struct map_info *map, struct flchip *chip, do_erase_oneblock()
2008 struct map_info *map = mtd->priv; cfi_intelext_sync()
2047 static int __xipram do_getlockstatus_oneblock(struct map_info *map, do_getlockstatus_oneblock()
2065 static int __xipram do_printlockstatus_oneblock(struct map_info *map, do_printlockstatus_oneblock()
2079 static int __xipram do_xxlock_oneblock(struct map_info *map, struct flchip *chip, do_xxlock_oneblock()
2196 typedef int (*otp_op_t)(struct map_info *map, struct flchip *chip,
2201 do_otp_read(struct map_info *map, struct flchip *chip, u_long offset, do_otp_read()
2234 do_otp_write(struct map_info *map, struct flchip *chip, u_long offset, do_otp_write()
2259 do_otp_lock(struct map_info *map, struct flchip *chip, u_long offset, do_otp_lock()
2278 struct map_info *map = mtd->priv; cfi_intelext_otp_walk()
2485 struct map_info *map = mtd->priv; cfi_intelext_suspend()
2579 struct map_info *map = mtd->priv; cfi_intelext_resume()
2610 struct map_info *map = mtd->priv; cfi_intelext_reset()
2645 struct map_info *map = mtd->priv; cfi_intelext_destroy()
H A Dcfi_cmdset_0020.c50 struct mtd_info *cfi_cmdset_0020(struct map_info *, int);
52 static struct mtd_info *cfi_staa_setup (struct map_info *);
113 struct mtd_info *cfi_cmdset_0020(struct map_info *map, int primary) cfi_cmdset_0020()
166 static struct mtd_info *cfi_staa_setup(struct map_info *map) cfi_staa_setup()
247 static inline int do_read_onechip(struct map_info *map, struct flchip *chip, loff_t adr, size_t len, u_char *buf) do_read_onechip()
384 struct map_info *map = mtd->priv; cfi_staa_read()
419 static inline int do_write_buffer(struct map_info *map, struct flchip *chip, do_write_buffer()
608 struct map_info *map = mtd->priv; cfi_staa_write_buffers()
731 static inline int do_erase_oneblock(struct map_info *map, struct flchip *chip, unsigned long adr) do_erase_oneblock()
891 { struct map_info *map = mtd->priv; cfi_staa_erase_varsize()
976 struct map_info *map = mtd->priv; cfi_staa_sync()
1032 static inline int do_lock_oneblock(struct map_info *map, struct flchip *chip, unsigned long adr) do_lock_oneblock()
1129 struct map_info *map = mtd->priv; cfi_staa_lock()
1178 static inline int do_unlock_oneblock(struct map_info *map, struct flchip *chip, unsigned long adr) do_unlock_oneblock()
1275 struct map_info *map = mtd->priv; cfi_staa_unlock()
1314 struct map_info *map = mtd->priv; cfi_staa_suspend()
1370 struct map_info *map = mtd->priv; cfi_staa_resume()
1394 struct map_info *map = mtd->priv; cfi_staa_destroy()
H A Dcfi_probe.c27 static int cfi_probe_chip(struct map_info *map, __u32 base,
29 static int cfi_chip_setup(struct map_info *map, struct cfi_private *cfi);
31 struct mtd_info *cfi_probe(struct map_info *map);
71 static int __xipram cfi_probe_chip(struct map_info *map, __u32 base, cfi_probe_chip()
154 static int __xipram cfi_chip_setup(struct map_info *map, cfi_chip_setup()
389 struct mtd_info *cfi_probe(struct map_info *map) cfi_probe()
H A Dfwh_lock.h28 static int fwh_xxlock_oneblock(struct map_info *map, struct flchip *chip, fwh_xxlock_oneblock()
H A Djedec_probe.c1878 static inline u32 jedec_read_mfr(struct map_info *map, uint32_t base, jedec_read_mfr()
1899 static inline u32 jedec_read_id(struct map_info *map, uint32_t base, jedec_read_id()
1910 static void jedec_reset(u32 base, struct map_info *map, struct cfi_private *cfi) jedec_reset()
1938 static int cfi_jedec_setup(struct map_info *map, struct cfi_private *cfi, int index) cfi_jedec_setup()
1997 struct map_info *map, jedec_match()
2115 static int jedec_probe_chip(struct map_info *map, __u32 base, jedec_probe_chip()
2250 static struct mtd_info *jedec_probe(struct map_info *map) jedec_probe()
/linux-4.1.27/arch/mips/cavium-octeon/
H A Dflash_setup.c20 static struct map_info flash_map;
30 static map_word octeon_flash_map_read(struct map_info *map, unsigned long ofs) octeon_flash_map_read()
41 static void octeon_flash_map_write(struct map_info *map, const map_word datum, octeon_flash_map_write()
49 static void octeon_flash_map_copy_from(struct map_info *map, void *to, octeon_flash_map_copy_from()
57 static void octeon_flash_map_copy_to(struct map_info *map, unsigned long to, octeon_flash_map_copy_to()
/linux-4.1.27/drivers/mtd/lpddr/
H A Dqinfo_probe.c34 static int lpddr_chip_setup(struct map_info *map, struct lpddr_private *lpddr);
35 struct mtd_info *lpddr_probe(struct map_info *map);
36 static struct lpddr_private *lpddr_probe_chip(struct map_info *map);
37 static int lpddr_pfow_present(struct map_info *map,
58 static long lpddr_get_qinforec_pos(struct map_info *map, char *id_str) lpddr_get_qinforec_pos()
77 static uint16_t lpddr_info_query(struct map_info *map, char *id_str) lpddr_info_query()
105 static int lpddr_pfow_present(struct map_info *map, struct lpddr_private *lpddr) lpddr_pfow_present()
134 static int lpddr_chip_setup(struct map_info *map, struct lpddr_private *lpddr) lpddr_chip_setup()
159 static struct lpddr_private *lpddr_probe_chip(struct map_info *map) lpddr_probe_chip()
198 struct mtd_info *lpddr_probe(struct map_info *map) lpddr_probe()
H A Dlpddr2_nvm.c129 static inline u_long ow_reg_add(struct map_info *map, u_long offset) ow_reg_add()
145 static inline void ow_enable(struct map_info *map) ow_enable()
160 static inline void ow_disable(struct map_info *map) ow_disable()
172 static int lpddr2_nvm_do_op(struct map_info *map, u_long cmd_code, lpddr2_nvm_do_op()
245 struct map_info *map = mtd->priv; lpddr2_nvm_do_block_op()
272 static int lpddr2_nvm_pfow_present(struct map_info *map) lpddr2_nvm_pfow_present()
310 struct map_info *map = mtd->priv; lpddr2_nvm_read()
328 struct map_info *map = mtd->priv; lpddr2_nvm_write()
416 struct map_info *map; lpddr2_nvm_probe()
429 /* Allocate memory for map_info & mtd_info data structures */ lpddr2_nvm_probe()
441 /* Populate map_info data structure */ lpddr2_nvm_probe()
442 *map = (struct map_info) { lpddr2_nvm_probe()
H A Dlpddr_cmds.c44 static int get_chip(struct map_info *map, struct flchip *chip, int mode);
45 static int chip_ready(struct map_info *map, struct flchip *chip, int mode);
46 static void put_chip(struct map_info *map, struct flchip *chip);
48 struct mtd_info *lpddr_cmdset(struct map_info *map) lpddr_cmdset()
111 static int wait_for_ready(struct map_info *map, struct flchip *chip, wait_for_ready()
184 static int get_chip(struct map_info *map, struct flchip *chip, int mode) get_chip()
280 static int chip_ready(struct map_info *map, struct flchip *chip, int mode) chip_ready()
334 static void put_chip(struct map_info *map, struct flchip *chip) put_chip()
389 static int do_write_buffer(struct map_info *map, struct flchip *chip, do_write_buffer()
472 struct map_info *map = mtd->priv; do_erase_oneblock()
500 struct map_info *map = mtd->priv; lpddr_read()
524 struct map_info *map = mtd->priv; lpddr_point()
576 struct map_info *map = mtd->priv; lpddr_unpoint()
634 struct map_info *map = mtd->priv; lpddr_writev()
682 struct map_info *map = mtd->priv; lpddr_erase()
707 struct map_info *map = mtd->priv; do_xxlock()
/linux-4.1.27/drivers/infiniband/core/
H A Diwpm_util.c121 struct iwpm_mapping_info *map_info; iwpm_create_mapinfo() local
127 map_info = kzalloc(sizeof(struct iwpm_mapping_info), GFP_KERNEL); iwpm_create_mapinfo()
128 if (!map_info) { iwpm_create_mapinfo()
132 memcpy(&map_info->local_sockaddr, local_sockaddr, iwpm_create_mapinfo()
134 memcpy(&map_info->mapped_sockaddr, mapped_sockaddr, iwpm_create_mapinfo()
136 map_info->nl_client = nl_client; iwpm_create_mapinfo()
141 &map_info->local_sockaddr, iwpm_create_mapinfo()
142 &map_info->mapped_sockaddr); iwpm_create_mapinfo()
144 hlist_add_head(&map_info->hlist_node, hash_bucket_head); iwpm_create_mapinfo()
158 struct iwpm_mapping_info *map_info = NULL; iwpm_remove_mapinfo() local
170 hlist_for_each_entry_safe(map_info, tmp_hlist_node, hlist_for_each_entry_safe()
173 if (!iwpm_compare_sockaddr(&map_info->mapped_sockaddr, hlist_for_each_entry_safe()
176 hlist_del_init(&map_info->hlist_node); hlist_for_each_entry_safe()
177 kfree(map_info); hlist_for_each_entry_safe()
192 struct iwpm_mapping_info *map_info; free_hash_bucket() local
199 hlist_for_each_entry_safe(map_info, tmp_hlist_node, free_hash_bucket()
202 hlist_del_init(&map_info->hlist_node); free_hash_bucket()
203 kfree(map_info); free_hash_bucket()
640 struct iwpm_mapping_info *map_info; iwpm_send_mapinfo() local
658 hlist_for_each_entry(map_info, &iwpm_hash_bucket[i], iwpm_send_mapinfo()
660 if (map_info->nl_client != nl_client) iwpm_send_mapinfo()
672 &map_info->local_sockaddr, iwpm_send_mapinfo()
679 &map_info->mapped_sockaddr, iwpm_send_mapinfo()
684 iwpm_print_sockaddr(&map_info->local_sockaddr, iwpm_send_mapinfo()
686 iwpm_print_sockaddr(&map_info->mapped_sockaddr, iwpm_send_mapinfo()
/linux-4.1.27/drivers/md/
H A Ddm-target.c135 union map_info *map_context) io_err_map_rq()
141 union map_info *map_context, io_err_clone_and_map_rq()
H A Ddm-mpath.c228 static int set_mapinfo(struct multipath *m, union map_info *info) set_mapinfo()
242 static void clear_mapinfo(struct multipath *m, union map_info *info) clear_mapinfo()
383 union map_info *map_context, __multipath_map()
455 union map_info *map_context) multipath_map()
461 union map_info *map_context, multipath_clone_and_map()
1306 int error, union map_info *map_context) multipath_end_io()
H A Ddm.c88 union map_info info;
105 union map_info *dm_get_rq_mapinfo(struct request *rq) dm_get_rq_mapinfo()
/linux-4.1.27/arch/cris/arch-v10/drivers/
H A Daxisflashmap.c55 static map_word flash_read(struct map_info *map, unsigned long ofs) flash_read()
62 static void flash_copy_from(struct map_info *map, void *to, flash_copy_from()
68 static void flash_write(struct map_info *map, map_word d, unsigned long adr) flash_write()
88 static struct map_info map_cse0 = {
104 static struct map_info map_cse1 = {
193 static struct mtd_info *probe_cs(struct map_info *map_cs) probe_cs()
/linux-4.1.27/fs/xfs/
H A Dxfs_dir2_readdir.c486 struct xfs_dir2_leaf_map_info *map_info; xfs_dir2_leaf_getdents() local
502 map_info = kmem_zalloc(offsetof(struct xfs_dir2_leaf_map_info, map) + xfs_dir2_leaf_getdents()
505 map_info->map_size = length; xfs_dir2_leaf_getdents()
517 map_info->map_off = xfs_dir2_db_to_da(geo, xfs_dir2_leaf_getdents()
533 error = xfs_dir2_leaf_readbuf(args, bufsize, map_info, xfs_dir2_leaf_getdents()
535 if (error || !map_info->map_valid) xfs_dir2_leaf_getdents()
542 map_info->curdb, 0); xfs_dir2_leaf_getdents()
553 map_info->curdb); xfs_dir2_leaf_getdents()
638 kmem_free(map_info); xfs_dir2_leaf_getdents()
/linux-4.1.27/arch/mips/include/asm/txx9/
H A Drbtx4939.h134 struct map_info;
139 void (*map_init)(struct map_info *map);
/linux-4.1.27/arch/mips/txx9/rbtx4939/
H A Dsetup.c309 static map_word rbtx4939_flash_read16(struct map_info *map, unsigned long ofs) rbtx4939_flash_read16()
318 static void rbtx4939_flash_write16(struct map_info *map, const map_word datum, rbtx4939_flash_write16()
326 static void rbtx4939_flash_copy_from(struct map_info *map, void *to, rbtx4939_flash_copy_from()
367 static void rbtx4939_flash_map_init(struct map_info *map) rbtx4939_flash_map_init()
/linux-4.1.27/arch/cris/arch-v32/drivers/
H A Daxisflashmap.c60 static map_word flash_read(struct map_info *map, unsigned long ofs) flash_read()
67 static void flash_copy_from(struct map_info *map, void *to, flash_copy_from()
73 static void flash_write(struct map_info *map, map_word d, unsigned long adr) flash_write()
93 static struct map_info map_cse0 = {
109 static struct map_info map_cse1 = {
227 static struct mtd_info *probe_cs(struct map_info *map_cs) probe_cs()
/linux-4.1.27/arch/arm/mach-s3c24xx/
H A Dmach-nexcoder.c89 static struct map_info nexcoder_nor_map = {
/linux-4.1.27/include/linux/
H A Ddevice-mapper.h24 union map_info { union
50 union map_info *map_context);
53 union map_info *map_context,
69 union map_info *map_context);
410 union map_info *dm_get_rq_mapinfo(struct request *rq);
/linux-4.1.27/kernel/events/
H A Duprobes.c703 struct map_info { struct
704 struct map_info *next;
709 static inline struct map_info *free_map_info(struct map_info *info) free_map_info()
711 struct map_info *next = info->next; free_map_info()
716 static struct map_info * build_map_info()
721 struct map_info *curr = NULL; build_map_info()
722 struct map_info *prev = NULL; build_map_info()
723 struct map_info *info; build_map_info()
737 prev = kmalloc(sizeof(struct map_info), build_map_info()
770 info = kmalloc(sizeof(struct map_info), GFP_KERNEL); build_map_info()
790 struct map_info *info; register_for_each_vma()
/linux-4.1.27/drivers/mtd/
H A Dmtdchar.c1107 struct map_info *map = mtd->priv; mtdchar_mmap()
1110 and that mtd->priv is a valid struct map_info. It should be mtdchar_mmap()
/linux-4.1.27/arch/blackfin/kernel/
H A Dsetup.c56 extern struct map_info uclinux_ram_map;

Completed in 1227 milliseconds