Home
last modified time | relevance | path

Searched refs:map_bankwidth (Results 1 – 11 of 11) sorted by relevance

/linux-2.6.39/include/linux/mtd/
Dmap.h36 #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 …]
Dcfi.h304 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()
Dpfow.h103 int bits_per_chip = map_bankwidth(map) * 8; in send_pfow_command()
/linux-2.6.39/drivers/mtd/chips/
Dcfi_cmdset_0002.c989 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 …]
Dgen_probe.c170 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()
Dcfi_cmdset_0001.c1304 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 …]
Dmap_ram.c126 for (i=0; i<instr->len; i += map_bankwidth(map)) in mapram_erase()
Dcfi_cmdset_0020.c261 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()
Djedec_probe.c2149 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/
Dlpddr_cmds.c423 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()
Dqinfo_probe.c62 int bankwidth = map_bankwidth(map) * 8; in lpddr_get_qinforec_pos()
80 int bits_per_chip = map_bankwidth(map) * 8; in lpddr_info_query()