Lines Matching full:long
16 static inline long poll_pending(void) in poll_pending()
21 static inline long cede_processor(void) in cede_processor()
30 static inline long vpa_call(unsigned long flags, unsigned long cpu, in vpa_call()
31 unsigned long vpa) in vpa_call()
38 static inline long unregister_vpa(unsigned long cpu) in unregister_vpa()
43 static inline long register_vpa(unsigned long cpu, unsigned long vpa) in register_vpa()
48 static inline long unregister_slb_shadow(unsigned long cpu) in unregister_slb_shadow()
53 static inline long register_slb_shadow(unsigned long cpu, unsigned long vpa) in register_slb_shadow()
58 static inline long unregister_dtl(unsigned long cpu) in unregister_dtl()
63 static inline long register_dtl(unsigned long cpu, unsigned long vpa) in register_dtl()
70 static inline long plpar_pte_enter(unsigned long flags, in plpar_pte_enter()
71 unsigned long hpte_group, unsigned long hpte_v, in plpar_pte_enter()
72 unsigned long hpte_r, unsigned long *slot) in plpar_pte_enter()
74 long rc; in plpar_pte_enter()
75 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_enter()
84 static inline long plpar_pte_remove(unsigned long flags, unsigned long ptex, in plpar_pte_remove()
85 unsigned long avpn, unsigned long *old_pteh_ret, in plpar_pte_remove()
86 unsigned long *old_ptel_ret) in plpar_pte_remove()
88 long rc; in plpar_pte_remove()
89 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_remove()
100 static inline long plpar_pte_remove_raw(unsigned long flags, unsigned long ptex, in plpar_pte_remove_raw()
101 unsigned long avpn, unsigned long *old_pteh_ret, in plpar_pte_remove_raw()
102 unsigned long *old_ptel_ret) in plpar_pte_remove_raw()
104 long rc; in plpar_pte_remove_raw()
105 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_remove_raw()
115 static inline long plpar_pte_read(unsigned long flags, unsigned long ptex, in plpar_pte_read()
116 unsigned long *old_pteh_ret, unsigned long *old_ptel_ret) in plpar_pte_read()
118 long rc; in plpar_pte_read()
119 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_read()
130 static inline long plpar_pte_read_raw(unsigned long flags, unsigned long ptex, in plpar_pte_read_raw()
131 unsigned long *old_pteh_ret, unsigned long *old_ptel_ret) in plpar_pte_read_raw()
133 long rc; in plpar_pte_read_raw()
134 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_read_raw()
145 * ptes must be 8*sizeof(unsigned long)
147 static inline long plpar_pte_read_4(unsigned long flags, unsigned long ptex, in plpar_pte_read_4()
148 unsigned long *ptes) in plpar_pte_read_4()
151 long rc; in plpar_pte_read_4()
152 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in plpar_pte_read_4()
156 memcpy(ptes, retbuf, 8*sizeof(unsigned long)); in plpar_pte_read_4()
163 * ptes must be 8*sizeof(unsigned long)
165 static inline long plpar_pte_read_4_raw(unsigned long flags, unsigned long ptex, in plpar_pte_read_4_raw()
166 unsigned long *ptes) in plpar_pte_read_4_raw()
169 long rc; in plpar_pte_read_4_raw()
170 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in plpar_pte_read_4_raw()
174 memcpy(ptes, retbuf, 8*sizeof(unsigned long)); in plpar_pte_read_4_raw()
179 static inline long plpar_pte_protect(unsigned long flags, unsigned long ptex, in plpar_pte_protect()
180 unsigned long avpn) in plpar_pte_protect()
185 static inline long plpar_resize_hpt_prepare(unsigned long flags, in plpar_resize_hpt_prepare()
186 unsigned long shift) in plpar_resize_hpt_prepare()
191 static inline long plpar_resize_hpt_commit(unsigned long flags, in plpar_resize_hpt_commit()
192 unsigned long shift) in plpar_resize_hpt_commit()
197 static inline long plpar_tce_get(unsigned long liobn, unsigned long ioba, in plpar_tce_get()
198 unsigned long *tce_ret) in plpar_tce_get()
200 long rc; in plpar_tce_get()
201 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_tce_get()
210 static inline long plpar_tce_put(unsigned long liobn, unsigned long ioba, in plpar_tce_put()
211 unsigned long tceval) in plpar_tce_put()
216 static inline long plpar_tce_put_indirect(unsigned long liobn, in plpar_tce_put_indirect()
217 unsigned long ioba, unsigned long page, unsigned long count) in plpar_tce_put_indirect()
222 static inline long plpar_tce_stuff(unsigned long liobn, unsigned long ioba, in plpar_tce_stuff()
223 unsigned long tceval, unsigned long count) in plpar_tce_stuff()
229 static inline long plpar_set_mode(unsigned long mflags, unsigned long resource, in plpar_set_mode()
230 unsigned long value1, unsigned long value2) in plpar_set_mode()
242 static inline long enable_reloc_on_exceptions(void) in enable_reloc_on_exceptions()
255 static inline long disable_reloc_on_exceptions(void) { in disable_reloc_on_exceptions()
266 static inline long enable_big_endian_exceptions(void) in enable_big_endian_exceptions()
279 static inline long enable_little_endian_exceptions(void) in enable_little_endian_exceptions()
285 static inline long plpar_set_ciabr(unsigned long ciabr) in plpar_set_ciabr()
290 static inline long plpar_set_watchpoint0(unsigned long dawr0, unsigned long dawrx0) in plpar_set_watchpoint0()
295 static inline long plpar_set_watchpoint1(unsigned long dawr1, unsigned long dawrx1) in plpar_set_watchpoint1()
300 static inline long plpar_signal_sys_reset(long cpu) in plpar_signal_sys_reset()
305 static inline long plpar_get_cpu_characteristics(struct h_cpu_char_result *p) in plpar_get_cpu_characteristics()
307 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_get_cpu_characteristics()
308 long rc; in plpar_get_cpu_characteristics()
319 static inline long plpar_guest_create(unsigned long flags, unsigned long *guest_id) in plpar_guest_create()
321 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_guest_create()
322 unsigned long token; in plpar_guest_create()
323 long rc; in plpar_guest_create()
347 static inline long plpar_guest_create_vcpu(unsigned long flags, in plpar_guest_create_vcpu()
348 unsigned long guest_id, in plpar_guest_create_vcpu()
349 unsigned long vcpu_id) in plpar_guest_create_vcpu()
351 long rc; in plpar_guest_create_vcpu()
369 static inline long plpar_guest_set_state(unsigned long flags, in plpar_guest_set_state()
370 unsigned long guest_id, in plpar_guest_set_state()
371 unsigned long vcpu_id, in plpar_guest_set_state()
372 unsigned long data_buffer, in plpar_guest_set_state()
373 unsigned long data_size, in plpar_guest_set_state()
374 unsigned long *failed_index) in plpar_guest_set_state()
376 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_guest_set_state()
377 long rc; in plpar_guest_set_state()
406 static inline long plpar_guest_get_state(unsigned long flags, in plpar_guest_get_state()
407 unsigned long guest_id, in plpar_guest_get_state()
408 unsigned long vcpu_id, in plpar_guest_get_state()
409 unsigned long data_buffer, in plpar_guest_get_state()
410 unsigned long data_size, in plpar_guest_get_state()
411 unsigned long *failed_index) in plpar_guest_get_state()
413 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_guest_get_state()
414 long rc; in plpar_guest_get_state()
443 static inline long plpar_guest_run_vcpu(unsigned long flags, unsigned long guest_id, in plpar_guest_run_vcpu()
444 unsigned long vcpu_id, int *trap, in plpar_guest_run_vcpu()
445 unsigned long *failed_index) in plpar_guest_run_vcpu()
447 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_guest_run_vcpu()
448 long rc; in plpar_guest_run_vcpu()
463 static inline long plpar_guest_delete(unsigned long flags, u64 guest_id) in plpar_guest_delete()
465 long rc; in plpar_guest_delete()
482 static inline long plpar_guest_set_capabilities(unsigned long flags, in plpar_guest_set_capabilities()
483 unsigned long capabilities) in plpar_guest_set_capabilities()
485 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_guest_set_capabilities()
486 long rc; in plpar_guest_set_capabilities()
502 static inline long plpar_guest_get_capabilities(unsigned long flags, in plpar_guest_get_capabilities()
503 unsigned long *capabilities) in plpar_guest_get_capabilities()
505 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_guest_get_capabilities()
506 long rc; in plpar_guest_get_capabilities()
537 static inline long pseries_rpt_invalidate(u64 pid, u64 target, u64 type, in pseries_rpt_invalidate()
540 long rc; in pseries_rpt_invalidate()
541 unsigned long all; in pseries_rpt_invalidate()
572 static inline long plpar_set_ciabr(unsigned long ciabr) in plpar_set_ciabr()
577 static inline long plpar_pte_read_4(unsigned long flags, unsigned long ptex, in plpar_pte_read_4()
578 unsigned long *ptes) in plpar_pte_read_4()
583 static inline long pseries_rpt_invalidate(u64 pid, u64 target, u64 type, in pseries_rpt_invalidate()
589 static inline long plpar_guest_create_vcpu(unsigned long flags, in plpar_guest_create_vcpu()
590 unsigned long guest_id, in plpar_guest_create_vcpu()
591 unsigned long vcpu_id) in plpar_guest_create_vcpu()
596 static inline long plpar_guest_get_state(unsigned long flags, in plpar_guest_get_state()
597 unsigned long guest_id, in plpar_guest_get_state()
598 unsigned long vcpu_id, in plpar_guest_get_state()
599 unsigned long data_buffer, in plpar_guest_get_state()
600 unsigned long data_size, in plpar_guest_get_state()
601 unsigned long *failed_index) in plpar_guest_get_state()
606 static inline long plpar_guest_set_state(unsigned long flags, in plpar_guest_set_state()
607 unsigned long guest_id, in plpar_guest_set_state()
608 unsigned long vcpu_id, in plpar_guest_set_state()
609 unsigned long data_buffer, in plpar_guest_set_state()
610 unsigned long data_size, in plpar_guest_set_state()
611 unsigned long *failed_index) in plpar_guest_set_state()
616 static inline long plpar_guest_run_vcpu(unsigned long flags, unsigned long guest_id, in plpar_guest_run_vcpu()
617 unsigned long vcpu_id, int *trap, in plpar_guest_run_vcpu()
618 unsigned long *failed_index) in plpar_guest_run_vcpu()
623 static inline long plpar_guest_create(unsigned long flags, unsigned long *guest_id) in plpar_guest_create()
628 static inline long plpar_guest_delete(unsigned long flags, u64 guest_id) in plpar_guest_delete()
633 static inline long plpar_guest_get_capabilities(unsigned long flags, in plpar_guest_get_capabilities()
634 unsigned long *capabilities) in plpar_guest_get_capabilities()
639 static inline long plpar_guest_set_capabilities(unsigned long flags, in plpar_guest_set_capabilities()
640 unsigned long capabilities) in plpar_guest_set_capabilities()