Home
last modified time | relevance | path

Searched refs:fc_usb (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/media/usb/b2c2/
H A Dflexcop-usb.c71 struct flexcop_usb *fc_usb = fc->bus_specific; in flexcop_usb_readwrite_dw() local
78 mutex_lock(&fc_usb->data_mutex); in flexcop_usb_readwrite_dw()
80 memcpy(fc_usb->data, val, sizeof(*val)); in flexcop_usb_readwrite_dw()
82 ret = usb_control_msg(fc_usb->udev, in flexcop_usb_readwrite_dw()
88 fc_usb->data, in flexcop_usb_readwrite_dw()
100 memcpy(val, fc_usb->data, sizeof(*val)); in flexcop_usb_readwrite_dw()
101 mutex_unlock(&fc_usb->data_mutex); in flexcop_usb_readwrite_dw()
108 static int flexcop_usb_v8_memory_req(struct flexcop_usb *fc_usb, in flexcop_usb_v8_memory_req() argument
117 if (buflen > sizeof(fc_usb->data)) { in flexcop_usb_v8_memory_req()
146 mutex_lock(&fc_usb->data_mutex); in flexcop_usb_v8_memory_req()
[all …]
H A Dflexcop-usb.h16 #define B2C2_USB_CTRL_PIPE_IN usb_rcvctrlpipe(fc_usb->udev, 0)
17 #define B2C2_USB_CTRL_PIPE_OUT usb_sndctrlpipe(fc_usb->udev, 0)
18 #define B2C2_USB_DATA_PIPE usb_rcvisocpipe(fc_usb->udev, 1)