Lines Matching refs:indices
21 static int get_bridge_ifindices(struct net *net, int *indices, int num) in get_bridge_ifindices() argument
31 indices[i++] = dev->ifindex; in get_bridge_ifindices()
197 int num, *indices; in br_dev_siocdevprivate() local
207 indices = kcalloc(num, sizeof(int), GFP_KERNEL); in br_dev_siocdevprivate()
208 if (indices == NULL) in br_dev_siocdevprivate()
211 get_port_ifindices(br, indices, num); in br_dev_siocdevprivate()
212 if (copy_to_user(argp, indices, array_size(num, sizeof(int)))) in br_dev_siocdevprivate()
214 kfree(indices); in br_dev_siocdevprivate()
355 int *indices; in old_deviceless() local
360 indices = kcalloc(args[2], sizeof(int), GFP_KERNEL); in old_deviceless()
361 if (indices == NULL) in old_deviceless()
364 args[2] = get_bridge_ifindices(net, indices, args[2]); in old_deviceless()
366 ret = copy_to_user(argp, indices, in old_deviceless()
370 kfree(indices); in old_deviceless()