Lines Matching refs:lnbp22

29 struct lnbp22 {  struct
37 struct lnbp22 *lnbp22 = (struct lnbp22 *)fe->sec_priv; in lnbp22_set_voltage() argument
41 .buf = (char *)&lnbp22->config, in lnbp22_set_voltage()
42 .len = sizeof(lnbp22->config), in lnbp22_set_voltage()
48 lnbp22->config[3] = 0x60; /* Power down */ in lnbp22_set_voltage()
53 lnbp22->config[3] |= LNBP22_EN; in lnbp22_set_voltage()
56 lnbp22->config[3] |= (LNBP22_EN | LNBP22_VSEL); in lnbp22_set_voltage()
62 dprintk(1, "%s: 0x%02x)\n", __func__, lnbp22->config[3]); in lnbp22_set_voltage()
63 return (i2c_transfer(lnbp22->i2c, &msg, 1) == 1) ? 0 : -EIO; in lnbp22_set_voltage()
68 struct lnbp22 *lnbp22 = (struct lnbp22 *) fe->sec_priv; in lnbp22_enable_high_lnb_voltage() local
72 .buf = (char *)&lnbp22->config, in lnbp22_enable_high_lnb_voltage()
73 .len = sizeof(lnbp22->config), in lnbp22_enable_high_lnb_voltage()
78 lnbp22->config[3] |= LNBP22_LLC; in lnbp22_enable_high_lnb_voltage()
80 lnbp22->config[3] &= ~LNBP22_LLC; in lnbp22_enable_high_lnb_voltage()
82 return (i2c_transfer(lnbp22->i2c, &msg, 1) == 1) ? 0 : -EIO; in lnbp22_enable_high_lnb_voltage()
99 struct lnbp22 *lnbp22 = kmalloc(sizeof(struct lnbp22), GFP_KERNEL); in lnbp22_attach() local
100 if (!lnbp22) in lnbp22_attach()
104 lnbp22->config[0] = 0x00; /* ? */ in lnbp22_attach()
105 lnbp22->config[1] = 0x28; /* ? */ in lnbp22_attach()
106 lnbp22->config[2] = 0x48; /* ? */ in lnbp22_attach()
107 lnbp22->config[3] = 0x60; /* Power down */ in lnbp22_attach()
108 lnbp22->i2c = i2c; in lnbp22_attach()
109 fe->sec_priv = lnbp22; in lnbp22_attach()
114 kfree(lnbp22); in lnbp22_attach()