Home
last modified time | relevance | path

Searched refs:buffer_list (Results 1 – 21 of 21) sorted by relevance

/drivers/infiniband/hw/cxgb3/
Diwch_mem.c134 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 …]
Diwch_provider.c472 struct ib_phys_buf *buffer_list, in iwch_register_phys_mem() argument
497 if ((*iova_start & ~PAGE_MASK) != (buffer_list[0].addr & ~PAGE_MASK)) { in iwch_register_phys_mem()
503 ((buffer_list[0].addr + buffer_list[0].size) & ~PAGE_MASK)) { in iwch_register_phys_mem()
508 ret = build_phys_page_list(buffer_list, num_phys_buf, iova_start, in iwch_register_phys_mem()
551 struct ib_phys_buf *buffer_list, in iwch_reregister_phys_mem() argument
586 ret = build_phys_page_list(buffer_list, num_phys_buf, in iwch_reregister_phys_mem()
Diwch_provider.h349 int build_phys_page_list(struct ib_phys_buf *buffer_list,
/drivers/iio/
Dindustrialio-buffer.c39 list_for_each(p, &indio_dev->buffer_list) in iio_buffer_is_active()
40 if (p == &buf->buffer_list) in iio_buffer_is_active()
474 if (!list_empty(&indio_dev->buffer_list)) { in iio_update_buffers()
493 list_del(&remove_buffer->buffer_list); in iio_update_buffers()
495 list_add(&insert_buffer->buffer_list, &indio_dev->buffer_list); in iio_update_buffers()
498 if (list_empty(&indio_dev->buffer_list)) { in iio_update_buffers()
515 list_for_each_entry(buffer, &indio_dev->buffer_list, buffer_list) { in iio_update_buffers()
530 list_del(&insert_buffer->buffer_list); in iio_update_buffers()
554 list_for_each_entry(buffer, &indio_dev->buffer_list, buffer_list) in iio_update_buffers()
616 list_del(&insert_buffer->buffer_list); in iio_update_buffers()
[all …]
Dindustrialio-core.c901 INIT_LIST_HEAD(&dev->buffer_list); in iio_device_alloc()
/drivers/infiniband/hw/cxgb4/
Dmem.c421 static int build_phys_page_list(struct ib_phys_buf *buffer_list, in build_phys_page_list() argument
432 if (i != 0 && buffer_list[i].addr & ~PAGE_MASK) in build_phys_page_list()
435 (buffer_list[i].size & ~PAGE_MASK)) in build_phys_page_list()
437 *total_size += buffer_list[i].size; in build_phys_page_list()
439 mask |= buffer_list[i].addr; in build_phys_page_list()
441 mask |= buffer_list[i].addr & PAGE_MASK; in build_phys_page_list()
443 mask |= buffer_list[i].addr + buffer_list[i].size; in build_phys_page_list()
445 mask |= (buffer_list[i].addr + buffer_list[i].size + in build_phys_page_list()
457 buffer_list[0].size += buffer_list[0].addr & ((1ULL << *shift) - 1); in build_phys_page_list()
458 buffer_list[0].addr &= ~0ull << *shift; in build_phys_page_list()
[all …]
Diw_cxgb4.h886 struct ib_phys_buf *buffer_list,
893 struct ib_phys_buf *buffer_list,
/drivers/infiniband/hw/mthca/
Dmthca_mr.c255 int start_index, u64 *buffer_list, int list_len) in __mthca_write_mtt() argument
273 mtt_entry[i + 2] = cpu_to_be64(buffer_list[i] | in __mthca_write_mtt()
291 buffer_list += i; in __mthca_write_mtt()
317 u64 *buffer_list, int list_len) in mthca_tavor_write_mtt_seg() argument
325 mthca_write64_raw(cpu_to_be64(buffer_list[i] | MTHCA_MTT_FLAG_PRESENT), in mthca_tavor_write_mtt_seg()
331 u64 *buffer_list, int list_len) in mthca_arbel_write_mtt_seg() argument
352 mtts[i] = cpu_to_be64(buffer_list[i] | MTHCA_MTT_FLAG_PRESENT); in mthca_arbel_write_mtt_seg()
359 int start_index, u64 *buffer_list, int list_len) in mthca_write_mtt() argument
366 return __mthca_write_mtt(dev, mtt, start_index, buffer_list, list_len); in mthca_write_mtt()
372 buffer_list, chunk); in mthca_write_mtt()
[all …]
Dmthca_provider.c893 struct ib_phys_buf *buffer_list, in mthca_reg_phys_mr() argument
907 mask = buffer_list[0].addr ^ *iova_start; in mthca_reg_phys_mr()
911 mask |= buffer_list[i].addr; in mthca_reg_phys_mr()
913 mask |= buffer_list[i].addr + buffer_list[i].size; in mthca_reg_phys_mr()
915 total_size += buffer_list[i].size; in mthca_reg_phys_mr()
923 buffer_list[0].size += buffer_list[0].addr & ((1ULL << shift) - 1); in mthca_reg_phys_mr()
924 buffer_list[0].addr &= ~0ull << shift; in mthca_reg_phys_mr()
932 npages += (buffer_list[i].size + (1ULL << shift) - 1) >> shift; in mthca_reg_phys_mr()
946 j < (buffer_list[i].size + (1ULL << shift) - 1) >> shift; in mthca_reg_phys_mr()
948 page_list[n++] = buffer_list[i].addr + ((u64) j << shift); in mthca_reg_phys_mr()
[all …]
Dmthca_dev.h470 int start_index, u64 *buffer_list, int list_len);
476 u64 *buffer_list, int buffer_size_shift,
/drivers/infiniband/hw/amso1100/
Dc2_provider.c333 struct ib_phys_buf *buffer_list, in c2_reg_phys_mr() argument
354 if (buffer_list[i].addr & ~PAGE_MASK) { in c2_reg_phys_mr()
356 (unsigned int) buffer_list[i].addr); in c2_reg_phys_mr()
360 if (!buffer_list[i].size) { in c2_reg_phys_mr()
365 total_len += buffer_list[i].size; in c2_reg_phys_mr()
366 pbl_depth += ALIGN(buffer_list[i].size, in c2_reg_phys_mr()
381 naddrs = ALIGN(buffer_list[i].size, in c2_reg_phys_mr()
384 page_list[j++] = (buffer_list[i].addr + in c2_reg_phys_mr()
/drivers/infiniband/hw/ipath/
Dipath_mr.c133 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()
Dipath_verbs.h823 struct ib_phys_buf *buffer_list,
/drivers/infiniband/hw/qib/
Dqib_mr.c183 struct ib_phys_buf *buffer_list, in qib_reg_phys_mr() argument
203 mr->mr.map[m]->segs[n].vaddr = (void *) buffer_list[i].addr; in qib_reg_phys_mr()
204 mr->mr.map[m]->segs[n].length = buffer_list[i].size; in qib_reg_phys_mr()
205 mr->mr.length += buffer_list[i].size; in qib_reg_phys_mr()
Dqib_verbs.h992 struct ib_phys_buf *buffer_list,
/drivers/media/pci/sta2x11/
Dsta2x11_vip.c146 struct list_head buffer_list; member
250 if (list_empty(&vip->buffer_list)) {/* No available buffer */ in vip_active_buf_next()
254 vip->active = list_first_entry(&vip->buffer_list, in vip_active_buf_next()
320 list_add_tail(&vip_buf->list, &vip->buffer_list); in buffer_queue()
322 vip->active = list_first_entry(&vip->buffer_list, in buffer_queue()
373 list_for_each_entry_safe(vip_buf, node, &vip->buffer_list, list) { in stop_streaming()
873 INIT_LIST_HEAD(&vip->buffer_list); in sta2x11_vip_init_buffer()
/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.h88 struct ib_phys_buf *buffer_list,
/drivers/infiniband/hw/nes/
Dnes_verbs.c2091 struct ib_phys_buf *buffer_list, int num_phys_buf, int acc, in nes_reg_phys_mr() argument
2133 if ((buffer_list[0].addr ^ *iova_start) & ~PAGE_MASK) in nes_reg_phys_mr()
2202 mask = !buffer_list[i].size; in nes_reg_phys_mr()
2204 mask |= buffer_list[i].addr; in nes_reg_phys_mr()
2206 mask |= buffer_list[i].addr + buffer_list[i].size; in nes_reg_phys_mr()
2216 region_length += buffer_list[i].size; in nes_reg_phys_mr()
2218 if ((buffer_list[i-1].addr+PAGE_SIZE) != buffer_list[i].addr) in nes_reg_phys_mr()
2221 vpbl.pbl_vbase[cur_pbl_index].pa_low = cpu_to_le32((u32)buffer_list[i].addr & PAGE_MASK); in nes_reg_phys_mr()
2223 cpu_to_le32((u32)((((u64)buffer_list[i].addr) >> 32))); in nes_reg_phys_mr()
2245 buffer_list[0].addr, pbl_count, (u16)cur_pbl_index, acc, iova_start, in nes_reg_phys_mr()
/drivers/tty/
Dsynclink.c220 char *buffer_list; /* virtual address of Rx & Tx buffer lists */ member
3701 info->buffer_list = info->memory_base + info->last_mem_alloc; in mgsl_alloc_buffer_list_memory()
3711 …info->buffer_list = dma_alloc_coherent(NULL, BUFFERLISTSIZE, &info->buffer_list_dma_addr, GFP_KERN… in mgsl_alloc_buffer_list_memory()
3712 if (info->buffer_list == NULL) in mgsl_alloc_buffer_list_memory()
3719 memset( info->buffer_list, 0, BUFFERLISTSIZE ); in mgsl_alloc_buffer_list_memory()
3724 info->rx_buffer_list = (DMABUFFERENTRY *)info->buffer_list; in mgsl_alloc_buffer_list_memory()
3725 info->tx_buffer_list = (DMABUFFERENTRY *)info->buffer_list; in mgsl_alloc_buffer_list_memory()
3781 if (info->buffer_list && info->bus_type != MGSL_BUS_TYPE_PCI) in mgsl_free_buffer_list_memory()
3782 dma_free_coherent(NULL, BUFFERLISTSIZE, info->buffer_list, info->buffer_list_dma_addr); in mgsl_free_buffer_list_memory()
3784 info->buffer_list = NULL; in mgsl_free_buffer_list_memory()
[all …]
Dsynclinkmp.c194 char *buffer_list; /* virtual address of Rx & Tx buffer lists */ member
3458 info->buffer_list = info->memory_base + info->port_array[0]->last_mem_alloc; in alloc_buf_list()
3462 memset(info->buffer_list, 0, BUFFERLISTSIZE); in alloc_buf_list()
3467 info->rx_buf_list = (SCADESC *)info->buffer_list; in alloc_buf_list()
3469 info->tx_buf_list = (SCADESC *)info->buffer_list; in alloc_buf_list()
3531 info->buffer_list = NULL; in free_dma_bufs()
/drivers/firewire/
Dohci.c143 struct list_head buffer_list; member
1074 desc = list_entry(ctx->buffer_list.next, in context_tasklet()
1102 list_move_tail(&old_desc->list, &ctx->buffer_list); in context_tasklet()
1136 list_add_tail(&desc->list, &ctx->buffer_list); in context_add_buffer()
1149 INIT_LIST_HEAD(&ctx->buffer_list); in context_init()
1153 ctx->buffer_tail = list_entry(ctx->buffer_list.next, in context_init()
1180 list_for_each_entry_safe(desc, tmp, &ctx->buffer_list, list) in context_release()
1200 if (desc->list.next == &ctx->buffer_list) { in context_get_descriptors()