Lines Matching refs:win_size
49 unsigned long win_size; member
67 ofs /= state->win_size; in gf_set_gpios()
90 word = readw(map->virt + (ofs % state->win_size)); in gf_read()
112 if ((from % state->win_size) + len > state->win_size) in gf_copy_from()
113 this_len = state->win_size - (from % state->win_size); in gf_copy_from()
118 memcpy_fromio(to, map->virt + (from % state->win_size), in gf_copy_from()
139 writew(d, map->virt + (ofs % state->win_size)); in gf_write()
159 if ((to % state->win_size) + len > state->win_size) in gf_copy_to()
160 this_len = state->win_size - (to % state->win_size); in gf_copy_to()
165 memcpy_toio(map->virt + (to % state->win_size), from, len); in gf_copy_to()
231 state->win_size = resource_size(memory); in gpio_flash_probe()
240 state->map.size = state->win_size * (1 << state->gpio_count); in gpio_flash_probe()