/kernel/linux/linux-5.10/arch/arm64/kvm/ |
D | vgic-sys-reg-v3.c | 22 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() 131 if (p->is_write) { in access_gic_bpr1() 140 if (!p->is_write) in access_gic_bpr1() 153 if (p->is_write) { in access_gic_grpen0() 171 if (p->is_write) { in access_gic_grpen1() 194 if (p->is_write) in vgic_v3_access_apr_reg() 211 if (!p->is_write) in access_gic_aprn() [all …]
|
D | trace_handle_exit.h | 121 TP_PROTO(const char *fn, int reg, bool is_write, u64 write_value), 122 TP_ARGS(fn, reg, is_write, write_value), 127 __field(bool, is_write) 134 __entry->is_write = is_write; 138 …TP_printk("%s %s reg %d (0x%016llx)", __entry->fn, __entry->is_write?"write to":"read from", __en… 162 __field(bool, is_write) 173 __entry->is_write = params->is_write; 187 __entry->is_write ? "write" : "read")
|
D | mmio.c | 129 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()
|
D | sys_regs.c | 196 if (!p->is_write) in access_dcsw() 225 BUG_ON(!p->is_write); in access_vm_reg() 251 if (p->is_write) in access_actlr() 278 if (!p->is_write) in access_gic_sgi() 321 if (p->is_write) in access_gic_sre() 332 if (p->is_write) in trap_raz_wi() 357 if (p->is_write && sr == SYS_LORID_EL1) in trap_loregion() 367 if (p->is_write) { in trap_oslsr_el1() 379 if (p->is_write) { in trap_dbgauthstatus_el1() 418 if (p->is_write) { in trap_debug_regs() [all …]
|
D | sys_regs.h | 21 bool is_write; member 75 p->Op0, p->Op1, p->CRn, p->CRm, p->Op2, p->is_write ? "write" : "read"); in print_sys_reg_msg()
|
/kernel/linux/linux-5.10/arch/powerpc/mm/ |
D | fault.c | 197 unsigned long address, bool is_write) in bad_kernel_fault() argument 228 if (bad_kuap_fault(regs, address, is_write)) in bad_kernel_fault() 237 static bool access_pkey_error(bool is_write, bool is_exec, bool is_pkey, in access_pkey_error() argument 245 if (!arch_vma_access_permitted(vma, is_write, is_exec, 0)) in access_pkey_error() 252 static bool access_error(bool is_write, bool is_exec, struct vm_area_struct *vma) in access_error() argument 270 if (is_write) { in access_error() 304 static void sanity_check_fault(bool is_write, bool is_user, in sanity_check_fault() argument 352 if (radix_enabled() || is_write) in sanity_check_fault() 397 int is_write = page_fault_is_write(error_code); in __do_page_fault() local 413 sanity_check_fault(is_write, is_user, error_code, address); in __do_page_fault() [all …]
|
D | copro_fault.c | 27 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()
|
/kernel/linux/linux-5.10/arch/um/kernel/skas/ |
D | uaccess.c | 45 static pte_t *maybe_map(unsigned long virt, int is_write) in maybe_map() argument 51 (is_write && !pte_write(*pte))) { in maybe_map() 52 err = handle_page_fault(virt, 0, is_write, 1, &dummy_code); in maybe_map() 63 static int do_op_one_page(unsigned long addr, int len, int is_write, in do_op_one_page() argument 70 pte = maybe_map(addr, is_write); in do_op_one_page() 94 static long buffer_op(unsigned long addr, int len, int is_write, in buffer_op() argument 102 n = do_op_one_page(addr, size, is_write, op, arg); in buffer_op() 114 n = do_op_one_page(addr, PAGE_SIZE, is_write, op, arg); in buffer_op() 126 n = do_op_one_page(addr, remain, is_write, op, arg); in buffer_op()
|
/kernel/linux/linux-5.10/kernel/kcsan/ |
D | encoding.h | 59 encode_watchpoint(unsigned long addr, size_t size, bool is_write) in encode_watchpoint() argument 61 return (long)((is_write ? WATCHPOINT_WRITE_MASK : 0) | in encode_watchpoint() 69 bool *is_write) in decode_watchpoint() argument 77 *is_write = !!((unsigned long)watchpoint & WATCHPOINT_WRITE_MASK); in decode_watchpoint()
|
D | selftest.c | 32 bool is_write = !!prandom_u32_max(2); in test_encode_decode() local 42 encode_watchpoint(addr, size, is_write); in test_encode_decode() 67 if (WARN_ON(is_write != verif_is_write)) in test_encode_decode() 73 __func__, is_write ? "write" : "read", size, in test_encode_decode()
|
D | core.c | 117 bool is_write; in find_watchpoint() local 126 &wp_size, &is_write)) in find_watchpoint() 129 if (expect_write && !is_write) in find_watchpoint() 141 insert_watchpoint(unsigned long addr, size_t size, bool is_write) in insert_watchpoint() argument 144 const long encoded_watchpoint = encode_watchpoint(addr, size, is_write); in insert_watchpoint() 404 const bool is_write = (type & KCSAN_ACCESS_WRITE) != 0; in kcsan_setup_watchpoint() local 450 watchpoint = insert_watchpoint((unsigned long)ptr, size, is_write); in kcsan_setup_watchpoint() 489 is_write ? "write" : "read", size, ptr, in kcsan_setup_watchpoint() 491 encode_watchpoint((unsigned long)ptr, size, is_write)); in kcsan_setup_watchpoint() 598 const bool is_write = (type & KCSAN_ACCESS_WRITE) != 0; in check_access() local [all …]
|
/kernel/linux/linux-5.10/drivers/memstick/host/ |
D | r592.c | 225 static void r592_start_dma(struct r592_device *dev, bool is_write) in r592_start_dma() argument 242 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() 295 sg_count = dma_map_sg(&dev->pci_dev->dev, &dev->req->sg, 1, is_write ? in r592_transfer_fifo_dma() 303 r592_start_dma(dev, is_write); in r592_transfer_fifo_dma() 312 dma_unmap_sg(&dev->pci_dev->dev, &dev->req->sg, 1, is_write ? in r592_transfer_fifo_dma() 415 bool is_write = dev->req->tpc >= MS_TPC_SET_RW_REG_ADRS; in r592_transfer_fifo_pio() local 421 if (is_write) { in r592_transfer_fifo_pio() 433 (is_write ? SG_MITER_FROM_SG : SG_MITER_TO_SG)); in r592_transfer_fifo_pio() [all …]
|
/kernel/linux/linux-5.10/drivers/platform/goldfish/ |
D | goldfish_pipe.c | 263 int is_write, in goldfish_pin_pages() argument 278 !is_write ? FOLL_WRITE : 0, in goldfish_pin_pages() 296 int is_write, in populate_rw_params() argument 331 int is_write, in transfer_max_buffers() argument 346 last_page_size, is_write, in transfer_max_buffers() 354 first_page, last_page, iter_last_page_size, is_write, in transfer_max_buffers() 359 is_write ? PIPE_CMD_WRITE : PIPE_CMD_READ); in transfer_max_buffers() 364 !is_write && *consumed_size > 0); in transfer_max_buffers() 370 static int wait_for_host_signal(struct goldfish_pipe *pipe, int is_write) in wait_for_host_signal() argument 372 u32 wake_bit = is_write ? BIT_WAKE_ON_WRITE : BIT_WAKE_ON_READ; in wait_for_host_signal() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | radeon_dp_auxch.c | 69 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()
|
/kernel/linux/linux-5.10/arch/arm64/kvm/vgic/ |
D | vgic-kvm-device.c | 349 u32 *reg, bool is_write) in vgic_v2_attr_regs_access() argument 376 ret = vgic_v2_cpuif_uaccess(vcpu, is_write, addr, reg); in vgic_v2_attr_regs_access() 379 ret = vgic_v2_dist_uaccess(vcpu, is_write, addr, reg); in vgic_v2_attr_regs_access() 513 u64 *reg, bool is_write) in vgic_v3_attr_regs_access() argument 542 if (is_write) in vgic_v3_attr_regs_access() 545 ret = vgic_v3_dist_uaccess(vcpu, is_write, addr, &tmp32); in vgic_v3_attr_regs_access() 546 if (!is_write) in vgic_v3_attr_regs_access() 550 if (is_write) in vgic_v3_attr_regs_access() 553 ret = vgic_v3_redist_uaccess(vcpu, is_write, addr, &tmp32); in vgic_v3_attr_regs_access() 554 if (!is_write) in vgic_v3_attr_regs_access() [all …]
|
D | vgic.h | 182 int vgic_v2_dist_uaccess(struct kvm_vcpu *vcpu, bool is_write, 184 int vgic_v2_cpuif_uaccess(struct kvm_vcpu *vcpu, bool is_write, 236 int vgic_v3_dist_uaccess(struct kvm_vcpu *vcpu, bool is_write, 238 int vgic_v3_redist_uaccess(struct kvm_vcpu *vcpu, bool is_write, 240 int vgic_v3_cpu_sysregs_uaccess(struct kvm_vcpu *vcpu, bool is_write, 242 int vgic_v3_has_cpu_sysregs_attr(struct kvm_vcpu *vcpu, bool is_write, u64 id, 244 int vgic_v3_line_level_info_uaccess(struct kvm_vcpu *vcpu, bool is_write,
|
/kernel/linux/linux-5.10/arch/xtensa/mm/ |
D | fault.c | 43 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()
|
/kernel/linux/linux-5.10/arch/microblaze/mm/ |
D | fault.c | 92 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()
|
/kernel/linux/linux-5.10/arch/um/kernel/ |
D | trap.c | 25 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()
|
/kernel/linux/linux-5.10/drivers/tty/ |
D | goldfish.c | 56 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()
|
/kernel/linux/linux-5.10/mm/kasan/ |
D | report.c | 77 info->is_write ? "Write" : "Read", info->access_size, in print_error_description() 502 static void __kasan_report(unsigned long addr, size_t size, bool is_write, in __kasan_report() argument 526 info.is_write = is_write; in __kasan_report() 547 bool kasan_report(unsigned long addr, size_t size, bool is_write, in kasan_report() argument 554 __kasan_report(addr, size, is_write, ip); in kasan_report()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/book3s/64/ |
D | kup-radix.h | 141 bad_kuap_fault(struct pt_regs *regs, unsigned long address, bool is_write) in bad_kuap_fault() argument 144 (regs->kuap & (is_write ? AMR_KUAP_BLOCK_WRITE : AMR_KUAP_BLOCK_READ)), in bad_kuap_fault() 145 "Bug: %s fault blocked by AMR!", is_write ? "Write" : "Read"); in bad_kuap_fault()
|
/kernel/linux/linux-5.10/drivers/nvmem/ |
D | rave-sp-eeprom.c | 95 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()
|
/kernel/linux/linux-5.10/drivers/target/ |
D | target_core_file.c | 264 int is_write = !(data_direction == DMA_FROM_DEVICE); in fd_execute_rw_aio() local 293 iov_iter_bvec(&iter, is_write, bvec, sgl_nents, len); in fd_execute_rw_aio() 302 if (is_write && (cmd->se_cmd_flags & SCF_FUA)) in fd_execute_rw_aio() 305 if (is_write) in fd_execute_rw_aio() 320 u32 sgl_nents, u32 data_length, int is_write) in fd_do_rw() argument 343 iov_iter_bvec(&iter, is_write, bvec, sgl_nents, len); in fd_do_rw() 344 if (is_write) in fd_do_rw() 349 if (is_write) { in fd_do_rw()
|
/kernel/linux/linux-5.10/samples/vfio-mdev/ |
D | mbochs.c | 401 char *buf, u32 count, bool is_write) in handle_edid_regs() argument 412 if (is_write) { in handle_edid_regs() 428 char *buf, u32 count, bool is_write) in handle_edid_blob() argument 432 if (is_write) in handle_edid_blob() 439 loff_t pos, bool is_write) in mdev_access() argument 451 if (is_write) in mdev_access() 460 if (is_write) in mdev_access() 470 handle_edid_regs(mdev_state, pos, buf, count, is_write); in mdev_access() 473 handle_edid_blob(mdev_state, pos, buf, count, is_write); in mdev_access() 483 if (is_write) in mdev_access() [all …]
|