/linux-2.6.39/drivers/infiniband/hw/cxgb3/ |
D | iwch_mem.c | 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() [all …]
|
D | iwch_provider.c | 478 struct ib_phys_buf *buffer_list, in iwch_register_phys_mem() argument 503 if ((*iova_start & ~PAGE_MASK) != (buffer_list[0].addr & ~PAGE_MASK)) { in iwch_register_phys_mem() 509 ((buffer_list[0].addr + buffer_list[0].size) & ~PAGE_MASK)) { in iwch_register_phys_mem() 514 ret = build_phys_page_list(buffer_list, num_phys_buf, iova_start, in iwch_register_phys_mem() 557 struct ib_phys_buf *buffer_list, in iwch_reregister_phys_mem() argument 592 ret = build_phys_page_list(buffer_list, num_phys_buf, in iwch_reregister_phys_mem()
|
D | iwch_provider.h | 348 int build_phys_page_list(struct ib_phys_buf *buffer_list,
|
/linux-2.6.39/drivers/infiniband/hw/cxgb4/ |
D | mem.c | 287 static int build_phys_page_list(struct ib_phys_buf *buffer_list, in build_phys_page_list() argument 298 if (i != 0 && buffer_list[i].addr & ~PAGE_MASK) in build_phys_page_list() 301 (buffer_list[i].size & ~PAGE_MASK)) in build_phys_page_list() 303 *total_size += buffer_list[i].size; in build_phys_page_list() 305 mask |= buffer_list[i].addr; in build_phys_page_list() 307 mask |= buffer_list[i].addr & PAGE_MASK; in build_phys_page_list() 309 mask |= buffer_list[i].addr + buffer_list[i].size; in build_phys_page_list() 311 mask |= (buffer_list[i].addr + buffer_list[i].size + in build_phys_page_list() 323 buffer_list[0].size += buffer_list[0].addr & ((1ULL << *shift) - 1); in build_phys_page_list() 324 buffer_list[0].addr &= ~0ull << *shift; in build_phys_page_list() [all …]
|
D | iw_cxgb4.h | 721 struct ib_phys_buf *buffer_list, 728 struct ib_phys_buf *buffer_list,
|
/linux-2.6.39/drivers/infiniband/hw/mthca/ |
D | mthca_mr.c | 255 int start_index, u64 *buffer_list, int list_len) in __mthca_write_mtt() argument 274 mtt_entry[i + 2] = cpu_to_be64(buffer_list[i] | in __mthca_write_mtt() 298 buffer_list += i; in __mthca_write_mtt() 324 u64 *buffer_list, int list_len) in mthca_tavor_write_mtt_seg() argument 332 mthca_write64_raw(cpu_to_be64(buffer_list[i] | MTHCA_MTT_FLAG_PRESENT), in mthca_tavor_write_mtt_seg() 338 u64 *buffer_list, int list_len) in mthca_arbel_write_mtt_seg() argument 359 mtts[i] = cpu_to_be64(buffer_list[i] | MTHCA_MTT_FLAG_PRESENT); in mthca_arbel_write_mtt_seg() 366 int start_index, u64 *buffer_list, int list_len) in mthca_write_mtt() argument 373 return __mthca_write_mtt(dev, mtt, start_index, buffer_list, list_len); in mthca_write_mtt() 379 buffer_list, chunk); in mthca_write_mtt() [all …]
|
D | mthca_provider.c | 927 struct ib_phys_buf *buffer_list, in mthca_reg_phys_mr() argument 941 mask = buffer_list[0].addr ^ *iova_start; in mthca_reg_phys_mr() 945 mask |= buffer_list[i].addr; in mthca_reg_phys_mr() 947 mask |= buffer_list[i].addr + buffer_list[i].size; in mthca_reg_phys_mr() 949 total_size += buffer_list[i].size; in mthca_reg_phys_mr() 957 buffer_list[0].size += buffer_list[0].addr & ((1ULL << shift) - 1); in mthca_reg_phys_mr() 958 buffer_list[0].addr &= ~0ull << shift; in mthca_reg_phys_mr() 966 npages += (buffer_list[i].size + (1ULL << shift) - 1) >> shift; in mthca_reg_phys_mr() 980 j < (buffer_list[i].size + (1ULL << shift) - 1) >> shift; in mthca_reg_phys_mr() 982 page_list[n++] = buffer_list[i].addr + ((u64) j << shift); in mthca_reg_phys_mr() [all …]
|
D | mthca_dev.h | 470 int start_index, u64 *buffer_list, int list_len); 476 u64 *buffer_list, int buffer_size_shift,
|
/linux-2.6.39/drivers/infiniband/hw/ipath/ |
D | ipath_mr.c | 133 struct ib_phys_buf *buffer_list, in ipath_reg_phys_mr() argument 158 mr->mr.map[m]->segs[n].vaddr = (void *) buffer_list[i].addr; in ipath_reg_phys_mr() 159 mr->mr.map[m]->segs[n].length = buffer_list[i].size; in ipath_reg_phys_mr() 160 mr->mr.length += buffer_list[i].size; in ipath_reg_phys_mr()
|
D | ipath_verbs.h | 823 struct ib_phys_buf *buffer_list,
|
/linux-2.6.39/drivers/infiniband/hw/amso1100/ |
D | c2_provider.c | 341 struct ib_phys_buf *buffer_list, in c2_reg_phys_mr() argument 362 if (buffer_list[i].addr & ~PAGE_MASK) { in c2_reg_phys_mr() 364 (unsigned int) buffer_list[i].addr); in c2_reg_phys_mr() 368 if (!buffer_list[i].size) { in c2_reg_phys_mr() 373 total_len += buffer_list[i].size; in c2_reg_phys_mr() 374 pbl_depth += ALIGN(buffer_list[i].size, in c2_reg_phys_mr() 389 naddrs = ALIGN(buffer_list[i].size, in c2_reg_phys_mr() 392 page_list[j++] = (buffer_list[i].addr + in c2_reg_phys_mr()
|
/linux-2.6.39/drivers/infiniband/hw/qib/ |
D | qib_mr.c | 144 struct ib_phys_buf *buffer_list, in qib_reg_phys_mr() argument 168 mr->mr.map[m]->segs[n].vaddr = (void *) buffer_list[i].addr; in qib_reg_phys_mr() 169 mr->mr.map[m]->segs[n].length = buffer_list[i].size; in qib_reg_phys_mr() 170 mr->mr.length += buffer_list[i].size; in qib_reg_phys_mr()
|
D | qib_verbs.h | 967 struct ib_phys_buf *buffer_list,
|
/linux-2.6.39/drivers/infiniband/hw/nes/ |
D | nes_verbs.c | 2097 struct ib_phys_buf *buffer_list, int num_phys_buf, int acc, in nes_reg_phys_mr() argument 2139 if ((buffer_list[0].addr ^ *iova_start) & ~PAGE_MASK) in nes_reg_phys_mr() 2208 mask = !buffer_list[i].size; in nes_reg_phys_mr() 2210 mask |= buffer_list[i].addr; in nes_reg_phys_mr() 2212 mask |= buffer_list[i].addr + buffer_list[i].size; in nes_reg_phys_mr() 2222 region_length += buffer_list[i].size; in nes_reg_phys_mr() 2224 if ((buffer_list[i-1].addr+PAGE_SIZE) != buffer_list[i].addr) in nes_reg_phys_mr() 2227 vpbl.pbl_vbase[cur_pbl_index].pa_low = cpu_to_le32((u32)buffer_list[i].addr & PAGE_MASK); in nes_reg_phys_mr() 2229 cpu_to_le32((u32)((((u64)buffer_list[i].addr) >> 32))); in nes_reg_phys_mr() 2251 buffer_list[0].addr, pbl_count, (u16)cur_pbl_index, acc, iova_start, in nes_reg_phys_mr()
|
/linux-2.6.39/drivers/firewire/ |
D | ohci.c | 136 struct list_head buffer_list; member 1029 desc = list_entry(ctx->buffer_list.next, in context_tasklet() 1056 list_move_tail(&old_desc->list, &ctx->buffer_list); in context_tasklet() 1090 list_add_tail(&desc->list, &ctx->buffer_list); in context_add_buffer() 1103 INIT_LIST_HEAD(&ctx->buffer_list); in context_init() 1107 ctx->buffer_tail = list_entry(ctx->buffer_list.next, in context_init() 1133 list_for_each_entry_safe(desc, tmp, &ctx->buffer_list, list) in context_release() 1153 if (desc->list.next == &ctx->buffer_list) { in context_get_descriptors()
|
/linux-2.6.39/drivers/tty/ |
D | synclink.c | 223 char *buffer_list; /* virtual address of Rx & Tx buffer lists */ member 3703 info->buffer_list = info->memory_base + info->last_mem_alloc; in mgsl_alloc_buffer_list_memory() 3713 …info->buffer_list = dma_alloc_coherent(NULL, BUFFERLISTSIZE, &info->buffer_list_dma_addr, GFP_KERN… in mgsl_alloc_buffer_list_memory() 3714 if (info->buffer_list == NULL) in mgsl_alloc_buffer_list_memory() 3721 memset( info->buffer_list, 0, BUFFERLISTSIZE ); in mgsl_alloc_buffer_list_memory() 3726 info->rx_buffer_list = (DMABUFFERENTRY *)info->buffer_list; in mgsl_alloc_buffer_list_memory() 3727 info->tx_buffer_list = (DMABUFFERENTRY *)info->buffer_list; in mgsl_alloc_buffer_list_memory() 3783 if (info->buffer_list && info->bus_type != MGSL_BUS_TYPE_PCI) in mgsl_free_buffer_list_memory() 3784 dma_free_coherent(NULL, BUFFERLISTSIZE, info->buffer_list, info->buffer_list_dma_addr); in mgsl_free_buffer_list_memory() 3786 info->buffer_list = NULL; in mgsl_free_buffer_list_memory() [all …]
|
D | synclinkmp.c | 195 char *buffer_list; /* virtual address of Rx & Tx buffer lists */ member 3462 info->buffer_list = info->memory_base + info->port_array[0]->last_mem_alloc; in alloc_buf_list() 3466 memset(info->buffer_list, 0, BUFFERLISTSIZE); in alloc_buf_list() 3471 info->rx_buf_list = (SCADESC *)info->buffer_list; in alloc_buf_list() 3473 info->tx_buf_list = (SCADESC *)info->buffer_list; in alloc_buf_list() 3535 info->buffer_list = NULL; in free_dma_bufs()
|