Home
last modified time | relevance | path

Searched refs:num_buf (Results 1 – 12 of 12) sorted by relevance

/drivers/infiniband/sw/rxe/
Drxe_mr.c64 static int rxe_mr_alloc(struct rxe_mr *mr, int num_buf) in rxe_mr_alloc() argument
70 num_map = (num_buf + RXE_BUF_PER_MAP - 1) / RXE_BUF_PER_MAP; in rxe_mr_alloc()
87 mr->num_buf = num_buf; in rxe_mr_alloc()
119 int num_buf; in rxe_mr_init_user() local
132 num_buf = ib_umem_num_pages(umem); in rxe_mr_init_user()
136 err = rxe_mr_alloc(mr, num_buf); in rxe_mr_init_user()
146 num_buf = 0; in rxe_mr_init_user()
152 if (num_buf >= RXE_BUF_PER_MAP) { in rxe_mr_init_user()
155 num_buf = 0; in rxe_mr_init_user()
168 num_buf++; in rxe_mr_init_user()
Drxe_verbs.h328 u32 num_buf; member
Drxe_verbs.c960 if (unlikely(mr->nbuf == mr->num_buf)) in rxe_set_page()
/drivers/infiniband/sw/siw/
Dsiw_mem.c329 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()
Dsiw_mem.h11 struct siw_pbl *siw_pbl_alloc(u32 num_buf);
Dsiw_verbs.c1508 pbl->num_buf = 1; in siw_map_mr_sg()
1515 pbl->num_buf++; in siw_map_mr_sg()
1534 pbl->num_buf); in siw_map_mr_sg()
Dsiw.h137 unsigned int num_buf; member
/drivers/net/
Dvirtio_net.c676 u16 *num_buf, in xdp_linearize_page() argument
695 while (--*num_buf) { in xdp_linearize_page()
774 u16 num_buf = 1; in receive_small() local
781 xdp_page = xdp_linearize_page(rq, &num_buf, page, in receive_small()
902 u16 num_buf = virtio16_to_cpu(vi->vdev, hdr->num_buffers); in receive_mergeable() local
949 if (unlikely(num_buf > 1 || in receive_mergeable()
952 xdp_page = xdp_linearize_page(rq, &num_buf, in receive_mergeable()
1076 while (--num_buf) { in receive_mergeable()
1082 dev->name, num_buf, in receive_mergeable()
1138 while (num_buf-- > 1) { in receive_mergeable()
[all …]
/drivers/net/ethernet/atheros/atlx/
Datl1.c1774 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()
Datl1.h383 u8 num_buf; /* Number of RFD buffers used by the received packet */ member
/drivers/accessibility/speakup/
Dmain.c1836 char num_buf[32]; in inc_dec_var() local
1837 char *cp = num_buf; in inc_dec_var()
1859 snprintf(cp, sizeof(num_buf) - (cp - num_buf), " %d ", in inc_dec_var()
1861 synth_printf("%s", num_buf); in inc_dec_var()
/drivers/scsi/csiostor/
Dcsio_scsi.c2316 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()