Lines Matching refs:gtask
886 taskqgroup_attach(struct taskqgroup *qgroup, struct grouptask *gtask, in taskqgroup_attach() argument
892 gtask->gt_uniq = uniq; in taskqgroup_attach()
893 gtask->gt_name = name; in taskqgroup_attach()
894 gtask->gt_irq = irq; in taskqgroup_attach()
898 LIST_INSERT_HEAD(&qgroup->tqg_queue[qid].tgc_tasks, gtask, gt_list); in taskqgroup_attach()
899 gtask->gt_taskqueue = qgroup->tqg_queue[qid].tgc_taskq; in taskqgroup_attach()
910 taskqgroup_attach_cpu(struct taskqgroup *qgroup, struct grouptask *gtask, in taskqgroup_attach_cpu() argument
917 gtask->gt_uniq = uniq; in taskqgroup_attach_cpu()
918 gtask->gt_name = name; in taskqgroup_attach_cpu()
919 gtask->gt_irq = irq; in taskqgroup_attach_cpu()
931 LIST_INSERT_HEAD(&qgroup->tqg_queue[qid].tgc_tasks, gtask, gt_list); in taskqgroup_attach_cpu()
932 gtask->gt_taskqueue = qgroup->tqg_queue[qid].tgc_taskq; in taskqgroup_attach_cpu()
944 taskqgroup_detach(struct taskqgroup *qgroup, struct grouptask *gtask) in taskqgroup_detach() argument
950 if (qgroup->tqg_queue[i].tgc_taskq == gtask->gt_taskqueue) in taskqgroup_detach()
955 LIST_REMOVE(gtask, gt_list); in taskqgroup_detach()
957 gtask->gt_taskqueue = NULL; in taskqgroup_detach()
1000 struct grouptask *gtask; in _taskqgroup_adjust() local
1039 while ((gtask = LIST_FIRST(&qgroup->tqg_queue[i].tgc_tasks))) { in _taskqgroup_adjust()
1040 LIST_REMOVE(gtask, gt_list); in _taskqgroup_adjust()
1042 LIST_INSERT_HEAD(>ask_head, gtask, gt_list); in _taskqgroup_adjust()
1046 while ((gtask = LIST_FIRST(>ask_head))) { in _taskqgroup_adjust()
1047 LIST_REMOVE(gtask, gt_list); in _taskqgroup_adjust()
1048 qid = taskqgroup_find(qgroup, gtask->gt_uniq); in _taskqgroup_adjust()
1050 LIST_INSERT_HEAD(&qgroup->tqg_queue[qid].tgc_tasks, gtask, in _taskqgroup_adjust()
1052 gtask->gt_taskqueue = qgroup->tqg_queue[qid].tgc_taskq; in _taskqgroup_adjust()
1061 LIST_FOREACH(gtask, &qgroup->tqg_queue[i].tgc_tasks, gt_list) { in _taskqgroup_adjust()
1062 if (gtask->gt_irq == -1) in _taskqgroup_adjust()
1064 intr_setaffinity(gtask->gt_irq, &mask); in _taskqgroup_adjust()