Lines Matching refs:ql3_adapter
103 static int ql_sem_spinlock(struct ql3_adapter *qdev, in ql_sem_spinlock()
122 static void ql_sem_unlock(struct ql3_adapter *qdev, u32 sem_mask) in ql_sem_unlock()
130 static int ql_sem_lock(struct ql3_adapter *qdev, u32 sem_mask, u32 sem_bits) in ql_sem_lock()
144 static int ql_wait_for_drvr_lock(struct ql3_adapter *qdev) in ql_wait_for_drvr_lock()
164 static void ql_set_register_page(struct ql3_adapter *qdev, u32 page) in ql_set_register_page()
175 static u32 ql_read_common_reg_l(struct ql3_adapter *qdev, u32 __iomem *reg) in ql_read_common_reg_l()
187 static u32 ql_read_common_reg(struct ql3_adapter *qdev, u32 __iomem *reg) in ql_read_common_reg()
192 static u32 ql_read_page0_reg_l(struct ql3_adapter *qdev, u32 __iomem *reg) in ql_read_page0_reg_l()
207 static u32 ql_read_page0_reg(struct ql3_adapter *qdev, u32 __iomem *reg) in ql_read_page0_reg()
214 static void ql_write_common_reg_l(struct ql3_adapter *qdev, in ql_write_common_reg_l()
225 static void ql_write_common_reg(struct ql3_adapter *qdev, in ql_write_common_reg()
232 static void ql_write_nvram_reg(struct ql3_adapter *qdev, in ql_write_nvram_reg()
240 static void ql_write_page0_reg(struct ql3_adapter *qdev, in ql_write_page0_reg()
252 static void ql_write_page1_reg(struct ql3_adapter *qdev, in ql_write_page1_reg()
264 static void ql_write_page2_reg(struct ql3_adapter *qdev, in ql_write_page2_reg()
273 static void ql_disable_interrupts(struct ql3_adapter *qdev) in ql_disable_interrupts()
283 static void ql_enable_interrupts(struct ql3_adapter *qdev) in ql_enable_interrupts()
293 static void ql_release_to_lrg_buf_free_list(struct ql3_adapter *qdev, in ql_release_to_lrg_buf_free_list()
348 static struct ql_rcv_buf_cb *ql_get_from_lrg_buf_free_list(struct ql3_adapter in ql_get_from_lrg_buf_free_list()
366 static void fm93c56a_deselect(struct ql3_adapter *qdev);
367 static void eeprom_readword(struct ql3_adapter *qdev, u32 eepromAddr,
373 static void fm93c56a_select(struct ql3_adapter *qdev) in fm93c56a_select()
386 static void fm93c56a_cmd(struct ql3_adapter *qdev, u32 cmd, u32 eepromAddr) in fm93c56a_cmd()
459 static void fm93c56a_deselect(struct ql3_adapter *qdev) in fm93c56a_deselect()
472 static void fm93c56a_datain(struct ql3_adapter *qdev, unsigned short *value) in fm93c56a_datain()
500 static void eeprom_readword(struct ql3_adapter *qdev, in eeprom_readword()
519 static int ql_get_nvram_params(struct ql3_adapter *qdev) in ql_get_nvram_params()
560 static int ql_wait_for_mii_ready(struct ql3_adapter *qdev) in ql_wait_for_mii_ready()
577 static void ql_mii_enable_scan_mode(struct ql3_adapter *qdev) in ql_mii_enable_scan_mode()
604 static u8 ql_mii_disable_scan_mode(struct ql3_adapter *qdev) in ql_mii_disable_scan_mode()
634 static int ql_mii_write_reg_ex(struct ql3_adapter *qdev, in ql_mii_write_reg_ex()
665 static int ql_mii_read_reg_ex(struct ql3_adapter *qdev, u16 regAddr, in ql_mii_read_reg_ex()
704 static int ql_mii_write_reg(struct ql3_adapter *qdev, u16 regAddr, u16 value) in ql_mii_write_reg()
732 static int ql_mii_read_reg(struct ql3_adapter *qdev, u16 regAddr, u16 *value) in ql_mii_read_reg()
768 static void ql_petbi_reset(struct ql3_adapter *qdev) in ql_petbi_reset()
773 static void ql_petbi_start_neg(struct ql3_adapter *qdev) in ql_petbi_start_neg()
791 static void ql_petbi_reset_ex(struct ql3_adapter *qdev) in ql_petbi_reset_ex()
797 static void ql_petbi_start_neg_ex(struct ql3_adapter *qdev) in ql_petbi_start_neg_ex()
818 static void ql_petbi_init(struct ql3_adapter *qdev) in ql_petbi_init()
824 static void ql_petbi_init_ex(struct ql3_adapter *qdev) in ql_petbi_init_ex()
830 static int ql_is_petbi_neg_pause(struct ql3_adapter *qdev) in ql_is_petbi_neg_pause()
840 static void phyAgereSpecificInit(struct ql3_adapter *qdev, u32 miiAddr) in phyAgereSpecificInit()
874 static enum PHY_DEVICE_TYPE getPhyType(struct ql3_adapter *qdev, in getPhyType()
907 static int ql_phy_get_speed(struct ql3_adapter *qdev) in ql_phy_get_speed()
938 static int ql_is_full_dup(struct ql3_adapter *qdev) in ql_is_full_dup()
958 static int ql_is_phy_neg_pause(struct ql3_adapter *qdev) in ql_is_phy_neg_pause()
968 static int PHY_Setup(struct ql3_adapter *qdev) in PHY_Setup()
1034 static void ql_mac_enable(struct ql3_adapter *qdev, u32 enable) in ql_mac_enable()
1054 static void ql_mac_cfg_soft_reset(struct ql3_adapter *qdev, u32 enable) in ql_mac_cfg_soft_reset()
1074 static void ql_mac_cfg_gig(struct ql3_adapter *qdev, u32 enable) in ql_mac_cfg_gig()
1094 static void ql_mac_cfg_full_dup(struct ql3_adapter *qdev, u32 enable) in ql_mac_cfg_full_dup()
1114 static void ql_mac_cfg_pause(struct ql3_adapter *qdev, u32 enable) in ql_mac_cfg_pause()
1136 static int ql_is_fiber(struct ql3_adapter *qdev) in ql_is_fiber()
1156 static int ql_is_auto_cfg(struct ql3_adapter *qdev) in ql_is_auto_cfg()
1166 static int ql_is_auto_neg_complete(struct ql3_adapter *qdev) in ql_is_auto_neg_complete()
1194 static int ql_is_neg_pause(struct ql3_adapter *qdev) in ql_is_neg_pause()
1202 static int ql_auto_neg_error(struct ql3_adapter *qdev) in ql_auto_neg_error()
1221 static u32 ql_get_link_speed(struct ql3_adapter *qdev) in ql_get_link_speed()
1229 static int ql_is_link_full_dup(struct ql3_adapter *qdev) in ql_is_link_full_dup()
1240 static int ql_link_down_detect(struct ql3_adapter *qdev) in ql_link_down_detect()
1264 static int ql_link_down_detect_clear(struct ql3_adapter *qdev) in ql_link_down_detect_clear()
1294 static int ql_this_adapter_controls_port(struct ql3_adapter *qdev) in ql_this_adapter_controls_port()
1323 static void ql_phy_reset_ex(struct ql3_adapter *qdev) in ql_phy_reset_ex()
1329 static void ql_phy_start_neg_ex(struct ql3_adapter *qdev) in ql_phy_start_neg_ex()
1402 static void ql_phy_init_ex(struct ql3_adapter *qdev) in ql_phy_init_ex()
1412 static u32 ql_get_link_state(struct ql3_adapter *qdev) in ql_get_link_state()
1437 static int ql_port_start(struct ql3_adapter *qdev) in ql_port_start()
1457 static int ql_finish_auto_neg(struct ql3_adapter *qdev) in ql_finish_auto_neg()
1518 struct ql3_adapter *qdev = in ql_link_state_machine_work()
1519 container_of(work, struct ql3_adapter, link_state_work.work); in ql_link_state_machine_work()
1582 static void ql_get_phy_owner(struct ql3_adapter *qdev) in ql_get_phy_owner()
1593 static void ql_init_scan_mode(struct ql3_adapter *qdev) in ql_init_scan_mode()
1612 static int ql_mii_setup(struct ql3_adapter *qdev) in ql_mii_setup()
1649 static u32 ql_supported_modes(struct ql3_adapter *qdev) in ql_supported_modes()
1657 static int ql_get_auto_cfg_status(struct ql3_adapter *qdev) in ql_get_auto_cfg_status()
1674 static u32 ql_get_speed(struct ql3_adapter *qdev) in ql_get_speed()
1691 static int ql_get_full_dup(struct ql3_adapter *qdev) in ql_get_full_dup()
1711 struct ql3_adapter *qdev = netdev_priv(ndev); in ql_get_link_ksettings()
1738 struct ql3_adapter *qdev = netdev_priv(ndev); in ql_get_drvinfo()
1748 struct ql3_adapter *qdev = netdev_priv(ndev); in ql_get_msglevel()
1754 struct ql3_adapter *qdev = netdev_priv(ndev); in ql_set_msglevel()
1761 struct ql3_adapter *qdev = netdev_priv(ndev); in ql_get_pauseparam()
1785 static int ql_populate_free_queue(struct ql3_adapter *qdev) in ql_populate_free_queue()
1843 static void ql_update_small_bufq_prod_index(struct ql3_adapter *qdev) in ql_update_small_bufq_prod_index()
1866 static void ql_update_lrg_bufq_prod_index(struct ql3_adapter *qdev) in ql_update_lrg_bufq_prod_index()
1916 static void ql_process_mac_tx_intr(struct ql3_adapter *qdev, in ql_process_mac_tx_intr()
1969 static void ql_get_sbuf(struct ql3_adapter *qdev) in ql_get_sbuf()
1976 static struct ql_rcv_buf_cb *ql_get_lbuf(struct ql3_adapter *qdev) in ql_get_lbuf()
1998 static void ql_process_mac_rx_intr(struct ql3_adapter *qdev, in ql_process_mac_rx_intr()
2037 static void ql_process_macip_rx_intr(struct ql3_adapter *qdev, in ql_process_macip_rx_intr()
2108 static int ql_tx_rx_clean(struct ql3_adapter *qdev, int budget) in ql_tx_rx_clean()
2177 struct ql3_adapter *qdev = container_of(napi, struct ql3_adapter, napi); in ql_poll()
2203 struct ql3_adapter *qdev = netdev_priv(ndev); in ql3xxx_isr()
2260 static int ql_get_seg_count(struct ql3_adapter *qdev, unsigned short frags) in ql_get_seg_count()
2300 static int ql_send_map(struct ql3_adapter *qdev, in ql_send_map()
2459 struct ql3_adapter *qdev = netdev_priv(ndev); in ql3xxx_send()
2512 static int ql_alloc_net_req_rsp_queues(struct ql3_adapter *qdev) in ql_alloc_net_req_rsp_queues()
2551 static void ql_free_net_req_rsp_queues(struct ql3_adapter *qdev) in ql_free_net_req_rsp_queues()
2571 static int ql_alloc_buffer_queues(struct ql3_adapter *qdev) in ql_alloc_buffer_queues()
2629 static void ql_free_buffer_queues(struct ql3_adapter *qdev) in ql_free_buffer_queues()
2651 static int ql_alloc_small_buffers(struct ql3_adapter *qdev) in ql_alloc_small_buffers()
2690 static void ql_free_small_buffers(struct ql3_adapter *qdev) in ql_free_small_buffers()
2706 static void ql_free_large_buffers(struct ql3_adapter *qdev) in ql_free_large_buffers()
2726 static void ql_init_large_buffers(struct ql3_adapter *qdev) in ql_init_large_buffers()
2742 static int ql_alloc_large_buffers(struct ql3_adapter *qdev) in ql_alloc_large_buffers()
2798 static void ql_free_send_free_list(struct ql3_adapter *qdev) in ql_free_send_free_list()
2811 static int ql_create_send_free_list(struct ql3_adapter *qdev) in ql_create_send_free_list()
2831 static int ql_alloc_mem_resources(struct ql3_adapter *qdev) in ql_alloc_mem_resources()
2922 static void ql_free_mem_resources(struct ql3_adapter *qdev) in ql_free_mem_resources()
2937 static int ql_init_misc_registers(struct ql3_adapter *qdev) in ql_init_misc_registers()
2995 static int ql_adapter_initialize(struct ql3_adapter *qdev) in ql_adapter_initialize()
3250 static int ql_adapter_reset(struct ql3_adapter *qdev) in ql_adapter_reset()
3329 static void ql_set_mac_info(struct ql3_adapter *qdev) in ql_set_mac_info()
3377 struct ql3_adapter *qdev = netdev_priv(ndev); in ql_display_dev_info()
3402 static int ql_adapter_down(struct ql3_adapter *qdev, int do_reset) in ql_adapter_down()
3451 static int ql_adapter_up(struct ql3_adapter *qdev) in ql_adapter_up()
3523 static int ql_cycle_adapter(struct ql3_adapter *qdev, int reset) in ql_cycle_adapter()
3538 struct ql3_adapter *qdev = netdev_priv(ndev); in ql3xxx_close()
3553 struct ql3_adapter *qdev = netdev_priv(ndev); in ql3xxx_open()
3559 struct ql3_adapter *qdev = netdev_priv(ndev); in ql3xxx_set_mac_address()
3594 struct ql3_adapter *qdev = netdev_priv(ndev); in ql3xxx_tx_timeout()
3610 struct ql3_adapter *qdev = in ql_reset_work()
3611 container_of(work, struct ql3_adapter, reset_work.work); in ql_reset_work()
3710 struct ql3_adapter *qdev = in ql_tx_timeout_work()
3711 container_of(work, struct ql3_adapter, tx_timeout_work.work); in ql_tx_timeout_work()
3716 static void ql_get_board_info(struct ql3_adapter *qdev) in ql_get_board_info()
3738 struct ql3_adapter *qdev = from_timer(qdev, t, adapter_timer); in ql3xxx_timer()
3755 struct ql3_adapter *qdev = NULL; in ql3xxx_probe()
3779 ndev = alloc_etherdev(sizeof(struct ql3_adapter)); in ql3xxx_probe()
3904 struct ql3_adapter *qdev = netdev_priv(ndev); in ql3xxx_remove()