Lines Matching refs:dev

56 	struct netup_unidvb_dev *dev = state->dev;  in netup_unidvb_ci_slot_ts_ctl()  local
59 dev_dbg(&dev->pci_dev->dev, "%s(): CAM_CTRLSTAT=0x%x\n", in netup_unidvb_ci_slot_ts_ctl()
60 __func__, readw(dev->bmmio0 + CAM_CTRLSTAT_READ_SET)); in netup_unidvb_ci_slot_ts_ctl()
64 writew(BIT_CAM_BYPASS << shift, dev->bmmio0 + CAM_CTRLSTAT_CLR); in netup_unidvb_ci_slot_ts_ctl()
65 dev_dbg(&dev->pci_dev->dev, "%s(): CAM_CTRLSTAT=0x%x done\n", in netup_unidvb_ci_slot_ts_ctl()
66 __func__, readw(dev->bmmio0 + CAM_CTRLSTAT_READ_SET)); in netup_unidvb_ci_slot_ts_ctl()
74 struct netup_unidvb_dev *dev = state->dev; in netup_unidvb_ci_slot_shutdown() local
76 dev_dbg(&dev->pci_dev->dev, "%s()\n", __func__); in netup_unidvb_ci_slot_shutdown()
84 struct netup_unidvb_dev *dev = state->dev; in netup_unidvb_ci_slot_reset() local
90 dev_dbg(&dev->pci_dev->dev, "%s(): CAM_CTRLSTAT_READ_SET=0x%x\n", in netup_unidvb_ci_slot_reset()
91 __func__, readw(dev->bmmio0 + CAM_CTRLSTAT_READ_SET)); in netup_unidvb_ci_slot_reset()
95 writew(BIT_CAM_RESET << shift, dev->bmmio0 + CAM_CTRLSTAT_READ_SET); in netup_unidvb_ci_slot_reset()
96 dev_dbg(&dev->pci_dev->dev, "%s(): waiting for reset\n", __func__); in netup_unidvb_ci_slot_reset()
99 ci_stat = readw(dev->bmmio0 + CAM_CTRLSTAT_READ_SET); in netup_unidvb_ci_slot_reset()
105 dev_dbg(&dev->pci_dev->dev, in netup_unidvb_ci_slot_reset()
118 struct netup_unidvb_dev *dev = state->dev; in netup_unidvb_poll_ci_slot_status() local
122 dev_dbg(&dev->pci_dev->dev, "%s(): CAM_CTRLSTAT_READ_SET=0x%x\n", in netup_unidvb_poll_ci_slot_status()
123 __func__, readw(dev->bmmio0 + CAM_CTRLSTAT_READ_SET)); in netup_unidvb_poll_ci_slot_status()
124 ci_stat = readw(dev->bmmio0 + CAM_CTRLSTAT_READ_SET); in netup_unidvb_poll_ci_slot_status()
140 struct netup_unidvb_dev *dev = state->dev; in netup_unidvb_ci_read_attribute_mem() local
143 dev_dbg(&dev->pci_dev->dev, in netup_unidvb_ci_read_attribute_mem()
152 struct netup_unidvb_dev *dev = state->dev; in netup_unidvb_ci_write_attribute_mem() local
154 dev_dbg(&dev->pci_dev->dev, in netup_unidvb_ci_write_attribute_mem()
164 struct netup_unidvb_dev *dev = state->dev; in netup_unidvb_ci_read_cam_ctl() local
167 dev_dbg(&dev->pci_dev->dev, in netup_unidvb_ci_read_cam_ctl()
176 struct netup_unidvb_dev *dev = state->dev; in netup_unidvb_ci_write_cam_ctl() local
178 dev_dbg(&dev->pci_dev->dev, in netup_unidvb_ci_write_cam_ctl()
184 int netup_unidvb_ci_register(struct netup_unidvb_dev *dev, in netup_unidvb_ci_register() argument
191 dev_err(&pci_dev->dev, "%s(): invalid CI adapter %d\n", in netup_unidvb_ci_register()
195 state = &dev->ci[num]; in netup_unidvb_ci_register()
197 state->membase8_config = dev->bmmio1 + in netup_unidvb_ci_register()
199 state->membase8_io = dev->bmmio1 + in netup_unidvb_ci_register()
201 state->dev = dev; in netup_unidvb_ci_register()
212 result = dvb_ca_en50221_init(&dev->frontends[num].adapter, in netup_unidvb_ci_register()
215 dev_err(&pci_dev->dev, in netup_unidvb_ci_register()
220 writew(NETUP_UNIDVB_IRQ_CI, dev->bmmio0 + REG_IMASK_SET); in netup_unidvb_ci_register()
221 dev_info(&pci_dev->dev, in netup_unidvb_ci_register()
226 void netup_unidvb_ci_unregister(struct netup_unidvb_dev *dev, int num) in netup_unidvb_ci_unregister() argument
230 dev_dbg(&dev->pci_dev->dev, "%s()\n", __func__); in netup_unidvb_ci_unregister()
232 dev_err(&dev->pci_dev->dev, "%s(): invalid CI adapter %d\n", in netup_unidvb_ci_unregister()
236 state = &dev->ci[num]; in netup_unidvb_ci_unregister()