| /linux/net/shaper/ |
| H A D | shaper.c | 121 if (handle->scope == NET_SHAPER_SCOPE_UNSPEC) in net_shaper_fill_handle() 128 if (nla_put_u32(msg, NET_SHAPER_A_HANDLE_SCOPE, handle->scope) || in net_shaper_fill_handle() 129 (handle->scope >= NET_SHAPER_SCOPE_QUEUE && in net_shaper_fill_handle() 144 WRITE_ONCE(dst->parent.scope, READ_ONCE(src->parent.scope)); in net_shaper_copy() 146 WRITE_ONCE(dst->handle.scope, READ_ONCE(src->handle.scope)); in net_shaper_copy() 280 return FIELD_PREP(NET_SHAPER_SCOPE_MASK, handle->scope) | in net_shaper_handle_to_index() 287 handle->scope = FIELD_GET(NET_SHAPER_SCOPE_MASK, index); in net_shaper_index_to_handle() 294 switch (handle->scope) { in net_shaper_default_parent() 1376 net_shaper_cap_fill_one(struct sk_buff * msg,struct net_shaper_binding * binding,enum net_shaper_scope scope,unsigned long flags,const struct genl_info * info) net_shaper_cap_fill_one() argument 1409 enum net_shaper_scope scope; net_shaper_nl_cap_get_doit() local 1445 enum net_shaper_scope scope; net_shaper_nl_cap_get_dumpit() local [all...] |
| /linux/arch/m68k/kernel/ |
| H A D | sys_m68k.c | 68 cache_flush_040 (unsigned long addr, int scope, int cache, unsigned long len) in cache_flush_040() argument 72 switch (scope) in cache_flush_040() 228 cache_flush_060 (unsigned long addr, int scope, int cache, unsigned long len) in cache_flush_060() argument 238 switch (scope) in cache_flush_060() 378 sys_cacheflush (unsigned long addr, int scope, int cache, unsigned long len) in sys_cacheflush() argument 382 if (scope < FLUSH_SCOPE_LINE || scope > FLUSH_SCOPE_ALL || in sys_cacheflush() 386 if (scope == FLUSH_SCOPE_ALL) { in sys_cacheflush() 411 if (scope == FLUSH_SCOPE_LINE && len < 256) { in sys_cacheflush() 444 if (len>=3*PAGE_SIZE && scope<FLUSH_SCOPE_PAGE) in sys_cacheflush() 445 scope=FLUSH_SCOPE_PAGE; in sys_cacheflush() [all …]
|
| /linux/rust/syn/ |
| H A D | buffer.rs | 103 scope: *const Entry, field 125 scope: &EMPTY_ENTRY.0, in empty() 133 unsafe fn create(mut ptr: *const Entry, scope: *const Entry) -> Self { in create() 139 if ptr::eq(ptr, scope) { in create() 147 scope, in create() 164 unsafe { Cursor::create(self.ptr.offset(1), self.scope) } in bump_ignore_group() 186 ptr::eq(self.ptr, self.scope) in eof() 254 let after_group = unsafe { Cursor::create(end_of_group, self.scope) }; in group() 270 let after_group = unsafe { Cursor::create(end_of_group, self.scope) }; in any_group() 280 let after_group = unsafe { Cursor::create(end_of_group, self.scope) }; in any_group_token() [all …]
|
| H A D | parse.rs | 249 scope: Span, field 338 scope: Span, field 374 error::new_at(self.scope, self.cursor, message) in error() 388 scope: Span, in new_parse_buffer() 393 scope, in new_parse_buffer() 839 lookahead::new(self.scope, self.cursor()) in lookahead1() 970 scope: self.scope, in fork() 1008 error::new_at(self.scope, self.cursor(), message) in error() 1078 scope: self.scope, in step() 1092 self.scope in span() [all …]
|
| H A D | lookahead.rs | 65 scope: Span, field 70 pub(crate) fn new(scope: Span, cursor: Cursor) -> Lookahead1 { in new() 72 scope, in new() 130 Error::new(self.scope, "unexpected end of input") in error() 137 error::new_at(self.scope, self.cursor, message) in error() 141 error::new_at(self.scope, self.cursor, message) in error() 146 error::new_at(self.scope, self.cursor, message) in error()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_lwt_seg6local.sh | |
| /linux/drivers/counter/ |
| H A D | counter-sysfs.c | 40 enum counter_scope scope; member 113 switch (a->scope) { in counter_comp_u8_show() 154 switch (a->scope) { in counter_comp_u8_store() 182 switch (a->scope) { in counter_comp_u32_show() 279 switch (a->scope) { in counter_comp_u32_store() 310 switch (a->scope) { in counter_comp_u64_show() 342 switch (a->scope) { in counter_comp_u64_store() 371 if (a->scope != COUNTER_SCOPE_SIGNAL || in counter_comp_array_u32_show() 394 a->scope != COUNTER_SCOPE_SIGNAL) in counter_comp_array_u32_store() 421 switch (a->scope) { in counter_comp_array_u64_show() [all …]
|
| H A D | counter-chrdev.c | 285 switch (watch.component.scope) { in counter_add_watch() 319 if (watch.component.scope != COUNTER_SCOPE_SIGNAL) in counter_add_watch() 326 if (watch.component.scope != COUNTER_SCOPE_COUNT) in counter_add_watch() 333 if (watch.component.scope != COUNTER_SCOPE_COUNT) in counter_add_watch() 340 if (watch.component.scope != COUNTER_SCOPE_COUNT) in counter_add_watch() 488 const enum counter_scope scope, in counter_get_array_data() argument 499 if (scope != COUNTER_SCOPE_SIGNAL) in counter_get_array_data() 506 switch (scope) { in counter_get_array_data() 528 const enum counter_scope scope = comp_node->component.scope; in counter_get_data() local 545 switch (scope) { in counter_get_data() [all …]
|
| /linux/arch/arm64/kernel/ |
| H A D | cpu_errata.c | 76 is_affected_midr_range(const struct arm64_cpu_capabilities *entry, int scope) in is_affected_midr_range() argument 81 WARN_ON(scope != SCOPE_LOCAL_CPU || preemptible()); in is_affected_midr_range() 96 int scope) in is_affected_midr_range_list() argument 98 WARN_ON(scope != SCOPE_LOCAL_CPU || preemptible()); in is_affected_midr_range_list() 103 is_kryo_midr(const struct arm64_cpu_capabilities *entry, int scope) in is_kryo_midr() argument 107 WARN_ON(scope != SCOPE_LOCAL_CPU || preemptible()); in is_kryo_midr() 118 int scope) in has_mismatched_cache_type() argument 124 WARN_ON(scope != SCOPE_LOCAL_CPU || preemptible()); in has_mismatched_cache_type() 162 * workaround. Since the scope of this workaround is limited to non-coherent DMA agents, its 166 need_arm_si_l1_workaround_4311569(const struct arm64_cpu_capabilities *entry, int scope) in need_arm_si_l1_workaround_4311569() argument 194 has_cortex_a76_erratum_1463225(const struct arm64_cpu_capabilities * entry,int scope) has_cortex_a76_erratum_1463225() argument 251 needs_tx2_tvm_workaround(const struct arm64_cpu_capabilities * entry,int scope) needs_tx2_tvm_workaround() argument 269 has_neoverse_n1_erratum_1542419(const struct arm64_cpu_capabilities * entry,int scope) has_neoverse_n1_erratum_1542419() argument 294 has_impdef_pmuv3(const struct arm64_cpu_capabilities * entry,int scope) has_impdef_pmuv3() argument 310 has_broken_gic_v3_seis(const struct arm64_cpu_capabilities * entry,int scope) has_broken_gic_v3_seis() argument 621 has_sme_dvmsync_erratum(const struct arm64_cpu_capabilities * entry,int scope) has_sme_dvmsync_erratum() argument [all...] |
| H A D | cpufeature.c | 1634 has_always(const struct arm64_cpu_capabilities *entry, int scope) in has_always() argument 1667 read_scoped_sysreg(const struct arm64_cpu_capabilities *entry, int scope) in read_scoped_sysreg() argument 1669 WARN_ON(scope == SCOPE_LOCAL_CPU && preemptible()); in read_scoped_sysreg() 1670 if (scope == SCOPE_SYSTEM) in read_scoped_sysreg() 1677 has_user_cpuid_feature(const struct arm64_cpu_capabilities *entry, int scope) in has_user_cpuid_feature() argument 1681 u64 val = read_scoped_sysreg(entry, scope); in has_user_cpuid_feature() 1697 has_cpuid_feature(const struct arm64_cpu_capabilities *entry, int scope) in has_cpuid_feature() argument 1699 u64 val = read_scoped_sysreg(entry, scope); in has_cpuid_feature() 1752 static bool has_32bit_el0(const struct arm64_cpu_capabilities *entry, int scope) in has_32bit_el0() argument 1754 if (!has_cpuid_feature(entry, scope)) in has_32bit_el0() 1763 has_useable_gicv3_cpuif(const struct arm64_cpu_capabilities * entry,int scope) has_useable_gicv3_cpuif() argument 1779 has_cache_idc(const struct arm64_cpu_capabilities * entry,int scope) has_cache_idc() argument 1804 has_cache_dic(const struct arm64_cpu_capabilities * entry,int scope) has_cache_dic() argument 1817 has_useable_cnp(const struct arm64_cpu_capabilities * entry,int scope) has_useable_cnp() argument 1837 unmap_kernel_at_el0(const struct arm64_cpu_capabilities * entry,int scope) unmap_kernel_at_el0() argument 1912 has_nv1(const struct arm64_cpu_capabilities * entry,int scope) has_nv1() argument 1953 has_lpa2(const struct arm64_cpu_capabilities * entry,int scope) has_lpa2() argument 1961 has_lpa2(const struct arm64_cpu_capabilities * entry,int scope) has_lpa2() argument 1968 has_pmuv3(const struct arm64_cpu_capabilities * entry,int scope) has_pmuv3() argument 2142 has_nested_virt_support(const struct arm64_cpu_capabilities * cap,int scope) has_nested_virt_support() argument 2191 has_bbml3(const struct arm64_cpu_capabilities * caps,int scope) has_bbml3() argument 2214 has_rasv1p1(const struct arm64_cpu_capabilities * __unused,int scope) has_rasv1p1() argument 2235 has_address_auth_cpucap(const struct arm64_cpu_capabilities * entry,int scope) has_address_auth_cpucap() argument 2262 has_address_auth_metacap(const struct arm64_cpu_capabilities * entry,int scope) has_address_auth_metacap() argument 2302 can_use_gic_priorities(const struct arm64_cpu_capabilities * entry,int scope) can_use_gic_priorities() argument 2316 has_gic_prio_relaxed_sync(const struct arm64_cpu_capabilities * entry,int scope) has_gic_prio_relaxed_sync() argument 2345 can_trap_icv_dir_el1(const struct arm64_cpu_capabilities * entry,int scope) can_trap_icv_dir_el1() argument 2520 test_has_mpam(const struct arm64_cpu_capabilities * entry,int scope) test_has_mpam() argument 2548 test_has_mpam_hcr(const struct arm64_cpu_capabilities * entry,int scope) test_has_mpam_hcr() argument 2556 test_has_gicv5_legacy(const struct arm64_cpu_capabilities * entry,int scope) test_has_gicv5_legacy() argument 3305 has_sve_feature(const struct arm64_cpu_capabilities * cap,int scope) has_sve_feature() argument 3312 has_sme_feature(const struct arm64_cpu_capabilities * cap,int scope) has_sme_feature() argument 3459 compat_has_neon(const struct arm64_cpu_capabilities * cap,int scope) compat_has_neon() argument [all...] |
| /linux/drivers/scsi/aic7xxx/aicasm/ |
| H A D | aicasm_symbol.h | 168 typedef struct scope { struct 169 SLIST_ENTRY(scope) scope_stack_links; 170 TAILQ_ENTRY(scope) scope_links; 171 TAILQ_HEAD(, scope) inner_scope; 181 SLIST_HEAD(scope_list, scope); argument 182 TAILQ_HEAD(scope_tailq, scope);
|
| H A D | aicasm.c | 80 static void dump_scope(scope_t *scope); 81 static void emit_patch(scope_t *scope, int patch); 460 dump_scope(scope_t *scope) in dump_scope() argument 467 emit_patch(scope, 0); in dump_scope() 472 cur_scope = TAILQ_FIRST(&scope->inner_scope); in dump_scope() 484 emit_patch(scope, 1); in dump_scope() 488 emit_patch(scope_t *scope, int patch) in emit_patch() argument 493 pinfo = &scope->patches[patch]; in emit_patch() 507 new_patch->patch_func = scope->func_num; in emit_patch() 508 new_patch->begin = scope->begin_addr; in emit_patch() [all …]
|
| /linux/net/sctp/ |
| H A D | bind_addr.c | 34 union sctp_addr *addr, enum sctp_scope scope, 40 /* Copy 'src' to 'dest' taking 'scope' into account. Omit addresses 41 * in 'src' which have a broader scope than 'scope'. 45 enum sctp_scope scope, gfp_t gfp, in sctp_bind_addr_copy() argument 54 /* Extract the addresses which are relevant for this scope. */ in sctp_bind_addr_copy() 56 error = sctp_copy_one_addr(net, dest, &addr->a, scope, in sctp_bind_addr_copy() 62 /* If there are no addresses matching the scope and in sctp_bind_addr_copy() 63 * this is global scope, try to get a link scope addres in sctp_bind_addr_copy() 460 sctp_copy_one_addr(struct net * net,struct sctp_bind_addr * dest,union sctp_addr * addr,enum sctp_scope scope,gfp_t gfp,int flags) sctp_copy_one_addr() argument 506 sctp_in_scope(struct net * net,const union sctp_addr * addr,enum sctp_scope scope) sctp_in_scope() argument [all...] |
| /linux/net/netfilter/ |
| H A D | nf_nat_redirect.c | 83 static bool nf_nat_redirect_ipv6_usable(const struct inet6_ifaddr *ifa, unsigned int scope) in nf_nat_redirect_ipv6_usable() argument 93 if (scope) { in nf_nat_redirect_ipv6_usable() 96 if (!(scope & ifa_scope)) in nf_nat_redirect_ipv6_usable() 112 unsigned int scope = ipv6_addr_scope(&ipv6_hdr(skb)->daddr); in nf_nat_redirect_ipv6() local 122 if (!nf_nat_redirect_ipv6_usable(ifa, scope)) in nf_nat_redirect_ipv6()
|
| /linux/tools/include/linux/ |
| H A D | btf_ids.h | 88 #define __BTF_ID_LIST(name, scope) \ argument 91 "." #scope " " #name "; \n" \ 147 #define __BTF_SET_START(name, scope) \ argument 150 "." #scope " __BTF_ID__set__" #name "; \n" \ 191 #define __BTF_SET8_START(name, scope, flags) \ argument 195 "." #scope " __BTF_ID__set8__" #name "; \n" \
|
| /linux/arch/arm64/include/asm/ |
| H A D | spectre.h | 85 bool has_spectre_v2(const struct arm64_cpu_capabilities *cap, int scope); 88 bool has_spectre_v3a(const struct arm64_cpu_capabilities *cap, int scope); 92 bool has_spectre_v4(const struct arm64_cpu_capabilities *cap, int scope); 99 bool is_spectre_bhb_affected(const struct arm64_cpu_capabilities *entry, int scope);
|
| /linux/arch/arm64/kvm/ |
| H A D | nested.c | 1093 struct s1e2_tlbi_scope *scope) in invalidate_vncr_va() 1111 switch (scope->type) { in invalidate_vncr_va() 1116 if (!vncr_tlb_intersects(vt, vt->gva, scope->va, scope->size)) in invalidate_vncr_va() 1118 if (vt->wr.nG && vt->wr.asid != scope->asid) in invalidate_vncr_va() 1123 if (!vncr_tlb_intersects(vt, vt->gva, scope->va, scope->size)) in invalidate_vncr_va() 1128 if (!vt->wr.nG || vt->wr.asid != scope->asid) in invalidate_vncr_va() 1140 struct s1e2_tlbi_scope *scope) in compute_s1_tlbi_range() 1155 scope in compute_s1_tlbi_range() 1090 invalidate_vncr_va(struct kvm * kvm,struct s1e2_tlbi_scope * scope) invalidate_vncr_va() argument 1137 compute_s1_tlbi_range(struct kvm_vcpu * vcpu,u32 inst,u64 val,struct s1e2_tlbi_scope * scope) compute_s1_tlbi_range() argument 1255 struct s1e2_tlbi_scope scope = {}; kvm_handle_s1e2_tlbi() local [all...] |
| /linux/lib/ |
| H A D | test_workqueue.c | 114 static int __init set_affn_scope(const char *scope) in set_affn_scope() argument 127 ret = kernel_write(f, scope, strlen(scope), &pos); in set_affn_scope() 131 pr_err("test_workqueue: write '%s' failed: %zd\n", scope, ret); in set_affn_scope() 138 static int __init run_bench(int n_threads, const char *scope, const char *label) in run_bench() argument 148 ret = set_affn_scope(scope); in run_bench()
|
| /linux/drivers/acpi/ |
| H A D | property.c | 71 static bool acpi_enumerate_nondev_subnodes(acpi_handle scope, 86 acpi_handle scope = NULL; in acpi_nondev_subnode_extract() local 109 acpi_get_parent(handle, &scope); in acpi_nondev_subnode_extract() 118 result = acpi_extract_properties(scope, desc, &dn->data); in acpi_nondev_subnode_extract() 123 if (acpi_enumerate_nondev_subnodes(scope, desc, &dn->data, &dn->fwnode)) in acpi_nondev_subnode_extract() 143 static bool acpi_nondev_subnode_ok(acpi_handle scope, in acpi_nondev_subnode_ok() argument 158 if (!scope) in acpi_nondev_subnode_ok() 161 status = acpi_get_handle(scope, link->package.elements[1].string.pointer, in acpi_nondev_subnode_ok() 179 static bool acpi_add_nondev_subnodes(acpi_handle scope, in acpi_add_nondev_subnodes() argument 213 result = acpi_nondev_subnode_ok(scope, link, list, in acpi_add_nondev_subnodes() [all …]
|
| /linux/drivers/fwctl/pds/ |
| H A D | main.c | 258 switch (entries[i].scope) { in pdsfc_get_operations() 262 entries[i].scope = FWCTL_RPC_CONFIGURATION; in pdsfc_get_operations() 265 entries[i].scope = FWCTL_RPC_DEBUG_READ_ONLY; in pdsfc_get_operations() 268 entries[i].scope = FWCTL_RPC_DEBUG_WRITE; in pdsfc_get_operations() 271 entries[i].scope = FWCTL_RPC_DEBUG_WRITE_FULL; in pdsfc_get_operations() 275 ep, le32_to_cpu(entries[i].id), entries[i].scope); in pdsfc_get_operations() 283 enum fwctl_rpc_scope scope) in pdsfc_validate_rpc() argument 339 if (scope < op_entry[i].scope) in pdsfc_validate_rpc() 350 static void *pdsfc_fw_rpc(struct fwctl_uctx *uctx, enum fwctl_rpc_scope scope, in pdsfc_fw_rpc() argument 368 err = pdsfc_validate_rpc(pdsfc, rpc, scope); in pdsfc_fw_rpc()
|
| /linux/security/landlock/ |
| H A D | task.c | 201 access_mask_t scope) in domain_is_scoped() argument 230 if (landlock_get_scope_mask(client, client_layer) & scope) in domain_is_scoped() 243 if (landlock_get_scope_mask(client, client_layer) & scope) { in domain_is_scoped() 309 .scope = LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET, 388 .scope = LANDLOCK_SCOPE_SIGNAL, 430 signal_scope.scope); in hook_task_kill() 496 signal_scope.scope); in hook_file_send_sigiotask()
|
| /linux/rust/kernel/ |
| H A D | debugfs.rs | 107 let scope = Scope::<T>::new(data, move |data| { 110 // SAFETY: Because data derives from a scope, and our entry will be dropped before in new() 119 scope <- scope 378 /// Creates a new scope, which is a directory associated with some data `T`. 382 /// stored in the scope. 384 /// The entire directory tree created within the scope will be removed when the returned 386 pub fn scope<'a, T: 'a, E: 'a, F>( 404 /// Handle to a DebugFS scope, which ensures that attached `data` will outlive the DebugFS entry 430 scope 83 let scope = Scope::<T>::new(data, move |data| { create_file() localVariable 362 pub fn scope<'a, T: 'a, E: 'a, F>( scope() method 406 scope: Scope<T>, global() field [all...] |
| /linux/arch/s390/kernel/ |
| H A D | cache.c | 42 unsigned char scope : 2; member 93 if (ci->scope != CACHE_SCOPE_SHARED && ci->scope != CACHE_SCOPE_PRIVATE) in get_cache_type() 160 pvt = (ct.ci[level].scope == CACHE_SCOPE_PRIVATE) ? 1 : 0; in populate_cache_leaves()
|
| /linux/tools/testing/selftests/hid/tests/ |
| H A D | conftest.py | 33 @pytest.fixture(autouse=True, scope="session") 39 @pytest.fixture(autouse=True, scope="session") 44 @pytest.fixture(autouse=True, scope="session")
|
| /linux/drivers/fwctl/mlx5/ |
| H A D | main.c | 180 static bool mlx5ctl_validate_rpc(const void *in, enum fwctl_rpc_scope scope) in mlx5ctl_validate_rpc() argument 291 return scope >= FWCTL_RPC_DEBUG_READ_ONLY; in mlx5ctl_validate_rpc() 294 return scope >= FWCTL_RPC_DEBUG_WRITE; in mlx5ctl_validate_rpc() 300 return scope >= FWCTL_RPC_DEBUG_READ_ONLY; in mlx5ctl_validate_rpc() 306 static void *mlx5ctl_fw_rpc(struct fwctl_uctx *uctx, enum fwctl_rpc_scope scope, in mlx5ctl_fw_rpc() argument 324 if (!mlx5ctl_validate_rpc(rpc_in, scope)) in mlx5ctl_fw_rpc()
|