Home
last modified time | relevance | path

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

12345678910>>...138

/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 …]
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 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 …]
H A Dili210x.c88 int error, ret; in ili210x_read_reg() local
92 error = ret < 0 ? ret : -EIO; in ili210x_read_reg()
93 dev_err(&client->dev, "%s failed: %d\n", __func__, error); in ili210x_read_reg()
94 return error; in ili210x_read_reg()
137 int error; in ili211x_read_touch_data() local
143 error = ret < 0 ? ret : -EIO; in ili211x_read_touch_data()
144 dev_err(&client->dev, "%s failed: %d\n", __func__, error); in ili211x_read_touch_data()
145 return error; in ili211x_read_touch_data()
230 int error; in ili251x_read_reg_common() local
243 error = ret < 0 ? ret : -EIO; in ili251x_read_reg_common()
[all …]
H A Dbu21013_ts.c240 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 …]
/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 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 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 Drtbitmap_repair.c65 int error; in xrep_setup_rtbitmap() local
67 error = xrep_tempfile_create(sc, S_IFREG); in xrep_setup_rtbitmap()
68 if (error) in xrep_setup_rtbitmap()
69 return error; in xrep_setup_rtbitmap()
72 error = xfile_create("realtime bitmap file", in xrep_setup_rtbitmap()
74 if (error) in xrep_setup_rtbitmap()
75 return error; in xrep_setup_rtbitmap()
109 int error; in xfbmp_load() local
113 error = xfile_load(rtb->sc->xfile, &urk, in xfbmp_load()
116 if (error) in xfbmp_load()
[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/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>>...138