Searched refs:map_bankwidth (Results 1 – 11 of 11) sorted by relevance
/linux-2.6.39/include/linux/mtd/ |
D | map.h | 36 #define map_bankwidth(map) 1 macro 37 #define map_bankwidth_is_1(map) (map_bankwidth(map) == 1) 46 # ifdef map_bankwidth 47 # undef map_bankwidth 48 # define map_bankwidth(map) ((map)->bankwidth) macro 50 # define map_bankwidth(map) 2 macro 54 #define map_bankwidth_is_2(map) (map_bankwidth(map) == 2) 62 # ifdef map_bankwidth 63 # undef map_bankwidth 64 # define map_bankwidth(map) ((map)->bankwidth) macro [all …]
|
D | cfi.h | 304 unsigned bankwidth = map_bankwidth(map); in cfi_build_cmd_addr() 340 words_per_bus = (map_bankwidth(map)) / wordwidth; // i.e. normally 1 in cfi_build_cmd() 342 wordwidth = map_bankwidth(map); in cfi_build_cmd() 346 chip_mode = map_bankwidth(map) / cfi_interleave(cfi); in cfi_build_cmd() 347 chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map); in cfi_build_cmd() 404 words_per_bus = (map_bankwidth(map)) / wordwidth; // i.e. normally 1 in cfi_merge_status() 406 wordwidth = map_bankwidth(map); in cfi_merge_status() 410 chip_mode = map_bankwidth(map) / cfi_interleave(cfi); in cfi_merge_status() 411 chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map); in cfi_merge_status()
|
D | pfow.h | 103 int bits_per_chip = map_bankwidth(map) * 8; in send_pfow_command()
|
/linux-2.6.39/drivers/mtd/chips/ |
D | cfi_cmdset_0002.c | 989 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_read_onechip() 1184 XIP_INVAL_CACHED_RANGE(map, adr, map_bankwidth(map)); in do_write_oneword() 1195 adr, map_bankwidth(map), in do_write_oneword() 1268 if (ofs & (map_bankwidth(map)-1)) { in cfi_amdstd_write_words() 1269 unsigned long bus_ofs = ofs & ~(map_bankwidth(map)-1); in cfi_amdstd_write_words() 1294 n = min_t(int, len, map_bankwidth(map)-i); in cfi_amdstd_write_words() 1317 while(len >= map_bankwidth(map)) { in cfi_amdstd_write_words() 1327 ofs += map_bankwidth(map); in cfi_amdstd_write_words() 1328 buf += map_bankwidth(map); in cfi_amdstd_write_words() 1329 (*retlen) += map_bankwidth(map); in cfi_amdstd_write_words() [all …]
|
D | gen_probe.c | 170 int min_chips = (map_bankwidth(map)/4?:1); /* At most 4-bytes wide. */ in genprobe_new_chip() 171 int max_chips = map_bankwidth(map); /* And minimum 1 */ in genprobe_new_chip() 183 type = map_bankwidth(map) / nr_chips; in genprobe_new_chip()
|
D | cfi_cmdset_0001.c | 1304 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_point_onechip() 1428 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_read_onechip() 1517 XIP_INVAL_CACHED_RANGE(map, adr, map_bankwidth(map)); in do_write_oneword() 1525 adr, map_bankwidth(map), in do_write_oneword() 1580 if (ofs & (map_bankwidth(map)-1)) { in cfi_intelext_write_words() 1581 unsigned long bus_ofs = ofs & ~(map_bankwidth(map)-1); in cfi_intelext_write_words() 1586 n = min_t(int, len, map_bankwidth(map)-gap); in cfi_intelext_write_words() 1608 while(len >= map_bankwidth(map)) { in cfi_intelext_write_words() 1616 ofs += map_bankwidth(map); in cfi_intelext_write_words() 1617 buf += map_bankwidth(map); in cfi_intelext_write_words() [all …]
|
D | map_ram.c | 126 for (i=0; i<instr->len; i += map_bankwidth(map)) in mapram_erase()
|
D | cfi_cmdset_0020.c | 261 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_read_onechip() 432 if (adr & (map_bankwidth(map)-1)) in do_write_buffer() 522 map_write(map, CMD(len/map_bankwidth(map)-1), cmd_adr ); in do_write_buffer() 526 z += map_bankwidth(map), buf += map_bankwidth(map)) { in do_write_buffer() 626 printk("%s: map_bankwidth(map)[%x]\n", __func__, map_bankwidth(map)); in cfi_staa_write_buffers()
|
D | jedec_probe.c | 2149 if ( ((base + probe_offset1 + map_bankwidth(map)) >= map->size) || in jedec_probe_chip() 2150 ((base + probe_offset2 + map_bankwidth(map)) >= map->size)) in jedec_probe_chip()
|
/linux-2.6.39/drivers/mtd/lpddr/ |
D | lpddr_cmds.c | 423 word_gap = (-adr & (map_bankwidth(map)-1)); in do_write_buffer() 424 words = (len - word_gap + map_bankwidth(map) - 1) / map_bankwidth(map); in do_write_buffer() 428 word_gap = map_bankwidth(map) - word_gap; in do_write_buffer() 439 int n = map_bankwidth(map) - word_gap; in do_write_buffer() 446 if (!word_gap && (len < map_bankwidth(map))) in do_write_buffer() 454 if (!len || word_gap == map_bankwidth(map)) { in do_write_buffer() 456 prog_buf_ofs += map_bankwidth(map); in do_write_buffer()
|
D | qinfo_probe.c | 62 int bankwidth = map_bankwidth(map) * 8; in lpddr_get_qinforec_pos() 80 int bits_per_chip = map_bankwidth(map) * 8; in lpddr_info_query()
|