Lines Matching defs:val
58 void (*write) (struct phy_device* phydev, int reg, u16 val);
76 static void psb6970_mii_write(struct phy_device *phydev, int reg, u16 val)
78 phydev->bus->write(phydev->bus, PHYADDR(reg), val);
83 struct switch_val *val)
86 priv->vlan = !!val->value.i;
92 struct switch_val *val)
95 val->value.i = priv->vlan;
120 struct switch_val *val)
123 priv->vlan_id[val->port_vlan] = val->value.i;
129 struct switch_val *val)
132 val->value.i = priv->vlan_id[val->port_vlan];
160 static int psb6970_get_ports(struct switch_dev *dev, struct switch_val *val)
163 u8 ports = priv->vlan_table[val->port_vlan];
166 val->len = 0;
173 p = &val->value.ports[val->len++];
183 static int psb6970_set_ports(struct switch_dev *dev, struct switch_val *val)
186 u8 *vt = &priv->vlan_table[val->port_vlan];
190 for (i = 0; i < val->len; i++) {
191 struct switch_port *p = &val->value.ports[i];
197 priv->pvid[p->id] = val->port_vlan;
202 if (j == val->port_vlan)