Home
last modified time | relevance | path

Searched refs:pr (Results 1 – 25 of 160) sorted by relevance

1234567

/kernel/linux/linux-5.10/drivers/acpi/
Dprocessor_throttling.c43 struct acpi_processor *pr; member
51 static int acpi_processor_get_throttling(struct acpi_processor *pr);
52 static int __acpi_processor_set_throttling(struct acpi_processor *pr,
61 struct acpi_processor *pr, *match_pr; in acpi_processor_update_tsd_coord() local
73 pr = per_cpu(processors, i); in acpi_processor_update_tsd_coord()
74 if (!pr) in acpi_processor_update_tsd_coord()
78 pthrottling = &(pr->throttling); in acpi_processor_update_tsd_coord()
94 pr = per_cpu(processors, i); in acpi_processor_update_tsd_coord()
95 if (!pr) in acpi_processor_update_tsd_coord()
100 pthrottling = &pr->throttling; in acpi_processor_update_tsd_coord()
[all …]
Dprocessor_driver.c59 struct acpi_processor *pr; in acpi_processor_notify() local
65 pr = acpi_driver_data(device); in acpi_processor_notify()
66 if (!pr) in acpi_processor_notify()
71 saved = pr->performance_platform_limit; in acpi_processor_notify()
72 acpi_processor_ppc_has_changed(pr, 1); in acpi_processor_notify()
73 if (saved == pr->performance_platform_limit) in acpi_processor_notify()
77 pr->performance_platform_limit); in acpi_processor_notify()
80 acpi_processor_power_state_has_changed(pr); in acpi_processor_notify()
85 acpi_processor_tstate_has_changed(pr); in acpi_processor_notify()
102 struct acpi_processor *pr = per_cpu(processors, cpu); in acpi_soft_cpu_online() local
[all …]
Dprocessor_perflib.c55 static int acpi_processor_get_platform_limit(struct acpi_processor *pr) in acpi_processor_get_platform_limit() argument
61 if (!pr) in acpi_processor_get_platform_limit()
68 status = acpi_evaluate_integer(pr->handle, "_PPC", NULL, &ppc); in acpi_processor_get_platform_limit()
78 pr_debug("CPU %d: _PPC is %d - frequency %s limited\n", pr->id, in acpi_processor_get_platform_limit()
81 pr->performance_platform_limit = (int)ppc; in acpi_processor_get_platform_limit()
83 if (ppc >= pr->performance->state_count || in acpi_processor_get_platform_limit()
84 unlikely(!freq_qos_request_active(&pr->perflib_req))) in acpi_processor_get_platform_limit()
87 ret = freq_qos_update_request(&pr->perflib_req, in acpi_processor_get_platform_limit()
88 pr->performance->states[ppc].core_frequency * 1000); in acpi_processor_get_platform_limit()
91 pr->id, ret); in acpi_processor_get_platform_limit()
[all …]
Dprocessor_idle.c126 static void lapic_timer_check_state(int state, struct acpi_processor *pr, in lapic_timer_check_state() argument
129 struct acpi_processor_power *pwr = &pr->power; in lapic_timer_check_state()
132 if (cpu_has(&cpu_data(pr->id), X86_FEATURE_ARAT)) in lapic_timer_check_state()
146 pr->power.timer_broadcast_on_state = state; in lapic_timer_check_state()
151 struct acpi_processor *pr = (struct acpi_processor *) arg; in __lapic_timer_propagate_broadcast() local
153 if (pr->power.timer_broadcast_on_state < INT_MAX) in __lapic_timer_propagate_broadcast()
159 static void lapic_timer_propagate_broadcast(struct acpi_processor *pr) in lapic_timer_propagate_broadcast() argument
161 smp_call_function_single(pr->id, __lapic_timer_propagate_broadcast, in lapic_timer_propagate_broadcast()
162 (void *)pr, 1); in lapic_timer_propagate_broadcast()
166 static bool lapic_timer_needs_broadcast(struct acpi_processor *pr, in lapic_timer_needs_broadcast() argument
[all …]
Dprocessor_thermal.c85 struct acpi_processor *pr; in cpufreq_set_cur_state() local
104 pr = per_cpu(processors, i); in cpufreq_set_cur_state()
106 if (unlikely(!freq_qos_request_active(&pr->thermal_req))) in cpufreq_set_cur_state()
117 ret = freq_qos_update_request(&pr->thermal_req, max_freq); in cpufreq_set_cur_state()
120 pr->id, ret); in cpufreq_set_cur_state()
131 struct acpi_processor *pr = per_cpu(processors, cpu); in acpi_thermal_cpufreq_init() local
134 if (!pr) in acpi_thermal_cpufreq_init()
138 &pr->thermal_req, in acpi_thermal_cpufreq_init()
151 struct acpi_processor *pr = per_cpu(processors, cpu); in acpi_thermal_cpufreq_exit() local
153 if (pr) in acpi_thermal_cpufreq_exit()
[all …]
Dacpi_processor.c183 static int acpi_processor_hotadd_init(struct acpi_processor *pr) in acpi_processor_hotadd_init() argument
189 if (invalid_phys_cpuid(pr->phys_id)) in acpi_processor_hotadd_init()
192 status = acpi_evaluate_integer(pr->handle, "_STA", NULL, &sta); in acpi_processor_hotadd_init()
199 ret = acpi_map_cpu(pr->handle, pr->phys_id, pr->acpi_id, &pr->id); in acpi_processor_hotadd_init()
203 ret = arch_register_cpu(pr->id); in acpi_processor_hotadd_init()
205 acpi_unmap_cpu(pr->id); in acpi_processor_hotadd_init()
214 pr_info("CPU%d has been hot-added\n", pr->id); in acpi_processor_hotadd_init()
215 pr->flags.need_hotplug_init = 1; in acpi_processor_hotadd_init()
223 static inline int acpi_processor_hotadd_init(struct acpi_processor *pr) in acpi_processor_hotadd_init() argument
233 struct acpi_processor *pr = acpi_driver_data(device); in acpi_processor_get_info() local
[all …]
Dcppc_acpi.c420 struct cppc_cpudata *pr, *match_pr; in acpi_get_psd_map() local
436 pr = all_cpu_data[i]; in acpi_get_psd_map()
444 cpumask_set_cpu(i, pr->shared_cpu_map); in acpi_get_psd_map()
452 pr->shared_type = CPUFREQ_SHARED_TYPE_ALL; in acpi_get_psd_map()
454 pr->shared_type = CPUFREQ_SHARED_TYPE_HW; in acpi_get_psd_map()
456 pr->shared_type = CPUFREQ_SHARED_TYPE_ANY; in acpi_get_psd_map()
484 cpumask_set_cpu(j, pr->shared_cpu_map); in acpi_get_psd_map()
487 for_each_cpu(j, pr->shared_cpu_map) { in acpi_get_psd_map()
492 match_pr->shared_type = pr->shared_type; in acpi_get_psd_map()
494 pr->shared_cpu_map); in acpi_get_psd_map()
[all …]
/kernel/linux/linux-5.10/drivers/xen/
Dxen-acpi-cpuhotplug.c27 static acpi_status xen_acpi_cpu_hotadd(struct acpi_processor *pr);
39 struct acpi_processor *pr = acpi_driver_data(device); in xen_acpi_processor_enable() local
43 status = acpi_evaluate_object(pr->handle, NULL, NULL, &buffer); in xen_acpi_processor_enable()
49 pr->acpi_id = object.processor.proc_id; in xen_acpi_processor_enable()
52 status = acpi_evaluate_integer(pr->handle, METHOD_NAME__UID, in xen_acpi_processor_enable()
59 pr->acpi_id = value; in xen_acpi_processor_enable()
62 pr->id = xen_pcpu_id(pr->acpi_id); in xen_acpi_processor_enable()
64 if (invalid_logical_cpuid(pr->id)) in xen_acpi_processor_enable()
66 if (ACPI_FAILURE(xen_acpi_cpu_hotadd(pr))) { in xen_acpi_processor_enable()
68 pr->acpi_id); in xen_acpi_processor_enable()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/ibm/ehea/
Dehea_main.c190 struct ehea_port_res *pr = &port->port_res[l]; in ehea_update_firmware_handles() local
193 arr[i++].fwh = pr->qp->fw_handle; in ehea_update_firmware_handles()
195 arr[i++].fwh = pr->send_cq->fw_handle; in ehea_update_firmware_handles()
197 arr[i++].fwh = pr->recv_cq->fw_handle; in ehea_update_firmware_handles()
199 arr[i++].fwh = pr->eq->fw_handle; in ehea_update_firmware_handles()
201 arr[i++].fwh = pr->send_mr.handle; in ehea_update_firmware_handles()
203 arr[i++].fwh = pr->recv_mr.handle; in ehea_update_firmware_handles()
379 static void ehea_refill_rq1(struct ehea_port_res *pr, int index, int nr_of_wqes) in ehea_refill_rq1() argument
381 struct sk_buff **skb_arr_rq1 = pr->rq1_skba.arr; in ehea_refill_rq1()
382 struct net_device *dev = pr->port->netdev; in ehea_refill_rq1()
[all …]
/kernel/linux/linux-5.10/include/acpi/
Dprocessor.h179 int (*acpi_processor_get_throttling) (struct acpi_processor * pr);
180 int (*acpi_processor_set_throttling) (struct acpi_processor * pr,
265 extern int acpi_processor_get_performance_info(struct acpi_processor *pr);
315 void acpi_processor_ppc_has_changed(struct acpi_processor *pr, int event_flag);
330 static inline void acpi_processor_ppc_has_changed(struct acpi_processor *pr, in acpi_processor_ppc_has_changed() argument
356 extern int acpi_cppc_processor_probe(struct acpi_processor *pr);
357 extern void acpi_cppc_processor_exit(struct acpi_processor *pr);
359 static inline int acpi_cppc_processor_probe(struct acpi_processor *pr) in acpi_cppc_processor_probe() argument
363 static inline void acpi_cppc_processor_exit(struct acpi_processor *pr) in acpi_cppc_processor_exit() argument
374 int acpi_processor_tstate_has_changed(struct acpi_processor *pr);
[all …]
/kernel/linux/linux-5.10/drivers/char/ipmi/
Dipmi_plat_data.c17 struct property_entry pr[6]; in ipmi_platform_add() local
21 memset(pr, 0, sizeof(pr)); in ipmi_platform_add()
35 pr[pidx++] = PROPERTY_ENTRY_U8("ipmi-type", p->type); in ipmi_platform_add()
37 pr[pidx++] = PROPERTY_ENTRY_U16("i2c-addr", p->addr); in ipmi_platform_add()
41 pr[pidx++] = PROPERTY_ENTRY_U8("slave-addr", p->slave_addr); in ipmi_platform_add()
42 pr[pidx++] = PROPERTY_ENTRY_U8("addr-source", p->addr_source); in ipmi_platform_add()
44 pr[pidx++] = PROPERTY_ENTRY_U8("reg-shift", p->regshift); in ipmi_platform_add()
45 pr[pidx++] = PROPERTY_ENTRY_U8("reg-size", p->regsize); in ipmi_platform_add()
105 rv = platform_device_add_properties(pdev, pr); in ipmi_platform_add()
/kernel/linux/linux-5.10/drivers/sh/intc/
Dhandle.c112 struct intc_prio_reg *pr = desc->hw.prio_regs; in _intc_prio_data() local
116 while (pr && enum_id && *reg_idx < desc->hw.nr_prio_regs) { in _intc_prio_data()
117 pr = desc->hw.prio_regs + *reg_idx; in _intc_prio_data()
119 for (; *fld_idx < ARRAY_SIZE(pr->enum_ids); (*fld_idx)++) { in _intc_prio_data()
120 if (pr->enum_ids[*fld_idx] != enum_id) in _intc_prio_data()
123 if (pr->set_reg && pr->clr_reg) { in _intc_prio_data()
126 reg_e = pr->set_reg; in _intc_prio_data()
127 reg_d = pr->clr_reg; in _intc_prio_data()
131 if (!pr->set_reg) in _intc_prio_data()
133 reg_e = pr->set_reg; in _intc_prio_data()
[all …]
/kernel/linux/linux-5.10/arch/ia64/lib/
Dxor.S18 .save pr, r29
19 mov r29 = pr
31 mov pr.rot = 1 << 16
44 mov pr = r29, -1
56 .save pr, r29
57 mov r29 = pr
70 mov pr.rot = 1 << 16
85 mov pr = r29, -1
97 .save pr, r29
98 mov r29 = pr
[all …]
/kernel/linux/linux-5.10/scripts/coccinelle/misc/
Ddoubleinit.cocci37 pr << r.p;
40 if int(ps[0].line) < int(pr[0].line) or (int(ps[0].line) == int(pr[0].line) and int(ps[0].column) <…
43 cocci.print_secs("r",pr)
49 pr << r.p;
52 if int(ps[0].line) < int(pr[0].line) or (int(ps[0].line) == int(pr[0].line) and int(ps[0].column) <…
53 msg = "%s: first occurrence line %s, second occurrence line %s" % (fld,ps[0].line,pr[0].line)
/kernel/linux/linux-5.10/arch/arm64/kernel/
Dcpuidle.c55 struct acpi_processor *pr = per_cpu(processors, cpu); in psci_acpi_cpu_init_idle() local
57 if (unlikely(!pr || !pr->flags.has_lpi)) in psci_acpi_cpu_init_idle()
67 count = pr->power.count - 1; in psci_acpi_cpu_init_idle()
74 lpi = &pr->power.lpi_states[i + 1]; in psci_acpi_cpu_init_idle()
/kernel/linux/linux-5.10/crypto/async_tx/
Draid6test.c15 #undef pr
16 #define pr(fmt, args...) pr_info("raid6test: " fmt, ##args) macro
119 pr("%s: timeout! (faila: %d failb: %d disks: %d)\n", in raid6_dual_recov()
123 pr("%s: validation failure! faila: %d failb: %d sum_check_flags: %x\n", in raid6_dual_recov()
142 pr("%s(%d, %d): faila=%3d(%c) failb=%3d(%c) %s\n", in test_disks()
177 pr("error: initial gen_syndrome(%d) timed out\n", disks); in test()
181 pr("testing the %d-disk case...\n", disks); in test()
229 pr("\n"); in raid6_test()
230 pr("complete (%d tests, %d failure%s)\n", in raid6_test()
/kernel/linux/linux-5.10/arch/powerpc/kvm/
De500.c161 int as, int pid, int pr) in kvmppc_e500_id_table_reset_one() argument
167 BUG_ON(pr >= 2); in kvmppc_e500_id_table_reset_one()
169 idt->id[as][pid][pr].val = 0; in kvmppc_e500_id_table_reset_one()
170 idt->id[as][pid][pr].pentry = NULL; in kvmppc_e500_id_table_reset_one()
187 unsigned int pr, int avoid_recursion) in kvmppc_e500_get_sid() argument
194 BUG_ON(pr >= 2); in kvmppc_e500_get_sid()
196 sid = local_sid_lookup(&idt->id[as][gid][pr]); in kvmppc_e500_get_sid()
200 sid = local_sid_setup_one(&idt->id[as][gid][pr]); in kvmppc_e500_get_sid()
236 unsigned int pr, tid, ts; in kvmppc_e500_tlbil_one() local
247 for (pr = 0; pr < 2; pr++) { in kvmppc_e500_tlbil_one()
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/ttpci/
Ddvb_filter.c21 int dvb_filter_get_ac3info(u8 *mbuf, int count, struct dvb_audio_info *ai, int pr) in dvb_filter_get_ac3info() argument
40 if (pr) in dvb_filter_get_ac3info()
52 if (pr) in dvb_filter_get_ac3info()
58 if (pr) in dvb_filter_get_ac3info()
64 if (pr) in dvb_filter_get_ac3info()
/kernel/linux/linux-5.10/arch/x86/mm/
Ddump_pagetables.c179 static void printk_prot(struct seq_file *m, pgprotval_t pr, int level, bool dmsg) in printk_prot() argument
184 if (!(pr & _PAGE_PRESENT)) { in printk_prot()
188 if (pr & _PAGE_USER) in printk_prot()
192 if (pr & _PAGE_RW) in printk_prot()
196 if (pr & _PAGE_PWT) in printk_prot()
200 if (pr & _PAGE_PCD) in printk_prot()
206 if (level <= 3 && pr & _PAGE_PSE) in printk_prot()
210 if ((level == 4 && pr & _PAGE_PAT) || in printk_prot()
211 ((level == 3 || level == 2) && pr & _PAGE_PAT_LARGE)) in printk_prot()
215 if (pr & _PAGE_GLOBAL) in printk_prot()
[all …]
/kernel/linux/linux-5.10/arch/sh/kernel/
Dsignal_32.c129 COPY(macl); COPY(pr); in restore_sigcontext()
233 COPY(macl); COPY(pr); in setup_sigcontext()
286 regs->pr = (unsigned long) ksig->ka.sa.sa_restorer; in setup_frame()
289 regs->pr = VDSO_SYM(&__kernel_sigreturn); in setup_frame()
301 regs->pr = (unsigned long) frame->retcode; in setup_frame()
302 flush_icache_range(regs->pr, regs->pr + sizeof(frame->retcode)); in setup_frame()
327 current->comm, task_pid_nr(current), frame, regs->pc, regs->pr); in setup_frame()
356 regs->pr = (unsigned long) ksig->ka.sa.sa_restorer; in setup_rt_frame()
359 regs->pr = VDSO_SYM(&__kernel_rt_sigreturn); in setup_rt_frame()
371 regs->pr = (unsigned long) frame->retcode; in setup_rt_frame()
[all …]
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh3/
Dswsusp.S66 lds k2, pr
94 sts pr, r0 ! save pr in r0
117 stc r0_bank, k3 ! fetch old pr from r0_bank0
124 lds r0, pr ! restore old pr
132 lds r0, pr ! restore old pr
/kernel/linux/linux-5.10/drivers/block/paride/
Dparide.c210 int paride_register(PIP * pr) in paride_register() argument
215 if (protocols[k] && !strcmp(pr->name, protocols[k]->name)) { in paride_register()
217 pr->name); in paride_register()
227 protocols[k] = pr; in paride_register()
228 pr->index = k; in paride_register()
229 printk("paride: %s registered as protocol %d\n", pr->name, k); in paride_register()
235 void paride_unregister(PIP * pr) in paride_unregister() argument
237 if (!pr) in paride_unregister()
239 if (protocols[pr->index] != pr) { in paride_unregister()
240 printk("paride: %s not registered\n", pr->name); in paride_unregister()
[all …]
/kernel/linux/linux-5.10/fs/ext4/
Dextents_status.c1138 struct pending_reservation *pr = NULL; in __pr_tree_search() local
1141 pr = rb_entry(node, struct pending_reservation, rb_node); in __pr_tree_search()
1142 if (lclu < pr->lclu) in __pr_tree_search()
1144 else if (lclu > pr->lclu) in __pr_tree_search()
1147 return pr; in __pr_tree_search()
1149 if (pr && lclu < pr->lclu) in __pr_tree_search()
1150 return pr; in __pr_tree_search()
1151 if (pr && lclu > pr->lclu) { in __pr_tree_search()
1152 node = rb_next(&pr->rb_node); in __pr_tree_search()
1180 struct pending_reservation *pr; in get_rsvd() local
[all …]
/kernel/linux/linux-5.10/drivers/extcon/
Dextcon-usbc-cros-ec.c29 bool pr; /* power role (true if VBUS enabled) */ member
253 bool pr = false; in extcon_cros_ec_detect_cable() local
277 pr = (role & PD_CTRL_RESP_ROLE_POWER); in extcon_cros_ec_detect_cable()
288 role, power_type, dr, pr, polarity, mux, dp, hpd); in extcon_cros_ec_detect_cable()
299 if (force || info->dr != dr || info->pr != pr || info->dp != dp || in extcon_cros_ec_detect_cable()
307 info->pr = pr; in extcon_cros_ec_detect_cable()
322 (union extcon_property_value)(int)pr); in extcon_cros_ec_detect_cable()
325 (union extcon_property_value)(int)pr); in extcon_cros_ec_detect_cable()
455 info->pr = false; in extcon_cros_ec_probe()
/kernel/linux/linux-5.10/arch/microblaze/pci/
Dpci-common.c674 struct resource *res, *pr; in pcibios_allocate_bus_resources() local
684 pr = (res->flags & IORESOURCE_IO) ? in pcibios_allocate_bus_resources()
693 pr = pci_find_parent_resource(bus->self, res); in pcibios_allocate_bus_resources()
694 if (pr == res) { in pcibios_allocate_bus_resources()
710 pr, (pr && pr->name) ? pr->name : "nil"); in pcibios_allocate_bus_resources()
712 if (pr && !(pr->flags & IORESOURCE_UNSET)) { in pcibios_allocate_bus_resources()
715 if (request_resource(pr, res) == 0) in pcibios_allocate_bus_resources()
722 if (reparent_resources(pr, res) == 0) in pcibios_allocate_bus_resources()
743 struct resource *pr, *r = &dev->resource[idx]; in alloc_resource() local
751 pr = pci_find_parent_resource(dev, r); in alloc_resource()
[all …]

1234567