Searched refs:ret (Results 76 - 100 of 5719) sorted by relevance

1234567891011>>

/drivers/media/usb/dvb-usb-v2/
H A Danysee.c53 int act_len, ret, i; local
64 ret = dvb_usbv2_generic_rw_locked(d, state->buf, sizeof(state->buf),
66 if (ret)
83 ret = usb_bulk_msg(d->udev, usb_rcvbulkpipe(d->udev,
86 if (ret) {
89 __func__, ret);
101 if (ret) {
104 KBUILD_MODNAME, ret);
114 return ret;
120 int ret; local
137 int ret; local
158 int ret, i; local
210 int ret = 0, inc, i = 0; local
505 int ret; local
542 int ret; local
636 int ret, num; local
723 int ret = 0; local
984 int ret; local
1132 int ret; local
1172 int ret; local
1187 int ret; local
1201 int ret; local
1216 int ret; local
1229 int ret; local
1250 int ret; local
1268 int ret; local
1282 int ret; local
1301 int ret; local
1349 int ret; local
[all...]
/drivers/iio/adc/
H A Dnau7802.c95 int ret; local
100 ret = i2c_smbus_read_byte_data(st->client, NAU7802_REG_CTRL1);
101 if (ret < 0)
103 ret = i2c_smbus_write_byte_data(st->client, NAU7802_REG_CTRL1,
104 (ret & (~NAU7802_CTRL1_GAINS_BITS)) |
110 return ret;
146 int ret; local
148 ret = i2c_smbus_read_byte_data(st->client, NAU7802_REG_PUCTRL);
149 if (ret < 0)
150 return ret;
191 int ret; local
229 int ret; local
276 int ret; local
346 int i, ret; local
399 int i, ret; local
[all...]
/drivers/gpu/drm/bridge/
H A Dptn3460.c51 int ret; local
53 ret = i2c_master_send(ptn_bridge->client, &addr, 1);
54 if (ret <= 0) {
55 DRM_ERROR("Failed to send i2c command, ret=%d\n", ret);
56 return ret;
59 ret = i2c_master_recv(ptn_bridge->client, buf, len);
60 if (ret <= 0) {
61 DRM_ERROR("Failed to recv i2c data, ret=%d\n", ret);
71 int ret; local
88 int ret; local
115 int ret; local
191 int ret, num_modes; local
263 int ret; local
[all...]
/drivers/block/aoe/
H A Daoemain.c73 int ret; local
75 ret = aoedev_init();
76 if (ret)
77 return ret;
78 ret = aoechr_init();
79 if (ret)
81 ret = aoeblk_init();
82 if (ret)
84 ret = aoenet_init();
85 if (ret)
[all...]
/drivers/gpio/
H A Dgpio-twl6040.c40 int ret = 0; local
42 ret = twl6040_reg_read(twl6040, TWL6040_REG_GPOCTL);
43 if (ret < 0)
44 return ret;
46 return (ret >> offset) & 1;
59 int ret; local
62 ret = twl6040_reg_read(twl6040, TWL6040_REG_GPOCTL);
63 if (ret < 0)
67 gpoctl = ret | (1 << offset);
69 gpoctl = ret
89 int ret; local
[all...]
/drivers/gpu/drm/nouveau/core/subdev/i2c/
H A Daux.c32 int ret = i2c->acquire(port, 0); local
33 if (ret == 0) {
34 ret = port->func->aux(port, true, 9, addr, data, size);
37 return ret;
47 int ret = i2c->acquire(port, 0); local
48 if (ret == 0) {
49 ret = port->func->aux(port, true, 8, addr, data, size);
52 return ret;
63 int ret, mcnt = num; local
68 ret
[all...]
/drivers/power/
H A Dbq24735-charger.c69 s32 ret = i2c_smbus_read_word_data(client, reg); local
71 return ret < 0 ? ret : le16_to_cpu(ret);
78 int ret; local
80 ret = bq24735_read_word(client, reg);
81 if (ret < 0)
82 return ret;
84 tmp = ret & ~mask;
107 int ret; local
155 int ret; local
215 int ret; local
249 int ret; local
[all...]
/drivers/hid/
H A Dhid-cp2112.c175 int ret; local
177 ret = hid_hw_raw_request(hdev, CP2112_GPIO_CONFIG, buf,
180 if (ret != sizeof(buf)) {
181 hid_err(hdev, "error requesting GPIO config: %d\n", ret);
182 return ret;
188 ret = hid_hw_raw_request(hdev, CP2112_GPIO_CONFIG, buf, sizeof(buf),
190 if (ret < 0) {
191 hid_err(hdev, "error setting GPIO config: %d\n", ret);
192 return ret;
204 int ret; local
222 int ret; local
241 int ret; local
274 int ret; local
291 int ret; local
309 int ret = 0; local
334 int ret; local
357 int ret; local
455 int ret; local
542 int ret; local
716 int ret; local
733 int ret; local
840 int ret; local
872 int ret; local
934 int ret; local
958 int ret; local
[all...]
/drivers/net/wireless/ti/wl1251/
H A Dacx.c15 int ret; local
28 ret = wl1251_cmd_configure(wl, ACX_FW_GEN_FRAME_RATES,
30 if (ret < 0) {
37 return ret;
44 int ret, i; local
55 ret = wl1251_cmd_configure(wl, DOT11_STATION_ID, mac, sizeof(*mac));
56 if (ret < 0)
61 return ret;
67 int ret; local
77 ret
95 int ret; local
121 int ret; local
140 int ret; local
172 int ret; local
199 int ret; local
226 int ret; local
241 int ret; local
287 int ret; local
311 int ret; local
337 int ret; local
361 int ret; local
387 int ret; local
415 int ret; local
442 int ret; local
466 int ret; local
493 int ret; local
521 int ret; local
548 int ret; local
572 int ret; local
624 int ret; local
647 int ret; local
674 int ret; local
698 int ret; local
727 int ret; local
751 int ret; local
776 int ret; local
800 int ret; local
823 int ret; local
840 int ret = 0; local
875 int ret, i; local
920 int ret; local
947 int ret; local
972 int ret; local
999 int ret = 0; local
1031 int ret = 0; local
[all...]
/drivers/media/tuners/
H A Dm88ts2022.c24 int ret, i; local
39 ret = regmap_write(dev->regmap, reg_vals[i].reg,
41 if (ret)
47 ret = regmap_read(dev->regmap, reg, &utmp);
48 if (ret)
58 return ret;
65 int ret; local
98 ret = regmap_bulk_write(dev->regmap, 0x10, buf, 2);
99 if (ret)
117 ret
272 int ret, i; local
342 int ret; local
378 int ret; local
438 int ret; local
[all...]
H A Dqm1d1c0042.c66 int ret; local
68 ret = i2c_master_send(state->i2c, wbuf, sizeof(wbuf));
69 if (ret >= 0 && ret < sizeof(wbuf))
70 ret = -EIO;
71 return (ret == sizeof(wbuf)) ? 0 : ret;
90 int ret; local
92 ret = i2c_transfer(state->i2c->adapter, msgs, ARRAY_SIZE(msgs));
93 if (ret >
111 int ret; local
182 int i, ret; local
301 int ret; local
320 int i, ret; local
[all...]
/drivers/media/pci/saa7164/
H A Dsaa7164-cmd.c28 int i, ret = -1; local
36 ret = dev->cmds[i].seqno;
42 return ret;
69 int ret = 0; local
74 ret = dev->cmds[seqno].timeout;
78 return ret;
85 int ret = SAA_OK, i = 0; local
96 ret = saa7164_bus_get(dev, &tRsp, NULL, 1);
97 if (ret != SAA_OK)
115 ret
138 int ret; local
197 int ret = -1; local
265 int ret = SAA_BUS_TIMEOUT; local
353 int ret; local
[all...]
/drivers/iio/light/
H A Dal3320a.c88 int ret; local
91 ret = i2c_smbus_write_byte_data(data->client, AL3320A_REG_CONFIG,
93 if (ret < 0)
94 return ret;
96 ret = i2c_smbus_write_byte_data(data->client, AL3320A_REG_CONFIG_RANGE,
98 if (ret < 0)
99 return ret;
101 ret = i2c_smbus_write_byte_data(data->client, AL3320A_REG_MEAN_TIME,
103 if (ret < 0)
104 return ret;
119 int ret; local
182 int ret; local
[all...]
/drivers/media/dvb-frontends/
H A Dcxd2820r_core.c31 int ret; local
52 ret = i2c_transfer(priv->i2c, msg, 1);
53 if (ret == 1) {
54 ret = 0;
57 "len=%d\n", KBUILD_MODNAME, ret, reg, len);
58 ret = -EREMOTEIO;
60 return ret;
67 int ret; local
90 ret = i2c_transfer(priv->i2c, msg, 2);
91 if (ret
107 int ret; local
133 int ret; local
171 int ret; local
191 int ret, i; local
257 int ret; local
299 int ret; local
324 int ret; local
352 int ret; local
377 int ret; local
402 int ret; local
427 int ret; local
457 int ret; local
483 int ret; local
509 int ret, i; local
704 int ret; local
[all...]
/drivers/regulator/
H A Dtps80031-regulator.c106 int ret; local
111 ret = tps80031_read(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg,
113 if (ret < 0) {
115 ri->rinfo->state_reg, ret);
116 return ret;
125 int ret; local
130 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg,
132 if (ret < 0) {
134 ri->rinfo->state_reg, ret);
135 return ret;
144 int ret; local
183 int ret; local
217 int ret; local
289 int ret = -EIO; local
316 int ret; local
340 int ret = 0; local
511 int ret = 0; local
542 int ret = 0; local
604 int ret; local
684 int ret; local
[all...]
/drivers/net/wireless/ti/wlcore/
H A Dacx.c41 int ret; local
48 ret = -ENOMEM;
56 ret = wl1271_cmd_configure(wl, ACX_WAKE_UP_CONDITIONS,
58 if (ret < 0) {
59 wl1271_warning("could not set wake up conditions: %d", ret);
65 return ret;
71 int ret; local
77 ret = -ENOMEM;
83 ret = wl1271_cmd_configure(wl, ACX_SLEEP_AUTH, auth, sizeof(*auth));
84 if (ret <
101 int ret; local
131 int ret; local
161 int ret; local
176 int ret; local
203 int ret; local
232 int ret; local
264 int ret; local
295 int ret; local
330 int ret; local
359 int ret = 0; local
400 int ret; local
459 int ret; local
496 int ret; local
526 int i, ret; local
555 int ret; local
581 int ret; local
611 int ret; local
638 int ret; local
668 int ret; local
696 int ret; local
722 int ret; local
741 int ret = 0; local
811 int ret = 0; local
844 int ret = 0; local
880 int ret = 0; local
914 int ret = 0; local
947 int ret = 0; local
975 int ret; local
1014 int ret; local
1046 int ret; local
1077 int ret = 0; local
1109 int ret; local
1142 int ret = 0; local
1171 int ret = 0; local
1199 int ret = 0; local
1231 int ret = 0; local
1273 int ret = 0; local
1305 int ret = 0; local
1354 int ret = 0; local
1390 int ret; local
1425 int ret; local
1466 int ret; local
1496 int i, ret = 0; local
1543 int ret; local
1568 int ret; local
1599 int ret; local
1625 int ret; local
1666 int ret; local
1708 int ret; local
1748 int ret = 0; local
1779 int ret; local
1810 int ret; local
[all...]
/drivers/dma/dw/
H A Dpci.c28 int ret; local
30 ret = pcim_enable_device(pdev);
31 if (ret)
32 return ret;
34 ret = pcim_iomap_regions(pdev, 1 << 0, pci_name(pdev));
35 if (ret) {
37 return ret;
43 ret = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
44 if (ret)
45 return ret;
71 int ret; local
[all...]
/drivers/hwspinlock/
H A Dhwspinlock_core.c90 int ret; local
109 ret = spin_trylock_irqsave(&hwlock->lock, *flags);
111 ret = spin_trylock_irq(&hwlock->lock);
113 ret = spin_trylock(&hwlock->lock);
116 if (!ret)
120 ret = hwlock->bank->ops->trylock(hwlock);
123 if (!ret) {
180 int ret; local
187 ret = __hwspin_trylock(hwlock, mode, flags);
188 if (ret !
263 int ret; local
288 int ret; local
329 int ret = 0, i; local
407 int ret; local
467 int ret; local
510 int ret; local
559 int ret; local
[all...]
/drivers/mfd/
H A Dlm3533-ctrlbank.c41 int ret; local
46 ret = lm3533_update(cb->lm3533, LM3533_REG_CTRLBANK_ENABLE,
48 if (ret)
51 return ret;
58 int ret; local
63 ret = lm3533_update(cb->lm3533, LM3533_REG_CTRLBANK_ENABLE, 0, mask);
64 if (ret)
67 return ret;
80 int ret; local
88 ret
[all...]
/drivers/misc/
H A Dhmc6352.c35 int ret = i2c_master_send(c, &cmd, 1); local
36 if (ret < 0)
38 return ret;
45 int ret; local
48 ret = kstrtoul(buf, 10, &val);
49 if (ret)
50 return ret;
54 ret = compass_command(c, map[val]);
56 if (ret < 0)
57 return ret;
78 int ret; local
[all...]
/drivers/misc/sgi-xp/
H A Dxp_uv.c48 int ret; local
54 ret = gru_read_gpa(dst_va, src_gpa);
55 if (ret == 0)
68 int ret; local
73 ret = gru_copy_gpa(dst_gpa, src_gpa, len);
74 if (ret == 0)
92 int ret; local
95 ret = uv_bios_change_memprotect(phys_addr, size, UV_MEMPROT_ALLOW_RW);
96 if (ret != BIOS_STATUS_SUCCESS) {
98 "UV_MEMPROT_ALLOW_RW) failed, ret
121 int ret; local
[all...]
/drivers/power/reset/
H A Dkeystone-reset.c73 int ret; local
93 ret = of_property_read_u32_index(np, "ti,syscon-pll", 1, &rspll_offset);
94 if (ret) {
99 ret = of_property_read_u32_index(np, "ti,syscon-dev", 1, &rsmux_offset);
100 if (ret) {
109 ret = rsctrl_enable_rspll_write();
110 if (ret)
111 return ret;
113 ret = regmap_write(pllctrl_regs, rspll_offset + RSCFG_RG, val);
114 if (ret)
[all...]
/drivers/media/i2c/
H A Ds5k4ecgx.c210 int ret; local
222 ret = i2c_transfer(client->adapter, msg, 2);
227 return ret == 2 ? 0 : ret;
234 int ret = i2c_master_send(client, buf, 4); local
237 return ret == 4 ? 0 : ret;
243 int ret; local
247 ret = s5k4ecgx_i2c_write(client, REG_CMDWR_ADDRH, high);
248 if (!ret)
259 int ret; local
276 int ret; local
296 int ret; local
385 int ret; local
410 int ret; local
434 int ret; local
449 int ret; local
475 int ret; local
592 int ret = 0; local
677 int ret; local
715 int ret; local
753 int ret; local
799 int ret; local
820 int ret = 0; local
852 int ret; local
879 int ret; local
912 int ret; local
941 int ret, i; local
[all...]
/drivers/infiniband/hw/ipath/
H A Dipath_sysfs.c52 int ret; local
55 ret = -EINVAL;
62 ret = -EINVAL;
68 ret = end + 1 - str;
69 if (ret == 0)
70 ret = -EINVAL;
73 return ret;
93 ssize_t ret; local
96 ret = -EINVAL;
100 ret
128 ssize_t ret; local
193 int ret; local
229 int ret; local
265 int ret; local
301 ssize_t ret; local
395 int ret; local
422 int ret; local
545 int ret; local
574 int ret, r; local
608 ssize_t ret; local
642 ssize_t ret; local
683 int ret, r; local
709 int ret; local
752 int ret; local
766 int ret, r; local
805 int ret; local
819 int ret, r; local
846 int ret; local
862 int ret; local
876 int ret, r; local
902 int ret; local
918 int ret; local
932 int ret, r; local
959 int ret; local
973 int ret, r; local
1011 int ret, stat; local
1051 int ret; local
1174 int ret; local
1188 int ret; local
[all...]
/drivers/gpu/drm/nouveau/core/subdev/devinit/
H A Dbase.c53 int ret; local
55 ret = nouveau_subdev_init(&devinit->base);
56 if (ret)
57 return ret;
59 ret = nvbios_init(&devinit->base, devinit->post);
60 if (ret)
61 return ret;
88 int ret; local
90 ret = nouveau_subdev_create_(parent, engine, oclass, 0, "DEVINIT",
93 if (ret)
[all...]

Completed in 3484 milliseconds

1234567891011>>