Home
last modified time | relevance | path

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

12345678910>>...142

/Linux-v4.19/drivers/input/touchscreen/
Drohm_bu21023.c340 int error, error2; in rohm_ts_manual_calibration() local
355 error = i2c_smbus_write_byte_data(client, INT_MASK, in rohm_ts_manual_calibration()
358 if (error) in rohm_ts_manual_calibration()
361 error = i2c_smbus_write_byte_data(client, TEST1, in rohm_ts_manual_calibration()
363 if (error) in rohm_ts_manual_calibration()
372 error = rohm_i2c_burst_read(client, PRM1_X_H, buf, sizeof(buf)); in rohm_ts_manual_calibration()
373 if (error) in rohm_ts_manual_calibration()
386 error = i2c_smbus_write_byte_data(client, TEST1, in rohm_ts_manual_calibration()
388 if (error) in rohm_ts_manual_calibration()
421 error = i2c_smbus_write_byte_data(client, in rohm_ts_manual_calibration()
[all …]
Draydium_i2c_ts.c212 int error; in raydium_i2c_read_message() local
219 error = raydium_i2c_send(client, RM_CMD_BANK_SWITCH, in raydium_i2c_read_message()
221 if (!error) in raydium_i2c_read_message()
222 error = raydium_i2c_read(client, addr & 0xff, in raydium_i2c_read_message()
224 if (error) in raydium_i2c_read_message()
225 return error; in raydium_i2c_read_message()
239 int error; in raydium_i2c_send_message() local
241 error = raydium_i2c_send(client, RM_CMD_BANK_SWITCH, in raydium_i2c_send_message()
243 if (!error) in raydium_i2c_send_message()
244 error = raydium_i2c_send(client, addr & 0xff, data, len); in raydium_i2c_send_message()
[all …]
Dsilead.c95 int error; in silead_ts_request_input_dev() local
119 error = input_register_device(data->input); in silead_ts_request_input_dev()
120 if (error) { in silead_ts_request_input_dev()
121 dev_err(dev, "Failed to register input device: %d\n", error); in silead_ts_request_input_dev()
122 return error; in silead_ts_request_input_dev()
145 int touch_nr, softbutton, error, i; in silead_ts_read_data() local
148 error = i2c_smbus_read_i2c_block_data(client, SILEAD_REG_DATA, in silead_ts_read_data()
150 if (error < 0) { in silead_ts_read_data()
151 dev_err(dev, "Data read error %d\n", error); in silead_ts_read_data()
211 int error; in silead_ts_init() local
[all …]
Delants_i2c.c237 int ret, error; in elants_i2c_calibrate() local
258 error = ret < 0 ? ret : -ETIMEDOUT; in elants_i2c_calibrate()
261 error); in elants_i2c_calibrate()
262 return error; in elants_i2c_calibrate()
278 int error; in elants_i2c_sw_reset() local
280 error = elants_i2c_send(client, soft_rst_cmd, in elants_i2c_sw_reset()
282 if (error) { in elants_i2c_sw_reset()
283 dev_err(&client->dev, "software reset failed: %d\n", error); in elants_i2c_sw_reset()
284 return error; in elants_i2c_sw_reset()
304 int error, retry_cnt; in elants_i2c_query_hw_version() local
[all …]
Dgoodix.c241 int error; in goodix_ts_read_input_report() local
250 error = goodix_i2c_read(ts->client, GOODIX_READ_COOR_ADDR, in goodix_ts_read_input_report()
252 if (error) { in goodix_ts_read_input_report()
254 error); in goodix_ts_read_input_report()
255 return error; in goodix_ts_read_input_report()
265 error = goodix_i2c_read(ts->client, in goodix_ts_read_input_report()
271 if (error) in goodix_ts_read_input_report()
272 return error; in goodix_ts_read_input_report()
440 int error; in goodix_send_cfg() local
442 error = goodix_check_cfg(ts, cfg); in goodix_send_cfg()
[all …]
Dcyttsp_core.c87 int error; in ttsp_read_block_data() local
91 error = ts->bus_ops->read(ts->dev, ts->xfer_buf, command, in ttsp_read_block_data()
93 if (!error) in ttsp_read_block_data()
105 int error; in ttsp_write_block_data() local
109 error = ts->bus_ops->write(ts->dev, ts->xfer_buf, command, in ttsp_write_block_data()
111 if (!error) in ttsp_write_block_data()
145 int error; in cyttsp_exit_bl_mode() local
153 error = ttsp_write_block_data(ts, CY_REG_BASE, in cyttsp_exit_bl_mode()
155 if (error) in cyttsp_exit_bl_mode()
156 return error; in cyttsp_exit_bl_mode()
[all …]
Dmms114.c89 int error; in __mms114_read_reg() local
106 error = i2c_transfer(client->adapter, xfer, 2); in __mms114_read_reg()
107 if (error != 2) { in __mms114_read_reg()
109 "%s: i2c transfer failed (%d)\n", __func__, error); in __mms114_read_reg()
110 return error < 0 ? error : -EIO; in __mms114_read_reg()
120 int error; in mms114_read_reg() local
125 error = __mms114_read_reg(data, reg, 1, &val); in mms114_read_reg()
126 return error < 0 ? error : val; in mms114_read_reg()
134 int error; in mms114_write_reg() local
139 error = i2c_master_send(client, buf, 2); in mms114_write_reg()
[all …]
/Linux-v4.19/drivers/input/mouse/
Delan_i2c_i2c.c138 int error; in elan_i2c_initialize() local
141 error = elan_i2c_write_cmd(client, ETP_I2C_STAND_CMD, ETP_I2C_RESET); in elan_i2c_initialize()
142 if (error) { in elan_i2c_initialize()
143 dev_err(dev, "device reset failed: %d\n", error); in elan_i2c_initialize()
144 return error; in elan_i2c_initialize()
151 error = i2c_master_recv(client, val, ETP_I2C_INF_LENGTH); in elan_i2c_initialize()
152 if (error < 0) { in elan_i2c_initialize()
153 dev_err(dev, "failed to read reset response: %d\n", error); in elan_i2c_initialize()
154 return error; in elan_i2c_initialize()
157 error = elan_i2c_read_block(client, ETP_I2C_DESC_CMD, in elan_i2c_initialize()
[all …]
Delan_i2c_smbus.c60 int len, error; in elan_smbus_initialize() local
67 error = len < 0 ? len : -EIO; in elan_smbus_initialize()
68 return error; in elan_smbus_initialize()
79 error = i2c_smbus_write_byte(client, ETP_SMBUS_ENABLE_TP); in elan_smbus_initialize()
80 if (error) { in elan_smbus_initialize()
81 dev_err(&client->dev, "failed to enable touchpad: %d\n", error); in elan_smbus_initialize()
82 return error; in elan_smbus_initialize()
119 int error; in elan_smbus_calibrate_result() local
124 error = i2c_smbus_read_block_data(client, in elan_smbus_calibrate_result()
126 if (error < 0) in elan_smbus_calibrate_result()
[all …]
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 …]
Delan_i2c_core.c146 int error; in elan_enable_power() local
148 error = regulator_enable(data->vcc); in elan_enable_power()
149 if (error) { in elan_enable_power()
151 "failed to enable regulator: %d\n", error); in elan_enable_power()
152 return error; in elan_enable_power()
156 error = data->ops->power_control(data->client, true); in elan_enable_power()
157 if (error >= 0) in elan_enable_power()
163 dev_err(&data->client->dev, "failed to enable power: %d\n", error); in elan_enable_power()
164 return error; in elan_enable_power()
170 int error; in elan_disable_power() local
[all …]
/Linux-v4.19/fs/xfs/libxfs/
Dxfs_attr.c134 int error; in xfs_attr_get() local
141 error = xfs_attr_args_init(&args, ip, name, flags); in xfs_attr_get()
142 if (error) in xfs_attr_get()
143 return error; in xfs_attr_get()
151 error = xfs_attr_get_ilocked(ip, &args); in xfs_attr_get()
155 return error == -EEXIST ? 0 : error; in xfs_attr_get()
207 int error, err2, local; in xfs_attr_set() local
214 error = xfs_attr_args_init(&args, dp, name, flags); in xfs_attr_set()
215 if (error) in xfs_attr_set()
216 return error; in xfs_attr_set()
[all …]
Dxfs_refcount.c115 int error; in xfs_refcount_get_rec() local
118 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_refcount_get_rec()
119 if (error || !*stat) in xfs_refcount_get_rec()
120 return error; in xfs_refcount_get_rec()
172 int error; in xfs_refcount_update() local
178 error = xfs_btree_update(cur, &rec); in xfs_refcount_update()
179 if (error) in xfs_refcount_update()
181 cur->bc_private.a.agno, error, _RET_IP_); in xfs_refcount_update()
182 return error; in xfs_refcount_update()
196 int error; in xfs_refcount_insert() local
[all …]
/Linux-v4.19/fs/gfs2/
Dinode.c131 int error; in gfs2_inode_lookup() local
144 error = gfs2_glock_get(sdp, no_addr, &gfs2_inode_glops, CREATE, &ip->i_gl); in gfs2_inode_lookup()
145 if (unlikely(error)) in gfs2_inode_lookup()
149 error = gfs2_glock_get(sdp, no_addr, &gfs2_iopen_glops, CREATE, &io_gl); in gfs2_inode_lookup()
150 if (unlikely(error)) in gfs2_inode_lookup()
159 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, in gfs2_inode_lookup()
161 if (error) in gfs2_inode_lookup()
165 error = gfs2_check_blk_type(sdp, no_addr, in gfs2_inode_lookup()
167 if (error) in gfs2_inode_lookup()
174 error = gfs2_glock_nq_init(io_gl, LM_ST_SHARED, GL_EXACT, &ip->i_iopen_gh); in gfs2_inode_lookup()
[all …]
Dxattr.c84 int error = 0; in ea_foreach_i() local
98 error = ea_call(ip, bh, ea, prev, data); in ea_foreach_i()
99 if (error) in ea_foreach_i()
100 return error; in ea_foreach_i()
110 return error; in ea_foreach_i()
121 int error; in ea_foreach() local
123 error = gfs2_meta_read(ip->i_gl, ip->i_eattr, DIO_WAIT, 0, &bh); in ea_foreach()
124 if (error) in ea_foreach()
125 return error; in ea_foreach()
128 error = ea_foreach_i(ip, bh, ea_call, data); in ea_foreach()
[all …]
/Linux-v4.19/drivers/phy/motorola/
Dphy-cpcap-usb.c141 int error, value = 0; in cpcap_usb_vbus_valid() local
143 error = iio_read_channel_processed(ddata->vbus, &value); in cpcap_usb_vbus_valid()
144 if (error >= 0) in cpcap_usb_vbus_valid()
147 dev_err(ddata->dev, "error reading VBUS: %i\n", error); in cpcap_usb_vbus_valid()
178 int val, error; in cpcap_phy_get_ints_state() local
180 error = regmap_read(ddata->reg, CPCAP_REG_INTS1, &val); in cpcap_phy_get_ints_state()
181 if (error) in cpcap_phy_get_ints_state()
182 return error; in cpcap_phy_get_ints_state()
188 error = regmap_read(ddata->reg, CPCAP_REG_INTS2, &val); in cpcap_phy_get_ints_state()
189 if (error) in cpcap_phy_get_ints_state()
[all …]
/Linux-v4.19/drivers/bus/fsl-mc/
Ddprc-driver.c134 int error; in check_plugged_state_change() local
142 error = device_attach(&mc_dev->dev); in check_plugged_state_change()
143 if (error < 0) { in check_plugged_state_change()
146 error); in check_plugged_state_change()
171 int error; in dprc_add_new_devices() local
191 error = fsl_mc_device_add(obj_desc, NULL, &mc_bus_dev->dev, in dprc_add_new_devices()
193 if (error < 0) in dprc_add_new_devices()
222 int error; in dprc_scan_objects() local
227 error = dprc_get_obj_count(mc_bus_dev->mc_io, in dprc_scan_objects()
231 if (error < 0) { in dprc_scan_objects()
[all …]
/Linux-v4.19/kernel/power/
Dhibernate.c272 int error; in create_image() local
274 error = dpm_suspend_end(PMSG_FREEZE); in create_image()
275 if (error) { in create_image()
277 return error; in create_image()
280 error = platform_pre_snapshot(platform_mode); in create_image()
281 if (error || hibernation_test(TEST_PLATFORM)) in create_image()
284 error = disable_nonboot_cpus(); in create_image()
285 if (error || hibernation_test(TEST_CPUS)) in create_image()
292 error = syscore_suspend(); in create_image()
293 if (error) { in create_image()
[all …]
/Linux-v4.19/drivers/input/misc/
Ddrv2667.c139 int error; in drv2667_set_waveform_freq() local
151 error = regmap_read(haptics->regmap, DRV2667_PAGE, &read_buf); in drv2667_set_waveform_freq()
152 if (error) { in drv2667_set_waveform_freq()
154 "Failed to read the page number: %d\n", error); in drv2667_set_waveform_freq()
160 error = regmap_write(haptics->regmap, in drv2667_set_waveform_freq()
162 if (error) { in drv2667_set_waveform_freq()
164 "Failed to set the page: %d\n", error); in drv2667_set_waveform_freq()
169 error = regmap_write(haptics->regmap, DRV2667_RAM_FREQ, freq); in drv2667_set_waveform_freq()
170 if (error) in drv2667_set_waveform_freq()
172 "Failed to set the frequency: %d\n", error); in drv2667_set_waveform_freq()
[all …]
Dbma150.c196 int error; in bma150_set_mode() local
198 error = bma150_set_reg_bits(bma150->client, mode, BMA150_WAKE_UP_POS, in bma150_set_mode()
200 if (error) in bma150_set_mode()
201 return error; in bma150_set_mode()
203 error = bma150_set_reg_bits(bma150->client, mode, BMA150_SLEEP_POS, in bma150_set_mode()
205 if (error) in bma150_set_mode()
206 return error; in bma150_set_mode()
217 int error; in bma150_soft_reset() local
219 error = bma150_set_reg_bits(bma150->client, 1, BMA150_SW_RES_POS, in bma150_soft_reset()
221 if (error) in bma150_soft_reset()
[all …]
Ddrv260x.c259 int error; in drv260x_worker() local
265 error = regmap_write(haptics->regmap, in drv260x_worker()
267 if (error) { in drv260x_worker()
269 "Failed to write set mode: %d\n", error); in drv260x_worker()
271 error = regmap_write(haptics->regmap, in drv260x_worker()
273 if (error) in drv260x_worker()
275 "Failed to set magnitude: %d\n", error); in drv260x_worker()
301 int error; in drv260x_close() local
305 error = regmap_write(haptics->regmap, DRV260X_MODE, DRV260X_STANDBY); in drv260x_close()
306 if (error) in drv260x_close()
[all …]
/Linux-v4.19/fs/
Dxattr.c173 int error = -EAGAIN; in __vfs_setxattr_noperm() local
180 error = __vfs_setxattr(dentry, inode, name, value, size, flags); in __vfs_setxattr_noperm()
181 if (!error) { in __vfs_setxattr_noperm()
190 if (error == -EAGAIN) { in __vfs_setxattr_noperm()
191 error = -EOPNOTSUPP; in __vfs_setxattr_noperm()
196 error = security_inode_setsecurity(inode, suffix, value, in __vfs_setxattr_noperm()
198 if (!error) in __vfs_setxattr_noperm()
203 return error; in __vfs_setxattr_noperm()
212 int error; in vfs_setxattr() local
214 error = xattr_permission(inode, name, MAY_WRITE); in vfs_setxattr()
[all …]
/Linux-v4.19/fs/xfs/
Dxfs_rtalloc.c63 int error; /* error value */ in xfs_rtany_summary() local
74 error = xfs_rtget_summary(mp, tp, log, bbno, rbpp, rsb, &sum); in xfs_rtany_summary()
75 if (error) { in xfs_rtany_summary()
76 return error; in xfs_rtany_summary()
106 int error; /* error return value */ in xfs_rtcopy_summary() local
116 error = xfs_rtget_summary(omp, tp, log, bbno, &bp, in xfs_rtcopy_summary()
118 if (error) in xfs_rtcopy_summary()
119 return error; in xfs_rtcopy_summary()
122 error = xfs_rtmodify_summary(omp, tp, log, bbno, -sum, in xfs_rtcopy_summary()
124 if (error) in xfs_rtcopy_summary()
[all …]
/Linux-v4.19/drivers/media/dvb-frontends/
Ddrxk_hard.c515 goto error; in power_up_device()
521 goto error; in power_up_device()
524 goto error; in power_up_device()
528 goto error; in power_up_device()
532 error: in power_up_device()
787 goto error; in drxx_open()
791 goto error; in drxx_open()
794 goto error; in drxx_open()
797 goto error; in drxx_open()
800 goto error; in drxx_open()
[all …]
/Linux-v4.19/fs/dlm/
Drecoverd.c35 int error = -EINTR; in enable_locking() local
45 error = 0; in enable_locking()
50 return error; in enable_locking()
56 int error, neg = 0; in ls_recover() local
77 error = dlm_recover_members(ls, rv, &neg); in ls_recover()
78 if (error) { in ls_recover()
79 log_rinfo(ls, "dlm_recover_members error %d", error); in ls_recover()
91 error = dlm_recover_members_wait(ls); in ls_recover()
92 if (error) { in ls_recover()
93 log_rinfo(ls, "dlm_recover_members_wait error %d", error); in ls_recover()
[all …]

12345678910>>...142