Home
last modified time | relevance | path

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

12

/kernel/linux/common_modules/newip/src/common/
Dnip_hdr_decap.c15 static int _get_nip_hdr_bitmap(struct nip_buff *nbuf, in _get_nip_hdr_bitmap() argument
21 if (nbuf->remaining_len < sizeof(unsigned char)) in _get_nip_hdr_bitmap()
24 if (*nbuf->data & NIP_BITMAP_INVALID_SET) in _get_nip_hdr_bitmap()
31 if (nbuf->remaining_len < sizeof(unsigned char)) in _get_nip_hdr_bitmap()
34 bitmap[i] = *nbuf->data; in _get_nip_hdr_bitmap()
35 nip_buff_pull(nbuf, sizeof(unsigned char)); in _get_nip_hdr_bitmap()
42 static int _get_nip_hdr_ttl(struct nip_buff *nbuf, in _get_nip_hdr_ttl() argument
49 if (nbuf->remaining_len < sizeof(niph->ttl)) in _get_nip_hdr_ttl()
52 niph->ttl = *nbuf->data; in _get_nip_hdr_ttl()
54 nip_buff_pull(nbuf, sizeof(niph->ttl)); in _get_nip_hdr_ttl()
[all …]
Dnip_addr.h117 static inline void nip_buff_pull(struct nip_buff *nbuf, unsigned int len) in nip_buff_pull() argument
119 if (len > nbuf->remaining_len) in nip_buff_pull()
122 nbuf->data += len; in nip_buff_pull()
123 nbuf->remaining_len -= len; in nip_buff_pull()
131 unsigned char *decode_nip_addr(struct nip_buff *nbuf, struct nip_addr *addr);
Dnip_addr.c406 unsigned char *decode_nip_addr(struct nip_buff *nbuf, struct nip_addr *addr) in decode_nip_addr() argument
412 if (nbuf->remaining_len < sizeof(unsigned char)) in decode_nip_addr()
415 addr->NIP_ADDR_FIELD8[0] = *nbuf->data; in decode_nip_addr()
420 if (nbuf->remaining_len < addr_len) in decode_nip_addr()
424 addr->NIP_ADDR_FIELD8[i] = *nbuf->data; in decode_nip_addr()
425 nip_buff_pull(nbuf, sizeof(unsigned char)); in decode_nip_addr()
433 return nbuf->data; in decode_nip_addr()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/
Dpci_mac.c56 int i, nbuf = tx_info->nbuf - 1; in mt7615_write_hw_txp() local
60 tx_info->nbuf = 1; in mt7615_write_hw_txp()
70 for (i = 0; i < nbuf; i++) { in mt7615_write_hw_txp()
74 if (i == nbuf - 1) in mt7615_write_hw_txp()
97 int nbuf = tx_info->nbuf - 1; in mt7615_write_fw_txp() local
100 for (i = 0; i < nbuf; i++) { in mt7615_write_fw_txp()
104 txp->nbuf = nbuf; in mt7615_write_fw_txp()
110 tx_info->nbuf = MT_CT_DMA_BUF_NUM; in mt7615_write_fw_txp()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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_len_unlocked(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()
426 char nbuf[NAME_MAX+1]; in exportfs_decode_fh() local
459 err = reconnect_path(mnt, result, nbuf); in exportfs_decode_fh()
510 err = reconnect_path(mnt, target_dir, nbuf); in exportfs_decode_fh()
521 err = exportfs_get_name(mnt, target_dir, nbuf, result); in exportfs_decode_fh()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/gfs2/
Dtrans.c94 s64 nbuf; in gfs2_trans_end() local
108 nbuf = tr->tr_num_buf_new + tr->tr_num_databuf_new; in gfs2_trans_end()
109 nbuf -= tr->tr_num_buf_rm; in gfs2_trans_end()
110 nbuf -= tr->tr_num_databuf_rm; in gfs2_trans_end()
112 if (gfs2_assert_withdraw(sdp, (nbuf <= tr->tr_blocks) && in gfs2_trans_end()
Dlops.c722 unsigned int nbuf; in buf_lo_before_commit() local
725 nbuf = tr->tr_num_buf_new - tr->tr_num_buf_rm; in buf_lo_before_commit()
726 gfs2_before_commit(sdp, limit, nbuf, &tr->tr_buf, 0); in buf_lo_before_commit()
980 unsigned int nbuf; in databuf_lo_before_commit() local
983 nbuf = tr->tr_num_databuf_new - tr->tr_num_databuf_rm; in databuf_lo_before_commit()
984 gfs2_before_commit(sdp, limit, nbuf, &tr->tr_databuf, 1); in databuf_lo_before_commit()
/kernel/linux/linux-5.10/drivers/crypto/
Dtalitos.c873 unsigned int nbuf; member
885 unsigned int nbuf; member
1730 if (is_sec1 && req_ctx->nbuf) in common_nonsnoop_hash_unmap()
1755 req_ctx->nbuf = req_ctx->to_hash_later; in ahash_done()
1820 if (is_sec1 && req_ctx->nbuf) in common_nonsnoop_hash()
1821 length -= req_ctx->nbuf; in common_nonsnoop_hash()
1832 if (is_sec1 && req_ctx->nbuf) { in common_nonsnoop_hash()
1833 map_single_talitos_ptr(dev, &desc->ptr[3], req_ctx->nbuf, in common_nonsnoop_hash()
1861 if (is_sec1 && req_ctx->nbuf && length) { in common_nonsnoop_hash()
1921 nbytes -= req_ctx->nbuf; in ahash_edesc_alloc()
[all …]
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Dnndisc.c522 struct nip_buff nbuf; in nndisc_rcv_ns() local
531 nbuf.data = msg->data; in nndisc_rcv_ns()
532 nbuf.remaining_len = skb->len - sizeof(struct nip_icmp_hdr); in nndisc_rcv_ns()
534 p = decode_nip_addr(&nbuf, &addr); in nndisc_rcv_ns()
556 if (!nip_get_nndisc_rcv_checksum(skb, nbuf.data)) { in nndisc_rcv_ns()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/media/platform/xilinx/
Dxilinx-dma.c393 struct xvip_dma_buffer *buf, *nbuf; in xvip_dma_start_streaming() local
440 list_for_each_entry_safe(buf, nbuf, &dma->queued_bufs, queue) { in xvip_dma_start_streaming()
453 struct xvip_dma_buffer *buf, *nbuf; in xvip_dma_stop_streaming() local
467 list_for_each_entry_safe(buf, nbuf, &dma->queued_bufs, queue) { in xvip_dma_stop_streaming()
/kernel/linux/linux-5.10/fs/ext4/
Dext4_jbd2.c180 char nbuf[16]; in ext4_journal_abort_handle() local
181 const char *errstr = ext4_decode_error(NULL, err, nbuf); in ext4_journal_abort_handle()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7915/
Dmac.c720 int id, i, nbuf = tx_info->nbuf - 1; in mt7915_tx_prepare_skb() local
732 for (i = 0; i < nbuf; i++) { in mt7915_tx_prepare_skb()
736 txp->nbuf = nbuf; in mt7915_tx_prepare_skb()
741 tx_info->nbuf = MT_CT_DMA_BUF_NUM; in mt7915_tx_prepare_skb()
859 for (i = 0; i < txp->nbuf; i++) in mt7915_txp_skb_unmap()
Dmac.h259 u8 nbuf; member
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_verbs.c971 if (unlikely(mr->nbuf == mr->num_buf)) in rxe_set_page()
974 map = mr->map[mr->nbuf / RXE_BUF_PER_MAP]; in rxe_set_page()
975 buf = &map->buf[mr->nbuf % RXE_BUF_PER_MAP]; in rxe_set_page()
979 mr->nbuf++; in rxe_set_page()
990 mr->nbuf = 0; in rxe_map_mr_sg()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Ddma.c397 tx_info.nbuf = n; in mt76_dma_tx_queue_skb()
399 if (q->queued + (tx_info.nbuf + 1) / 2 >= q->ndesc - 1) { in mt76_dma_tx_queue_skb()
412 return mt76_dma_add_buf(dev, q, tx_info.buf, tx_info.nbuf, in mt76_dma_tx_queue_skb()
/kernel/linux/linux-5.10/sound/core/
Dinfo.c331 char *nbuf = kvzalloc(PAGE_ALIGN(next), GFP_KERNEL); in snd_info_text_entry_write() local
332 if (!nbuf) { in snd_info_text_entry_write()
337 buf->buffer = nbuf; in snd_info_text_entry_write()
/kernel/linux/linux-5.10/fs/fuse/
Ddev.c1977 unsigned nbuf; in fuse_dev_splice_write() local
2002 nbuf = 0; in fuse_dev_splice_write()
2016 if (WARN_ON(nbuf >= count || tail == head)) in fuse_dev_splice_write()
2020 obuf = &bufs[nbuf]; in fuse_dev_splice_write()
2037 nbuf++; in fuse_dev_splice_write()
2044 cs.nr_segs = nbuf; in fuse_dev_splice_write()
2054 for (idx = 0; idx < nbuf; idx++) { in fuse_dev_splice_write()
/kernel/linux/linux-5.10/drivers/media/platform/
Dvia-camera.c410 int nbuf = cam->viadev->camera_fbmem_size/cam->sensor_format.sizeimage; in viacam_ctlr_cbufs() local
417 if (nbuf >= 3) { in viacam_ctlr_cbufs()
421 } else if (nbuf == 2) { in viacam_ctlr_cbufs()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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