Lines Matching refs:ca

30 	struct mantis_ca *ca = en50221->data;  in mantis_ca_read_attr_mem()  local
31 struct mantis_pci *mantis = ca->ca_priv; in mantis_ca_read_attr_mem()
38 return mantis_hif_read_mem(ca, addr); in mantis_ca_read_attr_mem()
43 struct mantis_ca *ca = en50221->data; in mantis_ca_write_attr_mem() local
44 struct mantis_pci *mantis = ca->ca_priv; in mantis_ca_write_attr_mem()
51 return mantis_hif_write_mem(ca, addr, data); in mantis_ca_write_attr_mem()
56 struct mantis_ca *ca = en50221->data; in mantis_ca_read_cam_ctl() local
57 struct mantis_pci *mantis = ca->ca_priv; in mantis_ca_read_cam_ctl()
64 return mantis_hif_read_iom(ca, addr); in mantis_ca_read_cam_ctl()
69 struct mantis_ca *ca = en50221->data; in mantis_ca_write_cam_ctl() local
70 struct mantis_pci *mantis = ca->ca_priv; in mantis_ca_write_cam_ctl()
77 return mantis_hif_write_iom(ca, addr, data); in mantis_ca_write_cam_ctl()
82 struct mantis_ca *ca = en50221->data; in mantis_ca_slot_reset() local
83 struct mantis_pci *mantis = ca->ca_priv; in mantis_ca_slot_reset()
91 dvb_ca_en50221_camready_irq(&ca->en50221, 0); in mantis_ca_slot_reset()
98 struct mantis_ca *ca = en50221->data; in mantis_ca_slot_shutdown() local
99 struct mantis_pci *mantis = ca->ca_priv; in mantis_ca_slot_shutdown()
108 struct mantis_ca *ca = en50221->data; in mantis_ts_control() local
109 struct mantis_pci *mantis = ca->ca_priv; in mantis_ts_control()
118 struct mantis_ca *ca = en50221->data; in mantis_slot_status() local
119 struct mantis_pci *mantis = ca->ca_priv; in mantis_slot_status()
123 if (ca->slot_state == MODULE_INSERTED) { in mantis_slot_status()
136 struct mantis_ca *ca; in mantis_ca_init() local
140 ca = kzalloc(sizeof(struct mantis_ca), GFP_KERNEL); in mantis_ca_init()
141 if (!ca) { in mantis_ca_init()
147 ca->ca_priv = mantis; in mantis_ca_init()
148 mantis->mantis_ca = ca; in mantis_ca_init()
151 ca->en50221.owner = THIS_MODULE; in mantis_ca_init()
152 ca->en50221.read_attribute_mem = mantis_ca_read_attr_mem; in mantis_ca_init()
153 ca->en50221.write_attribute_mem = mantis_ca_write_attr_mem; in mantis_ca_init()
154 ca->en50221.read_cam_control = mantis_ca_read_cam_ctl; in mantis_ca_init()
155 ca->en50221.write_cam_control = mantis_ca_write_cam_ctl; in mantis_ca_init()
156 ca->en50221.slot_reset = mantis_ca_slot_reset; in mantis_ca_init()
157 ca->en50221.slot_shutdown = mantis_ca_slot_shutdown; in mantis_ca_init()
158 ca->en50221.slot_ts_enable = mantis_ts_control; in mantis_ca_init()
159 ca->en50221.poll_slot_status = mantis_slot_status; in mantis_ca_init()
160 ca->en50221.data = ca; in mantis_ca_init()
162 mutex_init(&ca->ca_lock); in mantis_ca_init()
164 init_waitqueue_head(&ca->hif_data_wq); in mantis_ca_init()
165 init_waitqueue_head(&ca->hif_opdone_wq); in mantis_ca_init()
166 init_waitqueue_head(&ca->hif_write_wq); in mantis_ca_init()
169 result = dvb_ca_en50221_init(dvb_adapter, &ca->en50221, ca_flags, 1); in mantis_ca_init()
175 mantis_evmgr_init(ca); in mantis_ca_init()
178 kfree(ca); in mantis_ca_init()
185 struct mantis_ca *ca = mantis->mantis_ca; in mantis_ca_exit() local
188 if (!ca) in mantis_ca_exit()
191 mantis_evmgr_exit(ca); in mantis_ca_exit()
193 dvb_ca_en50221_release(&ca->en50221); in mantis_ca_exit()
195 kfree(ca); in mantis_ca_exit()