Lines Matching refs:unitid
97 dprintk(DBGLVL_API, "%s(nr=%d, unitid=0x%x)\n", __func__,
98 port->nr, port->hwcfg.unitid);
105 ret = saa7164_cmd_send(port->dev, port->hwcfg.unitid,
111 ret = saa7164_cmd_send(port->dev, port->hwcfg.unitid,
121 ret = saa7164_cmd_send(port->dev, port->hwcfg.unitid,
127 ret = saa7164_cmd_send(port->dev, port->hwcfg.unitid,
180 dprintk(DBGLVL_ENC, "%s() unitid=0x%x\n", __func__,
240 dprintk(DBGLVL_ENC, "%s() unitid=0x%x\n", __func__,
377 dprintk(DBGLVL_ENC, "%s() unitid=0x%x ctl=%d, val=%d\n",
465 ret = saa7164_cmd_send(port->dev, port->audfeat.unitid, SET_CUR,
483 ret = saa7164_cmd_send(port->dev, port->audfeat.unitid, GET_MIN,
488 ret = saa7164_cmd_send(port->dev, port->audfeat.unitid, GET_MAX,
493 ret = saa7164_cmd_send(port->dev, port->audfeat.unitid, GET_CUR,
508 ret = saa7164_cmd_send(port->dev, port->audfeat.unitid, SET_CUR,
514 ret = saa7164_cmd_send(port->dev, port->audfeat.unitid, SET_CUR,
519 ret = saa7164_cmd_send(port->dev, port->audfeat.unitid, GET_CUR,
546 ret = saa7164_cmd_send(port->dev, port->audfeat.unitid, SET_CUR,
561 ret = saa7164_cmd_send(port->dev, port->tunerunit.unitid, SET_CUR,
582 ret = saa7164_cmd_send(port->dev, port->tunerunit.unitid, SET_CUR,
647 ret = saa7164_cmd_send(dev, port->ifunit.unitid, GET_LEN,
654 ret = saa7164_cmd_send(dev, port->ifunit.unitid, SET_CUR,
773 dprintk(DBGLVL_API, "%s(nr=%d unitid=0x%x,%d)\n",
774 __func__, port->nr, port->hwcfg.unitid, mode);
776 ret = saa7164_cmd_send(port->dev, port->hwcfg.unitid, SET_CUR,
779 printk(KERN_ERR "%s(portnr %d unitid 0x%x) error, ret = 0x%x\n",
780 __func__, port->nr, port->hwcfg.unitid, ret);
1007 dprintk(DBGLVL_API, " unitid = 0x%x\n",
1008 vcoutputtermhdr->unitid);
1128 dprintk(DBGLVL_API, " unitid = 0x%x\n",
1129 tunerunithdr->unitid);
1141 if (tunerunithdr->unitid == tunerunithdr->iunit) {
1156 dprintk(DBGLVL_API, " unitid = 0x%x\n",
1157 psel->unitid);
1166 dprintk(DBGLVL_API, " unitid = 0x%x\n",
1167 pdh->unitid);
1186 dprintk(DBGLVL_API, " unitid = 0x%x\n",
1187 afd->unitid);
1205 dprintk(DBGLVL_API, " unitid = 0x%x\n", edh->unitid);
1211 if (edh->iunit == edh->unitid) {
1226 dprintk(DBGLVL_API, " unitid = 0x%x\n",
1227 exthdr->unitid);
1302 dprintk(DBGLVL_API, " 4.%x\n", hdr->unitid);
1356 int unitid;
1376 unitid = saa7164_i2caddr_to_unitid(bus, addr);
1377 if (unitid < 0) {
1379 "%s() error, cannot translate regaddr 0x%x to unitid\n",
1384 ret = saa7164_cmd_send(bus->dev, unitid, GET_LEN,
1397 ret = saa7164_cmd_send(bus->dev, unitid, GET_CUR,
1417 int unitid;
1430 unitid = saa7164_i2caddr_to_unitid(bus, addr);
1431 if (unitid < 0) {
1433 "%s() error, cannot translate regaddr 0x%x to unitid\n",
1446 ret = saa7164_cmd_send(bus->dev, unitid, GET_LEN,
1453 dprintk(DBGLVL_API, "%s() len = %d bytes unitid=0x%x\n", __func__,
1454 len, unitid);
1469 ret = saa7164_cmd_send(bus->dev, unitid, SET_CUR,
1477 static int saa7164_api_modify_gpio(struct saa7164_dev *dev, u8 unitid,
1484 __func__, unitid, pin, state);
1492 ret = saa7164_cmd_send(dev, unitid, SET_CUR,
1501 int saa7164_api_set_gpiobit(struct saa7164_dev *dev, u8 unitid,
1504 return saa7164_api_modify_gpio(dev, unitid, pin, 1);
1507 int saa7164_api_clear_gpiobit(struct saa7164_dev *dev, u8 unitid,
1510 return saa7164_api_modify_gpio(dev, unitid, pin, 0);