| /kernel/linux/linux-5.10/drivers/net/ |
| D | rionet.c | 79 static struct rionet_net nets[RIONET_MAX_NETS]; variable 182 add_num = nets[rnet->mport->id].nact; in rionet_start_xmit() 197 if (nets[rnet->mport->id].active[i]) { in rionet_start_xmit() 199 nets[rnet->mport->id].active[i]); in rionet_start_xmit() 206 if (nets[rnet->mport->id].active[destid]) in rionet_start_xmit() 208 nets[rnet->mport->id].active[destid]); in rionet_start_xmit() 239 if (!nets[netid].active[sid]) { in rionet_dbell_event() 240 spin_lock(&nets[netid].lock); in rionet_dbell_event() 241 list_for_each_entry(peer, &nets[netid].peers, node) { in rionet_dbell_event() 243 nets[netid].active[sid] = peer->rdev; in rionet_dbell_event() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ |
| D | rionet.c | 79 static struct rionet_net nets[RIONET_MAX_NETS]; variable 182 add_num = nets[rnet->mport->id].nact; in rionet_start_xmit() 197 if (nets[rnet->mport->id].active[i]) { in rionet_start_xmit() 199 nets[rnet->mport->id].active[i]); in rionet_start_xmit() 206 if (nets[rnet->mport->id].active[destid]) in rionet_start_xmit() 208 nets[rnet->mport->id].active[destid]); in rionet_start_xmit() 239 if (!nets[netid].active[sid]) { in rionet_dbell_event() 240 spin_lock(&nets[netid].lock); in rionet_dbell_event() 241 list_for_each_entry(peer, &nets[netid].peers, node) { in rionet_dbell_event() 243 nets[netid].active[sid] = peer->rdev; in rionet_dbell_event() [all …]
|
| /kernel/linux/linux-5.10/net/netfilter/ipset/ |
| D | ip_set_hash_gen.h | 125 u32 nets[IPSET_NET_COUNT]; /* number of elements for this cidr */ member 321 struct net_prefixes nets[NLEN]; /* book-keeping of prefixes */ member 346 for (i = 0, j = -1; i < NLEN && h->nets[i].cidr[n]; i++) { in mtype_add_cidr() 349 } else if (h->nets[i].cidr[n] < cidr) { in mtype_add_cidr() 351 } else if (h->nets[i].cidr[n] == cidr) { in mtype_add_cidr() 352 h->nets[CIDR_POS(cidr)].nets[n]++; in mtype_add_cidr() 358 h->nets[i].cidr[n] = h->nets[i - 1].cidr[n]; in mtype_add_cidr() 360 h->nets[i].cidr[n] = cidr; in mtype_add_cidr() 361 h->nets[CIDR_POS(cidr)].nets[n] = 1; in mtype_add_cidr() 373 if (h->nets[i].cidr[n] != cidr) in mtype_del_cidr() [all …]
|
| D | ip_set_hash_netnet.c | 148 e.cidr[0] = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK); in hash_netnet4_kadt() 149 e.cidr[1] = INIT_CIDR(h->nets[0].cidr[1], HOST_MASK); in hash_netnet4_kadt() 387 e.cidr[0] = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK); in hash_netnet6_kadt() 388 e.cidr[1] = INIT_CIDR(h->nets[0].cidr[1], HOST_MASK); in hash_netnet6_kadt()
|
| D | ip_set_hash_netportnet.c | 159 e.cidr[0] = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK); in hash_netportnet4_kadt() 160 e.cidr[1] = INIT_CIDR(h->nets[0].cidr[1], HOST_MASK); in hash_netportnet4_kadt() 454 e.cidr[0] = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK); in hash_netportnet6_kadt() 455 e.cidr[1] = INIT_CIDR(h->nets[0].cidr[1], HOST_MASK); in hash_netportnet6_kadt()
|
| D | ip_set_hash_net.c | 119 .cidr = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK), in hash_net4_kadt() 293 .cidr = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK), in hash_net6_kadt()
|
| D | ip_set_hash_netport.c | 135 .cidr = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK), in hash_netport4_kadt() 355 .cidr = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK), in hash_netport6_kadt()
|
| /kernel/linux/linux-6.6/net/netfilter/ipset/ |
| D | ip_set_hash_gen.h | 100 u32 nets[IPSET_NET_COUNT]; /* number of elements for this cidr */ member 306 struct net_prefixes nets[NLEN]; /* book-keeping of prefixes */ member 331 for (i = 0, j = -1; i < NLEN && h->nets[i].cidr[n]; i++) { in mtype_add_cidr() 334 } else if (h->nets[i].cidr[n] < cidr) { in mtype_add_cidr() 336 } else if (h->nets[i].cidr[n] == cidr) { in mtype_add_cidr() 337 h->nets[CIDR_POS(cidr)].nets[n]++; in mtype_add_cidr() 343 h->nets[i].cidr[n] = h->nets[i - 1].cidr[n]; in mtype_add_cidr() 345 h->nets[i].cidr[n] = cidr; in mtype_add_cidr() 346 h->nets[CIDR_POS(cidr)].nets[n] = 1; in mtype_add_cidr() 358 if (h->nets[i].cidr[n] != cidr) in mtype_del_cidr() [all …]
|
| D | ip_set_hash_netnet.c | 152 e.cidr[0] = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK); in hash_netnet4_kadt() 153 e.cidr[1] = INIT_CIDR(h->nets[0].cidr[1], HOST_MASK); in hash_netnet4_kadt() 391 e.cidr[0] = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK); in hash_netnet6_kadt() 392 e.cidr[1] = INIT_CIDR(h->nets[0].cidr[1], HOST_MASK); in hash_netnet6_kadt()
|
| D | ip_set_hash_netportnet.c | 160 e.cidr[0] = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK); in hash_netportnet4_kadt() 161 e.cidr[1] = INIT_CIDR(h->nets[0].cidr[1], HOST_MASK); in hash_netportnet4_kadt() 455 e.cidr[0] = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK); in hash_netportnet6_kadt() 456 e.cidr[1] = INIT_CIDR(h->nets[0].cidr[1], HOST_MASK); in hash_netportnet6_kadt()
|
| D | ip_set_hash_net.c | 120 .cidr = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK), in hash_net4_kadt() 294 .cidr = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK), in hash_net6_kadt()
|
| D | ip_set_hash_netport.c | 136 .cidr = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK), in hash_netport4_kadt() 356 .cidr = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK), in hash_netport6_kadt()
|
| D | ip_set_hash_netiface.c | 164 .cidr = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK), in hash_netiface4_kadt() 385 .cidr = INIT_CIDR(h->nets[0].cidr[0], HOST_MASK), in hash_netiface6_kadt()
|
| /kernel/linux/linux-5.10/drivers/net/can/usb/ |
| D | esd_usb2.c | 107 u8 nets; member 191 struct esd_usb2_net_priv *nets[ESD_USB2_MAX_NETS]; member 417 esd_usb2_rx_can_msg(dev->nets[msg->msg.rx.net], msg); in esd_usb2_read_bulk_callback() 426 esd_usb2_tx_done_msg(dev->nets[msg->msg.txdone.net], in esd_usb2_read_bulk_callback() 447 if (dev->nets[i]) in esd_usb2_read_bulk_callback() 448 netif_device_detach(dev->nets[i]->netdev); in esd_usb2_read_bulk_callback() 520 static DEVICE_ATTR(nets, 0444, show_nets, NULL); 688 priv = dev->nets[i]; in unlink_all_urbs() 1043 dev->nets[index] = priv; in esd_usb2_probe_one_net() 1081 /* query number of CAN interfaces (nets) */ in esd_usb2_probe() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/can/usb/kvaser_usb/ |
| D | kvaser_usb_core.c | 330 if (!dev->nets[i]) in kvaser_usb_read_bulk_callback() 333 netif_device_detach(dev->nets[i]->netdev); in kvaser_usb_read_bulk_callback() 469 struct kvaser_usb_net_priv *priv = dev->nets[i]; in kvaser_usb_unlink_all_urbs() 735 if (!dev->nets[i]) in kvaser_usb_remove_interfaces() 738 unregister_candev(dev->nets[i]->netdev); in kvaser_usb_remove_interfaces() 744 if (!dev->nets[i]) in kvaser_usb_remove_interfaces() 748 ops->dev_remove_channel(dev->nets[i]); in kvaser_usb_remove_interfaces() 750 free_candev(dev->nets[i]->netdev); in kvaser_usb_remove_interfaces() 816 dev->nets[channel] = priv; in kvaser_usb_init_one() 836 dev->nets[channel] = NULL; in kvaser_usb_init_one()
|
| D | kvaser_usb_leaf.c | 891 priv = dev->nets[channel]; in kvaser_usb_leaf_tx_acknowledge() 1047 priv = dev->nets[es->channel]; in kvaser_usb_leaf_rx_error() 1156 priv = dev->nets[channel]; in kvaser_usb_leaf_usbcan_conditionally_rx_error() 1291 priv = dev->nets[channel]; in kvaser_usb_leaf_rx_can_msg() 1445 priv = dev->nets[channel]; in kvaser_usb_leaf_start_chip_reply() 1468 priv = dev->nets[channel]; in kvaser_usb_leaf_stop_chip_reply() 1485 priv = dev->nets[channel]; in kvaser_usb_leaf_get_busparams_reply()
|
| /kernel/linux/linux-6.6/drivers/net/can/usb/ |
| D | esd_usb.c | 36 /* Maximum number of CAN nets */ 131 u8 nets; member 270 struct esd_usb_net_priv *nets[ESD_USB_MAX_NETS]; member 515 esd_usb_rx_can_msg(dev->nets[msg->rx.net], msg); in esd_usb_read_bulk_callback() 524 esd_usb_tx_done_msg(dev->nets[msg->txdone.net], in esd_usb_read_bulk_callback() 545 if (dev->nets[i]) in esd_usb_read_bulk_callback() 546 netif_device_detach(dev->nets[i]->netdev); in esd_usb_read_bulk_callback() 614 static DEVICE_ATTR_RO(nets); 779 priv = dev->nets[i]; in unlink_all_urbs() 1260 dev->nets[index] = priv; in esd_usb_probe_one_net() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/can/usb/kvaser_usb/ |
| D | kvaser_usb_core.c | 355 if (!dev->nets[i]) in kvaser_usb_read_bulk_callback() 358 netif_device_detach(dev->nets[i]->netdev); in kvaser_usb_read_bulk_callback() 494 struct kvaser_usb_net_priv *priv = dev->nets[i]; in kvaser_usb_unlink_all_urbs() 773 if (!dev->nets[i]) in kvaser_usb_remove_interfaces() 776 unregister_candev(dev->nets[i]->netdev); in kvaser_usb_remove_interfaces() 782 if (!dev->nets[i]) in kvaser_usb_remove_interfaces() 786 ops->dev_remove_channel(dev->nets[i]); in kvaser_usb_remove_interfaces() 788 free_candev(dev->nets[i]->netdev); in kvaser_usb_remove_interfaces() 860 dev->nets[channel] = priv; in kvaser_usb_init_one() 880 dev->nets[channel] = NULL; in kvaser_usb_init_one()
|
| D | kvaser_usb_leaf.c | 893 priv = dev->nets[channel]; in kvaser_usb_leaf_tx_acknowledge() 1063 priv = dev->nets[es->channel]; in kvaser_usb_leaf_rx_error() 1174 priv = dev->nets[channel]; in kvaser_usb_leaf_usbcan_conditionally_rx_error() 1309 priv = dev->nets[channel]; in kvaser_usb_leaf_rx_can_msg() 1464 priv = dev->nets[channel]; in kvaser_usb_leaf_start_chip_reply() 1487 priv = dev->nets[channel]; in kvaser_usb_leaf_stop_chip_reply() 1504 priv = dev->nets[channel]; in kvaser_usb_leaf_get_busparams_reply()
|
| /kernel/linux/linux-5.10/net/appletalk/ |
| D | ddp.c | 245 int netrange = ntohs(atif->nets.nr_lastnet) - in atif_probe_device() 246 ntohs(atif->nets.nr_firstnet) + 1; in atif_probe_device() 253 probe_net = ntohs(atif->nets.nr_firstnet); in atif_probe_device() 280 if (probe_net > ntohs(atif->nets.nr_lastnet)) in atif_probe_device() 281 probe_net = ntohs(atif->nets.nr_firstnet); in atif_probe_device() 293 int netrange = ntohs(atif->nets.nr_lastnet) - in atif_proxy_probe_device() 294 ntohs(atif->nets.nr_firstnet) + 1; in atif_proxy_probe_device() 302 probe_net = ntohs(atif->nets.nr_firstnet); in atif_proxy_probe_device() 327 if (probe_net > ntohs(atif->nets.nr_lastnet)) in atif_proxy_probe_device() 328 probe_net = ntohs(atif->nets.nr_firstnet); in atif_proxy_probe_device() [all …]
|
| D | atalk_proc.c | 72 iface->address.s_node, ntohs(iface->nets.nr_firstnet), in atalk_seq_interface_show() 73 ntohs(iface->nets.nr_lastnet), iface->status); in atalk_seq_interface_show()
|
| /kernel/linux/linux-6.6/net/appletalk/ |
| D | ddp.c | 245 int netrange = ntohs(atif->nets.nr_lastnet) - in atif_probe_device() 246 ntohs(atif->nets.nr_firstnet) + 1; in atif_probe_device() 253 probe_net = ntohs(atif->nets.nr_firstnet); in atif_probe_device() 280 if (probe_net > ntohs(atif->nets.nr_lastnet)) in atif_probe_device() 281 probe_net = ntohs(atif->nets.nr_firstnet); in atif_probe_device() 293 int netrange = ntohs(atif->nets.nr_lastnet) - in atif_proxy_probe_device() 294 ntohs(atif->nets.nr_firstnet) + 1; in atif_proxy_probe_device() 302 probe_net = ntohs(atif->nets.nr_firstnet); in atif_proxy_probe_device() 327 if (probe_net > ntohs(atif->nets.nr_lastnet)) in atif_proxy_probe_device() 328 probe_net = ntohs(atif->nets.nr_firstnet); in atif_proxy_probe_device() [all …]
|
| D | atalk_proc.c | 72 iface->address.s_node, ntohs(iface->nets.nr_firstnet), in atalk_seq_interface_show() 73 ntohs(iface->nets.nr_lastnet), iface->status); in atalk_seq_interface_show()
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | atalk.h | 22 * @nets - Associated direct netrange 31 struct atalk_netrange nets; member
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | atalk.h | 22 * @nets - Associated direct netrange 31 struct atalk_netrange nets; member
|