Searched refs:ret (Results 101 - 125 of 5719) sorted by relevance

1234567891011>>

/drivers/gpu/drm/nouveau/core/subdev/volt/
H A Dgpio.c43 int ret = gpio->get(gpio, 0, tags[i], 0xff); local
44 if (ret < 0)
45 return ret;
46 vid |= ret << i;
61 int ret = gpio->set(gpio, 0, tags[i], 0xff, vid & 1); local
62 if (ret < 0)
63 return ret;
85 int ret = gpio->find(gpio, 0, tags[i], 0xff, &func); local
86 if (ret) {
87 if (ret !
[all...]
/drivers/regulator/
H A Ddummy.c47 int ret; local
54 ret = PTR_ERR(dummy_regulator_rdev);
55 pr_err("Failed to register regulator: %d\n", ret);
56 return ret;
74 int ret; local
82 ret = platform_device_add(dummy_pdev);
83 if (ret != 0) {
84 pr_err("Failed to register dummy regulator device: %d\n", ret);
89 ret = platform_driver_register(&dummy_regulator_driver);
90 if (ret !
[all...]
H A Dwm831x-isink.c42 int ret; local
45 ret = wm831x_set_bits(wm831x, isink->reg, WM831X_CS1_ENA,
47 if (ret != 0)
48 return ret;
51 ret = wm831x_set_bits(wm831x, isink->reg, WM831X_CS1_DRIVE,
53 if (ret != 0)
56 return ret;
64 int ret; local
66 ret = wm831x_set_bits(wm831x, isink->reg, WM831X_CS1_DRIVE, 0);
67 if (ret <
82 int ret; local
100 int ret, i; local
118 int ret; local
159 int ret, irq; local
233 int ret; local
[all...]
/drivers/sh/
H A Dpm_runtime.c26 int ret; local
28 ret = pm_generic_runtime_suspend(dev);
29 if (ret) {
31 return ret;
34 ret = pm_clk_suspend(dev);
35 if (ret) {
38 return ret;
46 int ret; local
48 ret = pm_clk_resume(dev);
49 if (ret) {
[all...]
/drivers/staging/comedi/
H A Dcomedi_pcmcia.c58 int ret; local
66 ret = pcmcia_loop_config(link, conf_check, NULL);
67 if (ret)
68 return ret;
125 int ret; local
127 ret = comedi_driver_register(comedi_driver);
128 if (ret < 0)
129 return ret;
131 ret = pcmcia_register_driver(pcmcia_driver);
132 if (ret <
[all...]
H A Dcomedi_usb.c85 int ret; local
87 ret = comedi_driver_register(comedi_driver);
88 if (ret < 0)
89 return ret;
91 ret = usb_register(usb_driver);
92 if (ret < 0) {
94 return ret;
/drivers/usb/phy/
H A Dphy-ulpi-viewport.c46 int ret; local
50 ret = ulpi_viewport_wait(view, ULPI_VIEW_WAKEUP);
51 if (ret)
52 return ret;
55 ret = ulpi_viewport_wait(view, ULPI_VIEW_RUN);
56 if (ret)
57 return ret;
64 int ret; local
68 ret = ulpi_viewport_wait(view, ULPI_VIEW_WAKEUP);
69 if (ret)
[all...]
/drivers/net/wireless/iwlwifi/mvm/
H A Dfw.c184 int ret, i; local
199 ret = iwl_trans_start_fw(mvm->trans, fw, ucode_type == IWL_UCODE_INIT);
200 if (ret) {
203 return ret;
210 ret = iwl_wait_notification(&mvm->notif_wait, &alive_wait,
212 if (ret) {
214 return ret;
229 ret = iwl_trans_update_sf(mvm->trans, &st_fwrd_space);
283 int ret; local
298 ret
395 int ret, i; local
517 int ret, i; local
[all...]
/drivers/devfreq/
H A Dgovernor_performance.c33 int ret = 0; local
37 ret = update_devfreq(devfreq);
41 return ret;
58 int ret; local
60 ret = devfreq_remove_governor(&devfreq_performance);
61 if (ret)
62 pr_err("%s: failed remove governor %d\n", __func__, ret);
H A Dgovernor_powersave.c30 int ret = 0; local
34 ret = update_devfreq(devfreq);
38 return ret;
55 int ret; local
57 ret = devfreq_remove_governor(&devfreq_powersave);
58 if (ret)
59 pr_err("%s: failed remove governor %d\n", __func__, ret);
/drivers/gpu/drm/nouveau/core/engine/perfmon/
H A Dnvf0.c45 int ret; local
47 ret = nouveau_perfmon_create(parent, engine, oclass, &priv);
49 if (ret)
50 return ret;
52 ret = nouveau_perfdom_new(&priv->base, "pwr", 0, 0, 0, 0,
54 if (ret)
55 return ret;
/drivers/iio/light/
H A Dvcnl4000.c60 int ret; local
62 ret = i2c_smbus_write_byte_data(data->client, VCNL4000_COMMAND,
64 if (ret < 0)
65 return ret;
69 ret = i2c_smbus_read_byte_data(data->client, VCNL4000_COMMAND);
70 if (ret < 0)
71 return ret;
72 if (ret & rdy_mask)
83 ret = i2c_smbus_read_i2c_block_data(data->client,
85 if (ret <
108 int ret = -EINVAL; local
158 int ret; local
[all...]
/drivers/infiniband/hw/mthca/
H A Dmthca_uar.c56 int ret; local
58 ret = mthca_alloc_init(&dev->uar_table.alloc,
62 if (ret)
63 return ret;
65 ret = mthca_init_db_tab(dev);
66 if (ret)
69 return ret;
/drivers/net/ieee802154/
H A Dmrf24j40.c101 int ret; local
116 ret = spi_sync(devrec->spi, &msg);
117 if (ret)
122 return ret;
127 int ret = -1; local
142 ret = spi_sync(devrec->spi, &msg);
143 if (ret)
150 return ret;
155 int ret; local
173 ret
186 int ret; local
219 int ret; local
269 int ret; local
338 int ret = 0; local
397 int ret; local
414 int ret; local
430 int ret; local
508 int ret; local
535 int ret = 0; local
595 int ret; local
616 int ret; local
702 int ret = -ENOMEM; local
[all...]
/drivers/usb/dwc3/
H A Ddwc3-pci.c46 int ret; local
58 ret = platform_device_add_data(glue->usb2_phy, &pdata, sizeof(pdata));
59 if (ret)
64 ret = -ENOMEM;
71 ret = platform_device_add_data(glue->usb3_phy, &pdata, sizeof(pdata));
72 if (ret)
75 ret = platform_device_add(glue->usb2_phy);
76 if (ret)
79 ret = platform_device_add(glue->usb3_phy);
80 if (ret)
103 int ret; local
205 int ret; local
[all...]
/drivers/media/i2c/m5mols/
H A Dm5mols_core.c150 int ret; local
173 ret = i2c_transfer(client->adapter, msg, 2);
175 if (ret == 2) {
182 size, category, cmd, ret);
184 return ret < 0 ? ret : -EIO;
190 int ret; local
197 ret = m5mols_read(sd, I2C_SIZE(reg), reg, &val_32);
198 if (ret)
199 return ret;
208 int ret; local
250 int ret; local
304 int ret = m5mols_read_u8(sd, reg, &status); local
327 int ret; local
339 int ret = wait_event_interruptible_timeout(info->irq_waitq, local
357 int ret = m5mols_write(sd, SYSTEM_SYSMODE, mode); local
375 int ret = -EINVAL; local
433 int ret; local
554 int ret = 0; local
576 int ret; local
676 int ret; local
700 int ret; local
719 int ret; local
748 int ret; local
804 int ret; local
838 int ret; local
859 int ret; local
936 int ret; local
[all...]
/drivers/media/dvb-frontends/
H A Dsi2168.c24 int ret; local
31 ret = i2c_master_send(s->client, cmd->args, cmd->wlen);
32 if (ret < 0) {
34 } else if (ret != cmd->wlen) {
35 ret = -EREMOTEIO;
45 ret = i2c_master_recv(s->client, cmd->args, cmd->rlen);
46 if (ret < 0) {
48 } else if (ret != cmd->rlen) {
49 ret = -EREMOTEIO;
63 ret
85 int ret; local
165 int ret; local
357 int ret, len, remaining; local
519 int ret; local
555 int ret; local
581 int ret; local
644 int ret; local
[all...]
H A Daf9013.c55 int ret; local
78 ret = i2c_transfer(priv->i2c, msg, 1);
79 if (ret == 1) {
80 ret = 0;
83 "len=%d\n", KBUILD_MODNAME, ret, reg, len);
84 ret = -EREMOTEIO;
86 return ret;
93 int ret; local
113 ret = i2c_transfer(priv->i2c, msg, 2);
114 if (ret
128 int ret, i; local
150 int ret, i; local
191 int ret; local
212 int ret; local
227 int ret; local
307 int ret, i; local
362 int ret; local
380 int ret; local
411 int ret; local
429 int ret, i, len; local
492 int ret = 0; local
587 int ret, i, sampling_freq; local
869 int ret; local
985 int ret; local
1063 int ret, i, len; local
1291 int ret; local
1316 int ret; local
1350 int i, len, remaining, ret; local
1462 int ret; local
[all...]
/drivers/rtc/
H A Drtc-rk808.c65 int ret; local
68 ret = regmap_update_bits(rk808->regmap, RK808_RTC_CTRL_REG,
71 if (ret) {
72 dev_err(dev, "Failed to update bits rtc_ctrl: %d\n", ret);
73 return ret;
76 ret = regmap_update_bits(rk808->regmap, RK808_RTC_CTRL_REG,
79 if (ret) {
80 dev_err(dev, "Failed to update bits rtc_ctrl: %d\n", ret);
81 return ret;
84 ret
111 int ret; local
156 int ret; local
187 int ret; local
198 int ret; local
212 int ret; local
273 int ret; local
333 int ret; local
[all...]
/drivers/clk/
H A Dclk-palmas.c66 int ret; local
68 ret = palmas_update_bits(cinfo->palmas, PALMAS_RESOURCE_BASE,
72 if (ret < 0)
74 cinfo->clk_desc->control_reg, ret);
78 return ret;
84 int ret; local
93 ret = palmas_update_bits(cinfo->palmas, PALMAS_RESOURCE_BASE,
96 if (ret < 0)
98 cinfo->clk_desc->control_reg, ret);
104 int ret; local
182 int ret; local
210 int ret; local
248 int ret; local
[all...]
/drivers/media/tuners/
H A Dtua9001.c27 int ret; local
38 ret = i2c_transfer(priv->i2c, msg, 1);
39 if (ret == 1) {
40 ret = 0;
43 KBUILD_MODNAME, ret, reg);
44 ret = -EREMOTEIO;
47 return ret;
53 int ret = 0; local
58 ret = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER,
64 return ret;
70 int ret = 0; local
121 int ret = 0; local
139 int ret = 0, i; local
250 int ret; local
[all...]
H A Dfc2580.c46 int ret; local
67 ret = i2c_transfer(priv->i2c, msg, 1);
68 if (ret == 1) {
69 ret = 0;
72 "len=%d\n", KBUILD_MODNAME, ret, reg, len);
73 ret = -EREMOTEIO;
75 return ret;
81 int ret; local
104 ret = i2c_transfer(priv->i2c, msg, 2);
105 if (ret
144 int ret = 0, i; local
406 int ret, i; local
435 int ret; local
500 int ret; local
[all...]
/drivers/watchdog/
H A Dwm831x_wdt.c58 int ret; local
62 ret = wm831x_reg_unlock(wm831x);
63 if (ret == 0) {
64 ret = wm831x_set_bits(wm831x, WM831X_WATCHDOG,
69 ret);
74 return ret;
81 int ret; local
85 ret = wm831x_reg_unlock(wm831x);
86 if (ret == 0) {
87 ret
104 int ret; local
147 int ret, i; local
191 int reg, ret, i; local
[all...]
/drivers/mfd/
H A Dwm831x-otp.c52 ssize_t ret = 0; local
59 ret += sprintf(&buf[ret], "%02x", buf[i]);
61 ret += sprintf(&buf[ret], "\n");
63 return ret;
71 int ret; local
73 ret = device_create_file(wm831x->dev, &dev_attr_unique_id);
74 if (ret != 0)
76 ret);
[all...]
/drivers/gpu/drm/nouveau/core/subdev/instmem/
H A Dnv40.c54 int ret, bar, vs; local
56 ret = nouveau_instmem_create(parent, engine, oclass, &priv);
58 if (ret)
59 return ret;
90 ret = nouveau_mm_init(&priv->heap, 0, priv->base.reserved, 1);
91 if (ret)
92 return ret;
95 ret = nouveau_gpuobj_new(nv_object(priv), NULL, 0x10000, 0, 0,
97 if (ret)
98 return ret;
[all...]

Completed in 473 milliseconds

1234567891011>>