Lines Matching refs:sd

66 #define to_si4713_device(sd)	container_of(sd, struct si4713_device, sd)  argument
189 v4l2_dbg(2, debug, &sdev->sd, in si4713_handler()
210 struct i2c_client *client = v4l2_get_subdevdata(&sdev->sd); in si4713_send_command()
221 DBG_BUFFER(&sdev->sd, "Parameters", data1, argn + 1); in si4713_send_command()
225 v4l2_err(&sdev->sd, "Error while sending command 0x%02x\n", in si4713_send_command()
236 v4l2_warn(&sdev->sd, in si4713_send_command()
244 v4l2_err(&sdev->sd, in si4713_send_command()
250 DBG_BUFFER(&sdev->sd, "Response", response, respn); in si4713_send_command()
295 v4l2_dbg(1, debug, &sdev->sd, in si4713_read_property()
335 v4l2_dbg(1, debug, &sdev->sd, in si4713_write_property()
355 struct i2c_client *client = v4l2_get_subdevdata(&sdev->sd); in si4713_powerup()
373 v4l2_err(&sdev->sd, "Failed to enable vdd: %d\n", err); in si4713_powerup()
381 v4l2_err(&sdev->sd, "Failed to enable vio: %d\n", err); in si4713_powerup()
400 v4l2_dbg(1, debug, &sdev->sd, "Powerup response: 0x%02x\n", in si4713_powerup()
402 v4l2_dbg(1, debug, &sdev->sd, "Device in power up mode\n"); in si4713_powerup()
416 v4l2_err(&sdev->sd, "Failed to disable vdd: %d\n", err); in si4713_powerup()
422 v4l2_err(&sdev->sd, "Failed to disable vio: %d\n", err); in si4713_powerup()
446 v4l2_dbg(1, debug, &sdev->sd, "Power down response: 0x%02x\n", in si4713_powerdown()
448 v4l2_dbg(1, debug, &sdev->sd, "Device in reset mode\n"); in si4713_powerdown()
455 v4l2_err(&sdev->sd, in si4713_powerdown()
463 v4l2_err(&sdev->sd, in si4713_powerdown()
479 struct i2c_client *client = v4l2_get_subdevdata(&sdev->sd); in si4713_checkrev()
492 v4l2_info(&sdev->sd, "chip found @ 0x%02x (%s)\n", in si4713_checkrev()
495 v4l2_err(&sdev->sd, "Invalid product number 0x%X\n", resp[1]); in si4713_checkrev()
509 struct i2c_client *client = v4l2_get_subdevdata(&sdev->sd); in si4713_wait_stc()
516 v4l2_warn(&sdev->sd, in si4713_wait_stc()
528 v4l2_dbg(1, debug, &sdev->sd, in si4713_wait_stc()
573 v4l2_dbg(1, debug, &sdev->sd, in si4713_tx_tune_freq()
624 v4l2_dbg(1, debug, &sdev->sd, in si4713_tx_tune_power()
673 v4l2_dbg(1, debug, &sdev->sd, in si4713_tx_tune_measure()
712 v4l2_dbg(1, debug, &sdev->sd, in si4713_tx_tune_status()
719 v4l2_dbg(1, debug, &sdev->sd, "%s: response: %d x 10 kHz " in si4713_tx_tune_status()
758 v4l2_dbg(1, debug, &sdev->sd, in si4713_tx_rds_buff()
761 v4l2_dbg(1, debug, &sdev->sd, "%s: response: interrupts" in si4713_tx_rds_buff()
797 v4l2_dbg(1, debug, &sdev->sd, "%s: status=0x%02x\n", __func__, val[0]); in si4713_tx_rds_ps()
1060 static int si4713_s_frequency(struct v4l2_subdev *sd, const struct v4l2_frequency *f);
1061 static int si4713_s_modulator(struct v4l2_subdev *sd, const struct v4l2_modulator *);
1076 rval = si4713_s_frequency(&sdev->sd, &f); in si4713_setup()
1085 si4713_s_modulator(&sdev->sd, &vm); in si4713_setup()
1233 static long si4713_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg) in si4713_ioctl() argument
1235 struct si4713_device *sdev = to_si4713_device(sd); in si4713_ioctl()
1269 static int si4713_g_modulator(struct v4l2_subdev *sd, struct v4l2_modulator *vm) in si4713_g_modulator() argument
1271 struct si4713_device *sdev = to_si4713_device(sd); in si4713_g_modulator()
1315 static int si4713_s_modulator(struct v4l2_subdev *sd, const struct v4l2_modulator *vm) in si4713_s_modulator() argument
1317 struct si4713_device *sdev = to_si4713_device(sd); in si4713_s_modulator()
1360 static int si4713_g_frequency(struct v4l2_subdev *sd, struct v4l2_frequency *f) in si4713_g_frequency() argument
1362 struct si4713_device *sdev = to_si4713_device(sd); in si4713_g_frequency()
1385 static int si4713_s_frequency(struct v4l2_subdev *sd, const struct v4l2_frequency *f) in si4713_s_frequency() argument
1387 struct si4713_device *sdev = to_si4713_device(sd); in si4713_s_frequency()
1490 v4l2_i2c_subdev_init(&sdev->sd, client, &si4713_subdev_ops); in si4713_probe()
1587 sdev->sd.ctrl_handler = hdl; in si4713_probe()
1594 v4l2_err(&sdev->sd, "Could not request IRQ\n"); in si4713_probe()
1597 v4l2_dbg(1, debug, &sdev->sd, "IRQ requested.\n"); in si4713_probe()
1599 v4l2_warn(&sdev->sd, "IRQ not configured. Using timeouts.\n"); in si4713_probe()
1604 v4l2_err(&sdev->sd, "Failed to probe device information.\n"); in si4713_probe()
1633 v4l2_device_unregister_subdev(&sdev->sd); in si4713_probe()
1643 struct v4l2_subdev *sd = i2c_get_clientdata(client); in si4713_remove() local
1644 struct si4713_device *sdev = to_si4713_device(sd); in si4713_remove()
1651 v4l2_device_unregister_subdev(sd); in si4713_remove()
1652 v4l2_ctrl_handler_free(sd->ctrl_handler); in si4713_remove()