Lines Matching refs:budget
70 struct budget budget; member
148 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTHI); in ciintf_read_attribute_mem()
151 result = ttpci_budget_debiread(&budget_av->budget, DEBICICAM, address & 0xfff, 1, 0, 1); in ciintf_read_attribute_mem()
167 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTHI); in ciintf_write_attribute_mem()
170 result = ttpci_budget_debiwrite(&budget_av->budget, DEBICICAM, address & 0xfff, 1, value, 0, 1); in ciintf_write_attribute_mem()
186 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTLO); in ciintf_read_cam_control()
189 result = ttpci_budget_debiread(&budget_av->budget, DEBICICAM, address & 3, 1, 0, 0); in ciintf_read_cam_control()
206 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTLO); in ciintf_write_cam_control()
209 result = ttpci_budget_debiwrite(&budget_av->budget, DEBICICAM, address & 3, 1, value, 0, 0); in ciintf_write_cam_control()
220 struct saa7146_dev *saa = budget_av->budget.dev; in ciintf_slot_reset()
241 dvb_frontend_reinitialise(budget_av->budget.dvb_frontend); in ciintf_slot_reset()
249 struct saa7146_dev *saa = budget_av->budget.dev; in ciintf_slot_shutdown()
265 struct saa7146_dev *saa = budget_av->budget.dev; in ciintf_slot_ts_enable()
280 struct saa7146_dev *saa = budget_av->budget.dev; in ciintf_poll_slot_status()
307 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTLO); in ciintf_poll_slot_status()
308 result = ttpci_budget_debiread(&budget_av->budget, DEBICICAM, 0, 1, 0, 1); in ciintf_poll_slot_status()
341 struct saa7146_dev *saa = budget_av->budget.dev; in ciintf_init()
365 budget_av->budget.ci_present = 1; in ciintf_init()
368 if ((result = dvb_ca_en50221_init(&budget_av->budget.dvb_adapter, in ciintf_init()
384 struct saa7146_dev *saa = budget_av->budget.dev; in ciintf_deinit()
430 struct budget *budget = &budget_av->budget; in saa7113_init() local
431 struct saa7146_dev *saa = budget->dev; in saa7113_init()
437 if (i2c_writereg(&budget->i2c_adap, 0x4a, 0x01, 0x08) != 1) { in saa7113_init()
445 i2c_writereg(&budget->i2c_adap, 0x4a, *data, *(data + 1)); in saa7113_init()
449 dprintk(1, "saa7113 status=%02x\n", i2c_readreg(&budget->i2c_adap, 0x4a, 0x1f)); in saa7113_init()
456 struct budget *budget = &budget_av->budget; in saa7113_setinput() local
462 i2c_writereg(&budget->i2c_adap, 0x4a, 0x02, 0xc7); in saa7113_setinput()
463 i2c_writereg(&budget->i2c_adap, 0x4a, 0x09, 0x80); in saa7113_setinput()
465 i2c_writereg(&budget->i2c_adap, 0x4a, 0x02, 0xc0); in saa7113_setinput()
466 i2c_writereg(&budget->i2c_adap, 0x4a, 0x09, 0x00); in saa7113_setinput()
510 struct budget *budget = (struct budget *) fe->dvb->priv; in philips_su1278_ty_ci_tuner_set_params() local
536 if (i2c_transfer(&budget->i2c_adap, &msg, 1) != 1) in philips_su1278_ty_ci_tuner_set_params()
623 struct budget *budget = (struct budget *) fe->dvb->priv; in philips_cu1216_tuner_set_params() local
643 if (i2c_transfer(&budget->i2c_adap, &msg, 1) != 1) in philips_cu1216_tuner_set_params()
652 if (i2c_transfer(&budget->i2c_adap, &msg, 1) == 1 && (buf[0] & 0x40)) in philips_cu1216_tuner_set_params()
664 if (i2c_transfer(&budget->i2c_adap, &msg, 1) != 1) in philips_cu1216_tuner_set_params()
687 struct budget *budget = (struct budget *) fe->dvb->priv; in philips_tu1216_tuner_init() local
694 if (i2c_transfer(&budget->i2c_adap, &tuner_msg, 1) != 1) in philips_tu1216_tuner_init()
704 struct budget *budget = (struct budget *) fe->dvb->priv; in philips_tu1216_tuner_set_params() local
778 if (i2c_transfer(&budget->i2c_adap, &tuner_msg, 1) != 1) in philips_tu1216_tuner_set_params()
788 struct budget *budget = (struct budget *) fe->dvb->priv; in philips_tu1216_request_firmware() local
790 return request_firmware(fw, name, &budget->dev->pci->dev); in philips_tu1216_request_firmware()
1176 if ((i2c_transfer(&budget_av->budget.i2c_adap, msg, 2) != 2) in read_pwm()
1215 struct saa7146_dev * saa = budget_av->budget.dev; in frontend_init()
1251 &budget_av->budget.i2c_adap); in frontend_init()
1253 dvb_attach(tua6100_attach, fe, 0x60, &budget_av->budget.i2c_adap); in frontend_init()
1257 &budget_av->budget.i2c_adap); in frontend_init()
1271 &budget_av->budget.i2c_adap); in frontend_init()
1274 &budget_av->budget.i2c_adap, in frontend_init()
1281 &budget_av->budget.i2c_adap); in frontend_init()
1290 if ((fe = dvb_attach(stb0899_attach, &knc1_dvbs2_config, &budget_av->budget.i2c_adap))) in frontend_init()
1291 dvb_attach(tda8261_attach, fe, &sd1878c_config, &budget_av->budget.i2c_adap); in frontend_init()
1296 &budget_av->budget.i2c_adap); in frontend_init()
1307 budget_av->budget.dev->i2c_bitrate = SAA7146_I2C_BUS_BIT_RATE_240; in frontend_init()
1309 &budget_av->budget.i2c_adap, in frontend_init()
1313 &budget_av->budget.i2c_adap, in frontend_init()
1326 budget_av->budget.dev->i2c_bitrate = SAA7146_I2C_BUS_BIT_RATE_240; in frontend_init()
1329 &budget_av->budget.i2c_adap, in frontend_init()
1342 &budget_av->budget.i2c_adap); in frontend_init()
1359 budget_av->budget.dvb_frontend = fe; in frontend_init()
1361 if (dvb_register_frontend(&budget_av->budget.dvb_adapter, in frontend_init()
1362 budget_av->budget.dvb_frontend)) { in frontend_init()
1364 dvb_frontend_detach(budget_av->budget.dvb_frontend); in frontend_init()
1365 budget_av->budget.dvb_frontend = NULL; in frontend_init()
1397 if (budget_av->budget.ci_present) in budget_av_detach()
1400 if (budget_av->budget.dvb_frontend != NULL) { in budget_av_detach()
1401 dvb_unregister_frontend(budget_av->budget.dvb_frontend); in budget_av_detach()
1402 dvb_frontend_detach(budget_av->budget.dvb_frontend); in budget_av_detach()
1404 err = ttpci_budget_deinit(&budget_av->budget); in budget_av_detach()
1462 budget_av->budget.ci_present = 0; in budget_av_attach()
1466 err = ttpci_budget_init(&budget_av->budget, dev, info, THIS_MODULE, in budget_av_attach()
1507 mac = budget_av->budget.dvb_adapter.proposed_mac; in budget_av_attach()
1508 if (i2c_readregs(&budget_av->budget.i2c_adap, 0xa0, 0x30, mac, 6)) { in budget_av_attach()
1510 budget_av->budget.dvb_adapter.num); in budget_av_attach()
1514 budget_av->budget.dvb_adapter.num, mac); in budget_av_attach()
1517 budget_av->budget.dvb_adapter.priv = budget_av; in budget_av_attach()
1521 ttpci_budget_init_hooks(&budget_av->budget); in budget_av_attach()