Searched refs:word_gap (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.4/drivers/mtd/lpddr/ |
D | lpddr_cmds.c | 383 int ret, wbufsize, word_gap, words; in do_write_buffer() local 397 word_gap = (-adr & (map_bankwidth(map)-1)); in do_write_buffer() 398 words = (len - word_gap + map_bankwidth(map) - 1) / map_bankwidth(map); in do_write_buffer() 399 if (!word_gap) { in do_write_buffer() 402 word_gap = map_bankwidth(map) - word_gap; in do_write_buffer() 403 adr -= word_gap; in do_write_buffer() 413 int n = map_bankwidth(map) - word_gap; in do_write_buffer() 420 if (!word_gap && (len < map_bankwidth(map))) in do_write_buffer() 424 vec->iov_base + vec_seek, word_gap, n); in do_write_buffer() 427 word_gap += n; in do_write_buffer() [all …]
|
/Linux-v5.4/drivers/mtd/chips/ |
D | cfi_cmdset_0001.c | 1709 int ret, wbufsize, word_gap, words; in do_write_buffer() local 1775 word_gap = (-adr & (map_bankwidth(map)-1)); in do_write_buffer() 1776 words = DIV_ROUND_UP(len - word_gap, map_bankwidth(map)); in do_write_buffer() 1777 if (!word_gap) { in do_write_buffer() 1780 word_gap = map_bankwidth(map) - word_gap; in do_write_buffer() 1781 adr -= word_gap; in do_write_buffer() 1792 int n = map_bankwidth(map) - word_gap; in do_write_buffer() 1798 if (!word_gap && len < map_bankwidth(map)) in do_write_buffer() 1803 word_gap, n); in do_write_buffer() 1806 word_gap += n; in do_write_buffer() [all …]
|