/kernel/linux/linux-5.10/drivers/fpga/ |
H A D | fpga-region.c | 10 #include <linux/fpga/fpga-region.h> 36 * fpga_region_get - get an exclusive reference to a fpga region 37 * @region: FPGA Region struct 39 * Caller should call fpga_region_put() when done with region. 42 * Return -EBUSY if someone already has a reference to the region. 45 static struct fpga_region *fpga_region_get(struct fpga_region *region) in fpga_region_get() argument 47 struct device *dev = ®ion->dev; in fpga_region_get() 49 if (!mutex_trylock(®ion->mutex)) { in fpga_region_get() 57 mutex_unlock(®ion->mutex); in fpga_region_get() 63 return region; in fpga_region_get() 71 fpga_region_put(struct fpga_region *region) fpga_region_put() argument 96 fpga_region_program_fpga(struct fpga_region *region) fpga_region_program_fpga() argument 164 struct fpga_region *region = to_fpga_region(dev); compat_id_show() local 199 struct fpga_region *region; fpga_region_create() local 240 fpga_region_free(struct fpga_region *region) fpga_region_free() argument 249 struct fpga_region *region = *(struct fpga_region **)res; devm_fpga_region_release() local 275 struct fpga_region **ptr, *region; devm_fpga_region_create() local 299 fpga_region_register(struct fpga_region *region) fpga_region_register() argument 311 fpga_region_unregister(struct fpga_region *region) fpga_region_unregister() argument [all...] |
H A D | dfl-afu-dma-region.c | 27 * afu_dma_pin_pages - pin pages of given dma memory region 29 * @region: dma memory region to be pinned 35 struct dfl_afu_dma_region *region) in afu_dma_pin_pages() 37 int npages = region->length >> PAGE_SHIFT; in afu_dma_pin_pages() 45 region->pages = kcalloc(npages, sizeof(struct page *), GFP_KERNEL); in afu_dma_pin_pages() 46 if (!region->pages) { in afu_dma_pin_pages() 51 pinned = pin_user_pages_fast(region->user_addr, npages, FOLL_WRITE, in afu_dma_pin_pages() 52 region->pages); in afu_dma_pin_pages() 66 unpin_user_pages(region in afu_dma_pin_pages() 34 afu_dma_pin_pages(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) afu_dma_pin_pages() argument 82 afu_dma_unpin_pages(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) afu_dma_unpin_pages() argument 102 afu_dma_check_continuous_pages(struct dfl_afu_dma_region *region) afu_dma_check_continuous_pages() argument 124 dma_region_check_iova(struct dfl_afu_dma_region *region, u64 iova, u64 size) dma_region_check_iova() argument 143 afu_dma_region_add(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) afu_dma_region_add() argument 185 afu_dma_region_remove(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) afu_dma_region_remove() argument 207 struct dfl_afu_dma_region *region; afu_dma_region_destroy() local 252 struct dfl_afu_dma_region *region; afu_dma_region_find() local 304 struct dfl_afu_dma_region *region; afu_dma_map_region() local 382 struct dfl_afu_dma_region *region; afu_dma_unmap_region() local [all...] |
H A D | dfl-afu-region.c | 14 * afu_mmio_region_init - init function for afu mmio region support 24 #define for_each_region(region, afu) \ 25 list_for_each_entry((region), &(afu)->regions, node) 30 struct dfl_afu_mmio_region *region; in get_region_by_index() local 32 for_each_region(region, afu) in get_region_by_index() 33 if (region->index == region_index) in get_region_by_index() 34 return region; in get_region_by_index() 40 * afu_mmio_region_add - add a mmio region to given feature dev. 42 * @region_index: region index. 43 * @region_size: region siz 52 struct dfl_afu_mmio_region *region; afu_mmio_region_add() local 98 struct dfl_afu_mmio_region *tmp, *region; afu_mmio_region_destroy() local 116 struct dfl_afu_mmio_region *region; afu_mmio_region_get_by_index() local 150 struct dfl_afu_mmio_region *region; afu_mmio_region_get_by_offset() local [all...] |
H A D | of-fpga-region.c | 10 #include <linux/fpga/fpga-region.h> 20 { .compatible = "fpga-region", }, 26 * of_fpga_region_find - find FPGA region 29 * Caller will need to put_device(®ion->dev) when done. 40 * @np: device node of FPGA region 42 * Get FPGA Manager from "fpga-mgr" property or from ancestor region. 55 if (of_device_is_compatible(np, "fpga-region")) { in of_fpga_region_get_mgr() 73 * @region: FPGA region 80 * Caller should call fpga_bridges_put(®ion 86 of_fpga_region_get_bridges(struct fpga_region *region) of_fpga_region_get_bridges() argument 192 of_fpga_region_parse_ov( struct fpga_region *region, struct device_node *overlay) of_fpga_region_parse_ov() argument 284 of_fpga_region_notify_pre_apply(struct fpga_region *region, struct of_overlay_notify_data *nd) of_fpga_region_notify_pre_apply() argument 324 of_fpga_region_notify_post_remove(struct fpga_region *region, struct of_overlay_notify_data *nd) of_fpga_region_notify_post_remove() argument 348 struct fpga_region *region; of_fpga_region_notify() local 399 struct fpga_region *region; of_fpga_region_probe() local 432 struct fpga_region *region = platform_get_drvdata(pdev); of_fpga_region_remove() local [all...] |
H A D | dfl-fme-region.c | 18 #include <linux/fpga/fpga-region.h> 22 static int fme_region_get_bridges(struct fpga_region *region) in fme_region_get_bridges() argument 24 struct dfl_fme_region_pdata *pdata = region->priv; in fme_region_get_bridges() 27 return fpga_bridge_get_to_list(dev, region->info, ®ion->bridge_list); in fme_region_get_bridges() 34 struct fpga_region *region; in fme_region_probe() local 42 region = devm_fpga_region_create(dev, mgr, fme_region_get_bridges); in fme_region_probe() 43 if (!region) { in fme_region_probe() 48 region->priv = pdata; in fme_region_probe() 49 region in fme_region_probe() 67 struct fpga_region *region = platform_get_drvdata(pdev); fme_region_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/fpga/ |
H A D | dfl-afu-dma-region.c | 27 * afu_dma_pin_pages - pin pages of given dma memory region 29 * @region: dma memory region to be pinned 35 struct dfl_afu_dma_region *region) in afu_dma_pin_pages() 37 int npages = region->length >> PAGE_SHIFT; in afu_dma_pin_pages() 45 region->pages = kcalloc(npages, sizeof(struct page *), GFP_KERNEL); in afu_dma_pin_pages() 46 if (!region->pages) { in afu_dma_pin_pages() 51 pinned = pin_user_pages_fast(region->user_addr, npages, FOLL_WRITE, in afu_dma_pin_pages() 52 region->pages); in afu_dma_pin_pages() 66 unpin_user_pages(region in afu_dma_pin_pages() 34 afu_dma_pin_pages(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) afu_dma_pin_pages() argument 82 afu_dma_unpin_pages(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) afu_dma_unpin_pages() argument 102 afu_dma_check_continuous_pages(struct dfl_afu_dma_region *region) afu_dma_check_continuous_pages() argument 124 dma_region_check_iova(struct dfl_afu_dma_region *region, u64 iova, u64 size) dma_region_check_iova() argument 143 afu_dma_region_add(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) afu_dma_region_add() argument 185 afu_dma_region_remove(struct dfl_feature_platform_data *pdata, struct dfl_afu_dma_region *region) afu_dma_region_remove() argument 207 struct dfl_afu_dma_region *region; afu_dma_region_destroy() local 252 struct dfl_afu_dma_region *region; afu_dma_region_find() local 304 struct dfl_afu_dma_region *region; afu_dma_map_region() local 382 struct dfl_afu_dma_region *region; afu_dma_unmap_region() local [all...] |
H A D | fpga-region.c | 10 #include <linux/fpga/fpga-region.h> 36 * fpga_region_get - get an exclusive reference to an fpga region 37 * @region: FPGA Region struct 39 * Caller should call fpga_region_put() when done with region. 43 * * -EBUSY if someone already has a reference to the region. 46 static struct fpga_region *fpga_region_get(struct fpga_region *region) in fpga_region_get() argument 48 struct device *dev = ®ion->dev; in fpga_region_get() 50 if (!mutex_trylock(®ion->mutex)) { in fpga_region_get() 58 mutex_unlock(®ion->mutex); in fpga_region_get() 64 return region; in fpga_region_get() 72 fpga_region_put(struct fpga_region *region) fpga_region_put() argument 97 fpga_region_program_fpga(struct fpga_region *region) fpga_region_program_fpga() argument 165 struct fpga_region *region = to_fpga_region(dev); compat_id_show() local 193 struct fpga_region *region; fpga_region_register_full() local 277 fpga_region_unregister(struct fpga_region *region) fpga_region_unregister() argument 285 struct fpga_region *region = to_fpga_region(dev); fpga_region_dev_release() local [all...] |
H A D | dfl-afu-region.c | 14 * afu_mmio_region_init - init function for afu mmio region support 24 #define for_each_region(region, afu) \ 25 list_for_each_entry((region), &(afu)->regions, node) 30 struct dfl_afu_mmio_region *region; in get_region_by_index() local 32 for_each_region(region, afu) in get_region_by_index() 33 if (region->index == region_index) in get_region_by_index() 34 return region; in get_region_by_index() 40 * afu_mmio_region_add - add a mmio region to given feature dev. 43 * @region_index: region index. 44 * @region_size: region siz 53 struct dfl_afu_mmio_region *region; afu_mmio_region_add() local 99 struct dfl_afu_mmio_region *tmp, *region; afu_mmio_region_destroy() local 117 struct dfl_afu_mmio_region *region; afu_mmio_region_get_by_index() local 151 struct dfl_afu_mmio_region *region; afu_mmio_region_get_by_offset() local [all...] |
H A D | of-fpga-region.c | 10 #include <linux/fpga/fpga-region.h> 22 { .compatible = "fpga-region", }, 28 * of_fpga_region_find - find FPGA region 31 * Caller will need to put_device(®ion->dev) when done. 42 * @np: device node of FPGA region 44 * Get FPGA Manager from "fpga-mgr" property or from ancestor region. 57 if (of_device_is_compatible(np, "fpga-region")) { in of_fpga_region_get_mgr() 75 * @region: FPGA region 82 * Caller should call fpga_bridges_put(®ion 88 of_fpga_region_get_bridges(struct fpga_region *region) of_fpga_region_get_bridges() argument 195 of_fpga_region_parse_ov(struct fpga_region *region, struct device_node *overlay) of_fpga_region_parse_ov() argument 286 of_fpga_region_notify_pre_apply(struct fpga_region *region, struct of_overlay_notify_data *nd) of_fpga_region_notify_pre_apply() argument 326 of_fpga_region_notify_post_remove(struct fpga_region *region, struct of_overlay_notify_data *nd) of_fpga_region_notify_post_remove() argument 350 struct fpga_region *region; of_fpga_region_notify() local 401 struct fpga_region *region; of_fpga_region_probe() local 430 struct fpga_region *region = platform_get_drvdata(pdev); of_fpga_region_remove() local [all...] |
/kernel/linux/linux-6.6/net/devlink/ |
H A D | region.c | 29 struct devlink_region *region; member 37 struct devlink_region *region; in devlink_region_get_by_name() local 39 list_for_each_entry(region, &devlink->region_list, list) in devlink_region_get_by_name() 40 if (!strcmp(region->ops->name, region_name)) in devlink_region_get_by_name() 41 return region; in devlink_region_get_by_name() 50 struct devlink_region *region; in devlink_port_region_get_by_name() local 52 list_for_each_entry(region, &port->region_list, list) in devlink_port_region_get_by_name() 53 if (!strcmp(region->ops->name, region_name)) in devlink_port_region_get_by_name() 54 return region; in devlink_port_region_get_by_name() 60 devlink_region_snapshot_get_by_id(struct devlink_region *region, u3 argument 94 devlink_nl_region_snapshots_id_put(struct sk_buff *msg, struct devlink *devlink, struct devlink_region *region) devlink_nl_region_snapshots_id_put() argument 121 devlink_nl_region_fill(struct sk_buff *msg, struct devlink *devlink, enum devlink_command cmd, u32 portid, u32 seq, int flags, struct devlink_region *region) devlink_nl_region_fill() argument 172 devlink_nl_region_notify_build(struct devlink_region *region, struct devlink_snapshot *snapshot, enum devlink_command cmd, u32 portid, u32 seq) devlink_nl_region_notify_build() argument 229 devlink_nl_region_notify(struct devlink_region *region, struct devlink_snapshot *snapshot, enum devlink_command cmd) devlink_nl_region_notify() argument 250 struct devlink_region *region; devlink_regions_notify_register() local 258 struct devlink_region *region; devlink_regions_notify_unregister() local 417 __devlink_region_snapshot_create(struct devlink_region *region, u8 *data, u32 snapshot_id) __devlink_region_snapshot_create() argument 457 devlink_region_snapshot_del(struct devlink_region *region, struct devlink_snapshot *snapshot) devlink_region_snapshot_del() argument 476 struct devlink_region *region; devlink_nl_region_get_doit() local 522 struct devlink_region *region; devlink_nl_cmd_region_get_port_dumpit() local 550 struct devlink_region *region; devlink_nl_region_get_dump_one() local 596 struct devlink_region *region; devlink_nl_cmd_region_del() local 642 struct devlink_region *region; devlink_nl_cmd_region_new() local 850 struct devlink_region *region = cb_priv; devlink_region_port_direct_fill() local 860 struct devlink_region *region = cb_priv; devlink_region_direct_fill() local 876 struct devlink_region *region; devlink_nl_cmd_region_read_dumpit() local 1050 struct devlink_region *region; devl_region_create() local 1092 struct devlink_region *region; devlink_region_create() local 1118 struct devlink_region *region; devlink_port_region_create() local 1163 devl_region_destroy(struct devlink_region *region) devl_region_destroy() argument 1191 devlink_region_destroy(struct devlink_region *region) devlink_region_destroy() argument 1250 devlink_region_snapshot_create(struct devlink_region *region, u8 *data, u32 snapshot_id) devlink_region_snapshot_create() argument [all...] |
/kernel/liteos_a/kernel/base/vm/ |
H A D | los_vm_fault.c | 58 STATIC STATUS_T OsVmRegionPermissionCheck(LosVmMapRegion *region, UINT32 flags) in OsVmRegionPermissionCheck() argument 60 if ((region->regionFlags & VM_MAP_REGION_FLAG_PERM_READ) != VM_MAP_REGION_FLAG_PERM_READ) { in OsVmRegionPermissionCheck() 61 VM_ERR("read permission check failed operation flags %x, region flags %x", flags, region->regionFlags); in OsVmRegionPermissionCheck() 66 if ((region->regionFlags & VM_MAP_REGION_FLAG_PERM_WRITE) != VM_MAP_REGION_FLAG_PERM_WRITE) { in OsVmRegionPermissionCheck() 67 VM_ERR("write permission check failed operation flags %x, region flags %x", flags, region->regionFlags); in OsVmRegionPermissionCheck() 73 if ((region->regionFlags & VM_MAP_REGION_FLAG_PERM_EXECUTE) != VM_MAP_REGION_FLAG_PERM_EXECUTE) { in OsVmRegionPermissionCheck() 74 VM_ERR("exec permission check failed operation flags %x, region flags %x", flags, region in OsVmRegionPermissionCheck() 100 OsDoReadFault(LosVmMapRegion *region, LosVmPgFault *vmPgFault) OsDoReadFault() argument 144 OsCowUnmapOrg(LosArchMmu *archMmu, LosVmMapRegion *region, LosVmPgFault *vmf) OsCowUnmapOrg() argument 172 OsDoCowFault(LosVmMapRegion *region, LosVmPgFault *vmPgFault) OsDoCowFault() argument 256 OsDoSharedFault(LosVmMapRegion *region, LosVmPgFault *vmPgFault) OsDoSharedFault() argument 323 OsDoFileFault(LosVmMapRegion *region, LosVmPgFault *vmPgFault, UINT32 flags) OsDoFileFault() argument 342 LosVmMapRegion *region = NULL; OsVmPageFaultHandler() local [all...] |
H A D | los_vm_dump.c | 57 const CHAR *OsGetRegionNameOrFilePath(LosVmMapRegion *region) in OsGetRegionNameOrFilePath() argument 60 if (region == NULL) { in OsGetRegionNameOrFilePath() 63 } else if (LOS_IsRegionFileValid(region)) { in OsGetRegionNameOrFilePath() 64 vnode = region->unTypeData.rf.vnode; in OsGetRegionNameOrFilePath() 67 } else if (region->regionFlags & VM_MAP_REGION_FLAG_HEAP) { in OsGetRegionNameOrFilePath() 69 } else if (region->regionFlags & VM_MAP_REGION_FLAG_STACK) { in OsGetRegionNameOrFilePath() 71 } else if (region->regionFlags & VM_MAP_REGION_FLAG_TEXT) { in OsGetRegionNameOrFilePath() 73 } else if (region->regionFlags & VM_MAP_REGION_FLAG_VDSO) { in OsGetRegionNameOrFilePath() 75 } else if (region->regionFlags & VM_MAP_REGION_FLAG_MMAP) { in OsGetRegionNameOrFilePath() 77 } else if (region in OsGetRegionNameOrFilePath() 87 OsRegionOverlapCheckUnlock(LosVmSpace *space, LosVmMapRegion *region) OsRegionOverlapCheckUnlock() argument 115 LosVmMapRegion *region = NULL; OsShellCmdProcessVmUsage() local 202 LosVmMapRegion *region = NULL; OsUProcessPmUsage() local 278 OsCountRegionPages(LosVmSpace *space, LosVmMapRegion *region, UINT32 *pssPages) OsCountRegionPages() argument 315 LosVmMapRegion *region = NULL; OsCountAspacePages() local 380 OsDumpRegion2(LosVmSpace *space, LosVmMapRegion *region) OsDumpRegion2() argument 398 LosVmMapRegion *region = NULL; OsDumpAspace() local 439 OsRegionOverlapCheck(LosVmSpace *space, LosVmMapRegion *region) OsRegionOverlapCheck() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum1_acl_tcam.c | 14 struct mlxsw_sp_acl_tcam_region *region; member 62 struct mlxsw_sp1_acl_tcam_region *region) in mlxsw_sp1_acl_ctcam_region_catchall_add() 67 mlxsw_sp_acl_ctcam_chunk_init(®ion->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_add() 68 ®ion->catchall.cchunk, in mlxsw_sp1_acl_ctcam_region_catchall_add() 81 err = mlxsw_sp_acl_ctcam_entry_add(mlxsw_sp, ®ion->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_add() 82 ®ion->catchall.cchunk, in mlxsw_sp1_acl_ctcam_region_catchall_add() 83 ®ion->catchall.centry, in mlxsw_sp1_acl_ctcam_region_catchall_add() 87 region->catchall.rulei = rulei; in mlxsw_sp1_acl_ctcam_region_catchall_add() 95 mlxsw_sp_acl_ctcam_chunk_fini(®ion->catchall.cchunk); in mlxsw_sp1_acl_ctcam_region_catchall_add() 101 struct mlxsw_sp1_acl_tcam_region *region) in mlxsw_sp1_acl_ctcam_region_catchall_del() 61 mlxsw_sp1_acl_ctcam_region_catchall_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp1_acl_tcam_region *region) mlxsw_sp1_acl_ctcam_region_catchall_add() argument 100 mlxsw_sp1_acl_ctcam_region_catchall_del(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp1_acl_tcam_region *region) mlxsw_sp1_acl_ctcam_region_catchall_del() argument 118 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_region_init() local 140 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_region_fini() local 147 mlxsw_sp1_acl_tcam_region_associate(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region) mlxsw_sp1_acl_tcam_region_associate() argument 156 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_chunk_init() local 175 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_entry_add() local 188 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_entry_del() local 227 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_entry_activity_get() local [all...] |
H A D | spectrum_acl_ctcam.c | 15 struct mlxsw_sp_acl_tcam_region *region, in mlxsw_sp_acl_ctcam_region_resize() 21 region->key_type, new_size, region->id, in mlxsw_sp_acl_ctcam_region_resize() 22 region->tcam_region_info); in mlxsw_sp_acl_ctcam_region_resize() 28 struct mlxsw_sp_acl_tcam_region *region, in mlxsw_sp_acl_ctcam_region_move() 34 region->tcam_region_info, src_offset, in mlxsw_sp_acl_ctcam_region_move() 35 region->tcam_region_info, dst_offset, size); in mlxsw_sp_acl_ctcam_region_move() 46 struct mlxsw_sp_acl_tcam_region *region = cregion->region; in mlxsw_sp_acl_ctcam_region_entry_insert() local 61 region in mlxsw_sp_acl_ctcam_region_entry_insert() 14 mlxsw_sp_acl_ctcam_region_resize(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region, u16 new_size) mlxsw_sp_acl_ctcam_region_resize() argument 27 mlxsw_sp_acl_ctcam_region_move(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region, u16 src_offset, u16 dst_offset, u16 size) mlxsw_sp_acl_ctcam_region_move() argument 125 struct mlxsw_sp_acl_tcam_region *region = cregion->region; mlxsw_sp_acl_ctcam_region_parman_resize() local 141 struct mlxsw_sp_acl_tcam_region *region = cregion->region; mlxsw_sp_acl_ctcam_region_parman_move() local 157 mlxsw_sp_acl_ctcam_region_init(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_tcam_region *region, const struct mlxsw_sp_acl_ctcam_region_ops *ops) mlxsw_sp_acl_ctcam_region_init() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum1_acl_tcam.c | 14 struct mlxsw_sp_acl_tcam_region *region; member 62 struct mlxsw_sp1_acl_tcam_region *region) in mlxsw_sp1_acl_ctcam_region_catchall_add() 67 mlxsw_sp_acl_ctcam_chunk_init(®ion->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_add() 68 ®ion->catchall.cchunk, in mlxsw_sp1_acl_ctcam_region_catchall_add() 81 err = mlxsw_sp_acl_ctcam_entry_add(mlxsw_sp, ®ion->cregion, in mlxsw_sp1_acl_ctcam_region_catchall_add() 82 ®ion->catchall.cchunk, in mlxsw_sp1_acl_ctcam_region_catchall_add() 83 ®ion->catchall.centry, in mlxsw_sp1_acl_ctcam_region_catchall_add() 87 region->catchall.rulei = rulei; in mlxsw_sp1_acl_ctcam_region_catchall_add() 95 mlxsw_sp_acl_ctcam_chunk_fini(®ion->catchall.cchunk); in mlxsw_sp1_acl_ctcam_region_catchall_add() 101 struct mlxsw_sp1_acl_tcam_region *region) in mlxsw_sp1_acl_ctcam_region_catchall_del() 61 mlxsw_sp1_acl_ctcam_region_catchall_add(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp1_acl_tcam_region *region) mlxsw_sp1_acl_ctcam_region_catchall_add() argument 100 mlxsw_sp1_acl_ctcam_region_catchall_del(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp1_acl_tcam_region *region) mlxsw_sp1_acl_ctcam_region_catchall_del() argument 118 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_region_init() local 140 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_region_fini() local 147 mlxsw_sp1_acl_tcam_region_associate(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region) mlxsw_sp1_acl_tcam_region_associate() argument 156 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_chunk_init() local 175 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_entry_add() local 188 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_entry_del() local 227 struct mlxsw_sp1_acl_tcam_region *region = region_priv; mlxsw_sp1_acl_tcam_entry_activity_get() local [all...] |
H A D | spectrum_acl_ctcam.c | 15 struct mlxsw_sp_acl_tcam_region *region, in mlxsw_sp_acl_ctcam_region_resize() 21 region->key_type, new_size, region->id, in mlxsw_sp_acl_ctcam_region_resize() 22 region->tcam_region_info); in mlxsw_sp_acl_ctcam_region_resize() 28 struct mlxsw_sp_acl_tcam_region *region, in mlxsw_sp_acl_ctcam_region_move() 34 region->tcam_region_info, src_offset, in mlxsw_sp_acl_ctcam_region_move() 35 region->tcam_region_info, dst_offset, size); in mlxsw_sp_acl_ctcam_region_move() 46 struct mlxsw_sp_acl_tcam_region *region = cregion->region; in mlxsw_sp_acl_ctcam_region_entry_insert() local 61 region in mlxsw_sp_acl_ctcam_region_entry_insert() 14 mlxsw_sp_acl_ctcam_region_resize(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region, u16 new_size) mlxsw_sp_acl_ctcam_region_resize() argument 27 mlxsw_sp_acl_ctcam_region_move(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_tcam_region *region, u16 src_offset, u16 dst_offset, u16 size) mlxsw_sp_acl_ctcam_region_move() argument 125 struct mlxsw_sp_acl_tcam_region *region = cregion->region; mlxsw_sp_acl_ctcam_region_parman_resize() local 141 struct mlxsw_sp_acl_tcam_region *region = cregion->region; mlxsw_sp_acl_ctcam_region_parman_move() local 157 mlxsw_sp_acl_ctcam_region_init(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_acl_ctcam_region *cregion, struct mlxsw_sp_acl_tcam_region *region, const struct mlxsw_sp_acl_ctcam_region_ops *ops) mlxsw_sp_acl_ctcam_region_init() argument [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/ |
H A D | kvm_util.c | 178 * When phy_pages is non-zero, a memory region of phy_pages physical pages 289 struct userspace_mem_region *region; in kvm_vm_restart() local 295 list_for_each_entry(region, &vmp->userspace_mem_regions, list) { in kvm_vm_restart() 296 int ret = ioctl(vmp->fd, KVM_SET_USER_MEMORY_REGION, ®ion->region); in kvm_vm_restart() 301 ret, errno, region->region.slot, in kvm_vm_restart() 302 region->region.flags, in kvm_vm_restart() 303 region in kvm_vm_restart() 353 struct userspace_mem_region *region; userspace_mem_region_find() local 386 struct userspace_mem_region *region; kvm_userspace_memory_region_find() local 467 __vm_mem_region_delete(struct kvm_vm *vm, struct userspace_mem_region *region) __vm_mem_region_delete() argument 491 struct userspace_mem_region *region, *tmp; kvm_vm_free() local 608 struct userspace_mem_region *region; vm_userspace_mem_region_add() local 746 struct userspace_mem_region *region; memslot2region() local 778 struct userspace_mem_region *region; vm_mem_region_set_flags() local 807 struct userspace_mem_region *region; vm_mem_region_move() local 1106 struct userspace_mem_region *region; addr_gpa2hva() local 1139 struct userspace_mem_region *region; addr_hva2gpa() local 1602 struct userspace_mem_region *region; vm_dump() local 1711 struct userspace_mem_region *region; vm_phy_pages_alloc() local [all...] |
/kernel/linux/linux-5.10/arch/um/kernel/ |
H A D | physmem.c | 127 struct iomem_region *region = iomem_regions; in phys_mapping() local 129 while (region != NULL) { in phys_mapping() 130 if ((phys >= region->phys) && in phys_mapping() 131 (phys < region->phys + region->size)) { in phys_mapping() 132 fd = region->fd; in phys_mapping() 133 *offset_out = phys - region->phys; in phys_mapping() 136 region = region->next; in phys_mapping() 168 " Configure <file> as an IO memory region name 183 struct iomem_region *region = iomem_regions; find_iomem() local 200 struct iomem_region *region = iomem_regions; setup_iomem() local [all...] |
/kernel/linux/linux-6.6/arch/um/kernel/ |
H A D | physmem.c | 127 struct iomem_region *region = iomem_regions; in phys_mapping() local 129 while (region != NULL) { in phys_mapping() 130 if ((phys >= region->phys) && in phys_mapping() 131 (phys < region->phys + region->size)) { in phys_mapping() 132 fd = region->fd; in phys_mapping() 133 *offset_out = phys - region->phys; in phys_mapping() 136 region = region->next; in phys_mapping() 168 " Configure <file> as an IO memory region name 183 struct iomem_region *region = iomem_regions; find_iomem() local 200 struct iomem_region *region = iomem_regions; setup_iomem() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/lib/ |
H A D | kvm_util.c | 199 * range addressed by a single page table into a low and high region 201 * the VA region spans [0, 2^(va_bits - 1)), [-(2^(va_bits - 1), -1]. 336 * maximum page table size for a memory region will be when the in vm_nr_pages_required() 374 * MMIO region would prevent silently clobbering the MMIO region. in __vm_create() 377 ucall_init(vm, slot0->region.guest_phys_addr + slot0->region.memory_size); in __vm_create() 449 struct userspace_mem_region *region; in kvm_vm_restart() local 455 hash_for_each(vmp->regions.slot_hash, ctr, region, slot_node) { in kvm_vm_restart() 456 int ret = ioctl(vmp->fd, KVM_SET_USER_MEMORY_REGION, ®ion in kvm_vm_restart() 576 struct userspace_mem_region *region = userspace_mem_region_find() local 613 struct userspace_mem_region *region; kvm_userspace_memory_region_find() local 676 __vm_mem_region_delete(struct kvm_vm *vm, struct userspace_mem_region *region, bool unlink) __vm_mem_region_delete() argument 711 struct userspace_mem_region *region; kvm_vm_free() local 826 vm_userspace_mem_region_gpa_insert(struct rb_root *gpa_tree, struct userspace_mem_region *region) vm_userspace_mem_region_gpa_insert() argument 852 vm_userspace_mem_region_hva_insert(struct rb_root *hva_tree, struct userspace_mem_region *region) vm_userspace_mem_region_hva_insert() argument 881 struct kvm_userspace_memory_region region = { __vm_set_user_memory_region() local 929 struct userspace_mem_region *region; vm_userspace_mem_region_add() local 1091 struct userspace_mem_region *region; memslot2region() local 1123 struct userspace_mem_region *region; vm_mem_region_set_flags() local 1152 struct userspace_mem_region *region; vm_mem_region_move() local 1480 struct userspace_mem_region *region; addr_gpa2hva() local 1514 struct userspace_mem_region *region = addr_hva2gpa() local 1554 struct userspace_mem_region *region; addr_gpa2alias() local 1813 struct userspace_mem_region *region; vm_dump() local 1943 struct userspace_mem_region *region; vm_phy_pages_alloc() local [all...] |
/kernel/linux/linux-5.10/arch/x86/boot/compressed/ |
H A D | kaslr.c | 157 * memmap=nn@ss specifies usable region, should in parse_memmap() 395 * Avoid the region that is unsafe to overlap during in mem_avoid_init() 434 * overlap region with the lowest address. 496 static void store_slot_info(struct mem_vector *region, unsigned long image_size) in store_slot_info() argument 503 slot_area.addr = region->start; in store_slot_info() 504 slot_area.num = 1 + (region->size - image_size) / CONFIG_PHYSICAL_ALIGN; in store_slot_info() 511 * Skip as many 1GB huge pages as possible in the passed region 515 process_gb_huge_pages(struct mem_vector *region, unsigned long image_size) in process_gb_huge_pages() argument 522 store_slot_info(region, image_size); in process_gb_huge_pages() 526 /* Are there any 1GB pages in the region in process_gb_huge_pages() 588 struct mem_vector region, overlap; __process_mem_region() local 628 process_mem_region(struct mem_vector *region, unsigned long minimum, unsigned long image_size) process_mem_region() argument 688 struct mem_vector region; process_efi_entries() local 764 struct mem_vector region; process_e820_entries() local [all...] |
/kernel/linux/linux-6.6/arch/x86/boot/compressed/ |
H A D | kaslr.c | 153 * memmap=nn@ss specifies usable region, should in parse_memmap() 391 * Avoid the region that is unsafe to overlap during in mem_avoid_init() 430 * overlap region with the lowest address. 492 static void store_slot_info(struct mem_vector *region, unsigned long image_size) in store_slot_info() argument 499 slot_area.addr = region->start; in store_slot_info() 500 slot_area.num = 1 + (region->size - image_size) / CONFIG_PHYSICAL_ALIGN; in store_slot_info() 507 * Skip as many 1GB huge pages as possible in the passed region 511 process_gb_huge_pages(struct mem_vector *region, unsigned long image_size) in process_gb_huge_pages() argument 518 store_slot_info(region, image_size); in process_gb_huge_pages() 522 /* Are there any 1GB pages in the region in process_gb_huge_pages() 584 struct mem_vector region, overlap; __process_mem_region() local 624 process_mem_region(struct mem_vector *region, unsigned long minimum, unsigned long image_size) process_mem_region() argument 711 struct mem_vector region; process_efi_entries() local 776 struct mem_vector region; process_e820_entries() local [all...] |
/kernel/linux/linux-5.10/mm/ |
H A D | nommu.c | 95 * region. This test is intentionally done in reverse order, in kobjsize() 417 * initialise the percpu counter for VM and region record slabs 429 * validate the region tree 430 * - the caller must hold the region lock 435 struct vm_region *region, *last; in validate_nommu_regions() local 447 region = rb_entry(p, struct vm_region, vm_rb); in validate_nommu_regions() 450 BUG_ON(region->vm_end <= region->vm_start); in validate_nommu_regions() 451 BUG_ON(region->vm_top < region in validate_nommu_regions() 466 add_nommu_region(struct vm_region *region) add_nommu_region() argument 497 delete_nommu_region(struct vm_region *region) delete_nommu_region() argument 551 put_nommu_region(struct vm_region *region) put_nommu_region() argument 975 do_mmap_private(struct vm_area_struct *vma, struct vm_region *region, unsigned long len, unsigned long capabilities) do_mmap_private() argument 1079 struct vm_region *region; do_mmap() local 1358 struct vm_region *region; split_vma() local 1421 struct vm_region *region; shrink_vma() local 1766 struct vm_region *region; nommu_shrink_inode_mappings() local [all...] |
/kernel/linux/linux-6.6/mm/ |
H A D | nommu.c | 94 * region. This test is intentionally done in reverse order, in kobjsize() 407 * initialise the percpu counter for VM and region record slabs 419 * validate the region tree 420 * - the caller must hold the region lock 425 struct vm_region *region, *last; in validate_nommu_regions() local 437 region = rb_entry(p, struct vm_region, vm_rb); in validate_nommu_regions() 440 BUG_ON(region->vm_end <= region->vm_start); in validate_nommu_regions() 441 BUG_ON(region->vm_top < region in validate_nommu_regions() 456 add_nommu_region(struct vm_region *region) add_nommu_region() argument 487 delete_nommu_region(struct vm_region *region) delete_nommu_region() argument 541 put_nommu_region(struct vm_region *region) put_nommu_region() argument 916 do_mmap_private(struct vm_area_struct *vma, struct vm_region *region, unsigned long len, unsigned long capabilities) do_mmap_private() argument 1025 struct vm_region *region; do_mmap() local 1312 struct vm_region *region; split_vma() local 1390 struct vm_region *region; vmi_shrink_vma() local 1742 struct vm_region *region; nommu_shrink_inode_mappings() local [all...] |
/kernel/linux/linux-5.10/drivers/s390/cio/ |
H A D | vfio_ccw_chp.c | 21 struct ccw_schib_region *region; in vfio_ccw_schib_region_read() local 24 if (pos + count > sizeof(*region)) in vfio_ccw_schib_region_read() 28 region = private->region[i].data; in vfio_ccw_schib_region_read() 35 memcpy(region, &private->sch->schib, sizeof(*region)); in vfio_ccw_schib_region_read() 37 if (copy_to_user(buf, (void *)region + pos, count)) { in vfio_ccw_schib_region_read() 58 struct vfio_ccw_region *region) in vfio_ccw_schib_region_release() 85 struct ccw_crw_region *region; in vfio_ccw_crw_region_read() local 89 if (pos + count > sizeof(*region)) in vfio_ccw_crw_region_read() 57 vfio_ccw_schib_region_release(struct vfio_ccw_private *private, struct vfio_ccw_region *region) vfio_ccw_schib_region_release() argument 129 vfio_ccw_crw_region_release(struct vfio_ccw_private *private, struct vfio_ccw_region *region) vfio_ccw_crw_region_release() argument [all...] |