Home
last modified time | relevance | path

Searched refs:prio (Results 1 – 25 of 72) sorted by relevance

123

/drivers/media/v4l2-core/
Dv4l2-fh.c40 fh->prio = V4L2_PRIORITY_UNSET; in v4l2_fh_init()
53 v4l2_prio_open(fh->vdev->prio, &fh->prio); in v4l2_fh_add()
82 v4l2_prio_close(fh->vdev->prio, fh->prio); in v4l2_fh_del()
Dv4l2-dev.c232 static inline bool prio_is_valid(enum v4l2_priority prio) in prio_is_valid() argument
234 return prio == V4L2_PRIORITY_BACKGROUND || in prio_is_valid()
235 prio == V4L2_PRIORITY_INTERACTIVE || in prio_is_valid()
236 prio == V4L2_PRIORITY_RECORD; in prio_is_valid()
814 if (vdev->prio == NULL) in __video_register_device()
815 vdev->prio = &vdev->v4l2_dev->prio; in __video_register_device()
/drivers/media/usb/uvc/
Duvc_v4l2.c581 *(u32 *)arg = v4l2_prio_max(vdev->prio); in uvc_v4l2_do_ioctl()
585 ret = v4l2_prio_check(vdev->prio, handle->vfh.prio); in uvc_v4l2_do_ioctl()
589 return v4l2_prio_change(vdev->prio, &handle->vfh.prio, in uvc_v4l2_do_ioctl()
620 ret = v4l2_prio_check(vdev->prio, handle->vfh.prio); in uvc_v4l2_do_ioctl()
670 ret = v4l2_prio_check(vdev->prio, handle->vfh.prio); in uvc_v4l2_do_ioctl()
767 ret = v4l2_prio_check(vdev->prio, handle->vfh.prio); in uvc_v4l2_do_ioctl()
824 ret = v4l2_prio_check(vdev->prio, handle->vfh.prio); in uvc_v4l2_do_ioctl()
930 ret = v4l2_prio_check(vdev->prio, handle->vfh.prio); in uvc_v4l2_do_ioctl()
968 ret = v4l2_prio_check(vdev->prio, handle->vfh.prio); in uvc_v4l2_do_ioctl()
1017 ret = v4l2_prio_check(vdev->prio, handle->vfh.prio); in uvc_v4l2_do_ioctl()
[all …]
/drivers/sh/intc/
Dchip.c129 int intc_set_priority(unsigned int irq, unsigned int prio) in intc_set_priority() argument
135 if (!intc_get_prio_level(irq) || prio <= 1) in intc_set_priority()
138 ihp = intc_find_irq(d->prio, d->nr_prio, irq); in intc_set_priority()
140 if (prio >= (1 << _INTC_WIDTH(ihp->handle))) in intc_set_priority()
143 intc_set_prio_level(irq, prio); in intc_set_priority()
Dcore.c138 hp = d->prio + d->nr_prio; in intc_register_irq()
262 d->prio = kzalloc(hw->nr_vectors * sizeof(*d->prio), in register_intc_controller()
264 if (!d->prio) in register_intc_controller()
273 sort(d->prio, hw->nr_prio_regs, sizeof(*d->prio), in register_intc_controller()
392 kfree(d->prio); in register_intc_controller()
/drivers/md/bcache/
Dalloc.c111 if (b->prio && in bch_rescale_priorities()
112 b->prio != BTREE_PRIO && in bch_rescale_priorities()
114 b->prio--; in bch_rescale_priorities()
115 c->min_prio = min(c->min_prio, b->prio); in bch_rescale_priorities()
206 b->prio = 0; in bch_bucket_add_unused()
227 b->prio = INITIAL_PRIO; in invalidate_one_bucket()
233 (((unsigned) (b->prio - ca->set->min_prio)) * GC_SECTORS_USED(b))
470 b->prio = BTREE_PRIO; in bch_bucket_alloc()
473 b->prio = INITIAL_PRIO; in bch_bucket_alloc()
/drivers/staging/csr/
Dbh.c52 priv->bh_thread.prio = bh_priority; in uf_start_thread()
61 priv->bh_thread.prio = bh_priority; in uf_start_thread()
68 priv->bh_thread.prio = DEFAULT_PRIO; in uf_start_thread()
74 priv->bh_thread.prio = DEFAULT_PRIO; in uf_start_thread()
Dunifi_sme.c1095 priv->bh_thread.prio); in uf_ta_sample_ind_wq()
1099 if (bh_priority == -1 && priv->bh_thread.prio != 1) in uf_ta_sample_ind_wq()
1102 priv->bh_thread.prio = 1; in uf_ta_sample_ind_wq()
1104 priv->bh_thread.name, priv->bh_thread.prio); in uf_ta_sample_ind_wq()
1105 param.sched_priority = priv->bh_thread.prio; in uf_ta_sample_ind_wq()
1110 if (bh_priority == -1 && priv->bh_thread.prio != DEFAULT_PRIO) in uf_ta_sample_ind_wq()
1115 priv->bh_thread.prio = DEFAULT_PRIO; in uf_ta_sample_ind_wq()
1117 priv->bh_thread.name, priv->bh_thread.prio); in uf_ta_sample_ind_wq()
1118 set_user_nice(priv->bh_thread.thread_task, PRIO_TO_NICE(priv->bh_thread.prio)); in uf_ta_sample_ind_wq()
/drivers/net/wireless/rtl818x/rtl8180/
Ddev.c177 static void rtl8180_handle_tx(struct ieee80211_hw *dev, unsigned int prio) in rtl8180_handle_tx() argument
180 struct rtl8180_tx_ring *ring = &priv->tx_ring[prio]; in rtl8180_handle_tx()
208 ieee80211_wake_queue(dev, prio); in rtl8180_handle_tx()
257 unsigned int idx, prio; in rtl8180_tx() local
264 prio = skb_get_queue_mapping(skb); in rtl8180_tx()
265 ring = &priv->tx_ring[prio]; in rtl8180_tx()
325 ieee80211_stop_queue(dev, prio); in rtl8180_tx()
329 rtl818x_iowrite8(priv, &priv->map->TX_DMA_POLLING, (1 << (prio + 4))); in rtl8180_tx()
500 unsigned int prio, unsigned int entries) in rtl8180_init_tx_ring() argument
510 prio); in rtl8180_init_tx_ring()
[all …]
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_dcb.c681 u8 prio, cos; in bnx2x_dcbx_update_tc_mapping() local
683 for (prio = 0; prio < BNX2X_MAX_PRIORITY; prio++) { in bnx2x_dcbx_update_tc_mapping()
685 & (1 << prio)) { in bnx2x_dcbx_update_tc_mapping()
686 bp->prio_to_cos[prio] = cos; in bnx2x_dcbx_update_tc_mapping()
688 "tx_mapping %d --> %d\n", prio, cos); in bnx2x_dcbx_update_tc_mapping()
1935 static void bnx2x_dcbnl_set_pg_tccfg_tx(struct net_device *netdev, int prio, in bnx2x_dcbnl_set_pg_tccfg_tx() argument
1941 DP(BNX2X_MSG_DCB, "prio[%d] = %d\n", prio, pgid); in bnx2x_dcbnl_set_pg_tccfg_tx()
1942 if (!bnx2x_dcbnl_set_valid(bp) || prio >= DCBX_MAX_NUM_PRI_PG_ENTRIES) in bnx2x_dcbnl_set_pg_tccfg_tx()
1958 bp->dcbx_config_params.admin_configuration_ets_pg[prio] = pgid; in bnx2x_dcbnl_set_pg_tccfg_tx()
1975 static void bnx2x_dcbnl_set_pg_tccfg_rx(struct net_device *netdev, int prio, in bnx2x_dcbnl_set_pg_tccfg_rx() argument
[all …]
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb_nl.c195 u8 prio, u8 bwg_id, u8 bw_pct, in ixgbe_dcbnl_set_pg_tc_cfg_tx() argument
200 if (prio != DCB_ATTR_VALUE_UNDEFINED) in ixgbe_dcbnl_set_pg_tc_cfg_tx()
201 adapter->temp_dcb_cfg.tc_config[tc].path[0].prio_type = prio; in ixgbe_dcbnl_set_pg_tc_cfg_tx()
221 u8 prio, u8 bwg_id, u8 bw_pct, in ixgbe_dcbnl_set_pg_tc_cfg_rx() argument
226 if (prio != DCB_ATTR_VALUE_UNDEFINED) in ixgbe_dcbnl_set_pg_tc_cfg_rx()
227 adapter->temp_dcb_cfg.tc_config[tc].path[1].prio_type = prio; in ixgbe_dcbnl_set_pg_tc_cfg_rx()
247 u8 *prio, u8 *bwg_id, u8 *bw_pct, in ixgbe_dcbnl_get_pg_tc_cfg_tx() argument
252 *prio = adapter->dcb_cfg.tc_config[tc].path[0].prio_type; in ixgbe_dcbnl_get_pg_tc_cfg_tx()
267 u8 *prio, u8 *bwg_id, u8 *bw_pct, in ixgbe_dcbnl_get_pg_tc_cfg_rx() argument
272 *prio = adapter->dcb_cfg.tc_config[tc].path[1].prio_type; in ixgbe_dcbnl_get_pg_tc_cfg_rx()
/drivers/staging/tidspbridge/rmgr/
Dnode.c77 #define NODE_GET_PRIORITY(h) ((h)->prio)
78 #define NODE_SET_PRIORITY(hnode, prio) ((hnode)->prio = prio) argument
190 s32 prio; /* Node's current priority */ member
364 if (attr_in->prio < hnode_mgr->min_pri || in node_allocate()
365 attr_in->prio > hnode_mgr->max_pri) in node_allocate()
392 pnode->prio = pnode->dcd_props.obj_data.node_obj.ndb_props.prio; in node_allocate()
462 pnode->prio = attr_in->prio; in node_allocate()
765 int node_change_priority(struct node_object *hnode, s32 prio) in node_change_priority() argument
781 else if (prio < hnode_mgr->min_pri || prio > hnode_mgr->max_pri) in node_change_priority()
792 NODE_SET_PRIORITY(hnode, prio); in node_change_priority()
[all …]
/drivers/media/usb/pvrusb2/
Dpvrusb2-v4l2.c54 enum v4l2_priority prio; member
72 struct v4l2_prio_state prio; member
174 *p = v4l2_prio_max(&vp->prio); in pvr2_g_priority()
178 static int pvr2_s_priority(struct file *file, void *priv, enum v4l2_priority prio) in pvr2_s_priority() argument
183 return v4l2_prio_change(&vp->prio, &fh->prio, prio); in pvr2_s_priority()
975 ret = v4l2_prio_check(&vp->prio, fh->prio); in pvr2_v4l2_ioctl()
1024 v4l2_prio_close(&vp->prio, fhp->prio); in pvr2_v4l2_release()
1145 v4l2_prio_open(&vp->prio, &fhp->prio); in pvr2_v4l2_open()
/drivers/media/platform/davinci/
Dvpif_capture.h111 struct v4l2_prio_state prio; member
139 enum v4l2_priority prio; member
Dvpif_capture.c926 fh->prio = V4L2_PRIORITY_UNSET; in vpif_open()
927 v4l2_prio_open(&ch->prio, &fh->prio); in vpif_open()
974 v4l2_prio_close(&ch->prio, fh->prio); in vpif_release()
1420 ret = v4l2_prio_check(&ch->prio, fh->prio); in vpif_s_std()
1523 ret = v4l2_prio_check(&ch->prio, fh->prio); in vpif_s_input()
1631 ret = v4l2_prio_check(&ch->prio, fh->prio); in vpif_s_fmt_vid_cap()
1676 enum v4l2_priority *prio) in vpif_g_priority() argument
1681 *prio = v4l2_prio_max(&ch->prio); in vpif_g_priority()
1697 return v4l2_prio_change(&ch->prio, &fh->prio, p); in vpif_s_priority()
2187 v4l2_prio_init(&ch->prio); in vpif_probe()
Dvpif_display.h119 struct v4l2_prio_state prio; /* Used to keep track of state of member
142 enum v4l2_priority prio; /* Used to keep track priority of member
Dvpif_display.c778 fh->prio = V4L2_PRIORITY_UNSET; in vpif_open()
779 v4l2_prio_open(&ch->prio, &fh->prio); in vpif_open()
827 v4l2_prio_close(&ch->prio, fh->prio); in vpif_release()
908 ret = v4l2_prio_check(&ch->prio, fh->prio); in vpif_s_fmt_vid_out()
1374 *p = v4l2_prio_max(&ch->prio); in vpif_g_priority()
1384 return v4l2_prio_change(&ch->prio, &fh->prio, p); in vpif_s_priority()
1856 v4l2_prio_init(&ch->prio); in vpif_probe()
Dvpbe_display.c681 *p = v4l2_prio_max(&layer->prio); in vpbe_display_g_priority()
693 ret = v4l2_prio_change(&layer->prio, &fh->prio, p); in vpbe_display_s_priority()
1527 fh->prio = V4L2_PRIORITY_UNSET; in vpbe_display_open()
1528 v4l2_prio_open(&layer->prio, &fh->prio); in vpbe_display_open()
1584 v4l2_prio_close(&layer->prio, fh->prio); in vpbe_display_release()
1723 v4l2_prio_init(&vpbe_display_layer->prio); in init_vpbe_layer()
/drivers/net/wireless/rtlwifi/
Dpci.c554 static void _rtl_pci_tx_isr(struct ieee80211_hw *hw, int prio) in _rtl_pci_tx_isr() argument
559 struct rtl8192_tx_ring *ring = &rtlpci->tx_ring[prio]; in _rtl_pci_tx_isr()
596 if (prio == TXCMD_QUEUE) { in _rtl_pci_tx_isr()
643 prio, ring->idx, in _rtl_pci_tx_isr()
1090 unsigned int prio, unsigned int entries) in _rtl_pci_init_tx_ring() argument
1104 "Cannot allocate TX ring (prio = %d)\n", prio); in _rtl_pci_init_tx_ring()
1109 rtlpci->tx_ring[prio].desc = ring; in _rtl_pci_init_tx_ring()
1110 rtlpci->tx_ring[prio].dma = dma; in _rtl_pci_init_tx_ring()
1111 rtlpci->tx_ring[prio].idx = 0; in _rtl_pci_init_tx_ring()
1112 rtlpci->tx_ring[prio].entries = entries; in _rtl_pci_init_tx_ring()
[all …]
/drivers/staging/rtl8192e/rtl8192e/
Drtl_core.c454 static short rtl8192_get_nic_desc_num(struct net_device *dev, int prio) in rtl8192_get_nic_desc_num() argument
457 struct rtl8192_tx_ring *ring = &priv->tx_ring[prio]; in rtl8192_get_nic_desc_num()
462 if ((prio == MGNT_QUEUE) && (skb_queue_len(&ring->queue) > 10)) in rtl8192_get_nic_desc_num()
464 "queue_len=%d---------\n", prio, ring->idx, in rtl8192_get_nic_desc_num()
469 static short rtl8192_check_nic_enough_desc(struct net_device *dev, int prio) in rtl8192_check_nic_enough_desc() argument
472 struct rtl8192_tx_ring *ring = &priv->tx_ring[prio]; in rtl8192_check_nic_enough_desc()
1840 static void rtl8192_free_tx_ring(struct net_device *dev, unsigned int prio) in rtl8192_free_tx_ring() argument
1843 struct rtl8192_tx_ring *ring = &priv->tx_ring[prio]; in rtl8192_free_tx_ring()
1943 static void rtl8192_tx_isr(struct net_device *dev, int prio) in rtl8192_tx_isr() argument
1947 struct rtl8192_tx_ring *ring = &priv->tx_ring[prio]; in rtl8192_tx_isr()
[all …]
/drivers/staging/tidspbridge/include/dspbridge/
Ddbdefs.h290 s32 prio; member
308 s32 prio; member
Ddisp.h104 nodeenv node_env, s32 prio);
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_uld.h163 static inline void set_wr_txq(struct sk_buff *skb, int prio, int queue) in set_wr_txq() argument
165 skb_set_queue_mapping(skb, (queue << 1) | prio); in set_wr_txq()
/drivers/dma/
Dmmp_pdma.c219 int prio, i; in lookup_phy() local
230 for (prio = 0; prio <= (((pdev->dma_channels - 1) & 0xf) >> 2); prio++) { in lookup_phy()
232 if (prio != ((i & 0xf) >> 2)) in lookup_phy()
/drivers/staging/media/davinci_vpfe/
Dvpfe_mc_capture.h91 enum v4l2_priority prio; member

123