/Linux-v5.10/drivers/media/dvb-frontends/drx39xyj/ |
D | drxj.c | 1421 int rc; in drxdap_fasi_read_block() local 1483 rc = drxbsp_i2c_write_read(dev_addr, bufx, buf, in drxdap_fasi_read_block() 1485 if (rc == 0) in drxdap_fasi_read_block() 1486 rc = drxbsp_i2c_write_read(NULL, 0, NULL, dev_addr, todo, data); in drxdap_fasi_read_block() 1489 rc = drxbsp_i2c_write_read(dev_addr, bufx, buf, dev_addr, todo, in drxdap_fasi_read_block() 1495 } while (datasize && rc == 0); in drxdap_fasi_read_block() 1497 return rc; in drxdap_fasi_read_block() 1524 int rc; in drxdap_fasi_read_reg16() local 1529 rc = drxdap_fasi_read_block(dev_addr, addr, sizeof(*data), buf, flags); in drxdap_fasi_read_reg16() 1531 return rc; in drxdap_fasi_read_reg16() [all …]
|
/Linux-v5.10/drivers/media/rc/keymaps/ |
D | Makefile | 2 obj-$(CONFIG_RC_MAP) += rc-adstech-dvb-t-pci.o \ 3 rc-alink-dtu-m.o \ 4 rc-anysee.o \ 5 rc-apac-viewcomp.o \ 6 rc-astrometa-t2hybrid.o \ 7 rc-asus-pc39.o \ 8 rc-asus-ps3-100.o \ 9 rc-ati-tv-wonder-hd-600.o \ 10 rc-ati-x10.o \ 11 rc-avermedia-a16d.o \ [all …]
|
/Linux-v5.10/drivers/media/dvb-frontends/ |
D | mb86a20s.c | 219 int rc; in mb86a20s_i2c_writereg() local 221 rc = i2c_transfer(state->i2c, &msg, 1); in mb86a20s_i2c_writereg() 222 if (rc != 1) { in mb86a20s_i2c_writereg() 225 __func__, rc, reg, data); in mb86a20s_i2c_writereg() 226 return rc; in mb86a20s_i2c_writereg() 235 int i, rc; in mb86a20s_i2c_writeregdata() local 238 rc = mb86a20s_i2c_writereg(state, i2c_addr, rd[i].reg, in mb86a20s_i2c_writeregdata() 240 if (rc < 0) in mb86a20s_i2c_writeregdata() 241 return rc; in mb86a20s_i2c_writeregdata() 250 int rc; in mb86a20s_i2c_readreg() local [all …]
|
D | s921.c | 27 #define rc(args...) do { \ macro 205 int rc; in s921_i2c_writereg() local 207 rc = i2c_transfer(state->i2c, &msg, 1); in s921_i2c_writereg() 208 if (rc != 1) { in s921_i2c_writereg() 210 __func__, rc, reg, data); in s921_i2c_writereg() 211 return rc; in s921_i2c_writereg() 220 int i, rc; in s921_i2c_writeregdata() local 223 rc = s921_i2c_writereg(state, i2c_addr, rd[i].reg, rd[i].data); in s921_i2c_writeregdata() 224 if (rc < 0) in s921_i2c_writeregdata() 225 return rc; in s921_i2c_writeregdata() [all …]
|
/Linux-v5.10/drivers/media/tuners/ |
D | r820t.c | 355 int rc, size, pos = 0; in r820t_write() local 370 rc = tuner_i2c_xfer_send(&priv->i2c_props, priv->buf, size + 1); in r820t_write() 371 if (rc != size + 1) { in r820t_write() 373 __func__, rc, reg, size, size, &priv->buf[1]); in r820t_write() 374 if (rc < 0) in r820t_write() 375 return rc; in r820t_write() 410 int rc = r820t_read_cache_reg(priv, reg); in r820t_write_reg_mask() local 412 if (rc < 0) in r820t_write_reg_mask() 413 return rc; in r820t_write_reg_mask() 415 tmp = (rc & ~bit_mask) | (tmp & bit_mask); in r820t_write_reg_mask() [all …]
|
/Linux-v5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | ucode_loader.c | 42 int rc; in brcms_ucode_data_init() local 44 rc = brcms_check_firmwares(wl); in brcms_ucode_data_init() 46 rc = rc < 0 ? rc : in brcms_ucode_data_init() 49 rc = rc < 0 ? in brcms_ucode_data_init() 50 rc : brcms_ucode_init_buf(wl, (void **)&ucode->d11lcn0initvals24, in brcms_ucode_data_init() 52 rc = rc < 0 ? in brcms_ucode_data_init() 53 rc : brcms_ucode_init_buf(wl, (void **)&ucode->d11lcn1bsinitvals24, in brcms_ucode_data_init() 55 rc = rc < 0 ? in brcms_ucode_data_init() 56 rc : brcms_ucode_init_buf(wl, (void **)&ucode->d11lcn1initvals24, in brcms_ucode_data_init() 58 rc = rc < 0 ? rc : in brcms_ucode_data_init() [all …]
|
/Linux-v5.10/security/selinux/ss/ |
D | policydb.c | 386 int rc; in roles_init() local 393 rc = -EINVAL; in roles_init() 398 rc = -ENOMEM; in roles_init() 403 rc = symtab_insert(&p->p_roles, key, role); in roles_init() 404 if (rc) in roles_init() 411 return rc; in roles_init() 720 int i, rc; in policydb_index() local 763 rc = cond_init_bool_indexes(p); in policydb_index() 764 if (rc) in policydb_index() 774 rc = hashtab_map(&p->symtab[i].table, index_f[i], p); in policydb_index() [all …]
|
/Linux-v5.10/drivers/iio/pressure/ |
D | dps310.c | 63 #define DPS310_POLL_TIMEOUT_US(rc) ((rc) <= 0 ? 1000000 : 1000000 / (rc)) argument 112 int rc; in dps310_get_coefs() local 118 rc = regmap_bulk_read(data->regmap, DPS310_COEF_BASE, coef, in dps310_get_coefs() 120 if (rc < 0) in dps310_get_coefs() 121 return rc; in dps310_get_coefs() 164 int rc; in dps310_get_pres_precision() local 167 rc = regmap_read(data->regmap, DPS310_PRS_CFG, &val); in dps310_get_pres_precision() 168 if (rc < 0) in dps310_get_pres_precision() 169 return rc; in dps310_get_pres_precision() 176 int rc; in dps310_get_temp_precision() local [all …]
|
/Linux-v5.10/drivers/video/backlight/ |
D | qcom-wled.c | 233 int rc, i; in wled3_set_brightness() local 240 rc = regmap_bulk_write(wled->regmap, wled->ctrl_addr + in wled3_set_brightness() 242 if (rc < 0) in wled3_set_brightness() 243 return rc; in wled3_set_brightness() 251 int rc, i; in wled4_set_brightness() local 263 rc = regmap_bulk_write(wled->regmap, wled->sink_addr + in wled4_set_brightness() 265 if (rc < 0) in wled4_set_brightness() 266 return rc; in wled4_set_brightness() 274 int rc, offset; in wled5_set_brightness() local 289 rc = regmap_bulk_write(wled->regmap, wled->sink_addr + offset, in wled5_set_brightness() [all …]
|
/Linux-v5.10/drivers/media/usb/stk1160/ |
D | stk1160-i2c.c | 56 int rc; in stk1160_i2c_write_reg() local 59 rc = stk1160_write_reg(dev, STK1160_SICTL_SDA, addr); in stk1160_i2c_write_reg() 60 if (rc < 0) in stk1160_i2c_write_reg() 61 return rc; in stk1160_i2c_write_reg() 64 rc = stk1160_write_reg(dev, STK1160_SBUSW_WA, reg); in stk1160_i2c_write_reg() 65 if (rc < 0) in stk1160_i2c_write_reg() 66 return rc; in stk1160_i2c_write_reg() 69 rc = stk1160_write_reg(dev, STK1160_SBUSW_WD, value); in stk1160_i2c_write_reg() 70 if (rc < 0) in stk1160_i2c_write_reg() 71 return rc; in stk1160_i2c_write_reg() [all …]
|
/Linux-v5.10/lib/ |
D | decompress_unlzma.c | 67 struct rc { struct 91 static void INIT rc_read(struct rc *rc) in rc_read() argument 93 rc->buffer_size = rc->fill((char *)rc->buffer, LZMA_IOBUF_SIZE); in rc_read() 94 if (rc->buffer_size <= 0) in rc_read() 95 rc->error("unexpected EOF"); in rc_read() 96 rc->ptr = rc->buffer; in rc_read() 97 rc->buffer_end = rc->buffer + rc->buffer_size; in rc_read() 101 static inline void INIT rc_init(struct rc *rc, in rc_init() argument 106 rc->fill = fill; in rc_init() 108 rc->fill = nofill; in rc_init() [all …]
|
/Linux-v5.10/tools/testing/selftests/rtc/ |
D | rtctest.c | 40 int rc; in TEST_F() local 44 rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm); in TEST_F() 45 ASSERT_NE(-1, rc); in TEST_F() 53 int i, rc, irq = 0; variable 57 rc = ioctl(self->fd, RTC_UIE_ON, 0); 58 if (rc == -1) { 66 rc = read(self->fd, &data, sizeof(data)); 67 ASSERT_NE(-1, rc); 73 rc = ioctl(self->fd, RTC_UIE_OFF, 0); 74 ASSERT_NE(-1, rc); [all …]
|
/Linux-v5.10/net/nfc/ |
D | digital_technology.c | 136 u8 rc; member 220 int rc; in digital_in_recv_ats() local 223 rc = PTR_ERR(resp); in digital_in_recv_ats() 229 rc = -EIO; in digital_in_recv_ats() 241 rc = digital_target_found(ddev, target, NFC_PROTO_ISO14443); in digital_in_recv_ats() 247 if (rc) in digital_in_recv_ats() 254 int rc; in digital_in_send_rats() local 264 rc = digital_in_send_cmd(ddev, skb, 30, digital_in_recv_ats, in digital_in_send_rats() 266 if (rc) in digital_in_send_rats() 269 return rc; in digital_in_send_rats() [all …]
|
/Linux-v5.10/drivers/fsi/ |
D | fsi-scom.c | 79 int rc; in __put_scom() local 82 rc = fsi_device_write(scom_dev->fsi_dev, SCOM_DATA0_REG, &data, in __put_scom() 84 if (rc) in __put_scom() 85 return rc; in __put_scom() 88 rc = fsi_device_write(scom_dev->fsi_dev, SCOM_DATA1_REG, &data, in __put_scom() 90 if (rc) in __put_scom() 91 return rc; in __put_scom() 94 rc = fsi_device_write(scom_dev->fsi_dev, SCOM_CMD_REG, &data, in __put_scom() 96 if (rc) in __put_scom() 97 return rc; in __put_scom() [all …]
|
/Linux-v5.10/drivers/acpi/apei/ |
D | erst.c | 147 int rc; in erst_exec_add_value() local 150 rc = __apei_exec_read_register(entry, &val); in erst_exec_add_value() 151 if (rc) in erst_exec_add_value() 152 return rc; in erst_exec_add_value() 154 rc = __apei_exec_write_register(entry, val); in erst_exec_add_value() 155 return rc; in erst_exec_add_value() 161 int rc; in erst_exec_subtract_value() local 164 rc = __apei_exec_read_register(entry, &val); in erst_exec_subtract_value() 165 if (rc) in erst_exec_subtract_value() 166 return rc; in erst_exec_subtract_value() [all …]
|
/Linux-v5.10/fs/ecryptfs/ |
D | keystore.c | 31 int rc = 0; in process_request_key_err() local 36 rc = -ENOENT; in process_request_key_err() 40 rc = -ETIME; in process_request_key_err() 44 rc = -EINVAL; in process_request_key_err() 49 rc = -EINVAL; in process_request_key_err() 51 return rc; in process_request_key_err() 56 int rc = err_code; in process_find_global_auth_tok_for_sig_err() local 66 rc = process_request_key_err(err_code); in process_find_global_auth_tok_for_sig_err() 69 return rc; in process_find_global_auth_tok_for_sig_err() 84 int rc = 0; in ecryptfs_parse_packet_length() local [all …]
|
/Linux-v5.10/drivers/net/phy/ |
D | microchip_t1.c | 55 int rc = 0; in access_ereg() local 62 rc = phy_write(phydev, offset, val); in access_ereg() 64 rc = phy_read(phydev, offset); in access_ereg() 65 return rc; in access_ereg() 70 rc = phy_write(phydev, LAN87XX_EXT_REG_WR_DATA, val); in access_ereg() 71 if (rc < 0) in access_ereg() 72 return rc; in access_ereg() 79 rc = phy_write(phydev, LAN87XX_EXT_REG_CTL, ereg); in access_ereg() 80 if (rc < 0) in access_ereg() 81 return rc; in access_ereg() [all …]
|
D | bcm-cygnus.c | 22 int rc; in bcm_cygnus_afe_config() local 25 rc = phy_write(phydev, MII_BCM54XX_AUX_CTL, 0x0c30); in bcm_cygnus_afe_config() 26 if (rc < 0) in bcm_cygnus_afe_config() 27 return rc; in bcm_cygnus_afe_config() 30 rc = bcm_phy_write_misc(phydev, 0x39, 0x01, 0xA7C8); in bcm_cygnus_afe_config() 31 if (rc < 0) in bcm_cygnus_afe_config() 32 return rc; in bcm_cygnus_afe_config() 35 rc = bcm_phy_write_misc(phydev, 0x3A, 0x00, 0x0803); in bcm_cygnus_afe_config() 36 if (rc < 0) in bcm_cygnus_afe_config() 37 return rc; in bcm_cygnus_afe_config() [all …]
|
/Linux-v5.10/tools/testing/selftests/powerpc/syscalls/ |
D | rtas_filter.c | 57 int rc; in read_entire_file() local 70 rc = read(fd, *buf + off, BLOCK_SIZE); in read_entire_file() 71 if (rc < 0) in read_entire_file() 74 off += rc; in read_entire_file() 75 } while (rc == BLOCK_SIZE); in read_entire_file() 107 int rc, fd; in get_property() local 109 rc = open_prop_file(prop_path, prop_name, &fd); in get_property() 110 if (rc) in get_property() 111 return rc; in get_property() 113 rc = read_entire_file(fd, prop_val, prop_len); in get_property() [all …]
|
/Linux-v5.10/arch/powerpc/kernel/ |
D | secvar-sysfs.c | 24 ssize_t rc = 0; in format_show() local 32 rc = of_property_read_string(node, "format", &format); in format_show() 33 if (rc) in format_show() 34 return rc; in format_show() 36 rc = sprintf(buf, "%s\n", format); in format_show() 40 return rc; in format_show() 48 int rc; in size_show() local 50 rc = secvar_ops->get(kobj->name, strlen(kobj->name) + 1, NULL, &dsize); in size_show() 51 if (rc) { in size_show() 53 rc); in size_show() [all …]
|
/Linux-v5.10/drivers/spi/ |
D | spi-fsi.c | 90 int rc; in fsi_spi_check_mux() local 94 rc = fsi_slave_read(fsi->slave, FSI_MBOX_ROOT_CTRL_8, &root_ctrl_8_be, in fsi_spi_check_mux() 96 if (rc) in fsi_spi_check_mux() 97 return rc; in fsi_spi_check_mux() 110 int rc; in fsi_spi_check_status() local 114 rc = fsi_device_read(ctx->fsi, FSI2SPI_STATUS, &sts_be, in fsi_spi_check_status() 116 if (rc) in fsi_spi_check_status() 117 return rc; in fsi_spi_check_status() 130 int rc; in fsi_spi_read_reg() local 141 rc = fsi_device_write(ctx->fsi, FSI2SPI_CMD, &cmd_be, sizeof(cmd_be)); in fsi_spi_read_reg() [all …]
|
/Linux-v5.10/drivers/i2c/busses/ |
D | i2c-fsi.c | 166 int rc; in fsi_i2c_read_reg() local 169 rc = fsi_device_read(fsi, reg, &data_be, sizeof(data_be)); in fsi_i2c_read_reg() 170 if (rc) in fsi_i2c_read_reg() 171 return rc; in fsi_i2c_read_reg() 188 int rc; in fsi_i2c_dev_init() local 193 rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_INT_MASK, &interrupt); in fsi_i2c_dev_init() 194 if (rc) in fsi_i2c_dev_init() 195 return rc; in fsi_i2c_dev_init() 198 rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_MODE, &mode); in fsi_i2c_dev_init() 199 if (rc) in fsi_i2c_dev_init() [all …]
|
/Linux-v5.10/fs/cifs/ |
D | smbencrypt.c | 81 int rc; in E_P16() local 85 rc = smbhash(p16, sp8, p14); in E_P16() 86 if (rc) in E_P16() 87 return rc; in E_P16() 88 rc = smbhash(p16 + 8, sp8, p14 + 7); in E_P16() 89 return rc; in E_P16() 95 int rc; in E_P24() local 97 rc = smbhash(p24, c8, p21); in E_P24() 98 if (rc) in E_P24() 99 return rc; in E_P24() [all …]
|
/Linux-v5.10/drivers/net/wireless/ath/wil6210/ |
D | pm.c | 75 int rc = 0, i; in wil_can_suspend() local 85 rc = -EBUSY; in wil_can_suspend() 89 rc = -EBUSY; in wil_can_suspend() 104 rc = -EBUSY; in wil_can_suspend() 109 rc = -EBUSY; in wil_can_suspend() 121 rc = -EBUSY; in wil_can_suspend() 130 is_runtime ? "runtime" : "system", rc ? "No" : "Yes", rc); in wil_can_suspend() 132 if (rc) in wil_can_suspend() 135 return rc; in wil_can_suspend() 140 int rc = 0; in wil_resume_keep_radio_on() local [all …]
|
/Linux-v5.10/security/selinux/ |
D | netlabel.c | 46 int rc; in selinux_netlbl_sidlookup_cached() local 48 rc = security_netlbl_secattr_to_sid(&selinux_state, secattr, sid); in selinux_netlbl_sidlookup_cached() 49 if (rc == 0 && in selinux_netlbl_sidlookup_cached() 54 return rc; in selinux_netlbl_sidlookup_cached() 69 int rc; in selinux_netlbl_sock_genattr() local 79 rc = security_netlbl_sid_to_secattr(&selinux_state, sksec->sid, in selinux_netlbl_sock_genattr() 81 if (rc != 0) { in selinux_netlbl_sock_genattr() 193 int rc; in selinux_netlbl_skbuff_getsid() local 202 rc = netlbl_skbuff_getattr(skb, family, &secattr); in selinux_netlbl_skbuff_getsid() 203 if (rc == 0 && secattr.flags != NETLBL_SECATTR_NONE) in selinux_netlbl_skbuff_getsid() [all …]
|