Searched refs:gref (Results 1 - 25 of 36) sorted by relevance

12

/macosx-10.5.8/xnu-1228.15.4/bsd/netat/
H A Dsys_glue.c90 int gref_close(gref_t *gref);
114 void gref_wput(gref, m)
115 gref_t *gref;
118 switch (gref->proto) {
120 ddp_putmsg(gref, m); break;
122 elap_wput(gref, m); break;
124 atp_wput(gref, m); break;
126 asp_wput(gref, m); break;
129 aurp_wput(gref, m); break;
132 adsp_wput(gref,
156 gref_t *gref; local
237 gref_t *gref; local
269 gref_t *gref; local
290 gref_t *gref; local
308 gref_t *gref; local
447 at_ioctl(gref_t *gref, u_long cmd, caddr_t arg, int fromKernel) argument
613 gref_t *gref; local
637 gref_t *gref; local
868 gref_t *gref, *gref_array; local
901 gref_close(gref_t *gref) argument
[all...]
H A Dadsp_stream.c87 gref_t *gref; local
96 if ((sp == 0) || (sp->gref==0) || (sp->state==sClosed))
125 adsp_rput(sp->gref, mp);
136 gref = (gref_t *)((ioc_t *)gbuf_rptr(mp))->ioc_private;
150 adsp_rput(gref, mp);
156 int adsp_readable(gref)
157 gref_t *gref;
162 if (gref->info == 0)
169 * this if it can't retrieve the 'gref' structure from the
174 sp = (CCBPtr)gbuf_rptr(((gbuf_t *)gref
[all...]
H A Daurp_cfg.c65 int aurp_open(gref)
66 gref_t *gref;
83 aurp_gref = gref;
91 gref->info = (void *)&aurp_minor_no[i];
95 int aurp_close(gref)
96 gref_t *gref;
98 if (*(char *)gref->info == 1) {
104 *(char *)gref->info = 0;
105 gref->info = 0;
H A Dadsp.c60 adspAllocateCCB(gref)
61 register gref_t *gref; /* READ queue */
71 gref->info = (caddr_t) ccb_mp;
72 sp = (CCBPtr)gbuf_rptr(((gbuf_t *)gref->info));
74 sp->pid = gref->pid; /* save the caller process pointer */
75 sp->gref = gref; /* save a back pointer to the WRITE queue */
81 adspRelease(gref)
82 register gref_t *gref; /* READ queue */
86 if (gref
[all...]
H A Dddp_proto.c63 void ddp_putmsg(gref, mp)
64 gref_t *gref;
78 if ((gref == 0) || (gref->lport == 0)) {
87 if ((gref == 0) || (gref->lport == 0)) {
89 if (gref)
90 atalk_notify(gref, ENOTCONN);
93 if ((error = ddp_output(&mp, gref->lport, 0)) != 0) {
94 if (gref)
[all...]
H A Dat_pcb.h94 /* from the gref structure */
108 int (*writeable)(gref_t *gref);
109 int (*readable)(gref_t *gref);
135 void ddp_putmsg(gref_t *gref, gbuf_t *mp);
139 void atalk_putnext(gref_t *gref, gbuf_t *m);
140 void atalk_enablew(gref_t *gref);
141 void atalk_flush(gref_t *gref);
H A Dadsp_Close.c127 register gref_t *gref; local
134 gref = n->gref;
135 if (gref->info) {
136 sp = (CCBPtr)gbuf_rptr(((gbuf_t *)gref->info));
137 atalk_flush(sp->gref);
171 gref_t *gref; local
173 if (sp->gref == 0)
183 adspioc_ack(0, (gbuf_t *)pb->ioc, pb->gref); /* current */
197 gref
[all...]
H A Datp_open.c77 register gref_t *gref; local
81 gref = atp_inputQ[((at_ddp_t *)gbuf_rptr(mp))->dst_socket];
82 if ((gref == 0) || (gref == (gref_t *)1)) {
92 gref = (gref_t *)((ioc_t *)gbuf_rptr(mp))->ioc_private;
103 atp_rput(gref, mp);
130 int atp_open(gref, flag)
131 gref_t *gref;
191 atp->atp_gref = gref;
199 atp->atp_pid = gref
[all...]
H A Daurp_rx.c66 aurp_wput(gref, m)
67 gref_t *gref;
83 AURPiocnak(gref, m, ENOSPC);
87 AURPiocnak(gref, m, error);
91 AURPiocnak(gref, m, ENOMEM);
107 AURPiocnak(gref, m, EINVAL);
135 AURPiocnak(gref, m, EINVAL);
138 AURPiocack(gref, m);
H A Dasp_proto.c110 asp_readable(gref)
111 gref_t *gref;
113 return (((asp_scb_t *)gref->info)->sess_ioc ? 1 : 0);
130 int asp_open(gref)
131 gref_t *gref;
142 * initialize the gref data structure
144 gref->info = (void *)scb;
145 gref->readable = asp_readable;
153 scb->pid = gref->pid;
154 scb->gref
1844 ASPputmsg(gref_t *gref, strbuf_t *ctlptr, strbuf_t *datptr, gbuf_t *mreq, __unused int flags, int *errp) argument
2154 ASPgetmsg(gref_t *gref, strbuf_t *ctlptr, strbuf_t *datptr, gbuf_t **mreply, __unused int *flags, int *errp) argument
[all...]
H A Dadsp_Read.c75 gref_t *gref; local
83 (" pb=0x%p, gref=0x%p, ioc=0x%p, reqCount=%d (have data)\n",
84 pb, pb->gref, pb->ioc, pb->u.ioParams.reqCount));
85 KERNEL_DEBUG(DBG_ADSP_READ, 1, pb, pb->gref, pb->ioc, pb->u.ioParams.reqCount);
90 KERNEL_DEBUG(DBG_ADSP_READ, 2, pb, pb->gref, pb->ioc, 0);
91 adspioc_ack(0, (gbuf_t *)pb->ioc, pb->gref);
93 KERNEL_DEBUG(DBG_ADSP_READ, 3, pb, pb->gref, 0, 0);
158 gref = (gref_t *)pb->gref;
159 adspioc_ack(0, (gbuf_t *)pb->ioc, pb->gref);
266 gref_t *gref = 0; local
[all...]
H A Daurp_misc.c63 void AURPiocack(gref, m)
64 gref_t *gref;
69 atalk_putnext(gref, m);
72 void AURPiocnak(gref, m, error)
73 gref_t *gref;
88 atalk_putnext(gref, m);
H A Dddp_lap.c169 static int validate_msg_size(m, gref, elapp)
171 gref_t *gref;
230 ioc_ack(EMSGSIZE, m, gref);
311 int elap_wput(gref, m)
312 gref_t *gref;
337 if (validate_msg_size(m, gref, &elapp))
353 ioc_ack(EINVAL, m, gref);
359 ioc_ack(ENOBUFS, m, gref);
366 ioc_ack(0, m, gref);
374 ioc_ack(0, m, gref);
1096 gref_t *gref; local
[all...]
H A Datp_read.c74 register gref_t *gref = (gref_t *)arg; local
79 atp = (struct atp_state *)gref->info;
88 atp_wput(gref, m);
94 atalk_putnext(gref, m);
98 timeout(atp_treq_event, gref, 10);
102 void atp_rput(gref, m)
103 gref_t *gref;
112 atp = (struct atp_state *)gref->info;
369 atalk_putnext(gref, m2);
374 timeout(atp_treq_event, gref, 1
[all...]
H A Datp_write.c132 atp_wput(gref, m)
133 register gref_t *gref;
143 atp = (struct atp_state *)gref->info;
174 if ((skt = (at_socket)atp_bind(gref, (unsigned int)skt, 0)) == 0)
190 *(gref_t **)gbuf_rptr(gbuf_cont(m)) = gref;
348 if (atalk_peek(gref, &event) == -1)
388 iocbp->ioc_private = (void *)gref;
828 int atp_bind(gref, sVal, flag)
829 gref_t *gref;
837 atp = (struct atp_state *)gref
1218 gref_t *gref; local
1382 gref_t *gref; local
1615 gref_t *gref; local
1747 gref_t *gref; local
1817 gref_t *gref; local
[all...]
H A Dddp.c432 gref_t *gref; local
435 for (gref = ddp_head.atpcb_next; gref != &ddp_head; gref = gref->atpcb_next)
436 if (gref->lport == socket && gref->pid == pid)
1032 gref_t *gref; local
1052 for (gref = ddp_head.atpcb_next; gref !
[all...]
H A Dddp.h180 int ddp_close(gref_t *gref);
181 void ddp_putmsg(gref_t *gref, gbuf_t *mp);
182 void ddp_stop(gbuf_t *mioc, gref_t *gref);
H A Dadsp_CLListen.c91 adspioc_ack(0, (gbuf_t *)pb->ioc, pb->gref); /* release user ioctl block */
H A Dadsp_NewCID.c87 adspioc_ack(0, (gbuf_t *)pb->ioc, pb->gref);
H A Dadsp_Write.c129 atalk_notify(sp->gref, EIO);
165 atalk_notify(sp->gref, ENOTCONN);
H A Dadsp_reset.c224 adspioc_ack(0, (gbuf_t *)pb->ioc, pb->gref); /* release user */
234 adspioc_ack(0, (gbuf_t *)pb->ioc, pb->gref);
H A Dadsp_CLDeny.c96 adspioc_ack(0, (gbuf_t *)pb->ioc, pb->gref);
H A Dadsp_Options.c100 adspioc_ack(0, (gbuf_t *)pb->ioc, pb->gref);
H A Dadsp_Status.c152 adspioc_ack(0, (gbuf_t *)pb->ioc, pb->gref);
H A Dadsp_attention.c93 atalk_notify(sp->gref, uerr);

Completed in 114 milliseconds

12