Lines Matching refs:sd
115 struct v4l2_subdev sd; member
142 static inline struct CHIPSTATE *to_state(struct v4l2_subdev *sd) in to_state() argument
144 return container_of(sd, struct CHIPSTATE, sd); in to_state()
149 return &container_of(ctrl->handler, struct CHIPSTATE, hdl)->sd; in to_sd()
158 struct v4l2_subdev *sd = &chip->sd; in chip_write() local
159 struct i2c_client *c = v4l2_get_subdevdata(sd); in chip_write()
163 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()
172 v4l2_info(sd, in chip_write()
178 v4l2_dbg(1, debug, sd, "chip_write: reg%d=0x%x\n", in chip_write()
184 v4l2_warn(sd, "I/O error (write reg%d=0x%x)\n", in chip_write()
195 struct v4l2_subdev *sd = &chip->sd; in chip_write_masked() local
202 v4l2_info(sd, in chip_write_masked()
216 struct v4l2_subdev *sd = &chip->sd; in chip_read() local
217 struct i2c_client *c = v4l2_get_subdevdata(sd); in chip_read()
221 v4l2_warn(sd, "I/O error (read)\n"); in chip_read()
224 v4l2_dbg(1, debug, sd, "chip_read: 0x%x\n", buffer); in chip_read()
230 struct v4l2_subdev *sd = &chip->sd; in chip_read2() local
231 struct i2c_client *c = v4l2_get_subdevdata(sd); in chip_read2()
251 v4l2_warn(sd, "I/O error (read2)\n"); in chip_read2()
254 v4l2_dbg(1, debug, sd, "chip_read2: reg%d=0x%x\n", in chip_read2()
261 struct v4l2_subdev *sd = &chip->sd; in chip_cmd() local
262 struct i2c_client *c = v4l2_get_subdevdata(sd); in chip_cmd()
269 v4l2_info(sd, in chip_cmd()
278 v4l2_dbg(1, debug, sd, "chip_cmd(%s): reg=%d, data:", in chip_cmd()
290 v4l2_warn(sd, "I/O error (%s)\n", name); in chip_cmd()
313 struct v4l2_subdev *sd = &chip->sd; in chip_thread() local
316 v4l2_dbg(1, debug, sd, "thread started\n"); in chip_thread()
326 v4l2_dbg(1, debug, sd, "thread wakeup\n"); in chip_thread()
338 v4l2_dbg(1, debug, sd, "thread checkmode\n"); in chip_thread()
373 v4l2_dbg(1, debug, sd, "thread exiting\n"); in chip_thread()
402 struct v4l2_subdev *sd = &chip->sd; in tda9840_getrxsubchans() local
412 v4l2_dbg(1, debug, sd, in tda9840_getrxsubchans()
722 struct v4l2_subdev *sd = &chip->sd; in tda9873_getrxsubchans() local
731 v4l2_dbg(1, debug, sd, in tda9873_getrxsubchans()
739 struct v4l2_subdev *sd = &chip->sd; in tda9873_setaudmode() local
744 v4l2_dbg(1, debug, sd, in tda9873_setaudmode()
749 v4l2_dbg(1, debug, sd, in tda9873_setaudmode()
752 v4l2_dbg(1, debug, sd, "tda9873_setaudmode(): sw_data = %d\n", in tda9873_setaudmode()
776 v4l2_dbg(1, debug, sd, in tda9873_setaudmode()
886 struct v4l2_subdev *sd = &chip->sd; in tda9874a_setup() local
918 v4l2_dbg(1, debug, sd, "tda9874a_setup(): %s [0x%02X].\n", in tda9874a_setup()
925 struct v4l2_subdev *sd = &chip->sd; in tda9874a_getrxsubchans() local
962 v4l2_dbg(1, debug, sd, in tda9874a_getrxsubchans()
970 struct v4l2_subdev *sd = &chip->sd; in tda9874a_setaudmode() local
1014 v4l2_dbg(1, debug, sd, in tda9874a_setaudmode()
1053 v4l2_dbg(1, debug, sd, in tda9874a_setaudmode()
1061 struct v4l2_subdev *sd = &chip->sd; in tda9874a_checkit() local
1069 v4l2_dbg(1, debug, sd, "tda9874a_checkit(): DIC=0x%X, SIC=0x%X.\n", dic, sic); in tda9874a_checkit()
1072 v4l2_info(sd, "found tda9874%s.\n", (dic == 0x11) ? "a" : "h"); in tda9874a_checkit()
1202 struct v4l2_subdev *sd = &chip->sd; in tda9875_checkit() local
1209 v4l2_info(sd, "found tda9875%s rev. %d.\n", in tda9875_checkit()
1403 struct v4l2_subdev *sd = &chip->sd; in ta8874z_setaudmode() local
1407 v4l2_dbg(1, debug, sd, "ta8874z_setaudmode(): mode: 0x%02x\n", mode); in ta8874z_setaudmode()
1695 struct v4l2_subdev *sd = to_sd(ctrl); in tvaudio_s_ctrl() local
1696 struct CHIPSTATE *chip = to_state(sd); in tvaudio_s_ctrl()
1735 static int tvaudio_s_radio(struct v4l2_subdev *sd) in tvaudio_s_radio() argument
1737 struct CHIPSTATE *chip = to_state(sd); in tvaudio_s_radio()
1744 static int tvaudio_s_routing(struct v4l2_subdev *sd, in tvaudio_s_routing() argument
1747 struct CHIPSTATE *chip = to_state(sd); in tvaudio_s_routing()
1763 static int tvaudio_s_tuner(struct v4l2_subdev *sd, const struct v4l2_tuner *vt) in tvaudio_s_tuner() argument
1765 struct CHIPSTATE *chip = to_state(sd); in tvaudio_s_tuner()
1793 static int tvaudio_g_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *vt) in tvaudio_g_tuner() argument
1795 struct CHIPSTATE *chip = to_state(sd); in tvaudio_g_tuner()
1811 static int tvaudio_s_std(struct v4l2_subdev *sd, v4l2_std_id std) in tvaudio_s_std() argument
1813 struct CHIPSTATE *chip = to_state(sd); in tvaudio_s_std()
1819 static int tvaudio_s_frequency(struct v4l2_subdev *sd, const struct v4l2_frequency *freq) in tvaudio_s_frequency() argument
1821 struct CHIPSTATE *chip = to_state(sd); in tvaudio_s_frequency()
1840 static int tvaudio_log_status(struct v4l2_subdev *sd) in tvaudio_log_status() argument
1842 struct CHIPSTATE *chip = to_state(sd); in tvaudio_log_status()
1845 v4l2_info(sd, "Chip: %s\n", desc->name); in tvaudio_log_status()
1846 v4l2_ctrl_handler_log_status(&chip->hdl, sd->name); in tvaudio_log_status()
1898 struct v4l2_subdev *sd; in tvaudio_probe() local
1911 sd = &chip->sd; in tvaudio_probe()
1912 v4l2_i2c_subdev_init(sd, client, &tvaudio_ops); in tvaudio_probe()
1915 v4l2_dbg(1, debug, sd, "chip found @ 0x%x\n", client->addr<<1); in tvaudio_probe()
1927 v4l2_dbg(1, debug, sd, "no matching chip description found\n"); in tvaudio_probe()
1930 v4l2_info(sd, "%s found @ 0x%x (%s)\n", desc->name, client->addr<<1, client->adapter->name); in tvaudio_probe()
1932 v4l2_dbg(1, debug, sd, "matches:%s%s%s.\n", in tvaudio_probe()
1961 v4l2_info(sd, "volume callback undefined!\n"); in tvaudio_probe()
1979 v4l2_info(sd, "bass/treble callbacks undefined!\n"); in tvaudio_probe()
1993 sd->ctrl_handler = &chip->hdl; in tvaudio_probe()
2010 v4l2_info(sd, "set/get mode callbacks undefined!\n"); in tvaudio_probe()
2019 v4l2_warn(sd, "failed to create kthread\n"); in tvaudio_probe()
2028 struct v4l2_subdev *sd = i2c_get_clientdata(client); in tvaudio_remove() local
2029 struct CHIPSTATE *chip = to_state(sd); in tvaudio_remove()
2038 v4l2_device_unregister_subdev(sd); in tvaudio_remove()