princ             168 net/rxrpc/key.c static void rxrpc_free_krb5_principal(struct krb5_principal *princ)
princ             172 net/rxrpc/key.c 	if (princ->name_parts) {
princ             173 net/rxrpc/key.c 		for (loop = princ->n_name_parts - 1; loop >= 0; loop--)
princ             174 net/rxrpc/key.c 			kfree(princ->name_parts[loop]);
princ             175 net/rxrpc/key.c 		kfree(princ->name_parts);
princ             177 net/rxrpc/key.c 	kfree(princ->realm);
princ             215 net/rxrpc/key.c static int rxrpc_krb5_decode_principal(struct krb5_principal *princ,
princ             234 net/rxrpc/key.c 	princ->n_name_parts = n_parts;
princ             239 net/rxrpc/key.c 	princ->name_parts = kcalloc(n_parts, sizeof(char *), GFP_KERNEL);
princ             240 net/rxrpc/key.c 	if (!princ->name_parts)
princ             253 net/rxrpc/key.c 		princ->name_parts[loop] = kmalloc(tmp + 1, GFP_KERNEL);
princ             254 net/rxrpc/key.c 		if (!princ->name_parts[loop])
princ             256 net/rxrpc/key.c 		memcpy(princ->name_parts[loop], xdr, tmp);
princ             257 net/rxrpc/key.c 		princ->name_parts[loop][tmp] = 0;
princ             271 net/rxrpc/key.c 	princ->realm = kmalloc(tmp + 1, GFP_KERNEL);
princ             272 net/rxrpc/key.c 	if (!princ->realm)
princ             274 net/rxrpc/key.c 	memcpy(princ->realm, xdr, tmp);
princ             275 net/rxrpc/key.c 	princ->realm[tmp] = 0;
princ             279 net/rxrpc/key.c 	_debug("%s/...@%s", princ->name_parts[0], princ->realm);
princ            1048 net/rxrpc/key.c 	const struct krb5_principal *princ;
princ            1082 net/rxrpc/key.c 			princ = &token->k5->client;
princ            1083 net/rxrpc/key.c 			toksize += 4 + princ->n_name_parts * 4;
princ            1084 net/rxrpc/key.c 			for (loop = 0; loop < princ->n_name_parts; loop++)
princ            1085 net/rxrpc/key.c 				toksize += RND(strlen(princ->name_parts[loop]));
princ            1086 net/rxrpc/key.c 			toksize += 4 + RND(strlen(princ->realm));
princ            1088 net/rxrpc/key.c 			princ = &token->k5->server;
princ            1089 net/rxrpc/key.c 			toksize += 4 + princ->n_name_parts * 4;
princ            1090 net/rxrpc/key.c 			for (loop = 0; loop < princ->n_name_parts; loop++)
princ            1091 net/rxrpc/key.c 				toksize += RND(strlen(princ->name_parts[loop]));
princ            1092 net/rxrpc/key.c 			toksize += 4 + RND(strlen(princ->realm));
princ            1177 net/rxrpc/key.c 			princ = &token->k5->client;
princ            1178 net/rxrpc/key.c 			ENCODE(princ->n_name_parts);
princ            1179 net/rxrpc/key.c 			for (loop = 0; loop < princ->n_name_parts; loop++)
princ            1180 net/rxrpc/key.c 				ENCODE_STR(princ->name_parts[loop]);
princ            1181 net/rxrpc/key.c 			ENCODE_STR(princ->realm);
princ            1183 net/rxrpc/key.c 			princ = &token->k5->server;
princ            1184 net/rxrpc/key.c 			ENCODE(princ->n_name_parts);
princ            1185 net/rxrpc/key.c 			for (loop = 0; loop < princ->n_name_parts; loop++)
princ            1186 net/rxrpc/key.c 				ENCODE_STR(princ->name_parts[loop]);
princ            1187 net/rxrpc/key.c 			ENCODE_STR(princ->realm);