/drivers/media/firewire/ |
D | firedtv-dvb.c | 24 static int alloc_channel(struct firedtv *fdtv) in alloc_channel() argument 29 if (!__test_and_set_bit(i, &fdtv->channel_active)) in alloc_channel() 34 static void collect_channels(struct firedtv *fdtv, int *pidc, u16 pid[]) in collect_channels() argument 39 if (test_bit(i, &fdtv->channel_active)) in collect_channels() 40 pid[n++] = fdtv->channel_pid[i]; in collect_channels() 44 static inline void dealloc_channel(struct firedtv *fdtv, int i) in dealloc_channel() argument 46 __clear_bit(i, &fdtv->channel_active); in dealloc_channel() 51 struct firedtv *fdtv = dvbdmxfeed->demux->priv; in fdtv_start_feed() local 60 dev_err(fdtv->device, "can't start dmx feed: invalid type %u\n", in fdtv_start_feed() 65 if (mutex_lock_interruptible(&fdtv->demux_mutex)) in fdtv_start_feed() [all …]
|
D | firedtv-avc.c | 230 static int avc_write(struct firedtv *fdtv) in avc_write() argument 234 fdtv->avc_reply_received = false; in avc_write() 238 debug_fcp(fdtv->avc_data, fdtv->avc_data_length); in avc_write() 240 err = fdtv_write(fdtv, FCP_COMMAND_REGISTER, in avc_write() 241 fdtv->avc_data, fdtv->avc_data_length); in avc_write() 243 dev_err(fdtv->device, "FCP command write failed\n"); in avc_write() 252 if (wait_event_timeout(fdtv->avc_wait, in avc_write() 253 fdtv->avc_reply_received, in avc_write() 257 dev_err(fdtv->device, "FCP response timed out\n"); in avc_write() 271 int avc_recv(struct firedtv *fdtv, void *data, size_t length) in avc_recv() argument [all …]
|
D | firedtv-ci.c | 55 static int fdtv_ca_get_slot_info(struct firedtv *fdtv, void *arg) in fdtv_ca_get_slot_info() argument 61 err = avc_tuner_status(fdtv, &stat); in fdtv_ca_get_slot_info() 73 static int fdtv_ca_app_info(struct firedtv *fdtv, void *arg) in fdtv_ca_app_info() argument 77 return avc_ca_app_info(fdtv, reply->msg, &reply->length); in fdtv_ca_app_info() 80 static int fdtv_ca_info(struct firedtv *fdtv, void *arg) in fdtv_ca_info() argument 84 return avc_ca_info(fdtv, reply->msg, &reply->length); in fdtv_ca_info() 87 static int fdtv_ca_get_mmi(struct firedtv *fdtv, void *arg) in fdtv_ca_get_mmi() argument 91 return avc_ca_get_mmi(fdtv, reply->msg, &reply->length); in fdtv_ca_get_mmi() 94 static int fdtv_ca_get_msg(struct firedtv *fdtv, void *arg) in fdtv_ca_get_msg() argument 99 switch (fdtv->ca_last_command) { in fdtv_ca_get_msg() [all …]
|
D | firedtv.h | 110 int avc_recv(struct firedtv *fdtv, void *data, size_t length); 111 int avc_tuner_status(struct firedtv *fdtv, struct firedtv_tuner_status *stat); 113 int avc_tuner_dsd(struct firedtv *fdtv, struct dtv_frontend_properties *params); 114 int avc_tuner_set_pids(struct firedtv *fdtv, unsigned char pidc, u16 pid[]); 115 int avc_tuner_get_ts(struct firedtv *fdtv); 116 int avc_identify_subunit(struct firedtv *fdtv); 118 int avc_lnb_control(struct firedtv *fdtv, char voltage, char burst, 122 int avc_register_remote_control(struct firedtv *fdtv); 123 int avc_ca_app_info(struct firedtv *fdtv, unsigned char *app_info, 125 int avc_ca_info(struct firedtv *fdtv, unsigned char *app_info, [all …]
|
D | firedtv-fw.c | 32 static inline struct fw_device *device_of(struct firedtv *fdtv) in device_of() argument 34 return fw_device(fdtv->device->parent); in device_of() 37 static int node_req(struct firedtv *fdtv, u64 addr, void *data, size_t len, in node_req() argument 40 struct fw_device *device = device_of(fdtv); in node_req() 51 int fdtv_lock(struct firedtv *fdtv, u64 addr, void *data) in fdtv_lock() argument 53 return node_req(fdtv, addr, data, 8, TCODE_LOCK_COMPARE_SWAP); in fdtv_lock() 56 int fdtv_read(struct firedtv *fdtv, u64 addr, void *data) in fdtv_read() argument 58 return node_req(fdtv, addr, data, 4, TCODE_READ_QUADLET_REQUEST); in fdtv_read() 61 int fdtv_write(struct firedtv *fdtv, u64 addr, void *data, size_t len) in fdtv_write() argument 63 return node_req(fdtv, addr, data, len, TCODE_WRITE_BLOCK_REQUEST); in fdtv_write() [all …]
|
D | firedtv-fe.c | 21 struct firedtv *fdtv = fe->sec_priv; in fdtv_dvb_init() local 25 fdtv->isochannel = fdtv->adapter.num; in fdtv_dvb_init() 27 err = cmp_establish_pp_connection(fdtv, fdtv->subunit, in fdtv_dvb_init() 28 fdtv->isochannel); in fdtv_dvb_init() 30 dev_err(fdtv->device, in fdtv_dvb_init() 35 return fdtv_start_iso(fdtv); in fdtv_dvb_init() 40 struct firedtv *fdtv = fe->sec_priv; in fdtv_sleep() local 42 fdtv_stop_iso(fdtv); in fdtv_sleep() 43 cmp_break_pp_connection(fdtv, fdtv->subunit, fdtv->isochannel); in fdtv_sleep() 44 fdtv->isochannel = -1; in fdtv_sleep() [all …]
|
D | firedtv-rc.c | 125 int fdtv_register_rc(struct firedtv *fdtv, struct device *dev) in fdtv_register_rc() argument 134 fdtv->remote_ctrl_dev = idev; in fdtv_register_rc() 162 void fdtv_unregister_rc(struct firedtv *fdtv) in fdtv_unregister_rc() argument 164 cancel_work_sync(&fdtv->remote_ctrl_work); in fdtv_unregister_rc() 165 kfree(fdtv->remote_ctrl_dev->keycode); in fdtv_unregister_rc() 166 input_unregister_device(fdtv->remote_ctrl_dev); in fdtv_unregister_rc() 169 void fdtv_handle_rc(struct firedtv *fdtv, unsigned int code) in fdtv_handle_rc() argument 171 struct input_dev *idev = fdtv->remote_ctrl_dev; in fdtv_handle_rc() 183 dev_dbg(fdtv->device, in fdtv_handle_rc()
|