Lines Matching refs:xd

540 	struct xform_data *xd;  in ah_input()  local
623 xd = malloc(sizeof(*xd) + skip + rplen + authsize, M_AH, in ah_input()
625 if (xd == NULL) { in ah_input()
637 m_copydata(m, 0, skip + rplen + authsize, (caddr_t)(xd + 1)); in ah_input()
651 free(xd, M_AH); in ah_input()
662 crp->crp_opaque = xd; in ah_input()
671 xd->sav = sav; in ah_input()
672 xd->nxt = hl; in ah_input()
673 xd->protoff = protoff; in ah_input()
674 xd->skip = skip; in ah_input()
675 xd->cryptoid = cryptoid; in ah_input()
676 xd->vnet = curvnet; in ah_input()
696 struct xform_data *xd; in ah_input_cb() local
707 xd = crp->crp_opaque; in ah_input_cb()
708 CURVNET_SET(xd->vnet); in ah_input_cb()
709 sav = xd->sav; in ah_input_cb()
710 skip = xd->skip; in ah_input_cb()
711 nxt = xd->nxt; in ah_input_cb()
712 protoff = xd->protoff; in ah_input_cb()
713 cryptoid = xd->cryptoid; in ah_input_cb()
725 xd->cryptoid = crp->crp_session; in ah_input_cb()
756 ptr = (caddr_t) (xd + 1); in ah_input_cb()
771 free(xd, M_AH), xd = NULL; /* No longer needed */ in ah_input_cb()
831 if (xd != NULL) in ah_input_cb()
832 free(xd, M_AH); in ah_input_cb()
847 struct xform_data *xd; in ah_output() local
990 xd = malloc(sizeof(struct xform_data) + skip, M_AH, in ah_output()
992 if (xd == NULL) { in ah_output()
1001 m_copydata(m, 0, skip, (caddr_t) (xd + 1)); in ah_output()
1011 bcopy(((caddr_t)(xd + 1)) + in ah_output()
1022 bcopy(((caddr_t)(xd + 1)) + in ah_output()
1033 ((uint8_t *) (xd + 1))[protoff] = IPPROTO_AH; in ah_output()
1044 free(xd, M_AH); in ah_output()
1054 crp->crp_opaque = xd; in ah_output()
1064 xd->sp = sp; in ah_output()
1065 xd->sav = sav; in ah_output()
1066 xd->skip = skip; in ah_output()
1067 xd->idx = idx; in ah_output()
1068 xd->cryptoid = cryptoid; in ah_output()
1069 xd->vnet = curvnet; in ah_output()
1089 struct xform_data *xd; in ah_output_cb() local
1099 xd = (struct xform_data *) crp->crp_opaque; in ah_output_cb()
1100 CURVNET_SET(xd->vnet); in ah_output_cb()
1101 sp = xd->sp; in ah_output_cb()
1102 sav = xd->sav; in ah_output_cb()
1103 skip = xd->skip; in ah_output_cb()
1104 idx = xd->idx; in ah_output_cb()
1105 cryptoid = xd->cryptoid; in ah_output_cb()
1106 ptr = (caddr_t) (xd + 1); in ah_output_cb()
1114 xd->cryptoid = crp->crp_session; in ah_output_cb()
1138 free(xd, M_AH); in ah_output_cb()
1161 free(xd, M_AH); in ah_output_cb()