/drivers/media/dvb-frontends/drx39xyj/ |
D | drxj.c | 1418 int rc; in drxdap_fasi_read_block() local 1480 rc = drxbsp_i2c_write_read(dev_addr, bufx, buf, in drxdap_fasi_read_block() 1482 if (rc == 0) in drxdap_fasi_read_block() 1483 rc = drxbsp_i2c_write_read(NULL, 0, NULL, dev_addr, todo, data); in drxdap_fasi_read_block() 1486 rc = drxbsp_i2c_write_read(dev_addr, bufx, buf, dev_addr, todo, in drxdap_fasi_read_block() 1492 } while (datasize && rc == 0); in drxdap_fasi_read_block() 1494 return rc; in drxdap_fasi_read_block() 1521 int rc; in drxdap_fasi_read_reg16() local 1526 rc = drxdap_fasi_read_block(dev_addr, addr, sizeof(*data), buf, flags); in drxdap_fasi_read_reg16() 1528 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 " data == 0x%02x)\n", __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 | 379 int rc, size, pos = 0; in r820t_write() local 394 rc = tuner_i2c_xfer_send(&priv->i2c_props, priv->buf, size + 1); in r820t_write() 395 if (rc != size + 1) { in r820t_write() 397 __func__, rc, reg, size, size, &priv->buf[1]); in r820t_write() 398 if (rc < 0) in r820t_write() 399 return rc; in r820t_write() 434 int rc = r820t_read_cache_reg(priv, reg); in r820t_write_reg_mask() local 436 if (rc < 0) in r820t_write_reg_mask() 437 return rc; in r820t_write_reg_mask() 439 tmp = (rc & ~bit_mask) | (tmp & bit_mask); in r820t_write_reg_mask() [all …]
|
/drivers/media/rc/keymaps/ |
D | Makefile | 1 obj-$(CONFIG_RC_MAP) += rc-adstech-dvb-t-pci.o \ 2 rc-alink-dtu-m.o \ 3 rc-anysee.o \ 4 rc-apac-viewcomp.o \ 5 rc-asus-pc39.o \ 6 rc-asus-ps3-100.o \ 7 rc-ati-tv-wonder-hd-600.o \ 8 rc-ati-x10.o \ 9 rc-avermedia-a16d.o \ 10 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 …]
|
/drivers/net/wireless/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 != 0) { 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 103 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 | 154 int rc; in erst_exec_add_value() local 157 rc = __apei_exec_read_register(entry, &val); in erst_exec_add_value() 158 if (rc) in erst_exec_add_value() 159 return rc; in erst_exec_add_value() 161 rc = __apei_exec_write_register(entry, val); in erst_exec_add_value() 162 return rc; in erst_exec_add_value() 168 int rc; in erst_exec_subtract_value() local 171 rc = __apei_exec_read_register(entry, &val); in erst_exec_subtract_value() 172 if (rc) in erst_exec_subtract_value() 173 return rc; in erst_exec_subtract_value() [all …]
|
/drivers/gpu/drm/msm/hdmi/ |
D | hdmi_hdcp.c | 90 int rc; in hdmi_ddc_read() local 108 rc = i2c_transfer(hdmi->i2c, msgs, 2); in hdmi_ddc_read() 111 if (rc == 2) in hdmi_ddc_read() 112 rc = 0; in hdmi_ddc_read() 116 rc = -EIO; in hdmi_ddc_read() 118 DBG("End DDC read %d", rc); in hdmi_ddc_read() 120 return rc; in hdmi_ddc_read() 128 int rc; in hdmi_ddc_write() local 150 rc = i2c_transfer(hdmi->i2c, msgs, 1); in hdmi_ddc_write() 153 if (rc == 1) in hdmi_ddc_write() [all …]
|
/drivers/staging/lustre/lustre/mdc/ |
D | mdc_request.c | 61 int rc; in mdc_queue_wait() local 66 rc = mdc_enter_request(cli); in mdc_queue_wait() 67 if (rc != 0) in mdc_queue_wait() 68 return rc; in mdc_queue_wait() 70 rc = ptlrpc_queue_wait(req); in mdc_queue_wait() 73 return rc; in mdc_queue_wait() 80 int rc; in mdc_getstatus() local 93 rc = ptlrpc_queue_wait(req); in mdc_getstatus() 94 if (rc) in mdc_getstatus() 99 rc = -EPROTO; in mdc_getstatus() [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 != 0) 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 != 0) in lstcon_group_ndlink_find() 294 return rc; in lstcon_group_ndlink_find() 411 int rc; in lstcon_group_nodes_add() local 413 rc = lstcon_group_alloc(NULL, &tmp); in lstcon_group_nodes_add() [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 | 128 int rc; in tpm_ibmvtpm_send() local 151 rc = ibmvtpm_send_crq(ibmvtpm->vdev, be64_to_cpu(word[0]), in tpm_ibmvtpm_send() 153 if (rc != H_SUCCESS) { in tpm_ibmvtpm_send() 154 dev_err(ibmvtpm->dev, "tpm_ibmvtpm_send failed rc=%d\n", rc); in tpm_ibmvtpm_send() 155 rc = 0; in tpm_ibmvtpm_send() 157 rc = count; in tpm_ibmvtpm_send() 160 return rc; in tpm_ibmvtpm_send() 185 int rc; in ibmvtpm_crq_get_rtce_size() local 190 rc = ibmvtpm_send_crq(ibmvtpm->vdev, cpu_to_be64(buf[0]), in ibmvtpm_crq_get_rtce_size() 192 if (rc != H_SUCCESS) in ibmvtpm_crq_get_rtce_size() [all …]
|
/drivers/misc/mic/cosm_client/ |
D | cosm_scif_client.c | 42 int rc; in cosm_reboot_event() local 49 rc = scif_send(client_epd, &msg, sizeof(msg), SCIF_SEND_BLOCK); in cosm_reboot_event() 50 if (rc < 0) in cosm_reboot_event() 52 __func__, __LINE__, rc); in cosm_reboot_event() 64 int rc = do_settimeofday64(&msg->timespec); in cosm_set_time() local 66 if (rc) in cosm_set_time() 68 __func__, __LINE__, rc); in cosm_set_time() 75 int rc; in cosm_client_recv() local 78 rc = scif_recv(client_epd, &msg, sizeof(msg), 0); in cosm_client_recv() 79 if (!rc) { in cosm_client_recv() [all …]
|
/drivers/staging/lustre/lustre/include/ |
D | obd_class.h | 291 int rc; in obd_check_dev_active() local 293 rc = obd_check_dev(obd); in obd_check_dev_active() 294 if (rc) in obd_check_dev_active() 295 return rc; in obd_check_dev_active() 300 return rc; in obd_check_dev_active() 417 int rc; in obd_get_info() local 422 rc = OBP(exp->exp_obd, get_info)(env, exp, keylen, key, vallen, val, in obd_get_info() 424 return rc; in obd_get_info() 432 int rc; in obd_set_info_async() local 437 rc = OBP(exp->exp_obd, set_info_async)(env, exp, keylen, key, vallen, in obd_set_info_async() [all …]
|
/drivers/rtc/ |
D | rtc-pm8xxx.c | 85 int rc, i; in pm8xxx_rtc_set_time() local 106 rc = regmap_read(rtc_dd->regmap, regs->alarm_ctrl, &ctrl_reg); in pm8xxx_rtc_set_time() 107 if (rc) in pm8xxx_rtc_set_time() 113 rc = regmap_write(rtc_dd->regmap, regs->alarm_ctrl, ctrl_reg); in pm8xxx_rtc_set_time() 114 if (rc) { in pm8xxx_rtc_set_time() 121 rc = regmap_read(rtc_dd->regmap, regs->ctrl, &rtc_ctrl_reg); in pm8xxx_rtc_set_time() 122 if (rc) in pm8xxx_rtc_set_time() 128 rc = regmap_write(rtc_dd->regmap, regs->ctrl, rtc_ctrl_reg); in pm8xxx_rtc_set_time() 129 if (rc) { in pm8xxx_rtc_set_time() 136 rc = regmap_write(rtc_dd->regmap, regs->write, 0); in pm8xxx_rtc_set_time() [all …]
|