Home
last modified time | relevance | path

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

12345

/OK3568_Linux_fs/kernel/arch/arm64/kvm/
H A Dvgic-sys-reg-v3.c22 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 …]
H A Dtrace_handle_exit.h121 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")
H A Dmmio.c129 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()
H A Dsys_regs.c119 if (!p->is_write) in access_dcsw()
165 BUG_ON(!p->is_write); in access_vm_reg()
189 if (p->is_write) in access_actlr()
210 if (!p->is_write) in access_gic_sgi()
253 if (p->is_write) in access_gic_sre()
264 if (p->is_write) in trap_raz_wi()
288 if (p->is_write && sr == SYS_LORID_EL1) in trap_loregion()
298 if (p->is_write) { in trap_oslsr_el1()
310 if (p->is_write) { in trap_dbgauthstatus_el1()
349 if (p->is_write) { in trap_debug_regs()
[all …]
/OK3568_Linux_fs/kernel/arch/powerpc/mm/
H A Dfault.c197 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 …]
H A Dcopro_fault.c27 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()
/OK3568_Linux_fs/kernel/arch/um/kernel/skas/
H A Duaccess.c45 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()
/OK3568_Linux_fs/kernel/mm/kfence/
H A Dreport.c168 static const char *get_access_type(bool is_write) in get_access_type() argument
170 return is_write ? "write" : "read"; in get_access_type()
173 void kfence_report_error(unsigned long address, bool is_write, struct pt_regs *regs, in kfence_report_error() argument
211 pr_err("BUG: KFENCE: out-of-bounds %s in %pS\n\n", get_access_type(is_write), in kfence_report_error()
214 get_access_type(is_write), (void *)address, in kfence_report_error()
220 pr_err("BUG: KFENCE: use-after-free %s in %pS\n\n", get_access_type(is_write), in kfence_report_error()
223 get_access_type(is_write), (void *)address, object_index); in kfence_report_error()
232 pr_err("BUG: KFENCE: invalid %s in %pS\n\n", get_access_type(is_write), in kfence_report_error()
234 pr_err("Invalid %s at 0x%p:\n", get_access_type(is_write), in kfence_report_error()
H A Dkfence_test.c74 bool is_write; /* Is access a write. */ member
79 return r->is_write ? "write" : "read"; in get_access_type()
306 .is_write = false, in test_out_of_bounds_read()
340 .is_write = true, in test_out_of_bounds_write()
358 .is_write = false, in test_use_after_free_read()
443 .is_write = false, in test_kmalloc_aligned_oob_read()
542 .is_write = false, in test_init_on_free()
632 .is_write = false, in test_invalid_access()
646 .is_write = false, in test_memcache_typesafe_by_rcu()
683 .is_write = false, in test_krealloc()
/OK3568_Linux_fs/kernel/drivers/memstick/host/
H A Dr592.c225 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 …]
/OK3568_Linux_fs/kernel/kernel/kcsan/
H A Dencoding.h55 encode_watchpoint(unsigned long addr, size_t size, bool is_write) in encode_watchpoint() argument
57 return (long)((is_write ? WATCHPOINT_WRITE_MASK : 0) | in encode_watchpoint()
65 bool *is_write) in decode_watchpoint() argument
73 *is_write = !!((unsigned long)watchpoint & WATCHPOINT_WRITE_MASK); in decode_watchpoint()
H A Dselftest.c32 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()
H A Dcore.c115 bool is_write; in find_watchpoint() local
124 &wp_size, &is_write)) in find_watchpoint()
127 if (expect_write && !is_write) in find_watchpoint()
139 insert_watchpoint(unsigned long addr, size_t size, bool is_write) in insert_watchpoint() argument
142 const long encoded_watchpoint = encode_watchpoint(addr, size, is_write); in insert_watchpoint()
402 const bool is_write = (type & KCSAN_ACCESS_WRITE) != 0; in kcsan_setup_watchpoint() local
448 watchpoint = insert_watchpoint((unsigned long)ptr, size, is_write); in kcsan_setup_watchpoint()
487 is_write ? "write" : "read", size, ptr, in kcsan_setup_watchpoint()
489 encode_watchpoint((unsigned long)ptr, size, is_write)); in kcsan_setup_watchpoint()
596 const bool is_write = (type & KCSAN_ACCESS_WRITE) != 0; in check_access() local
[all …]
/OK3568_Linux_fs/kernel/drivers/platform/goldfish/
H A Dgoldfish_pipe.c263 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 …]
/OK3568_Linux_fs/kernel/arch/arm64/kvm/vgic/
H A Dvgic-kvm-device.c349 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 …]
H A Dvgic.h182 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,
/OK3568_Linux_fs/kernel/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()
196 if (is_write) in radeon_dp_aux_transfer_native()
/OK3568_Linux_fs/kernel/mm/kasan/
H A Dreport.c68 info->is_write ? "Write" : "Read", info->access_size, in print_error_description()
72 info->is_write ? "Write" : "Read", in print_error_description()
383 static void __kasan_report(unsigned long addr, size_t size, bool is_write, in __kasan_report() argument
408 info.is_write = is_write; in __kasan_report()
429 bool kasan_report(unsigned long addr, size_t size, bool is_write, in kasan_report() argument
436 __kasan_report(addr, size, is_write, ip); in kasan_report()
/OK3568_Linux_fs/kernel/arch/xtensa/mm/
H A Dfault.c43 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()
/OK3568_Linux_fs/u-boot/drivers/ata/
H A Ddwc_ahsata.c371 s32 is_write) in ahci_exec_ata_cmd() argument
395 if (is_write) { in ahci_exec_ata_cmd()
413 if (!is_write) in ahci_exec_ata_cmd()
551 u32 blkcnt, u8 *buffer, int is_write) in dwc_ahsata_rw_cmd() argument
564 cfis->command = (is_write) ? ATA_CMD_WRITE : ATA_CMD_READ; in dwc_ahsata_rw_cmd()
574 ATA_SECT_SIZE * blkcnt, is_write) > 0) in dwc_ahsata_rw_cmd()
596 lbaint_t blkcnt, u8 *buffer, int is_write) in dwc_ahsata_rw_cmd_ext() argument
610 cfis->command = (is_write) ? ATA_CMD_WRITE_EXT in dwc_ahsata_rw_cmd_ext()
624 ATA_SECT_SIZE * blkcnt, is_write) > 0) in dwc_ahsata_rw_cmd_ext()
657 int is_write) in ata_low_level_rw_lba48() argument
[all …]
H A Dfsl_sata.c537 static u32 fsl_sata_rw_cmd(int dev, u32 start, u32 blkcnt, u8 *buffer, int is_write) in fsl_sata_rw_cmd() argument
549 cfis->command = (is_write) ? ATA_CMD_WRITE : ATA_CMD_READ; in fsl_sata_rw_cmd()
576 static u32 fsl_sata_rw_cmd_ext(int dev, u32 start, u32 blkcnt, u8 *buffer, int is_write) in fsl_sata_rw_cmd_ext() argument
589 cfis->command = (is_write) ? ATA_CMD_WRITE_EXT in fsl_sata_rw_cmd_ext()
607 int is_write) in fsl_sata_rw_ncq_cmd() argument
626 cfis->command = (is_write) ? ATA_CMD_FPDMA_WRITE in fsl_sata_rw_ncq_cmd()
695 const void *buffer, int is_write) in ata_low_level_rw_lba48() argument
709 fsl_sata_rw_cmd_ext(dev, start, max_blks, addr, is_write); in ata_low_level_rw_lba48()
711 fsl_sata_rw_ncq_cmd(dev, start, max_blks, addr, is_write); in ata_low_level_rw_lba48()
717 fsl_sata_rw_cmd_ext(dev, start, blks, addr, is_write); in ata_low_level_rw_lba48()
[all …]
H A Dsata_sil.c268 u8 *buffer, int is_write) in sil_sata_rw_cmd() argument
281 if (is_write) { in sil_sata_rw_cmd()
313 u8 *buffer, int is_write) in sil_sata_rw_cmd_ext() argument
326 if (is_write) { in sil_sata_rw_cmd_ext()
361 const void *buffer, int is_write) in sil_sata_rw_lba28() argument
373 sil_sata_rw_cmd(dev, start, max_blks, addr, is_write); in sil_sata_rw_lba28()
378 sil_sata_rw_cmd(dev, start, blks, addr, is_write); in sil_sata_rw_lba28()
389 const void *buffer, int is_write) in sil_sata_rw_lba48() argument
402 addr, is_write); in sil_sata_rw_lba48()
408 addr, is_write); in sil_sata_rw_lba48()
/OK3568_Linux_fs/kernel/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()
202 if (unlikely(is_write)) { in do_page_fault()
/OK3568_Linux_fs/kernel/arch/um/kernel/
H A Dtrap.c25 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()
/OK3568_Linux_fs/kernel/drivers/tty/
H A Dgoldfish.c56 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()

12345