Lines Matching defs:input
69 static inline u32 zmii_mode_mask(int mode, int input)
73 return ZMII_FER_MII(input);
75 return ZMII_FER_RMII(input);
77 return ZMII_FER_SMII(input);
83 int zmii_attach(struct platform_device *ofdev, int input,
89 ZMII_DBG(dev, "init(%d, %d)" NL, input, *mode);
129 "%pOF: invalid mode %d specified for input %d\n",
130 ofdev->dev.of_node, *mode, input);
141 /* Enable this input */
142 out_be32(&p->fer, in_be32(&p->fer) | zmii_mode_mask(dev->mode, input));
150 void zmii_get_mdio(struct platform_device *ofdev, int input)
155 ZMII_DBG2(dev, "get_mdio(%d)" NL, input);
160 out_be32(&dev->base->fer, fer | ZMII_FER_MDI(input));
163 void zmii_put_mdio(struct platform_device *ofdev, int input)
167 ZMII_DBG2(dev, "put_mdio(%d)" NL, input);
172 void zmii_set_speed(struct platform_device *ofdev, int input, int speed)
181 ZMII_DBG(dev, "speed(%d, %d)" NL, input, speed);
184 ssr |= ZMII_SSR_SP(input);
186 ssr &= ~ZMII_SSR_SP(input);
193 void zmii_detach(struct platform_device *ofdev, int input)
201 ZMII_DBG(dev, "detach(%d)" NL, input);
203 /* Disable this input */
205 in_be32(&dev->base->fer) & ~zmii_mode_mask(dev->mode, input));