| /linux/drivers/acpi/acpica/ |
| H A D | psscope.c | 32 return (parser_state->scope->parse_scope.op); in acpi_ps_get_parent_scope() 53 ((parser_state->aml >= parser_state->scope->parse_scope.arg_end in acpi_ps_has_completed_scope() 54 || !parser_state->scope->parse_scope.arg_count))); in acpi_ps_has_completed_scope() 74 union acpi_generic_state *scope; in acpi_ps_init_scope() local 78 scope = acpi_ut_create_generic_state(); in acpi_ps_init_scope() 79 if (!scope) { in acpi_ps_init_scope() 83 scope->common.descriptor_type = ACPI_DESC_TYPE_STATE_RPSCOPE; in acpi_ps_init_scope() 84 scope->parse_scope.op = root_op; in acpi_ps_init_scope() 85 scope->parse_scope.arg_count = ACPI_VAR_ARGS; in acpi_ps_init_scope() 86 scope->parse_scope.arg_end = parser_state->aml_end; in acpi_ps_init_scope() [all …]
|
| H A D | dswscope.c | 40 walk_state->scope_info = scope_info->scope.next; in acpi_ds_scope_stack_clear() 100 scope_info->scope.node = node; in acpi_ds_scope_stack_push() 114 scope.node), in acpi_ds_scope_stack_push() 123 acpi_ut_get_node_name(scope_info->scope.node), in acpi_ds_scope_stack_push() 164 acpi_ut_get_node_name(scope_info->scope.node), in acpi_ds_scope_stack_pop() 171 scope.node), in acpi_ds_scope_stack_pop()
|
| /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() 298 parent->scope = NET_SHAPER_SCOPE_UNSPEC; in net_shaper_default_parent() 303 parent->scope = NET_SHAPER_SCOPE_NETDEV; in net_shaper_default_parent() [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/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/arch/arm64/kvm/ |
| H A D | nested.c | 961 struct s1e2_tlbi_scope *scope) in invalidate_vncr_va() argument 980 switch (scope->type) { in invalidate_vncr_va() 985 if (va_end <= scope->va || in invalidate_vncr_va() 986 va_start >= (scope->va + scope->size)) in invalidate_vncr_va() 988 if (vt->wr.nG && vt->wr.asid != scope->asid) in invalidate_vncr_va() 993 if (va_end <= scope->va || in invalidate_vncr_va() 994 va_start >= (scope->va + scope->size)) in invalidate_vncr_va() 999 if (!vt->wr.nG || vt->wr.asid != scope->asid) in invalidate_vncr_va() 1011 struct s1e2_tlbi_scope *scope) in compute_s1_tlbi_range() argument 1026 scope->type = TLBI_ALL; in compute_s1_tlbi_range() [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/security/landlock/ |
| H A D | task.c | 3 * Landlock - Ptrace and scope hooks 171 * server/receiver should be restricted based on scope controls. 175 * @scope: The scope restriction criteria. 182 access_mask_t scope) in domain_is_scoped() 211 if (landlock_get_scope_mask(client, client_layer) & scope) in domain_is_scoped() 224 if (landlock_get_scope_mask(client, client_layer) & scope) { in domain_is_scoped() 266 .scope = LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET, in hook_unix_stream_connect() 339 .scope = LANDLOCK_SCOPE_SIGNAL, in hook_task_kill() 377 signal_scope.scope); in hook_task_kill() 181 domain_is_scoped(const struct landlock_ruleset * const client,const struct landlock_ruleset * const server,access_mask_t scope) domain_is_scoped() argument [all...] |
| /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/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/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/drivers/iommu/intel/ |
| H A D | dmar.c | 84 struct acpi_dmar_device_scope *scope; in dmar_alloc_dev_scope() local 88 scope = start; in dmar_alloc_dev_scope() 89 if (scope->entry_type == ACPI_DMAR_SCOPE_TYPE_NAMESPACE || in dmar_alloc_dev_scope() 90 scope->entry_type == ACPI_DMAR_SCOPE_TYPE_ENDPOINT || in dmar_alloc_dev_scope() 91 scope->entry_type == ACPI_DMAR_SCOPE_TYPE_BRIDGE) in dmar_alloc_dev_scope() 93 else if (scope->entry_type != ACPI_DMAR_SCOPE_TYPE_IOAPIC && in dmar_alloc_dev_scope() 94 scope->entry_type != ACPI_DMAR_SCOPE_TYPE_HPET) { in dmar_alloc_dev_scope() 97 start += scope->length; in dmar_alloc_dev_scope() 222 struct acpi_dmar_device_scope *scope; in dmar_insert_dev_scope() local 228 for (; start < end; start += scope->length) { in dmar_insert_dev_scope() [all …]
|
| /linux/tools/include/linux/ |
| H A D | btf_ids.h | 76 #define __BTF_ID_LIST(name, scope) \ argument 79 "." #scope " " #name "; \n" \ 135 #define __BTF_SET_START(name, scope) \ argument 138 "." #scope " __BTF_ID__set__" #name "; \n" \
|
| /linux/arch/arm64/kernel/ |
| H A D | cpufeature.c | 1595 has_always(const struct arm64_cpu_capabilities *entry, int scope) in has_always() argument 1628 read_scoped_sysreg(const struct arm64_cpu_capabilities *entry, int scope) in read_scoped_sysreg() argument 1630 WARN_ON(scope == SCOPE_LOCAL_CPU && preemptible()); in read_scoped_sysreg() 1631 if (scope == SCOPE_SYSTEM) in read_scoped_sysreg() 1638 has_user_cpuid_feature(const struct arm64_cpu_capabilities *entry, int scope) in has_user_cpuid_feature() argument 1642 u64 val = read_scoped_sysreg(entry, scope); in has_user_cpuid_feature() 1658 has_cpuid_feature(const struct arm64_cpu_capabilities *entry, int scope) in has_cpuid_feature() argument 1660 u64 val = read_scoped_sysreg(entry, scope); in has_cpuid_feature() 1713 static bool has_32bit_el0(const struct arm64_cpu_capabilities *entry, int scope) in has_32bit_el0() argument 1715 if (!has_cpuid_feature(entry, scope)) in has_32bit_el0() [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")
|