Home
last modified time | relevance | path

Searched refs:dma_cap (Results 1 – 24 of 24) sorted by relevance

/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwxgmac2_dma.c353 struct dma_features *dma_cap) in dwxgmac2_get_hw_feature() argument
358 priv = container_of(dma_cap, struct stmmac_priv, dma_cap); in dwxgmac2_get_hw_feature()
362 dma_cap->edma = (hw_cap & XGMAC_HWFEAT_EDMA) >> 31; in dwxgmac2_get_hw_feature()
363 dma_cap->ediffc = (hw_cap & XGMAC_HWFEAT_EDIFFC) >> 30; in dwxgmac2_get_hw_feature()
364 dma_cap->vxn = (hw_cap & XGMAC_HWFEAT_VXN) >> 29; in dwxgmac2_get_hw_feature()
365 dma_cap->vlins = (hw_cap & XGMAC_HWFEAT_SAVLANINS) >> 27; in dwxgmac2_get_hw_feature()
366 dma_cap->tssrc = (hw_cap & XGMAC_HWFEAT_TSSTSSEL) >> 25; in dwxgmac2_get_hw_feature()
367 dma_cap->actphyif = FIELD_GET(XGMAC_HWFEAT_PHYSEL, hw_cap); in dwxgmac2_get_hw_feature()
368 dma_cap->multi_addr = (hw_cap & XGMAC_HWFEAT_ADDMACADRSEL) >> 18; in dwxgmac2_get_hw_feature()
369 dma_cap->rx_coe = (hw_cap & XGMAC_HWFEAT_RXCOESEL) >> 16; in dwxgmac2_get_hw_feature()
[all …]
H A Ddwmac4_dma.c359 struct dma_features *dma_cap) in dwmac4_get_hw_feature() argument
364 dma_cap->mbps_10_100 = (hw_cap & GMAC_HW_FEAT_MIISEL); in dwmac4_get_hw_feature()
365 dma_cap->mbps_1000 = (hw_cap & GMAC_HW_FEAT_GMIISEL) >> 1; in dwmac4_get_hw_feature()
366 dma_cap->half_duplex = (hw_cap & GMAC_HW_FEAT_HDSEL) >> 2; in dwmac4_get_hw_feature()
367 dma_cap->vlhash = (hw_cap & GMAC_HW_FEAT_VLHASH) >> 4; in dwmac4_get_hw_feature()
368 dma_cap->multi_addr = (hw_cap & GMAC_HW_FEAT_ADDMAC) >> 18; in dwmac4_get_hw_feature()
369 dma_cap->pcs = (hw_cap & GMAC_HW_FEAT_PCSSEL) >> 3; in dwmac4_get_hw_feature()
370 dma_cap->sma_mdio = (hw_cap & GMAC_HW_FEAT_SMASEL) >> 5; in dwmac4_get_hw_feature()
371 dma_cap->pmt_remote_wake_up = (hw_cap & GMAC_HW_FEAT_RWKSEL) >> 6; in dwmac4_get_hw_feature()
372 dma_cap->pmt_magic_frame = (hw_cap & GMAC_HW_FEAT_MGKSEL) >> 7; in dwmac4_get_hw_feature()
[all …]
H A Ddwmac1000_dma.c201 struct dma_features *dma_cap) in dwmac1000_get_hw_feature() argument
212 dma_cap->mbps_10_100 = (hw_cap & DMA_HW_FEAT_MIISEL); in dwmac1000_get_hw_feature()
213 dma_cap->mbps_1000 = (hw_cap & DMA_HW_FEAT_GMIISEL) >> 1; in dwmac1000_get_hw_feature()
214 dma_cap->half_duplex = (hw_cap & DMA_HW_FEAT_HDSEL) >> 2; in dwmac1000_get_hw_feature()
215 dma_cap->hash_filter = (hw_cap & DMA_HW_FEAT_HASHSEL) >> 4; in dwmac1000_get_hw_feature()
216 dma_cap->multi_addr = (hw_cap & DMA_HW_FEAT_ADDMAC) >> 5; in dwmac1000_get_hw_feature()
217 dma_cap->pcs = (hw_cap & DMA_HW_FEAT_PCSSEL) >> 6; in dwmac1000_get_hw_feature()
218 dma_cap->sma_mdio = (hw_cap & DMA_HW_FEAT_SMASEL) >> 8; in dwmac1000_get_hw_feature()
219 dma_cap->pmt_remote_wake_up = (hw_cap & DMA_HW_FEAT_RWKSEL) >> 9; in dwmac1000_get_hw_feature()
220 dma_cap->pmt_magic_frame = (hw_cap & DMA_HW_FEAT_MGKSEL) >> 10; in dwmac1000_get_hw_feature()
[all …]
H A Dstmmac_main.c584 if (!(priv->dma_cap.time_stamp || priv->adv_ts)) { in stmmac_hwtstamp_set()
773 if (!(priv->dma_cap.time_stamp || priv->dma_cap.atime_stamp)) in stmmac_hwtstamp_get()
830 if (!(priv->dma_cap.time_stamp || priv->dma_cap.atime_stamp)) { in stmmac_init_timestamping()
844 if (xmac && priv->dma_cap.atime_stamp) in stmmac_init_timestamping()
847 else if (priv->extend_desc && priv->dma_cap.atime_stamp) in stmmac_init_timestamping()
850 if (priv->dma_cap.time_stamp) in stmmac_init_timestamping()
935 if (priv->hw_cap_support && !priv->dma_cap.half_duplex) in stmmac_mac_get_caps()
992 if (priv->dma_cap.eee) in stmmac_mac_link_down()
1109 if (priv->dma_cap.eee) in stmmac_mac_link_up()
1217 if (priv->dma_cap.pcs && interface == PHY_INTERFACE_MODE_SGMII) { in stmmac_check_pcs_mode()
[all …]
H A Dstmmac_selftests.c404 if (!priv->dma_cap.rmon) in stmmac_test_mmc()
434 if (!priv->dma_cap.eee || !priv->eee_active) in stmmac_test_eee()
762 pkt_count = priv->dma_cap.rx_fifo_size; in stmmac_test_flowctrl()
824 if (!priv->dma_cap.rssen || !priv->rss.enable) in stmmac_test_rss()
967 if (!priv->dma_cap.vlhash) in stmmac_test_vlanfilt()
975 int ret, prev_cap = priv->dma_cap.vlhash; in stmmac_test_vlanfilt_perfect()
980 priv->dma_cap.vlhash = 0; in stmmac_test_vlanfilt_perfect()
982 priv->dma_cap.vlhash = prev_cap; in stmmac_test_vlanfilt_perfect()
1061 if (!priv->dma_cap.vlhash) in stmmac_test_dvlanfilt()
1069 int ret, prev_cap = priv->dma_cap.vlhash; in stmmac_test_dvlanfilt_perfect()
[all …]
H A Dstmmac_ethtool.c527 if (priv->dma_cap.asp) { in stmmac_get_ethtool_stats()
539 if (priv->dma_cap.rmon) { in stmmac_get_ethtool_stats()
551 if (priv->dma_cap.eee) { in stmmac_get_ethtool_stats()
635 if (priv->dma_cap.rmon) in stmmac_get_sset_count()
637 if (priv->dma_cap.asp) { in stmmac_get_sset_count()
686 if (priv->dma_cap.asp) { in stmmac_get_strings()
697 if (priv->dma_cap.rmon) in stmmac_get_strings()
986 chan->max_rx = priv->dma_cap.number_rx_queues; in stmmac_get_channels()
987 chan->max_tx = priv->dma_cap.number_tx_queues; in stmmac_get_channels()
995 if (chan->rx_count > priv->dma_cap.number_rx_queues || in stmmac_set_channels()
[all …]
H A Dstmmac_ptp.c339 for (i = 0; i < priv->dma_cap.pps_out_num; i++) { in stmmac_ptp_register()
353 if (priv->dma_cap.pps_out_num) in stmmac_ptp_register()
354 priv->ptp_clock_ops.n_per_out = priv->dma_cap.pps_out_num; in stmmac_ptp_register()
356 if (priv->dma_cap.aux_snapshot_n) in stmmac_ptp_register()
357 priv->ptp_clock_ops.n_ext_ts = priv->dma_cap.aux_snapshot_n; in stmmac_ptp_register()
H A Dstmmac_tc.c261 struct dma_features *dma_cap = &priv->dma_cap; in tc_init() local
265 priv->flow_entries_max = dma_cap->l3l4fnum; in tc_init()
286 if (!dma_cap->frpsel) in tc_init()
289 switch (dma_cap->frpbs) { in tc_init()
303 switch (dma_cap->frpes) { in tc_init()
346 if (!priv->dma_cap.av) in tc_setup_cbs()
934 u32 size, wid = priv->dma_cap.estwid, dep = priv->dma_cap.estdep; in tc_taprio_configure()
944 if (!priv->dma_cap.estsel) in tc_taprio_configure()
1161 if (!priv->dma_cap.tbssel) in tc_setup_etf()
1192 if (!priv->dma_cap.estsel) in tc_query_caps()
H A Dstmmac_fpe.c41 return priv->dma_cap.fpesel && priv->fpe_cfg.reg && in stmmac_fpe_supported()
177 priv->dma_cap.fpesel) in stmmac_fpe_init()
H A Dstmmac.h289 struct dma_features dma_cap; member
H A Ddwmac1000_core.c27 if (!priv->dma_cap.pcs) in dwmac1000_pcs_init()
H A Ddwmac4_core.c27 if (!priv->dma_cap.pcs) in dwmac4_pcs_init()
H A Dhwif.h221 struct dma_features *dma_cap);
H A Ddwxgmac2_core.c47 if (!priv->dma_cap.mbps_10_100) in dwxgmac2_update_caps()
/linux/drivers/dma/dw/
H A Dacpi.c38 dma_cap_zero(info->dma_cap); in dw_dma_acpi_controller_register()
39 dma_cap_set(DMA_SLAVE, info->dma_cap); in dw_dma_acpi_controller_register()
/linux/include/linux/
H A Dof_dma.h30 dma_cap_mask_t dma_cap; member
H A Dacpi_dma.h54 dma_cap_mask_t dma_cap; member
/linux/drivers/gpib/eastwood/
H A Dfluke_gpib.c971 dma_cap_mask_t dma_cap; in fluke_attach_impl() local
1054 dma_cap_zero(dma_cap); in fluke_attach_impl()
1055 dma_cap_set(DMA_SLAVE, dma_cap); in fluke_attach_impl()
1056 e_priv->dma_channel = dma_request_channel(dma_cap, gpib_dma_channel_filter, NULL); in fluke_attach_impl()
/linux/drivers/dma/
H A Dof-dma.c333 return __dma_request_channel(&info->dma_cap, info->filter_fn, in of_dma_simple_xlate()
H A Dacpi-dma.c460 return dma_request_channel(info->dma_cap, info->filter_fn, dma_spec); in acpi_dma_simple_xlate()
H A Dsprd-dma.c1223 sprd_dma_info.dma_cap = sdev->dma_dev.cap_mask; in sprd_dma_probe()
/linux/drivers/dma/ti/
H A Dcppi41.c991 return dma_request_channel(info->dma_cap, info->filter_fn, in cppi41_dma_xlate()
1063 cpp41_dma_info.dma_cap = cdd->ddev.cap_mask; in cppi41_dma_probe()
H A Domap-dma.c1820 omap_dma_info.dma_cap = od->ddev.cap_mask; in omap_dma_probe()
/linux/Documentation/networking/device_drivers/ethernet/stmicro/
H A Dstmmac.rst690 - ``dma_cap``: To show the HW Capabilities