Lines Matching refs:budget

53 	struct budget budget;  member
131 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTHI); in ciintf_read_attribute_mem()
134 result = ttpci_budget_debiread(&budget_av->budget, DEBICICAM, address & 0xfff, 1, 0, 1); in ciintf_read_attribute_mem()
150 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTHI); in ciintf_write_attribute_mem()
153 result = ttpci_budget_debiwrite(&budget_av->budget, DEBICICAM, address & 0xfff, 1, value, 0, 1); in ciintf_write_attribute_mem()
169 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTLO); in ciintf_read_cam_control()
172 result = ttpci_budget_debiread(&budget_av->budget, DEBICICAM, address & 3, 1, 0, 0); in ciintf_read_cam_control()
189 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTLO); in ciintf_write_cam_control()
192 result = ttpci_budget_debiwrite(&budget_av->budget, DEBICICAM, address & 3, 1, value, 0, 0); in ciintf_write_cam_control()
203 struct saa7146_dev *saa = budget_av->budget.dev; in ciintf_slot_reset()
224 dvb_frontend_reinitialise(budget_av->budget.dvb_frontend); in ciintf_slot_reset()
232 struct saa7146_dev *saa = budget_av->budget.dev; in ciintf_slot_shutdown()
248 struct saa7146_dev *saa = budget_av->budget.dev; in ciintf_slot_ts_enable()
263 struct saa7146_dev *saa = budget_av->budget.dev; in ciintf_poll_slot_status()
290 saa7146_setgpio(budget_av->budget.dev, 1, SAA7146_GPIO_OUTLO); in ciintf_poll_slot_status()
291 result = ttpci_budget_debiread(&budget_av->budget, DEBICICAM, 0, 1, 0, 1); in ciintf_poll_slot_status()
324 struct saa7146_dev *saa = budget_av->budget.dev; in ciintf_init()
348 budget_av->budget.ci_present = 1; in ciintf_init()
351 if ((result = dvb_ca_en50221_init(&budget_av->budget.dvb_adapter, in ciintf_init()
367 struct saa7146_dev *saa = budget_av->budget.dev; in ciintf_deinit()
413 struct budget *budget = &budget_av->budget; in saa7113_init() local
414 struct saa7146_dev *saa = budget->dev; in saa7113_init()
420 if (i2c_writereg(&budget->i2c_adap, 0x4a, 0x01, 0x08) != 1) { in saa7113_init()
428 i2c_writereg(&budget->i2c_adap, 0x4a, *data, *(data + 1)); in saa7113_init()
432 dprintk(1, "saa7113 status=%02x\n", i2c_readreg(&budget->i2c_adap, 0x4a, 0x1f)); in saa7113_init()
439 struct budget *budget = &budget_av->budget; in saa7113_setinput() local
445 i2c_writereg(&budget->i2c_adap, 0x4a, 0x02, 0xc7); in saa7113_setinput()
446 i2c_writereg(&budget->i2c_adap, 0x4a, 0x09, 0x80); in saa7113_setinput()
448 i2c_writereg(&budget->i2c_adap, 0x4a, 0x02, 0xc0); in saa7113_setinput()
449 i2c_writereg(&budget->i2c_adap, 0x4a, 0x09, 0x00); in saa7113_setinput()
493 struct budget *budget = (struct budget *) fe->dvb->priv; in philips_su1278_ty_ci_tuner_set_params() local
519 if (i2c_transfer(&budget->i2c_adap, &msg, 1) != 1) in philips_su1278_ty_ci_tuner_set_params()
606 struct budget *budget = (struct budget *) fe->dvb->priv; in philips_cu1216_tuner_set_params() local
626 if (i2c_transfer(&budget->i2c_adap, &msg, 1) != 1) in philips_cu1216_tuner_set_params()
635 if (i2c_transfer(&budget->i2c_adap, &msg, 1) == 1 && (buf[0] & 0x40)) in philips_cu1216_tuner_set_params()
647 if (i2c_transfer(&budget->i2c_adap, &msg, 1) != 1) in philips_cu1216_tuner_set_params()
670 struct budget *budget = (struct budget *) fe->dvb->priv; in philips_tu1216_tuner_init() local
677 if (i2c_transfer(&budget->i2c_adap, &tuner_msg, 1) != 1) in philips_tu1216_tuner_init()
687 struct budget *budget = (struct budget *) fe->dvb->priv; in philips_tu1216_tuner_set_params() local
761 if (i2c_transfer(&budget->i2c_adap, &tuner_msg, 1) != 1) in philips_tu1216_tuner_set_params()
771 struct budget *budget = (struct budget *) fe->dvb->priv; in philips_tu1216_request_firmware() local
773 return request_firmware(fw, name, &budget->dev->pci->dev); in philips_tu1216_request_firmware()
1159 if ((i2c_transfer(&budget_av->budget.i2c_adap, msg, 2) != 2) in read_pwm()
1198 struct saa7146_dev * saa = budget_av->budget.dev; in frontend_init()
1234 &budget_av->budget.i2c_adap); in frontend_init()
1236 dvb_attach(tua6100_attach, fe, 0x60, &budget_av->budget.i2c_adap); in frontend_init()
1240 &budget_av->budget.i2c_adap); in frontend_init()
1254 &budget_av->budget.i2c_adap); in frontend_init()
1257 &budget_av->budget.i2c_adap, in frontend_init()
1264 &budget_av->budget.i2c_adap); in frontend_init()
1273 if ((fe = dvb_attach(stb0899_attach, &knc1_dvbs2_config, &budget_av->budget.i2c_adap))) in frontend_init()
1274 dvb_attach(tda8261_attach, fe, &sd1878c_config, &budget_av->budget.i2c_adap); in frontend_init()
1279 &budget_av->budget.i2c_adap); in frontend_init()
1290 budget_av->budget.dev->i2c_bitrate = SAA7146_I2C_BUS_BIT_RATE_240; in frontend_init()
1292 &budget_av->budget.i2c_adap, in frontend_init()
1296 &budget_av->budget.i2c_adap, in frontend_init()
1309 budget_av->budget.dev->i2c_bitrate = SAA7146_I2C_BUS_BIT_RATE_240; in frontend_init()
1312 &budget_av->budget.i2c_adap, in frontend_init()
1325 &budget_av->budget.i2c_adap); in frontend_init()
1342 budget_av->budget.dvb_frontend = fe; in frontend_init()
1344 if (dvb_register_frontend(&budget_av->budget.dvb_adapter, in frontend_init()
1345 budget_av->budget.dvb_frontend)) { in frontend_init()
1347 dvb_frontend_detach(budget_av->budget.dvb_frontend); in frontend_init()
1348 budget_av->budget.dvb_frontend = NULL; in frontend_init()
1380 if (budget_av->budget.ci_present) in budget_av_detach()
1383 if (budget_av->budget.dvb_frontend != NULL) { in budget_av_detach()
1384 dvb_unregister_frontend(budget_av->budget.dvb_frontend); in budget_av_detach()
1385 dvb_frontend_detach(budget_av->budget.dvb_frontend); in budget_av_detach()
1387 err = ttpci_budget_deinit(&budget_av->budget); in budget_av_detach()
1445 budget_av->budget.ci_present = 0; in budget_av_attach()
1449 err = ttpci_budget_init(&budget_av->budget, dev, info, THIS_MODULE, in budget_av_attach()
1490 mac = budget_av->budget.dvb_adapter.proposed_mac; in budget_av_attach()
1491 if (i2c_readregs(&budget_av->budget.i2c_adap, 0xa0, 0x30, mac, 6)) { in budget_av_attach()
1493 budget_av->budget.dvb_adapter.num); in budget_av_attach()
1497 budget_av->budget.dvb_adapter.num, mac); in budget_av_attach()
1500 budget_av->budget.dvb_adapter.priv = budget_av; in budget_av_attach()
1504 ttpci_budget_init_hooks(&budget_av->budget); in budget_av_attach()