Lines Matching refs:sd

113 	struct v4l2_subdev sd;  member
140 static inline struct CHIPSTATE *to_state(struct v4l2_subdev *sd) in to_state() argument
142 return container_of(sd, struct CHIPSTATE, sd); in to_state()
147 return &container_of(ctrl->handler, struct CHIPSTATE, hdl)->sd; in to_sd()
156 struct v4l2_subdev *sd = &chip->sd; in chip_write() local
157 struct i2c_client *c = v4l2_get_subdevdata(sd); in chip_write()
162 v4l2_dbg(1, debug, sd, "chip_write: 0x%x\n", val); in chip_write()
167 v4l2_warn(sd, "I/O error (write 0x%x)\n", val); in chip_write()
174 v4l2_info(sd, in chip_write()
180 v4l2_dbg(1, debug, sd, "chip_write: reg%d=0x%x\n", in chip_write()
187 v4l2_warn(sd, "I/O error (write reg%d=0x%x)\n", in chip_write()
200 struct v4l2_subdev *sd = &chip->sd; in chip_write_masked() local
207 v4l2_info(sd, in chip_write_masked()
221 struct v4l2_subdev *sd = &chip->sd; in chip_read() local
222 struct i2c_client *c = v4l2_get_subdevdata(sd); in chip_read()
228 v4l2_warn(sd, "I/O error (read)\n"); in chip_read()
233 v4l2_dbg(1, debug, sd, "chip_read: 0x%x\n", buffer); in chip_read()
239 struct v4l2_subdev *sd = &chip->sd; in chip_read2() local
240 struct i2c_client *c = v4l2_get_subdevdata(sd); in chip_read2()
262 v4l2_warn(sd, "I/O error (read2)\n"); in chip_read2()
267 v4l2_dbg(1, debug, sd, "chip_read2: reg%d=0x%x\n", in chip_read2()
274 struct v4l2_subdev *sd = &chip->sd; in chip_cmd() local
275 struct i2c_client *c = v4l2_get_subdevdata(sd); in chip_cmd()
282 v4l2_info(sd, in chip_cmd()
291 v4l2_dbg(1, debug, sd, "chip_cmd(%s): reg=%d, data:", in chip_cmd()
304 v4l2_warn(sd, "I/O error (%s)\n", name); in chip_cmd()
329 struct v4l2_subdev *sd = &chip->sd; in chip_thread() local
332 v4l2_dbg(1, debug, sd, "thread started\n"); in chip_thread()
342 v4l2_dbg(1, debug, sd, "thread wakeup\n"); in chip_thread()
354 v4l2_dbg(1, debug, sd, "thread checkmode\n"); in chip_thread()
389 v4l2_dbg(1, debug, sd, "thread exiting\n"); in chip_thread()
418 struct v4l2_subdev *sd = &chip->sd; in tda9840_getrxsubchans() local
432 v4l2_dbg(1, debug, sd, in tda9840_getrxsubchans()
750 struct v4l2_subdev *sd = &chip->sd; in tda9873_getrxsubchans() local
763 v4l2_dbg(1, debug, sd, in tda9873_getrxsubchans()
771 struct v4l2_subdev *sd = &chip->sd; in tda9873_setaudmode() local
776 v4l2_dbg(1, debug, sd, in tda9873_setaudmode()
781 v4l2_dbg(1, debug, sd, in tda9873_setaudmode()
784 v4l2_dbg(1, debug, sd, "tda9873_setaudmode(): sw_data = %d\n", in tda9873_setaudmode()
808 v4l2_dbg(1, debug, sd, in tda9873_setaudmode()
919 struct v4l2_subdev *sd = &chip->sd; in tda9874a_setup() local
951 v4l2_dbg(1, debug, sd, "tda9874a_setup(): %s [0x%02X].\n", in tda9874a_setup()
958 struct v4l2_subdev *sd = &chip->sd; in tda9874a_getrxsubchans() local
998 v4l2_dbg(1, debug, sd, in tda9874a_getrxsubchans()
1006 struct v4l2_subdev *sd = &chip->sd; in tda9874a_setaudmode() local
1050 v4l2_dbg(1, debug, sd, in tda9874a_setaudmode()
1089 v4l2_dbg(1, debug, sd, in tda9874a_setaudmode()
1097 struct v4l2_subdev *sd = &chip->sd; in tda9874a_checkit() local
1107 v4l2_dbg(1, debug, sd, "tda9874a_checkit(): DIC=0x%X, SIC=0x%X.\n", dic, sic); in tda9874a_checkit()
1110 v4l2_info(sd, "found tda9874%s.\n", (dic == 0x11) ? "a" : "h"); in tda9874a_checkit()
1240 struct v4l2_subdev *sd = &chip->sd; in tda9875_checkit() local
1251 v4l2_info(sd, "found tda9875%s rev. %d.\n", in tda9875_checkit()
1449 struct v4l2_subdev *sd = &chip->sd; in ta8874z_setaudmode() local
1453 v4l2_dbg(1, debug, sd, "ta8874z_setaudmode(): mode: 0x%02x\n", mode); in ta8874z_setaudmode()
1745 struct v4l2_subdev *sd = to_sd(ctrl); in tvaudio_s_ctrl() local
1746 struct CHIPSTATE *chip = to_state(sd); in tvaudio_s_ctrl()
1785 static int tvaudio_s_radio(struct v4l2_subdev *sd) in tvaudio_s_radio() argument
1787 struct CHIPSTATE *chip = to_state(sd); in tvaudio_s_radio()
1794 static int tvaudio_s_routing(struct v4l2_subdev *sd, in tvaudio_s_routing() argument
1797 struct CHIPSTATE *chip = to_state(sd); in tvaudio_s_routing()
1813 static int tvaudio_s_tuner(struct v4l2_subdev *sd, const struct v4l2_tuner *vt) in tvaudio_s_tuner() argument
1815 struct CHIPSTATE *chip = to_state(sd); in tvaudio_s_tuner()
1843 static int tvaudio_g_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *vt) in tvaudio_g_tuner() argument
1845 struct CHIPSTATE *chip = to_state(sd); in tvaudio_g_tuner()
1861 static int tvaudio_s_std(struct v4l2_subdev *sd, v4l2_std_id std) in tvaudio_s_std() argument
1863 struct CHIPSTATE *chip = to_state(sd); in tvaudio_s_std()
1869 static int tvaudio_s_frequency(struct v4l2_subdev *sd, const struct v4l2_frequency *freq) in tvaudio_s_frequency() argument
1871 struct CHIPSTATE *chip = to_state(sd); in tvaudio_s_frequency()
1890 static int tvaudio_log_status(struct v4l2_subdev *sd) in tvaudio_log_status() argument
1892 struct CHIPSTATE *chip = to_state(sd); in tvaudio_log_status()
1895 v4l2_info(sd, "Chip: %s\n", desc->name); in tvaudio_log_status()
1896 v4l2_ctrl_handler_log_status(&chip->hdl, sd->name); in tvaudio_log_status()
1942 struct v4l2_subdev *sd; in tvaudio_probe() local
1956 sd = &chip->sd; in tvaudio_probe()
1957 v4l2_i2c_subdev_init(sd, client, &tvaudio_ops); in tvaudio_probe()
1960 v4l2_dbg(1, debug, sd, "chip found @ 0x%x\n", client->addr<<1); in tvaudio_probe()
1972 v4l2_dbg(1, debug, sd, "no matching chip description found\n"); in tvaudio_probe()
1975 v4l2_info(sd, "%s found @ 0x%x (%s)\n", desc->name, client->addr<<1, client->adapter->name); in tvaudio_probe()
1977 v4l2_dbg(1, debug, sd, "matches:%s%s%s.\n", in tvaudio_probe()
2006 v4l2_info(sd, "volume callback undefined!\n"); in tvaudio_probe()
2024 v4l2_info(sd, "bass/treble callbacks undefined!\n"); in tvaudio_probe()
2038 sd->ctrl_handler = &chip->hdl; in tvaudio_probe()
2055 v4l2_info(sd, "set/get mode callbacks undefined!\n"); in tvaudio_probe()
2062 v4l2_warn(sd, "failed to create kthread\n"); in tvaudio_probe()
2071 struct v4l2_subdev *sd = i2c_get_clientdata(client); in tvaudio_remove() local
2072 struct CHIPSTATE *chip = to_state(sd); in tvaudio_remove()
2081 v4l2_device_unregister_subdev(sd); in tvaudio_remove()