/vbox/src/VBox/Devices/PC/ipxe/src/arch/i386/image/ |
H A D | pxe_image.c | 46 struct net_device *netdev; local 60 if ( ( netdev = last_opened_netdev() ) == NULL ) { 67 pxe_activate ( netdev );
|
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/efi/ |
H A D | snp.h | 43 struct net_device *netdev; member in struct:snp_device
|
H A D | snpnet.c | 51 * @v netdev Network device 55 static int snpnet_transmit ( struct net_device *netdev, argument 57 struct snpnet_device *snpnetdev = netdev->priv; 77 netdev_tx_complete ( netdev, iobuf ); 84 * @v netdev Network device 86 static void snpnet_poll ( struct net_device *netdev ) { 87 struct snpnet_device *snpnetdev = netdev->priv; 104 netdev_rx_err ( netdev, NULL, -ENOMEM ); 123 netdev_rx_err ( netdev, iobuf, efirc ); 129 netdev_rx ( netdev, iob_disow 218 snpnet_irq( struct net_device *netdev, int enable ) argument 248 struct net_device *netdev; local 314 struct net_device *netdev = snpdev->netdev; local [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/usr/ |
H A D | dhcpmgmt.c | 39 int dhcp ( struct net_device *netdev ) { 47 if ( ( rc = ifopen ( netdev ) ) != 0 ) 51 if ( ( rc = iflinkwait ( netdev, LINK_WAIT_MS ) ) != 0 ) 55 printf ( "DHCP (%s", netdev->name ); 56 hlen = dhcp_chaddr ( netdev, chaddr, NULL ); 61 if ( ( rc = start_dhcp ( &monojob, netdev ) ) == 0 ) { 71 int pxebs ( struct net_device *netdev, unsigned int pxe_type ) { argument 75 printf ( "PXEBS (%s type %d)", netdev->name, pxe_type ); 76 if ( ( rc = start_pxebs ( &monojob, netdev, pxe_type ) ) == 0 )
|
H A D | ifmgmt.c | 41 * @v netdev Network device 44 int ifopen ( struct net_device *netdev ) { 47 if ( ( rc = netdev_open ( netdev ) ) != 0 ) { 49 netdev->name, strerror ( rc ) ); 59 * @v netdev Network device 61 void ifclose ( struct net_device *netdev ) { 62 netdev_close ( netdev ); 87 * @v netdev Network device 89 void ifstat ( struct net_device *netdev ) { 92 netdev 112 iflinkwait( struct net_device *netdev, unsigned int max_wait_ms ) argument [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/hci/commands/ |
H A D | dhcp_cmd.c | 51 * @v netdev Network device 54 static int dhcp_payload ( struct net_device *netdev ) { 57 if ( ( rc = dhcp ( netdev ) ) != 0 ) { 59 netdev->name, strerror ( rc ) ); 62 netdev_close ( netdev ); 101 struct net_device *netdev; local 110 if ( ( rc = parse_netdev ( argv[optind], &netdev ) ) != 0 ) 118 if ( ( rc = pxebs ( netdev, pxe_type ) ) != 0 ) { 120 netdev->name, strerror ( rc ) );
|
H A D | ifmgmt_cmd.c | 54 struct net_device *netdev; local 65 &netdev ) ) != 0 ) { 68 if ( ( ( rc = payload ( netdev ) ) == 0 ) && 76 for_each_netdev ( netdev ) { 77 if ( ( ( rc = payload ( netdev ) ) == 0 ) && 95 * @v netdev Network device 98 static int ifopen_payload ( struct net_device *netdev ) { 99 return ifopen ( netdev ); 121 * @v netdev Network device 124 static int ifclose_payload ( struct net_device *netdev ) { [all...] |
H A D | vlan_cmd.c | 108 struct net_device *netdev; local 116 if ( ( rc = parse_netdev ( argv[optind], &netdev ) ) != 0 ) 120 if ( ( rc = vlan_destroy ( netdev ) ) != 0 ) {
|
/vbox/src/VBox/Devices/PC/ipxe/src/net/ |
H A D | eapol.c | 38 * @v netdev Network device 45 static int eapol_rx ( struct io_buffer *iob, struct net_device *netdev, argument 59 return handler->rx ( iob, netdev, ll_dest, ll_source );
|
H A D | icmpv6.c | 17 * @v netdev Network device 24 int icmp6_send_solicit ( struct net_device *netdev, struct in6_addr *src __unused, argument 30 struct ll_protocol *ll_protocol = netdev->ll_protocol; 43 memcpy ( nsolicit->opt_ll_addr, netdev->ll_addr, 44 netdev->ll_protocol->ll_addr_len ); 94 void icmp6_test_nadvert (struct net_device *netdev, struct sockaddr_in6 *server_p, char *ll_addr) { 117 net_rx ( rxiobuf, netdev, htons ( ETH_P_IPV6 ), ll_addr );
|
H A D | netdev_settings.c | 75 struct net_device *netdev = container_of ( settings, struct net_device, local 79 if ( len != netdev->ll_protocol->ll_addr_len ) 81 memcpy ( netdev->ll_addr, data, len ); 101 struct net_device *netdev = container_of ( settings, struct net_device, local 103 struct device_description *desc = &netdev->dev->desc; 107 if ( len > netdev->ll_protocol->ll_addr_len ) 108 len = netdev->ll_protocol->ll_addr_len; 109 memcpy ( data, netdev->ll_addr, len ); 110 return netdev->ll_protocol->ll_addr_len;
|
H A D | eth_slow.c | 104 * @v netdev Network device 108 struct net_device *netdev, 113 DBGC ( netdev, 115 netdev->name, label, ntohs ( lacp->actor.system_priority ), 121 DBGC ( netdev, 123 netdev->name, label, ntohs ( lacp->partner.system_priority ), 129 DBGC ( netdev, "SLOW %s %s LACP collector %04x (%d us)\n", 130 netdev->name, label, ntohs ( lacp->collector.max_delay ), 132 DBGC2_HDA ( netdev, 0, iobuf->data, iob_len ( iobuf ) ); 139 * @v netdev Networ 107 eth_slow_lacp_dump( struct io_buffer *iobuf, struct net_device *netdev, const char *label ) argument 188 eth_slow_marker_dump( struct io_buffer *iobuf, struct net_device *netdev, const char *label ) argument 240 eth_slow_rx( struct io_buffer *iobuf, struct net_device *netdev, const void *ll_dest __unused, const void *ll_source __unused, unsigned int flags __unused ) argument [all...] |
H A D | tcpip.c | 59 * @v netdev Network device to use if no route found, or NULL 65 struct net_device *netdev, uint16_t *trans_csum ) { 73 st_dest, netdev, trans_csum ); 63 tcpip_tx( struct io_buffer *iobuf, struct tcpip_protocol *tcpip_protocol, struct sockaddr_tcpip *st_src, struct sockaddr_tcpip *st_dest, struct net_device *netdev, uint16_t *trans_csum ) argument
|
H A D | ethernet.c | 46 * @v netdev Network device 53 int eth_push ( struct net_device *netdev __unused, struct io_buffer *iobuf, 69 * @v netdev Network device 77 int eth_pull ( struct net_device *netdev __unused, struct io_buffer *iobuf, 186 * @ret netdev Network device, or NULL 189 struct net_device *netdev; local 191 netdev = alloc_netdev ( priv_size ); 192 if ( netdev ) { 193 netdev->ll_protocol = ðernet_protocol; 194 netdev [all...] |
H A D | fakedhcp.c | 103 * @v netdev Network device 110 int create_fakedhcpdiscover ( struct net_device *netdev, argument 116 if ( ( rc = dhcp_create_request ( &dhcppkt, netdev, DHCPDISCOVER, 130 * @v netdev Network device 137 int create_fakedhcpack ( struct net_device *netdev, argument 143 if ( ( rc = dhcp_create_packet ( &dhcppkt, netdev, DHCPACK, 150 /* Merge in globally-scoped settings, then netdev-specific 151 * settings. Do it in this order so that netdev-specific 160 netdev_settings ( netdev ) ) ) != 0 ) { 161 DBG ( "Could not set DHCPACK netdev setting 179 create_fakepxebsack( struct net_device *netdev, void *data, size_t max_len ) argument [all...] |
H A D | ndp.c | 63 * @v netdev Network device 69 add_ndp_entry ( struct net_device *netdev, struct in6_addr *in6, argument 75 ndp->ll_protocol = netdev->ll_protocol; 78 memcpy ( ndp->ll_addr, ll_addr, netdev->ll_protocol->ll_addr_len ); 80 memset ( ndp->ll_addr, 0, netdev->ll_protocol->ll_addr_len ); 84 inet6_ntoa ( ndp->in6 ), netdev->ll_protocol->name, 85 netdev->ll_protocol->ntoa ( ndp->ll_addr ) ); 91 * @v netdev Network device 102 int ndp_resolve ( struct net_device *netdev, struct in6_addr *dest, argument 104 struct ll_protocol *ll_protocol = netdev [all...] |
H A D | arp.c | 57 struct net_device *netdev; member in struct:arp_entry 82 * @v netdev Network device 88 static struct arp_entry * arp_create ( struct net_device *netdev, argument 100 arp->netdev = netdev_get ( netdev ); 115 DBGC ( arp, "ARP %p %s %s %s created\n", arp, netdev->name, 123 * @v netdev Network device 128 static struct arp_entry * arp_find ( struct net_device *netdev, argument 134 if ( ( arp->netdev == netdev ) 156 struct net_device *netdev = arp->netdev; local 204 arp_tx( struct io_buffer *iobuf, struct net_device *netdev, struct net_protocol *net_protocol, const void *net_dest, const void *net_source, const void *ll_source ) argument 240 struct net_device *netdev = arp->netdev; local 280 struct net_device *netdev = arp->netdev; local 357 arp_rx( struct io_buffer *iobuf, struct net_device *netdev, const void *ll_dest __unused, const void *ll_source __unused, unsigned int flags __unused ) argument [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/include/ipxe/ |
H A D | xfer.h | 43 struct net_device *netdev; member in struct:xfer_metadata
|
H A D | ip.h | 63 struct net_device *netdev; member in struct:ipv4_miniroute
|
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/ |
H A D | legacy.c | 26 static int legacy_transmit ( struct net_device *netdev, struct io_buffer *iobuf ) { argument 27 struct nic *nic = netdev->priv; 37 netdev_tx_complete ( netdev, iobuf ); 41 static void legacy_poll ( struct net_device *netdev ) { 42 struct nic *nic = netdev->priv; 53 netdev_rx ( netdev, iobuf ); 59 static int legacy_open ( struct net_device *netdev __unused ) { 64 static void legacy_close ( struct net_device *netdev __unused ) { 68 static void legacy_irq ( struct net_device *netdev __unused, int enable ) { 69 struct nic *nic = netdev 87 struct net_device *netdev; local 141 struct net_device *netdev = get_drvdata ( hwdev ); local [all...] |
H A D | skeleton.c | 128 * @v netdev Network device 130 static void skeleton_check_link ( struct net_device *netdev ) { 131 struct skeleton_nic *skel = netdev->priv; 134 netdev_link_err ( netdev, -ENOTSUP ); 147 * @v netdev Network device 150 static int skeleton_open ( struct net_device *netdev ) { 151 struct skeleton_nic *skel = netdev->priv; 160 * @v netdev Network device 162 static void skeleton_close ( struct net_device *netdev ) { 163 struct skeleton_nic *skel = netdev 175 skeleton_transmit( struct net_device *netdev, struct io_buffer *iobuf ) argument 202 skeleton_irq( struct net_device *netdev, int enable ) argument 232 struct net_device *netdev; local 292 struct net_device *netdev = pci_get_drvdata ( pci ); local [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/core/ |
H A D | gdbudp.c | 47 static struct net_device *netdev; variable in typeref:struct:net_device 52 static void gdbudp_ensure_netdev_open ( struct net_device *netdev ) { 54 assert ( netdev ); 55 netdev_open ( netdev ); 68 gdbudp_ensure_netdev_open ( netdev ); 71 netdev_poll ( netdev ); 72 while ( ( iob = netdev_rx_dequeue ( netdev ) ) != NULL ) { 97 memcpy ( arp_sender_ha ( arphdr ), netdev->ll_addr, ETH_ALEN ); 102 memcpy ( ethhdr->h_source, netdev->ll_addr, ETH_ALEN ); 104 netdev_tx ( netdev, io [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/linux/ |
H A D | tap.c | 58 static int tap_open(struct net_device * netdev) argument 60 struct tap_nic * nic = netdev->priv; 97 static void tap_close(struct net_device *netdev) argument 99 struct tap_nic * nic = netdev->priv; 108 static int tap_transmit(struct net_device *netdev, struct io_buffer *iobuf) argument 110 struct tap_nic * nic = netdev->priv; 118 netdev_tx_complete(netdev, iobuf); 124 static void tap_poll(struct net_device *netdev) argument 126 struct tap_nic * nic = netdev->priv; 150 netdev_rx(netdev, iobu 169 tap_irq(struct net_device *netdev, int enable) argument 189 struct net_device *netdev; local 237 struct net_device *netdev = linux_get_drvdata(device); local [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/arch/i386/interface/pxe/ |
H A D | pxe_preboot.c | 76 * @v netdev Network device 81 int ( * create ) ( struct net_device *netdev, void *data, 274 struct net_device *netdev; local 299 netdev = find_netdev_by_location ( bus_type, location ); 300 if ( ! netdev ) { 307 netdev->name ); 310 pxe_activate ( netdev );
|
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/block/ |
H A D | ibft.c | 222 * @v netdev Network device 227 struct net_device *netdev ) { 228 struct ll_protocol *ll_protocol = netdev->ll_protocol; 267 if ( ( rc = ll_protocol->eth_addr ( netdev->ll_addr, 273 nic->pci_bus_dev_func = cpu_to_le16 ( netdev->dev->desc.location ); 439 struct net_device *netdev; local 445 netdev = last_opened_netdev(); 446 if ( ! netdev ) { 470 if ( ( rc = ibft_fill_nic ( &ibft->nic, &strings, netdev ) ) != 0 )
|