Lines Matching refs:key_size
139 print_hex_data_json(key, info->key_size); in print_entry_json()
162 print_hex_data_json(key, info->key_size); in print_entry_json()
200 break_names = info->key_size > 16 || msg_size > 16; in print_entry_error_msg()
201 single_line = info->key_size + msg_size <= 24 && !break_names; in print_entry_error_msg()
204 fprint_hex(stdout, key, info->key_size, " "); in print_entry_error_msg()
227 print_hex_data_json(key, map_info->key_size); in print_entry_error()
253 break_names = info->key_size > 16 || info->value_size > 16; in print_entry_plain()
254 single_line = info->key_size + info->value_size <= 24 && in print_entry_plain()
257 if (info->key_size) { in print_entry_plain()
259 fprint_hex(stdout, key, info->key_size, " "); in print_entry_plain()
281 if (info->key_size) { in print_entry_plain()
283 fprint_hex(stdout, key, info->key_size, " "); in print_entry_plain()
341 void *key, void *value, __u32 key_size, __u32 value_size, in parse_elem() argument
353 if (key_size) in parse_elem()
360 argv = parse_bytes(argv + 1, "key", key, key_size); in parse_elem()
364 return parse_elem(argv, info, NULL, value, key_size, value_size, in parse_elem()
426 return parse_elem(argv, info, key, NULL, key_size, value_size, in parse_elem()
442 return parse_elem(argv + 1, info, key, value, key_size, in parse_elem()
482 jsonw_uint_field(json_wtr, "bytes_key", info->key_size); in show_map_close_json()
571 info->key_size, info->value_size, info->max_entries); in show_map_close_plain()
831 key = malloc(info->key_size); in map_dump()
967 if (info->key_size) { in alloc_key_value()
968 *key = malloc(info->key_size); in alloc_key_value()
1008 err = parse_elem(argv, &info, key, value, info.key_size, in do_update()
1087 err = parse_elem(argv, &info, key, NULL, info.key_size, 0, NULL, NULL); in do_lookup()
1098 fprint_hex(stdout, key, info.key_size, " "); in do_lookup()
1134 key = malloc(info.key_size); in do_getnext()
1135 nextkey = malloc(info.key_size); in do_getnext()
1143 err = parse_elem(argv, &info, key, NULL, info.key_size, 0, in do_getnext()
1162 print_hex_data_json(key, info.key_size); in do_getnext()
1167 print_hex_data_json(nextkey, info.key_size); in do_getnext()
1172 fprint_hex(stdout, key, info.key_size, " "); in do_getnext()
1178 fprint_hex(stdout, nextkey, info.key_size, " "); in do_getnext()
1205 key = malloc(info.key_size); in do_delete()
1212 err = parse_elem(argv, &info, key, NULL, info.key_size, 0, NULL, NULL); in do_delete()
1243 __u32 key_size = 0, value_size = 0, max_entries = 0; in do_create() local
1274 if (parse_u32_arg(&argc, &argv, &key_size, in do_create()
1335 fd = bpf_map_create(map_type, map_name, key_size, value_size, max_entries, &attr); in do_create()