Lines Matching +full:no +full:- +full:map
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright © 2000-2010 David Woodhouse <dwmw2@infradead.org> et al.
14 #include <linux/mtd/map.h>
28 # define cfi_interleave(cfi) ((cfi)->interleave)
40 # define cfi_interleave(cfi) ((cfi)->interleave)
52 # define cfi_interleave(cfi) ((cfi)->interleave)
62 #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
152 /* Vendor-Specific PRI for Intel/Sharp Extended Command Set (0x0001) */
159 block follows - FIXME - not currently supported */
205 /* Vendor-Specific PRI for AMD/Fujitsu Extended Command Set (0x0002) */
211 uint8_t SiliconRevision; /* bits 1-0: Address Sensitive Unlock */
231 /* Vendor-Specific PRI for Atmel chips (command set 0x0002) */
290 struct flchip chips[]; /* per-chip data structure for each chip */
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()
314 return cfi16_to_cpu(map, val.x[0]); in cfi_read_query()
316 /* No point in a 64-bit byteswap since that would just be in cfi_read_query()
319 return cfi32_to_cpu(map, val.x[0]); in cfi_read_query()
323 static inline uint16_t cfi_read_query16(struct map_info *map, uint32_t addr) in cfi_read_query16() argument
325 map_word val = map_read(map, addr); in cfi_read_query16()
327 if (map_bankwidth_is_1(map)) { in cfi_read_query16()
329 } else if (map_bankwidth_is_2(map)) { in cfi_read_query16()
330 return cfi16_to_cpu(map, val.x[0]); in cfi_read_query16()
332 /* No point in a 64-bit byteswap since that would just be in cfi_read_query16()
335 return cfi32_to_cpu(map, val.x[0]); 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,
348 struct cfi_extquery *cfi_read_pri(struct map_info *map, uint16_t adr, uint16_t size,
380 typedef int (*varsize_frob_t)(struct map_info *map, struct flchip *chip,