/linux-4.4.14/drivers/input/touchscreen/ |
D | rohm_bu21023.c | 340 int error, error2; in rohm_ts_manual_calibration() local 355 error = i2c_smbus_write_byte_data(client, INT_MASK, in rohm_ts_manual_calibration() 358 if (error) in rohm_ts_manual_calibration() 361 error = i2c_smbus_write_byte_data(client, TEST1, in rohm_ts_manual_calibration() 363 if (error) in rohm_ts_manual_calibration() 372 error = rohm_i2c_burst_read(client, PRM1_X_H, buf, sizeof(buf)); in rohm_ts_manual_calibration() 373 if (error) in rohm_ts_manual_calibration() 386 error = i2c_smbus_write_byte_data(client, TEST1, in rohm_ts_manual_calibration() 388 if (error) in rohm_ts_manual_calibration() 421 error = i2c_smbus_write_byte_data(client, in rohm_ts_manual_calibration() [all …]
|
D | elants_i2c.c | 237 int ret, error; in elants_i2c_calibrate() local 258 error = ret < 0 ? ret : -ETIMEDOUT; in elants_i2c_calibrate() 261 error); in elants_i2c_calibrate() 262 return error; in elants_i2c_calibrate() 278 int error; in elants_i2c_sw_reset() local 280 error = elants_i2c_send(client, soft_rst_cmd, in elants_i2c_sw_reset() 282 if (error) { in elants_i2c_sw_reset() 283 dev_err(&client->dev, "software reset failed: %d\n", error); in elants_i2c_sw_reset() 284 return error; in elants_i2c_sw_reset() 304 int error, retry_cnt; in elants_i2c_query_fw_id() local [all …]
|
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 | wdt87xx_i2c.c | 205 int error; in wdt87xx_i2c_xfer() local 210 error = ret < 0 ? ret : -EIO; in wdt87xx_i2c_xfer() 212 __func__, error); in wdt87xx_i2c_xfer() 213 return error; in wdt87xx_i2c_xfer() 223 int error; in wdt87xx_get_desc() local 227 error = wdt87xx_i2c_xfer(client, tx_buf, sizeof(tx_buf), in wdt87xx_get_desc() 229 if (error) { in wdt87xx_get_desc() 230 dev_err(&client->dev, "get desc failed: %d\n", error); in wdt87xx_get_desc() 231 return error; in wdt87xx_get_desc() 251 int error; in wdt87xx_get_string() 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 | 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 | goodix.c | 121 int error; in goodix_ts_read_input_report() local 123 error = goodix_i2c_read(ts->client, GOODIX_READ_COOR_ADDR, data, in goodix_ts_read_input_report() 125 if (error) { in goodix_ts_read_input_report() 126 dev_err(&ts->client->dev, "I2C transfer error: %d\n", error); in goodix_ts_read_input_report() 127 return error; in goodix_ts_read_input_report() 139 error = goodix_i2c_read(ts->client, in goodix_ts_read_input_report() 144 if (error) in goodix_ts_read_input_report() 145 return error; in goodix_ts_read_input_report() 230 int error; in goodix_read_config() local 232 error = goodix_i2c_read(ts->client, GOODIX_REG_CONFIG_DATA, in goodix_read_config() [all …]
|
D | edt-ft5x06.c | 178 int error; in edt_ft5x06_ts_isr() local 202 error = edt_ft5x06_ts_readwrite(tsdata->client, in edt_ft5x06_ts_isr() 205 if (error) { in edt_ft5x06_ts_isr() 207 error); in edt_ft5x06_ts_isr() 289 int error; in edt_ft5x06_register_read() local 297 error = edt_ft5x06_ts_readwrite(tsdata->client, 2, wrbuf, 2, in edt_ft5x06_register_read() 299 if (error) in edt_ft5x06_register_read() 300 return error; in edt_ft5x06_register_read() 313 error = edt_ft5x06_ts_readwrite(tsdata->client, 1, in edt_ft5x06_register_read() 315 if (error) in edt_ft5x06_register_read() [all …]
|
D | colibri-vf50-ts.c | 61 int error; in adc_ts_measure() local 69 error = iio_read_channel_raw(channel, &val); in adc_ts_measure() 70 if (error < 0) { in adc_ts_measure() 71 value = error; in adc_ts_measure() 247 int error; in vf50_ts_get_gpiod() local 251 error = PTR_ERR(*gpio_d); in vf50_ts_get_gpiod() 252 dev_err(dev, "Could not get gpio_%s %d\n", con_id, error); in vf50_ts_get_gpiod() 253 return error; in vf50_ts_get_gpiod() 273 int error; in vf50_ts_probe() local 279 error = devm_add_action(dev, vf50_ts_channel_release, channels); in vf50_ts_probe() [all …]
|
D | ft6236.c | 81 int error; in ft6236_read() local 83 error = i2c_smbus_read_i2c_block_data(client, reg, len, data); in ft6236_read() 84 if (error < 0) in ft6236_read() 85 return error; in ft6236_read() 87 if (error != len) in ft6236_read() 100 int i, error; in ft6236_interrupt() local 102 error = ft6236_read(ft6236->client, 0, sizeof(buf), &buf); in ft6236_interrupt() 103 if (error) { in ft6236_interrupt() 104 dev_err(dev, "read touchdata failed %d\n", error); in ft6236_interrupt() 155 int error; in ft6236_debug_read_byte() local [all …]
|
D | pixcir_i2c_ts.c | 303 int error; in pixcir_start() local 306 error = pixcir_set_int_mode(ts, PIXCIR_INT_LEVEL_TOUCH, 0); in pixcir_start() 307 if (error) { in pixcir_start() 308 dev_err(dev, "Failed to set interrupt mode: %d\n", error); in pixcir_start() 309 return error; in pixcir_start() 316 error = pixcir_int_enable(ts, true); in pixcir_start() 317 if (error) { in pixcir_start() 319 error); in pixcir_start() 320 return error; in pixcir_start() 328 int error; in pixcir_stop() local [all …]
|
D | tsc200x-core.c | 151 int error; in tsc200x_irq_thread() local 154 error = regmap_bulk_read(ts->regmap, TSC200X_REG_X, &tsdata, in tsc200x_irq_thread() 156 if (unlikely(error)) in tsc200x_irq_thread() 273 int error; in tsc200x_selftest_show() local 282 error = regmap_read(ts->regmap, TSC200X_REG_TEMP_HIGH, &temp_high_orig); in tsc200x_selftest_show() 283 if (error) { in tsc200x_selftest_show() 284 dev_warn(dev, "selftest failed: read error %d\n", error); in tsc200x_selftest_show() 291 error = regmap_write(ts->regmap, TSC200X_REG_TEMP_HIGH, temp_high_test); in tsc200x_selftest_show() 292 if (error) { in tsc200x_selftest_show() 293 dev_warn(dev, "selftest failed: write error %d\n", error); in tsc200x_selftest_show() [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 | tsc2005.c | 37 int error; in tsc2005_cmd() local 42 error = spi_sync(spi, &msg); in tsc2005_cmd() 43 if (error) { in tsc2005_cmd() 45 __func__, cmd, error); in tsc2005_cmd() 46 return error; in tsc2005_cmd() 54 int error; in tsc2005_probe() local 61 error = spi_setup(spi); in tsc2005_probe() 62 if (error) in tsc2005_probe() 63 return error; in tsc2005_probe()
|
/linux-4.4.14/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 | 172 int error; in cyapa_get_state() local 182 error = cyapa_i2c_reg_read_block(cyapa, BL_HEAD_OFFSET, BL_STATUS_SIZE, in cyapa_get_state() 190 if (cyapa->smbus && (error == -ETIMEDOUT || error == -ENXIO)) { in cyapa_get_state() 192 error = cyapa_read_block(cyapa, in cyapa_get_state() 197 if (error != BL_STATUS_SIZE) in cyapa_get_state() 198 goto error; in cyapa_get_state() 210 error = cyapa_gen3_ops.state_parse(cyapa, in cyapa_get_state() 212 if (!error) in cyapa_get_state() 218 error = cyapa_pip_state_parse(cyapa, in cyapa_get_state() 220 if (!error) in cyapa_get_state() [all …]
|
D | elan_i2c_core.c | 137 int error; in elan_enable_power() local 139 error = regulator_enable(data->vcc); in elan_enable_power() 140 if (error) { in elan_enable_power() 142 "failed to enable regulator: %d\n", error); in elan_enable_power() 143 return error; in elan_enable_power() 147 error = data->ops->power_control(data->client, true); in elan_enable_power() 148 if (error >= 0) in elan_enable_power() 154 dev_err(&data->client->dev, "failed to enable power: %d\n", error); in elan_enable_power() 155 return error; in elan_enable_power() 161 int error; in elan_disable_power() local [all …]
|
D | cyapa_gen6.c | 94 int error; in cyapa_get_pip_fixed_info() local 99 error = cyapa_i2c_pip_cmd_irq_sync(cyapa, in cyapa_get_pip_fixed_info() 104 if (error || resp_len < PIP_BL_GET_INFO_RESP_LENGTH) in cyapa_get_pip_fixed_info() 105 return error ? error : -EIO; in cyapa_get_pip_fixed_info() 116 error = cyapa_i2c_pip_cmd_irq_sync(cyapa, in cyapa_get_pip_fixed_info() 120 if (error || resp_len < PIP_READ_SYS_INFO_RESP_LENGTH) in cyapa_get_pip_fixed_info() 121 return error ? error : -EIO; in cyapa_get_pip_fixed_info() 143 int error; in cyapa_pip_state_parse() local 158 error = cyapa_i2c_pip_cmd_irq_sync(cyapa, in cyapa_pip_state_parse() 164 if (error) in cyapa_pip_state_parse() [all …]
|
D | cyapa_gen5.c | 412 int error; in cyapa_empty_pip_output_data() local 439 error = cyapa_i2c_pip_read(cyapa, pip->empty_buf, in cyapa_empty_pip_output_data() 441 if (error < 0) in cyapa_empty_pip_output_data() 442 return error; in cyapa_empty_pip_output_data() 465 error = cyapa_i2c_pip_read(cyapa, pip->empty_buf, length); in cyapa_empty_pip_output_data() 466 if (error < 0) in cyapa_empty_pip_output_data() 467 return error; in cyapa_empty_pip_output_data() 483 error = -EINVAL; in cyapa_empty_pip_output_data() 486 return error; in cyapa_empty_pip_output_data() 495 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.4.14/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() 147 error = -ENOATTR; in xfs_attr_get() 149 error = xfs_attr_shortform_getvalue(&args); in xfs_attr_get() 151 error = xfs_attr_leaf_get(&args); in xfs_attr_get() 153 error = xfs_attr_node_get(&args); in xfs_attr_get() 157 return error == -EEXIST ? 0 : error; in xfs_attr_get() 210 int error, err2, committed, local; in xfs_attr_set() local [all …]
|
D | xfs_ialloc.c | 110 int error; in xfs_inobt_get_rec() local 112 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_inobt_get_rec() 113 if (error || *stat == 0) in xfs_inobt_get_rec() 114 return error; in xfs_inobt_get_rec() 172 int error; in xfs_inobt_insert() local 179 error = xfs_inobt_lookup(cur, thisino, XFS_LOOKUP_EQ, &i); in xfs_inobt_insert() 180 if (error) { in xfs_inobt_insert() 182 return error; in xfs_inobt_insert() 186 error = xfs_inobt_insert_rec(cur, XFS_INOBT_HOLEMASK_FULL, in xfs_inobt_insert() 190 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() 328 int error; /* error code */ in xfs_alloc_fixup_trees() local 343 if ((error = xfs_alloc_get_rec(cnt_cur, &nfbno1, &nflen1, &i))) in xfs_alloc_fixup_trees() 344 return error; in xfs_alloc_fixup_trees() 349 if ((error = xfs_alloc_lookup_eq(cnt_cur, fbno, flen, &i))) in xfs_alloc_fixup_trees() 350 return error; in xfs_alloc_fixup_trees() 358 if ((error = xfs_alloc_get_rec(bno_cur, &nfbno1, &nflen1, &i))) in xfs_alloc_fixup_trees() [all …]
|
D | xfs_da_btree.c | 313 int error; in xfs_da3_node_create() local 319 error = xfs_da_get_buf(tp, dp, blkno, -1, &bp, whichfork); in xfs_da3_node_create() 320 if (error) in xfs_da3_node_create() 321 return error; in xfs_da3_node_create() 362 int error; in xfs_da3_split() local 391 error = xfs_attr3_leaf_split(state, oldblk, newblk); in xfs_da3_split() 392 if ((error != 0) && (error != -ENOSPC)) { in xfs_da3_split() 393 return error; /* GROT: attr is inconsistent */ in xfs_da3_split() 395 if (!error) { in xfs_da3_split() 406 error = xfs_attr3_leaf_split(state, oldblk, in xfs_da3_split() [all …]
|
D | xfs_btree.c | 303 int error) /* del because of error */ in xfs_btree_del_cursor() argument 320 else if (!error) in xfs_btree_del_cursor() 345 int error; /* error return value */ in xfs_btree_dup_cursor() local 372 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, in xfs_btree_dup_cursor() 376 if (error) { in xfs_btree_dup_cursor() 377 xfs_btree_del_cursor(new, error); in xfs_btree_dup_cursor() 379 return error; in xfs_btree_dup_cursor() 726 int error; in xfs_btree_read_bufl() local 730 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, d, in xfs_btree_read_bufl() 732 if (error) in xfs_btree_read_bufl() [all …]
|
D | xfs_attr_remote.c | 360 int error; in xfs_attr_rmtval_get() local 373 error = xfs_bmapi_read(args->dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_get() 376 if (error) in xfs_attr_rmtval_get() 377 return error; in xfs_attr_rmtval_get() 388 error = xfs_trans_read_buf(mp, NULL, mp->m_ddev_targp, in xfs_attr_rmtval_get() 391 if (error) in xfs_attr_rmtval_get() 392 return error; in xfs_attr_rmtval_get() 394 error = xfs_attr_rmtval_copyout(mp, bp, args->dp->i_ino, in xfs_attr_rmtval_get() 398 if (error) in xfs_attr_rmtval_get() 399 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 …]
|
/linux-4.4.14/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 | 71 long error; in vfs_truncate() local 81 error = mnt_want_write(path->mnt); in vfs_truncate() 82 if (error) in vfs_truncate() 85 error = inode_permission(inode, MAY_WRITE); in vfs_truncate() 86 if (error) in vfs_truncate() 89 error = -EPERM; in vfs_truncate() 93 error = get_write_access(inode); in vfs_truncate() 94 if (error) in vfs_truncate() 101 error = break_lease(inode, O_WRONLY); in vfs_truncate() 102 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() 987 int error; in get_link() local 999 error = security_inode_follow_link(dentry, inode, in get_link() 1001 if (unlikely(error)) in get_link() 1002 return ERR_PTR(error); in get_link() 1455 int error; in lookup_dcache() local [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 | 528 int error = -ENOMEM; in lease_alloc() local 531 return ERR_PTR(error); in lease_alloc() 533 error = lease_init(filp, type, fl); in lease_alloc() 534 if (error) { in lease_alloc() 536 return ERR_PTR(error); in lease_alloc() 874 int error = 0; in flock_lock_inode() local 907 error = -ENOENT; in flock_lock_inode() 915 error = -EAGAIN; in flock_lock_inode() 918 error = FILE_LOCK_DEFERRED; in flock_lock_inode() 927 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.4.14/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 | 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 | ops_fstype.c | 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() 371 return error; in init_names() 389 return error; in init_names() 395 int error = 0; in init_locking() local [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 …]
|
D | sys.c | 104 int error, n; in freeze_store() local 106 error = kstrtoint(buf, 0, &n); in freeze_store() 107 if (error) in freeze_store() 108 return error; in freeze_store() 115 error = thaw_super(sdp->sd_vfs); in freeze_store() 118 error = freeze_super(sdp->sd_vfs); in freeze_store() 124 if (error) { in freeze_store() 125 fs_warn(sdp, "freeze %d error %d", n, error); in freeze_store() 126 return error; in freeze_store() 140 int error, val; in withdraw_store() local [all …]
|
/linux-4.4.14/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 | 269 int error; in suspend_prepare() local 276 error = pm_notifier_call_chain(PM_SUSPEND_PREPARE); in suspend_prepare() 277 if (error) in suspend_prepare() 281 error = suspend_freeze_processes(); in suspend_prepare() 283 if (!error) in suspend_prepare() 291 return error; in suspend_prepare() 315 int error; in suspend_enter() local 317 error = platform_suspend_prepare(state); in suspend_enter() 318 if (error) in suspend_enter() 321 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() 358 int error; in state_store() local 360 error = pm_autosleep_lock(); in state_store() 361 if (error) in state_store() 362 return error; in state_store() 365 error = -EBUSY; in state_store() 371 error = pm_suspend(state); in state_store() 373 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 | 220 int error; member 227 hb->error = 0; in hib_init_batch() 245 if (bio->bi_error && !hb->error) in hib_end_io() 246 hb->error = bio->bi_error; in hib_end_io() 258 int error = 0; in hib_submit_io() local 277 error = submit_bio_wait(rw, bio); in hib_submit_io() 281 return error; in hib_submit_io() 287 return hb->error; in hib_wait_io() 296 int error; in mark_swapfiles() local 307 error = hib_submit_io(WRITE_SYNC, swsusp_resume_block, in mark_swapfiles() [all …]
|
/linux-4.4.14/drivers/input/misc/ |
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 | max77693-haptic.c | 74 int error; in max77693_haptic_set_duty_cycle() local 76 error = pwm_config(haptic->pwm_dev, delta, haptic->pwm_dev->period); in max77693_haptic_set_duty_cycle() 77 if (error) { in max77693_haptic_set_duty_cycle() 78 dev_err(haptic->dev, "failed to configure pwm: %d\n", error); in max77693_haptic_set_duty_cycle() 79 return error; in max77693_haptic_set_duty_cycle() 87 int error; in max77843_haptic_bias() local 92 error = regmap_update_bits(haptic->regmap_haptic, in max77843_haptic_bias() 96 if (error) { in max77843_haptic_bias() 98 on ? "enable" : "disable", error); in max77843_haptic_bias() 99 return error; in max77843_haptic_bias() [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 | 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 | drv2665.c | 89 int error; in drv2665_worker() local 91 error = regmap_read(haptics->regmap, DRV2665_STATUS, &read_buf); in drv2665_worker() 92 if (error) { in drv2665_worker() 94 "Failed to read status: %d\n", error); in drv2665_worker() 99 error = regmap_bulk_write(haptics->regmap, in drv2665_worker() 103 if (error) { in drv2665_worker() 105 "Failed to write FIFO: %d\n", error); in drv2665_worker() 124 int error; in drv2665_close() local 128 error = regmap_update_bits(haptics->regmap, in drv2665_close() 130 if (error) in drv2665_close() [all …]
|
D | da9063_onkey.c | 100 int error; in da9063_poll_on() local 103 error = regmap_read(onkey->regmap, in da9063_poll_on() 106 if (error) { in da9063_poll_on() 108 "Failed to read ON status: %d\n", error); in da9063_poll_on() 113 error = regmap_update_bits(onkey->regmap, in da9063_poll_on() 117 if (error) { in da9063_poll_on() 119 "Failed to reset the Key Delay %d\n", error); in da9063_poll_on() 133 error = regmap_read(onkey->regmap, in da9063_poll_on() 136 if (error) { in da9063_poll_on() 138 "Cannot read FAULT_LOG: %d\n", error); in da9063_poll_on() [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 | pmic8xxx-pwrkey.c | 137 int error; in pmic8xxx_pwrkey_shutdown() local 142 error = pwrkey->shutdown_fn(pwrkey, reset); in pmic8xxx_pwrkey_shutdown() 143 if (error) in pmic8xxx_pwrkey_shutdown() 171 int error; in pm8058_disable_smps_locally_set_pull_down() local 176 error = regmap_write(regmap, test2_addr, bank); in pm8058_disable_smps_locally_set_pull_down() 177 if (error) in pm8058_disable_smps_locally_set_pull_down() 178 return error; in pm8058_disable_smps_locally_set_pull_down() 180 error = regmap_read(regmap, test2_addr, ®); in pm8058_disable_smps_locally_set_pull_down() 181 if (error) in pm8058_disable_smps_locally_set_pull_down() 182 return error; in pm8058_disable_smps_locally_set_pull_down() [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 | 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 | 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 | 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 | 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 | axp20x-pek.c | 196 int error; in axp20x_pek_probe() local 238 error = devm_request_any_context_irq(&pdev->dev, axp20x_pek->irq_dbr, in axp20x_pek_probe() 241 if (error < 0) { in axp20x_pek_probe() 243 axp20x_pek->irq_dbr, error); in axp20x_pek_probe() 244 return error; in axp20x_pek_probe() 247 error = devm_request_any_context_irq(&pdev->dev, axp20x_pek->irq_dbf, in axp20x_pek_probe() 250 if (error < 0) { in axp20x_pek_probe() 252 axp20x_pek->irq_dbf, error); in axp20x_pek_probe() 253 return error; in axp20x_pek_probe() 256 error = sysfs_create_group(&pdev->dev.kobj, &axp20x_attribute_group); in axp20x_pek_probe() [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() 314 if (error) { in twl6040_vibra_probe() 315 dev_err(info->dev, "VIB IRQ request failed: %d\n", error); in twl6040_vibra_probe() 316 return error; in twl6040_vibra_probe() 325 error = devm_regulator_bulk_get(twl6040_core_dev, in twl6040_vibra_probe() 328 if (error) { in twl6040_vibra_probe() 329 dev_err(info->dev, "couldn't get regulators %d\n", error); in twl6040_vibra_probe() 330 return error; in twl6040_vibra_probe() 334 error = regulator_set_voltage(info->supplies[0].consumer, in twl6040_vibra_probe() [all …]
|
/linux-4.4.14/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.4.14/drivers/gpu/drm/i915/ |
D | i915_gpu_error.c | 246 struct drm_i915_error_state *error, in i915_ring_error_state() argument 249 struct drm_i915_error_ring *ring = &error->ring[ring_idx]; in i915_ring_error_state() 337 struct drm_i915_error_state *error = error_priv->error; in i915_error_state_to_str() local 342 if (!error) { in i915_error_state_to_str() 347 err_printf(m, "%s\n", error->error_msg); in i915_error_state_to_str() 348 err_printf(m, "Time: %ld s %ld us\n", error->time.tv_sec, in i915_error_state_to_str() 349 error->time.tv_usec); in i915_error_state_to_str() 352 for (i = 0; i < ARRAY_SIZE(error->ring); i++) { in i915_error_state_to_str() 353 if (error->ring[i].hangcheck_score > max_hangcheck_score) in i915_error_state_to_str() 354 max_hangcheck_score = error->ring[i].hangcheck_score; in i915_error_state_to_str() [all …]
|
/linux-4.4.14/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 | 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 | tda10071.c | 61 goto error; in tda10071_cmd_execute() 90 goto error; in tda10071_cmd_execute() 96 error: in tda10071_cmd_execute() 112 goto error; in tda10071_set_tone() 127 goto error; in tda10071_set_tone() 138 goto error; in tda10071_set_tone() 141 error: in tda10071_set_tone() 157 goto error; in tda10071_set_voltage() 175 goto error; in tda10071_set_voltage() 184 goto error; in tda10071_set_voltage() [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.4.14/fs/xfs/ |
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_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_bmap_util.c | 105 int error; /* error return value */ in xfs_bmap_finish() local 119 error = __xfs_trans_roll(tp, NULL, committed); in xfs_bmap_finish() 120 if (error) { in xfs_bmap_finish() 134 (error == -EFSCORRUPTED) ? in xfs_bmap_finish() 141 return error; in xfs_bmap_finish() 153 error = xfs_trans_free_extent(*tp, efd, free->xbfi_startblock, in xfs_bmap_finish() 155 if (error) in xfs_bmap_finish() 156 return error; in xfs_bmap_finish() 169 int error; /* error return value */ in xfs_bmap_rtalloc() local 179 error = xfs_bmap_extsize_align(mp, &ap->got, &ap->prev, in xfs_bmap_rtalloc() [all …]
|
D | xfs_ioctl.c | 74 int error; in xfs_find_handle() local 83 error = user_lpath((const char __user *)hreq->path, &path); in xfs_find_handle() 84 if (error) in xfs_find_handle() 85 return error; in xfs_find_handle() 94 error = -EINVAL; in xfs_find_handle() 98 error = -EBADF; in xfs_find_handle() 123 error = -EFAULT; in xfs_find_handle() 128 error = 0; in xfs_find_handle() 135 return error; in xfs_find_handle() 199 int error; in xfs_open_by_handle() local [all …]
|
D | xfs_inode.c | 683 int error; in xfs_lookup() local 691 error = xfs_dir_lookup(NULL, dp, name, &inum, ci_name); in xfs_lookup() 692 if (error) in xfs_lookup() 695 error = xfs_iget(dp->i_mount, NULL, inum, 0, 0, ipp); in xfs_lookup() 696 if (error) in xfs_lookup() 708 return error; in xfs_lookup() 758 int error; in xfs_ialloc() local 765 error = xfs_dialloc(tp, pip ? pip->i_ino : 0, mode, okalloc, in xfs_ialloc() 767 if (error) in xfs_ialloc() 768 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_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 155 error = xfs_iomap_eof_align_last_fsb(mp, ip, extsz, &last_fsb); in xfs_iomap_write_direct() 156 if (error) in xfs_iomap_write_direct() 191 error = xfs_qm_dqattach(ip, 0); in xfs_iomap_write_direct() 192 if (error) in xfs_iomap_write_direct() 193 return error; in xfs_iomap_write_direct() [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_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_iops.c | 69 int error = 0; in xfs_initxattrs() local 72 error = xfs_attr_set(ip, xattr->name, xattr->value, in xfs_initxattrs() 74 if (error < 0) in xfs_initxattrs() 77 return error; in xfs_initxattrs() 138 int error; in xfs_generic_create() local 152 error = posix_acl_create(dir, &mode, &default_acl, &acl); in xfs_generic_create() 153 if (error) in xfs_generic_create() 154 return error; in xfs_generic_create() 158 error = xfs_create(XFS_I(dir), &name, mode, rdev, &ip); in xfs_generic_create() 160 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_acl.c | 131 int error; in xfs_get_acl() local 156 error = xfs_attr_get(ip, ea_name, (unsigned char *)xfs_acl, in xfs_get_acl() 158 if (error) { in xfs_get_acl() 164 if (error == -ENOATTR) in xfs_get_acl() 166 acl = ERR_PTR(error); in xfs_get_acl() 186 int error; in __xfs_set_acl() local 215 error = xfs_attr_set(ip, ea_name, (unsigned char *)xfs_acl, in __xfs_set_acl() 223 error = xfs_attr_remove(ip, ea_name, ATTR_ROOT); in __xfs_set_acl() 228 if (error == -ENOATTR) in __xfs_set_acl() 229 error = 0; in __xfs_set_acl() [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 | 158 int error, saved_error = 0; in xfs_growfs_data_private() local 172 if ((error = xfs_sb_validate_fsb_count(&mp->m_sb, nb))) in xfs_growfs_data_private() 173 return error; in xfs_growfs_data_private() 175 error = xfs_buf_read_uncached(mp->m_ddev_targp, in xfs_growfs_data_private() 178 if (error) in xfs_growfs_data_private() 179 return error; in xfs_growfs_data_private() 196 error = xfs_initialize_perag(mp, nagcount, &nagimax); in xfs_growfs_data_private() 197 if (error) in xfs_growfs_data_private() 198 return error; in xfs_growfs_data_private() 203 error = xfs_trans_reserve(tp, &M_RES(mp)->tr_growdata, in xfs_growfs_data_private() [all …]
|
D | xfs_mount.c | 191 int error = -ENOMEM; in xfs_initialize_perag() local 226 error = -EEXIST; in xfs_initialize_perag() 260 return error; in xfs_initialize_perag() 276 int error; in xfs_readsb() local 299 error = xfs_buf_read_uncached(mp->m_ddev_targp, XFS_SB_DADDR, in xfs_readsb() 301 if (error) { in xfs_readsb() 303 xfs_warn(mp, "SB validate failed with error %d.", error); in xfs_readsb() 305 if (error == -EFSBADCRC) in xfs_readsb() 306 error = -EFSCORRUPTED; in xfs_readsb() 307 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() 268 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_file.c | 146 int error; in xfs_update_prealloc_flags() local 149 error = xfs_trans_reserve(tp, &M_RES(ip->i_mount)->tr_writeid, 0, 0); in xfs_update_prealloc_flags() 150 if (error) { in xfs_update_prealloc_flags() 152 return error; in xfs_update_prealloc_flags() 215 int error = 0; in xfs_file_fsync() local 221 error = filemap_write_and_wait_range(inode->i_mapping, start, end); in xfs_file_fsync() 222 if (error) in xfs_file_fsync() 223 return error; in xfs_file_fsync() 265 error = _xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, &log_flushed); in xfs_file_fsync() 283 return error; in xfs_file_fsync() [all …]
|
/linux-4.4.14/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.4.14/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() 1337 int error; in nfs3_xdr_enc_setacl3args() local 1348 error = nfsacl_encode(xdr->buf, base, args->inode, in nfs3_xdr_enc_setacl3args() 1352 BUG_ON(error < 0); in nfs3_xdr_enc_setacl3args() 1353 error = nfsacl_encode(xdr->buf, base + error, args->inode, in nfs3_xdr_enc_setacl3args() 1357 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.4.14/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.4.14/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.4.14/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 | cap11xx.c | 268 int error; in cap11xx_init_leds() local 282 error = regmap_update_bits(priv->regmap, in cap11xx_init_leds() 284 if (error) in cap11xx_init_leds() 285 return error; in cap11xx_init_leds() 287 error = regmap_update_bits(priv->regmap, CAP11XX_REG_LED_DUTY_CYCLE_4, in cap11xx_init_leds() 291 if (error) in cap11xx_init_leds() 292 return error; in cap11xx_init_leds() 306 error = of_property_read_u32(child, "reg", ®); in cap11xx_init_leds() 307 if (error != 0 || reg >= num_leds) in cap11xx_init_leds() 315 error = devm_led_classdev_register(dev, &led->cdev); in cap11xx_init_leds() [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 | 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 | 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() 243 error = -EINVAL; in gpio_keys_attr_store_helper() 265 return error; in gpio_keys_attr_store_helper() 302 ssize_t error; \ 304 error = gpio_keys_attr_store_helper(ddata, buf, type); \ 305 if (error) \ 306 return error; \ [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 | 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.4.14/drivers/staging/fsl-mc/bus/ |
D | mc-bus.c | 118 int error; in fsl_mc_driver_probe() local 127 error = mc_drv->probe(mc_dev); in fsl_mc_driver_probe() 128 if (error < 0) { in fsl_mc_driver_probe() 130 error); in fsl_mc_driver_probe() 131 return error; in fsl_mc_driver_probe() 141 int error; in fsl_mc_driver_remove() local 146 error = mc_drv->remove(mc_dev); in fsl_mc_driver_remove() 147 if (error < 0) { in fsl_mc_driver_remove() 150 error); in fsl_mc_driver_remove() 151 return error; in fsl_mc_driver_remove() [all …]
|
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 | 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() 268 if (error < 0) { in dprc_scan_objects() [all …]
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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 = -EFSCORRUPTED; 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 == -EFSCORRUPTED) 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.4.14/drivers/base/power/ |
D | main.c | 206 int error, pm_message_t state, char *info) in initcall_debug_report() argument 216 error, (unsigned long long)nsecs >> 10); in initcall_debug_report() 353 int error) in pm_dev_err() argument 356 dev_name(dev), pm_verb(state.event), info, error); in pm_dev_err() 380 int error; in dpm_run_callback() local 389 error = cb(dev); in dpm_run_callback() 390 trace_device_pm_callback_end(dev, error); in dpm_run_callback() 391 suspend_report_result(cb, error); in dpm_run_callback() 393 initcall_debug_report(dev, calltime, error, state, info); in dpm_run_callback() 395 return error; in dpm_run_callback() [all …]
|
/linux-4.4.14/drivers/pci/ |
D | pci-driver.c | 326 int error, node; in pci_call_probe() local 355 error = work_on_cpu(cpu, local_pci_probe, &ddi); in pci_call_probe() 357 error = local_pci_probe(&ddi); in pci_call_probe() 360 error = local_pci_probe(&ddi); in pci_call_probe() 362 return error; in pci_call_probe() 376 int error = 0; in __pci_device_probe() local 379 error = -ENODEV; in __pci_device_probe() 383 error = pci_call_probe(drv, pci_dev, id); in __pci_device_probe() 384 if (error >= 0) in __pci_device_probe() 385 error = 0; in __pci_device_probe() [all …]
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/drivers/gpu/drm/bridge/ |
D | parade-ps8622.c | 51 #error "T2.min + T1.max must be less than T2.max + T1.min" 110 goto error; in ps8622_send_config() 115 goto error; in ps8622_send_config() 120 goto error; in ps8622_send_config() 125 goto error; in ps8622_send_config() 133 goto error; in ps8622_send_config() 138 goto error; in ps8622_send_config() 143 goto error; in ps8622_send_config() 148 goto error; in ps8622_send_config() 153 goto error; in ps8622_send_config() [all …]
|
/linux-4.4.14/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.4.14/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.4.14/drivers/regulator/ |
D | da9210-regulator.c | 129 int error, ret = IRQ_NONE; in da9210_irq_handler() local 131 error = regmap_read(chip->regmap, DA9210_REG_EVENT_B, &val); in da9210_irq_handler() 132 if (error < 0) in da9210_irq_handler() 160 error = regmap_write(chip->regmap, DA9210_REG_EVENT_B, handled); in da9210_irq_handler() 161 if (error < 0) in da9210_irq_handler() 170 dev_err(regmap_get_device(chip->regmap), "I2C error : %d\n", error); in da9210_irq_handler() 185 int error; in da9210_i2c_probe() local 193 error = PTR_ERR(chip->regmap); in da9210_i2c_probe() 195 error); in da9210_i2c_probe() 196 return error; in da9210_i2c_probe() [all …]
|
/linux-4.4.14/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.4.14/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.4.14/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 = 0; in apparmor_bprm_set_creds() local 367 error = aa_path_name(&bprm->file->f_path, profile->path_flags, &buffer, in apparmor_bprm_set_creds() 369 if (error) { in apparmor_bprm_set_creds() 372 error = 0; in apparmor_bprm_set_creds() 436 error = -ENOENT; in apparmor_bprm_set_creds() 446 error = -ENOMEM; in apparmor_bprm_set_creds() 449 error = -EACCES; 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 | 135 int error = 0; in apparmor_capable() local 139 error = aa_capable(profile, cap, audit); in apparmor_capable() 140 return error; in apparmor_capable() 156 int error = 0; in common_perm() local 160 error = aa_path_perm(op, profile, path, 0, mask, cond); in common_perm() 162 return error; in common_perm() 296 int error = 0; in apparmor_path_link() local 303 error = aa_path_link(profile, old_dentry, new_dir, new_dentry); in apparmor_path_link() 304 return error; in apparmor_path_link() 311 int error = 0; in apparmor_path_rename() local [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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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 …]
|
/linux-4.4.14/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 …]
|
/linux-4.4.14/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.4.14/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() 93 error = sysfs_add_file_mode_ns(parent, in create_files() 96 if (error) in create_files() 99 if (error) in create_files() 103 return error; in create_files() 111 int error; in internal_create_group() local [all …]
|
/linux-4.4.14/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.4.14/security/keys/ |
D | keyctl.c | 73 goto error; in SYSCALL_DEFINE5() 78 goto error; in SYSCALL_DEFINE5() 85 goto error; in SYSCALL_DEFINE5() 141 error: in SYSCALL_DEFINE5() 173 goto error; in SYSCALL_DEFINE4() 179 goto error; in SYSCALL_DEFINE4() 238 error: in SYSCALL_DEFINE4() 259 goto error; in keyctl_get_keyring_ID() 264 error: in keyctl_get_keyring_ID() 289 goto error; in keyctl_join_session_keyring() [all …]
|
/linux-4.4.14/mm/ |
D | shmem.c | 298 int error; in shmem_add_to_page_cache() local 309 error = radix_tree_insert(&mapping->page_tree, index, page); in shmem_add_to_page_cache() 311 error = shmem_radix_tree_replace(mapping, index, expected, in shmem_add_to_page_cache() 313 if (!error) { in shmem_add_to_page_cache() 323 return error; in shmem_add_to_page_cache() 332 int error; in shmem_delete_from_page_cache() local 335 error = shmem_radix_tree_replace(mapping, page->index, page, radswap); in shmem_delete_from_page_cache() 342 BUG_ON(error); in shmem_delete_from_page_cache() 566 int error; in shmem_setattr() local 568 error = inode_change_ok(inode, attr); in shmem_setattr() [all …]
|
D | madvise.c | 51 int error = 0; in madvise_behavior() local 70 error = -EINVAL; in madvise_behavior() 80 error = -EINVAL; in madvise_behavior() 87 error = ksm_madvise(vma, start, end, behavior, &new_flags); in madvise_behavior() 88 if (error) in madvise_behavior() 93 error = hugepage_madvise(vma, &new_flags, behavior); in madvise_behavior() 94 if (error) in madvise_behavior() 116 error = split_vma(mm, vma, start, 1); in madvise_behavior() 117 if (error) in madvise_behavior() 122 error = split_vma(mm, vma, end, 0); in madvise_behavior() [all …]
|
/linux-4.4.14/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.4.14/drivers/soc/rockchip/ |
D | pm_domains.c | 188 int error; in rockchip_pd_attach_dev() local 192 error = pm_clk_create(dev); in rockchip_pd_attach_dev() 193 if (error) { in rockchip_pd_attach_dev() 194 dev_err(dev, "pm_clk_create failed %d\n", error); in rockchip_pd_attach_dev() 195 return error; in rockchip_pd_attach_dev() 201 error = pm_clk_add_clk(dev, clk); in rockchip_pd_attach_dev() 202 if (error) { in rockchip_pd_attach_dev() 203 dev_err(dev, "pm_clk_add_clk failed %d\n", error); in rockchip_pd_attach_dev() 206 return error; in rockchip_pd_attach_dev() 230 int error; in rockchip_pm_add_one_domain() local [all …]
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/drivers/input/serio/ |
D | i8042.c | 271 int i, error; in __i8042_command() local 276 error = i8042_wait_write(); in __i8042_command() 277 if (error) in __i8042_command() 278 return error; in __i8042_command() 284 error = i8042_wait_write(); in __i8042_command() 285 if (error) in __i8042_command() 286 return error; in __i8042_command() 292 error = i8042_wait_read(); in __i8042_command() 293 if (error) { in __i8042_command() 295 return error; in __i8042_command() [all …]
|
/linux-4.4.14/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.4.14/fs/reiserfs/ |
D | xattr_security.c | 62 int error; in reiserfs_security_init() local 70 error = security_old_inode_init_security(inode, dir, qstr, &sec->name, in reiserfs_security_init() 72 if (error) { in reiserfs_security_init() 73 if (error == -EOPNOTSUPP) in reiserfs_security_init() 74 error = 0; in reiserfs_security_init() 79 return error; in reiserfs_security_init() 96 int error; in reiserfs_security_write() local 100 error = reiserfs_xattr_set_handle(th, inode, sec->name, sec->value, in reiserfs_security_write() 102 if (error == -ENODATA || error == -EOPNOTSUPP) in reiserfs_security_write() 103 error = 0; in reiserfs_security_write() [all …]
|
/linux-4.4.14/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.4.14/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.4.14/drivers/net/ethernet/renesas/ |
D | ravb_ptp.c | 18 int error; in ravb_ptp_tcr_request() local 20 error = ravb_wait(ndev, GCCR, GCCR_TCR, GCCR_TCR_NOREQ); in ravb_ptp_tcr_request() 21 if (error) in ravb_ptp_tcr_request() 22 return error; in ravb_ptp_tcr_request() 32 int error; in ravb_ptp_time_read() local 34 error = ravb_ptp_tcr_request(priv, GCCR_TCR_CAPTURE); in ravb_ptp_time_read() 35 if (error) in ravb_ptp_time_read() 36 return error; in ravb_ptp_time_read() 50 int error; in ravb_ptp_time_write() local 53 error = ravb_ptp_tcr_request(priv, GCCR_TCR_RESET); in ravb_ptp_time_write() [all …]
|