/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/dvb-frontends/ |
D | mb86a20s.c | 227 int rc; in mb86a20s_i2c_writereg() local 229 rc = i2c_transfer(state->i2c, &msg, 1); in mb86a20s_i2c_writereg() 230 if (rc != 1) { in mb86a20s_i2c_writereg() 233 __func__, rc, reg, data); in mb86a20s_i2c_writereg() 234 return rc; in mb86a20s_i2c_writereg() 243 int i, rc; in mb86a20s_i2c_writeregdata() local 246 rc = mb86a20s_i2c_writereg(state, i2c_addr, rd[i].reg, in mb86a20s_i2c_writeregdata() 248 if (rc < 0) in mb86a20s_i2c_writeregdata() 249 return rc; in mb86a20s_i2c_writeregdata() 258 int rc; in mb86a20s_i2c_readreg() local [all …]
|
D | s921.c | 35 #define rc(args...) do { \ macro 213 int rc; in s921_i2c_writereg() local 215 rc = i2c_transfer(state->i2c, &msg, 1); in s921_i2c_writereg() 216 if (rc != 1) { in s921_i2c_writereg() 218 __func__, rc, reg, data); in s921_i2c_writereg() 219 return rc; in s921_i2c_writereg() 228 int i, rc; in s921_i2c_writeregdata() local 231 rc = s921_i2c_writereg(state, i2c_addr, rd[i].reg, rd[i].data); in s921_i2c_writeregdata() 232 if (rc < 0) in s921_i2c_writeregdata() 233 return rc; in s921_i2c_writeregdata() [all …]
|
/drivers/media/tuners/ |
D | r820t.c | 365 int rc, size, pos = 0; in r820t_write() local 380 rc = tuner_i2c_xfer_send(&priv->i2c_props, priv->buf, size + 1); in r820t_write() 381 if (rc != size + 1) { in r820t_write() 383 __func__, rc, reg, size, size, &priv->buf[1]); in r820t_write() 384 if (rc < 0) in r820t_write() 385 return rc; in r820t_write() 420 int rc = r820t_read_cache_reg(priv, reg); in r820t_write_reg_mask() local 422 if (rc < 0) in r820t_write_reg_mask() 423 return rc; in r820t_write_reg_mask() 425 tmp = (rc & ~bit_mask) | (tmp & bit_mask); in r820t_write_reg_mask() [all …]
|
/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-asus-pc39.o \ 7 rc-asus-ps3-100.o \ 8 rc-ati-tv-wonder-hd-600.o \ 9 rc-ati-x10.o \ 10 rc-avermedia-a16d.o \ 11 rc-avermedia.o \ [all …]
|
/drivers/uwb/ |
D | lc-rc.c | 46 struct uwb_rc *rc = dev_get_drvdata(dev); in uwb_rc_index_match() local 48 if (rc->index == *index) in uwb_rc_index_match() 56 struct uwb_rc *rc = NULL; in uwb_rc_find_by_index() local 60 rc = dev_get_drvdata(dev); in uwb_rc_find_by_index() 64 return rc; in uwb_rc_find_by_index() 85 struct uwb_rc *rc = container_of(uwb_dev, struct uwb_rc, uwb_dev); in uwb_rc_sys_release() local 87 uwb_rc_ie_release(rc); in uwb_rc_sys_release() 88 kfree(rc); in uwb_rc_sys_release() 92 void uwb_rc_init(struct uwb_rc *rc) in uwb_rc_init() argument 94 struct uwb_dev *uwb_dev = &rc->uwb_dev; in uwb_rc_init() [all …]
|
D | radio.c | 25 static int uwb_radio_select_channel(struct uwb_rc *rc) in uwb_radio_select_channel() argument 31 if (rc->active_pals == 0) in uwb_radio_select_channel() 33 if (rc->beaconing_forced) in uwb_radio_select_channel() 34 return rc->beaconing_forced; in uwb_radio_select_channel() 42 static void uwb_radio_channel_changed(struct uwb_rc *rc, int channel) in uwb_radio_channel_changed() argument 46 list_for_each_entry(pal, &rc->pals, node) { in uwb_radio_channel_changed() 62 static int uwb_radio_change_channel(struct uwb_rc *rc, int channel) in uwb_radio_change_channel() argument 65 struct device *dev = &rc->uwb_dev.dev; in uwb_radio_change_channel() 68 channel, rc->beaconing); in uwb_radio_change_channel() 71 uwb_radio_channel_changed(rc, channel); in uwb_radio_change_channel() [all …]
|
D | uwb-debug.c | 85 static int cmd_rsv_establish(struct uwb_rc *rc, in cmd_rsv_establish() argument 94 target = uwb_dev_get_by_macaddr(rc, &macaddr); in cmd_rsv_establish() 98 rsv = uwb_rsv_create(rc, uwb_dbg_rsv_cb, rc->dbg); in cmd_rsv_establish() 115 spin_lock(&(rc->dbg)->list_lock); in cmd_rsv_establish() 116 list_add_tail(&rsv->pal_node, &rc->dbg->rsvs); in cmd_rsv_establish() 117 spin_unlock(&(rc->dbg)->list_lock); in cmd_rsv_establish() 122 static int cmd_rsv_terminate(struct uwb_rc *rc, in cmd_rsv_terminate() argument 128 spin_lock(&(rc->dbg)->list_lock); in cmd_rsv_terminate() 130 list_for_each_entry(rsv, &rc->dbg->rsvs, pal_node) { in cmd_rsv_terminate() 139 spin_unlock(&(rc->dbg)->list_lock); in cmd_rsv_terminate() [all …]
|
D | neh.c | 106 struct uwb_rc *rc; member 163 int __uwb_rc_ctx_get(struct uwb_rc *rc, struct uwb_rc_neh *neh) in __uwb_rc_ctx_get() argument 166 result = find_next_zero_bit(rc->ctx_bm, UWB_RC_CTX_MAX, in __uwb_rc_ctx_get() 167 rc->ctx_roll++); in __uwb_rc_ctx_get() 170 result = find_first_zero_bit(rc->ctx_bm, UWB_RC_CTX_MAX); in __uwb_rc_ctx_get() 175 set_bit(result, rc->ctx_bm); in __uwb_rc_ctx_get() 183 void __uwb_rc_ctx_put(struct uwb_rc *rc, struct uwb_rc_neh *neh) in __uwb_rc_ctx_put() argument 185 struct device *dev = &rc->uwb_dev.dev; in __uwb_rc_ctx_put() 188 if (test_bit(neh->context, rc->ctx_bm) == 0) { in __uwb_rc_ctx_put() 193 clear_bit(neh->context, rc->ctx_bm); in __uwb_rc_ctx_put() [all …]
|
D | rsv.c | 108 struct device *dev = &rsv->rc->uwb_dev.dev; in uwb_rsv_dump() 149 struct uwb_rc *rc = rsv->rc; in uwb_rsv_get_stream() local 150 struct device *dev = &rc->uwb_dev.dev; in uwb_rsv_get_stream() 159 streams_bm = rc->uwb_dev.streams; in uwb_rsv_get_stream() 181 struct uwb_rc *rc = rsv->rc; in uwb_rsv_put_stream() local 182 struct device *dev = &rc->uwb_dev.dev; in uwb_rsv_put_stream() 190 streams_bm = rc->uwb_dev.streams; in uwb_rsv_put_stream() 204 struct uwb_rc *rc = container_of(bow, struct uwb_rc, bow); in uwb_rsv_backoff_win_timer() local 205 struct device *dev = &rc->uwb_dev.dev; in uwb_rsv_backoff_win_timer() 219 uwb_rsv_handle_drp_avail_change(rc); in uwb_rsv_backoff_win_timer() [all …]
|
D | reset.c | 71 int uwb_rc_cmd_async(struct uwb_rc *rc, const char *cmd_name, in uwb_rc_cmd_async() argument 76 struct device *dev = &rc->uwb_dev.dev; in uwb_rc_cmd_async() 81 uwb_dev_lock(&rc->uwb_dev); /* Protect against rc->priv being removed */ in uwb_rc_cmd_async() 82 if (rc->priv == NULL) { in uwb_rc_cmd_async() 83 uwb_dev_unlock(&rc->uwb_dev); in uwb_rc_cmd_async() 87 if (rc->filter_cmd) { in uwb_rc_cmd_async() 88 needtofree = rc->filter_cmd(rc, &cmd, &cmd_size); in uwb_rc_cmd_async() 92 uwb_dev_unlock(&rc->uwb_dev); in uwb_rc_cmd_async() 97 neh = uwb_rc_neh_add(rc, cmd, expected_type, expected_event, cb, arg); in uwb_rc_cmd_async() 100 uwb_dev_unlock(&rc->uwb_dev); in uwb_rc_cmd_async() [all …]
|
/drivers/net/phy/ |
D | bcm-cygnus.c | 26 int rc; in bcm_cygnus_afe_config() local 29 rc = phy_write(phydev, MII_BCM54XX_AUX_CTL, 0x0c30); in bcm_cygnus_afe_config() 30 if (rc < 0) in bcm_cygnus_afe_config() 31 return rc; in bcm_cygnus_afe_config() 34 rc = bcm_phy_write_misc(phydev, 0x39, 0x01, 0xA7C8); in bcm_cygnus_afe_config() 35 if (rc < 0) in bcm_cygnus_afe_config() 36 return rc; in bcm_cygnus_afe_config() 39 rc = bcm_phy_write_misc(phydev, 0x3A, 0x00, 0x0803); in bcm_cygnus_afe_config() 40 if (rc < 0) in bcm_cygnus_afe_config() 41 return rc; in bcm_cygnus_afe_config() [all …]
|
D | mscc.c | 128 int rc; in vsc85xx_phy_page_set() local 130 rc = phy_write(phydev, MSCC_EXT_PAGE_ACCESS, page); in vsc85xx_phy_page_set() 131 return rc; in vsc85xx_phy_page_set() 138 int rc; in vsc85xx_led_cntl_set() local 151 rc = phy_write(phydev, MSCC_PHY_LED_MODE_SEL, reg_val); in vsc85xx_led_cntl_set() 154 return rc; in vsc85xx_led_cntl_set() 172 int rc; in vsc85xx_mdix_set() local 185 rc = phy_write(phydev, MSCC_PHY_BYPASS_CONTROL, reg_val); in vsc85xx_mdix_set() 186 if (rc != 0) in vsc85xx_mdix_set() 187 return rc; in vsc85xx_mdix_set() [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/staging/lustre/lnet/lnet/ |
D | lib-socket.c | 64 int rc; in lnet_sock_ioctl() local 66 rc = sock_create(PF_INET, SOCK_STREAM, 0, &sock); in lnet_sock_ioctl() 67 if (rc) { in lnet_sock_ioctl() 68 CERROR("Can't create socket: %d\n", rc); in lnet_sock_ioctl() 69 return rc; in lnet_sock_ioctl() 75 rc = PTR_ERR(sock_filp); in lnet_sock_ioctl() 79 rc = kernel_sock_unlocked_ioctl(sock_filp, cmd, arg); in lnet_sock_ioctl() 83 return rc; in lnet_sock_ioctl() 91 int rc; in lnet_ipif_query() local 106 rc = lnet_sock_ioctl(SIOCGIFFLAGS, (unsigned long)&ifr); in lnet_ipif_query() [all …]
|
/drivers/media/usb/stk1160/ |
D | stk1160-i2c.c | 66 int rc; in stk1160_i2c_write_reg() local 69 rc = stk1160_write_reg(dev, STK1160_SICTL_SDA, addr); in stk1160_i2c_write_reg() 70 if (rc < 0) in stk1160_i2c_write_reg() 71 return rc; in stk1160_i2c_write_reg() 74 rc = stk1160_write_reg(dev, STK1160_SBUSW_WA, reg); in stk1160_i2c_write_reg() 75 if (rc < 0) in stk1160_i2c_write_reg() 76 return rc; in stk1160_i2c_write_reg() 79 rc = stk1160_write_reg(dev, STK1160_SBUSW_WD, value); in stk1160_i2c_write_reg() 80 if (rc < 0) in stk1160_i2c_write_reg() 81 return rc; in stk1160_i2c_write_reg() [all …]
|
/drivers/acpi/apei/ |
D | erst.c | 155 int rc; in erst_exec_add_value() local 158 rc = __apei_exec_read_register(entry, &val); in erst_exec_add_value() 159 if (rc) in erst_exec_add_value() 160 return rc; in erst_exec_add_value() 162 rc = __apei_exec_write_register(entry, val); in erst_exec_add_value() 163 return rc; in erst_exec_add_value() 169 int rc; in erst_exec_subtract_value() local 172 rc = __apei_exec_read_register(entry, &val); in erst_exec_subtract_value() 173 if (rc) in erst_exec_subtract_value() 174 return rc; in erst_exec_subtract_value() [all …]
|
/drivers/gpu/drm/msm/hdmi/ |
D | hdmi_hdcp.c | 90 int rc; in msm_hdmi_ddc_read() local 108 rc = i2c_transfer(hdmi->i2c, msgs, 2); in msm_hdmi_ddc_read() 111 if (rc == 2) in msm_hdmi_ddc_read() 112 rc = 0; in msm_hdmi_ddc_read() 116 rc = -EIO; in msm_hdmi_ddc_read() 118 DBG("End DDC read %d", rc); in msm_hdmi_ddc_read() 120 return rc; in msm_hdmi_ddc_read() 128 int rc; in msm_hdmi_ddc_write() local 150 rc = i2c_transfer(hdmi->i2c, msgs, 1); in msm_hdmi_ddc_write() 153 if (rc == 1) in msm_hdmi_ddc_write() [all …]
|
/drivers/staging/lustre/lnet/selftest/ |
D | console.c | 145 int rc; in lstcon_ndlink_find() local 164 rc = lstcon_node_find(id, &nd, (create == 1) ? 1 : 0); in lstcon_ndlink_find() 165 if (rc) in lstcon_ndlink_find() 166 return rc; in lstcon_ndlink_find() 290 int rc; in lstcon_group_ndlink_find() local 292 rc = lstcon_ndlink_find(&grp->grp_ndl_hash[0], id, ndlpp, create); in lstcon_group_ndlink_find() 293 if (rc) in lstcon_group_ndlink_find() 294 return rc; in lstcon_group_ndlink_find() 410 int rc; in lstcon_group_nodes_add() local 412 rc = lstcon_group_alloc(NULL, &tmp); in lstcon_group_nodes_add() [all …]
|
/drivers/net/wireless/ath/wil6210/ |
D | pm.c | 22 int rc = 0; in wil_can_suspend() local 35 rc = -EBUSY; in wil_can_suspend() 40 rc = -EBUSY; in wil_can_suspend() 51 rc = -EBUSY; in wil_can_suspend() 58 rc = -EBUSY; in wil_can_suspend() 64 is_runtime ? "runtime" : "system", rc ? "No" : "Yes", rc); in wil_can_suspend() 66 if (rc) in wil_can_suspend() 69 return rc; in wil_can_suspend() 74 int rc = 0; in wil_resume_keep_radio_on() local 87 rc = wmi_resume(wil); in wil_resume_keep_radio_on() [all …]
|
/drivers/memstick/core/ |
D | mspro_block.c | 189 int rc = -ENXIO; in mspro_block_bd_open() local 196 rc = -EROFS; in mspro_block_bd_open() 198 rc = 0; in mspro_block_bd_open() 203 return rc; in mspro_block_bd_open() 298 ssize_t cnt, rc = 0; in mspro_block_attr_show_default() local 302 if (PAGE_SIZE - rc) in mspro_block_attr_show_default() 303 buffer[rc++] = '\n'; in mspro_block_attr_show_default() 306 rc += scnprintf(buffer + rc, PAGE_SIZE - rc, "%02x ", in mspro_block_attr_show_default() 309 return rc; in mspro_block_attr_show_default() 320 ssize_t rc = 0; in mspro_block_attr_show_sysinfo() local [all …]
|
/drivers/input/keyboard/ |
D | pmic8xxx-keypad.c | 139 int rc; in pmic8xxx_chk_sync_read() local 142 rc = regmap_read(kp->regmap, KEYP_SCAN, &scan_val); in pmic8xxx_chk_sync_read() 143 if (rc < 0) { in pmic8xxx_chk_sync_read() 144 dev_err(kp->dev, "Error reading KEYP_SCAN reg, rc=%d\n", rc); in pmic8xxx_chk_sync_read() 145 return rc; in pmic8xxx_chk_sync_read() 150 rc = regmap_write(kp->regmap, KEYP_SCAN, scan_val); in pmic8xxx_chk_sync_read() 151 if (rc < 0) { in pmic8xxx_chk_sync_read() 152 dev_err(kp->dev, "Error writing KEYP_SCAN reg, rc=%d\n", rc); in pmic8xxx_chk_sync_read() 153 return rc; in pmic8xxx_chk_sync_read() 159 return rc; in pmic8xxx_chk_sync_read() [all …]
|
/drivers/char/tpm/ |
D | tpm_ibmvtpm.c | 156 int rc, sig; in tpm_ibmvtpm_send() local 189 rc = ibmvtpm_send_crq(ibmvtpm->vdev, in tpm_ibmvtpm_send() 192 if (rc != H_SUCCESS) { in tpm_ibmvtpm_send() 193 dev_err(ibmvtpm->dev, "tpm_ibmvtpm_send failed rc=%d\n", rc); in tpm_ibmvtpm_send() 194 rc = 0; in tpm_ibmvtpm_send() 197 rc = 0; in tpm_ibmvtpm_send() 200 return rc; in tpm_ibmvtpm_send() 224 int rc; in ibmvtpm_crq_get_rtce_size() local 226 rc = ibmvtpm_send_crq(ibmvtpm->vdev, in ibmvtpm_crq_get_rtce_size() 228 if (rc != H_SUCCESS) in ibmvtpm_crq_get_rtce_size() [all …]
|
D | tpm_tis_core.c | 47 int rc; in wait_startup() local 50 rc = tpm_tis_read8(priv, TPM_ACCESS(l), &access); in wait_startup() 51 if (rc < 0) in wait_startup() 52 return rc; in wait_startup() 64 int rc; in check_locality() local 67 rc = tpm_tis_read8(priv, TPM_ACCESS(l), &access); in check_locality() 68 if (rc < 0) in check_locality() 93 long rc; in request_locality() local 98 rc = tpm_tis_write8(priv, TPM_ACCESS(l), TPM_ACCESS_REQUEST_USE); in request_locality() 99 if (rc < 0) in request_locality() [all …]
|
/drivers/misc/mic/cosm_client/ |
D | cosm_scif_client.c | 44 int rc; in cosm_reboot_event() local 51 rc = scif_send(client_epd, &msg, sizeof(msg), SCIF_SEND_BLOCK); in cosm_reboot_event() 52 if (rc < 0) in cosm_reboot_event() 54 __func__, __LINE__, rc); in cosm_reboot_event() 66 int rc = do_settimeofday64(&msg->timespec); in cosm_set_time() local 68 if (rc) in cosm_set_time() 70 __func__, __LINE__, rc); in cosm_set_time() 77 int rc; in cosm_client_recv() local 80 rc = scif_recv(client_epd, &msg, sizeof(msg), 0); in cosm_client_recv() 81 if (!rc) { in cosm_client_recv() [all …]
|