Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 25 of 155) sorted by relevance

1234567

/net/nfc/
Ddigital_technology.c136 u8 rc; member
220 int rc; in digital_in_recv_ats() local
223 rc = PTR_ERR(resp); in digital_in_recv_ats()
229 rc = -EIO; in digital_in_recv_ats()
241 rc = digital_target_found(ddev, target, NFC_PROTO_ISO14443); in digital_in_recv_ats()
247 if (rc) in digital_in_recv_ats()
254 int rc; in digital_in_send_rats() local
264 rc = digital_in_send_cmd(ddev, skb, 30, digital_in_recv_ats, in digital_in_send_rats()
266 if (rc) in digital_in_send_rats()
269 return rc; in digital_in_send_rats()
[all …]
Ddigital_dep.c239 int rc; in digital_recv_dep_data_gather() local
246 rc = -ENOMEM; in digital_recv_dep_data_gather()
259 rc = -ENOMEM; in digital_recv_dep_data_gather()
273 rc = send_ack(ddev, data_exch); in digital_recv_dep_data_gather()
274 if (rc) in digital_recv_dep_data_gather()
292 return ERR_PTR(rc); in digital_recv_dep_data_gather()
300 int rc; in digital_in_recv_psl_res() local
303 rc = PTR_ERR(resp); in digital_in_recv_psl_res()
308 rc = ddev->skb_check_crc(resp); in digital_in_recv_psl_res()
309 if (rc) { in digital_in_recv_psl_res()
[all …]
Dcore.c35 int rc = 0; in nfc_fw_download() local
42 rc = -ENODEV; in nfc_fw_download()
47 rc = -EBUSY; in nfc_fw_download()
52 rc = -EOPNOTSUPP; in nfc_fw_download()
57 rc = dev->ops->fw_download(dev, firmware_name); in nfc_fw_download()
58 if (rc) in nfc_fw_download()
63 return rc; in nfc_fw_download()
91 int rc = 0; in nfc_dev_up() local
98 rc = -ENODEV; in nfc_dev_up()
103 rc = -ERFKILL; in nfc_dev_up()
[all …]
Ddigital_core.c75 int rc; in digital_skb_check_crc() local
89 rc = (skb->data[skb->len - 2] - (crc & 0xFF)) + in digital_skb_check_crc()
92 if (rc) in digital_skb_check_crc()
154 int rc; in digital_wq_cmd() local
180 rc = ddev->ops->in_send_cmd(ddev, cmd->req, cmd->timeout, in digital_wq_cmd()
185 rc = ddev->ops->tg_send_cmd(ddev, cmd->req, cmd->timeout, in digital_wq_cmd()
190 rc = ddev->ops->tg_listen(ddev, cmd->timeout, in digital_wq_cmd()
197 rc = ddev->ops->tg_listen_mdaa(ddev, params, cmd->timeout, in digital_wq_cmd()
202 rc = ddev->ops->tg_listen_md(ddev, cmd->timeout, in digital_wq_cmd()
211 if (!rc) in digital_wq_cmd()
[all …]
Dnetlink.c130 int rc; in nfc_genl_dump_targets() local
145 rc = nfc_genl_send_target(skb, &dev->targets[i], cb, in nfc_genl_dump_targets()
147 if (rc < 0) in nfc_genl_dump_targets()
365 int rc = -EMSGSIZE; in nfc_genl_llc_send_sdres() local
382 rc = -ENOMEM; in nfc_genl_llc_send_sdres()
392 rc = -ENOMEM; in nfc_genl_llc_send_sdres()
421 return rc; in nfc_genl_llc_send_sdres()
618 int rc; in nfc_genl_dump_devices() local
620 rc = nfc_genl_send_device(skb, dev, NETLINK_CB(cb->skb).portid, in nfc_genl_dump_devices()
622 if (rc < 0) in nfc_genl_dump_devices()
[all …]
/net/smc/
Daf_smc.c144 int rc = 0; in __smc_release() local
147 rc = smc_close_active(smc); in __smc_release()
157 rc = kernel_sock_shutdown(smc->clcsock, in __smc_release()
178 return rc; in __smc_release()
185 int old_state, rc = 0; in smc_release() local
214 rc = __smc_release(smc); in smc_release()
224 return rc; in smc_release()
273 int rc; in smc_bind() local
278 rc = -EINVAL; in smc_bind()
282 rc = -EAFNOSUPPORT; in smc_bind()
[all …]
Dsmc_tx.c83 int rc = 0; in smc_tx_wait() local
94 rc = -EPIPE; in smc_tx_wait()
98 rc = -ECONNRESET; in smc_tx_wait()
104 rc = -EAGAIN; in smc_tx_wait()
108 rc = sock_intr_errno(timeo); in smc_tx_wait()
124 return rc; in smc_tx_wait()
147 int rc, chunk; in smc_tx_sendmsg() local
153 rc = -EPIPE; in smc_tx_sendmsg()
183 rc = smc_tx_wait(smc, msg->msg_flags); in smc_tx_sendmsg()
184 if (rc) in smc_tx_sendmsg()
[all …]
Dsmc_llc.c246 int rc; in smc_llc_flow_initiate() local
265 rc = wait_event_timeout(lgr->llc_flow_waiter, (list_empty(&lgr->list) || in smc_llc_flow_initiate()
270 if (!rc) in smc_llc_flow_initiate()
359 int rc; in smc_llc_add_pending_send() local
361 rc = smc_wr_tx_get_free_slot(link, smc_llc_tx_handler, wr_buf, NULL, in smc_llc_add_pending_send()
363 if (rc < 0) in smc_llc_add_pending_send()
364 return rc; in smc_llc_add_pending_send()
384 int rc; in smc_llc_send_confirm_link() local
388 rc = smc_llc_add_pending_send(link, &wr_buf, &pend); in smc_llc_send_confirm_link()
389 if (rc) in smc_llc_send_confirm_link()
[all …]
Dsmc_wr.c125 int i = 0, rc; in smc_wr_tx_tasklet_fn() local
132 rc = ib_poll_cq(dev->roce_cq_send, SMC_WR_MAX_POLL_CQE, wc); in smc_wr_tx_tasklet_fn()
138 if (!rc) in smc_wr_tx_tasklet_fn()
140 for (i = 0; i < rc; i++) in smc_wr_tx_tasklet_fn()
142 } while (rc > 0); in smc_wr_tx_tasklet_fn()
191 int rc; in smc_wr_tx_get_free_slot() local
196 rc = smc_wr_tx_get_free_slot_index(link, &idx); in smc_wr_tx_get_free_slot()
197 if (rc) in smc_wr_tx_get_free_slot()
198 return rc; in smc_wr_tx_get_free_slot()
200 rc = wait_event_interruptible_timeout( in smc_wr_tx_get_free_slot()
[all …]
/net/x25/
Daf_x25.c89 int rc; in x25_parse_address_block() local
93 rc = 0; in x25_parse_address_block()
103 rc = -1; in x25_parse_address_block()
113 return rc; in x25_parse_address_block()
428 int rc = -ENOPROTOOPT; in x25_setsockopt() local
433 rc = -EINVAL; in x25_setsockopt()
437 rc = -EFAULT; in x25_setsockopt()
445 rc = 0; in x25_setsockopt()
447 return rc; in x25_setsockopt()
454 int val, len, rc = -ENOPROTOOPT; in x25_getsockopt() local
[all …]
/net/llc/
Daf_llc.c99 u8 rc = LLC_PDU_LEN_U; in llc_ui_header_len() local
102 rc = LLC_PDU_LEN_U; in llc_ui_header_len()
110 rc = LLC_PDU_LEN_U_XID; in llc_ui_header_len()
112 rc = LLC_PDU_LEN_I; in llc_ui_header_len()
113 return rc; in llc_ui_header_len()
135 int rc; in llc_ui_send_data() local
137 rc = llc_ui_wait_for_busy_core(sk, timeout); in llc_ui_send_data()
138 if (rc) { in llc_ui_send_data()
140 return rc; in llc_ui_send_data()
175 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()
63 rc = dev_queue_xmit(skb); in llc_sap_action_send_ui()
65 return rc; in llc_sap_action_send_ui()
80 int rc; in llc_sap_action_send_xid_c() local
85 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); in llc_sap_action_send_xid_c()
86 if (likely(!rc)) { in llc_sap_action_send_xid_c()
88 rc = dev_queue_xmit(skb); in llc_sap_action_send_xid_c()
90 return rc; in llc_sap_action_send_xid_c()
[all …]
Dllc_c_ac.c95 int rc = 0; in llc_conn_ac_disc_ind() local
111 rc = -EINVAL; in llc_conn_ac_disc_ind()
112 if (!rc) { in llc_conn_ac_disc_ind()
116 return rc; in llc_conn_ac_disc_ind()
131 int rc = 1; in llc_conn_ac_rst_ind() local
142 rc = 0; in llc_conn_ac_rst_ind()
147 rc = 0; in llc_conn_ac_rst_ind()
156 rc = 0; in llc_conn_ac_rst_ind()
160 if (!rc) { in llc_conn_ac_rst_ind()
164 return rc; in llc_conn_ac_rst_ind()
[all …]
Dllc_conn.c63 int rc; in llc_conn_state_process() local
71 rc = llc_conn_service(skb->sk, skb); in llc_conn_state_process()
72 if (unlikely(rc != 0)) { in llc_conn_state_process()
134 rc = llc->failed_data_req = 1; in llc_conn_state_process()
174 return rc; in llc_conn_state_process()
358 int rc = 1; in llc_conn_service() local
364 rc = 0; in llc_conn_service()
367 rc = llc_exec_conn_trans_actions(sk, trans, skb); in llc_conn_service()
368 if (!rc && trans->next_state != NO_STATE_CHANGE) { in llc_conn_service()
375 return rc; in llc_conn_service()
[all …]
/net/mctp/
Daf_mctp.c44 int rc; in mctp_bind() local
65 rc = -EADDRINUSE; in mctp_bind()
72 rc = sk->sk_prot->hash(sk); in mctp_bind()
77 return rc; in mctp_bind()
84 int rc, addrlen = msg->msg_namelen; in mctp_sendmsg() local
117 msg->msg_flags & MSG_DONTWAIT, &rc); in mctp_sendmsg()
119 return rc; in mctp_sendmsg()
126 rc = memcpy_from_msg((void *)skb_put(skb, len), msg, len); in mctp_sendmsg()
127 if (rc < 0) { in mctp_sendmsg()
129 return rc; in mctp_sendmsg()
[all …]
Droute.c134 int rc = 0; in mctp_key_add() local
139 rc = -EINVAL; in mctp_key_add()
146 rc = -EEXIST; in mctp_key_add()
151 if (!rc) { in mctp_key_add()
159 return rc; in mctp_key_add()
231 int rc; in mctp_route_input() local
234 rc = -EINVAL; in mctp_route_input()
281 rc = -ENOENT; in mctp_route_input()
297 rc = 0; in mctp_route_input()
308 rc = -ENOMEM; in mctp_route_input()
[all …]
Ddevice.c83 int rc = 0; in mctp_dump_dev_addrinfo() local
86 rc = mctp_fill_addrinfo(skb, cb, mdev, mdev->addrs[mcb->a_idx]); in mctp_dump_dev_addrinfo()
87 if (rc < 0) in mctp_dump_dev_addrinfo()
91 return rc; in mctp_dump_dev_addrinfo()
103 int idx, rc; in mctp_dump_addrinfo() local
118 rc = mctp_dump_dev_addrinfo(mdev, in mctp_dump_addrinfo()
122 if (rc < 0) in mctp_dump_addrinfo()
154 int rc; in mctp_rtm_newaddr() local
156 rc = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_mctp_policy, in mctp_rtm_newaddr()
158 if (rc < 0) in mctp_rtm_newaddr()
[all …]
/net/iucv/
Diucv.c426 int rc; in iucv_declare_cpu() local
435 rc = iucv_call_b2f0(IUCV_DECLARE_BUFFER, parm); in iucv_declare_cpu()
436 if (rc) { in iucv_declare_cpu()
438 switch (rc) { in iucv_declare_cpu()
456 cpu, rc, err); in iucv_declare_cpu()
543 int cpu, rc; in iucv_enable() local
546 rc = -ENOMEM; in iucv_enable()
552 rc = -EIO; in iucv_enable()
564 return rc; in iucv_enable()
723 int rc; in iucv_register() local
[all …]
/net/qrtr/
Dmhi.c25 int rc; in qcom_mhi_qrtr_dl_callback() local
30 rc = qrtr_endpoint_post(&qdev->ep, mhi_res->buf_addr, in qcom_mhi_qrtr_dl_callback()
32 if (rc == -EINVAL) in qcom_mhi_qrtr_dl_callback()
51 int rc; in qcom_mhi_qrtr_send() local
56 rc = skb_linearize(skb); in qcom_mhi_qrtr_send()
57 if (rc) in qcom_mhi_qrtr_send()
60 rc = mhi_queue_skb(qdev->mhi_dev, DMA_TO_DEVICE, skb, skb->len, in qcom_mhi_qrtr_send()
62 if (rc) in qcom_mhi_qrtr_send()
65 return rc; in qcom_mhi_qrtr_send()
72 return rc; in qcom_mhi_qrtr_send()
[all …]
Dsmd.c24 int rc; in qcom_smd_qrtr_callback() local
29 rc = qrtr_endpoint_post(&qdev->ep, data, len); in qcom_smd_qrtr_callback()
30 if (rc == -EINVAL) { in qcom_smd_qrtr_callback()
33 rc = 0; in qcom_smd_qrtr_callback()
36 return rc; in qcom_smd_qrtr_callback()
43 int rc; in qcom_smd_qrtr_send() local
45 rc = skb_linearize(skb); in qcom_smd_qrtr_send()
46 if (rc) in qcom_smd_qrtr_send()
49 rc = rpmsg_send(qdev->channel, skb->data, skb->len); in qcom_smd_qrtr_send()
52 if (rc) in qcom_smd_qrtr_send()
[all …]
Daf_qrtr.c344 int rc, confirm_rx; in qrtr_node_enqueue() local
368 rc = skb_put_padto(skb, ALIGN(len, 4) + sizeof(*hdr)); in qrtr_node_enqueue()
370 if (!rc) { in qrtr_node_enqueue()
372 rc = -ENODEV; in qrtr_node_enqueue()
374 rc = node->ep->xmit(node->ep, skb); in qrtr_node_enqueue()
381 if (rc && confirm_rx) in qrtr_node_enqueue()
384 return rc; in qrtr_node_enqueue()
731 int rc; in qrtr_port_assign() local
734 rc = xa_alloc(&qrtr_ports, port, ipc, QRTR_EPH_PORT_RANGE, in qrtr_port_assign()
737 rc = -EACCES; in qrtr_port_assign()
[all …]
/net/tls/
Dtls_main.c80 int rc = 0; in wait_on_pending_writer() local
86 rc = -EAGAIN; in wait_on_pending_writer()
91 rc = sock_intr_errno(*timeo); in wait_on_pending_writer()
100 return rc; in wait_on_pending_writer()
172 int rc = -EINVAL; in tls_proccess_cmsg() local
188 rc = tls_handle_open_record(sk, msg->msg_flags); in tls_proccess_cmsg()
189 if (rc) in tls_proccess_cmsg()
190 return rc; in tls_proccess_cmsg()
193 rc = 0; in tls_proccess_cmsg()
200 return rc; in tls_proccess_cmsg()
[all …]
/net/nfc/nci/
Dcore.c101 int rc = 0; in __nci_request() local
117 rc = nci_to_errno(ndev->req_result); in __nci_request()
121 rc = -ndev->req_result; in __nci_request()
125 rc = -ETIMEDOUT; in __nci_request()
132 rc = ((completion_rc == 0) ? (-ETIMEDOUT) : (completion_rc)); in __nci_request()
137 return rc; in __nci_request()
145 int rc; in nci_request() local
153 rc = __nci_request(ndev, req, opt, timeout); in nci_request()
155 rc = -ENETDOWN; in nci_request()
158 return rc; in nci_request()
[all …]
/net/lapb/
Dlapb_iface.c100 struct lapb_cb *rc; in lapb_devtostruct() local
103 rc = __lapb_devtostruct(dev); in lapb_devtostruct()
106 return rc; in lapb_devtostruct()
143 int rc = LAPB_BADTOKEN; in lapb_register() local
154 rc = LAPB_NOMEM; in lapb_register()
165 rc = LAPB_OK; in lapb_register()
168 return rc; in lapb_register()
175 int rc = LAPB_BADTOKEN; in lapb_unregister() local
203 rc = LAPB_OK; in lapb_unregister()
206 return rc; in lapb_unregister()
[all …]
/net/core/
Ddrop_monitor.c366 int rc; in net_dm_hw_entries_put() local
368 rc = net_dm_hw_entry_put(msg, &hw_entries->entries[i]); in net_dm_hw_entries_put()
369 if (rc) in net_dm_hw_entries_put()
388 int rc; in net_dm_hw_summary_report_fill() local
401 rc = net_dm_hw_entries_put(msg, hw_entries); in net_dm_hw_summary_report_fill()
402 if (rc) in net_dm_hw_summary_report_fill()
419 int rc; in net_dm_hw_summary_work() local
431 rc = net_dm_hw_summary_report_fill(msg, hw_entries); in net_dm_hw_summary_work()
432 if (rc) { in net_dm_hw_summary_work()
617 int rc; in net_dm_packet_report_fill() local
[all …]

1234567