Home
last modified time | relevance | path

Searched refs:nkeys (Results 1 – 25 of 31) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/arm64/pauth/
H A Dpac.c56 int n_same(struct signatures *old, struct signatures *new, int nkeys) in n_same() argument
64 if (nkeys == NKEYS) in n_same()
70 int n_same_single_set(struct signatures *sign, int nkeys) in n_same_single_set() argument
72 size_t vals[nkeys]; in n_same_single_set()
80 if (nkeys >= 4) in n_same_single_set()
83 for (int i = 0; i < nkeys - 1; i++) { in n_same_single_set()
84 for (int j = i + 1; j < nkeys; j++) { in n_same_single_set()
258 int nkeys = NKEYS; in TEST() local
267 nkeys = NKEYS - 1; in TEST()
280 if (nkeys == NKEYS) in TEST()
[all …]
/openbmc/qemu/qga/
H A Dcommands-common-ssh.c23 bool check_openssh_pub_keys(strList *keys, size_t *nkeys, Error **errp) in check_openssh_pub_keys() argument
35 if (nkeys) { in check_openssh_pub_keys()
36 *nkeys = n; in check_openssh_pub_keys()
H A Dcommands-posix-ssh.c122 size_t nkeys, nauthkeys; in qmp_guest_ssh_add_authorized_keys() local
126 if (!check_openssh_pub_keys(keys, &nkeys, errp)) { in qmp_guest_ssh_add_authorized_keys()
149 authkeys = g_realloc_n(authkeys, nauthkeys + nkeys + 1, sizeof(char *)); in qmp_guest_ssh_add_authorized_keys()
150 memset(authkeys + nauthkeys, 0, (nkeys + 1) * sizeof(char *)); in qmp_guest_ssh_add_authorized_keys()
171 size_t nkeys = 0; in qmp_guest_ssh_remove_authorized_keys() local
205 new_keys[nkeys++] = *a; in qmp_guest_ssh_remove_authorized_keys()
H A Dcommands-windows-ssh.c609 size_t nkeys, nauthkeys; in qmp_guest_ssh_add_authorized_keys() local
612 if (!check_openssh_pub_keys(keys, &nkeys, errp)) { in qmp_guest_ssh_add_authorized_keys()
638 authkeys = g_realloc_n(authkeys, nauthkeys + nkeys + 1, sizeof(char *)); in qmp_guest_ssh_add_authorized_keys()
641 memset(authkeys + nauthkeys, 0, (nkeys + 1) * sizeof(char *)); in qmp_guest_ssh_add_authorized_keys()
673 size_t nkeys = 0; in qmp_guest_ssh_remove_authorized_keys() local
707 new_keys[nkeys++] = *a; in qmp_guest_ssh_remove_authorized_keys()
H A Dcommands-common-ssh.h9 bool check_openssh_pub_keys(strList *keys, size_t *nkeys, Error **errp);
/openbmc/linux/net/sched/
H A Dcls_flow.c47 u32 nkeys; member
318 for (n = 0; n < f->nkeys; n++) { in flow_classify()
325 classid = jhash2(keys, f->nkeys, f->hashrnd); in flow_classify()
400 unsigned int nkeys = 0; in flow_change() local
424 nkeys = hweight32(keymask); in flow_change()
425 if (nkeys == 0) in flow_change()
462 fnew->nkeys = fold->nkeys; in flow_change()
476 if (mode != FLOW_MODE_HASH && nkeys > 1) in flow_change()
496 if (mode != FLOW_MODE_HASH && nkeys > 1) in flow_change()
525 fnew->nkeys = nkeys; in flow_change()
H A Dact_pedit.c214 if (!parm->nkeys) { in tcf_pedit_init()
219 ksize = parm->nkeys * sizeof(struct tc_pedit_key); in tcf_pedit_init()
233 tcf_pedit_keys_ex_parse(tb[TCA_PEDIT_KEYS_EX], parm->nkeys, extack); in tcf_pedit_init()
247 nparms->tcfp_nkeys = parm->nkeys; in tcf_pedit_init()
522 opt->nkeys = parms->tcfp_nkeys; in tcf_pedit_dump()
H A Dcls_u32.c160 for (i = n->sel.nkeys; i > 0; i--, key++) { in u32_classify()
829 new = kzalloc(struct_size(new, sel.keys, s->nkeys), GFP_KERNEL); in u32_init_knode()
856 memcpy(&new->sel, s, struct_size(s, keys, s->nkeys)); in u32_init_knode()
1100 sel_size = struct_size(s, keys, s->nkeys); in u32_change()
1106 n = kzalloc(struct_size(n, sel.keys, s->nkeys), GFP_KERNEL); in u32_change()
1113 n->pf = __alloc_percpu(struct_size(n->pf, kcnts, s->nkeys), in u32_change()
1367 if (nla_put(skb, TCA_U32_SEL, struct_size(&n->sel, keys, n->sel.nkeys), in u32_dump()
1417 gpf = kzalloc(struct_size(gpf, kcnts, n->sel.nkeys), GFP_KERNEL); in u32_dump()
1427 for (i = 0; i < n->sel.nkeys; i++) in u32_dump()
1431 if (nla_put_64bit(skb, TCA_U32_PCNT, struct_size(gpf, kcnts, n->sel.nkeys), in u32_dump()
/openbmc/linux/include/net/tc_act/
H A Dtc_pedit.h43 int nkeys; in tcf_pedit_nkeys() local
47 nkeys = parms->tcfp_nkeys; in tcf_pedit_nkeys()
50 return nkeys; in tcf_pedit_nkeys()
/openbmc/linux/include/uapi/linux/tc_act/
H A Dtc_pedit.h63 unsigned char nkeys; member
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_u32.c55 for (i = 0; i < cls->knode.sel->nkeys; i++) { in fill_match_fields()
255 for (j = 0; j < cls->knode.sel->nkeys; j++) { in cxgb4_config_knode()
/openbmc/linux/drivers/input/misc/
H A Dapanel.c57 u16 nkeys; member
/openbmc/linux/drivers/net/ethernet/netronome/nfp/abm/
H A Dcls.c62 if (knode->sel->nkeys != 1) { in nfp_abm_u32_check_knode()
/openbmc/linux/security/keys/
H A Dgc.c166 atomic_dec(&key->user->nkeys); in key_gc_unused_keys()
H A Dproc.c315 atomic_read(&user->nkeys), in proc_key_users_show()
H A Dinternal.h59 atomic_t nkeys; /* number of keys */ member
H A Dkey.c94 atomic_set(&candidate->nkeys, 0); in key_user_lookup()
321 atomic_inc(&user->nkeys); in key_alloc()
H A Dkeyctl.c1030 atomic_dec(&key->user->nkeys); in keyctl_chown_key()
1031 atomic_inc(&newowner->nkeys); in keyctl_chown_key()
/openbmc/linux/tools/include/uapi/linux/
H A Dpkt_cls.h175 unsigned char nkeys; member
/openbmc/linux/include/uapi/linux/
H A Dpkt_cls.h251 unsigned char nkeys; member
/openbmc/linux/drivers/md/bcache/
H A Djournal.c851 unsigned int nkeys) in journal_wait_for_write() argument
866 sectors = __set_blocks(w->data, w->data->keys + nkeys, in journal_wait_for_write()
H A Dsysfs.c726 return c->gc_stats.nkeys in bch_average_key_size()
727 ? div64_u64(c->gc_stats.data, c->gc_stats.nkeys) in bch_average_key_size()
H A Dbcache.h486 size_t nkeys; member
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_tc.c101 if (sel->nkeys <= 0 || sel->nkeys > 1) in tc_fill_entry()
/openbmc/linux/drivers/hid/
H A Dwacom_wac.c520 int keys = 0, nkeys = 0; in wacom_intuos_pad() local
551 nkeys = 3; in wacom_intuos_pad()
567 nkeys = 3; in wacom_intuos_pad()
624 nkeys = 3; in wacom_intuos_pad()
640 prox = (buttons & ~(~0U << nbuttons)) | (keys & ~(~0U << nkeys)) | in wacom_intuos_pad()
645 for (i = 0; i < nkeys; i++) in wacom_intuos_pad()

12