/drivers/net/wireless/ti/wlcore/ |
D | init.c | 39 int ret, i; in wl1271_init_templates_config() local 43 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config() 47 if (ret < 0) in wl1271_init_templates_config() 48 return ret; in wl1271_init_templates_config() 50 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config() 54 if (ret < 0) in wl1271_init_templates_config() 55 return ret; in wl1271_init_templates_config() 58 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config() 63 if (ret < 0) in wl1271_init_templates_config() 64 return ret; in wl1271_init_templates_config() [all …]
|
D | acx.c | 41 int ret; in wl1271_acx_wake_up_conditions() local 48 ret = -ENOMEM; in wl1271_acx_wake_up_conditions() 56 ret = wl1271_cmd_configure(wl, ACX_WAKE_UP_CONDITIONS, in wl1271_acx_wake_up_conditions() 58 if (ret < 0) { in wl1271_acx_wake_up_conditions() 59 wl1271_warning("could not set wake up conditions: %d", ret); in wl1271_acx_wake_up_conditions() 65 return ret; in wl1271_acx_wake_up_conditions() 71 int ret; in wl1271_acx_sleep_auth() local 77 ret = -ENOMEM; in wl1271_acx_sleep_auth() 83 ret = wl1271_cmd_configure(wl, ACX_SLEEP_AUTH, auth, sizeof(*auth)); in wl1271_acx_sleep_auth() 84 if (ret < 0) { in wl1271_acx_sleep_auth() [all …]
|
/drivers/net/wireless/ti/wl1251/ |
D | init.c | 34 int ret; in wl1251_hw_init_hwenc_config() local 36 ret = wl1251_acx_feature_cfg(wl); in wl1251_hw_init_hwenc_config() 37 if (ret < 0) { in wl1251_hw_init_hwenc_config() 39 return ret; in wl1251_hw_init_hwenc_config() 42 ret = wl1251_acx_default_key(wl, wl->default_key); in wl1251_hw_init_hwenc_config() 43 if (ret < 0) { in wl1251_hw_init_hwenc_config() 45 return ret; in wl1251_hw_init_hwenc_config() 53 int ret; in wl1251_hw_init_templates_config() local 57 ret = wl1251_cmd_template_set(wl, CMD_PROBE_REQ, NULL, in wl1251_hw_init_templates_config() 59 if (ret < 0) in wl1251_hw_init_templates_config() [all …]
|
D | acx.c | 16 int ret; in wl1251_acx_frame_rates() local 22 ret = -ENOMEM; in wl1251_acx_frame_rates() 31 ret = wl1251_cmd_configure(wl, ACX_FW_GEN_FRAME_RATES, in wl1251_acx_frame_rates() 33 if (ret < 0) { in wl1251_acx_frame_rates() 40 return ret; in wl1251_acx_frame_rates() 47 int ret, i; in wl1251_acx_station_id() local 53 ret = -ENOMEM; in wl1251_acx_station_id() 60 ret = wl1251_cmd_configure(wl, DOT11_STATION_ID, mac, sizeof(*mac)); in wl1251_acx_station_id() 61 if (ret < 0) in wl1251_acx_station_id() 66 return ret; in wl1251_acx_station_id() [all …]
|
/drivers/media/usb/dvb-usb/ |
D | af9005-fe.c | 65 int ret; in af9005_write_word_agc() local 67 if ((ret = af9005_write_ofdm_register(d, reglo, (u8) (value & 0xff)))) in af9005_write_word_agc() 68 return ret; in af9005_write_word_agc() 76 int ret; in af9005_read_word_agc() local 79 if ((ret = af9005_read_ofdm_register(d, reglo, &temp0))) in af9005_read_word_agc() 80 return ret; in af9005_read_word_agc() 81 if ((ret = af9005_read_ofdm_register(d, reghi, &temp1))) in af9005_read_word_agc() 82 return ret; in af9005_read_word_agc() 107 int ret; in af9005_is_fecmon_available() local 112 ret = af9005_read_register_bits(state->d, xd_p_fec_vtb_rsd_mon_en, in af9005_is_fecmon_available() [all …]
|
/drivers/media/dvb-frontends/ |
D | lg2160.c | 44 #define lg_fail(ret) \ argument 47 __ret = (ret < 0); \ 49 lg_err("error %d on line %d\n", ret, __LINE__); \ 69 int ret; in lg216x_write_reg() local 78 ret = i2c_transfer(state->i2c_adap, &msg, 1); in lg216x_write_reg() 80 if (ret != 1) { in lg216x_write_reg() 82 msg.buf[0], msg.buf[1], msg.buf[2], ret); in lg216x_write_reg() 83 if (ret < 0) in lg216x_write_reg() 84 return ret; in lg216x_write_reg() 93 int ret; in lg216x_read_reg() local [all …]
|
D | mt312.c | 64 int ret; in mt312_read() local 77 ret = i2c_transfer(state->i2c, msg, 2); in mt312_read() 79 if (ret != 2) { in mt312_read() 80 printk(KERN_DEBUG "%s: ret == %d\n", __func__, ret); in mt312_read() 98 int ret; in mt312_write() local 118 ret = i2c_transfer(state->i2c, &msg, 1); in mt312_write() 120 if (ret != 1) { in mt312_write() 121 dprintk("%s: ret == %d\n", __func__, ret); in mt312_write() 153 int ret; in mt312_get_inversion() local 156 ret = mt312_readreg(state, VIT_MODE, &vit_mode); in mt312_get_inversion() [all …]
|
D | tda10071.c | 29 int ret; in tda10071_wr_regs() local 43 ret = i2c_transfer(priv->i2c, msg, 1); in tda10071_wr_regs() 44 if (ret == 1) { in tda10071_wr_regs() 45 ret = 0; in tda10071_wr_regs() 48 "len=%d\n", KBUILD_MODNAME, ret, reg, len); in tda10071_wr_regs() 49 ret = -EREMOTEIO; in tda10071_wr_regs() 51 return ret; in tda10071_wr_regs() 58 int ret; in tda10071_rd_regs() local 74 ret = i2c_transfer(priv->i2c, msg, 2); in tda10071_rd_regs() 75 if (ret == 2) { in tda10071_rd_regs() [all …]
|
D | hd29l2.c | 28 int ret; in hd29l2_wr_regs() local 43 ret = i2c_transfer(priv->i2c, msg, 1); in hd29l2_wr_regs() 44 if (ret == 1) { in hd29l2_wr_regs() 45 ret = 0; in hd29l2_wr_regs() 49 KBUILD_MODNAME, ret, reg, len); in hd29l2_wr_regs() 50 ret = -EREMOTEIO; in hd29l2_wr_regs() 53 return ret; in hd29l2_wr_regs() 59 int ret; in hd29l2_rd_regs() local 75 ret = i2c_transfer(priv->i2c, msg, 2); in hd29l2_rd_regs() 76 if (ret == 2) { in hd29l2_rd_regs() [all …]
|
/drivers/net/usb/ |
D | smsc75xx.c | 91 int ret; in __smsc75xx_read_reg() local 101 ret = fn(dev, USB_VENDOR_REQUEST_READ_REGISTER, USB_DIR_IN in __smsc75xx_read_reg() 104 if (unlikely(ret < 0)) in __smsc75xx_read_reg() 106 index, ret); in __smsc75xx_read_reg() 111 return ret; in __smsc75xx_read_reg() 118 int ret; in __smsc75xx_write_reg() local 131 ret = fn(dev, USB_VENDOR_REQUEST_WRITE_REGISTER, USB_DIR_OUT in __smsc75xx_write_reg() 134 if (unlikely(ret < 0)) in __smsc75xx_write_reg() 136 index, ret); in __smsc75xx_write_reg() 138 return ret; in __smsc75xx_write_reg() [all …]
|
D | smsc95xx.c | 83 int ret; in __smsc95xx_read_reg() local 93 ret = fn(dev, USB_VENDOR_REQUEST_READ_REGISTER, USB_DIR_IN in __smsc95xx_read_reg() 96 if (unlikely(ret < 0)) in __smsc95xx_read_reg() 98 index, ret); in __smsc95xx_read_reg() 103 return ret; in __smsc95xx_read_reg() 110 int ret; in __smsc95xx_write_reg() local 123 ret = fn(dev, USB_VENDOR_REQUEST_WRITE_REGISTER, USB_DIR_OUT in __smsc95xx_write_reg() 126 if (unlikely(ret < 0)) in __smsc95xx_write_reg() 128 index, ret); in __smsc95xx_write_reg() 130 return ret; in __smsc95xx_write_reg() [all …]
|
/drivers/power/ |
D | smb347-charger.c | 237 int ret; in smb347_update_ps_status() local 239 ret = regmap_read(smb->regmap, IRQSTAT_E, &val); in smb347_update_ps_status() 240 if (ret < 0) in smb347_update_ps_status() 241 return ret; in smb347_update_ps_status() 253 ret = smb->mains_online != dc || smb->usb_online != usb; in smb347_update_ps_status() 258 return ret; in smb347_update_ps_status() 272 bool ret; in smb347_is_ps_online() local 275 ret = smb->usb_online || smb->mains_online; in smb347_is_ps_online() 278 return ret; in smb347_is_ps_online() 291 int ret; in smb347_charging_status() local [all …]
|
D | olpc_battery.c | 62 int ret = 0; in olpc_ac_get_prop() local 67 ret = olpc_ec_cmd(EC_BAT_STATUS, NULL, 0, &status, 1); in olpc_ac_get_prop() 68 if (ret) in olpc_ac_get_prop() 69 return ret; in olpc_ac_get_prop() 74 ret = -EINVAL; in olpc_ac_get_prop() 77 return ret; in olpc_ac_get_prop() 121 int ret; in olpc_bat_get_health() local 123 ret = olpc_ec_cmd(EC_BAT_ERRCODE, NULL, 0, &ec_byte, 1); in olpc_bat_get_health() 124 if (ret) in olpc_bat_get_health() 125 return ret; in olpc_bat_get_health() [all …]
|
D | ds2780_battery.c | 78 int ret; in ds2780_read16() local 81 ret = ds2780_battery_io(dev_info, raw, addr, sizeof(raw), 0); in ds2780_read16() 82 if (ret < 0) in ds2780_read16() 83 return ret; in ds2780_read16() 114 int ret; in ds2780_save_eeprom() local 116 ret = ds2780_store_eeprom(dev_info->w1_dev, reg); in ds2780_save_eeprom() 117 if (ret < 0) in ds2780_save_eeprom() 118 return ret; in ds2780_save_eeprom() 120 ret = ds2780_recall_eeprom(dev_info->w1_dev, reg); in ds2780_save_eeprom() 121 if (ret < 0) in ds2780_save_eeprom() [all …]
|
D | ds2781_battery.c | 82 int ret; in ds2781_read16() local 85 ret = ds2781_battery_io(dev_info, raw, addr, sizeof(raw), 0); in ds2781_read16() 86 if (ret < 0) in ds2781_read16() 87 return ret; in ds2781_read16() 118 int ret; in ds2781_save_eeprom() local 120 ret = ds2781_store_eeprom(dev_info->w1_dev, reg); in ds2781_save_eeprom() 121 if (ret < 0) in ds2781_save_eeprom() 122 return ret; in ds2781_save_eeprom() 124 ret = ds2781_recall_eeprom(dev_info->w1_dev, reg); in ds2781_save_eeprom() 125 if (ret < 0) in ds2781_save_eeprom() [all …]
|
/drivers/media/i2c/m5mols/ |
D | m5mols_capture.c | 45 int ret = m5mols_read_u32(sd, addr_num, &num); in m5mols_read_rational() local 46 if (!ret) in m5mols_read_rational() 47 ret = m5mols_read_u32(sd, addr_den, &den); in m5mols_read_rational() 48 if (ret) in m5mols_read_rational() 49 return ret; in m5mols_read_rational() 51 return ret; in m5mols_read_rational() 63 int ret; in m5mols_capture_info() local 65 ret = m5mols_read_rational(sd, EXIF_INFO_EXPTIME_NU, in m5mols_capture_info() 67 if (ret) in m5mols_capture_info() 68 return ret; in m5mols_capture_info() [all …]
|
/drivers/rtc/ |
D | rtc-wm831x.c | 101 int ret; in wm831x_rtc_add_randomness() local 109 ret = wm831x_reg_read(wm831x, WM831X_RTC_WRITE_COUNTER); in wm831x_rtc_add_randomness() 110 if (ret >= 0) { in wm831x_rtc_add_randomness() 111 reg = ret; in wm831x_rtc_add_randomness() 115 ret); in wm831x_rtc_add_randomness() 127 int ret; in wm831x_rtc_readtime() local 131 ret = wm831x_reg_read(wm831x, WM831X_RTC_CONTROL); in wm831x_rtc_readtime() 132 if (ret < 0) { in wm831x_rtc_readtime() 133 dev_err(dev, "Failed to read RTC control: %d\n", ret); in wm831x_rtc_readtime() 134 return ret; in wm831x_rtc_readtime() [all …]
|
D | rtc-da9055.c | 31 int ret; in da9055_rtc_enable_alarm() local 33 ret = da9055_reg_update(rtc->da9055, DA9055_REG_ALARM_Y, in da9055_rtc_enable_alarm() 36 if (ret != 0) in da9055_rtc_enable_alarm() 38 ret); in da9055_rtc_enable_alarm() 41 ret = da9055_reg_update(rtc->da9055, DA9055_REG_ALARM_Y, in da9055_rtc_enable_alarm() 43 if (ret != 0) in da9055_rtc_enable_alarm() 45 "Failed to disable ALM: %d\n", ret); in da9055_rtc_enable_alarm() 48 return ret; in da9055_rtc_enable_alarm() 63 int ret; in da9055_read_alarm() local 66 ret = da9055_group_read(da9055, DA9055_REG_ALARM_MI, 5, v); in da9055_read_alarm() [all …]
|
/drivers/iio/frequency/ |
D | ad9523.c | 170 #define AD9523_CLK_DIST_DIV_PHASE_REV(x) ((ret >> 18) & 0x3F) 172 #define AD9523_CLK_DIST_DIV_REV(x) (((ret >> 8) & 0x3FF) + 1) 290 int ret; in ad9523_read() local 311 ret = spi_sync_transfer(st->spi, t, ARRAY_SIZE(t)); in ad9523_read() 312 if (ret < 0) in ad9523_read() 313 dev_err(&indio_dev->dev, "read failed (%d)", ret); in ad9523_read() 315 ret = be32_to_cpu(st->data[1].d32) & (0xFFFFFF >> in ad9523_read() 318 return ret; in ad9523_read() 324 int ret; in ad9523_write() local 340 ret = spi_sync_transfer(st->spi, t, ARRAY_SIZE(t)); in ad9523_write() [all …]
|
/drivers/video/backlight/ |
D | hx8357.c | 154 int ret = 0; in hx8357_spi_write_then_read() local 186 ret = spi_sync(lcd->spi, &msg); in hx8357_spi_write_then_read() 187 if (ret < 0) in hx8357_spi_write_then_read() 193 return ret; in hx8357_spi_write_then_read() 210 int ret; in hx8357_enter_standby() local 212 ret = hx8357_spi_write_byte(lcdev, HX8357_SET_DISPLAY_OFF); in hx8357_enter_standby() 213 if (ret < 0) in hx8357_enter_standby() 214 return ret; in hx8357_enter_standby() 218 ret = hx8357_spi_write_byte(lcdev, HX8357_ENTER_SLEEP_MODE); in hx8357_enter_standby() 219 if (ret < 0) in hx8357_enter_standby() [all …]
|
/drivers/media/tuners/ |
D | fc2580.c | 43 int ret; in fc2580_wr_regs() local 57 ret = i2c_transfer(priv->i2c, msg, 1); in fc2580_wr_regs() 58 if (ret == 1) { in fc2580_wr_regs() 59 ret = 0; in fc2580_wr_regs() 62 "len=%d\n", KBUILD_MODNAME, ret, reg, len); in fc2580_wr_regs() 63 ret = -EREMOTEIO; in fc2580_wr_regs() 65 return ret; in fc2580_wr_regs() 71 int ret; in fc2580_rd_regs() local 87 ret = i2c_transfer(priv->i2c, msg, 2); in fc2580_rd_regs() 88 if (ret == 2) { in fc2580_rd_regs() [all …]
|
/drivers/media/i2c/soc_camera/ |
D | rj54n1cb0c.c | 430 int ret; in reg_read() local 435 ret = i2c_smbus_write_byte_data(client, 0xff, reg >> 8); in reg_read() 436 if (ret < 0) in reg_read() 437 return ret; in reg_read() 447 int ret; in reg_write() local 452 ret = i2c_smbus_write_byte_data(client, 0xff, reg >> 8); in reg_write() 453 if (ret < 0) in reg_write() 454 return ret; in reg_write() 464 int ret; in reg_set() local 466 ret = reg_read(client, reg); in reg_set() [all …]
|
/drivers/net/wireless/libertas/ |
D | if_sdio.c | 149 int ret; in if_sdio_read_scratch() local 152 scratch = sdio_readb(card->func, card->scratch_reg, &ret); in if_sdio_read_scratch() 153 if (!ret) in if_sdio_read_scratch() 155 &ret) << 8; in if_sdio_read_scratch() 158 *err = ret; in if_sdio_read_scratch() 160 if (ret) in if_sdio_read_scratch() 168 int ret; in if_sdio_read_rx_unit() local 171 rx_unit = sdio_readb(card->func, IF_SDIO_RX_UNIT, &ret); in if_sdio_read_rx_unit() 173 if (ret) in if_sdio_read_rx_unit() 181 int ret; in if_sdio_read_rx_len() local [all …]
|
/drivers/net/dsa/ |
D | mv88e6xxx.c | 30 int ret; in mv88e6xxx_reg_wait_ready() local 34 ret = mdiobus_read(bus, sw_addr, 0); in mv88e6xxx_reg_wait_ready() 35 if (ret < 0) in mv88e6xxx_reg_wait_ready() 36 return ret; in mv88e6xxx_reg_wait_ready() 38 if ((ret & 0x8000) == 0) in mv88e6xxx_reg_wait_ready() 47 int ret; in __mv88e6xxx_reg_read() local 53 ret = mv88e6xxx_reg_wait_ready(bus, sw_addr); in __mv88e6xxx_reg_read() 54 if (ret < 0) in __mv88e6xxx_reg_read() 55 return ret; in __mv88e6xxx_reg_read() 58 ret = mdiobus_write(bus, sw_addr, 0, 0x9800 | (addr << 5) | reg); in __mv88e6xxx_reg_read() [all …]
|
/drivers/staging/iio/light/ |
D | isl29028.c | 100 int ret; in isl29028_enable_proximity() local 105 ret = regmap_update_bits(chip->regmap, ISL29028_REG_CONFIGURE, in isl29028_enable_proximity() 107 if (ret < 0) in isl29028_enable_proximity() 108 return ret; in isl29028_enable_proximity() 127 int ret = 0; in isl29028_set_als_ir_mode() local 131 ret = regmap_update_bits(chip->regmap, ISL29028_REG_CONFIGURE, in isl29028_set_als_ir_mode() 133 if (ret < 0) in isl29028_set_als_ir_mode() 134 return ret; in isl29028_set_als_ir_mode() 136 ret = regmap_update_bits(chip->regmap, ISL29028_REG_CONFIGURE, in isl29028_set_als_ir_mode() 141 ret = regmap_update_bits(chip->regmap, ISL29028_REG_CONFIGURE, in isl29028_set_als_ir_mode() [all …]
|