Lines Matching defs:req

41 #include <sys/conf.h>		/* req. by dev_ops flags MTSAFE etc. */
1707 iosram_io_t req;
1710 if (ddi_copyin((void *)arg, &req, sizeof (req), mode)) {
1714 DPRINTF(2, ("IOSRAM_GET_FLAG(key:%x\n", req.key));
1716 req.retval = iosram_get_flag(req.key, &data_valid,
1718 req.data_valid = (uint32_t)data_valid;
1719 req.int_pending = (uint32_t)int_pending;
1721 if (ddi_copyout(&req, (void *)arg, sizeof (req), mode)) {
1723 ("IOSRAM_GET_FLAG: can't copyout req.retval (%x)",
1724 req.retval));
1733 iosram_io_t req;
1735 if (ddi_copyin((void *)arg, &req, sizeof (req), mode)) {
1740 "int_pending:%x\n", req.key, req.data_valid,
1741 req.int_pending));
1743 req.retval = iosram_set_flag(req.key, req.data_valid,
1744 req.int_pending);
1746 if (ddi_copyout(&req, (void *)arg, sizeof (req), mode)) {
1747 DPRINTF(1, ("IOSRAM_SET_FLAG: can't copyout req.retval"
1748 " (%x)\n", req.retval));
1759 iosram_io_t req;
1761 if (ddi_copyin((void *)arg, &req, sizeof (req), mode)) {
1765 DPRINTF(2, ("IOSRAM_RD(k:%x o:%x len:%x bufp:%p\n", req.key,
1766 req.off, req.len, (void *)(uintptr_t)req.bufp));
1768 len = req.len;
1771 req.retval = iosram_rd(req.key, req.off, req.len, bufp);
1773 if (ddi_copyout(bufp, (void *)(uintptr_t)req.bufp, len, mode)) {
1775 (void *)bufp, (void *)(uintptr_t)req.bufp, len,
1778 } else if (ddi_copyout(&req, (void *)arg, sizeof (req), mode)) {
1780 req.retval));
1791 iosram_io_t req;
1794 if (ddi_copyin((void *)arg, &req, sizeof (req), mode)) {
1799 req.key, req.off, req.len, (void *)(uintptr_t)req.bufp));
1800 len = req.len;
1802 if (ddi_copyin((void *)(uintptr_t)req.bufp, bufp, len, mode)) {
1805 req.retval = iosram_wr(req.key, req.off, req.len,
1808 if (ddi_copyout(&req, (void *)arg, sizeof (req),
1821 iosram_io_t req;
1823 if (ddi_copyin((void *)arg, &req, sizeof (req), mode)) {
1827 DPRINTF(2, ("IOSRAM_TOC (req.bufp:%x req.len:%x) \n",
1828 req.bufp, req.len));
1830 len = req.len;
1833 req.retval = iosram_get_keys((iosram_toc_entry_t *)bufp,
1834 &req.len);
1836 if (ddi_copyout(bufp, (void *)(uintptr_t)req.bufp, req.len,
1840 (void *)bufp, (void *)(uintptr_t)req.bufp, req.len,
1843 } else if (ddi_copyout(&req, (void *)arg, sizeof (req), mode)) {
1845 req.retval));
1908 iosram_io_t req;
1910 if (ddi_copyin((void *)arg, &req, sizeof (req), mode)) {
1914 DPRINTF(2, ("IOSRAM_REG_CBACK(k:%x)\n", req.key));
1916 req.retval = iosram_register(req.key, iosram_dummy_cback,
1917 (void *)(uintptr_t)req.key);
1918 if (ddi_copyout(&req, (void *)arg, sizeof (req), mode)) {
1927 iosram_io_t req;
1929 if (ddi_copyin((void *)arg, &req, sizeof (req), mode)) {
1933 DPRINTF(2, ("IOSRAM_REG_CBACK(k:%x)\n", req.key));
1935 req.retval = iosram_unregister(req.key);
1936 if (ddi_copyout(&req, (void *)arg, sizeof (req), mode)) {