Home
last modified time | relevance | path

Searched refs:nbuf (Results 1 – 25 of 29) sorted by relevance

12

/linux/arch/x86/events/intel/
H A Dbts.c89 int pg, nbuf, pad; in bts_buffer_setup_aux() local
92 for (pg = 0, nbuf = 0; pg < nr_pages;) { in bts_buffer_setup_aux()
95 nbuf++; in bts_buffer_setup_aux()
101 if (overwrite && nbuf > 1) in bts_buffer_setup_aux()
104 buf = kzalloc_node(offsetof(struct bts_buffer, buf[nbuf]), GFP_KERNEL, node); in bts_buffer_setup_aux()
109 buf->nr_bufs = nbuf; in bts_buffer_setup_aux()
114 for (pg = 0, nbuf = 0, offset = 0, pad = 0; nbuf < buf->nr_bufs; nbuf++) { in bts_buffer_setup_aux()
119 buf->buf[nbuf].page = page; in bts_buffer_setup_aux()
120 buf->buf[nbuf].offset = offset; in bts_buffer_setup_aux()
121 buf->buf[nbuf].displacement = (pad ? BTS_RECORD_SIZE - pad : 0); in bts_buffer_setup_aux()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dpci_mac.c27 int nbuf = tx_info->nbuf - 1; in mt7615_write_fw_txp() local
30 for (i = 0; i < nbuf; i++) { in mt7615_write_fw_txp()
34 txp->nbuf = nbuf; in mt7615_write_fw_txp()
40 tx_info->nbuf = MT_CT_DMA_BUF_NUM; in mt7615_write_fw_txp()
/linux/arch/sparc/prom/
H A Dtree_32.c232 char nbuf[128]; in prom_finddevice() local
242 for (d = nbuf; *s != 0 && *s != '@' && *s != '/';) in prom_finddevice()
246 node = prom_searchsiblings(node, nbuf); in prom_finddevice()
267 node2 = prom_searchsiblings(prom_getsibling(node2), nbuf); in prom_finddevice()
/linux/fs/gfs2/
H A Dtrans.c127 s64 nbuf; in gfs2_trans_end() local
143 nbuf = tr->tr_num_buf_new + tr->tr_num_databuf_new; in gfs2_trans_end()
144 nbuf -= tr->tr_num_buf_rm; in gfs2_trans_end()
145 nbuf -= tr->tr_num_databuf_rm; in gfs2_trans_end()
147 if (gfs2_assert_withdraw(sdp, nbuf <= tr->tr_blocks) || in gfs2_trans_end()
H A Dlops.c719 unsigned int nbuf; in buf_lo_before_commit() local
722 nbuf = tr->tr_num_buf_new - tr->tr_num_buf_rm; in buf_lo_before_commit()
723 gfs2_before_commit(sdp, limit, nbuf, &tr->tr_buf, 0); in buf_lo_before_commit()
996 unsigned int nbuf; in databuf_lo_before_commit() local
999 nbuf = tr->tr_num_databuf_new - tr->tr_num_databuf_rm; in databuf_lo_before_commit()
1000 gfs2_before_commit(sdp, limit, nbuf, &tr->tr_databuf, 1); in databuf_lo_before_commit()
/linux/fs/ubifs/
H A Dreplay.c440 char *nbuf; in insert_dent() local
450 nbuf = kmalloc(nlen + 1, GFP_KERNEL); in insert_dent()
451 if (!nbuf) { in insert_dent()
466 memcpy(nbuf, name, nlen); in insert_dent()
467 nbuf[nlen] = '\0'; in insert_dent()
468 fname_name(&r->nm) = nbuf; in insert_dent()
/linux/tools/testing/selftests/bpf/
H A Dtest_flow_dissector.c122 char nbuf[INET6_ADDRSTRLEN]; in util_printaddr() local
136 if (!inet_ntop(addr->sa_family, ((void *) addr) + off, nbuf, in util_printaddr()
137 sizeof(nbuf))) in util_printaddr()
140 fprintf(stderr, "%s: %s\n", msg, nbuf); in util_printaddr()
H A Dxsk.c317 void *nbuf; in alloc_iov() local
319 nbuf = realloc(iov->iov_base, len); in alloc_iov()
320 if (!nbuf) in alloc_iov()
323 iov->iov_base = nbuf; in alloc_iov()
/linux/drivers/infiniband/sw/rxe/
H A Drxe_mr.c220 if (unlikely(mr->nbuf == mr->num_buf)) in rxe_set_page()
223 err = xa_err(xa_store(&mr->page_list, mr->nbuf, page, GFP_KERNEL)); in rxe_set_page()
227 mr->nbuf++; in rxe_set_page()
237 mr->nbuf = 0; in rxe_map_mr_sg()
H A Drxe_verbs.h318 u32 nbuf; member
/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76_connac_mac.c165 int i, nbuf = tx_info->nbuf - 1; in mt76_connac_write_hw_txp() local
169 tx_info->nbuf = 1; in mt76_connac_write_hw_txp()
179 for (i = 0; i < nbuf; i++) { in mt76_connac_write_hw_txp()
183 if (i == nbuf - 1) in mt76_connac_write_hw_txp()
205 for (i = 0; i < txp->nbuf; i++) in mt76_connac_txp_skb_unmap_fw()
H A Ddma.c588 tx_info.nbuf = n; in mt76_dma_tx_queue_skb()
590 if (q->queued + (tx_info.nbuf + 1) / 2 >= q->ndesc - 1) { in mt76_dma_tx_queue_skb()
603 return mt76_dma_add_buf(dev, q, tx_info.buf, tx_info.nbuf, in mt76_dma_tx_queue_skb()
H A Dmt76_connac.h140 u8 nbuf; member
/linux/tools/lib/bpf/
H A Dnetlink.c121 void *nbuf; in alloc_iov() local
123 nbuf = realloc(iov->iov_base, len); in alloc_iov()
124 if (!nbuf) in alloc_iov()
127 iov->iov_base = nbuf; in alloc_iov()
/linux/sound/core/
H A Dinfo.c319 char *nbuf = kvzalloc(PAGE_ALIGN(next), GFP_KERNEL); in snd_info_text_entry_write() local
320 if (!nbuf) in snd_info_text_entry_write()
323 buf->buffer = nbuf; in snd_info_text_entry_write()
/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dmac.c760 int id, i, nbuf = tx_info->nbuf - 1; in mt7915_tx_prepare_skb() local
793 for (i = 0; i < nbuf; i++) { in mt7915_tx_prepare_skb()
797 txp->nbuf = nbuf; in mt7915_tx_prepare_skb()
824 tx_info->nbuf = MT_CT_DMA_BUF_NUM; in mt7915_tx_prepare_skb()
846 txp->nbuf = 1; in mt7915_wed_init_buf()
H A Dmmio.c687 wed->wlan.nbuf = MT7915_HW_TOKEN_SIZE; in mt7915_mmio_wed_init()
691 wed->wlan.token_start = MT7915_TOKEN_SIZE - wed->wlan.nbuf; in mt7915_mmio_wed_init()
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmmio.c406 wed->wlan.nbuf = MT7996_HW_TOKEN_SIZE; in mt7996_mmio_wed_init()
407 wed->wlan.token_start = MT7996_TOKEN_SIZE - wed->wlan.nbuf; in mt7996_mmio_wed_init()
H A Dmac.c932 int id, i, pid, nbuf = tx_info->nbuf - 1; in mt7996_tx_prepare_skb() local
954 for (i = 0; i < nbuf; i++) { in mt7996_tx_prepare_skb()
966 txp->fw.nbuf = nbuf; in mt7996_tx_prepare_skb()
991 tx_info->nbuf = MT_CT_DMA_BUF_NUM; in mt7996_tx_prepare_skb()
1013 txp->nbuf = 1; in mt7996_wed_init_buf()
/linux/include/linux/soc/mediatek/
H A Dmtk_wed.h159 unsigned int nbuf; member
/linux/lib/
H A Ddynamic_debug.c181 struct flagsbuf fbuf, nbuf; in ddebug_change() local
261 ddebug_describe_flags(newflags, &nbuf)); in ddebug_change()
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_wed.c644 ring_size = dev->wlan.nbuf & ~(MTK_WED_BUF_PER_PAGE - 1); in mtk_wed_tx_buffer_alloc()
1479 dev->wlan.token_start + dev->wlan.nbuf - 1)); in mtk_wed_hw_init()
1491 dev->wlan.nbuf / 128) | in mtk_wed_hw_init()
1493 dev->wlan.nbuf / 128)); in mtk_wed_hw_init()
/linux/drivers/ptp/
H A Dptp_clockmatrix.c2159 u8 nbuf[2] = {0}; in idtcm_get_dco_delay() local
2171 DPLL_CTRL_DPLL_FOD_FREQ + 6, nbuf, 2); in idtcm_get_dco_delay()
2176 n = get_unaligned_le16(nbuf); in idtcm_get_dco_delay()
/linux/fs/ext4/
H A Dsuper.c914 char nbuf[16]) in ext4_decode_error()
942 if (nbuf) { in ext4_decode_error()
944 if (snprintf(nbuf, 16, "error %d", -errno) >= 0) in ext4_decode_error()
945 errstr = nbuf; in ext4_decode_error()
959 char nbuf[16]; in __ext4_std_error() local
972 errstr = ext4_decode_error(sb, errno, nbuf); in __ext4_std_error()
6315 char nbuf[16]; in ext4_clear_journal_err() local
6317 errstr = ext4_decode_error(sb, j_errno, nbuf); in ext4_clear_journal_err()
/linux/drivers/net/wireless/ath/ath9k/
H A Dath9k.h79 int nbuf, int ndesc, bool is_tx);

12