Searched refs:prio (Results 1 - 200 of 290) sorted by relevance

12

/linux-4.4.14/include/linux/sched/
H A Ddeadline.h6 * the fact that any of them has higher prio than RT and
12 static inline int dl_prio(int prio) dl_prio() argument
14 if (unlikely(prio < MAX_DL_PRIO)) dl_prio()
21 return dl_prio(p->prio); dl_task()
H A Drt.h4 #include <linux/sched/prio.h>
6 static inline int rt_prio(int prio) rt_prio() argument
8 if (unlikely(prio < MAX_RT_PRIO)) rt_prio()
15 return rt_prio(p->prio); rt_task()
20 extern void rt_mutex_setprio(struct task_struct *p, int prio);
H A Dprio.h12 * values are inverted: lower p->prio value means higher priority.
33 #define PRIO_TO_NICE(prio) ((prio) - DEFAULT_PRIO)
55 static inline long rlimit_to_nice(long prio) rlimit_to_nice() argument
57 return (MAX_NICE - prio + 1); rlimit_to_nice()
/linux-4.4.14/net/sched/
H A Dsch_prio.c99 int prio; prio_peek() local
101 for (prio = 0; prio < q->bands; prio++) { prio_peek()
102 struct Qdisc *qdisc = q->queues[prio]; prio_peek()
113 int prio; prio_dequeue() local
115 for (prio = 0; prio < q->bands; prio++) { prio_dequeue()
116 struct Qdisc *qdisc = q->queues[prio]; prio_dequeue()
131 int prio; prio_drop() local
135 for (prio = q->bands-1; prio >= 0; prio--) { prio_drop()
136 qdisc = q->queues[prio]; prio_drop()
149 int prio; prio_reset() local
152 for (prio = 0; prio < q->bands; prio++) prio_reset()
153 qdisc_reset(q->queues[prio]); prio_reset()
160 int prio; prio_destroy() local
164 for (prio = 0; prio < q->bands; prio++) prio_destroy()
165 qdisc_destroy(q->queues[prio]); prio_destroy()
332 int prio; prio_walk() local
337 for (prio = 0; prio < q->bands; prio++) { prio_walk()
342 if (arg->fn(sch, prio + 1, arg) < 0) { prio_walk()
376 .id = "prio",
H A Dsch_htb.c103 u32 prio; /* these two are used only by leaves... */ member in struct:htb_class
267 * Make sure that class is not already on such list for given prio.
270 struct htb_class *cl, int prio) htb_add_to_id_tree()
277 c = rb_entry(parent, struct htb_class, node[prio]); htb_add_to_id_tree()
284 rb_link_node(&cl->node[prio], parent, p); htb_add_to_id_tree()
285 rb_insert_color(&cl->node[prio], root); htb_add_to_id_tree()
343 int prio = ffz(~mask); htb_add_class_to_row() local
344 mask &= ~(1 << prio); htb_add_class_to_row()
345 htb_add_to_id_tree(&q->hlevel[cl->level].hprio[prio].row, cl, prio); htb_add_class_to_row()
374 int prio = ffz(~mask); htb_remove_class_from_row() local
375 struct htb_prio *hprio = &hlevel->hprio[prio]; htb_remove_class_from_row()
377 mask &= ~(1 << prio); htb_remove_class_from_row()
378 if (hprio->ptr == cl->node + prio) htb_remove_class_from_row()
381 htb_safe_rb_erase(cl->node + prio, &hprio->row); htb_remove_class_from_row()
383 m |= 1 << prio; htb_remove_class_from_row()
403 int prio = ffz(~m); htb_activate_prios() local
404 m &= ~(1 << prio); htb_activate_prios()
406 if (p->un.inner.clprio[prio].feed.rb_node) htb_activate_prios()
410 mask &= ~(1 << prio); htb_activate_prios()
412 htb_add_to_id_tree(&p->un.inner.clprio[prio].feed, cl, prio); htb_activate_prios()
439 int prio = ffz(~m); htb_deactivate_prios() local
440 m &= ~(1 << prio); htb_deactivate_prios()
442 if (p->un.inner.clprio[prio].ptr == cl->node + prio) { htb_deactivate_prios()
447 p->un.inner.clprio[prio].last_ptr_id = cl->common.classid; htb_deactivate_prios()
448 p->un.inner.clprio[prio].ptr = NULL; htb_deactivate_prios()
451 htb_safe_rb_erase(cl->node + prio, htb_deactivate_prios()
452 &p->un.inner.clprio[prio].feed); htb_deactivate_prios()
454 if (!p->un.inner.clprio[prio].feed.rb_node) htb_deactivate_prios()
455 mask |= 1 << prio; htb_deactivate_prios()
542 * for the prio. It can be called on already active leaf safely.
550 cl->prio_activity = 1 << cl->prio; htb_activate()
553 q->drops + cl->prio); htb_activate()
728 /* Returns class->node+prio from id-tree where classe's id is >= id. NULL
731 static struct rb_node *htb_id_find_next_upper(int prio, struct rb_node *n, htb_id_find_next_upper() argument
737 rb_entry(n, struct htb_class, node[prio]); htb_id_find_next_upper()
756 static struct htb_class *htb_lookup_leaf(struct htb_prio *hprio, const int prio) htb_lookup_leaf() argument
776 htb_id_find_next_upper(prio, sp->root, *sp->pid); htb_lookup_leaf()
797 cl = rb_entry(*sp->pptr, struct htb_class, node[prio]); htb_lookup_leaf()
800 clp = &cl->un.inner.clprio[prio]; htb_lookup_leaf()
811 * you are sure that there is active class at prio/level
813 static struct sk_buff *htb_dequeue_tree(struct htb_sched *q, const int prio, htb_dequeue_tree() argument
819 struct htb_prio *hprio = &hlevel->hprio[prio]; htb_dequeue_tree()
822 start = cl = htb_lookup_leaf(hprio, prio); htb_dequeue_tree()
839 if ((q->row_mask[level] & (1 << prio)) == 0) htb_dequeue_tree()
842 next = htb_lookup_leaf(hprio, prio); htb_dequeue_tree()
855 htb_next_rb_node(level ? &cl->parent->un.inner.clprio[prio].ptr: htb_dequeue_tree()
856 &q->hlevel[0].hprio[prio].ptr); htb_dequeue_tree()
857 cl = htb_lookup_leaf(hprio, prio); htb_dequeue_tree()
866 htb_next_rb_node(level ? &cl->parent->un.inner.clprio[prio].ptr : htb_dequeue_tree()
867 &q->hlevel[0].hprio[prio].ptr); htb_dequeue_tree()
887 /* try to dequeue direct packets as high prio (!) to minimize cpu work */ htb_dequeue()
922 int prio = ffz(m); htb_dequeue() local
924 m |= 1 << prio; htb_dequeue()
925 skb = htb_dequeue_tree(q, prio, level); htb_dequeue()
946 /* try to drop from each class (by prio) until one succeed */ htb_drop()
950 int prio; htb_drop() local
952 for (prio = TC_HTB_NUMPRIO - 1; prio >= 0; prio--) { htb_drop()
954 list_for_each(p, q->drops + prio) { htb_drop()
1120 opt.prio = cl->prio; htb_dump_class()
1369 int prio; htb_change_class() local
1416 for (prio = 0; prio < TC_HTB_NUMPRIO; prio++) htb_change_class()
1417 RB_CLEAR_NODE(&cl->node[prio]); htb_change_class()
1505 if ((cl->prio = hopt->prio) >= TC_HTB_NUMPRIO) htb_change_class()
1506 cl->prio = TC_HTB_NUMPRIO - 1; htb_change_class()
269 htb_add_to_id_tree(struct rb_root *root, struct htb_class *cl, int prio) htb_add_to_id_tree() argument
H A Dsch_gred.c41 u8 prio; /* the prio of this vq */ member in struct:gred_sched_data
106 if (table->tab[n] && table->tab[n]->prio == q->prio) gred_wred_mode_check()
185 if (t->tab[i] && t->tab[i]->prio < q->prio && gred_enqueue()
385 struct tc_gred_qopt *ctl, int prio, gred_change_vq()
400 q->prio = prio; gred_change_vq()
429 int err, prio = GRED_DEF_PRIO; gred_change() local
462 if (ctl->prio == 0) { gred_change()
466 def_prio = table->tab[table->def]->prio; gred_change()
468 printk(KERN_DEBUG "GRED: DP %u does not have a prio " gred_change()
471 prio = def_prio; gred_change()
473 prio = ctl->prio; gred_change()
479 err = gred_change_vq(sch, ctl->DP, ctl, prio, stab, max_P, &prealloc); gred_change()
575 opt.prio = q->prio; gred_dump()
384 gred_change_vq(struct Qdisc *sch, int dp, struct tc_gred_qopt *ctl, int prio, u8 *stab, u32 max_P, struct gred_sched_data **prealloc) gred_change_vq() argument
H A Dsch_cbq.c223 u32 prio = skb->priority; cbq_classify() local
230 if (TC_H_MAJ(prio ^ sch->handle) == 0 && cbq_classify()
231 (cl = cbq_class_lookup(q, prio)) != NULL) cbq_classify()
287 if (TC_H_MAJ(prio) == 0 && cbq_classify()
288 !(cl = head->defaults[prio & TC_PRIO_MAX]) && cbq_classify()
304 int prio = cl->cpriority; cbq_activate_class() local
307 cl_tail = q->active[prio]; cbq_activate_class()
308 q->active[prio] = cl; cbq_activate_class()
315 q->activemask |= (1<<prio); cbq_activate_class()
328 int prio = this->cpriority; cbq_deactivate_class() local
330 struct cbq_class *cl_prev = q->active[prio]; cbq_deactivate_class()
338 if (cl == q->active[prio]) { cbq_deactivate_class()
339 q->active[prio] = cl_prev; cbq_deactivate_class()
340 if (cl == q->active[prio]) { cbq_deactivate_class()
341 q->active[prio] = NULL; cbq_deactivate_class()
342 q->activemask &= ~(1<<prio); cbq_deactivate_class()
348 } while ((cl_prev = cl) != q->active[prio]); cbq_deactivate_class()
552 static psched_tdiff_t cbq_undelay_prio(struct cbq_sched_data *q, int prio, cbq_undelay_prio() argument
556 struct cbq_class *cl_prev = q->active[prio]; cbq_undelay_prio()
571 if (cl == q->active[prio]) { cbq_undelay_prio()
572 q->active[prio] = cl_prev; cbq_undelay_prio()
573 if (cl == q->active[prio]) { cbq_undelay_prio()
574 q->active[prio] = NULL; cbq_undelay_prio()
582 } while ((cl_prev = cl) != q->active[prio]); cbq_undelay_prio()
602 int prio = ffz(~pmask); cbq_undelay() local
605 pmask &= ~(1<<prio); cbq_undelay()
607 tmp = cbq_undelay_prio(q, prio, now); cbq_undelay()
609 q->pmask |= 1<<prio; cbq_undelay()
822 cbq_dequeue_prio(struct Qdisc *sch, int prio) cbq_dequeue_prio() argument
829 cl_tail = cl_prev = q->active[prio]; cbq_dequeue_prio()
876 q->active[prio] = cl; cbq_dequeue_prio()
883 if (cl->q->q.qlen == 0 || prio != cl->cpriority) { cbq_dequeue_prio()
898 q->active[prio] = NULL; cbq_dequeue_prio()
899 q->activemask &= ~(1<<prio); cbq_dequeue_prio()
905 q->active[prio] = cl_tail; cbq_dequeue_prio()
919 q->active[prio] = cl_prev; cbq_dequeue_prio()
933 int prio = ffz(~activemask); cbq_dequeue_1() local
934 activemask &= ~(1<<prio); cbq_dequeue_1()
935 skb = cbq_dequeue_prio(sch, prio); cbq_dequeue_1()
1028 static void cbq_normalize_quanta(struct cbq_sched_data *q, int prio) cbq_normalize_quanta() argument
1033 if (q->quanta[prio] == 0) cbq_normalize_quanta()
1041 if (cl->priority == prio) { cbq_normalize_quanta()
1042 cl->quantum = (cl->weight*cl->allot*q->nclasses[prio])/ cbq_normalize_quanta()
1043 q->quanta[prio]; cbq_normalize_quanta()
1173 int prio; cbq_drop() local
1176 for (prio = TC_CBQ_MAXPRIO; prio >= 0; prio--) { cbq_drop()
1177 cl_head = q->active[prio]; cbq_drop()
1199 int prio; cbq_reset() local
1211 for (prio = 0; prio <= TC_CBQ_MAXPRIO; prio++) cbq_reset()
1212 q->active[prio] = NULL; cbq_reset()
H A Dcls_api.c107 /* Select new prio value from the range, managed by kernel. */
114 first = tp->prio - 1; tcf_auto_prio()
127 u32 prio; tc_ctl_tfilter() local
153 prio = TC_H_MAJ(t->tcm_info); tc_ctl_tfilter()
154 nprio = prio; tc_ctl_tfilter()
158 if (prio == 0) { tc_ctl_tfilter()
163 prio = TC_H_MAKE(0x80000000U, 0U); tc_ctl_tfilter()
208 if (tp->prio >= prio) { tc_ctl_tfilter()
209 if (tp->prio == prio) { tc_ctl_tfilter()
267 tp->prio = nprio ? : tc_ctl_tfilter()
370 tcm->tcm_info = TC_H_MAKE(tp->prio, tp->protocol); tcf_fill_node()
471 TC_H_MAJ(tcm->tcm_info) != tp->prio) tc_dump_tfilter()
H A Dsch_generic.c446 generic prio+fifo combination.
525 int prio; pfifo_fast_reset() local
528 for (prio = 0; prio < PFIFO_FAST_BANDS; prio++) pfifo_fast_reset()
529 __qdisc_reset_queue(qdisc, band2list(priv, prio)); pfifo_fast_reset()
551 int prio; pfifo_fast_init() local
554 for (prio = 0; prio < PFIFO_FAST_BANDS; prio++) pfifo_fast_init()
555 __skb_queue_head_init(band2list(priv, prio)); pfifo_fast_init()
H A Dcls_u32.c77 u32 prio; member in struct:tc_u_hnode
334 root_ht->prio = tp->prio; u32_init()
794 ht->prio = tp->prio; u32_change()
910 if (ht->prio != tp->prio) u32_walk()
H A Dsch_fq.c29 * - Use a special fifo for high prio packets
90 struct fq_flow internal; /* for non classified or high prio packets */
/linux-4.4.14/arch/powerpc/sysdev/
H A Dipic.c39 .prio = IPIC_SIPRR_C,
46 .prio = IPIC_SIPRR_C,
53 .prio = IPIC_SIPRR_C,
60 .prio = IPIC_SIPRR_C,
67 .prio = IPIC_SIPRR_C,
74 .prio = IPIC_SIPRR_C,
81 .prio = IPIC_SIPRR_C,
88 .prio = IPIC_SIPRR_C,
95 .prio = IPIC_SIPRR_D,
102 .prio = IPIC_SIPRR_D,
109 .prio = IPIC_SIPRR_D,
116 .prio = IPIC_SIPRR_D,
123 .prio = IPIC_SIPRR_D,
130 .prio = IPIC_SIPRR_D,
137 .prio = IPIC_SIPRR_D,
144 .prio = IPIC_SIPRR_D,
152 .prio = IPIC_SMPRR_A,
160 .prio = IPIC_SMPRR_A,
168 .prio = IPIC_SMPRR_A,
176 .prio = IPIC_SMPRR_B,
184 .prio = IPIC_SMPRR_B,
192 .prio = IPIC_SMPRR_B,
200 .prio = IPIC_SMPRR_B,
207 .prio = IPIC_SIPRR_A,
214 .prio = IPIC_SIPRR_A,
221 .prio = IPIC_SIPRR_A,
228 .prio = IPIC_SIPRR_A,
235 .prio = IPIC_SIPRR_A,
242 .prio = IPIC_SIPRR_A,
249 .prio = IPIC_SIPRR_A,
256 .prio = IPIC_SIPRR_A,
263 .prio = IPIC_SIPRR_B,
270 .prio = IPIC_SIPRR_B,
277 .prio = IPIC_SIPRR_B,
284 .prio = IPIC_SIPRR_B,
291 .prio = IPIC_SIPRR_B,
298 .prio = IPIC_SIPRR_B,
305 .prio = IPIC_SIPRR_B,
312 .prio = IPIC_SIPRR_B,
319 .prio = IPIC_SMPRR_A,
326 .prio = IPIC_SMPRR_A,
333 .prio = IPIC_SMPRR_A,
340 .prio = IPIC_SMPRR_A,
347 .prio = IPIC_SMPRR_A,
354 .prio = IPIC_SMPRR_B,
361 .prio = IPIC_SMPRR_B,
368 .prio = IPIC_SMPRR_B,
375 .prio = IPIC_SMPRR_B,
382 .prio = 0,
388 .prio = 0,
394 .prio = 0,
400 .prio = 0,
406 .prio = 0,
412 .prio = 0,
418 .prio = 0,
424 .prio = 0,
430 .prio = 0,
436 .prio = 0,
442 .prio = 0,
448 .prio = 0,
454 .prio = 0,
460 .prio = 0,
466 .prio = 0,
472 .prio = 0,
478 .prio = 0,
484 .prio = 0,
490 .prio = 0,
496 .prio = 0,
502 .prio = 0,
783 if (ipic_info[src].prio == 0) ipic_set_priority()
786 temp = ipic_read(ipic->regs, ipic_info[src].prio); ipic_set_priority()
796 ipic_write(ipic->regs, ipic_info[src].prio, temp); ipic_set_priority()
H A Dehv_pic.c74 unsigned int config, prio, cpu_dest; ehv_pic_set_affinity() local
79 ev_int_get_config(src, &config, &prio, &cpu_dest); ehv_pic_set_affinity()
80 ev_int_set_config(src, config, prio, cpuid); ehv_pic_set_affinity()
114 unsigned int vecpri, vold, vnew, prio, cpu_dest; ehv_pic_set_irq_type() local
125 ev_int_get_config(src, &vold, &prio, &cpu_dest); ehv_pic_set_irq_type()
136 prio = 8; ehv_pic_set_irq_type()
138 ev_int_set_config(src, vecpri, prio, cpu_dest); ehv_pic_set_irq_type()
H A Dipic.h53 u8 prio; /* priority register offset from base */ member in struct:ipic_info
H A Dmpic.c1734 void mpic_cpu_set_priority(int prio) mpic_cpu_set_priority() argument
1738 prio &= MPIC_CPU_TASKPRI_MASK; mpic_cpu_set_priority()
1739 mpic_cpu_write(MPIC_INFO(CPU_CURRENT_TASK_PRI), prio); mpic_cpu_set_priority() local
/linux-4.4.14/lib/
H A Dplist.c89 if (node->prio < iter->prio) { plist_add()
99 if (!prev || prev->prio != node->prio) plist_add()
137 * plist_requeue - Requeue @node at end of same-prio entries.
160 if (node->prio != iter->prio) plist_requeue()
166 if (node->prio != iter->prio) { plist_for_each_continue()
198 if (node_pos->prio == prio_pos->prio) { plist_test_check()
203 BUG_ON(prio_pos->prio > node_pos->prio); plist_test_check()
217 BUG_ON(node->prio == plist_next(node)->prio); plist_test_requeue()
235 test_node[i].prio = r % 99; plist_test()
/linux-4.4.14/include/linux/dma/
H A Dpxa-dma.h13 enum pxad_chan_prio prio; member in struct:pxad_param
/linux-4.4.14/arch/unicore32/kernel/
H A Ddma.c27 puv3_dma_prio prio; member in struct:dma_channel
35 int puv3_request_dma(char *name, puv3_dma_prio prio, puv3_request_dma() argument
52 if ((dma_channels[i].prio == prio) && puv3_request_dma()
58 /* if requested prio group is full, try a hier priority */ puv3_request_dma()
59 } while (!found && prio--); puv3_request_dma()
163 dma_channels[i].prio = min((i & 0x7) >> 1, DMA_PRIO_LOW); puv3_init_dma()
/linux-4.4.14/block/
H A Dioprio.c8 * those. The prio argument is a composite of prio class and prio data, where
10 * classes have 8 distinct prio levels, with 0 being the highest prio and 7
13 * IOW, setting BE scheduling class with prio 2 is done ala:
15 * unsigned int prio = (IOPRIO_CLASS_BE << IOPRIO_CLASS_SHIFT) | 2;
17 * ioprio_set(PRIO_PROCESS, pid, prio);
75 /* fall through, rt has prio field too */ SYSCALL_DEFINE3()
H A Dcfq-iosched.c113 /* prio tree member */
115 /* prio tree root we belong to, if any */
142 /* io prio of this group */
277 * create the array for each prio class but at run time it is used
922 unsigned short prio) cfq_prio_slice()
926 WARN_ON(prio >= IOPRIO_BE_NR); cfq_prio_slice()
928 return base_slice + (base_slice/CFQ_SLICE_SCALE * (4 - prio)); cfq_prio_slice()
2410 * expire it later. Right now just remove it from prio tree cfq_del_rq_rb()
3639 printk(KERN_ERR "cfq: bad prio %x\n", ioprio_class); cfq_init_prio_data()
3642 * no prio set, inherit CPU scheduling settings cfq_init_prio_data()
3663 * keep track of original prio settings in case we have to temporarily cfq_init_prio_data()
3885 * Don't idle for async or idle io prio class cfq_update_idle_window()
921 cfq_prio_slice(struct cfq_data *cfqd, bool sync, unsigned short prio) cfq_prio_slice() argument
/linux-4.4.14/drivers/media/v4l2-core/
H A Dv4l2-fh.c43 * prio ioctls here. v4l2_fh_init()
47 fh->prio = V4L2_PRIORITY_UNSET; v4l2_fh_init()
59 v4l2_prio_open(fh->vdev->prio, &fh->prio); v4l2_fh_add()
87 v4l2_prio_close(fh->vdev->prio, fh->prio); v4l2_fh_del()
H A Dv4l2-dev.c236 static inline bool prio_is_valid(enum v4l2_priority prio) prio_is_valid() argument
238 return prio == V4L2_PRIORITY_BACKGROUND || prio_is_valid()
239 prio == V4L2_PRIORITY_INTERACTIVE || prio_is_valid()
240 prio == V4L2_PRIORITY_RECORD; prio_is_valid()
814 /* If the prio state pointer is NULL, then use the v4l2_device __video_register_device()
815 prio state. */ __video_register_device()
816 if (vdev->prio == NULL) __video_register_device()
817 vdev->prio = &vdev->v4l2_dev->prio; __video_register_device()
H A Dv4l2-device.c40 v4l2_prio_init(&v4l2_dev->prio); v4l2_device_register()
H A Dv4l2-ioctl.c1060 *p = v4l2_prio_max(vfd->prio); v4l_g_priority()
1075 return v4l2_prio_change(vfd->prio, &vfh->prio, *p); v4l_s_priority()
2593 ret = v4l2_prio_check(vfd->prio, vfh->prio); __video_do_ioctl()
2617 vfh ? v4l2_prio_check(vfd->prio, vfh->prio) >= 0 : 0, __video_do_ioctl()
/linux-4.4.14/arch/c6x/kernel/
H A Dirq.c38 unsigned int prio = data->hwirq; mask_core_irq() local
41 and_creg(IER, ~(1 << prio)); mask_core_irq()
47 unsigned int prio = data->hwirq; unmask_core_irq() local
50 or_creg(IER, 1 << prio); unmask_core_irq()
62 asmlinkage void c6x_do_IRQ(unsigned int prio, struct pt_regs *regs) c6x_do_IRQ() argument
68 generic_handle_irq(prio_to_virq[prio]); c6x_do_IRQ()
/linux-4.4.14/include/trace/events/
H A Dsched.h65 __field( int, prio )
73 __entry->prio = p->prio;
78 TP_printk("comm=%s pid=%d prio=%d target_cpu=%03d",
79 __entry->comm, __entry->pid, __entry->prio,
145 __entry->prev_prio = prev->prio;
149 __entry->next_prio = next->prio;
176 __field( int, prio )
184 __entry->prio = p->prio;
189 TP_printk("comm=%s pid=%d prio=%d orig_cpu=%d dest_cpu=%d",
190 __entry->comm, __entry->pid, __entry->prio,
203 __field( int, prio )
209 __entry->prio = p->prio;
212 TP_printk("comm=%s pid=%d prio=%d",
213 __entry->comm, __entry->pid, __entry->prio)
250 __field( int, prio )
256 __entry->prio = current->prio;
259 TP_printk("comm=%s pid=%d prio=%d",
260 __entry->comm, __entry->pid, __entry->prio)
430 __entry->oldprio = tsk->prio;
/linux-4.4.14/net/bridge/
H A Dbr_stp_bpdu.c96 buf[5] = bpdu->root.prio[0]; br_send_config_bpdu()
97 buf[6] = bpdu->root.prio[1]; br_send_config_bpdu()
108 buf[17] = bpdu->bridge_id.prio[0]; br_send_config_bpdu()
109 buf[18] = bpdu->bridge_id.prio[1]; br_send_config_bpdu()
201 bpdu.root.prio[0] = buf[2]; br_stp_rcv()
202 bpdu.root.prio[1] = buf[3]; br_stp_rcv()
214 bpdu.bridge_id.prio[0] = buf[14]; br_stp_rcv()
215 bpdu.bridge_id.prio[1] = buf[15]; br_stp_rcv()
H A Dbr_stp_if.c284 p->designated_bridge.prio[0] = (newprio >> 8) & 0xFF; br_stp_set_bridge_priority()
285 p->designated_bridge.prio[1] = newprio & 0xFF; br_stp_set_bridge_priority()
290 br->bridge_id.prio[0] = (newprio >> 8) & 0xFF; br_stp_set_bridge_priority()
291 br->bridge_id.prio[1] = newprio & 0xFF; br_stp_set_bridge_priority()
339 id->prio[0], id->prio[1], br_show_bridge_id()
H A Dbr_stp_timer.c62 id->prio[0], id->prio[1], &id->addr); br_message_age_timer_expired()
H A Dbr_device.c389 br->bridge_id.prio[0] = 0x80; br_dev_setup()
390 br->bridge_id.prio[1] = 0x00; br_dev_setup()
H A Dbr_sysfs_br.c195 (br->bridge_id.prio[0] << 8) | br->bridge_id.prio[1]); priority_show()
/linux-4.4.14/include/uapi/linux/netfilter_bridge/
H A Debt_vlan.h14 __u8 prio; /* VLAN User Priority {0-7} */ member in struct:ebt_vlan_info
/linux-4.4.14/net/core/
H A Dnetprio_cgroup.c103 * @prio: prio to set
105 * Set netprio to @prio on @css-@dev pair. Should be called under rtnl
106 * lock and may fail under memory pressure for non-zero @prio.
109 struct net_device *dev, u32 prio) netprio_set_prio()
117 if (!prio && (!map || map->priomap_len <= id)) netprio_set_prio()
125 map->priomap[id] = prio; netprio_set_prio()
156 u32 prio = netprio_prio(parent_css, dev); cgrp_css_online() local
158 ret = netprio_set_prio(css, dev, prio); cgrp_css_online()
193 u32 prio; write_priomap() local
196 if (sscanf(buf, "%"__stringify(IFNAMSIZ)"s %u", devname, &prio) != 2) write_priomap()
205 ret = netprio_set_prio(of_css(of), dev, prio); write_priomap()
108 netprio_set_prio(struct cgroup_subsys_state *css, struct net_device *dev, u32 prio) netprio_set_prio() argument
/linux-4.4.14/net/bridge/netfilter/
H A Debt_vlan.c44 unsigned char prio; /* user_priority, given from frame TCI */ ebt_vlan_mt() local
71 prio = (TCI >> 13) & 0x7; ebt_vlan_mt()
79 EXIT_ON_MISMATCH(prio, EBT_VLAN_PRIO); ebt_vlan_mt()
131 * So we just drop the prio flag. */ ebt_vlan_mt_check()
138 if ((unsigned char) info->prio > 7) { ebt_vlan_mt_check()
139 pr_debug("prio %d is out of range (0-7)\n", ebt_vlan_mt_check()
140 info->prio); ebt_vlan_mt_check()
/linux-4.4.14/kernel/sched/
H A Dcpupri.c36 /* Convert between a 140 based task->prio, and our 102 based cpupri */ convert_prio()
37 static int convert_prio(int prio) convert_prio() argument
41 if (prio == CPUPRI_INVALID) convert_prio()
43 else if (prio == MAX_PRIO) convert_prio()
45 else if (prio >= MAX_RT_PRIO) convert_prio()
48 cpupri = MAX_RT_PRIO - prio + 1; convert_prio()
72 int task_pri = convert_prio(p->prio); cpupri_find()
93 * memory barriers, that can only happen when the highest prio cpupri_find()
178 * of the new prio is seen before we decrement the cpupri_set()
179 * old prio. This makes sure that the loop sees cpupri_set()
H A Drt.c267 /* Try to pull RT tasks here if we lower this rq's prio */ need_pull_rt_task()
268 return rq->rt.highest_prio.curr > prev->prio; need_pull_rt_task()
379 plist_node_init(&p->pushable_tasks, p->prio); enqueue_pushable_task()
382 /* Update the highest prio pushable task */ enqueue_pushable_task()
383 if (p->prio < rq->rt.highest_prio.next) enqueue_pushable_task()
384 rq->rt.highest_prio.next = p->prio; enqueue_pushable_task()
391 /* Update the new highest prio pushable task */ dequeue_pushable_task()
395 rq->rt.highest_prio.next = p->prio; dequeue_pushable_task()
504 if (rt_rq->highest_prio.curr < curr->prio) sched_rt_rq_enqueue()
536 return p->prio != p->normal_prio; rt_se_boosted()
889 return rt_task_of(rt_se)->prio; rt_se_prio()
1014 inc_rt_prio_smp(struct rt_rq *rt_rq, int prio, int prev_prio) inc_rt_prio_smp() argument
1025 if (rq->online && prio < prev_prio) inc_rt_prio_smp()
1026 cpupri_set(&rq->rd->cpupri, rq->cpu, prio); inc_rt_prio_smp()
1030 dec_rt_prio_smp(struct rt_rq *rt_rq, int prio, int prev_prio) dec_rt_prio_smp() argument
1048 void inc_rt_prio_smp(struct rt_rq *rt_rq, int prio, int prev_prio) {} inc_rt_prio_smp() argument
1050 void dec_rt_prio_smp(struct rt_rq *rt_rq, int prio, int prev_prio) {} dec_rt_prio_smp() argument
1056 inc_rt_prio(struct rt_rq *rt_rq, int prio) inc_rt_prio() argument
1060 if (prio < prev_prio) inc_rt_prio()
1061 rt_rq->highest_prio.curr = prio; inc_rt_prio()
1063 inc_rt_prio_smp(rt_rq, prio, prev_prio); inc_rt_prio()
1067 dec_rt_prio(struct rt_rq *rt_rq, int prio) dec_rt_prio() argument
1073 WARN_ON(prio < prev_prio); dec_rt_prio()
1079 if (prio == prev_prio) { dec_rt_prio()
1089 dec_rt_prio_smp(rt_rq, prio, prev_prio); dec_rt_prio()
1094 static inline void inc_rt_prio(struct rt_rq *rt_rq, int prio) {} dec_rt_prio() argument
1095 static inline void dec_rt_prio(struct rt_rq *rt_rq, int prio) {} dec_rt_prio() argument
1147 int prio = rt_se_prio(rt_se); inc_rt_tasks() local
1149 WARN_ON(!rt_prio(prio)); inc_rt_tasks()
1152 inc_rt_prio(rt_rq, prio); inc_rt_tasks()
1207 * Because the prio of an upper entry depends on the lower
1339 * and the lower prio task should be moved to another CPU. select_task_rq_rt()
1340 * Even though this will probably make the lower prio task select_task_rq_rt()
1345 * For equal prio tasks, we just let the scheduler sort it out. select_task_rq_rt()
1355 curr->prio <= p->prio)) { select_task_rq_rt()
1363 p->prio < cpu_rq(target)->rt.highest_prio.curr) select_task_rq_rt()
1406 if (p->prio < rq->curr->prio) { check_preempt_curr_rt()
1424 if (p->prio == rq->curr->prio && !test_tsk_need_resched(rq->curr)) check_preempt_curr_rt()
1648 if (lowest_rq->rt.highest_prio.curr <= task->prio) { find_lock_lowest_rq()
1658 /* if the prio of this runqueue changed, try again */ find_lock_lowest_rq()
1679 if (lowest_rq->rt.highest_prio.curr > task->prio) find_lock_lowest_rq()
1739 if (unlikely(next_task->prio < rq->curr->prio)) { push_rt_task()
2019 if (p && (p->prio < this_rq->rt.highest_prio.curr)) { pull_rt_task()
2031 if (p->prio < src_rq->curr->prio) pull_rt_task()
2041 * case there's an even higher prio task pull_rt_task()
2065 rq->curr->prio <= p->prio)) task_woken_rt()
2140 if (p->prio < rq->curr->prio) switched_to_rt()
2162 if (oldprio < p->prio) prio_changed_rt()
2169 if (p->prio > rq->rt.highest_prio.curr) prio_changed_rt()
2172 /* For UP simply resched on drop of prio */ prio_changed_rt()
2173 if (oldprio < p->prio) prio_changed_rt()
2182 if (p->prio < rq->curr->prio) prio_changed_rt()
H A Ddebug.c123 p->prio); print_task()
151 " task PID tree-key switches prio" print_rq()
637 P(prio); proc_sched_show_task()
H A Dcore.c814 int prio = p->static_prio - MAX_RT_PRIO; set_load_weight() local
826 load->weight = scale_load(prio_to_weight[prio]); set_load_weight()
827 load->inv_weight = prio_to_wmult[prio]; set_load_weight()
947 * __normal_prio - return the priority that is based on the static prio
963 int prio; normal_prio() local
966 prio = MAX_DL_PRIO-1; normal_prio()
968 prio = MAX_RT_PRIO-1 - p->rt_priority; normal_prio()
970 prio = __normal_prio(p); normal_prio()
971 return prio; normal_prio()
989 if (!rt_prio(p->prio)) effective_prio()
991 return p->prio; effective_prio()
1021 } else if (oldprio != p->prio || dl_task(p)) check_class_changed()
2203 p->prio = current->normal_prio; sched_fork()
2216 p->prio = p->normal_prio = __normal_prio(p); sched_fork()
2226 if (dl_prio(p->prio)) { sched_fork()
2229 } else if (rt_prio(p->prio)) { sched_fork()
3027 * Pick up the highest-prio task:
3358 * @prio: prio value (kernel-internal form)
3366 void rt_mutex_setprio(struct task_struct *p, int prio) rt_mutex_setprio() argument
3372 BUG_ON(prio > MAX_PRIO); rt_mutex_setprio()
3394 trace_sched_pi_setprio(p, prio); rt_mutex_setprio()
3395 oldprio = p->prio; rt_mutex_setprio()
3413 if (dl_prio(prio)) { rt_mutex_setprio()
3422 } else if (rt_prio(prio)) { rt_mutex_setprio()
3425 if (oldprio < prio) rt_mutex_setprio()
3436 p->prio = prio; rt_mutex_setprio()
3482 old_prio = p->prio; set_user_nice()
3483 p->prio = effective_prio(p); set_user_nice()
3484 delta = p->prio - old_prio; set_user_nice()
3559 return p->prio - MAX_RT_PRIO; task_prio()
3690 p->prio = rt_mutex_get_effective_prio(p, normal_prio(p)); __setscheduler()
3692 p->prio = normal_prio(p); __setscheduler()
3694 if (dl_prio(p->prio)) __setscheduler()
3696 else if (rt_prio(p->prio)) __setscheduler()
3968 oldprio = p->prio; __sched_setscheduler()
4004 if (oldprio <= p->prio) __sched_setscheduler()
5215 .prio = MAX_PRIO + 1,
H A Ddeadline.c791 if (next && dl_prio(next->prio)) next_deadline()
857 int prio = dl_task_of(dl_se)->prio; inc_dl_tasks() local
860 WARN_ON(!dl_prio(prio)); inc_dl_tasks()
871 int prio = dl_task_of(dl_se)->prio; dec_dl_tasks() local
873 WARN_ON(!dl_prio(prio)); dec_dl_tasks()
1796 * or lowering its prio, so... prio_changed_dl()
/linux-4.4.14/arch/ia64/kernel/
H A Dsys_ia64.c70 long prio; ia64_getpriority() local
72 prio = sys_getpriority(which, who); ia64_getpriority()
73 if (prio >= 0) { ia64_getpriority()
75 prio = 20 - prio; ia64_getpriority()
77 return prio; ia64_getpriority()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
H A Dtracepoint.h97 __field(u8, prio)
104 __entry->prio = *((u8 *)data + 1);
110 TP_printk("bcdc: prio=%d siglen=%d", __entry->prio, __entry->siglen)
H A Dflowring.h61 u8 prio, u8 ifidx);
63 u8 prio, u8 ifidx);
H A Dflowring.c68 u8 prio, u8 ifidx) brcmf_flowring_lookup()
78 fifo = brcmf_flowring_prio2fifo[prio]; brcmf_flowring_lookup()
110 u8 prio, u8 ifidx) brcmf_flowring_create()
121 fifo = brcmf_flowring_prio2fifo[prio]; brcmf_flowring_create()
67 brcmf_flowring_lookup(struct brcmf_flowring *flow, u8 da[ETH_ALEN], u8 prio, u8 ifidx) brcmf_flowring_lookup() argument
109 brcmf_flowring_create(struct brcmf_flowring *flow, u8 da[ETH_ALEN], u8 prio, u8 ifidx) brcmf_flowring_create() argument
H A Dsdio.c264 #define HMB_DATA_FC 4 /* per prio flowcontrol update flag */
320 static uint prio2prec(u32 prio) prio2prec() argument
322 return (prio == PRIO_8021D_NONE || prio == PRIO_8021D_BE) ? prio2prec()
323 (prio^2) : prio; prio2prec()
445 u8 flowcontrol; /* per prio flow control bitmask */
2080 /* Fill in packet len and prio, deliver upward */ brcmf_sdio_readframes()
/linux-4.4.14/include/linux/
H A Dvmpressure.h31 extern void vmpressure_prio(gfp_t gfp, struct mem_cgroup *memcg, int prio);
46 int prio) {}
45 vmpressure_prio(gfp_t gfp, struct mem_cgroup *memcg, int prio) vmpressure_prio() argument
H A Dplist.h40 * | |10| |21| |21| |21| |40| (prio)
86 int prio; member in struct:plist_node
114 .prio = (__prio), \
132 * @prio: initial node priority
134 static inline void plist_node_init(struct plist_node *node, int prio) plist_node_init() argument
136 node->prio = prio; plist_node_init()
H A Dioprio.h8 * Gives us 8 prio classes with 13-bits of data for each class
H A Dtracepoint.h31 int prio; member in struct:tracepoint_func
54 int prio);
220 int prio) \
223 (void *)probe, data, prio); \
454 * __entry->prev_prio = prev->prio;
457 * __entry->next_prio = next->prio;
H A Dsh_intc.h136 int intc_set_priority(unsigned int irq, unsigned int prio);
H A Dinit_task.h196 .prio = MAX_PRIO-20, \
H A Dbio.h54 #define bio_set_prio(bio, prio) do { \
55 WARN_ON(prio >= (1 << IOPRIO_BITS)); \
57 (bio)->bi_rw |= ((unsigned long) (prio) << BIO_PRIO_SHIFT); \
H A Dpm_qos.h169 return dev->power.qos->resume_latency_req->data.pnode.prio; dev_pm_qos_requested_resume_latency()
H A Dbuffer_head.h131 BUFFER_FNS(Prio, prio)
/linux-4.4.14/arch/arm/plat-pxa/
H A Ddma.c33 pxa_dma_prio prio; member in struct:dma_channel
144 seq_printf(s, "\tPriority : %s\n", str_prio[dma_channels[chan].prio]); dbg_show_chan_state()
275 int pxa_request_dma (char *name, pxa_dma_prio prio, pxa_request_dma() argument
291 if ((dma_channels[i].prio == prio) && pxa_request_dma()
298 /* if requested prio group is full, try a hier priority */ pxa_request_dma()
299 } while (!found && prio--); pxa_request_dma()
370 dma_channels[i].prio = min((i & 0xf) >> 2, DMA_PRIO_LOW); pxa_init_dma()
/linux-4.4.14/drivers/sh/intc/
H A Dchip.c129 int intc_set_priority(unsigned int irq, unsigned int prio) intc_set_priority() argument
135 if (!intc_get_prio_level(irq) || prio <= 1) intc_set_priority()
138 ihp = intc_find_irq(d->prio, d->nr_prio, irq); intc_set_priority()
140 if (prio >= (1 << _INTC_WIDTH(ihp->handle))) intc_set_priority()
143 intc_set_prio_level(irq, prio); intc_set_priority()
H A Dcore.c130 /* add irq to d->prio list if priority is available */ intc_register_irq()
132 hp = d->prio + d->nr_prio; intc_register_irq()
256 d->prio = kzalloc(hw->nr_vectors * sizeof(*d->prio), register_intc_controller()
258 if (!d->prio) register_intc_controller()
267 sort(d->prio, hw->nr_prio_regs, sizeof(*d->prio), register_intc_controller()
387 kfree(d->prio); register_intc_controller()
H A Dinternals.h64 struct intc_handle_int *prio; member in struct:intc_desc_int
/linux-4.4.14/arch/powerpc/kvm/
H A Dbook3s.c135 unsigned int prio; kvmppc_book3s_vec2irqprio() local
138 case 0x100: prio = BOOK3S_IRQPRIO_SYSTEM_RESET; break; kvmppc_book3s_vec2irqprio()
139 case 0x200: prio = BOOK3S_IRQPRIO_MACHINE_CHECK; break; kvmppc_book3s_vec2irqprio()
140 case 0x300: prio = BOOK3S_IRQPRIO_DATA_STORAGE; break; kvmppc_book3s_vec2irqprio()
141 case 0x380: prio = BOOK3S_IRQPRIO_DATA_SEGMENT; break; kvmppc_book3s_vec2irqprio()
142 case 0x400: prio = BOOK3S_IRQPRIO_INST_STORAGE; break; kvmppc_book3s_vec2irqprio()
143 case 0x480: prio = BOOK3S_IRQPRIO_INST_SEGMENT; break; kvmppc_book3s_vec2irqprio()
144 case 0x500: prio = BOOK3S_IRQPRIO_EXTERNAL; break; kvmppc_book3s_vec2irqprio()
145 case 0x501: prio = BOOK3S_IRQPRIO_EXTERNAL_LEVEL; break; kvmppc_book3s_vec2irqprio()
146 case 0x600: prio = BOOK3S_IRQPRIO_ALIGNMENT; break; kvmppc_book3s_vec2irqprio()
147 case 0x700: prio = BOOK3S_IRQPRIO_PROGRAM; break; kvmppc_book3s_vec2irqprio()
148 case 0x800: prio = BOOK3S_IRQPRIO_FP_UNAVAIL; break; kvmppc_book3s_vec2irqprio()
149 case 0x900: prio = BOOK3S_IRQPRIO_DECREMENTER; break; kvmppc_book3s_vec2irqprio()
150 case 0xc00: prio = BOOK3S_IRQPRIO_SYSCALL; break; kvmppc_book3s_vec2irqprio()
151 case 0xd00: prio = BOOK3S_IRQPRIO_DEBUG; break; kvmppc_book3s_vec2irqprio()
152 case 0xf20: prio = BOOK3S_IRQPRIO_ALTIVEC; break; kvmppc_book3s_vec2irqprio()
153 case 0xf40: prio = BOOK3S_IRQPRIO_VSX; break; kvmppc_book3s_vec2irqprio()
154 case 0xf60: prio = BOOK3S_IRQPRIO_FAC_UNAVAIL; break; kvmppc_book3s_vec2irqprio()
155 default: prio = BOOK3S_IRQPRIO_MAX; break; kvmppc_book3s_vec2irqprio()
158 return prio; kvmppc_book3s_vec2irqprio()
H A De500_emulate.c38 int prio = -1; dbell2prio() local
42 prio = BOOKE_IRQPRIO_DBELL; dbell2prio()
45 prio = BOOKE_IRQPRIO_DBELL_CRIT; dbell2prio()
51 return prio; dbell2prio()
57 int prio = dbell2prio(param); kvmppc_e500_emul_msgclr() local
59 if (prio < 0) kvmppc_e500_emul_msgclr()
62 clear_bit(prio, &vcpu->arch.pending_exceptions); kvmppc_e500_emul_msgclr()
69 int prio = dbell2prio(rb); kvmppc_e500_emul_msgsnd() local
74 if (prio < 0) kvmppc_e500_emul_msgsnd()
80 set_bit(prio, &cvcpu->arch.pending_exceptions); kvmppc_e500_emul_msgsnd()
H A Dbook3s_xics.c124 XICS_DBG("resend %#x prio %#x\n", state->number, ics_check_resend()
183 XICS_DBG("set_xive %#x server %#x prio %#x MP:%d RS:%d\n", kvmppc_xics_set_xive()
648 * prio(pending_interrupt) < mfrr && kvmppc_h_ipi()
649 * prio(pending_interrupt) < cppr kvmppc_h_ipi()
958 seq_printf(m, "irq 0x%06x: server %#x prio %#x save prio %#x asserted %d resend %d masked pending %d\n",
1158 u64 val, prio; xics_get_source() local
1171 prio = irqp->priority; xics_get_source()
1172 if (prio == MASKED) { xics_get_source()
1174 prio = irqp->saved_priority; xics_get_source()
1176 val |= prio << KVM_XICS_PRIORITY_SHIFT; xics_get_source()
1199 u8 prio; xics_set_source() local
1217 prio = val >> KVM_XICS_PRIORITY_SHIFT; xics_set_source()
1218 if (prio != MASKED && xics_set_source()
1225 irqp->saved_priority = prio; xics_set_source()
1227 prio = MASKED; xics_set_source()
1228 irqp->priority = prio; xics_set_source()
H A Dtrace_booke.h211 TP_printk("vcpu=%x prio=%s pending=%lx",
H A Dbook3s_hv_rm_xics.c464 * prio(pending_interrupt) < mfrr && kvmppc_rm_h_ipi()
465 * prio(pending_interrupt) < cppr kvmppc_rm_h_ipi()
/linux-4.4.14/sound/soc/pxa/
H A Dpxa2xx-ac97.c54 .prio = PXAD_PRIO_LOWEST,
66 .prio = PXAD_PRIO_LOWEST,
78 .prio = PXAD_PRIO_LOWEST,
89 .prio = PXAD_PRIO_LOWEST,
100 .prio = PXAD_PRIO_LOWEST,
/linux-4.4.14/tools/testing/selftests/mqueue/
H A Dmq_perf_tests.c374 void const_prio(int *prio) const_prio() argument
379 void inc_prio(int *prio) inc_prio() argument
381 if (++*prio == mq_prio_max) inc_prio()
382 *prio = 0; inc_prio()
385 void dec_prio(int *prio) dec_prio() argument
387 if (--*prio < 0) dec_prio()
388 *prio = mq_prio_max - 1; dec_prio()
391 void random_prio(int *prio) random_prio() argument
393 *prio = random() % mq_prio_max; random_prio()
397 {"\n\tTest #2a: Time send/recv message, queue full, constant prio\n",
399 {"\n\tTest #2b: Time send/recv message, queue full, increasing prio\n",
401 {"\n\tTest #2c: Time send/recv message, queue full, decreasing prio\n",
403 {"\n\tTest #2d: Time send/recv message, queue full, random prio\n",
412 * 1a) with constant prio
414 * 2a) with constant prio
415 * 2b) with increasing prio
416 * 2c) with decreasing prio
417 * 2d) with random prio
/linux-4.4.14/tools/perf/scripts/python/
H A Dsched-migration.py349 def migrate(self, headers, pid, prio, orig_cpu, dest_cpu):
397 common_callchain, comm, pid, prio):
402 common_callchain, comm, pid, prio):
407 common_callchain, comm, pid, prio):
412 common_callchain, comm, pid, prio, orig_cpu,
416 parser.migrate(headers, pid, prio, orig_cpu, dest_cpu)
430 common_callchain, comm, pid, prio, success,
438 common_callchain, comm, pid, prio, success,
446 common_callchain, comm, pid, prio):
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/
H A Dsched.c86 #define SCALE_PRIO(x, prio) \
87 max(x * (MAX_PRIO - prio) / (MAX_USER_PRIO / 2), MIN_SPU_TIMESLICE)
99 if (ctx->prio < NORMAL_PRIO) spu_set_timeslice()
100 ctx->time_slice = SCALE_PRIO(DEF_SPU_TIMESLICE * 4, ctx->prio); spu_set_timeslice()
102 ctx->time_slice = SCALE_PRIO(DEF_SPU_TIMESLICE, ctx->prio); spu_set_timeslice()
127 * policy so we have to look at ->prio in this case. __spu_update_sched_info()
129 if (rt_prio(current->prio)) __spu_update_sched_info()
130 ctx->prio = current->prio; __spu_update_sched_info()
132 ctx->prio = current->static_prio; __spu_update_sched_info()
509 list_add_tail(&ctx->rq, &spu_prio->runq[ctx->prio]); __spu_add_to_rq()
510 set_bit(ctx->prio, spu_prio->bitmap); __spu_add_to_rq()
525 int prio = ctx->prio; __spu_del_from_rq() local
532 if (list_empty(&spu_prio->runq[prio])) __spu_del_from_rq()
533 clear_bit(prio, spu_prio->bitmap); __spu_del_from_rq()
655 if (tmp && tmp->prio > ctx->prio && find_victim()
657 (!victim || tmp->prio > victim->prio)) { find_victim()
683 if (!spu || victim->prio <= ctx->prio) { find_victim()
808 if (!spu && rt_prio(ctx->prio)) spu_activate()
837 static struct spu_context *grab_runnable_context(int prio, int node) grab_runnable_context() argument
843 best = find_first_bit(spu_prio->bitmap, prio); grab_runnable_context()
844 while (best < prio) { grab_runnable_context()
941 new = grab_runnable_context(ctx->prio + 1, spu->node); spusched_tick()
H A Dspufs.h128 int prio; member in struct:spu_context
/linux-4.4.14/arch/arc/kernel/
H A Dintc-arcv2.c58 * Linux by default uses lower prio 1 for most irqs, reserving 0 for arc_init_IRQ()
65 * IRQ_BCR[27..24] contains N-1 (for N priority levels) and prio level arc_init_IRQ()
70 panic("Linux default irq prio incorrect\n"); arc_init_IRQ()
/linux-4.4.14/arch/unicore32/include/mach/
H A Ddma.h31 puv3_dma_prio prio,
/linux-4.4.14/tools/power/cpupower/bench/
H A Dmain.c38 {"prio", 1, 0, 'p'},
61 printf(" -p, --prio=<priority>\t\t\tscheduler priority, HIGH, LOW or DEFAULT\n"); usage()
123 config->prio = string_to_prio(optarg); main()
124 dprintf("user prio -> %s\n", optarg); main()
H A Dparse.h39 } prio; member in struct:config
H A Dparse.c136 config->prio = SCHED_HIGH; prepare_default_config()
221 config->prio = string_to_prio(val); prepare_config()
H A Dsystem.c171 switch (config->prio) { prepare_system()
/linux-4.4.14/kernel/
H A Dtracepoint.c96 int prio) func_add()
111 if (pos < 0 && old[nr_probes].prio < prio) func_add()
194 struct tracepoint_func *func, int prio) tracepoint_add_func()
203 old = func_add(&tp_funcs, func, prio); tracepoint_add_func()
260 * @prio: priority of this function over other registered functions
269 void *data, int prio) tracepoint_probe_register_prio()
277 tp_func.prio = prio; tracepoint_probe_register_prio()
278 ret = tracepoint_add_func(tp, &tp_func, prio); tracepoint_probe_register_prio()
289 * @prio: priority of this function over other registered functions
95 func_add(struct tracepoint_func **funcs, struct tracepoint_func *tp_func, int prio) func_add() argument
193 tracepoint_add_func(struct tracepoint *tp, struct tracepoint_func *func, int prio) tracepoint_add_func() argument
268 tracepoint_probe_register_prio(struct tracepoint *tp, void *probe, void *data, int prio) tracepoint_probe_register_prio() argument
H A Dauditsc.c204 if (!ctx->prio) { audit_set_auditable()
205 ctx->prio = 1; audit_set_auditable()
689 if (rule->prio <= ctx->prio) audit_filter_rules()
695 ctx->prio = rule->prio; audit_filter_rules()
905 context->prio = state == AUDIT_RECORD_CONTEXT ? ~0ULL : 0; audit_alloc_context()
1519 context->prio = 0; __audit_syscall_entry()
1561 context->prio = context->state == AUDIT_RECORD_CONTEXT ? ~0ULL : 0; __audit_syscall_exit()
1950 if (!ctx->prio) { auditsc_get_stamp()
1951 ctx->prio = 1; auditsc_get_stamp()
H A Dauditfilter.c801 new->prio = old->prio; audit_dupe_rule()
950 entry->rule.prio = ~0ULL; audit_add_rule()
953 entry->rule.prio = ++prio_high; audit_add_rule()
955 entry->rule.prio = --prio_low; audit_add_rule()
H A Daudit.h117 u64 prio; member in struct:audit_context
/linux-4.4.14/net/ipv6/
H A Dip6_udp_tunnel.c76 __u8 prio, __u8 ttl, __be16 src_port, udp_tunnel6_xmit_skb()
101 ip6_flow_hdr(ip6h, prio, htonl(0)); udp_tunnel6_xmit_skb()
72 udp_tunnel6_xmit_skb(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb, struct net_device *dev, struct in6_addr *saddr, struct in6_addr *daddr, __u8 prio, __u8 ttl, __be16 src_port, __be16 dst_port, bool nocheck) udp_tunnel6_xmit_skb() argument
H A Dip6_gre.c242 int prio = 0; __ip6gre_bucket() local
245 prio |= 1; __ip6gre_bucket()
247 prio |= 2; __ip6gre_bucket()
251 return &ign->tunnels[prio][h]; __ip6gre_bucket()
1317 int prio; ip6gre_destroy_tunnels() local
1324 for (prio = 0; prio < 4; prio++) { for_each_netdev_safe()
1329 t = rtnl_dereference(ign->tunnels[prio][h]); for_each_netdev_safe()
H A Dsit.c132 int prio = 0; __ipip6_bucket() local
135 prio |= 2; __ipip6_bucket()
139 prio |= 1; __ipip6_bucket()
142 return &sitn->tunnels[prio][h]; __ipip6_bucket()
1770 int prio; sit_destroy_tunnels() local
1776 for (prio = 1; prio < 4; prio++) { for_each_netdev_safe()
1781 t = rtnl_dereference(sitn->tunnels[prio][h]); for_each_netdev_safe()
H A Dip6_vti.c145 int prio = 0; vti6_tnl_bucket() local
148 prio = 1; vti6_tnl_bucket()
151 return &ip6n->tnls[prio][h]; vti6_tnl_bucket()
H A Dip6_tunnel.c284 int prio = 0; ip6_tnl_bucket() local
287 prio = 1; ip6_tnl_bucket()
290 return &ip6n->tnls[prio][h]; ip6_tnl_bucket()
/linux-4.4.14/mm/
H A Dvmpressure.c60 * prio == DEF_PRIORITY (12): reclaimer starts with that value
61 * prio <= DEF_PRIORITY - 2 : kswapd becomes somewhat overwhelmed
62 * prio == 0 : close to OOM, kernel scans every page in an lru
68 * scans 'lru_size >> prio' pages, so it is actually 12.5%, or one
256 * @prio: reclaimer's priority
263 void vmpressure_prio(gfp_t gfp, struct mem_cgroup *memcg, int prio) vmpressure_prio() argument
266 * We only use prio for accounting critical level. For more info vmpressure_prio()
269 if (prio > vmpressure_level_critical_prio) vmpressure_prio()
273 * OK, the prio is below the threshold, updating vmpressure vmpressure_prio()
H A Dswapfile.c1785 static void _enable_swap_info(struct swap_info_struct *p, int prio, _enable_swap_info() argument
1789 if (prio >= 0) _enable_swap_info()
1790 p->prio = prio; _enable_swap_info()
1792 p->prio = --least_priority; _enable_swap_info()
1794 * the plist prio is negated because plist ordering is _enable_swap_info()
1797 p->list.prio = -p->prio; _enable_swap_info()
1798 p->avail_list.prio = -p->prio; _enable_swap_info()
1822 static void enable_swap_info(struct swap_info_struct *p, int prio, enable_swap_info() argument
1830 _enable_swap_info(p, prio, swap_map, cluster_info); enable_swap_info()
1839 _enable_swap_info(p, p->prio, p->swap_map, p->cluster_info); reinsert_swap_info()
1897 if (p->prio < 0) { SYSCALL_DEFINE1()
1901 si->prio++; SYSCALL_DEFINE1()
1902 si->list.prio--; SYSCALL_DEFINE1()
1903 si->avail_list.prio--; SYSCALL_DEFINE1()
2084 si->prio); swap_show()
2392 int prio; SYSCALL_DEFINE2() local
2537 prio = -1;
2539 prio =
2541 enable_swap_info(p, prio, swap_map, cluster_info, frontswap_map);
2545 p->pages<<(PAGE_SHIFT-10), name->name, p->prio,
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
H A Di40e_dcb_nl.c174 u8 prio, tc_map; i40e_dcbnl_set_all() local
189 prio = dcbxcfg->app[i].priority; i40e_dcbnl_set_all()
190 tc_map = BIT(dcbxcfg->etscfg.prioritytable[prio]); i40e_dcbnl_set_all()
196 sapp.priority = prio; i40e_dcbnl_set_all()
243 dev_dbg(&pf->pdev->dev, "Deleting app for VSI seid=%d err=%d sel=%d proto=0x%x prio=%d\n", i40e_dcbnl_del_app()
/linux-4.4.14/net/dcb/
H A Ddcbnl.c566 u8 prio, pgid, tc_pct, up_map; __dcbnl_pg_getcfg() local
610 prio = DCB_ATTR_VALUE_UNDEFINED; __dcbnl_pg_getcfg()
617 i - DCB_PG_ATTR_TC_0, &prio, __dcbnl_pg_getcfg()
622 i - DCB_PG_ATTR_TC_0, &prio, __dcbnl_pg_getcfg()
643 DCB_TC_ATTR_PARAM_STRICT_PRIO, prio); __dcbnl_pg_getcfg()
782 u8 prio; __dcbnl_pg_setcfg() local
809 prio = DCB_ATTR_VALUE_UNDEFINED; __dcbnl_pg_setcfg()
814 prio = __dcbnl_pg_setcfg()
832 prio, pgid, tc_pct, up_map); __dcbnl_pg_setcfg()
837 prio, pgid, tc_pct, up_map); __dcbnl_pg_setcfg()
1169 u8 pgid, up_map, prio, tc_pct; dcbnl_cee_pg_fill() local
1184 prio = DCB_ATTR_VALUE_UNDEFINED; dcbnl_cee_pg_fill()
1190 &prio, &pgid, &tc_pct, &up_map); dcbnl_cee_pg_fill()
1193 &prio, &pgid, &tc_pct, &up_map); dcbnl_cee_pg_fill()
1197 nla_put_u8(skb, DCB_TC_ATTR_PARAM_STRICT_PRIO, prio) || dcbnl_cee_pg_fill()
1758 int ifindex, int prio) dcb_app_lookup()
1766 (!prio || itr->app.priority == prio)) dcb_app_lookup()
1798 u8 prio = 0; dcb_getapp() local
1802 prio = itr->app.priority; dcb_getapp()
1805 return prio; dcb_getapp()
1859 u8 prio = 0; dcb_ieee_getapp_mask() local
1863 prio |= 1 << itr->app.priority; dcb_ieee_getapp_mask()
1866 return prio; dcb_ieee_getapp_mask()
1757 dcb_app_lookup(const struct dcb_app *app, int ifindex, int prio) dcb_app_lookup() argument
/linux-4.4.14/arch/blackfin/kernel/
H A Dipipe.c169 int prio = __ipipe_get_irq_priority(irq); __ipipe_enable_irqdesc() local
173 atomic_inc_return(&__ipipe_irq_lvdepth[prio]) == 1) __ipipe_enable_irqdesc()
174 __set_bit(prio, &__ipipe_irq_lvmask); __ipipe_enable_irqdesc()
180 int prio = __ipipe_get_irq_priority(irq); __ipipe_disable_irqdesc() local
183 atomic_dec_and_test(&__ipipe_irq_lvdepth[prio])) __ipipe_disable_irqdesc()
184 __clear_bit(prio, &__ipipe_irq_lvmask); __ipipe_disable_irqdesc()
/linux-4.4.14/drivers/md/bcache/
H A Dextents.c139 printk(" prio %i", bch_bkey_dump()
140 PTR_BUCKET(b->c, k, j)->prio); bch_bkey_dump()
183 g->prio != BTREE_PRIO || btree_ptr_bad_expensive()
197 "inconsistent btree pointer %s: bucket %zi pin %i prio %i gen %i last_gc %i mark %llu", btree_ptr_bad_expensive()
199 g->prio, g->gen, g->last_gc, GC_MARK(g)); btree_ptr_bad_expensive()
516 if (g->prio == BTREE_PRIO) bch_extent_bad_expensive()
527 "inconsistent extent pointer %s:\nbucket %zu pin %i prio %i gen %i last_gc %i mark %llu", bch_extent_bad_expensive()
529 g->prio, g->gen, g->last_gc, GC_MARK(g)); bch_extent_bad_expensive()
H A Dalloc.c107 if (b->prio && for_each_cache()
108 b->prio != BTREE_PRIO && for_each_cache()
110 b->prio--; for_each_cache()
111 c->min_prio = min(c->min_prio, b->prio); for_each_cache()
148 b->prio = INITIAL_PRIO; __bch_invalidate_one_bucket()
165 * prio is worth 1/8th of what INITIAL_PRIO is worth.
172 (b->prio - ca->set->min_prio + min_prio) * GC_SECTORS_USED(b); \
437 b->prio = BTREE_PRIO; bch_bucket_alloc()
441 b->prio = INITIAL_PRIO; bch_bucket_alloc()
472 /* sort by free space/prio of oldest data in caches */ __bch_bucket_alloc_set()
H A Dsuper.c498 closure_put(&ca->prio); prio_endio()
503 struct closure *cl = &ca->prio; prio_io()
517 closure_bio_submit(bio, &ca->prio); prio_io()
548 d->prio = cpu_to_le16(b->prio); bch_prio_write()
614 b->prio = le16_to_cpu(d->prio); prio_read()
H A Dbcache.h196 uint16_t prio; member in struct:bucket
391 struct closure prio; member in struct:cache
399 * allocated for the next prio write.
H A Dbtree.c1237 b->prio = BTREE_PRIO; bch_initial_mark_key()
1238 else if (!level && b->prio == BTREE_PRIO) bch_initial_mark_key()
1239 b->prio = INITIAL_PRIO; bch_initial_mark_key()
1859 * We need to put some unused buckets directly on the prio freelist in bch_initial_gc_finish()
2254 BUG_ON(PTR_BUCKET(b->c, &b->key, i)->prio != BTREE_PRIO); bch_btree_set_root()
H A Dsysfs.c786 p[i] = ca->buckets[i].prio;
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_dcb.c332 /* find cos for nw prio and extend it with unmapped */ bnx2x_dcbx_map_nw()
699 u8 prio, cos; bnx2x_dcbx_update_tc_mapping() local
701 for (prio = 0; prio < BNX2X_MAX_PRIORITY; prio++) { bnx2x_dcbx_update_tc_mapping()
703 & (1 << prio)) { bnx2x_dcbx_update_tc_mapping()
704 bp->prio_to_cos[prio] = cos; bnx2x_dcbx_update_tc_mapping()
706 "tx_mapping %d --> %d\n", prio, cos); bnx2x_dcbx_update_tc_mapping()
1950 static void bnx2x_dcbnl_set_pg_tccfg_tx(struct net_device *netdev, int prio, bnx2x_dcbnl_set_pg_tccfg_tx() argument
1956 DP(BNX2X_MSG_DCB, "prio[%d] = %d\n", prio, pgid); bnx2x_dcbnl_set_pg_tccfg_tx()
1957 if (!bnx2x_dcbnl_set_valid(bp) || prio >= DCBX_MAX_NUM_PRI_PG_ENTRIES) bnx2x_dcbnl_set_pg_tccfg_tx()
1973 bp->dcbx_config_params.admin_configuration_ets_pg[prio] = pgid; bnx2x_dcbnl_set_pg_tccfg_tx()
1990 static void bnx2x_dcbnl_set_pg_tccfg_rx(struct net_device *netdev, int prio, bnx2x_dcbnl_set_pg_tccfg_rx() argument
2005 static void bnx2x_dcbnl_get_pg_tccfg_tx(struct net_device *netdev, int prio, bnx2x_dcbnl_get_pg_tccfg_tx() argument
2010 DP(BNX2X_MSG_DCB, "prio = %d\n", prio); bnx2x_dcbnl_get_pg_tccfg_tx()
2026 if (!bp->dcb_state || prio >= DCBX_MAX_NUM_PRI_PG_ENTRIES) bnx2x_dcbnl_get_pg_tccfg_tx()
2029 *pgid = DCBX_PRI_PG_GET(bp->dcbx_local_feat.ets.pri_pg_tbl, prio); bnx2x_dcbnl_get_pg_tccfg_tx()
2046 static void bnx2x_dcbnl_get_pg_tccfg_rx(struct net_device *netdev, int prio, bnx2x_dcbnl_get_pg_tccfg_rx() argument
2065 static void bnx2x_dcbnl_set_pfc_cfg(struct net_device *netdev, int prio, bnx2x_dcbnl_set_pfc_cfg() argument
2069 DP(BNX2X_MSG_DCB, "prio[%d] = %d\n", prio, setting); bnx2x_dcbnl_set_pfc_cfg()
2071 if (!bnx2x_dcbnl_set_valid(bp) || prio >= MAX_PFC_PRIORITIES) bnx2x_dcbnl_set_pfc_cfg()
2075 bp->dcbx_config_params.admin_pfc_bitmap |= (1 << prio); bnx2x_dcbnl_set_pfc_cfg()
2078 bp->dcbx_config_params.admin_pfc_bitmap &= ~(1 << prio); bnx2x_dcbnl_set_pfc_cfg()
2082 static void bnx2x_dcbnl_get_pfc_cfg(struct net_device *netdev, int prio, bnx2x_dcbnl_get_pfc_cfg() argument
2086 DP(BNX2X_MSG_DCB, "prio = %d\n", prio); bnx2x_dcbnl_get_pfc_cfg()
2090 if (!bp->dcb_state || prio >= MAX_PFC_PRIORITIES) bnx2x_dcbnl_get_pfc_cfg()
2093 *setting = (bp->dcbx_local_feat.pfc.pri_en_bitmap >> prio) & 0x1; bnx2x_dcbnl_get_pfc_cfg()
2312 DP(BNX2X_MSG_DCB, "app_type %d, app_id %x, prio bitmap %d\n", bnx2x_dcbnl_set_app_up()
H A Dbnx2x_cmn.c4276 int cos, prio, count, offset; bnx2x_setup_tc() local
4303 for (prio = 0; prio < BNX2X_MAX_PRIORITY; prio++) { bnx2x_setup_tc()
4304 int outer_prio = c2s_map[prio]; bnx2x_setup_tc()
4306 netdev_set_prio_tc_map(dev, prio, bp->prio_to_cos[outer_prio]); bnx2x_setup_tc()
4317 for (prio = 1; prio < 16; prio++) { bnx2x_setup_tc()
4318 netdev_set_prio_tc_map(dev, prio, 1); bnx2x_setup_tc()
4319 DP(BNX2X_MSG_SP, "mapping priority %d to tc %d\n", prio, 1); bnx2x_setup_tc()
/linux-4.4.14/kernel/locking/
H A Drtmutex.c163 if (left->prio < right->prio) rt_mutex_waiter_less()
172 if (dl_prio(left->prio)) rt_mutex_waiter_less()
268 return min(task_top_pi_waiter(task)->prio, rt_mutex_getprio()
289 if (task_top_pi_waiter(task)->task->prio <= newprio) rt_mutex_get_effective_prio()
290 return task_top_pi_waiter(task)->task->prio; rt_mutex_get_effective_prio()
301 int prio = rt_mutex_getprio(task); __rt_mutex_adjust_prio() local
303 if (task->prio != prio || dl_prio(prio)) __rt_mutex_adjust_prio()
304 rt_mutex_setprio(task, prio); __rt_mutex_adjust_prio()
546 if (waiter->prio == task->prio) { rt_mutex_adjust_prio_chain()
642 waiter->prio = task->prio; rt_mutex_adjust_prio_chain()
826 * If @task->prio is greater than or equal to try_to_take_rt_mutex()
830 if (task->prio >= rt_mutex_top_waiter(lock)->prio) try_to_take_rt_mutex()
915 waiter->prio = task->prio; task_blocks_on_rt_mutex()
1081 if (!waiter || (waiter->prio == task->prio && rt_mutex_adjust_pi()
1082 !dl_prio(task->prio))) { rt_mutex_adjust_pi()
H A Drtmutex-debug.c36 printk("%16s:%5d [%p, %3d]", p->comm, task_pid_nr(p), p, p->prio); printk_task()
H A Drtmutex_common.h35 int prio; member in struct:rt_mutex_waiter
H A Dlocktorture.c410 * then restored back to its original prio, and so forth. torture_rtmutex_boost()
604 cxt.cur_ops->task_boost(NULL); /* reset prio */ lock_torture_writer()
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_dcb.c793 qlcnic_dcb_get_pg_tc_cfg_tx(struct net_device *netdev, int tc, u8 *prio, qlcnic_dcb_get_pg_tc_cfg_tx() argument
802 *prio = *pgid = *bw_per = *up_tc_map = 0; qlcnic_dcb_get_pg_tc_cfg_tx()
816 *prio = tc_cfg->prio_type; qlcnic_dcb_get_pg_tc_cfg_tx()
854 static void qlcnic_dcb_get_pfc_cfg(struct net_device *netdev, int prio, qlcnic_dcb_get_pfc_cfg() argument
859 u8 val = QLC_DCB_GET_MAP(prio); qlcnic_dcb_get_pfc_cfg()
875 if ((val & tc_cfg->up_tc_map) && (tc_cfg->prio_cfg[prio].valid)) qlcnic_dcb_get_pfc_cfg()
876 *setting = tc_cfg->prio_cfg[prio].pfc_type; qlcnic_dcb_get_pfc_cfg()
1003 qlcnic_dcb_get_pg_tc_cfg_rx(struct net_device *netdev, int prio, u8 *prio_type, qlcnic_dcb_get_pg_tc_cfg_rx() argument
1103 u8 i, setting, prio; qlcnic_dcb_cee_peer_get_pfc() local
1114 prio = qlcnic_dcb_prio_count(tc->up_tc_map); qlcnic_dcb_cee_peer_get_pfc()
1117 qlcnic_dcb_get_pfc_cfg(netdev, prio, &setting); qlcnic_dcb_cee_peer_get_pfc()
/linux-4.4.14/drivers/s390/cio/
H A Dorb.h52 u32 prio:8; member in struct:tm_orb
/linux-4.4.14/arch/c6x/include/asm/
H A Dirq.h49 extern asmlinkage void c6x_do_IRQ(unsigned int prio, struct pt_regs *regs);
/linux-4.4.14/include/uapi/asm-generic/
H A Dresource.h44 #define RLIMIT_NICE 13 /* max nice prio allowed to raise to
/linux-4.4.14/tools/perf/scripts/perl/
H A Dwakeup-latency.pl55 $comm, $pid, $prio, $success, $target_cpu) = @_;
/linux-4.4.14/tools/perf/tests/
H A Devsel-tp-sched.c81 if (perf_evsel__test_field(evsel, "prio", 4, true)) test__perf_evsel__tp_sched_test()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_dcb_nl.c193 u8 prio, u8 bwg_id, u8 bw_pct, ixgbe_dcbnl_set_pg_tc_cfg_tx()
198 if (prio != DCB_ATTR_VALUE_UNDEFINED) ixgbe_dcbnl_set_pg_tc_cfg_tx()
199 adapter->temp_dcb_cfg.tc_config[tc].path[0].prio_type = prio; ixgbe_dcbnl_set_pg_tc_cfg_tx()
219 u8 prio, u8 bwg_id, u8 bw_pct, ixgbe_dcbnl_set_pg_tc_cfg_rx()
224 if (prio != DCB_ATTR_VALUE_UNDEFINED) ixgbe_dcbnl_set_pg_tc_cfg_rx()
225 adapter->temp_dcb_cfg.tc_config[tc].path[1].prio_type = prio; ixgbe_dcbnl_set_pg_tc_cfg_rx()
245 u8 *prio, u8 *bwg_id, u8 *bw_pct, ixgbe_dcbnl_get_pg_tc_cfg_tx()
250 *prio = adapter->dcb_cfg.tc_config[tc].path[0].prio_type; ixgbe_dcbnl_get_pg_tc_cfg_tx()
265 u8 *prio, u8 *bwg_id, u8 *bw_pct, ixgbe_dcbnl_get_pg_tc_cfg_rx()
270 *prio = adapter->dcb_cfg.tc_config[tc].path[1].prio_type; ixgbe_dcbnl_get_pg_tc_cfg_rx()
192 ixgbe_dcbnl_set_pg_tc_cfg_tx(struct net_device *netdev, int tc, u8 prio, u8 bwg_id, u8 bw_pct, u8 up_map) ixgbe_dcbnl_set_pg_tc_cfg_tx() argument
218 ixgbe_dcbnl_set_pg_tc_cfg_rx(struct net_device *netdev, int tc, u8 prio, u8 bwg_id, u8 bw_pct, u8 up_map) ixgbe_dcbnl_set_pg_tc_cfg_rx() argument
244 ixgbe_dcbnl_get_pg_tc_cfg_tx(struct net_device *netdev, int tc, u8 *prio, u8 *bwg_id, u8 *bw_pct, u8 *up_map) ixgbe_dcbnl_get_pg_tc_cfg_tx() argument
264 ixgbe_dcbnl_get_pg_tc_cfg_rx(struct net_device *netdev, int tc, u8 *prio, u8 *bwg_id, u8 *bw_pct, u8 *up_map) ixgbe_dcbnl_get_pg_tc_cfg_rx() argument
H A Dixgbe_dcb.c325 /* Map TSA onto CEE prio type */ ixgbe_dcb_hw_ets()
/linux-4.4.14/kernel/trace/
H A Dring_buffer_benchmark.c50 MODULE_PARM_DESC(producer_nice, "nice prio for producer");
53 MODULE_PARM_DESC(consumer_nice, "nice prio for consumer");
56 MODULE_PARM_DESC(producer_fifo, "fifo prio for producer");
59 MODULE_PARM_DESC(consumer_fifo, "fifo prio for consumer");
453 * Run them as low-prio background tasks by default: ring_buffer_benchmark_init()
H A Dtrace_sched_wakeup.c387 entry->prev_prio = prev->prio; tracing_sched_switch_trace()
390 entry->next_prio = next->prio; tracing_sched_switch_trace()
415 entry->prev_prio = curr->prio; tracing_sched_wakeup_trace()
418 entry->next_prio = wakee->prio; tracing_sched_wakeup_trace()
545 (!dl_task(p) && (p->prio >= wakeup_prio || p->prio >= current->prio))) probe_wakeup()
558 (!dl_task(p) && p->prio >= wakeup_prio)) probe_wakeup()
566 wakeup_prio = p->prio; probe_wakeup()
H A Dtrace_entries.h113 * Context switch trace entry - which task (and prio) we switched from/to:
/linux-4.4.14/arch/powerpc/platforms/cell/
H A Dinterrupt.c70 return IIC_IRQ_TYPE_IPI | (bits.prio >> 4); iic_pending_to_hwnum()
86 out_be64(&iic->regs->prio, iic->eoi_stack[--iic->eoi_ptr]); iic_eoi()
160 iic->eoi_stack[++iic->eoi_ptr] = pending.prio; iic_get_irq()
167 out_be64(&this_cpu_ptr(&cpu_iic)->regs->prio, 0xff); iic_setup_cpu()
310 out_be64(&iic->regs->prio, 0); init_one_iic()
/linux-4.4.14/drivers/net/can/
H A Dat91_can.c294 unsigned int mb, enum at91_mb_mode mode, int prio) set_mb_mode_prio()
296 at91_write(priv, AT91_MMR(mb), (mode << 24) | (prio << 16)); set_mb_mode_prio()
437 * We use the first TX mailbox (AT91_MB_TX_FIRST) with prio 0, then
438 * the next mailbox with prio 0, and so on, until all mailboxes are
440 * AT91_MB_TX_FIRST, but with prio 1, mailbox AT91_MB_TX_FIRST + 1
441 * prio 1. When we reach the last mailbox with prio 15, we have to
443 * again with mailbox AT91_MB_TX_FIRST prio 0.
449 * priv->tx_next = (prio << get_next_prio_shift(priv)) |
458 unsigned int mb, prio; at91_start_xmit() local
465 prio = get_tx_next_prio(priv); at91_start_xmit()
480 set_mb_mode_prio(priv, mb, AT91_MB_MODE_TX, prio); at91_start_xmit()
495 * of a prio+mb counter wrap around. This is the case if at91_start_xmit()
496 * tx_next buffer prio and mailbox equals 0. at91_start_xmit()
293 set_mb_mode_prio(const struct at91_priv *priv, unsigned int mb, enum at91_mb_mode mode, int prio) set_mb_mode_prio() argument
/linux-4.4.14/drivers/gpu/drm/rcar-du/
H A Drcar_du_crtc.c213 unsigned int prio = 0; rcar_du_crtc_update_planes() local
232 prio += plane_format(plane)->planes * 4; rcar_du_crtc_update_planes()
240 prio -= 4; rcar_du_crtc_update_planes()
241 dspr |= (index + 1) << prio; rcar_du_crtc_update_planes()
247 prio -= 4; rcar_du_crtc_update_planes()
248 dspr |= (index + 1) << prio; rcar_du_crtc_update_planes()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/
H A Dpci.c562 static void _rtl_pci_tx_isr(struct ieee80211_hw *hw, int prio) _rtl_pci_tx_isr() argument
567 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[prio]; _rtl_pci_tx_isr()
582 rtlpriv->cfg->ops->get_available_desc(hw, prio) <= 1) { _rtl_pci_tx_isr()
588 if (!rtlpriv->cfg->ops->is_tx_desc_closed(hw, prio, ring->idx)) _rtl_pci_tx_isr()
609 if (prio == TXCMD_QUEUE) { _rtl_pci_tx_isr()
655 prio, ring->idx, _rtl_pci_tx_isr()
1240 unsigned int prio, unsigned int entries) _rtl_pci_init_tx_ring()
1259 "Cannot allocate TX ring (prio = %d)\n", _rtl_pci_init_tx_ring()
1260 prio); _rtl_pci_init_tx_ring()
1264 rtlpci->tx_ring[prio].buffer_desc = buffer_desc; _rtl_pci_init_tx_ring()
1265 rtlpci->tx_ring[prio].buffer_desc_dma = buffer_desc_dma; _rtl_pci_init_tx_ring()
1267 rtlpci->tx_ring[prio].cur_tx_rp = 0; _rtl_pci_init_tx_ring()
1268 rtlpci->tx_ring[prio].cur_tx_wp = 0; _rtl_pci_init_tx_ring()
1269 rtlpci->tx_ring[prio].avl_desc = entries; _rtl_pci_init_tx_ring()
1278 "Cannot allocate TX ring (prio = %d)\n", prio); _rtl_pci_init_tx_ring()
1282 rtlpci->tx_ring[prio].desc = desc; _rtl_pci_init_tx_ring()
1283 rtlpci->tx_ring[prio].dma = desc_dma; _rtl_pci_init_tx_ring()
1285 rtlpci->tx_ring[prio].idx = 0; _rtl_pci_init_tx_ring()
1286 rtlpci->tx_ring[prio].entries = entries; _rtl_pci_init_tx_ring()
1287 skb_queue_head_init(&rtlpci->tx_ring[prio].queue); _rtl_pci_init_tx_ring()
1290 prio, desc); _rtl_pci_init_tx_ring()
1371 unsigned int prio) _rtl_pci_free_tx_ring()
1375 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[prio]; _rtl_pci_free_tx_ring()
1239 _rtl_pci_init_tx_ring(struct ieee80211_hw *hw, unsigned int prio, unsigned int entries) _rtl_pci_init_tx_ring() argument
1370 _rtl_pci_free_tx_ring(struct ieee80211_hw *hw, unsigned int prio) _rtl_pci_free_tx_ring() argument
/linux-4.4.14/drivers/net/wireless/realtek/rtl818x/rtl8180/
H A Ddev.c162 * and HI-prio queues.
169 * name | reg | prio
183 * name | reg | prio
342 static void rtl8180_handle_tx(struct ieee80211_hw *dev, unsigned int prio) rtl8180_handle_tx() argument
345 struct rtl8180_tx_ring *ring = &priv->tx_ring[prio]; rtl8180_handle_tx()
372 ieee80211_wake_queue(dev, prio); rtl8180_handle_tx()
464 unsigned int idx, prio, hw_prio; rtl8180_tx() local
473 prio = skb_get_queue_mapping(skb); rtl8180_tx()
474 ring = &priv->tx_ring[prio]; rtl8180_tx()
575 ieee80211_stop_queue(dev, prio); rtl8180_tx()
581 hw_prio = rtl8187se_queues_map[prio]; rtl8180_tx()
585 hw_prio = rtl8180_queues_map[prio]; rtl8180_tx()
856 /* mac80211 queue have higher prio for lower index. The last queue rtl8180_init_hw()
1065 unsigned int prio, unsigned int entries) rtl8180_init_tx_ring()
1075 wiphy_err(dev->wiphy, "Cannot allocate TX ring (prio = %d)\n", rtl8180_init_tx_ring()
1076 prio); rtl8180_init_tx_ring()
1080 priv->tx_ring[prio].desc = ring; rtl8180_init_tx_ring()
1081 priv->tx_ring[prio].dma = dma; rtl8180_init_tx_ring()
1082 priv->tx_ring[prio].idx = 0; rtl8180_init_tx_ring()
1083 priv->tx_ring[prio].entries = entries; rtl8180_init_tx_ring()
1084 skb_queue_head_init(&priv->tx_ring[prio].queue); rtl8180_init_tx_ring()
1093 static void rtl8180_free_tx_ring(struct ieee80211_hw *dev, unsigned int prio) rtl8180_free_tx_ring() argument
1096 struct rtl8180_tx_ring *ring = &priv->tx_ring[prio]; rtl8180_free_tx_ring()
1064 rtl8180_init_tx_ring(struct ieee80211_hw *dev, unsigned int prio, unsigned int entries) rtl8180_init_tx_ring() argument
/linux-4.4.14/sound/arm/
H A Dpxa2xx-ac97.c48 .prio = PXAD_PRIO_LOWEST,
60 .prio = PXAD_PRIO_LOWEST,
/linux-4.4.14/include/uapi/linux/
H A Dvirtio_scsi.h48 __u8 prio; /* SAM command priority field */ member in struct:virtio_scsi_cmd_req
58 __u8 prio; /* SAM command priority field */ member in struct:virtio_scsi_cmd_req_pi
H A Dpkt_sched.h291 __u8 prio; /* prio of this VQ */ member in struct:tc_gred_qopt
347 __u32 prio; member in struct:tc_htb_opt
H A Dbcache.h308 __u16 prio; member in struct:prio_set::bucket_disk
H A Dif_link.h272 __u8 prio[2]; member in struct:ifla_bridge_id
/linux-4.4.14/tools/testing/selftests/futex/functional/
H A Dfutex_requeue_pi_signal_restart.c53 int policy, int prio) create_rt_thread()
74 schedp.sched_priority = prio; create_rt_thread()
52 create_rt_thread(pthread_t *pth, void*(*func)(void *), void *arg, int policy, int prio) create_rt_thread() argument
H A Dfutex_requeue_pi.c74 int policy, int prio) create_rt_thread()
95 schedp.sched_priority = prio; create_rt_thread()
73 create_rt_thread(pthread_t *pth, void*(*func)(void *), void *arg, int policy, int prio) create_rt_thread() argument
/linux-4.4.14/net/ipv6/netfilter/
H A Dnft_chain_route_ipv6.c45 /* flowlabel and prio (includes version, which shouldn't change either */ nf_route_table_hook()
H A Dip6table_mangle.c57 /* flowlabel and prio (includes version, which shouldn't change either */ ip6t_mangle_out()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_buffers.c341 u8 prio; member in struct:mlxsw_sp_sb_mm
349 .prio = _prio, \
385 mlxsw_reg_sbmm_pack(sbmm_pl, mc->prio, mc->min_buff, mlxsw_sp_sb_mms_init()
/linux-4.4.14/kernel/power/
H A Dqos.c159 return plist_first(&c->list)->prio; pm_qos_get_value()
162 return plist_last(&c->list)->prio; pm_qos_get_value()
166 total_value += node->prio; pm_qos_get_value()
232 if ((req->node).prio != c->default_value) { pm_qos_dbg_show_requests()
238 (req->node).prio, state); pm_qos_dbg_show_requests()
412 if (new_value != req->node.prio) __pm_qos_update_request()
511 if (new_value != req->node.prio) pm_qos_update_request_timeout()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4.h127 u64 tx_ppp0; /* # of transmitted PPP prio 0 frames */
128 u64 tx_ppp1; /* # of transmitted PPP prio 1 frames */
129 u64 tx_ppp2; /* # of transmitted PPP prio 2 frames */
130 u64 tx_ppp3; /* # of transmitted PPP prio 3 frames */
131 u64 tx_ppp4; /* # of transmitted PPP prio 4 frames */
132 u64 tx_ppp5; /* # of transmitted PPP prio 5 frames */
133 u64 tx_ppp6; /* # of transmitted PPP prio 6 frames */
134 u64 tx_ppp7; /* # of transmitted PPP prio 7 frames */
157 u64 rx_ppp0; /* # of received PPP prio 0 frames */
158 u64 rx_ppp1; /* # of received PPP prio 1 frames */
159 u64 rx_ppp2; /* # of received PPP prio 2 frames */
160 u64 rx_ppp3; /* # of received PPP prio 3 frames */
161 u64 rx_ppp4; /* # of received PPP prio 4 frames */
162 u64 rx_ppp5; /* # of received PPP prio 5 frames */
163 u64 rx_ppp6; /* # of received PPP prio 6 frames */
164 u64 rx_ppp7; /* # of received PPP prio 7 frames */
830 uint32_t prio:1; /* filter has priority over active/server */ member in struct:ch_filter_specification
H A Dl2t.h84 u16 vlan; /* VLAN TCI (id: bits 0-11, prio: 13-15 */
H A Dcxgb4_uld.h186 static inline void set_wr_txq(struct sk_buff *skb, int prio, int queue) set_wr_txq() argument
188 skb_set_queue_mapping(skb, (queue << 1) | prio); set_wr_txq()
H A Dcxgb4_dcb.c366 "Failed DCB Set Application Priority: sel=%d, prot=%d, prio=%d, err=%d\n", cxgb4_dcb_handle_fw_update()
1006 int prio; cxgb4_ieee_getapp() local
1014 prio = __cxgb4_getapp(dev, app->selector - 1, app->protocol, 0); cxgb4_ieee_getapp()
1016 if (prio < 0) cxgb4_ieee_getapp()
1017 prio = dcb_ieee_getapp_mask(dev, app); cxgb4_ieee_getapp()
1019 app->priority = ffs(prio) - 1; cxgb4_ieee_getapp()
/linux-4.4.14/drivers/staging/rtl8192e/rtl8192e/
H A Drtl_core.c271 static short _rtl92e_check_nic_enough_desc(struct net_device *dev, int prio) _rtl92e_check_nic_enough_desc() argument
274 struct rtl8192_tx_ring *ring = &priv->tx_ring[prio]; _rtl92e_check_nic_enough_desc()
1592 static void _rtl92e_free_tx_ring(struct net_device *dev, unsigned int prio) _rtl92e_free_tx_ring() argument
1595 struct rtl8192_tx_ring *ring = &priv->tx_ring[prio]; _rtl92e_free_tx_ring()
1677 static void _rtl92e_tx_isr(struct net_device *dev, int prio) _rtl92e_tx_isr() argument
1681 struct rtl8192_tx_ring *ring = &priv->tx_ring[prio]; _rtl92e_tx_isr()
1687 if (prio != BEACON_QUEUE) { _rtl92e_tx_isr()
1699 if (prio != BEACON_QUEUE) _rtl92e_tx_isr()
1850 static int _rtl92e_alloc_tx_ring(struct net_device *dev, unsigned int prio, _rtl92e_alloc_tx_ring() argument
1860 netdev_warn(dev, "Cannot allocate TX ring (prio = %d)\n", prio); _rtl92e_alloc_tx_ring()
1864 priv->tx_ring[prio].desc = ring; _rtl92e_alloc_tx_ring()
1865 priv->tx_ring[prio].dma = dma; _rtl92e_alloc_tx_ring()
1866 priv->tx_ring[prio].idx = 0; _rtl92e_alloc_tx_ring()
1867 priv->tx_ring[prio].entries = entries; _rtl92e_alloc_tx_ring()
1868 skb_queue_head_init(&priv->tx_ring[prio].queue); _rtl92e_alloc_tx_ring()
/linux-4.4.14/drivers/infiniband/hw/ocrdma/
H A Docrdma.h581 static inline u8 ocrdma_get_pfc_prio(u8 *pfc, u8 prio) ocrdma_get_pfc_prio() argument
583 return *(pfc + prio); ocrdma_get_pfc_prio()
586 static inline u8 ocrdma_get_app_prio(u8 *app_prio, u8 prio) ocrdma_get_app_prio() argument
588 return *(app_prio + prio); ocrdma_get_app_prio()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/
H A Dmac80211_if.h99 bool state, int prio);
H A Dscb.h70 uint fragresid[NUMPRIO];/* #bytes unused in frag buffer per prio */
/linux-4.4.14/drivers/net/
H A Dgeneve.c762 __u8 prio; geneve_get_v6_dst() local
773 prio = geneve->tos; geneve_get_v6_dst()
774 if (prio == 1) { geneve_get_v6_dst()
777 prio = ip_tunnel_get_dsfield(iip, skb); geneve_get_v6_dst()
780 fl6->flowi6_tos = RT_TOS(prio); geneve_get_v6_dst()
909 __u8 prio, ttl; geneve6_xmit_skb() local
948 prio = ip_tunnel_ecn_encap(key->tos, iip, skb); geneve6_xmit_skb()
957 prio = ip_tunnel_ecn_encap(fl6.flowi6_tos, iip, skb); geneve6_xmit_skb()
964 &fl6.saddr, &fl6.daddr, prio, ttl, geneve6_xmit_skb()
/linux-4.4.14/arch/arc/include/asm/
H A Dptrace.h43 * For interrupts, use artificial ECR values to note current prio-level
/linux-4.4.14/include/net/
H A Dudp_tunnel.h91 __u8 prio, __u8 ttl, __be16 src_port,
/linux-4.4.14/arch/powerpc/include/asm/
H A Dxics.h48 void (*set_priority)(unsigned char prio); icp_hv_init()
H A Dcell-regs.h172 u8 prio; member in struct:cbe_iic_pending_bits
182 u64 prio; member in struct:cbe_iic_thread_regs
H A Dmpic.h368 /* Enable delivery of prio 15 interrupts as MCK instead of EE */
464 extern void mpic_cpu_set_priority(int prio);
/linux-4.4.14/arch/arm/plat-pxa/include/plat/
H A Ddma.h79 pxa_dma_prio prio,
/linux-4.4.14/tools/lib/traceevent/
H A Dplugin_sched_switch.c84 if (pevent_get_field_val(s, event, "prio", record, &val, 0) == 0) sched_wakeup_handler()
H A Devent-parse.c1872 arg->op.prio = 0; set_op_prio()
1874 arg->op.prio = get_op_prio(arg->op.op); set_op_prio()
1876 return arg->op.prio; set_op_prio()
1938 arg->op.prio = 0; process_op()
2046 arg->op.prio = 0; process_op()
2059 int prio; process_op() local
2062 prio = get_op_prio(*tok); process_op()
2064 if (prio > arg->op.prio) process_op()
/linux-4.4.14/include/media/
H A Dv4l2-dev.h107 /* Priority state. If NULL, then v4l2_dev->prio will be used. */
108 struct v4l2_prio_state *prio; member in struct:video_device
H A Dv4l2-fh.h40 enum v4l2_priority prio; member in struct:v4l2_fh
H A Dv4l2-device.h60 struct v4l2_prio_state prio; member in struct:v4l2_device
/linux-4.4.14/include/net/caif/
H A Dcfpkt.h201 * @prio: one of TC_PRIO_ constants.
203 void cfpkt_set_prio(struct cfpkt *pkt, int prio);
/linux-4.4.14/arch/s390/include/asm/
H A Dfcx.h259 * @prio: Priority
268 u32 prio:8; member in struct:tccb_tcah
/linux-4.4.14/drivers/dma/
H A Dpxa_dma.c108 enum pxad_chan_prio prio; /* Required priority of phy */ member in struct:pxad_chan
424 int prio, i; lookup_phy() local
438 for (prio = pchan->prio; prio >= PXAD_PRIO_HIGHEST; prio--) { lookup_phy()
440 if (prio != (i & 0xf) >> 2) lookup_phy()
1341 to_pxad_chan(chan)->prio = dma_spec->args[1]; pxad_dma_xlate()
1489 c->prio = p->prio; pxad_filter_fn()
H A Dmmp_pdma.c240 int prio, i; lookup_phy() local
254 for (prio = 0; prio <= ((pdev->dma_channels - 1) & 0xf) >> 2; prio++) { lookup_phy()
256 if (prio != (i & 0xf) >> 2) lookup_phy()
306 /* chance to re-fetch phy channel with higher prio */ start_pending_queue()
H A Dimx-sdma.c1074 int prio, ret; sdma_alloc_chan_resources() local
1081 prio = 3; sdma_alloc_chan_resources()
1084 prio = 2; sdma_alloc_chan_resources()
1088 prio = 1; sdma_alloc_chan_resources()
1107 ret = sdma_set_channel_priority(sdmac, prio); sdma_alloc_chan_resources()
/linux-4.4.14/arch/blackfin/mach-common/
H A Dints-priority.c1261 int ient, prio; __ipipe_get_irq_priority() local
1273 for (prio = 0; prio <= IVG13-IVG7; prio++) { __ipipe_get_irq_priority()
1274 if (ivg7_13[prio].ifirst <= ivg && __ipipe_get_irq_priority()
1275 ivg7_13[prio].istop > ivg) __ipipe_get_irq_priority()
1276 return IVG7 + prio; __ipipe_get_irq_priority()
/linux-4.4.14/net/batman-adv/
H A Dmain.c335 u32 prio; batadv_skb_set_priority() local
351 prio = ntohs(vhdr->h_vlan_TCI) & VLAN_PRIO_MASK; batadv_skb_set_priority()
352 prio = prio >> VLAN_PRIO_SHIFT; batadv_skb_set_priority()
359 prio = (ipv4_get_dsfield(ip_hdr) & 0xfc) >> 5; batadv_skb_set_priority()
366 prio = (ipv6_get_dsfield(ip6_hdr) & 0xfc) >> 5; batadv_skb_set_priority()
372 skb->priority = prio + 256; batadv_skb_set_priority()
/linux-4.4.14/net/caif/
H A Dcfctrl.c379 u8 prio; cfctrl_recv() local
397 prio = tmp >> 3; cfctrl_recv()
399 linkparam.priority = prio; cfctrl_recv()
H A Dcfpkt_skbuff.c389 void cfpkt_set_prio(struct cfpkt *pkt, int prio) cfpkt_set_prio() argument
391 pkt_to_skb(pkt)->priority = prio; cfpkt_set_prio()
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_dcbnl.c42 /* populate the prio map based on the netdev */ fm10k_dcbnl_ieee_getets()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
H A Dl2t.h63 u16 vlan; /* VLAN TCI (id: bits 0-11, prio: 13-15 */
/linux-4.4.14/arch/x86/include/asm/
H A Dio_apic.h69 * 001: lowest prio
/linux-4.4.14/arch/ia64/include/asm/
H A Dhw_irq.h73 #define IA64_TIMER_VECTOR 0xef /* use highest-prio group 15 interrupt for timer */
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
H A Den_port.c132 * with a const offset between its prio components.
133 * This function runs over a counter set and sum all of it's prio components.
H A Dmcg.c781 hw->prio = cpu_to_be16(ctrl->priority); trans_rule_ctrl_to_hw()
909 "port = %d prio = 0x%x qp = 0x%x ", mlx4_err_rule()
1043 int port, int qpn, u16 prio, u64 *reg_id) mlx4_tunnel_steer_add()
1061 rule.priority = prio; mlx4_tunnel_steer_add()
1042 mlx4_tunnel_steer_add(struct mlx4_dev *dev, unsigned char *addr, int port, int qpn, u16 prio, u64 *reg_id) mlx4_tunnel_steer_add() argument
/linux-4.4.14/fs/jffs2/
H A Dcompr.c329 printk(KERN_DEBUG "Compressor \"%s\", prio %d\n", this->name, this->priority); jffs2_register_compressor()
353 printk(KERN_DEBUG "Compressor \"%s\", prio %d\n", this->name, this->priority); jffs2_unregister_compressor()
H A Dnodemgmt.c57 * @prio: Allocation type - ALLOC_{NORMAL,DELETION}
75 uint32_t *len, int prio, uint32_t sumsize) jffs2_reserve_space()
93 if (prio != ALLOC_DELETION && !jffs2_rp_can_write(c)) { jffs2_reserve_space()
117 if (prio == ALLOC_DELETION && c->nr_free_blocks + c->nr_erasing_blocks >= c->resv_blocks_deletion) { jffs2_reserve_space()
142 if (prio == ALLOC_DELETION && c->nr_free_blocks + c->nr_erasing_blocks >= c->resv_blocks_deletion) { jffs2_reserve_space()
74 jffs2_reserve_space(struct jffs2_sb_info *c, uint32_t minsize, uint32_t *len, int prio, uint32_t sumsize) jffs2_reserve_space() argument
/linux-4.4.14/drivers/net/caif/
H A Dcaif_hsi.c1019 int prio; cfhsi_xmit() local
1030 prio = CFHSI_PRIO_BEBK; cfhsi_xmit()
1033 prio = CFHSI_PRIO_VI; cfhsi_xmit()
1036 prio = CFHSI_PRIO_VO; cfhsi_xmit()
1040 prio = CFHSI_PRIO_CTL; cfhsi_xmit()
1050 skb_queue_tail(&cfhsi->qhead[prio], skb); cfhsi_xmit()
/linux-4.4.14/arch/alpha/kernel/
H A Dosf_sys.c1405 int prio = sys_getpriority(which, who); SYSCALL_DEFINE2() local
1406 if (prio >= 0) { SYSCALL_DEFINE2()
1407 /* Return value is the unbiased priority, i.e. 20 - prio. SYSCALL_DEFINE2()
1411 prio = 20 - prio; SYSCALL_DEFINE2()
1413 return prio; SYSCALL_DEFINE2()
/linux-4.4.14/arch/mips/include/asm/octeon/
H A Dcvmx-sriox-defs.h327 uint64_t prio:4; member in struct:cvmx_sriox_imsg_ctrl::cvmx_sriox_imsg_ctrl_s
331 uint64_t prio:4;
769 uint64_t prio:2; member in struct:cvmx_sriox_int_info2::cvmx_sriox_int_info2_s
791 uint64_t prio:2;
803 uint64_t prio:2; member in struct:cvmx_sriox_int_info3::cvmx_sriox_int_info3_s
813 uint64_t prio:2;
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-dev.c1339 unsigned int tc, prio; xgbe_config_dcb_pfc() local
1346 for (prio = 0; prio < IEEE_8021QAZ_MAX_TCS; prio++) { xgbe_config_dcb_pfc()
1347 if ((pfc->pfc_en & (1 << prio)) && xgbe_config_dcb_pfc()
1348 (ets->prio_tc[prio] == tc)) xgbe_config_dcb_pfc()
1349 mask |= (1 << prio); xgbe_config_dcb_pfc()
2001 unsigned int ppq, ppq_extra, prio; xgbe_config_queue_mapping() local
2037 for (i = 0, prio = 0; i < prio_queues;) { xgbe_config_queue_mapping()
2041 "PRIO%u mapped to RXq%u\n", prio, i); xgbe_config_queue_mapping()
2042 mask |= (1 << prio); xgbe_config_queue_mapping()
2043 pdata->prio2q_map[prio++] = i; xgbe_config_queue_mapping()
2048 "PRIO%u mapped to RXq%u\n", prio, i); xgbe_config_queue_mapping()
2049 mask |= (1 << prio); xgbe_config_queue_mapping()
2050 pdata->prio2q_map[prio++] = i; xgbe_config_queue_mapping()
/linux-4.4.14/net/tipc/
H A Dlink.c1603 u32 prio; tipc_nl_parse_link_prop() local
1605 prio = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); tipc_nl_parse_link_prop()
1606 if (prio > TIPC_MAX_LINK_PRI) tipc_nl_parse_link_prop()
1687 u32 prio; tipc_nl_link_set() local
1689 prio = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); tipc_nl_link_set()
1690 link->priority = prio; tipc_nl_link_set()
1691 tipc_link_proto_xmit(link, STATE_MSG, 0, 0, 0, prio); tipc_nl_link_set()
H A Dbearer.c810 u32 prio; tipc_nl_bearer_enable() local
812 prio = TIPC_MEDIA_LINK_PRI; tipc_nl_bearer_enable()
841 prio = nla_get_u32(props[TIPC_NLA_PROP_PRIO]); tipc_nl_bearer_enable()
845 err = tipc_enable_bearer(net, bearer, domain, prio, attrs); tipc_nl_bearer_enable()
/linux-4.4.14/drivers/lightnvm/
H A Drrpc.c410 max = list_first_entry(prio_list, struct rrpc_block, prio); block_prio_find_max()
411 list_for_each_entry(rblock, prio_list, prio) block_prio_find_max()
439 list_del_init(&rblock->prio); rrpc_lun_gc()
472 list_add_tail(&rblk->prio, &rlun->prio_list); rrpc_gc_queue()
1130 INIT_LIST_HEAD(&rblk->prio); rrpc_luns_init()
H A Drrpc.h57 struct list_head prio; member in struct:rrpc_block
/linux-4.4.14/net/bluetooth/rfcomm/
H A Dsock.c272 static struct sock *rfcomm_sock_alloc(struct net *net, struct socket *sock, int proto, gfp_t prio, int kern) rfcomm_sock_alloc() argument
277 sk = sk_alloc(net, PF_BLUETOOTH, prio, &rfcomm_proto, kern); rfcomm_sock_alloc()
284 d = rfcomm_dlc_alloc(prio); rfcomm_sock_alloc()
/linux-4.4.14/arch/mips/alchemy/common/
H A Dirq.c72 int prio; /* irq priority, 0 highest, 3 lowest */ member in struct:alchemy_irqmap
910 if (map->prio == 0) au1000_init_irq()
949 au1300_set_irq_priority(i, dints->prio); alchemy_gpic_init_irq()
/linux-4.4.14/drivers/net/wireless/ath/wcn36xx/
H A Ddxe.h211 * u32 prio :3; //Specifies the priority level to use for
H A Ddxe.c18 * we have 2 channels(High prio and Low prio) for TX and 2 channels for RX.
/linux-4.4.14/drivers/ata/
H A Dpata_pxa.c283 param.prio = PXAD_PRIO_LOWEST; pxa_ata_probe()
/linux-4.4.14/drivers/block/
H A Dida_cmd.h79 __u8 prio; member in struct:__anon3612
/linux-4.4.14/arch/x86/kvm/
H A Dirq_comm.c61 printk(KERN_INFO "kvm: apic: phys broadcast and lowest prio\n"); kvm_irq_delivery_to_apic()
/linux-4.4.14/include/net/bluetooth/
H A Drfcomm.h233 struct rfcomm_dlc *rfcomm_dlc_alloc(gfp_t prio);
/linux-4.4.14/arch/hexagon/kernel/
H A Dkgdb.c233 * Lowest-prio notifier priority, we want to be notified last:
/linux-4.4.14/arch/cris/arch-v32/drivers/
H A Dcryptocop.c159 cryptocop_queue_priority prio; member in struct:cryptocop_prio_queue
164 cryptocop_queue_priority prio; member in struct:cryptocop_prio_job
224 static int cryptocop_job_queue_insert(cryptocop_queue_priority prio, struct cryptocop_operation *operation);
1833 static int cryptocop_job_queue_insert(cryptocop_queue_priority prio, struct cryptocop_operation *operation) cryptocop_job_queue_insert() argument
1839 DEBUG(printk("cryptocop_job_queue_insert(%d, 0x%p)\n", prio, operation)); cryptocop_job_queue_insert()
1853 list_add_tail(&pj->node, &cryptocop_job_queues[prio].jobs); cryptocop_job_queue_insert()
2035 cryptocop_job_queues[i].prio = (cryptocop_queue_priority)i; cryptocop_job_queue_init()
2152 DEBUG(printk("starting job for prio %d\n", i)); cryptocop_start_job()
2155 * prio job for every N-th processed higher prio job or some cryptocop_start_job()
/linux-4.4.14/drivers/soc/ti/
H A Dknav_dma.c80 u32 prio; member in struct:reg_tx_sched
161 writel_relaxed(cfg->u.tx.priority, &chan->reg_tx_sched->prio); chan_start()
/linux-4.4.14/drivers/mmc/host/
H A Dpxamci.c758 param_rx.prio = PXAD_PRIO_LOWEST; pxamci_probe()
760 param_tx.prio = PXAD_PRIO_LOWEST; pxamci_probe()
/linux-4.4.14/drivers/media/pci/ngene/
H A Dngene.h617 enum v4l2_priority prio; member in struct:ngene_vopen
710 struct v4l2_prio_state prio; member in struct:ngene_channel
/linux-4.4.14/net/dccp/
H A Doutput.c674 const gfp_t prio = active ? GFP_KERNEL : GFP_ATOMIC; dccp_send_close() local
676 skb = alloc_skb(sk->sk_prot->max_header, prio); dccp_send_close()
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/
H A Ducode.c211 IWL_ERR(priv, "failed to send BT prio tbl command\n"); iwl_send_prio_tbl()
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
H A Dscan.c700 enum iwl_scan_priority_ext prio) iwl_mvm_scan_priority()
704 return cpu_to_le32(prio); iwl_mvm_scan_priority()
706 if (prio <= IWL_SCAN_PRIORITY_EXT_2) iwl_mvm_scan_priority()
709 if (prio <= IWL_SCAN_PRIORITY_EXT_4) iwl_mvm_scan_priority()
699 iwl_mvm_scan_priority(struct iwl_mvm *mvm, enum iwl_scan_priority_ext prio) iwl_mvm_scan_priority() argument
/linux-4.4.14/arch/powerpc/platforms/pasemi/
H A Dsetup.c239 /* The NMI/MCK source needs to be prio 15 */ pas_init_IRQ()
/linux-4.4.14/arch/sh/kernel/
H A Dkgdb.c368 * Lowest-prio notifier priority, we want to be notified last:
/linux-4.4.14/net/bluetooth/
H A Dl2cap_sock.c46 int proto, gfp_t prio, int kern);
1574 int proto, gfp_t prio, int kern) l2cap_sock_alloc()
1579 sk = sk_alloc(net, PF_BLUETOOTH, prio, &l2cap_proto, kern); l2cap_sock_alloc()
1573 l2cap_sock_alloc(struct net *net, struct socket *sock, int proto, gfp_t prio, int kern) l2cap_sock_alloc() argument
/linux-4.4.14/arch/mips/include/asm/mach-au1x00/
H A Dau1000.h559 #define PCI_CONFIG_R2H (1 << 2) /* REQ2# to hi-prio arbiter */
560 #define PCI_CONFIG_R1H (1 << 1) /* REQ1# to hi-prio arbiter */
561 #define PCI_CONFIG_CH (1 << 0) /* PCI ctl to hi-prio arbiter */
/linux-4.4.14/drivers/net/dsa/
H A Dmv88e6xxx.c1965 * priority fields (IP prio has precedence), and set STP state mv88e6xxx_setup_port()
2114 /* Tag Remap: use an identity 802.1p prio -> switch mv88e6xxx_setup_port()
2115 * prio mapping. mv88e6xxx_setup_port()
2122 /* Tag Remap 2: use an identity 802.1p prio -> switch mv88e6xxx_setup_port()
2123 * prio mapping. mv88e6xxx_setup_port()
/linux-4.4.14/drivers/scsi/fcoe/
H A Dfcoe.c1939 int prio; fcoe_dcb_app_notification() local
1956 prio = ffs(entry->app.priority) - 1; fcoe_dcb_app_notification()
1958 prio = entry->app.priority; fcoe_dcb_app_notification()
1960 if (prio < 0) fcoe_dcb_app_notification()
1965 ctlr->priority = prio; fcoe_dcb_app_notification()
1968 fcoe->priority = prio; fcoe_dcb_app_notification()
/linux-4.4.14/drivers/tty/ipwireless/
H A Dhardware.c1313 static int set_control_line(struct ipw_hardware *hw, int prio, set_control_line() argument
1319 if (prio == PRIO_SETUP) set_control_line()
1328 send_packet(hw, prio, &packet->header); set_control_line()
/linux-4.4.14/drivers/scsi/csiostor/
H A Dcsio_wr.c969 * @prio: 0: Low priority, 1: High priority
976 csio_wr_issue(struct csio_hw *hw, int qidx, bool prio) csio_wr_issue() argument
985 csio_wr_reg32(hw, DBPRIO_V(prio) | QID_V(q->un.eq.physeqid) | csio_wr_issue()
/linux-4.4.14/drivers/net/ethernet/micrel/
H A Dksz884x.c2266 int prio; sw_init_prio_rate() local
2270 for (prio = 0; prio < PRIO_QUEUES; prio++) { sw_init_prio_rate()
2271 sw->port_cfg[port].rx_rate[prio] = sw_init_prio_rate()
2272 sw->port_cfg[port].tx_rate[prio] = 0; sw_init_prio_rate()
2546 * @prio: The priority to set.
2550 static void sw_cfg_port_based(struct ksz_hw *hw, int port, u8 prio) sw_cfg_port_based() argument
2554 if (prio > PORT_BASED_PRIORITY_BASE) sw_cfg_port_based()
2555 prio = PORT_BASED_PRIORITY_BASE; sw_cfg_port_based()
2557 hw->ksz_switch->port_cfg[port].port_prio = prio; sw_cfg_port_based()
2561 data |= prio << PORT_BASED_PRIORITY_SHIFT; sw_cfg_port_based()
/linux-4.4.14/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c1168 u32 prio = 0, prio_mask = 0; gfar_convert_to_filer() local
1185 prio = vlan_tci_prio(rule); gfar_convert_to_filer()
1238 gfar_set_attribute(prio, prio_mask, RQFCR_PID_PRI, tab); gfar_convert_to_filer()
/linux-4.4.14/drivers/scsi/snic/
H A Dsnic_fwint.h260 #define SNIC_ICMND_PRI_SHIFT 5 /* prio val starts at bit 5 */
/linux-4.4.14/drivers/irqchip/
H A Dirq-renesas-intc-irqpin.c569 /* unmask all interrupts on prio level */ intc_irqpin_probe()
/linux-4.4.14/fs/btrfs/
H A Dvolumes.h63 /* regular prio bios */

Completed in 6943 milliseconds

12