Home
last modified time | relevance | path

Searched refs:qs (Results 1 – 25 of 39) sorted by relevance

12

/linux/kernel/bpf/
H A Dqueue_stack_maps.c31 static bool queue_stack_map_is_empty(struct bpf_queue_stack *qs) in queue_stack_map_is_empty() argument
33 return qs->head == qs->tail; in queue_stack_map_is_empty()
36 static bool queue_stack_map_is_full(struct bpf_queue_stack *qs) in queue_stack_map_is_full() argument
38 u32 head = qs->head + 1; in queue_stack_map_is_full()
40 if (unlikely(head >= qs->size)) in queue_stack_map_is_full()
43 return head == qs->tail; in queue_stack_map_is_full()
68 struct bpf_queue_stack *qs; in queue_stack_map_alloc() local
72 queue_size = sizeof(*qs) + size * attr->value_size; in queue_stack_map_alloc()
74 qs = bpf_map_area_alloc(queue_size, numa_node); in queue_stack_map_alloc()
75 if (!qs) in queue_stack_map_alloc()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb3/
H A Dsge.c726 static void init_qset_cntxt(struct sge_qset *qs, unsigned int id) in init_qset_cntxt() argument
728 qs->rspq.cntxt_id = id; in init_qset_cntxt()
729 qs->fl[0].cntxt_id = 2 * id; in init_qset_cntxt()
730 qs->fl[1].cntxt_id = 2 * id + 1; in init_qset_cntxt()
731 qs->txq[TXQ_ETH].cntxt_id = FW_TUNNEL_SGEEC_START + id; in init_qset_cntxt()
732 qs->txq[TXQ_ETH].token = FW_TUNNEL_TID_START + id; in init_qset_cntxt()
733 qs->txq[TXQ_OFLD].cntxt_id = FW_OFLD_SGEEC_START + id; in init_qset_cntxt()
734 qs->txq[TXQ_CTRL].cntxt_id = FW_CTRL_SGEEC_START + id; in init_qset_cntxt()
735 qs->txq[TXQ_CTRL].token = FW_CTRL_TID_START + id; in init_qset_cntxt()
1246 struct sge_qset *qs, struct sge_txq *q) in t3_stop_tx_queue() argument
[all …]
H A Dadapter.h68 struct sge_qset *qs; member
216 struct sge_qset qs[SGE_QSETS]; member
325 void t3_update_qset_coalesce(struct sge_qset *qs, const struct qset_params *p);
/linux/drivers/net/ethernet/cavium/thunder/
H A Dnicvf_queues.c381 struct queue_set *qs = nic->qs; in nicvf_refill_rbdr() local
382 int rbdr_idx = qs->rbdr_cnt; in nicvf_refill_rbdr()
394 rbdr = &qs->rbdr[rbdr_idx]; in nicvf_refill_rbdr()
403 if (qcount >= (qs->rbdr_len - 1)) in nicvf_refill_rbdr()
406 refill_rb_cnt = qs->rbdr_len - qcount - 1; in nicvf_refill_rbdr()
627 struct queue_set *qs, int qidx) in nicvf_reclaim_snd_queue() argument
639 struct queue_set *qs, int qidx) in nicvf_reclaim_rcv_queue() argument
649 struct queue_set *qs, int qidx) in nicvf_reclaim_cmp_queue() argument
744 static void nicvf_rcv_queue_config(struct nicvf *nic, struct queue_set *qs, in nicvf_rcv_queue_config() argument
751 rq = &qs->rq[qidx]; in nicvf_rcv_queue_config()
[all …]
H A Dnic.h283 struct queue_set *qs; member
587 struct qs_cfg_msg qs; member
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_virtchnl.c291 qp = kzalloc_flex(*qp, qs, num); in idpf_alloc_queue_set()
365 static int idpf_wait_for_marker_event_set(const struct idpf_queue_set *qs) in idpf_wait_for_marker_event_set() argument
371 for (u32 i = 0; i < qs->num; i++) { in idpf_wait_for_marker_event_set()
372 switch (qs->qs[i].type) { in idpf_wait_for_marker_event_set()
374 txq = qs->qs[i].txq; in idpf_wait_for_marker_event_set()
404 struct idpf_queue_set *qs __free(kfree) = NULL; in idpf_wait_for_marker_event()
406 qs = idpf_alloc_queue_set(vport->adapter, &vport->dflt_qv_rsrc, in idpf_wait_for_marker_event()
408 if (!qs) in idpf_wait_for_marker_event()
411 for (u32 i = 0; i < qs->num; i++) { in idpf_wait_for_marker_event()
412 qs->qs[i].type = VIRTCHNL2_QUEUE_TYPE_TX; in idpf_wait_for_marker_event()
[all …]
H A Didpf_txrx.c964 const struct idpf_queue_set *qs) in idpf_init_queue_set() argument
969 splitq = idpf_is_queue_model_split(qs->qv_rsrc->rxq_model); in idpf_init_queue_set()
971 for (u32 i = 0; i < qs->num; i++) { in idpf_init_queue_set()
972 const struct idpf_queue_ptr *q = &qs->qs[i]; in idpf_init_queue_set()
1037 static void idpf_clean_queue_set(const struct idpf_queue_set *qs) in idpf_clean_queue_set() argument
1039 const struct idpf_q_vec_rsrc *rsrc = qs->qv_rsrc; in idpf_clean_queue_set()
1041 for (u32 i = 0; i < qs->num; i++) { in idpf_clean_queue_set()
1042 const struct idpf_queue_ptr *q = &qs->qs[i]; in idpf_clean_queue_set()
1120 struct idpf_queue_set *qs; in idpf_vector_to_queue_set() local
1128 qs = idpf_alloc_queue_set(vport->adapter, &vport->dflt_qv_rsrc, in idpf_vector_to_queue_set()
[all …]
H A Didpf_virtchnl.h91 struct idpf_queue_ptr qs[] __counted_by(num);
98 int idpf_send_enable_queue_set_msg(const struct idpf_queue_set *qs);
99 int idpf_send_disable_queue_set_msg(const struct idpf_queue_set *qs);
100 int idpf_send_config_queue_set_msg(const struct idpf_queue_set *qs);
/linux/drivers/net/ethernet/hisilicon/hns/
H A Dhns_ae_adapt.c84 vf_cb = kzalloc_flex(*vf_cb, ae_handle.qs, qnum_per_vf); in hns_ae_get_handle()
111 ae_handle->qs[i] = &ring_pair_cb->q; in hns_ae_get_handle()
112 ae_handle->qs[i]->rx_ring.q = ae_handle->qs[i]; in hns_ae_get_handle()
113 ae_handle->qs[i]->tx_ring.q = ae_handle->qs[i]; in hns_ae_get_handle()
143 hns_ae_get_ring_pair(handle->qs[i])->used_by_vf = 0; in hns_ae_put_handle()
157 ret = hns_rcb_wait_tx_ring_clean(handle->qs[i]); in hns_ae_wait_flow_down()
189 hns_rcb_ring_enable_hw(handle->qs[i], val); in hns_ae_ring_enable_all()
315 q = handle->qs[i]; in hns_ae_set_mtu()
343 hns_rcb_int_clr_hw(handle->qs[k], in hns_ae_start()
346 hns_rcbv2_int_clr_hw(handle->qs[k], in hns_ae_start()
[all …]
H A Dhnae.c298 hnae_fini_queue(handle->qs[i]); in hnae_reinit_handle()
304 ret = hnae_init_queue(handle, handle->qs[i], handle->dev); in hnae_reinit_handle()
311 hnae_fini_queue(handle->qs[j]); in hnae_reinit_handle()
350 ret = hnae_init_queue(handle, handle->qs[i], dev); in hnae_get_handle()
363 hnae_fini_queue(handle->qs[j]); in hnae_get_handle()
377 hnae_fini_queue(h->qs[i]); in hnae_put_handle()
H A Dhns_dsaf_rcb.c36 void hns_rcb_wait_fbd_clean(struct hnae_queue **qs, int q_num, u32 flag) in hns_rcb_wait_fbd_clean() argument
45 fbd_num += dsaf_read_dev(qs[i], in hns_rcb_wait_fbd_clean()
48 fbd_num += dsaf_read_dev(qs[i], in hns_rcb_wait_fbd_clean()
57 dev_err(qs[i]->handle->owner_dev, in hns_rcb_wait_fbd_clean()
61 int hns_rcb_wait_tx_ring_clean(struct hnae_queue *qs) in hns_rcb_wait_tx_ring_clean() argument
66 tail = dsaf_read_dev(&qs->tx_ring, RCB_REG_TAIL); in hns_rcb_wait_tx_ring_clean()
69 head = dsaf_read_dev(&qs->tx_ring, RCB_REG_HEAD); in hns_rcb_wait_tx_ring_clean()
77 dev_err(qs->dev->dev, "rcb wait timeout, head not equal to tail.\n"); in hns_rcb_wait_tx_ring_clean()
H A Dhns_enet.c395 hnae_queue_xmit(priv->ae_handle->qs[skb->queue_mapping], buf_num); in hns_nic_net_xmit_hw()
1664 ring = &h->qs[i]->rx_ring; in hns_nic_clear_all_rx_fetch()
1907 tx_bytes += h->qs[idx]->tx_ring.stats.tx_bytes; in hns_nic_get_stats64()
1908 tx_pkts += h->qs[idx]->tx_ring.stats.tx_pkts; in hns_nic_get_stats64()
1909 rx_bytes += h->qs[idx]->rx_ring.stats.rx_bytes; in hns_nic_get_stats64()
1910 rx_pkts += h->qs[idx]->rx_ring.stats.rx_pkts; in hns_nic_get_stats64()
2008 i, h->qs[i]->tx_ring.next_to_clean); in hns_nic_dump()
2010 i, h->qs[i]->tx_ring.next_to_use); in hns_nic_dump()
2012 i, h->qs[i]->rx_ring.next_to_clean); in hns_nic_dump()
2014 i, h->qs[i]->rx_ring.next_to_use); in hns_nic_dump()
[all …]
/linux/drivers/net/wireless/morsemicro/mm81x/
H A Dhif.h38 void (*skbq_get_tx_qs)(struct mm81x *mors, struct mm81x_skbq **qs,
75 struct mm81x_skbq **qs, int *num_qs) in mm81x_hif_skbq_get_tx_qs() argument
77 mors->hif.ops->skbq_get_tx_qs(mors, qs, num_qs); in mm81x_hif_skbq_get_tx_qs()
H A Dskbq.c537 struct mm81x_skbq *qs; in mm81x_skbq_may_wake_tx_queues() local
545 mm81x_hif_skbq_get_tx_qs(mors, &qs, &num_qs); in mm81x_skbq_may_wake_tx_queues()
547 struct mm81x_skbq *mq = &qs[queue]; in mm81x_skbq_may_wake_tx_queues()
H A Dyaps.c79 static void mm81x_yaps_get_tx_qs(struct mm81x *mors, struct mm81x_skbq **qs, in mm81x_yaps_get_tx_qs() argument
82 *qs = mors->hif.u.yaps.data_tx_qs; in mm81x_yaps_get_tx_qs()
/linux/drivers/scsi/elx/efct/
H A Defct_hw_queues.c199 struct sli4_queue *qs[SLI4_MAX_CQ_SET_COUNT]; in efct_hw_new_cq_set() local
217 qs[i] = cq->queue; in efct_hw_new_cq_set()
222 if (sli_cq_alloc_set(sli4, qs, num_cqs, entry_count, assefct)) { in efct_hw_new_cq_set()
315 struct sli4_queue *qs[SLI4_MAX_RQ_SET_COUNT * 2] = { NULL }; in efct_hw_new_rq_set() local
342 qs[q_count] = rq->hdr; in efct_hw_new_rq_set()
349 qs[q_count + 1] = rq->data; in efct_hw_new_rq_set()
354 if (sli_fc_rq_set_alloc(&hw->sli, num_rq_pairs, qs, in efct_hw_new_rq_set()
/linux/tools/testing/selftests/drivers/net/
H A Dstats.py98 for qs in stats:
99 if qs["ifindex"]== test.ifindex:
100 return qs
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ethtool.c375 struct otx2_qset *qs = &pfvf->qset; in otx2_get_ringparam() local
378 ring->rx_pending = qs->rqe_cnt ? qs->rqe_cnt : Q_COUNT(Q_SIZE_256); in otx2_get_ringparam()
380 ring->tx_pending = qs->sqe_cnt ? qs->sqe_cnt : Q_COUNT(Q_SIZE_4K); in otx2_get_ringparam()
395 struct otx2_qset *qs = &pfvf->qset; in otx2_set_ringparam() local
441 if (tx_count == qs->sqe_cnt && rx_count == qs->rqe_cnt && in otx2_set_ringparam()
449 qs->sqe_cnt = tx_count; in otx2_set_ringparam()
450 qs->rqe_cnt = rx_count; in otx2_set_ringparam()
/linux/net/sched/
H A Dsch_fq_codel.c691 struct gnet_stats_queue qs = { 0 }; in fq_codel_dump_class_stats() local
718 qs.qlen++; in fq_codel_dump_class_stats()
723 qs.backlog = READ_ONCE(q->backlogs[idx]); in fq_codel_dump_class_stats()
724 qs.drops = 0; in fq_codel_dump_class_stats()
726 if (gnet_stats_copy_queue(d, NULL, &qs, qs.qlen) < 0) in fq_codel_dump_class_stats()
H A Dsch_sfq.c918 struct gnet_stats_queue qs = { 0 }; in sfq_dump_class_stats() local
925 qs.qlen = READ_ONCE(slot->qlen); in sfq_dump_class_stats()
926 qs.backlog = READ_ONCE(slot->backlog); in sfq_dump_class_stats()
928 if (gnet_stats_copy_queue(d, NULL, &qs, qs.qlen) < 0) in sfq_dump_class_stats()
/linux/arch/s390/include/uapi/asm/
H A Druntime_instr.h22 __u32 qs : 1; member
/linux/tools/testing/selftests/net/
H A Dbroadcast_ether_dst.sh49 slowwait 1 grep -qs "listening" "${OUTPUT}"
/linux/drivers/net/ethernet/alibaba/eea/
H A Deea_net.c488 struct eea_aq_queue_status *qs; in eea_queues_check_and_reset() local
519 qs = &qstatus[i]; in eea_queues_check_and_reset()
521 if (le16_to_cpu(qs->status) == EEA_QUEUE_STATUS_NEED_RESET) { in eea_queues_check_and_reset()
524 le16_to_cpu(qs->qidx)); in eea_queues_check_and_reset()
/linux/include/uapi/sound/
H A Dhdspm.h27 qs enumerator
/linux/drivers/scsi/elx/libefc_sli/
H A Dsli4.c428 struct sli4_queue *qs[], u32 base_cq_id, in sli_cmd_rq_create_v2() argument
439 page_count = sli_page_count(qs[0]->dma.size, SLI_PAGE_SIZE) * num_rqs; in sli_cmd_rq_create_v2()
463 num_pages = sli_page_count(qs[0]->dma.size, SLI_PAGE_SIZE); in sli_cmd_rq_create_v2()
465 req->rqe_count = cpu_to_le16(qs[0]->dma.size / SLI4_RQE_SIZE); in sli_cmd_rq_create_v2()
474 for (p = 0, addr = qs[i]->dma.phys; p < num_pages; in sli_cmd_rq_create_v2()
582 struct sli4_queue *qs[], u32 base_cq_id, in sli_fc_rq_set_alloc() argument
593 if (__sli_queue_init(sli4, qs[i], SLI4_QTYPE_RQ, in sli_fc_rq_set_alloc()
600 if (sli_cmd_rq_create_v2(sli4, num_rqs, qs, base_cq_id, in sli_fc_rq_set_alloc()
624 qs[i]->id = i + le16_to_cpu(rsp->q_id); in sli_fc_rq_set_alloc()
625 if ((qs[i]->id & 1) == 0) in sli_fc_rq_set_alloc()
[all …]

12