Home
last modified time | relevance | path

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

12

/linux-6.6.21/arch/x86/events/intel/
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-6.6.21/fs/exportfs/
Dexpfs.c122 struct dentry *dentry, char *nbuf) in reconnect_one() argument
142 err = exportfs_get_name(mnt, parent, nbuf, dentry); in reconnect_one()
147 dprintk("%s: found name: %s\n", __func__, nbuf); in reconnect_one()
148 tmp = lookup_one_unlocked(mnt_idmap(mnt), nbuf, parent, strlen(nbuf)); in reconnect_one()
212 reconnect_path(struct vfsmount *mnt, struct dentry *target_dir, char *nbuf) in reconnect_path() argument
222 parent = reconnect_one(mnt, dentry, nbuf); in reconnect_path()
453 char nbuf[NAME_MAX+1]; in exportfs_decode_fh_raw() local
484 err = reconnect_path(mnt, result, nbuf); in exportfs_decode_fh_raw()
535 err = reconnect_path(mnt, target_dir, nbuf); in exportfs_decode_fh_raw()
546 err = exportfs_get_name(mnt, target_dir, nbuf, result); in exportfs_decode_fh_raw()
[all …]
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7615/
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-6.6.21/arch/sparc/prom/
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-6.6.21/fs/gfs2/
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()
Dlops.c726 unsigned int nbuf; in buf_lo_before_commit() local
729 nbuf = tr->tr_num_buf_new - tr->tr_num_buf_rm; in buf_lo_before_commit()
730 gfs2_before_commit(sdp, limit, nbuf, &tr->tr_buf, 0); in buf_lo_before_commit()
1003 unsigned int nbuf; in databuf_lo_before_commit() local
1006 nbuf = tr->tr_num_databuf_new - tr->tr_num_databuf_rm; in databuf_lo_before_commit()
1007 gfs2_before_commit(sdp, limit, nbuf, &tr->tr_databuf, 1); in databuf_lo_before_commit()
/linux-6.6.21/drivers/crypto/
Dtalitos.c874 unsigned int nbuf; member
886 unsigned int nbuf; member
1731 if (is_sec1 && req_ctx->nbuf) in common_nonsnoop_hash_unmap()
1756 req_ctx->nbuf = req_ctx->to_hash_later; in ahash_done()
1821 if (is_sec1 && req_ctx->nbuf) in common_nonsnoop_hash()
1822 length -= req_ctx->nbuf; in common_nonsnoop_hash()
1833 if (is_sec1 && req_ctx->nbuf) { in common_nonsnoop_hash()
1834 map_single_talitos_ptr(dev, &desc->ptr[3], req_ctx->nbuf, in common_nonsnoop_hash()
1862 if (is_sec1 && req_ctx->nbuf && length) { in common_nonsnoop_hash()
1922 nbytes -= req_ctx->nbuf; in ahash_edesc_alloc()
[all …]
/linux-6.6.21/drivers/net/wireless/ath/ath9k/
Dinit.c285 int nbuf, int ndesc, bool is_tx) in ath_descdma_setup() argument
292 name, nbuf, ndesc); in ath_descdma_setup()
308 dd->dd_desc_len = desc_len * nbuf * ndesc; in ath_descdma_setup()
343 bsize = sizeof(struct ath_buf) * nbuf; in ath_descdma_setup()
348 for (i = 0; i < nbuf; i++, bf++, ds += (desc_len * ndesc)) { in ath_descdma_setup()
374 bsize = sizeof(struct ath_rxbuf) * nbuf; in ath_descdma_setup()
379 for (i = 0; i < nbuf; i++, bf++, ds += (desc_len * ndesc)) { in ath_descdma_setup()
/linux-6.6.21/tools/testing/selftests/bpf/
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()
Dxsk.c314 void *nbuf; in alloc_iov() local
316 nbuf = realloc(iov->iov_base, len); in alloc_iov()
317 if (!nbuf) in alloc_iov()
320 iov->iov_base = nbuf; in alloc_iov()
/linux-6.6.21/fs/ubifs/
Dreplay.c438 char *nbuf; in insert_dent() local
448 nbuf = kmalloc(nlen + 1, GFP_KERNEL); in insert_dent()
449 if (!nbuf) { in insert_dent()
464 memcpy(nbuf, name, nlen); in insert_dent()
465 nbuf[nlen] = '\0'; in insert_dent()
466 fname_name(&r->nm) = nbuf; in insert_dent()
/linux-6.6.21/drivers/infiniband/sw/rxe/
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()
Drxe_verbs.h317 u32 nbuf; member
/linux-6.6.21/drivers/media/platform/xilinx/
Dxilinx-dma.c377 struct xvip_dma_buffer *buf, *nbuf; in xvip_dma_start_streaming() local
423 list_for_each_entry_safe(buf, nbuf, &dma->queued_bufs, queue) { in xvip_dma_start_streaming()
436 struct xvip_dma_buffer *buf, *nbuf; in xvip_dma_stop_streaming() local
450 list_for_each_entry_safe(buf, nbuf, &dma->queued_bufs, queue) { in xvip_dma_stop_streaming()
/linux-6.6.21/fs/ext4/
Dext4_jbd2.c187 char nbuf[16]; in ext4_journal_abort_handle() local
188 const char *errstr = ext4_decode_error(NULL, err, nbuf); in ext4_journal_abort_handle()
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/
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()
Ddma.c545 tx_info.nbuf = n; in mt76_dma_tx_queue_skb()
547 if (q->queued + (tx_info.nbuf + 1) / 2 >= q->ndesc - 1) { in mt76_dma_tx_queue_skb()
560 return mt76_dma_add_buf(dev, q, tx_info.buf, tx_info.nbuf, in mt76_dma_tx_queue_skb()
/linux-6.6.21/tools/lib/bpf/
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-6.6.21/sound/core/
Dinfo.c330 char *nbuf = kvzalloc(PAGE_ALIGN(next), GFP_KERNEL); in snd_info_text_entry_write() local
331 if (!nbuf) { in snd_info_text_entry_write()
336 buf->buffer = nbuf; in snd_info_text_entry_write()
/linux-6.6.21/fs/fuse/
Ddev.c1968 unsigned nbuf; in fuse_dev_splice_write() local
1993 nbuf = 0; in fuse_dev_splice_write()
2007 if (WARN_ON(nbuf >= count || tail == head)) in fuse_dev_splice_write()
2011 obuf = &bufs[nbuf]; in fuse_dev_splice_write()
2028 nbuf++; in fuse_dev_splice_write()
2035 cs.nr_segs = nbuf; in fuse_dev_splice_write()
2045 for (idx = 0; idx < nbuf; idx++) { in fuse_dev_splice_write()
/linux-6.6.21/drivers/media/platform/via/
Dvia-camera.c399 int nbuf = cam->viadev->camera_fbmem_size/cam->sensor_format.sizeimage; in viacam_ctlr_cbufs() local
406 if (nbuf >= 3) { in viacam_ctlr_cbufs()
410 } else if (nbuf == 2) { in viacam_ctlr_cbufs()
/linux-6.6.21/drivers/net/ethernet/apm/xgene/
Dxgene_enet_main.c68 u32 nbuf) in xgene_enet_refill_pagepool() argument
89 for (i = 0; i < nbuf; i++) { in xgene_enet_refill_pagepool()
112 pdata->ring_ops->wr_cmd(buf_pool, nbuf); in xgene_enet_refill_pagepool()
119 u32 nbuf) in xgene_enet_refill_bufpool() argument
139 for (i = 0; i < nbuf; i++) { in xgene_enet_refill_bufpool()
161 pdata->ring_ops->wr_cmd(buf_pool, nbuf); in xgene_enet_refill_bufpool()
/linux-6.6.21/drivers/net/wireless/mediatek/mt76/mt7915/
Dmac.c753 int id, i, nbuf = tx_info->nbuf - 1; in mt7915_tx_prepare_skb() local
786 for (i = 0; i < nbuf; i++) { in mt7915_tx_prepare_skb()
790 txp->nbuf = nbuf; in mt7915_tx_prepare_skb()
817 tx_info->nbuf = MT_CT_DMA_BUF_NUM; in mt7915_tx_prepare_skb()
839 txp->nbuf = 1; in mt7915_wed_init_buf()
/linux-6.6.21/include/linux/soc/mediatek/
Dmtk_wed.h138 unsigned int nbuf; member
/linux-6.6.21/drivers/net/ethernet/apm/xgene-v2/
Dmain.c64 static int xge_refill_buffers(struct net_device *ndev, u32 nbuf) in xge_refill_buffers() argument
78 for (i = 0; i < nbuf; i++) { in xge_refill_buffers()

12