/linux-4.4.14/drivers/media/usb/as102/ |
H A D | as102_drv.c | 56 struct as10x_bus_adapter_t *bus_adap; as102_stop_stream() local 59 bus_adap = &dev->bus_adap; as102_stop_stream() 63 if (bus_adap->ops->stop_stream != NULL) as102_stop_stream() 64 bus_adap->ops->stop_stream(dev); as102_stop_stream() 67 if (mutex_lock_interruptible(&dev->bus_adap.lock)) as102_stop_stream() 70 if (as10x_cmd_stop_streaming(bus_adap) < 0) as102_stop_stream() 71 dev_dbg(&dev->bus_adap.usb_dev->dev, as102_stop_stream() 74 mutex_unlock(&dev->bus_adap.lock); as102_stop_stream() 80 struct as10x_bus_adapter_t *bus_adap; as102_start_stream() local 84 bus_adap = &dev->bus_adap; as102_start_stream() 88 if (bus_adap->ops->start_stream != NULL) as102_start_stream() 89 ret = bus_adap->ops->start_stream(dev); as102_start_stream() 92 if (mutex_lock_interruptible(&dev->bus_adap.lock)) as102_start_stream() 95 ret = as10x_cmd_start_streaming(bus_adap); as102_start_stream() 97 mutex_unlock(&dev->bus_adap.lock); as102_start_stream() 106 struct as10x_bus_adapter_t *bus_adap = &dev->bus_adap; as10x_pid_filter() local 109 if (mutex_lock_interruptible(&dev->bus_adap.lock)) { as10x_pid_filter() 110 dev_dbg(&dev->bus_adap.usb_dev->dev, as10x_pid_filter() 117 ret = as10x_cmd_del_PID_filter(bus_adap, (uint16_t) pid); as10x_pid_filter() 118 dev_dbg(&dev->bus_adap.usb_dev->dev, as10x_pid_filter() 130 ret = as10x_cmd_add_PID_filter(bus_adap, &filter); as10x_pid_filter() 131 dev_dbg(&dev->bus_adap.usb_dev->dev, as10x_pid_filter() 138 mutex_unlock(&dev->bus_adap.lock); as10x_pid_filter() 183 struct as10x_bus_adapter_t *bus_adap = priv; as102_set_tune() local 187 if (mutex_lock_interruptible(&bus_adap->lock)) as102_set_tune() 190 ret = as10x_cmd_set_tune(bus_adap, tune_args); as102_set_tune() 192 dev_dbg(&bus_adap->usb_dev->dev, as102_set_tune() 195 mutex_unlock(&bus_adap->lock); as102_set_tune() 202 struct as10x_bus_adapter_t *bus_adap = priv; as102_get_tps() local 205 if (mutex_lock_interruptible(&bus_adap->lock)) as102_get_tps() 209 ret = as10x_cmd_get_tps(bus_adap, tps); as102_get_tps() 211 mutex_unlock(&bus_adap->lock); as102_get_tps() 218 struct as10x_bus_adapter_t *bus_adap = priv; as102_get_status() local 221 if (mutex_lock_interruptible(&bus_adap->lock)) as102_get_status() 225 ret = as10x_cmd_get_tune_status(bus_adap, tstate); as102_get_status() 227 dev_dbg(&bus_adap->usb_dev->dev, as102_get_status() 232 mutex_unlock(&bus_adap->lock); as102_get_status() 239 struct as10x_bus_adapter_t *bus_adap = priv; as102_get_stats() local 242 if (mutex_lock_interruptible(&bus_adap->lock)) as102_get_stats() 246 ret = as10x_cmd_get_demod_stats(bus_adap, demod_stats); as102_get_stats() 248 dev_dbg(&bus_adap->usb_dev->dev, as102_get_stats() 251 dev_dbg(&bus_adap->usb_dev->dev, as102_get_stats() 258 mutex_unlock(&bus_adap->lock); as102_get_stats() 265 struct as10x_bus_adapter_t *bus_adap = priv; as102_stream_ctrl() local 268 if (mutex_lock_interruptible(&bus_adap->lock)) as102_stream_ctrl() 273 as10x_cmd_set_context(bus_adap, as102_stream_ctrl() 276 ret = as10x_cmd_turn_on(bus_adap); as102_stream_ctrl() 278 ret = as10x_cmd_turn_off(bus_adap); as102_stream_ctrl() 281 mutex_unlock(&bus_adap->lock); as102_stream_ctrl() 296 struct device *dev = &as102_dev->bus_adap.usb_dev->dev; as102_dvb_register() 337 &as102_dev->bus_adap, as102_dvb_register() 354 mutex_init(&as102_dev->bus_adap.lock); as102_dvb_register() 364 try_then_request_module(as102_fw_upload(&as102_dev->bus_adap), as102_dvb_register()
|
H A D | as102_usb_drv.c | 86 static int as102_usb_xfer_cmd(struct as10x_bus_adapter_t *bus_adap, as102_usb_xfer_cmd() argument 93 ret = usb_control_msg(bus_adap->usb_dev, as102_usb_xfer_cmd() 94 usb_sndctrlpipe(bus_adap->usb_dev, 0), as102_usb_xfer_cmd() 98 bus_adap->cmd_xid, /* value */ as102_usb_xfer_cmd() 103 dev_dbg(&bus_adap->usb_dev->dev, as102_usb_xfer_cmd() 109 dev_dbg(&bus_adap->usb_dev->dev, as102_usb_xfer_cmd() 117 dev_dbg(bus_adap->usb_dev->dev, as102_usb_xfer_cmd() 120 ret = usb_control_msg(bus_adap->usb_dev, as102_usb_xfer_cmd() 121 usb_rcvctrlpipe(bus_adap->usb_dev, 0), as102_usb_xfer_cmd() 125 bus_adap->cmd_xid, /* value */ as102_usb_xfer_cmd() 130 dev_dbg(&bus_adap->usb_dev->dev, as102_usb_xfer_cmd() 135 dev_dbg(bus_adap->usb_dev->dev, as102_usb_xfer_cmd() 143 static int as102_send_ep1(struct as10x_bus_adapter_t *bus_adap, as102_send_ep1() argument 150 ret = usb_bulk_msg(bus_adap->usb_dev, as102_send_ep1() 151 usb_sndbulkpipe(bus_adap->usb_dev, 1), as102_send_ep1() 154 dev_dbg(&bus_adap->usb_dev->dev, as102_send_ep1() 160 dev_dbg(&bus_adap->usb_dev->dev, "only wrote %d of %d bytes\n", as102_send_ep1() 167 static int as102_read_ep2(struct as10x_bus_adapter_t *bus_adap, as102_read_ep2() argument 175 ret = usb_bulk_msg(bus_adap->usb_dev, as102_read_ep2() 176 usb_rcvbulkpipe(bus_adap->usb_dev, 2), as102_read_ep2() 179 dev_dbg(&bus_adap->usb_dev->dev, as102_read_ep2() 185 dev_dbg(&bus_adap->usb_dev->dev, "only read %d of %d bytes\n", as102_read_ep2() 205 dev->bus_adap.usb_dev, as102_submit_urb_stream() 206 usb_rcvbulkpipe(dev->bus_adap.usb_dev, 0x2), as102_submit_urb_stream() 245 usb_free_coherent(dev->bus_adap.usb_dev, as102_free_usb_stream_buffer() 255 dev->stream = usb_alloc_coherent(dev->bus_adap.usb_dev, as102_alloc_usb_stream_buffer() 260 dev_dbg(&dev->bus_adap.usb_dev->dev, as102_alloc_usb_stream_buffer() 273 dev_dbg(&dev->bus_adap.usb_dev->dev, as102_alloc_usb_stream_buffer() 318 usb_put_dev(as102_dev->bus_adap.usb_dev); as102_usb_release() 377 as102_dev->bus_adap.ops = &as102_priv_ops; as102_usb_probe() 380 as102_dev->bus_adap.cmd = &as102_dev->bus_adap.token.usb.c; as102_usb_probe() 381 as102_dev->bus_adap.rsp = &as102_dev->bus_adap.token.usb.r; as102_usb_probe() 390 as102_dev->bus_adap.usb_dev = usb_get_dev(interface_to_usbdev(intf)); as102_usb_probe() 421 usb_put_dev(as102_dev->bus_adap.usb_dev); as102_usb_probe()
|
H A D | as10x_handle.h | 28 int (*upload_fw_pkt)(struct as10x_bus_adapter_t *bus_adap, 31 int (*send_cmd)(struct as10x_bus_adapter_t *bus_adap, 34 int (*xfer_cmd)(struct as10x_bus_adapter_t *bus_adap, 41 int (*reset_target)(struct as10x_bus_adapter_t *bus_adap); 43 int (*read_write)(struct as10x_bus_adapter_t *bus_adap, uint8_t mode, 47 int (*as102_read_ep2)(struct as10x_bus_adapter_t *bus_adap,
|
H A D | as102_fw.c | 100 static int as102_firmware_upload(struct as10x_bus_adapter_t *bus_adap, as102_firmware_upload() argument 129 errno = bus_adap->ops->upload_fw_pkt(bus_adap, as102_firmware_upload() 144 errno = bus_adap->ops->upload_fw_pkt(bus_adap, as102_firmware_upload() 158 int as102_fw_upload(struct as10x_bus_adapter_t *bus_adap) as102_fw_upload() argument 164 struct usb_device *dev = bus_adap->usb_dev; as102_fw_upload() 191 errno = as102_firmware_upload(bus_adap, cmd_buf, firmware); as102_fw_upload() 214 errno = as102_firmware_upload(bus_adap, cmd_buf, firmware); as102_fw_upload()
|
H A D | as102_fw.h | 33 int as102_fw_upload(struct as10x_bus_adapter_t *bus_adap);
|
H A D | as102_drv.h | 60 struct as10x_bus_adapter_t bus_adap; member in struct:as102_dev_t
|