| /linux/arch/arm64/kvm/ |
| H A D | mmio.c | 160 bool is_write; in io_mem_abort() local 219 is_write = kvm_vcpu_dabt_iswrite(vcpu); in io_mem_abort() 223 if (is_write) { in io_mem_abort() 241 run->mmio.is_write = is_write; in io_mem_abort() 248 if (!is_write) in io_mem_abort() 255 if (is_write) in io_mem_abort()
|
| 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))
|
| /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 597 watchpoint = insert_watchpoint((unsigned long)ptr, size, is_write); in kcsan_setup_watchpoint()
|
| /linux/drivers/platform/goldfish/ |
| H A D | goldfish_pipe.c | 258 int is_write, in goldfish_pin_pages() argument 273 !is_write ? FOLL_WRITE : 0, in goldfish_pin_pages() 291 int is_write, in populate_rw_params() argument 326 int is_write, in transfer_max_buffers() argument 341 last_page_size, is_write, in transfer_max_buffers() 349 first_page, last_page, iter_last_page_size, is_write, in transfer_max_buffers() 354 is_write ? PIPE_CMD_WRITE : PIPE_CMD_READ); in transfer_max_buffers() 359 !is_write && *consumed_size > 0); in transfer_max_buffers() 365 static int wait_for_host_signal(struct goldfish_pipe *pipe, int is_write) in wait_for_host_signal() argument 367 u32 wake_bit = is_write ? BIT_WAKE_ON_WRITE : BIT_WAKE_ON_READ; in wait_for_host_signal() [all …]
|
| /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/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/drivers/scsi/ |
| H A D | scsi_bsg.c | 81 bool is_write, u64 buf_addr, in scsi_bsg_map_user_buffer() argument 89 is_write ? WRITE : READ, in scsi_bsg_map_user_buffer() 167 bool is_write = dout_xfer_len > 0; in scsi_bsg_uring_cmd() local 168 u64 buf_addr = is_write ? dout_xferp : din_xferp; in scsi_bsg_uring_cmd() 169 unsigned long buf_len = is_write ? dout_xfer_len : din_xfer_len; in scsi_bsg_uring_cmd() 172 gfp_mask, is_write, buf_addr, in scsi_bsg_uring_cmd()
|
| /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/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 | 61 size_t count, bool is_write) in do_rw_io() argument 71 if (is_write) in do_rw_io() 80 size_t count, bool is_write) in goldfish_tty_rw() argument 85 dma_dir = (is_write ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in goldfish_tty_rw() 110 do_rw_io(qtty, dma_handle, avail, is_write); in goldfish_tty_rw() 125 do_rw_io(qtty, addr, count, is_write); in goldfish_tty_rw()
|
| /linux/mm/kfence/ |
| H A D | kfence_test.c | 87 bool is_write; /* Is access a write. */ member 92 return str_write_read(r->is_write); in get_access_type() 325 .is_write = false, in test_out_of_bounds_read() 359 .is_write = true, in test_out_of_bounds_write() 377 .is_write = false, in test_use_after_free_read() 478 .is_write = false, in test_kmalloc_aligned_oob_read() 577 .is_write = false, in test_init_on_free() 665 .is_write = false, in test_invalid_access() 679 .is_write = false, in test_memcache_typesafe_by_rcu() 716 .is_write = false, in test_krealloc()
|
| /linux/arch/loongarch/kvm/intc/ |
| H A D | dmsintc.c | 85 struct kvm_device_attr *attr, bool is_write) in kvm_dmsintc_ctrl_access() argument 94 if (is_write) { in kvm_dmsintc_ctrl_access() 108 if (is_write) { in kvm_dmsintc_ctrl_access()
|
| H A D | eiointc.c | 465 bool is_write, int *data) in kvm_eiointc_regs_access() argument 514 if (is_write) in kvm_eiointc_regs_access() 525 bool is_write, int *data) in kvm_eiointc_sw_status_access() argument 538 if (is_write) in kvm_eiointc_sw_status_access() 544 if (is_write) in kvm_eiointc_sw_status_access() 557 if (is_write) in kvm_eiointc_sw_status_access()
|
| H A D | pch_pic.c | 299 bool is_write) in kvm_pch_pic_regs_access() argument 351 if (is_write) { in kvm_pch_pic_regs_access() 357 if (is_write) in kvm_pch_pic_regs_access() 363 if (!is_write) { in kvm_pch_pic_regs_access()
|
| /linux/fs/ceph/ |
| H A D | subvolume_metrics.h | 74 u64 subvol_id, bool is_write, 85 bool is_write, size_t bytes,
|
| H A D | subvolume_metrics.c | 144 u64 subvol_id, bool is_write, in ceph_subvolume_metrics_record() argument 195 if (is_write) { in ceph_subvolume_metrics_record() 372 bool is_write, size_t bytes, in ceph_subvolume_metrics_record_io() argument 400 ceph_subvolume_metrics_record(tracker, subvol_id, is_write, in ceph_subvolume_metrics_record_io()
|
| /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/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 …]
|