Home
last modified time | relevance | path

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

12

/linux-6.6.21/tools/mm/
Dpage_owner_sort.c39 int page_num; member
146 return l1->page_num - l2->page_num; in compare_page_num()
504 list[list_size-1].page_num += get_page_num(buf); in add_list()
525 list[list_size].page_num = get_page_num(buf); in add_list()
842 list[count-1].page_num += list[i].page_num; in main()
850 fprintf(fout, "%d times, %d pages, ", list[i].num, list[i].page_num); in main()
856 list[i].num, list[i].page_num); in main()
/linux-6.6.21/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.6.21/drivers/gpu/drm/i915/gvt/
Ddmabuf.c54 unsigned int page_num; /* limited by sg_alloc_table */ in vgpu_gem_get_pages() local
56 if (overflows_type(obj->base.size >> PAGE_SHIFT, page_num)) in vgpu_gem_get_pages()
59 page_num = obj->base.size >> PAGE_SHIFT; in vgpu_gem_get_pages()
72 ret = sg_alloc_table(st, page_num, GFP_KERNEL); in vgpu_gem_get_pages()
79 for_each_sg(st->sgl, sg, page_num, i) { in vgpu_gem_get_pages()
/linux-6.6.21/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.6.21/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.6.21/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.6.21/drivers/crypto/intel/qat/qat_common/
Dicp_qat_uclo.h326 unsigned int page_num; member
337 unsigned int page_num; member
/linux-6.6.21/drivers/gpu/drm/gma500/
Dfbdev.c30 unsigned long page_num = vma_pages(vma); in psb_fbdev_vm_fault() local
35 for (i = 0; i < page_num; ++i) { in psb_fbdev_vm_fault()
/linux-6.6.21/drivers/net/wireless/realtek/rtw88/
Ddebug.c29 u32 page_num; member
256 u32 buf_size = debugfs_priv->rsvd_page.page_num * page_size; in rtw_debugfs_get_rsvd_page()
292 u32 offset, page_num; in rtw_debugfs_set_rsvd_page() local
300 num = sscanf(tmp, "%d %d", &offset, &page_num); in rtw_debugfs_set_rsvd_page()
308 debugfs_priv->rsvd_page.page_num = page_num; in rtw_debugfs_set_rsvd_page()
/linux-6.6.21/drivers/tee/optee/
Dsmc_abi.c729 size_t page_num; in handle_rpc_func_cmd_shm_alloc() local
731 pages = tee_shm_get_pages(shm, &page_num); in handle_rpc_func_cmd_shm_alloc()
732 if (!pages || !page_num) { in handle_rpc_func_cmd_shm_alloc()
737 pages_list = optee_allocate_pages_list(page_num); in handle_rpc_func_cmd_shm_alloc()
744 call_ctx->num_entries = page_num; in handle_rpc_func_cmd_shm_alloc()
758 optee_fill_pages_list(pages_list, pages, page_num, in handle_rpc_func_cmd_shm_alloc()
/linux-6.6.21/drivers/gpu/drm/tests/
Ddrm_buddy_test.c641 unsigned long page_num; in drm_test_buddy_alloc_range() local
656 for_each_prime_number_from(page_num, 1, ULONG_MAX - 1) { in drm_test_buddy_alloc_range()
660 size = min(page_num * mm.chunk_size, rem); in drm_test_buddy_alloc_range()
/linux-6.6.21/arch/x86/kvm/
Dmtrr.c691 int page_num) in kvm_mtrr_check_gfn_range_consistency() argument
699 end = gfn_to_gpa(gfn + page_num); in kvm_mtrr_check_gfn_range_consistency()
Dx86.h315 int page_num);
Dxen.c1044 u32 page_num = data & ~PAGE_MASK; in kvm_xen_write_hypercall_page() local
1061 if (page_num) in kvm_xen_write_hypercall_page()
1095 if (page_num >= blob_size) in kvm_xen_write_hypercall_page()
1098 blob_addr += page_num * PAGE_SIZE; in kvm_xen_write_hypercall_page()
/linux-6.6.21/drivers/net/ethernet/amd/pds_core/
Dmain.c134 void __iomem *pdsc_map_dbpage(struct pdsc *pdsc, int page_num) in pdsc_map_dbpage() argument
138 (u64)page_num << PAGE_SHIFT, PAGE_SIZE); in pdsc_map_dbpage()
Dcore.h263 void __iomem *pdsc_map_dbpage(struct pdsc *pdsc, int page_num);
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/fw/
Derror-dump.h315 __le32 page_num __packed;
/linux-6.6.21/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.6.21/drivers/infiniband/hw/efa/
Defa_com_cmd.h187 u32 page_num; member
Defa_verbs.c1522 params->page_num, params->page_shift); in efa_create_inline_pbl()
1527 "inline_pbl_array - pages[%u]\n", params->page_num); in efa_create_inline_pbl()
1539 err = pbl_create(dev, pbl, mr->umem, params->page_num, in efa_create_pbl()
1626 params.page_num = ib_umem_num_dma_blocks(mr->umem, pg_sz); in efa_register_mr()
1630 start, length, params.page_shift, params.page_num); in efa_register_mr()
1633 if (params.page_num <= inline_size) { in efa_register_mr()
Defa_admin_cmds_defs.h393 u32 page_num; member
/linux-6.6.21/drivers/net/wireless/realtek/rtw89/
Dpci.c429 for (i = 0; i < wd_ring->page_num; i++) { in rtw89_pci_release_busy_txwd()
506 for (i = 0; i < wd_ring->page_num; i++) { in rtw89_pci_release_pending_txwd_skb()
2771 u32 page_num = wd_ring->page_num; in rtw89_pci_free_tx_wd_ring() local
2772 u32 ring_sz = page_size * page_num; in rtw89_pci_free_tx_wd_ring()
2901 u32 page_num = RTW89_PCI_TXWD_NUM_MAX; in rtw89_pci_alloc_tx_wd_ring() local
2902 u32 ring_sz = page_size * page_num; in rtw89_pci_alloc_tx_wd_ring()
2918 wd_ring->page_num = page_num; in rtw89_pci_alloc_tx_wd_ring()
2921 for (i = 0; i < page_num; i++) { in rtw89_pci_alloc_tx_wd_ring()
/linux-6.6.21/drivers/gpu/drm/i915/gem/selftests/
Dhuge_pages.c720 unsigned long page_num; in igt_ppgtt_huge_fill() local
742 for_each_prime_number_from(page_num, 1, max_pages) { in igt_ppgtt_huge_fill()
744 u64 size = page_num << PAGE_SHIFT; in igt_ppgtt_huge_fill()
/linux-6.6.21/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