/linux-4.1.27/drivers/input/mouse/ |
D | elan_i2c_i2c.c | 135 int error; in elan_i2c_initialize() local 138 error = elan_i2c_write_cmd(client, ETP_I2C_STAND_CMD, ETP_I2C_RESET); in elan_i2c_initialize() 139 if (error) { in elan_i2c_initialize() 140 dev_err(dev, "device reset failed: %d\n", error); in elan_i2c_initialize() 141 return error; in elan_i2c_initialize() 148 error = i2c_master_recv(client, val, ETP_I2C_INF_LENGTH); in elan_i2c_initialize() 149 if (error < 0) { in elan_i2c_initialize() 150 dev_err(dev, "failed to read reset response: %d\n", error); in elan_i2c_initialize() 151 return error; in elan_i2c_initialize() 154 error = elan_i2c_read_block(client, ETP_I2C_DESC_CMD, in elan_i2c_initialize() [all …]
|
D | elan_i2c_smbus.c | 60 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 121 error = i2c_smbus_read_block_data(client, in elan_smbus_calibrate_result() 123 if (error < 0) in elan_smbus_calibrate_result() [all …]
|
D | cyapa.c | 148 int error; in cyapa_get_state() local 158 error = cyapa_i2c_reg_read_block(cyapa, BL_HEAD_OFFSET, BL_STATUS_SIZE, in cyapa_get_state() 166 if (cyapa->smbus && (error == -ETIMEDOUT || error == -ENXIO)) { in cyapa_get_state() 168 error = cyapa_read_block(cyapa, in cyapa_get_state() 173 if (error != BL_STATUS_SIZE) in cyapa_get_state() 174 goto error; in cyapa_get_state() 186 error = cyapa_gen3_ops.state_parse(cyapa, in cyapa_get_state() 188 if (!error) in cyapa_get_state() 194 error = cyapa_gen5_ops.state_parse(cyapa, in cyapa_get_state() 196 if (!error) in cyapa_get_state() [all …]
|
D | elan_i2c_core.c | 97 int error; in elan_enable_power() local 99 error = regulator_enable(data->vcc); in elan_enable_power() 100 if (error) { in elan_enable_power() 102 "failed to enable regulator: %d\n", error); in elan_enable_power() 103 return error; in elan_enable_power() 107 error = data->ops->power_control(data->client, true); in elan_enable_power() 108 if (error >= 0) in elan_enable_power() 114 dev_err(&data->client->dev, "failed to enable power: %d\n", error); in elan_enable_power() 115 return error; in elan_enable_power() 121 int error; in elan_disable_power() local [all …]
|
D | cyapa_gen5.c | 452 int error; in cyapa_empty_pip_output_data() local 479 error = cyapa_i2c_pip_read(cyapa, gen5_pip->empty_buf, in cyapa_empty_pip_output_data() 481 if (error < 0) in cyapa_empty_pip_output_data() 482 return error; in cyapa_empty_pip_output_data() 505 error = cyapa_i2c_pip_read(cyapa, gen5_pip->empty_buf, length); in cyapa_empty_pip_output_data() 506 if (error < 0) in cyapa_empty_pip_output_data() 507 return error; in cyapa_empty_pip_output_data() 523 error = -EINVAL; in cyapa_empty_pip_output_data() 526 return error; in cyapa_empty_pip_output_data() 535 int error; in cyapa_do_i2c_pip_cmd_irq_sync() local [all …]
|
D | cyapa_gen3.c | 453 int error; in cyapa_gen3_bl_enter() local 456 error = cyapa_poll_state(cyapa, 500); in cyapa_gen3_bl_enter() 457 if (error) in cyapa_gen3_bl_enter() 458 return error; in cyapa_gen3_bl_enter() 469 error = cyapa_write_byte(cyapa, CYAPA_CMD_SOFT_RESET, 0x01); in cyapa_gen3_bl_enter() 470 if (error) in cyapa_gen3_bl_enter() 476 error = cyapa_poll_state(cyapa, 500); in cyapa_gen3_bl_enter() 477 if (error) { in cyapa_gen3_bl_enter() 478 if (error == -ETIMEDOUT) { in cyapa_gen3_bl_enter() 482 return error; in cyapa_gen3_bl_enter() [all …]
|
/linux-4.1.27/fs/xfs/libxfs/ |
D | xfs_attr.c | 126 int error; in xfs_attr_get() local 136 error = xfs_attr_args_init(&args, ip, name, flags); in xfs_attr_get() 137 if (error) in xfs_attr_get() 138 return error; in xfs_attr_get() 145 error = -ENOATTR; in xfs_attr_get() 147 error = xfs_attr_shortform_getvalue(&args); in xfs_attr_get() 149 error = xfs_attr_leaf_get(&args); in xfs_attr_get() 151 error = xfs_attr_node_get(&args); in xfs_attr_get() 155 return error == -EEXIST ? 0 : error; in xfs_attr_get() 208 int error, err2, committed, local; in xfs_attr_set() local [all …]
|
D | xfs_ialloc.c | 100 int error; in xfs_inobt_get_rec() local 102 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_inobt_get_rec() 103 if (!error && *stat == 1) { in xfs_inobt_get_rec() 108 return error; in xfs_inobt_get_rec() 143 int error; in xfs_inobt_insert() local 150 error = xfs_inobt_lookup(cur, thisino, XFS_LOOKUP_EQ, &i); in xfs_inobt_insert() 151 if (error) { in xfs_inobt_insert() 153 return error; in xfs_inobt_insert() 157 error = xfs_inobt_insert_rec(cur, XFS_INODES_PER_CHUNK, in xfs_inobt_insert() 159 if (error) { in xfs_inobt_insert() [all …]
|
D | xfs_rtbitmap.c | 60 int error; /* error value */ in xfs_rtbuf_get() local 64 error = xfs_bmapi_read(ip, block, 1, &map, &nmap, XFS_DATA_FORK); in xfs_rtbuf_get() 65 if (error) in xfs_rtbuf_get() 66 return error; in xfs_rtbuf_get() 69 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, in xfs_rtbuf_get() 72 if (error) in xfs_rtbuf_get() 73 return error; in xfs_rtbuf_get() 95 int error; /* error value */ in xfs_rtfind_back() local 108 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtfind_back() 109 if (error) { in xfs_rtfind_back() [all …]
|
D | xfs_alloc.c | 128 int error; in xfs_alloc_get_rec() local 130 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_alloc_get_rec() 131 if (!error && *stat == 1) { in xfs_alloc_get_rec() 135 return error; in xfs_alloc_get_rec() 314 int error; /* error code */ in xfs_alloc_fixup_trees() local 329 if ((error = xfs_alloc_get_rec(cnt_cur, &nfbno1, &nflen1, &i))) in xfs_alloc_fixup_trees() 330 return error; in xfs_alloc_fixup_trees() 335 if ((error = xfs_alloc_lookup_eq(cnt_cur, fbno, flen, &i))) in xfs_alloc_fixup_trees() 336 return error; in xfs_alloc_fixup_trees() 344 if ((error = xfs_alloc_get_rec(bno_cur, &nfbno1, &nflen1, &i))) in xfs_alloc_fixup_trees() [all …]
|
D | xfs_da_btree.c | 308 int error; in xfs_da3_node_create() local 314 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, whichfork); in xfs_da3_node_create() 315 if (error) in xfs_da3_node_create() 316 return error; in xfs_da3_node_create() 356 int error; in xfs_da3_split() local 385 error = xfs_attr3_leaf_split(state, oldblk, newblk); in xfs_da3_split() 386 if ((error != 0) && (error != -ENOSPC)) { in xfs_da3_split() 387 return error; /* GROT: attr is inconsistent */ in xfs_da3_split() 389 if (!error) { in xfs_da3_split() 400 error = xfs_attr3_leaf_split(state, oldblk, in xfs_da3_split() [all …]
|
D | xfs_btree.c | 288 int error) /* del because of error */ in xfs_btree_del_cursor() argument 305 else if (!error) in xfs_btree_del_cursor() 330 int error; /* error return value */ in xfs_btree_dup_cursor() local 357 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, in xfs_btree_dup_cursor() 361 if (error) { in xfs_btree_dup_cursor() 362 xfs_btree_del_cursor(new, error); in xfs_btree_dup_cursor() 364 return error; in xfs_btree_dup_cursor() 711 int error; in xfs_btree_read_bufl() local 715 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, d, in xfs_btree_read_bufl() 717 if (error) in xfs_btree_read_bufl() [all …]
|
D | xfs_attr_remote.c | 359 int error; in xfs_attr_rmtval_get() local 372 error = xfs_bmapi_read(args->dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_get() 375 if (error) in xfs_attr_rmtval_get() 376 return error; in xfs_attr_rmtval_get() 387 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, in xfs_attr_rmtval_get() 390 if (error) in xfs_attr_rmtval_get() 391 return error; in xfs_attr_rmtval_get() 393 error = xfs_attr_rmtval_copyout(mp, bp, args->dp->i_ino, in xfs_attr_rmtval_get() 397 if (error) in xfs_attr_rmtval_get() 398 return error; in xfs_attr_rmtval_get() [all …]
|
D | xfs_bmap.c | 340 int error; /* error return value */ in xfs_bmap_check_leaf_extents() local 382 error = xfs_btree_read_bufl(mp, NULL, bno, 0, &bp, in xfs_bmap_check_leaf_extents() 385 if (error) in xfs_bmap_check_leaf_extents() 466 error = xfs_btree_read_bufl(mp, NULL, bno, 0, &bp, in xfs_bmap_check_leaf_extents() 469 if (error) in xfs_bmap_check_leaf_extents() 671 int error; /* error return value */ in xfs_bmap_btree_to_extents() local 689 if ((error = xfs_btree_check_lptr(cur, cbno, 1))) in xfs_bmap_btree_to_extents() 690 return error; in xfs_bmap_btree_to_extents() 692 error = xfs_btree_read_bufl(mp, tp, cbno, 0, &cbp, XFS_BMAP_BTREE_REF, in xfs_bmap_btree_to_extents() 694 if (error) in xfs_bmap_btree_to_extents() [all …]
|
D | xfs_dir2_node.c | 204 int error; in xfs_dir3_free_get_buf() local 207 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, fbno), in xfs_dir3_free_get_buf() 209 if (error) in xfs_dir3_free_get_buf() 210 return error; in xfs_dir3_free_get_buf() 290 int error; /* error return value */ in xfs_dir2_leaf_to_node() local 311 if ((error = xfs_dir2_grow_inode(args, XFS_DIR2_FREE_SPACE, &fdb))) { in xfs_dir2_leaf_to_node() 312 return error; in xfs_dir2_leaf_to_node() 318 error = xfs_dir3_free_get_buf(args, fdb, &fbp); in xfs_dir2_leaf_to_node() 319 if (error) in xfs_dir2_leaf_to_node() 320 return error; in xfs_dir2_leaf_to_node() [all …]
|
/linux-4.1.27/fs/ |
D | xattr.c | 96 int error = -EOPNOTSUPP; in __vfs_setxattr_noperm() local 103 error = inode->i_op->setxattr(dentry, name, value, size, flags); in __vfs_setxattr_noperm() 104 if (!error) { in __vfs_setxattr_noperm() 111 error = security_inode_setsecurity(inode, suffix, value, in __vfs_setxattr_noperm() 113 if (!error) in __vfs_setxattr_noperm() 117 return error; in __vfs_setxattr_noperm() 126 int error; in vfs_setxattr() local 128 error = xattr_permission(inode, name, MAY_WRITE); in vfs_setxattr() 129 if (error) in vfs_setxattr() 130 return error; in vfs_setxattr() [all …]
|
D | open.c | 69 long error; in vfs_truncate() local 79 error = mnt_want_write(path->mnt); in vfs_truncate() 80 if (error) in vfs_truncate() 83 error = inode_permission(inode, MAY_WRITE); in vfs_truncate() 84 if (error) in vfs_truncate() 87 error = -EPERM; in vfs_truncate() 91 error = get_write_access(inode); in vfs_truncate() 92 if (error) in vfs_truncate() 99 error = break_lease(inode, O_WRONLY); in vfs_truncate() 100 if (error) in vfs_truncate() [all …]
|
D | stat.c | 80 int error = -EBADF; in vfs_fstat() local 83 error = vfs_getattr(&f.file->f_path, stat); in vfs_fstat() 86 return error; in vfs_fstat() 94 int error = -EINVAL; in vfs_fstatat() local 106 error = user_path_at(dfd, filename, lookup_flags, &path); in vfs_fstatat() 107 if (error) in vfs_fstatat() 110 error = vfs_getattr(&path, stat); in vfs_fstatat() 112 if (retry_estale(error, lookup_flags)) { in vfs_fstatat() 117 return error; in vfs_fstatat() 181 int error; in SYSCALL_DEFINE2() local [all …]
|
D | namei.c | 277 int error = posix_acl_permission(inode, acl, mask); in check_acl() local 279 return error; in check_acl() 297 int error = check_acl(inode, mask); in acl_permission_check() local 298 if (error != -EAGAIN) in acl_permission_check() 299 return error; in acl_permission_check() 874 int error; in follow_link() local 882 error = -ELOOP; in follow_link() 892 error = security_inode_follow_link(link->dentry, nd); in follow_link() 893 if (error) in follow_link() 898 error = PTR_ERR(*p); in follow_link() [all …]
|
D | statfs.c | 68 int error; in vfs_statfs() local 70 error = statfs_by_dentry(path->dentry, buf); in vfs_statfs() 71 if (!error) in vfs_statfs() 73 return error; in vfs_statfs() 80 int error; in user_statfs() local 83 error = user_path_at(AT_FDCWD, pathname, lookup_flags, &path); in user_statfs() 84 if (!error) { in user_statfs() 85 error = vfs_statfs(&path, st); in user_statfs() 87 if (retry_estale(error, lookup_flags)) { in user_statfs() 92 return error; in user_statfs() [all …]
|
D | locks.c | 524 int error = -ENOMEM; in lease_alloc() local 527 return ERR_PTR(error); in lease_alloc() 529 error = lease_init(filp, type, fl); in lease_alloc() 530 if (error) { in lease_alloc() 532 return ERR_PTR(error); in lease_alloc() 870 int error = 0; in flock_lock_inode() local 903 error = -ENOENT; in flock_lock_inode() 911 error = -EAGAIN; in flock_lock_inode() 914 error = FILE_LOCK_DEFERRED; in flock_lock_inode() 923 error = 0; in flock_lock_inode() [all …]
|
D | ioctl.c | 38 int error = -ENOTTY; in vfs_ioctl() local 43 error = filp->f_op->unlocked_ioctl(filp, cmd, arg); in vfs_ioctl() 44 if (error == -ENOIOCTLCMD) in vfs_ioctl() 45 error = -ENOTTY; in vfs_ioctl() 47 return error; in vfs_ioctl() 181 int error; in ioctl_fiemap() local 192 error = fiemap_check_ranges(sb, fiemap.fm_start, fiemap.fm_length, in ioctl_fiemap() 194 if (error) in ioctl_fiemap() 195 return error; in ioctl_fiemap() 209 error = inode->i_op->fiemap(inode, &fieinfo, fiemap.fm_start, len); in ioctl_fiemap() [all …]
|
D | readdir.c | 113 int error; in SYSCALL_DEFINE3() local 123 error = iterate_dir(f.file, &buf.ctx); in SYSCALL_DEFINE3() 125 error = buf.result; in SYSCALL_DEFINE3() 128 return error; in SYSCALL_DEFINE3() 149 int error; member 162 buf->error = -EINVAL; /* only used if we fail.. */ in filldir() 167 buf->error = -EOVERFLOW; in filldir() 192 buf->error = -EFAULT; in filldir() 206 int error; in SYSCALL_DEFINE3() local 215 error = iterate_dir(f.file, &buf.ctx); in SYSCALL_DEFINE3() [all …]
|
D | attr.c | 40 int error = inode_newsize_ok(inode, attr->ia_size); in inode_change_ok() local 41 if (error) in inode_change_ok() 42 return error; in inode_change_ok() 194 int error; in notify_change() local 222 error = security_inode_need_killpriv(dentry); in notify_change() 223 if (error > 0) in notify_change() 224 error = security_inode_killpriv(dentry); in notify_change() 225 if (error) in notify_change() 226 return error; in notify_change() 258 error = security_inode_setattr(dentry, attr); in notify_change() [all …]
|
D | utimes.c | 53 int error; in utimes_common() local 58 error = mnt_want_write(path->mnt); in utimes_common() 59 if (error) in utimes_common() 95 error = -EACCES; in utimes_common() 100 error = inode_permission(inode, MAY_WRITE); in utimes_common() 101 if (error) in utimes_common() 107 error = notify_change(path->dentry, &newattrs, &delegated_inode); in utimes_common() 110 error = break_deleg_wait(&delegated_inode); in utimes_common() 111 if (!error) in utimes_common() 118 return error; in utimes_common() [all …]
|
/linux-4.1.27/drivers/input/misc/ |
D | max77843-haptic.c | 62 int error; in max77843_haptic_set_duty_cycle() local 64 error = pwm_config(haptic->pwm_dev, delta, haptic->pwm_dev->period); in max77843_haptic_set_duty_cycle() 65 if (error) { in max77843_haptic_set_duty_cycle() 66 dev_err(haptic->dev, "failed to configure pwm: %d\n", error); in max77843_haptic_set_duty_cycle() 67 return error; in max77843_haptic_set_duty_cycle() 75 int error; in max77843_haptic_bias() local 77 error = regmap_update_bits(haptic->regmap_haptic, in max77843_haptic_bias() 81 if (error) { in max77843_haptic_bias() 83 on ? "enable" : "disable", error); in max77843_haptic_bias() 84 return error; in max77843_haptic_bias() [all …]
|
D | drv2667.c | 139 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 …]
|
D | bma150.c | 197 int error; in bma150_set_mode() local 199 error = bma150_set_reg_bits(bma150->client, mode, BMA150_WAKE_UP_POS, in bma150_set_mode() 201 if (error) in bma150_set_mode() 202 return error; in bma150_set_mode() 204 error = bma150_set_reg_bits(bma150->client, mode, BMA150_SLEEP_POS, in bma150_set_mode() 206 if (error) in bma150_set_mode() 207 return error; in bma150_set_mode() 218 int error; in bma150_soft_reset() local 220 error = bma150_set_reg_bits(bma150->client, 1, BMA150_SW_RES_POS, in bma150_soft_reset() 222 if (error) in bma150_soft_reset() [all …]
|
D | drv260x.c | 262 int error; in drv260x_worker() local 268 error = regmap_write(haptics->regmap, in drv260x_worker() 270 if (error) { in drv260x_worker() 272 "Failed to write set mode: %d\n", error); in drv260x_worker() 274 error = regmap_write(haptics->regmap, in drv260x_worker() 276 if (error) in drv260x_worker() 278 "Failed to set magnitude: %d\n", error); in drv260x_worker() 304 int error; in drv260x_close() local 308 error = regmap_write(haptics->regmap, DRV260X_MODE, DRV260X_STANDBY); in drv260x_close() 309 if (error) in drv260x_close() [all …]
|
D | max77693-haptic.c | 70 int error; in max77693_haptic_set_duty_cycle() local 72 error = pwm_config(haptic->pwm_dev, delta, haptic->pwm_dev->period); in max77693_haptic_set_duty_cycle() 73 if (error) { in max77693_haptic_set_duty_cycle() 74 dev_err(haptic->dev, "failed to configure pwm: %d\n", error); in max77693_haptic_set_duty_cycle() 75 return error; in max77693_haptic_set_duty_cycle() 85 int error; in max77693_haptic_configure() local 92 error = regmap_write(haptic->regmap_haptic, in max77693_haptic_configure() 94 if (error) { in max77693_haptic_configure() 96 "failed to update haptic config: %d\n", error); in max77693_haptic_configure() 97 return error; in max77693_haptic_configure() [all …]
|
D | pm8941-pwrkey.c | 64 int error; in pm8941_reboot_notify() local 72 error = regmap_update_bits(pwrkey->regmap, in pm8941_reboot_notify() 76 if (error) in pm8941_reboot_notify() 79 error); in pm8941_reboot_notify() 98 error = regmap_update_bits(pwrkey->regmap, in pm8941_reboot_notify() 102 if (error) in pm8941_reboot_notify() 104 error); in pm8941_reboot_notify() 106 error = regmap_update_bits(pwrkey->regmap, in pm8941_reboot_notify() 110 if (error) in pm8941_reboot_notify() 111 dev_err(pwrkey->dev, "unable to re-set enable: %d\n", error); in pm8941_reboot_notify() [all …]
|
D | ims-pcu.c | 211 int error; in ims_pcu_setup_buttons() local 242 error = input_register_device(input); in ims_pcu_setup_buttons() 243 if (error) { in ims_pcu_setup_buttons() 246 error); in ims_pcu_setup_buttons() 248 return error; in ims_pcu_setup_buttons() 293 int error; in ims_pcu_setup_gamepad() local 300 error = -ENOMEM; in ims_pcu_setup_gamepad() 329 error = input_register_device(input); in ims_pcu_setup_gamepad() 330 if (error) { in ims_pcu_setup_gamepad() 333 error); in ims_pcu_setup_gamepad() [all …]
|
D | gp2ap002a00f.c | 76 int error; in gp2a_device_open() local 78 error = gp2a_enable(dt); in gp2a_device_open() 79 if (error < 0) { in gp2a_device_open() 81 "unable to activate, err %d\n", error); in gp2a_device_open() 82 return error; in gp2a_device_open() 93 int error; in gp2a_device_close() local 95 error = gp2a_disable(dt); in gp2a_device_close() 96 if (error < 0) in gp2a_device_close() 98 "unable to deactivate, err %d\n", error); in gp2a_device_close() 103 int error; in gp2a_initialize() local [all …]
|
D | regulator-haptic.c | 41 int error; in regulator_haptic_toggle() local 45 error = on ? regulator_enable(haptic->regulator) : in regulator_haptic_toggle() 47 if (error) { in regulator_haptic_toggle() 50 on ? "on" : "off", error); in regulator_haptic_toggle() 51 return error; in regulator_haptic_toggle() 65 int error; in regulator_haptic_set_voltage() local 70 error = regulator_set_voltage(haptic->regulator, in regulator_haptic_set_voltage() 73 if (error) { in regulator_haptic_set_voltage() 75 intensity + haptic->min_volt, error); in regulator_haptic_set_voltage() 76 return error; in regulator_haptic_set_voltage() [all …]
|
D | palmas-pwrbutton.c | 67 int error; in palmas_power_button_work() local 69 error = palmas_read(pwron->palmas, PALMAS_INTERRUPT_BASE, in palmas_power_button_work() 71 if (error) { in palmas_power_button_work() 73 "Cannot read palmas PWRON status: %d\n", error); in palmas_power_button_work() 117 int i, error; in palmas_pwron_params_ofinit() local 130 error = of_property_read_u32(np, "ti,palmas-long-press-seconds", &val); in palmas_pwron_params_ofinit() 131 if (!error) { in palmas_pwron_params_ofinit() 140 error = of_property_read_u32(np, in palmas_pwron_params_ofinit() 143 if (!error) { in palmas_pwron_params_ofinit() 170 int error; in palmas_pwron_probe() local [all …]
|
D | ab8500-ponkey.c | 55 int error; in ab8500_ponkey_probe() local 88 error = devm_request_any_context_irq(&pdev->dev, ponkey->irq_dbf, in ab8500_ponkey_probe() 91 if (error < 0) { in ab8500_ponkey_probe() 93 ponkey->irq_dbf, error); in ab8500_ponkey_probe() 94 return error; in ab8500_ponkey_probe() 97 error = devm_request_any_context_irq(&pdev->dev, ponkey->irq_dbr, in ab8500_ponkey_probe() 100 if (error < 0) { in ab8500_ponkey_probe() 102 ponkey->irq_dbr, error); in ab8500_ponkey_probe() 103 return error; in ab8500_ponkey_probe() 106 error = input_register_device(ponkey->idev); in ab8500_ponkey_probe() [all …]
|
D | tps65218-pwrbutton.c | 37 int error; in tps65218_pwr_irq() local 39 error = tps65218_reg_read(pwr->tps, TPS65218_REG_STATUS, ®); in tps65218_pwr_irq() 40 if (error) { in tps65218_pwr_irq() 41 dev_err(pwr->dev, "can't read register: %d\n", error); in tps65218_pwr_irq() 64 int error; in tps65218_pwron_probe() local 89 error = devm_request_threaded_irq(dev, irq, NULL, tps65218_pwr_irq, in tps65218_pwron_probe() 94 if (error) { in tps65218_pwron_probe() 96 irq, error); in tps65218_pwron_probe() 97 return error; in tps65218_pwron_probe() 100 error= input_register_device(idev); in tps65218_pwron_probe() [all …]
|
D | e3x0-button.c | 73 int error; in e3x0_button_probe() local 99 error = devm_request_irq(&pdev->dev, irq_press, in e3x0_button_probe() 102 if (error) { in e3x0_button_probe() 104 irq_press, error); in e3x0_button_probe() 105 return error; in e3x0_button_probe() 108 error = devm_request_irq(&pdev->dev, irq_release, in e3x0_button_probe() 111 if (error) { in e3x0_button_probe() 113 irq_release, error); in e3x0_button_probe() 114 return error; in e3x0_button_probe() 117 error = input_register_device(input); in e3x0_button_probe() [all …]
|
D | axp20x-pek.c | 192 int error; in axp20x_pek_probe() local 234 error = devm_request_any_context_irq(&pdev->dev, axp20x_pek->irq_dbr, in axp20x_pek_probe() 237 if (error < 0) { in axp20x_pek_probe() 239 axp20x_pek->irq_dbr, error); in axp20x_pek_probe() 240 return error; in axp20x_pek_probe() 243 error = devm_request_any_context_irq(&pdev->dev, axp20x_pek->irq_dbf, in axp20x_pek_probe() 246 if (error < 0) { in axp20x_pek_probe() 248 axp20x_pek->irq_dbf, error); in axp20x_pek_probe() 249 return error; in axp20x_pek_probe() 252 error = sysfs_create_group(&pdev->dev.kobj, &axp20x_attribute_group); in axp20x_pek_probe() [all …]
|
D | ad714x-i2c.c | 32 int error; in ad714x_i2c_write() local 37 error = i2c_master_send(client, (u8 *)chip->xfer_buf, in ad714x_i2c_write() 39 if (unlikely(error < 0)) { in ad714x_i2c_write() 40 dev_err(&client->dev, "I2C write error: %d\n", error); in ad714x_i2c_write() 41 return error; in ad714x_i2c_write() 52 int error; in ad714x_i2c_read() local 56 error = i2c_master_send(client, (u8 *)chip->xfer_buf, in ad714x_i2c_read() 58 if (error >= 0) in ad714x_i2c_read() 59 error = i2c_master_recv(client, (u8 *)chip->xfer_buf, in ad714x_i2c_read() 62 if (unlikely(error < 0)) { in ad714x_i2c_read() [all …]
|
D | twl6040-vibra.c | 263 int error; in twl6040_vibra_probe() local 310 error = devm_request_threaded_irq(&pdev->dev, info->irq, NULL, in twl6040_vibra_probe() 313 if (error) { in twl6040_vibra_probe() 314 dev_err(info->dev, "VIB IRQ request failed: %d\n", error); in twl6040_vibra_probe() 315 return error; in twl6040_vibra_probe() 324 error = devm_regulator_bulk_get(twl6040_core_dev, in twl6040_vibra_probe() 327 if (error) { in twl6040_vibra_probe() 328 dev_err(info->dev, "couldn't get regulators %d\n", error); in twl6040_vibra_probe() 329 return error; in twl6040_vibra_probe() 333 error = regulator_set_voltage(info->supplies[0].consumer, in twl6040_vibra_probe() [all …]
|
/linux-4.1.27/kernel/power/ |
D | hibernate.c | 269 int error; in create_image() local 271 error = dpm_suspend_end(PMSG_FREEZE); in create_image() 272 if (error) { in create_image() 275 return error; in create_image() 278 error = platform_pre_snapshot(platform_mode); in create_image() 279 if (error || hibernation_test(TEST_PLATFORM)) in create_image() 282 error = disable_nonboot_cpus(); in create_image() 283 if (error || hibernation_test(TEST_CPUS)) in create_image() 288 error = syscore_suspend(); in create_image() 289 if (error) { in create_image() [all …]
|
D | suspend.c | 266 int error; in suspend_prepare() local 273 error = pm_notifier_call_chain(PM_SUSPEND_PREPARE); in suspend_prepare() 274 if (error) in suspend_prepare() 278 error = suspend_freeze_processes(); in suspend_prepare() 280 if (!error) in suspend_prepare() 288 return error; in suspend_prepare() 312 int error; in suspend_enter() local 314 error = platform_suspend_prepare(state); in suspend_enter() 315 if (error) in suspend_enter() 318 error = dpm_suspend_late(PMSG_SUSPEND); in suspend_enter() [all …]
|
D | user.c | 50 int error; in snapshot_open() local 58 error = -EBUSY; in snapshot_open() 64 error = -ENOSYS; in snapshot_open() 77 error = pm_notifier_call_chain(PM_HIBERNATION_PREPARE); in snapshot_open() 78 if (error) in snapshot_open() 89 error = pm_notifier_call_chain(PM_RESTORE_PREPARE); in snapshot_open() 90 if (!error) { in snapshot_open() 91 error = create_basic_memory_bitmaps(); in snapshot_open() 92 data->free_bitmaps = !error; in snapshot_open() 94 if (error) in snapshot_open() [all …]
|
D | main.c | 114 int error = -EINVAL; in pm_test_store() local 125 error = 0; in pm_test_store() 131 return error ? error : n; in pm_test_store() 342 int error; in state_store() local 344 error = pm_autosleep_lock(); in state_store() 345 if (error) in state_store() 346 return error; in state_store() 349 error = -EBUSY; in state_store() 355 error = pm_suspend(state); in state_store() 357 error = hibernate(); in state_store() [all …]
|
D | process.c | 120 int error; in freeze_processes() local 122 error = __usermodehelper_disable(UMH_FREEZING); in freeze_processes() 123 if (error) in freeze_processes() 124 return error; in freeze_processes() 135 error = try_to_freeze_tasks(true); in freeze_processes() 136 if (!error) { in freeze_processes() 148 if (!error && !oom_killer_disable()) in freeze_processes() 149 error = -EBUSY; in freeze_processes() 151 if (error) in freeze_processes() 153 return error; in freeze_processes() [all …]
|
D | swap.c | 223 int error; in mark_swapfiles() local 234 error = hib_bio_write_page(swsusp_resume_block, in mark_swapfiles() 238 error = -ENODEV; in mark_swapfiles() 240 return error; in mark_swapfiles() 353 int error = 0; in swap_write_page() local 359 error = write_page(buf, offset, bio_chain); in swap_write_page() 360 if (error) in swap_write_page() 361 return error; in swap_write_page() 368 error = write_page(handle->cur, handle->cur_swap, bio_chain); in swap_write_page() 369 if (error) in swap_write_page() [all …]
|
/linux-4.1.27/fs/gfs2/ |
D | inode.c | 146 int error; in gfs2_inode_lookup() local 158 error = gfs2_glock_get(sdp, no_addr, &gfs2_inode_glops, CREATE, &ip->i_gl); in gfs2_inode_lookup() 159 if (unlikely(error)) in gfs2_inode_lookup() 163 error = gfs2_glock_get(sdp, no_addr, &gfs2_iopen_glops, CREATE, &io_gl); in gfs2_inode_lookup() 164 if (unlikely(error)) in gfs2_inode_lookup() 168 error = gfs2_glock_nq_init(io_gl, LM_ST_SHARED, GL_EXACT, &ip->i_iopen_gh); in gfs2_inode_lookup() 169 if (unlikely(error)) in gfs2_inode_lookup() 178 error = gfs2_inode_refresh(GFS2_I(inode)); in gfs2_inode_lookup() 179 if (error) in gfs2_inode_lookup() 203 return ERR_PTR(error); in gfs2_inode_lookup() [all …]
|
D | xattr.c | 83 int error = 0; in ea_foreach_i() local 97 error = ea_call(ip, bh, ea, prev, data); in ea_foreach_i() 98 if (error) in ea_foreach_i() 99 return error; in ea_foreach_i() 109 return error; in ea_foreach_i() 120 int error; in ea_foreach() local 122 error = gfs2_meta_read(ip->i_gl, ip->i_eattr, DIO_WAIT, &bh); in ea_foreach() 123 if (error) in ea_foreach() 124 return error; in ea_foreach() 127 error = ea_foreach_i(ip, bh, ea_call, data); in ea_foreach() [all …]
|
D | recovery.c | 40 int error; in gfs2_replay_read_block() local 42 error = gfs2_extent_map(&ip->i_inode, blk, &new, &dblock, &extlen); in gfs2_replay_read_block() 43 if (error) in gfs2_replay_read_block() 44 return error; in gfs2_replay_read_block() 52 return error; in gfs2_replay_read_block() 157 int error; in get_log_header() local 159 error = gfs2_replay_read_block(jd, blk, &bh); in get_log_header() 160 if (error) in get_log_header() 161 return error; in get_log_header() 167 error = gfs2_log_header_in(&lh, bh->b_data); in get_log_header() [all …]
|
D | ops_fstype.c | 174 static void end_bio_io_page(struct bio *bio, int error) in end_bio_io_page() argument 178 if (!error) in end_bio_io_page() 181 pr_warn("error %d reading superblock\n", error); in end_bio_io_page() 275 int error; in gfs2_read_sb() local 277 error = gfs2_read_super(sdp, GFS2_SB_ADDR >> sdp->sd_fsb2bb_shift, silent); in gfs2_read_sb() 278 if (error) { in gfs2_read_sb() 281 return error; in gfs2_read_sb() 361 int error = 0; in init_names() local 369 error = gfs2_read_super(sdp, GFS2_SB_ADDR >> sdp->sd_fsb2bb_shift, silent); in init_names() 370 if (error) in init_names() [all …]
|
D | dir.c | 109 int error; in gfs2_dir_get_existing_buffer() local 111 error = gfs2_meta_read(ip->i_gl, block, DIO_WAIT, &bh); in gfs2_dir_get_existing_buffer() 112 if (error) in gfs2_dir_get_existing_buffer() 113 return error; in gfs2_dir_get_existing_buffer() 126 int error; in gfs2_dir_write_stuffed() local 128 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_dir_write_stuffed() 129 if (error) in gfs2_dir_write_stuffed() 130 return error; in gfs2_dir_write_stuffed() 164 int error = 0; in gfs2_dir_write_data() local 179 error = gfs2_unstuff_dinode(ip, NULL); in gfs2_dir_write_data() [all …]
|
D | super.c | 368 int error = 0; in init_threads() local 372 error = PTR_ERR(p); in init_threads() 373 fs_err(sdp, "can't start logd thread: %d\n", error); in init_threads() 374 return error; in init_threads() 380 error = PTR_ERR(p); in init_threads() 381 fs_err(sdp, "can't start quotad thread: %d\n", error); in init_threads() 389 return error; in init_threads() 405 int error; in gfs2_make_fs_rw() local 407 error = init_threads(sdp); in gfs2_make_fs_rw() 408 if (error) in gfs2_make_fs_rw() [all …]
|
D | quota.c | 217 int error; in qd_alloc() local 231 error = gfs2_glock_get(sdp, qd2index(qd), in qd_alloc() 233 if (error) in qd_alloc() 325 int error = 0; in slot_get() local 331 error = -ENOSPC; in slot_get() 336 error = 0; in slot_get() 342 return error; in slot_get() 374 int error; in bh_get() local 388 error = gfs2_block_map(&ip->i_inode, block, &bh_map, 0); in bh_get() 389 if (error) in bh_get() [all …]
|
D | file.c | 60 loff_t error; in gfs2_llseek() local 66 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, in gfs2_llseek() 68 if (!error) { in gfs2_llseek() 69 error = generic_file_llseek(file, offset, whence); in gfs2_llseek() 75 error = generic_file_llseek(file, offset, whence); in gfs2_llseek() 78 error = -EINVAL; in gfs2_llseek() 81 return error; in gfs2_llseek() 97 int error; in gfs2_readdir() local 99 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &d_gh); in gfs2_readdir() 100 if (error) in gfs2_readdir() [all …]
|
D | bmap.c | 124 int error; in gfs2_unstuff_dinode() local 128 error = gfs2_meta_inode_buffer(ip, &dibh); in gfs2_unstuff_dinode() 129 if (error) in gfs2_unstuff_dinode() 137 error = gfs2_alloc_blocks(ip, &block, &n, 0, NULL); in gfs2_unstuff_dinode() 138 if (error) in gfs2_unstuff_dinode() 142 error = gfs2_dir_get_new_buffer(ip, block, &bh); in gfs2_unstuff_dinode() 143 if (error) in gfs2_unstuff_dinode() 149 error = gfs2_unstuffer_page(ip, dibh, block, page); in gfs2_unstuff_dinode() 150 if (error) in gfs2_unstuff_dinode() 174 return error; in gfs2_unstuff_dinode() [all …]
|
D | lock_dlm.c | 287 int error; in gdlm_put_lock() local 310 error = dlm_unlock(ls->ls_dlm, gl->gl_lksb.sb_lkid, DLM_LKF_VALBLK, in gdlm_put_lock() 312 if (error) { in gdlm_put_lock() 315 (unsigned long long)gl->gl_name.ln_number, error); in gdlm_put_lock() 501 int error; in sync_unlock() local 503 error = dlm_unlock(ls->ls_dlm, lksb->sb_lkid, 0, lksb, ls); in sync_unlock() 504 if (error) { in sync_unlock() 506 name, lksb->sb_lkid, error); in sync_unlock() 507 return error; in sync_unlock() 525 int error, status; in sync_lock() local [all …]
|
D | main.c | 78 int error; in init_gfs2_fs() local 84 error = gfs2_sys_init(); in init_gfs2_fs() 85 if (error) in init_gfs2_fs() 86 return error; in init_gfs2_fs() 88 error = list_lru_init(&gfs2_qd_lru); in init_gfs2_fs() 89 if (error) in init_gfs2_fs() 92 error = gfs2_glock_init(); in init_gfs2_fs() 93 if (error) in init_gfs2_fs() 96 error = -ENOMEM; in init_gfs2_fs() 146 error = register_filesystem(&gfs2_fs_type); in init_gfs2_fs() [all …]
|
/linux-4.1.27/fs/dlm/ |
D | recoverd.c | 35 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 …]
|
D | main.c | 24 int error; in init_dlm() local 26 error = dlm_memory_init(); in init_dlm() 27 if (error) in init_dlm() 30 error = dlm_lockspace_init(); in init_dlm() 31 if (error) in init_dlm() 34 error = dlm_config_init(); in init_dlm() 35 if (error) in init_dlm() 38 error = dlm_register_debugfs(); in init_dlm() 39 if (error) in init_dlm() 42 error = dlm_user_init(); in init_dlm() [all …]
|
D | lock.c | 556 int error; in find_rsb_dir() local 589 error = pre_rsb_struct(ls); in find_rsb_dir() 590 if (error < 0) in find_rsb_dir() 596 error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r); in find_rsb_dir() 597 if (error) in find_rsb_dir() 605 error = 0; in find_rsb_dir() 610 error = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r); in find_rsb_dir() 611 if (error) in find_rsb_dir() 627 error = -ENOTBLK; in find_rsb_dir() 651 error = rsb_insert(r, &ls->ls_rsbtbl[b].keep); in find_rsb_dir() [all …]
|
D | recover.c | 46 int error = 0; in dlm_wait_function() local 59 error = -EINTR; in dlm_wait_function() 61 return error; in dlm_wait_function() 98 int error = 0, delay; in wait_status_all() local 104 error = -EINTR; in wait_status_all() 108 error = dlm_rcom_status(ls, memb->nodeid, 0); in wait_status_all() 109 if (error) in wait_status_all() 123 return error; in wait_status_all() 130 int error = 0, delay = 0, nodeid = ls->ls_low_nodeid; in wait_status_low() local 134 error = -EINTR; in wait_status_low() [all …]
|
D | user.c | 242 int error = -ENOMEM; in device_user_lock() local 249 error = -EINVAL; in device_user_lock() 265 error = dlm_user_convert(ls, ua, in device_user_lock() 270 error = dlm_user_adopt_orphan(ls, ua, in device_user_lock() 275 if (!error) in device_user_lock() 276 error = lkid; in device_user_lock() 278 error = dlm_user_request(ls, ua, in device_user_lock() 282 if (!error) in device_user_lock() 283 error = ua->lksb.sb_lkid; in device_user_lock() 287 return error; in device_user_lock() [all …]
|
D | lockspace.c | 199 int error; in do_uevent() local 211 error = wait_event_interruptible(ls->ls_uevent_wait, in do_uevent() 214 log_rinfo(ls, "group event done %d %d", error, ls->ls_uevent_result); in do_uevent() 216 if (error) in do_uevent() 219 error = ls->ls_uevent_result; in do_uevent() 221 if (error) in do_uevent() 223 error, ls->ls_uevent_result); in do_uevent() 224 return error; in do_uevent() 302 int error = 0; in dlm_scand_start() local 306 error = PTR_ERR(p); in dlm_scand_start() [all …]
|
D | rcom.c | 148 int error = 0; in dlm_rcom_status() local 158 error = create_rcom(ls, nodeid, DLM_RCOM_STATUS, in dlm_rcom_status() 160 if (error) in dlm_rcom_status() 170 error = dlm_wait_function(ls, &rcom_response); in dlm_rcom_status() 172 if (error) in dlm_rcom_status() 181 error = 0; in dlm_rcom_status() 183 error = check_rcom_config(ls, rc, nodeid); in dlm_rcom_status() 188 return error; in dlm_rcom_status() 200 int error; in receive_rcom_status() local 221 error = create_rcom(ls, nodeid, DLM_RCOM_STATUS_REPLY, in receive_rcom_status() [all …]
|
/linux-4.1.27/drivers/input/touchscreen/ |
D | cyttsp_core.c | 83 int error; in ttsp_read_block_data() local 87 error = ts->bus_ops->read(ts->dev, ts->xfer_buf, command, in ttsp_read_block_data() 89 if (!error) in ttsp_read_block_data() 101 int error; in ttsp_write_block_data() local 105 error = ts->bus_ops->write(ts->dev, ts->xfer_buf, command, in ttsp_write_block_data() 107 if (!error) in ttsp_write_block_data() 141 int error; in cyttsp_exit_bl_mode() local 149 error = ttsp_write_block_data(ts, CY_REG_BASE, in cyttsp_exit_bl_mode() 151 if (error) in cyttsp_exit_bl_mode() 152 return error; in cyttsp_exit_bl_mode() [all …]
|
D | elants_i2c.c | 227 int ret, error; in elants_i2c_calibrate() local 248 error = ret < 0 ? ret : -ETIMEDOUT; in elants_i2c_calibrate() 251 error); in elants_i2c_calibrate() 252 return error; in elants_i2c_calibrate() 268 int error; in elants_i2c_sw_reset() local 270 error = elants_i2c_send(client, soft_rst_cmd, in elants_i2c_sw_reset() 272 if (error) { in elants_i2c_sw_reset() 273 dev_err(&client->dev, "software reset failed: %d\n", error); in elants_i2c_sw_reset() 274 return error; in elants_i2c_sw_reset() 294 int error, retry_cnt; in elants_i2c_query_fw_id() local [all …]
|
D | mms114.c | 80 int error; in __mms114_read_reg() local 97 error = i2c_transfer(client->adapter, xfer, 2); in __mms114_read_reg() 98 if (error != 2) { in __mms114_read_reg() 100 "%s: i2c transfer failed (%d)\n", __func__, error); in __mms114_read_reg() 101 return error < 0 ? error : -EIO; in __mms114_read_reg() 111 int error; in mms114_read_reg() local 116 error = __mms114_read_reg(data, reg, 1, &val); in mms114_read_reg() 117 return error < 0 ? error : val; in mms114_read_reg() 125 int error; in mms114_write_reg() local 130 error = i2c_master_send(client, buf, 2); in mms114_write_reg() [all …]
|
D | sx8654.c | 131 int error; in sx8654_open() local 134 error = i2c_smbus_write_byte_data(client, I2C_REG_TOUCH0, in sx8654_open() 136 if (error) { in sx8654_open() 138 return error; in sx8654_open() 141 error = i2c_smbus_write_byte(client, CMD_PENTRG); in sx8654_open() 142 if (error) { in sx8654_open() 144 return error; in sx8654_open() 156 int error; in sx8654_close() local 161 error = i2c_smbus_write_byte(client, CMD_MANUAL); in sx8654_close() 162 if (error) { in sx8654_close() [all …]
|
D | goodix.c | 95 int error; in goodix_ts_read_input_report() local 97 error = goodix_i2c_read(ts->client, GOODIX_READ_COOR_ADDR, data, in goodix_ts_read_input_report() 99 if (error) { in goodix_ts_read_input_report() 100 dev_err(&ts->client->dev, "I2C transfer error: %d\n", error); in goodix_ts_read_input_report() 101 return error; in goodix_ts_read_input_report() 110 error = goodix_i2c_read(ts->client, in goodix_ts_read_input_report() 115 if (error) in goodix_ts_read_input_report() 116 return error; in goodix_ts_read_input_report() 196 int error; in goodix_read_config() local 198 error = goodix_i2c_read(ts->client, GOODIX_REG_CONFIG_DATA, in goodix_read_config() [all …]
|
D | da9052_tsi.c | 146 int error; in da9052_ts_configure_gpio() local 148 error = da9052_reg_update(da9052, DA9052_GPIO_2_3_REG, 0x30, 0); in da9052_ts_configure_gpio() 149 if (error < 0) in da9052_ts_configure_gpio() 150 return error; in da9052_ts_configure_gpio() 152 error = da9052_reg_update(da9052, DA9052_GPIO_4_5_REG, 0x33, 0); in da9052_ts_configure_gpio() 153 if (error < 0) in da9052_ts_configure_gpio() 154 return error; in da9052_ts_configure_gpio() 156 error = da9052_reg_update(da9052, DA9052_GPIO_6_7_REG, 0x33, 0); in da9052_ts_configure_gpio() 157 if (error < 0) in da9052_ts_configure_gpio() 158 return error; in da9052_ts_configure_gpio() [all …]
|
D | edt-ft5x06.c | 176 int error; in edt_ft5x06_ts_isr() local 199 error = edt_ft5x06_ts_readwrite(tsdata->client, in edt_ft5x06_ts_isr() 202 if (error) { in edt_ft5x06_ts_isr() 204 error); in edt_ft5x06_ts_isr() 286 int error; in edt_ft5x06_register_read() local 294 error = edt_ft5x06_ts_readwrite(tsdata->client, 2, wrbuf, 2, in edt_ft5x06_register_read() 296 if (error) in edt_ft5x06_register_read() 297 return error; in edt_ft5x06_register_read() 310 error = edt_ft5x06_ts_readwrite(tsdata->client, 1, in edt_ft5x06_register_read() 312 if (error) in edt_ft5x06_register_read() [all …]
|
D | tsc2005.c | 170 int error; in tsc2005_cmd() local 175 error = spi_sync(ts->spi, &msg); in tsc2005_cmd() 176 if (error) { in tsc2005_cmd() 178 __func__, cmd, error); in tsc2005_cmd() 179 return error; in tsc2005_cmd() 194 int error; in tsc2005_write() local 199 error = spi_sync(ts->spi, &msg); in tsc2005_write() 200 if (error) { in tsc2005_write() 203 __func__, reg, value, error); in tsc2005_write() 204 return error; in tsc2005_write() [all …]
|
D | ili210x.c | 122 int error; in ili210x_work() local 124 error = ili210x_read_reg(client, REG_TOUCHDATA, in ili210x_work() 126 if (error) { in ili210x_work() 128 "Unable to get touchdata, err = %d\n", error); in ili210x_work() 193 int error; in ili210x_i2c_probe() local 208 error = ili210x_read_reg(client, REG_FIRMWARE_VERSION, in ili210x_i2c_probe() 210 if (error) { in ili210x_i2c_probe() 212 error); in ili210x_i2c_probe() 213 return error; in ili210x_i2c_probe() 217 error = ili210x_read_reg(client, REG_PANEL_INFO, &panel, sizeof(panel)); in ili210x_i2c_probe() [all …]
|
D | pixcir_i2c_ts.c | 290 int error; in pixcir_start() local 293 error = pixcir_set_int_mode(ts, PIXCIR_INT_LEVEL_TOUCH, 0); in pixcir_start() 294 if (error) { in pixcir_start() 295 dev_err(dev, "Failed to set interrupt mode: %d\n", error); in pixcir_start() 296 return error; in pixcir_start() 303 error = pixcir_int_enable(ts, true); in pixcir_start() 304 if (error) { in pixcir_start() 306 error); in pixcir_start() 307 return error; in pixcir_start() 315 int error; in pixcir_stop() local [all …]
|
/linux-4.1.27/drivers/media/dvb-frontends/ |
D | drxk_hard.c | 519 goto error; in power_up_device() 525 goto error; in power_up_device() 528 goto error; in power_up_device() 532 goto error; in power_up_device() 536 error: in power_up_device() 791 goto error; in drxx_open() 795 goto error; in drxx_open() 798 goto error; in drxx_open() 801 goto error; in drxx_open() 804 goto error; in drxx_open() [all …]
|
D | tda10071.c | 170 goto error; in tda10071_cmd_execute() 176 goto error; in tda10071_cmd_execute() 181 goto error; in tda10071_cmd_execute() 187 goto error; in tda10071_cmd_execute() 196 goto error; in tda10071_cmd_execute() 200 error: in tda10071_cmd_execute() 215 goto error; in tda10071_set_tone() 232 goto error; in tda10071_set_tone() 243 goto error; in tda10071_set_tone() 246 error: in tda10071_set_tone() [all …]
|
D | cxd2820r_t.c | 87 goto error; in cxd2820r_set_frontend_t() 98 goto error; in cxd2820r_set_frontend_t() 113 goto error; in cxd2820r_set_frontend_t() 117 goto error; in cxd2820r_set_frontend_t() 121 goto error; in cxd2820r_set_frontend_t() 125 goto error; in cxd2820r_set_frontend_t() 129 goto error; in cxd2820r_set_frontend_t() 133 goto error; in cxd2820r_set_frontend_t() 136 error: in cxd2820r_set_frontend_t() 150 goto error; in cxd2820r_get_frontend_t() [all …]
|
D | si2165.c | 369 goto error; in si2165_upload_firmware_block() 372 goto error; in si2165_upload_firmware_block() 379 goto error; in si2165_upload_firmware_block() 396 error: in si2165_upload_firmware_block() 431 goto error; in si2165_upload_firmware() 444 goto error; in si2165_upload_firmware() 452 goto error; in si2165_upload_firmware() 459 goto error; in si2165_upload_firmware() 470 goto error; in si2165_upload_firmware() 474 goto error; in si2165_upload_firmware() [all …]
|
D | cxd2820r_c.c | 63 goto error; in cxd2820r_set_frontend_c() 74 goto error; in cxd2820r_set_frontend_c() 88 goto error; in cxd2820r_set_frontend_c() 92 goto error; in cxd2820r_set_frontend_c() 96 goto error; in cxd2820r_set_frontend_c() 99 error: in cxd2820r_set_frontend_c() 113 goto error; in cxd2820r_get_frontend_c() 119 goto error; in cxd2820r_get_frontend_c() 149 error: in cxd2820r_get_frontend_c() 164 goto error; in cxd2820r_read_ber_c() [all …]
|
D | ec100.c | 105 goto error; in ec100_set_frontend() 108 goto error; in ec100_set_frontend() 111 goto error; in ec100_set_frontend() 138 goto error; in ec100_set_frontend() 141 goto error; in ec100_set_frontend() 145 goto error; in ec100_set_frontend() 148 goto error; in ec100_set_frontend() 152 goto error; in ec100_set_frontend() 156 goto error; in ec100_set_frontend() 159 goto error; in ec100_set_frontend() [all …]
|
D | cxd2820r_t2.c | 105 goto error; in cxd2820r_set_frontend_t2() 115 goto error; in cxd2820r_set_frontend_t2() 133 goto error; in cxd2820r_set_frontend_t2() 139 goto error; in cxd2820r_set_frontend_t2() 142 goto error; in cxd2820r_set_frontend_t2() 147 goto error; in cxd2820r_set_frontend_t2() 151 goto error; in cxd2820r_set_frontend_t2() 155 goto error; in cxd2820r_set_frontend_t2() 159 goto error; in cxd2820r_set_frontend_t2() 163 goto error; in cxd2820r_set_frontend_t2() [all …]
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
D | i915_gpu_error.c | 245 struct drm_i915_error_state *error, in i915_ring_error_state() argument 248 struct drm_i915_error_ring *ring = &error->ring[ring_idx]; in i915_ring_error_state() 335 struct drm_i915_error_state *error = error_priv->error; in i915_error_state_to_str() local 340 if (!error) { in i915_error_state_to_str() 345 err_printf(m, "%s\n", error->error_msg); in i915_error_state_to_str() 346 err_printf(m, "Time: %ld s %ld us\n", error->time.tv_sec, in i915_error_state_to_str() 347 error->time.tv_usec); in i915_error_state_to_str() 350 for (i = 0; i < ARRAY_SIZE(error->ring); i++) { in i915_error_state_to_str() 351 if (error->ring[i].hangcheck_score > max_hangcheck_score) in i915_error_state_to_str() 352 max_hangcheck_score = error->ring[i].hangcheck_score; in i915_error_state_to_str() [all …]
|
/linux-4.1.27/fs/xfs/ |
D | xfs_rtalloc.c | 74 int error; /* error value */ in xfs_rtany_summary() local 85 error = xfs_rtget_summary(mp, tp, log, bbno, rbpp, rsb, &sum); in xfs_rtany_summary() 86 if (error) { in xfs_rtany_summary() 87 return error; in xfs_rtany_summary() 117 int error; /* error return value */ in xfs_rtcopy_summary() local 127 error = xfs_rtget_summary(omp, tp, log, bbno, &bp, in xfs_rtcopy_summary() 129 if (error) in xfs_rtcopy_summary() 130 return error; in xfs_rtcopy_summary() 133 error = xfs_rtmodify_summary(omp, tp, log, bbno, -sum, in xfs_rtcopy_summary() 135 if (error) in xfs_rtcopy_summary() [all …]
|
D | xfs_attr_inactive.c | 60 int error; in xfs_attr3_leaf_freextent() local 73 error = xfs_bmapi_read(dp, (xfs_fileoff_t)tblkno, tblkcnt, in xfs_attr3_leaf_freextent() 75 if (error) { in xfs_attr3_leaf_freextent() 76 return error; in xfs_attr3_leaf_freextent() 100 error = xfs_trans_roll(trans, dp); in xfs_attr3_leaf_freextent() 101 if (error) in xfs_attr3_leaf_freextent() 102 return error; in xfs_attr3_leaf_freextent() 130 int error; in xfs_attr3_leaf_inactive() local 190 error = 0; in xfs_attr3_leaf_inactive() 195 if (error == 0) in xfs_attr3_leaf_inactive() [all …]
|
D | xfs_bmap_util.c | 76 int error; /* error return value */ in xfs_bmap_finish() local 98 error = xfs_trans_commit(*tp, 0); in xfs_bmap_finish() 105 if (error) in xfs_bmap_finish() 106 return error; in xfs_bmap_finish() 114 error = xfs_trans_reserve(ntp, &tres, 0, 0); in xfs_bmap_finish() 115 if (error) in xfs_bmap_finish() 116 return error; in xfs_bmap_finish() 120 if ((error = xfs_free_extent(ntp, free->xbfi_startblock, in xfs_bmap_finish() 133 (error == -EFSCORRUPTED) ? in xfs_bmap_finish() 136 return error; in xfs_bmap_finish() [all …]
|
D | xfs_iomap.c | 53 int eof, error; in xfs_iomap_eof_align_last_fsb() local 86 error = xfs_bmap_eof(ip, new_last_fsb, XFS_DATA_FORK, &eof); in xfs_iomap_eof_align_last_fsb() 87 if (error) in xfs_iomap_eof_align_last_fsb() 88 return error; in xfs_iomap_eof_align_last_fsb() 133 int error; in xfs_iomap_write_direct() local 135 error = xfs_qm_dqattach(ip, 0); in xfs_iomap_write_direct() 136 if (error) in xfs_iomap_write_direct() 137 return error; in xfs_iomap_write_direct() 145 error = xfs_iomap_eof_align_last_fsb(mp, ip, extsz, &last_fsb); in xfs_iomap_write_direct() 146 if (error) in xfs_iomap_write_direct() [all …]
|
D | xfs_ioctl.c | 73 int error; in xfs_find_handle() local 82 error = user_lpath((const char __user *)hreq->path, &path); in xfs_find_handle() 83 if (error) in xfs_find_handle() 84 return error; in xfs_find_handle() 93 error = -EINVAL; in xfs_find_handle() 97 error = -EBADF; in xfs_find_handle() 122 error = -EFAULT; in xfs_find_handle() 127 error = 0; in xfs_find_handle() 134 return error; in xfs_find_handle() 198 int error; in xfs_open_by_handle() local [all …]
|
D | xfs_inode.c | 631 int error; in xfs_lookup() local 640 error = xfs_dir_lookup(NULL, dp, name, &inum, ci_name); in xfs_lookup() 643 if (error) in xfs_lookup() 646 error = xfs_iget(dp->i_mount, NULL, inum, 0, 0, ipp); in xfs_lookup() 647 if (error) in xfs_lookup() 657 return error; in xfs_lookup() 707 int error; in xfs_ialloc() local 714 error = xfs_dialloc(tp, pip ? pip->i_ino : 0, mode, okalloc, in xfs_ialloc() 716 if (error) in xfs_ialloc() 717 return error; in xfs_ialloc() [all …]
|
D | xfs_qm.c | 82 int error = 0; in xfs_qm_dquot_walk() local 98 error = execute(batch[i], data); in xfs_qm_dquot_walk() 99 if (error == -EAGAIN) { in xfs_qm_dquot_walk() 103 if (error && last_error != -EFSCORRUPTED) in xfs_qm_dquot_walk() 104 last_error = error; in xfs_qm_dquot_walk() 153 int error; in xfs_qm_dqpurge() local 159 error = xfs_qm_dqflush(dqp, &bp); in xfs_qm_dqpurge() 160 if (error) { in xfs_qm_dqpurge() 164 error = xfs_bwrite(bp); in xfs_qm_dqpurge() 268 int error; in xfs_qm_dqattach_one() local [all …]
|
D | xfs_itable.c | 61 int error = 0; /* error value */ in xfs_bulkstat_one_int() local 72 error = xfs_iget(mp, NULL, ino, in xfs_bulkstat_one_int() 75 if (error) in xfs_bulkstat_one_int() 132 error = formatter(buffer, ubsize, ubused, buf); in xfs_bulkstat_one_int() 133 if (!error) in xfs_bulkstat_one_int() 138 return error; in xfs_bulkstat_one_int() 217 int error = 0; in xfs_bulkstat_grab_ichunk() local 220 error = xfs_inobt_lookup(cur, agino, XFS_LOOKUP_LE, &stat); in xfs_bulkstat_grab_ichunk() 221 if (error) in xfs_bulkstat_grab_ichunk() 222 return error; in xfs_bulkstat_grab_ichunk() [all …]
|
D | xfs_symlink.c | 59 int error = 0; in xfs_readlink_bmap() local 64 error = xfs_bmapi_read(ip, 0, fsblocks, mval, &nmaps, 0); in xfs_readlink_bmap() 65 if (error) in xfs_readlink_bmap() 77 error = bp->b_error; in xfs_readlink_bmap() 78 if (error) { in xfs_readlink_bmap() 83 if (error == -EFSBADCRC) in xfs_readlink_bmap() 84 error = -EFSCORRUPTED; in xfs_readlink_bmap() 95 error = -EFSCORRUPTED; in xfs_readlink_bmap() 117 error = 0; in xfs_readlink_bmap() 120 return error; in xfs_readlink_bmap() [all …]
|
D | xfs_pnfs.c | 38 int error; in xfs_break_layouts() local 42 while ((error = break_layout(inode, false) == -EWOULDBLOCK)) { in xfs_break_layouts() 46 error = break_layout(inode, true); in xfs_break_layouts() 53 return error; in xfs_break_layouts() 128 int error = 0; in xfs_fs_map_blocks() local 150 error = -EINVAL; in xfs_fs_map_blocks() 160 error = filemap_write_and_wait(inode->i_mapping); in xfs_fs_map_blocks() 161 if (error) in xfs_fs_map_blocks() 163 error = invalidate_inode_pages2(inode->i_mapping); in xfs_fs_map_blocks() 164 if (WARN_ON_ONCE(error)) in xfs_fs_map_blocks() [all …]
|
D | xfs_iops.c | 70 int error = 0; in xfs_initxattrs() local 73 error = xfs_attr_set(ip, xattr->name, xattr->value, in xfs_initxattrs() 75 if (error < 0) in xfs_initxattrs() 78 return error; in xfs_initxattrs() 139 int error; in xfs_generic_create() local 153 error = posix_acl_create(dir, &mode, &default_acl, &acl); in xfs_generic_create() 154 if (error) in xfs_generic_create() 155 return error; in xfs_generic_create() 159 error = xfs_create(XFS_I(dir), &name, mode, rdev, &ip); in xfs_generic_create() 161 error = xfs_create_tmpfile(XFS_I(dir), dentry, mode, &ip); in xfs_generic_create() [all …]
|
D | xfs_log_recover.c | 174 int error; in xlog_bread_noalign() local 194 error = xfs_buf_submit_wait(bp); in xlog_bread_noalign() 195 if (error && !XFS_FORCED_SHUTDOWN(log->l_mp)) in xlog_bread_noalign() 197 return error; in xlog_bread_noalign() 208 int error; in xlog_bread() local 210 error = xlog_bread_noalign(log, blk_no, nbblks, bp); in xlog_bread() 211 if (error) in xlog_bread() 212 return error; in xlog_bread() 232 int error, error2; in xlog_bread_offset() local 234 error = xfs_buf_associate_memory(bp, offset, BBTOB(nbblks)); in xlog_bread_offset() [all …]
|
D | xfs_discard.c | 48 int error; in xfs_trim_extents() local 53 error = xfs_alloc_read_agf(mp, NULL, agno, 0, &agbp); in xfs_trim_extents() 54 if (error || !agbp) in xfs_trim_extents() 69 error = xfs_alloc_lookup_ge(cur, 0, in xfs_trim_extents() 71 if (error) in xfs_trim_extents() 84 error = xfs_alloc_get_rec(cur, &fbno, &flen, &i); in xfs_trim_extents() 85 if (error) in xfs_trim_extents() 126 error = blkdev_issue_discard(bdev, dbno, dlen, GFP_NOFS, 0); in xfs_trim_extents() 127 if (error) in xfs_trim_extents() 132 error = xfs_btree_decrement(cur, 0, &i); in xfs_trim_extents() [all …]
|
D | xfs_qm_syscalls.c | 57 int error; in xfs_qm_scall_quotaoff() local 68 error = 0; in xfs_qm_scall_quotaoff() 131 error = xfs_qm_log_quotaoff(mp, &qoffstart, flags); in xfs_qm_scall_quotaoff() 132 if (error) in xfs_qm_scall_quotaoff() 184 error = xfs_qm_log_quotaoff_end(mp, qoffstart, flags); in xfs_qm_scall_quotaoff() 185 if (error) { in xfs_qm_scall_quotaoff() 218 return error; in xfs_qm_scall_quotaoff() 228 int error; in xfs_qm_scall_trunc_qfile() local 233 error = xfs_iget(mp, NULL, ino, 0, 0, &ip); in xfs_qm_scall_trunc_qfile() 234 if (error) in xfs_qm_scall_trunc_qfile() [all …]
|
D | xfs_fsops.c | 156 int error, saved_error = 0; in xfs_growfs_data_private() local 170 if ((error = xfs_sb_validate_fsb_count(&mp->m_sb, nb))) in xfs_growfs_data_private() 171 return error; in xfs_growfs_data_private() 173 error = xfs_buf_read_uncached(mp->m_ddev_targp, in xfs_growfs_data_private() 176 if (error) in xfs_growfs_data_private() 177 return error; in xfs_growfs_data_private() 194 error = xfs_initialize_perag(mp, nagcount, &nagimax); in xfs_growfs_data_private() 195 if (error) in xfs_growfs_data_private() 196 return error; in xfs_growfs_data_private() 201 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_growdata, in xfs_growfs_data_private() [all …]
|
D | xfs_acl.c | 128 int error; in xfs_get_acl() local 153 error = xfs_attr_get(ip, ea_name, (unsigned char *)xfs_acl, in xfs_get_acl() 155 if (error) { in xfs_get_acl() 161 if (error == -ENOATTR) in xfs_get_acl() 182 int error; in __xfs_set_acl() local 211 error = xfs_attr_set(ip, ea_name, (unsigned char *)xfs_acl, in __xfs_set_acl() 219 error = xfs_attr_remove(ip, ea_name, ATTR_ROOT); in __xfs_set_acl() 224 if (error == -ENOATTR) in __xfs_set_acl() 225 error = 0; in __xfs_set_acl() 228 if (!error) in __xfs_set_acl() [all …]
|
D | xfs_file.c | 136 int error; in xfs_update_prealloc_flags() local 139 error = xfs_trans_reserve(tp, &M_RES(ip->i_mount)->tr_writeid, 0, 0); in xfs_update_prealloc_flags() 140 if (error) { in xfs_update_prealloc_flags() 142 return error; in xfs_update_prealloc_flags() 205 int error = 0; in xfs_file_fsync() local 211 error = filemap_write_and_wait_range(inode->i_mapping, start, end); in xfs_file_fsync() 212 if (error) in xfs_file_fsync() 213 return error; in xfs_file_fsync() 247 error = _xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, &log_flushed); in xfs_file_fsync() 262 return error; in xfs_file_fsync() [all …]
|
D | xfs_mount.c | 181 int error = -ENOMEM; in xfs_initialize_perag() local 216 error = -EEXIST; in xfs_initialize_perag() 250 return error; in xfs_initialize_perag() 266 int error; in xfs_readsb() local 289 error = xfs_buf_read_uncached(mp->m_ddev_targp, XFS_SB_DADDR, in xfs_readsb() 291 if (error) { in xfs_readsb() 293 xfs_warn(mp, "SB validate failed with error %d.", error); in xfs_readsb() 295 if (error == -EFSBADCRC) in xfs_readsb() 296 error = -EFSCORRUPTED; in xfs_readsb() 297 return error; in xfs_readsb() [all …]
|
D | xfs_trans.c | 175 int error = 0; in xfs_trans_reserve() local 187 error = xfs_mod_fdblocks(tp->t_mountp, -((int64_t)blocks), rsvd); in xfs_trans_reserve() 188 if (error != 0) { in xfs_trans_reserve() 216 error = xfs_log_regrant(tp->t_mountp, tp->t_ticket); in xfs_trans_reserve() 218 error = xfs_log_reserve(tp->t_mountp, in xfs_trans_reserve() 225 if (error) in xfs_trans_reserve() 238 error = xfs_mod_frextents(tp->t_mountp, -((int64_t)rtextents)); in xfs_trans_reserve() 239 if (error) { in xfs_trans_reserve() 240 error = -ENOSPC; in xfs_trans_reserve() 275 return error; in xfs_trans_reserve() [all …]
|
D | xfs_ioctl32.c | 66 int error; in xfs_compat_ioc_fsgeometry_v1() local 68 error = xfs_fs_geometry(mp, &fsgeo, 3); in xfs_compat_ioc_fsgeometry_v1() 69 if (error) in xfs_compat_ioc_fsgeometry_v1() 70 return error; in xfs_compat_ioc_fsgeometry_v1() 252 int error; in xfs_compat_ioc_bulkstat() local 284 error = xfs_inumbers(mp, &inlast, &count, in xfs_compat_ioc_bulkstat() 289 error = xfs_bulkstat_one_compat(mp, inlast, bulkreq.ubuffer, in xfs_compat_ioc_bulkstat() 292 error = xfs_bulkstat(mp, &inlast, &count, in xfs_compat_ioc_bulkstat() 296 error = -EINVAL; in xfs_compat_ioc_bulkstat() 297 if (error) in xfs_compat_ioc_bulkstat() [all …]
|
D | xfs_attr_list.c | 77 int error; in xfs_attr_shortform_list() local 105 error = context->put_listent(context, in xfs_attr_shortform_list() 119 if (error) in xfs_attr_shortform_list() 120 return error; in xfs_attr_shortform_list() 199 error = context->put_listent(context, in xfs_attr_shortform_list() 205 if (error) { in xfs_attr_shortform_list() 207 return error; in xfs_attr_shortform_list() 227 int error, i; in xfs_attr_node_list() local 244 error = xfs_da3_node_read(NULL, dp, cursor->blkno, -1, in xfs_attr_node_list() 246 if ((error != 0) && (error != -EFSCORRUPTED)) in xfs_attr_node_list() [all …]
|
D | xfs_super.c | 662 int error = 0; in xfs_blkdev_get() local 667 error = PTR_ERR(*bdevp); in xfs_blkdev_get() 668 xfs_warn(mp, "Invalid device [%s], error=%d", name, error); in xfs_blkdev_get() 671 return error; in xfs_blkdev_get() 722 int error; in xfs_open_devices() local 728 error = xfs_blkdev_get(mp, mp->m_logname, &logdev); in xfs_open_devices() 729 if (error) in xfs_open_devices() 734 error = xfs_blkdev_get(mp, mp->m_rtname, &rtdev); in xfs_open_devices() 735 if (error) in xfs_open_devices() 741 error = -EINVAL; in xfs_open_devices() [all …]
|
D | xfs_dquot.c | 309 int nmaps, error, committed; in xfs_qm_dqalloc() local 333 error = xfs_bmapi_write(tp, quotip, offset_fsb, in xfs_qm_dqalloc() 337 if (error) in xfs_qm_dqalloc() 355 error = -ENOMEM; in xfs_qm_dqalloc() 382 if ((error = xfs_bmap_finish(tpp, &flist, &committed))) { in xfs_qm_dqalloc() 401 return error; in xfs_qm_dqalloc() 412 int error; in xfs_qm_dqrepair() local 421 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, dqp->q_blkno, in xfs_qm_dqrepair() 425 if (error) { in xfs_qm_dqrepair() 427 return error; in xfs_qm_dqrepair() [all …]
|
/linux-4.1.27/drivers/input/joystick/ |
D | as5011.c | 93 int error; in as5011_i2c_write() local 95 error = i2c_transfer(client->adapter, &msg, 1); in as5011_i2c_write() 96 return error < 0 ? error : 0; in as5011_i2c_write() 117 int error; in as5011_i2c_read() local 119 error = i2c_transfer(client->adapter, msg_set, 2); in as5011_i2c_read() 120 if (error < 0) in as5011_i2c_read() 121 return error; in as5011_i2c_read() 141 int error; in as5011_axis_interrupt() local 144 error = as5011_i2c_read(as5011->i2c_client, AS5011_X_RES_INT, &x); in as5011_axis_interrupt() 145 if (error < 0) in as5011_axis_interrupt() [all …]
|
/linux-4.1.27/drivers/staging/fsl-mc/bus/ |
D | mc-allocator.c | 40 int error = -EINVAL; in fsl_mc_resource_pool_add_device() local 68 error = -ENOMEM; in fsl_mc_resource_pool_add_device() 83 error = 0; in fsl_mc_resource_pool_add_device() 88 return error; in fsl_mc_resource_pool_add_device() 107 int error = -EINVAL; in fsl_mc_resource_pool_remove_device() local 137 error = -EBUSY; in fsl_mc_resource_pool_remove_device() 151 error = 0; in fsl_mc_resource_pool_remove_device() 156 return error; in fsl_mc_resource_pool_remove_device() 188 int error = -EINVAL; in fsl_mc_resource_allocate() local 196 goto error; in fsl_mc_resource_allocate() [all …]
|
D | mc-bus.c | 114 int error; in fsl_mc_driver_probe() local 123 error = mc_drv->probe(mc_dev); in fsl_mc_driver_probe() 124 if (error < 0) { in fsl_mc_driver_probe() 126 error); in fsl_mc_driver_probe() 127 return error; in fsl_mc_driver_probe() 137 int error; in fsl_mc_driver_remove() local 142 error = mc_drv->remove(mc_dev); in fsl_mc_driver_remove() 143 if (error < 0) { in fsl_mc_driver_remove() 146 error); in fsl_mc_driver_remove() 147 return error; in fsl_mc_driver_remove() [all …]
|
D | dprc-driver.c | 128 int error; in check_plugged_state_change() local 136 error = device_attach(&mc_dev->dev); in check_plugged_state_change() 137 if (error < 0) { in check_plugged_state_change() 140 error); in check_plugged_state_change() 165 int error; in dprc_add_new_devices() local 184 error = fsl_mc_device_add(obj_desc, NULL, &mc_bus_dev->dev, in dprc_add_new_devices() 186 if (error < 0) in dprc_add_new_devices() 261 int error; in dprc_scan_objects() local 264 error = dprc_get_obj_count(mc_bus_dev->mc_io, in dprc_scan_objects() 267 if (error < 0) { in dprc_scan_objects() [all …]
|
/linux-4.1.27/fs/nfs/ |
D | nfs4trace.h | 12 #define show_nfsv4_errors(error) \ argument 13 __print_symbolic(error, \ 198 int error 201 TP_ARGS(clp, error), 207 __field(int, error) 211 __entry->error = error; 219 __entry->error, 220 show_nfsv4_errors(__entry->error), 228 int error \ 230 TP_ARGS(clp, error)) [all …]
|
D | nfs3xdr.c | 783 int error; in decode_wcc_data() local 785 error = decode_pre_op_attr(xdr, fattr); in decode_wcc_data() 786 if (unlikely(error)) in decode_wcc_data() 788 error = decode_post_op_attr(xdr, fattr); in decode_wcc_data() 790 return error; in decode_wcc_data() 1336 int error; in nfs3_xdr_enc_setacl3args() local 1347 error = nfsacl_encode(xdr->buf, base, args->inode, in nfs3_xdr_enc_setacl3args() 1351 BUG_ON(error < 0); in nfs3_xdr_enc_setacl3args() 1352 error = nfsacl_encode(xdr->buf, base + error, args->inode, in nfs3_xdr_enc_setacl3args() 1356 BUG_ON(error < 0); in nfs3_xdr_enc_setacl3args() [all …]
|
D | nfs4client.c | 187 goto error; in nfs4_alloc_client() 191 goto error; in nfs4_alloc_client() 204 error: in nfs4_alloc_client() 246 int error; in nfs4_init_callback() local 251 error = xprt_setup_backchannel(xprt, NFS41_BC_MIN_CALLBACKS); in nfs4_init_callback() 252 if (error < 0) in nfs4_init_callback() 253 return error; in nfs4_init_callback() 256 error = nfs_callback_up(clp->cl_mvops->minor_version, xprt); in nfs4_init_callback() 257 if (error < 0) { in nfs4_init_callback() 259 __func__, error); in nfs4_init_callback() [all …]
|
D | nfstrace.h | 80 int error 83 TP_ARGS(inode, error), 86 __field(int, error) 99 __entry->error = error; 114 __entry->error, 139 int error \ 141 TP_ARGS(inode, error)) 216 int error 219 TP_ARGS(dir, dentry, flags, error), 222 __field(int, error) [all …]
|
/linux-4.1.27/drivers/ssb/ |
D | sdio.c | 112 int error = 0; in ssb_sdio_writeb() local 114 sdio_writeb(bus->host_sdio, val, addr, &error); in ssb_sdio_writeb() 115 if (unlikely(error)) { in ssb_sdio_writeb() 117 addr, val, error); in ssb_sdio_writeb() 120 return error; in ssb_sdio_writeb() 127 int error = 0; 129 val = sdio_readb(bus->host_sdio, addr, &error); 130 if (unlikely(error)) { 132 addr, val, error); 142 int error; in ssb_sdio_set_sbaddr_window() local [all …]
|
/linux-4.1.27/drivers/pnp/ |
D | driver.c | 82 int error; in pnp_device_probe() local 89 error = pnp_device_attach(pnp_dev); in pnp_device_probe() 90 if (error < 0) in pnp_device_probe() 91 return error; in pnp_device_probe() 95 error = pnp_activate_dev(pnp_dev); in pnp_device_probe() 96 if (error < 0) in pnp_device_probe() 97 return error; in pnp_device_probe() 101 error = pnp_disable_dev(pnp_dev); in pnp_device_probe() 102 if (error < 0) in pnp_device_probe() 103 return error; in pnp_device_probe() [all …]
|
/linux-4.1.27/drivers/input/keyboard/ |
D | tca8418_keypad.c | 126 int error; in tca8418_write_byte() local 128 error = i2c_smbus_write_byte_data(keypad_data->client, reg, val); in tca8418_write_byte() 129 if (error < 0) { in tca8418_write_byte() 132 __func__, reg, val, error); in tca8418_write_byte() 133 return error; in tca8418_write_byte() 145 int error; in tca8418_read_byte() local 147 error = i2c_smbus_read_byte_data(keypad_data->client, reg); in tca8418_read_byte() 148 if (error < 0) { in tca8418_read_byte() 151 __func__, reg, error); in tca8418_read_byte() 152 return error; in tca8418_read_byte() [all …]
|
D | tca6416-keypad.c | 59 int error; in tca6416_write_reg() local 61 error = chip->io_size > 8 ? in tca6416_write_reg() 64 if (error < 0) { in tca6416_write_reg() 67 __func__, reg, val, error); in tca6416_write_reg() 68 return error; in tca6416_write_reg() 95 int error, i, pin_index; in tca6416_keys_scan() local 97 error = tca6416_read_reg(chip, TCA6416_INPUT, ®_val); in tca6416_keys_scan() 98 if (error) in tca6416_keys_scan() 171 int error; in tca6416_setup_registers() local 173 error = tca6416_read_reg(chip, TCA6416_OUTPUT, &chip->reg_output); in tca6416_setup_registers() [all …]
|
D | nspire-keypad.c | 139 int error; in nspire_keypad_open() local 141 error = clk_prepare_enable(keypad->clk); in nspire_keypad_open() 142 if (error) in nspire_keypad_open() 143 return error; in nspire_keypad_open() 145 error = nspire_keypad_chip_init(keypad); in nspire_keypad_open() 146 if (error) { in nspire_keypad_open() 148 return error; in nspire_keypad_open() 168 int error; in nspire_keypad_probe() local 185 error = of_property_read_u32(of_node, "scan-interval", in nspire_keypad_probe() 187 if (error) { in nspire_keypad_probe() [all …]
|
D | st-keyscan.c | 64 int error; in keyscan_start() local 66 error = clk_enable(keypad->clk); in keyscan_start() 67 if (error) in keyscan_start() 68 return error; in keyscan_start() 107 int error; in keypad_matrix_key_parse_dt() local 109 error = matrix_keypad_parse_of_params(dev, &keypad_data->n_rows, in keypad_matrix_key_parse_dt() 111 if (error) { in keypad_matrix_key_parse_dt() 113 return error; in keypad_matrix_key_parse_dt() 130 int error; in keyscan_probe() local 156 error = keypad_matrix_key_parse_dt(keypad_data); in keyscan_probe() [all …]
|
D | gpio_keys.c | 217 ssize_t error; in gpio_keys_attr_store_helper() local 224 error = bitmap_parselist(buf, bits, n_events); in gpio_keys_attr_store_helper() 225 if (error) in gpio_keys_attr_store_helper() 237 error = -EINVAL; in gpio_keys_attr_store_helper() 260 return error; in gpio_keys_attr_store_helper() 297 ssize_t error; \ 299 error = gpio_keys_attr_store_helper(ddata, buf, type); \ 300 if (error) \ 301 return error; \ 447 int error; in gpio_keys_setup_key() local [all …]
|
D | bcm-keypad.c | 145 int error; in bcm_kp_start() local 148 error = clk_prepare_enable(kp->clk); in bcm_kp_start() 149 if (error) in bcm_kp_start() 150 return error; in bcm_kp_start() 208 int error; in bcm_kp_matrix_key_parse_dt() local 216 error = matrix_keypad_parse_of_params(dev, &kp->n_rows, &kp->n_cols); in bcm_kp_matrix_key_parse_dt() 217 if (error) { in bcm_kp_matrix_key_parse_dt() 219 return error; in bcm_kp_matrix_key_parse_dt() 322 int error; in bcm_kp_probe() local 357 error = bcm_kp_matrix_key_parse_dt(kp); in bcm_kp_probe() [all …]
|
D | cap11xx.c | 206 int i, error, irq, gain = 0; in cap11xx_i2c_probe() local 232 error = regmap_read(priv->regmap, CAP11XX_REG_PRODUCT_ID, &val); in cap11xx_i2c_probe() 233 if (error) in cap11xx_i2c_probe() 234 return error; in cap11xx_i2c_probe() 242 error = regmap_read(priv->regmap, CAP11XX_REG_MANUFACTURER_ID, &val); in cap11xx_i2c_probe() 243 if (error) in cap11xx_i2c_probe() 244 return error; in cap11xx_i2c_probe() 252 error = regmap_read(priv->regmap, CAP11XX_REG_REVISION, &rev); in cap11xx_i2c_probe() 253 if (error < 0) in cap11xx_i2c_probe() 254 return error; in cap11xx_i2c_probe() [all …]
|
D | sun4i-lradc-keys.c | 125 int error; in sun4i_lradc_open() local 127 error = regulator_enable(lradc->vref_supply); in sun4i_lradc_open() 128 if (error) in sun4i_lradc_open() 129 return error; in sun4i_lradc_open() 163 int error; in sun4i_lradc_load_dt_keymap() local 186 error = of_property_read_u32(pp, "channel", &channel); in sun4i_lradc_load_dt_keymap() 187 if (error || channel != 0) { in sun4i_lradc_load_dt_keymap() 192 error = of_property_read_u32(pp, "voltage", &map->voltage); in sun4i_lradc_load_dt_keymap() 193 if (error) { in sun4i_lradc_load_dt_keymap() 198 error = of_property_read_u32(pp, "linux,code", &map->keycode); in sun4i_lradc_load_dt_keymap() [all …]
|
D | spear-keyboard.c | 105 int error; in spear_kbd_open() local 110 error = clk_enable(kbd->clk); in spear_kbd_open() 111 if (error) in spear_kbd_open() 112 return error; in spear_kbd_open() 152 int error; in spear_kbd_parse_dt() local 166 error = of_property_read_u32(np, "st,mode", &val); in spear_kbd_parse_dt() 167 if (error) { in spear_kbd_parse_dt() 169 return error; in spear_kbd_parse_dt() 191 int error; in spear_kbd_probe() local 215 error = spear_kbd_parse_dt(pdev, kbd); in spear_kbd_probe() [all …]
|
D | pxa27x_keypad.c | 127 int error; in pxa27x_keypad_matrix_key_parse_dt() local 129 error = matrix_keypad_parse_of_params(dev, &rows, &cols); in pxa27x_keypad_matrix_key_parse_dt() 130 if (error) in pxa27x_keypad_matrix_key_parse_dt() 131 return error; in pxa27x_keypad_matrix_key_parse_dt() 141 error = matrix_keypad_build_keymap(NULL, NULL, in pxa27x_keypad_matrix_key_parse_dt() 145 if (error) in pxa27x_keypad_matrix_key_parse_dt() 146 return error; in pxa27x_keypad_matrix_key_parse_dt() 161 int error; in pxa27x_keypad_direct_key_parse_dt() local 163 error = of_property_read_u32(np, "marvell,direct-key-count", in pxa27x_keypad_direct_key_parse_dt() 165 if (error) { in pxa27x_keypad_direct_key_parse_dt() [all …]
|
/linux-4.1.27/net/atm/ |
D | svc.c | 101 int error; in svc_bind() local 107 error = -EISCONN; in svc_bind() 111 error = -EINVAL; in svc_bind() 117 error = -EAFNOSUPPORT; in svc_bind() 124 error = -EBADFD; in svc_bind() 139 error = -EUNATCH; in svc_bind() 144 error = -sk->sk_err; in svc_bind() 147 return error; in svc_bind() 157 int error; in svc_connect() local 162 error = -EINVAL; in svc_connect() [all …]
|
D | resources.c | 180 int error = 0; in fetch_stats() local 186 error = copy_to_user(arg, &tmp, sizeof(tmp)); in fetch_stats() 187 if (zero && !error) { in fetch_stats() 192 return error ? -EFAULT : 0; in fetch_stats() 198 int error, len, number, size = 0; in atm_dev_ioctl() local 246 error = ((copy_to_user(buf, tmp_buf, size)) || in atm_dev_ioctl() 250 return error; in atm_dev_ioctl() 291 error = -EFAULT; in atm_dev_ioctl() 298 error = -EFAULT; in atm_dev_ioctl() 308 error = -EEXIST; in atm_dev_ioctl() [all …]
|
D | common.c | 390 int error; in __vcc_connect() local 398 error = -ENODEV; in __vcc_connect() 400 return error; in __vcc_connect() 404 (error = find_ci(vcc, &vpi, &vci))) { in __vcc_connect() 414 error = atm_init_aal0(vcc); in __vcc_connect() 418 error = atm_init_aal34(vcc); in __vcc_connect() 426 error = atm_init_aal5(vcc); in __vcc_connect() 430 error = -EPROTOTYPE; in __vcc_connect() 432 if (!error) in __vcc_connect() 433 error = adjust_tp(&vcc->qos.txtp, vcc->qos.aal); in __vcc_connect() [all …]
|
D | ioctl.c | 55 int error; in do_vcc_ioctl() local 64 error = -EINVAL; in do_vcc_ioctl() 67 error = put_user(sk->sk_sndbuf - sk_wmem_alloc_get(sk), in do_vcc_ioctl() 75 error = -EINVAL; in do_vcc_ioctl() 79 error = put_user(skb ? skb->len : 0, in do_vcc_ioctl() 86 error = compat_sock_get_timestamp(sk, argp); in do_vcc_ioctl() 89 error = sock_get_timestamp(sk, argp); in do_vcc_ioctl() 94 error = compat_sock_get_timestampns(sk, argp); in do_vcc_ioctl() 97 error = sock_get_timestampns(sk, argp); in do_vcc_ioctl() 102 error = 0; in do_vcc_ioctl() [all …]
|
/linux-4.1.27/Documentation/fault-injection/ |
D | notifier-error-inject.txt | 1 Notifier error injection 4 Notifier error injection provides the ability to inject artificial errors to 5 specified notifier chain callbacks. It is useful to test the error handling of 14 CPU notifier error injection module 16 This feature can be used to test the error handling of the CPU notifiers by 20 the error code to debugfs interface 21 /sys/kernel/debug/notifier-error-inject/cpu/actions/<notifier event>/error 30 Example1: Inject CPU offline error (-1 == -EPERM) 32 # cd /sys/kernel/debug/notifier-error-inject/cpu 33 # echo -1 > actions/CPU_DOWN_PREPARE/error [all …]
|
/linux-4.1.27/sound/isa/es1688/ |
D | es1688.c | 106 int i, error; in snd_es1688_legacy_create() local 130 error = snd_es1688_create(card, chip, port[n], mpu_port[n], in snd_es1688_legacy_create() 132 } while (error < 0 && ++i < ARRAY_SIZE(possible_ports)); in snd_es1688_legacy_create() 134 return error; in snd_es1688_legacy_create() 141 int error; in snd_es1688_probe() local 143 error = snd_es1688_pcm(card, chip, 0); in snd_es1688_probe() 144 if (error < 0) in snd_es1688_probe() 145 return error; in snd_es1688_probe() 147 error = snd_es1688_mixer(card, chip); in snd_es1688_probe() 148 if (error < 0) in snd_es1688_probe() [all …]
|
/linux-4.1.27/fs/ext3/ |
D | xattr.c | 163 int error; in ext3_xattr_check_block() local 168 error = ext3_xattr_check_names(BFIRST(bh), bh->b_data + bh->b_size); in ext3_xattr_check_block() 169 return error; in ext3_xattr_check_block() 217 int error; in ext3_xattr_block_get() local 222 error = -ENODATA; in ext3_xattr_block_get() 235 error = -EIO; in ext3_xattr_block_get() 240 error = ext3_xattr_find_entry(&entry, name_index, name, bh->b_size, 1); in ext3_xattr_block_get() 241 if (error == -EIO) in ext3_xattr_block_get() 243 if (error) in ext3_xattr_block_get() 247 error = -ERANGE; in ext3_xattr_block_get() [all …]
|
D | acl.c | 192 int error; in __ext3_set_acl() local 198 error = posix_acl_equiv_mode(acl, &inode->i_mode); in __ext3_set_acl() 199 if (error < 0) in __ext3_set_acl() 200 return error; in __ext3_set_acl() 204 if (error == 0) in __ext3_set_acl() 225 error = ext3_xattr_set_handle(handle, inode, name_index, "", in __ext3_set_acl() 230 if (!error) in __ext3_set_acl() 233 return error; in __ext3_set_acl() 240 int error, retries = 0; in ext3_set_acl() local 246 error = __ext3_set_acl(handle, inode, type, acl); in ext3_set_acl() [all …]
|
/linux-4.1.27/arch/sh/kernel/ |
D | traps_64.c | 78 #error "Sign extend check only works for NEFF==32" in address_is_sign_extended() 172 int error; in misaligned_load() local 176 error = generate_and_check_address(regs, opcode, in misaligned_load() 178 if (error < 0) in misaligned_load() 179 return error; in misaligned_load() 246 int error; in misaligned_store() local 250 error = generate_and_check_address(regs, opcode, in misaligned_store() 252 if (error < 0) in misaligned_store() 253 return error; in misaligned_store() 318 int error; in misaligned_fpu_load() local [all …]
|
/linux-4.1.27/drivers/media/usb/as102/ |
D | as10x_cmd_stream.c | 30 int error; in as10x_cmd_add_PID_filter() local 53 error = adap->ops->xfer_cmd(adap, (uint8_t *) pcmd, in as10x_cmd_add_PID_filter() 59 error = AS10X_CMD_ERROR; in as10x_cmd_add_PID_filter() 62 if (error < 0) in as10x_cmd_add_PID_filter() 66 error = as10x_rsp_parse(prsp, CONTROL_PROC_SETFILTER_RSP); in as10x_cmd_add_PID_filter() 68 if (error == 0) { in as10x_cmd_add_PID_filter() 74 return error; in as10x_cmd_add_PID_filter() 87 int error; in as10x_cmd_del_PID_filter() local 104 error = adap->ops->xfer_cmd(adap, (uint8_t *) pcmd, in as10x_cmd_del_PID_filter() 110 error = AS10X_CMD_ERROR; in as10x_cmd_del_PID_filter() [all …]
|
D | as10x_cmd.c | 29 int error = AS10X_CMD_ERROR; in as10x_cmd_turn_on() local 44 error = adap->ops->xfer_cmd(adap, (uint8_t *) pcmd, in as10x_cmd_turn_on() 52 if (error < 0) in as10x_cmd_turn_on() 56 error = as10x_rsp_parse(prsp, CONTROL_PROC_TURNON_RSP); in as10x_cmd_turn_on() 59 return error; in as10x_cmd_turn_on() 70 int error = AS10X_CMD_ERROR; in as10x_cmd_turn_off() local 85 error = adap->ops->xfer_cmd( in as10x_cmd_turn_off() 92 if (error < 0) in as10x_cmd_turn_off() 96 error = as10x_rsp_parse(prsp, CONTROL_PROC_TURNOFF_RSP); in as10x_cmd_turn_off() 99 return error; in as10x_cmd_turn_off() [all …]
|
D | as10x_cmd_cfg.c | 35 int error; in as10x_cmd_get_context() local 52 error = adap->ops->xfer_cmd(adap, in as10x_cmd_get_context() 60 error = AS10X_CMD_ERROR; in as10x_cmd_get_context() 63 if (error < 0) in as10x_cmd_get_context() 68 error = as10x_context_rsp_parse(prsp, CONTROL_PROC_CONTEXT_RSP); in as10x_cmd_get_context() 70 if (error == 0) { in as10x_cmd_get_context() 77 return error; in as10x_cmd_get_context() 91 int error; in as10x_cmd_set_context() local 110 error = adap->ops->xfer_cmd(adap, in as10x_cmd_set_context() 118 error = AS10X_CMD_ERROR; in as10x_cmd_set_context() [all …]
|
/linux-4.1.27/sound/isa/gus/ |
D | gusextreme.c | 105 int i, error; in snd_gusextreme_es1688_create() local 129 error = snd_es1688_create(card, chip, port[n], mpu_port[n], in snd_gusextreme_es1688_create() 131 } while (error < 0 && ++i < ARRAY_SIZE(possible_ports)); in snd_gusextreme_es1688_create() 133 return error; in snd_gusextreme_es1688_create() 214 int error; in snd_gusextreme_mixer() local 223 error = snd_ctl_rename_id(card, &id1, &id2); in snd_gusextreme_mixer() 224 if (error < 0) in snd_gusextreme_mixer() 225 return error; in snd_gusextreme_mixer() 230 error = snd_ctl_rename_id(card, &id1, &id2); in snd_gusextreme_mixer() 231 if (error < 0) in snd_gusextreme_mixer() [all …]
|
D | gusclassic.c | 89 int i, error; in snd_gusclassic_create() local 120 error = snd_gus_create(card, port[n], irq[n], dma1[n], dma2[n], in snd_gusclassic_create() 122 } while (error < 0 && ++i < ARRAY_SIZE(possible_ports)); in snd_gusclassic_create() 124 return error; in snd_gusclassic_create() 150 int error; in snd_gusclassic_probe() local 152 error = snd_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card); in snd_gusclassic_probe() 153 if (error < 0) in snd_gusclassic_probe() 154 return error; in snd_gusclassic_probe() 159 error = snd_gusclassic_create(card, dev, n, &gus); in snd_gusclassic_probe() 160 if (error < 0) in snd_gusclassic_probe() [all …]
|
/linux-4.1.27/fs/ext4/ |
D | xattr.c | 218 int error; in ext4_xattr_check_block() local 228 error = ext4_xattr_check_names(BFIRST(bh), bh->b_data + bh->b_size, in ext4_xattr_check_block() 230 if (!error) in ext4_xattr_check_block() 232 return error; in ext4_xattr_check_block() 280 int error; in ext4_xattr_block_get() local 286 error = -ENODATA; in ext4_xattr_block_get() 300 error = -EIO; in ext4_xattr_block_get() 305 error = ext4_xattr_find_entry(&entry, name_index, name, bh->b_size, 1); in ext4_xattr_block_get() 306 if (error == -EIO) in ext4_xattr_block_get() 308 if (error) in ext4_xattr_block_get() [all …]
|
D | acl.c | 193 int error; in __ext4_set_acl() local 199 error = posix_acl_equiv_mode(acl, &inode->i_mode); in __ext4_set_acl() 200 if (error < 0) in __ext4_set_acl() 201 return error; in __ext4_set_acl() 205 if (error == 0) in __ext4_set_acl() 226 error = ext4_xattr_set_handle(handle, inode, name_index, "", in __ext4_set_acl() 230 if (!error) in __ext4_set_acl() 233 return error; in __ext4_set_acl() 240 int error, retries = 0; in ext4_set_acl() local 248 error = __ext4_set_acl(handle, inode, type, acl); in ext4_set_acl() [all …]
|
/linux-4.1.27/drivers/base/power/ |
D | main.c | 205 int error, pm_message_t state, char *info) in initcall_debug_report() argument 215 error, (unsigned long long)nsecs >> 10); in initcall_debug_report() 352 int error) in pm_dev_err() argument 355 dev_name(dev), pm_verb(state.event), info, error); in pm_dev_err() 379 int error; in dpm_run_callback() local 388 error = cb(dev); in dpm_run_callback() 389 trace_device_pm_callback_end(dev, error); in dpm_run_callback() 390 suspend_report_result(cb, error); in dpm_run_callback() 392 initcall_debug_report(dev, calltime, error, state, info); in dpm_run_callback() 394 return error; in dpm_run_callback() [all …]
|
/linux-4.1.27/fs/coda/ |
D | upcall.c | 78 int insize, outsize, error; in venus_rootfid() local 83 error = coda_upcall(coda_vcp(sb), insize, &outsize, inp); in venus_rootfid() 84 if (!error) in venus_rootfid() 88 return error; in venus_rootfid() 96 int insize, outsize, error; in venus_getattr() local 102 error = coda_upcall(coda_vcp(sb), insize, &outsize, inp); in venus_getattr() 103 if (!error) in venus_getattr() 107 return error; in venus_getattr() 115 int insize, outsize, error; in venus_setattr() local 123 error = coda_upcall(coda_vcp(sb), insize, &outsize, inp); in venus_setattr() [all …]
|
D | dir.c | 60 int error = venus_lookup(sb, coda_i2f(dir), name, length, in coda_lookup() local 62 inode = !error ? coda_cnode_make(&fid, sb) : ERR_PTR(error); in coda_lookup() 77 int error; in coda_permission() local 93 error = venus_access(inode->i_sb, coda_i2f(inode), mask); in coda_permission() 95 if (!error) in coda_permission() 98 return error; in coda_permission() 136 int error; in coda_create() local 146 error = venus_create(dir->i_sb, coda_i2f(dir), name, length, in coda_create() 148 if (error) in coda_create() 153 error = PTR_ERR(inode); in coda_create() [all …]
|
D | inode.c | 157 int error; in coda_fill_super() local 176 error = -EINVAL; in coda_fill_super() 182 error = -EBUSY; in coda_fill_super() 186 error = bdi_setup_and_register(&vc->bdi, "coda"); in coda_fill_super() 187 if (error) in coda_fill_super() 203 error = venus_rootfid(sb, &fid); in coda_fill_super() 204 if ( error ) { in coda_fill_super() 206 __func__, error); in coda_fill_super() 207 goto error; in coda_fill_super() 214 error = PTR_ERR(root); in coda_fill_super() [all …]
|
/linux-4.1.27/drivers/ps3/ |
D | ps3stor_lib.c | 41 int error = ps3_open_hv_device(sbd); in ps3stor_open_hv_device() local 43 if (error) in ps3stor_open_hv_device() 44 return error; in ps3stor_open_hv_device() 57 int error; in ps3stor_close_hv_device() local 66 error = ps3_close_hv_device(sbd); in ps3stor_close_hv_device() 68 if (error) in ps3stor_close_hv_device() 69 return error; in ps3stor_close_hv_device() 89 int res, error; in ps3stor_probe_access() local 99 error = -EPERM; in ps3stor_probe_access() 120 error = 0; in ps3stor_probe_access() [all …]
|
/linux-4.1.27/drivers/pci/ |
D | pci-driver.c | 327 int error, node; in pci_call_probe() local 356 error = work_on_cpu(cpu, local_pci_probe, &ddi); in pci_call_probe() 358 error = local_pci_probe(&ddi); in pci_call_probe() 361 error = local_pci_probe(&ddi); in pci_call_probe() 363 return error; in pci_call_probe() 377 int error = 0; in __pci_device_probe() local 380 error = -ENODEV; in __pci_device_probe() 384 error = pci_call_probe(drv, pci_dev, id); in __pci_device_probe() 385 if (error >= 0) in __pci_device_probe() 386 error = 0; in __pci_device_probe() [all …]
|
/linux-4.1.27/drivers/leds/ |
D | leds-da9052.c | 50 int error; in da9052_set_led_brightness() local 54 error = da9052_reg_write(led->da9052, led_reg[led->led_index], val); in da9052_set_led_brightness() 55 if (error < 0) in da9052_set_led_brightness() 57 error); in da9052_set_led_brightness() 58 return error; in da9052_set_led_brightness() 80 int error; in da9052_configure_leds() local 84 error = da9052_reg_update(da9052, DA9052_GPIO_14_15_REG, in da9052_configure_leds() 88 if (error < 0) { in da9052_configure_leds() 90 error); in da9052_configure_leds() 91 return error; in da9052_configure_leds() [all …]
|
/linux-4.1.27/drivers/gpu/drm/bridge/ |
D | ps8622.c | 49 #error "T2.min + T1.max must be less than T2.max + T1.min" 108 goto error; in ps8622_send_config() 113 goto error; in ps8622_send_config() 118 goto error; in ps8622_send_config() 123 goto error; in ps8622_send_config() 131 goto error; in ps8622_send_config() 136 goto error; in ps8622_send_config() 141 goto error; in ps8622_send_config() 146 goto error; in ps8622_send_config() 151 goto error; in ps8622_send_config() [all …]
|
/linux-4.1.27/sound/isa/ |
D | azt2320.c | 166 int error; in snd_card_azt2320_enable_wss() local 168 if ((error = snd_card_azt2320_command(port, 0x09))) in snd_card_azt2320_enable_wss() 169 return error; in snd_card_azt2320_enable_wss() 170 if ((error = snd_card_azt2320_command(port, 0x00))) in snd_card_azt2320_enable_wss() 171 return error; in snd_card_azt2320_enable_wss() 181 int error; in snd_card_azt2320_probe() local 187 error = snd_card_new(&pcard->card->dev, in snd_card_azt2320_probe() 190 if (error < 0) in snd_card_azt2320_probe() 191 return error; in snd_card_azt2320_probe() 194 if ((error = snd_card_azt2320_pnp(dev, acard, pcard, pid))) { in snd_card_azt2320_probe() [all …]
|
D | adlib.c | 54 int error; in snd_adlib_probe() local 56 error = snd_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card); in snd_adlib_probe() 57 if (error < 0) { in snd_adlib_probe() 59 return error; in snd_adlib_probe() 65 error = -EBUSY; in snd_adlib_probe() 74 error = snd_opl3_create(card, port[n], port[n] + 2, OPL3_HW_AUTO, 1, &opl3); in snd_adlib_probe() 75 if (error < 0) { in snd_adlib_probe() 80 error = snd_opl3_hwdep_new(opl3, 0, 0, NULL); in snd_adlib_probe() 81 if (error < 0) { in snd_adlib_probe() 86 error = snd_card_register(card); in snd_adlib_probe() [all …]
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | rtas-rtc.c | 18 int error; in rtas_get_boot_time() local 24 error = rtas_call(rtas_token("get-time-of-day"), 0, 8, ret); in rtas_get_boot_time() 26 wait_time = rtas_busy_delay_time(error); in rtas_get_boot_time() 33 if (error != 0) { in rtas_get_boot_time() 36 error); in rtas_get_boot_time() 50 int error; in rtas_get_rtc_time() local 56 error = rtas_call(rtas_token("get-time-of-day"), 0, 8, ret); in rtas_get_rtc_time() 58 wait_time = rtas_busy_delay_time(error); in rtas_get_rtc_time() 71 if (error != 0) { in rtas_get_rtc_time() 74 error); in rtas_get_rtc_time() [all …]
|
/linux-4.1.27/arch/blackfin/mach-common/ |
D | arch_checks.c | 16 # error "VCO selected is more than maximum value. Please change the VCO multipler" 20 # error "Sclk value selected is more than maximum. Please select a proper value for SCLK multiplier" 24 # error "Sclk value selected is less than minimum. Please select a proper value for SCLK multiplier" 28 # error "ANOMALY 05000273, please make sure CCLK is at least 2x SCLK" 32 # error "Please select sclk less than cclk" 38 # error "The kernel load address must be after the fixed code section" 42 # error "The kernel load address must be 4 byte aligned" 47 # error "The kernel load address is too high; keep it below 10meg for safety" 51 # error the MPU will not function safely while Anomaly 05000263 applies 55 # error You are using a part with anomaly 05000448, this issue causes random memory read/write fail… [all …]
|
/linux-4.1.27/arch/mips/include/asm/ |
D | ftrace.h | 22 #define safe_load(load, src, dst, error) \ argument 38 : [tmp_dst] "=&r" (dst), [tmp_err] "=r" (error)\ 44 #define safe_store(store, src, dst, error) \ argument 60 : [tmp_err] "=r" (error) \ 66 #define safe_load_code(dst, src, error) \ argument 67 safe_load(STR(lw), src, dst, error) 68 #define safe_store_code(src, dst, error) \ argument 69 safe_store(STR(sw), src, dst, error) 71 #define safe_load_stack(dst, src, error) \ argument 72 safe_load(STR(PTR_L), src, dst, error) [all …]
|
D | war.h | 82 #error Check setting of R4600_V1_INDEX_ICACHEOP_WAR for your platform 112 #error Check setting of R4600_V1_HIT_CACHEOP_WAR for your platform 128 #error Check setting of R4600_V2_HIT_CACHEOP_WAR for your platform 141 #error Check setting of R5432_CP0_INTERRUPT_WAR for your platform 155 #error Check setting of BCM1250_M3_WAR for your platform 162 #error Check setting of SIBYTE_1956_WAR for your platform 178 #error Check setting of MIPS4K_ICACHE_REFILL_WAR for your platform 197 #error Check setting of MIPS_CACHE_SYNC_WAR for your platform 208 #error Check setting of TX49XX_ICACHE_INDEX_INV_WAR for your platform 218 #error Check setting of ICACHE_REFILLS_WORKAROUND_WAR for your platform [all …]
|
/linux-4.1.27/security/apparmor/ |
D | crypto.c | 39 int error = -ENOMEM; in aa_calc_profile_hash() local 52 error = crypto_shash_init(&desc.shash); in aa_calc_profile_hash() 53 if (error) in aa_calc_profile_hash() 55 error = crypto_shash_update(&desc.shash, (u8 *) &le32_version, 4); in aa_calc_profile_hash() 56 if (error) in aa_calc_profile_hash() 58 error = crypto_shash_update(&desc.shash, (u8 *) start, len); in aa_calc_profile_hash() 59 if (error) in aa_calc_profile_hash() 61 error = crypto_shash_final(&desc.shash, profile->hash); in aa_calc_profile_hash() 62 if (error) in aa_calc_profile_hash() 71 return error; in aa_calc_profile_hash() [all …]
|
D | domain.c | 64 int error = 0; in may_change_ptraced_domain() local 76 error = aa_may_ptrace(tracerp, to_profile, PTRACE_MODE_ATTACH); in may_change_ptraced_domain() 82 return error; in may_change_ptraced_domain() 350 int error = cap_bprm_set_creds(bprm); in apparmor_bprm_set_creds() local 351 if (error) in apparmor_bprm_set_creds() 352 return error; in apparmor_bprm_set_creds() 369 error = aa_path_name(&bprm->file->f_path, profile->path_flags, &buffer, in apparmor_bprm_set_creds() 371 if (error) { in apparmor_bprm_set_creds() 374 error = 0; in apparmor_bprm_set_creds() 438 error = -ENOENT; in apparmor_bprm_set_creds() [all …]
|
D | path.c | 60 int error = 0; in d_namespace_path() local 102 error = PTR_ERR(res); in d_namespace_path() 119 error = -ENOENT; in d_namespace_path() 141 error = -EACCES; in d_namespace_path() 148 return error; in d_namespace_path() 165 int error = d_namespace_path(path, buffer, size - adjust, name, flags); in get_name_to_buffer() local 167 if (!error && (flags & PATH_IS_DIR) && (*name)[1] != '\0') in get_name_to_buffer() 174 if (info && error) { in get_name_to_buffer() 175 if (error == -ENOENT) in get_name_to_buffer() 177 else if (error == -EACCES) in get_name_to_buffer() [all …]
|
D | lsm.c | 99 int error = cap_ptrace_access_check(child, mode); in apparmor_ptrace_access_check() local 100 if (error) in apparmor_ptrace_access_check() 101 return error; in apparmor_ptrace_access_check() 108 int error = cap_ptrace_traceme(parent); in apparmor_ptrace_traceme() local 109 if (error) in apparmor_ptrace_traceme() 110 return error; in apparmor_ptrace_traceme() 144 int error = cap_capable(cred, ns, cap, audit); in apparmor_capable() local 145 if (!error) { in apparmor_capable() 148 error = aa_capable(profile, cap, audit); in apparmor_capable() 150 return error; in apparmor_capable() [all …]
|
D | capability.c | 65 static int audit_caps(struct aa_profile *profile, int cap, int error) in audit_caps() argument 75 sa.aad->error = error; in audit_caps() 77 if (likely(!error)) { in audit_caps() 90 return error; in audit_caps() 98 return complain_error(error); in audit_caps() 99 return error; in audit_caps() 134 int error = profile_capable(profile, cap); in aa_capable() local 138 return complain_error(error); in aa_capable() 139 return error; in aa_capable() 142 return audit_caps(profile, cap, error); in aa_capable()
|
/linux-4.1.27/fs/sysfs/ |
D | group.c | 40 int error = 0, i; in create_files() local 43 for (i = 0, attr = grp->attrs; *attr && !error; i++, attr++) { in create_files() 64 error = sysfs_add_file_mode_ns(parent, *attr, false, in create_files() 66 if (unlikely(error)) in create_files() 69 if (error) { in create_files() 80 error = sysfs_add_file_mode_ns(parent, in create_files() 83 if (error) in create_files() 86 if (error) in create_files() 90 return error; in create_files() 98 int error; in internal_create_group() local [all …]
|
/linux-4.1.27/drivers/rtc/ |
D | rtc-bq32k.c | 90 int error; in bq32k_rtc_read_time() local 92 error = bq32k_read(dev, ®s, 0, sizeof(regs)); in bq32k_rtc_read_time() 93 if (error) in bq32k_rtc_read_time() 94 return error; in bq32k_rtc_read_time() 136 int error; in trickle_charger_of_init() local 171 error = bq32k_write(dev, ®, BQ32K_CFG2, 1); in trickle_charger_of_init() 172 if (error) in trickle_charger_of_init() 173 return error; in trickle_charger_of_init() 176 error = bq32k_write(dev, ®, BQ32K_TCH2, 1); in trickle_charger_of_init() 177 if (error) in trickle_charger_of_init() [all …]
|
/linux-4.1.27/drivers/mtd/maps/ |
D | vmu-flash.c | 117 int partition, error = 0, x, wait; in maple_vmu_read_block() local 136 error = -ENOMEM; in maple_vmu_read_block() 155 error = -EAGAIN; in maple_vmu_read_block() 163 error = -ENOMEM; in maple_vmu_read_block() 171 error = maple_add_packet(mdev, MAPLE_FUNC_MEMCARD, in maple_vmu_read_block() 182 if (error || atomic_read(&mdev->busy) == 2) { in maple_vmu_read_block() 184 error = -ENXIO; in maple_vmu_read_block() 192 error = -EIO; in maple_vmu_read_block() 219 return error; in maple_vmu_read_block() 224 return error; in maple_vmu_read_block() [all …]
|
/linux-4.1.27/drivers/hid/ |
D | hid-axff.c | 83 int error; in axff_init() local 110 error = input_ff_create_memless(dev, axff, axff_play); in axff_init() 111 if (error) in axff_init() 123 return error; in axff_init() 134 int error; in ax_probe() local 138 error = hid_parse(hdev); in ax_probe() 139 if (error) { in ax_probe() 141 return error; in ax_probe() 144 error = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in ax_probe() 145 if (error) { in ax_probe() [all …]
|
/linux-4.1.27/drivers/crypto/caam/ |
D | error.c | 121 const char *error) in report_ccb_status() argument 160 status, error, idx_str, idx, in report_ccb_status() 166 const char *error) in report_jump_status() argument 169 status, error, __func__); in report_jump_status() 173 const char *error) in report_deco_status() argument 198 status, error, idx_str, idx, err_str, err_err_code); in report_deco_status() 202 const char *error) in report_jr_status() argument 205 status, error, __func__); in report_jr_status() 209 const char *error) in report_cond_code_status() argument 212 status, error, __func__); in report_cond_code_status() [all …]
|
/linux-4.1.27/drivers/platform/x86/ |
D | intel-rst.c | 51 int error; in irst_store_wakeup_events() local 55 error = kstrtoul(buf, 0, &value); in irst_store_wakeup_events() 57 if (error) in irst_store_wakeup_events() 58 return error; in irst_store_wakeup_events() 97 int error; in irst_store_wakeup_time() local 101 error = kstrtoul(buf, 0, &value); in irst_store_wakeup_time() 103 if (error) in irst_store_wakeup_time() 104 return error; in irst_store_wakeup_time() 122 int error; in irst_add() local 124 error = device_create_file(&acpi->dev, &irst_timeout_attr); in irst_add() [all …]
|
/linux-4.1.27/sound/isa/opti9xx/ |
D | miro.c | 290 int change, value, error; in snd_miro_put_capture() local 294 error = aci_setvalue(miro->aci, ACI_SET_SOLOMODE, value); in snd_miro_put_capture() 295 if (error < 0) { in snd_miro_put_capture() 297 error); in snd_miro_put_capture() 298 return error; in snd_miro_put_capture() 352 int error, value, change; in snd_miro_put_preamp() local 356 error = aci_setvalue(miro->aci, ACI_SET_PREAMP, value); in snd_miro_put_preamp() 357 if (error < 0) { in snd_miro_put_preamp() 359 error); in snd_miro_put_preamp() 360 return error; in snd_miro_put_preamp() [all …]
|
D | opti92x-ad1848.c | 819 int error; local 839 error = snd_opti9xx_configure(chip, port, irq, dma1, xdma2, 841 if (error) 842 return error; 844 error = snd_wss_create(card, chip->wss_base + 4, -1, irq, dma1, xdma2, 851 if (error < 0) 852 return error; 854 error = snd_wss_pcm(codec, 0); 855 if (error < 0) 856 return error; [all …]
|
/linux-4.1.27/lib/ |
D | decompress_unlz4.c | 38 void (*error) (char *x)) in unlz4() 56 error("NULL output pointer and no flush function provided"); in unlz4() 61 error("Could not allocate output buffer"); in unlz4() 67 error("Both input pointer and fill function provided,"); in unlz4() 72 error("NULL input pointer and missing fill function"); in unlz4() 77 error("Could not allocate input buffer"); in unlz4() 89 error("data corrupted"); in unlz4() 101 error("invalid header"); in unlz4() 115 error("data corrupted"); in unlz4() 140 error("chunk length is longer than allocated"); in unlz4() [all …]
|
D | decompress_inflate.c | 42 void(*error)(char *x)) { in __gunzip() 56 error("Out of memory while allocating output buffer"); in __gunzip() 67 error("Out of memory while allocating input buffer"); in __gunzip() 73 error("Out of memory while allocating z_stream"); in __gunzip() 80 error("Out of memory while allocating workspace"); in __gunzip() 95 error("Not a gzip file"); in __gunzip() 113 error("header error"); in __gunzip() 136 error("read error"); in __gunzip() 149 error("write error"); in __gunzip() 161 error("uncompression error"); in __gunzip() [all …]
|
D | decompress_unlzo.c | 116 void (*error) (char *x)) in unlzo() 128 error("NULL output pointer and no flush function provided"); in unlzo() 133 error("Could not allocate output buffer"); in unlzo() 139 error("Both input pointer and fill function provided, don't know what to do"); in unlzo() 144 error("NULL input pointer and missing fill function"); in unlzo() 149 error("Could not allocate input buffer"); in unlzo() 170 error("invalid header"); in unlzo() 193 error("file corrupted"); in unlzo() 208 error("dest len longer than block size"); in unlzo() 219 error("file corrupted"); in unlzo() [all …]
|
D | kobject.c | 53 int error = 0; in populate_dir() local 58 error = sysfs_create_file(kobj, attr); in populate_dir() 59 if (error) in populate_dir() 63 return error; in populate_dir() 69 int error; in create_dir() local 71 error = sysfs_create_dir_ns(kobj, kobject_namespace(kobj)); in create_dir() 72 if (error) in create_dir() 73 return error; in create_dir() 75 error = populate_dir(kobj); in create_dir() 76 if (error) { in create_dir() [all …]
|
/linux-4.1.27/drivers/scsi/aic7xxx/ |
D | aic7770.c | 127 int error; in aic7770_config() local 133 error = entry->setup(ahc); in aic7770_config() 135 if (error != 0) in aic7770_config() 136 return (error); in aic7770_config() 138 error = aic7770_map_registers(ahc, io); in aic7770_config() 139 if (error != 0) in aic7770_config() 140 return (error); in aic7770_config() 151 error = ahc_softc_init(ahc); in aic7770_config() 152 if (error != 0) in aic7770_config() 153 return (error); in aic7770_config() [all …]
|
/linux-4.1.27/drivers/base/ |
D | isa.c | 116 int error; in isa_register_driver() local 122 error = driver_register(&isa_driver->driver); in isa_register_driver() 123 if (error) in isa_register_driver() 124 return error; in isa_register_driver() 131 error = -ENOMEM; in isa_register_driver() 147 error = device_register(&isa_dev->dev); in isa_register_driver() 148 if (error) { in isa_register_driver() 160 if (!error && !isa_driver->devices) in isa_register_driver() 161 error = -ENODEV; in isa_register_driver() 163 if (error) in isa_register_driver() [all …]
|
D | class.c | 92 int error; in class_create_file_ns() local 95 error = sysfs_create_file_ns(&cls->p->subsys.kobj, in class_create_file_ns() 98 error = -EINVAL; in class_create_file_ns() 99 return error; in class_create_file_ns() 125 int error = 0; in add_class_attrs() local 129 error = class_create_file(cls, &cls->class_attrs[i]); in add_class_attrs() 130 if (error) in add_class_attrs() 131 goto error; in add_class_attrs() 135 return error; in add_class_attrs() 136 error: in add_class_attrs() [all …]
|
/linux-4.1.27/drivers/media/i2c/ |
D | tvp7002.c | 459 int error; in tvp7002_read() local 462 error = i2c_smbus_read_byte_data(c, addr); in tvp7002_read() 464 if (error >= 0) { in tvp7002_read() 465 *dst = (u8)error; in tvp7002_read() 471 v4l2_err(sd, "TVP7002 read error %d\n", error); in tvp7002_read() 472 return error; in tvp7002_read() 505 int error; in tvp7002_write() local 510 error = i2c_smbus_write_byte_data(c, addr, value); in tvp7002_write() 512 if (error >= 0) in tvp7002_write() 518 v4l2_err(sd, "TVP7002 write error %d\n", error); in tvp7002_write() [all …]
|
/linux-4.1.27/drivers/thermal/ |
D | rockchip_thermal.c | 451 int error; in rockchip_thermal_register_sensor() local 461 error = PTR_ERR(sensor->tzd); in rockchip_thermal_register_sensor() 463 id, error); in rockchip_thermal_register_sensor() 464 return error; in rockchip_thermal_register_sensor() 488 int error; in rockchip_thermal_probe() local 518 error = PTR_ERR(thermal->reset); in rockchip_thermal_probe() 519 dev_err(&pdev->dev, "failed to get tsadc reset: %d\n", error); in rockchip_thermal_probe() 520 return error; in rockchip_thermal_probe() 525 error = PTR_ERR(thermal->clk); in rockchip_thermal_probe() 526 dev_err(&pdev->dev, "failed to get tsadc clock: %d\n", error); in rockchip_thermal_probe() [all …]
|
/linux-4.1.27/arch/cris/arch-v32/drivers/ |
D | i2c.c | 393 int error, cntr = 3; in i2c_write() local 401 error = 0; in i2c_write() 412 error = 1; in i2c_write() 423 error |= 4; in i2c_write() 430 } while (error && cntr--); in i2c_write() 436 return -error; in i2c_write() 451 int error, cntr = 3; in i2c_read() local 457 error = 0; in i2c_read() 471 error = 1; in i2c_read() 491 } while (error && cntr--); in i2c_read() [all …]
|
/linux-4.1.27/security/keys/ |
D | keyctl.c | 74 goto error; in SYSCALL_DEFINE5() 79 goto error; in SYSCALL_DEFINE5() 86 goto error; in SYSCALL_DEFINE5() 147 error: in SYSCALL_DEFINE5() 179 goto error; in SYSCALL_DEFINE4() 185 goto error; in SYSCALL_DEFINE4() 244 error: in SYSCALL_DEFINE4() 265 goto error; in keyctl_get_keyring_ID() 270 error: in keyctl_get_keyring_ID() 295 goto error; in keyctl_join_session_keyring() [all …]
|
/linux-4.1.27/mm/ |
D | shmem.c | 296 int error; in shmem_add_to_page_cache() local 307 error = radix_tree_insert(&mapping->page_tree, index, page); in shmem_add_to_page_cache() 309 error = shmem_radix_tree_replace(mapping, index, expected, in shmem_add_to_page_cache() 311 if (!error) { in shmem_add_to_page_cache() 321 return error; in shmem_add_to_page_cache() 330 int error; in shmem_delete_from_page_cache() local 333 error = shmem_radix_tree_replace(mapping, page->index, page, radswap); in shmem_delete_from_page_cache() 340 BUG_ON(error); in shmem_delete_from_page_cache() 549 int error; in shmem_setattr() local 551 error = inode_change_ok(inode, attr); in shmem_setattr() [all …]
|
D | madvise.c | 50 int error = 0; in madvise_behavior() local 69 error = -EINVAL; in madvise_behavior() 79 error = -EINVAL; in madvise_behavior() 86 error = ksm_madvise(vma, start, end, behavior, &new_flags); in madvise_behavior() 87 if (error) in madvise_behavior() 92 error = hugepage_madvise(vma, &new_flags, behavior); in madvise_behavior() 93 if (error) in madvise_behavior() 114 error = split_vma(mm, vma, start, 1); in madvise_behavior() 115 if (error) in madvise_behavior() 120 error = split_vma(mm, vma, end, 0); in madvise_behavior() [all …]
|
/linux-4.1.27/drivers/acpi/ |
D | sleep.c | 362 int error = acpi_sleep_prepare(acpi_target_sleep_state); in __acpi_pm_prepare() local 363 if (error) in __acpi_pm_prepare() 366 return error; in __acpi_pm_prepare() 375 int error = __acpi_pm_prepare(); in acpi_pm_prepare() local 376 if (!error) in acpi_pm_prepare() 377 error = acpi_pm_pre_suspend(); in acpi_pm_prepare() 379 return error; in acpi_pm_prepare() 480 int error; in acpi_suspend_begin() local 482 error = (nvs_nosave || nvs_nosave_s3) ? 0 : suspend_nvs_alloc(); in acpi_suspend_begin() 483 if (error) in acpi_suspend_begin() [all …]
|
/linux-4.1.27/drivers/memstick/core/ |
D | ms_block.c | 242 static int msb_exit_state_machine(struct msb_data *msb, int error) in msb_exit_state_machine() argument 247 msb->exit_error = error; in msb_exit_state_machine() 251 if (error) in msb_exit_state_machine() 275 mrq->need_card_int && !mrq->error) { in msb_read_int_reg() 347 if (mrq->error) { in h_msb_read_page() 349 return msb_exit_state_machine(msb, mrq->error); in h_msb_read_page() 483 if (mrq->error) in h_msb_write_block() 484 return msb_exit_state_machine(msb, mrq->error); in h_msb_write_block() 594 if (mrq->error) { in h_msb_send_command() 596 return msb_exit_state_machine(msb, mrq->error); in h_msb_send_command() [all …]
|
/linux-4.1.27/tools/testing/selftests/memory-hotplug/ |
D | mem-on-off-test.sh | 116 error=-12 123 error=$OPTARG 138 if ! [ "$error" -ge -4095 -a "$error" -lt 0 ]; then 181 NOTIFIER_ERR_INJECT_DIR=$DEBUGFS/notifier-error-inject/memory 187 /sbin/modprobe -q -r memory-notifier-error-inject 188 /sbin/modprobe -q memory-notifier-error-inject priority=$priority 196 echo $msg memory-notifier-error-inject module is not available >&2 206 echo 0 > $NOTIFIER_ERR_INJECT_DIR/actions/MEM_GOING_OFFLINE/error 216 echo $error > $NOTIFIER_ERR_INJECT_DIR/actions/MEM_GOING_ONLINE/error 224 echo 0 > $NOTIFIER_ERR_INJECT_DIR/actions/MEM_GOING_ONLINE/error [all …]
|
/linux-4.1.27/tools/testing/selftests/cpu-hotplug/ |
D | cpu-on-off-test.sh | 130 error=-12 141 error=$OPTARG 158 if ! [ "$error" -ge -4095 -a "$error" -lt 0 ]; then 214 NOTIFIER_ERR_INJECT_DIR=$DEBUGFS/notifier-error-inject/cpu 220 /sbin/modprobe -q -r cpu-notifier-error-inject 221 /sbin/modprobe -q cpu-notifier-error-inject priority=$priority 229 echo $msg cpu-notifier-error-inject module is not available >&2 239 echo 0 > $NOTIFIER_ERR_INJECT_DIR/actions/CPU_DOWN_PREPARE/error 247 echo $error > $NOTIFIER_ERR_INJECT_DIR/actions/CPU_UP_PREPARE/error 255 echo 0 > $NOTIFIER_ERR_INJECT_DIR/actions/CPU_UP_PREPARE/error [all …]
|
/linux-4.1.27/drivers/net/wireless/ath/ar5523/ |
D | ar5523.c | 201 int error; in ar5523_submit_rx_cmd() local 208 error = usb_submit_urb(ar->rx_cmd_urb, GFP_ATOMIC); in ar5523_submit_rx_cmd() 209 if (error) { in ar5523_submit_rx_cmd() 210 if (error != -ENODEV) in ar5523_submit_rx_cmd() 212 error); in ar5523_submit_rx_cmd() 213 return error; in ar5523_submit_rx_cmd() 245 int xferlen, error; in ar5523_cmd() local 270 error = usb_submit_urb(cmd->urb_tx, GFP_KERNEL); in ar5523_cmd() 271 if (error) { in ar5523_cmd() 273 code, error); in ar5523_cmd() [all …]
|
/linux-4.1.27/drivers/bus/ |
D | omap_l3_smx.c | 46 static inline enum omap3_l3_code omap3_l3_decode_error_code(u64 error) in omap3_l3_decode_error_code() argument 48 return (error & 0x0f000000) >> L3_ERROR_LOG_CODE; in omap3_l3_decode_error_code() 56 static inline unsigned omap3_l3_decode_cmd(u64 error) in omap3_l3_decode_cmd() argument 58 return (error & 0x07) >> L3_ERROR_LOG_CMD; in omap3_l3_decode_cmd() 61 static inline enum omap3_l3_initiator_id omap3_l3_decode_initid(u64 error) in omap3_l3_decode_initid() argument 63 return (error & 0xff00) >> L3_ERROR_LOG_INITID; in omap3_l3_decode_initid() 66 static inline unsigned omap3_l3_decode_req_info(u64 error) in omap3_l3_decode_req_info() argument 68 return (error >> 32) & 0xffff; in omap3_l3_decode_req_info() 155 u64 error, int error_addr) in omap3_l3_block_irq() argument 157 u8 code = omap3_l3_decode_error_code(error); in omap3_l3_block_irq() [all …]
|
/linux-4.1.27/sound/isa/ad1816a/ |
D | ad1816a.c | 141 int error; in snd_card_ad1816a_probe() local 146 error = snd_card_new(&pcard->card->dev, in snd_card_ad1816a_probe() 149 if (error < 0) in snd_card_ad1816a_probe() 150 return error; in snd_card_ad1816a_probe() 153 if ((error = snd_card_ad1816a_pnp(dev, pcard, pid))) { in snd_card_ad1816a_probe() 155 return error; in snd_card_ad1816a_probe() 158 if ((error = snd_ad1816a_create(card, port[dev], in snd_card_ad1816a_probe() 164 return error; in snd_card_ad1816a_probe() 174 if ((error = snd_ad1816a_pcm(chip, 0)) < 0) { in snd_card_ad1816a_probe() 176 return error; in snd_card_ad1816a_probe() [all …]
|
/linux-4.1.27/arch/mips/txx9/generic/ |
D | 7segled.c | 93 int error, i; in tx_7segled_init_sysfs() local 96 error = subsys_system_register(&tx_7segled_subsys, NULL); in tx_7segled_init_sysfs() 97 if (error) in tx_7segled_init_sysfs() 98 return error; in tx_7segled_init_sysfs() 99 error = device_create_file(tx_7segled_subsys.dev_root, &dev_attr_map_seg7); in tx_7segled_init_sysfs() 100 if (error) in tx_7segled_init_sysfs() 101 return error; in tx_7segled_init_sysfs() 106 error = -ENODEV; in tx_7segled_init_sysfs() 112 error = device_register(dev); in tx_7segled_init_sysfs() 113 if (error) { in tx_7segled_init_sysfs() [all …]
|
/linux-4.1.27/kernel/ |
D | sys.c | 151 static int set_one_prio(struct task_struct *p, int niceval, int error) in set_one_prio() argument 156 error = -EPERM; in set_one_prio() 160 error = -EACCES; in set_one_prio() 165 error = no_nice; in set_one_prio() 168 if (error == -ESRCH) in set_one_prio() 169 error = 0; in set_one_prio() 172 return error; in set_one_prio() 180 int error = -EINVAL; in SYSCALL_DEFINE3() local 188 error = -ESRCH; in SYSCALL_DEFINE3() 203 error = set_one_prio(p, niceval, error); in SYSCALL_DEFINE3() [all …]
|
/linux-4.1.27/drivers/memstick/host/ |
D | r592.c | 255 static void r592_stop_dma(struct r592_device *dev, int error) in r592_stop_dma() argument 266 dev->dma_error = error; in r592_stop_dma() 460 int len, error; in r592_execute_tpc() local 475 error = -ENOSYS; in r592_execute_tpc() 481 error = -ENODEV; in r592_execute_tpc() 495 error = r592_test_fifo_empty(dev); in r592_execute_tpc() 496 if (error) in r592_execute_tpc() 501 error = r592_transfer_fifo_dma(dev); in r592_execute_tpc() 502 if (error == -EINVAL) in r592_execute_tpc() 503 error = r592_transfer_fifo_pio(dev); in r592_execute_tpc() [all …]
|
/linux-4.1.27/drivers/input/serio/ |
D | i8042.c | 264 int i, error; in __i8042_command() local 269 error = i8042_wait_write(); in __i8042_command() 270 if (error) in __i8042_command() 271 return error; in __i8042_command() 277 error = i8042_wait_write(); in __i8042_command() 278 if (error) in __i8042_command() 279 return error; in __i8042_command() 285 error = i8042_wait_read(); in __i8042_command() 286 if (error) { in __i8042_command() 288 return error; in __i8042_command() [all …]
|
/linux-4.1.27/arch/alpha/kernel/ |
D | osf_sys.c | 103 int error; member 116 buf->error = -EINVAL; /* only used if we fail */ in osf_filldir() 121 buf->error = -EOVERFLOW; in osf_filldir() 141 buf->error = -EFAULT; in osf_filldir() 149 int error; in SYSCALL_DEFINE4() local 161 error = iterate_dir(arg.file, &buf.ctx); in SYSCALL_DEFINE4() 162 if (error >= 0) in SYSCALL_DEFINE4() 163 error = buf.error; in SYSCALL_DEFINE4() 165 error = count - buf.count; in SYSCALL_DEFINE4() 168 return error; in SYSCALL_DEFINE4() [all …]
|
/linux-4.1.27/fs/reiserfs/ |
D | xattr_security.c | 61 int error; in reiserfs_security_init() local 69 error = security_old_inode_init_security(inode, dir, qstr, &sec->name, in reiserfs_security_init() 71 if (error) { in reiserfs_security_init() 72 if (error == -EOPNOTSUPP) in reiserfs_security_init() 73 error = 0; in reiserfs_security_init() 78 return error; in reiserfs_security_init() 95 int error; in reiserfs_security_write() local 99 error = reiserfs_xattr_set_handle(th, inode, sec->name, sec->value, in reiserfs_security_write() 101 if (error == -ENODATA || error == -EOPNOTSUPP) in reiserfs_security_write() 102 error = 0; in reiserfs_security_write() [all …]
|
/linux-4.1.27/sound/isa/cs423x/ |
D | cs4231.c | 95 int error; in snd_cs4231_probe() local 97 error = snd_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card); in snd_cs4231_probe() 98 if (error < 0) in snd_cs4231_probe() 99 return error; in snd_cs4231_probe() 101 error = snd_wss_create(card, port[n], -1, irq[n], dma1[n], dma2[n], in snd_cs4231_probe() 103 if (error < 0) in snd_cs4231_probe() 108 error = snd_wss_pcm(chip, 0); in snd_cs4231_probe() 109 if (error < 0) in snd_cs4231_probe() 120 error = snd_wss_mixer(chip); in snd_cs4231_probe() 121 if (error < 0) in snd_cs4231_probe() [all …]
|
/linux-4.1.27/drivers/i2c/busses/ |
D | i2c-nforce2-s4985.c | 50 int error; in nforce2_access_virt0() local 58 error = nforce2_smbus->algo->smbus_xfer(adap, addr, flags, read_write, in nforce2_access_virt0() 62 return error; in nforce2_access_virt0() 77 int error; in nforce2_access_channel() local 88 error = nforce2_smbus->algo->smbus_xfer(adap, 0x18, 0, in nforce2_access_channel() 92 if (error) in nforce2_access_channel() 96 error = nforce2_smbus->algo->smbus_xfer(adap, addr, flags, read_write, in nforce2_access_channel() 101 return error; in nforce2_access_channel() 146 int i, error; in nforce2_s4985_init() local 154 error = i2c_smbus_xfer(nforce2_smbus, 0x18, 0, I2C_SMBUS_WRITE, 0x03, in nforce2_s4985_init() [all …]
|
D | i2c-amd756-s4882.c | 52 int error; in amd756_access_virt0() local 61 error = amd756_smbus.algo->smbus_xfer(adap, addr, flags, read_write, in amd756_access_virt0() 66 return error; in amd756_access_virt0() 81 int error; in amd756_access_channel() local 93 error = amd756_smbus.algo->smbus_xfer(adap, 0x18, 0, in amd756_access_channel() 97 if (error) in amd756_access_channel() 101 error = amd756_smbus.algo->smbus_xfer(adap, addr, flags, read_write, in amd756_access_channel() 106 return error; in amd756_access_channel() 151 int i, error; in amd756_s4882_init() local 159 error = i2c_smbus_xfer(&amd756_smbus, 0x18, 0, I2C_SMBUS_WRITE, 0x03, in amd756_s4882_init() [all …]
|
/linux-4.1.27/security/tomoyo/ |
D | file.c | 385 int error; in tomoyo_update_path_acl() local 387 error = -EINVAL; in tomoyo_update_path_acl() 389 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_update_path_acl() 393 return error; in tomoyo_update_path_acl() 458 int error; in tomoyo_update_mkdev_acl() local 463 error = -EINVAL; in tomoyo_update_mkdev_acl() 465 error = tomoyo_update_domain(&e.head, sizeof(e), param, in tomoyo_update_mkdev_acl() 472 return error; in tomoyo_update_mkdev_acl() 534 int error; in tomoyo_update_path2_acl() local 537 error = -EINVAL; in tomoyo_update_path2_acl() [all …]
|
/linux-4.1.27/drivers/input/gameport/ |
D | gameport.c | 220 int error; in gameport_bind_driver() local 228 error = device_bind_driver(&gameport->dev); in gameport_bind_driver() 229 if (error) { in gameport_bind_driver() 233 drv->description, error); in gameport_bind_driver() 236 return error; in gameport_bind_driver() 244 int error; in gameport_find_driver() local 246 error = device_attach(&gameport->dev); in gameport_find_driver() 247 if (error < 0) in gameport_find_driver() 250 gameport->phys, gameport->name, error); in gameport_find_driver() 474 int error; in drvctl_store() local [all …]
|