km                145 arch/s390/include/uapi/asm/kvm.h 	__u8 km[16];		/* with MSA */
km                371 arch/s390/kvm/kvm-s390.c 			      kvm_s390_available_subfunc.km);
km               1342 arch/s390/kvm/kvm-s390.c 		 ((unsigned long *) &kvm->arch.model.subfuncs.km)[0],
km               1343 arch/s390/kvm/kvm-s390.c 		 ((unsigned long *) &kvm->arch.model.subfuncs.km)[1]);
km               1523 arch/s390/kvm/kvm-s390.c 		 ((unsigned long *) &kvm->arch.model.subfuncs.km)[0],
km               1524 arch/s390/kvm/kvm-s390.c 		 ((unsigned long *) &kvm->arch.model.subfuncs.km)[1]);
km               1591 arch/s390/kvm/kvm-s390.c 		 ((unsigned long *) &kvm_s390_available_subfunc.km)[0],
km               1592 arch/s390/kvm/kvm-s390.c 		 ((unsigned long *) &kvm_s390_available_subfunc.km)[1]);
km                595 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 				  struct host_cmd_ds_802_11_key_material_v2 *km)
km                604 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 			memcpy(km->key_param_set.key_params.cmac_aes.ipn,
km                606 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_info &= cpu_to_le16(~KEY_MCAST);
km                607 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_info |= cpu_to_le16(KEY_IGTK);
km                608 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_type = KEY_TYPE_ID_AES_CMAC;
km                609 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_params.cmac_aes.key_len =
km                611 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		memcpy(km->key_param_set.key_params.cmac_aes.key,
km                617 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_type = KEY_TYPE_ID_AES_CMAC_DEF;
km                618 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_idx = enc_key->key_index & KEY_INDEX_MASK;
km                623 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 			memcpy(km->key_param_set.key_params.aes.pn,
km                625 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_type = KEY_TYPE_ID_AES;
km                626 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_params.aes.key_len =
km                628 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		memcpy(km->key_param_set.key_params.aes.key,
km                633 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 	km->key_param_set.len = cpu_to_le16(len);
km                635 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 	       sizeof(km->action) + S_DS_GEN;
km                658 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 	struct host_cmd_ds_802_11_key_material_v2 *km =
km                662 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 	km->action = cpu_to_le16(cmd_action);
km                666 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_idx =
km                668 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.type = cpu_to_le16(TLV_TYPE_KEY_PARAM_V2);
km                669 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.len = cpu_to_le16(KEY_PARAMS_FIXED_LEN);
km                670 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		memcpy(km->key_param_set.mac_addr, mac, ETH_ALEN);
km                680 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_info = cpu_to_le16(key_info);
km                684 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 					sizeof(km->action));
km                688 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 	memset(&km->key_param_set, 0,
km                693 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->action = cpu_to_le16(HostCmd_ACT_GEN_REMOVE);
km                694 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.type = cpu_to_le16(TLV_TYPE_KEY_PARAM_V2);
km                695 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.len = cpu_to_le16(KEY_PARAMS_FIXED_LEN);
km                696 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_idx = enc_key->key_index & KEY_INDEX_MASK;
km                698 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_info = cpu_to_le16(key_info);
km                699 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		memcpy(km->key_param_set.mac_addr, mac, ETH_ALEN);
km                702 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 					sizeof(km->action));
km                706 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 	km->action = cpu_to_le16(HostCmd_ACT_GEN_SET);
km                707 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 	km->key_param_set.key_idx = enc_key->key_index & KEY_INDEX_MASK;
km                708 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 	km->key_param_set.type = cpu_to_le16(TLV_TYPE_KEY_PARAM_V2);
km                710 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 	memcpy(km->key_param_set.mac_addr, mac, ETH_ALEN);
km                715 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.len = cpu_to_le16(len);
km                716 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_type = KEY_TYPE_ID_WEP;
km                723 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 				if (km->key_param_set.key_idx ==
km                733 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_info = cpu_to_le16(key_info);
km                735 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_params.wep.key_len =
km                737 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		memcpy(km->key_param_set.key_params.wep.key,
km                741 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 					len + sizeof(km->action) + S_DS_GEN);
km                752 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_type = KEY_TYPE_ID_WAPI;
km                753 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		memcpy(km->key_param_set.key_params.wapi.pn, enc_key->pn,
km                755 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_params.wapi.key_len =
km                757 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		memcpy(km->key_param_set.key_params.wapi.key,
km                764 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_info = cpu_to_le16(key_info);
km                767 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.len = cpu_to_le16(len);
km                769 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 					len + sizeof(km->action) + S_DS_GEN);
km                785 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 	km->key_param_set.key_info = cpu_to_le16(key_info);
km                788 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		return mwifiex_set_aes_key_v2(priv, cmd, enc_key, km);
km                794 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 			memcpy(km->key_param_set.key_params.tkip.pn,
km                796 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_type = KEY_TYPE_ID_TKIP;
km                797 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_params.tkip.key_len =
km                799 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		memcpy(km->key_param_set.key_params.tkip.key,
km                803 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.len = cpu_to_le16(len);
km                805 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 					len + sizeof(km->action) + S_DS_GEN);
km                431 include/linux/suspend.h extern void __register_nosave_region(unsigned long b, unsigned long e, int km);
km                168 include/net/xfrm.h 	struct xfrm_state_walk	km;
km                586 include/net/xfrm.h int xfrm_register_km(struct xfrm_mgr *km);
km                587 include/net/xfrm.h int xfrm_unregister_km(struct xfrm_mgr *km);
km                 84 net/ipv4/ipcomp.c 	t->km.state = XFRM_STATE_DEAD;
km                104 net/ipv6/ipcomp6.c 	t->km.state = XFRM_STATE_DEAD;
km                130 net/ipv6/xfrm6_input.c 		    likely(x->km.state == XFRM_STATE_VALID) &&
km                844 net/key/af_key.c 	switch (x->km.state) {
km                846 net/key/af_key.c 		sa->sadb_sa_state = x->km.dying ?
km               1295 net/key/af_key.c 	x->km.seq = hdr->sadb_msg_seq;
km               1299 net/key/af_key.c 	x->km.state = XFRM_STATE_DEAD;
km               1430 net/key/af_key.c 	if (x->km.state == XFRM_STATE_ACQ)
km               1431 net/key/af_key.c 		x->km.state = XFRM_STATE_ERROR;
km               1521 net/key/af_key.c 		x->km.state = XFRM_STATE_DEAD;
km               3174 net/key/af_key.c 	hdr->sadb_msg_seq = x->km.seq = get_acqseq();
km               3375 net/key/af_key.c 	hdr->sadb_msg_seq = x->km.seq = get_acqseq();
km                 61 net/netfilter/nf_conntrack_proto_gre.c 	struct nf_ct_gre_keymap *km, *tmp;
km                 64 net/netfilter/nf_conntrack_proto_gre.c 	list_for_each_entry_safe(km, tmp, &net_gre->keymap_list, list) {
km                 65 net/netfilter/nf_conntrack_proto_gre.c 		list_del_rcu(&km->list);
km                 66 net/netfilter/nf_conntrack_proto_gre.c 		kfree_rcu(km, rcu);
km                 71 net/netfilter/nf_conntrack_proto_gre.c static inline int gre_key_cmpfn(const struct nf_ct_gre_keymap *km,
km                 74 net/netfilter/nf_conntrack_proto_gre.c 	return km->tuple.src.l3num == t->src.l3num &&
km                 75 net/netfilter/nf_conntrack_proto_gre.c 	       !memcmp(&km->tuple.src.u3, &t->src.u3, sizeof(t->src.u3)) &&
km                 76 net/netfilter/nf_conntrack_proto_gre.c 	       !memcmp(&km->tuple.dst.u3, &t->dst.u3, sizeof(t->dst.u3)) &&
km                 77 net/netfilter/nf_conntrack_proto_gre.c 	       km->tuple.dst.protonum == t->dst.protonum &&
km                 78 net/netfilter/nf_conntrack_proto_gre.c 	       km->tuple.dst.u.all == t->dst.u.all;
km                 85 net/netfilter/nf_conntrack_proto_gre.c 	struct nf_ct_gre_keymap *km;
km                 88 net/netfilter/nf_conntrack_proto_gre.c 	list_for_each_entry_rcu(km, &net_gre->keymap_list, list) {
km                 89 net/netfilter/nf_conntrack_proto_gre.c 		if (gre_key_cmpfn(km, t)) {
km                 90 net/netfilter/nf_conntrack_proto_gre.c 			key = km->tuple.src.u.gre.key;
km                108 net/netfilter/nf_conntrack_proto_gre.c 	struct nf_ct_gre_keymap **kmp, *km;
km                113 net/netfilter/nf_conntrack_proto_gre.c 		list_for_each_entry_rcu(km, &net_gre->keymap_list, list) {
km                114 net/netfilter/nf_conntrack_proto_gre.c 			if (gre_key_cmpfn(km, t) && km == *kmp)
km                122 net/netfilter/nf_conntrack_proto_gre.c 	km = kmalloc(sizeof(*km), GFP_ATOMIC);
km                123 net/netfilter/nf_conntrack_proto_gre.c 	if (!km)
km                125 net/netfilter/nf_conntrack_proto_gre.c 	memcpy(&km->tuple, t, sizeof(*t));
km                126 net/netfilter/nf_conntrack_proto_gre.c 	*kmp = km;
km                128 net/netfilter/nf_conntrack_proto_gre.c 	pr_debug("adding new entry %p: ", km);
km                129 net/netfilter/nf_conntrack_proto_gre.c 	nf_ct_dump_tuple(&km->tuple);
km                132 net/netfilter/nf_conntrack_proto_gre.c 	list_add_tail(&km->list, &net_gre->keymap_list);
km                477 net/xfrm/xfrm_input.c 		if (unlikely(x->km.state != XFRM_STATE_VALID)) {
km                478 net/xfrm/xfrm_input.c 			if (x->km.state == XFRM_STATE_ACQ)
km                597 net/xfrm/xfrm_input.c 		if (unlikely(x->km.state != XFRM_STATE_VALID)) {
km                598 net/xfrm/xfrm_input.c 			if (x->km.state == XFRM_STATE_ACQ)
km                433 net/xfrm/xfrm_output.c 		if (unlikely(x->km.state != XFRM_STATE_VALID)) {
km               2391 net/xfrm/xfrm_policy.c 		if (x && x->km.state == XFRM_STATE_VALID) {
km               2398 net/xfrm/xfrm_policy.c 			error = (x->km.state == XFRM_STATE_ERROR ?
km               3804 net/xfrm/xfrm_policy.c 		if (dst->xfrm->km.state != XFRM_STATE_VALID)
km                531 net/xfrm/xfrm_state.c 	if (x->km.state == XFRM_STATE_DEAD)
km                533 net/xfrm/xfrm_state.c 	if (x->km.state == XFRM_STATE_EXPIRED)
km                560 net/xfrm/xfrm_state.c 	if (x->km.dying)
km                583 net/xfrm/xfrm_state.c 	x->km.dying = warn;
km                595 net/xfrm/xfrm_state.c 	if (x->km.state == XFRM_STATE_ACQ && x->id.spi == 0)
km                596 net/xfrm/xfrm_state.c 		x->km.state = XFRM_STATE_EXPIRED;
km                621 net/xfrm/xfrm_state.c 		INIT_LIST_HEAD(&x->km.all);
km                643 net/xfrm/xfrm_state.c 	WARN_ON(x->km.state != XFRM_STATE_DEAD);
km                662 net/xfrm/xfrm_state.c 	if (x->km.state != XFRM_STATE_DEAD) {
km                663 net/xfrm/xfrm_state.c 		x->km.state = XFRM_STATE_DEAD;
km                665 net/xfrm/xfrm_state.c 		list_del(&x->km.all);
km               1017 net/xfrm/xfrm_state.c 	if (x->km.state == XFRM_STATE_VALID) {
km               1024 net/xfrm/xfrm_state.c 		    (*best)->km.dying > x->km.dying ||
km               1025 net/xfrm/xfrm_state.c 		    ((*best)->km.dying == x->km.dying &&
km               1028 net/xfrm/xfrm_state.c 	} else if (x->km.state == XFRM_STATE_ACQ) {
km               1030 net/xfrm/xfrm_state.c 	} else if (x->km.state == XFRM_STATE_ERROR ||
km               1031 net/xfrm/xfrm_state.c 		   x->km.state == XFRM_STATE_EXPIRED) {
km               1127 net/xfrm/xfrm_state.c 			x->km.state = XFRM_STATE_DEAD;
km               1135 net/xfrm/xfrm_state.c 			x->km.state = XFRM_STATE_ACQ;
km               1136 net/xfrm/xfrm_state.c 			list_add(&x->km.all, &net->xfrm.state_all);
km               1152 net/xfrm/xfrm_state.c 			x->km.state = XFRM_STATE_DEAD;
km               1201 net/xfrm/xfrm_state.c 		    x->km.state == XFRM_STATE_VALID) {
km               1224 net/xfrm/xfrm_state.c 		x = container_of(w, struct xfrm_state, km);
km               1243 net/xfrm/xfrm_state.c 	list_add(&x->km.all, &net->xfrm.state_all);
km               1319 net/xfrm/xfrm_state.c 		    x->km.state     != XFRM_STATE_ACQ ||
km               1356 net/xfrm/xfrm_state.c 		x->km.state = XFRM_STATE_ACQ;
km               1369 net/xfrm/xfrm_state.c 		list_add(&x->km.all, &net->xfrm.state_all);
km               1407 net/xfrm/xfrm_state.c 	if (use_spi && x->km.seq) {
km               1408 net/xfrm/xfrm_state.c 		x1 = __xfrm_find_acq_byseq(net, mark, x->km.seq);
km               1522 net/xfrm/xfrm_state.c 	x->km.state = orig->km.state;
km               1523 net/xfrm/xfrm_state.c 	x->km.seq = orig->km.seq;
km               1635 net/xfrm/xfrm_state.c 	if (x1->km.state == XFRM_STATE_ACQ) {
km               1658 net/xfrm/xfrm_state.c 	if (likely(x1->km.state == XFRM_STATE_VALID)) {
km               1671 net/xfrm/xfrm_state.c 		x1->km.dying = 0;
km               1692 net/xfrm/xfrm_state.c 		x->km.state = XFRM_STATE_DEAD;
km               1712 net/xfrm/xfrm_state.c 		x->km.state = XFRM_STATE_EXPIRED;
km               1717 net/xfrm/xfrm_state.c 	if (!x->km.dying &&
km               1720 net/xfrm/xfrm_state.c 		x->km.dying = 1;
km               1905 net/xfrm/xfrm_state.c 			if (x->km.seq == seq &&
km               1907 net/xfrm/xfrm_state.c 			    x->km.state == XFRM_STATE_ACQ) {
km               1975 net/xfrm/xfrm_state.c 	if (x->km.state == XFRM_STATE_DEAD)
km               2055 net/xfrm/xfrm_state.c 		state = container_of(x, struct xfrm_state, km);
km               2108 net/xfrm/xfrm_state.c 	if (x->km.state == XFRM_STATE_VALID) {
km               2122 net/xfrm/xfrm_state.c 	struct xfrm_mgr *km;
km               2125 net/xfrm/xfrm_state.c 	list_for_each_entry_rcu(km, &xfrm_km_list, list)
km               2126 net/xfrm/xfrm_state.c 		if (km->notify_policy)
km               2127 net/xfrm/xfrm_state.c 			km->notify_policy(xp, dir, c);
km               2133 net/xfrm/xfrm_state.c 	struct xfrm_mgr *km;
km               2135 net/xfrm/xfrm_state.c 	list_for_each_entry_rcu(km, &xfrm_km_list, list)
km               2136 net/xfrm/xfrm_state.c 		if (km->notify)
km               2137 net/xfrm/xfrm_state.c 			km->notify(x, c);
km               2162 net/xfrm/xfrm_state.c 	struct xfrm_mgr *km;
km               2165 net/xfrm/xfrm_state.c 	list_for_each_entry_rcu(km, &xfrm_km_list, list) {
km               2166 net/xfrm/xfrm_state.c 		acqret = km->acquire(x, t, pol);
km               2178 net/xfrm/xfrm_state.c 	struct xfrm_mgr *km;
km               2181 net/xfrm/xfrm_state.c 	list_for_each_entry_rcu(km, &xfrm_km_list, list) {
km               2182 net/xfrm/xfrm_state.c 		if (km->new_mapping)
km               2183 net/xfrm/xfrm_state.c 			err = km->new_mapping(x, ipaddr, sport);
km               2211 net/xfrm/xfrm_state.c 	struct xfrm_mgr *km;
km               2214 net/xfrm/xfrm_state.c 	list_for_each_entry_rcu(km, &xfrm_km_list, list) {
km               2215 net/xfrm/xfrm_state.c 		if (km->migrate) {
km               2216 net/xfrm/xfrm_state.c 			ret = km->migrate(sel, dir, type, m, num_migrate, k,
km               2232 net/xfrm/xfrm_state.c 	struct xfrm_mgr *km;
km               2235 net/xfrm/xfrm_state.c 	list_for_each_entry_rcu(km, &xfrm_km_list, list) {
km               2236 net/xfrm/xfrm_state.c 		if (km->report) {
km               2237 net/xfrm/xfrm_state.c 			ret = km->report(net, proto, sel, addr);
km               2249 net/xfrm/xfrm_state.c 	struct xfrm_mgr *km;
km               2253 net/xfrm/xfrm_state.c 	list_for_each_entry_rcu(km, &xfrm_km_list, list) {
km               2254 net/xfrm/xfrm_state.c 		if (km->is_alive && km->is_alive(c)) {
km               2268 net/xfrm/xfrm_state.c 	struct xfrm_mgr *km;
km               2290 net/xfrm/xfrm_state.c 	list_for_each_entry_rcu(km, &xfrm_km_list, list) {
km               2291 net/xfrm/xfrm_state.c 		pol = km->compile_policy(sk, optname, data,
km               2312 net/xfrm/xfrm_state.c int xfrm_register_km(struct xfrm_mgr *km)
km               2315 net/xfrm/xfrm_state.c 	list_add_tail_rcu(&km->list, &xfrm_km_list);
km               2321 net/xfrm/xfrm_state.c int xfrm_unregister_km(struct xfrm_mgr *km)
km               2324 net/xfrm/xfrm_state.c 	list_del_rcu(&km->list);
km               2416 net/xfrm/xfrm_state.c 	if (x->km.state != XFRM_STATE_VALID ||
km               2524 net/xfrm/xfrm_state.c 		x->km.state = XFRM_STATE_VALID;
km                642 net/xfrm/xfrm_user.c 	x->km.seq = p->seq;
km                664 net/xfrm/xfrm_user.c 	x->km.state = XFRM_STATE_DEAD;
km                697 net/xfrm/xfrm_user.c 		x->km.state = XFRM_STATE_DEAD;
km                703 net/xfrm/xfrm_user.c 	if (x->km.state == XFRM_STATE_VOID)
km                704 net/xfrm/xfrm_user.c 		x->km.state = XFRM_STATE_VALID;
km                803 net/xfrm/xfrm_user.c 	p->seq = x->km.seq;
km               2109 net/xfrm/xfrm_user.c 	if (x->km.state != XFRM_STATE_VALID)
km               2242 net/xfrm/xfrm_user.c 	if (x->km.state != XFRM_STATE_VALID)
km               2367 net/xfrm/xfrm_user.c 	struct xfrm_kmaddress km, *kmp;
km               2377 net/xfrm/xfrm_user.c 	kmp = attrs[XFRMA_KMADDRESS] ? &km : NULL;
km               2942 net/xfrm/xfrm_user.c 	ua->seq = x->km.seq = seq;
km                145 tools/arch/s390/include/uapi/asm/kvm.h 	__u8 km[16];		/* with MSA */