/linux-master/kernel/kcsan/ |
H A D | encoding.h | 62 encode_watchpoint(unsigned long addr, size_t size, bool is_write) argument 64 return (long)((is_write ? WATCHPOINT_WRITE_MASK : 0) | 72 bool *is_write) 80 *is_write = !!((unsigned long)watchpoint & WATCHPOINT_WRITE_MASK); 69 decode_watchpoint(long watchpoint, unsigned long *addr_masked, size_t *size, bool *is_write) argument
|
H A D | selftest.c | 35 bool is_write = !!get_random_u32_below(2); local 49 encoded_watchpoint = encode_watchpoint(addr, size, is_write); 64 if (WARN_ON(is_write != verif_is_write)) 70 __func__, is_write ? "write" : "read", size, addr, encoded_watchpoint,
|
/linux-master/arch/powerpc/mm/ |
H A D | fault.c | 193 unsigned long address, bool is_write) 212 if (bad_kuap_fault(regs, address, is_write)) { 214 is_write ? "write" : "read", address, 223 return WARN(true, "Bug: %s fault blocked by KUAP!", is_write ? "Write" : "Read"); 230 static bool access_pkey_error(bool is_write, bool is_exec, bool is_pkey, argument 238 if (!arch_vma_access_permitted(vma, is_write, is_exec, 0)) 244 static bool access_error(bool is_write, bool is_exec, struct vm_area_struct *vma) argument 262 if (is_write) { 306 static void sanity_check_fault(bool is_write, bool is_user, argument 334 * the special !is_write i 192 bad_kernel_fault(struct pt_regs *regs, unsigned long error_code, unsigned long address, bool is_write) argument 414 int is_write = page_fault_is_write(error_code); local 601 int is_write = page_fault_is_write(regs->dsisr); local [all...] |
H A D | copro_fault.c | 27 unsigned long is_write; local 41 is_write = dsisr & DSISR_ISSTORE; 42 if (is_write) { 59 *flt = handle_mm_fault(vma, ea, is_write ? FAULT_FLAG_WRITE : 0, NULL);
|
/linux-master/arch/arm64/kvm/ |
H A D | mmio.c | 129 bool is_write; local 157 is_write = kvm_vcpu_dabt_iswrite(vcpu); 161 if (is_write) { 179 run->mmio.is_write = is_write; 186 if (!is_write) 193 if (is_write)
|
H A D | trace_handle_exit.h | 125 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", __entry->reg, __entry->write_value) 166 __field(bool, is_write) 177 __entry->is_write = params->is_write; 191 __entry->is_write [all...] |
H A D | sys_regs.h | 27 bool is_write; member in struct:sys_reg_params 43 .is_write = !((esr) & 1) }) 50 .is_write = !((esr) & 1) }) 112 p->Op0, p->Op1, p->CRn, p->CRm, p->Op2, p->is_write ? "write" : "read");
|
/linux-master/mm/kfence/ |
H A D | report.c | 180 static const char *get_access_type(bool is_write) argument 182 return is_write ? "write" : "read"; 185 void kfence_report_error(unsigned long address, bool is_write, struct pt_regs *regs, argument 223 pr_err("BUG: KFENCE: out-of-bounds %s in %pS\n\n", get_access_type(is_write), 226 get_access_type(is_write), (void *)address, 232 pr_err("BUG: KFENCE: use-after-free %s in %pS\n\n", get_access_type(is_write), 235 get_access_type(is_write), (void *)address, object_index); 244 pr_err("BUG: KFENCE: invalid %s in %pS\n\n", get_access_type(is_write), 246 pr_err("Invalid %s at 0x%p:\n", get_access_type(is_write),
|
H A D | kfence.h | 140 void kfence_report_error(unsigned long address, bool is_write, struct pt_regs *regs,
|
/linux-master/tools/testing/selftests/kvm/lib/aarch64/ |
H A D | ucall.c | 28 TEST_ASSERT(run->mmio.is_write && run->mmio.len == sizeof(uint64_t),
|
/linux-master/arch/um/kernel/skas/ |
H A D | uaccess.c | 46 static pte_t *maybe_map(unsigned long virt, int is_write) argument 52 (is_write && !pte_write(*pte))) { 53 err = handle_page_fault(virt, 0, is_write, 1, &dummy_code); 64 static int do_op_one_page(unsigned long addr, int len, int is_write, argument 71 pte = maybe_map(addr, is_write); 95 static long buffer_op(unsigned long addr, int len, int is_write, argument 103 n = do_op_one_page(addr, size, is_write, op, arg); 115 n = do_op_one_page(addr, PAGE_SIZE, is_write, op, arg); 127 n = do_op_one_page(addr, remain, is_write, op, arg);
|
/linux-master/drivers/gpu/drm/radeon/ |
H A D | radeon_dp_auxch.c | 69 bool is_write = false; local 77 is_write = true; 92 if (is_write) 137 if (is_write) { 195 if (is_write)
|
/linux-master/arch/powerpc/include/asm/ |
H A D | kup.h | 61 __bad_kuap_fault(struct pt_regs *regs, unsigned long address, bool is_write) 84 bad_kuap_fault(struct pt_regs *regs, unsigned long address, bool is_write) 89 return __bad_kuap_fault(regs, address, is_write);
|
/linux-master/drivers/memstick/host/ |
H A D | r592.c | 223 static void r592_start_dma(struct r592_device *dev, bool is_write) argument 240 if (!is_write) 276 bool is_write; local 282 is_write = dev->req->data_dir == WRITE; 293 sg_count = dma_map_sg(&dev->pci_dev->dev, &dev->req->sg, 1, is_write ? 301 r592_start_dma(dev, is_write); 310 dma_unmap_sg(&dev->pci_dev->dev, &dev->req->sg, 1, is_write ? 414 bool is_write = dev->req->tpc >= MS_TPC_SET_RW_REG_ADRS; local 420 if (is_write) { 432 (is_write 454 bool is_write; local [all...] |
/linux-master/arch/microblaze/mm/ |
H A D | fault.c | 92 int is_write = error_code & ESR_S; local 107 is_write = 0; 160 if (unlikely(!is_write)) 203 if (unlikely(is_write)) {
|
/linux-master/include/linux/ |
H A D | kfence.h | 194 * @is_write: is access a write 206 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, argument
|
/linux-master/drivers/platform/goldfish/ |
H A D | goldfish_pipe.c | 260 int is_write, 275 !is_write ? FOLL_WRITE : 0, 293 int is_write, 328 int is_write, 343 last_page_size, is_write, 351 first_page, last_page, iter_last_page_size, is_write, 356 is_write ? PIPE_CMD_WRITE : PIPE_CMD_READ); 361 !is_write && *consumed_size > 0); 367 static int wait_for_host_signal(struct goldfish_pipe *pipe, int is_write) argument 369 u32 wake_bit = is_write 257 goldfish_pin_pages(unsigned long first_page, unsigned long last_page, unsigned int last_page_size, int is_write, struct page *pages[MAX_BUFFERS_PER_COMMAND], unsigned int *iter_last_page_size) argument 286 populate_rw_params(struct page **pages, int pages_count, unsigned long address, unsigned long address_end, unsigned long first_page, unsigned long last_page, unsigned int iter_last_page_size, int is_write, struct goldfish_pipe_command *command) argument 325 transfer_max_buffers(struct goldfish_pipe *pipe, unsigned long address, unsigned long address_end, int is_write, unsigned long last_page, unsigned int last_page_size, s32 *consumed_size, int *status) argument 389 goldfish_pipe_read_write(struct file *filp, char __user *buffer, size_t bufflen, int is_write) argument [all...] |
/linux-master/mm/kasan/ |
H A D | report.c | 218 static void end_report(unsigned long *flags, const void *addr, bool is_write) argument 235 if (is_write) 256 info->is_write ? "Write" : "Read", info->access_size, 260 info->is_write ? "Write" : "Read", 558 info.is_write = false; 577 bool kasan_report(const void *addr, size_t size, bool is_write, argument 596 info.is_write = is_write; 603 end_report(&irq_flags, (void *)addr, is_write); 630 * Conservatively set is_write [all...] |
/linux-master/arch/um/kernel/ |
H A D | trap.c | 25 int is_write, int is_user, int *code_out) 62 if (is_write) { 107 * pte_mkyoung(); if (is_write) pte_mkdirty(); 114 WARN_ON(!pte_young(*pte) || (is_write && !pte_dirty(*pte))); 207 int is_write = FAULT_WRITE(fi); local 228 err = handle_page_fault(address, ip, is_write, is_user, 24 handle_page_fault(unsigned long address, unsigned long ip, int is_write, int is_user, int *code_out) argument
|
/linux-master/arch/arm64/kvm/vgic/ |
H A D | vgic-kvm-device.c | 356 * @is_write: true if userspace is writing a register 360 bool is_write) 376 if (is_write) 395 ret = vgic_v2_cpuif_uaccess(vcpu, is_write, addr, &val); 398 ret = vgic_v2_dist_uaccess(vcpu, is_write, addr, &val); 410 if (!ret && !is_write) 506 * @is_write: true if userspace is writing a register 510 bool is_write) 535 if (uaccess && is_write) { 557 ret = vgic_v3_dist_uaccess(vcpu, is_write, add 358 vgic_v2_attr_regs_access(struct kvm_device *dev, struct kvm_device_attr *attr, bool is_write) argument 508 vgic_v3_attr_regs_access(struct kvm_device *dev, struct kvm_device_attr *attr, bool is_write) argument [all...] |
/linux-master/arch/powerpc/include/asm/book3s/32/ |
H A D | kup.h | 146 __bad_kuap_fault(struct pt_regs *regs, unsigned long address, bool is_write) argument 150 if (!is_write)
|
/linux-master/arch/powerpc/include/asm/nohash/32/ |
H A D | kup-8xx.h | 80 __bad_kuap_fault(struct pt_regs *regs, unsigned long address, bool is_write) argument
|
/linux-master/arch/powerpc/include/asm/nohash/ |
H A D | kup-booke.h | 103 __bad_kuap_fault(struct pt_regs *regs, unsigned long address, bool is_write)
|
/linux-master/arch/xtensa/mm/ |
H A D | fault.c | 96 int is_write, is_exec; local 118 is_write = (exccause == EXCCAUSE_STORE_CACHE_ATTRIBUTE) ? 1 : 0; 126 is_write ? "w" : "", is_exec ? "x" : ""); 144 if (is_write) {
|
/linux-master/arch/um/include/shared/ |
H A D | kern_util.h | 33 int is_write, int is_user, int *code_out);
|