/openbmc/linux/drivers/net/phy/mscc/ |
H A D | mscc_serdes.c | 17 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 …]
|
/openbmc/linux/drivers/net/wireless/ti/wlcore/ |
H A D | init.c | 25 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 …]
|
/openbmc/linux/fs/smb/server/ |
H A D | ndr.c | 34 int ret; in ndr_write_int16() local 36 ret = try_to_realloc_ndr_blob(n, sizeof(value)); in ndr_write_int16() 37 if (ret) in ndr_write_int16() 38 return ret; in ndr_write_int16() 49 int ret; in ndr_write_int32() local 51 ret = try_to_realloc_ndr_blob(n, sizeof(value)); in ndr_write_int32() 52 if (ret) in ndr_write_int32() 53 return ret; in ndr_write_int32() 64 int ret; in ndr_write_int64() local 66 ret = try_to_realloc_ndr_blob(n, sizeof(value)); in ndr_write_int64() [all …]
|
/openbmc/linux/sound/soc/qcom/ |
H A D | lpass-hdmi.c | 26 unsigned int ret; in lpass_hdmi_daiops_hw_params() local 77 ret = regmap_field_write(drvdata->tx_ctl->soft_reset, LPASS_TX_CTL_RESET); in lpass_hdmi_daiops_hw_params() 78 if (ret) in lpass_hdmi_daiops_hw_params() 79 return ret; in lpass_hdmi_daiops_hw_params() 81 ret = regmap_field_write(drvdata->tx_ctl->soft_reset, LPASS_TX_CTL_CLEAR); in lpass_hdmi_daiops_hw_params() 82 if (ret) in lpass_hdmi_daiops_hw_params() 83 return ret; in lpass_hdmi_daiops_hw_params() 85 ret = regmap_field_write(drvdata->hdmitx_legacy_en, LPASS_HDMITX_LEGACY_DISABLE); in lpass_hdmi_daiops_hw_params() 86 if (ret) in lpass_hdmi_daiops_hw_params() 87 return ret; in lpass_hdmi_daiops_hw_params() [all …]
|
/openbmc/linux/drivers/net/wireless/ti/wl1251/ |
H A D | init.c | 20 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 …]
|
/openbmc/u-boot/test/log/ |
H A D | log_test.c | 28 int ret; in log_test() local 39 ret = log_add_filter("console", cat_list, LOGL_MAX, NULL); in log_test() 40 if (ret < 0) in log_test() 41 return ret; in log_test() 43 ret = log_remove_filter("console", ret); in log_test() 44 if (ret < 0) in log_test() 45 return ret; in log_test() 54 ret = log_add_filter("console", cat_list, LOGL_MAX, NULL); in log_test() 55 if (ret < 0) in log_test() 56 return ret; in log_test() [all …]
|
/openbmc/linux/drivers/media/dvb-frontends/cxd2880/ |
H A D | cxd2880_tnrdmd.c | 207 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 …]
|
H A D | cxd2880_tnrdmd_dvbt2.c | 160 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 …]
|
H A D | cxd2880_tnrdmd_dvbt.c | 100 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 …]
|
/openbmc/linux/net/wireless/ |
H A D | rdev-ops.h | 18 int ret; in rdev_suspend() local 20 ret = rdev->ops->suspend(&rdev->wiphy, wowlan); in rdev_suspend() 21 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_suspend() 22 return ret; in rdev_suspend() 27 int ret; in rdev_resume() local 29 ret = rdev->ops->resume(&rdev->wiphy); in rdev_resume() 30 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_resume() 31 return ret; in rdev_resume() 48 struct wireless_dev *ret; in rdev_add_virtual_intf() local 50 ret = rdev->ops->add_virtual_intf(&rdev->wiphy, name, name_assign_type, in rdev_add_virtual_intf() [all …]
|
/openbmc/u-boot/lib/efi_selftest/ |
H A D | efi_selftest_hii.c | 36 efi_status_t ret; in setup() local 41 ret = boottime->locate_protocol(&hii_database_protocol_guid, NULL, in setup() 43 if (ret != EFI_SUCCESS) { in setup() 50 ret = boottime->locate_protocol(&hii_string_protocol_guid, NULL, in setup() 52 if (ret != EFI_SUCCESS) { in setup() 77 efi_status_t ret; in test_hii_database_new_package_list() local 80 ret = hii_database_protocol->new_package_list(hii_database_protocol, in test_hii_database_new_package_list() 83 if (ret != EFI_SUCCESS || !handle) { in test_hii_database_new_package_list() 85 (unsigned int)ret); in test_hii_database_new_package_list() 89 ret = hii_database_protocol->remove_package_list(hii_database_protocol, in test_hii_database_new_package_list() [all …]
|
/openbmc/linux/drivers/media/usb/dvb-usb/ |
H A D | af9005-fe.c | 52 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 …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | tc_bpf.c | 31 int ret; in test_tc_bpf_basic() local 33 ret = bpf_prog_get_info_by_fd(fd, &info, &info_len); in test_tc_bpf_basic() 34 if (!ASSERT_OK(ret, "bpf_prog_get_info_by_fd")) in test_tc_bpf_basic() 35 return ret; in test_tc_bpf_basic() 37 ret = bpf_tc_attach(hook, &opts); in test_tc_bpf_basic() 38 if (!ASSERT_OK(ret, "bpf_tc_attach")) in test_tc_bpf_basic() 39 return ret; in test_tc_bpf_basic() 48 ret = bpf_tc_attach(hook, &opts); in test_tc_bpf_basic() 49 if (!ASSERT_OK(ret, "bpf_tc_attach replace mode")) in test_tc_bpf_basic() 53 ret = bpf_tc_query(hook, &opts); in test_tc_bpf_basic() [all …]
|
/openbmc/u-boot/drivers/usb/eth/ |
H A D | lan78xx.c | 78 int ret; in lan78xx_read_raw_otp() local 81 ret = lan7x_read_reg(udev, LAN78XX_OTP_PWR_DN, &buf); in lan78xx_read_raw_otp() 82 if (ret) in lan78xx_read_raw_otp() 83 return ret; in lan78xx_read_raw_otp() 87 ret = lan7x_write_reg(udev, LAN78XX_OTP_PWR_DN, 0); in lan78xx_read_raw_otp() 88 if (ret) in lan78xx_read_raw_otp() 89 return ret; in lan78xx_read_raw_otp() 91 ret = lan7x_wait_for_bit(udev, "LAN78XX_OTP_PWR_DN_PWRDN_N", in lan78xx_read_raw_otp() 95 if (ret) in lan78xx_read_raw_otp() 96 return ret; in lan78xx_read_raw_otp() [all …]
|
/openbmc/linux/drivers/usb/typec/tcpm/ |
H A D | maxim_contaminant.c | 80 int ret; in max_contaminant_read_adc_mv() local 83 ret = regmap_update_bits(regmap, TCPC_VENDOR_ADC_CTRL1, ADCINSEL_MASK, in max_contaminant_read_adc_mv() 85 if (ret < 0) in max_contaminant_read_adc_mv() 86 return ret; in max_contaminant_read_adc_mv() 89 ret = regmap_update_bits(regmap, TCPC_VENDOR_ADC_CTRL1, ADCEN, ADCEN); in max_contaminant_read_adc_mv() 90 if (ret < 0) in max_contaminant_read_adc_mv() 91 return ret; in max_contaminant_read_adc_mv() 94 ret = max_tcpci_read8(chip, TCPC_VENDOR_FLADC_STATUS, &fladc); in max_contaminant_read_adc_mv() 95 if (ret < 0) in max_contaminant_read_adc_mv() 96 return ret; in max_contaminant_read_adc_mv() [all …]
|
/openbmc/linux/drivers/phy/hisilicon/ |
H A D | phy-hi3670-usb3.c | 143 int ret; in hi3670_phy_cr_clk() local 146 ret = regmap_update_bits(usb31misc, USB_MISC_CFG54, in hi3670_phy_cr_clk() 148 if (ret) in hi3670_phy_cr_clk() 149 return ret; in hi3670_phy_cr_clk() 164 int ret, reg; in hi3670_phy_cr_start() local 171 ret = regmap_update_bits(usb31misc, USB_MISC_CFG54, reg, reg); in hi3670_phy_cr_start() 173 if (ret) in hi3670_phy_cr_start() 174 return ret; in hi3670_phy_cr_start() 176 ret = hi3670_phy_cr_clk(usb31misc); in hi3670_phy_cr_start() 177 if (ret) in hi3670_phy_cr_start() [all …]
|
/openbmc/linux/drivers/media/platform/chips-media/ |
H A D | coda-h264.c | 148 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 …]
|
/openbmc/linux/drivers/hwmon/pmbus/ |
H A D | mp2975.c | 133 int ret = pmbus_read_word_data(client, page, phase, reg); in mp2975_read_word_helper() local 135 return (ret > 0) ? ret & mask : ret; in mp2975_read_word_helper() 199 int ph_curr, ret; in mp2975_read_phase() local 201 ret = pmbus_read_word_data(client, page, phase, reg); in mp2975_read_phase() 202 if (ret < 0) in mp2975_read_phase() 203 return ret; in mp2975_read_phase() 206 ret >>= 8; in mp2975_read_phase() 207 ret &= 0xff; in mp2975_read_phase() 219 ph_curr = ret * 100 - 9800; in mp2975_read_phase() 228 ret = pmbus_read_word_data(client, page, phase, PMBUS_READ_IOUT); in mp2975_read_phase() [all …]
|
/openbmc/linux/drivers/usb/gadget/udc/cdns2/ |
H A D | cdns2-debug.h | 17 int ret; in cdns2_decode_usb_irq() local 19 ret = snprintf(str, size, "usbirq: 0x%02x - ", usb_irq); in cdns2_decode_usb_irq() 22 ret += snprintf(str + ret, size - ret, "SOF "); in cdns2_decode_usb_irq() 24 ret += snprintf(str + ret, size - ret, "SUTOK "); in cdns2_decode_usb_irq() 26 ret += snprintf(str + ret, size - ret, "SETUP "); in cdns2_decode_usb_irq() 28 ret += snprintf(str + ret, size - ret, "Suspend "); in cdns2_decode_usb_irq() 30 ret += snprintf(str + ret, size - ret, "Reset "); in cdns2_decode_usb_irq() 32 ret += snprintf(str + ret, size - ret, "HS "); in cdns2_decode_usb_irq() 34 ret += snprintf(str + ret, size - ret, "LPM "); in cdns2_decode_usb_irq() 36 ret += snprintf(str + ret, size - ret, ", EXT: 0x%02x - ", ext_irq); in cdns2_decode_usb_irq() [all …]
|
/openbmc/linux/drivers/media/i2c/ |
H A D | max9271.c | 27 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 …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | soc.c | 45 int ret; in mt76_wmac_spi_read() local 48 ret = read_poll_timeout(mt76_rr, cur, !(cur & MT_TOP_SPI_POLLING_BIT), in mt76_wmac_spi_read() 51 if (ret) in mt76_wmac_spi_read() 52 return ret; in mt76_wmac_spi_read() 58 ret = read_poll_timeout(mt76_rr, cur, !(cur & MT_TOP_SPI_POLLING_BIT), in mt76_wmac_spi_read() 61 if (ret) in mt76_wmac_spi_read() 62 return ret; in mt76_wmac_spi_read() 72 int ret; in mt76_wmac_spi_write() local 75 ret = read_poll_timeout(mt76_rr, cur, !(cur & MT_TOP_SPI_POLLING_BIT), in mt76_wmac_spi_write() 78 if (ret) in mt76_wmac_spi_write() [all …]
|
/openbmc/qemu/tcg/ |
H A D | tcg-op.c | 338 void tcg_gen_mov_i32(TCGv_i32 ret, TCGv_i32 arg) in tcg_gen_mov_i32() argument 340 if (ret != arg) { in tcg_gen_mov_i32() 341 tcg_gen_op2_i32(INDEX_op_mov_i32, ret, arg); in tcg_gen_mov_i32() 345 void tcg_gen_movi_i32(TCGv_i32 ret, int32_t arg) in tcg_gen_movi_i32() argument 347 tcg_gen_mov_i32(ret, tcg_constant_i32(arg)); in tcg_gen_movi_i32() 350 void tcg_gen_add_i32(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2) in tcg_gen_add_i32() argument 352 tcg_gen_op3_i32(INDEX_op_add_i32, ret, arg1, arg2); in tcg_gen_add_i32() 355 void tcg_gen_addi_i32(TCGv_i32 ret, TCGv_i32 arg1, int32_t arg2) in tcg_gen_addi_i32() argument 359 tcg_gen_mov_i32(ret, arg1); in tcg_gen_addi_i32() 361 tcg_gen_add_i32(ret, arg1, tcg_constant_i32(arg2)); in tcg_gen_addi_i32() [all …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | lg2160.c | 30 #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 …]
|
H A D | zd1301_demod.c | 42 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 …]
|
/openbmc/u-boot/drivers/adc/ |
H A D | adc-uclass.c | 52 int ret = 0; in adc_supply_enable() local 56 ret = regulator_set_enable(uc_pdata->vdd_supply, true); in adc_supply_enable() 59 if (!ret && uc_pdata->vss_supply) { in adc_supply_enable() 61 ret = regulator_set_enable(uc_pdata->vss_supply, true); in adc_supply_enable() 64 if (ret) in adc_supply_enable() 67 return ret; in adc_supply_enable() 106 int ret; in adc_start_channel() local 111 ret = check_channel(dev, channel, CHECK_NUMBER, __func__); in adc_start_channel() 112 if (ret) in adc_start_channel() 113 return ret; in adc_start_channel() [all …]
|