Home
last modified time | relevance | path

Searched refs:ctl (Results 1 – 25 of 109) sorted by relevance

12345

/f-stack/freebsd/net/route/
H A Dnhop.c100 ctl->ctl_rh = rh; in nhops_init_rib()
116 nhgrp_ctl_free(ctl); in destroy_ctl()
118 free(ctl, M_NHOP); in destroy_ctl()
131 destroy_ctl(ctl); in destroy_ctl_epoch()
155 NHOPS_WLOCK(ctl); in nhops_destroy_rib()
163 NHOPS_WUNLOCK(ctl); in nhops_destroy_rib()
265 NHOPS_WLOCK(ctl); in consider_resize()
273 NHOPS_WUNLOCK(ctl); in consider_resize()
293 NHOPS_WLOCK(ctl); in link_nhop()
339 NHOPS_WLOCK(ctl); in unlink_nhop()
[all …]
H A Dnhgrp.c140 NHOPS_RLOCK(ctl); in find_nhgrp()
148 NHOPS_RUNLOCK(ctl); in find_nhgrp()
159 NHOPS_WLOCK(ctl); in link_nhgrp()
165 NHOPS_WUNLOCK(ctl); in link_nhgrp()
175 NHOPS_WUNLOCK(ctl); in link_nhgrp()
188 NHOPS_WLOCK(ctl); in unlink_nhgrp()
194 NHOPS_WUNLOCK(ctl); in unlink_nhgrp()
203 NHOPS_WUNLOCK(ctl); in unlink_nhgrp()
241 NHOPS_WLOCK(ctl); in consider_resize()
249 NHOPS_WUNLOCK(ctl); in consider_resize()
[all …]
H A Dnhop_var.h66 #define NHOPS_WLOCK(ctl) rw_wlock(&(ctl)->ctl_lock) argument
67 #define NHOPS_RLOCK(ctl) rw_rlock(&(ctl)->ctl_lock) argument
68 #define NHOPS_WUNLOCK(ctl) rw_wunlock(&(ctl)->ctl_lock) argument
69 #define NHOPS_RUNLOCK(ctl) rw_runlock(&(ctl)->ctl_lock) argument
70 #define NHOPS_LOCK_INIT(ctl) rw_init(&(ctl)->ctl_lock, "nhop_ctl") argument
71 #define NHOPS_LOCK_DESTROY(ctl) rw_destroy(&(ctl)->ctl_lock) argument
72 #define NHOPS_WLOCK_ASSERT(ctl) rw_assert(&(ctl)->ctl_lock, RA_WLOCKED) argument
100 struct nhop_priv *find_nhop(struct nh_control *ctl,
102 int link_nhop(struct nh_control *ctl, struct nhop_priv *nh_priv);
103 struct nhop_priv *unlink_nhop(struct nh_control *ctl, struct nhop_priv *nh_priv);
H A Dnhgrp_ctl.c310 struct nh_control *ctl; in nhgrp_free() local
346 ctl = nhg_priv->nh_control; in nhgrp_free()
466 nhg_priv = find_nhgrp(ctl, key); in get_nhgrp()
488 if (link_nhgrp(ctl, key) == 0) { in get_nhgrp()
780 struct nh_control *ctl; in nhgrp_get_count() local
783 ctl = rh->nh_control; in nhgrp_get_count()
785 NHOPS_RLOCK(ctl); in nhgrp_get_count()
786 count = ctl->gr_head.items_count; in nhgrp_get_count()
787 NHOPS_RUNLOCK(ctl); in nhgrp_get_count()
812 NHOPS_RLOCK(ctl); in nhgrp_dump_sysctl()
[all …]
H A Dnhop_ctl.c651 struct nh_control *ctl; in nhop_free() local
778 ctl = rh->nh_control; in nhops_update_ifmtu()
780 NHOPS_WLOCK(ctl); in nhops_update_ifmtu()
791 NHOPS_WUNLOCK(ctl); in nhops_update_ifmtu()
881 ctl = rh->nh_control; in nhops_get_count()
883 NHOPS_RLOCK(ctl); in nhops_get_count()
885 NHOPS_RUNLOCK(ctl); in nhops_get_count()
897 ctl = rh->nh_control; in nhops_dump_sysctl()
899 NHOPS_RLOCK(ctl); in nhops_dump_sysctl()
904 NHOPS_RUNLOCK(ctl); in nhops_dump_sysctl()
[all …]
H A Dnhgrp_var.h66 bool nhgrp_ctl_alloc_default(struct nh_control *ctl, int malloc_flags);
67 struct nhgrp_priv *find_nhgrp(struct nh_control *ctl, const struct nhgrp_priv *key);
68 int link_nhgrp(struct nh_control *ctl, struct nhgrp_priv *grp_priv);
69 struct nhgrp_priv *unlink_nhgrp(struct nh_control *ctl, struct nhgrp_priv *key);
/f-stack/dpdk/lib/librte_pipeline/
H A Drte_swx_ctl.c666 ctl->ts_next = calloc(ctl->info.n_tables, in table_state_create()
715 if (!ctl) in rte_swx_ctl_pipeline_free()
724 free(ctl); in rte_swx_ctl_pipeline_free()
738 if (!ctl) in rte_swx_ctl_pipeline_create()
752 ctl->p = p; in rte_swx_ctl_pipeline_create()
873 return ctl; in rte_swx_ctl_pipeline_create()
1294 rte_swx_pipeline_table_state_set(ctl->p, ctl->ts_next); in rte_swx_ctl_pipeline_commit()
1296 ts = ctl->ts; in rte_swx_ctl_pipeline_commit()
1297 ctl->ts = ctl->ts_next; in rte_swx_ctl_pipeline_commit()
1325 if (!ctl) in rte_swx_ctl_pipeline_abort()
[all …]
H A Drte_swx_ctl.h431 rte_swx_ctl_pipeline_table_entry_add(struct rte_swx_ctl_pipeline *ctl,
453 rte_swx_ctl_pipeline_table_default_entry_add(struct rte_swx_ctl_pipeline *ctl,
476 rte_swx_ctl_pipeline_table_entry_delete(struct rte_swx_ctl_pipeline *ctl,
497 rte_swx_ctl_pipeline_commit(struct rte_swx_ctl_pipeline *ctl,
510 rte_swx_ctl_pipeline_abort(struct rte_swx_ctl_pipeline *ctl);
529 rte_swx_ctl_pipeline_table_entry_read(struct rte_swx_ctl_pipeline *ctl,
551 struct rte_swx_ctl_pipeline *ctl,
562 rte_swx_ctl_pipeline_free(struct rte_swx_ctl_pipeline *ctl);
/f-stack/dpdk/drivers/crypto/octeontx2/
H A Dotx2_ipsec_po.h144 struct otx2_ipsec_po_sa_ctl ctl; member
177 struct otx2_ipsec_po_sa_ctl ctl; member
296 struct otx2_ipsec_po_sa_ctl *ctl) in ipsec_po_sa_ctl_set() argument
322 ctl->inner_ip_ver = ctl->outer_ip_ver; in ipsec_po_sa_ctl_set()
346 ctl->enc_type = OTX2_IPSEC_PO_SA_ENC_AES_CCM; in ipsec_po_sa_ctl_set()
370 ctl->auth_type = OTX2_IPSEC_PO_SA_AUTH_NULL; in ipsec_po_sa_ctl_set()
373 ctl->auth_type = OTX2_IPSEC_PO_SA_AUTH_MD5; in ipsec_po_sa_ctl_set()
376 ctl->auth_type = OTX2_IPSEC_PO_SA_AUTH_SHA1; in ipsec_po_sa_ctl_set()
402 ctl->esn_en = 1; in ipsec_po_sa_ctl_set()
407 ctl->spi = rte_cpu_to_be_32(ipsec->spi); in ipsec_po_sa_ctl_set()
[all …]
H A Dotx2_ipsec_fp.h101 struct otx2_ipsec_fp_sa_ctl ctl; member
129 struct otx2_ipsec_fp_sa_ctl ctl; member
260 struct otx2_ipsec_fp_sa_ctl *ctl) in ipsec_fp_sa_ctl_set() argument
304 ctl->enc_type = OTX2_IPSEC_FP_SA_ENC_AES_GCM; in ipsec_fp_sa_ctl_set()
310 ctl->enc_type = OTX2_IPSEC_FP_SA_ENC_AES_CBC; in ipsec_fp_sa_ctl_set()
333 ctl->auth_type = OTX2_IPSEC_FP_SA_AUTH_NULL; in ipsec_fp_sa_ctl_set()
336 ctl->auth_type = OTX2_IPSEC_FP_SA_AUTH_MD5; in ipsec_fp_sa_ctl_set()
339 ctl->auth_type = OTX2_IPSEC_FP_SA_AUTH_SHA1; in ipsec_fp_sa_ctl_set()
365 ctl->esn_en = 1; in ipsec_fp_sa_ctl_set()
367 ctl->spi = rte_cpu_to_be_32(ipsec->spi); in ipsec_fp_sa_ctl_set()
[all …]
H A Dotx2_cryptodev_sec.c206 struct otx2_ipsec_po_sa_ctl *ctl; in crypto_sec_ipsec_outb_session_create() local
219 ctl = &sa->ctl; in crypto_sec_ipsec_outb_session_create()
220 if (ctl->valid) { in crypto_sec_ipsec_outb_session_create()
233 ret = ipsec_po_sa_ctl_set(ipsec, crypto_xform, ctl); in crypto_sec_ipsec_outb_session_create()
345 struct otx2_ipsec_po_sa_ctl *ctl; in crypto_sec_ipsec_inb_session_create() local
357 ctl = &sa->ctl; in crypto_sec_ipsec_inb_session_create()
359 if (ctl->valid) { in crypto_sec_ipsec_inb_session_create()
366 ret = ipsec_po_sa_ctl_set(ipsec, crypto_xform, ctl); in crypto_sec_ipsec_inb_session_create()
/f-stack/dpdk/drivers/net/octeontx/base/
H A Docteontx_pkovf.c196 while (dq < RTE_DIM(ctl->dq_map)) { in octeontx_pko_dq_range_lookup()
200 dq < RTE_DIM(ctl->dq_map)) { in octeontx_pko_dq_range_lookup()
224 ctl->dq_map[dq].chanid = ~chanid; in octeontx_pko_dq_range_assign()
236 rte_spinlock_lock(&ctl->lock); in octeontx_pko_dq_claim()
240 rte_spinlock_unlock(&ctl->lock); in octeontx_pko_dq_claim()
245 rte_spinlock_unlock(&ctl->lock); in octeontx_pko_dq_claim()
256 rte_spinlock_lock(&ctl->lock); in octeontx_pko_dq_free()
264 rte_spinlock_unlock(&ctl->lock); in octeontx_pko_dq_free()
306 if (!ctl->pko[dq_vf].bar0) { in octeontx_pko_chan_start()
350 if (!ctl->pko[dq_vf].bar0) { in octeontx_pko_chan_stop()
[all …]
/f-stack/dpdk/drivers/raw/ifpga/base/
H A Difpga_fme_dperf.c42 ctl.csr = readq(&dperf->fab_ctl); in fabric_pobj_is_enabled()
47 return port_id == ctl.port_id; in fabric_pobj_is_enabled()
66 ctl.csr = readq(&dperf->fab_ctl); in read_fabric_counter()
67 ctl.fab_evtcode = fab_event; in read_fabric_counter()
68 writeq(ctl.csr, &dperf->fab_ctl); in read_fabric_counter()
138 ctl.csr = readq(&dperf->fab_ctl); in fme_dperf_set_fab_port_enable()
143 ctl.port_id = port_id; in fme_dperf_set_fab_port_enable()
146 writeq(ctl.csr, &dperf->fab_ctl); in fme_dperf_set_fab_port_enable()
159 ctl.csr = readq(&dperf->fab_ctl); in fme_dperf_get_fab_freeze()
160 *freeze = (u64)ctl.freeze; in fme_dperf_get_fab_freeze()
[all …]
H A Difpga_fme_iperf.c42 ctl.csr = readq(&iperf->ch_ctl); in fme_iperf_get_cache_freeze()
43 *freeze = (u64)ctl.freeze; in fme_iperf_get_cache_freeze()
59 ctl.freeze = state; in fme_iperf_set_cache_freeze()
82 ctl.cci_chsel = channel; in read_cache_counter()
83 ctl.cache_event = event; in read_cache_counter()
133 *freeze = (u64)ctl.freeze; in fme_iperf_get_vtd_freeze()
150 ctl.freeze = state; in fme_iperf_set_vtd_freeze()
222 ctl.vtd_evtcode = event; in read_iommu_counter()
366 ctl.port_id = port_id; in fme_iperf_set_fab_port_enable()
383 *freeze = (u64)ctl.freeze; in fme_iperf_get_fab_freeze()
[all …]
/f-stack/freebsd/mips/atheros/ar531x/
H A Dar5315_spi.c159 uint32_t ctl, cnt, op, rdat, cs; in ar5315_spi_transfer() local
175 ctl = SPI_READ(sc, ARSPI_REG_CTL); in ar5315_spi_transfer()
176 } while (ctl & ARSPI_CTL_BUSY); in ar5315_spi_transfer()
189 ctl = SPI_READ(sc, ARSPI_REG_CTL); in ar5315_spi_transfer()
190 } while (ctl & ARSPI_CTL_BUSY); in ar5315_spi_transfer()
208 ctl |= (cnt << ARSPI_CTL_TXCNT_SHIFT); in ar5315_spi_transfer()
214 ctl |= (cnt << ARSPI_CTL_RXCNT_SHIFT); in ar5315_spi_transfer()
216 ctl |= ARSPI_CTL_START; in ar5315_spi_transfer()
218 SPI_WRITE(sc, ARSPI_REG_CTL, ctl); in ar5315_spi_transfer()
235 ctl = SPI_READ(sc, ARSPI_REG_CTL); in ar5315_spi_transfer()
[all …]
/f-stack/freebsd/x86/x86/
H A Dmca.c697 uint64_t ctl; in cmci_update() local
714 ctl |= new_threshold; in cmci_update()
1069 uint64_t ctl; in cmci_monitor() local
1088 if (ctl & MC_CTL2_CMCI_EN) in cmci_monitor()
1093 ctl &= ~MC_CTL2_THRESHOLD; in cmci_monitor()
1105 ctl |= 0x7fff; in cmci_monitor()
1112 ctl |= 1; in cmci_monitor()
1127 uint64_t ctl; in cmci_resume() local
1265 uint64_t ctl, mask; in _mca_init() local
1329 ctl &= ~(1UL << 10); in _mca_init()
[all …]
/f-stack/freebsd/arm/ti/
H A Dti_pruss.c97 struct ctl struct
105 struct ctl ctl; member
186 struct ctl* irqs; in ti_pruss_irq_open()
194 irqs->cnt = sc->tstamps.ctl.cnt; in ti_pruss_irq_open()
195 irqs->idx = sc->tstamps.ctl.idx; in ti_pruss_irq_open()
209 struct ctl* irqs; in ti_pruss_irq_poll()
229 struct ctl* priv; in ti_pruss_irq_read()
247 priv->cnt = irq->tstamps.ctl.cnt; in ti_pruss_irq_read()
248 priv->idx = irq->tstamps.ctl.idx; in ti_pruss_irq_read()
764 size_t wr = irq->tstamps.ctl.idx; in ti_pruss_intr()
[all …]
/f-stack/freebsd/contrib/ipfilter/netinet/
H A Dip_dns_pxy.c99 ipf_p_dns_ctl(softc, arg, ctl) in ipf_p_dns_ctl() argument
102 ap_ctl_t *ctl;
116 if (idns->idns_namelen != ctl->apc_dsize)
118 if (!strncmp(ctl->apc_data, idns->idns_name,
123 switch (ctl->apc_cmd)
151 idns->idns_namelen = ctl->apc_dsize;
152 idns->idns_name = ctl->apc_data;
153 idns->idns_pass = ctl->apc_arg;
156 ctl->apc_data = NULL;
157 ctl->apc_dsize = 0;
H A Dip_proxy.c602 ipf_proxy_ctl(softc, arg, ctl) in ipf_proxy_ctl() argument
605 ap_ctl_t *ctl;
611 a = ipf_proxy_lookup(arg, ctl->apc_p, ctl->apc_label);
615 ctl->apc_label, ctl->apc_p);
621 ctl->apc_label, ctl->apc_p);
712 ap_ctl_t ctl; local
727 if (ctl.apc_dsize > 0) {
734 ctl.apc_dsize);
736 ctl.apc_data = ptr;
739 ctl.apc_data = NULL;
[all …]
/f-stack/freebsd/contrib/device-tree/Bindings/mmc/
H A Darasan,sdhci.txt17 For this device it is strongly suggested to include arasan,soc-ctl-syscon.
27 For this device it is strongly suggested to include arasan,soc-ctl-syscon.
29 For this device it is strongly suggested to include arasan,soc-ctl-syscon.
31 For this device it is strongly suggested to include arasan,soc-ctl-syscon.
49 - arasan,soc-ctl-syscon: A phandle to a syscon device (see ../mfd/syscon.txt)
95 arasan,soc-ctl-syscon = <&grf>;
140 arasan,soc-ctl-syscon = <&sysconf>;
155 arasan,soc-ctl-syscon = <&sysconf>;
171 arasan,soc-ctl-syscon = <&mmc_phy_syscon>;
181 arasan,soc-ctl-syscon = <&sd0_phy_syscon>;
[all …]
H A Darasan,sdhci.yaml52 arasan,soc-ctl-syscon.
70 arasan,soc-ctl-syscon.
76 arasan,soc-ctl-syscon.
82 arasan,soc-ctl-syscon.
86 arasan,soc-ctl-syscon.
90 arasan,soc-ctl-syscon.
115 arasan,soc-ctl-syscon:
201 arasan,soc-ctl-syscon = <&grf>;
252 arasan,soc-ctl-syscon = <&sysconf>;
270 arasan,soc-ctl-syscon = <&sysconf>;
[all …]
/f-stack/dpdk/drivers/net/octeontx2/
H A Dotx2_ethdev_sec.c304 inst.param2 = ctl->auth_type; in hmac_init()
356 struct otx2_ipsec_fp_sa_ctl *ctl; in eth_sec_ipsec_out_sess_create() local
367 ctl = &sa->ctl; in eth_sec_ipsec_out_sess_create()
368 if (ctl->valid) { in eth_sec_ipsec_out_sess_create()
444 ret = ipsec_fp_sa_ctl_set(ipsec, crypto_xform, ctl); in eth_sec_ipsec_out_sess_create()
449 ret = hmac_init(ctl, qp, auth_key, auth_key_len, sa->hmac_key); in eth_sec_ipsec_out_sess_create()
472 struct otx2_ipsec_fp_sa_ctl *ctl; in eth_sec_ipsec_in_sess_create() local
483 ctl = &sa->ctl; in eth_sec_ipsec_in_sess_create()
489 if (ctl->valid) { in eth_sec_ipsec_in_sess_create()
529 ret = ipsec_fp_sa_ctl_set(ipsec, crypto_xform, ctl); in eth_sec_ipsec_in_sess_create()
[all …]
/f-stack/dpdk/examples/pipeline/
H A Dcli.c502 if (!p || p->ctl) { in cmd_pipeline_port_in()
634 if (!p || p->ctl) { in cmd_pipeline_port_out()
752 if (!p || p->ctl) { in cmd_pipeline_build()
774 p->ctl = rte_swx_ctl_pipeline_create(p->p); in cmd_pipeline_build()
775 if (!p->ctl) { in cmd_pipeline_build()
819 if (!p || !p->ctl) { in cmd_pipeline_table_update()
968 status = rte_swx_ctl_pipeline_commit(p->ctl, 1); in cmd_pipeline_table_update()
987 rte_swx_ctl_pipeline_abort(p->ctl); in cmd_pipeline_table_update()
1018 if (!p || !p->ctl) { in cmd_pipeline_stats()
1102 if (!p || !p->ctl) { in cmd_thread_pipeline_enable()
[all …]
/f-stack/freebsd/contrib/device-tree/Bindings/arm/altera/
H A Dsocfpga-sdram-controller.txt4 - compatible : Should contain "altr,sdr-ctl" and "syscon".
10 compatible = "altr,sdr-ctl", "syscon";
/f-stack/freebsd/contrib/openzfs/cmd/arc_summary/
H A Darc_summary388 def is_value(ctl):
89 return ctl.type != sysctl.CTLTYPE_NODE
91 def namefmt(ctl, base='vfs.zfs.'):
94 return ctl.name[cut:]
105 return {namefmt(ctl): str(ctl.value) for ctl in ctls if is_value(ctl)}
123 return {namefmt(ctl): ctl.description for ctl in ctls if is_value(ctl)}

12345