/drivers/fpga/ |
D | dfl-afu-dma-region.c | 35 struct dfl_afu_dma_region *region) in afu_dma_pin_pages() argument 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->pages, pinned); in afu_dma_pin_pages() 68 kfree(region->pages); in afu_dma_pin_pages() 83 struct dfl_afu_dma_region *region) in afu_dma_unpin_pages() argument 85 long npages = region->length >> PAGE_SHIFT; in afu_dma_unpin_pages() [all …]
|
D | fpga-region.c | 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 static void fpga_region_put(struct fpga_region *region) in fpga_region_put() argument 73 struct device *dev = ®ion->dev; in fpga_region_put() 79 mutex_unlock(®ion->mutex); in fpga_region_put() 96 int fpga_region_program_fpga(struct fpga_region *region) in fpga_region_program_fpga() argument 98 struct device *dev = ®ion->dev; in fpga_region_program_fpga() [all …]
|
D | dfl-afu-region.c | 24 #define for_each_region(region, afu) \ argument 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() 52 struct dfl_afu_mmio_region *region; in afu_mmio_region_add() local 56 region = devm_kzalloc(&pdata->dev->dev, sizeof(*region), GFP_KERNEL); in afu_mmio_region_add() 57 if (!region) in afu_mmio_region_add() 60 region->index = region_index; in afu_mmio_region_add() [all …]
|
D | of-fpga-region.c | 86 static int of_fpga_region_get_bridges(struct fpga_region *region) in of_fpga_region_get_bridges() argument 88 struct device *dev = ®ion->dev; in of_fpga_region_get_bridges() 90 struct fpga_image_info *info = region->info; in of_fpga_region_get_bridges() 96 ®ion->bridge_list); in of_fpga_region_get_bridges() 128 ®ion->bridge_list); in of_fpga_region_get_bridges() 133 fpga_bridges_put(®ion->bridge_list); in of_fpga_region_get_bridges() 193 struct fpga_region *region, in of_fpga_region_parse_ov() argument 196 struct device *dev = ®ion->dev; in of_fpga_region_parse_ov() 201 if (region->info) { in of_fpga_region_parse_ov() 284 static int of_fpga_region_notify_pre_apply(struct fpga_region *region, in of_fpga_region_notify_pre_apply() argument [all …]
|
D | dfl-fme-region.c | 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->compat_id = mgr->compat_id; in fme_region_probe() 50 platform_set_drvdata(pdev, region); in fme_region_probe() 52 ret = fpga_region_register(region); in fme_region_probe() [all …]
|
D | dfl-fme-pr.c | 52 struct fpga_region *region; in dfl_fme_region_find() local 58 region = fpga_region_class_find(NULL, &fme_region->region->dev, in dfl_fme_region_find() 60 if (!region) in dfl_fme_region_find() 63 return region; in dfl_fme_region_find() 72 struct fpga_region *region; in fme_pr() local 134 region = dfl_fme_region_find(fme, port_pr.port_id); in fme_pr() 135 if (!region) { in fme_pr() 140 fpga_image_info_free(region->info); in fme_pr() 145 region->info = info; in fme_pr() 147 ret = fpga_region_program_fpga(region); in fme_pr() [all …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
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() argument 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() argument [all …]
|
D | spectrum_acl_ctcam.c | 15 struct mlxsw_sp_acl_tcam_region *region, in mlxsw_sp_acl_ctcam_region_resize() argument 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() argument 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->tcam_region_info, in mlxsw_sp_acl_ctcam_region_entry_insert() 65 mlxsw_afk_encode(afk, region->key_info, &rulei->values, key, mask); in mlxsw_sp_acl_ctcam_region_entry_insert() 94 cregion->region->tcam_region_info, in mlxsw_sp_acl_ctcam_region_entry_remove() [all …]
|
D | spectrum_acl_tcam.c | 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->id, multi); in mlxsw_sp_acl_tcam_group_update() 380 struct mlxsw_sp_acl_tcam_region *region, in mlxsw_sp_acl_tcam_group_region_attach() argument 408 list_add_tail(®ion->list, pos); in mlxsw_sp_acl_tcam_group_region_attach() 409 region->group = group; in mlxsw_sp_acl_tcam_group_region_attach() [all …]
|
D | spectrum2_acl_tcam.c | 18 struct mlxsw_sp_acl_tcam_region *region; member 145 struct mlxsw_sp2_acl_tcam_region *region = region_priv; in mlxsw_sp2_acl_tcam_region_init() local 148 region->region = _region; in mlxsw_sp2_acl_tcam_region_init() 151 ®ion->aregion, in mlxsw_sp2_acl_tcam_region_init() 159 struct mlxsw_sp2_acl_tcam_region *region = region_priv; in mlxsw_sp2_acl_tcam_region_fini() local 161 mlxsw_sp_acl_atcam_region_fini(®ion->aregion); in mlxsw_sp2_acl_tcam_region_fini() 166 struct mlxsw_sp_acl_tcam_region *region) in mlxsw_sp2_acl_tcam_region_associate() argument 168 return mlxsw_sp_acl_atcam_region_associate(mlxsw_sp, region->id); in mlxsw_sp2_acl_tcam_region_associate() 173 struct mlxsw_sp2_acl_tcam_region *region = region_priv; in mlxsw_sp2_acl_tcam_region_rehash_hints_get() local 175 return mlxsw_sp_acl_atcam_rehash_hints_get(®ion->aregion); in mlxsw_sp2_acl_tcam_region_rehash_hints_get() [all …]
|
/drivers/s390/cio/ |
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() argument 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() 99 region = private->region[i].data; in vfio_ccw_crw_region_read() 102 memcpy(®ion->crw, &crw->crw, sizeof(region->crw)); in vfio_ccw_crw_region_read() [all …]
|
D | vfio_ccw_async.c | 21 struct ccw_cmd_region *region; in vfio_ccw_async_region_read() local 24 if (pos + count > sizeof(*region)) in vfio_ccw_async_region_read() 28 region = private->region[i].data; in vfio_ccw_async_region_read() 29 if (copy_to_user(buf, (void *)region + pos, count)) in vfio_ccw_async_region_read() 43 struct ccw_cmd_region *region; in vfio_ccw_async_region_write() local 46 if (pos + count > sizeof(*region)) in vfio_ccw_async_region_write() 52 region = private->region[i].data; in vfio_ccw_async_region_write() 53 if (copy_from_user((void *)region + pos, buf, count)) { in vfio_ccw_async_region_write() 60 ret = region->ret_code ? region->ret_code : count; in vfio_ccw_async_region_write() 68 struct vfio_ccw_region *region) in vfio_ccw_async_region_release() argument
|
D | vfio_ccw_ops.c | 217 struct ccw_io_region *region; in vfio_ccw_mdev_read_io_region() local 220 if (pos + count > sizeof(*region)) in vfio_ccw_mdev_read_io_region() 224 region = private->io_region; in vfio_ccw_mdev_read_io_region() 225 if (copy_to_user(buf, (void *)region + pos, count)) in vfio_ccw_mdev_read_io_region() 251 return private->region[index].ops->read(private, buf, count, in vfio_ccw_mdev_read() 263 struct ccw_io_region *region; in vfio_ccw_mdev_write_io_region() local 266 if (pos + count > sizeof(*region)) in vfio_ccw_mdev_write_io_region() 272 region = private->io_region; in vfio_ccw_mdev_write_io_region() 273 if (copy_from_user((void *)region + pos, buf, count)) { in vfio_ccw_mdev_write_io_region() 279 ret = (region->ret_code != 0) ? region->ret_code : count; in vfio_ccw_mdev_write_io_region() [all …]
|
/drivers/acpi/acpica/ |
D | evregion.c | 127 handler_desc = region_obj->region.handler; in acpi_ev_address_space_dispatch() 131 acpi_ut_get_node_name(region_obj->region.node), in acpi_ev_address_space_dispatch() 133 acpi_ut_get_region_name(region_obj->region. in acpi_ev_address_space_dispatch() 147 if (!(region_obj->region.flags & AOPOBJ_SETUP_COMPLETE)) { in acpi_ev_address_space_dispatch() 159 acpi_ut_get_region_name(region_obj->region. in acpi_ev_address_space_dispatch() 184 region. in acpi_ev_address_space_dispatch() 191 if (!(region_obj->region.flags & AOPOBJ_SETUP_COMPLETE)) { in acpi_ev_address_space_dispatch() 192 region_obj->region.flags |= AOPOBJ_SETUP_COMPLETE; in acpi_ev_address_space_dispatch() 208 address = (region_obj->region.address + region_offset); in acpi_ev_address_space_dispatch() 212 ®ion_obj->region.handler->address_space, handler, in acpi_ev_address_space_dispatch() [all …]
|
/drivers/acpi/pmic/ |
D | Kconfig | 4 bool "PMIC (Power Management Integrated Circuit) operation region support" 7 region of the PMIC chip. The operation region can be used 14 bool "ACPI operation region support for Bay Trail Crystal Cove PMIC" 17 This config adds ACPI operation region support for the Bay Trail 21 bool "ACPI operation region support for Cherry Trail Crystal Cove PMIC" 24 This config adds ACPI operation region support for the Cherry Trail 28 bool "ACPI operation region support for XPower AXP288 PMIC" 31 This config adds ACPI operation region support for XPower AXP288 PMIC. 34 bool "ACPI operation region support for BXT WhiskeyCove PMIC" 37 This config adds ACPI operation region support for BXT WhiskeyCove PMIC. [all …]
|
/drivers/mtd/maps/ |
D | pismo.c | 89 struct pismo_mem *region, const char *name, in pismo_add_device() argument 94 phys_addr_t base = region->base; in pismo_add_device() 101 res.end = base + region->size - 1; in pismo_add_device() 131 struct pismo_mem *region) in pismo_add_nor() argument 134 .width = region->width, in pismo_add_nor() 140 return pismo_add_device(pismo, i, region, "physmap-flash", in pismo_add_nor() 145 struct pismo_mem *region) in pismo_add_sram() argument 148 .bankwidth = region->width, in pismo_add_sram() 151 return pismo_add_device(pismo, i, region, "mtd-ram", in pismo_add_sram() 159 struct pismo_mem region; in pismo_add_one() local [all …]
|
/drivers/soc/ti/ |
D | knav_qmss_queue.c | 688 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->dma_start); in knav_pool_desc_dma_to_virt() 760 struct knav_region *reg_itr, *region = NULL; in knav_pool_create() local 782 region = reg_itr; in knav_pool_create() 786 if (!region) { in knav_pool_create() 807 if (num_desc > (region->num_desc - region->used_desc)) { in knav_pool_create() [all …]
|
/drivers/gpu/drm/amd/display/dmub/src/ |
D | dmub_dcn30.c | 100 REG_WRITE(DMCUB_REGION3_CW0_BASE_ADDRESS, cw0->region.base); in dmub_dcn30_backdoor_load() 102 DMCUB_REGION3_CW0_TOP_ADDRESS, cw0->region.top, in dmub_dcn30_backdoor_load() 109 REG_WRITE(DMCUB_REGION3_CW1_BASE_ADDRESS, cw1->region.base); in dmub_dcn30_backdoor_load() 111 DMCUB_REGION3_CW1_TOP_ADDRESS, cw1->region.top, in dmub_dcn30_backdoor_load() 131 if (cw2->region.base != cw2->region.top) { in dmub_dcn30_setup_windows() 134 REG_WRITE(DMCUB_REGION3_CW2_BASE_ADDRESS, cw2->region.base); in dmub_dcn30_setup_windows() 136 DMCUB_REGION3_CW2_TOP_ADDRESS, cw2->region.top, in dmub_dcn30_setup_windows() 149 REG_WRITE(DMCUB_REGION3_CW3_BASE_ADDRESS, cw3->region.base); in dmub_dcn30_setup_windows() 151 DMCUB_REGION3_CW3_TOP_ADDRESS, cw3->region.top, in dmub_dcn30_setup_windows() 160 REG_WRITE(DMCUB_REGION3_CW4_BASE_ADDRESS, cw4->region.base); in dmub_dcn30_setup_windows() [all …]
|
D | dmub_dcn20.c | 159 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.top, in dmub_dcn20_setup_windows() 222 REG_WRITE(DMCUB_REGION3_CW4_BASE_ADDRESS, cw4->region.base); in dmub_dcn20_setup_windows() [all …]
|
/drivers/video/fbdev/savage/ |
D | savagefb_accel.c | 31 void savagefb_copyarea(struct fb_info *info, const struct fb_copyarea *region) in savagefb_copyarea() argument 34 int sx = region->sx, dx = region->dx; in savagefb_copyarea() 35 int sy = region->sy, dy = region->dy; in savagefb_copyarea() 38 if (!region->width || !region->height) in savagefb_copyarea() 47 sx += region->width - 1; in savagefb_copyarea() 48 dx += region->width - 1; in savagefb_copyarea() 54 sy += region->height - 1; in savagefb_copyarea() 55 dy += region->height - 1; in savagefb_copyarea() 62 BCI_SEND(BCI_W_H(region->width, region->height)); in savagefb_copyarea()
|
/drivers/net/wireless/ath/ |
D | dfs_pattern_detector.c | 31 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() argument 324 if (dpd->region == region) in dpd_set_domain() 327 dpd->region = NL80211_DFS_UNSET; in dpd_set_domain() [all …]
|
/drivers/soc/qcom/ |
D | ocmem.c | 125 struct ocmem_region *region = &ocmem->regions[i]; in update_ocmem() local 127 if (region->mode == THIN_MODE) in update_ocmem() 137 struct ocmem_region *region = &ocmem->regions[i]; in update_ocmem() local 140 data = OCMEM_PSGSC_CTL_MACRO0_MODE(region->macro_state[0]) | in update_ocmem() 141 OCMEM_PSGSC_CTL_MACRO1_MODE(region->macro_state[1]) | in update_ocmem() 142 OCMEM_PSGSC_CTL_MACRO2_MODE(region->macro_state[2]) | in update_ocmem() 143 OCMEM_PSGSC_CTL_MACRO3_MODE(region->macro_state[3]); in update_ocmem() 175 struct ocmem_region *region = &ocmem->regions[i]; in update_range() local 178 region->mode = rmode; in update_range() 180 for (j = 0; j < region->num_macros; j++) { in update_range() [all …]
|
/drivers/scsi/pm8001/ |
D | pm8001_init.c | 171 if (pm8001_ha->memoryMap.region[i].virt_ptr != NULL) { in pm8001_free() 173 (pm8001_ha->memoryMap.region[i].total_len + in pm8001_free() 174 pm8001_ha->memoryMap.region[i].alignment), in pm8001_free() 175 pm8001_ha->memoryMap.region[i].virt_ptr, in pm8001_free() 176 pm8001_ha->memoryMap.region[i].phys_addr); in pm8001_free() 299 pm8001_ha->memoryMap.region[AAP1].num_elements = 1; in pm8001_alloc() 300 pm8001_ha->memoryMap.region[AAP1].element_size = PM8001_EVENT_LOG_SIZE; in pm8001_alloc() 301 pm8001_ha->memoryMap.region[AAP1].total_len = PM8001_EVENT_LOG_SIZE; in pm8001_alloc() 302 pm8001_ha->memoryMap.region[AAP1].alignment = 32; in pm8001_alloc() 305 pm8001_ha->memoryMap.region[IOP].num_elements = 1; in pm8001_alloc() [all …]
|
/drivers/acpi/ |
D | nvs.c | 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(®ion->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, &nvs_region_list, node) { in acpi_nvs_for_each_region() 57 rc = func(region->phys_start, region->size, data); in acpi_nvs_for_each_region()
|
/drivers/mtd/nand/spi/ |
D | gigadevice.c | 59 struct mtd_oob_region *region) in gd5fxgq4xa_ooblayout_ecc() argument 64 region->offset = (16 * section) + 8; in gd5fxgq4xa_ooblayout_ecc() 65 region->length = 8; in gd5fxgq4xa_ooblayout_ecc() 71 struct mtd_oob_region *region) in gd5fxgq4xa_ooblayout_free() argument 77 region->offset = 16 * section; in gd5fxgq4xa_ooblayout_free() 78 region->length = 8; in gd5fxgq4xa_ooblayout_free() 81 region->offset = 1; in gd5fxgq4xa_ooblayout_free() 82 region->length = 7; in gd5fxgq4xa_ooblayout_free() 117 struct mtd_oob_region *region) in gd5fxgqx_variant2_ooblayout_ecc() argument 122 region->offset = 64; in gd5fxgqx_variant2_ooblayout_ecc() [all …]
|