/kernel/linux/linux-6.6/arch/arm64/kvm/hyp/nvhe/ |
H A D | psci-relay.c | 44 #define is_psci_0_1(what, func_id) \ 46 (func_id) == kvm_host_psci_config.function_ids_0_1.what) 48 static bool is_psci_0_1_call(u64 func_id) in is_psci_0_1_call() argument 50 return (is_psci_0_1(cpu_suspend, func_id) || in is_psci_0_1_call() 51 is_psci_0_1(cpu_on, func_id) || in is_psci_0_1_call() 52 is_psci_0_1(cpu_off, func_id) || in is_psci_0_1_call() 53 is_psci_0_1(migrate, func_id)); in is_psci_0_1_call() 56 static bool is_psci_0_2_call(u64 func_id) in is_psci_0_2_call() argument 59 return (PSCI_0_2_FN(0) <= func_id && func_id < in is_psci_0_2_call() 107 psci_cpu_on(u64 func_id, struct kvm_cpu_context *host_ctxt) psci_cpu_on() argument 151 psci_cpu_suspend(u64 func_id, struct kvm_cpu_context *host_ctxt) psci_cpu_suspend() argument 179 psci_system_suspend(u64 func_id, struct kvm_cpu_context *host_ctxt) psci_system_suspend() argument 224 psci_0_1_handler(u64 func_id, struct kvm_cpu_context *host_ctxt) psci_0_1_handler() argument 236 psci_0_2_handler(u64 func_id, struct kvm_cpu_context *host_ctxt) psci_0_2_handler() argument 262 psci_1_0_handler(u64 func_id, struct kvm_cpu_context *host_ctxt) psci_1_0_handler() argument 276 kvm_host_psci_handler(struct kvm_cpu_context *host_ctxt, u32 func_id) kvm_host_psci_handler() argument [all...] |
H A D | ffa.c | 103 static bool is_ffa_call(u64 func_id) in is_ffa_call() argument 105 return ARM_SMCCC_IS_FAST_CALL(func_id) && in is_ffa_call() 106 ARM_SMCCC_OWNER_NUM(func_id) == ARM_SMCCC_OWNER_STANDARD && in is_ffa_call() 107 ARM_SMCCC_FUNC_NUM(func_id) >= FFA_MIN_FUNC_NUM && in is_ffa_call() 108 ARM_SMCCC_FUNC_NUM(func_id) <= FFA_MAX_FUNC_NUM; in is_ffa_call() 155 static void ffa_mem_xfer(struct arm_smccc_res *res, u64 func_id, u32 len, in ffa_mem_xfer() argument 158 arm_smccc_1_1_smc(func_id, len, fraglen, in ffa_mem_xfer() 418 static __always_inline void do_ffa_mem_xfer(const u64 func_id, in do_ffa_mem_xfer() argument 431 BUILD_BUG_ON(func_id != FFA_FN64_MEM_SHARE && in do_ffa_mem_xfer() 432 func_id ! in do_ffa_mem_xfer() 581 ffa_call_supported(u64 func_id) ffa_call_supported() argument 637 kvm_host_ffa_handler(struct kvm_cpu_context *host_ctxt, u32 func_id) kvm_host_ffa_handler() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | pagealloc.c | 50 u16 func_id; member 77 static u32 get_function(u16 func_id, bool ec_function) in get_function() argument 79 return (u32)func_id | (ec_function << 16); in get_function() 179 static int mlx5_cmd_query_pages(struct mlx5_core_dev *dev, u16 *func_id, in mlx5_cmd_query_pages() argument 197 *func_id = MLX5_GET(query_pages_out, out, function_id); in mlx5_cmd_query_pages() 317 static void page_notify_fail(struct mlx5_core_dev *dev, u16 func_id, in page_notify_fail() argument 325 MLX5_SET(manage_pages_in, in, function_id, func_id); in page_notify_fail() 330 mlx5_core_warn(dev, "page notify failed func_id(%d) err(%d)\n", in page_notify_fail() 331 func_id, err); in page_notify_fail() 334 static int give_pages(struct mlx5_core_dev *dev, u16 func_id, in argument 402 release_all_pages(struct mlx5_core_dev *dev, u16 func_id, bool ec_function) release_all_pages() argument 458 u32 func_id; reclaim_pages_cmd() local 486 reclaim_pages(struct mlx5_core_dev *dev, u16 func_id, int npages, int *nclaimed, bool ec_function) reclaim_pages() argument 579 u16 func_id; req_pages_handler() local 611 u16 func_id; mlx5_satisfy_startup_pages() local 642 mlx5_reclaim_root_pages(struct mlx5_core_dev *dev, struct rb_root *root, u16 func_id) mlx5_reclaim_root_pages() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | pagealloc.c | 50 u16 func_id; member 72 static u32 get_function(u16 func_id, bool ec_function) in get_function() argument 74 return (u32)func_id | (ec_function << 16); in get_function() 77 static u16 func_id_to_type(struct mlx5_core_dev *dev, u16 func_id, bool ec_function) in func_id_to_type() argument 79 if (!func_id) in func_id_to_type() 82 if (func_id <= max(mlx5_core_max_vfs(dev), mlx5_core_max_ec_vfs(dev))) { in func_id_to_type() 198 static int mlx5_cmd_query_pages(struct mlx5_core_dev *dev, u16 *func_id, in mlx5_cmd_query_pages() argument 216 *func_id = MLX5_GET(query_pages_out, out, function_id); in mlx5_cmd_query_pages() 336 static void page_notify_fail(struct mlx5_core_dev *dev, u16 func_id, in page_notify_fail() argument 344 MLX5_SET(manage_pages_in, in, function_id, func_id); in page_notify_fail() 353 give_pages(struct mlx5_core_dev *dev, u16 func_id, int npages, int event, bool ec_function) give_pages() argument 434 release_all_pages(struct mlx5_core_dev *dev, u16 func_id, bool ec_function) release_all_pages() argument 489 u32 func_id; reclaim_pages_cmd() local 517 reclaim_pages(struct mlx5_core_dev *dev, u16 func_id, int npages, int *nclaimed, bool event, bool ec_function) reclaim_pages() argument 620 u16 func_id; req_pages_handler() local 652 u16 func_id; mlx5_satisfy_startup_pages() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_port.h | 187 u16 func_id; member 197 u16 func_id; member 212 u16 func_id; member 248 u16 func_id; member 259 u16 func_id; member 268 u16 func_id; member 277 u16 func_id; member 292 u16 func_id; member 303 u16 func_id; member 313 u16 func_id; member 324 u16 func_id; global() member 348 u16 func_id; global() member 358 u16 func_id; global() member 369 u16 func_id; global() member 388 u16 func_id; global() member 407 u16 func_id; global() member 418 u16 func_id; global() member 429 u16 func_id; global() member 440 u16 func_id; global() member 592 u16 func_id; global() member 619 u16 func_id; global() member 631 u16 func_id; global() member 654 u16 func_id; global() member 662 u16 func_id; global() member 674 u16 func_id; global() member [all...] |
H A D | hinic_port.c | 388 tso_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_set_tso() 418 rx_csum_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_set_rx_csum_offload() 449 vlan_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_set_rx_vlan_offload() 474 rq_num.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_set_max_qnum() 501 lro_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_set_rx_lro() 663 rss_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_get_indir_tbl() 759 ctx_tbl.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_get_rss_type() 794 rss_key.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_set_template_tbl() 827 temp_key.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_get_template_tbl() 854 rss_engine.func_id in hinic_rss_set_hash_engine() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_port.h | 188 u16 func_id; member 198 u16 func_id; member 213 u16 func_id; member 249 u16 func_id; member 260 u16 func_id; member 269 u16 func_id; member 278 u16 func_id; member 293 u16 func_id; member 304 u16 func_id; member 314 u16 func_id; member 325 u16 func_id; global() member 349 u16 func_id; global() member 369 u16 func_id; global() member 380 u16 func_id; global() member 399 u16 func_id; global() member 418 u16 func_id; global() member 429 u16 func_id; global() member 440 u16 func_id; global() member 451 u16 func_id; global() member 603 u16 func_id; global() member 630 u16 func_id; global() member 642 u16 func_id; global() member 665 u16 func_id; global() member 673 u16 func_id; global() member 685 u16 func_id; global() member [all...] |
H A D | hinic_port.c | 373 tso_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_port_set_tso() 403 rx_csum_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_set_rx_csum_offload() 434 vlan_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_set_rx_vlan_offload() 489 rq_num.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_set_max_qnum() 516 lro_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_set_rx_lro() 678 rss_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_get_indir_tbl() 774 ctx_tbl.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_get_rss_type() 809 rss_key.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_set_template_tbl() 842 temp_key.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_get_template_tbl() 869 rss_engine.func_id in hinic_rss_set_hash_engine() [all...] |
/kernel/linux/linux-6.6/arch/arm64/kvm/ |
H A D | hypercalls.c | 68 static bool kvm_smccc_default_allowed(u32 func_id) in kvm_smccc_default_allowed() argument 70 switch (func_id) { in kvm_smccc_default_allowed() 81 if (ARM_SMCCC_OWNER_NUM(func_id) == ARM_SMCCC_OWNER_STANDARD && in kvm_smccc_default_allowed() 82 ARM_SMCCC_FUNC_NUM(func_id) <= 0x1f) in kvm_smccc_default_allowed() 89 if (func_id >= KVM_PSCI_FN(0) && func_id <= KVM_PSCI_FN(3)) in kvm_smccc_default_allowed() 96 static bool kvm_smccc_test_fw_bmap(struct kvm_vcpu *vcpu, u32 func_id) in kvm_smccc_test_fw_bmap() argument 100 switch (func_id) { in kvm_smccc_test_fw_bmap() 199 static u8 kvm_smccc_filter_get_action(struct kvm *kvm, u32 func_id) in kvm_smccc_filter_get_action() argument 201 unsigned long idx = func_id; in kvm_smccc_filter_get_action() 217 kvm_smccc_get_action(struct kvm_vcpu *vcpu, u32 func_id) kvm_smccc_get_action() argument 234 kvm_prepare_hypercall_exit(struct kvm_vcpu *vcpu, u32 func_id) kvm_prepare_hypercall_exit() argument 256 u32 func_id = smccc_get_function(vcpu); kvm_smccc_call_handler() local [all...] |
/kernel/linux/linux-5.10/drivers/firmware/arm_scmi/ |
H A D | smc.c | 25 * @func_id: smc/hvc call function id 32 u32 func_id; member 53 u32 func_id; in smc_chan_setup() local 78 ret = of_property_read_u32(dev->of_node, "arm,smc-id", &func_id); in smc_chan_setup() 82 scmi_info->func_id = func_id; in smc_chan_setup() 113 arm_smccc_1_1_invoke(scmi_info->func_id, 0, 0, 0, 0, 0, 0, 0, &res); in smc_send_message()
|
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/nvhe/ |
H A D | hyp-main.c | 17 static void handle_host_hcall(unsigned long func_id, in handle_host_hcall() argument 22 switch (func_id) { in handle_host_hcall() 110 unsigned long func_id; in handle_trap() local 115 func_id = host_ctxt->regs.regs[0]; in handle_trap() 116 handle_host_hcall(func_id, host_ctxt); in handle_trap()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
H A D | cmd.c | 29 int mlx5_cmd_sf_enable_hca(struct mlx5_core_dev *dev, u16 func_id) in mlx5_cmd_sf_enable_hca() argument 35 MLX5_SET(enable_hca_in, in, function_id, func_id); in mlx5_cmd_sf_enable_hca() 40 int mlx5_cmd_sf_disable_hca(struct mlx5_core_dev *dev, u16 func_id) in mlx5_cmd_sf_disable_hca() argument 46 MLX5_SET(disable_hca_in, in, function_id, func_id); in mlx5_cmd_sf_disable_hca()
|
H A D | priv.h | 12 int mlx5_cmd_sf_enable_hca(struct mlx5_core_dev *dev, u16 func_id); 13 int mlx5_cmd_sf_disable_hca(struct mlx5_core_dev *dev, u16 func_id);
|
/kernel/linux/common_modules/tzdriver/agent_rpmb/generic/ |
H A D | rpmb_driver.h | 24 int vendor_rpmb_ioctl_cmd(enum func_id id, enum rpmb_op_type operation,
32 static inline int vendor_rpmb_ioctl_cmd(enum func_id id, enum rpmb_op_type operation,
in vendor_rpmb_ioctl_cmd() 63 int rpmb_ioctl_cmd(enum func_id id, enum rpmb_op_type operation,
|
/kernel/linux/linux-6.6/drivers/firmware/arm_scmi/ |
H A D | smc.c | 50 * @func_id: smc/hvc call function id 63 u32 func_id; member 131 u32 func_id; in smc_chan_setup() local 161 ret = of_property_read_u32(dev->of_node, "arm,smc-id", &func_id); in smc_chan_setup() 186 scmi_info->func_id = func_id; in smc_chan_setup() 232 arm_smccc_1_1_invoke(scmi_info->func_id, page, offset, 0, 0, 0, 0, 0, in smc_send_message()
|
/kernel/linux/linux-6.6/drivers/firmware/arm_ffa/ |
H A D | driver.c | 320 static int ffa_mem_first_frag(u32 func_id, phys_addr_t buf, u32 buf_sz, in ffa_mem_first_frag() argument 326 .a0 = func_id, .a1 = len, .a2 = frag_len, in ffa_mem_first_frag() 380 ffa_transmit_fragment(u32 func_id, phys_addr_t buf, u32 buf_sz, u32 frag_len, in ffa_transmit_fragment() argument 386 return ffa_mem_first_frag(func_id, buf, buf_sz, frag_len, len, handle); in ffa_transmit_fragment() 400 static u8 ffa_memory_attributes_get(u32 func_id) in ffa_memory_attributes_get() argument 406 if (func_id == FFA_FN_NATIVE(MEM_LEND) || in ffa_memory_attributes_get() 407 func_id == FFA_MEM_LEND) in ffa_memory_attributes_get() 414 ffa_setup_and_transmit(u32 func_id, void *buffer, u32 max_fragsize, in ffa_setup_and_transmit() argument 429 mem_region->attributes = ffa_memory_attributes_get(func_id); in ffa_setup_and_transmit() 463 rc = ffa_transmit_fragment(func_id, add in ffa_setup_and_transmit() 491 ffa_memory_ops(u32 func_id, struct ffa_mem_ops_args *args) ffa_memory_ops() argument [all...] |
/kernel/linux/linux-5.10/kernel/bpf/ |
H A D | bpf_lsm.c | 55 bpf_lsm_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in bpf_lsm_func_proto() argument 57 switch (func_id) { in bpf_lsm_func_proto() 67 return tracing_prog_func_proto(func_id, prog); in bpf_lsm_func_proto()
|
H A D | verifier.c | 240 int func_id; member 439 static bool is_release_function(enum bpf_func_id func_id) in is_release_function() argument 441 return func_id == BPF_FUNC_sk_release || in is_release_function() 442 func_id == BPF_FUNC_ringbuf_submit || in is_release_function() 443 func_id == BPF_FUNC_ringbuf_discard; in is_release_function() 446 static bool may_be_acquire_function(enum bpf_func_id func_id) in may_be_acquire_function() argument 448 return func_id == BPF_FUNC_sk_lookup_tcp || in may_be_acquire_function() 449 func_id == BPF_FUNC_sk_lookup_udp || in may_be_acquire_function() 450 func_id == BPF_FUNC_skc_lookup_tcp || in may_be_acquire_function() 451 func_id in may_be_acquire_function() 455 is_acquire_function(enum bpf_func_id func_id, const struct bpf_map *map) is_acquire_function() argument 474 is_ptr_cast_function(enum bpf_func_id func_id) is_ptr_cast_function() argument 4936 may_update_sockmap(struct bpf_verifier_env *env, int func_id) may_update_sockmap() argument 4973 check_map_func_compatibility(struct bpf_verifier_env *env, struct bpf_map *map, int func_id) check_map_func_compatibility() argument 5221 check_refcount_ok(const struct bpf_func_proto *fn, int func_id) check_refcount_ok() argument 5263 check_func_proto(const struct bpf_func_proto *fn, int func_id) check_func_proto() argument 5492 do_refine_retval_range(struct bpf_reg_state *regs, int ret_type, int func_id, struct bpf_call_arg_meta *meta) do_refine_retval_range() argument 5513 record_func_map(struct bpf_verifier_env *env, struct bpf_call_arg_meta *meta, int func_id, int insn_idx) record_func_map() argument 5556 record_func_key(struct bpf_verifier_env *env, struct bpf_call_arg_meta *meta, int func_id, int insn_idx) record_func_key() argument 5604 check_helper_call(struct bpf_verifier_env *env, int func_id, int insn_idx) check_helper_call() argument [all...] |
/kernel/linux/linux-6.6/drivers/firmware/smccc/ |
H A D | kvm_guest.c | 44 bool kvm_arm_hyp_service_available(u32 func_id) in kvm_arm_hyp_service_available() argument 46 if (func_id >= ARM_SMCCC_KVM_NUM_FUNCS) in kvm_arm_hyp_service_available() 49 return test_bit(func_id, __kvm_arm_hyp_services); in kvm_arm_hyp_service_available()
|
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/aarch64/ |
H A D | hypercalls.c | 53 uint32_t func_id; member 59 .func_id = f, \ 102 smccc_hvc(hc_info->func_id, hc_info->arg1, 0, 0, 0, 0, 0, 0, &res); in guest_test_hvc() 108 "a0 = 0x%lx, func_id = 0x%x, arg1 = 0x%llx, stage = %u", in guest_test_hvc() 109 res.a0, hc_info->func_id, hc_info->arg1, stage); in guest_test_hvc() 113 "a0 = 0x%lx, func_id = 0x%x, arg1 = 0x%llx, stage = %u", in guest_test_hvc() 114 res.a0, hc_info->func_id, hc_info->arg1, stage); in guest_test_hvc()
|
H A D | smccc_filter.c | 28 static void guest_main(uint32_t func_id, enum smccc_conduit conduit) in guest_main() argument 33 smccc_smc(func_id, 0, 0, 0, 0, 0, 0, 0, &res); in guest_main() 35 smccc_hvc(func_id, 0, 0, 0, 0, 0, 0, 0, &res); in guest_main() 207 static void expect_call_fwd_to_user(struct kvm_vcpu *vcpu, uint32_t func_id, in expect_call_fwd_to_user() argument 214 TEST_ASSERT(run->hypercall.nr == func_id, in expect_call_fwd_to_user()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_sp.h | 77 u8 func_id; member 481 u8 func_id; member 1052 u8 func_id; member 1404 u8 cid_cnt, u8 func_id, void *rdata, 1416 u8 cl_id, u32 cid, u8 func_id, void *rdata, 1423 u8 cl_id, u32 cid, u8 func_id, void *rdata, 1430 u8 cl_id, u32 cid, u8 func_id, void *rdata, 1470 u8 mcast_cl_id, u32 mcast_cid, u8 func_id, 1501 struct bnx2x_credit_pool_obj *p, u8 func_id, 1504 struct bnx2x_credit_pool_obj *p, u8 func_id, [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_sp.h | 77 u8 func_id; member 481 u8 func_id; member 1052 u8 func_id; member 1404 u8 cid_cnt, u8 func_id, void *rdata, 1416 u8 cl_id, u32 cid, u8 func_id, void *rdata, 1423 u8 cl_id, u32 cid, u8 func_id, void *rdata, 1430 u8 cl_id, u32 cid, u8 func_id, void *rdata, 1470 u8 mcast_cl_id, u32 mcast_cid, u8 func_id, 1501 struct bnx2x_credit_pool_obj *p, u8 func_id, 1504 struct bnx2x_credit_pool_obj *p, u8 func_id, [all...] |
/kernel/linux/common_modules/tzdriver/agent_rpmb/mdc/ |
H A D | rpmb.h | 34 enum func_id {
enum 72 enum func_id id,
|
H A D | rpmb_driver.c | 21 typedef int *(rpmb_ioctl_func)(enum func_id id, enum rpmb_op_type operation,
24 int rpmb_ioctl_cmd(enum func_id id, enum rpmb_op_type operation,
in rpmb_ioctl_cmd()
|