Lines Matching refs:map_bankwidth
1214 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()
1832 if (ofs & (map_bankwidth(map)-1)) { in cfi_amdstd_write_words()
1833 unsigned long bus_ofs = ofs & ~(map_bankwidth(map)-1); in cfi_amdstd_write_words()
1858 n = min_t(int, len, map_bankwidth(map)-i); in cfi_amdstd_write_words()
1881 while(len >= map_bankwidth(map)) { in cfi_amdstd_write_words()
1891 ofs += map_bankwidth(map); in cfi_amdstd_write_words()
1892 buf += map_bankwidth(map); in cfi_amdstd_write_words()
1893 (*retlen) += map_bankwidth(map); in cfi_amdstd_write_words()
1894 len -= map_bankwidth(map); in cfi_amdstd_write_words()
1906 if (len & (map_bankwidth(map)-1)) { in cfi_amdstd_write_words()
2059 words = len / map_bankwidth(map); in do_write_buffer()
2063 while(z < words * map_bankwidth(map)) { in do_write_buffer()
2067 z += map_bankwidth(map); in do_write_buffer()
2068 buf += map_bankwidth(map); in do_write_buffer()
2070 z -= map_bankwidth(map); in do_write_buffer()
2079 adr, map_bankwidth(map), in do_write_buffer()
2111 if (ofs & (map_bankwidth(map)-1)) { in cfi_amdstd_write_buffers()
2112 size_t local_len = (-ofs)&(map_bankwidth(map)-1); in cfi_amdstd_write_buffers()
2132 while (len >= map_bankwidth(map) * 2) { in cfi_amdstd_write_buffers()
2138 if (size % map_bankwidth(map)) in cfi_amdstd_write_buffers()
2139 size -= size % map_bankwidth(map); in cfi_amdstd_write_buffers()
2323 if (ofs & (map_bankwidth(map) - 1)) { in cfi_amdstd_panic_write()
2324 unsigned long bus_ofs = ofs & ~(map_bankwidth(map) - 1); in cfi_amdstd_panic_write()
2337 n = min_t(int, len, map_bankwidth(map) - i); in cfi_amdstd_panic_write()
2360 while (len >= map_bankwidth(map)) { in cfi_amdstd_panic_write()
2370 ofs += map_bankwidth(map); in cfi_amdstd_panic_write()
2371 buf += map_bankwidth(map); in cfi_amdstd_panic_write()
2372 (*retlen) += map_bankwidth(map); in cfi_amdstd_panic_write()
2373 len -= map_bankwidth(map); in cfi_amdstd_panic_write()
2386 if (len & (map_bankwidth(map) - 1)) { in cfi_amdstd_panic_write()