tag | line | file | source code |
ioc | 3506 | drivers/net/de4x5.c | struct de4x5_ioctl *ioc = (struct de4x5_ioctl *) &rq->ifr_data; |
ioc | 3516 | drivers/net/de4x5.c | switch(ioc->cmd) { |
ioc | 3518 | drivers/net/de4x5.c | ioc->len = ETH_ALEN; |
ioc | 3519 | drivers/net/de4x5.c | status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len); |
ioc | 3525 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
ioc | 3529 | drivers/net/de4x5.c | status = verify_area(VERIFY_READ, (void *)ioc->data, ETH_ALEN); |
ioc | 3536 | drivers/net/de4x5.c | memcpy_fromfs(tmp.addr, ioc->data, ETH_ALEN); |
ioc | 3580 | drivers/net/de4x5.c | ioc->len = (HASH_TABLE_LEN >> 3); |
ioc | 3581 | drivers/net/de4x5.c | status = verify_area(VERIFY_WRITE, ioc->data, ioc->len); |
ioc | 3583 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, lp->setup_frame, ioc->len); |
ioc | 3590 | drivers/net/de4x5.c | if (ioc->len != HASH_TABLE_LEN) { /* MCA changes */ |
ioc | 3591 | drivers/net/de4x5.c | if (!(status = verify_area(VERIFY_READ, (void *)ioc->data, ETH_ALEN * ioc->len))) { |
ioc | 3592 | drivers/net/de4x5.c | memcpy_fromfs(tmp.addr, ioc->data, ETH_ALEN * ioc->len); |
ioc | 3623 | drivers/net/de4x5.c | ioc->len = sizeof(lp->pktStats); |
ioc | 3624 | drivers/net/de4x5.c | status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len); |
ioc | 3629 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, &lp->pktStats, ioc->len); |
ioc | 3645 | drivers/net/de4x5.c | if (!(status = verify_area(VERIFY_WRITE, (void *)ioc->data, 1))) { |
ioc | 3646 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, tmp.addr, 1); |
ioc | 3652 | drivers/net/de4x5.c | if (!(status = verify_area(VERIFY_READ, (void *)ioc->data, 1))) { |
ioc | 3653 | drivers/net/de4x5.c | memcpy_fromfs(tmp.addr, ioc->data, 1); |
ioc | 3671 | drivers/net/de4x5.c | ioc->len = j; |
ioc | 3672 | drivers/net/de4x5.c | if (!(status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len))) { |
ioc | 3673 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
ioc | 3762 | drivers/net/de4x5.c | ioc->len = j; |
ioc | 3763 | drivers/net/de4x5.c | if (!(status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len))) { |
ioc | 3764 | drivers/net/de4x5.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
ioc | 1702 | drivers/net/depca.c | struct depca_ioctl *ioc = (struct depca_ioctl *) &rq->ifr_data; |
ioc | 1711 | drivers/net/depca.c | switch(ioc->cmd) { |
ioc | 1716 | drivers/net/depca.c | ioc->len = ETH_ALEN; |
ioc | 1717 | drivers/net/depca.c | if (!(status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len))) { |
ioc | 1718 | drivers/net/depca.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
ioc | 1724 | drivers/net/depca.c | if (!(status = verify_area(VERIFY_READ, (void *)ioc->data, ETH_ALEN))) { |
ioc | 1725 | drivers/net/depca.c | memcpy_fromfs(tmp.addr,ioc->data,ETH_ALEN); |
ioc | 1785 | drivers/net/depca.c | ioc->len = (HASH_TABLE_LEN >> 3); |
ioc | 1786 | drivers/net/depca.c | if (!(status = verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
ioc | 1787 | drivers/net/depca.c | memcpy_tofs(ioc->data, lp->init_block.mcast_table, ioc->len); |
ioc | 1793 | drivers/net/depca.c | if (!(status=verify_area(VERIFY_READ, ioc->data, ETH_ALEN*ioc->len))) { |
ioc | 1794 | drivers/net/depca.c | memcpy_fromfs(tmp.addr, ioc->data, ETH_ALEN * ioc->len); |
ioc | 1820 | drivers/net/depca.c | ioc->len = sizeof(lp->pktStats); |
ioc | 1821 | drivers/net/depca.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
ioc | 1822 | drivers/net/depca.c | memcpy_tofs(ioc->data, &lp->pktStats, ioc->len); |
ioc | 1843 | drivers/net/depca.c | ioc->len = i+sizeof(struct depca_init); |
ioc | 1844 | drivers/net/depca.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
ioc | 1845 | drivers/net/depca.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
ioc | 1675 | drivers/net/ewrk3.c | struct ewrk3_ioctl *ioc = (struct ewrk3_ioctl *) &rq->ifr_data; |
ioc | 1684 | drivers/net/ewrk3.c | switch(ioc->cmd) { |
ioc | 1689 | drivers/net/ewrk3.c | ioc->len = ETH_ALEN; |
ioc | 1690 | drivers/net/ewrk3.c | if (!(status = verify_area(VERIFY_WRITE, (void *)ioc->data, ioc->len))) { |
ioc | 1691 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
ioc | 1697 | drivers/net/ewrk3.c | if (!(status = verify_area(VERIFY_READ, (void *)ioc->data, ETH_ALEN))) { |
ioc | 1702 | drivers/net/ewrk3.c | memcpy_fromfs(tmp.addr,ioc->data,ETH_ALEN); |
ioc | 1742 | drivers/net/ewrk3.c | if (!(status = verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
ioc | 1754 | drivers/net/ewrk3.c | ioc->len = (HASH_TABLE_LEN >> 3); |
ioc | 1755 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
ioc | 1762 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_READ, ioc->data, ETH_ALEN*ioc->len))) { |
ioc | 1763 | drivers/net/ewrk3.c | memcpy_fromfs(tmp.addr, ioc->data, ETH_ALEN * ioc->len); |
ioc | 1792 | drivers/net/ewrk3.c | ioc->len = sizeof(lp->pktStats); |
ioc | 1793 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
ioc | 1794 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, &lp->pktStats, ioc->len); |
ioc | 1811 | drivers/net/ewrk3.c | ioc->len = 1; |
ioc | 1812 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
ioc | 1813 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
ioc | 1819 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_READ, ioc->data, 1))) { |
ioc | 1820 | drivers/net/ewrk3.c | memcpy_fromfs(tmp.addr, ioc->data, 1); |
ioc | 1838 | drivers/net/ewrk3.c | ioc->len = EEPROM_MAX + 1 + ETH_ALEN; |
ioc | 1839 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
ioc | 1840 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |
ioc | 1849 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_READ, ioc->data, EEPROM_MAX))) { |
ioc | 1850 | drivers/net/ewrk3.c | memcpy_fromfs(tmp.addr, ioc->data, EEPROM_MAX); |
ioc | 1862 | drivers/net/ewrk3.c | ioc->len = 1; |
ioc | 1863 | drivers/net/ewrk3.c | if (!(status=verify_area(VERIFY_WRITE, ioc->data, ioc->len))) { |
ioc | 1864 | drivers/net/ewrk3.c | memcpy_tofs(ioc->data, tmp.addr, ioc->len); |