Home
last modified time | relevance | path

Searched refs:udata (Results 1 – 2 of 2) sorted by relevance

/net/bluetooth/hidp/
Dcore.c177 unsigned char *udata = skb->data + 1; in hidp_input_report() local
184 input_report_key(dev, hidp_keycode[i + 224], (udata[0] >> i) & 1); in hidp_input_report()
188 if (!memcmp(udata + 2, hidp_mkeyspat, 6)) in hidp_input_report()
192 if (keys[i] > 3 && memscan(udata + 2, keys[i], 6) == udata + 8) { in hidp_input_report()
199 if (udata[i] > 3 && memscan(keys + 2, udata[i], 6) == keys + 8) { in hidp_input_report()
200 if (hidp_keycode[udata[i]]) in hidp_input_report()
201 input_report_key(dev, hidp_keycode[udata[i]], 1); in hidp_input_report()
203 BT_ERR("Unknown key (scancode %#x) pressed.", udata[i]); in hidp_input_report()
207 memcpy(keys, udata, 8); in hidp_input_report()
/net/netfilter/
Dnf_tables_api.c1870 if (rule->udata) { in nf_tables_fill_rule_info()
1871 struct nft_userdata *udata = nft_userdata(rule); in nf_tables_fill_rule_info() local
1872 if (nla_put(skb, NFTA_RULE_USERDATA, udata->len + 1, in nf_tables_fill_rule_info()
1873 udata->data) < 0) in nf_tables_fill_rule_info()
2092 struct nft_userdata *udata; in nf_tables_newrule() local
2185 rule->udata = ulen ? 1 : 0; in nf_tables_newrule()
2188 udata = nft_userdata(rule); in nf_tables_newrule()
2189 udata->len = ulen - 1; in nf_tables_newrule()
2190 nla_memcpy(udata->data, nla[NFTA_RULE_USERDATA], ulen); in nf_tables_newrule()
2586 if (nla_put(skb, NFTA_SET_USERDATA, set->udlen, set->udata)) in nf_tables_fill_set()
[all …]