Lines Matching full:gp
282 const struct ad1843_gain *gp = ad1843_gain[id]; in ad1843_get_gain_max() local
285 ret = (1 << gp->lfield->nbits); in ad1843_get_gain_max()
286 if (!gp->lmute) in ad1843_get_gain_max()
299 const struct ad1843_gain *gp = ad1843_gain[id]; in ad1843_get_gain() local
300 unsigned short mask = (1 << gp->lfield->nbits) - 1; in ad1843_get_gain()
302 ad1843_read_multi(ad1843, 2, gp->lfield, &lg, gp->rfield, &rg); in ad1843_get_gain()
303 if (gp->negative) { in ad1843_get_gain()
307 if (gp->lmute) { in ad1843_get_gain()
308 ad1843_read_multi(ad1843, 2, gp->lmute, &lm, gp->rmute, &rm); in ad1843_get_gain()
325 const struct ad1843_gain *gp = ad1843_gain[id]; in ad1843_set_gain() local
326 unsigned short mask = (1 << gp->lfield->nbits) - 1; in ad1843_set_gain()
333 if (gp->negative) { in ad1843_set_gain()
337 if (gp->lmute) in ad1843_set_gain()
338 ad1843_write_multi(ad1843, 2, gp->lmute, lm, gp->rmute, rm); in ad1843_set_gain()
339 ad1843_write_multi(ad1843, 2, gp->lfield, lg, gp->rfield, rg); in ad1843_set_gain()