Lines Matching defs:p
65 static struct kfd_signal_page *allocate_signal_page(struct kfd_process *p) in allocate_signal_page()
95 static int allocate_event_notification_slot(struct kfd_process *p, in allocate_event_notification_slot()
126 page_slots(p->signal_page)[id] = UNSIGNALED_EVENT_SLOT; in allocate_event_notification_slot() local
135 static struct kfd_event *lookup_event_by_id(struct kfd_process *p, uint32_t id) in lookup_event_by_id()
158 struct kfd_process *p, uint32_t id, uint32_t bits) in lookup_signaled_event_by_partial_id()
169 if (page_slots(p->signal_page)[id] == UNSIGNALED_EVENT_SLOT) in lookup_signaled_event_by_partial_id() local
179 if (page_slots(p->signal_page)[id] == UNSIGNALED_EVENT_SLOT) in lookup_signaled_event_by_partial_id() local
188 static int create_signal_event(struct file *devkfd, struct kfd_process *p, in create_signal_event()
218 static int create_other_event(struct kfd_process *p, struct kfd_event *ev, const int *restore_id) in create_other_event()
242 int kfd_event_init_process(struct kfd_process *p) in kfd_event_init_process()
262 static void destroy_event(struct kfd_process *p, struct kfd_event *ev) in destroy_event()
281 static void destroy_events(struct kfd_process *p) in destroy_events()
297 static void shutdown_signal_page(struct kfd_process *p) in shutdown_signal_page()
309 void kfd_event_free_process(struct kfd_process *p) in kfd_event_free_process()
326 static int kfd_event_page_set(struct kfd_process *p, void *kernel_address, in kfd_event_page_set()
350 int kfd_kmap_event_page(struct kfd_process *p, uint64_t event_page_offset) in kfd_kmap_event_page()
396 int kfd_event_create(struct file *devkfd, struct kfd_process *p, in kfd_event_create()
446 struct kfd_process *p, in kfd_criu_restore_event()
522 int kfd_criu_checkpoint_events(struct kfd_process *p, in kfd_criu_checkpoint_events()
593 int kfd_get_num_events(struct kfd_process *p) in kfd_get_num_events()
606 int kfd_event_destroy(struct kfd_process *p, uint32_t event_id) in kfd_event_destroy()
647 int kfd_set_event(struct kfd_process *p, uint32_t event_id) in kfd_set_event()
678 int kfd_reset_event(struct kfd_process *p, uint32_t event_id) in kfd_reset_event()
704 static void acknowledge_signal(struct kfd_process *p, struct kfd_event *ev) in acknowledge_signal()
709 static void set_event_from_interrupt(struct kfd_process *p, in set_event_from_interrupt()
730 struct kfd_process *p = kfd_lookup_process_by_pasid(pasid); in kfd_signal_event_interrupt() local
810 static int init_event_waiter(struct kfd_process *p, in init_event_waiter()
950 int kfd_wait_on_events(struct kfd_process *p, in kfd_wait_on_events()
1066 int kfd_event_mmap(struct kfd_process *p, struct vm_area_struct *vma) in kfd_event_mmap()
1114 static void lookup_events_by_type_and_signal(struct kfd_process *p, in lookup_events_by_type_and_signal()
1171 struct kfd_process *p = kfd_lookup_process_by_pasid(pasid); in kfd_signal_hw_exception_event() local
1186 struct kfd_process *p = kfd_lookup_process_by_pasid(pasid); in kfd_signal_vm_fault_event() local
1239 struct kfd_process *p; in kfd_signal_reset_event() local
1314 struct kfd_process *p = kfd_lookup_process_by_pasid(pasid); in kfd_signal_poison_consumed_event() local