Home
last modified time | relevance | path

Searched refs:qid (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dhtb.c17 u16 qid; member
40 if (node->qid == MLX5E_QOS_QID_INNER) in mlx5e_htb_enumerate_leaves()
42 err = callback(data, node->qid, node->hw_id); in mlx5e_htb_enumerate_leaves()
70 mlx5e_htb_node_create_leaf(struct mlx5e_htb *htb, u16 classid, u16 qid, in mlx5e_htb_node_create_leaf() argument
81 node->qid = qid; in mlx5e_htb_node_create_leaf()
82 __set_bit(qid, htb->qos_used_qids); in mlx5e_htb_node_create_leaf()
100 node->qid = MLX5E_QOS_QID_INNER; in mlx5e_htb_node_create_root()
134 if (node->qid != MLX5E_QOS_QID_INNER) { in mlx5e_htb_node_delete()
135 __clear_bit(node->qid, htb->qos_used_qids); in mlx5e_htb_node_delete()
150 u16 qid; in mlx5e_htb_get_txq_by_classid() local
[all …]
H A Dqos.c38 u16 mlx5e_qid_from_qos(struct mlx5e_channels *chs, u16 qid) in mlx5e_qid_from_qos() argument
49 return (chs->params.num_channels + is_ptp) * mlx5e_get_dcb_num_tc(&chs->params) + qid; in mlx5e_qid_from_qos()
54 static struct mlx5e_txqsq *mlx5e_get_qos_sq(struct mlx5e_priv *priv, int qid) in mlx5e_get_qos_sq() argument
61 ix = qid % params->num_channels; in mlx5e_get_qos_sq()
62 qid /= params->num_channels; in mlx5e_get_qos_sq()
66 return mlx5e_state_dereference(priv, qos_sqs[qid]); in mlx5e_get_qos_sq()
76 int txq_ix, ix, qid, err = 0; in mlx5e_open_qos_sq() local
113 qid = node_qid / params->num_channels; in mlx5e_open_qos_sq()
139 rcu_assign_pointer(qos_sqs[qid], sq); in mlx5e_open_qos_sq()
161 u16 qid; in mlx5e_activate_qos_sq() local
187 mlx5e_deactivate_qos_sq(struct mlx5e_priv * priv,u16 qid) mlx5e_deactivate_qos_sq() argument
211 mlx5e_close_qos_sq(struct mlx5e_priv * priv,u16 qid) mlx5e_close_qos_sq() argument
341 u16 qid = params->num_channels * i + c->ix; mlx5e_qos_deactivate_queues() local
367 mlx5e_reactivate_qos_sq(struct mlx5e_priv * priv,u16 qid,struct netdev_queue * txq) mlx5e_reactivate_qos_sq() argument
374 mlx5e_reset_qdisc(struct net_device * dev,u16 qid) mlx5e_reset_qdisc() argument
[all...]
H A Dqos.h24 void mlx5e_deactivate_qos_sq(struct mlx5e_priv *priv, u16 qid);
25 void mlx5e_close_qos_sq(struct mlx5e_priv *priv, u16 qid);
26 void mlx5e_reactivate_qos_sq(struct mlx5e_priv *priv, u16 qid, struct netdev_queue *txq);
27 void mlx5e_reset_qdisc(struct net_device *dev, u16 qid);
38 u16 mlx5e_qid_from_qos(struct mlx5e_channels *chs, u16 qid);
/linux/drivers/vdpa/pds/
H A Dvdpa_dev.c72 static int pds_vdpa_set_vq_address(struct vdpa_device *vdpa_dev, u16 qid, in pds_vdpa_set_vq_address() argument
77 pdsv->vqs[qid].desc_addr = desc_addr; in pds_vdpa_set_vq_address()
78 pdsv->vqs[qid].avail_addr = driver_addr; in pds_vdpa_set_vq_address()
79 pdsv->vqs[qid].used_addr = device_addr; in pds_vdpa_set_vq_address()
84 static void pds_vdpa_set_vq_num(struct vdpa_device *vdpa_dev, u16 qid, u32 num) in pds_vdpa_set_vq_num() argument
88 pdsv->vqs[qid].q_len = num; in pds_vdpa_set_vq_num()
91 static void pds_vdpa_kick_vq(struct vdpa_device *vdpa_dev, u16 qid) in pds_vdpa_kick_vq() argument
95 iowrite16(qid, pdsv->vqs[qid].notify); in pds_vdpa_kick_vq()
98 static void pds_vdpa_set_vq_cb(struct vdpa_device *vdpa_dev, u16 qid, in pds_vdpa_set_vq_cb() argument
103 pdsv->vqs[qid].event_cb = *cb; in pds_vdpa_set_vq_cb()
[all …]
H A Dcmds.c125 int pds_vdpa_cmd_init_vq(struct pds_vdpa_device *pdsv, u16 qid, u16 invert_idx, in pds_vdpa_cmd_init_vq() argument
134 .vdpa_vq_init.qid = cpu_to_le16(qid), in pds_vdpa_cmd_init_vq()
139 .vdpa_vq_init.intr_index = cpu_to_le16(qid), in pds_vdpa_cmd_init_vq()
147 __func__, qid, ilog2(vq_info->q_len), in pds_vdpa_cmd_init_vq()
154 qid, comp.status, ERR_PTR(err)); in pds_vdpa_cmd_init_vq()
159 int pds_vdpa_cmd_reset_vq(struct pds_vdpa_device *pdsv, u16 qid, u16 invert_idx, in pds_vdpa_cmd_reset_vq() argument
168 .vdpa_vq_reset.qid = cpu_to_le16(qid), in pds_vdpa_cmd_reset_vq()
177 qid, comp.status, ERR_PTR(err)); in pds_vdpa_cmd_reset_vq()
/linux/drivers/infiniband/hw/cxgb4/
H A Dresource.c111 u32 qid; in c4iw_get_cqid() local
119 qid = entry->qid; in c4iw_get_cqid()
122 qid = c4iw_get_resource(&rdev->resource.qid_table); in c4iw_get_cqid()
123 if (!qid) in c4iw_get_cqid()
126 rdev->stats.qid.cur += rdev->qpmask + 1; in c4iw_get_cqid()
128 for (i = qid+1; i & rdev->qpmask; i++) { in c4iw_get_cqid()
132 entry->qid = i; in c4iw_get_cqid()
143 entry->qid = qid; in c4iw_get_cqid()
145 for (i = qid+1; i & rdev->qpmask; i++) { in c4iw_get_cqid()
149 entry->qid = i; in c4iw_get_cqid()
[all …]
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_pci.c242 static u32 prestera_fw_evtq_len(struct prestera_fw *fw, u8 qid) in prestera_fw_evtq_len() argument
244 return fw->evt_queue[qid].len; in prestera_fw_evtq_len()
247 static u32 prestera_fw_evtq_avail(struct prestera_fw *fw, u8 qid) in prestera_fw_evtq_avail() argument
249 u32 wr_idx = prestera_fw_read(fw, PRESTERA_EVTQ_WR_IDX_REG(qid)); in prestera_fw_evtq_avail()
250 u32 rd_idx = prestera_fw_read(fw, PRESTERA_EVTQ_RD_IDX_REG(qid)); in prestera_fw_evtq_avail()
252 return CIRC_CNT(wr_idx, rd_idx, prestera_fw_evtq_len(fw, qid)); in prestera_fw_evtq_avail()
256 u8 qid, u32 idx) in prestera_fw_evtq_rd_set() argument
258 u32 rd_idx = idx & (prestera_fw_evtq_len(fw, qid) - 1); in prestera_fw_evtq_rd_set()
260 prestera_fw_write(fw, PRESTERA_EVTQ_RD_IDX_REG(qid), rd_idx); in prestera_fw_evtq_rd_set()
263 static u8 __iomem *prestera_fw_evtq_buf(struct prestera_fw *fw, u8 qid) in prestera_fw_evtq_buf() argument
268 prestera_fw_evtq_read32(struct prestera_fw * fw,u8 qid) prestera_fw_evtq_read32() argument
279 prestera_fw_evtq_read_buf(struct prestera_fw * fw,u8 qid,void * buf,size_t len) prestera_fw_evtq_read_buf() argument
298 int qid; prestera_fw_evtq_pick() local
321 u8 qid; prestera_fw_evt_work_fn() local
361 prestera_fw_cmdq_lock(struct prestera_fw * fw,u8 qid) prestera_fw_cmdq_lock() argument
366 prestera_fw_cmdq_unlock(struct prestera_fw * fw,u8 qid) prestera_fw_cmdq_unlock() argument
371 prestera_fw_cmdq_len(struct prestera_fw * fw,u8 qid) prestera_fw_cmdq_len() argument
376 prestera_fw_cmdq_buf(struct prestera_fw * fw,u8 qid) prestera_fw_cmdq_buf() argument
381 prestera_fw_cmd_send(struct prestera_fw * fw,int qid,void * in_msg,size_t in_size,void * out_msg,size_t out_size,unsigned int waitms) prestera_fw_cmd_send() argument
434 prestera_fw_send_req(struct prestera_device * dev,int qid,void * in_msg,size_t in_size,void * out_msg,size_t out_size,unsigned int waitms) prestera_fw_send_req() argument
455 u8 qid; prestera_fw_init() local
[all...]
/linux/arch/s390/include/asm/
H A Dap.h149 static inline struct ap_queue_status ap_tapq(ap_qid_t qid, in ap_tapq() argument
162 : [qid] "d" (qid) in ap_tapq()
177 static inline struct ap_queue_status ap_test_queue(ap_qid_t qid, int tbit, in ap_test_queue() argument
181 qid |= 1UL << 23; /* set T bit*/ in ap_test_queue()
182 return ap_tapq(qid, info); in ap_test_queue()
192 static inline struct ap_queue_status ap_rapq(ap_qid_t qid, int fbit) in ap_rapq() argument
194 unsigned long reg0 = qid | (1UL << 24); /* fc 1UL is RAPQ */ in ap_rapq()
217 static inline struct ap_queue_status ap_zapq(ap_qid_t qid, int fbit) in ap_zapq() argument
219 unsigned long reg0 = qid | (2UL << 24); /* fc 2UL is ZAPQ */ in ap_zapq()
317 static inline struct ap_queue_status ap_aqic(ap_qid_t qid, in ap_aqic() argument
[all …]
/linux/drivers/nvme/host/
H A Dauth.c27 int qid;
58 static int nvme_auth_submit(struct nvme_ctrl *ctrl, int qid,
66 if (qid != 0) { in nvme_auth_submit()
84 qid == 0 ? NVME_QID_ANY : qid, flags); in nvme_auth_submit()
87 "qid %d auth_%s failed with status %d\n", in nvme_auth_submit()
88 qid, auth_send ? "send" : "receive", ret); in nvme_auth_submit()
91 "qid %d auth_%s failed with error %d\n", in nvme_auth_submit()
92 qid, auth_send ? "send" : "receive", ret); in nvme_auth_submit()
96 static int nvme_auth_receive_validate(struct nvme_ctrl *ctrl, int qid, in nvme_auth_receive_validate()
28 int qid; global() member
59 nvme_auth_submit(struct nvme_ctrl * ctrl,int qid,void * data,size_t data_len,bool auth_send) nvme_auth_submit() argument
95 nvme_auth_receive_validate(struct nvme_ctrl * ctrl,int qid,struct nvmf_auth_dhchap_failure_data * data,u16 transaction,u8 expected_msg) nvme_auth_receive_validate() argument
918 nvme_auth_negotiate(struct nvme_ctrl * ctrl,int qid) nvme_auth_negotiate() argument
939 nvme_auth_wait(struct nvme_ctrl * ctrl,int qid) nvme_auth_wait() argument
[all...]
H A Dtrace.h26 #define parse_nvme_cmd(qid, opcode, fctype, cdw10) \ argument
29 ((qid) ? \
53 __field(int, qid)
64 __entry->qid = nvme_req_qid(req);
77 __entry->qid, __entry->cid, __entry->nsid,
79 show_opcode_name(__entry->qid, __entry->opcode,
81 parse_nvme_cmd(__entry->qid, __entry->opcode,
91 __field(int, qid)
100 __entry->qid = nvme_req_qid(req);
110 __entry->qid, __entry->cid, __entry->result,
[all …]
/linux/drivers/vdpa/ifcvf/
H A Difcvf_base.c13 u16 ifcvf_set_vq_vector(struct ifcvf_hw *hw, u16 qid, int vector) in ifcvf_set_vq_vector() argument
17 vp_iowrite16(qid, &cfg->queue_select); in ifcvf_set_vq_vector()
72 u16 ifcvf_get_vq_size(struct ifcvf_hw *hw, u16 qid) in ifcvf_get_vq_size() argument
76 if (qid >= hw->nr_vring) in ifcvf_get_vq_size()
79 vp_iowrite16(qid, &hw->common_cfg->queue_select); in ifcvf_get_vq_size()
87 u16 queue_size, max_size, qid; in ifcvf_get_max_vq_size() local
90 for (qid = 1; qid < hw->nr_vring; qid++) { in ifcvf_get_max_vq_size()
91 queue_size = ifcvf_get_vq_size(hw, qid); in ifcvf_get_max_vq_size()
328 u16 ifcvf_get_vq_state(struct ifcvf_hw *hw, u16 qid) in ifcvf_get_vq_state() argument
333 last_avail_idx = vp_ioread16(&lm_cfg->vq_state_region + qid * 2); in ifcvf_get_vq_state()
[all …]
H A Difcvf_base.h108 void ifcvf_notify_queue(struct ifcvf_hw *hw, u16 qid);
119 u16 ifcvf_get_vq_state(struct ifcvf_hw *hw, u16 qid);
120 int ifcvf_set_vq_state(struct ifcvf_hw *hw, u16 qid, u16 num);
122 u16 ifcvf_set_vq_vector(struct ifcvf_hw *hw, u16 qid, int vector);
124 void ifcvf_set_vq_num(struct ifcvf_hw *hw, u16 qid, u32 num);
125 int ifcvf_set_vq_address(struct ifcvf_hw *hw, u16 qid, u64 desc_area,
127 bool ifcvf_get_vq_ready(struct ifcvf_hw *hw, u16 qid);
128 void ifcvf_set_vq_ready(struct ifcvf_hw *hw, u16 qid, bool ready);
132 u16 ifcvf_get_vq_size(struct ifcvf_hw *hw, u16 qid);
/linux/drivers/net/ethernet/intel/igb/
H A Digb_xsk.c34 static void igb_txrx_ring_disable(struct igb_adapter *adapter, u16 qid) in igb_txrx_ring_disable() argument
36 struct igb_ring *tx_ring = adapter->tx_ring[qid]; in igb_txrx_ring_disable()
37 struct igb_ring *rx_ring = adapter->rx_ring[qid]; in igb_txrx_ring_disable()
57 static void igb_txrx_ring_enable(struct igb_adapter *adapter, u16 qid) in igb_txrx_ring_enable() argument
59 struct igb_ring *tx_ring = adapter->tx_ring[qid]; in igb_txrx_ring_enable()
60 struct igb_ring *rx_ring = adapter->rx_ring[qid]; in igb_txrx_ring_enable()
86 int qid = ring->queue_index; in igb_xsk_pool() local
89 pool = xsk_get_pool_from_qid(adapter->netdev, qid); in igb_xsk_pool()
99 u16 qid) in igb_xsk_pool_enable() argument
106 if (qid >= adapter->num_rx_queues) in igb_xsk_pool_enable()
[all …]
/linux/drivers/nvme/target/
H A Dfabrics-cmd-auth.c28 pr_debug("%s: ctrl %d qid %d transaction %u expired, resetting\n", in nvmet_auth_sq_init()
29 __func__, sq->ctrl->cntlid, sq->qid, sq->dhchap_tid); in nvmet_auth_sq_init()
56 pr_debug("%s: ctrl %d qid %d: data sc_d %d napd %d authid %d halen %d dhlen %d\n", in nvmet_auth_negotiate()
57 __func__, ctrl->cntlid, req->sq->qid, in nvmet_auth_negotiate()
67 if (req->sq->qid) in nvmet_auth_negotiate()
107 pr_debug("%s: ctrl %d qid %d: no usable hash found\n", in nvmet_auth_negotiate()
108 __func__, ctrl->cntlid, req->sq->qid); in nvmet_auth_negotiate()
111 pr_debug("%s: ctrl %d qid %d: no usable hash found, falling back to %s\n", in nvmet_auth_negotiate()
112 __func__, ctrl->cntlid, req->sq->qid, in nvmet_auth_negotiate()
135 pr_debug("%s: ctrl %d qid in nvmet_auth_negotiate()
[all...]
H A Dfabrics-cmd.c179 u16 qid = le16_to_cpu(c->qid); in nvmet_install_queue()
192 if (ctrl->sqs[qid] != NULL) { in nvmet_install_queue()
193 pr_warn("qid %u has already been created\n", qid); in nvmet_install_queue()
194 req->error_loc = offsetof(struct nvmf_connect_command, qid); in nvmet_install_queue()
199 if (qid && sqsize > mqes) { in nvmet_install_queue()
225 nvmet_cq_setup(ctrl, req->cq, qid, sqsize + 1); in nvmet_install_queue()
226 nvmet_sq_setup(ctrl, req->sq, qid, sqsize + 1); in nvmet_install_queue()
237 qid, ctr in nvmet_install_queue()
175 u16 qid = le16_to_cpu(c->qid); nvmet_install_queue() local
341 u16 qid = le16_to_cpu(c->qid); nvmet_execute_io_connect() local
[all...]
H A Dtrace.h28 #define parse_nvme_cmd(qid, opcode, fctype, cdw10) \ argument
31 (qid ? \
73 __field(int, qid)
86 __entry->qid = req->sq->qid;
100 __entry->qid, __entry->cid, __entry->nsid,
102 show_opcode_name(__entry->qid, __entry->opcode,
104 parse_nvme_cmd(__entry->qid, __entry->opcode,
114 __field(int, qid)
121 __entry->qid = req->cq->qid;
130 __entry->qid, __entry->cid, __entry->result, __entry->status)
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dqos.c98 if (node->qid == OTX2_QOS_QID_NONE) { in otx2_config_sched_shaping()
181 if (node->qid == OTX2_QOS_QID_INNER && !node->parent) { in __otx2_qos_txschq_cfg()
329 if (node->qid != OTX2_QOS_QID_INNER && node->qid != OTX2_QOS_QID_NONE) { in otx2_qos_sw_node_delete()
330 __clear_bit(node->qid, pfvf->qos.qos_sq_bmap); in otx2_qos_sw_node_delete()
474 WRITE_ONCE(node->qid, OTX2_QOS_QID_INNER); in otx2_qos_alloc_root()
525 WRITE_ONCE(txschq_node->qid, OTX2_QOS_QID_NONE); in otx2_qos_alloc_txschq_node()
558 u32 quantum, u16 qid, bool static_cfg) in otx2_qos_sw_create_leaf_node()
570 WRITE_ONCE(node->qid, qid); in otx2_qos_sw_create_leaf_node()
556 otx2_qos_sw_create_leaf_node(struct otx2_nic * pfvf,struct otx2_qos_node * parent,u16 classid,u32 prio,u64 rate,u64 ceil,u32 quantum,u16 qid,bool static_cfg) otx2_qos_sw_create_leaf_node() argument
603 otx2_sw_node_find_by_qid(struct otx2_nic * pfvf,u16 qid) otx2_sw_node_find_by_qid() argument
645 u16 qid; otx2_get_txq_by_classid() local
982 otx2_qos_enadis_sq(struct otx2_nic * pfvf,struct otx2_qos_node * node,u16 qid) otx2_qos_enadis_sq() argument
1279 int qid, ret, err; otx2_qos_leaf_alloc_queue() local
1419 u16 qid; otx2_qos_leaf_to_inner() local
1557 otx2_reset_qdisc(struct net_device * dev,u16 qid) otx2_reset_qdisc() argument
1571 otx2_cfg_smq(struct otx2_nic * pfvf,struct otx2_qos_node * node,int qid) otx2_cfg_smq() argument
1587 u16 qid, moved_qid; otx2_qos_leaf_del() local
1666 u16 qid; otx2_qos_leaf_del_last() local
[all...]
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_process_queue_manager.c35 struct process_queue_manager *pqm, unsigned int qid) in get_queue_by_qid()
40 if ((pqn->q && pqn->q->properties.queue_id == qid) || in get_queue_by_qid()
41 (pqn->kq && pqn->kq->queue->properties.queue_id == qid)) in get_queue_by_qid()
49 unsigned int qid) in assign_queue_slot_by_qid()
51 if (qid >= KFD_MAX_NUM_OF_QUEUES_PER_PROCESS) in assign_queue_slot_by_qid()
54 if (__test_and_set_bit(qid, pqm->queue_slot_bitmap)) { in assign_queue_slot_by_qid()
55 pr_err("Cannot create new queue because requested qid(%u) is in use\n", qid); in assign_queue_slot_by_qid()
63 unsigned int *qid) in find_available_queue_slot()
79 *qid in find_available_queue_slot()
34 get_queue_by_qid(struct process_queue_manager * pqm,unsigned int qid) get_queue_by_qid() argument
48 assign_queue_slot_by_qid(struct process_queue_manager * pqm,unsigned int qid) assign_queue_slot_by_qid() argument
62 find_available_queue_slot(struct process_queue_manager * pqm,unsigned int * qid) find_available_queue_slot() argument
104 pqm_set_gws(struct process_queue_manager * pqm,unsigned int qid,void * gws) pqm_set_gws() argument
249 init_user_queue(struct process_queue_manager * pqm,struct kfd_node * dev,struct queue ** q,struct queue_properties * q_properties,unsigned int qid) init_user_queue() argument
327 pqm_create_queue(struct process_queue_manager * pqm,struct kfd_node * dev,struct queue_properties * properties,unsigned int * qid,const struct kfd_criu_queue_priv_data * q_data,const void * restore_mqd,const void * restore_ctl_stack,uint32_t * p_doorbell_offset_in_process) pqm_create_queue() argument
518 pqm_destroy_queue(struct process_queue_manager * pqm,unsigned int qid) pqm_destroy_queue() argument
590 pqm_update_queue_properties(struct process_queue_manager * pqm,unsigned int qid,struct queue_properties * p) pqm_update_queue_properties() argument
649 pqm_update_mqd(struct process_queue_manager * pqm,unsigned int qid,struct mqd_update_info * minfo) pqm_update_mqd() argument
691 pqm_get_user_queue(struct process_queue_manager * pqm,unsigned int qid) pqm_get_user_queue() argument
700 pqm_get_wave_state(struct process_queue_manager * pqm,unsigned int qid,void __user * ctl_stack,u32 * ctl_stack_used_size,u32 * save_area_used_size) pqm_get_wave_state() argument
819 pqm_checkpoint_mqd(struct process_queue_manager * pqm,unsigned int qid,void * mqd,void * ctl_stack) pqm_checkpoint_mqd() argument
1105 pqm_get_queue_checkpoint_info(struct process_queue_manager * pqm,unsigned int qid,uint32_t * mqd_size,uint32_t * ctl_stack_size) pqm_get_queue_checkpoint_info() argument
[all...]
/linux/drivers/s390/crypto/
H A Dzcrypt_api.c649 int cpen, qpen, qid = 0, rc; in zcrypt_rsa_modexpo() local
704 AP_QID_QUEUE(zq->queue->qid))) in zcrypt_rsa_modexpo()
706 /* penalty if the msg was previously sent at this qid */ in zcrypt_rsa_modexpo()
708 tr->last_qid == zq->queue->qid) ? in zcrypt_rsa_modexpo()
727 qid = pref_zq->queue->qid; in zcrypt_rsa_modexpo()
738 tr->last_qid = qid; in zcrypt_rsa_modexpo()
741 AP_QID_CARD(qid), AP_QID_QUEUE(qid), in zcrypt_rsa_modexpo()
755 int cpen, qpen, qid in zcrypt_rsa_crt() local
861 int cpen, qpen, qid = 0, rc; _zcrypt_send_cprb() local
1054 int cpen, qpen, qid = 0, rc; _zcrypt_send_ep11_cprb() local
1233 int qid = 0, rc = -ENODEV; zcrypt_rng() local
[all...]
/linux/drivers/vdpa/virtio_pci/
H A Dvp_vdpa.c251 static int vp_vdpa_get_vq_state(struct vdpa_device *vdpa, u16 qid, in vp_vdpa_get_vq_state() argument
286 static int vp_vdpa_set_vq_state(struct vdpa_device *vdpa, u16 qid, in vp_vdpa_set_vq_state() argument
296 !vp_modern_get_queue_enable(mdev, qid)) { in vp_vdpa_set_vq_state()
307 static void vp_vdpa_set_vq_cb(struct vdpa_device *vdpa, u16 qid, in vp_vdpa_set_vq_cb() argument
312 vp_vdpa->vring[qid].cb = *cb; in vp_vdpa_set_vq_cb()
316 u16 qid, bool ready) in vp_vdpa_set_vq_ready() argument
320 vp_modern_set_queue_enable(mdev, qid, ready); in vp_vdpa_set_vq_ready()
323 static bool vp_vdpa_get_vq_ready(struct vdpa_device *vdpa, u16 qid) in vp_vdpa_get_vq_ready() argument
327 return vp_modern_get_queue_enable(mdev, qid); in vp_vdpa_get_vq_ready()
330 static void vp_vdpa_set_vq_num(struct vdpa_device *vdpa, u16 qid, in vp_vdpa_set_vq_num() argument
338 vp_vdpa_get_vq_size(struct vdpa_device * vdpa,u16 qid) vp_vdpa_get_vq_size() argument
345 vp_vdpa_set_vq_address(struct vdpa_device * vdpa,u16 qid,u64 desc_area,u64 driver_area,u64 device_area) vp_vdpa_set_vq_address() argument
357 vp_vdpa_kick_vq(struct vdpa_device * vdpa,u16 qid) vp_vdpa_kick_vq() argument
367 u16 qid = data & 0xFFFF; vp_vdpa_kick_vq_with_data() local
447 vp_vdpa_get_vq_notification(struct vdpa_device * vdpa,u16 qid) vp_vdpa_get_vq_notification() argument
[all...]
/linux/include/linux/
H A Dquota.h79 extern qid_t from_kqid(struct user_namespace *to, struct kqid qid);
80 extern qid_t from_kqid_munged(struct user_namespace *to, struct kqid qid);
81 extern bool qid_valid(struct kqid qid);
98 enum quota_type type, qid_t qid) in make_kqid() argument
105 kqid.uid = make_kuid(from, qid); in make_kqid()
108 kqid.gid = make_kgid(from, qid); in make_kqid()
111 kqid.projid = make_kprojid(from, qid); in make_kqid()
187 static inline bool qid_has_mapping(struct user_namespace *ns, struct kqid qid) in qid_has_mapping() argument
189 return from_kqid(ns, qid) != (qid_t) -1; in qid_has_mapping()
320 …int (*get_next_id)(struct super_block *sb, struct kqid *qid); /* Get next ID with existing structu…
[all …]
/linux/drivers/net/ethernet/intel/libeth/
H A Dxsk.c223 void libeth_xsk_wakeup(call_single_data_t *csd, u32 qid) in libeth_xsk_wakeup() argument
231 if (unlikely(qid >= nr_cpu_ids)) in libeth_xsk_wakeup()
232 qid %= nr_cpu_ids; in libeth_xsk_wakeup()
234 if (qid != raw_smp_processor_id() && cpu_online(qid)) in libeth_xsk_wakeup()
235 smp_call_function_single_async(qid, csd); in libeth_xsk_wakeup()
256 int libeth_xsk_setup_pool(struct net_device *dev, u32 qid, bool enable) in libeth_xsk_setup_pool() argument
260 pool = xsk_get_pool_from_qid(dev, qid); in libeth_xsk_setup_pool()
/linux/drivers/vdpa/alibaba/
H A Deni_vdpa.c260 static u16 eni_vdpa_get_vq_size(struct vdpa_device *vdpa, u16 qid) in eni_vdpa_get_vq_size() argument
264 return vp_legacy_get_queue_size(ldev, qid); in eni_vdpa_get_vq_size()
267 static int eni_vdpa_get_vq_state(struct vdpa_device *vdpa, u16 qid, in eni_vdpa_get_vq_state() argument
273 static int eni_vdpa_set_vq_state(struct vdpa_device *vdpa, u16 qid, in eni_vdpa_set_vq_state() argument
283 if (!vp_legacy_get_queue_enable(ldev, qid) in eni_vdpa_set_vq_state()
291 static void eni_vdpa_set_vq_cb(struct vdpa_device *vdpa, u16 qid, in eni_vdpa_set_vq_cb() argument
296 eni_vdpa->vring[qid].cb = *cb; in eni_vdpa_set_vq_cb()
299 static void eni_vdpa_set_vq_ready(struct vdpa_device *vdpa, u16 qid, in eni_vdpa_set_vq_ready() argument
309 vp_legacy_set_queue_address(ldev, qid, 0); in eni_vdpa_set_vq_ready()
312 static bool eni_vdpa_get_vq_ready(struct vdpa_device *vdpa, u16 qid) in eni_vdpa_get_vq_ready() argument
319 eni_vdpa_set_vq_num(struct vdpa_device * vdpa,u16 qid,u32 num) eni_vdpa_set_vq_num() argument
336 eni_vdpa_set_vq_address(struct vdpa_device * vdpa,u16 qid,u64 desc_area,u64 driver_area,u64 device_area) eni_vdpa_set_vq_address() argument
348 eni_vdpa_kick_vq(struct vdpa_device * vdpa,u16 qid) eni_vdpa_kick_vq() argument
[all...]
/linux/drivers/net/ethernet/intel/idpf/
H A Dxsk.c31 u32 qid = U32_MAX; in idpf_xsk_setup_bufq() local
38 qid = grp->splitq.rxq_sets[0]->rxq.idx; in idpf_xsk_setup_bufq()
45 pool = xsk_get_pool_from_qid(vport->netdev, qid); in idpf_xsk_setup_bufq()
58 u32 qid; in idpf_xsk_setup_txq() local
65 qid = txq->idx - vport->dflt_qv_rsrc.xdp_txq_offset; in idpf_xsk_setup_txq()
67 pool = xsk_get_pool_from_qid(vport->netdev, qid); in idpf_xsk_setup_txq()
83 u32 qid; in idpf_xsk_setup_complq() local
90 qid = complq->txq_grp->txqs[0]->idx - in idpf_xsk_setup_complq()
93 pool = xsk_get_pool_from_qid(vport->netdev, qid); in idpf_xsk_setup_complq()
415 "failed to allocate XSk buffers for qid in idpf_xskfq_init()
557 u32 qid = bpf->xsk.queue_id; idpf_xsk_pool_setup() local
614 idpf_xsk_wakeup(struct net_device * dev,u32 qid,u32 flags) idpf_xsk_wakeup() argument
[all...]
/linux/fs/quota/
H A Dkqid.c120 bool qid_valid(struct kqid qid) in qid_valid() argument
122 switch (qid.type) { in qid_valid()
124 return uid_valid(qid.uid); in qid_valid()
126 return gid_valid(qid.gid); in qid_valid()
128 return projid_valid(qid.projid); in qid_valid()

12345678910>>...12