/freebsd-11-stable/contrib/smbfs/include/netsmb/ |
H A D | smb_lib.h | 200 #define smb_rq_getrequest(rqp) (&(rqp)->rq_rq) 201 #define smb_rq_getreply(rqp) (&(rqp)->rq_rp)
|
/freebsd-11-stable/contrib/smbfs/lib/smb/ |
H A D | nbns_rq.c | 55 static void nbns_rq_done(struct nbns_rq *rqp); 56 static int nbns_rq_getrr(struct nbns_rq *rqp, struct nbns_rr *rrp); 57 static int nbns_rq_prepare(struct nbns_rq *rqp); 58 static int nbns_rq(struct nbns_rq *rqp); 65 struct nbns_rq *rqp; local 73 error = nbns_rq_create(NBNS_OPCODE_QUERY, ctx, &rqp); 80 rqp->nr_nmflags = NBNS_NMFLAG_RD; 81 rqp->nr_qdname = &nn; 82 rqp->nr_qdtype = NBNS_QUESTION_TYPE_NB; 83 rqp 147 struct nbns_rq *rqp; local 168 nbns_rq_done(struct nbns_rq *rqp) argument 184 nbns_rq_getrr(struct nbns_rq *rqp, struct nbns_rr *rrp) argument 209 nbns_rq_prepare(struct nbns_rq *rqp) argument 255 nbns_rq_recv(struct nbns_rq *rqp) argument 291 nbns_rq_opensocket(struct nbns_rq *rqp) argument 317 nbns_rq_send(struct nbns_rq *rqp) argument 329 nbns_rq(struct nbns_rq *rqp) argument [all...] |
H A D | print.c | 59 struct smb_rq *rqp; local 63 error = smb_rq_init(ctx, SMB_COM_OPEN_PRINT_FILE, 2, &rqp); 66 mbp = smb_rq_getrequest(rqp); 69 smb_rq_wend(rqp); 72 error = smb_rq_simple(rqp); 74 mbp = smb_rq_getreply(rqp); 77 smb_rq_done(rqp); 84 struct smb_rq *rqp; local 88 error = smb_rq_init(ctx, SMB_COM_CLOSE_PRINT_FILE, 0, &rqp); 91 mbp = smb_rq_getrequest(rqp); [all...] |
H A D | rq.c | 57 struct smb_rq *rqp; local 59 rqp = malloc(sizeof(*rqp)); 60 if (rqp == NULL) 62 bzero(rqp, sizeof(*rqp)); 63 rqp->rq_cmd = cmd; 64 rqp->rq_ctx = ctx; 65 mb_init(&rqp->rq_rq, M_MINSIZE); 66 mb_init(&rqp 72 smb_rq_done(struct smb_rq *rqp) argument 80 smb_rq_wend(struct smb_rq *rqp) argument 127 smb_rq_simple(struct smb_rq *rqp) argument [all...] |
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_resource_tracker.c | 3962 struct res_qp *rqp, u8 *gid) 3966 list_for_each_entry(res, &rqp->mcg_list, list) { 3973 static int add_mcg_res(struct mlx4_dev *dev, int slave, struct res_qp *rqp, argument 3984 spin_lock_irq(&rqp->mcg_spl); 3985 if (find_gid(dev, slave, rqp, gid)) { 3993 list_add_tail(&res->list, &rqp->mcg_list); 3996 spin_unlock_irq(&rqp->mcg_spl); 4001 static int rem_mcg_res(struct mlx4_dev *dev, int slave, struct res_qp *rqp, argument 4008 spin_lock_irq(&rqp->mcg_spl); 4009 res = find_gid(dev, slave, rqp, gi 3961 find_gid(struct mlx4_dev *dev, int slave, struct res_qp *rqp, u8 *gid) argument 4094 struct res_qp *rqp; local 4252 struct res_qp *rqp; local 4338 struct res_qp *rqp; local 4471 struct res_qp *rqp; local 4544 detach_qp(struct mlx4_dev *dev, int slave, struct res_qp *rqp) argument [all...] |
/freebsd-11-stable/sys/fs/smbfs/ |
H A D | smbfs_smb.c | 90 struct smb_rq *rqp; local 98 error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_LOCKING_ANDX, scred, &rqp); 101 smb_rq_getrequest(rqp, &mbp); 102 smb_rq_wstart(rqp); 112 smb_rq_wend(rqp); 113 smb_rq_bstart(rqp); 117 smb_rq_bend(rqp); 118 error = smb_rq_simple(rqp); 119 smb_rq_done(rqp); 224 struct smb_rq *rqp; local 304 struct smb_rq *rqp; local 339 struct smb_rq *rqp; local 371 struct smb_rq *rqp; local 428 struct smb_rq *rqp; local 585 struct smb_rq *rqp; local 674 struct smb_rq *rqp; local 727 struct smb_rq *rqp; local 755 struct smb_rq *rqp; local 800 struct smb_rq *rqp; local 827 struct smb_rq *rqp; local 860 struct smb_rq *rqp; local 895 struct smb_rq *rqp; local 921 struct smb_rq *rqp; local 948 struct smb_rq *rqp; local 1044 struct smb_rq *rqp; local 1204 struct smb_rq *rqp; local [all...] |
/freebsd-11-stable/sys/net/altq/ |
H A D | altq_red.c | 740 red_queue_t *rqp; local 743 while ((rqp = red_list) != NULL) { 745 err = red_detach(rqp); 765 red_queue_t *rqp; local 790 if ((rqp = altq_lookup(ifacep->red_ifname, ALTQT_RED)) == NULL) { 794 error = altq_enable(rqp->rq_ifq); 799 if ((rqp = altq_lookup(ifacep->red_ifname, ALTQT_RED)) == NULL) { 803 error = altq_disable(rqp->rq_ifq); 814 rqp = malloc(sizeof(red_queue_t), M_DEVBUF, M_WAITOK); 815 if (rqp 1027 red_queue_t *rqp = (red_queue_t *)ifq->altq_disc; local 1050 red_queue_t *rqp = (red_queue_t *)ifq->altq_disc; local 1071 red_queue_t *rqp = (red_queue_t *)ifq->altq_disc; local [all...] |
H A D | altq_rio.c | 494 rio_queue_t *rqp; local 497 while ((rqp = rio_list) != NULL) { 499 err = rio_detach(rqp); 519 rio_queue_t *rqp; local 546 if ((rqp = altq_lookup(ifacep->rio_ifname, ALTQT_RIO)) == NULL) { 550 error = altq_enable(rqp->rq_ifq); 555 if ((rqp = altq_lookup(ifacep->rio_ifname, ALTQT_RIO)) == NULL) { 559 error = altq_disable(rqp->rq_ifq); 570 rqp = malloc(sizeof(rio_queue_t), M_DEVBUF, M_WAITOK); 571 if (rqp 767 rio_queue_t *rqp = (rio_queue_t *)ifq->altq_disc; local 793 rio_queue_t *rqp = (rio_queue_t *)ifq->altq_disc; local 818 rio_queue_t *rqp = (rio_queue_t *)ifq->altq_disc; local [all...] |
/freebsd-11-stable/sys/netsmb/ |
H A D | smb_conn.h | 463 int smb_iod_addrq(struct smb_rq *rqp); 464 int smb_iod_waitrq(struct smb_rq *rqp); 465 int smb_iod_removerq(struct smb_rq *rqp);
|
H A D | smb_crypt.c | 203 smb_rq_sign(struct smb_rq *rqp) argument 205 struct smb_vc *vcp = rqp->sr_vc; 226 if (rqp->sr_t2 == NULL || 227 (rqp->sr_t2->t2_flags & SMBT2_SECONDARY) == 0) { 228 rqp->sr_seqno = vcp->vc_seqno++; 229 rqp->sr_rseqno = vcp->vc_seqno++; 237 KASSERT(rqp->sr_t2 == NULL || 238 (rqp->sr_t2->t2_flags & SMBT2_SECONDARY) == 0 || 239 rqp->sr_t2->t2_rq == rqp, 266 smb_rq_verify(struct smb_rq *rqp) argument [all...] |
H A D | smb_iod.c | 70 smb_iod_rqprocessed(struct smb_rq *rqp, int error) argument 72 SMBRQ_SLOCK(rqp); 73 rqp->sr_lerror = error; 74 rqp->sr_rpgen++; 75 rqp->sr_state = SMBRQ_NOTIFIED; 76 wakeup(&rqp->sr_state); 77 SMBRQ_SUNLOCK(rqp); 83 struct smb_rq *rqp; local 89 TAILQ_FOREACH(rqp, &iod->iod_rqlist, sr_link) { 90 rqp 213 smb_iod_sendrq(struct smbiod *iod, struct smb_rq *rqp) argument 287 struct smb_rq *rqp; local 401 smb_iod_addrq(struct smb_rq *rqp) argument 463 smb_iod_removerq(struct smb_rq *rqp) argument 491 smb_iod_waitrq(struct smb_rq *rqp) argument 534 struct smb_rq *rqp; local [all...] |
H A D | smb_rq.c | 53 static int smb_rq_reply(struct smb_rq *rqp); 54 static int smb_rq_enqueue(struct smb_rq *rqp); 57 static int smb_rq_new(struct smb_rq *rqp, u_char cmd); 64 struct smb_rq *rqp; local 67 rqp = malloc(sizeof(*rqp), M_SMBRQ, M_WAITOK); 68 if (rqp == NULL) 70 error = smb_rq_init(rqp, layer, cmd, scred); 71 rqp->sr_flags |= SMBR_ALLOCED; 73 smb_rq_done(rqp); 83 smb_rq_init(struct smb_rq *rqp, struct smb_connobj *layer, u_char cmd, struct smb_cred *scred) argument 107 smb_rq_new(struct smb_rq *rqp, u_char cmd) argument 146 smb_rq_done(struct smb_rq *rqp) argument 159 smb_rq_simple(struct smb_rq *rqp) argument 181 smb_rq_enqueue(struct smb_rq *rqp) argument 215 smb_rq_wstart(struct smb_rq *rqp) argument 222 smb_rq_wend(struct smb_rq *rqp) argument 234 smb_rq_bstart(struct smb_rq *rqp) argument 241 smb_rq_bend(struct smb_rq *rqp) argument 256 smb_rq_intr(struct smb_rq *rqp) argument 264 smb_rq_getrequest(struct smb_rq *rqp, struct mbchain **mbpp) argument 271 smb_rq_getreply(struct smb_rq *rqp, struct mdchain **mbpp) argument 322 smb_rq_reply(struct smb_rq *rqp) argument 444 struct smb_rq *rqp = t2p->t2_rq; local 556 struct smb_rq *rqp; local [all...] |
H A D | smb_rq.h | 53 #define SMBRQ_SLOCK(rqp) smb_sl_lock(&(rqp)->sr_slock) 54 #define SMBRQ_SUNLOCK(rqp) smb_sl_unlock(&(rqp)->sr_slock) 55 #define SMBRQ_SLOCKPTR(rqp) (&(rqp)->sr_slock) 130 int smb_rq_init(struct smb_rq *rqp, struct smb_connobj *layer, u_char cmd, 132 void smb_rq_done(struct smb_rq *rqp); 133 int smb_rq_getrequest(struct smb_rq *rqp, struct mbchain **mbpp); 134 int smb_rq_getreply(struct smb_rq *rqp, struc [all...] |
H A D | smb_smb.c | 116 struct smb_rq *rqp; local 138 error = smb_rq_alloc(VCTOCP(vcp), SMB_COM_NEGOTIATE, scred, &rqp); 141 smb_rq_getrequest(rqp, &mbp); 142 smb_rq_wstart(rqp); 143 smb_rq_wend(rqp); 144 smb_rq_bstart(rqp); 149 smb_rq_bend(rqp); 150 error = smb_rq_simple(rqp); 154 smb_rq_getreply(rqp, &mdp); 287 smb_rq_done(rqp); 294 struct smb_rq *rqp; local 441 struct smb_rq *rqp; local 500 struct smb_rq rq, *rqp = &rq; local 602 struct smb_rq *rqp; local 627 struct smb_rq *rqp; local 708 struct smb_rq *rqp; local 765 struct smb_rq *rqp; local 844 struct smb_rq *rqp; local 931 struct smb_rq *rqp; local [all...] |
H A D | smb_subr.c | 362 smb_put_asunistring(struct smb_rq *rqp, const char *src) argument 364 struct mbchain *mbp = &rqp->sr_rq; 365 struct iconv_drv *dp = rqp->sr_vc->vc_toserver;
|
H A D | smb_subr.h | 119 int smb_put_string(struct smb_rq *rqp, const char *src); 120 int smb_put_asunistring(struct smb_rq *rqp, const char *src); 121 int smb_rq_sign(struct smb_rq *rqp); 122 int smb_rq_verify(struct smb_rq *rqp);
|
H A D | smb_usr.c | 215 struct smb_rq *rqp; local 234 rqp = malloc(sizeof(struct smb_rq), M_SMBTEMP, M_WAITOK); 235 error = smb_rq_init(rqp, SSTOCP(ssp), dp->ioc_cmd, scred); 237 free(rqp, M_SMBTEMP); 240 mbp = &rqp->sr_rq; 241 smb_rq_wstart(rqp); 245 smb_rq_wend(rqp); 246 smb_rq_bstart(rqp); 250 smb_rq_bend(rqp); 251 error = smb_rq_simple(rqp); [all...] |
/freebsd-11-stable/sys/dev/usb/wlan/ |
H A D | if_zyd.c | 677 struct zyd_rq *rqp; local 685 STAILQ_FOREACH(rqp, &sc->sc_rqh, rq) { 689 if (rqp->olen != datalen) 691 count = rqp->olen / sizeof(struct zyd_pair); 693 if (*(((const uint16_t *)rqp->idata) + i) != 700 memcpy(rqp->odata, cmd->data, rqp->olen); 703 rqp, rqp->olen, (char *)rqp 743 struct zyd_rq *rqp, *cmd; local [all...] |