Searched refs:new_types (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.4/tools/lib/bpf/ |
D | btf.c | 47 struct btf_type **new_types; in btf_add_type() local 56 new_types = realloc(btf->types, sizeof(*new_types) * new_size); in btf_add_type() 57 if (!new_types) in btf_add_type() 61 new_types[0] = &btf_void; in btf_add_type() 63 btf->types = new_types; in btf_add_type() 2685 struct btf_type **new_types; in btf_dedup_compact_types() local 2717 new_types = realloc(d->btf->types, in btf_dedup_compact_types() 2719 if (!new_types) in btf_dedup_compact_types() 2721 d->btf->types = new_types; in btf_dedup_compact_types()
|
/Linux-v5.4/kernel/bpf/ |
D | btf.c | 828 struct btf_type **new_types; in btf_add_type() local 840 new_types = kvcalloc(new_size, sizeof(*new_types), in btf_add_type() 842 if (!new_types) in btf_add_type() 846 new_types[0] = &btf_void; in btf_add_type() 848 memcpy(new_types, btf->types, in btf_add_type() 852 btf->types = new_types; in btf_add_type()
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/ |
D | main.c | 1182 enum mlx4_port_type new_types[MLX4_MAX_PORTS]; in __set_port_type() local 1221 mlx4_do_sense_ports(mdev, new_types, types); in __set_port_type() 1223 err = mlx4_check_port_params(mdev, new_types); in __set_port_type() 1233 err = mlx4_change_port_types(mdev, new_types); in __set_port_type()
|