Lines Matching refs:edev

287  (((_p)->edev.chip_num) & 0xffff)
423 struct ecore_dev *edev = &qede->edev; in qede_get_config_params() local
428 qede->num_hwfns = edev->num_hwfns; in qede_get_config_params()
469 struct ecore_dev *edev = &qede->edev; in qede_config_debug() local
475 ecore_init_dp(edev, dp_module, dp_level, NULL); in qede_config_debug()
651 struct ecore_dev *edev = p_hwfn->p_dev; in qede_sp_handler() local
652 qede_t *qede = (qede_t *)edev; in qede_sp_handler()
858 struct ecore_dev *edev = &qede->edev; in qede_prepare_edev() local
865 edev->regview = (void *)qede->regview; in qede_prepare_edev()
866 edev->doorbells = (void *)qede->doorbell; in qede_prepare_edev()
869 strcpy(edev->name, qede->name); in qede_prepare_edev()
870 ecore_init_struct(edev); in qede_prepare_edev()
879 return (ecore_hw_prepare(edev, &p_params)); in qede_prepare_edev()
886 struct ecore_dev *edev = &qede->edev; in qede_config_edev() local
890 struct ecore_hwfn *p_hwfn = &edev->hwfns[i]; in qede_config_edev()
895 status = ecore_resc_alloc(edev); in qede_config_edev()
901 ecore_resc_setup(edev); in qede_config_edev()
938 struct ecore_dev *edev = &qede->edev; in qede_config_intrs() local
959 vect_info->fp = (void *)&edev->hwfns[i]; in qede_config_intrs()
961 arg1 = (caddr_t)&qede->edev.hwfns[i]; in qede_config_intrs()
1324 struct ecore_dev *edev = &qede->edev; in qede_vport_stop() local
1328 for (i = 0; i < edev->num_hwfns; i++) { in qede_vport_stop()
1329 p_hwfn = &edev->hwfns[i]; in qede_vport_stop()
1410 struct ecore_dev *edev = &qede->edev; in qede_vport_update() local
1442 for (i = 0; i < edev->num_hwfns; i++) { in qede_vport_update()
1443 p_hwfn = &edev->hwfns[i]; in qede_vport_update()
1559 struct ecore_dev *edev = &qede->edev; in qede_vport_start() local
1565 for (i = 0; i < edev->num_hwfns; i++) { in qede_vport_start()
1566 p_hwfn = &edev->hwfns[i]; in qede_vport_start()
1597 ecore_reset_vport_stats(edev); in qede_vport_start()
1620 struct ecore_dev *edev; in qede_fastpath_stop_queues() local
1631 edev = &qede->edev; in qede_fastpath_stop_queues()
1643 p_hwfn = &edev->hwfns[fp->fp_hw_eng_index]; in qede_fastpath_stop_queues()
1688 ecore_hw_stop_fastpath(edev); in qede_fastpath_stop_queues()
1698 struct ecore_dev *edev; in qede_fastpath_start_queues() local
1711 edev = &qede->edev; in qede_fastpath_start_queues()
1723 p_hwfn = &edev->hwfns[fp->fp_hw_eng_index]; in qede_fastpath_start_queues()
1944 ecore_chain_free(&qede->edev, &rx_ring->rx_bd_ring); in qede_free_rx_ring_phys()
1949 ecore_chain_free(&qede->edev, &rx_ring->rx_cqe_ring); in qede_free_rx_ring_phys()
2416 if (ecore_chain_alloc(&qede->edev, in qede_alloc_rx_ring_phys()
2430 if (ecore_chain_alloc(&qede->edev, in qede_alloc_rx_ring_phys()
2465 ecore_chain_free(&qede->edev, &tx_ring->tx_bd_ring); in qede_free_tx_bd_ring()
2480 ret = ecore_chain_alloc(&qede->edev, in qede_alloc_tx_bd_ring()
2763 struct ecore_dev *edev = &qede->edev; in qede_alloc_sb_phys() local
2780 p_hwfn = &edev->hwfns[sb_id % qede->num_hwfns]; in qede_alloc_sb_phys()
3046 struct ecore_dev *edev = &qede->edev; in qede_configure_link() local
3051 for_each_hwfn(edev, i) { in qede_configure_link()
3052 hwfn = &edev->hwfns[i]; in qede_configure_link()
3200 struct ecore_dev *edev; in qede_free_attach_resources() local
3203 edev = &qede->edev; in qede_free_attach_resources()
3206 if (ecore_hw_stop(edev) != ECORE_SUCCESS) { in qede_free_attach_resources()
3237 ecore_resc_free(edev); in qede_free_attach_resources()
3271 ecore_hw_remove(edev); in qede_free_attach_resources()
3313 struct ecore_dev *edev; in qede_attach() local
3374 edev = &qede->edev; in qede_attach()
3412 qede->num_hwfns = edev->num_hwfns; in qede_attach()
3414 memcpy(qede->ether_addr, edev->hwfns->hw_info.hw_mac_addr, in qede_attach()
3514 if (ecore_hw_init(edev, &hw_init_params) != ECORE_SUCCESS) { in qede_attach()
3540 p_hwfn = &qede->edev.hwfns[0]; in qede_attach()
3552 p_hwfn = ECORE_LEADING_HWFN(edev); in qede_attach()
3568 ECORE_IS_BB(edev) ? "BB" : "AH"); in qede_attach()
3573 qede->edev.chip_num); in qede_attach()
3717 struct ecore_dev *edev = &qede->edev; in qede_quiesce() local
3723 p_hwfn = ECORE_LEADING_HWFN(edev); in qede_quiesce()