| /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 …]
|
| H A D | ilitek_ts_i2c.c | 97 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 …]
|
| /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 | cyapa.c | 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() 218 error = cyapa_pip_state_parse(cyapa, in cyapa_get_state() 220 if (!error) in cyapa_get_state() [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 | rtrefcount_repair.c | 132 int error; in xrep_setup_rtrefcountbt() local 135 error = xrep_setup_xfbtree(sc, descr); in xrep_setup_rtrefcountbt() 137 return error; in xrep_setup_rtrefcountbt() 178 int error = 0; in xrep_rtrefc_stash() local 180 if (xchk_should_terminate(rr->sc, &error)) in xrep_rtrefc_stash() 181 return error; in xrep_rtrefc_stash() 185 error = xrep_rtrefc_check_ext(rr->sc, &irec); in xrep_rtrefc_stash() 186 if (error) in xrep_rtrefc_stash() 187 return error; in xrep_rtrefc_stash() 230 int error = 0; in xrep_rtrefc_walk_rmaps() local [all …]
|
| H A D | refcount_repair.c | 127 int error; in xrep_setup_ag_refcountbt() local 130 error = xrep_setup_xfbtree(sc, descr); in xrep_setup_ag_refcountbt() 132 return error; in xrep_setup_ag_refcountbt() 142 int error; in xrep_refc_check_ext() local 148 error = xfs_alloc_has_records(sc->sa.bno_cur, rec->rc_startblock, in xrep_refc_check_ext() 150 if (error) in xrep_refc_check_ext() 151 return error; in xrep_refc_check_ext() 156 error = xfs_ialloc_has_inodes_at_extent(sc->sa.ino_cur, in xrep_refc_check_ext() 158 if (error) in xrep_refc_check_ext() 159 return error; in xrep_refc_check_ext() [all …]
|
| H A D | dir_repair.c | 185 int error; in xrep_setup_directory() local 189 error = xrep_orphanage_try_create(sc); in xrep_setup_directory() 190 if (error) in xrep_setup_directory() 191 return error; in xrep_setup_directory() 193 error = xrep_tempfile_create(sc, S_IFDIR); in xrep_setup_directory() 194 if (error) in xrep_setup_directory() 195 return error; in xrep_setup_directory() 217 int error; in xrep_dir_lookup_parent() local 219 error = xfs_dir_lookup(sc->tp, sc->ip, &xfs_name_dotdot, &ino, NULL); in xrep_dir_lookup_parent() 220 if (error) in xrep_dir_lookup_parent() [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 | 107 int error; in xrep_setup_rtrmapbt() local 112 error = xrep_setup_xfbtree(sc, descr); in xrep_setup_rtrmapbt() 114 if (error) in xrep_setup_rtrmapbt() 115 return error; in xrep_setup_rtrmapbt() 159 int error = 0; in xrep_rtrmap_stash() local 161 if (xchk_should_terminate(sc, &error)) in xrep_rtrmap_stash() 162 return error; in xrep_rtrmap_stash() 172 error = xfs_rmap_map_raw(mcur, &rmap); in xrep_rtrmap_stash() 173 xfs_btree_del_cursor(mcur, error); in xrep_rtrmap_stash() 174 if (error) in xrep_rtrmap_stash() [all …]
|
| H A D | rmap_repair.c | 168 int error; in xrep_setup_ag_rmapbt() local 173 error = xrep_setup_xfbtree(sc, descr); in xrep_setup_ag_rmapbt() 175 if (error) in xrep_setup_ag_rmapbt() 176 return error; in xrep_setup_ag_rmapbt() 194 int error; in xrep_rmap_check_mapping() local 200 error = xfs_alloc_has_records(sc->sa.bno_cur, rec->rm_startblock, in xrep_rmap_check_mapping() 202 if (error) in xrep_rmap_check_mapping() 203 return error; in xrep_rmap_check_mapping() 229 int error = 0; in xrep_rmap_stash() local 231 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 …]
|
| /linux/fs/ |
| H A D | init.c | 47 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/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 …]
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_attr.c | 171 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 …]
|
| /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/fs/gfs2/ |
| H A D | inode.c | 121 int error; in gfs2_inode_lookup() local 135 error = gfs2_glock_get(sdp, no_addr, &gfs2_inode_glops, CREATE, in gfs2_inode_lookup() 137 if (unlikely(error)) in gfs2_inode_lookup() 140 error = gfs2_glock_get(sdp, no_addr, &gfs2_iopen_glops, CREATE, in gfs2_inode_lookup() 142 if (unlikely(error)) in gfs2_inode_lookup() 154 error = gfs2_glock_nq_init(io_gl, LM_ST_SHARED, in gfs2_inode_lookup() 158 if (unlikely(error)) in gfs2_inode_lookup() 167 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, in gfs2_inode_lookup() 169 if (error) in gfs2_inode_lookup() 172 error = -ESTALE; in gfs2_inode_lookup() [all …]
|