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);
1130 dprintk(DBGLVL_API, " unitid = 0x%x\n",
1131 tunerunithdr->unitid);
1143 if (tunerunithdr->unitid == tunerunithdr->iunit) {
1158 dprintk(DBGLVL_API, " unitid = 0x%x\n",
1159 psel->unitid);
1168 dprintk(DBGLVL_API, " unitid = 0x%x\n",
1169 pdh->unitid);
1188 dprintk(DBGLVL_API, " unitid = 0x%x\n",
1189 afd->unitid);
1207 dprintk(DBGLVL_API, " unitid = 0x%x\n", edh->unitid);
1213 if (edh->iunit == edh->unitid) {
1228 dprintk(DBGLVL_API, " unitid = 0x%x\n",
1229 exthdr->unitid);
1304 dprintk(DBGLVL_API, " 4.%x\n", hdr->unitid);
1358 int unitid;
1378 unitid = saa7164_i2caddr_to_unitid(bus, addr);
1379 if (unitid < 0) {
1381 "%s() error, cannot translate regaddr 0x%x to unitid\n",
1386 ret = saa7164_cmd_send(bus->dev, unitid, GET_LEN,
1399 ret = saa7164_cmd_send(bus->dev, unitid, GET_CUR,
1419 int unitid;
1432 unitid = saa7164_i2caddr_to_unitid(bus, addr);
1433 if (unitid < 0) {
1435 "%s() error, cannot translate regaddr 0x%x to unitid\n",
1448 ret = saa7164_cmd_send(bus->dev, unitid, GET_LEN,
1455 dprintk(DBGLVL_API, "%s() len = %d bytes unitid=0x%x\n", __func__,
1456 len, unitid);
1471 ret = saa7164_cmd_send(bus->dev, unitid, SET_CUR,
1479 static int saa7164_api_modify_gpio(struct saa7164_dev *dev, u8 unitid,
1486 __func__, unitid, pin, state);
1494 ret = saa7164_cmd_send(dev, unitid, SET_CUR,
1503 int saa7164_api_set_gpiobit(struct saa7164_dev *dev, u8 unitid,
1506 return saa7164_api_modify_gpio(dev, unitid, pin, 1);
1509 int saa7164_api_clear_gpiobit(struct saa7164_dev *dev, u8 unitid,
1512 return saa7164_api_modify_gpio(dev, unitid, pin, 0);