/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 | test_sysctl.c | 1531 enum bpf_attach_type atype = test->attach_type; in run_test_case() local 1549 if (bpf_prog_attach(progfd, cgfd, atype, BPF_F_ALLOW_OVERRIDE) < 0) { in run_test_case() 1575 bpf_prog_detach(cgfd, atype); in run_test_case()
|
H A D | sockmap_listen.c | 312 enum bpf_attach_type atype; in test_destroy_orphan_child() member 322 xbpf_prog_attach(t->progfd, mapfd, t->atype, 0) != 0) in test_destroy_orphan_child() 328 xbpf_prog_detach2(t->progfd, mapfd, t->atype); in test_destroy_orphan_child()
|
/linux/include/linux/ |
H A D | bpf-cgroup.h | 78 #define cgroup_bpf_enabled(atype) static_branch_unlikely(&cgroup_bpf_enabled_key[atype]) argument 117 enum cgroup_bpf_attach_type atype); 120 enum cgroup_bpf_attach_type atype); 125 enum cgroup_bpf_attach_type atype, 131 enum cgroup_bpf_attach_type atype); 134 short access, enum cgroup_bpf_attach_type atype); 139 enum cgroup_bpf_attach_type atype); 216 #define BPF_CGROUP_RUN_SK_PROG(sk, atype) \ argument 219 if (cgroup_bpf_enabled(atype)) { \ 237 BPF_CGROUP_RUN_SA_PROG(sk,uaddr,uaddrlen,atype) global() argument 246 BPF_CGROUP_RUN_SA_PROG_LOCK(sk,uaddr,uaddrlen,atype,t_ctx) global() argument 263 BPF_CGROUP_RUN_PROG_INET_BIND_LOCK(sk,uaddr,uaddrlen,atype,bind_flags) global() argument 354 BPF_CGROUP_RUN_PROG_DEVICE_CGROUP(atype,major,minor,access) global() argument 478 cgroup_bpf_enabled(atype) global() argument 479 BPF_CGROUP_RUN_SA_PROG_LOCK(sk,uaddr,uaddrlen,atype,t_ctx) global() argument 480 BPF_CGROUP_RUN_SA_PROG(sk,uaddr,uaddrlen,atype) global() argument 486 BPF_CGROUP_RUN_PROG_INET_BIND_LOCK(sk,uaddr,uaddrlen,atype,flags) global() argument 501 BPF_CGROUP_RUN_PROG_DEVICE_CGROUP(atype,major,minor,access) global() argument [all...] |
/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 [all...] |
/linux/kernel/bpf/ |
H A D | cgroup.c | 62 enum cgroup_bpf_attach_type atype, in bpf_prog_run_array_cg() argument 76 array = rcu_dereference(cgrp->effective[atype]); in bpf_prog_run_array_cg() 313 unsigned int atype; in cgroup_bpf_release() local 317 for (atype = 0; atype < ARRAY_SIZE(cgrp->bpf.progs); atype++) { in cgroup_bpf_release() 318 struct hlist_head *progs = &cgrp->bpf.progs[atype]; in cgroup_bpf_release() 335 static_branch_dec(&cgroup_bpf_enabled_key[atype]); in cgroup_bpf_release() 338 cgrp->bpf.effective[atype], in cgroup_bpf_release() 405 enum cgroup_bpf_attach_type atype) in hierarchy_allows_attach() argument 434 compute_effective_progs(struct cgroup * cgrp,enum cgroup_bpf_attach_type atype,struct bpf_prog_array ** array) compute_effective_progs() argument 492 activate_effective_progs(struct cgroup * cgrp,enum cgroup_bpf_attach_type atype,struct bpf_prog_array * old_array) activate_effective_progs() argument 572 update_effective_progs(struct cgroup * cgrp,enum cgroup_bpf_attach_type atype) update_effective_progs() argument 797 enum cgroup_bpf_attach_type atype; __cgroup_bpf_attach() local 926 replace_effective_prog(struct cgroup * cgrp,enum cgroup_bpf_attach_type atype,struct bpf_cgroup_link * link) replace_effective_prog() argument 981 enum cgroup_bpf_attach_type atype; __cgroup_bpf_replace() local 1080 purge_effective_progs(struct cgroup * cgrp,struct bpf_prog * prog,struct bpf_cgroup_link * link,enum cgroup_bpf_attach_type atype) purge_effective_progs() argument 1140 enum cgroup_bpf_attach_type atype; __cgroup_bpf_detach() local 1219 enum cgroup_bpf_attach_type atype; __cgroup_bpf_query() local 1564 __cgroup_bpf_run_filter_skb(struct sock * sk,struct sk_buff * skb,enum cgroup_bpf_attach_type atype) __cgroup_bpf_run_filter_skb() argument 1641 __cgroup_bpf_run_filter_sk(struct sock * sk,enum cgroup_bpf_attach_type atype) __cgroup_bpf_run_filter_sk() argument 1671 __cgroup_bpf_run_filter_sock_addr(struct sock * sk,struct sockaddr * uaddr,int * uaddrlen,enum cgroup_bpf_attach_type atype,void * t_ctx,u32 * flags) __cgroup_bpf_run_filter_sock_addr() argument 1728 __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 1738 __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 1897 __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...] |
/linux/net/tipc/ |
H A D | addr.h | 64 static inline void tipc_uaddr(struct tipc_uaddr *ua, u32 atype, u32 scope, in tipc_uaddr() argument 68 ua->addrtype = atype; in tipc_uaddr() 77 u32 atype; in tipc_uaddr_valid() local 81 atype = ua->addrtype; in tipc_uaddr_valid() 84 if (atype == TIPC_SERVICE_ADDR || atype == TIPC_SOCKET_ADDR) in tipc_uaddr_valid() 86 if (atype == TIPC_SERVICE_RANGE) in tipc_uaddr_valid()
|
H A D | socket.c | 716 u32 atype = ua->addrtype; in tipc_bind() local 721 if (atype == TIPC_SOCKET_ADDR) in tipc_bind() 1418 int atype, mtu, rc; in __tipc_sendmsg() local 1426 atype = ua->addrtype; in __tipc_sendmsg() 1433 if (atype == TIPC_SERVICE_ADDR) in __tipc_sendmsg() 1435 if (atype == TIPC_SOCKET_ADDR) in __tipc_sendmsg() 1437 if (atype == TIPC_SERVICE_RANGE) in __tipc_sendmsg() 1446 atype = ua->addrtype; in __tipc_sendmsg() 1456 if (atype == TIPC_SERVICE_ADDR) in __tipc_sendmsg() 1457 tsk->conn_addrtype = atype; in __tipc_sendmsg() [all...] |
H A D | udp_media.c | 609 int atype; in tipc_parse_udp_addr() local 611 atype = ipv6_addr_type(&ip6->sin6_addr); in tipc_parse_udp_addr() 612 if (__ipv6_addr_needs_scope_id(atype) && in tipc_parse_udp_addr()
|
/linux/net/atm/ |
H A D | addr.c | 48 void atm_reset_addr(struct atm_dev *dev, enum atm_addr_type_t atype) in atm_reset_addr() argument 55 if (atype == ATM_ADDR_LECS) in atm_reset_addr() 69 enum atm_addr_type_t atype) in atm_add_addr() argument 80 if (atype == ATM_ADDR_LECS) in atm_add_addr() 104 enum atm_addr_type_t atype) in atm_del_addr() argument 115 if (atype == ATM_ADDR_LECS) in atm_del_addr() 134 size_t size, enum atm_addr_type_t atype) in atm_get_addr() argument 143 if (atype == ATM_ADDR_LECS) in atm_get_addr()
|
/linux/include/linux/surface_aggregator/ |
H A D | controller.h | 376 * @atype: Type of the request's argument. 380 * @spec, with the request taking an argument of type @atype and having no 387 * ssam_controller *ctrl, const atype *arg)``, returning the status of the 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)); \ 476 * @atype: Type of the request's argument. 481 * with the request taking an argument of type @atype and having a return value 488 * ssam_controller *ctrl, const atype *ar 497 SSAM_DEFINE_SYNC_REQUEST_WR(name,atype,rtype,spec...) global() argument 598 SSAM_DEFINE_SYNC_REQUEST_MD_W(name,atype,spec...) global() argument 704 SSAM_DEFINE_SYNC_REQUEST_MD_WR(name,atype,rtype,spec...) global() argument [all...] |
H A D | device.h | 466 * @atype: Type of the request's argument. 470 * @spec, with the request taking an argument of type @atype and having no 479 * *sdev, const atype *arg)``, returning the status of the request, which is 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) \ 534 * @atype: Type of the request's argument. 539 * with the request taking an argument of type @atype and having a return value 548 * *sdev, const atype *arg, rtype *ret)``, returning the status of the request, 558 #define SSAM_DEFINE_SYNC_REQUEST_CL_WR(name, atype, rtyp argument [all...] |
/linux/drivers/s390/char/ |
H A D | sclp_pci.c | 34 u8 atype; /* adapter type */ member 53 sccb->atype = SCLP_ATYPE_PCI; in do_pci_configure() 152 sccb->evbuf.atype = SCLP_ATYPE_PCI; in sclp_pci_report()
|
/linux/fs/ntfs3/ |
H A D | record.c | 364 u32 atype; in mi_find_attr() local 371 atype = le32_to_cpu(attr->type); in mi_find_attr() 372 if (atype > type_in) in mi_find_attr() 375 if (atype < type_in) in mi_find_attr()
|
/linux/arch/s390/include/uapi/asm/ |
H A D | chsc.h | 113 } atype; member
|
/linux/drivers/nvme/target/ |
H A D | trace.c | 43 u8 atype = cdw10[15]; in nvmet_trace_get_lba_status() local 45 trace_seq_printf(p, "slba=0x%llx, mndw=0x%x, rl=0x%x, atype=%u", in nvmet_trace_get_lba_status() 46 slba, mndw, rl, atype); in nvmet_trace_get_lba_status()
|
/linux/arch/s390/include/asm/ |
H A D | sclp.h | 138 u8 atype; member
|
/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 | 827 addr->atype = IPVL_IPV4; in ipvlan_add_addr() 831 addr->atype = IPVL_IPV6; in ipvlan_add_addr()
|
/linux/drivers/nvme/host/ |
H A D | trace.c | 110 u8 atype = cdw10[15]; in nvme_trace_get_lba_status() local 112 trace_seq_printf(p, "slba=0x%llx, mndw=0x%x, rl=0x%x, atype=%u", in nvme_trace_get_lba_status() 113 slba, mndw, rl, atype); in nvme_trace_get_lba_status()
|
/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/kernel/trace/ |
H A D | trace_probe.h | 206 /* If ptype is an alias of atype, use this macro (show atype in format) */ 207 #define ASSIGN_FETCH_TYPE_ALIAS(ptype, atype, ftype, sign) \ argument 208 _ASSIGN_FETCH_TYPE(#ptype, ptype, ftype, sizeof(ftype), sign, atype)
|
/linux/drivers/s390/cio/ |
H A D | chsc_sch.c | 789 u32 atype : 8; in chsc_ioctl_dcal() member 814 sdcal_area->atype = dcal->req.atype; in chsc_ioctl_dcal()
|
/linux/arch/s390/mm/ |
H A D | gmap.c | 64 unsigned long etype, atype; in gmap_alloc() local 68 atype = _ASCE_TYPE_SEGMENT; in gmap_alloc() 72 atype = _ASCE_TYPE_REGION3; in gmap_alloc() 76 atype = _ASCE_TYPE_REGION2; in gmap_alloc() 80 atype = _ASCE_TYPE_REGION1; in gmap_alloc() 99 gmap->asce = atype | _ASCE_TABLE_LENGTH | in gmap_alloc()
|