Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 6017) sorted by relevance

12345678910>>...241

/drivers/net/wireless/ti/wlcore/
Dinit.c39 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 …]
/drivers/net/wireless/ti/wl1251/
Dinit.c34 int ret; in wl1251_hw_init_hwenc_config() local
36 ret = wl1251_acx_feature_cfg(wl, 0); 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 …]
/drivers/media/usb/dvb-usb/
Daf9005-fe.c61 int ret; in af9005_write_word_agc() local
63 if ((ret = af9005_write_ofdm_register(d, reglo, (u8) (value & 0xff)))) in af9005_write_word_agc()
64 return ret; in af9005_write_word_agc()
72 int ret; in af9005_read_word_agc() local
75 if ((ret = af9005_read_ofdm_register(d, reglo, &temp0))) in af9005_read_word_agc()
76 return ret; in af9005_read_word_agc()
77 if ((ret = af9005_read_ofdm_register(d, reghi, &temp1))) in af9005_read_word_agc()
78 return ret; in af9005_read_word_agc()
103 int ret; in af9005_is_fecmon_available() local
108 ret = af9005_read_register_bits(state->d, xd_p_fec_vtb_rsd_mon_en, in af9005_is_fecmon_available()
[all …]
/drivers/media/dvb-frontends/
Dlg2160.c40 #define lg_fail(ret) \ argument
43 __ret = (ret < 0); \
45 lg_err("error %d on line %d\n", ret, __LINE__); \
65 int ret; in lg216x_write_reg() local
74 ret = i2c_transfer(state->i2c_adap, &msg, 1); in lg216x_write_reg()
76 if (ret != 1) { in lg216x_write_reg()
78 msg.buf[0], msg.buf[1], msg.buf[2], ret); in lg216x_write_reg()
79 if (ret < 0) in lg216x_write_reg()
80 return ret; in lg216x_write_reg()
89 int ret; in lg216x_read_reg() local
[all …]
Dlgdt3306a.c51 #define lg_chkerr(ret) \ argument
54 __ret = (ret < 0); \
56 pr_err("error %d on line %d\n", ret, __LINE__); \
122 int ret; in lgdt3306a_write_reg() local
131 ret = i2c_transfer(state->i2c_adap, &msg, 1); in lgdt3306a_write_reg()
133 if (ret != 1) { in lgdt3306a_write_reg()
135 msg.buf[0], msg.buf[1], msg.buf[2], ret); in lgdt3306a_write_reg()
136 if (ret < 0) in lgdt3306a_write_reg()
137 return ret; in lgdt3306a_write_reg()
146 int ret; in lgdt3306a_read_reg() local
[all …]
Dzd1301_demod.c51 int ret; in zd1301_demod_set_frontend() local
61 ret = fe->ops.tuner_ops.set_params(fe); in zd1301_demod_set_frontend()
62 if (ret) in zd1301_demod_set_frontend()
64 ret = fe->ops.tuner_ops.get_if_frequency(fe, &if_frequency); in zd1301_demod_set_frontend()
65 if (ret) in zd1301_demod_set_frontend()
68 ret = -EINVAL; in zd1301_demod_set_frontend()
74 ret = -EINVAL; in zd1301_demod_set_frontend()
89 ret = -EINVAL; in zd1301_demod_set_frontend()
93 ret = zd1301_demod_wreg(dev, 0x6a60, 0x11); in zd1301_demod_set_frontend()
94 if (ret) in zd1301_demod_set_frontend()
[all …]
Dmt312.c66 int ret; in mt312_read() local
79 ret = i2c_transfer(state->i2c, msg, 2); in mt312_read()
81 if (ret != 2) { in mt312_read()
82 printk(KERN_DEBUG "%s: ret == %d\n", __func__, ret); in mt312_read()
100 int ret; in mt312_write() local
126 ret = i2c_transfer(state->i2c, &msg, 1); in mt312_write()
128 if (ret != 1) { in mt312_write()
129 dprintk("%s: ret == %d\n", __func__, ret); in mt312_write()
164 int ret; in mt312_get_inversion() local
167 ret = mt312_readreg(state, VIT_MODE, &vit_mode); in mt312_get_inversion()
[all …]
Dsi2165.c113 int ret; in si2165_write() local
118 ret = regmap_bulk_write(state->regmap, reg, src, count); in si2165_write()
120 if (ret) in si2165_write()
121 dev_err(&state->client->dev, "%s: ret == %d\n", __func__, ret); in si2165_write()
123 return ret; in si2165_write()
129 int ret = regmap_bulk_read(state->regmap, reg, val, count); in si2165_read() local
131 if (ret) { in si2165_read()
133 __func__, state->config.i2c_addr, reg, ret); in si2165_read()
134 return ret; in si2165_read()
147 int ret = regmap_read(state->regmap, reg, &val_tmp); in si2165_readreg8() local
[all …]
/drivers/video/backlight/
Dhx8357.c222 int ret = 0; in hx8357_spi_write_then_read() local
254 ret = spi_sync(lcd->spi, &msg); in hx8357_spi_write_then_read()
255 if (ret < 0) in hx8357_spi_write_then_read()
261 return ret; in hx8357_spi_write_then_read()
278 int ret; in hx8357_enter_standby() local
280 ret = hx8357_spi_write_byte(lcdev, HX8357_SET_DISPLAY_OFF); in hx8357_enter_standby()
281 if (ret < 0) in hx8357_enter_standby()
282 return ret; in hx8357_enter_standby()
286 ret = hx8357_spi_write_byte(lcdev, HX8357_ENTER_SLEEP_MODE); in hx8357_enter_standby()
287 if (ret < 0) in hx8357_enter_standby()
[all …]
/drivers/net/usb/
Dsmsc75xx.c92 int ret; in __smsc75xx_read_reg() local
102 ret = fn(dev, USB_VENDOR_REQUEST_READ_REGISTER, USB_DIR_IN in __smsc75xx_read_reg()
105 if (unlikely(ret < 0)) { in __smsc75xx_read_reg()
107 index, ret); in __smsc75xx_read_reg()
108 return ret; in __smsc75xx_read_reg()
114 return ret; in __smsc75xx_read_reg()
121 int ret; in __smsc75xx_write_reg() local
134 ret = fn(dev, USB_VENDOR_REQUEST_WRITE_REGISTER, USB_DIR_OUT in __smsc75xx_write_reg()
137 if (unlikely(ret < 0)) in __smsc75xx_write_reg()
139 index, ret); in __smsc75xx_write_reg()
[all …]
/drivers/devfreq/event/
Dexynos-ppmu.c111 int ret; in exynos_ppmu_disable() local
115 ret = regmap_write(info->regmap, PPMU_CNTENC, in exynos_ppmu_disable()
121 if (ret < 0) in exynos_ppmu_disable()
122 return ret; in exynos_ppmu_disable()
125 ret = regmap_read(info->regmap, PPMU_PMNC, &pmnc); in exynos_ppmu_disable()
126 if (ret < 0) in exynos_ppmu_disable()
127 return ret; in exynos_ppmu_disable()
130 ret = regmap_write(info->regmap, PPMU_PMNC, pmnc); in exynos_ppmu_disable()
131 if (ret < 0) in exynos_ppmu_disable()
132 return ret; in exynos_ppmu_disable()
[all …]
/drivers/media/tuners/
Dm88rs6000t.c42 int ret; in m88rs6000t_set_demod_mclk() local
45 ret = regmap_read(dev->regmap, 0x15, &utmp); in m88rs6000t_set_demod_mclk()
46 if (ret) in m88rs6000t_set_demod_mclk()
107 ret = regmap_read(dev->regmap, 0x1D, &utmp); in m88rs6000t_set_demod_mclk()
108 if (ret) in m88rs6000t_set_demod_mclk()
117 ret = regmap_write(dev->regmap, 0x05, 0x40); in m88rs6000t_set_demod_mclk()
118 if (ret) in m88rs6000t_set_demod_mclk()
120 ret = regmap_write(dev->regmap, 0x11, 0x08); in m88rs6000t_set_demod_mclk()
121 if (ret) in m88rs6000t_set_demod_mclk()
123 ret = regmap_write(dev->regmap, 0x15, reg15); in m88rs6000t_set_demod_mclk()
[all …]
/drivers/media/i2c/
Dov5640.c777 int ret; in ov5640_init_slave_id() local
791 ret = i2c_transfer(client->adapter, &msg, 1); in ov5640_init_slave_id()
792 if (ret < 0) { in ov5640_init_slave_id()
793 dev_err(&client->dev, "%s: failed with %d\n", __func__, ret); in ov5640_init_slave_id()
794 return ret; in ov5640_init_slave_id()
805 int ret; in ov5640_write_reg() local
816 ret = i2c_transfer(client->adapter, &msg, 1); in ov5640_write_reg()
817 if (ret < 0) { in ov5640_write_reg()
820 return ret; in ov5640_write_reg()
831 int ret; in ov5640_read_reg() local
[all …]
/drivers/iio/accel/
Dkxcjk-1013.c221 int ret; in kxcjk1013_set_mode() local
223 ret = i2c_smbus_read_byte_data(data->client, KXCJK1013_REG_CTRL1); in kxcjk1013_set_mode()
224 if (ret < 0) { in kxcjk1013_set_mode()
226 return ret; in kxcjk1013_set_mode()
230 ret &= ~KXCJK1013_REG_CTRL1_BIT_PC1; in kxcjk1013_set_mode()
232 ret |= KXCJK1013_REG_CTRL1_BIT_PC1; in kxcjk1013_set_mode()
234 ret = i2c_smbus_write_byte_data(data->client, in kxcjk1013_set_mode()
235 KXCJK1013_REG_CTRL1, ret); in kxcjk1013_set_mode()
236 if (ret < 0) { in kxcjk1013_set_mode()
238 return ret; in kxcjk1013_set_mode()
[all …]
/drivers/power/supply/
Dsmb347-charger.c237 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 …]
Dolpc_battery.c62 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()
123 int ret; in olpc_bat_get_health() local
125 ret = olpc_ec_cmd(EC_BAT_ERRCODE, NULL, 0, &ec_byte, 1); in olpc_bat_get_health()
126 if (ret) in olpc_bat_get_health()
127 return ret; in olpc_bat_get_health()
[all …]
Dds2780_battery.c79 int ret; in ds2780_read16() local
82 ret = ds2780_battery_io(dev_info, raw, addr, sizeof(raw), 0); in ds2780_read16()
83 if (ret < 0) in ds2780_read16()
84 return ret; in ds2780_read16()
115 int ret; in ds2780_save_eeprom() local
117 ret = ds2780_store_eeprom(dev_info->w1_dev, reg); in ds2780_save_eeprom()
118 if (ret < 0) in ds2780_save_eeprom()
119 return ret; in ds2780_save_eeprom()
121 ret = ds2780_recall_eeprom(dev_info->w1_dev, reg); in ds2780_save_eeprom()
122 if (ret < 0) in ds2780_save_eeprom()
[all …]
Dds2781_battery.c83 int ret; in ds2781_read16() local
86 ret = ds2781_battery_io(dev_info, raw, addr, sizeof(raw), 0); in ds2781_read16()
87 if (ret < 0) in ds2781_read16()
88 return ret; in ds2781_read16()
119 int ret; in ds2781_save_eeprom() local
121 ret = ds2781_store_eeprom(dev_info->w1_dev, reg); in ds2781_save_eeprom()
122 if (ret < 0) in ds2781_save_eeprom()
123 return ret; in ds2781_save_eeprom()
125 ret = ds2781_recall_eeprom(dev_info->w1_dev, reg); in ds2781_save_eeprom()
126 if (ret < 0) in ds2781_save_eeprom()
[all …]
/drivers/media/i2c/m5mols/
Dm5mols_capture.c45 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/iio/light/
Dus5182d.c208 int ret; in us5182d_oneshot_en() local
210 ret = i2c_smbus_read_byte_data(data->client, US5182D_REG_CFG0); in us5182d_oneshot_en()
211 if (ret < 0) in us5182d_oneshot_en()
212 return ret; in us5182d_oneshot_en()
218 ret = ret | US5182D_CFG0_ONESHOT_EN; in us5182d_oneshot_en()
220 return i2c_smbus_write_byte_data(data->client, US5182D_REG_CFG0, ret); in us5182d_oneshot_en()
225 int ret; in us5182d_set_opmode() local
230 ret = i2c_smbus_read_byte_data(data->client, US5182D_REG_CFG0); in us5182d_set_opmode()
231 if (ret < 0) in us5182d_set_opmode()
232 return ret; in us5182d_set_opmode()
[all …]
Disl29028.c124 int sleep_index, ret; in isl29028_set_proxim_sampling() local
131 ret = regmap_update_bits(chip->regmap, ISL29028_REG_CONFIGURE, in isl29028_set_proxim_sampling()
135 if (ret < 0) { in isl29028_set_proxim_sampling()
137 __func__, ret); in isl29028_set_proxim_sampling()
138 return ret; in isl29028_set_proxim_sampling()
144 return ret; in isl29028_set_proxim_sampling()
149 int prox_index, ret; in isl29028_enable_proximity() local
151 ret = isl29028_set_proxim_sampling(chip, chip->prox_sampling_int, in isl29028_enable_proximity()
153 if (ret < 0) in isl29028_enable_proximity()
154 return ret; in isl29028_enable_proximity()
[all …]
/drivers/staging/typec/fusb302/
Dfusb302.c297 int ret = 0; in fusb302_i2c_write() local
306 ret = i2c_smbus_write_byte_data(chip->i2c_client, address, data); in fusb302_i2c_write()
307 if (ret < 0) in fusb302_i2c_write()
309 data, address, ret); in fusb302_i2c_write()
312 return ret; in fusb302_i2c_write()
318 int ret = 0; in fusb302_i2c_block_write() local
321 return ret; in fusb302_i2c_block_write()
329 ret = i2c_smbus_write_i2c_block_data(chip->i2c_client, address, in fusb302_i2c_block_write()
331 if (ret < 0) in fusb302_i2c_block_write()
333 address, length, ret); in fusb302_i2c_block_write()
[all …]
/drivers/gpu/drm/amd/powerplay/
Damd_powerplay.c55 int ret; in pp_early_init() local
58 ret = smum_early_init(pp_handle); in pp_early_init()
59 if (ret) in pp_early_init()
60 return ret; in pp_early_init()
66 ret = hwmgr_early_init(pp_handle); in pp_early_init()
67 if (ret) { in pp_early_init()
72 ret = eventmgr_early_init(pp_handle); in pp_early_init()
73 if (ret) { in pp_early_init()
86 int ret = 0; in pp_sw_init() local
89 ret = pp_check(pp_handle); in pp_sw_init()
[all …]
/drivers/rtc/
Drtc-wm831x.c101 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 …]
/drivers/iio/frequency/
Dad9523.c170 #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()
325 int ret; in ad9523_write() local
341 ret = spi_sync_transfer(st->spi, t, ARRAY_SIZE(t)); in ad9523_write()
[all …]

12345678910>>...241