Home
last modified time | relevance | path

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

12345678910>>...148

/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 Draydium_i2c_ts.c171 int error; in raydium_i2c_send() local
210 error = raydium_i2c_xfer(client, addr, xfer, ARRAY_SIZE(xfer)); in raydium_i2c_send()
211 if (likely(!error)) in raydium_i2c_send()
217 dev_err(&client->dev, "%s failed: %d\n", __func__, error); in raydium_i2c_send()
218 return error; in raydium_i2c_send()
224 int error; in raydium_i2c_read() local
263 error = raydium_i2c_xfer(client, addr, xfer, ARRAY_SIZE(xfer)); in raydium_i2c_read()
264 if (unlikely(error)) in raydium_i2c_read()
265 return error; in raydium_i2c_read()
278 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 Dhimax_hx852x.c85 int error; in hx852x_i2c_read() local
105 error = ret < 0 ? ret : -EIO; in hx852x_i2c_read()
106 dev_err(&client->dev, "failed to read %#x: %d\n", cmd, error); in hx852x_i2c_read()
107 return error; in hx852x_i2c_read()
116 int error; in hx852x_power_on() local
118 error = regulator_bulk_enable(ARRAY_SIZE(hx->supplies), hx->supplies); in hx852x_power_on()
119 if (error) { in hx852x_power_on()
120 dev_err(dev, "failed to enable regulators: %d\n", error); in hx852x_power_on()
121 return error; in hx852x_power_on()
135 int error; in hx852x_start() local
[all …]
/linux/drivers/base/test/
H A Dproperty-entry-test.c27 int error; in pe_test_uints() local
32 error = fwnode_property_count_u8(node, "prop-u8"); in pe_test_uints()
33 KUNIT_EXPECT_EQ(test, error, 1); in pe_test_uints()
35 error = fwnode_property_read_u8(node, "prop-u8", &val_u8); in pe_test_uints()
36 KUNIT_EXPECT_EQ(test, error, 0); in pe_test_uints()
39 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 1); in pe_test_uints()
40 KUNIT_EXPECT_EQ(test, error, 0); in pe_test_uints()
43 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 2); in pe_test_uints()
44 KUNIT_EXPECT_NE(test, error, 0); in pe_test_uints()
46 error = fwnode_property_read_u8(node, "no-prop-u8", &val_u8); in pe_test_uints()
[all …]
/linux/drivers/input/mouse/
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 …]
/linux/fs/xfs/scrub/
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 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 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 Dagheader_repair.c47 int error; in xrep_superblock() local
54 error = xfs_sb_get_secondary(mp, sc->tp, agno, &bp); in xrep_superblock()
55 if (error) in xrep_superblock()
56 return error; in xrep_superblock()
59 if (xchk_should_terminate(sc, &error)) in xrep_superblock()
60 return error; in xrep_superblock()
100 int error = 0; in xrep_agf_walk_allocbt() local
102 if (xchk_should_terminate(raa->sc, &error)) in xrep_agf_walk_allocbt()
103 return error; in xrep_agf_walk_allocbt()
108 return error; in xrep_agf_walk_allocbt()
[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 …]
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 Ddirtree_repair.c103 int error; in xrep_dirpath_retain_parent() local
105 error = xfarray_load(dl->path_steps, path->first_step, &step); in xrep_dirpath_retain_parent()
106 if (error) in xrep_dirpath_retain_parent()
267 int error; in xrep_dirtree_prep_path() local
269 error = xfarray_load(dl->path_steps, path->first_step, step); in xrep_dirtree_prep_path()
270 if (error) in xrep_dirtree_prep_path()
271 return error; in xrep_dirtree_prep_path()
273 error = xfblob_loadname(dl->path_names, step->name_cookie, &dl->xname, in xrep_dirtree_prep_path()
275 if (error) in xrep_dirtree_prep_path()
276 return error; in xrep_dirtree_prep_path()
[all …]
H A Dmetapath.c95 int error; in xchk_setup_metapath_scan() local
100 error = xchk_install_live_inode(sc, ip); in xchk_setup_metapath_scan()
101 if (error) { in xchk_setup_metapath_scan()
103 return error; in xchk_setup_metapath_scan()
147 int error; in xchk_setup_metapath_rtginode() local
155 error = -ENOENT; in xchk_setup_metapath_rtginode()
159 error = xchk_setup_metapath_scan(sc, sc->mp->m_rtdirip, in xchk_setup_metapath_rtginode()
164 return error; in xchk_setup_metapath_rtginode()
271 int error = 0; in xchk_metapath_ilock_both() local
281 if (xchk_should_terminate(sc, &error)) in xchk_metapath_ilock_both()
[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.c221 int error; in drv260x_worker() local
227 error = regmap_write(haptics->regmap, in drv260x_worker()
229 if (error) { in drv260x_worker()
231 "Failed to write set mode: %d\n", error); in drv260x_worker()
233 error = regmap_write(haptics->regmap, in drv260x_worker()
235 if (error) in drv260x_worker()
237 "Failed to set magnitude: %d\n", error); in drv260x_worker()
264 int error; in drv260x_close() local
268 error = regmap_write(haptics->regmap, DRV260X_MODE, DRV260X_STANDBY); in drv260x_close()
269 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/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/fs/xfs/
H A Dxfs_reflink.c147 int error; in xfs_reflink_find_shared() local
153 error = xfs_alloc_read_agf(pag, tp, 0, &agbp); in xfs_reflink_find_shared()
154 if (error) in xfs_reflink_find_shared()
158 error = xfs_refcount_find_shared(cur, orig_bno, irec->br_blockcount, in xfs_reflink_find_shared()
160 xfs_btree_del_cursor(cur, error); in xfs_reflink_find_shared()
163 if (!error && *shared_len) in xfs_reflink_find_shared()
167 return error; in xfs_reflink_find_shared()
192 int error; in xfs_reflink_find_rtshared() local
206 error = xfs_refcount_find_shared(cur, orig_bno, irec->br_blockcount, in xfs_reflink_find_rtshared()
208 xfs_btree_del_cursor(cur, error); in xfs_reflink_find_rtshared()
[all …]
H A Dxfs_attr_inactive.c42 int error; in xfs_attr3_rmt_stale() local
53 error = xfs_bmapi_read(dp, (xfs_fileoff_t)blkno, blkcnt, in xfs_attr3_rmt_stale()
55 if (error) in xfs_attr3_rmt_stale()
56 return error; in xfs_attr3_rmt_stale()
65 error = xfs_attr_rmtval_stale(dp, &map, 0); in xfs_attr3_rmt_stale()
66 if (error) in xfs_attr3_rmt_stale()
67 return error; in xfs_attr3_rmt_stale()
93 int error = 0; in xfs_attr3_leaf_inactive() local
115 error = xfs_attr3_rmt_stale(dp, in xfs_attr3_leaf_inactive()
117 if (error) in xfs_attr3_leaf_inactive()
[all …]
/linux/fs/xfs/libxfs/
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 …]

12345678910>>...148