/netbsd-6-1-5-RELEASE/dist/smbfs/lib/smb/ |
H A D | nbns_rq.c | 59 static void nbns_rq_done(struct nbns_rq *rqp); 60 static int nbns_rq_getrr(struct nbns_rq *rqp, struct nbns_rr *rrp); 61 static int nbns_rq_prepare(struct nbns_rq *rqp); 62 static int nbns_rq(struct nbns_rq *rqp); 69 struct nbns_rq *rqp; local 77 error = nbns_rq_create(NBNS_OPCODE_QUERY, ctx, &rqp); 84 rqp->nr_nmflags = NBNS_NMFLAG_RD; 85 rqp->nr_qdname = &nn; 86 rqp->nr_qdtype = NBNS_QUESTION_TYPE_NB; 87 rqp 151 struct nbns_rq *rqp; local 172 nbns_rq_done(struct nbns_rq *rqp) argument 188 nbns_rq_getrr(struct nbns_rq *rqp, struct nbns_rr *rrp) argument 213 nbns_rq_prepare(struct nbns_rq *rqp) argument 259 nbns_rq_recv(struct nbns_rq *rqp) argument 281 nbns_rq_opensocket(struct nbns_rq *rqp) argument 314 nbns_rq_send(struct nbns_rq *rqp) argument 326 nbns_rq(struct nbns_rq *rqp) argument [all...] |
H A D | print.c | 63 struct smb_rq *rqp; local 67 error = smb_rq_init(ctx, SMB_COM_OPEN_PRINT_FILE, 2, &rqp); 70 mbp = smb_rq_getrequest(rqp); 73 smb_rq_wend(rqp); 76 error = smb_rq_simple(rqp); 78 mbp = smb_rq_getreply(rqp); 81 smb_rq_done(rqp); 88 struct smb_rq *rqp; local 92 error = smb_rq_init(ctx, SMB_COM_CLOSE_PRINT_FILE, 0, &rqp); 95 mbp = smb_rq_getrequest(rqp); [all...] |
H A D | rq.c | 59 struct smb_rq *rqp; local 61 rqp = malloc(sizeof(*rqp)); 62 if (rqp == NULL) 64 bzero(rqp, sizeof(*rqp)); 65 rqp->rq_cmd = cmd; 66 rqp->rq_ctx = ctx; 67 mb_init(&rqp->rq_rq, M_MINSIZE); 68 mb_init(&rqp 74 smb_rq_done(struct smb_rq *rqp) argument 82 smb_rq_wend(struct smb_rq *rqp) argument 129 smb_rq_simple(struct smb_rq *rqp) argument [all...] |
/netbsd-6-1-5-RELEASE/sys/netsmb/ |
H A D | smb_iod.c | 74 smb_iod_rqprocessed(struct smb_rq *rqp, int error) argument 76 SMBRQ_SLOCK(rqp); 77 rqp->sr_lerror = error; 78 rqp->sr_rpgen++; 79 rqp->sr_state = SMBRQ_NOTIFIED; 80 wakeup(&rqp->sr_state); 81 if (rqp->sr_timo > 0) 82 callout_stop(&rqp->sr_timo_ch); 83 if (rqp->sr_recvcallback) 84 (*rqp 97 struct smb_rq *rqp; local 226 smb_iod_sendrq(struct smbiod *iod, struct smb_rq *rqp) argument 311 struct smb_rq *rqp; local 422 smb_iod_addrq(struct smb_rq *rqp) argument 488 smb_iod_removerq(struct smb_rq *rqp) argument 516 smb_iod_waitrq(struct smb_rq *rqp) argument 561 struct smb_rq *rqp; local [all...] |
H A D | smb_rq.h | 65 #define SMBRQ_SLOCK(rqp) smb_sl_lock(&(rqp)->sr_slock) 66 #define SMBRQ_SUNLOCK(rqp) smb_sl_unlock(&(rqp)->sr_slock) 67 #define SMBRQ_SLOCKPTR(rqp) (&(rqp)->sr_slock) 139 void smb_rq_done(struct smb_rq *rqp); 140 int smb_rq_getrequest(struct smb_rq *rqp, struct mbchain **mbpp); 141 int smb_rq_getreply(struct smb_rq *rqp, struct mdchain **mbpp); 142 void smb_rq_wstart(struct smb_rq *rqp); [all...] |
H A D | smb_rq.c | 61 static int smb_rq_new(struct smb_rq *rqp, u_char cmd); 90 struct smb_rq *rqp; local 93 rqp = pool_get(&smbrq_pool, PR_WAITOK); 94 error = smb_rq_init(rqp, layer, cmd, scred); 95 rqp->sr_flags |= SMBR_ALLOCED; 96 callout_init(&rqp->sr_timo_ch, 0); 98 smb_rq_done(rqp); 101 *rqpp = rqp; 106 smb_rq_init(struct smb_rq *rqp, struct smb_connobj *layer, u_char cmd, argument 112 memset(rqp, 133 smb_rq_new(struct smb_rq *rqp, u_char cmd) argument 163 smb_rq_done(struct smb_rq *rqp) argument 178 smb_rq_simple(struct smb_rq *rqp) argument 198 smb_rq_enqueue(struct smb_rq *rqp) argument 234 smb_rq_wstart(struct smb_rq *rqp) argument 241 smb_rq_wend(struct smb_rq *rqp) argument 253 smb_rq_bstart(struct smb_rq *rqp) argument 260 smb_rq_bend(struct smb_rq *rqp) argument 274 smb_rq_intr(struct smb_rq *rqp) argument 284 smb_rq_getrequest(struct smb_rq *rqp, struct mbchain **mbpp) argument 291 smb_rq_getreply(struct smb_rq *rqp, struct mdchain **mbpp) argument 342 smb_rq_reply(struct smb_rq *rqp) argument 384 smb_rq_setcallback(struct smb_rq *rqp, void (*recvcallb)(void *), void *arg) argument 470 struct smb_rq *rqp = t2p->t2_rq; local 582 struct smb_rq *rqp; local [all...] |
H A D | smb_smb.c | 109 struct smb_rq *rqp; local 123 error = smb_rq_alloc(VCTOCP(vcp), SMB_COM_NEGOTIATE, scred, &rqp); 126 smb_rq_getrequest(rqp, &mbp); 127 smb_rq_wstart(rqp); 128 smb_rq_wend(rqp); 129 smb_rq_bstart(rqp); 134 smb_rq_bend(rqp); 135 error = smb_rq_simple(rqp); 139 smb_rq_getreply(rqp, &mdp); 255 smb_rq_done(rqp); 262 struct smb_rq *rqp; local 404 struct smb_rq *rqp; local 461 struct smb_rq rq, *rqp = &rq; local 566 struct smb_rq *rqp; local 589 struct smb_rq *rqp; local 686 struct smb_rq *rqp; local 760 struct smb_rq *rqp; local 846 struct smb_rq *rqp; local [all...] |
H A D | smb_usr.c | 220 struct smb_rq *rqp; local 239 error = smb_rq_alloc(SSTOCP(ssp), dp->ioc_cmd, scred, &rqp); 242 mbp = &rqp->sr_rq; 243 smb_rq_wstart(rqp); 247 smb_rq_wend(rqp); 248 smb_rq_bstart(rqp); 252 smb_rq_bend(rqp); 253 error = smb_rq_simple(rqp); 256 mdp = &rqp->sr_rp; 275 smb_rq_done(rqp); [all...] |
H A D | smb_subr.h | 124 int smb_put_string(struct smb_rq *rqp, const char *src); 126 int smb_put_asunistring(struct smb_rq *rqp, const char *src);
|
H A D | smb_subr.c | 347 smb_put_asunistring(struct smb_rq *rqp, const char *src) 349 struct mbchain *mbp = &rqp->sr_rq; 350 struct iconv_drv *dp = rqp->sr_vc->vc_toserver;
|
H A D | smb_conn.h | 464 int smb_iod_addrq(struct smb_rq *rqp); 465 int smb_iod_waitrq(struct smb_rq *rqp); 466 int smb_iod_removerq(struct smb_rq *rqp);
|
/netbsd-6-1-5-RELEASE/sys/altq/ |
H A D | altq_blue.c | 139 blue_queue_t *rqp; local 142 while ((rqp = blue_list) != NULL) { 144 err = blue_detach(rqp); 156 blue_queue_t *rqp; local 182 if ((rqp = altq_lookup(ifacep->blue_ifname, ALTQT_BLUE)) == NULL) { 186 error = altq_enable(rqp->rq_ifq); 191 if ((rqp = altq_lookup(ifacep->blue_ifname, ALTQT_BLUE)) == NULL) { 195 error = altq_disable(rqp->rq_ifq); 206 rqp = malloc(sizeof(blue_queue_t), M_DEVBUF, M_WAITOK|M_ZERO); 207 if (rqp 329 blue_detach(blue_queue_t *rqp) argument 396 blue_queue_t *rqp = (blue_queue_t *)ifq->altq_disc; local 613 blue_queue_t *rqp = (blue_queue_t *)ifq->altq_disc; local 649 blue_queue_t *rqp = (blue_queue_t *)ifq->altq_disc; local [all...] |
H A D | altq_rio.c | 489 rio_queue_t *rqp; local 492 while ((rqp = rio_list) != NULL) { 494 err = rio_detach(rqp); 506 rio_queue_t *rqp; local 532 if ((rqp = altq_lookup(ifacep->rio_ifname, ALTQT_RIO)) == NULL) { 536 error = altq_enable(rqp->rq_ifq); 541 if ((rqp = altq_lookup(ifacep->rio_ifname, ALTQT_RIO)) == NULL) { 545 error = altq_disable(rqp->rq_ifq); 556 rqp = malloc(sizeof(rio_queue_t), M_DEVBUF, M_WAITOK|M_ZERO); 557 if (rqp 712 rio_detach(rio_queue_t *rqp) argument 747 rio_queue_t *rqp = (rio_queue_t *)ifq->altq_disc; local 768 rio_queue_t *rqp = (rio_queue_t *)ifq->altq_disc; local 789 rio_queue_t *rqp = (rio_queue_t *)ifq->altq_disc; local [all...] |
H A D | altq_red.c | 742 red_queue_t *rqp; local 745 while ((rqp = red_list) != NULL) { 747 err = red_detach(rqp); 759 red_queue_t *rqp; local 785 if ((rqp = altq_lookup(ifacep->red_ifname, ALTQT_RED)) == NULL) { 789 error = altq_enable(rqp->rq_ifq); 794 if ((rqp = altq_lookup(ifacep->red_ifname, ALTQT_RED)) == NULL) { 798 error = altq_disable(rqp->rq_ifq); 809 rqp = malloc(sizeof(red_queue_t), M_DEVBUF, M_WAITOK|M_ZERO); 810 if (rqp 978 red_detach(red_queue_t *rqp) argument 1016 red_queue_t *rqp = (red_queue_t *)ifq->altq_disc; local 1035 red_queue_t *rqp = (red_queue_t *)ifq->altq_disc; local 1051 red_queue_t *rqp = (red_queue_t *)ifq->altq_disc; local 1062 red_purgeq(red_queue_t *rqp) argument [all...] |
/netbsd-6-1-5-RELEASE/sys/fs/smbfs/ |
H A D | smbfs_smb.c | 130 struct smb_rq *rqp; local 137 error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_LOCKING_ANDX, scred, &rqp); 140 smb_rq_getrequest(rqp, &mbp); 141 smb_rq_wstart(rqp); 151 smb_rq_wend(rqp); 152 smb_rq_bstart(rqp); 156 smb_rq_bend(rqp); 157 error = smb_rq_simple(rqp); 158 smb_rq_done(rqp); 224 struct smb_rq *rqp; local 302 struct smb_rq *rqp; local 339 struct smb_rq *rqp; local 497 struct smb_rq *rqp; local 584 struct smb_rq *rqp; local 637 struct smb_rq *rqp; local 665 struct smb_rq *rqp; local 715 struct smb_rq *rqp; local 742 struct smb_rq *rqp; local 776 struct smb_rq *rqp; local 812 struct smb_rq *rqp; local 837 struct smb_rq *rqp; local 863 struct smb_rq *rqp; local 953 struct smb_rq *rqp; local 1110 struct smb_rq *rqp; local 1392 struct smb_rq *rqp; local 1468 struct smb_rq *rqp; local 1517 smbfs_smb_nt_dirnotify_fetch(struct smb_rq *rqp, int *hint) argument 1611 struct smb_rq *rqp; local [all...] |
/netbsd-6-1-5-RELEASE/sbin/veriexecctl/ |
H A D | veriexecctl.c | 278 prop_dictionary_t qp, rqp; local 286 &rqp); 294 if (rqp != NULL) { 295 print_query(rqp, argv[1]); 296 prop_object_release(rqp);
|
/netbsd-6-1-5-RELEASE/dist/smbfs/include/netsmb/ |
H A D | smb_lib.h | 196 #define smb_rq_getrequest(rqp) (&(rqp)->rq_rq) 197 #define smb_rq_getreply(rqp) (&(rqp)->rq_rp)
|
/netbsd-6-1-5-RELEASE/sys/arch/alpha/jensenio/ |
H A D | jensenio_intr.c | 257 jensenio_eisa_intr_alloc(void *v, int mask, int type, int *rqp) argument
|
/netbsd-6-1-5-RELEASE/sys/dev/usb/ |
H A D | if_zyd.c | 1864 struct rq *rqp; local 1873 SIMPLEQ_FOREACH(rqp, &sc->sc_rqh, rq) { 1876 if (sizeof(struct zyd_pair) * rqp->len != datalen) 1878 for (i = 0; i < rqp->len; i++) { 1879 if (*(((const uint16_t *)rqp->idata) + i) != 1883 if (i != rqp->len) 1887 bcopy(cmd->data, rqp->odata, 1888 sizeof(struct zyd_pair) * rqp->len); 1889 wakeup(rqp->odata); /* wakeup caller */
|