map_bankwidth 1361 drivers/mtd/chips/cfi_cmdset_0001.c cmd_addr = adr & ~(map_bankwidth(map)-1); map_bankwidth 1488 drivers/mtd/chips/cfi_cmdset_0001.c cmd_addr = adr & ~(map_bankwidth(map)-1); map_bankwidth 1575 drivers/mtd/chips/cfi_cmdset_0001.c XIP_INVAL_CACHED_RANGE(map, adr, map_bankwidth(map)); map_bankwidth 1583 drivers/mtd/chips/cfi_cmdset_0001.c adr, map_bankwidth(map), map_bankwidth 1635 drivers/mtd/chips/cfi_cmdset_0001.c if (ofs & (map_bankwidth(map)-1)) { map_bankwidth 1636 drivers/mtd/chips/cfi_cmdset_0001.c unsigned long bus_ofs = ofs & ~(map_bankwidth(map)-1); map_bankwidth 1641 drivers/mtd/chips/cfi_cmdset_0001.c n = min_t(int, len, map_bankwidth(map)-gap); map_bankwidth 1663 drivers/mtd/chips/cfi_cmdset_0001.c while(len >= map_bankwidth(map)) { map_bankwidth 1671 drivers/mtd/chips/cfi_cmdset_0001.c ofs += map_bankwidth(map); map_bankwidth 1672 drivers/mtd/chips/cfi_cmdset_0001.c buf += map_bankwidth(map); map_bankwidth 1673 drivers/mtd/chips/cfi_cmdset_0001.c (*retlen) += map_bankwidth(map); map_bankwidth 1674 drivers/mtd/chips/cfi_cmdset_0001.c len -= map_bankwidth(map); map_bankwidth 1684 drivers/mtd/chips/cfi_cmdset_0001.c if (len & (map_bankwidth(map)-1)) { map_bankwidth 1775 drivers/mtd/chips/cfi_cmdset_0001.c word_gap = (-adr & (map_bankwidth(map)-1)); map_bankwidth 1776 drivers/mtd/chips/cfi_cmdset_0001.c words = DIV_ROUND_UP(len - word_gap, map_bankwidth(map)); map_bankwidth 1780 drivers/mtd/chips/cfi_cmdset_0001.c word_gap = map_bankwidth(map) - word_gap; map_bankwidth 1792 drivers/mtd/chips/cfi_cmdset_0001.c int n = map_bankwidth(map) - word_gap; map_bankwidth 1798 drivers/mtd/chips/cfi_cmdset_0001.c if (!word_gap && len < map_bankwidth(map)) map_bankwidth 1807 drivers/mtd/chips/cfi_cmdset_0001.c if (!len || word_gap == map_bankwidth(map)) { map_bankwidth 1809 drivers/mtd/chips/cfi_cmdset_0001.c adr += map_bankwidth(map); map_bankwidth 2261 drivers/mtd/chips/cfi_cmdset_0001.c unsigned long bus_ofs = offset & ~(map_bankwidth(map)-1); map_bankwidth 2263 drivers/mtd/chips/cfi_cmdset_0001.c int n = min_t(int, size, map_bankwidth(map)-gap); map_bankwidth 2377 drivers/mtd/chips/cfi_cmdset_0001.c map_bankwidth(map), map_bankwidth 1217 drivers/mtd/chips/cfi_cmdset_0002.c cmd_addr = adr & ~(map_bankwidth(map)-1); map_bankwidth 1396 drivers/mtd/chips/cfi_cmdset_0002.c unsigned long bus_ofs = adr & ~(map_bankwidth(map)-1); map_bankwidth 1398 drivers/mtd/chips/cfi_cmdset_0002.c int n = min_t(int, len, map_bankwidth(map) - gap); map_bankwidth 1401 drivers/mtd/chips/cfi_cmdset_0002.c if (n != map_bankwidth(map)) { map_bankwidth 1403 drivers/mtd/chips/cfi_cmdset_0002.c otp_enter(map, chip, bus_ofs, map_bankwidth(map)); map_bankwidth 1405 drivers/mtd/chips/cfi_cmdset_0002.c otp_exit(map, chip, bus_ofs, map_bankwidth(map)); map_bankwidth 1674 drivers/mtd/chips/cfi_cmdset_0002.c adr, map_bankwidth(map), map_bankwidth 1735 drivers/mtd/chips/cfi_cmdset_0002.c otp_enter(map, chip, adr, map_bankwidth(map)); map_bankwidth 1745 drivers/mtd/chips/cfi_cmdset_0002.c otp_exit(map, chip, adr, map_bankwidth(map)); map_bankwidth 1776 drivers/mtd/chips/cfi_cmdset_0002.c XIP_INVAL_CACHED_RANGE(map, adr, map_bankwidth(map)); map_bankwidth 1835 drivers/mtd/chips/cfi_cmdset_0002.c if (ofs & (map_bankwidth(map)-1)) { map_bankwidth 1836 drivers/mtd/chips/cfi_cmdset_0002.c unsigned long bus_ofs = ofs & ~(map_bankwidth(map)-1); map_bankwidth 1861 drivers/mtd/chips/cfi_cmdset_0002.c n = min_t(int, len, map_bankwidth(map)-i); map_bankwidth 1884 drivers/mtd/chips/cfi_cmdset_0002.c while(len >= map_bankwidth(map)) { map_bankwidth 1894 drivers/mtd/chips/cfi_cmdset_0002.c ofs += map_bankwidth(map); map_bankwidth 1895 drivers/mtd/chips/cfi_cmdset_0002.c buf += map_bankwidth(map); map_bankwidth 1896 drivers/mtd/chips/cfi_cmdset_0002.c (*retlen) += map_bankwidth(map); map_bankwidth 1897 drivers/mtd/chips/cfi_cmdset_0002.c len -= map_bankwidth(map); map_bankwidth 1909 drivers/mtd/chips/cfi_cmdset_0002.c if (len & (map_bankwidth(map)-1)) { map_bankwidth 2062 drivers/mtd/chips/cfi_cmdset_0002.c words = len / map_bankwidth(map); map_bankwidth 2066 drivers/mtd/chips/cfi_cmdset_0002.c while(z < words * map_bankwidth(map)) { map_bankwidth 2070 drivers/mtd/chips/cfi_cmdset_0002.c z += map_bankwidth(map); map_bankwidth 2071 drivers/mtd/chips/cfi_cmdset_0002.c buf += map_bankwidth(map); map_bankwidth 2073 drivers/mtd/chips/cfi_cmdset_0002.c z -= map_bankwidth(map); map_bankwidth 2082 drivers/mtd/chips/cfi_cmdset_0002.c adr, map_bankwidth(map), map_bankwidth 2114 drivers/mtd/chips/cfi_cmdset_0002.c if (ofs & (map_bankwidth(map)-1)) { map_bankwidth 2115 drivers/mtd/chips/cfi_cmdset_0002.c size_t local_len = (-ofs)&(map_bankwidth(map)-1); map_bankwidth 2135 drivers/mtd/chips/cfi_cmdset_0002.c while (len >= map_bankwidth(map) * 2) { map_bankwidth 2141 drivers/mtd/chips/cfi_cmdset_0002.c if (size % map_bankwidth(map)) map_bankwidth 2142 drivers/mtd/chips/cfi_cmdset_0002.c size -= size % map_bankwidth(map); map_bankwidth 2326 drivers/mtd/chips/cfi_cmdset_0002.c if (ofs & (map_bankwidth(map) - 1)) { map_bankwidth 2327 drivers/mtd/chips/cfi_cmdset_0002.c unsigned long bus_ofs = ofs & ~(map_bankwidth(map) - 1); map_bankwidth 2340 drivers/mtd/chips/cfi_cmdset_0002.c n = min_t(int, len, map_bankwidth(map) - i); map_bankwidth 2363 drivers/mtd/chips/cfi_cmdset_0002.c while (len >= map_bankwidth(map)) { map_bankwidth 2373 drivers/mtd/chips/cfi_cmdset_0002.c ofs += map_bankwidth(map); map_bankwidth 2374 drivers/mtd/chips/cfi_cmdset_0002.c buf += map_bankwidth(map); map_bankwidth 2375 drivers/mtd/chips/cfi_cmdset_0002.c (*retlen) += map_bankwidth(map); map_bankwidth 2376 drivers/mtd/chips/cfi_cmdset_0002.c len -= map_bankwidth(map); map_bankwidth 2389 drivers/mtd/chips/cfi_cmdset_0002.c if (len & (map_bankwidth(map) - 1)) { map_bankwidth 260 drivers/mtd/chips/cfi_cmdset_0020.c cmd_addr = adr & ~(map_bankwidth(map)-1); map_bankwidth 431 drivers/mtd/chips/cfi_cmdset_0020.c if (adr & (map_bankwidth(map)-1)) map_bankwidth 522 drivers/mtd/chips/cfi_cmdset_0020.c map_write(map, CMD(len/map_bankwidth(map)-1), cmd_adr ); map_bankwidth 526 drivers/mtd/chips/cfi_cmdset_0020.c z += map_bankwidth(map), buf += map_bankwidth(map)) { map_bankwidth 622 drivers/mtd/chips/cfi_cmdset_0020.c printk("%s: map_bankwidth(map)[%x]\n", __func__, map_bankwidth(map)); map_bankwidth 43 drivers/mtd/chips/cfi_util.c unsigned bankwidth = map_bankwidth(map); map_bankwidth 80 drivers/mtd/chips/cfi_util.c words_per_bus = (map_bankwidth(map)) / wordwidth; // i.e. normally 1 map_bankwidth 82 drivers/mtd/chips/cfi_util.c wordwidth = map_bankwidth(map); map_bankwidth 86 drivers/mtd/chips/cfi_util.c chip_mode = map_bankwidth(map) / cfi_interleave(cfi); map_bankwidth 87 drivers/mtd/chips/cfi_util.c chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map); map_bankwidth 146 drivers/mtd/chips/cfi_util.c words_per_bus = (map_bankwidth(map)) / wordwidth; // i.e. normally 1 map_bankwidth 148 drivers/mtd/chips/cfi_util.c wordwidth = map_bankwidth(map); map_bankwidth 152 drivers/mtd/chips/cfi_util.c chip_mode = map_bankwidth(map) / cfi_interleave(cfi); map_bankwidth 153 drivers/mtd/chips/cfi_util.c chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map); map_bankwidth 168 drivers/mtd/chips/gen_probe.c int min_chips = (map_bankwidth(map)/4?:1); /* At most 4-bytes wide. */ map_bankwidth 169 drivers/mtd/chips/gen_probe.c int max_chips = map_bankwidth(map); /* And minimum 1 */ map_bankwidth 181 drivers/mtd/chips/gen_probe.c type = map_bankwidth(map) / nr_chips; map_bankwidth 2178 drivers/mtd/chips/jedec_probe.c if ( ((base + probe_offset1 + map_bankwidth(map)) >= map->size) || map_bankwidth 2179 drivers/mtd/chips/jedec_probe.c ((base + probe_offset2 + map_bankwidth(map)) >= map->size)) map_bankwidth 132 drivers/mtd/chips/map_ram.c for (i=0; i<instr->len; i += map_bankwidth(map)) map_bankwidth 396 drivers/mtd/lpddr/lpddr_cmds.c word_gap = (-adr & (map_bankwidth(map)-1)); map_bankwidth 397 drivers/mtd/lpddr/lpddr_cmds.c words = (len - word_gap + map_bankwidth(map) - 1) / map_bankwidth(map); map_bankwidth 401 drivers/mtd/lpddr/lpddr_cmds.c word_gap = map_bankwidth(map) - word_gap; map_bankwidth 412 drivers/mtd/lpddr/lpddr_cmds.c int n = map_bankwidth(map) - word_gap; map_bankwidth 419 drivers/mtd/lpddr/lpddr_cmds.c if (!word_gap && (len < map_bankwidth(map))) map_bankwidth 427 drivers/mtd/lpddr/lpddr_cmds.c if (!len || word_gap == map_bankwidth(map)) { map_bankwidth 429 drivers/mtd/lpddr/lpddr_cmds.c prog_buf_ofs += map_bankwidth(map); map_bankwidth 48 drivers/mtd/lpddr/qinfo_probe.c int bankwidth = map_bankwidth(map) * 8; map_bankwidth 66 drivers/mtd/lpddr/qinfo_probe.c int bits_per_chip = map_bankwidth(map) * 8; map_bankwidth 23 include/linux/mtd/map.h #define map_bankwidth_is_1(map) (map_bankwidth(map) == 1) map_bankwidth 32 include/linux/mtd/map.h # ifdef map_bankwidth map_bankwidth 40 include/linux/mtd/map.h #define map_bankwidth_is_2(map) (map_bankwidth(map) == 2) map_bankwidth 48 include/linux/mtd/map.h # ifdef map_bankwidth map_bankwidth 56 include/linux/mtd/map.h #define map_bankwidth_is_4(map) (map_bankwidth(map) == 4) map_bankwidth 66 include/linux/mtd/map.h #define map_calc_words(map) ((map_bankwidth(map) + (sizeof(unsigned long)-1)) / sizeof(unsigned long)) map_bankwidth 69 include/linux/mtd/map.h # ifdef map_bankwidth map_bankwidth 74 include/linux/mtd/map.h # define map_bankwidth_is_large(map) (map_bankwidth(map) > BITS_PER_LONG/8) map_bankwidth 83 include/linux/mtd/map.h #define map_bankwidth_is_8(map) (map_bankwidth(map) == 8) map_bankwidth 91 include/linux/mtd/map.h # ifdef map_bankwidth map_bankwidth 95 include/linux/mtd/map.h # define map_bankwidth_is_large(map) (map_bankwidth(map) > BITS_PER_LONG/8) map_bankwidth 103 include/linux/mtd/map.h #define map_bankwidth_is_16(map) (map_bankwidth(map) == 16) map_bankwidth 115 include/linux/mtd/map.h # define map_bankwidth_is_large(map) (map_bankwidth(map) > BITS_PER_LONG/8) map_bankwidth 118 include/linux/mtd/map.h #define map_bankwidth_is_32(map) (map_bankwidth(map) == 32) map_bankwidth 125 include/linux/mtd/map.h #ifndef map_bankwidth map_bankwidth 358 include/linux/mtd/map.h bitpos = (map_bankwidth(map) - 1 - i) * 8; map_bankwidth 378 include/linux/mtd/map.h if (map_bankwidth(map) < MAP_FF_LIMIT) { map_bankwidth 379 include/linux/mtd/map.h int bw = 8 * map_bankwidth(map); map_bankwidth 104 include/linux/mtd/pfow.h int bits_per_chip = map_bankwidth(map) * 8;