Home
last modified time | relevance | path

Searched refs:tx_cfg (Results 1 – 19 of 19) sorted by relevance

/linux/drivers/net/ethernet/google/gve/
H A Dgve.h830 struct gve_tx_queue_config tx_cfg; member
1114 static inline u32 gve_num_tx_qpls(const struct gve_tx_queue_config *tx_cfg, in gve_num_tx_qpls() argument
1119 return tx_cfg->num_queues + tx_cfg->num_xdp_queues; in gve_num_tx_qpls()
1138 return priv->tx_cfg.max_queues + rx_qid; in gve_rx_qpl_id()
1141 static inline u32 gve_get_rx_qpl_id(const struct gve_tx_queue_config *tx_cfg, in gve_get_rx_qpl_id() argument
1144 return tx_cfg->max_queues + rx_qid; in gve_get_rx_qpl_id()
1152 static inline u32 gve_rx_start_qpl_id(const struct gve_tx_queue_config *tx_cfg) in gve_rx_start_qpl_id() argument
1154 return gve_get_rx_qpl_id(tx_cfg, 0); in gve_rx_start_qpl_id()
1161 if (id < gve_rx_start_qpl_id(&priv->tx_cfg)) in gve_qpl_dma_dir()
1181 return priv->tx_cfg.num_queues + priv->tx_cfg.num_xdp_queues; in gve_num_tx_queues()
[all …]
H A Dgve_main.c287 priv->tx_cfg.max_queues; in gve_alloc_stats_report()
365 if (block->tx->q_num < priv->tx_cfg.num_queues) in gve_napi_poll()
420 if (block->tx->q_num < priv->tx_cfg.num_queues) in gve_napi_poll_dqo()
510 priv->tx_cfg.max_queues = min_t(int, priv->tx_cfg.max_queues, in gve_alloc_notify_blocks()
516 vecs_enabled, priv->tx_cfg.max_queues, in gve_alloc_notify_blocks()
518 if (priv->tx_cfg.num_queues > priv->tx_cfg.max_queues) in gve_alloc_notify_blocks()
519 priv->tx_cfg.num_queues = priv->tx_cfg.max_queues; in gve_alloc_notify_blocks()
578 if (cur_cpu >= nr_cpu_ids || (i + 1) == priv->tx_cfg.max_queues) in gve_alloc_notify_blocks()
844 num_tx_qpls = gve_num_tx_qpls(&priv->tx_cfg, gve_is_qpl(priv)); in gve_register_qpls()
868 num_tx_qpls = gve_num_tx_qpls(&priv->tx_cfg, gve_is_qpl(priv)); in gve_unregister_qpls()
[all …]
H A Dgve_ethtool.c491 cmd->max_tx = priv->tx_cfg.max_queues; in gve_get_channels()
495 cmd->tx_count = priv->tx_cfg.num_queues; in gve_get_channels()
504 struct gve_tx_queue_config new_tx_cfg = priv->tx_cfg; in gve_set_channels()
522 (2 * new_tx > priv->tx_cfg.max_queues)) { in gve_set_channels()
796 for (idx = 0; idx < priv->tx_cfg.num_queues; idx++) { in gve_set_coalesce()
H A Dgve_adminq.c1598 priv->tx_cfg.max_queues = in gve_set_num_queues()
1599 min_t(int, priv->tx_cfg.max_queues, priv->num_ntfy_blks / 2); in gve_set_num_queues()
1603 priv->tx_cfg.num_queues = priv->tx_cfg.max_queues; in gve_set_num_queues()
1606 priv->tx_cfg.num_queues = min_t(int, priv->default_num_queues, in gve_set_num_queues()
1607 priv->tx_cfg.num_queues); in gve_set_num_queues()
H A Dgve_tx_dqo.c302 if (idx < priv->tx_cfg.num_queues) in gve_tx_start_ring_dqo()
1594 smp_processor_id() % priv->tx_cfg.num_xdp_queues); in gve_xdp_xmit_dqo()
/linux/drivers/hsi/clients/
H A Dhsi_char.c390 tmp = cl->tx_cfg; in hsc_tx_set()
391 cl->tx_cfg.mode = txc->mode; in hsc_tx_set()
392 cl->tx_cfg.num_hw_channels = txc->channels; in hsc_tx_set()
393 cl->tx_cfg.speed = txc->speed; in hsc_tx_set()
394 cl->tx_cfg.arb_mode = txc->arb_mode; in hsc_tx_set()
397 cl->tx_cfg = tmp; in hsc_tx_set()
406 txc->mode = cl->tx_cfg.mode; in hsc_tx_get()
407 txc->channels = cl->tx_cfg.num_hw_channels; in hsc_tx_get()
408 txc->speed = cl->tx_cfg.speed; in hsc_tx_get()
409 txc->arb_mode = cl->tx_cfg.arb_mode; in hsc_tx_get()
[all …]
/linux/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_core.c156 u32 tx_cfg = readl(ioaddr + SXGBE_CORE_TX_CONFIG_REG); in sxgbe_core_set_speed() local
159 tx_cfg &= ~0x60000000; in sxgbe_core_set_speed()
160 tx_cfg |= (speed << SXGBE_SPEED_LSHIFT); in sxgbe_core_set_speed()
163 writel(tx_cfg, ioaddr + SXGBE_CORE_TX_CONFIG_REG); in sxgbe_core_set_speed()
/linux/drivers/hsi/controllers/
H A Domap_ssi_port.c458 if (cl->tx_cfg.speed) in ssi_setup()
459 omap_ssi->max_speed = cl->tx_cfg.speed; in ssi_setup()
463 cl->tx_cfg.speed, div); in ssi_setup()
475 writel_relaxed(cl->tx_cfg.num_hw_channels, sst + SSI_SST_CHANNELS_REG); in ssi_setup()
476 writel_relaxed(cl->tx_cfg.arb_mode, sst + SSI_SST_ARBMODE_REG); in ssi_setup()
477 writel_relaxed(cl->tx_cfg.mode, sst + SSI_SST_MODE_REG); in ssi_setup()
488 cl->tx_cfg.num_hw_channels); in ssi_setup()
493 omap_port->sst.channels = cl->tx_cfg.num_hw_channels; in ssi_setup()
494 omap_port->sst.arb_mode = cl->tx_cfg.arb_mode; in ssi_setup()
495 omap_port->sst.mode = cl->tx_cfg.mode; in ssi_setup()
/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_common.c403 struct k3_udma_glue_tx_channel_cfg tx_cfg; in prueth_init_tx_chns() local
417 memset(&tx_cfg, 0, sizeof(tx_cfg)); in prueth_init_tx_chns()
418 tx_cfg.swdata_size = PRUETH_NAV_SW_DATA_SIZE; in prueth_init_tx_chns()
419 tx_cfg.tx_cfg = ring_cfg; in prueth_init_tx_chns()
420 tx_cfg.txcq_cfg = ring_cfg; in prueth_init_tx_chns()
435 &tx_cfg); in prueth_init_tx_chns()
/linux/drivers/net/ethernet/brocade/bna/
H A Dbna_tx_rx.c3124 cfg_req->tx_cfg.vlan_mode = BFI_ENET_TX_VLAN_WI; in bna_bfi_tx_enet_start()
3125 cfg_req->tx_cfg.vlan_id = htons((u16)tx->txf_vlan_id); in bna_bfi_tx_enet_start()
3126 cfg_req->tx_cfg.admit_tagged_frame = BNA_STATUS_T_ENABLED; in bna_bfi_tx_enet_start()
3127 cfg_req->tx_cfg.apply_vlan_filter = BNA_STATUS_T_DISABLED; in bna_bfi_tx_enet_start()
3364 struct bna_tx_config *tx_cfg, in bna_tx_create() argument
3383 if ((intr_info->num != 1) && (intr_info->num != tx_cfg->num_txq)) in bna_tx_create()
3388 tx = bna_tx_get(tx_mod, tx_cfg->tx_type); in bna_tx_create()
3397 for (i = 0; i < tx_cfg->num_txq; i++) { in bna_tx_create()
3421 tx->num_txq = tx_cfg->num_txq; in bna_tx_create()
3460 txq->ib.coalescing_timeo = tx_cfg->coalescing_timeo; in bna_tx_create()
[all …]
H A Dbna.h309 struct bna_tx_config *tx_cfg,
H A Dbfi_enet.h428 struct bfi_enet_tx_cfg tx_cfg; member
/linux/drivers/usb/gadget/udc/
H A Dbcm63xx_udc.c468 const struct iudma_ch_cfg *tx_cfg = &iudma_defaults[i + 1]; in bcm63xx_fifo_setup() local
482 ((tx_fifo_slot + tx_cfg->n_fifo_slots - 1) << in bcm63xx_fifo_setup()
484 tx_fifo_slot += tx_cfg->n_fifo_slots; in bcm63xx_fifo_setup()
487 is_hs ? tx_cfg->max_pkt_hs : tx_cfg->max_pkt_fs, in bcm63xx_fifo_setup()
/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-nuss.c2258 struct k3_udma_glue_tx_channel_cfg tx_cfg = { 0 }; in am65_cpsw_nuss_init_tx_chns() local
2271 tx_cfg.swdata_size = AM65_CPSW_NAV_SW_DATA_SIZE; in am65_cpsw_nuss_init_tx_chns()
2272 tx_cfg.tx_cfg = ring_cfg; in am65_cpsw_nuss_init_tx_chns()
2273 tx_cfg.txcq_cfg = ring_cfg; in am65_cpsw_nuss_init_tx_chns()
2274 tx_cfg.tx_cfg.size = max_desc_num; in am65_cpsw_nuss_init_tx_chns()
2275 tx_cfg.txcq_cfg.size = max_desc_num; in am65_cpsw_nuss_init_tx_chns()
2291 &tx_cfg); in am65_cpsw_nuss_init_tx_chns()
/linux/drivers/net/ethernet/sfc/falcon/
H A Dfarch.c1921 ef4_oword_t tx_cfg; in ef4_farch_filter_push_tx_limits() local
1923 ef4_reado(efx, &tx_cfg, FR_AZ_TX_CFG); in ef4_farch_filter_push_tx_limits()
1928 tx_cfg, FRF_CZ_TX_ETH_FILTER_FULL_SEARCH_RANGE, in ef4_farch_filter_push_tx_limits()
1932 tx_cfg, FRF_CZ_TX_ETH_FILTER_WILD_SEARCH_RANGE, in ef4_farch_filter_push_tx_limits()
1937 ef4_writeo(efx, &tx_cfg, FR_AZ_TX_CFG); in ef4_farch_filter_push_tx_limits()
/linux/drivers/net/ethernet/sfc/siena/
H A Dfarch.c2013 efx_oword_t tx_cfg; in efx_farch_filter_push_tx_limits() local
2015 efx_reado(efx, &tx_cfg, FR_AZ_TX_CFG); in efx_farch_filter_push_tx_limits()
2020 tx_cfg, FRF_CZ_TX_ETH_FILTER_FULL_SEARCH_RANGE, in efx_farch_filter_push_tx_limits()
2024 tx_cfg, FRF_CZ_TX_ETH_FILTER_WILD_SEARCH_RANGE, in efx_farch_filter_push_tx_limits()
2029 efx_writeo(efx, &tx_cfg, FR_AZ_TX_CFG); in efx_farch_filter_push_tx_limits()
/linux/drivers/net/ethernet/sun/
H A Dniu.c412 u32 tx_cfg, rx_cfg; in serdes_init_niu_10g_fiber() local
415 tx_cfg = (PLL_TX_CFG_ENTX | PLL_TX_CFG_SWING_1375MV); in serdes_init_niu_10g_fiber()
426 tx_cfg |= PLL_TX_CFG_ENTEST; in serdes_init_niu_10g_fiber()
432 int err = esr2_set_tx_cfg(np, i, tx_cfg); in serdes_init_niu_10g_fiber()
452 u32 tx_cfg, rx_cfg; in serdes_init_niu_1g_serdes() local
456 tx_cfg = (PLL_TX_CFG_ENTX | PLL_TX_CFG_SWING_1375MV | in serdes_init_niu_1g_serdes()
471 tx_cfg |= PLL_TX_CFG_ENTEST; in serdes_init_niu_1g_serdes()
500 err = esr2_set_tx_cfg(np, i, tx_cfg); in serdes_init_niu_1g_serdes()
546 u32 tx_cfg, rx_cfg, pll_cfg, pll_sts; in serdes_init_niu_10g_serdes() local
552 tx_cfg = (PLL_TX_CFG_ENTX | PLL_TX_CFG_SWING_1375MV); in serdes_init_niu_10g_serdes()
[all …]
/linux/drivers/net/wireless/marvell/mwifiex/
H A Dsta_cmd.c2361 struct mwifiex_ds_11n_tx_cfg tx_cfg; in mwifiex_sta_init_cmd() local
2525 tx_cfg.tx_htcap = MWIFIEX_FW_DEF_HTTXCFG; in mwifiex_sta_init_cmd()
2527 HostCmd_ACT_GEN_SET, 0, &tx_cfg, true); in mwifiex_sta_init_cmd()
/linux/drivers/net/wireless/nxp/nxpwifi/
H A Dsta_cmd.c3274 struct nxpwifi_ds_11n_tx_cfg tx_cfg; in nxpwifi_sta_init_cmd() local
3388 tx_cfg.tx_htcap = NXPWIFI_FW_DEF_HTTXCFG; in nxpwifi_sta_init_cmd()
3390 HOST_ACT_GEN_SET, 0, &tx_cfg, true); in nxpwifi_sta_init_cmd()