Home
last modified time | relevance | path

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

/Linux-v6.6/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-v6.6/drivers/mtd/chips/
Dcfi_util.c42 unsigned bankwidth = map_bankwidth(map); in cfi_build_cmd_addr()
79 words_per_bus = (map_bankwidth(map)) / wordwidth; // i.e. normally 1 in cfi_build_cmd()
81 wordwidth = map_bankwidth(map); in cfi_build_cmd()
85 chip_mode = map_bankwidth(map) / cfi_interleave(cfi); in cfi_build_cmd()
86 chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map); in cfi_build_cmd()
145 words_per_bus = (map_bankwidth(map)) / wordwidth; // i.e. normally 1 in cfi_merge_status()
147 wordwidth = map_bankwidth(map); in cfi_merge_status()
151 chip_mode = map_bankwidth(map) / cfi_interleave(cfi); in cfi_merge_status()
152 chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map); in cfi_merge_status()
Dcfi_cmdset_0002.c1212 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_read_onechip()
1391 unsigned long bus_ofs = adr & ~(map_bankwidth(map)-1); in do_otp_write()
1393 int n = min_t(int, len, map_bankwidth(map) - gap); in do_otp_write()
1396 if (n != map_bankwidth(map)) { in do_otp_write()
1398 otp_enter(map, chip, bus_ofs, map_bankwidth(map)); in do_otp_write()
1400 otp_exit(map, chip, bus_ofs, map_bankwidth(map)); in do_otp_write()
1669 adr, map_bankwidth(map), in do_write_oneword_once()
1730 otp_enter(map, chip, adr, map_bankwidth(map)); in do_write_oneword_start()
1740 otp_exit(map, chip, adr, map_bankwidth(map)); in do_write_oneword_done()
1771 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.c1366 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_point_onechip()
1493 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_read_onechip()
1580 XIP_INVAL_CACHED_RANGE(map, adr, map_bankwidth(map)); in do_write_oneword()
1588 adr, map_bankwidth(map), in do_write_oneword()
1640 if (ofs & (map_bankwidth(map)-1)) { in cfi_intelext_write_words()
1641 unsigned long bus_ofs = ofs & ~(map_bankwidth(map)-1); in cfi_intelext_write_words()
1646 n = min_t(int, len, map_bankwidth(map)-gap); in cfi_intelext_write_words()
1668 while(len >= map_bankwidth(map)) { in cfi_intelext_write_words()
1676 ofs += map_bankwidth(map); in cfi_intelext_write_words()
1677 buf += map_bankwidth(map); in cfi_intelext_write_words()
[all …]
Dcfi_cmdset_0020.c261 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_read_onechip()
431 if (adr & (map_bankwidth(map)-1)) in do_write_buffer()
521 map_write(map, CMD(len/map_bankwidth(map)-1), cmd_adr ); in do_write_buffer()
525 z += map_bankwidth(map), buf += map_bankwidth(map)) { in do_write_buffer()
621 printk("%s: map_bankwidth(map)[%x]\n", __func__, map_bankwidth(map)); in cfi_staa_write_buffers()
Dmap_ram.c133 for (i=0; i<instr->len; i += map_bankwidth(map)) in mapram_erase()
Djedec_probe.c2179 if ( ((base + probe_offset1 + map_bankwidth(map)) >= map->size) || in jedec_probe_chip()
2180 ((base + probe_offset2 + map_bankwidth(map)) >= map->size)) in jedec_probe_chip()
/Linux-v6.6/drivers/mtd/lpddr/
Dlpddr_cmds.c423 word_gap = (-adr & (map_bankwidth(map)-1)); in do_write_buffer()
425 word_gap = map_bankwidth(map) - word_gap; in do_write_buffer()
436 int n = map_bankwidth(map) - word_gap; in do_write_buffer()
443 if (!word_gap && (len < map_bankwidth(map))) in do_write_buffer()
451 if (!len || word_gap == map_bankwidth(map)) { in do_write_buffer()
453 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()