Lines Matching defs:input
63 static inline u32 rgmii_mode_mask(int mode, int input)
67 return RGMII_FER_RGMII(input);
69 return RGMII_FER_TBI(input);
71 return RGMII_FER_GMII(input);
73 return RGMII_FER_RTBI(input);
79 static int __init rgmii_init(struct ocp_device *ocpdev, int input, int mode)
84 RGMII_DBG("%d: init(%d, %d)" NL, ocpdev->def->index, input, mode);
113 /* Enable this input */
114 out_be32(&p->fer, in_be32(&p->fer) | rgmii_mode_mask(mode, input));
116 printk(KERN_NOTICE "rgmii%d: input %d in %s mode\n",
117 ocpdev->def->index, input, rgmii_mode_name(mode));
150 void rgmii_set_speed(struct ocp_device *ocpdev, int input, int speed)
153 u32 ssr = in_be32(&dev->base->ssr) & ~RGMII_SSR_MASK(input);
155 RGMII_DBG("%d: speed(%d, %d)" NL, ocpdev->def->index, input, speed);
158 ssr |= RGMII_SSR_1000(input);
160 ssr |= RGMII_SSR_100(input);
165 void __rgmii_fini(struct ocp_device *ocpdev, int input)
170 RGMII_DBG("%d: fini(%d)" NL, ocpdev->def->index, input);
172 /* Disable this input */
174 in_be32(&dev->base->fer) & ~RGMII_FER_MASK(input));