Home
last modified time | relevance | path

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

/linux/drivers/iommu/iommufd/
H A Dioas.c444 switch (pages->account_mode) { in need_charge_update()
467 unsigned int account_mode; in charge_current() local
470 for (account_mode = 0; account_mode != IOPT_PAGES_ACCOUNT_MODE_NUM; in charge_current()
471 account_mode++) { in charge_current()
472 if (!npinned[account_mode]) in charge_current()
475 tmp.account_mode = account_mode; in charge_current()
476 rc = iopt_pages_update_pinned(&tmp, npinned[account_mode], true, in charge_current()
484 while (account_mode != 0) { in charge_current()
485 account_mode--; in charge_current()
486 if (!npinned[account_mode]) in charge_current()
[all …]
H A Dio_pagetable.h213 u8 account_mode; member
H A Dio_pagetable.c405 if (ictx->account_mode == IOPT_PAGES_ACCOUNT_MM && in iopt_map_common()
406 elm.pages->account_mode == IOPT_PAGES_ACCOUNT_USER) in iopt_map_common()
407 elm.pages->account_mode = IOPT_PAGES_ACCOUNT_MM; in iopt_map_common()
H A Dmain.c221 ictx->account_mode = IOPT_PAGES_ACCOUNT_MM; in iommufd_fops_open()
H A Dpages.c993 switch (pages->account_mode) { in iopt_pages_update_pinned()
1316 pages->account_mode = IOPT_PAGES_ACCOUNT_NONE; in iopt_alloc_pages()
1318 pages->account_mode = IOPT_PAGES_ACCOUNT_USER; in iopt_alloc_pages()