Searched refs:vbool (Results 1 – 15 of 15) sorted by relevance
| /linux/drivers/net/ethernet/amd/pds_core/ |
| H A D | devlink.c | 35 ctx->val.vbool = vt_entry->enabled; in pdsc_dl_enable_get() 53 if (vt_entry->enabled == ctx->val.vbool) in pdsc_dl_enable_set() 56 vt_entry->enabled = ctx->val.vbool; in pdsc_dl_enable_set() 60 if (ctx->val.vbool) in pdsc_dl_enable_set()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | devlink.c | 467 bool new_state = val->vbool; in mlx5_devlink_enable_roce_validate() 601 value.vbool = MLX5_CAP_GEN(dev, roce) && !mlx5_dev_is_lightweight(dev); in mlx5_devlink_set_params_init_values() 654 value.vbool = !mlx5_dev_is_lightweight(dev); in mlx5_devlink_eth_params_register() 783 bool new_state = val->vbool; in mlx5_devlink_enable_rdma_validate() 809 value.vbool = !mlx5_dev_is_lightweight(dev); in mlx5_devlink_rdma_params_register() 844 value.vbool = !mlx5_dev_is_lightweight(dev); in mlx5_devlink_vnet_params_register()
|
| H A D | fw_reset.c | 69 if (ctx->val.vbool) in mlx5_fw_reset_enable_remote_dev_reset_set() 85 ctx->val.vbool = !test_bit(MLX5_FW_RESET_FLAGS_NACK_RESET_REQUEST, in mlx5_fw_reset_enable_remote_dev_reset_get()
|
| H A D | eswitch.c | 2492 if (ctx->val.vbool) in mlx5_devlink_esw_multiport_set() 2505 ctx->val.vbool = mlx5_lag_is_mpesw(dev); in mlx5_devlink_esw_multiport_get()
|
| H A D | main.c | 483 return val.vbool; in mlx5_is_roce_on()
|
| H A D | eswitch_offloads.c | 2736 if (ctx->val.vbool) in esw_port_metadata_set() 2751 ctx->val.vbool = mlx5_eswitch_vport_match_metadata_enabled(dev->priv.eswitch); in esw_port_metadata_get()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | nv_param.c | 548 ctx->val.vbool = false; in mlx5_devlink_enable_sriov_get() 560 ctx->val.vbool = sriov_en; in mlx5_devlink_enable_sriov_get() 571 ctx->val.vbool = sriov_en && in mlx5_devlink_enable_sriov_get() 640 MLX5_SET(nv_pf_pci_conf, data, pf_total_vf_en, ctx->val.vbool); in mlx5_devlink_enable_sriov_set()
|
| /linux/drivers/net/ethernet/intel/ice/devlink/ |
| H A D | devlink.c | 1367 ctx->val.vbool = !!(cdev->rdma_protocol & IIDC_RDMA_PROTOCOL_ROCEV2); in ice_devlink_enable_roce_get() 1378 bool roce_ena = ctx->val.vbool; in ice_devlink_enable_roce_set() 1434 ctx->val.vbool = !!(cdev->rdma_protocol & IIDC_RDMA_PROTOCOL_IWARP); in ice_devlink_enable_iw_get() 1445 bool iw_ena = ctx->val.vbool; in ice_devlink_enable_iw_set() 1634 bool new_state = val->vbool; in ice_devlink_enable_rdma_validate() 1800 value.vbool = test_bit(ICE_FLAG_RDMA_ENA, pf->flags); in ice_devlink_register_params()
|
| /linux/net/devlink/ |
| H A D | param.c | 253 if (nla_put_u8(msg, nla_type, val->vbool)) in devlink_nl_param_value_put() 256 if (val->vbool && nla_put_flag(msg, nla_type)) in devlink_nl_param_value_put() 591 value->vbool = nla_get_flag(param_data); in devlink_param_value_get_from_info()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu_devlink.c | 1452 ctx->val.vbool = rvu->def_rule_cntr_en; in rvu_af_dl_npc_def_rule_cntr_get() 1465 err = npc_config_cntr_default_entries(rvu, ctx->val.vbool); in rvu_af_dl_npc_def_rule_cntr_set() 1467 rvu->def_rule_cntr_en = ctx->val.vbool; in rvu_af_dl_npc_def_rule_cntr_set()
|
| /linux/drivers/net/netdevsim/ |
| H A D | dev.c | 526 value.vbool = nsim_dev->test1; in nsim_devlink_set_params_init_values() 547 nsim_dev->test1 = saved_value.vbool; in nsim_devlink_param_load_driverinit_values()
|
| /linux/include/net/ |
| H A D | devlink.h | 451 bool vbool; member
|
| /linux/drivers/net/ethernet/ti/ |
| H A D | am65-cpsw-nuss.c | 3084 ctx->val.vbool = !common->is_emac_mode; in am65_cpsw_dl_switch_mode_get() 3143 bool switch_en = ctx->val.vbool; in am65_cpsw_dl_switch_mode_set()
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_lib.c | 843 return err ? test_bit(ICE_FLAG_RDMA_ENA, pf->flags) : value.vbool; in ice_is_rdma_ena()
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | stmmac_main.c | 7711 priv->tsfupdt_coarse = ctx->val.vbool; in stmmac_dl_ts_coarse_set() 7733 ctx->val.vbool = priv->tsfupdt_coarse;
|