Searched refs:pd (Results 1 - 25 of 294) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/dev/mthca/
H A Dmthca_pd.c39 int mthca_pd_alloc(struct mthca_dev *dev, int privileged, struct mthca_pd *pd) argument
43 pd->privileged = privileged;
45 atomic_set(&pd->sqp_count, 0);
46 pd->pd_num = mthca_alloc(&dev->pd_table.alloc);
47 if (pd->pd_num == -1)
51 err = mthca_mr_alloc_notrans(dev, pd->pd_num,
54 &pd->ntmr);
56 mthca_free(&dev->pd_table.alloc, pd->pd_num);
62 void mthca_pd_free(struct mthca_dev *dev, struct mthca_pd *pd) argument
64 if (pd
[all...]
/freebsd-11-stable/sys/kern/
H A Dsubr_devmap.c67 const struct devmap_entry *pd; local
75 for (pd = devmap_table; pd->pd_size != 0; ++pd) {
77 pd->pd_pa, pd->pd_pa + pd->pd_size - 1, pd->pd_va);
98 const struct devmap_entry *pd; local
105 for (pd
178 const struct devmap_entry *pd; local
213 const struct devmap_entry *pd; local
233 const struct devmap_entry *pd; local
[all...]
H A Dsys_procdesc.c142 struct procdesc *pd; local
153 pd = fp->f_data;
155 if (pd->pd_proc != NULL) {
156 *p = pd->pd_proc;
173 struct procdesc *pd; local
178 pd = fp_procdesc->f_data;
179 return (pd->pd_pid);
231 struct procdesc *pd; local
233 pd = uma_zalloc(procdesc_zone, M_WAITOK | M_ZERO);
234 pd
277 procdesc_free(struct procdesc *pd) argument
306 struct procdesc *pd; local
350 struct procdesc *pd; local
369 struct procdesc *pd; local
438 struct procdesc *pd; local
457 struct procdesc *pd; local
466 struct procdesc *pd; local
507 struct procdesc *pd; local
525 struct procdesc *pd; local
[all...]
/freebsd-11-stable/contrib/libpcap/testprogs/
H A Dreactivatetest.c45 pcap_t *pd; local
48 pd = pcap_open_live("lo0", 65535, 0, 1000, ebuf);
49 if (pd == NULL) {
50 pd = pcap_open_live("lo", 65535, 0, 1000, ebuf);
51 if (pd == NULL) {
57 status = pcap_activate(pd);
63 pcap_geterr(pd));
H A Dopentest.c65 pcap_t *pd; local
134 pd = pcap_create(device, ebuf);
135 if (pd == NULL)
137 status = pcap_set_snaplen(pd, snaplen);
142 status = pcap_set_promisc(pd, 1);
148 status = pcap_set_rfmon(pd, 1);
153 status = pcap_set_timeout(pd, 1000);
158 status = pcap_set_buffer_size(pd, bufsize);
163 status = pcap_activate(pd);
169 pcap_statustostr(status), pcap_geterr(pd));
[all...]
H A Dcan_set_rfmon_test.c48 pcap_t *pd; local
62 pd = pcap_create(argv[1], ebuf);
63 if (pd == NULL)
65 status = pcap_can_set_rfmon(pd);
69 pcap_geterr(pd));
H A Dthreadsignaltest.c73 static pcap_t *pd; variable
150 status = pcap_dispatch(pd, -1, countme,
175 program_name, pcap_geterr(pd));
225 pd = pcap_create(device, ebuf);
226 if (pd == NULL)
228 status = pcap_set_snaplen(pd, 65535);
233 status = pcap_set_immediate_mode(pd, 1);
238 status = pcap_set_timeout(pd, 5*60*1000);
242 status = pcap_activate(pd);
248 pcap_statustostr(status), pcap_geterr(pd));
[all...]
H A Dvalgrindtest.c238 pcap_t *pd; local
323 pd = pcap_create(device, ebuf);
324 if (pd == NULL)
326 status = pcap_set_snaplen(pd, 65535);
330 status = pcap_set_promisc(pd, 1);
335 status = pcap_set_rfmon(pd, 1);
340 status = pcap_set_timeout(pd, 1000);
344 status = pcap_activate(pd);
350 pcap_statustostr(status), pcap_geterr(pd));
357 pcap_statustostr(status), pcap_geterr(pd));
[all...]
H A Dcapturetest.c60 static pcap_t *pd; variable
135 pd = pcap_create(device, ebuf);
136 if (pd == NULL)
138 status = pcap_set_snaplen(pd, 65535);
143 status = pcap_set_immediate_mode(pd, 1);
148 status = pcap_set_timeout(pd, timeout);
152 status = pcap_activate(pd);
158 pcap_statustostr(status), pcap_geterr(pd));
165 pcap_statustostr(status), pcap_geterr(pd));
174 if (pcap_compile(pd,
[all...]
H A Dselpolltest.c64 static pcap_t *pd; variable
142 pd = pcap_open_live(device, 65535, 0, 1000, ebuf);
143 if (pd == NULL)
154 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0)
155 error("%s", pcap_geterr(pd));
156 if (pcap_setfilter(pd, &fcode) < 0)
157 error("%s", pcap_geterr(pd));
165 selectable_fd = pcap_get_selectable_fd(pd);
169 required_timeout = pcap_get_required_select_timeout(pd);
192 if (pcap_setnonblock(pd,
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
H A DThreadLocal.cpp30 void **pd = reinterpret_cast<void**>(&data); local
31 *pd = const_cast<void*>(d);
34 void **pd = reinterpret_cast<void**>(&data); local
35 return *pd;
/freebsd-11-stable/sys/sys/
H A Dprocdesc.h79 #define PROCDESC_LOCK_DESTROY(pd) mtx_destroy(&(pd)->pd_lock)
80 #define PROCDESC_LOCK_INIT(pd) mtx_init(&(pd)->pd_lock, "procdesc", NULL, \
82 #define PROCDESC_LOCK(pd) mtx_lock(&(pd)->pd_lock)
83 #define PROCDESC_UNLOCK(pd) mtx_unlock(&(pd)->pd_lock)
/freebsd-11-stable/stand/efi/libefi/
H A Defipart.c127 pdinfo_t *pd = NULL; local
131 return (pd);
133 STAILQ_FOREACH(pd, pdi, pd_link) {
134 if (pd->pd_unit == dev->d_unit)
135 return (pd);
137 return (pd);
163 same_handle(pdinfo_t *pd, EFI_HANDLE h) argument
166 return (pd->pd_handle == h || pd->pd_alias == h);
199 pdinfo_t *pd; local
401 pdinfo_t *pd; local
515 pdinfo_t *hd, *pd, *last; local
606 pdinfo_t *pd, *last; local
767 pdinfo_t *pd; local
861 pdinfo_t *pd; local
913 pdinfo_t *pd; local
938 pdinfo_t *pd; local
1018 pdinfo_t *pd; local
1052 pdinfo_t *pd; local
[all...]
H A Defizfs.c106 pdinfo_t *hd, *pd = NULL; local
120 STAILQ_FOREACH(pd, &hd->pd_part, pd_link) {
122 efipart_hddev.dv_name, hd->pd_unit, pd->pd_unit);
124 insert_zfs(pd->pd_handle, guid);
125 if (pd->pd_handle == preferred)
/freebsd-11-stable/sys/netpfil/pf/
H A Dpf.c309 #define PACKET_LOOPED(pd) ((pd)->pf_mtag && \
310 (pd)->pf_mtag->flags & PF_PACKET_LOOPED)
312 #define STATE_LOOKUP(i, k, d, s, pd) \
317 if (PACKET_LOOPED(pd)) \
1181 pf_state_key_setup(struct pf_pdesc *pd, struct pf_addr *saddr, argument
1190 PF_ACPY(&sk->addr[pd->sidx], saddr, pd->af);
1191 PF_ACPY(&sk->addr[pd->didx], daddr, pd
2289 pf_modulate_sack(struct mbuf *m, int off, struct pf_pdesc *pd, struct tcphdr *th, struct pf_state_peer *dst) argument
2500 pf_return(struct pf_rule *r, struct pf_rule *nr, struct pf_pdesc *pd, struct pf_state_key *sk, int off, struct mbuf *m, struct tcphdr *th, struct pfi_kif *kif, u_int16_t bproto_sum, u_int16_t bip_sum, int hdrlen, u_short *reason) argument
2813 pf_tag_packet(struct mbuf *m, struct pf_pdesc *pd, int tag) argument
2995 pf_socket_lookup(int direction, struct pf_pdesc *pd, struct mbuf *m) argument
3191 pf_tcp_iss(struct pf_pdesc *pd) argument
3224 pf_test_rule(struct pf_rule **rm, struct pf_state **sm, int direction, struct pfi_kif *kif, struct mbuf *m, int off, struct pf_pdesc *pd, struct pf_rule **am, struct pf_ruleset **rsm, struct inpcb *inp) argument
3598 pf_create_state(struct pf_rule *r, struct pf_rule *nr, struct pf_rule *a, struct pf_pdesc *pd, struct pf_src_node *nsn, struct pf_state_key *nk, struct pf_state_key *sk, struct mbuf *m, int off, u_int16_t sport, u_int16_t dport, int *rewrite, struct pfi_kif *kif, struct pf_state **sm, int tag, u_int16_t bproto_sum, u_int16_t bip_sum, int hdrlen) argument
3849 pf_test_fragment(struct pf_rule **rm, int direction, struct pfi_kif *kif, struct mbuf *m, void *h, struct pf_pdesc *pd, struct pf_rule **am, struct pf_ruleset **rsm) argument
3944 pf_tcp_track_full(struct pf_state_peer *src, struct pf_state_peer *dst, struct pf_state **state, struct pfi_kif *kif, struct mbuf *m, int off, struct pf_pdesc *pd, u_short *reason, int *copyback) argument
4273 pf_tcp_track_sloppy(struct pf_state_peer *src, struct pf_state_peer *dst, struct pf_state **state, struct pf_pdesc *pd, u_short *reason) argument
4344 pf_test_state_tcp(struct pf_state **state, int direction, struct pfi_kif *kif, struct mbuf *m, int off, void *h, struct pf_pdesc *pd, u_short *reason) argument
4512 pf_test_state_udp(struct pf_state **state, int direction, struct pfi_kif *kif, struct mbuf *m, int off, void *h, struct pf_pdesc *pd) argument
4579 pf_test_state_icmp(struct pf_state **state, int direction, struct pfi_kif *kif, struct mbuf *m, int off, void *h, struct pf_pdesc *pd, u_short *reason) argument
5184 pf_test_state_other(struct pf_state **state, int direction, struct pfi_kif *kif, struct mbuf *m, struct pf_pdesc *pd) argument
5480 pf_route(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp, struct pf_state *s, struct pf_pdesc *pd, struct inpcb *inp) argument
5660 pf_route6(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp, struct pf_state *s, struct pf_pdesc *pd, struct inpcb *inp) argument
5942 struct pf_pdesc pd; local
6331 struct pf_pdesc pd; local
[all...]
/freebsd-11-stable/lib/ncurses/ncurses/
H A Dtermcap.c176 char *pd, *ps, *tok, *s, *tcs; local
179 pd = _nc_termcap;
186 strcpy(pd, ps);
190 if (pd + len + 1 - _nc_termcap >= TBUFSIZ) {
194 memcpy(pd, ps, len);
196 pd += len;
197 *pd = '\0';
198 tcs = pd - 1;
213 if (pd + len + 1 - _nc_termcap >= TBUFSIZ) {
217 memcpy(pd, to
[all...]
/freebsd-11-stable/sys/ofed/include/rdma/
H A Dib_verbs_compat.h118 struct ib_pd *pd; member in struct:ib_dct_init_attr
163 struct ib_pd *pd; member in struct:ib_mr_attr
197 struct ib_pd *pd; member in struct:ib_dct
255 struct ib_pd *pd; member in struct:ib_send_wr_compat::__anon8320::__anon8324::__anon8326
365 ib_get_dma_mr(struct ib_pd *pd, int mr_access_flags) argument
374 if (!pd->device->get_dma_mr)
377 mr = pd->device->get_dma_mr(pd, mr_access_flags);
381 mr->device = pd->device;
382 mr->pd
391 ib_reg_phys_mr(struct ib_pd *pd, struct ib_phys_buf *phys_buf_array, int num_phys_buf, int mr_access_flags, u64 * iova_start) argument
421 ib_rereg_phys_mr(struct ib_mr *mr, int mr_rereg_mask, struct ib_pd *pd, struct ib_phys_buf *phys_buf_array, int num_phys_buf, int mr_access_flags, u64 * iova_start) argument
439 ib_create_mr(struct ib_pd *pd, struct ib_mr_init_attr *mr_init_attr) argument
452 ib_alloc_fast_reg_mr(struct ib_pd *pd, int max_page_list_len) argument
470 ib_alloc_mw(struct ib_pd *pd, enum ib_mw_type type) argument
499 struct ib_pd *pd; local
510 ib_create_dct(struct ib_pd *pd, struct ib_dct_init_attr *attr, struct ib_udata *udata) argument
[all...]
/freebsd-11-stable/tools/regression/security/cap_test/
H A Dcap_test_pdfork.c63 int pd, error; local
69 pid = pdfork(&pd, 0);
77 * pd should not be a valid process descriptor.
79 error = pdgetpid(pd, &pid);
89 REQUIRE(fstat(pd, &stat));
101 error = pdgetpid(pd, &pid);
H A Dcap_test_pdkill.c66 int pd, error; local
71 error = pdfork(&pd, 0);
82 error = pdgetpid(pd, &pid);
88 error = pdkill(pd, SIGINT);
/freebsd-11-stable/contrib/libpcap/
H A Dpcap-dag.c243 struct pcap_dag *pd = p->priv; local
245 if(dag_stop_stream(p->fd, pd->dag_stream) < 0)
248 if(dag_detach_stream(p->fd, pd->dag_stream) < 0)
251 if(pd->dag_ref != NULL) {
252 dag_config_dispose(pd->dag_ref);
255 * dag_close(p->fd), as dag_config_dispose(pd->dag_ref)
261 pd->dag_ref = NULL;
343 struct pcap_dag *pd = p->priv; local
345 unsigned int nonblocking = pd->dag_flags & DAGF_NONBLOCK;
350 while (pd
741 struct pcap_dag *pd = p->priv; local
1103 struct pcap_dag *pd = p->priv; local
1236 struct pcap_dag *pd = p->priv; local
1284 struct pcap_dag *pd = p->priv; local
[all...]
/freebsd-11-stable/sys/dev/vnic/
H A Dthunder_mdio.c372 struct phy_desc *pd = NULL; local
375 TAILQ_FOREACH(pd, &sc->phy_desc_head, phy_desc_list) {
376 if (pd->lmacid == lmacid)
380 return (pd);
388 struct phy_desc *pd; local
393 pd = get_phy_desc(sc, lmacid);
394 if (pd == NULL) {
401 mii_sc = device_get_softc(pd->miibus);
448 struct phy_desc *pd; local
454 pd
490 struct phy_desc *pd; local
[all...]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/common/zfs/
H A Dzprop_common.c77 zprop_desc_t *pd; local
79 pd = &prop_tbl[prop];
81 ASSERT(pd->pd_name == NULL || pd->pd_name == name);
85 pd->pd_name = name;
86 pd->pd_propnum = prop;
87 pd->pd_proptype = type;
88 pd->pd_numdefault = numdefault;
89 pd->pd_strdefault = strdefault;
90 pd
377 zprop_desc_t *prop_tbl, *pd; local
[all...]
/freebsd-11-stable/sys/geom/raid/
H A Dmd_jmicron.c357 struct g_raid_md_jmicron_perdisk *pd; local
360 pd = (struct g_raid_md_jmicron_perdisk *)disk->d_md_data;
361 if (pd->pd_disk_pos == id)
426 struct g_raid_md_jmicron_perdisk *pd, *oldpd; local
434 pd = (struct g_raid_md_jmicron_perdisk *)disk->d_md_data;
438 if (pd->pd_meta != NULL)
439 disk_pos = jmicron_meta_find_disk(meta, pd->pd_disk_id);
458 pd->pd_disk_size) {
461 pd->pd_disk_size,
476 if (disk_pos == -3 || pd
646 struct g_raid_md_jmicron_perdisk *pd; local
743 struct g_raid_md_jmicron_perdisk *pd; local
827 struct g_raid_md_jmicron_perdisk *pd; local
969 struct g_raid_md_jmicron_perdisk *pd; local
1027 struct g_raid_md_jmicron_perdisk *pd; local
1395 struct g_raid_md_jmicron_perdisk *pd; local
1492 struct g_raid_md_jmicron_perdisk *pd; local
1530 struct g_raid_md_jmicron_perdisk *pd; local
[all...]
/freebsd-11-stable/lib/libc/net/
H A Dgetproto.c128 struct protodata *pd; local
131 if ((pd = __protodata_init()) == NULL)
133 if (getprotobynumber_r(proto, &pd->proto, pd->data, sizeof(pd->data),
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/
H A Dib_verbs.c260 struct ib_pd *pd; local
263 pd = device->alloc_pd(device, NULL, NULL);
264 if (IS_ERR(pd))
265 return pd;
267 pd->device = device;
268 pd->uobject = NULL;
269 pd->__internal_mr = NULL;
270 atomic_set(&pd->usecnt, 0);
271 pd->flags = flags;
274 pd
318 ib_dealloc_pd(struct ib_pd *pd) argument
341 ib_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr) argument
574 ib_create_ah_from_wc(struct ib_pd *pd, const struct ib_wc *wc, const struct ib_grh *grh, u8 port_num) argument
606 struct ib_pd *pd; local
620 ib_create_srq(struct ib_pd *pd, struct ib_srq_init_attr *srq_init_attr) argument
671 struct ib_pd *pd; local
792 ib_create_qp(struct ib_pd *pd, struct ib_qp_init_attr *qp_init_attr) argument
1319 struct ib_pd *pd; local
1407 struct ib_pd *pd = mr->pd; local
1430 ib_alloc_mr(struct ib_pd *pd, enum ib_mr_type mr_type, u32 max_num_sg) argument
1454 ib_alloc_fmr(struct ib_pd *pd, int mr_access_flags, struct ib_fmr_attr *fmr_attr) argument
1488 struct ib_pd *pd; local
1629 ib_create_wq(struct ib_pd *pd, struct ib_wq_init_attr *wq_attr) argument
1662 struct ib_pd *pd = wq->pd; local
[all...]

Completed in 980 milliseconds

1234567891011>>