| /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/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/net/shaper/ |
| H A D | shaper.c | 113 if (handle->scope == NET_SHAPER_SCOPE_UNSPEC) in net_shaper_fill_handle() 120 if (nla_put_u32(msg, NET_SHAPER_A_HANDLE_SCOPE, handle->scope) || in net_shaper_fill_handle() 121 (handle->scope >= NET_SHAPER_SCOPE_QUEUE && in net_shaper_fill_handle() 249 return FIELD_PREP(NET_SHAPER_SCOPE_MASK, handle->scope) | in net_shaper_handle_to_index() 256 handle->scope = FIELD_GET(NET_SHAPER_SCOPE_MASK, index); in net_shaper_index_to_handle() 263 switch (handle->scope) { in net_shaper_default_parent() 267 parent->scope = NET_SHAPER_SCOPE_UNSPEC; in net_shaper_default_parent() 272 parent->scope = NET_SHAPER_SCOPE_NETDEV; in net_shaper_default_parent() 347 if (handle->scope == NET_SHAPER_SCOPE_NODE && in net_shaper_pre_insert() 460 handle->scope = nla_get_u32(tb[NET_SHAPER_A_HANDLE_SCOPE]); in net_shaper_parse_handle() [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 | 950 struct s1e2_tlbi_scope *scope) in invalidate_vncr_va() argument 969 switch (scope->type) { in invalidate_vncr_va() 974 if (va_end <= scope->va || in invalidate_vncr_va() 975 va_start >= (scope->va + scope->size)) in invalidate_vncr_va() 977 if (vt->wr.nG && vt->wr.asid != scope->asid) in invalidate_vncr_va() 982 if (va_end <= scope->va || in invalidate_vncr_va() 983 va_start >= (scope->va + scope->size)) in invalidate_vncr_va() 988 if (!vt->wr.nG || vt->wr.asid != scope->asid) in invalidate_vncr_va() 1000 struct s1e2_tlbi_scope *scope) in compute_s1_tlbi_range() argument 1015 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, 45 enum sctp_scope scope, gfp_t gfp, in sctp_bind_addr_copy() argument 56 error = sctp_copy_one_addr(net, dest, &addr->a, scope, in sctp_bind_addr_copy() 66 if (list_empty(&dest->address_list) && (SCTP_SCOPE_GLOBAL == scope)) { in sctp_bind_addr_copy() 460 union sctp_addr *addr, enum sctp_scope scope, in sctp_copy_one_addr() argument 466 error = sctp_copy_local_addr_list(net, dest, scope, gfp, flags); in sctp_copy_one_addr() 467 } else if (sctp_in_scope(net, addr, scope)) { in sctp_copy_one_addr() 506 enum sctp_scope scope) in sctp_in_scope() argument 528 if (addr_scope <= scope) in sctp_in_scope() 532 if (addr_scope <= scope || SCTP_SCOPE_PRIVATE == addr_scope) in sctp_in_scope() [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 | 181 access_mask_t scope) in domain_is_scoped() argument 207 if (landlock_get_scope_mask(client, client_layer) & scope) in domain_is_scoped() 220 if (landlock_get_scope_mask(client, client_layer) & scope) { in domain_is_scoped() 262 .scope = LANDLOCK_SCOPE_ABSTRACT_UNIX_SOCKET, 335 .scope = LANDLOCK_SCOPE_SIGNAL, 373 signal_scope.scope); in hook_task_kill() 414 signal_scope.scope); in hook_file_send_sigiotask()
|
| /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/iommu/intel/ |
| H A D | irq_remapping.c | 828 static int ir_parse_one_hpet_scope(struct acpi_dmar_device_scope *scope, in ir_parse_one_hpet_scope() argument 836 bus = scope->bus; in ir_parse_one_hpet_scope() 837 path = (struct acpi_dmar_pci_path *)(scope + 1); in ir_parse_one_hpet_scope() 838 count = (scope->length - sizeof(struct acpi_dmar_device_scope)) in ir_parse_one_hpet_scope() 853 ir_hpet[count].id == scope->enumeration_id) in ir_parse_one_hpet_scope() 864 ir_hpet[free].id = scope->enumeration_id; in ir_parse_one_hpet_scope() 868 scope->enumeration_id, drhd->address); in ir_parse_one_hpet_scope() 873 static int ir_parse_one_ioapic_scope(struct acpi_dmar_device_scope *scope, in ir_parse_one_ioapic_scope() argument 881 bus = scope->bus; in ir_parse_one_ioapic_scope() 882 path = (struct acpi_dmar_pci_path *)(scope + 1); in ir_parse_one_ioapic_scope() [all …]
|
| 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/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 365 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/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 | 1591 has_always(const struct arm64_cpu_capabilities *entry, int scope) in has_always() argument 1624 read_scoped_sysreg(const struct arm64_cpu_capabilities *entry, int scope) in read_scoped_sysreg() argument 1626 WARN_ON(scope == SCOPE_LOCAL_CPU && preemptible()); in read_scoped_sysreg() 1627 if (scope == SCOPE_SYSTEM) in read_scoped_sysreg() 1634 has_user_cpuid_feature(const struct arm64_cpu_capabilities *entry, int scope) in has_user_cpuid_feature() argument 1638 u64 val = read_scoped_sysreg(entry, scope); in has_user_cpuid_feature() 1654 has_cpuid_feature(const struct arm64_cpu_capabilities *entry, int scope) in has_cpuid_feature() argument 1656 u64 val = read_scoped_sysreg(entry, scope); in has_cpuid_feature() 1709 static bool has_32bit_el0(const struct arm64_cpu_capabilities *entry, int scope) in has_32bit_el0() argument 1711 if (!has_cpuid_feature(entry, scope)) in has_32bit_el0() [all …]
|
| /linux/net/ipv6/ |
| H A D | addrconf_core.c | 20 #define IPV6_ADDR_SCOPE_TYPE(scope) ((scope) << 16) argument 22 static inline unsigned int ipv6_addr_scope2type(unsigned int scope) in ipv6_addr_scope2type() argument 24 switch (scope) { in ipv6_addr_scope2type() 35 return IPV6_ADDR_SCOPE_TYPE(scope); in ipv6_addr_scope2type()
|