提交 29bbf5d7 编写于 作者: R Rahul Lakkireddy 提交者: David S. Miller

cxgb4: update kernel-doc line comments

Update several kernel-doc line comments to fix warnings reported by
make W=1.

Fixes following class of warnings reported by make W=1 in several
places:
l2t.c:616: warning: Cannot understand  * @dev: net_device pointer
t4_hw.c:3175: warning: Function parameter or member 'adap' not
described in 't4_get_exprom_version'
t4_hw.c:3175: warning: Excess function parameter 'adapter' description
in 't4_get_exprom_version'

Fixes: 56d36be4 ("cxgb4: Add HW and FW support code")
Fixes: fd3a4790 ("cxgb4: Add packet queues and packet DMA code")
Fixes: 26f7cbc0 ("cxgb4: Don't attempt to upgrade T4 firmware when cxgb4 will end up as a slave")
Fixes: 793dad94 ("RDMA/cxgb4: Fix bug for active and passive LE hash collision path")
Fixes: ba3f8cd5 ("cxgb4: Add support in cxgb4 to get expansion rom version via ethtool")
Fixes: f7502659 ("cxgb4: Add API to alloc l2t entry; also update existing ones")
Fixes: ddc7740d ("cxgb4: Decode link down reason code obtained from firmware")
Fixes: 193c4c28 ("cxgb4: Update T6 Buffer Group and Channel Mappings")
Fixes: 8f46d467 ("cxgb4: Use Firmware params to get buffer-group map")
Fixes: a4569504 ("cxgb4: time stamping interface for PTP")
Fixes: 9c33e420 ("cxgb4: Add PTP Hardware Clock (PHC) support")
Fixes: c3168cab ("cxgb4/cxgbvf: Handle 32-bit fw port capabilities")
Fixes: 5ccf9d04 ("cxgb4: update API for TP indirect register access")
Fixes: 3bdb376e ("cxgb4: introduce SMT ops to prepare for SMAC rewrite support")
Fixes: 736c3b94 ("cxgb4: collect egress and ingress SGE queue contexts")
Fixes: f56ec676 ("cxgb4: Add support for ethtool i2c dump")
Fixes: 9d5fd927 ("cxgb4/cxgb4vf: add support for ndo_set_vf_vlan")
Fixes: 98f3697f ("cxgb4: add tc flower match support for tunnel VNI")
Fixes: 02d805dc ("cxgb4: use new fw interface to get the VIN and smt index")
Fixes: 3f8cfd0d ("cxgb4/cxgb4vf: Program hash region for {t4/t4vf}_change_mac()")
Fixes: d429005f ("cxgb4/cxgb4vf: Add support for SGE doorbell queue timer")
Fixes: 0e395b3c ("cxgb4: add FLOWC based QoS offload")
Signed-off-by: NRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 00e31cfc
...@@ -588,7 +588,7 @@ static void fw_caps_to_lmm(enum fw_port_type port_type, ...@@ -588,7 +588,7 @@ static void fw_caps_to_lmm(enum fw_port_type port_type,
/** /**
* lmm_to_fw_caps - translate ethtool Link Mode Mask to Firmware * lmm_to_fw_caps - translate ethtool Link Mode Mask to Firmware
* capabilities * capabilities
* @et_lmm: ethtool Link Mode Mask * @link_mode_mask: ethtool Link Mode Mask
* *
* Translate ethtool Link Mode Mask into a Firmware Port capabilities * Translate ethtool Link Mode Mask into a Firmware Port capabilities
* value. * value.
......
...@@ -449,7 +449,7 @@ static int set_rxmode(struct net_device *dev, int mtu, bool sleep_ok) ...@@ -449,7 +449,7 @@ static int set_rxmode(struct net_device *dev, int mtu, bool sleep_ok)
* or -1 * or -1
* @addr: the new MAC address value * @addr: the new MAC address value
* @persist: whether a new MAC allocation should be persistent * @persist: whether a new MAC allocation should be persistent
* @add_smt: if true also add the address to the HW SMT * @smt_idx: the destination to store the new SMT index.
* *
* Modifies an MPS filter and sets it to the new MAC address if * Modifies an MPS filter and sets it to the new MAC address if
* @tcam_idx >= 0, or adds the MAC address to a new filter if * @tcam_idx >= 0, or adds the MAC address to a new filter if
...@@ -1615,6 +1615,7 @@ static int tid_init(struct tid_info *t) ...@@ -1615,6 +1615,7 @@ static int tid_init(struct tid_info *t)
* @stid: the server TID * @stid: the server TID
* @sip: local IP address to bind server to * @sip: local IP address to bind server to
* @sport: the server's TCP port * @sport: the server's TCP port
* @vlan: the VLAN header information
* @queue: queue to direct messages from this server to * @queue: queue to direct messages from this server to
* *
* Create an IP server for the given port and address. * Create an IP server for the given port and address.
......
...@@ -194,6 +194,7 @@ int cxgb4_ptp_redirect_rx_packet(struct adapter *adapter, struct port_info *pi) ...@@ -194,6 +194,7 @@ int cxgb4_ptp_redirect_rx_packet(struct adapter *adapter, struct port_info *pi)
} }
/** /**
* cxgb4_ptp_adjfreq - Adjust frequency of PHC cycle counter
* @ptp: ptp clock structure * @ptp: ptp clock structure
* @ppb: Desired frequency change in parts per billion * @ppb: Desired frequency change in parts per billion
* *
...@@ -229,7 +230,7 @@ static int cxgb4_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) ...@@ -229,7 +230,7 @@ static int cxgb4_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb)
/** /**
* cxgb4_ptp_fineadjtime - Shift the time of the hardware clock * cxgb4_ptp_fineadjtime - Shift the time of the hardware clock
* @ptp: ptp clock structure * @adapter: board private structure
* @delta: Desired change in nanoseconds * @delta: Desired change in nanoseconds
* *
* Adjust the timer by resetting the timecounter structure. * Adjust the timer by resetting the timecounter structure.
......
...@@ -609,6 +609,7 @@ struct l2t_entry *t4_l2t_alloc_switching(struct adapter *adap, u16 vlan, ...@@ -609,6 +609,7 @@ struct l2t_entry *t4_l2t_alloc_switching(struct adapter *adap, u16 vlan,
} }
/** /**
* cxgb4_l2t_alloc_switching - Allocates an L2T entry for switch filters
* @dev: net_device pointer * @dev: net_device pointer
* @vlan: VLAN Id * @vlan: VLAN Id
* @port: Associated port * @port: Associated port
......
...@@ -598,7 +598,7 @@ struct sched_class *cxgb4_sched_class_alloc(struct net_device *dev, ...@@ -598,7 +598,7 @@ struct sched_class *cxgb4_sched_class_alloc(struct net_device *dev,
/** /**
* cxgb4_sched_class_free - free a scheduling class * cxgb4_sched_class_free - free a scheduling class
* @dev: net_device pointer * @dev: net_device pointer
* @e: scheduling class * @classid: scheduling class id to free
* *
* Frees a scheduling class if there are no users. * Frees a scheduling class if there are no users.
*/ */
......
...@@ -302,7 +302,7 @@ static void deferred_unmap_destructor(struct sk_buff *skb) ...@@ -302,7 +302,7 @@ static void deferred_unmap_destructor(struct sk_buff *skb)
/** /**
* free_tx_desc - reclaims Tx descriptors and their buffers * free_tx_desc - reclaims Tx descriptors and their buffers
* @adapter: the adapter * @adap: the adapter
* @q: the Tx queue to reclaim descriptors from * @q: the Tx queue to reclaim descriptors from
* @n: the number of descriptors to reclaim * @n: the number of descriptors to reclaim
* @unmap: whether the buffers should be unmapped for DMA * @unmap: whether the buffers should be unmapped for DMA
...@@ -722,6 +722,7 @@ static inline unsigned int flits_to_desc(unsigned int n) ...@@ -722,6 +722,7 @@ static inline unsigned int flits_to_desc(unsigned int n)
/** /**
* is_eth_imm - can an Ethernet packet be sent as immediate data? * is_eth_imm - can an Ethernet packet be sent as immediate data?
* @skb: the packet * @skb: the packet
* @chip_ver: chip version
* *
* Returns whether an Ethernet packet is small enough to fit as * Returns whether an Ethernet packet is small enough to fit as
* immediate data. Return value corresponds to headroom required. * immediate data. Return value corresponds to headroom required.
...@@ -749,6 +750,7 @@ static inline int is_eth_imm(const struct sk_buff *skb, unsigned int chip_ver) ...@@ -749,6 +750,7 @@ static inline int is_eth_imm(const struct sk_buff *skb, unsigned int chip_ver)
/** /**
* calc_tx_flits - calculate the number of flits for a packet Tx WR * calc_tx_flits - calculate the number of flits for a packet Tx WR
* @skb: the packet * @skb: the packet
* @chip_ver: chip version
* *
* Returns the number of flits needed for a Tx WR for the given Ethernet * Returns the number of flits needed for a Tx WR for the given Ethernet
* packet, including the needed WR and CPL headers. * packet, including the needed WR and CPL headers.
...@@ -804,6 +806,7 @@ static inline unsigned int calc_tx_flits(const struct sk_buff *skb, ...@@ -804,6 +806,7 @@ static inline unsigned int calc_tx_flits(const struct sk_buff *skb,
/** /**
* calc_tx_descs - calculate the number of Tx descriptors for a packet * calc_tx_descs - calculate the number of Tx descriptors for a packet
* @skb: the packet * @skb: the packet
* @chip_ver: chip version
* *
* Returns the number of Tx descriptors needed for the given Ethernet * Returns the number of Tx descriptors needed for the given Ethernet
* packet, including the needed WR and CPL headers. * packet, including the needed WR and CPL headers.
...@@ -2408,9 +2411,9 @@ static void eosw_txq_flush_pending_skbs(struct sge_eosw_txq *eosw_txq) ...@@ -2408,9 +2411,9 @@ static void eosw_txq_flush_pending_skbs(struct sge_eosw_txq *eosw_txq)
/** /**
* cxgb4_ethofld_send_flowc - Send ETHOFLD flowc request to bind eotid to tc. * cxgb4_ethofld_send_flowc - Send ETHOFLD flowc request to bind eotid to tc.
* @dev - netdevice * @dev: netdevice
* @eotid - ETHOFLD tid to bind/unbind * @eotid: ETHOFLD tid to bind/unbind
* @tc - traffic class. If set to FW_SCHED_CLS_NONE, then unbinds the @eotid * @tc: traffic class. If set to FW_SCHED_CLS_NONE, then unbinds the @eotid
* *
* Send a FLOWC work request to bind an ETHOFLD TID to a traffic class. * Send a FLOWC work request to bind an ETHOFLD TID to a traffic class.
* If @tc is set to FW_SCHED_CLS_NONE, then the @eotid is unbound from * If @tc is set to FW_SCHED_CLS_NONE, then the @eotid is unbound from
...@@ -2689,7 +2692,6 @@ static inline unsigned int calc_tx_flits_ofld(const struct sk_buff *skb) ...@@ -2689,7 +2692,6 @@ static inline unsigned int calc_tx_flits_ofld(const struct sk_buff *skb)
/** /**
* txq_stop_maperr - stop a Tx queue due to I/O MMU exhaustion * txq_stop_maperr - stop a Tx queue due to I/O MMU exhaustion
* @adap: the adapter
* @q: the queue to stop * @q: the queue to stop
* *
* Mark a Tx queue stopped due to I/O MMU exhaustion and resulting * Mark a Tx queue stopped due to I/O MMU exhaustion and resulting
...@@ -3284,7 +3286,7 @@ enum { ...@@ -3284,7 +3286,7 @@ enum {
/** /**
* t4_systim_to_hwstamp - read hardware time stamp * t4_systim_to_hwstamp - read hardware time stamp
* @adap: the adapter * @adapter: the adapter
* @skb: the packet * @skb: the packet
* *
* Read Time Stamp from MPS packet and insert in skb which * Read Time Stamp from MPS packet and insert in skb which
...@@ -3318,8 +3320,9 @@ static noinline int t4_systim_to_hwstamp(struct adapter *adapter, ...@@ -3318,8 +3320,9 @@ static noinline int t4_systim_to_hwstamp(struct adapter *adapter,
/** /**
* t4_rx_hststamp - Recv PTP Event Message * t4_rx_hststamp - Recv PTP Event Message
* @adap: the adapter * @adapter: the adapter
* @rsp: the response queue descriptor holding the RX_PKT message * @rsp: the response queue descriptor holding the RX_PKT message
* @rxq: the response queue holding the RX_PKT message
* @skb: the packet * @skb: the packet
* *
* PTP enabled and MPS packet, read HW timestamp * PTP enabled and MPS packet, read HW timestamp
...@@ -3343,7 +3346,7 @@ static int t4_rx_hststamp(struct adapter *adapter, const __be64 *rsp, ...@@ -3343,7 +3346,7 @@ static int t4_rx_hststamp(struct adapter *adapter, const __be64 *rsp,
/** /**
* t4_tx_hststamp - Loopback PTP Transmit Event Message * t4_tx_hststamp - Loopback PTP Transmit Event Message
* @adap: the adapter * @adapter: the adapter
* @skb: the packet * @skb: the packet
* @dev: the ingress net device * @dev: the ingress net device
* *
......
...@@ -103,6 +103,7 @@ static void t4_smte_free(struct smt_entry *e) ...@@ -103,6 +103,7 @@ static void t4_smte_free(struct smt_entry *e)
} }
/** /**
* cxgb4_smt_release - Release SMT entry
* @e: smt entry to release * @e: smt entry to release
* *
* Releases ref count and frees up an smt entry from SMT table * Releases ref count and frees up an smt entry from SMT table
...@@ -231,6 +232,7 @@ static struct smt_entry *t4_smt_alloc_switching(struct adapter *adap, u16 pfvf, ...@@ -231,6 +232,7 @@ static struct smt_entry *t4_smt_alloc_switching(struct adapter *adap, u16 pfvf,
} }
/** /**
* cxgb4_smt_alloc_switching - Allocates an SMT entry for switch filters.
* @dev: net_device pointer * @dev: net_device pointer
* @smac: MAC address to add to SMT * @smac: MAC address to add to SMT
* Returns pointer to the SMT entry created * Returns pointer to the SMT entry created
......
...@@ -3163,7 +3163,7 @@ int t4_get_tp_version(struct adapter *adapter, u32 *vers) ...@@ -3163,7 +3163,7 @@ int t4_get_tp_version(struct adapter *adapter, u32 *vers)
/** /**
* t4_get_exprom_version - return the Expansion ROM version (if any) * t4_get_exprom_version - return the Expansion ROM version (if any)
* @adapter: the adapter * @adap: the adapter
* @vers: where to place the version * @vers: where to place the version
* *
* Reads the Expansion ROM header from FLASH and returns the version * Reads the Expansion ROM header from FLASH and returns the version
...@@ -5310,7 +5310,7 @@ static unsigned int t4_use_ldst(struct adapter *adap) ...@@ -5310,7 +5310,7 @@ static unsigned int t4_use_ldst(struct adapter *adap)
* @cmd: TP fw ldst address space type * @cmd: TP fw ldst address space type
* @vals: where the indirect register values are stored/written * @vals: where the indirect register values are stored/written
* @nregs: how many indirect registers to read/write * @nregs: how many indirect registers to read/write
* @start_idx: index of first indirect register to read/write * @start_index: index of first indirect register to read/write
* @rw: Read (1) or Write (0) * @rw: Read (1) or Write (0)
* @sleep_ok: if true we may sleep while awaiting command completion * @sleep_ok: if true we may sleep while awaiting command completion
* *
...@@ -6115,7 +6115,7 @@ void t4_pmrx_get_stats(struct adapter *adap, u32 cnt[], u64 cycles[]) ...@@ -6115,7 +6115,7 @@ void t4_pmrx_get_stats(struct adapter *adap, u32 cnt[], u64 cycles[])
/** /**
* compute_mps_bg_map - compute the MPS Buffer Group Map for a Port * compute_mps_bg_map - compute the MPS Buffer Group Map for a Port
* @adap: the adapter * @adapter: the adapter
* @pidx: the port index * @pidx: the port index
* *
* Computes and returns a bitmap indicating which MPS buffer groups are * Computes and returns a bitmap indicating which MPS buffer groups are
...@@ -6252,7 +6252,7 @@ static unsigned int t4_get_tp_e2c_map(struct adapter *adapter, int pidx) ...@@ -6252,7 +6252,7 @@ static unsigned int t4_get_tp_e2c_map(struct adapter *adapter, int pidx)
/** /**
* t4_get_tp_ch_map - return TP ingress channels associated with a port * t4_get_tp_ch_map - return TP ingress channels associated with a port
* @adapter: the adapter * @adap: the adapter
* @pidx: the port index * @pidx: the port index
* *
* Returns a bitmap indicating which TP Ingress Channels are associated * Returns a bitmap indicating which TP Ingress Channels are associated
...@@ -6589,7 +6589,7 @@ int t4_mdio_rd(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, ...@@ -6589,7 +6589,7 @@ int t4_mdio_rd(struct adapter *adap, unsigned int mbox, unsigned int phy_addr,
* @phy_addr: the PHY address * @phy_addr: the PHY address
* @mmd: the PHY MMD to access (0 for clause 22 PHYs) * @mmd: the PHY MMD to access (0 for clause 22 PHYs)
* @reg: the register to write * @reg: the register to write
* @valp: value to write * @val: value to write
* *
* Issues a FW command through the given mailbox to write a PHY register. * Issues a FW command through the given mailbox to write a PHY register.
*/ */
...@@ -6615,7 +6615,7 @@ int t4_mdio_wr(struct adapter *adap, unsigned int mbox, unsigned int phy_addr, ...@@ -6615,7 +6615,7 @@ int t4_mdio_wr(struct adapter *adap, unsigned int mbox, unsigned int phy_addr,
/** /**
* t4_sge_decode_idma_state - decode the idma state * t4_sge_decode_idma_state - decode the idma state
* @adap: the adapter * @adapter: the adapter
* @state: the state idma is stuck in * @state: the state idma is stuck in
*/ */
void t4_sge_decode_idma_state(struct adapter *adapter, int state) void t4_sge_decode_idma_state(struct adapter *adapter, int state)
...@@ -6782,7 +6782,7 @@ void t4_sge_decode_idma_state(struct adapter *adapter, int state) ...@@ -6782,7 +6782,7 @@ void t4_sge_decode_idma_state(struct adapter *adapter, int state)
* t4_sge_ctxt_flush - flush the SGE context cache * t4_sge_ctxt_flush - flush the SGE context cache
* @adap: the adapter * @adap: the adapter
* @mbox: mailbox to use for the FW command * @mbox: mailbox to use for the FW command
* @ctx_type: Egress or Ingress * @ctxt_type: Egress or Ingress
* *
* Issues a FW command through the given mailbox to flush the * Issues a FW command through the given mailbox to flush the
* SGE context cache. * SGE context cache.
...@@ -6809,7 +6809,7 @@ int t4_sge_ctxt_flush(struct adapter *adap, unsigned int mbox, int ctxt_type) ...@@ -6809,7 +6809,7 @@ int t4_sge_ctxt_flush(struct adapter *adap, unsigned int mbox, int ctxt_type)
/** /**
* t4_read_sge_dbqtimers - read SGE Doorbell Queue Timer values * t4_read_sge_dbqtimers - read SGE Doorbell Queue Timer values
* @adap - the adapter * @adap: the adapter
* @ndbqtimers: size of the provided SGE Doorbell Queue Timer table * @ndbqtimers: size of the provided SGE Doorbell Queue Timer table
* @dbqtimers: SGE Doorbell Queue Timer table * @dbqtimers: SGE Doorbell Queue Timer table
* *
...@@ -7092,6 +7092,7 @@ static int t4_fw_halt(struct adapter *adap, unsigned int mbox, int force) ...@@ -7092,6 +7092,7 @@ static int t4_fw_halt(struct adapter *adap, unsigned int mbox, int force)
/** /**
* t4_fw_restart - restart the firmware by taking the uP out of RESET * t4_fw_restart - restart the firmware by taking the uP out of RESET
* @adap: the adapter * @adap: the adapter
* @mbox: mailbox to use for the FW command
* @reset: if we want to do a RESET to restart things * @reset: if we want to do a RESET to restart things
* *
* Restart firmware previously halted by t4_fw_halt(). On successful * Restart firmware previously halted by t4_fw_halt(). On successful
...@@ -7630,6 +7631,8 @@ int t4_cfg_pfvf(struct adapter *adap, unsigned int mbox, unsigned int pf, ...@@ -7630,6 +7631,8 @@ int t4_cfg_pfvf(struct adapter *adap, unsigned int mbox, unsigned int pf,
* @nmac: number of MAC addresses needed (1 to 5) * @nmac: number of MAC addresses needed (1 to 5)
* @mac: the MAC addresses of the VI * @mac: the MAC addresses of the VI
* @rss_size: size of RSS table slice associated with this VI * @rss_size: size of RSS table slice associated with this VI
* @vivld: the destination to store the VI Valid value.
* @vin: the destination to store the VIN value.
* *
* Allocates a virtual interface for the given physical port. If @mac is * Allocates a virtual interface for the given physical port. If @mac is
* not %NULL it contains the MAC addresses of the VI as assigned by FW. * not %NULL it contains the MAC addresses of the VI as assigned by FW.
...@@ -7848,7 +7851,7 @@ int t4_free_raw_mac_filt(struct adapter *adap, unsigned int viid, ...@@ -7848,7 +7851,7 @@ int t4_free_raw_mac_filt(struct adapter *adap, unsigned int viid,
* t4_alloc_encap_mac_filt - Adds a mac entry in mps tcam with VNI support * t4_alloc_encap_mac_filt - Adds a mac entry in mps tcam with VNI support
* @adap: the adapter * @adap: the adapter
* @viid: the VI id * @viid: the VI id
* @mac: the MAC address * @addr: the MAC address
* @mask: the mask * @mask: the mask
* @vni: the VNI id for the tunnel protocol * @vni: the VNI id for the tunnel protocol
* @vni_mask: mask for the VNI id * @vni_mask: mask for the VNI id
...@@ -7897,11 +7900,11 @@ int t4_alloc_encap_mac_filt(struct adapter *adap, unsigned int viid, ...@@ -7897,11 +7900,11 @@ int t4_alloc_encap_mac_filt(struct adapter *adap, unsigned int viid,
* t4_alloc_raw_mac_filt - Adds a mac entry in mps tcam * t4_alloc_raw_mac_filt - Adds a mac entry in mps tcam
* @adap: the adapter * @adap: the adapter
* @viid: the VI id * @viid: the VI id
* @mac: the MAC address * @addr: the MAC address
* @mask: the mask * @mask: the mask
* @idx: index at which to add this entry * @idx: index at which to add this entry
* @port_id: the port index
* @lookup_type: MAC address for inner (1) or outer (0) header * @lookup_type: MAC address for inner (1) or outer (0) header
* @port_id: the port index
* @sleep_ok: call is allowed to sleep * @sleep_ok: call is allowed to sleep
* *
* Adds the mac entry at the specified index using raw mac interface. * Adds the mac entry at the specified index using raw mac interface.
...@@ -8126,7 +8129,7 @@ int t4_free_mac_filt(struct adapter *adap, unsigned int mbox, ...@@ -8126,7 +8129,7 @@ int t4_free_mac_filt(struct adapter *adap, unsigned int mbox,
* @idx: index of existing filter for old value of MAC address, or -1 * @idx: index of existing filter for old value of MAC address, or -1
* @addr: the new MAC address value * @addr: the new MAC address value
* @persist: whether a new MAC allocation should be persistent * @persist: whether a new MAC allocation should be persistent
* @add_smt: if true also add the address to the HW SMT * @smt_idx: the destination to store the new SMT index.
* *
* Modifies an exact-match filter and sets it to the new MAC address. * Modifies an exact-match filter and sets it to the new MAC address.
* Note that in general it is not possible to modify the value of a given * Note that in general it is not possible to modify the value of a given
...@@ -8448,7 +8451,6 @@ int t4_ofld_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf, ...@@ -8448,7 +8451,6 @@ int t4_ofld_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,
/** /**
* t4_link_down_rc_str - return a string for a Link Down Reason Code * t4_link_down_rc_str - return a string for a Link Down Reason Code
* @adap: the adapter
* @link_down_rc: Link Down Reason Code * @link_down_rc: Link Down Reason Code
* *
* Returns a string representation of the Link Down Reason Code. * Returns a string representation of the Link Down Reason Code.
...@@ -8472,9 +8474,7 @@ static const char *t4_link_down_rc_str(unsigned char link_down_rc) ...@@ -8472,9 +8474,7 @@ static const char *t4_link_down_rc_str(unsigned char link_down_rc)
return reason[link_down_rc]; return reason[link_down_rc];
} }
/** /* Return the highest speed set in the port capabilities, in Mb/s. */
* Return the highest speed set in the port capabilities, in Mb/s.
*/
static unsigned int fwcap_to_speed(fw_port_cap32_t caps) static unsigned int fwcap_to_speed(fw_port_cap32_t caps)
{ {
#define TEST_SPEED_RETURN(__caps_speed, __speed) \ #define TEST_SPEED_RETURN(__caps_speed, __speed) \
...@@ -9110,7 +9110,6 @@ static int t4_get_flash_params(struct adapter *adap) ...@@ -9110,7 +9110,6 @@ static int t4_get_flash_params(struct adapter *adap)
/** /**
* t4_prep_adapter - prepare SW and HW for operation * t4_prep_adapter - prepare SW and HW for operation
* @adapter: the adapter * @adapter: the adapter
* @reset: if true perform a HW reset
* *
* Initialize adapter SW state for the various HW modules, set initial * Initialize adapter SW state for the various HW modules, set initial
* values for some adapter tunables, take PHYs out of reset, and * values for some adapter tunables, take PHYs out of reset, and
...@@ -10395,6 +10394,7 @@ int t4_sched_params(struct adapter *adapter, u8 type, u8 level, u8 mode, ...@@ -10395,6 +10394,7 @@ int t4_sched_params(struct adapter *adapter, u8 type, u8 level, u8 mode,
/** /**
* t4_i2c_rd - read I2C data from adapter * t4_i2c_rd - read I2C data from adapter
* @adap: the adapter * @adap: the adapter
* @mbox: mailbox to use for the FW command
* @port: Port number if per-port device; <0 if not * @port: Port number if per-port device; <0 if not
* @devid: per-port device ID or absolute device ID * @devid: per-port device ID or absolute device ID
* @offset: byte offset into device I2C space * @offset: byte offset into device I2C space
...@@ -10450,7 +10450,7 @@ int t4_i2c_rd(struct adapter *adap, unsigned int mbox, int port, ...@@ -10450,7 +10450,7 @@ int t4_i2c_rd(struct adapter *adap, unsigned int mbox, int port,
/** /**
* t4_set_vlan_acl - Set a VLAN id for the specified VF * t4_set_vlan_acl - Set a VLAN id for the specified VF
* @adapter: the adapter * @adap: the adapter
* @mbox: mailbox to use for the FW command * @mbox: mailbox to use for the FW command
* @vf: one of the VFs instantiated by the specified PF * @vf: one of the VFs instantiated by the specified PF
* @vlan: The vlanid to be set * @vlan: The vlanid to be set
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册