Lines Matching refs:map_bankwidth
1215 cmd_addr = adr & ~(map_bankwidth(map)-1); in do_read_onechip()
1394 unsigned long bus_ofs = adr & ~(map_bankwidth(map)-1); in do_otp_write()
1396 int n = min_t(int, len, map_bankwidth(map) - gap); in do_otp_write()
1399 if (n != map_bankwidth(map)) { in do_otp_write()
1401 otp_enter(map, chip, bus_ofs, map_bankwidth(map)); in do_otp_write()
1403 otp_exit(map, chip, bus_ofs, map_bankwidth(map)); in do_otp_write()
1672 adr, map_bankwidth(map), in do_write_oneword_once()
1733 otp_enter(map, chip, adr, map_bankwidth(map)); in do_write_oneword_start()
1743 otp_exit(map, chip, adr, map_bankwidth(map)); in do_write_oneword_done()
1774 XIP_INVAL_CACHED_RANGE(map, adr, map_bankwidth(map)); in do_write_oneword_retry()
1833 if (ofs & (map_bankwidth(map)-1)) { in cfi_amdstd_write_words()
1834 unsigned long bus_ofs = ofs & ~(map_bankwidth(map)-1); in cfi_amdstd_write_words()
1859 n = min_t(int, len, map_bankwidth(map)-i); in cfi_amdstd_write_words()
1882 while(len >= map_bankwidth(map)) { in cfi_amdstd_write_words()
1892 ofs += map_bankwidth(map); in cfi_amdstd_write_words()
1893 buf += map_bankwidth(map); in cfi_amdstd_write_words()
1894 (*retlen) += map_bankwidth(map); in cfi_amdstd_write_words()
1895 len -= map_bankwidth(map); in cfi_amdstd_write_words()
1907 if (len & (map_bankwidth(map)-1)) { in cfi_amdstd_write_words()
2060 words = len / map_bankwidth(map); in do_write_buffer()
2064 while(z < words * map_bankwidth(map)) { in do_write_buffer()
2068 z += map_bankwidth(map); in do_write_buffer()
2069 buf += map_bankwidth(map); in do_write_buffer()
2071 z -= map_bankwidth(map); in do_write_buffer()
2080 adr, map_bankwidth(map), in do_write_buffer()
2112 if (ofs & (map_bankwidth(map)-1)) { in cfi_amdstd_write_buffers()
2113 size_t local_len = (-ofs)&(map_bankwidth(map)-1); in cfi_amdstd_write_buffers()
2133 while (len >= map_bankwidth(map) * 2) { in cfi_amdstd_write_buffers()
2139 if (size % map_bankwidth(map)) in cfi_amdstd_write_buffers()
2140 size -= size % map_bankwidth(map); in cfi_amdstd_write_buffers()
2324 if (ofs & (map_bankwidth(map) - 1)) { in cfi_amdstd_panic_write()
2325 unsigned long bus_ofs = ofs & ~(map_bankwidth(map) - 1); in cfi_amdstd_panic_write()
2338 n = min_t(int, len, map_bankwidth(map) - i); in cfi_amdstd_panic_write()
2361 while (len >= map_bankwidth(map)) { in cfi_amdstd_panic_write()
2371 ofs += map_bankwidth(map); in cfi_amdstd_panic_write()
2372 buf += map_bankwidth(map); in cfi_amdstd_panic_write()
2373 (*retlen) += map_bankwidth(map); in cfi_amdstd_panic_write()
2374 len -= map_bankwidth(map); in cfi_amdstd_panic_write()
2387 if (len & (map_bankwidth(map) - 1)) { in cfi_amdstd_panic_write()