Lines Matching refs:ifr

150 	struct ifreq *ifr;  in dev_ifconf()  local
169 ifr = ifc.ifc_req; in dev_ifconf()
173 if (copy_from_user(ifr++, ifr32++, sizeof (struct ifreq32))) { in dev_ifconf()
186 ifr = ifc.ifc_req; in dev_ifconf()
192 if (copy_to_user(ifr32++, ifr++, sizeof (struct ifreq32))) { in dev_ifconf()
210 struct ifreq ifr; in bond_ioctl() local
215 if (copy_from_user(&ifr, (struct ifreq32 *)arg, sizeof(struct ifreq32))) in bond_ioctl()
217 ifr.ifr_data = (__kernel_caddr_t)get_free_page(GFP_KERNEL); in bond_ioctl()
218 if (!ifr.ifr_data) in bond_ioctl()
240 if (copy_from_user(ifr.ifr_data, (char *)A(data), len)) { in bond_ioctl()
247 err = sys_ioctl (fd, cmd, (unsigned long)&ifr); in bond_ioctl()
250 len = copy_to_user((char *)A(data), ifr.ifr_data, len); in bond_ioctl()
256 free_page((unsigned long)ifr.ifr_data); in bond_ioctl()
264 struct ifreq ifr; in dev_ifsioc() local
270 err = copy_from_user(&ifr, uifr, sizeof(ifr.ifr_name)); in dev_ifsioc()
271 err |= __get_user(ifr.ifr_map.mem_start, &(uifr->ifr_ifru.ifru_map.mem_start)); in dev_ifsioc()
272 err |= __get_user(ifr.ifr_map.mem_end, &(uifr->ifr_ifru.ifru_map.mem_end)); in dev_ifsioc()
273 err |= __get_user(ifr.ifr_map.base_addr, &(uifr->ifr_ifru.ifru_map.base_addr)); in dev_ifsioc()
274 err |= __get_user(ifr.ifr_map.irq, &(uifr->ifr_ifru.ifru_map.irq)); in dev_ifsioc()
275 err |= __get_user(ifr.ifr_map.dma, &(uifr->ifr_ifru.ifru_map.dma)); in dev_ifsioc()
276 err |= __get_user(ifr.ifr_map.port, &(uifr->ifr_ifru.ifru_map.port)); in dev_ifsioc()
281 if (copy_from_user(&ifr, uifr, sizeof(struct ifreq32))) in dev_ifsioc()
287 err = sys_ioctl (fd, cmd, (unsigned long)&ifr); in dev_ifsioc()
302 if (copy_to_user(uifr, &ifr, sizeof(struct ifreq32))) in dev_ifsioc()
306 err = copy_to_user(uifr, &ifr, sizeof(ifr.ifr_name)); in dev_ifsioc()
307 err |= __put_user(ifr.ifr_map.mem_start, &(uifr->ifr_ifru.ifru_map.mem_start)); in dev_ifsioc()
308 err |= __put_user(ifr.ifr_map.mem_end, &(uifr->ifr_ifru.ifru_map.mem_end)); in dev_ifsioc()
309 err |= __put_user(ifr.ifr_map.base_addr, &(uifr->ifr_ifru.ifru_map.base_addr)); in dev_ifsioc()
310 err |= __put_user(ifr.ifr_map.irq, &(uifr->ifr_ifru.ifru_map.irq)); in dev_ifsioc()
311 err |= __put_user(ifr.ifr_map.dma, &(uifr->ifr_ifru.ifru_map.dma)); in dev_ifsioc()
312 err |= __put_user(ifr.ifr_map.port, &(uifr->ifr_ifru.ifru_map.port)); in dev_ifsioc()