HomeSort by relevance Sort by last modified time
    Searched refs:netdev (Results 1 - 25 of 91) sorted by null

1 2 3 4

  /external/syslinux/gpxe/src/net/
netdevice.c 59 * @v netdev Network device
61 void netdev_link_down ( struct net_device *netdev ) {
63 switch ( netdev->link_rc ) {
66 netdev->link_rc = -ENOTCONN;
118 * @v netdev Network device
125 int netdev_tx ( struct net_device *netdev, struct io_buffer *iobuf ) {
128 DBGC ( netdev, "NETDEV %p transmitting %p (%p+%zx)\n",
129 netdev, iobuf, iobuf->data, iob_len ( iobuf ) );
131 list_add_tail ( &iobuf->list, &netdev->tx_queue )
309 struct net_device *netdev = local
327 struct net_device *netdev; local
473 struct net_device *netdev; local
492 struct net_device *netdev; local
509 struct net_device *netdev; local
589 struct net_device *netdev; local
    [all...]
nullnet.c 32 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,
netdev_settings.c 58 struct net_device *netdev = container_of ( settings, struct net_device, local
62 if ( len != netdev->ll_protocol->ll_addr_len )
64 memcpy ( netdev->ll_addr, data, len );
82 struct net_device *netdev = container_of ( settings, struct net_device, local
84 struct device_description *desc = &netdev->dev->desc;
88 if ( len > netdev->ll_protocol->ll_addr_len )
89 len = netdev->ll_protocol->ll_addr_len;
90 memcpy ( data, netdev->ll_addr, len );
91 return netdev->ll_protocol->ll_addr_len;
ethernet.c 46 * @v netdev Network device
53 static int eth_push ( struct net_device *netdev __unused,
69 * @v netdev Network device
76 static int eth_pull ( struct net_device *netdev __unused,
181 * @ret netdev Network device, or NULL
184 struct net_device *netdev; local
186 netdev = alloc_netdev ( priv_size );
187 if ( netdev ) {
188 netdev->ll_protocol = &ethernet_protocol;
189 netdev->ll_broadcast = eth_broadcast
    [all...]
fakedhcp.c 103 * @v netdev Network device
110 int create_fakedhcpdiscover ( struct net_device *netdev,
116 if ( ( rc = dhcp_create_request ( &dhcppkt, netdev, DHCPDISCOVER,
129 * @v netdev Network device
136 int create_fakedhcpack ( struct net_device *netdev,
142 if ( ( rc = dhcp_create_packet ( &dhcppkt, netdev, DHCPACK, NULL, 0,
148 /* Merge in globally-scoped settings, then netdev-specific
149 * settings. Do it in this order so that netdev-specific
158 netdev_settings ( netdev ) ) ) != 0 ) {
159 DBG ( "Could not set DHCPACK netdev settings: %s\n"
    [all...]
  /external/syslinux/gpxe/src/include/usr/
ifmgmt.h 14 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 );
dhcpmgmt.h 14 extern int dhcp ( struct net_device *netdev );
15 extern int pxebs ( struct net_device *netdev, unsigned int pxe_type );
  /external/linux-kselftest/tools/testing/selftests/net/
netdevice.sh 16 netdev=$1
18 ip link show "$netdev" |grep -q UP
20 echo "SKIP: $netdev: interface already up"
24 ip link set "$netdev" up
26 echo "FAIL: $netdev: Fail to up interface"
29 echo "PASS: $netdev: set interface up"
40 netdev=$1
48 ip link set dev $netdev address "$MACADDR"
50 echo "FAIL: $netdev: Cannot set MAC address"
52 ip link show $netdev |grep -q "$MACADDR
    [all...]
  /external/syslinux/gpxe/src/usr/
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->name, netdev_addr ( netdev ), netdev->dev->name
    [all...]
dhcpmgmt.c 39 int dhcp ( struct net_device *netdev ) {
46 if ( ( rc = ifopen ( netdev ) ) != 0 )
50 if ( ( rc = iflinkwait ( netdev, LINK_WAIT_MS ) ) != 0 )
54 chaddr = dhcp_chaddr ( netdev, &hlen, &flags );
55 printf ( "DHCP (%s ", netdev->name );
59 if ( ( rc = start_dhcp ( &monojob, netdev ) ) == 0 ) {
69 int pxebs ( struct net_device *netdev, unsigned int pxe_type ) {
73 printf ( "PXEBS (%s type %d)", netdev->name, pxe_type );
74 if ( ( rc = start_pxebs ( &monojob, netdev, pxe_type ) ) == 0 )
autoboot.c 48 * @ret netdev Boot network device
128 * @v netdev Network device
131 static int netboot ( struct net_device *netdev ) {
144 if ( ( rc = ifopen ( netdev ) ) != 0 )
146 ifstat ( netdev );
149 if ( ( rc = dhcp ( netdev ) ) != 0 )
163 return pxe_menu_boot ( netdev );
205 struct net_device *netdev; local
207 for_each_netdev ( netdev ) {
208 ifclose ( netdev );
217 struct net_device *netdev; local
    [all...]
route.c 36 printf ( "%s: %s/", miniroute->netdev->name,
41 if ( ! ( miniroute->netdev->state & NETDEV_OPEN ) )
  /external/syslinux/gpxe/src/include/gpxe/
netdevice.h 59 * @v netdev Network device
64 int ( * rx ) ( struct io_buffer *iobuf, struct net_device *netdev,
98 * @v netdev Network device
105 int ( * push ) ( struct net_device *netdev, struct io_buffer *iobuf,
111 * @v netdev Network device
118 int ( * pull ) ( struct net_device *netdev, struct io_buffer *iobuf,
175 * @v netdev Network device
181 int ( * open ) ( struct net_device *netdev );
184 * @v netdev Network device
189 void ( * close ) ( struct net_device *netdev );
    [all...]
fakedhcp.h 16 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,
arp.h 23 * @v netdev Network device
27 int ( * check ) ( struct net_device *netdev,
40 extern int arp_resolve ( struct net_device *netdev,
  /external/syslinux/gpxe/src/drivers/net/
legacy.c 26 static int legacy_transmit ( struct net_device *netdev, struct io_buffer *iobuf ) {
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->priv
87 struct net_device *netdev; local
141 struct net_device *netdev = get_drvdata ( hwdev ); local
    [all...]
eepro100.c 173 struct net_device *netdev; local
182 netdev = alloc_etherdev ( sizeof(*priv) );
183 if ( !netdev )
186 netdev_init ( netdev, &ifec_operations );
187 priv = netdev->priv;
189 pci_set_drvdata ( pci, netdev );
190 netdev->dev = &pci->dev;
200 ifec_reset ( netdev );
203 ifec_init_eeprom ( netdev );
206 nvs_read ( &priv->eeprom.nvs, EEPROM_ADDR_MAC_0, netdev->hw_addr
238 struct net_device *netdev = pci_get_drvdata ( pci ); local
    [all...]
pnic.c 117 static void pnic_poll ( struct net_device *netdev ) {
118 struct pnic *pnic = netdev->priv;
134 netdev_rx_err ( netdev, NULL, -ENOMEM );
140 netdev_rx_err ( netdev, iobuf, -EIO );
144 netdev_rx ( netdev, iobuf );
151 static int pnic_transmit ( struct net_device *netdev, struct io_buffer *iobuf ) {
152 struct pnic *pnic = netdev->priv;
161 netdev_tx_complete ( netdev, iobuf );
168 static int pnic_open ( struct net_device *netdev __unused ) {
176 static void pnic_close ( struct net_device *netdev __unused )
206 struct net_device *netdev = pci_get_drvdata ( pci ); local
220 struct net_device *netdev; local
    [all...]
ipoib.c 53 struct net_device *netdev; member in struct:ipoib_device
188 * @v netdev Network device
195 static int ipoib_push ( struct net_device *netdev __unused,
220 * @v netdev Network device
227 static int ipoib_pull ( struct net_device *netdev,
230 struct ipoib_device *ipoib = netdev->priv;
382 * @ret netdev Network device, or NULL
385 struct net_device *netdev; local
387 netdev = alloc_netdev ( priv_size );
388 if ( netdev ) {
481 struct net_device *netdev = ipoib->netdev; local
697 struct net_device *netdev = ib_get_ownerdata ( ibdev ); local
734 struct net_device *netdev; local
777 struct net_device *netdev = ib_get_ownerdata ( ibdev ); local
    [all...]
  /external/syslinux/gpxe/src/hci/commands/
ifmgmt_cmd.c 61 struct net_device *netdev; local
65 for_each_netdev ( netdev ) {
66 if ( payload ( netdev ) != 0 )
81 struct net_device *netdev; local
86 netdev = find_netdev ( netdev_name );
87 if ( ! netdev ) {
92 if ( payload ( netdev ) != 0 )
135 static int ifopen_payload ( struct net_device *netdev ) {
136 return ifopen ( netdev );
145 static int ifclose_payload ( struct net_device *netdev ) {
    [all...]
dhcp_cmd.c 67 struct net_device *netdev; local
91 netdev = find_netdev ( netdev_txt );
92 if ( ! netdev ) {
98 if ( ( rc = dhcp ( netdev ) ) != 0 ) {
99 printf ( "Could not configure %s: %s\n", netdev->name,
134 struct net_device *netdev; local
159 netdev = find_netdev ( netdev_txt );
160 if ( ! netdev ) {
171 if ( ( rc = pxebs ( netdev, pxe_type ) ) != 0 ) {
173 netdev->name, strerror ( rc ) )
    [all...]
iwmgmt_cmd.c 29 static int iwstat_payload ( struct net_device *netdev ) {
30 struct net80211_device *dev = net80211_get ( netdev );
45 static int iwlist_payload ( struct net_device *netdev ) {
46 struct net80211_device *dev = net80211_get ( netdev );
  /external/syslinux/gpxe/src/arch/i386/hci/commands/
pxe_cmd.c 8 static int startpxe_payload ( struct net_device *netdev ) {
9 if ( netdev->state & NETDEV_OPEN )
10 pxe_activate ( netdev );
  /external/syslinux/gpxe/src/core/
gdbudp.c 45 static struct net_device *netdev; variable in typeref:struct:net_device
50 static void gdbudp_ensure_netdev_open ( struct net_device *netdev ) {
52 assert ( netdev );
53 netdev_open ( netdev );
66 gdbudp_ensure_netdev_open ( netdev );
69 netdev_poll ( netdev );
70 while ( ( iob = netdev_rx_dequeue ( netdev ) ) != NULL ) {
95 memcpy ( arp_sender_ha ( arphdr ), netdev->ll_addr, ETH_ALEN );
100 memcpy ( ethhdr->h_source, netdev->ll_addr, ETH_ALEN );
102 netdev_tx ( netdev, iob )
    [all...]
  /external/syslinux/gpxe/src/arch/i386/drivers/net/
undinet.c 64 static void undinet_close ( struct net_device *netdev );
164 * @v netdev Network device
168 static int undinet_transmit ( struct net_device *netdev,
208 netdev_tx_complete ( netdev, iobuf );
217 * @v netdev Network device
244 static void undinet_poll ( struct net_device *netdev ) {
245 struct undi_nic *undinic = netdev->priv;
291 netdev_rx_err ( netdev, NULL, -EINVAL );
301 netdev_rx_err ( netdev, NULL, -ENOMEM );
317 netdev_rx ( netdev, iob_disown ( iobuf ) )
465 struct net_device *netdev; local
593 struct net_device *netdev = undi_get_drvdata ( undi ); local
    [all...]

Completed in 515 milliseconds

1 2 3 4