/net/ipv6/ |
H A D | addrconf_core.c | 140 struct net_device *dev = idev->dev; local 147 pr_debug("%s: %s\n", __func__, dev ? dev->name : "NIL"); 149 dev_put(dev);
|
H A D | ip6_input.c | 65 int ipv6_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, struct net_device *orig_dev) argument 70 struct net *net = dev_net(skb->dev); 79 idev = __in6_dev_get(skb->dev); 93 * be queued, we cannot refer to skb->dev anymore. 97 * via the loopback interface (lo) here; skb->dev = loopback_dev. 102 IP6CB(skb)->iif = skb_dst(skb) ? ip6_dst_idev(skb_dst(skb))->dev->ifindex : dev->ifindex; 112 IP6_ADD_STATS_BH(dev_net(dev), idev, 121 if (!(dev->flags & IFF_LOOPBACK) && 132 dev [all...] |
H A D | output_core.c | 91 struct net_device *dev = dst->dev; local 95 idev = __in6_dev_get(dev); 99 hoplimit = dev_net(dev)->ipv6.devconf_all->hop_limit; 118 skb_dst(skb)->dev, dst_output);
|
/net/ipv6/netfilter/ |
H A D | ip6t_rpfilter.c | 30 const struct net_device *dev, u8 flags) 52 fl6.flowi6_oif = dev->ifindex; 56 rt = (void *) ip6_route_lookup(dev_net(dev), &fl6, lookup_flags); 68 if (rt->rt6i_idev->dev == dev || (flags & XT_RPFILTER_LOOSE)) 29 rpfilter_lookup_reverse6(const struct sk_buff *skb, const struct net_device *dev, u8 flags) argument
|
H A D | nf_nat_masquerade_ipv6.c | 67 const struct net_device *dev = netdev_notifier_info_to_dev(ptr); local 68 struct net *net = dev_net(dev); 72 (void *)(long)dev->ifindex, 0, 0); 87 netdev_notifier_info_init(&info, ifa->idev->dev);
|
/net/irda/ |
H A D | wrapper.c | 208 async_bump(struct net_device *dev, argument 259 dataskb->dev = dev; 274 * Function async_unwrap_bof(dev, byte) 280 async_unwrap_bof(struct net_device *dev, argument 293 irda_device_set_media_busy(dev, TRUE); 314 * Function async_unwrap_eof(dev, byte) 320 async_unwrap_eof(struct net_device *dev, argument 333 irda_device_set_media_busy(dev, TRUE); 357 async_bump(dev, stat 378 async_unwrap_ce(struct net_device *dev, struct net_device_stats *stats, iobuff_t *rx_buff, __u8 byte) argument 408 async_unwrap_other(struct net_device *dev, struct net_device_stats *stats, iobuff_t *rx_buff, __u8 byte) argument 472 async_unwrap_char(struct net_device *dev, struct net_device_stats *stats, iobuff_t *rx_buff, __u8 byte) argument [all...] |
/net/llc/ |
H A D | llc_input.c | 145 * @dev: device that receive pdu 154 int llc_rcv(struct sk_buff *skb, struct net_device *dev, argument 165 if (!net_eq(dev_net(dev), &init_net)) 199 rcv(skb, dev, pt, orig_dev); 206 rcv(cskb, dev, pt, orig_dev);
|
/net/netfilter/ |
H A D | xt_addrtype.c | 36 static u32 match_lookup_rt6(struct net *net, const struct net_device *dev, argument 47 if (dev) 48 flow.flowi6_oif = dev->ifindex; 56 if (dev && (mask & XT_ADDRTYPE_LOCAL)) { 58 if (v6ops && v6ops->chk_addr(net, addr, dev, true)) 74 if (dev == NULL && rt->rt6i_flags & RTF_LOCAL) 83 static bool match_type6(struct net *net, const struct net_device *dev, argument 98 return !!(mask & match_lookup_rt6(net, dev, addr, mask)); 103 addrtype_mt6(struct net *net, const struct net_device *dev, argument 110 ret &= match_type6(net, dev, 119 match_type(struct net *net, const struct net_device *dev, __be32 addr, u_int16_t mask) argument 149 const struct net_device *dev = NULL; local [all...] |
/net/netlabel/ |
H A D | netlabel_addrlist.c | 316 * @dev: network interface 325 int src, const char *dev, 331 if (dev != NULL) 332 audit_log_format(audit_buf, " netif=%s", dev); 349 * @dev: network interface 359 const char *dev, 365 if (dev != NULL) 366 audit_log_format(audit_buf, " netif=%s", dev); 324 netlbl_af4list_audit_addr(struct audit_buffer *audit_buf, int src, const char *dev, __be32 addr, __be32 mask) argument 357 netlbl_af6list_audit_addr(struct audit_buffer *audit_buf, int src, const char *dev, const struct in6_addr *addr, const struct in6_addr *mask) argument
|
H A D | netlabel_addrlist.h | 125 int src, const char *dev, 129 int src, const char *dev, 194 const char *dev, 200 const char *dev, 128 netlbl_af4list_audit_addr(struct audit_buffer *audit_buf, int src, const char *dev, __be32 addr, __be32 mask) argument 198 netlbl_af6list_audit_addr(struct audit_buffer *audit_buf, int src, const char *dev, const struct in6_addr *addr, const struct in6_addr *mask) argument
|
/net/netrom/ |
H A D | nr_dev.c | 43 int nr_rx_ip(struct sk_buff *skb, struct net_device *dev) argument 45 struct net_device_stats *stats = &dev->stats; 47 if (!netif_running(dev)) { 58 skb->dev = dev; 98 static int nr_header(struct sk_buff *skb, struct net_device *dev, argument 104 memcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len); 111 memcpy(buff, daddr, dev->addr_len); 131 static int __must_check nr_set_mac_address(struct net_device *dev, voi argument 152 nr_open(struct net_device *dev) argument 165 nr_close(struct net_device *dev) argument 172 nr_xmit(struct sk_buff *skb, struct net_device *dev) argument 201 nr_setup(struct net_device *dev) argument [all...] |
/net/nfc/ |
H A D | nfc.h | 38 struct nfc_dev *dev; member in struct:nfc_rawsock 55 void nfc_llcp_mac_is_down(struct nfc_dev *dev); 56 void nfc_llcp_mac_is_up(struct nfc_dev *dev, u32 target_idx, 58 int nfc_llcp_register_device(struct nfc_dev *dev); 59 void nfc_llcp_unregister_device(struct nfc_dev *dev); 60 int nfc_llcp_set_remote_gb(struct nfc_dev *dev, u8 *gb, u8 gb_len); 61 u8 *nfc_llcp_general_bytes(struct nfc_dev *dev, size_t *general_bytes_len); 62 int nfc_llcp_data_received(struct nfc_dev *dev, struct sk_buff *skb); 63 struct nfc_llcp_local *nfc_llcp_find_local(struct nfc_dev *dev); 86 int nfc_genl_targets_found(struct nfc_dev *dev); 106 nfc_put_device(struct nfc_dev *dev) argument [all...] |
/net/openvswitch/ |
H A D | vport-netdev.c | 71 vport = ovs_netdev_get_vport(skb->dev); 84 return netdev_vport_priv(local)->dev; 102 netdev_vport->dev = dev_get_by_name(ovs_dp_get_net(vport->dp), parms->name); 103 if (!netdev_vport->dev) { 108 if (netdev_vport->dev->flags & IFF_LOOPBACK || 109 netdev_vport->dev->type != ARPHRD_ETHER || 110 ovs_is_internal_dev(netdev_vport->dev)) { 116 err = netdev_master_upper_dev_link(netdev_vport->dev, 121 err = netdev_rx_handler_register(netdev_vport->dev, netdev_frame_hook, 126 dev_set_promiscuity(netdev_vport->dev, 218 ovs_netdev_get_vport(struct net_device *dev) argument [all...] |
/net/rfkill/ |
H A D | rfkill-gpio.c | 66 static int rfkill_gpio_acpi_probe(struct device *dev, argument 71 id = acpi_match_device(dev->driver->acpi_match_table, dev); 75 rfkill->name = dev_name(dev); 83 struct rfkill_gpio_platform_data *pdata = pdev->dev.platform_data; 88 rfkill = devm_kzalloc(&pdev->dev, sizeof(*rfkill), GFP_KERNEL); 92 if (ACPI_HANDLE(&pdev->dev)) { 93 ret = rfkill_gpio_acpi_probe(&pdev->dev, rfkill); 103 rfkill->clk = devm_clk_get(&pdev->dev, NULL); 105 gpio = devm_gpiod_get_index(&pdev->dev, "rese [all...] |
/net/rose/ |
H A D | rose_dev.c | 38 static int rose_header(struct sk_buff *skb, struct net_device *dev, argument 59 struct net_device *dev = skb->dev; local 60 struct net_device_stats *stats = &dev->stats; 93 static int rose_set_mac_address(struct net_device *dev, void *addr) argument 98 if (!memcmp(dev->dev_addr, sa->sa_data, dev->addr_len)) 101 if (dev->flags & IFF_UP) { 106 rose_del_loopback_node((rose_address *)dev->dev_addr); 109 memcpy(dev 114 rose_open(struct net_device *dev) argument 127 rose_close(struct net_device *dev) argument 134 rose_xmit(struct sk_buff *skb, struct net_device *dev) argument 159 rose_setup(struct net_device *dev) argument [all...] |
/net/sched/ |
H A D | em_ipset.c | 59 struct net_device *dev, *indev = NULL; local 91 dev = skb->dev; 95 if (dev && skb->skb_iif) 96 indev = dev_get_by_index_rcu(dev_net(dev), skb->skb_iif); 98 acpar.in = indev ? indev : dev; 99 acpar.out = dev;
|
/net/wimax/ |
H A D | op-msg.c | 126 struct device *dev = wimax_dev_to_dev(wimax_dev); local 141 dev_err(dev, "no memory to create generic netlink message\n"); 147 dev_err(dev, "no memory to add ifindex attribute\n"); 154 dev_err(dev, "no memory to add pipe_name attribute\n"); 160 dev_err(dev, "no memory to add payload (msg %p size %zu) in " 275 struct device *dev = wimax_dev_to_dev(wimax_dev); local 280 d_printf(1, dev, "CTX: wimax msg, %zu bytes\n", size); 281 d_dump(2, dev, msg, size); 283 d_printf(1, dev, "CTX: genl multicast done\n"); 336 struct device *dev; local [all...] |
H A D | op-rfkill.c | 97 struct device *dev = wimax_dev_to_dev(wimax_dev); local 100 d_fnstart(3, dev, "(wimax_dev %p state %u)\n", wimax_dev, state); 124 d_fnend(3, dev, "(wimax_dev %p state %u) = void [%d]\n", 153 struct device *dev = wimax_dev_to_dev(wimax_dev); local 156 d_fnstart(3, dev, "(wimax_dev %p state %u)\n", wimax_dev, state); 177 d_fnend(3, dev, "(wimax_dev %p state %u) = void [%d]\n", 210 struct device *dev = wimax_dev_to_dev(wimax_dev); local 214 d_fnstart(3, dev, "(wimax_dev %p state %u)\n", wimax_dev, state); 231 d_fnend(3, dev, "(wimax_dev %p state %u) = %d\n", 253 struct device *dev local 304 struct device *dev = wimax_dev_to_dev(wimax_dev); local 352 struct device *dev = wimax_dev_to_dev(wimax_dev); local 396 struct device *dev = wimax_dev_to_dev(wimax_dev); local 418 struct device *dev; local [all...] |
/net/wireless/ |
H A D | sysfs.c | 22 struct device *dev) 24 return container_of(dev, struct cfg80211_registered_device, wiphy.dev); 28 static ssize_t name ## _show(struct device *dev, \ 32 return sprintf(buf, fmt "\n", dev_to_rdev(dev)->member); \ 40 static ssize_t name_show(struct device *dev, argument 43 struct wiphy *wiphy = &dev_to_rdev(dev)->wiphy; 44 return sprintf(buf, "%s\n", dev_name(&wiphy->dev)); 48 static ssize_t addresses_show(struct device *dev, argument 52 struct wiphy *wiphy = &dev_to_rdev(dev) 21 dev_to_rdev( struct device *dev) argument 76 wiphy_dev_release(struct device *dev) argument 83 wiphy_uevent(struct device *dev, struct kobj_uevent_env *env) argument 98 wiphy_suspend(struct device *dev, pm_message_t state) argument 122 wiphy_resume(struct device *dev) argument [all...] |
H A D | wext-priv.c | 16 int iw_handler_get_private(struct net_device * dev, argument 22 if ((dev->wireless_handlers->num_private_args == 0) || 23 (dev->wireless_handlers->private_args == NULL)) 27 if (wrqu->data.length < dev->wireless_handlers->num_private_args) { 31 wrqu->data.length = dev->wireless_handlers->num_private_args; 36 wrqu->data.length = dev->wireless_handlers->num_private_args; 39 memcpy(extra, dev->wireless_handlers->private_args, 93 static int get_priv_descr_and_size(struct net_device *dev, unsigned int cmd, argument 100 for (i = 0; i < dev->wireless_handlers->num_private_args; i++) { 101 if (cmd == dev 137 ioctl_private_iw_point(struct iw_point *iwp, unsigned int cmd, const struct iw_priv_args *descr, iw_handler handler, struct net_device *dev, struct iw_request_info *info, int extra_size) argument 187 ioctl_private_call(struct net_device *dev, struct iwreq *iwr, unsigned int cmd, struct iw_request_info *info, iw_handler handler) argument 213 compat_private_call(struct net_device *dev, struct iwreq *iwr, unsigned int cmd, struct iw_request_info *info, iw_handler handler) argument [all...] |
/net/x25/ |
H A D | x25_forward.c | 36 if ((neigh_new = x25_get_neigh(rt->dev)) == NULL) { 46 if (rt->dev == from->dev) { 71 new_frwd->dev1 = rt->dev; 72 new_frwd->dev2 = from->dev; 111 if (from->dev == frwd->dev1) { 155 void x25_clear_forward_by_dev(struct net_device *dev) argument 164 if ((fwd->dev1 == dev) || (fwd->dev2 == dev)){
|
H A D | x25_route.c | 32 struct net_device *dev) 57 rt->dev = dev; 83 struct net_device *dev) 95 rt->sigdigits == sigdigits && rt->dev == dev) { 109 void x25_route_device_down(struct net_device *dev) argument 119 if (rt->dev == dev) 125 x25_clear_forward_by_dev(dev); 31 x25_add_route(struct x25_address *address, unsigned int sigdigits, struct net_device *dev) argument 82 x25_del_route(struct x25_address *address, unsigned int sigdigits, struct net_device *dev) argument 133 struct net_device *dev = dev_get_by_name(&init_net, devname); local 185 struct net_device *dev; local [all...] |
/net/8021q/ |
H A D | vlan_netlink.c | 89 static int vlan_changelink(struct net_device *dev, argument 99 vlan_dev_change_flags(dev, flags->flags, flags->mask); 104 vlan_dev_set_ingress_priority(dev, m->to, m->from); 110 vlan_dev_set_egress_priority(dev, m->from, m->to); 116 static int vlan_newlink(struct net *src_net, struct net_device *dev, argument 119 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); 148 dev->mtu = real_dev->mtu; 149 else if (dev->mtu > real_dev->mtu) 152 err = vlan_changelink(dev, tb, data); 156 return register_vlan_dev(dev); 168 vlan_get_size(const struct net_device *dev) argument 179 vlan_fill_info(struct sk_buff *skb, const struct net_device *dev) argument [all...] |
H A D | vlanproc.c | 205 struct net_device *dev; local 213 for_each_netdev_rcu(net, dev) { 214 if (!is_vlan_dev(dev)) 218 return dev; 226 struct net_device *dev; local 231 dev = v; 233 dev = net_device_entry(&net->dev_base_head); 235 for_each_netdev_continue_rcu(net, dev) { 236 if (!is_vlan_dev(dev)) 239 return dev; [all...] |
/net/ax25/ |
H A D | ax25_out.c | 36 ax25_cb *ax25_send_frame(struct sk_buff *skb, int paclen, ax25_address *src, ax25_address *dest, ax25_digi *digi, struct net_device *dev) argument 46 if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) 55 if ((ax25 = ax25_find_cb(src, dest, digi, dev)) != NULL) { 60 if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) 361 ax25_queue_xmit(skb, ax25->ax25_dev->dev); 368 void ax25_queue_xmit(struct sk_buff *skb, struct net_device *dev) argument 372 skb->protocol = ax25_type_trans(skb, ax25_fwd_dev(dev));
|