Home
last modified time | relevance | path

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

/linux-6.6.21/tools/testing/selftests/size/
Dget_size.c63 char num_buf[30]; in print_num() local
65 return print(num_to_str(num, num_buf, sizeof(num_buf))); in print_num()
/linux-6.6.21/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.c1510 pbl->num_buf = 1; in siw_map_mr_sg()
1517 pbl->num_buf++; in siw_map_mr_sg()
1536 pbl->num_buf); in siw_map_mr_sg()
Dsiw.h138 unsigned int num_buf; member
/linux-6.6.21/drivers/infiniband/sw/rxe/
Drxe_mr.c159 static int rxe_mr_alloc(struct rxe_mr *mr, int num_buf) in rxe_mr_alloc() argument
169 while (i != num_buf) { in rxe_mr_alloc()
183 mr->num_buf = num_buf; in rxe_mr_alloc()
220 if (unlikely(mr->nbuf == mr->num_buf)) in rxe_set_page()
Drxe_verbs.h316 u32 num_buf; member
/linux-6.6.21/drivers/media/platform/renesas/rzg2l-cru/
Drzg2l-cru.h112 u8 num_buf; member
Drzg2l-video.c127 for (i = 0; i < cru->num_buf; i++) { in return_unused_buffers()
286 rzg2l_cru_write(cru, AMnMBVALID, AMnMBVALID_MBVALID(cru->num_buf - 1)); in rzg2l_cru_initialize_axi()
288 for (slot = 0; slot < cru->num_buf; slot++) in rzg2l_cru_initialize_axi()
602 slot = cru->num_buf - 1; in rzg2l_cru_irq()
Drzg2l-core.c283 cru->num_buf = RZG2L_CRU_HW_BUFFER_DEFAULT; in rzg2l_cru_probe()
/linux-6.6.21/drivers/net/
Dvirtio_net.c1091 int *num_buf, in xdp_linearize_page() argument
1110 while (--*num_buf) { in xdp_linearize_page()
1199 int num_buf = 1; in receive_small_xdp() local
1206 xdp_page = xdp_linearize_page(rq, &num_buf, page, in receive_small_xdp()
1326 static void mergeable_buf_free(struct receive_queue *rq, int num_buf, in mergeable_buf_free() argument
1334 while (num_buf-- > 1) { in mergeable_buf_free()
1338 dev->name, num_buf); in mergeable_buf_free()
1405 int *num_buf, in virtnet_build_xdp_buff_mrg() argument
1423 if (!*num_buf) in virtnet_build_xdp_buff_mrg()
1426 if (*num_buf > 1) { in virtnet_build_xdp_buff_mrg()
[all …]
/linux-6.6.21/kernel/trace/
Dtrace_events_filter.c1509 char num_buf[24]; /* Big enough to hold an address */ in parse_pred() local
1614 if (len >= sizeof(num_buf)) { in parse_pred()
1619 strncpy(num_buf, str + s, len); in parse_pred()
1620 num_buf[len] = 0; in parse_pred()
1622 ret = kstrtoul(num_buf, 0, &ip); in parse_pred()
1917 if (len >= sizeof(num_buf)) { in parse_pred()
1922 strncpy(num_buf, str + s, len); in parse_pred()
1923 num_buf[len] = 0; in parse_pred()
1927 ret = kstrtoll(num_buf, 0, &val); in parse_pred()
1929 ret = kstrtoull(num_buf, 0, &val); in parse_pred()
/linux-6.6.21/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
/linux-6.6.21/drivers/accessibility/speakup/
Dmain.c1850 char num_buf[32]; in inc_dec_var() local
1851 char *cp = num_buf; in inc_dec_var()
1873 snprintf(cp, sizeof(num_buf) - (cp - num_buf), " %d ", in inc_dec_var()
1875 synth_printf("%s", num_buf); in inc_dec_var()
/linux-6.6.21/drivers/scsi/csiostor/
Dcsio_scsi.c2322 int buf_size, int num_buf) in csio_scsi_alloc_ddp_bufs() argument
2329 if (!num_buf) in csio_scsi_alloc_ddp_bufs()
2340 for (n = 0; n < num_buf; n++) { in csio_scsi_alloc_ddp_bufs()
/linux-6.6.21/fs/smb/client/
Dsmbdirect.c21 static int allocate_receive_buffers(struct smbd_connection *info, int num_buf);
1204 static int allocate_receive_buffers(struct smbd_connection *info, int num_buf) in allocate_receive_buffers() argument
1224 for (i = 0; i < num_buf; i++) { in allocate_receive_buffers()