Home
last modified time | relevance | path

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

123

/drivers/acpi/
Dprocessor_throttling.c39 struct acpi_processor *pr; member
47 static int acpi_processor_get_throttling(struct acpi_processor *pr);
48 static int __acpi_processor_set_throttling(struct acpi_processor *pr,
57 struct acpi_processor *pr, *match_pr; in acpi_processor_update_tsd_coord() local
69 pr = per_cpu(processors, i); in acpi_processor_update_tsd_coord()
70 if (!pr) in acpi_processor_update_tsd_coord()
74 pthrottling = &(pr->throttling); in acpi_processor_update_tsd_coord()
90 pr = per_cpu(processors, i); in acpi_processor_update_tsd_coord()
91 if (!pr) in acpi_processor_update_tsd_coord()
96 pthrottling = &pr->throttling; in acpi_processor_update_tsd_coord()
[all …]
Dprocessor_perflib.c52 static int acpi_processor_get_platform_limit(struct acpi_processor *pr) in acpi_processor_get_platform_limit() argument
60 if (!pr) in acpi_processor_get_platform_limit()
67 status = acpi_evaluate_integer(pr->handle, "_PPC", NULL, &ppc); in acpi_processor_get_platform_limit()
72 acpi_evaluation_failure_warn(pr->handle, "_PPC", status); in acpi_processor_get_platform_limit()
79 if (pr->performance_platform_limit == index || in acpi_processor_get_platform_limit()
80 ppc >= pr->performance->state_count) in acpi_processor_get_platform_limit()
83 pr_debug("CPU %d: _PPC is %d - frequency %s limited\n", pr->id, in acpi_processor_get_platform_limit()
86 pr->performance_platform_limit = index; in acpi_processor_get_platform_limit()
88 if (unlikely(!freq_qos_request_active(&pr->perflib_req))) in acpi_processor_get_platform_limit()
98 qos_value = pr->performance->states[index].core_frequency * 1000; in acpi_processor_get_platform_limit()
[all …]
Dprocessor_driver.c56 struct acpi_processor *pr; in acpi_processor_notify() local
62 pr = acpi_driver_data(device); in acpi_processor_notify()
63 if (!pr) in acpi_processor_notify()
68 saved = pr->performance_platform_limit; in acpi_processor_notify()
69 acpi_processor_ppc_has_changed(pr, 1); in acpi_processor_notify()
70 if (saved == pr->performance_platform_limit) in acpi_processor_notify()
74 pr->performance_platform_limit); in acpi_processor_notify()
77 acpi_processor_power_state_has_changed(pr); in acpi_processor_notify()
82 acpi_processor_tstate_has_changed(pr); in acpi_processor_notify()
98 struct acpi_processor *pr = per_cpu(processors, cpu); in acpi_soft_cpu_online() local
[all …]
Dprocessor_idle.c122 static void lapic_timer_check_state(int state, struct acpi_processor *pr, in lapic_timer_check_state() argument
125 struct acpi_processor_power *pwr = &pr->power; in lapic_timer_check_state()
128 if (cpu_has(&cpu_data(pr->id), X86_FEATURE_ARAT)) in lapic_timer_check_state()
142 pr->power.timer_broadcast_on_state = state; in lapic_timer_check_state()
147 struct acpi_processor *pr = (struct acpi_processor *) arg; in __lapic_timer_propagate_broadcast() local
149 if (pr->power.timer_broadcast_on_state < INT_MAX) in __lapic_timer_propagate_broadcast()
155 static void lapic_timer_propagate_broadcast(struct acpi_processor *pr) in lapic_timer_propagate_broadcast() argument
157 smp_call_function_single(pr->id, __lapic_timer_propagate_broadcast, in lapic_timer_propagate_broadcast()
158 (void *)pr, 1); in lapic_timer_propagate_broadcast()
162 static bool lapic_timer_needs_broadcast(struct acpi_processor *pr, in lapic_timer_needs_broadcast() argument
[all …]
Dprocessor_thermal.c81 struct acpi_processor *pr; in cpufreq_set_cur_state() local
100 pr = per_cpu(processors, i); in cpufreq_set_cur_state()
102 if (unlikely(!freq_qos_request_active(&pr->thermal_req))) in cpufreq_set_cur_state()
113 ret = freq_qos_update_request(&pr->thermal_req, max_freq); in cpufreq_set_cur_state()
116 pr->id, ret); in cpufreq_set_cur_state()
127 struct acpi_processor *pr = per_cpu(processors, cpu); in acpi_thermal_cpufreq_init() local
130 if (!pr) in acpi_thermal_cpufreq_init()
134 &pr->thermal_req, in acpi_thermal_cpufreq_init()
147 struct acpi_processor *pr = per_cpu(processors, cpu); in acpi_thermal_cpufreq_exit() local
149 if (pr) in acpi_thermal_cpufreq_exit()
[all …]
Dacpi_processor.c171 static int acpi_processor_hotadd_init(struct acpi_processor *pr) in acpi_processor_hotadd_init() argument
177 if (invalid_phys_cpuid(pr->phys_id)) in acpi_processor_hotadd_init()
180 status = acpi_evaluate_integer(pr->handle, "_STA", NULL, &sta); in acpi_processor_hotadd_init()
187 ret = acpi_map_cpu(pr->handle, pr->phys_id, pr->acpi_id, &pr->id); in acpi_processor_hotadd_init()
191 ret = arch_register_cpu(pr->id); in acpi_processor_hotadd_init()
193 acpi_unmap_cpu(pr->id); in acpi_processor_hotadd_init()
202 pr_info("CPU%d has been hot-added\n", pr->id); in acpi_processor_hotadd_init()
203 pr->flags.need_hotplug_init = 1; in acpi_processor_hotadd_init()
211 static inline int acpi_processor_hotadd_init(struct acpi_processor *pr) in acpi_processor_hotadd_init() argument
221 struct acpi_processor *pr = acpi_driver_data(device); in acpi_processor_get_info() local
[all …]
Dcppc_acpi.c656 int acpi_cppc_processor_probe(struct acpi_processor *pr) in acpi_cppc_processor_probe() argument
663 acpi_handle handle = pr->handle; in acpi_cppc_processor_probe()
691 num_ent, pr->id); in acpi_cppc_processor_probe()
712 pr->id); in acpi_cppc_processor_probe()
725 num_ent, pr->id); in acpi_cppc_processor_probe()
782 pr_debug("Err in entry:%d in CPC table of CPU:%d\n", i, pr->id); in acpi_cppc_processor_probe()
786 per_cpu(cpu_pcc_subspace_idx, pr->id) = pcc_subspace_id; in acpi_cppc_processor_probe()
800 cpc_ptr->cpu_id = pr->id; in acpi_cppc_processor_probe()
818 pr_debug("Parsed CPC struct for CPU: %d\n", pr->id); in acpi_cppc_processor_probe()
821 cpu_dev = get_cpu_device(pr->id); in acpi_cppc_processor_probe()
[all …]
/drivers/net/ethernet/ibm/ehea/
Dehea_main.c191 struct ehea_port_res *pr = &port->port_res[l]; in ehea_update_firmware_handles() local
194 arr[i++].fwh = pr->qp->fw_handle; in ehea_update_firmware_handles()
196 arr[i++].fwh = pr->send_cq->fw_handle; in ehea_update_firmware_handles()
198 arr[i++].fwh = pr->recv_cq->fw_handle; in ehea_update_firmware_handles()
200 arr[i++].fwh = pr->eq->fw_handle; in ehea_update_firmware_handles()
202 arr[i++].fwh = pr->send_mr.handle; in ehea_update_firmware_handles()
204 arr[i++].fwh = pr->recv_mr.handle; in ehea_update_firmware_handles()
380 static void ehea_refill_rq1(struct ehea_port_res *pr, int index, int nr_of_wqes) in ehea_refill_rq1() argument
382 struct sk_buff **skb_arr_rq1 = pr->rq1_skba.arr; in ehea_refill_rq1()
383 struct net_device *dev = pr->port->netdev; in ehea_refill_rq1()
[all …]
/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 …]
/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 = device_create_managed_software_node(&pdev->dev, pr, NULL); in ipmi_platform_add()
/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 …]
/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()
/drivers/staging/media/av7110/
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()
/drivers/of/
Ddynamic.c79 struct of_reconfig_data *pr = p; in of_reconfig_notify() local
85 pr->dn); in of_reconfig_notify()
91 pr->dn, pr->prop->name); in of_reconfig_notify()
111 int of_reconfig_get_state_change(unsigned long action, struct of_reconfig_data *pr) in of_reconfig_get_state_change() argument
120 prop = of_find_property(pr->dn, "status", NULL); in of_reconfig_get_state_change()
124 prop = pr->prop; in of_reconfig_get_state_change()
127 prop = pr->prop; in of_reconfig_get_state_change()
128 old_prop = pr->old_prop; in of_reconfig_get_state_change()
192 struct of_reconfig_data pr; in of_property_notify() local
198 pr.dn = np; in of_property_notify()
[all …]
/drivers/net/can/usb/peak_usb/
Dpcan_usb_pro.c110 u8 *pr = pcan_msg_init(pm, buffer_addr, buffer_size); in pcan_msg_init_empty() local
112 if (pr) { in pcan_msg_init_empty()
116 return pr; in pcan_msg_init_empty()
244 union pcan_usb_pro_rec *pr; in pcan_usb_pro_wait_rsp() local
276 pr = (union pcan_usb_pro_rec *)pc; in pcan_usb_pro_wait_rsp()
277 rec_len = pcan_usb_pro_sizeof_rec[pr->data_type]; in pcan_usb_pro_wait_rsp()
287 if (pr->data_type != req_data_type) in pcan_usb_pro_wait_rsp()
290 pr->data_type); in pcan_usb_pro_wait_rsp()
294 (pr->bus_act.channel != req_channel)) in pcan_usb_pro_wait_rsp()
297 req_data_type, pr->bus_act.channel); in pcan_usb_pro_wait_rsp()
[all …]
/drivers/pinctrl/meson/
Dpinctrl-meson.h144 #define BANK_DS(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib, \ argument
154 [REG_PULL] = { pr, pb }, \
162 #define BANK(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib) \ argument
163 BANK_DS(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib, 0, 0)
/drivers/cpufreq/
Dlonghaul.c70 static struct acpi_processor *pr; variable
287 || ((pr != NULL) && pr->flags.bm_control))) { in longhaul_setstate()
301 } else if ((pr != NULL) && pr->flags.bm_control) { in longhaul_setstate()
337 } else if ((pr != NULL) && pr->flags.bm_control) { in longhaul_setstate()
861 NULL, (void *)&pr); in longhaul_cpu_init()
864 if (pr != NULL && longhaul_version == TYPE_POWERSAVER) { in longhaul_cpu_init()
865 cx = &pr->power.states[ACPI_STATE_C3]; in longhaul_cpu_init()
879 && ((pr == NULL) || !(pr->flags.bm_control))) { in longhaul_cpu_init()
Dpcc-cpufreq.c254 struct acpi_processor *pr; in pcc_get_offset() local
257 pr = per_cpu(processors, cpu); in pcc_get_offset()
260 if (!pr) in pcc_get_offset()
263 status = acpi_evaluate_object(pr->handle, "PCCP", NULL, &buffer); in pcc_get_offset()
/drivers/fpga/
DMakefile22 obj-$(CONFIG_ALTERA_PR_IP_CORE) += altera-pr-ip-core.o
23 obj-$(CONFIG_ALTERA_PR_IP_CORE_PLAT) += altera-pr-ip-core-plat.o
29 obj-$(CONFIG_XILINX_PR_DECOUPLER) += xilinx-pr-decoupler.o
43 dfl-fme-objs := dfl-fme-main.o dfl-fme-pr.o dfl-fme-error.o
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_buffers.c188 struct mlxsw_sp_sb_pr *pr; in mlxsw_sp_sb_pr_write() local
199 pr = mlxsw_sp_sb_pr_get(mlxsw_sp, pool_index); in mlxsw_sp_sb_pr_write()
200 pr->mode = mode; in mlxsw_sp_sb_pr_write()
201 pr->size = size; in mlxsw_sp_sb_pr_write()
917 struct mlxsw_sp_sb_pr *pr = mlxsw_sp_sb_pr_get(mlxsw_sp, pool_index); in mlxsw_sp_sb_pool_is_static() local
919 return pr->mode == MLXSW_REG_SBPR_MODE_STATIC; in mlxsw_sp_sb_pool_is_static()
1334 struct mlxsw_sp_sb_pr *pr; in mlxsw_sp_sb_pool_get() local
1337 pr = mlxsw_sp_sb_pr_get(mlxsw_sp, pool_index); in mlxsw_sp_sb_pool_get()
1339 pool_info->size = mlxsw_sp_cells_bytes(mlxsw_sp, pr->size); in mlxsw_sp_sb_pool_get()
1340 pool_info->threshold_type = (enum devlink_sb_threshold_type) pr->mode; in mlxsw_sp_sb_pool_get()
[all …]
/drivers/usb/storage/
Dusual-tables.c30 #define UNUSUAL_VENDOR_INTF(id_vendor, cl, sc, pr, \ argument
39 .bInterfaceProtocol = (pr), \
/drivers/xen/
Dxen-acpi-processor.c551 struct acpi_processor *pr; in xen_acpi_processor_init() local
554 pr = per_cpu(processors, i); in xen_acpi_processor_init()
556 if (!pr) in xen_acpi_processor_init()
559 pr->performance = perf; in xen_acpi_processor_init()
560 rc = acpi_processor_get_performance_info(pr); in xen_acpi_processor_init()
/drivers/usb/renesas_usbhs/
Dpipe.h62 #define usbhs_priv_to_pipeinfo(pr) (&(pr)->pipe_info) argument
/drivers/staging/most/i2c/
Di2c.c69 unsigned int delay, pr; in configure_channel() local
100 pr = MSEC_PER_SEC / jiffies_to_msecs(dev->rx.delay); in configure_channel()
101 pr_info("polling rate is %u Hz\n", pr); in configure_channel()
/drivers/hwtracing/coresight/
Dcoresight-platform.c765 struct acpi_processor *pr; in acpi_handle_to_logical_cpuid() local
768 pr = per_cpu(processors, i); in acpi_handle_to_logical_cpuid()
769 if (pr && pr->handle == handle) in acpi_handle_to_logical_cpuid()

123