| /linux/drivers/input/touchscreen/ |
| H A 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 …]
|
| H A D | goodix_fwupload.c | 88 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 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 …]
|
| /linux/drivers/base/test/ |
| H A 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 …]
|
| /linux/drivers/input/mouse/ |
| H A 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 …]
|
| H A 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 …]
|
| /linux/fs/xfs/scrub/ |
| H A D | parent_repair.c | 216 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 D | dir_repair.c | 189 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 D | rtrefcount_repair.c | 172 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 D | refcount_repair.c | 136 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 D | parent.c | 36 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 D | nlinks.c | 51 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 D | attr_repair.c | 201 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 D | rtrmap_repair.c | 106 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 D | rmap_repair.c | 167 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 D | alloc_repair.c | 154 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 D | bmap_repair.c | 108 int error; in xrep_bmap_discover_shared() local 117 error = xfs_refcount_find_shared(cur, agbno, blockcount, &fbno, &flen, in xrep_bmap_discover_shared() 119 if (error) in xrep_bmap_discover_shared() 120 return error; in xrep_bmap_discover_shared() 144 int error = 0; in xrep_bmap_from_rmap() local 152 error = xrep_bmap_discover_shared(rb, startblock, blockcount); in xrep_bmap_from_rmap() 153 if (error) in xrep_bmap_from_rmap() 154 return error; in xrep_bmap_from_rmap() 171 if (xchk_should_terminate(sc, &error)) in xrep_bmap_from_rmap() 172 return error; in xrep_bmap_from_rmap() [all …]
|
| H A D | agheader_repair.c | 47 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 …]
|
| /linux/kernel/power/ |
| H A D | hibernate.c | 326 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 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 …]
|
| H A D | drv260x.c | 213 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 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 …]
|
| H A D | da7280.c | 286 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 D | xfs_refcount.c | 216 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 …]
|
| H A D | xfs_ialloc.c | 166 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 …]
|