/kernel/linux/linux-5.10/drivers/pinctrl/ |
H A D | pinctrl-single.c | 210 #define PCS_QUIRK_HAS_SHARED_IRQ (pcs->flags & PCS_QUIRK_SHARED_IRQ) 211 #define PCS_HAS_IRQ (pcs->flags & PCS_FEAT_IRQ) 212 #define PCS_HAS_PINCONF (pcs->flags & PCS_FEAT_PINCONF) 273 static unsigned int pcs_pin_reg_offset_get(struct pcs_device *pcs, in pcs_pin_reg_offset_get() argument 276 unsigned int mux_bytes = pcs->width / BITS_PER_BYTE; in pcs_pin_reg_offset_get() 278 if (pcs->bits_per_mux) { in pcs_pin_reg_offset_get() 281 pin_offset_bytes = (pcs->bits_per_pin * pin) / BITS_PER_BYTE; in pcs_pin_reg_offset_get() 288 static unsigned int pcs_pin_shift_reg_get(struct pcs_device *pcs, in pcs_pin_shift_reg_get() argument 291 return (pin % (pcs->width / pcs in pcs_pin_shift_reg_get() 298 struct pcs_device *pcs; pcs_pin_dbg_show() local 319 struct pcs_device *pcs; pcs_dt_free_map() local 341 struct pcs_device *pcs = pinctrl_dev_get_drvdata(pctldev); pcs_get_function() local 365 struct pcs_device *pcs; pcs_set_mux() local 410 struct pcs_device *pcs = pinctrl_dev_get_drvdata(pctldev); pcs_request_gpio() local 488 struct pcs_device *pcs = pinctrl_dev_get_drvdata(pctldev); pcs_pinconf_get() local 552 struct pcs_device *pcs = pinctrl_dev_get_drvdata(pctldev); pcs_pinconf_set() local 683 pcs_add_pin(struct pcs_device *pcs, unsigned int offset) pcs_add_pin() argument 724 pcs_allocate_pin_table(struct pcs_device *pcs) pcs_allocate_pin_table() argument 776 pcs_add_function(struct pcs_device *pcs, struct pcs_function **fcn, const char *name, struct pcs_func_vals *vals, unsigned int nvals, const char **pgnames, unsigned int npgnames) pcs_add_function() argument 814 pcs_get_pin_by_offset(struct pcs_device *pcs, unsigned offset) pcs_get_pin_by_offset() argument 868 pcs_add_conf2(struct pcs_device *pcs, struct device_node *np, const char *name, enum pin_config_param param, struct pcs_conf_vals **conf, unsigned long **settings) pcs_add_conf2() argument 887 pcs_add_conf4(struct pcs_device *pcs, struct device_node *np, const char *name, enum pin_config_param param, struct pcs_conf_vals **conf, unsigned long **settings) pcs_add_conf4() argument 912 pcs_parse_pinconf(struct pcs_device *pcs, struct device_node *np, struct pcs_function *func, struct pinctrl_map **map) pcs_parse_pinconf() argument 996 pcs_parse_one_pinctrl_entry(struct pcs_device *pcs, struct device_node *np, struct pinctrl_map **map, unsigned *num_maps, const char **pgnames) pcs_parse_one_pinctrl_entry() argument 1110 pcs_parse_bits_in_pinctrl_entry(struct pcs_device *pcs, struct device_node *np, struct pinctrl_map **map, unsigned *num_maps, const char **pgnames) pcs_parse_bits_in_pinctrl_entry() argument 1261 struct pcs_device *pcs; pcs_dt_node_to_map() local 1312 pcs_irq_free(struct pcs_device *pcs) pcs_irq_free() argument 1332 pcs_free_resources(struct pcs_device *pcs) pcs_free_resources() argument 1343 pcs_add_gpio_func(struct device_node *node, struct pcs_device *pcs) pcs_add_gpio_func() argument 1400 struct pcs_device *pcs; pcs_irq_set() local 1481 struct pcs_device *pcs; pcs_irq_handle() local 1542 struct pcs_device *pcs; pcs_irqdomain_map() local 1577 pcs_irq_init_chained_handler(struct pcs_device *pcs, struct device_node *np) pcs_irq_init_chained_handler() argument 1634 pcs_save_context(struct pcs_device *pcs) pcs_save_context() argument 1670 pcs_restore_context(struct pcs_device *pcs) pcs_restore_context() argument 1701 struct pcs_device *pcs; pinctrl_single_suspend() local 1720 struct pcs_device *pcs; pinctrl_single_resume() local 1743 pcs_quirk_missing_pinctrl_cells(struct pcs_device *pcs, struct device_node *np, int cells) pcs_quirk_missing_pinctrl_cells() argument 1787 struct pcs_device *pcs; pcs_probe() local 1935 struct pcs_device *pcs = platform_get_drvdata(pdev); pcs_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/pinctrl/ |
H A D | pinctrl-single.c | 209 #define PCS_QUIRK_HAS_SHARED_IRQ (pcs->flags & PCS_QUIRK_SHARED_IRQ) 210 #define PCS_HAS_IRQ (pcs->flags & PCS_FEAT_IRQ) 211 #define PCS_HAS_PINCONF (pcs->flags & PCS_FEAT_PINCONF) 272 static unsigned int pcs_pin_reg_offset_get(struct pcs_device *pcs, in pcs_pin_reg_offset_get() argument 275 unsigned int mux_bytes = pcs->width / BITS_PER_BYTE; in pcs_pin_reg_offset_get() 277 if (pcs->bits_per_mux) { in pcs_pin_reg_offset_get() 280 pin_offset_bytes = (pcs->bits_per_pin * pin) / BITS_PER_BYTE; in pcs_pin_reg_offset_get() 287 static unsigned int pcs_pin_shift_reg_get(struct pcs_device *pcs, in pcs_pin_shift_reg_get() argument 290 return (pin % (pcs->width / pcs in pcs_pin_shift_reg_get() 297 struct pcs_device *pcs; pcs_pin_dbg_show() local 318 struct pcs_device *pcs; pcs_dt_free_map() local 340 struct pcs_device *pcs = pinctrl_dev_get_drvdata(pctldev); pcs_get_function() local 364 struct pcs_device *pcs; pcs_set_mux() local 409 struct pcs_device *pcs = pinctrl_dev_get_drvdata(pctldev); pcs_request_gpio() local 487 struct pcs_device *pcs = pinctrl_dev_get_drvdata(pctldev); pcs_pinconf_get() local 552 struct pcs_device *pcs = pinctrl_dev_get_drvdata(pctldev); pcs_pinconf_set() local 684 pcs_add_pin(struct pcs_device *pcs, unsigned int offset) pcs_add_pin() argument 725 pcs_allocate_pin_table(struct pcs_device *pcs) pcs_allocate_pin_table() argument 775 pcs_add_function(struct pcs_device *pcs, struct pcs_function **fcn, const char *name, struct pcs_func_vals *vals, unsigned int nvals, const char **pgnames, unsigned int npgnames) pcs_add_function() argument 814 pcs_get_pin_by_offset(struct pcs_device *pcs, unsigned offset) pcs_get_pin_by_offset() argument 868 pcs_add_conf2(struct pcs_device *pcs, struct device_node *np, const char *name, enum pin_config_param param, struct pcs_conf_vals **conf, unsigned long **settings) pcs_add_conf2() argument 887 pcs_add_conf4(struct pcs_device *pcs, struct device_node *np, const char *name, enum pin_config_param param, struct pcs_conf_vals **conf, unsigned long **settings) pcs_add_conf4() argument 912 pcs_parse_pinconf(struct pcs_device *pcs, struct device_node *np, struct pcs_function *func, struct pinctrl_map **map) pcs_parse_pinconf() argument 997 pcs_parse_one_pinctrl_entry(struct pcs_device *pcs, struct device_node *np, struct pinctrl_map **map, unsigned *num_maps, const char **pgnames) pcs_parse_one_pinctrl_entry() argument 1111 pcs_parse_bits_in_pinctrl_entry(struct pcs_device *pcs, struct device_node *np, struct pinctrl_map **map, unsigned *num_maps, const char **pgnames) pcs_parse_bits_in_pinctrl_entry() argument 1256 struct pcs_device *pcs; pcs_dt_node_to_map() local 1307 pcs_irq_free(struct pcs_device *pcs) pcs_irq_free() argument 1327 pcs_free_resources(struct pcs_device *pcs) pcs_free_resources() argument 1338 pcs_add_gpio_func(struct device_node *node, struct pcs_device *pcs) pcs_add_gpio_func() argument 1395 struct pcs_device *pcs; pcs_irq_set() local 1476 struct pcs_device *pcs; pcs_irq_handle() local 1537 struct pcs_device *pcs; pcs_irqdomain_map() local 1572 pcs_irq_init_chained_handler(struct pcs_device *pcs, struct device_node *np) pcs_irq_init_chained_handler() argument 1629 pcs_save_context(struct pcs_device *pcs) pcs_save_context() argument 1665 pcs_restore_context(struct pcs_device *pcs) pcs_restore_context() argument 1696 struct pcs_device *pcs; pinctrl_single_suspend() local 1715 struct pcs_device *pcs; pinctrl_single_resume() local 1738 pcs_quirk_missing_pinctrl_cells(struct pcs_device *pcs, struct device_node *np, int cells) pcs_quirk_missing_pinctrl_cells() argument 1782 struct pcs_device *pcs; pcs_probe() local 1930 struct pcs_device *pcs = platform_get_drvdata(pdev); pcs_remove() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
H A D | altr_tse_pcs.c | 62 static int tse_pcs_reset(void __iomem *base, struct tse_pcs *pcs) in tse_pcs_reset() argument 80 dev_err(pcs->dev, "PCS could not get out of sw reset\n"); in tse_pcs_reset() 87 int tse_pcs_init(void __iomem *base, struct tse_pcs *pcs) in tse_pcs_init() argument 98 ret = tse_pcs_reset(base, pcs); in tse_pcs_init() 101 pcs->sgmii_adapter_base + SGMII_ADAPTER_CTRL_REG); in tse_pcs_init() 106 static void pcs_link_timer_callback(struct tse_pcs *pcs) in pcs_link_timer_callback() argument 109 void __iomem *tse_pcs_base = pcs->tse_pcs_base; in pcs_link_timer_callback() 110 void __iomem *sgmii_adapter_base = pcs->sgmii_adapter_base; in pcs_link_timer_callback() 116 dev_dbg(pcs->dev, "Adapter: Link is established\n"); in pcs_link_timer_callback() 120 mod_timer(&pcs in pcs_link_timer_callback() 125 auto_nego_timer_callback(struct tse_pcs *pcs) auto_nego_timer_callback() argument 189 struct tse_pcs *pcs = from_timer(pcs, t, aneg_link_timer); aneg_link_timer_callback() local 197 tse_pcs_fix_mac_speed(struct tse_pcs *pcs, struct phy_device *phy_dev, unsigned int speed) tse_pcs_fix_mac_speed() argument [all...] |
H A D | dwmac-socfpga.c | 54 struct tse_pcs pcs; member 62 void __iomem *sgmii_adapter_base = dwmac->pcs.sgmii_adapter_base; in socfpga_dwmac_fix_mac_speed() 95 tse_pcs_fix_mac_speed(&dwmac->pcs, phy_dev, speed); in socfpga_dwmac_fix_mac_speed() 186 dwmac->pcs.sgmii_adapter_base = in socfpga_dwmac_parse_data() 189 if (IS_ERR(dwmac->pcs.sgmii_adapter_base)) { in socfpga_dwmac_parse_data() 190 ret = PTR_ERR(dwmac->pcs.sgmii_adapter_base); in socfpga_dwmac_parse_data() 208 dwmac->pcs.tse_pcs_base = in socfpga_dwmac_parse_data() 211 if (IS_ERR(dwmac->pcs.tse_pcs_base)) { in socfpga_dwmac_parse_data() 212 ret = PTR_ERR(dwmac->pcs.tse_pcs_base); in socfpga_dwmac_parse_data() 314 if (tse_pcs_init(dwmac->pcs in socfpga_gen5_set_phy_mode() [all...] |
/kernel/linux/linux-6.6/drivers/net/pcs/ |
H A D | pcs-lynx.c | 8 #include <linux/pcs-lynx.h> 24 struct phylink_pcs pcs; member 35 #define phylink_pcs_to_lynx(pl_pcs) container_of((pl_pcs), struct lynx_pcs, pcs) 36 #define lynx_to_phylink_pcs(lynx) (&(lynx)->pcs) 38 static void lynx_pcs_get_state_usxgmii(struct mdio_device *pcs, in lynx_pcs_get_state_usxgmii() argument 41 struct mii_bus *bus = pcs->bus; in lynx_pcs_get_state_usxgmii() 42 int addr = pcs->addr; in lynx_pcs_get_state_usxgmii() 61 static void lynx_pcs_get_state_2500basex(struct mdio_device *pcs, in lynx_pcs_get_state_2500basex() argument 66 bmsr = mdiodev_read(pcs, MII_BMSR); in lynx_pcs_get_state_2500basex() 67 lpa = mdiodev_read(pcs, MII_LP in lynx_pcs_get_state_2500basex() 83 lynx_pcs_get_state(struct phylink_pcs *pcs, struct phylink_link_state *state) lynx_pcs_get_state() argument 115 lynx_pcs_config_giga(struct mdio_device *pcs, phy_interface_t interface, const unsigned long *advertising, unsigned int neg_mode) lynx_pcs_config_giga() argument 152 lynx_pcs_config_usxgmii(struct mdio_device *pcs, const unsigned long *advertising, unsigned int neg_mode) lynx_pcs_config_usxgmii() argument 171 lynx_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t ifmode, const unsigned long *advertising, bool permit) lynx_pcs_config() argument 203 lynx_pcs_an_restart(struct phylink_pcs *pcs) lynx_pcs_an_restart() argument 210 lynx_pcs_link_up_sgmii(struct mdio_device *pcs, unsigned int neg_mode, int speed, int duplex) lynx_pcs_link_up_sgmii() argument 265 lynx_pcs_link_up_2500basex(struct mdio_device *pcs, unsigned int neg_mode, int speed, int duplex) lynx_pcs_link_up_2500basex() argument 285 lynx_pcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t interface, int speed, int duplex) lynx_pcs_link_up() argument 336 struct phylink_pcs *pcs; lynx_pcs_create_mdiodev() local 369 struct phylink_pcs *pcs; lynx_pcs_create_fwnode() local 392 lynx_pcs_destroy(struct phylink_pcs *pcs) lynx_pcs_destroy() argument [all...] |
H A D | pcs-mtk-lynxi.c | 13 #include <linux/pcs/pcs-mtk-lynxi.h> 75 * @pcs: Phylink PCS structure 82 struct phylink_pcs pcs; member 86 static struct mtk_pcs_lynxi *pcs_to_mtk_pcs_lynxi(struct phylink_pcs *pcs) in pcs_to_mtk_pcs_lynxi() argument 88 return container_of(pcs, struct mtk_pcs_lynxi, pcs); in pcs_to_mtk_pcs_lynxi() 91 static void mtk_pcs_lynxi_get_state(struct phylink_pcs *pcs, in mtk_pcs_lynxi_get_state() argument 94 struct mtk_pcs_lynxi *mpcs = pcs_to_mtk_pcs_lynxi(pcs); in mtk_pcs_lynxi_get_state() 105 static int mtk_pcs_lynxi_config(struct phylink_pcs *pcs, unsigne argument 203 mtk_pcs_lynxi_restart_an(struct phylink_pcs *pcs) mtk_pcs_lynxi_restart_an() argument 210 mtk_pcs_lynxi_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t interface, int speed, int duplex) mtk_pcs_lynxi_link_up() argument 236 mtk_pcs_lynxi_disable(struct phylink_pcs *pcs) mtk_pcs_lynxi_disable() argument 297 mtk_pcs_lynxi_destroy(struct phylink_pcs *pcs) mtk_pcs_lynxi_destroy() argument [all...] |
H A D | pcs-rzn1-miic.c | 13 #include <linux/pcs-rzn1-miic.h> 17 #include <dt-bindings/net/pcs-rzn1-miic.h> 136 * @pcs: PCS structure associated to the port 142 struct phylink_pcs pcs; member 147 static struct miic_port *phylink_pcs_to_miic_port(struct phylink_pcs *pcs) in phylink_pcs_to_miic_port() argument 149 return container_of(pcs, struct miic_port, pcs); in phylink_pcs_to_miic_port() 186 static int miic_config(struct phylink_pcs *pcs, unsigned int mode, in miic_config() argument 190 struct miic_port *miic_port = phylink_pcs_to_miic_port(pcs); in miic_config() 237 static void miic_link_up(struct phylink_pcs *pcs, unsigne argument 271 miic_validate(struct phylink_pcs *pcs, unsigned long *supported, const struct phylink_link_state *state) miic_validate() argument 341 miic_destroy(struct phylink_pcs *pcs) miic_destroy() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/pcs/ |
H A D | pcs-lynx.c | 8 #include <linux/pcs-lynx.h> 31 #define phylink_pcs_to_lynx(pl_pcs) container_of((pl_pcs), struct lynx_pcs, pcs) 33 static void lynx_pcs_get_state_usxgmii(struct mdio_device *pcs, in lynx_pcs_get_state_usxgmii() argument 36 struct mii_bus *bus = pcs->bus; in lynx_pcs_get_state_usxgmii() 37 int addr = pcs->addr; in lynx_pcs_get_state_usxgmii() 56 static void lynx_pcs_get_state_2500basex(struct mdio_device *pcs, in lynx_pcs_get_state_2500basex() argument 59 struct mii_bus *bus = pcs->bus; in lynx_pcs_get_state_2500basex() 60 int addr = pcs->addr; in lynx_pcs_get_state_2500basex() 80 static void lynx_pcs_get_state(struct phylink_pcs *pcs, in lynx_pcs_get_state() argument 83 struct lynx_pcs *lynx = phylink_pcs_to_lynx(pcs); in lynx_pcs_get_state() 111 lynx_pcs_config_sgmii(struct mdio_device *pcs, unsigned int mode, const unsigned long *advertising) lynx_pcs_config_sgmii() argument 140 lynx_pcs_config_usxgmii(struct mdio_device *pcs, unsigned int mode, const unsigned long *advertising) lynx_pcs_config_usxgmii() argument 158 lynx_pcs_config(struct phylink_pcs *pcs, unsigned int mode, phy_interface_t ifmode, const unsigned long *advertising, bool permit) lynx_pcs_config() argument 188 lynx_pcs_link_up_sgmii(struct mdio_device *pcs, unsigned int mode, int speed, int duplex) lynx_pcs_link_up_sgmii() argument 244 lynx_pcs_link_up_2500basex(struct mdio_device *pcs, unsigned int mode, int speed, int duplex) lynx_pcs_link_up_2500basex() argument 266 lynx_pcs_link_up(struct phylink_pcs *pcs, unsigned int mode, phy_interface_t interface, int speed, int duplex) lynx_pcs_link_up() argument 312 lynx_pcs_destroy(struct lynx_pcs *pcs) lynx_pcs_destroy() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/dsa/b53/ |
H A D | b53_serdes.c | 20 static inline struct b53_pcs *pcs_to_b53_pcs(struct phylink_pcs *pcs) in pcs_to_b53_pcs() argument 22 return container_of(pcs, struct b53_pcs, pcs); in pcs_to_b53_pcs() 68 static int b53_serdes_config(struct phylink_pcs *pcs, unsigned int neg_mode, in b53_serdes_config() argument 73 struct b53_device *dev = pcs_to_b53_pcs(pcs)->dev; in b53_serdes_config() 74 u8 lane = pcs_to_b53_pcs(pcs)->lane; in b53_serdes_config() 89 static void b53_serdes_an_restart(struct phylink_pcs *pcs) in b53_serdes_an_restart() argument 91 struct b53_device *dev = pcs_to_b53_pcs(pcs)->dev; in b53_serdes_an_restart() 92 u8 lane = pcs_to_b53_pcs(pcs)->lane; in b53_serdes_an_restart() 102 static void b53_serdes_get_state(struct phylink_pcs *pcs, in b53_serdes_get_state() argument 215 struct b53_pcs *pcs; b53_serdes_init() local [all...] |
/kernel/linux/linux-6.6/drivers/net/dsa/mv88e6xxx/ |
H A D | pcs-639x.c | 129 static struct mv88e639x_pcs *sgmii_pcs_to_mv88e639x_pcs(struct phylink_pcs *pcs) in sgmii_pcs_to_mv88e639x_pcs() argument 131 return container_of(pcs, struct mv88e639x_pcs, sgmii_pcs); in sgmii_pcs_to_mv88e639x_pcs() 183 static int mv88e639x_sgmii_pcs_enable(struct phylink_pcs *pcs) in mv88e639x_sgmii_pcs_enable() argument 185 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); in mv88e639x_sgmii_pcs_enable() 193 static void mv88e639x_sgmii_pcs_disable(struct phylink_pcs *pcs) in mv88e639x_sgmii_pcs_disable() argument 195 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); in mv88e639x_sgmii_pcs_disable() 201 static void mv88e639x_sgmii_pcs_pre_config(struct phylink_pcs *pcs, in mv88e639x_sgmii_pcs_pre_config() argument 204 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); in mv88e639x_sgmii_pcs_pre_config() 240 static int mv88e639x_sgmii_pcs_post_config(struct phylink_pcs *pcs, in mv88e639x_sgmii_pcs_post_config() argument 243 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); in mv88e639x_sgmii_pcs_post_config() 259 mv88e639x_sgmii_pcs_get_state(struct phylink_pcs *pcs, struct phylink_link_state *state) mv88e639x_sgmii_pcs_get_state() argument 297 mv88e639x_sgmii_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t interface, const unsigned long *advertising, bool permit_pause_to_mac) mv88e639x_sgmii_pcs_config() argument 337 mv88e639x_sgmii_pcs_an_restart(struct phylink_pcs *pcs) mv88e639x_sgmii_pcs_an_restart() argument 345 mv88e639x_sgmii_pcs_link_up(struct phylink_pcs *pcs, unsigned int mode, phy_interface_t interface, int speed, int duplex) mv88e639x_sgmii_pcs_link_up() argument 379 xg_pcs_to_mv88e639x_pcs(struct phylink_pcs *pcs) xg_pcs_to_mv88e639x_pcs() argument 397 mv88e639x_xg_pcs_get_state(struct phylink_pcs *pcs, struct phylink_link_state *state) mv88e639x_xg_pcs_get_state() argument 436 mv88e639x_xg_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t interface, const unsigned long *advertising, bool permit_pause_to_mac) mv88e639x_xg_pcs_config() argument 510 mv88e6390_xg_pcs_enable(struct phylink_pcs *pcs) mv88e6390_xg_pcs_enable() argument 524 mv88e6390_xg_pcs_disable(struct phylink_pcs *pcs) mv88e6390_xg_pcs_disable() argument 756 mv88e6393x_sgmii_pcs_disable(struct phylink_pcs *pcs) mv88e6393x_sgmii_pcs_disable() argument 765 mv88e6393x_sgmii_pcs_pre_config(struct phylink_pcs *pcs, phy_interface_t interface) mv88e6393x_sgmii_pcs_pre_config() argument 775 mv88e6393x_sgmii_pcs_post_config(struct phylink_pcs *pcs, phy_interface_t interface) mv88e6393x_sgmii_pcs_post_config() argument 843 mv88e6393x_xg_pcs_enable(struct phylink_pcs *pcs) mv88e6393x_xg_pcs_enable() argument 852 mv88e6393x_xg_pcs_disable(struct phylink_pcs *pcs) mv88e6393x_xg_pcs_disable() argument 862 mv88e6393x_xg_pcs_pre_config(struct phylink_pcs *pcs, phy_interface_t interface) mv88e6393x_xg_pcs_pre_config() argument 871 mv88e6393x_xg_pcs_post_config(struct phylink_pcs *pcs, phy_interface_t interface) mv88e6393x_xg_pcs_post_config() argument 891 mv88e6393x_xg_pcs_get_state(struct phylink_pcs *pcs, struct phylink_link_state *state) mv88e6393x_xg_pcs_get_state() argument [all...] |
H A D | pcs-6352.c | 33 static struct marvell_c22_pcs *pcs_to_marvell_c22_pcs(struct phylink_pcs *pcs) in pcs_to_marvell_c22_pcs() argument 35 return container_of(pcs, struct marvell_c22_pcs, phylink_pcs); in pcs_to_marvell_c22_pcs() 140 static int marvell_c22_pcs_enable(struct phylink_pcs *pcs) in marvell_c22_pcs_enable() argument 142 struct marvell_c22_pcs *mpcs = pcs_to_marvell_c22_pcs(pcs); in marvell_c22_pcs_enable() 152 static void marvell_c22_pcs_disable(struct phylink_pcs *pcs) in marvell_c22_pcs_disable() argument 154 struct marvell_c22_pcs *mpcs = pcs_to_marvell_c22_pcs(pcs); in marvell_c22_pcs_disable() 160 static void marvell_c22_pcs_get_state(struct phylink_pcs *pcs, in marvell_c22_pcs_get_state() argument 163 struct marvell_c22_pcs *mpcs = pcs_to_marvell_c22_pcs(pcs); in marvell_c22_pcs_get_state() 184 static int marvell_c22_pcs_config(struct phylink_pcs *pcs, in marvell_c22_pcs_config() argument 190 struct marvell_c22_pcs *mpcs = pcs_to_marvell_c22_pcs(pcs); in marvell_c22_pcs_config() 226 marvell_c22_pcs_an_restart(struct phylink_pcs *pcs) marvell_c22_pcs_an_restart() argument 233 marvell_c22_pcs_link_up(struct phylink_pcs *pcs, unsigned int mode, phy_interface_t interface, int speed, int duplex) marvell_c22_pcs_link_up() argument 363 struct phylink_pcs *pcs; mv88e6352_pcs_teardown() local [all...] |
H A D | pcs-6185.c | 24 static struct mv88e6185_pcs *pcs_to_mv88e6185_pcs(struct phylink_pcs *pcs) in pcs_to_mv88e6185_pcs() argument 26 return container_of(pcs, struct mv88e6185_pcs, phylink_pcs); in pcs_to_mv88e6185_pcs() 57 static void mv88e6185_pcs_get_state(struct phylink_pcs *pcs, in mv88e6185_pcs_get_state() argument 60 struct mv88e6185_pcs *mpcs = pcs_to_mv88e6185_pcs(pcs); in mv88e6185_pcs_get_state() 98 static int mv88e6185_pcs_config(struct phylink_pcs *pcs, unsigned int mode, in mv88e6185_pcs_config() argument 106 static void mv88e6185_pcs_an_restart(struct phylink_pcs *pcs) in mv88e6185_pcs_an_restart() argument
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | phylink.h | 512 int (*pcs_validate)(struct phylink_pcs *pcs, unsigned long *supported, 514 int (*pcs_enable)(struct phylink_pcs *pcs); 515 void (*pcs_disable)(struct phylink_pcs *pcs); 516 void (*pcs_pre_config)(struct phylink_pcs *pcs, 518 int (*pcs_post_config)(struct phylink_pcs *pcs, 520 void (*pcs_get_state)(struct phylink_pcs *pcs, 522 int (*pcs_config)(struct phylink_pcs *pcs, unsigned int neg_mode, 526 void (*pcs_an_restart)(struct phylink_pcs *pcs); 527 void (*pcs_link_up)(struct phylink_pcs *pcs, unsigned int neg_mode, 534 * @pcs [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | phylink.h | 352 void (*pcs_get_state)(struct phylink_pcs *pcs, 354 int (*pcs_config)(struct phylink_pcs *pcs, unsigned int mode, 358 void (*pcs_an_restart)(struct phylink_pcs *pcs); 359 void (*pcs_link_up)(struct phylink_pcs *pcs, unsigned int mode, 366 * @pcs: a pointer to a &struct phylink_pcs. 379 void pcs_get_state(struct phylink_pcs *pcs, 384 * @pcs: a pointer to a &struct phylink_pcs. 404 int pcs_config(struct phylink_pcs *pcs, unsigned int mode, 410 * @pcs: a pointer to a &struct phylink_pcs. 415 void pcs_an_restart(struct phylink_pcs *pcs); [all...] |
/kernel/linux/linux-6.6/drivers/net/phy/ |
H A D | phylink.c | 51 struct phylink_pcs *pcs; member 660 struct phylink_pcs *pcs; in phylink_validate_mac_and_pcs() local 665 pcs = pl->mac_ops->mac_select_pcs(pl->config, state->interface); in phylink_validate_mac_and_pcs() 666 if (IS_ERR(pcs)) in phylink_validate_mac_and_pcs() 667 return PTR_ERR(pcs); in phylink_validate_mac_and_pcs() 669 pcs = pl->pcs; in phylink_validate_mac_and_pcs() 672 if (pcs) { in phylink_validate_mac_and_pcs() 677 if (!pcs->ops) { in phylink_validate_mac_and_pcs() 685 if (pcs in phylink_validate_mac_and_pcs() 1022 phylink_pcs_pre_config(struct phylink_pcs *pcs, phy_interface_t interface) phylink_pcs_pre_config() argument 1029 phylink_pcs_post_config(struct phylink_pcs *pcs, phy_interface_t interface) phylink_pcs_post_config() argument 1040 phylink_pcs_disable(struct phylink_pcs *pcs) phylink_pcs_disable() argument 1046 phylink_pcs_enable(struct phylink_pcs *pcs) phylink_pcs_enable() argument 1056 phylink_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, const struct phylink_link_state *state, bool permit_pause_to_mac) phylink_pcs_config() argument 1067 phylink_pcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t interface, int speed, int duplex) phylink_pcs_link_up() argument 1122 struct phylink_pcs *pcs = NULL; phylink_major_config() local 2040 phylink_pcs_change(struct phylink_pcs *pcs, bool up) phylink_pcs_change() argument 3581 phylink_mii_c22_pcs_get_state(struct mdio_device *pcs, struct phylink_link_state *state) phylink_mii_c22_pcs_get_state() argument 3649 phylink_mii_c22_pcs_config(struct mdio_device *pcs, phy_interface_t interface, const unsigned long *advertising, unsigned int neg_mode) phylink_mii_c22_pcs_config() argument 3692 phylink_mii_c22_pcs_an_restart(struct mdio_device *pcs) phylink_mii_c22_pcs_an_restart() argument 3704 phylink_mii_c45_pcs_get_state(struct mdio_device *pcs, struct phylink_link_state *state) phylink_mii_c45_pcs_get_state() argument [all...] |
/kernel/linux/linux-5.10/drivers/clocksource/ |
H A D | timer-pistachio.c | 73 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clocksource_read_cycles() local 82 raw_spin_lock_irqsave(&pcs->lock, flags); in pistachio_clocksource_read_cycles() 83 overflw = gpt_readl(pcs->base, TIMER_CURRENT_OVERFLOW_VALUE, 0); in pistachio_clocksource_read_cycles() 84 counter = gpt_readl(pcs->base, TIMER_CURRENT_VALUE, 0); in pistachio_clocksource_read_cycles() 85 raw_spin_unlock_irqrestore(&pcs->lock, flags); in pistachio_clocksource_read_cycles() 98 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clksrc_set_mode() local 101 val = gpt_readl(pcs->base, TIMER_CFG, timeridx); in pistachio_clksrc_set_mode() 107 gpt_writel(pcs->base, val, TIMER_CFG, timeridx); in pistachio_clksrc_set_mode() 112 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clksrc_enable() local 116 gpt_writel(pcs in pistachio_clksrc_enable() [all...] |
/kernel/linux/linux-6.6/drivers/clocksource/ |
H A D | timer-pistachio.c | 70 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clocksource_read_cycles() local 80 raw_spin_lock_irqsave(&pcs->lock, flags); in pistachio_clocksource_read_cycles() 81 overflow = gpt_readl(pcs->base, TIMER_CURRENT_OVERFLOW_VALUE, 0); in pistachio_clocksource_read_cycles() 82 counter = gpt_readl(pcs->base, TIMER_CURRENT_VALUE, 0); in pistachio_clocksource_read_cycles() 83 raw_spin_unlock_irqrestore(&pcs->lock, flags); in pistachio_clocksource_read_cycles() 96 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clksrc_set_mode() local 99 val = gpt_readl(pcs->base, TIMER_CFG, timeridx); in pistachio_clksrc_set_mode() 105 gpt_writel(pcs->base, val, TIMER_CFG, timeridx); in pistachio_clksrc_set_mode() 110 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clksrc_enable() local 114 gpt_writel(pcs in pistachio_clksrc_enable() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_phylink.c | 85 static struct lan966x_port *lan966x_pcs_to_port(struct phylink_pcs *pcs) in lan966x_pcs_to_port() argument 87 return container_of(pcs, struct lan966x_port, phylink_pcs); in lan966x_pcs_to_port() 90 static void lan966x_pcs_get_state(struct phylink_pcs *pcs, in lan966x_pcs_get_state() argument 93 struct lan966x_port *port = lan966x_pcs_to_port(pcs); in lan966x_pcs_get_state() 98 static int lan966x_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in lan966x_pcs_config() argument 103 struct lan966x_port *port = lan966x_pcs_to_port(pcs); in lan966x_pcs_config() 120 static void lan966x_pcs_aneg_restart(struct phylink_pcs *pcs) in lan966x_pcs_aneg_restart() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_phylink.c | 75 static struct sparx5_port *sparx5_pcs_to_port(struct phylink_pcs *pcs) in sparx5_pcs_to_port() argument 77 return container_of(pcs, struct sparx5_port, phylink_pcs); in sparx5_pcs_to_port() 80 static void sparx5_pcs_get_state(struct phylink_pcs *pcs, in sparx5_pcs_get_state() argument 83 struct sparx5_port *port = sparx5_pcs_to_port(pcs); in sparx5_pcs_get_state() 94 static int sparx5_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in sparx5_pcs_config() argument 99 struct sparx5_port *port = sparx5_pcs_to_port(pcs); in sparx5_pcs_config() 129 static void sparx5_pcs_aneg_restart(struct phylink_pcs *pcs) in sparx5_pcs_aneg_restart() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-mac.c | 5 #include <linux/pcs-lynx.h> 157 return mac->pcs; in dpaa2_mac_select_pcs() 256 struct phylink_pcs *pcs; in dpaa2_pcs_create() local 258 node = fwnode_find_reference(dpmac_node, "pcs-handle", 0); in dpaa2_pcs_create() 261 netdev_warn(mac->net_dev, "pcs-handle node not found\n"); in dpaa2_pcs_create() 265 pcs = lynx_pcs_create_fwnode(node); in dpaa2_pcs_create() 268 if (pcs == ERR_PTR(-EPROBE_DEFER)) { in dpaa2_pcs_create() 273 if (pcs == ERR_PTR(-ENODEV)) { in dpaa2_pcs_create() 274 netdev_err(mac->net_dev, "pcs-handle node not available\n"); in dpaa2_pcs_create() 275 return PTR_ERR(pcs); in dpaa2_pcs_create() [all...] |
/kernel/linux/linux-6.6/drivers/phy/qualcomm/ |
H A D | phy-qcom-qmp-ufs.c | 24 #include "phy-qcom-qmp-pcs-ufs-v2.h" 25 #include "phy-qcom-qmp-pcs-ufs-v3.h" 26 #include "phy-qcom-qmp-pcs-ufs-v4.h" 27 #include "phy-qcom-qmp-pcs-ufs-v5.h" 28 #include "phy-qcom-qmp-pcs-ufs-v6.h" 703 u16 pcs; member 711 /* Init sequence for PHY blocks - serdes, tx, rx, pcs */ 718 const struct qmp_phy_init_tbl *pcs; member 728 /* Main init sequence for PHY blocks - serdes, tx, rx, pcs */ 755 void __iomem *pcs; member 1217 void __iomem *pcs = qmp->pcs; qmp_ufs_pcs_init() local 1238 void __iomem *pcs = qmp->pcs; qmp_ufs_com_init() local 1319 void __iomem *pcs = qmp->pcs; qmp_ufs_power_on() local [all...] |
/kernel/linux/linux-5.10/drivers/net/fddi/skfp/ |
H A D | pcmplc.c | 1853 struct pcm_state *pcs ; in pcm_get_state() local 1860 for (i = 0, phy = smc->y, pcs = state->pcm_state ; i < NUMPHYS ; in pcm_get_state() 1861 i++ , phy++, pcs++ ) { in pcm_get_state() 1863 pcs->pcm_type = (u_char) mib->fddiPORTMy_Type ; in pcm_get_state() 1864 pcs->pcm_state = (u_char) mib->fddiPORTPCMState ; in pcm_get_state() 1865 pcs->pcm_mode = phy->pc_mode ; in pcm_get_state() 1866 pcs->pcm_neighbor = (u_char) mib->fddiPORTNeighborType ; in pcm_get_state() 1867 pcs->pcm_bsf = mib->fddiPORTBS_Flag ; in pcm_get_state() 1868 pcs->pcm_lsf = phy->ls_flag ; in pcm_get_state() 1869 pcs in pcm_get_state() 1886 int pcs ; get_pcm_state() local 1930 char *pcs ; get_pcmstate() local [all...] |
/kernel/linux/linux-6.6/drivers/net/fddi/skfp/ |
H A D | pcmplc.c | 1849 struct pcm_state *pcs ; in pcm_get_state() local 1856 for (i = 0, phy = smc->y, pcs = state->pcm_state ; i < NUMPHYS ; in pcm_get_state() 1857 i++ , phy++, pcs++ ) { in pcm_get_state() 1859 pcs->pcm_type = (u_char) mib->fddiPORTMy_Type ; in pcm_get_state() 1860 pcs->pcm_state = (u_char) mib->fddiPORTPCMState ; in pcm_get_state() 1861 pcs->pcm_mode = phy->pc_mode ; in pcm_get_state() 1862 pcs->pcm_neighbor = (u_char) mib->fddiPORTNeighborType ; in pcm_get_state() 1863 pcs->pcm_bsf = mib->fddiPORTBS_Flag ; in pcm_get_state() 1864 pcs->pcm_lsf = phy->ls_flag ; in pcm_get_state() 1865 pcs in pcm_get_state() 1882 int pcs ; get_pcm_state() local 1926 char *pcs ; get_pcmstate() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-mac.c | 263 node = of_parse_phandle(dpmac_node, "pcs-handle", 0); in dpaa2_pcs_create() 266 netdev_warn(mac->net_dev, "pcs-handle node not found\n"); in dpaa2_pcs_create() 271 netdev_err(mac->net_dev, "pcs-handle node not available\n"); in dpaa2_pcs_create() 281 mac->pcs = lynx_pcs_create(mdiodev); in dpaa2_pcs_create() 282 if (!mac->pcs) { in dpaa2_pcs_create() 293 struct lynx_pcs *pcs = mac->pcs; in dpaa2_pcs_destroy() local 295 if (pcs) { in dpaa2_pcs_destroy() 296 struct device *dev = &pcs->mdio->dev; in dpaa2_pcs_destroy() 297 lynx_pcs_destroy(pcs); in dpaa2_pcs_destroy() [all...] |
/kernel/linux/linux-6.6/drivers/hwmon/peci/ |
H A D | cputemp.c | 90 u32 pcs; in update_temp_target() local 96 ret = peci_pcs_read(priv->peci_dev, PECI_PCS_TEMP_TARGET, 0, &pcs); in update_temp_target() 101 FIELD_GET(TEMP_TARGET_REF_TEMP_MASK, pcs) * MILLIDEGREE_PER_DEGREE; in update_temp_target() 103 tcontrol_margin = FIELD_GET(TEMP_TARGET_FAN_TEMP_MASK, pcs); in update_temp_target() 107 tthrottle_offset = FIELD_GET(TEMP_TARGET_TJ_OFFSET_MASK, pcs) * MILLIDEGREE_PER_DEGREE; in update_temp_target() 217 u32 pcs; in get_dts() local 223 ret = peci_pcs_read(priv->peci_dev, PECI_PCS_THERMAL_MARGIN, 0, &pcs); in get_dts() 227 thermal_margin = FIELD_GET(DTS_MARGIN_MASK, pcs); in get_dts() 255 u32 pcs; in get_core_temp() local 261 ret = peci_pcs_read(priv->peci_dev, PECI_PCS_MODULE_TEMP, core_index, &pcs); in get_core_temp() [all...] |