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

1234567891011>>

/freebsd-12-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-12-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.c144 struct procdesc *pd; local
155 pd = fp->f_data;
157 if (pd->pd_proc != NULL) {
158 *p = pd->pd_proc;
175 struct procdesc *pd; local
180 pd = fp_procdesc->f_data;
181 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
370 struct procdesc *pd; local
444 struct procdesc *pd; local
463 struct procdesc *pd; local
472 struct procdesc *pd; local
513 struct procdesc *pd; local
531 struct procdesc *pd; local
[all...]
/freebsd-12-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-12-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-12-stable/sys/sys/
H A Dprocdesc.h81 #define PROCDESC_LOCK_DESTROY(pd) mtx_destroy(&(pd)->pd_lock)
82 #define PROCDESC_LOCK_INIT(pd) mtx_init(&(pd)->pd_lock, "procdesc", NULL, \
84 #define PROCDESC_LOCK(pd) mtx_lock(&(pd)->pd_lock)
85 #define PROCDESC_UNLOCK(pd) mtx_unlock(&(pd)->pd_lock)
/freebsd-12-stable/stand/efi/libefi/
H A Defipart.c138 pdinfo_t *pd = NULL; local
142 return (pd);
144 STAILQ_FOREACH(pd, pdi, pd_link) {
145 if (pd->pd_unit == dev->d_unit)
146 return (pd);
148 return (pd);
165 same_handle(pdinfo_t *pd, EFI_HANDLE h) argument
168 return (pd->pd_handle == h || pd->pd_alias == h);
205 pdinfo_t *pd; local
217 pdinfo_t *pd; local
356 pdinfo_t *pd; local
427 pdinfo_t *pd; local
508 pdinfo_t *parent, *pd, *last; local
579 efipart_testchild(pdinfo_t *dev, pdinfo_t *pd) argument
712 pdinfo_t *parent, *pd, *last; local
791 pdinfo_t *pd; local
885 pdinfo_t *pd; local
937 pdinfo_t *pd; local
962 pdinfo_t *pd; local
1042 pdinfo_t *pd; local
1076 pdinfo_t *pd; local
[all...]
H A Defizfs.c98 pdinfo_t *hd, *pd = NULL; local
112 STAILQ_FOREACH(pd, &hd->pd_part, pd_link) {
114 efipart_hddev.dv_name, hd->pd_unit, pd->pd_unit);
116 insert_zfs(pd->pd_handle, guid);
117 if (pd->pd_handle == boot_img->DeviceHandle)
/freebsd-12-stable/lib/ncurses/ncurses/
H A Dtermcap.c178 char *pd, *ps, *tok, *s, *tcs; local
181 pd = _nc_termcap;
188 strcpy(pd, ps);
192 if (pd + len + 1 - _nc_termcap >= TBUFSIZ) {
196 memcpy(pd, ps, len);
198 pd += len;
199 *pd = '\0';
200 tcs = pd - 1;
215 if (pd + len + 1 - _nc_termcap >= TBUFSIZ) {
219 memcpy(pd, to
[all...]
/freebsd-12-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-12-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-12-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-12-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-12-stable/sys/geom/raid/
H A Dmd_jmicron.c359 struct g_raid_md_jmicron_perdisk *pd; local
362 pd = (struct g_raid_md_jmicron_perdisk *)disk->d_md_data;
363 if (pd->pd_disk_pos == id)
428 struct g_raid_md_jmicron_perdisk *pd, *oldpd; local
436 pd = (struct g_raid_md_jmicron_perdisk *)disk->d_md_data;
440 if (pd->pd_meta != NULL)
441 disk_pos = jmicron_meta_find_disk(meta, pd->pd_disk_id);
460 pd->pd_disk_size) {
463 pd->pd_disk_size,
478 if (disk_pos == -3 || pd
648 struct g_raid_md_jmicron_perdisk *pd; local
745 struct g_raid_md_jmicron_perdisk *pd; local
829 struct g_raid_md_jmicron_perdisk *pd; local
971 struct g_raid_md_jmicron_perdisk *pd; local
1029 struct g_raid_md_jmicron_perdisk *pd; local
1397 struct g_raid_md_jmicron_perdisk *pd; local
1494 struct g_raid_md_jmicron_perdisk *pd; local
1532 struct g_raid_md_jmicron_perdisk *pd; local
[all...]
/freebsd-12-stable/lib/libc/net/
H A Dgetproto.c130 struct protodata *pd; local
133 if ((pd = __protodata_init()) == NULL)
135 if (getprotobynumber_r(proto, &pd->proto, pd->data, sizeof(pd->data),
/freebsd-12-stable/sys/netpfil/pf/
H A Dpf.c334 #define PACKET_LOOPED(pd) ((pd)->pf_mtag && \
335 (pd)->pf_mtag->flags & PF_PACKET_LOOPED)
337 #define STATE_LOOKUP(i, k, d, s, pd) \
340 SDT_PROBE5(pf, ip, state, lookup, i, k, d, pd, (s)); \
343 if (PACKET_LOOPED(pd)) \
1232 pf_state_key_setup(struct pf_pdesc *pd, struct pf_addr *saddr, argument
1241 PF_ACPY(&sk->addr[pd->sidx], saddr, pd->af);
1242 PF_ACPY(&sk->addr[pd
2393 pf_modulate_sack(struct mbuf *m, int off, struct pf_pdesc *pd, struct tcphdr *th, struct pf_state_peer *dst) argument
2611 pf_return(struct pf_krule *r, struct pf_krule *nr, struct pf_pdesc *pd, struct pf_state_key *sk, int off, struct mbuf *m, struct tcphdr *th, struct pfi_kkif *kif, u_int16_t bproto_sum, u_int16_t bip_sum, int hdrlen, u_short *reason) argument
2924 pf_tag_packet(struct mbuf *m, struct pf_pdesc *pd, int tag) argument
3106 pf_socket_lookup(int direction, struct pf_pdesc *pd, struct mbuf *m) argument
3302 pf_tcp_iss(struct pf_pdesc *pd) argument
3335 pf_test_rule(struct pf_krule **rm, struct pf_state **sm, int direction, struct pfi_kkif *kif, struct mbuf *m, int off, struct pf_pdesc *pd, struct pf_krule **am, struct pf_kruleset **rsm, struct inpcb *inp) argument
3709 pf_create_state(struct pf_krule *r, struct pf_krule *nr, struct pf_krule *a, struct pf_pdesc *pd, struct pf_ksrc_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_kkif *kif, struct pf_state **sm, int tag, u_int16_t bproto_sum, u_int16_t bip_sum, int hdrlen) argument
3970 pf_test_fragment(struct pf_krule **rm, int direction, struct pfi_kkif *kif, struct mbuf *m, void *h, struct pf_pdesc *pd, struct pf_krule **am, struct pf_kruleset **rsm) argument
4065 pf_tcp_track_full(struct pf_state_peer *src, struct pf_state_peer *dst, struct pf_state **state, struct pfi_kkif *kif, struct mbuf *m, int off, struct pf_pdesc *pd, u_short *reason, int *copyback) argument
4395 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
4466 pf_test_state_tcp(struct pf_state **state, int direction, struct pfi_kkif *kif, struct mbuf *m, int off, void *h, struct pf_pdesc *pd, u_short *reason) argument
4634 pf_test_state_udp(struct pf_state **state, int direction, struct pfi_kkif *kif, struct mbuf *m, int off, void *h, struct pf_pdesc *pd) argument
4701 pf_test_state_icmp(struct pf_state **state, int direction, struct pfi_kkif *kif, struct mbuf *m, int off, void *h, struct pf_pdesc *pd, u_short *reason) argument
5306 pf_test_state_other(struct pf_state **state, int direction, struct pfi_kkif *kif, struct mbuf *m, struct pf_pdesc *pd) argument
5602 pf_route(struct mbuf **m, struct pf_krule *r, int dir, struct ifnet *oifp, struct pf_state *s, struct pf_pdesc *pd, struct inpcb *inp) argument
5765 pf_route6(struct mbuf **m, struct pf_krule *r, int dir, struct ifnet *oifp, struct pf_state *s, struct pf_pdesc *pd, struct inpcb *inp) argument
6036 struct pf_pdesc pd; local
6435 struct pf_pdesc pd; local
[all...]
/freebsd-12-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...]
/freebsd-12-stable/sys/dev/pbio/
H A Dpbio.c117 struct portdata pd[PBIO_NPORTS];/* Per port data */ member in struct:pbio_softc
243 sc->pd[i].port = make_dev(&pbio_cdevsw, (unit << 2) + i, 0, 0,
262 scp->pd[port].diff = *(int *)data;
265 scp->pd[port].ipace = *(int *)data;
268 scp->pd[port].opace = *(int *)data;
271 *(int *)data = scp->pd[port].diff;
274 *(int *)data = scp->pd[port].ipace;
277 *(int *)data = scp->pd[port].opace;
360 if (scp->pd[port].diff) {
361 if (*val != scp->pd[por
[all...]

Completed in 673 milliseconds

1234567891011>>