Lines Matching refs:num_hops
109 size_t num_hops; in tb_path_discover() local
127 num_hops = 0; in tb_path_discover()
148 num_hops++; in tb_path_discover()
157 path->path_length = num_hops; in tb_path_discover()
160 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_discover()
169 for (i = 0; i < num_hops; i++) { in tb_path_discover()
235 size_t num_hops; in tb_path_alloc() local
258 num_hops = i / 2; in tb_path_alloc()
260 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_alloc()
269 for (i = 0; i < num_hops; i++) { in tb_path_alloc()
310 if (i == num_hops - 1) in tb_path_alloc()
330 path->path_length = num_hops; in tb_path_alloc()