struct usb_gadget *gadget = &udc->gadget;
int n = 0;
- trace(udc->dev, "%p\n", buf);
if (attr == NULL || buf == NULL) {
dev_err(udc->dev, "[%s] EINVAL\n", __func__);
return 0;
struct usb_gadget_driver *driver = udc->driver;
int n = 0;
- trace(udc->dev, "%p\n", buf);
if (attr == NULL || buf == NULL) {
dev_err(dev, "[%s] EINVAL\n", __func__);
return 0;
unsigned long flags;
unsigned i, j, n = 0;
- trace(dev->parent, "%p\n", buf);
if (attr == NULL || buf == NULL) {
dev_err(dev->parent, "[%s] EINVAL\n", __func__);
return 0;
{
unsigned tty;
- trace(dev->parent, "[%s] %p, %d\n", __func__, buf, count);
if (attr == NULL || buf == NULL) {
dev_err(dev, "[%s] EINVAL\n", __func__);
goto done;
u32 intr;
unsigned i, j, n = 0;
- trace(udc->dev, "%p\n", buf);
if (attr == NULL || buf == NULL) {
dev_err(udc->dev, "[%s] EINVAL\n", __func__);
return 0;
unsigned long flags;
unsigned en, bit;
- trace(udc->dev, "%p, %d\n", buf, count);
if (attr == NULL || buf == NULL) {
dev_err(udc->dev, "EINVAL\n");
goto done;
unsigned long flags;
unsigned mode;
- trace(udc->dev, "%p\n", buf);
if (attr == NULL || buf == NULL) {
dev_err(udc->dev, "EINVAL\n");
return 0;
unsigned long flags;
unsigned mode;
- trace(udc->dev, "%p, %d\n", buf, count);
if (attr == NULL || buf == NULL) {
dev_err(udc->dev, "[%s] EINVAL\n", __func__);
goto done;
unsigned long flags;
unsigned i, j, n = 0;
- trace(udc->dev, "%p\n", buf);
if (attr == NULL || buf == NULL) {
dev_err(udc->dev, "[%s] EINVAL\n", __func__);
return 0;
u32 *dump;
unsigned i, k, n = 0;
- trace(udc->dev, "%p\n", buf);
if (attr == NULL || buf == NULL) {
dev_err(udc->dev, "[%s] EINVAL\n", __func__);
return 0;
struct ci13xxx *udc = container_of(dev, struct ci13xxx, gadget.dev);
unsigned long addr, data, flags;
- trace(udc->dev, "%p, %d\n", buf, count);
if (attr == NULL || buf == NULL) {
dev_err(udc->dev, "[%s] EINVAL\n", __func__);
goto done;
struct ci13xxx_req *req = NULL;
unsigned i, j, n = 0, qSize = sizeof(struct ci13xxx_td)/sizeof(u32);
- trace(udc->dev, "%p\n", buf);
if (attr == NULL || buf == NULL) {
dev_err(udc->dev, "[%s] EINVAL\n", __func__);
return 0;
int ret = 0;
unsigned length = mReq->req.length;
- trace(udc->dev, "%p, %p", mEp, mReq);
-
/* don't queue twice */
if (mReq->req.status == -EALREADY)
return -EALREADY;
*/
static int _hardware_dequeue(struct ci13xxx_ep *mEp, struct ci13xxx_req *mReq)
{
- trace(mEp->udc->dev, "%p, %p", mEp, mReq);
-
if (mReq->req.status != -EALREADY)
return -EINVAL;
__releases(mEp->lock)
__acquires(mEp->lock)
{
- trace(mEp->udc->dev, "%p", mEp);
-
if (mEp == NULL)
return -EINVAL;
struct ci13xxx *udc = container_of(gadget, struct ci13xxx, gadget);
unsigned long flags;
- trace(udc->dev, "%p", gadget);
-
if (gadget == NULL)
return -EINVAL;
{
int retval;
- trace(udc->dev, "%p", udc);
-
dbg_event(0xFF, "BUS RST", 0);
spin_unlock(&udc->lock);
*/
static void isr_get_status_complete(struct usb_ep *ep, struct usb_request *req)
{
- trace(NULL, "%p, %p", ep, req);
-
if (ep == NULL || req == NULL)
return;
gfp_t gfp_flags = GFP_ATOMIC;
int dir, num, retval;
- trace(udc->dev, "%p, %p", mEp, setup);
-
if (mEp == NULL || setup == NULL)
return -EINVAL;
struct ci13xxx *udc = req->context;
unsigned long flags;
- trace(udc->dev, "%p, %p", ep, req);
-
spin_lock_irqsave(&udc->lock, flags);
if (udc->test_mode)
hw_port_test_set(udc, udc->test_mode);
int retval;
struct ci13xxx_ep *mEp;
- trace(udc->dev, "%p", udc);
-
mEp = (udc->ep0_dir == TX) ? udc->ep0out : udc->ep0in;
udc->status->context = udc;
udc->status->complete = isr_setup_status_complete;
struct ci13xxx_ep *mEpTemp = mEp;
int uninitialized_var(retval);
- trace(mEp->udc->dev, "%p", mEp);
-
if (list_empty(&mEp->qh.queue))
return -EINVAL;
unsigned i;
u8 tmode = 0;
- trace(udc->dev, "%p", udc);
-
for (i = 0; i < udc->hw_ep_max; i++) {
struct ci13xxx_ep *mEp = &udc->ci13xxx_ep[i];
int type, num, dir, err = -EINVAL;
int retval = 0;
unsigned long flags;
- trace(mEp->udc->dev, "%p, %p", ep, desc);
-
if (ep == NULL || desc == NULL)
return -EINVAL;
int direction, retval = 0;
unsigned long flags;
- trace(mEp->udc->dev, "%p", ep);
-
if (ep == NULL)
return -EINVAL;
else if (mEp->ep.desc == NULL)
struct ci13xxx_ep *mEp = container_of(ep, struct ci13xxx_ep, ep);
struct ci13xxx_req *mReq = NULL;
- trace(mEp->udc->dev, "%p, %i", ep, gfp_flags);
-
if (ep == NULL)
return NULL;
struct ci13xxx_req *mReq = container_of(req, struct ci13xxx_req, req);
unsigned long flags;
- trace(mEp->udc->dev, "%p, %p", ep, req);
-
if (ep == NULL || req == NULL) {
return;
} else if (!list_empty(&mReq->queue)) {
int retval = 0;
unsigned long flags;
- trace(mEp->udc->dev, "%p, %p, %X", ep, req, gfp_flags);
-
if (ep == NULL || req == NULL || mEp->ep.desc == NULL)
return -EINVAL;
struct ci13xxx_req *mReq = container_of(req, struct ci13xxx_req, req);
unsigned long flags;
- trace(mEp->udc->dev, "%p, %p", ep, req);
-
if (ep == NULL || req == NULL || mReq->req.status != -EALREADY ||
mEp->ep.desc == NULL || list_empty(&mReq->queue) ||
list_empty(&mEp->qh.queue))
int direction, retval = 0;
unsigned long flags;
- trace(mEp->udc->dev, "%p, %i", ep, value);
-
if (ep == NULL || mEp->ep.desc == NULL)
return -EINVAL;
struct ci13xxx_ep *mEp = container_of(ep, struct ci13xxx_ep, ep);
unsigned long flags;
- trace(mEp->udc->dev, "%p", ep);
-
if (ep == NULL || mEp->ep.desc == NULL)
return -EINVAL;
struct ci13xxx_ep *mEp = container_of(ep, struct ci13xxx_ep, ep);
unsigned long flags;
- trace(mEp->udc->dev, "%p", ep);
-
if (ep == NULL) {
dev_err(mEp->udc->dev, "%02X: -EINVAL\n", _usb_addr(mEp));
return;
unsigned long flags;
int ret = 0;
- trace(udc->dev, "");
-
spin_lock_irqsave(&udc->lock, flags);
if (!udc->remote_wakeup) {
ret = -EOPNOTSUPP;
- trace(udc->dev, "remote wakeup feature is not enabled\n");
goto out;
}
if (!hw_read(udc, OP_PORTSC, PORTSC_SUSP)) {
ret = -EINVAL;
- trace(udc->dev, "port is not suspended\n");
goto out;
}
hw_write(udc, OP_PORTSC, PORTSC_FPR, PORTSC_FPR);
unsigned long flags;
int retval = -ENOMEM;
- trace(udc->dev, "%p", driver);
-
if (driver->disconnect == NULL)
return -EINVAL;
struct ci13xxx *udc = container_of(gadget, struct ci13xxx, gadget);
unsigned long flags;
- trace(udc->dev, "%p", driver);
-
spin_lock_irqsave(&udc->lock, flags);
if (!(udc->udc_driver->flags & CI13XXX_PULLUP_ON_VBUS) ||
irqreturn_t retval;
u32 intr;
- trace(udc ? udc->dev : NULL, "");
-
if (udc == NULL)
return IRQ_HANDLED;
*/
static void udc_release(struct device *dev)
{
- trace(dev->parent, "%p", dev);
}
/**
struct ci13xxx *udc;
int retval = 0;
- trace(dev, "%p, %p, %p", dev, regs, driver->name);
-
if (dev == NULL || regs == NULL || driver == NULL ||
driver->name == NULL)
return -EINVAL;