ethport 283 drivers/net/ethernet/brocade/bna/bna.h void bna_ethport_cb_rx_started(struct bna_ethport *ethport); ethport 284 drivers/net/ethernet/brocade/bna/bna.h void bna_ethport_cb_rx_stopped(struct bna_ethport *ethport); ethport 14 drivers/net/ethernet/brocade/bna/bna_enet.c ethport_can_be_up(struct bna_ethport *ethport) ethport 17 drivers/net/ethernet/brocade/bna/bna_enet.c if (ethport->bna->enet.type == BNA_ENET_T_REGULAR) ethport 18 drivers/net/ethernet/brocade/bna/bna_enet.c ready = ((ethport->flags & BNA_ETHPORT_F_ADMIN_UP) && ethport 19 drivers/net/ethernet/brocade/bna/bna_enet.c (ethport->flags & BNA_ETHPORT_F_RX_STARTED) && ethport 20 drivers/net/ethernet/brocade/bna/bna_enet.c (ethport->flags & BNA_ETHPORT_F_PORT_ENABLED)); ethport 22 drivers/net/ethernet/brocade/bna/bna_enet.c ready = ((ethport->flags & BNA_ETHPORT_F_ADMIN_UP) && ethport 23 drivers/net/ethernet/brocade/bna/bna_enet.c (ethport->flags & BNA_ETHPORT_F_RX_STARTED) && ethport 24 drivers/net/ethernet/brocade/bna/bna_enet.c !(ethport->flags & BNA_ETHPORT_F_PORT_ENABLED)); ethport 76 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_enable_aen(struct bna_ethport *ethport, ethport 79 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->flags |= BNA_ETHPORT_F_PORT_ENABLED; ethport 81 drivers/net/ethernet/brocade/bna/bna_enet.c if (ethport_can_be_up(ethport)) ethport 82 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_send_event(ethport, ETHPORT_E_UP); ethport 86 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_disable_aen(struct bna_ethport *ethport, ethport 89 drivers/net/ethernet/brocade/bna/bna_enet.c int ethport_up = ethport_is_up(ethport); ethport 91 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->flags &= ~BNA_ETHPORT_F_PORT_ENABLED; ethport 94 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_send_event(ethport, ETHPORT_E_DOWN); ethport 98 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_admin_rsp(struct bna_ethport *ethport, ethport 102 drivers/net/ethernet/brocade/bna/bna_enet.c ðport->bfi_enet_cmd.admin_req; ethport 109 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_send_event(ethport, ETHPORT_E_FWRESP_UP_OK); ethport 111 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->flags &= ~BNA_ETHPORT_F_PORT_ENABLED; ethport 112 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_send_event(ethport, ETHPORT_E_FWRESP_UP_FAIL); ethport 117 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_send_event(ethport, ETHPORT_E_FWRESP_DOWN); ethport 118 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->link_status = BNA_LINK_DOWN; ethport 119 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->link_cbfn(ethport->bna->bnad, BNA_LINK_DOWN); ethport 125 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_lpbk_rsp(struct bna_ethport *ethport, ethport 129 drivers/net/ethernet/brocade/bna/bna_enet.c ðport->bfi_enet_cmd.lpbk_req; ethport 136 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_send_event(ethport, ETHPORT_E_FWRESP_UP_OK); ethport 138 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->flags &= ~BNA_ETHPORT_F_ADMIN_UP; ethport 139 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_send_event(ethport, ETHPORT_E_FWRESP_UP_FAIL); ethport 144 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_send_event(ethport, ETHPORT_E_FWRESP_DOWN); ethport 233 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_linkup_aen(struct bna_ethport *ethport, ethport 236 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->link_status = BNA_LINK_UP; ethport 239 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->link_cbfn(ethport->bna->bnad, ethport->link_status); ethport 243 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_linkdown_aen(struct bna_ethport *ethport, ethport 246 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->link_status = BNA_LINK_DOWN; ethport 249 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->link_cbfn(ethport->bna->bnad, BNA_LINK_DOWN); ethport 334 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_admin_rsp(&bna->ethport, msghdr); ethport 338 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_lpbk_rsp(&bna->ethport, msghdr); ethport 358 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_linkup_aen(&bna->ethport, msghdr); ethport 362 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_linkdown_aen(&bna->ethport, msghdr); ethport 366 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_enable_aen(&bna->ethport, msghdr); ethport 370 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_disable_aen(&bna->ethport, msghdr); ethport 394 drivers/net/ethernet/brocade/bna/bna_enet.c #define call_ethport_adminup_cbfn(ethport, status) \ ethport 396 drivers/net/ethernet/brocade/bna/bna_enet.c if ((ethport)->adminup_cbfn) { \ ethport 398 drivers/net/ethernet/brocade/bna/bna_enet.c cbfn = (ethport)->adminup_cbfn; \ ethport 399 drivers/net/ethernet/brocade/bna/bna_enet.c (ethport)->adminup_cbfn = NULL; \ ethport 400 drivers/net/ethernet/brocade/bna/bna_enet.c cbfn((ethport)->bna->bnad, status); \ ethport 405 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_admin_up(struct bna_ethport *ethport) ethport 408 drivers/net/ethernet/brocade/bna/bna_enet.c ðport->bfi_enet_cmd.admin_req; ethport 416 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_msgq_cmd_set(ðport->msgq_cmd, NULL, NULL, ethport 418 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_msgq_cmd_post(ðport->bna->msgq, ðport->msgq_cmd); ethport 422 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_admin_down(struct bna_ethport *ethport) ethport 425 drivers/net/ethernet/brocade/bna/bna_enet.c ðport->bfi_enet_cmd.admin_req; ethport 433 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_msgq_cmd_set(ðport->msgq_cmd, NULL, NULL, ethport 435 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_msgq_cmd_post(ðport->bna->msgq, ðport->msgq_cmd); ethport 439 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_lpbk_up(struct bna_ethport *ethport) ethport 442 drivers/net/ethernet/brocade/bna/bna_enet.c ðport->bfi_enet_cmd.lpbk_req; ethport 448 drivers/net/ethernet/brocade/bna/bna_enet.c lpbk_up_req->mode = (ethport->bna->enet.type == ethport 454 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_msgq_cmd_set(ðport->msgq_cmd, NULL, NULL, ethport 456 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_msgq_cmd_post(ðport->bna->msgq, ðport->msgq_cmd); ethport 460 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_lpbk_down(struct bna_ethport *ethport) ethport 463 drivers/net/ethernet/brocade/bna/bna_enet.c ðport->bfi_enet_cmd.lpbk_req; ethport 471 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_msgq_cmd_set(ðport->msgq_cmd, NULL, NULL, ethport 473 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_msgq_cmd_post(ðport->bna->msgq, ðport->msgq_cmd); ethport 477 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_up(struct bna_ethport *ethport) ethport 479 drivers/net/ethernet/brocade/bna/bna_enet.c if (ethport->bna->enet.type == BNA_ENET_T_REGULAR) ethport 480 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_admin_up(ethport); ethport 482 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_lpbk_up(ethport); ethport 486 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_down(struct bna_ethport *ethport) ethport 488 drivers/net/ethernet/brocade/bna/bna_enet.c if (ethport->bna->enet.type == BNA_ENET_T_REGULAR) ethport 489 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_admin_down(ethport); ethport 491 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_lpbk_down(ethport); ethport 508 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_sm_stopped_entry(struct bna_ethport *ethport) ethport 510 drivers/net/ethernet/brocade/bna/bna_enet.c call_ethport_stop_cbfn(ethport); ethport 514 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_sm_stopped(struct bna_ethport *ethport, ethport 519 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_down); ethport 523 drivers/net/ethernet/brocade/bna/bna_enet.c call_ethport_stop_cbfn(ethport); ethport 541 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_sm_down_entry(struct bna_ethport *ethport) ethport 546 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_sm_down(struct bna_ethport *ethport, ethport 551 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_stopped); ethport 555 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_stopped); ethport 559 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_up_resp_wait); ethport 560 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_up(ethport); ethport 569 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_sm_up_resp_wait_entry(struct bna_ethport *ethport) ethport 574 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_sm_up_resp_wait(struct bna_ethport *ethport, ethport 579 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_last_resp_wait); ethport 583 drivers/net/ethernet/brocade/bna/bna_enet.c call_ethport_adminup_cbfn(ethport, BNA_CB_FAIL); ethport 584 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_stopped); ethport 588 drivers/net/ethernet/brocade/bna/bna_enet.c call_ethport_adminup_cbfn(ethport, BNA_CB_INTERRUPT); ethport 589 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_down_resp_wait); ethport 593 drivers/net/ethernet/brocade/bna/bna_enet.c call_ethport_adminup_cbfn(ethport, BNA_CB_SUCCESS); ethport 594 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_up); ethport 598 drivers/net/ethernet/brocade/bna/bna_enet.c call_ethport_adminup_cbfn(ethport, BNA_CB_FAIL); ethport 599 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_down); ethport 604 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_up(ethport); ethport 613 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_sm_down_resp_wait_entry(struct bna_ethport *ethport) ethport 623 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_sm_down_resp_wait(struct bna_ethport *ethport, ethport 628 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_last_resp_wait); ethport 632 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_stopped); ethport 636 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_up_resp_wait); ethport 641 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_down(ethport); ethport 646 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_down); ethport 655 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_sm_up_entry(struct bna_ethport *ethport) ethport 660 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_sm_up(struct bna_ethport *ethport, ethport 665 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_last_resp_wait); ethport 666 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_down(ethport); ethport 670 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_stopped); ethport 674 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_down_resp_wait); ethport 675 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_down(ethport); ethport 684 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_sm_last_resp_wait_entry(struct bna_ethport *ethport) ethport 689 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_sm_last_resp_wait(struct bna_ethport *ethport, ethport 694 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_stopped); ethport 707 drivers/net/ethernet/brocade/bna/bna_enet.c bna_bfi_ethport_down(ethport); ethport 712 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_stopped); ethport 721 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_init(struct bna_ethport *ethport, struct bna *bna) ethport 723 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->flags |= (BNA_ETHPORT_F_ADMIN_UP | BNA_ETHPORT_F_PORT_ENABLED); ethport 724 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->bna = bna; ethport 726 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->link_status = BNA_LINK_DOWN; ethport 727 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->link_cbfn = bnad_cb_ethport_link_status; ethport 729 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->rx_started_count = 0; ethport 731 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->stop_cbfn = NULL; ethport 732 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->adminup_cbfn = NULL; ethport 734 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_set_state(ethport, bna_ethport_sm_stopped); ethport 738 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_uninit(struct bna_ethport *ethport) ethport 740 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->flags &= ~BNA_ETHPORT_F_ADMIN_UP; ethport 741 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->flags &= ~BNA_ETHPORT_F_PORT_ENABLED; ethport 743 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->bna = NULL; ethport 747 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_start(struct bna_ethport *ethport) ethport 749 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_send_event(ethport, ETHPORT_E_START); ethport 759 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_stop(struct bna_ethport *ethport) ethport 761 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->stop_cbfn = bna_enet_cb_ethport_stopped; ethport 762 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_send_event(ethport, ETHPORT_E_STOP); ethport 766 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_fail(struct bna_ethport *ethport) ethport 769 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->flags |= BNA_ETHPORT_F_PORT_ENABLED; ethport 771 drivers/net/ethernet/brocade/bna/bna_enet.c if (ethport->link_status != BNA_LINK_DOWN) { ethport 772 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->link_status = BNA_LINK_DOWN; ethport 773 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->link_cbfn(ethport->bna->bnad, BNA_LINK_DOWN); ethport 775 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_send_event(ethport, ETHPORT_E_FAIL); ethport 780 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_cb_rx_started(struct bna_ethport *ethport) ethport 782 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->rx_started_count++; ethport 784 drivers/net/ethernet/brocade/bna/bna_enet.c if (ethport->rx_started_count == 1) { ethport 785 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->flags |= BNA_ETHPORT_F_RX_STARTED; ethport 787 drivers/net/ethernet/brocade/bna/bna_enet.c if (ethport_can_be_up(ethport)) ethport 788 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_send_event(ethport, ETHPORT_E_UP); ethport 793 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_cb_rx_stopped(struct bna_ethport *ethport) ethport 795 drivers/net/ethernet/brocade/bna/bna_enet.c int ethport_up = ethport_is_up(ethport); ethport 797 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->rx_started_count--; ethport 799 drivers/net/ethernet/brocade/bna/bna_enet.c if (ethport->rx_started_count == 0) { ethport 800 drivers/net/ethernet/brocade/bna/bna_enet.c ethport->flags &= ~BNA_ETHPORT_F_RX_STARTED; ethport 803 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_send_event(ethport, ETHPORT_E_DOWN); ethport 817 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_start(&(enet)->bna->ethport); \ ethport 832 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_stop(&(enet)->bna->ethport); \ ethport 842 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_fail(&(enet)->bna->ethport); \ ethport 1985 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_init(&bna->ethport, bna); ethport 2017 drivers/net/ethernet/brocade/bna/bna_enet.c bna_ethport_uninit(&bna->ethport); ethport 1477 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_ethport_cb_rx_started(&rx->bna->ethport); ethport 1486 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_ethport_cb_rx_stopped(&rx->bna->ethport); ethport 1492 drivers/net/ethernet/brocade/bna/bna_tx_rx.c bna_ethport_cb_rx_stopped(&rx->bna->ethport); ethport 915 drivers/net/ethernet/brocade/bna/bna_types.h struct bna_ethport ethport;