• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/target/linux/lantiq/files/drivers/usb/dwc_otg/

Lines Matching refs:dwc_otg_device

574         /* Memory allocation for the dwc_otg_device failed. */
632 * device. The driver components are stored in a dwc_otg_device
633 * structure. A reference to the dwc_otg_device is saved in the
634 * lm_device. This allows the driver to access the dwc_otg_device
643 dwc_otg_device_t *dwc_otg_device;
659 dwc_otg_device = kmalloc(sizeof(dwc_otg_device_t), GFP_KERNEL);
660 if (dwc_otg_device == 0) {
661 dev_err(&_dev->dev, "kmalloc of dwc_otg_device failed\n");
665 memset(dwc_otg_device, 0, sizeof(*dwc_otg_device));
666 dwc_otg_device->reg_offset = 0xFFFFFFFF;
671 dwc_otg_device->irq = platform_get_irq(_dev, 0);
672 if (dwc_otg_device->irq == 0) {
677 dev_dbg(&_dev->dev, "OTG - device irq: %d\n", dwc_otg_device->irq);
686 dwc_otg_device->phys_addr = res->start;
687 dwc_otg_device->base_len = res->end - res->start + 1;
688 if (request_mem_region(dwc_otg_device->phys_addr, dwc_otg_device->base_len,
698 dwc_otg_device->base = ioremap_nocache(dwc_otg_device->phys_addr, dwc_otg_device->base_len);
699 if (dwc_otg_device->base == NULL) {
704 dev_dbg(&_dev->dev, "mapped base=0x%08x\n", (unsigned)dwc_otg_device->base);
711 snpsid = dwc_read_reg32((uint32_t *)((uint8_t *)dwc_otg_device->base + 0x40));
722 platform_set_drvdata(_dev, dwc_otg_device);
723 dev_dbg(&_dev->dev, "dwc_otg_device=0x%p\n", dwc_otg_device);
724 dwc_otg_device->core_if = dwc_otg_cil_init( dwc_otg_device->base, &dwc_otg_module_params);
725 if (dwc_otg_device->core_if == 0) {
734 if (check_parameters(dwc_otg_device->core_if) != 0) {
740 //dwc_otg_device->core_if->phys_addr = dwc_otg_device->phys_addr;
750 dwc_otg_disable_global_interrupts( dwc_otg_device->core_if );
755 DWC_DEBUGPL( DBG_CIL, "registering (common) handler for irq%d\n", dwc_otg_device->irq);
757 retval = request_irq((unsigned int)dwc_otg_device->irq, dwc_otg_common_irq,
758 //SA_INTERRUPT|SA_SHIRQ, "dwc_otg", (void *)dwc_otg_device );
759 IRQF_SHARED, "dwc_otg", (void *)dwc_otg_device );
760 //IRQF_DISABLED, "dwc_otg", (void *)dwc_otg_device );
762 DWC_ERROR("request of irq%d failed retval: %d\n", dwc_otg_device->irq, retval);
766 dwc_otg_device->common_irq_installed = 1;
772 dwc_otg_core_init( dwc_otg_device->core_if );
779 retval = dwc_otg_pcd_init(dwc_otg_device);
782 dwc_otg_device->pcd = NULL;
793 usbcfg.d32 = dwc_read_reg32(&dwc_otg_device->core_if->core_global_regs ->gusbcfg);
795 dwc_write_reg32(&dwc_otg_device->core_if->core_global_regs ->gusbcfg, usbcfg.d32);
797 retval = dwc_otg_hcd_init(&_dev->dev, dwc_otg_device);
800 dwc_otg_device->hcd = NULL;
809 dwc_otg_enable_global_interrupts( dwc_otg_device->core_if );
811 usbcfg.d32 = dwc_read_reg32(&dwc_otg_device->core_if->core_global_regs ->gusbcfg);
813 dwc_write_reg32(&dwc_otg_device->core_if->core_global_regs ->gusbcfg, usbcfg.d32);