Home
last modified time | relevance | path

Searched refs:window (Results 1 – 25 of 89) sorted by relevance

1234

/drivers/mtd/maps/
Dichxrom.c57 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 …]
Damd76xrom.c69 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 …]
Desb2rom.c118 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 …]
Dck804xrom.c82 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/
Dau1200fb.c136 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/
Dhost-bridge.c54 struct resource_entry *window; in pcibios_resource_to_bus() local
57 resource_list_for_each_entry(window, &bridge->windows) { in pcibios_resource_to_bus()
58 if (resource_contains(window->res, res)) { in pcibios_resource_to_bus()
59 offset = window->offset; in pcibios_resource_to_bus()
79 struct resource_entry *window; in pcibios_bus_to_resource() local
82 resource_list_for_each_entry(window, &bridge->windows) { in pcibios_bus_to_resource()
85 if (resource_type(res) != resource_type(window->res)) in pcibios_bus_to_resource()
88 bus_region.start = window->res->start - window->offset; in pcibios_bus_to_resource()
89 bus_region.end = window->res->end - window->offset; in pcibios_bus_to_resource()
92 offset = window->offset; in pcibios_bus_to_resource()
/drivers/edac/
Di3200_edac.c100 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()
270 void __iomem *window; in i3200_map_mchbar() local
283 window = ioremap(u.mchbar, I3200_MMR_WINDOW_SIZE); in i3200_map_mchbar()
284 if (!window) in i3200_map_mchbar()
288 return window; in i3200_map_mchbar()
[all …]
Dx38_edac.c168 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()
255 void __iomem *window; in x38_map_mchbar() local
269 window = ioremap(u.mchbar, X38_MMR_WINDOW_SIZE); in x38_map_mchbar()
270 if (!window) in x38_map_mchbar()
274 return window; in x38_map_mchbar()
278 static void x38_get_drbs(void __iomem *window, in x38_get_drbs() argument
[all …]
Die31200_edac.c177 void __iomem *window; member
350 void __iomem *window; in ie31200_map_mchbar() local
362 window = ioremap(u.mchbar, IE31200_MMR_WINDOW_SIZE); in ie31200_map_mchbar()
363 if (!window) in ie31200_map_mchbar()
367 return window; in ie31200_map_mchbar()
403 void __iomem *window; in ie31200_probe1() local
432 window = ie31200_map_mchbar(pdev); in ie31200_probe1()
433 if (!window) { in ie31200_probe1()
452 priv->window = window; in ie31200_probe1()
454 priv->c0errlog = window + IE31200_C0ECCERRLOG_SKL; in ie31200_probe1()
[all …]
Di3000_edac.c321 void __iomem *window; in i3000_probe1() local
327 window = ioremap(mchbar, I3000_MMR_WINDOW_SIZE); in i3000_probe1()
328 if (!window) { in i3000_probe1()
334 c0dra[0] = readb(window + I3000_C0DRA + 0); /* ranks 0,1 */ in i3000_probe1()
335 c0dra[1] = readb(window + I3000_C0DRA + 1); /* ranks 2,3 */ in i3000_probe1()
336 c1dra[0] = readb(window + I3000_C1DRA + 0); /* ranks 0,1 */ in i3000_probe1()
337 c1dra[1] = readb(window + I3000_C1DRA + 1); /* ranks 2,3 */ in i3000_probe1()
340 c0drb[i] = readb(window + I3000_C0DRB + i); in i3000_probe1()
341 c1drb[i] = readb(window + I3000_C1DRB + i); in i3000_probe1()
344 iounmap(window); in i3000_probe1()
/drivers/pci/endpoint/
Dpci-epc-mem.c26 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()
182 align_size = ALIGN(size, mem->window.page_size); in pci_epc_mem_alloc_addr()
188 page_shift = ilog2(mem->window.page_size); in pci_epc_mem_alloc_addr()
189 *phys_addr = mem->window.phys_base + in pci_epc_mem_alloc_addr()
217 if (phys_addr >= mem->window.phys_base && in pci_epc_get_matching_window()
218 phys_addr < (mem->window.phys_base + mem->window.size)) in pci_epc_get_matching_window()
249 page_size = mem->window.page_size; in pci_epc_mem_free_addr()
[all …]
/drivers/gpu/drm/tegra/
Ddc.c288 const struct tegra_dc_window *window) in tegra_plane_setup_blending() argument
302 value = K2(255) | K1(255) | WINDOW_LAYER_DEPTH(255 - window->zpos); in tegra_plane_setup_blending()
308 const struct tegra_dc_window *window) in tegra_plane_use_horizontal_filtering() argument
312 if (window->src.w == window->dst.w) in tegra_plane_use_horizontal_filtering()
323 const struct tegra_dc_window *window) in tegra_plane_use_vertical_filtering() argument
327 if (window->src.h == window->dst.h) in tegra_plane_use_vertical_filtering()
340 const struct tegra_dc_window *window) in tegra_dc_setup_window() argument
351 yuv = tegra_plane_format_is_yuv(window->format, &planar); in tegra_dc_setup_window()
353 bpp = window->bits_per_pixel / 8; in tegra_dc_setup_window()
357 tegra_plane_writel(plane, window->format, DC_WIN_COLOR_DEPTH); in tegra_dc_setup_window()
[all …]
/drivers/pcmcia/
Dvrc4173_cardu.c251 uint8_t ioctl, window; in cardu_get_io_map() local
262 window = exca_readb(socket, ADR_WIN_EN); in cardu_get_io_map()
263 io->flags = (window & IO_WIN_EN(map)) ? MAP_ACTIVE : 0; in cardu_get_io_map()
276 uint8_t window, enable; in cardu_set_io_map() local
283 window = exca_readb(socket, ADR_WIN_EN); in cardu_set_io_map()
286 if (window & enable) { in cardu_set_io_map()
287 window &= ~enable; in cardu_set_io_map()
288 exca_writeb(socket, ADR_WIN_EN, window); in cardu_set_io_map()
300 exca_writeb(socket, ADR_WIN_EN, window | enable); in cardu_set_io_map()
309 uint8_t window; in cardu_get_mem_map() local
[all …]
/drivers/sh/intc/
Daccess.c16 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()
Dcore.c206 d->window = kcalloc(d->nr_windows, sizeof(*d->window), in register_intc_controller()
208 if (!d->window) in register_intc_controller()
214 d->window[k].phys = res->start; in register_intc_controller()
215 d->window[k].size = resource_size(res); in register_intc_controller()
216 d->window[k].virt = ioremap(res->start, in register_intc_controller()
218 if (!d->window[k].virt) in register_intc_controller()
396 if (d->window[k].virt) in register_intc_controller()
397 iounmap(d->window[k].virt); in register_intc_controller()
399 kfree(d->window); in register_intc_controller()
/drivers/net/wireless/intel/iwlwifi/dvm/
Drs.c230 static void rs_rate_scale_clear_window(struct iwl_rate_scale_data *window) in rs_rate_scale_clear_window() argument
232 window->data = 0; in rs_rate_scale_clear_window()
233 window->success_counter = 0; in rs_rate_scale_clear_window()
234 window->success_ratio = IWL_INVALID_VALUE; in rs_rate_scale_clear_window()
235 window->counter = 0; in rs_rate_scale_clear_window()
236 window->average_tpt = IWL_INVALID_VALUE; in rs_rate_scale_clear_window()
237 window->stamp = 0; in rs_rate_scale_clear_window()
453 struct iwl_rate_scale_data *window = NULL; in rs_collect_tx_data() local
461 window = &(tbl->win[scale_index]); in rs_collect_tx_data()
475 if (window->counter >= IWL_RATE_MAX_WINDOW) { in rs_collect_tx_data()
[all …]
/drivers/net/wireless/intel/iwlwifi/mvm/
Drs.c575 static void rs_rate_scale_clear_window(struct iwl_rate_scale_data *window) in rs_rate_scale_clear_window() argument
577 window->data = 0; in rs_rate_scale_clear_window()
578 window->success_counter = 0; in rs_rate_scale_clear_window()
579 window->success_ratio = IWL_INVALID_VALUE; in rs_rate_scale_clear_window()
580 window->counter = 0; in rs_rate_scale_clear_window()
581 window->average_tpt = IWL_INVALID_VALUE; in rs_rate_scale_clear_window()
683 struct iwl_rate_scale_data *window) in _rs_collect_tx_data() argument
700 if (window->counter >= IWL_RATE_MAX_WINDOW) { in _rs_collect_tx_data()
702 window->counter = IWL_RATE_MAX_WINDOW - 1; in _rs_collect_tx_data()
704 if (window->data & mask) { in _rs_collect_tx_data()
[all …]
/drivers/pci/controller/
Dpcie-rcar.c64 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()
Dpcie-rcar-ep.c135 struct pci_epc_mem_window *window; in rcar_pcie_ep_get_pdata() local
148 sizeof(*window), GFP_KERNEL); in rcar_pcie_ep_get_pdata()
295 int window; in rcar_pcie_ep_map_addr() local
305 window = rcar_pcie_ep_get_window(ep, addr); in rcar_pcie_ep_map_addr()
306 if (window < 0) { in rcar_pcie_ep_map_addr()
318 rcar_pcie_set_outbound(pcie, window, &win); in rcar_pcie_ep_map_addr()
320 ep->ob_mapped_addr[window] = addr; in rcar_pcie_ep_map_addr()
/drivers/mtd/devices/
Dbcm47xxsflash.c110 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/ssb/
Ddriver_mipscore.c224 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/net/wan/
Dhdlc_x25.c200 params.window = state(hdlc)->settings.window; in x25_open()
305 new_settings.window = 7; in x25_ioctl()
318 new_settings.window < 1 || in x25_ioctl()
320 new_settings.window > 7) || in x25_ioctl()
322 new_settings.window > 127) || in x25_ioctl()
/drivers/media/platform/vsp1/
Dvsp1_uds.c372 struct vsp1_partition_window *window) in uds_partition() argument
379 partition->uds_sink = *window; in uds_partition()
380 partition->uds_source = *window; in uds_partition()
387 partition->uds_sink.width = window->width * input->width in uds_partition()
389 partition->uds_sink.left = window->left * input->width in uds_partition()
392 *window = partition->uds_sink; in uds_partition()
/drivers/iommu/
Ddma-iommu.c199 struct resource_entry *window; in iova_reserve_pci_windows() local
203 resource_list_for_each_entry(window, &bridge->windows) { in iova_reserve_pci_windows()
204 if (resource_type(window->res) != IORESOURCE_MEM) in iova_reserve_pci_windows()
207 lo = iova_pfn(iovad, window->res->start - window->offset); in iova_reserve_pci_windows()
208 hi = iova_pfn(iovad, window->res->end - window->offset); in iova_reserve_pci_windows()
213 resource_list_for_each_entry(window, &bridge->dma_ranges) { in iova_reserve_pci_windows()
214 end = window->res->start - window->offset; in iova_reserve_pci_windows()
228 start = window->res->end - window->offset + 1; in iova_reserve_pci_windows()
230 if (window->node.next == &bridge->dma_ranges && in iova_reserve_pci_windows()
/drivers/scsi/qla2xxx/
Dqla_tmpl.c45 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 …]

1234