Lines Matching refs:indices
25 static int get_bridge_ifindices(struct net *net, int *indices, int num) in get_bridge_ifindices() argument
34 indices[i++] = dev->ifindex; in get_bridge_ifindices()
160 int num, *indices; in old_dev_ioctl() local
170 indices = kcalloc(num, sizeof(int), GFP_KERNEL); in old_dev_ioctl()
171 if (indices == NULL) in old_dev_ioctl()
174 get_port_ifindices(br, indices, num); in old_dev_ioctl()
175 if (copy_to_user((void __user *)args[1], indices, num*sizeof(int))) in old_dev_ioctl()
177 kfree(indices); in old_dev_ioctl()
309 int *indices; in old_deviceless() local
314 indices = kcalloc(args[2], sizeof(int), GFP_KERNEL); in old_deviceless()
315 if (indices == NULL) in old_deviceless()
318 args[2] = get_bridge_ifindices(net, indices, args[2]); in old_deviceless()
320 ret = copy_to_user((void __user *)args[1], indices, args[2]*sizeof(int)) in old_deviceless()
323 kfree(indices); in old_deviceless()