Searched refs:ret (Results 251 - 275 of 5719) sorted by relevance

<<11121314151617181920>>

/drivers/media/usb/dvb-usb-v2/
H A Ddvb_usb_urb.c27 int ret, actual_length; local
37 ret = usb_bulk_msg(d->udev, usb_sndbulkpipe(d->udev,
40 if (ret < 0)
42 KBUILD_MODNAME, ret);
44 ret = actual_length != wlen ? -EIO : 0;
47 if (!ret && rbuf && rlen) {
53 ret = usb_bulk_msg(d->udev, usb_rcvbulkpipe(d->udev,
56 if (ret)
59 KBUILD_MODNAME, ret);
65 return ret;
71 int ret; local
83 int ret; local
[all...]
/drivers/media/usb/uvc/
H A Duvc_entity.c32 int ret; local
59 ret = media_entity_create_link(source, remote_pad,
61 if (ret < 0)
62 return ret;
84 int ret; local
91 ret = media_entity_init(&entity->subdev.entity,
94 ret = media_entity_init(&entity->vdev->entity,
99 ret = 0;
101 return ret;
107 int ret; local
[all...]
/drivers/mmc/core/
H A Dsdio_io.c61 int ret; local
70 ret = mmc_io_rw_direct(func->card, 0, 0, SDIO_CCCR_IOEx, 0, &reg);
71 if (ret)
76 ret = mmc_io_rw_direct(func->card, 1, 0, SDIO_CCCR_IOEx, reg, NULL);
77 if (ret)
83 ret = mmc_io_rw_direct(func->card, 0, 0, SDIO_CCCR_IORx, 0, &reg);
84 if (ret)
88 ret = -ETIME;
99 return ret;
112 int ret; local
161 int ret; local
308 int ret; local
367 int ret; local
400 int ret; local
432 int ret; local
458 int ret; local
552 int ret; local
581 int ret; local
604 int ret; local
633 int ret; local
656 int ret; local
692 int ret; local
[all...]
/drivers/nfc/
H A Dtrf7970a.c461 int ret; local
465 ret = spi_write(trf->spi, &cmd, 1);
466 if (ret)
467 dev_err(trf->dev, "%s - cmd: 0x%x, ret: %d\n", __func__, cmd,
468 ret);
469 return ret;
475 int ret; local
477 ret = spi_write_then_read(trf->spi, &addr, 1, val, 1);
478 if (ret)
479 dev_err(trf->dev, "%s - addr: 0x%x, ret
492 int ret; local
518 int ret; local
532 int ret; local
556 int ret; local
575 int ret; local
652 int ret; local
707 int ret; local
741 int ret; local
824 int ret; local
985 int ret; local
1030 int ret; local
1093 int ret; local
1119 int ret = 0; local
1164 int ret = 0; local
1214 int ret; local
1249 int ret; local
1324 int ret; local
1377 int ret; local
1448 int ret; local
1547 int ret = 0; local
1602 int ret; local
1662 int ret; local
1698 int ret; local
1783 int ret; local
1854 int ret; local
1885 int ret; local
1913 int ret; local
1952 int autosuspend_delay, ret; local
1971 int uvolts, autosuspend_delay, ret; local
2143 int ret; local
2162 int ret; local
2179 int ret; local
[all...]
/drivers/staging/comedi/drivers/
H A Damplc_pc236.c52 int ret; local
58 ret = comedi_request_region(dev, it->options[0], 0x4);
59 if (ret)
60 return ret;
/drivers/usb/host/
H A Dohci-octeon.c48 int ret; local
50 ret = ohci_init(ohci);
52 if (ret < 0)
53 return ret;
55 ret = ohci_run(ohci);
57 if (ret < 0) {
60 return ret;
112 int ret; local
130 ret = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
131 if (ret)
[all...]
/drivers/usb/misc/
H A Dlvstest.c113 int ret; local
121 ret = lvs_rh_set_port_feature(hdev, lvs->portnum,
123 if (ret < 0)
124 dev_err(dev, "can't issue U3 entry %d\n", ret);
128 if (ret < 0)
129 return ret;
142 int ret; local
150 ret = lvs_rh_clear_port_feature(hdev, lvs->portnum,
152 if (ret < 0)
153 dev_err(dev, "can't issue U3 exit %d\n", ret);
170 int ret; local
190 int ret; local
219 int ret; local
247 int ret; local
303 int i, ret = 0; local
369 int ret, maxp; local
[all...]
/drivers/video/
H A Dof_videomode.c35 int ret; local
46 ret = videomode_from_timings(disp, vm, index);
47 if (ret)
48 return ret;
/drivers/gpu/drm/nouveau/core/subdev/volt/
H A Dbase.c35 int ret = volt->vid_get(volt), i; local
36 if (ret >= 0) {
38 if (volt->vid[i].vid == ret)
41 ret = -EINVAL;
43 return ret;
52 int i, ret = -EINVAL; local
55 ret = volt->vid_set(volt, volt->vid[i].vid);
56 nv_debug(volt, "set %duv: %d\n", uv, ret);
60 return ret;
76 int ret local
90 int ret = nouveau_volt_map(volt, id); local
108 int ret; local
143 int ret, i; local
[all...]
/drivers/hwmon/pmbus/
H A Ducd9000.c72 int ret = 0; local
80 ret = ucd9000_get_fan_config(client, 0);
81 if (ret < 0)
82 return ret;
83 fan_config = ret << 4;
84 ret = ucd9000_get_fan_config(client, 1);
85 if (ret < 0)
86 return ret;
87 fan_config |= ret;
88 ret
128 int i, ret; local
[all...]
/drivers/media/pci/solo6x10/
H A Dsolo6x10-gpio.c32 unsigned int ret; local
34 ret = solo_reg_read(solo_dev, SOLO_GPIO_CONFIG_0);
41 ret &= (~(3 << (port << 1)));
42 ret |= ((mode & 3) << (port << 1));
45 solo_reg_write(solo_dev, SOLO_GPIO_CONFIG_0, ret);
48 ret = solo_reg_read(solo_dev, SOLO_GPIO_CONFIG_1);
55 ret &= ~(1 << port);
57 ret |= 1 << port;
60 solo_reg_write(solo_dev, SOLO_GPIO_CONFIG_1, ret);
/drivers/media/platform/s5p-mfc/
H A Ds5p_mfc_intr.c26 int ret; local
28 ret = wait_event_interruptible_timeout(dev->queue,
32 if (ret == 0) {
36 } else if (ret == -ERESTARTSYS) {
57 int ret; local
60 ret = wait_event_interruptible_timeout(ctx->queue,
65 ret = wait_event_timeout(ctx->queue,
70 if (ret == 0) {
74 } else if (ret == -ERESTARTSYS) {
/drivers/mfd/
H A Dda9055-i2c.c27 int ret; local
35 ret = PTR_ERR(da9055->regmap);
37 ret);
38 return ret;
89 int ret; local
91 ret = i2c_add_driver(&da9055_i2c_driver);
92 if (ret != 0) {
93 pr_err("DA9055 I2C registration failed %d\n", ret);
94 return ret;
/drivers/pcmcia/
H A Dpxa2xx_palmld.c30 int ret; local
32 ret = gpio_request_array(palmld_pcmcia_gpios,
38 return ret;
81 int ret; local
90 ret = platform_device_add_data(palmld_pcmcia_device, &palmld_pcmcia_ops,
93 if (!ret)
94 ret = platform_device_add(palmld_pcmcia_device);
96 if (ret)
99 return ret;
H A Dpxa2xx_palmtx.c30 int ret; local
32 ret = gpio_request_array(palmtx_pcmcia_gpios,
38 return ret;
83 int ret; local
92 ret = platform_device_add_data(palmtx_pcmcia_device, &palmtx_pcmcia_ops,
95 if (!ret)
96 ret = platform_device_add(palmtx_pcmcia_device);
98 if (ret)
101 return ret;
/drivers/pinctrl/nomadik/
H A Dpinctrl-abx500.c127 int ret; local
130 ret = abx500_get_register_interruptible(pct->dev,
135 if (ret < 0)
138 __func__, reg, offset, ret);
140 return ret;
148 int ret; local
151 ret = abx500_mask_and_set_register_interruptible(pct->dev,
153 if (ret < 0)
155 __func__, reg, offset, ret);
157 return ret;
171 int ret; local
196 int ret; local
208 int ret; local
243 int ret; local
289 int ret; local
365 int ret; local
491 int ret; local
581 int ret; local
719 int ret = 0; local
746 int ret; local
890 int ret; local
960 int ret; local
1002 int ret = -EINVAL; local
1177 int ret; local
[all...]
/drivers/usb/dwc3/
H A Dhost.c27 int ret; local
32 ret = -ENOMEM;
44 ret = platform_device_add_resources(xhci, dwc->xhci_resources,
46 if (ret) {
57 ret = platform_device_add_data(xhci, &pdata, sizeof(pdata));
58 if (ret) {
63 ret = platform_device_add(xhci);
64 if (ret) {
75 return ret;
/drivers/iio/imu/
H A Dadis.c34 int ret, i; local
92 ret = -EINVAL;
101 ret = spi_sync(adis->spi, &msg);
102 if (ret) {
104 reg, ret);
112 return ret;
127 int ret; local
177 ret = -EINVAL;
181 ret = spi_sync(adis->spi, &msg);
182 if (ret) {
215 int ret; local
238 int ret = 0; local
271 int ret; local
302 int ret; local
315 int ret; local
341 int ret; local
379 int ret; local
[all...]
/drivers/iio/light/
H A Dtcs3414.c99 int ret; local
101 ret = i2c_smbus_write_byte_data(data->client, TCS3414_CONTROL,
103 if (ret < 0)
104 return ret;
107 ret = i2c_smbus_read_byte_data(data->client, TCS3414_CONTROL);
108 if (ret < 0)
109 return ret;
110 if (ret & TCS3414_CONTROL_ADC_VALID)
115 ret = i2c_smbus_write_byte_data(data->client, TCS3414_CONTROL,
117 if (ret <
133 int i, ret; local
211 int ret = i2c_smbus_read_word_data(data->client, local
260 int ret; local
282 int ret; local
[all...]
/drivers/media/tuners/
H A Dmxl301rf.c46 int ret; local
48 ret = i2c_master_send(state->i2c, buf, len);
49 if (ret >= 0 && ret < len)
50 ret = -EIO;
51 return (ret == len) ? 0 : ret;
64 int ret; local
66 ret = raw_write(state, wbuf, sizeof(wbuf));
67 if (ret
80 int ret; local
184 int i, ret; local
246 int ret; local
264 int ret; local
[all...]
/drivers/power/
H A Dtps65090-charger.c56 int ret; local
61 ret = tps65090_write(charger->dev->parent, TPS65090_REG_CG_CTRL5,
63 if (ret < 0) {
66 return ret;
73 int ret; local
79 ret = tps65090_read(charger->dev->parent, TPS65090_REG_CG_CTRL0,
81 if (ret < 0) {
84 return ret;
87 ret = tps65090_write(charger->dev->parent, TPS65090_REG_CG_CTRL0,
89 if (ret <
100 int ret; local
152 int ret; local
237 int ret; local
[all...]
H A Dmax8997_charger.c50 int ret; local
56 ret = max8997_read_reg(i2c, MAX8997_REG_STATUS4, &reg);
57 if (ret)
58 return ret;
65 ret = max8997_read_reg(i2c, MAX8997_REG_STATUS4, &reg);
66 if (ret)
67 return ret;
74 ret = max8997_read_reg(i2c, MAX8997_REG_STATUS4, &reg);
75 if (ret)
76 return ret;
91 int ret = 0; local
[all...]
/drivers/watchdog/
H A Dw83627hf_wdt.c141 int ret; local
144 ret = superio_enter();
145 if (ret)
146 return ret;
240 int ret; local
242 ret = superio_enter();
243 if (ret)
244 return ret;
273 int ret; local
275 ret
335 int ret; local
412 int ret; local
[all...]
/drivers/mmc/host/
H A Dsdhci-of-arasan.c81 int ret; local
83 ret = sdhci_suspend_host(host);
84 if (ret)
85 return ret;
106 int ret; local
108 ret = clk_enable(sdhci_arasan->clk_ahb);
109 if (ret) {
111 return ret;
114 ret = clk_enable(pltfm_host->clk);
115 if (ret) {
130 int ret; local
[all...]
/drivers/net/wireless/ti/wlcore/
H A Dvendor_cmd.c36 int ret; local
43 ret = nla_parse(tb, MAX_WLCORE_VENDOR_ATTR, data, data_len,
45 if (ret)
46 return ret;
54 ret = -EINVAL;
58 ret = wl1271_ps_elp_wakeup(wl);
59 if (ret < 0)
62 ret = wlcore_smart_config_start(wl,
79 int ret; local
86 ret
111 int ret; local
[all...]

Completed in 517 milliseconds

<<11121314151617181920>>