Home
last modified time | relevance | path

Searched refs:ndev (Results 1 – 12 of 12) sorted by relevance

/net/nfc/nci/
Dcore.c50 void nci_req_complete(struct nci_dev *ndev, int result) in nci_req_complete() argument
52 if (ndev->req_status == NCI_REQ_PEND) { in nci_req_complete()
53 ndev->req_result = result; in nci_req_complete()
54 ndev->req_status = NCI_REQ_DONE; in nci_req_complete()
55 complete(&ndev->req_completion); in nci_req_complete()
59 static void nci_req_cancel(struct nci_dev *ndev, int err) in nci_req_cancel() argument
61 if (ndev->req_status == NCI_REQ_PEND) { in nci_req_cancel()
62 ndev->req_result = err; in nci_req_cancel()
63 ndev->req_status = NCI_REQ_CANCELED; in nci_req_cancel()
64 complete(&ndev->req_completion); in nci_req_cancel()
[all …]
Drsp.c41 static void nci_core_reset_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb) in nci_core_reset_rsp_packet() argument
48 ndev->nci_ver = rsp->nci_ver; in nci_core_reset_rsp_packet()
53 nci_req_complete(ndev, rsp->status); in nci_core_reset_rsp_packet()
56 static void nci_core_init_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb) in nci_core_init_rsp_packet() argument
66 ndev->nfcc_features = __le32_to_cpu(rsp_1->nfcc_features); in nci_core_init_rsp_packet()
67 ndev->num_supported_rf_interfaces = rsp_1->num_supported_rf_interfaces; in nci_core_init_rsp_packet()
69 if (ndev->num_supported_rf_interfaces > in nci_core_init_rsp_packet()
71 ndev->num_supported_rf_interfaces = in nci_core_init_rsp_packet()
75 memcpy(ndev->supported_rf_interfaces, in nci_core_init_rsp_packet()
77 ndev->num_supported_rf_interfaces); in nci_core_init_rsp_packet()
[all …]
Dntf.c42 static void nci_core_conn_credits_ntf_packet(struct nci_dev *ndev, in nci_core_conn_credits_ntf_packet() argument
65 &ndev->credits_cnt); in nci_core_conn_credits_ntf_packet()
70 if (!skb_queue_empty(&ndev->tx_q)) in nci_core_conn_credits_ntf_packet()
71 queue_work(ndev->tx_wq, &ndev->tx_work); in nci_core_conn_credits_ntf_packet()
74 static void nci_core_generic_error_ntf_packet(struct nci_dev *ndev, in nci_core_generic_error_ntf_packet() argument
81 if (atomic_read(&ndev->state) == NCI_W4_HOST_SELECT) { in nci_core_generic_error_ntf_packet()
84 nci_req_complete(ndev, status); in nci_core_generic_error_ntf_packet()
88 static void nci_core_conn_intf_error_ntf_packet(struct nci_dev *ndev, in nci_core_conn_intf_error_ntf_packet() argument
98 if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags)) in nci_core_conn_intf_error_ntf_packet()
99 nci_data_exchange_complete(ndev, NULL, -EIO); in nci_core_conn_intf_error_ntf_packet()
[all …]
Ddata.c38 void nci_data_exchange_complete(struct nci_dev *ndev, struct sk_buff *skb, in nci_data_exchange_complete() argument
41 data_exchange_cb_t cb = ndev->data_exchange_cb; in nci_data_exchange_complete()
42 void *cb_context = ndev->data_exchange_cb_context; in nci_data_exchange_complete()
47 del_timer_sync(&ndev->data_timer); in nci_data_exchange_complete()
48 clear_bit(NCI_DATA_EXCHANGE_TO, &ndev->flags); in nci_data_exchange_complete()
51 ndev->data_exchange_cb = NULL; in nci_data_exchange_complete()
52 ndev->data_exchange_cb_context = NULL; in nci_data_exchange_complete()
63 clear_bit(NCI_DATA_EXCHANGE, &ndev->flags); in nci_data_exchange_complete()
68 static inline void nci_push_data_hdr(struct nci_dev *ndev, in nci_push_data_hdr() argument
84 skb->dev = (void *) ndev; in nci_push_data_hdr()
[all …]
/net/nfc/hci/
Dhcp.c41 struct nfc_dev *ndev = hdev->ndev; in nfc_hci_hcp_message_tx() local
71 skb_len = ndev->tx_headroom + NFC_HCI_HCP_PACKET_HEADER_LEN + in nfc_hci_hcp_message_tx()
72 data_link_len + ndev->tx_tailroom; in nfc_hci_hcp_message_tx()
80 skb_reserve(skb, ndev->tx_headroom); in nfc_hci_hcp_message_tx()
Dcore.c277 r = nfc_targets_found(hdev->ndev, targets, 1); in nfc_hci_target_discovered()
700 nfc_driver_failure(hdev->ndev, err); in nfc_hci_failure()
826 hdev->ndev = nfc_allocate_device(&hci_nfc_ops, protocols, supported_se, in nfc_hci_allocate_device()
829 if (!hdev->ndev) { in nfc_hci_allocate_device()
839 nfc_set_drvdata(hdev->ndev, hdev); in nfc_hci_allocate_device()
851 nfc_free_device(hdev->ndev); in nfc_hci_free_device()
875 return nfc_register_device(hdev->ndev); in nfc_hci_register_device()
903 nfc_unregister_device(hdev->ndev); in nfc_hci_unregister_device()
/net/core/
Dnetpoll.c1020 int __netpoll_setup(struct netpoll *np, struct net_device *ndev, gfp_t gfp) in __netpoll_setup() argument
1027 np->dev = ndev; in __netpoll_setup()
1028 strlcpy(np->dev_name, ndev->name, IFNAMSIZ); in __netpoll_setup()
1031 if ((ndev->priv_flags & IFF_DISABLE_NETPOLL) || in __netpoll_setup()
1032 !ndev->netdev_ops->ndo_poll_controller) { in __netpoll_setup()
1039 if (!ndev->npinfo) { in __netpoll_setup()
1059 err = ops->ndo_netpoll_setup(ndev, npinfo, gfp); in __netpoll_setup()
1064 npinfo = rtnl_dereference(ndev->npinfo); in __netpoll_setup()
1078 rcu_assign_pointer(ndev->npinfo, npinfo); in __netpoll_setup()
1091 struct net_device *ndev = NULL; in netpoll_setup() local
[all …]
/net/mac80211/
Diface.c1561 struct net_device *ndev = NULL; in ieee80211_if_add() local
1585 ndev = alloc_netdev_mqs(sizeof(*sdata) + in ieee80211_if_add()
1588 if (!ndev) in ieee80211_if_add()
1590 dev_net_set(ndev, wiphy_net(local->hw.wiphy)); in ieee80211_if_add()
1592 ndev->needed_headroom = local->tx_headroom + in ieee80211_if_add()
1599 ndev->needed_tailroom = IEEE80211_ENCRYPT_TAILROOM; in ieee80211_if_add()
1601 ret = dev_alloc_name(ndev, ndev->name); in ieee80211_if_add()
1603 free_netdev(ndev); in ieee80211_if_add()
1607 ieee80211_assign_perm_addr(local, ndev->perm_addr, type); in ieee80211_if_add()
1608 memcpy(ndev->dev_addr, ndev->perm_addr, ETH_ALEN); in ieee80211_if_add()
[all …]
Dmain.c307 struct net_device *ndev = ifa->ifa_dev->dev; in ieee80211_ifa_changed() local
308 struct wireless_dev *wdev = ndev->ieee80211_ptr; in ieee80211_ifa_changed()
322 sdata = IEEE80211_DEV_TO_SUB_IF(ndev); in ieee80211_ifa_changed()
364 struct net_device *ndev = ifa->idev->dev; in ieee80211_ifa6_changed() local
367 struct wireless_dev *wdev = ndev->ieee80211_ptr; in ieee80211_ifa6_changed()
374 sdata = IEEE80211_DEV_TO_SUB_IF(ndev); in ieee80211_ifa6_changed()
/net/ipv6/
Daddrconf.c374 struct inet6_dev *ndev; in ipv6_add_dev() local
381 ndev = kzalloc(sizeof(struct inet6_dev), GFP_KERNEL); in ipv6_add_dev()
383 if (ndev == NULL) in ipv6_add_dev()
386 rwlock_init(&ndev->lock); in ipv6_add_dev()
387 ndev->dev = dev; in ipv6_add_dev()
388 INIT_LIST_HEAD(&ndev->addr_list); in ipv6_add_dev()
390 memcpy(&ndev->cnf, dev_net(dev)->ipv6.devconf_dflt, sizeof(ndev->cnf)); in ipv6_add_dev()
391 ndev->cnf.mtu6 = dev->mtu; in ipv6_add_dev()
392 ndev->cnf.sysctl = NULL; in ipv6_add_dev()
393 ndev->nd_parms = neigh_parms_alloc(dev, &nd_tbl); in ipv6_add_dev()
[all …]
/net/wireless/
Dcore.c950 void *ndev) in cfg80211_netdev_notifier_call() argument
952 struct net_device *dev = ndev; in cfg80211_netdev_notifier_call()
/net/nfc/
Dllcp_core.c1551 int nfc_llcp_register_device(struct nfc_dev *ndev) in nfc_llcp_register_device() argument
1559 local->dev = ndev; in nfc_llcp_register_device()