diff options
Diffstat (limited to 'drivers/net/ethernet/ti/davinci_emac.c')
-rw-r--r-- | drivers/net/ethernet/ti/davinci_emac.c | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c index 4da93a5d7ec6..9cdd6197a176 100644 --- a/drivers/net/ethernet/ti/davinci_emac.c +++ b/drivers/net/ethernet/ti/davinci_emac.c | |||
@@ -375,7 +375,7 @@ static char *emac_rxhost_errcodes[16] = { | |||
375 | #define emac_ctrl_write(reg, val) iowrite32(val, (priv->ctrl_base + (reg))) | 375 | #define emac_ctrl_write(reg, val) iowrite32(val, (priv->ctrl_base + (reg))) |
376 | 376 | ||
377 | /** | 377 | /** |
378 | * emac_dump_regs: Dump important EMAC registers to debug terminal | 378 | * emac_dump_regs - Dump important EMAC registers to debug terminal |
379 | * @priv: The DaVinci EMAC private adapter structure | 379 | * @priv: The DaVinci EMAC private adapter structure |
380 | * | 380 | * |
381 | * Executes ethtool set cmd & sets phy mode | 381 | * Executes ethtool set cmd & sets phy mode |
@@ -466,7 +466,7 @@ static void emac_dump_regs(struct emac_priv *priv) | |||
466 | } | 466 | } |
467 | 467 | ||
468 | /** | 468 | /** |
469 | * emac_get_drvinfo: Get EMAC driver information | 469 | * emac_get_drvinfo - Get EMAC driver information |
470 | * @ndev: The DaVinci EMAC network adapter | 470 | * @ndev: The DaVinci EMAC network adapter |
471 | * @info: ethtool info structure containing name and version | 471 | * @info: ethtool info structure containing name and version |
472 | * | 472 | * |
@@ -481,7 +481,7 @@ static void emac_get_drvinfo(struct net_device *ndev, | |||
481 | } | 481 | } |
482 | 482 | ||
483 | /** | 483 | /** |
484 | * emac_get_settings: Get EMAC settings | 484 | * emac_get_settings - Get EMAC settings |
485 | * @ndev: The DaVinci EMAC network adapter | 485 | * @ndev: The DaVinci EMAC network adapter |
486 | * @ecmd: ethtool command | 486 | * @ecmd: ethtool command |
487 | * | 487 | * |
@@ -500,7 +500,7 @@ static int emac_get_settings(struct net_device *ndev, | |||
500 | } | 500 | } |
501 | 501 | ||
502 | /** | 502 | /** |
503 | * emac_set_settings: Set EMAC settings | 503 | * emac_set_settings - Set EMAC settings |
504 | * @ndev: The DaVinci EMAC network adapter | 504 | * @ndev: The DaVinci EMAC network adapter |
505 | * @ecmd: ethtool command | 505 | * @ecmd: ethtool command |
506 | * | 506 | * |
@@ -518,7 +518,7 @@ static int emac_set_settings(struct net_device *ndev, struct ethtool_cmd *ecmd) | |||
518 | } | 518 | } |
519 | 519 | ||
520 | /** | 520 | /** |
521 | * emac_get_coalesce : Get interrupt coalesce settings for this device | 521 | * emac_get_coalesce - Get interrupt coalesce settings for this device |
522 | * @ndev : The DaVinci EMAC network adapter | 522 | * @ndev : The DaVinci EMAC network adapter |
523 | * @coal : ethtool coalesce settings structure | 523 | * @coal : ethtool coalesce settings structure |
524 | * | 524 | * |
@@ -536,7 +536,7 @@ static int emac_get_coalesce(struct net_device *ndev, | |||
536 | } | 536 | } |
537 | 537 | ||
538 | /** | 538 | /** |
539 | * emac_set_coalesce : Set interrupt coalesce settings for this device | 539 | * emac_set_coalesce - Set interrupt coalesce settings for this device |
540 | * @ndev : The DaVinci EMAC network adapter | 540 | * @ndev : The DaVinci EMAC network adapter |
541 | * @coal : ethtool coalesce settings structure | 541 | * @coal : ethtool coalesce settings structure |
542 | * | 542 | * |
@@ -631,7 +631,7 @@ static const struct ethtool_ops ethtool_ops = { | |||
631 | }; | 631 | }; |
632 | 632 | ||
633 | /** | 633 | /** |
634 | * emac_update_phystatus: Update Phy status | 634 | * emac_update_phystatus - Update Phy status |
635 | * @priv: The DaVinci EMAC private adapter structure | 635 | * @priv: The DaVinci EMAC private adapter structure |
636 | * | 636 | * |
637 | * Updates phy status and takes action for network queue if required | 637 | * Updates phy status and takes action for network queue if required |
@@ -697,7 +697,7 @@ static void emac_update_phystatus(struct emac_priv *priv) | |||
697 | } | 697 | } |
698 | 698 | ||
699 | /** | 699 | /** |
700 | * hash_get: Calculate hash value from mac address | 700 | * hash_get - Calculate hash value from mac address |
701 | * @addr: mac address to delete from hash table | 701 | * @addr: mac address to delete from hash table |
702 | * | 702 | * |
703 | * Calculates hash value from mac address | 703 | * Calculates hash value from mac address |
@@ -723,9 +723,9 @@ static u32 hash_get(u8 *addr) | |||
723 | } | 723 | } |
724 | 724 | ||
725 | /** | 725 | /** |
726 | * hash_add: Hash function to add mac addr from hash table | 726 | * hash_add - Hash function to add mac addr from hash table |
727 | * @priv: The DaVinci EMAC private adapter structure | 727 | * @priv: The DaVinci EMAC private adapter structure |
728 | * mac_addr: mac address to delete from hash table | 728 | * @mac_addr: mac address to delete from hash table |
729 | * | 729 | * |
730 | * Adds mac address to the internal hash table | 730 | * Adds mac address to the internal hash table |
731 | * | 731 | * |
@@ -765,9 +765,9 @@ static int hash_add(struct emac_priv *priv, u8 *mac_addr) | |||
765 | } | 765 | } |
766 | 766 | ||
767 | /** | 767 | /** |
768 | * hash_del: Hash function to delete mac addr from hash table | 768 | * hash_del - Hash function to delete mac addr from hash table |
769 | * @priv: The DaVinci EMAC private adapter structure | 769 | * @priv: The DaVinci EMAC private adapter structure |
770 | * mac_addr: mac address to delete from hash table | 770 | * @mac_addr: mac address to delete from hash table |
771 | * | 771 | * |
772 | * Removes mac address from the internal hash table | 772 | * Removes mac address from the internal hash table |
773 | * | 773 | * |
@@ -807,7 +807,7 @@ static int hash_del(struct emac_priv *priv, u8 *mac_addr) | |||
807 | #define EMAC_ALL_MULTI_CLR 3 | 807 | #define EMAC_ALL_MULTI_CLR 3 |
808 | 808 | ||
809 | /** | 809 | /** |
810 | * emac_add_mcast: Set multicast address in the EMAC adapter (Internal) | 810 | * emac_add_mcast - Set multicast address in the EMAC adapter (Internal) |
811 | * @priv: The DaVinci EMAC private adapter structure | 811 | * @priv: The DaVinci EMAC private adapter structure |
812 | * @action: multicast operation to perform | 812 | * @action: multicast operation to perform |
813 | * mac_addr: mac address to set | 813 | * mac_addr: mac address to set |
@@ -855,7 +855,7 @@ static void emac_add_mcast(struct emac_priv *priv, u32 action, u8 *mac_addr) | |||
855 | } | 855 | } |
856 | 856 | ||
857 | /** | 857 | /** |
858 | * emac_dev_mcast_set: Set multicast address in the EMAC adapter | 858 | * emac_dev_mcast_set - Set multicast address in the EMAC adapter |
859 | * @ndev: The DaVinci EMAC network adapter | 859 | * @ndev: The DaVinci EMAC network adapter |
860 | * | 860 | * |
861 | * Set multicast addresses in EMAC adapter | 861 | * Set multicast addresses in EMAC adapter |
@@ -901,7 +901,7 @@ static void emac_dev_mcast_set(struct net_device *ndev) | |||
901 | *************************************************************************/ | 901 | *************************************************************************/ |
902 | 902 | ||
903 | /** | 903 | /** |
904 | * emac_int_disable: Disable EMAC module interrupt (from adapter) | 904 | * emac_int_disable - Disable EMAC module interrupt (from adapter) |
905 | * @priv: The DaVinci EMAC private adapter structure | 905 | * @priv: The DaVinci EMAC private adapter structure |
906 | * | 906 | * |
907 | * Disable EMAC interrupt on the adapter | 907 | * Disable EMAC interrupt on the adapter |
@@ -931,7 +931,7 @@ static void emac_int_disable(struct emac_priv *priv) | |||
931 | } | 931 | } |
932 | 932 | ||
933 | /** | 933 | /** |
934 | * emac_int_enable: Enable EMAC module interrupt (from adapter) | 934 | * emac_int_enable - Enable EMAC module interrupt (from adapter) |
935 | * @priv: The DaVinci EMAC private adapter structure | 935 | * @priv: The DaVinci EMAC private adapter structure |
936 | * | 936 | * |
937 | * Enable EMAC interrupt on the adapter | 937 | * Enable EMAC interrupt on the adapter |
@@ -967,7 +967,7 @@ static void emac_int_enable(struct emac_priv *priv) | |||
967 | } | 967 | } |
968 | 968 | ||
969 | /** | 969 | /** |
970 | * emac_irq: EMAC interrupt handler | 970 | * emac_irq - EMAC interrupt handler |
971 | * @irq: interrupt number | 971 | * @irq: interrupt number |
972 | * @dev_id: EMAC network adapter data structure ptr | 972 | * @dev_id: EMAC network adapter data structure ptr |
973 | * | 973 | * |
@@ -1060,7 +1060,7 @@ static void emac_tx_handler(void *token, int len, int status) | |||
1060 | } | 1060 | } |
1061 | 1061 | ||
1062 | /** | 1062 | /** |
1063 | * emac_dev_xmit: EMAC Transmit function | 1063 | * emac_dev_xmit - EMAC Transmit function |
1064 | * @skb: SKB pointer | 1064 | * @skb: SKB pointer |
1065 | * @ndev: The DaVinci EMAC network adapter | 1065 | * @ndev: The DaVinci EMAC network adapter |
1066 | * | 1066 | * |
@@ -1111,7 +1111,7 @@ fail_tx: | |||
1111 | } | 1111 | } |
1112 | 1112 | ||
1113 | /** | 1113 | /** |
1114 | * emac_dev_tx_timeout: EMAC Transmit timeout function | 1114 | * emac_dev_tx_timeout - EMAC Transmit timeout function |
1115 | * @ndev: The DaVinci EMAC network adapter | 1115 | * @ndev: The DaVinci EMAC network adapter |
1116 | * | 1116 | * |
1117 | * Called when system detects that a skb timeout period has expired | 1117 | * Called when system detects that a skb timeout period has expired |
@@ -1138,7 +1138,7 @@ static void emac_dev_tx_timeout(struct net_device *ndev) | |||
1138 | } | 1138 | } |
1139 | 1139 | ||
1140 | /** | 1140 | /** |
1141 | * emac_set_type0addr: Set EMAC Type0 mac address | 1141 | * emac_set_type0addr - Set EMAC Type0 mac address |
1142 | * @priv: The DaVinci EMAC private adapter structure | 1142 | * @priv: The DaVinci EMAC private adapter structure |
1143 | * @ch: RX channel number | 1143 | * @ch: RX channel number |
1144 | * @mac_addr: MAC address to set in device | 1144 | * @mac_addr: MAC address to set in device |
@@ -1165,7 +1165,7 @@ static void emac_set_type0addr(struct emac_priv *priv, u32 ch, char *mac_addr) | |||
1165 | } | 1165 | } |
1166 | 1166 | ||
1167 | /** | 1167 | /** |
1168 | * emac_set_type1addr: Set EMAC Type1 mac address | 1168 | * emac_set_type1addr - Set EMAC Type1 mac address |
1169 | * @priv: The DaVinci EMAC private adapter structure | 1169 | * @priv: The DaVinci EMAC private adapter structure |
1170 | * @ch: RX channel number | 1170 | * @ch: RX channel number |
1171 | * @mac_addr: MAC address to set in device | 1171 | * @mac_addr: MAC address to set in device |
@@ -1187,7 +1187,7 @@ static void emac_set_type1addr(struct emac_priv *priv, u32 ch, char *mac_addr) | |||
1187 | } | 1187 | } |
1188 | 1188 | ||
1189 | /** | 1189 | /** |
1190 | * emac_set_type2addr: Set EMAC Type2 mac address | 1190 | * emac_set_type2addr - Set EMAC Type2 mac address |
1191 | * @priv: The DaVinci EMAC private adapter structure | 1191 | * @priv: The DaVinci EMAC private adapter structure |
1192 | * @ch: RX channel number | 1192 | * @ch: RX channel number |
1193 | * @mac_addr: MAC address to set in device | 1193 | * @mac_addr: MAC address to set in device |
@@ -1213,7 +1213,7 @@ static void emac_set_type2addr(struct emac_priv *priv, u32 ch, | |||
1213 | } | 1213 | } |
1214 | 1214 | ||
1215 | /** | 1215 | /** |
1216 | * emac_setmac: Set mac address in the adapter (internal function) | 1216 | * emac_setmac - Set mac address in the adapter (internal function) |
1217 | * @priv: The DaVinci EMAC private adapter structure | 1217 | * @priv: The DaVinci EMAC private adapter structure |
1218 | * @ch: RX channel number | 1218 | * @ch: RX channel number |
1219 | * @mac_addr: MAC address to set in device | 1219 | * @mac_addr: MAC address to set in device |
@@ -1242,7 +1242,7 @@ static void emac_setmac(struct emac_priv *priv, u32 ch, char *mac_addr) | |||
1242 | } | 1242 | } |
1243 | 1243 | ||
1244 | /** | 1244 | /** |
1245 | * emac_dev_setmac_addr: Set mac address in the adapter | 1245 | * emac_dev_setmac_addr - Set mac address in the adapter |
1246 | * @ndev: The DaVinci EMAC network adapter | 1246 | * @ndev: The DaVinci EMAC network adapter |
1247 | * @addr: MAC address to set in device | 1247 | * @addr: MAC address to set in device |
1248 | * | 1248 | * |
@@ -1277,7 +1277,7 @@ static int emac_dev_setmac_addr(struct net_device *ndev, void *addr) | |||
1277 | } | 1277 | } |
1278 | 1278 | ||
1279 | /** | 1279 | /** |
1280 | * emac_hw_enable: Enable EMAC hardware for packet transmission/reception | 1280 | * emac_hw_enable - Enable EMAC hardware for packet transmission/reception |
1281 | * @priv: The DaVinci EMAC private adapter structure | 1281 | * @priv: The DaVinci EMAC private adapter structure |
1282 | * | 1282 | * |
1283 | * Enables EMAC hardware for packet processing - enables PHY, enables RX | 1283 | * Enables EMAC hardware for packet processing - enables PHY, enables RX |
@@ -1347,7 +1347,7 @@ static int emac_hw_enable(struct emac_priv *priv) | |||
1347 | } | 1347 | } |
1348 | 1348 | ||
1349 | /** | 1349 | /** |
1350 | * emac_poll: EMAC NAPI Poll function | 1350 | * emac_poll - EMAC NAPI Poll function |
1351 | * @ndev: The DaVinci EMAC network adapter | 1351 | * @ndev: The DaVinci EMAC network adapter |
1352 | * @budget: Number of receive packets to process (as told by NAPI layer) | 1352 | * @budget: Number of receive packets to process (as told by NAPI layer) |
1353 | * | 1353 | * |
@@ -1430,7 +1430,7 @@ static int emac_poll(struct napi_struct *napi, int budget) | |||
1430 | 1430 | ||
1431 | #ifdef CONFIG_NET_POLL_CONTROLLER | 1431 | #ifdef CONFIG_NET_POLL_CONTROLLER |
1432 | /** | 1432 | /** |
1433 | * emac_poll_controller: EMAC Poll controller function | 1433 | * emac_poll_controller - EMAC Poll controller function |
1434 | * @ndev: The DaVinci EMAC network adapter | 1434 | * @ndev: The DaVinci EMAC network adapter |
1435 | * | 1435 | * |
1436 | * Polled functionality used by netconsole and others in non interrupt mode | 1436 | * Polled functionality used by netconsole and others in non interrupt mode |
@@ -1489,7 +1489,7 @@ static void emac_adjust_link(struct net_device *ndev) | |||
1489 | *************************************************************************/ | 1489 | *************************************************************************/ |
1490 | 1490 | ||
1491 | /** | 1491 | /** |
1492 | * emac_devioctl: EMAC adapter ioctl | 1492 | * emac_devioctl - EMAC adapter ioctl |
1493 | * @ndev: The DaVinci EMAC network adapter | 1493 | * @ndev: The DaVinci EMAC network adapter |
1494 | * @ifrq: request parameter | 1494 | * @ifrq: request parameter |
1495 | * @cmd: command parameter | 1495 | * @cmd: command parameter |
@@ -1516,7 +1516,7 @@ static int match_first_device(struct device *dev, void *data) | |||
1516 | } | 1516 | } |
1517 | 1517 | ||
1518 | /** | 1518 | /** |
1519 | * emac_dev_open: EMAC device open | 1519 | * emac_dev_open - EMAC device open |
1520 | * @ndev: The DaVinci EMAC network adapter | 1520 | * @ndev: The DaVinci EMAC network adapter |
1521 | * | 1521 | * |
1522 | * Called when system wants to start the interface. We init TX/RX channels | 1522 | * Called when system wants to start the interface. We init TX/RX channels |
@@ -1649,7 +1649,7 @@ rollback: | |||
1649 | } | 1649 | } |
1650 | 1650 | ||
1651 | /** | 1651 | /** |
1652 | * emac_dev_stop: EMAC device stop | 1652 | * emac_dev_stop - EMAC device stop |
1653 | * @ndev: The DaVinci EMAC network adapter | 1653 | * @ndev: The DaVinci EMAC network adapter |
1654 | * | 1654 | * |
1655 | * Called when system wants to stop or down the interface. We stop the network | 1655 | * Called when system wants to stop or down the interface. We stop the network |
@@ -1691,7 +1691,7 @@ static int emac_dev_stop(struct net_device *ndev) | |||
1691 | } | 1691 | } |
1692 | 1692 | ||
1693 | /** | 1693 | /** |
1694 | * emac_dev_getnetstats: EMAC get statistics function | 1694 | * emac_dev_getnetstats - EMAC get statistics function |
1695 | * @ndev: The DaVinci EMAC network adapter | 1695 | * @ndev: The DaVinci EMAC network adapter |
1696 | * | 1696 | * |
1697 | * Called when system wants to get statistics from the device. | 1697 | * Called when system wants to get statistics from the device. |
@@ -1763,7 +1763,7 @@ static const struct net_device_ops emac_netdev_ops = { | |||
1763 | }; | 1763 | }; |
1764 | 1764 | ||
1765 | /** | 1765 | /** |
1766 | * davinci_emac_probe: EMAC device probe | 1766 | * davinci_emac_probe - EMAC device probe |
1767 | * @pdev: The DaVinci EMAC device that we are removing | 1767 | * @pdev: The DaVinci EMAC device that we are removing |
1768 | * | 1768 | * |
1769 | * Called when probing for emac devicesr. We get details of instances and | 1769 | * Called when probing for emac devicesr. We get details of instances and |
@@ -1949,7 +1949,7 @@ free_clk: | |||
1949 | } | 1949 | } |
1950 | 1950 | ||
1951 | /** | 1951 | /** |
1952 | * davinci_emac_remove: EMAC device remove | 1952 | * davinci_emac_remove - EMAC device remove |
1953 | * @pdev: The DaVinci EMAC device that we are removing | 1953 | * @pdev: The DaVinci EMAC device that we are removing |
1954 | * | 1954 | * |
1955 | * Called when removing the device driver. We disable clock usage and release | 1955 | * Called when removing the device driver. We disable clock usage and release |
@@ -2029,7 +2029,7 @@ static struct platform_driver davinci_emac_driver = { | |||
2029 | }; | 2029 | }; |
2030 | 2030 | ||
2031 | /** | 2031 | /** |
2032 | * davinci_emac_init: EMAC driver module init | 2032 | * davinci_emac_init - EMAC driver module init |
2033 | * | 2033 | * |
2034 | * Called when initializing the driver. We register the driver with | 2034 | * Called when initializing the driver. We register the driver with |
2035 | * the platform. | 2035 | * the platform. |
@@ -2041,7 +2041,7 @@ static int __init davinci_emac_init(void) | |||
2041 | late_initcall(davinci_emac_init); | 2041 | late_initcall(davinci_emac_init); |
2042 | 2042 | ||
2043 | /** | 2043 | /** |
2044 | * davinci_emac_exit: EMAC driver module exit | 2044 | * davinci_emac_exit - EMAC driver module exit |
2045 | * | 2045 | * |
2046 | * Called when exiting the driver completely. We unregister the driver with | 2046 | * Called when exiting the driver completely. We unregister the driver with |
2047 | * the platform and exit | 2047 | * the platform and exit |