Home
last modified time | relevance | path

Searched refs:error (Results 1 – 25 of 4688) sorted by relevance

12345678910>>...188

/linux/drivers/input/touchscreen/
H A Drohm_bu21023.c332 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 …]
H A Dgoodix_fwupload.c88 int tries, error; in goodix_enter_upload_mode() local
93 error = goodix_i2c_write_u8(client, in goodix_enter_upload_mode()
95 if (error) in goodix_enter_upload_mode()
96 return error; in goodix_enter_upload_mode()
98 error = goodix_i2c_read(client, in goodix_enter_upload_mode()
100 if (error) in goodix_enter_upload_mode()
101 return error; in goodix_enter_upload_mode()
113 error = goodix_i2c_write_u8(client, GOODIX_REG_MISCTL_DSP_CTL, 0x00); in goodix_enter_upload_mode()
114 if (error) in goodix_enter_upload_mode()
115 return error; in goodix_enter_upload_mode()
[all …]
H A Draydium_i2c_ts.c171 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 …]
H A Dilitek_ts_i2c.c97 int error; in ilitek_i2c_write_and_read() local
115 error = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in ilitek_i2c_write_and_read()
116 if (error < 0) in ilitek_i2c_write_and_read()
117 return error; in ilitek_i2c_write_and_read()
120 error = i2c_transfer(client->adapter, msgs, 1); in ilitek_i2c_write_and_read()
121 if (error < 0) in ilitek_i2c_write_and_read()
122 return error; in ilitek_i2c_write_and_read()
128 error = i2c_transfer(client->adapter, msgs + 1, 1); in ilitek_i2c_write_and_read()
129 if (error < 0) in ilitek_i2c_write_and_read()
130 return error; in ilitek_i2c_write_and_read()
[all …]
H A Dili210x.c89 int error, ret; in ili210x_read_reg() local
93 error = ret < 0 ? ret : -EIO; in ili210x_read_reg()
94 dev_err(&client->dev, "%s failed: %d\n", __func__, error); in ili210x_read_reg()
95 return error; in ili210x_read_reg()
138 int error; in ili211x_read_touch_data() local
144 error = ret < 0 ? ret : -EIO; in ili211x_read_touch_data()
145 dev_err(&client->dev, "%s failed: %d\n", __func__, error); in ili211x_read_touch_data()
146 return error; in ili211x_read_touch_data()
231 int error; in ili251x_read_reg_common() local
244 error = ret < 0 ? ret : -EIO; in ili251x_read_reg_common()
[all …]
H A Dsilead.c124 int error; in silead_ts_request_input_dev() local
149 error = input_register_device(data->input); in silead_ts_request_input_dev()
150 if (error) { in silead_ts_request_input_dev()
151 dev_err(dev, "Failed to register input device: %d\n", error); in silead_ts_request_input_dev()
152 return error; in silead_ts_request_input_dev()
161 int error; in silead_ts_request_pen_input_dev() local
183 error = input_register_device(data->pen_input); in silead_ts_request_pen_input_dev()
184 if (error) { in silead_ts_request_pen_input_dev()
185 dev_err(dev, "Failed to register pen input device: %d\n", error); in silead_ts_request_pen_input_dev()
186 return error; in silead_ts_request_pen_input_dev()
[all …]
H A Dcyttsp_core.c80 int error; in ttsp_read_block_data() local
84 error = ts->bus_ops->read(ts->dev, ts->xfer_buf, command, in ttsp_read_block_data()
86 if (!error) in ttsp_read_block_data()
98 int error; in ttsp_write_block_data() local
102 error = ts->bus_ops->write(ts->dev, ts->xfer_buf, command, in ttsp_write_block_data()
104 if (!error) in ttsp_write_block_data()
138 int error; in cyttsp_exit_bl_mode() local
146 error = ttsp_write_block_data(ts, CY_REG_BASE, in cyttsp_exit_bl_mode()
148 if (error) in cyttsp_exit_bl_mode()
149 return error; in cyttsp_exit_bl_mode()
[all …]
H A Dchipone_icn8505.c156 int error; in icn8505_read_reg_silent() local
158 error = icn8505_read_xfer(icn8505->client, icn8505->client->addr, reg, in icn8505_read_reg_silent()
160 if (error) in icn8505_read_reg_silent()
161 return error; in icn8505_read_reg_silent()
203 int error; in icn8505_try_fw_upload() local
208 error = icn8505_write_prog_reg(icn8505, 0xcc3355, 0x5a); in icn8505_try_fw_upload()
209 if (error) in icn8505_try_fw_upload()
210 return error; in icn8505_try_fw_upload()
214 error = icn8505_write_prog_reg(icn8505, 0x040400, 0x01); in icn8505_try_fw_upload()
215 if (error) in icn8505_try_fw_upload()
[all …]
/linux/drivers/base/test/
H A Dproperty-entry-test.c25 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 …]
/linux/drivers/input/mouse/
H A Delan_i2c_i2c.c142 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 …]
H A Dcyapa.c172 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 …]
H A Delan_i2c_smbus.c58 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 …]
H A Delan_i2c_core.c191 int error; in elan_set_power() local
194 error = data->ops->power_control(data->client, on); in elan_set_power()
195 if (error >= 0) in elan_set_power()
202 on ? "on" : "off", error); in elan_set_power()
203 return error; in elan_set_power()
209 int error; in elan_sleep() local
212 error = data->ops->sleep_control(data->client, true); in elan_sleep()
213 if (!error) in elan_sleep()
219 return error; in elan_sleep()
224 int error; in elan_query_product() local
[all …]
/linux/fs/
H A Dinit.c47 int error; in init_chdir() local
49 error = kern_path(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, &path); in init_chdir()
50 if (error) in init_chdir()
51 return error; in init_chdir()
52 error = path_permission(&path, MAY_EXEC | MAY_CHDIR); in init_chdir()
53 if (!error) in init_chdir()
56 return error; in init_chdir()
62 int error; in init_chroot() local
64 error = kern_path(filename, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, &path); in init_chroot()
65 if (error) in init_chroot()
[all …]
/linux/fs/xfs/scrub/
H A Dparent.c36 int error; in xchk_setup_parent() local
39 error = xrep_setup_parent(sc); in xchk_setup_parent()
40 if (error) in xchk_setup_parent()
41 return error; in xchk_setup_parent()
67 int error = 0; in xchk_parent_actor() local
71 error = -EFSCORRUPTED; in xchk_parent_actor()
72 if (!xchk_fblock_xref_process_error(sc, XFS_DATA_FORK, 0, &error)) in xchk_parent_actor()
73 return error; in xchk_parent_actor()
78 if (xchk_should_terminate(spc->sc, &error)) in xchk_parent_actor()
79 return error; in xchk_parent_actor()
[all …]
H A Drcbag.c37 int error; in rcbag_init() local
46 error = rcbagbt_mem_init(mp, &bag->xfbtree, btp); in rcbag_init()
47 if (error) in rcbag_init()
55 return error; in rcbag_init()
80 int error; in rcbag_add() local
83 error = rcbagbt_lookup_eq(cur, rmap, &has); in rcbag_add()
84 if (error) in rcbag_add()
88 error = rcbagbt_get_rec(cur, &bagrec, &has); in rcbag_add()
89 if (error) in rcbag_add()
92 error = -EFSCORRUPTED; in rcbag_add()
[all …]
H A Dbmap_repair.c105 int error; in xrep_bmap_discover_shared() local
108 error = xfs_refcount_find_shared(sc->sa.refc_cur, agbno, blockcount, in xrep_bmap_discover_shared()
110 if (error) in xrep_bmap_discover_shared()
111 return error; in xrep_bmap_discover_shared()
135 int error = 0; in xrep_bmap_from_rmap() local
143 error = xrep_bmap_discover_shared(rb, startblock, blockcount); in xrep_bmap_from_rmap()
144 if (error) in xrep_bmap_from_rmap()
145 return error; in xrep_bmap_from_rmap()
162 if (xchk_should_terminate(sc, &error)) in xrep_bmap_from_rmap()
163 return error; in xrep_bmap_from_rmap()
[all …]
/linux/drivers/input/misc/
H A Ddrv2667.c133 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 …]
H A Ddrv260x.c213 int error; in drv260x_worker() local
219 error = regmap_write(haptics->regmap, in drv260x_worker()
221 if (error) { in drv260x_worker()
223 "Failed to write set mode: %d\n", error); in drv260x_worker()
225 error = regmap_write(haptics->regmap, in drv260x_worker()
227 if (error) in drv260x_worker()
229 "Failed to set magnitude: %d\n", error); in drv260x_worker()
256 int error; in drv260x_close() local
260 error = regmap_write(haptics->regmap, DRV260X_MODE, DRV260X_STANDBY); in drv260x_close()
261 if (error) in drv260x_close()
[all …]
H A Dbma150.c181 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 …]
H A Dda7280.c286 int error; in da7280_haptic_mem_update() local
289 error = regmap_read(haptics->regmap, DA7280_IRQ_STATUS1, &val); in da7280_haptic_mem_update()
290 if (error) in da7280_haptic_mem_update()
291 return error; in da7280_haptic_mem_update()
300 error = regmap_read(haptics->regmap, DA7280_MEM_CTL2, &val); in da7280_haptic_mem_update()
301 if (error) in da7280_haptic_mem_update()
302 return error; in da7280_haptic_mem_update()
309 error = regmap_update_bits(haptics->regmap, in da7280_haptic_mem_update()
313 if (error) in da7280_haptic_mem_update()
314 return error; in da7280_haptic_mem_update()
[all …]
/linux/fs/xfs/libxfs/
H A Dxfs_attr.c171 int level, error;
183 error = xfs_da3_node_read_mapped(state->args->trans,
186 if (error)
187 return error;
201 error = xfs_da3_node_read_mapped(state->args->trans,
204 if (error)
205 return error;
229 int error; in xfs_attr_get_ilocked() local
240 error = xfs_iread_extents(args->trans, args->dp, XFS_ATTR_FORK); in xfs_attr_get_ilocked()
241 if (error) in xfs_attr_get_ilocked()
[all …]
H A Dxfs_ialloc.c166 int error; in xfs_inobt_get_rec() local
168 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_inobt_get_rec()
169 if (error || *stat == 0) in xfs_inobt_get_rec()
170 return error; in xfs_inobt_get_rec()
214 int error; in xfs_inobt_insert() local
224 error = xfs_inobt_lookup(cur, thisino, XFS_LOOKUP_EQ, &i); in xfs_inobt_insert()
225 if (error) { in xfs_inobt_insert()
227 return error; in xfs_inobt_insert()
231 error = xfs_inobt_insert_rec(cur, XFS_INOBT_HOLEMASK_FULL, in xfs_inobt_insert()
235 if (error) { in xfs_inobt_insert()
[all …]
/linux/kernel/power/
H A Dhibernate.c178 * if so configured, and return an error code if that fails.
304 int error; in create_image() local
306 error = dpm_suspend_end(PMSG_FREEZE); in create_image()
307 if (error) { in create_image()
309 return error; in create_image()
312 error = platform_pre_snapshot(platform_mode); in create_image()
313 if (error || hibernation_test(TEST_PLATFORM)) in create_image()
316 error = pm_sleep_disable_secondary_cpus(); in create_image()
317 if (error || hibernation_test(TEST_CPUS)) in create_image()
324 error in create_image()
382 int error; hibernation_snapshot() local
470 int error; resume_target_kernel() local
547 int error; hibernation_restore() local
574 int error; hibernation_platform_enter() local
654 int error; power_down() local
704 int error; load_image_and_restore() local
740 int error; hibernate() local
861 int error; hibernate_quiet_exec() local
982 int error; software_resume() local
1076 int error = find_resume_device(); software_resume_initcall() local
1167 int error = 0; disk_store() local
1228 int error; resume_store() local
[all...]
/linux/drivers/bus/fsl-mc/
H A Ddprc-driver.c148 int error; in check_plugged_state_change() local
156 error = device_attach(&mc_dev->dev); in check_plugged_state_change()
157 if (error < 0) { in check_plugged_state_change()
160 error); in check_plugged_state_change()
172 int error; in fsl_mc_obj_device_add() local
183 error = fsl_mc_device_add(obj_desc, NULL, &mc_bus_dev->dev, in fsl_mc_obj_device_add()
185 if (error < 0) in fsl_mc_obj_device_add()
250 int error; in dprc_scan_objects() local
255 error = dprc_get_obj_count(mc_bus_dev->mc_io, in dprc_scan_objects()
259 if (error < 0) { in dprc_scan_objects()
[all …]

12345678910>>...188