Lines Matching refs:buffer_list
134 int build_phys_page_list(struct ib_phys_buf *buffer_list, in build_phys_page_list() argument
148 if (i != 0 && buffer_list[i].addr & ~PAGE_MASK) in build_phys_page_list()
151 (buffer_list[i].size & ~PAGE_MASK)) in build_phys_page_list()
153 *total_size += buffer_list[i].size; in build_phys_page_list()
155 mask |= buffer_list[i].addr; in build_phys_page_list()
157 mask |= buffer_list[i].addr & PAGE_MASK; in build_phys_page_list()
159 mask |= buffer_list[i].addr + buffer_list[i].size; in build_phys_page_list()
161 mask |= (buffer_list[i].addr + buffer_list[i].size + in build_phys_page_list()
173 buffer_list[0].size += buffer_list[0].addr & ((1ULL << *shift) - 1); in build_phys_page_list()
174 buffer_list[0].addr &= ~0ull << *shift; in build_phys_page_list()
178 *npages += (buffer_list[i].size + in build_phys_page_list()
191 j < (buffer_list[i].size + (1ULL << *shift) - 1) >> *shift; in build_phys_page_list()
193 (*page_list)[n++] = cpu_to_be64(buffer_list[i].addr + in build_phys_page_list()