Home
last modified time | relevance | path

Searched refs:sda (Results 1 – 14 of 14) sorted by relevance

/drivers/video/fbdev/
Damba-clcd-nomadik.c16 static struct gpio_desc *sda; variable
29 gpiod_set_value_cansleep(sda, 1); in tpg110_readwrite_reg()
31 gpiod_set_value_cansleep(sda, 0); in tpg110_readwrite_reg()
42 gpiod_set_value_cansleep(sda, 0); in tpg110_readwrite_reg()
45 gpiod_set_value_cansleep(sda, 1); in tpg110_readwrite_reg()
56 gpiod_direction_input(sda); in tpg110_readwrite_reg()
70 gpiod_set_value_cansleep(sda, value); in tpg110_readwrite_reg()
72 value = gpiod_get_value(sda); in tpg110_readwrite_reg()
84 gpiod_direction_output(sda, 0); in tpg110_readwrite_reg()
207 sda = devm_get_gpiod_from_child(dev, "sda", &np->fwnode); in tpg110_init()
[all …]
/drivers/hwmon/
Demc1403.c49 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in show_temp() local
54 retval = regmap_read(data->regmap, sda->index, &val); in show_temp()
63 struct sensor_device_attribute_2 *sda = to_sensor_dev_attr_2(attr); in show_bit() local
68 retval = regmap_read(data->regmap, sda->nr, &val); in show_bit()
71 return sprintf(buf, "%d\n", !!(val & sda->index)); in show_bit()
77 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in store_temp() local
84 retval = regmap_write(data->regmap, sda->index, in store_temp()
94 struct sensor_device_attribute_2 *sda = to_sensor_dev_attr_2(attr); in store_bit() local
102 retval = regmap_update_bits(data->regmap, sda->nr, sda->index, in store_bit()
103 val ? sda->index : 0); in store_bit()
[all …]
Dtmp103.c68 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in tmp103_show_temp() local
73 ret = regmap_read(regmap, sda->index, &regval); in tmp103_show_temp()
84 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in tmp103_set_temp() local
93 ret = regmap_write(regmap, sda->index, tmp103_mc_to_reg(val)); in tmp103_set_temp()
Dasc7621.c110 container_of(_sda, struct asc7621_param, sda)
118 struct sensor_device_attribute sda; member
163 struct sensor_device_attribute *sda = to_sensor_dev_attr(a); \
165 struct asc7621_param *param = to_asc7621_param(sda)
168 struct sensor_device_attribute *sda = to_sensor_dev_attr(a); \
171 struct asc7621_param *param = to_asc7621_param(sda)
312 u8 nr = sda->index; in show_in10()
329 u8 nr = sda->index; in show_in8()
341 u8 nr = sda->index; in store_in8()
814 {.sda = SENSOR_ATTR(name, S_IRUGO, show_##r, NULL, n), \
[all …]
Dapplesmc.c107 struct sensor_device_attribute sda; /* hwmon attributes */ member
1093 for (node = grp->nodes; node->sda.dev_attr.attr.name; node++) in applesmc_destroy_nodes()
1095 &node->sda.dev_attr.attr); in applesmc_destroy_nodes()
1120 node->sda.index = (grp->option << 16) | (i & 0xffff); in applesmc_create_nodes()
1121 node->sda.dev_attr.show = grp->show; in applesmc_create_nodes()
1122 node->sda.dev_attr.store = grp->store; in applesmc_create_nodes()
1123 attr = &node->sda.dev_attr.attr; in applesmc_create_nodes()
/drivers/i2c/algos/
Di2c-algo-bit.c240 int scl, sda, ret; in test_bus() local
251 sda = getsda(adap); in test_bus()
253 if (!scl || !sda) { in test_bus()
256 name, scl, sda); in test_bus()
261 sda = getsda(adap); in test_bus()
263 if (sda) { in test_bus()
274 sda = getsda(adap); in test_bus()
276 if (!sda) { in test_bus()
287 sda = getsda(adap); in test_bus()
293 if (!sda) { in test_bus()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
Dbit.c108 i2c_bitw(struct nvkm_i2c_bus *bus, int sda) in i2c_bitw() argument
110 nvkm_i2c_drive_sda(bus, sda); in i2c_bitw()
125 int sda; in i2c_bitr() local
134 sda = nvkm_i2c_sense_sda(bus); in i2c_bitr()
138 return sda; in i2c_bitr()
/drivers/media/usb/gspca/
Dw996Xcf.c202 int sda; in w9968cf_smbus_write_byte() local
205 sda = (v & 0x80) ? 2 : 0; in w9968cf_smbus_write_byte()
208 w9968cf_write_sb(sd, 0x10 | sda); in w9968cf_smbus_write_byte()
210 w9968cf_write_sb(sd, 0x11 | sda); in w9968cf_smbus_write_byte()
212 w9968cf_write_sb(sd, 0x10 | sda); in w9968cf_smbus_write_byte()
244 int sda; in w9968cf_smbus_read_ack() local
249 sda = w9968cf_read_sb(sd); in w9968cf_smbus_read_ack()
251 if (sda >= 0 && (sda & 0x08)) { in w9968cf_smbus_read_ack()
/drivers/i2c/busses/
Di2c-ibm_iic.c245 u8 mask, v, sda; in iic_smbus_quick() local
268 sda = 0; in iic_smbus_quick()
274 out_8(&iic->directcntl, sda); in iic_smbus_quick()
276 sda = (v & mask) ? DIRCNTL_SDAC : 0; in iic_smbus_quick()
277 out_8(&iic->directcntl, sda); in iic_smbus_quick()
280 out_8(&iic->directcntl, DIRCNTL_SCC | sda); in iic_smbus_quick()
287 out_8(&iic->directcntl, sda); in iic_smbus_quick()
/drivers/staging/olpc_dcon/
Dolpc_dcon_xo_1_5.c86 static void set_i2c_line(int sda, int scl) in set_i2c_line() argument
100 if (sda) in set_i2c_line()
/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/
Di2c_.fuc80 // $r2 - sda line
203 // $r2 - sda line
218 // $r2 - sda line
/drivers/media/pci/ivtv/
Divtv-i2c.c495 int sda; in ivtv_start() local
497 sda = ivtv_getsda(itv); in ivtv_start()
498 if (sda != 1) { in ivtv_start()
/drivers/gpu/drm/amd/powerplay/smumgr/
Dfiji_smc.c157 static void get_scl_sda_value(uint8_t line, uint8_t *scl, uint8_t *sda) in get_scl_sda_value() argument
162 *sda = SMU7_I2C_DDC1DATA; in get_scl_sda_value()
166 *sda = SMU7_I2C_DDC2DATA; in get_scl_sda_value()
170 *sda = SMU7_I2C_DDC3DATA; in get_scl_sda_value()
174 *sda = SMU7_I2C_DDC4DATA; in get_scl_sda_value()
178 *sda = SMU7_I2C_DDC5DATA; in get_scl_sda_value()
182 *sda = SMU7_I2C_DDC6DATA; in get_scl_sda_value()
186 *sda = SMU7_I2C_SDA; in get_scl_sda_value()
190 *sda = SMU7_I2C_DDCVGADATA; in get_scl_sda_value()
194 *sda = 0; in get_scl_sda_value()
/drivers/pinctrl/sh-pfc/
Dpfc-r8a7778.c1427 #define I2C_PFC_MUX(name, sda, scl) SH_PFC_MUX2(name, sda, scl) argument