/Linux-v5.15/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_xsk.c | 229 u32 ntc = rx_ring->next_to_clean + 1; in ixgbe_inc_ntc() local 231 ntc = (ntc < rx_ring->count) ? ntc : 0; in ixgbe_inc_ntc() 232 rx_ring->next_to_clean = ntc; in ixgbe_inc_ntc() 233 prefetch(IXGBE_RX_DESC(rx_ring, ntc)); in ixgbe_inc_ntc() 446 u16 ntc = tx_ring->next_to_clean, ntu = tx_ring->next_to_use; in ixgbe_clean_xdp_tx_irq() local 453 tx_bi = &tx_ring->tx_buffer_info[ntc]; in ixgbe_clean_xdp_tx_irq() 454 tx_desc = IXGBE_TX_DESC(tx_ring, ntc); in ixgbe_clean_xdp_tx_irq() 456 while (ntc != ntu) { in ixgbe_clean_xdp_tx_irq() 472 ntc++; in ixgbe_clean_xdp_tx_irq() 473 if (unlikely(ntc == tx_ring->count)) { in ixgbe_clean_xdp_tx_irq() [all …]
|
D | ixgbe.h | 509 u16 ntc = ring->next_to_clean; in ixgbe_desc_unused() local 512 return ((ntc > ntu) ? 0 : ring->count) + ntc - ntu - 1; in ixgbe_desc_unused()
|
/Linux-v5.15/Documentation/devicetree/bindings/hwmon/ |
D | ntc_thermistor.txt | 16 /* Usage of vendor name "ntc" is deprecated */ 17 <DEPRECATED> "ntc,ncp15wb473" 18 <DEPRECATED> "ntc,ncp18wb473" 19 <DEPRECATED> "ntc,ncp21wb473" 20 <DEPRECATED> "ntc,ncp03wb473" 21 <DEPRECATED> "ntc,ncp15wl333"
|
/Linux-v5.15/drivers/net/ethernet/intel/ice/ |
D | ice_xsk.c | 414 int ntc = rx_ring->next_to_clean + 1; in ice_bump_ntc() local 416 ntc = (ntc < rx_ring->count) ? ntc : 0; in ice_bump_ntc() 417 rx_ring->next_to_clean = ntc; in ice_bump_ntc() 418 prefetch(ICE_RX_DESC(rx_ring, ntc)); in ice_bump_ntc() 690 s16 ntc = xdp_ring->next_to_clean; in ice_clean_tx_irq_zc() local 696 tx_desc = ICE_TX_DESC(xdp_ring, ntc); in ice_clean_tx_irq_zc() 697 tx_buf = &xdp_ring->tx_buf[ntc]; in ice_clean_tx_irq_zc() 698 ntc -= xdp_ring->count; in ice_clean_tx_irq_zc() 718 ntc++; in ice_clean_tx_irq_zc() 720 if (unlikely(!ntc)) { in ice_clean_tx_irq_zc() [all …]
|
D | ice_controlq.c | 869 u16 ntc = sq->next_to_clean; in ice_clean_sq() local 873 desc = ICE_CTL_Q_DESC(*sq, ntc); in ice_clean_sq() 874 details = ICE_CTL_Q_DETAILS(*sq, ntc); in ice_clean_sq() 876 while (rd32(hw, cq->sq.head) != ntc) { in ice_clean_sq() 877 ice_debug(hw, ICE_DBG_AQ_MSG, "ntc %d head %d.\n", ntc, rd32(hw, cq->sq.head)); in ice_clean_sq() 880 ntc++; in ice_clean_sq() 881 if (ntc == sq->count) in ice_clean_sq() 882 ntc = 0; in ice_clean_sq() 883 desc = ICE_CTL_Q_DESC(*sq, ntc); in ice_clean_sq() 884 details = ICE_CTL_Q_DETAILS(*sq, ntc); in ice_clean_sq() [all …]
|
D | ice_txrx.c | 1006 u16 ntc = rx_ring->next_to_clean + 1; in ice_put_rx_buf() local 1009 ntc = (ntc < rx_ring->count) ? ntc : 0; in ice_put_rx_buf() 1010 rx_ring->next_to_clean = ntc; in ice_put_rx_buf()
|
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_cmd.c | 18 int ntc = ring->next_to_clean; in hclgevf_ring_space() local 22 used = (ntu - ntc + ring->desc_num) % ring->desc_num; in hclgevf_ring_space() 31 int ntc = ring->next_to_clean; in hclgevf_is_valid_csq_clean_head() local 33 if (ntu > ntc) in hclgevf_is_valid_csq_clean_head() 34 return head >= ntc && head <= ntu; in hclgevf_is_valid_csq_clean_head() 36 return head >= ntc || head <= ntu; in hclgevf_is_valid_csq_clean_head() 227 struct hclgevf_desc *desc, int num, int ntc) in hclgevf_cmd_check_retval() argument 235 desc[handle] = hw->cmq.csq.desc[ntc]; in hclgevf_cmd_check_retval() 236 ntc++; in hclgevf_cmd_check_retval() 237 if (ntc == hw->cmq.csq.desc_num) in hclgevf_cmd_check_retval() [all …]
|
/Linux-v5.15/drivers/net/ethernet/intel/iavf/ |
D | iavf_adminq.c | 575 u16 ntc = asq->next_to_clean; in iavf_clean_asq() local 579 desc = IAVF_ADMINQ_DESC(*asq, ntc); in iavf_clean_asq() 580 details = IAVF_ADMINQ_DETAILS(*asq, ntc); in iavf_clean_asq() 581 while (rd32(hw, hw->aq.asq.head) != ntc) { in iavf_clean_asq() 583 "ntc %d head %d.\n", ntc, rd32(hw, hw->aq.asq.head)); in iavf_clean_asq() 594 ntc++; in iavf_clean_asq() 595 if (ntc == asq->count) in iavf_clean_asq() 596 ntc = 0; in iavf_clean_asq() 597 desc = IAVF_ADMINQ_DESC(*asq, ntc); in iavf_clean_asq() 598 details = IAVF_ADMINQ_DETAILS(*asq, ntc); in iavf_clean_asq() [all …]
|
D | iavf_txrx.c | 1430 u32 ntc = rx_ring->next_to_clean + 1; in iavf_is_non_eop() local 1433 ntc = (ntc < rx_ring->count) ? ntc : 0; in iavf_is_non_eop() 1434 rx_ring->next_to_clean = ntc; in iavf_is_non_eop() 1436 prefetch(IAVF_RX_DESC(rx_ring, ntc)); in iavf_is_non_eop()
|
/Linux-v5.15/drivers/net/ethernet/intel/i40e/ |
D | i40e_xsk.c | 527 unsigned int ntc; in i40e_clean_xdp_tx_irq() local 541 ntc = tx_ring->next_to_clean; in i40e_clean_xdp_tx_irq() 544 tx_bi = &tx_ring->tx_bi[ntc]; in i40e_clean_xdp_tx_irq() 553 if (++ntc >= tx_ring->count) in i40e_clean_xdp_tx_irq() 554 ntc = 0; in i40e_clean_xdp_tx_irq() 621 u16 ntc = rx_ring->next_to_clean; in i40e_xsk_clean_rx_ring() local 624 for ( ; ntc != ntu; ntc = (ntc + 1) & count_mask) { in i40e_xsk_clean_rx_ring() 625 struct xdp_buff *rx_bi = *i40e_rx_bi(rx_ring, ntc); in i40e_xsk_clean_rx_ring() 637 u16 ntc = tx_ring->next_to_clean, ntu = tx_ring->next_to_use; in i40e_xsk_clean_tx_ring() local 642 while (ntc != ntu) { in i40e_xsk_clean_tx_ring() [all …]
|
D | i40e_adminq.c | 725 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 …]
|
D | i40e_txrx.c | 2421 u32 ntc = rx_ring->next_to_clean + 1; in i40e_inc_ntc() local 2423 ntc = (ntc < rx_ring->count) ? ntc : 0; in i40e_inc_ntc() 2424 rx_ring->next_to_clean = ntc; in i40e_inc_ntc() 2425 prefetch(I40E_RX_DESC(rx_ring, ntc)); in i40e_inc_ntc()
|
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_cmd.c | 19 int ntc = ring->next_to_clean; in hclge_ring_space() local 20 int used = (ntu - ntc + ring->desc_num) % ring->desc_num; in hclge_ring_space() 28 int ntc = ring->next_to_clean; in is_valid_csq_clean_head() local 30 if (ntu > ntc) in is_valid_csq_clean_head() 31 return head >= ntc && head <= ntu; in is_valid_csq_clean_head() 33 return head >= ntc || head <= ntu; in is_valid_csq_clean_head() 243 int num, int ntc) in hclge_cmd_check_retval() argument 250 desc[handle] = hw->cmq.csq.desc[ntc]; in hclge_cmd_check_retval() 251 ntc++; in hclge_cmd_check_retval() 252 if (ntc >= hw->cmq.csq.desc_num) in hclge_cmd_check_retval() [all …]
|
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_trace.h | 75 __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,
|
D | hns3_enet.c | 965 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() 1127 u32 ntc = tx_spare->next_to_clean; in hns3_tx_spare_reclaim_cb() local 1136 ntc = 0; in hns3_tx_spare_reclaim_cb() 1147 dma_addr_t dma = tx_spare->dma + ntc; in hns3_tx_spare_reclaim_cb() 1152 struct sg_table *sgt = tx_spare->buf + ntc; in hns3_tx_spare_reclaim_cb() 3395 int ntc = ring->next_to_clean; in hns3_nic_reclaim_desc() local [all …]
|
/Linux-v5.15/arch/mips/kernel/ |
D | mips-mt.c | 56 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()
|
D | smp-mt.c | 185 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-v5.15/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf.h | 288 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()
|
D | ixgbevf_main.c | 585 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-v5.15/drivers/net/ethernet/intel/igc/ |
D | igc.h | 544 u16 ntc = ring->next_to_clean; in igc_desc_unused() local 547 return ((ntc > ntu) ? 0 : ring->count) + ntc - ntu - 1; in igc_desc_unused()
|
D | igc_main.c | 1863 u32 ntc = rx_ring->next_to_clean + 1; in igc_is_non_eop() local 1866 ntc = (ntc < rx_ring->count) ? ntc : 0; in igc_is_non_eop() 1867 rx_ring->next_to_clean = ntc; in igc_is_non_eop() 1869 prefetch(IGC_RX_DESC(rx_ring, ntc)); in igc_is_non_eop() 2486 u16 ntc = ring->next_to_clean; in igc_clean_rx_irq_zc() local 2502 desc = IGC_RX_DESC(ring, ntc); in igc_clean_rx_irq_zc() 2513 bi = &ring->rx_buffer_info[ntc]; in igc_clean_rx_irq_zc() 2549 ntc++; in igc_clean_rx_irq_zc() 2550 if (ntc == ring->count) in igc_clean_rx_irq_zc() 2551 ntc = 0; in igc_clean_rx_irq_zc() [all …]
|
/Linux-v5.15/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 485 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-v5.15/drivers/hwmon/ |
D | ntc_thermistor.c | 304 #define NTC_TYPE(ntc, compensation) \ argument 305 [(ntc)] = { .comp = (compensation), .n_comp = ARRAY_SIZE(compensation) }
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_main.c | 2266 static int mlx5e_netdev_set_tcs(struct net_device *netdev, u16 nch, u8 ntc, in mlx5e_netdev_set_tcs() argument 2273 if (ntc == 1) in mlx5e_netdev_set_tcs() 2276 err = netdev_set_num_tc(netdev, ntc); in mlx5e_netdev_set_tcs() 2278 netdev_WARN(netdev, "netdev_set_num_tc failed (%d), ntc = %d\n", err, ntc); in mlx5e_netdev_set_tcs() 2282 for (tc = 0; tc < ntc; tc++) { in mlx5e_netdev_set_tcs() 2295 int qos_queues, nch, ntc, num_txqs, err; in mlx5e_update_tx_netdev_queues() local 2300 ntc = mlx5e_get_dcb_num_tc(&priv->channels.params); in mlx5e_update_tx_netdev_queues() 2301 num_txqs = nch * ntc + qos_queues; in mlx5e_update_tx_netdev_queues() 2303 num_txqs += ntc; in mlx5e_update_tx_netdev_queues() 2318 int num_rxqs, nch, ntc; in mlx5e_update_netdev_queues() local [all …]
|
/Linux-v5.15/arch/arm64/boot/dts/mediatek/ |
D | mt8183-pumpkin.dts | 58 ntc {
|