Lines Matching refs:qlcnic_adapter
594 struct qlcnic_adapter *adapter;
628 struct qlcnic_adapter *adapter;
1087 struct qlcnic_adapter *adapter;
1099 struct qlcnic_adapter { struct
1536 int qlcnic_fw_cmd_get_minidump_temp(struct qlcnic_adapter *adapter);
1537 int qlcnic_fw_cmd_set_port(struct qlcnic_adapter *adapter, u32 config);
1538 int qlcnic_pci_mem_write_2M(struct qlcnic_adapter *, u64 off, u64 data);
1539 int qlcnic_pci_mem_read_2M(struct qlcnic_adapter *, u64 off, u64 *data);
1550 int qlcnic_pcie_sem_lock(struct qlcnic_adapter *, int, u32);
1551 void qlcnic_pcie_sem_unlock(struct qlcnic_adapter *, int);
1575 void qlcnic_prune_lb_filters(struct qlcnic_adapter *adapter);
1576 void qlcnic_delete_lb_filters(struct qlcnic_adapter *adapter);
1577 int qlcnic_dump_fw(struct qlcnic_adapter *);
1578 int qlcnic_enable_fw_dump_state(struct qlcnic_adapter *);
1579 bool qlcnic_check_fw_dump_state(struct qlcnic_adapter *);
1582 void qlcnic_schedule_work(struct qlcnic_adapter *, work_func_t, int);
1583 int qlcnic_load_firmware(struct qlcnic_adapter *adapter);
1584 int qlcnic_need_fw_reset(struct qlcnic_adapter *adapter);
1585 void qlcnic_request_firmware(struct qlcnic_adapter *adapter);
1586 void qlcnic_release_firmware(struct qlcnic_adapter *adapter);
1587 int qlcnic_pinit_from_rom(struct qlcnic_adapter *adapter);
1588 int qlcnic_setup_idc_param(struct qlcnic_adapter *adapter);
1589 int qlcnic_check_flash_fw_ver(struct qlcnic_adapter *adapter);
1591 int qlcnic_rom_fast_read(struct qlcnic_adapter *adapter, u32 addr, u32 *valp);
1592 int qlcnic_rom_fast_read_words(struct qlcnic_adapter *adapter, int addr,
1594 int qlcnic_alloc_sw_resources(struct qlcnic_adapter *adapter);
1595 void qlcnic_free_sw_resources(struct qlcnic_adapter *adapter);
1599 int qlcnic_alloc_hw_resources(struct qlcnic_adapter *adapter);
1600 void qlcnic_free_hw_resources(struct qlcnic_adapter *adapter);
1602 int qlcnic_fw_create_ctx(struct qlcnic_adapter *adapter);
1603 void qlcnic_fw_destroy_ctx(struct qlcnic_adapter *adapter);
1605 void qlcnic_reset_rx_buffers_list(struct qlcnic_adapter *adapter);
1606 void qlcnic_release_rx_buffers(struct qlcnic_adapter *adapter);
1607 void qlcnic_release_tx_buffers(struct qlcnic_adapter *,
1610 int qlcnic_check_fw_status(struct qlcnic_adapter *adapter);
1611 void qlcnic_post_rx_buffers(struct qlcnic_adapter *adapter,
1614 void qlcnic_flush_mcast_mac(struct qlcnic_adapter *);
1615 int qlcnic_nic_add_mac(struct qlcnic_adapter *, const u8 *, u16,
1617 int qlcnic_nic_del_mac(struct qlcnic_adapter *, const u8 *);
1618 void qlcnic_82xx_free_mac_list(struct qlcnic_adapter *adapter);
1619 int qlcnic_82xx_read_phys_port_id(struct qlcnic_adapter *);
1621 int qlcnic_fw_cmd_set_mtu(struct qlcnic_adapter *adapter, int mtu);
1622 int qlcnic_fw_cmd_set_drv_version(struct qlcnic_adapter *, u32);
1627 int qlcnic_config_bridged_mode(struct qlcnic_adapter *adapter, u32 enable);
1632 int qlcnic_do_lb_test(struct qlcnic_adapter *, u8);
1635 int qlcnic_reset_context(struct qlcnic_adapter *);
1639 void qlcnic_set_tx_ring_count(struct qlcnic_adapter *, u8);
1640 void qlcnic_set_sds_ring_count(struct qlcnic_adapter *, u8);
1641 int qlcnic_setup_rings(struct qlcnic_adapter *);
1642 int qlcnic_validate_rings(struct qlcnic_adapter *, __u32, int);
1643 void qlcnic_alloc_lb_filters_mem(struct qlcnic_adapter *adapter);
1644 int qlcnic_enable_msix(struct qlcnic_adapter *, u32);
1645 void qlcnic_set_drv_version(struct qlcnic_adapter *);
1648 int qlcnic_config_switch_port(struct qlcnic_adapter *,
1651 int qlcnic_get_eswitch_port_config(struct qlcnic_adapter *,
1653 int qlcnic_config_port_mirroring(struct qlcnic_adapter *, u8, u8, u8);
1654 int qlcnic_get_port_stats(struct qlcnic_adapter *, const u8, const u8,
1656 int qlcnic_get_eswitch_stats(struct qlcnic_adapter *, const u8, u8,
1658 int qlcnic_clear_esw_stats(struct qlcnic_adapter *adapter, u8, u8, u8);
1659 int qlcnic_get_mac_stats(struct qlcnic_adapter *, struct qlcnic_mac_statistics *);
1665 void qlcnic_advert_link_change(struct qlcnic_adapter *, int);
1666 void qlcnic_free_tx_rings(struct qlcnic_adapter *);
1667 int qlcnic_alloc_tx_rings(struct qlcnic_adapter *, struct net_device *);
1668 void qlcnic_dump_mbx(struct qlcnic_adapter *, struct qlcnic_cmd_args *);
1670 void qlcnic_create_sysfs_entries(struct qlcnic_adapter *adapter);
1671 void qlcnic_remove_sysfs_entries(struct qlcnic_adapter *adapter);
1672 void qlcnic_82xx_add_sysfs(struct qlcnic_adapter *adapter);
1673 void qlcnic_82xx_remove_sysfs(struct qlcnic_adapter *adapter);
1675 int qlcnicvf_config_bridged_mode(struct qlcnic_adapter *, u32);
1676 int qlcnicvf_config_led(struct qlcnic_adapter *, u32, u32);
1677 void qlcnic_set_vlan_config(struct qlcnic_adapter *,
1679 void qlcnic_set_eswitch_port_features(struct qlcnic_adapter *,
1681 int qlcnic_setup_tss_rss_intr(struct qlcnic_adapter *);
1682 void qlcnic_down(struct qlcnic_adapter *, struct net_device *);
1683 int qlcnic_up(struct qlcnic_adapter *, struct net_device *);
1684 void __qlcnic_down(struct qlcnic_adapter *, struct net_device *);
1685 void qlcnic_detach(struct qlcnic_adapter *);
1686 void qlcnic_teardown_intr(struct qlcnic_adapter *);
1687 int qlcnic_attach(struct qlcnic_adapter *);
1688 int __qlcnic_up(struct qlcnic_adapter *, struct net_device *);
1691 int qlcnic_check_temp(struct qlcnic_adapter *);
1692 int qlcnic_init_pci_info(struct qlcnic_adapter *);
1693 int qlcnic_set_default_offload_settings(struct qlcnic_adapter *);
1694 int qlcnic_reset_npar_config(struct qlcnic_adapter *);
1695 int qlcnic_set_eswitch_port_config(struct qlcnic_adapter *);
1696 int qlcnic_set_vxlan_port(struct qlcnic_adapter *adapter, u16 port);
1697 int qlcnic_set_vxlan_parsing(struct qlcnic_adapter *adapter, u16 port);
1698 int qlcnic_83xx_configure_opmode(struct qlcnic_adapter *adapter);
1699 int qlcnic_read_mac_addr(struct qlcnic_adapter *);
1700 int qlcnic_setup_netdev(struct qlcnic_adapter *, struct net_device *);
1701 void qlcnic_set_netdev_features(struct qlcnic_adapter *,
1704 int qlcnic_is_valid_nic_func(struct qlcnic_adapter *, u8);
1705 int qlcnic_get_pci_func_type(struct qlcnic_adapter *, u16, u16 *, u16 *,
1731 int (*config_bridged_mode) (struct qlcnic_adapter *, u32);
1732 int (*config_led) (struct qlcnic_adapter *, u32, u32);
1733 int (*start_firmware) (struct qlcnic_adapter *);
1734 int (*init_driver) (struct qlcnic_adapter *);
1735 void (*request_reset) (struct qlcnic_adapter *, u32);
1736 void (*cancel_idc_work) (struct qlcnic_adapter *);
1737 int (*napi_add)(struct qlcnic_adapter *, struct net_device *);
1738 void (*napi_del)(struct qlcnic_adapter *);
1739 void (*config_ipaddr)(struct qlcnic_adapter *, __be32, int);
1740 irqreturn_t (*clear_legacy_intr)(struct qlcnic_adapter *);
1742 int (*resume)(struct qlcnic_adapter *);
1746 int (*enqueue_cmd) (struct qlcnic_adapter *,
1748 void (*dequeue_cmd) (struct qlcnic_adapter *, struct qlcnic_cmd_args *);
1749 void (*decode_resp) (struct qlcnic_adapter *, struct qlcnic_cmd_args *);
1750 void (*encode_cmd) (struct qlcnic_adapter *, struct qlcnic_cmd_args *);
1751 void (*nofity_fw) (struct qlcnic_adapter *, u8);
1754 int qlcnic_83xx_init_mailbox_work(struct qlcnic_adapter *);
1755 void qlcnic_83xx_detach_mailbox_work(struct qlcnic_adapter *);
1758 void qlcnic_update_stats(struct qlcnic_adapter *);
1762 void (*read_crb) (struct qlcnic_adapter *, char *, loff_t, size_t);
1763 void (*write_crb) (struct qlcnic_adapter *, char *, loff_t, size_t);
1764 int (*read_reg) (struct qlcnic_adapter *, ulong, int *);
1765 int (*write_reg) (struct qlcnic_adapter *, ulong, u32);
1767 int (*get_mac_address) (struct qlcnic_adapter *, u8 *, u8);
1768 int (*setup_intr) (struct qlcnic_adapter *);
1770 struct qlcnic_adapter *, u32);
1771 int (*mbx_cmd) (struct qlcnic_adapter *, struct qlcnic_cmd_args *);
1772 void (*get_func_no) (struct qlcnic_adapter *);
1773 int (*api_lock) (struct qlcnic_adapter *);
1774 void (*api_unlock) (struct qlcnic_adapter *);
1775 void (*add_sysfs) (struct qlcnic_adapter *);
1776 void (*remove_sysfs) (struct qlcnic_adapter *);
1778 int (*create_rx_ctx) (struct qlcnic_adapter *);
1779 int (*create_tx_ctx) (struct qlcnic_adapter *,
1781 void (*del_rx_ctx) (struct qlcnic_adapter *);
1782 void (*del_tx_ctx) (struct qlcnic_adapter *,
1784 int (*setup_link_event) (struct qlcnic_adapter *, int);
1785 int (*get_nic_info) (struct qlcnic_adapter *, struct qlcnic_info *, u8);
1786 int (*get_pci_info) (struct qlcnic_adapter *, struct qlcnic_pci_info *);
1787 int (*set_nic_info) (struct qlcnic_adapter *, struct qlcnic_info *);
1788 int (*change_macvlan) (struct qlcnic_adapter *, u8*, u16, u8);
1789 void (*napi_enable) (struct qlcnic_adapter *);
1790 void (*napi_disable) (struct qlcnic_adapter *);
1791 int (*config_intr_coal) (struct qlcnic_adapter *,
1793 int (*config_rss) (struct qlcnic_adapter *, int);
1794 int (*config_hw_lro) (struct qlcnic_adapter *, int);
1795 int (*config_loopback) (struct qlcnic_adapter *, u8);
1796 int (*clear_loopback) (struct qlcnic_adapter *, u8);
1797 int (*config_promisc_mode) (struct qlcnic_adapter *, u32);
1798 void (*change_l2_filter)(struct qlcnic_adapter *adapter, u64 *addr,
1800 int (*get_board_info) (struct qlcnic_adapter *);
1801 void (*set_mac_filter_count) (struct qlcnic_adapter *);
1802 void (*free_mac_list) (struct qlcnic_adapter *);
1803 int (*read_phys_port_id) (struct qlcnic_adapter *);
1808 void (*get_beacon_state)(struct qlcnic_adapter *);
1809 void (*enable_sds_intr) (struct qlcnic_adapter *,
1811 void (*disable_sds_intr) (struct qlcnic_adapter *,
1813 void (*enable_tx_intr) (struct qlcnic_adapter *,
1815 void (*disable_tx_intr) (struct qlcnic_adapter *,
1823 bool (*encap_rx_offload) (struct qlcnic_adapter *adapter);
1824 bool (*encap_tx_offload) (struct qlcnic_adapter *adapter);
1829 static inline bool qlcnic_83xx_encap_tx_offload(struct qlcnic_adapter *adapter) in qlcnic_83xx_encap_tx_offload()
1835 static inline bool qlcnic_83xx_encap_rx_offload(struct qlcnic_adapter *adapter) in qlcnic_83xx_encap_rx_offload()
1841 static inline bool qlcnic_82xx_encap_tx_offload(struct qlcnic_adapter *adapter) in qlcnic_82xx_encap_tx_offload()
1846 static inline bool qlcnic_82xx_encap_rx_offload(struct qlcnic_adapter *adapter) in qlcnic_82xx_encap_rx_offload()
1851 static inline bool qlcnic_encap_rx_offload(struct qlcnic_adapter *adapter) in qlcnic_encap_rx_offload()
1856 static inline bool qlcnic_encap_tx_offload(struct qlcnic_adapter *adapter) in qlcnic_encap_tx_offload()
1861 static inline int qlcnic_start_firmware(struct qlcnic_adapter *adapter) in qlcnic_start_firmware()
1866 static inline void qlcnic_read_crb(struct qlcnic_adapter *adapter, char *buf, in qlcnic_read_crb()
1872 static inline void qlcnic_write_crb(struct qlcnic_adapter *adapter, char *buf, in qlcnic_write_crb()
1878 static inline int qlcnic_get_mac_address(struct qlcnic_adapter *adapter, in qlcnic_get_mac_address()
1884 static inline int qlcnic_setup_intr(struct qlcnic_adapter *adapter) in qlcnic_setup_intr()
1890 struct qlcnic_adapter *adapter, u32 arg) in qlcnic_alloc_mbx_args()
1895 static inline int qlcnic_issue_cmd(struct qlcnic_adapter *adapter, in qlcnic_issue_cmd()
1904 static inline void qlcnic_get_func_no(struct qlcnic_adapter *adapter) in qlcnic_get_func_no()
1909 static inline int qlcnic_api_lock(struct qlcnic_adapter *adapter) in qlcnic_api_lock()
1914 static inline void qlcnic_api_unlock(struct qlcnic_adapter *adapter) in qlcnic_api_unlock()
1919 static inline void qlcnic_add_sysfs(struct qlcnic_adapter *adapter) in qlcnic_add_sysfs()
1925 static inline void qlcnic_remove_sysfs(struct qlcnic_adapter *adapter) in qlcnic_remove_sysfs()
1937 static inline int qlcnic_fw_cmd_create_rx_ctx(struct qlcnic_adapter *adapter) in qlcnic_fw_cmd_create_rx_ctx()
1942 static inline int qlcnic_fw_cmd_create_tx_ctx(struct qlcnic_adapter *adapter, in qlcnic_fw_cmd_create_tx_ctx()
1949 static inline void qlcnic_fw_cmd_del_rx_ctx(struct qlcnic_adapter *adapter) in qlcnic_fw_cmd_del_rx_ctx()
1954 static inline void qlcnic_fw_cmd_del_tx_ctx(struct qlcnic_adapter *adapter, in qlcnic_fw_cmd_del_tx_ctx()
1960 static inline int qlcnic_linkevent_request(struct qlcnic_adapter *adapter, in qlcnic_linkevent_request()
1966 static inline int qlcnic_get_nic_info(struct qlcnic_adapter *adapter, in qlcnic_get_nic_info()
1972 static inline int qlcnic_get_pci_info(struct qlcnic_adapter *adapter, in qlcnic_get_pci_info()
1978 static inline int qlcnic_set_nic_info(struct qlcnic_adapter *adapter, in qlcnic_set_nic_info()
1984 static inline int qlcnic_sre_macaddr_change(struct qlcnic_adapter *adapter, in qlcnic_sre_macaddr_change()
1990 static inline int qlcnic_napi_add(struct qlcnic_adapter *adapter, in qlcnic_napi_add()
1996 static inline void qlcnic_napi_del(struct qlcnic_adapter *adapter) in qlcnic_napi_del()
2001 static inline void qlcnic_napi_enable(struct qlcnic_adapter *adapter) in qlcnic_napi_enable()
2008 struct qlcnic_adapter *adapter = pci_get_drvdata(pdev); in __qlcnic_shutdown()
2013 static inline int __qlcnic_resume(struct qlcnic_adapter *adapter) in __qlcnic_resume()
2018 static inline void qlcnic_napi_disable(struct qlcnic_adapter *adapter) in qlcnic_napi_disable()
2023 static inline int qlcnic_config_intr_coalesce(struct qlcnic_adapter *adapter, in qlcnic_config_intr_coalesce()
2029 static inline int qlcnic_config_rss(struct qlcnic_adapter *adapter, int enable) in qlcnic_config_rss()
2034 static inline int qlcnic_config_hw_lro(struct qlcnic_adapter *adapter, in qlcnic_config_hw_lro()
2040 static inline int qlcnic_set_lb_mode(struct qlcnic_adapter *adapter, u8 mode) in qlcnic_set_lb_mode()
2045 static inline int qlcnic_clear_lb_mode(struct qlcnic_adapter *adapter, u8 mode) in qlcnic_clear_lb_mode()
2050 static inline int qlcnic_nic_set_promisc(struct qlcnic_adapter *adapter, in qlcnic_nic_set_promisc()
2056 static inline void qlcnic_change_filter(struct qlcnic_adapter *adapter, in qlcnic_change_filter()
2063 static inline int qlcnic_get_board_info(struct qlcnic_adapter *adapter) in qlcnic_get_board_info()
2068 static inline void qlcnic_free_mac_list(struct qlcnic_adapter *adapter) in qlcnic_free_mac_list()
2073 static inline void qlcnic_set_mac_filter_count(struct qlcnic_adapter *adapter) in qlcnic_set_mac_filter_count()
2079 static inline void qlcnic_get_beacon_state(struct qlcnic_adapter *adapter) in qlcnic_get_beacon_state()
2084 static inline void qlcnic_read_phys_port_id(struct qlcnic_adapter *adapter) in qlcnic_read_phys_port_id()
2090 static inline u32 qlcnic_get_saved_state(struct qlcnic_adapter *adapter, in qlcnic_get_saved_state()
2096 static inline void qlcnic_set_saved_state(struct qlcnic_adapter *adapter, in qlcnic_set_saved_state()
2102 static inline void qlcnic_cache_tmpl_hdr_values(struct qlcnic_adapter *adapter, in qlcnic_cache_tmpl_hdr_values()
2108 static inline u32 qlcnic_get_cap_size(struct qlcnic_adapter *adapter, in qlcnic_get_cap_size()
2114 static inline void qlcnic_set_sys_info(struct qlcnic_adapter *adapter, in qlcnic_set_sys_info()
2120 static inline void qlcnic_store_cap_mask(struct qlcnic_adapter *adapter, in qlcnic_store_cap_mask()
2126 static inline void qlcnic_dev_request_reset(struct qlcnic_adapter *adapter, in qlcnic_dev_request_reset()
2133 static inline void qlcnic_cancel_idc_work(struct qlcnic_adapter *adapter) in qlcnic_cancel_idc_work()
2140 qlcnic_clear_legacy_intr(struct qlcnic_adapter *adapter) in qlcnic_clear_legacy_intr()
2145 static inline int qlcnic_config_led(struct qlcnic_adapter *adapter, u32 state, in qlcnic_config_led()
2151 static inline void qlcnic_config_ipaddr(struct qlcnic_adapter *adapter, in qlcnic_config_ipaddr()
2157 static inline bool qlcnic_check_multi_tx(struct qlcnic_adapter *adapter) in qlcnic_check_multi_tx()
2163 qlcnic_82xx_enable_tx_intr(struct qlcnic_adapter *adapter, in qlcnic_82xx_enable_tx_intr()
2172 qlcnic_82xx_disable_tx_intr(struct qlcnic_adapter *adapter, in qlcnic_82xx_disable_tx_intr()
2181 qlcnic_83xx_enable_tx_intr(struct qlcnic_adapter *adapter, in qlcnic_83xx_enable_tx_intr()
2188 qlcnic_83xx_disable_tx_intr(struct qlcnic_adapter *adapter, in qlcnic_83xx_disable_tx_intr()
2196 qlcnic_83xx_enable_sds_intr(struct qlcnic_adapter *adapter, in qlcnic_83xx_enable_sds_intr()
2204 qlcnic_83xx_disable_sds_intr(struct qlcnic_adapter *adapter, in qlcnic_83xx_disable_sds_intr()
2210 static inline void qlcnic_disable_multi_tx(struct qlcnic_adapter *adapter) in qlcnic_disable_multi_tx()
2220 qlcnic_82xx_disable_sds_intr(struct qlcnic_adapter *adapter, in qlcnic_82xx_disable_sds_intr()
2231 static inline void qlcnic_enable_sds_intr(struct qlcnic_adapter *adapter, in qlcnic_enable_sds_intr()
2239 qlcnic_disable_sds_intr(struct qlcnic_adapter *adapter, in qlcnic_disable_sds_intr()
2246 static inline void qlcnic_enable_tx_intr(struct qlcnic_adapter *adapter, in qlcnic_enable_tx_intr()
2253 static inline void qlcnic_disable_tx_intr(struct qlcnic_adapter *adapter, in qlcnic_disable_tx_intr()
2264 qlcnic_82xx_enable_sds_intr(struct qlcnic_adapter *adapter, in qlcnic_82xx_enable_sds_intr()
2278 static inline int qlcnic_get_diag_lock(struct qlcnic_adapter *adapter) in qlcnic_get_diag_lock()
2283 static inline void qlcnic_release_diag_lock(struct qlcnic_adapter *adapter) in qlcnic_release_diag_lock()
2288 static inline int qlcnic_check_diag_status(struct qlcnic_adapter *adapter) in qlcnic_check_diag_status()
2312 static inline bool qlcnic_82xx_check(struct qlcnic_adapter *adapter) in qlcnic_82xx_check()
2318 static inline bool qlcnic_84xx_check(struct qlcnic_adapter *adapter) in qlcnic_84xx_check()
2326 static inline bool qlcnic_83xx_check(struct qlcnic_adapter *adapter) in qlcnic_83xx_check()
2341 static inline bool qlcnic_sriov_pf_check(struct qlcnic_adapter *adapter) in qlcnic_sriov_pf_check()
2346 static inline bool qlcnic_sriov_vf_check(struct qlcnic_adapter *adapter) in qlcnic_sriov_vf_check()
2358 static inline bool qlcnic_83xx_pf_check(struct qlcnic_adapter *adapter) in qlcnic_83xx_pf_check()
2365 static inline bool qlcnic_83xx_vf_check(struct qlcnic_adapter *adapter) in qlcnic_83xx_vf_check()
2373 static inline bool qlcnic_sriov_check(struct qlcnic_adapter *adapter) in qlcnic_sriov_check()
2383 static inline u32 qlcnic_get_vnic_func_count(struct qlcnic_adapter *adapter) in qlcnic_get_vnic_func_count()
2405 void qlcnic_register_hwmon_dev(struct qlcnic_adapter *);
2406 void qlcnic_unregister_hwmon_dev(struct qlcnic_adapter *);
2408 static inline void qlcnic_register_hwmon_dev(struct qlcnic_adapter *adapter) in qlcnic_register_hwmon_dev()
2412 static inline void qlcnic_unregister_hwmon_dev(struct qlcnic_adapter *adapter) in qlcnic_unregister_hwmon_dev()