• Home
  • Raw
  • Download

Lines Matching refs:sector

54 static struct page *brd_lookup_page(struct brd_device *brd, sector_t sector)  in brd_lookup_page()  argument
71 idx = sector >> PAGE_SECTORS_SHIFT; /* sector to page index */ in brd_lookup_page()
83 static int brd_insert_page(struct brd_device *brd, sector_t sector, gfp_t gfp) in brd_insert_page() argument
89 page = brd_lookup_page(brd, sector); in brd_insert_page()
103 idx = sector >> PAGE_SECTORS_SHIFT; in brd_insert_page()
167 static int copy_to_brd_setup(struct brd_device *brd, sector_t sector, size_t n, in copy_to_brd_setup() argument
170 unsigned int offset = (sector & (PAGE_SECTORS-1)) << SECTOR_SHIFT; in copy_to_brd_setup()
175 ret = brd_insert_page(brd, sector, gfp); in copy_to_brd_setup()
179 sector += copy >> SECTOR_SHIFT; in copy_to_brd_setup()
180 ret = brd_insert_page(brd, sector, gfp); in copy_to_brd_setup()
189 sector_t sector, size_t n) in copy_to_brd() argument
193 unsigned int offset = (sector & (PAGE_SECTORS-1)) << SECTOR_SHIFT; in copy_to_brd()
197 page = brd_lookup_page(brd, sector); in copy_to_brd()
206 sector += copy >> SECTOR_SHIFT; in copy_to_brd()
208 page = brd_lookup_page(brd, sector); in copy_to_brd()
221 sector_t sector, size_t n) in copy_from_brd() argument
225 unsigned int offset = (sector & (PAGE_SECTORS-1)) << SECTOR_SHIFT; in copy_from_brd()
229 page = brd_lookup_page(brd, sector); in copy_from_brd()
239 sector += copy >> SECTOR_SHIFT; in copy_from_brd()
241 page = brd_lookup_page(brd, sector); in copy_from_brd()
256 sector_t sector) in brd_do_bvec() argument
268 err = copy_to_brd_setup(brd, sector, len, gfp); in brd_do_bvec()
275 copy_from_brd(mem + off, brd, sector, len); in brd_do_bvec()
279 copy_to_brd(brd, mem + off, sector, len); in brd_do_bvec()
290 sector_t sector = bio->bi_iter.bi_sector; in brd_submit_bio() local
303 bio->bi_opf, sector); in brd_submit_bio()
312 sector += len >> SECTOR_SHIFT; in brd_submit_bio()
318 static int brd_rw_page(struct block_device *bdev, sector_t sector, in brd_rw_page() argument
326 err = brd_do_bvec(brd, page, PAGE_SIZE, 0, op, sector); in brd_rw_page()