Home
last modified time | relevance | path

Searched refs:func_id (Results 1 – 25 of 99) sorted by relevance

1234

/linux-6.6.21/arch/arm64/kvm/hyp/nvhe/
Dpsci-relay.c44 #define is_psci_0_1(what, func_id) \ argument
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 <= PSCI_0_2_FN(31)) || in is_psci_0_2_call()
60 (PSCI_0_2_FN64(0) <= func_id && func_id <= PSCI_0_2_FN64(31)); in is_psci_0_2_call()
[all …]
Dffa.c103 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 != FFA_FN64_MEM_LEND); in do_ffa_mem_xfer()
[all …]
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Dpagealloc.c50 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()
[all …]
/linux-6.6.21/arch/arm64/kvm/
Dhypercalls.c68 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 static u8 kvm_smccc_get_action(struct kvm_vcpu *vcpu, u32 func_id) in kvm_smccc_get_action() argument
[all …]
Dtrng.c54 u32 func_id = smccc_get_function(vcpu); in kvm_trng_call() local
58 switch (func_id) { in kvm_trng_call()
/linux-6.6.21/drivers/net/ethernet/huawei/hinic/
Dhinic_port.h188 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
[all …]
Dhinic_port.c373 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 = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_set_hash_engine()
[all …]
Dhinic_sriov.c30 u16 vlan_id, u16 func_id) in hinic_set_mac() argument
36 mac_info.func_idx = func_id; in hinic_set_mac()
62 link.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_notify_vf_link_status()
114 vf_vlan.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_set_vf_vlan()
142 rate_cfg.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_set_vf_tx_rate_max_min()
172 rate_cfg.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_set_vf_rate_limit()
215 u16 func_id, vlan_id; in hinic_init_vf_config() local
220 func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_init_vf_config()
225 func_id); in hinic_init_vf_config()
536 u8 *new_mac, u16 vlan_id, u16 func_id) in hinic_update_mac() argument
[all …]
Dhinic_sriov.h60 u16 func_id; member
73 u16 func_id; member
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/sf/
Dcmd.c29 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()
Dpriv.h12 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);
/linux-6.6.21/drivers/firmware/arm_scmi/
Dsmc.c63 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()
225 arm_smccc_1_1_invoke(scmi_info->func_id, page, offset, 0, 0, 0, 0, 0, in smc_send_message()
/linux-6.6.21/drivers/firmware/smccc/
Dkvm_guest.c44 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()
/linux-6.6.21/drivers/firmware/arm_ffa/
Ddriver.c320 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, addr, buf_sz, in ffa_setup_and_transmit()
[all …]
/linux-6.6.21/tools/testing/selftests/kvm/aarch64/
Dhypercalls.c53 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()
109 res.a0, hc_info->func_id, hc_info->arg1, stage); in guest_test_hvc()
114 res.a0, hc_info->func_id, hc_info->arg1, stage); in guest_test_hvc()
Dsmccc_filter.c28 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()
/linux-6.6.21/kernel/bpf/
Dverifier.c201 u32 func_id, u16 offset, unsigned long *addr);
276 int func_id; member
288 u32 func_id; member
508 static bool is_acquire_function(enum bpf_func_id func_id, in is_acquire_function() argument
513 if (func_id == BPF_FUNC_sk_lookup_tcp || in is_acquire_function()
514 func_id == BPF_FUNC_sk_lookup_udp || in is_acquire_function()
515 func_id == BPF_FUNC_skc_lookup_tcp || in is_acquire_function()
516 func_id == BPF_FUNC_ringbuf_reserve || in is_acquire_function()
517 func_id == BPF_FUNC_kptr_xchg) in is_acquire_function()
520 if (func_id == BPF_FUNC_map_lookup_elem && in is_acquire_function()
[all …]
Dbpf_lsm.c197 bpf_lsm_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in bpf_lsm_func_proto() argument
202 func_proto = cgroup_common_func_proto(func_id, prog); in bpf_lsm_func_proto()
207 switch (func_id) { in bpf_lsm_func_proto()
253 return tracing_prog_func_proto(func_id, prog); in bpf_lsm_func_proto()
Dcgroup.c1616 cgroup_dev_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in cgroup_dev_func_proto() argument
1620 func_proto = cgroup_common_func_proto(func_id, prog); in cgroup_dev_func_proto()
1624 func_proto = cgroup_current_func_proto(func_id, prog); in cgroup_dev_func_proto()
1628 switch (func_id) { in cgroup_dev_func_proto()
1632 return bpf_base_func_proto(func_id); in cgroup_dev_func_proto()
2164 sysctl_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in sysctl_func_proto() argument
2168 func_proto = cgroup_common_func_proto(func_id, prog); in sysctl_func_proto()
2172 func_proto = cgroup_current_func_proto(func_id, prog); in sysctl_func_proto()
2176 switch (func_id) { in sysctl_func_proto()
2190 return bpf_base_func_proto(func_id); in sysctl_func_proto()
[all …]
/linux-6.6.21/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sp.h77 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 …]
Dbnx2x_sp.c850 hdr->func_id = raw->func_id; in bnx2x_vlan_mac_set_cmd_hdr_e2()
1000 cfg_entry->pf_id = r->func_id; in bnx2x_vlan_mac_set_cfg_entry_e1x()
2097 u32 cid, u8 func_id, void *rdata, dma_addr_t rdata_mapping, int state, in bnx2x_init_raw_obj() argument
2100 raw->func_id = func_id; in bnx2x_init_raw_obj()
2115 u8 cl_id, u32 cid, u8 func_id, void *rdata, dma_addr_t rdata_mapping, in bnx2x_init_vlan_mac_common() argument
2133 bnx2x_init_raw_obj(&o->raw, cl_id, cid, func_id, rdata, rdata_mapping, in bnx2x_init_vlan_mac_common()
2139 u8 cl_id, u32 cid, u8 func_id, void *rdata, in bnx2x_init_mac_obj() argument
2146 bnx2x_init_vlan_mac_common(mac_obj, cl_id, cid, func_id, rdata, in bnx2x_init_mac_obj()
2193 u8 cl_id, u32 cid, u8 func_id, void *rdata, in bnx2x_init_vlan_obj() argument
2200 bnx2x_init_vlan_mac_common(vlan_obj, cl_id, cid, func_id, rdata, in bnx2x_init_vlan_obj()
[all …]
/linux-6.6.21/drivers/pcmcia/
Dds.c100 __u8 func_id, function, device_no; in new_id_store() local
106 &match_flags, &manf_id, &card_id, &func_id, &function, &device_no, in new_id_store()
118 dynid->id.func_id = func_id; in new_id_store()
401 cistpl_funcid_t func_id; in pcmcia_device_query() local
420 CISTPL_FUNCID, &func_id)) { in pcmcia_device_query()
422 p_dev->func_id = func_id.func; in pcmcia_device_query()
442 p_dev->func_id = CISTPL_FUNCID_MEMORY; in pcmcia_device_query()
858 if ((!dev->has_func_id) || (dev->func_id != did->func_id)) in pcmcia_devmatch()
962 p_dev->has_func_id ? p_dev->func_id : 0, in pcmcia_bus_uevent()
1017 pcmcia_device_attr(func_id, has_func_id, "0x%02x\n");
[all …]
/linux-6.6.21/arch/ia64/kernel/
Dpalinfo.c799 unsigned func_id: 32; /* which function is requested */ member
804 #define func_id pal_func_cpu.func_id macro
841 ptr.func = palinfo_entries[f->func_id].proc_read; in palinfo_handle_smp()
849 "error %d\n", smp_processor_id(), f->req_cpu, f->func_id, ret); in palinfo_handle_smp()
875 (*palinfo_entries[f->func_id].proc_read)(m); in proc_palinfo_show()
898 f.func_id = j; in palinfo_add_proc()
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/bpf/
Dverifier.c178 u32 func_id = meta->insn.imm; in nfp_bpf_check_helper_call() local
180 switch (func_id) { in nfp_bpf_check_helper_call()
205 meta->func_id ? &meta->arg2 : NULL)) in nfp_bpf_check_helper_call()
213 meta->func_id ? &meta->arg2 : NULL) || in nfp_bpf_check_helper_call()
223 meta->func_id ? &meta->arg2 : NULL)) in nfp_bpf_check_helper_call()
288 if (!meta->func_id) in nfp_bpf_check_helper_call()
299 pr_vlog(env, "unsupported function id: %d\n", func_id); in nfp_bpf_check_helper_call()
303 meta->func_id = func_id; in nfp_bpf_check_helper_call()
/linux-6.6.21/net/ipv4/
Dbpf_tcp_ca.c159 bpf_tcp_ca_get_func_proto(enum bpf_func_id func_id, in bpf_tcp_ca_get_func_proto() argument
162 switch (func_id) { in bpf_tcp_ca_get_func_proto()
194 return bpf_base_func_proto(func_id); in bpf_tcp_ca_get_func_proto()

1234