Home
last modified time | relevance | path

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

12345678910>>...270

/drivers/net/phy/mscc/
Dmscc_serdes.c17 int ret; in pll5g_detune() local
22 ret = vsc85xx_csr_write(phydev, MACRO_CTRL, in pll5g_detune()
24 if (ret) in pll5g_detune()
26 return ret; in pll5g_detune()
32 int ret; in pll5g_tune() local
36 ret = vsc85xx_csr_write(phydev, MACRO_CTRL, in pll5g_tune()
38 if (ret) in pll5g_tune()
40 return ret; in pll5g_tune()
48 int ret; in vsc85xx_sd6g_pll_cfg_wr() local
50 ret = vsc85xx_csr_write(phydev, MACRO_CTRL, in vsc85xx_sd6g_pll_cfg_wr()
[all …]
/drivers/net/wireless/ti/wlcore/
Dinit.c25 int ret, i; in wl1271_init_templates_config() local
29 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
33 if (ret < 0) in wl1271_init_templates_config()
34 return ret; in wl1271_init_templates_config()
36 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
40 if (ret < 0) in wl1271_init_templates_config()
41 return ret; in wl1271_init_templates_config()
44 ret = wl1271_cmd_template_set(wl, WL12XX_INVALID_ROLE_ID, in wl1271_init_templates_config()
49 if (ret < 0) in wl1271_init_templates_config()
50 return ret; in wl1271_init_templates_config()
[all …]
/drivers/media/dvb-frontends/cxd2880/
Dcxd2880_tnrdmd.c207 int ret; in p_init1() local
212 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in p_init1()
215 if (ret) in p_init1()
216 return ret; in p_init1()
233 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in p_init1()
236 if (ret) in p_init1()
237 return ret; in p_init1()
240 ret = cxd2880_io_write_multi_regs(tnr_dmd->io, in p_init1()
244 if (ret) in p_init1()
245 return ret; in p_init1()
[all …]
Dcxd2880_tnrdmd_dvbt2.c160 int ret; in x_tune_dvbt2_demod_setting() local
165 ret = cxd2880_io_write_multi_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
169 if (ret) in x_tune_dvbt2_demod_setting()
170 return ret; in x_tune_dvbt2_demod_setting()
172 ret = cxd2880_io_write_multi_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
176 if (ret) in x_tune_dvbt2_demod_setting()
177 return ret; in x_tune_dvbt2_demod_setting()
180 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
183 if (ret) in x_tune_dvbt2_demod_setting()
184 return ret; in x_tune_dvbt2_demod_setting()
[all …]
Dcxd2880_tnrdmd_dvbt.c100 int ret; in x_tune_dvbt_demod_setting() local
105 ret = cxd2880_io_write_multi_regs(tnr_dmd->io, in x_tune_dvbt_demod_setting()
109 if (ret) in x_tune_dvbt_demod_setting()
110 return ret; in x_tune_dvbt_demod_setting()
112 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt_demod_setting()
115 if (ret) in x_tune_dvbt_demod_setting()
116 return ret; in x_tune_dvbt_demod_setting()
132 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt_demod_setting()
135 if (ret) in x_tune_dvbt_demod_setting()
136 return ret; in x_tune_dvbt_demod_setting()
[all …]
Dcxd2880_tnrdmd_dvbt2_mon.c29 int ret; in cxd2880_tnrdmd_dvbt2_mon_sync_stat() local
40 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_sync_stat()
43 if (ret) in cxd2880_tnrdmd_dvbt2_mon_sync_stat()
44 return ret; in cxd2880_tnrdmd_dvbt2_mon_sync_stat()
46 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_sync_stat()
49 if (ret) in cxd2880_tnrdmd_dvbt2_mon_sync_stat()
50 return ret; in cxd2880_tnrdmd_dvbt2_mon_sync_stat()
89 int ret; in cxd2880_tnrdmd_dvbt2_mon_carrier_offset() local
100 ret = slvt_freeze_reg(tnr_dmd); in cxd2880_tnrdmd_dvbt2_mon_carrier_offset()
101 if (ret) in cxd2880_tnrdmd_dvbt2_mon_carrier_offset()
[all …]
Dcxd2880_tnrdmd_dvbt_mon.c30 int ret; in cxd2880_tnrdmd_dvbt_mon_sync_stat() local
40 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt_mon_sync_stat()
43 if (ret) in cxd2880_tnrdmd_dvbt_mon_sync_stat()
44 return ret; in cxd2880_tnrdmd_dvbt_mon_sync_stat()
46 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt_mon_sync_stat()
49 if (ret) in cxd2880_tnrdmd_dvbt_mon_sync_stat()
50 return ret; in cxd2880_tnrdmd_dvbt_mon_sync_stat()
59 return ret; in cxd2880_tnrdmd_dvbt_mon_sync_stat()
88 int ret; in cxd2880_tnrdmd_dvbt_mon_mode_guard() local
99 ret = slvt_freeze_reg(tnr_dmd); in cxd2880_tnrdmd_dvbt_mon_mode_guard()
[all …]
/drivers/net/wireless/ti/wl1251/
Dinit.c20 int ret; in wl1251_hw_init_hwenc_config() local
22 ret = wl1251_acx_feature_cfg(wl, 0); in wl1251_hw_init_hwenc_config()
23 if (ret < 0) { in wl1251_hw_init_hwenc_config()
25 return ret; in wl1251_hw_init_hwenc_config()
28 ret = wl1251_acx_default_key(wl, wl->default_key); in wl1251_hw_init_hwenc_config()
29 if (ret < 0) { in wl1251_hw_init_hwenc_config()
31 return ret; in wl1251_hw_init_hwenc_config()
39 int ret; in wl1251_hw_init_templates_config() local
43 ret = wl1251_cmd_template_set(wl, CMD_PROBE_REQ, NULL, in wl1251_hw_init_templates_config()
45 if (ret < 0) in wl1251_hw_init_templates_config()
[all …]
/drivers/media/usb/dvb-usb/
Daf9005-fe.c52 int ret; in af9005_write_word_agc() local
54 if ((ret = af9005_write_ofdm_register(d, reglo, (u8) (value & 0xff)))) in af9005_write_word_agc()
55 return ret; in af9005_write_word_agc()
63 int ret; in af9005_read_word_agc() local
66 if ((ret = af9005_read_ofdm_register(d, reglo, &temp0))) in af9005_read_word_agc()
67 return ret; in af9005_read_word_agc()
68 if ((ret = af9005_read_ofdm_register(d, reghi, &temp1))) in af9005_read_word_agc()
69 return ret; in af9005_read_word_agc()
94 int ret; in af9005_is_fecmon_available() local
99 ret = af9005_read_register_bits(state->d, xd_p_fec_vtb_rsd_mon_en, in af9005_is_fecmon_available()
[all …]
/drivers/media/i2c/
Dmax9271.c27 int ret; in max9271_read() local
31 ret = i2c_smbus_read_byte_data(dev->client, reg); in max9271_read()
32 if (ret < 0) in max9271_read()
35 __func__, reg, ret); in max9271_read()
37 return ret; in max9271_read()
42 int ret; in max9271_write() local
46 ret = i2c_smbus_write_byte_data(dev->client, reg, val); in max9271_write()
47 if (ret < 0) in max9271_write()
50 __func__, reg, ret); in max9271_write()
52 return ret; in max9271_write()
[all …]
/drivers/hwmon/pmbus/
Dmp2975.c93 int ret = pmbus_read_word_data(client, page, phase, reg); in mp2975_read_word_helper() local
95 return (ret > 0) ? ret & mask : ret; in mp2975_read_word_helper()
124 int ph_curr, ret; in mp2975_read_phase() local
126 ret = pmbus_read_word_data(client, page, phase, reg); in mp2975_read_phase()
127 if (ret < 0) in mp2975_read_phase()
128 return ret; in mp2975_read_phase()
131 ret >>= 8; in mp2975_read_phase()
132 ret &= 0xff; in mp2975_read_phase()
144 ph_curr = ret * 100 - 9800; in mp2975_read_phase()
153 ret = pmbus_read_word_data(client, page, phase, PMBUS_READ_IOUT); in mp2975_read_phase()
[all …]
/drivers/media/dvb-frontends/
Dlg2160.c30 #define lg_fail(ret) \ argument
33 __ret = (ret < 0); \
35 lg_err("error %d on line %d\n", ret, __LINE__); \
55 int ret; in lg216x_write_reg() local
64 ret = i2c_transfer(state->i2c_adap, &msg, 1); in lg216x_write_reg()
66 if (ret != 1) { in lg216x_write_reg()
68 msg.buf[0], msg.buf[1], msg.buf[2], ret); in lg216x_write_reg()
69 if (ret < 0) in lg216x_write_reg()
70 return ret; in lg216x_write_reg()
79 int ret; in lg216x_read_reg() local
[all …]
Dlgdt3306a.c54 #define lg_chkerr(ret) \ argument
57 __ret = (ret < 0); \
59 pr_err("error %d on line %d\n", ret, __LINE__); \
125 int ret; in lgdt3306a_write_reg() local
134 ret = i2c_transfer(state->i2c_adap, &msg, 1); in lgdt3306a_write_reg()
136 if (ret != 1) { in lgdt3306a_write_reg()
138 msg.buf[0], msg.buf[1], msg.buf[2], ret); in lgdt3306a_write_reg()
139 if (ret < 0) in lgdt3306a_write_reg()
140 return ret; in lgdt3306a_write_reg()
149 int ret; in lgdt3306a_read_reg() local
[all …]
Dmt312.c53 int ret; in mt312_read() local
66 ret = i2c_transfer(state->i2c, msg, 2); in mt312_read()
68 if (ret != 2) { in mt312_read()
69 printk(KERN_DEBUG "%s: ret == %d\n", __func__, ret); in mt312_read()
87 int ret; in mt312_write() local
113 ret = i2c_transfer(state->i2c, &msg, 1); in mt312_write()
115 if (ret != 1) { in mt312_write()
116 dprintk("%s: ret == %d\n", __func__, ret); in mt312_write()
146 int ret; in mt312_get_inversion() local
149 ret = mt312_readreg(state, VIT_MODE, &vit_mode); in mt312_get_inversion()
[all …]
Dzd1301_demod.c42 int ret; in zd1301_demod_set_frontend() local
52 ret = fe->ops.tuner_ops.set_params(fe); in zd1301_demod_set_frontend()
53 if (ret) in zd1301_demod_set_frontend()
55 ret = fe->ops.tuner_ops.get_if_frequency(fe, &if_frequency); in zd1301_demod_set_frontend()
56 if (ret) in zd1301_demod_set_frontend()
59 ret = -EINVAL; in zd1301_demod_set_frontend()
65 ret = -EINVAL; in zd1301_demod_set_frontend()
80 ret = -EINVAL; in zd1301_demod_set_frontend()
84 ret = zd1301_demod_wreg(dev, 0x6a60, 0x11); in zd1301_demod_set_frontend()
85 if (ret) in zd1301_demod_set_frontend()
[all …]
/drivers/media/platform/chips-media/
Dcoda-h264.c148 int i, ret; in rbsp_read_bits() local
155 ret = rbsp_read_bit(rbsp); in rbsp_read_bits()
156 if (ret < 0) in rbsp_read_bits()
157 return ret; in rbsp_read_bits()
158 tmp |= ret << (num - i - 1); in rbsp_read_bits()
169 int ret; in rbsp_write_bits() local
172 ret = rbsp_write_bit(rbsp, (value >> num) & 1); in rbsp_write_bits()
173 if (ret) in rbsp_write_bits()
174 return ret; in rbsp_write_bits()
184 int ret; in rbsp_read_uev() local
[all …]
/drivers/gpu/drm/panel/
Dpanel-novatek-nt35510.c400 int ret; in nt35510_send_long() local
404 ret = mipi_dsi_dcs_write(dsi, cmd, seqp, chunk); in nt35510_send_long()
405 if (ret < 0) { in nt35510_send_long()
407 return ret; in nt35510_send_long()
416 ret = mipi_dsi_generic_write(dsi, seqp, chunk); in nt35510_send_long()
417 if (ret < 0) { in nt35510_send_long()
419 return ret; in nt35510_send_long()
432 int ret; in nt35510_read_id() local
434 ret = mipi_dsi_dcs_read(dsi, MCS_CMD_READ_ID1, &id1, 1); in nt35510_read_id()
435 if (ret < 0) { in nt35510_read_id()
[all …]
/drivers/net/usb/
Dsmsc75xx.c80 int ret; in __smsc75xx_read_reg() local
90 ret = fn(dev, USB_VENDOR_REQUEST_READ_REGISTER, USB_DIR_IN in __smsc75xx_read_reg()
93 if (unlikely(ret < 4)) { in __smsc75xx_read_reg()
94 ret = ret < 0 ? ret : -ENODATA; in __smsc75xx_read_reg()
97 index, ret); in __smsc75xx_read_reg()
98 return ret; in __smsc75xx_read_reg()
104 return ret; in __smsc75xx_read_reg()
111 int ret; in __smsc75xx_write_reg() local
124 ret = fn(dev, USB_VENDOR_REQUEST_WRITE_REGISTER, USB_DIR_OUT in __smsc75xx_write_reg()
127 if (unlikely(ret < 0)) in __smsc75xx_write_reg()
[all …]
/drivers/video/backlight/
Dhx8357.c221 int ret = 0; in hx8357_spi_write_then_read() local
253 ret = spi_sync(lcd->spi, &msg); in hx8357_spi_write_then_read()
254 if (ret < 0) in hx8357_spi_write_then_read()
260 return ret; in hx8357_spi_write_then_read()
277 int ret; in hx8357_enter_standby() local
279 ret = hx8357_spi_write_byte(lcdev, HX8357_SET_DISPLAY_OFF); in hx8357_enter_standby()
280 if (ret < 0) in hx8357_enter_standby()
281 return ret; in hx8357_enter_standby()
285 ret = hx8357_spi_write_byte(lcdev, HX8357_ENTER_SLEEP_MODE); in hx8357_enter_standby()
286 if (ret < 0) in hx8357_enter_standby()
[all …]
/drivers/media/tuners/
Dm88rs6000t.c33 int ret; in m88rs6000t_set_demod_mclk() local
36 ret = regmap_read(dev->regmap, 0x15, &utmp); in m88rs6000t_set_demod_mclk()
37 if (ret) in m88rs6000t_set_demod_mclk()
98 ret = regmap_read(dev->regmap, 0x1D, &utmp); in m88rs6000t_set_demod_mclk()
99 if (ret) in m88rs6000t_set_demod_mclk()
108 ret = regmap_write(dev->regmap, 0x05, 0x40); in m88rs6000t_set_demod_mclk()
109 if (ret) in m88rs6000t_set_demod_mclk()
111 ret = regmap_write(dev->regmap, 0x11, 0x08); in m88rs6000t_set_demod_mclk()
112 if (ret) in m88rs6000t_set_demod_mclk()
114 ret = regmap_write(dev->regmap, 0x15, reg15); in m88rs6000t_set_demod_mclk()
[all …]
/drivers/devfreq/event/
Dexynos-ppmu.c131 int ret; in exynos_ppmu_disable() local
135 ret = regmap_write(info->regmap, PPMU_CNTENC, in exynos_ppmu_disable()
141 if (ret < 0) in exynos_ppmu_disable()
142 return ret; in exynos_ppmu_disable()
145 ret = regmap_read(info->regmap, PPMU_PMNC, &pmnc); in exynos_ppmu_disable()
146 if (ret < 0) in exynos_ppmu_disable()
147 return ret; in exynos_ppmu_disable()
150 ret = regmap_write(info->regmap, PPMU_PMNC, pmnc); in exynos_ppmu_disable()
151 if (ret < 0) in exynos_ppmu_disable()
152 return ret; in exynos_ppmu_disable()
[all …]
/drivers/phy/hisilicon/
Dphy-hi3670-usb3.c142 int ret; in hi3670_phy_cr_clk() local
145 ret = regmap_update_bits(usb31misc, USB_MISC_CFG54, in hi3670_phy_cr_clk()
147 if (ret) in hi3670_phy_cr_clk()
148 return ret; in hi3670_phy_cr_clk()
163 int ret, reg; in hi3670_phy_cr_start() local
170 ret = regmap_update_bits(usb31misc, USB_MISC_CFG54, reg, reg); in hi3670_phy_cr_start()
172 if (ret) in hi3670_phy_cr_start()
173 return ret; in hi3670_phy_cr_start()
175 ret = hi3670_phy_cr_clk(usb31misc); in hi3670_phy_cr_start()
176 if (ret) in hi3670_phy_cr_start()
[all …]
/drivers/net/wireless/mediatek/mt76/mt7915/
Dsoc.c43 int ret; in mt76_wmac_spi_read() local
46 ret = read_poll_timeout(mt76_rr, cur, !(cur & MT_TOP_SPI_POLLING_BIT), in mt76_wmac_spi_read()
49 if (ret) in mt76_wmac_spi_read()
50 return ret; in mt76_wmac_spi_read()
56 ret = read_poll_timeout(mt76_rr, cur, !(cur & MT_TOP_SPI_POLLING_BIT), in mt76_wmac_spi_read()
59 if (ret) in mt76_wmac_spi_read()
60 return ret; in mt76_wmac_spi_read()
70 int ret; in mt76_wmac_spi_write() local
73 ret = read_poll_timeout(mt76_rr, cur, !(cur & MT_TOP_SPI_POLLING_BIT), in mt76_wmac_spi_write()
76 if (ret) in mt76_wmac_spi_write()
[all …]
/drivers/misc/
Dgehc-achc.c66 int ret; in ezport_start_programming() local
73 ret = spi_sync_locked(spi, &msg); in ezport_start_programming()
74 if (ret) in ezport_start_programming()
85 ret = spi_sync_locked(spi, &msg); in ezport_start_programming()
89 return ret; in ezport_start_programming()
102 int ret; in ezport_get_status_register() local
104 ret = spi_w8r8(spi, EZPORT_CMD_RDSR); in ezport_get_status_register()
105 if (ret < 0) in ezport_get_status_register()
106 return ret; in ezport_get_status_register()
107 if (ret == 0xff) { in ezport_get_status_register()
[all …]
/drivers/net/pcs/
Dpcs-xpcs.c238 int ret; in xpcs_poll_reset() local
242 ret = xpcs_read(xpcs, dev, MDIO_CTRL1); in xpcs_poll_reset()
243 if (ret < 0) in xpcs_poll_reset()
244 return ret; in xpcs_poll_reset()
245 } while (ret & MDIO_CTRL1_RESET && --retries); in xpcs_poll_reset()
247 return (ret & MDIO_CTRL1_RESET) ? -ETIMEDOUT : 0; in xpcs_poll_reset()
253 int ret, dev; in xpcs_soft_reset() local
268 ret = xpcs_write(xpcs, dev, MDIO_CTRL1, MDIO_CTRL1_RESET); in xpcs_soft_reset()
269 if (ret < 0) in xpcs_soft_reset()
270 return ret; in xpcs_soft_reset()
[all …]

12345678910>>...270