/linux-4.4.14/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 …]
|
/linux-4.4.14/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 …]
|
/linux-4.4.14/drivers/media/dvb-frontends/ |
D | mb86a20s.c | 235 int rc; in mb86a20s_i2c_writereg() local 237 rc = i2c_transfer(state->i2c, &msg, 1); in mb86a20s_i2c_writereg() 238 if (rc != 1) { in mb86a20s_i2c_writereg() 241 __func__, rc, reg, data); in mb86a20s_i2c_writereg() 242 return rc; in mb86a20s_i2c_writereg() 251 int i, rc; in mb86a20s_i2c_writeregdata() local 254 rc = mb86a20s_i2c_writereg(state, i2c_addr, rd[i].reg, in mb86a20s_i2c_writeregdata() 256 if (rc < 0) in mb86a20s_i2c_writeregdata() 257 return rc; in mb86a20s_i2c_writeregdata() 266 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 …]
|
D | stb6100.c | 135 int rc; in stb6100_read_regs() local 143 rc = i2c_transfer(state->i2c, &msg, 1); in stb6100_read_regs() 144 if (unlikely(rc != 1)) { in stb6100_read_regs() 146 state->config->tuner_address, rc); in stb6100_read_regs() 187 int rc; in stb6100_write_reg_range() local 218 rc = i2c_transfer(state->i2c, &msg, 1); in stb6100_write_reg_range() 219 if (unlikely(rc != 1)) { in stb6100_write_reg_range() 221 (unsigned int)state->config->tuner_address, start, len, rc); in stb6100_write_reg_range() 240 int rc; in stb6100_get_status() local 243 rc = stb6100_read_reg(state, STB6100_LD); in stb6100_get_status() [all …]
|
/linux-4.4.14/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() 431 int rc = r820t_read_cache_reg(priv, reg); in r820t_write_reg_mask() local 433 if (rc < 0) in r820t_write_reg_mask() 434 return rc; in r820t_write_reg_mask() 436 val = (rc & ~bit_mask) | (val & bit_mask); in r820t_write_reg_mask() [all …]
|
D | tuner-xc2028.c | 304 int rc = 0; in load_all_firmwares() local 336 rc = -ENOMEM; in load_all_firmwares() 387 rc = -ENOMEM; in load_all_firmwares() 416 rc = -EINVAL; in load_all_firmwares() 424 if (rc == 0) in load_all_firmwares() 429 return rc; in load_all_firmwares() 544 int pos, rc; in load_firmware() local 581 rc = do_tuner_callback(fe, XC2028_TUNER_RESET, 0); in load_firmware() 582 if (rc < 0) { in load_firmware() 592 rc = do_tuner_callback(fe, XC2028_RESET_CLK, 0); in load_firmware() [all …]
|
/linux-4.4.14/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() 61 return rc; in uwb_rc_find_by_index() 82 struct uwb_rc *rc = container_of(uwb_dev, struct uwb_rc, uwb_dev); in uwb_rc_sys_release() local 84 uwb_rc_ie_release(rc); in uwb_rc_sys_release() 85 kfree(rc); in uwb_rc_sys_release() 89 void uwb_rc_init(struct uwb_rc *rc) in uwb_rc_init() argument 91 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 | drp-avail.c | 49 void uwb_drp_avail_init(struct uwb_rc *rc) in uwb_drp_avail_init() argument 51 bitmap_fill(rc->drp_avail.global, UWB_NUM_MAS); in uwb_drp_avail_init() 52 bitmap_fill(rc->drp_avail.local, UWB_NUM_MAS); in uwb_drp_avail_init() 53 bitmap_fill(rc->drp_avail.pending, UWB_NUM_MAS); in uwb_drp_avail_init() 61 void uwb_drp_available(struct uwb_rc *rc, struct uwb_mas_bm *avail) in uwb_drp_available() argument 63 bitmap_and(avail->bm, rc->drp_avail.global, rc->drp_avail.local, UWB_NUM_MAS); in uwb_drp_available() 64 bitmap_and(avail->bm, avail->bm, rc->drp_avail.pending, UWB_NUM_MAS); in uwb_drp_available() 74 int uwb_drp_avail_reserve_pending(struct uwb_rc *rc, struct uwb_mas_bm *mas) in uwb_drp_avail_reserve_pending() argument 78 uwb_drp_available(rc, &avail); in uwb_drp_avail_reserve_pending() 82 bitmap_andnot(rc->drp_avail.pending, rc->drp_avail.pending, mas->bm, UWB_NUM_MAS); in uwb_drp_avail_reserve_pending() [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 …]
|
D | uwbd.c | 205 dev_err(&evt->rc->uwb_dev.dev, in uwbd_event_handle_urc() 213 struct uwb_rc *rc; in uwbd_event_handle_message() local 216 rc = evt->rc; in uwbd_event_handle_message() 219 dev_err(&rc->uwb_dev.dev, "UWBD: invalid message type %d\n", evt->message); in uwbd_event_handle_message() 225 dev_err(&rc->uwb_dev.dev, "UWBD: '%s' message failed: %d\n", in uwbd_event_handle_message() 231 struct uwb_rc *rc; in uwbd_event_handle() local 234 rc = evt->rc; in uwbd_event_handle() 236 if (rc->ready) { in uwbd_event_handle() 247 dev_err(&rc->uwb_dev.dev, "UWBD: invalid event type %d\n", evt->type); in uwbd_event_handle() 252 __uwb_rc_put(rc); /* for the __uwb_rc_get() in uwb_rc_notif_cb() */ in uwbd_event_handle() [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 | uwb-internal.h | 46 void uwb_notify(struct uwb_rc *rc, struct uwb_dev *uwb_dev, enum uwb_notifs event); 50 static inline struct uwb_rc *__uwb_rc_get(struct uwb_rc *rc) in __uwb_rc_get() argument 52 uwb_dev_get(&rc->uwb_dev); in __uwb_rc_get() 53 return rc; in __uwb_rc_get() 56 static inline void __uwb_rc_put(struct uwb_rc *rc) in __uwb_rc_put() argument 58 if (rc) in __uwb_rc_put() 59 uwb_dev_put(&rc->uwb_dev); in __uwb_rc_put() 62 extern int uwb_rc_reset(struct uwb_rc *rc); 63 extern int uwb_rc_beacon(struct uwb_rc *rc, 65 extern int uwb_rc_scan(struct uwb_rc *rc, [all …]
|
D | drp.c | 58 static void uwb_rc_set_drp_cmd_done(struct uwb_rc *rc, void *arg, in uwb_rc_set_drp_cmd_done() argument 66 dev_err(&rc->uwb_dev.dev, "SET-DRP-IE failed: %s (%d)\n", in uwb_rc_set_drp_cmd_done() 69 dev_err(&rc->uwb_dev.dev, "SET-DRP-IE: timeout\n"); in uwb_rc_set_drp_cmd_done() 71 spin_lock_irqsave(&rc->rsvs_lock, flags); in uwb_rc_set_drp_cmd_done() 72 if (rc->set_drp_ie_pending > 1) { in uwb_rc_set_drp_cmd_done() 73 rc->set_drp_ie_pending = 0; in uwb_rc_set_drp_cmd_done() 74 uwb_rsv_queue_update(rc); in uwb_rc_set_drp_cmd_done() 76 rc->set_drp_ie_pending = 0; in uwb_rc_set_drp_cmd_done() 78 spin_unlock_irqrestore(&rc->rsvs_lock, flags); in uwb_rc_set_drp_cmd_done() 101 int uwb_rc_send_all_drp_ie(struct uwb_rc *rc) in uwb_rc_send_all_drp_ie() argument [all …]
|
D | beacon.c | 43 static int uwb_rc_start_beacon(struct uwb_rc *rc, u16 bpst_offset, u8 channel) in uwb_rc_start_beacon() argument 58 result = uwb_rc_cmd(rc, "START-BEACON", &cmd->rccb, sizeof(*cmd), in uwb_rc_start_beacon() 63 dev_err(&rc->uwb_dev.dev, in uwb_rc_start_beacon() 73 static int uwb_rc_stop_beacon(struct uwb_rc *rc) in uwb_rc_stop_beacon() argument 86 result = uwb_rc_cmd(rc, "STOP-BEACON", cmd, sizeof(*cmd), in uwb_rc_stop_beacon() 91 dev_err(&rc->uwb_dev.dev, in uwb_rc_stop_beacon() 115 int uwb_rc_beacon(struct uwb_rc *rc, int channel, unsigned bpst_offset) in uwb_rc_beacon() argument 118 struct device *dev = &rc->uwb_dev.dev; in uwb_rc_beacon() 124 result = uwb_rc_stop_beacon(rc); in uwb_rc_beacon() 127 result = uwb_rc_start_beacon(rc, bpst_offset, channel); in uwb_rc_beacon() [all …]
|
D | address.c | 59 int uwb_rc_dev_addr_mgmt(struct uwb_rc *rc, in uwb_rc_dev_addr_mgmt() argument 84 result = uwb_rc_cmd(rc, "DEV-ADDR-MGMT", in uwb_rc_dev_addr_mgmt() 90 dev_err(&rc->uwb_dev.dev, in uwb_rc_dev_addr_mgmt() 95 dev_err(&rc->uwb_dev.dev, in uwb_rc_dev_addr_mgmt() 124 static int uwb_rc_addr_set(struct uwb_rc *rc, in uwb_rc_addr_set() argument 146 return uwb_rc_dev_addr_mgmt(rc, bmOperationType, baAddr, &reply); in uwb_rc_addr_set() 162 static int uwb_rc_addr_get(struct uwb_rc *rc, in uwb_rc_addr_get() argument 184 result = uwb_rc_dev_addr_mgmt(rc, bmOperationType, baAddr, &evt); in uwb_rc_addr_get() 203 int uwb_rc_mac_addr_get(struct uwb_rc *rc, in uwb_rc_mac_addr_get() argument 205 return uwb_rc_addr_get(rc, addr, UWB_ADDR_MAC); in uwb_rc_mac_addr_get() [all …]
|
D | pal.c | 43 struct uwb_rc *rc = pal->rc; in uwb_pal_register() local 49 &rc->uwb_dev.dev.kobj, "uwb_rc"); in uwb_pal_register() 53 ret = sysfs_create_link(&rc->uwb_dev.dev.kobj, in uwb_pal_register() 63 mutex_lock(&rc->uwb_dev.mutex); in uwb_pal_register() 64 list_add(&pal->node, &rc->pals); in uwb_pal_register() 65 mutex_unlock(&rc->uwb_dev.mutex); in uwb_pal_register() 74 struct uwb_rc *rc = dev_get_drvdata(dev); in find_rc() local 76 if (rc == NULL) { in find_rc() 80 if (rc == target_rc) { in find_rc() 81 if (rc->ready == 0) in find_rc() [all …]
|
/linux-4.4.14/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 | smsc.c | 29 int rc = phy_write (phydev, MII_LAN83C185_IM, in smsc_phy_config_intr() local 34 return rc < 0 ? rc : 0; in smsc_phy_config_intr() 39 int rc = phy_read (phydev, MII_LAN83C185_ISF); in smsc_phy_ack_interrupt() local 41 return rc < 0 ? rc : 0; in smsc_phy_ack_interrupt() 49 int rc = phy_read(phydev, MII_LAN83C185_CTRL_STATUS); in smsc_phy_config_init() local 52 if (rc < 0) in smsc_phy_config_init() 53 return rc; in smsc_phy_config_init() 60 rc = phy_write(phydev, MII_LAN83C185_CTRL_STATUS, in smsc_phy_config_init() 61 rc | MII_LAN83C185_EDPWRDOWN); in smsc_phy_config_init() 62 if (rc < 0) in smsc_phy_config_init() [all …]
|
D | bcm-phy-lib.c | 26 int rc; in bcm_phy_write_exp() local 28 rc = phy_write(phydev, MII_BCM54XX_EXP_SEL, reg); in bcm_phy_write_exp() 29 if (rc < 0) in bcm_phy_write_exp() 30 return rc; in bcm_phy_write_exp() 56 int rc; in bcm_phy_write_misc() local 59 rc = phy_write(phydev, MII_BCM54XX_AUX_CTL, in bcm_phy_write_misc() 61 if (rc < 0) in bcm_phy_write_misc() 62 return rc; in bcm_phy_write_misc() 66 rc = phy_write(phydev, MII_BCM54XX_AUX_CTL, tmp); in bcm_phy_write_misc() 67 if (rc < 0) in bcm_phy_write_misc() [all …]
|
/linux-4.4.14/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 …]
|
/linux-4.4.14/security/selinux/ss/ |
D | policydb.c | 178 int rc; in roles_init() local 181 rc = -ENOMEM; in roles_init() 186 rc = -EINVAL; in roles_init() 191 rc = -ENOMEM; in roles_init() 196 rc = hashtab_insert(p->p_roles.table, key, role); in roles_init() 197 if (rc) in roles_init() 204 return rc; in roles_init() 274 int i, rc; in policydb_init() local 279 rc = symtab_init(&p->symtab[i], symtab_sizes[i]); in policydb_init() 280 if (rc) in policydb_init() [all …]
|
D | conditional.c | 121 int rc; in cond_policydb_init() local 126 rc = avtab_init(&p->te_cond_avtab); in cond_policydb_init() 127 if (rc) in cond_policydb_init() 128 return rc; in cond_policydb_init() 227 int rc; in cond_read_bool() local 233 rc = next_entry(buf, fp, sizeof buf); in cond_read_bool() 234 if (rc) in cond_read_bool() 240 rc = -EINVAL; in cond_read_bool() 246 rc = -ENOMEM; in cond_read_bool() 250 rc = next_entry(key, fp, len); in cond_read_bool() [all …]
|
D | services.c | 790 int rc = 0; in security_validate_transition() local 802 rc = -EINVAL; in security_validate_transition() 811 rc = -EINVAL; in security_validate_transition() 819 rc = -EINVAL; in security_validate_transition() 827 rc = -EINVAL; in security_validate_transition() 835 rc = security_validtrans_handle_fail(ocontext, ncontext, in security_validate_transition() 844 return rc; in security_validate_transition() 861 int rc; in security_bounded_transition() local 865 rc = -EINVAL; in security_bounded_transition() 873 rc = -EINVAL; in security_bounded_transition() [all …]
|
/linux-4.4.14/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 …]
|
/linux-4.4.14/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 …]
|
D | acceptor.c | 96 lnet_connect_console_error(int rc, lnet_nid_t peer_nid, in lnet_connect_console_error() argument 99 switch (rc) { in lnet_connect_console_error() 134 rc, libcfs_nid2str(peer_nid), in lnet_connect_console_error() 147 int rc; in lnet_connect() local 158 rc = lnet_sock_connect(&sock, &fatal, local_ip, port, peer_ip, in lnet_connect() 160 if (rc != 0) { in lnet_connect() 186 rc = lnet_sock_write(sock, &cr, sizeof(cr), accept_timeout); in lnet_connect() 187 if (rc != 0) in lnet_connect() 194 rc = -EADDRINUSE; in lnet_connect() 200 lnet_connect_console_error(rc, peer_nid, peer_ip, peer_port); in lnet_connect() [all …]
|
D | module.c | 50 int rc = 0; in lnet_configure() local 55 rc = LNetNIInit(LUSTRE_SRV_LNET_PID); in lnet_configure() 56 if (rc >= 0) { in lnet_configure() 58 rc = 0; in lnet_configure() 63 return rc; in lnet_configure() 89 int rc; in lnet_ioctl() local 102 rc = LNetNIInit(LNET_PID_ANY); in lnet_ioctl() 103 if (rc >= 0) { in lnet_ioctl() 104 rc = LNetCtl(cmd, data); in lnet_ioctl() 107 return rc; in lnet_ioctl() [all …]
|
D | api-ni.c | 74 int rc; in lnet_get_networks() local 82 rc = lnet_parse_ip2nets(&nets, ip2nets); in lnet_get_networks() 83 return (rc == 0) ? nets : NULL; in lnet_get_networks() 427 int rc = 0; in lnet_res_container_setup() local 440 rc = -ENOMEM; in lnet_res_container_setup() 453 return rc; in lnet_res_container_setup() 473 int rc; in lnet_res_containers_create() local 484 rc = lnet_res_container_setup(rec, i, type); in lnet_res_containers_create() 485 if (rc != 0) { in lnet_res_containers_create() 538 int rc = 0; in lnet_prepare() local [all …]
|
/linux-4.4.14/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 …]
|
D | test_firmware.c | 28 ssize_t rc = 0; in test_fw_misc_read() local 32 rc = simple_read_from_buffer(buf, size, offset, in test_fw_misc_read() 36 return rc; in test_fw_misc_read() 54 int rc; in trigger_request_store() local 67 rc = request_firmware(&test_firmware, name, dev); in trigger_request_store() 68 if (rc) in trigger_request_store() 69 pr_info("load of '%s' failed: %d\n", name, rc); in trigger_request_store() 81 int rc; in test_firmware_init() local 83 rc = misc_register(&test_fw_misc_device); in test_firmware_init() 84 if (rc) { in test_firmware_init() [all …]
|
/linux-4.4.14/net/nfc/ |
D | digital_technology.c | 144 u8 rc; member 228 int rc; in digital_in_recv_ats() local 231 rc = PTR_ERR(resp); in digital_in_recv_ats() 237 rc = -EIO; in digital_in_recv_ats() 249 rc = digital_target_found(ddev, target, NFC_PROTO_ISO14443); in digital_in_recv_ats() 255 if (rc) in digital_in_recv_ats() 262 int rc; in digital_in_send_rats() local 272 rc = digital_in_send_cmd(ddev, skb, 30, digital_in_recv_ats, in digital_in_send_rats() 274 if (rc) in digital_in_send_rats() 277 return rc; in digital_in_send_rats() [all …]
|
D | digital_dep.c | 218 int rc; in digital_recv_dep_data_gather() local 225 rc = -ENOMEM; in digital_recv_dep_data_gather() 238 rc = -ENOMEM; in digital_recv_dep_data_gather() 253 rc = send_ack(ddev, data_exch); in digital_recv_dep_data_gather() 254 if (rc) in digital_recv_dep_data_gather() 272 return ERR_PTR(rc); in digital_recv_dep_data_gather() 280 int rc; in digital_in_recv_psl_res() local 283 rc = PTR_ERR(resp); in digital_in_recv_psl_res() 288 rc = ddev->skb_check_crc(resp); in digital_in_recv_psl_res() 289 if (rc) { in digital_in_recv_psl_res() [all …]
|
D | core.c | 47 int rc = 0; in nfc_fw_download() local 54 rc = -ENODEV; in nfc_fw_download() 59 rc = -EBUSY; in nfc_fw_download() 64 rc = -EOPNOTSUPP; in nfc_fw_download() 69 rc = dev->ops->fw_download(dev, firmware_name); in nfc_fw_download() 70 if (rc) in nfc_fw_download() 75 return rc; in nfc_fw_download() 103 int rc = 0; in nfc_dev_up() local 110 rc = -ERFKILL; in nfc_dev_up() 115 rc = -ENODEV; in nfc_dev_up() [all …]
|
/linux-4.4.14/fs/ecryptfs/ |
D | keystore.c | 44 int rc = 0; in process_request_key_err() local 49 rc = -ENOENT; in process_request_key_err() 53 rc = -ETIME; in process_request_key_err() 57 rc = -EINVAL; in process_request_key_err() 62 rc = -EINVAL; in process_request_key_err() 64 return rc; in process_request_key_err() 69 int rc = err_code; in process_find_global_auth_tok_for_sig_err() local 79 rc = process_request_key_err(err_code); in process_find_global_auth_tok_for_sig_err() 82 return rc; in process_find_global_auth_tok_for_sig_err() 97 int rc = 0; in ecryptfs_parse_packet_length() local [all …]
|
D | mmap.c | 67 int rc; in ecryptfs_writepage() local 69 rc = ecryptfs_encrypt_page(page); in ecryptfs_writepage() 70 if (rc) { in ecryptfs_writepage() 79 return rc; in ecryptfs_writepage() 128 int rc = 0; in ecryptfs_copy_up_encrypted_with_header() local 147 rc = ecryptfs_read_xattr_region( in ecryptfs_copy_up_encrypted_with_header() 156 if (rc) { in ecryptfs_copy_up_encrypted_with_header() 158 "region; rc = [%d]\n", __func__, rc); in ecryptfs_copy_up_encrypted_with_header() 167 rc = ecryptfs_read_lower_page_segment( in ecryptfs_copy_up_encrypted_with_header() 171 if (rc) { in ecryptfs_copy_up_encrypted_with_header() [all …]
|
D | crypto.c | 96 int rc = 0; in ecryptfs_calculate_md5() local 104 rc = PTR_ERR(desc.tfm); in ecryptfs_calculate_md5() 107 rc); in ecryptfs_calculate_md5() 112 rc = crypto_hash_init(&desc); in ecryptfs_calculate_md5() 113 if (rc) { in ecryptfs_calculate_md5() 116 __func__, rc); in ecryptfs_calculate_md5() 119 rc = crypto_hash_update(&desc, &sg, len); in ecryptfs_calculate_md5() 120 if (rc) { in ecryptfs_calculate_md5() 123 __func__, rc); in ecryptfs_calculate_md5() 126 rc = crypto_hash_final(&desc, dst); in ecryptfs_calculate_md5() [all …]
|
D | inode.c | 149 int rc; in ecryptfs_do_unlink() local 153 rc = vfs_unlink(lower_dir_inode, lower_dentry, NULL); in ecryptfs_do_unlink() 154 if (rc) { in ecryptfs_do_unlink() 155 printk(KERN_ERR "Error in vfs_unlink; rc = [%d]\n", rc); in ecryptfs_do_unlink() 165 return rc; in ecryptfs_do_unlink() 184 int rc; in ecryptfs_do_create() local 191 rc = vfs_create(d_inode(lower_dir_dentry), lower_dentry, mode, true); in ecryptfs_do_create() 192 if (rc) { in ecryptfs_do_create() 194 "rc = [%d]\n", __func__, rc); in ecryptfs_do_create() 195 inode = ERR_PTR(rc); in ecryptfs_do_create() [all …]
|
D | file.c | 49 ssize_t rc; in ecryptfs_read_update_atime() local 53 rc = generic_file_read_iter(iocb, to); in ecryptfs_read_update_atime() 54 if (rc >= 0) { in ecryptfs_read_update_atime() 58 return rc; in ecryptfs_read_update_atime() 78 int rc; in ecryptfs_filldir() local 81 rc = ecryptfs_decode_and_decrypt_filename(&name, &name_size, in ecryptfs_filldir() 84 if (rc) { in ecryptfs_filldir() 87 rc); in ecryptfs_filldir() 91 rc = !dir_emit(buf->caller, name, name_size, ino, d_type); in ecryptfs_filldir() 93 if (!rc) in ecryptfs_filldir() [all …]
|
D | messaging.c | 54 int rc; in ecryptfs_acquire_free_msg_ctx() local 62 rc = -ENOMEM; in ecryptfs_acquire_free_msg_ctx() 69 rc = 0; in ecryptfs_acquire_free_msg_ctx() 73 rc = -ENOMEM; in ecryptfs_acquire_free_msg_ctx() 75 return rc; in ecryptfs_acquire_free_msg_ctx() 117 int rc; in ecryptfs_find_daemon_by_euid() local 123 rc = 0; in ecryptfs_find_daemon_by_euid() 127 rc = -EINVAL; in ecryptfs_find_daemon_by_euid() 129 return rc; in ecryptfs_find_daemon_by_euid() 145 int rc = 0; in ecryptfs_spawn_daemon() local [all …]
|
D | miscdev.c | 80 int rc; in ecryptfs_miscdev_open() local 83 rc = ecryptfs_find_daemon_by_euid(&daemon); in ecryptfs_miscdev_open() 84 if (!rc) { in ecryptfs_miscdev_open() 85 rc = -EINVAL; in ecryptfs_miscdev_open() 88 rc = ecryptfs_spawn_daemon(&daemon, file); in ecryptfs_miscdev_open() 89 if (rc) { in ecryptfs_miscdev_open() 91 "rc = [%d]\n", __func__, rc); in ecryptfs_miscdev_open() 96 rc = -EBUSY; in ecryptfs_miscdev_open() 106 return rc; in ecryptfs_miscdev_open() 123 int rc; in ecryptfs_miscdev_release() local [all …]
|
D | main.c | 124 int rc; in ecryptfs_init_lower_file() local 126 rc = ecryptfs_privileged_open(lower_file, path->dentry, path->mnt, in ecryptfs_init_lower_file() 128 if (rc) { in ecryptfs_init_lower_file() 131 "rc = [%d]\n", path->dentry, path->mnt, rc); in ecryptfs_init_lower_file() 134 return rc; in ecryptfs_init_lower_file() 140 int count, rc = 0; in ecryptfs_get_lower_file() local 146 rc = -EINVAL; in ecryptfs_get_lower_file() 148 rc = ecryptfs_init_lower_file(dentry, in ecryptfs_get_lower_file() 150 if (rc) in ecryptfs_get_lower_file() 154 return rc; in ecryptfs_get_lower_file() [all …]
|
D | read_write.c | 43 ssize_t rc; in ecryptfs_write_lower() local 48 rc = kernel_write(lower_file, data, size, offset); in ecryptfs_write_lower() 50 return rc; in ecryptfs_write_lower() 75 int rc; in ecryptfs_write_lower_page_segment() local 80 rc = ecryptfs_write_lower(ecryptfs_inode, virt, offset, size); in ecryptfs_write_lower_page_segment() 81 if (rc > 0) in ecryptfs_write_lower_page_segment() 82 rc = 0; in ecryptfs_write_lower_page_segment() 84 return rc; in ecryptfs_write_lower_page_segment() 114 int rc = 0; in ecryptfs_write() local 132 rc = -EINTR; in ecryptfs_write() [all …]
|
/linux-4.4.14/fs/cifs/ |
D | smbencrypt.c | 71 int rc; in smbhash() local 81 rc = PTR_ERR(tfm_des); in smbhash() 93 rc = crypto_blkcipher_encrypt(&desc, &sgout, &sgin, 8); in smbhash() 94 if (rc) in smbhash() 95 cifs_dbg(VFS, "could not encrypt crypt key rc: %d\n", rc); in smbhash() 99 return rc; in smbhash() 105 int rc; in E_P16() local 109 rc = smbhash(p16, sp8, p14); in E_P16() 110 if (rc) in E_P16() 111 return rc; in E_P16() [all …]
|
D | link.c | 59 int rc; in symlink_hash() local 66 rc = PTR_ERR(md5); in symlink_hash() 68 __func__, rc); in symlink_hash() 69 return rc; in symlink_hash() 74 rc = -ENOMEM; in symlink_hash() 80 rc = crypto_shash_init(&sdescmd5->shash); in symlink_hash() 81 if (rc) { in symlink_hash() 85 rc = crypto_shash_update(&sdescmd5->shash, link_str, link_len); in symlink_hash() 86 if (rc) { in symlink_hash() 90 rc = crypto_shash_final(&sdescmd5->shash, md5_hash); in symlink_hash() [all …]
|
D | cifsencrypt.c | 40 int rc; in cifs_crypto_shash_md5_allocate() local 49 rc = PTR_ERR(server->secmech.md5); in cifs_crypto_shash_md5_allocate() 51 return rc; in cifs_crypto_shash_md5_allocate() 79 int rc; in cifs_calc_signature() local 87 rc = cifs_crypto_shash_md5_allocate(server); in cifs_calc_signature() 88 if (rc) { in cifs_calc_signature() 94 rc = crypto_shash_init(&server->secmech.sdescmd5->shash); in cifs_calc_signature() 95 if (rc) { in cifs_calc_signature() 97 return rc; in cifs_calc_signature() 100 rc = crypto_shash_update(&server->secmech.sdescmd5->shash, in cifs_calc_signature() [all …]
|
D | transport.c | 138 int rc = 0; in smb_send_kvec() local 180 rc = kernel_sendmsg(ssocket, &smb_msg, &iov[first_vec], in smb_send_kvec() 182 if (rc == -EAGAIN) { in smb_send_kvec() 187 rc = -EAGAIN; in smb_send_kvec() 194 if (rc < 0) in smb_send_kvec() 198 *sent += rc; in smb_send_kvec() 200 if (rc == remaining) { in smb_send_kvec() 205 if (rc > remaining) { in smb_send_kvec() 206 cifs_dbg(VFS, "sent %d requested %d\n", rc, remaining); in smb_send_kvec() 210 if (rc == 0) { in smb_send_kvec() [all …]
|
D | smb2transport.c | 45 int rc; in smb2_crypto_shash_allocate() local 54 rc = PTR_ERR(server->secmech.hmacsha256); in smb2_crypto_shash_allocate() 56 return rc; in smb2_crypto_shash_allocate() 77 int rc; in smb3_crypto_shash_allocate() local 82 rc = smb2_crypto_shash_allocate(server); in smb3_crypto_shash_allocate() 83 if (rc) in smb3_crypto_shash_allocate() 84 return rc; in smb3_crypto_shash_allocate() 93 rc = PTR_ERR(server->secmech.cmacaes); in smb3_crypto_shash_allocate() 95 return rc; in smb3_crypto_shash_allocate() 138 int i, rc; in smb2_calc_signature() local [all …]
|
D | cifssmb.c | 118 int rc; in cifs_reconnect_tcon() local 181 rc = cifs_negotiate_protocol(0, ses); in cifs_reconnect_tcon() 182 if (rc == 0 && ses->need_reconnect) in cifs_reconnect_tcon() 183 rc = cifs_setup_session(0, ses, nls_codepage); in cifs_reconnect_tcon() 186 if (rc || !tcon->need_reconnect) { in cifs_reconnect_tcon() 192 rc = CIFSTCon(0, ses, tcon->treeName, tcon, nls_codepage); in cifs_reconnect_tcon() 194 cifs_dbg(FYI, "reconnect tcon rc = %d\n", rc); in cifs_reconnect_tcon() 196 if (rc) in cifs_reconnect_tcon() 223 rc = -EAGAIN; in cifs_reconnect_tcon() 227 return rc; in cifs_reconnect_tcon() [all …]
|
D | inode.c | 333 int rc; local 343 rc = CIFSSMBUnixQFileInfo(xid, tcon, cfile->fid.netfid, &find_data); 344 if (!rc) { 346 } else if (rc == -EREMOTE) { 348 rc = 0; 353 return rc; 360 int rc; local 375 rc = CIFSSMBUnixQPathInfo(xid, tcon, full_path, &find_data, 379 if (!rc) { 381 } else if (rc == -EREMOTE) { [all …]
|
D | file.c | 117 int rc; in cifs_posix_open() local 133 rc = PTR_ERR(tlink); in cifs_posix_open() 141 rc = CIFSPOSIXCreate(xid, tcon, posix_flags, mode, pnetfid, presp_data, in cifs_posix_open() 146 if (rc) in cifs_posix_open() 162 rc = -ENOMEM; in cifs_posix_open() 171 return rc; in cifs_posix_open() 179 int rc; in cifs_nt_open() local 236 rc = server->ops->open(xid, &oparms, oplock, buf); in cifs_nt_open() 238 if (rc) in cifs_nt_open() 242 rc = cifs_get_inode_info_unix(&inode, full_path, inode->i_sb, in cifs_nt_open() [all …]
|
D | smb2pdu.c | 147 int rc = 0; in smb2_reconnect() local 158 return rc; in smb2_reconnect() 161 return rc; in smb2_reconnect() 223 return rc; in smb2_reconnect() 232 rc = cifs_negotiate_protocol(0, tcon->ses); in smb2_reconnect() 233 if (!rc && tcon->ses->need_reconnect) in smb2_reconnect() 234 rc = cifs_setup_session(0, tcon->ses, nls_codepage); in smb2_reconnect() 236 if (rc || !tcon->need_reconnect) { in smb2_reconnect() 242 rc = SMB2_tcon(0, tcon->ses, tcon->treeName, tcon, nls_codepage); in smb2_reconnect() 244 cifs_dbg(FYI, "reconnect tcon rc = %d\n", rc); in smb2_reconnect() [all …]
|
D | ioctl.c | 41 int rc; in cifs_ioctl_clone() local 58 rc = mnt_want_write_file(dst_file); in cifs_ioctl_clone() 59 if (rc) { in cifs_ioctl_clone() 60 cifs_dbg(FYI, "mnt_want_write failed with rc %d\n", rc); in cifs_ioctl_clone() 61 return rc; in cifs_ioctl_clone() 66 rc = -EBADF; in cifs_ioctl_clone() 71 rc = -EBADF; in cifs_ioctl_clone() 77 rc = -EBADF; in cifs_ioctl_clone() 82 rc = -EXDEV; in cifs_ioctl_clone() 100 rc = -EINVAL; in cifs_ioctl_clone() [all …]
|
/linux-4.4.14/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 …]
|
D | erst-dbg.c | 42 int rc, *pos; in erst_dbg_open() local 49 rc = erst_get_record_id_begin(pos); in erst_dbg_open() 50 if (rc) in erst_dbg_open() 51 return rc; in erst_dbg_open() 65 int rc; in erst_dbg_ioctl() local 71 rc = copy_from_user(&record_id, (void __user *)arg, in erst_dbg_ioctl() 73 if (rc) in erst_dbg_ioctl() 77 rc = erst_get_record_count(); in erst_dbg_ioctl() 78 if (rc < 0) in erst_dbg_ioctl() 79 return rc; in erst_dbg_ioctl() [all …]
|
D | apei-base.c | 67 int rc; in __apei_exec_read_register() local 69 rc = apei_read(val, &entry->register_region); in __apei_exec_read_register() 70 if (rc) in __apei_exec_read_register() 71 return rc; in __apei_exec_read_register() 81 int rc; in apei_exec_read_register() local 84 rc = __apei_exec_read_register(entry, &val); in apei_exec_read_register() 85 if (rc) in apei_exec_read_register() 86 return rc; in apei_exec_read_register() 96 int rc; in apei_exec_read_register_value() local 98 rc = apei_exec_read_register(ctx, entry); in apei_exec_read_register_value() [all …]
|
D | einj.c | 156 int rc; in __einj_get_available_error_type() local 159 rc = apei_exec_run(&ctx, ACPI_EINJ_GET_ERROR_TYPE); in __einj_get_available_error_type() 160 if (rc) in __einj_get_available_error_type() 161 return rc; in __einj_get_available_error_type() 170 int rc; in einj_get_available_error_type() local 173 rc = __einj_get_available_error_type(type); in einj_get_available_error_type() 176 return rc; in einj_get_available_error_type() 304 int rc = -EIO; in __einj_error_trigger() local 322 rc = einj_check_trigger_header(trigger_tab); in __einj_error_trigger() 323 if (rc) { in __einj_error_trigger() [all …]
|
/linux-4.4.14/fs/dlm/ |
D | rcom.c | 35 struct dlm_rcom *rc; in create_rcom() local 48 rc = (struct dlm_rcom *) mb; in create_rcom() 50 rc->rc_header.h_version = (DLM_HEADER_MAJOR | DLM_HEADER_MINOR); in create_rcom() 51 rc->rc_header.h_lockspace = ls->ls_global_id; in create_rcom() 52 rc->rc_header.h_nodeid = dlm_our_nodeid(); in create_rcom() 53 rc->rc_header.h_length = mb_len; in create_rcom() 54 rc->rc_header.h_cmd = DLM_RCOM; in create_rcom() 56 rc->rc_type = type; in create_rcom() 59 rc->rc_seq = ls->ls_recover_seq; in create_rcom() 63 *rc_ret = rc; in create_rcom() [all …]
|
D | util.c | 134 void dlm_rcom_out(struct dlm_rcom *rc) in dlm_rcom_out() argument 136 header_out(&rc->rc_header); in dlm_rcom_out() 138 rc->rc_type = cpu_to_le32(rc->rc_type); in dlm_rcom_out() 139 rc->rc_result = cpu_to_le32(rc->rc_result); in dlm_rcom_out() 140 rc->rc_id = cpu_to_le64(rc->rc_id); in dlm_rcom_out() 141 rc->rc_seq = cpu_to_le64(rc->rc_seq); in dlm_rcom_out() 142 rc->rc_seq_reply = cpu_to_le64(rc->rc_seq_reply); in dlm_rcom_out() 145 void dlm_rcom_in(struct dlm_rcom *rc) in dlm_rcom_in() argument 147 header_in(&rc->rc_header); in dlm_rcom_in() 149 rc->rc_type = le32_to_cpu(rc->rc_type); in dlm_rcom_in() [all …]
|
/linux-4.4.14/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 …]
|
/linux-4.4.14/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 …]
|
/linux-4.4.14/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 …]
|
D | tpm2-cmd.c | 251 int rc; in tpm2_pcr_read() local 267 rc = tpm_transmit_cmd(chip, &cmd, sizeof(cmd), in tpm2_pcr_read() 269 if (rc == 0) { in tpm2_pcr_read() 274 return rc; in tpm2_pcr_read() 300 int rc; in tpm2_pcr_extend() local 315 rc = tpm_transmit_cmd(chip, &cmd, sizeof(cmd), in tpm2_pcr_extend() 318 return rc; in tpm2_pcr_extend() 432 int rc; in tpm2_seal_trusted() local 434 rc = tpm_buf_init(&buf, TPM2_ST_SESSIONS, TPM2_CC_CREATE); in tpm2_seal_trusted() 435 if (rc) in tpm2_seal_trusted() [all …]
|
D | tpm-sysfs.c | 36 int i, rc; in pubek_show() local 82 rc = str - buf; in pubek_show() 83 return rc; in pubek_show() 92 ssize_t rc; in pcrs_show() local 97 rc = tpm_getcap(dev, TPM_CAP_PROP_PCR, &cap, in pcrs_show() 99 if (rc) in pcrs_show() 104 rc = tpm_pcr_read_dev(chip, i, digest); in pcrs_show() 105 if (rc) in pcrs_show() 120 ssize_t rc; in enabled_show() local 122 rc = tpm_getcap(dev, TPM_CAP_FLAG_PERM, &cap, in enabled_show() [all …]
|
D | tpm_i2c_nuvoton.c | 180 s32 rc; in i2c_nuvoton_wait_for_stat() local 185 rc = wait_event_interruptible_timeout(*queue, in i2c_nuvoton_wait_for_stat() 188 if (rc > 0) in i2c_nuvoton_wait_for_stat() 234 s32 rc; in i2c_nuvoton_recv_data() local 249 rc = i2c_nuvoton_read_buf(client, TPM_DATA_FIFO_R, in i2c_nuvoton_recv_data() 251 if (rc < 0) { in i2c_nuvoton_recv_data() 254 __func__, rc); in i2c_nuvoton_recv_data() 269 s32 rc; in i2c_nuvoton_recv() local 317 rc = i2c_nuvoton_recv_data(client, chip, &buf[size], in i2c_nuvoton_recv() 319 size += rc; in i2c_nuvoton_recv() [all …]
|
D | tpm-interface.c | 334 ssize_t rc; in tpm_transmit() local 353 rc = chip->ops->send(chip, (u8 *) buf, count); in tpm_transmit() 354 if (rc < 0) { in tpm_transmit() 356 "tpm_transmit: tpm_send: error %zd\n", rc); in tpm_transmit() 375 rc = -ECANCELED; in tpm_transmit() 385 rc = -ETIME; in tpm_transmit() 389 rc = chip->ops->recv(chip, (u8 *) buf, bufsiz); in tpm_transmit() 390 if (rc < 0) in tpm_transmit() 392 "tpm_transmit: tpm_recv: error %zd\n", rc); in tpm_transmit() 395 return rc; in tpm_transmit() [all …]
|
D | tpm-chip.c | 147 int rc; in tpm_add_char_device() local 149 rc = cdev_add(&chip->cdev, chip->dev.devt, 1); in tpm_add_char_device() 150 if (rc) { in tpm_add_char_device() 154 MINOR(chip->dev.devt), rc); in tpm_add_char_device() 156 return rc; in tpm_add_char_device() 159 rc = device_add(&chip->dev); in tpm_add_char_device() 160 if (rc) { in tpm_add_char_device() 164 MINOR(chip->dev.devt), rc); in tpm_add_char_device() 167 return rc; in tpm_add_char_device() 170 return rc; in tpm_add_char_device() [all …]
|
/linux-4.4.14/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 …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/ptlrpc/ |
D | ptlrpc_module.c | 53 int rc, cleanup_phase = 0; in ptlrpc_init() local 64 rc = req_layout_init(); in ptlrpc_init() 65 if (rc) in ptlrpc_init() 66 return rc; in ptlrpc_init() 68 rc = ptlrpc_hr_init(); in ptlrpc_init() 69 if (rc) in ptlrpc_init() 70 return rc; in ptlrpc_init() 73 rc = ptlrpc_request_cache_init(); in ptlrpc_init() 74 if (rc) in ptlrpc_init() 78 rc = ptlrpc_init_portals(); in ptlrpc_init() [all …]
|
D | ptlrpcd.c | 206 int rc = 0; in ptlrpcd_steal_rqset() local 217 rc = atomic_read(&src->set_new_count); in ptlrpcd_steal_rqset() 218 atomic_add(rc, &des->set_remaining); in ptlrpcd_steal_rqset() 222 return rc; in ptlrpcd_steal_rqset() 282 int rc = 0; in ptlrpcd_check() local 296 rc = 1; in ptlrpcd_check() 317 return rc; in ptlrpcd_check() 321 rc |= ptlrpc_check_set(env, set); in ptlrpcd_check() 335 if (rc == 0) { in ptlrpcd_check() 339 rc = atomic_read(&set->set_new_count); in ptlrpcd_check() [all …]
|
D | niobuf.c | 55 int rc; in ptl_send_buf() local 75 rc = LNetMDBind(md, LNET_UNLINK, mdh); in ptl_send_buf() 76 if (unlikely(rc != 0)) { in ptl_send_buf() 77 CERROR("LNetMDBind failed: %d\n", rc); in ptl_send_buf() 78 LASSERT(rc == -ENOMEM); in ptl_send_buf() 85 rc = LNetPut(conn->c_self, *mdh, ack, in ptl_send_buf() 87 if (unlikely(rc != 0)) { in ptl_send_buf() 93 libcfs_id2str(conn->c_peer), portal, xid, rc); in ptl_send_buf() 117 int rc = 0; in ptlrpc_register_bulk() local 178 rc = LNetMEAttach(desc->bd_portal, peer, xid, 0, in ptlrpc_register_bulk() [all …]
|
/linux-4.4.14/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 …]
|
D | mdc_reint.c | 51 int rc; in mdc_reint() local 56 rc = ptlrpc_queue_wait(request); in mdc_reint() 58 if (rc) in mdc_reint() 59 CDEBUG(D_INFO, "error in handling %d\n", rc); in mdc_reint() 61 rc = -EPROTO; in mdc_reint() 63 return rc; in mdc_reint() 111 int count = 0, rc; in mdc_setattr() local 137 rc = mdc_prep_elc_req(exp, req, MDS_REINT, &cancels, count); in mdc_setattr() 138 if (rc) { in mdc_setattr() 140 return rc; in mdc_setattr() [all …]
|
D | mdc_locks.c | 160 ldlm_mode_t rc; in mdc_lock_match() local 165 rc = ldlm_lock_match(class_exp2obd(exp)->obd_namespace, flags, in mdc_lock_match() 167 return rc; in mdc_lock_match() 179 int rc; in mdc_cancel_unused() local 182 rc = ldlm_cli_cancel_unused_resource(obd->obd_namespace, &res_id, in mdc_cancel_unused() 184 return rc; in mdc_cancel_unused() 219 int rc = 0; in mdc_find_cbdata() local 222 rc = ldlm_resource_iterate(class_exp2obd(exp)->obd_namespace, &res_id, in mdc_find_cbdata() 224 if (rc == LDLM_ITER_STOP) in mdc_find_cbdata() 226 else if (rc == LDLM_ITER_CONTINUE) in mdc_find_cbdata() [all …]
|
/linux-4.4.14/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 …]
|
D | conctl.c | 52 int rc; in lst_session_new_ioctl() local 74 rc = lstcon_session_new(name, in lst_session_new_ioctl() 82 return rc; in lst_session_new_ioctl() 121 int rc; in lst_debug_ioctl() local 149 rc = -EINVAL; in lst_debug_ioctl() 153 rc = lstcon_session_debug(args->lstio_dbg_timeout, in lst_debug_ioctl() 163 rc = lstcon_batch_debug(args->lstio_dbg_timeout, in lst_debug_ioctl() 171 rc = lstcon_group_debug(args->lstio_dbg_timeout, in lst_debug_ioctl() 180 rc = lstcon_nodes_debug(args->lstio_dbg_timeout, in lst_debug_ioctl() 194 return rc; in lst_debug_ioctl() [all …]
|
/linux-4.4.14/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 …]
|
/linux-4.4.14/arch/powerpc/platforms/pseries/ |
D | dlpar.c | 145 int rc = -1; in dlpar_configure_connector() local 167 rc = rtas_call(cc_token, 2, 1, NULL, rtas_data_buf, NULL); in dlpar_configure_connector() 172 switch (rc) { in dlpar_configure_connector() 231 "returned from configure-connector\n", rc); in dlpar_configure_connector() 234 } while (rc); in dlpar_configure_connector() 239 if (rc) { in dlpar_configure_connector() 251 int rc; in dlpar_attach_node() local 257 rc = of_attach_node(dn); in dlpar_attach_node() 258 if (rc) { in dlpar_attach_node() 261 return rc; in dlpar_attach_node() [all …]
|
D | suspend.c | 47 long vasi_state, rc; in pseries_suspend_begin() local 51 rc = plpar_hcall(H_VASI_STATE, retbuf, stream_id); in pseries_suspend_begin() 55 if (rc) { in pseries_suspend_begin() 56 pr_err("pseries_suspend_begin: vasi_state returned %ld\n",rc); in pseries_suspend_begin() 57 return rc; in pseries_suspend_begin() 107 int rc = rtas_suspend_last_cpu(&suspend_data); in pseries_suspend_enter() local 111 return rc; in pseries_suspend_enter() 149 int rc; in store_hibernate() local 160 rc = pseries_suspend_begin(PM_SUSPEND_MEM); in store_hibernate() 161 if (rc == -EAGAIN) in store_hibernate() [all …]
|
D | mobility.c | 45 int rc; in mobility_rtas_call() local 50 rc = rtas_call(token, 2, 1, NULL, rtas_data_buf, scope); in mobility_rtas_call() 54 return rc; in mobility_rtas_call() 135 int i, rc, rtas_rc; in update_dt_node() local 200 rc = update_dt_property(dn, &prop, prop_name, in update_dt_node() 202 if (rc) { in update_dt_node() 221 int rc; in add_dt_node() local 231 rc = dlpar_attach_node(dn); in add_dt_node() 232 if (rc) in add_dt_node() 236 return rc; in add_dt_node() [all …]
|
D | hotplug-memory.c | 194 int rc = 1; in lmb_is_removable() local 210 rc &= is_mem_section_removable(pfn, PAGES_PER_SECTION); in lmb_is_removable() 214 return rc ? true : false; in lmb_is_removable() 223 int nid, rc; in dlpar_remove_lmb() local 232 rc = device_offline(&mem_block->dev); in dlpar_remove_lmb() 234 if (rc) in dlpar_remove_lmb() 235 return rc; in dlpar_remove_lmb() 258 int i, rc; in dlpar_memory_remove_by_count() local 279 rc = dlpar_remove_lmb(&lmbs[i]); in dlpar_memory_remove_by_count() 280 if (rc) in dlpar_memory_remove_by_count() [all …]
|
/linux-4.4.14/drivers/reset/ |
D | reset-lpc18xx.c | 76 struct lpc18xx_rgu_data *rc = to_rgu_data(rcdev); in lpc18xx_rgu_setclear_reset() local 86 spin_lock_irqsave(&rc->lock, flags); in lpc18xx_rgu_setclear_reset() 87 stat = ~readl(rc->base + stat_offset); in lpc18xx_rgu_setclear_reset() 89 writel(stat | rst_bit, rc->base + ctrl_offset); in lpc18xx_rgu_setclear_reset() 91 writel(stat & ~rst_bit, rc->base + ctrl_offset); in lpc18xx_rgu_setclear_reset() 92 spin_unlock_irqrestore(&rc->lock, flags); in lpc18xx_rgu_setclear_reset() 113 struct lpc18xx_rgu_data *rc = to_rgu_data(rcdev); in lpc18xx_rgu_reset() local 116 udelay(rc->delay_us); in lpc18xx_rgu_reset() 130 struct lpc18xx_rgu_data *rc = to_rgu_data(rcdev); in lpc18xx_rgu_status() local 136 return !(readl(rc->base + offset) & bit); in lpc18xx_rgu_status() [all …]
|
/linux-4.4.14/arch/s390/kvm/ |
D | sigp.c | 28 int rc; in __sigp_sense() local 36 rc = SIGP_CC_ORDER_CODE_ACCEPTED; in __sigp_sense() 43 rc = SIGP_CC_STATUS_STORED; in __sigp_sense() 47 rc); in __sigp_sense() 48 return rc; in __sigp_sense() 58 int rc = 0; in __inject_sigp_emergency() local 60 rc = kvm_s390_inject_vcpu(dst_vcpu, &irq); in __inject_sigp_emergency() 61 if (!rc) in __inject_sigp_emergency() 65 return rc ? rc : SIGP_CC_ORDER_CODE_ACCEPTED; in __inject_sigp_emergency() 107 int rc; in __sigp_external_call() local [all …]
|
D | intercept.c | 72 int rc = 0; in handle_stop() local 92 rc = kvm_s390_vcpu_store_status(vcpu, in handle_stop() 94 if (rc) in handle_stop() 95 return rc; in handle_stop() 195 int rc; in handle_itdb() local 202 rc = write_guest_lc(vcpu, __LC_PGM_TDB, itdb, sizeof(*itdb)); in handle_itdb() 203 if (rc) in handle_itdb() 204 return rc; in handle_itdb() 216 int rc; in handle_prog() local 229 rc = read_guest_lc(vcpu, __LC_PGM_NEW_PSW, &psw, sizeof(psw_t)); in handle_prog() [all …]
|
/linux-4.4.14/security/selinux/ |
D | netlabel.c | 60 int rc; in selinux_netlbl_sidlookup_cached() local 62 rc = security_netlbl_secattr_to_sid(secattr, sid); in selinux_netlbl_sidlookup_cached() 63 if (rc == 0 && in selinux_netlbl_sidlookup_cached() 68 return rc; in selinux_netlbl_sidlookup_cached() 83 int rc; in selinux_netlbl_sock_genattr() local 93 rc = security_netlbl_sid_to_secattr(sksec->sid, secattr); in selinux_netlbl_sock_genattr() 94 if (rc != 0) { in selinux_netlbl_sock_genattr() 206 int rc; in selinux_netlbl_skbuff_getsid() local 215 rc = netlbl_skbuff_getattr(skb, family, &secattr); in selinux_netlbl_skbuff_getsid() 216 if (rc == 0 && secattr.flags != NETLBL_SECATTR_NONE) in selinux_netlbl_skbuff_getsid() [all …]
|
/linux-4.4.14/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 …]
|
/linux-4.4.14/drivers/ata/ |
D | libahci_platform.c | 51 int rc, i; in ahci_platform_enable_phys() local 54 rc = phy_init(hpriv->phys[i]); in ahci_platform_enable_phys() 55 if (rc) in ahci_platform_enable_phys() 58 rc = phy_power_on(hpriv->phys[i]); in ahci_platform_enable_phys() 59 if (rc) { in ahci_platform_enable_phys() 72 return rc; in ahci_platform_enable_phys() 104 int c, rc; in ahci_platform_enable_clks() local 107 rc = clk_prepare_enable(hpriv->clks[c]); in ahci_platform_enable_clks() 108 if (rc) in ahci_platform_enable_clks() 116 return rc; in ahci_platform_enable_clks() [all …]
|
/linux-4.4.14/drivers/media/usb/au0828/ |
D | au0828-input.c | 36 struct rc_dev *rc; member 56 int rc; in au8522_rc_write() local 61 rc = i2c_transfer(ir->dev->i2c_client.adapter, &msg, 1); in au8522_rc_write() 63 if (rc < 0) in au8522_rc_write() 64 return rc; in au8522_rc_write() 66 return (rc == 1) ? 0 : -EIO; in au8522_rc_write() 72 int rc; in au8522_rc_read() local 86 rc = i2c_transfer(ir->dev->i2c_client.adapter, msg, 2); in au8522_rc_read() 88 if (rc < 0) in au8522_rc_read() 89 return rc; in au8522_rc_read() [all …]
|
/linux-4.4.14/arch/s390/oprofile/ |
D | hwsampler.c | 33 signed int rc; member 70 ep->rc = qsi(ep->buffer); in execute_qsi() 77 ep->rc = lsctl(ep->buffer); in execute_ssctl() 82 int rc; in smp_ctl_ssctl_stop() local 93 rc = ep.rc; in smp_ctl_ssctl_stop() 94 if (rc) { in smp_ctl_ssctl_stop() 107 return rc; in smp_ctl_ssctl_stop() 112 int rc; in smp_ctl_ssctl_deactivate() local 123 rc = ep.rc; in smp_ctl_ssctl_deactivate() 124 if (rc) in smp_ctl_ssctl_deactivate() [all …]
|
/linux-4.4.14/drivers/rtc/ |
D | rtc-pm8xxx.c | 83 int rc, i; in pm8xxx_rtc_set_time() local 104 rc = regmap_read(rtc_dd->regmap, regs->ctrl, &ctrl_reg); in pm8xxx_rtc_set_time() 105 if (rc) in pm8xxx_rtc_set_time() 111 rc = regmap_write(rtc_dd->regmap, regs->ctrl, ctrl_reg); in pm8xxx_rtc_set_time() 112 if (rc) { in pm8xxx_rtc_set_time() 119 rc = regmap_write(rtc_dd->regmap, regs->write, 0); in pm8xxx_rtc_set_time() 120 if (rc) { in pm8xxx_rtc_set_time() 126 rc = regmap_bulk_write(rtc_dd->regmap, regs->write + 1, in pm8xxx_rtc_set_time() 128 if (rc) { in pm8xxx_rtc_set_time() 134 rc = regmap_write(rtc_dd->regmap, regs->write, value[0]); in pm8xxx_rtc_set_time() [all …]
|
D | rtc-opal.c | 60 long rc = OPAL_BUSY; in opal_get_rtc_time() local 66 while (rc == OPAL_BUSY || rc == OPAL_BUSY_EVENT) { in opal_get_rtc_time() 67 rc = opal_rtc_read(&__y_m_d, &__h_m_s_ms); in opal_get_rtc_time() 68 if (rc == OPAL_BUSY_EVENT) in opal_get_rtc_time() 74 if (rc != OPAL_SUCCESS) in opal_get_rtc_time() 86 long rc = OPAL_BUSY; in opal_set_rtc_time() local 91 while (rc == OPAL_BUSY || rc == OPAL_BUSY_EVENT) { in opal_set_rtc_time() 92 rc = opal_rtc_write(y_m_d, h_m_s_ms); in opal_set_rtc_time() 93 if (rc == OPAL_BUSY_EVENT) in opal_set_rtc_time() 99 return rc == OPAL_SUCCESS ? 0 : -EIO; in opal_set_rtc_time() [all …]
|
/linux-4.4.14/security/integrity/ima/ |
D | ima_crypto.c | 72 long rc; in ima_init_crypto() local 76 rc = PTR_ERR(ima_shash_tfm); in ima_init_crypto() 78 hash_algo_name[ima_hash_algo], rc); in ima_init_crypto() 79 return rc; in ima_init_crypto() 87 int rc; in ima_alloc_tfm() local 95 rc = PTR_ERR(tfm); in ima_alloc_tfm() 97 hash_algo_name[algo], rc); in ima_alloc_tfm() 174 int rc; in ima_alloc_atfm() local 185 rc = PTR_ERR(tfm); in ima_alloc_atfm() 187 hash_algo_name[algo], rc); in ima_alloc_atfm() [all …]
|
D | ima_init.c | 109 int rc; in ima_init() local 112 rc = tpm_pcr_read(TPM_ANY_NUM, 0, pcr_i); in ima_init() 113 if (rc == 0) in ima_init() 119 rc = ima_init_keyring(INTEGRITY_KEYRING_IMA); in ima_init() 120 if (rc) in ima_init() 121 return rc; in ima_init() 123 rc = ima_init_crypto(); in ima_init() 124 if (rc) in ima_init() 125 return rc; in ima_init() 126 rc = ima_init_template(); in ima_init() [all …]
|
/linux-4.4.14/drivers/misc/mic/cosm/ |
D | cosm_scif_server.c | 139 int rc; in cosm_scif_recv() local 142 rc = scif_recv(cdev->epd, &msg, sizeof(msg), 0); in cosm_scif_recv() 143 if (!rc) { in cosm_scif_recv() 145 } else if (rc < 0) { in cosm_scif_recv() 147 __func__, __LINE__, rc); in cosm_scif_recv() 151 __func__, __LINE__, rc, msg.id); in cosm_scif_recv() 180 int rc; in cosm_send_time() local 183 rc = scif_send(cdev->epd, &msg, sizeof(msg), SCIF_SEND_BLOCK); in cosm_send_time() 184 if (rc < 0) in cosm_send_time() 186 __func__, __LINE__, rc); in cosm_send_time() [all …]
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
D | ef10_sriov.c | 36 int rc; in efx_ef10_vswitch_alloc() local 45 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_VSWITCH_ALLOC, inbuf, sizeof(inbuf), in efx_ef10_vswitch_alloc() 49 if (rc == -EPROTO) { in efx_ef10_vswitch_alloc() 51 rc = efx_mcdi_rpc(efx, MC_CMD_VSWITCH_ALLOC, inbuf, in efx_ef10_vswitch_alloc() 53 } else if (rc) { in efx_ef10_vswitch_alloc() 56 NULL, 0, rc); in efx_ef10_vswitch_alloc() 58 return rc; in efx_ef10_vswitch_alloc() 80 int rc; in efx_ef10_vport_alloc() local 94 rc = efx_mcdi_rpc(efx, MC_CMD_VPORT_ALLOC, inbuf, sizeof(inbuf), in efx_ef10_vport_alloc() 96 if (rc) in efx_ef10_vport_alloc() [all …]
|
D | mcdi.c | 69 int rc = -ENOMEM; in efx_mcdi_init() local 97 rc = efx_mcdi_handle_assertion(efx); in efx_mcdi_init() 98 if (rc) in efx_mcdi_init() 104 rc = efx_mcdi_drv_attach(efx, true, &already_attached); in efx_mcdi_init() 105 if (rc) { in efx_mcdi_init() 128 return rc; in efx_mcdi_init() 355 int rc; in efx_mcdi_poll() local 358 rc = efx_mcdi_poll_reboot(efx); in efx_mcdi_poll() 359 if (rc) { in efx_mcdi_poll() 361 mcdi->resprc = rc; in efx_mcdi_poll() [all …]
|
D | efx.c | 363 int rc; in efx_init_eventq() local 370 rc = efx_nic_init_eventq(channel); in efx_init_eventq() 371 if (rc == 0) { in efx_init_eventq() 376 return rc; in efx_init_eventq() 505 int rc; in efx_probe_channel() local 510 rc = channel->type->pre_probe(channel); in efx_probe_channel() 511 if (rc) in efx_probe_channel() 514 rc = efx_probe_eventq(channel); in efx_probe_channel() 515 if (rc) in efx_probe_channel() 519 rc = efx_probe_tx_queue(tx_queue); in efx_probe_channel() [all …]
|
D | ef10.c | 121 int rc; in efx_ef10_get_pf_index() local 123 rc = efx_mcdi_rpc(efx, MC_CMD_GET_FUNCTION_INFO, NULL, 0, outbuf, in efx_ef10_get_pf_index() 125 if (rc) in efx_ef10_get_pf_index() 126 return rc; in efx_ef10_get_pf_index() 140 int rc; in efx_ef10_get_vf_index() local 142 rc = efx_mcdi_rpc(efx, MC_CMD_GET_FUNCTION_INFO, NULL, 0, outbuf, in efx_ef10_get_vf_index() 144 if (rc) in efx_ef10_get_vf_index() 145 return rc; in efx_ef10_get_vf_index() 159 int rc; in efx_ef10_init_datapath_caps() local 163 rc = efx_mcdi_rpc(efx, MC_CMD_GET_CAPABILITIES, NULL, 0, in efx_ef10_init_datapath_caps() [all …]
|
D | mcdi_port.c | 41 int rc; in efx_mcdi_get_phy_cfg() local 46 rc = efx_mcdi_rpc(efx, MC_CMD_GET_PHY_CFG, NULL, 0, in efx_mcdi_get_phy_cfg() 48 if (rc) in efx_mcdi_get_phy_cfg() 52 rc = -EIO; in efx_mcdi_get_phy_cfg() 73 netif_err(efx, hw, efx->net_dev, "%s: failed rc=%d\n", __func__, rc); in efx_mcdi_get_phy_cfg() 74 return rc; in efx_mcdi_get_phy_cfg() 82 int rc; in efx_mcdi_set_link() local 91 rc = efx_mcdi_rpc(efx, MC_CMD_SET_LINK, inbuf, sizeof(inbuf), in efx_mcdi_set_link() 93 return rc; in efx_mcdi_set_link() 100 int rc; in efx_mcdi_loopback_modes() local [all …]
|
/linux-4.4.14/drivers/s390/char/ |
D | sclp_cpi_sys.c | 129 int rc; in cpi_req() local 132 rc = sclp_register(&sclp_cpi_event); in cpi_req() 133 if (rc) in cpi_req() 136 rc = -EOPNOTSUPP; in cpi_req() 142 rc = PTR_ERR(req); in cpi_req() 150 rc = sclp_add_request(req); in cpi_req() 151 if (rc) in cpi_req() 159 rc = -EIO; in cpi_req() 167 rc = -EIO; in cpi_req() 177 return rc; in cpi_req() [all …]
|
D | vmur.c | 272 int rc; in do_ur_io() local 278 rc = mutex_lock_interruptible(&urd->io_mutex); in do_ur_io() 279 if (rc) in do_ur_io() 280 return rc; in do_ur_io() 285 rc = ccw_device_start(cdev, cpa, 1, 0, 0); in do_ur_io() 288 TRACE("do_ur_io: ccw_device_start returned %d\n", rc); in do_ur_io() 289 if (rc) in do_ur_io() 294 rc = 0; in do_ur_io() 298 return rc; in do_ur_io() 337 int rc; in ur_attr_reclen_show() local [all …]
|
D | tape_char.c | 133 int rc; in tapechar_read() local 159 rc = tapechar_check_idalbuffer(device, block_size); in tapechar_read() 160 if (rc) in tapechar_read() 161 return rc; in tapechar_read() 169 rc = tape_do_io(device, request); in tapechar_read() 170 if (rc == 0) { in tapechar_read() 171 rc = block_size - request->rescnt; in tapechar_read() 172 DBF_EVENT(6, "TCHAR:rbytes: %x\n", rc); in tapechar_read() 175 data, rc) != 0) in tapechar_read() 176 rc = -EFAULT; in tapechar_read() [all …]
|
D | sclp_cmd.c | 48 int rc; in sclp_sync_request_timeout() local 63 rc = sclp_add_request(request); in sclp_sync_request_timeout() 64 if (rc) in sclp_sync_request_timeout() 72 rc = -EIO; in sclp_sync_request_timeout() 76 return rc; in sclp_sync_request_timeout() 111 int rc; in sclp_get_core_info() local 120 rc = sclp_sync_request_timeout(SCLP_CMDW_READ_CPU_INFO, sccb, in sclp_get_core_info() 122 if (rc) in sclp_get_core_info() 127 rc = -EIO; in sclp_get_core_info() 133 return rc; in sclp_get_core_info() [all …]
|
D | fs3270.c | 66 int rc; in fs3270_do_io() local 75 rc = wait_event_interruptible(fp->wait, in fs3270_do_io() 77 if (rc != 0) in fs3270_do_io() 80 rc = raw3270_start(view, rq); in fs3270_do_io() 81 if (rc == 0) { in fs3270_do_io() 85 } while (rc == -EACCES); in fs3270_do_io() 86 return rc; in fs3270_do_io() 108 if (rq->rc != 0 || rq->rescnt != 0) { in fs3270_restore_callback() 122 int rc; in fs3270_activate() local 151 rc = fp->init->rc = raw3270_start_locked(view, fp->init); in fs3270_activate() [all …]
|
D | monreader.c | 152 int rc; in mon_send_reply() local 154 rc = iucv_message_reply(monpriv->path, &monmsg->msg, in mon_send_reply() 165 if (rc) { in mon_send_reply() 166 pr_err("Reading monitor data failed with rc=%i\n", rc); in mon_send_reply() 280 int rc; in mon_open() local 285 rc = -EBUSY; in mon_open() 289 rc = -ENOMEM; in mon_open() 300 rc = iucv_path_connect(monpriv->path, &monreader_iucv_handler, in mon_open() 302 if (rc) { in mon_open() 304 "failed with rc=%i\n", rc); in mon_open() [all …]
|
D | sclp_async.c | 71 int len, rc; in proc_handler_callhome() local 80 rc = copy_to_user(buffer, buf, sizeof(buf)); in proc_handler_callhome() 81 if (rc != 0) in proc_handler_callhome() 85 rc = kstrtoul_from_user(buffer, len, 0, &val); in proc_handler_callhome() 86 if (rc) in proc_handler_callhome() 87 return rc; in proc_handler_callhome() 123 int rc; in sclp_async_send_wait() local 145 rc = sclp_add_request(request); in sclp_async_send_wait() 146 if (rc) in sclp_async_send_wait() 147 return rc; in sclp_async_send_wait() [all …]
|
D | sclp.c | 67 int pages, rc; in sclp_setup_console_pages() local 69 rc = kstrtoint(str, 0, &pages); in sclp_setup_console_pages() 70 if (!rc && pages >= SCLP_CONSOLE_PAGES) in sclp_setup_console_pages() 79 int drop, rc; in sclp_setup_console_drop() local 81 rc = kstrtoint(str, 0, &drop); in sclp_setup_console_drop() 82 if (!rc) in sclp_setup_console_drop() 297 int rc; in __sclp_start_request() local 302 rc = sclp_service_call(req->command, req->sccb); in __sclp_start_request() 305 if (rc == 0) { in __sclp_start_request() 312 } else if (rc == -EBUSY) { in __sclp_start_request() [all …]
|
D | tape_core.c | 133 ssize_t rc; in tape_operation_show() local 141 rc = scnprintf(buf, PAGE_SIZE, "---\n"); in tape_operation_show() 147 rc = scnprintf(buf,PAGE_SIZE, "%s\n", tape_op_verbose[req->op]); in tape_operation_show() 150 return rc; in tape_operation_show() 294 int rc; in __tape_cancel_io() local 300 rc = 0; in __tape_cancel_io() 302 rc = ccw_device_clear(device->cdev, (long) request); in __tape_cancel_io() 304 switch (rc) { in __tape_cancel_io() 323 return rc; in __tape_cancel_io() 375 int rc; in tape_generic_online() local [all …]
|
/linux-4.4.14/arch/s390/pci/ |
D | pci_clp.c | 19 static inline void zpci_err_clp(unsigned int rsp, int rc) in zpci_err_clp() argument 23 int rc; in zpci_err_clp() member 24 } __packed data = {rsp, rc}; in zpci_err_clp() 81 int rc; in clp_query_pci_fngrp() local 93 rc = clp_instr(rrb); in clp_query_pci_fngrp() 94 if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) in clp_query_pci_fngrp() 98 zpci_err_clp(rrb->response.hdr.rsp, rc); in clp_query_pci_fngrp() 99 rc = -EIO; in clp_query_pci_fngrp() 102 return rc; in clp_query_pci_fngrp() 134 int rc; in clp_query_pci_fn() local [all …]
|
/linux-4.4.14/drivers/video/backlight/ |
D | pm8941-wled.c | 94 int rc; in pm8941_wled_update_status() local 105 rc = regmap_update_bits(wled->regmap, in pm8941_wled_update_status() 108 if (rc) in pm8941_wled_update_status() 109 return rc; in pm8941_wled_update_status() 114 rc = regmap_bulk_write(wled->regmap, in pm8941_wled_update_status() 117 if (rc) in pm8941_wled_update_status() 118 return rc; in pm8941_wled_update_status() 121 rc = regmap_update_bits(wled->regmap, in pm8941_wled_update_status() 124 if (rc) in pm8941_wled_update_status() 125 return rc; in pm8941_wled_update_status() [all …]
|
D | tps65217_bl.c | 37 int rc; in tps65217_bl_enable() local 39 rc = tps65217_set_bits(tps65217_bl->tps, TPS65217_REG_WLEDCTRL1, in tps65217_bl_enable() 42 if (rc) { in tps65217_bl_enable() 44 "failed to enable backlight: %d\n", rc); in tps65217_bl_enable() 45 return rc; in tps65217_bl_enable() 57 int rc; in tps65217_bl_disable() local 59 rc = tps65217_clear_bits(tps65217_bl->tps, in tps65217_bl_disable() 63 if (rc) { in tps65217_bl_disable() 65 "failed to disable backlight: %d\n", rc); in tps65217_bl_disable() 66 return rc; in tps65217_bl_disable() [all …]
|
D | lcd.c | 95 int rc; in lcd_power_show() local 100 rc = sprintf(buf, "%d\n", ld->ops->get_power(ld)); in lcd_power_show() 102 rc = -ENXIO; in lcd_power_show() 105 return rc; in lcd_power_show() 111 int rc; in lcd_power_store() local 115 rc = kstrtoul(buf, 0, &power); in lcd_power_store() 116 if (rc) in lcd_power_store() 117 return rc; in lcd_power_store() 119 rc = -ENXIO; in lcd_power_store() 125 rc = count; in lcd_power_store() [all …]
|
/linux-4.4.14/Documentation/ia64/ |
D | aliasing-test.c | 29 int fd, rc; in map_mem() local 40 rc = ioctl(fd, PCIIOC_MMAP_IS_MEM); in map_mem() 41 if (rc == -1) in map_mem() 55 rc = munmap(addr, length); in map_mem() 56 if (rc == -1) { in map_mem() 69 int i, n, r, rc = 0, result = 0; in scan_tree() local 92 rc = map_mem(path2, offset, length, touch); in scan_tree() 93 if (rc == 0) in scan_tree() 95 else if (rc > 0) in scan_tree() 99 return rc; in scan_tree() [all …]
|
/linux-4.4.14/drivers/power/reset/ |
D | brcmstb-reboot.c | 48 int rc; in brcmstb_restart_handler() local 51 rc = regmap_write(regmap, rst_src_en, reset_masks->rst_src_en_mask); in brcmstb_restart_handler() 52 if (rc) { in brcmstb_restart_handler() 53 pr_err("failed to write rst_src_en (%d)\n", rc); in brcmstb_restart_handler() 57 rc = regmap_read(regmap, rst_src_en, &tmp); in brcmstb_restart_handler() 58 if (rc) { in brcmstb_restart_handler() 59 pr_err("failed to read rst_src_en (%d)\n", rc); in brcmstb_restart_handler() 63 rc = regmap_write(regmap, sw_mstr_rst, reset_masks->sw_mstr_rst_mask); in brcmstb_restart_handler() 64 if (rc) { in brcmstb_restart_handler() 65 pr_err("failed to write sw_mstr_rst (%d)\n", rc); in brcmstb_restart_handler() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/lmv/ |
D | lmv_obd.c | 82 int rc = 0; in lmv_set_mdc_active() local 101 rc = -EINVAL; in lmv_set_mdc_active() 107 rc = -ENOTCONN; in lmv_set_mdc_active() 128 return rc; in lmv_set_mdc_active() 144 int rc = 0; in lmv_notify() local 159 rc = lmv_set_mdc_active(lmv, uuid, in lmv_notify() 161 if (rc) { in lmv_notify() 164 uuid->uuid, rc); in lmv_notify() 165 return rc; in lmv_notify() 188 rc = obd_notify(obd->obd_observer, watched, ev, data); in lmv_notify() [all …]
|
D | lmv_intent.c | 69 int rc = 0; in lmv_intent_remote() local 98 rc = PTR_ERR(tgt); in lmv_intent_remote() 104 rc = -ENOMEM; in lmv_intent_remote() 125 rc = md_intent_lock(tgt->ltd_exp, op_data, lmm, lmmsize, it, in lmv_intent_remote() 127 if (rc) in lmv_intent_remote() 147 if (rc && pmode) in lmv_intent_remote() 152 return rc; in lmv_intent_remote() 169 int rc; in lmv_intent_open() local 184 rc = lmv_fid_alloc(exp, &op_data->op_fid2, op_data); in lmv_intent_open() 185 if (rc != 0) in lmv_intent_open() [all …]
|
/linux-4.4.14/drivers/clk/ |
D | clk-conf.c | 20 int index, rc, num_parents; in __set_clk_parents() local 30 rc = of_parse_phandle_with_args(node, "assigned-clock-parents", in __set_clk_parents() 32 if (rc < 0) { in __set_clk_parents() 34 if (rc == -ENOENT) in __set_clk_parents() 37 return rc; in __set_clk_parents() 48 rc = of_parse_phandle_with_args(node, "assigned-clocks", in __set_clk_parents() 50 if (rc < 0) in __set_clk_parents() 53 rc = 0; in __set_clk_parents() 60 rc = PTR_ERR(clk); in __set_clk_parents() 64 rc = clk_set_parent(clk, pclk); in __set_clk_parents() [all …]
|
/linux-4.4.14/drivers/net/wireless/ath/wil6210/ |
D | pcie_bus.c | 63 int rc; in wil_if_pcie_enable() local 86 rc = -ENODEV; in wil_if_pcie_enable() 90 rc = wil6210_init_irq(wil, pdev->irq, _use_msi); in wil_if_pcie_enable() 91 if (rc) in wil_if_pcie_enable() 96 rc = wil_reset(wil, false); in wil_if_pcie_enable() 98 if (rc) in wil_if_pcie_enable() 109 return rc; in wil_if_pcie_enable() 132 int rc; in wil_pcie_probe() local 148 rc = (int)PTR_ERR(wil); in wil_pcie_probe() 149 dev_err(dev, "wil_if_alloc failed: %d\n", rc); in wil_pcie_probe() [all …]
|
D | pm.c | 21 int rc = 0; in wil_can_suspend() local 35 rc = -EBUSY; in wil_can_suspend() 40 is_runtime ? "runtime" : "system", rc ? "No" : "Yes", rc); in wil_can_suspend() 42 return rc; in wil_can_suspend() 47 int rc = 0; in wil_suspend() local 55 rc = wil_down(wil); in wil_suspend() 56 if (rc) { in wil_suspend() 57 wil_err(wil, "wil_down : %d\n", rc); in wil_suspend() 63 rc = wil->platform_ops.suspend(wil->platform_handle); in wil_suspend() 67 is_runtime ? "runtime" : "system", rc); in wil_suspend() [all …]
|
/linux-4.4.14/fs/jfs/ |
D | namei.c | 78 int rc = 0; in jfs_create() local 89 rc = dquot_initialize(dip); in jfs_create() 90 if (rc) in jfs_create() 97 if ((rc = get_UCSname(&dname, dentry))) in jfs_create() 107 rc = PTR_ERR(ip); in jfs_create() 116 rc = jfs_init_acl(tid, ip, dip); in jfs_create() 117 if (rc) in jfs_create() 120 rc = jfs_init_security(tid, ip, dip, &dentry->d_name); in jfs_create() 121 if (rc) { in jfs_create() 126 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_create() [all …]
|
D | file.c | 35 int rc = 0; in jfs_fsync() local 37 rc = filemap_write_and_wait_range(inode->i_mapping, start, end); in jfs_fsync() 38 if (rc) in jfs_fsync() 39 return rc; in jfs_fsync() 47 return rc; in jfs_fsync() 50 rc |= jfs_commit_inode(inode, 1); in jfs_fsync() 53 return rc ? -EIO : 0; in jfs_fsync() 58 int rc; in jfs_open() local 60 if ((rc = dquot_file_open(inode, file))) in jfs_open() 61 return rc; in jfs_open() [all …]
|
D | acl.c | 79 int rc; in __jfs_set_acl() local 87 rc = posix_acl_equiv_mode(acl, &inode->i_mode); in __jfs_set_acl() 88 if (rc < 0) in __jfs_set_acl() 89 return rc; in __jfs_set_acl() 92 if (rc == 0) in __jfs_set_acl() 108 rc = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __jfs_set_acl() 109 if (rc < 0) in __jfs_set_acl() 112 rc = __jfs_setxattr(tid, inode, ea_name, value, size, 0); in __jfs_set_acl() 116 if (!rc) in __jfs_set_acl() 119 return rc; in __jfs_set_acl() [all …]
|
D | jfs_mount.c | 83 int rc = 0; /* Return code */ in jfs_mount() local 94 if ((rc = chkSuper(sb))) { in jfs_mount() 101 rc = -EIO; in jfs_mount() 111 if ((rc = diMount(ipaimap))) { in jfs_mount() 112 jfs_err("jfs_mount: diMount(ipaimap) failed w/rc = %d", rc); in jfs_mount() 121 rc = -EIO; in jfs_mount() 132 if ((rc = dbMount(ipbmap))) { in jfs_mount() 133 jfs_err("jfs_mount: dbMount failed w/rc = %d", rc); in jfs_mount() 152 rc = -EIO; in jfs_mount() 162 if ((rc = diMount(ipaimap2))) { in jfs_mount() [all …]
|
D | jfs_extent.c | 90 int rc; in extAlloc() local 138 if ((rc = extBalloc(ip, hint ? hint : INOHINT(ip), &nxlen, &nxaddr))) { in extAlloc() 140 return (rc); in extAlloc() 144 rc = dquot_alloc_block(ip, nxlen); in extAlloc() 145 if (rc) { in extAlloc() 148 return rc; in extAlloc() 159 rc = xtExtend(0, ip, xoff, (int) nxlen, 0); in extAlloc() 161 rc = xtInsert(0, ip, xflag, xoff, (int) nxlen, &nxaddr, 0); in extAlloc() 166 if (rc) { in extAlloc() 170 return (rc); in extAlloc() [all …]
|
/linux-4.4.14/drivers/media/rc/ |
D | iguanair.c | 34 struct rc_dev *rc; member 127 ir_raw_event_reset(ir->rc); in process_ir_data() 151 if (ir_raw_event_store_with_filter(ir->rc, &rawir)) in process_ir_data() 156 ir_raw_event_handle(ir->rc); in process_ir_data() 163 int rc; in iguanair_rx() local 189 rc = usb_submit_urb(urb, GFP_ATOMIC); in iguanair_rx() 190 if (rc && rc != -ENODEV) in iguanair_rx() 191 dev_warn(ir->dev, "failed to resubmit urb: %d\n", rc); in iguanair_rx() 208 int rc; in iguanair_send() local 213 rc = usb_submit_urb(ir->urb_out, GFP_KERNEL); in iguanair_send() [all …]
|
D | rc-loopback.c | 181 struct rc_dev *rc; in loop_init() local 184 rc = rc_allocate_device(); in loop_init() 185 if (!rc) { in loop_init() 190 rc->input_name = "rc-core loopback device"; in loop_init() 191 rc->input_phys = "rc-core/virtual"; in loop_init() 192 rc->input_id.bustype = BUS_VIRTUAL; in loop_init() 193 rc->input_id.version = 1; in loop_init() 194 rc->driver_name = DRIVER_NAME; in loop_init() 195 rc->map_name = RC_MAP_EMPTY; in loop_init() 196 rc->priv = &loopdev; in loop_init() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/powernv/ |
D | opal-dump.c | 81 int rc; in dump_send_ack() local 83 rc = opal_dump_ack(dump_id); in dump_send_ack() 84 if (rc) in dump_send_ack() 86 __func__, dump_id, rc); in dump_send_ack() 87 return rc; in dump_send_ack() 121 int rc; in dump_fips_init() local 123 rc = opal_dump_init(type); in dump_fips_init() 124 if (rc) in dump_fips_init() 126 __func__, rc); in dump_fips_init() 127 return rc; in dump_fips_init() [all …]
|
D | opal-prd.c | 116 int rc; in opal_prd_mmap() local 132 rc = remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, size, in opal_prd_mmap() 135 return rc; in opal_prd_mmap() 167 int rc; in opal_prd_read() local 194 rc = wait_event_interruptible(opal_prd_msg_wait, in opal_prd_read() 196 if (rc) in opal_prd_read() 206 rc = copy_to_user(buf, &item->msg, size); in opal_prd_read() 207 if (rc) { in opal_prd_read() 230 int rc; in opal_prd_write() local 238 rc = copy_from_user(&hdr, buf, sizeof(hdr)); in opal_prd_write() [all …]
|
D | idle.c | 35 int rc; in pnv_save_sprs_for_winkle() local 62 rc = opal_slw_set_reg(pir, SPRN_HSPRG0, hsprg0_val); in pnv_save_sprs_for_winkle() 63 if (rc != 0) in pnv_save_sprs_for_winkle() 64 return rc; in pnv_save_sprs_for_winkle() 66 rc = opal_slw_set_reg(pir, SPRN_LPCR, lpcr_val); in pnv_save_sprs_for_winkle() 67 if (rc != 0) in pnv_save_sprs_for_winkle() 68 return rc; in pnv_save_sprs_for_winkle() 73 rc = opal_slw_set_reg(pir, SPRN_HMEER, hmeer_val); in pnv_save_sprs_for_winkle() 74 if (rc != 0) in pnv_save_sprs_for_winkle() 75 return rc; in pnv_save_sprs_for_winkle() [all …]
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | plpar_wrappers.h | 41 long rc; in extended_cede_processor() local 46 rc = cede_processor(); in extended_cede_processor() 55 return rc; in extended_cede_processor() 99 long rc = 0; in plpar_page_set_loaned() local 102 for (i = 0; !rc && i < PAGE_SIZE; i += cmo_page_sz) in plpar_page_set_loaned() 103 rc = plpar_hcall_norets(H_PAGE_INIT, H_PAGE_SET_LOANED, vpa + i, 0); in plpar_page_set_loaned() 105 for (i -= cmo_page_sz; rc && i != 0; i -= cmo_page_sz) in plpar_page_set_loaned() 109 return rc; in plpar_page_set_loaned() 115 long rc = 0; in plpar_page_set_active() local 118 for (i = 0; !rc && i < PAGE_SIZE; i += cmo_page_sz) in plpar_page_set_active() [all …]
|
/linux-4.4.14/arch/powerpc/kvm/ |
D | book3s_rtas.c | 24 int rc; in kvm_rtas_set_xive() local 27 rc = -3; in kvm_rtas_set_xive() 35 rc = kvmppc_xics_set_xive(vcpu->kvm, irq, server, priority); in kvm_rtas_set_xive() 36 if (rc) in kvm_rtas_set_xive() 37 rc = -3; in kvm_rtas_set_xive() 39 args->rets[0] = cpu_to_be32(rc); in kvm_rtas_set_xive() 45 int rc; in kvm_rtas_get_xive() local 48 rc = -3; in kvm_rtas_get_xive() 55 rc = kvmppc_xics_get_xive(vcpu->kvm, irq, &server, &priority); in kvm_rtas_get_xive() 56 if (rc) { in kvm_rtas_get_xive() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/llite/ |
D | dir.c | 159 int rc; in ll_dir_filler() local 184 rc = md_readpage(exp, op_data, page_pool, &request); in ll_dir_filler() 186 if (rc < 0) { in ll_dir_filler() 189 } else if (rc == 0) { in ll_dir_filler() 212 if (rc < 0 || i >= nrdpgs) { in ll_dir_filler() 239 return rc; in ll_dir_filler() 343 int rc; in ll_get_dir_page() local 351 rc = md_lock_match(ll_i2sbi(dir)->ll_md_exp, LDLM_FL_BLOCK_GRANTED, in ll_get_dir_page() 353 if (!rc) { in ll_get_dir_page() 369 rc = md_enqueue(ll_i2sbi(dir)->ll_md_exp, &einfo, &it, in ll_get_dir_page() [all …]
|
D | xattr.c | 113 int xattr_type, rc; in ll_setxattr_common() local 122 rc = xattr_type_filter(sbi, xattr_type); in ll_setxattr_common() 123 if (rc) in ll_setxattr_common() 124 return rc; in ll_setxattr_common() 177 rc = lustre_posix_acl_xattr_filter( in ll_setxattr_common() 180 if (unlikely(rc < 0)) in ll_setxattr_common() 181 return rc; in ll_setxattr_common() 182 size = rc; in ll_setxattr_common() 191 rc = md_setxattr(sbi->ll_md_exp, ll_inode2fid(inode), in ll_setxattr_common() 200 if (rc) { in ll_setxattr_common() [all …]
|
D | file.c | 135 int rc; in ll_close_inode_openhandle() local 144 rc = 0; in ll_close_inode_openhandle() 151 rc = -ENOMEM; in ll_close_inode_openhandle() 164 rc = md_close(md_exp, op_data, och->och_mod, &req); in ll_close_inode_openhandle() 165 if (rc == -EAGAIN) { in ll_close_inode_openhandle() 170 rc = ll_som_update(inode, op_data); in ll_close_inode_openhandle() 171 if (rc) { in ll_close_inode_openhandle() 173 inode->i_ino, rc); in ll_close_inode_openhandle() 174 rc = 0; in ll_close_inode_openhandle() 176 } else if (rc) { in ll_close_inode_openhandle() [all …]
|
D | xattr_cache.c | 247 int rc; in ll_xattr_cache_destroy() local 250 rc = ll_xattr_cache_destroy_locked(lli); in ll_xattr_cache_destroy() 253 return rc; in ll_xattr_cache_destroy() 281 int rc; in ll_xattr_find_get_lock() local 308 rc = md_enqueue(exp, &einfo, oit, op_data, &lockh, NULL, 0, NULL, 0); in ll_xattr_find_get_lock() 311 if (rc < 0) { in ll_xattr_find_get_lock() 314 rc, PFID(ll_inode2fid(inode))); in ll_xattr_find_get_lock() 316 return rc; in ll_xattr_find_get_lock() 346 int rc, i; in ll_xattr_cache_refill() local 348 rc = ll_xattr_find_get_lock(inode, oit, &req); in ll_xattr_cache_refill() [all …]
|
/linux-4.4.14/drivers/pci/hotplug/ |
D | cpqphp_nvram.c | 205 u32 rc; in load_HRT() local 215 rc = access_EV(READ_EV, "CQTHPS", evbuffer, &temp_dword); in load_HRT() 224 rc = access_EV(WRITE_EV, "CQTHPS", &temp_byte, &temp_dword); in load_HRT() 226 return rc; in load_HRT() 242 u32 rc; in store_HRT() local 268 rc = add_byte(&pFill, 1 + ctrl->push_flag, &usedbytes, &available); in store_HRT() 269 if (rc) in store_HRT() 270 return(rc); in store_HRT() 273 rc = add_byte(&pFill, 1, &usedbytes, &available); in store_HRT() 274 if (rc) in store_HRT() [all …]
|
D | ibmphp_hpc.c | 259 u8 rc; in i2c_ctrl_write() local 268 rc = 0; in i2c_ctrl_write() 329 rc = HPC_ERROR; in i2c_ctrl_write() 346 rc = HPC_ERROR; in i2c_ctrl_write() 349 debug_polling ("%s Exit rc[%x]\n", __func__, rc); in i2c_ctrl_write() 350 return (rc); in i2c_ctrl_write() 392 u8 rc = -ENODEV; in pci_ctrl_write() local 396 rc = 0; in pci_ctrl_write() 398 return rc; in pci_ctrl_write() 403 u8 rc; in ctrl_read() local [all …]
|
D | ibmphp_core.c | 77 int rc = 1; in get_cur_bus_info() local 84 rc = ibmphp_hpc_readslot(slot_cur, READ_BUSSTATUS, NULL); in get_cur_bus_info() 86 if (rc) in get_cur_bus_info() 87 return rc; in get_cur_bus_info() 107 int rc; in slot_update() local 108 rc = ibmphp_hpc_readslot(*sl, READ_ALLSTAT, NULL); in slot_update() 109 if (rc) in slot_update() 110 return rc; in slot_update() 112 rc = get_cur_bus_info(sl); in slot_update() 113 return rc; in slot_update() [all …]
|
D | rpaphp_pci.c | 37 int rc; in rpaphp_get_sensor_state() local 40 rc = rtas_get_sensor(DR_ENTITY_SENSE, slot->index, state); in rpaphp_get_sensor_state() 42 if (rc < 0) { in rpaphp_get_sensor_state() 43 if (rc == -EFAULT || rc == -EEXIST) { in rpaphp_get_sensor_state() 50 rc = rtas_set_power_level(slot->power_domain, POWER_ON, in rpaphp_get_sensor_state() 52 if (rc < 0) { in rpaphp_get_sensor_state() 54 __func__, slot->name, rc); in rpaphp_get_sensor_state() 56 rc = rtas_get_sensor(DR_ENTITY_SENSE, in rpaphp_get_sensor_state() 59 } else if (rc == -ENODEV) in rpaphp_get_sensor_state() 64 return rc; in rpaphp_get_sensor_state() [all …]
|
D | sgi_hotplug.c | 236 int rc; in sn_slot_enable() local 244 rc = sal_pcibr_slot_enable(pcibus_info, device_num, &resp, ssdt); in sn_slot_enable() 247 if (rc == PCI_SLOT_ALREADY_UP) { in sn_slot_enable() 252 if (rc == PCI_L1_ERR) { in sn_slot_enable() 258 if (rc) { in sn_slot_enable() 260 rc, resp.resp_sub_errno); in sn_slot_enable() 276 int rc; in sn_slot_disable() local 280 rc = sal_pcibr_slot_disable(pcibus_info, device_num, action, &resp); in sn_slot_disable() 283 (rc == PCI_SLOT_ALREADY_DOWN)) { in sn_slot_disable() 288 if ((action == PCI_REQ_SLOT_ELIGIBLE) && (rc == PCI_EMPTY_33MHZ)) { in sn_slot_disable() [all …]
|
/linux-4.4.14/tools/testing/selftests/efivarfs/ |
D | open-unlink.c | 16 int rc; in set_immutable() local 23 rc = ioctl(fd, FS_IOC_GETFLAGS, &flags); in set_immutable() 24 if (rc < 0) { in set_immutable() 28 return rc; in set_immutable() 36 rc = ioctl(fd, FS_IOC_SETFLAGS, &flags); in set_immutable() 40 return rc; in set_immutable() 47 int rc; in get_immutable() local 54 rc = ioctl(fd, FS_IOC_GETFLAGS, &flags); in get_immutable() 55 if (rc < 0) { in get_immutable() 59 return rc; in get_immutable() [all …]
|
/linux-4.4.14/fs/jffs2/ |
D | acl.c | 179 int rc, xprefix; in jffs2_get_acl() local 191 rc = do_jffs2_getxattr(inode, xprefix, "", NULL, 0); in jffs2_get_acl() 192 if (rc > 0) { in jffs2_get_acl() 193 value = kmalloc(rc, GFP_KERNEL); in jffs2_get_acl() 196 rc = do_jffs2_getxattr(inode, xprefix, "", value, rc); in jffs2_get_acl() 198 if (rc > 0) { in jffs2_get_acl() 199 acl = jffs2_acl_from_medium(value, rc); in jffs2_get_acl() 200 } else if (rc == -ENODATA || rc == -ENOSYS) { in jffs2_get_acl() 203 acl = ERR_PTR(rc); in jffs2_get_acl() 215 int rc; in __jffs2_set_acl() local [all …]
|
/linux-4.4.14/net/x25/ |
D | af_x25.c | 94 int rc; in x25_parse_address_block() local 98 rc = 0; in x25_parse_address_block() 108 rc = -1; in x25_parse_address_block() 118 return rc; in x25_parse_address_block() 444 int rc = -ENOPROTOOPT; in x25_setsockopt() local 449 rc = -EINVAL; in x25_setsockopt() 453 rc = -EFAULT; in x25_setsockopt() 461 rc = 0; in x25_setsockopt() 463 return rc; in x25_setsockopt() 470 int val, len, rc = -ENOPROTOOPT; in x25_getsockopt() local [all …]
|
/linux-4.4.14/drivers/staging/lustre/lnet/klnds/socklnd/ |
D | socklnd_lib.c | 42 int rc = lnet_sock_getaddr(conn->ksnc_sock, 1, &conn->ksnc_ipaddr, in ksocknal_lib_get_conn_addrs() local 48 if (rc != 0) { in ksocknal_lib_get_conn_addrs() 49 CERROR("Error %d getting sock peer IP\n", rc); in ksocknal_lib_get_conn_addrs() 50 return rc; in ksocknal_lib_get_conn_addrs() 53 rc = lnet_sock_getaddr(conn->ksnc_sock, 0, &conn->ksnc_myipaddr, NULL); in ksocknal_lib_get_conn_addrs() 54 if (rc != 0) { in ksocknal_lib_get_conn_addrs() 55 CERROR("Error %d getting sock local IP\n", rc); in ksocknal_lib_get_conn_addrs() 56 return rc; in ksocknal_lib_get_conn_addrs() 80 int rc; in ksocknal_lib_send_iov() local 112 rc = kernel_sendmsg(sock, &msg, scratchiov, niov, nob); in ksocknal_lib_send_iov() [all …]
|
/linux-4.4.14/drivers/media/usb/tm6000/ |
D | tm6000-input.c | 60 struct rc_dev *rc; member 194 rc_keydown(ir->rc, protocol, scancode, 0); in tm6000_ir_keydown() 233 int rc; in tm6000_ir_handle_key() local 241 rc = tm6000_read_write_usb(dev, USB_DIR_IN | in tm6000_ir_handle_key() 244 if (rc < 0) in tm6000_ir_handle_key() 256 tm6000_ir_keydown(ir, buf, rc); in tm6000_ir_handle_key() 268 int rc; in tm6000_ir_int_work() local 277 rc = usb_submit_urb(ir->int_urb, GFP_ATOMIC); in tm6000_ir_int_work() 278 if (rc < 0) { in tm6000_ir_int_work() 280 rc); in tm6000_ir_int_work() [all …]
|
D | tm6000-i2c.c | 48 int rc; in tm6000_i2c_send_regs() local 64 rc = tm6000_read_write_usb(dev, USB_DIR_OUT | USB_TYPE_VENDOR | in tm6000_i2c_send_regs() 68 if (rc < 0) { in tm6000_i2c_send_regs() 70 return rc; in tm6000_i2c_send_regs() 74 return rc; in tm6000_i2c_send_regs() 81 int rc; in tm6000_i2c_recv_regs() local 105 rc = tm6000_read_write_usb(dev, USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE, in tm6000_i2c_recv_regs() 110 rc = tm6000_read_write_usb(dev, USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE, in tm6000_i2c_recv_regs() 115 return rc; in tm6000_i2c_recv_regs() 125 int rc; in tm6000_i2c_recv_regs16() local [all …]
|
/linux-4.4.14/net/llc/ |
D | af_llc.c | 97 u8 rc = LLC_PDU_LEN_U; in llc_ui_header_len() local 100 rc = LLC_PDU_LEN_U; in llc_ui_header_len() 102 rc = LLC_PDU_LEN_I; in llc_ui_header_len() 103 return rc; in llc_ui_header_len() 118 int rc = 0; in llc_ui_send_data() local 125 rc = llc_ui_wait_for_busy_core(sk, timeout); in llc_ui_send_data() 127 if (unlikely(!rc)) in llc_ui_send_data() 128 rc = llc_build_and_send_pkt(sk, skb); in llc_ui_send_data() 129 return rc; in llc_ui_send_data() 161 int rc = -ESOCKTNOSUPPORT; in llc_ui_create() local [all …]
|
D | llc_s_ac.c | 55 int rc; in llc_sap_action_send_ui() local 60 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); in llc_sap_action_send_ui() 61 if (likely(!rc)) in llc_sap_action_send_ui() 62 rc = dev_queue_xmit(skb); in llc_sap_action_send_ui() 63 return rc; in llc_sap_action_send_ui() 78 int rc; in llc_sap_action_send_xid_c() local 83 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); in llc_sap_action_send_xid_c() 84 if (likely(!rc)) in llc_sap_action_send_xid_c() 85 rc = dev_queue_xmit(skb); in llc_sap_action_send_xid_c() 86 return rc; in llc_sap_action_send_xid_c() [all …]
|
/linux-4.4.14/security/smack/ |
D | smack_lsm.c | 101 struct smack_known *oskp, int mode, int rc) in smk_bu_note() argument 105 if (rc <= 0) in smk_bu_note() 106 return rc; in smk_bu_note() 107 if (rc > SMACK_UNCONFINED_OBJECT) in smk_bu_note() 108 rc = 0; in smk_bu_note() 111 pr_info("Smack %s: (%s %s %s) %s\n", smk_bu_mess[rc], in smk_bu_note() 121 int mode, int rc) in smk_bu_current() argument 126 if (rc <= 0) in smk_bu_current() 127 return rc; in smk_bu_current() 128 if (rc > SMACK_UNCONFINED_OBJECT) in smk_bu_current() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/ |
D | module.c | 216 int rc = 0; in libcfs_register_ioctl() local 220 rc = -EBUSY; in libcfs_register_ioctl() 225 return rc; in libcfs_register_ioctl() 231 int rc = 0; in libcfs_deregister_ioctl() local 235 rc = -ENOENT; in libcfs_deregister_ioctl() 240 return rc; in libcfs_deregister_ioctl() 337 int rc = handler(data, write, *ppos, buffer, *lenp); in proc_call_handler() local 339 if (rc < 0) in proc_call_handler() 340 return rc; in proc_call_handler() 345 *lenp = rc; in proc_call_handler() [all …]
|
/linux-4.4.14/drivers/i2c/busses/ |
D | i2c-bcm-kona.c | 255 int rc; in bcm_kona_send_i2c_cmd() local 259 rc = bcm_kona_i2c_wait_if_busy(dev); in bcm_kona_send_i2c_cmd() 260 if (rc < 0) in bcm_kona_send_i2c_cmd() 261 return rc; in bcm_kona_send_i2c_cmd() 280 rc = -ETIMEDOUT; in bcm_kona_send_i2c_cmd() 286 return rc; in bcm_kona_send_i2c_cmd() 332 int rc; in bcm_kona_i2c_read_fifo() local 342 rc = bcm_kona_i2c_read_fifo_single(dev, tmp_buf, bytes_to_read, in bcm_kona_i2c_read_fifo() 344 if (rc < 0) in bcm_kona_i2c_read_fifo() 358 int rc; in bcm_kona_i2c_write_byte() local [all …]
|
D | i2c-powermac.c | 45 int rc = 0; in i2c_powermac_smbus_xfer() local 106 rc = pmac_i2c_open(bus, 0); in i2c_powermac_smbus_xfer() 107 if (rc) { in i2c_powermac_smbus_xfer() 108 dev_err(&adap->dev, "Failed to open I2C, err %d\n", rc); in i2c_powermac_smbus_xfer() 109 return rc; in i2c_powermac_smbus_xfer() 112 rc = pmac_i2c_setmode(bus, mode); in i2c_powermac_smbus_xfer() 113 if (rc) { in i2c_powermac_smbus_xfer() 115 mode, rc); in i2c_powermac_smbus_xfer() 119 rc = pmac_i2c_xfer(bus, addrdir, subsize, subaddr, buf, len); in i2c_powermac_smbus_xfer() 120 if (rc) { in i2c_powermac_smbus_xfer() [all …]
|
D | i2c-opal.c | 31 static int i2c_opal_translate_error(int rc) in i2c_opal_translate_error() argument 33 switch (rc) { in i2c_opal_translate_error() 54 int token, rc; in i2c_opal_send_request() local 64 rc = opal_i2c_request(token, bus_id, req); in i2c_opal_send_request() 65 if (rc != OPAL_ASYNC_COMPLETION) { in i2c_opal_send_request() 66 rc = i2c_opal_translate_error(rc); in i2c_opal_send_request() 70 rc = opal_async_wait_response(token, &msg); in i2c_opal_send_request() 71 if (rc) in i2c_opal_send_request() 74 rc = be64_to_cpu(msg.params[1]); in i2c_opal_send_request() 75 if (rc != OPAL_SUCCESS) { in i2c_opal_send_request() [all …]
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qed/ |
D | qed_l2.c | 146 int rc = -EINVAL; in qed_sp_vport_start() local 150 rc = qed_fw_vport(p_hwfn, vport_id, &abs_vport_id); in qed_sp_vport_start() 151 if (rc != 0) in qed_sp_vport_start() 152 return rc; in qed_sp_vport_start() 158 rc = qed_sp_init_request(p_hwfn, &p_ent, in qed_sp_vport_start() 164 if (rc) in qed_sp_vport_start() 165 return rc; in qed_sp_vport_start() 197 int rc = 0, i; in qed_sp_vport_update_rss() local 201 return rc; in qed_sp_vport_update_rss() 207 rc = qed_fw_rss_eng(p_hwfn, p_params->rss_eng_id, &rss->rss_id); in qed_sp_vport_update_rss() [all …]
|
D | qed_main.c | 106 int rc; in qed_init_pci() local 110 rc = pci_enable_device(pdev); in qed_init_pci() 111 if (rc) { in qed_init_pci() 118 rc = -EIO; in qed_init_pci() 124 rc = -EIO; in qed_init_pci() 129 rc = pci_request_regions(pdev, "qed"); in qed_init_pci() 130 if (rc) { in qed_init_pci() 141 rc = -EIO; in qed_init_pci() 149 rc = qed_set_coherency_mask(cdev); in qed_init_pci() 150 if (rc) in qed_init_pci() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/ |
D | obd_mount.c | 81 int rc; in lustre_process_log() local 96 rc = obd_process_config(mgc, sizeof(*lcfg), lcfg); in lustre_process_log() 101 if (rc == -EINVAL) in lustre_process_log() 103 mgc->obd_name, logname, rc); in lustre_process_log() 105 if (rc) in lustre_process_log() 108 rc); in lustre_process_log() 111 return rc; in lustre_process_log() 123 int rc; in lustre_end_log() local 134 rc = obd_process_config(mgc, sizeof(*lcfg), lcfg); in lustre_end_log() 136 return rc; in lustre_end_log() [all …]
|
D | llog.c | 112 int rc; in llog_read_header() local 114 rc = llog_handle2ops(handle, &lop); in llog_read_header() 115 if (rc) in llog_read_header() 116 return rc; in llog_read_header() 121 rc = lop->lop_read_header(env, handle); in llog_read_header() 122 if (rc == LLOG_EEMPTY) { in llog_read_header() 136 rc = 0; in llog_read_header() 138 return rc; in llog_read_header() 145 int rc; in llog_init_handle() local 155 rc = llog_read_header(env, handle, uuid); in llog_init_handle() [all …]
|
D | llog_cat.c | 70 int rc = 0; in llog_cat_id2handle() local 91 rc = 0; in llog_cat_id2handle() 97 rc = llog_open(env, cathandle->lgh_ctxt, &loghandle, logid, NULL, in llog_cat_id2handle() 99 if (rc < 0) { in llog_cat_id2handle() 102 POSTID(&logid->lgl_oi), logid->lgl_ogen, rc); in llog_cat_id2handle() 103 return rc; in llog_cat_id2handle() 106 rc = llog_init_handle(env, loghandle, LLOG_F_IS_PLAIN, NULL); in llog_cat_id2handle() 107 if (rc < 0) { in llog_cat_id2handle() 110 return rc; in llog_cat_id2handle() 130 int rc; in llog_cat_close() local [all …]
|
/linux-4.4.14/drivers/s390/crypto/ |
D | zcrypt_pcixcc.c | 173 int rc, i; in zcrypt_pcixcc_mcl() local 179 rc = ap_send(ap_dev->qid, 0x0102030405060708ULL, msg, sizeof(msg)); in zcrypt_pcixcc_mcl() 180 if (rc) in zcrypt_pcixcc_mcl() 186 rc = ap_recv(ap_dev->qid, &psmid, reply, 4096); in zcrypt_pcixcc_mcl() 187 if (rc == 0 && psmid == 0x0102030405060708ULL) in zcrypt_pcixcc_mcl() 193 rc = -ENODEV; in zcrypt_pcixcc_mcl() 199 rc = ZCRYPT_PCIXCC_MCL2; in zcrypt_pcixcc_mcl() 201 rc = ZCRYPT_PCIXCC_MCL3; in zcrypt_pcixcc_mcl() 204 return rc; in zcrypt_pcixcc_mcl() 223 int rc, i; in zcrypt_pcixcc_rng_supported() local [all …]
|
/linux-4.4.14/arch/s390/kernel/ |
D | debug.c | 246 debug_info_t* rc; in debug_info_alloc() local 250 rc = kmalloc(sizeof(debug_info_t), GFP_KERNEL); in debug_info_alloc() 251 if(!rc) in debug_info_alloc() 253 rc->active_entries = kcalloc(nr_areas, sizeof(int), GFP_KERNEL); in debug_info_alloc() 254 if(!rc->active_entries) in debug_info_alloc() 256 rc->active_pages = kcalloc(nr_areas, sizeof(int), GFP_KERNEL); in debug_info_alloc() 257 if(!rc->active_pages) in debug_info_alloc() 260 rc->areas = debug_areas_alloc(pages_per_area, nr_areas); in debug_info_alloc() 261 if(!rc->areas) in debug_info_alloc() 264 rc->areas = NULL; in debug_info_alloc() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/fid/ |
D | fid_request.c | 67 int rc; in seq_client_rpc() local 114 rc = ptlrpc_queue_wait(req); in seq_client_rpc() 117 if (rc) in seq_client_rpc() 126 rc = -EINVAL; in seq_client_rpc() 133 rc = -EINVAL; in seq_client_rpc() 142 return rc; in seq_client_rpc() 149 int rc; in seq_client_alloc_super() local 160 rc = seq_client_rpc(seq, &seq->lcs_space, in seq_client_alloc_super() 163 return rc; in seq_client_alloc_super() 170 int rc; in seq_client_alloc_meta() local [all …]
|
/linux-4.4.14/drivers/of/ |
D | unittest.c | 202 int count = 0, rc; in of_unittest_check_node_linkage() local 208 rc = -EINVAL; in of_unittest_check_node_linkage() 212 rc = of_unittest_check_node_linkage(child); in of_unittest_check_node_linkage() 213 if (rc < 0) in of_unittest_check_node_linkage() 215 count += rc; in of_unittest_check_node_linkage() 221 return rc; in of_unittest_check_node_linkage() 291 int i, rc; in of_unittest_parse_phandle_with_args() local 299 rc = of_count_phandle_with_args(np, "phandle-list", "#phandle-cells"); in of_unittest_parse_phandle_with_args() 300 unittest(rc == 7, "of_count_phandle_with_args() returned %i, expected 7\n", rc); in of_unittest_parse_phandle_with_args() 305 rc = of_parse_phandle_with_args(np, "phandle-list", in of_unittest_parse_phandle_with_args() [all …]
|
/linux-4.4.14/drivers/char/pcmcia/ |
D | cm4040_cs.c | 140 int i, rc; in wait_for_bulk_out_ready() local 153 rc = wait_event_interruptible_timeout(dev->write_wait, in wait_for_bulk_out_ready() 158 if (rc > 0) in wait_for_bulk_out_ready() 160 else if (rc == 0) in wait_for_bulk_out_ready() 162 else if (rc < 0) in wait_for_bulk_out_ready() 165 return rc; in wait_for_bulk_out_ready() 172 int rc; in write_sync_reg() local 174 rc = wait_for_bulk_out_ready(dev); in write_sync_reg() 175 if (rc <= 0) in write_sync_reg() 176 return rc; in write_sync_reg() [all …]
|
/linux-4.4.14/drivers/net/ieee802154/ |
D | at86rf230.c | 192 int rc; in at86rf230_read_subreg() local 194 rc = __at86rf230_read(lp, addr, data); in at86rf230_read_subreg() 195 if (!rc) in at86rf230_read_subreg() 198 return rc; in at86rf230_read_subreg() 279 bool rc; in at86rf230_reg_readable() local 282 rc = at86rf230_reg_writeable(dev, reg); in at86rf230_reg_readable() 283 if (rc) in at86rf230_reg_readable() 284 return rc; in at86rf230_reg_readable() 360 struct at86rf230_state_change *ctx, int rc) in at86rf230_async_error() argument 362 dev_err(&lp->spi->dev, "spi_async error %d\n", rc); in at86rf230_async_error() [all …]
|
/linux-4.4.14/drivers/input/touchscreen/ |
D | cyttsp4_core.c | 84 int rc; in cyttsp4_load_status_regs() local 86 rc = cyttsp4_adap_read(cd, CY_REG_BASE, si->si_ofs.mode_size, in cyttsp4_load_status_regs() 88 if (rc < 0) in cyttsp4_load_status_regs() 90 __func__, rc); in cyttsp4_load_status_regs() 95 return rc; in cyttsp4_load_status_regs() 101 int rc; in cyttsp4_handshake() local 110 rc = cyttsp4_adap_write(cd, CY_REG_BASE, sizeof(cmd), &cmd); in cyttsp4_handshake() 111 if (rc < 0) in cyttsp4_handshake() 113 __func__, rc); in cyttsp4_handshake() 115 return rc; in cyttsp4_handshake() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/mgc/ |
D | mgc_request.c | 196 int rc; in do_config_log_add() local 225 rc = mgc_logname2resid(logname, &cld->cld_resid, type); in do_config_log_add() 231 if (rc) { in do_config_log_add() 233 return ERR_PTR(rc); in do_config_log_add() 237 rc = mgc_process_log(obd, cld); in do_config_log_add() 238 if (rc && rc != -ENOENT) in do_config_log_add() 239 CERROR("failed processing sptlrpc log: %d\n", rc); in do_config_log_add() 294 int rc; in config_log_add() local 317 rc = PTR_ERR(sptlrpc_cld); in config_log_add() 323 rc = PTR_ERR(params_cld); in config_log_add() [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/lov/ |
D | lov_obd.c | 134 int rc; in lov_connect_obd() local 165 rc = obd_register_observer(tgt_obd, obd); in lov_connect_obd() 166 if (rc) { in lov_connect_obd() 168 obd_uuid2str(tgt_uuid), rc); in lov_connect_obd() 169 return rc; in lov_connect_obd() 178 rc = obd_connect(NULL, &lov->lov_tgts[index]->ltd_exp, tgt_obd, in lov_connect_obd() 180 if (rc || !lov->lov_tgts[index]->ltd_exp) { in lov_connect_obd() 182 obd_uuid2str(tgt_uuid), rc); in lov_connect_obd() 193 rc = sysfs_create_link(lov->lov_tgts_kobj, &tgt_obd->obd_kobj, in lov_connect_obd() 207 int i, rc; in lov_connect() local [all …]
|
D | lov_request.c | 93 struct lov_request *req, int rc) in lov_update_set() argument 96 req->rq_rc = rc; in lov_update_set() 99 if (rc == 0) in lov_update_set() 106 struct lov_request *req, int rc) in lov_update_common_set() argument 110 lov_update_set(set, req, rc); in lov_update_common_set() 113 if (rc && !(lov->lov_tgts[req->rq_idx] && in lov_update_common_set() 115 rc = 0; in lov_update_common_set() 118 return rc; in lov_update_common_set() 130 int rc; in lov_check_set() local 135 rc = !tgt || tgt->ltd_active || in lov_check_set() [all …]
|
/linux-4.4.14/drivers/nfc/ |
D | nfcwilink.c | 146 int rc; in nfcwilink_get_bts_file_name() local 164 rc = nfcwilink_send(drv->ndev, skb); in nfcwilink_get_bts_file_name() 165 if (rc) in nfcwilink_get_bts_file_name() 166 return rc; in nfcwilink_get_bts_file_name() 203 int rc; in nfcwilink_send_bts_cmd() local 228 rc = nfcwilink_send(drv->ndev, skb); in nfcwilink_send_bts_cmd() 229 if (rc) in nfcwilink_send_bts_cmd() 230 return rc; in nfcwilink_send_bts_cmd() 251 int len, rc; in nfcwilink_download_fw() local 255 rc = nfcwilink_get_bts_file_name(drv, file_name); in nfcwilink_download_fw() [all …]
|
D | pn533.c | 218 u8 rc; member 260 .rc = PN533_FELICA_SENSF_RC_SYSTEM_CODE, 273 .rc = PN533_FELICA_SENSF_RC_SYSTEM_CODE, 764 int rc; in pn533_recv_ack() local 792 rc = pn533_submit_urb_for_response(dev, GFP_ATOMIC); in pn533_recv_ack() 793 if (rc) { in pn533_recv_ack() 795 "usb_submit_urb failed with result %d\n", rc); in pn533_recv_ack() 796 cmd->status = rc; in pn533_recv_ack() 817 int rc; in pn533_send_ack() local 821 rc = usb_submit_urb(dev->out_urb, flags); in pn533_send_ack() [all …]
|
/linux-4.4.14/net/sunrpc/xprtrdma/ |
D | verbs.c | 157 int count, rc; in rpcrdma_sendcq_poll() local 162 rc = ib_poll_cq(cq, ARRAY_SIZE(wcs), pos); in rpcrdma_sendcq_poll() 163 if (rc < 0) in rpcrdma_sendcq_poll() 166 count = rc; in rpcrdma_sendcq_poll() 169 } while (rc == ARRAY_SIZE(wcs)); in rpcrdma_sendcq_poll() 238 int count, rc; in rpcrdma_recvcq_poll() local 243 rc = ib_poll_cq(cq, ARRAY_SIZE(wcs), pos); in rpcrdma_recvcq_poll() 244 if (rc < 0) in rpcrdma_recvcq_poll() 247 count = rc; in rpcrdma_recvcq_poll() 250 } while (rc == ARRAY_SIZE(wcs)); in rpcrdma_recvcq_poll() [all …]
|
/linux-4.4.14/drivers/firmware/ |
D | iscsi_ibft.c | 452 umode_t rc = 0; in ibft_check_nic_for() local 457 rc = S_IRUGO; in ibft_check_nic_for() 461 rc = S_IRUGO; in ibft_check_nic_for() 465 rc = S_IRUGO; in ibft_check_nic_for() 468 rc = S_IRUGO; in ibft_check_nic_for() 472 rc = S_IRUGO; in ibft_check_nic_for() 476 rc = S_IRUGO; in ibft_check_nic_for() 480 rc = S_IRUGO; in ibft_check_nic_for() 484 rc = S_IRUGO; in ibft_check_nic_for() 488 rc = S_IRUGO; in ibft_check_nic_for() [all …]
|
/linux-4.4.14/arch/s390/hypfs/ |
D | hypfs_diag.c | 442 int pages, rc; in diag204_probe() local 465 rc = PTR_ERR(buf); in diag204_probe() 474 rc = -ENOSYS; in diag204_probe() 478 rc = 0; in diag204_probe() 482 return rc; in diag204_probe() 487 int rc; in diag204_do_store() local 489 rc = diag204((unsigned long) diag204_store_sc | in diag204_do_store() 491 return rc < 0 ? -ENOSYS : 0; in diag204_do_store() 497 int pages, rc; in diag204_store() local 502 rc = diag204_do_store(buf, pages); in diag204_store() [all …]
|
/linux-4.4.14/net/ipx/ |
D | af_ipx.c | 83 struct ipx_interface *rc = NULL; in ipx_interfaces_head() local 86 rc = list_entry(ipx_interfaces.next, in ipx_interfaces_head() 88 return rc; in ipx_interfaces_head() 371 int rc; in ipxitf_demux_socket() local 386 rc = -ENOMEM; in ipxitf_demux_socket() 405 rc = 0; in ipxitf_demux_socket() 408 return rc; in ipxitf_demux_socket() 453 int rc; in ipxitf_demux_socket() local 484 rc = 0; in ipxitf_demux_socket() 504 rc = -ENOMEM; in ipxitf_demux_socket() [all …]
|
/linux-4.4.14/arch/powerpc/sysdev/xics/ |
D | ics-opal.c | 49 int64_t rc; in ics_opal_unmask_irq() local 60 rc = opal_set_xive(hw_irq, server, DEFAULT_PRIORITY); in ics_opal_unmask_irq() 61 if (rc != OPAL_SUCCESS) in ics_opal_unmask_irq() 64 __func__, d->irq, hw_irq, server, rc); in ics_opal_unmask_irq() 87 int64_t rc; in ics_opal_mask_real_irq() local 93 rc = opal_set_xive(hw_irq, server, 0xff); in ics_opal_mask_real_irq() 94 if (rc != OPAL_SUCCESS) in ics_opal_mask_real_irq() 96 __func__, hw_irq, rc); in ics_opal_mask_real_irq() 118 int64_t rc; in ics_opal_set_affinity() local 124 rc = opal_get_xive(hw_irq, &oserver, &priority); in ics_opal_set_affinity() [all …]
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | eeh_driver.c | 200 enum pci_ers_result rc, *res = userdata; in eeh_report_error() local 218 rc = driver->err_handler->error_detected(dev, pci_channel_io_frozen); in eeh_report_error() 221 if (rc == PCI_ERS_RESULT_NEED_RESET) *res = rc; in eeh_report_error() 222 if (*res == PCI_ERS_RESULT_NONE) *res = rc; in eeh_report_error() 241 enum pci_ers_result rc, *res = userdata; in eeh_report_mmio_enabled() local 257 rc = driver->err_handler->mmio_enabled(dev); in eeh_report_mmio_enabled() 260 if (rc == PCI_ERS_RESULT_NEED_RESET) *res = rc; in eeh_report_mmio_enabled() 261 if (*res == PCI_ERS_RESULT_NONE) *res = rc; in eeh_report_mmio_enabled() 281 enum pci_ers_result rc, *res = userdata; in eeh_report_reset() local 300 rc = driver->err_handler->slot_reset(dev); in eeh_report_reset() [all …]
|
D | rtas.c | 508 int rc; in rtas_error_rc() local 512 rc = -EIO; in rtas_error_rc() 515 rc = -EINVAL; in rtas_error_rc() 518 rc = -EFAULT; in rtas_error_rc() 521 rc = -EEXIST; in rtas_error_rc() 524 rc = -ENODEV; in rtas_error_rc() 529 rc = -ERANGE; in rtas_error_rc() 532 return rc; in rtas_error_rc() 538 int rc; in rtas_get_power_level() local 543 while ((rc = rtas_call(token, 1, 2, level, powerdomain)) == RTAS_BUSY) in rtas_get_power_level() [all …]
|
/linux-4.4.14/drivers/mtd/ |
D | rfd_ftl.c | 153 int i, rc = -ENOMEM; in scan_header() local 203 rc = mtd_read(part->mbd.mtd, i * part->block_size, in scan_header() 207 if (!rc && retlen != part->header_size) in scan_header() 208 rc = -EIO; in scan_header() 210 if (rc) in scan_header() 220 rc = -ENOENT; in scan_header() 238 return rc; in scan_header() 246 int rc; in rfd_ftl_readsect() local 253 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in rfd_ftl_readsect() 255 if (!rc && retlen != SECTOR_SIZE) in rfd_ftl_readsect() [all …]
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_sriov.c | 46 int rc; in bnxt_set_vf_spoofchk() local 48 rc = bnxt_vf_ndo_prep(bp, vf_id); in bnxt_set_vf_spoofchk() 49 if (rc) in bnxt_set_vf_spoofchk() 50 return rc; in bnxt_set_vf_spoofchk() 69 rc = hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); in bnxt_set_vf_spoofchk() 70 if (!rc) { in bnxt_set_vf_spoofchk() 77 return rc; in bnxt_set_vf_spoofchk() 85 int rc; in bnxt_get_vf_config() local 87 rc = bnxt_vf_ndo_prep(bp, vf_id); in bnxt_get_vf_config() 88 if (rc) in bnxt_get_vf_config() [all …]
|
/linux-4.4.14/drivers/s390/net/ |
D | qeth_l3_main.c | 65 int count = 0, rc = 0; in qeth_l3_string_to_ipaddr4() local 69 rc = sscanf(buf, "%u.%u.%u.%u%c", in qeth_l3_string_to_ipaddr4() 71 if (rc != 4 && (rc != 5 || c != '\n')) in qeth_l3_string_to_ipaddr4() 176 int rc = 0; in qeth_l3_is_addr_covered_by_ipato() local 190 rc = !memcmp(addr_bits, ipatoe_bits, in qeth_l3_is_addr_covered_by_ipato() 193 rc = !memcmp(addr_bits, ipatoe_bits, in qeth_l3_is_addr_covered_by_ipato() 195 if (rc) in qeth_l3_is_addr_covered_by_ipato() 200 rc = !rc; in qeth_l3_is_addr_covered_by_ipato() 202 rc = !rc; in qeth_l3_is_addr_covered_by_ipato() 204 return rc; in qeth_l3_is_addr_covered_by_ipato() [all …]
|
D | qeth_core_sys.c | 123 int rc = 0; in qeth_dev_portno_store() local 131 rc = -EPERM; in qeth_dev_portno_store() 137 rc = -EINVAL; in qeth_dev_portno_store() 142 rc = -EINVAL; in qeth_dev_portno_store() 148 return rc ? rc : count; in qeth_dev_portno_store() 199 int rc = 0; in qeth_dev_prioqing_store() local 207 rc = -EPERM; in qeth_dev_prioqing_store() 216 rc = -EPERM; in qeth_dev_prioqing_store() 231 rc = -ENOTSUPP; in qeth_dev_prioqing_store() 252 rc = -EINVAL; in qeth_dev_prioqing_store() [all …]
|
D | qeth_l2_sys.c | 20 int rc = 0; in qeth_bridge_port_role_state_show() local 28 rc = qeth_bridgeport_query_ports(card, in qeth_bridge_port_role_state_show() 30 if (!rc) { in qeth_bridge_port_role_state_show() 40 rc = -EIO; in qeth_bridge_port_role_state_show() 51 rc = -EIO; in qeth_bridge_port_role_state_show() 53 if (rc) in qeth_bridge_port_role_state_show() 57 rc = sprintf(buf, "%s\n", word); in qeth_bridge_port_role_state_show() 60 return rc; in qeth_bridge_port_role_state_show() 73 int rc = 0; in qeth_bridge_port_role_store() local 90 rc = -EPERM; in qeth_bridge_port_role_store() [all …]
|
/linux-4.4.14/drivers/mtd/devices/ |
D | powernv_flash.c | 57 int rc; in powernv_flash_async_op() local 72 rc = opal_flash_read(info->id, offset, __pa(buf), len, token); in powernv_flash_async_op() 75 rc = opal_flash_write(info->id, offset, __pa(buf), len, token); in powernv_flash_async_op() 78 rc = opal_flash_erase(info->id, offset, len, token); in powernv_flash_async_op() 84 if (rc != OPAL_ASYNC_COMPLETION) { in powernv_flash_async_op() 86 op, rc); in powernv_flash_async_op() 91 rc = opal_async_wait_response(token, &msg); in powernv_flash_async_op() 93 if (rc) { in powernv_flash_async_op() 94 dev_err(dev, "opal async wait failed (rc %d)\n", rc); in powernv_flash_async_op() 98 rc = be64_to_cpu(msg.params[1]); in powernv_flash_async_op() [all …]
|
/linux-4.4.14/tools/usb/usbip/src/ |
D | usbipd.c | 99 int rc; in recv_request_import() local 103 rc = usbip_net_recv(sockfd, &req, sizeof(req)); in recv_request_import() 104 if (rc < 0) { in recv_request_import() 124 rc = usbip_host_export_device(edev, sockfd); in recv_request_import() 125 if (rc < 0) in recv_request_import() 132 rc = usbip_net_send_op_common(sockfd, OP_REP_IMPORT, in recv_request_import() 134 if (rc < 0) { in recv_request_import() 147 rc = usbip_net_send(sockfd, &pdu_udev, sizeof(pdu_udev)); in recv_request_import() 148 if (rc < 0) { in recv_request_import() 165 int rc, i; in send_reply_devlist() local [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/osc/ |
D | osc_request.c | 106 struct ptlrpc_request *req, void *data, int rc); 215 struct osc_async_args *aa, int rc) in osc_getattr_interpret() argument 219 if (rc != 0) in osc_getattr_interpret() 233 rc = -EPROTO; in osc_getattr_interpret() 237 rc = aa->aa_oi->oi_cb_up(aa->aa_oi, rc); in osc_getattr_interpret() 238 return rc; in osc_getattr_interpret() 246 int rc; in osc_getattr_async() local 252 rc = ptlrpc_request_pack(req, LUSTRE_OST_VERSION, OST_GETATTR); in osc_getattr_async() 253 if (rc) { in osc_getattr_async() 255 return rc; in osc_getattr_async() [all …]
|
/linux-4.4.14/drivers/scsi/cxlflash/ |
D | superpipe.c | 152 int rc; in get_context() local 192 rc = mutex_trylock(&ctxi->mutex); in get_context() 194 if (rc) in get_context() 254 int rc = 0; in afu_attach() local 265 rc = -EAGAIN; in afu_attach() 274 dev_dbg(dev, "%s: returning rc=%d\n", __func__, rc); in afu_attach() 275 return rc; in afu_attach() 311 int rc = 0; in read_cap16() local 321 rc = -ENOMEM; in read_cap16() 337 rc = check_state(cfg); in read_cap16() [all …]
|
D | main.c | 117 if (ioasa->rc.flags & SISL_RC_FLAGS_UNDERRUN) { in process_cmd_err() 124 if (ioasa->rc.flags & SISL_RC_FLAGS_OVERRUN) { in process_cmd_err() 132 __func__, ioasa->rc.afu_rc, ioasa->rc.scsi_rc, in process_cmd_err() 133 ioasa->rc.fc_rc, ioasa->afu_extra, ioasa->scsi_extra, in process_cmd_err() 136 if (ioasa->rc.scsi_rc) { in process_cmd_err() 138 if (ioasa->rc.flags & SISL_RC_FLAGS_SENSE_VALID) { in process_cmd_err() 141 scp->result = ioasa->rc.scsi_rc; in process_cmd_err() 143 scp->result = ioasa->rc.scsi_rc | (DID_ERROR << 16); in process_cmd_err() 150 if (ioasa->rc.fc_rc) { in process_cmd_err() 152 switch (ioasa->rc.fc_rc) { in process_cmd_err() [all …]
|
/linux-4.4.14/arch/s390/mm/ |
D | extmem.c | 107 int rc; in dcss_set_subcodes() local 125 : "+d" (rx), "+d" (ry), "=d" (rc) : : "cc"); in dcss_set_subcodes() 129 if (rc != 3) { in dcss_set_subcodes() 198 int rc; in dcss_diag() local 201 rc = dcss_set_subcodes(); in dcss_diag() 202 if (rc < 0) in dcss_diag() 203 return rc; in dcss_diag() 216 : "+d" (rx), "+d" (ry), "=d" (rc) : : "cc"); in dcss_diag() 225 : "+d" (rx), "+d" (ry), "=d" (rc) : : "cc"); in dcss_diag() 228 return rc; in dcss_diag() [all …]
|
/linux-4.4.14/drivers/s390/block/ |
D | dcssblk.c | 213 int i, j, rc; in dcssblk_is_continuous() local 248 rc = -EINVAL; in dcssblk_is_continuous() 262 rc = -EINVAL; in dcssblk_is_continuous() 267 rc = 0; in dcssblk_is_continuous() 270 return rc; in dcssblk_is_continuous() 279 int rc; in dcssblk_load_segment() local 296 rc = segment_load(name, SEGMENT_SHARED, in dcssblk_load_segment() 298 if (rc < 0) { in dcssblk_load_segment() 299 segment_warning(rc, (*seg_info)->segment_name); in dcssblk_load_segment() 303 (*seg_info)->segment_type = rc; in dcssblk_load_segment() [all …]
|
D | dasd_diag.c | 77 int rc; in __dia250() local 79 rc = 3; in __dia250() 87 : "+d" (rc), "=m" (*(addr_type *) iob) in __dia250() 90 return rc; in __dia250() 109 int rc; in mdsk_init_io() local 120 rc = dia250(iib, INIT_BIO); in mdsk_init_io() 122 if ((rc & 3) == 0 && end_block) in mdsk_init_io() 125 return rc; in mdsk_init_io() 135 int rc; in mdsk_term_io() local 141 rc = dia250(iib, TERM_BIO); in mdsk_term_io() [all …]
|
/linux-4.4.14/drivers/xen/ |
D | evtchn.c | 200 int rc; in evtchn_read() local 216 rc = -EFBIG; in evtchn_read() 230 rc = wait_event_interruptible(u->evtchn_wait, in evtchn_read() 232 if (rc) in evtchn_read() 233 return rc; in evtchn_read() 254 rc = -EFAULT; in evtchn_read() 262 rc = bytes1 + bytes2; in evtchn_read() 266 return rc; in evtchn_read() 272 int rc, i; in evtchn_write() local 282 rc = 0; in evtchn_write() [all …]
|
/linux-4.4.14/drivers/misc/ |
D | qcom-coincell.c | 42 int i, j, rc; in qcom_coincell_chgr_config() local 69 rc = regmap_write(chgr->regmap, in qcom_coincell_chgr_config() 71 if (rc) { in qcom_coincell_chgr_config() 79 return rc; in qcom_coincell_chgr_config() 82 rc = regmap_write(chgr->regmap, in qcom_coincell_chgr_config() 84 if (rc) in qcom_coincell_chgr_config() 85 return rc; in qcom_coincell_chgr_config() 99 int rc; in qcom_coincell_probe() local 109 rc = of_property_read_u32(node, "reg", &chgr.base_addr); in qcom_coincell_probe() 110 if (rc) in qcom_coincell_probe() [all …]
|
/linux-4.4.14/fs/proc/ |
D | vmcore.c | 274 int rc; in mmap_vmcore_fault() local 282 rc = __read_vmcore(buf, PAGE_SIZE, &offset, 0); in mmap_vmcore_fault() 283 if (rc < 0) { in mmap_vmcore_fault() 286 return (rc == -ENOMEM) ? VM_FAULT_OOM : VM_FAULT_SIGBUS; in mmap_vmcore_fault() 526 int i, rc=0; in update_note_header_size_elf64() local 541 rc = elfcorehdr_read_notes(notes_section, max_sz, &offset); in update_note_header_size_elf64() 542 if (rc < 0) { in update_note_header_size_elf64() 544 return rc; in update_note_header_size_elf64() 624 int i, rc=0; in copy_notes_elf64() local 634 rc = elfcorehdr_read_notes(notes_buf, phdr_ptr->p_memsz, in copy_notes_elf64() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/ |
D | coredump.c | 110 int size = 0, rc, fd; in spufs_coredump_extra_notes_size() local 114 rc = spu_acquire_saved(ctx); in spufs_coredump_extra_notes_size() 115 if (rc) in spufs_coredump_extra_notes_size() 117 rc = spufs_ctx_note_size(ctx, fd); in spufs_coredump_extra_notes_size() 119 if (rc < 0) in spufs_coredump_extra_notes_size() 122 size += rc; in spufs_coredump_extra_notes_size() 135 int sz, rc, total = 0; in spufs_arch_write_note() local 163 rc = do_coredump_read(i, ctx, buf, bufsz, &pos); in spufs_arch_write_note() 164 if (rc > 0) { in spufs_arch_write_note() 165 if (!dump_emit(cprm, buf, rc)) in spufs_arch_write_note() [all …]
|
/linux-4.4.14/drivers/mfd/ |
D | pm8921-core.c | 71 int rc; in pm8xxx_read_block_irq() local 74 rc = regmap_write(chip->regmap, SSBI_REG_ADDR_IRQ_BLK_SEL, bp); in pm8xxx_read_block_irq() 75 if (rc) { in pm8xxx_read_block_irq() 76 pr_err("Failed Selecting Block %d rc=%d\n", bp, rc); in pm8xxx_read_block_irq() 80 rc = regmap_read(chip->regmap, SSBI_REG_ADDR_IRQ_IT_STATUS, ip); in pm8xxx_read_block_irq() 81 if (rc) in pm8xxx_read_block_irq() 82 pr_err("Failed Reading Status rc=%d\n", rc); in pm8xxx_read_block_irq() 85 return rc; in pm8xxx_read_block_irq() 91 int rc; in pm8xxx_config_irq() local 94 rc = regmap_write(chip->regmap, SSBI_REG_ADDR_IRQ_BLK_SEL, bp); in pm8xxx_config_irq() [all …]
|
/linux-4.4.14/drivers/net/can/usb/ |
D | gs_usb.c | 231 int rc; in gs_cmd_reset() local 239 rc = usb_control_msg(interface_to_usbdev(intf), in gs_cmd_reset() 249 return rc; in gs_cmd_reset() 282 int rc; in gs_usb_receive_bulk_callback() local 383 rc = usb_submit_urb(urb, GFP_ATOMIC); in gs_usb_receive_bulk_callback() 386 if (rc == -ENODEV) { in gs_usb_receive_bulk_callback() 387 for (rc = 0; rc < GS_MAX_INTF; rc++) { in gs_usb_receive_bulk_callback() 388 if (usbcan->canch[rc]) in gs_usb_receive_bulk_callback() 389 netif_device_detach(usbcan->canch[rc]->netdev); in gs_usb_receive_bulk_callback() 399 int rc; in gs_usb_set_bittiming() local [all …]
|
/linux-4.4.14/drivers/media/pci/cx23885/ |
D | cx23885-input.c | 60 ir_raw_event_store(kernel_ir->rc, in cx23885_input_process_measurements() 67 ir_raw_event_reset(kernel_ir->rc); in cx23885_input_process_measurements() 69 ir_raw_event_handle(kernel_ir->rc); in cx23885_input_process_measurements() 219 static int cx23885_input_ir_open(struct rc_dev *rc) in cx23885_input_ir_open() argument 221 struct cx23885_kernel_ir *kernel_ir = rc->priv; in cx23885_input_ir_open() 257 static void cx23885_input_ir_close(struct rc_dev *rc) in cx23885_input_ir_close() argument 259 struct cx23885_kernel_ir *kernel_ir = rc->priv; in cx23885_input_ir_close() 268 struct rc_dev *rc; in cx23885_input_init() local 355 rc = rc_allocate_device(); in cx23885_input_init() 356 if (!rc) { in cx23885_input_init() [all …]
|