Home
last modified time | relevance | path

Searched refs:nbuf (Results 1 - 25 of 71) sorted by relevance

123

/kernel/linux/common_modules/newip/src/common/
H A 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, sizeo in _get_nip_hdr_ttl()
63 _get_nip_hdr_len(struct nip_buff *nbuf, unsigned char bitmap, struct nip_hdr_decap *niph) _get_nip_hdr_len() argument
87 _get_nip_hdr_nexthdr(struct nip_buff *nbuf, unsigned char bitmap, struct nip_hdr_decap *niph) _get_nip_hdr_nexthdr() argument
106 _get_nip_hdr_daddr(struct nip_buff *nbuf, unsigned char bitmap, struct nip_hdr_decap *niph) _get_nip_hdr_daddr() argument
128 _get_nip_hdr_saddr(struct nip_buff *nbuf, unsigned char bitmap, struct nip_hdr_decap *niph) _get_nip_hdr_saddr() argument
150 _get_nip_total_len(struct nip_buff *nbuf, unsigned char bitmap, struct nip_hdr_decap *niph) _get_nip_total_len() argument
170 _nip_hdr_bitmap0_parse(struct nip_buff *nbuf, unsigned char bitmap, struct nip_hdr_decap *niph) _nip_hdr_bitmap0_parse() argument
200 _nip_hdr_bitmap1_parse(struct nip_buff *nbuf, unsigned char bitmap, struct nip_hdr_decap *niph) _nip_hdr_bitmap1_parse() argument
218 _nip_hdr_unknown_bit_check(struct nip_buff *nbuf, unsigned char bitmap, struct nip_hdr_decap *niph) _nip_hdr_unknown_bit_check() argument
260 struct nip_buff nbuf; nip_hdr_parse() local
[all...]
H A 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);
H A 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/
H A 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()
[all...]
/kernel/linux/linux-5.10/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] in bts_buffer_setup_aux()
[all...]
/kernel/linux/linux-6.6/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] in bts_buffer_setup_aux()
[all...]
/kernel/linux/linux-5.10/fs/exportfs/
H A Dexpfs.c122 struct dentry *dentry, char *nbuf) in reconnect_one()
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()
121 reconnect_one(struct vfsmount *mnt, struct dentry *dentry, char *nbuf) reconnect_one() argument
[all...]
/kernel/linux/linux-6.6/fs/exportfs/
H A Dexpfs.c122 struct dentry *dentry, char *nbuf) in reconnect_one()
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()
121 reconnect_one(struct vfsmount *mnt, struct dentry *dentry, char *nbuf) reconnect_one() argument
[all...]
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/fs/gfs2/
H A 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()
H A 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/
H A 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/linux-6.6/drivers/crypto/
H A 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...]
/kernel/linux/linux-6.6/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()
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
H A 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/fs/ubifs/
H A 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-6.6/fs/ubifs/
H A 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/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()
/kernel/linux/linux-5.10/drivers/media/platform/xilinx/
H A 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-6.6/drivers/media/platform/xilinx/
H A 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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
H A Dinit.c285 int nbuf, int ndesc, bool is_tx) in ath_descdma_setup()
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()
283 ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd, struct list_head *head, const char *name, int nbuf, int ndesc, bool is_tx) ath_descdma_setup() argument

Completed in 35 milliseconds

123