Searched refs:ret (Results 51 - 75 of 5719) sorted by relevance

1234567891011>>

/drivers/gpu/drm/nouveau/core/subdev/fb/
H A Dgk20a.c33 int ret; local
35 ret = nouveau_fb_init(&priv->base);
36 if (ret)
37 return ret;
49 int ret; local
51 ret = nouveau_fb_create(parent, engine, oclass, &priv);
53 if (ret)
54 return ret;
/drivers/mfd/
H A Dwm831x-auxadc.c40 int ret; local
59 ret = wm831x_set_bits(wm831x, WM831X_AUXADC_CONTROL,
61 if (ret != 0) {
63 ret);
70 ret = wm831x_set_bits(wm831x, WM831X_AUXADC_SOURCE,
72 if (ret != 0) {
74 "Failed to set AUXADC source: %d\n", ret);
83 ret = wm831x_set_bits(wm831x, WM831X_AUXADC_CONTROL,
88 if (ret != 0) {
90 ret);
117 int ret, input, val; local
161 int ret, src, timeout; local
264 int ret; local
278 int ret; local
[all...]
H A Dstw481x.c51 int ret; local
53 ret = regmap_write(stw481x->map, STW_PCTL_REG_HI, msb);
54 if (ret)
55 return ret;
56 ret = regmap_write(stw481x->map, STW_PCTL_REG_LO, lsb);
57 if (ret)
58 return ret;
59 ret = regmap_read(stw481x->map, STW_PCTL_REG_HI, &val);
60 if (ret)
61 return ret;
85 int ret; local
179 int ret; local
[all...]
/drivers/net/wireless/cw1200/
H A Dfwio.c56 int ret, block, num_blocks; local
67 ret = cw1200_apb_write_32(priv, CW1200_APB(reg), (val)); \
68 if (ret < 0) \
73 ret = cw1200_apb_read_32(priv, CW1200_APB(reg), &(val)); \
74 if (ret < 0) \
79 ret = cw1200_reg_write_32(priv, (reg), (val)); \
80 if (ret < 0) \
85 ret = cw1200_reg_read_32(priv, (reg), &(val)); \
86 if (ret < 0) \
142 ret
265 int ret = cw1200_reg_read_16(priv, local
299 int ret; local
[all...]
H A Dhwio.c104 int ret; local
106 ret = __cw1200_reg_read(priv, addr, buf, buf_len, 0);
108 return ret;
114 int ret; local
116 ret = __cw1200_reg_write(priv, addr, buf, buf_len, 0);
118 return ret;
123 int ret, retry = 1; local
129 ret = __cw1200_reg_read(priv,
132 if (!ret) {
139 pr_err("error :[%d]\n", ret);
150 int ret, retry = 1; local
178 int i, ret; local
241 int ret; local
274 int ret; local
[all...]
/drivers/iio/gyro/
H A Dbmg160.c140 int ret; local
142 ret = i2c_smbus_write_byte_data(data->client,
144 if (ret < 0) {
146 return ret;
166 int ret; local
173 ret = i2c_smbus_write_byte_data(data->client, BMG160_REG_PMU_BW,
175 if (ret < 0) {
177 return ret;
187 int ret; local
189 ret
260 int ret; local
285 int ret; local
366 int ret; local
444 int ret, i; local
467 int ret; local
495 int ret; local
526 int ret; local
586 int ret; local
701 int ret; local
822 int bit, ret, i = 0; local
849 int ret; local
873 int ret; local
921 int ret; local
996 int ret; local
1037 int ret; local
1210 int ret; local
1225 int ret; local
[all...]
/drivers/net/dsa/
H A Dmv88e6xxx.c30 int ret; local
34 ret = mdiobus_read(bus, sw_addr, 0);
35 if (ret < 0)
36 return ret;
38 if ((ret & 0x8000) == 0)
47 int ret; local
53 ret = mv88e6xxx_reg_wait_ready(bus, sw_addr);
54 if (ret < 0)
55 return ret;
58 ret
79 int ret; local
94 int ret; local
126 int ret; local
168 int ret; local
206 int ret; local
225 int ret; local
266 int ret; local
312 int ret; local
326 int ret; local
401 int ret; local
415 int ret; local
431 int ret; local
473 int ret; local
[all...]
/drivers/rtc/
H A Drtc-max77802.c117 int ret; local
125 ret = regmap_update_bits(info->max77802->regmap,
127 if (ret < 0)
128 dev_err(info->dev, "%s: fail to write update reg(ret=%d, data=0x%x)\n",
129 __func__, ret, data);
136 return ret;
143 int ret; local
147 ret = max77802_rtc_update(info, MAX77802_RTC_READ);
148 if (ret < 0)
151 ret
172 int ret; local
200 int ret; local
247 int ret; local
271 int ret; local
300 int ret; local
336 int ret; local
370 int ret; local
396 int ret; local
[all...]
H A Drtc-mc13xxx.c51 int ret; local
55 ret = mc13xxx_rtc_irq_enable_unlocked(dev, enabled, MC13XXX_IRQ_TODA);
59 return ret;
71 int ret; local
73 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCDAY, &days1);
74 if (ret)
75 return ret;
77 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCTOD, &seconds);
78 if (ret)
79 return ret;
96 int ret; local
164 int ret; local
205 int ret; local
291 int ret; local
[all...]
/drivers/base/
H A Dcontainer.c39 int ret; local
41 ret = subsys_system_register(&container_subsys, NULL);
42 if (ret)
43 pr_err("%s() failed: %d\n", __func__, ret);
/drivers/gpu/drm/nouveau/core/subdev/pwr/fuc/
H A Dperf.fuc49 ret
56 ret
/drivers/pcmcia/
H A Dpxa2xx_cm_x2xx.c25 int ret = -ENODEV; local
28 ret = cmx255_pcmcia_init();
30 ret = cmx270_pcmcia_init();
32 return ret;
/drivers/net/wireless/libertas/
H A Dif_sdio.c149 int ret; local
152 scratch = sdio_readb(card->func, card->scratch_reg, &ret);
153 if (!ret)
155 &ret) << 8;
158 *err = ret;
160 if (ret)
168 int ret; local
171 rx_unit = sdio_readb(card->func, IF_SDIO_RX_UNIT, &ret);
173 if (ret)
181 int ret; local
210 int ret; local
243 int ret; local
281 int ret; local
319 int ret = 0; local
337 int ret; local
422 int ret; local
467 int ret; local
566 int ret; local
698 if_sdio_do_prog_firmware(struct lbs_private *priv, int ret, const struct firmware *helper, const struct firmware *mainfw) argument
725 int ret; local
785 int ret; local
868 int ret; local
945 int ret; local
1023 int ret = -1; local
1041 int ret = -1; local
1058 int ret = -1; local
1107 int ret; local
1142 int ret; local
1186 int ret, i; local
1345 int ret; local
1387 int ret; local
1417 int ret = 0; local
[all...]
/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_dmabuf.c56 int ret; local
58 ret = ttm_write_lock(&dev_priv->reservation_sem, interruptible);
59 if (unlikely(ret != 0))
60 return ret;
64 ret = ttm_bo_reserve(bo, interruptible, false, false, NULL);
65 if (unlikely(ret != 0))
68 ret = ttm_bo_validate(bo, placement, interruptible, false);
74 return ret;
99 int ret; local
101 ret
202 int ret = 0; local
305 int ret; local
[all...]
/drivers/staging/gdm72xx/
H A Dusb_boot.c79 int ret; local
82 ret = usb_bulk_msg(usbdev, usb_sndbulkpipe(usbdev, 1), data, len,
85 if (ret < 0) {
87 ret);
88 return ret;
95 int ret; local
98 ret = usb_bulk_msg(usbdev, usb_rcvbulkpipe(usbdev, 2), data, len,
101 if (ret < 0) {
103 "Error : usb_bulk_msg(recv) ( result = %d )\n", ret);
104 return ret;
114 int ret = 0; local
146 int i, ret = 0; local
247 int ret = -1; local
269 int ret = 0; local
342 int ret; local
[all...]
/drivers/media/tuners/
H A De4000.c27 int ret; local
32 ret = regmap_write(s->regmap, 0x02, 0x40);
35 ret = regmap_write(s->regmap, 0x00, 0x01);
36 if (ret)
40 ret = regmap_write(s->regmap, 0x06, 0x00);
41 if (ret)
44 ret = regmap_write(s->regmap, 0x7a, 0x96);
45 if (ret)
49 ret = regmap_bulk_write(s->regmap, 0x7e, "\x01\xfe", 2);
50 if (ret)
98 int ret; local
118 int ret, i, sigma_delta; local
274 int ret; local
309 int ret; local
340 int ret; local
378 int ret; local
396 int ret; local
419 int ret; local
481 int ret; local
[all...]
/drivers/gpu/drm/nouveau/
H A Dnvc0_fence.c34 int ret = RING_SPACE(chan, 6); local
35 if (ret == 0) {
44 return ret;
50 int ret = RING_SPACE(chan, 5); local
51 if (ret == 0) {
60 return ret;
66 int ret = nv84_fence_context_new(chan); local
67 if (ret == 0) {
72 return ret;
78 int ret local
[all...]
/drivers/media/dvb-frontends/
H A Dm88ds3103.c27 int ret; local
45 ret = i2c_transfer(priv->i2c, msg, 1);
47 if (ret == 1) {
48 ret = 0;
52 KBUILD_MODNAME, ret, reg, len);
53 ret = -EREMOTEIO;
56 return ret;
65 int ret; local
85 ret = i2c_transfer(priv->i2c, msg, 2);
87 if (ret
116 int ret; local
137 int ret, i; local
160 int ret, i, j; local
193 int ret; local
246 int ret, len; local
521 int ret, len, remaining; local
637 int ret; local
671 int ret; local
845 int ret, i, tmp; local
923 int ret; local
1005 int ret; local
1052 int ret; local
1103 int ret, i; local
1175 int ret, i; local
1258 int ret; local
1297 int ret; local
[all...]
H A Dcxd2820r_c.c28 int ret, i; local
60 ret = cxd2820r_wr_reg_mask(priv, tab[i].reg,
62 if (ret)
72 ret = fe->ops.tuner_ops.get_if_frequency(fe, &if_freq);
73 if (ret)
86 ret = cxd2820r_wr_regs(priv, 0x10042, buf, 2);
87 if (ret)
90 ret = cxd2820r_wr_reg(priv, 0x000ff, 0x08);
91 if (ret)
94 ret
108 int ret; local
157 int ret; local
192 int ret; local
221 int ret; local
265 int ret; local
295 int ret; local
310 int ret, i; local
[all...]
/drivers/media/i2c/soc_camera/
H A Dmt9t112.c49 #define ECHECKER(ret, x) \
51 (ret) = (x); \
52 if ((ret) < 0) \
53 return (ret); \
56 #define mt9t112_reg_write(ret, client, a, b) \
57 ECHECKER(ret, __mt9t112_reg_write(client, a, b))
58 #define mt9t112_mcu_write(ret, client, a, b) \
59 ECHECKER(ret, __mt9t112_mcu_write(client, a, b))
61 #define mt9t112_reg_mask_set(ret, client, a, b, c) \
62 ECHECKER(ret, __mt9t112_reg_mask_se
152 int ret; local
184 int ret; local
226 int ret; local
238 int ret; local
264 int ret; local
354 int ret; local
385 int ret; local
417 int data, i, ret; local
505 int ret; local
662 int ret; local
684 int ret; local
693 int ret; local
745 int ret; local
759 int ret; local
792 int ret = 0; local
933 int ret; local
1037 int ret; local
1081 int ret; local
[all...]
/drivers/clk/
H A Dclk-wm831x.c81 int ret; local
83 ret = wm831x_reg_read(wm831x, WM831X_FLL_CONTROL_1);
84 if (ret < 0) {
86 ret);
90 return (ret & WM831X_FLL_ENA) != 0;
98 int ret; local
100 ret = wm831x_set_bits(wm831x, WM831X_FLL_CONTROL_1,
102 if (ret != 0)
103 dev_crit(wm831x->dev, "Failed to enable FLL: %d\n", ret);
107 return ret;
115 int ret; local
128 int ret; local
190 int ret; local
245 int ret; local
262 int ret; local
285 int ret; local
311 int ret; local
357 int ret; local
[all...]
/drivers/net/wireless/ti/wl18xx/
H A Dcmd.c34 int ret; local
40 ret = -ENOMEM;
59 ret = -EINVAL;
70 ret = wl1271_cmd_send(wl, CMD_CHANNEL_SWITCH, cmd, sizeof(*cmd), 0);
71 if (ret < 0) {
79 return ret;
85 int ret = 0; local
92 ret = -ENOMEM;
98 ret = wl1271_cmd_send(wl, CMD_SMART_CONFIG_START, cmd, sizeof(*cmd), 0);
99 if (ret <
113 int ret = 0; local
139 int ret = 0; local
[all...]
H A Dacx.c33 int ret; local
41 ret = -ENOMEM;
50 ret = wl1271_cmd_configure(wl, ACX_HOST_IF_CFG_BITMAP,
52 if (ret < 0) {
53 wl1271_warning("wl1271 bitmap config opt failed: %d", ret);
60 return ret;
66 int ret; local
72 ret = -ENOMEM;
78 ret = wl1271_cmd_configure(wl, ACX_CSUM_CONFIG, acx, sizeof(*acx));
79 if (ret <
92 int ret = 0; local
116 int ret; local
155 int ret = 0; local
[all...]
/drivers/staging/iio/resolver/
H A Dad2s1210.c112 int ret; local
116 ret = spi_write(st->sdev, st->tx, 1);
117 if (ret < 0)
118 return ret;
133 int ret = 0; local
138 ret = spi_sync_transfer(st->sdev, &xfer, 1);
139 if (ret < 0)
140 return ret;
149 int ret; local
158 ret
186 int ret; local
211 int ret; local
249 int ret; local
275 int ret; local
290 int ret; local
345 int ret; local
393 int ret; local
408 int ret; local
432 int ret; local
446 int ret; local
470 int ret = 0; local
599 int ret; local
671 int ret; local
[all...]
/drivers/iio/frequency/
H A Dad9523.c170 #define AD9523_CLK_DIST_DIV_PHASE_REV(x) ((ret >> 18) & 0x3F)
172 #define AD9523_CLK_DIST_DIV_REV(x) (((ret >> 8) & 0x3FF) + 1)
290 int ret; local
311 ret = spi_sync_transfer(st->spi, t, ARRAY_SIZE(t));
312 if (ret < 0)
313 dev_err(&indio_dev->dev, "read failed (%d)", ret);
315 ret = be32_to_cpu(st->data[1].d32) & (0xFFFFFF >>
318 return ret;
324 int ret; local
340 ret
357 int ret; local
435 int ret, tmp; local
473 int ret, tmp; local
503 int ret; local
534 int ret; local
623 int ret; local
659 int ret, tmp, code; local
715 int ret; local
749 int ret, i; local
957 int ret; local
[all...]

Completed in 530 milliseconds

1234567891011>>