Searched refs:ret (Results 226 - 250 of 5719) sorted by relevance

1234567891011>>

/drivers/regulator/
H A Dad5398.c42 int ret; local
44 ret = i2c_master_recv(client, (char *)&val, 2);
45 if (ret < 0) {
47 return ret;
51 return ret;
57 int ret; local
60 ret = i2c_master_send(client, (char *)&val, 2);
61 if (ret < 0)
64 return ret;
72 int ret; local
90 int ret; local
128 int ret; local
145 int ret; local
166 int ret; local
[all...]
/drivers/rtc/
H A Drtc-as3722.c68 int ret; local
70 ret = as3722_block_read(as3722, AS3722_RTC_SECOND_REG,
72 if (ret < 0) {
73 dev_err(dev, "RTC_SECOND reg block read failed %d\n", ret);
74 return ret;
85 int ret; local
91 ret = as3722_block_write(as3722, AS3722_RTC_SECOND_REG, 6,
93 if (ret < 0)
94 dev_err(dev, "RTC_SECOND reg block write failed %d\n", ret);
95 return ret;
118 int ret; local
136 int ret; local
180 int ret; local
[all...]
/drivers/gpu/drm/omapdrm/
H A Domap_debugfs.c33 int ret; local
35 ret = mutex_lock_interruptible(&dev->struct_mutex);
36 if (ret)
37 return ret;
92 int ret; local
94 ret = drm_debugfs_create_files(omap_debugfs_list,
98 if (ret) {
100 return ret;
104 ret = drm_debugfs_create_files(omap_dmm_debugfs_list,
108 if (ret) {
[all...]
/drivers/mfd/
H A Dda9052-spi.c27 int ret; local
49 ret = PTR_ERR(da9052->regmap);
51 ret);
52 return ret;
55 ret = da9052_device_init(da9052, id->driver_data);
56 if (ret != 0)
57 return ret;
91 int ret; local
93 ret = spi_register_driver(&da9052_spi_driver);
94 if (ret !
[all...]
/drivers/iio/adc/
H A Dad_sigma_delta.c68 int ret; local
94 ret = spi_sync_locked(sigma_delta->spi, &m);
96 ret = spi_sync(sigma_delta->spi, &m);
98 return ret;
106 int ret; local
129 ret = spi_sync_locked(sigma_delta->spi, &m);
131 ret = spi_sync(sigma_delta->spi, &m);
133 return ret;
149 int ret; local
151 ret
183 int ret; local
227 int ret; local
252 int ret = 0; local
311 int ret; local
367 int ret; local
444 int ret; local
502 int ret; local
[all...]
/drivers/iio/light/
H A Dapds9300.c95 int ret; local
104 ret = i2c_smbus_read_word_data(data->client, flags);
105 if (ret < 0)
109 return ret;
114 int ret; local
122 ret = i2c_smbus_write_word_data(data->client, APDS9300_THRESHLOWLOW
124 if (ret) {
126 return ret;
135 int ret; local
143 ret
156 int ret; local
177 int ret; local
195 int ret; local
204 int ret; local
242 int ch0, ch1, ret = -EINVAL; local
303 int ret; local
330 int ret; local
411 int ret; local
480 int ret; local
493 int ret; local
[all...]
/drivers/infiniband/hw/ipath/
H A Dipath_diag.c90 int ret = 0; local
93 ret = ipath_cdev_init(IPATH_DIAGPKT_MINOR,
97 if (ret) {
99 "device: %d", ret);
106 ret = ipath_cdev_init(IPATH_DIAG_MINOR_BASE + dd->ipath_unit, name,
109 if (ret)
111 name, ret);
114 return ret;
143 int ret; local
147 ret
180 int ret; local
218 int ret; local
258 int ret; local
285 int ret; local
334 ssize_t ret = 0; local
493 ssize_t ret; local
525 ssize_t ret; local
[all...]
/drivers/video/backlight/
H A Das3711_bl.c62 int ret = 0; local
66 ret = regmap_write(as3711->regmap, AS3711_CURR1_VALUE,
68 if (!ret && pdata->su2_auto_curr2)
69 ret = regmap_write(as3711->regmap, AS3711_CURR2_VALUE,
71 if (!ret && pdata->su2_auto_curr3)
72 ret = regmap_write(as3711->regmap, AS3711_CURR3_VALUE,
75 return ret;
92 int ret = regmap_update_bits(as3711->regmap, AS3711_STEPUP_CONTROL_5, local
94 if (!ret)
95 ret
113 int ret = 0; local
190 int ret; local
267 int ret; local
372 int ret; local
[all...]
/drivers/net/wireless/ath/ath6kl/
H A Dinit.c453 int ret; local
460 ret = ath6kl_wmi_set_rx_frame_format_cmd(ar->wmi, idx,
462 if (ret) {
463 ath6kl_err("unable to set the rx frame format: %d\n", ret);
464 return ret;
468 ret = ath6kl_wmi_pmparams_cmd(ar->wmi, idx, 0, 1, 0, 0, 1,
470 if (ret) {
472 ret);
473 return ret;
478 ret
669 int ret; local
699 int ret; local
732 int ret; local
777 int ret; local
805 int ret; local
845 int ret; local
870 int ret; local
895 int ret; local
922 int ret; local
950 int ret, ie_id, i, index, bit; local
1130 int ret; local
1180 int ret; local
1286 int ret; local
1332 int ret; local
1363 int ret; local
1387 int ret; local
1685 int ret, i; local
1817 int ret; local
[all...]
/drivers/media/i2c/
H A Dmt9p031.c169 int ret; local
171 ret = mt9p031_write(client, MT9P031_OUTPUT_CONTROL, value);
172 if (ret < 0)
173 return ret;
183 int ret; local
185 ret = mt9p031_write(client, MT9P031_READ_MODE_2, value);
186 if (ret < 0)
187 return ret;
196 int ret; local
199 ret
235 int ret; local
270 int ret; local
309 int ret; local
359 int ret; local
394 int ret; local
451 int ret; local
653 int ret; local
678 int ret; local
883 int ret = 0; local
914 int ret; local
1036 int ret; local
[all...]
/drivers/gpu/drm/nouveau/core/engine/perfmon/
H A Dnve0.c108 int ret; local
110 ret = nouveau_perfmon_create(parent, engine, oclass, &priv);
112 if (ret)
113 return ret;
116 ret = nouveau_perfdom_new(&priv->base, "pwr", 0, 0, 0, 0,
118 if (ret)
119 return ret;
122 ret = nouveau_perfdom_new(&priv->base, "hub", 0, 0x1b0000, 0, 0x200,
124 if (ret)
125 return ret;
[all...]
/drivers/gpu/drm/nouveau/core/subdev/bar/
H A Dgk20a.c33 int ret; local
35 ret = nvc0_bar_ctor(parent, engine, oclass, data, size, pobject);
36 if (ret)
37 return ret;
/drivers/gpu/drm/nouveau/core/subdev/fb/
H A Dramgm107.c37 int ret; local
39 ret = nvc0_ram_create(parent, engine, oclass, 0x021c14, &ram);
41 if (ret)
42 return ret;
H A Dramnv4e.c34 int ret; local
36 ret = nouveau_ram_create(parent, engine, oclass, &ram);
38 if (ret)
39 return ret;
/drivers/gpu/drm/nouveau/core/subdev/instmem/
H A Dbase.c52 int ret; local
54 ret = nouveau_object_create_(parent, engine, oclass, NV_MEMOBJ_CLASS,
57 if (ret)
58 return ret;
87 int i, ret = 0; local
95 ret = -ENOMEM;
105 if (ret)
106 return ret;
117 int ret, i; local
119 ret
146 int ret; local
[all...]
/drivers/gpu/drm/nouveau/core/subdev/timer/
H A Dgk20a.c33 int ret; local
35 ret = nouveau_timer_init(&priv->base);
36 if (ret)
37 return ret;
/drivers/gpu/drm/nouveau/core/subdev/volt/
H A Dnv40.c37 int ret; local
39 ret = nouveau_volt_create(parent, engine, oclass, &priv);
41 if (ret)
42 return ret;
/drivers/gpu/drm/nouveau/
H A Dnouveau_ioc32.c54 int ret; local
64 ret = (*fn)(filp, cmd, arg);
66 ret = nouveau_drm_ioctl(filp, cmd, arg);
68 return ret;
/drivers/leds/
H A Dleds-gpio-register.c28 struct platform_device *ret; local
39 ret = platform_device_register_resndata(NULL, "leds-gpio", id,
41 if (IS_ERR(ret))
44 return ret;
H A Dleds-syscon.c58 int ret; local
68 ret = regmap_update_bits(sled->map, sled->offset, sled->mask, val);
69 if (ret < 0)
86 int ret; local
135 ret = regmap_read(map, sled->offset, &val);
136 if (ret < 0)
137 return ret;
141 ret = regmap_update_bits(map, sled->offset,
144 if (ret < 0)
145 return ret;
[all...]
H A Dleds-wrap.c77 int ret; local
79 ret = led_classdev_register(&pdev->dev, &wrap_power_led);
80 if (ret < 0)
81 return ret;
83 ret = led_classdev_register(&pdev->dev, &wrap_error_led);
84 if (ret < 0)
87 ret = led_classdev_register(&pdev->dev, &wrap_extra_led);
88 if (ret < 0)
91 return ret;
98 return ret;
120 int ret; local
[all...]
/drivers/media/dvb-frontends/
H A Dcxd2820r_t2.c28 int ret, i, bw_i; local
102 ret = cxd2820r_wr_reg_mask(priv, tab[i].reg,
104 if (ret)
113 ret = fe->ops.tuner_ops.get_if_frequency(fe, &if_freq);
114 if (ret)
131 ret = cxd2820r_wr_reg(priv, 0x023ad , 0);
132 if (ret)
137 ret = cxd2820r_wr_reg(priv, 0x023af , c->stream_id & 0xFF);
138 if (ret)
140 ret
176 int ret; local
290 int ret; local
319 int ret; local
347 int ret; local
370 int ret; local
406 int ret, i; local
[all...]
/drivers/media/pci/cx18/
H A Dcx18-alsa-mixer.c90 int ret; local
96 ret = v4l2_subdev_call(cx->sd_av, core, g_ctrl, &vctrl);
99 if (!ret)
101 return ret;
110 int ret; local
118 ret = v4l2_subdev_call(cx->sd_av, core, g_ctrl, &vctrl);
120 if (ret ||
125 ret = v4l2_subdev_call(cx->sd_av, core, s_ctrl, &vctrl);
126 if (!ret)
127 ret
165 int ret; local
[all...]
/drivers/media/pci/ivtv/
H A Divtv-alsa-mixer.c90 int ret; local
96 ret = v4l2_subdev_call(itv->sd_audio, core, g_ctrl, &vctrl);
99 if (!ret)
101 return ret;
110 int ret; local
118 ret = v4l2_subdev_call(itv->sd_audio, core, g_ctrl, &vctrl);
120 if (ret ||
125 ret = v4l2_subdev_call(itv->sd_audio, core, s_ctrl, &vctrl);
126 if (!ret)
127 ret
165 int ret; local
[all...]
/drivers/media/tuners/
H A Dit913x.c42 int ret; local
50 ret = regmap_write(dev->regmap, 0x80ec4c, 0x68);
51 if (ret)
56 ret = regmap_read(dev->regmap, 0x80ec86, &utmp);
57 if (ret)
80 ret = regmap_read(dev->regmap, 0x80ed03, &utmp);
81 if (ret)
92 ret = regmap_bulk_read(dev->regmap, 0x80ed23, buf, 2);
93 if (ret)
120 ret
162 int ret, len; local
221 int ret; local
394 int ret; local
[all...]

Completed in 2535 milliseconds

1234567891011>>