| /linux/arch/um/kernel/skas/ |
| H A D | uaccess.c | 46 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/drivers/memstick/host/ |
| H A D | r592.c | 223 static void r592_start_dma(struct r592_device *dev, bool is_write) in r592_start_dma() argument 240 if (!is_write) in r592_start_dma() 276 bool is_write; in r592_transfer_fifo_dma() local 282 is_write = dev->req->data_dir == WRITE; in r592_transfer_fifo_dma() 293 sg_count = dma_map_sg(&dev->pci_dev->dev, &dev->req->sg, 1, is_write ? in r592_transfer_fifo_dma() 301 r592_start_dma(dev, is_write); in r592_transfer_fifo_dma() 310 dma_unmap_sg(&dev->pci_dev->dev, &dev->req->sg, 1, is_write ? in r592_transfer_fifo_dma() 414 bool is_write = dev->req->tpc >= MS_TPC_SET_RW_REG_ADRS; in r592_transfer_fifo_pio() local 420 if (is_write) { in r592_transfer_fifo_pio() 432 (is_write ? SG_MITER_FROM_SG : SG_MITER_TO_SG)); in r592_transfer_fifo_pio() [all …]
|
| /linux/kernel/kcsan/ |
| H A D | encoding.h | 62 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 D | selftest.c | 35 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()
|
| H A D | core.c | 124 bool is_write; in find_watchpoint() local 133 &wp_size, &is_write)) in find_watchpoint() 136 if (expect_write && !is_write) in find_watchpoint() 148 insert_watchpoint(unsigned long addr, size_t size, bool is_write) in insert_watchpoint() argument 151 const long encoded_watchpoint = encode_watchpoint(addr, size, is_write); in insert_watchpoint() 529 const bool is_write = (type & KCSAN_ACCESS_WRITE) != 0; in kcsan_setup_watchpoint() local 591 watchpoint = insert_watchpoint((unsigned long)ptr, size, is_write); in kcsan_setup_watchpoint()
|
| /linux/drivers/platform/goldfish/ |
| H A D | goldfish_pipe.c | 259 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 D | report.c | 219 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() 552 info.is_write = false; in kasan_report_invalid_free() 571 bool kasan_report(const void *addr, size_t size, bool is_write, in kasan_report() argument 590 info.is_write = is_write; in kasan_report() 597 end_report(&irq_flags, (void *)addr, is_write); in kasan_report() 624 * Conservatively set is_write in kasan_report_async() [all...] |
| /linux/arch/arm64/kvm/vgic/ |
| H A D | vgic-kvm-device.c | 366 bool is_write) in vgic_v2_attr_regs_access() argument 382 if (is_write) in vgic_v2_attr_regs_access() 401 ret = vgic_v2_cpuif_uaccess(vcpu, is_write, addr, &val); in vgic_v2_attr_regs_access() 404 ret = vgic_v2_dist_uaccess(vcpu, is_write, addr, &val); in vgic_v2_attr_regs_access() 416 if (!ret && !is_write) in vgic_v2_attr_regs_access() 534 bool is_write) in vgic_v3_attr_regs_access() argument 559 if (uaccess && is_write) { in vgic_v3_attr_regs_access() 581 ret = vgic_v3_dist_uaccess(vcpu, is_write, addr, &val); in vgic_v3_attr_regs_access() 584 ret = vgic_v3_redist_uaccess(vcpu, is_write, addr, &val); in vgic_v3_attr_regs_access() 587 ret = vgic_v3_cpu_sysregs_uaccess(vcpu, attr, is_write); in vgic_v3_attr_regs_access() [all …]
|
| H A D | vgic-mmio-v2.c | 563 int vgic_v2_cpuif_uaccess(struct kvm_vcpu *vcpu, bool is_write, in vgic_v2_cpuif_uaccess() argument 572 return vgic_uaccess(vcpu, &dev, is_write, offset, val); in vgic_v2_cpuif_uaccess() 575 int vgic_v2_dist_uaccess(struct kvm_vcpu *vcpu, bool is_write, in vgic_v2_dist_uaccess() argument 584 return vgic_uaccess(vcpu, &dev, is_write, offset, val); in vgic_v2_dist_uaccess()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A 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() 195 if (is_write) in radeon_dp_aux_transfer_native()
|
| /linux/arch/arm64/kvm/ |
| H A D | trace_handle_exit.h | 91 __field(bool, is_write) 102 __entry->is_write = params->is_write; 116 str_write_read(__entry->is_write))
|
| H A D | sys_regs.c | 491 if (p->is_write) in access_rw() 506 if (!p->is_write) in access_dcsw() 563 BUG_ON(!p->is_write); in access_vm_reg() 587 if (p->is_write) in access_actlr() 611 if (!p->is_write) in access_gic_sgi() 657 if (p->is_write) in access_gic_sre() 676 if (!p->is_write) in access_gic_dir() 688 if (p->is_write) in trap_raz_wi() 709 if (p->is_write && sr == SYS_LORID_EL1) in trap_loregion() 719 if (!p->is_write) in trap_oslar_el1() [all …]
|
| /linux/arch/microblaze/mm/ |
| H A 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() 203 if (unlikely(is_write)) { in do_page_fault()
|
| /linux/arch/xtensa/mm/ |
| H A D | fault.c | 96 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/s390/mm/ |
| H A D | fault.c | 220 bool is_write; in handle_fault_error_nolock() local 231 is_write = fault_is_write(regs); in handle_fault_error_nolock() 232 if (kfence_handle_page_fault(address, is_write, regs)) in handle_fault_error_nolock() 273 bool is_write; in do_exception() local 284 is_write = fault_is_write(regs); in do_exception() 291 if (is_write) in do_exception()
|
| /linux/arch/um/kernel/ |
| H A D | trap.c | 141 int is_write, int is_user, int *code_out) in handle_page_fault() argument 167 if (is_write) { in handle_page_fault() 219 WARN_ON(!pte_young(*pte) || (is_write && !pte_dirty(*pte))); in handle_page_fault() 313 int is_write = FAULT_WRITE(fi); in segv() local 356 err = handle_page_fault(address, ip, is_write, is_user, in segv()
|
| /linux/drivers/tty/ |
| H A D | goldfish.c | 54 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/csky/mm/ |
| H A D | fault.c | 23 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 D | kfence.h | 206 bool __must_check kfence_handle_page_fault(unsigned long addr, bool is_write, struct pt_regs *regs); 238 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 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()
|
| /linux/drivers/target/ |
| H A D | target_core_file.c | 269 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/samples/vfio-mdev/ |
| H A D | mbochs.c | 399 char *buf, u32 count, bool is_write) in handle_edid_regs() argument 410 if (is_write) { in handle_edid_regs() 426 char *buf, u32 count, bool is_write) in handle_edid_blob() argument 430 if (is_write) in handle_edid_blob() 437 size_t count, loff_t pos, bool is_write) in mdev_access() argument 447 if (is_write) in mdev_access() 456 if (is_write) in mdev_access() 466 handle_edid_regs(mdev_state, pos, buf, count, is_write); in mdev_access() 469 handle_edid_blob(mdev_state, pos, buf, count, is_write); in mdev_access() 479 if (is_write) in mdev_access() [all …]
|
| /linux/arch/loongarch/kvm/intc/ |
| H A D | eiointc.c | 461 bool is_write, int *data) in kvm_eiointc_regs_access() argument 510 if (is_write) in kvm_eiointc_regs_access() 521 bool is_write, int *data) in kvm_eiointc_sw_status_access() argument 534 if (is_write) in kvm_eiointc_sw_status_access() 540 if (is_write) in kvm_eiointc_sw_status_access() 553 if (is_write) in kvm_eiointc_sw_status_access()
|
| H A D | pch_pic.c | 285 bool is_write) in kvm_pch_pic_regs_access() argument 337 if (is_write) { in kvm_pch_pic_regs_access() 343 if (is_write) in kvm_pch_pic_regs_access() 349 if (!is_write) { in kvm_pch_pic_regs_access()
|
| /linux/drivers/gpu/drm/i915/gvt/ |
| H A D | kvmgt.c | 443 size_t count, u16 offset, bool is_write) in handle_edid_regs() argument 454 if (is_write) { in handle_edid_regs() 495 size_t count, u16 offset, bool is_write) in handle_edid_blob() argument 500 if (is_write) in handle_edid_blob() 753 void *buf, unsigned int count, bool is_write) in intel_vgpu_bar_rw() argument 758 if (is_write) in intel_vgpu_bar_rw() 774 void *buf, unsigned long count, bool is_write) in intel_vgpu_aperture_rw() argument 790 if (is_write) in intel_vgpu_aperture_rw() 801 size_t count, loff_t *ppos, bool is_write) in intel_vgpu_rw() argument 815 if (is_write) in intel_vgpu_rw() [all …]
|