Searched refs:hmm_dmirror_cmd (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/lib/ |
D | test_hmm_uapi.h | 23 struct hmm_dmirror_cmd { struct 32 #define HMM_DMIRROR_READ _IOWR('H', 0x00, struct hmm_dmirror_cmd) argument 33 #define HMM_DMIRROR_WRITE _IOWR('H', 0x01, struct hmm_dmirror_cmd) 34 #define HMM_DMIRROR_MIGRATE_TO_DEV _IOWR('H', 0x02, struct hmm_dmirror_cmd) 35 #define HMM_DMIRROR_MIGRATE_TO_SYS _IOWR('H', 0x03, struct hmm_dmirror_cmd) 36 #define HMM_DMIRROR_SNAPSHOT _IOWR('H', 0x04, struct hmm_dmirror_cmd) 37 #define HMM_DMIRROR_EXCLUSIVE _IOWR('H', 0x05, struct hmm_dmirror_cmd) 38 #define HMM_DMIRROR_CHECK_EXCLUSIVE _IOWR('H', 0x06, struct hmm_dmirror_cmd) 39 #define HMM_DMIRROR_RELEASE _IOWR('H', 0x07, struct hmm_dmirror_cmd)
|
D | test_hmm.c | 389 static int dmirror_read(struct dmirror *dmirror, struct hmm_dmirror_cmd *cmd) in dmirror_read() 458 static int dmirror_write(struct dmirror *dmirror, struct hmm_dmirror_cmd *cmd) in dmirror_write() 784 struct hmm_dmirror_cmd *cmd) in dmirror_exclusive() 907 struct hmm_dmirror_cmd *cmd) in dmirror_migrate_to_system() 967 struct hmm_dmirror_cmd *cmd) in dmirror_migrate_to_device() 1171 struct hmm_dmirror_cmd *cmd) in dmirror_snapshot() 1310 struct hmm_dmirror_cmd cmd; in dmirror_fops_unlocked_ioctl()
|
/linux-6.1.9/tools/testing/selftests/vm/ |
D | hmm-tests.c | 173 static int hmm_dmirror_cmd(int fd, in hmm_dmirror_cmd() function 178 struct hmm_dmirror_cmd cmd; in hmm_dmirror_cmd() 267 return hmm_dmirror_cmd(fd, HMM_DMIRROR_MIGRATE_TO_DEV, buffer, npages); in hmm_migrate_sys_to_dev() 274 return hmm_dmirror_cmd(fd, HMM_DMIRROR_MIGRATE_TO_SYS, buffer, npages); in hmm_migrate_dev_to_sys() 332 ret = hmm_dmirror_cmd(self->fd, HMM_DMIRROR_READ, buffer, npages); in TEST_F() 391 ret = hmm_dmirror_cmd(self->fd, HMM_DMIRROR_READ, buffer, npages); in TEST_F() 442 ret = hmm_dmirror_cmd(self->fd, HMM_DMIRROR_WRITE, buffer, npages); in TEST_F() 486 ret = hmm_dmirror_cmd(self->fd, HMM_DMIRROR_READ, buffer, 1); in TEST_F() 496 ret = hmm_dmirror_cmd(self->fd, HMM_DMIRROR_WRITE, buffer, npages); in TEST_F() 508 ret = hmm_dmirror_cmd(self->fd, HMM_DMIRROR_WRITE, buffer, npages); in TEST_F() [all …]
|