Searched refs:num_buf (Results 1 – 12 of 12) sorted by relevance
/drivers/infiniband/sw/rxe/ |
D | rxe_mr.c | 77 static int rxe_mem_alloc(struct rxe_mem *mem, int num_buf) in rxe_mem_alloc() argument 83 num_map = (num_buf + RXE_BUF_PER_MAP - 1) / RXE_BUF_PER_MAP; in rxe_mem_alloc() 100 mem->num_buf = num_buf; in rxe_mem_alloc() 134 int num_buf; in rxe_mem_init_user() local 147 num_buf = ib_umem_num_pages(umem); in rxe_mem_init_user() 151 err = rxe_mem_alloc(mem, num_buf); in rxe_mem_init_user() 161 num_buf = 0; in rxe_mem_init_user() 167 if (num_buf >= RXE_BUF_PER_MAP) { in rxe_mem_init_user() 170 num_buf = 0; in rxe_mem_init_user() 183 num_buf++; in rxe_mem_init_user()
|
D | rxe_verbs.h | 313 u32 num_buf; member
|
D | rxe_verbs.c | 971 if (unlikely(mr->nbuf == mr->num_buf)) in rxe_set_page()
|
/drivers/infiniband/sw/siw/ |
D | siw_mem.c | 329 while (i < pbl->num_buf) { in siw_pbl_get_buffer() 349 struct siw_pbl *siw_pbl_alloc(u32 num_buf) in siw_pbl_alloc() argument 353 if (num_buf == 0) in siw_pbl_alloc() 356 pbl = kzalloc(struct_size(pbl, pbe, num_buf), GFP_KERNEL); in siw_pbl_alloc() 360 pbl->max_buf = num_buf; in siw_pbl_alloc()
|
D | siw_mem.h | 11 struct siw_pbl *siw_pbl_alloc(u32 num_buf);
|
D | siw_verbs.c | 1503 pbl->num_buf = 1; in siw_map_mr_sg() 1510 pbl->num_buf++; in siw_map_mr_sg() 1529 pbl->num_buf); in siw_map_mr_sg()
|
D | siw.h | 137 unsigned int num_buf; member
|
/drivers/net/ |
D | virtio_net.c | 643 u16 *num_buf, in xdp_linearize_page() argument 662 while (--*num_buf) { in xdp_linearize_page() 741 u16 num_buf = 1; in receive_small() local 748 xdp_page = xdp_linearize_page(rq, &num_buf, page, in receive_small() 869 u16 num_buf = virtio16_to_cpu(vi->vdev, hdr->num_buffers); in receive_mergeable() local 916 if (unlikely(num_buf > 1 || in receive_mergeable() 919 xdp_page = xdp_linearize_page(rq, &num_buf, in receive_mergeable() 1025 while (--num_buf) { in receive_mergeable() 1031 dev->name, num_buf, in receive_mergeable() 1087 while (num_buf-- > 1) { in receive_mergeable() [all …]
|
/drivers/net/ethernet/atheros/atlx/ |
D | atl1.c | 1774 u16 num_buf; in atl1_update_rfd_index() local 1776 num_buf = (rrd->xsz.xsum_sz.pkt_size + adapter->rx_buffer_len - 1) / in atl1_update_rfd_index() 1778 if (rrd->num_buf == num_buf) in atl1_update_rfd_index() 1780 atl1_clean_alloc_flag(adapter, rrd, num_buf); in atl1_update_rfd_index() 1921 if (likely(rrd->num_buf == 1)) in atl1_intr_rx() 1931 rrd->num_buf); in atl1_intr_rx() 1957 if (rrd->num_buf > 1) in atl1_intr_rx()
|
D | atl1.h | 383 u8 num_buf; /* Number of RFD buffers used by the received packet */ member
|
/drivers/accessibility/speakup/ |
D | main.c | 1838 char num_buf[32]; in inc_dec_var() local 1839 char *cp = num_buf; in inc_dec_var() 1861 snprintf(cp, sizeof(num_buf) - (cp - num_buf), " %d ", in inc_dec_var() 1863 synth_printf("%s", num_buf); in inc_dec_var()
|
/drivers/scsi/csiostor/ |
D | csio_scsi.c | 2316 int buf_size, int num_buf) in csio_scsi_alloc_ddp_bufs() argument 2323 if (!num_buf) in csio_scsi_alloc_ddp_bufs() 2334 for (n = 0; n < num_buf; n++) { in csio_scsi_alloc_ddp_bufs()
|