Lines Matching refs:num_hops
111 size_t num_hops; in tb_path_discover() local
129 num_hops = 0; in tb_path_discover()
150 num_hops++; in tb_path_discover()
159 path->path_length = num_hops; in tb_path_discover()
163 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_discover()
175 for (i = 0; i < num_hops; i++) { in tb_path_discover()
245 size_t num_hops; in tb_path_alloc() local
268 num_hops = i / 2; in tb_path_alloc()
270 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_alloc()
281 for (i = 0; i < num_hops; i++) { in tb_path_alloc()
322 if (i == num_hops - 1) in tb_path_alloc()
342 path->path_length = num_hops; in tb_path_alloc()