/drivers/input/touchscreen/ |
D | rohm_bu21023.c | 332 int error, error2; in rohm_ts_manual_calibration() local 347 error = i2c_smbus_write_byte_data(client, INT_MASK, in rohm_ts_manual_calibration() 350 if (error) in rohm_ts_manual_calibration() 353 error = i2c_smbus_write_byte_data(client, TEST1, in rohm_ts_manual_calibration() 355 if (error) in rohm_ts_manual_calibration() 364 error = rohm_i2c_burst_read(client, PRM1_X_H, buf, sizeof(buf)); in rohm_ts_manual_calibration() 365 if (error) in rohm_ts_manual_calibration() 378 error = i2c_smbus_write_byte_data(client, TEST1, in rohm_ts_manual_calibration() 380 if (error) in rohm_ts_manual_calibration() 413 error = i2c_smbus_write_byte_data(client, in rohm_ts_manual_calibration() [all …]
|
D | raydium_i2c_ts.c | 171 int error; in raydium_i2c_send() local 211 error = raydium_i2c_xfer(client, addr, xfer, ARRAY_SIZE(xfer)); in raydium_i2c_send() 212 if (likely(!error)) in raydium_i2c_send() 218 dev_err(&client->dev, "%s failed: %d\n", __func__, error); in raydium_i2c_send() 221 return error; in raydium_i2c_send() 227 int error; in raydium_i2c_read() local 266 error = raydium_i2c_xfer(client, addr, xfer, ARRAY_SIZE(xfer)); in raydium_i2c_read() 267 if (unlikely(error)) in raydium_i2c_read() 268 return error; in raydium_i2c_read() 281 int error; in raydium_i2c_sw_reset() local [all …]
|
D | ilitek_ts_i2c.c | 96 int error; in ilitek_i2c_write_and_read() local 114 error = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in ilitek_i2c_write_and_read() 115 if (error < 0) in ilitek_i2c_write_and_read() 116 return error; in ilitek_i2c_write_and_read() 119 error = i2c_transfer(client->adapter, msgs, 1); in ilitek_i2c_write_and_read() 120 if (error < 0) in ilitek_i2c_write_and_read() 121 return error; in ilitek_i2c_write_and_read() 127 error = i2c_transfer(client->adapter, msgs + 1, 1); in ilitek_i2c_write_and_read() 128 if (error < 0) in ilitek_i2c_write_and_read() 129 return error; in ilitek_i2c_write_and_read() [all …]
|
D | silead.c | 88 int error; in silead_ts_request_input_dev() local 112 error = input_register_device(data->input); in silead_ts_request_input_dev() 113 if (error) { in silead_ts_request_input_dev() 114 dev_err(dev, "Failed to register input device: %d\n", error); in silead_ts_request_input_dev() 115 return error; in silead_ts_request_input_dev() 138 int touch_nr, softbutton, error, i; in silead_ts_read_data() local 141 error = i2c_smbus_read_i2c_block_data(client, SILEAD_REG_DATA, in silead_ts_read_data() 143 if (error < 0) { in silead_ts_read_data() 144 dev_err(dev, "Data read error %d\n", error); in silead_ts_read_data() 204 int error; in silead_ts_init() local [all …]
|
D | elants_i2c.c | 301 int ret, error; in elants_i2c_calibrate() local 322 error = ret < 0 ? ret : -ETIMEDOUT; in elants_i2c_calibrate() 325 error); in elants_i2c_calibrate() 326 return error; in elants_i2c_calibrate() 342 int error; in elants_i2c_sw_reset() local 344 error = elants_i2c_send(client, soft_rst_cmd, in elants_i2c_sw_reset() 346 if (error) { in elants_i2c_sw_reset() 347 dev_err(&client->dev, "software reset failed: %d\n", error); in elants_i2c_sw_reset() 348 return error; in elants_i2c_sw_reset() 371 int error; in elants_i2c_query_hw_version() local [all …]
|
D | bu21013_ts.c | 240 int error; in bu21013_gpio_irq() local 243 error = bu21013_do_touch_report(ts); in bu21013_gpio_irq() 244 if (error) { in bu21013_gpio_irq() 264 int error; in bu21013_init_chip() local 266 error = i2c_smbus_write_byte_data(client, BU21013_RESET_REG, in bu21013_init_chip() 268 if (error) { in bu21013_init_chip() 270 return error; in bu21013_init_chip() 274 error = i2c_smbus_write_byte_data(client, BU21013_SENSOR_0_7_REG, in bu21013_init_chip() 276 if (error) { in bu21013_init_chip() 278 return error; in bu21013_init_chip() [all …]
|
D | cyttsp_core.c | 81 int error; in ttsp_read_block_data() local 85 error = ts->bus_ops->read(ts->dev, ts->xfer_buf, command, in ttsp_read_block_data() 87 if (!error) in ttsp_read_block_data() 99 int error; in ttsp_write_block_data() local 103 error = ts->bus_ops->write(ts->dev, ts->xfer_buf, command, in ttsp_write_block_data() 105 if (!error) in ttsp_write_block_data() 139 int error; in cyttsp_exit_bl_mode() local 147 error = ttsp_write_block_data(ts, CY_REG_BASE, in cyttsp_exit_bl_mode() 149 if (error) in cyttsp_exit_bl_mode() 150 return error; in cyttsp_exit_bl_mode() [all …]
|
D | zinitix.c | 197 int error; in zinitix_init_touch() local 199 error = zinitix_write_cmd(client, BT541_SWRESET_CMD); in zinitix_init_touch() 200 if (error) { in zinitix_init_touch() 202 return error; in zinitix_init_touch() 205 error = zinitix_write_u16(client, BT541_INT_ENABLE_FLAG, 0x0); in zinitix_init_touch() 206 if (error) { in zinitix_init_touch() 209 return error; in zinitix_init_touch() 213 error = zinitix_write_u16(client, BT541_X_RESOLUTION, in zinitix_init_touch() 215 if (error) in zinitix_init_touch() 216 return error; in zinitix_init_touch() [all …]
|
D | hycon-hy46xx.c | 106 int error; in hycon_hy46xx_isr() local 110 error = regmap_bulk_read(tsdata->regmap, 0, rdbuf, sizeof(rdbuf)); in hycon_hy46xx_isr() 111 if (error) { in hycon_hy46xx_isr() 113 error); in hycon_hy46xx_isr() 185 int error = 0; in hycon_hy46xx_setting_show() local 190 error = regmap_read(tsdata->regmap, attr->address, &val); in hycon_hy46xx_setting_show() 191 if (error < 0) { in hycon_hy46xx_setting_show() 194 dattr->attr.name, error); in hycon_hy46xx_setting_show() 209 return error ?: count; in hycon_hy46xx_setting_show() 222 int error; in hycon_hy46xx_setting_store() local [all …]
|
D | hideep.c | 242 int error; in hideep_pgm_r_reg() local 244 error = hideep_pgm_r_mem(ts, addr, &data, 1); in hideep_pgm_r_reg() 245 if (error) { in hideep_pgm_r_reg() 248 addr, error); in hideep_pgm_r_reg() 249 return error; in hideep_pgm_r_reg() 259 int error; in hideep_pgm_w_reg() local 261 error = hideep_pgm_w_mem(ts, addr, &data, 1); in hideep_pgm_w_reg() 262 if (error) { in hideep_pgm_w_reg() 265 addr, val, error); in hideep_pgm_w_reg() 266 return error; in hideep_pgm_w_reg() [all …]
|
D | wdt87xx_i2c.c | 205 int error; in wdt87xx_i2c_xfer() local 210 error = ret < 0 ? ret : -EIO; in wdt87xx_i2c_xfer() 212 __func__, error); in wdt87xx_i2c_xfer() 213 return error; in wdt87xx_i2c_xfer() 223 int error; in wdt87xx_get_desc() local 227 error = wdt87xx_i2c_xfer(client, tx_buf, sizeof(tx_buf), in wdt87xx_get_desc() 229 if (error) { in wdt87xx_get_desc() 230 dev_err(&client->dev, "get desc failed: %d\n", error); in wdt87xx_get_desc() 231 return error; in wdt87xx_get_desc() 251 int error; in wdt87xx_get_string() local [all …]
|
D | mms114.c | 93 int error; in __mms114_read_reg() local 110 error = i2c_transfer(client->adapter, xfer, 2); in __mms114_read_reg() 111 if (error != 2) { in __mms114_read_reg() 113 "%s: i2c transfer failed (%d)\n", __func__, error); in __mms114_read_reg() 114 return error < 0 ? error : -EIO; in __mms114_read_reg() 124 int error; in mms114_read_reg() local 129 error = __mms114_read_reg(data, reg, 1, &val); in mms114_read_reg() 130 return error < 0 ? error : val; in mms114_read_reg() 138 int error; in mms114_write_reg() local 143 error = i2c_master_send(client, buf, 2); in mms114_write_reg() [all …]
|
D | iqs5xx.c | 178 int error; in iqs5xx_read_word() local 180 error = iqs5xx_read_burst(client, reg, &val_buf, sizeof(val_buf)); in iqs5xx_read_word() 181 if (error) in iqs5xx_read_word() 182 return error; in iqs5xx_read_word() 330 int error, i, j; in iqs5xx_bl_open() local 342 error = iqs5xx_bl_cmd(client, IQS5XX_BL_CMD_VER, 0); in iqs5xx_bl_open() 343 if (!error) in iqs5xx_bl_open() 345 else if (error != -EINVAL) in iqs5xx_bl_open() 348 return error; in iqs5xx_bl_open() 352 dev_err(&client->dev, "Failed to open bootloader: %d\n", error); in iqs5xx_bl_open() [all …]
|
/drivers/base/test/ |
D | property-entry-test.c | 25 int error; in pe_test_uints() local 30 error = fwnode_property_count_u8(node, "prop-u8"); in pe_test_uints() 31 KUNIT_EXPECT_EQ(test, error, 1); in pe_test_uints() 33 error = fwnode_property_read_u8(node, "prop-u8", &val_u8); in pe_test_uints() 34 KUNIT_EXPECT_EQ(test, error, 0); in pe_test_uints() 37 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 1); in pe_test_uints() 38 KUNIT_EXPECT_EQ(test, error, 0); in pe_test_uints() 41 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 2); in pe_test_uints() 42 KUNIT_EXPECT_NE(test, error, 0); in pe_test_uints() 44 error = fwnode_property_read_u8(node, "no-prop-u8", &val_u8); in pe_test_uints() [all …]
|
/drivers/input/mouse/ |
D | elan_i2c_i2c.c | 142 int error; in elan_i2c_initialize() local 145 error = elan_i2c_write_cmd(client, ETP_I2C_STAND_CMD, ETP_I2C_RESET); in elan_i2c_initialize() 146 if (error) { in elan_i2c_initialize() 147 dev_err(dev, "device reset failed: %d\n", error); in elan_i2c_initialize() 148 return error; in elan_i2c_initialize() 155 error = i2c_master_recv(client, val, ETP_I2C_INF_LENGTH); in elan_i2c_initialize() 156 if (error < 0) { in elan_i2c_initialize() 157 dev_err(dev, "failed to read reset response: %d\n", error); in elan_i2c_initialize() 158 return error; in elan_i2c_initialize() 161 error = elan_i2c_read_block(client, ETP_I2C_DESC_CMD, in elan_i2c_initialize() [all …]
|
D | cyapa.c | 172 int error; in cyapa_get_state() local 182 error = cyapa_i2c_reg_read_block(cyapa, BL_HEAD_OFFSET, BL_STATUS_SIZE, in cyapa_get_state() 190 if (cyapa->smbus && (error == -ETIMEDOUT || error == -ENXIO)) { in cyapa_get_state() 192 error = cyapa_read_block(cyapa, in cyapa_get_state() 197 if (error != BL_STATUS_SIZE) in cyapa_get_state() 198 goto error; in cyapa_get_state() 210 error = cyapa_gen3_ops.state_parse(cyapa, in cyapa_get_state() 212 if (!error) in cyapa_get_state() 218 error = cyapa_pip_state_parse(cyapa, in cyapa_get_state() 220 if (!error) in cyapa_get_state() [all …]
|
D | elan_i2c_smbus.c | 58 int len, error; in elan_smbus_initialize() local 65 error = len < 0 ? len : -EIO; in elan_smbus_initialize() 66 return error; in elan_smbus_initialize() 77 error = i2c_smbus_write_byte(client, ETP_SMBUS_ENABLE_TP); in elan_smbus_initialize() 78 if (error) { in elan_smbus_initialize() 79 dev_err(&client->dev, "failed to enable touchpad: %d\n", error); in elan_smbus_initialize() 80 return error; in elan_smbus_initialize() 117 int error; in elan_smbus_calibrate_result() local 122 error = i2c_smbus_read_block_data(client, in elan_smbus_calibrate_result() 124 if (error < 0) in elan_smbus_calibrate_result() [all …]
|
D | elan_i2c_core.c | 192 int error; in elan_set_power() local 195 error = data->ops->power_control(data->client, on); in elan_set_power() 196 if (error >= 0) in elan_set_power() 203 on ? "on" : "off", error); in elan_set_power() 204 return error; in elan_set_power() 210 int error; in elan_sleep() local 213 error = data->ops->sleep_control(data->client, true); in elan_sleep() 214 if (!error) in elan_sleep() 220 return error; in elan_sleep() 225 int error; in elan_query_product() local [all …]
|
/drivers/input/misc/ |
D | bma150.c | 181 int error; in bma150_set_mode() local 183 error = bma150_set_reg_bits(bma150->client, mode, BMA150_WAKE_UP_POS, in bma150_set_mode() 185 if (error) in bma150_set_mode() 186 return error; in bma150_set_mode() 188 error = bma150_set_reg_bits(bma150->client, mode, BMA150_SLEEP_POS, in bma150_set_mode() 190 if (error) in bma150_set_mode() 191 return error; in bma150_set_mode() 202 int error; in bma150_soft_reset() local 204 error = bma150_set_reg_bits(bma150->client, 1, BMA150_SW_RES_POS, in bma150_soft_reset() 206 if (error) in bma150_soft_reset() [all …]
|
D | da7280.c | 287 int error; in da7280_haptic_mem_update() local 290 error = regmap_read(haptics->regmap, DA7280_IRQ_STATUS1, &val); in da7280_haptic_mem_update() 291 if (error) in da7280_haptic_mem_update() 292 return error; in da7280_haptic_mem_update() 301 error = regmap_read(haptics->regmap, DA7280_MEM_CTL2, &val); in da7280_haptic_mem_update() 302 if (error) in da7280_haptic_mem_update() 303 return error; in da7280_haptic_mem_update() 310 error = regmap_update_bits(haptics->regmap, in da7280_haptic_mem_update() 314 if (error) in da7280_haptic_mem_update() 315 return error; in da7280_haptic_mem_update() [all …]
|
D | drv2667.c | 133 int error; in drv2667_set_waveform_freq() local 145 error = regmap_read(haptics->regmap, DRV2667_PAGE, &read_buf); in drv2667_set_waveform_freq() 146 if (error) { in drv2667_set_waveform_freq() 148 "Failed to read the page number: %d\n", error); in drv2667_set_waveform_freq() 154 error = regmap_write(haptics->regmap, in drv2667_set_waveform_freq() 156 if (error) { in drv2667_set_waveform_freq() 158 "Failed to set the page: %d\n", error); in drv2667_set_waveform_freq() 163 error = regmap_write(haptics->regmap, DRV2667_RAM_FREQ, freq); in drv2667_set_waveform_freq() 164 if (error) in drv2667_set_waveform_freq() 166 "Failed to set the frequency: %d\n", error); in drv2667_set_waveform_freq() [all …]
|
D | drv260x.c | 251 int error; in drv260x_worker() local 257 error = regmap_write(haptics->regmap, in drv260x_worker() 259 if (error) { in drv260x_worker() 261 "Failed to write set mode: %d\n", error); in drv260x_worker() 263 error = regmap_write(haptics->regmap, in drv260x_worker() 265 if (error) in drv260x_worker() 267 "Failed to set magnitude: %d\n", error); in drv260x_worker() 293 int error; in drv260x_close() local 297 error = regmap_write(haptics->regmap, DRV260X_MODE, DRV260X_STANDBY); in drv260x_close() 298 if (error) in drv260x_close() [all …]
|
/drivers/bus/fsl-mc/ |
D | dprc-driver.c | 143 int error; in check_plugged_state_change() local 151 error = device_attach(&mc_dev->dev); in check_plugged_state_change() 152 if (error < 0) { in check_plugged_state_change() 155 error); in check_plugged_state_change() 167 int error; in fsl_mc_obj_device_add() local 178 error = fsl_mc_device_add(obj_desc, NULL, &mc_bus_dev->dev, in fsl_mc_obj_device_add() 180 if (error < 0) in fsl_mc_obj_device_add() 245 int error; in dprc_scan_objects() local 250 error = dprc_get_obj_count(mc_bus_dev->mc_io, in dprc_scan_objects() 254 if (error < 0) { in dprc_scan_objects() [all …]
|
/drivers/media/dvb-frontends/ |
D | drxk_hard.c | 492 goto error; in power_up_device() 498 goto error; in power_up_device() 501 goto error; in power_up_device() 505 goto error; in power_up_device() 509 error: in power_up_device() 764 goto error; in drxx_open() 768 goto error; in drxx_open() 771 goto error; in drxx_open() 774 goto error; in drxx_open() 777 goto error; in drxx_open() [all …]
|
/drivers/phy/motorola/ |
D | phy-cpcap-usb.c | 142 int error, value = 0; in cpcap_usb_vbus_valid() local 144 error = iio_read_channel_processed(ddata->vbus, &value); in cpcap_usb_vbus_valid() 145 if (error >= 0) in cpcap_usb_vbus_valid() 148 dev_err(ddata->dev, "error reading VBUS: %i\n", error); in cpcap_usb_vbus_valid() 179 int val, error; in cpcap_phy_get_ints_state() local 181 error = regmap_read(ddata->reg, CPCAP_REG_INTS1, &val); in cpcap_phy_get_ints_state() 182 if (error) in cpcap_phy_get_ints_state() 183 return error; in cpcap_phy_get_ints_state() 189 error = regmap_read(ddata->reg, CPCAP_REG_INTS2, &val); in cpcap_phy_get_ints_state() 190 if (error) in cpcap_phy_get_ints_state() [all …]
|