Home
last modified time | relevance | path

Searched refs:region (Results 51 - 75 of 853) sorted by relevance

12345678910>>...35

/kernel/linux/linux-6.6/drivers/soc/ti/
H A Dknav_qmss_queue.c688 struct knav_region *region; in kdesc_fill_pool() local
691 region = pool->region; in kdesc_fill_pool()
692 pool->desc_size = region->desc_size; in kdesc_fill_pool()
697 dma_addr = region->dma_start + (region->desc_size * index); in kdesc_fill_pool()
736 return pool->region->dma_start + (virt - pool->region->virt_start); in knav_pool_desc_virt_to_dma()
743 return pool->region->virt_start + (dma - pool->region in knav_pool_desc_dma_to_virt()
760 struct knav_region *reg_itr, *region = NULL; knav_pool_create() local
980 knav_queue_setup_region(struct knav_device *kdev, struct knav_region *region) knav_queue_setup_region() argument
1080 struct knav_region *region; knav_queue_setup_regions() local
1349 struct knav_region *region; knav_queue_free_regions() local
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/
H A Ddfs_pattern_detector.c31 enum nl80211_dfs_regions region; member
66 .region = NL80211_DFS_ETSI,
98 .region = NL80211_DFS_FCC,
123 .region = NL80211_DFS_JP,
140 get_dfs_domain_radar_types(enum nl80211_dfs_regions region) in get_dfs_domain_radar_types() argument
144 if (dfs_domains[i]->region == region) in get_dfs_domain_radar_types()
281 if (dpd->region == NL80211_DFS_UNSET) in dpd_add_pulse()
319 enum nl80211_dfs_regions region) in dpd_set_domain()
324 if (dpd->region in dpd_set_domain()
318 dpd_set_domain(struct dfs_pattern_detector *dpd, enum nl80211_dfs_regions region) dpd_set_domain() argument
352 dfs_pattern_detector_init(struct ath_common *common, enum nl80211_dfs_regions region) dfs_pattern_detector_init() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/ath/
H A Ddfs_pattern_detector.c26 * @region: regulatory DFS region
31 enum nl80211_dfs_regions region; member
66 .region = NL80211_DFS_ETSI,
98 .region = NL80211_DFS_FCC,
123 .region = NL80211_DFS_JP,
136 * @region: regulatory DFS region
141 get_dfs_domain_radar_types(enum nl80211_dfs_regions region) in get_dfs_domain_radar_types() argument
145 if (dfs_domains[i]->region in get_dfs_domain_radar_types()
320 dpd_set_domain(struct dfs_pattern_detector *dpd, enum nl80211_dfs_regions region) dpd_set_domain() argument
354 dfs_pattern_detector_init(struct ath_common *common, enum nl80211_dfs_regions region) dfs_pattern_detector_init() argument
[all...]
/kernel/linux/linux-6.6/drivers/s390/cio/
H A Dvfio_ccw_ops.c214 struct ccw_io_region *region; in vfio_ccw_mdev_read_io_region() local
217 if (pos + count > sizeof(*region)) in vfio_ccw_mdev_read_io_region()
221 region = private->io_region; in vfio_ccw_mdev_read_io_region()
222 if (copy_to_user(buf, (void *)region + pos, count)) in vfio_ccw_mdev_read_io_region()
247 return private->region[index].ops->read(private, buf, count, in vfio_ccw_mdev_read()
259 struct ccw_io_region *region; in vfio_ccw_mdev_write_io_region() local
262 if (pos + count > sizeof(*region)) in vfio_ccw_mdev_write_io_region()
268 region = private->io_region; in vfio_ccw_mdev_write_io_region()
269 if (copy_from_user((void *)region + pos, buf, count)) { in vfio_ccw_mdev_write_io_region()
275 ret = (region in vfio_ccw_mdev_write_io_region()
475 struct vfio_ccw_region *region; vfio_ccw_register_dev_region() local
[all...]
/kernel/linux/linux-5.10/arch/mips/include/asm/sn/sn0/
H A Dhubmd.h449 #define MD_MEMORY_CONFIG_DIR_TYPE_GET(region) (\
450 (REMOTE_HUB_L(region, MD_MEMORY_CONFIG) & MMC_DIR_PREMIUM_MASK) >> \
459 #define MD_MIG_DIFF_THRESH_GET(region) ( \
460 REMOTE_HUB_L((region), MD_MIG_DIFF_THRESH) & \
463 #define MD_MIG_DIFF_THRESH_SET(region, value) ( \
464 REMOTE_HUB_S((region), MD_MIG_DIFF_THRESH, \
467 #define MD_MIG_DIFF_THRESH_DISABLE(region) ( \
468 REMOTE_HUB_S((region), MD_MIG_DIFF_THRESH, \
469 REMOTE_HUB_L((region), MD_MIG_DIFF_THRESH) \
472 #define MD_MIG_DIFF_THRESH_ENABLE(region) ( \
[all...]
/kernel/linux/linux-6.6/arch/mips/include/asm/sn/sn0/
H A Dhubmd.h449 #define MD_MEMORY_CONFIG_DIR_TYPE_GET(region) (\
450 (REMOTE_HUB_L(region, MD_MEMORY_CONFIG) & MMC_DIR_PREMIUM_MASK) >> \
459 #define MD_MIG_DIFF_THRESH_GET(region) ( \
460 REMOTE_HUB_L((region), MD_MIG_DIFF_THRESH) & \
463 #define MD_MIG_DIFF_THRESH_SET(region, value) ( \
464 REMOTE_HUB_S((region), MD_MIG_DIFF_THRESH, \
467 #define MD_MIG_DIFF_THRESH_DISABLE(region) ( \
468 REMOTE_HUB_S((region), MD_MIG_DIFF_THRESH, \
469 REMOTE_HUB_L((region), MD_MIG_DIFF_THRESH) \
472 #define MD_MIG_DIFF_THRESH_ENABLE(region) ( \
[all...]
/kernel/liteos_a/kernel/base/vm/
H A Dlos_vm_filemap.c170 VOID OsVmmFileRemove(LosVmMapRegion *region, LosArchMmu *archMmu, VM_OFFSET_T pgoff) in OsVmmFileRemove() argument
181 if (!LOS_IsRegionFileValid(region) || (region->unTypeData.rf.vnode == NULL)) { in OsVmmFileRemove()
184 vnode = region->unTypeData.rf.vnode; in OsVmmFileRemove()
186 vaddr = region->range.base + ((UINT32)(pgoff - region->pgOff) << PAGE_SHIFT); in OsVmmFileRemove()
217 VOID OsMarkPageDirty(LosFilePage *fpage, const LosVmMapRegion *region, INT32 off, INT32 len) in OsMarkPageDirty() argument
219 if (region != NULL) { in OsMarkPageDirty()
332 VOID OsDelMapInfo(LosVmMapRegion *region, LosVmPgFault *vmf, BOOL cleanDirty) in OsDelMapInfo() argument
339 if (!LOS_IsRegionFileValid(region) || (regio in OsDelMapInfo()
366 OsVmmFileFault(LosVmMapRegion *region, LosVmPgFault *vmf) OsVmmFileFault() argument
501 OsVfsFileMmap(struct file *filep, LosVmMapRegion *region) OsVfsFileMmap() argument
510 OsNamedMMap(struct file *filep, LosVmMapRegion *region) OsNamedMMap() argument
604 OsVfsFileMmap(struct file *filep, LosVmMapRegion *region) OsVfsFileMmap() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl_tcam.c104 struct mutex lock; /* guards region list updates */
141 struct mutex lock; /* Protects consistency of region, region2 pointers
144 struct mlxsw_sp_acl_tcam_region *region; member
164 struct mlxsw_sp_acl_tcam_region *region; member
205 struct mlxsw_sp_acl_tcam_region *region; in mlxsw_sp_acl_tcam_group_update() local
210 list_for_each_entry(region, &group->region_list, list) { in mlxsw_sp_acl_tcam_group_update()
214 if (region->list.next != &group->region_list && in mlxsw_sp_acl_tcam_group_update()
215 list_next_entry(region, list)->vregion == region->vregion) in mlxsw_sp_acl_tcam_group_update()
218 region in mlxsw_sp_acl_tcam_group_update()
378 mlxsw_sp_acl_tcam_group_region_attach(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_group *group, struct mlxsw_sp_acl_tcam_region *region, unsigned int priority, struct mlxsw_sp_acl_tcam_region *next_region) mlxsw_sp_acl_tcam_group_region_attach() argument
427 mlxsw_sp_acl_tcam_group_region_detach(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region) mlxsw_sp_acl_tcam_group_region_detach() argument
565 mlxsw_sp_acl_tcam_region_alloc(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region) mlxsw_sp_acl_tcam_region_alloc() argument
593 mlxsw_sp_acl_tcam_region_free(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region) mlxsw_sp_acl_tcam_region_free() argument
605 mlxsw_sp_acl_tcam_region_enable(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region) mlxsw_sp_acl_tcam_region_enable() argument
616 mlxsw_sp_acl_tcam_region_disable(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region) mlxsw_sp_acl_tcam_region_disable() argument
633 struct mlxsw_sp_acl_tcam_region *region; mlxsw_sp_acl_tcam_region_create() local
680 mlxsw_sp_acl_tcam_region_destroy(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region) mlxsw_sp_acl_tcam_region_destroy() argument
914 mlxsw_sp_acl_tcam_chunk_create(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_vchunk *vchunk, struct mlxsw_sp_acl_tcam_region *region) mlxsw_sp_acl_tcam_chunk_create() argument
1099 mlxsw_sp_acl_tcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region, struct mlxsw_sp_acl_tcam_entry *entry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_tcam_entry_action_replace() argument
1218 mlxsw_sp_acl_tcam_vchunk_migrate_start(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_vchunk *vchunk, struct mlxsw_sp_acl_tcam_region *region, struct mlxsw_sp_acl_tcam_rehash_ctx *ctx) mlxsw_sp_acl_tcam_vchunk_migrate_start() argument
1247 mlxsw_sp_acl_tcam_vchunk_migrate_one(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_vchunk *vchunk, struct mlxsw_sp_acl_tcam_region *region, struct mlxsw_sp_acl_tcam_rehash_ctx *ctx, int *credits) mlxsw_sp_acl_tcam_vchunk_migrate_one() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_acl_tcam.c105 struct mutex lock; /* guards region list updates */
142 struct mutex lock; /* Protects consistency of region, region2 pointers
145 struct mlxsw_sp_acl_tcam_region *region; member
165 struct mlxsw_sp_acl_tcam_region *region; member
206 struct mlxsw_sp_acl_tcam_region *region; in mlxsw_sp_acl_tcam_group_update() local
211 list_for_each_entry(region, &group->region_list, list) { in mlxsw_sp_acl_tcam_group_update()
215 if (region->list.next != &group->region_list && in mlxsw_sp_acl_tcam_group_update()
216 list_next_entry(region, list)->vregion == region->vregion) in mlxsw_sp_acl_tcam_group_update()
219 region in mlxsw_sp_acl_tcam_group_update()
379 mlxsw_sp_acl_tcam_group_region_attach(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_group *group, struct mlxsw_sp_acl_tcam_region *region, unsigned int priority, struct mlxsw_sp_acl_tcam_region *next_region) mlxsw_sp_acl_tcam_group_region_attach() argument
428 mlxsw_sp_acl_tcam_group_region_detach(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region) mlxsw_sp_acl_tcam_group_region_detach() argument
566 mlxsw_sp_acl_tcam_region_alloc(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region) mlxsw_sp_acl_tcam_region_alloc() argument
594 mlxsw_sp_acl_tcam_region_free(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region) mlxsw_sp_acl_tcam_region_free() argument
606 mlxsw_sp_acl_tcam_region_enable(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region) mlxsw_sp_acl_tcam_region_enable() argument
617 mlxsw_sp_acl_tcam_region_disable(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region) mlxsw_sp_acl_tcam_region_disable() argument
634 struct mlxsw_sp_acl_tcam_region *region; mlxsw_sp_acl_tcam_region_create() local
681 mlxsw_sp_acl_tcam_region_destroy(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region) mlxsw_sp_acl_tcam_region_destroy() argument
880 mlxsw_sp_acl_tcam_chunk_create(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_vchunk *vchunk, struct mlxsw_sp_acl_tcam_region *region) mlxsw_sp_acl_tcam_chunk_create() argument
1065 mlxsw_sp_acl_tcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region, struct mlxsw_sp_acl_tcam_entry *entry, struct mlxsw_sp_acl_rule_info *rulei) mlxsw_sp_acl_tcam_entry_action_replace() argument
1184 mlxsw_sp_acl_tcam_vchunk_migrate_start(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_vchunk *vchunk, struct mlxsw_sp_acl_tcam_region *region, struct mlxsw_sp_acl_tcam_rehash_ctx *ctx) mlxsw_sp_acl_tcam_vchunk_migrate_start() argument
1213 mlxsw_sp_acl_tcam_vchunk_migrate_one(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_vchunk *vchunk, struct mlxsw_sp_acl_tcam_region *region, struct mlxsw_sp_acl_tcam_rehash_ctx *ctx, int *credits) mlxsw_sp_acl_tcam_vchunk_migrate_one() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dmub/src/
H A Ddmub_dcn20.c159 REG_WRITE(DMCUB_REGION3_CW0_BASE_ADDRESS, cw0->region.base); in dmub_dcn20_backdoor_load()
161 DMCUB_REGION3_CW0_TOP_ADDRESS, cw0->region.top, in dmub_dcn20_backdoor_load()
168 REG_WRITE(DMCUB_REGION3_CW1_BASE_ADDRESS, cw1->region.base); in dmub_dcn20_backdoor_load()
170 DMCUB_REGION3_CW1_TOP_ADDRESS, cw1->region.top, in dmub_dcn20_backdoor_load()
189 if (cw2->region.base != cw2->region.top) { in dmub_dcn20_setup_windows()
195 REG_WRITE(DMCUB_REGION3_CW2_BASE_ADDRESS, cw2->region.base); in dmub_dcn20_setup_windows()
197 DMCUB_REGION3_CW2_TOP_ADDRESS, cw2->region.top, in dmub_dcn20_setup_windows()
210 REG_WRITE(DMCUB_REGION3_CW3_BASE_ADDRESS, cw3->region.base); in dmub_dcn20_setup_windows()
212 DMCUB_REGION3_CW3_TOP_ADDRESS, cw3->region in dmub_dcn20_setup_windows()
[all...]
/kernel/linux/linux-6.6/drivers/mtd/nand/spi/
H A Dmicron.c61 struct mtd_oob_region *region) in micron_8_ooblayout_ecc()
66 region->offset = mtd->oobsize / 2; in micron_8_ooblayout_ecc()
67 region->length = mtd->oobsize / 2; in micron_8_ooblayout_ecc()
73 struct mtd_oob_region *region) in micron_8_ooblayout_free()
79 region->offset = 2; in micron_8_ooblayout_free()
80 region->length = (mtd->oobsize / 2) - 2; in micron_8_ooblayout_free()
91 struct mtd_oob_region *region) in micron_4_ooblayout_ecc()
99 region->offset = (section * 16) + 8; in micron_4_ooblayout_ecc()
100 region->length = 8; in micron_4_ooblayout_ecc()
106 struct mtd_oob_region *region) in micron_4_ooblayout_free()
60 micron_8_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *region) micron_8_ooblayout_ecc() argument
72 micron_8_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *region) micron_8_ooblayout_free() argument
90 micron_4_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *region) micron_4_ooblayout_ecc() argument
105 micron_4_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *region) micron_4_ooblayout_free() argument
[all...]
H A Dparagon.c42 struct mtd_oob_region *region) in pn26g0xa_ooblayout_ecc()
47 region->offset = 6 + (15 * section); /* 4 BBM + 2 user bytes */ in pn26g0xa_ooblayout_ecc()
48 region->length = 13; in pn26g0xa_ooblayout_ecc()
54 struct mtd_oob_region *region) in pn26g0xa_ooblayout_free()
60 region->offset = 64; in pn26g0xa_ooblayout_free()
61 region->length = 64; in pn26g0xa_ooblayout_free()
63 region->offset = 4 + (15 * section); in pn26g0xa_ooblayout_free()
64 region->length = 2; in pn26g0xa_ooblayout_free()
41 pn26g0xa_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *region) pn26g0xa_ooblayout_ecc() argument
53 pn26g0xa_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *region) pn26g0xa_ooblayout_free() argument
/kernel/linux/linux-6.6/drivers/mtd/spi-nor/
H A Dotp.c28 * 256). Thus one "security register" maps to one OTP region.
155 static int spi_nor_otp_lock_bit_cr(unsigned int region) in spi_nor_otp_lock_bit_cr() argument
159 if (region >= ARRAY_SIZE(lock_bits)) in spi_nor_otp_lock_bit_cr()
162 return lock_bits[region]; in spi_nor_otp_lock_bit_cr()
166 * spi_nor_otp_lock_sr2() - lock the OTP region
168 * @region: OTP region
170 * Lock the OTP region by writing the status register-2. This method is used on
175 int spi_nor_otp_lock_sr2(struct spi_nor *nor, unsigned int region) in spi_nor_otp_lock_sr2() argument
180 lock_bit = spi_nor_otp_lock_bit_cr(region); in spi_nor_otp_lock_sr2()
207 spi_nor_otp_is_locked_sr2(struct spi_nor *nor, unsigned int region) spi_nor_otp_is_locked_sr2() argument
223 spi_nor_otp_region_start(const struct spi_nor *nor, unsigned int region) spi_nor_otp_region_start() argument
236 spi_nor_otp_region_to_offset(struct spi_nor *nor, unsigned int region) spi_nor_otp_region_to_offset() argument
288 unsigned int region; spi_nor_mtd_otp_range_is_locked() local
315 unsigned int region; spi_nor_mtd_otp_read_write() local
400 unsigned int region; spi_nor_mtd_otp_erase() local
453 unsigned int region; spi_nor_mtd_otp_lock() local
[all...]
/kernel/linux/linux-5.10/drivers/mtd/nand/spi/
H A Dparagon.c42 struct mtd_oob_region *region) in pn26g0xa_ooblayout_ecc()
47 region->offset = 6 + (15 * section); /* 4 BBM + 2 user bytes */ in pn26g0xa_ooblayout_ecc()
48 region->length = 13; in pn26g0xa_ooblayout_ecc()
54 struct mtd_oob_region *region) in pn26g0xa_ooblayout_free()
60 region->offset = 64; in pn26g0xa_ooblayout_free()
61 region->length = 64; in pn26g0xa_ooblayout_free()
63 region->offset = 4 + (15 * section); in pn26g0xa_ooblayout_free()
64 region->length = 2; in pn26g0xa_ooblayout_free()
41 pn26g0xa_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *region) pn26g0xa_ooblayout_ecc() argument
53 pn26g0xa_ooblayout_free(struct mtd_info *mtd, int section, struct mtd_oob_region *region) pn26g0xa_ooblayout_free() argument
/kernel/liteos_a/syscall/
H A Dsyscall_pub.c35 LosVmMapRegion *region = LOS_RegionFind((LosVmSpace *)space, ptr); in CheckRegion() local
36 if (region == NULL) { in CheckRegion()
39 if (ptr + len <= region->range.base + region->range.size) { in CheckRegion()
42 return CheckRegion(space, region->range.base + region->range.size, in CheckRegion()
43 (ptr + len) - (region->range.base + region->range.size)); in CheckRegion()
/kernel/liteos_a/drivers/char/mem/src/
H A Dmem.c56 static ssize_t MemMap(struct file *filep, LosVmMapRegion *region) in MemMap() argument
59 size_t size = region->range.size; in MemMap()
60 PADDR_T paddr = region->pgOff << PAGE_SHIFT; in MemMap()
61 VADDR_T vaddr = region->range.base; in MemMap()
69 region->regionFlags |= VM_MAP_REGION_FLAG_STRONGLY_ORDERED; in MemMap()
74 if (LOS_ArchMmuMap(&space->archMmu, vaddr, paddr, size >> PAGE_SHIFT, region->regionFlags) <= 0) { in MemMap()
79 UNUSED(region); in MemMap()
/kernel/linux/linux-5.10/drivers/acpi/
H A Dnvs.c3 * nvs.c - Routines for saving and restoring ACPI NVS memory region
38 struct nvs_region *region; in acpi_nvs_register() local
40 region = kmalloc(sizeof(*region), GFP_KERNEL); in acpi_nvs_register()
41 if (!region) in acpi_nvs_register()
43 region->phys_start = start; in acpi_nvs_register()
44 region->size = size; in acpi_nvs_register()
45 list_add_tail(&region->node, &nvs_region_list); in acpi_nvs_register()
54 struct nvs_region *region; in acpi_nvs_for_each_region() local
56 list_for_each_entry(region, in acpi_nvs_for_each_region()
[all...]
/kernel/linux/linux-6.6/drivers/acpi/
H A Dnvs.c3 * nvs.c - Routines for saving and restoring ACPI NVS memory region
40 struct nvs_region *region; in acpi_nvs_register() local
42 region = kmalloc(sizeof(*region), GFP_KERNEL); in acpi_nvs_register()
43 if (!region) in acpi_nvs_register()
45 region->phys_start = start; in acpi_nvs_register()
46 region->size = size; in acpi_nvs_register()
47 list_add_tail(&region->node, &nvs_region_list); in acpi_nvs_register()
56 struct nvs_region *region; in acpi_nvs_for_each_region() local
58 list_for_each_entry(region, in acpi_nvs_for_each_region()
[all...]
/kernel/linux/linux-5.10/drivers/md/
H A Ddm-region-hash.c9 #include <linux/dm-region-hash.h>
19 #define DM_MSG_PREFIX "region hash"
25 * region can be in one of three states: clean, dirty,
28 * In addition to being present in the hash table a region _may_
43 * io, up the recovery_count, and remove the region from the
61 /* holds persistent region state */
122 sector_t dm_rh_region_to_sector(struct dm_region_hash *rh, region_t region) in dm_rh_region_to_sector() argument
124 return region << rh->region_shift; in dm_rh_region_to_sector()
186 DMERR("unable to allocate region hash memory"); in dm_region_hash_create()
208 DMERR("unable to allocate region has in dm_region_hash_create()
266 rh_hash(struct dm_region_hash *rh, region_t region) rh_hash() argument
271 __rh_lookup(struct dm_region_hash *rh, region_t region) __rh_lookup() argument
288 __rh_alloc(struct dm_region_hash *rh, region_t region) __rh_alloc() argument
324 __rh_find(struct dm_region_hash *rh, region_t region) __rh_find() argument
338 dm_rh_get_state(struct dm_region_hash *rh, region_t region, int may_block) dm_rh_get_state() argument
400 region_t region = dm_rh_bio_to_region(rh, bio); dm_rh_mark_nosync() local
503 rh_inc(struct dm_region_hash *rh, region_t region) rh_inc() argument
538 dm_rh_dec(struct dm_region_hash *rh, region_t region) dm_rh_dec() argument
590 region_t region; __rh_recovery_prepare() local
[all...]
/kernel/linux/linux-6.6/drivers/md/
H A Ddm-region-hash.c10 #include <linux/dm-region-hash.h>
20 #define DM_MSG_PREFIX "region hash"
27 * region can be in one of three states: clean, dirty,
30 * In addition to being present in the hash table a region _may_
45 * io, up the recovery_count, and remove the region from the
64 /* holds persistent region state */
125 sector_t dm_rh_region_to_sector(struct dm_region_hash *rh, region_t region) in dm_rh_region_to_sector() argument
127 return region << rh->region_shift; in dm_rh_region_to_sector()
189 DMERR("unable to allocate region hash memory"); in dm_region_hash_create()
211 DMERR("unable to allocate region has in dm_region_hash_create()
269 rh_hash(struct dm_region_hash *rh, region_t region) rh_hash() argument
274 __rh_lookup(struct dm_region_hash *rh, region_t region) __rh_lookup() argument
291 __rh_alloc(struct dm_region_hash *rh, region_t region) __rh_alloc() argument
327 __rh_find(struct dm_region_hash *rh, region_t region) __rh_find() argument
341 dm_rh_get_state(struct dm_region_hash *rh, region_t region, int may_block) dm_rh_get_state() argument
403 region_t region = dm_rh_bio_to_region(rh, bio); dm_rh_mark_nosync() local
506 rh_inc(struct dm_region_hash *rh, region_t region) rh_inc() argument
541 dm_rh_dec(struct dm_region_hash *rh, region_t region) dm_rh_dec() argument
593 region_t region; __rh_recovery_prepare() local
[all...]
/kernel/linux/linux-5.10/arch/arm/mm/
H A Dpmsa-v7.c19 struct region { struct
25 static struct region __initdata mem[MPU_MAX_REGIONS];
27 static struct region __initdata xip[MPU_MAX_REGIONS];
52 /* Data-side / unified region attributes */
76 /* Optional instruction-side region attributes */
108 /* Data-side / unified region attributes */
146 static bool __init try_split_region(phys_addr_t base, phys_addr_t size, struct region *region) in try_split_region() argument
177 _set_bit(i, &region->subreg); in try_split_region()
180 _set_bit(PMSAv7_NR_SUBREGS - i, &region in try_split_region()
422 int i, region = 0, err = 0; pmsav7_setup() local
[all...]
/kernel/linux/linux-6.6/arch/arm/mm/
H A Dpmsa-v7.c19 struct region { struct
25 static struct region __initdata mem[MPU_MAX_REGIONS];
27 static struct region __initdata xip[MPU_MAX_REGIONS];
52 /* Data-side / unified region attributes */
76 /* Optional instruction-side region attributes */
108 /* Data-side / unified region attributes */
146 static bool __init try_split_region(phys_addr_t base, phys_addr_t size, struct region *region) in try_split_region() argument
177 _set_bit(i, &region->subreg); in try_split_region()
180 _set_bit(PMSAv7_NR_SUBREGS - i, &region in try_split_region()
422 int i, region = 0, err = 0; pmsav7_setup() local
[all...]
/kernel/linux/linux-5.10/drivers/mtd/maps/
H A Dscb2_flash.c13 * The BIOS marks its own memory region as 'reserved' in the e820 map. We
18 * * a 1 MiB memory region
42 * offset 0xf0000 ty 0xfffff (64k): Boot Block region
106 struct mtd_erase_region_info *region = &mtd->eraseregions[i]; in scb2_fixup_mtd() local
107 region->erasesize /= 2; in scb2_fixup_mtd()
113 * the chip, so all our erase-region info is wrong. Start cutting from in scb2_fixup_mtd()
117 struct mtd_erase_region_info *region = &mtd->eraseregions[i]; in scb2_fixup_mtd() local
119 if (region->numblocks * region->erasesize > mtd->size) { in scb2_fixup_mtd()
120 region in scb2_fixup_mtd()
[all...]
/kernel/linux/linux-6.6/drivers/mtd/maps/
H A Dscb2_flash.c13 * The BIOS marks its own memory region as 'reserved' in the e820 map. We
18 * * a 1 MiB memory region
42 * offset 0xf0000 ty 0xfffff (64k): Boot Block region
106 struct mtd_erase_region_info *region = &mtd->eraseregions[i]; in scb2_fixup_mtd() local
107 region->erasesize /= 2; in scb2_fixup_mtd()
113 * the chip, so all our erase-region info is wrong. Start cutting from in scb2_fixup_mtd()
117 struct mtd_erase_region_info *region = &mtd->eraseregions[i]; in scb2_fixup_mtd() local
119 if (region->numblocks * region->erasesize > mtd->size) { in scb2_fixup_mtd()
120 region in scb2_fixup_mtd()
[all...]
/kernel/liteos_a/fs/proc/os_adapt/
H A Dvmm_proc.c47 LosVmMapRegion *region = NULL; in OsVmDumpSeqSpaces() local
71 "\r\n\t region name base size mmu_flags pages pg/ref\n"); in OsVmDumpSeqSpaces()
76 region = (LosVmMapRegion *)pstRbNode; in OsVmDumpSeqSpaces()
77 regionPages = OsCountRegionPages(space, region, &pssPages); in OsVmDumpSeqSpaces()
78 CHAR *flagsStr = OsArchFlagsToStr(region->regionFlags); in OsVmDumpSeqSpaces()
83 region, OsGetRegionNameOrFilePath(region), region->range.base, in OsVmDumpSeqSpaces()
84 region->range.size, flagsStr, regionPages, pssPages); in OsVmDumpSeqSpaces()
86 (VOID)OsRegionOverlapCheck(space, region); in OsVmDumpSeqSpaces()
[all...]

Completed in 21 milliseconds

12345678910>>...35