Home
last modified time | relevance | path

Searched refs:sdata (Results 1 – 22 of 22) sorted by relevance

/drivers/iio/common/st_sensors/
Dst_sensors_core.c34 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_write_data_with_mask() local
36 err = sdata->tf->read_byte(&sdata->tb, sdata->dev, reg_addr, &new_data); in st_sensors_write_data_with_mask()
41 err = sdata->tf->write_byte(&sdata->tb, sdata->dev, reg_addr, new_data); in st_sensors_write_data_with_mask()
51 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_debugfs_reg_access() local
56 return sdata->tf->write_byte(&sdata->tb, sdata->dev, in st_sensors_debugfs_reg_access()
59 err = sdata->tf->read_byte(&sdata->tb, sdata->dev, (u8)reg, &readdata); in st_sensors_debugfs_reg_access()
94 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_set_odr() local
96 err = st_sensors_match_odr(sdata->sensor_settings, odr, &odr_out); in st_sensors_set_odr()
100 if ((sdata->sensor_settings->odr.addr == in st_sensors_set_odr()
101 sdata->sensor_settings->pw.addr) && in st_sensors_set_odr()
[all …]
Dst_sensors_trigger.c25 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_allocate_trigger() local
27 sdata->trig = iio_trigger_alloc("%s-trigger", indio_dev->name); in st_sensors_allocate_trigger()
28 if (sdata->trig == NULL) { in st_sensors_allocate_trigger()
34 err = request_threaded_irq(sdata->get_irq_data_ready(indio_dev), in st_sensors_allocate_trigger()
38 sdata->trig->name, in st_sensors_allocate_trigger()
39 sdata->trig); in st_sensors_allocate_trigger()
45 iio_trigger_set_drvdata(sdata->trig, indio_dev); in st_sensors_allocate_trigger()
46 sdata->trig->ops = trigger_ops; in st_sensors_allocate_trigger()
47 sdata->trig->dev.parent = sdata->dev; in st_sensors_allocate_trigger()
49 err = iio_trigger_register(sdata->trig); in st_sensors_allocate_trigger()
[all …]
Dst_sensors_buffer.c29 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_get_buffer_element() local
30 unsigned int num_data_channels = sdata->num_data_channels; in st_sensors_get_buffer_element()
48 len = sdata->tf->read_multiple_byte(&sdata->tb, sdata->dev, in st_sensors_get_buffer_element()
49 addr[0], byte_for_channel, buf, sdata->multiread_bit); in st_sensors_get_buffer_element()
53 len = sdata->tf->read_multiple_byte(&sdata->tb, in st_sensors_get_buffer_element()
54 sdata->dev, addr[0], byte_for_channel * n, in st_sensors_get_buffer_element()
55 buf, sdata->multiread_bit); in st_sensors_get_buffer_element()
65 len = sdata->tf->read_multiple_byte(&sdata->tb, in st_sensors_get_buffer_element()
66 sdata->dev, addr[0], in st_sensors_get_buffer_element()
68 rx_array, sdata->multiread_bit); in st_sensors_get_buffer_element()
[all …]
Dst_sensors_i2c.c24 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_i2c_get_irq() local
26 return to_i2c_client(sdata->dev)->irq; in st_sensors_i2c_get_irq()
68 struct i2c_client *client, struct st_sensor_data *sdata) in st_sensors_i2c_configure() argument
75 sdata->dev = &client->dev; in st_sensors_i2c_configure()
76 sdata->tf = &st_sensors_tf_i2c; in st_sensors_i2c_configure()
77 sdata->get_irq_data_ready = st_sensors_i2c_get_irq; in st_sensors_i2c_configure()
Dst_sensors_spi.c24 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_spi_get_irq() local
26 return to_spi_device(sdata->dev)->irq; in st_sensors_spi_get_irq()
107 struct spi_device *spi, struct st_sensor_data *sdata) in st_sensors_spi_configure() argument
114 sdata->dev = &spi->dev; in st_sensors_spi_configure()
115 sdata->tf = &st_sensors_tf_spi; in st_sensors_spi_configure()
116 sdata->get_irq_data_ready = st_sensors_spi_get_irq; in st_sensors_spi_configure()
/drivers/hwmon/
Dibmpowernv.c89 struct sensor_data *sdata = container_of(devattr, struct sensor_data, in show_sensor() local
94 ret = opal_get_sensor_data(sdata->id, &x); in show_sensor()
99 if (sdata->type == TEMP) in show_sensor()
102 else if (sdata->type == POWER_INPUT) in show_sensor()
111 struct sensor_data *sdata = container_of(devattr, struct sensor_data, in show_label() local
114 return sprintf(buf, "%s\n", sdata->label); in show_label()
129 struct sensor_data *sdata, const char *label) in make_sensor_label() argument
134 n = snprintf(sdata->label, sizeof(sdata->label), "%s", label); in make_sensor_label()
149 n += snprintf(sdata->label + n, in make_sensor_label()
150 sizeof(sdata->label) - n, " %d-%d", in make_sensor_label()
[all …]
/drivers/media/pci/cx18/
Dcx18-vbi.c63 struct v4l2_sliced_vbi_data *sdata = cx->vbi.sliced_data + i; in copy_vbi_data() local
66 if (sdata->id == 0) in copy_vbi_data()
69 l = sdata->line - 6; in copy_vbi_data()
70 f = sdata->field; in copy_vbi_data()
77 dst[sd + 12 + line * 43] = cx18_service2vbi(sdata->id); in copy_vbi_data()
78 memcpy(dst + sd + 12 + line * 43 + 1, sdata->data, 42); in copy_vbi_data()
/drivers/dma/
Ds3c24xx-dma.c241 struct soc_data *sdata; member
274 if (s3cdma->sdata->has_reqsel) in s3c24xx_dma_phy_valid()
329 if (s3cdma->sdata->has_clocks) { in s3c24xx_dma_get_phy()
351 if (s3cdma->sdata->has_clocks) in s3c24xx_dma_put_phy()
474 if (s3cdma->sdata->has_reqsel) { in s3c24xx_dma_start_next_sg()
487 if (s3cdma->sdata->has_reqsel) in s3c24xx_dma_start_next_sg()
1195 struct soc_data *sdata; in s3c24xx_dma_probe() local
1212 sdata = s3c24xx_dma_get_soc_data(pdev); in s3c24xx_dma_probe()
1213 if (!sdata) in s3c24xx_dma_probe()
1222 s3cdma->sdata = sdata; in s3c24xx_dma_probe()
[all …]
/drivers/cpufreq/
Dqoriq-cpufreq.c50 static const struct soc_data sdata[] = { variable
336 { .compatible = "fsl,p2041-clockgen", .data = &sdata[0], },
337 { .compatible = "fsl,p3041-clockgen", .data = &sdata[0], },
338 { .compatible = "fsl,p5020-clockgen", .data = &sdata[1], },
339 { .compatible = "fsl,p4080-clockgen", .data = &sdata[2], },
340 { .compatible = "fsl,p5040-clockgen", .data = &sdata[2], },
/drivers/platform/x86/
Dsamsung-laptop.c1258 struct sabi_data *sdata = &samsung->debug.data; in show_call() local
1263 sdata->d0, sdata->d1, sdata->d2, sdata->d3); in show_call()
1265 ret = sabi_command(samsung, samsung->debug.command, sdata, sdata); in show_call()
1274 sdata->d0, sdata->d1, sdata->d2, sdata->d3); in show_call()
/drivers/thermal/st/
Dst_thermal_memmap.c41 static irqreturn_t st_mmap_thermal_trip_handler(int irq, void *sdata) in st_mmap_thermal_trip_handler() argument
43 struct st_thermal_sensor *sensor = sdata; in st_mmap_thermal_trip_handler()
/drivers/staging/rdma/ipath/
Dipath_ruc.c267 u64 sdata; in ipath_ruc_loopback() local
385 sdata = wqe->atomic_wr.compare_add; in ipath_ruc_loopback()
388 (u64) atomic64_add_return(sdata, maddr) - sdata : in ipath_ruc_loopback()
390 sdata, wqe->atomic_wr.swap); in ipath_ruc_loopback()
Dipath_rc.c1872 u64 sdata; in ipath_rc_rcv() local
1907 sdata = be64_to_cpu(ateth->swap_data); in ipath_rc_rcv()
1910 (u64) atomic64_add_return(sdata, maddr) - sdata : in ipath_rc_rcv()
1913 sdata); in ipath_rc_rcv()
/drivers/infiniband/hw/qib/
Dqib_ruc.c364 u64 sdata; in qib_ruc_loopback() local
499 sdata = wqe->atomic_wr.compare_add; in qib_ruc_loopback()
502 (u64) atomic64_add_return(sdata, maddr) - sdata : in qib_ruc_loopback()
504 sdata, wqe->atomic_wr.swap); in qib_ruc_loopback()
Dqib_rc.c2174 u64 sdata; in qib_rc_rcv() local
2207 sdata = be64_to_cpu(ateth->swap_data); in qib_rc_rcv()
2209 (u64) atomic64_add_return(sdata, maddr) - sdata : in qib_rc_rcv()
2212 sdata); in qib_rc_rcv()
/drivers/scsi/
Dgdth_ioctl.h90 u32 sdata; /* dest. addr. (if s/g: -1) */ member
109 u64 sdata; /* dest. addr. (if s/g: -1) */ member
Dgdth.c2700 cmdp->u.raw64.sdata = (u64)-1; in gdth_fill_raw_cmd()
2715 cmdp->u.raw.sdata = 0xffffffff; in gdth_fill_raw_cmd()
2736 cmdp->u.raw64.sdata,cmdp->u.raw64.sg_ranz, in gdth_fill_raw_cmd()
2744 cmdp->u.raw.sdata,cmdp->u.raw.sg_ranz, in gdth_fill_raw_cmd()
4237 gen.command.u.raw64.sdata = (u64)-1; in ioc_general()
4243 gen.command.u.raw64.sdata = paddr; in ioc_general()
4249 gen.command.u.raw.sdata = 0xffffffff; in ioc_general()
4255 gen.command.u.raw.sdata = paddr; in ioc_general()
/drivers/staging/rdma/hfi1/
Druc.c384 u64 sdata; in ruc_loopback() local
521 sdata = wqe->atomic_wr.compare_add; in ruc_loopback()
524 (u64) atomic64_add_return(sdata, maddr) - sdata : in ruc_loopback()
526 sdata, wqe->atomic_wr.swap); in ruc_loopback()
Drc.c2262 u64 sdata; in hfi1_rc_rcv() local
2295 sdata = be64_to_cpu(ateth->swap_data); in hfi1_rc_rcv()
2297 (u64) atomic64_add_return(sdata, maddr) - sdata : in hfi1_rc_rcv()
2300 sdata); in hfi1_rc_rcv()
/drivers/s390/cio/
Ddevice_pgid.c643 struct stlck_data *sdata = data; in stlck_callback() local
645 sdata->rc = rc; in stlck_callback()
646 complete(&sdata->done); in stlck_callback()
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dinit.c1509 u16 mdata, sdata; in init_configure_mem() local
1522 sdata = bmp_sdr_seq_table(bios); in init_configure_mem()
1524 sdata = bmp_ddr_seq_table(bios); in init_configure_mem()
1530 for (; (addr = nvbios_rd32(bios, sdata)) != 0xffffffff; sdata += 4) { in init_configure_mem()
/drivers/s390/net/
Dqeth_core_main.c4515 struct qeth_reply *reply, unsigned long sdata) in qeth_snmp_command_cb() argument
4525 cmd = (struct qeth_ipa_cmd *) sdata; in qeth_snmp_command_cb()