Searched refs:netdev (Results 1 - 25 of 109) sorted by relevance

12345

/vbox/src/VBox/Devices/PC/ipxe/src/include/usr/
H A Difmgmt.h14 extern int ifopen ( struct net_device *netdev );
15 extern void ifclose ( struct net_device *netdev );
16 extern void ifstat ( struct net_device *netdev );
17 extern int iflinkwait ( struct net_device *netdev, unsigned int max_wait_ms );
H A Ddhcpmgmt.h14 extern int dhcp ( struct net_device *netdev );
15 extern int pxebs ( struct net_device *netdev, unsigned int pxe_type );
H A Dautoboot.h32 extern int netboot ( struct net_device *netdev );
35 extern int pxe_menu_boot ( struct net_device *netdev );
/vbox/src/VBox/Devices/PC/ipxe/src/net/
H A Dnetdevice.c68 * @v netdev Network device
71 static int netdev_has_ll_addr ( struct net_device *netdev ) {
72 uint8_t *ll_addr = netdev->ll_addr;
73 size_t remaining = sizeof ( netdev->ll_addr );
85 * @v netdev Network device
87 static void netdev_notify ( struct net_device *netdev ) {
91 driver->notify ( netdev );
97 * @v netdev Network device
100 void netdev_link_err ( struct net_device *netdev, int rc ) { argument
103 netdev
180 netdev_tx( struct net_device *netdev, struct io_buffer *iobuf ) argument
223 netdev_tx_err( struct net_device *netdev, struct io_buffer *iobuf, int rc ) argument
249 netdev_tx_complete_err( struct net_device *netdev, struct io_buffer *iobuf, int rc ) argument
268 netdev_tx_complete_next_err( struct net_device *netdev, int rc ) argument
299 netdev_rx( struct net_device *netdev, struct io_buffer *iobuf ) argument
330 netdev_rx_err( struct net_device *netdev, struct io_buffer *iobuf, int rc ) argument
398 struct net_device *netdev = local
416 struct net_device *netdev; local
585 netdev_irq( struct net_device *netdev, int enable ) argument
607 struct net_device *netdev; local
626 struct net_device *netdev; local
643 struct net_device *netdev; local
668 net_tx( struct io_buffer *iobuf, struct net_device *netdev, struct net_protocol *net_protocol, const void *ll_dest, const void *ll_source ) argument
704 net_rx( struct io_buffer *iobuf, struct net_device *netdev, uint16_t net_proto, const void *ll_dest, const void *ll_source, unsigned int flags ) argument
729 struct net_device *netdev; local
[all...]
H A Dvlan.c56 * @v netdev Network device
59 static int vlan_open ( struct net_device *netdev ) {
60 struct vlan_device *vlan = netdev->priv;
68 * @v netdev Network device
70 static void vlan_close ( struct net_device *netdev ) {
71 struct vlan_device *vlan = netdev->priv;
79 * @v netdev Network device
83 static int vlan_transmit ( struct net_device *netdev, argument
85 struct vlan_device *vlan = netdev->priv;
98 ll_protocol = netdev
148 vlan_irq( struct net_device *netdev, int enable ) argument
198 struct net_device *netdev; local
225 struct net_device *netdev; local
317 struct net_device *netdev; local
440 struct net_device *netdev; local
459 struct net_device *netdev; local
[all...]
H A Dnullnet.c32 static int null_open ( struct net_device *netdev __unused ) {
36 static void null_close ( struct net_device *netdev __unused ) {
40 static int null_transmit ( struct net_device *netdev __unused,
45 static void null_poll ( struct net_device *netdev __unused ) {
49 static void null_irq ( struct net_device *netdev __unused,
H A Deth_slow.c104 * @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 Darp.c57 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/usr/
H A Difmgmt.c41 * @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...]
H A Ddhcpmgmt.c39 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 )
/vbox/src/VBox/Devices/PC/ipxe/src/include/ipxe/
H A Dnetdevice.h70 * @v netdev Network device
78 int ( * rx ) ( struct io_buffer *iobuf, struct net_device *netdev,
119 * @v netdev Network device
126 int ( * push ) ( struct net_device *netdev, struct io_buffer *iobuf,
132 * @v netdev Network device
140 int ( * pull ) ( struct net_device *netdev, struct io_buffer *iobuf,
197 * @v netdev Network device
203 int ( * open ) ( struct net_device *netdev );
206 * @v netdev Network device
211 void ( * close ) ( struct net_device *netdev );
445 netdev_init( struct net_device *netdev, struct net_device_operations *op ) argument
635 netdev_tx_complete( struct net_device *netdev, struct io_buffer *iobuf ) argument
[all...]
H A Dfakedhcp.h16 extern int create_fakedhcpdiscover ( struct net_device *netdev,
18 extern int create_fakedhcpack ( struct net_device *netdev,
20 extern int create_fakepxebsack ( struct net_device *netdev,
H A Darp.h21 * @v netdev Network device
25 int ( * check ) ( struct net_device *netdev,
38 extern int arp_tx ( struct io_buffer *iobuf, struct net_device *netdev,
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/
H A Dskeleton.c128 * @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...]
H A Dvirtio-net.c106 * @v netdev Network device
112 static void virtnet_enqueue_iob ( struct net_device *netdev, argument
114 struct virtnet_nic *virtnet = netdev->priv;
143 * @v netdev Network device
145 static void virtnet_refill_rx_virtqueue ( struct net_device *netdev ) {
146 struct virtnet_nic *virtnet = netdev->priv;
162 virtnet_enqueue_iob ( netdev, RX_INDEX, iobuf );
169 * @v netdev Network device
172 static int virtnet_open ( struct net_device *netdev ) {
173 struct virtnet_nic *virtnet = netdev
242 virtnet_transmit( struct net_device *netdev, struct io_buffer *iobuf ) argument
319 virtnet_irq( struct net_device *netdev, int enable ) argument
349 struct net_device *netdev; local
403 struct net_device *netdev = pci_get_drvdata ( pci ); local
[all...]
H A Dlegacy.c26 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 Dpnic.c126 static void pnic_poll ( struct net_device *netdev ) {
127 struct pnic *pnic = netdev->priv;
143 netdev_rx_err ( netdev, NULL, -ENOMEM );
149 netdev_rx_err ( netdev, iobuf, -EIO );
153 netdev_rx ( netdev, iobuf );
160 static int pnic_transmit ( struct net_device *netdev, struct io_buffer *iobuf ) { argument
161 struct pnic *pnic = netdev->priv;
170 netdev_tx_complete ( netdev, iobuf );
177 static int pnic_open ( struct net_device *netdev __unused ) {
185 static void pnic_close ( struct net_device *netdev __unuse
192 pnic_irq( struct net_device *netdev, int enable ) argument
215 struct net_device *netdev = pci_get_drvdata ( pci ); local
228 struct net_device *netdev; local
[all...]
H A Deepro100.c181 struct net_device *netdev; local
190 netdev = alloc_etherdev ( sizeof(*priv) );
191 if ( !netdev )
194 netdev_init ( netdev, &ifec_operations );
195 priv = netdev->priv;
197 pci_set_drvdata ( pci, netdev );
198 netdev->dev = &pci->dev;
208 ifec_reset ( netdev );
211 ifec_init_eeprom ( netdev );
214 nvs_read ( &priv->eeprom.nvs, EEPROM_ADDR_MAC_0, netdev
246 struct net_device *netdev = pci_get_drvdata ( pci ); local
298 ifec_net_irq( struct net_device *netdev, int enable ) argument
444 ifec_net_transmit( struct net_device *netdev, struct io_buffer *iobuf ) argument
579 ifec_mdio_read( struct net_device *netdev, int phy_id, int location ) argument
611 ifec_mdio_setup( struct net_device *netdev, int options ) argument
643 ifec_mdio_write( struct net_device *netdev, int phy_id, int location, int value ) argument
762 ifec_check_ru_status( struct net_device *netdev, unsigned short intr_status ) argument
855 ifec_get_rx_desc( struct net_device *netdev, int cur, int cmd, int link ) argument
950 ifec_scb_cmd( struct net_device *netdev, u32 ptr, u8 cmd ) argument
[all...]
H A Dmyson.c234 * @v netdev Network device
236 static void myson_refill_rx ( struct net_device *netdev ) {
237 struct myson_nic *myson = netdev->priv;
257 netdev_rx_err ( netdev, iobuf, -ENOTSUP );
289 * @v netdev Network device
292 static int myson_open ( struct net_device *netdev ) {
293 struct myson_nic *myson = netdev->priv;
299 memcpy ( mac.raw, netdev->ll_addr, ETH_ALEN );
317 myson_refill_rx ( netdev );
359 * @v netdev Networ
392 myson_transmit( struct net_device *netdev, struct io_buffer *iobuf ) argument
560 myson_irq( struct net_device *netdev, int enable ) argument
591 struct net_device *netdev; local
650 struct net_device *netdev = pci_get_drvdata ( pci ); local
[all...]
H A Dvmxnet3.c59 * @v netdev Network device
63 static int vmxnet3_transmit ( struct net_device *netdev, argument
65 struct vmxnet3_nic *vmxnet = netdev_priv ( netdev );
103 * @v netdev Network device
105 static void vmxnet3_poll_tx ( struct net_device *netdev ) {
106 struct vmxnet3_nic *vmxnet = netdev_priv ( netdev );
135 netdev_tx_err ( netdev, NULL, -ENOTTY );
145 netdev_tx_complete ( netdev, iobuf );
152 * @v netdev Network device
154 static void vmxnet3_flush_tx ( struct net_device *netdev ) {
384 vmxnet3_irq( struct net_device *netdev, int enable ) argument
582 struct net_device *netdev; local
648 struct net_device *netdev = pci_get_drvdata ( pci ); local
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/efi/
H A Dsnpnet.c51 * @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/hci/commands/
H A Difmgmt_cmd.c54 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 Ddhcp_cmd.c51 * @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 Diwmgmt_cmd.c42 * @v netdev Network device
45 static int iwstat_payload ( struct net_device *netdev ) {
46 struct net80211_device *dev = net80211_get ( netdev );
73 * @v netdev Network device
76 static int iwlist_payload ( struct net_device *netdev ) {
77 struct net80211_device *dev = net80211_get ( netdev );
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/linux/
H A Dtap.c58 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...]

Completed in 74 milliseconds

12345