Lines Matching refs:dev
76 dev_printk(KERN_DEBUG, &dev->intf->dev, \
105 static inline void print_err_status(struct em28xx *dev, in print_err_status() argument
144 static inline int em28xx_dvb_urb_data_copy(struct em28xx *dev, struct urb *urb) in em28xx_dvb_urb_data_copy() argument
148 if (!dev) in em28xx_dvb_urb_data_copy()
151 if (dev->disconnected) in em28xx_dvb_urb_data_copy()
155 print_err_status(dev, -1, urb->status); in em28xx_dvb_urb_data_copy()
167 print_err_status(dev, i, urb->status); in em28xx_dvb_urb_data_copy()
173 dvb_dmx_swfilter(&dev->dvb->demux, urb->transfer_buffer, in em28xx_dvb_urb_data_copy()
177 print_err_status(dev, i, in em28xx_dvb_urb_data_copy()
184 dvb_dmx_swfilter(&dev->dvb->demux, in em28xx_dvb_urb_data_copy()
198 struct em28xx *dev = i2c_bus->dev; in em28xx_start_streaming() local
199 struct usb_device *udev = interface_to_usbdev(dev->intf); in em28xx_start_streaming()
202 if (dev->dvb_xfer_bulk) { in em28xx_start_streaming()
203 if (!dev->dvb_ep_bulk) in em28xx_start_streaming()
209 if (!dev->dvb_ep_isoc) in em28xx_start_streaming()
211 dvb_max_packet_size = dev->dvb_max_pkt_size_isoc; in em28xx_start_streaming()
215 dvb_alt = dev->dvb_alt_isoc; in em28xx_start_streaming()
218 if (!dev->board.has_dual_ts) in em28xx_start_streaming()
219 usb_set_interface(udev, dev->ifnum, dvb_alt); in em28xx_start_streaming()
221 rc = em28xx_set_mode(dev, EM28XX_DIGITAL_MODE); in em28xx_start_streaming()
230 return em28xx_init_usb_xfer(dev, EM28XX_DIGITAL_MODE, in em28xx_start_streaming()
231 dev->dvb_xfer_bulk, in em28xx_start_streaming()
241 struct em28xx *dev = i2c_bus->dev; in em28xx_stop_streaming() local
243 em28xx_stop_urbs(dev); in em28xx_stop_streaming()
291 struct em28xx *dev = i2c_bus->dev; in em28xx_dvb_bus_ctrl() local
294 return em28xx_set_mode(dev, EM28XX_DIGITAL_MODE); in em28xx_dvb_bus_ctrl()
296 return em28xx_set_mode(dev, EM28XX_SUSPEND); in em28xx_dvb_bus_ctrl()
467 static void hauppauge_hvr930c_init(struct em28xx *dev) in hauppauge_hvr930c_init() argument
512 em28xx_gpio_set(dev, hauppauge_hvr930c_init); in hauppauge_hvr930c_init()
513 em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, 0x40); in hauppauge_hvr930c_init()
515 em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, 0x44); in hauppauge_hvr930c_init()
518 dev->i2c_client[dev->def_i2c_bus].addr = 0x82 >> 1; in hauppauge_hvr930c_init()
521 i2c_master_send(&dev->i2c_client[dev->def_i2c_bus], in hauppauge_hvr930c_init()
523 em28xx_gpio_set(dev, hauppauge_hvr930c_end); in hauppauge_hvr930c_init()
527 em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, 0x44); in hauppauge_hvr930c_init()
530 em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, 0x45); in hauppauge_hvr930c_init()
534 static void terratec_h5_init(struct em28xx *dev) in terratec_h5_init() argument
569 em28xx_gpio_set(dev, terratec_h5_init); in terratec_h5_init()
570 em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, 0x40); in terratec_h5_init()
572 em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, 0x45); in terratec_h5_init()
575 dev->i2c_client[dev->def_i2c_bus].addr = 0x82 >> 1; in terratec_h5_init()
578 i2c_master_send(&dev->i2c_client[dev->def_i2c_bus], in terratec_h5_init()
580 em28xx_gpio_set(dev, terratec_h5_end); in terratec_h5_init()
583 static void terratec_htc_stick_init(struct em28xx *dev) in terratec_htc_stick_init() argument
622 em28xx_gpio_set(dev, terratec_htc_stick_init); in terratec_htc_stick_init()
624 em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, 0x40); in terratec_htc_stick_init()
626 em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, 0x44); in terratec_htc_stick_init()
629 dev->i2c_client[dev->def_i2c_bus].addr = 0x82 >> 1; in terratec_htc_stick_init()
632 i2c_master_send(&dev->i2c_client[dev->def_i2c_bus], in terratec_htc_stick_init()
635 em28xx_gpio_set(dev, terratec_htc_stick_end); in terratec_htc_stick_init()
638 static void terratec_htc_usb_xs_init(struct em28xx *dev) in terratec_htc_usb_xs_init() argument
679 em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, 0x40); in terratec_htc_usb_xs_init()
681 em28xx_gpio_set(dev, terratec_htc_usb_xs_init); in terratec_htc_usb_xs_init()
683 em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, 0x40); in terratec_htc_usb_xs_init()
685 em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, 0x44); in terratec_htc_usb_xs_init()
688 dev->i2c_client[dev->def_i2c_bus].addr = 0x82 >> 1; in terratec_htc_usb_xs_init()
691 i2c_master_send(&dev->i2c_client[dev->def_i2c_bus], in terratec_htc_usb_xs_init()
694 em28xx_gpio_set(dev, terratec_htc_usb_xs_end); in terratec_htc_usb_xs_init()
697 static void pctv_520e_init(struct em28xx *dev) in pctv_520e_init() argument
718 dev->i2c_client[dev->def_i2c_bus].addr = 0x82 >> 1; /* 0x41 */ in pctv_520e_init()
721 i2c_master_send(&dev->i2c_client[dev->def_i2c_bus], in pctv_520e_init()
729 struct em28xx *dev = i2c_bus->dev; in em28xx_pctv_290e_set_lna() local
731 struct em28xx_dvb *dvb = dev->dvb; in em28xx_pctv_290e_set_lna()
742 dev_err(&dev->intf->dev, "gpio request failed %d\n", ret); in em28xx_pctv_290e_set_lna()
748 dev_warn(&dev->intf->dev, "%s: LNA control is disabled (lna=%u)\n", in em28xx_pctv_290e_set_lna()
758 struct em28xx *dev = i2c_bus->dev; in em28xx_pctv_292e_set_lna() local
766 return em28xx_write_reg_bits(dev, EM2874_R80_GPIO_P0_CTRL, lna, 0x01); in em28xx_pctv_292e_set_lna()
797 static void px_bcud_init(struct em28xx *dev) in px_bcud_init() argument
840 em28xx_write_reg(dev, EM28XX_R06_I2C_CLK, 0x46); in px_bcud_init()
842 dev->dvb->i2c_client_demod->addr = 0x14; in px_bcud_init()
844 i2c_master_send(dev->dvb->i2c_client_demod, in px_bcud_init()
847 dev->dvb->i2c_client_demod->addr = 0x15; in px_bcud_init()
849 i2c_master_send(dev->dvb->i2c_client_demod, regs2[i].r, in px_bcud_init()
852 em28xx_write_reg_bits(dev, gpio[i].reg, gpio[i].val, in px_bcud_init()
938 static noinline_for_stack int em28xx_attach_xc3028(u8 addr, struct em28xx *dev) in em28xx_attach_xc3028() argument
945 cfg.i2c_adap = &dev->i2c_adap[dev->def_i2c_bus]; in em28xx_attach_xc3028()
949 em28xx_setup_xc3028(dev, &ctl); in em28xx_attach_xc3028()
952 if (!dev->dvb->fe[0]) { in em28xx_attach_xc3028()
953 dev_err(&dev->intf->dev, in em28xx_attach_xc3028()
958 fe = dvb_attach(xc2028_attach, dev->dvb->fe[0], &cfg); in em28xx_attach_xc3028()
960 dev_err(&dev->intf->dev, "xc3028 attach failed\n"); in em28xx_attach_xc3028()
961 dvb_frontend_detach(dev->dvb->fe[0]); in em28xx_attach_xc3028()
962 dev->dvb->fe[0] = NULL; in em28xx_attach_xc3028()
966 dev_info(&dev->intf->dev, "xc3028 attached\n"); in em28xx_attach_xc3028()
974 struct em28xx *dev, struct device *device) in em28xx_register_dvb() argument
983 dev_name(&dev->intf->dev), module, in em28xx_register_dvb()
986 dev_warn(&dev->intf->dev, in em28xx_register_dvb()
992 dvb->adapter.mdev = dev->media_dev; in em28xx_register_dvb()
1000 dvb->adapter.priv = &dev->i2c_bus[dev->def_i2c_bus]; in em28xx_register_dvb()
1005 dev_warn(&dev->intf->dev, in em28xx_register_dvb()
1015 dev_warn(&dev->intf->dev, in em28xx_register_dvb()
1034 dev_warn(&dev->intf->dev, in em28xx_register_dvb()
1045 dev_warn(&dev->intf->dev, in em28xx_register_dvb()
1054 dev_warn(&dev->intf->dev, in em28xx_register_dvb()
1063 dev_warn(&dev->intf->dev, in em28xx_register_dvb()
1071 dev_warn(&dev->intf->dev, in em28xx_register_dvb()
1081 if (!dev->has_video || dev->tuner_type == TUNER_ABSENT) in em28xx_register_dvb()
1130 static int em28174_dvb_init_pctv_460e(struct em28xx *dev) in em28174_dvb_init_pctv_460e() argument
1132 struct em28xx_dvb *dvb = dev->dvb; in em28174_dvb_init_pctv_460e()
1144 &dev->i2c_adap[dev->def_i2c_bus], in em28174_dvb_init_pctv_460e()
1155 &dev->i2c_adap[dev->def_i2c_bus], in em28174_dvb_init_pctv_460e()
1165 static int em28178_dvb_init_pctv_461e(struct em28xx *dev) in em28178_dvb_init_pctv_461e() argument
1167 struct em28xx_dvb *dvb = dev->dvb; in em28178_dvb_init_pctv_461e()
1182 &dev->i2c_adap[dev->def_i2c_bus], in em28178_dvb_init_pctv_461e()
1214 &dev->i2c_adap[dev->def_i2c_bus], in em28178_dvb_init_pctv_461e()
1225 static int em28178_dvb_init_pctv_461e_v2(struct em28xx *dev) in em28178_dvb_init_pctv_461e_v2() argument
1227 struct em28xx_dvb *dvb = dev->dvb; in em28178_dvb_init_pctv_461e_v2()
1243 &dev->i2c_adap[dev->def_i2c_bus], in em28178_dvb_init_pctv_461e_v2()
1269 &dev->i2c_adap[dev->def_i2c_bus], in em28178_dvb_init_pctv_461e_v2()
1280 static int em28178_dvb_init_pctv_292e(struct em28xx *dev) in em28178_dvb_init_pctv_292e() argument
1282 struct em28xx_dvb *dvb = dev->dvb; in em28178_dvb_init_pctv_292e()
1294 &dev->i2c_adap[dev->def_i2c_bus], in em28178_dvb_init_pctv_292e()
1303 si2157_config.mdev = dev->media_dev; in em28178_dvb_init_pctv_292e()
1317 static int em28178_dvb_init_terratec_t2_stick_hd(struct em28xx *dev) in em28178_dvb_init_terratec_t2_stick_hd() argument
1319 struct em28xx_dvb *dvb = dev->dvb; in em28178_dvb_init_terratec_t2_stick_hd()
1330 &dev->i2c_adap[dev->def_i2c_bus], in em28178_dvb_init_terratec_t2_stick_hd()
1340 si2157_config.mdev = dev->media_dev; in em28178_dvb_init_terratec_t2_stick_hd()
1353 static int em28178_dvb_init_plex_px_bcud(struct em28xx *dev) in em28178_dvb_init_plex_px_bcud() argument
1355 struct em28xx_dvb *dvb = dev->dvb; in em28178_dvb_init_plex_px_bcud()
1361 &dev->i2c_adap[dev->def_i2c_bus], in em28178_dvb_init_plex_px_bcud()
1379 px_bcud_init(dev); in em28178_dvb_init_plex_px_bcud()
1384 static int em28174_dvb_init_hauppauge_wintv_dualhd_dvb(struct em28xx *dev) in em28174_dvb_init_hauppauge_wintv_dualhd_dvb() argument
1386 struct em28xx_dvb *dvb = dev->dvb; in em28174_dvb_init_hauppauge_wintv_dualhd_dvb()
1397 addr = (dev->ts == PRIMARY_TS) ? 0x64 : 0x67; in em28174_dvb_init_hauppauge_wintv_dualhd_dvb()
1400 &dev->i2c_adap[dev->def_i2c_bus], in em28174_dvb_init_hauppauge_wintv_dualhd_dvb()
1410 si2157_config.mdev = dev->media_dev; in em28174_dvb_init_hauppauge_wintv_dualhd_dvb()
1412 addr = (dev->ts == PRIMARY_TS) ? 0x60 : 0x63; in em28174_dvb_init_hauppauge_wintv_dualhd_dvb()
1425 static int em28174_dvb_init_hauppauge_wintv_dualhd_01595(struct em28xx *dev) in em28174_dvb_init_hauppauge_wintv_dualhd_01595() argument
1427 struct em28xx_dvb *dvb = dev->dvb; in em28174_dvb_init_hauppauge_wintv_dualhd_01595()
1437 addr = (dev->ts == PRIMARY_TS) ? 0x59 : 0x0e; in em28174_dvb_init_hauppauge_wintv_dualhd_01595()
1440 &dev->i2c_adap[dev->def_i2c_bus], in em28174_dvb_init_hauppauge_wintv_dualhd_01595()
1450 si2157_config.mdev = dev->media_dev; in em28174_dvb_init_hauppauge_wintv_dualhd_01595()
1452 addr = (dev->ts == PRIMARY_TS) ? 0x60 : 0x62; in em28174_dvb_init_hauppauge_wintv_dualhd_01595()
1465 static int em2874_dvb_init_hauppauge_usb_quadhd(struct em28xx *dev) in em2874_dvb_init_hauppauge_usb_quadhd() argument
1467 struct em28xx_dvb *dvb = dev->dvb; in em2874_dvb_init_hauppauge_usb_quadhd()
1472 mxl692_config.id = (dev->ts == PRIMARY_TS) ? 0 : 1; in em2874_dvb_init_hauppauge_usb_quadhd()
1474 addr = (dev->ts == PRIMARY_TS) ? 0x60 : 0x63; in em2874_dvb_init_hauppauge_usb_quadhd()
1477 &dev->i2c_adap[dev->def_i2c_bus], in em2874_dvb_init_hauppauge_usb_quadhd()
1485 static int em28xx_dvb_init(struct em28xx *dev) in em28xx_dvb_init() argument
1491 if (dev->is_audio_only) { in em28xx_dvb_init()
1496 if (!dev->board.has_dvb) { in em28xx_dvb_init()
1501 dev_info(&dev->intf->dev, "Binding DVB extension\n"); in em28xx_dvb_init()
1507 dev->dvb = dvb; in em28xx_dvb_init()
1512 if (dev->dvb_xfer_bulk) { in em28xx_dvb_init()
1513 result = em28xx_alloc_urbs(dev, EM28XX_DIGITAL_MODE, in em28xx_dvb_init()
1514 dev->dvb_xfer_bulk, in em28xx_dvb_init()
1519 result = em28xx_alloc_urbs(dev, EM28XX_DIGITAL_MODE, in em28xx_dvb_init()
1520 dev->dvb_xfer_bulk, in em28xx_dvb_init()
1522 dev->dvb_max_pkt_size_isoc, in em28xx_dvb_init()
1526 dev_err(&dev->intf->dev, in em28xx_dvb_init()
1529 dev->dvb = NULL; in em28xx_dvb_init()
1533 mutex_lock(&dev->lock); in em28xx_dvb_init()
1534 em28xx_set_mode(dev, EM28XX_DIGITAL_MODE); in em28xx_dvb_init()
1536 switch (dev->model) { in em28xx_dvb_init()
1540 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1555 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1556 if (em28xx_attach_xc3028(0x61, dev) < 0) { in em28xx_dvb_init()
1564 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1565 if (em28xx_attach_xc3028(0x61, dev) < 0) { in em28xx_dvb_init()
1576 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1577 if (em28xx_attach_xc3028(0x61, dev) < 0) { in em28xx_dvb_init()
1593 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1597 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1599 if (em28xx_attach_xc3028(0x61, dev) < 0) { in em28xx_dvb_init()
1607 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1610 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1617 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1620 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1627 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1628 if (em28xx_attach_xc3028(0x61, dev) < 0) { in em28xx_dvb_init()
1637 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1640 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1650 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1651 &dev->intf->dev); in em28xx_dvb_init()
1652 if (em28xx_attach_xc3028(0x61, dev) < 0) { in em28xx_dvb_init()
1661 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1665 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1675 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1681 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1694 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1701 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1713 dev_err(&dev->intf->dev, in em28xx_dvb_init()
1729 hauppauge_hvr930c_init(dev); in em28xx_dvb_init()
1733 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1751 &dev->i2c_adap[dev->def_i2c_bus], &cfg)) { in em28xx_dvb_init()
1761 terratec_h5_init(dev); in em28xx_dvb_init()
1764 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1779 &dev->i2c_adap[dev->def_i2c_bus], 0x60)) { in em28xx_dvb_init()
1790 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1793 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1797 result = em28174_dvb_init_pctv_460e(dev); in em28xx_dvb_init()
1805 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1813 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1823 pctv_520e_init(dev); in em28xx_dvb_init()
1827 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1832 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1843 terratec_htc_stick_init(dev); in em28xx_dvb_init()
1847 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1855 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1862 terratec_htc_usb_xs_init(dev); in em28xx_dvb_init()
1866 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1874 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1883 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1891 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1899 struct i2c_adapter *adapter = &dev->i2c_adap[dev->def_i2c_bus]; in em28xx_dvb_init()
1903 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1924 &dev->i2c_adap[dev->def_i2c_bus]); in em28xx_dvb_init()
1928 &dev->i2c_adap[dev->def_i2c_bus], in em28xx_dvb_init()
1937 result = em28178_dvb_init_pctv_461e(dev); in em28xx_dvb_init()
1942 result = em28178_dvb_init_pctv_461e_v2(dev); in em28xx_dvb_init()
1947 result = em28178_dvb_init_pctv_292e(dev); in em28xx_dvb_init()
1952 result = em28178_dvb_init_terratec_t2_stick_hd(dev); in em28xx_dvb_init()
1957 result = em28178_dvb_init_plex_px_bcud(dev); in em28xx_dvb_init()
1962 result = em28174_dvb_init_hauppauge_wintv_dualhd_dvb(dev); in em28xx_dvb_init()
1967 result = em28174_dvb_init_hauppauge_wintv_dualhd_01595(dev); in em28xx_dvb_init()
1972 result = em2874_dvb_init_hauppauge_usb_quadhd(dev); in em28xx_dvb_init()
1977 dev_err(&dev->intf->dev, in em28xx_dvb_init()
1982 dev_err(&dev->intf->dev, "frontend initialization failed\n"); in em28xx_dvb_init()
1992 result = em28xx_register_dvb(dvb, THIS_MODULE, dev, &dev->intf->dev); in em28xx_dvb_init()
1997 if (dev->dvb_xfer_bulk) { in em28xx_dvb_init()
2000 dvb_alt = dev->dvb_alt_isoc; in em28xx_dvb_init()
2003 udev = interface_to_usbdev(dev->intf); in em28xx_dvb_init()
2004 usb_set_interface(udev, dev->ifnum, dvb_alt); in em28xx_dvb_init()
2005 dev_info(&dev->intf->dev, "DVB extension successfully initialized\n"); in em28xx_dvb_init()
2007 kref_get(&dev->ref); in em28xx_dvb_init()
2010 em28xx_set_mode(dev, EM28XX_SUSPEND); in em28xx_dvb_init()
2011 mutex_unlock(&dev->lock); in em28xx_dvb_init()
2015 em28xx_uninit_usb_xfer(dev, EM28XX_DIGITAL_MODE); in em28xx_dvb_init()
2017 dev->dvb = NULL; in em28xx_dvb_init()
2028 static int em28xx_dvb_fini(struct em28xx *dev) in em28xx_dvb_fini() argument
2032 if (dev->is_audio_only) { in em28xx_dvb_fini()
2037 if (!dev->board.has_dvb) { in em28xx_dvb_fini()
2042 if (!dev->dvb) in em28xx_dvb_fini()
2045 dev_info(&dev->intf->dev, "Closing DVB extension\n"); in em28xx_dvb_fini()
2047 dvb = dev->dvb; in em28xx_dvb_fini()
2049 em28xx_uninit_usb_xfer(dev, EM28XX_DIGITAL_MODE); in em28xx_dvb_fini()
2051 if (dev->disconnected) { in em28xx_dvb_fini()
2074 dev->dvb = NULL; in em28xx_dvb_fini()
2075 kref_put(&dev->ref, em28xx_free_device); in em28xx_dvb_fini()
2080 static int em28xx_dvb_suspend(struct em28xx *dev) in em28xx_dvb_suspend() argument
2084 if (dev->is_audio_only) in em28xx_dvb_suspend()
2087 if (!dev->board.has_dvb) in em28xx_dvb_suspend()
2090 dev_info(&dev->intf->dev, "Suspending DVB extension\n"); in em28xx_dvb_suspend()
2091 if (dev->dvb) { in em28xx_dvb_suspend()
2092 struct em28xx_dvb *dvb = dev->dvb; in em28xx_dvb_suspend()
2096 dev_info(&dev->intf->dev, "fe0 suspend %d\n", ret); in em28xx_dvb_suspend()
2100 dev_info(&dev->intf->dev, "fe1 suspend %d\n", ret); in em28xx_dvb_suspend()
2107 static int em28xx_dvb_resume(struct em28xx *dev) in em28xx_dvb_resume() argument
2111 if (dev->is_audio_only) in em28xx_dvb_resume()
2114 if (!dev->board.has_dvb) in em28xx_dvb_resume()
2117 dev_info(&dev->intf->dev, "Resuming DVB extension\n"); in em28xx_dvb_resume()
2118 if (dev->dvb) { in em28xx_dvb_resume()
2119 struct em28xx_dvb *dvb = dev->dvb; in em28xx_dvb_resume()
2123 dev_info(&dev->intf->dev, "fe0 resume %d\n", ret); in em28xx_dvb_resume()
2128 dev_info(&dev->intf->dev, "fe1 resume %d\n", ret); in em28xx_dvb_resume()