| /dflybsd-src/contrib/gcc-4.7/libgomp/ |
| H A D | task.c | 36 gomp_init_task (struct gomp_task *task, struct gomp_task *parent_task, in gomp_init_task() argument 39 task->parent = parent_task; in gomp_init_task() 40 task->icv = *prev_icv; in gomp_init_task() 41 task->kind = GOMP_TASK_IMPLICIT; in gomp_init_task() 42 task->in_taskwait = false; in gomp_init_task() 43 task->in_tied_task = false; in gomp_init_task() 44 task->final_task = false; in gomp_init_task() 45 task->children = NULL; in gomp_init_task() 46 gomp_sem_init (&task->taskwait_sem, 0); in gomp_init_task() 55 struct gomp_task *task = thr->task; in gomp_end_task() local [all …]
|
| H A D | team.c | 55 struct gomp_task *task; member 87 thr->task = data->task; in gomp_thread_start() 97 struct gomp_task *task = thr->task; in gomp_thread_start() local 103 gomp_finish_task (task); in gomp_thread_start() 114 struct gomp_task *task = thr->task; in gomp_thread_start() local 118 gomp_finish_task (task); in gomp_thread_start() 251 if (thr->task != NULL) in gomp_free_thread() 253 struct gomp_task *task = thr->task; in gomp_free_thread() local 255 free (task); in gomp_free_thread() 267 struct gomp_task *task; in gomp_team_start() local [all …]
|
| H A D | libgomp.h | 349 struct gomp_task *task; member 394 struct gomp_task *task = gomp_thread ()->task; in gomp_icv() local 395 if (task) in gomp_icv() 396 return &task->icv; in gomp_icv() 488 gomp_finish_task (struct gomp_task *task) in gomp_finish_task() argument 490 gomp_sem_destroy (&task->taskwait_sem); in gomp_finish_task()
|
| /dflybsd-src/contrib/gcc-8.0/libgomp/ |
| H A D | task.c | 65 gomp_init_task (struct gomp_task *task, struct gomp_task *parent_task, in gomp_init_task() argument 76 task->parent = parent_task; in gomp_init_task() 77 task->icv = *prev_icv; in gomp_init_task() 78 task->kind = GOMP_TASK_IMPLICIT; in gomp_init_task() 79 task->taskwait = NULL; in gomp_init_task() 80 task->in_tied_task = false; in gomp_init_task() 81 task->final_task = false; in gomp_init_task() 82 task->copy_ctors_done = false; in gomp_init_task() 83 task->parent_depends_on = false; in gomp_init_task() 84 priority_queue_init (&task->children_queue); in gomp_init_task() [all …]
|
| H A D | taskloop.c | 152 if (thr->task && thr->task->taskgroup && thr->task->taskgroup->cancelled) in GOMP_taskloop() 162 || (thr->task && thr->task->final_task) in GOMP_taskloop() 168 struct gomp_task task[num_tasks]; in GOMP_taskloop() local 169 struct gomp_task *parent = thr->task; in GOMP_taskloop() 177 gomp_init_task (&task[i], parent, gomp_icv (false)); in GOMP_taskloop() 178 task[i].priority = priority; in GOMP_taskloop() 179 task[i].kind = GOMP_TASK_UNDEFERRED; in GOMP_taskloop() 180 task[i].final_task = (thr->task && thr->task->final_task) in GOMP_taskloop() 182 if (thr->task) in GOMP_taskloop() 184 task[i].in_tied_task = thr->task->in_tied_task; in GOMP_taskloop() [all …]
|
| H A D | team.c | 57 struct gomp_task *task; member 90 thr->task = data->task; in gomp_thread_start() 101 struct gomp_task *task = thr->task; in gomp_thread_start() local 107 gomp_finish_task (task); in gomp_thread_start() 118 struct gomp_task *task = thr->task; in gomp_thread_start() local 122 gomp_finish_task (task); in gomp_thread_start() 135 thr->task = NULL; in gomp_thread_start() 232 thr->task = NULL; in gomp_free_pool_helper() 287 if (thr->task != NULL) in gomp_free_thread() 289 struct gomp_task *task = thr->task; in gomp_free_thread() local [all …]
|
| H A D | priority_queue.h | 239 struct gomp_task *task, in priority_list_insert() argument 245 struct priority_node *node = task_to_priority_node (type, task); in priority_list_insert() 292 struct gomp_task *task, in priority_tree_insert() argument 327 priority_list_insert (type, list, task, priority, pos, in priority_tree_insert() 337 struct gomp_task *task, in priority_queue_insert() argument 344 if (priority_queue_task_in_queue_p (type, head, task)) in priority_queue_insert() 345 gomp_fatal ("Attempt to insert existing task %p", task); in priority_queue_insert() 348 priority_tree_insert (type, head, task, priority, pos, in priority_queue_insert() 352 priority_list_insert (type, &head->l, task, priority, pos, in priority_queue_insert() 459 struct gomp_task *task, in priority_queue_remove() argument [all …]
|
| H A D | priority_queue.c | 41 struct gomp_task *task) in priority_queue_task_in_list_p() argument 46 if (priority_node_to_task (type, p) == task) in priority_queue_task_in_list_p() 59 struct gomp_task *task) in priority_queue_task_in_tree_p() argument 62 = priority_queue_lookup_priority (head, task->priority); in priority_queue_task_in_tree_p() 65 return priority_queue_task_in_list_p (type, list, task); in priority_queue_task_in_tree_p() 74 struct gomp_task *task) in priority_queue_task_in_queue_p() argument 79 return priority_queue_task_in_tree_p (type, head, task); in priority_queue_task_in_queue_p() 81 return priority_queue_task_in_list_p (type, &head->l, task); in priority_queue_task_in_queue_p()
|
| H A D | libgomp.h | 395 struct gomp_task *task; member 501 struct gomp_task *task; member 605 struct gomp_task *task; member 677 struct gomp_task *task = gomp_thread ()->task; in gomp_icv() local 678 if (task) in gomp_icv() 679 return &task->icv; in gomp_icv() 775 gomp_finish_task (struct gomp_task *task) in gomp_finish_task() argument 777 if (__builtin_expect (task->depend_hash != NULL, 0)) in gomp_finish_task() 778 free (task->depend_hash); in gomp_finish_task() 1129 struct gomp_task *task) in task_to_priority_node() argument [all …]
|
| /dflybsd-src/sys/kern/ |
| H A D | subr_taskqueue.c | 51 STAILQ_HEAD(, task) tq_queue; 57 struct task *tq_running; 191 taskqueue_enqueue_locked(struct taskqueue *queue, struct task *task) in taskqueue_enqueue_locked() argument 193 struct task *ins; in taskqueue_enqueue_locked() 194 struct task *prev; in taskqueue_enqueue_locked() 205 if (task->ta_pending) { in taskqueue_enqueue_locked() 206 KKASSERT(queue == task->ta_queue); in taskqueue_enqueue_locked() 207 task->ta_pending++; in taskqueue_enqueue_locked() 210 task->ta_queue = queue; in taskqueue_enqueue_locked() 215 prev = STAILQ_LAST(&queue->tq_queue, task, ta_link); in taskqueue_enqueue_locked() [all …]
|
| /dflybsd-src/sys/sys/ |
| H A D | taskqueue.h | 58 struct task { struct 59 STAILQ_ENTRY(task) ta_link; /* link for queue */ 68 struct task t; argument 79 int taskqueue_enqueue(struct taskqueue *queue, struct task *task); 81 struct taskqueue **qpp, struct task *task); 84 int taskqueue_cancel(struct taskqueue *queue, struct task *task, 86 int taskqueue_cancel_simple(struct task *task); 89 void taskqueue_drain(struct taskqueue *queue, struct task *task); 90 void taskqueue_drain_simple(struct task *task); 114 #define TASK_INIT(task, priority, func, context) do { \ argument [all …]
|
| /dflybsd-src/sys/dev/drm/ |
| H A D | linux_kthread.c | 41 struct task_struct *task = arg; in linux_ktfn_wrapper() local 43 task->kt_exitvalue = task->kt_fn(task->kt_fndata); in linux_ktfn_wrapper() 49 struct task_struct *task; in kthread_run() local 54 task = kzalloc(sizeof(*task), GFP_KERNEL); in kthread_run() 57 ret = kthread_alloc(linux_ktfn_wrapper, task, &td, namefmt, args); in kthread_run() 60 kfree(task); in kthread_run() 64 task->dfly_td = td; in kthread_run() 65 td->td_linux_task = task; in kthread_run() 67 task->mm = NULL; /* kthreads have no userland address space */ in kthread_run() 69 task->kt_fn = lfn; in kthread_run() [all …]
|
| H A D | linux_sched.c | 61 struct task_struct *task; in linux_task_alloc() local 65 task = kzalloc(sizeof(*task), GFP_KERNEL); in linux_task_alloc() 66 task->dfly_td = td; in linux_task_alloc() 67 task->pid = -1; in linux_task_alloc() 68 spin_init(&task->kt_spin, "tspin2"); in linux_task_alloc() 71 task->pid = td->td_proc->p_pid; in linux_task_alloc() 85 task->mm = mm; in linux_task_alloc() 88 td->td_linux_task = task; in linux_task_alloc() 90 return task; in linux_task_alloc() 99 struct task_struct *task; in linux_task_drop() local [all …]
|
| H A D | linux_compat.c | 86 pid_t get_task_pid(struct task_struct *task, enum pid_type type) in get_task_pid() argument 88 if (task->dfly_td == NULL) in get_task_pid() 91 if (task->dfly_td->td_proc == NULL) in get_task_pid() 94 return task->dfly_td->td_proc->p_pid; in get_task_pid()
|
| /dflybsd-src/lib/libtcplay/ |
| H A D | tcplay_api.c | 132 tc_api_task_get_error(tc_api_task task __unused) in tc_api_task_get_error() 143 tc_api_task task = NULL; in tc_api_task_init() local 146 if ((task = alloc_safe_mem(sizeof(*task))) == NULL) { in tc_api_task_init() 151 if ((task->opts = opts_init()) == NULL) { in tc_api_task_init() 157 task->op = TC_OP_CREATE; in tc_api_task_init() 159 task->op = TC_OP_MAP; in tc_api_task_init() 161 task->op = TC_OP_UNMAP; in tc_api_task_init() 163 task->op = TC_OP_INFO; in tc_api_task_init() 165 task->op = TC_OP_INFO_MAPPED; in tc_api_task_init() 167 task->op = TC_OP_MODIFY; in tc_api_task_init() [all …]
|
| H A D | tcplay_api.h | 64 int tc_api_task_uninit(tc_api_task task); 65 int tc_api_task_set(tc_api_task task, const char *key, ...); 66 int tc_api_task_do(tc_api_task task); 68 int tc_api_task_info_get(tc_api_task task, const char *key, ...); 69 const char *tc_api_task_get_error(tc_api_task task);
|
| /dflybsd-src/contrib/lvm2/dist/libdm/ioctl/ |
| H A D | libdm-dragonfly-iface.c | 266 struct dm_task *task; in _check_version() local 269 if (!(task = dm_task_create(DM_DEVICE_VERSION))) { in _check_version() 275 r = dm_task_run(task); in _check_version() 276 dm_task_get_driver_version(task, version, size); in _check_version() 277 dm_task_destroy(task); in _check_version() 779 struct dm_task *task; in _process_all_v4() local 784 if (!(task = dm_task_create(DM_DEVICE_LIST))) in _process_all_v4() 787 if (!dm_task_run(task)) { in _process_all_v4() 792 if (!(names = dm_task_get_names(task))) { in _process_all_v4() 812 dm_task_destroy(task); in _process_all_v4() [all …]
|
| H A D | libdm-nbsd-iface.c | 276 struct dm_task *task; in _check_version() local 279 if (!(task = dm_task_create(DM_DEVICE_VERSION))) { in _check_version() 285 r = dm_task_run(task); in _check_version() 286 dm_task_get_driver_version(task, version, size); in _check_version() 287 dm_task_destroy(task); in _check_version() 819 struct dm_task *task; in _process_all_v4() local 824 if (!(task = dm_task_create(DM_DEVICE_LIST))) in _process_all_v4() 827 if (!dm_task_run(task)) { in _process_all_v4() 832 if (!(names = dm_task_get_names(task))) { in _process_all_v4() 852 dm_task_destroy(task); in _process_all_v4() [all …]
|
| H A D | libdm-iface.c | 809 struct dm_task *task; in _check_version() local 812 if (!(task = dm_task_create(DM_DEVICE_VERSION))) { in _check_version() 821 r = dm_task_run(task); in _check_version() 822 dm_task_get_driver_version(task, version, size); in _check_version() 823 dm_task_destroy(task); in _check_version() 1460 struct dm_task *task; in _process_all_v4() local 1465 if (!(task = dm_task_create(DM_DEVICE_LIST))) in _process_all_v4() 1468 if (!dm_task_run(task)) { in _process_all_v4() 1473 if (!(names = dm_task_get_names(task))) { in _process_all_v4() 1493 dm_task_destroy(task); in _process_all_v4() [all …]
|
| /dflybsd-src/sys/bus/u4b/net/ |
| H A D | usb_ethernet.c | 107 struct usb_ether_cfg_task *task; in ue_queue_command() local 119 task = (struct usb_ether_cfg_task *) in ue_queue_command() 123 task->hdr.pm_callback = fn; in ue_queue_command() 124 task->ue = ue; in ue_queue_command() 194 struct usb_ether_cfg_task *task = in ue_attach_post_task() local 196 struct usb_ether *ue = task->ue; in ue_attach_post_task() 334 struct usb_ether_cfg_task *task = in ue_start_task() local 336 struct usb_ether *ue = task->ue; in ue_start_task() 353 struct usb_ether_cfg_task *task = in ue_stop_task() local 355 struct usb_ether *ue = task->ue; in ue_stop_task() [all …]
|
| /dflybsd-src/sys/netproto/802_11/ |
| H A D | ieee80211_var.h | 133 struct task ic_parent_task; /* deferred parent processing */ 134 struct task ic_promisc_task;/* deferred promisc update */ 135 struct task ic_mcast_task; /* deferred mcast update */ 136 struct task ic_chan_task; /* deferred channel change */ 137 struct task ic_bmiss_task; /* deferred beacon miss hndlr */ 138 struct task ic_chw_task; /* deferred HT CHW update */ 139 struct task ic_wme_task; /* deferred WME update */ 140 struct task ic_restart_task; /* deferred device restart */ 390 struct task iv_nstate_task; /* deferred state processing */ 391 struct task iv_swbmiss_task;/* deferred iv_bmiss call */ [all …]
|
| /dflybsd-src/contrib/binutils-2.34/gold/ |
| H A D | binary.cc | 74 Binary_to_elf::convert(const Task* task) in convert() argument 81 return this->sized_convert<32, false>(task); in convert() 89 return this->sized_convert<32, true>(task); in convert() 100 return this->sized_convert<64, false>(task); in convert() 108 return this->sized_convert<64, true>(task); in convert() 128 Binary_to_elf::sized_convert(const Task* task) in sized_convert() argument 133 if (!f.open(task, this->filename_)) in sized_convert() 263 f.unlock(task); in sized_convert()
|
| H A D | fileread.cc | 192 File_read::open(const Task* task, const std::string& name) in open() argument 213 this->token_.add_writer(task); in open() 222 File_read::open(const Task* task, const std::string& name, in open() argument 234 this->token_.add_writer(task); in open() 293 File_read::lock(const Task* task) in lock() argument 297 this->token_.add_writer(task); in lock() 304 File_read::unlock(const Task* task) in unlock() argument 308 this->token_.remove_writer(task); in unlock() 883 Input_file::Input_file(const Task* task, const char* name, in Input_file() argument 890 bool ok = this->file_.open(task, name, contents, size); in Input_file() [all …]
|
| /dflybsd-src/contrib/binutils-2.27/gold/ |
| H A D | binary.cc | 74 Binary_to_elf::convert(const Task* task) in convert() argument 81 return this->sized_convert<32, false>(task); in convert() 89 return this->sized_convert<32, true>(task); in convert() 100 return this->sized_convert<64, false>(task); in convert() 108 return this->sized_convert<64, true>(task); in convert() 128 Binary_to_elf::sized_convert(const Task* task) in sized_convert() argument 133 if (!f.open(task, this->filename_)) in sized_convert() 263 f.unlock(task); in sized_convert()
|
| /dflybsd-src/sys/dev/drm/amd/powerplay/smumgr/ |
| H A D | smu8_smumgr.c | 335 struct SMU_Task *task = &toc->tasks[smu8_smu->toc_entry_used_count++]; in smu8_smu_populate_single_scratch_task() local 337 task->type = type; in smu8_smu_populate_single_scratch_task() 338 task->arg = smu8_translate_firmware_enum_to_arg(hwmgr, fw_enum); in smu8_smu_populate_single_scratch_task() 339 task->next = is_last ? END_OF_TASK_LIST : smu8_smu->toc_entry_used_count; in smu8_smu_populate_single_scratch_task() 350 task->addr.low = lower_32_bits(smu8_smu->scratch_buffer[i].mc_addr); in smu8_smu_populate_single_scratch_task() 351 task->addr.high = upper_32_bits(smu8_smu->scratch_buffer[i].mc_addr); in smu8_smu_populate_single_scratch_task() 352 task->size_bytes = smu8_smu->scratch_buffer[i].data_size; in smu8_smu_populate_single_scratch_task() 372 struct SMU_Task *task = &toc->tasks[smu8_smu->toc_entry_used_count++]; in smu8_smu_populate_single_ucode_load_task() local 374 task->type = TASK_TYPE_UCODE_LOAD; in smu8_smu_populate_single_ucode_load_task() 375 task->arg = smu8_translate_firmware_enum_to_arg(hwmgr, fw_enum); in smu8_smu_populate_single_ucode_load_task() [all …]
|