Home
last modified time | relevance | path

Searched refs:len (Results 1 – 10 of 10) sorted by relevance

/virt/kvm/arm/vgic/
Dvgic-mmio.h10 unsigned int len; member
15 unsigned int len);
17 gpa_t addr, unsigned int len);
21 unsigned int len, unsigned long val);
23 gpa_t addr, unsigned int len,
27 unsigned int len);
30 unsigned int len, unsigned long val);
32 gpa_t addr, unsigned int len,
71 .len = bpi * 1024 / 8, \
83 .len = length, \
[all …]
Dvgic-mmio.c18 gpa_t addr, unsigned int len) in vgic_mmio_read_raz() argument
24 gpa_t addr, unsigned int len) in vgic_mmio_read_rao() argument
30 unsigned int len, unsigned long val) in vgic_mmio_write_wi() argument
36 unsigned int len, unsigned long val) in vgic_mmio_uaccess_write_wi() argument
43 gpa_t addr, unsigned int len) in vgic_mmio_read_group() argument
50 for (i = 0; i < len * 8; i++) { in vgic_mmio_read_group()
63 unsigned int len, unsigned long val) in vgic_mmio_write_group() argument
69 for (i = 0; i < len * 8; i++) { in vgic_mmio_write_group()
85 gpa_t addr, unsigned int len) in vgic_mmio_read_enable() argument
92 for (i = 0; i < len * 8; i++) { in vgic_mmio_read_enable()
[all …]
Dvgic-mmio-v2.c26 gpa_t addr, unsigned int len) in vgic_mmio_read_v2_misc() argument
53 gpa_t addr, unsigned int len, in vgic_mmio_write_v2_misc() argument
73 gpa_t addr, unsigned int len, in vgic_mmio_uaccess_write_v2_misc() argument
78 if (val != vgic_mmio_read_v2_misc(vcpu, addr, len)) in vgic_mmio_uaccess_write_v2_misc()
94 vgic_mmio_write_v2_misc(vcpu, addr, len, val); in vgic_mmio_uaccess_write_v2_misc()
99 gpa_t addr, unsigned int len, in vgic_mmio_uaccess_write_v2_group() argument
103 vgic_mmio_write_group(vcpu, addr, len, val); in vgic_mmio_uaccess_write_v2_group()
109 gpa_t addr, unsigned int len, in vgic_mmio_write_sgir() argument
152 gpa_t addr, unsigned int len) in vgic_mmio_read_target() argument
158 for (i = 0; i < len; i++) { in vgic_mmio_read_target()
[all …]
Dvgic-mmio-v3.c27 u64 update_64bit_reg(u64 reg, unsigned int offset, unsigned int len, in update_64bit_reg() argument
31 int upper = lower + 8 * len - 1; in update_64bit_reg()
34 val &= GENMASK_ULL(len * 8 - 1, 0); in update_64bit_reg()
62 gpa_t addr, unsigned int len) in vgic_mmio_read_v3_misc() argument
96 gpa_t addr, unsigned int len, in vgic_mmio_write_v3_misc() argument
116 gpa_t addr, unsigned int len, in vgic_mmio_uaccess_write_v3_misc() argument
121 if (val != vgic_mmio_read_v3_misc(vcpu, addr, len)) in vgic_mmio_uaccess_write_v3_misc()
125 vgic_mmio_write_v3_misc(vcpu, addr, len, val); in vgic_mmio_uaccess_write_v3_misc()
130 gpa_t addr, unsigned int len) in vgic_mmio_read_irouter() argument
141 ret = extract_bytes(READ_ONCE(irq->mpidr), addr & 7, len); in vgic_mmio_read_irouter()
[all …]
Dvgic-its.c478 gpa_t addr, unsigned int len) in vgic_mmio_read_its_typer() argument
495 return extract_bytes(reg, addr & 7, len); in vgic_mmio_read_its_typer()
500 gpa_t addr, unsigned int len) in vgic_mmio_read_its_iidr() argument
511 gpa_t addr, unsigned int len, in vgic_mmio_uaccess_write_its_iidr() argument
523 gpa_t addr, unsigned int len) in vgic_mmio_read_its_idregs() argument
1498 gpa_t addr, unsigned int len) in vgic_mmio_read_its_cbaser() argument
1500 return extract_bytes(its->cbaser, addr & 7, len); in vgic_mmio_read_its_cbaser()
1504 gpa_t addr, unsigned int len, in vgic_mmio_write_its_cbaser() argument
1512 its->cbaser = update_64bit_reg(its->cbaser, addr & 7, len, val); in vgic_mmio_write_its_cbaser()
1565 gpa_t addr, unsigned int len, in vgic_mmio_write_its_cwriter() argument
[all …]
Dvgic.h161 gpa_t addr, int len);
/virt/kvm/arm/
Dmmio.c14 void kvm_mmio_write_buf(void *buf, unsigned int len, unsigned long data) in kvm_mmio_write_buf() argument
24 switch (len) { in kvm_mmio_write_buf()
43 memcpy(buf, datap, len); in kvm_mmio_write_buf()
46 unsigned long kvm_mmio_read_buf(const void *buf, unsigned int len) in kvm_mmio_read_buf() argument
55 switch (len) { in kvm_mmio_read_buf()
60 memcpy(&tmp.hword, buf, len); in kvm_mmio_read_buf()
64 memcpy(&tmp.word, buf, len); in kvm_mmio_read_buf()
68 memcpy(&tmp.dword, buf, len); in kvm_mmio_read_buf()
86 unsigned int len; in kvm_handle_mmio_return() local
96 len = run->mmio.len; in kvm_handle_mmio_return()
[all …]
/virt/kvm/
Dcoalesced_mmio.c26 gpa_t addr, int len) in coalesced_mmio_in_range() argument
32 if (len < 0) in coalesced_mmio_in_range()
34 if (addr + len < addr) in coalesced_mmio_in_range()
38 if (addr + len > dev->zone.addr + dev->zone.size) in coalesced_mmio_in_range()
66 int len, const void *val) in coalesced_mmio_write() argument
72 if (!coalesced_mmio_in_range(dev, addr, len)) in coalesced_mmio_write()
87 ring->coalesced_mmio[insert].len = len; in coalesced_mmio_write()
88 memcpy(ring->coalesced_mmio[insert].data, val, len); in coalesced_mmio_write()
Dkvm_main.c2082 static int next_segment(unsigned long len, int offset) in next_segment() argument
2084 if (len > PAGE_SIZE - offset) in next_segment()
2087 return len; in next_segment()
2091 void *data, int offset, int len) in __kvm_read_guest_page() argument
2099 r = __copy_from_user(data, (void __user *)addr + offset, len); in __kvm_read_guest_page()
2106 int len) in kvm_read_guest_page() argument
2110 return __kvm_read_guest_page(slot, gfn, data, offset, len); in kvm_read_guest_page()
2115 int offset, int len) in kvm_vcpu_read_guest_page() argument
2119 return __kvm_read_guest_page(slot, gfn, data, offset, len); in kvm_vcpu_read_guest_page()
2123 int kvm_read_guest(struct kvm *kvm, gpa_t gpa, void *data, unsigned long len) in kvm_read_guest() argument
[all …]
Deventfd.c683 ioeventfd_in_range(struct _ioeventfd *p, gpa_t addr, int len, const void *val) in ioeventfd_in_range() argument
695 if (len != p->length) in ioeventfd_in_range()
705 BUG_ON(!IS_ALIGNED((unsigned long)val, len)); in ioeventfd_in_range()
707 switch (len) { in ioeventfd_in_range()
730 int len, const void *val) in ioeventfd_write() argument
734 if (!ioeventfd_in_range(p, addr, len, val)) in ioeventfd_write()
807 p->length = args->len; in kvm_assign_ioeventfd_idx()
869 p->length != args->len || in kvm_deassign_ioeventfd_idx()
897 if (!args->len && bus_idx == KVM_MMIO_BUS) in kvm_deassign_ioeventfd()
911 switch (args->len) { in kvm_assign_ioeventfd()
[all …]