| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | cgroup_mprog_opts.c | 7 static void assert_mprog_count(int cg, int atype, int expected) in assert_mprog_count() argument 12 err = bpf_prog_query(cg, atype, 0, &attach_flags, in assert_mprog_count() 18 static void test_prog_attach_detach(int atype) in test_prog_attach_detach() argument 46 assert_mprog_count(cg, atype, 0); in test_prog_attach_detach() 54 err = bpf_prog_attach_opts(fd1, cg, atype, &opta); in test_prog_attach_detach() 58 assert_mprog_count(cg, atype, 1); in test_prog_attach_detach() 66 err = bpf_prog_attach_opts(fd2, cg, atype, &opta); in test_prog_attach_detach() 70 assert_mprog_count(cg, atype, 2); in test_prog_attach_detach() 79 err = bpf_prog_attach_opts(fd3, cg, atype, &opta); in test_prog_attach_detach() 83 assert_mprog_count(cg, atype, in test_prog_attach_detach() 150 test_link_attach_detach(int atype) test_link_attach_detach() argument 276 test_preorder_prog_attach_detach(int atype) test_preorder_prog_attach_detach() argument 384 test_preorder_link_attach_detach(int atype) test_preorder_link_attach_detach() argument 483 test_invalid_attach_detach(int atype) test_invalid_attach_detach() argument [all...] |
| H A D | cgroup_preorder.c | 120 enum bpf_attach_type atype; in run_link_replace_test() local 132 atype = bpf_program__expected_attach_type(skel->progs.child); in run_link_replace_test() 136 cgroup_fd, atype, &create_opts); in run_link_replace_test() 144 cgroup_fd, atype, &create_opts); in run_link_replace_test()
|
| H A D | test_sysctl.c | 1533 enum bpf_attach_type atype = test->attach_type; in run_test_case() local 1551 if (bpf_prog_attach(progfd, cgfd, atype, BPF_F_ALLOW_OVERRIDE) < 0) { in run_test_case() 1577 bpf_prog_detach(cgfd, atype); in run_test_case()
|
| H A D | sockmap_listen.c | 313 enum bpf_attach_type atype; in test_destroy_orphan_child() member 323 xbpf_prog_attach(t->progfd, mapfd, t->atype, 0) != 0) in test_destroy_orphan_child() 329 xbpf_prog_detach2(t->progfd, mapfd, t->atype); in test_destroy_orphan_child()
|
| /linux/kernel/bpf/ |
| H A D | cgroup.c | 35 void cgroup_bpf_struct_ops_register(int atype, u32 type_id, void *cfi_stubs, bool mult_rcu) in cgroup_bpf_wq_init() 37 cgroup_struct_ops[atype].type_id = type_id; in cgroup_bpf_wq_init() 38 cgroup_struct_ops[atype].cfi_stubs = cfi_stubs; in cgroup_bpf_wq_init() 39 cgroup_struct_ops[atype].mult_rcu = mult_rcu; in cgroup_bpf_wq_init() 44 enum cgroup_bpf_attach_type atype; 46 for (atype = 0; atype < MAX_CGROUP_BPF_ATTACH_TYPE; atype++) { 47 if (cgroup_bpf_is_struct_ops_atype(atype) && 48 cgroup_struct_ops[atype] 67 cgroup_bpf_hook_returns_errno(enum cgroup_bpf_attach_type atype) cgroup_bpf_hook_returns_errno() argument 74 cgroup_bpf_hook_returns_errno(enum cgroup_bpf_attach_type atype) cgroup_bpf_hook_returns_errno() argument 85 bpf_prog_run_array_cg(const struct cgroup_bpf * cgrp,enum cgroup_bpf_attach_type atype,const void * ctx,bpf_prog_run_fn run_prog,int retval,u32 * ret_flags) bpf_prog_run_array_cg() argument 333 unsigned int atype; cgroup_bpf_release() local 425 hierarchy_allows_attach(struct cgroup * cgrp,enum cgroup_bpf_attach_type atype) hierarchy_allows_attach() argument 454 compute_effective_progs(struct cgroup * cgrp,enum cgroup_bpf_attach_type atype,struct bpf_prog_array ** array) compute_effective_progs() argument 512 activate_effective_progs(struct cgroup * cgrp,enum cgroup_bpf_attach_type atype,struct bpf_prog_array * old_array) activate_effective_progs() argument 592 update_effective_progs(struct cgroup * cgrp,enum cgroup_bpf_attach_type atype) update_effective_progs() argument 818 enum cgroup_bpf_attach_type atype; __cgroup_bpf_attach() local 951 effective_prog_pos(struct cgroup * cgrp,enum cgroup_bpf_attach_type atype,struct bpf_prog_list * target_pl) effective_prog_pos() argument 1003 replace_effective_prog(struct cgroup * cgrp,enum cgroup_bpf_attach_type atype,struct bpf_prog_list * pl) replace_effective_prog() argument 1057 enum cgroup_bpf_attach_type atype; __cgroup_bpf_replace() local 1157 purge_effective_progs(struct cgroup * cgrp,struct bpf_prog_list * pl,enum cgroup_bpf_attach_type atype) purge_effective_progs() argument 1201 enum cgroup_bpf_attach_type atype; __cgroup_bpf_detach() local 1280 enum cgroup_bpf_attach_type atype; __cgroup_bpf_query() local 1626 __cgroup_bpf_run_filter_skb(struct sock * sk,struct sk_buff * skb,enum cgroup_bpf_attach_type atype) __cgroup_bpf_run_filter_skb() argument 1703 __cgroup_bpf_run_filter_sk(struct sock * sk,enum cgroup_bpf_attach_type atype) __cgroup_bpf_run_filter_sk() argument 1733 __cgroup_bpf_run_filter_sock_addr(struct sock * sk,struct sockaddr_unsized * uaddr,int * uaddrlen,enum cgroup_bpf_attach_type atype,void * t_ctx,u32 * flags) __cgroup_bpf_run_filter_sock_addr() argument 1786 __cgroup_bpf_run_filter_sock_ops(struct sock * sk,struct bpf_sock_ops_kern * sock_ops,enum cgroup_bpf_attach_type atype) __cgroup_bpf_run_filter_sock_ops() argument 1796 __cgroup_bpf_check_dev_permission(short dev_type,u32 major,u32 minor,short access,enum cgroup_bpf_attach_type atype) __cgroup_bpf_check_dev_permission() argument 1955 __cgroup_bpf_run_filter_sysctl(struct ctl_table_header * head,const struct ctl_table * table,int write,char ** buf,size_t * pcount,loff_t * ppos,enum cgroup_bpf_attach_type atype) __cgroup_bpf_run_filter_sysctl() argument [all...] |
| H A D | btf.c | 7239 enum bpf_attach_type atype = prog->expected_attach_type; in btf_struct_walk() 7243 return atype == BPF_TRACE_RAW_TP || atype == BPF_TRACE_ITER; in btf_struct_walk() 8094 int _off, int size, enum bpf_access_type atype __maybe_unused, in btf_prepare_func_args() 6671 enum bpf_attach_type atype = prog->expected_attach_type; prog_args_trusted() local
|
| H A D | verifier.c | 6710 enum bpf_access_type atype, in check_store_reg() 6762 if (atype != BPF_READ && bpf_may_fault_on_deref(reg->type)) { in check_atomic_rmw() 6767 if (env->ops->btf_struct_access && !type_is_alloc(reg->type) && atype == BPF_WRITE) { in check_atomic_rmw() 6793 if (atype != BPF_READ && !type_is_ptr_alloc_obj(reg->type)) { in check_atomic_rmw() 6810 ret = btf_struct_access(&env->log, reg, off, size, atype, &btf_id, &flag, &field_name); in check_atomic_rmw() 6889 if (atype == BPF_READ && value_regno >= 0) { 6906 enum bpf_access_type atype, in check_stack_range_initialized() 6944 if (atype != BPF_READ) { in check_stack_range_initialized() 6955 ret = btf_struct_access(&env->log, &map_reg, off, size, atype, &btf_id, &flag, NULL); in check_stack_range_initialized() 5989 check_ptr_to_btf_access(struct bpf_verifier_env * env,struct bpf_reg_state * regs,struct bpf_reg_state * reg,argno_t argno,int off,int size,enum bpf_access_type atype,int value_regno) check_ptr_to_btf_access() argument 6159 check_ptr_to_map_access(struct bpf_verifier_env * env,struct bpf_reg_state * regs,struct bpf_reg_state * reg,argno_t argno,int off,int size,enum bpf_access_type atype,int value_regno) check_ptr_to_map_access() argument
|
| /linux/arch/m68k/include/asm/ |
| H A D | bootstd.h | 60 #define _bsc1(type,name,atype,a) \ argument 61 type name(atype a) \ 72 #define _bsc2(type,name,atype,a,btype,b) \ argument 73 type name(atype a, btype b) \ 85 #define _bsc3(type,name,atype,a,btype,b,ctype,c) \ argument 86 type name(atype a, btype b, ctype c) \ 100 #define _bsc4(type,name,atype,a,btype,b,ctype,c,dtype,d) \ argument 101 type name(atype a, btype b, ctype c, dtype d) \ 116 #define _bsc5(type,name,atype,a,btype,b,ctype,c,dtype,d,etype,e) \ argument 117 type name(atype a, btype b, ctype c, dtype d, etype e) \
|
| /linux/include/linux/surface_aggregator/ |
| H A D | controller.h | 395 #define SSAM_DEFINE_SYNC_REQUEST_W(name, atype, spec...) \ argument 396 static int name(struct ssam_controller *ctrl, const atype *arg) \ 406 rqst.length = sizeof(atype); \ 410 sizeof(atype)); \ 497 #define SSAM_DEFINE_SYNC_REQUEST_WR(name, atype, rtype, spec...) \ argument 498 static int name(struct ssam_controller *ctrl, const atype *arg, rtype *ret) \ 510 rqst.length = sizeof(atype); \ 517 status = ssam_request_do_sync_onstack(ctrl, &rqst, &rsp, sizeof(atype)); \ 598 #define SSAM_DEFINE_SYNC_REQUEST_MD_W(name, atype, spec...) \ argument 599 static int name(struct ssam_controller *ctrl, u8 tid, u8 iid, const atype *arg) \ [all …]
|
| H A D | device.h | 488 #define SSAM_DEFINE_SYNC_REQUEST_CL_W(name, atype, spec...) \ argument 489 SSAM_DEFINE_SYNC_REQUEST_MD_W(__raw_##name, atype, spec) \ 490 static int name(struct ssam_device *sdev, const atype *arg) \ 558 #define SSAM_DEFINE_SYNC_REQUEST_CL_WR(name, atype, rtype, spec...) \ argument 559 SSAM_DEFINE_SYNC_REQUEST_MD_WR(__raw_##name, atype, rtype, spec) \ 560 static int name(struct ssam_device *sdev, const atype *arg, rtype *ret) \
|
| /linux/fs/ntfs3/ |
| H A D | record.c | 392 u32 atype; in mi_find_attr() local 399 atype = le32_to_cpu(attr->type); in mi_find_attr() 400 if (atype > type_in) in mi_find_attr() 403 if (atype < type_in) in mi_find_attr()
|
| /linux/arch/s390/include/uapi/asm/ |
| H A D | chsc.h | 113 } atype; member
|
| /linux/net/tipc/ |
| H A D | socket.c | 718 u32 atype = ua->addrtype; in tipc_bind() local 723 if (atype == TIPC_SOCKET_ADDR) in tipc_bind() 1423 int atype, mtu, rc; in __tipc_sendmsg() local 1431 atype = ua->addrtype; in __tipc_sendmsg() 1438 if (atype == TIPC_SERVICE_ADDR) in __tipc_sendmsg() 1440 if (atype == TIPC_SOCKET_ADDR) in __tipc_sendmsg() 1442 if (atype == TIPC_SERVICE_RANGE) in __tipc_sendmsg() 1451 atype = ua->addrtype; in __tipc_sendmsg() 1461 if (atype == TIPC_SERVICE_ADDR) in __tipc_sendmsg() 1462 tsk->conn_addrtype = atype; in __tipc_sendmsg() [all...] |
| H A D | udp_media.c | 604 int atype; in tipc_parse_udp_addr() local 606 atype = ipv6_addr_type(&ip6->sin6_addr); in tipc_parse_udp_addr() 607 if (__ipv6_addr_needs_scope_id(atype) && in tipc_parse_udp_addr()
|
| /linux/drivers/dma/ti/ |
| H A D | k3-udma.c | 212 u32 atype; member 257 u32 atype; member 1900 req_tx.tx_atype = ud->atype; in udma_tisci_m2m_channel_config() 1918 req_rx.rx_atype = ud->atype; in udma_tisci_m2m_channel_config() 1991 req_tx.tx_atype = uc->config.atype; in udma_tisci_tx_channel_config() 2064 req_rx.rx_atype = uc->config.atype; in udma_tisci_rx_channel_config() 4134 u32 atype; member 4157 if (filter_param->atype > 2) { in udma_dma_filter_fn() 4158 dev_err(ud->dev, "Invalid channel atype: %u\n", in udma_dma_filter_fn() 4159 filter_param->atype); in udma_dma_filter_fn() [all...] |
| /linux/drivers/net/ipvlan/ |
| H A D | ipvlan.h | 85 ipvl_hdr_type atype; member
|
| H A D | ipvlan_l3s.c | 108 if (addr->atype == IPVL_IPV6) in ipvlan_nf_input()
|
| H A D | ipvlan_main.c | 923 addr->atype = IPVL_IPV4; in ipvlan_add_addr() 927 addr->atype = IPVL_IPV6; in ipvlan_add_addr()
|
| /linux/drivers/s390/cio/ |
| H A D | chsc_sch.c | 712 u32 atype : 8; in chsc_ioctl_dcal() member 733 sdcal_area->atype = dcal->req.atype; in chsc_ioctl_dcal()
|
| H A D | chsc.c | 1216 u8 atype; in chsc_get_cssid_iid() member 1234 sdcal_area->atype = 4; in chsc_get_cssid_iid()
|
| /linux/kernel/trace/ |
| H A D | trace_probe.h | 218 #define ASSIGN_FETCH_TYPE_ALIAS(ptype, atype, ftype, sign) \ argument 219 _ASSIGN_FETCH_TYPE(#ptype, ptype, ftype, sizeof(ftype), sign, atype)
|
| /linux/net/netfilter/ipvs/ |
| H A D | ip_vs_ctl.c | 1500 unsigned int atype; in ip_vs_new_dest() 1505 atype = ipv6_addr_type(&udest->addr.in6); in ip_vs_new_dest() 1506 if ((!(atype & IPV6_ADDR_UNICAST) || in ip_vs_new_dest() 1507 atype & IPV6_ADDR_LINKLOCAL) && in ip_vs_new_dest() 1517 atype = inet_addr_type(svc->ipvs->net, udest->addr.ip); in ip_vs_add_dest() 1518 if (atype != RTN_LOCAL && atype != RTN_UNICAST) in ip_vs_add_dest() 1448 unsigned int atype; ip_vs_new_dest() local
|
| /linux/tools/testing/selftests/net/ |
| H A D | nettest.c | 762 enum addr_type atype) in convert_addr() argument 777 switch (atype) { in convert_addr()
|
| /linux/fs/ntfs/ |
| H A D | inode.c | 3581 __le32 atype; in ntfs_inode_attr_pread() 3586 atype = ctx->attr->type; in ntfs_inode_attr_pread() 3587 if (atype == AT_END) in ntfs_inode_attr_pread() 3599 err = ntfs_attr_lookup(atype, NULL, 0, CASE_SENSITIVE, 0, NULL, in ntfs_inode_attr_pread() 3394 __le32 atype; ntfs_attr_position() local
|
| /linux/include/linux/ |
| H A D | bpf.h | 3377 int off, int size, enum bpf_access_type atype, in bpf_link_cleanup() 3735 int off, int size, enum bpf_access_type atype, in bpf_prog_is_dev_bound() 3538 btf_struct_access(struct bpf_verifier_log * log,const struct bpf_reg_state * reg,int off,int size,enum bpf_access_type atype,u32 * next_btf_id,enum bpf_type_flag * flag,const char ** field_name) btf_struct_access() argument
|