Lines Matching refs:usX2Y

167 		struct usX2Ydev *usX2Y = urb->context;  in i_usX2Y_Out04Int()  local
168 for (i = 0; i < 10 && usX2Y->AS04.urb[i] != urb; i++); in i_usX2Y_Out04Int()
177 struct usX2Ydev *usX2Y = urb->context; in i_usX2Y_In04Int() local
178 struct us428ctls_sharedmem *us428ctls = usX2Y->us428ctls_sharedmem; in i_usX2Y_In04Int()
180 usX2Y->In04IntCalls++; in i_usX2Y_In04Int()
192 memcpy(usX2Y->In04Last, usX2Y->In04Buf, sizeof(usX2Y->In04Last)); in i_usX2Y_In04Int()
197 if (usX2Y->In04Last[i] != ((char*)usX2Y->In04Buf)[i]) { in i_usX2Y_In04Int()
200 usX2Y->In04Last[i] = ((char*)usX2Y->In04Buf)[i]; in i_usX2Y_In04Int()
208 memcpy(us428ctls->CtlSnapShot + n, usX2Y->In04Buf, sizeof(us428ctls->CtlSnapShot[0])); in i_usX2Y_In04Int()
211 wake_up(&usX2Y->us428ctls_wait_queue_head); in i_usX2Y_In04Int()
216 if (usX2Y->US04) { in i_usX2Y_In04Int()
217 if (0 == usX2Y->US04->submitted) in i_usX2Y_In04Int()
219 err = usb_submit_urb(usX2Y->US04->urb[usX2Y->US04->submitted++], GFP_ATOMIC); in i_usX2Y_In04Int()
220 } while (!err && usX2Y->US04->submitted < usX2Y->US04->len); in i_usX2Y_In04Int()
228 if (0 == usX2Y->AS04.urb[j]->status) { in i_usX2Y_In04Int()
230 usb_fill_bulk_urb(usX2Y->AS04.urb[j], usX2Y->dev, in i_usX2Y_In04Int()
231 usb_sndbulkpipe(usX2Y->dev, 0x04), &p4out->val.vol, in i_usX2Y_In04Int()
233 i_usX2Y_Out04Int, usX2Y); in i_usX2Y_In04Int()
234 err = usb_submit_urb(usX2Y->AS04.urb[j], GFP_ATOMIC); in i_usX2Y_In04Int()
244 urb->dev = usX2Y->dev; in i_usX2Y_In04Int()
251 int usX2Y_AsyncSeq04_init(struct usX2Ydev *usX2Y) in usX2Y_AsyncSeq04_init() argument
256 usX2Y->AS04.buffer = kmalloc_array(URBS_AsyncSeq, in usX2Y_AsyncSeq04_init()
258 if (NULL == usX2Y->AS04.buffer) { in usX2Y_AsyncSeq04_init()
262 if (NULL == (usX2Y->AS04.urb[i] = usb_alloc_urb(0, GFP_KERNEL))) { in usX2Y_AsyncSeq04_init()
266 usb_fill_bulk_urb( usX2Y->AS04.urb[i], usX2Y->dev, in usX2Y_AsyncSeq04_init()
267 usb_sndbulkpipe(usX2Y->dev, 0x04), in usX2Y_AsyncSeq04_init()
268 usX2Y->AS04.buffer + URB_DataLen_AsyncSeq*i, 0, in usX2Y_AsyncSeq04_init()
269 i_usX2Y_Out04Int, usX2Y in usX2Y_AsyncSeq04_init()
271 err = usb_urb_ep_type_check(usX2Y->AS04.urb[i]); in usX2Y_AsyncSeq04_init()
278 int usX2Y_In04_init(struct usX2Ydev *usX2Y) in usX2Y_In04_init() argument
280 if (! (usX2Y->In04urb = usb_alloc_urb(0, GFP_KERNEL))) in usX2Y_In04_init()
283 if (! (usX2Y->In04Buf = kmalloc(21, GFP_KERNEL))) in usX2Y_In04_init()
286 init_waitqueue_head(&usX2Y->In04WaitQueue); in usX2Y_In04_init()
287 usb_fill_int_urb(usX2Y->In04urb, usX2Y->dev, usb_rcvintpipe(usX2Y->dev, 0x4), in usX2Y_In04_init()
288 usX2Y->In04Buf, 21, in usX2Y_In04_init()
289 i_usX2Y_In04Int, usX2Y, in usX2Y_In04_init()
291 if (usb_urb_ep_type_check(usX2Y->In04urb)) in usX2Y_In04_init()
293 return usb_submit_urb(usX2Y->In04urb, GFP_KERNEL); in usX2Y_In04_init()
344 snd_usX2Y_card_used[usX2Y(card)->card_index = dev] = 1; in usX2Y_create_card()
346 usX2Y(card)->dev = device; in usX2Y_create_card()
347 init_waitqueue_head(&usX2Y(card)->prepare_wait_queue); in usX2Y_create_card()
348 mutex_init(&usX2Y(card)->pcm_mutex); in usX2Y_create_card()
349 INIT_LIST_HEAD(&usX2Y(card)->midi_list); in usX2Y_create_card()
357 usX2Y(card)->dev->bus->busnum, usX2Y(card)->dev->devnum in usX2Y_create_card()
422 kfree(usX2Y(card)->In04Buf); in snd_usX2Y_card_private_free()
423 usb_free_urb(usX2Y(card)->In04urb); in snd_usX2Y_card_private_free()
424 if (usX2Y(card)->us428ctls_sharedmem) in snd_usX2Y_card_private_free()
425 free_pages_exact(usX2Y(card)->us428ctls_sharedmem, in snd_usX2Y_card_private_free()
426 sizeof(*usX2Y(card)->us428ctls_sharedmem)); in snd_usX2Y_card_private_free()
427 if (usX2Y(card)->card_index >= 0 && usX2Y(card)->card_index < SNDRV_CARDS) in snd_usX2Y_card_private_free()
428 snd_usX2Y_card_used[usX2Y(card)->card_index] = 0; in snd_usX2Y_card_private_free()
438 struct usX2Ydev *usX2Y = usX2Y(card); in usX2Y_usb_disconnect() local
440 usX2Y->chip_status = USX2Y_STAT_CHIP_HUP; in usX2Y_usb_disconnect()
441 usX2Y_unlinkSeq(&usX2Y->AS04); in usX2Y_usb_disconnect()
442 usb_kill_urb(usX2Y->In04urb); in usX2Y_usb_disconnect()
445 list_for_each(p, &usX2Y->midi_list) { in usX2Y_usb_disconnect()
448 if (usX2Y->us428ctls_sharedmem) in usX2Y_usb_disconnect()
449 wake_up(&usX2Y->us428ctls_wait_queue_head); in usX2Y_usb_disconnect()