Home
last modified time | relevance | path

Searched full:pd (Results 1 – 25 of 900) sorted by relevance

12345678910>>...36

/freebsd/sys/netpfil/pf/
H A Dpf.c429 if ((pd->dir) == PF_OUT) \
436 #define PACKET_LOOPED(pd) ((pd)->pf_mtag && \ argument
437 (pd)->pf_mtag->flags & PF_MTAG_FLAG_PACKET_LOOPED)
439 #define STATE_LOOKUP(k, s, pd) \ argument
441 (s) = pf_find_state((pd->kif), (k), (pd->dir)); \
442 SDT_PROBE5(pf, ip, state, lookup, pd->kif, k, (pd->dir), pd, (s)); \
445 if (PACKET_LOOPED(pd)) \
450 BOUND_IFACE(struct pf_kstate *st, struct pf_pdesc *pd) in BOUND_IFACE() argument
452 struct pfi_kkif *k = pd->kif; in BOUND_IFACE()
464 if (st->rule->rt == PF_REPLYTO || (pd->af != pd->naf)) in BOUND_IFACE()
[all …]
H A Dpf_lb.c141 pf_match_translation(struct pf_pdesc *pd, in pf_match_translation() argument
155 if (r->action == PF_BINAT && pd->dir == PF_IN) { in pf_match_translation()
165 if (pfi_kkif_match(r->kif, pd->kif) == r->ifnot) in pf_match_translation()
167 else if (r->direction && r->direction != pd->dir) in pf_match_translation()
169 else if (r->af && r->af != pd->af) in pf_match_translation()
171 else if (r->proto && r->proto != pd->proto) in pf_match_translation()
173 else if (PF_MISMATCHAW(&src->addr, &pd->nsaddr, pd->af, in pf_match_translation()
174 src->neg, pd->kif, M_GETFIB(pd->m))) in pf_match_translation()
178 src->port[0], src->port[1], pd->nsport)) in pf_match_translation()
182 PF_MISMATCHAW(&dst->addr, &pd->ndaddr, pd->af, dst->neg, NULL, in pf_match_translation()
[all …]
H A Dpf_syncookies.c263 pf_synflood_check(struct pf_pdesc *pd) in pf_synflood_check() argument
265 MPASS(pd->proto == IPPROTO_TCP); in pf_synflood_check()
268 if (pd->pf_mtag && (pd->pf_mtag->flags & PF_MTAG_FLAG_SYNCOOKIE_RECREATED)) in pf_synflood_check()
292 pf_syncookie_send(struct pf_pdesc *pd) in pf_syncookie_send() argument
297 mss = max(V_tcp_mssdflt, pf_get_mss(pd)); in pf_syncookie_send()
298 iss = pf_syncookie_generate(pd, mss); in pf_syncookie_send()
299 pf_send_tcp(NULL, pd->af, pd->dst, pd->src, *pd->dport, *pd->sport, in pf_syncookie_send()
300 iss, ntohl(pd->hdr.tcp.th_seq) + 1, TH_SYN|TH_ACK, 0, mss, in pf_syncookie_send()
301 0, M_SKIP_FIREWALL | (pd->m->m_flags & M_LOOP), 0, 0, in pf_syncookie_send()
302 pd->act.rtableid); in pf_syncookie_send()
[all …]
H A Dpf_norm.c1001 struct pf_pdesc pd; in pf_refragment6() local
1065 memset(&pd, 0, sizeof(pd)); in pf_refragment6()
1066 pd.pf_mtag = pf_find_mtag(m); in pf_refragment6()
1096 pf_normalize_ip(u_short *reason, struct pf_pdesc *pd) in pf_normalize_ip()
1099 struct ip *h = mtod(pd->m, struct ip *); in pf_normalize_ip()
1125 if (pfi_kkif_match(r->kif, pd->kif) == r->ifnot) in pf_normalize_ip()
1127 else if (r->direction && r->direction != pd->dir) in pf_normalize_ip()
1135 r->src.neg, pd->kif, M_GETFIB(pd in pf_normalize_ip()
1097 pf_normalize_ip(struct mbuf ** m0,u_short * reason,struct pf_pdesc * pd) pf_normalize_ip() argument
1261 pf_normalize_ip6(struct mbuf ** m0,int off,u_short * reason,struct pf_pdesc * pd) pf_normalize_ip6() argument
1340 pf_normalize_tcp(struct pf_pdesc * pd) pf_normalize_tcp() argument
1464 pf_normalize_tcp_init(struct pf_pdesc * pd,struct tcphdr * th,struct pf_state_peer * src,struct pf_state_peer * dst) pf_normalize_tcp_init() argument
1554 pf_normalize_sctp_init(struct pf_pdesc * pd,struct pf_state_peer * src,struct pf_state_peer * dst) pf_normalize_sctp_init() argument
1573 pf_normalize_tcp_stateful(struct pf_pdesc * pd,u_short * reason,struct tcphdr * th,struct pf_kstate * state,struct pf_state_peer * src,struct pf_state_peer * dst,int * writeback) pf_normalize_tcp_stateful() argument
1968 pf_normalize_mss(struct pf_pdesc * pd) pf_normalize_mss() argument
2022 pf_scan_sctp(struct pf_pdesc * pd) pf_scan_sctp() argument
2146 pf_normalize_sctp(struct pf_pdesc * pd) pf_normalize_sctp() argument
2222 pf_scrub(struct pf_pdesc * pd) pf_scrub() argument
[all...]
/freebsd/share/doc/psd/04.uprog/
H A Dp9128 .nr PD .4v
131 .nr PD 0
151 .nr PD .4v
154 .nr PD 0
172 .nr PD .4v
175 .nr PD 0
190 .nr PD .4v
193 .nr PD 0
201 .nr PD .4v
204 .nr PD 0
[all …]
/freebsd/crypto/openssl/crypto/
H A Dparam_build.c55 OSSL_PARAM_BLD_DEF *pd = OPENSSL_zalloc(sizeof(*pd)); in param_push() local
57 if (pd == NULL) { in param_push()
61 pd->key = key; in param_push()
62 pd->type = type; in param_push()
63 pd->size = size; in param_push()
64 pd->alloc_blocks = ossl_param_bytes_to_blocks(alloc); in param_push()
65 if ((pd->secure = secure) != 0) in param_push()
66 bld->secure_blocks += pd->alloc_blocks; in param_push()
68 bld->total_blocks += pd->alloc_blocks; in param_push()
69 if (sk_OSSL_PARAM_BLD_DEF_push(bld->params, pd) <= 0) { in param_push()
[all …]
/freebsd/sys/contrib/device-tree/src/arm64/freescale/
H A Dimx8qm-ss-audio.dtsi37 power-domains = <&pd IMX_SC_R_ASRC_0>;
67 power-domains = <&pd IMX_SC_R_ASRC_1>;
91 power-domains = <&pd IMX_SC_R_SAI_4>;
108 power-domains = <&pd IMX_SC_R_SAI_5>;
120 power-domains = <&pd IMX_SC_R_SAI_4>;
132 power-domains = <&pd IMX_SC_R_SAI_5>;
147 power-domains = <&pd IMX_SC_R_ESAI_1>;
163 power-domains = <&pd IMX_SC_R_SAI_6>;
179 power-domains = <&pd IMX_SC_R_SAI_7>;
191 power-domains = <&pd IMX_SC_R_ESAI_1>;
[all …]
H A Dimx8dxl-ss-adma.dtsi22 power-domains = <&pd IMX_SC_R_AUDIO_CLK_0>,
23 <&pd IMX_SC_R_AUDIO_CLK_1>,
24 <&pd IMX_SC_R_MCLK_OUT_0>,
25 <&pd IMX_SC_R_MCLK_OUT_1>,
26 <&pd IMX_SC_R_AUDIO_PLL_0>,
27 <&pd IMX_SC_R_AUDIO_PLL_1>,
28 <&pd IMX_SC_R_ASRC_0>,
29 <&pd IMX_SC_R_SAI_0>,
30 <&pd IMX_SC_R_SAI_1>,
31 <&pd IMX_SC_R_SAI_2>,
[all …]
H A Dimx8qm-ss-dma.dtsi17 power-domains = <&pd IMX_SC_R_UART_4>;
30 power-domains = <&pd IMX_SC_R_I2C_4>;
43 power-domains = <&pd IMX_SC_R_I2C_4>;
56 power-domains = <&pd IMX_SC_R_CAN_1>;
69 power-domains = <&pd IMX_SC_R_CAN_2>;
100 power-domains = <&pd IMX_SC_R_DMA_0_CH0>,
101 <&pd IMX_SC_R_DMA_0_CH1>,
102 <&pd IMX_SC_R_DMA_0_CH2>,
103 <&pd IMX_SC_R_DMA_0_CH3>,
104 <&pd IMX_SC_R_DMA_0_CH4>,
[all …]
H A Dimx8-ss-audio.dtsi163 power-domains = <&pd IMX_SC_R_ASRC_0>;
178 power-domains = <&pd IMX_SC_R_ESAI_0>;
202 power-domains = <&pd IMX_SC_R_SPDIF_0>;
218 power-domains = <&pd IMX_SC_R_SAI_0>;
234 power-domains = <&pd IMX_SC_R_SAI_1>;
250 power-domains = <&pd IMX_SC_R_SAI_2>;
266 power-domains = <&pd IMX_SC_R_SAI_3>;
300 power-domains = <&pd IMX_SC_R_DMA_0_CH0>,
301 <&pd IMX_SC_R_DMA_0_CH1>,
302 <&pd IMX_SC_R_DMA_0_CH2>,
[all …]
H A Dimx8-ss-dma.dtsi36 power-domains = <&pd IMX_SC_R_SPI_0>;
54 power-domains = <&pd IMX_SC_R_SPI_1>;
72 power-domains = <&pd IMX_SC_R_SPI_2>;
90 power-domains = <&pd IMX_SC_R_SPI_3>;
104 power-domains = <&pd IMX_SC_R_UART_0>;
118 power-domains = <&pd IMX_SC_R_UART_1>;
132 power-domains = <&pd IMX_SC_R_UART_2>;
146 power-domains = <&pd IMX_SC_R_UART_3>;
162 power-domains = <&pd IMX_SC_R_LCD_0_PWM_0>;
186 power-domains = <&pd IMX_SC_R_DMA_2_CH0>,
[all …]
/freebsd/sys/kern/
H A Dsys_procdesc.c124 struct procdesc *pd; in procdesc_find() local
135 pd = fp->f_data; in procdesc_find()
137 if (pd->pd_proc != NULL) { in procdesc_find()
138 *p = pd->pd_proc; in procdesc_find()
155 struct procdesc *pd; in procdesc_pid() local
160 pd = fp_procdesc->f_data; in procdesc_pid()
161 return (pd->pd_pid); in procdesc_pid()
211 struct procdesc *pd; in procdesc_new() local
213 pd = malloc(sizeof(*pd), M_PROCDESC, M_WAITOK | M_ZERO); in procdesc_new()
214 pd->pd_proc = p; in procdesc_new()
[all …]
H A Dsubr_devmap.c65 const struct devmap_entry *pd; in devmap_dump_table() local
73 for (pd = devmap_table; pd->pd_size != 0; ++pd) { in devmap_dump_table()
75 (uintmax_t)pd->pd_pa, in devmap_dump_table()
76 (uintmax_t)(pd->pd_pa + pd->pd_size - 1), in devmap_dump_table()
77 (uintmax_t)pd->pd_va); in devmap_dump_table()
98 const struct devmap_entry *pd; in devmap_lastaddr() local
105 for (pd = devmap_table; pd != NULL && pd->pd_size != 0; ++pd) { in devmap_lastaddr()
106 if (lowaddr > pd->pd_va) in devmap_lastaddr()
107 lowaddr = pd->pd_va; in devmap_lastaddr()
172 const struct devmap_entry *pd; in devmap_bootstrap() local
[all …]
/freebsd/sys/contrib/openzfs/module/icp/include/sys/crypto/
H A Dimpl.h89 #define KCF_IS_PROV_USABLE(pd) ((pd)->pd_state == KCF_PROV_READY) argument
90 #define KCF_IS_PROV_REMOVED(pd) ((pd)->pd_state >= KCF_PROV_REMOVED) argument
229 #define KCF_TO_PROV_MECH_INDX(pd, mech_type) \ argument
230 ((pd)->pd_mech_indx[KCF_MECH2CLASS(mech_type)] \
233 #define KCF_TO_PROV_MECHINFO(pd, mech_type) \ argument
234 ((pd)->pd_mechanisms[KCF_TO_PROV_MECH_INDX(pd, mech_type)])
236 #define KCF_TO_PROV_MECHNUM(pd, mech_type) \ argument
237 (KCF_TO_PROV_MECHINFO(pd, mech_type).cm_mech_number)
250 * Wrappers for ops vectors. In the wrapper definitions below, the pd
255 #define KCF_PROV_CIPHER_OPS(pd) ((pd)->pd_ops_vector->co_cipher_ops) argument
[all …]
/freebsd/stand/efi/libefi/
H A Defipart.c137 pdinfo_t *pd = NULL; in efiblk_get_pdinfo() local
141 return (pd); in efiblk_get_pdinfo()
143 STAILQ_FOREACH(pd, pdi, pd_link) { in efiblk_get_pdinfo()
144 if (pd->pd_unit == dev->d_unit) in efiblk_get_pdinfo()
145 return (pd); in efiblk_get_pdinfo()
147 return (pd); in efiblk_get_pdinfo()
164 same_handle(pdinfo_t *pd, EFI_HANDLE h) in same_handle() argument
167 return (pd->pd_handle == h || pd->pd_alias == h); in same_handle()
204 pdinfo_t *pd; in efiblk_pdinfo_count() local
207 STAILQ_FOREACH(pd, pdi, pd_link) { in efiblk_pdinfo_count()
[all …]
/freebsd/contrib/libpcap/
H A Dpcap-dpdk.c254 static int dpdk_init_timer(struct pcap_dpdk *pd){ in dpdk_init_timer() argument
255 gettimeofday(&(pd->ts_helper.start_time),NULL); in dpdk_init_timer()
256 pd->ts_helper.start_cycles = rte_get_timer_cycles(); in dpdk_init_timer()
257 pd->ts_helper.hz = rte_get_timer_hz(); in dpdk_init_timer()
258 if (pd->ts_helper.hz == 0){ in dpdk_init_timer()
287 struct pcap_dpdk *pd = (struct pcap_dpdk*)(p->priv); in dpdk_read_with_timeout() local
291 if (pd->nonblock){ in dpdk_read_with_timeout()
293 nb_rx = (int)rte_eth_rx_burst(pd->portid, 0, pkts_burst, burst_cnt); in dpdk_read_with_timeout()
298 nb_rx = (int)rte_eth_rx_burst(pd->portid, 0, pkts_burst, burst_cnt); in dpdk_read_with_timeout()
317 struct pcap_dpdk *pd = (struct pcap_dpdk*)(p->priv); in pcap_dpdk_dispatch() local
[all …]
H A Dpcap-dag.c239 struct pcap_dag *pd = p->priv; in dag_platform_cleanup() local
241 if(dag_stop_stream(p->fd, pd->dag_stream) < 0) in dag_platform_cleanup()
244 if(dag_detach_stream(p->fd, pd->dag_stream) < 0) in dag_platform_cleanup()
247 if(pd->dag_ref != NULL) { in dag_platform_cleanup()
248 dag_config_dispose(pd->dag_ref); in dag_platform_cleanup()
251 * dag_close(p->fd), as dag_config_dispose(pd->dag_ref) in dag_platform_cleanup()
257 pd->dag_ref = NULL; in dag_platform_cleanup()
339 struct pcap_dag *pd = p->priv; in dag_read() local
341 unsigned int nonblocking = pd->dag_flags & DAGF_NONBLOCK; in dag_read()
346 while (pd->dag_mem_top - pd->dag_mem_bottom < dag_record_size) { in dag_read()
[all …]
/freebsd/sys/contrib/openzfs/module/icp/api/
H A Dkcf_mac.c89 kcf_provider_desc_t *pd; in crypto_mac() local
95 /* The pd is returned held */ in crypto_mac()
96 if ((pd = kcf_get_mech_provider(mech->cm_type, &me, &error, in crypto_mac()
107 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech); in crypto_mac()
108 error = KCF_PROV_MAC_ATOMIC(pd, &lmech, key, data, in crypto_mac()
112 /* Add pd to the linked list of providers tried. */ in crypto_mac()
113 if (kcf_insert_triedlist(&list, pd, KM_SLEEP) != NULL) in crypto_mac()
120 KCF_PROV_REFRELE(pd); in crypto_mac()
128 * pd: pointer to the descriptor of the provider to use for this
156 crypto_mac_init_prov(kcf_provider_desc_t *pd, in crypto_mac_init_prov() argument
[all …]
H A Dkcf_cipher.c73 kcf_provider_desc_t *pd; in crypto_encrypt() local
79 /* pd is returned held */ in crypto_encrypt()
80 if ((pd = kcf_get_mech_provider(mech->cm_type, &me, &error, in crypto_encrypt()
91 KCF_SET_PROVIDER_MECHNUM(mech->cm_type, pd, &lmech); in crypto_encrypt()
92 error = KCF_PROV_ENCRYPT_ATOMIC(pd, &lmech, key, in crypto_encrypt()
96 /* Add pd to the linked list of providers tried. */ in crypto_encrypt()
97 if (kcf_insert_triedlist(&list, pd, KM_SLEEP) != NULL) in crypto_encrypt()
104 KCF_PROV_REFRELE(pd); in crypto_encrypt()
112 * pd: provider descriptor
144 kcf_provider_desc_t *pd; in crypto_decrypt() local
[all …]
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_verbs.c261 * Every PD has a local_dma_lkey which can be used as the lkey value for local
267 struct ib_pd *pd; in __ib_alloc_pd() local
271 pd = rdma_zalloc_drv_obj(device, ib_pd); in __ib_alloc_pd()
272 if (!pd) in __ib_alloc_pd()
275 pd->device = device; in __ib_alloc_pd()
276 pd->uobject = NULL; in __ib_alloc_pd()
277 pd->__internal_mr = NULL; in __ib_alloc_pd()
278 atomic_set(&pd->usecnt, 0); in __ib_alloc_pd()
279 pd->flags = flags; in __ib_alloc_pd()
281 ret = device->alloc_pd(pd, NULL); in __ib_alloc_pd()
[all …]
/freebsd/sys/geom/raid/
H A Dmd_jmicron.c358 struct g_raid_md_jmicron_perdisk *pd; in g_raid_md_jmicron_get_disk() local
361 pd = (struct g_raid_md_jmicron_perdisk *)disk->d_md_data; in g_raid_md_jmicron_get_disk()
362 if (pd->pd_disk_pos == id) in g_raid_md_jmicron_get_disk()
427 struct g_raid_md_jmicron_perdisk *pd, *oldpd; in g_raid_md_jmicron_start_disk() local
435 pd = (struct g_raid_md_jmicron_perdisk *)disk->d_md_data; in g_raid_md_jmicron_start_disk()
439 if (pd->pd_meta != NULL) in g_raid_md_jmicron_start_disk()
440 disk_pos = jmicron_meta_find_disk(meta, pd->pd_disk_id); in g_raid_md_jmicron_start_disk()
459 pd->pd_disk_size) { in g_raid_md_jmicron_start_disk()
462 pd->pd_disk_size, in g_raid_md_jmicron_start_disk()
477 if (disk_pos == -3 || pd->pd_disk_pos == -3) { in g_raid_md_jmicron_start_disk()
[all …]
H A Dmd_promise.c579 struct g_raid_md_promise_perdisk *pd; in g_raid_md_promise_purge_disks() local
586 pd = (struct g_raid_md_promise_perdisk *)disk->d_md_data; in g_raid_md_promise_purge_disks()
589 for (i = 0; i < pd->pd_subdisks; ) { in g_raid_md_promise_purge_disks()
591 pd->pd_meta[i]->volume_id); in g_raid_md_promise_purge_disks()
596 free(pd->pd_meta[i], M_MD_PROMISE); in g_raid_md_promise_purge_disks()
597 for (j = i; j < pd->pd_subdisks - 1; j++) in g_raid_md_promise_purge_disks()
598 pd->pd_meta[j] = pd->pd_meta[j + 1]; in g_raid_md_promise_purge_disks()
599 pd->pd_meta[pd->pd_subdisks - 1] = NULL; in g_raid_md_promise_purge_disks()
600 pd->pd_subdisks--; in g_raid_md_promise_purge_disks()
601 pd->pd_updated = 1; in g_raid_md_promise_purge_disks()
[all …]
/freebsd/contrib/capsicum-test/
H A Dprocdesc.cc33 static pid_t pdwait4_(int pd, int *status, int options, struct rusage *ru) { in pdwait4_() argument
35 return pdwait4(pd, status, options, ru); in pdwait4_()
39 int rc = pdgetpid(pd, &pid); in pdwait4_()
110 int pd = -1; in TEST() local
114 int pid = pdfork(&pd, 0); in TEST()
118 EXPECT_EQ(-1, pd); in TEST()
132 EXPECT_NE(-1, pd); in TEST()
135 EXPECT_OK(pdgetpid(pd, &pid_got)); in TEST()
149 int waitrc = pdwait4_(pd, &status, 0, &ru); in TEST()
152 fprintf(stderr, "For pd %d pid %d:\n", pd, pid); in TEST()
[all …]
/freebsd/sys/dev/mthca/
H A Dmthca_pd.c39 int mthca_pd_alloc(struct mthca_dev *dev, int privileged, struct mthca_pd *pd) in mthca_pd_alloc() argument
43 pd->privileged = privileged; in mthca_pd_alloc()
45 atomic_set(&pd->sqp_count, 0); in mthca_pd_alloc()
46 pd->pd_num = mthca_alloc(&dev->pd_table.alloc); in mthca_pd_alloc()
47 if (pd->pd_num == -1) in mthca_pd_alloc()
51 err = mthca_mr_alloc_notrans(dev, pd->pd_num, in mthca_pd_alloc()
54 &pd->ntmr); in mthca_pd_alloc()
56 mthca_free(&dev->pd_table.alloc, pd->pd_num); in mthca_pd_alloc()
62 void mthca_pd_free(struct mthca_dev *dev, struct mthca_pd *pd) in mthca_pd_free() argument
64 if (pd->privileged) in mthca_pd_free()
[all …]
/freebsd/sys/dev/vnic/
H A Dthunder_mdio.c367 struct phy_desc *pd = NULL; in get_phy_desc() local
370 TAILQ_FOREACH(pd, &sc->phy_desc_head, phy_desc_list) { in get_phy_desc()
371 if (pd->lmacid == lmacid) in get_phy_desc()
375 return (pd); in get_phy_desc()
383 struct phy_desc *pd; in thunder_mdio_media_status() local
388 pd = get_phy_desc(sc, lmacid); in thunder_mdio_media_status()
389 if (pd == NULL) { in thunder_mdio_media_status()
396 mii_sc = device_get_softc(pd->miibus); in thunder_mdio_media_status()
443 struct phy_desc *pd; in thunder_mdio_phy_connect() local
449 pd = get_phy_desc(sc, lmacid); in thunder_mdio_phy_connect()
[all …]

12345678910>>...36