Home
last modified time | relevance | path

Searched refs:sensor (Results 1 – 25 of 206) sorted by relevance

123456789

/linux-3.4.99/drivers/media/video/
Dmt9m032.c150 #define to_dev(sensor) \ argument
151 (&((struct i2c_client *)v4l2_get_subdevdata(&(sensor)->subdev))->dev)
163 static u32 mt9m032_row_time(struct mt9m032 *sensor, unsigned int width) in mt9m032_row_time() argument
169 ns = div_u64(1000000000ULL * effective_width, sensor->pix_clock); in mt9m032_row_time()
170 dev_dbg(to_dev(sensor), "MT9M032 line time: %u ns\n", ns); in mt9m032_row_time()
174 static int mt9m032_update_timing(struct mt9m032 *sensor, in mt9m032_update_timing() argument
177 struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev); in mt9m032_update_timing()
178 struct v4l2_rect *crop = &sensor->crop; in mt9m032_update_timing()
184 interval = &sensor->frame_interval; in mt9m032_update_timing()
186 row_time = mt9m032_row_time(sensor, crop->width); in mt9m032_update_timing()
[all …]
Dtcm825x.c392 struct tcm825x_sensor *sensor = s->priv; in tcm825x_find_size() local
397 dev_dbg(&sensor->i2c_client->dev, "size %d\n", isize); in tcm825x_find_size()
403 dev_dbg(&sensor->i2c_client->dev, "format default VGA\n"); in tcm825x_find_size()
416 struct tcm825x_sensor *sensor = s->priv; in tcm825x_configure() local
417 struct v4l2_pix_format *pix = &sensor->pix; in tcm825x_configure()
419 struct v4l2_fract *fper = &sensor->timeperframe; in tcm825x_configure()
427 sensor->i2c_client, sensor->platform_data->default_regs()); in tcm825x_configure()
433 dev_dbg(&sensor->i2c_client->dev, in tcm825x_configure()
435 err = tcm825x_write_reg_mask(sensor->i2c_client, in tcm825x_configure()
451 dev_dbg(&sensor->i2c_client->dev, in tcm825x_configure()
[all …]
Dvs6624.c610 struct vs6624 *sensor = to_vs6624(sd); in vs6624_s_mbus_fmt() local
657 sensor->fmt = *fmt; in vs6624_s_mbus_fmt()
665 struct vs6624 *sensor = to_vs6624(sd); in vs6624_g_mbus_fmt() local
667 *fmt = sensor->fmt; in vs6624_g_mbus_fmt()
673 struct vs6624 *sensor = to_vs6624(sd); in vs6624_g_parm() local
681 cp->timeperframe.numerator = sensor->frame_rate.denominator; in vs6624_g_parm()
682 cp->timeperframe.denominator = sensor->frame_rate.numerator; in vs6624_g_parm()
688 struct vs6624 *sensor = to_vs6624(sd); in vs6624_s_parm() local
703 sensor->frame_rate.numerator = tpf->denominator; in vs6624_s_parm()
704 sensor->frame_rate.denominator = tpf->numerator; in vs6624_s_parm()
[all …]
/linux-3.4.99/drivers/gpu/drm/nouveau/
Dnouveau_temp.c37 struct nouveau_pm_temp_sensor_constants *sensor = &pm->sensor_constants; in nouveau_temp_vbios_parse() local
47 sensor->offset_constant = 0; in nouveau_temp_vbios_parse()
48 sensor->offset_mult = 0; in nouveau_temp_vbios_parse()
49 sensor->offset_div = 1; in nouveau_temp_vbios_parse()
50 sensor->slope_mult = 1; in nouveau_temp_vbios_parse()
51 sensor->slope_div = 1; in nouveau_temp_vbios_parse()
66 sensor->offset_mult = 32060; in nouveau_temp_vbios_parse()
67 sensor->offset_div = 1000; in nouveau_temp_vbios_parse()
68 sensor->slope_mult = 792; in nouveau_temp_vbios_parse()
69 sensor->slope_div = 1000; in nouveau_temp_vbios_parse()
[all …]
/linux-3.4.99/drivers/input/misc/
Dmpu3050.c199 struct mpu3050_sensor *sensor = input_get_drvdata(input); in mpu3050_input_open() local
202 pm_runtime_get(sensor->dev); in mpu3050_input_open()
205 error = i2c_smbus_write_byte_data(sensor->client, MPU3050_INT_CFG, in mpu3050_input_open()
210 pm_runtime_put(sensor->dev); in mpu3050_input_open()
226 struct mpu3050_sensor *sensor = input_get_drvdata(input); in mpu3050_input_close() local
228 pm_runtime_put(sensor->dev); in mpu3050_input_close()
241 struct mpu3050_sensor *sensor = data; in mpu3050_interrupt_thread() local
244 mpu3050_read_xyz(sensor->client, &axis); in mpu3050_interrupt_thread()
246 input_report_abs(sensor->idev, ABS_X, axis.x); in mpu3050_interrupt_thread()
247 input_report_abs(sensor->idev, ABS_Y, axis.y); in mpu3050_interrupt_thread()
[all …]
/linux-3.4.99/drivers/media/video/gspca/m5602/
Dm5602_core.c102 if (!len || len > sd->sensor->i2c_regW) in m5602_read_sensor()
110 sd->sensor->i2c_slave_id); in m5602_read_sensor()
122 if (sd->sensor->i2c_regW == 1) { in m5602_read_sensor()
154 if (len > sd->sensor->i2c_regW || !len) in m5602_write_sensor()
160 buf[11] = sd->sensor->i2c_slave_id; in m5602_write_sensor()
205 sd->sensor = &po1030; in m5602_probe_sensor()
206 if (!sd->sensor->probe(sd)) in m5602_probe_sensor()
210 sd->sensor = &mt9m111; in m5602_probe_sensor()
211 if (!sd->sensor->probe(sd)) in m5602_probe_sensor()
215 sd->sensor = &s5k4aa; in m5602_probe_sensor()
[all …]
/linux-3.4.99/Documentation/video4linux/
Dsh_mobile_ceu_camera.txt7 sensor scales: horizontal and vertical scales, configured by the sensor driver
51 (1) to (2) - sensor cropped left or top
52 (2) to (2') - sensor cropped width or height
53 (3) to (3') - sensor scale
56 (5) to (5') - reverse sensor scale applied to CEU cropped width or height
57 (2) to (5) - reverse sensor scale applied to CEU cropped left or top
66 1. Calculate current sensor scales:
70 2. Calculate "effective" input crop (sensor subwindow) - CEU crop scaled back at
71 current sensor scales onto input window - this is user S_CROP:
80 4. Calculate sensor output window by applying combined scales to real input
[all …]
Dsoc-camera.txt8 - camera / camera device / camera sensor - a video-camera sensor chip, capable
22 camera sensor drivers. It implements a V4L2 interface to the user, currently
26 video capture interfaces with drivers for CMOS camera sensor chips to enable
27 the reuse of sensor drivers with various hosts. The subsystem has been designed
29 although most applications have only one camera sensor.
35 PXA27x SoCs and sh_mobile_ceu_camera.c for SuperH SoCs, and four sensor drivers:
71 .add and .remove methods are called when a sensor is attached to or detached
73 sensor driver's .init and .release methods respectively. .suspend and .resume
75 responsibility to call respective sensor's methods. .try_bus_param and
77 host and the sensor. .init_videobuf is called by soc-camera core when a
[all …]
/linux-3.4.99/drivers/media/video/gspca/stv06xx/
Dstv06xx.c84 if (sd->sensor->i2c_len == 2) { in stv06xx_write_sensor()
126 buf[0x20] = sd->sensor->i2c_addr; in stv06xx_write_sensor_bytes()
157 buf[0x20] = sd->sensor->i2c_addr; in stv06xx_write_sensor_words()
176 err = stv06xx_write_bridge(sd, STV_I2C_FLUSH, sd->sensor->i2c_flush); in stv06xx_read_sensor()
184 buf[0x20] = sd->sensor->i2c_addr; in stv06xx_read_sensor()
199 0x04, 0xc0, 0x1410, 0, buf, sd->sensor->i2c_len, in stv06xx_read_sensor()
201 if (sd->sensor->i2c_len == 2) in stv06xx_read_sensor()
256 err = sd->sensor->init(sd); in stv06xx_init()
258 if (dump_sensor && sd->sensor->dump) in stv06xx_init()
259 sd->sensor->dump(sd); in stv06xx_init()
[all …]
/linux-3.4.99/drivers/media/video/gspca/
Dt613.c60 u8 sensor; member
778 reg80 = (sensor_data[sd->sensor].reg80 << 8) | 0x80; in setawb()
803 reg80 = sensor_data[sd->sensor].reg80; in init_gains()
830 switch (sd->sensor) { in setfreq()
864 const struct additional_sensor_data *sensor; in sd_init() local
882 sd->sensor = SENSOR_TAS5130A; in sd_init()
886 sd->sensor = SENSOR_LT168G; in sd_init()
890 sd->sensor = SENSOR_OTHER; in sd_init()
894 sd->sensor = SENSOR_OM6802; in sd_init()
901 if (sd->sensor == SENSOR_OM6802) { in sd_init()
[all …]
Dsq930x.c44 u8 sensor; member
526 const struct sensor_s *sensor; in i2c_write() local
534 sensor = &sensor_tb[sd->sensor]; in i2c_write()
536 val = (sensor->i2c_addr << 8) | SQ930_CTRL_I2C_IO; in i2c_write()
540 *buf++ = sensor->i2c_dum; in i2c_write()
547 *buf++ = sensor->i2c_dum; in i2c_write()
673 const struct sensor_s *sensor; in cmos_probe() local
683 sensor = &sensor_tb[probe_order[i]]; in cmos_probe()
684 ucbus_write(&sd->gspca_dev, sensor->cmd, sensor->cmd_len, 8); in cmos_probe()
685 gpio_init(sd, sensor->gpio); in cmos_probe()
[all …]
Dsonixb.c90 __u8 sensor; /* Type of image sensor chip */ member
136 #define SENS(bridge, sensor, _flags, _ctrl_dis, _sensor_addr) \ argument
139 .sensor_init = sensor, \
140 .sensor_init_size = sizeof(sensor), \
619 switch (sd->sensor) { in setbrightness()
626 i2cOV[1] = sensor_data[sd->sensor].sensor_addr; in setbrightness()
640 if (sd->sensor == SENSOR_PAS106) { in setbrightness()
670 switch (sd->sensor) { in setsensorgain()
717 i2c[1] = sensor_data[sd->sensor].sensor_addr; in setsensorgain()
733 if (sd->sensor == SENSOR_PAS106) { in setsensorgain()
[all …]
Dsonixj.c88 u8 sensor; /* Type of image sensor chip */ member
1528 switch (sd->sensor) { in i2c_w1()
1590 switch (sd->sensor) { in i2c_r()
1688 sd->sensor = SENSOR_MI0360B; in mi0360_probe()
1692 sd->sensor = SENSOR_MT9V111; in mi0360_probe()
1719 sd->sensor = SENSOR_SOI768; in ov7630_probe()
1759 sd->sensor = SENSOR_PO1030; in ov7648_probe()
1782 sd->sensor = SENSOR_GC0307; in po2030n_probe()
1812 sd->sensor = id->driver_info >> 8; in sd_config()
1816 if (sd->sensor == SENSOR_ADCM1700) { in sd_config()
[all …]
Dov534.c81 u8 sensor; member
936 if (sd->sensor != SENSOR_OV772x) in set_frame_rate()
964 if (sd->sensor == SENSOR_OV767x) { in setbrightness()
979 if (sd->sensor == SENSOR_OV767x) in setcontrast()
1024 if (sd->sensor == SENSOR_OV767x) { in setexposure()
1067 if (sd->sensor == SENSOR_OV772x) in setawb()
1073 if (sd->sensor == SENSOR_OV772x) in setawb()
1084 data = sd->sensor == SENSOR_OV767x ? in setaec()
1093 if (sd->sensor == SENSOR_OV767x) in setaec()
1116 if (sd->sensor == SENSOR_OV767x) { in sethvflip()
[all …]
Dzc3xx.c65 u8 sensor; /* Type of image sensor chip */ member
5814 matrix = matrix_tb[sd->sensor]; in setmatrix()
5901 if (sd->sensor != SENSOR_HV7131R) in getexposure()
5913 if (sd->sensor != SENSOR_HV7131R) in setexposure()
5927 switch (sd->sensor) { in setquality()
6034 zc3_freq = freq_tb[sd->sensor][i]; in setlightfreq()
6038 switch (sd->sensor) { in setlightfreq()
6107 reg07 = sd->sensor == SENSOR_HV7131R in transfer_update()
6134 if (sd->sensor == SENSOR_PAS202B) in transfer_update()
6180 static void send_unknown(struct gspca_dev *gspca_dev, int sensor) in send_unknown() argument
[all …]
Dov519.c115 s8 sensor; /* Type of image sensor chip (SEN_*) */ member
2748 sd->sensor = SEN_OV2610; in ov_hires_configure()
2752 sd->sensor = SEN_OV2610AE; in ov_hires_configure()
2756 sd->sensor = SEN_OV9600; in ov_hires_configure()
2763 sd->sensor = SEN_OV3610; in ov_hires_configure()
2787 sd->sensor = SEN_OV8610; in ov8xx0_configure()
2817 sd->sensor = SEN_OV7670; in ov7xx0_configure()
2820 sd->sensor = SEN_OV7610; in ov7xx0_configure()
2826 sd->sensor = SEN_OV7620AE; in ov7xx0_configure()
2829 sd->sensor = SEN_OV76BE; in ov7xx0_configure()
[all …]
/linux-3.4.99/drivers/media/video/s5p-fimc/
Dfimc-mdevice.c53 fimc->pipeline.sensor = sd; in fimc_pipeline_prepare()
96 if (fimc->pipeline.sensor == NULL) in fimc_pipeline_s_power()
103 return __subdev_set_power(fimc->pipeline.sensor, 1); in fimc_pipeline_s_power()
106 ret = __subdev_set_power(fimc->pipeline.sensor, 0); in fimc_pipeline_s_power()
129 if (fimc->pipeline.sensor == NULL) in __fimc_pipeline_initialize()
131 ret = fimc_md_set_camclk(fimc->pipeline.sensor, true); in __fimc_pipeline_initialize()
161 if (fimc->pipeline.sensor) { in __fimc_pipeline_shutdown()
163 fimc_md_set_camclk(fimc->pipeline.sensor, false); in __fimc_pipeline_shutdown()
190 if (p->sensor == NULL) in fimc_pipeline_s_stream()
194 ret = v4l2_subdev_call(on ? p->csis : p->sensor, in fimc_pipeline_s_stream()
[all …]
/linux-3.4.99/drivers/hwmon/
Dasus_atk0110.c193 static int atk_read_value(struct atk_sensor_data *sensor, u64 *value);
458 static int atk_read_value_old(struct atk_sensor_data *sensor, u64 *value) in atk_read_value_old() argument
460 struct atk_data *data = sensor->data; in atk_read_value_old()
467 switch (sensor->type) { in atk_read_value_old()
482 id.integer.value = sensor->id; in atk_read_value_old()
611 static int atk_read_value_new(struct atk_sensor_data *sensor, u64 *value) in atk_read_value_new() argument
613 struct atk_data *data = sensor->data; in atk_read_value_new()
619 obj = atk_gitm(data, sensor->id); in atk_read_value_new()
630 dev_warn(dev, "Read failed, sensor = %#llx\n", sensor->id); in atk_read_value_new()
641 static int atk_read_value(struct atk_sensor_data *sensor, u64 *value) in atk_read_value() argument
[all …]
Dibmpex.c191 static int ibmpex_query_sensor_name(struct ibmpex_bmc_data *data, int sensor) in ibmpex_query_sensor_name() argument
194 data->tx_msg_data[1] = sensor; in ibmpex_query_sensor_name()
206 static int ibmpex_query_sensor_data(struct ibmpex_bmc_data *data, int sensor) in ibmpex_query_sensor_data() argument
209 data->tx_msg_data[1] = sensor; in ibmpex_query_sensor_data()
217 sensor); in ibmpex_query_sensor_data()
347 int counter, int sensor, int func) in create_sensor() argument
361 sysfs_attr_init(&data->sensors[sensor].attr[func].dev_attr.attr); in create_sensor()
362 data->sensors[sensor].attr[func].dev_attr.attr.name = n; in create_sensor()
363 data->sensors[sensor].attr[func].dev_attr.attr.mode = S_IRUGO; in create_sensor()
364 data->sensors[sensor].attr[func].dev_attr.show = ibmpex_show_sensor; in create_sensor()
[all …]
/linux-3.4.99/Documentation/hwmon/
Dabituguru-datasheet60 in a bank for a sensor is one or more bytes large.
67 number of bytes data per sensor and contents/meaning of those bytes.
69 Although both this document and the kernel driver have kept the sensor
72 a sensor.
99 Sending bank and sensor addresses to the uGuru
109 Once DATA holds 0x08 again write the sensor address to CMD.
115 First send the bank and sensor addresses as described above.
134 First send the bank and sensor addresses as described above.
167 This bank contains 0 sensors, iow the sensor address is ignored (but must be
171 This byte holds the alarm flags for sensor 0-7 of Sensor Bank1, with bit 0
[all …]
/linux-3.4.99/drivers/macintosh/
Dwindfarm_pm121.c362 struct wf_sensor **sensor; /* use sensor_id instead ? */ member
372 .sensor = &sensor_gpu_temp,
378 .sensor = &sensor_gpu_temp,
387 .sensor = &sensor_hard_drive_temp,
393 .sensor = &sensor_hard_drive_temp,
402 .sensor = &sensor_north_bridge_temp,
408 .sensor = &sensor_north_bridge_temp,
417 .sensor = &sensor_optical_drive_temp,
423 .sensor = &sensor_optical_drive_temp,
583 struct wf_sensor *sensor; in pm121_sys_fans_tick() local
[all …]
/linux-3.4.99/drivers/hwmon/pmbus/
Dpmbus_core.c421 struct pmbus_sensor *sensor = &data->sensors[i]; in pmbus_update_device() local
423 if (!data->valid || sensor->update) in pmbus_update_device()
424 sensor->data in pmbus_update_device()
426 sensor->page, in pmbus_update_device()
427 sensor->reg); in pmbus_update_device()
442 struct pmbus_sensor *sensor) in pmbus_reg2data_linear() argument
448 if (sensor->class == PSC_VOLTAGE_OUT) { /* LINEAR16 */ in pmbus_reg2data_linear()
450 mantissa = (u16) sensor->data; in pmbus_reg2data_linear()
452 exponent = ((s16)sensor->data) >> 11; in pmbus_reg2data_linear()
453 mantissa = ((s16)((sensor->data & 0x7ff) << 5)) >> 5; in pmbus_reg2data_linear()
[all …]
/linux-3.4.99/drivers/media/video/gspca/gl860/
Dgl860.c54 static char sensor[7]; variable
55 module_param_string(sensor, sensor, sizeof(sensor), 0644);
56 MODULE_PARM_DESC(sensor,
325 sd->sensor = 0xff; in sd_config()
326 if (strcmp(sensor, "MI1320") == 0) in sd_config()
327 sd->sensor = ID_MI1320; in sd_config()
328 else if (strcmp(sensor, "OV2640") == 0) in sd_config()
329 sd->sensor = ID_OV2640; in sd_config()
330 else if (strcmp(sensor, "OV9655") == 0) in sd_config()
331 sd->sensor = ID_OV9655; in sd_config()
[all …]
Dgl860.h35 #define _MI1320_ (((struct sd *) gspca_dev)->sensor == ID_MI1320)
36 #define _MI2020_ (((struct sd *) gspca_dev)->sensor == ID_MI2020)
37 #define _OV2640_ (((struct sd *) gspca_dev)->sensor == ID_OV2640)
38 #define _OV9655_ (((struct sd *) gspca_dev)->sensor == ID_OV9655)
75 u8 sensor; member
/linux-3.4.99/drivers/media/video/sn9c102/
Dsn9c102_core.c145 struct v4l2_pix_format* p = &(cam->sensor.pix_format); in sn9c102_request_buffers()
146 struct v4l2_rect* r = &(cam->sensor.cropcap.bounds); in sn9c102_request_buffers()
329 const struct sn9c102_sensor* sensor) in sn9c102_i2c_wait() argument
339 if (sensor->frequency & SN9C102_I2C_400KHZ) in sn9c102_i2c_wait()
350 const struct sn9c102_sensor* sensor) in sn9c102_i2c_detect_read_error() argument
372 const struct sn9c102_sensor* sensor) in sn9c102_i2c_detect_write_error() argument
382 const struct sn9c102_sensor* sensor, u8 data0, in sn9c102_i2c_try_raw_read() argument
390 data[0] = ((sensor->interface == SN9C102_I2C_2WIRES) ? 0x80 : 0) | in sn9c102_i2c_try_raw_read()
391 ((sensor->frequency & SN9C102_I2C_400KHZ) ? 0x01 : 0) | 0x10; in sn9c102_i2c_try_raw_read()
400 err += sn9c102_i2c_wait(cam, sensor); in sn9c102_i2c_try_raw_read()
[all …]

123456789