Home
last modified time | relevance | path

Searched refs:bus_adap (Results 1 – 7 of 7) sorted by relevance

/drivers/staging/media/as102/
Das102_drv.c63 struct as10x_bus_adapter_t *bus_adap; in as102_stop_stream() local
66 bus_adap = &dev->bus_adap; in as102_stop_stream()
70 if (bus_adap->ops->stop_stream != NULL) in as102_stop_stream()
71 bus_adap->ops->stop_stream(dev); in as102_stop_stream()
74 if (mutex_lock_interruptible(&dev->bus_adap.lock)) in as102_stop_stream()
77 if (as10x_cmd_stop_streaming(bus_adap) < 0) in as102_stop_stream()
80 mutex_unlock(&dev->bus_adap.lock); in as102_stop_stream()
86 struct as10x_bus_adapter_t *bus_adap; in as102_start_stream() local
90 bus_adap = &dev->bus_adap; in as102_start_stream()
94 if (bus_adap->ops->start_stream != NULL) in as102_start_stream()
[all …]
Das102_usb_drv.c90 static int as102_usb_xfer_cmd(struct as10x_bus_adapter_t *bus_adap, in as102_usb_xfer_cmd() argument
98 ret = usb_control_msg(bus_adap->usb_dev, in as102_usb_xfer_cmd()
99 usb_sndctrlpipe(bus_adap->usb_dev, 0), in as102_usb_xfer_cmd()
103 bus_adap->cmd_xid, /* value */ in as102_usb_xfer_cmd()
124 ret = usb_control_msg(bus_adap->usb_dev, in as102_usb_xfer_cmd()
125 usb_rcvctrlpipe(bus_adap->usb_dev, 0), in as102_usb_xfer_cmd()
129 bus_adap->cmd_xid, /* value */ in as102_usb_xfer_cmd()
147 static int as102_send_ep1(struct as10x_bus_adapter_t *bus_adap, in as102_send_ep1() argument
154 ret = usb_bulk_msg(bus_adap->usb_dev, in as102_send_ep1()
155 usb_sndbulkpipe(bus_adap->usb_dev, 1), in as102_send_ep1()
[all …]
Das10x_handle.h31 int (*upload_fw_pkt) (struct as10x_bus_adapter_t *bus_adap,
34 int (*send_cmd) (struct as10x_bus_adapter_t *bus_adap,
37 int (*xfer_cmd) (struct as10x_bus_adapter_t *bus_adap,
44 int (*reset_target) (struct as10x_bus_adapter_t *bus_adap);
46 int (*read_write)(struct as10x_bus_adapter_t *bus_adap, uint8_t mode,
50 int (*as102_read_ep2) (struct as10x_bus_adapter_t *bus_adap,
Das102_fw.c104 static int as102_firmware_upload(struct as10x_bus_adapter_t *bus_adap, in as102_firmware_upload() argument
135 errno = bus_adap->ops->upload_fw_pkt(bus_adap, in as102_firmware_upload()
150 errno = bus_adap->ops->upload_fw_pkt(bus_adap, in as102_firmware_upload()
165 int as102_fw_upload(struct as10x_bus_adapter_t *bus_adap) in as102_fw_upload() argument
171 struct usb_device *dev = bus_adap->usb_dev; in as102_fw_upload()
200 errno = as102_firmware_upload(bus_adap, cmd_buf, firmware); in as102_fw_upload()
223 errno = as102_firmware_upload(bus_adap, cmd_buf, firmware); in as102_fw_upload()
Das102_fe.c45 if (mutex_lock_interruptible(&dev->bus_adap.lock)) in as102_fe_set_frontend()
51 ret = as10x_cmd_set_tune(&dev->bus_adap, &tune_args); in as102_fe_set_frontend()
55 mutex_unlock(&dev->bus_adap.lock); in as102_fe_set_frontend()
74 if (mutex_lock_interruptible(&dev->bus_adap.lock)) in as102_fe_get_frontend()
78 ret = as10x_cmd_get_tps(&dev->bus_adap, &tps); in as102_fe_get_frontend()
83 mutex_unlock(&dev->bus_adap.lock); in as102_fe_get_frontend()
119 if (mutex_lock_interruptible(&dev->bus_adap.lock)) in as102_fe_read_status()
123 ret = as10x_cmd_get_tune_status(&dev->bus_adap, &tstate); in as102_fe_read_status()
153 if (as10x_cmd_get_demod_stats(&dev->bus_adap, in as102_fe_read_status()
172 mutex_unlock(&dev->bus_adap.lock); in as102_fe_read_status()
[all …]
Das102_fw.h37 int as102_fw_upload(struct as10x_bus_adapter_t *bus_adap);
Das102_drv.h76 struct as10x_bus_adapter_t bus_adap; member