/linux-6.3-rc2/drivers/net/ethernet/intel/ixgbe/ |
A D | ixgbe_xsk.c | 241 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() 474 while (ntc != ntu) { in ixgbe_clean_xdp_tx_irq() 490 ntc++; in ixgbe_clean_xdp_tx_irq() 492 ntc = 0; in ixgbe_clean_xdp_tx_irq() 501 tx_ring->next_to_clean = ntc; in ixgbe_clean_xdp_tx_irq() 557 while (ntc != ntu) { in ixgbe_xsk_clean_tx_ring() 567 ntc++; in ixgbe_xsk_clean_tx_ring() 568 if (ntc == tx_ring->count) in ixgbe_xsk_clean_tx_ring() [all …]
|
A D | ixgbe.h | 557 u16 ntc = ring->next_to_clean; in ixgbe_desc_unused() local 560 return ((ntc > ntu) ? 0 : ring->count) + ntc - ntu - 1; in ixgbe_desc_unused()
|
/linux-6.3-rc2/drivers/net/ethernet/intel/ice/ |
A D | ice_txrx_lib.c | 257 u32 ntc = xdp_ring->next_to_clean; in ice_clean_xdp_irq() local 270 if (idx >= ntc) in ice_clean_xdp_irq() 271 ready_frames = idx - ntc + 1; 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() 303 ntc++; in ice_clean_xdp_irq() 304 if (ntc == cnt) in ice_clean_xdp_irq() 305 ntc = 0; in ice_clean_xdp_irq() [all …]
|
A D | ice_xsk.c | 560 ntc = (ntc < rx_ring->count) ? ntc : 0; in ice_bump_ntc() 619 if (last_rs >= ntc) in ice_clean_xdp_irq_zc() 645 ntc++; in ice_clean_xdp_irq_zc() 647 ntc = 0; in ice_clean_xdp_irq_zc() 1069 while (ntc != ntu) { in ice_xsk_clean_rx_ring() 1073 ntc++; in ice_xsk_clean_rx_ring() 1074 if (ntc >= rx_ring->count) in ice_xsk_clean_rx_ring() 1075 ntc = 0; in ice_xsk_clean_rx_ring() 1088 while (ntc != ntu) { in ice_xsk_clean_xdp_ring() 1098 ntc++; in ice_xsk_clean_xdp_ring() [all …]
|
A D | ice_controlq.c | 876 ntc++; in ice_clean_sq() 877 if (ntc == sq->count) in ice_clean_sq() 878 ntc = 0; in ice_clean_sq() 883 sq->next_to_clean = ntc; in ice_clean_sq() 1182 if (ntu == ntc) { in ice_clean_rq_elem() 1190 desc_idx = ntc; in ice_clean_rq_elem() 1212 bi = &cq->rq.r.rq_bi[ntc]; in ice_clean_rq_elem() 1223 wr32(hw, cq->rq.tail, ntc); in ice_clean_rq_elem() 1225 ntc++; in ice_clean_rq_elem() 1227 ntc = 0; in ice_clean_rq_elem() [all …]
|
A D | ice_txrx.c | 947 const unsigned int ntc) in ice_get_rx_buf() argument 951 rx_buf = &rx_ring->rx_buf[ntc]; in ice_get_rx_buf() 1159 u32 cached_ntc = ntc; in ice_clean_rx_irq() 1211 if (++ntc == cnt) in ice_clean_rx_irq() 1212 ntc = 0; in ice_clean_rx_irq() 1236 if (++ntc == cnt) in ice_clean_rx_irq() 1237 ntc = 0; in ice_clean_rx_irq() 1250 rx_ring->first_desc = ntc; in ice_clean_rx_irq() 1265 rx_ring->first_desc = ntc; in ice_clean_rx_irq() 1269 rx_ring->first_desc = ntc; in ice_clean_rx_irq() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/intel/iavf/ |
A D | iavf_adminq.c | 584 u16 ntc = asq->next_to_clean; in iavf_clean_asq() local 603 ntc++; in iavf_clean_asq() 604 if (ntc == asq->count) in iavf_clean_asq() 605 ntc = 0; in iavf_clean_asq() 610 asq->next_to_clean = ntc; in iavf_clean_asq() 882 if (ntu == ntc) { in iavf_clean_arq_element() 890 desc_idx = ntc; in iavf_clean_arq_element() 918 bi = &hw->aq.arq.r.arq_bi[ntc]; in iavf_clean_arq_element() 931 ntc++; in iavf_clean_arq_element() 933 ntc = 0; in iavf_clean_arq_element() [all …]
|
A D | iavf_txrx.c | 1467 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.3-rc2/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
A D | hclge_comm_cmd.c | 267 int ntc = ring->next_to_clean; in hclge_comm_ring_space() local 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() 299 return head >= ntc || head <= ntu; in hclge_comm_is_valid_csq_clean_head() 376 int ntc) in hclge_comm_cmd_check_retval() argument 384 ntc++; in hclge_comm_cmd_check_retval() 385 if (ntc >= hw->cmq.csq.desc_num) in hclge_comm_cmd_check_retval() 386 ntc = 0; in hclge_comm_cmd_check_retval() 400 int num, int ntc) in hclge_comm_cmd_check_result() argument 440 int ntc; in hclge_comm_cmd_send() local [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/intel/i40e/ |
A D | i40e_xsk.c | 593 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() 690 for ( ; ntc != ntu; ntc = (ntc + 1) & count_mask) { in i40e_xsk_clean_rx_ring() 708 while (ntc != ntu) { in i40e_xsk_clean_tx_ring() 709 tx_bi = &tx_ring->tx_bi[ntc]; in i40e_xsk_clean_tx_ring() 718 ntc++; in i40e_xsk_clean_tx_ring() 719 if (ntc >= tx_ring->count) in i40e_xsk_clean_tx_ring() [all …]
|
A D | i40e_adminq.c | 725 u16 ntc = asq->next_to_clean; in i40e_clean_asq() local 743 ntc++; in i40e_clean_asq() 744 if (ntc == asq->count) in i40e_clean_asq() 745 ntc = 0; in i40e_clean_asq() 750 asq->next_to_clean = ntc; in i40e_clean_asq() 1115 if (ntu == ntc) { in i40e_clean_arq_element() 1123 desc_idx = ntc; in i40e_clean_arq_element() 1151 bi = &hw->aq.arq.r.arq_bi[ntc]; in i40e_clean_arq_element() 1164 ntc++; in i40e_clean_arq_element() 1166 ntc = 0; in i40e_clean_arq_element() [all …]
|
A D | i40e_txrx.c | 2417 u32 ntc = rx_ring->next_to_clean + 1; in i40e_inc_ntc() local 2419 ntc = (ntc < rx_ring->count) ? ntc : 0; in i40e_inc_ntc() 2420 rx_ring->next_to_clean = ntc; in i40e_inc_ntc() 2421 prefetch(I40E_RX_DESC(rx_ring, ntc)); in i40e_inc_ntc()
|
/linux-6.3-rc2/drivers/net/ethernet/hisilicon/hns3/ |
A D | hns3_trace.h | 74 __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,
|
A D | hns3_enet.c | 965 u32 ntc, ntu; in hns3_tx_spare_space() local 973 if (ntc > ntu) in hns3_tx_spare_space() 974 return ntc - ntu - 1; in hns3_tx_spare_space() 1141 ntc = 0; in hns3_tx_spare_reclaim_cb() 3571 int ntc = ring->next_to_clean; in hns3_nic_reclaim_desc() local 3576 while (ltu != ntc) { in hns3_nic_reclaim_desc() 3577 desc = &ring->desc[ntc]; in hns3_nic_reclaim_desc() 3595 if (++ntc == ring->desc_num) in hns3_nic_reclaim_desc() 3596 ntc = 0; in hns3_nic_reclaim_desc() 3659 if (unlikely(ntc == ntu && !ring->desc_cb[ntc].refill)) in hns3_desc_unused() [all …]
|
/linux-6.3-rc2/arch/mips/kernel/ |
A 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()
|
A 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-6.3-rc2/Documentation/devicetree/bindings/hwmon/ |
A D | ntc-thermistor.yaml | 3 $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.3-rc2/drivers/net/ethernet/wangxun/libwx/ |
A D | wx_lib.c | 314 u16 ntc = ring->next_to_clean; in wx_desc_unused() local 317 return ((ntc > ntu) ? 0 : ring->count) + ntc - ntu - 1; in wx_desc_unused() 335 u32 ntc = rx_ring->next_to_clean + 1; in wx_is_non_eop() local 338 ntc = (ntc < rx_ring->count) ? ntc : 0; in wx_is_non_eop() 339 rx_ring->next_to_clean = ntc; in wx_is_non_eop() 341 prefetch(WX_RX_DESC(rx_ring, ntc)); in wx_is_non_eop() 347 rx_ring->rx_buffer_info[ntc].skb = skb; in wx_is_non_eop()
|
/linux-6.3-rc2/drivers/net/ethernet/intel/ixgbevf/ |
A 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()
|
/linux-6.3-rc2/drivers/net/ethernet/mscc/ |
A D | ocelot_fdma.c | 492 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.3-rc2/drivers/net/ethernet/intel/igc/ |
A D | igc.h | 546 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()
|
A D | igc_main.c | 1995 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.3-rc2/drivers/net/ethernet/intel/fm10k/ |
A D | fm10k_main.c | 493 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.3-rc2/drivers/hwmon/ |
A D | ntc_thermistor.c | 311 #define NTC_TYPE(ntc, compensation) \ argument 312 [(ntc)] = { .comp = (compensation), .n_comp = ARRAY_SIZE(compensation) }
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | en_main.c | 2721 if (ntc == 1) in mlx5e_netdev_set_tcs() 2724 err = netdev_set_num_tc(netdev, ntc); in mlx5e_netdev_set_tcs() 2730 for (tc = 0; tc < ntc; tc++) { in mlx5e_netdev_set_tcs() 2743 int nch, ntc, num_txqs, err; in mlx5e_update_tx_netdev_queues() local 2750 ntc = mlx5e_get_dcb_num_tc(&priv->channels.params); in mlx5e_update_tx_netdev_queues() 2751 num_txqs = nch * ntc + qos_queues; in mlx5e_update_tx_netdev_queues() 2753 num_txqs += ntc; in mlx5e_update_tx_netdev_queues() 2768 int nch, ntc; in mlx5e_update_netdev_queues() local 2778 ntc = priv->channels.params.mqprio.num_tc; in mlx5e_update_netdev_queues() 3340 int ntc, int nch) in mlx5e_mqprio_build_default_tc_to_txq() argument [all …]
|