Searched refs:ret (Results 26 - 50 of 5719) sorted by relevance

1234567891011>>

/drivers/media/dvb-frontends/
H A Dsi2165.c108 int ret; local
130 ret = i2c_transfer(state->i2c, &msg, 1);
132 if (ret != 1) {
133 dev_err(&state->i2c->dev, "%s: ret == %d\n", __func__, ret);
134 if (ret < 0)
135 return ret;
146 int ret; local
155 ret = i2c_transfer(state->i2c, msg, 2);
157 if (ret !
175 int ret; local
187 int ret = si2165_read(state, reg, buf, 2); local
226 int ret; local
315 int ret = -EINVAL; local
333 int ret; local
405 int ret; local
569 int ret = 0; local
687 int ret; local
703 int ret; local
763 int ret; local
[all...]
H A Da8293.c32 int ret; local
46 ret = i2c_transfer(priv->i2c, msg, 1);
47 if (ret == 1) {
48 ret = 0;
51 KBUILD_MODNAME, ret, rd);
52 ret = -EREMOTEIO;
55 return ret;
72 int ret; local
91 ret = -EINVAL;
95 ret
118 int ret; local
[all...]
H A Dhd29l2.c28 int ret; local
43 ret = i2c_transfer(priv->i2c, msg, 1);
44 if (ret == 1) {
45 ret = 0;
49 KBUILD_MODNAME, ret, reg, len);
50 ret = -EREMOTEIO;
53 return ret;
59 int ret; local
75 ret = i2c_transfer(priv->i2c, msg, 2);
76 if (ret
103 int ret; local
123 int ret, i; local
144 int ret; local
169 int ret, i; local
212 int ret; local
247 int ret; local
279 int ret; local
304 int ret; local
338 int ret, i; local
561 int ret; local
725 int ret, i; local
797 int ret; local
[all...]
/drivers/vfio/
H A Dvfio_spapr_eeh.c40 long ret = -EINVAL; local
45 ret = eeh_enabled() ? 1 : 0;
47 ret = 0;
62 ret = eeh_pe_set_option(pe, EEH_OPT_DISABLE);
65 ret = eeh_pe_set_option(pe, EEH_OPT_ENABLE);
68 ret = eeh_pe_set_option(pe, EEH_OPT_THAW_MMIO);
71 ret = eeh_pe_set_option(pe, EEH_OPT_THAW_DMA);
74 ret = eeh_pe_get_state(pe);
77 ret = eeh_pe_reset(pe, EEH_RESET_DEACTIVATE);
80 ret
[all...]
/drivers/video/backlight/
H A Dhx8357.c222 int ret = 0; local
254 ret = spi_sync(lcd->spi, &msg);
255 if (ret < 0)
261 return ret;
278 int ret; local
280 ret = hx8357_spi_write_byte(lcdev, HX8357_SET_DISPLAY_OFF);
281 if (ret < 0)
282 return ret;
286 ret = hx8357_spi_write_byte(lcdev, HX8357_ENTER_SLEEP_MODE);
287 if (ret <
301 int ret; local
338 int ret; local
449 int ret; local
542 int ret = 0; local
587 int i, ret; local
[all...]
/drivers/staging/iio/light/
H A Disl29028.c100 int ret; local
105 ret = regmap_update_bits(chip->regmap, ISL29028_REG_CONFIGURE,
107 if (ret < 0)
108 return ret;
127 int ret = 0; local
131 ret = regmap_update_bits(chip->regmap, ISL29028_REG_CONFIGURE,
133 if (ret < 0)
134 return ret;
136 ret = regmap_update_bits(chip->regmap, ISL29028_REG_CONFIGURE,
141 ret
168 int ret; local
191 int ret; local
205 int ret; local
218 int ret; local
251 int ret; local
270 int ret = -EINVAL; local
329 int ret = -EINVAL; local
415 int ret; local
483 int ret; local
[all...]
/drivers/power/
H A Dsmb347-charger.c237 int ret; local
239 ret = regmap_read(smb->regmap, IRQSTAT_E, &val);
240 if (ret < 0)
241 return ret;
253 ret = smb->mains_online != dc || smb->usb_online != usb;
258 return ret;
272 bool ret; local
275 ret = smb->usb_online || smb->mains_online;
278 return ret;
291 int ret; local
305 int ret = 0; local
335 int ret; local
357 int ret; local
402 int ret; local
434 int ret; local
469 int ret = 0; local
625 int ret; local
712 int ret; local
793 int ret; local
838 int ret, irq = gpio_to_irq(pdata->irq_gpio); local
884 int ret, intval; local
914 int ret, intval; local
939 int ret; local
981 int ret; local
1019 int ret, status; local
1069 int ret; local
1198 int ret; local
[all...]
/drivers/mmc/host/
H A Dsdhci-pci-o2micro.c39 int ret; local
43 ret = pci_read_config_dword(chip->pdev,
45 if (ret)
52 ret = pci_read_config_dword(chip->pdev,
54 if (ret)
66 int ret; local
68 ret = pci_read_config_dword(chip->pdev, O2_SD_DEV_CTRL, &scratch_32);
69 if (ret)
75 ret = pci_read_config_dword(chip->pdev, O2_SD_MISC_REG5, &scratch_32);
76 if (ret)
188 int ret; local
[all...]
/drivers/xen/
H A Dsys-hypervisor.c78 int ret = -ENOMEM; local
83 ret = HYPERVISOR_xen_version(XENVER_extraversion, extra);
84 if (!ret)
85 ret = sprintf(buffer, "%s\n", extra);
89 return ret;
121 int ret; local
134 ret = sprintf(buffer, "%s\n", val);
136 return ret;
142 int ret; local
143 ret
166 int ret = -ENOMEM; local
184 int ret = -ENOMEM; local
202 int ret = -ENOMEM; local
244 int ret = -ENOMEM; local
262 int ret = -ENOMEM; local
280 int ret = -ENOMEM; local
300 int ret; local
313 ssize_t ret; local
331 int ret = xen_feature_show(i, buffer + len); local
373 int ret; local
[all...]
/drivers/mfd/
H A Dtps6105x.c30 int ret; local
32 ret = mutex_lock_interruptible(&tps6105x->lock);
33 if (ret)
34 return ret;
35 ret = i2c_smbus_write_byte_data(tps6105x->client, reg, value);
37 if (ret < 0)
38 return ret;
46 int ret; local
48 ret = mutex_lock_interruptible(&tps6105x->lock);
49 if (ret)
68 int ret; local
91 int ret; local
141 int ret; local
[all...]
/drivers/rtc/
H A Drtc-hym8563.c104 int ret; local
111 ret = i2c_smbus_read_i2c_block_data(client, HYM8563_SEC, 7, buf);
129 int ret; local
153 ret = i2c_smbus_write_byte_data(client, HYM8563_CTL1,
155 if (ret < 0)
156 return ret;
158 ret = i2c_smbus_write_i2c_block_data(client, HYM8563_SEC, 7, buf);
159 if (ret < 0)
160 return ret;
162 ret
194 int ret; local
234 int ret; local
310 int ret = i2c_smbus_read_byte_data(client, HYM8563_CLKOUT); local
336 int ret = i2c_smbus_read_byte_data(client, HYM8563_CLKOUT); local
357 int ret = i2c_smbus_read_byte_data(client, HYM8563_CLKOUT); local
384 int ret = i2c_smbus_read_byte_data(client, HYM8563_CLKOUT); local
407 int ret; local
445 int data, ret; local
473 int ret; local
504 int ret; local
534 int ret; local
[all...]
H A Drtc-tps80031.c70 int ret; local
72 ret = tps80031_reads(dev->parent, TPS80031_SLAVE_ID1,
74 if (ret < 0) {
75 dev_err(dev, "reading RTC_SECONDS_REG failed, err = %d\n", ret);
76 return ret;
92 int ret; local
103 ret = tps80031_clr_bits(dev->parent, TPS80031_SLAVE_ID1,
105 if (ret < 0) {
106 dev_err(dev->parent, "Stop RTC failed, err = %d\n", ret);
107 return ret;
128 int ret; local
146 int ret; local
167 int ret; local
189 int ret; local
218 int ret; local
240 int ret; local
[all...]
H A Drtc-max77686.c116 int ret; local
124 ret = regmap_update_bits(info->max77686->rtc_regmap,
126 if (ret < 0)
127 dev_err(info->dev, "%s: fail to write update reg(ret=%d, data=0x%x)\n",
128 __func__, ret, data);
134 return ret;
141 int ret; local
145 ret = max77686_rtc_update(info, MAX77686_RTC_READ);
146 if (ret < 0)
149 ret
169 int ret; local
197 int i, ret; local
242 int ret, i; local
281 int ret; local
329 int ret; local
365 int ret; local
399 int ret; local
422 int ret; local
[all...]
H A Drtc-twl.c144 int ret; local
146 ret = twl_i2c_read_u8(TWL_MODULE_RTC, data, (rtc_reg_map[reg]));
147 if (ret < 0)
149 "register %X - error %d\n", reg, ret);
150 return ret;
158 int ret; local
160 ret = twl_i2c_write_u8(TWL_MODULE_RTC, data, (rtc_reg_map[reg]));
161 if (ret < 0)
163 "register %X - error %d\n", reg, ret);
164 return ret;
179 int ret; local
200 int ret; local
219 int ret; local
250 int ret; local
317 int ret; local
358 int ret; local
385 int ret; local
415 int ret = IRQ_NONE; local
477 int ret = -EINVAL; local
[all...]
H A Drtc-tps65910.c60 int ret; local
63 ret = regmap_update_bits(tps->regmap, TPS65910_RTC_CTRL,
65 if (ret < 0) {
66 dev_err(dev, "RTC CTRL reg update failed with err:%d\n", ret);
67 return ret;
70 ret = regmap_bulk_read(tps->regmap, TPS65910_SECONDS, rtc_data,
72 if (ret < 0) {
73 dev_err(dev, "reading from RTC failed with err:%d\n", ret);
74 return ret;
84 return ret;
91 int ret; local
133 int ret; local
163 int ret; local
196 int ret; local
228 int ret; local
[all...]
H A Drtc-max8997.c119 int ret; local
121 ret = max8997_write_reg(info->rtc, MAX8997_RTC_UPDATE1,
123 if (ret < 0)
125 __func__, ret);
133 return ret;
140 int ret; local
143 ret = max8997_bulk_read(info->rtc, MAX8997_RTC_SEC, RTC_NR_TIME, data);
146 if (ret < 0) {
148 ret);
149 return ret;
161 int ret; local
187 int i, ret; local
228 int ret, i; local
260 int ret; local
300 int ret; local
339 int ret; local
372 int ret; local
400 int ret; local
433 int ret; local
456 int ret, virq; local
[all...]
/drivers/platform/x86/
H A Dintel_mid_thermal.c182 int ret; local
189 ret = intel_msic_reg_write(INTEL_MSIC_ADC1CNTL3, MSIC_ADCRRDATA_ENBL);
190 if (ret)
191 return ret;
194 ret = intel_msic_reg_write(INTEL_MSIC_ADC1CNTL3, MSIC_ADCTHERM_ENBL);
195 if (ret)
196 return ret;
199 ret = intel_msic_reg_read(addr, &data);
200 if (ret)
201 return ret;
232 int ret; local
259 int ret; local
293 int ret; local
317 int ret; local
353 int ret; local
480 int ret; local
[all...]
/drivers/thermal/st/
H A Dst_thermal.c55 int ret; local
58 ret = clk_prepare_enable(sensor->clk);
59 if (ret) {
61 return ret;
64 ret = sensor->ops->power_ctrl(sensor, POWER_ON);
65 if (ret) {
70 return ret;
75 int ret; local
77 ret = sensor->ops->power_ctrl(sensor, POWER_OFF);
78 if (ret)
88 int ret; local
121 int ret; local
194 int ret; local
289 int ret; local
[all...]
/drivers/media/radio/wl128x/
H A Dfmdrv_rx.c52 int ret; local
62 ret = fmc_send_cmd(fmdev, AUDIO_ENABLE_SET, REG_WR, &payload,
64 if (ret < 0)
65 return ret;
69 ret = fmc_send_cmd(fmdev, HILO_SET, REG_WR, &payload,
71 if (ret < 0)
72 return ret;
77 ret = fmc_send_cmd(fmdev, FREQ_SET, REG_WR, &payload,
79 if (ret < 0)
80 return ret;
148 int ret; local
177 int ret; local
303 int ret; local
364 int ret; local
421 int ret; local
455 int ret; local
492 int ret; local
522 int ret; local
546 int ret; local
584 int ret; local
613 int ret; local
634 int ret; local
676 int ret; local
767 int ret; local
808 int ret; local
[all...]
/drivers/memory/
H A Dof_memory.c33 int ret = 0; local
40 ret |= of_property_read_u32(np, "tRPab-min-tck", &min->tRPab);
41 ret |= of_property_read_u32(np, "tRCD-min-tck", &min->tRCD);
42 ret |= of_property_read_u32(np, "tWR-min-tck", &min->tWR);
43 ret |= of_property_read_u32(np, "tRASmin-min-tck", &min->tRASmin);
44 ret |= of_property_read_u32(np, "tRRD-min-tck", &min->tRRD);
45 ret |= of_property_read_u32(np, "tWTR-min-tck", &min->tWTR);
46 ret |= of_property_read_u32(np, "tXP-min-tck", &min->tXP);
47 ret |= of_property_read_u32(np, "tRTP-min-tck", &min->tRTP);
48 ret |
68 int ret; local
[all...]
/drivers/hwmon/pmbus/
H A Dltc2978.c109 int ret; local
113 ret = pmbus_read_word_data(client, page, LTC2978_MFR_VIN_PEAK);
114 if (ret >= 0) {
115 if (lin11_to_val(ret) > lin11_to_val(data->vin_max))
116 data->vin_max = ret;
117 ret = data->vin_max;
121 ret = pmbus_read_word_data(client, page, LTC2978_MFR_VOUT_PEAK);
122 if (ret >= 0) {
127 if (ret > data->vout_max[page])
128 data->vout_max[page] = ret;
158 int ret; local
212 int ret; local
247 int ret; local
288 int ret; local
313 int ret; local
328 int ret; local
[all...]
/drivers/infiniband/hw/qib/
H A Dqib_qsfp.c51 int ret, cnt, pass = 0; local
55 ret = mutex_lock_interruptible(&dd->eep_lock);
56 if (ret)
60 ret = -ENXIO;
87 ret = qib_twsi_reset(dd);
88 if (ret) {
91 ret = -EIO;
105 ret = qib_twsi_blk_rd(dd, QSFP_DEV, addr, buff + cnt, wlen);
107 if (ret && cnt == 0 && ++pass < QSFP_MAX_RETRY)
109 if (ret) {
161 int ret, cnt; local
253 int ret; local
273 int ret; local
444 int ret; local
501 int sofar, ret; local
[all...]
/drivers/net/usb/
H A Dsmsc95xx.c81 int ret; local
91 ret = fn(dev, USB_VENDOR_REQUEST_READ_REGISTER, USB_DIR_IN
94 if (unlikely(ret < 0))
96 index, ret);
101 return ret;
108 int ret; local
121 ret = fn(dev, USB_VENDOR_REQUEST_WRITE_REGISTER, USB_DIR_OUT
124 if (unlikely(ret < 0))
126 index, ret);
128 return ret;
162 int ret; local
183 int ret; local
228 int ret; local
293 int ret; local
319 int ret; local
342 int i, ret; local
380 int i, ret; local
434 int ret; local
462 int ret; local
521 int ret = smsc95xx_read_reg(dev, AFC_CFG, &afc_cfg); local
561 int ret; local
630 int ret; local
728 int ret; local
788 int ret; local
802 int ret; local
832 int bmcr, ret, timeout = 0; local
879 int ret = 0, timeout; local
1106 int ret; local
1179 int ret; local
1203 int ret; local
1221 int ret; local
1261 int ret; local
1308 int ret; local
1330 int ret; local
1368 int ret; local
1417 int ret; local
1675 int ret; local
1720 int ret; local
[all...]
H A Dsmsc75xx.c88 int ret; local
98 ret = fn(dev, USB_VENDOR_REQUEST_READ_REGISTER, USB_DIR_IN
101 if (unlikely(ret < 0))
103 index, ret);
108 return ret;
115 int ret; local
128 ret = fn(dev, USB_VENDOR_REQUEST_WRITE_REGISTER, USB_DIR_OUT
131 if (unlikely(ret < 0))
133 index, ret);
135 return ret;
169 int ret; local
190 int ret; local
237 int ret; local
304 int ret; local
330 int ret; local
353 int i, ret; local
391 int i, ret; local
442 int i, ret; local
468 int i, ret; local
534 int ret; local
596 int ret; local
637 int ret; local
726 int ret; local
786 int ret = smsc75xx_write_reg(dev, RX_ADDRH, addr_hi); local
814 int bmcr, ret, timeout = 0; local
868 int ret = 0; local
914 int ret; local
935 int ret; local
960 int ret; local
984 int ret = 0, timeout; local
1386 int ret; local
1463 int ret; local
1502 int ret; local
1528 int ret; local
1564 int ret; local
1590 int ret; local
1636 int ret; local
1664 int ret; local
1684 int ret; local
1725 int ret; local
2026 int ret; local
[all...]
/drivers/media/i2c/m5mols/
H A Dm5mols_controls.c137 int ret; local
142 ret = v4l2_ctrl_s_ctrl(info->lock_3a, 0);
143 if (!ret)
144 ret = m5mols_write(sd, AE_EV_PRESET_MONITOR, mode);
145 if (!ret)
146 ret = m5mols_write(sd, AE_EV_PRESET_CAPTURE, mode);
147 if (!ret)
148 ret = m5mols_write(sd, AE_MODE, scenemode.metering);
149 if (!ret)
150 ret
192 int ret = 0; local
244 int ret = 0; local
294 int ret = -EINVAL; local
319 int ret = m5mols_write(&info->sd, MON_CHROMA_LVL, val); local
332 int ret = 0; local
377 int ret; local
394 int ret; local
407 int ret = 0; local
455 int ret = 0; local
545 int ret; local
608 int ret = info->handle.error; local
[all...]

Completed in 531 milliseconds

1234567891011>>