Searched refs:ret (Results 176 - 200 of 5719) sorted by relevance

1234567891011>>

/drivers/rtc/
H A Drtc-rc5t583.c73 int ret; local
75 ret = regmap_bulk_read(rc5t583->regmap, RC5T583_RTC_SEC, rtc_data,
77 if (ret < 0) {
78 dev_err(dev, "RTC read time failed with err:%d\n", ret);
79 return ret;
90 return ret;
97 int ret; local
107 ret = regmap_bulk_write(rc5t583->regmap, RC5T583_RTC_SEC, rtc_data,
109 if (ret < 0) {
110 dev_err(dev, "RTC set time failed with error %d\n", ret);
122 int ret; local
152 int ret; local
183 int ret; local
219 int ret; local
287 int ret; local
[all...]
H A Drtc-ds1374.c71 int ret; local
79 ret = i2c_smbus_read_i2c_block_data(client, reg, nbytes, buf);
81 if (ret < 0)
82 return ret;
83 if (ret < nbytes)
113 int ret = 0; local
126 ret = i2c_smbus_write_byte_data(client, DS1374_REG_SR, stat);
127 if (ret < 0)
128 return ret;
147 int ret; local
175 int ret = 0; local
214 int ret = 0; local
314 int ret; local
347 int ret; local
[all...]
/drivers/staging/iio/accel/
H A Dlis3l02dq_core.c56 int ret; local
68 ret = spi_sync_transfer(st->us, &xfer, 1);
72 return ret;
85 int ret; local
91 ret = spi_write(st->us, st->tx, 2);
94 return ret;
108 int ret; local
128 ret = spi_sync_transfer(st->us, xfers, ARRAY_SIZE(xfers));
131 return ret;
139 int ret; local
199 int ret; local
227 int ret = -EINVAL, reg; local
258 ssize_t ret = 0; local
305 int ret, len = 0; local
338 int ret; local
384 int ret; local
569 int ret; local
583 int ret; local
621 int ret = 0; local
693 int ret; local
769 int ret; local
[all...]
/drivers/gpu/drm/nouveau/core/subdev/i2c/
H A Dbit.c78 int ret = 0; local
85 ret = -EBUSY;
92 return ret;
161 int i, ret; local
163 ret = i2c_bitw(port, !!(byte & (1 << i)));
164 if (ret < 0)
165 return ret;
168 ret = i2c_bitr(port);
169 if (ret == 1) /* nack */
170 ret
188 int ret = 0, mcnt = num; local
[all...]
/drivers/hwmon/pmbus/
H A Dmax8688.c45 int ret; local
52 ret = pmbus_read_word_data(client, 0, MAX8688_MFR_VOUT_PEAK);
55 ret = pmbus_read_word_data(client, 0, MAX8688_MFR_IOUT_PEAK);
58 ret = pmbus_read_word_data(client, 0,
64 ret = 0;
67 ret = -ENODATA;
70 return ret;
76 int ret; local
80 ret = pmbus_write_word_data(client, 0, MAX8688_MFR_VOUT_PEAK,
84 ret
101 int ret = 0; local
[all...]
/drivers/watchdog/
H A Dintel-mid_wdt.c46 int ret, in_size; local
59 ret = wdt_command(SCU_WATCHDOG_START, (u32 *)&ipc_wd_start, in_size);
60 if (ret) {
62 dev_crit(dev, "error starting watchdog: %d\n", ret);
65 return ret;
70 int ret; local
72 ret = wdt_command(SCU_WATCHDOG_KEEPALIVE, NULL, 0);
73 if (ret) {
75 dev_crit(dev, "Error executing keepalive: 0x%x\n", ret);
78 return ret;
83 int ret; local
118 int ret; local
[all...]
/drivers/media/usb/as102/
H A Das102_drv.c81 int ret = -EFAULT; local
86 return ret;
89 ret = bus_adap->ops->start_stream(dev);
95 ret = as10x_cmd_start_streaming(bus_adap);
100 return ret;
107 int ret = -EFAULT; local
117 ret = as10x_cmd_del_PID_filter(bus_adap, (uint16_t) pid);
119 "DEL_PID_FILTER([%02d] 0x%04x) ret = %d\n",
120 index, pid, ret);
130 ret
144 int ret = 0; local
184 int ret; local
203 int ret; local
219 int ret; local
240 int ret; local
266 int ret; local
297 int ret; local
[all...]
/drivers/net/wireless/ti/wlcore/
H A Dtestmode.c74 int buf_len, ret, len; local
96 ret = -EINVAL;
100 ret = wl1271_ps_elp_wakeup(wl);
101 if (ret < 0)
104 ret = wl1271_cmd_test(wl, buf, buf_len, answer);
105 if (ret < 0) {
106 wl1271_warning("testmode cmd test failed: %d", ret);
128 ret = -ENOMEM;
134 ret = -EMSGSIZE;
138 ret
153 int ret; local
217 int buf_len, ret; local
250 int ret, len; local
287 int ret; local
319 int ret = 0; local
[all...]
/drivers/gpu/drm/nouveau/core/core/
H A Dobject.c113 int ret; local
115 ret = ofuncs->ctor(parent, engine, oclass, data, size, &object);
117 if (ret < 0) {
118 if (ret != -ENODEV) {
120 oclass->handle, ret);
128 return ret;
131 if (ret == 0) {
168 int ret; local
176 ret = nouveau_object_inc(object->parent);
177 if (ret) {
220 int ret; local
245 int ret, rret; local
298 int ret; local
[all...]
/drivers/iio/magnetometer/
H A Dak09911.c74 int ret; local
81 ret = i2c_smbus_write_byte_data(client,
83 if (ret < 0) {
85 return ret;
96 return ret;
104 int ret; local
106 ret = ak09911_set_mode(client, AK09911_MODE_FUSE_ACCESS);
107 if (ret < 0)
108 return ret;
111 ret
132 int ret; local
157 int ret; local
184 int ret; local
266 int ret; local
[all...]
/drivers/infiniband/hw/ehca/
H A Dehca_uverbs.c108 int ret; local
121 ret = remap_4k_pfn(vma, vma->vm_start, physical >> EHCA_PAGESHIFT,
123 if (unlikely(ret)) {
124 ehca_gen_err("remap_pfn_range() failed ret=%i", ret);
138 int ret; local
147 ret = vm_insert_page(vma, start, page);
148 if (unlikely(ret)) {
149 ehca_gen_err("vm_insert_page() failed rc=%i", ret);
150 return ret;
164 int ret; local
201 int ret; local
254 u32 ret; local
[all...]
/drivers/media/dvb-frontends/
H A Daf9033.c51 int ret; local
74 ret = i2c_transfer(dev->client->adapter, msg, 1);
75 if (ret == 1) {
76 ret = 0;
79 ret, reg, len);
80 ret = -EREMOTEIO;
83 return ret;
89 int ret; local
106 ret = i2c_transfer(dev->client->adapter, msg, 2);
107 if (ret
135 int ret; local
156 int ret, i; local
180 int ret, i, j; local
242 int ret, i, len; local
479 int ret, i; local
547 int ret, i, spec_inv, sampling_freq; local
677 int ret; local
803 int ret; local
865 int ret; local
905 int ret; local
924 int ret; local
944 int ret; local
977 int ret, tmp, i, len; local
1145 int ret; local
[all...]
/drivers/pinctrl/
H A Dpinconf-generic.c72 int ret; local
76 ret = pin_config_get_for_pin(pctldev, pin, &config);
78 if (ret == -EINVAL || ret == -ENOTSUPP)
80 if (ret) {
107 int ret; local
111 ret = pin_config_group_get(dev_name(pctldev->dev), gname,
114 if (ret == -EINVAL || ret == -ENOTSUPP)
116 if (ret) {
190 int ret; local
250 int ret; local
321 int ret; local
[all...]
/drivers/staging/iio/meter/
H A Dade7854-i2c.c22 int ret; local
31 ret = i2c_master_send(st->i2c, st->tx, 3);
34 return ret;
41 int ret; local
51 ret = i2c_master_send(st->i2c, st->tx, 4);
54 return ret;
61 int ret; local
72 ret = i2c_master_send(st->i2c, st->tx, 5);
75 return ret;
82 int ret; local
106 int ret; local
132 int ret; local
158 int ret; local
184 int ret; local
207 int ret; local
[all...]
/drivers/net/wireless/ti/wl12xx/
H A Dmain.c612 int ret; local
630 ret = wlcore_write(wl, WL1271_SLV_REG_DATA, priv->rx_mem_addr,
632 if (ret < 0)
633 return ret;
641 int ret = 0; local
716 ret = -ENODEV;
731 return ret;
737 int ret; local
741 ret = wlcore_write32(wl, WL12XX_OCP_POR_CTR, addr);
742 if (ret <
764 int ret; local
804 int ret; local
833 int ret; local
848 int ret; local
862 int ret; local
885 int ret; local
931 int ret; local
980 int ret; local
1055 int ret = 0; local
1098 int ret = 0; local
1163 int ret; local
1208 int ret; local
1236 int ret; local
1285 int ret; local
1390 int ret; local
1520 int ret; local
1548 int ret; local
1580 int ret; local
1850 int ret; local
[all...]
/drivers/staging/iio/magnetometer/
H A Dhmc5843_core.c121 int ret; local
124 ret = regmap_update_bits(data->regmap, HMC5843_MODE_REG,
128 return ret;
135 int ret; local
138 ret = regmap_read(data->regmap, HMC5843_STATUS_REG, &val);
139 if (ret < 0)
140 return ret;
159 int ret; local
162 ret = hmc5843_wait_measurement(data);
163 if (ret <
197 int ret; local
213 int ret; local
230 int ret; local
271 int ret; local
296 int ret; local
348 int ret; local
416 int ret; local
525 int ret; local
579 int ret; local
[all...]
/drivers/video/backlight/
H A Dlm3639_bl.c53 int ret; local
58 ret =
61 if (ret < 0)
65 ret = regmap_update_bits(pchip->regmap, REG_IO_CTRL, 0x7C, reg_val);
66 if (ret < 0)
70 ret = regmap_write(pchip->regmap, REG_BL_CONF_4, pdata->init_brt_led);
71 if (ret < 0)
74 ret = regmap_write(pchip->regmap, REG_BL_CONF_3, pdata->init_brt_led);
75 if (ret < 0)
87 ret
100 int ret; local
146 int ret; local
188 ssize_t ret; local
226 int ret; local
263 int ret; local
306 int ret; local
[all...]
/drivers/media/i2c/
H A Dadv7180.c238 int ret = mutex_lock_interruptible(&state->mutex); local
241 if (ret)
242 return ret;
250 ret = i2c_smbus_read_byte_data(client, ADV7180_INPUT_CONTROL_REG);
252 if (ret < 0)
255 ret &= ~ADV7180_INPUT_CONTROL_INSEL_MASK;
256 ret = i2c_smbus_write_byte_data(client,
257 ADV7180_INPUT_CONTROL_REG, ret | input);
261 return ret;
267 int ret local
280 int ret = mutex_lock_interruptible(&state->mutex); local
332 int ret; local
351 int ret = mutex_lock_interruptible(&state->mutex); local
507 int ret; local
609 int ret; local
691 int ret; local
[all...]
/drivers/media/usb/dvb-usb-v2/
H A Drtl28xxu.c84 int ret; local
91 ret = -ENOMEM;
106 ret = usb_control_msg(d->udev, pipe, 0, requesttype, req->value,
112 if (ret > 0)
113 ret = 0;
116 if (!ret && requesttype == (USB_TYPE_VENDOR | USB_DIR_IN))
121 if (ret)
124 return ret;
126 dev_dbg(&d->udev->dev, "%s: failed=%d\n", __func__, ret);
127 return ret;
179 int ret; local
200 int ret; local
323 int ret; local
404 int ret; local
594 int ret; local
661 int ret; local
696 int ret; local
773 int ret; local
855 int ret; local
927 int ret; local
1065 int ret; local
1115 int ret; local
1179 int ret; local
1250 int ret, i; local
1333 int ret, i, len; local
[all...]
/drivers/regulator/
H A Dwm831x-ldo.c90 int ret; local
92 ret = wm831x_reg_read(wm831x, on_reg);
93 if (ret < 0)
94 return ret;
96 if (!(ret & WM831X_LDO1_ON_MODE))
99 ret = wm831x_reg_read(wm831x, ctrl_reg);
100 if (ret < 0)
101 return ret;
103 if (ret & WM831X_LDO1_LP_MODE)
116 int ret; local
166 int ret; local
227 int ret, irq; local
342 int ret; local
360 int ret; local
389 int ret; local
437 int ret, irq; local
548 int ret; local
581 int ret; local
659 int ret; local
[all...]
/drivers/gpu/drm/nouveau/
H A Dnv50_fence.c43 int ret, i; local
54 ret = nvif_object_init(chan->object, NULL, NvSema, NV_DMA_IN_MEMORY,
64 for (i = 0; !ret && i < dev->mode_config.num_crtc; i++) {
69 ret = nvif_object_init(chan->object, NULL, NvEvoSema0 + i,
79 if (ret)
81 return ret;
88 int ret = 0; local
102 ret = nouveau_bo_new(drm->dev, 4096, 0x1000, TTM_PL_FLAG_VRAM,
104 if (!ret) {
105 ret
[all...]
/drivers/gpu/drm/radeon/
H A Dradeon_prime.c43 int ret; local
45 ret = ttm_bo_kmap(&bo->tbo, 0, bo->tbo.num_pages,
47 if (ret)
48 return ERR_PTR(ret);
67 int ret; local
70 ret = radeon_bo_create(rdev, attach->dmabuf->size, PAGE_SIZE, false,
73 if (ret)
74 return ERR_PTR(ret);
86 int ret = 0; local
88 ret
101 int ret = 0; local
[all...]
/drivers/mfd/
H A Dtps65912-i2c.c30 int ret; local
44 ret = i2c_transfer(i2c->adapter, xfer, 2);
45 if (ret == 2)
46 ret = 0;
47 else if (ret >= 0)
48 ret = -EIO;
49 return ret;
58 int ret; local
66 ret = i2c_master_send(i2c, msg, bytes + 1);
67 if (ret <
121 int ret; local
[all...]
/drivers/misc/sgi-xp/
H A Dxp_sn2.c42 int ret; local
48 ret = sn_register_nofault_code(func_addr, err_func_addr, err_func_addr,
50 if (ret != 0) {
51 dev_err(xp, "can't register nofault code, error=%d\n", ret);
108 bte_result_t ret; local
110 ret = bte_copy(src_pa, dst_pa, len, (BTE_NOTIFY | BTE_WACQUIRE), NULL);
111 if (ret == BTE_SUCCESS)
116 "0x%016lx src_pa=0x%016lx len=%ld\\n", ret, dst_pa,
120 "src_pa=0x%016lx len=%ld\\n", ret, dst_pa, src_pa, len);
136 int ret; local
152 int ret; local
[all...]
/drivers/w1/masters/
H A Domap_hdq.c127 int ret = 0; local
137 ret = -ETIMEDOUT;
145 ret = -ETIMEDOUT;
149 return ret;
155 int ret; local
174 ret = wait_event_timeout(hdq_wait_queue,
176 if (ret == 0) {
178 ret = -ETIMEDOUT;
187 ret = -ETIMEDOUT;
192 ret
255 int ret; local
289 int ret = 0; local
350 int ret = 0; local
399 int ret = 0; local
446 int ret = 0; local
472 int ret; local
506 int ret; local
545 int ret, irq; local
[all...]

Completed in 492 milliseconds

1234567891011>>