pble.h (b6fa6f229f7364782799e5105d8d353e389033e4) | pble.h (117697cc935b0ab04ec66274d8e64ccfebd7d0d2) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 or Linux-OpenIB */ 2/* Copyright (c) 2015 - 2019 Intel Corporation */ 3#ifndef IRDMA_PBLE_H 4#define IRDMA_PBLE_H 5 6#define PBLE_SHIFT 6 7#define PBLE_PER_PAGE 512 8#define HMC_PAGED_BP_SHIFT 12 --- 55 unchanged lines hidden (view full) --- 64 struct irdma_hmc_info *hmc_info; 65 struct sd_pd_idx idx; 66 u32 pages; 67}; 68 69struct irdma_chunk { 70 struct list_head list; 71 struct irdma_dma_info dmainfo; | 1/* SPDX-License-Identifier: GPL-2.0 or Linux-OpenIB */ 2/* Copyright (c) 2015 - 2019 Intel Corporation */ 3#ifndef IRDMA_PBLE_H 4#define IRDMA_PBLE_H 5 6#define PBLE_SHIFT 6 7#define PBLE_PER_PAGE 512 8#define HMC_PAGED_BP_SHIFT 12 --- 55 unchanged lines hidden (view full) --- 64 struct irdma_hmc_info *hmc_info; 65 struct sd_pd_idx idx; 66 u32 pages; 67}; 68 69struct irdma_chunk { 70 struct list_head list; 71 struct irdma_dma_info dmainfo; |
72 unsigned long *bitmapbuf; | 72 void *bitmapbuf; |
73 74 u32 sizeofbitmap; 75 u64 size; 76 void *vaddr; 77 u64 fpm_addr; 78 u32 pg_cnt; 79 enum irdma_alloc_type type; 80 struct irdma_sc_dev *dev; | 73 74 u32 sizeofbitmap; 75 u64 size; 76 void *vaddr; 77 u64 fpm_addr; 78 u32 pg_cnt; 79 enum irdma_alloc_type type; 80 struct irdma_sc_dev *dev; |
81 struct irdma_virt_mem bitmapmem; | |
82 struct irdma_virt_mem chunkmem; 83}; 84 85struct irdma_pble_prm { 86 struct list_head clist; 87 spinlock_t prm_lock; /* protect prm bitmap */ 88 u64 total_pble_alloc; 89 u64 free_pble_cnt; --- 47 unchanged lines hidden --- | 81 struct irdma_virt_mem chunkmem; 82}; 83 84struct irdma_pble_prm { 85 struct list_head clist; 86 spinlock_t prm_lock; /* protect prm bitmap */ 87 u64 total_pble_alloc; 88 u64 free_pble_cnt; --- 47 unchanged lines hidden --- |