Home
last modified time | relevance | path

Searched refs:key_val (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.10/drivers/crypto/qat/qat_common/
Dadf_cfg.c222 struct adf_cfg_key_val *key_val; in adf_cfg_add_key_value_param() local
228 key_val = kzalloc(sizeof(*key_val), GFP_KERNEL); in adf_cfg_add_key_value_param()
229 if (!key_val) in adf_cfg_add_key_value_param()
232 INIT_LIST_HEAD(&key_val->list); in adf_cfg_add_key_value_param()
233 strlcpy(key_val->key, key, sizeof(key_val->key)); in adf_cfg_add_key_value_param()
236 snprintf(key_val->val, ADF_CFG_MAX_VAL_LEN_IN_BYTES, in adf_cfg_add_key_value_param()
239 strlcpy(key_val->val, (char *)val, sizeof(key_val->val)); in adf_cfg_add_key_value_param()
241 snprintf(key_val->val, ADF_CFG_MAX_VAL_LEN_IN_BYTES, in adf_cfg_add_key_value_param()
245 kfree(key_val); in adf_cfg_add_key_value_param()
248 key_val->type = type; in adf_cfg_add_key_value_param()
[all …]
Dadf_ctl_drv.c109 const struct adf_user_cfg_key_val *key_val) in adf_add_key_value_data() argument
111 if (key_val->type == ADF_HEX) { in adf_add_key_value_data()
112 long *ptr = (long *)key_val->val; in adf_add_key_value_data()
116 key_val->key, (void *)val, in adf_add_key_value_data()
117 key_val->type)) { in adf_add_key_value_data()
124 key_val->key, key_val->val, in adf_add_key_value_data()
125 key_val->type)) { in adf_add_key_value_data()
137 struct adf_user_cfg_key_val key_val; in adf_copy_key_value_data() local
160 if (copy_from_user(&key_val, (void __user *)params_head, in adf_copy_key_value_data()
161 sizeof(key_val))) { in adf_copy_key_value_data()
[all …]
/Linux-v5.10/drivers/input/keyboard/
Dmcs_touchkey.c50 unsigned int key_val; member
60 unsigned int key_val; in mcs_touchkey_interrupt() local
76 key_val = val & (0xff >> (8 - chip->pressbit)); in mcs_touchkey_interrupt()
77 if (!key_val) in mcs_touchkey_interrupt()
79 key_val -= chip->baseval; in mcs_touchkey_interrupt()
80 data->key_code = data->keycodes[key_val]; in mcs_touchkey_interrupt()
81 data->key_val = key_val; in mcs_touchkey_interrupt()
84 input_event(input, EV_MSC, MSC_SCAN, data->key_val); in mcs_touchkey_interrupt()
88 dev_dbg(&client->dev, "key %d %d %s\n", data->key_val, data->key_code, in mcs_touchkey_interrupt()
Dmpr121_touchkey.c148 unsigned int key_val, pressed; in mpr_touchkey_report() local
151 key_val = mpr121->keycodes[key_num]; in mpr_touchkey_report()
154 input_report_key(input, key_val, pressed); in mpr_touchkey_report()
156 dev_dbg(&client->dev, "key %d %d %s\n", key_num, key_val, in mpr_touchkey_report()
Dadp5588-keys.c273 int key_val = key & KEY_EV_MASK; in adp5588_report_events() local
275 if (key_val >= GPI_PIN_BASE && key_val <= GPI_PIN_END) { in adp5588_report_events()
277 if (key_val == kpad->gpimap[j].pin) { in adp5588_report_events()
286 kpad->keycode[key_val - 1], in adp5588_report_events()
Dadp5589-keys.c585 int key, int key_val) in adp5589_report_switches() argument
590 if (key_val == kpad->gpimap[i].pin) { in adp5589_report_switches()
605 int key_val = key & KEY_EV_MASK; in adp5589_report_events() local
607 if (key_val >= kpad->var->gpi_pin_base && in adp5589_report_events()
608 key_val <= kpad->var->gpi_pin_end) { in adp5589_report_events()
609 adp5589_report_switches(kpad, key, key_val); in adp5589_report_events()
612 kpad->keycode[key_val - 1], in adp5589_report_events()
/Linux-v5.10/net/sched/
Dcls_flower.c795 struct flow_dissector_key_mpls *key_val, in fl_set_key_mpls_lse() argument
829 dissector_set_mpls_lse(key_val, lse_index); in fl_set_key_mpls_lse()
832 lse_val = &key_val->ls[lse_index]; in fl_set_key_mpls_lse()
880 struct flow_dissector_key_mpls *key_val, in fl_set_key_mpls_opts() argument
901 err = fl_set_key_mpls_lse(nla_lse, key_val, key_mask, extack); in fl_set_key_mpls_opts()
915 struct flow_dissector_key_mpls *key_val, in fl_set_key_mpls() argument
934 key_val, key_mask, extack); in fl_set_key_mpls()
937 lse_val = &key_val->ls[0]; in fl_set_key_mpls()
943 dissector_set_mpls_lse(key_val, 0); in fl_set_key_mpls()
957 dissector_set_mpls_lse(key_val, 0); in fl_set_key_mpls()
[all …]
/Linux-v5.10/drivers/staging/ks7010/
Dks_wlan.h323 u8 key_val[IW_ENCODING_TOKEN_MAX]; member
Dks_hostif.c1982 &priv->wpa.key[0].key_val[0], in hostif_sme_set_key()
1988 &priv->wpa.key[1].key_val[0], in hostif_sme_set_key()
1994 &priv->wpa.key[2].key_val[0], in hostif_sme_set_key()
2000 &priv->wpa.key[3].key_val[0], in hostif_sme_set_key()
Dks_wlan_net.c1585 memcpy(&key->key_val[0], &enc->key[0], enc->key_len); in ks_wlan_set_encode_ext()
1596 memcpy(&key->key_val[0], &enc->key[0], enc->key_len - 16); in ks_wlan_set_encode_ext()