Home
last modified time | relevance | path

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

12

/linux-6.6.21/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.h556 u16 ntc = ring->next_to_clean; in ixgbe_desc_unused() local
559 return ((ntc > ntu) ? 0 : ring->count) + ntc - ntu - 1; in ixgbe_desc_unused()
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_xsk.c618 u16 ntc = xdp_ring->next_to_clean; in ice_clean_xdp_irq_zc() local
631 if (last_rs >= ntc) in ice_clean_xdp_irq_zc()
632 completed_frames = last_rs - ntc + 1; in ice_clean_xdp_irq_zc()
634 completed_frames = last_rs + cnt - ntc + 1; in ice_clean_xdp_irq_zc()
645 ntc = xdp_ring->next_to_clean; in ice_clean_xdp_irq_zc()
647 tx_buf = &xdp_ring->tx_buf[ntc]; in ice_clean_xdp_irq_zc()
657 ntc++; in ice_clean_xdp_irq_zc()
658 if (ntc >= xdp_ring->count) in ice_clean_xdp_irq_zc()
659 ntc = 0; in ice_clean_xdp_irq_zc()
848 u32 ntc = rx_ring->next_to_clean; in ice_clean_rx_irq_zc() local
[all …]
Dice_txrx_lib.c257 u32 ntc = xdp_ring->next_to_clean; in ice_clean_xdp_irq() local
266 idx = xdp_ring->tx_buf[ntc].rs_idx; in ice_clean_xdp_irq()
270 if (idx >= ntc) in ice_clean_xdp_irq()
271 ready_frames = idx - ntc + 1; in ice_clean_xdp_irq()
273 ready_frames = idx + cnt - ntc + 1; in ice_clean_xdp_irq()
284 struct ice_tx_buf *tx_buf = &xdp_ring->tx_buf[ntc]; in ice_clean_xdp_irq()
295 ntc++; in ice_clean_xdp_irq()
296 if (ntc == cnt) in ice_clean_xdp_irq()
297 ntc = 0; in ice_clean_xdp_irq()
300 tx_buf = &xdp_ring->tx_buf[ntc]; in ice_clean_xdp_irq()
[all …]
Dice_controlq.c861 u16 ntc = sq->next_to_clean; in ice_clean_sq() local
865 desc = ICE_CTL_Q_DESC(*sq, ntc); in ice_clean_sq()
866 details = ICE_CTL_Q_DETAILS(*sq, ntc); in ice_clean_sq()
868 while (rd32(hw, cq->sq.head) != ntc) { in ice_clean_sq()
869 ice_debug(hw, ICE_DBG_AQ_MSG, "ntc %d head %d.\n", ntc, rd32(hw, cq->sq.head)); in ice_clean_sq()
872 ntc++; in ice_clean_sq()
873 if (ntc == sq->count) in ice_clean_sq()
874 ntc = 0; in ice_clean_sq()
875 desc = ICE_CTL_Q_DESC(*sq, ntc); in ice_clean_sq()
876 details = ICE_CTL_Q_DETAILS(*sq, ntc); in ice_clean_sq()
[all …]
Dice_txrx.c944 const unsigned int ntc) in ice_get_rx_buf() argument
948 rx_buf = &rx_ring->rx_buf[ntc]; in ice_get_rx_buf()
1154 u32 ntc = rx_ring->next_to_clean; in ice_clean_rx_irq() local
1183 rx_desc = ICE_RX_DESC(rx_ring, ntc); in ice_clean_rx_irq()
1207 if (++ntc == cnt) in ice_clean_rx_irq()
1208 ntc = 0; in ice_clean_rx_irq()
1209 rx_ring->first_desc = ntc; in ice_clean_rx_irq()
1217 rx_buf = ice_get_rx_buf(rx_ring, size, ntc); in ice_clean_rx_irq()
1233 if (++ntc == cnt) in ice_clean_rx_irq()
1234 ntc = 0; in ice_clean_rx_irq()
[all …]
/linux-6.6.21/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.c1466 u32 ntc = rx_ring->next_to_clean + 1; in iavf_is_non_eop() local
1469 ntc = (ntc < rx_ring->count) ? ntc : 0; in iavf_is_non_eop()
1470 rx_ring->next_to_clean = ntc; in iavf_is_non_eop()
1472 prefetch(IAVF_RX_DESC(rx_ring, ntc)); in iavf_is_non_eop()
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3_common/
Dhclge_comm_cmd.c284 int ntc = ring->next_to_clean; in hclge_comm_ring_space() local
286 int used = (ntu - ntc + ring->desc_num) % ring->desc_num; in hclge_comm_ring_space()
310 int ntc = ring->next_to_clean; in hclge_comm_is_valid_csq_clean_head() local
313 if (ntu > ntc) in hclge_comm_is_valid_csq_clean_head()
314 return head >= ntc && head <= ntu; in hclge_comm_is_valid_csq_clean_head()
316 return head >= ntc || head <= ntu; in hclge_comm_is_valid_csq_clean_head()
409 int ntc) in hclge_comm_cmd_check_retval() argument
416 desc[handle] = hw->cmq.csq.desc[ntc]; in hclge_comm_cmd_check_retval()
417 ntc++; in hclge_comm_cmd_check_retval()
418 if (ntc >= hw->cmq.csq.desc_num) in hclge_comm_cmd_check_retval()
[all …]
/linux-6.6.21/drivers/net/ethernet/intel/i40e/
Di40e_xsk.c664 unsigned int ntc; in i40e_clean_xdp_tx_irq() local
678 ntc = tx_ring->next_to_clean; in i40e_clean_xdp_tx_irq()
681 tx_bi = &tx_ring->tx_bi[ntc]; in i40e_clean_xdp_tx_irq()
690 if (++ntc >= tx_ring->count) in i40e_clean_xdp_tx_irq()
691 ntc = 0; in i40e_clean_xdp_tx_irq()
757 u16 ntc = rx_ring->next_to_clean; in i40e_xsk_clean_rx_ring() local
760 while (ntc != ntu) { in i40e_xsk_clean_rx_ring()
761 struct xdp_buff *rx_bi = *i40e_rx_bi(rx_ring, ntc); in i40e_xsk_clean_rx_ring()
764 ntc++; in i40e_xsk_clean_rx_ring()
765 if (ntc >= rx_ring->count) in i40e_xsk_clean_rx_ring()
[all …]
Di40e_adminq.c724 u16 ntc = asq->next_to_clean; in i40e_clean_asq() local
728 desc = I40E_ADMINQ_DESC(*asq, ntc); in i40e_clean_asq()
729 details = I40E_ADMINQ_DETAILS(*asq, ntc); in i40e_clean_asq()
730 while (rd32(hw, hw->aq.asq.head) != ntc) { in i40e_clean_asq()
732 "ntc %d head %d.\n", ntc, rd32(hw, hw->aq.asq.head)); in i40e_clean_asq()
742 ntc++; in i40e_clean_asq()
743 if (ntc == asq->count) in i40e_clean_asq()
744 ntc = 0; in i40e_clean_asq()
745 desc = I40E_ADMINQ_DESC(*asq, ntc); in i40e_clean_asq()
746 details = I40E_ADMINQ_DETAILS(*asq, ntc); in i40e_clean_asq()
[all …]
/linux-6.6.21/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.c965 u32 ntc, ntu; in hns3_tx_spare_space() local
970 ntc = smp_load_acquire(&tx_spare->last_to_clean); in hns3_tx_spare_space()
973 if (ntc > ntu) in hns3_tx_spare_space()
974 return ntc - ntu - 1; in hns3_tx_spare_space()
979 return max(ntc, tx_spare->len - ntu) - 1; in hns3_tx_spare_space()
1132 u32 ntc = tx_spare->next_to_clean; in hns3_tx_spare_reclaim_cb() local
1141 ntc = 0; in hns3_tx_spare_reclaim_cb()
1152 dma_addr_t dma = tx_spare->dma + ntc; in hns3_tx_spare_reclaim_cb()
1157 struct sg_table *sgt = tx_spare->buf + ntc; in hns3_tx_spare_reclaim_cb()
3585 int ntc = ring->next_to_clean; in hns3_nic_reclaim_desc() local
[all …]
/linux-6.6.21/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.c186 unsigned int mvpconf0, ntc, tc, ncpu = 0; in vsmp_smp_setup() local
205 ntc = (mvpconf0 & MVPCONF0_PTC) >> MVPCONF0_PTC_SHIFT; in vsmp_smp_setup()
212 for (tc = 0; tc <= ntc; tc++) { in vsmp_smp_setup()
/linux-6.6.21/Documentation/devicetree/bindings/hwmon/
Dntc-thermistor.yaml3 $id: http://devicetree.org/schemas/hwmon/ntc-thermistor.yaml#
80 - const: ntc,ncp15wb473
82 - const: ntc,ncp18wb473
84 - const: ntc,ncp21wb473
86 - const: ntc,ncp03wb473
88 - const: ntc,ncp15wl333
/linux-6.6.21/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()
Dixgbevf_main.c585 u32 ntc = rx_ring->next_to_clean + 1; in ixgbevf_is_non_eop() local
588 ntc = (ntc < rx_ring->count) ? ntc : 0; in ixgbevf_is_non_eop()
589 rx_ring->next_to_clean = ntc; in ixgbevf_is_non_eop()
591 prefetch(IXGBEVF_RX_DESC(rx_ring, ntc)); in ixgbevf_is_non_eop()
/linux-6.6.21/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.6.21/drivers/net/ethernet/intel/igc/
Digc.h610 u16 ntc = ring->next_to_clean; in igc_desc_unused() local
613 return ((ntc > ntu) ? 0 : ring->count) + ntc - ntu - 1; in igc_desc_unused()
Digc_main.c2092 u32 ntc = rx_ring->next_to_clean + 1; in igc_is_non_eop() local
2095 ntc = (ntc < rx_ring->count) ? ntc : 0; in igc_is_non_eop()
2096 rx_ring->next_to_clean = ntc; in igc_is_non_eop()
2098 prefetch(IGC_RX_DESC(rx_ring, ntc)); in igc_is_non_eop()
2772 u16 ntc = ring->next_to_clean; in igc_clean_rx_irq_zc() local
2789 desc = IGC_RX_DESC(ring, ntc); in igc_clean_rx_irq_zc()
2800 bi = &ring->rx_buffer_info[ntc]; in igc_clean_rx_irq_zc()
2840 ntc++; in igc_clean_rx_irq_zc()
2841 if (ntc == ring->count) in igc_clean_rx_irq_zc()
2842 ntc = 0; in igc_clean_rx_irq_zc()
[all …]
/linux-6.6.21/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.6.21/drivers/net/ethernet/wangxun/libwx/
Dwx_lib.c390 u16 ntc = ring->next_to_clean; in wx_desc_unused() local
393 return ((ntc > ntu) ? 0 : ring->count) + ntc - ntu - 1; in wx_desc_unused()
411 u32 ntc = rx_ring->next_to_clean + 1; in wx_is_non_eop() local
414 ntc = (ntc < rx_ring->count) ? ntc : 0; in wx_is_non_eop()
415 rx_ring->next_to_clean = ntc; in wx_is_non_eop()
417 prefetch(WX_RX_DESC(rx_ring, ntc)); in wx_is_non_eop()
423 rx_ring->rx_buffer_info[ntc].skb = skb; in wx_is_non_eop()
/linux-6.6.21/drivers/hwmon/
Dntc_thermistor.c311 #define NTC_TYPE(ntc, compensation) \ argument
312 [(ntc)] = { .comp = (compensation), .n_comp = ARRAY_SIZE(compensation) }
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Den_main.c2758 static int mlx5e_netdev_set_tcs(struct net_device *netdev, u16 nch, u8 ntc, in mlx5e_netdev_set_tcs() argument
2765 if (ntc == 1) in mlx5e_netdev_set_tcs()
2768 err = netdev_set_num_tc(netdev, ntc); in mlx5e_netdev_set_tcs()
2770 netdev_WARN(netdev, "netdev_set_num_tc failed (%d), ntc = %d\n", err, ntc); in mlx5e_netdev_set_tcs()
2774 for (tc = 0; tc < ntc; tc++) { in mlx5e_netdev_set_tcs()
2787 int nch, ntc, num_txqs, err; in mlx5e_update_tx_netdev_queues() local
2794 ntc = mlx5e_get_dcb_num_tc(&priv->channels.params); in mlx5e_update_tx_netdev_queues()
2795 num_txqs = nch * ntc + qos_queues; in mlx5e_update_tx_netdev_queues()
2797 num_txqs += ntc; in mlx5e_update_tx_netdev_queues()
2812 int nch, ntc; in mlx5e_update_netdev_queues() local
[all …]

12