Home
last modified time | relevance | path

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

12345678910>>...149

/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()
151 int error = 0; ilitek_process_and_report_v6() local
222 int error; api_protocol_set_cmd() local
238 int error; api_protocol_get_ptl_ver() local
255 int error; api_protocol_get_mcu_ver() local
273 int error; api_protocol_get_fw_ver() local
289 int error; api_protocol_get_scrn_res() local
308 int error; api_protocol_get_tp_res() local
329 int error; api_protocol_get_ic_mode() local
408 int error; ilitek_protocol_init() local
430 int error; ilitek_read_tp_info() local
464 int error; ilitek_input_dev_init() local
503 int error; ilitek_i2c_isr() local
551 int error; ilitek_ts_i2c_probe() local
607 int error; ilitek_suspend() local
624 int error; ilitek_resume() local
[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.c126 * Return negative errno code on error; return zero when success.
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()
281 int error; cyapa_poll_state() local
313 int error; cyapa_check_is_operational() local
351 int error; cyapa_detect() local
373 int error; cyapa_open() local
437 int error; cyapa_create_input_dev() local
592 int error = 0; cyapa_initialize() local
631 int error; cyapa_reinitialize() local
680 int error; cyapa_irq() local
746 int error; cyapa_show_suspend_scanrate() local
783 int error; cyapa_update_suspend_scanrate() local
832 int error; cyapa_prepare_wakeup_controls() local
869 int error; cyapa_show_rt_suspend_scanrate() local
892 int error; cyapa_update_rt_suspend_scanrate() local
946 int error; cyapa_start_runtime() local
985 int error; cyapa_show_fm_ver() local
1002 int error; cyapa_show_product_id() local
1016 int error; cyapa_firmware() local
1081 int ret, error; cyapa_update_fw_store() local
1140 int error; cyapa_calibrate_store() local
1162 ssize_t error; cyapa_show_baseline() local
1206 int error; cyapa_show_mode() local
1250 int error; cyapa_probe() local
1348 int error; cyapa_suspend() local
1403 int error; cyapa_resume() local
1431 int error; cyapa_runtime_suspend() local
1446 int error; cyapa_runtime_resume() local
[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 …]
/linux/fs/xfs/scrub/
H A Dparent_repair.c216 int error; in xrep_setup_parent() local
227 error = xrep_tempfile_create(sc, S_IFREG); in xrep_setup_parent()
228 if (error) in xrep_setup_parent()
229 return error; in xrep_setup_parent()
245 int error; in xrep_parent_find_dotdot() local
271 error = xrep_findparent_confirm(sc, &ino); in xrep_parent_find_dotdot()
272 if (!error && ino != NULLFSINO) { in xrep_parent_find_dotdot()
279 error = xrep_findparent_scan(&rp->pscan); in xrep_parent_find_dotdot()
283 return error; in xrep_parent_find_dotdot()
333 int error; in xrep_parent_replay_updates() local
[all …]
H A Ddir_repair.c189 int error; in xrep_setup_directory() local
193 error = xrep_orphanage_try_create(sc); in xrep_setup_directory()
194 if (error) in xrep_setup_directory()
195 return error; in xrep_setup_directory()
197 error = xrep_tempfile_create(sc, S_IFDIR); in xrep_setup_directory()
198 if (error) in xrep_setup_directory()
199 return error; in xrep_setup_directory()
221 int error; in xrep_dir_lookup_parent() local
223 error = xfs_dir_lookup(sc->tp, sc->ip, &xfs_name_dotdot, &ino, NULL); in xrep_dir_lookup_parent()
224 if (error) in xrep_dir_lookup_parent()
[all …]
H A Drtrefcount_repair.c172 int error = 0; in xrep_rtrefc_stash() local
174 if (xchk_should_terminate(rr->sc, &error)) in xrep_rtrefc_stash()
175 return error; in xrep_rtrefc_stash()
179 error = xrep_rtrefc_check_ext(rr->sc, &irec); in xrep_rtrefc_stash()
180 if (error) in xrep_rtrefc_stash()
181 return error; in xrep_rtrefc_stash()
224 int error = 0; in xrep_rtrefc_walk_rmaps() local
235 if (xchk_should_terminate(rr->sc, &error)) in xrep_rtrefc_walk_rmaps()
236 return error; in xrep_rtrefc_walk_rmaps()
238 error = xfs_btree_increment(cur, 0, &have_gt); in xrep_rtrefc_walk_rmaps()
[all …]
H A Drefcount_repair.c136 int error; in xrep_refc_check_ext() local
142 error = xfs_alloc_has_records(sc->sa.bno_cur, rec->rc_startblock, in xrep_refc_check_ext()
144 if (error) in xrep_refc_check_ext()
145 return error; in xrep_refc_check_ext()
150 error = xfs_ialloc_has_inodes_at_extent(sc->sa.ino_cur, in xrep_refc_check_ext()
152 if (error) in xrep_refc_check_ext()
153 return error; in xrep_refc_check_ext()
175 int error = 0; in xrep_refc_stash() local
177 if (xchk_should_terminate(sc, &error)) in xrep_refc_stash()
178 return error; in xrep_refc_stash()
[all …]
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 Dnlinks.c51 int error; in xchk_setup_nlinks() local
56 error = xrep_setup_nlinks(sc); in xchk_setup_nlinks()
57 if (error) in xchk_setup_nlinks()
58 return error; in xchk_setup_nlinks()
126 int error; in xchk_nlinks_update_incore() local
131 error = xfarray_load_sparse(xnc->nlinks, ino, &nl); in xchk_nlinks_update_incore()
132 if (error) in xchk_nlinks_update_incore()
133 return error; in xchk_nlinks_update_incore()
143 error = xfarray_store(xnc->nlinks, ino, &nl); in xchk_nlinks_update_incore()
144 if (error == -EFBIG) { in xchk_nlinks_update_incore()
[all …]
H A Dattr_repair.c201 int error = 0; in xrep_xattr_salvage_key() local
203 if (xchk_should_terminate(rx->sc, &error)) in xrep_xattr_salvage_key()
204 return error; in xrep_xattr_salvage_key()
226 error = xfblob_store(rx->xattr_blobs, &key.name_cookie, name, in xrep_xattr_salvage_key()
228 if (error) in xrep_xattr_salvage_key()
229 return error; in xrep_xattr_salvage_key()
231 error = xfblob_store(rx->xattr_blobs, &key.value_cookie, value, in xrep_xattr_salvage_key()
233 if (error) in xrep_xattr_salvage_key()
234 return error; in xrep_xattr_salvage_key()
236 error = xfarray_append(rx->xattr_records, &key); in xrep_xattr_salvage_key()
[all …]
H A Drtrmap_repair.c106 int error; in xrep_setup_rtrmapbt() local
110 error = xrep_setup_xfbtree(sc, "realtime reverse mapping records"); in xrep_setup_rtrmapbt()
111 if (error) in xrep_setup_rtrmapbt()
112 return error; in xrep_setup_rtrmapbt()
156 int error = 0; in xrep_rtrmap_stash() local
158 if (xchk_should_terminate(sc, &error)) in xrep_rtrmap_stash()
159 return error; in xrep_rtrmap_stash()
169 error = xfs_rmap_map_raw(mcur, &rmap); in xrep_rtrmap_stash()
170 xfs_btree_del_cursor(mcur, error); in xrep_rtrmap_stash()
171 if (error) in xrep_rtrmap_stash()
[all …]
H A Drmap_repair.c167 int error; in xrep_setup_ag_rmapbt() local
171 error = xrep_setup_xfbtree(sc, "reverse mapping records"); in xrep_setup_ag_rmapbt()
172 if (error) in xrep_setup_ag_rmapbt()
173 return error; in xrep_setup_ag_rmapbt()
191 int error; in xrep_rmap_check_mapping() local
197 error = xfs_alloc_has_records(sc->sa.bno_cur, rec->rm_startblock, in xrep_rmap_check_mapping()
199 if (error) in xrep_rmap_check_mapping()
200 return error; in xrep_rmap_check_mapping()
226 int error = 0; in xrep_rmap_stash() local
228 if (xchk_should_terminate(sc, &error)) in xrep_rmap_stash()
[all …]
H A Dalloc_repair.c154 int error; in xrep_abt_check_free_ext() local
160 error = xfs_ialloc_has_inodes_at_extent(sc->sa.ino_cur, in xrep_abt_check_free_ext()
162 if (error) in xrep_abt_check_free_ext()
163 return error; in xrep_abt_check_free_ext()
169 error = xfs_refcount_has_records(sc->sa.refc_cur, in xrep_abt_check_free_ext()
172 if (error) in xrep_abt_check_free_ext()
173 return error; in xrep_abt_check_free_ext()
177 error = xfs_refcount_has_records(sc->sa.refc_cur, in xrep_abt_check_free_ext()
180 if (error) in xrep_abt_check_free_ext()
181 return error; in xrep_abt_check_free_ext()
[all …]
/linux/fs/xfs/libxfs/
H A Dxfs_attr.c170 int level, error;
182 error = xfs_da3_node_read_mapped(state->args->trans,
185 if (error)
186 return error;
200 error = xfs_da3_node_read_mapped(state->args->trans,
203 if (error)
204 return error;
228 int error; in xfs_attr_get_ilocked() local
239 error = xfs_iread_extents(args->trans, args->dp, XFS_ATTR_FORK); in xfs_attr_get_ilocked()
240 if (error) in xfs_attr_get_ilocked()
[all …]
H A Dxfs_refcount.c216 int error; in xfs_refcount_get_rec() local
218 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_refcount_get_rec()
219 if (error || !*stat) in xfs_refcount_get_rec()
220 return error; in xfs_refcount_get_rec()
243 int error; in xfs_refcount_update() local
253 error = xfs_btree_update(cur, &rec); in xfs_refcount_update()
254 if (error) in xfs_refcount_update()
255 trace_xfs_refcount_update_error(cur, error, _RET_IP_); in xfs_refcount_update()
256 return error; in xfs_refcount_update()
270 int error; in xfs_refcount_insert() local
[all …]
/linux/kernel/power/
H A Dhibernate.c326 int error; in create_image() local
328 error = dpm_suspend_end(PMSG_FREEZE); in create_image()
329 if (error) { in create_image()
331 return error; in create_image()
334 error = platform_pre_snapshot(platform_mode); in create_image()
335 if (error || hibernation_test(TEST_PLATFORM)) in create_image()
338 error = pm_sleep_disable_secondary_cpus(); in create_image()
339 if (error || hibernation_test(TEST_CPUS)) in create_image()
346 error = syscore_suspend(); in create_image()
347 if (error) { in create_image()
[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 …]
/linux/fs/gfs2/
H A Dinode.c134 int error; in gfs2_inode_lookup() local
149 error = gfs2_glock_get(sdp, no_addr, &gfs2_inode_glops, CREATE, in gfs2_inode_lookup()
151 if (unlikely(error)) in gfs2_inode_lookup()
154 error = gfs2_glock_get(sdp, no_addr, &gfs2_iopen_glops, CREATE, in gfs2_inode_lookup()
156 if (unlikely(error)) in gfs2_inode_lookup()
168 error = gfs2_glock_nq_init(io_gl, LM_ST_SHARED, in gfs2_inode_lookup()
172 if (unlikely(error)) in gfs2_inode_lookup()
181 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, in gfs2_inode_lookup()
183 if (error) in gfs2_inode_lookup()
186 error = -ESTALE; in gfs2_inode_lookup()
[all …]

12345678910>>...149