Lines Matching defs:id
105 #define DQHASH(dqvp, id) \
106 (&dqhashtbl[((((intptr_t)(dqvp)) >> 8) + id) & dqhash])
497 dqget(u_int32_t id, struct quotafile *qfp, int type, struct dquot **dqp)
512 if ( id == 0 || qfp->qf_vp == NULLVP ) {
531 dqh = DQHASH(dqvp, id);
540 if (dq->dq_id != id ||
554 if (dq->dq_id != id || dq->dq_qfile == NULL ||
711 dq->dq_id = id;
734 error = dqlookup(qfp, id, &dq->dq_dqb, &dq->dq_index);
787 dqlookup(struct quotafile *qfp, u_int32_t id, struct dqblk *dqb, uint32_t *index)
806 i = dqhash1(id, qfp->qf_shift, mask);
807 skip = dqhash2(id, mask);
817 printf("dqlookup: error %d looking up id %u at index %d\n", error, id, i);
821 printf("dqlookup: error looking up id %u at index %d\n", id, i);
826 * with that id. In this case a new dqb
831 dqb->dqb_id = OSSwapHostToBigInt32(id);
833 * Write back to reserve entry for this id
842 dqb->dqb_id = id;
845 /* An id match means an entry was found. */
846 if (OSSwapBigToHostInt32(dqb->dqb_id) == id) {