/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/ |
H A D | ppr.c | 9 #include "ppr.h" 12 #define ppr_for_each_entry(ppr, i, entry) \ 13 for (i = 0, entry = &(ppr)->__all_rates[i]; \ 17 void b43_ppr_clear(struct b43_wldev *dev, struct b43_ppr *ppr) in b43_ppr_clear() argument 19 memset(ppr, 0, sizeof(*ppr)); in b43_ppr_clear() 25 void b43_ppr_add(struct b43_wldev *dev, struct b43_ppr *ppr, int diff) in b43_ppr_add() argument 30 ppr_for_each_entry(ppr, i, rate) { in b43_ppr_add() 35 void b43_ppr_apply_max(struct b43_wldev *dev, struct b43_ppr *ppr, u8 max) in b43_ppr_apply_max() argument 40 ppr_for_each_entry(ppr, in b43_ppr_apply_max() 45 b43_ppr_apply_min(struct b43_wldev *dev, struct b43_ppr *ppr, u8 min) b43_ppr_apply_min() argument 55 b43_ppr_get_max(struct b43_wldev *dev, struct b43_ppr *ppr) b43_ppr_get_max() argument 68 b43_ppr_load_max_from_sprom(struct b43_wldev *dev, struct b43_ppr *ppr, enum b43_band band) b43_ppr_load_max_from_sprom() argument [all...] |
H A D | ppr.h | 36 void b43_ppr_clear(struct b43_wldev *dev, struct b43_ppr *ppr); 38 void b43_ppr_add(struct b43_wldev *dev, struct b43_ppr *ppr, int diff); 39 void b43_ppr_apply_max(struct b43_wldev *dev, struct b43_ppr *ppr, u8 max); 40 void b43_ppr_apply_min(struct b43_wldev *dev, struct b43_ppr *ppr, u8 min); 41 u8 b43_ppr_get_max(struct b43_wldev *dev, struct b43_ppr *ppr); 43 bool b43_ppr_load_max_from_sprom(struct b43_wldev *dev, struct b43_ppr *ppr,
|
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43/ |
H A D | ppr.c | 9 #include "ppr.h" 12 #define ppr_for_each_entry(ppr, i, entry) \ 13 for (i = 0, entry = &(ppr)->__all_rates[i]; \ 17 void b43_ppr_clear(struct b43_wldev *dev, struct b43_ppr *ppr) in b43_ppr_clear() argument 19 memset(ppr, 0, sizeof(*ppr)); in b43_ppr_clear() 25 void b43_ppr_add(struct b43_wldev *dev, struct b43_ppr *ppr, int diff) in b43_ppr_add() argument 30 ppr_for_each_entry(ppr, i, rate) { in b43_ppr_add() 35 void b43_ppr_apply_max(struct b43_wldev *dev, struct b43_ppr *ppr, u8 max) in b43_ppr_apply_max() argument 40 ppr_for_each_entry(ppr, in b43_ppr_apply_max() 45 b43_ppr_apply_min(struct b43_wldev *dev, struct b43_ppr *ppr, u8 min) b43_ppr_apply_min() argument 55 b43_ppr_get_max(struct b43_wldev *dev, struct b43_ppr *ppr) b43_ppr_get_max() argument 68 b43_ppr_load_max_from_sprom(struct b43_wldev *dev, struct b43_ppr *ppr, enum b43_band band) b43_ppr_load_max_from_sprom() argument [all...] |
H A D | ppr.h | 36 void b43_ppr_clear(struct b43_wldev *dev, struct b43_ppr *ppr); 38 void b43_ppr_add(struct b43_wldev *dev, struct b43_ppr *ppr, int diff); 39 void b43_ppr_apply_max(struct b43_wldev *dev, struct b43_ppr *ppr, u8 max); 40 void b43_ppr_apply_min(struct b43_wldev *dev, struct b43_ppr *ppr, u8 min); 41 u8 b43_ppr_get_max(struct b43_wldev *dev, struct b43_ppr *ppr); 43 bool b43_ppr_load_max_from_sprom(struct b43_wldev *dev, struct b43_ppr *ppr,
|
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
H A D | ptrace.c | 824 ptrace_getregs (struct task_struct *child, struct pt_all_user_regs __user *ppr) in ptrace_getregs() argument 835 if (!access_ok(ppr, sizeof(struct pt_all_user_regs))) in ptrace_getregs() 845 if (((unsigned long) ppr & 0x7) != 0) { in ptrace_getregs() 846 dprintk("ptrace:unaligned register address %p\n", ppr); in ptrace_getregs() 861 retval |= __put_user(pt->cr_iip, &ppr->cr_iip); in ptrace_getregs() 862 retval |= __put_user(psr, &ppr->cr_ipsr); in ptrace_getregs() 866 retval |= __put_user(pt->ar_pfs, &ppr->ar[PT_AUR_PFS]); in ptrace_getregs() 867 retval |= __put_user(pt->ar_rsc, &ppr->ar[PT_AUR_RSC]); in ptrace_getregs() 868 retval |= __put_user(pt->ar_bspstore, &ppr->ar[PT_AUR_BSPSTORE]); in ptrace_getregs() 869 retval |= __put_user(pt->ar_unat, &ppr in ptrace_getregs() 968 ptrace_setregs(struct task_struct *child, struct pt_all_user_regs __user *ppr) ptrace_setregs() argument [all...] |
/kernel/linux/linux-6.6/arch/ia64/kernel/ |
H A D | ptrace.c | 767 ptrace_getregs (struct task_struct *child, struct pt_all_user_regs __user *ppr) in ptrace_getregs() argument 778 if (!access_ok(ppr, sizeof(struct pt_all_user_regs))) in ptrace_getregs() 788 if (((unsigned long) ppr & 0x7) != 0) { in ptrace_getregs() 789 dprintk("ptrace:unaligned register address %p\n", ppr); in ptrace_getregs() 804 retval |= __put_user(pt->cr_iip, &ppr->cr_iip); in ptrace_getregs() 805 retval |= __put_user(psr, &ppr->cr_ipsr); in ptrace_getregs() 809 retval |= __put_user(pt->ar_pfs, &ppr->ar[PT_AUR_PFS]); in ptrace_getregs() 810 retval |= __put_user(pt->ar_rsc, &ppr->ar[PT_AUR_RSC]); in ptrace_getregs() 811 retval |= __put_user(pt->ar_bspstore, &ppr->ar[PT_AUR_BSPSTORE]); in ptrace_getregs() 812 retval |= __put_user(pt->ar_unat, &ppr in ptrace_getregs() 911 ptrace_setregs(struct task_struct *child, struct pt_all_user_regs __user *ppr) ptrace_setregs() argument [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace-tar.h | 30 unsigned long ppr, unsigned long dscr) in validate_tar_registers() 37 if (reg[1] != ppr) in validate_tar_registers() 29 validate_tar_registers(unsigned long *reg, unsigned long tar, unsigned long ppr, unsigned long dscr) validate_tar_registers() argument
|
H A D | ptrace.h | 186 unsigned long ppr, unsigned long dscr) in write_tar_registers() 208 *reg = ppr; in write_tar_registers() 277 unsigned long ppr, unsigned long dscr) in write_ckpt_tar_registers() 299 *reg = ppr; in write_ckpt_tar_registers() 185 write_tar_registers(pid_t child, unsigned long tar, unsigned long ppr, unsigned long dscr) write_tar_registers() argument 276 write_ckpt_tar_registers(pid_t child, unsigned long tar, unsigned long ppr, unsigned long dscr) write_ckpt_tar_registers() argument
|
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace-tar.h | 30 unsigned long ppr, unsigned long dscr) in validate_tar_registers() 37 if (reg[1] != ppr) in validate_tar_registers() 29 validate_tar_registers(unsigned long *reg, unsigned long tar, unsigned long ppr, unsigned long dscr) validate_tar_registers() argument
|
H A D | ptrace.h | 190 unsigned long ppr, unsigned long dscr) in write_tar_registers() 212 *reg = ppr; in write_tar_registers() 281 unsigned long ppr, unsigned long dscr) in write_ckpt_tar_registers() 303 *reg = ppr; in write_ckpt_tar_registers() 189 write_tar_registers(pid_t child, unsigned long tar, unsigned long ppr, unsigned long dscr) write_tar_registers() argument 280 write_ckpt_tar_registers(pid_t child, unsigned long tar, unsigned long ppr, unsigned long dscr) write_ckpt_tar_registers() argument
|
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | max6639.c | 88 u8 ppr; /* Pulses per rotation 0..3 for 1..4 ppr */ member 417 if (max6639_info && max6639_info->ppr > 0 && in max6639_init_client() 418 max6639_info->ppr < 5) in max6639_init_client() 419 data->ppr = max6639_info->ppr; in max6639_init_client() 421 data->ppr = 2; in max6639_init_client() 422 data->ppr -= 1; in max6639_init_client() 433 data->ppr << 6); in max6639_init_client()
|
H A D | axi-fan-control.c | 56 u32 ppr; member 141 * TACH = 60/(ppr * rpm), where rpm is revolutions per second in axi_fan_control_get_fan_rpm() 142 * and ppr is pulses per revolution. in axi_fan_control_get_fan_rpm() 147 return DIV_ROUND_CLOSEST(60 * ctl->clk_rate, ctl->ppr * tach); in axi_fan_control_get_fan_rpm() 375 ret = of_property_read_u32(np, "pulses-per-revolution", &ctl->ppr); in axi_fan_control_init() 380 if (ctl->ppr != 1 && ctl->ppr != 2 && ctl->ppr != 4) in axi_fan_control_init()
|
H A D | pwm-fan.c | 289 u32 ppr = 2; in pwm_fan_probe() local 352 of_property_read_u32(dev->of_node, "pulses-per-revolution", &ppr); in pwm_fan_probe() 353 ctx->pulses_per_revolution = ppr; in pwm_fan_probe()
|
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | max6639.c | 88 u8 ppr; /* Pulses per rotation 0..3 for 1..4 ppr */ member 420 if (max6639_info && max6639_info->ppr > 0 && in max6639_init_client() 421 max6639_info->ppr < 5) in max6639_init_client() 422 data->ppr = max6639_info->ppr; in max6639_init_client() 424 data->ppr = 2; in max6639_init_client() 425 data->ppr -= 1; in max6639_init_client() 436 data->ppr << 6); in max6639_init_client()
|
H A D | axi-fan-control.c | 56 u32 ppr; member 141 * TACH = 60/(ppr * rpm), where rpm is revolutions per second in axi_fan_control_get_fan_rpm() 142 * and ppr is pulses per revolution. in axi_fan_control_get_fan_rpm() 147 return DIV_ROUND_CLOSEST(60 * ctl->clk_rate, ctl->ppr * tach); in axi_fan_control_get_fan_rpm() 376 ret = of_property_read_u32(np, "pulses-per-revolution", &ctl->ppr); in axi_fan_control_init() 381 if (ctl->ppr != 1 && ctl->ppr != 2 && ctl->ppr != 4) in axi_fan_control_init()
|
H A D | pwm-fan.c | 576 u32 ppr = 2; in pwm_fan_probe() local 595 &ppr); in pwm_fan_probe() 596 tach->pulses_per_revolution = ppr; in pwm_fan_probe()
|
/kernel/linux/linux-5.10/include/linux/platform_data/ |
H A D | max6639.h | 11 int ppr; /* Pulses per rotation 1..4 (default == 2) */ member
|
/kernel/linux/linux-6.6/include/linux/platform_data/ |
H A D | max6639.h | 11 int ppr; /* Pulses per rotation 1..4 (default == 2) */ member
|
/kernel/linux/linux-5.10/arch/x86/kvm/ |
H A D | lapic.c | 705 static int apic_has_interrupt_for_ppr(struct kvm_lapic *apic, u32 ppr) in apic_has_interrupt_for_ppr() argument 712 if (highest_irr == -1 || (highest_irr & 0xF0) <= ppr) in apic_has_interrupt_for_ppr() 719 u32 tpr, isrv, ppr, old_ppr; in __apic_update_ppr() local 728 ppr = tpr & 0xff; in __apic_update_ppr() 730 ppr = isrv & 0xf0; in __apic_update_ppr() 732 *new_ppr = ppr; in __apic_update_ppr() 733 if (old_ppr != ppr) in __apic_update_ppr() 734 kvm_lapic_set_reg(apic, APIC_PROCPRI, ppr); in __apic_update_ppr() 736 return ppr < old_ppr; in __apic_update_ppr() 741 u32 ppr; in apic_update_ppr() local 2493 u32 ppr; kvm_apic_has_interrupt() local 2529 u32 ppr; kvm_get_apic_interrupt() local [all...] |
/kernel/linux/linux-6.6/arch/x86/kvm/ |
H A D | lapic.c | 932 static int apic_has_interrupt_for_ppr(struct kvm_lapic *apic, u32 ppr) in apic_has_interrupt_for_ppr() argument 939 if (highest_irr == -1 || (highest_irr & 0xF0) <= ppr) in apic_has_interrupt_for_ppr() 946 u32 tpr, isrv, ppr, old_ppr; in __apic_update_ppr() local 955 ppr = tpr & 0xff; in __apic_update_ppr() 957 ppr = isrv & 0xf0; in __apic_update_ppr() 959 *new_ppr = ppr; in __apic_update_ppr() 960 if (old_ppr != ppr) in __apic_update_ppr() 961 kvm_lapic_set_reg(apic, APIC_PROCPRI, ppr); in __apic_update_ppr() 963 return ppr < old_ppr; in __apic_update_ppr() 968 u32 ppr; in apic_update_ppr() local 2862 u32 ppr; kvm_apic_has_interrupt() local 2898 u32 ppr; kvm_get_apic_interrupt() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/kvm/ |
H A D | book3s_hv_nested.c | 51 hr->ppr = vcpu->arch.ppr; in kvmhv_save_hv_regs() 94 hr->ppr = swab64(hr->ppr); in byteswap_hv_regs() 116 hr->ppr = vcpu->arch.ppr; in save_hv_return_state() 170 vcpu->arch.ppr = hr->ppr; in restore_hv_regs() 196 vcpu->arch.ppr = hr->ppr; in kvmhv_restore_hv_return_state() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/kvm/ |
H A D | book3s_hv_nested.c | 53 hr->ppr = vcpu->arch.ppr; in kvmhv_save_hv_regs() 98 hr->ppr = swab64(hr->ppr); in byteswap_hv_regs() 121 hr->ppr = vcpu->arch.ppr; in save_hv_return_state() 163 vcpu->arch.ppr = hr->ppr; in restore_hv_regs() 191 vcpu->arch.ppr = hr->ppr; in kvmhv_restore_hv_return_state() [all...] |
H A D | book3s_hv.h | 113 KVMPPC_BOOK3S_HV_VCPU_ACCESSOR(ppr, 64)
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | kvm_book3s_asm.h | 132 u64 ppr;
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A D | kvm_book3s_asm.h | 118 u64 ppr;
|