/linux-master/drivers/ata/ |
H A D | ata_piix.c | 1344 u16 pcs, new_pcs; local 1346 pci_read_config_word(pdev, ICH5_PCS, &pcs); 1348 new_pcs = pcs | map_db->port_enable; 1350 if (new_pcs != pcs) {
|
/linux-master/drivers/block/drbd/ |
H A D | drbd_state.c | 2113 static void conn_old_common_state(struct drbd_connection *connection, union drbd_state *pcs, enum chg_state_flags *pf) argument 2156 (*pcs).i = cs.i;
|
/linux-master/drivers/clocksource/ |
H A D | timer-pistachio.c | 70 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); local 80 raw_spin_lock_irqsave(&pcs->lock, flags); 81 overflow = gpt_readl(pcs->base, TIMER_CURRENT_OVERFLOW_VALUE, 0); 82 counter = gpt_readl(pcs->base, TIMER_CURRENT_VALUE, 0); 83 raw_spin_unlock_irqrestore(&pcs->lock, flags); 96 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); local 99 val = gpt_readl(pcs->base, TIMER_CFG, timeridx); 105 gpt_writel(pcs->base, val, TIMER_CFG, timeridx); 110 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); local 114 gpt_writel(pcs [all...] |
/linux-master/drivers/hwmon/peci/ |
H A D | cputemp.c | 90 u32 pcs; local 96 ret = peci_pcs_read(priv->peci_dev, PECI_PCS_TEMP_TARGET, 0, &pcs); 101 FIELD_GET(TEMP_TARGET_REF_TEMP_MASK, pcs) * MILLIDEGREE_PER_DEGREE; 103 tcontrol_margin = FIELD_GET(TEMP_TARGET_FAN_TEMP_MASK, pcs); 107 tthrottle_offset = FIELD_GET(TEMP_TARGET_TJ_OFFSET_MASK, pcs) * MILLIDEGREE_PER_DEGREE; 217 u32 pcs; local 223 ret = peci_pcs_read(priv->peci_dev, PECI_PCS_THERMAL_MARGIN, 0, &pcs); 227 thermal_margin = FIELD_GET(DTS_MARGIN_MASK, pcs); 255 u32 pcs; local 261 ret = peci_pcs_read(priv->peci_dev, PECI_PCS_MODULE_TEMP, core_index, &pcs); [all...] |
H A D | dimmtemp.c | 228 u32 pcs; local 240 ret = peci_pcs_read(priv->peci_dev, PECI_PCS_DDR_DIMM_TEMP, chan_rank, &pcs); 257 if (__dimm_temp(pcs, dimm_idx))
|
/linux-master/drivers/net/ |
H A D | Makefile | 29 obj-y += pcs/
|
/linux-master/drivers/net/dsa/b53/ |
H A D | b53_priv.h | 87 struct phylink_pcs pcs; member in struct:b53_pcs 152 struct b53_pcs pcs[B53_N_PCS]; member in struct:b53_device
|
H A D | b53_serdes.c | 20 static inline struct b53_pcs *pcs_to_b53_pcs(struct phylink_pcs *pcs) argument 22 return container_of(pcs, struct b53_pcs, pcs); 68 static int b53_serdes_config(struct phylink_pcs *pcs, unsigned int neg_mode, argument 73 struct b53_device *dev = pcs_to_b53_pcs(pcs)->dev; 74 u8 lane = pcs_to_b53_pcs(pcs)->lane; 89 static void b53_serdes_an_restart(struct phylink_pcs *pcs) argument 91 struct b53_device *dev = pcs_to_b53_pcs(pcs)->dev; 92 u8 lane = pcs_to_b53_pcs(pcs)->lane; 102 static void b53_serdes_get_state(struct phylink_pcs *pcs, argument 215 struct b53_pcs *pcs; local [all...] |
/linux-master/drivers/net/dsa/ |
H A D | mt7530-mdio.c | 6 #include <linux/pcs/pcs-mtk-lynxi.h> 87 struct phylink_pcs *pcs; local 117 pcs = mtk_pcs_lynxi_create(priv->dev, regmap, 119 if (!pcs) { 123 priv->ports[5 + i].sgmii_pcs = pcs;
|
H A D | mt7530.c | 27 static struct mt753x_pcs *pcs_to_mt753x_pcs(struct phylink_pcs *pcs) argument 29 return container_of(pcs, struct mt753x_pcs, pcs); 2868 return &priv->pcs[port].pcs; 2958 static int mt753x_pcs_validate(struct phylink_pcs *pcs, argument 2970 static void mt7530_pcs_get_state(struct phylink_pcs *pcs, argument 2973 struct mt7530_priv *priv = pcs_to_mt753x_pcs(pcs)->priv; 2974 int port = pcs_to_mt753x_pcs(pcs)->port; 3005 static int mt753x_pcs_config(struct phylink_pcs *pcs, unsigne argument 3013 mt7530_pcs_an_restart(struct phylink_pcs *pcs) argument [all...] |
H A D | mt7530.h | 716 struct phylink_pcs pcs; member in struct:mt753x_pcs 799 struct mt753x_pcs pcs[MT7530_NUM_PORTS]; member in struct:mt7530_priv
|
H A D | rzn1_a5psw.c | 248 if (!dsa_port_is_cpu(dp) && a5psw->pcs[port]) 249 return a5psw->pcs[port]; 1136 for (i = 0; i < ARRAY_SIZE(a5psw->pcs); i++) { 1137 if (a5psw->pcs[i]) 1138 miic_destroy(a5psw->pcs[i]); 1145 struct phylink_pcs *pcs; local 1154 pcs_node = of_parse_phandle(port, "pcs-handle", 0); 1163 if (reg >= ARRAY_SIZE(a5psw->pcs)) { 1168 pcs = miic_create(a5psw->dev, pcs_node); 1169 if (IS_ERR(pcs)) { [all...] |
H A D | rzn1_a5psw.h | 15 #include <linux/pcs-rzn1-miic.h> 242 * @pcs: Array of PCS connected to the switch ports (not for the CPU) 256 struct phylink_pcs *pcs[A5PSW_PORTS_NUM - 1]; member in struct:a5psw
|
/linux-master/drivers/net/dsa/mv88e6xxx/ |
H A D | Makefile | 12 mv88e6xxx-objs += pcs-6185.o 13 mv88e6xxx-objs += pcs-6352.o 14 mv88e6xxx-objs += pcs-639x.o
|
H A D | chip.c | 846 struct phylink_pcs *pcs = ERR_PTR(-EOPNOTSUPP); local 849 pcs = chip->info->ops->pcs_ops->pcs_select(chip, port, 852 return pcs;
|
H A D | pcs-6185.c | 24 static struct mv88e6185_pcs *pcs_to_mv88e6185_pcs(struct phylink_pcs *pcs) argument 26 return container_of(pcs, struct mv88e6185_pcs, phylink_pcs); 57 static void mv88e6185_pcs_get_state(struct phylink_pcs *pcs, argument 60 struct mv88e6185_pcs *mpcs = pcs_to_mv88e6185_pcs(pcs); 98 static int mv88e6185_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, argument 106 static void mv88e6185_pcs_an_restart(struct phylink_pcs *pcs) argument
|
H A D | pcs-6352.c | 33 static struct marvell_c22_pcs *pcs_to_marvell_c22_pcs(struct phylink_pcs *pcs) argument 35 return container_of(pcs, struct marvell_c22_pcs, phylink_pcs); 140 static int marvell_c22_pcs_enable(struct phylink_pcs *pcs) argument 142 struct marvell_c22_pcs *mpcs = pcs_to_marvell_c22_pcs(pcs); 152 static void marvell_c22_pcs_disable(struct phylink_pcs *pcs) argument 154 struct marvell_c22_pcs *mpcs = pcs_to_marvell_c22_pcs(pcs); 160 static void marvell_c22_pcs_get_state(struct phylink_pcs *pcs, argument 163 struct marvell_c22_pcs *mpcs = pcs_to_marvell_c22_pcs(pcs); 184 static int marvell_c22_pcs_config(struct phylink_pcs *pcs, argument 190 struct marvell_c22_pcs *mpcs = pcs_to_marvell_c22_pcs(pcs); 226 marvell_c22_pcs_an_restart(struct phylink_pcs *pcs) argument 233 marvell_c22_pcs_link_up(struct phylink_pcs *pcs, unsigned int mode, phy_interface_t interface, int speed, int duplex) argument 363 struct phylink_pcs *pcs; local [all...] |
H A D | pcs-639x.c | 129 static struct mv88e639x_pcs *sgmii_pcs_to_mv88e639x_pcs(struct phylink_pcs *pcs) argument 131 return container_of(pcs, struct mv88e639x_pcs, sgmii_pcs); 183 static int mv88e639x_sgmii_pcs_enable(struct phylink_pcs *pcs) argument 185 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); 193 static void mv88e639x_sgmii_pcs_disable(struct phylink_pcs *pcs) argument 195 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); 201 static void mv88e639x_sgmii_pcs_pre_config(struct phylink_pcs *pcs, argument 204 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); 240 static int mv88e639x_sgmii_pcs_post_config(struct phylink_pcs *pcs, argument 243 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); 259 mv88e639x_sgmii_pcs_get_state(struct phylink_pcs *pcs, struct phylink_link_state *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) argument 337 mv88e639x_sgmii_pcs_an_restart(struct phylink_pcs *pcs) argument 345 mv88e639x_sgmii_pcs_link_up(struct phylink_pcs *pcs, unsigned int mode, phy_interface_t interface, int speed, int duplex) argument 379 xg_pcs_to_mv88e639x_pcs(struct phylink_pcs *pcs) argument 397 mv88e639x_xg_pcs_get_state(struct phylink_pcs *pcs, struct phylink_link_state *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) argument 510 mv88e6390_xg_pcs_enable(struct phylink_pcs *pcs) argument 524 mv88e6390_xg_pcs_disable(struct phylink_pcs *pcs) argument 756 mv88e6393x_sgmii_pcs_disable(struct phylink_pcs *pcs) argument 765 mv88e6393x_sgmii_pcs_pre_config(struct phylink_pcs *pcs, phy_interface_t interface) argument 775 mv88e6393x_sgmii_pcs_post_config(struct phylink_pcs *pcs, phy_interface_t interface) argument 843 mv88e6393x_xg_pcs_enable(struct phylink_pcs *pcs) argument 852 mv88e6393x_xg_pcs_disable(struct phylink_pcs *pcs) argument 862 mv88e6393x_xg_pcs_pre_config(struct phylink_pcs *pcs, phy_interface_t interface) argument 871 mv88e6393x_xg_pcs_post_config(struct phylink_pcs *pcs, phy_interface_t interface) argument 891 mv88e6393x_xg_pcs_get_state(struct phylink_pcs *pcs, struct phylink_link_state *state) argument [all...] |
/linux-master/drivers/net/dsa/ocelot/ |
H A D | felix.c | 1070 struct phylink_pcs *pcs = NULL; local 1072 if (felix->pcs && felix->pcs[port]) 1073 pcs = felix->pcs[port]; 1075 return pcs;
|
H A D | felix.h | 93 struct phylink_pcs **pcs; member in struct:felix
|
H A D | felix_vsc9959.c | 15 #include <linux/pcs-lynx.h> 970 felix->pcs = devm_kcalloc(dev, felix->info->num_ports, 973 if (!felix->pcs) { 1036 felix->pcs[port] = phylink_pcs; 1050 struct phylink_pcs *phylink_pcs = felix->pcs[port];
|
H A D | seville_vsc9953.c | 13 #include <linux/pcs-lynx.h> 887 felix->pcs = devm_kcalloc(dev, felix->info->num_ports, 890 if (!felix->pcs) { 928 felix->pcs[port] = phylink_pcs; 942 struct phylink_pcs *phylink_pcs = felix->pcs[port];
|
/linux-master/drivers/net/dsa/qca/ |
H A D | qca8k-8xxx.c | 1290 struct phylink_pcs *pcs = NULL; local 1297 pcs = &priv->pcs_port_0.pcs; 1301 pcs = &priv->pcs_port_6.pcs; 1310 return pcs; 1478 static struct qca8k_pcs *pcs_to_qca8k_pcs(struct phylink_pcs *pcs) argument 1480 return container_of(pcs, struct qca8k_pcs, pcs); 1483 static void qca8k_pcs_get_state(struct phylink_pcs *pcs, argument 1523 qca8k_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t interface, const unsigned long *advertising, bool permit_pause_to_mac) argument 1612 qca8k_pcs_an_restart(struct phylink_pcs *pcs) argument [all...] |
H A D | qca8k.h | 426 struct phylink_pcs pcs; member in struct:qca8k_pcs
|
/linux-master/drivers/net/dsa/sja1105/ |
H A D | sja1105_main.c | 18 #include <linux/pcs/pcs-xpcs.h> 1367 return &xpcs->pcs; 2404 xpcs_link_up(&xpcs->pcs, neg_mode, priv->phy_mode[i],
|