/include/linux/mtd/ |
A D | map.h | 34 # define map_bankwidth(map) ((map)->bankwidth) argument 50 # define map_bankwidth(map) ((map)->bankwidth) argument 81 # define map_words(map) map_calc_words(map) argument 97 # define map_words(map) map_calc_words(map) argument 117 # define map_words(map) map_calc_words(map) argument 254 #define ENABLE_VPP(map) do { if (map->set_vpp) map->set_vpp(map, 1); } while (0) argument 255 #define DISABLE_VPP(map) do { if (map->set_vpp) map->set_vpp(map, 0); } while (0) argument 258 do { if (map->inval_cache) map->inval_cache(map, from, size); } while (0) 445 #define map_read(map, ofs) (map)->read(map, ofs) argument 447 #define map_write(map, datum, ofs) (map)->write(map, datum, ofs) argument [all …]
|
A D | pfow.h | 104 int bits_per_chip = map_bankwidth(map) * 8; in send_pfow_command() 106 map_write(map, CMD(cmd_code), map->pfow_base + PFOW_COMMAND_CODE); in send_pfow_command() 108 map->pfow_base + PFOW_COMMAND_ADDRESS_L); in send_pfow_command() 109 map_write(map, CMD(adr>>bits_per_chip), in send_pfow_command() 110 map->pfow_base + PFOW_COMMAND_ADDRESS_H); in send_pfow_command() 113 map->pfow_base + PFOW_DATA_COUNT_L); in send_pfow_command() 114 map_write(map, CMD(len>>bits_per_chip), in send_pfow_command() 115 map->pfow_base + PFOW_DATA_COUNT_H); in send_pfow_command() 118 map_write(map, *datum, map->pfow_base + PFOW_COMMAND_DATA); in send_pfow_command() 121 map_write(map, CMD(LPDDR_START_EXECUTION), in send_pfow_command() [all …]
|
A D | cfi_endian.h | 27 #define cpu_to_cfi8(map, x) (x) argument 28 #define cfi8_to_cpu(map, x) (x) argument 29 #define cpu_to_cfi16(map, x) _cpu_to_cfi(16, (map)->swap, (x)) argument 30 #define cpu_to_cfi32(map, x) _cpu_to_cfi(32, (map)->swap, (x)) argument 31 #define cpu_to_cfi64(map, x) _cpu_to_cfi(64, (map)->swap, (x)) argument 32 #define cfi16_to_cpu(map, x) _cfi_to_cpu(16, (map)->swap, (x)) argument 33 #define cfi32_to_cpu(map, x) _cfi_to_cpu(32, (map)->swap, (x)) argument 34 #define cfi64_to_cpu(map, x) _cfi_to_cpu(64, (map)->swap, (x)) argument
|
A D | cfi.h | 297 #define CMD(x) cfi_build_cmd((x), map, cfi) 309 map_word val = map_read(map, addr); in cfi_read_query() 311 if (map_bankwidth_is_1(map)) in cfi_read_query() 313 if (map_bankwidth_is_2(map)) in cfi_read_query() 314 return cfi16_to_cpu(map, val.x[0]); in cfi_read_query() 320 return cfi32_to_cpu(map, val.x[0]); in cfi_read_query() 325 map_word val = map_read(map, addr); in cfi_read_query16() 327 if (map_bankwidth_is_1(map)) in cfi_read_query16() 329 if (map_bankwidth_is_2(map)) in cfi_read_query16() 330 return cfi16_to_cpu(map, val.x[0]); in cfi_read_query16() [all …]
|
A D | gen_probe.h | 17 int (*probe_chip)(struct map_info *map, __u32 base, 21 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp);
|
/include/net/sctp/ |
A D | tsnmap.h | 87 void sctp_tsnmap_free(struct sctp_tsnmap *map); 107 return map->cumulative_tsn_ack_point; in sctp_tsnmap_get_ctsn() 113 return map->max_tsn_seen; in sctp_tsnmap_get_max_tsn_seen() 119 return map->num_dup_tsns; in sctp_tsnmap_num_dups() 125 map->num_dup_tsns = 0; in sctp_tsnmap_get_dups() 126 return map->dup_tsns; in sctp_tsnmap_get_dups() 130 __u16 sctp_tsnmap_num_gabs(struct sctp_tsnmap *map, 134 __u16 sctp_tsnmap_pending(struct sctp_tsnmap *map); 139 return map->cumulative_tsn_ack_point != map->max_tsn_seen; in sctp_tsnmap_has_gap() 147 if (map->num_dup_tsns < SCTP_MAX_DUP_TSNS) in sctp_tsnmap_mark_dup() [all …]
|
/include/linux/ |
A D | iosys-map.h | 185 map->vaddr = vaddr; in iosys_map_set_vaddr() 186 map->is_iomem = false; in iosys_map_set_vaddr() 200 map->is_iomem = true; in iosys_map_set_vaddr_iomem() 237 if (map->is_iomem) in iosys_map_is_null() 239 return !map->vaddr; in iosys_map_is_null() 267 if (map->is_iomem) { in iosys_map_clear() 268 map->vaddr_iomem = NULL; in iosys_map_clear() 269 map->is_iomem = false; in iosys_map_clear() 271 map->vaddr = NULL; in iosys_map_clear() 325 if (map->is_iomem) in iosys_map_incr() [all …]
|
A D | regmap.h | 165 __ret = regmap_read((map), (addr), &(val)); \ 172 __ret = regmap_read((map), (addr), &(val)); \ 1277 void regmap_exit(struct regmap *map); 1278 int regmap_reinit_cache(struct regmap *map, 1346 int regmap_get_val_bytes(struct regmap *map); 1349 bool regmap_might_sleep(struct regmap *map); 1356 int regcache_sync(struct regmap *map); 1401 return regmap_set_bits(map, reg, bits); in regmap_assign_bits() 1403 return regmap_clear_bits(map, reg, bits); in regmap_assign_bits() 1746 struct regmap *map, int irq, [all …]
|
A D | hmm-dma.h | 26 int hmm_dma_map_alloc(struct device *dev, struct hmm_dma_map *map, 28 void hmm_dma_map_free(struct device *dev, struct hmm_dma_map *map); 29 dma_addr_t hmm_dma_map_pfn(struct device *dev, struct hmm_dma_map *map, 32 bool hmm_dma_unmap_pfn(struct device *dev, struct hmm_dma_map *map, size_t idx);
|
A D | bitmap.h | 471 __set_bit(start, map); in bitmap_set() 473 *map |= GENMASK(start + nbits - 1, start); in bitmap_set() 480 __bitmap_set(map, start, nbits); in bitmap_set() 487 __clear_bit(start, map); in bitmap_clear() 489 *map &= ~GENMASK(start + nbits - 1, start); in bitmap_clear() 496 __bitmap_clear(map, start, nbits); in bitmap_clear() 821 map[index] |= value << offset; in bitmap_write() 826 map[index + 1] |= (value >> space); in bitmap_write() 829 #define bitmap_get_value8(map, start) \ argument 830 bitmap_read(map, start, BITS_PER_BYTE) [all …]
|
A D | dma-direct.h | 57 static inline dma_addr_t dma_range_map_min(const struct bus_dma_region *map) in dma_range_map_min() argument 61 for (; map->size; map++) in dma_range_map_min() 62 ret = min(ret, map->dma_start); in dma_range_map_min() 66 static inline dma_addr_t dma_range_map_max(const struct bus_dma_region *map) in dma_range_map_max() argument 70 for (; map->size; map++) in dma_range_map_max() 71 ret = max(ret, map->dma_start + map->size - 1); in dma_range_map_max()
|
A D | bpf.h | 542 bpf_obj_memcpy(map->record, dst, src, map->value_size, false); in copy_map_value() 547 bpf_obj_memcpy(map->record, dst, src, map->value_size, true); in copy_map_value_long() 591 bpf_obj_memzero(map->record, dst, map->value_size); in zero_map_value() 620 struct bpf_map map; member 629 return container_of(map, struct bpf_offloaded_map, map); in map_to_offmap() 639 return (map->btf_value_type_id || map->btf_vmlinux_value_type_id) && in bpf_map_support_seq_show() 1731 struct bpf_map *map; member 2065 struct bpf_map map; member 2128 kfree(map->owner); in bpf_map_owner_free() 2501 map->elem_count = bpf_map_alloc_percpu(map, size, align, flags); in bpf_map_init_elem_count() [all …]
|
A D | completion.h | 38 #define COMPLETION_INITIALIZER_ONSTACK_MAP(work, map) \ argument 39 (*({ init_completion_map(&(work), &(map)); &(work); })) 70 # define DECLARE_COMPLETION_ONSTACK_MAP(work, map) \ argument 71 struct completion work = COMPLETION_INITIALIZER_ONSTACK_MAP(work, map) 74 # define DECLARE_COMPLETION_ONSTACK_MAP(work, map) DECLARE_COMPLETION(work) argument
|
A D | dynamic_queue_limits.h | 90 unsigned long map, now, now_hi, i; in dql_queue_stall() local 114 map = DQL_HIST_ENT(dql, now_hi); in dql_queue_stall() 117 if (!(map & BIT_MASK(now))) in dql_queue_stall() 118 WRITE_ONCE(DQL_HIST_ENT(dql, now_hi), map | BIT_MASK(now)); in dql_queue_stall()
|
/include/linux/crush/ |
A D | mapper.h | 14 extern int crush_find_rule(const struct crush_map *map, int ruleset, int type, int size); 15 int crush_do_rule(const struct crush_map *map, 26 static inline size_t crush_work_size(const struct crush_map *map, in crush_work_size() argument 29 return map->working_size + result_max * 3 * sizeof(__u32); in crush_work_size() 32 void crush_init_workspace(const struct crush_map *map, void *v);
|
/include/linux/pinctrl/ |
A D | pinconf-generic.h | 198 struct device_node *np, struct pinctrl_map **map, 202 struct device_node *np_config, struct pinctrl_map **map, 205 struct pinctrl_map *map, unsigned int num_maps); 208 struct device_node *np_config, struct pinctrl_map **map, in pinconf_generic_dt_node_to_map_group() argument 211 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_group() 216 struct device_node *np_config, struct pinctrl_map **map, in pinconf_generic_dt_node_to_map_pin() argument 219 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_pin() 224 struct device_node *np_config, struct pinctrl_map **map, in pinconf_generic_dt_node_to_map_all() argument 231 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_all() 237 struct pinctrl_map **map,
|
A D | machine.h | 157 int pinctrl_register_mappings(const struct pinctrl_map *map, 160 const struct pinctrl_map *map, 162 void pinctrl_unregister_mappings(const struct pinctrl_map *map); 166 static inline int pinctrl_register_mappings(const struct pinctrl_map *map, in pinctrl_register_mappings() argument 173 const struct pinctrl_map *map, in devm_pinctrl_register_mappings() argument 179 static inline void pinctrl_unregister_mappings(const struct pinctrl_map *map) in pinctrl_unregister_mappings() argument
|
/include/linux/ceph/ |
A D | osdmap.h | 203 return osd >= 0 && osd < map->max_osd && in ceph_osd_exists() 204 (map->osd_state[osd] & CEPH_OSD_EXISTS); in ceph_osd_exists() 207 static inline bool ceph_osd_is_up(struct ceph_osdmap *map, int osd) in ceph_osd_is_up() argument 209 return ceph_osd_exists(map, osd) && in ceph_osd_is_up() 210 (map->osd_state[osd] & CEPH_OSD_UP); in ceph_osd_is_up() 215 return !ceph_osd_is_up(map, osd); in ceph_osd_is_down() 224 if (osd >= map->max_osd) in ceph_osd_addr() 226 return &map->osd_addr[osd]; in ceph_osd_addr() 256 struct ceph_osdmap *map); 257 extern void ceph_osdmap_destroy(struct ceph_osdmap *map); [all …]
|
/include/linux/soc/cirrus/ |
A D | ep93xx.h | 26 struct regmap *map; member 29 void (*write)(struct regmap *map, spinlock_t *lock, unsigned int reg, 31 void (*update_bits)(struct regmap *map, spinlock_t *lock,
|
/include/xen/ |
A D | grant_table.h | 162 gnttab_set_map_op(struct gnttab_map_grant_ref *map, phys_addr_t addr, in gnttab_set_map_op() argument 166 map->host_addr = addr; in gnttab_set_map_op() 168 map->host_addr = __pa(addr); in gnttab_set_map_op() 170 map->host_addr = addr; in gnttab_set_map_op() 172 map->flags = flags; in gnttab_set_map_op() 173 map->ref = ref; in gnttab_set_map_op() 174 map->dom = domid; in gnttab_set_map_op() 175 map->status = 1; /* arbitrary positive value */ in gnttab_set_map_op() 212 #define gnttab_map_vaddr(map) ((void *)(map.host_virt_addr)) argument
|
/include/trace/events/ |
A D | erofs.h | 148 TP_PROTO(struct inode *inode, struct erofs_map_blocks *map, 151 TP_ARGS(inode, map, flags), 164 __entry->la = map->m_la; 165 __entry->llen = map->m_llen; 177 TP_PROTO(struct inode *inode, struct erofs_map_blocks *map, 180 TP_ARGS(inode, map, flags, ret), 198 __entry->la = map->m_la; 199 __entry->pa = map->m_pa; 200 __entry->llen = map->m_llen; 201 __entry->plen = map->m_plen; [all …]
|
/include/media/ |
A D | v4l2-cci.h | 69 int cci_read(struct regmap *map, u32 reg, u64 *val, int *err); 82 int cci_write(struct regmap *map, u32 reg, u64 val, int *err); 100 int cci_update_bits(struct regmap *map, u32 reg, u64 mask, u64 val, int *err); 122 int cci_multi_reg_write(struct regmap *map, const struct cci_reg_sequence *regs,
|
/include/linux/mfd/ |
A D | ocelot.h | 56 struct regmap *map; in ocelot_regmap_from_resource() local 58 map = ocelot_regmap_from_resource_optional(pdev, index, config); in ocelot_regmap_from_resource() 59 return map ?: ERR_PTR(-ENOENT); in ocelot_regmap_from_resource()
|
/include/soc/tegra/ |
A D | ivc.h | 20 struct iosys_map map; member 41 int tegra_ivc_read_get_next_frame(struct tegra_ivc *ivc, struct iosys_map *map); 61 int tegra_ivc_write_get_next_frame(struct tegra_ivc *ivc, struct iosys_map *map);
|
/include/drm/ |
A D | drm_gem_shmem_helper.h | 120 struct iosys_map *map); 122 struct iosys_map *map); 239 struct iosys_map *map) in drm_gem_shmem_object_vmap() argument 243 return drm_gem_shmem_vmap_locked(shmem, map); in drm_gem_shmem_object_vmap() 255 struct iosys_map *map) in drm_gem_shmem_object_vunmap() argument 259 drm_gem_shmem_vunmap_locked(shmem, map); in drm_gem_shmem_object_vunmap()
|