Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 200 of 2238) sorted by relevance

12345678910>>...12

/linux-4.1.27/drivers/media/dvb-frontends/drx39xyj/
Ddrxj.c1418 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.1.27/drivers/media/rc/keymaps/
DMakefile1 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.1.27/drivers/media/dvb-frontends/
Dmb86a20s.c235 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 …]
Ds921.c35 #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 …]
Dstb6100.c135 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.1.27/drivers/media/tuners/
Dr820t.c379 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 …]
Dtuner-xc2028.c304 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.1.27/drivers/uwb/
Dlc-rc.c46 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 …]
Dradio.c25 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 …]
Duwb-debug.c85 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 …]
Dneh.c106 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 …]
Ddrp-avail.c49 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 …]
Dreset.c71 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 …]
Duwbd.c205 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 …]
Drsv.c108 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 …]
Duwb-internal.h46 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 …]
Dbeacon.c43 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 …]
Ddrp.c58 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 …]
Daddress.c59 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 …]
Dpal.c43 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 …]
Dscan.c57 int uwb_rc_scan(struct uwb_rc *rc, in uwb_rc_scan() argument
69 mutex_lock(&rc->uwb_dev.mutex); in uwb_rc_scan()
77 result = uwb_rc_cmd(rc, "SCAN", &cmd->rccb, sizeof(*cmd), in uwb_rc_scan()
82 dev_err(&rc->uwb_dev.dev, in uwb_rc_scan()
88 rc->scanning = channel; in uwb_rc_scan()
89 rc->scan_type = type; in uwb_rc_scan()
91 mutex_unlock(&rc->uwb_dev.mutex); in uwb_rc_scan()
104 struct uwb_rc *rc = uwb_dev->rc; in uwb_rc_scan_show() local
107 mutex_lock(&rc->uwb_dev.mutex); in uwb_rc_scan_show()
108 result = sprintf(buf, "%d %d\n", rc->scanning, rc->scan_type); in uwb_rc_scan_show()
[all …]
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/
Ducode_loader.c42 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.1.27/security/selinux/ss/
Dpolicydb.c173 int rc; in roles_init() local
176 rc = -ENOMEM; in roles_init()
181 rc = -EINVAL; in roles_init()
186 rc = -ENOMEM; in roles_init()
191 rc = hashtab_insert(p->p_roles.table, key, role); in roles_init()
192 if (rc) in roles_init()
199 return rc; in roles_init()
269 int i, rc; in policydb_init() local
274 rc = symtab_init(&p->symtab[i], symtab_sizes[i]); in policydb_init()
275 if (rc) in policydb_init()
[all …]
Dconditional.c120 int rc; in cond_policydb_init() local
125 rc = avtab_init(&p->te_cond_avtab); in cond_policydb_init()
126 if (rc) in cond_policydb_init()
127 return rc; in cond_policydb_init()
226 int rc; in cond_read_bool() local
232 rc = next_entry(buf, fp, sizeof buf); in cond_read_bool()
233 if (rc) in cond_read_bool()
239 rc = -EINVAL; in cond_read_bool()
245 rc = -ENOMEM; in cond_read_bool()
249 rc = next_entry(key, fp, len); in cond_read_bool()
[all …]
Dservices.c753 int rc = 0; in security_validate_transition() local
765 rc = -EINVAL; in security_validate_transition()
774 rc = -EINVAL; in security_validate_transition()
782 rc = -EINVAL; in security_validate_transition()
790 rc = -EINVAL; in security_validate_transition()
798 rc = security_validtrans_handle_fail(ocontext, ncontext, in security_validate_transition()
807 return rc; in security_validate_transition()
824 int rc; in security_bounded_transition() local
828 rc = -EINVAL; in security_bounded_transition()
836 rc = -EINVAL; in security_bounded_transition()
[all …]
Dcontext.h42 int rc; in mls_context_cpy() local
45 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[0].cat); in mls_context_cpy()
46 if (rc) in mls_context_cpy()
50 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[1].cat); in mls_context_cpy()
51 if (rc) in mls_context_cpy()
54 return rc; in mls_context_cpy()
62 int rc; in mls_context_cpy_low() local
65 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[0].cat); in mls_context_cpy_low()
66 if (rc) in mls_context_cpy_low()
70 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[0].cat); in mls_context_cpy_low()
[all …]
/linux-4.1.27/drivers/media/usb/stk1160/
Dstk1160-i2c.c66 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.1.27/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-tcpip.c51 int rc; in libcfs_sock_ioctl() local
54 rc = sock_create (PF_INET, SOCK_STREAM, 0, &sock); in libcfs_sock_ioctl()
55 if (rc != 0) { in libcfs_sock_ioctl()
56 CERROR ("Can't create socket: %d\n", rc); in libcfs_sock_ioctl()
57 return rc; in libcfs_sock_ioctl()
63 rc = PTR_ERR(sock_filp); in libcfs_sock_ioctl()
69 rc = sock_filp->f_op->unlocked_ioctl(sock_filp, cmd, arg); in libcfs_sock_ioctl()
74 return rc; in libcfs_sock_ioctl()
82 int rc; in libcfs_ipif_query() local
94 rc = libcfs_sock_ioctl(SIOCGIFFLAGS, (unsigned long)&ifr); in libcfs_ipif_query()
[all …]
/linux-4.1.27/lib/
Ddecompress_unlzma.c67 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 …]
Dtest_firmware.c28 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.1.27/net/nfc/
Ddigital_technology.c144 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 …]
Ddigital_dep.c218 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 …]
Dcore.c47 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.1.27/fs/ecryptfs/
Dkeystore.c44 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 …]
Dmmap.c67 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 …]
Dcrypto.c96 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 …]
Dinode.c149 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()
185 int rc; in ecryptfs_do_create() local
192 rc = vfs_create(d_inode(lower_dir_dentry), lower_dentry, mode, true); in ecryptfs_do_create()
193 if (rc) { in ecryptfs_do_create()
195 "rc = [%d]\n", __func__, rc); in ecryptfs_do_create()
196 inode = ERR_PTR(rc); in ecryptfs_do_create()
[all …]
Dfile.c49 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 …]
Dmessaging.c54 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 …]
Dmiscdev.c80 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 …]
Dmain.c124 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 …]
Dread_write.c43 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.1.27/fs/cifs/
Dsmbencrypt.c71 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 …]
Dlink.c59 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 …]
Dcifsencrypt.c40 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 …]
Dtransport.c138 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 …]
Dsmb2transport.c45 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 …]
Dcifssmb.c118 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 …]
Dsmb2pdu.c147 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 …]
Dinode.c333 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 …]
Dfile.c117 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 …]
Dioctl.c41 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()
95 rc = -EINVAL; in cifs_ioctl_clone()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dllog.c113 int rc = 0; in llog_cancel_rec() local
136 rc = llog_destroy(env, loghandle); in llog_cancel_rec()
137 if (rc < 0) { in llog_cancel_rec()
142 loghandle->lgh_id.lgl_ogen, rc); in llog_cancel_rec()
149 rc = llog_write(env, loghandle, &llh->llh_hdr, NULL, 0, NULL, 0); in llog_cancel_rec()
150 if (rc < 0) { in llog_cancel_rec()
155 loghandle->lgh_id.lgl_ogen, rc); in llog_cancel_rec()
164 return rc; in llog_cancel_rec()
173 int rc; in llog_read_header() local
175 rc = llog_handle2ops(handle, &lop); in llog_read_header()
[all …]
Dllog_cat.c69 int rc, index, bitmap_size; in llog_cat_new_log() local
85 rc = llog_create(env, loghandle, th); in llog_cat_new_log()
87 if (rc == -EEXIST) { in llog_cat_new_log()
89 } else if (rc != 0) { in llog_cat_new_log()
91 loghandle->lgh_ctxt->loc_obd->obd_name, rc); in llog_cat_new_log()
92 return rc; in llog_cat_new_log()
95 rc = llog_init_handle(env, loghandle, in llog_cat_new_log()
98 if (rc) in llog_cat_new_log()
131 rc = llog_write_rec(env, cathandle, &rec.lid_hdr, in llog_cat_new_log()
133 if (rc < 0) in llog_cat_new_log()
[all …]
Ddt_object.c83 int rc = 0; in dt_txn_hook_start() local
93 rc = cb->dtc_txn_start(env, th, cb->dtc_cookie); in dt_txn_hook_start()
94 if (rc < 0) in dt_txn_hook_start()
97 return rc; in dt_txn_hook_start()
105 int rc = 0; in dt_txn_hook_stop() local
114 rc = cb->dtc_txn_stop(env, txn, cb->dtc_cookie); in dt_txn_hook_stop()
115 if (rc < 0) in dt_txn_hook_stop()
118 return rc; in dt_txn_hook_stop()
268 int rc = 0; in dt_path_parser() local
280 rc = entry_func(env, e, data); in dt_path_parser()
[all …]
Dobd_mount.c82 int rc; in lustre_process_log() local
97 rc = obd_process_config(mgc, sizeof(*lcfg), lcfg); in lustre_process_log()
102 if (rc == -EINVAL) in lustre_process_log()
104 mgc->obd_name, logname, rc); in lustre_process_log()
106 if (rc) in lustre_process_log()
109 rc); in lustre_process_log()
112 return rc; in lustre_process_log()
124 int rc; in lustre_end_log() local
135 rc = obd_process_config(mgc, sizeof(*lcfg), lcfg); in lustre_end_log()
137 return rc; in lustre_end_log()
[all …]
Dllog_obd.c76 int rc = 0; in __llog_ctxt_put() local
81 return rc; in __llog_ctxt_put()
100 rc = CTXTP(ctxt, cleanup)(env, ctxt); in __llog_ctxt_put()
104 return rc; in __llog_ctxt_put()
112 int rc, idx; in llog_cleanup() local
133 rc = __llog_ctxt_put(env, ctxt); in llog_cleanup()
134 if (rc) in llog_cleanup()
136 rc, ctxt); in llog_cleanup()
141 return rc; in llog_cleanup()
150 int rc = 0; in llog_setup() local
[all …]
/linux-4.1.27/drivers/acpi/apei/
Derst.c157 int rc; in erst_exec_add_value() local
160 rc = __apei_exec_read_register(entry, &val); in erst_exec_add_value()
161 if (rc) in erst_exec_add_value()
162 return rc; in erst_exec_add_value()
164 rc = __apei_exec_write_register(entry, val); in erst_exec_add_value()
165 return rc; in erst_exec_add_value()
171 int rc; in erst_exec_subtract_value() local
174 rc = __apei_exec_read_register(entry, &val); in erst_exec_subtract_value()
175 if (rc) in erst_exec_subtract_value()
176 return rc; in erst_exec_subtract_value()
[all …]
Derst-dbg.c46 int rc, *pos; in erst_dbg_open() local
53 rc = erst_get_record_id_begin(pos); in erst_dbg_open()
54 if (rc) in erst_dbg_open()
55 return rc; in erst_dbg_open()
69 int rc; in erst_dbg_ioctl() local
75 rc = copy_from_user(&record_id, (void __user *)arg, in erst_dbg_ioctl()
77 if (rc) in erst_dbg_ioctl()
81 rc = erst_get_record_count(); in erst_dbg_ioctl()
82 if (rc < 0) in erst_dbg_ioctl()
83 return rc; in erst_dbg_ioctl()
[all …]
Dapei-base.c71 int rc; in __apei_exec_read_register() local
73 rc = apei_read(val, &entry->register_region); in __apei_exec_read_register()
74 if (rc) in __apei_exec_read_register()
75 return rc; in __apei_exec_read_register()
85 int rc; in apei_exec_read_register() local
88 rc = __apei_exec_read_register(entry, &val); in apei_exec_read_register()
89 if (rc) in apei_exec_read_register()
90 return rc; in apei_exec_read_register()
100 int rc; in apei_exec_read_register_value() local
102 rc = apei_exec_read_register(ctx, entry); in apei_exec_read_register_value()
[all …]
Deinj.c160 int rc; in __einj_get_available_error_type() local
163 rc = apei_exec_run(&ctx, ACPI_EINJ_GET_ERROR_TYPE); in __einj_get_available_error_type()
164 if (rc) in __einj_get_available_error_type()
165 return rc; in __einj_get_available_error_type()
174 int rc; in einj_get_available_error_type() local
177 rc = __einj_get_available_error_type(type); in einj_get_available_error_type()
180 return rc; in einj_get_available_error_type()
308 int rc = -EIO; in __einj_error_trigger() local
326 rc = einj_check_trigger_header(trigger_tab); in __einj_error_trigger()
327 if (rc) { in __einj_error_trigger()
[all …]
/linux-4.1.27/fs/dlm/
Drcom.c35 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 …]
Dutil.c134 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.1.27/drivers/char/tpm/
Dtpm_ibmvtpm.c128 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 …]
Dtpm-sysfs.c36 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 …]
Dtpm_i2c_nuvoton.c180 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 …]
Dtpm-chip.c142 int rc; in tpm_dev_add_device() local
144 rc = cdev_add(&chip->cdev, chip->dev.devt, 1); in tpm_dev_add_device()
145 if (rc) { in tpm_dev_add_device()
149 MINOR(chip->dev.devt), rc); in tpm_dev_add_device()
152 return rc; in tpm_dev_add_device()
155 rc = device_add(&chip->dev); in tpm_dev_add_device()
156 if (rc) { in tpm_dev_add_device()
160 MINOR(chip->dev.devt), rc); in tpm_dev_add_device()
162 return rc; in tpm_dev_add_device()
165 return rc; in tpm_dev_add_device()
[all …]
Dtpm-interface.c334 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 …]
/linux-4.1.27/drivers/input/keyboard/
Dpmic8xxx-keypad.c139 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.1.27/drivers/staging/lustre/lnet/selftest/
Dconsole.c146 int rc; in lstcon_ndlink_find() local
165 rc = lstcon_node_find(id, &nd, (create == 1) ? 1 : 0); in lstcon_ndlink_find()
166 if (rc != 0) in lstcon_ndlink_find()
167 return rc; in lstcon_ndlink_find()
291 int rc; in lstcon_group_ndlink_find() local
293 rc = lstcon_ndlink_find(&grp->grp_ndl_hash[0], id, ndlpp, create); in lstcon_group_ndlink_find()
294 if (rc != 0) in lstcon_group_ndlink_find()
295 return rc; in lstcon_group_ndlink_find()
412 int rc; in lstcon_group_nodes_add() local
414 rc = lstcon_group_alloc(NULL, &tmp); in lstcon_group_nodes_add()
[all …]
Dconctl.c52 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.1.27/drivers/memstick/core/
Dmspro_block.c189 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.1.27/arch/s390/kvm/
Dsigp.c28 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 …]
Dintercept.c72 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.1.27/arch/powerpc/platforms/pseries/
Ddlpar.c143 int rc = -1; in dlpar_configure_connector() local
165 rc = rtas_call(cc_token, 2, 1, NULL, rtas_data_buf, NULL); in dlpar_configure_connector()
170 switch (rc) { in dlpar_configure_connector()
229 "returned from configure-connector\n", rc); in dlpar_configure_connector()
232 } while (rc); in dlpar_configure_connector()
237 if (rc) { in dlpar_configure_connector()
272 int rc; in dlpar_attach_node() local
278 rc = of_attach_node(dn); in dlpar_attach_node()
279 if (rc) { in dlpar_attach_node()
282 return rc; in dlpar_attach_node()
[all …]
Dsuspend.c47 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 …]
Dmobility.c45 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 …]
Dhotplug-memory.c195 int rc = 1; in lmb_is_removable() local
211 rc &= is_mem_section_removable(pfn, PAGES_PER_SECTION); in lmb_is_removable()
215 return rc ? true : false; in lmb_is_removable()
224 int nid, rc; in dlpar_remove_lmb() local
233 rc = device_offline(&mem_block->dev); in dlpar_remove_lmb()
235 if (rc) in dlpar_remove_lmb()
236 return rc; in dlpar_remove_lmb()
259 int i, rc; in dlpar_memory_remove_by_count() local
280 rc = dlpar_remove_lmb(&lmbs[i]); in dlpar_memory_remove_by_count()
281 if (rc) in dlpar_memory_remove_by_count()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dptlrpc_module.c56 int rc, cleanup_phase = 0; in ptlrpc_init() local
67 rc = req_layout_init(); in ptlrpc_init()
68 if (rc) in ptlrpc_init()
69 return rc; in ptlrpc_init()
71 rc = ptlrpc_hr_init(); in ptlrpc_init()
72 if (rc) in ptlrpc_init()
73 return rc; in ptlrpc_init()
76 rc = ptlrpc_request_cache_init(); in ptlrpc_init()
77 if (rc) in ptlrpc_init()
81 rc = ptlrpc_init_portals(); in ptlrpc_init()
[all …]
Dniobuf.c55 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()
118 int rc = 0; in ptlrpc_register_bulk() local
179 rc = LNetMEAttach(desc->bd_portal, peer, xid, 0, in ptlrpc_register_bulk()
[all …]
Dllog_client.c87 int rc; in llog_client_open() local
97 rc = -ENOMEM; in llog_client_open()
105 rc = ptlrpc_request_pack(req, LUSTRE_LOG_VERSION, in llog_client_open()
107 if (rc) { in llog_client_open()
127 rc = ptlrpc_queue_wait(req); in llog_client_open()
128 if (rc) in llog_client_open()
133 rc = -EFAULT; in llog_client_open()
142 return rc; in llog_client_open()
151 int rc; in llog_client_destroy() local
158 rc = -ENOMEM; in llog_client_destroy()
[all …]
/linux-4.1.27/drivers/leds/
Dleds-pm8941-wled.c93 int rc; in pm8941_wled_set() local
103 rc = regmap_update_bits(wled->regmap, in pm8941_wled_set()
106 if (rc) in pm8941_wled_set()
107 return rc; in pm8941_wled_set()
112 rc = regmap_bulk_write(wled->regmap, in pm8941_wled_set()
115 if (rc) in pm8941_wled_set()
116 return rc; in pm8941_wled_set()
119 rc = regmap_update_bits(wled->regmap, in pm8941_wled_set()
122 if (rc) in pm8941_wled_set()
123 return rc; in pm8941_wled_set()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/mdc/
Dmdc_request.c88 int rc; in mdc_queue_wait() local
93 rc = mdc_enter_request(cli); in mdc_queue_wait()
94 if (rc != 0) in mdc_queue_wait()
95 return rc; in mdc_queue_wait()
97 rc = ptlrpc_queue_wait(req); in mdc_queue_wait()
100 return rc; in mdc_queue_wait()
110 int rc; in send_getstatus() local
123 rc = ptlrpc_queue_wait(req); in send_getstatus()
124 if (rc) in send_getstatus()
129 rc = -EPROTO; in send_getstatus()
[all …]
Dmdc_reint.c51 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
138 rc = mdc_prep_elc_req(exp, req, MDS_REINT, &cancels, count); in mdc_setattr()
139 if (rc) { in mdc_setattr()
141 return rc; in mdc_setattr()
[all …]
Dmdc_locks.c160 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.1.27/security/selinux/
Dnetlabel.c60 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 …]
Dhooks.c371 int rc; in may_context_mount_sb_relabel() local
373 rc = avc_has_perm(tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_sb_relabel()
375 if (rc) in may_context_mount_sb_relabel()
376 return rc; in may_context_mount_sb_relabel()
378 rc = avc_has_perm(tsec->sid, sid, SECCLASS_FILESYSTEM, in may_context_mount_sb_relabel()
380 return rc; in may_context_mount_sb_relabel()
388 int rc; in may_context_mount_inode_relabel() local
389 rc = avc_has_perm(tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, in may_context_mount_inode_relabel()
391 if (rc) in may_context_mount_inode_relabel()
392 return rc; in may_context_mount_inode_relabel()
[all …]
/linux-4.1.27/drivers/net/phy/
Dsmsc.c29 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()
46 int rc = phy_read(phydev, MII_LAN83C185_CTRL_STATUS); in smsc_phy_config_init() local
48 if (rc < 0) in smsc_phy_config_init()
49 return rc; in smsc_phy_config_init()
52 rc = phy_write(phydev, MII_LAN83C185_CTRL_STATUS, in smsc_phy_config_init()
53 rc | MII_LAN83C185_EDPWRDOWN); in smsc_phy_config_init()
54 if (rc < 0) in smsc_phy_config_init()
[all …]
/linux-4.1.27/drivers/ata/
Dlibahci_platform.c51 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.1.27/drivers/media/usb/au0828/
Dau0828-input.c36 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.1.27/drivers/staging/lustre/lnet/lnet/
Dacceptor.c96 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 = libcfs_sock_connect(&sock, &fatal, in lnet_connect()
161 if (rc != 0) { in lnet_connect()
187 rc = libcfs_sock_write(sock, &cr, sizeof(cr), in lnet_connect()
189 if (rc != 0) in lnet_connect()
196 rc = -EADDRINUSE; in lnet_connect()
202 lnet_connect_console_error(rc, peer_nid, peer_ip, peer_port); in lnet_connect()
[all …]
Dmodule.c50 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 …]
Dapi-ni.c74 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()
489 int rc = 0; in lnet_res_container_setup() local
499 rc = lnet_freelist_init(&rec->rec_freelist, objnum, objsz); in lnet_res_container_setup()
500 if (rc != 0) in lnet_res_container_setup()
509 rc = -ENOMEM; in lnet_res_container_setup()
522 return rc; in lnet_res_container_setup()
542 int rc; in lnet_res_containers_create() local
553 rc = lnet_res_container_setup(rec, i, type, objnum, objsz); in lnet_res_containers_create()
[all …]
/linux-4.1.27/arch/s390/oprofile/
Dhwsampler.c33 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.1.27/drivers/rtc/
Drtc-pm8xxx.c83 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 …]
Drtc-opal.c60 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 …]
Drtc-imxdi.c193 int rc = 0; in di_write_wait() local
210 rc = ret; in di_write_wait()
221 rc = -EIO; in di_write_wait()
227 return rc; in di_write_wait()
251 int rc; in dryice_rtc_set_mmss() local
254 rc = di_write_wait(imxdi, 0, DTCLR); in dryice_rtc_set_mmss()
255 if (rc == 0) in dryice_rtc_set_mmss()
256 rc = di_write_wait(imxdi, secs, DTCMR); in dryice_rtc_set_mmss()
258 return rc; in dryice_rtc_set_mmss()
308 int rc; in dryice_rtc_set_alarm() local
[all …]
/linux-4.1.27/security/integrity/ima/
Dima_crypto.c72 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 …]
Dima_init.c114 int rc; in ima_init() local
117 rc = tpm_pcr_read(TPM_ANY_NUM, 0, pcr_i); in ima_init()
118 if (rc == 0) in ima_init()
124 rc = ima_init_keyring(INTEGRITY_KEYRING_IMA); in ima_init()
125 if (rc) in ima_init()
126 return rc; in ima_init()
128 rc = ima_init_crypto(); in ima_init()
129 if (rc) in ima_init()
130 return rc; in ima_init()
131 rc = ima_init_template(); in ima_init()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dobd_class.h348 int rc; in obd_check_dev_active() local
350 rc = obd_check_dev(obd); in obd_check_dev_active()
351 if (rc) in obd_check_dev_active()
352 return rc; in obd_check_dev_active()
357 return rc; in obd_check_dev_active()
512 int rc; in obd_get_info() local
517 rc = OBP(exp->exp_obd, get_info)(env, exp, keylen, key, vallen, val, in obd_get_info()
519 return rc; in obd_get_info()
527 int rc; in obd_set_info_async() local
532 rc = OBP(exp->exp_obd, set_info_async)(env, exp, keylen, key, vallen, in obd_set_info_async()
[all …]
/linux-4.1.27/drivers/s390/char/
Dsclp_cpi_sys.c129 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 …]
Dvmur.c272 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 …]
Dsclp_cmd.c47 int rc; in sclp_sync_request_timeout() local
62 rc = sclp_add_request(request); in sclp_sync_request_timeout()
63 if (rc) in sclp_sync_request_timeout()
71 rc = -EIO; in sclp_sync_request_timeout()
75 return rc; in sclp_sync_request_timeout()
111 int rc; in sclp_get_cpu_info() local
120 rc = sclp_sync_request_timeout(SCLP_CMDW_READ_CPU_INFO, sccb, in sclp_get_cpu_info()
122 if (rc) in sclp_get_cpu_info()
127 rc = -EIO; in sclp_get_cpu_info()
133 return rc; in sclp_get_cpu_info()
[all …]
Dtape_char.c133 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 …]
Dfs3270.c66 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 …]
Dmonreader.c152 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 …]
Dsclp_async.c71 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 …]
Dsclp.c67 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 && drop) 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 …]
Dtape_core.c133 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 …]
Dtape_std.c39 int rc; in tape_std_assign_timeout() local
47 rc = tape_cancel_io(device, request); in tape_std_assign_timeout()
48 if(rc) in tape_std_assign_timeout()
50 "%i\n", device->cdev_id, rc); in tape_std_assign_timeout()
56 int rc; in tape_std_assign() local
79 rc = tape_do_io_interruptible(device, request); in tape_std_assign()
84 if (rc != 0) { in tape_std_assign()
91 return rc; in tape_std_assign()
100 int rc; in tape_std_unassign() local
117 if ((rc = tape_do_io(device, request)) != 0) { in tape_std_unassign()
[all …]
Dsclp_sdias.c62 int rc; in sdias_sclp_send() local
66 rc = sclp_add_request(req); in sdias_sclp_send()
67 if (rc) { in sdias_sclp_send()
70 TRACE("add request failed: rc = %i\n",rc); in sdias_sclp_send()
108 int rc; in sclp_sdias_blk_count() local
128 rc = sdias_sclp_send(&request); in sclp_sdias_blk_count()
129 if (rc) { in sclp_sdias_blk_count()
135 rc = -EIO; in sclp_sdias_blk_count()
141 rc = sdias_evbuf.blk_cnt; in sclp_sdias_blk_count()
145 rc = -EIO; in sclp_sdias_blk_count()
[all …]
/linux-4.1.27/arch/s390/pci/
Dpci_clp.c19 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.1.27/Documentation/ia64/
Daliasing-test.c29 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.1.27/drivers/power/reset/
Dbrcmstb-reboot.c48 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.1.27/drivers/clk/
Dclk-conf.c20 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.1.27/drivers/video/backlight/
Dtps65217_bl.c37 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 …]
Dlcd.c95 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.1.27/drivers/media/rc/
Diguanair.c34 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 …]
Drc-loopback.c181 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 …]
Dttusbir.c40 struct rc_dev *rc; member
136 if (ir_raw_event_store_with_filter(tt->rc, &rawir)) in ttusbir_process_ir_data()
142 if (ir_raw_event_store_with_filter(tt->rc, &rawir)) in ttusbir_process_ir_data()
156 if (ir_raw_event_store_with_filter(tt->rc, &rawir)) in ttusbir_process_ir_data()
161 if (ir_raw_event_store_with_filter(tt->rc, &rawir)) in ttusbir_process_ir_data()
169 ir_raw_event_handle(tt->rc); in ttusbir_process_ir_data()
175 int rc; in ttusbir_urb_complete() local
192 rc = usb_submit_urb(urb, GFP_ATOMIC); in ttusbir_urb_complete()
193 if (rc && rc != -ENODEV) in ttusbir_urb_complete()
194 dev_warn(tt->dev, "failed to resubmit urb: %d\n", rc); in ttusbir_urb_complete()
[all …]
Dsunxi-cir.c90 struct rc_dev *rc; member
104 unsigned int cnt, rc; in sunxi_ir_irq() local
117 rc = REG_RXSTA_GET_AC(status); in sunxi_ir_irq()
119 rc = rc > ir->fifo_size ? ir->fifo_size : rc; in sunxi_ir_irq()
121 for (cnt = 0; cnt < rc; cnt++) { in sunxi_ir_irq()
126 ir_raw_event_store_with_filter(ir->rc, &rawir); in sunxi_ir_irq()
131 ir_raw_event_reset(ir->rc); in sunxi_ir_irq()
133 ir_raw_event_set_idle(ir->rc, true); in sunxi_ir_irq()
134 ir_raw_event_handle(ir->rc); in sunxi_ir_irq()
215 ir->rc = rc_allocate_device(); in sunxi_ir_probe()
[all …]
/linux-4.1.27/security/smack/
Dsmack_lsm.c91 struct smack_known *oskp, int mode, int rc) in smk_bu_note() argument
95 if (rc <= 0) in smk_bu_note()
96 return rc; in smk_bu_note()
97 if (rc > SMACK_UNCONFINED_OBJECT) in smk_bu_note()
98 rc = 0; in smk_bu_note()
101 pr_info("Smack %s: (%s %s %s) %s\n", smk_bu_mess[rc], in smk_bu_note()
111 int mode, int rc) in smk_bu_current() argument
116 if (rc <= 0) in smk_bu_current()
117 return rc; in smk_bu_current()
118 if (rc > SMACK_UNCONFINED_OBJECT) in smk_bu_current()
[all …]
Dsmackfs.c234 int rc = 0; in smk_set_access() local
255 rc = -ENOMEM; in smk_set_access()
274 rc = -ENOMEM; in smk_set_access()
280 return rc; in smk_set_access()
400 int rc; in smk_parse_rule() local
402 rc = smk_fill_rule(data, data + SMK_LABELLEN, in smk_parse_rule()
405 return rc; in smk_parse_rule()
422 int rc; in smk_parse_long_rule() local
447 rc = smk_fill_rule(tok[0], tok[1], tok[2], tok[3], rule, import, 0); in smk_parse_long_rule()
448 return rc == 0 ? cnt : rc; in smk_parse_long_rule()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
Dmodule.c257 int rc = 0; in libcfs_register_ioctl() local
261 rc = -EBUSY; in libcfs_register_ioctl()
266 return rc; in libcfs_register_ioctl()
272 int rc = 0; in libcfs_deregister_ioctl() local
276 rc = -ENOENT; in libcfs_deregister_ioctl()
281 return rc; in libcfs_deregister_ioctl()
392 int rc; in init_libcfs_module() local
402 rc = libcfs_debug_init(5 * 1024 * 1024); in init_libcfs_module()
403 if (rc < 0) { in init_libcfs_module()
404 pr_err("LustreError: libcfs_debug_init: %d\n", rc); in init_libcfs_module()
[all …]
/linux-4.1.27/arch/powerpc/platforms/powernv/
Dopal-dump.c80 int rc; in dump_send_ack() local
82 rc = opal_dump_ack(dump_id); in dump_send_ack()
83 if (rc) in dump_send_ack()
85 __func__, dump_id, rc); in dump_send_ack()
86 return rc; in dump_send_ack()
120 int rc; in dump_fips_init() local
122 rc = opal_dump_init(type); in dump_fips_init()
123 if (rc) in dump_fips_init()
125 __func__, rc); in dump_fips_init()
126 return rc; in dump_fips_init()
[all …]
Dsetup.c131 long rc = OPAL_BUSY; in pnv_restart() local
135 while (rc == OPAL_BUSY || rc == OPAL_BUSY_EVENT) { in pnv_restart()
136 rc = opal_cec_reboot(); in pnv_restart()
137 if (rc == OPAL_BUSY_EVENT) in pnv_restart()
148 long rc = OPAL_BUSY; in pnv_power_off() local
152 while (rc == OPAL_BUSY || rc == OPAL_BUSY_EVENT) { in pnv_power_off()
153 rc = opal_cec_power_down(0); in pnv_power_off()
154 if (rc == OPAL_BUSY_EVENT) in pnv_power_off()
209 int64_t rc; in pnv_kexec_wait_secondaries_down() local
215 rc = opal_query_cpu_status(get_hard_smp_processor_id(i), in pnv_kexec_wait_secondaries_down()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Ddir.c159 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()
213 if (rc < 0 || i >= nrdpgs) { in ll_dir_filler()
243 return rc; in ll_dir_filler()
347 int rc; in ll_get_dir_page() local
355 rc = md_lock_match(ll_i2sbi(dir)->ll_md_exp, LDLM_FL_BLOCK_GRANTED, in ll_get_dir_page()
357 if (!rc) { in ll_get_dir_page()
373 rc = md_enqueue(ll_i2sbi(dir)->ll_md_exp, &einfo, &it, in ll_get_dir_page()
[all …]
Dfile.c136 int rc; in ll_close_inode_openhandle() local
145 rc = 0; in ll_close_inode_openhandle()
152 rc = -ENOMEM; in ll_close_inode_openhandle()
165 rc = md_close(md_exp, op_data, och->och_mod, &req); in ll_close_inode_openhandle()
166 if (rc == -EAGAIN) { in ll_close_inode_openhandle()
171 rc = ll_som_update(inode, op_data); in ll_close_inode_openhandle()
172 if (rc) { in ll_close_inode_openhandle()
174 inode->i_ino, rc); in ll_close_inode_openhandle()
175 rc = 0; in ll_close_inode_openhandle()
177 } else if (rc) { in ll_close_inode_openhandle()
[all …]
Dxattr.c113 int xattr_type, rc; in ll_setxattr_common() local
123 rc = xattr_type_filter(sbi, xattr_type); in ll_setxattr_common()
124 if (rc) in ll_setxattr_common()
125 return rc; in ll_setxattr_common()
192 rc = md_setxattr(sbi->ll_md_exp, ll_inode2fid(inode), oc, in ll_setxattr_common()
202 if (rc) { in ll_setxattr_common()
203 if (rc == -EOPNOTSUPP && xattr_type == XATTR_USER_T) { in ll_setxattr_common()
207 return rc; in ll_setxattr_common()
234 int rc = 0; in ll_setxattr() local
250 rc = ll_lov_setstripe_ea_info(inode, dentry, flags, lump, in ll_setxattr()
[all …]
Dxattr_cache.c257 int rc; in ll_xattr_cache_destroy() local
262 rc = ll_xattr_cache_destroy_locked(lli); in ll_xattr_cache_destroy()
265 return rc; in ll_xattr_cache_destroy()
293 int rc; in ll_xattr_find_get_lock() local
322 rc = md_enqueue(exp, &einfo, oit, op_data, &lockh, NULL, 0, NULL, 0); in ll_xattr_find_get_lock()
325 if (rc < 0) { in ll_xattr_find_get_lock()
328 rc, PFID(ll_inode2fid(inode))); in ll_xattr_find_get_lock()
330 return rc; in ll_xattr_find_get_lock()
360 int rc = 0, i; in ll_xattr_cache_refill() local
364 rc = ll_xattr_find_get_lock(inode, oit, &req); in ll_xattr_cache_refill()
[all …]
/linux-4.1.27/arch/powerpc/include/asm/
Dplpar_wrappers.h41 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.1.27/arch/powerpc/kvm/
Dbook3s_rtas.c24 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.1.27/drivers/staging/lustre/lustre/lmv/
Dlmv_obd.c82 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 …]
Dlmv_intent.c69 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.1.27/drivers/staging/lustre/lustre/fid/
Dfid_request.c65 int rc; in seq_client_rpc() local
112 rc = ptlrpc_queue_wait(req); in seq_client_rpc()
115 if (rc) in seq_client_rpc()
124 rc = -EINVAL; in seq_client_rpc()
131 rc = -EINVAL; in seq_client_rpc()
140 return rc; in seq_client_rpc()
147 int rc; in seq_client_alloc_super() local
152 rc = 0; in seq_client_alloc_super()
161 rc = seq_client_rpc(seq, &seq->lcs_space, in seq_client_alloc_super()
165 return rc; in seq_client_alloc_super()
[all …]
/linux-4.1.27/drivers/pci/hotplug/
Dcpqphp_nvram.c205 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 …]
Dibmphp_hpc.c259 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 …]
Dibmphp_core.c77 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 …]
Drpaphp_pci.c37 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 …]
Dsgi_hotplug.c236 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.1.27/drivers/net/ethernet/sfc/
Dmcdi.c61 int rc; in efx_mcdi_init() local
82 rc = efx_mcdi_handle_assertion(efx); in efx_mcdi_init()
83 if (rc) in efx_mcdi_init()
84 return rc; in efx_mcdi_init()
89 rc = efx_mcdi_drv_attach(efx, true, &already_attached); in efx_mcdi_init()
90 if (rc) { in efx_mcdi_init()
93 return rc; in efx_mcdi_init()
263 int rc; in efx_mcdi_poll() local
266 rc = efx_mcdi_poll_reboot(efx); in efx_mcdi_poll()
267 if (rc) { in efx_mcdi_poll()
[all …]
Def10.c103 int rc; in efx_ef10_init_datapath_caps() local
107 rc = efx_mcdi_rpc(efx, MC_CMD_GET_CAPABILITIES, NULL, 0, in efx_ef10_init_datapath_caps()
109 if (rc) in efx_ef10_init_datapath_caps()
110 return rc; in efx_ef10_init_datapath_caps()
140 int rc; in efx_ef10_get_sysclk_freq() local
142 rc = efx_mcdi_rpc(efx, MC_CMD_GET_CLOCK, NULL, 0, in efx_ef10_get_sysclk_freq()
144 if (rc) in efx_ef10_get_sysclk_freq()
145 return rc; in efx_ef10_get_sysclk_freq()
146 rc = MCDI_DWORD(outbuf, GET_CLOCK_OUT_SYS_FREQ); in efx_ef10_get_sysclk_freq()
147 return rc > 0 ? rc : -ERANGE; in efx_ef10_get_sysclk_freq()
[all …]
Dmcdi_port.c41 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 …]
Defx.c347 int rc; in efx_init_eventq() local
354 rc = efx_nic_init_eventq(channel); in efx_init_eventq()
355 if (rc == 0) { in efx_init_eventq()
360 return rc; in efx_init_eventq()
489 int rc; in efx_probe_channel() local
494 rc = channel->type->pre_probe(channel); in efx_probe_channel()
495 if (rc) in efx_probe_channel()
498 rc = efx_probe_eventq(channel); in efx_probe_channel()
499 if (rc) in efx_probe_channel()
503 rc = efx_probe_tx_queue(tx_queue); in efx_probe_channel()
[all …]
/linux-4.1.27/tools/testing/selftests/efivarfs/
Dopen-unlink.c16 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.1.27/fs/jffs2/
Dacl.c179 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.1.27/drivers/staging/lustre/lnet/klnds/socklnd/
Dsocklnd_lib-linux.c42 int rc = libcfs_sock_getaddr(conn->ksnc_sock, 1, in ksocknal_lib_get_conn_addrs() local
49 if (rc != 0) { in ksocknal_lib_get_conn_addrs()
50 CERROR("Error %d getting sock peer IP\n", rc); in ksocknal_lib_get_conn_addrs()
51 return rc; in ksocknal_lib_get_conn_addrs()
54 rc = libcfs_sock_getaddr(conn->ksnc_sock, 0, in ksocknal_lib_get_conn_addrs()
56 if (rc != 0) { in ksocknal_lib_get_conn_addrs()
57 CERROR("Error %d getting sock local IP\n", rc); in ksocknal_lib_get_conn_addrs()
58 return rc; in ksocknal_lib_get_conn_addrs()
82 int rc; in ksocknal_lib_send_iov() local
114 rc = kernel_sendmsg(sock, &msg, scratchiov, niov, nob); in ksocknal_lib_send_iov()
[all …]
/linux-4.1.27/net/x25/
Daf_x25.c94 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.1.27/drivers/media/usb/tm6000/
Dtm6000-input.c60 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 …]
Dtm6000-i2c.c48 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.1.27/drivers/net/ieee802154/
Dat86rf230.c326 int rc; in at86rf230_read_subreg() local
328 rc = __at86rf230_read(lp, addr, data); in at86rf230_read_subreg()
329 if (!rc) in at86rf230_read_subreg()
332 return rc; in at86rf230_read_subreg()
400 bool rc; in at86rf230_reg_readable() local
403 rc = at86rf230_reg_writeable(dev, reg); in at86rf230_reg_readable()
404 if (rc) in at86rf230_reg_readable()
405 return rc; in at86rf230_reg_readable()
479 struct at86rf230_state_change *ctx, int rc) in at86rf230_async_error() argument
481 dev_err(&lp->spi->dev, "spi_async error %d\n", rc); in at86rf230_async_error()
[all …]
/linux-4.1.27/net/llc/
Daf_llc.c97 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 …]
Dllc_s_ac.c55 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.1.27/drivers/i2c/busses/
Di2c-bcm-kona.c255 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 …]
Di2c-powermac.c45 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 …]
Di2c-opal.c31 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.1.27/drivers/s390/crypto/
Dzcrypt_pcixcc.c173 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.1.27/net/sunrpc/xprtrdma/
Dverbs.c225 int budget, count, rc; in rpcrdma_sendcq_poll() local
231 rc = ib_poll_cq(cq, RPCRDMA_POLLSIZE, wcs); in rpcrdma_sendcq_poll()
232 if (rc <= 0) in rpcrdma_sendcq_poll()
233 return rc; in rpcrdma_sendcq_poll()
235 count = rc; in rpcrdma_sendcq_poll()
238 } while (rc == RPCRDMA_POLLSIZE && --budget); in rpcrdma_sendcq_poll()
254 int rc; in rpcrdma_sendcq_upcall() local
256 rc = rpcrdma_sendcq_poll(cq, ep); in rpcrdma_sendcq_upcall()
257 if (rc) { in rpcrdma_sendcq_upcall()
259 __func__, rc); in rpcrdma_sendcq_upcall()
[all …]
/linux-4.1.27/arch/s390/kernel/
Ddebug.c246 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.1.27/fs/jfs/
Dacl.c79 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 …]
Dnamei.c78 int rc = 0; in jfs_create() local
95 if ((rc = get_UCSname(&dname, dentry))) in jfs_create()
105 rc = PTR_ERR(ip); in jfs_create()
114 rc = jfs_init_acl(tid, ip, dip); in jfs_create()
115 if (rc) in jfs_create()
118 rc = jfs_init_security(tid, ip, dip, &dentry->d_name); in jfs_create()
119 if (rc) { in jfs_create()
124 if ((rc = dtSearch(dip, &dname, &ino, &btstack, JFS_CREATE))) { in jfs_create()
125 jfs_err("jfs_create: dtSearch returned %d", rc); in jfs_create()
148 if ((rc = dtInsert(tid, dip, &dname, &ino, &btstack))) { in jfs_create()
[all …]
Djfs_mount.c83 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 …]
Dfile.c35 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 …]
Djfs_extent.c90 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.1.27/drivers/of/
Dunittest.c202 int count = 0, rc; in of_unittest_check_node_linkage() local
211 rc = of_unittest_check_node_linkage(child); in of_unittest_check_node_linkage()
212 if (rc < 0) in of_unittest_check_node_linkage()
213 return rc; in of_unittest_check_node_linkage()
214 count += rc; in of_unittest_check_node_linkage()
287 int i, rc; in of_unittest_parse_phandle_with_args() local
295 rc = of_count_phandle_with_args(np, "phandle-list", "#phandle-cells"); in of_unittest_parse_phandle_with_args()
296 unittest(rc == 7, "of_count_phandle_with_args() returned %i, expected 7\n", rc); in of_unittest_parse_phandle_with_args()
301 rc = of_parse_phandle_with_args(np, "phandle-list", in of_unittest_parse_phandle_with_args()
307 passed &= !rc; in of_unittest_parse_phandle_with_args()
[all …]
/linux-4.1.27/drivers/char/pcmcia/
Dcm4040_cs.c140 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.1.27/drivers/input/touchscreen/
Dcyttsp4_core.c84 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.1.27/drivers/nfc/
Dnfcwilink.c146 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 …]
Dpn533.c218 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.1.27/drivers/staging/lustre/lustre/mgc/
Dmgc_request.c196 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()
308 int rc; in config_log_add() local
331 rc = PTR_ERR(sptlrpc_cld); in config_log_add()
337 rc = PTR_ERR(params_cld); in config_log_add()
[all …]
/linux-4.1.27/drivers/firmware/
Discsi_ibft.c452 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.1.27/arch/s390/hypfs/
Dhypfs_diag.c435 int pages, rc; in diag204_probe() local
458 rc = PTR_ERR(buf); in diag204_probe()
467 rc = -ENOSYS; in diag204_probe()
471 rc = 0; in diag204_probe()
475 return rc; in diag204_probe()
480 int rc; in diag204_do_store() local
482 rc = diag204((unsigned long) diag204_store_sc | in diag204_do_store()
484 return rc < 0 ? -ENOSYS : 0; in diag204_do_store()
490 int pages, rc; in diag204_store() local
495 rc = diag204_do_store(buf, pages); in diag204_store()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/lov/
Dlov_obd.c131 int rc; in lov_connect_obd() local
162 rc = obd_register_observer(tgt_obd, obd); in lov_connect_obd()
163 if (rc) { in lov_connect_obd()
165 obd_uuid2str(tgt_uuid), rc); in lov_connect_obd()
166 return rc; in lov_connect_obd()
176 rc = obd_connect(NULL, &lov->lov_tgts[index]->ltd_exp, tgt_obd, in lov_connect_obd()
178 if (rc || !lov->lov_tgts[index]->ltd_exp) { in lov_connect_obd()
180 obd_uuid2str(tgt_uuid), rc); in lov_connect_obd()
223 int i, rc; in lov_connect() local
227 rc = class_connect(&conn, obd, cluuid); in lov_connect()
[all …]
Dlov_request.c105 struct lov_request *req, int rc) in lov_update_set() argument
108 req->rq_rc = rc; in lov_update_set()
111 if (rc == 0) in lov_update_set()
118 struct lov_request *req, int rc) in lov_update_common_set() argument
122 lov_update_set(set, req, rc); in lov_update_common_set()
125 if (rc && !(lov->lov_tgts[req->rq_idx] && in lov_update_common_set()
127 rc = 0; in lov_update_common_set()
130 return rc; in lov_update_common_set()
142 int rc; in lov_check_set() local
147 rc = !tgt || tgt->ltd_active || in lov_check_set()
[all …]
/linux-4.1.27/net/ipx/
Daf_ipx.c83 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.1.27/drivers/xen/
Devtchn.c166 int rc; in evtchn_read() local
182 rc = -EFBIG; in evtchn_read()
196 rc = wait_event_interruptible(u->evtchn_wait, in evtchn_read()
198 if (rc) in evtchn_read()
199 return rc; in evtchn_read()
220 rc = -EFAULT; in evtchn_read()
228 rc = bytes1 + bytes2; in evtchn_read()
232 return rc; in evtchn_read()
238 int rc, i; in evtchn_write() local
248 rc = 0; in evtchn_write()
[all …]
/linux-4.1.27/arch/powerpc/sysdev/xics/
Dics-opal.c49 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.1.27/security/yama/
Dyama_lsm.c157 int rc; in yama_task_prctl() local
160 rc = cap_task_prctl(option, arg2, arg3, arg4, arg5); in yama_task_prctl()
161 if (rc != -ENOSYS) in yama_task_prctl()
162 return rc; in yama_task_prctl()
180 rc = 0; in yama_task_prctl()
182 rc = yama_ptracer_add(NULL, myself); in yama_task_prctl()
191 rc = -EINVAL; in yama_task_prctl()
195 rc = yama_ptracer_add(tracer, myself); in yama_task_prctl()
204 return rc; in yama_task_prctl()
217 int rc = 0; in task_is_descendant() local
[all …]
/linux-4.1.27/arch/powerpc/kernel/
Deeh_driver.c200 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 …]
Drtas.c507 int rc; in rtas_error_rc() local
511 rc = -EIO; in rtas_error_rc()
514 rc = -EINVAL; in rtas_error_rc()
517 rc = -EFAULT; in rtas_error_rc()
520 rc = -EEXIST; in rtas_error_rc()
523 rc = -ENODEV; in rtas_error_rc()
528 rc = -ERANGE; in rtas_error_rc()
531 return rc; in rtas_error_rc()
537 int rc; in rtas_get_power_level() local
542 while ((rc = rtas_call(token, 1, 2, level, powerdomain)) == RTAS_BUSY) in rtas_get_power_level()
[all …]
/linux-4.1.27/drivers/mtd/
Drfd_ftl.c153 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.1.27/drivers/s390/net/
Dqeth_l3_main.c65 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 …]
Dqeth_l2_main.c43 int rc = 0; in qeth_l2_do_ioctl() local
56 rc = qeth_snmp_command(card, rq->ifr_ifru.ifru_data); in qeth_l2_do_ioctl()
73 rc = -EINVAL; in qeth_l2_do_ioctl()
79 rc = qeth_query_oat_command(card, rq->ifr_ifru.ifru_data); in qeth_l2_do_ioctl()
82 rc = -EOPNOTSUPP; in qeth_l2_do_ioctl()
84 if (rc) in qeth_l2_do_ioctl()
85 QETH_CARD_TEXT_(card, 2, "ioce%d", rc); in qeth_l2_do_ioctl()
86 return rc; in qeth_l2_do_ioctl()
93 int rc = 0; in qeth_l2_verify_dev() local
98 rc = QETH_REAL_CARD; in qeth_l2_verify_dev()
[all …]
Dqeth_core_sys.c123 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()
175 int i, rc = 0; in qeth_dev_portname_store() local
183 rc = -EPERM; in qeth_dev_portname_store()
189 rc = -EINVAL; in qeth_dev_portname_store()
201 return rc ? rc : count; in qeth_dev_portname_store()
234 int rc = 0; in qeth_dev_prioqing_store() local
[all …]
/linux-4.1.27/tools/usb/usbip/src/
Dusbipd.c99 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.1.27/drivers/staging/lustre/lustre/osc/
Dosc_request.c99 struct ptlrpc_request *req, void *data, int rc);
235 struct osc_async_args *aa, int rc) in osc_getattr_interpret() argument
239 if (rc != 0) in osc_getattr_interpret()
253 rc = -EPROTO; in osc_getattr_interpret()
257 rc = aa->aa_oi->oi_cb_up(aa->aa_oi, rc); in osc_getattr_interpret()
258 return rc; in osc_getattr_interpret()
266 int rc; in osc_getattr_async() local
273 rc = ptlrpc_request_pack(req, LUSTRE_OST_VERSION, OST_GETATTR); in osc_getattr_async()
274 if (rc) { in osc_getattr_async()
276 return rc; in osc_getattr_async()
[all …]
/linux-4.1.27/arch/s390/mm/
Dextmem.c106 int rc; in dcss_set_subcodes() local
123 : "+d" (rx), "+d" (ry), "=d" (rc) : : "cc"); in dcss_set_subcodes()
127 if (rc != 3) { in dcss_set_subcodes()
196 int rc; in dcss_diag() local
199 rc = dcss_set_subcodes(); in dcss_diag()
200 if (rc < 0) in dcss_diag()
201 return rc; in dcss_diag()
213 : "+d" (rx), "+d" (ry), "=d" (rc) : : "cc"); in dcss_diag()
222 : "+d" (rx), "+d" (ry), "=d" (rc) : : "cc"); in dcss_diag()
225 return rc; in dcss_diag()
[all …]
/linux-4.1.27/drivers/s390/block/
Ddcssblk.c212 int i, j, rc; in dcssblk_is_continuous() local
247 rc = -EINVAL; in dcssblk_is_continuous()
261 rc = -EINVAL; in dcssblk_is_continuous()
266 rc = 0; in dcssblk_is_continuous()
269 return rc; in dcssblk_is_continuous()
278 int rc; in dcssblk_load_segment() local
295 rc = segment_load(name, SEGMENT_SHARED, in dcssblk_load_segment()
297 if (rc < 0) { in dcssblk_load_segment()
298 segment_warning(rc, (*seg_info)->segment_name); in dcssblk_load_segment()
302 (*seg_info)->segment_type = rc; in dcssblk_load_segment()
[all …]
Ddasd_diag.c76 int rc; in dia250() local
78 rc = 3; in dia250()
86 : "+d" (rc), "=m" (*(addr_type *) iob) in dia250()
89 return rc; in dia250()
102 int rc; in mdsk_init_io() local
113 rc = dia250(iib, INIT_BIO); in mdsk_init_io()
115 if ((rc & 3) == 0 && end_block) in mdsk_init_io()
118 return rc; in mdsk_init_io()
128 int rc; in mdsk_term_io() local
134 rc = dia250(iib, TERM_BIO); in mdsk_term_io()
[all …]
/linux-4.1.27/fs/proc/
Dvmcore.c274 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.1.27/arch/powerpc/platforms/cell/spufs/
Dcoredump.c110 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.1.27/drivers/net/can/usb/
Dgs_usb.c231 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_recieve_bulk_callback() local
383 rc = usb_submit_urb(urb, GFP_ATOMIC); in gs_usb_recieve_bulk_callback()
386 if (rc == -ENODEV) { in gs_usb_recieve_bulk_callback()
387 for (rc = 0; rc < GS_MAX_INTF; rc++) { in gs_usb_recieve_bulk_callback()
388 if (usbcan->canch[rc]) in gs_usb_recieve_bulk_callback()
389 netif_device_detach(usbcan->canch[rc]->netdev); in gs_usb_recieve_bulk_callback()
399 int rc; in gs_usb_set_bittiming() local
[all …]
/linux-4.1.27/drivers/media/pci/cx23885/
Dcx23885-input.c60 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 …]
/linux-4.1.27/net/lapb/
Dlapb_iface.c108 struct lapb_cb *rc; in lapb_devtostruct() local
111 rc = __lapb_devtostruct(dev); in lapb_devtostruct()
114 return rc; in lapb_devtostruct()
148 int rc = LAPB_BADTOKEN; in lapb_register() local
159 rc = LAPB_NOMEM; in lapb_register()
170 rc = LAPB_OK; in lapb_register()
173 return rc; in lapb_register()
179 int rc = LAPB_BADTOKEN; in lapb_unregister() local
194 rc = LAPB_OK; in lapb_unregister()
197 return rc; in lapb_unregister()
[all …]
/linux-4.1.27/drivers/media/usb/dvb-usb/
Ddvb-usb-remote.c48 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_getkeycode()
49 unsigned int keymap_size = d->props.rc.legacy.rc_map_size; in legacy_dvb_usb_getkeycode()
71 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_setkeycode()
72 unsigned int keymap_size = d->props.rc.legacy.rc_map_size; in legacy_dvb_usb_setkeycode()
122 if (d->props.rc.legacy.rc_query(d,&event,&state)) { in legacy_dvb_usb_read_remote_control()
181 schedule_delayed_work(&d->rc_query_work,msecs_to_jiffies(d->props.rc.legacy.rc_interval)); in legacy_dvb_usb_read_remote_control()
205 deb_rc("key map size: %d\n", d->props.rc.legacy.rc_map_size); in legacy_dvb_usb_remote_init()
206 for (i = 0; i < d->props.rc.legacy.rc_map_size; i++) { in legacy_dvb_usb_remote_init()
208 d->props.rc.legacy.rc_map_table[i].keycode, i); in legacy_dvb_usb_remote_init()
209 set_bit(d->props.rc.legacy.rc_map_table[i].keycode, input_dev->keybit); in legacy_dvb_usb_remote_init()
[all …]
/linux-4.1.27/drivers/staging/dgnc/
Ddgnc_driver.c174 int rc = 0; in dgnc_init_module() local
179 rc = dgnc_start(); in dgnc_init_module()
181 if (rc < 0) in dgnc_init_module()
182 return rc; in dgnc_init_module()
187 rc = pci_register_driver(&dgnc_driver); in dgnc_init_module()
192 if (rc < 0) { in dgnc_init_module()
204 return rc; in dgnc_init_module()
215 int rc = 0; in dgnc_start() local
229 rc = register_chrdev(0, "dgnc", &dgnc_BoardFops); in dgnc_start()
230 if (rc < 0) { in dgnc_start()
[all …]
/linux-4.1.27/drivers/misc/genwqe/
Dcard_base.c185 int bars, rc = 0; in genwqe_bus_reset() local
205 rc = pci_reset_function(pci_dev); in genwqe_bus_reset()
206 if (rc) { in genwqe_bus_reset()
208 "[%s] err: failed reset func (rc %d)\n", __func__, rc); in genwqe_bus_reset()
209 return rc; in genwqe_bus_reset()
211 dev_dbg(&pci_dev->dev, "[%s] done with rc=%d\n", __func__, rc); in genwqe_bus_reset()
221 rc = pci_request_selected_regions(pci_dev, bars, genwqe_driver_name); in genwqe_bus_reset()
222 if (rc) { in genwqe_bus_reset()
224 "[%s] err: request bars failed (%d)\n", __func__, rc); in genwqe_bus_reset()
592 int rc; in genwqe_recover_card() local
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/obdecho/
Decho_client.c601 int rc; in echo_site_init() local
604 rc = cl_site_init(site, &ed->ed_cl); in echo_site_init()
605 if (rc) { in echo_site_init()
606 CERROR("Cannot initialize site for echo client(%d)\n", rc); in echo_site_init()
607 return rc; in echo_site_init()
610 rc = lu_site_init_finish(&site->cs_lu); in echo_site_init()
611 if (rc) in echo_site_init()
612 return rc; in echo_site_init()
700 int rc; in echo_device_alloc() local
705 rc = -ENOMEM; in echo_device_alloc()
[all …]
/linux-4.1.27/fs/ntfs/
Dcollate.c30 int rc; in ntfs_collate_binary() local
33 rc = memcmp(data1, data2, min(data1_len, data2_len)); in ntfs_collate_binary()
34 if (!rc && (data1_len != data2_len)) { in ntfs_collate_binary()
36 rc = -1; in ntfs_collate_binary()
38 rc = 1; in ntfs_collate_binary()
40 ntfs_debug("Done, returning %i", rc); in ntfs_collate_binary()
41 return rc; in ntfs_collate_binary()
48 int rc; in ntfs_collate_ntofs_ulong() local
58 rc = -1; in ntfs_collate_ntofs_ulong()
61 rc = 0; in ntfs_collate_ntofs_ulong()
[all …]
/linux-4.1.27/drivers/ide/
Ddelkin_cb.c78 int rc; in delkin_cb_probe() local
81 rc = pci_enable_device(dev); in delkin_cb_probe()
82 if (rc) { in delkin_cb_probe()
83 printk(KERN_ERR "delkin_cb: pci_enable_device failed (%d)\n", rc); in delkin_cb_probe()
84 return rc; in delkin_cb_probe()
86 rc = pci_request_regions(dev, "delkin_cb"); in delkin_cb_probe()
87 if (rc) { in delkin_cb_probe()
88 printk(KERN_ERR "delkin_cb: pci_request_regions failed (%d)\n", rc); in delkin_cb_probe()
90 return rc; in delkin_cb_probe()
101 rc = ide_host_add(&delkin_cb_port_info, hws, 1, &host); in delkin_cb_probe()
[all …]

12345678910>>...12