Searched refs:ret (Results 201 - 225 of 5719) sorted by relevance

1234567891011>>

/drivers/gpu/drm/nouveau/core/subdev/bar/
H A Dnvc0.c50 int ret; local
52 ret = nouveau_vm_get(priv->bar[0].vm, mem->size << 12, 12, flags, vma);
53 if (ret)
54 return ret;
65 int ret; local
67 ret = nouveau_vm_get(priv->bar[1].vm, mem->size << 12,
69 if (ret)
70 return ret;
90 int ret; local
92 ret
144 int ret; local
195 int ret; local
[all...]
/drivers/hwmon/
H A Dapplesmc.c296 int ret; local
298 ret = read_smc(APPLESMC_READ_CMD, KEY_COUNT_KEY, (u8 *)&be, 4);
299 if (ret)
300 return ret;
316 int ret; local
321 ret = read_smc(APPLESMC_READ_CMD, entry->key, buf, len);
324 return ret;
330 int ret; local
335 ret = write_smc(APPLESMC_WRITE_CMD, entry->key, buf, len);
337 return ret;
345 int ret = 0; local
422 int ret; local
476 int ret; local
543 int ret; local
624 int ms, ret; local
644 int ret; local
722 int ret; local
747 int ret; local
794 int ret; local
810 int ret; local
830 int ret; local
853 int ret; local
870 int ret; local
903 int ret; local
941 int ret; local
953 int ret; local
971 int ret; local
1110 int ret, i; local
1146 int ret; local
1276 int ret; local
[all...]
/drivers/mtd/
H A Dafs.c76 int ret; local
78 ret = mtd_read(mtd, ptr, sizeof(fs), &sz, (u_char *)&fs);
79 if (ret >= 0 && sz != sizeof(fs))
80 ret = -EINVAL;
82 if (ret < 0) {
84 ptr, ret);
85 return ret;
88 ret = 1;
94 ret = 0;
100 ret
132 int ret, i; local
170 int ret = 0; local
[all...]
/drivers/video/backlight/
H A Dltv350qv.c73 int ret; local
95 ret = ltv350qv_write_reg(lcd, LTV_IFCTL,
97 ret |= ltv350qv_write_reg(lcd, LTV_DATACTL,
100 ret |= ltv350qv_write_reg(lcd, LTV_ENTRY_MODE,
106 ret |= ltv350qv_write_reg(lcd, LTV_GATECTL1, LTV_CLW(3));
107 ret |= ltv350qv_write_reg(lcd, LTV_GATECTL2,
109 ret |= ltv350qv_write_reg(lcd, LTV_VBP, 0x000a);
110 ret |= ltv350qv_write_reg(lcd, LTV_HBP, 0x0021);
111 ret |= ltv350qv_write_reg(lcd, LTV_SOTCTL, LTV_SDT(3) | LTV_EQ(0));
112 ret |
164 int ret; local
197 int ret = 0; local
233 int ret; local
[all...]
/drivers/media/usb/dvb-usb/
H A Daf9005.c65 int ret; local
105 ret = dvb_usb_generic_rw(d, obuf, 16, ibuf, 17, 0);
106 if (ret)
107 return ret;
149 int ret; local
151 ret = af9005_generic_read_write(d, reg,
154 if (ret)
158 return ret;
164 int ret; local
166 ret
178 int ret; local
194 int ret; local
212 int ret; local
229 int ret; local
264 int ret, i, done = 0, fail = 0; local
317 int ret, i; local
367 int ret, i; local
393 int ret, i; local
419 int ret; local
466 int ret, i, packet_len; local
522 int ret, i; local
569 int act_len, i, ret; local
721 int i, packets, ret, act_len; local
774 int temp, ret; local
825 int ret, len; local
883 int ret; local
910 int ret; local
955 int ret; local
[all...]
H A Ddvb-usb-firmware.c40 int ret,pos=0; local
44 if ((ret = usb_cypress_writemem(udev,cypress[type].cpu_cs_register,&reset,1)) != 1)
47 while ((ret = dvb_usb_get_hexline(fw,&hx,&pos)) > 0) {
49 ret = usb_cypress_writemem(udev,hx.addr,hx.data,hx.len);
51 if (ret != hx.len) {
54 ret,hx.len);
55 ret = -EINVAL;
59 if (ret < 0) {
60 err("firmware download failed at %d with %d",pos,ret);
61 return ret;
80 int ret; local
[all...]
/drivers/media/platform/s5p-tv/
H A Dsii9234_drv.c58 int ret; local
60 ret = i2c_smbus_read_byte_data(client, addr);
61 if (ret < 0)
62 return ret;
63 ret = (ret & ~mask) | (value & mask);
64 return i2c_smbus_write_byte_data(client, addr, ret);
69 int ret; local
70 ret = i2c_smbus_write_byte_data(client, 0xbc, addr >> 8);
71 if (ret <
82 int ret; local
96 int ret; local
109 int ret, tries; local
219 int i, ret; local
249 int ret; local
285 int ret; local
323 int ret; local
[all...]
/drivers/media/dvb-frontends/
H A Dsp2.c28 int ret; local
45 ret = i2c_transfer(adap, msg, 2);
47 if (ret != 2) {
49 reg, ret);
50 if (ret < 0)
51 return ret;
64 int ret; local
84 ret = i2c_transfer(adap, &msg, 1);
86 if (ret != 1) {
88 reg, ret);
103 int mem, ret; local
184 int ret; local
244 int ret; local
271 int ret = 0; local
377 int ret; local
[all...]
/drivers/net/wireless/ath/ath10k/
H A Dtestmode.c45 int ret; local
75 ret = nla_put_u32(nl_skb, ATH10K_TM_ATTR_CMD, ATH10K_TM_CMD_WMI);
76 if (ret) {
79 ret);
84 ret = nla_put_u32(nl_skb, ATH10K_TM_ATTR_WMI_CMDID, cmd_id);
85 if (ret) {
88 ret);
93 ret = nla_put(nl_skb, ATH10K_TM_ATTR_DATA, skb->len, skb->data);
94 if (ret) {
97 ret);
113 int ret; local
145 int ret; local
262 int ret; local
287 int ret, buf_len; local
345 int ret; local
[all...]
H A Dcore.c65 int ret; local
68 ret = ath10k_bmi_write32(ar, hi_app_host_interest,
70 if (ret) {
72 return ret;
76 ret = ath10k_bmi_read32(ar, hi_option_flag, &param_host);
77 if (ret) {
79 return ret;
95 ret = ath10k_bmi_write32(ar, hi_option_flag, param_host);
96 if (ret) {
98 return ret;
125 int ret; local
146 int ret; local
191 int ret; local
226 int ret; local
266 int ret; local
326 int ret = 0; local
388 int ie_id, i, index, bit, ret; local
563 int ret; local
595 int ret; local
620 int ret; local
872 int ret; local
916 int ret = 0; local
1090 int ret; local
[all...]
/drivers/rtc/
H A Drtc-da9063.c110 int ret; local
112 ret = regmap_bulk_read(rtc->hw->regmap, DA9063_REG_COUNT_S,
114 if (ret < 0) {
115 dev_err(dev, "Failed to read RTC time data: %d\n", ret);
116 return ret;
142 int ret; local
145 ret = regmap_bulk_write(rtc->hw->regmap, DA9063_REG_COUNT_S,
147 if (ret < 0)
148 dev_err(dev, "Failed to set RTC time data: %d\n", ret);
150 return ret;
157 int ret; local
186 int ret; local
251 int ret; local
[all...]
/drivers/block/zram/
H A Dzcomp_lzo.c29 int ret = lzo1x_1_compress(src, PAGE_SIZE, dst, dst_len, private); local
30 return ret == LZO_E_OK ? 0 : ret;
37 int ret = lzo1x_decompress_safe(src, src_len, dst, &dst_len); local
38 return ret == LZO_E_OK ? 0 : ret;
/drivers/bus/
H A Dimx-weim.c116 int i, ret; local
119 ret = of_property_read_u32(np, "reg", &cs_idx);
120 if (ret)
121 return ret;
126 ret = of_property_read_u32_array(np, "fsl,weim-cs-timing",
128 if (ret)
129 return ret;
145 int ret; local
148 ret = imx_weim_gpr_setup(pdev);
149 if (ret)
179 int ret; local
[all...]
/drivers/gpu/drm/gma500/
H A Dpsb_intel_modes.c33 int ret; local
49 ret = i2c_transfer(adapter, msgs, 2);
50 if (ret == 2)
66 int ret = 0; local
71 ret = drm_add_edid_modes(connector, edid);
74 return ret;
/drivers/gpu/drm/nouveau/core/subdev/fb/
H A Dbase.c64 int ret; local
66 ret = nv_ofuncs(pfb->ram)->fini(nv_object(pfb->ram), suspend);
67 if (ret && suspend)
68 return ret;
77 int ret, i; local
79 ret = nouveau_subdev_init(&pfb->base);
80 if (ret)
81 return ret;
83 ret = nv_ofuncs(pfb->ram)->init(nv_object(pfb->ram));
84 if (ret)
128 int ret; local
[all...]
/drivers/gpu/drm/radeon/
H A Dkv_smc.c56 int ret; local
58 ret = kv_notify_message_to_smu(rdev, PPSMC_MSG_SCLKDPM_GetEnabledMask);
60 if (ret == 0)
63 return ret;
92 int ret; local
94 ret = kv_set_smc_sram_address(rdev, smc_address, limit);
95 if (ret)
96 return ret;
122 int ret; local
135 ret
[all...]
/drivers/iio/humidity/
H A Dsi7005.c45 int ret; local
49 ret = i2c_smbus_write_byte_data(data->client, SI7005_CONFIG,
52 if (ret < 0)
57 ret = i2c_smbus_read_byte_data(data->client, SI7005_STATUS);
58 if (ret < 0)
60 if (!(ret & SI7005_STATUS_NRDY))
64 ret = -EIO;
68 ret = i2c_smbus_read_word_swapped(data->client, SI7005_DATA);
73 return ret;
81 int ret; local
135 int ret; local
[all...]
/drivers/mfd/
H A Dda9052-i2c.c96 int reg_val, ret; local
98 ret = regmap_read(da9052->regmap, DA9052_CONTROL_B_REG, &reg_val);
99 if (ret < 0)
100 return ret;
104 ret = regmap_write(da9052->regmap, DA9052_CONTROL_B_REG,
106 if (ret < 0)
107 return ret;
137 int ret; local
151 ret = PTR_ERR(da9052->regmap);
153 ret);
207 int ret; local
[all...]
H A Dmax8925-i2c.c24 int ret; local
27 ret = i2c_smbus_read_i2c_block_data(i2c, reg, bytes, dest);
29 ret = i2c_smbus_read_byte_data(i2c, reg);
30 if (ret < 0)
31 return ret;
32 *(unsigned char *)dest = (unsigned char)ret;
34 return ret;
41 int ret; local
46 ret = i2c_master_send(i2c, buf, bytes + 1);
47 if (ret <
56 int ret; local
73 int ret; local
87 int ret; local
101 int ret; local
116 int ret; local
141 int ret; local
259 int ret; local
[all...]
/drivers/platform/x86/
H A Dtoshiba_haps.c81 int level, ret; local
90 ret = toshiba_haps_protection_level(haps->acpi_dev->handle, level);
91 if (ret != 0)
92 return ret;
104 int reset, ret; local
110 ret = toshiba_haps_reset_protection(haps->acpi_dev->handle);
111 if (ret != 0)
112 return ret;
176 int ret; local
196 ret
213 int ret; local
226 int ret; local
[all...]
/drivers/power/
H A Dwm831x_backup.c32 int ret; local
34 ret = wm831x_auxadc_read_uv(wm831x, src);
35 if (ret >= 0)
36 val->intval = ret;
38 return ret;
49 int ret, reg; local
94 ret = wm831x_reg_unlock(wm831x);
95 if (ret != 0) {
96 dev_err(wm831x->dev, "Failed to unlock registers: %d\n", ret);
100 ret
120 int ret = 0; local
170 int ret; local
[all...]
/drivers/staging/gdm72xx/
H A Dsdio_boot.c46 int ret; local
49 val = sdio_readb(func, 0x13, &ret);
60 int ret = 0, len, pno; local
66 ret = request_firmware(&firm, img_name, &func->dev);
67 if (ret < 0) {
70 img_name, ret);
71 return ret;
81 ret = -1;
100 ret = sdio_memcpy_toio(func, 0, buf, len + TYPE_A_HEADER_SIZE);
101 if (ret <
137 int ret; local
[all...]
/drivers/video/fbdev/
H A Dssd1307fb.c95 int ret; local
99 ret = i2c_master_send(client, (u8 *)array, len);
100 if (ret != len) {
102 return ret;
111 int ret; local
119 ret = ssd1307fb_write_array(client, array, 1);
122 return ret;
128 int ret; local
136 ret = ssd1307fb_write_array(client, array, 1);
139 return ret;
276 int ret; local
319 int ret; local
432 int ret; local
[all...]
/drivers/watchdog/
H A Dda9052_wdt.c63 int ret, i; local
69 ret = da9052_reg_update(da9052, DA9052_CONTROL_D_REG,
71 if (ret < 0) {
73 ret);
74 return ret;
89 ret = -EINVAL;
91 ret = da9052_reg_update(da9052, DA9052_CONTROL_D_REG,
94 if (ret < 0) {
96 "Failed to update timescale bit, %d\n", ret);
97 return ret;
136 int ret; local
183 int ret; local
[all...]
/drivers/gpu/drm/nouveau/
H A Dnouveau_chan.c47 int ret; local
49 ret = nouveau_fence_new(chan, false, &fence);
50 if (!ret) {
51 ret = nouveau_fence_wait(fence, false, false);
55 if (ret)
58 return ret;
95 int ret; local
109 ret = nouveau_bo_new(drm->dev, size, 0, target, 0, 0, NULL, NULL,
111 if (ret == 0) {
112 ret
199 int ret; local
252 int ret; local
287 int ret, i; local
404 int ret; local
[all...]

Completed in 489 milliseconds

1234567891011>>