lnbp21             33 drivers/media/dvb-frontends/lnbp21.c 	struct lnbp21 *lnbp21 = (struct lnbp21 *) fe->sec_priv;
lnbp21             34 drivers/media/dvb-frontends/lnbp21.c 	struct i2c_msg msg = {	.addr = lnbp21->i2c_addr, .flags = 0,
lnbp21             35 drivers/media/dvb-frontends/lnbp21.c 				.buf = &lnbp21->config,
lnbp21             36 drivers/media/dvb-frontends/lnbp21.c 				.len = sizeof(lnbp21->config) };
lnbp21             38 drivers/media/dvb-frontends/lnbp21.c 	lnbp21->config &= ~(LNBP21_VSEL | LNBP21_EN);
lnbp21             44 drivers/media/dvb-frontends/lnbp21.c 		lnbp21->config |= LNBP21_EN;
lnbp21             47 drivers/media/dvb-frontends/lnbp21.c 		lnbp21->config |= (LNBP21_EN | LNBP21_VSEL);
lnbp21             53 drivers/media/dvb-frontends/lnbp21.c 	lnbp21->config |= lnbp21->override_or;
lnbp21             54 drivers/media/dvb-frontends/lnbp21.c 	lnbp21->config &= lnbp21->override_and;
lnbp21             56 drivers/media/dvb-frontends/lnbp21.c 	return (i2c_transfer(lnbp21->i2c, &msg, 1) == 1) ? 0 : -EIO;
lnbp21             61 drivers/media/dvb-frontends/lnbp21.c 	struct lnbp21 *lnbp21 = (struct lnbp21 *) fe->sec_priv;
lnbp21             62 drivers/media/dvb-frontends/lnbp21.c 	struct i2c_msg msg = {	.addr = lnbp21->i2c_addr, .flags = 0,
lnbp21             63 drivers/media/dvb-frontends/lnbp21.c 				.buf = &lnbp21->config,
lnbp21             64 drivers/media/dvb-frontends/lnbp21.c 				.len = sizeof(lnbp21->config) };
lnbp21             67 drivers/media/dvb-frontends/lnbp21.c 		lnbp21->config |= LNBP21_LLC;
lnbp21             69 drivers/media/dvb-frontends/lnbp21.c 		lnbp21->config &= ~LNBP21_LLC;
lnbp21             71 drivers/media/dvb-frontends/lnbp21.c 	lnbp21->config |= lnbp21->override_or;
lnbp21             72 drivers/media/dvb-frontends/lnbp21.c 	lnbp21->config &= lnbp21->override_and;
lnbp21             74 drivers/media/dvb-frontends/lnbp21.c 	return (i2c_transfer(lnbp21->i2c, &msg, 1) == 1) ? 0 : -EIO;
lnbp21             80 drivers/media/dvb-frontends/lnbp21.c 	struct lnbp21 *lnbp21 = (struct lnbp21 *) fe->sec_priv;
lnbp21             81 drivers/media/dvb-frontends/lnbp21.c 	struct i2c_msg msg = {	.addr = lnbp21->i2c_addr, .flags = 0,
lnbp21             82 drivers/media/dvb-frontends/lnbp21.c 				.buf = &lnbp21->config,
lnbp21             83 drivers/media/dvb-frontends/lnbp21.c 				.len = sizeof(lnbp21->config) };
lnbp21             87 drivers/media/dvb-frontends/lnbp21.c 		lnbp21->config &= ~LNBP21_TEN;
lnbp21             90 drivers/media/dvb-frontends/lnbp21.c 		lnbp21->config |= LNBP21_TEN;
lnbp21             96 drivers/media/dvb-frontends/lnbp21.c 	lnbp21->config |= lnbp21->override_or;
lnbp21             97 drivers/media/dvb-frontends/lnbp21.c 	lnbp21->config &= lnbp21->override_and;
lnbp21             99 drivers/media/dvb-frontends/lnbp21.c 	return (i2c_transfer(lnbp21->i2c, &msg, 1) == 1) ? 0 : -EIO;
lnbp21            116 drivers/media/dvb-frontends/lnbp21.c 	struct lnbp21 *lnbp21 = kmalloc(sizeof(struct lnbp21), GFP_KERNEL);
lnbp21            117 drivers/media/dvb-frontends/lnbp21.c 	if (!lnbp21)
lnbp21            121 drivers/media/dvb-frontends/lnbp21.c 	lnbp21->config = config;
lnbp21            122 drivers/media/dvb-frontends/lnbp21.c 	lnbp21->i2c = i2c;
lnbp21            123 drivers/media/dvb-frontends/lnbp21.c 	lnbp21->i2c_addr = i2c_addr;
lnbp21            124 drivers/media/dvb-frontends/lnbp21.c 	fe->sec_priv = lnbp21;
lnbp21            127 drivers/media/dvb-frontends/lnbp21.c 	lnbp21->override_or = override_set;
lnbp21            130 drivers/media/dvb-frontends/lnbp21.c 	lnbp21->override_and = ~override_clear;
lnbp21            134 drivers/media/dvb-frontends/lnbp21.c 		kfree(lnbp21);
lnbp21            146 drivers/media/dvb-frontends/lnbp21.c 	printk(KERN_INFO "LNBx2x attached on addr=%x\n", lnbp21->i2c_addr);