Lines Matching defs:mach
51 #include <asm/mach-types.h>
155 struct pxa2xx_udc_mach_info *mach = the_controller->mach;
157 if (mach->gpio_vbus)
158 return udc_gpio_get(mach->gpio_vbus);
159 if (mach->udc_is_connected)
160 return mach->udc_is_connected();
167 struct pxa2xx_udc_mach_info *mach = the_controller->mach;
169 if (mach->gpio_pullup)
170 udc_gpio_set(mach->gpio_pullup, 0);
171 else if (mach->udc_command)
172 mach->udc_command(PXA2XX_UDC_CMD_DISCONNECT);
177 struct pxa2xx_udc_mach_info *mach = the_controller->mach;
179 if (mach->gpio_pullup)
180 udc_gpio_set(mach->gpio_pullup, 1);
181 else if (mach->udc_command)
182 mach->udc_command(PXA2XX_UDC_CMD_CONNECT);
1269 if (!udc->mach->udc_command)
1732 int vbus = udc_gpio_get(dev->mach->gpio_vbus);
2524 dev->mach = pdev->dev.platform_data;
2525 if (dev->mach->gpio_vbus) {
2526 udc_gpio_init_vbus(dev->mach->gpio_vbus);
2527 vbus_irq = udc_gpio_to_irq(dev->mach->gpio_vbus);
2531 if (dev->mach->gpio_pullup)
2532 udc_gpio_init_pullup(dev->mach->gpio_pullup);
2631 if (dev->mach->gpio_vbus)
2632 free_irq(IRQ_GPIO(dev->mach->gpio_vbus), dev);
2658 if (!udc->mach->udc_command)