| /linux/drivers/infiniband/core/ |
| H A D | iwpm_util.c | 112 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/drivers/mtd/maps/ |
| H A D | dc21285.c | 54 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 D | map_funcs.c | 13 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 D | tsunami_flash.c | 18 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 D | sbc_gxx.c | 91 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 D | lantiq-flash.c | 42 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 D | pci.c | 30 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 D | physmap-gemini.c | 81 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 D | physmap-ixp4xx.c | 69 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 D | physmap-versatile.c | 122 static void ap_flash_set_vpp(struct map_info *map, int on) in ap_flash_set_vpp() 150 static void cp_flash_set_vpp(struct map_info *map, int on) in cp_flash_set_vpp() 177 static void versatile_flash_set_vpp(struct map_info *map, int on) in versatile_flash_set_vpp() 189 struct map_info *map) in of_flash_probe_versatile()
|
| H A D | uclinux.c | 34 static struct map_info uclinux_ram_map = { 57 struct map_info *map = mtd->priv; in uclinux_point() 70 struct map_info *mapp; in uclinux_mtd_init()
|
| /linux/drivers/soc/cirrus/ |
| H A D | soc-ep93xx.c | 173 struct ep93xx_map_info *map_info; in ep93xx_syscon_probe() local 206 map_info = devm_kzalloc(dev, sizeof(*map_info), GFP_KERNEL); in ep93xx_syscon_probe() 207 if (!map_info) in ep93xx_syscon_probe() 210 spin_lock_init(&map_info->lock); in ep93xx_syscon_probe() 211 map_info->map = map; in ep93xx_syscon_probe() 212 map_info->base = base; in ep93xx_syscon_probe() 214 ret = ep93xx_controller_register(dev, pinctrl_names[model], map_info); in ep93xx_syscon_probe() 224 ret = ep93xx_controller_register(dev, "clk-ep93xx.e2", map_info); in ep93xx_syscon_probe() 226 ret = ep93xx_controller_register(dev, "clk-ep93xx", map_info); in ep93xx_syscon_probe() 230 ret = ep93xx_controller_register(dev, "reset-ep93xx", map_info); in ep93xx_syscon_probe()
|
| /linux/include/linux/mtd/ |
| H A D | cfi.h | 281 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/drivers/mtd/chips/ |
| H A D | gen_probe.c | 15 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 D | cfi_cmdset_0002.c | 94 struct mtd_info *cfi_cmdset_0002(struct map_info *, int); 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); 129 static int cfi_check_err_status(struct map_info *map, struct flchip *chip, in cfi_check_err_status() 226 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() [all …]
|
| H A D | map_ram.c | 23 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() 94 struct map_info *map = mtd->priv; in mapram_point() 112 struct map_info *map = mtd->priv; in mapram_read() 121 struct map_info *map = mtd->priv; in mapram_write() 132 struct map_info *map = mtd->priv; in mapram_erase()
|
| H A D | cfi_util.c | 40 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()
|
| H A D | map_rom.c | 22 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 D | cfi_cmdset_0001.c | 90 struct mtd_info *cfi_cmdset_0001(struct map_info *, int); 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; in fixup_convert_atmel_pri() 214 struct map_info *map = mtd->priv; in fixup_at49bv640dx_lock() 226 struct map_info *map = mtd->priv; in fixup_intel_strataflash() 239 struct map_info *map = mtd->priv; in fixup_no_write_suspend() 252 struct map_info *map = mtd->priv; in fixup_st_m28w320ct() 261 struct map_info *map = mtd->priv; in fixup_st_m28w320cb() [all …]
|
| /linux/drivers/media/pci/cobalt/ |
| H A D | cobalt-flash.c | 18 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/drivers/mtd/hyperbus/ |
| H A D | hyperbus-core.c | 15 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/arch/mips/cavium-octeon/ |
| H A D | flash_setup.c | 21 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()
|
| /linux/drivers/mtd/lpddr/ |
| H A D | lpddr2_nvm.c | 120 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()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | metadata.c | 19 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()
|
| /linux/tools/bpf/bpftool/ |
| H A D | map.c | 72 struct bpf_map_info *map_info, void *key, in do_dump_btf() argument 81 if (map_info->btf_key_type_id) { in do_dump_btf() 84 ret = btf_dumper_type(d, map_info->btf_key_type_id, key); in do_dump_btf() 89 value_id = map_info->btf_vmlinux_value_type_id ? in do_dump_btf() 90 : map_info->btf_value_type_id; in do_dump_btf() 92 if (!map_is_per_cpu(map_info->type)) { in do_dump_btf() 101 step = round_up(map_info->value_size, 8); in do_dump_btf() 214 print_entry_error(struct bpf_map_info *map_info, void *key, int lookup_errno) in print_entry_error() argument 220 if ((map_is_map_of_maps(map_info->type) || in print_entry_error() 221 map_is_map_of_progs(map_info in print_entry_error() 746 dump_map_elem(int fd,void * key,void * value,struct bpf_map_info * map_info,struct btf * btf,json_writer_t * btf_wtr) dump_map_elem() argument [all...] |