Lines Matching refs:unit
50 .unit = {{
96 .unit = {{
142 .unit = {{
202 .unit = {{
262 .unit = {{
322 .unit = {{
382 .unit = {{
438 .unit = {{
498 .unit = {{
544 .unit = {{
590 .unit = {{
873 struct saa7164_unit *unit; in saa7164_i2caddr_to_unitid() local
877 unit = &saa7164_boards[dev->board].unit[i]; in saa7164_i2caddr_to_unitid()
879 if (unit->type == SAA7164_UNIT_UNDEFINED) in saa7164_i2caddr_to_unitid()
881 if ((bus->nr == unit->i2c_bus_nr) && in saa7164_i2caddr_to_unitid()
882 (addr == unit->i2c_bus_addr)) in saa7164_i2caddr_to_unitid()
883 return unit->id; in saa7164_i2caddr_to_unitid()
900 struct saa7164_unit *unit; in saa7164_i2caddr_to_reglen() local
904 unit = &saa7164_boards[dev->board].unit[i]; in saa7164_i2caddr_to_reglen()
906 if (unit->type == SAA7164_UNIT_UNDEFINED) in saa7164_i2caddr_to_reglen()
909 if ((bus->nr == unit->i2c_bus_nr) && in saa7164_i2caddr_to_reglen()
910 (addr == unit->i2c_bus_addr)) in saa7164_i2caddr_to_reglen()
911 return unit->i2c_reg_len; in saa7164_i2caddr_to_reglen()
925 struct saa7164_unit *unit; in saa7164_unitid_name() local
932 unit = &saa7164_boards[dev->board].unit[i]; in saa7164_unitid_name()
934 if (unit->type == SAA7164_UNIT_UNDEFINED) in saa7164_unitid_name()
937 if (unitid == unit->id) in saa7164_unitid_name()
938 return unit->name; in saa7164_unitid_name()