Searched refs:ret (Results 126 - 150 of 5719) sorted by relevance

1234567891011>>

/drivers/media/common/
H A Dcypress_firmware.c75 int ret, pos = 0; local
85 ret = usb_cypress_writemem(udev, cypress[type].cs_reg, hx->data, 1);
86 if (ret != 1) {
88 KBUILD_MODNAME, ret);
89 ret = -EIO;
95 ret = cypress_get_hexline(fw, hx, &pos);
96 if (ret < 0)
98 else if (ret == 0)
101 ret = usb_cypress_writemem(udev, hx->addr, hx->data, hx->len);
102 if (ret <
[all...]
/drivers/staging/iio/addac/
H A Dadt7316-i2c.c24 int ret = 0; local
26 ret = i2c_smbus_write_byte(cl, reg);
27 if (ret < 0) {
29 return ret;
32 ret = i2c_smbus_read_byte(client);
33 if (ret < 0) {
35 return ret;
44 int ret = 0; local
46 ret = i2c_smbus_write_byte_data(cl, reg, data);
47 if (ret <
56 int i, ret = 0; local
75 int i, ret = 0; local
[all...]
/drivers/staging/iio/meter/
H A Dade7759.c30 int ret; local
38 ret = spi_write(st->us, st->tx, 2);
41 return ret;
48 int ret; local
56 ret = spi_write(st->us, st->tx, 3);
59 return ret;
68 int ret; local
70 ret = spi_w8r8(st->us, ADE7759_READ_REG(reg_address));
71 if (ret < 0) {
74 return ret;
87 int ret; local
107 int ret; local
139 int ret; local
154 int ret; local
169 int ret; local
186 int ret; local
204 int ret; local
218 int ret; local
282 int ret; local
316 int ret; local
342 int ret; local
366 int ret; local
444 int ret; local
[all...]
H A Dade7753.c30 int ret; local
38 ret = spi_write(st->us, st->tx, 2);
41 return ret;
48 int ret; local
56 ret = spi_write(st->us, st->tx, 3);
59 return ret;
68 ssize_t ret; local
70 ret = spi_w8r8(st->us, ADE7753_READ_REG(reg_address));
71 if (ret < 0) {
74 return ret;
87 ssize_t ret; local
107 int ret; local
140 int ret; local
155 int ret; local
170 int ret; local
187 int ret; local
205 int ret; local
323 int ret; local
355 int ret; local
381 int ret; local
403 int ret; local
495 int ret; local
[all...]
/drivers/media/dvb-frontends/
H A Dtda10071.c32 int ret; local
53 ret = i2c_transfer(priv->i2c, msg, 1);
54 if (ret == 1) {
55 ret = 0;
59 KBUILD_MODNAME, ret, reg, len);
60 ret = -EREMOTEIO;
62 return ret;
69 int ret; local
92 ret = i2c_transfer(priv->i2c, msg, 2);
93 if (ret
121 int ret; local
142 int ret, i; local
165 int ret, i; local
210 int ret; local
256 int ret; local
302 int ret, i; local
362 int ret, i; local
420 int ret, i; local
482 int ret; local
515 int ret; local
541 int ret; local
580 int ret, i, len; local
647 int ret = 0; local
669 int ret, i; local
818 int ret, i; local
875 int ret, i, len, remaining, fw_size; local
1153 int ret, i; local
1212 int ret; local
[all...]
H A Drtl2830.c36 int ret; local
57 ret = i2c_transfer(priv->i2c, msg, 1);
58 if (ret == 1) {
59 ret = 0;
62 "len=%d\n", KBUILD_MODNAME, ret, reg, len);
63 ret = -EREMOTEIO;
65 return ret;
71 int ret; local
86 ret = i2c_transfer(priv->i2c, msg, 2);
87 if (ret
101 int ret; local
120 int ret; local
145 int ret; local
165 int ret, i; local
187 int ret, i; local
283 int ret, i; local
392 int ret; local
503 int ret; local
531 int ret, hierarchy, constellation; local
580 int ret; local
607 int ret; local
645 int ret; local
687 int ret = 0; local
[all...]
/drivers/net/phy/
H A Damd-xgbe-phy.c356 int ret; local
358 ret = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_PMD_CTRL);
359 if (ret < 0)
360 return ret;
362 ret |= 0x02;
363 phy_write_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_PMD_CTRL, ret);
370 int ret; local
372 ret = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_10GBR_PMD_CTRL);
373 if (ret < 0)
374 return ret;
384 int ret; local
436 int ret; local
484 int ret; local
532 int ret; local
580 int ret; local
607 int ret; local
626 int ret; local
642 int ad_reg, lp_reg, ret; local
706 int ret, ad_reg, lp_reg; local
754 int ret; local
841 int ret; local
865 int ret; local
888 int ret; local
975 int count, ret; local
1027 int ret; local
1110 int ret; local
1169 int ret, ad_ret, lp_ret; local
1251 int ret; local
1272 int ret; local
1299 int ret; local
[all...]
/drivers/power/
H A Dbq2415x_charger.c201 int ret; local
216 ret = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg));
219 if (ret < 0)
220 return ret;
229 int ret; local
234 ret = bq2415x_i2c_read(bq, reg);
235 if (ret < 0)
236 return ret;
237 return (ret & mask) >> shift;
256 int ret; local
283 int ret; local
313 int ret; local
418 int ret = bq2415x_exec_command(bq, BQ2415X_PART_NUMBER); local
469 int ret = bq2415x_exec_command(bq, BQ2415X_REVISION); local
511 int ret; local
556 int ret; local
595 int ret; local
626 int ret = bq2415x_i2c_read_mask(bq, BQ2415X_REG_VOLTAGE, local
656 int ret; local
690 int ret; local
738 int ret = 0; local
808 int ret; local
890 int ret; local
1003 int ret; local
1030 int ret; local
1091 int ret; local
1124 int ret = 0; local
1172 int ret = 0; local
1224 ssize_t ret = 0; local
1291 ssize_t ret = 0; local
1312 int ret = bq2415x_i2c_read(bq, reg); local
1327 ssize_t ret = 0; local
1347 int ret; local
1378 int ret; local
1409 int ret; local
1444 int ret; local
1546 int ret; local
[all...]
/drivers/iio/gyro/
H A Dadis16136.c80 int ret; local
82 ret = adis_read_reg_16(&adis16136->adis, ADIS16136_REG_SERIAL_NUM,
84 if (ret < 0)
85 return ret;
87 ret = adis_read_reg_16(&adis16136->adis, ADIS16136_REG_LOT1, &lot1);
88 if (ret < 0)
89 return ret;
91 ret = adis_read_reg_16(&adis16136->adis, ADIS16136_REG_LOT2, &lot2);
92 if (ret < 0)
93 return ret;
116 int ret; local
134 int ret; local
189 int ret; local
206 int ret; local
226 int ret; local
254 int i, ret; local
273 int ret; local
298 int ret; local
412 int ret; local
427 int ret; local
498 int ret; local
[all...]
/drivers/media/radio/wl128x/
H A Dfmdrv_v4l2.c49 int ret; local
63 ret = fm_rx_get_rds_mode(fmdev, &rds_mode);
64 if (ret < 0) {
70 ret = fmc_set_rds_mode(fmdev, FM_RDS_ENABLE);
71 if (ret < 0) {
78 ret = fmc_transfer_rds_from_internal_buff(fmdev, file, buf, count);
81 return ret;
89 int ret; local
92 ret = copy_from_user(&rds, buf, sizeof(rds));
95 ret, rd
111 int ret; local
130 int ret; local
165 int ret; local
278 int ret; local
339 int ret; local
375 int ret; local
407 int ret; local
457 int ret; local
534 int ret; local
[all...]
/drivers/media/usb/em28xx/
H A Dem28xx-i2c.c53 int ret; local
71 ret = dev->em28xx_write_regs(dev, 4 - len, &b2[4 - len], 2 + len);
72 if (ret != 2 + len) {
74 addr, ret);
75 return (ret < 0) ? ret : -EIO;
79 ret = dev->em28xx_read_reg(dev, 0x05);
80 if (ret == 0x80 + len - 1)
82 if (ret == 0x94 + len - 1) {
85 ret);
108 int ret; local
168 int ret; local
183 int ret; local
249 int ret; local
309 int ret; local
325 int ret; local
377 int ret; local
432 int ret; local
618 int remain = len, rsize, rsize_max, ret; local
[all...]
/drivers/net/wimax/i2400m/
H A Dusb-notif.c85 int ret; local
91 ret = -EIO;
95 ret = 0;
100 ret = i2400m_is_boot_barker(i2400m, buf, buf_len);
101 if (unlikely(ret >= 0))
102 ret = i2400m_dev_reset_handle(i2400m, "device rebooted");
108 i2400mu, buf, buf_len, ret);
109 return ret;
125 int ret; local
131 ret
195 int usb_pipe, ret = 0; local
[all...]
/drivers/net/wireless/ti/wlcore/
H A Dboot.c39 int ret; local
42 ret = wlcore_read_reg(wl, REG_ECPU_CONTROL, &cpu_ctrl);
43 if (ret < 0)
48 ret = wlcore_write_reg(wl, REG_ECPU_CONTROL, cpu_ctrl);
51 return ret;
57 int ret; local
65 ret = sscanf(wl->chip.fw_ver_str + 4, "%u.%u.%u.%u.%u",
70 if (ret != 5) {
73 ret = -EINVAL;
77 ret
145 int ret; local
181 int ret; local
253 int ret = 0; local
290 int ret; local
440 int loop, ret; local
[all...]
/drivers/remoteproc/
H A Domap_remoteproc.c96 int ret; local
99 ret = omap_mbox_msg_send(oproc->mbox, vqid);
100 if (ret)
101 dev_err(dev, "omap_mbox_msg_send failed: %d\n", ret);
117 int ret; local
127 ret = PTR_ERR(oproc->mbox);
128 dev_err(dev, "omap_mbox_get failed: %d\n", ret);
129 return ret;
139 ret = omap_mbox_msg_send(oproc->mbox, RP_MBOX_ECHO_REQUEST);
140 if (ret) {
165 int ret; local
187 int ret; local
[all...]
/drivers/infiniband/hw/ipath/
H A Dipath_fs.c131 ssize_t ret; local
138 ret = -EINVAL;
143 ret = 0;
152 ret = -ENOMEM;
159 ret = -ENXIO;
164 ret = -EFAULT;
169 ret = count;
175 return ret;
182 ssize_t ret; local
189 ret
237 int ret; local
270 int ret; local
302 int ret; local
331 int ret; local
363 struct dentry *ret; local
378 int ret; local
393 int ret; local
[all...]
/drivers/media/usb/pvrusb2/
H A Dpvrusb2-dvb.c36 int ret; local
62 ret = pvr2_buffer_get_status(bp);
63 if (ret < 0) break;
65 ret = pvr2_buffer_queue(bp);
66 if (ret < 0) break;
78 ret = wait_event_interruptible(
82 if (ret < 0) break;
85 /* If we get here and ret is < 0, then an error has occurred.
146 int ret; local
152 ret
200 int ret = pvr2_dvb_stream_do_start(adap); local
208 int ret = 0; local
258 int ret; local
326 int ret = 0; local
410 int ret = 0; local
[all...]
H A Dpvrusb2-encoder.c46 int ret; local
73 ret = pvr2_send_request(hdw,
76 if (ret) return ret;
91 int ret; local
118 ret = pvr2_send_request(hdw,
122 if (ret) return ret;
150 int ret = 0; local
212 ret
349 int ret = 0; local
417 int ret; local
434 int ret; local
[all...]
/drivers/iio/pressure/
H A Dmpl3115.c49 int ret, tries = 15; local
52 ret = i2c_smbus_write_byte_data(data->client, MPL3115_CTRL_REG1,
54 if (ret < 0)
55 return ret;
58 ret = i2c_smbus_read_byte_data(data->client, MPL3115_CTRL_REG1);
59 if (ret < 0)
60 return ret;
62 if (!(ret & MPL3115_CTRL_OST))
81 int ret; local
91 ret
143 int ret, pos = 0; local
221 int ret; local
[all...]
/drivers/misc/mei/
H A Dwd.c62 int ret; local
80 ret = mei_cl_link(cl, MEI_WD_HOST_CLIENT_ID);
82 if (ret < 0) {
84 return ret;
87 ret = mei_cl_connect(cl, NULL);
89 if (ret) {
90 dev_err(dev->dev, "wd: failed to connect = %d\n", ret);
92 return ret;
95 ret = mei_watchdog_register(dev);
96 if (ret) {
117 int ret; local
162 int ret; local
273 int ret; local
371 int ret; local
[all...]
/drivers/net/can/softing/
H A Dsofting_fw.c33 int ret; local
45 ret = ioread8(&card->dpram[DPRAM_FCT_HOST]) +
49 if (ret == RES_OK)
53 if ((ret != vector) || time_after(jiffies, stamp))
59 ret = (ret == RES_NONE) ? -ETIMEDOUT : -ECANCELED;
60 dev_alert(&card->pdev->dev, "firmware %s failed (%i)\n", msg, ret);
61 return ret;
66 int ret; local
68 ret
79 int ret; local
148 int ret; local
233 int ret, j; local
329 int ret; local
351 int ret; local
430 int ret; local
[all...]
/drivers/staging/iio/accel/
H A Dsca3000_core.c115 int ret; local
117 ret = sca3000_read_data_short(st, SCA3000_REG_ADDR_STATUS, 1);
118 if (ret < 0)
119 return ret;
172 int ret; local
174 ret = sca3000_reg_lock_on(st);
175 if (ret < 0)
177 if (ret) {
178 ret = __sca3000_unlock_reg_lock(st);
179 if (ret)
203 int ret; local
234 int ret; local
260 int len = 0, ret; local
323 int len = 0, ret; local
374 int ret; local
481 int ret; local
544 int len = 0, ret, val; local
586 int ret; local
615 int ret, len = 0, base_freq = 0, val; local
657 int ret, base_freq = 0; local
714 int ret, i; local
748 int ret; local
802 int ret, val; local
867 int ret; local
898 int ret, len; local
929 int ret; local
972 int ret, ctrlval; local
1057 int ret; local
1124 int ret; local
1196 int ret; local
[all...]
/drivers/bluetooth/
H A Dbtmrvl_sdio.c195 int ret; local
197 reg = sdio_readb(card->func, card->reg->card_rx_unit, &ret);
198 if (!ret)
201 return ret;
207 int ret; local
211 fws0 = sdio_readb(card->func, card->reg->card_fw_status0, &ret);
212 if (ret)
215 fws1 = sdio_readb(card->func, card->reg->card_fw_status1, &ret);
216 if (ret)
227 int ret; local
239 int ret; local
254 int ret; local
275 int ret; local
299 int tries, ret; local
322 int ret; local
420 int firmwarelen, tmpfwbufsz, ret; local
562 int ret, num_blocks, blksz; local
713 int ret; local
729 int ret; local
763 int ret; local
793 int ret = 0; local
910 int ret; local
928 int ret; local
946 int ret = 0; local
999 int ret; local
1065 int ret = 0; local
1086 int ret = 0; local
[all...]
/drivers/cpufreq/
H A Dimx6q-cpufreq.c45 int ret; local
70 ret = regulator_set_voltage_tol(pu_reg, imx6_soc_volt[index], 0);
71 if (ret) {
72 dev_err(cpu_dev, "failed to scale vddpu up: %d\n", ret);
73 return ret;
76 ret = regulator_set_voltage_tol(soc_reg, imx6_soc_volt[index], 0);
77 if (ret) {
78 dev_err(cpu_dev, "failed to scale vddsoc up: %d\n", ret);
79 return ret;
81 ret
159 int num, ret; local
[all...]
/drivers/media/usb/dvb-usb-v2/
H A Ddvb_usb_core.c37 int ret; local
42 ret = -EINVAL;
46 ret = request_firmware(&fw, name, &d->udev->dev);
47 if (ret < 0) {
50 KBUILD_MODNAME, name, ret);
57 ret = d->props->download_firmware(d, fw);
59 if (ret < 0)
62 return ret;
64 dev_dbg(&d->udev->dev, "%s: failed=%d\n", __func__, ret);
65 return ret;
70 int ret; local
110 int ret; local
135 int ret; local
260 int ret = 0; local
348 int ret = 0; local
405 int ret; local
491 int ret; local
516 int ret; local
555 int ret; local
596 int ret, i, count_registered = 0; local
667 int ret, i; local
702 int ret, i, adapter_count; local
808 int ret; local
849 int ret; local
973 int ret = 0, i, active_fe; local
1003 int ret = 0, i, active_fe; local
1044 int ret; local
[all...]
/drivers/iio/adc/
H A Dtwl4030-madc.c75 int ret; local
86 ret = twl4030_madc_conversion(&req);
87 if (ret < 0)
88 return ret;
208 int ret; local
213 ret = twl_i2c_read_u16(TWL4030_MODULE_MADC, &val, reg);
214 if (ret) {
216 return ret;
229 int temp, curr, volt, res, ret; local
233 ret
253 int ret; local
348 int ret; local
379 int ret; local
403 int i, len, ret; local
481 int ret; local
506 int ret = 0; local
535 int ret; local
568 int ret; local
643 int ret; local
677 int ret; local
715 int ret; local
746 int irq, ret; local
[all...]

Completed in 517 milliseconds

1234567891011>>