Home
last modified time | relevance | path

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

123

/drivers/acpi/
Dprocessor_throttling.c60 struct acpi_processor *pr; member
68 static int acpi_processor_get_throttling(struct acpi_processor *pr);
69 int acpi_processor_set_throttling(struct acpi_processor *pr,
78 struct acpi_processor *pr, *match_pr; in acpi_processor_update_tsd_coord() local
90 pr = per_cpu(processors, i); in acpi_processor_update_tsd_coord()
91 if (!pr) in acpi_processor_update_tsd_coord()
95 pthrottling = &(pr->throttling); in acpi_processor_update_tsd_coord()
111 pr = per_cpu(processors, i); in acpi_processor_update_tsd_coord()
112 if (!pr) in acpi_processor_update_tsd_coord()
117 pthrottling = &pr->throttling; in acpi_processor_update_tsd_coord()
[all …]
Dacpi_processor.c167 static int acpi_processor_hotadd_init(struct acpi_processor *pr) in acpi_processor_hotadd_init() argument
173 if (pr->apic_id == -1) in acpi_processor_hotadd_init()
176 status = acpi_evaluate_integer(pr->handle, "_STA", NULL, &sta); in acpi_processor_hotadd_init()
183 ret = acpi_map_lsapic(pr->handle, pr->apic_id, &pr->id); in acpi_processor_hotadd_init()
187 ret = arch_register_cpu(pr->id); in acpi_processor_hotadd_init()
189 acpi_unmap_lsapic(pr->id); in acpi_processor_hotadd_init()
198 pr_info("CPU%d has been hot-added\n", pr->id); in acpi_processor_hotadd_init()
199 pr->flags.need_hotplug_init = 1; in acpi_processor_hotadd_init()
207 static inline int acpi_processor_hotadd_init(struct acpi_processor *pr) in acpi_processor_hotadd_init() argument
217 struct acpi_processor *pr = acpi_driver_data(device); in acpi_processor_get_info() local
[all …]
Dprocessor_idle.c134 static void lapic_timer_check_state(int state, struct acpi_processor *pr, in lapic_timer_check_state() argument
137 struct acpi_processor_power *pwr = &pr->power; in lapic_timer_check_state()
140 if (cpu_has(&cpu_data(pr->id), X86_FEATURE_ARAT)) in lapic_timer_check_state()
154 pr->power.timer_broadcast_on_state = state; in lapic_timer_check_state()
159 struct acpi_processor *pr = (struct acpi_processor *) arg; in __lapic_timer_propagate_broadcast() local
162 reason = pr->power.timer_broadcast_on_state < INT_MAX ? in __lapic_timer_propagate_broadcast()
165 clockevents_notify(reason, &pr->id); in __lapic_timer_propagate_broadcast()
168 static void lapic_timer_propagate_broadcast(struct acpi_processor *pr) in lapic_timer_propagate_broadcast() argument
170 smp_call_function_single(pr->id, __lapic_timer_propagate_broadcast, in lapic_timer_propagate_broadcast()
171 (void *)pr, 1); in lapic_timer_propagate_broadcast()
[all …]
Dprocessor_driver.c76 struct acpi_processor *pr; in acpi_processor_notify() local
82 pr = acpi_driver_data(device); in acpi_processor_notify()
83 if (!pr) in acpi_processor_notify()
88 saved = pr->performance_platform_limit; in acpi_processor_notify()
89 acpi_processor_ppc_has_changed(pr, 1); in acpi_processor_notify()
90 if (saved == pr->performance_platform_limit) in acpi_processor_notify()
94 pr->performance_platform_limit); in acpi_processor_notify()
97 acpi_processor_cst_has_changed(pr); in acpi_processor_notify()
102 acpi_processor_tstate_has_changed(pr); in acpi_processor_notify()
121 struct acpi_processor *pr = per_cpu(processors, cpu); in acpi_cpu_soft_notify() local
[all …]
Dprocessor_perflib.c79 struct acpi_processor *pr; in acpi_processor_ppc_notifier() local
95 pr = per_cpu(processors, policy->cpu); in acpi_processor_ppc_notifier()
96 if (!pr || !pr->performance) in acpi_processor_ppc_notifier()
99 ppc = (unsigned int)pr->performance_platform_limit; in acpi_processor_ppc_notifier()
101 if (ppc >= pr->performance->state_count) in acpi_processor_ppc_notifier()
105 pr->performance->states[ppc]. in acpi_processor_ppc_notifier()
118 static int acpi_processor_get_platform_limit(struct acpi_processor *pr) in acpi_processor_get_platform_limit() argument
124 if (!pr) in acpi_processor_get_platform_limit()
131 status = acpi_evaluate_integer(pr->handle, "_PPC", NULL, &ppc); in acpi_processor_get_platform_limit()
141 pr_debug("CPU %d: _PPC is %d - frequency %s limited\n", pr->id, in acpi_processor_get_platform_limit()
[all …]
Dprocessor_thermal.c187 static int acpi_processor_max_state(struct acpi_processor *pr) in acpi_processor_max_state() argument
195 max_state += cpufreq_get_max_state(pr->id); in acpi_processor_max_state()
196 if (pr->flags.throttling) in acpi_processor_max_state()
197 max_state += (pr->throttling.state_count -1); in acpi_processor_max_state()
206 struct acpi_processor *pr; in processor_get_max_state() local
211 pr = acpi_driver_data(device); in processor_get_max_state()
212 if (!pr) in processor_get_max_state()
215 *state = acpi_processor_max_state(pr); in processor_get_max_state()
224 struct acpi_processor *pr; in processor_get_cur_state() local
229 pr = acpi_driver_data(device); in processor_get_cur_state()
[all …]
/drivers/xen/
Dxen-acpi-cpuhotplug.c37 static acpi_status xen_acpi_cpu_hotadd(struct acpi_processor *pr);
49 struct acpi_processor *pr; in xen_acpi_processor_enable() local
51 pr = acpi_driver_data(device); in xen_acpi_processor_enable()
52 if (!pr) { in xen_acpi_processor_enable()
59 status = acpi_evaluate_object(pr->handle, NULL, NULL, &buffer); in xen_acpi_processor_enable()
65 pr->acpi_id = object.processor.proc_id; in xen_acpi_processor_enable()
68 status = acpi_evaluate_integer(pr->handle, METHOD_NAME__UID, in xen_acpi_processor_enable()
75 pr->acpi_id = value; in xen_acpi_processor_enable()
78 pr->id = xen_pcpu_id(pr->acpi_id); in xen_acpi_processor_enable()
80 if ((int)pr->id < 0) in xen_acpi_processor_enable()
[all …]
/drivers/net/ethernet/ibm/ehea/
Dehea_main.c204 struct ehea_port_res *pr = &port->port_res[l]; in ehea_update_firmware_handles() local
207 arr[i++].fwh = pr->qp->fw_handle; in ehea_update_firmware_handles()
209 arr[i++].fwh = pr->send_cq->fw_handle; in ehea_update_firmware_handles()
211 arr[i++].fwh = pr->recv_cq->fw_handle; in ehea_update_firmware_handles()
213 arr[i++].fwh = pr->eq->fw_handle; in ehea_update_firmware_handles()
215 arr[i++].fwh = pr->send_mr.handle; in ehea_update_firmware_handles()
217 arr[i++].fwh = pr->recv_mr.handle; in ehea_update_firmware_handles()
394 static void ehea_refill_rq1(struct ehea_port_res *pr, int index, int nr_of_wqes) in ehea_refill_rq1() argument
396 struct sk_buff **skb_arr_rq1 = pr->rq1_skba.arr; in ehea_refill_rq1()
397 struct net_device *dev = pr->port->netdev; in ehea_refill_rq1()
[all …]
/drivers/media/dvb-core/
Ddvb_filter.c70 static int read_picture_header(u8 *headr, struct mpg_picture *pic, int field, int pr)
74 if (pr) printk( "Pic header: ");
77 if (pr) printk( " temp ref: 0x%04x", pic->temporal_reference[field]);
81 if (pr) {
99 if (pr) printk( " vbv delay: 0x%04x", pic->vinfo.vbv_delay);
107 if (pr) printk( " pic head param: 0x%x",
116 static int read_gop_header(u8 *headr, struct mpg_picture *pic, int pr)
118 if (pr) printk("GOP header: ");
123 if (pr) printk(" time: %d:%d.%d ", (headr[0]>>2)& 0x1F,
132 if (pr) printk("closed: %d", pic->closed_gop);
[all …]
/drivers/isdn/hisax/
Dl3_1tr6.c44 l3_1tr6_release_req(struct l3_process *pc, u_char pr, void *arg) in l3_1tr6_release_req() argument
53 l3_1tr6_invalid(struct l3_process *pc, u_char pr, void *arg) in l3_1tr6_invalid() argument
71 l3_1tr6_setup_req(struct l3_process *pc, u_char pr, void *arg) in l3_1tr6_setup_req() argument
160 l3_1tr6_setup(struct l3_process *pc, u_char pr, void *arg) in l3_1tr6_setup() argument
227 l3_1tr6_setup_ack(struct l3_process *pc, u_char pr, void *arg) in l3_1tr6_setup_ack() argument
255 l3_1tr6_call_sent(struct l3_process *pc, u_char pr, void *arg) in l3_1tr6_call_sent() argument
287 l3_1tr6_alert(struct l3_process *pc, u_char pr, void *arg) in l3_1tr6_alert() argument
298 l3_1tr6_info(struct l3_process *pc, u_char pr, void *arg) in l3_1tr6_info() argument
327 l3_1tr6_info_s2(struct l3_process *pc, u_char pr, void *arg) in l3_1tr6_info_s2() argument
335 l3_1tr6_connect(struct l3_process *pc, u_char pr, void *arg) in l3_1tr6_connect() argument
[all …]
Dl3ni1.c483 l3ni1_status_send(struct l3_process *pc, u_char pr, void *arg) in l3ni1_status_send() argument
509 l3ni1_msg_without_setup(struct l3_process *pc, u_char pr, void *arg) in l3ni1_msg_without_setup() argument
902 l3ni1_release_req(struct l3_process *pc, u_char pr, void *arg) in l3ni1_release_req() argument
914 l3ni1_release_cmpl(struct l3_process *pc, u_char pr, void *arg) in l3ni1_release_cmpl() argument
1170 l3ni1_setup_req(struct l3_process *pc, u_char pr, in l3ni1_setup_req() argument
1285 l3ni1_call_proc(struct l3_process *pc, u_char pr, void *arg) in l3ni1_call_proc() argument
1295 l3ni1_status_send(pc, pr, NULL); in l3ni1_call_proc()
1306 l3ni1_status_send(pc, pr, NULL); in l3ni1_call_proc()
1324 l3ni1_setup_ack(struct l3_process *pc, u_char pr, void *arg) in l3ni1_setup_ack() argument
1334 l3ni1_status_send(pc, pr, NULL); in l3ni1_setup_ack()
[all …]
Dl3dss1.c533 l3dss1_status_send(struct l3_process *pc, u_char pr, void *arg) in l3dss1_status_send() argument
559 l3dss1_msg_without_setup(struct l3_process *pc, u_char pr, void *arg) in l3dss1_msg_without_setup() argument
952 l3dss1_release_req(struct l3_process *pc, u_char pr, void *arg) in l3dss1_release_req() argument
964 l3dss1_release_cmpl(struct l3_process *pc, u_char pr, void *arg) in l3dss1_release_cmpl() argument
1220 l3dss1_setup_req(struct l3_process *pc, u_char pr, in l3dss1_setup_req() argument
1431 l3dss1_call_proc(struct l3_process *pc, u_char pr, void *arg) in l3dss1_call_proc() argument
1441 l3dss1_status_send(pc, pr, NULL); in l3dss1_call_proc()
1452 l3dss1_status_send(pc, pr, NULL); in l3dss1_call_proc()
1470 l3dss1_setup_ack(struct l3_process *pc, u_char pr, void *arg) in l3dss1_setup_ack() argument
1480 l3dss1_status_send(pc, pr, NULL); in l3dss1_setup_ack()
[all …]
Dconfig.c1574 static void hisax_d_l1l2(struct hisax_if *ifc, int pr, void *arg);
1575 static void hisax_b_l1l2(struct hisax_if *ifc, int pr, void *arg);
1576 static void hisax_d_l2l1(struct PStack *st, int pr, void *arg);
1577 static void hisax_b_l2l1(struct PStack *st, int pr, void *arg);
1656 int pr; in hisax_bh() local
1664 pr = PH_ACTIVATE | INDICATION; in hisax_bh()
1666 pr = PH_DEACTIVATE | INDICATION; in hisax_bh()
1668 st->l1.l1l2(st, pr, NULL); in hisax_bh()
1679 static inline void D_L2L1(struct hisax_d_if *d_if, int pr, void *arg) in D_L2L1() argument
1682 ifc->l2l1(ifc, pr, arg); in D_L2L1()
[all …]
Disdnl1.h28 void l1_msg(struct IsdnCardState *cs, int pr, void *arg);
29 void l1_msg_b(struct PStack *st, int pr, void *arg);
Disdnl3.c218 no_l3_proto(struct PStack *st, int pr, void *arg) in no_l3_proto() argument
316 l3ml3p(struct PStack *st, int pr) in l3ml3p() argument
324 st->l3.l3ml3(st, pr, p); in l3ml3p()
382 isdnl3_trans(struct PStack *st, int pr, void *arg) { in isdnl3_trans() argument
383 st->l3.l3l2(st, pr, arg); in isdnl3_trans()
548 l3_msg(struct PStack *st, int pr, void *arg) in l3_msg() argument
550 switch (pr) { in l3_msg()
553 st->l3.l3l2(st, pr, arg); in l3_msg()
Dlmgr.c29 hisax_manager(struct PStack *st, int pr, void *arg) in hisax_manager() argument
33 switch (pr) { in hisax_manager()
Dhisax_if.h40 void (*l1l2)(struct hisax_if *, int pr, void *arg);
41 void (*l2l1)(struct hisax_if *, int pr, void *arg);
Dst5481_b.c20 static inline void B_L1L2(struct st5481_bcs *bcs, int pr, void *arg) in B_L1L2() argument
24 ifc->l1l2(ifc, pr, arg); in B_L1L2()
353 void st5481_b_l2l1(struct hisax_if *ifc, int pr, void *arg) in st5481_b_l2l1() argument
361 switch (pr) { in st5481_b_l2l1()
378 WARNING("pr %#x\n", pr); in st5481_b_l2l1()
Dtei.c38 void tei_handler(struct PStack *st, u_char pr, struct sk_buff *skb);
310 tei_l1l2(struct PStack *st, int pr, void *arg) in tei_l1l2() argument
320 if (pr == (PH_DATA | INDICATION)) { in tei_l1l2()
360 "tei handler wrong pr %x\n", pr); in tei_l1l2()
366 tei_l2tei(struct PStack *st, int pr, void *arg) in tei_l2tei() argument
371 if (pr == (MDL_ASSIGN | INDICATION)) { in tei_l2tei()
381 switch (pr) { in tei_l2tei()
Dcallc.c924 dchan_l3l4(struct PStack *st, int pr, void *arg) in dchan_l3l4() argument
933 if (pr == (CC_SETUP | INDICATION)) { in dchan_l3l4()
947 switch (pr) { in dchan_l3l4()
1003 chanp->chan, pr); in dchan_l3l4()
1009 dummy_pstack(struct PStack *st, int pr, void *arg) { in dummy_pstack() argument
1010 printk(KERN_WARNING"call to dummy_pstack pr=%04x arg %lx\n", pr, (long)arg); in dummy_pstack()
1184 lldata_handler(struct PStack *st, int pr, void *arg) in lldata_handler() argument
1189 switch (pr) { in lldata_handler()
1210 pr); in lldata_handler()
1216 lltrans_handler(struct PStack *st, int pr, void *arg) in lltrans_handler() argument
[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/block/paride/
Dparide.c209 int paride_register(PIP * pr) in paride_register() argument
214 if (protocols[k] && !strcmp(pr->name, protocols[k]->name)) { in paride_register()
216 pr->name); in paride_register()
226 protocols[k] = pr; in paride_register()
227 pr->index = k; in paride_register()
228 printk("paride: %s registered as protocol %d\n", pr->name, k); in paride_register()
234 void paride_unregister(PIP * pr) in paride_unregister() argument
236 if (!pr) in paride_unregister()
238 if (protocols[pr->index] != pr) { in paride_unregister()
239 printk("paride: %s not registered\n", pr->name); in paride_unregister()
[all …]
/drivers/net/can/usb/peak_usb/
Dpcan_usb_pro.c126 u8 *pr = pcan_msg_init(pm, buffer_addr, buffer_size); in pcan_msg_init_empty() local
128 if (pr) { in pcan_msg_init_empty()
132 return pr; in pcan_msg_init_empty()
258 union pcan_usb_pro_rec *pr; in pcan_usb_pro_wait_rsp() local
290 pr = (union pcan_usb_pro_rec *)pc; in pcan_usb_pro_wait_rsp()
291 rec_len = pcan_usb_pro_sizeof_rec[pr->data_type]; in pcan_usb_pro_wait_rsp()
301 if (pr->data_type != req_data_type) in pcan_usb_pro_wait_rsp()
304 pr->data_type); in pcan_usb_pro_wait_rsp()
308 (pr->bus_act.channel != req_channel)) in pcan_usb_pro_wait_rsp()
311 req_data_type, pr->bus_act.channel); in pcan_usb_pro_wait_rsp()
[all …]
/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()
873 NULL, (void *)&pr); in longhaul_cpu_init()
876 if (pr != NULL && longhaul_version == TYPE_POWERSAVER) { in longhaul_cpu_init()
877 cx = &pr->power.states[ACPI_STATE_C3]; in longhaul_cpu_init()
891 && ((pr == NULL) || !(pr->flags.bm_control))) { in longhaul_cpu_init()
/drivers/usb/storage/
Dusual-tables.c45 #define UNUSUAL_VENDOR_INTF(id_vendor, cl, sc, pr, \ argument
54 .bInterfaceProtocol = (pr), \

123