Lines Matching refs:mbp
597 csio_ln_vnp_read_cbfn(struct csio_hw *hw, struct csio_mb *mbp) in csio_ln_vnp_read_cbfn() argument
599 struct csio_lnode *ln = ((struct csio_lnode *)mbp->priv); in csio_ln_vnp_read_cbfn()
600 struct fw_fcoe_vnp_cmd *rsp = (struct fw_fcoe_vnp_cmd *)(mbp->mb); in csio_ln_vnp_read_cbfn()
609 mempool_free(mbp, hw->mb_mempool); in csio_ln_vnp_read_cbfn()
648 mempool_free(mbp, hw->mb_mempool); in csio_ln_vnp_read_cbfn()
666 struct csio_mb *mbp; in csio_ln_vnp_read() local
669 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_ln_vnp_read()
670 if (!mbp) { in csio_ln_vnp_read()
676 csio_fcoe_vnp_read_init_mb(ln, mbp, in csio_ln_vnp_read()
683 if (csio_mb_issue(hw, mbp)) { in csio_ln_vnp_read()
685 mempool_free(mbp, hw->mb_mempool); in csio_ln_vnp_read()
703 struct csio_mb *mbp; in csio_fcoe_enable_link() local
710 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_fcoe_enable_link()
711 if (!mbp) { in csio_fcoe_enable_link()
722 csio_write_fcoe_link_cond_init_mb(ln, mbp, CSIO_MB_DEFAULT_TMO, in csio_fcoe_enable_link()
725 if (csio_mb_issue(hw, mbp)) { in csio_fcoe_enable_link()
728 mempool_free(mbp, hw->mb_mempool); in csio_fcoe_enable_link()
732 retval = csio_mb_fw_retval(mbp); in csio_fcoe_enable_link()
737 mempool_free(mbp, hw->mb_mempool); in csio_fcoe_enable_link()
744 lcmd = (struct fw_fcoe_link_cmd *)mbp->mb; in csio_fcoe_enable_link()
754 mempool_free(mbp, hw->mb_mempool); in csio_fcoe_enable_link()
765 csio_ln_read_fcf_cbfn(struct csio_hw *hw, struct csio_mb *mbp) in csio_ln_read_fcf_cbfn() argument
767 struct csio_lnode *ln = (struct csio_lnode *)mbp->priv; in csio_ln_read_fcf_cbfn()
770 (struct fw_fcoe_fcf_cmd *)(mbp->mb); in csio_ln_read_fcf_cbfn()
777 mempool_free(mbp, hw->mb_mempool); in csio_ln_read_fcf_cbfn()
802 mempool_free(mbp, hw->mb_mempool); in csio_ln_read_fcf_cbfn()
817 struct csio_mb *mbp; in csio_ln_read_fcf_entry() local
819 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_ln_read_fcf_entry()
820 if (!mbp) { in csio_ln_read_fcf_entry()
826 csio_fcoe_read_fcf_init_mb(ln, mbp, CSIO_MB_DEFAULT_TMO, in csio_ln_read_fcf_entry()
829 if (csio_mb_issue(hw, mbp)) { in csio_ln_read_fcf_entry()
831 mempool_free(mbp, hw->mb_mempool); in csio_ln_read_fcf_entry()
1372 struct csio_mb *mbp; in csio_get_phy_port_stats() local
1377 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_get_phy_port_stats()
1378 if (!mbp) { in csio_get_phy_port_stats()
1389 csio_fcoe_read_portparams_init_mb(hw, mbp, CSIO_MB_DEFAULT_TMO, in csio_get_phy_port_stats()
1391 if (csio_mb_issue(hw, mbp)) { in csio_get_phy_port_stats()
1393 mempool_free(mbp, hw->mb_mempool); in csio_get_phy_port_stats()
1396 csio_mb_process_portparams_rsp(hw, mbp, &retval, in csio_get_phy_port_stats()
1400 mempool_free(mbp, hw->mb_mempool); in csio_get_phy_port_stats()