Lines Matching refs:lnb
49 static int lnb_command(struct ddb *dev, u32 link, u32 lnb, u32 cmd) in lnb_command() argument
53 v = LNB_TONE & (dev->link[link].lnb.tone << (15 - lnb)); in lnb_command()
54 ddbwritel(dev, cmd | v, tag | LNB_CONTROL(lnb)); in lnb_command()
56 v = ddbreadl(dev, tag | LNB_CONTROL(lnb)); in lnb_command()
63 __func__, lnb, cmd); in lnb_command()
76 u32 fmode = dev->link[port->lnr].lnb.fmode; in max_send_master_cmd()
83 mutex_lock(&dev->link[port->lnr].lnb.lock); in max_send_master_cmd()
88 mutex_unlock(&dev->link[port->lnr].lnb.lock); in max_send_master_cmd()
125 if (!(dev->link[link].lnb.tone & mask)) in lnb_set_tone()
127 dev->link[link].lnb.tone &= ~(1ULL << input); in lnb_set_tone()
130 if (dev->link[link].lnb.tone & mask) in lnb_set_tone()
132 dev->link[link].lnb.tone |= (1ULL << input); in lnb_set_tone()
148 if (dev->link[link].lnb.oldvoltage[input] == voltage) in lnb_set_voltage()
152 if (dev->link[link].lnb.voltage[input]) in lnb_set_voltage()
166 dev->link[link].lnb.oldvoltage[input] = voltage; in lnb_set_voltage()
183 dev->link[port->lnr].lnb.voltage[dvb->input & 3] & bit; in max_set_input_unlocked()
185 dev->link[port->lnr].lnb.voltage[dvb->input & 3] &= ~bit; in max_set_input_unlocked()
187 dev->link[port->lnr].lnb.voltage[dvb->input & 3] |= obit; in max_set_input_unlocked()
201 u32 fmode = dev->link[port->lnr].lnb.fmode; in max_set_tone()
203 mutex_lock(&dev->link[port->lnr].lnb.lock); in max_set_tone()
227 mutex_unlock(&dev->link[port->lnr].lnb.lock); in max_set_tone()
238 u32 nv, ov = dev->link[port->lnr].lnb.voltages; in max_set_voltage()
240 u32 fmode = dev->link[port->lnr].lnb.fmode; in max_set_voltage()
242 mutex_lock(&dev->link[port->lnr].lnb.lock); in max_set_voltage()
252 dev->link[port->lnr].lnb.voltage[dvb->input] &= in max_set_voltage()
255 dev->link[port->lnr].lnb.voltage[dvb->input] |= in max_set_voltage()
263 dev->link[port->lnr].lnb.voltages &= in max_set_voltage()
266 dev->link[port->lnr].lnb.voltages |= in max_set_voltage()
269 nv = dev->link[port->lnr].lnb.voltages; in max_set_voltage()
331 mutex_unlock(&dev->link[port->lnr].lnb.lock); in max_set_voltage()
359 if (link->lnb.fmode == fm) in ddb_lnb_init_fmode()
362 mutex_lock(&link->lnb.lock); in ddb_lnb_init_fmode()
385 link->lnb.fmode = fm; in ddb_lnb_init_fmode()
386 mutex_unlock(&link->lnb.lock); in ddb_lnb_init_fmode()