Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/size/
H A 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/drivers/infiniband/sw/siw/
H A Dsiw_mem.c321 while (i < pbl->num_buf) { in siw_pbl_get_buffer()
341 struct siw_pbl *siw_pbl_alloc(u32 num_buf) in siw_pbl_alloc() argument
345 if (num_buf == 0) in siw_pbl_alloc()
348 pbl = kzalloc(struct_size(pbl, pbe, num_buf), GFP_KERNEL); in siw_pbl_alloc()
352 pbl->max_buf = num_buf; in siw_pbl_alloc()
H A Dsiw_mem.h12 struct siw_pbl *siw_pbl_alloc(u32 num_buf);
H A Dsiw_verbs.c1495 pbl->num_buf = 1; in siw_map_mr_sg()
1502 pbl->num_buf++; in siw_map_mr_sg()
1521 pbl->num_buf); in siw_map_mr_sg()
H A Dsiw.h135 unsigned int num_buf; member
/linux/drivers/infiniband/sw/rxe/
H A 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()
H A Drxe_verbs.h317 u32 num_buf; member
/linux/drivers/net/
H A Dvirtio_net.c1183 u32 num_buf, in xsk_drop_follow_bufs() argument
1189 while (num_buf-- > 1) { in xsk_drop_follow_bufs()
1193 dev->name, num_buf); in xsk_drop_follow_bufs()
1205 u32 num_buf, in xsk_append_merge_buffer() argument
1217 while (--num_buf) { in xsk_append_merge_buffer()
1221 vi->dev->name, num_buf, in xsk_append_merge_buffer()
1259 xsk_drop_follow_bufs(vi->dev, rq, num_buf, stats); in xsk_append_merge_buffer()
1271 u32 ret, num_buf; in virtnet_receive_xsk_merge() local
1274 num_buf = virtio16_to_cpu(vi->vdev, hdr->num_buffers); in virtnet_receive_xsk_merge()
1280 if (prog && num_buf == 1) in virtnet_receive_xsk_merge()
[all …]
/linux/drivers/media/platform/renesas/rzg2l-cru/
H A Drzg2l-cru.h112 u8 num_buf; member
H A 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()
571 slot = cru->num_buf - 1; in rzg2l_cru_irq()
H A Drzg2l-core.c283 cru->num_buf = RZG2L_CRU_HW_BUFFER_DEFAULT; in rzg2l_cru_probe()
/linux/kernel/trace/
H A 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/drivers/net/ethernet/atheros/atlx/
H A 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()
H A Datl1.h383 u8 num_buf; /* Number of RFD buffers used by the received packet */ member
/linux/drivers/accessibility/speakup/
H A 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/drivers/scsi/csiostor/
H A 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()