/kernel/linux/linux-5.10/tools/virtio/ringtest/ |
H A D | virtio_ring_0_9.c | 41 struct guest { struct 52 } guest; variable 78 guest.avail_idx = 0; in alloc_ring() 79 guest.kicked_avail_idx = -1; in alloc_ring() 80 guest.last_used_idx = 0; in alloc_ring() 83 guest.free_head = 0; in alloc_ring() 89 guest.num_free = ring_size; in alloc_ring() 98 /* guest side */ 107 if (!guest.num_free) in add_inbuf() 111 head = (ring_size - 1) & (guest in add_inbuf() [all...] |
H A D | ring.c | 59 struct guest { struct 65 } guest; variable 92 guest.avail_idx = 0; in alloc_ring() 93 guest.kicked_avail_idx = -1; in alloc_ring() 94 guest.last_used_idx = 0; in alloc_ring() 103 guest.num_free = ring_size; in alloc_ring() 111 /* guest side */ 116 if (!guest.num_free) in add_inbuf() 119 guest.num_free--; in add_inbuf() 120 head = (ring_size - 1) & (guest in add_inbuf() [all...] |
/kernel/linux/linux-6.6/tools/virtio/ringtest/ |
H A D | virtio_ring_0_9.c | 41 struct guest { struct 52 } guest; variable 78 guest.avail_idx = 0; in alloc_ring() 79 guest.kicked_avail_idx = -1; in alloc_ring() 80 guest.last_used_idx = 0; in alloc_ring() 83 guest.free_head = 0; in alloc_ring() 89 guest.num_free = ring_size; in alloc_ring() 98 /* guest side */ 107 if (!guest.num_free) in add_inbuf() 111 head = (ring_size - 1) & (guest in add_inbuf() [all...] |
H A D | ring.c | 59 struct guest { struct 65 } guest; variable 92 guest.avail_idx = 0; in alloc_ring() 93 guest.kicked_avail_idx = -1; in alloc_ring() 94 guest.last_used_idx = 0; in alloc_ring() 103 guest.num_free = ring_size; in alloc_ring() 111 /* guest side */ 116 if (!guest.num_free) in add_inbuf() 119 guest.num_free--; in add_inbuf() 120 head = (ring_size - 1) & (guest in add_inbuf() [all...] |
/kernel/linux/linux-5.10/drivers/misc/cxl/ |
H A D | of.c | 88 afu->guest->handle = addr; in read_phys_addr() 91 afu->guest->p2n_phys += addr; in read_phys_addr() 92 afu->guest->p2n_size = size; in read_phys_addr() 133 if (read_handle(afu_np, &afu->guest->handle)) in cxl_of_read_afu_handle() 135 pr_devel("AFU handle: 0x%.16llx\n", afu->guest->handle); in cxl_of_read_afu_handle() 190 read_prop_dword(np, "ibm,max-ints-per-process", &afu->guest->max_ints); in cxl_of_read_afu_properties() 191 afu->irqs_max = afu->guest->max_ints; in cxl_of_read_afu_properties() 269 pr_devel("AFU handle: %#llx\n", afu->guest->handle); in cxl_of_read_afu_properties() 271 afu->guest->p2n_phys, afu->guest in cxl_of_read_afu_properties() [all...] |
H A D | guest.c | 111 rc = cxl_h_collect_vpd_adapter(adapter->guest->handle, in guest_collect_vpd() 114 rc = cxl_h_collect_vpd(afu->guest->handle, 0, in guest_collect_vpd() 152 return cxl_h_collect_int_info(ctx->afu->guest->handle, ctx->process_token, info); in guest_get_irq_info() 180 rc = cxl_h_read_error_state(afu->guest->handle, &state); in afu_read_error_state() 197 rc = cxl_h_get_fn_error_interrupt(afu->guest->handle, &serr); in guest_slice_irq_err() 208 rc = cxl_h_ack_fn_error_interrupt(afu->guest->handle, serr); in guest_slice_irq_err() 222 for (i = 0; i < adapter->guest->irq_nranges; i++) { in irq_alloc_range() 223 cur = &adapter->guest->irq_avail[i]; in irq_alloc_range() 229 pr_devel("guest: allocate IRQs %#x->%#x\n", in irq_alloc_range() 246 for (i = 0; i < adapter->guest in irq_free_range() [all...] |
H A D | flash.c | 190 unwa->unit_address = cpu_to_be64(adapter->guest->handle); in update_devicetree() 244 header->vendor = cpu_to_be16(adapter->guest->vendor); in handle_image() 245 header->device = cpu_to_be16(adapter->guest->device); in handle_image() 246 header->subsystem_vendor = cpu_to_be16(adapter->guest->subsystem_vendor); in handle_image() 247 header->subsystem = cpu_to_be16(adapter->guest->subsystem); in handle_image() 311 rc = fct(adapter->guest->handle, virt_to_phys(le), entries, in handle_image() 334 cxl_h_reset_adapter(adapter->guest->handle); in transfer_image() 343 cxl_h_reset_adapter(adapter->guest->handle); in transfer_image() 352 cxl_h_reset_adapter(adapter->guest->handle); in transfer_image() 500 cxl_h_reset_adapter(adapter->guest in device_close() [all...] |
/kernel/linux/linux-6.6/drivers/misc/cxl/ |
H A D | of.c | 88 afu->guest->handle = addr; in read_phys_addr() 91 afu->guest->p2n_phys += addr; in read_phys_addr() 92 afu->guest->p2n_size = size; in read_phys_addr() 133 if (read_handle(afu_np, &afu->guest->handle)) in cxl_of_read_afu_handle() 135 pr_devel("AFU handle: 0x%.16llx\n", afu->guest->handle); in cxl_of_read_afu_handle() 190 read_prop_dword(np, "ibm,max-ints-per-process", &afu->guest->max_ints); in cxl_of_read_afu_properties() 191 afu->irqs_max = afu->guest->max_ints; in cxl_of_read_afu_properties() 269 pr_devel("AFU handle: %#llx\n", afu->guest->handle); in cxl_of_read_afu_properties() 271 afu->guest->p2n_phys, afu->guest in cxl_of_read_afu_properties() [all...] |
H A D | guest.c | 117 rc = cxl_h_collect_vpd_adapter(adapter->guest->handle, in guest_collect_vpd() 120 rc = cxl_h_collect_vpd(afu->guest->handle, 0, in guest_collect_vpd() 158 return cxl_h_collect_int_info(ctx->afu->guest->handle, ctx->process_token, info); in guest_get_irq_info() 186 rc = cxl_h_read_error_state(afu->guest->handle, &state); in afu_read_error_state() 203 rc = cxl_h_get_fn_error_interrupt(afu->guest->handle, &serr); in guest_slice_irq_err() 214 rc = cxl_h_ack_fn_error_interrupt(afu->guest->handle, serr); in guest_slice_irq_err() 228 for (i = 0; i < adapter->guest->irq_nranges; i++) { in irq_alloc_range() 229 cur = &adapter->guest->irq_avail[i]; in irq_alloc_range() 235 pr_devel("guest: allocate IRQs %#x->%#x\n", in irq_alloc_range() 252 for (i = 0; i < adapter->guest in irq_free_range() [all...] |
H A D | flash.c | 191 unwa->unit_address = cpu_to_be64(adapter->guest->handle); in update_devicetree() 245 header->vendor = cpu_to_be16(adapter->guest->vendor); in handle_image() 246 header->device = cpu_to_be16(adapter->guest->device); in handle_image() 247 header->subsystem_vendor = cpu_to_be16(adapter->guest->subsystem_vendor); in handle_image() 248 header->subsystem = cpu_to_be16(adapter->guest->subsystem); in handle_image() 312 rc = fct(adapter->guest->handle, virt_to_phys(le), entries, in handle_image() 335 cxl_h_reset_adapter(adapter->guest->handle); in transfer_image() 344 cxl_h_reset_adapter(adapter->guest->handle); in transfer_image() 353 cxl_h_reset_adapter(adapter->guest->handle); in transfer_image() 501 cxl_h_reset_adapter(adapter->guest in device_close() [all...] |
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
H A D | cpu-features.h | 668 #define cpu_guest_has_conf1 (cpu_data[0].guest.conf & (1 << 1)) 671 #define cpu_guest_has_conf2 (cpu_data[0].guest.conf & (1 << 2)) 674 #define cpu_guest_has_conf3 (cpu_data[0].guest.conf & (1 << 3)) 677 #define cpu_guest_has_conf4 (cpu_data[0].guest.conf & (1 << 4)) 680 #define cpu_guest_has_conf5 (cpu_data[0].guest.conf & (1 << 5)) 683 #define cpu_guest_has_conf6 (cpu_data[0].guest.conf & (1 << 6)) 686 #define cpu_guest_has_conf7 (cpu_data[0].guest.conf & (1 << 7)) 689 #define cpu_guest_has_fpu (cpu_data[0].guest.options & MIPS_CPU_FPU) 692 #define cpu_guest_has_watch (cpu_data[0].guest.options & MIPS_CPU_WATCH) 695 #define cpu_guest_has_contextconfig (cpu_data[0].guest [all...] |
/kernel/linux/linux-6.6/arch/mips/include/asm/ |
H A D | cpu-features.h | 666 #define cpu_guest_has_conf1 (cpu_data[0].guest.conf & (1 << 1)) 669 #define cpu_guest_has_conf2 (cpu_data[0].guest.conf & (1 << 2)) 672 #define cpu_guest_has_conf3 (cpu_data[0].guest.conf & (1 << 3)) 675 #define cpu_guest_has_conf4 (cpu_data[0].guest.conf & (1 << 4)) 678 #define cpu_guest_has_conf5 (cpu_data[0].guest.conf & (1 << 5)) 681 #define cpu_guest_has_conf6 (cpu_data[0].guest.conf & (1 << 6)) 684 #define cpu_guest_has_conf7 (cpu_data[0].guest.conf & (1 << 7)) 687 #define cpu_guest_has_fpu (cpu_data[0].guest.options & MIPS_CPU_FPU) 690 #define cpu_guest_has_watch (cpu_data[0].guest.options & MIPS_CPU_WATCH) 693 #define cpu_guest_has_contextconfig (cpu_data[0].guest [all...] |
/kernel/linux/linux-5.10/arch/loongarch/include/asm/ |
H A D | cpu-features.h | 80 #define cpu_guest_has_conf1 (cpu_data[0].guest.conf & (1 << 1)) 81 #define cpu_guest_has_conf2 (cpu_data[0].guest.conf & (1 << 2)) 82 #define cpu_guest_has_conf3 (cpu_data[0].guest.conf & (1 << 3)) 83 #define cpu_guest_has_fpu (cpu_data[0].guest.options & LOONGARCH_CPU_FPU) 84 #define cpu_guest_has_perf (cpu_data[0].guest.options & LOONGARCH_CPU_PMP) 85 #define cpu_guest_has_watch (cpu_data[0].guest.options & LOONGARCH_CPU_WATCH) 86 #define cpu_guest_has_lsx (cpu_data[0].guest.ases & LOONGARCH_ASE_LSX) 87 #define cpu_guest_has_kscr(n) (cpu_data[0].guest.kscratch_mask & (1u << (n))) 92 #define cpu_guest_has_dyn_fpu (cpu_data[0].guest.options_dyn & LOONGARCH_CPU_FPU) 93 #define cpu_guest_has_dyn_perf (cpu_data[0].guest [all...] |
/kernel/linux/linux-6.6/fs/proc/ |
H A D | stat.c | 86 u64 guest, guest_nice; in show_stat() local 94 guest = guest_nice = 0; in show_stat() 113 guest += cpustat[CPUTIME_GUEST]; in show_stat() 135 seq_put_decimal_ull(p, " ", nsec_to_clock_t(guest)); in show_stat() 154 guest = cpustat[CPUTIME_GUEST]; in show_stat() 165 seq_put_decimal_ull(p, " ", nsec_to_clock_t(guest)); in show_stat()
|
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/include/hyp/ |
H A D | switch.h | 134 * Resolve the IPA the hard way using the guest VA. in __translate_far_to_hpfar() 141 * saved the guest context yet, and we may return early... in __translate_far_to_hpfar() 147 tmp = SYS_PAR_EL1_F; /* back to the guest */ in __translate_far_to_hpfar() 151 return false; /* Translation failed, back to guest */ in __translate_far_to_hpfar() 403 * Return true when we were able to fixup the guest exit and should return to 404 * the guest, false when we should restore the host state and return to the 430 goto guest; in fixup_guest_exit() 434 * and restore the guest context lazily. in fixup_guest_exit() 436 * undefined instruction exception to the guest. in fixup_guest_exit() 440 goto guest; in fixup_guest_exit() [all...] |
/kernel/linux/linux-5.10/arch/loongarch/kernel/ |
H A D | cpu-probe.c | 232 c->guest.options |= LOONGARCH_CPU_FPU; in cpu_probe_lvz() 233 c->guest.options_dyn |= LOONGARCH_CPU_FPU; in cpu_probe_lvz() 234 c->guest.options_dyn |= LOONGARCH_CPU_PMP; in cpu_probe_lvz() 236 c->guest.ases |= LOONGARCH_CPU_LSX; in cpu_probe_lvz() 237 c->guest.ases_dyn |= LOONGARCH_CPU_LSX; in cpu_probe_lvz() 239 c->guest.kscratch_mask = GENMASK((gprcfg1 & CSR_CONF1_KSNUM) - 1, 0); in cpu_probe_lvz()
|
/kernel/linux/linux-5.10/fs/proc/ |
H A D | stat.c | 111 u64 guest, guest_nice; in show_stat() local 119 guest = guest_nice = 0; in show_stat() 136 guest += cpustat[CPUTIME_GUEST]; in show_stat() 158 seq_put_decimal_ull(p, " ", nsec_to_clock_t(guest)); in show_stat() 177 guest = cpustat[CPUTIME_GUEST]; in show_stat() 188 seq_put_decimal_ull(p, " ", nsec_to_clock_t(guest)); in show_stat()
|
/kernel/linux/linux-5.10/drivers/staging/media/zoran/ |
H A D | zoran_device.c | 125 int post_office_write(struct zoran *zr, unsigned int guest, in post_office_write() argument 131 ZR36057_POR_PO_DIR | ZR36057_POR_PO_TIME | ((guest & 7) << 20) | in post_office_write() 138 int post_office_read(struct zoran *zr, unsigned int guest, unsigned int reg) in post_office_read() argument 142 por = ZR36057_POR_PO_TIME | ((guest & 7) << 20) | ((reg & 7) << 16); in post_office_read() 157 int i, guest[8]; in dump_guests() local 160 guest[0] = 0; in dump_guests() 163 guest[i] = post_office_read(zr, i, 0); in dump_guests() 165 pci_info(zr->pci_dev, "Guests: %*ph\n", 8, guest); in dump_guests() 171 int timeout, i, j, res, guest[8], guest0[8], change[8][3]; in detect_guest_activity() local 175 guest[ in detect_guest_activity() [all...] |
H A D | zoran_device.h | 18 /* codec (or actually: guest bus) access */ 20 extern int post_office_write(struct zoran *zr, unsigned int guest, unsigned int reg, unsigned int value); 21 extern int post_office_read(struct zoran *zr, unsigned int guest, unsigned int reg);
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | cpu-probe.c | 798 * Probe for certain guest capabilities by writing config bits and reading back. 812 * Probe for dynamic guest capabilities by changing certain config bits and 832 c->guest.conf |= BIT(1); in decode_guest_config0() 845 c->guest.options |= MIPS_CPU_FPU; in decode_guest_config1() 847 c->guest.options_dyn |= MIPS_CPU_FPU; in decode_guest_config1() 850 c->guest.options |= MIPS_CPU_WATCH; in decode_guest_config1() 852 c->guest.options_dyn |= MIPS_CPU_WATCH; in decode_guest_config1() 855 c->guest.options |= MIPS_CPU_PERF; in decode_guest_config1() 857 c->guest.options_dyn |= MIPS_CPU_PERF; in decode_guest_config1() 860 c->guest in decode_guest_config1() [all...] |
/kernel/linux/linux-6.6/arch/mips/kernel/ |
H A D | cpu-probe.c | 799 * Probe for certain guest capabilities by writing config bits and reading back. 813 * Probe for dynamic guest capabilities by changing certain config bits and 833 c->guest.conf |= BIT(1); in decode_guest_config0() 846 c->guest.options |= MIPS_CPU_FPU; in decode_guest_config1() 848 c->guest.options_dyn |= MIPS_CPU_FPU; in decode_guest_config1() 851 c->guest.options |= MIPS_CPU_WATCH; in decode_guest_config1() 853 c->guest.options_dyn |= MIPS_CPU_WATCH; in decode_guest_config1() 856 c->guest.options |= MIPS_CPU_PERF; in decode_guest_config1() 858 c->guest.options_dyn |= MIPS_CPU_PERF; in decode_guest_config1() 861 c->guest in decode_guest_config1() [all...] |
/kernel/linux/linux-5.10/arch/s390/kernel/ |
H A D | vtime.c | 127 u64 timer, clock, user, guest, system, hardirq, softirq; in do_account_vtime() local 157 guest = update_tsk_timer(&tsk->thread.guest_timer, in do_account_vtime() 166 clock - user - guest - system - hardirq - softirq; in do_account_vtime() 174 if (guest) { in do_account_vtime() 175 account_guest_time(tsk, cputime_to_nsecs(guest)); in do_account_vtime() 176 tsk->utimescaled += cputime_to_nsecs(scale_vtime(guest)); in do_account_vtime() 186 return virt_timer_forward(user + guest + system + hardirq + softirq); in do_account_vtime()
|
/kernel/linux/linux-6.6/arch/s390/kernel/ |
H A D | vtime.c | 127 u64 timer, clock, user, guest, system, hardirq, softirq; in do_account_vtime() local 153 guest = update_tsk_timer(&tsk->thread.guest_timer, in do_account_vtime() 162 clock - user - guest - system - hardirq - softirq; in do_account_vtime() 170 if (guest) { in do_account_vtime() 171 account_guest_time(tsk, cputime_to_nsecs(guest)); in do_account_vtime() 172 tsk->utimescaled += cputime_to_nsecs(scale_vtime(guest)); in do_account_vtime() 182 return virt_timer_forward(user + guest + system + hardirq + softirq); in do_account_vtime()
|
H A D | entry.S | 203 * %r4 guest register save area 210 stg %r4,__SF_SIE_SAVEAREA(%r15) # save guest register save area 213 lmg %r0,%r13,0(%r4) # load guest gprs 0-13 230 # and handling it in a guest as result of the instruction execution. 252 lg %r14,__SF_SIE_SAVEAREA(%r15) # load guest register save area 253 stmg %r0,%r13,0(%r14) # save guest gprs 0-13 254 xgr %r0,%r0 # clear guest registers to
|
/kernel/linux/linux-6.6/drivers/media/pci/zoran/ |
H A D | zoran_device.h | 18 /* codec (or actually: guest bus) access */ 20 int post_office_write(struct zoran *zr, unsigned int guest, unsigned int reg, 22 int post_office_read(struct zoran *zr, unsigned int guest, unsigned int reg);
|