Lines Matching refs:dev
114 evt = devm_kzalloc((struct udevice *)dwc->dev, sizeof(*evt), in dwc3_alloc_one_event_buffer()
173 dev_err(dwc->dev, "can't allocate event buffer\n"); in dwc3_alloc_event_buffers()
195 dev_dbg(dwc->dev, "Event buf %p dma %08llx length %d\n", in dwc3_event_buffers_setup()
262 if (dma_mapping_error(dwc->dev, scratch_addr)) { in dwc3_setup_scratch_buffers()
263 dev_err(dwc->dev, "failed to map scratch buffer\n"); in dwc3_setup_scratch_buffers()
314 dev_vdbg(dwc->dev, "found %d IN and %d OUT endpoints\n", in dwc3_core_num_eps()
415 dev_err(dwc->dev, "this is not a DesignWare USB3 DRD Core\n"); in dwc3_core_init()
438 dev_err(dwc->dev, "Reset Timed Out\n"); in dwc3_core_init()
483 dev_dbg(dwc->dev, "No power optimization available\n"); in dwc3_core_init()
488 dev_dbg(dwc->dev, "it is on FPGA board\n"); in dwc3_core_init()
550 dev_err(dev, "failed to initialize gadget\n"); in dwc3_core_init_mode()
558 dev_err(dev, "failed to initialize host\n"); in dwc3_core_init_mode()
566 dev_err(dev, "failed to initialize host\n"); in dwc3_core_init_mode()
572 dev_err(dev, "failed to initialize gadget\n"); in dwc3_core_init_mode()
577 dev_err(dev, "Unsupported mode of operation %d\n", dwc->dr_mode); in dwc3_core_init_mode()
619 struct device *dev = NULL; in dwc3_uboot_init() local
628 mem = devm_kzalloc((struct udevice *)dev, in dwc3_uboot_init()
693 dev_err(dwc->dev, "failed to allocate event buffers\n"); in dwc3_uboot_init()
707 dev_err(dev, "failed to initialize core\n"); in dwc3_uboot_init()
713 dev_err(dwc->dev, "failed to setup event buffers\n"); in dwc3_uboot_init()
793 int dwc3_setup_phy(struct udevice *dev, struct phy **array, int *num_phys) in dwc3_setup_phy() argument
799 if (!dev_read_prop(dev, "phys", NULL)) in dwc3_setup_phy()
801 count = dev_count_phandle_with_args(dev, "phys", "#phy-cells"); in dwc3_setup_phy()
805 usb_phys = devm_kcalloc(dev, count, sizeof(struct phy), in dwc3_setup_phy()
811 ret = generic_phy_get_by_index(dev, i, &usb_phys[i]); in dwc3_setup_phy()
814 i, dev->name); in dwc3_setup_phy()
823 i, dev->name); in dwc3_setup_phy()
832 i, dev->name); in dwc3_setup_phy()
857 int dwc3_shutdown_phy(struct udevice *dev, struct phy *usb_phys, int num_phys) in dwc3_shutdown_phy() argument
869 i, dev->name); in dwc3_shutdown_phy()
886 dev_err(dwc->dev, "failed to allocate event buffers\n"); in dwc3_init()
892 dev_err(dev, "failed to initialize core\n"); in dwc3_init()
898 dev_err(dwc->dev, "failed to setup event buffers\n"); in dwc3_init()