/linux/arch/x86/events/intel/ |
H A D | bts.c | 89 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 D | pci_mac.c | 27 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 D | tree_32.c | 232 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 D | trans.c | 127 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 D | lops.c | 719 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 D | replay.c | 440 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 D | test_flow_dissector.c | 122 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 D | xsk.c | 317 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 D | rxe_mr.c | 220 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 D | rxe_verbs.h | 318 u32 nbuf; member
|
/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76_connac_mac.c | 165 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 D | dma.c | 588 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 D | mt76_connac.h | 140 u8 nbuf; member
|
/linux/tools/lib/bpf/ |
H A D | netlink.c | 121 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 D | info.c | 319 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 D | mac.c | 760 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 D | mmio.c | 687 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 D | mmio.c | 406 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 D | mac.c | 932 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 D | mtk_wed.h | 159 unsigned int nbuf; member
|
/linux/lib/ |
H A D | dynamic_debug.c | 181 struct flagsbuf fbuf, nbuf; in ddebug_change() local 261 ddebug_describe_flags(newflags, &nbuf)); in ddebug_change()
|
/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_wed.c | 644 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 D | ptp_clockmatrix.c | 2159 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 D | super.c | 914 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 D | ath9k.h | 79 int nbuf, int ndesc, bool is_tx);
|