/drivers/mtd/maps/ |
D | ichxrom.c | 56 static void ichxrom_cleanup(struct ichxrom_window *window) in ichxrom_cleanup() argument 62 pci_read_config_word(window->pdev, BIOS_CNTL, &word); in ichxrom_cleanup() 63 pci_write_config_word(window->pdev, BIOS_CNTL, word & ~1); in ichxrom_cleanup() 64 pci_dev_put(window->pdev); in ichxrom_cleanup() 67 list_for_each_entry_safe(map, scratch, &window->maps, list) { in ichxrom_cleanup() 75 if (window->rsrc.parent) in ichxrom_cleanup() 76 release_resource(&window->rsrc); in ichxrom_cleanup() 77 if (window->virt) { in ichxrom_cleanup() 78 iounmap(window->virt); in ichxrom_cleanup() 79 window->virt = NULL; in ichxrom_cleanup() [all …]
|
D | amd76xrom.c | 68 static void amd76xrom_cleanup(struct amd76xrom_window *window) in amd76xrom_cleanup() argument 73 if (window->pdev) { in amd76xrom_cleanup() 75 pci_read_config_byte(window->pdev, 0x40, &byte); in amd76xrom_cleanup() 76 pci_write_config_byte(window->pdev, 0x40, byte & ~1); in amd76xrom_cleanup() 77 pci_dev_put(window->pdev); in amd76xrom_cleanup() 81 list_for_each_entry_safe(map, scratch, &window->maps, list) { in amd76xrom_cleanup() 90 if (window->rsrc.parent) in amd76xrom_cleanup() 91 release_resource(&window->rsrc); in amd76xrom_cleanup() 93 if (window->virt) { in amd76xrom_cleanup() 94 iounmap(window->virt); in amd76xrom_cleanup() [all …]
|
D | esb2rom.c | 117 static void esb2rom_cleanup(struct esb2rom_window *window) in esb2rom_cleanup() argument 123 pci_read_config_byte(window->pdev, BIOS_CNTL, &byte); in esb2rom_cleanup() 124 pci_write_config_byte(window->pdev, BIOS_CNTL, in esb2rom_cleanup() 128 list_for_each_entry_safe(map, scratch, &window->maps, list) { in esb2rom_cleanup() 136 if (window->rsrc.parent) in esb2rom_cleanup() 137 release_resource(&window->rsrc); in esb2rom_cleanup() 138 if (window->virt) { in esb2rom_cleanup() 139 iounmap(window->virt); in esb2rom_cleanup() 140 window->virt = NULL; in esb2rom_cleanup() 141 window->phys = 0; in esb2rom_cleanup() [all …]
|
D | ck804xrom.c | 81 static void ck804xrom_cleanup(struct ck804xrom_window *window) in ck804xrom_cleanup() argument 86 if (window->pdev) { in ck804xrom_cleanup() 88 pci_read_config_byte(window->pdev, 0x6d, &byte); in ck804xrom_cleanup() 89 pci_write_config_byte(window->pdev, 0x6d, byte & ~1); in ck804xrom_cleanup() 93 list_for_each_entry_safe(map, scratch, &window->maps, list) { in ck804xrom_cleanup() 102 if (window->rsrc.parent) in ck804xrom_cleanup() 103 release_resource(&window->rsrc); in ck804xrom_cleanup() 105 if (window->virt) { in ck804xrom_cleanup() 106 iounmap(window->virt); in ck804xrom_cleanup() 107 window->virt = NULL; in ck804xrom_cleanup() [all …]
|
/drivers/pci/ |
D | host-bridge.c | 47 struct pci_host_bridge_window *window; in pcibios_resource_to_bus() local 50 list_for_each_entry(window, &bridge->windows, list) { in pcibios_resource_to_bus() 51 if (resource_type(res) != resource_type(window->res)) in pcibios_resource_to_bus() 54 if (resource_contains(window->res, res)) { in pcibios_resource_to_bus() 55 offset = window->offset; in pcibios_resource_to_bus() 75 struct pci_host_bridge_window *window; in pcibios_bus_to_resource() local 78 list_for_each_entry(window, &bridge->windows, list) { in pcibios_bus_to_resource() 81 if (resource_type(res) != resource_type(window->res)) in pcibios_bus_to_resource() 84 bus_region.start = window->res->start - window->offset; in pcibios_bus_to_resource() 85 bus_region.end = window->res->end - window->offset; in pcibios_bus_to_resource() [all …]
|
D | bus.c | 24 struct pci_host_bridge_window *window; in pci_add_resource_offset() local 26 window = kzalloc(sizeof(struct pci_host_bridge_window), GFP_KERNEL); in pci_add_resource_offset() 27 if (!window) { in pci_add_resource_offset() 32 window->res = res; in pci_add_resource_offset() 33 window->offset = offset; in pci_add_resource_offset() 34 list_add_tail(&window->list, resources); in pci_add_resource_offset() 46 struct pci_host_bridge_window *window, *tmp; in pci_free_resource_list() local 48 list_for_each_entry_safe(window, tmp, resources, list) { in pci_free_resource_list() 49 list_del(&window->list); in pci_free_resource_list() 50 kfree(window); in pci_free_resource_list()
|
/drivers/video/ |
D | au1200fb.c | 134 struct au1200_lcd_window_regs_t window; member 718 winctrl0 = lcd->window[plane].winctrl0; in au1200_setlocation() 719 winctrl1 = lcd->window[plane].winctrl1; in au1200_setlocation() 741 fb_offset += (((0 - xpos) * winbpp(lcd->window[plane].winctrl1))/8); in au1200_setlocation() 769 lcd->window[plane].winctrl0 = winctrl0; in au1200_setlocation() 770 lcd->window[plane].winctrl1 = winctrl1; in au1200_setlocation() 771 lcd->window[plane].winbuf0 = in au1200_setlocation() 772 lcd->window[plane].winbuf1 = fbdev->fb_phys; in au1200_setlocation() 773 lcd->window[plane].winbufctrl = 0; /* select winbuf0 */ in au1200_setlocation() 900 D(lcd->window[0].winctrl0); in au1200_setpanel() [all …]
|
/drivers/edac/ |
D | i3200_edac.c | 102 void __iomem *window; member 187 void __iomem *window = priv->window; in i3200_get_and_clear_error_info() local 200 info->eccerrlog[0] = readq(window + I3200_C0ECCERRLOG); in i3200_get_and_clear_error_info() 202 info->eccerrlog[1] = readq(window + I3200_C1ECCERRLOG); in i3200_get_and_clear_error_info() 213 info->eccerrlog[0] = readq(window + I3200_C0ECCERRLOG); in i3200_get_and_clear_error_info() 215 info->eccerrlog[1] = readq(window + I3200_C1ECCERRLOG); in i3200_get_and_clear_error_info() 273 void __iomem *window; in i3200_map_mchbar() local 286 window = ioremap_nocache(u.mchbar, I3200_MMR_WINDOW_SIZE); in i3200_map_mchbar() 287 if (!window) in i3200_map_mchbar() 291 return window; in i3200_map_mchbar() [all …]
|
D | x38_edac.c | 173 void __iomem *window = mci->pvt_info; in x38_get_and_clear_error_info() local 186 info->eccerrlog[0] = x38_readq(window + X38_C0ECCERRLOG); in x38_get_and_clear_error_info() 188 info->eccerrlog[1] = x38_readq(window + X38_C1ECCERRLOG); in x38_get_and_clear_error_info() 199 info->eccerrlog[0] = x38_readq(window + X38_C0ECCERRLOG); in x38_get_and_clear_error_info() 202 x38_readq(window + X38_C1ECCERRLOG); in x38_get_and_clear_error_info() 261 void __iomem *window; in x38_map_mchbar() local 275 window = ioremap_nocache(u.mchbar, X38_MMR_WINDOW_SIZE); in x38_map_mchbar() 276 if (!window) in x38_map_mchbar() 280 return window; in x38_map_mchbar() 284 static void x38_get_drbs(void __iomem *window, in x38_get_drbs() argument [all …]
|
D | i3000_edac.c | 323 void __iomem *window; in i3000_probe1() local 329 window = ioremap_nocache(mchbar, I3000_MMR_WINDOW_SIZE); in i3000_probe1() 330 if (!window) { in i3000_probe1() 336 c0dra[0] = readb(window + I3000_C0DRA + 0); /* ranks 0,1 */ in i3000_probe1() 337 c0dra[1] = readb(window + I3000_C0DRA + 1); /* ranks 2,3 */ in i3000_probe1() 338 c1dra[0] = readb(window + I3000_C1DRA + 0); /* ranks 0,1 */ in i3000_probe1() 339 c1dra[1] = readb(window + I3000_C1DRA + 1); /* ranks 2,3 */ in i3000_probe1() 342 c0drb[i] = readb(window + I3000_C0DRB + i); in i3000_probe1() 343 c1drb[i] = readb(window + I3000_C1DRB + i); in i3000_probe1() 346 iounmap(window); in i3000_probe1()
|
/drivers/gpu/host1x/drm/ |
D | dc.c | 40 struct tegra_dc_window window; in tegra_plane_update() local 43 memset(&window, 0, sizeof(window)); in tegra_plane_update() 44 window.src.x = src_x >> 16; in tegra_plane_update() 45 window.src.y = src_y >> 16; in tegra_plane_update() 46 window.src.w = src_w >> 16; in tegra_plane_update() 47 window.src.h = src_h >> 16; in tegra_plane_update() 48 window.dst.x = crtc_x; in tegra_plane_update() 49 window.dst.y = crtc_y; in tegra_plane_update() 50 window.dst.w = crtc_w; in tegra_plane_update() 51 window.dst.h = crtc_h; in tegra_plane_update() [all …]
|
/drivers/pinctrl/sh-pfc/ |
D | core.c | 35 pfc->window = devm_kzalloc(pfc->dev, pdev->num_resources * in sh_pfc_ioremap() 36 sizeof(*pfc->window), GFP_NOWAIT); in sh_pfc_ioremap() 37 if (!pfc->window) in sh_pfc_ioremap() 44 pfc->window[k].phys = res->start; in sh_pfc_ioremap() 45 pfc->window[k].size = resource_size(res); in sh_pfc_ioremap() 46 pfc->window[k].virt = devm_ioremap_nocache(pfc->dev, res->start, in sh_pfc_ioremap() 48 if (!pfc->window[k].virt) in sh_pfc_ioremap() 58 struct sh_pfc_window *window; in sh_pfc_phys_to_virt() local 63 window = pfc->window + i; in sh_pfc_phys_to_virt() 65 if (address < window->phys) in sh_pfc_phys_to_virt() [all …]
|
D | gpio.c | 353 struct sh_pfc_window *window = &pfc->window[i]; in sh_pfc_register_gpiochip() local 355 if (pfc->info->data_regs[0].reg >= window->phys && in sh_pfc_register_gpiochip() 356 pfc->info->data_regs[0].reg < window->phys + window->size) in sh_pfc_register_gpiochip() 364 chip = sh_pfc_add_gpiochip(pfc, gpio_pin_setup, &pfc->window[i]); in sh_pfc_register_gpiochip()
|
/drivers/staging/csr/ |
D | csr_wifi_hip_chiphelper.c | 702 enum chip_helper_window_index window) in ChipHelper_WINDOW_ADDRESS() argument 704 if (window < CHIP_HELPER_WINDOW_COUNT && in ChipHelper_WINDOW_ADDRESS() 705 chip_help->windows[window] != NULL) in ChipHelper_WINDOW_ADDRESS() 707 return chip_help->windows[window]->address + chip_help->windows[window]->blocked; in ChipHelper_WINDOW_ADDRESS() 715 enum chip_helper_window_index window) in ChipHelper_WINDOW_SIZE() argument 717 if (window < CHIP_HELPER_WINDOW_COUNT && in ChipHelper_WINDOW_SIZE() 718 chip_help->windows[window] != NULL) in ChipHelper_WINDOW_SIZE() 720 return chip_help->windows[window]->size - chip_help->windows[window]->blocked; in ChipHelper_WINDOW_SIZE() 747 enum chip_helper_window_index window, in ChipHelper_DecodeWindow() argument 756 if (window >= CHIP_HELPER_WINDOW_COUNT) in ChipHelper_DecodeWindow() [all …]
|
/drivers/staging/vme/devices/ |
D | vme_pio2_core.c | 68 retval = vme_master_write(card->window, ®, 1, PIO2_REGS_CTRL); in pio2_set_led() 94 retval = vme_master_read(card->window, ®, 1, in pio2_int() 133 retval = vme_master_write(card->window, &data, 1, PIO2_REGS_CTRL); in pio2_reset_card() 138 retval = vme_master_write(card->window, &data, 1, PIO2_REGS_VME_VECTOR); in pio2_reset_card() 289 card->window = vme_master_request(vdev, VME_A24, VME_SCT, VME_D16); in pio2_probe() 290 if (card->window == NULL) { in pio2_probe() 297 retval = vme_master_set(card->window, 1, card->base, 0x10000, VME_A24, in pio2_probe() 311 retval = vme_master_read(card->window, ®, 1, PIO2_REGS_ID); in pio2_probe() 338 retval = vme_master_write(card->window, ®, 1, PIO2_REGS_CTRL); in pio2_probe() 343 retval = vme_master_write(card->window, &card->irq_vector, 1, in pio2_probe() [all …]
|
D | vme_pio2_cntr.c | 30 retval = vme_master_write(card->window, &data, 1, PIO2_CNTR_CTRL[id]); in pio2_cntr_irq_set() 35 retval = vme_master_write(card->window, &data, 1, PIO2_CNTR_DATA[id]); in pio2_cntr_irq_set() 40 retval = vme_master_write(card->window, &data, 1, PIO2_CNTR_DATA[id]); in pio2_cntr_irq_set() 63 retval = vme_master_read(card->window, ®, 1, in pio2_cntr_reset()
|
D | vme_pio2_gpio.c | 47 retval = vme_master_read(card->window, ®, 1, in pio2_gpio_get() 92 retval = vme_master_write(card->window, ®, 1, in pio2_gpio_set() 153 retval = vme_master_write(card->window, &data, 1, in pio2_gpio_reset() 162 retval = vme_master_write(card->window, &data, 1, in pio2_gpio_reset() 167 retval = vme_master_write(card->window, &data, 1, in pio2_gpio_reset() 179 retval = vme_master_read(card->window, &data, 1, in pio2_gpio_reset()
|
/drivers/pcmcia/ |
D | vrc4173_cardu.c | 251 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/ |
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 | 212 d->window = kzalloc(d->nr_windows * sizeof(*d->window), in register_intc_controller() 214 if (!d->window) in register_intc_controller() 220 d->window[k].phys = res->start; in register_intc_controller() 221 d->window[k].size = resource_size(res); in register_intc_controller() 222 d->window[k].virt = ioremap_nocache(res->start, in register_intc_controller() 224 if (!d->window[k].virt) in register_intc_controller() 401 if (d->window[k].virt) in register_intc_controller() 402 iounmap(d->window[k].virt); in register_intc_controller() 404 kfree(d->window); in register_intc_controller()
|
/drivers/acpi/ |
D | resource.c | 38 bool window) in acpi_dev_memresource_flags() argument 48 if (window) in acpi_dev_memresource_flags() 104 bool window) in acpi_dev_ioresource_flags() argument 114 if (window) in acpi_dev_ioresource_flags() 178 bool window; in acpi_dev_resource_address_space() local 197 window = addr.producer_consumer == ACPI_PRODUCER; in acpi_dev_resource_address_space() 204 window); in acpi_dev_resource_address_space() 211 io_decode, window); in acpi_dev_resource_address_space() 237 bool window; in acpi_dev_resource_ext_address_space() local 248 window = ext_addr->producer_consumer == ACPI_PRODUCER; in acpi_dev_resource_ext_address_space() [all …]
|
/drivers/net/wireless/iwlwifi/mvm/ |
D | rs.c | 248 static void rs_rate_scale_clear_window(struct iwl_rate_scale_data *window) in rs_rate_scale_clear_window() argument 250 window->data = 0; in rs_rate_scale_clear_window() 251 window->success_counter = 0; in rs_rate_scale_clear_window() 252 window->success_ratio = IWL_INVALID_VALUE; in rs_rate_scale_clear_window() 253 window->counter = 0; in rs_rate_scale_clear_window() 254 window->average_tpt = IWL_INVALID_VALUE; in rs_rate_scale_clear_window() 255 window->stamp = 0; in rs_rate_scale_clear_window() 465 struct iwl_rate_scale_data *window = NULL; in rs_collect_tx_data() local 473 window = &(tbl->win[scale_index]); in rs_collect_tx_data() 487 if (window->counter >= IWL_RATE_MAX_WINDOW) { in rs_collect_tx_data() [all …]
|
/drivers/net/wireless/iwlwifi/dvm/ |
D | rs.c | 245 static void rs_rate_scale_clear_window(struct iwl_rate_scale_data *window) in rs_rate_scale_clear_window() argument 247 window->data = 0; in rs_rate_scale_clear_window() 248 window->success_counter = 0; in rs_rate_scale_clear_window() 249 window->success_ratio = IWL_INVALID_VALUE; in rs_rate_scale_clear_window() 250 window->counter = 0; in rs_rate_scale_clear_window() 251 window->average_tpt = IWL_INVALID_VALUE; in rs_rate_scale_clear_window() 252 window->stamp = 0; in rs_rate_scale_clear_window() 482 struct iwl_rate_scale_data *window = NULL; in rs_collect_tx_data() local 490 window = &(tbl->win[scale_index]); in rs_collect_tx_data() 504 if (window->counter >= IWL_RATE_MAX_WINDOW) { in rs_collect_tx_data() [all …]
|
/drivers/mtd/devices/ |
D | bcm47xxsflash.c | 24 memcpy_fromio(buf, (void __iomem *)KSEG0ADDR(b47s->window + from), in bcm47xxsflash_read() 75 b47s->window = sflash->window; in bcm47xxsflash_bcma_probe()
|
/drivers/ssb/ |
D | driver_mipscore.c | 219 pflash->window = SSB_FLASH1; in ssb_mips_flash_detect() 234 pflash->window = SSB_FLASH2; in ssb_mips_flash_detect() 247 ssb_pflash_resource.start = pflash->window; in ssb_mips_flash_detect() 248 ssb_pflash_resource.end = pflash->window + pflash->window_size; in ssb_mips_flash_detect()
|