Home
last modified time | relevance | path

Searched refs:hmm_device (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/mm/
Dhmm.c1356 struct hmm_device *hmm_device; in hmm_device_release() local
1358 hmm_device = container_of(device, struct hmm_device, device); in hmm_device_release()
1360 clear_bit(hmm_device->minor, hmm_device_mask); in hmm_device_release()
1363 kfree(hmm_device); in hmm_device_release()
1366 struct hmm_device *hmm_device_new(void *drvdata) in hmm_device_new()
1368 struct hmm_device *hmm_device; in hmm_device_new() local
1370 hmm_device = kzalloc(sizeof(*hmm_device), GFP_KERNEL); in hmm_device_new()
1371 if (!hmm_device) in hmm_device_new()
1375 hmm_device->minor = find_first_zero_bit(hmm_device_mask, HMM_DEVICE_MAX); in hmm_device_new()
1376 if (hmm_device->minor >= HMM_DEVICE_MAX) { in hmm_device_new()
[all …]
/Linux-v4.19/include/linux/
Dhmm.h546 struct hmm_device { struct
556 struct hmm_device *hmm_device_new(void *drvdata);
557 void hmm_device_put(struct hmm_device *hmm_device);