| /OK3568_Linux_fs/kernel/drivers/usb/typec/tcpm/ |
| H A D | tcpci.c | 91 int ret; in tcpci_set_cc() local 93 ret = regmap_read(tcpci->regmap, TCPC_POWER_STATUS, ®); in tcpci_set_cc() 94 if (ret < 0) in tcpci_set_cc() 95 return ret; in tcpci_set_cc() 99 ret = regmap_read(tcpci->regmap, TCPC_TCPC_CTRL, ®); in tcpci_set_cc() 100 if (ret < 0) in tcpci_set_cc() 101 return ret; in tcpci_set_cc() 151 ret = regmap_write(tcpci->regmap, TCPC_ROLE_CTRL, reg); in tcpci_set_cc() 152 if (ret < 0) in tcpci_set_cc() 153 return ret; in tcpci_set_cc() [all …]
|
| H A D | tcpci_et7303.c | 72 int ret; in et7303_init() local 76 ret = et7303_write8(chip, ET7303_RTCTRL8, in et7303_init() 79 ret |= et7303_write8(chip, ET7303_RTCTRL14, 0x0F); in et7303_init() 81 ret |= et7303_write8(chip, ET7303_RTCTRL15, 0x04); in et7303_init() 83 ret |= et7303_write16(chip, ET7303_RTCTRL16, 330); in et7303_init() 85 if (ret < 0) in et7303_init() 86 dev_err(chip->dev, "fail to init registers(%d)\n", ret); in et7303_init() 88 return ret; in et7303_init() 95 int ret = 0; in et7303_set_vbus() local 103 ret = regulator_enable(chip->vbus); in et7303_set_vbus() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/can/softing/ |
| H A D | softing_fw.c | 22 int ret; in _softing_fct_cmd() local 34 ret = ioread8(&card->dpram[DPRAM_FCT_HOST]) + in _softing_fct_cmd() 38 if (ret == RES_OK) in _softing_fct_cmd() 42 if ((ret != vector) || time_after(jiffies, stamp)) in _softing_fct_cmd() 48 ret = (ret == RES_NONE) ? -ETIMEDOUT : -ECANCELED; in _softing_fct_cmd() 49 dev_alert(&card->pdev->dev, "firmware %s failed (%i)\n", msg, ret); in _softing_fct_cmd() 50 return ret; in _softing_fct_cmd() 55 int ret; in softing_fct_cmd() local 57 ret = _softing_fct_cmd(card, cmd, 0, msg); in softing_fct_cmd() 58 if (ret > 0) { in softing_fct_cmd() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/panel/ |
| H A D | panel-elida-kd35t133.c | 55 int ret; \ 56 ret = mipi_dsi_dcs_write_buffer(dsi, b, ARRAY_SIZE(b)); \ 57 if (ret < 0) \ 58 return ret; \ 99 int ret; in kd35t133_unprepare() local 104 ret = mipi_dsi_dcs_set_display_off(dsi); in kd35t133_unprepare() 105 if (ret < 0) in kd35t133_unprepare() 106 dev_err(ctx->dev, "failed to set display off: %d\n", ret); in kd35t133_unprepare() 108 ret = mipi_dsi_dcs_enter_sleep_mode(dsi); in kd35t133_unprepare() 109 if (ret < 0) { in kd35t133_unprepare() [all …]
|
| H A D | panel-sharp-ls043t1le01.c | 44 int ret; in sharp_nt_panel_init() local 48 ret = mipi_dsi_dcs_exit_sleep_mode(dsi); in sharp_nt_panel_init() 49 if (ret < 0) in sharp_nt_panel_init() 50 return ret; in sharp_nt_panel_init() 55 ret = mipi_dsi_dcs_write(dsi, 0xae, (u8[]){ 0x03 }, 1); in sharp_nt_panel_init() 56 if (ret < 0) in sharp_nt_panel_init() 57 return ret; in sharp_nt_panel_init() 60 ret = mipi_dsi_dcs_set_pixel_format(dsi, MIPI_DCS_PIXEL_FMT_24BIT | in sharp_nt_panel_init() 62 if (ret < 0) in sharp_nt_panel_init() 63 return ret; in sharp_nt_panel_init() [all …]
|
| /OK3568_Linux_fs/u-boot/board/freescale/common/ |
| H A D | diu_ch7301.c | 51 int ret; in diu_set_dvi_encoder() local 55 ret = i2c_write(CONFIG_SYS_I2C_DVI_ADDR, I2C_DVI_TEST_PATTERN_REG, 1, in diu_set_dvi_encoder() 57 if (ret) { in diu_set_dvi_encoder() 59 return ret; in diu_set_dvi_encoder() 62 ret = i2c_write(CONFIG_SYS_I2C_DVI_ADDR, I2C_DVI_INPUT_DATA_FORMAT_REG, in diu_set_dvi_encoder() 64 if (ret) { in diu_set_dvi_encoder() 66 return ret; in diu_set_dvi_encoder() 71 ret = i2c_write(CONFIG_SYS_I2C_DVI_ADDR, I2C_DVI_SYNC_POLARITY_REG, 1, in diu_set_dvi_encoder() 73 if (ret) { in diu_set_dvi_encoder() 75 return ret; in diu_set_dvi_encoder() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/iio/common/ms_sensors/ |
| H A D | ms_sensors_i2c.c | 49 int ret; in ms_sensors_reset() local 52 ret = i2c_smbus_write_byte(client, cmd); in ms_sensors_reset() 53 if (ret) { in ms_sensors_reset() 55 return ret; in ms_sensors_reset() 75 int ret; in ms_sensors_read_prom_word() local 78 ret = i2c_smbus_read_word_swapped(client, cmd); in ms_sensors_read_prom_word() 79 if (ret < 0) { in ms_sensors_read_prom_word() 81 return ret; in ms_sensors_read_prom_word() 83 *word = ret; in ms_sensors_read_prom_word() 107 int ret; in ms_sensors_convert_and_read() local [all …]
|
| /OK3568_Linux_fs/u-boot/lib/rsa/ |
| H A D | rsa-sign.c | 64 int ret; in rsa_pem_get_pub_key() local 79 ret = -EINVAL; in rsa_pem_get_pub_key() 87 ret = -EINVAL; in rsa_pem_get_pub_key() 95 ret = -EINVAL; in rsa_pem_get_pub_key() 111 return ret; in rsa_pem_get_pub_key() 130 int ret; in rsa_engine_get_pub_key() local 158 ret = -EINVAL; in rsa_engine_get_pub_key() 169 return ret; in rsa_engine_get_pub_key() 241 int ret; in rsa_engine_get_priv_key() local 269 ret = -EINVAL; in rsa_engine_get_priv_key() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/selftests/ |
| H A D | i915_sw_fence.c | 83 int ret; in test_self() local 90 ret = __test_self(fence); in test_self() 93 return ret; in test_self() 99 int ret = -EINVAL; in test_dag() local 116 ret = -ENOMEM; in test_dag() 128 ret = -ENOMEM; in test_dag() 153 ret = 0; in test_dag() 156 ret = -EINVAL; in test_dag() 160 ret = -EINVAL; in test_dag() 164 ret = -EINVAL; in test_dag() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/ |
| H A D | gc2385.c | 257 int ret; in gc2385_write_reg() local 267 ret = i2c_transfer(client->adapter, &msg, 1); in gc2385_write_reg() 268 if (ret >= 0) in gc2385_write_reg() 274 return ret; in gc2385_write_reg() 281 int ret = 0; in gc2385_write_array() local 283 for (i = 0; ret == 0 && regs[i].addr != REG_NULL; i++) in gc2385_write_array() 284 ret = gc2385_write_reg(client, regs[i].addr, regs[i].val); in gc2385_write_array() 286 return ret; in gc2385_write_array() 294 int ret; in gc2385_read_reg() local 308 ret = i2c_transfer(client->adapter, msg, 2); in gc2385_read_reg() [all …]
|
| H A D | gc4c33.c | 1188 int ret = 0; in gc4c33_write_array() local 1190 for (i = 0; ret == 0 && regs[i].addr != REG_NULL; i++) in gc4c33_write_array() 1191 ret = gc4c33_write_reg(client, regs[i].addr, in gc4c33_write_array() 1194 return ret; in gc4c33_write_array() 1205 int ret; in gc4c33_read_reg() local 1223 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in gc4c33_read_reg() 1224 if (ret != ARRAY_SIZE(msgs)) in gc4c33_read_reg() 1451 int ret = 0; in gc4c33_set_dpcc_cfg() local 1455 ret = gc4c33_write_reg(gc4c33->client, in gc4c33_set_dpcc_cfg() 1460 ret |= gc4c33_write_reg(gc4c33->client, in gc4c33_set_dpcc_cfg() [all …]
|
| H A D | mt9p031.c | 168 int ret; in mt9p031_set_output_control() local 170 ret = mt9p031_write(client, MT9P031_OUTPUT_CONTROL, value); in mt9p031_set_output_control() 171 if (ret < 0) in mt9p031_set_output_control() 172 return ret; in mt9p031_set_output_control() 182 int ret; in mt9p031_set_mode2() local 184 ret = mt9p031_write(client, MT9P031_READ_MODE_2, value); in mt9p031_set_mode2() 185 if (ret < 0) in mt9p031_set_mode2() 186 return ret; in mt9p031_set_mode2() 195 int ret; in mt9p031_reset() local 198 ret = mt9p031_write(client, MT9P031_RST, MT9P031_RST_ENABLE); in mt9p031_reset() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/ |
| H A D | trace.h | 21 TP_PROTO(struct usb_gadget *g, int ret), 22 TP_ARGS(g, ret), 42 __field(int, ret) 63 __entry->ret = ret; 81 __entry->ret) 85 TP_PROTO(struct usb_gadget *g, int ret), 86 TP_ARGS(g, ret) 90 TP_PROTO(struct usb_gadget *g, int ret), 91 TP_ARGS(g, ret) 95 TP_PROTO(struct usb_gadget *g, int ret), [all …]
|
| /OK3568_Linux_fs/kernel/drivers/platform/x86/ |
| H A D | intel_telemetry_pltdrv.c | 206 int ret; in telemetry_check_evtid() local 208 ret = telem_get_unitconfig(telem_unit, &unit_config); in telemetry_check_evtid() 209 if (ret < 0) in telemetry_check_evtid() 210 return ret; in telemetry_check_evtid() 263 int ret; in telemetry_plt_config_pss_event() local 266 ret = intel_punit_ipc_command(IPC_PUNIT_BIOS_WRITE_TELE_EVENT, in telemetry_plt_config_pss_event() 269 return ret; in telemetry_plt_config_pss_event() 277 int ret, index, idx; in telemetry_setup_iossevtconfig() local 286 ret = intel_scu_ipc_dev_command(scu, IOSS_TELEM, in telemetry_setup_iossevtconfig() 289 if (ret) { in telemetry_setup_iossevtconfig() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/platform/chrome/ |
| H A D | cros_ec_lightbar.c | 60 int ret = 0; in lb_throttle() local 72 ret = -EINTR; in lb_throttle() 82 return ret; in lb_throttle() 111 int ret; in get_lightbar_version() local 121 ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); in get_lightbar_version() 122 if (ret < 0 && ret != -EINVAL) { in get_lightbar_version() 123 ret = 0; in get_lightbar_version() 134 ret = 1; in get_lightbar_version() 145 ret = 1; in get_lightbar_version() 150 ret = 0; in get_lightbar_version() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/net/ |
| H A D | dwc_eth_qos.c | 402 int ret; in eqos_mdio_read() local 407 ret = eqos_mdio_wait_idle(eqos); in eqos_mdio_read() 408 if (ret) { in eqos_mdio_read() 410 return ret; in eqos_mdio_read() 427 ret = eqos_mdio_wait_idle(eqos); in eqos_mdio_read() 428 if (ret) { in eqos_mdio_read() 430 return ret; in eqos_mdio_read() 446 int ret; in eqos_mdio_write() local 451 ret = eqos_mdio_wait_idle(eqos); in eqos_mdio_write() 452 if (ret) { in eqos_mdio_write() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/usb/em28xx/ |
| H A D | em28xx-i2c.c | 86 int ret; in em2800_i2c_send_bytes() local 103 ret = dev->em28xx_write_regs(dev, 4 - len, &b2[4 - len], 2 + len); in em2800_i2c_send_bytes() 104 if (ret != 2 + len) { in em2800_i2c_send_bytes() 107 addr, ret); in em2800_i2c_send_bytes() 108 return (ret < 0) ? ret : -EIO; in em2800_i2c_send_bytes() 112 ret = dev->em28xx_read_reg(dev, 0x05); in em2800_i2c_send_bytes() 113 if (ret == 0x80 + len - 1) in em2800_i2c_send_bytes() 115 if (ret == 0x94 + len - 1) { in em2800_i2c_send_bytes() 116 dprintk(1, "R05 returned 0x%02x: I2C ACK error\n", ret); in em2800_i2c_send_bytes() 119 if (ret < 0) { in em2800_i2c_send_bytes() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/ti/wlcore/ |
| H A D | boot.c | 24 int ret; in wl1271_boot_set_ecpu_ctrl() local 27 ret = wlcore_read_reg(wl, REG_ECPU_CONTROL, &cpu_ctrl); in wl1271_boot_set_ecpu_ctrl() 28 if (ret < 0) in wl1271_boot_set_ecpu_ctrl() 33 ret = wlcore_write_reg(wl, REG_ECPU_CONTROL, cpu_ctrl); in wl1271_boot_set_ecpu_ctrl() 36 return ret; in wl1271_boot_set_ecpu_ctrl() 42 int ret; in wlcore_boot_parse_fw_ver() local 50 ret = sscanf(wl->chip.fw_ver_str + 4, "%u.%u.%u.%u.%u", in wlcore_boot_parse_fw_ver() 55 if (ret != 5) { in wlcore_boot_parse_fw_ver() 58 ret = -EINVAL; in wlcore_boot_parse_fw_ver() 62 ret = wlcore_identify_fw(wl); in wlcore_boot_parse_fw_ver() [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/ |
| H A D | builtin-probe.c | 56 int ret; in parse_probe_event() local 75 ret = parse_perf_probe_command(str, pev); in parse_probe_event() 78 return ret; in parse_probe_event() 84 int ret = 0; in params_add_filter() local 90 ret = err ? -EINVAL : -ENOMEM; in params_add_filter() 92 ret = strfilter__or(params.filter, str, &err); in params_add_filter() 94 if (ret == -EINVAL) { in params_add_filter() 100 return ret; in params_add_filter() 134 int i, len, ret, found_target; in parse_probe_event_argv() local 162 ret = parse_probe_event(buf); in parse_probe_event_argv() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/ath/ath10k/ |
| H A D | ahb.c | 125 int ret; in ath10k_ahb_clock_enable() local 131 ret = -EIO; in ath10k_ahb_clock_enable() 135 ret = clk_prepare_enable(ar_ahb->cmd_clk); in ath10k_ahb_clock_enable() 136 if (ret) { in ath10k_ahb_clock_enable() 137 ath10k_err(ar, "failed to enable cmd clk: %d\n", ret); in ath10k_ahb_clock_enable() 141 ret = clk_prepare_enable(ar_ahb->ref_clk); in ath10k_ahb_clock_enable() 142 if (ret) { in ath10k_ahb_clock_enable() 143 ath10k_err(ar, "failed to enable ref clk: %d\n", ret); in ath10k_ahb_clock_enable() 147 ret = clk_prepare_enable(ar_ahb->rtc_clk); in ath10k_ahb_clock_enable() 148 if (ret) { in ath10k_ahb_clock_enable() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/iio/pressure/ |
| H A D | bmp280-core.c | 154 int ret; in bmp280_read_calib() local 163 ret = regmap_bulk_read(data->regmap, BMP280_REG_COMP_TEMP_START, in bmp280_read_calib() 165 if (ret < 0) { in bmp280_read_calib() 168 return ret; in bmp280_read_calib() 179 ret = regmap_bulk_read(data->regmap, BMP280_REG_COMP_PRESS_START, in bmp280_read_calib() 181 if (ret < 0) { in bmp280_read_calib() 184 return ret; in bmp280_read_calib() 210 ret = regmap_read(data->regmap, BMP280_REG_COMP_H1, &tmp); in bmp280_read_calib() 211 if (ret < 0) { in bmp280_read_calib() 213 return ret; in bmp280_read_calib() [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/ |
| H A D | soc-card.c | 11 #define soc_card_ret(dai, ret) _soc_card_ret(dai, __func__, ret) argument 13 const char *func, int ret) in _soc_card_ret() argument 15 switch (ret) { in _soc_card_ret() 23 func, card->name, ret); in _soc_card_ret() 26 return ret; in _soc_card_ret() 64 int ret; in snd_soc_card_jack_new() local 72 ret = snd_jack_new(card->snd_card, id, type, &jack->jack, false, false); in snd_soc_card_jack_new() 73 if (ret) in snd_soc_card_jack_new() 77 ret = snd_soc_jack_add_pins(jack, num_pins, pins); in snd_soc_card_jack_new() 79 return soc_card_ret(card, ret); in snd_soc_card_jack_new() [all …]
|
| H A D | soc-dai.c | 13 #define soc_dai_ret(dai, ret) _soc_dai_ret(dai, __func__, ret) argument 15 const char *func, int ret) in _soc_dai_ret() argument 18 if (ret >= 0) in _soc_dai_ret() 19 return ret; in _soc_dai_ret() 22 switch (ret) { in _soc_dai_ret() 29 func, dai->name, ret); in _soc_dai_ret() 32 return ret; in _soc_dai_ret() 55 int ret; in snd_soc_dai_set_sysclk() local 59 ret = dai->driver->ops->set_sysclk(dai, clk_id, freq, dir); in snd_soc_dai_set_sysclk() 61 ret = snd_soc_component_set_sysclk(dai->component, clk_id, 0, in snd_soc_dai_set_sysclk() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/iio/common/cros_ec_sensors/ |
| H A D | cros_ec_sensors_core.c | 40 int ret; in cros_ec_get_host_cmd_version_mask() local 56 ret = cros_ec_cmd_xfer_status(ec_dev, &buf.msg); in cros_ec_get_host_cmd_version_mask() 57 if (ret >= 0) in cros_ec_get_host_cmd_version_mask() 59 return ret; in cros_ec_get_host_cmd_version_mask() 106 int ret; in cros_ec_sensor_set_ec_rate() local 114 ret = cros_ec_motion_send_host_cmd(st, 0); in cros_ec_sensor_set_ec_rate() 116 return ret; in cros_ec_sensor_set_ec_rate() 125 int integer, fract, ret; in cros_ec_sensor_set_report_latency() local 128 ret = iio_str_to_fixpoint(buf, 100000, &integer, &fract); in cros_ec_sensor_set_report_latency() 129 if (ret) in cros_ec_sensor_set_report_latency() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/bluetooth/ |
| H A D | btmrvl_sdio.c | 87 int ret; in btmrvl_sdio_probe_of() local 106 ret = devm_request_irq(dev, cfg->irq_bt, in btmrvl_sdio_probe_of() 109 if (ret) { in btmrvl_sdio_probe_of() 112 cfg->irq_bt, ret); in btmrvl_sdio_probe_of() 350 int ret; in btmrvl_sdio_get_rx_unit() local 352 reg = sdio_readb(card->func, card->reg->card_rx_unit, &ret); in btmrvl_sdio_get_rx_unit() 353 if (!ret) in btmrvl_sdio_get_rx_unit() 356 return ret; in btmrvl_sdio_get_rx_unit() 362 int ret; in btmrvl_sdio_read_fw_status() local 366 fws0 = sdio_readb(card->func, card->reg->card_fw_status0, &ret); in btmrvl_sdio_read_fw_status() [all …]
|