Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api_debugfs.c25 const struct vcap_field *keyfield, in vcap_debugfs_show_rule_keyfield() argument
33 keyfield[key].width); in vcap_debugfs_show_rule_keyfield()
35 switch (keyfield[key].type) { in vcap_debugfs_show_rule_keyfield()
51 u32 fmsk = (1 << keyfield[key].width) - 1; in vcap_debugfs_show_rule_keyfield()
53 if (keyfield[key].width == 32) in vcap_debugfs_show_rule_keyfield()
105 bytes = DIV_ROUND_UP(keyfield[key].width, BITS_PER_BYTE); in vcap_debugfs_show_rule_keyfield()
196 const struct vcap_field *keyfield; in vcap_debugfs_show_rule_keyset() local
204 keyfield = vcap_keyfields(vctrl, admin->vtype, ri->data.keyset); in vcap_debugfs_show_rule_keyset()
206 keyfield, &ckf->data); in vcap_debugfs_show_rule_keyset()
H A Dvcap_api.c1306 const struct vcap_field *keyfield, in vcap_rule_alloc_keyfield() argument
1317 field->ctrl.type = keyfield->type; in vcap_rule_alloc_keyfield()
1480 const struct vcap_field *keyfield; in vcap_decode_keyset() local
1505 keyfield = vcap_keyfields(vctrl, vt, keyset); in vcap_decode_keyset()
1509 if (keyfield[idx].width <= 0) in vcap_decode_keyset()
1512 memset(mask, 0, DIV_ROUND_UP(keyfield[idx].width, 8)); in vcap_decode_keyset()
1514 keyfield[idx].offset); in vcap_decode_keyset()
1518 if (vcap_bitarray_zero(keyfield[idx].width, mask)) in vcap_decode_keyset()
1521 memset(value, 0, DIV_ROUND_UP(keyfield[idx].width, 8)); in vcap_decode_keyset()
1523 keyfield[idx].offset); in vcap_decode_keyset()
[all …]