Searched defs:ndev (Results 1 - 25 of 171) sorted by relevance

1234567

/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_xpcs.c19 static int sxgbe_xpcs_read(struct net_device *ndev, unsigned int reg) argument
22 struct sxgbe_priv_data *priv = netdev_priv(ndev);
29 static int sxgbe_xpcs_write(struct net_device *ndev, int reg, int data) argument
31 struct sxgbe_priv_data *priv = netdev_priv(ndev);
38 int sxgbe_xpcs_init(struct net_device *ndev) argument
42 value = sxgbe_xpcs_read(ndev, SR_PCS_MMD_CONTROL1);
44 sxgbe_xpcs_write(ndev, SR_PCS_CONTROL2, XPCS_TYPE_SEL_X);
45 sxgbe_xpcs_write(ndev, VR_PCS_MMD_XAUI_MODE_CONTROL, XPCS_XAUI_MODE);
46 sxgbe_xpcs_write(ndev, VR_PCS_MMD_XAUI_MODE_CONTROL, value | BIT(13));
47 sxgbe_xpcs_write(ndev, SR_PCS_MMD_CONTROL
63 sxgbe_xpcs_init_1G(struct net_device *ndev) argument
[all...]
H A Dsxgbe_mdio.c114 struct net_device *ndev = bus->priv; local
115 struct sxgbe_priv_data *priv = netdev_priv(ndev);
136 struct net_device *ndev = bus->priv; local
137 struct sxgbe_priv_data *priv = netdev_priv(ndev);
143 int sxgbe_mdio_register(struct net_device *ndev) argument
146 struct sxgbe_priv_data *priv = netdev_priv(ndev);
156 netdev_err(ndev, "%s: mii bus allocation failed\n", __func__);
171 mdio_bus->priv = ndev;
178 netdev_err(ndev, "mdiobus register failed\n");
217 netdev_info(ndev, "PH
241 sxgbe_mdio_unregister(struct net_device *ndev) argument
[all...]
H A Dsxgbe_platform.c88 struct net_device *ndev = platform_get_drvdata(pdev); local
169 sxgbe_drv_remove(ndev);
182 struct net_device *ndev = platform_get_drvdata(pdev); local
183 int ret = sxgbe_drv_remove(ndev);
191 struct net_device *ndev = dev_get_drvdata(dev); local
193 return sxgbe_suspend(ndev);
198 struct net_device *ndev = dev_get_drvdata(dev); local
200 return sxgbe_resume(ndev);
205 struct net_device *ndev = dev_get_drvdata(dev); local
207 return sxgbe_freeze(ndev);
212 struct net_device *ndev = dev_get_drvdata(dev); local
[all...]
/drivers/net/wireless/ath/wil6210/
H A Ddebug.c22 struct net_device *ndev = wil_to_ndev(wil); local
30 netdev_err(ndev, "%pV", &vaf);
37 struct net_device *ndev = wil_to_ndev(wil); local
45 netdev_info(ndev, "%pV", &vaf);
H A Dethtool.c24 static int wil_ethtoolops_begin(struct net_device *ndev) argument
26 struct wil6210_priv *wil = ndev_to_wil(ndev);
35 static void wil_ethtoolops_complete(struct net_device *ndev) argument
37 struct wil6210_priv *wil = ndev_to_wil(ndev);
44 static int wil_ethtoolops_get_coalesce(struct net_device *ndev, argument
47 struct wil6210_priv *wil = ndev_to_wil(ndev);
61 static int wil_ethtoolops_set_coalesce(struct net_device *ndev, argument
64 struct wil6210_priv *wil = ndev_to_wil(ndev);
100 void wil_set_ethtoolops(struct net_device *ndev) argument
102 ndev
[all...]
/drivers/isdn/i4l/
H A Disdn_concap.c44 struct net_device *ndev = concap->net_dev; local
45 isdn_net_dev *nd = ((isdn_net_local *) netdev_priv(ndev))->netdev;
63 struct net_device *ndev = concap->net_dev; local
64 isdn_net_local *lp = netdev_priv(ndev);
66 IX25DEBUG("isdn_concap_dl_connect_req: %s \n", ndev->name);
H A Disdn_x25iface.c163 struct net_device *ndev,
169 IX25DEBUG("isdn_x25iface_proto_restart %s \n", MY_DEVNAME(ndev));
181 cprot->net_dev = ndev;
162 isdn_x25iface_proto_restart(struct concap_proto *cprot, struct net_device *ndev, struct concap_device_ops *dops) argument
/drivers/net/ethernet/arc/
H A Demac_arc.c32 struct net_device *ndev; local
39 ndev = alloc_etherdev(sizeof(struct arc_emac_priv));
40 if (!ndev)
42 platform_set_drvdata(pdev, ndev);
43 SET_NETDEV_DEV(ndev, dev);
45 priv = netdev_priv(ndev);
60 err = arc_emac_probe(ndev, interface);
63 free_netdev(ndev);
69 struct net_device *ndev = platform_get_drvdata(pdev); local
72 err = arc_emac_remove(ndev);
[all...]
H A Demac_rockchip.c91 struct net_device *ndev; local
100 ndev = alloc_etherdev(sizeof(struct rockchip_priv_data));
101 if (!ndev)
103 platform_set_drvdata(pdev, ndev);
104 SET_NETDEV_DEV(ndev, dev);
106 priv = netdev_priv(ndev);
167 err = arc_emac_probe(ndev, interface);
195 free_netdev(ndev);
201 struct net_device *ndev = platform_get_drvdata(pdev); local
202 struct rockchip_priv_data *priv = netdev_priv(ndev);
[all...]
/drivers/nfc/st21nfcb/
H A Dndlc.h27 struct nci_dev *ndev; member in struct:llt_ndlc
H A Dst21nfcb.c30 static int st21nfcb_nci_open(struct nci_dev *ndev) argument
32 struct st21nfcb_nci_info *info = nci_get_drvdata(ndev);
45 static int st21nfcb_nci_close(struct nci_dev *ndev) argument
47 struct st21nfcb_nci_info *info = nci_get_drvdata(ndev);
57 static int st21nfcb_nci_send(struct nci_dev *ndev, struct sk_buff *skb) argument
59 struct st21nfcb_nci_info *info = nci_get_drvdata(ndev);
61 skb->dev = (void *)ndev;
69 static __u32 st21nfcb_nci_get_rfprotocol(struct nci_dev *ndev, argument
103 ndlc->ndev = nci_allocate_device(&st21nfcb_nci_ops, protocols,
105 if (!ndlc->ndev) {
123 st21nfcb_nci_remove(struct nci_dev *ndev) argument
[all...]
/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_pci.c143 struct net_device *ndev = pci_get_drvdata(pdev); local
144 struct stmmac_priv *priv = netdev_priv(ndev);
146 stmmac_dvr_remove(ndev);
156 struct net_device *ndev = pci_get_drvdata(pdev); local
159 ret = stmmac_suspend(ndev);
168 struct net_device *ndev = pci_get_drvdata(pdev); local
173 return stmmac_resume(ndev);
H A Dstmmac_platform.c331 * so the driver will continue to use the mac irq (ndev->irq)
359 struct net_device *ndev = platform_get_drvdata(pdev); local
360 struct stmmac_priv *priv = netdev_priv(ndev);
361 int ret = stmmac_dvr_remove(ndev);
376 struct net_device *ndev = dev_get_drvdata(dev); local
377 struct stmmac_priv *priv = netdev_priv(ndev);
380 ret = stmmac_suspend(ndev);
389 struct net_device *ndev = dev_get_drvdata(dev); local
390 struct stmmac_priv *priv = netdev_priv(ndev);
396 return stmmac_resume(ndev);
[all...]
H A Ddwmac-socfpga.c213 struct net_device *ndev = platform_get_drvdata(pdev); local
217 if (ndev)
218 stpriv = netdev_priv(ndev);
H A Dstmmac_mdio.c68 struct net_device *ndev = bus->priv; local
69 struct stmmac_priv *priv = netdev_priv(ndev);
103 struct net_device *ndev = bus->priv; local
104 struct stmmac_priv *priv = netdev_priv(ndev);
134 struct net_device *ndev = bus->priv; local
135 struct stmmac_priv *priv = netdev_priv(ndev);
189 * @ndev: net device structure
192 int stmmac_mdio_register(struct net_device *ndev) argument
197 struct stmmac_priv *priv = netdev_priv(ndev);
227 new_bus->priv = ndev;
305 stmmac_mdio_unregister(struct net_device *ndev) argument
[all...]
/drivers/net/wireless/brcm80211/brcmfmac/
H A Dvendor.c35 struct net_device *ndev = cfg_to_ndev(cfg); local
66 ret = brcmf_fil_cmd_data_set(netdev_priv(ndev), cmdhdr->cmd,
69 ret = brcmf_fil_cmd_data_get(netdev_priv(ndev), cmdhdr->cmd,
/drivers/net/wireless/prism54/
H A Dislpci_hotplug.c97 struct net_device *ndev; local
170 if (!(ndev = islpci_setup(pdev))) {
177 priv = netdev_priv(ndev);
185 IRQF_SHARED, ndev->name, priv);
190 ndev->name);
199 unregister_netdev(ndev);
201 free_netdev(ndev);
219 struct net_device *ndev = pci_get_drvdata(pdev); local
220 islpci_private *priv = ndev ? netdev_priv(ndev)
261 struct net_device *ndev = pci_get_drvdata(pdev); local
284 struct net_device *ndev = pci_get_drvdata(pdev); local
[all...]
/drivers/nfc/nfcmrvl/
H A Dnfcmrvl.h31 struct nci_dev *ndev; member in struct:nfcmrvl_private
H A Dmain.c27 static int nfcmrvl_nci_open(struct nci_dev *ndev) argument
29 struct nfcmrvl_private *priv = nci_get_drvdata(ndev);
43 static int nfcmrvl_nci_close(struct nci_dev *ndev) argument
45 struct nfcmrvl_private *priv = nci_get_drvdata(ndev);
55 static int nfcmrvl_nci_send(struct nci_dev *ndev, struct sk_buff *skb) argument
57 struct nfcmrvl_private *priv = nci_get_drvdata(ndev);
61 skb->dev = (void *)ndev;
69 static int nfcmrvl_nci_setup(struct nci_dev *ndev) argument
74 nci_set_config(ndev, NFCMRVL_NOT_ALLOWED_ID, 1, &val);
76 nci_set_config(ndev, NFCMRVL_ACTIVE_I
139 struct nci_dev *ndev = priv->ndev; local
[all...]
/drivers/parport/
H A Dparport_cs.c75 int ndev; member in struct:parport_info_t
155 info->ndev = 1;
171 if (info->ndev) {
175 info->ndev = 0;
/drivers/base/
H A Disa.c114 int isa_register_driver(struct isa_driver *isa_driver, unsigned int ndev) argument
126 for (id = 0; id < ndev; id++) {
/drivers/net/ethernet/apm/xgene/
H A Dxgene_enet_ethtool.c45 static void xgene_get_drvinfo(struct net_device *ndev, argument
48 struct xgene_enet_pdata *pdata = netdev_priv(ndev);
57 static int xgene_get_settings(struct net_device *ndev, struct ethtool_cmd *cmd) argument
59 struct xgene_enet_pdata *pdata = netdev_priv(ndev);
89 static int xgene_set_settings(struct net_device *ndev, struct ethtool_cmd *cmd) argument
91 struct xgene_enet_pdata *pdata = netdev_priv(ndev);
104 static void xgene_get_strings(struct net_device *ndev, u32 stringset, u8 *data) argument
118 static int xgene_get_sset_count(struct net_device *ndev, int sset) argument
126 static void xgene_get_ethtool_stats(struct net_device *ndev, argument
130 void *pdata = netdev_priv(ndev);
147 xgene_enet_set_ethtool_ops(struct net_device *ndev) argument
[all...]
/drivers/scsi/cxgbi/cxgb3i/
H A Dcxgb3i.h27 static inline unsigned int cxgb3i_get_private_ipv4addr(struct net_device *ndev) argument
29 return ((struct port_info *)(netdev_priv(ndev)))->iscsi_ipv4addr;
32 static inline void cxgb3i_set_private_ipv4addr(struct net_device *ndev, argument
35 struct port_info *pi = (struct port_info *)netdev_priv(ndev);
40 memcpy(pi->iscsic.mac_addr, ndev->dev_addr, ETH_ALEN);
/drivers/ide/
H A Dide-cs.c65 int ndev; member in struct:ide_info_t
237 info->ndev = 1;
257 if (info->ndev) {
265 info->ndev = 0;
/drivers/net/
H A Dntb_netdev.c64 struct net_device *ndev; member in struct:ntb_netdev
75 struct net_device *ndev = data; local
76 struct ntb_netdev *dev = netdev_priv(ndev);
78 netdev_dbg(ndev, "Event %x, Link %x\n", status,
83 netif_carrier_off(ndev);
89 netif_carrier_on(ndev);
92 netdev_warn(ndev, "Unsupported event type %d\n", status);
99 struct net_device *ndev = qp_data; local
107 netdev_dbg(ndev, "%s: %d byte payload received\n", __func__, len);
110 skb->protocol = eth_type_trans(skb, ndev);
139 struct net_device *ndev = qp_data; local
157 ntb_netdev_start_xmit(struct sk_buff *skb, struct net_device *ndev) argument
177 ntb_netdev_open(struct net_device *ndev) argument
210 ntb_netdev_close(struct net_device *ndev) argument
224 ntb_netdev_change_mtu(struct net_device *ndev, int new_mtu) argument
287 ntb_get_drvinfo(struct net_device *ndev, struct ethtool_drvinfo *info) argument
327 struct net_device *ndev; local
377 struct net_device *ndev; local
[all...]

Completed in 572 milliseconds

1234567