Lines Matching refs:mbp

918 	struct csio_mb	*mbp;  in csio_do_hello()  local
927 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_do_hello()
928 if (!mbp) { in csio_do_hello()
935 csio_mb_hello(hw, mbp, CSIO_MB_DEFAULT_TMO, hw->pfn, in csio_do_hello()
938 rv = csio_mb_issue(hw, mbp); in csio_do_hello()
944 csio_mb_process_hello_rsp(hw, mbp, &retval, state, &mpfn); in csio_do_hello()
1052 mempool_free(mbp, hw->mb_mempool); in csio_do_hello()
1065 struct csio_mb *mbp; in csio_do_bye() local
1068 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_do_bye()
1069 if (!mbp) { in csio_do_bye()
1074 csio_mb_bye(hw, mbp, CSIO_MB_DEFAULT_TMO, NULL); in csio_do_bye()
1076 if (csio_mb_issue(hw, mbp)) { in csio_do_bye()
1078 mempool_free(mbp, hw->mb_mempool); in csio_do_bye()
1082 retval = csio_mb_fw_retval(mbp); in csio_do_bye()
1084 mempool_free(mbp, hw->mb_mempool); in csio_do_bye()
1088 mempool_free(mbp, hw->mb_mempool); in csio_do_bye()
1105 struct csio_mb *mbp; in csio_do_reset() local
1115 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_do_reset()
1116 if (!mbp) { in csio_do_reset()
1121 csio_mb_reset(hw, mbp, CSIO_MB_DEFAULT_TMO, in csio_do_reset()
1124 if (csio_mb_issue(hw, mbp)) { in csio_do_reset()
1126 mempool_free(mbp, hw->mb_mempool); in csio_do_reset()
1130 retval = csio_mb_fw_retval(mbp); in csio_do_reset()
1133 mempool_free(mbp, hw->mb_mempool); in csio_do_reset()
1137 mempool_free(mbp, hw->mb_mempool); in csio_do_reset()
1143 csio_hw_validate_caps(struct csio_hw *hw, struct csio_mb *mbp) in csio_hw_validate_caps() argument
1145 struct fw_caps_config_cmd *rsp = (struct fw_caps_config_cmd *)mbp->mb; in csio_hw_validate_caps()
1189 struct csio_mb *mbp; in csio_hw_fw_halt() local
1191 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_hw_fw_halt()
1192 if (!mbp) { in csio_hw_fw_halt()
1197 csio_mb_reset(hw, mbp, CSIO_MB_DEFAULT_TMO, in csio_hw_fw_halt()
1201 if (csio_mb_issue(hw, mbp)) { in csio_hw_fw_halt()
1203 mempool_free(mbp, hw->mb_mempool); in csio_hw_fw_halt()
1207 retval = csio_mb_fw_retval(mbp); in csio_hw_fw_halt()
1208 mempool_free(mbp, hw->mb_mempool); in csio_hw_fw_halt()
1357 struct csio_mb *mbp; in csio_get_device_params() local
1366 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_get_device_params()
1367 if (!mbp) { in csio_get_device_params()
1386 csio_mb_params(hw, mbp, CSIO_MB_DEFAULT_TMO, hw->pfn, 0, in csio_get_device_params()
1388 if (csio_mb_issue(hw, mbp)) { in csio_get_device_params()
1390 mempool_free(mbp, hw->mb_mempool); in csio_get_device_params()
1394 csio_mb_process_read_params_rsp(hw, mbp, &retval, in csio_get_device_params()
1399 mempool_free(mbp, hw->mb_mempool); in csio_get_device_params()
1431 mempool_free(mbp, hw->mb_mempool); in csio_get_device_params()
1445 struct csio_mb *mbp; in csio_config_device_caps() local
1449 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_config_device_caps()
1450 if (!mbp) { in csio_config_device_caps()
1456 csio_mb_caps_config(hw, mbp, CSIO_MB_DEFAULT_TMO, 0, 0, 0, 0, NULL); in csio_config_device_caps()
1458 if (csio_mb_issue(hw, mbp)) { in csio_config_device_caps()
1463 retval = csio_mb_fw_retval(mbp); in csio_config_device_caps()
1470 rv = csio_hw_validate_caps(hw, mbp); in csio_config_device_caps()
1481 csio_mb_caps_config(hw, mbp, CSIO_MB_DEFAULT_TMO, true, true, in csio_config_device_caps()
1484 if (csio_mb_issue(hw, mbp)) { in csio_config_device_caps()
1489 retval = csio_mb_fw_retval(mbp); in csio_config_device_caps()
1497 mempool_free(mbp, hw->mb_mempool); in csio_config_device_caps()
1778 struct csio_mb *mbp; in csio_enable_ports() local
1785 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_enable_ports()
1786 if (!mbp) { in csio_enable_ports()
1801 csio_mb_params(hw, mbp, CSIO_MB_DEFAULT_TMO, in csio_enable_ports()
1805 if (csio_mb_issue(hw, mbp)) { in csio_enable_ports()
1808 mempool_free(mbp, hw->mb_mempool); in csio_enable_ports()
1812 csio_mb_process_read_params_rsp(hw, mbp, &retval, in csio_enable_ports()
1818 csio_mb_port(hw, mbp, CSIO_MB_DEFAULT_TMO, portid, in csio_enable_ports()
1821 if (csio_mb_issue(hw, mbp)) { in csio_enable_ports()
1824 mempool_free(mbp, hw->mb_mempool); in csio_enable_ports()
1828 csio_mb_process_read_port_rsp(hw, mbp, &retval, fw_caps, in csio_enable_ports()
1833 mempool_free(mbp, hw->mb_mempool); in csio_enable_ports()
1842 csio_mb_port(hw, mbp, CSIO_MB_DEFAULT_TMO, portid, in csio_enable_ports()
1845 if (csio_mb_issue(hw, mbp)) { in csio_enable_ports()
1848 mempool_free(mbp, hw->mb_mempool); in csio_enable_ports()
1852 retval = csio_mb_fw_retval(mbp); in csio_enable_ports()
1856 mempool_free(mbp, hw->mb_mempool); in csio_enable_ports()
1862 mempool_free(mbp, hw->mb_mempool); in csio_enable_ports()
1877 struct csio_mb *mbp; in csio_get_fcoe_resinfo() local
1880 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_get_fcoe_resinfo()
1881 if (!mbp) { in csio_get_fcoe_resinfo()
1887 csio_fcoe_read_res_info_init_mb(hw, mbp, CSIO_MB_DEFAULT_TMO, NULL); in csio_get_fcoe_resinfo()
1889 if (csio_mb_issue(hw, mbp)) { in csio_get_fcoe_resinfo()
1891 mempool_free(mbp, hw->mb_mempool); in csio_get_fcoe_resinfo()
1895 rsp = (struct fw_fcoe_res_info_cmd *)(mbp->mb); in csio_get_fcoe_resinfo()
1900 mempool_free(mbp, hw->mb_mempool); in csio_get_fcoe_resinfo()
1919 mempool_free(mbp, hw->mb_mempool); in csio_get_fcoe_resinfo()
1927 struct csio_mb *mbp; in csio_hw_check_fwconfig() local
1931 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_hw_check_fwconfig()
1932 if (!mbp) { in csio_hw_check_fwconfig()
1944 csio_mb_params(hw, mbp, CSIO_MB_DEFAULT_TMO, hw->pfn, 0, in csio_hw_check_fwconfig()
1946 if (csio_mb_issue(hw, mbp)) { in csio_hw_check_fwconfig()
1948 mempool_free(mbp, hw->mb_mempool); in csio_hw_check_fwconfig()
1952 csio_mb_process_read_params_rsp(hw, mbp, &retval, in csio_hw_check_fwconfig()
1957 mempool_free(mbp, hw->mb_mempool); in csio_hw_check_fwconfig()
1961 mempool_free(mbp, hw->mb_mempool); in csio_hw_check_fwconfig()
2054 struct csio_mb *mbp = NULL; in csio_hw_use_fwconfig() local
2093 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_hw_use_fwconfig()
2094 if (!mbp) { in csio_hw_use_fwconfig()
2104 caps_cmd = (struct fw_caps_config_cmd *)(mbp->mb); in csio_hw_use_fwconfig()
2105 CSIO_INIT_MBP(mbp, caps_cmd, CSIO_MB_DEFAULT_TMO, hw, NULL, 1); in csio_hw_use_fwconfig()
2116 if (csio_mb_issue(hw, mbp)) { in csio_hw_use_fwconfig()
2121 rv = csio_mb_fw_retval(mbp); in csio_hw_use_fwconfig()
2129 CSIO_INIT_MBP(mbp, caps_cmd, CSIO_MB_DEFAULT_TMO, hw, NULL, 1); in csio_hw_use_fwconfig()
2135 if (csio_mb_issue(hw, mbp)) { in csio_hw_use_fwconfig()
2140 rv = csio_mb_fw_retval(mbp); in csio_hw_use_fwconfig()
2159 if (csio_mb_issue(hw, mbp)) { in csio_hw_use_fwconfig()
2164 rv = csio_mb_fw_retval(mbp); in csio_hw_use_fwconfig()
2177 rv = csio_hw_validate_caps(hw, mbp); in csio_hw_use_fwconfig()
2181 mempool_free(mbp, hw->mb_mempool); in csio_hw_use_fwconfig()
2182 mbp = NULL; in csio_hw_use_fwconfig()
2215 if (mbp) in csio_hw_use_fwconfig()
2216 mempool_free(mbp, hw->mb_mempool); in csio_hw_use_fwconfig()
2608 struct csio_mb *mbp; in csio_hw_initialize() local
2614 mbp = mempool_alloc(hw->mb_mempool, GFP_ATOMIC); in csio_hw_initialize()
2615 if (!mbp) in csio_hw_initialize()
2618 csio_mb_initialize(hw, mbp, CSIO_MB_DEFAULT_TMO, NULL); in csio_hw_initialize()
2620 if (csio_mb_issue(hw, mbp)) { in csio_hw_initialize()
2625 retval = csio_mb_fw_retval(mbp); in csio_hw_initialize()
2632 mempool_free(mbp, hw->mb_mempool); in csio_hw_initialize()
2665 mempool_free(mbp, hw->mb_mempool); in csio_hw_initialize()
3743 struct csio_mb *mbp = NULL; in csio_hw_mb_timer() local
3746 mbp = csio_mb_tmo_handler(hw); in csio_hw_mb_timer()
3750 if (mbp) in csio_hw_mb_timer()
3751 mbp->mb_cbfn(hw, mbp); in csio_hw_mb_timer()