Lines Matching refs:CHUNK_SIZE
64 #define CHUNK_SIZE PAGE_SIZE macro
65 #define CHUNK_ALIGN(x) (((x)+CHUNK_SIZE-1) & ~(CHUNK_SIZE-1))
207 (rp->b_vec[offset / CHUNK_SIZE].ptr + offset % CHUNK_SIZE); in MON_OFF2HDR()
244 in_page = CHUNK_SIZE - (off & (CHUNK_SIZE-1)); in mon_copy_to_buff()
251 buf = this->b_vec[off / CHUNK_SIZE].ptr + off % CHUNK_SIZE; in mon_copy_to_buff()
276 in_page = CHUNK_SIZE - (off & (CHUNK_SIZE-1)); in copy_from_buf()
283 buf = this->b_vec[off / CHUNK_SIZE].ptr + off % CHUNK_SIZE; in copy_from_buf()
477 (rp->b_vec[offset / CHUNK_SIZE].ptr + offset % CHUNK_SIZE); in mon_bin_get_isodesc()
705 size = sizeof(struct mon_pgmap) * (rp->b_size/CHUNK_SIZE); in mon_bin_open()
711 if ((rc = mon_alloc_buff(rp->b_vec, rp->b_size/CHUNK_SIZE)) < 0) in mon_bin_open()
795 mon_free_buff(rp->b_vec, rp->b_size/CHUNK_SIZE); in mon_bin_release()
1030 vec = kcalloc(size / CHUNK_SIZE, sizeof(struct mon_pgmap), in mon_bin_ioctl()
1037 ret = mon_alloc_buff(vec, size/CHUNK_SIZE); in mon_bin_ioctl()
1046 mon_free_buff(vec, size/CHUNK_SIZE); in mon_bin_ioctl()
1050 mon_free_buff(rp->b_vec, rp->b_size/CHUNK_SIZE); in mon_bin_ioctl()
1261 chunk_idx = offset / CHUNK_SIZE; in mon_bin_vma_fault()