/include/linux/mtd/ |
D | map.h | 22 #define map_bankwidth(map) 1 argument 23 #define map_bankwidth_is_1(map) (map_bankwidth(map) == 1) argument 24 #define map_bankwidth_is_large(map) (0) argument 25 #define map_words(map) (1) argument 28 #define map_bankwidth_is_1(map) (0) argument 34 # define map_bankwidth(map) ((map)->bankwidth) argument 36 # define map_bankwidth(map) 2 argument 37 # define map_bankwidth_is_large(map) (0) argument 38 # define map_words(map) (1) argument 40 #define map_bankwidth_is_2(map) (map_bankwidth(map) == 2) argument [all …]
|
D | pfow.h | 100 static inline void send_pfow_command(struct map_info *map, in send_pfow_command() argument 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() 107 map_write(map, CMD(adr & ((1<<bits_per_chip) - 1)), 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() 112 map_write(map, CMD(len & ((1<<bits_per_chip) - 1)), 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() [all …]
|
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
|
D | cfi.h | 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); 297 #define CMD(x) cfi_build_cmd((x), map, cfi) 299 unsigned long cfi_merge_status(map_word val, struct map_info *map, 301 #define MERGESTATUS(x) cfi_merge_status((x), map, cfi) 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() argument 309 map_word val = map_read(map, addr); in cfi_read_query() 311 if (map_bankwidth_is_1(map)) { in cfi_read_query() 313 } else if (map_bankwidth_is_2(map)) { in cfi_read_query() [all …]
|
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);
|
D | qinfo.h | 79 static inline map_word lpddr_build_cmd(u_long cmd, struct map_info *map) in lpddr_build_cmd() argument 86 #define CMD(x) lpddr_build_cmd(x, map)
|
/include/net/sctp/ |
D | tsnmap.h | 87 void sctp_tsnmap_free(struct sctp_tsnmap *map); 102 void sctp_tsnmap_skip(struct sctp_tsnmap *map, __u32 tsn); 105 static inline __u32 sctp_tsnmap_get_ctsn(const struct sctp_tsnmap *map) in sctp_tsnmap_get_ctsn() argument 107 return map->cumulative_tsn_ack_point; in sctp_tsnmap_get_ctsn() 111 static inline __u32 sctp_tsnmap_get_max_tsn_seen(const struct sctp_tsnmap *map) in sctp_tsnmap_get_max_tsn_seen() argument 113 return map->max_tsn_seen; in sctp_tsnmap_get_max_tsn_seen() 117 static inline __u16 sctp_tsnmap_num_dups(struct sctp_tsnmap *map) in sctp_tsnmap_num_dups() argument 119 return map->num_dup_tsns; in sctp_tsnmap_num_dups() 123 static inline __be32 *sctp_tsnmap_get_dups(struct sctp_tsnmap *map) in sctp_tsnmap_get_dups() argument 125 map->num_dup_tsns = 0; in sctp_tsnmap_get_dups() [all …]
|
/include/linux/ |
D | iosys-map.h | 183 static inline void iosys_map_set_vaddr(struct iosys_map *map, void *vaddr) in iosys_map_set_vaddr() argument 185 map->vaddr = vaddr; in iosys_map_set_vaddr() 186 map->is_iomem = false; in iosys_map_set_vaddr() 196 static inline void iosys_map_set_vaddr_iomem(struct iosys_map *map, in iosys_map_set_vaddr_iomem() argument 199 map->vaddr_iomem = vaddr_iomem; in iosys_map_set_vaddr_iomem() 200 map->is_iomem = true; in iosys_map_set_vaddr_iomem() 235 static inline bool iosys_map_is_null(const struct iosys_map *map) in iosys_map_is_null() argument 237 if (map->is_iomem) in iosys_map_is_null() 238 return !map->vaddr_iomem; in iosys_map_is_null() 239 return !map->vaddr; in iosys_map_is_null() [all …]
|
D | regmap.h | 105 #define regmap_read_poll_timeout(map, addr, val, cond, sleep_us, timeout_us) \ argument 109 sleep_us, timeout_us, false, (map), (addr), &(val)); \ 135 #define regmap_read_poll_timeout_atomic(map, addr, val, cond, delay_us, timeout_us) \ argument 142 __ret = regmap_read((map), (addr), &(val)); \ 149 __ret = regmap_read((map), (addr), &(val)); \ 740 int regmap_attach_dev(struct device *dev, struct regmap *map, 1158 int regmap_mmio_attach_clk(struct regmap *map, struct clk *clk); 1159 void regmap_mmio_detach_clk(struct regmap *map); 1160 void regmap_exit(struct regmap *map); 1161 int regmap_reinit_cache(struct regmap *map, [all …]
|
D | bpf.h | 77 void (*map_release)(struct bpf_map *map, struct file *map_file); 78 void (*map_free)(struct bpf_map *map); 79 int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key); 80 void (*map_release_uref)(struct bpf_map *map); 81 void *(*map_lookup_elem_sys_only)(struct bpf_map *map, void *key); 82 int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr, 84 int (*map_lookup_and_delete_elem)(struct bpf_map *map, void *key, 86 int (*map_lookup_and_delete_batch)(struct bpf_map *map, 89 int (*map_update_batch)(struct bpf_map *map, const union bpf_attr *attr, 91 int (*map_delete_batch)(struct bpf_map *map, const union bpf_attr *attr, [all …]
|
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
|
D | frontswap.h | 20 extern void frontswap_init(unsigned type, unsigned long *map); 35 unsigned long *map) in frontswap_map_set() argument 37 p->frontswap_map = map; in frontswap_map_set() 53 unsigned long *map) in frontswap_map_set() argument
|
D | bitmap.h | 170 void __bitmap_set(unsigned long *map, unsigned int start, int len); 171 void __bitmap_clear(unsigned long *map, unsigned int start, int len); 173 unsigned long bitmap_find_next_zero_area_off(unsigned long *map, 193 bitmap_find_next_zero_area(unsigned long *map, in bitmap_find_next_zero_area() argument 199 return bitmap_find_next_zero_area_off(map, size, start, nr, in bitmap_find_next_zero_area() 451 static __always_inline void bitmap_set(unsigned long *map, unsigned int start, in bitmap_set() argument 455 __set_bit(start, map); in bitmap_set() 457 *map |= GENMASK(start + nbits - 1, start); in bitmap_set() 462 memset((char *)map + start / 8, 0xff, nbits / 8); in bitmap_set() 464 __bitmap_set(map, start, nbits); in bitmap_set() [all …]
|
D | genalloc.h | 48 typedef unsigned long (*genpool_algo_t)(unsigned long *map, 183 extern unsigned long gen_pool_first_fit(unsigned long *map, unsigned long size, 187 extern unsigned long gen_pool_fixed_alloc(unsigned long *map, 191 extern unsigned long gen_pool_first_fit_align(unsigned long *map, 196 extern unsigned long gen_pool_first_fit_order_align(unsigned long *map, 200 extern unsigned long gen_pool_best_fit(unsigned long *map, unsigned long size,
|
/include/linux/crush/ |
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/ |
D | pinconf-generic.h | 190 struct device_node *np, struct pinctrl_map **map, 194 struct device_node *np_config, struct pinctrl_map **map, 197 struct pinctrl_map *map, unsigned num_maps); 201 struct pinctrl_map **map, unsigned *num_maps) in pinconf_generic_dt_node_to_map_group() argument 203 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_group() 209 struct pinctrl_map **map, unsigned *num_maps) in pinconf_generic_dt_node_to_map_pin() argument 211 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_pin() 217 struct pinctrl_map **map, unsigned *num_maps) in pinconf_generic_dt_node_to_map_all() argument 223 return pinconf_generic_dt_node_to_map(pctldev, np_config, map, num_maps, in pinconf_generic_dt_node_to_map_all()
|
/include/linux/ceph/ |
D | osdmap.h | 201 static inline bool ceph_osd_exists(struct ceph_osdmap *map, int osd) in ceph_osd_exists() argument 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() 213 static inline bool ceph_osd_is_down(struct ceph_osdmap *map, int osd) in ceph_osd_is_down() argument 215 return !ceph_osd_is_up(map, osd); in ceph_osd_is_down() 219 extern u32 ceph_get_primary_affinity(struct ceph_osdmap *map, int osd); 221 static inline struct ceph_entity_addr *ceph_osd_addr(struct ceph_osdmap *map, in ceph_osd_addr() argument [all …]
|
/include/trace/events/ |
D | erofs.h | 142 TP_PROTO(struct inode *inode, struct erofs_map_blocks *map, 145 TP_ARGS(inode, map, flags), 158 __entry->la = map->m_la; 159 __entry->llen = map->m_llen; 170 TP_PROTO(struct inode *inode, struct erofs_map_blocks *map, 173 TP_ARGS(inode, map, flags) 177 TP_PROTO(struct inode *inode, struct erofs_map_blocks *map, 180 TP_ARGS(inode, map, flags) 184 TP_PROTO(struct inode *inode, struct erofs_map_blocks *map, 187 TP_ARGS(inode, map, flags, ret), [all …]
|
/include/xen/ |
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/linux/mfd/ |
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()
|
D | max14577-private.h | 442 static inline int max14577_read_reg(struct regmap *map, u8 reg, u8 *dest) in max14577_read_reg() argument 447 ret = regmap_read(map, reg, &val); in max14577_read_reg() 453 static inline int max14577_bulk_read(struct regmap *map, u8 reg, u8 *buf, in max14577_bulk_read() argument 456 return regmap_bulk_read(map, reg, buf, count); in max14577_bulk_read() 459 static inline int max14577_write_reg(struct regmap *map, u8 reg, u8 value) in max14577_write_reg() argument 461 return regmap_write(map, reg, value); in max14577_write_reg() 464 static inline int max14577_bulk_write(struct regmap *map, u8 reg, u8 *buf, in max14577_bulk_write() argument 467 return regmap_bulk_write(map, reg, buf, count); in max14577_bulk_write() 470 static inline int max14577_update_reg(struct regmap *map, u8 reg, u8 mask, in max14577_update_reg() argument 473 return regmap_update_bits(map, reg, mask, val); in max14577_update_reg()
|
/include/trace/hooks/ |
D | regmap.h | 19 TP_PROTO(const struct regmap_config *config, struct regmap *map), 20 TP_ARGS(config, map));
|
/include/drm/ |
D | drm_gem_shmem_helper.h | 117 struct iosys_map *map); 119 struct iosys_map *map); 234 struct iosys_map *map) in drm_gem_shmem_object_vmap() argument 238 return drm_gem_shmem_vmap(shmem, map); in drm_gem_shmem_object_vmap() 250 struct iosys_map *map) in drm_gem_shmem_object_vunmap() argument 254 drm_gem_shmem_vunmap(shmem, map); in drm_gem_shmem_object_vunmap()
|
D | drm_gem_ttm_helper.h | 21 struct iosys_map *map); 23 struct iosys_map *map);
|
/include/drm/ttm/ |
D | ttm_bo_api.h | 342 static inline void *ttm_kmap_obj_virtual(struct ttm_bo_kmap_obj *map, in ttm_kmap_obj_virtual() argument 345 *is_iomem = !!(map->bo_kmap_type & TTM_BO_MAP_IOMEM_MASK); in ttm_kmap_obj_virtual() 346 return map->virtual; in ttm_kmap_obj_virtual() 366 unsigned long num_pages, struct ttm_bo_kmap_obj *map); 375 void ttm_bo_kunmap(struct ttm_bo_kmap_obj *map); 391 int ttm_bo_vmap(struct ttm_buffer_object *bo, struct iosys_map *map); 401 void ttm_bo_vunmap(struct ttm_buffer_object *bo, struct iosys_map *map);
|