Home
last modified time | relevance | path

Searched refs:ntc (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/
Dixgbe_xsk.c241 u32 ntc = rx_ring->next_to_clean + 1; in ixgbe_inc_ntc() local
243 ntc = (ntc < rx_ring->count) ? ntc : 0; in ixgbe_inc_ntc()
244 rx_ring->next_to_clean = ntc; in ixgbe_inc_ntc()
245 prefetch(IXGBE_RX_DESC(rx_ring, ntc)); in ixgbe_inc_ntc()
464 u16 ntc = tx_ring->next_to_clean, ntu = tx_ring->next_to_use; in ixgbe_clean_xdp_tx_irq() local
471 tx_bi = &tx_ring->tx_buffer_info[ntc]; in ixgbe_clean_xdp_tx_irq()
472 tx_desc = IXGBE_TX_DESC(tx_ring, ntc); in ixgbe_clean_xdp_tx_irq()
474 while (ntc != ntu) { in ixgbe_clean_xdp_tx_irq()
490 ntc++; in ixgbe_clean_xdp_tx_irq()
491 if (unlikely(ntc == tx_ring->count)) { in ixgbe_clean_xdp_tx_irq()
[all …]
Dixgbe.h549 u16 ntc = ring->next_to_clean; in ixgbe_desc_unused() local
552 return ((ntc > ntu) ? 0 : ring->count) + ntc - ntu - 1; in ixgbe_desc_unused()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_xsk.c547 int ntc = rx_ring->next_to_clean + 1; in ice_bump_ntc() local
549 ntc = (ntc < rx_ring->count) ? ntc : 0; in ice_bump_ntc()
550 rx_ring->next_to_clean = ntc; in ice_bump_ntc()
551 prefetch(ICE_RX_DESC(rx_ring, ntc)); in ice_bump_ntc()
788 u16 ntc = xdp_ring->next_to_clean; in ice_clean_xdp_irq_zc() local
800 if (last_rs >= ntc) in ice_clean_xdp_irq_zc()
801 xsk_frames = last_rs - ntc + 1; in ice_clean_xdp_irq_zc()
803 xsk_frames = last_rs + cnt - ntc + 1; in ice_clean_xdp_irq_zc()
812 ntc = xdp_ring->next_to_clean; in ice_clean_xdp_irq_zc()
814 tx_buf = &xdp_ring->tx_buf[ntc]; in ice_clean_xdp_irq_zc()
[all …]
Dice_controlq.c865 u16 ntc = sq->next_to_clean; in ice_clean_sq() local
869 desc = ICE_CTL_Q_DESC(*sq, ntc); in ice_clean_sq()
870 details = ICE_CTL_Q_DETAILS(*sq, ntc); in ice_clean_sq()
872 while (rd32(hw, cq->sq.head) != ntc) { in ice_clean_sq()
873 ice_debug(hw, ICE_DBG_AQ_MSG, "ntc %d head %d.\n", ntc, rd32(hw, cq->sq.head)); in ice_clean_sq()
876 ntc++; in ice_clean_sq()
877 if (ntc == sq->count) in ice_clean_sq()
878 ntc = 0; in ice_clean_sq()
879 desc = ICE_CTL_Q_DESC(*sq, ntc); in ice_clean_sq()
880 details = ICE_CTL_Q_DETAILS(*sq, ntc); in ice_clean_sq()
[all …]
Dice_txrx_lib.c231 u16 ntc = xdp_ring->next_to_clean; in ice_clean_xdp_irq() local
243 tx_buf = &xdp_ring->tx_buf[ntc]; in ice_clean_xdp_irq()
257 ntc++; in ice_clean_xdp_irq()
258 if (ntc >= xdp_ring->count) in ice_clean_xdp_irq()
259 ntc = 0; in ice_clean_xdp_irq()
266 xdp_ring->next_to_clean = ntc; in ice_clean_xdp_irq()
Dice_txrx.c1054 u16 ntc = rx_ring->next_to_clean + 1; in ice_put_rx_buf() local
1057 ntc = (ntc < rx_ring->count) ? ntc : 0; in ice_put_rx_buf()
1058 rx_ring->next_to_clean = ntc; in ice_put_rx_buf()
/linux-6.1.9/drivers/net/ethernet/intel/iavf/
Diavf_adminq.c584 u16 ntc = asq->next_to_clean; in iavf_clean_asq() local
588 desc = IAVF_ADMINQ_DESC(*asq, ntc); in iavf_clean_asq()
589 details = IAVF_ADMINQ_DETAILS(*asq, ntc); in iavf_clean_asq()
590 while (rd32(hw, hw->aq.asq.head) != ntc) { in iavf_clean_asq()
592 "ntc %d head %d.\n", ntc, rd32(hw, hw->aq.asq.head)); in iavf_clean_asq()
603 ntc++; in iavf_clean_asq()
604 if (ntc == asq->count) in iavf_clean_asq()
605 ntc = 0; in iavf_clean_asq()
606 desc = IAVF_ADMINQ_DESC(*asq, ntc); in iavf_clean_asq()
607 details = IAVF_ADMINQ_DETAILS(*asq, ntc); in iavf_clean_asq()
[all …]
Diavf_txrx.c1467 u32 ntc = rx_ring->next_to_clean + 1; in iavf_is_non_eop() local
1470 ntc = (ntc < rx_ring->count) ? ntc : 0; in iavf_is_non_eop()
1471 rx_ring->next_to_clean = ntc; in iavf_is_non_eop()
1473 prefetch(IAVF_RX_DESC(rx_ring, ntc)); in iavf_is_non_eop()
/linux-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_xsk.c593 unsigned int ntc; in i40e_clean_xdp_tx_irq() local
607 ntc = tx_ring->next_to_clean; in i40e_clean_xdp_tx_irq()
610 tx_bi = &tx_ring->tx_bi[ntc]; in i40e_clean_xdp_tx_irq()
619 if (++ntc >= tx_ring->count) in i40e_clean_xdp_tx_irq()
620 ntc = 0; in i40e_clean_xdp_tx_irq()
687 u16 ntc = rx_ring->next_to_clean; in i40e_xsk_clean_rx_ring() local
690 for ( ; ntc != ntu; ntc = (ntc + 1) & count_mask) { in i40e_xsk_clean_rx_ring()
691 struct xdp_buff *rx_bi = *i40e_rx_bi(rx_ring, ntc); in i40e_xsk_clean_rx_ring()
703 u16 ntc = tx_ring->next_to_clean, ntu = tx_ring->next_to_use; in i40e_xsk_clean_tx_ring() local
708 while (ntc != ntu) { in i40e_xsk_clean_tx_ring()
[all …]
Di40e_adminq.c725 u16 ntc = asq->next_to_clean; in i40e_clean_asq() local
729 desc = I40E_ADMINQ_DESC(*asq, ntc); in i40e_clean_asq()
730 details = I40E_ADMINQ_DETAILS(*asq, ntc); in i40e_clean_asq()
731 while (rd32(hw, hw->aq.asq.head) != ntc) { in i40e_clean_asq()
733 "ntc %d head %d.\n", ntc, rd32(hw, hw->aq.asq.head)); in i40e_clean_asq()
743 ntc++; in i40e_clean_asq()
744 if (ntc == asq->count) in i40e_clean_asq()
745 ntc = 0; in i40e_clean_asq()
746 desc = I40E_ADMINQ_DESC(*asq, ntc); in i40e_clean_asq()
747 details = I40E_ADMINQ_DETAILS(*asq, ntc); in i40e_clean_asq()
[all …]
Di40e_txrx.c2414 u32 ntc = rx_ring->next_to_clean + 1; in i40e_inc_ntc() local
2416 ntc = (ntc < rx_ring->count) ? ntc : 0; in i40e_inc_ntc()
2417 rx_ring->next_to_clean = ntc; in i40e_inc_ntc()
2418 prefetch(I40E_RX_DESC(rx_ring, ntc)); in i40e_inc_ntc()
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3_common/
Dhclge_comm_cmd.c267 int ntc = ring->next_to_clean; in hclge_comm_ring_space() local
269 int used = (ntu - ntc + ring->desc_num) % ring->desc_num; in hclge_comm_ring_space()
293 int ntc = ring->next_to_clean; in hclge_comm_is_valid_csq_clean_head() local
296 if (ntu > ntc) in hclge_comm_is_valid_csq_clean_head()
297 return head >= ntc && head <= ntu; in hclge_comm_is_valid_csq_clean_head()
299 return head >= ntc || head <= ntu; in hclge_comm_is_valid_csq_clean_head()
376 int ntc) in hclge_comm_cmd_check_retval() argument
383 desc[handle] = hw->cmq.csq.desc[ntc]; in hclge_comm_cmd_check_retval()
384 ntc++; in hclge_comm_cmd_check_retval()
385 if (ntc >= hw->cmq.csq.desc_num) in hclge_comm_cmd_check_retval()
[all …]
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/
Dhns3_trace.h74 __field(int, ntc)
83 __entry->ntc = ring->next_to_clean;
93 __entry->ntc, &__entry->desc_dma,
105 __field(int, ntc)
115 __entry->ntc = ring->next_to_clean;
126 __entry->ntc, &__entry->desc_dma, &__entry->buf_dma,
Dhns3_enet.c964 u32 ntc, ntu; in hns3_tx_spare_space() local
969 ntc = smp_load_acquire(&tx_spare->last_to_clean); in hns3_tx_spare_space()
972 if (ntc > ntu) in hns3_tx_spare_space()
973 return ntc - ntu - 1; in hns3_tx_spare_space()
978 return max(ntc, tx_spare->len - ntu) - 1; in hns3_tx_spare_space()
1131 u32 ntc = tx_spare->next_to_clean; in hns3_tx_spare_reclaim_cb() local
1140 ntc = 0; in hns3_tx_spare_reclaim_cb()
1151 dma_addr_t dma = tx_spare->dma + ntc; in hns3_tx_spare_reclaim_cb()
1156 struct sg_table *sgt = tx_spare->buf + ntc; in hns3_tx_spare_reclaim_cb()
3570 int ntc = ring->next_to_clean; in hns3_nic_reclaim_desc() local
[all …]
/linux-6.1.9/arch/mips/kernel/
Dmips-mt.c56 int ntc; in mips_mt_regdump() local
70 ntc = ((mvpconf0 & MVPCONF0_PTC) >> MVPCONF0_PTC_SHIFT) + 1; in mips_mt_regdump()
73 for (tc = 0; tc < ntc; tc++) { in mips_mt_regdump()
95 for (tc = 0; tc < ntc; tc++) { in mips_mt_regdump()
Dsmp-mt.c185 unsigned int mvpconf0, ntc, tc, ncpu = 0; in vsmp_smp_setup() local
204 ntc = (mvpconf0 & MVPCONF0_PTC) >> MVPCONF0_PTC_SHIFT; in vsmp_smp_setup()
211 for (tc = 0; tc <= ntc; tc++) { in vsmp_smp_setup()
/linux-6.1.9/Documentation/devicetree/bindings/hwmon/
Dntc-thermistor.yaml3 $id: http://devicetree.org/schemas/hwmon/ntc-thermistor.yaml#
81 - const: ntc,ncp15wb473
83 - const: ntc,ncp18wb473
85 - const: ntc,ncp21wb473
87 - const: ntc,ncp03wb473
89 - const: ntc,ncp15wl333
/linux-6.1.9/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf.h288 u16 ntc = ring->next_to_clean; in ixgbevf_desc_unused() local
291 return ((ntc > ntu) ? 0 : ring->count) + ntc - ntu - 1; in ixgbevf_desc_unused()
/linux-6.1.9/drivers/net/ethernet/mscc/
Docelot_fdma.c492 u16 ntc; in ocelot_fdma_tx_cleanup() local
501 ntc = tx_ring->next_to_clean; in ocelot_fdma_tx_cleanup()
502 dcb = &tx_ring->dcbs[ntc]; in ocelot_fdma_tx_cleanup()
506 buf = &tx_ring->bufs[ntc]; in ocelot_fdma_tx_cleanup()
514 tx_ring->next_to_clean = ocelot_fdma_idx_next(ntc, in ocelot_fdma_tx_cleanup()
/linux-6.1.9/drivers/net/ethernet/intel/igc/
Digc.h546 u16 ntc = ring->next_to_clean; in igc_desc_unused() local
549 return ((ntc > ntu) ? 0 : ring->count) + ntc - ntu - 1; in igc_desc_unused()
Digc_main.c1995 u32 ntc = rx_ring->next_to_clean + 1; in igc_is_non_eop() local
1998 ntc = (ntc < rx_ring->count) ? ntc : 0; in igc_is_non_eop()
1999 rx_ring->next_to_clean = ntc; in igc_is_non_eop()
2001 prefetch(IGC_RX_DESC(rx_ring, ntc)); in igc_is_non_eop()
2660 u16 ntc = ring->next_to_clean; in igc_clean_rx_irq_zc() local
2676 desc = IGC_RX_DESC(ring, ntc); in igc_clean_rx_irq_zc()
2687 bi = &ring->rx_buffer_info[ntc]; in igc_clean_rx_irq_zc()
2723 ntc++; in igc_clean_rx_irq_zc()
2724 if (ntc == ring->count) in igc_clean_rx_irq_zc()
2725 ntc = 0; in igc_clean_rx_irq_zc()
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c493 u32 ntc = rx_ring->next_to_clean + 1; in fm10k_is_non_eop() local
496 ntc = (ntc < rx_ring->count) ? ntc : 0; in fm10k_is_non_eop()
497 rx_ring->next_to_clean = ntc; in fm10k_is_non_eop()
499 prefetch(FM10K_RX_DESC(rx_ring, ntc)); in fm10k_is_non_eop()
/linux-6.1.9/drivers/hwmon/
Dntc_thermistor.c311 #define NTC_TYPE(ntc, compensation) \ argument
312 [(ntc)] = { .comp = (compensation), .n_comp = ARRAY_SIZE(compensation) }
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_main.c2703 static int mlx5e_netdev_set_tcs(struct net_device *netdev, u16 nch, u8 ntc, in mlx5e_netdev_set_tcs() argument
2710 if (ntc == 1) in mlx5e_netdev_set_tcs()
2713 err = netdev_set_num_tc(netdev, ntc); in mlx5e_netdev_set_tcs()
2715 netdev_WARN(netdev, "netdev_set_num_tc failed (%d), ntc = %d\n", err, ntc); in mlx5e_netdev_set_tcs()
2719 for (tc = 0; tc < ntc; tc++) { in mlx5e_netdev_set_tcs()
2732 int nch, ntc, num_txqs, err; in mlx5e_update_tx_netdev_queues() local
2739 ntc = mlx5e_get_dcb_num_tc(&priv->channels.params); in mlx5e_update_tx_netdev_queues()
2740 num_txqs = nch * ntc + qos_queues; in mlx5e_update_tx_netdev_queues()
2742 num_txqs += ntc; in mlx5e_update_tx_netdev_queues()
2757 int nch, ntc; in mlx5e_update_netdev_queues() local
[all …]
/linux-6.1.9/arch/arm64/boot/dts/mediatek/
Dmt8183-evb.dts40 ntc@0 {

12