Home
last modified time | relevance | path

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

12

/linux-5.19.10/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.h515 u16 ntc = ring->next_to_clean; in ixgbe_desc_unused() local
518 return ((ntc > ntu) ? 0 : ring->count) + ntc - ntu - 1; in ixgbe_desc_unused()
/linux-5.19.10/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.c1464 u32 ntc = rx_ring->next_to_clean + 1; in iavf_is_non_eop() local
1467 ntc = (ntc < rx_ring->count) ? ntc : 0; in iavf_is_non_eop()
1468 rx_ring->next_to_clean = ntc; in iavf_is_non_eop()
1470 prefetch(IAVF_RX_DESC(rx_ring, ntc)); in iavf_is_non_eop()
/linux-5.19.10/drivers/net/ethernet/intel/i40e/
Di40e_xsk.c539 unsigned int ntc; in i40e_clean_xdp_tx_irq() local
553 ntc = tx_ring->next_to_clean; in i40e_clean_xdp_tx_irq()
556 tx_bi = &tx_ring->tx_bi[ntc]; in i40e_clean_xdp_tx_irq()
565 if (++ntc >= tx_ring->count) in i40e_clean_xdp_tx_irq()
566 ntc = 0; in i40e_clean_xdp_tx_irq()
633 u16 ntc = rx_ring->next_to_clean; in i40e_xsk_clean_rx_ring() local
636 for ( ; ntc != ntu; ntc = (ntc + 1) & count_mask) { in i40e_xsk_clean_rx_ring()
637 struct xdp_buff *rx_bi = *i40e_rx_bi(rx_ring, ntc); in i40e_xsk_clean_rx_ring()
649 u16 ntc = tx_ring->next_to_clean, ntu = tx_ring->next_to_use; in i40e_xsk_clean_tx_ring() local
654 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.c2422 u32 ntc = rx_ring->next_to_clean + 1; in i40e_inc_ntc() local
2424 ntc = (ntc < rx_ring->count) ? ntc : 0; in i40e_inc_ntc()
2425 rx_ring->next_to_clean = ntc; in i40e_inc_ntc()
2426 prefetch(I40E_RX_DESC(rx_ring, ntc)); in i40e_inc_ntc()
/linux-5.19.10/drivers/net/ethernet/intel/ice/
Dice_xsk.c555 int ntc = rx_ring->next_to_clean + 1; in ice_bump_ntc() local
557 ntc = (ntc < rx_ring->count) ? ntc : 0; in ice_bump_ntc()
558 rx_ring->next_to_clean = ntc; in ice_bump_ntc()
559 prefetch(ICE_RX_DESC(rx_ring, ntc)); in ice_bump_ntc()
802 u16 ntc, cleared_dds = 0; in ice_clean_xdp_irq_zc() local
823 ntc = xdp_ring->next_to_clean; in ice_clean_xdp_irq_zc()
826 tx_buf = &xdp_ring->tx_buf[ntc]; in ice_clean_xdp_irq_zc()
835 ntc++; in ice_clean_xdp_irq_zc()
836 if (ntc >= xdp_ring->count) in ice_clean_xdp_irq_zc()
837 ntc = 0; 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.c1051 u16 ntc = rx_ring->next_to_clean + 1; in ice_put_rx_buf() local
1054 ntc = (ntc < rx_ring->count) ? ntc : 0; in ice_put_rx_buf()
1055 rx_ring->next_to_clean = ntc; in ice_put_rx_buf()
/linux-5.19.10/drivers/net/ethernet/hisilicon/hns3/hns3_common/
Dhclge_comm_cmd.c259 int ntc = ring->next_to_clean; in hclge_comm_ring_space() local
261 int used = (ntu - ntc + ring->desc_num) % ring->desc_num; in hclge_comm_ring_space()
285 int ntc = ring->next_to_clean; in hclge_comm_is_valid_csq_clean_head() local
288 if (ntu > ntc) in hclge_comm_is_valid_csq_clean_head()
289 return head >= ntc && head <= ntu; in hclge_comm_is_valid_csq_clean_head()
291 return head >= ntc || head <= ntu; in hclge_comm_is_valid_csq_clean_head()
368 int ntc) in hclge_comm_cmd_check_retval() argument
375 desc[handle] = hw->cmq.csq.desc[ntc]; in hclge_comm_cmd_check_retval()
376 ntc++; in hclge_comm_cmd_check_retval()
377 if (ntc >= hw->cmq.csq.desc_num) in hclge_comm_cmd_check_retval()
[all …]
/linux-5.19.10/drivers/net/ethernet/hisilicon/hns3/
Dhns3_trace.h75 __field(int, ntc)
84 __entry->ntc = ring->next_to_clean;
94 __entry->ntc, &__entry->desc_dma,
106 __field(int, ntc)
116 __entry->ntc = ring->next_to_clean;
127 __entry->ntc, &__entry->desc_dma, &__entry->buf_dma,
Dhns3_enet.c962 u32 ntc, ntu; in hns3_tx_spare_space() local
967 ntc = smp_load_acquire(&tx_spare->last_to_clean); in hns3_tx_spare_space()
970 if (ntc > ntu) in hns3_tx_spare_space()
971 return ntc - ntu - 1; in hns3_tx_spare_space()
976 return max(ntc, tx_spare->len - ntu) - 1; in hns3_tx_spare_space()
1129 u32 ntc = tx_spare->next_to_clean; in hns3_tx_spare_reclaim_cb() local
1138 ntc = 0; in hns3_tx_spare_reclaim_cb()
1149 dma_addr_t dma = tx_spare->dma + ntc; in hns3_tx_spare_reclaim_cb()
1154 struct sg_table *sgt = tx_spare->buf + ntc; in hns3_tx_spare_reclaim_cb()
3526 int ntc = ring->next_to_clean; in hns3_nic_reclaim_desc() local
[all …]
/linux-5.19.10/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-5.19.10/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-5.19.10/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-5.19.10/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-5.19.10/drivers/net/ethernet/intel/igc/
Digc.h543 u16 ntc = ring->next_to_clean; in igc_desc_unused() local
546 return ((ntc > ntu) ? 0 : ring->count) + ntc - ntu - 1; in igc_desc_unused()
Digc_main.c1877 u32 ntc = rx_ring->next_to_clean + 1; in igc_is_non_eop() local
1880 ntc = (ntc < rx_ring->count) ? ntc : 0; in igc_is_non_eop()
1881 rx_ring->next_to_clean = ntc; in igc_is_non_eop()
1883 prefetch(IGC_RX_DESC(rx_ring, ntc)); in igc_is_non_eop()
2504 u16 ntc = ring->next_to_clean; in igc_clean_rx_irq_zc() local
2520 desc = IGC_RX_DESC(ring, ntc); in igc_clean_rx_irq_zc()
2531 bi = &ring->rx_buffer_info[ntc]; in igc_clean_rx_irq_zc()
2567 ntc++; in igc_clean_rx_irq_zc()
2568 if (ntc == ring->count) in igc_clean_rx_irq_zc()
2569 ntc = 0; in igc_clean_rx_irq_zc()
[all …]
/linux-5.19.10/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c485 u32 ntc = rx_ring->next_to_clean + 1; in fm10k_is_non_eop() local
488 ntc = (ntc < rx_ring->count) ? ntc : 0; in fm10k_is_non_eop()
489 rx_ring->next_to_clean = ntc; in fm10k_is_non_eop()
491 prefetch(FM10K_RX_DESC(rx_ring, ntc)); in fm10k_is_non_eop()
/linux-5.19.10/drivers/hwmon/
Dntc_thermistor.c311 #define NTC_TYPE(ntc, compensation) \ argument
312 [(ntc)] = { .comp = (compensation), .n_comp = ARRAY_SIZE(compensation) }
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_main.c2541 static int mlx5e_netdev_set_tcs(struct net_device *netdev, u16 nch, u8 ntc, in mlx5e_netdev_set_tcs() argument
2548 if (ntc == 1) in mlx5e_netdev_set_tcs()
2551 err = netdev_set_num_tc(netdev, ntc); in mlx5e_netdev_set_tcs()
2553 netdev_WARN(netdev, "netdev_set_num_tc failed (%d), ntc = %d\n", err, ntc); in mlx5e_netdev_set_tcs()
2557 for (tc = 0; tc < ntc; tc++) { in mlx5e_netdev_set_tcs()
2570 int qos_queues, nch, ntc, num_txqs, err; in mlx5e_update_tx_netdev_queues() local
2575 ntc = mlx5e_get_dcb_num_tc(&priv->channels.params); in mlx5e_update_tx_netdev_queues()
2576 num_txqs = nch * ntc + qos_queues; in mlx5e_update_tx_netdev_queues()
2578 num_txqs += ntc; in mlx5e_update_tx_netdev_queues()
2593 int num_rxqs, nch, ntc; in mlx5e_update_netdev_queues() local
[all …]
/linux-5.19.10/arch/arm64/boot/dts/mediatek/
Dmt8183-evb.dts40 ntc@0 {

12