Lines Matching refs:acq
6252 struct secacq *acq, *nextacq; in key_timehandler() local
6254 for (acq = LIST_FIRST(&acqtree); in key_timehandler()
6255 acq != NULL; in key_timehandler()
6256 acq = nextacq) { in key_timehandler()
6258 nextacq = LIST_NEXT(acq, chain); in key_timehandler()
6260 if (current_time_ns - acq->created > blockacq_lifetime in key_timehandler()
6261 && __LIST_CHAINED(acq)) { in key_timehandler()
6262 LIST_REMOVE(acq, chain); in key_timehandler()
6263 kfree_type(struct secacq, acq); in key_timehandler()
6271 struct secspacq *acq, *nextacq; in key_timehandler() local
6273 for (acq = LIST_FIRST(&spacqtree); in key_timehandler()
6274 acq != NULL; in key_timehandler()
6275 acq = nextacq) { in key_timehandler()
6277 nextacq = LIST_NEXT(acq, chain); in key_timehandler()
6279 if (current_time_ns - acq->created > blockacq_lifetime in key_timehandler()
6280 && __LIST_CHAINED(acq)) { in key_timehandler()
6281 LIST_REMOVE(acq, chain); in key_timehandler()
6282 struct secacq *secacq_p = (struct secacq *)acq; in key_timehandler()
6679 struct secacq *acq; in key_getspi() local
6680 if ((acq = key_getacqbyseq(mhp->msg->sadb_msg_seq)) != NULL) { in key_getspi()
6682 acq->created = key_get_continuous_time_ns(); in key_getspi()
6683 acq->count = 0; in key_getspi()
8296 struct secacq *acq; in key_getacq() local
8300 LIST_FOREACH(acq, &acqtree, chain) { in key_getacq()
8301 if (key_cmpsaidx(saidx, &acq->saidx, CMP_EXACTLY)) { in key_getacq()
8302 return acq; in key_getacq()
8313 struct secacq *acq; in key_getacqbyseq() local
8317 LIST_FOREACH(acq, &acqtree, chain) { in key_getacqbyseq()
8318 if (acq->seq == seq) { in key_getacqbyseq()
8319 return acq; in key_getacqbyseq()
8331 struct secspacq *acq; in key_newspacq() local
8334 acq = kalloc_type(struct secspacq, Z_NOWAIT_ZERO); in key_newspacq()
8335 if (acq == NULL) { in key_newspacq()
8337 acq = kalloc_type(struct secspacq, Z_WAITOK_ZERO_NOFAIL); in key_newspacq()
8342 bcopy(spidx, &acq->spidx, sizeof(acq->spidx)); in key_newspacq()
8343 acq->created = key_get_continuous_time_ns(); in key_newspacq()
8345 return acq; in key_newspacq()
8352 struct secspacq *acq; in key_getspacq() local
8356 LIST_FOREACH(acq, &spacqtree, chain) { in key_getspacq()
8357 if (key_cmpspidx_exactly(spidx, &acq->spidx)) { in key_getspacq()
8358 return acq; in key_getspacq()
8408 struct secacq *acq; in key_acquire2() local
8418 if ((acq = key_getacqbyseq(mhp->msg->sadb_msg_seq)) == NULL) { in key_acquire2()
8429 acq->created = key_get_continuous_time_ns(); in key_acquire2()
8430 acq->count = 0; in key_acquire2()