/drivers/mtd/maps/ |
D | ichxrom.c | 57 static void ichxrom_cleanup(struct ichxrom_window *window) in ichxrom_cleanup() argument 64 ret = pci_read_config_word(window->pdev, BIOS_CNTL, &word); in ichxrom_cleanup() 66 pci_write_config_word(window->pdev, BIOS_CNTL, word & ~1); in ichxrom_cleanup() 67 pci_dev_put(window->pdev); in ichxrom_cleanup() 70 list_for_each_entry_safe(map, scratch, &window->maps, list) { in ichxrom_cleanup() 78 if (window->rsrc.parent) in ichxrom_cleanup() 79 release_resource(&window->rsrc); in ichxrom_cleanup() 80 if (window->virt) { in ichxrom_cleanup() 81 iounmap(window->virt); in ichxrom_cleanup() 82 window->virt = NULL; in ichxrom_cleanup() [all …]
|
D | amd76xrom.c | 69 static void amd76xrom_cleanup(struct amd76xrom_window *window) in amd76xrom_cleanup() argument 74 if (window->pdev) { in amd76xrom_cleanup() 76 pci_read_config_byte(window->pdev, 0x40, &byte); in amd76xrom_cleanup() 77 pci_write_config_byte(window->pdev, 0x40, byte & ~1); in amd76xrom_cleanup() 78 pci_dev_put(window->pdev); in amd76xrom_cleanup() 82 list_for_each_entry_safe(map, scratch, &window->maps, list) { in amd76xrom_cleanup() 91 if (window->rsrc.parent) in amd76xrom_cleanup() 92 release_resource(&window->rsrc); in amd76xrom_cleanup() 94 if (window->virt) { in amd76xrom_cleanup() 95 iounmap(window->virt); in amd76xrom_cleanup() [all …]
|
D | esb2rom.c | 118 static void esb2rom_cleanup(struct esb2rom_window *window) in esb2rom_cleanup() argument 124 pci_read_config_byte(window->pdev, BIOS_CNTL, &byte); in esb2rom_cleanup() 125 pci_write_config_byte(window->pdev, BIOS_CNTL, in esb2rom_cleanup() 129 list_for_each_entry_safe(map, scratch, &window->maps, list) { in esb2rom_cleanup() 137 if (window->rsrc.parent) in esb2rom_cleanup() 138 release_resource(&window->rsrc); in esb2rom_cleanup() 139 if (window->virt) { in esb2rom_cleanup() 140 iounmap(window->virt); in esb2rom_cleanup() 141 window->virt = NULL; in esb2rom_cleanup() 142 window->phys = 0; in esb2rom_cleanup() [all …]
|
D | ck804xrom.c | 82 static void ck804xrom_cleanup(struct ck804xrom_window *window) in ck804xrom_cleanup() argument 87 if (window->pdev) { in ck804xrom_cleanup() 89 pci_read_config_byte(window->pdev, 0x6d, &byte); in ck804xrom_cleanup() 90 pci_write_config_byte(window->pdev, 0x6d, byte & ~1); in ck804xrom_cleanup() 94 list_for_each_entry_safe(map, scratch, &window->maps, list) { in ck804xrom_cleanup() 103 if (window->rsrc.parent) in ck804xrom_cleanup() 104 release_resource(&window->rsrc); in ck804xrom_cleanup() 106 if (window->virt) { in ck804xrom_cleanup() 107 iounmap(window->virt); in ck804xrom_cleanup() 108 window->virt = NULL; in ck804xrom_cleanup() [all …]
|
/drivers/video/fbdev/ |
D | au1200fb.c | 136 struct au1200_lcd_window_regs_t window; member 710 winctrl0 = lcd->window[plane].winctrl0; in au1200_setlocation() 711 winctrl1 = lcd->window[plane].winctrl1; in au1200_setlocation() 733 fb_offset += (((0 - xpos) * winbpp(lcd->window[plane].winctrl1))/8); in au1200_setlocation() 761 lcd->window[plane].winctrl0 = winctrl0; in au1200_setlocation() 762 lcd->window[plane].winctrl1 = winctrl1; in au1200_setlocation() 763 lcd->window[plane].winbuf0 = in au1200_setlocation() 764 lcd->window[plane].winbuf1 = fbdev->fb_phys; in au1200_setlocation() 765 lcd->window[plane].winbufctrl = 0; /* select winbuf0 */ in au1200_setlocation() 897 D(lcd->window[0].winctrl0); in au1200_setpanel() [all …]
|
/drivers/pci/ |
D | host-bridge.c | 55 struct resource_entry *window; in pcibios_resource_to_bus() local 58 resource_list_for_each_entry(window, &bridge->windows) { in pcibios_resource_to_bus() 59 if (resource_contains(window->res, res)) { in pcibios_resource_to_bus() 60 offset = window->offset; in pcibios_resource_to_bus() 80 struct resource_entry *window; in pcibios_bus_to_resource() local 83 resource_list_for_each_entry(window, &bridge->windows) { in pcibios_bus_to_resource() 86 if (resource_type(res) != resource_type(window->res)) in pcibios_bus_to_resource() 89 bus_region.start = window->res->start - window->offset; in pcibios_bus_to_resource() 90 bus_region.end = window->res->end - window->offset; in pcibios_bus_to_resource() 93 offset = window->offset; in pcibios_bus_to_resource()
|
/drivers/edac/ |
D | i3200_edac.c | 100 void __iomem *window; member 185 void __iomem *window = priv->window; in i3200_get_and_clear_error_info() local 198 info->eccerrlog[0] = readq(window + I3200_C0ECCERRLOG); in i3200_get_and_clear_error_info() 200 info->eccerrlog[1] = readq(window + I3200_C1ECCERRLOG); in i3200_get_and_clear_error_info() 211 info->eccerrlog[0] = readq(window + I3200_C0ECCERRLOG); in i3200_get_and_clear_error_info() 213 info->eccerrlog[1] = readq(window + I3200_C1ECCERRLOG); in i3200_get_and_clear_error_info() 269 void __iomem *window; in i3200_map_mchbar() local 282 window = ioremap(u.mchbar, I3200_MMR_WINDOW_SIZE); in i3200_map_mchbar() 283 if (!window) in i3200_map_mchbar() 287 return window; in i3200_map_mchbar() [all …]
|
D | x38_edac.c | 168 void __iomem *window = mci->pvt_info; in x38_get_and_clear_error_info() local 181 info->eccerrlog[0] = lo_hi_readq(window + X38_C0ECCERRLOG); in x38_get_and_clear_error_info() 183 info->eccerrlog[1] = lo_hi_readq(window + X38_C1ECCERRLOG); in x38_get_and_clear_error_info() 194 info->eccerrlog[0] = lo_hi_readq(window + X38_C0ECCERRLOG); in x38_get_and_clear_error_info() 197 lo_hi_readq(window + X38_C1ECCERRLOG); in x38_get_and_clear_error_info() 254 void __iomem *window; in x38_map_mchbar() local 268 window = ioremap(u.mchbar, X38_MMR_WINDOW_SIZE); in x38_map_mchbar() 269 if (!window) in x38_map_mchbar() 273 return window; in x38_map_mchbar() 277 static void x38_get_drbs(void __iomem *window, in x38_get_drbs() argument [all …]
|
D | ie31200_edac.c | 185 void __iomem *window; member 357 void __iomem *window; in ie31200_map_mchbar() local 369 window = ioremap(u.mchbar, IE31200_MMR_WINDOW_SIZE); in ie31200_map_mchbar() 370 if (!window) in ie31200_map_mchbar() 374 return window; in ie31200_map_mchbar() 410 void __iomem *window; in ie31200_probe1() local 439 window = ie31200_map_mchbar(pdev); in ie31200_probe1() 440 if (!window) { in ie31200_probe1() 459 priv->window = window; in ie31200_probe1() 461 priv->c0errlog = window + IE31200_C0ECCERRLOG_SKL; in ie31200_probe1() [all …]
|
D | i3000_edac.c | 320 void __iomem *window; in i3000_probe1() local 326 window = ioremap(mchbar, I3000_MMR_WINDOW_SIZE); in i3000_probe1() 327 if (!window) { in i3000_probe1() 333 c0dra[0] = readb(window + I3000_C0DRA + 0); /* ranks 0,1 */ in i3000_probe1() 334 c0dra[1] = readb(window + I3000_C0DRA + 1); /* ranks 2,3 */ in i3000_probe1() 335 c1dra[0] = readb(window + I3000_C1DRA + 0); /* ranks 0,1 */ in i3000_probe1() 336 c1dra[1] = readb(window + I3000_C1DRA + 1); /* ranks 2,3 */ in i3000_probe1() 339 c0drb[i] = readb(window + I3000_C0DRB + i); in i3000_probe1() 340 c1drb[i] = readb(window + I3000_C1DRB + i); in i3000_probe1() 343 iounmap(window); in i3000_probe1()
|
D | igen6_edac.c | 147 void __iomem *window; member 351 mc_hash = readl(imc->window + MAD_MC_HASH_OFFSET); in adl_err_addr_to_imc_addr() 524 hash = readl(imc->window + CHANNEL_HASH_OFFSET); in igen6_decode() 532 hash = readl(imc->window + CHANNEL_EHASH_OFFSET); in igen6_decode() 597 u64 ecclog = readq(imc->window + ECC_ERROR_LOG_OFFSET); in ecclog_read_and_clear() 601 writeq(ecclog, imc->window + ECC_ERROR_LOG_OFFSET); in ecclog_read_and_clear() 788 u32 activate = readl(imc->window + IBECC_ACTIVATE_OFFSET); in igen6_check_ecc() 806 mad_inter = readl(imc->window + MAD_INTER_CHANNEL_OFFSET); in igen6_get_dimm_config() 813 mad_intra = readl(imc->window + MAD_INTRA_CH0_OFFSET + i * 4); in igen6_get_dimm_config() 814 mad_dimm = readl(imc->window + MAD_DIMM_CH0_OFFSET + i * 4); in igen6_get_dimm_config() [all …]
|
/drivers/pci/endpoint/ |
D | pci-epc-mem.c | 26 unsigned int page_shift = ilog2(mem->window.page_size); in pci_epc_mem_get_order() 92 mem->window.phys_base = windows[i].phys_base; in pci_epc_multi_mem_init() 93 mem->window.size = windows[i].size; in pci_epc_multi_mem_init() 94 mem->window.page_size = page_size; in pci_epc_multi_mem_init() 192 align_size = ALIGN(size, mem->window.page_size); in pci_epc_mem_alloc_addr() 198 page_shift = ilog2(mem->window.page_size); in pci_epc_mem_alloc_addr() 199 *phys_addr = mem->window.phys_base + in pci_epc_mem_alloc_addr() 227 if (phys_addr >= mem->window.phys_base && in pci_epc_get_matching_window() 228 phys_addr < (mem->window.phys_base + mem->window.size)) in pci_epc_get_matching_window() 259 page_size = mem->window.page_size; in pci_epc_mem_free_addr() [all …]
|
/drivers/gpu/drm/tegra/ |
D | dc.c | 295 const struct tegra_dc_window *window) in tegra_plane_setup_blending() argument 309 value = K2(255) | K1(255) | WINDOW_LAYER_DEPTH(255 - window->zpos); in tegra_plane_setup_blending() 315 const struct tegra_dc_window *window) in tegra_plane_use_horizontal_filtering() argument 319 if (window->src.w == window->dst.w) in tegra_plane_use_horizontal_filtering() 330 const struct tegra_dc_window *window) in tegra_plane_use_vertical_filtering() argument 334 if (window->src.h == window->dst.h) in tegra_plane_use_vertical_filtering() 347 const struct tegra_dc_window *window) in tegra_dc_setup_window() argument 359 yuv = tegra_plane_format_is_yuv(window->format, &planes, NULL); in tegra_dc_setup_window() 361 bpp = window->bits_per_pixel / 8; in tegra_dc_setup_window() 365 tegra_plane_writel(plane, window->format, DC_WIN_COLOR_DEPTH); in tegra_dc_setup_window() [all …]
|
/drivers/sh/intc/ |
D | access.c | 16 struct intc_window *window; in intc_phys_to_virt() local 21 window = d->window + k; in intc_phys_to_virt() 23 if (address < window->phys) in intc_phys_to_virt() 26 if (address >= (window->phys + window->size)) in intc_phys_to_virt() 29 address -= window->phys; in intc_phys_to_virt() 30 address += (unsigned long)window->virt; in intc_phys_to_virt()
|
D | core.c | 221 d->window = kcalloc(d->nr_windows, sizeof(*d->window), in register_intc_controller() 223 if (!d->window) in register_intc_controller() 229 d->window[k].phys = res->start; in register_intc_controller() 230 d->window[k].size = resource_size(res); in register_intc_controller() 231 d->window[k].virt = ioremap(res->start, in register_intc_controller() 233 if (!d->window[k].virt) in register_intc_controller() 385 if (d->window[k].virt) in register_intc_controller() 386 iounmap(d->window[k].virt); in register_intc_controller() 388 kfree(d->window); in register_intc_controller()
|
/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | rs.c | 208 static void rs_rate_scale_clear_window(struct iwl_rate_scale_data *window) in rs_rate_scale_clear_window() argument 210 window->data = 0; in rs_rate_scale_clear_window() 211 window->success_counter = 0; in rs_rate_scale_clear_window() 212 window->success_ratio = IWL_INVALID_VALUE; in rs_rate_scale_clear_window() 213 window->counter = 0; in rs_rate_scale_clear_window() 214 window->average_tpt = IWL_INVALID_VALUE; in rs_rate_scale_clear_window() 215 window->stamp = 0; in rs_rate_scale_clear_window() 431 struct iwl_rate_scale_data *window = NULL; in rs_collect_tx_data() local 439 window = &(tbl->win[scale_index]); in rs_collect_tx_data() 453 if (window->counter >= IWL_RATE_MAX_WINDOW) { in rs_collect_tx_data() [all …]
|
/drivers/watchdog/ |
D | bd9576_wdt.c | 88 int window = FASTNG_MIN; in find_closest_fast() local 90 for (i = 0; i < 8 && window < target; i++) in find_closest_fast() 91 window <<= 1; in find_closest_fast() 93 *val = window; in find_closest_fast() 125 int window = FASTNG_MIN; in find_closest_slow() local 131 slow = window * multipliers[j]; in find_closest_slow() 138 window <<= 1; in find_closest_slow()
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | rs.c | 531 static void rs_rate_scale_clear_window(struct iwl_rate_scale_data *window) in rs_rate_scale_clear_window() argument 533 window->data = 0; in rs_rate_scale_clear_window() 534 window->success_counter = 0; in rs_rate_scale_clear_window() 535 window->success_ratio = IWL_INVALID_VALUE; in rs_rate_scale_clear_window() 536 window->counter = 0; in rs_rate_scale_clear_window() 537 window->average_tpt = IWL_INVALID_VALUE; in rs_rate_scale_clear_window() 638 struct iwl_rate_scale_data *window) in _rs_collect_tx_data() argument 655 if (window->counter >= IWL_RATE_MAX_WINDOW) { in _rs_collect_tx_data() 657 window->counter = IWL_RATE_MAX_WINDOW - 1; in _rs_collect_tx_data() 659 if (window->data & mask) { in _rs_collect_tx_data() [all …]
|
/drivers/pci/controller/ |
D | pcie-rcar.c | 64 struct resource_entry *window) in rcar_pcie_set_outbound() argument 67 struct resource *res = window->res; in rcar_pcie_set_outbound() 86 res_start = pci_pio_to_address(res->start) - window->offset; in rcar_pcie_set_outbound() 88 res_start = res->start - window->offset; in rcar_pcie_set_outbound()
|
D | pcie-rcar-ep.c | 132 struct pci_epc_mem_window *window; in rcar_pcie_ep_get_pdata() local 145 sizeof(*window), GFP_KERNEL); in rcar_pcie_ep_get_pdata() 293 int window; in rcar_pcie_ep_map_addr() local 303 window = rcar_pcie_ep_get_window(ep, addr); in rcar_pcie_ep_map_addr() 304 if (window < 0) { in rcar_pcie_ep_map_addr() 316 rcar_pcie_set_outbound(pcie, window, &win); in rcar_pcie_ep_map_addr() 318 ep->ob_mapped_addr[window] = addr; in rcar_pcie_ep_map_addr()
|
/drivers/mtd/devices/ |
D | bcm47xxsflash.c | 110 memcpy_fromio(buf, b47s->window + from, memcpy_len); in bcm47xxsflash_read() 323 b47s->window = ioremap(res->start, resource_size(res)); in bcm47xxsflash_bcma_probe() 325 b47s->window = ioremap_cache(res->start, resource_size(res)); in bcm47xxsflash_bcma_probe() 326 if (!b47s->window) { in bcm47xxsflash_bcma_probe() 350 iounmap(b47s->window); in bcm47xxsflash_bcma_probe() 365 iounmap(b47s->window); in bcm47xxsflash_bcma_remove()
|
/drivers/net/wan/ |
D | hdlc_x25.c | 208 params.window = state(hdlc)->settings.window; in x25_open() 309 new_settings.window = 7; in x25_ioctl() 321 new_settings.window < 1 || in x25_ioctl() 323 new_settings.window > 7) || in x25_ioctl() 325 new_settings.window > 127) || in x25_ioctl()
|
/drivers/ssb/ |
D | driver_mipscore.c | 224 pflash->window = SSB_FLASH1; in ssb_mips_flash_detect() 239 pflash->window = SSB_FLASH2; in ssb_mips_flash_detect() 252 bcm47xx_nvram_init_from_mem(sflash->window, sflash->size); in ssb_mips_flash_detect() 256 bcm47xx_nvram_init_from_mem(pflash->window, pflash->window_size); in ssb_mips_flash_detect() 260 ssb_pflash_resource.start = pflash->window; in ssb_mips_flash_detect() 261 ssb_pflash_resource.end = pflash->window + pflash->window_size; in ssb_mips_flash_detect()
|
/drivers/media/platform/renesas/vsp1/ |
D | vsp1_uds.c | 374 struct vsp1_partition_window *window) in uds_partition() argument 381 partition->uds_sink = *window; in uds_partition() 382 partition->uds_source = *window; in uds_partition() 389 partition->uds_sink.width = window->width * input->width in uds_partition() 391 partition->uds_sink.left = window->left * input->width in uds_partition() 394 *window = partition->uds_sink; in uds_partition()
|
/drivers/scsi/qla2xxx/ |
D | qla_tmpl.c | 45 qla27xx_read8(void __iomem *window, void *buf, ulong *len) in qla27xx_read8() argument 50 value = rd_reg_byte(window); in qla27xx_read8() 56 qla27xx_read16(void __iomem *window, void *buf, ulong *len) in qla27xx_read16() argument 61 value = rd_reg_word(window); in qla27xx_read16() 67 qla27xx_read32(void __iomem *window, void *buf, ulong *len) in qla27xx_read32() argument 72 value = rd_reg_dword(window); in qla27xx_read32() 89 void __iomem *window = (void __iomem *)reg + offset; in qla27xx_read_reg() local 91 qla27xx_read32(window, buf, len); in qla27xx_read_reg() 99 void __iomem *window = (void __iomem *)reg + offset; in qla27xx_write_reg() local 101 wrt_reg_dword(window, data); in qla27xx_write_reg() [all …]
|