id
stringlengths
4
63
text
stringlengths
153
8.81M
bnx2x_get_num_non_def_sbs(9)
NAME bnx2x_get_num_non_def_sbs - return the number of none default SBs SYNOPSIS int bnx2x_get_num_non_def_sbs (struct pci_dev *pdev , int cnic_cnt ); ARGUMENTS pdev pci device cnic_cnt count SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bnx2x_get_leader_lock_resou...
bnx2x_get_path_func_num(9)
NAME bnx2x_get_path_func_num - get number of active functions SYNOPSIS u8 bnx2x_get_path_func_num (struct bnx2x *bp ); ARGUMENTS bp driver handle DESCRIPTION Calculates the number of active (not hidden) functions on the current path. SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h ...
bnx2x_get_rss_ind_table(9)
NAME bnx2x_get_rss_ind_table - Return the current ind_table configuration. SYNOPSIS void bnx2x_get_rss_ind_table (struct bnx2x_rss_config_obj *rss_obj , u8 *ind_table ); ARGUMENTS rss_obj -- undescribed -- ind_table buffer to fill with the current indirection table content. Should be at least T_ETH_INDI...
bnx2x_igu_ack_sb(9)
NAME bnx2x_igu_ack_sb - update IGU with current SB value SYNOPSIS void bnx2x_igu_ack_sb (struct bnx2x *bp , u8 igu_sb_id , u8 segment , u16 index , u8 op , u8 update ); ARGUMENTS bp driver handle igu_sb_id SB id segment SB segment index SB index op SB oper...
bnx2x_ilt_set_info(9)
NAME bnx2x_ilt_set_info - prepare ILT configurations. SYNOPSIS void bnx2x_ilt_set_info (struct bnx2x *bp ); ARGUMENTS bp driver handle SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9), bnx2x_send_unload_done(9), bnx2x__init_func_obj(9), bnx2x_setup_queue(9)...
bnx2x_init_credit_pool(9)
NAME bnx2x_init_credit_pool - initialize credit pool internals. SYNOPSIS void bnx2x_init_credit_pool (struct bnx2x_credit_pool_obj *p , int base , int credit ); ARGUMENTS p credit pool base Base entry in the CAM to use. credit pool size. DESCRIPTION If base is negative no CAM en...
bnx2x_init_hw_common(9)
NAME bnx2x_init_hw_common - initialize the HW at the COMMON phase. SYNOPSIS int bnx2x_init_hw_common (struct bnx2x *bp ); ARGUMENTS bp driver handle SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bnx2x_get_leader_lock_resource(9), bnx2x_trylock_leader_lock(9), bnx2x_get...
bnx2x_init_hw_common_chip(9)
NAME bnx2x_init_hw_common_chip - init HW at the COMMON_CHIP phase. SYNOPSIS int bnx2x_init_hw_common_chip (struct bnx2x *bp ); ARGUMENTS bp driver handle SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bnx2x_get_leader_lock_resource(9), bnx2x_trylock_leader_lock(9), bnx2...
bnx2x_initial_phy_init(9)
NAME bnx2x_initial_phy_init - initialize link parameters structure variables. SYNOPSIS int bnx2x_initial_phy_init (struct bnx2x *bp , int load_mode ); ARGUMENTS bp driver handle load_mode current mode SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_re...
bnx2x_int_disable_sync(9)
NAME bnx2x_int_disable_sync - disable interrupts. SYNOPSIS void bnx2x_int_disable_sync (struct bnx2x *bp , int disable_hw ); ARGUMENTS bp driver handle disable_hw true, disable HW interrupts. DESCRIPTION This function ensures that there are no ISRs or SP DPCs (sp_task) are running after it returns....
bnx2x_int_enable(9)
NAME bnx2x_int_enable - enable HW interrupts. SYNOPSIS void bnx2x_int_enable (struct bnx2x *bp ); ARGUMENTS bp driver handle SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9), bnx2x_send_unload_done(9), bnx2x__init_func_obj(9), bnx2x_setup_queue(9), bnx2x_se...
bnx2x_interrupt(9)
NAME bnx2x_interrupt - non MSI-X interrupt handler SYNOPSIS irqreturn_t bnx2x_interrupt (int irq , void *dev_instance ); ARGUMENTS irq irq number dev_instance private instance SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9), bnx2x...
bnx2x_io_error_detected(9)
NAME bnx2x_io_error_detected - called when PCI error is detected SYNOPSIS pci_ers_result_t bnx2x_io_error_detected (struct pci_dev *pdev , pci_channel_state_t state ); ARGUMENTS pdev Pointer to PCI device state The current pci connection state DESCRIPTION This function is called after a PCI bus ...
bnx2x_io_resume(9)
NAME bnx2x_io_resume - called when traffic can start flowing again SYNOPSIS void bnx2x_io_resume (struct pci_dev *pdev ); ARGUMENTS pdev Pointer to PCI device DESCRIPTION This callback is called when the error recovery driver tells us that its OK to resume normal operation. SEE ALSO Kernel file ./drive...
bnx2x_io_slot_reset(9)
NAME bnx2x_io_slot_reset - called after the PCI bus has been reset SYNOPSIS pci_ers_result_t bnx2x_io_slot_reset (struct pci_dev *pdev ); ARGUMENTS pdev Pointer to PCI device DESCRIPTION Restart the card from scratch, as if from a cold-boot. SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bn...
bnx2x_is_contextless_ramrod(9)
NAME bnx2x_is_contextless_ramrod - check if the current command ends on EQ SYNOPSIS bool bnx2x_is_contextless_ramrod (int cmd , int cmd_type ); ARGUMENTS cmd command to check cmd_type command type SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bnx2x_get_leader_lock_r...
bnx2x_link_report(9)
NAME bnx2x_link_report - report link status to upper layer. SYNOPSIS void bnx2x_link_report (struct bnx2x *bp ); ARGUMENTS bp driver handle SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9), bnx2x_send_unload_done(9), bnx2x__init_func_obj(9), bnx2x_setup_queu...
bnx2x_link_set(9)
NAME bnx2x_link_set - configure hw according to link parameters structure. SYNOPSIS void bnx2x_link_set (struct bnx2x *bp ); ARGUMENTS bp driver handle SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9), bnx2x_send_unload_done(9), bnx2x__init_func_obj(9), bnx...
bnx2x_link_sync_notify(9)
NAME bnx2x_link_sync_notify - send notification to other functions. SYNOPSIS void bnx2x_link_sync_notify (struct bnx2x *bp ); ARGUMENTS bp driver handle SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9), bnx2x_send_unload_done(9), bnx2x__init_func_obj(9), bn...
bnx2x_link_test(9)
NAME bnx2x_link_test - query link status. SYNOPSIS u8 bnx2x_link_test (struct bnx2x *bp , u8 is_serdes ); ARGUMENTS bp driver handle is_serdes bool DESCRIPTION Returns 0 if link is UP. SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9), bnx2x_send_...
bnx2x_mcast_clear_first_bin(9)
NAME bnx2x_mcast_clear_first_bin - find the first set bin and clear it SYNOPSIS int bnx2x_mcast_clear_first_bin (struct bnx2x_mcast_obj *o ); ARGUMENTS o DESCRIPTION returns the index of the found bin or -1 if none is found SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_exe...
bnx2x_mcast_get_next_bin(9)
NAME bnx2x_mcast_get_next_bin - get the next set bin (index) SYNOPSIS int bnx2x_mcast_get_next_bin (struct bnx2x_mcast_obj *o , int last ); ARGUMENTS o multicast object info last index to start looking from (including) DESCRIPTION returns the next found (set) bin or a negative value if none ...
bnx2x_mcast_handle_current_cmd(9)
NAME bnx2x_mcast_handle_current_cmd - send command if room SYNOPSIS int bnx2x_mcast_handle_current_cmd (struct bnx2x *bp , struct bnx2x_mcast_ramrod_params *p , enum bnx2x_mcast_cmd cmd , int start_cnt ); ARGUMENTS bp device handle p ramrod mcast info cmd command sta...
bnx2x_mcast_handle_restore_cmd_e1(9)
NAME bnx2x_mcast_handle_restore_cmd_e1 - restore command for 57710 SYNOPSIS int bnx2x_mcast_handle_restore_cmd_e1 (struct bnx2x *bp , struct bnx2x_mcast_obj *o , int start_idx , int *rdata_idx ); ARGUMENTS bp device handle o multicast info start_idx index in the registry to start ...
bnx2x_mcast_handle_restore_cmd_e2(9)
NAME bnx2x_mcast_handle_restore_cmd_e2 - restore configuration from the registry SYNOPSIS int bnx2x_mcast_handle_restore_cmd_e2 (struct bnx2x *bp , struct bnx2x_mcast_obj *o , int start_bin , int *rdata_idx ); ARGUMENTS bp device handle o multicast object info start_bin index in t...
bnx2x_mcast_refresh_registry_e1(9)
NAME bnx2x_mcast_refresh_registry_e1 - SYNOPSIS int bnx2x_mcast_refresh_registry_e1 (struct bnx2x *bp , struct bnx2x_mcast_obj *o ); ARGUMENTS bp device handle o multicast info DESCRIPTION Check the ramrod data first entry flag to see if it's a DELETE or ADD command and update the registr...
bnx2x_mcast_refresh_registry_e2(9)
NAME bnx2x_mcast_refresh_registry_e2 - recalculate the actual number of set bins SYNOPSIS int bnx2x_mcast_refresh_registry_e2 (struct bnx2x *bp , struct bnx2x_mcast_obj *o ); ARGUMENTS bp device handle o DESCRIPTION Recalculate the actual number of set bins in the registry using Brian Kernighan's al...
bnx2x_mcast_set_rdata_hdr_e1(9)
NAME bnx2x_mcast_set_rdata_hdr_e1 - set header values in mac_configuration_cmd SYNOPSIS void bnx2x_mcast_set_rdata_hdr_e1 (struct bnx2x *bp , struct bnx2x_mcast_ramrod_params *p , u8 len ); ARGUMENTS bp device handle p ramrod parameters len number of rules to handle SEE ALS...
bnx2x_mcast_set_rdata_hdr_e2(9)
NAME bnx2x_mcast_set_rdata_hdr_e2 - sets a header values SYNOPSIS void bnx2x_mcast_set_rdata_hdr_e2 (struct bnx2x *bp , struct bnx2x_mcast_ramrod_params *p , u8 len ); ARGUMENTS bp device handle p ramrod parameters len number of rules to handle SEE ALSO Kernel file ...
bnx2x_mcp_wait_one(9)
NAME bnx2x_mcp_wait_one - wait for MCP_ONE_TIMEOUT SYNOPSIS void bnx2x_mcp_wait_one (struct bnx2x *bp ); ARGUMENTS bp driver handle SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bnx2x_get_leader_lock_resource(9), bnx2x_trylock_leader_lock(9), bnx2x_get_common_flags(9),...
bnx2x_move_fp(9)
NAME bnx2x_move_fp - move content of the fastpath structure. SYNOPSIS void bnx2x_move_fp (struct bnx2x *bp , int from , int to ); ARGUMENTS bp driver handle from source FP index to destination FP index DESCRIPTION Makes sure the contents of the bp->fp[to].napi is kept inta...
bnx2x_msix_sp_int(9)
NAME bnx2x_msix_sp_int - MSI-X slowpath interrupt handler SYNOPSIS irqreturn_t bnx2x_msix_sp_int (int irq , void *dev_instance ); ARGUMENTS irq irq number dev_instance private instance SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9...
bnx2x_nic_init_cnic(9)
NAME bnx2x_nic_init_cnic - init driver internals for cnic. SYNOPSIS void bnx2x_nic_init_cnic (struct bnx2x *bp ); ARGUMENTS bp driver handle DESCRIPTION Initializes: - rings - status blocks - etc. SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9), bnx2x_sen...
bnx2x_nvram_read(9)
NAME bnx2x_nvram_read - reads data from nvram [might sleep] SYNOPSIS int bnx2x_nvram_read (struct bnx2x *bp , u32 offset , u8 *ret_buf , int buf_size ); ARGUMENTS bp driver handle offset byte offset in nvram ret_buf pointer to buffer where data is to be stored buf_size Len...
bnx2x_optimize_vlan_mac(9)
NAME bnx2x_optimize_vlan_mac - optimize ADD and DEL commands. SYNOPSIS int bnx2x_optimize_vlan_mac (struct bnx2x *bp , union bnx2x_qable_obj *qo , struct bnx2x_exeq_elem *elem ); ARGUMENTS bp device handle qo bnx2x_qable_obj elem bnx2x_exeq_elem SEE ALSO Kernel file ...
bnx2x_pf_q_prep_init(9)
NAME bnx2x_pf_q_prep_init - prepare INIT transition parameters SYNOPSIS void bnx2x_pf_q_prep_init (struct bnx2x *bp , struct bnx2x_fastpath *fp , struct bnx2x_queue_init_params *init_params ); ARGUMENTS bp driver handle fp pointer to fastpath init_params pointer to parameters structu...
bnx2x_q_init(9)
NAME bnx2x_q_init - init HW/FW queue SYNOPSIS int bnx2x_q_init (struct bnx2x *bp , struct bnx2x_queue_state_params *params ); ARGUMENTS bp device handle params DESCRIPTION HW/FW initial Queue configuration: - HC: Rx and Tx - CDU context validation SEE ALSO Kernel file ./drivers/net/etherne...
bnx2x_q_send_activate(9)
NAME bnx2x_q_send_activate - send ACTIVATE command SYNOPSIS int bnx2x_q_send_activate (struct bnx2x *bp , struct bnx2x_queue_state_params *params ); ARGUMENTS bp device handle params DESCRIPTION implemented using the UPDATE command. SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2...
bnx2x_q_send_deactivate(9)
NAME bnx2x_q_send_deactivate - send DEACTIVATE command SYNOPSIS int bnx2x_q_send_deactivate (struct bnx2x *bp , struct bnx2x_queue_state_params *params ); ARGUMENTS bp device handle params DESCRIPTION implemented using the UPDATE command. SEE ALSO Kernel file ./drivers/net/ethernet/broadco...
bnx2x_queue_chk_transition(9)
NAME bnx2x_queue_chk_transition - check state machine of a regular Queue SYNOPSIS int bnx2x_queue_chk_transition (struct bnx2x *bp , struct bnx2x_queue_sp_obj *o , struct bnx2x_queue_state_params *params ); ARGUMENTS bp device handle o queue info params queue state DESCRIPTION...
bnx2x_queue_comp_cmd(9)
NAME bnx2x_queue_comp_cmd - complete the state change command. SYNOPSIS int bnx2x_queue_comp_cmd (struct bnx2x *bp , struct bnx2x_queue_sp_obj *o , enum bnx2x_queue_cmd cmd ); ARGUMENTS bp device handle o queue info cmd command to exec DESCRIPTION Checks that the arrived co...
bnx2x_queue_state_change(9)
NAME bnx2x_queue_state_change - perform Queue state change transition SYNOPSIS int bnx2x_queue_state_change (struct bnx2x *bp , struct bnx2x_queue_state_params *params ); ARGUMENTS bp device handle params parameters to perform the transition DESCRIPTION returns 0 in case of successfully com...
bnx2x_read_pages_regs(9)
NAME bnx2x_read_pages_regs - read "paged" registers SYNOPSIS void bnx2x_read_pages_regs (struct bnx2x *bp , u32 *p , u32 preset ); ARGUMENTS bp device handle p output buffer preset the preset value DESCRIPTION Reads "paged" memories: memories that may only be read by fir...
bnx2x_release_hw_lock(9)
NAME bnx2x_release_hw_lock - release HW lock. SYNOPSIS int bnx2x_release_hw_lock (struct bnx2x *bp , u32 resource ); ARGUMENTS bp driver handle resource resource bit which was locked SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9), bnx2x_send_un...
bnx2x_release_leader_lock(9)
NAME bnx2x_release_leader_lock - release recovery leader lock SYNOPSIS int bnx2x_release_leader_lock (struct bnx2x *bp ); ARGUMENTS bp driver handle SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9), bnx2x_send_unload_done(9), bnx2x__init_func_obj(9), bnx2x_...
bnx2x_reset_mcp_prep(9)
NAME bnx2x_reset_mcp_prep - prepare for MCP reset. SYNOPSIS void bnx2x_reset_mcp_prep (struct bnx2x *bp , u32 *magic_val ); ARGUMENTS bp driver handle magic_val old value of 'magic' bit. DESCRIPTION Takes care of CLP configurations. SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x...
bnx2x_save_statistics(9)
NAME bnx2x_save_statistics - save statistics when unloading. SYNOPSIS void bnx2x_save_statistics (struct bnx2x *bp ); ARGUMENTS bp driver handle SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.h April 2026 ...
bnx2x_send_unload_done(9)
NAME bnx2x_send_unload_done - send UNLOAD_DONE command to the MCP. SYNOPSIS void bnx2x_send_unload_done (struct bnx2x *bp , bool keep_link ); ARGUMENTS bp driver handle keep_link true iff link should be kept up SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bnx2x_...
bnx2x_send_unload_req(9)
NAME bnx2x_send_unload_req - request unload mode from the MCP. SYNOPSIS u32 bnx2x_send_unload_req (struct bnx2x *bp , int unload_mode ); ARGUMENTS bp driver handle unload_mode requested function's unload mode DESCRIPTION Return unload mode returned by the MCP: COMMON, PORT or FUNC. SEE ALSO Kernel ...
bnx2x_set_channels(9)
NAME bnx2x_set_channels - sets the number of RSS queues. SYNOPSIS int bnx2x_set_channels (struct net_device *dev , struct ethtool_channels *channels ); ARGUMENTS dev net device channels includes the number of queues requested SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool...
bnx2x_set_ctx_validation(9)
NAME bnx2x_set_ctx_validation - set CDU context validation values SYNOPSIS void bnx2x_set_ctx_validation (struct bnx2x *bp , struct eth_context *cxt , u32 cid ); ARGUMENTS bp driver handle cxt context of the connection on the host memory cid SW CID of the connection to be conf...
bnx2x_set_eth_mac(9)
NAME bnx2x_set_eth_mac - configure eth MAC address in the HW SYNOPSIS int bnx2x_set_eth_mac (struct bnx2x *bp , bool set ); ARGUMENTS bp driver handle set set or clear DESCRIPTION Configures according to the value in netdev->dev_addr. SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/b...
bnx2x_set_fw_mac_addr(9)
NAME bnx2x_set_fw_mac_addr - fill in a MAC address in FW format SYNOPSIS void bnx2x_set_fw_mac_addr (__le16 *fw_hi , __le16 *fw_mid , __le16 *fw_lo , u8 *mac ); ARGUMENTS fw_hi pointer to upper part fw_mid pointer to middle part fw_lo pointer to lower part mac pointer ...
bnx2x_set_gro_params(9)
NAME bnx2x_set_gro_params - compute GRO values SYNOPSIS void bnx2x_set_gro_params (struct sk_buff *skb , u16 parsing_flags , u16 len_on_bd , unsigned int pkt_len , u16 num_of_coalesced_segs ); ARGUMENTS skb packet skb parsing_flags parsing flags from the START CQE len_on_bd ...
bnx2x_set_int_mode(9)
NAME bnx2x_set_int_mode - configure interrupt mode SYNOPSIS int bnx2x_set_int_mode (struct bnx2x *bp ); ARGUMENTS bp driver handle DESCRIPTION In case of MSI-X it will also try to enable MSI-X. SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bnx2x_get_leader_lock_resource(9...
bnx2x_set_iscsi_eth_mac_addr(9)
NAME bnx2x_set_iscsi_eth_mac_addr - set iSCSI MAC(s). SYNOPSIS int bnx2x_set_iscsi_eth_mac_addr (struct bnx2x *bp ); ARGUMENTS bp driver handle DESCRIPTION This function will wait until the ramrod completion returns. Return 0 if success, -ENODEV if ramrod doesn't return. SEE ALSO Kernel file ./drivers/n...
bnx2x_set_mac_one(9)
NAME bnx2x_set_mac_one - configure a single MAC address SYNOPSIS int bnx2x_set_mac_one (struct bnx2x *bp , const u8 *mac , struct bnx2x_vlan_mac_obj *obj , bool set , int mac_type , unsigned long *ramrod_flags ); ARGUMENTS bp driver handle mac MAC to configure obj MAC object h...
bnx2x_set_num_queues(9)
NAME bnx2x_set_num_queues - set number of queues according to mode. SYNOPSIS void bnx2x_set_num_queues (struct bnx2x *bp ); ARGUMENTS bp driver handle SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9), bnx2x_send_unload_done(9), bnx2x__init_func_obj(9), bnx2...
bnx2x_set_one_mac_e1x(9)
NAME bnx2x_set_one_mac_e1x - fill a single MAC rule ramrod data SYNOPSIS void bnx2x_set_one_mac_e1x (struct bnx2x *bp , struct bnx2x_vlan_mac_obj *o , struct bnx2x_exeq_elem *elem , int rule_idx , int cam_offset ); ARGUMENTS bp device handle o bnx2x_vlan_mac_obj elem bnx2x_ex...
bnx2x_set_one_vlan_mac_e1h(9)
NAME bnx2x_set_one_vlan_mac_e1h - SYNOPSIS void bnx2x_set_one_vlan_mac_e1h (struct bnx2x *bp , struct bnx2x_vlan_mac_obj *o , struct bnx2x_exeq_elem *elem , int rule_idx , int cam_offset ); ARGUMENTS bp device handle o bnx2x_vlan_mac_obj elem bnx2x_exeq_elem rule_idx ...
bnx2x_set_os_driver_state(9)
NAME bnx2x_set_os_driver_state - write driver state for management FW usage SYNOPSIS void bnx2x_set_os_driver_state (struct bnx2x *bp , u32 state ); ARGUMENTS bp driver handle state OS_DRIVER_STATE_* value reflecting current driver state SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/b...
bnx2x_set_pbd_csum(9)
NAME bnx2x_set_pbd_csum - update PBD with checksum and return header length SYNOPSIS u8 bnx2x_set_pbd_csum (struct bnx2x *bp , struct sk_buff *skb , struct eth_tx_parse_bd_e1x *pbd , u32 xmit_type ); ARGUMENTS bp driver handle skb packet skb pbd parse BD to be updated ...
bnx2x_set_pbd_csum_e2(9)
NAME bnx2x_set_pbd_csum_e2 - update PBD with checksum and return header length SYNOPSIS u8 bnx2x_set_pbd_csum_e2 (struct bnx2x *bp , struct sk_buff *skb , u32 *parsing_data , u32 xmit_type ); ARGUMENTS bp driver handle skb packet skb parsing_data data to be updated ...
bnx2x_set_pbd_csum_enc(9)
NAME bnx2x_set_pbd_csum_enc - update PBD with checksum and return header length SYNOPSIS u8 bnx2x_set_pbd_csum_enc (struct bnx2x *bp , struct sk_buff *skb , u32 *parsing_data , u32 xmit_type ); ARGUMENTS bp driver handle skb packet skb parsing_data data to be update...
bnx2x_set_pbd_gso(9)
NAME bnx2x_set_pbd_gso - update PBD in GSO case. SYNOPSIS void bnx2x_set_pbd_gso (struct sk_buff *skb , struct eth_tx_parse_bd_e1x *pbd , u32 xmit_type ); ARGUMENTS skb packet skb pbd parse BD xmit_type xmit flags SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cm...
bnx2x_set_power_state(9)
NAME bnx2x_set_power_state - set power state to the requested value. SYNOPSIS int bnx2x_set_power_state (struct bnx2x *bp , pci_power_t state ); ARGUMENTS bp driver handle state required state D0 or D3hot DESCRIPTION Currently only D0 and D3hot are supported. SEE ALSO Kernel file ./drivers/...
bnx2x_set_real_num_queues(9)
NAME bnx2x_set_real_num_queues - configure netdev->real_num_[tx,rx]_queues SYNOPSIS int bnx2x_set_real_num_queues (struct bnx2x *bp , int include_cnic ); ARGUMENTS bp Driver handle include_cnic handle cnic case DESCRIPTION We currently support for at most 16 Tx queues for each...
bnx2x_set_uc_list(9)
NAME bnx2x_set_uc_list - configure a new unicast MACs list. SYNOPSIS int bnx2x_set_uc_list (struct bnx2x *bp ); ARGUMENTS bp driver handle DESCRIPTION We will use zero (0) as a MAC type for these MACs. SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bnx2x_get_leader_lock_resource...
bnx2x_setup_cnic_info(9)
NAME bnx2x_setup_cnic_info - provides cnic with updated info SYNOPSIS void bnx2x_setup_cnic_info (struct bnx2x *bp ); ARGUMENTS bp driver handle SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9), bnx2x_send_unload_done(9), bnx2x__init_func_obj(9), bnx2x_setu...
bnx2x_setup_cnic_irq_info(9)
NAME bnx2x_setup_cnic_irq_info - provides cnic with IRQ information SYNOPSIS void bnx2x_setup_cnic_irq_info (struct bnx2x *bp ); ARGUMENTS bp driver handle SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9), bnx2x_send_unload_done(9), bnx2x__init_func_obj(9),...
bnx2x_setup_leading(9)
NAME bnx2x_setup_leading - bring up a leading eth queue. SYNOPSIS int bnx2x_setup_leading (struct bnx2x *bp ); ARGUMENTS bp driver handle SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9), bnx2x_send_unload_done(9), bnx2x__init_func_obj(9), bnx2x_setup...
bnx2x_setup_queue(9)
NAME bnx2x_setup_queue - setup queue SYNOPSIS int bnx2x_setup_queue (struct bnx2x *bp , struct bnx2x_fastpath *fp , bool leading ); ARGUMENTS bp driver handle fp pointer to fastpath leading is leading DESCRIPTION This function performs 2 steps in a Queue state machine actually: ...
bnx2x_setup_rss(9)
NAME bnx2x_setup_rss - configure RSS SYNOPSIS int bnx2x_setup_rss (struct bnx2x *bp , struct bnx2x_config_rss_params *p ); ARGUMENTS bp device handle p rss configuration DESCRIPTION sends on UPDATE ramrod for that matter. SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x...
bnx2x_setup_tc(9)
NAME bnx2x_setup_tc - routine to configure net_device for multi tc SYNOPSIS int bnx2x_setup_tc (struct net_device *dev , u8 num_tc ); ARGUMENTS dev net device to configure num_tc number of traffic classes to enable DESCRIPTION callback connected to the ndo_setup_tc function pointer SEE ALSO Ker...
bnx2x_shrink_eth_fp(9)
NAME bnx2x_shrink_eth_fp - guarantees fastpath structures stay intact SYNOPSIS void bnx2x_shrink_eth_fp (struct bnx2x *bp , int delta ); ARGUMENTS bp driver handle delta number of eth queues which were not allocated SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c ...
bnx2x_sp_event(9)
NAME bnx2x_sp_event - handle ramrods completion. SYNOPSIS void bnx2x_sp_event (struct bnx2x_fastpath *fp , union eth_rx_cqe *rr_cqe ); ARGUMENTS fp fastpath handle for the event rr_cqe eth_rx_cqe SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9),...
bnx2x_sp_post(9)
NAME bnx2x_sp_post - place a single command on an SP ring SYNOPSIS int bnx2x_sp_post (struct bnx2x *bp , int command , int cid , u32 data_hi , u32 data_lo , int cmd_type ); ARGUMENTS bp driver handle command command to place (e.g. SETUP, FILTER_RULES, etc.) cid SW CID the command ...
bnx2x_state_wait(9)
NAME bnx2x_state_wait - wait until the given bit(state) is cleared SYNOPSIS int bnx2x_state_wait (struct bnx2x *bp , int state , unsigned long *pstate ); ARGUMENTS bp device handle state state which is to be cleared pstate state buffer SEE ALSO Kernel file ./drivers/net/ethern...
bnx2x_trylock_leader_lock(9)
NAME bnx2x_trylock_leader_lock - try to acquire a leader lock. SYNOPSIS bool bnx2x_trylock_leader_lock (struct bnx2x *bp ); ARGUMENTS bp driver handle DESCRIPTION Tries to acquire a leader lock for current engine. SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bnx2x_get_leader_l...
bnx2x_tx_disable(9)
NAME bnx2x_tx_disable - disables tx from stack point of view SYNOPSIS void bnx2x_tx_disable (struct bnx2x *bp ); ARGUMENTS bp driver handle SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9), bnx2x_send_unload_done(9), bnx2x__init_func_obj(9), bnx2x_setup_que...
bnx2x_tx_timeout(9)
NAME bnx2x_tx_timeout - tx timeout netdev callback SYNOPSIS void bnx2x_tx_timeout (struct net_device *dev , unsigned int txqueue ); ARGUMENTS dev net device txqueue -- undescribed -- SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9), bnx2x_send_un...
bnx2x_update_drv_flags(9)
NAME bnx2x_update_drv_flags - update flags in shmem SYNOPSIS void bnx2x_update_drv_flags (struct bnx2x *bp , u32 flags , u32 set ); ARGUMENTS bp driver handle flags flags to update set set or clear SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_...
bnx2x_update_max_mf_config(9)
NAME bnx2x_update_max_mf_config - update MAX part of MF configuration in HW. SYNOPSIS void bnx2x_update_max_mf_config (struct bnx2x *bp , u32 value ); ARGUMENTS bp driver handle value new value SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_req(9), ...
bnx2x_validate_vlan_mac_add(9)
NAME bnx2x_validate_vlan_mac_add - check if an ADD command can be executed SYNOPSIS int bnx2x_validate_vlan_mac_add (struct bnx2x *bp , union bnx2x_qable_obj *qo , struct bnx2x_exeq_elem *elem ); ARGUMENTS bp device handle qo bnx2x_qable_obj elem bnx2x_exeq_elem DESCRIPTION C...
bnx2x_validate_vlan_mac_del(9)
NAME bnx2x_validate_vlan_mac_del - check if the DEL command can be executed SYNOPSIS int bnx2x_validate_vlan_mac_del (struct bnx2x *bp , union bnx2x_qable_obj *qo , struct bnx2x_exeq_elem *elem ); ARGUMENTS bp device handle qo quable object to check elem element that needs to ...
bnx2x_validate_vlan_mac_move(9)
NAME bnx2x_validate_vlan_mac_move - check if the MOVE command can be executed SYNOPSIS int bnx2x_validate_vlan_mac_move (struct bnx2x *bp , union bnx2x_qable_obj *qo , struct bnx2x_exeq_elem *elem ); ARGUMENTS bp device handle qo quable object to check (source) elem element th...
bnx2x_vlan_mac_del_all(9)
NAME bnx2x_vlan_mac_del_all - delete elements with given vlan_mac_flags spec SYNOPSIS int bnx2x_vlan_mac_del_all (struct bnx2x *bp , struct bnx2x_vlan_mac_obj *o , unsigned long *vlan_mac_flags , unsigned long *ramrod_flags ); ARGUMENTS bp device handle o vlan object info vlan_mac_f...
bnx2x_vlan_mac_get_registry_elem(9)
NAME bnx2x_vlan_mac_get_registry_elem - prepare a registry element SYNOPSIS int bnx2x_vlan_mac_get_registry_elem (struct bnx2x *bp , struct bnx2x_vlan_mac_obj *o , struct bnx2x_exeq_elem *elem , bool restore , struct bnx2x_vlan_mac_registry_elem **re ); ARGUMENTS bp device handle o vlan obj...
bnx2x_vlan_mac_h_read_lock(9)
NAME bnx2x_vlan_mac_h_read_lock - lock the vlan mac head list reader lock SYNOPSIS int bnx2x_vlan_mac_h_read_lock (struct bnx2x *bp , struct bnx2x_vlan_mac_obj *o ); ARGUMENTS bp device handle o vlan_mac object CONTEXT May sleep. Claims and releases execution queue lock during its run. SE...
bnx2x_vlan_mac_h_read_unlock(9)
NAME bnx2x_vlan_mac_h_read_unlock - unlock the vlan mac head list reader lock SYNOPSIS void bnx2x_vlan_mac_h_read_unlock (struct bnx2x *bp , struct bnx2x_vlan_mac_obj *o ); ARGUMENTS bp device handle o vlan_mac object CONTEXT Notice if a pending execution exists, it would be performed if t...
bnx2x_vlan_mac_restore(9)
NAME bnx2x_vlan_mac_restore - reconfigure next MAC/VLAN/VLAN-MAC element SYNOPSIS int bnx2x_vlan_mac_restore (struct bnx2x *bp , struct bnx2x_vlan_mac_ramrod_params *p , struct bnx2x_vlan_mac_registry_elem **ppos ); ARGUMENTS bp device handle p command parameters ppos pointer...
bnx2x_vlan_mac_set_cmd_hdr_e2(9)
NAME bnx2x_vlan_mac_set_cmd_hdr_e2 - set a header in a single classify ramrod SYNOPSIS void bnx2x_vlan_mac_set_cmd_hdr_e2 (struct bnx2x *bp , struct bnx2x_vlan_mac_obj *o , bool add , int opcode , struct eth_classify_cmd_header *hdr ); ARGUMENTS bp device handle o queue for which we want to...
bnx2x_vlan_mac_set_rdata_hdr_e1x(9)
NAME bnx2x_vlan_mac_set_rdata_hdr_e1x - set a header in a single classify ramrod SYNOPSIS void bnx2x_vlan_mac_set_rdata_hdr_e1x (struct bnx2x *bp , struct bnx2x_vlan_mac_obj *o , int type , int cam_offset , struct mac_configuration_hdr *hdr ); ARGUMENTS bp device handle o queue type...
bnx2x_vlan_mac_set_rdata_hdr_e2(9)
NAME bnx2x_vlan_mac_set_rdata_hdr_e2 - set the classify ramrod data header SYNOPSIS void bnx2x_vlan_mac_set_rdata_hdr_e2 (u32 cid , int type , struct eth_classify_header *hdr , int rule_cnt ); ARGUMENTS cid connection id type BNX2X_FILTER_XXX_PENDING hdr pointer to header to set...
bnx2x_wait_sp_comp(9)
NAME bnx2x_wait_sp_comp - wait for the outstanding SP commands. SYNOPSIS bool bnx2x_wait_sp_comp (struct bnx2x *bp , unsigned long mask ); ARGUMENTS bp driver handle mask bits that need to be cleared SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h bnx2x_send_unload_r...
bnx2x_wait_vlan_mac(9)
NAME bnx2x_wait_vlan_mac - passively wait for 5 seconds until all work completes. SYNOPSIS int bnx2x_wait_vlan_mac (struct bnx2x *bp , struct bnx2x_vlan_mac_obj *o ); ARGUMENTS bp device handle o bnx2x_vlan_mac_obj SEE ALSO Kernel file ./drivers/net/ethernet/broadcom/bnx2x/bnx2x_s...
bnxt_io_error_detected(9)
NAME bnxt_io_error_detected - called when PCI error is detected SYNOPSIS pci_ers_result_t bnxt_io_error_detected (struct pci_dev *pdev , pci_channel_state_t state ); ARGUMENTS pdev Pointer to PCI device state The current pci connection state DESCRIPTION This function is called after a PCI bus er...
bnxt_io_resume(9)
NAME bnxt_io_resume - called when traffic can start flowing again. SYNOPSIS void bnxt_io_resume (struct pci_dev *pdev ); ARGUMENTS pdev Pointer to PCI device DESCRIPTION This callback is called when the error recovery driver tells us that its OK to resume normal operation. SEE ALSO Kernel file ./drivers/net/...
bnxt_io_slot_reset(9)
NAME bnxt_io_slot_reset - called after the pci bus has been reset. SYNOPSIS pci_ers_result_t bnxt_io_slot_reset (struct pci_dev *pdev ); ARGUMENTS pdev Pointer to PCI device DESCRIPTION Restart the card from scratch, as if from a cold-boot. At this point, the card has experienced a hard reset, followed by fi...
bnxt_qplib_map_rc(9)
NAME bnxt_qplib_map_rc - map return type based on opcode SYNOPSIS int bnxt_qplib_map_rc (u8 opcode ); ARGUMENTS opcode roce slow path opcode DESCRIPTION case #1 Firmware initiated error recovery is a safe state machine and driver can consider all the underlying rdma resources are free. In this state, it is saf...