Home
last modified time | relevance | path

Searched refs:qtag (Results 1 – 9 of 9) sorted by relevance

/freebsd/sys/dev/ixl/
H A Dixl_pf_qmgr.c55 ixl_pf_qmgr_alloc_contiguous(struct ixl_pf_qmgr *qmgr, u16 num, struct ixl_pf_qtag *qtag) in ixl_pf_qmgr_alloc_contiguous() argument
62 if (qtag == NULL || num < 1) in ixl_pf_qmgr_alloc_contiguous()
81 bzero(qtag, sizeof(*qtag)); in ixl_pf_qmgr_alloc_contiguous()
82 qtag->qmgr = qmgr; in ixl_pf_qmgr_alloc_contiguous()
83 qtag->type = IXL_PF_QALLOC_CONTIGUOUS; in ixl_pf_qmgr_alloc_contiguous()
84 qtag->qidx[0] = block_start; in ixl_pf_qmgr_alloc_contiguous()
85 qtag->num_allocated = alloc_size; in ixl_pf_qmgr_alloc_contiguous()
86 qtag->num_active = num; in ixl_pf_qmgr_alloc_contiguous()
95 ixl_pf_qmgr_alloc_scattered(struct ixl_pf_qmgr *qmgr, u16 num, struct ixl_pf_qtag *qtag) in ixl_pf_qmgr_alloc_scattered() argument
101 if (qtag == NULL || num < 1 || num > 16) in ixl_pf_qmgr_alloc_scattered()
[all …]
H A Dixl_pf_qmgr.h93 int ixl_pf_qmgr_alloc_scattered(struct ixl_pf_qmgr *qmgr, u16 num, struct ixl_pf_qtag *qtag);
95 int ixl_pf_qmgr_alloc_contiguous(struct ixl_pf_qmgr *qmgr, u16 num, struct ixl_pf_qtag *qtag);
97 int ixl_pf_qmgr_release(struct ixl_pf_qmgr *qmgr, struct ixl_pf_qtag *qtag);
101 void ixl_pf_qmgr_mark_queue_enabled(struct ixl_pf_qtag *qtag, u16 vsi_qidx, bool tx);
102 void ixl_pf_qmgr_mark_queue_disabled(struct ixl_pf_qtag *qtag, u16 vsi_qidx, bool tx);
103 void ixl_pf_qmgr_mark_queue_configured(struct ixl_pf_qtag *qtag, u16 vsi_qidx, bool tx);
104 bool ixl_pf_qmgr_is_queue_enabled(struct ixl_pf_qtag *qtag, u16 vsi_qidx, bool tx);
105 bool ixl_pf_qmgr_is_queue_configured(struct ixl_pf_qtag *qtag, u16 vsi_qidx, bool tx);
106 void ixl_pf_qmgr_clear_queue_flags(struct ixl_pf_qtag *qtag);
109 u16 ixl_pf_qidx_from_vsi_qidx(struct ixl_pf_qtag *qtag, u16 index);
H A Dixl_pf_iov.c162 for (i = 0; i < vf->qtag.num_active; i++) in ixl_vf_alloc_vsi()
163 vsi_ctx.info.queue_mapping[i] = vf->qtag.qidx[i]; in ixl_vf_alloc_vsi()
169 ((fls(vf->qtag.num_allocated) - 1) << I40E_AQ_VSI_TC_QUE_NUMBER_SHIFT)); in ixl_vf_alloc_vsi()
176 vf->vsi.num_rx_queues = vf->qtag.num_active; in ixl_vf_alloc_vsi()
177 vf->vsi.num_tx_queues = vf->qtag.num_active; in ixl_vf_alloc_vsi()
264 qtable = ixl_pf_qidx_from_vsi_qidx(&vf->qtag, i) << in ixl_vf_map_queues()
278 ixl_pf_qidx_from_vsi_qidx(&vf->qtag, i)); in ixl_vf_map_queues()
425 ixl_disable_rings(pf, &vf->vsi, &vf->qtag); in ixl_reinit_vf()
426 ixl_pf_qmgr_clear_queue_flags(&vf->qtag); in ixl_reinit_vf()
566 global_queue_num = ixl_pf_qidx_from_vsi_qidx(&vf->qtag, info->queue_id); in ixl_vf_config_tx_queue()
[all …]
H A Dixl_pf_iflib.c481 tc_queues = fls(pf->qtag.num_allocated) - 1; in ixl_initialize_vsi()
482 ctxt.info.tc_mapping[0] = ((pf->qtag.first_qidx << I40E_AQ_VSI_TC_QUE_OFFSET_SHIFT) in ixl_initialize_vsi()
881 error = ixl_enable_tx_ring(pf, &pf->qtag, i); in ixl_enable_rings()
884 error = ixl_enable_rx_ring(pf, &pf->qtag, i); in ixl_enable_rings()
890 ixl_disable_rings(struct ixl_pf *pf, struct ixl_vsi *vsi, struct ixl_pf_qtag *qtag) in ixl_disable_rings() argument
895 error = ixl_disable_tx_ring(pf, qtag, i); in ixl_disable_rings()
898 error = ixl_disable_rx_ring(pf, qtag, i); in ixl_disable_rings()
945 ixl_pf_qmgr_release(&pf->qmgr, &pf->qtag); in ixl_prepare_for_reset()
991 error = ixl_pf_qmgr_alloc_contiguous(&pf->qmgr, vsi->num_tx_queues, &pf->qtag); in ixl_rebuild_hw_structs_after_reset()
H A Dixl_pf.h109 struct ixl_pf_qtag qtag; member
130 struct ixl_pf_qtag qtag; member
H A Dixl_pf_main.c520 ixl_pf_qmgr_release(&pf->qmgr, &pf->qtag); in ixl_teardown_hw_structs()
1602 ixl_enable_tx_ring(struct ixl_pf *pf, struct ixl_pf_qtag *qtag, u16 vsi_qidx) in ixl_enable_tx_ring() argument
1609 pf_qidx = ixl_pf_qidx_from_vsi_qidx(qtag, vsi_qidx); in ixl_enable_tx_ring()
1638 ixl_enable_rx_ring(struct ixl_pf *pf, struct ixl_pf_qtag *qtag, u16 vsi_qidx) in ixl_enable_rx_ring() argument
1645 pf_qidx = ixl_pf_qidx_from_vsi_qidx(qtag, vsi_qidx); in ixl_enable_rx_ring()
1672 ixl_enable_ring(struct ixl_pf *pf, struct ixl_pf_qtag *qtag, u16 vsi_qidx) in ixl_enable_ring() argument
1676 error = ixl_enable_tx_ring(pf, qtag, vsi_qidx); in ixl_enable_ring()
1680 error = ixl_enable_rx_ring(pf, qtag, vsi_qidx); in ixl_enable_ring()
1688 ixl_disable_tx_ring(struct ixl_pf *pf, struct ixl_pf_qtag *qtag, u16 vsi_qidx) in ixl_disable_tx_ring() argument
1695 pf_qidx = ixl_pf_qidx_from_vsi_qidx(qtag, vsi_qidx); in ixl_disable_tx_ring()
[all …]
H A Dif_ixl.c750 max(vsi->num_rx_queues, vsi->num_tx_queues), &pf->qtag); in ixl_if_attach_post()
757 pf->qtag.num_allocated, pf->qtag.num_active); in ixl_if_attach_post()
1061 ixl_disable_rings(pf, vsi, &pf->qtag); in ixl_if_stop()
/freebsd/contrib/less/
H A Dtags.c512 char *qtag; in findgtag()
537 qtag = shell_quote(tag); in findgtag()
538 if (qtag == NULL) in findgtag()
539 qtag = save(tag); in findgtag()
541 strlen(qtag) + 5, sizeof(char)); in findgtag()
542 sprintf(command, "%s -x%s %s", cmd, flag, qtag); in findgtag()
543 free(qtag); in findgtag()
/freebsd/sys/net/
H A Dif_ethersubr.c445 struct ether_8021q_tag qtag; in ether_set_pcp() local
455 qtag.vid = 0; in ether_set_pcp()
456 qtag.pcp = pcp; in ether_set_pcp()
457 qtag.proto = ETHERTYPE_VLAN; in ether_set_pcp()
458 if (ether_8021q_frame(mp, ifp, ifp, &qtag)) in ether_set_pcp()
1404 const struct ether_8021q_tag *qtag) in ether_do_pcp()
1409 uint8_t pcp = qtag->pcp; in ether_do_pcp()
1454 tag = EVL_MAKETAG(qtag->vid, *(uint8_t *)(mtag + 1), 0); in ether_8021q_frame()
1456 tag = EVL_MAKETAG(qtag->vid, pcp, 0); in ether_8021q_frame()
1458 (qtag in ether_8021q_frame()
1414 ether_8021q_frame(struct mbuf ** mp,struct ifnet * ife,struct ifnet * p,const struct ether_8021q_tag * qtag) ether_8021q_frame() argument
[all...]