Lines Matching defs:uac
457 struct uac_dev_s *uac = (struct uac_dev_s *)req->priv;
461 switch (uac->control)
467 spin_lock(&uac->lock);
468 uac->connected = 0x1;
469 spin_unlock(&uac->lock);
470 uac->control = ~0;
477 if (uac->count == 0 || rate != g_uac_rate)
479 uac->count = 1;
480 spin_lock(&uac->lock);
481 uac_queue_free(uac);
482 uac->busy_flag = 0;
483 uac->connected = 1;
484 spin_unlock(&uac->lock);
488 (void)EP_DISABLE(uac->in_ep);
489 (void)EP_FLUSH(uac->in_ep);
490 (void)EP_CONFIGURE(uac->in_ep, (const usb_endpoint_descriptor_t *)&g_fuac_as_in_ep_desc, 0);
492 uac->control = ~0;
496 uac->control = ~0;
510 struct uac_dev_s *uac = &((struct uac_softc *)(ep->priv))->dev;
512 struct usbdev_req_s *req_temp = &uac->inputreq;
514 spin_lock(&uac->lock);
517 uac_queue_free(uac);
518 spin_unlock(&uac->lock);
522 if (uac->cur_node != NULL)
524 node_tx = uac->cur_node;
528 uac->cur_node = NULL;
532 uac_send_data_sub(uac);
533 spin_unlock(&uac->lock);
538 if (!list_empty(&uac->uac_queue))
540 node_tx = list_first_entry(&uac->uac_queue, struct uac_queue_node, irqqueue);
541 uac->cur_node = node_tx;
543 uac->uac_queue_len--;
544 uac_send_data_sub(uac);
549 (void)EP_SUBMIT(uac->in_ep, req_temp);
551 spin_unlock(&uac->lock);
618 struct uac_dev_s *uac;
621 uac = drvr->dev;
622 if (uac == NULL)
627 DEV_FREEEP(dev, uac->out_ep);
628 DEV_FREEEP(dev, uac->in_ep);
636 struct uac_dev_s *uac;
647 uac = drvr->dev;
648 if (uac == NULL)
653 INIT_LIST_HEAD(&uac->uac_queue);
654 uac->busy_flag = 0;
655 uac->uac_queue_len = 0;
656 uac->cur_node = NULL;
657 uac->count = 0;
658 spin_lock_init(&uac->lock);
675 ep->priv = (void *)uac;
676 (void)memset_s(&(uac->outputreq), sizeof(struct usbdev_req_s), 0, sizeof(struct usbdev_req_s));
677 uac->outputreq.callback = fuac_output_request_complete;
678 uac->outputreq.priv = (void *)uac;
679 ep->handle_req = &uac->outputreq;
680 uac->out_ep = ep;
691 (void)memset_s(&uac->inputreq, sizeof(struct usbdev_req_s), 0, sizeof(struct usbdev_req_s));
692 uac->inputreq.callback = fuac_input_req_complete;
693 uac->inputreq.priv = (void *)uac;
694 uac->inputreq.buf = NULL;
695 ep->priv = (void *)uac;
696 ep->handle_req = &uac->inputreq;
697 uac->in_ep = ep;
699 uac->control = ~0;
760 struct uac_dev_s *uac;
773 uac = drvr->dev;
774 if (uac == NULL)
782 req->priv = uac;
790 (void)usbclass_uac_set_alt(uac, UGETW(ctrl->wIndex), UGETW(ctrl->wValue));
803 uac->control = UAC_SETCUR_COMPLETE;
1057 PRINTK(" ** uac device initialized successfully! **\n");