| /linux/kernel/bpf/ |
| H A D | queue_stack_maps.c | 31 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 D | sge.c | 726 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 D | adapter.h | 68 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/intel/idpf/ |
| H A D | idpf_virtchnl.c | 737 qp = kzalloc(struct_size(qp, qs, num), GFP_KERNEL); in idpf_alloc_queue_set() 810 static int idpf_wait_for_marker_event_set(const struct idpf_queue_set *qs) in idpf_wait_for_marker_event_set() argument 815 for (u32 i = 0; i < qs->num; i++) { in idpf_wait_for_marker_event_set() 816 switch (qs->qs[i].type) { in idpf_wait_for_marker_event_set() 818 txq = qs->qs[i].txq; in idpf_wait_for_marker_event_set() 830 netdev_warn(qs->vport->netdev, in idpf_wait_for_marker_event_set() 846 struct idpf_queue_set *qs __free(kfree) = NULL; in idpf_wait_for_marker_event() 848 qs = idpf_alloc_queue_set(vport, vport->num_txq); in idpf_wait_for_marker_event() 849 if (!qs) in idpf_wait_for_marker_event() 852 for (u32 i = 0; i < qs->num; i++) { in idpf_wait_for_marker_event() [all …]
|
| /linux/drivers/soc/qcom/ |
| H A D | socinfo.c | 862 struct qcom_socinfo *qs; in qcom_socinfo_probe() local 873 qs = devm_kzalloc(&pdev->dev, sizeof(*qs), GFP_KERNEL); in qcom_socinfo_probe() 874 if (!qs) in qcom_socinfo_probe() 877 qs->attr.family = "Snapdragon"; in qcom_socinfo_probe() 878 qs->attr.machine = socinfo_machine(&pdev->dev, in qcom_socinfo_probe() 880 qs->attr.soc_id = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%u", in qcom_socinfo_probe() 882 qs->attr.revision = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%u.%u", in qcom_socinfo_probe() 885 if (!qs->attr.soc_id || !qs->attr.revision) in qcom_socinfo_probe() 889 qs->attr.serial_number = devm_kasprintf(&pdev->dev, GFP_KERNEL, in qcom_socinfo_probe() 892 if (!qs->attr.serial_number) in qcom_socinfo_probe() [all …]
|
| /linux/fs/qnx4/ |
| H A D | inode.c | 47 struct qnx4_sb_info *qs; in qnx4_reconfigure() local 50 qs = qnx4_sb(sb); in qnx4_reconfigure() 51 qs->Version = QNX4_VERSION; in qnx4_reconfigure() 197 struct qnx4_sb_info *qs; in qnx4_fill_super() local 200 qs = kzalloc(sizeof(struct qnx4_sb_info), GFP_KERNEL); in qnx4_fill_super() 201 if (!qs) in qnx4_fill_super() 203 s->s_fs_info = qs; in qnx4_fill_super() 259 struct qnx4_sb_info *qs = qnx4_sb(sb); in qnx4_kill_sb() local 261 if (qs) { in qnx4_kill_sb() 262 kfree(qs->BitMap); in qnx4_kill_sb() [all …]
|
| /linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
| H A D | cxgb4vf_main.c | 367 int qs, msi; in name_msix_vecs() local 369 for (qs = 0, msi = MSIX_IQFLINT; qs < pi->nqsets; qs++, msi++) { in name_msix_vecs() 371 "%s-%d", dev->name, qs); in name_msix_vecs() 634 int qs; in setup_sge_queues() local 636 for (qs = 0; qs < pi->nqsets; qs++, rxq++, txq++) { in setup_sge_queues() 644 netdev_get_tx_queue(dev, qs), in setup_sge_queues() 649 rxq->rspq.idx = qs; in setup_sge_queues() 665 int qs; in setup_sge_queues() local 667 for (qs = 0; qs < pi->nqsets; qs++, rxq++, txq++) { in setup_sge_queues() 707 int qs, err; in setup_rss() local [all …]
|
| H A D | sge.c | 2568 int qs; in t4vf_free_sge_resources() local 2570 for (qs = 0; qs < adapter->sge.ethqsets; qs++, rxq++, txq++) { in t4vf_free_sge_resources()
|
| /linux/fs/qnx6/ |
| H A D | inode.c | 299 struct qnx6_sb_info *qs; in qnx6_fill_super() local 305 qs = kzalloc(sizeof(struct qnx6_sb_info), GFP_KERNEL); in qnx6_fill_super() 306 if (!qs) in qnx6_fill_super() 308 s->s_fs_info = qs; in qnx6_fill_super() 309 qs->s_mount_opt = ctx->s_mount_opts; in qnx6_fill_super() 317 if (qs->s_mount_opt == QNX6_MOUNT_MMI_FS) { in qnx6_fill_super() 469 kfree(qs); in qnx6_fill_super() 476 struct qnx6_sb_info *qs = QNX6_SB(sb); in qnx6_put_super() local 477 brelse(qs->sb_buf); in qnx6_put_super() 478 iput(qs->longfile); in qnx6_put_super() [all …]
|
| /linux/drivers/net/ethernet/hisilicon/hns/ |
| H A D | hnae.c | 299 hnae_fini_queue(handle->qs[i]); in hnae_reinit_handle() 305 ret = hnae_init_queue(handle, handle->qs[i], handle->dev); in hnae_reinit_handle() 312 hnae_fini_queue(handle->qs[j]); in hnae_reinit_handle() 351 ret = hnae_init_queue(handle, handle->qs[i], dev); in hnae_get_handle() 364 hnae_fini_queue(handle->qs[j]); in hnae_get_handle() 378 hnae_fini_queue(h->qs[i]); in hnae_put_handle()
|
| H A D | hns_enet.c | 395 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/scsi/elx/efct/ |
| H A D | efct_hw_queues.c | 199 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 D | stats.py | 98 for qs in stats: 99 if qs["ifindex"]== test.ifindex: 100 return qs
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_ethtool.c | 373 struct otx2_qset *qs = &pfvf->qset; in otx2_get_ringparam() local 376 ring->rx_pending = qs->rqe_cnt ? qs->rqe_cnt : Q_COUNT(Q_SIZE_256); in otx2_get_ringparam() 378 ring->tx_pending = qs->sqe_cnt ? qs->sqe_cnt : Q_COUNT(Q_SIZE_4K); in otx2_get_ringparam() 393 struct otx2_qset *qs = &pfvf->qset; in otx2_set_ringparam() local 439 if (tx_count == qs->sqe_cnt && rx_count == qs->rqe_cnt && in otx2_set_ringparam() 447 qs->sqe_cnt = tx_count; in otx2_set_ringparam() 448 qs->rqe_cnt = rx_count; in otx2_set_ringparam()
|
| /linux/net/sched/ |
| H A D | sch_fq_codel.c | 651 struct gnet_stats_queue qs = { 0 }; in fq_codel_dump_class_stats() 678 qs.qlen++; in fq_codel_dump_class_stats() 683 qs.backlog = q->backlogs[idx]; in fq_codel_dump_class_stats() 684 qs.drops = 0; in fq_codel_dump_class_stats() 686 if (gnet_stats_copy_queue(d, NULL, &qs, qs.qlen) < 0) in fq_codel_dump_class_stats() 648 struct gnet_stats_queue qs = { 0 }; fq_codel_dump_class_stats() local
|
| H A D | sch_sfq.c | 909 struct gnet_stats_queue qs = { 0 }; in sfq_dump_class_stats() local 916 qs.qlen = slot->qlen; in sfq_dump_class_stats() 917 qs.backlog = slot->backlog; in sfq_dump_class_stats() 919 if (gnet_stats_copy_queue(d, NULL, &qs, qs.qlen) < 0) in sfq_dump_class_stats()
|
| H A D | sch_cake.c | 3019 struct gnet_stats_queue qs = { 0 }; in cake_dump_class_stats() 3034 qs.qlen++; in cake_dump_class_stats() 3039 qs.backlog = b->backlogs[idx % CAKE_QUEUES]; in cake_dump_class_stats() 3040 qs.drops = flow->dropped; in cake_dump_class_stats() 3042 if (gnet_stats_copy_queue(d, NULL, &qs, qs.qlen) < 0) in cake_dump_class_stats() 3016 struct gnet_stats_queue qs = { 0 }; cake_dump_class_stats() local
|
| /linux/arch/s390/include/uapi/asm/ |
| H A D | runtime_instr.h | 22 __u32 qs : 1; member
|
| /linux/tools/testing/selftests/net/ |
| H A D | broadcast_ether_dst.sh | 49 slowwait 1 grep -qs "listening" "${OUTPUT}"
|
| /linux/drivers/scsi/elx/libefc_sli/ |
| H A D | sli4.c | 428 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 …]
|
| /linux/include/uapi/sound/ |
| H A D | hdspm.h | 27 qs enumerator
|
| /linux/drivers/net/ethernet/cavium/thunder/ |
| H A D | nic.h | 283 struct queue_set *qs; member 587 struct qs_cfg_msg qs; member
|
| H A D | nicvf_queues.h | 335 void nicvf_cmp_queue_config(struct nicvf *nic, struct queue_set *qs,
|
| H A D | nic_main.c | 981 (mbx.qs.num << NIC_QS_ID_SHIFT); in nic_handle_mbx_intr() 982 cfg = mbx.qs.cfg; in nic_handle_mbx_intr() 1026 nic_tx_channel_cfg(nic, mbx.qs.num, &mbx.sq); in nic_handle_mbx_intr()
|
| /linux/arch/mips/boot/dts/mscc/ |
| H A D | ocelot.dtsi | 141 reg-names = "sys", "rew", "qs", "ptp", "port0", "port1",
|