Home
last modified time | relevance | path

Searched refs:account_mode (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/iommu/iommufd/
H A Dioas.c442 switch (pages->account_mode) { in need_charge_update()
465 unsigned int account_mode; in charge_current() local
468 for (account_mode = 0; account_mode != IOPT_PAGES_ACCOUNT_MODE_NUM; in charge_current()
469 account_mode++) { in charge_current()
470 if (!npinned[account_mode]) in charge_current()
473 tmp.account_mode = account_mode; in charge_current()
474 rc = iopt_pages_update_pinned(&tmp, npinned[account_mode], true, in charge_current()
482 while (account_mode != 0) { in charge_current()
483 account_mode--; in charge_current()
484 if (!npinned[account_mode]) in charge_current()
[all …]
H A Dio_pagetable.h242 u8 account_mode; member
H A Dio_pagetable.c419 if (ictx->account_mode == IOPT_PAGES_ACCOUNT_MM && in iopt_map_common()
420 elm.pages->account_mode == IOPT_PAGES_ACCOUNT_USER) in iopt_map_common()
421 elm.pages->account_mode = IOPT_PAGES_ACCOUNT_MM; in iopt_map_common()
H A Dpages.c1016 switch (pages->account_mode) { in iopt_pages_update_pinned()
1389 pages->account_mode = IOPT_PAGES_ACCOUNT_NONE; in iopt_alloc_pages()
1391 pages->account_mode = IOPT_PAGES_ACCOUNT_USER; in iopt_alloc_pages()
1551 pages->account_mode = IOPT_PAGES_ACCOUNT_NONE; in iopt_alloc_dmabuf_pages()
H A Diommufd_private.h55 u8 account_mode; member
H A Dmain.c309 ictx->account_mode = IOPT_PAGES_ACCOUNT_MM; in iommufd_fops_open()