Home
last modified time | relevance | path

Searched refs:access (Results 1 – 25 of 1884) sorted by relevance

12345678910>>...76

/linux-6.12.1/drivers/iommu/iommufd/
Ddevice.c741 static int iommufd_access_change_ioas(struct iommufd_access *access, in iommufd_access_change_ioas() argument
744 u32 iopt_access_list_id = access->iopt_access_list_id; in iommufd_access_change_ioas()
745 struct iommufd_ioas *cur_ioas = access->ioas; in iommufd_access_change_ioas()
748 lockdep_assert_held(&access->ioas_lock); in iommufd_access_change_ioas()
751 if (cur_ioas != access->ioas_unpin) in iommufd_access_change_ioas()
761 access->ioas = NULL; in iommufd_access_change_ioas()
764 rc = iopt_add_access(&new_ioas->iopt, access); in iommufd_access_change_ioas()
766 access->ioas = cur_ioas; in iommufd_access_change_ioas()
773 if (access->ops->unmap) { in iommufd_access_change_ioas()
774 mutex_unlock(&access->ioas_lock); in iommufd_access_change_ioas()
[all …]
/linux-6.12.1/drivers/infiniband/sw/rxe/
Drxe_mw.c51 struct rxe_mw *mw, struct rxe_mr *mr, int access) in rxe_check_bind_mw() argument
61 if (unlikely((access & IB_ZERO_BASED))) { in rxe_check_bind_mw()
94 if (unlikely(mr->access & IB_ZERO_BASED)) { in rxe_check_bind_mw()
100 if (unlikely(!(mr->access & IB_ACCESS_MW_BIND))) { in rxe_check_bind_mw()
107 if (unlikely((access & in rxe_check_bind_mw()
109 !(mr->access & IB_ACCESS_LOCAL_WRITE))) { in rxe_check_bind_mw()
116 if (access & IB_ZERO_BASED) { in rxe_check_bind_mw()
136 struct rxe_mw *mw, struct rxe_mr *mr, int access) in rxe_do_bind_mw() argument
141 mw->access = access; in rxe_do_bind_mw()
172 int access = wqe->wr.wr.mw.access; in rxe_bind_mw() local
[all …]
Drxe_mr.c48 static void rxe_mr_init(int access, struct rxe_mr *mr) in rxe_mr_init() argument
60 mr->access = access; in rxe_mr_init()
67 void rxe_mr_init_dma(int access, struct rxe_mr *mr) in rxe_mr_init_dma() argument
69 rxe_mr_init(access, mr); in rxe_mr_init_dma()
99 bool persistent = !!(mr->access & IB_ACCESS_FLUSH_PERSISTENT); in rxe_mr_fill_pages_from_sgt()
130 int access, struct rxe_mr *mr) in rxe_mr_init_user() argument
135 rxe_mr_init(access, mr); in rxe_mr_init_user()
139 umem = ib_umem_get(&rxe->ib_dev, start, length, access); in rxe_mr_init_user()
212 bool persistent = !!(mr->access & IB_ACCESS_FLUSH_PERSISTENT); in rxe_set_page()
334 int access, in copy_data() argument
[all …]
/linux-6.12.1/security/
Ddevice_cgroup.c38 short access; member
118 walk->access |= ex->access; in dev_exception_add()
146 walk->access &= ~ex->access; in dev_exception_rm()
147 if (!walk->access) { in dev_exception_rm()
250 static void set_access(char *acc, short access) in set_access() argument
254 if (access & DEVCG_ACC_READ) in set_access()
256 if (access & DEVCG_ACC_WRITE) in set_access()
258 if (access & DEVCG_ACC_MKNOD) in set_access()
302 set_access(acc, ex->access); in devcgroup_seq_show()
328 u32 major, u32 minor, short access) in match_exception() argument
[all …]
/linux-6.12.1/include/linux/
Diommufd.h50 void iommufd_access_destroy(struct iommufd_access *access);
51 int iommufd_access_attach(struct iommufd_access *access, u32 ioas_id);
52 int iommufd_access_replace(struct iommufd_access *access, u32 ioas_id);
53 void iommufd_access_detach(struct iommufd_access *access);
63 int iommufd_access_pin_pages(struct iommufd_access *access, unsigned long iova,
66 void iommufd_access_unpin_pages(struct iommufd_access *access,
68 int iommufd_access_rw(struct iommufd_access *access, unsigned long iova,
83 static inline int iommufd_access_pin_pages(struct iommufd_access *access, in iommufd_access_pin_pages() argument
92 static inline void iommufd_access_unpin_pages(struct iommufd_access *access, in iommufd_access_unpin_pages() argument
98 static inline int iommufd_access_rw(struct iommufd_access *access, unsigned long iova, in iommufd_access_rw() argument
Ddevice_cgroup.h16 short access);
19 short type, access = 0; in devcgroup_inode_permission() local
32 access |= DEVCG_ACC_WRITE; in devcgroup_inode_permission()
34 access |= DEVCG_ACC_READ; in devcgroup_inode_permission()
37 access); in devcgroup_inode_permission()
61 short access) in devcgroup_check_permission() argument
/linux-6.12.1/sound/core/
Dcontrol_led.c49 unsigned int access; member
82 static inline unsigned int access_to_group(unsigned int access) in access_to_group() argument
84 return ((access & SNDRV_CTL_ELEM_ACCESS_LED_MASK) >> in access_to_group()
93 static struct snd_ctl_led *snd_ctl_led_get_by_access(unsigned int access) in snd_ctl_led_get_by_access() argument
95 unsigned int group = access_to_group(access); in snd_ctl_led_get_by_access()
138 static void snd_ctl_led_set_state(struct snd_card *card, unsigned int access, in snd_ctl_led_set_state() argument
146 led = snd_ctl_led_get_by_access(access); in snd_ctl_led_set_state()
164 lctl->access = access; in snd_ctl_led_set_state()
201 unsigned int access) in snd_ctl_led_remove() argument
208 if (lctl && (access == 0 || access != lctl->access)) { in snd_ctl_led_remove()
[all …]
/linux-6.12.1/Documentation/admin-guide/LSM/
DSmack.rst10 Smack is a kernel based implementation of mandatory access
33 access to systems that use them as Smack does.
50 load the Smack access rules
53 report if a process with one label has access
85 Used to make access control decisions. In almost all cases
95 label does not allow all of the access permitted to a process
102 the Smack rule (more below) that permitted the write access
110 Use the Smack label in this attribute for access control
115 Use the Smack label in this attribute for access control
131 access
[all …]
/linux-6.12.1/Documentation/admin-guide/mm/damon/
Dstart.rst40 The commands below show the memory access pattern of a program at the moment of
46 0 addr [85.541 TiB , 85.541 TiB ) (57.707 MiB ) access 0 % age 10.400 s
47 1 addr [85.541 TiB , 85.542 TiB ) (413.285 MiB) access 0 % age 11.400 s
48 2 addr [127.649 TiB , 127.649 TiB) (57.500 MiB ) access 0 % age 1.600 s
49 3 addr [127.649 TiB , 127.649 TiB) (32.500 MiB ) access 0 % age 500 ms
50 4 addr [127.649 TiB , 127.649 TiB) (9.535 MiB ) access 100 % age 300 ms
51 5 addr [127.649 TiB , 127.649 TiB) (8.000 KiB ) access 60 % age 0 ns
52 6 addr [127.649 TiB , 127.649 TiB) (6.926 MiB ) access 0 % age 1 s
53 7 addr [127.998 TiB , 127.998 TiB) (120.000 KiB) access 0 % age 11.100 s
54 8 addr [127.998 TiB , 127.998 TiB) (8.000 KiB ) access 40 % age 100 ms
[all …]
/linux-6.12.1/kernel/kcsan/
Dkcsan_test.c152 } access[2]; member
159 const bool is_assert = (r->access[0].type | r->access[1].type) & KCSAN_ACCESS_ASSERT; in __report_matches()
182 if (r->access[1].fn) { in __report_matches()
187 scnprintf(tmp[0], sizeof(tmp[0]), "%pS", r->access[0].fn); in __report_matches()
188 scnprintf(tmp[1], sizeof(tmp[1]), "%pS", r->access[1].fn); in __report_matches()
191 cmp < 0 ? r->access[0].fn : r->access[1].fn, in __report_matches()
192 cmp < 0 ? r->access[1].fn : r->access[0].fn); in __report_matches()
194 scnprintf(cur, end - cur, "%pS", r->access[0].fn); in __report_matches()
204 if (!r->access[1].fn) in __report_matches()
209 const int ty = r->access[i].type; in __report_matches()
[all …]
/linux-6.12.1/tools/testing/selftests/landlock/
Dfs_test.c581 __u64 access; in TEST_F_FORK() local
602 for (access = 1; access <= ACCESS_LAST; access <<= 1) { in TEST_F_FORK()
603 path_beneath_dir.allowed_access = access; in TEST_F_FORK()
608 path_beneath_file.allowed_access = access; in TEST_F_FORK()
611 if (access & ACCESS_FILE) { in TEST_F_FORK()
641 __u64 access; in TEST_F_FORK() local
655 for (access = 1ULL << 63; access != ACCESS_LAST; access >>= 1) { in TEST_F_FORK()
656 path_beneath.allowed_access = access; in TEST_F_FORK()
673 __u64 access; in TEST_F_FORK() local
682 for (access = 1; access > 0; access <<= 1) { in TEST_F_FORK()
[all …]
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/engine/dma/
Duser.c87 args->v0.version, args->v0.target, args->v0.access, in nvkm_dmaobj_ctor()
90 dmaobj->access = args->v0.access; in nvkm_dmaobj_ctor()
120 switch (dmaobj->access) { in nvkm_dmaobj_ctor()
122 dmaobj->access = NV_MEM_ACCESS_VM; in nvkm_dmaobj_ctor()
125 dmaobj->access = NV_MEM_ACCESS_RO; in nvkm_dmaobj_ctor()
128 dmaobj->access = NV_MEM_ACCESS_WO; in nvkm_dmaobj_ctor()
131 dmaobj->access = NV_MEM_ACCESS_RW; in nvkm_dmaobj_ctor()
/linux-6.12.1/drivers/platform/chrome/
Dcros_ec_lpc_mec.c129 enum cros_ec_lpc_mec_emi_access_mode access, new_access; in cros_ec_lpc_io_bytes_mec() local
145 access = ACCESS_TYPE_BYTE; in cros_ec_lpc_io_bytes_mec()
147 access = ACCESS_TYPE_LONG_AUTO_INCREMENT; in cros_ec_lpc_io_bytes_mec()
154 cros_ec_lpc_mec_emi_write_address(offset, access); in cros_ec_lpc_io_bytes_mec()
182 if (new_access != access || in cros_ec_lpc_io_bytes_mec()
183 access != ACCESS_TYPE_LONG_AUTO_INCREMENT) { in cros_ec_lpc_io_bytes_mec()
184 access = new_access; in cros_ec_lpc_io_bytes_mec()
185 cros_ec_lpc_mec_emi_write_address(offset, access); in cros_ec_lpc_io_bytes_mec()
/linux-6.12.1/arch/arm/include/asm/
Darch_timer.h28 void arch_timer_reg_write_cp15(int access, enum arch_timer_reg reg, u64 val) in arch_timer_reg_write_cp15() argument
30 if (access == ARCH_TIMER_PHYS_ACCESS) { in arch_timer_reg_write_cp15()
42 } else if (access == ARCH_TIMER_VIRT_ACCESS) { in arch_timer_reg_write_cp15()
60 u32 arch_timer_reg_read_cp15(int access, enum arch_timer_reg reg) in arch_timer_reg_read_cp15() argument
64 if (access == ARCH_TIMER_PHYS_ACCESS) { in arch_timer_reg_read_cp15()
72 } else if (access == ARCH_TIMER_VIRT_ACCESS) { in arch_timer_reg_read_cp15()
/linux-6.12.1/fs/afs/
Dsecurity.c131 h += permits->permits[i].access; in afs_hash_permits()
168 if (permits->permits[i].access != caller_access) { in afs_cache_permit()
233 new->permits[j].access = caller_access; in afs_cache_permit()
237 new->permits[j].access = permits->permits[i].access; in afs_cache_permit()
244 new->permits[j].access = caller_access; in afs_cache_permit()
327 *_access = permits->permits[i].access; in afs_check_permit_rcu()
367 *_access = permits->permits[i].access; in afs_check_permit()
402 afs_access_t access; in afs_permission() local
416 !afs_check_permit_rcu(vnode, key, &access)) in afs_permission()
430 ret = afs_check_permit(vnode, key, &access); in afs_permission()
[all …]
/linux-6.12.1/Documentation/security/
Dlandlock.rst12 Landlock's goal is to create scoped access-control (i.e. sandboxing). To
20 system security policy enforced by other access control mechanisms (e.g. DAC,
21 LSM). A Landlock rule shall not interfere with other access-controls enforced
31 Guiding principles for safe access controls
34 * A Landlock rule shall be focused on access control on kernel objects instead
40 * Kernel access check shall not slow down access request from unsandboxed
47 Cf. `File descriptor access rights`_.
52 Inode access rights
55 All access rights are tied to an inode and what can be accessed through it.
64 File descriptor access rights
[all …]
/linux-6.12.1/Documentation/core-api/
Dunaligned-memory-access.rst14 when it comes to memory access. This document presents some details about
19 The definition of an unaligned access
26 access.
28 The above may seem a little vague, as memory access can happen in different
32 which will compile to multiple-byte memory access instructions, namely when
47 of memory access. However, we must consider ALL supported architectures;
52 Why unaligned access is bad
55 The effects of performing an unaligned memory access vary from architecture
62 happen. The exception handler is able to correct the unaligned access,
66 unaligned access to be corrected.
[all …]
/linux-6.12.1/Documentation/arch/arm/
Dmem_alignment.rst5 Too many problems popped up because of unnoticed misaligned memory access in
14 unaligned memory access in general. If those access are predictable, you
16 alignment trap can fixup misaligned access for the exception cases, but at
20 trap to SIGBUS any code performing unaligned access (good for debugging bad
21 code), or even fixup the access by software like for kernel code. The later
36 0 A user process performing an unaligned memory access
42 performing the unaligned access. This is of course
47 performing the unaligned access.
59 information on unaligned access occurrences plus the current mode of
/linux-6.12.1/drivers/acpi/numa/
Dhmat.c304 u8 type, u32 value, int access) in hmat_update_target_access() argument
308 target->coord[access].read_latency = value; in hmat_update_target_access()
309 target->coord[access].write_latency = value; in hmat_update_target_access()
312 target->coord[access].read_latency = value; in hmat_update_target_access()
315 target->coord[access].write_latency = value; in hmat_update_target_access()
318 target->coord[access].read_bandwidth = value; in hmat_update_target_access()
319 target->coord[access].write_bandwidth = value; in hmat_update_target_access()
322 target->coord[access].read_bandwidth = value; in hmat_update_target_access()
325 target->coord[access].write_bandwidth = value; in hmat_update_target_access()
333 enum access_coordinate_class access) in hmat_update_target_coordinates() argument
[all …]
/linux-6.12.1/drivers/net/dsa/sja1105/
Dsja1105_dynamic_config.c886 .access = OP_WRITE,
894 .access = (OP_READ | OP_WRITE | OP_DEL),
902 .access = (OP_READ | OP_WRITE | OP_VALID_ANYWAY),
910 .access = (OP_WRITE | OP_DEL),
919 .access = OP_WRITE,
927 .access = OP_WRITE,
935 .access = OP_WRITE,
943 .access = OP_WRITE,
951 .access = (OP_WRITE | OP_DEL),
959 .access = OP_WRITE,
[all …]
/linux-6.12.1/drivers/dax/
DKconfig3 tristate "DAX: direct access to differentiated memory"
9 tristate "Device DAX: direct access mapping device"
12 Support raw access to differentiated (persistence, bandwidth,
20 tristate "PMEM DAX: direct access to persistent memory"
24 Support raw access to persistent memory. Note that this
31 tristate "HMEM DAX: direct access to 'specific purpose' memory"
48 tristate "CXL DAX: direct access to CXL RAM regions"
56 instance is created to access that unmapped-by-default address range.
57 Per usual it can remain as dedicated access via a device interface, or
70 Support access to persistent, or other performance
/linux-6.12.1/include/rdma/
Dib_umem.h108 size_t size, int access);
148 int fd, int access,
153 int access);
158 int fd, int access);
170 int access) in ib_umem_get() argument
195 int access, in ib_umem_dmabuf_get() argument
202 size_t size, int fd, int access) in ib_umem_dmabuf_get_pinned() argument
211 int fd, int access) in ib_umem_dmabuf_get_pinned_with_dma_device() argument
/linux-6.12.1/arch/arm/boot/dts/st/
Dstm32mp151.dtsi417 #access-controller-cells = <1>;
435 access-controllers = <&etzpc 16>;
472 access-controllers = <&etzpc 17>;
507 access-controllers = <&etzpc 18>;
544 access-controllers = <&etzpc 19>;
576 access-controllers = <&etzpc 20>;
597 access-controllers = <&etzpc 21>;
616 access-controllers = <&etzpc 22>;
641 access-controllers = <&etzpc 23>;
666 access-controllers = <&etzpc 24>;
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Ddev_cgroup.c17 short access = ctx->access_type >> 16; in bpf_prog1() local
32 if (access & BPF_DEVCG_ACC_READ) in bpf_prog1()
35 if (access & BPF_DEVCG_ACC_WRITE) in bpf_prog1()
38 if (access & BPF_DEVCG_ACC_MKNOD) in bpf_prog1()
/linux-6.12.1/tools/perf/Documentation/
Dsecurity.txt8 Enabling LSM based mandatory access control (MAC) to perf_event_open() syscall
11 LSM hooks for mandatory access control for perf_event_open() syscall can be
13 Targeted policy with perf_event_open() access control capabilities:
127 Opening access to perf_event_open() syscall on Fedora with SELinux
133 and prevent unauthorized access to perf_event_open() syscall. In such case
139 Enforced MAC policy settings (SELinux) can limit access to performance
141 more perf_event access control information and adjusting the policy.
143 access to performance monitoring and observability operations for users
148 >= 0: Disallow raw and ftrace function tracepoint access
149 >= 1: Disallow CPU event access
[all …]

12345678910>>...76