Lines Matching refs:bmc_fn_support

813 …_gather_info(struct ipmi_intf * intf, struct ipmi_function_params * p, struct bmc_fn_support * bmc)  in _gather_info()
903 struct bmc_fn_support * bmc_fn_support; in ipmi_firewall_info() local
912 bmc_fn_support = malloc(sizeof(struct bmc_fn_support)); in ipmi_firewall_info()
913 if (!bmc_fn_support) { in ipmi_firewall_info()
918 ret = _gather_info(intf, &p, bmc_fn_support); in ipmi_firewall_info()
922 if (!((p.lun < 0 || bmc_fn_support->lun[p.lun].support) && in ipmi_firewall_info()
923 (p.netfn < 0 || bmc_fn_support->lun[p.lun].netfn[p.netfn>>1].support) && in ipmi_firewall_info()
924 bmc_fn_support->lun[p.lun].netfn[p.netfn>>1].command[p.command].support)) in ipmi_firewall_info()
928 free(bmc_fn_support); in ipmi_firewall_info()
929 bmc_fn_support = NULL; in ipmi_firewall_info()
933 &bmc_fn_support->lun[p.lun].netfn[p.netfn>>1].command[p.command]; in ipmi_firewall_info()
951 if (!((p.lun < 0 || bmc_fn_support->lun[p.lun].support) && in ipmi_firewall_info()
952 (bmc_fn_support->lun[p.lun].netfn[p.netfn>>1].support))) in ipmi_firewall_info()
956 free(bmc_fn_support); in ipmi_firewall_info()
957 bmc_fn_support = NULL; in ipmi_firewall_info()
964 print_bitfield(bmc_fn_support->lun[l].netfn[n].command_mask, in ipmi_firewall_info()
967 print_bitfield(bmc_fn_support->lun[l].netfn[n].config_mask, in ipmi_firewall_info()
970 print_bitfield(bmc_fn_support->lun[l].netfn[n].enable_mask, in ipmi_firewall_info()
976 if (bmc_fn_support->lun[l].support) { in ipmi_firewall_info()
979 if (bmc_fn_support->lun[l].netfn[n].support) { in ipmi_firewall_info()
981 print_bitfield(bmc_fn_support->lun[l].netfn[n].command_mask, in ipmi_firewall_info()
984 print_bitfield(bmc_fn_support->lun[l].netfn[n].config_mask, in ipmi_firewall_info()
987 print_bitfield(bmc_fn_support->lun[l].netfn[n].enable_mask, in ipmi_firewall_info()
997 free(bmc_fn_support); in ipmi_firewall_info()
998 bmc_fn_support = NULL; in ipmi_firewall_info()
1016 struct bmc_fn_support * bmc_fn_support; in ipmi_firewall_enable_disable() local
1040 bmc_fn_support = malloc(sizeof(struct bmc_fn_support)); in ipmi_firewall_enable_disable()
1041 if (!bmc_fn_support) { in ipmi_firewall_enable_disable()
1046 ret = _gather_info(intf, &p, bmc_fn_support); in ipmi_firewall_enable_disable()
1048 free(bmc_fn_support); in ipmi_firewall_enable_disable()
1049 bmc_fn_support = NULL; in ipmi_firewall_enable_disable()
1060 bmc_fn_support->lun[l].netfn[n].command[c].subfn_enable, in ipmi_firewall_enable_disable()
1064 &bmc_fn_support->lun[l].netfn[n].command[c], enables); in ipmi_firewall_enable_disable()
1071 &bmc_fn_support->lun[l].netfn[n].command[c], enables); in ipmi_firewall_enable_disable()
1073 &bmc_fn_support->lun[l].netfn[n].enable_mask, sizeof(enables)); in ipmi_firewall_enable_disable()
1076 &bmc_fn_support->lun[l].netfn[n], enables, p.force); in ipmi_firewall_enable_disable()
1082 &bmc_fn_support->lun[l].netfn[n], enables, p.force); in ipmi_firewall_enable_disable()
1089 free(bmc_fn_support); in ipmi_firewall_enable_disable()
1090 bmc_fn_support = NULL; in ipmi_firewall_enable_disable()
1107 struct bmc_fn_support * bmc_fn_support; in ipmi_firewall_reset() local
1123 bmc_fn_support = malloc(sizeof(struct bmc_fn_support)); in ipmi_firewall_reset()
1124 if (!bmc_fn_support) { in ipmi_firewall_reset()
1129 ret = _gather_info(intf, &p, bmc_fn_support); in ipmi_firewall_reset()
1131 free(bmc_fn_support); in ipmi_firewall_reset()
1132 bmc_fn_support = NULL; in ipmi_firewall_reset()
1145 &bmc_fn_support->lun[l].netfn[n].command[c], enables); in ipmi_firewall_reset()
1150 &bmc_fn_support->lun[l].netfn[n], enables, 0); in ipmi_firewall_reset()
1154 free(bmc_fn_support); in ipmi_firewall_reset()
1155 bmc_fn_support = NULL; in ipmi_firewall_reset()