tag | line | file | source code |
ioc | 2497 | drivers/net/de4x5.c | struct de4x5_ioctl *ioc = (struct de4x5_ioctl *) &rq->ifr_data; |
ioc | 2507 | drivers/net/de4x5.c | switch(ioc->cmd) { |
ioc | 2509 | drivers/net/de4x5.c | ioc->len = ETH_ALEN; |
ioc | 2510 | drivers/net/de4x5.c | status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len); |
ioc | 2516 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
ioc | 2520 | drivers/net/de4x5.c | status = verify_area(VERIFY_READ, (void *)ioc->data, ETH_ALEN); |
ioc | 2527 | drivers/net/de4x5.c | memcpy_fromfs(tmp.addr, ioc->data, ETH_ALEN); |
ioc | 2571 | drivers/net/de4x5.c | ioc->len = (HASH_TABLE_LEN >> 3); |
ioc | 2572 | drivers/net/de4x5.c | status = verify_area(VERIFY_WRITE, ioc->data, ioc->len); |
ioc | 2575 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, lp->setup_frame, ioc->len); |
ioc | 2580 | drivers/net/de4x5.c | if (ioc->len != HASH_TABLE_LEN) { /* MCA changes */ |
ioc | 2581 | drivers/net/de4x5.c | if (!(status = verify_area(VERIFY_READ, (void *)ioc->data, ETH_ALEN * ioc->len))) { |
ioc | 2582 | drivers/net/de4x5.c | memcpy_fromfs(tmp.addr, ioc->data, ETH_ALEN * ioc->len); |
ioc | 2612 | drivers/net/de4x5.c | ioc->len = sizeof(lp->pktStats); |
ioc | 2613 | drivers/net/de4x5.c | status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len); |
ioc | 2618 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, &lp->pktStats, ioc->len); |
ioc | 2634 | drivers/net/de4x5.c | if (!(status = verify_area(VERIFY_WRITE, (void *)ioc->data, 1))) { |
ioc | 2635 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, tmp.addr, 1); |
ioc | 2641 | drivers/net/de4x5.c | if (!(status = verify_area(VERIFY_READ, (void *)ioc->data, 1))) { |
ioc | 2642 | drivers/net/de4x5.c | memcpy_fromfs(tmp.addr, ioc->data, 1); |
ioc | 2660 | drivers/net/de4x5.c | ioc->len = j; |
ioc | 2661 | drivers/net/de4x5.c | if (!(status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len))) { |
ioc | 2662 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
ioc | 2723 | drivers/net/de4x5.c | ioc->len = j; |
ioc | 2724 | drivers/net/de4x5.c | if (!(status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len))) { |
ioc | 2725 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
ioc | 1699 | drivers/net/depca.c | struct depca_ioctl *ioc = (struct depca_ioctl *) &rq->ifr_data; |
ioc | 1708 | drivers/net/depca.c | switch(ioc->cmd) { |
ioc | 1713 | drivers/net/depca.c | ioc->len = ETH_ALEN; |
ioc | 1714 | drivers/net/depca.c | if (!(status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len))) { |
ioc | 1715 | drivers/net/depca.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
ioc | 1721 | drivers/net/depca.c | if (!(status = verify_area(VERIFY_READ, (void *)ioc->data, ETH_ALEN))) { |
ioc | 1722 | drivers/net/depca.c | memcpy_fromfs(tmp.addr,ioc->data,ETH_ALEN); |
ioc | 1782 | drivers/net/depca.c | ioc->len = (HASH_TABLE_LEN >> 3); |
ioc | 1783 | drivers/net/depca.c | if (!(status = verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
ioc | 1784 | drivers/net/depca.c | memcpy_tofs(ioc->data, lp->init_block.mcast_table, ioc->len); |
ioc | 1790 | drivers/net/depca.c | if (!(status=verify_area(VERIFY_READ, ioc->data, ETH_ALEN*ioc->len))) { |
ioc | 1791 | drivers/net/depca.c | memcpy_fromfs(tmp.addr, ioc->data, ETH_ALEN * ioc->len); |
ioc | 1817 | drivers/net/depca.c | ioc->len = sizeof(lp->pktStats); |
ioc | 1818 | drivers/net/depca.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
ioc | 1819 | drivers/net/depca.c | memcpy_tofs(ioc->data, &lp->pktStats, ioc->len); |
ioc | 1840 | drivers/net/depca.c | ioc->len = i+sizeof(struct depca_init); |
ioc | 1841 | drivers/net/depca.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
ioc | 1842 | drivers/net/depca.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
ioc | 1673 | drivers/net/ewrk3.c | struct ewrk3_ioctl *ioc = (struct ewrk3_ioctl *) &rq->ifr_data; |
ioc | 1682 | drivers/net/ewrk3.c | switch(ioc->cmd) { |
ioc | 1687 | drivers/net/ewrk3.c | ioc->len = ETH_ALEN; |
ioc | 1688 | drivers/net/ewrk3.c | if (!(status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len))) { |
ioc | 1689 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
ioc | 1695 | drivers/net/ewrk3.c | if (!(status = verify_area(VERIFY_READ, (void *)ioc->data, ETH_ALEN))) { |
ioc | 1700 | drivers/net/ewrk3.c | memcpy_fromfs(tmp.addr,ioc->data,ETH_ALEN); |
ioc | 1740 | drivers/net/ewrk3.c | if (!(status = verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
ioc | 1752 | drivers/net/ewrk3.c | ioc->len = (HASH_TABLE_LEN >> 3); |
ioc | 1753 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
ioc | 1760 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_READ, ioc->data, ETH_ALEN*ioc->len))) { |
ioc | 1761 | drivers/net/ewrk3.c | memcpy_fromfs(tmp.addr, ioc->data, ETH_ALEN * ioc->len); |
ioc | 1790 | drivers/net/ewrk3.c | ioc->len = sizeof(lp->pktStats); |
ioc | 1791 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
ioc | 1792 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, &lp->pktStats, ioc->len); |
ioc | 1809 | drivers/net/ewrk3.c | ioc->len = 1; |
ioc | 1810 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
ioc | 1811 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
ioc | 1817 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_READ, ioc->data, 1))) { |
ioc | 1818 | drivers/net/ewrk3.c | memcpy_fromfs(tmp.addr, ioc->data, 1); |
ioc | 1836 | drivers/net/ewrk3.c | ioc->len = EEPROM_MAX + 1 + ETH_ALEN; |
ioc | 1837 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
ioc | 1838 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
ioc | 1847 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_READ, ioc->data, EEPROM_MAX))) { |
ioc | 1848 | drivers/net/ewrk3.c | memcpy_fromfs(tmp.addr, ioc->data, EEPROM_MAX); |
ioc | 1860 | drivers/net/ewrk3.c | ioc->len = 1; |
ioc | 1861 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
ioc | 1862 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |