/kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwxgmac2_dma.c | 389 struct dma_features *dma_cap) in dwxgmac2_get_hw_feature() 395 dma_cap->edma = (hw_cap & XGMAC_HWFEAT_EDMA) >> 31; in dwxgmac2_get_hw_feature() 396 dma_cap->ediffc = (hw_cap & XGMAC_HWFEAT_EDIFFC) >> 30; in dwxgmac2_get_hw_feature() 397 dma_cap->vxn = (hw_cap & XGMAC_HWFEAT_VXN) >> 29; in dwxgmac2_get_hw_feature() 398 dma_cap->vlins = (hw_cap & XGMAC_HWFEAT_SAVLANINS) >> 27; in dwxgmac2_get_hw_feature() 399 dma_cap->tssrc = (hw_cap & XGMAC_HWFEAT_TSSTSSEL) >> 25; in dwxgmac2_get_hw_feature() 400 dma_cap->multi_addr = (hw_cap & XGMAC_HWFEAT_ADDMACADRSEL) >> 18; in dwxgmac2_get_hw_feature() 401 dma_cap->rx_coe = (hw_cap & XGMAC_HWFEAT_RXCOESEL) >> 16; in dwxgmac2_get_hw_feature() 402 dma_cap->tx_coe = (hw_cap & XGMAC_HWFEAT_TXCOESEL) >> 14; in dwxgmac2_get_hw_feature() 403 dma_cap in dwxgmac2_get_hw_feature() 388 dwxgmac2_get_hw_feature(void __iomem *ioaddr, struct dma_features *dma_cap) dwxgmac2_get_hw_feature() argument [all...] |
H A D | dwmac1000_dma.c | 227 struct dma_features *dma_cap) in dwmac1000_get_hw_feature() 238 dma_cap->mbps_10_100 = (hw_cap & DMA_HW_FEAT_MIISEL); in dwmac1000_get_hw_feature() 239 dma_cap->mbps_1000 = (hw_cap & DMA_HW_FEAT_GMIISEL) >> 1; in dwmac1000_get_hw_feature() 240 dma_cap->half_duplex = (hw_cap & DMA_HW_FEAT_HDSEL) >> 2; in dwmac1000_get_hw_feature() 241 dma_cap->hash_filter = (hw_cap & DMA_HW_FEAT_HASHSEL) >> 4; in dwmac1000_get_hw_feature() 242 dma_cap->multi_addr = (hw_cap & DMA_HW_FEAT_ADDMAC) >> 5; in dwmac1000_get_hw_feature() 243 dma_cap->pcs = (hw_cap & DMA_HW_FEAT_PCSSEL) >> 6; in dwmac1000_get_hw_feature() 244 dma_cap->sma_mdio = (hw_cap & DMA_HW_FEAT_SMASEL) >> 8; in dwmac1000_get_hw_feature() 245 dma_cap->pmt_remote_wake_up = (hw_cap & DMA_HW_FEAT_RWKSEL) >> 9; in dwmac1000_get_hw_feature() 246 dma_cap in dwmac1000_get_hw_feature() 226 dwmac1000_get_hw_feature(void __iomem *ioaddr, struct dma_features *dma_cap) dwmac1000_get_hw_feature() argument [all...] |
H A D | dwmac4_dma.c | 378 struct dma_features *dma_cap) in dwmac4_get_hw_feature() 383 dma_cap->mbps_10_100 = (hw_cap & GMAC_HW_FEAT_MIISEL); in dwmac4_get_hw_feature() 384 dma_cap->mbps_1000 = (hw_cap & GMAC_HW_FEAT_GMIISEL) >> 1; in dwmac4_get_hw_feature() 385 dma_cap->half_duplex = (hw_cap & GMAC_HW_FEAT_HDSEL) >> 2; in dwmac4_get_hw_feature() 386 dma_cap->vlhash = (hw_cap & GMAC_HW_FEAT_VLHASH) >> 4; in dwmac4_get_hw_feature() 387 dma_cap->multi_addr = (hw_cap & GMAC_HW_FEAT_ADDMAC) >> 18; in dwmac4_get_hw_feature() 388 dma_cap->pcs = (hw_cap & GMAC_HW_FEAT_PCSSEL) >> 3; in dwmac4_get_hw_feature() 389 dma_cap->sma_mdio = (hw_cap & GMAC_HW_FEAT_SMASEL) >> 5; in dwmac4_get_hw_feature() 390 dma_cap->pmt_remote_wake_up = (hw_cap & GMAC_HW_FEAT_RWKSEL) >> 6; in dwmac4_get_hw_feature() 391 dma_cap in dwmac4_get_hw_feature() 377 dwmac4_get_hw_feature(void __iomem *ioaddr, struct dma_features *dma_cap) dwmac4_get_hw_feature() argument [all...] |
H A D | stmmac_main.c | 482 if (!priv->dma_cap.eee) in stmmac_eee_init() 631 if (!(priv->dma_cap.time_stamp || priv->adv_ts)) { in stmmac_hwtstamp_set() 818 if (!(priv->dma_cap.time_stamp || priv->dma_cap.atime_stamp)) in stmmac_hwtstamp_get() 842 if (!(priv->dma_cap.time_stamp || priv->dma_cap.atime_stamp)) in stmmac_init_tstamp_counter() 897 if (xmac && priv->dma_cap.atime_stamp) in stmmac_init_ptp() 900 else if (priv->extend_desc && priv->dma_cap.atime_stamp) in stmmac_init_ptp() 903 if (priv->dma_cap.time_stamp) in stmmac_init_ptp() 986 if (priv->dma_cap in stmmac_mac_link_down() [all...] |
H A D | stmmac_ethtool.c | 629 if (priv->dma_cap.asp) { in stmmac_get_ethtool_stats() 641 if (priv->dma_cap.rmon) { in stmmac_get_ethtool_stats() 737 if (priv->dma_cap.rmon) in stmmac_get_sset_count() 739 if (priv->dma_cap.asp) { in stmmac_get_sset_count() 788 if (priv->dma_cap.asp) { in stmmac_get_strings() 799 if (priv->dma_cap.rmon) in stmmac_get_strings() 835 if (priv->hw_cap_support && !priv->dma_cap.pmt_magic_frame) in stmmac_get_wol() 861 if ((priv->hw_cap_support) && (!priv->dma_cap.pmt_magic_frame)) in stmmac_set_wol() 894 if (!priv->dma_cap.eee) in stmmac_ethtool_op_get_eee() 911 if (!priv->dma_cap in stmmac_ethtool_op_set_eee() [all...] |
H A D | stmmac_tc.c | 261 struct dma_features *dma_cap = &priv->dma_cap; in tc_init() local 265 if (dma_cap->l3l4fnum) { in tc_init() 266 priv->flow_entries_max = dma_cap->l3l4fnum; in tc_init() 268 dma_cap->l3l4fnum, in tc_init() 296 if (!dma_cap->frpsel) in tc_init() 299 switch (dma_cap->frpbs) { in tc_init() 313 switch (dma_cap->frpes) { in tc_init() 355 if (!priv->dma_cap.av) in tc_setup_cbs() 921 u32 size, wid = priv->dma_cap in tc_setup_taprio() [all...] |
H A D | stmmac_selftests.c | 404 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 in stmmac_test_dvlanfilt_perfect() [all...] |
H A D | stmmac_ptp.c | 287 for (i = 0; i < priv->dma_cap.pps_out_num; i++) { in stmmac_ptp_register() 301 stmmac_ptp_clock_ops.n_per_out = priv->dma_cap.pps_out_num; in stmmac_ptp_register() 302 stmmac_ptp_clock_ops.n_ext_ts = priv->dma_cap.aux_snapshot_n; in stmmac_ptp_register()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac4_dma.c | 341 struct dma_features *dma_cap) in dwmac4_get_hw_feature() 346 dma_cap->mbps_10_100 = (hw_cap & GMAC_HW_FEAT_MIISEL); in dwmac4_get_hw_feature() 347 dma_cap->mbps_1000 = (hw_cap & GMAC_HW_FEAT_GMIISEL) >> 1; in dwmac4_get_hw_feature() 348 dma_cap->half_duplex = (hw_cap & GMAC_HW_FEAT_HDSEL) >> 2; in dwmac4_get_hw_feature() 349 dma_cap->vlhash = (hw_cap & GMAC_HW_FEAT_VLHASH) >> 4; in dwmac4_get_hw_feature() 350 dma_cap->multi_addr = (hw_cap & GMAC_HW_FEAT_ADDMAC) >> 18; in dwmac4_get_hw_feature() 351 dma_cap->pcs = (hw_cap & GMAC_HW_FEAT_PCSSEL) >> 3; in dwmac4_get_hw_feature() 352 dma_cap->sma_mdio = (hw_cap & GMAC_HW_FEAT_SMASEL) >> 5; in dwmac4_get_hw_feature() 353 dma_cap->pmt_remote_wake_up = (hw_cap & GMAC_HW_FEAT_RWKSEL) >> 6; in dwmac4_get_hw_feature() 354 dma_cap in dwmac4_get_hw_feature() 340 dwmac4_get_hw_feature(void __iomem *ioaddr, struct dma_features *dma_cap) dwmac4_get_hw_feature() argument [all...] |
H A D | dwmac1000_dma.c | 222 struct dma_features *dma_cap) in dwmac1000_get_hw_feature() 233 dma_cap->mbps_10_100 = (hw_cap & DMA_HW_FEAT_MIISEL); in dwmac1000_get_hw_feature() 234 dma_cap->mbps_1000 = (hw_cap & DMA_HW_FEAT_GMIISEL) >> 1; in dwmac1000_get_hw_feature() 235 dma_cap->half_duplex = (hw_cap & DMA_HW_FEAT_HDSEL) >> 2; in dwmac1000_get_hw_feature() 236 dma_cap->hash_filter = (hw_cap & DMA_HW_FEAT_HASHSEL) >> 4; in dwmac1000_get_hw_feature() 237 dma_cap->multi_addr = (hw_cap & DMA_HW_FEAT_ADDMAC) >> 5; in dwmac1000_get_hw_feature() 238 dma_cap->pcs = (hw_cap & DMA_HW_FEAT_PCSSEL) >> 6; in dwmac1000_get_hw_feature() 239 dma_cap->sma_mdio = (hw_cap & DMA_HW_FEAT_SMASEL) >> 8; in dwmac1000_get_hw_feature() 240 dma_cap->pmt_remote_wake_up = (hw_cap & DMA_HW_FEAT_RWKSEL) >> 9; in dwmac1000_get_hw_feature() 241 dma_cap in dwmac1000_get_hw_feature() 221 dwmac1000_get_hw_feature(void __iomem *ioaddr, struct dma_features *dma_cap) dwmac1000_get_hw_feature() argument [all...] |
H A D | dwxgmac2_dma.c | 369 struct dma_features *dma_cap) in dwxgmac2_get_hw_feature() 375 dma_cap->vlins = (hw_cap & XGMAC_HWFEAT_SAVLANINS) >> 27; in dwxgmac2_get_hw_feature() 376 dma_cap->rx_coe = (hw_cap & XGMAC_HWFEAT_RXCOESEL) >> 16; in dwxgmac2_get_hw_feature() 377 dma_cap->tx_coe = (hw_cap & XGMAC_HWFEAT_TXCOESEL) >> 14; in dwxgmac2_get_hw_feature() 378 dma_cap->eee = (hw_cap & XGMAC_HWFEAT_EEESEL) >> 13; in dwxgmac2_get_hw_feature() 379 dma_cap->atime_stamp = (hw_cap & XGMAC_HWFEAT_TSSEL) >> 12; in dwxgmac2_get_hw_feature() 380 dma_cap->av = (hw_cap & XGMAC_HWFEAT_AVSEL) >> 11; in dwxgmac2_get_hw_feature() 381 dma_cap->av &= !((hw_cap & XGMAC_HWFEAT_RAVSEL) >> 10); in dwxgmac2_get_hw_feature() 382 dma_cap->arpoffsel = (hw_cap & XGMAC_HWFEAT_ARPOFFSEL) >> 9; in dwxgmac2_get_hw_feature() 383 dma_cap in dwxgmac2_get_hw_feature() 368 dwxgmac2_get_hw_feature(void __iomem *ioaddr, struct dma_features *dma_cap) dwxgmac2_get_hw_feature() argument [all...] |
H A D | stmmac_main.c | 400 if (!priv->dma_cap.eee) in stmmac_eee_init() 527 if (!(priv->dma_cap.time_stamp || priv->adv_ts)) { in stmmac_hwtstamp_set() 718 if (!(priv->dma_cap.time_stamp || priv->dma_cap.atime_stamp)) in stmmac_hwtstamp_get() 742 if (!(priv->dma_cap.time_stamp || priv->dma_cap.atime_stamp)) in stmmac_init_tstamp_counter() 794 if (xmac && priv->dma_cap.atime_stamp) in stmmac_init_ptp() 797 else if (priv->extend_desc && priv->dma_cap.atime_stamp) in stmmac_init_ptp() 800 if (priv->dma_cap.time_stamp) in stmmac_init_ptp() 1060 if (phy && priv->dma_cap in stmmac_mac_link_up() [all...] |
H A D | stmmac_ethtool.c | 527 if (priv->dma_cap.asp) { in stmmac_get_ethtool_stats() 540 if (priv->dma_cap.rmon) { in stmmac_get_ethtool_stats() 579 if (priv->dma_cap.rmon) in stmmac_get_sset_count() 581 if (priv->dma_cap.asp) { in stmmac_get_sset_count() 608 if (priv->dma_cap.asp) { in stmmac_get_strings() 619 if (priv->dma_cap.rmon) in stmmac_get_strings() 651 if (priv->hw_cap_support && !priv->dma_cap.pmt_magic_frame) in stmmac_get_wol() 677 if ((priv->hw_cap_support) && (!priv->dma_cap.pmt_magic_frame)) in stmmac_set_wol() 704 if (!priv->dma_cap.eee) in stmmac_ethtool_op_get_eee() 721 if (!priv->dma_cap in stmmac_ethtool_op_set_eee() [all...] |
H A D | stmmac_tc.c | 243 struct dma_features *dma_cap = &priv->dma_cap; in tc_init() local 247 if (dma_cap->l3l4fnum) { in tc_init() 248 priv->flow_entries_max = dma_cap->l3l4fnum; in tc_init() 250 dma_cap->l3l4fnum, in tc_init() 264 if (!dma_cap->frpsel) in tc_init() 267 switch (dma_cap->frpbs) { in tc_init() 281 switch (dma_cap->frpes) { in tc_init() 322 if (!priv->dma_cap.av) in tc_setup_cbs() 633 u32 size, wid = priv->dma_cap in tc_setup_taprio() [all...] |
H A D | stmmac_selftests.c | 404 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 in stmmac_test_dvlanfilt_perfect() [all...] |
H A D | stmmac_ptp.c | 195 for (i = 0; i < priv->dma_cap.pps_out_num; i++) { in stmmac_ptp_register() 204 stmmac_ptp_clock_ops.n_per_out = priv->dma_cap.pps_out_num; in stmmac_ptp_register()
|
H A D | stmmac.h | 195 struct dma_features dma_cap; member
|
/kernel/linux/linux-5.10/drivers/dma/dw/ |
H A D | acpi.c | 36 dma_cap_zero(info->dma_cap); in dw_dma_acpi_controller_register() 37 dma_cap_set(DMA_SLAVE, info->dma_cap); in dw_dma_acpi_controller_register()
|
/kernel/linux/linux-6.6/drivers/dma/dw/ |
H A D | acpi.c | 36 dma_cap_zero(info->dma_cap); in dw_dma_acpi_controller_register() 37 dma_cap_set(DMA_SLAVE, info->dma_cap); in dw_dma_acpi_controller_register()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | of_dma.h | 30 dma_cap_mask_t dma_cap; member
|
H A D | acpi_dma.h | 53 dma_cap_mask_t dma_cap; member
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | of_dma.h | 30 dma_cap_mask_t dma_cap; member
|
H A D | acpi_dma.h | 53 dma_cap_mask_t dma_cap; member
|
/kernel/linux/linux-5.10/drivers/dma/ |
H A D | of-dma.c | 323 return __dma_request_channel(&info->dma_cap, info->filter_fn, in of_dma_simple_xlate()
|
/kernel/linux/linux-6.6/drivers/dma/ |
H A D | of-dma.c | 333 return __dma_request_channel(&info->dma_cap, info->filter_fn, in of_dma_simple_xlate()
|