Home
last modified time | relevance | path

Searched refs:page_num (Results 1 – 25 of 34) sorted by relevance

12

/linux-6.1.9/tools/vm/
Dpage_owner_sort.c39 int page_num; member
146 return l1->page_num - l2->page_num; in compare_page_num()
503 list[list_size-1].page_num += get_page_num(buf); in add_list()
524 list[list_size].page_num = get_page_num(buf); in add_list()
832 list[count-1].page_num += list[i].page_num; in main()
840 fprintf(fout, "%d times, %d pages, ", list[i].num, list[i].page_num); in main()
846 list[i].num, list[i].page_num); in main()
/linux-6.1.9/drivers/mfd/
Dda9063-i2c.c52 u8 page_num, paged_addr; in da9063_i2c_blockreg_read() local
56 page_num = (addr / DA9063_REG_PAGE_SIZE); in da9063_i2c_blockreg_read()
57 if (page_num > 1) { in da9063_i2c_blockreg_read()
65 (page_num << DA9063_I2C_PAGE_SEL_SHIFT) & DA9063_REG_PAGE_MASK; in da9063_i2c_blockreg_read()
/linux-6.1.9/drivers/net/ethernet/pensando/ionic/
Dionic_bus.h13 void __iomem *ionic_bus_map_dbpage(struct ionic *ionic, int page_num);
Dionic_bus_pci.c98 void __iomem *ionic_bus_map_dbpage(struct ionic *ionic, int page_num) in ionic_bus_map_dbpage() argument
102 (u64)page_num << PAGE_SHIFT, PAGE_SIZE); in ionic_bus_map_dbpage()
/linux-6.1.9/drivers/iommu/
Dsprd-iommu.c279 unsigned int page_num = size >> SPRD_IOMMU_PAGE_SHIFT; in sprd_iommu_map() local
301 for (i = 0; i < page_num; i++) { in sprd_iommu_map()
316 unsigned int page_num = size >> SPRD_IOMMU_PAGE_SHIFT; in sprd_iommu_unmap() local
326 memset(pgt_base_iova, 0, page_num * sizeof(u32)); in sprd_iommu_unmap()
Dmtk_iommu_v1.c333 unsigned int page_num = size >> MT2701_IOMMU_PAGE_SHIFT; in mtk_iommu_v1_map() local
341 for (i = 0; i < page_num; i++) { in mtk_iommu_v1_map()
364 unsigned int page_num = size >> MT2701_IOMMU_PAGE_SHIFT; in mtk_iommu_v1_unmap() local
367 memset(pgt_base_iova, 0, page_num * sizeof(u32)); in mtk_iommu_v1_unmap()
/linux-6.1.9/drivers/gpu/drm/i915/gvt/
Ddmabuf.c55 u32 page_num; in vgpu_gem_get_pages() local
69 page_num = obj->base.size >> PAGE_SHIFT; in vgpu_gem_get_pages()
70 ret = sg_alloc_table(st, page_num, GFP_KERNEL); in vgpu_gem_get_pages()
77 for_each_sg(st->sgl, sg, page_num, i) { in vgpu_gem_get_pages()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Dport.c340 static int mlx5_qsfp_eeprom_high_page_offset(int page_num) in mlx5_qsfp_eeprom_high_page_offset() argument
342 if (!page_num) /* Page 0 always start from low page */ in mlx5_qsfp_eeprom_high_page_offset()
346 return page_num * MLX5_EEPROM_HIGH_PAGE_LENGTH; in mlx5_qsfp_eeprom_high_page_offset()
349 static void mlx5_qsfp_eeprom_params_set(u16 *i2c_addr, int *page_num, u16 *offset) in mlx5_qsfp_eeprom_params_set() argument
352 *page_num = mlx5_qsfp_eeprom_page(*offset); in mlx5_qsfp_eeprom_params_set()
353 *offset -= mlx5_qsfp_eeprom_high_page_offset(*page_num); in mlx5_qsfp_eeprom_params_set()
356 static void mlx5_sfp_eeprom_params_set(u16 *i2c_addr, int *page_num, u16 *offset) in mlx5_sfp_eeprom_params_set() argument
359 *page_num = 0; in mlx5_sfp_eeprom_params_set()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Dport.c1981 u8 page_num; member
2058 cable_info->page_num = 0; in mlx4_get_module_id()
2086 static void mlx4_sfp_eeprom_params_set(u8 *i2c_addr, u8 *page_num, u16 *offset) in mlx4_sfp_eeprom_params_set() argument
2089 *page_num = 0; in mlx4_sfp_eeprom_params_set()
2098 static void mlx4_qsfp_eeprom_params_set(u8 *i2c_addr, u8 *page_num, u16 *offset) in mlx4_qsfp_eeprom_params_set() argument
2105 *page_num = 0; in mlx4_qsfp_eeprom_params_set()
2107 *page_num = 1 + (*offset - I2C_PAGE_SIZE) / I2C_HIGH_PAGE_SIZE; in mlx4_qsfp_eeprom_params_set()
2109 *offset -= *page_num * I2C_HIGH_PAGE_SIZE; in mlx4_qsfp_eeprom_params_set()
2131 u8 module_id, i2c_addr, page_num; in mlx4_get_module_info() local
2143 mlx4_sfp_eeprom_params_set(&i2c_addr, &page_num, &offset); in mlx4_get_module_info()
[all …]
/linux-6.1.9/drivers/gpu/drm/gma500/
Dframebuffer.c86 int page_num; in psbfb_vm_fault() local
93 page_num = vma_pages(vma); in psbfb_vm_fault()
98 for (i = 0; i < page_num; i++) { in psbfb_vm_fault()
/linux-6.1.9/drivers/crypto/qat/qat_common/
Dicp_qat_uclo.h326 unsigned int page_num; member
337 unsigned int page_num; member
/linux-6.1.9/drivers/tee/optee/
Dsmc_abi.c709 size_t page_num; in handle_rpc_func_cmd_shm_alloc() local
711 pages = tee_shm_get_pages(shm, &page_num); in handle_rpc_func_cmd_shm_alloc()
712 if (!pages || !page_num) { in handle_rpc_func_cmd_shm_alloc()
717 pages_list = optee_allocate_pages_list(page_num); in handle_rpc_func_cmd_shm_alloc()
724 call_ctx->num_entries = page_num; in handle_rpc_func_cmd_shm_alloc()
738 optee_fill_pages_list(pages_list, pages, page_num, in handle_rpc_func_cmd_shm_alloc()
/linux-6.1.9/drivers/net/wireless/realtek/rtw88/
Ddebug.c29 u32 page_num; member
251 u32 buf_size = debugfs_priv->rsvd_page.page_num * page_size; in rtw_debugfs_get_rsvd_page()
287 u32 offset, page_num; in rtw_debugfs_set_rsvd_page() local
292 num = sscanf(tmp, "%d %d", &offset, &page_num); in rtw_debugfs_set_rsvd_page()
300 debugfs_priv->rsvd_page.page_num = page_num; in rtw_debugfs_set_rsvd_page()
/linux-6.1.9/drivers/gpu/drm/tests/
Ddrm_buddy_test.c640 unsigned long page_num; in drm_test_buddy_alloc_range() local
655 for_each_prime_number_from(page_num, 1, ULONG_MAX - 1) { in drm_test_buddy_alloc_range()
659 size = min(page_num * mm.chunk_size, rem); in drm_test_buddy_alloc_range()
/linux-6.1.9/arch/x86/kvm/
Dmtrr.c692 int page_num) in kvm_mtrr_check_gfn_range_consistency() argument
700 end = gfn_to_gpa(gfn + page_num); in kvm_mtrr_check_gfn_range_consistency()
Dxen.c843 u32 page_num = data & ~PAGE_MASK; in kvm_xen_write_hypercall_page() local
860 if (page_num) in kvm_xen_write_hypercall_page()
893 if (page_num >= blob_size) in kvm_xen_write_hypercall_page()
896 blob_addr += page_num * PAGE_SIZE; in kvm_xen_write_hypercall_page()
Dx86.h301 int page_num);
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/fw/
Derror-dump.h300 __le32 page_num; member
/linux-6.1.9/drivers/gpu/drm/i915/selftests/
Dintel_memory_region.c61 unsigned long page_num; in igt_mock_fill() local
69 for_each_prime_number_from(page_num, 1, max_pages) { in igt_mock_fill()
70 resource_size_t size = page_num * page_size; in igt_mock_fill()
92 if (page_num * page_size <= rem) { in igt_mock_fill()
/linux-6.1.9/drivers/infiniband/hw/efa/
Defa_com_cmd.h187 u32 page_num; member
Defa_verbs.c1512 params->page_num, params->page_shift); in efa_create_inline_pbl()
1517 "inline_pbl_array - pages[%u]\n", params->page_num); in efa_create_inline_pbl()
1529 err = pbl_create(dev, pbl, mr->umem, params->page_num, in efa_create_pbl()
1615 params.page_num = ib_umem_num_dma_blocks(mr->umem, pg_sz); in efa_register_mr()
1619 start, length, params.page_shift, params.page_num); in efa_register_mr()
1622 if (params.page_num <= inline_size) { in efa_register_mr()
Defa_admin_cmds_defs.h390 u32 page_num; member
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/
Dpci.c417 for (i = 0; i < wd_ring->page_num; i++) { in rtw89_pci_release_busy_txwd()
494 for (i = 0; i < wd_ring->page_num; i++) { in rtw89_pci_release_pending_txwd_skb()
2726 u32 page_num = wd_ring->page_num; in rtw89_pci_free_tx_wd_ring() local
2727 u32 ring_sz = page_size * page_num; in rtw89_pci_free_tx_wd_ring()
2856 u32 page_num = RTW89_PCI_TXWD_NUM_MAX; in rtw89_pci_alloc_tx_wd_ring() local
2857 u32 ring_sz = page_size * page_num; in rtw89_pci_alloc_tx_wd_ring()
2873 wd_ring->page_num = page_num; in rtw89_pci_alloc_tx_wd_ring()
2876 for (i = 0; i < page_num; i++) { in rtw89_pci_alloc_tx_wd_ring()
/linux-6.1.9/drivers/gpu/drm/i915/gem/selftests/
Dhuge_pages.c714 unsigned long page_num; in igt_mock_ppgtt_huge_fill() local
720 for_each_prime_number_from(page_num, 1, max_pages) { in igt_mock_ppgtt_huge_fill()
722 u64 size = page_num << PAGE_SHIFT; in igt_mock_ppgtt_huge_fill()
/linux-6.1.9/drivers/staging/rts5208/
Dms.c1252 u16 block_addr, u8 page_num, u8 *buf, int buf_len) argument
1274 data[5] = page_num;
1333 u8 page_num, u8 *buf, int buf_len) argument
1356 data[5] = page_num;
1389 static int ms_read_page(struct rtsx_chip *chip, u16 block_addr, u8 page_num) argument
1409 data[5] = page_num;

12