Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] kernel-doc: fix fusion and i2o docs

Correct lots of typos, kernel-doc warnings, & kernel-doc usage in fusion and
i2o drivers.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Randy Dunlap and committed by
Linus Torvalds
d9489fb6 da39aa8f

+203 -177
+137 -118
drivers/message/fusion/mptbase.c
··· 347 347 } 348 348 349 349 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 350 - /* 350 + /** 351 351 * mpt_interrupt - MPT adapter (IOC) specific interrupt handler. 352 352 * @irq: irq number (not used) 353 353 * @bus_id: bus identifier cookie == pointer to MPT_ADAPTER structure ··· 387 387 } 388 388 389 389 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 390 - /* 391 - * mpt_base_reply - MPT base driver's callback routine; all base driver 392 - * "internal" request/reply processing is routed here. 393 - * Currently used for EventNotification and EventAck handling. 390 + /** 391 + * mpt_base_reply - MPT base driver's callback routine 394 392 * @ioc: Pointer to MPT_ADAPTER structure 395 393 * @mf: Pointer to original MPT request frame 396 394 * @reply: Pointer to MPT reply frame (NULL if TurboReply) 395 + * 396 + * MPT base driver's callback routine; all base driver 397 + * "internal" request/reply processing is routed here. 398 + * Currently used for EventNotification and EventAck handling. 397 399 * 398 400 * Returns 1 indicating original alloc'd request frame ptr 399 401 * should be freed, or 0 if it shouldn't. ··· 532 530 * @dclass: Protocol driver's class (%MPT_DRIVER_CLASS enum value) 533 531 * 534 532 * This routine is called by a protocol-specific driver (SCSI host, 535 - * LAN, SCSI target) to register it's reply callback routine. Each 533 + * LAN, SCSI target) to register its reply callback routine. Each 536 534 * protocol-specific driver must do this before it will be able to 537 535 * use any IOC resources, such as obtaining request frames. 538 536 * ··· 574 572 * mpt_deregister - Deregister a protocol drivers resources. 575 573 * @cb_idx: previously registered callback handle 576 574 * 577 - * Each protocol-specific driver should call this routine when it's 575 + * Each protocol-specific driver should call this routine when its 578 576 * module is unloaded. 579 577 */ 580 578 void ··· 619 617 * 620 618 * Each protocol-specific driver should call this routine 621 619 * when it does not (or can no longer) handle events, 622 - * or when it's module is unloaded. 620 + * or when its module is unloaded. 623 621 */ 624 622 void 625 623 mpt_event_deregister(int cb_idx) ··· 658 656 * 659 657 * Each protocol-specific driver should call this routine 660 658 * when it does not (or can no longer) handle IOC reset handling, 661 - * or when it's module is unloaded. 659 + * or when its module is unloaded. 662 660 */ 663 661 void 664 662 mpt_reset_deregister(int cb_idx) ··· 672 670 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 673 671 /** 674 672 * mpt_device_driver_register - Register device driver hooks 673 + * @dd_cbfunc: driver callbacks struct 674 + * @cb_idx: MPT protocol driver index 675 675 */ 676 676 int 677 677 mpt_device_driver_register(struct mpt_pci_driver * dd_cbfunc, int cb_idx) ··· 700 696 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 701 697 /** 702 698 * mpt_device_driver_deregister - DeRegister device driver hooks 699 + * @cb_idx: MPT protocol driver index 703 700 */ 704 701 void 705 702 mpt_device_driver_deregister(int cb_idx) ··· 892 887 893 888 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 894 889 /** 895 - * mpt_send_handshake_request - Send MPT request via doorbell 896 - * handshake method. 890 + * mpt_send_handshake_request - Send MPT request via doorbell handshake method. 897 891 * @handle: Handle of registered MPT protocol driver 898 892 * @ioc: Pointer to MPT adapter structure 899 893 * @reqBytes: Size of the request in bytes ··· 985 981 986 982 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 987 983 /** 988 - * mpt_host_page_access_control - provides mechanism for the host 989 - * driver to control the IOC's Host Page Buffer access. 984 + * mpt_host_page_access_control - control the IOC's Host Page Buffer access 990 985 * @ioc: Pointer to MPT adapter structure 991 986 * @access_control_value: define bits below 987 + * @sleepFlag: Specifies whether the process can sleep 988 + * 989 + * Provides mechanism for the host driver to control the IOC's 990 + * Host Page Buffer access. 992 991 * 993 992 * Access Control Value - bits[15:12] 994 993 * 0h Reserved ··· 1029 1022 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 1030 1023 /** 1031 1024 * mpt_host_page_alloc - allocate system memory for the fw 1032 - * If we already allocated memory in past, then resend the same pointer. 1033 - * ioc@: Pointer to pointer to IOC adapter 1034 - * ioc_init@: Pointer to ioc init config page 1025 + * @ioc: Pointer to pointer to IOC adapter 1026 + * @ioc_init: Pointer to ioc init config page 1035 1027 * 1028 + * If we already allocated memory in past, then resend the same pointer. 1036 1029 * Returns 0 for success, non-zero for failure. 1037 1030 */ 1038 1031 static int ··· 1098 1091 1099 1092 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 1100 1093 /** 1101 - * mpt_verify_adapter - Given a unique IOC identifier, set pointer to 1102 - * the associated MPT adapter structure. 1094 + * mpt_verify_adapter - Given IOC identifier, set pointer to its adapter structure. 1103 1095 * @iocid: IOC unique identifier (integer) 1104 1096 * @iocpp: Pointer to pointer to IOC adapter 1105 1097 * 1106 - * Returns iocid and sets iocpp. 1098 + * Given a unique IOC identifier, set pointer to the associated MPT 1099 + * adapter structure. 1100 + * 1101 + * Returns iocid and sets iocpp if iocid is found. 1102 + * Returns -1 if iocid is not found. 1107 1103 */ 1108 1104 int 1109 1105 mpt_verify_adapter(int iocid, MPT_ADAPTER **iocpp) ··· 1125 1115 } 1126 1116 1127 1117 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 1128 - /* 1118 + /** 1129 1119 * mpt_attach - Install a PCI intelligent MPT adapter. 1130 1120 * @pdev: Pointer to pci_dev structure 1121 + * @id: PCI device ID information 1131 1122 * 1132 1123 * This routine performs all the steps necessary to bring the IOC of 1133 1124 * a MPT adapter to a OPERATIONAL state. This includes registering ··· 1428 1417 } 1429 1418 1430 1419 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 1431 - /* 1420 + /** 1432 1421 * mpt_detach - Remove a PCI intelligent MPT adapter. 1433 1422 * @pdev: Pointer to pci_dev structure 1434 - * 1435 1423 */ 1436 1424 1437 1425 void ··· 1476 1466 */ 1477 1467 #ifdef CONFIG_PM 1478 1468 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 1479 - /* 1469 + /** 1480 1470 * mpt_suspend - Fusion MPT base driver suspend routine. 1481 - * 1482 - * 1471 + * @pdev: Pointer to pci_dev structure 1472 + * @state: new state to enter 1483 1473 */ 1484 1474 int 1485 1475 mpt_suspend(struct pci_dev *pdev, pm_message_t state) ··· 1515 1505 } 1516 1506 1517 1507 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 1518 - /* 1508 + /** 1519 1509 * mpt_resume - Fusion MPT base driver resume routine. 1520 - * 1521 - * 1510 + * @pdev: Pointer to pci_dev structure 1522 1511 */ 1523 1512 int 1524 1513 mpt_resume(struct pci_dev *pdev) ··· 1575 1566 } 1576 1567 1577 1568 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 1578 - /* 1569 + /** 1579 1570 * mpt_do_ioc_recovery - Initialize or recover MPT adapter. 1580 1571 * @ioc: Pointer to MPT adapter structure 1581 1572 * @reason: Event word / reason ··· 1901 1892 } 1902 1893 1903 1894 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 1904 - /* 1905 - * mpt_detect_bound_ports - Search for PCI bus/dev_function 1906 - * which matches PCI bus/dev_function (+/-1) for newly discovered 929, 1907 - * 929X, 1030 or 1035. 1895 + /** 1896 + * mpt_detect_bound_ports - Search for matching PCI bus/dev_function 1908 1897 * @ioc: Pointer to MPT adapter structure 1909 1898 * @pdev: Pointer to (struct pci_dev) structure 1899 + * 1900 + * Search for PCI bus/dev_function which matches 1901 + * PCI bus/dev_function (+/-1) for newly discovered 929, 1902 + * 929X, 1030 or 1035. 1910 1903 * 1911 1904 * If match on PCI dev_function +/-1 is found, bind the two MPT adapters 1912 1905 * using alt_ioc pointer fields in their %MPT_ADAPTER structures. ··· 1956 1945 } 1957 1946 1958 1947 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 1959 - /* 1948 + /** 1960 1949 * mpt_adapter_disable - Disable misbehaving MPT adapter. 1961 - * @this: Pointer to MPT adapter structure 1950 + * @ioc: Pointer to MPT adapter structure 1962 1951 */ 1963 1952 static void 1964 1953 mpt_adapter_disable(MPT_ADAPTER *ioc) ··· 2057 2046 } 2058 2047 2059 2048 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 2060 - /* 2061 - * mpt_adapter_dispose - Free all resources associated with a MPT 2062 - * adapter. 2049 + /** 2050 + * mpt_adapter_dispose - Free all resources associated with an MPT adapter 2063 2051 * @ioc: Pointer to MPT adapter structure 2064 2052 * 2065 2053 * This routine unregisters h/w resources and frees all alloc'd memory ··· 2109 2099 } 2110 2100 2111 2101 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 2112 - /* 2113 - * MptDisplayIocCapabilities - Disply IOC's capacilities. 2102 + /** 2103 + * MptDisplayIocCapabilities - Disply IOC's capabilities. 2114 2104 * @ioc: Pointer to MPT adapter structure 2115 2105 */ 2116 2106 static void ··· 2152 2142 } 2153 2143 2154 2144 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 2155 - /* 2145 + /** 2156 2146 * MakeIocReady - Get IOC to a READY state, using KickStart if needed. 2157 2147 * @ioc: Pointer to MPT_ADAPTER structure 2158 2148 * @force: Force hard KickStart of IOC ··· 2289 2279 } 2290 2280 2291 2281 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 2292 - /* 2282 + /** 2293 2283 * mpt_GetIocState - Get the current state of a MPT adapter. 2294 2284 * @ioc: Pointer to MPT_ADAPTER structure 2295 2285 * @cooked: Request raw or cooked IOC state ··· 2314 2304 } 2315 2305 2316 2306 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 2317 - /* 2307 + /** 2318 2308 * GetIocFacts - Send IOCFacts request to MPT adapter. 2319 2309 * @ioc: Pointer to MPT_ADAPTER structure 2320 2310 * @sleepFlag: Specifies whether the process can sleep ··· 2488 2478 } 2489 2479 2490 2480 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 2491 - /* 2481 + /** 2492 2482 * GetPortFacts - Send PortFacts request to MPT adapter. 2493 2483 * @ioc: Pointer to MPT_ADAPTER structure 2494 2484 * @portnum: Port number ··· 2555 2545 } 2556 2546 2557 2547 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 2558 - /* 2548 + /** 2559 2549 * SendIocInit - Send IOCInit request to MPT adapter. 2560 2550 * @ioc: Pointer to MPT_ADAPTER structure 2561 2551 * @sleepFlag: Specifies whether the process can sleep ··· 2640 2630 } 2641 2631 2642 2632 /* No need to byte swap the multibyte fields in the reply 2643 - * since we don't even look at it's contents. 2633 + * since we don't even look at its contents. 2644 2634 */ 2645 2635 2646 2636 dhsprintk((MYIOC_s_INFO_FMT "Sending PortEnable (req @ %p)\n", ··· 2682 2672 } 2683 2673 2684 2674 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 2685 - /* 2675 + /** 2686 2676 * SendPortEnable - Send PortEnable request to MPT adapter port. 2687 2677 * @ioc: Pointer to MPT_ADAPTER structure 2688 2678 * @portnum: Port number to enable ··· 2733 2723 return rc; 2734 2724 } 2735 2725 2736 - /* 2737 - * ioc: Pointer to MPT_ADAPTER structure 2738 - * size - total FW bytes 2726 + /** 2727 + * mpt_alloc_fw_memory - allocate firmware memory 2728 + * @ioc: Pointer to MPT_ADAPTER structure 2729 + * @size: total FW bytes 2730 + * 2731 + * If memory has already been allocated, the same (cached) value 2732 + * is returned. 2739 2733 */ 2740 2734 void 2741 2735 mpt_alloc_fw_memory(MPT_ADAPTER *ioc, int size) ··· 2756 2742 ioc->alloc_total += size; 2757 2743 } 2758 2744 } 2759 - /* 2760 - * If alt_img is NULL, delete from ioc structure. 2761 - * Else, delete a secondary image in same format. 2745 + /** 2746 + * mpt_free_fw_memory - free firmware memory 2747 + * @ioc: Pointer to MPT_ADAPTER structure 2748 + * 2749 + * If alt_img is NULL, delete from ioc structure. 2750 + * Else, delete a secondary image in same format. 2762 2751 */ 2763 2752 void 2764 2753 mpt_free_fw_memory(MPT_ADAPTER *ioc) ··· 2780 2763 2781 2764 2782 2765 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 2783 - /* 2766 + /** 2784 2767 * mpt_do_upload - Construct and Send FWUpload request to MPT adapter port. 2785 2768 * @ioc: Pointer to MPT_ADAPTER structure 2786 2769 * @sleepFlag: Specifies whether the process can sleep ··· 2882 2865 } 2883 2866 2884 2867 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 2885 - /* 2868 + /** 2886 2869 * mpt_downloadboot - DownloadBoot code 2887 2870 * @ioc: Pointer to MPT_ADAPTER structure 2888 - * @flag: Specify which part of IOC memory is to be uploaded. 2871 + * @pFwHeader: Pointer to firmware header info 2889 2872 * @sleepFlag: Specifies whether the process can sleep 2890 2873 * 2891 2874 * FwDownloadBoot requires Programmed IO access. ··· 3088 3071 } 3089 3072 3090 3073 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 3091 - /* 3074 + /** 3092 3075 * KickStart - Perform hard reset of MPT adapter. 3093 3076 * @ioc: Pointer to MPT_ADAPTER structure 3094 3077 * @force: Force hard reset ··· 3162 3145 } 3163 3146 3164 3147 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 3165 - /* 3148 + /** 3166 3149 * mpt_diag_reset - Perform hard reset of the adapter. 3167 3150 * @ioc: Pointer to MPT_ADAPTER structure 3168 3151 * @ignore: Set if to honor and clear to ignore 3169 3152 * the reset history bit 3170 - * @sleepflag: CAN_SLEEP if called in a non-interrupt thread, 3153 + * @sleepFlag: CAN_SLEEP if called in a non-interrupt thread, 3171 3154 * else set to NO_SLEEP (use mdelay instead) 3172 3155 * 3173 3156 * This routine places the adapter in diagnostic mode via the ··· 3453 3436 } 3454 3437 3455 3438 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 3456 - /* 3439 + /** 3457 3440 * SendIocReset - Send IOCReset request to MPT adapter. 3458 3441 * @ioc: Pointer to MPT_ADAPTER structure 3459 3442 * @reset_type: reset type, expected values are 3460 3443 * %MPI_FUNCTION_IOC_MESSAGE_UNIT_RESET or %MPI_FUNCTION_IO_UNIT_RESET 3444 + * @sleepFlag: Specifies whether the process can sleep 3461 3445 * 3462 3446 * Send IOCReset request to the MPT adapter. 3463 3447 * ··· 3512 3494 } 3513 3495 3514 3496 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 3515 - /* 3516 - * initChainBuffers - Allocate memory for and initialize 3517 - * chain buffers, chain buffer control arrays and spinlock. 3518 - * @hd: Pointer to MPT_SCSI_HOST structure 3519 - * @init: If set, initialize the spin lock. 3497 + /** 3498 + * initChainBuffers - Allocate memory for and initialize chain buffers 3499 + * @ioc: Pointer to MPT_ADAPTER structure 3500 + * 3501 + * Allocates memory for and initializes chain buffers, 3502 + * chain buffer control arrays and spinlock. 3520 3503 */ 3521 3504 static int 3522 3505 initChainBuffers(MPT_ADAPTER *ioc) ··· 3613 3594 } 3614 3595 3615 3596 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 3616 - /* 3597 + /** 3617 3598 * PrimeIocFifos - Initialize IOC request and reply FIFOs. 3618 3599 * @ioc: Pointer to MPT_ADAPTER structure 3619 3600 * ··· 3910 3891 } 3911 3892 3912 3893 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 3913 - /* 3914 - * WaitForDoorbellAck - Wait for IOC to clear the IOP_DOORBELL_STATUS bit 3915 - * in it's IntStatus register. 3894 + /** 3895 + * WaitForDoorbellAck - Wait for IOC doorbell handshake acknowledge 3916 3896 * @ioc: Pointer to MPT_ADAPTER structure 3917 3897 * @howlong: How long to wait (in seconds) 3918 3898 * @sleepFlag: Specifies whether the process can sleep 3919 3899 * 3920 3900 * This routine waits (up to ~2 seconds max) for IOC doorbell 3921 - * handshake ACKnowledge. 3901 + * handshake ACKnowledge, indicated by the IOP_DOORBELL_STATUS 3902 + * bit in its IntStatus register being clear. 3922 3903 * 3923 3904 * Returns a negative value on failure, else wait loop count. 3924 3905 */ ··· 3961 3942 } 3962 3943 3963 3944 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 3964 - /* 3965 - * WaitForDoorbellInt - Wait for IOC to set the HIS_DOORBELL_INTERRUPT bit 3966 - * in it's IntStatus register. 3945 + /** 3946 + * WaitForDoorbellInt - Wait for IOC to set its doorbell interrupt bit 3967 3947 * @ioc: Pointer to MPT_ADAPTER structure 3968 3948 * @howlong: How long to wait (in seconds) 3969 3949 * @sleepFlag: Specifies whether the process can sleep 3970 3950 * 3971 - * This routine waits (up to ~2 seconds max) for IOC doorbell interrupt. 3951 + * This routine waits (up to ~2 seconds max) for IOC doorbell interrupt 3952 + * (MPI_HIS_DOORBELL_INTERRUPT) to be set in the IntStatus register. 3972 3953 * 3973 3954 * Returns a negative value on failure, else wait loop count. 3974 3955 */ ··· 4010 3991 } 4011 3992 4012 3993 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 4013 - /* 4014 - * WaitForDoorbellReply - Wait for and capture a IOC handshake reply. 3994 + /** 3995 + * WaitForDoorbellReply - Wait for and capture an IOC handshake reply. 4015 3996 * @ioc: Pointer to MPT_ADAPTER structure 4016 3997 * @howlong: How long to wait (in seconds) 4017 3998 * @sleepFlag: Specifies whether the process can sleep ··· 4096 4077 } 4097 4078 4098 4079 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 4099 - /* 4080 + /** 4100 4081 * GetLanConfigPages - Fetch LANConfig pages. 4101 4082 * @ioc: Pointer to MPT_ADAPTER structure 4102 4083 * ··· 4207 4188 } 4208 4189 4209 4190 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 4210 - /* 4211 - * mptbase_sas_persist_operation - Perform operation on SAS Persitent Table 4191 + /** 4192 + * mptbase_sas_persist_operation - Perform operation on SAS Persistent Table 4212 4193 * @ioc: Pointer to MPT_ADAPTER structure 4213 - * @sas_address: 64bit SAS Address for operation. 4214 - * @target_id: specified target for operation 4215 - * @bus: specified bus for operation 4216 4194 * @persist_opcode: see below 4217 4195 * 4218 4196 * MPI_SAS_OP_CLEAR_NOT_PRESENT - Free all persist TargetID mappings for ··· 4218 4202 * 4219 4203 * NOTE: Don't use not this function during interrupt time. 4220 4204 * 4221 - * Returns: 0 for success, non-zero error 4205 + * Returns 0 for success, non-zero error 4222 4206 */ 4223 4207 4224 4208 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ ··· 4415 4399 } 4416 4400 4417 4401 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 4418 - /* 4402 + /** 4419 4403 * GetIoUnitPage2 - Retrieve BIOS version and boot order information. 4420 4404 * @ioc: Pointer to MPT_ADAPTER structure 4421 4405 * ··· 4473 4457 } 4474 4458 4475 4459 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 4476 - /* mpt_GetScsiPortSettings - read SCSI Port Page 0 and 2 4460 + /** 4461 + * mpt_GetScsiPortSettings - read SCSI Port Page 0 and 2 4477 4462 * @ioc: Pointer to a Adapter Strucutre 4478 4463 * @portnum: IOC port number 4479 4464 * ··· 4661 4644 } 4662 4645 4663 4646 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 4664 - /* mpt_readScsiDevicePageHeaders - save version and length of SDP1 4647 + /** 4648 + * mpt_readScsiDevicePageHeaders - save version and length of SDP1 4665 4649 * @ioc: Pointer to a Adapter Strucutre 4666 4650 * @portnum: IOC port number 4667 4651 * ··· 5014 4996 } 5015 4997 5016 4998 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 5017 - /* 5018 - * SendEventNotification - Send EventNotification (on or off) request 5019 - * to MPT adapter. 4999 + /** 5000 + * SendEventNotification - Send EventNotification (on or off) request to adapter 5020 5001 * @ioc: Pointer to MPT_ADAPTER structure 5021 5002 * @EvSwitch: Event switch flags 5022 5003 */ ··· 5079 5062 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 5080 5063 /** 5081 5064 * mpt_config - Generic function to issue config message 5082 - * @ioc - Pointer to an adapter structure 5083 - * @cfg - Pointer to a configuration structure. Struct contains 5065 + * @ioc: Pointer to an adapter structure 5066 + * @pCfg: Pointer to a configuration structure. Struct contains 5084 5067 * action, page address, direction, physical address 5085 5068 * and pointer to a configuration page header 5086 5069 * Page header is updated. ··· 5205 5188 } 5206 5189 5207 5190 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 5208 - /* 5209 - * mpt_timer_expired - Call back for timer process. 5191 + /** 5192 + * mpt_timer_expired - Callback for timer process. 5210 5193 * Used only internal config functionality. 5211 5194 * @data: Pointer to MPT_SCSI_HOST recast as an unsigned long 5212 5195 */ ··· 5231 5214 } 5232 5215 5233 5216 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 5234 - /* 5217 + /** 5235 5218 * mpt_ioc_reset - Base cleanup for hard reset 5236 5219 * @ioc: Pointer to the adapter structure 5237 5220 * @reset_phase: Indicates pre- or post-reset functionality 5238 5221 * 5239 - * Remark: Free's resources with internally generated commands. 5222 + * Remark: Frees resources with internally generated commands. 5240 5223 */ 5241 5224 static int 5242 5225 mpt_ioc_reset(MPT_ADAPTER *ioc, int reset_phase) ··· 5288 5271 * procfs (%MPT_PROCFS_MPTBASEDIR/...) support stuff... 5289 5272 */ 5290 5273 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 5291 - /* 5274 + /** 5292 5275 * procmpt_create - Create %MPT_PROCFS_MPTBASEDIR entries. 5293 5276 * 5294 5277 * Returns 0 for success, non-zero for failure. ··· 5314 5297 } 5315 5298 5316 5299 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 5317 - /* 5300 + /** 5318 5301 * procmpt_destroy - Tear down %MPT_PROCFS_MPTBASEDIR entries. 5319 5302 * 5320 5303 * Returns 0 for success, non-zero for failure. ··· 5328 5311 } 5329 5312 5330 5313 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 5331 - /* 5332 - * procmpt_summary_read - Handle read request from /proc/mpt/summary 5333 - * or from /proc/mpt/iocN/summary. 5314 + /** 5315 + * procmpt_summary_read - Handle read request of a summary file 5334 5316 * @buf: Pointer to area to write information 5335 5317 * @start: Pointer to start pointer 5336 5318 * @offset: Offset to start writing 5337 - * @request: 5319 + * @request: Amount of read data requested 5338 5320 * @eof: Pointer to EOF integer 5339 5321 * @data: Pointer 5340 5322 * 5323 + * Handles read request from /proc/mpt/summary or /proc/mpt/iocN/summary. 5341 5324 * Returns number of characters written to process performing the read. 5342 5325 */ 5343 5326 static int ··· 5372 5355 } 5373 5356 5374 5357 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 5375 - /* 5358 + /** 5376 5359 * procmpt_version_read - Handle read request from /proc/mpt/version. 5377 5360 * @buf: Pointer to area to write information 5378 5361 * @start: Pointer to start pointer 5379 5362 * @offset: Offset to start writing 5380 - * @request: 5363 + * @request: Amount of read data requested 5381 5364 * @eof: Pointer to EOF integer 5382 5365 * @data: Pointer 5383 5366 * ··· 5428 5411 } 5429 5412 5430 5413 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 5431 - /* 5414 + /** 5432 5415 * procmpt_iocinfo_read - Handle read request from /proc/mpt/iocN/info. 5433 5416 * @buf: Pointer to area to write information 5434 5417 * @start: Pointer to start pointer 5435 5418 * @offset: Offset to start writing 5436 - * @request: 5419 + * @request: Amount of read data requested 5437 5420 * @eof: Pointer to EOF integer 5438 5421 * @data: Pointer 5439 5422 * ··· 5594 5577 */ 5595 5578 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 5596 5579 /** 5597 - * mpt_HardResetHandler - Generic reset handler, issue SCSI Task 5598 - * Management call based on input arg values. If TaskMgmt fails, 5599 - * return associated SCSI request. 5580 + * mpt_HardResetHandler - Generic reset handler 5600 5581 * @ioc: Pointer to MPT_ADAPTER structure 5601 5582 * @sleepFlag: Indicates if sleep or schedule must be called. 5583 + * 5584 + * Issues SCSI Task Management call based on input arg values. 5585 + * If TaskMgmt fails, returns associated SCSI request. 5602 5586 * 5603 5587 * Remark: _HardResetHandler can be invoked from an interrupt thread (timer) 5604 5588 * or a non-interrupt thread. In the former, must not call schedule(). 5605 5589 * 5606 - * Remark: A return of -1 is a FATAL error case, as it means a 5590 + * Note: A return of -1 is a FATAL error case, as it means a 5607 5591 * FW reload/initialization failed. 5608 5592 * 5609 5593 * Returns 0 for SUCCESS or -1 if FAILED. ··· 5953 5935 } 5954 5936 5955 5937 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 5956 - /* 5957 - * ProcessEventNotification - Route a received EventNotificationReply to 5958 - * all currently regeistered event handlers. 5938 + /** 5939 + * ProcessEventNotification - Route EventNotificationReply to all event handlers 5959 5940 * @ioc: Pointer to MPT_ADAPTER structure 5960 5941 * @pEventReply: Pointer to EventNotification reply frame 5961 5942 * @evHandlers: Pointer to integer, number of event handlers 5962 5943 * 5944 + * Routes a received EventNotificationReply to all currently registered 5945 + * event handlers. 5963 5946 * Returns sum of event handlers return values. 5964 5947 */ 5965 5948 static int ··· 6075 6056 } 6076 6057 6077 6058 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 6078 - /* 6059 + /** 6079 6060 * mpt_fc_log_info - Log information returned from Fibre Channel IOC. 6080 6061 * @ioc: Pointer to MPT_ADAPTER structure 6081 6062 * @log_info: U32 LogInfo reply word from the IOC ··· 6096 6077 } 6097 6078 6098 6079 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 6099 - /* 6080 + /** 6100 6081 * mpt_spi_log_info - Log information returned from SCSI Parallel IOC. 6101 6082 * @ioc: Pointer to MPT_ADAPTER structure 6102 6083 * @mr: Pointer to MPT reply frame ··· 6219 6200 }; 6220 6201 6221 6202 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 6222 - /* 6203 + /** 6223 6204 * mpt_sas_log_info - Log information returned from SAS IOC. 6224 6205 * @ioc: Pointer to MPT_ADAPTER structure 6225 6206 * @log_info: U32 LogInfo reply word from the IOC ··· 6274 6255 } 6275 6256 6276 6257 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 6277 - /* 6258 + /** 6278 6259 * mpt_sp_ioc_info - IOC information returned from SCSI Parallel IOC. 6279 6260 * @ioc: Pointer to MPT_ADAPTER structure 6280 6261 * @ioc_status: U32 IOCStatus word from IOC ··· 6435 6416 EXPORT_SYMBOL(mptbase_sas_persist_operation); 6436 6417 6437 6418 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 6438 - /* 6419 + /** 6439 6420 * fusion_init - Fusion MPT base driver initialization routine. 6440 6421 * 6441 6422 * Returns 0 for success, non-zero for failure. ··· 6475 6456 } 6476 6457 6477 6458 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 6478 - /* 6459 + /** 6479 6460 * fusion_exit - Perform driver unload cleanup. 6480 6461 * 6481 6462 * This routine frees all resources associated with each MPT adapter
+2 -3
drivers/message/fusion/mptfc.c
··· 1395 1395 1396 1396 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 1397 1397 /** 1398 - * mptfc_init - Register MPT adapter(s) as SCSI host(s) with 1399 - * linux scsi mid-layer. 1398 + * mptfc_init - Register MPT adapter(s) as SCSI host(s) with SCSI mid-layer. 1400 1399 * 1401 1400 * Returns 0 for success, non-zero for failure. 1402 1401 */ ··· 1439 1440 1440 1441 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 1441 1442 /** 1442 - * mptfc_remove - Removed fc infrastructure for devices 1443 + * mptfc_remove - Remove fc infrastructure for devices 1443 1444 * @pdev: Pointer to pci_dev structure 1444 1445 * 1445 1446 */
+11 -13
drivers/message/fusion/mptscsih.c
··· 1230 1230 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 1231 1231 /** 1232 1232 * mptscsih_proc_info - Return information about MPT adapter 1233 + * @host: scsi host struct 1234 + * @buffer: if write, user data; if read, buffer for user 1235 + * @start: returns the buffer address 1236 + * @offset: if write, 0; if read, the current offset into the buffer from 1237 + * the previous read. 1238 + * @length: if write, return length; 1239 + * @func: write = 1; read = 0 1233 1240 * 1234 1241 * (linux scsi_host_template.info routine) 1235 - * 1236 - * buffer: if write, user data; if read, buffer for user 1237 - * length: if write, return length; 1238 - * offset: if write, 0; if read, the current offset into the buffer from 1239 - * the previous read. 1240 - * hostno: scsi host number 1241 - * func: if write = 1; if read = 0 1242 1242 */ 1243 1243 int 1244 1244 mptscsih_proc_info(struct Scsi_Host *host, char *buffer, char **start, off_t offset, ··· 1902 1902 1903 1903 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 1904 1904 /** 1905 - * mptscsih_host_reset - Perform a SCSI host adapter RESET! 1906 - * new_eh variant 1905 + * mptscsih_host_reset - Perform a SCSI host adapter RESET (new_eh variant) 1907 1906 * @SCpnt: Pointer to scsi_cmnd structure, IO which reset is due to 1908 1907 * 1909 1908 * (linux scsi_host_template.eh_host_reset_handler routine) ··· 1948 1949 1949 1950 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 1950 1951 /** 1951 - * mptscsih_tm_pending_wait - wait for pending task management request to 1952 - * complete. 1952 + * mptscsih_tm_pending_wait - wait for pending task management request to complete 1953 1953 * @hd: Pointer to MPT host structure. 1954 1954 * 1955 1955 * Returns {SUCCESS,FAILED}. ··· 1980 1982 /** 1981 1983 * mptscsih_tm_wait_for_completion - wait for completion of TM task 1982 1984 * @hd: Pointer to MPT host structure. 1985 + * @timeout: timeout in seconds 1983 1986 * 1984 1987 * Returns {SUCCESS,FAILED}. 1985 1988 */ ··· 3428 3429 /** 3429 3430 * mptscsih_synchronize_cache - Send SYNCHRONIZE_CACHE to all disks. 3430 3431 * @hd: Pointer to a SCSI HOST structure 3431 - * @vtarget: per device private data 3432 - * @lun: lun 3432 + * @vdevice: virtual target device 3433 3433 * 3434 3434 * Uses the ISR, but with special processing. 3435 3435 * MUST be single-threaded.
+1 -3
drivers/message/fusion/mptspi.c
··· 1100 1100 1101 1101 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 1102 1102 /** 1103 - * mptspi_init - Register MPT adapter(s) as SCSI host(s) with 1104 - * linux scsi mid-layer. 1103 + * mptspi_init - Register MPT adapter(s) as SCSI host(s) with SCSI mid-layer. 1105 1104 * 1106 1105 * Returns 0 for success, non-zero for failure. 1107 1106 */ ··· 1134 1135 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 1135 1136 /** 1136 1137 * mptspi_exit - Unregisters MPT adapter(s) 1137 - * 1138 1138 */ 1139 1139 static void __exit 1140 1140 mptspi_exit(void)
+3
drivers/message/i2o/bus-osm.c
··· 56 56 /** 57 57 * i2o_bus_store_scan - Scan the I2O Bus Adapter 58 58 * @d: device which should be scanned 59 + * @attr: device_attribute 60 + * @buf: output buffer 61 + * @count: buffer size 59 62 * 60 63 * Returns count. 61 64 */
+4 -4
drivers/message/i2o/device.c
··· 54 54 * @dev: I2O device to claim 55 55 * @drv: I2O driver which wants to claim the device 56 56 * 57 - * Do the leg work to assign a device to a given OSM. If the claim succeed 58 - * the owner of the rimary. If the attempt fails a negative errno code 57 + * Do the leg work to assign a device to a given OSM. If the claim succeeds, 58 + * the owner is the primary. If the attempt fails a negative errno code 59 59 * is returned. On success zero is returned. 60 60 */ 61 61 int i2o_device_claim(struct i2o_device *dev) ··· 208 208 209 209 /** 210 210 * i2o_device_add - allocate a new I2O device and add it to the IOP 211 - * @iop: I2O controller where the device is on 211 + * @c: I2O controller that the device is on 212 212 * @entry: LCT entry of the I2O device 213 213 * 214 214 * Allocate a new I2O device and initialize it with the LCT entry. The ··· 280 280 281 281 /** 282 282 * i2o_device_remove - remove an I2O device from the I2O core 283 - * @dev: I2O device which should be released 283 + * @i2o_dev: I2O device which should be released 284 284 * 285 285 * Is used on I2O controller removal or LCT modification, when the device 286 286 * is removed from the system. Note that the device could still hang
+9 -11
drivers/message/i2o/driver.c
··· 34 34 static struct i2o_driver **i2o_drivers; 35 35 36 36 /** 37 - * i2o_bus_match - Tell if a I2O device class id match the class ids of 38 - * the I2O driver (OSM) 39 - * 37 + * i2o_bus_match - Tell if I2O device class id matches the class ids of the I2O driver (OSM) 40 38 * @dev: device which should be verified 41 39 * @drv: the driver to match against 42 40 * ··· 246 248 247 249 /** 248 250 * i2o_driver_notify_controller_add_all - Send notify of added controller 249 - * to all I2O drivers 251 + * @c: newly added controller 250 252 * 251 253 * Send notifications to all registered drivers that a new controller was 252 254 * added. ··· 265 267 } 266 268 267 269 /** 268 - * i2o_driver_notify_controller_remove_all - Send notify of removed 269 - * controller to all I2O drivers 270 + * i2o_driver_notify_controller_remove_all - Send notify of removed controller 271 + * @c: controller that is being removed 270 272 * 271 273 * Send notifications to all registered drivers that a controller was 272 274 * removed. ··· 285 287 } 286 288 287 289 /** 288 - * i2o_driver_notify_device_add_all - Send notify of added device to all 289 - * I2O drivers 290 + * i2o_driver_notify_device_add_all - Send notify of added device 291 + * @i2o_dev: newly added I2O device 290 292 * 291 293 * Send notifications to all registered drivers that a device was added. 292 294 */ ··· 304 306 } 305 307 306 308 /** 307 - * i2o_driver_notify_device_remove_all - Send notify of removed device to 308 - * all I2O drivers 309 + * i2o_driver_notify_device_remove_all - Send notify of removed device 310 + * @i2o_dev: device that is being removed 309 311 * 310 312 * Send notifications to all registered drivers that a device was removed. 311 313 */ ··· 360 362 /** 361 363 * i2o_driver_exit - clean up I2O drivers (OSMs) 362 364 * 363 - * Unregisters the I2O bus and free driver array. 365 + * Unregisters the I2O bus and frees driver array. 364 366 */ 365 367 void __exit i2o_driver_exit(void) 366 368 {
+6 -4
drivers/message/i2o/exec-osm.c
··· 94 94 }; 95 95 96 96 /** 97 - * i2o_exec_wait_free - Free a i2o_exec_wait struct 98 - * @i2o_exec_wait: I2O wait data which should be cleaned up 97 + * i2o_exec_wait_free - Free an i2o_exec_wait struct 98 + * @wait: I2O wait data which should be cleaned up 99 99 */ 100 100 static void i2o_exec_wait_free(struct i2o_exec_wait *wait) 101 101 { ··· 105 105 /** 106 106 * i2o_msg_post_wait_mem - Post and wait a message with DMA buffers 107 107 * @c: controller 108 - * @m: message to post 108 + * @msg: message to post 109 109 * @timeout: time in seconds to wait 110 110 * @dma: i2o_dma struct of the DMA buffer to free on failure 111 111 * ··· 269 269 /** 270 270 * i2o_exec_show_vendor_id - Displays Vendor ID of controller 271 271 * @d: device of which the Vendor ID should be displayed 272 + * @attr: device_attribute to display 272 273 * @buf: buffer into which the Vendor ID should be printed 273 274 * 274 275 * Returns number of bytes printed into buffer. ··· 291 290 /** 292 291 * i2o_exec_show_product_id - Displays Product ID of controller 293 292 * @d: device of which the Product ID should be displayed 293 + * @attr: device_attribute to display 294 294 * @buf: buffer into which the Product ID should be printed 295 295 * 296 296 * Returns number of bytes printed into buffer. ··· 367 365 368 366 /** 369 367 * i2o_exec_lct_modified - Called on LCT NOTIFY reply 370 - * @c: I2O controller on which the LCT has modified 368 + * @work: work struct for a specific controller 371 369 * 372 370 * This function handles asynchronus LCT NOTIFY replies. It parses the 373 371 * new LCT and if the buffer for the LCT was to small sends a LCT NOTIFY
+11 -4
drivers/message/i2o/i2o_block.c
··· 259 259 /** 260 260 * i2o_block_device_power - Power management for device dev 261 261 * @dev: I2O device which should receive the power management request 262 - * @operation: Operation which should be send 262 + * @op: Operation to send 263 263 * 264 264 * Send a power management request to the device dev. 265 265 * ··· 315 315 * i2o_block_request_free - Frees a I2O block request 316 316 * @ireq: I2O block request which should be freed 317 317 * 318 - * Fres the allocated memory (give it back to the request mempool). 318 + * Frees the allocated memory (give it back to the request mempool). 319 319 */ 320 320 static inline void i2o_block_request_free(struct i2o_block_request *ireq) 321 321 { ··· 326 326 * i2o_block_sglist_alloc - Allocate the SG list and map it 327 327 * @c: I2O controller to which the request belongs 328 328 * @ireq: I2O block request 329 + * @mptr: message body pointer 329 330 * 330 331 * Builds the SG list and map it to be accessable by the controller. 331 332 * ··· 491 490 * i2o_block_reply - Block OSM reply handler. 492 491 * @c: I2O controller from which the message arrives 493 492 * @m: message id of reply 494 - * qmsg: the actuall I2O message reply 493 + * @msg: the actual I2O message reply 495 494 * 496 495 * This function gets all the message replies. 497 496 * ··· 603 602 604 603 /** 605 604 * i2o_block_open - Open the block device 605 + * @inode: inode for block device being opened 606 + * @file: file to open 606 607 * 607 608 * Power up the device, mount and lock the media. This function is called, 608 609 * if the block device is opened for access. ··· 632 629 633 630 /** 634 631 * i2o_block_release - Release the I2O block device 632 + * @inode: inode for block device being released 633 + * @file: file to close 635 634 * 636 635 * Unlock and unmount the media, and power down the device. Gets called if 637 636 * the block device is closed. ··· 680 675 681 676 /** 682 677 * i2o_block_ioctl - Issue device specific ioctl calls. 678 + * @inode: inode for block device ioctl 679 + * @file: file for ioctl 683 680 * @cmd: ioctl command 684 681 * @arg: arg 685 682 * ··· 909 902 910 903 /** 911 904 * i2o_block_request_fn - request queue handling function 912 - * q: request queue from which the request could be fetched 905 + * @q: request queue from which the request could be fetched 913 906 * 914 907 * Takes the next request from the queue, transfers it and if no error 915 908 * occurs dequeue it from the queue. On arrival of the reply the message
+1 -1
drivers/message/i2o/i2o_proc.c
··· 163 163 * i2o_get_class_name - do i2o class name lookup 164 164 * @class: class number 165 165 * 166 - * Return a descriptive string for an i2o class 166 + * Return a descriptive string for an i2o class. 167 167 */ 168 168 static const char *i2o_get_class_name(int class) 169 169 {
+4 -7
drivers/message/i2o/i2o_scsi.c
··· 411 411 }; 412 412 413 413 /** 414 - * i2o_scsi_notify_device_remove - Retrieve notifications of removed 415 - * devices 414 + * i2o_scsi_notify_device_remove - Retrieve notifications of removed devices 416 415 * @i2o_dev: the I2O device which was removed 417 416 * 418 417 * If a I2O device is removed, we catch the notification to remove the ··· 431 432 }; 432 433 433 434 /** 434 - * i2o_scsi_notify_controller_add - Retrieve notifications of added 435 - * controllers 435 + * i2o_scsi_notify_controller_add - Retrieve notifications of added controllers 436 436 * @c: the controller which was added 437 437 * 438 438 * If a I2O controller is added, we catch the notification to add a ··· 461 463 }; 462 464 463 465 /** 464 - * i2o_scsi_notify_controller_remove - Retrieve notifications of removed 465 - * controllers 466 + * i2o_scsi_notify_controller_remove - Retrieve notifications of removed controllers 466 467 * @c: the controller which was removed 467 468 * 468 469 * If a I2O controller is removed, we catch the notification to remove the ··· 748 751 * @capacity: size in sectors 749 752 * @ip: geometry array 750 753 * 751 - * This is anyones guess quite frankly. We use the same rules everyone 754 + * This is anyone's guess quite frankly. We use the same rules everyone 752 755 * else appears to and hope. It seems to work. 753 756 */ 754 757
+3 -2
drivers/message/i2o/pci.c
··· 259 259 260 260 /** 261 261 * i2o_pci_irq_enable - Allocate interrupt for I2O controller 262 + * @c: i2o_controller that the request is for 262 263 * 263 264 * Allocate an interrupt for the I2O controller, and activate interrupts 264 265 * on the I2O controller. ··· 306 305 307 306 /** 308 307 * i2o_pci_probe - Probe the PCI device for an I2O controller 309 - * @dev: PCI device to test 308 + * @pdev: PCI device to test 310 309 * @id: id which matched with the PCI device id table 311 310 * 312 311 * Probe the PCI device for any device which is a memory of the ··· 448 447 449 448 /** 450 449 * i2o_pci_remove - Removes a I2O controller from the system 451 - * pdev: I2O controller which should be removed 450 + * @pdev: I2O controller which should be removed 452 451 * 453 452 * Reset the I2O controller, disable interrupts and remove all allocated 454 453 * resources.
+11 -7
include/linux/i2o.h
··· 986 986 987 987 /** 988 988 * i2o_driver_notify_controller_add - Send notification of added controller 989 - * to a single I2O driver 989 + * @drv: I2O driver 990 + * @c: I2O controller 990 991 * 991 992 * Send notification of added controller to a single registered driver. 992 993 */ ··· 999 998 }; 1000 999 1001 1000 /** 1002 - * i2o_driver_notify_controller_remove - Send notification of removed 1003 - * controller to a single I2O driver 1001 + * i2o_driver_notify_controller_remove - Send notification of removed controller 1002 + * @drv: I2O driver 1003 + * @c: I2O controller 1004 1004 * 1005 1005 * Send notification of removed controller to a single registered driver. 1006 1006 */ ··· 1013 1011 }; 1014 1012 1015 1013 /** 1016 - * i2o_driver_notify_device_add - Send notification of added device to a 1017 - * single I2O driver 1014 + * i2o_driver_notify_device_add - Send notification of added device 1015 + * @drv: I2O driver 1016 + * @i2o_dev: the added i2o_device 1018 1017 * 1019 1018 * Send notification of added device to a single registered driver. 1020 1019 */ ··· 1028 1025 1029 1026 /** 1030 1027 * i2o_driver_notify_device_remove - Send notification of removed device 1031 - * to a single I2O driver 1028 + * @drv: I2O driver 1029 + * @i2o_dev: the added i2o_device 1032 1030 * 1033 1031 * Send notification of removed device to a single registered driver. 1034 1032 */ ··· 1152 1148 /** 1153 1149 * i2o_msg_post_wait - Post and wait a message and wait until return 1154 1150 * @c: controller 1155 - * @m: message to post 1151 + * @msg: message to post 1156 1152 * @timeout: time in seconds to wait 1157 1153 * 1158 1154 * This API allows an OSM to post a message and then be told whether or