Lines Matching defs:sp
65 * sp stream
69 int FillSendQueue( /* (CCBPtr sp) */
70 register CCBPtr sp,
105 sp->sData = 1; /* note that there is data to send */
106 if ((mb = sp->csbuf_mb)) { /* add to the current message */
109 sp->csbuf_mb = nmb; /* mark the buffer we are currently filling */
111 if ((mb = sp->sbuf_mb)) {
114 gbuf_next(mb) = sp->csbuf_mb; /* add the current item */
116 sp->sbuf_mb = sp->csbuf_mb;
117 sp->csbuf_mb = 0; /* if its done, no current buffer */
125 sp->writeFlush = 1;
129 atalk_notify(sp->gref, EIO);
153 int adspWrite(sp, pb) /* (DSPPBPtr pb) */
154 CCBPtr sp;
158 if (sp == 0) {
163 if (sp->state != sOpen) { /* Not allowed */
165 atalk_notify(sp->gref, ENOTCONN);
172 FillSendQueue(sp, pb); /* Copy from write param block to send queue */
174 CheckSend(sp); /* See if we should send anything */
181 CheckQueue(sp)
182 CCBPtr sp;
190 if (mp = sp->sbuf_mb) {
203 if (mp = sp->csbuf_mb) {