tag | line | file | source code |
edev | 353 | drivers/net/arcnet.c | #define EDEV lp->edev |
edev | 574 | drivers/net/arcnet.c | struct device *edev; /* Ethernet-Encap device */ |
edev | 1345 | drivers/net/arcnet.c | lp->edev=(struct device *)kmalloc(sizeof(struct device),GFP_KERNEL); |
edev | 1346 | drivers/net/arcnet.c | if (lp->edev == NULL) |
edev | 1348 | drivers/net/arcnet.c | memcpy(lp->edev,dev,sizeof(struct device)); |
edev | 1349 | drivers/net/arcnet.c | lp->edev->name=(char *)kmalloc(10,GFP_KERNEL); |
edev | 1350 | drivers/net/arcnet.c | if (lp->edev->name == NULL) { |
edev | 1351 | drivers/net/arcnet.c | kfree(lp->edev); |
edev | 1352 | drivers/net/arcnet.c | lp->edev = NULL; |
edev | 1355 | drivers/net/arcnet.c | sprintf(lp->edev->name,"%se",dev->name); |
edev | 1356 | drivers/net/arcnet.c | lp->edev->init=arcnetE_init; |
edev | 1357 | drivers/net/arcnet.c | register_netdev(lp->edev); |
edev | 1423 | drivers/net/arcnet.c | lp->edev->priv=NULL; |
edev | 1424 | drivers/net/arcnet.c | dev_close(lp->edev); |
edev | 1425 | drivers/net/arcnet.c | unregister_netdev(lp->edev); |
edev | 1426 | drivers/net/arcnet.c | kfree(lp->edev->name); |
edev | 1427 | drivers/net/arcnet.c | kfree(lp->edev); |
edev | 1428 | drivers/net/arcnet.c | lp->edev=NULL; |
edev | 2218 | drivers/net/arcnet.c | arcnetE_rx(lp->edev,arcsoft,length,saddr,daddr); |