Home
last modified time | relevance | path

Searched refs:net_dev (Results 1 – 25 of 145) sorted by relevance

123456

/Linux-v5.4/drivers/net/wimax/i2400m/
Dnetdev.c86 int i2400m_open(struct net_device *net_dev) in i2400m_open() argument
89 struct i2400m *i2400m = net_dev_to_i2400m(net_dev); in i2400m_open()
92 d_fnstart(3, dev, "(net_dev %p [i2400m %p])\n", net_dev, i2400m); in i2400m_open()
101 net_dev, i2400m, result); in i2400m_open()
107 int i2400m_stop(struct net_device *net_dev) in i2400m_stop() argument
109 struct i2400m *i2400m = net_dev_to_i2400m(net_dev); in i2400m_stop()
112 d_fnstart(3, dev, "(net_dev %p [i2400m %p])\n", net_dev, i2400m); in i2400m_stop()
114 d_fnend(3, dev, "(net_dev %p [i2400m %p]) = 0\n", net_dev, i2400m); in i2400m_stop()
142 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400m_wake_tx_work() local
161 if (unlikely(!netif_carrier_ok(net_dev))) in i2400m_wake_tx_work()
[all …]
Ddriver.c209 struct net_device *net_dev = i2400m->wimax_dev.net_dev; in i2400m_check_mac_addr() local
224 if (!memcmp(net_dev->perm_addr, ddi->mac_address, in i2400m_check_mac_addr()
230 dev_warn(dev, "boot mode reported %pM\n", net_dev->perm_addr); in i2400m_check_mac_addr()
236 net_dev->addr_len = ETH_ALEN; in i2400m_check_mac_addr()
237 memcpy(net_dev->perm_addr, ddi->mac_address, ETH_ALEN); in i2400m_check_mac_addr()
238 memcpy(net_dev->dev_addr, ddi->mac_address, ETH_ALEN); in i2400m_check_mac_addr()
273 struct net_device *net_dev = wimax_dev->net_dev; in __i2400m_dev_start() local
328 net_dev, i2400m, result); in __i2400m_dev_start()
352 net_dev, i2400m, result); in __i2400m_dev_start()
495 netif_tx_disable(i2400m->wimax_dev.net_dev); in i2400m_pre_reset()
[all …]
/Linux-v5.4/drivers/net/ethernet/sis/
Dsis900.c119 static void sis900_read_mode(struct net_device *net_dev, int *speed, int *duplex);
217 static int sis900_open(struct net_device *net_dev);
218 static int sis900_mii_probe (struct net_device * net_dev);
219 static void sis900_init_rxfilter (struct net_device * net_dev);
221 static int mdio_read(struct net_device *net_dev, int phy_id, int location);
222 static void mdio_write(struct net_device *net_dev, int phy_id, int location, int val);
224 static void sis900_check_mode (struct net_device *net_dev, struct mii_phy *mii_phy);
225 static void sis900_tx_timeout(struct net_device *net_dev);
226 static void sis900_init_tx_ring(struct net_device *net_dev);
227 static void sis900_init_rx_ring(struct net_device *net_dev);
[all …]
/Linux-v5.4/net/batman-adv/
Dhard-interface.c54 dev_put(hard_iface->net_dev); in batadv_hardif_release()
66 batadv_hardif_get_by_netdev(const struct net_device *net_dev) in batadv_hardif_get_by_netdev() argument
72 if (hard_iface->net_dev == net_dev && in batadv_hardif_get_by_netdev()
149 static bool batadv_is_on_batman_iface(const struct net_device *net_dev) in batadv_is_on_batman_iface() argument
151 struct net *net = dev_net(net_dev); in batadv_is_on_batman_iface()
157 if (batadv_softif_is_valid(net_dev)) in batadv_is_on_batman_iface()
161 if (dev_get_iflink(net_dev) == 0 || in batadv_is_on_batman_iface()
162 dev_get_iflink(net_dev) == net_dev->ifindex) in batadv_is_on_batman_iface()
165 parent_net = batadv_getlink_net(net_dev, net); in batadv_is_on_batman_iface()
169 dev_get_iflink(net_dev)); in batadv_is_on_batman_iface()
[all …]
Ddebugfs.c62 struct net_device *net_dev = (struct net_device *)inode->i_private; in neighbors_open() local
66 return single_open(file, batadv_hardif_neigh_seq_print_text, net_dev); in neighbors_open()
71 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_originators_open() local
75 return single_open(file, batadv_orig_seq_print_text, net_dev); in batadv_originators_open()
89 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_originators_hardif_open() local
93 return single_open(file, batadv_orig_hardif_seq_print_text, net_dev); in batadv_originators_hardif_open()
98 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_gateways_open() local
102 return single_open(file, batadv_gw_client_seq_print_text, net_dev); in batadv_gateways_open()
107 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_transtable_global_open() local
111 return single_open(file, batadv_tt_global_seq_print_text, net_dev); in batadv_transtable_global_open()
[all …]
Dsysfs.c65 struct net_device *net_dev = batadv_kobj_to_netdev(obj); in batadv_kobj_to_batpriv() local
67 return netdev_priv(net_dev); in batadv_kobj_to_batpriv()
141 struct net_device *net_dev = batadv_kobj_to_netdev(kobj); \
142 struct batadv_priv *bat_priv = netdev_priv(net_dev); \
147 &bat_priv->_name, net_dev); \
180 struct net_device *net_dev = batadv_kobj_to_netdev(kobj); \
181 struct batadv_priv *bat_priv = netdev_priv(net_dev); \
187 &bat_priv->_var, net_dev, \
264 struct net_device *net_dev = batadv_kobj_to_netdev(kobj); \
270 hard_iface = batadv_hardif_get_by_netdev(net_dev); \
[all …]
Dgateway_common.c36 bool batadv_parse_throughput(struct net_device *net_dev, char *buff, in batadv_parse_throughput() argument
57 batadv_err(net_dev, in batadv_parse_throughput()
67 batadv_err(net_dev, in batadv_parse_throughput()
82 batadv_err(net_dev, in batadv_parse_throughput()
103 static bool batadv_parse_gw_bandwidth(struct net_device *net_dev, char *buff, in batadv_parse_gw_bandwidth() argument
113 ret = batadv_parse_throughput(net_dev, buff, "download gateway speed", in batadv_parse_gw_bandwidth()
120 ret = batadv_parse_throughput(net_dev, slash_ptr + 1, in batadv_parse_gw_bandwidth()
167 ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff, in batadv_gw_bandwidth_set() argument
170 struct batadv_priv *bat_priv = netdev_priv(net_dev); in batadv_gw_bandwidth_set()
180 ret = batadv_parse_gw_bandwidth(net_dev, buff, &down_new, &up_new); in batadv_gw_bandwidth_set()
[all …]
/Linux-v5.4/drivers/net/ethernet/sfc/falcon/
Defx.c218 netif_err(efx, drv, efx->net_dev, in ef4_check_disabled()
304 netif_vdbg(efx, intr, efx->net_dev, in ef4_poll()
341 netif_dbg(efx, probe, efx->net_dev, in ef4_probe_eventq()
361 netif_dbg(efx, drv, efx->net_dev, in ef4_init_eventq()
376 netif_dbg(channel->efx, ifup, channel->efx->net_dev, in ef4_start_eventq()
402 netif_dbg(channel->efx, drv, channel->efx->net_dev, in ef4_fini_eventq()
411 netif_dbg(channel->efx, drv, channel->efx->net_dev, in ef4_remove_eventq()
499 netif_dbg(channel->efx, probe, channel->efx->net_dev, in ef4_probe_channel()
574 netif_err(efx, probe, efx->net_dev, in ef4_probe_channels()
595 netdev_features_t old_features = efx->net_dev->features; in ef4_start_datapath()
[all …]
Dethtool.c90 static int ef4_ethtool_phys_id(struct net_device *net_dev, in ef4_ethtool_phys_id() argument
93 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_phys_id()
116 ef4_ethtool_get_link_ksettings(struct net_device *net_dev, in ef4_ethtool_get_link_ksettings() argument
119 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_link_ksettings()
140 ef4_ethtool_set_link_ksettings(struct net_device *net_dev, in ef4_ethtool_set_link_ksettings() argument
143 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_link_ksettings()
149 netif_dbg(efx, drv, efx->net_dev, in ef4_ethtool_set_link_ksettings()
160 static void ef4_ethtool_get_drvinfo(struct net_device *net_dev, in ef4_ethtool_get_drvinfo() argument
163 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_drvinfo()
170 static int ef4_ethtool_get_regs_len(struct net_device *net_dev) in ef4_ethtool_get_regs_len() argument
[all …]
Dselftest.c137 netif_dbg(efx, drv, efx->net_dev, "testing interrupts\n"); in ef4_test_interrupts()
142 netif_dbg(efx, drv, efx->net_dev, in ef4_test_interrupts()
152 netif_dbg(efx, drv, efx->net_dev, "waiting for test interrupt\n"); in ef4_test_interrupts()
161 netif_err(efx, drv, efx->net_dev, "timed out waiting for interrupt\n"); in ef4_test_interrupts()
165 netif_dbg(efx, drv, efx->net_dev, "%s test interrupt seen on CPU%d\n", in ef4_test_interrupts()
225 netif_dbg(efx, drv, efx->net_dev, in ef4_test_eventq_irq()
234 netif_err(efx, drv, efx->net_dev, in ef4_test_eventq_irq()
238 netif_err(efx, drv, efx->net_dev, in ef4_test_eventq_irq()
243 netif_err(efx, drv, efx->net_dev, in ef4_test_eventq_irq()
267 netif_info(efx, drv, efx->net_dev, in ef4_test_phy()
[all …]
/Linux-v5.4/drivers/net/ethernet/
Dlantiq_xrx200.c71 struct net_device *net_dev; member
115 static int xrx200_open(struct net_device *net_dev) in xrx200_open() argument
117 struct xrx200_priv *priv = netdev_priv(net_dev); in xrx200_open()
135 netif_wake_queue(net_dev); in xrx200_open()
140 static int xrx200_close(struct net_device *net_dev) in xrx200_close() argument
142 struct xrx200_priv *priv = netdev_priv(net_dev); in xrx200_close()
144 netif_stop_queue(net_dev); in xrx200_close()
159 ch->skb[ch->dma.desc] = netdev_alloc_skb_ip_align(ch->priv->net_dev, in xrx200_alloc_skb()
190 struct net_device *net_dev = priv->net_dev; in xrx200_hw_receive() local
199 netdev_err(net_dev, "failed to allocate new rx buffer\n"); in xrx200_hw_receive()
[all …]
Dec_bhf.c123 struct net_device *net_dev; member
185 if (unlikely(netif_queue_stopped(priv->net_dev))) { in ec_bhf_process_tx()
190 netif_wake_queue(priv->net_dev); in ec_bhf_process_tx()
215 skb = netdev_alloc_skb_ip_align(priv->net_dev, pkt_size); in ec_bhf_process_rx()
218 skb->protocol = eth_type_trans(skb, priv->net_dev); in ec_bhf_process_rx()
244 if (!netif_running(priv->net_dev)) in ec_bhf_timer_fun()
283 struct net_device *net_dev) in ec_bhf_start_xmit() argument
285 struct ec_bhf_priv *priv = netdev_priv(net_dev); in ec_bhf_start_xmit()
308 netif_stop_queue(net_dev); in ec_bhf_start_xmit()
392 static int ec_bhf_open(struct net_device *net_dev) in ec_bhf_open() argument
[all …]
/Linux-v5.4/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth.c214 static int dpaa_netdev_init(struct net_device *net_dev, in dpaa_netdev_init() argument
218 struct dpaa_priv *priv = netdev_priv(net_dev); in dpaa_netdev_init()
219 struct device *dev = net_dev->dev.parent; in dpaa_netdev_init()
229 percpu_priv->net_dev = net_dev; in dpaa_netdev_init()
232 net_dev->netdev_ops = dpaa_ops; in dpaa_netdev_init()
235 net_dev->mem_start = priv->mac_dev->res->start; in dpaa_netdev_init()
236 net_dev->mem_end = priv->mac_dev->res->end; in dpaa_netdev_init()
238 net_dev->min_mtu = ETH_MIN_MTU; in dpaa_netdev_init()
239 net_dev->max_mtu = dpaa_get_max_mtu(); in dpaa_netdev_init()
241 net_dev->hw_features |= (NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | in dpaa_netdev_init()
[all …]
Ddpaa_ethtool.c78 static int dpaa_get_link_ksettings(struct net_device *net_dev, in dpaa_get_link_ksettings() argument
81 if (!net_dev->phydev) { in dpaa_get_link_ksettings()
82 netdev_dbg(net_dev, "phy device not initialized\n"); in dpaa_get_link_ksettings()
86 phy_ethtool_ksettings_get(net_dev->phydev, cmd); in dpaa_get_link_ksettings()
91 static int dpaa_set_link_ksettings(struct net_device *net_dev, in dpaa_set_link_ksettings() argument
96 if (!net_dev->phydev) { in dpaa_set_link_ksettings()
97 netdev_err(net_dev, "phy device not initialized\n"); in dpaa_set_link_ksettings()
101 err = phy_ethtool_ksettings_set(net_dev->phydev, cmd); in dpaa_set_link_ksettings()
103 netdev_err(net_dev, "phy_ethtool_ksettings_set() = %d\n", err); in dpaa_set_link_ksettings()
108 static void dpaa_get_drvinfo(struct net_device *net_dev, in dpaa_get_drvinfo() argument
[all …]
/Linux-v5.4/drivers/net/ethernet/broadcom/
Dbgmac.c136 struct net_device *net_dev = bgmac->net_dev; in bgmac_dma_tx_add() local
144 netdev_err(bgmac->net_dev, "Too long skb (%d)\n", skb->len); in bgmac_dma_tx_add()
157 netdev_err(bgmac->net_dev, "TX ring is full, queue should be stopped!\n"); in bgmac_dma_tx_add()
158 netif_stop_queue(net_dev); in bgmac_dma_tx_add()
193 netdev_sent_queue(net_dev, skb->len); in bgmac_dma_tx_add()
206 netif_stop_queue(net_dev); in bgmac_dma_tx_add()
224 netdev_err(bgmac->net_dev, "Mapping error of skb on ring 0x%X\n", in bgmac_dma_tx_add()
229 net_dev->stats.tx_dropped++; in bgmac_dma_tx_add()
230 net_dev->stats.tx_errors++; in bgmac_dma_tx_add()
269 bgmac->net_dev->stats.tx_bytes += slot->skb->len; in bgmac_dma_tx_free()
[all …]
/Linux-v5.4/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth.c49 if (!(priv->net_dev->features & NETIF_F_RXCSUM)) in validate_rx_csum()
68 struct device *dev = priv->net_dev->dev.parent; in free_rx_fd()
128 struct device *dev = priv->net_dev->dev.parent; in build_frag_skb()
208 struct device *dev = priv->net_dev->dev.parent; in free_bufs()
326 trace_xdp_exception(priv->net_dev, xdp_prog, xdp_act); in run_xdp()
333 dma_unmap_page(priv->net_dev->dev.parent, addr, in run_xdp()
337 err = xdp_do_redirect(priv->net_dev, &xdp, xdp_prog); in run_xdp()
363 struct device *dev = priv->net_dev->dev.parent; in dpaa2_eth_rx()
370 trace_dpaa2_rx_fd(priv->net_dev, fd); in dpaa2_eth_rx()
432 skb->protocol = eth_type_trans(skb, priv->net_dev); in dpaa2_eth_rx()
[all …]
Ddpaa2-ethtool.c68 static void dpaa2_eth_get_drvinfo(struct net_device *net_dev, in dpaa2_eth_get_drvinfo() argument
71 struct dpaa2_eth_priv *priv = netdev_priv(net_dev); in dpaa2_eth_get_drvinfo()
78 strlcpy(drvinfo->bus_info, dev_name(net_dev->dev.parent->parent), in dpaa2_eth_get_drvinfo()
83 dpaa2_eth_get_link_ksettings(struct net_device *net_dev, in dpaa2_eth_get_link_ksettings() argument
86 struct dpaa2_eth_priv *priv = netdev_priv(net_dev); in dpaa2_eth_get_link_ksettings()
96 static void dpaa2_eth_get_pauseparam(struct net_device *net_dev, in dpaa2_eth_get_pauseparam() argument
99 struct dpaa2_eth_priv *priv = netdev_priv(net_dev); in dpaa2_eth_get_pauseparam()
108 static int dpaa2_eth_set_pauseparam(struct net_device *net_dev, in dpaa2_eth_set_pauseparam() argument
111 struct dpaa2_eth_priv *priv = netdev_priv(net_dev); in dpaa2_eth_set_pauseparam()
116 netdev_info(net_dev, "No pause frame support for DPNI version < %d.%d\n", in dpaa2_eth_set_pauseparam()
[all …]
/Linux-v5.4/drivers/net/ethernet/sfc/
Defx.c241 netif_err(efx, drv, efx->net_dev, in efx_check_disabled()
337 netif_vdbg(efx, intr, efx->net_dev, in efx_poll()
377 netif_dbg(efx, probe, efx->net_dev, in efx_probe_eventq()
397 netif_dbg(efx, drv, efx->net_dev, in efx_init_eventq()
412 netif_dbg(channel->efx, ifup, channel->efx->net_dev, in efx_start_eventq()
438 netif_dbg(channel->efx, drv, channel->efx->net_dev, in efx_fini_eventq()
447 netif_dbg(channel->efx, drv, channel->efx->net_dev, in efx_remove_eventq()
542 netif_dbg(channel->efx, probe, channel->efx->net_dev, in efx_probe_channel()
619 netif_err(efx, probe, efx->net_dev, in efx_probe_channels()
640 netdev_features_t old_features = efx->net_dev->features; in efx_start_datapath()
[all …]
Dsriov.c11 int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac) in efx_sriov_set_vf_mac() argument
13 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_mac()
21 int efx_sriov_set_vf_vlan(struct net_device *net_dev, int vf_i, u16 vlan, in efx_sriov_set_vf_vlan() argument
24 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_vlan()
40 int efx_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf_i, in efx_sriov_set_vf_spoofchk() argument
43 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_spoofchk()
51 int efx_sriov_get_vf_config(struct net_device *net_dev, int vf_i, in efx_sriov_get_vf_config() argument
54 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_get_vf_config()
62 int efx_sriov_set_vf_link_state(struct net_device *net_dev, int vf_i, in efx_sriov_set_vf_link_state() argument
65 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_link_state()
Dethtool.c100 static int efx_ethtool_phys_id(struct net_device *net_dev, in efx_ethtool_phys_id() argument
103 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_phys_id()
126 efx_ethtool_get_link_ksettings(struct net_device *net_dev, in efx_ethtool_get_link_ksettings() argument
129 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_link_ksettings()
156 efx_ethtool_set_link_ksettings(struct net_device *net_dev, in efx_ethtool_set_link_ksettings() argument
159 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_link_ksettings()
165 netif_dbg(efx, drv, efx->net_dev, in efx_ethtool_set_link_ksettings()
176 static void efx_ethtool_get_drvinfo(struct net_device *net_dev, in efx_ethtool_get_drvinfo() argument
179 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_drvinfo()
188 static int efx_ethtool_get_regs_len(struct net_device *net_dev) in efx_ethtool_get_regs_len() argument
[all …]
Dselftest.c137 netif_dbg(efx, drv, efx->net_dev, "testing interrupts\n"); in efx_test_interrupts()
142 netif_dbg(efx, drv, efx->net_dev, in efx_test_interrupts()
152 netif_dbg(efx, drv, efx->net_dev, "waiting for test interrupt\n"); in efx_test_interrupts()
161 netif_err(efx, drv, efx->net_dev, "timed out waiting for interrupt\n"); in efx_test_interrupts()
165 netif_dbg(efx, drv, efx->net_dev, "%s test interrupt seen on CPU%d\n", in efx_test_interrupts()
225 netif_dbg(efx, drv, efx->net_dev, in efx_test_eventq_irq()
234 netif_err(efx, drv, efx->net_dev, in efx_test_eventq_irq()
238 netif_err(efx, drv, efx->net_dev, in efx_test_eventq_irq()
243 netif_err(efx, drv, efx->net_dev, in efx_test_eventq_irq()
267 netif_info(efx, drv, efx->net_dev, in efx_test_phy()
[all …]
/Linux-v5.4/net/atm/
Dbr2684.c84 struct net_device *net_dev; member
103 static inline struct br2684_dev *BRPRIV(const struct net_device *net_dev) in BRPRIV() argument
105 return netdev_priv(net_dev); in BRPRIV()
110 return list_entry(le, struct br2684_dev, br2684_devs)->net_dev; in list_entry_brdev()
127 struct net_device *net_dev; in br2684_find_dev() local
131 net_dev = list_entry_brdev(lh); in br2684_find_dev()
132 if (BRPRIV(net_dev)->number == s->spec.devnum) in br2684_find_dev()
133 return net_dev; in br2684_find_dev()
138 net_dev = list_entry_brdev(lh); in br2684_find_dev()
139 if (!strncmp(net_dev->name, s->spec.ifname, IFNAMSIZ)) in br2684_find_dev()
[all …]
/Linux-v5.4/drivers/net/ethernet/qualcomm/
Dqca_spi.c88 netdev_dbg(qca->net_dev, "interrupts: 0x%04x\n", *intr_cause); in start_spi_intr_handling()
101 netdev_dbg(qca->net_dev, "acking int: 0x%04x\n", intr_cause); in end_spi_intr_handling()
281 struct net_device_stats *n_stats = &qca->net_dev->stats; in qcaspi_transmit()
323 netif_tx_lock_bh(qca->net_dev); in qcaspi_transmit()
331 if (netif_queue_stopped(qca->net_dev)) in qcaspi_transmit()
332 netif_wake_queue(qca->net_dev); in qcaspi_transmit()
333 netif_tx_unlock_bh(qca->net_dev); in qcaspi_transmit()
342 struct net_device *net_dev = qca->net_dev; in qcaspi_receive() local
343 struct net_device_stats *n_stats = &net_dev->stats; in qcaspi_receive()
350 qca->rx_skb = netdev_alloc_skb_ip_align(net_dev, in qcaspi_receive()
[all …]
Dqca_uart.c49 struct net_device *net_dev; member
67 struct net_device *netdev = qca->net_dev; in qca_tty_receive()
130 struct net_device_stats *n_stats = &qca->net_dev->stats; in qcauart_transmit()
136 if (!netif_running(qca->net_dev)) { in qcauart_transmit()
147 netif_wake_queue(qca->net_dev); in qcauart_transmit()
179 netif_start_queue(qca->net_dev); in qcauart_netdev_open()
213 netdev_warn(qca->net_dev, "xmit: iface is down\n"); in qcauart_netdev_xmit()
234 netif_stop_queue(qca->net_dev); in qcauart_netdev_xmit()
255 netdev_info(qca->net_dev, "Transmit timeout at %ld, latency %ld\n", in qcauart_netdev_tx_timeout()
275 qca->rx_skb = netdev_alloc_skb_ip_align(qca->net_dev, in qcauart_netdev_init()
[all …]
/Linux-v5.4/drivers/leds/trigger/
Dledtrig-netdev.c46 struct net_device *net_dev; member
120 if (trigger_data->net_dev) { in device_name_store()
121 dev_put(trigger_data->net_dev); in device_name_store()
122 trigger_data->net_dev = NULL; in device_name_store()
131 trigger_data->net_dev = in device_name_store()
135 if (trigger_data->net_dev != NULL) in device_name_store()
136 if (netif_carrier_ok(trigger_data->net_dev)) in device_name_store()
308 if (!(dev == trigger_data->net_dev || in netdev_trig_notify()
319 if (trigger_data->net_dev) in netdev_trig_notify()
320 dev_put(trigger_data->net_dev); in netdev_trig_notify()
[all …]

123456