/net/nfc/ |
D | core.c | 56 int rc = 0; in nfc_dev_up() local 63 rc = -ERFKILL; in nfc_dev_up() 68 rc = -ENODEV; in nfc_dev_up() 73 rc = -EALREADY; in nfc_dev_up() 78 rc = dev->ops->dev_up(dev); in nfc_dev_up() 80 if (!rc) in nfc_dev_up() 85 return rc; in nfc_dev_up() 95 int rc = 0; in nfc_dev_down() local 102 rc = -ENODEV; in nfc_dev_down() 107 rc = -EALREADY; in nfc_dev_down() [all …]
|
D | netlink.c | 106 int rc; in __get_device_from_cb() local 109 rc = nlmsg_parse(cb->nlh, GENL_HDRLEN + nfc_genl_family.hdrsize, in __get_device_from_cb() 113 if (rc < 0) in __get_device_from_cb() 114 return ERR_PTR(rc); in __get_device_from_cb() 133 int rc; in nfc_genl_dump_targets() local 148 rc = nfc_genl_send_target(skb, &dev->targets[i], cb, in nfc_genl_dump_targets() 150 if (rc < 0) in nfc_genl_dump_targets() 366 int rc = -EMSGSIZE; in nfc_genl_llc_send_sdres() local 383 rc = -ENOMEM; in nfc_genl_llc_send_sdres() 393 rc = -ENOMEM; in nfc_genl_llc_send_sdres() [all …]
|
D | rawsock.c | 74 int rc = 0; in rawsock_connect() local 88 rc = -EISCONN; in rawsock_connect() 94 rc = -ENODEV; in rawsock_connect() 100 rc = -EINVAL; in rawsock_connect() 104 rc = nfc_activate_target(dev, addr->target_idx, addr->nfc_protocol); in rawsock_connect() 105 if (rc) in rawsock_connect() 121 return rc; in rawsock_connect() 172 int rc; in rawsock_tx_work() local 184 rc = nfc_data_exchange(dev, target_idx, skb, in rawsock_tx_work() 186 if (rc) { in rawsock_tx_work() [all …]
|
D | af_nfc.c | 35 int rc = -EPROTONOSUPPORT; in nfc_sock_create() local 45 rc = proto_tab[proto]->create(net, sock, proto_tab[proto]); in nfc_sock_create() 50 return rc; in nfc_sock_create() 61 int rc; in nfc_proto_register() local 66 rc = proto_register(nfc_proto->proto, 0); in nfc_proto_register() 67 if (rc) in nfc_proto_register() 68 return rc; in nfc_proto_register() 72 rc = -EBUSY; in nfc_proto_register() 77 return rc; in nfc_proto_register()
|
/net/x25/ |
D | af_x25.c | 92 int rc; in x25_parse_address_block() local 96 rc = 0; in x25_parse_address_block() 106 rc = -1; in x25_parse_address_block() 116 return rc; in x25_parse_address_block() 442 int rc = -ENOPROTOOPT; in x25_setsockopt() local 447 rc = -EINVAL; in x25_setsockopt() 451 rc = -EFAULT; in x25_setsockopt() 459 rc = 0; in x25_setsockopt() 461 return rc; in x25_setsockopt() 468 int val, len, rc = -ENOPROTOOPT; in x25_getsockopt() local [all …]
|
D | x25_route.c | 36 int rc = -EINVAL; in x25_add_route() local 49 rc = -ENOMEM; in x25_add_route() 61 rc = 0; in x25_add_route() 64 return rc; in x25_add_route() 87 int rc = -EINVAL; in x25_del_route() local 97 rc = 0; in x25_del_route() 103 return rc; in x25_del_route() 186 int rc = -EINVAL; in x25_route_ioctl() local 191 rc = -EFAULT; in x25_route_ioctl() 195 rc = -EINVAL; in x25_route_ioctl() [all …]
|
/net/llc/ |
D | af_llc.c | 97 u8 rc = LLC_PDU_LEN_U; in llc_ui_header_len() local 100 rc = LLC_PDU_LEN_U; in llc_ui_header_len() 102 rc = LLC_PDU_LEN_I; in llc_ui_header_len() 103 return rc; in llc_ui_header_len() 118 int rc = 0; in llc_ui_send_data() local 125 rc = llc_ui_wait_for_busy_core(sk, timeout); in llc_ui_send_data() 127 if (unlikely(!rc)) in llc_ui_send_data() 128 rc = llc_build_and_send_pkt(sk, skb); in llc_ui_send_data() 129 return rc; in llc_ui_send_data() 161 int rc = -ESOCKTNOSUPPORT; in llc_ui_create() local [all …]
|
D | llc_s_ac.c | 55 int rc; in llc_sap_action_send_ui() local 60 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); in llc_sap_action_send_ui() 61 if (likely(!rc)) in llc_sap_action_send_ui() 62 rc = dev_queue_xmit(skb); in llc_sap_action_send_ui() 63 return rc; in llc_sap_action_send_ui() 78 int rc; in llc_sap_action_send_xid_c() local 83 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac); in llc_sap_action_send_xid_c() 84 if (likely(!rc)) in llc_sap_action_send_xid_c() 85 rc = dev_queue_xmit(skb); in llc_sap_action_send_xid_c() 86 return rc; in llc_sap_action_send_xid_c() [all …]
|
D | llc_c_ac.c | 95 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 …]
|
D | llc_conn.c | 61 int rc; in llc_conn_state_process() local 75 rc = llc_conn_service(skb->sk, skb); in llc_conn_state_process() 76 if (unlikely(rc != 0)) { in llc_conn_state_process() 150 rc = llc->failed_data_req = 1; in llc_conn_state_process() 193 return rc; in llc_conn_state_process() 377 int rc = 1; in llc_conn_service() local 383 rc = 0; in llc_conn_service() 386 rc = llc_exec_conn_trans_actions(sk, trans, skb); in llc_conn_service() 387 if (!rc && trans->next_state != NO_STATE_CHANGE) { in llc_conn_service() 394 return rc; in llc_conn_service() [all …]
|
D | llc_output.c | 35 int rc = -EINVAL; in llc_mac_hdr_init() local 40 rc = dev_hard_header(skb, skb->dev, ETH_P_802_2, da, sa, in llc_mac_hdr_init() 42 if (rc > 0) in llc_mac_hdr_init() 43 rc = 0; in llc_mac_hdr_init() 48 return rc; in llc_mac_hdr_init() 68 int rc; in llc_build_and_send_ui_pkt() local 72 rc = llc_mac_hdr_init(skb, skb->dev->dev_addr, dmac); in llc_build_and_send_ui_pkt() 73 if (likely(!rc)) in llc_build_and_send_ui_pkt() 74 rc = dev_queue_xmit(skb); in llc_build_and_send_ui_pkt() 75 return rc; in llc_build_and_send_ui_pkt()
|
D | llc_if.c | 45 int rc = -ECONNABORTED; in llc_build_and_send_pkt() local 50 rc = -EBUSY; in llc_build_and_send_pkt() 61 rc = llc_conn_state_process(sk, skb); in llc_build_and_send_pkt() 63 return rc; in llc_build_and_send_pkt() 81 int rc = -EISCONN; in llc_establish_connection() local 100 rc = -ENOMEM; in llc_establish_connection() 109 rc = llc_conn_state_process(sk, skb); in llc_establish_connection() 113 return rc; in llc_establish_connection() 127 u16 rc = 1; in llc_send_disc() local 149 rc = llc_conn_state_process(sk, skb); in llc_send_disc() [all …]
|
D | llc_station.c | 51 int rc = 1; in llc_station_ac_send_xid_r() local 57 rc = 0; in llc_station_ac_send_xid_r() 62 rc = llc_mac_hdr_init(nskb, skb->dev->dev_addr, mac_da); in llc_station_ac_send_xid_r() 63 if (unlikely(rc)) in llc_station_ac_send_xid_r() 67 return rc; in llc_station_ac_send_xid_r() 76 int rc = 1; in llc_station_ac_send_test_r() local 86 rc = 0; in llc_station_ac_send_test_r() 91 rc = llc_mac_hdr_init(nskb, skb->dev->dev_addr, mac_da); in llc_station_ac_send_test_r() 92 if (unlikely(rc)) in llc_station_ac_send_test_r() 96 return rc; in llc_station_ac_send_test_r()
|
D | llc_sap.c | 120 struct llc_sap_state_trans *rc = NULL; in llc_find_sap_trans() local 129 rc = next_trans[i]; /* got event match; return it */ in llc_find_sap_trans() 132 return rc; in llc_find_sap_trans() 148 int rc = 0; in llc_exec_sap_trans_actions() local 153 rc = 1; in llc_exec_sap_trans_actions() 154 return rc; in llc_exec_sap_trans_actions() 168 int rc = 1; in llc_sap_next_state() local 181 rc = llc_exec_sap_trans_actions(sap, trans, skb); in llc_sap_next_state() 182 if (rc) in llc_sap_next_state() 189 return rc; in llc_sap_next_state() [all …]
|
/net/sunrpc/xprtrdma/ |
D | verbs.c | 215 int rc; in rpcrdma_cq_poll() local 218 rc = ib_poll_cq(cq, 1, &wc); in rpcrdma_cq_poll() 219 if (rc < 0) { in rpcrdma_cq_poll() 221 __func__, rc); in rpcrdma_cq_poll() 222 return rc; in rpcrdma_cq_poll() 224 if (rc == 0) in rpcrdma_cq_poll() 251 int rc; in rpcrdma_cq_event_upcall() local 253 rc = rpcrdma_cq_poll(cq); in rpcrdma_cq_event_upcall() 254 if (rc) in rpcrdma_cq_event_upcall() 257 rc = ib_req_notify_cq(cq, IB_CQ_NEXT_COMP); in rpcrdma_cq_event_upcall() [all …]
|
/net/ipx/ |
D | af_ipx.c | 98 struct ipx_interface *rc = NULL; in ipx_interfaces_head() local 101 rc = list_entry(ipx_interfaces.next, in ipx_interfaces_head() 103 return rc; in ipx_interfaces_head() 386 int rc; in ipxitf_demux_socket() local 401 rc = -ENOMEM; in ipxitf_demux_socket() 420 rc = 0; in ipxitf_demux_socket() 423 return rc; in ipxitf_demux_socket() 468 int rc; in ipxitf_demux_socket() local 499 rc = 0; in ipxitf_demux_socket() 519 rc = -ENOMEM; in ipxitf_demux_socket() [all …]
|
D | ipx_route.c | 56 int rc; in ipxrtr_add_route() local 62 rc = -EAGAIN; in ipxrtr_add_route() 72 rc = -EEXIST; in ipxrtr_add_route() 87 rc = 0; in ipxrtr_add_route() 91 return rc; in ipxrtr_add_route() 110 int rc = -ENETUNREACH; in ipxrtr_create() local 116 rc = ipxrtr_add_route(rd->ipx_network, intrfc, rd->ipx_router_node); in ipxrtr_create() 119 return rc; in ipxrtr_create() 125 int rc; in ipxrtr_delete() local 131 rc = -EPERM; in ipxrtr_delete() [all …]
|
/net/lapb/ |
D | lapb_iface.c | 107 struct lapb_cb *rc; in lapb_devtostruct() local 110 rc = __lapb_devtostruct(dev); in lapb_devtostruct() 113 return rc; in lapb_devtostruct() 147 int rc = LAPB_BADTOKEN; in lapb_register() local 158 rc = LAPB_NOMEM; in lapb_register() 169 rc = LAPB_OK; in lapb_register() 172 return rc; in lapb_register() 178 int rc = LAPB_BADTOKEN; in lapb_unregister() local 193 rc = LAPB_OK; in lapb_unregister() 196 return rc; in lapb_unregister() [all …]
|
/net/iucv/ |
D | iucv.c | 467 int rc; in iucv_declare_cpu() local 476 rc = iucv_call_b2f0(IUCV_DECLARE_BUFFER, parm); in iucv_declare_cpu() 477 if (rc) { in iucv_declare_cpu() 479 switch (rc) { in iucv_declare_cpu() 497 " failed with 0x%02x (%s)\n", cpu, rc, err); in iucv_declare_cpu() 584 int cpu, rc; in iucv_enable() local 587 rc = -ENOMEM; in iucv_enable() 593 rc = -EIO; in iucv_enable() 605 return rc; in iucv_enable() 771 int rc; in iucv_register() local [all …]
|
/net/ieee802154/ |
D | nl-phy.c | 88 int rc = -ENOBUFS; in ieee802154_list_phy() local 108 rc = ieee802154_nl_fill_phy(msg, info->snd_portid, info->snd_seq, in ieee802154_list_phy() 110 if (rc < 0) in ieee802154_list_phy() 120 return rc; in ieee802154_list_phy() 132 int rc; in ieee802154_dump_phy_iter() local 140 rc = ieee802154_nl_fill_phy(data->skb, in ieee802154_dump_phy_iter() 146 if (rc < 0) { in ieee802154_dump_phy_iter() 148 return rc; in ieee802154_dump_phy_iter() 180 int rc = -ENOBUFS; in ieee802154_add_iface() local 214 rc = -EINVAL; in ieee802154_add_iface() [all …]
|
D | af_ieee802154.c | 247 int rc; in ieee802154_create() local 264 rc = -ESOCKTNOSUPPORT; in ieee802154_create() 268 rc = -ENOMEM; in ieee802154_create() 272 rc = 0; in ieee802154_create() 287 rc = sk->sk_prot->init(sk); in ieee802154_create() 288 if (rc) in ieee802154_create() 292 return rc; in ieee802154_create() 335 int rc = -EINVAL; in af_ieee802154_init() local 337 rc = proto_register(&ieee802154_raw_prot, 1); in af_ieee802154_init() 338 if (rc) in af_ieee802154_init() [all …]
|
/net/nfc/nci/ |
D | core.c | 73 int rc = 0; in __nci_request() local 89 rc = nci_to_errno(ndev->req_result); in __nci_request() 93 rc = -ndev->req_result; in __nci_request() 97 rc = -ETIMEDOUT; in __nci_request() 104 rc = ((completion_rc == 0) ? (-ETIMEDOUT) : (completion_rc)); in __nci_request() 109 return rc; in __nci_request() 117 int rc; in nci_request() local 124 rc = __nci_request(ndev, req, opt, timeout); in nci_request() 127 return rc; in nci_request() 284 int rc = 0; in nci_open_device() local [all …]
|
/net/core/ |
D | ethtool.c | 380 int rc; in ethtool_get_drvinfo() local 382 rc = ops->get_sset_count(dev, ETH_SS_TEST); in ethtool_get_drvinfo() 383 if (rc >= 0) in ethtool_get_drvinfo() 384 info.testinfo_len = rc; in ethtool_get_drvinfo() 385 rc = ops->get_sset_count(dev, ETH_SS_STATS); in ethtool_get_drvinfo() 386 if (rc >= 0) in ethtool_get_drvinfo() 387 info.n_stats = rc; in ethtool_get_drvinfo() 388 rc = ops->get_sset_count(dev, ETH_SS_PRIV_FLAGS); in ethtool_get_drvinfo() 389 if (rc >= 0) in ethtool_get_drvinfo() 390 info.n_priv_flags = rc; in ethtool_get_drvinfo() [all …]
|
D | drop_monitor.c | 218 int rc = 0; in set_all_monitor_traces() local 225 rc = -EAGAIN; in set_all_monitor_traces() 232 rc = -ENODEV; in set_all_monitor_traces() 236 rc |= register_trace_kfree_skb(trace_kfree_skb_hit, NULL); in set_all_monitor_traces() 237 rc |= register_trace_napi_poll(trace_napi_poll_hit, NULL); in set_all_monitor_traces() 241 rc |= unregister_trace_kfree_skb(trace_kfree_skb_hit, NULL); in set_all_monitor_traces() 242 rc |= unregister_trace_napi_poll(trace_napi_poll_hit, NULL); in set_all_monitor_traces() 260 rc = 1; in set_all_monitor_traces() 264 if (!rc) in set_all_monitor_traces() 267 rc = -EINPROGRESS; in set_all_monitor_traces() [all …]
|
/net/dccp/ccids/lib/ |
D | tfrc.c | 18 int rc = tfrc_li_init(); in tfrc_lib_init() local 20 if (rc) in tfrc_lib_init() 23 rc = tfrc_tx_packet_history_init(); in tfrc_lib_init() 24 if (rc) in tfrc_lib_init() 27 rc = tfrc_rx_packet_history_init(); in tfrc_lib_init() 28 if (rc) in tfrc_lib_init() 37 return rc; in tfrc_lib_init()
|