• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/netat/

Lines Matching defs:gref

110 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 = gref;
172 asp_close(gref)
173 gref_t *gref;
179 scb = (asp_scb_t *)gref->info;
190 atp_send_rsp(scb->gref, m, TRUE);
206 atp_close(gref, 0);
213 new_scb->atp_state->atp_gref = new_scb->gref;
215 atp_inputQ[sock_num] = new_scb->gref;
367 int asp_wput(gref, m)
368 gref_t *gref;
383 scb = (asp_scb_t *)gref->info;
385 atp_wput(gref, m);
418 asp_send_req(gref, mioc, &scb->rem_addr, &Retry, &aw,
426 if ((err = atp_open(gref, 0)) != 0) {
427 asp_iocnak(gref, mioc, err);
430 scb->atp_state = (atp_state_t *)gref->info;
437 if ((sock_num = (at_socket)atp_bind(gref, 0, &sockSav)) == 0) {
439 atp_close(gref, 0);
440 gref->info = (void *)scb;
441 asp_iocnak(gref, mioc, EINVAL);
444 gref->info = (void *)scb;
457 if ((err = atp_open(gref, 0)) != 0) {
458 asp_iocnak(gref, mioc, err);
461 scb->atp_state = (atp_state_t *)gref->info;
466 if ((sock_num = (at_socket)atp_bind(gref, 0, 0)) == 0) {
468 atp_close(gref, 0);
469 gref->info = (void *)scb;
470 asp_iocnak(gref, mioc, EINVAL);
473 gref->info = (void *)scb;
485 asp_iocnak(gref, mioc, EPROTOTYPE);
493 asp_iocnak(gref, mioc, EPROTOTYPE);
501 asp_iocnak(gref, mioc, EPROTOTYPE);
510 asp_iocnak(gref, mioc, EPROTOTYPE);
514 asp_iocnak(gref, mioc, EPROTOTYPE);
521 if ((err = atp_open(gref, 0)) != 0) {
522 gref->info = (void *)scb;
523 asp_iocnak(gref, mioc, err);
526 scb->atp_state = (atp_state_t *)gref->info;
533 if ((sock_num = (at_socket)atp_bind(gref, 0, &sockSav)) == 0) {
534 atp_close(gref, 0);
549 gref->info = (void *)scb;
557 asp_iocnak(gref, mioc, EINVAL);
568 asp_send_req(gref, mioc, &status_cmd->SLSEntityIdentifier,
575 asp_iocnak(gref, mioc, EINVAL);
591 asp_send_req(gref, mioc, &open_cmd->SLSEntityIdentifier,
613 asp_iocnak(gref, mioc, EINVAL);
621 asp_iocnak(gref, mioc, EINVAL);
624 *(gref_t **)gbuf_rptr(gbuf_cont(mioc)) = gref;
629 asp_iocnak(gref, mioc, EINVAL);
644 struct atp_state *atp = (struct atp_state *)gref->info;
649 asp_iocnak(gref, mioc, EINVAL);
669 asp_iocnak(gref, mioc, EINVAL);
673 asp_iocack(gref, mioc);
681 asp_send_req(gref, mioc, dest, retry, awp, xo, state, bitmap)
682 gref_t *gref;
698 asp_scb_t *scb = (asp_scb_t *)gref->info;
707 asp_iocnak(gref, mioc, ENOBUFS);
757 atp_send_req(gref, mioc);
815 if (asp_send_req(scb->gref, mioc, dest, &retry, &aw, 0, scb->state, 0)) {
868 atp_send_rsp(scb->gref, mdata, TRUE);
917 asp_ack_reply(gref, mioc)
918 register gref_t *gref;
945 scb = (asp_scb_t *)gref->info;
1037 atp_send_rsp(gref, mdata, FALSE);
1070 atp_send_rsp(gref, mdata, FALSE);
1083 atalk_notify_sel(gref);
1107 atp_drop_req(gref, mdata);
1133 asp_putnext(scb->gref, mioc);
1154 asp_putnext(scb->gref, mioc);
1248 asp_putnext(scb->gref, mioc);
1289 atalk_notify_sel(gref);
1303 atalk_putnext(gref, mioc);
1304 atalk_putnext(gref, mdata);
1323 asp_iocnak(gref, mioc, ECONNREFUSED);
1332 atalk_putnext(gref, mioc);
1361 asp_putnext(scb->gref, mioc);
1374 atalk_putnext(scb->gref, mioc);
1375 atp_cancel_req(scb->gref, (unsigned int)scb->tickle_tid);
1420 asp_nak_reply(gref, mioc)
1421 register gref_t *gref;
1447 scb = (asp_scb_t *)gref->info;
1497 asp_putnext(scb->gref, mioc);
1512 atalk_putnext(scb->gref, mioc);
1520 atalk_putnext(gref, mioc);
1697 atp_cancel_req(scb->gref, (unsigned int)scb->tickle_tid);
1708 atalk_notify_sel(scb->gref);
1713 asp_iocack(gref, mioc)
1714 gref_t *gref;
1723 atalk_putnext(gref, mioc);
1727 asp_iocnak(gref, mioc, err)
1728 gref_t *gref;
1743 atalk_putnext(gref, mioc);
1794 asp_putnext(gref, mproto)
1795 gref_t *gref;
1801 scb = (asp_scb_t *)gref->info;
1821 atalk_notify_sel(gref);
1844 int ASPputmsg(gref_t *gref, strbuf_t *ctlptr, strbuf_t *datptr, gbuf_t *mreq, __unused int flags, int *errp)
1863 if ((scb = (asp_scb_t *)gref->info) == 0) {
1866 (u_int) gref, gref->pid));
2079 atp_send_req(gref, mioc);
2088 asp_putnext(scb->gref, mx);
2139 atp_send_rsp(gref, mioc, TRUE);
2154 int ASPgetmsg(gref_t *gref, strbuf_t *ctlptr, strbuf_t *datptr, gbuf_t **mreply, __unused int *flags, int *errp)
2163 if ((scb = (asp_scb_t *)gref->info) == 0) {
2166 (u_int) gref, gref->pid));
2234 atalk_notify_sel(gref);