Home
last modified time | relevance | path

Searched +full:mac +full:- +full:mode (Results 1 – 25 of 1089) sorted by relevance

12345678910>>...44

/kernel/linux/linux-4.19/drivers/net/ethernet/stmicro/stmmac/
Dhwif.c1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
13 u32 reg = readl(priv->ioaddr + id_reg); in stmmac_get_id()
16 dev_info(priv->device, "Version ID not available\n"); in stmmac_get_id()
20 dev_info(priv->device, "User ID: 0x%x, Synopsys ID: 0x%x\n", in stmmac_get_id()
28 struct mac_device_info *mac = priv->hw; in stmmac_dwmac_mode_quirk() local
30 if (priv->chain_mode) { in stmmac_dwmac_mode_quirk()
31 dev_info(priv->device, "Chain mode enabled\n"); in stmmac_dwmac_mode_quirk()
32 priv->mode = STMMAC_CHAIN_MODE; in stmmac_dwmac_mode_quirk()
33 mac->mode = &chain_mode_ops; in stmmac_dwmac_mode_quirk()
35 dev_info(priv->device, "Ring mode enabled\n"); in stmmac_dwmac_mode_quirk()
[all …]
Dhwif.h1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
12 int __result = -EINVAL; \
13 if ((__priv)->hw->__module && (__priv)->hw->__module->__cname) { \
14 (__priv)->hw->__module->__cname((__arg0), ##__args); \
21 int __result = -EINVAL; \
22 if ((__priv)->hw->__module && (__priv)->hw->__module->__cname) \
23 __result = (__priv)->hw->__module->__cname((__arg0), ##__args); \
35 void (*init_rx_desc)(struct dma_desc *p, int disable_rx_ic, int mode,
38 void (*init_tx_desc)(struct dma_desc *p, int mode, int end);
41 bool csum_flag, int mode, bool tx_own, bool ls,
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/
Dhwif.c1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
13 u32 reg = readl(priv->ioaddr + id_reg); in stmmac_get_id()
16 dev_info(priv->device, "Version ID not available\n"); in stmmac_get_id()
20 dev_info(priv->device, "User ID: 0x%x, Synopsys ID: 0x%x\n", in stmmac_get_id()
28 u32 reg = readl(priv->ioaddr + id_reg); in stmmac_get_dev_id()
31 dev_info(priv->device, "Version ID not available\n"); in stmmac_get_dev_id()
40 struct mac_device_info *mac = priv->hw; in stmmac_dwmac_mode_quirk() local
42 if (priv->chain_mode) { in stmmac_dwmac_mode_quirk()
43 dev_info(priv->device, "Chain mode enabled\n"); in stmmac_dwmac_mode_quirk()
44 priv->mode = STMMAC_CHAIN_MODE; in stmmac_dwmac_mode_quirk()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dphylink.h21 MLO_AN_FIXED, /* Fixed-link mode */
22 MLO_AN_INBAND, /* In-band protocol */
25 static inline bool phylink_autoneg_inband(unsigned int mode) in phylink_autoneg_inband() argument
27 return mode == MLO_AN_INBAND; in phylink_autoneg_inband()
31 * struct phylink_link_state - link state structure
35 * @interface: link &typedef phy_interface_t mode
37 * @duplex: link duplex mode, one of DUPLEX_* constants.
61 * struct phylink_config - PHYLINK configuration structure
62 * @dev: a pointer to a struct device associated with the MAC
64 * @pcs_poll: MAC PCS cannot provide link change interrupt
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/include/
Drtw_cmd.h1 /* SPDX-License-Identifier: GPL-2.0 */
4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
43 INIT_LIST_HEAD(&pcmd->list);\
44 pcmd->cmdcode = code;\
45 pcmd->parmbuf = (u8 *)(pparm);\
46 pcmd->cmdsz = sizeof(*pparm);\
47 pcmd->rsp = NULL;\
48 pcmd->rspsz = 0;\
69 CHECK_HIQ_WK_CID,/* for softap mode, check hi queue if empty */
92 * Caller Mode: Infra, Ad-HoC(C)
[all …]
/kernel/linux/linux-4.19/drivers/staging/rtl8188eu/include/
Drtw_cmd.h1 /* SPDX-License-Identifier: GPL-2.0 */
4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
43 INIT_LIST_HEAD(&pcmd->list);\
44 pcmd->cmdcode = code;\
45 pcmd->parmbuf = (u8 *)(pparm);\
46 pcmd->cmdsz = sizeof(*pparm);\
47 pcmd->rsp = NULL;\
48 pcmd->rspsz = 0;\
69 CHECK_HIQ_WK_CID,/* for softap mode, check hi queue if empty */
92 * Caller Mode: Infra, Ad-HoC(C)
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8712/
Drtl871x_cmd.h1 /* SPDX-License-Identifier: GPL-2.0 */
4 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
45 u8 *cmd_buf; /*shall be non-paged, and 4 bytes aligned*/
47 u8 *rsp_buf; /*shall be non-paged, and 4 bytes aligned*/
66 u8 *evt_buf; /*shall be non-paged, and 4 bytes aligned*/
74 INIT_LIST_HEAD(&pcmd->list);\
75 pcmd->cmdcode = code;\
76 pcmd->parmbuf = (u8 *)(pparm);\
77 pcmd->cmdsz = sizeof(*pparm);\
78 pcmd->rsp = NULL;\
[all …]
/kernel/linux/linux-4.19/include/linux/
Dphylink.h23 MLO_AN_FIXED, /* Fixed-link mode */
24 MLO_AN_INBAND, /* In-band protocol */
27 static inline bool phylink_autoneg_inband(unsigned int mode) in phylink_autoneg_inband() argument
29 return mode == MLO_AN_INBAND; in phylink_autoneg_inband()
33 * struct phylink_link_state - link state structure
37 * @interface: link &typedef phy_interface_t mode
39 * @duplex: link duplex mode, one of DUPLEX_* constants.
58 * struct phylink_mac_ops - MAC operations structure.
61 * @mac_config: configure the MAC for the selected mode and state.
73 void (*mac_config)(struct net_device *ndev, unsigned int mode,
[all …]
/kernel/linux/linux-4.19/drivers/staging/rtl8712/
Drtl871x_cmd.h3 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
57 u8 *cmd_buf; /*shall be non-paged, and 4 bytes aligned*/
59 u8 *rsp_buf; /*shall be non-paged, and 4 bytes aligned*/
78 u8 *evt_buf; /*shall be non-paged, and 4 bytes aligned*/
86 INIT_LIST_HEAD(&pcmd->list);\
87 pcmd->cmdcode = code;\
88 pcmd->parmbuf = (u8 *)(pparm);\
89 pcmd->cmdsz = sizeof(*pparm);\
90 pcmd->rsp = NULL;\
91 pcmd->rspsz = 0;\
[all …]
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/include/
Drtw_cmd.h1 /* SPDX-License-Identifier: GPL-2.0 */
4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
45 u8 *cmd_buf; /* shall be non-paged, and 4 bytes aligned */
47 u8 *rsp_buf; /* shall be non-paged, and 4 bytes aligned */
66 u8 *evt_buf; /* shall be non-paged, and 4 bytes aligned */
75 INIT_LIST_HEAD(&pcmd->list);\
76 pcmd->cmdcode = code;\
77 pcmd->parmbuf = (u8 *)(pparm);\
78 pcmd->cmdsz = sizeof(*pparm);\
79 pcmd->rsp = NULL;\
[all …]
/kernel/linux/linux-4.19/drivers/staging/rtl8723bs/include/
Drtw_cmd.h1 /* SPDX-License-Identifier: GPL-2.0 */
4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
46 u8 *cmd_buf; /* shall be non-paged, and 4 bytes aligned */
48 u8 *rsp_buf; /* shall be non-paged, and 4 bytes aligned */
67 u8 *evt_buf; /* shall be non-paged, and 4 bytes aligned */
76 INIT_LIST_HEAD(&pcmd->list);\
77 pcmd->cmdcode = code;\
78 pcmd->parmbuf = (u8 *)(pparm);\
79 pcmd->cmdsz = sizeof (*pparm);\
80 pcmd->rsp = NULL;\
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/net/
Dkeystone-netcp.txt6 switch sub-module to send and receive packets. NetCP also includes a packet
13 includes a 3-port Ethernet switch sub-module capable of 10Gb/s and 1Gb/s rates
16 Keystone NetCP driver has a plug-in module architecture where each of the NetCP
17 sub-modules exist as a loadable kernel module which plug in to the netcp core.
18 These sub-modules are represented as "netcp-devices" in the dts bindings. It is
19 mandatory to have the ethernet switch sub-module for the ethernet interface to
20 be operational. Any other sub-module like the PA is optional.
24 -----------------------------
26 -----------------------------
28 |-> NetCP Devices -> |
[all …]
Dsocionext,uniphier-ave4.txt7 - compatible: Should be
8 - "socionext,uniphier-pro4-ave4" : for Pro4 SoC
9 - "socionext,uniphier-pxs2-ave4" : for PXs2 SoC
10 - "socionext,uniphier-ld11-ave4" : for LD11 SoC
11 - "socionext,uniphier-ld20-ave4" : for LD20 SoC
12 - "socionext,uniphier-pxs3-ave4" : for PXs3 SoC
13 - reg: Address where registers are mapped and size of region.
14 - interrupts: Should contain the MAC interrupt.
15 - phy-mode: See ethernet.txt in the same directory. Allow to choose
17 The acceptable mode is SoC-dependent.
[all …]
/kernel/linux/linux-5.10/Documentation/networking/
Dsfp-phylink.rst1 .. SPDX-License-Identifier: GPL-2.0
10 phylink is a mechanism to support hot-pluggable networking modules
11 directly connected to a MAC without needing to re-initialise the
12 adapter on hot-plug events.
14 phylink supports conventional phylib-based setups, fixed link setups
23 1. PHY mode
25 In PHY mode, we use phylib to read the current link settings from
26 the PHY, and pass them to the MAC driver. We expect the MAC driver
30 2. Fixed mode
32 Fixed mode is the same as PHY mode as far as the MAC driver is
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/
Dkeystone-netcp.txt6 switch sub-module to send and receive packets. NetCP also includes a packet
13 includes a 3-port Ethernet switch sub-module capable of 10Gb/s and 1Gb/s rates
16 Keystone NetCP driver has a plug-in module architecture where each of the NetCP
17 sub-modules exist as a loadable kernel module which plug in to the netcp core.
18 These sub-modules are represented as "netcp-devices" in the dts bindings. It is
19 mandatory to have the ethernet switch sub-module for the ethernet interface to
20 be operational. Any other sub-module like the PA is optional.
24 -----------------------------
26 -----------------------------
28 |-> NetCP Devices -> |
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/dsa/
Dsja1105.txt6 - compatible:
8 - "nxp,sja1105e"
9 - "nxp,sja1105t"
10 - "nxp,sja1105p"
11 - "nxp,sja1105q"
12 - "nxp,sja1105r"
13 - "nxp,sja1105s"
18 and the non-SGMII devices, while pin-compatible, are not equal in terms
24 - sja1105,role-mac:
25 - sja1105,role-phy:
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/intel/fm10k/
Dfm10k_vf.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2013 - 2018 Intel Corporation. */
7 * fm10k_stop_hw_vf - Stop Tx/Rx units
13 u8 *perm_addr = hw->mac.perm_addr; in fm10k_stop_hw_vf()
35 tdlen = hw->mac.itr_scale << FM10K_TDLEN_ITR_SCALE_SHIFT; in fm10k_stop_hw_vf()
40 for (i = 0; i < hw->mac.max_queues; i++) { in fm10k_stop_hw_vf()
45 /* Restore ITR scale in software-defined mechanism in TDLEN in fm10k_stop_hw_vf()
57 * fm10k_reset_hw_vf - VF hardware reset
70 hw->mac.reset_while_pending++; in fm10k_reset_hw_vf()
90 * fm10k_init_hw_vf - VF hardware initialization
[all …]
Dfm10k_pf.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2013 - 2018 Intel Corporation. */
8 * fm10k_reset_hw_pf - PF hardware reset
38 hw->mac.reset_while_pending++; in fm10k_reset_hw_pf()
67 * fm10k_is_ari_hierarchy_pf - Indicate ARI hierarchy support
80 * fm10k_init_hw_pf - PF hardware initialization
106 fm10k_write_reg(hw, FM10K_ITR2(i), i - 1); in fm10k_init_hw_pf()
113 (hw->mac.default_vid << FM10K_TXQCTL_VID_SHIFT); in fm10k_init_hw_pf()
116 /* configure rings for 256 Queue / 32 Descriptor cache mode */ in fm10k_init_hw_pf()
138 switch (hw->bus.speed) { in fm10k_init_hw_pf()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/
Dfm10k_vf.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2013 - 2019 Intel Corporation. */
7 * fm10k_stop_hw_vf - Stop Tx/Rx units
13 u8 *perm_addr = hw->mac.perm_addr; in fm10k_stop_hw_vf()
35 tdlen = hw->mac.itr_scale << FM10K_TDLEN_ITR_SCALE_SHIFT; in fm10k_stop_hw_vf()
40 for (i = 0; i < hw->mac.max_queues; i++) { in fm10k_stop_hw_vf()
45 /* Restore ITR scale in software-defined mechanism in TDLEN in fm10k_stop_hw_vf()
57 * fm10k_reset_hw_vf - VF hardware reset
70 hw->mac.reset_while_pending++; in fm10k_reset_hw_vf()
90 * fm10k_init_hw_vf - VF hardware initialization
[all …]
Dfm10k_pf.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2013 - 2019 Intel Corporation. */
8 * fm10k_reset_hw_pf - PF hardware reset
38 hw->mac.reset_while_pending++; in fm10k_reset_hw_pf()
67 * fm10k_is_ari_hierarchy_pf - Indicate ARI hierarchy support
80 * fm10k_init_hw_pf - PF hardware initialization
106 fm10k_write_reg(hw, FM10K_ITR2(i), i - 1); in fm10k_init_hw_pf()
113 (hw->mac.default_vid << FM10K_TXQCTL_VID_SHIFT); in fm10k_init_hw_pf()
116 /* configure rings for 256 Queue / 32 Descriptor cache mode */ in fm10k_init_hw_pf()
138 switch (hw->bus.speed) { in fm10k_init_hw_pf()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_mac.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (c) 2014-2015 Hisilicon Limited.
37 /* check mac addr broadcast */
42 /* check mac addr is 01-00-5e-xx-xx-xx*/
47 /*check the mac addr is 0 in all bit*/
52 /*check mac addr multicast*/
56 void *mac; member
67 /*mac interface keyword */
82 /*mac mode */
84 /**< Invalid Ethernet mode */
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_mac.h2 * Copyright (c) 2014-2015 Hisilicon Limited.
41 /* check mac addr broadcast */
46 /* check mac addr is 01-00-5e-xx-xx-xx*/
51 /*check the mac addr is 0 in all bit*/
56 /*check mac addr multicast*/
60 void *mac; member
71 /*mac interface keyword */
86 /*mac mode */
88 /**< Invalid Ethernet mode */
126 /*mac communicate mode*/
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-mac.c1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
4 #include "dpaa2-eth.h"
5 #include "dpaa2-mac.h"
31 return -EINVAL; in phy_mode()
78 static bool dpaa2_mac_phy_mode_mismatch(struct dpaa2_mac *mac, in dpaa2_mac_phy_mode_mismatch() argument
90 return (interface != mac->if_mode); in dpaa2_mac_phy_mode_mismatch()
100 struct dpaa2_mac *mac = phylink_to_dpaa2_mac(config); in dpaa2_mac_validate() local
103 if (state->interface != PHY_INTERFACE_MODE_NA && in dpaa2_mac_validate()
104 dpaa2_mac_phy_mode_mismatch(mac, state->interface)) { in dpaa2_mac_validate()
113 switch (state->interface) { in dpaa2_mac_validate()
[all …]
/kernel/linux/linux-4.19/drivers/of/
Dof_net.c10 #include <linux/nvmem-consumer.h>
16 * of_get_phy_mode - Get phy mode for given device_node
19 * The function gets phy interface string from property 'phy-mode' or
20 * 'phy-connection-type', and return its index in phy_modes table, or errno in
28 err = of_property_read_string(np, "phy-mode", &pm); in of_get_phy_mode()
30 err = of_property_read_string(np, "phy-connection-type", &pm); in of_get_phy_mode()
38 return -ENODEV; in of_get_phy_mode()
46 if (pp && pp->length == ETH_ALEN && is_valid_ether_addr(pp->value)) in of_get_mac_addr()
47 return pp->value; in of_get_mac_addr()
52 * Search the device tree for the best MAC address to use. 'mac-address' is
[all …]
/kernel/linux/linux-5.10/drivers/of/
Dof_net.c1 // SPDX-License-Identifier: GPL-2.0-only
16 * of_get_phy_mode - Get phy mode for given device_node
20 * The function gets phy interface string from property 'phy-mode' or
21 * 'phy-connection-type'. The index in phy_modes table is set in
23 * PHY_INTERFACE_MODE_NA and an errno is returned, e.g. -ENODEV.
32 err = of_property_read_string(np, "phy-mode", &pm); in of_get_phy_mode()
34 err = of_property_read_string(np, "phy-connection-type", &pm); in of_get_phy_mode()
44 return -ENODEV; in of_get_phy_mode()
52 if (pp && pp->length == ETH_ALEN && is_valid_ether_addr(pp->value)) in of_get_mac_addr()
53 return pp->value; in of_get_mac_addr()
[all …]

12345678910>>...44