| .. | .. |
|---|
| 1082 | 1082 | CH_WARN(adapter, "found newer FW version(%u.%u), " |
|---|
| 1083 | 1083 | "driver compiled for version %u.%u\n", major, minor, |
|---|
| 1084 | 1084 | FW_VERSION_MAJOR, FW_VERSION_MINOR); |
|---|
| 1085 | | - return 0; |
|---|
| 1085 | + return 0; |
|---|
| 1086 | 1086 | } |
|---|
| 1087 | 1087 | return -EINVAL; |
|---|
| 1088 | 1088 | } |
|---|
| .. | .. |
|---|
| 2195 | 2195 | |
|---|
| 2196 | 2196 | /** |
|---|
| 2197 | 2197 | * clear_sge_ctxt - completely clear an SGE context |
|---|
| 2198 | | - * @adapter: the adapter |
|---|
| 2198 | + * @adap: the adapter |
|---|
| 2199 | 2199 | * @id: the context id |
|---|
| 2200 | 2200 | * @type: the context type |
|---|
| 2201 | 2201 | * |
|---|
| .. | .. |
|---|
| 2484 | 2484 | * @adapter: the adapter |
|---|
| 2485 | 2485 | * @id: the context id |
|---|
| 2486 | 2486 | * @op: the operation to perform |
|---|
| 2487 | + * @credits: credit value to write |
|---|
| 2487 | 2488 | * |
|---|
| 2488 | 2489 | * Perform the selected operation on an SGE completion queue context. |
|---|
| 2489 | 2490 | * The caller is responsible for ensuring only one context operation |
|---|
| .. | .. |
|---|
| 2885 | 2886 | * t3_load_mtus - write the MTU and congestion control HW tables |
|---|
| 2886 | 2887 | * @adap: the adapter |
|---|
| 2887 | 2888 | * @mtus: the unrestricted values for the MTU table |
|---|
| 2888 | | - * @alphs: the values for the congestion control alpha parameter |
|---|
| 2889 | + * @alpha: the values for the congestion control alpha parameter |
|---|
| 2889 | 2890 | * @beta: the values for the congestion control beta parameter |
|---|
| 2890 | 2891 | * @mtu_cap: the maximum permitted effective MTU |
|---|
| 2891 | 2892 | * |
|---|
| .. | .. |
|---|
| 2966 | 2967 | |
|---|
| 2967 | 2968 | /** |
|---|
| 2968 | 2969 | * t3_set_proto_sram - set the contents of the protocol sram |
|---|
| 2969 | | - * @adapter: the adapter |
|---|
| 2970 | + * @adap: the adapter |
|---|
| 2970 | 2971 | * @data: the protocol image |
|---|
| 2971 | 2972 | * |
|---|
| 2972 | 2973 | * Write the contents of the protocol SRAM. |
|---|
| .. | .. |
|---|
| 3483 | 3484 | /** |
|---|
| 3484 | 3485 | * init_link_config - initialize a link's SW state |
|---|
| 3485 | 3486 | * @lc: structure holding the link state |
|---|
| 3486 | | - * @ai: information about the current card |
|---|
| 3487 | + * @caps: information about the current card |
|---|
| 3487 | 3488 | * |
|---|
| 3488 | 3489 | * Initializes the SW state maintained for each link, including the link's |
|---|
| 3489 | 3490 | * capabilities and default speed/duplex/flow-control/autonegotiation |
|---|
| .. | .. |
|---|
| 3619 | 3620 | |
|---|
| 3620 | 3621 | static int init_parity(struct adapter *adap) |
|---|
| 3621 | 3622 | { |
|---|
| 3622 | | - int i, err, addr; |
|---|
| 3623 | + int i, err, addr; |
|---|
| 3623 | 3624 | |
|---|
| 3624 | 3625 | if (t3_read_reg(adap, A_SG_CONTEXT_CMD) & F_CONTEXT_CMD_BUSY) |
|---|
| 3625 | 3626 | return -EBUSY; |
|---|
| .. | .. |
|---|
| 3677 | 3678 | MAC_STATS_ACCUM_SECS : (MAC_STATS_ACCUM_SECS * 10); |
|---|
| 3678 | 3679 | adapter->params.pci.vpd_cap_addr = |
|---|
| 3679 | 3680 | pci_find_capability(adapter->pdev, PCI_CAP_ID_VPD); |
|---|
| 3681 | + if (!adapter->params.pci.vpd_cap_addr) |
|---|
| 3682 | + return -ENODEV; |
|---|
| 3680 | 3683 | ret = get_vpd_params(adapter, &adapter->params.vpd); |
|---|
| 3681 | 3684 | if (ret < 0) |
|---|
| 3682 | 3685 | return ret; |
|---|
| .. | .. |
|---|
| 3806 | 3809 | p->phy.ops->power_down(&p->phy, 1); |
|---|
| 3807 | 3810 | } |
|---|
| 3808 | 3811 | |
|---|
| 3809 | | -return 0; |
|---|
| 3812 | + return 0; |
|---|
| 3810 | 3813 | } |
|---|
| 3811 | 3814 | |
|---|