/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 …]
|
/drivers/media/rc/keymaps/ |
D | Makefile | 6 rc-adstech-dvb-t-pci.o \ 7 rc-alink-dtu-m.o \ 8 rc-anysee.o \ 9 rc-apac-viewcomp.o \ 10 rc-astrometa-t2hybrid.o \ 11 rc-asus-pc39.o \ 12 rc-asus-ps3-100.o \ 13 rc-ati-tv-wonder-hd-600.o \ 14 rc-ati-x10.o \ 15 rc-avermedia-a16d.o \ [all …]
|
/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 …]
|
/drivers/media/tuners/ |
D | r820t.c | 375 int rc, size, pos = 0; in r820t_write() local 390 rc = tuner_i2c_xfer_send(&priv->i2c_props, priv->buf, size + 1); in r820t_write() 391 if (rc != size + 1) { in r820t_write() 393 __func__, rc, reg, size, size, &priv->buf[1]); in r820t_write() 394 if (rc < 0) in r820t_write() 395 return rc; in r820t_write() 430 int rc = r820t_read_cache_reg(priv, reg); in r820t_write_reg_mask() local 432 if (rc < 0) in r820t_write_reg_mask() 433 return rc; in r820t_write_reg_mask() 435 tmp = (rc & ~bit_mask) | (tmp & bit_mask); in r820t_write_reg_mask() [all …]
|
/drivers/video/backlight/ |
D | qcom-wled.c | 233 int rc, i; in wled3_set_brightness() local 239 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 262 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 288 rc = regmap_bulk_write(wled->regmap, wled->sink_addr + offset, in wled5_set_brightness() [all …]
|
/drivers/iio/pressure/ |
D | dps310.c | 63 #define DPS310_POLL_TIMEOUT_US(rc) ((rc) <= 0 ? 1000000 : 1000000 / (rc)) argument 113 int rc; in dps310_get_coefs() local 119 rc = regmap_bulk_read(data->regmap, DPS310_COEF_BASE, coef, in dps310_get_coefs() 121 if (rc < 0) in dps310_get_coefs() 122 return rc; in dps310_get_coefs() 170 int rc; in dps310_temp_workaround() local 173 rc = regmap_read(data->regmap, 0x32, ®); in dps310_temp_workaround() 174 if (rc) in dps310_temp_workaround() 175 return rc; in dps310_temp_workaround() 184 rc = regmap_write(data->regmap, 0x0e, 0xA5); in dps310_temp_workaround() [all …]
|
/drivers/net/phy/ |
D | microchip_t1.c | 111 int rc = 0; in lan937x_dsp_workaround() local 116 rc = phy_read(phydev, LAN87XX_EXT_REG_CTL); in lan937x_dsp_workaround() 117 if (rc < 0) in lan937x_dsp_workaround() 121 prev_bank = FIELD_GET(LAN87XX_REG_BANK_SEL_MASK, rc); in lan937x_dsp_workaround() 130 rc = phy_write(phydev, LAN87XX_EXT_REG_CTL, val); in lan937x_dsp_workaround() 136 return rc; in lan937x_dsp_workaround() 143 int rc = 0; in access_ereg() local 150 rc = phy_write(phydev, offset, val); in access_ereg() 152 rc = phy_read(phydev, offset); in access_ereg() 153 return rc; in access_ereg() [all …]
|
/drivers/hwmon/pmbus/ |
D | q54sj108a2.c | 76 int rc; in q54sj108a2_debugfs_read() local 86 rc = i2c_smbus_read_byte_data(psu->client, PMBUS_OPERATION); in q54sj108a2_debugfs_read() 87 if (rc < 0) in q54sj108a2_debugfs_read() 88 return rc; in q54sj108a2_debugfs_read() 90 rc = snprintf(data, 3, "%02x", rc); in q54sj108a2_debugfs_read() 93 rc = i2c_smbus_read_byte_data(psu->client, PMBUS_WRITE_PROTECT); in q54sj108a2_debugfs_read() 94 if (rc < 0) in q54sj108a2_debugfs_read() 95 return rc; in q54sj108a2_debugfs_read() 97 rc = snprintf(data, 3, "%02x", rc); in q54sj108a2_debugfs_read() 100 rc = i2c_smbus_read_byte_data(psu->client, PMBUS_VOUT_OV_FAULT_RESPONSE); in q54sj108a2_debugfs_read() [all …]
|
D | ibm-cffps.c | 81 int rc; in ibm_cffps_debugfs_read_input_history() local 99 rc = pmbus_lock_interruptible(psu->client); in ibm_cffps_debugfs_read_input_history() 100 if (rc) in ibm_cffps_debugfs_read_input_history() 101 return rc; in ibm_cffps_debugfs_read_input_history() 103 rc = pmbus_set_page(psu->client, 0, 0xff); in ibm_cffps_debugfs_read_input_history() 104 if (rc) { in ibm_cffps_debugfs_read_input_history() 106 return rc; in ibm_cffps_debugfs_read_input_history() 113 rc = i2c_transfer(psu->client->adapter, msg, 2); in ibm_cffps_debugfs_read_input_history() 115 if (rc < 0) in ibm_cffps_debugfs_read_input_history() 116 return rc; in ibm_cffps_debugfs_read_input_history() [all …]
|
/drivers/rtc/ |
D | rtc-pm8xxx.c | 75 int rc; in pm8xxx_rtc_read_nvmem_offset() local 79 rc = PTR_ERR(buf); in pm8xxx_rtc_read_nvmem_offset() 80 dev_dbg(rtc_dd->dev, "failed to read nvmem offset: %d\n", rc); in pm8xxx_rtc_read_nvmem_offset() 81 return rc; in pm8xxx_rtc_read_nvmem_offset() 100 int rc; in pm8xxx_rtc_write_nvmem_offset() local 104 rc = nvmem_cell_write(rtc_dd->nvmem_cell, buf, sizeof(buf)); in pm8xxx_rtc_write_nvmem_offset() 105 if (rc < 0) { in pm8xxx_rtc_write_nvmem_offset() 106 dev_dbg(rtc_dd->dev, "failed to write nvmem offset: %d\n", rc); in pm8xxx_rtc_write_nvmem_offset() 107 return rc; in pm8xxx_rtc_write_nvmem_offset() 126 int rc; in pm8xxx_rtc_read_raw() local [all …]
|
/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 …]
|
/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 …]
|
/drivers/iio/proximity/ |
D | vcnl3020.c | 114 int rc; in vcnl3020_get_and_apply_property() local 117 rc = device_property_read_u32(data->dev, prop.name, &val); in vcnl3020_get_and_apply_property() 118 if (rc) in vcnl3020_get_and_apply_property() 124 rc = regmap_write(data->regmap, prop.reg, val); in vcnl3020_get_and_apply_property() 125 if (rc) { in vcnl3020_get_and_apply_property() 127 rc, prop.name); in vcnl3020_get_and_apply_property() 130 return rc; in vcnl3020_get_and_apply_property() 135 int rc; in vcnl3020_init() local 138 rc = regmap_read(data->regmap, VCNL_PROD_REV, ®); in vcnl3020_init() 139 if (rc) { in vcnl3020_init() [all …]
|
/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 …]
|
/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 …]
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_devlink.c | 40 int rc; in bnxt_dl_flash_update() local 49 rc = bnxt_flash_package_from_fw_obj(bp->dev, params->fw, 0, extack); in bnxt_dl_flash_update() 50 if (!rc) in bnxt_dl_flash_update() 54 return rc; in bnxt_dl_flash_update() 60 int rc; in bnxt_hwrm_remote_dev_reset_set() local 65 rc = hwrm_req_init(bp, req, HWRM_FUNC_CFG); in bnxt_hwrm_remote_dev_reset_set() 66 if (rc) in bnxt_hwrm_remote_dev_reset_set() 67 return rc; in bnxt_hwrm_remote_dev_reset_set() 107 int rc; in bnxt_fw_diagnose() local 118 rc = devlink_fmsg_string_pair_put(fmsg, "Status", "initializing"); in bnxt_fw_diagnose() [all …]
|
/drivers/spi/ |
D | spi-fsi.c | 88 int rc; in fsi_spi_check_mux() local 92 rc = fsi_slave_read(fsi->slave, FSI_MBOX_ROOT_CTRL_8, &root_ctrl_8_be, in fsi_spi_check_mux() 94 if (rc) in fsi_spi_check_mux() 95 return rc; in fsi_spi_check_mux() 108 int rc; in fsi_spi_check_status() local 112 rc = fsi_device_read(ctx->bridge->fsi, FSI2SPI_STATUS, &sts_be, in fsi_spi_check_status() 114 if (rc) in fsi_spi_check_status() 115 return rc; in fsi_spi_check_status() 128 int rc = 0; in fsi_spi_read_reg() local 139 rc = mutex_lock_interruptible(&bridge->lock); in fsi_spi_read_reg() [all …]
|
/drivers/fsi/ |
D | fsi-scom.c | 80 int rc; in __put_scom() local 83 rc = fsi_device_write(scom_dev->fsi_dev, SCOM_DATA0_REG, &data, in __put_scom() 85 if (rc) in __put_scom() 86 return rc; in __put_scom() 89 rc = fsi_device_write(scom_dev->fsi_dev, SCOM_DATA1_REG, &data, in __put_scom() 91 if (rc) in __put_scom() 92 return rc; in __put_scom() 95 rc = fsi_device_write(scom_dev->fsi_dev, SCOM_CMD_REG, &data, in __put_scom() 97 if (rc) in __put_scom() 98 return rc; in __put_scom() [all …]
|
/drivers/reset/ |
D | reset-npcm.c | 101 struct npcm_rc_data *rc = container_of(nb, struct npcm_rc_data, in npcm_rc_restart() local 104 writel(NPCM_SWRST << rc->sw_reset_number, rc->base + NPCM_SWRSTR); in npcm_rc_restart() 115 struct npcm_rc_data *rc = to_rc_data(rcdev); in npcm_rc_setclear_reset() local 121 spin_lock_irqsave(&rc->lock, flags); in npcm_rc_setclear_reset() 122 stat = readl(rc->base + ctrl_offset); in npcm_rc_setclear_reset() 124 writel(stat | rst_bit, rc->base + ctrl_offset); in npcm_rc_setclear_reset() 126 writel(stat & ~rst_bit, rc->base + ctrl_offset); in npcm_rc_setclear_reset() 127 spin_unlock_irqrestore(&rc->lock, flags); in npcm_rc_setclear_reset() 146 struct npcm_rc_data *rc = to_rc_data(rcdev); in npcm_rc_status() local 150 return (readl(rc->base + ctrl_offset) & rst_bit); in npcm_rc_status() [all …]
|
/drivers/gpu/drm/msm/hdmi/ |
D | hdmi_hdcp.c | 81 int rc; in msm_hdmi_ddc_read() local 99 rc = i2c_transfer(hdmi->i2c, msgs, 2); in msm_hdmi_ddc_read() 102 if (rc == 2) in msm_hdmi_ddc_read() 103 rc = 0; in msm_hdmi_ddc_read() 107 rc = -EIO; in msm_hdmi_ddc_read() 109 DBG("End DDC read %d", rc); in msm_hdmi_ddc_read() 111 return rc; in msm_hdmi_ddc_read() 119 int rc; in msm_hdmi_ddc_write() local 141 rc = i2c_transfer(hdmi->i2c, msgs, 1); in msm_hdmi_ddc_write() 144 if (rc == 1) in msm_hdmi_ddc_write() [all …]
|
/drivers/char/tpm/ |
D | tpm_ibmvtpm.c | 142 int rc; in ibmvtpm_crq_send_init() local 144 rc = ibmvtpm_send_crq_word(ibmvtpm->vdev, INIT_CRQ_CMD); in ibmvtpm_crq_send_init() 145 if (rc != H_SUCCESS) in ibmvtpm_crq_send_init() 147 "%s failed rc=%d\n", __func__, rc); in ibmvtpm_crq_send_init() 149 return rc; in ibmvtpm_crq_send_init() 163 int rc = 0; in tpm_ibmvtpm_resume() local 166 if (rc) in tpm_ibmvtpm_resume() 168 rc = plpar_hcall_norets(H_ENABLE_CRQ, in tpm_ibmvtpm_resume() 170 } while (rc == H_IN_PROGRESS || rc == H_BUSY || H_IS_LONG_BUSY(rc)); in tpm_ibmvtpm_resume() 172 if (rc) { in tpm_ibmvtpm_resume() [all …]
|
D | tpm2-cmd.c | 165 int rc; in tpm2_pcr_read() local 186 rc = tpm_buf_init(&buf, TPM2_ST_NO_SESSIONS, TPM2_CC_PCR_READ); in tpm2_pcr_read() 187 if (rc) in tpm2_pcr_read() 188 return rc; in tpm2_pcr_read() 198 rc = tpm_transmit_cmd(chip, &buf, 0, "attempting to read a pcr value"); in tpm2_pcr_read() 199 if (rc) in tpm2_pcr_read() 206 rc = -EINVAL; in tpm2_pcr_read() 216 return rc; in tpm2_pcr_read() 240 int rc; in tpm2_pcr_extend() local 243 rc = tpm_buf_init(&buf, TPM2_ST_SESSIONS, TPM2_CC_PCR_EXTEND); in tpm2_pcr_extend() [all …]
|
/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 …]
|
/drivers/net/ethernet/sfc/ |
D | ef100_netdev.c | 44 int rc; in ef100_alloc_vis() local 54 rc = efx_mcdi_alloc_vis(efx, min_vis, max_vis, in ef100_alloc_vis() 60 if (!rc && *allocated_vis < max_vis) in ef100_alloc_vis() 61 rc = -EAGAIN; in ef100_alloc_vis() 63 return rc; in ef100_alloc_vis() 121 int rc; in ef100_net_open() local 127 rc = efx_check_disabled(efx); in ef100_net_open() 128 if (rc) in ef100_net_open() 131 rc = efx_probe_interrupts(efx); in ef100_net_open() 132 if (rc) in ef100_net_open() [all …]
|