Lines Matching defs:input
65 static inline u32 zmii_mode_mask(int mode, int input)
69 return ZMII_FER_MII(input);
71 return ZMII_FER_RMII(input);
73 return ZMII_FER_SMII(input);
79 static int __init zmii_init(struct ocp_device *ocpdev, int input, int *mode)
84 ZMII_DBG("%d: init(%d, %d)" NL, ocpdev->def->index, input, *mode);
149 "zmii%d: invalid mode %d specified for input %d\n",
150 ocpdev->def->index, *mode, input);
160 /* Enable this input */
161 out_be32(&p->fer, in_be32(&p->fer) | zmii_mode_mask(dev->mode, input));
193 void __zmii_enable_mdio(struct ocp_device *ocpdev, int input)
198 ZMII_DBG2("%d: mdio(%d)" NL, ocpdev->def->index, input);
200 out_be32(&dev->base->fer, fer | ZMII_FER_MDI(input));
203 void __zmii_set_speed(struct ocp_device *ocpdev, int input, int speed)
208 ZMII_DBG("%d: speed(%d, %d)" NL, ocpdev->def->index, input, speed);
211 ssr |= ZMII_SSR_SP(input);
213 ssr &= ~ZMII_SSR_SP(input);
218 void __zmii_fini(struct ocp_device *ocpdev, int input)
223 ZMII_DBG("%d: fini(%d)" NL, ocpdev->def->index, input);
225 /* Disable this input */
227 in_be32(&dev->base->fer) & ~zmii_mode_mask(dev->mode, input));