Searched refs:pb (Results 1 - 18 of 18) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/bsd/netat/
H A Dadsp_Read.c61 * is data, a pb and the data are queued to the user.
70 register struct adspcmd *pb; local
81 while (sp->rData && (pb = sp->rpb)) { /* have data */
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
[all...]
H A Dadsp_Options.c71 int adspOptions(sp, pb) /* (DSPPBPtr pb) */
73 struct adspcmd *pb;
76 pb->ioResult = errRefNum;
80 if (pb->u.optionParams.sendBlocking)
81 sp->sendBlocking = pb->u.optionParams.sendBlocking;
83 if (pb->u.optionParams.sendTimer)
84 sp->sendInterval = pb->u.optionParams.sendTimer;
89 if (pb->u.optionParams.rtmtTimer)
90 sp->delay = pb
[all...]
H A Dadsp_Close.c161 * pb a remove param block to complete when done
167 void RemoveCCB(sp, pb) /* (CCBPtr sp, DSPPBPtr pb) */
169 struct adspcmd *pb;
180 if (pb) {
181 pb->ioResult = 0;
182 if (pb->ioc) /* is this a current or queued request */
183 adspioc_ack(0, (gbuf_t *)pb->ioc, pb->gref); /* current */
185 completepb(sp, pb); /* queue
265 register struct adspcmd *pb, *np; local
490 register struct adspcmd *pb; local
[all...]
H A Dadsp_attention.c79 int adspAttention(register struct adspcmd *pb, register CCBPtr sp) argument
85 pb->ioResult = errRefNum;
90 pb->ioResult = errState;
94 gbuf_freem(pb->mp);
98 if (pb->u.attnParams.attnSize > attnBufSize) /* If data too big, bye-bye */
100 pb->ioResult = errAttention;
105 /* The 1st mbuf in the pb->mp chain (mp) is the adspcmd structure.
107 mp = pb->mp;
108 if (pb->u.attnParams.attnSize) {
122 pb
[all...]
H A Dadsp_CLListen.c72 int adspCLListen(sp, pb) /* (DSPPBPtr pb) */
74 register struct adspcmd *pb;
80 pb->ioResult = errRefNum;
85 pb->ioResult = errState;
89 if ((mp = gbuf_copym(pb->mp))) { /* keep a copy of the parameter block */
90 pb->ioResult = 1; /* not done */
91 adspioc_ack(0, (gbuf_t *)pb->ioc, pb->gref); /* release user ioctl block */
98 pb
[all...]
H A Dadsp_Status.c114 int adspStatus(sp, pb) /* (DSPPBPtr pb) */
116 register struct adspcmd *pb;
121 pb->ioResult = errRefNum;
125 pb->u.statusParams.ccbPtr = (TPCCB)sp;
134 pb->u.statusParams.sendQPending = bytes;
137 pb->u.statusParams.sendQFree = CalcSendQFree(sp);
146 pb->u.statusParams.recvQPending = bytes;
149 pb->u.statusParams.recvQFree = CalcRecvWdw(sp);
151 pb
[all...]
H A Dadsp_reset.c80 register struct adspcmd *pb; local
105 pb = (struct adspcmd *)gbuf_rptr(mp);
107 pb->ioc = 0;
108 pb->mp = mp;
110 pb->csCode = dspReset;
111 pb->ioResult = 0;
112 completepb(sp, pb);
150 struct adspcmd *pb; local
158 pb = sp->frpb; /* Unlink copy of user's parameter block */
159 sp->frpb = (struct adspcmd *)pb
[all...]
H A Dadsp_NewCID.c67 int adspNewCID(sp, pb) /* (DSPPBPtr pb) */
69 struct adspcmd *pb;
72 pb->ioResult = errRefNum;
77 pb->ioResult = errState;
84 sp->locCID = pb->u.newCIDParams.newcid = NextCID();
86 pb->ioResult = 0;
87 adspioc_ack(0, (gbuf_t *)pb->ioc, pb->gref);
H A Dadsp_Open.c137 int adspOpen(sp, pb) /* (DSPPBPtr pb) */
139 register struct adspcmd *pb;
145 pb->ioResult = errRefNum; /* Unknown refnum */
151 pb->ioResult = errState;
155 ocMode = pb->u.openParams.ocMode; /* get a local copy of open mode */
157 adsp_pidM[pb->socket] = 0;
162 if (pb->u.openParams.ocInterval)
163 sp->openInterval = pb->u.openParams.ocInterval;
167 if (pb
[all...]
H A Dadsp_Write.c71 register struct adspcmd *pb) /* The write PB we're playing with */
78 cnt = pb->u.ioParams.reqCount - pb->u.ioParams.actCount;
79 eom = pb->u.ioParams.eom ? F_EOM : 0;
84 /* The 1st mbuf in the pb->mp chain (mb) is the adspcmd structure.
86 mb = pb->mp;
119 pb->u.ioParams.actCount += cnt; /* Update count field in param blk */
121 if (pb->u.ioParams.actCount == pb->u.ioParams.reqCount) {
124 if (pb
69 FillSendQueue( register CCBPtr sp, register struct adspcmd *pb) argument
[all...]
H A Dadsp_CLDeny.c71 int adspCLDeny(struct adspcmd *pb, CCBPtr sp) argument
78 pb->ioResult = errRefNum;
91 UAS_ASSIGN_HTON(adspop->dstCID, pb->u.openParams.remoteCID);
95 (AddrUnion *)&pb->u.openParams.remoteAddress, DDP_ADSP);
96 adspioc_ack(0, (gbuf_t *)pb->ioc, pb->gref);
H A Dadsp_RxAttn.c141 struct adspcmd *pb; local
189 if ((pb = sp->sapb) == 0) { /* We never sent data ? !!! */
195 sp->sapb = (struct adspcmd *)pb->qLink; /* Unlink from queue */
200 pb->ioResult = 0;
201 if (gbuf_cont(pb->mp)) {
202 gbuf_freem(gbuf_cont(pb->mp)); /* free the data */
203 gbuf_cont(pb->mp) = 0;
205 completepb(sp, pb); /* Done with the send attention */
H A Dadsp_Init.c70 * pb The user's dsp Init param block
75 static void InitContinue(sp, pb) /* (CCBPtr sp, DSPPBPtr pb, int soc) */
77 struct adspcmd *pb;
81 sp->localSocket = pb->socket;
110 int adspInit(sp, ap) /* (DSPPBPtr pb) */
171 int AdspBad(ap) /* (DSPPBPtr pb) */
H A Dadsp.h689 extern int adspOpen(register CCBPtr sp, register struct adspcmd *pb);
690 extern int adspCLListen( register CCBPtr sp, register struct adspcmd *pb);
691 extern int adspClose(register CCBPtr sp, register struct adspcmd *pb);
692 extern int adspCLDeny(struct adspcmd *pb, CCBPtr sp);
693 extern int adspStatus(CCBPtr sp, register struct adspcmd *pb);
694 extern int adspRead(register CCBPtr sp, register struct adspcmd *pb);
695 extern int adspWrite(CCBPtr sp, struct adspcmd *pb);
696 extern int adspAttention(register struct adspcmd *pb, register CCBPtr sp);
697 extern int adspOptions(CCBPtr sp, struct adspcmd *pb);
698 extern int adspReset(CCBPtr sp, struct adspcmd *pb);
[all...]
H A Dadsp_Packet.c549 struct adspcmd *pb; local
682 if ((pb = sp->opb)) {
684 pb->u.openParams.localCID = sp->locCID;
685 pb->u.openParams.remoteCID = sp->remCID;
686 pb->u.openParams.remoteAddress =
688 pb->u.openParams.sendSeq = sp->sendSeq;
689 pb->u.openParams.sendWindow = sp->sendWdwSeq - sp->sendSeq;
690 pb->u.openParams.attnSendSeq = sp->attnSendSeq;
691 pb->ioResult = 0;
692 completepb(sp, pb); /* complet
[all...]
H A Dadsp_Control.c366 * maynot be linked to this pb.
368 void completepb(sp, pb)
370 register struct adspcmd *pb;
373 if (gbuf_len(pb->mp) > sizeof(struct adspcmd))
374 gbuf_wset(pb->mp,sizeof(struct adspcmd));
375 SndMsgUp(sp->gref, pb->mp);
378 gbuf_freem(pb->mp);
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dqsort.c123 char *pa, *pb, *pc, *pd, *pl, *pm, *pn; local
149 pa = pb = (char *)a + es;
153 while (pb <= pc && (r = cmp(pb, a)) <= 0) {
156 swap(pa, pb);
159 pb += es;
161 while (pb <= pc && (r = cmp(pc, a)) >= 0) {
169 if (pb > pc)
171 swap(pb, pc);
173 pb
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/
H A Dloose_ends.c441 const void *pb,
445 const char *b = (const char *)pb;
439 bcmp( const void *pa, const void *pb, size_t len) argument

Completed in 98 milliseconds