Searched defs:window (Results 1 - 25 of 33) sorted by relevance

12

/drivers/mtd/devices/
H A Ddocprobe.c78 /* doccheck: Probe a given memory window to see if there's a DiskOnChip present */
82 void __iomem *window=potential; local
91 /* Check for 0x55 0xAA signature at beginning of window,
93 if (ReadDOC(window, Sig1) != 0x55 || ReadDOC(window, Sig2) != 0xaa)
106 tmp2 = ReadDOC(window, DOCControl);
110 window, DOCControl);
112 window, DOCControl);
116 window, DOCControl);
118 window, DOCContro
[all...]
/drivers/mtd/maps/
H A Damd76xrom.c47 /* The 2 bits controlling the window size are often set to allow reading
55 * The bits are 6 and 7. If both bits are set, it is a 5MiB window.
56 * If only the 7 Bit is set, it is a 4MiB window. Otherwise, a
57 * 64KiB window.
62 MODULE_PARM_DESC(win_size_bits, "ROM window size bits override for 0x43 byte, normally set by BIOS.");
68 static void amd76xrom_cleanup(struct amd76xrom_window *window) argument
73 if (window->pdev) {
74 /* Disable writes through the rom window */
75 pci_read_config_byte(window->pdev, 0x40, &byte);
76 pci_write_config_byte(window
108 struct amd76xrom_window *window = &amd76xrom_window; local
294 struct amd76xrom_window *window = &amd76xrom_window; local
[all...]
H A Dck804xrom.c53 * The 2 bits controlling the window size are often set to allow reading
61 * The bits are 6 and 7. If both bits are set, it is a 5MiB window.
62 * If only the 7 Bit is set, it is a 4MiB window. Otherwise, a
63 * 64KiB window.
66 * The 15 bits controlling the window size are distributed as follows:
70 * If all bits are enabled, we have a 16? MiB window
75 MODULE_PARM_DESC(win_size_bits, "ROM window size bits override, normally set by BIOS.");
81 static void ck804xrom_cleanup(struct ck804xrom_window *window) argument
86 if (window->pdev) {
87 /* Disable writes through the rom window */
121 struct ck804xrom_window *window = &ck804xrom_window; local
325 struct ck804xrom_window *window = &ck804xrom_window; local
[all...]
H A Dichxrom.c56 static void ichxrom_cleanup(struct ichxrom_window *window) argument
61 /* Disable writes through the rom window */
62 pci_read_config_word(window->pdev, BIOS_CNTL, &word);
63 pci_write_config_word(window->pdev, BIOS_CNTL, word & ~1);
64 pci_dev_put(window->pdev);
67 list_for_each_entry_safe(map, scratch, &window->maps, list) {
75 if (window->rsrc.parent)
76 release_resource(&window->rsrc);
77 if (window->virt) {
78 iounmap(window
91 struct ichxrom_window *window = &ichxrom_window; local
320 struct ichxrom_window *window = &ichxrom_window; local
[all...]
H A Desb2rom.c117 static void esb2rom_cleanup(struct esb2rom_window *window) argument
122 /* Disable writes through the rom window */
123 pci_read_config_byte(window->pdev, BIOS_CNTL, &byte);
124 pci_write_config_byte(window->pdev, BIOS_CNTL,
128 list_for_each_entry_safe(map, scratch, &window->maps, list) {
136 if (window->rsrc.parent)
137 release_resource(&window->rsrc);
138 if (window->virt) {
139 iounmap(window->virt);
140 window
151 struct esb2rom_window *window = &esb2rom_window; local
383 struct esb2rom_window *window = &esb2rom_window; local
[all...]
/drivers/pci/
H A Dbus.c24 struct pci_host_bridge_window *window; local
26 window = kzalloc(sizeof(struct pci_host_bridge_window), GFP_KERNEL);
27 if (!window) {
28 printk(KERN_ERR "PCI: can't add host bridge window %pR\n", res);
32 window->res = res;
33 window->offset = offset;
34 list_add_tail(&window->list, resources);
46 struct pci_host_bridge_window *window, *tmp; local
48 list_for_each_entry_safe(window, tmp, resources, list) {
49 list_del(&window
[all...]
H A Dprobe.c73 struct pci_host_bridge_window *window; local
76 list_for_each_entry(window, &bridge->windows, list) {
77 if (resource_type(res) != resource_type(window->res))
80 if (resource_contains(window->res, res)) {
81 offset = window->offset;
101 struct pci_host_bridge_window *window; local
105 list_for_each_entry(window, &bridge->windows, list) {
106 if (resource_type(res) != resource_type(window->res))
109 bus_region.start = window->res->start - window
1654 struct pci_host_bridge_window *window, *n; local
[all...]
/drivers/sh/intc/
H A Daccess.c16 struct intc_window *window; local
21 window = d->window + k;
23 if (address < window->phys)
26 if (address >= (window->phys + window->size))
29 address -= window->phys;
30 address += (unsigned long)window->virt;
H A Dinternals.h67 struct intc_window *window; member in struct:intc_desc_int
/drivers/edac/
H A Di3000_edac.c315 void __iomem *window; local
321 window = ioremap_nocache(mchbar, I3000_MMR_WINDOW_SIZE);
322 if (!window) {
328 c0dra[0] = readb(window + I3000_C0DRA + 0); /* ranks 0,1 */
329 c0dra[1] = readb(window + I3000_C0DRA + 1); /* ranks 2,3 */
330 c1dra[0] = readb(window + I3000_C1DRA + 0); /* ranks 0,1 */
331 c1dra[1] = readb(window + I3000_C1DRA + 1); /* ranks 2,3 */
334 c0drb[i] = readb(window + I3000_C0DRB + i);
335 c1drb[i] = readb(window + I3000_C1DRB + i);
338 iounmap(window);
[all...]
H A Di82875p_edac.c270 void __iomem *window; local
313 window = pci_ioremap_bar(dev, 0);
314 if (window == NULL) {
320 *ovrfl_window = window;
H A Di3200_edac.c101 void __iomem *window; member in struct:i3200_priv
176 void __iomem *window = priv->window; local
189 info->eccerrlog[0] = readq(window + I3200_C0ECCERRLOG);
191 info->eccerrlog[1] = readq(window + I3200_C1ECCERRLOG);
202 info->eccerrlog[0] = readq(window + I3200_C0ECCERRLOG);
204 info->eccerrlog[1] = readq(window + I3200_C1ECCERRLOG);
258 void __iomem *window; local
271 window = ioremap_nocache(u.mchbar, I3200_MMR_WINDOW_SIZE);
272 if (!window)
280 i3200_get_drbs(void __iomem *window, u16 drbs[I3200_CHANNELS][I3200_RANKS_PER_CHANNEL]) argument
327 void __iomem *window; local
[all...]
H A Dx38_edac.c173 void __iomem *window = mci->pvt_info; local
186 info->eccerrlog[0] = x38_readq(window + X38_C0ECCERRLOG);
188 info->eccerrlog[1] = x38_readq(window + X38_C1ECCERRLOG);
199 info->eccerrlog[0] = x38_readq(window + X38_C0ECCERRLOG);
202 x38_readq(window + X38_C1ECCERRLOG);
254 void __iomem *window; local
268 window = ioremap_nocache(u.mchbar, X38_MMR_WINDOW_SIZE);
269 if (!window)
273 return window;
277 static void x38_get_drbs(void __iomem *window, argument
325 void __iomem *window; local
[all...]
/drivers/net/wireless/ath/ath5k/
H A Dpcu.c679 /* Timer3 marks the end of our ATIM window
680 * a zero length window is not allowed because
723 * ath5k_check_timer_win() - Check if timer B is timer A + window
726 * @window: difference between a and b
729 * This helper function checks if timer B is timer A + window and covers
736 ath5k_check_timer_win(int a, int b, int window, int intval) argument
739 * 1.) usually B should be A + window
744 if ((b - a == window) || /* 1.) */
745 (a - b == intval - window) || /* 2.) */
746 ((a | 0x10000) - b == intval - window) || /*
[all...]
/drivers/pcmcia/
H A Dvrc4173_cardu.c251 uint8_t ioctl, window; local
262 window = exca_readb(socket, ADR_WIN_EN);
263 io->flags = (window & IO_WIN_EN(map)) ? MAP_ACTIVE : 0;
276 uint8_t window, enable; local
283 window = exca_readb(socket, ADR_WIN_EN);
286 if (window & enable) {
287 window &= ~enable;
288 exca_writeb(socket, ADR_WIN_EN, window);
300 exca_writeb(socket, ADR_WIN_EN, window | enable);
309 uint8_t window; local
343 uint8_t window, enable; local
[all...]
/drivers/isdn/mISDN/
H A Dlayer2.h65 u_int window; member in struct:layer2
/drivers/net/wan/
H A Dsdla.c438 long window; local
441 window = flp->type == SDLA_S508 ? SDLA_508_CMD_BUF : SDLA_502_CMD_BUF;
442 cmd_buf = (struct sdla_cmd *)(dev->mem_start + (window & SDLA_ADDR_MASK));
448 SDLA_WINDOW(dev, window);
468 SDLA_WINDOW(dev, window);
478 SDLA_WINDOW(dev, window);
/drivers/pnp/pnpacpi/
H A Drsparser.c182 int window)
191 if (window)
254 int write_protect, int window)
263 if (window)
282 int window; local
294 window = (p->producer_consumer == ACPI_PRODUCER) ? 1 : 0;
298 p->info.mem.write_protect, window);
302 ACPI_DECODE_16, window);
311 int window; local
316 window
180 pnpacpi_parse_allocated_ioresource(struct pnp_dev *dev, u64 start, u64 len, int io_decode, int window) argument
252 pnpacpi_parse_allocated_memresource(struct pnp_dev *dev, u64 start, u64 len, int write_protect, int window) argument
[all...]
/drivers/sh/
H A Dpfc.c30 if (pip->window[k].virt)
31 iounmap(pip->window[k].virt);
33 kfree(pip->window);
34 pip->window = NULL;
45 pip->window = kzalloc(pip->num_resources * sizeof(*pip->window),
47 if (!pip->window)
53 pip->window[k].phys = res->start;
54 pip->window[k].size = resource_size(res);
55 pip->window[
72 struct pfc_window *window; local
[all...]
/drivers/staging/vme/devices/
H A Dvme_pio2.h235 struct vme_resource *window; member in struct:pio2_card
/drivers/iommu/
H A Dtegra-smmu.c886 struct resource *regs, *regs2, *window; local
897 window = platform_get_resource(pdev, IORESOURCE_MEM, 2);
898 if (!regs || !regs2 || !window) {
911 smmu->iovmm_base = (unsigned long)window->start;
912 smmu->page_count = resource_size(window) >> SMMU_PAGE_SHIFT;
/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_hw.c1088 * Changes the CRB window to the specified window.
1092 u32 window)
1098 if (adapter->ahw.crb_win == window)
1104 writel(window, offset);
1106 if (window == readl(offset))
1111 "failed to set CRB window to %d\n",
1112 (window == NETXEN_WINDOW_ONE));
1118 adapter->ahw.crb_win = window;
1123 * 1 if window acces
1091 netxen_nic_pci_set_crbwindow_128M(struct netxen_adapter *adapter, u32 window) argument
1167 u32 window; local
1397 u32 window; local
[all...]
/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_hw.c858 * Changes the CRB window to the specified window.
861 * 1 if window access is needed. 'off' is set to offset from
863 * 0 if no window access is needed. 'off' is set to 2M addr
889 * Not in direct map, use crb window
898 * side effect: lock crb window
903 u32 window; local
908 window = CRB_HI(off);
909 if (window == 0) {
914 writel(window, add
1003 u32 window; local
[all...]
/drivers/net/wireless/iwlwifi/
H A Diwl-agn-rs.c49 #define IWL_RATE_MAX_WINDOW 62 /* # tx in history window */
247 static void rs_rate_scale_clear_window(struct iwl_rate_scale_data *window) argument
249 window->data = 0;
250 window->success_counter = 0;
251 window->success_ratio = IWL_INVALID_VALUE;
252 window->counter = 0;
253 window->average_tpt = IWL_INVALID_VALUE;
254 window->stamp = 0;
474 * rs_collect_tx_data - Update the success/failure sliding window
476 * We keep a sliding window o
483 struct iwl_rate_scale_data *window = NULL; local
1446 struct iwl_rate_scale_data *window = &(tbl->win[index]); local
1621 struct iwl_rate_scale_data *window = &(tbl->win[index]); local
1793 struct iwl_rate_scale_data *window = &(tbl->win[index]); local
1963 struct iwl_rate_scale_data *window = &(tbl->win[index]); local
2243 struct iwl_rate_scale_data *window = NULL; local
[all...]
/drivers/scsi/qla4xxx/
H A Dql4_nx.c25 /* CRB window related */
352 * side effect: lock crb window
527 * Not in direct map, use crb window
559 int window; local
565 window = MN_WIN(addr);
566 ha->ddr_mn_window = window;
568 QLA82XX_PCI_CRBSPACE, window);
571 if ((win_read << 17) != window) {
574 __func__, window, win_read);
586 window
634 int window; local
[all...]

Completed in 481 milliseconds

12