| /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 …]
|
| H A D | ili210x.c | 89 int error, ret; in ili210x_read_reg() local 93 error = ret < 0 ? ret : -EIO; in ili210x_read_reg() 94 dev_err(&client->dev, "%s failed: %d\n", __func__, error); in ili210x_read_reg() 95 return error; in ili210x_read_reg() 138 int error; in ili211x_read_touch_data() local 144 error = ret < 0 ? ret : -EIO; in ili211x_read_touch_data() 145 dev_err(&client->dev, "%s failed: %d\n", __func__, error); in ili211x_read_touch_data() 146 return error; in ili211x_read_touch_data() 231 int error; in ili251x_read_reg_common() local 244 error = ret < 0 ? ret : -EIO; in ili251x_read_reg_common() [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 | 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 | 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/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 …]
|
| 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 …]
|
| /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/bus/fsl-mc/ |
| H A D | dprc-driver.c | 148 int error; in check_plugged_state_change() local 156 error = device_attach(&mc_dev->dev); in check_plugged_state_change() 157 if (error < 0) { in check_plugged_state_change() 160 error); in check_plugged_state_change() 172 int error; in fsl_mc_obj_device_add() local 183 error = fsl_mc_device_add(obj_desc, NULL, &mc_bus_dev->dev, in fsl_mc_obj_device_add() 185 if (error < 0) in fsl_mc_obj_device_add() 250 int error; in dprc_scan_objects() local 255 error = dprc_get_obj_count(mc_bus_dev->mc_io, in dprc_scan_objects() 259 if (error < 0) { in dprc_scan_objects() [all …]
|
| /linux/fs/xfs/ |
| H A D | xfs_reflink.c | 147 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 …]
|