Searched refs:ret (Results 151 - 175 of 5719) sorted by relevance

1234567891011>>

/drivers/media/usb/dvb-usb-v2/
H A Dmxl111sf-i2c.c38 int i, ret; local
43 ret = mxl111sf_read_reg(state, SW_I2C_BUSY_ADDR, &data);
44 if (mxl_fail(ret))
51 ret = mxl111sf_write_reg(state, SW_I2C_ADDR,
53 if (mxl_fail(ret))
56 ret = mxl111sf_write_reg(state, SW_I2C_ADDR,
58 if (mxl_fail(ret))
61 ret = mxl111sf_write_reg(state, SW_I2C_ADDR,
63 if (mxl_fail(ret))
69 ret
100 int i, ret; local
139 int ret; local
162 int ret; local
190 int ret; local
219 int ret; local
241 int i, ret; local
323 int ret = mxl111sf_ctrl_msg(state->d, wdata[0], local
333 int ret = mxl111sf_ctrl_msg(state->d, wdata[0], local
443 int i, k, ret = 0; local
820 int i, ret; local
[all...]
H A Dmxl111sf-demod.c78 int ret = mxl111sf_demod_read_reg(state, V6_CODE_RATE_TPS_REG, &val); local
80 if (mxl_fail(ret))
101 return ret;
109 int ret = mxl111sf_demod_read_reg(state, V6_MODORDER_TPS_REG, &val); local
111 if (mxl_fail(ret))
126 return ret;
134 int ret = mxl111sf_demod_read_reg(state, V6_MODE_TPS_REG, &val); local
136 if (mxl_fail(ret))
151 return ret;
159 int ret local
187 int ret = mxl111sf_demod_read_reg(state, V6_TPS_HIERACHY_REG, &val); local
218 int ret = mxl111sf_demod_read_reg(state, V6_SYNC_LOCK_REG, &val); local
231 int ret = mxl111sf_demod_read_reg(state, V6_RS_LOCK_DET_REG, &val); local
244 int ret = mxl111sf_demod_read_reg(state, V6_TPS_LOCK_REG, &val); local
257 int ret = mxl111sf_demod_read_reg(state, V6_IRQ_STATUS_REG, &val); local
290 int ret = 0; local
344 int ret; local
391 int ret; local
414 int ret; local
434 int ret = mxl111sf_demod_calc_snr(state, snr); local
447 int ret, locked, cr_lock, sync_lock, fec_lock; local
[all...]
/drivers/mfd/
H A Drc5t583.c87 int ret; local
99 ret = rc5t583_read(dev, deepsleep_data[id].reg_add, &sleepseq_val);
100 if (ret < 0) {
103 return ret;
109 ret = rc5t583_set_bits(dev, RICOH_ONOFFSEL_REG, BIT(1));
110 if (ret < 0) {
113 return ret;
116 ret = rc5t583_write(dev, deepsleep_data[id].reg_add, sleepseq_val);
117 if (ret < 0) {
120 return ret;
135 int ret; local
168 int ret; local
254 int ret; local
[all...]
H A Dmenf21bmc.c32 int val, ret; local
47 ret = i2c_smbus_write_byte(client, BMC_CMD_WDT_EXIT_PROD);
48 if (ret < 0)
49 return ret;
59 int ret; local
61 ret = i2c_check_functionality(client->adapter,
65 if (!ret)
93 ret = menf21bmc_wdt_exit_prod_mode(client);
94 if (ret < 0) {
96 return ret;
[all...]
/drivers/gpu/drm/nouveau/core/subdev/instmem/
H A Dnv04.c62 int ret; local
67 ret = nouveau_instobj_create(parent, engine, oclass, &node);
69 if (ret)
70 return ret;
72 ret = nouveau_mm_head(&priv->heap, 0, 1, args->size, args->size,
74 if (ret)
75 return ret;
130 int ret; local
132 ret = nouveau_instmem_create(parent, engine, oclass, &priv);
134 if (ret)
[all...]
/drivers/net/wireless/ti/wl1251/
H A Devent.c32 int ret = 0; local
43 ret = wl1251_ps_set_mode(wl, STATION_IDLE);
46 return ret;
53 int ret = 0; local
69 ret = wl1251_ps_set_mode(wl, STATION_POWER_SAVE_MODE);
95 int ret; local
104 ret = wl1251_event_scan_complete(wl, mbox);
105 if (ret < 0)
106 return ret;
114 ret
195 int ret; local
216 int ret; local
[all...]
/drivers/media/dvb-frontends/
H A Dcxd2820r_t.c28 int ret, i, bw_i; local
84 ret = cxd2820r_wr_reg_mask(priv, tab[i].reg,
86 if (ret)
96 ret = fe->ops.tuner_ops.get_if_frequency(fe, &if_freq);
97 if (ret)
111 ret = cxd2820r_wr_regs(priv, 0x000b6, buf, 3);
112 if (ret)
115 ret = cxd2820r_wr_regs(priv, 0x0009f, bw_params1[bw_i], 5);
116 if (ret)
119 ret
145 int ret; local
261 int ret; local
296 int ret; local
319 int ret; local
355 int ret; local
401 int ret; local
416 int ret, i; local
[all...]
/drivers/mmc/host/
H A Dtmio_mmc.c31 int ret; local
33 ret = pm_runtime_force_suspend(dev);
36 if (!ret && cell->disable)
39 return ret;
46 int ret = 0; local
50 ret = cell->resume(pdev);
52 if (!ret)
53 ret = pm_runtime_force_resume(dev);
55 return ret;
65 int ret local
[all...]
/drivers/media/i2c/soc_camera/
H A Drj54n1cb0c.c431 int ret; local
436 ret = i2c_smbus_write_byte_data(client, 0xff, reg >> 8);
437 if (ret < 0)
438 return ret;
448 int ret; local
453 ret = i2c_smbus_write_byte_data(client, 0xff, reg >> 8);
454 if (ret < 0)
455 return ret;
465 int ret; local
467 ret
476 int i, ret; local
510 int ret; local
530 int ret = reg_write(client, RJ54N1_INIT_START, 1); local
547 int ret; local
629 int ret; local
810 int ret; local
894 int ret = rj54n1_set_clock(client); local
1001 int ret; local
1277 int ret; local
1316 int ret; local
[all...]
/drivers/video/backlight/
H A Dadp8870_bl.c131 int ret; local
133 ret = i2c_smbus_read_byte_data(client, reg);
134 if (ret < 0) {
136 return ret;
139 *val = ret;
146 int ret = i2c_smbus_write_byte_data(client, reg, val); local
148 if (ret)
151 return ret;
158 int ret; local
162 ret
177 int ret; local
220 int ret = 0; local
247 int ret, i; local
355 int ret = 0; local
431 int ret = 0; local
572 int ret; local
654 int ret = kstrtoul(buf, 10, &data->cached_daylight_max); local
795 int ret; local
855 int ret; local
[all...]
/drivers/media/tuners/
H A Dfc0013.c65 int i, ret = 0; local
110 ret = fc0013_writereg(priv, i, reg[i]);
111 if (ret)
118 if (ret)
119 err("fc0013_writereg failed: %d", ret);
121 return ret;
133 int ret; local
141 ret = fc0013_writereg(priv, 0x10, 0x00);
142 if (ret)
146 ret
178 int ret; local
196 int ret; local
229 int i, ret = 0; local
518 int ret; local
[all...]
H A Dsi2157.c24 int ret; local
31 ret = i2c_master_send(s->client, cmd->args, cmd->wlen);
32 if (ret < 0) {
34 } else if (ret != cmd->wlen) {
35 ret = -EREMOTEIO;
45 ret = i2c_master_recv(s->client, cmd->args, cmd->rlen);
46 if (ret < 0) {
48 } else if (ret != cmd->rlen) {
49 ret = -EREMOTEIO;
63 ret
84 int ret, len, remaining; local
201 int ret; local
226 int ret; local
326 int ret; local
[all...]
/drivers/media/i2c/s5c73m3/
H A Ds5c73m3-core.c136 int ret = i2c_master_send(client, buf, sizeof(buf)); local
141 if (ret == 4)
144 return ret < 0 ? ret : -EREMOTEIO;
149 int ret; local
168 ret = i2c_transfer(client->adapter, msg, 2);
169 if (ret == 2) {
177 v4l2_err(client, "I2C read failed: addr: %04x, (%d)\n", addr, ret);
179 return ret >= 0 ? -EREMOTEIO : ret;
185 int ret; local
217 int ret; local
250 int ret = 0; local
286 int ret; local
314 int ret; local
354 int ret; local
405 int ret; local
424 int ret; local
461 int ret; local
476 int ret = s5c73m3_read(state, 0x30100010, &reg); local
489 int i, ret; local
530 int ret; local
563 int ret; local
633 int ret; local
668 int ret; local
738 int i, ret; local
787 int ret; local
901 unsigned int ret, min_err = UINT_MAX; local
933 int ret; local
960 int ret = 0; local
1071 int ret = 0; local
1110 int ret = 0; local
1211 int ret; local
1358 int i, ret; local
1393 int i, ret; local
1428 int ret = 0; local
1460 int ret; local
1541 int ret, i; local
1565 int ret, i; local
1590 int ret; local
1650 int ret, i; local
[all...]
/drivers/gpu/drm/rcar-du/
H A Drcar_du_vgacon.c57 int ret; local
67 ret = drm_connector_init(rcdu->ddev, connector, &connector_funcs,
69 if (ret < 0)
70 return ret;
73 ret = drm_connector_register(connector);
74 if (ret < 0)
75 return ret;
81 ret = drm_mode_connector_attach_encoder(connector, &renc->encoder);
82 if (ret < 0)
83 return ret;
[all...]
/drivers/pcmcia/
H A Dpxa2xx_cm_x270.c27 int ret = gpio_request(GPIO_PCMCIA_RESET, "PCCard reset"); local
28 if (ret)
29 return ret;
37 return ret;
83 int ret; local
90 ret = platform_device_add_data(cmx270_pcmcia_device, &cmx270_pcmcia_ops,
93 if (ret == 0) {
95 ret = platform_device_add(cmx270_pcmcia_device);
98 if (ret)
101 return ret;
[all...]
H A Dpxa2xx_palmtc.c34 int ret; local
36 ret = gpio_request_array(palmtc_pcmcia_gpios,
42 return ret;
106 int ret = 1; local
109 ret = palmtc_wifi_powerdown();
111 ret = palmtc_wifi_powerup();
113 return ret;
133 int ret; local
142 ret = platform_device_add_data(palmtc_pcmcia_device, &palmtc_pcmcia_ops,
145 if (!ret)
[all...]
/drivers/staging/comedi/drivers/
H A Dni_daq_dio24.c48 int ret; local
51 ret = comedi_pcmcia_enable(dev, NULL);
52 if (ret)
53 return ret;
56 ret = comedi_alloc_subdevices(dev, 1);
57 if (ret)
58 return ret;
62 ret = subdev_8255_init(dev, s, NULL, 0x00);
63 if (ret)
64 return ret;
[all...]
/drivers/tty/hvc/
H A Dhvc_bfin_jtag.c45 int ret; local
56 ret = min(outbound_len, (uint32_t)4);
57 memcpy(&emudat, buf, ret);
59 outbound_len -= ret;
61 return ret;
69 int ret; local
80 ret = min(inbound_len, (uint32_t)4);
81 memcpy(buf, &emudat, ret);
82 inbound_len -= ret;
84 return ret;
[all...]
/drivers/cpufreq/
H A Ds3c2416-cpufreq.c107 int ret; local
110 ret = clk_set_rate(s3c_freq->armdiv, freq * 1000);
111 if (ret < 0) {
113 freq, ret);
114 return ret;
126 int ret; local
135 ret = clk_set_parent(s3c_freq->armclk, s3c_freq->hclk);
136 if (ret < 0) {
137 pr_err("cpufreq: Failed to switch armclk to hclk: %d\n", ret);
138 return ret;
168 int ret; local
224 int idx, ret, to_dvs = 0; local
309 int ret; local
342 int ret; local
[all...]
/drivers/fmc/
H A Dfmc-trivial.c46 int ret; local
54 ret = fmc->op->irq_request(fmc, t_handler, "fmc-trivial", IRQF_SHARED);
55 if (ret < 0)
56 return ret;
61 ret = -ESRCH;
63 ret = fmc->op->reprogram(fmc, &t_drv, "");
64 if (ret == -ESRCH)
65 ret = 0;
66 if (ret < 0)
70 return ret;
93 int ret; local
[all...]
/drivers/gpio/
H A Dgpio-max7301.c35 int ret; local
40 ret = spi_write(spi, (const u8 *)&word, sizeof(word));
41 if (ret)
42 return ret;
47 ret = spi_read(spi, (u8 *)&word, sizeof(word));
48 if (ret)
49 return ret;
56 int ret; local
60 ret = spi_setup(spi);
61 if (ret <
[all...]
/drivers/gpu/drm/nouveau/
H A Dnouveau_prime.c42 int ret; local
44 ret = ttm_bo_kmap(&nvbo->bo, 0, nvbo->bo.num_pages,
46 if (ret)
47 return ERR_PTR(ret);
66 int ret; local
71 ret = nouveau_bo_new(dev, attach->dmabuf->size, 0, flags, 0, 0,
74 if (ret)
75 return ERR_PTR(ret);
81 ret = drm_gem_object_init(dev, &nvbo->gem, nvbo->bo.mem.size);
82 if (ret) {
93 int ret; local
[all...]
/drivers/iio/gyro/
H A Ditg3200_core.c47 int ret; local
49 ret = i2c_smbus_read_byte_data(st->i2c, reg_address);
50 if (ret < 0)
51 return ret;
52 *val = ret;
61 int ret; local
80 ret = i2c_transfer(client->adapter, msg, 2);
84 return (ret == 2) ? 0 : ret;
91 int ret local
138 int ret; local
174 int ret; local
207 int ret; local
223 int ret; local
289 int ret; local
[all...]
/drivers/iio/magnetometer/
H A Dmag3110.c59 int ret, tries = 150; local
62 ret = i2c_smbus_write_byte_data(data->client, MAG3110_CTRL_REG1,
64 if (ret < 0)
65 return ret;
68 ret = i2c_smbus_read_byte_data(data->client, MAG3110_STATUS);
69 if (ret < 0)
70 return ret;
72 if ((ret & MAG3110_STATUS_DRDY) == MAG3110_STATUS_DRDY)
87 int ret; local
90 ret
153 int i, ret; local
249 int ret; local
329 int ret; local
[all...]
/drivers/iommu/
H A Diommu-sysfs.c63 int ret; local
77 ret = kobject_set_name_vargs(&dev->kobj, fmt, vargs);
79 if (ret)
82 ret = device_add(dev);
83 if (ret)
90 return ERR_PTR(ret);
109 int ret; local
114 ret = sysfs_add_link_to_group(&dev->kobj, "devices",
116 if (ret)
117 return ret;
[all...]

Completed in 481 milliseconds

1234567891011>>