/include/linux/mtd/ |
H A D | map.h | 36 #define map_bankwidth(map) 1 37 #define map_bankwidth_is_1(map) (map_bankwidth(map) == 1) 38 #define map_bankwidth_is_large(map) (0) 39 #define map_words(map) (1) 42 #define map_bankwidth_is_1(map) (0) 48 # define map_bankwidth(map) ((map)->bankwidth) 50 # define map_bankwidth(map) 2 51 # define map_bankwidth_is_large(map) ( 146 map_bankwidth(void *map) argument 273 map_word_equal(struct map_info *map, map_word val1, map_word val2) argument 283 map_word_and(struct map_info *map, map_word val1, map_word val2) argument 294 map_word_clr(struct map_info *map, map_word val1, map_word val2) argument 305 map_word_or(struct map_info *map, map_word val1, map_word val2) argument 318 map_word_bitsset(struct map_info *map, map_word val1, map_word val2) argument 329 map_word_load(struct map_info *map, const void *ptr) argument 349 map_word_load_partial(struct map_info *map, map_word orig, const unsigned char *buf, int start, int len) argument 377 map_word_ff(struct map_info *map) argument 392 inline_map_read(struct map_info *map, unsigned long ofs) argument 414 inline_map_write(struct map_info *map, const map_word datum, unsigned long ofs) argument 431 inline_map_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) argument 439 inline_map_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len) argument [all...] |
H A D | cfi_endian.h | 41 #define cpu_to_cfi8(map, x) (x) 42 #define cfi8_to_cpu(map, x) (x) 43 #define cpu_to_cfi16(map, x) _cpu_to_cfi(16, (map)->swap, (x)) 44 #define cpu_to_cfi32(map, x) _cpu_to_cfi(32, (map)->swap, (x)) 45 #define cpu_to_cfi64(map, x) _cpu_to_cfi(64, (map)->swap, (x)) 46 #define cfi16_to_cpu(map, x) _cfi_to_cpu(16, (map) [all...] |
H A D | pfow.h | 99 static inline void send_pfow_command(struct map_info *map, argument 103 int bits_per_chip = map_bankwidth(map) * 8; 105 struct lpddr_private *lpddr = map->fldrv_priv; 108 map_write(map, CMD(cmd_code), map->pfow_base + PFOW_COMMAND_CODE); 109 map_write(map, CMD(adr & ((1<<bits_per_chip) - 1)), 110 map->pfow_base + PFOW_COMMAND_ADDRESS_L); 111 map_write(map, CMD(adr>>bits_per_chip), 112 map->pfow_base + PFOW_COMMAND_ADDRESS_H); 114 map_write(map, CM [all...] |
H A D | gen_probe.h | 25 #include <linux/mtd/map.h> 31 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 D | cfi.h | 28 #include <linux/mtd/map.h> 303 struct map_info *map, struct cfi_private *cfi) 305 unsigned bankwidth = map_bankwidth(map); 328 static inline map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cfi_private *cfi) argument 339 if (map_bankwidth_is_large(map)) { 341 words_per_bus = (map_bankwidth(map)) / wordwidth; // i.e. normally 1 343 wordwidth = map_bankwidth(map); 347 chip_mode = map_bankwidth(map) / cfi_interleave(cfi); 348 chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map); 358 onecmd = cpu_to_cfi16(map, cm 302 cfi_build_cmd_addr(uint32_t cmd_ofs, struct map_info *map, struct cfi_private *cfi) argument 392 cfi_merge_status(map_word val, struct map_info *map, struct cfi_private *cfi) argument 461 cfi_send_gen_cmd(u_char cmd, uint32_t cmd_addr, uint32_t base, struct map_info *map, struct cfi_private *cfi, int type, map_word *prev_val) argument 477 cfi_read_query(struct map_info *map, uint32_t addr) argument 493 cfi_read_query16(struct map_info *map, uint32_t addr) argument [all...] |
H A D | qinfo.h | 4 #include <linux/mtd/map.h> 12 /* lpddr_private describes lpddr flash chip in memory map 78 static inline map_word lpddr_build_cmd(u_long cmd, struct map_info *map) argument 85 #define CMD(x) lpddr_build_cmd(x, map)
|
/include/net/sctp/ |
H A D | tsnmap.h | 109 void sctp_tsnmap_free(struct sctp_tsnmap *map); 123 void sctp_tsnmap_skip(struct sctp_tsnmap *map, __u32 tsn); 126 static inline __u32 sctp_tsnmap_get_ctsn(const struct sctp_tsnmap *map) argument 128 return map->cumulative_tsn_ack_point; 132 static inline __u32 sctp_tsnmap_get_max_tsn_seen(const struct sctp_tsnmap *map) argument 134 return map->max_tsn_seen; 138 static inline __u16 sctp_tsnmap_num_dups(struct sctp_tsnmap *map) argument 140 return map->num_dup_tsns; 144 static inline __be32 *sctp_tsnmap_get_dups(struct sctp_tsnmap *map) argument 146 map 158 sctp_tsnmap_has_gap(const struct sctp_tsnmap *map) argument 166 sctp_tsnmap_mark_dup(struct sctp_tsnmap *map, __u32 tsn) argument [all...] |
/include/linux/crush/ |
H A D | mapper.h | 13 extern int crush_find_rule(struct crush_map *map, int pool, int type, int size); 14 extern int crush_do_rule(struct crush_map *map,
|
H A D | crush.h | 148 * CRUSH map includes all buckets, rules, etc. 172 extern void crush_calc_parents(struct crush_map *map); 178 extern void crush_destroy(struct crush_map *map);
|
/include/linux/ |
H A D | regmap.h | 5 * Register map access API 47 * Configuration for the register map of a device. 110 * Description of a hardware bus for the register map infrastructure. 143 void regmap_exit(struct regmap *map); 144 int regmap_reinit_cache(struct regmap *map, 146 int regmap_write(struct regmap *map, unsigned int reg, unsigned int val); 147 int regmap_raw_write(struct regmap *map, unsigned int reg, 149 int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val, 151 int regmap_read(struct regmap *map, unsigned int reg, unsigned int *val); 152 int regmap_raw_read(struct regmap *map, unsigne 230 regmap_write(struct regmap *map, unsigned int reg, unsigned int val) argument 237 regmap_raw_write(struct regmap *map, unsigned int reg, const void *val, size_t val_len) argument 244 regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val, size_t val_count) argument 251 regmap_read(struct regmap *map, unsigned int reg, unsigned int *val) argument 258 regmap_raw_read(struct regmap *map, unsigned int reg, void *val, size_t val_len) argument 265 regmap_bulk_read(struct regmap *map, unsigned int reg, void *val, size_t val_count) argument 272 regmap_update_bits(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val) argument 279 regmap_update_bits_check(struct regmap *map, unsigned int reg, unsigned int mask, unsigned int val, bool *change) argument 288 regmap_get_val_bytes(struct regmap *map) argument 294 regcache_sync(struct regmap *map) argument 300 regcache_sync_region(struct regmap *map, unsigned int min, unsigned int max) argument 307 regcache_cache_only(struct regmap *map, bool enable) argument 312 regcache_cache_bypass(struct regmap *map, bool enable) argument 317 regcache_mark_dirty(struct regmap *map) argument 322 regmap_register_patch(struct regmap *map, const struct reg_default *regs, int num_regs) argument [all...] |
H A D | iommu-helper.h | 19 extern unsigned long iommu_area_alloc(unsigned long *map, unsigned long size,
|
H A D | map_to_7segment.h | 36 * Register a map variable, and fill it with a character set: 44 * In device drivers it is recommended, if required, to make the char map 78 static __inline__ int map_to_seg7(struct seg7_conversion_map *map, int c) argument 80 return c >= 0 && c < sizeof(map->table) ? map->table[c] : -EINVAL; 154 /* This set tries to map as close as possible to the visible characteristics 168 /* This set tries to map as close as possible to the symbolic characteristics
|
H A D | mmiotrace.h | 108 extern void mmio_trace_mapping(struct mmiotrace_map *map);
|
H A D | pipe_fs_i.h | 66 * ->map() 70 * That is, ->map() must be called on a confirmed buffer, 84 * ->map() returns a virtual address mapping of the pipe buffer. 86 * mapping or not. The atomic map is faster, however you can't take 89 * a non-atomic map. ->map() uses the KM_USER0 atomic slot for 90 * atomic maps, so you can't map more than one pipe_buffer at once 95 void * (*map)(struct pipe_inode_info *, struct pipe_buffer *, int); member in struct:pipe_buf_operations 98 * Undoes ->map(), finishes the virtual mapping of the pipe buffer.
|
H A D | uio_driver.h | 33 * @map: for use by the UIO core only. 41 struct uio_map *map; member in struct:uio_mem
|
H A D | mISDNif.h | 338 test_channelmap(u_int nr, u_char *map) argument 341 return map[nr >> 3] & (1 << (nr & 7)); 347 set_channelmap(u_int nr, u_char *map) argument 349 map[nr >> 3] |= (1 << (nr & 7)); 353 clear_channelmap(u_int nr, u_char *map) argument 355 map[nr >> 3] &= ~(1 << (nr & 7));
|
/include/linux/ceph/ |
H A D | osdmap.h | 10 * The osd map describes the current membership of the osd cluster and 16 * Each map version is identified by an epoch, which increases monotonically. 18 * The map can be updated either via an incremental map (diff) describing 19 * the change between two successive epochs, or as a fully encoded map. 53 /* the CRUSH map specifies the mapping of placement groups to 87 static inline int ceph_osd_is_up(struct ceph_osdmap *map, int osd) argument 89 return (osd < map->max_osd) && (map->osd_state[osd] & CEPH_OSD_UP); 92 static inline bool ceph_osdmap_flag(struct ceph_osdmap *map, in argument 99 ceph_osd_addr(struct ceph_osdmap *map, int osd) argument [all...] |
/include/drm/ |
H A D | drm_os_linux.h | 27 #define DRM_READ8(map, offset) readb(((void __iomem *)(map)->handle) + (offset)) 29 #define DRM_READ16(map, offset) readw(((void __iomem *)(map)->handle) + (offset)) 31 #define DRM_READ32(map, offset) readl(((void __iomem *)(map)->handle) + (offset)) 33 #define DRM_WRITE8(map, offset, val) writeb(val, ((void __iomem *)(map)->handle) + (offset)) 35 #define DRM_WRITE16(map, offset, val) writew(val, ((void __iomem *)(map) [all...] |
/include/xen/ |
H A D | grant_table.h | 141 gnttab_set_map_op(struct gnttab_map_grant_ref *map, phys_addr_t addr, argument 145 map->host_addr = addr; 147 map->host_addr = __pa(addr); 149 map->host_addr = addr; 151 map->flags = flags; 152 map->ref = ref; 153 map->dom = domid; 182 #define gnttab_map_vaddr(map) ((void *)(map.host_virt_addr))
|
/include/media/ |
H A D | rc-map.h | 2 * rc-map.h - define RC map names used by RC drivers 48 struct rc_map map; member in struct:rc_map_list 51 /* Routines from rc-map.c */ 53 int rc_map_register(struct rc_map_list *map); 54 void rc_map_unregister(struct rc_map_list *map);
|
/include/linux/netfilter/ipset/ |
H A D | ip_set_timeout.h | 25 #define opt_timeout(opt, map) \ 26 (with_timeout((opt)->timeout) ? (opt)->timeout : (map)->timeout)
|
/include/drm/ttm/ |
H A D | ttm_bo_api.h | 631 * @map: A struct ttm_bo_kmap_obj returned from ttm_bo_kmap. 633 * virtual map is io memory, 0 if normal memory. 640 static inline void *ttm_kmap_obj_virtual(struct ttm_bo_kmap_obj *map, argument 643 *is_iomem = !!(map->bo_kmap_type & TTM_BO_MAP_IOMEM_MASK); 644 return map->virtual; 651 * @start_page: The first page to map. 652 * @num_pages: Number of pages to map. 653 * @map: pointer to a struct ttm_bo_kmap_obj representing the map. 665 unsigned long num_pages, struct ttm_bo_kmap_obj *map); [all...] |
/include/trace/events/ |
H A D | btrfs.h | 160 TP_PROTO(struct btrfs_root *root, struct extent_map *map), 162 TP_ARGS(root, map), 178 __entry->start = map->start; 179 __entry->len = map->len; 180 __entry->orig_start = map->orig_start; 181 __entry->block_start = map->block_start; 182 __entry->block_len = map->block_len; 183 __entry->flags = map->flags; 184 __entry->refs = atomic_read(&map->refs); 185 __entry->compress_type = map [all...] |
/include/linux/pinctrl/ |
H A D | machine.h | 55 * struct pinctrl_map - boards/machines shall provide this map for devices 58 * same name as the pin controllers own dev_name(), the map entry will be 60 * @name: the name of this specific map entry for the particular machine. 155 extern int pinctrl_register_mappings(struct pinctrl_map const *map, 160 static inline int pinctrl_register_mappings(struct pinctrl_map const *map, argument
|
/include/pcmcia/ |
H A D | ss.h | 88 u_char map; member in struct:pccard_io_map 95 u_char map; member in struct:pccard_mem_map
|