Lines Matching defs:input
67 static inline u32 zmii_mode_mask(int mode, int input)
71 return ZMII_FER_MII(input);
73 return ZMII_FER_RMII(input);
75 return ZMII_FER_SMII(input);
81 int zmii_attach(struct platform_device *ofdev, int input,
87 ZMII_DBG(dev, "init(%d, %d)" NL, input, *mode);
127 "%pOF: invalid mode %d specified for input %d\n",
128 ofdev->dev.of_node, *mode, input);
139 /* Enable this input */
140 out_be32(&p->fer, in_be32(&p->fer) | zmii_mode_mask(dev->mode, input));
148 void zmii_get_mdio(struct platform_device *ofdev, int input)
153 ZMII_DBG2(dev, "get_mdio(%d)" NL, input);
158 out_be32(&dev->base->fer, fer | ZMII_FER_MDI(input));
161 void zmii_put_mdio(struct platform_device *ofdev, int input)
165 ZMII_DBG2(dev, "put_mdio(%d)" NL, input);
170 void zmii_set_speed(struct platform_device *ofdev, int input, int speed)
179 ZMII_DBG(dev, "speed(%d, %d)" NL, input, speed);
182 ssr |= ZMII_SSR_SP(input);
184 ssr &= ~ZMII_SSR_SP(input);
191 void zmii_detach(struct platform_device *ofdev, int input)
199 ZMII_DBG(dev, "detach(%d)" NL, input);
201 /* Disable this input */
203 in_be32(&dev->base->fer) & ~zmii_mode_mask(dev->mode, input));