Home
last modified time | relevance | path

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

/linux-5.19.10/include/linux/mtd/
Dmap.h22 #define map_bankwidth(map) 1 macro
23 #define map_bankwidth_is_1(map) (map_bankwidth(map) == 1)
32 # ifdef map_bankwidth
33 # undef map_bankwidth
34 # define map_bankwidth(map) ((map)->bankwidth) macro
36 # define map_bankwidth(map) 2 macro
40 #define map_bankwidth_is_2(map) (map_bankwidth(map) == 2)
48 # ifdef map_bankwidth
49 # undef map_bankwidth
50 # define map_bankwidth(map) ((map)->bankwidth) macro
[all …]
Dpfow.h104 int bits_per_chip = map_bankwidth(map) * 8; in send_pfow_command()
/linux-5.19.10/drivers/mtd/chips/
Dcfi_util.c43 unsigned bankwidth = map_bankwidth(map); in cfi_build_cmd_addr()
80 words_per_bus = (map_bankwidth(map)) / wordwidth; // i.e. normally 1 in cfi_build_cmd()
82 wordwidth = map_bankwidth(map); in cfi_build_cmd()
86 chip_mode = map_bankwidth(map) / cfi_interleave(cfi); in cfi_build_cmd()
87 chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map); in cfi_build_cmd()
146 words_per_bus = (map_bankwidth(map)) / wordwidth; // i.e. normally 1 in cfi_merge_status()
148 wordwidth = map_bankwidth(map); in cfi_merge_status()
152 chip_mode = map_bankwidth(map) / cfi_interleave(cfi); in cfi_merge_status()
153 chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map); in cfi_merge_status()
Dcfi_cmdset_0002.c1214 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_read_onechip()
1393 unsigned long bus_ofs = adr & ~(map_bankwidth(map)-1); in do_otp_write()
1395 int n = min_t(int, len, map_bankwidth(map) - gap); in do_otp_write()
1398 if (n != map_bankwidth(map)) { in do_otp_write()
1400 otp_enter(map, chip, bus_ofs, map_bankwidth(map)); in do_otp_write()
1402 otp_exit(map, chip, bus_ofs, map_bankwidth(map)); in do_otp_write()
1671 adr, map_bankwidth(map), in do_write_oneword_once()
1732 otp_enter(map, chip, adr, map_bankwidth(map)); in do_write_oneword_start()
1742 otp_exit(map, chip, adr, map_bankwidth(map)); in do_write_oneword_done()
1773 XIP_INVAL_CACHED_RANGE(map, adr, map_bankwidth(map)); in do_write_oneword_retry()
[all …]
Dgen_probe.c167 int min_chips = (map_bankwidth(map)/4?:1); /* At most 4-bytes wide. */ in genprobe_new_chip()
168 int max_chips = map_bankwidth(map); /* And minimum 1 */ in genprobe_new_chip()
180 type = map_bankwidth(map) / nr_chips; in genprobe_new_chip()
Dcfi_cmdset_0001.c1365 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_point_onechip()
1492 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_read_onechip()
1579 XIP_INVAL_CACHED_RANGE(map, adr, map_bankwidth(map)); in do_write_oneword()
1587 adr, map_bankwidth(map), in do_write_oneword()
1639 if (ofs & (map_bankwidth(map)-1)) { in cfi_intelext_write_words()
1640 unsigned long bus_ofs = ofs & ~(map_bankwidth(map)-1); in cfi_intelext_write_words()
1645 n = min_t(int, len, map_bankwidth(map)-gap); in cfi_intelext_write_words()
1667 while(len >= map_bankwidth(map)) { in cfi_intelext_write_words()
1675 ofs += map_bankwidth(map); in cfi_intelext_write_words()
1676 buf += map_bankwidth(map); in cfi_intelext_write_words()
[all …]
Dcfi_cmdset_0020.c260 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_read_onechip()
430 if (adr & (map_bankwidth(map)-1)) in do_write_buffer()
520 map_write(map, CMD(len/map_bankwidth(map)-1), cmd_adr ); in do_write_buffer()
524 z += map_bankwidth(map), buf += map_bankwidth(map)) { in do_write_buffer()
620 printk("%s: map_bankwidth(map)[%x]\n", __func__, map_bankwidth(map)); in cfi_staa_write_buffers()
Dmap_ram.c132 for (i=0; i<instr->len; i += map_bankwidth(map)) in mapram_erase()
Djedec_probe.c2178 if ( ((base + probe_offset1 + map_bankwidth(map)) >= map->size) || in jedec_probe_chip()
2179 ((base + probe_offset2 + map_bankwidth(map)) >= map->size)) in jedec_probe_chip()
/linux-5.19.10/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.c48 int bankwidth = map_bankwidth(map) * 8; in lpddr_get_qinforec_pos()
66 int bits_per_chip = map_bankwidth(map) * 8; in lpddr_info_query()