Home
last modified time | relevance | path

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

1234

/linux/arch/arm64/kvm/
H 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")
H A Dsys_regs.c365 if (p->is_write) in access_rw()
380 if (!p->is_write) in access_dcsw()
437 BUG_ON(!p->is_write); in access_vm_reg()
461 if (p->is_write) in access_actlr()
485 if (!p->is_write) in access_gic_sgi()
531 if (p->is_write) in access_gic_sre()
542 if (p->is_write) in trap_raz_wi()
563 if (p->is_write && sr == SYS_LORID_EL1) in trap_loregion()
575 if (!p->is_write) in trap_oslar_el1()
591 if (p->is_write) in trap_oslsr_el1()
[all …]
H A Dsys_regs.h27 bool is_write; member
43 .is_write = !((esr) & 1) })
50 .is_write = !((esr) & 1) })
111 p->Op0, p->Op1, p->CRn, p->CRm, p->Op2, p->is_write ? "write" : "read"); in print_sys_reg_msg()
/linux/mm/kfence/
H A Dreport.c185 static const char *get_access_type(bool is_write) in get_access_type() argument
187 return is_write ? "write" : "read"; in get_access_type()
190 void kfence_report_error(unsigned long address, bool is_write, struct pt_regs *regs, in kfence_report_error() argument
228 pr_err("BUG: KFENCE: out-of-bounds %s in %pS\n\n", get_access_type(is_write), in kfence_report_error()
231 get_access_type(is_write), (void *)address, in kfence_report_error()
237 pr_err("BUG: KFENCE: use-after-free %s in %pS\n\n", get_access_type(is_write), in kfence_report_error()
240 get_access_type(is_write), (void *)address, object_index); in kfence_report_error()
249 pr_err("BUG: KFENCE: invalid %s in %pS\n\n", get_access_type(is_write), in kfence_report_error()
251 pr_err("Invalid %s at 0x%p:\n", get_access_type(is_write), in kfence_report_error()
H A Dkfence_test.c86 bool is_write; /* Is access a write. */ member
91 return r->is_write ? "write" : "read"; in get_access_type()
324 .is_write = false, in test_out_of_bounds_read()
358 .is_write = true, in test_out_of_bounds_write()
376 .is_write = false, in test_use_after_free_read()
477 .is_write = false, in test_kmalloc_aligned_oob_read()
576 .is_write = false, in test_init_on_free()
664 .is_write = false, in test_memcache_typesafe_by_rcu()
678 .is_write = false, in test_memcache_typesafe_by_rcu()
715 .is_write in test_krealloc()
[all...]
/linux/arch/um/kernel/skas/
H 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/
H 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()
H A Dselftest.c35 bool is_write = !!get_random_u32_below(2); in test_encode_decode() local
49 encoded_watchpoint = encode_watchpoint(addr, size, is_write); in test_encode_decode()
64 if (WARN_ON(is_write != verif_is_write)) in test_encode_decode()
70 __func__, is_write ? "write" : "read", size, addr, encoded_watchpoint, in test_encode_decode()
/linux/drivers/platform/goldfish/
H A Dgoldfish_pipe.c259 int is_write, in goldfish_pin_pages() argument
274 !is_write ? FOLL_WRITE : 0, in goldfish_pin_pages()
292 int is_write, in populate_rw_params() argument
327 int is_write, in transfer_max_buffers() argument
342 last_page_size, is_write, in transfer_max_buffers()
350 first_page, last_page, iter_last_page_size, is_write, in transfer_max_buffers()
355 is_write ? PIPE_CMD_WRITE : PIPE_CMD_READ); in transfer_max_buffers()
360 !is_write && *consumed_size > 0); in transfer_max_buffers()
366 static int wait_for_host_signal(struct goldfish_pipe *pipe, int is_write) in wait_for_host_signal() argument
368 u32 wake_bit = is_write ? BIT_WAKE_ON_WRITE : BIT_WAKE_ON_READ; in wait_for_host_signal()
[all …]
/linux/mm/kasan/
H A Dreport.c219 static void end_report(unsigned long *flags, const void *addr, bool is_write) in end_report() argument
236 if (is_write) in end_report()
257 info->is_write ? "Write" : "Read", info->access_size, in print_error_description()
261 info->is_write ? "Write" : "Read", in print_error_description()
559 info.is_write = false; in kasan_report_invalid_free()
578 bool kasan_report(const void *addr, size_t size, bool is_write, in kasan_report() argument
597 info.is_write = is_write; in kasan_report()
604 end_report(&irq_flags, (void *)addr, is_write); in kasan_report()
/linux/drivers/gpu/drm/radeon/
H 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()
195 if (is_write) in radeon_dp_aux_transfer_native()
/linux/arch/powerpc/mm/
H A Dcopro_fault.c27 unsigned long is_write; in copro_handle_mm_fault() local
41 is_write = dsisr & DSISR_ISSTORE; in copro_handle_mm_fault()
42 if (is_write) { in copro_handle_mm_fault()
59 *flt = handle_mm_fault(vma, ea, is_write ? FAULT_FLAG_WRITE : 0, NULL); in copro_handle_mm_fault()
/linux/arch/um/kernel/
H A Dtrap.c25 int is_write, int is_user, int *code_out) in handle_page_fault() argument
62 if (is_write) { in handle_page_fault()
114 WARN_ON(!pte_young(*pte) || (is_write && !pte_dirty(*pte))); in handle_page_fault()
206 int is_write = FAULT_WRITE(fi); in segv() local
236 err = handle_page_fault(address, ip, is_write, is_user, in segv()
/linux/arch/microblaze/mm/
H 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()
203 if (unlikely(is_write)) { in do_page_fault()
/linux/arch/xtensa/mm/
H A Dfault.c96 int is_write, is_exec; in do_page_fault() local
118 is_write = (exccause == EXCCAUSE_STORE_CACHE_ATTRIBUTE) ? 1 : 0; in do_page_fault()
126 is_write ? "w" : "", is_exec ? "x" : ""); in do_page_fault()
144 if (is_write) { in do_page_fault()
/linux/arch/powerpc/include/asm/
H A Dkup.h61 __bad_kuap_fault(struct pt_regs *regs, unsigned long address, bool is_write) in __bad_kuap_fault() argument
84 bad_kuap_fault(struct pt_regs *regs, unsigned long address, bool is_write) in bad_kuap_fault() argument
89 return __bad_kuap_fault(regs, address, is_write); in bad_kuap_fault()
/linux/drivers/tty/
H A Dgoldfish.c54 size_t count, bool is_write) in do_rw_io() argument
64 if (is_write) in do_rw_io()
75 size_t count, bool is_write) in goldfish_tty_rw() argument
80 dma_dir = (is_write ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in goldfish_tty_rw()
105 do_rw_io(qtty, dma_handle, avail, is_write); in goldfish_tty_rw()
120 do_rw_io(qtty, addr, count, is_write); in goldfish_tty_rw()
/linux/arch/arm64/kvm/vgic/
H A Dvgic.h203 int vgic_v2_dist_uaccess(struct kvm_vcpu *vcpu, bool is_write,
205 int vgic_v2_cpuif_uaccess(struct kvm_vcpu *vcpu, bool is_write,
263 int vgic_v3_dist_uaccess(struct kvm_vcpu *vcpu, bool is_write,
265 int vgic_v3_redist_uaccess(struct kvm_vcpu *vcpu, bool is_write,
268 struct kvm_device_attr *attr, bool is_write);
270 int vgic_v3_line_level_info_uaccess(struct kvm_vcpu *vcpu, bool is_write,
/linux/arch/arm64/kvm/hyp/nvhe/
H A Dsys_regs.c253 if (!p->is_write) in pvm_access_raz_wi()
269 if (p->is_write) { in pvm_access_id_aarch32()
295 if (p->is_write) { in pvm_access_id_aarch64()
309 if (!p->is_write) in pvm_gic_read_sre()
500 if (!params.is_write) in kvm_handle_pvm_sysreg()
/linux/arch/csky/mm/
H A Dfault.c23 static inline bool is_write(struct pt_regs *regs) in is_write() function
173 if (is_write(regs)) { in access_error()
237 if (is_write(regs)) in do_page_fault()
/linux/include/linux/
H A Dkfence.h206 bool __must_check kfence_handle_page_fault(unsigned long addr, bool is_write, struct pt_regs *regs);
237 static inline bool __must_check kfence_handle_page_fault(unsigned long addr, bool is_write, in kfence_handle_page_fault() argument
/linux/drivers/nvmem/
H A Drave-sp-eeprom.c95 const bool is_write = type == RAVE_SP_EEPROM_WRITE; in rave_sp_eeprom_io() local
96 const unsigned int data_size = is_write ? sizeof(page->data) : 0; in rave_sp_eeprom_io()
99 is_write ? sizeof(*page) - sizeof(page->data) : sizeof(*page); in rave_sp_eeprom_io()
/linux/drivers/target/
H A Dtarget_core_file.c269 int is_write = !(data_direction == DMA_FROM_DEVICE); in fd_execute_rw_aio() local
289 iov_iter_bvec(&iter, is_write, aio_cmd->bvecs, sgl_nents, len); in fd_execute_rw_aio()
298 if (is_write && (cmd->se_cmd_flags & SCF_FUA)) in fd_execute_rw_aio()
301 if (is_write) in fd_execute_rw_aio()
314 u32 sgl_nents, u32 data_length, int is_write) in fd_do_rw() argument
334 iov_iter_bvec(&iter, is_write, bvec, sgl_nents, len); in fd_do_rw()
335 if (is_write) in fd_do_rw()
340 if (is_write) { in fd_do_rw()
/linux/arch/loongarch/kvm/
H A Dexit.c171 run->iocsr_io.is_write = 0; in kvm_emu_iocsr()
190 run->iocsr_io.is_write = 1; in kvm_emu_iocsr()
194 run->iocsr_io.is_write = 1; in kvm_emu_iocsr()
198 run->iocsr_io.is_write = 1; in kvm_emu_iocsr()
202 run->iocsr_io.is_write = 1; in kvm_emu_iocsr()
208 if (run->iocsr_io.is_write) { in kvm_emu_iocsr()
486 run->mmio.is_write = 0; in kvm_emu_mmio_read()
649 run->mmio.is_write = 1; in kvm_emu_mmio_write()
/linux/arch/powerpc/include/asm/book3s/32/
H A Dkup.h146 __bad_kuap_fault(struct pt_regs *regs, unsigned long address, bool is_write) in __bad_kuap_fault() argument
150 if (!is_write) in __bad_kuap_fault()

1234