Lines Matching refs:cl
2767 struct cl_extent cl;
2880 cl.b_addr = (daddr64_t)(upl_f_offset / PAGE_SIZE_64);
3116 cl.e_addr = (daddr64_t)((upl_f_offset + (off_t)upl_size) / PAGE_SIZE_64);
3139 sparse_cluster_add(&(wbp->cl_scmap), vp, &cl, newEOF, callback, callback_arg);
3188 if (cl.b_addr >= wbp->cl_clusters[cl_index].b_addr) {
3192 if (cl.e_addr <= (wbp->cl_clusters[cl_index].b_addr + max_cluster_pgcount)) {
3197 if (cl.e_addr > wbp->cl_clusters[cl_index].e_addr)
3201 wbp->cl_clusters[cl_index].e_addr = cl.e_addr;
3204 if (cl.b_addr < (wbp->cl_clusters[cl_index].b_addr + max_cluster_pgcount)) {
3217 cl.b_addr = wbp->cl_clusters[cl_index].e_addr;
3231 if ((wbp->cl_clusters[cl_index].e_addr - cl.b_addr) <= max_cluster_pgcount) {
3238 wbp->cl_clusters[cl_index].b_addr = cl.b_addr;
3240 if (cl.e_addr > wbp->cl_clusters[cl_index].e_addr) {
3248 wbp->cl_clusters[cl_index].e_addr = cl.e_addr;
3262 if (cl.e_addr > wbp->cl_clusters[cl_index].e_addr - max_cluster_pgcount) {
3270 cl.e_addr = wbp->cl_clusters[cl_index].b_addr;
3339 sparse_cluster_add(&(wbp->cl_scmap), vp, &cl, newEOF, callback, callback_arg);
3346 wbp->cl_clusters[wbp->cl_number].b_addr = cl.b_addr;
3347 wbp->cl_clusters[wbp->cl_number].e_addr = cl.e_addr;
3372 retval = cluster_push_now(vp, &cl, newEOF, flags, callback, callback_arg);
5239 struct cl_extent cl;
5255 cl.b_addr = l_clusters[cl_index].b_addr;
5256 cl.e_addr = l_clusters[cl_index].e_addr;
5258 cluster_push_now(vp, &cl, EOF, flags, callback, callback_arg);
5334 cluster_push_now(vnode_t vp, struct cl_extent *cl, off_t EOF, int flags, int (*callback)(buf_t, void *), void *callback_arg)
5359 (int)cl->b_addr, (int)cl->e_addr, (int)EOF, flags, 0);
5361 if ((pages_in_upl = (int)(cl->e_addr - cl->b_addr)) == 0) {
5367 upl_f_offset = (off_t)(cl->b_addr * PAGE_SIZE_64);
5515 struct cl_extent cl;
5517 for (cl.b_addr = wbp->cl_clusters[cl_index].b_addr; cl.b_addr < wbp->cl_clusters[cl_index].e_addr; cl.b_addr++) {
5519 if (ubc_page_op(vp, (off_t)(cl.b_addr * PAGE_SIZE_64), 0, NULL, &flags) == KERN_SUCCESS) {
5521 cl.e_addr = cl.b_addr + 1;
5523 sparse_cluster_add(&(wbp->cl_scmap), vp, &cl, EOF, callback, callback_arg);
5542 struct cl_extent cl;
5555 cl.b_addr = (daddr64_t)(offset / PAGE_SIZE_64);
5556 cl.e_addr = (daddr64_t)((offset + length) / PAGE_SIZE_64);
5558 cluster_push_now(vp, &cl, EOF, io_flags & (IO_PASSIVE|IO_CLOSE), callback, callback_arg);
5571 sparse_cluster_add(void **scmap, vnode_t vp, struct cl_extent *cl, off_t EOF, int (*callback)(buf_t, void *), void *callback_arg)
5577 KERNEL_DEBUG((FSDBG_CODE(DBG_FSRW, 80)) | DBG_FUNC_START, (*scmap), 0, cl->b_addr, (int)cl->e_addr, 0);
5579 offset = (off_t)(cl->b_addr * PAGE_SIZE_64);
5580 length = ((u_int)(cl->e_addr - cl->b_addr)) * PAGE_SIZE;