/drivers/hwmon/ |
D | emc1403.c | 38 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in temp_show() local 43 retval = regmap_read(data->regmap, sda->index, &val); in temp_show() 52 struct sensor_device_attribute_2 *sda = to_sensor_dev_attr_2(attr); in bit_show() local 57 retval = regmap_read(data->regmap, sda->nr, &val); in bit_show() 60 return sprintf(buf, "%d\n", !!(val & sda->index)); in bit_show() 66 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in temp_store() local 73 retval = regmap_write(data->regmap, sda->index, in temp_store() 83 struct sensor_device_attribute_2 *sda = to_sensor_dev_attr_2(attr); in bit_store() local 91 retval = regmap_update_bits(data->regmap, sda->nr, sda->index, in bit_store() 92 val ? sda->index : 0); in bit_store() [all …]
|
D | tmp103.c | 57 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in tmp103_temp_show() local 62 ret = regmap_read(regmap, sda->index, ®val); in tmp103_temp_show() 73 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in tmp103_temp_store() local 82 ret = regmap_write(regmap, sda->index, tmp103_mc_to_reg(val)); in tmp103_temp_store()
|
D | asc7621.c | 97 container_of(_sda, struct asc7621_param, sda) 105 struct sensor_device_attribute sda; member 150 struct sensor_device_attribute *sda = to_sensor_dev_attr(a); \ 152 struct asc7621_param *param = to_asc7621_param(sda) 155 struct sensor_device_attribute *sda = to_sensor_dev_attr(a); \ 158 struct asc7621_param *param = to_asc7621_param(sda) 299 u8 nr = sda->index; in show_in10() 316 u8 nr = sda->index; in show_in8() 328 u8 nr = sda->index; in store_in8() 800 {.sda = SENSOR_ATTR(name, S_IRUGO, show_##r, NULL, n), \ [all …]
|
D | applesmc.c | 99 struct sensor_device_attribute sda; /* hwmon attributes */ member 1125 for (node = grp->nodes; node->sda.dev_attr.attr.name; node++) in applesmc_destroy_nodes() 1127 &node->sda.dev_attr.attr); in applesmc_destroy_nodes() 1153 node->sda.index = (grp->option << 16) | (i & 0xffff); in applesmc_create_nodes() 1154 node->sda.dev_attr.show = grp->show; in applesmc_create_nodes() 1155 node->sda.dev_attr.store = grp->store; in applesmc_create_nodes() 1156 attr = &node->sda.dev_attr.attr; in applesmc_create_nodes()
|
D | w83627ehf.c | 1114 struct sensor_device_attribute *sda; in w83627ehf_attrs_visible() local 1122 sda = (struct sensor_device_attribute *)devattr; in w83627ehf_attrs_visible() 1124 if (sda->index < 2 && in w83627ehf_attrs_visible() 1130 if (sda->index < 3 && in w83627ehf_attrs_visible() 1134 data->REG_FAN_STEP_OUTPUT[sda->index] != 0xff) in w83627ehf_attrs_visible() 1138 if (sda->index == 2 && in w83627ehf_attrs_visible() 1145 if (sda->index == 3 && in w83627ehf_attrs_visible() 1156 (data->has_fan & (1 << sda->index)) && in w83627ehf_attrs_visible() 1157 sda->index < data->pwm_num) in w83627ehf_attrs_visible()
|
/drivers/i2c/algos/ |
D | i2c-algo-bit.c | 233 int scl, sda, ret; in test_bus() local 244 sda = getsda(adap); in test_bus() 246 if (!scl || !sda) { in test_bus() 249 name, scl, sda); in test_bus() 254 sda = getsda(adap); in test_bus() 256 if (sda) { in test_bus() 268 sda = getsda(adap); in test_bus() 270 if (!sda) { in test_bus() 282 sda = getsda(adap); in test_bus() 288 if (!sda) { in test_bus() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
D | bit.c | 108 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/i2c/busses/ |
D | i2c-gpio.c | 22 struct gpio_desc *sda; member 44 gpiod_set_value_cansleep(priv->sda, state); in i2c_gpio_setsda_val() 64 return gpiod_get_value_cansleep(priv->sda); in i2c_gpio_getsda() 104 WIRE_ATTRIBUTE(sda); 399 priv->sda = i2c_gpio_get_desc(dev, "sda", 0, gflags); in i2c_gpio_probe() 400 if (IS_ERR(priv->sda)) in i2c_gpio_probe() 401 return PTR_ERR(priv->sda); in i2c_gpio_probe() 411 if (gpiod_cansleep(priv->sda) || gpiod_cansleep(priv->scl)) in i2c_gpio_probe() 461 desc_to_gpio(priv->sda), desc_to_gpio(priv->scl), in i2c_gpio_probe()
|
D | i2c-ibm_iic.c | 242 u8 mask, v, sda; in iic_smbus_quick() local 265 sda = 0; in iic_smbus_quick() 271 out_8(&iic->directcntl, sda); in iic_smbus_quick() 273 sda = (v & mask) ? DIRCNTL_SDAC : 0; in iic_smbus_quick() 274 out_8(&iic->directcntl, sda); in iic_smbus_quick() 277 out_8(&iic->directcntl, DIRCNTL_SCC | sda); in iic_smbus_quick() 284 out_8(&iic->directcntl, sda); in iic_smbus_quick()
|
/drivers/media/usb/gspca/ |
D | w996Xcf.c | 192 int sda; in w9968cf_smbus_write_byte() local 195 sda = (v & 0x80) ? 2 : 0; in w9968cf_smbus_write_byte() 198 w9968cf_write_sb(sd, 0x10 | sda); in w9968cf_smbus_write_byte() 200 w9968cf_write_sb(sd, 0x11 | sda); in w9968cf_smbus_write_byte() 202 w9968cf_write_sb(sd, 0x10 | sda); in w9968cf_smbus_write_byte() 234 int sda; in w9968cf_smbus_read_ack() local 239 sda = w9968cf_read_sb(sd); in w9968cf_smbus_read_ack() 241 if (sda >= 0 && (sda & 0x08)) { in w9968cf_smbus_read_ack()
|
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | vega10_processpptables.c | 376 static void get_scl_sda_value(uint8_t line, uint8_t *scl, uint8_t* sda) in get_scl_sda_value() argument 381 *sda = Vega10_I2C_DDC1DATA; in get_scl_sda_value() 385 *sda = Vega10_I2C_DDC2DATA; in get_scl_sda_value() 389 *sda = Vega10_I2C_DDC3DATA; in get_scl_sda_value() 393 *sda = Vega10_I2C_DDC4DATA; in get_scl_sda_value() 397 *sda = Vega10_I2C_DDC5DATA; in get_scl_sda_value() 401 *sda = Vega10_I2C_DDC6DATA; in get_scl_sda_value() 405 *sda = Vega10_I2C_SDA; in get_scl_sda_value() 409 *sda = Vega10_I2C_DDCVGADATA; in get_scl_sda_value() 413 *sda = 0; in get_scl_sda_value() [all …]
|
/drivers/staging/olpc_dcon/ |
D | olpc_dcon_xo_1_5.c | 130 static void set_i2c_line(int sda, int scl) in set_i2c_line() argument 144 if (sda) in set_i2c_line()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/ |
D | i2c_.fuc | 80 // $r2 - sda line 203 // $r2 - sda line 218 // $r2 - sda line
|
/drivers/media/pci/ivtv/ |
D | ivtv-i2c.c | 478 int sda; in ivtv_start() local 480 sda = ivtv_getsda(itv); in ivtv_start() 481 if (sda != 1) { in ivtv_start()
|
/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
D | fiji_smumgr.c | 425 static void get_scl_sda_value(uint8_t line, uint8_t *scl, uint8_t *sda) in get_scl_sda_value() argument 430 *sda = SMU7_I2C_DDC1DATA; in get_scl_sda_value() 434 *sda = SMU7_I2C_DDC2DATA; in get_scl_sda_value() 438 *sda = SMU7_I2C_DDC3DATA; in get_scl_sda_value() 442 *sda = SMU7_I2C_DDC4DATA; in get_scl_sda_value() 446 *sda = SMU7_I2C_DDC5DATA; in get_scl_sda_value() 450 *sda = SMU7_I2C_DDC6DATA; in get_scl_sda_value() 454 *sda = SMU7_I2C_SDA; in get_scl_sda_value() 458 *sda = SMU7_I2C_DDCVGADATA; in get_scl_sda_value() 462 *sda = 0; in get_scl_sda_value()
|
/drivers/pinctrl/renesas/ |
D | pfc-r8a7778.c | 1403 #define I2C_PFC_MUX(name, sda, scl) SH_PFC_MUX2(name, sda, scl) argument
|