Lines Matching refs:val
51 #define STORE_LE16(addr, val) (*(u16 *)addr = val) argument
52 #define STORE_LE32(addr, val) (*(u32 *)addr = val) argument
792 u32 val; in mtty_read() local
794 ret = mdev_access(mdev_state, (u8 *)&val, sizeof(val), in mtty_read()
799 if (copy_to_user(buf, &val, sizeof(val))) in mtty_read()
804 u16 val; in mtty_read() local
806 ret = mdev_access(mdev_state, (u8 *)&val, sizeof(val), in mtty_read()
811 if (copy_to_user(buf, &val, sizeof(val))) in mtty_read()
816 u8 val; in mtty_read() local
818 ret = mdev_access(mdev_state, (u8 *)&val, sizeof(val), in mtty_read()
823 if (copy_to_user(buf, &val, sizeof(val))) in mtty_read()
853 u32 val; in mtty_write() local
855 if (copy_from_user(&val, buf, sizeof(val))) in mtty_write()
858 ret = mdev_access(mdev_state, (u8 *)&val, sizeof(val), in mtty_write()
865 u16 val; in mtty_write() local
867 if (copy_from_user(&val, buf, sizeof(val))) in mtty_write()
870 ret = mdev_access(mdev_state, (u8 *)&val, sizeof(val), in mtty_write()
877 u8 val; in mtty_write() local
879 if (copy_from_user(&val, buf, sizeof(val))) in mtty_write()
882 ret = mdev_access(mdev_state, (u8 *)&val, sizeof(val), in mtty_write()