Lines Matching refs:sg_addr
85 u64 sg_addr = (u64)start_addr; in nx_build_sg_list() local
91 sg_addr = page_to_phys(vmalloc_to_page(start_addr)) in nx_build_sg_list()
92 + offset_in_page(sg_addr); in nx_build_sg_list()
94 sg_addr = __pa(sg_addr); in nx_build_sg_list()
96 end_addr = sg_addr + *len; in nx_build_sg_list()
111 sg->addr = sg_addr; in nx_build_sg_list()
112 sg_addr = min_t(u64, NX_PAGE_NUM(sg_addr + NX_PAGE_SIZE), in nx_build_sg_list()
116 sg->len = min_t(u64, sg_addr, next_page) - sg->addr; in nx_build_sg_list()
119 if (sg_addr >= next_page && in nx_build_sg_list()
121 sg_addr = page_to_phys(vmalloc_to_page( in nx_build_sg_list()
123 end_addr = sg_addr + *len - sg_len; in nx_build_sg_list()