Home
last modified time | relevance | path

Searched refs:is_write (Results 1 – 25 of 89) sorted by relevance

1234

/linux/arch/arm64/kvm/
A Dvgic-sys-reg-v3.c22 if (p->is_write) { in access_gic_ctlr()
93 if (p->is_write) { in access_gic_pmr()
109 if (p->is_write) { in access_gic_bpr0()
126 if (!p->is_write) in access_gic_bpr1()
140 if (!p->is_write) in access_gic_bpr1()
194 if (p->is_write) in vgic_v3_access_apr_reg()
211 if (!p->is_write) in access_gic_aprn()
270 params.is_write = is_write; in vgic_v3_has_cpu_sysregs_attr()
286 if (is_write) in vgic_v3_cpu_sysregs_uaccess()
288 params.is_write = is_write; in vgic_v3_cpu_sysregs_uaccess()
[all …]
A Dtrace_handle_exit.h125 TP_PROTO(const char *fn, int reg, bool is_write, u64 write_value),
126 TP_ARGS(fn, reg, is_write, write_value),
131 __field(bool, is_write)
138 __entry->is_write = is_write;
142 …TP_printk("%s %s reg %d (0x%016llx)", __entry->fn, __entry->is_write?"write to":"read from", __en…
166 __field(bool, is_write)
177 __entry->is_write = params->is_write;
191 __entry->is_write ? "write" : "read")
A Dmmio.c129 bool is_write; in io_mem_abort() local
154 is_write = kvm_vcpu_dabt_iswrite(vcpu); in io_mem_abort()
158 if (is_write) { in io_mem_abort()
176 run->mmio.is_write = is_write; in io_mem_abort()
183 if (!is_write) in io_mem_abort()
190 if (is_write) in io_mem_abort()
A Dsys_regs.c115 if (!p->is_write) in access_dcsw()
185 if (p->is_write) in access_actlr()
206 if (!p->is_write) in access_gic_sgi()
249 if (p->is_write) in access_gic_sre()
260 if (p->is_write) in trap_raz_wi()
400 if (p->is_write) in trap_bvr()
442 if (p->is_write) in trap_bcr()
485 if (p->is_write) in trap_wvr()
528 if (p->is_write) in trap_wcr()
722 if (p->is_write) in access_pmselr()
[all …]
A Dsys_regs.h27 bool is_write; member
36 .is_write = !((esr) & 1) })
93 p->Op0, p->Op1, p->CRn, p->CRm, p->Op2, p->is_write ? "write" : "read"); in print_sys_reg_msg()
/linux/arch/powerpc/mm/
A Dfault.c198 unsigned long address, bool is_write) in bad_kernel_fault() argument
217 if (bad_kuap_fault(regs, address, is_write)) { in bad_kernel_fault()
219 is_write ? "write" : "read", address, in bad_kernel_fault()
267 if (is_write) { in access_error()
349 if (radix_enabled() || is_write) in sanity_check_fault()
394 int is_write = page_fault_is_write(error_code); in ___do_page_fault() local
448 if (is_write) in ___do_page_fault()
495 if (unlikely(access_pkey_error(is_write, is_exec, in ___do_page_fault()
499 if (unlikely(access_error(is_write, is_exec, vma))) in ___do_page_fault()
570 int is_write = page_fault_is_write(regs->dsisr); in __bad_page_fault() local
[all …]
A Dcopro_fault.c27 unsigned long is_write; in copro_handle_mm_fault() local
49 is_write = dsisr & DSISR_ISSTORE; in copro_handle_mm_fault()
50 if (is_write) { in copro_handle_mm_fault()
67 *flt = handle_mm_fault(vma, ea, is_write ? FAULT_FLAG_WRITE : 0, NULL); in copro_handle_mm_fault()
/linux/mm/kfence/
A Dreport.c175 static const char *get_access_type(bool is_write) in get_access_type() argument
177 return is_write ? "write" : "read"; in get_access_type()
180 void kfence_report_error(unsigned long address, bool is_write, struct pt_regs *regs, in kfence_report_error() argument
218 pr_err("BUG: KFENCE: out-of-bounds %s in %pS\n\n", get_access_type(is_write), in kfence_report_error()
221 get_access_type(is_write), (void *)address, in kfence_report_error()
227 pr_err("BUG: KFENCE: use-after-free %s in %pS\n\n", get_access_type(is_write), in kfence_report_error()
230 get_access_type(is_write), (void *)address, object_index); in kfence_report_error()
239 pr_err("BUG: KFENCE: invalid %s in %pS\n\n", get_access_type(is_write), in kfence_report_error()
241 pr_err("Invalid %s at 0x%p:\n", get_access_type(is_write), in kfence_report_error()
A Dkfence_test.c86 bool is_write; /* Is access a write. */ member
91 return r->is_write ? "write" : "read"; in get_access_type()
323 .is_write = false, in test_out_of_bounds_read()
357 .is_write = true, in test_out_of_bounds_write()
375 .is_write = false, in test_use_after_free_read()
460 .is_write = false, in test_kmalloc_aligned_oob_read()
559 .is_write = false, in test_init_on_free()
646 .is_write = false, in test_invalid_access()
660 .is_write = false, in test_memcache_typesafe_by_rcu()
697 .is_write = false, in test_krealloc()
/linux/drivers/memstick/host/
A Dr592.c242 if (!is_write) in r592_start_dma()
278 bool is_write; in r592_transfer_fifo_dma() local
284 is_write = dev->req->data_dir == WRITE; in r592_transfer_fifo_dma()
303 r592_start_dma(dev, is_write); in r592_transfer_fifo_dma()
422 if (is_write) { in r592_transfer_fifo_pio()
438 if (is_write) in r592_transfer_fifo_pio()
445 if (is_write) in r592_transfer_fifo_pio()
456 bool is_write; in r592_execute_tpc() local
486 if (is_write) in r592_execute_tpc()
497 if (is_write) { in r592_execute_tpc()
[all …]
/linux/arch/um/kernel/skas/
A Duaccess.c46 static pte_t *maybe_map(unsigned long virt, int is_write) in maybe_map() argument
52 (is_write && !pte_write(*pte))) { in maybe_map()
53 err = handle_page_fault(virt, 0, is_write, 1, &dummy_code); in maybe_map()
64 static int do_op_one_page(unsigned long addr, int len, int is_write, in do_op_one_page() argument
71 pte = maybe_map(addr, is_write); in do_op_one_page()
95 static long buffer_op(unsigned long addr, int len, int is_write, in buffer_op() argument
103 n = do_op_one_page(addr, size, is_write, op, arg); in buffer_op()
115 n = do_op_one_page(addr, PAGE_SIZE, is_write, op, arg); in buffer_op()
127 n = do_op_one_page(addr, remain, is_write, op, arg); in buffer_op()
/linux/kernel/kcsan/
A Dencoding.h62 encode_watchpoint(unsigned long addr, size_t size, bool is_write) in encode_watchpoint() argument
64 return (long)((is_write ? WATCHPOINT_WRITE_MASK : 0) | in encode_watchpoint()
72 bool *is_write) in decode_watchpoint() argument
80 *is_write = !!((unsigned long)watchpoint & WATCHPOINT_WRITE_MASK); in decode_watchpoint()
A Dselftest.c37 bool is_write = !!prandom_u32_max(2); in test_encode_decode() local
51 encoded_watchpoint = encode_watchpoint(addr, size, is_write); in test_encode_decode()
66 if (WARN_ON(is_write != verif_is_write)) in test_encode_decode()
72 __func__, is_write ? "write" : "read", size, addr, encoded_watchpoint, in test_encode_decode()
A Dcore.c120 bool is_write; in find_watchpoint() local
129 &wp_size, &is_write)) in find_watchpoint()
132 if (expect_write && !is_write) in find_watchpoint()
144 insert_watchpoint(unsigned long addr, size_t size, bool is_write) in insert_watchpoint() argument
147 const long encoded_watchpoint = encode_watchpoint(addr, size, is_write); in insert_watchpoint()
427 const bool is_write = (type & KCSAN_ACCESS_WRITE) != 0; in kcsan_setup_watchpoint() local
467 watchpoint = insert_watchpoint((unsigned long)ptr, size, is_write); in kcsan_setup_watchpoint()
610 const bool is_write = (type & KCSAN_ACCESS_WRITE) != 0; in check_access() local
626 watchpoint = find_watchpoint((unsigned long)ptr, size, !is_write, in check_access()
/linux/drivers/platform/goldfish/
A Dgoldfish_pipe.c260 int is_write, in goldfish_pin_pages() argument
275 !is_write ? FOLL_WRITE : 0, in goldfish_pin_pages()
293 int is_write, in populate_rw_params() argument
328 int is_write, in transfer_max_buffers() argument
343 last_page_size, is_write, in transfer_max_buffers()
351 first_page, last_page, iter_last_page_size, is_write, in transfer_max_buffers()
356 is_write ? PIPE_CMD_WRITE : PIPE_CMD_READ); in transfer_max_buffers()
361 !is_write && *consumed_size > 0); in transfer_max_buffers()
392 int is_write) in goldfish_pipe_read_write() argument
448 status, is_write ? "write" : "read"); in goldfish_pipe_read_write()
[all …]
/linux/drivers/gpu/drm/radeon/
A Dradeon_dp_auxch.c69 bool is_write = false; in radeon_dp_aux_transfer_native() local
77 is_write = true; in radeon_dp_aux_transfer_native()
92 if (is_write) in radeon_dp_aux_transfer_native()
137 if (is_write) { in radeon_dp_aux_transfer_native()
196 if (is_write) in radeon_dp_aux_transfer_native()
/linux/arch/arm64/kvm/vgic/
A Dvgic-kvm-device.c356 u32 *reg, bool is_write) in vgic_v2_attr_regs_access() argument
383 ret = vgic_v2_cpuif_uaccess(vcpu, is_write, addr, reg); in vgic_v2_attr_regs_access()
386 ret = vgic_v2_dist_uaccess(vcpu, is_write, addr, reg); in vgic_v2_attr_regs_access()
520 u64 *reg, bool is_write) in vgic_v3_attr_regs_access() argument
549 if (is_write) in vgic_v3_attr_regs_access()
552 ret = vgic_v3_dist_uaccess(vcpu, is_write, addr, &tmp32); in vgic_v3_attr_regs_access()
553 if (!is_write) in vgic_v3_attr_regs_access()
557 if (is_write) in vgic_v3_attr_regs_access()
561 if (!is_write) in vgic_v3_attr_regs_access()
568 ret = vgic_v3_cpu_sysregs_uaccess(vcpu, is_write, in vgic_v3_attr_regs_access()
[all …]
A Dvgic.h185 int vgic_v2_dist_uaccess(struct kvm_vcpu *vcpu, bool is_write,
187 int vgic_v2_cpuif_uaccess(struct kvm_vcpu *vcpu, bool is_write,
239 int vgic_v3_dist_uaccess(struct kvm_vcpu *vcpu, bool is_write,
241 int vgic_v3_redist_uaccess(struct kvm_vcpu *vcpu, bool is_write,
243 int vgic_v3_cpu_sysregs_uaccess(struct kvm_vcpu *vcpu, bool is_write,
245 int vgic_v3_has_cpu_sysregs_attr(struct kvm_vcpu *vcpu, bool is_write, u64 id,
247 int vgic_v3_line_level_info_uaccess(struct kvm_vcpu *vcpu, bool is_write,
/linux/mm/kasan/
A Dreport.c93 info->is_write ? "Write" : "Read", info->access_size, in print_error_description()
97 info->is_write ? "Write" : "Read", in print_error_description()
397 static void __kasan_report(unsigned long addr, size_t size, bool is_write, in __kasan_report() argument
422 info.is_write = is_write; in __kasan_report()
443 bool kasan_report(unsigned long addr, size_t size, bool is_write, in kasan_report() argument
450 __kasan_report(addr, size, is_write, ip); in kasan_report()
/linux/arch/xtensa/mm/
A Dfault.c43 int is_write, is_exec; in do_page_fault() local
63 is_write = (exccause == EXCCAUSE_STORE_CACHE_ATTRIBUTE) ? 1 : 0; in do_page_fault()
71 is_write ? "w" : "", is_exec ? "x" : ""); in do_page_fault()
98 if (is_write) { in do_page_fault()
153 current->thread.error_code = is_write; in do_page_fault()
/linux/arch/microblaze/mm/
A Dfault.c92 int is_write = error_code & ESR_S; in do_page_fault() local
107 is_write = 0; in do_page_fault()
160 if (unlikely(!is_write)) in do_page_fault()
202 if (unlikely(is_write)) { in do_page_fault()
/linux/arch/um/kernel/
A Dtrap.c25 int is_write, int is_user, int *code_out) in handle_page_fault() argument
61 if (is_write) { in handle_page_fault()
111 WARN_ON(!pte_young(*pte) || (is_write && !pte_dirty(*pte))); in handle_page_fault()
205 int is_write = FAULT_WRITE(fi); in segv() local
226 err = handle_page_fault(address, ip, is_write, is_user, in segv()
/linux/drivers/tty/
A Dgoldfish.c56 int is_write) in do_rw_io() argument
66 if (is_write) in do_rw_io()
79 int is_write) in goldfish_tty_rw() argument
84 dma_dir = (is_write ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in goldfish_tty_rw()
109 do_rw_io(qtty, dma_handle, avail, is_write); in goldfish_tty_rw()
124 do_rw_io(qtty, addr, count, is_write); in goldfish_tty_rw()
/linux/arch/arm64/kvm/hyp/nvhe/
A Dsys_regs.c256 if (!p->is_write) in pvm_access_raz_wi()
272 if (p->is_write) { in pvm_access_id_aarch32()
298 if (p->is_write) { in pvm_access_id_aarch64()
312 if (!p->is_write) in pvm_gic_read_sre()
471 if (!params.is_write) in kvm_handle_pvm_sysreg()
/linux/include/linux/
A Dkfence.h203 bool __must_check kfence_handle_page_fault(unsigned long addr, bool is_write, struct pt_regs *regs);
216 static inline bool __must_check kfence_handle_page_fault(unsigned long addr, bool is_write, in kfence_handle_page_fault() argument

Completed in 45 milliseconds

1234