| /src/lib/libquota/ | 
| quota_schema.c | 48 quota_getimplname(struct quotahandle *qh) 50 	switch (qh->qh_mode) {
 56 		return __quota_oldfiles_getimplname(qh);
 59 		return __quota_kernel_getimplname(qh);
 69 quota_getrestrictions(struct quotahandle *qh)
 71 	switch (qh->qh_mode) {
 82 		return __quota_kernel_getrestrictions(qh);
 92 quota_getnumidtypes(struct quotahandle *qh)
 94 	switch (qh->qh_mode) {
 100 		return __quota_kernel_getnumidtypes(qh);
 [all...]
 | 
| quota_open.c | 49 	struct quotahandle *qh;  local in function:quota_open 95 	qh = malloc(sizeof(*qh));
 96 	if (qh == NULL) {
 105 	qh->qh_mountpoint = strdup(stv.f_mntonname);
 106 	if (qh->qh_mountpoint == NULL) {
 108 		free(qh);
 113 	qh->qh_mountdevice = strdup(stv.f_mntfromname);
 114 	if (qh->qh_mountdevice == NULL) {
 116 		free(qh->qh_mountpoint)
 [all...]
 | 
| quota_delete.c | 40 quota_delete(struct quotahandle *qh, const struct quotakey *qk) 42 	switch (qh->qh_mode) {
 48 		return __quota_oldfiles_delete(qh, qk);
 51 		return __quota_kernel_delete(qh, qk);
 
 | 
| quota_put.c | 40 quota_put(struct quotahandle *qh, const struct quotakey *qk, 43 	switch (qh->qh_mode) {
 49 		return __quota_oldfiles_put(qh, qk, qv);
 52 		return __quota_kernel_put(qh, qk, qv);
 
 | 
| quota_get.c | 50 quota_get(struct quotahandle *qh, const struct quotakey *qk, struct quotaval *qv) 52 	switch (qh->qh_mode) {
 54 		return __quota_nfs_get(qh, qk, qv);
 57 		return __quota_oldfiles_get(qh, qk, qv);
 60 		return __quota_kernel_get(qh, qk, qv);
 
 | 
| quota_kernel.c | 50 __quota_kernel_stat(struct quotahandle *qh, struct quotastat *stat) 56 	return __quotactl(qh->qh_mountpoint, &args);
 60 __quota_kernel_getimplname(struct quotahandle *qh)
 64 	if (__quota_kernel_stat(qh, &stat)) {
 71 __quota_kernel_getrestrictions(struct quotahandle *qh)
 75 	if (__quota_kernel_stat(qh, &stat)) {
 83 __quota_kernel_getnumidtypes(struct quotahandle *qh)
 87 	if (__quota_kernel_stat(qh, &stat)) {
 94 __quota_kernel_idtype_getname(struct quotahandle *qh, int idtype)
 102 	if (__quotactl(qh->qh_mountpoint, &args))
 [all...]
 | 
| quotapvt.h | 66 int __quota_kernel_get(struct quotahandle *qh, const struct quotakey *qk, 68 int __quota_kernel_put(struct quotahandle *qh, const struct quotakey *qk,
 70 int __quota_kernel_delete(struct quotahandle *qh, const struct quotakey *qk);
 90 int __quota_nfs_get(struct quotahandle *qh, const struct quotakey *qk,
 97 int __quota_oldfiles_initialize(struct quotahandle *qh);
 102 int __quota_oldfiles_get(struct quotahandle *qh, const struct quotakey *qk,
 104 int __quota_oldfiles_put(struct quotahandle *qh, const struct quotakey *qk,
 106 int __quota_oldfiles_delete(struct quotahandle *qh, const struct quotakey *qk);
 
 | 
| quota_oldfiles.c | 251 __quota_oldfiles_defquotafile(struct quotahandle *qh, int idtype, 257 		       qh->qh_mountpoint,
 262 __quota_oldfiles_getquotafile(struct quotahandle *qh, int idtype,
 268 	ofe = __quota_oldfiles_find_fstabentry(qh->qh_mountpoint);
 295 		__quota_oldfiles_defquotafile(qh, idtype, buf, maxlen);
 362 __quota_oldfiles_open(struct quotahandle *qh, const char *path, int *fd_ret)
 378 __quota_oldfiles_initialize(struct quotahandle *qh)
 384 	if (qh->qh_oldfilesopen) {
 392 	ofe = __quota_oldfiles_find_fstabentry(qh->qh_mountpoint);
 394 		warnx("%s not found in fstab", qh->qh_mountpoint)
 [all...]
 | 
| quota_cursor.c | 41 quota_opencursor(struct quotahandle *qh) 47 	switch (qh->qh_mode) {
 57 		restrictions = __quota_kernel_getrestrictions(qh);
 70 	    !qh->qh_oldfilesopen) {
 71 		if (__quota_oldfiles_initialize(qh)) {
 81 	qc->qc_qh = qh;
 85 		qc->u.qc_oldfiles = __quota_oldfiles_cursor_create(qh);
 94 		qc->u.qc_kernel = __quota_kernel_cursor_create(qh);
 
 | 
| quota_nfs.c | 129 __quota_nfs_get(struct quotahandle *qh, const struct quotakey *qk, 164 	path = strdup(qh->qh_mountdevice);
 
 | 
| /src/sys/external/bsd/dwc2/dist/ | 
| dwc2_hcdqueue.c | 73  * dwc2_qh_init() - Initializes a QH structure 76  * @qh:    The QH to init
 78  *         the QH
 81 static void dwc2_qh_init(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh,
 88 	/* Initialize QH */
 89 	qh->hsotg = hsotg;
 90 	/* XXX timer_setup(&qh->wait_timer, dwc2_wait_timer_fn, 0); */
 91 	callout_init(&qh->wait_timer, 0);
 92 	callout_setfunc(&qh->wait_timer, dwc2_wait_timer_fn, qh)
 225  struct dwc2_qh *qh;  local in function:dwc2_hcd_qh_create
 627  struct dwc2_qh *qh = arg;  local in function:dwc2_wait_timer_fn
 [all...]
 | 
| dwc2_hcdddma.c | 84 static u16 dwc2_max_desc_num(struct dwc2_qh *qh) 86 	return (qh->ep_type == USB_ENDPOINT_XFER_ISOC &&
 87 		qh->dev_speed == USB_SPEED_HIGH) ?
 91 static u16 dwc2_frame_incr_val(struct dwc2_qh *qh)
 93 	return qh->dev_speed == USB_SPEED_HIGH ?
 94 	       (qh->interval + 8 - 1) / 8 : qh->interval;
 97 static int dwc2_desc_list_alloc(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh,
 105 	qh->desc_list = NULL;
 106 	qh->desc_list_sz = sizeof(struct dwc2_hcd_dma_desc)
 958  struct dwc2_qh *qh;  local in function:dwc2_complete_isoc_xfer_ddma
 1145  struct dwc2_qh *qh = chan->qh;  local in function:dwc2_process_non_isoc_desc
 1218  struct dwc2_qh *qh = chan->qh;  local in function:dwc2_complete_non_isoc_xfer_ddma
 1290  struct dwc2_qh *qh = chan->qh;  local in function:dwc2_hcd_complete_xfer_ddma
 [all...]
 | 
| dwc2_hcd.h | 109  * @qh:                 QH for the transfer being processed by this channel 111  * @desc_list_addr:     Current QH's descriptor list DMA address
 112  * @desc_list_sz:       Current QH's descriptor list size
 163 	struct dwc2_qh *qh;  member in struct:dwc2_host_chan
 258  * @qtd_list:           List of QTDs for this QH
 259  * @channel:            Host channel currently processing transfers for this QH
 260  * @qh_list_entry:      Entry for QH in either the periodic or non-periodic
 274  * A Queue Head (QH) holds the static characteristics of an endpoint and
 275  * maintains a list of transfers (QTDs) for that endpoint. A QH structure ma
 376  struct dwc2_qh *qh;  member in struct:dwc2_qtd
 645  struct dwc2_qh *qh = dpipe->priv;  local in function:dwc2_hcd_is_bandwidth_allocated
 656  struct dwc2_qh *qh = dpipe->priv;  local in function:dwc2_hcd_get_ep_bandwidth
 [all...]
 | 
| dwc2_hcdintr.c | 110 	if (!chan->qh) 113 	if (chan->qh->dev_speed == USB_SPEED_HIGH)
 121 		chan->qh->tt_buffer_dirty = 1;
 122 			chan->qh->tt_buffer_dirty = 0;
 135 	struct dwc2_qh *qh;  local in function:dwc2_sof_intr
 152 		qh = list_entry(qh_entry, struct dwc2_qh, qh_list_entry);
 154 		if (dwc2_frame_num_le(qh->sched_frame, hsotg->frame_number))
 156 			 * Move QH to the ready list to be executed next
 159 			list_move(&qh->qh_list_entry,
 448 		} else if (chan->qh->do_split)
 [all...]
 | 
| dwc2_hcd.c | 84 	struct dwc2_qh *qh;  local in function:dwc2_dump_channel_info 115 	dev_dbg(hsotg->dev, "    qh: %p\n", chan->qh);
 117 	list_for_each_entry(qh, &hsotg->non_periodic_sched_inactive,
 119 		dev_dbg(hsotg->dev, "    %p\n", qh);
 121 	list_for_each_entry(qh, &hsotg->non_periodic_sched_waiting,
 123 		dev_dbg(hsotg->dev, "    %p\n", qh);
 125 	list_for_each_entry(qh, &hsotg->non_periodic_sched_active,
 127 		dev_dbg(hsotg->dev, "    %p\n", qh);
 146 	struct dwc2_qh *qh, *qh_tmp  local in function:dwc2_kill_urbs_in_qh_list
 162  struct dwc2_qh *qh, *qh_tmp;  local in function:dwc2_qh_list_free
 487  struct dwc2_qh *qh;  local in function:dwc2_hcd_urb_dequeue
 911  struct dwc2_qh *qh;  local in function:dwc2_hcd_select_transactions
 1082  struct dwc2_qh *qh;  local in function:dwc2_process_periodic_channels
 1222  struct dwc2_qh *qh;  local in function:dwc2_process_non_periodic_channels
 [all...]
 | 
| /src/usr.sbin/quotaon/ | 
| quotaon.c | 81 	struct quotahandle *qh;  local in function:main 131 	qh = quota_open("/");
 132 	if (qh != NULL) {
 133 		quota_close(qh);
 158 		qh = quota_open(fs->fs_file);
 159 		if (qh == NULL) {
 167 		restrictions = quota_getrestrictions(qh);
 175 			quota_close(qh);
 188 			errs += quotaonoff(fs, qh, offmode, GRPQUOTA, 0, fsspec);
 189 			errs += quotaonoff(fs, qh, offmode, USRQUOTA, 0, fsspec)
 [all...]
 | 
| /src/usr.sbin/quotarestore/ | 
| quotarestore.c | 152 maketables(struct quotahandle *qh) 156 	numidtypes = quota_getnumidtypes(qh);
 163 		idtypenames[i] = strdup(quota_idtype_getname(qh, i));
 169 	numobjtypes = quota_getnumobjtypes(qh);
 176 		objtypenames[i] = strdup(quota_objtype_getname(qh, i));
 313 scankeys(struct quotahandle *qh, struct qklist *seenkeys,
 322 	qc = quota_opencursor(qh);
 348 purge(struct quotahandle *qh, struct qklist *dropkeys)
 353 		if (quota_delete(qh, &dropkeys->keys[i])) {
 363 readdumpfile(struct quotahandle *qh, FILE *f, const char *path
 515  struct quotahandle *qh;  local in function:main
 [all...]
 | 
| /src/usr.sbin/repquota/ | 
| repquota.c | 129 	struct quotahandle *qh;  local in function:main 190 		qh = quota_open(fst[i].f_mntonname);
 191 		if (qh == NULL) {
 201 			errs += repquota(qh, QUOTA_IDTYPE_GROUP);
 203 			errs += repquota(qh, QUOTA_IDTYPE_USER);
 205 		quota_close(qh);
 226 repquota(struct quotahandle *qh, int idtype)
 234 	qc = quota_opencursor(qh);
 249 			err(1, "%s: quotacursor_get", quota_getmountpoint(qh));
 271 		printquotas(idtype, qh);
 [all...]
 | 
| /src/libexec/rpc.rquotad/ | 
| rquotad.c | 216 	struct quotahandle *qh;  local in function:sendquota 263 	qh = quota_open(ext_getq_args.gqa_pathp);
 264 	if (qh == NULL) {
 281 	if (quota_get(qh, &qk, &blocks) < 0) {
 283 		quota_close(qh);
 289 	if (quota_get(qh, &qk, &files) < 0) {
 291 		quota_close(qh);
 296 	quota_close(qh);
 
 | 
| /src/usr.sbin/edquota/ | 
| edquota.c | 407 dogetprivs2(struct quotahandle *qh, int idtype, id_t id, int defaultq, 415 	if (quota_get(qh, &qk, &qup->qv[objtype]) == 0) {
 427 	if (quota_get(qh, &qk, &qup->qv[objtype]) == 0) {
 447 	struct quotahandle *qh;  local in function:getprivs2
 458 	qh = quota_open(filesys);
 459 	if (qh == NULL) {
 466 	impl = quota_getimplname(qh);
 472 	restrictions = quota_getrestrictions(qh);
 478 		idtypename = quota_idtype_getname(qh, idtype);
 485 	if (dogetprivs2(qh, idtype, id, defaultq, QUOTA_OBJTYPE_BLOCKS, qup))
 509  struct quotahandle *qh;  local in function:putprivs2
 636  struct quotahandle *qh;  local in function:clearpriv
 [all...]
 | 
| /src/sys/dev/usb/ | 
| uhci.c | 414 		    sizeof(pqh->qh.qh_hlink), 416 		if (le32toh(pqh->qh.qh_hlink) & UHCI_PTR_T) {
 417 			printf("%s: QH not found\n", __func__);
 472 	 * Allocate a TD, inactive, that hangs from the last QH.
 487 	/* Allocate the dummy QH marking the end and used for looping the QHs.*/
 492 	lsqh->qh.qh_hlink = htole32(UHCI_PTR_T);	/* end of QH chain */
 494 	lsqh->qh.qh_elink = htole32(std->physaddr | UHCI_PTR_TD);
 496 	usb_syncmem(&lsqh->dma, lsqh->offs, sizeof(lsqh->qh),
 499 	/* Allocate the dummy QH where bulk traffic will be queued. *
 [all...]
 | 
| ehci.c | 502 	 * - that's as much as ehci can address in its QH, TD, iTD, and siTD 601 			/* The last (1ms) QH terminates. */
 602 			sqh->qh->qh_link = EHCI_NULL;
 605 			/* Otherwise the next QH has half the poll interval */
 607 			sqh->qh->qh_link = htole32(sqh->next->physaddr |
 610 		sqh->qh->qh_endp = htole32(EHCI_QH_SET_EPS(EHCI_QH_SPEED_HIGH));
 611 		sqh->qh->qh_endphub = htole32(EHCI_QH_SET_MULT(1));
 612 		sqh->qh->qh_curqtd = EHCI_NULL;
 614 		sqh->qh->qh_qtd.qtd_next = EHCI_NULL;
 615 		sqh->qh->qh_qtd.qtd_altnext = EHCI_NULL
 1814  ehci_qh_t *qh = sqh->qh;  local in function:ehci_dump_sqh
 [all...]
 | 
| uhcivar.h | 45  * QH that forms the start of the interrupt traffic for that slot. 46  * Each of these QHs point to the same QH that is the start of control
 47  * traffic.  This QH points at another QH which is the start of the
 119  * Extra information that we need for a QH.
 122 	uhci_qh_t qh;			/* The real QH, must be first */  member in struct:uhci_soft_qh
 125 	uhci_physaddr_t physaddr;	/* QH's physical address. */
 127 	usb_dma_t dma;			/* QH's DMA infos */
 128 	int offs;			/* QH's offset in usb_dma_t *
 [all...]
 | 
| /src/usr.bin/quota/ | 
| quota.c | 83 	struct	quotahandle *qh;  member in struct:quotause 360 					 quota_idtype_getname(qup->qh, i),
 401 				quota_objtype_isbytes(qup->qh, i), now);
 498 		qup->qh = quota_open(fst[i].f_mntonname);
 499 		if (qup->qh == NULL) {
 505 		qup->numqvs = quota_getnumidtypes(qup->qh);
 518 			if (quota_get(qup->qh, &qk, &qup->qvs[j]) < 0) {
 
 | 
| /src/sys/dev/raidframe/ | 
| rf_engine.c | 434 	RF_DagNode_t *q = NULL, *qh = NULL, *next;  local in function:PropagateResults 501 								qh = q = s;
 502 								qh->next = NULL;
 512 			raidPtr->node_queue = qh;
 583 							qh = q = a;
 584 							qh->next = NULL;
 593 			raidPtr->node_queue = qh;
 
 |