en50221 92 drivers/media/dvb-frontends/sp2.c static int sp2_ci_op_cam(struct dvb_ca_en50221 *en50221, int slot, u8 acs, en50221 95 drivers/media/dvb-frontends/sp2.c struct sp2 *s = en50221->data; en50221 146 drivers/media/dvb-frontends/sp2.c int sp2_ci_read_attribute_mem(struct dvb_ca_en50221 *en50221, en50221 149 drivers/media/dvb-frontends/sp2.c return sp2_ci_op_cam(en50221, slot, SP2_CI_ATTR_ACS, en50221 153 drivers/media/dvb-frontends/sp2.c int sp2_ci_write_attribute_mem(struct dvb_ca_en50221 *en50221, en50221 156 drivers/media/dvb-frontends/sp2.c return sp2_ci_op_cam(en50221, slot, SP2_CI_ATTR_ACS, en50221 160 drivers/media/dvb-frontends/sp2.c int sp2_ci_read_cam_control(struct dvb_ca_en50221 *en50221, en50221 163 drivers/media/dvb-frontends/sp2.c return sp2_ci_op_cam(en50221, slot, SP2_CI_IO_ACS, en50221 167 drivers/media/dvb-frontends/sp2.c int sp2_ci_write_cam_control(struct dvb_ca_en50221 *en50221, en50221 170 drivers/media/dvb-frontends/sp2.c return sp2_ci_op_cam(en50221, slot, SP2_CI_IO_ACS, en50221 174 drivers/media/dvb-frontends/sp2.c int sp2_ci_slot_reset(struct dvb_ca_en50221 *en50221, int slot) en50221 176 drivers/media/dvb-frontends/sp2.c struct sp2 *s = en50221->data; en50221 206 drivers/media/dvb-frontends/sp2.c int sp2_ci_slot_shutdown(struct dvb_ca_en50221 *en50221, int slot) en50221 208 drivers/media/dvb-frontends/sp2.c struct sp2 *s = en50221->data; en50221 216 drivers/media/dvb-frontends/sp2.c int sp2_ci_slot_ts_enable(struct dvb_ca_en50221 *en50221, int slot) en50221 218 drivers/media/dvb-frontends/sp2.c struct sp2 *s = en50221->data; en50221 233 drivers/media/dvb-frontends/sp2.c int sp2_ci_poll_slot_status(struct dvb_ca_en50221 *en50221, en50221 236 drivers/media/dvb-frontends/sp2.c struct sp2 *s = en50221->data; en50221 29 drivers/media/dvb-frontends/sp2.h extern int sp2_ci_read_attribute_mem(struct dvb_ca_en50221 *en50221, en50221 31 drivers/media/dvb-frontends/sp2.h extern int sp2_ci_write_attribute_mem(struct dvb_ca_en50221 *en50221, en50221 33 drivers/media/dvb-frontends/sp2.h extern int sp2_ci_read_cam_control(struct dvb_ca_en50221 *en50221, en50221 35 drivers/media/dvb-frontends/sp2.h extern int sp2_ci_write_cam_control(struct dvb_ca_en50221 *en50221, en50221 37 drivers/media/dvb-frontends/sp2.h extern int sp2_ci_slot_reset(struct dvb_ca_en50221 *en50221, int slot); en50221 38 drivers/media/dvb-frontends/sp2.h extern int sp2_ci_slot_shutdown(struct dvb_ca_en50221 *en50221, int slot); en50221 39 drivers/media/dvb-frontends/sp2.h extern int sp2_ci_slot_ts_enable(struct dvb_ca_en50221 *en50221, int slot); en50221 40 drivers/media/dvb-frontends/sp2.h extern int sp2_ci_poll_slot_status(struct dvb_ca_en50221 *en50221, en50221 257 drivers/media/pci/cx23885/altera-ci.c static int altera_ci_op_cam(struct dvb_ca_en50221 *en50221, int slot, en50221 261 drivers/media/pci/cx23885/altera-ci.c struct altera_ci_state *state = en50221->data; en50221 292 drivers/media/pci/cx23885/altera-ci.c static int altera_ci_read_attribute_mem(struct dvb_ca_en50221 *en50221, en50221 295 drivers/media/pci/cx23885/altera-ci.c return altera_ci_op_cam(en50221, slot, 0, NETUP_CI_FLG_RD, addr, 0); en50221 298 drivers/media/pci/cx23885/altera-ci.c static int altera_ci_write_attribute_mem(struct dvb_ca_en50221 *en50221, en50221 301 drivers/media/pci/cx23885/altera-ci.c return altera_ci_op_cam(en50221, slot, 0, 0, addr, data); en50221 304 drivers/media/pci/cx23885/altera-ci.c static int altera_ci_read_cam_ctl(struct dvb_ca_en50221 *en50221, en50221 307 drivers/media/pci/cx23885/altera-ci.c return altera_ci_op_cam(en50221, slot, NETUP_CI_FLG_CTL, en50221 311 drivers/media/pci/cx23885/altera-ci.c static int altera_ci_write_cam_ctl(struct dvb_ca_en50221 *en50221, int slot, en50221 314 drivers/media/pci/cx23885/altera-ci.c return altera_ci_op_cam(en50221, slot, NETUP_CI_FLG_CTL, 0, addr, data); en50221 317 drivers/media/pci/cx23885/altera-ci.c static int altera_ci_slot_reset(struct dvb_ca_en50221 *en50221, int slot) en50221 319 drivers/media/pci/cx23885/altera-ci.c struct altera_ci_state *state = en50221->data; en50221 360 drivers/media/pci/cx23885/altera-ci.c static int altera_ci_slot_shutdown(struct dvb_ca_en50221 *en50221, int slot) en50221 366 drivers/media/pci/cx23885/altera-ci.c static int altera_ci_slot_ts_ctl(struct dvb_ca_en50221 *en50221, int slot) en50221 368 drivers/media/pci/cx23885/altera-ci.c struct altera_ci_state *state = en50221->data; en50221 443 drivers/media/pci/cx23885/altera-ci.c static int altera_poll_ci_slot_status(struct dvb_ca_en50221 *en50221, en50221 446 drivers/media/pci/cx23885/altera-ci.c struct altera_ci_state *state = en50221->data; en50221 167 drivers/media/pci/cx23885/cimax2.c static int netup_ci_op_cam(struct dvb_ca_en50221 *en50221, int slot, en50221 170 drivers/media/pci/cx23885/cimax2.c struct netup_ci_state *state = en50221->data; en50221 237 drivers/media/pci/cx23885/cimax2.c int netup_ci_read_attribute_mem(struct dvb_ca_en50221 *en50221, en50221 240 drivers/media/pci/cx23885/cimax2.c return netup_ci_op_cam(en50221, slot, 0, NETUP_CI_RD, addr, 0); en50221 243 drivers/media/pci/cx23885/cimax2.c int netup_ci_write_attribute_mem(struct dvb_ca_en50221 *en50221, en50221 246 drivers/media/pci/cx23885/cimax2.c return netup_ci_op_cam(en50221, slot, 0, 0, addr, data); en50221 249 drivers/media/pci/cx23885/cimax2.c int netup_ci_read_cam_ctl(struct dvb_ca_en50221 *en50221, int slot, en50221 252 drivers/media/pci/cx23885/cimax2.c return netup_ci_op_cam(en50221, slot, NETUP_CI_CTL, en50221 256 drivers/media/pci/cx23885/cimax2.c int netup_ci_write_cam_ctl(struct dvb_ca_en50221 *en50221, int slot, en50221 259 drivers/media/pci/cx23885/cimax2.c return netup_ci_op_cam(en50221, slot, NETUP_CI_CTL, 0, addr, data); en50221 262 drivers/media/pci/cx23885/cimax2.c int netup_ci_slot_reset(struct dvb_ca_en50221 *en50221, int slot) en50221 264 drivers/media/pci/cx23885/cimax2.c struct netup_ci_state *state = en50221->data; en50221 291 drivers/media/pci/cx23885/cimax2.c int netup_ci_slot_shutdown(struct dvb_ca_en50221 *en50221, int slot) en50221 297 drivers/media/pci/cx23885/cimax2.c static int netup_ci_set_irq(struct dvb_ca_en50221 *en50221, u8 irq_mode) en50221 299 drivers/media/pci/cx23885/cimax2.c struct netup_ci_state *state = en50221->data; en50221 318 drivers/media/pci/cx23885/cimax2.c int netup_ci_slot_ts_ctl(struct dvb_ca_en50221 *en50221, int slot) en50221 320 drivers/media/pci/cx23885/cimax2.c struct netup_ci_state *state = en50221->data; en50221 398 drivers/media/pci/cx23885/cimax2.c int netup_poll_ci_slot_status(struct dvb_ca_en50221 *en50221, en50221 401 drivers/media/pci/cx23885/cimax2.c struct netup_ci_state *state = en50221->data; en50221 406 drivers/media/pci/cx23885/cimax2.c netup_ci_set_irq(en50221, open ? (NETUP_IRQ_DETAM | ci_irq_flags()) en50221 16 drivers/media/pci/cx23885/cimax2.h extern int netup_ci_read_attribute_mem(struct dvb_ca_en50221 *en50221, en50221 18 drivers/media/pci/cx23885/cimax2.h extern int netup_ci_write_attribute_mem(struct dvb_ca_en50221 *en50221, en50221 20 drivers/media/pci/cx23885/cimax2.h extern int netup_ci_read_cam_ctl(struct dvb_ca_en50221 *en50221, en50221 22 drivers/media/pci/cx23885/cimax2.h extern int netup_ci_write_cam_ctl(struct dvb_ca_en50221 *en50221, en50221 24 drivers/media/pci/cx23885/cimax2.h extern int netup_ci_slot_reset(struct dvb_ca_en50221 *en50221, int slot); en50221 25 drivers/media/pci/cx23885/cimax2.h extern int netup_ci_slot_shutdown(struct dvb_ca_en50221 *en50221, int slot); en50221 26 drivers/media/pci/cx23885/cimax2.h extern int netup_ci_slot_ts_ctl(struct dvb_ca_en50221 *en50221, int slot); en50221 28 drivers/media/pci/cx23885/cimax2.h extern int netup_poll_ci_slot_status(struct dvb_ca_en50221 *en50221, en50221 28 drivers/media/pci/mantis/mantis_ca.c static int mantis_ca_read_attr_mem(struct dvb_ca_en50221 *en50221, int slot, int addr) en50221 30 drivers/media/pci/mantis/mantis_ca.c struct mantis_ca *ca = en50221->data; en50221 41 drivers/media/pci/mantis/mantis_ca.c static int mantis_ca_write_attr_mem(struct dvb_ca_en50221 *en50221, int slot, int addr, u8 data) en50221 43 drivers/media/pci/mantis/mantis_ca.c struct mantis_ca *ca = en50221->data; en50221 54 drivers/media/pci/mantis/mantis_ca.c static int mantis_ca_read_cam_ctl(struct dvb_ca_en50221 *en50221, int slot, u8 addr) en50221 56 drivers/media/pci/mantis/mantis_ca.c struct mantis_ca *ca = en50221->data; en50221 67 drivers/media/pci/mantis/mantis_ca.c static int mantis_ca_write_cam_ctl(struct dvb_ca_en50221 *en50221, int slot, u8 addr, u8 data) en50221 69 drivers/media/pci/mantis/mantis_ca.c struct mantis_ca *ca = en50221->data; en50221 80 drivers/media/pci/mantis/mantis_ca.c static int mantis_ca_slot_reset(struct dvb_ca_en50221 *en50221, int slot) en50221 82 drivers/media/pci/mantis/mantis_ca.c struct mantis_ca *ca = en50221->data; en50221 91 drivers/media/pci/mantis/mantis_ca.c dvb_ca_en50221_camready_irq(&ca->en50221, 0); en50221 96 drivers/media/pci/mantis/mantis_ca.c static int mantis_ca_slot_shutdown(struct dvb_ca_en50221 *en50221, int slot) en50221 98 drivers/media/pci/mantis/mantis_ca.c struct mantis_ca *ca = en50221->data; en50221 106 drivers/media/pci/mantis/mantis_ca.c static int mantis_ts_control(struct dvb_ca_en50221 *en50221, int slot) en50221 108 drivers/media/pci/mantis/mantis_ca.c struct mantis_ca *ca = en50221->data; en50221 117 drivers/media/pci/mantis/mantis_ca.c static int mantis_slot_status(struct dvb_ca_en50221 *en50221, int slot, int open) en50221 119 drivers/media/pci/mantis/mantis_ca.c struct mantis_ca *ca = en50221->data; en50221 152 drivers/media/pci/mantis/mantis_ca.c ca->en50221.owner = THIS_MODULE; en50221 153 drivers/media/pci/mantis/mantis_ca.c ca->en50221.read_attribute_mem = mantis_ca_read_attr_mem; en50221 154 drivers/media/pci/mantis/mantis_ca.c ca->en50221.write_attribute_mem = mantis_ca_write_attr_mem; en50221 155 drivers/media/pci/mantis/mantis_ca.c ca->en50221.read_cam_control = mantis_ca_read_cam_ctl; en50221 156 drivers/media/pci/mantis/mantis_ca.c ca->en50221.write_cam_control = mantis_ca_write_cam_ctl; en50221 157 drivers/media/pci/mantis/mantis_ca.c ca->en50221.slot_reset = mantis_ca_slot_reset; en50221 158 drivers/media/pci/mantis/mantis_ca.c ca->en50221.slot_shutdown = mantis_ca_slot_shutdown; en50221 159 drivers/media/pci/mantis/mantis_ca.c ca->en50221.slot_ts_enable = mantis_ts_control; en50221 160 drivers/media/pci/mantis/mantis_ca.c ca->en50221.poll_slot_status = mantis_slot_status; en50221 161 drivers/media/pci/mantis/mantis_ca.c ca->en50221.data = ca; en50221 170 drivers/media/pci/mantis/mantis_ca.c result = dvb_ca_en50221_init(dvb_adapter, &ca->en50221, ca_flags, 1); en50221 194 drivers/media/pci/mantis/mantis_ca.c dvb_ca_en50221_release(&ca->en50221); en50221 41 drivers/media/pci/mantis/mantis_evm.c dvb_ca_en50221_camchange_irq(&ca->en50221, en50221 50 drivers/media/pci/mantis/mantis_evm.c dvb_ca_en50221_camchange_irq(&ca->en50221, en50221 51 drivers/media/pci/mantis/mantis_link.h struct dvb_ca_en50221 en50221; en50221 88 drivers/media/pci/mantis/mantis_pcmcia.c dvb_ca_en50221_camchange_irq(&ca->en50221, en50221 95 drivers/media/pci/mantis/mantis_pcmcia.c dvb_ca_en50221_camchange_irq(&ca->en50221, en50221 52 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c static int netup_unidvb_ci_slot_ts_ctl(struct dvb_ca_en50221 *en50221, en50221 55 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c struct netup_ci_state *state = en50221->data; en50221 70 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c static int netup_unidvb_ci_slot_shutdown(struct dvb_ca_en50221 *en50221, en50221 73 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c struct netup_ci_state *state = en50221->data; en50221 80 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c static int netup_unidvb_ci_slot_reset(struct dvb_ca_en50221 *en50221, en50221 83 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c struct netup_ci_state *state = en50221->data; en50221 114 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c static int netup_unidvb_poll_ci_slot_status(struct dvb_ca_en50221 *en50221, en50221 117 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c struct netup_ci_state *state = en50221->data; en50221 136 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c static int netup_unidvb_ci_read_attribute_mem(struct dvb_ca_en50221 *en50221, en50221 139 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c struct netup_ci_state *state = en50221->data; en50221 148 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c static int netup_unidvb_ci_write_attribute_mem(struct dvb_ca_en50221 *en50221, en50221 151 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c struct netup_ci_state *state = en50221->data; en50221 160 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c static int netup_unidvb_ci_read_cam_ctl(struct dvb_ca_en50221 *en50221, en50221 163 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c struct netup_ci_state *state = en50221->data; en50221 172 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c static int netup_unidvb_ci_write_cam_ctl(struct dvb_ca_en50221 *en50221, en50221 175 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c struct netup_ci_state *state = en50221->data;