Searched refs:rc (Results 101 - 125 of 3209) sorted by relevance

1234567891011>>

/linux-master/drivers/reset/hisilicon/
H A Dreset-hi3660.c25 struct hi3660_reset_controller *rc = to_hi3660_reset_controller(rcdev); local
30 return regmap_write(rc->map, offset, mask);
32 return regmap_write(rc->map, offset + 4, mask);
78 struct hi3660_reset_controller *rc; local
82 rc = devm_kzalloc(dev, sizeof(*rc), GFP_KERNEL);
83 if (!rc)
86 rc->map = syscon_regmap_lookup_by_phandle(np, "hisilicon,rst-syscon");
87 if (rc->map == ERR_PTR(-ENODEV)) {
89 rc
[all...]
/linux-master/drivers/misc/
H A Dqcom-coincell.c33 int i, j, rc; local
60 rc = regmap_write(chgr->regmap,
62 if (rc) {
70 return rc;
73 rc = regmap_write(chgr->regmap,
75 if (rc)
76 return rc;
91 int rc; local
101 rc = of_property_read_u32(node, "reg", &chgr.base_addr);
102 if (rc)
[all...]
/linux-master/drivers/pci/hotplug/
H A Ds390_pci_hpc.c27 int rc; local
31 rc = -EIO;
35 rc = sclp_pci_configure(zdev->fid);
36 zpci_dbg(3, "conf fid:%x, rc:%d\n", zdev->fid, rc);
37 if (rc)
41 rc = zpci_scan_configured_device(zdev, zdev->fh);
44 return rc;
52 int rc; local
56 rc
79 int rc = -EIO; local
[all...]
/linux-master/arch/s390/kvm/
H A Dsigp.c24 int rc; local
29 rc = SIGP_CC_ORDER_CODE_ACCEPTED;
36 rc = SIGP_CC_STATUS_STORED;
39 VCPU_EVENT(vcpu, 4, "sensed status of cpu %x rc %x", dst_vcpu->vcpu_id,
40 rc);
41 return rc;
51 int rc = 0; local
53 rc = kvm_s390_inject_vcpu(dst_vcpu, &irq);
54 if (!rc)
58 return rc
100 int rc; local
120 int rc; local
139 int rc; local
168 int rc; local
195 int rc; local
216 int rc; local
245 int rc = -EOPNOTSUPP; local
273 int rc; local
432 int rc; local
[all...]
/linux-master/drivers/s390/cio/
H A Dcio_inject.c36 int rc = 0; local
47 rc = -EBUSY;
53 if (!rc)
56 return rc;
69 int rc = 1; local
77 rc = 0;
81 return rc;
91 int rc; local
102 rc = sscanf(buffer, "%x %x %x %x %x %x %x", &slct, &oflw, &chn, &rsc, &anc,
106 if (rc !
132 int rc; local
[all...]
/linux-master/arch/arm/kernel/
H A Dhead-inflate-data.c37 int rc; local
52 rc = zlib_inflate(strm, Z_FINISH);
53 if (rc == Z_OK || rc == Z_STREAM_END)
54 rc = strm->avail_out; /* should be 0 */
55 return rc;
/linux-master/fs/ecryptfs/
H A Dread_write.c31 ssize_t rc; local
36 rc = kernel_write(lower_file, data, size, &offset);
38 return rc;
63 int rc; local
68 rc = ecryptfs_write_lower(ecryptfs_inode, virt, offset, size);
69 if (rc > 0)
70 rc = 0;
72 return rc;
102 int rc = 0; local
120 rc
253 int rc; local
[all...]
H A Dmessaging.c41 int rc; local
49 rc = -ENOMEM;
56 rc = 0;
60 rc = -ENOMEM;
62 return rc;
104 int rc; local
110 rc = 0;
114 rc = -EINVAL;
116 return rc;
132 int rc local
159 int rc = 0; local
211 int rc; local
266 int rc; local
306 int rc; local
330 int rc = 0; local
356 int rc = 0; local
432 int rc; local
[all...]
H A Dfile.c35 ssize_t rc; local
39 rc = generic_file_read_iter(iocb, to);
40 if (rc >= 0) {
44 return rc;
61 ssize_t rc; local
64 rc = filemap_splice_read(in, ppos, pipe, len, flags);
65 if (rc >= 0) {
69 return rc;
99 "%s: Error attempting to decode and decrypt filename [%s]; rc = [%d]\n",
128 int rc; local
151 int rc; local
212 int rc = 0; local
345 int rc; local
356 int rc = 0; local
369 long rc = -ENOTTY; local
394 long rc = -ENOIOCTLCMD; local
[all...]
/linux-master/arch/powerpc/sysdev/xics/
H A Dics-opal.c44 int64_t rc; local
55 rc = opal_set_xive(hw_irq, server, DEFAULT_PRIORITY);
56 if (rc != OPAL_SUCCESS)
59 __func__, d->irq, hw_irq, server, rc);
71 int64_t rc; local
77 rc = opal_set_xive(hw_irq, server, 0xff);
78 if (rc != OPAL_SUCCESS)
80 __func__, hw_irq, rc);
102 int64_t rc; local
108 rc
154 int64_t rc; local
171 int64_t rc; local
185 int64_t rc; local
[all...]
/linux-master/tools/testing/selftests/riscv/hwprobe/
H A Dwhich-cpus.c64 int rc; local
78 rc = riscv_hwprobe(pairs, nr_pairs, sizeof(cpu_set_t), (unsigned long *)cpus, RISCV_HWPROBE_WHICH_CPUS);
79 assert(rc == 0);
89 long rc; local
91 rc = sched_getaffinity(0, sizeof(cpu_set_t), &cpus_aff);
92 assert(rc == 0);
106 rc = riscv_hwprobe(pairs, 1, 0, NULL, 0);
107 assert(rc == 0 && pairs[0].key == RISCV_HWPROBE_KEY_BASE_BEHAVIOR &&
111 rc = riscv_hwprobe(pairs, 1, 0, NULL, 0);
112 assert(rc
[all...]
/linux-master/drivers/net/phy/
H A Dsmsc.c61 int rc = phy_read(phydev, MII_LAN83C185_ISF); local
63 return rc < 0 ? rc : 0;
68 int rc; local
71 rc = smsc_phy_ack_interrupt(phydev);
72 if (rc)
73 return rc;
75 rc = phy_write(phydev, MII_LAN83C185_IM,
78 rc = phy_write(phydev, MII_LAN83C185_IM, 0);
79 if (rc)
139 int rc = phy_read(phydev, MII_LAN83C185_SPECIAL_MODES); local
158 int rc; local
194 int rc = phy_set_bits(phydev, PHY_EDPD_CONFIG, local
227 int rc; local
267 int rc; local
298 int rc; local
372 int rc; local
414 int rc; local
[all...]
/linux-master/fs/jffs2/
H A Dacl.c180 int rc, xprefix; local
195 rc = do_jffs2_getxattr(inode, xprefix, "", NULL, 0);
196 if (rc > 0) {
197 value = kmalloc(rc, GFP_KERNEL);
200 rc = do_jffs2_getxattr(inode, xprefix, "", value, rc);
202 if (rc > 0) {
203 acl = jffs2_acl_from_medium(value, rc);
204 } else if (rc == -ENODATA || rc
217 int rc; local
235 int rc, xprefix; local
277 int rc; local
298 int rc; local
[all...]
/linux-master/drivers/hwmon/occ/
H A Dp8_i2c.c38 ssize_t rc; local
57 rc = i2c_transfer(client->adapter, msgs, 2);
58 if (rc < 0)
59 return rc;
69 ssize_t rc; local
79 rc = i2c_master_send(client, (const char *)buf, sizeof(buf));
80 if (rc < 0)
81 return rc;
82 else if (rc != sizeof(buf))
117 int i, rc; local
[all...]
/linux-master/arch/powerpc/platforms/pseries/
H A Devent_sources.c15 int i, virq, rc; local
25 rc = request_irq(virq, handler, 0, name, NULL);
26 if (WARN(rc, "event-sources: Unable to request interrupt %d for %pOF\n",
/linux-master/drivers/spi/
H A Dspi-fsi.c88 int rc; local
92 rc = fsi_slave_read(fsi->slave, FSI_MBOX_ROOT_CTRL_8, &root_ctrl_8_be,
94 if (rc)
95 return rc;
108 int rc; local
112 rc = fsi_device_read(ctx->bridge->fsi, FSI2SPI_STATUS, &sts_be,
114 if (rc)
115 return rc;
128 int rc = 0; local
139 rc
175 int rc = 0; local
243 int rc; local
262 int rc = fsi_spi_read_reg(ctx, SPI_FSI_STATUS, status); local
302 int rc = 0; local
365 int rc; local
427 int rc; local
520 int rc; local
[all...]
/linux-master/drivers/tty/hvc/
H A Dhvc_irq.c31 int rc; local
37 rc = request_irq(irq, hvc_handle_interrupt, hp->flags,
39 if (!rc)
41 return rc;
/linux-master/tools/testing/selftests/pstore/
H A Dpstore_tests27 rc=1
30 exit $rc
/linux-master/drivers/misc/cxl/
H A Dhcalls.c49 #define _CXL_LOOP_HCALL(call, rc, retbuf, fn, ...) \
56 rc = call(fn, retbuf, __VA_ARGS__, token); \
58 if (rc != H_BUSY && !H_IS_LONG_BUSY(rc)) \
61 if (rc == H_BUSY) \
64 delay = get_longbusy_msecs(rc); \
70 rc = H_BUSY; \
79 #define _PRINT_MSG(rc, format, ...) \
81 if ((rc != H_SUCCESS) && (rc !
136 long rc; local
177 long rc; local
209 long rc; local
400 long rc; local
442 long rc; local
482 long rc; local
565 long rc; local
[all...]
/linux-master/tools/testing/selftests/riscv/vector/
H A Dvstate_exec_nolibc.c9 int rc, pid, status, test_inherit = 0; local
36 rc = execve(THIS_PROGRAM, exec_argv, exec_envp);
37 if (rc) {
51 rc = my_syscall1(__NR_prctl, PR_RISCV_V_GET_CONTROL);
52 if (rc != ctrl) {
65 rc = waitpid(-1, &status, 0);
95 rc = (ctrl & PR_RISCV_V_VSTATE_CTRL_NEXT_MASK) >> 2;
96 if (rc != PR_RISCV_V_VSTATE_CTRL_DEFAULT) {
97 if (rc != (ctrl_c & PR_RISCV_V_VSTATE_CTRL_CUR_MASK)) {
/linux-master/drivers/s390/crypto/
H A Dzcrypt_debug.h17 #define RC2ERR(rc) ((rc) ? DBF_ERR : DBF_INFO)
18 #define RC2WARN(rc) ((rc) ? DBF_WARN : DBF_INFO)
/linux-master/security/keys/trusted-keys/
H A Dtrusted_tpm2.c250 int rc; local
265 rc = tpm_try_get_ops(chip);
266 if (rc)
267 return rc;
269 rc = tpm2_start_auth_session(chip);
270 if (rc)
273 rc = tpm_buf_init(&buf, TPM2_ST_SESSIONS, TPM2_CC_CREATE);
274 if (rc) {
279 rc = tpm_buf_init_sized(&sized);
280 if (rc) {
395 int rc; local
497 int rc; local
588 int rc; local
[all...]
/linux-master/drivers/s390/char/
H A Dtape_char.c134 int rc; local
160 rc = tapechar_check_idalbuffer(device, block_size);
161 if (rc)
162 return rc;
170 rc = tape_do_io(device, request);
171 if (rc == 0) {
172 rc = block_size - request->rescnt;
173 DBF_EVENT(6, "TCHAR:rbytes: %x\n", rc);
176 data, rc) != 0)
177 rc
194 int i, rc; local
274 int minor, rc; local
346 int rc; local
435 long rc; local
451 long rc; local
[all...]
/linux-master/drivers/gpu/drm/amd/display/dc/dml/dsc/
H A Drc_calc_fpu.c165 void _do_calc_rc_params(struct rc_params *rc, argument
189 rc->rc_quant_incr_limit0 = ((bpc == BPC_8) ? 11 : (bpc == BPC_10 ? 15 : 19)) - ((minor_version == 1 && cm == CM_444) ? 1 : 0);
190 rc->rc_quant_incr_limit1 = ((bpc == BPC_8) ? 11 : (bpc == BPC_10 ? 15 : 19)) - ((minor_version == 1 && cm == CM_444) ? 1 : 0);
196 rc->initial_fullness_offset = (bpp >= 6) ? (2048) : ((bpp <= 4) ? (6144) : ((((bpp > 4) && (bpp <= 5))) ? (6144 - dsc_roundf((bpp - 4) * (512))) : (5632 - dsc_roundf((bpp - 5) * (3584)))));
197 rc->first_line_bpg_offset = median3(0, (12 + (int) (0.09 * min(34, slice_height - 8))), (int)((3 * bpc * 3) - (3 * bpp_group)));
198 rc->second_line_bpg_offset = median3(0, 12, (int)((3 * bpc * 3) - (3 * bpp_group)));
201 rc->initial_fullness_offset = (bpp >= 8) ? (2048) : ((bpp <= 7) ? (5632) : (5632 - dsc_roundf((bpp - 7) * (3584))));
202 rc->first_line_bpg_offset = median3(0, (12 + (int) (0.09 * min(34, slice_height - 8))), (int)((3 * bpc * 4) - (3 * bpp_group)));
203 rc->second_line_bpg_offset = 0;
207 rc
[all...]
/linux-master/drivers/input/keyboard/
H A Dpmic8xxx-keypad.c131 int rc; local
134 rc = regmap_read(kp->regmap, KEYP_SCAN, &scan_val);
135 if (rc < 0) {
136 dev_err(kp->dev, "Error reading KEYP_SCAN reg, rc=%d\n", rc);
137 return rc;
142 rc = regmap_write(kp->regmap, KEYP_SCAN, scan_val);
143 if (rc < 0) {
144 dev_err(kp->dev, "Error writing KEYP_SCAN reg, rc=%d\n", rc);
157 int rc, row; local
174 int rc, read_rows; local
278 int rc; local
331 int rc; local
349 int rc; local
373 int bits, rc, cycles; local
452 int rc; local
465 int rc; local
507 int rc; local
[all...]

Completed in 464 milliseconds

1234567891011>>