win 185 arch/arm/mach-s3c24xx/mach-smdk2416.c .win[0] = &smdk2416_fb_win[0], win 153 arch/arm/mach-s3c64xx/mach-anw6410.c .win[0] = &anw6410_fb_win0, win 177 arch/arm/mach-s3c64xx/mach-crag6410.c .win[0] = &crag6410_fb_win0, win 155 arch/arm/mach-s3c64xx/mach-hmt.c .win[0] = &hmt_fb_win0, win 184 arch/arm/mach-s3c64xx/mach-mini6410.c .win[0] = &mini6410_lcd_type0_fb_win, win 190 arch/arm/mach-s3c64xx/mach-mini6410.c .win[0] = &mini6410_lcd_type1_fb_win, win 324 arch/arm/mach-s3c64xx/mach-mini6410.c mini6410_lcd_pdata[features.lcd_index].win[0]->xres, win 325 arch/arm/mach-s3c64xx/mach-mini6410.c mini6410_lcd_pdata[features.lcd_index].win[0]->yres); win 145 arch/arm/mach-s3c64xx/mach-real6410.c .win[0] = &real6410_lcd_type0_fb_win, win 151 arch/arm/mach-s3c64xx/mach-real6410.c .win[0] = &real6410_lcd_type1_fb_win, win 294 arch/arm/mach-s3c64xx/mach-real6410.c real6410_lcd_pdata[features.lcd_index].win[0]->xres, win 295 arch/arm/mach-s3c64xx/mach-real6410.c real6410_lcd_pdata[features.lcd_index].win[0]->yres); win 127 arch/arm/mach-s3c64xx/mach-smartq5.c .win[0] = &smartq5_fb_win0, win 143 arch/arm/mach-s3c64xx/mach-smartq7.c .win[0] = &smartq7_fb_win0, win 168 arch/arm/mach-s3c64xx/mach-smdk6410.c .win[0] = &smdk6410_fb_win0, win 25 arch/arm/plat-orion/include/plat/addr-map.h const int win); win 29 arch/arm/plat-orion/include/plat/addr-map.h const int win); win 36 arch/arm/plat-orion/include/plat/addr-map.h const int win; win 48 arch/arm/plat-orion/include/plat/addr-map.h const int win, const u32 base, win 346 arch/mips/include/asm/mach-loongson64/loongson.h #define LOONGSON_ADDRWIN_CPUTOPCI(win, src, dst, size) \ win 347 arch/mips/include/asm/mach-loongson64/loongson.h LOONGSON_ADDRWIN_CFG(CPU, PCI, win, src, dst, size) win 348 arch/mips/include/asm/mach-loongson64/loongson.h #define LOONGSON_ADDRWIN_CPUTODDR(win, src, dst, size) \ win 349 arch/mips/include/asm/mach-loongson64/loongson.h LOONGSON_ADDRWIN_CFG(CPU, DDR, win, src, dst, size) win 350 arch/mips/include/asm/mach-loongson64/loongson.h #define LOONGSON_ADDRWIN_PCITODDR(win, src, dst, size) \ win 351 arch/mips/include/asm/mach-loongson64/loongson.h LOONGSON_ADDRWIN_CFG(PCIDMA, DDR, win, src, dst, size) win 59 arch/mips/include/asm/txx9/tx4939.h __u64 win[4]; win 101 arch/mips/txx9/generic/setup_tx4939.c u64 win; win 106 arch/mips/txx9/generic/setup_tx4939.c win = ____raw_readq(&tx4939_ddrcptr->win[i]); win 107 arch/mips/txx9/generic/setup_tx4939.c start = (unsigned long)(win >> 48); win 108 arch/mips/txx9/generic/setup_tx4939.c size = (((unsigned long)(win >> 32) & 0xffff) + 1) - start; win 230 arch/mips/txx9/generic/setup_tx4939.c __u64 win = ____raw_readq(&tx4939_ddrcptr->win[i]); win 233 arch/mips/txx9/generic/setup_tx4939.c pr_cont(" #%d:%016llx", i, win); win 236 arch/mips/txx9/generic/setup_tx4939.c (unsigned long)(win >> 48) << 20; win 238 arch/mips/txx9/generic/setup_tx4939.c ((((unsigned long)(win >> 32) & 0xffff) + 1) << win 152 arch/powerpc/include/asm/vas.h int vas_win_close(struct vas_window *win); win 164 arch/powerpc/include/asm/vas.h int vas_paste_crb(struct vas_window *win, int offset, bool re); win 1340 arch/powerpc/platforms/powernv/pci-ioda.c unsigned int win; win 1378 arch/powerpc/platforms/powernv/pci-ioda.c win = find_next_zero_bit(&phb->ioda.m64_bar_alloc, win 1381 arch/powerpc/platforms/powernv/pci-ioda.c if (win >= phb->ioda.m64_bar_idx + 1) win 1383 arch/powerpc/platforms/powernv/pci-ioda.c } while (test_and_set_bit(win, &phb->ioda.m64_bar_alloc)); win 1385 arch/powerpc/platforms/powernv/pci-ioda.c pdn->m64_map[j][i] = win; win 1414 arch/powerpc/platforms/powernv/pci-ioda.c win, rc); win 1427 arch/powerpc/platforms/powernv/pci-ioda.c win, rc); win 3497 arch/powerpc/platforms/powernv/pci-ioda.c unsigned short win, win 3508 arch/powerpc/platforms/powernv/pci-ioda.c if (win == OPAL_M64_WINDOW_TYPE) win 3510 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.reserved_pe_idx, win, win 3515 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.reserved_pe_idx, win, 0, idx); win 3519 arch/powerpc/platforms/powernv/pci-ioda.c rc, win, idx); win 50 arch/powerpc/platforms/powernv/vas-debug.c static inline void print_reg(struct seq_file *s, struct vas_window *win, win 53 arch/powerpc/platforms/powernv/vas-debug.c seq_printf(s, "0x%016llx %s\n", read_hvwc_reg(win, name, reg), name); win 83 arch/powerpc/platforms/powernv/vas-trace.h struct vas_window *win), win 85 arch/powerpc/platforms/powernv/vas-trace.h TP_ARGS(tsk, win), win 89 arch/powerpc/platforms/powernv/vas-trace.h __field(struct vas_window *, win) win 98 arch/powerpc/platforms/powernv/vas-trace.h __entry->vasid = win->vinst->vas_id; win 99 arch/powerpc/platforms/powernv/vas-trace.h __entry->winid = win->winid; win 100 arch/powerpc/platforms/powernv/vas-trace.h __entry->paste_kaddr = (unsigned long)win->paste_kaddr win 407 arch/powerpc/platforms/powernv/vas.h extern void vas_window_init_dbgdir(struct vas_window *win); win 408 arch/powerpc/platforms/powernv/vas.h extern void vas_window_free_dbgdir(struct vas_window *win); win 410 arch/powerpc/platforms/powernv/vas.h static inline void vas_log_write(struct vas_window *win, char *name, win 415 arch/powerpc/platforms/powernv/vas.h win->tx_win ? "Tx" : "Rx", win->winid, name, win 419 arch/powerpc/platforms/powernv/vas.h static inline void write_uwc_reg(struct vas_window *win, char *name, win 424 arch/powerpc/platforms/powernv/vas.h regptr = win->uwc_map + reg; win 425 arch/powerpc/platforms/powernv/vas.h vas_log_write(win, name, regptr, val); win 430 arch/powerpc/platforms/powernv/vas.h static inline void write_hvwc_reg(struct vas_window *win, char *name, win 435 arch/powerpc/platforms/powernv/vas.h regptr = win->hvwc_map + reg; win 436 arch/powerpc/platforms/powernv/vas.h vas_log_write(win, name, regptr, val); win 441 arch/powerpc/platforms/powernv/vas.h static inline u64 read_hvwc_reg(struct vas_window *win, win 444 arch/powerpc/platforms/powernv/vas.h return in_be64(win->hvwc_map+reg); win 305 arch/sh/drivers/pci/pcie-sh7786.c int ret, i, win; win 441 arch/sh/drivers/pci/pcie-sh7786.c for (i = win = 0; i < chan->nr_resources; i++) { win 456 arch/sh/drivers/pci/pcie-sh7786.c pci_write_reg(chan, 0x00000000, SH4A_PCIEPTCTLR(win)); win 464 arch/sh/drivers/pci/pcie-sh7786.c pci_write_reg(chan, mask << 18, SH4A_PCIEPAMR(win)); win 467 arch/sh/drivers/pci/pcie-sh7786.c SH4A_PCIEPARH(win)); win 469 arch/sh/drivers/pci/pcie-sh7786.c SH4A_PCIEPARL(win)); win 475 arch/sh/drivers/pci/pcie-sh7786.c pci_write_reg(chan, mask, SH4A_PCIEPTCTLR(win)); win 477 arch/sh/drivers/pci/pcie-sh7786.c win++; win 21 arch/sparc/kernel/kgdb_32.c struct reg_window32 *win; win 28 arch/sparc/kernel/kgdb_32.c win = (struct reg_window32 *) regs->u_regs[UREG_FP]; win 30 arch/sparc/kernel/kgdb_32.c gdb_regs[GDB_L0 + i] = win->locals[i]; win 32 arch/sparc/kernel/kgdb_32.c gdb_regs[GDB_I0 + i] = win->ins[i]; win 50 arch/sparc/kernel/kgdb_32.c struct reg_window32 *win; win 62 arch/sparc/kernel/kgdb_32.c win = (struct reg_window32 *) t->ksp; win 64 arch/sparc/kernel/kgdb_32.c gdb_regs[GDB_L0 + i] = win->locals[i]; win 66 arch/sparc/kernel/kgdb_32.c gdb_regs[GDB_I0 + i] = win->ins[i]; win 84 arch/sparc/kernel/kgdb_32.c struct reg_window32 *win; win 103 arch/sparc/kernel/kgdb_32.c win = (struct reg_window32 *) regs->u_regs[UREG_FP]; win 105 arch/sparc/kernel/kgdb_32.c win->locals[i] = gdb_regs[GDB_L0 + i]; win 107 arch/sparc/kernel/kgdb_32.c win->ins[i] = gdb_regs[GDB_I0 + i]; win 21 arch/sparc/kernel/kgdb_64.c struct reg_window *win; win 28 arch/sparc/kernel/kgdb_64.c win = (struct reg_window *) (regs->u_regs[UREG_FP] + STACK_BIAS); win 30 arch/sparc/kernel/kgdb_64.c gdb_regs[GDB_L0 + i] = win->locals[i]; win 32 arch/sparc/kernel/kgdb_64.c gdb_regs[GDB_I0 + i] = win->ins[i]; win 50 arch/sparc/kernel/kgdb_64.c struct reg_window *win; win 63 arch/sparc/kernel/kgdb_64.c win = (struct reg_window *) (t->ksp + STACK_BIAS); win 65 arch/sparc/kernel/kgdb_64.c gdb_regs[GDB_L0 + i] = win->locals[i]; win 67 arch/sparc/kernel/kgdb_64.c gdb_regs[GDB_I0 + i] = win->ins[i]; win 90 arch/sparc/kernel/kgdb_64.c struct reg_window *win; win 109 arch/sparc/kernel/kgdb_64.c win = (struct reg_window *) (regs->u_regs[UREG_FP] + STACK_BIAS); win 111 arch/sparc/kernel/kgdb_64.c win->locals[i] = gdb_regs[GDB_L0 + i]; win 113 arch/sparc/kernel/kgdb_64.c win->ins[i] = gdb_regs[GDB_I0 + i]; win 95 arch/sparc/kernel/unaligned_32.c struct reg_window32 *win; win 101 arch/sparc/kernel/unaligned_32.c win = (struct reg_window32 *) regs->u_regs[UREG_FP]; win 102 arch/sparc/kernel/unaligned_32.c return win->locals[reg - 16]; /* yes, I know what this does... */ win 107 arch/sparc/kernel/unaligned_32.c struct reg_window32 __user *win; win 114 arch/sparc/kernel/unaligned_32.c win = (struct reg_window32 __user *) regs->u_regs[UREG_FP]; win 116 arch/sparc/kernel/unaligned_32.c if ((unsigned long)win & 3) win 119 arch/sparc/kernel/unaligned_32.c if (get_user(ret, &win->locals[reg - 16])) win 127 arch/sparc/kernel/unaligned_32.c struct reg_window32 *win; win 131 arch/sparc/kernel/unaligned_32.c win = (struct reg_window32 *) regs->u_regs[UREG_FP]; win 132 arch/sparc/kernel/unaligned_32.c return &win->locals[reg - 16]; win 130 arch/sparc/kernel/unaligned_64.c struct reg_window *win; win 131 arch/sparc/kernel/unaligned_64.c win = (struct reg_window *)(fp + STACK_BIAS); win 132 arch/sparc/kernel/unaligned_64.c value = win->locals[reg - 16]; win 138 arch/sparc/kernel/unaligned_64.c struct reg_window __user *win; win 139 arch/sparc/kernel/unaligned_64.c win = (struct reg_window __user *)(fp + STACK_BIAS); win 140 arch/sparc/kernel/unaligned_64.c get_user(value, &win->locals[reg - 16]); win 155 arch/sparc/kernel/unaligned_64.c struct reg_window *win; win 156 arch/sparc/kernel/unaligned_64.c win = (struct reg_window *)(fp + STACK_BIAS); win 157 arch/sparc/kernel/unaligned_64.c return &win->locals[reg - 16]; win 163 arch/sparc/kernel/unaligned_64.c struct reg_window *win; win 164 arch/sparc/kernel/unaligned_64.c win = (struct reg_window *)(fp + STACK_BIAS); win 165 arch/sparc/kernel/unaligned_64.c return &win->locals[reg - 16]; win 422 arch/sparc/kernel/unaligned_64.c struct reg_window __user *win; win 423 arch/sparc/kernel/unaligned_64.c win = (struct reg_window __user *)(fp + STACK_BIAS); win 424 arch/sparc/kernel/unaligned_64.c put_user(ret, &win->locals[rd - 16]); win 161 arch/sparc/kernel/visemul.c struct reg_window *win; win 162 arch/sparc/kernel/visemul.c win = (struct reg_window *)(fp + STACK_BIAS); win 163 arch/sparc/kernel/visemul.c value = win->locals[reg - 16]; win 169 arch/sparc/kernel/visemul.c struct reg_window __user *win; win 170 arch/sparc/kernel/visemul.c win = (struct reg_window __user *)(fp + STACK_BIAS); win 171 arch/sparc/kernel/visemul.c get_user(value, &win->locals[reg - 16]); win 189 arch/sparc/kernel/visemul.c struct reg_window __user *win; win 190 arch/sparc/kernel/visemul.c win = (struct reg_window __user *)(fp + STACK_BIAS); win 191 arch/sparc/kernel/visemul.c return &win->locals[reg - 16]; win 330 arch/sparc/math-emu/math_64.c struct reg_window __user *win; win 332 arch/sparc/math-emu/math_64.c win = (struct reg_window __user *)(regs->u_regs[UREG_FP] + STACK_BIAS); win 333 arch/sparc/math-emu/math_64.c get_user(XR, &win->locals[freg - 16]); win 132 arch/x86/pci/mmconfig-shared.c u32 win; win 133 arch/x86/pci/mmconfig-shared.c raw_pci_ops->read(0, 0, PCI_DEVFN(0, 0), 0xce, 2, &win); win 135 arch/x86/pci/mmconfig-shared.c win = win & 0xf000; win 136 arch/x86/pci/mmconfig-shared.c if (win == 0x0000 || win == 0xf000) win 139 arch/x86/pci/mmconfig-shared.c if (pci_mmconfig_add(0, 0, 255, win << 16) == NULL) win 43 drivers/acpi/ioapic.c struct resource_win win; win 49 drivers/acpi/ioapic.c memset(&win, 0, sizeof(win)); win 56 drivers/acpi/ioapic.c if (acpi_dev_resource_address_space(acpi_res, &win) || win 57 drivers/acpi/ioapic.c acpi_dev_resource_ext_address_space(acpi_res, &win)) win 58 drivers/acpi/ioapic.c *res = win.res; win 205 drivers/acpi/resource.c static bool acpi_decode_space(struct resource_win *win, win 213 drivers/acpi/resource.c struct resource *res = &win->res; win 239 drivers/acpi/resource.c win->offset = offset; win 243 drivers/acpi/resource.c (offset != win->offset || start != res->start || end != res->end)) { win 289 drivers/acpi/resource.c struct resource_win *win) win 293 drivers/acpi/resource.c win->res.flags = 0; win 297 drivers/acpi/resource.c return acpi_decode_space(win, (struct acpi_resource_address *)&addr, win 318 drivers/acpi/resource.c struct resource_win *win) win 322 drivers/acpi/resource.c win->res.flags = 0; win 328 drivers/acpi/resource.c return acpi_decode_space(win, (struct acpi_resource_address *)ext_addr, win 513 drivers/acpi/resource.c static acpi_status acpi_dev_new_resource_entry(struct resource_win *win, win 523 drivers/acpi/resource.c *rentry->res = win->res; win 524 drivers/acpi/resource.c rentry->offset = win->offset; win 534 drivers/acpi/resource.c struct resource_win win; win 535 drivers/acpi/resource.c struct resource *res = &win.res; win 550 drivers/acpi/resource.c memset(&win, 0, sizeof(win)); win 554 drivers/acpi/resource.c || acpi_dev_resource_address_space(ares, &win) win 555 drivers/acpi/resource.c || acpi_dev_resource_ext_address_space(ares, &win)) win 556 drivers/acpi/resource.c return acpi_dev_new_resource_entry(&win, c); win 561 drivers/acpi/resource.c status = acpi_dev_new_resource_entry(&win, c); win 633 drivers/acpi/resource.c struct resource_win win; win 634 drivers/acpi/resource.c struct resource *res = &win.res; win 636 drivers/acpi/resource.c memset(&win, 0, sizeof(win)); win 639 drivers/acpi/resource.c || acpi_dev_resource_address_space(ares, &win) win 640 drivers/acpi/resource.c || acpi_dev_resource_ext_address_space(ares, &win)); win 27 drivers/ata/ahci_mvebu.c #define AHCI_WINDOW_CTRL(win) (0x60 + ((win) << 4)) win 28 drivers/ata/ahci_mvebu.c #define AHCI_WINDOW_BASE(win) (0x64 + ((win) << 4)) win 29 drivers/ata/ahci_mvebu.c #define AHCI_WINDOW_SIZE(win) (0x68 + ((win) << 4)) win 116 drivers/bus/mvebu-mbus.c unsigned int (*win_cfg_offset)(const int win); win 117 drivers/bus/mvebu-mbus.c unsigned int (*win_remap_offset)(const int win); win 191 drivers/bus/mvebu-mbus.c const int win) win 193 drivers/bus/mvebu-mbus.c return mbus->soc->win_remap_offset(win) != MVEBU_MBUS_NO_REMAP; win 201 drivers/bus/mvebu-mbus.c int win, int *enabled, u64 *base, win 206 drivers/bus/mvebu-mbus.c mbus->soc->win_cfg_offset(win); win 227 drivers/bus/mvebu-mbus.c if (mvebu_mbus_window_is_remappable(mbus, win)) { win 230 drivers/bus/mvebu-mbus.c mbus->soc->win_remap_offset(win); win 240 drivers/bus/mvebu-mbus.c int win) win 244 drivers/bus/mvebu-mbus.c addr = mbus->mbuswins_base + mbus->soc->win_cfg_offset(win); win 248 drivers/bus/mvebu-mbus.c if (mvebu_mbus_window_is_remappable(mbus, win)) { win 249 drivers/bus/mvebu-mbus.c addr = mbus->mbuswins_base + mbus->soc->win_remap_offset(win); win 258 drivers/bus/mvebu-mbus.c const int win) win 261 drivers/bus/mvebu-mbus.c mbus->soc->win_cfg_offset(win); win 276 drivers/bus/mvebu-mbus.c int win; win 278 drivers/bus/mvebu-mbus.c for (win = 0; win < mbus->soc->num_wins; win++) { win 284 drivers/bus/mvebu-mbus.c mvebu_mbus_read_window(mbus, win, win 307 drivers/bus/mvebu-mbus.c int win; win 309 drivers/bus/mvebu-mbus.c for (win = 0; win < mbus->soc->num_wins; win++) { win 314 drivers/bus/mvebu-mbus.c mvebu_mbus_read_window(mbus, win, win 322 drivers/bus/mvebu-mbus.c return win; win 329 drivers/bus/mvebu-mbus.c int win, phys_addr_t base, size_t size, win 334 drivers/bus/mvebu-mbus.c mbus->soc->win_cfg_offset(win); win 358 drivers/bus/mvebu-mbus.c if (mvebu_mbus_window_is_remappable(mbus, win)) { win 360 drivers/bus/mvebu-mbus.c mbus->soc->win_remap_offset(win); win 378 drivers/bus/mvebu-mbus.c int win; win 381 drivers/bus/mvebu-mbus.c for (win = 0; win < mbus->soc->num_wins; win++) { win 382 drivers/bus/mvebu-mbus.c if (mvebu_mbus_window_is_remappable(mbus, win)) win 385 drivers/bus/mvebu-mbus.c if (mvebu_mbus_window_is_free(mbus, win)) win 386 drivers/bus/mvebu-mbus.c return mvebu_mbus_setup_window(mbus, win, base, win 392 drivers/bus/mvebu-mbus.c for (win = 0; win < mbus->soc->num_wins; win++) { win 395 drivers/bus/mvebu-mbus.c !mvebu_mbus_window_is_remappable(mbus, win)) win 398 drivers/bus/mvebu-mbus.c if (mvebu_mbus_window_is_free(mbus, win)) win 399 drivers/bus/mvebu-mbus.c return mvebu_mbus_setup_window(mbus, win, base, size, win 488 drivers/bus/mvebu-mbus.c int win; win 490 drivers/bus/mvebu-mbus.c for (win = 0; win < mbus->soc->num_wins; win++) { win 496 drivers/bus/mvebu-mbus.c mvebu_mbus_read_window(mbus, win, win 501 drivers/bus/mvebu-mbus.c seq_printf(seq, "[%02d] disabled\n", win); win 506 drivers/bus/mvebu-mbus.c win, (unsigned long long)wbase, win 513 drivers/bus/mvebu-mbus.c if (mvebu_mbus_window_is_remappable(mbus, win)) { win 539 drivers/bus/mvebu-mbus.c static unsigned int generic_mbus_win_cfg_offset(int win) win 541 drivers/bus/mvebu-mbus.c return win << 4; win 544 drivers/bus/mvebu-mbus.c static unsigned int armada_370_xp_mbus_win_cfg_offset(int win) win 558 drivers/bus/mvebu-mbus.c if (win < 8) win 559 drivers/bus/mvebu-mbus.c return win << 4; win 561 drivers/bus/mvebu-mbus.c return 0x90 + ((win - 8) << 3); win 564 drivers/bus/mvebu-mbus.c static unsigned int mv78xx0_mbus_win_cfg_offset(int win) win 566 drivers/bus/mvebu-mbus.c if (win < 8) win 567 drivers/bus/mvebu-mbus.c return win << 4; win 569 drivers/bus/mvebu-mbus.c return 0x900 + ((win - 8) << 4); win 572 drivers/bus/mvebu-mbus.c static unsigned int generic_mbus_win_remap_2_offset(int win) win 574 drivers/bus/mvebu-mbus.c if (win < 2) win 575 drivers/bus/mvebu-mbus.c return generic_mbus_win_cfg_offset(win); win 580 drivers/bus/mvebu-mbus.c static unsigned int generic_mbus_win_remap_4_offset(int win) win 582 drivers/bus/mvebu-mbus.c if (win < 4) win 583 drivers/bus/mvebu-mbus.c return generic_mbus_win_cfg_offset(win); win 588 drivers/bus/mvebu-mbus.c static unsigned int generic_mbus_win_remap_8_offset(int win) win 590 drivers/bus/mvebu-mbus.c if (win < 8) win 591 drivers/bus/mvebu-mbus.c return generic_mbus_win_cfg_offset(win); win 596 drivers/bus/mvebu-mbus.c static unsigned int armada_xp_mbus_win_remap_offset(int win) win 598 drivers/bus/mvebu-mbus.c if (win < 8) win 599 drivers/bus/mvebu-mbus.c return generic_mbus_win_cfg_offset(win); win 600 drivers/bus/mvebu-mbus.c else if (win == 13) win 927 drivers/bus/mvebu-mbus.c int win; win 929 drivers/bus/mvebu-mbus.c win = mvebu_mbus_find_window(&mbus_state, base, size); win 930 drivers/bus/mvebu-mbus.c if (win < 0) win 931 drivers/bus/mvebu-mbus.c return win; win 933 drivers/bus/mvebu-mbus.c mvebu_mbus_disable_window(&mbus_state, win); win 983 drivers/bus/mvebu-mbus.c int win; win 985 drivers/bus/mvebu-mbus.c for (win = 0; win < mbus_state.soc->num_wins; win++) { win 989 drivers/bus/mvebu-mbus.c mvebu_mbus_read_window(&mbus_state, win, &enabled, &wbase, win 996 drivers/bus/mvebu-mbus.c return win; win 1032 drivers/bus/mvebu-mbus.c int win; win 1037 drivers/bus/mvebu-mbus.c for (win = 0; win < s->soc->num_wins; win++) { win 1039 drivers/bus/mvebu-mbus.c s->soc->win_cfg_offset(win); win 1042 drivers/bus/mvebu-mbus.c s->wins[win].base = readl(addr + WIN_BASE_OFF); win 1043 drivers/bus/mvebu-mbus.c s->wins[win].ctrl = readl(addr + WIN_CTRL_OFF); win 1045 drivers/bus/mvebu-mbus.c if (!mvebu_mbus_window_is_remappable(s, win)) win 1049 drivers/bus/mvebu-mbus.c s->soc->win_remap_offset(win); win 1051 drivers/bus/mvebu-mbus.c s->wins[win].remap_lo = readl(addr_rmp + WIN_REMAP_LO_OFF); win 1052 drivers/bus/mvebu-mbus.c s->wins[win].remap_hi = readl(addr_rmp + WIN_REMAP_HI_OFF); win 1066 drivers/bus/mvebu-mbus.c int win; win 1073 drivers/bus/mvebu-mbus.c for (win = 0; win < s->soc->num_wins; win++) { win 1075 drivers/bus/mvebu-mbus.c s->soc->win_cfg_offset(win); win 1078 drivers/bus/mvebu-mbus.c writel(s->wins[win].base, addr + WIN_BASE_OFF); win 1079 drivers/bus/mvebu-mbus.c writel(s->wins[win].ctrl, addr + WIN_CTRL_OFF); win 1081 drivers/bus/mvebu-mbus.c if (!mvebu_mbus_window_is_remappable(s, win)) win 1085 drivers/bus/mvebu-mbus.c s->soc->win_remap_offset(win); win 1087 drivers/bus/mvebu-mbus.c writel(s->wins[win].remap_lo, addr_rmp + WIN_REMAP_LO_OFF); win 1088 drivers/bus/mvebu-mbus.c writel(s->wins[win].remap_hi, addr_rmp + WIN_REMAP_HI_OFF); win 1106 drivers/bus/mvebu-mbus.c int win; win 1131 drivers/bus/mvebu-mbus.c for (win = 0; win < mbus->soc->num_wins; win++) win 1132 drivers/bus/mvebu-mbus.c mvebu_mbus_disable_window(mbus, win); win 438 drivers/char/tpm/tpm_crb.c struct resource_win win; win 439 drivers/char/tpm/tpm_crb.c struct resource *res = &(win.res); win 442 drivers/char/tpm/tpm_crb.c acpi_dev_resource_address_space(ares, &win)) { win 263 drivers/gpu/drm/exynos/exynos5433_drm_decon.c static void decon_win_set_bldeq(struct decon_context *ctx, unsigned int win, win 286 drivers/gpu/drm/exynos/exynos5433_drm_decon.c decon_set_bits(ctx, DECON_BLENDERQx(win), mask, val); win 289 drivers/gpu/drm/exynos/exynos5433_drm_decon.c static void decon_win_set_bldmod(struct decon_context *ctx, unsigned int win, win 306 drivers/gpu/drm/exynos/exynos5433_drm_decon.c decon_set_bits(ctx, DECON_WINCONx(win), WINCONx_BLEND_MODE_MASK, val); win 312 drivers/gpu/drm/exynos/exynos5433_drm_decon.c decon_set_bits(ctx, DECON_VIDOSDxC(win), win 318 drivers/gpu/drm/exynos/exynos5433_drm_decon.c static void decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win, win 321 drivers/gpu/drm/exynos/exynos5433_drm_decon.c struct exynos_drm_plane plane = ctx->planes[win]; win 333 drivers/gpu/drm/exynos/exynos5433_drm_decon.c val = readl(ctx->addr + DECON_WINCONx(win)); win 374 drivers/gpu/drm/exynos/exynos5433_drm_decon.c decon_set_bits(ctx, DECON_WINCONx(win), ~WINCONx_BLEND_MODE_MASK, val); win 376 drivers/gpu/drm/exynos/exynos5433_drm_decon.c if (win > 0) { win 377 drivers/gpu/drm/exynos/exynos5433_drm_decon.c decon_win_set_bldmod(ctx, win, alpha, pixel_alpha); win 378 drivers/gpu/drm/exynos/exynos5433_drm_decon.c decon_win_set_bldeq(ctx, win, alpha, pixel_alpha); win 406 drivers/gpu/drm/exynos/exynos5433_drm_decon.c unsigned int win = plane->index; win 415 drivers/gpu/drm/exynos/exynos5433_drm_decon.c writel(val, ctx->addr + DECON_VIDOSDxA(win)); win 419 drivers/gpu/drm/exynos/exynos5433_drm_decon.c writel(val, ctx->addr + DECON_VIDOSDxB(win)); win 422 drivers/gpu/drm/exynos/exynos5433_drm_decon.c writel(val, ctx->addr + DECON_VIDOSDxA(win)); win 426 drivers/gpu/drm/exynos/exynos5433_drm_decon.c writel(val, ctx->addr + DECON_VIDOSDxB(win)); win 431 drivers/gpu/drm/exynos/exynos5433_drm_decon.c writel(val, ctx->addr + DECON_VIDOSDxC(win)); win 435 drivers/gpu/drm/exynos/exynos5433_drm_decon.c writel(val, ctx->addr + DECON_VIDOSDxD(win)); win 437 drivers/gpu/drm/exynos/exynos5433_drm_decon.c writel(dma_addr, ctx->addr + DECON_VIDW0xADD0B0(win)); win 440 drivers/gpu/drm/exynos/exynos5433_drm_decon.c writel(val, ctx->addr + DECON_VIDW0xADD1B0(win)); win 448 drivers/gpu/drm/exynos/exynos5433_drm_decon.c writel(val, ctx->addr + DECON_VIDW0xADD2(win)); win 450 drivers/gpu/drm/exynos/exynos5433_drm_decon.c decon_win_set_pixfmt(ctx, win, fb); win 453 drivers/gpu/drm/exynos/exynos5433_drm_decon.c decon_set_bits(ctx, DECON_WINCONx(win), WINCONx_ENWIN_F, ~0); win 460 drivers/gpu/drm/exynos/exynos5433_drm_decon.c unsigned int win = plane->index; win 462 drivers/gpu/drm/exynos/exynos5433_drm_decon.c decon_set_bits(ctx, DECON_WINCONx(win), WINCONx_ENWIN_F, 0); win 563 drivers/gpu/drm/exynos/exynos5433_drm_decon.c int win, i, ret; win 572 drivers/gpu/drm/exynos/exynos5433_drm_decon.c for (win = 0; win < WINDOWS_NR; win++) win 573 drivers/gpu/drm/exynos/exynos5433_drm_decon.c decon_set_bits(ctx, DECON_WINCONx(win), WINCONx_ENWIN_F, 0); win 620 drivers/gpu/drm/exynos/exynos5433_drm_decon.c unsigned int win; win 625 drivers/gpu/drm/exynos/exynos5433_drm_decon.c for (win = ctx->first_win; win < WINDOWS_NR; win++) { win 626 drivers/gpu/drm/exynos/exynos5433_drm_decon.c ctx->configs[win].pixel_formats = decon_formats; win 627 drivers/gpu/drm/exynos/exynos5433_drm_decon.c ctx->configs[win].num_pixel_formats = ARRAY_SIZE(decon_formats); win 628 drivers/gpu/drm/exynos/exynos5433_drm_decon.c ctx->configs[win].zpos = win - ctx->first_win; win 629 drivers/gpu/drm/exynos/exynos5433_drm_decon.c ctx->configs[win].type = decon_win_types[win]; win 630 drivers/gpu/drm/exynos/exynos5433_drm_decon.c ctx->configs[win].capabilities = capabilities[win]; win 632 drivers/gpu/drm/exynos/exynos5433_drm_decon.c ret = exynos_plane_init(drm_dev, &ctx->planes[win], win, win 633 drivers/gpu/drm/exynos/exynos5433_drm_decon.c &ctx->configs[win]); win 106 drivers/gpu/drm/exynos/exynos7_drm_decon.c unsigned int win, ch_enabled = 0; win 109 drivers/gpu/drm/exynos/exynos7_drm_decon.c for (win = 0; win < WINDOWS_NR; win++) { win 110 drivers/gpu/drm/exynos/exynos7_drm_decon.c u32 val = readl(ctx->regs + WINCON(win)); win 114 drivers/gpu/drm/exynos/exynos7_drm_decon.c writel(val, ctx->regs + WINCON(win)); win 261 drivers/gpu/drm/exynos/exynos7_drm_decon.c static void decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win, win 267 drivers/gpu/drm/exynos/exynos7_drm_decon.c val = readl(ctx->regs + WINCON(win)); win 330 drivers/gpu/drm/exynos/exynos7_drm_decon.c writel(val, ctx->regs + WINCON(win)); win 333 drivers/gpu/drm/exynos/exynos7_drm_decon.c static void decon_win_set_colkey(struct decon_context *ctx, unsigned int win) win 342 drivers/gpu/drm/exynos/exynos7_drm_decon.c writel(keycon0, ctx->regs + WKEYCON0_BASE(win)); win 343 drivers/gpu/drm/exynos/exynos7_drm_decon.c writel(keycon1, ctx->regs + WKEYCON1_BASE(win)); win 353 drivers/gpu/drm/exynos/exynos7_drm_decon.c unsigned int win, bool protect) win 357 drivers/gpu/drm/exynos/exynos7_drm_decon.c bits = SHADOWCON_WINx_PROTECT(win); win 390 drivers/gpu/drm/exynos/exynos7_drm_decon.c unsigned int win = plane->index; win 409 drivers/gpu/drm/exynos/exynos7_drm_decon.c writel(val, ctx->regs + VIDW_BUF_START(win)); win 414 drivers/gpu/drm/exynos/exynos7_drm_decon.c writel(fb->width + padding, ctx->regs + VIDW_WHOLE_X(win)); win 415 drivers/gpu/drm/exynos/exynos7_drm_decon.c writel(fb->height, ctx->regs + VIDW_WHOLE_Y(win)); win 418 drivers/gpu/drm/exynos/exynos7_drm_decon.c writel(state->src.x, ctx->regs + VIDW_OFFSET_X(win)); win 419 drivers/gpu/drm/exynos/exynos7_drm_decon.c writel(state->src.y, ctx->regs + VIDW_OFFSET_Y(win)); win 428 drivers/gpu/drm/exynos/exynos7_drm_decon.c writel(val, ctx->regs + VIDOSD_A(win)); win 439 drivers/gpu/drm/exynos/exynos7_drm_decon.c writel(val, ctx->regs + VIDOSD_B(win)); win 449 drivers/gpu/drm/exynos/exynos7_drm_decon.c writel(alpha, ctx->regs + VIDOSD_C(win)); win 455 drivers/gpu/drm/exynos/exynos7_drm_decon.c writel(alpha, ctx->regs + VIDOSD_D(win)); win 457 drivers/gpu/drm/exynos/exynos7_drm_decon.c decon_win_set_pixfmt(ctx, win, fb); win 460 drivers/gpu/drm/exynos/exynos7_drm_decon.c if (win != 0) win 461 drivers/gpu/drm/exynos/exynos7_drm_decon.c decon_win_set_colkey(ctx, win); win 464 drivers/gpu/drm/exynos/exynos7_drm_decon.c val = readl(ctx->regs + WINCON(win)); win 467 drivers/gpu/drm/exynos/exynos7_drm_decon.c writel(val, ctx->regs + WINCON(win)); win 470 drivers/gpu/drm/exynos/exynos7_drm_decon.c decon_shadow_protect_win(ctx, win, false); win 481 drivers/gpu/drm/exynos/exynos7_drm_decon.c unsigned int win = plane->index; win 488 drivers/gpu/drm/exynos/exynos7_drm_decon.c decon_shadow_protect_win(ctx, win, true); win 491 drivers/gpu/drm/exynos/exynos7_drm_decon.c val = readl(ctx->regs + WINCON(win)); win 493 drivers/gpu/drm/exynos/exynos7_drm_decon.c writel(val, ctx->regs + WINCON(win)); win 43 drivers/gpu/drm/exynos/exynos_drm_fimd.c #define VIDOSD_A(win) (VIDOSD_BASE + 0x00 + (win) * 16) win 44 drivers/gpu/drm/exynos/exynos_drm_fimd.c #define VIDOSD_B(win) (VIDOSD_BASE + 0x04 + (win) * 16) win 49 drivers/gpu/drm/exynos/exynos_drm_fimd.c #define VIDOSD_C(win) (VIDOSD_BASE + 0x08 + (win) * 16) win 51 drivers/gpu/drm/exynos/exynos_drm_fimd.c #define VIDOSD_D(win) (VIDOSD_BASE + 0x0C + (win) * 16) win 53 drivers/gpu/drm/exynos/exynos_drm_fimd.c #define VIDWnALPHA0(win) (VIDW_ALPHA + 0x00 + (win) * 8) win 54 drivers/gpu/drm/exynos/exynos_drm_fimd.c #define VIDWnALPHA1(win) (VIDW_ALPHA + 0x04 + (win) * 8) win 56 drivers/gpu/drm/exynos/exynos_drm_fimd.c #define VIDWx_BUF_START(win, buf) (VIDW_BUF_START(buf) + (win) * 8) win 57 drivers/gpu/drm/exynos/exynos_drm_fimd.c #define VIDWx_BUF_START_S(win, buf) (VIDW_BUF_START_S(buf) + (win) * 8) win 58 drivers/gpu/drm/exynos/exynos_drm_fimd.c #define VIDWx_BUF_END(win, buf) (VIDW_BUF_END(buf) + (win) * 8) win 59 drivers/gpu/drm/exynos/exynos_drm_fimd.c #define VIDWx_BUF_SIZE(win, buf) (VIDW_BUF_SIZE(buf) + (win) * 4) win 319 drivers/gpu/drm/exynos/exynos_drm_fimd.c static void fimd_enable_video_output(struct fimd_context *ctx, unsigned int win, win 322 drivers/gpu/drm/exynos/exynos_drm_fimd.c u32 val = readl(ctx->regs + WINCON(win)); win 329 drivers/gpu/drm/exynos/exynos_drm_fimd.c writel(val, ctx->regs + WINCON(win)); win 333 drivers/gpu/drm/exynos/exynos_drm_fimd.c unsigned int win, win 339 drivers/gpu/drm/exynos/exynos_drm_fimd.c val |= SHADOWCON_CHx_ENABLE(win); win 341 drivers/gpu/drm/exynos/exynos_drm_fimd.c val &= ~SHADOWCON_CHx_ENABLE(win); win 349 drivers/gpu/drm/exynos/exynos_drm_fimd.c unsigned int win, ch_enabled = 0; win 358 drivers/gpu/drm/exynos/exynos_drm_fimd.c for (win = 0; win < WINDOWS_NR; win++) { win 359 drivers/gpu/drm/exynos/exynos_drm_fimd.c u32 val = readl(ctx->regs + WINCON(win)); win 362 drivers/gpu/drm/exynos/exynos_drm_fimd.c fimd_enable_video_output(ctx, win, false); win 365 drivers/gpu/drm/exynos/exynos_drm_fimd.c fimd_enable_shadow_channel_path(ctx, win, win 570 drivers/gpu/drm/exynos/exynos_drm_fimd.c static void fimd_win_set_bldeq(struct fimd_context *ctx, unsigned int win, win 593 drivers/gpu/drm/exynos/exynos_drm_fimd.c fimd_set_bits(ctx, BLENDEQx(win), mask, val); win 596 drivers/gpu/drm/exynos/exynos_drm_fimd.c static void fimd_win_set_bldmod(struct fimd_context *ctx, unsigned int win, win 614 drivers/gpu/drm/exynos/exynos_drm_fimd.c fimd_set_bits(ctx, WINCON(win), WINCONx_BLEND_MODE_MASK, val); win 623 drivers/gpu/drm/exynos/exynos_drm_fimd.c writel(val, ctx->regs + VIDOSD_C(win)); win 627 drivers/gpu/drm/exynos/exynos_drm_fimd.c writel(val, ctx->regs + VIDWnALPHA0(win)); win 631 drivers/gpu/drm/exynos/exynos_drm_fimd.c writel(val, ctx->regs + VIDWnALPHA1(win)); win 637 drivers/gpu/drm/exynos/exynos_drm_fimd.c static void fimd_win_set_pixfmt(struct fimd_context *ctx, unsigned int win, win 640 drivers/gpu/drm/exynos/exynos_drm_fimd.c struct exynos_drm_plane plane = ctx->planes[win]; win 657 drivers/gpu/drm/exynos/exynos_drm_fimd.c if (ctx->driver_data->has_limited_fmt && !win) { win 703 drivers/gpu/drm/exynos/exynos_drm_fimd.c fimd_set_bits(ctx, WINCON(win), ~WINCONx_BLEND_MODE_MASK, val); win 706 drivers/gpu/drm/exynos/exynos_drm_fimd.c if (win != 0) { win 707 drivers/gpu/drm/exynos/exynos_drm_fimd.c fimd_win_set_bldmod(ctx, win, alpha, pixel_alpha); win 708 drivers/gpu/drm/exynos/exynos_drm_fimd.c fimd_win_set_bldeq(ctx, win, alpha, pixel_alpha); win 712 drivers/gpu/drm/exynos/exynos_drm_fimd.c static void fimd_win_set_colkey(struct fimd_context *ctx, unsigned int win) win 721 drivers/gpu/drm/exynos/exynos_drm_fimd.c writel(keycon0, ctx->regs + WKEYCON0_BASE(win)); win 722 drivers/gpu/drm/exynos/exynos_drm_fimd.c writel(keycon1, ctx->regs + WKEYCON1_BASE(win)); win 732 drivers/gpu/drm/exynos/exynos_drm_fimd.c unsigned int win, bool protect) win 748 drivers/gpu/drm/exynos/exynos_drm_fimd.c bits = SHADOWCON_WINx_PROTECT(win); win 798 drivers/gpu/drm/exynos/exynos_drm_fimd.c unsigned int win = plane->index; win 811 drivers/gpu/drm/exynos/exynos_drm_fimd.c writel(val, ctx->regs + VIDWx_BUF_START(win, 0)); win 816 drivers/gpu/drm/exynos/exynos_drm_fimd.c writel(val, ctx->regs + VIDWx_BUF_END(win, 0)); win 831 drivers/gpu/drm/exynos/exynos_drm_fimd.c writel(val, ctx->regs + VIDWx_BUF_SIZE(win, 0)); win 838 drivers/gpu/drm/exynos/exynos_drm_fimd.c writel(val, ctx->regs + VIDOSD_A(win)); win 850 drivers/gpu/drm/exynos/exynos_drm_fimd.c writel(val, ctx->regs + VIDOSD_B(win)); win 857 drivers/gpu/drm/exynos/exynos_drm_fimd.c if (win != 3 && win != 4) { win 858 drivers/gpu/drm/exynos/exynos_drm_fimd.c u32 offset = VIDOSD_D(win); win 859 drivers/gpu/drm/exynos/exynos_drm_fimd.c if (win == 0) win 860 drivers/gpu/drm/exynos/exynos_drm_fimd.c offset = VIDOSD_C(win); win 868 drivers/gpu/drm/exynos/exynos_drm_fimd.c fimd_win_set_pixfmt(ctx, win, fb, state->src.w); win 871 drivers/gpu/drm/exynos/exynos_drm_fimd.c if (win != 0) win 872 drivers/gpu/drm/exynos/exynos_drm_fimd.c fimd_win_set_colkey(ctx, win); win 874 drivers/gpu/drm/exynos/exynos_drm_fimd.c fimd_enable_video_output(ctx, win, true); win 877 drivers/gpu/drm/exynos/exynos_drm_fimd.c fimd_enable_shadow_channel_path(ctx, win, true); win 887 drivers/gpu/drm/exynos/exynos_drm_fimd.c unsigned int win = plane->index; win 892 drivers/gpu/drm/exynos/exynos_drm_fimd.c fimd_enable_video_output(ctx, win, false); win 895 drivers/gpu/drm/exynos/exynos_drm_fimd.c fimd_enable_shadow_channel_path(ctx, win, false); win 311 drivers/gpu/drm/exynos/exynos_mixer.c static void mixer_cfg_gfx_blend(struct mixer_context *ctx, unsigned int win, win 335 drivers/gpu/drm/exynos/exynos_mixer.c mixer_reg_writemask(ctx, MXR_GRAPHIC_CFG(win), win 454 drivers/gpu/drm/exynos/exynos_mixer.c static void mixer_cfg_layer(struct mixer_context *ctx, unsigned int win, win 459 drivers/gpu/drm/exynos/exynos_mixer.c switch (win) { win 606 drivers/gpu/drm/exynos/exynos_mixer.c unsigned int win = plane->index; win 656 drivers/gpu/drm/exynos/exynos_mixer.c mixer_reg_writemask(ctx, MXR_GRAPHIC_CFG(win), win 660 drivers/gpu/drm/exynos/exynos_mixer.c mixer_reg_write(ctx, MXR_GRAPHIC_SPAN(win), win 667 drivers/gpu/drm/exynos/exynos_mixer.c mixer_reg_write(ctx, MXR_GRAPHIC_WH(win), val); win 672 drivers/gpu/drm/exynos/exynos_mixer.c mixer_reg_write(ctx, MXR_GRAPHIC_DXY(win), val); win 675 drivers/gpu/drm/exynos/exynos_mixer.c mixer_reg_write(ctx, MXR_GRAPHIC_BASE(win), dma_addr); win 677 drivers/gpu/drm/exynos/exynos_mixer.c mixer_cfg_layer(ctx, win, priority, true); win 678 drivers/gpu/drm/exynos/exynos_mixer.c mixer_cfg_gfx_blend(ctx, win, pixel_alpha, state->base.alpha); win 101 drivers/gpu/drm/exynos/regs-decon7.h #define VIDW_BLKSIZE(win) (0x0200 + ((_win) * 4)) win 42 drivers/gpu/drm/rockchip/rockchip_drm_vop.c #define VOP_WIN_SET(vop, win, name, v) \ win 43 drivers/gpu/drm/rockchip/rockchip_drm_vop.c vop_reg_set(vop, &win->phy->name, win->base, ~0, v, #name) win 44 drivers/gpu/drm/rockchip/rockchip_drm_vop.c #define VOP_SCL_SET(vop, win, name, v) \ win 45 drivers/gpu/drm/rockchip/rockchip_drm_vop.c vop_reg_set(vop, &win->phy->scl->name, win->base, ~0, v, #name) win 46 drivers/gpu/drm/rockchip/rockchip_drm_vop.c #define VOP_SCL_SET_EXT(vop, win, name, v) \ win 47 drivers/gpu/drm/rockchip/rockchip_drm_vop.c vop_reg_set(vop, &win->phy->scl->ext->name, \ win 48 drivers/gpu/drm/rockchip/rockchip_drm_vop.c win->base, ~0, v, #name) win 82 drivers/gpu/drm/rockchip/rockchip_drm_vop.c #define VOP_WIN_GET(vop, win, name) \ win 83 drivers/gpu/drm/rockchip/rockchip_drm_vop.c vop_read_reg(vop, win->base, &win->phy->name) win 85 drivers/gpu/drm/rockchip/rockchip_drm_vop.c #define VOP_WIN_HAS_REG(win, name) \ win 86 drivers/gpu/drm/rockchip/rockchip_drm_vop.c (!!(win->phy->name.mask)) win 88 drivers/gpu/drm/rockchip/rockchip_drm_vop.c #define VOP_WIN_GET_YRGBADDR(vop, win) \ win 89 drivers/gpu/drm/rockchip/rockchip_drm_vop.c vop_readl(vop, win->base + win->phy->yrgb_mst.offset) win 92 drivers/gpu/drm/rockchip/rockchip_drm_vop.c ((vop_win) - (vop_win)->vop->win) win 168 drivers/gpu/drm/rockchip/rockchip_drm_vop.c struct vop_win win[]; win 310 drivers/gpu/drm/rockchip/rockchip_drm_vop.c static void scl_vop_cal_scl_fac(struct vop *vop, const struct vop_win_data *win, win 333 drivers/gpu/drm/rockchip/rockchip_drm_vop.c if (!win->phy->scl->ext) { win 334 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET(vop, win, scale_yrgb_x, win 336 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET(vop, win, scale_yrgb_y, win 339 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET(vop, win, scale_cbcr_x, win 341 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET(vop, win, scale_cbcr_y, win 364 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, lb_mode, lb_mode); win 383 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET(vop, win, scale_yrgb_x, val); win 386 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET(vop, win, scale_yrgb_y, val); win 388 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, vsd_yrgb_gt4, vskiplines == 4); win 389 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, vsd_yrgb_gt2, vskiplines == 2); win 391 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, yrgb_hor_scl_mode, yrgb_hor_scl_mode); win 392 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, yrgb_ver_scl_mode, yrgb_ver_scl_mode); win 393 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, yrgb_hsd_mode, SCALE_DOWN_BIL); win 394 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, yrgb_vsd_mode, SCALE_DOWN_BIL); win 395 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, yrgb_vsu_mode, vsu_mode); win 399 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET(vop, win, scale_cbcr_x, val); win 402 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET(vop, win, scale_cbcr_y, val); win 404 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, vsd_cbcr_gt4, vskiplines == 4); win 405 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, vsd_cbcr_gt2, vskiplines == 2); win 406 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, cbcr_hor_scl_mode, cbcr_hor_scl_mode); win 407 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, cbcr_ver_scl_mode, cbcr_ver_scl_mode); win 408 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, cbcr_hsd_mode, SCALE_DOWN_BIL); win 409 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, cbcr_vsd_mode, SCALE_DOWN_BIL); win 410 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, cbcr_vsu_mode, vsu_mode); win 535 drivers/gpu/drm/rockchip/rockchip_drm_vop.c const struct vop_win_data *win = vop_win->data; win 537 drivers/gpu/drm/rockchip/rockchip_drm_vop.c if (win->phy->scl && win->phy->scl->ext) { win 538 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, yrgb_hor_scl_mode, SCALE_NONE); win 539 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, yrgb_ver_scl_mode, SCALE_NONE); win 540 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, cbcr_hor_scl_mode, SCALE_NONE); win 541 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_SCL_SET_EXT(vop, win, cbcr_ver_scl_mode, SCALE_NONE); win 544 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, enable, 0); win 595 drivers/gpu/drm/rockchip/rockchip_drm_vop.c struct vop_win *vop_win = &vop->win[i]; win 636 drivers/gpu/drm/rockchip/rockchip_drm_vop.c struct vop_win *vop_win = &vop->win[i]; win 637 drivers/gpu/drm/rockchip/rockchip_drm_vop.c const struct vop_win_data *win = vop_win->data; win 639 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, enable, win 719 drivers/gpu/drm/rockchip/rockchip_drm_vop.c const struct vop_win_data *win = vop_win->data; win 721 drivers/gpu/drm/rockchip/rockchip_drm_vop.c int min_scale = win->phy->scl ? FRAC_16_16(1, 8) : win 723 drivers/gpu/drm/rockchip/rockchip_drm_vop.c int max_scale = win->phy->scl ? FRAC_16_16(8, 1) : win 785 drivers/gpu/drm/rockchip/rockchip_drm_vop.c const struct vop_win_data *win = vop_win->data; win 848 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, format, format); win 849 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, yrgb_vir, DIV_ROUND_UP(fb->pitches[0], 4)); win 850 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, yrgb_mst, dma_addr); win 852 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, y_mir_en, win 854 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, x_mir_en, win 869 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, uv_vir, DIV_ROUND_UP(fb->pitches[1], 4)); win 870 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, uv_mst, dma_addr); win 880 drivers/gpu/drm/rockchip/rockchip_drm_vop.c if (win->phy->scl) win 881 drivers/gpu/drm/rockchip/rockchip_drm_vop.c scl_vop_cal_scl_fac(vop, win, actual_w, actual_h, win 885 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, act_info, act_info); win 886 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, dsp_info, dsp_info); win 887 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, dsp_st, dsp_st); win 890 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, rb_swap, rb_swap); win 900 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, dst_alpha_ctl, win 907 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, src_alpha_ctl, val); win 909 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, src_alpha_ctl, SRC_ALPHA_EN(0)); win 912 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, enable, 1); win 921 drivers/gpu/drm/rockchip/rockchip_drm_vop.c const struct vop_win_data *win = vop_win->data; win 922 drivers/gpu/drm/rockchip/rockchip_drm_vop.c int min_scale = win->phy->scl ? FRAC_16_16(1, 8) : win 924 drivers/gpu/drm/rockchip/rockchip_drm_vop.c int max_scale = win->phy->scl ? FRAC_16_16(8, 1) : win 1519 drivers/gpu/drm/rockchip/rockchip_drm_vop.c struct vop_win *vop_win = &vop->win[i]; win 1558 drivers/gpu/drm/rockchip/rockchip_drm_vop.c struct vop_win *vop_win = &vop->win[i]; win 1711 drivers/gpu/drm/rockchip/rockchip_drm_vop.c struct vop_win *vop_win = &vop->win[i]; win 1712 drivers/gpu/drm/rockchip/rockchip_drm_vop.c const struct vop_win_data *win = vop_win->data; win 1715 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, channel, (channel + 1) << 4 | channel); win 1717 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, gate, 1); win 1764 drivers/gpu/drm/rockchip/rockchip_drm_vop.c struct vop_win *vop_win = &vop->win[i]; win 1765 drivers/gpu/drm/rockchip/rockchip_drm_vop.c const struct vop_win_data *win_data = &vop_data->win[i]; win 1838 drivers/gpu/drm/rockchip/rockchip_drm_vop.c vop = devm_kzalloc(dev, struct_size(vop, win, vop_data->win_size), win 171 drivers/gpu/drm/rockchip/rockchip_drm_vop.h const struct vop_win_data *win; win 148 drivers/gpu/drm/rockchip/rockchip_vop_reg.c .win = rk3036_vop_win_data, win 176 drivers/gpu/drm/rockchip/rockchip_vop_reg.c .win = rk3126_vop_win_data, win 286 drivers/gpu/drm/rockchip/rockchip_vop_reg.c .win = px30_vop_big_win_data, win 301 drivers/gpu/drm/rockchip/rockchip_vop_reg.c .win = px30_vop_lit_win_data, win 411 drivers/gpu/drm/rockchip/rockchip_vop_reg.c .win = rk3066_vop_win_data, win 504 drivers/gpu/drm/rockchip/rockchip_vop_reg.c .win = rk3188_vop_win_data, win 647 drivers/gpu/drm/rockchip/rockchip_vop_reg.c .win = rk3288_vop_win_data, win 741 drivers/gpu/drm/rockchip/rockchip_vop_reg.c .win = rk3368_vop_win_data, win 762 drivers/gpu/drm/rockchip/rockchip_vop_reg.c .win = rk3368_vop_win_data, win 816 drivers/gpu/drm/rockchip/rockchip_vop_reg.c .win = rk3368_vop_win_data, win 841 drivers/gpu/drm/rockchip/rockchip_vop_reg.c .win = rk3399_vop_lit_win_data, win 861 drivers/gpu/drm/rockchip/rockchip_vop_reg.c .win = rk3228_vop_win_data, win 928 drivers/gpu/drm/rockchip/rockchip_vop_reg.c .win = rk3328_vop_win_data, win 96 drivers/hwtracing/intel_th/msu.c struct msc_window *win; win 274 drivers/hwtracing/intel_th/msu.c static inline struct scatterlist *msc_win_base_sg(struct msc_window *win) win 276 drivers/hwtracing/intel_th/msu.c return win->sgt->sgl; win 279 drivers/hwtracing/intel_th/msu.c static inline struct msc_block_desc *msc_win_base(struct msc_window *win) win 281 drivers/hwtracing/intel_th/msu.c return sg_virt(msc_win_base_sg(win)); win 284 drivers/hwtracing/intel_th/msu.c static inline dma_addr_t msc_win_base_dma(struct msc_window *win) win 286 drivers/hwtracing/intel_th/msu.c return sg_dma_address(msc_win_base_sg(win)); win 290 drivers/hwtracing/intel_th/msu.c msc_win_base_pfn(struct msc_window *win) win 292 drivers/hwtracing/intel_th/msu.c return PFN_DOWN(msc_win_base_dma(win)); win 300 drivers/hwtracing/intel_th/msu.c static inline bool msc_is_last_win(struct msc_window *win) win 302 drivers/hwtracing/intel_th/msu.c return win->entry.next == &win->msc->win_list; win 311 drivers/hwtracing/intel_th/msu.c static struct msc_window *msc_next_window(struct msc_window *win) win 313 drivers/hwtracing/intel_th/msu.c if (msc_is_last_win(win)) win 314 drivers/hwtracing/intel_th/msu.c return list_first_entry(&win->msc->win_list, struct msc_window, win 317 drivers/hwtracing/intel_th/msu.c return list_next_entry(win, entry); win 320 drivers/hwtracing/intel_th/msu.c static size_t msc_win_total_sz(struct msc_window *win) win 326 drivers/hwtracing/intel_th/msu.c for_each_sg(win->sgt->sgl, sg, win->nr_segs, blk) { win 330 drivers/hwtracing/intel_th/msu.c return (size_t)win->nr_blocks << PAGE_SHIFT; win 352 drivers/hwtracing/intel_th/msu.c struct msc_window *win; win 363 drivers/hwtracing/intel_th/msu.c list_for_each_entry(win, &msc->win_list, entry) { win 364 drivers/hwtracing/intel_th/msu.c if (win->sgt == sgt) win 368 drivers/hwtracing/intel_th/msu.c if (nonempty && msc_block_is_empty(msc_win_base(win))) win 372 drivers/hwtracing/intel_th/msu.c return win; win 389 drivers/hwtracing/intel_th/msu.c struct msc_window *win; win 394 drivers/hwtracing/intel_th/msu.c win = msc_find_window(msc, msc_next_window(msc->cur_win)->sgt, true); win 395 drivers/hwtracing/intel_th/msu.c if (win) win 396 drivers/hwtracing/intel_th/msu.c return win; win 407 drivers/hwtracing/intel_th/msu.c static struct scatterlist *msc_win_oldest_sg(struct msc_window *win) win 411 drivers/hwtracing/intel_th/msu.c struct msc_block_desc *bdesc = msc_win_base(win); win 415 drivers/hwtracing/intel_th/msu.c return msc_win_base_sg(win); win 421 drivers/hwtracing/intel_th/msu.c for_each_sg(win->sgt->sgl, sg, win->nr_segs, blk) { win 428 drivers/hwtracing/intel_th/msu.c return msc_win_base_sg(win); win 481 drivers/hwtracing/intel_th/msu.c iter->start_block = msc_win_oldest_sg(iter->win); win 504 drivers/hwtracing/intel_th/msu.c iter->win = iter->start_win; win 514 drivers/hwtracing/intel_th/msu.c iter->win = msc_next_window(iter->win); win 517 drivers/hwtracing/intel_th/msu.c if (iter->win == iter->start_win) { win 546 drivers/hwtracing/intel_th/msu.c iter->block = msc_win_base_sg(iter->win); win 652 drivers/hwtracing/intel_th/msu.c struct msc_window *win; win 655 drivers/hwtracing/intel_th/msu.c list_for_each_entry(win, &msc->win_list, entry) { win 660 drivers/hwtracing/intel_th/msu.c for_each_sg(win->sgt->sgl, sg, win->nr_segs, blk) { win 705 drivers/hwtracing/intel_th/msu.c static int msc_win_set_lockout(struct msc_window *win, win 713 drivers/hwtracing/intel_th/msu.c if (!win->msc->mbuf) win 716 drivers/hwtracing/intel_th/msu.c spin_lock_irqsave(&win->lo_lock, flags); win 717 drivers/hwtracing/intel_th/msu.c old = win->lockout; win 724 drivers/hwtracing/intel_th/msu.c win->lockout = new; win 727 drivers/hwtracing/intel_th/msu.c atomic_inc(&win->msc->user_count); win 729 drivers/hwtracing/intel_th/msu.c atomic_dec(&win->msc->user_count); win 732 drivers/hwtracing/intel_th/msu.c spin_unlock_irqrestore(&win->lo_lock, flags); win 742 drivers/hwtracing/intel_th/msu.c dev_warn_ratelimited(msc_dev(win->msc), win 817 drivers/hwtracing/intel_th/msu.c struct msc_window *win = msc->cur_win; win 823 drivers/hwtracing/intel_th/msu.c msc_win_set_lockout(win, WIN_INUSE, WIN_LOCKED); win 845 drivers/hwtracing/intel_th/msu.c msc->mbuf->ready(msc->mbuf_priv, win->sgt, win 846 drivers/hwtracing/intel_th/msu.c msc_win_total_sz(win)); win 989 drivers/hwtracing/intel_th/msu.c static int __msc_buffer_win_alloc(struct msc_window *win, win 996 drivers/hwtracing/intel_th/msu.c ret = sg_alloc_table(win->sgt, nr_segs, GFP_KERNEL); win 1000 drivers/hwtracing/intel_th/msu.c for_each_sg(win->sgt->sgl, sg_ptr, nr_segs, i) { win 1001 drivers/hwtracing/intel_th/msu.c block = dma_alloc_coherent(msc_dev(win->msc)->parent->parent, win 1013 drivers/hwtracing/intel_th/msu.c for_each_sg(win->sgt->sgl, sg_ptr, i, ret) win 1014 drivers/hwtracing/intel_th/msu.c dma_free_coherent(msc_dev(win->msc)->parent->parent, PAGE_SIZE, win 1017 drivers/hwtracing/intel_th/msu.c sg_free_table(win->sgt); win 1023 drivers/hwtracing/intel_th/msu.c static void msc_buffer_set_uc(struct msc_window *win, unsigned int nr_segs) win 1028 drivers/hwtracing/intel_th/msu.c for_each_sg(win->sgt->sgl, sg_ptr, nr_segs, i) { win 1035 drivers/hwtracing/intel_th/msu.c static void msc_buffer_set_wb(struct msc_window *win) win 1040 drivers/hwtracing/intel_th/msu.c for_each_sg(win->sgt->sgl, sg_ptr, win->nr_segs, i) { win 1048 drivers/hwtracing/intel_th/msu.c msc_buffer_set_uc(struct msc_window *win, unsigned int nr_segs) {} win 1049 drivers/hwtracing/intel_th/msu.c static inline void msc_buffer_set_wb(struct msc_window *win) {} win 1064 drivers/hwtracing/intel_th/msu.c struct msc_window *win; win 1070 drivers/hwtracing/intel_th/msu.c win = kzalloc(sizeof(*win), GFP_KERNEL); win 1071 drivers/hwtracing/intel_th/msu.c if (!win) win 1074 drivers/hwtracing/intel_th/msu.c win->msc = msc; win 1075 drivers/hwtracing/intel_th/msu.c win->sgt = &win->_sgt; win 1076 drivers/hwtracing/intel_th/msu.c win->lockout = WIN_READY; win 1077 drivers/hwtracing/intel_th/msu.c spin_lock_init(&win->lo_lock); win 1084 drivers/hwtracing/intel_th/msu.c win->pgoff = prev->pgoff + prev->nr_blocks; win 1088 drivers/hwtracing/intel_th/msu.c ret = msc->mbuf->alloc_window(msc->mbuf_priv, &win->sgt, win 1091 drivers/hwtracing/intel_th/msu.c ret = __msc_buffer_win_alloc(win, nr_blocks); win 1096 drivers/hwtracing/intel_th/msu.c msc_buffer_set_uc(win, ret); win 1098 drivers/hwtracing/intel_th/msu.c win->nr_segs = ret; win 1099 drivers/hwtracing/intel_th/msu.c win->nr_blocks = nr_blocks; win 1102 drivers/hwtracing/intel_th/msu.c msc->base = msc_win_base(win); win 1103 drivers/hwtracing/intel_th/msu.c msc->base_addr = msc_win_base_dma(win); win 1104 drivers/hwtracing/intel_th/msu.c msc->cur_win = win; win 1107 drivers/hwtracing/intel_th/msu.c list_add_tail(&win->entry, &msc->win_list); win 1113 drivers/hwtracing/intel_th/msu.c kfree(win); win 1118 drivers/hwtracing/intel_th/msu.c static void __msc_buffer_win_free(struct msc *msc, struct msc_window *win) win 1123 drivers/hwtracing/intel_th/msu.c for_each_sg(win->sgt->sgl, sg, win->nr_segs, i) { win 1127 drivers/hwtracing/intel_th/msu.c dma_free_coherent(msc_dev(win->msc)->parent->parent, PAGE_SIZE, win 1130 drivers/hwtracing/intel_th/msu.c sg_free_table(win->sgt); win 1141 drivers/hwtracing/intel_th/msu.c static void msc_buffer_win_free(struct msc *msc, struct msc_window *win) win 1143 drivers/hwtracing/intel_th/msu.c msc->nr_pages -= win->nr_blocks; win 1145 drivers/hwtracing/intel_th/msu.c list_del(&win->entry); win 1151 drivers/hwtracing/intel_th/msu.c msc_buffer_set_wb(win); win 1154 drivers/hwtracing/intel_th/msu.c msc->mbuf->free_window(msc->mbuf_priv, win->sgt); win 1156 drivers/hwtracing/intel_th/msu.c __msc_buffer_win_free(msc, win); win 1158 drivers/hwtracing/intel_th/msu.c kfree(win); win 1170 drivers/hwtracing/intel_th/msu.c struct msc_window *win, *next_win; win 1173 drivers/hwtracing/intel_th/msu.c list_for_each_entry(win, &msc->win_list, entry) { win 1182 drivers/hwtracing/intel_th/msu.c if (msc_is_last_win(win)) { win 1187 drivers/hwtracing/intel_th/msu.c next_win = list_next_entry(win, entry); win 1190 drivers/hwtracing/intel_th/msu.c for_each_sg(win->sgt->sgl, sg, win->nr_segs, blk) { win 1201 drivers/hwtracing/intel_th/msu.c if (blk == win->nr_segs - 1) { win 1203 drivers/hwtracing/intel_th/msu.c bdesc->next_blk = msc_win_base_pfn(win); win 1224 drivers/hwtracing/intel_th/msu.c struct msc_window *win, *iter; win 1226 drivers/hwtracing/intel_th/msu.c list_for_each_entry_safe(win, iter, &msc->win_list, entry) win 1227 drivers/hwtracing/intel_th/msu.c msc_buffer_win_free(msc, win); win 1369 drivers/hwtracing/intel_th/msu.c struct msc_window *win; win 1376 drivers/hwtracing/intel_th/msu.c list_for_each_entry(win, &msc->win_list, entry) win 1377 drivers/hwtracing/intel_th/msu.c if (pgoff >= win->pgoff && pgoff < win->pgoff + win->nr_blocks) win 1383 drivers/hwtracing/intel_th/msu.c pgoff -= win->pgoff; win 1385 drivers/hwtracing/intel_th/msu.c for_each_sg(win->sgt->sgl, sg, win->nr_segs, blk) { win 1710 drivers/hwtracing/intel_th/msu.c struct msc_window *win; win 1715 drivers/hwtracing/intel_th/msu.c win = msc_find_window(msc, sgt, false); win 1716 drivers/hwtracing/intel_th/msu.c if (!win) win 1719 drivers/hwtracing/intel_th/msu.c msc_win_set_lockout(win, WIN_LOCKED, WIN_READY); win 1735 drivers/hwtracing/intel_th/msu.c struct msc_window *win, *next_win; win 1751 drivers/hwtracing/intel_th/msu.c win = msc->cur_win; win 1752 drivers/hwtracing/intel_th/msu.c if (!win) win 1754 drivers/hwtracing/intel_th/msu.c next_win = msc_next_window(win); win 1765 drivers/hwtracing/intel_th/msu.c msc_win_set_lockout(win, WIN_INUSE, WIN_LOCKED); win 1770 drivers/hwtracing/intel_th/msu.c msc->mbuf->ready(msc->mbuf_priv, win->sgt, win 1771 drivers/hwtracing/intel_th/msu.c msc_win_total_sz(win)); win 1925 drivers/hwtracing/intel_th/msu.c struct msc_window *win; win 1933 drivers/hwtracing/intel_th/msu.c list_for_each_entry(win, &msc->win_list, entry) { win 1935 drivers/hwtracing/intel_th/msu.c "%d%c", win->nr_blocks, win 1936 drivers/hwtracing/intel_th/msu.c msc_is_last_win(win) ? '\n' : ','); win 1952 drivers/hwtracing/intel_th/msu.c unsigned long val, *win = NULL, *rewin; win 1990 drivers/hwtracing/intel_th/msu.c rewin = krealloc(win, sizeof(*win) * nr_wins, GFP_KERNEL); win 1992 drivers/hwtracing/intel_th/msu.c kfree(win); win 1996 drivers/hwtracing/intel_th/msu.c win = rewin; win 1997 drivers/hwtracing/intel_th/msu.c win[nr_wins - 1] = val; win 2008 drivers/hwtracing/intel_th/msu.c ret = msc_buffer_alloc(msc, win, nr_wins); win 2012 drivers/hwtracing/intel_th/msu.c kfree(win); win 206 drivers/infiniband/hw/cxgb3/iwch_cm.h static inline int compute_wscale(int win) win 210 drivers/infiniband/hw/cxgb3/iwch_cm.h while (wscale < 14 && (65535<<wscale) < win) win 726 drivers/infiniband/hw/cxgb4/cm.c int win, sizev4, sizev6, wrlen; win 784 drivers/infiniband/hw/cxgb4/cm.c win = ep->rcv_win >> 10; win 785 drivers/infiniband/hw/cxgb4/cm.c if (win > RCV_BUFSIZ_M) win 786 drivers/infiniband/hw/cxgb4/cm.c win = RCV_BUFSIZ_M; win 798 drivers/infiniband/hw/cxgb4/cm.c RCV_BUFSIZ_V(win); win 1965 drivers/infiniband/hw/cxgb4/cm.c int win; win 1996 drivers/infiniband/hw/cxgb4/cm.c win = ep->rcv_win >> 10; win 1997 drivers/infiniband/hw/cxgb4/cm.c if (win > RCV_BUFSIZ_M) win 1998 drivers/infiniband/hw/cxgb4/cm.c win = RCV_BUFSIZ_M; win 2011 drivers/infiniband/hw/cxgb4/cm.c RCV_BUFSIZ_V(win)); win 2421 drivers/infiniband/hw/cxgb4/cm.c int win; win 2434 drivers/infiniband/hw/cxgb4/cm.c win = ep->rcv_win >> 10; win 2435 drivers/infiniband/hw/cxgb4/cm.c if (win > RCV_BUFSIZ_M) win 2436 drivers/infiniband/hw/cxgb4/cm.c win = RCV_BUFSIZ_M; win 2447 drivers/infiniband/hw/cxgb4/cm.c RCV_BUFSIZ_V(win); win 22 drivers/media/common/btcx-risc.h int btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win, win 24 drivers/media/common/btcx-risc.h int btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips, win 344 drivers/media/common/saa7146/saa7146_hlp.c int width = vv->ov.win.w.width; win 345 drivers/media/common/saa7146/saa7146_hlp.c int height = vv->ov.win.w.height; win 487 drivers/media/common/saa7146/saa7146_hlp.c enum v4l2_field field = vv->ov.win.field; win 653 drivers/media/common/saa7146/saa7146_hlp.c saa7146_set_window(dev, vv->ov.win.w.width, vv->ov.win.w.height, vv->ov.win.field); win 654 drivers/media/common/saa7146/saa7146_hlp.c saa7146_set_position(dev, vv->ov.win.w.left, vv->ov.win.w.top, vv->ov.win.w.height, vv->ov.win.field, vv->ov_fmt->pixelformat); win 132 drivers/media/common/saa7146/saa7146_video.c fmt.fmt.win = vv->ov.win; win 138 drivers/media/common/saa7146/saa7146_video.c vv->ov.win = fmt.fmt.win; win 141 drivers/media/common/saa7146/saa7146_video.c vv->ov.win.w.width, vv->ov.win.w.height, win 142 drivers/media/common/saa7146/saa7146_video.c vv->ov.win.w.left, vv->ov.win.w.top, win 143 drivers/media/common/saa7146/saa7146_video.c vv->ov_fmt->pixelformat, v4l2_field_names[vv->ov.win.field]); win 598 drivers/media/common/saa7146/saa7146_video.c f->fmt.win = vv->ov.win; win 681 drivers/media/common/saa7146/saa7146_video.c struct v4l2_window *win = &f->fmt.win; win 695 drivers/media/common/saa7146/saa7146_video.c if (win->w.width < 48 || win->w.height < 32) { win 697 drivers/media/common/saa7146/saa7146_video.c win->w.width, win->w.height); win 700 drivers/media/common/saa7146/saa7146_video.c if (win->clipcount > 16) { win 705 drivers/media/common/saa7146/saa7146_video.c field = win->field; win 710 drivers/media/common/saa7146/saa7146_video.c field = (win->w.height > maxh / 2) win 727 drivers/media/common/saa7146/saa7146_video.c win->field = field; win 728 drivers/media/common/saa7146/saa7146_video.c if (win->w.width > maxw) win 729 drivers/media/common/saa7146/saa7146_video.c win->w.width = maxw; win 730 drivers/media/common/saa7146/saa7146_video.c if (win->w.height > maxh) win 731 drivers/media/common/saa7146/saa7146_video.c win->w.height = maxh; win 768 drivers/media/common/saa7146/saa7146_video.c vv->ov.win = f->fmt.win; win 769 drivers/media/common/saa7146/saa7146_video.c vv->ov.nclips = f->fmt.win.clipcount; win 772 drivers/media/common/saa7146/saa7146_video.c if (copy_from_user(vv->ov.clips, f->fmt.win.clips, win 304 drivers/media/i2c/ov2640.c const struct ov2640_win_size *win; win 836 drivers/media/i2c/ov2640.c const struct ov2640_win_size *win, u32 code) win 880 drivers/media/i2c/ov2640.c dev_dbg(&client->dev, "%s: Set size to %s", __func__, win->name); win 886 drivers/media/i2c/ov2640.c ret = ov2640_write_array(client, win->regs); win 936 drivers/media/i2c/ov2640.c mf->width = priv->win->width; win 937 drivers/media/i2c/ov2640.c mf->height = priv->win->height; win 955 drivers/media/i2c/ov2640.c const struct ov2640_win_size *win; win 964 drivers/media/i2c/ov2640.c win = ov2640_select_win(mf->width, mf->height); win 965 drivers/media/i2c/ov2640.c mf->width = win->width; win 966 drivers/media/i2c/ov2640.c mf->height = win->height; win 995 drivers/media/i2c/ov2640.c priv->win = win; win 1013 drivers/media/i2c/ov2640.c const struct ov2640_win_size *win = win 1016 drivers/media/i2c/ov2640.c try_fmt->width = win->width; win 1017 drivers/media/i2c/ov2640.c try_fmt->height = win->height; win 1068 drivers/media/i2c/ov2640.c ret = ov2640_set_params(client, priv->win, win 1222 drivers/media/i2c/ov2640.c priv->win = ov2640_select_win(SVGA_WIDTH, SVGA_HEIGHT); win 1210 drivers/media/i2c/ov7670.c struct ov7670_win_size *win = &info->devtype->win_sizes[i]; win 1212 drivers/media/i2c/ov7670.c if (info->min_width && win->width < info->min_width) win 1214 drivers/media/i2c/ov7670.c if (info->min_height && win->height < info->min_height) win 1216 drivers/media/i2c/ov7670.c if (fie->width == win->width && fie->height == win->height) win 1247 drivers/media/i2c/ov7670.c struct ov7670_win_size *win = &info->devtype->win_sizes[i]; win 1248 drivers/media/i2c/ov7670.c if (info->min_width && win->width < info->min_width) win 1250 drivers/media/i2c/ov7670.c if (info->min_height && win->height < info->min_height) win 1253 drivers/media/i2c/ov7670.c fse->min_width = fse->max_width = win->width; win 1254 drivers/media/i2c/ov7670.c fse->min_height = fse->max_height = win->height; win 424 drivers/media/i2c/ov772x.c const struct ov772x_win_size *win; win 591 drivers/media/i2c/ov772x.c priv->cfmt->code, priv->win->name); win 628 drivers/media/i2c/ov772x.c const struct ov772x_win_size *win) win 643 drivers/media/i2c/ov772x.c fsize = win->sizeimage; win 648 drivers/media/i2c/ov772x.c fsize = win->sizeimage * 2; win 741 drivers/media/i2c/ov772x.c ret = ov772x_set_frame_rate(priv, fps, priv->cfmt, priv->win); win 898 drivers/media/i2c/ov772x.c const struct ov772x_win_size *win); win 919 drivers/media/i2c/ov772x.c priv->win); win 939 drivers/media/i2c/ov772x.c const struct ov772x_win_size *win = &ov772x_win_sizes[0]; win 948 drivers/media/i2c/ov772x.c win = &ov772x_win_sizes[i]; win 952 drivers/media/i2c/ov772x.c return win; win 957 drivers/media/i2c/ov772x.c const struct ov772x_win_size **win) win 972 drivers/media/i2c/ov772x.c *win = ov772x_select_win(mf->width, mf->height); win 1031 drivers/media/i2c/ov772x.c const struct ov772x_win_size *win) win 1045 drivers/media/i2c/ov772x.c ret = regmap_write(priv->regmap, HSTART, win->rect.left >> 2); win 1048 drivers/media/i2c/ov772x.c ret = regmap_write(priv->regmap, HSIZE, win->rect.width >> 2); win 1051 drivers/media/i2c/ov772x.c ret = regmap_write(priv->regmap, VSTART, win->rect.top >> 1); win 1054 drivers/media/i2c/ov772x.c ret = regmap_write(priv->regmap, VSIZE, win->rect.height >> 1); win 1057 drivers/media/i2c/ov772x.c ret = regmap_write(priv->regmap, HOUTSIZE, win->rect.width >> 2); win 1060 drivers/media/i2c/ov772x.c ret = regmap_write(priv->regmap, VOUTSIZE, win->rect.height >> 1); win 1064 drivers/media/i2c/ov772x.c ((win->rect.top & 1) << HREF_VSTART_SHIFT) | win 1065 drivers/media/i2c/ov772x.c ((win->rect.left & 3) << HREF_HSTART_SHIFT) | win 1066 drivers/media/i2c/ov772x.c ((win->rect.height & 1) << HREF_VSIZE_SHIFT) | win 1067 drivers/media/i2c/ov772x.c ((win->rect.width & 3) << HREF_HSIZE_SHIFT)); win 1071 drivers/media/i2c/ov772x.c ((win->rect.height & 1) << EXHCH_VSIZE_SHIFT) | win 1072 drivers/media/i2c/ov772x.c ((win->rect.width & 3) << EXHCH_HSIZE_SHIFT)); win 1107 drivers/media/i2c/ov772x.c ret = regmap_write(priv->regmap, COM7, win->com7_bit | cfmt->com7); win 1112 drivers/media/i2c/ov772x.c ret = ov772x_set_frame_rate(priv, priv->fps, cfmt, win); win 1152 drivers/media/i2c/ov772x.c sel->r.width = priv->win->rect.width; win 1153 drivers/media/i2c/ov772x.c sel->r.height = priv->win->rect.height; win 1170 drivers/media/i2c/ov772x.c mf->width = priv->win->rect.width; win 1171 drivers/media/i2c/ov772x.c mf->height = priv->win->rect.height; win 1186 drivers/media/i2c/ov772x.c const struct ov772x_win_size *win; win 1192 drivers/media/i2c/ov772x.c ov772x_select_params(mf, &cfmt, &win); win 1195 drivers/media/i2c/ov772x.c mf->width = win->rect.width; win 1196 drivers/media/i2c/ov772x.c mf->height = win->rect.height; win 1221 drivers/media/i2c/ov772x.c ret = ov772x_set_params(priv, cfmt, win); win 1225 drivers/media/i2c/ov772x.c priv->win = win; win 1431 drivers/media/i2c/ov772x.c priv->win = &ov772x_win_sizes[0]; win 84 drivers/media/pci/bt8xx/btcx-risc.c btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win, win 87 drivers/media/pci/bt8xx/btcx-risc.c if (win->left < 0) { win 91 drivers/media/pci/bt8xx/btcx-risc.c clips[n].c.width = -win->left; win 92 drivers/media/pci/bt8xx/btcx-risc.c clips[n].c.height = win->height; win 95 drivers/media/pci/bt8xx/btcx-risc.c if (win->left + win->width > swidth) { win 97 drivers/media/pci/bt8xx/btcx-risc.c clips[n].c.left = swidth - win->left; win 99 drivers/media/pci/bt8xx/btcx-risc.c clips[n].c.width = win->width - clips[n].c.left; win 100 drivers/media/pci/bt8xx/btcx-risc.c clips[n].c.height = win->height; win 103 drivers/media/pci/bt8xx/btcx-risc.c if (win->top < 0) { win 107 drivers/media/pci/bt8xx/btcx-risc.c clips[n].c.width = win->width; win 108 drivers/media/pci/bt8xx/btcx-risc.c clips[n].c.height = -win->top; win 111 drivers/media/pci/bt8xx/btcx-risc.c if (win->top + win->height > sheight) { win 114 drivers/media/pci/bt8xx/btcx-risc.c clips[n].c.top = sheight - win->top; win 115 drivers/media/pci/bt8xx/btcx-risc.c clips[n].c.width = win->width; win 116 drivers/media/pci/bt8xx/btcx-risc.c clips[n].c.height = win->height - clips[n].c.top; win 123 drivers/media/pci/bt8xx/btcx-risc.c btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips, unsigned int n, int mask) win 129 drivers/media/pci/bt8xx/btcx-risc.c nx = (win->left + mask) & ~mask; win 130 drivers/media/pci/bt8xx/btcx-risc.c nw = (win->width) & ~mask; win 131 drivers/media/pci/bt8xx/btcx-risc.c if (nx + nw > win->left + win->width) win 133 drivers/media/pci/bt8xx/btcx-risc.c dx = nx - win->left; win 134 drivers/media/pci/bt8xx/btcx-risc.c win->left = nx; win 135 drivers/media/pci/bt8xx/btcx-risc.c win->width = nw; win 137 drivers/media/pci/bt8xx/btcx-risc.c win->width, win->height, win->left, win->top, dx); win 20 drivers/media/pci/bt8xx/btcx-risc.h int btcx_screen_clips(int swidth, int sheight, struct v4l2_rect *win, win 22 drivers/media/pci/bt8xx/btcx-risc.h int btcx_align(struct v4l2_rect *win, struct v4l2_clip *clips, win 2056 drivers/media/pci/bt8xx/bttv-driver.c verify_window_lock(struct bttv_fh *fh, struct v4l2_window *win, win 2063 drivers/media/pci/bt8xx/bttv-driver.c if (win->w.width < 48) win 2064 drivers/media/pci/bt8xx/bttv-driver.c win->w.width = 48; win 2065 drivers/media/pci/bt8xx/bttv-driver.c if (win->w.height < 32) win 2066 drivers/media/pci/bt8xx/bttv-driver.c win->w.height = 32; win 2067 drivers/media/pci/bt8xx/bttv-driver.c if (win->clipcount > 2048) win 2068 drivers/media/pci/bt8xx/bttv-driver.c win->clipcount = 2048; win 2070 drivers/media/pci/bt8xx/bttv-driver.c win->chromakey = 0; win 2071 drivers/media/pci/bt8xx/bttv-driver.c win->global_alpha = 0; win 2072 drivers/media/pci/bt8xx/bttv-driver.c field = win->field; win 2087 drivers/media/pci/bt8xx/bttv-driver.c field = (win->w.height > height2) win 2091 drivers/media/pci/bt8xx/bttv-driver.c win->field = field; win 2111 drivers/media/pci/bt8xx/bttv-driver.c win->w.width -= win->w.left & ~width_mask; win 2112 drivers/media/pci/bt8xx/bttv-driver.c win->w.left = (win->w.left - width_mask - 1) & width_mask; win 2114 drivers/media/pci/bt8xx/bttv-driver.c rc = limit_scaled_size_lock(fh, &win->w.width, &win->w.height, win 2124 drivers/media/pci/bt8xx/bttv-driver.c struct v4l2_window *win, int fixup) win 2133 drivers/media/pci/bt8xx/bttv-driver.c retval = verify_window_lock(fh, win, win 2141 drivers/media/pci/bt8xx/bttv-driver.c n = win->clipcount; win 2147 drivers/media/pci/bt8xx/bttv-driver.c if (copy_from_user(clips,win->clips,sizeof(struct v4l2_clip)*n)) { win 2156 drivers/media/pci/bt8xx/bttv-driver.c &win->w, clips, n); win 2163 drivers/media/pci/bt8xx/bttv-driver.c btcx_align(&win->w, clips, n, 3); win 2166 drivers/media/pci/bt8xx/bttv-driver.c btcx_align(&win->w, clips, n, 1); win 2179 drivers/media/pci/bt8xx/bttv-driver.c fh->ov.w = win->w; win 2180 drivers/media/pci/bt8xx/bttv-driver.c fh->ov.field = win->field; win 2183 drivers/media/pci/bt8xx/bttv-driver.c btv->init.ov.w.width = win->w.width; win 2184 drivers/media/pci/bt8xx/bttv-driver.c btv->init.ov.w.height = win->w.height; win 2185 drivers/media/pci/bt8xx/bttv-driver.c btv->init.ov.field = win->field; win 2286 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.win.w = fh->ov.w; win 2287 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.win.field = fh->ov.field; win 2368 drivers/media/pci/bt8xx/bttv-driver.c verify_window_lock(fh, &f->fmt.win, win 2432 drivers/media/pci/bt8xx/bttv-driver.c return setup_window_lock(fh, btv, &f->fmt.win, 1); win 444 drivers/media/pci/ivtv/ivtv-ioctl.c struct v4l2_window *winfmt = &fmt->fmt.win; win 554 drivers/media/pci/ivtv/ivtv-ioctl.c u32 chromakey = fmt->fmt.win.chromakey; win 555 drivers/media/pci/ivtv/ivtv-ioctl.c u8 global_alpha = fmt->fmt.win.global_alpha; win 562 drivers/media/pci/ivtv/ivtv-ioctl.c fmt->fmt.win.chromakey = chromakey; win 563 drivers/media/pci/ivtv/ivtv-ioctl.c fmt->fmt.win.global_alpha = global_alpha; win 685 drivers/media/pci/ivtv/ivtv-ioctl.c itv->osd_chroma_key = fmt->fmt.win.chromakey; win 686 drivers/media/pci/ivtv/ivtv-ioctl.c itv->osd_global_alpha = fmt->fmt.win.global_alpha; win 656 drivers/media/pci/saa7134/saa7134-video.c static int verify_preview(struct saa7134_dev *dev, struct v4l2_window *win, bool try) win 663 drivers/media/pci/saa7134/saa7134-video.c if (win->w.width < 48) win 664 drivers/media/pci/saa7134/saa7134-video.c win->w.width = 48; win 665 drivers/media/pci/saa7134/saa7134-video.c if (win->w.height < 32) win 666 drivers/media/pci/saa7134/saa7134-video.c win->w.height = 32; win 667 drivers/media/pci/saa7134/saa7134-video.c if (win->clipcount > 8) win 668 drivers/media/pci/saa7134/saa7134-video.c win->clipcount = 8; win 670 drivers/media/pci/saa7134/saa7134-video.c win->chromakey = 0; win 671 drivers/media/pci/saa7134/saa7134-video.c win->global_alpha = 0; win 672 drivers/media/pci/saa7134/saa7134-video.c field = win->field; win 677 drivers/media/pci/saa7134/saa7134-video.c field = (win->w.height > maxh/2) win 691 drivers/media/pci/saa7134/saa7134-video.c win->field = field; win 692 drivers/media/pci/saa7134/saa7134-video.c if (win->w.width > maxw) win 693 drivers/media/pci/saa7134/saa7134-video.c win->w.width = maxw; win 694 drivers/media/pci/saa7134/saa7134-video.c if (win->w.height > maxh) win 695 drivers/media/pci/saa7134/saa7134-video.c win->w.height = maxh; win 704 drivers/media/pci/saa7134/saa7134-video.c err = verify_preview(dev, &dev->win, false); win 708 drivers/media/pci/saa7134/saa7134-video.c dev->ovfield = dev->win.field; win 710 drivers/media/pci/saa7134/saa7134-video.c dev->win.w.width, dev->win.w.height, win 711 drivers/media/pci/saa7134/saa7134-video.c dev->win.w.left, dev->win.w.top, win 715 drivers/media/pci/saa7134/saa7134-video.c set_size(dev, TASK_B, dev->win.w.width, dev->win.w.height, win 727 drivers/media/pci/saa7134/saa7134-video.c base += dev->ovbuf.fmt.bytesperline * dev->win.w.top; win 728 drivers/media/pci/saa7134/saa7134-video.c base += dev->ovfmt->depth/8 * dev->win.w.left; win 1269 drivers/media/pci/saa7134/saa7134-video.c struct v4l2_clip __user *clips = f->fmt.win.clips; win 1270 drivers/media/pci/saa7134/saa7134-video.c u32 clipcount = f->fmt.win.clipcount; win 1278 drivers/media/pci/saa7134/saa7134-video.c f->fmt.win = dev->win; win 1279 drivers/media/pci/saa7134/saa7134-video.c f->fmt.win.clips = clips; win 1284 drivers/media/pci/saa7134/saa7134-video.c f->fmt.win.clipcount = clipcount; win 1287 drivers/media/pci/saa7134/saa7134-video.c if (copy_to_user(&f->fmt.win.clips[i].c, &dev->clips[i].c, win 1358 drivers/media/pci/saa7134/saa7134-video.c if (f->fmt.win.clips == NULL) win 1359 drivers/media/pci/saa7134/saa7134-video.c f->fmt.win.clipcount = 0; win 1360 drivers/media/pci/saa7134/saa7134-video.c return verify_preview(dev, &f->fmt.win, true); win 1391 drivers/media/pci/saa7134/saa7134-video.c if (f->fmt.win.clips == NULL) win 1392 drivers/media/pci/saa7134/saa7134-video.c f->fmt.win.clipcount = 0; win 1393 drivers/media/pci/saa7134/saa7134-video.c err = verify_preview(dev, &f->fmt.win, true); win 1397 drivers/media/pci/saa7134/saa7134-video.c dev->win = f->fmt.win; win 1398 drivers/media/pci/saa7134/saa7134-video.c dev->nclips = f->fmt.win.clipcount; win 1400 drivers/media/pci/saa7134/saa7134-video.c if (copy_from_user(dev->clips, f->fmt.win.clips, win 2097 drivers/media/pci/saa7134/saa7134-video.c dev->win.w.width = dev->width; win 2098 drivers/media/pci/saa7134/saa7134-video.c dev->win.w.height = dev->height; win 2099 drivers/media/pci/saa7134/saa7134-video.c dev->win.field = V4L2_FIELD_INTERLACED; win 596 drivers/media/pci/saa7134/saa7134.h struct v4l2_window win; win 740 drivers/media/pci/ttpci/av7110_hw.c static int WriteText(struct av7110 *av7110, u8 win, u16 x, u16 y, char *buf) win 745 drivers/media/pci/ttpci/av7110_hw.c u16 cbuf[5] = { (COMTYPE_OSD << 8) + DText, 3, win, x, y }; win 564 drivers/media/platform/am437x/am437x-vpfe.c vpfe_ccdc_setwin(ccdc, ¶ms->win, win 686 drivers/media/platform/am437x/am437x-vpfe.c vpfe_ccdc_setwin(ccdc, ¶ms->win, params->frm_fmt, win 817 drivers/media/platform/am437x/am437x-vpfe.c struct v4l2_rect *win, unsigned int bpp) win 820 drivers/media/platform/am437x/am437x-vpfe.c ccdc->ccdc_cfg.bayer.win = *win; win 822 drivers/media/platform/am437x/am437x-vpfe.c ccdc->ccdc_cfg.bayer.bytesperline = ALIGN(win->width * bpp, 32); win 824 drivers/media/platform/am437x/am437x-vpfe.c ccdc->ccdc_cfg.ycbcr.win = *win; win 826 drivers/media/platform/am437x/am437x-vpfe.c ccdc->ccdc_cfg.ycbcr.bytesperline = ALIGN(win->width * bpp, 32); win 834 drivers/media/platform/am437x/am437x-vpfe.c struct v4l2_rect *win) win 837 drivers/media/platform/am437x/am437x-vpfe.c *win = ccdc->ccdc_cfg.bayer.win; win 839 drivers/media/platform/am437x/am437x-vpfe.c *win = ccdc->ccdc_cfg.ycbcr.win; win 975 drivers/media/platform/am437x/am437x-vpfe.c ccdc->ccdc_cfg.ycbcr.win.left = 0; win 976 drivers/media/platform/am437x/am437x-vpfe.c ccdc->ccdc_cfg.ycbcr.win.top = 0; win 977 drivers/media/platform/am437x/am437x-vpfe.c ccdc->ccdc_cfg.ycbcr.win.width = 720; win 978 drivers/media/platform/am437x/am437x-vpfe.c ccdc->ccdc_cfg.ycbcr.win.height = 576; win 987 drivers/media/platform/am437x/am437x-vpfe.c ccdc->ccdc_cfg.bayer.win.left = 0; win 988 drivers/media/platform/am437x/am437x-vpfe.c ccdc->ccdc_cfg.bayer.win.top = 0; win 989 drivers/media/platform/am437x/am437x-vpfe.c ccdc->ccdc_cfg.bayer.win.width = 800; win 990 drivers/media/platform/am437x/am437x-vpfe.c ccdc->ccdc_cfg.bayer.win.height = 600; win 148 drivers/media/platform/am437x/am437x-vpfe.h struct v4l2_rect win; win 177 drivers/media/platform/am437x/am437x-vpfe.h struct v4l2_rect win; win 54 drivers/media/platform/davinci/ccdc_hw_device.h int (*set_image_window) (struct v4l2_rect *win); win 56 drivers/media/platform/davinci/ccdc_hw_device.h void (*get_image_window) (struct v4l2_rect *win); win 50 drivers/media/platform/davinci/dm355_ccdc.c .win = CCDC_WIN_VGA, win 87 drivers/media/platform/davinci/dm355_ccdc.c .win = CCDC_WIN_PAL, win 288 drivers/media/platform/davinci/dm355_ccdc.c ccdc_setwin(¶ms->win, params->frm_fmt, 2); win 300 drivers/media/platform/davinci/dm355_ccdc.c regw(((params->win.width * 2 + 31) >> 5), HSIZE); win 589 drivers/media/platform/davinci/dm355_ccdc.c ccdc_setwin(¶ms->win, params->frm_fmt, 1); win 627 drivers/media/platform/davinci/dm355_ccdc.c val |= (((params->win.width) + 31) >> 5) & win 632 drivers/media/platform/davinci/dm355_ccdc.c (((params->win.width) + 31) >> 5) & win 636 drivers/media/platform/davinci/dm355_ccdc.c val |= (((params->win.width * 2) + 31) >> 5) & win 640 drivers/media/platform/davinci/dm355_ccdc.c (((params->win.width * 2) + 31) >> 5) & win 754 drivers/media/platform/davinci/dm355_ccdc.c static int ccdc_set_image_window(struct v4l2_rect *win) win 757 drivers/media/platform/davinci/dm355_ccdc.c ccdc_cfg.bayer.win = *win; win 759 drivers/media/platform/davinci/dm355_ccdc.c ccdc_cfg.ycbcr.win = *win; win 763 drivers/media/platform/davinci/dm355_ccdc.c static void ccdc_get_image_window(struct v4l2_rect *win) win 766 drivers/media/platform/davinci/dm355_ccdc.c *win = ccdc_cfg.bayer.win; win 768 drivers/media/platform/davinci/dm355_ccdc.c *win = ccdc_cfg.ycbcr.win; win 780 drivers/media/platform/davinci/dm355_ccdc.c len = ccdc_cfg.bayer.win.width; win 782 drivers/media/platform/davinci/dm355_ccdc.c len = ccdc_cfg.bayer.win.width * 2; win 784 drivers/media/platform/davinci/dm355_ccdc.c len = ccdc_cfg.ycbcr.win.width * 2; win 52 drivers/media/platform/davinci/dm644x_ccdc.c .win = CCDC_WIN_VGA, win 63 drivers/media/platform/davinci/dm644x_ccdc.c .win = CCDC_WIN_PAL, win 294 drivers/media/platform/davinci/dm644x_ccdc.c ccdc_setwin(¶ms->win, params->frm_fmt, 2); win 312 drivers/media/platform/davinci/dm644x_ccdc.c regw(((params->win.width * 2 + 31) & ~0x1f), CCDC_HSIZE_OFF); win 414 drivers/media/platform/davinci/dm644x_ccdc.c ccdc_setwin(¶ms->win, params->frm_fmt, CCDC_PPC_RAW); win 448 drivers/media/platform/davinci/dm644x_ccdc.c val = ((params->win.left & CCDC_FMT_HORZ_FMTSPH_MASK) << win 450 drivers/media/platform/davinci/dm644x_ccdc.c (params->win.width & CCDC_FMT_HORZ_FMTLNH_MASK); win 454 drivers/media/platform/davinci/dm644x_ccdc.c val = (params->win.top & CCDC_FMT_VERT_FMTSLV_MASK) win 457 drivers/media/platform/davinci/dm644x_ccdc.c val |= (params->win.height) & CCDC_FMT_VERT_FMTLNV_MASK; win 459 drivers/media/platform/davinci/dm644x_ccdc.c val |= (params->win.height >> 1) & CCDC_FMT_VERT_FMTLNV_MASK; win 462 drivers/media/platform/davinci/dm644x_ccdc.c params->win.height); win 475 drivers/media/platform/davinci/dm644x_ccdc.c regw((params->win.width + CCDC_32BYTE_ALIGN_VAL) & win 479 drivers/media/platform/davinci/dm644x_ccdc.c regw(((params->win.width * CCDC_TWO_BYTES_PER_PIXEL) + win 506 drivers/media/platform/davinci/dm644x_ccdc.c val = (((params->win.height - 1) & CCDC_VP_OUT_VERT_NUM_MASK)) win 510 drivers/media/platform/davinci/dm644x_ccdc.c ((((params->win.height >> CCDC_INTERLACED_HEIGHT_SHIFT) - win 514 drivers/media/platform/davinci/dm644x_ccdc.c val |= ((((params->win.width))) & CCDC_VP_OUT_HORZ_NUM_MASK) win 516 drivers/media/platform/davinci/dm644x_ccdc.c val |= (params->win.left) & CCDC_VP_OUT_HORZ_ST_MASK; win 608 drivers/media/platform/davinci/dm644x_ccdc.c static int ccdc_set_image_window(struct v4l2_rect *win) win 611 drivers/media/platform/davinci/dm644x_ccdc.c ccdc_cfg.bayer.win = *win; win 613 drivers/media/platform/davinci/dm644x_ccdc.c ccdc_cfg.ycbcr.win = *win; win 617 drivers/media/platform/davinci/dm644x_ccdc.c static void ccdc_get_image_window(struct v4l2_rect *win) win 620 drivers/media/platform/davinci/dm644x_ccdc.c *win = ccdc_cfg.bayer.win; win 622 drivers/media/platform/davinci/dm644x_ccdc.c *win = ccdc_cfg.ycbcr.win; win 634 drivers/media/platform/davinci/dm644x_ccdc.c len = ccdc_cfg.bayer.win.width; win 636 drivers/media/platform/davinci/dm644x_ccdc.c len = ccdc_cfg.bayer.win.width * 2; win 638 drivers/media/platform/davinci/dm644x_ccdc.c len = ccdc_cfg.ycbcr.win.width * 2; win 85 drivers/media/platform/davinci/isif.c .win = ISIF_WIN_NTSC, win 95 drivers/media/platform/davinci/isif.c .win = ISIF_WIN_VGA, win 621 drivers/media/platform/davinci/isif.c val |= ((params->win.width + 31) >> 5); win 623 drivers/media/platform/davinci/isif.c val |= (((params->win.width + win 624 drivers/media/platform/davinci/isif.c (params->win.width >> 2)) + 31) >> 5); win 626 drivers/media/platform/davinci/isif.c val |= (((params->win.width * 2) + 31) >> 5); win 653 drivers/media/platform/davinci/isif.c isif_setwin(¶ms->win, params->frm_fmt, 1); win 681 drivers/media/platform/davinci/isif.c frame_size.hlpfr = isif_cfg.bayer.win.width; win 682 drivers/media/platform/davinci/isif.c frame_size.pplen = isif_cfg.bayer.win.height; win 779 drivers/media/platform/davinci/isif.c static int isif_set_image_window(struct v4l2_rect *win) win 782 drivers/media/platform/davinci/isif.c isif_cfg.bayer.win.top = win->top; win 783 drivers/media/platform/davinci/isif.c isif_cfg.bayer.win.left = win->left; win 784 drivers/media/platform/davinci/isif.c isif_cfg.bayer.win.width = win->width; win 785 drivers/media/platform/davinci/isif.c isif_cfg.bayer.win.height = win->height; win 787 drivers/media/platform/davinci/isif.c isif_cfg.ycbcr.win.top = win->top; win 788 drivers/media/platform/davinci/isif.c isif_cfg.ycbcr.win.left = win->left; win 789 drivers/media/platform/davinci/isif.c isif_cfg.ycbcr.win.width = win->width; win 790 drivers/media/platform/davinci/isif.c isif_cfg.ycbcr.win.height = win->height; win 795 drivers/media/platform/davinci/isif.c static void isif_get_image_window(struct v4l2_rect *win) win 798 drivers/media/platform/davinci/isif.c *win = isif_cfg.bayer.win; win 800 drivers/media/platform/davinci/isif.c *win = isif_cfg.ycbcr.win; win 809 drivers/media/platform/davinci/isif.c len = ((isif_cfg.bayer.win.width)); win 811 drivers/media/platform/davinci/isif.c len = (((isif_cfg.bayer.win.width * 2) + win 812 drivers/media/platform/davinci/isif.c (isif_cfg.bayer.win.width >> 2))); win 814 drivers/media/platform/davinci/isif.c len = (((isif_cfg.bayer.win.width * 2))); win 816 drivers/media/platform/davinci/isif.c len = (((isif_cfg.ycbcr.win.width * 2))); win 949 drivers/media/platform/davinci/isif.c isif_setwin(¶ms->win, params->frm_fmt, 1); win 951 drivers/media/platform/davinci/isif.c isif_setwin(¶ms->win, params->frm_fmt, 2); win 958 drivers/media/platform/davinci/isif.c regw(((((params->win.width * 2) + 31) & 0xffffffe0) >> 5), HSIZE); win 466 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &osd->win[layer]; win 471 drivers/media/platform/davinci/vpbe_osd.c if (!win->is_enabled) { win 475 drivers/media/platform/davinci/vpbe_osd.c win->is_enabled = 0; win 512 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &osd->win[layer]; win 513 drivers/media/platform/davinci/vpbe_osd.c struct osd_layer_config *cfg = &win->lconfig; win 522 drivers/media/platform/davinci/vpbe_osd.c if (!otherwin && (!win->is_allocated || win 523 drivers/media/platform/davinci/vpbe_osd.c !win->fb_base_phys || win 531 drivers/media/platform/davinci/vpbe_osd.c if (win->is_enabled) { win 535 drivers/media/platform/davinci/vpbe_osd.c win->is_enabled = 1; win 616 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &sd->win[layer]; win 623 drivers/media/platform/davinci/vpbe_osd.c cbcr_offset_32 = win->lconfig.line_length * win 624 drivers/media/platform/davinci/vpbe_osd.c win->lconfig.ysize; win 632 drivers/media/platform/davinci/vpbe_osd.c if (win->lconfig.pixfmt == PIXFMT_NV12) { win 685 drivers/media/platform/davinci/vpbe_osd.c if (win->lconfig.pixfmt != PIXFMT_NV12) { win 715 drivers/media/platform/davinci/vpbe_osd.c if (win->lconfig.pixfmt != PIXFMT_NV12) { win 739 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &osd->win[layer]; win 740 drivers/media/platform/davinci/vpbe_osd.c struct osd_layer_config *cfg = &win->lconfig; win 745 drivers/media/platform/davinci/vpbe_osd.c win->fb_base_phys = fb_base_phys & ~0x1F; win 751 drivers/media/platform/davinci/vpbe_osd.c win->fb_base_phys, win 762 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &osd->win[layer]; win 767 drivers/media/platform/davinci/vpbe_osd.c *lconfig = win->lconfig; win 788 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &osd->win[layer]; win 830 drivers/media/platform/davinci/vpbe_osd.c *lconfig = win->lconfig; win 841 drivers/media/platform/davinci/vpbe_osd.c pixfmt = osd->win[WIN_OSD1].lconfig.pixfmt; win 843 drivers/media/platform/davinci/vpbe_osd.c pixfmt = osd->win[WIN_OSD0].lconfig.pixfmt; win 850 drivers/media/platform/davinci/vpbe_osd.c *lconfig = win->lconfig; win 861 drivers/media/platform/davinci/vpbe_osd.c pixfmt = osd->win[WIN_VID1].lconfig.pixfmt; win 863 drivers/media/platform/davinci/vpbe_osd.c pixfmt = osd->win[WIN_VID0].lconfig.pixfmt; win 870 drivers/media/platform/davinci/vpbe_osd.c *lconfig = win->lconfig; win 877 drivers/media/platform/davinci/vpbe_osd.c *lconfig = win->lconfig; win 1224 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &osd->win[layer]; win 1225 drivers/media/platform/davinci/vpbe_osd.c struct osd_layer_config *cfg = &win->lconfig; win 1250 drivers/media/platform/davinci/vpbe_osd.c win->is_enabled = 0; win 1341 drivers/media/platform/davinci/vpbe_osd.c if (osd->win[WIN_VID0].lconfig.pixfmt == PIXFMT_RGB888) win 1343 drivers/media/platform/davinci/vpbe_osd.c else if (osd->win[WIN_VID1].lconfig.pixfmt == PIXFMT_RGB888) win 1351 drivers/media/platform/davinci/vpbe_osd.c win->fb_base_phys, win 1363 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &osd->win[layer]; win 1366 drivers/media/platform/davinci/vpbe_osd.c struct osd_layer_config *cfg = &win->lconfig; win 1371 drivers/media/platform/davinci/vpbe_osd.c win->is_enabled = 0; win 1374 drivers/media/platform/davinci/vpbe_osd.c win->h_zoom = ZOOM_X1; win 1375 drivers/media/platform/davinci/vpbe_osd.c win->v_zoom = ZOOM_X1; win 1376 drivers/media/platform/davinci/vpbe_osd.c _osd_set_zoom(sd, layer, win->h_zoom, win->v_zoom); win 1378 drivers/media/platform/davinci/vpbe_osd.c win->fb_base_phys = 0; win 1379 drivers/media/platform/davinci/vpbe_osd.c _osd_start_layer(sd, layer, win->fb_base_phys, 0); win 1427 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &osd->win[layer]; win 1432 drivers/media/platform/davinci/vpbe_osd.c if (!win->is_allocated) { win 1441 drivers/media/platform/davinci/vpbe_osd.c win->is_allocated = 0; win 1449 drivers/media/platform/davinci/vpbe_osd.c struct osd_window_state *win = &osd->win[layer]; win 1454 drivers/media/platform/davinci/vpbe_osd.c if (win->is_allocated) { win 1458 drivers/media/platform/davinci/vpbe_osd.c win->is_allocated = 1; win 166 drivers/media/platform/fsl-viu.c struct v4l2_window win; win 655 drivers/media/platform/fsl-viu.c f->fmt.win = fh->win; win 659 drivers/media/platform/fsl-viu.c static int verify_preview(struct viu_dev *dev, struct v4l2_window *win) win 668 drivers/media/platform/fsl-viu.c if (win->w.width < 48 || win->w.height < 32) win 671 drivers/media/platform/fsl-viu.c field = win->field; win 676 drivers/media/platform/fsl-viu.c field = (win->w.height > maxh/2) win 691 drivers/media/platform/fsl-viu.c win->field = field; win 692 drivers/media/platform/fsl-viu.c if (win->w.width > maxw) win 693 drivers/media/platform/fsl-viu.c win->w.width = maxw; win 694 drivers/media/platform/fsl-viu.c if (win->w.height > maxh) win 695 drivers/media/platform/fsl-viu.c win->w.height = maxh; win 711 drivers/media/platform/fsl-viu.c fh->win.w.width, fh->win.w.height); win 716 drivers/media/platform/fsl-viu.c reg_val.picture_count = (fh->win.w.height / 2) << 16 | win 717 drivers/media/platform/fsl-viu.c fh->win.w.width; win 724 drivers/media/platform/fsl-viu.c reg_val.dma_inc = fh->win.w.width * 2; win 728 drivers/media/platform/fsl-viu.c reg_val.dma_inc = fh->win.w.width * 4; win 736 drivers/media/platform/fsl-viu.c dev->ovfield = fh->win.field; win 756 drivers/media/platform/fsl-viu.c err = verify_preview(dev, &f->fmt.win); win 760 drivers/media/platform/fsl-viu.c fh->win = f->fmt.win; win 321 drivers/media/platform/omap/omap_vout.c info.global_alpha = vout->win.global_alpha; win 358 drivers/media/platform/omap/omap_vout.c struct v4l2_window *win; win 364 drivers/media/platform/omap/omap_vout.c win = &vout->win; win 376 drivers/media/platform/omap/omap_vout.c outw = win->w.width; win 377 drivers/media/platform/omap/omap_vout.c outh = win->w.height; win 384 drivers/media/platform/omap/omap_vout.c posy = (timing->y_res - win->w.width) - win->w.left; win 385 drivers/media/platform/omap/omap_vout.c posx = win->w.top; win 389 drivers/media/platform/omap/omap_vout.c posx = (timing->x_res - win->w.width) - win->w.left; win 390 drivers/media/platform/omap/omap_vout.c posy = (timing->y_res - win->w.height) - win->w.top; win 395 drivers/media/platform/omap/omap_vout.c posy = win->w.left; win 396 drivers/media/platform/omap/omap_vout.c posx = (timing->x_res - win->w.height) - win->w.top; win 400 drivers/media/platform/omap/omap_vout.c posx = win->w.left; win 401 drivers/media/platform/omap/omap_vout.c posy = win->w.top; win 690 drivers/media/platform/omap/omap_vout.c omap_vout_new_format(&vout->pix, &vout->fbuf, &vout->crop, &vout->win); win 705 drivers/media/platform/omap/omap_vout.c struct v4l2_window *win = &f->fmt.win; win 710 drivers/media/platform/omap/omap_vout.c ret = omap_vout_try_window(&vout->fbuf, win); win 713 drivers/media/platform/omap/omap_vout.c win->global_alpha = 0; win 725 drivers/media/platform/omap/omap_vout.c struct v4l2_window *win = &f->fmt.win; win 730 drivers/media/platform/omap/omap_vout.c ret = omap_vout_new_window(&vout->crop, &vout->win, &vout->fbuf, win); win 738 drivers/media/platform/omap/omap_vout.c vout->win.global_alpha = win->global_alpha; win 740 drivers/media/platform/omap/omap_vout.c win->global_alpha = 0; win 756 drivers/media/platform/omap/omap_vout.c info.trans_key = vout->win.chromakey; win 771 drivers/media/platform/omap/omap_vout.c struct v4l2_window *win = &f->fmt.win; win 776 drivers/media/platform/omap/omap_vout.c win->w = vout->win.w; win 777 drivers/media/platform/omap/omap_vout.c win->field = vout->win.field; win 778 drivers/media/platform/omap/omap_vout.c win->chromakey = vout->win.chromakey; win 780 drivers/media/platform/omap/omap_vout.c win->global_alpha = vout->win.global_alpha; win 782 drivers/media/platform/omap/omap_vout.c win->global_alpha = 0; win 783 drivers/media/platform/omap/omap_vout.c win->clips = NULL; win 784 drivers/media/platform/omap/omap_vout.c win->clipcount = 0; win 785 drivers/media/platform/omap/omap_vout.c win->bitmap = NULL; win 853 drivers/media/platform/omap/omap_vout.c ret = omap_vout_new_crop(&vout->pix, &vout->crop, &vout->win, win 1162 drivers/media/platform/omap/omap_vout.c info.trans_key = vout->win.chromakey; win 1341 drivers/media/platform/omap/omap_vout.c vout->win.global_alpha = 255; win 1345 drivers/media/platform/omap/omap_vout.c vout->win.global_alpha = 0; win 1347 drivers/media/platform/omap/omap_vout.c vout->win.field = V4L2_FIELD_NONE; win 1349 drivers/media/platform/omap/omap_vout.c omap_vout_new_format(pix, &vout->fbuf, &vout->crop, &vout->win); win 148 drivers/media/platform/omap/omap_voutdef.h struct v4l2_window win; win 116 drivers/media/platform/omap/omap_voutlib.c struct v4l2_window *win, struct v4l2_framebuffer *fbuf, win 126 drivers/media/platform/omap/omap_voutlib.c win->w = new_win->w; win 127 drivers/media/platform/omap/omap_voutlib.c win->field = new_win->field; win 128 drivers/media/platform/omap/omap_voutlib.c win->chromakey = new_win->chromakey; win 133 drivers/media/platform/omap/omap_voutlib.c if ((crop->height/win->w.height) >= 2) win 134 drivers/media/platform/omap/omap_voutlib.c crop->height = win->w.height * 2; win 136 drivers/media/platform/omap/omap_voutlib.c if ((crop->width/win->w.width) >= 2) win 137 drivers/media/platform/omap/omap_voutlib.c crop->width = win->w.width * 2; win 144 drivers/media/platform/omap/omap_voutlib.c if (crop->height != win->w.height) win 149 drivers/media/platform/omap/omap_voutlib.c if ((crop->height/win->w.height) >= 4) win 150 drivers/media/platform/omap/omap_voutlib.c crop->height = win->w.height * 4; win 152 drivers/media/platform/omap/omap_voutlib.c if ((crop->width/win->w.width) >= 4) win 153 drivers/media/platform/omap/omap_voutlib.c crop->width = win->w.width * 4; win 170 drivers/media/platform/omap/omap_voutlib.c struct v4l2_rect *crop, struct v4l2_window *win, win 204 drivers/media/platform/omap/omap_voutlib.c if (try_crop.height != win->w.height) { win 213 drivers/media/platform/omap/omap_voutlib.c vresize = (1024 * try_crop.height) / win->w.height; win 219 drivers/media/platform/omap/omap_voutlib.c win->w.height = ((1024 * try_crop.height) / vresize) & ~1; win 220 drivers/media/platform/omap/omap_voutlib.c if (win->w.height == 0) win 221 drivers/media/platform/omap/omap_voutlib.c win->w.height = 2; win 222 drivers/media/platform/omap/omap_voutlib.c if (win->w.height + win->w.top > fbuf->fmt.height) { win 227 drivers/media/platform/omap/omap_voutlib.c win->w.height = (fbuf->fmt.height - win->w.top) & ~1; win 232 drivers/media/platform/omap/omap_voutlib.c hresize = (1024 * try_crop.width) / win->w.width; win 238 drivers/media/platform/omap/omap_voutlib.c win->w.width = ((1024 * try_crop.width) / hresize) & ~1; win 239 drivers/media/platform/omap/omap_voutlib.c if (win->w.width == 0) win 240 drivers/media/platform/omap/omap_voutlib.c win->w.width = 2; win 241 drivers/media/platform/omap/omap_voutlib.c if (win->w.width + win->w.left > fbuf->fmt.width) { win 246 drivers/media/platform/omap/omap_voutlib.c win->w.width = (fbuf->fmt.width - win->w.left) & ~1; win 251 drivers/media/platform/omap/omap_voutlib.c if ((try_crop.height/win->w.height) >= 2) win 252 drivers/media/platform/omap/omap_voutlib.c try_crop.height = win->w.height * 2; win 254 drivers/media/platform/omap/omap_voutlib.c if ((try_crop.width/win->w.width) >= 2) win 255 drivers/media/platform/omap/omap_voutlib.c try_crop.width = win->w.width * 2; win 262 drivers/media/platform/omap/omap_voutlib.c if (try_crop.height != win->w.height) win 266 drivers/media/platform/omap/omap_voutlib.c if ((try_crop.height/win->w.height) >= 4) win 267 drivers/media/platform/omap/omap_voutlib.c try_crop.height = win->w.height * 4; win 269 drivers/media/platform/omap/omap_voutlib.c if ((try_crop.width/win->w.width) >= 4) win 270 drivers/media/platform/omap/omap_voutlib.c try_crop.width = win->w.width * 4; win 287 drivers/media/platform/omap/omap_voutlib.c struct v4l2_window *win) win 295 drivers/media/platform/omap/omap_voutlib.c win->w.width = crop->width; win 296 drivers/media/platform/omap/omap_voutlib.c win->w.height = crop->height; win 297 drivers/media/platform/omap/omap_voutlib.c win->w.left = ((fbuf->fmt.width - win->w.width) >> 1) & ~1; win 298 drivers/media/platform/omap/omap_voutlib.c win->w.top = ((fbuf->fmt.height - win->w.height) >> 1) & ~1; win 19 drivers/media/platform/omap/omap_voutlib.h struct v4l2_rect *crop, struct v4l2_window *win, win 27 drivers/media/platform/omap/omap_voutlib.h struct v4l2_window *win, struct v4l2_framebuffer *fbuf, win 32 drivers/media/platform/omap/omap_voutlib.h struct v4l2_window *win); win 1063 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_window *win = &f->fmt.win; win 1064 drivers/media/platform/vivid/vivid-vid-cap.c unsigned clipcount = win->clipcount; win 1069 drivers/media/platform/vivid/vivid-vid-cap.c win->w.top = dev->overlay_cap_top; win 1070 drivers/media/platform/vivid/vivid-vid-cap.c win->w.left = dev->overlay_cap_left; win 1071 drivers/media/platform/vivid/vivid-vid-cap.c win->w.width = compose->width; win 1072 drivers/media/platform/vivid/vivid-vid-cap.c win->w.height = compose->height; win 1073 drivers/media/platform/vivid/vivid-vid-cap.c win->field = dev->overlay_cap_field; win 1074 drivers/media/platform/vivid/vivid-vid-cap.c win->clipcount = dev->clipcount_cap; win 1078 drivers/media/platform/vivid/vivid-vid-cap.c win->bitmap = NULL; win 1079 drivers/media/platform/vivid/vivid-vid-cap.c else if (win->bitmap) { win 1080 drivers/media/platform/vivid/vivid-vid-cap.c if (copy_to_user(win->bitmap, dev->bitmap_cap, win 1084 drivers/media/platform/vivid/vivid-vid-cap.c if (clipcount && win->clips) { win 1085 drivers/media/platform/vivid/vivid-vid-cap.c if (copy_to_user(win->clips, dev->clips_cap, win 1097 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_window *win = &f->fmt.win; win 1103 drivers/media/platform/vivid/vivid-vid-cap.c win->w.left = clamp_t(int, win->w.left, win 1105 drivers/media/platform/vivid/vivid-vid-cap.c win->w.top = clamp_t(int, win->w.top, win 1107 drivers/media/platform/vivid/vivid-vid-cap.c win->w.width = compose->width; win 1108 drivers/media/platform/vivid/vivid-vid-cap.c win->w.height = compose->height; win 1109 drivers/media/platform/vivid/vivid-vid-cap.c if (win->field != V4L2_FIELD_BOTTOM && win->field != V4L2_FIELD_TOP) win 1110 drivers/media/platform/vivid/vivid-vid-cap.c win->field = V4L2_FIELD_ANY; win 1111 drivers/media/platform/vivid/vivid-vid-cap.c win->chromakey = 0; win 1112 drivers/media/platform/vivid/vivid-vid-cap.c win->global_alpha = 0; win 1113 drivers/media/platform/vivid/vivid-vid-cap.c if (win->clipcount && !win->clips) win 1114 drivers/media/platform/vivid/vivid-vid-cap.c win->clipcount = 0; win 1115 drivers/media/platform/vivid/vivid-vid-cap.c if (win->clipcount > MAX_CLIPS) win 1116 drivers/media/platform/vivid/vivid-vid-cap.c win->clipcount = MAX_CLIPS; win 1117 drivers/media/platform/vivid/vivid-vid-cap.c if (win->clipcount) { win 1118 drivers/media/platform/vivid/vivid-vid-cap.c if (copy_from_user(dev->try_clips_cap, win->clips, win 1119 drivers/media/platform/vivid/vivid-vid-cap.c win->clipcount * sizeof(dev->clips_cap[0]))) win 1121 drivers/media/platform/vivid/vivid-vid-cap.c for (i = 0; i < win->clipcount; i++) { win 1133 drivers/media/platform/vivid/vivid-vid-cap.c for (i = 0; i < win->clipcount - 1; i++) { win 1136 drivers/media/platform/vivid/vivid-vid-cap.c for (j = i + 1; j < win->clipcount; j++) { win 1143 drivers/media/platform/vivid/vivid-vid-cap.c if (copy_to_user(win->clips, dev->try_clips_cap, win 1144 drivers/media/platform/vivid/vivid-vid-cap.c win->clipcount * sizeof(dev->clips_cap[0]))) win 1155 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_window *win = &f->fmt.win; win 1158 drivers/media/platform/vivid/vivid-vid-cap.c unsigned clips_size = win->clipcount * sizeof(dev->clips_cap[0]); win 1164 drivers/media/platform/vivid/vivid-vid-cap.c if (win->bitmap) { win 1169 drivers/media/platform/vivid/vivid-vid-cap.c if (copy_from_user(new_bitmap, win->bitmap, bitmap_size)) { win 1175 drivers/media/platform/vivid/vivid-vid-cap.c dev->overlay_cap_top = win->w.top; win 1176 drivers/media/platform/vivid/vivid-vid-cap.c dev->overlay_cap_left = win->w.left; win 1177 drivers/media/platform/vivid/vivid-vid-cap.c dev->overlay_cap_field = win->field; win 1180 drivers/media/platform/vivid/vivid-vid-cap.c dev->clipcount_cap = win->clipcount; win 838 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_window *win = &f->fmt.win; win 839 drivers/media/platform/vivid/vivid-vid-out.c unsigned clipcount = win->clipcount; win 843 drivers/media/platform/vivid/vivid-vid-out.c win->w.top = dev->overlay_out_top; win 844 drivers/media/platform/vivid/vivid-vid-out.c win->w.left = dev->overlay_out_left; win 845 drivers/media/platform/vivid/vivid-vid-out.c win->w.width = compose->width; win 846 drivers/media/platform/vivid/vivid-vid-out.c win->w.height = compose->height; win 847 drivers/media/platform/vivid/vivid-vid-out.c win->clipcount = dev->clipcount_out; win 848 drivers/media/platform/vivid/vivid-vid-out.c win->field = V4L2_FIELD_ANY; win 849 drivers/media/platform/vivid/vivid-vid-out.c win->chromakey = dev->chromakey_out; win 850 drivers/media/platform/vivid/vivid-vid-out.c win->global_alpha = dev->global_alpha_out; win 854 drivers/media/platform/vivid/vivid-vid-out.c win->bitmap = NULL; win 855 drivers/media/platform/vivid/vivid-vid-out.c else if (win->bitmap) { win 856 drivers/media/platform/vivid/vivid-vid-out.c if (copy_to_user(win->bitmap, dev->bitmap_out, win 860 drivers/media/platform/vivid/vivid-vid-out.c if (clipcount && win->clips) { win 861 drivers/media/platform/vivid/vivid-vid-out.c if (copy_to_user(win->clips, dev->clips_out, win 873 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_window *win = &f->fmt.win; win 878 drivers/media/platform/vivid/vivid-vid-out.c win->w.left = clamp_t(int, win->w.left, win 880 drivers/media/platform/vivid/vivid-vid-out.c win->w.top = clamp_t(int, win->w.top, win 882 drivers/media/platform/vivid/vivid-vid-out.c win->w.width = compose->width; win 883 drivers/media/platform/vivid/vivid-vid-out.c win->w.height = compose->height; win 888 drivers/media/platform/vivid/vivid-vid-out.c win->field = V4L2_FIELD_ANY; win 889 drivers/media/platform/vivid/vivid-vid-out.c if (win->clipcount && !win->clips) win 890 drivers/media/platform/vivid/vivid-vid-out.c win->clipcount = 0; win 891 drivers/media/platform/vivid/vivid-vid-out.c if (win->clipcount > MAX_CLIPS) win 892 drivers/media/platform/vivid/vivid-vid-out.c win->clipcount = MAX_CLIPS; win 893 drivers/media/platform/vivid/vivid-vid-out.c if (win->clipcount) { win 894 drivers/media/platform/vivid/vivid-vid-out.c if (copy_from_user(dev->try_clips_out, win->clips, win 895 drivers/media/platform/vivid/vivid-vid-out.c win->clipcount * sizeof(dev->clips_out[0]))) win 897 drivers/media/platform/vivid/vivid-vid-out.c for (i = 0; i < win->clipcount; i++) { win 909 drivers/media/platform/vivid/vivid-vid-out.c for (i = 0; i < win->clipcount - 1; i++) { win 912 drivers/media/platform/vivid/vivid-vid-out.c for (j = i + 1; j < win->clipcount; j++) { win 919 drivers/media/platform/vivid/vivid-vid-out.c if (copy_to_user(win->clips, dev->try_clips_out, win 920 drivers/media/platform/vivid/vivid-vid-out.c win->clipcount * sizeof(dev->clips_out[0]))) win 931 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_window *win = &f->fmt.win; win 934 drivers/media/platform/vivid/vivid-vid-out.c unsigned clips_size = win->clipcount * sizeof(dev->clips_out[0]); win 940 drivers/media/platform/vivid/vivid-vid-out.c if (win->bitmap) { win 945 drivers/media/platform/vivid/vivid-vid-out.c if (copy_from_user(new_bitmap, win->bitmap, bitmap_size)) { win 951 drivers/media/platform/vivid/vivid-vid-out.c dev->overlay_out_top = win->w.top; win 952 drivers/media/platform/vivid/vivid-vid-out.c dev->overlay_out_left = win->w.left; win 955 drivers/media/platform/vivid/vivid-vid-out.c dev->clipcount_out = win->clipcount; win 958 drivers/media/platform/vivid/vivid-vid-out.c dev->chromakey_out = win->chromakey; win 959 drivers/media/platform/vivid/vivid-vid-out.c dev->global_alpha_out = win->global_alpha; win 279 drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c u8 win[4]; win 308 drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c win[0] = y / 4; win 309 drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c win[1] = x / 4; win 310 drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c win[2] = (y + height) / 4 - 1; win 311 drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c win[3] = (x + width) / 4 - 1; win 313 drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c err = hdcs_reg_write_seq(sd, HDCS_FWROW, win, 4); win 232 drivers/media/v4l2-core/v4l2-compat-ioctl32.c struct v4l2_window32 win; win 272 drivers/media/v4l2-core/v4l2-compat-ioctl32.c if (get_user(clipcount, &p32->fmt.win.clipcount)) win 312 drivers/media/v4l2-core/v4l2-compat-ioctl32.c return get_v4l2_window32(&p64->fmt.win, &p32->fmt.win, win 383 drivers/media/v4l2-core/v4l2-compat-ioctl32.c return put_v4l2_window32(&p64->fmt.win, &p32->fmt.win); win 283 drivers/media/v4l2-core/v4l2-ioctl.c const struct v4l2_window *win; win 325 drivers/media/v4l2-core/v4l2-ioctl.c win = &p->fmt.win; win 330 drivers/media/v4l2-core/v4l2-ioctl.c win->w.width, win->w.height, win->w.left, win->w.top, win 331 drivers/media/v4l2-core/v4l2-ioctl.c prt_names(win->field, v4l2_field_names), win 332 drivers/media/v4l2-core/v4l2-ioctl.c win->chromakey, win->clipcount, win->clips, win 333 drivers/media/v4l2-core/v4l2-ioctl.c win->bitmap, win->global_alpha); win 1503 drivers/media/v4l2-core/v4l2-ioctl.c struct v4l2_clip __user *clips = p->fmt.win.clips; win 1504 drivers/media/v4l2-core/v4l2-ioctl.c u32 clipcount = p->fmt.win.clipcount; win 1505 drivers/media/v4l2-core/v4l2-ioctl.c void __user *bitmap = p->fmt.win.bitmap; win 1508 drivers/media/v4l2-core/v4l2-ioctl.c p->fmt.win.clips = clips; win 1509 drivers/media/v4l2-core/v4l2-ioctl.c p->fmt.win.clipcount = clipcount; win 1510 drivers/media/v4l2-core/v4l2-ioctl.c p->fmt.win.bitmap = bitmap; win 1603 drivers/media/v4l2-core/v4l2-ioctl.c CLEAR_AFTER_FIELD(p, fmt.win); win 1634 drivers/media/v4l2-core/v4l2-ioctl.c CLEAR_AFTER_FIELD(p, fmt.win); win 1705 drivers/media/v4l2-core/v4l2-ioctl.c CLEAR_AFTER_FIELD(p, fmt.win); win 1736 drivers/media/v4l2-core/v4l2-ioctl.c CLEAR_AFTER_FIELD(p, fmt.win); win 86 drivers/mtd/maps/pcmciamtd.c struct resource *win = (struct resource *) map->map_priv_2; win 99 drivers/mtd/maps/pcmciamtd.c ret = pcmcia_map_mem_page(dev->p_dev, win, offset); win 1217 drivers/net/ethernet/3com/3c515.c int win, reg; win 1220 drivers/net/ethernet/3com/3c515.c for (win = 0; win < 8; win++) { win 1221 drivers/net/ethernet/3com/3c515.c EL3WINDOW(win); win 1222 drivers/net/ethernet/3com/3c515.c pr_notice("Vortex window %d:", win); win 882 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c static int cudbg_memory_read(struct cudbg_init *pdbg_init, int win, win 903 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c ret = t4_memory_rw_init(adap, win, mtype, &memoffset, &mem_base, win 917 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c t4_memory_update_win(adap, win, pos | win_pf); win 932 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c t4_memory_update_win(adap, win, pos | win_pf); win 950 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c t4_memory_update_win(adap, win, pos | win_pf); win 1614 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_memory_rw_init(struct adapter *adap, int win, int mtype, u32 *mem_off, win 1616 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h void t4_memory_update_win(struct adapter *adap, int win, u32 addr); win 1621 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_memory_rw(struct adapter *adap, int win, int mtype, u32 addr, u32 len, win 1641 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int win, spinlock_t *lock, win 497 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_memory_rw_init(struct adapter *adap, int win, int mtype, u32 *mem_off, win 530 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c win)); win 551 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c void t4_memory_update_win(struct adapter *adap, int win, u32 addr) win 554 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c PCIE_MEM_ACCESS_REG(PCIE_MEM_ACCESS_OFFSET_A, win), win 560 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c PCIE_MEM_ACCESS_REG(PCIE_MEM_ACCESS_OFFSET_A, win)); win 614 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_memory_rw(struct adapter *adap, int win, int mtype, u32 addr, win 636 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_memory_rw_init(adap, win, mtype, &memoffset, &mem_base, win 655 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c t4_memory_update_win(adap, win, pos | win_pf); win 710 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c t4_memory_update_win(adap, win, pos | win_pf); win 3785 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int win, spinlock_t *win_lock, win 3833 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ret = t4_memory_rw(adap, win, mtype, maddr, win 79 drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h static inline u32 cxgb_compute_wscale(u32 win) win 83 drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h while (wscale < 14 && (65535 << wscale) < win) win 117 drivers/net/wireless/intel/iwlegacy/3945-rs.c il3945_clear_win(struct il3945_rate_scale_data *win) win 119 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->data = 0; win 120 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->success_counter = 0; win 121 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->success_ratio = -1; win 122 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->counter = 0; win 123 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->average_tpt = IL_INVALID_VALUE; win 124 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->stamp = 0; win 148 drivers/net/wireless/intel/iwlegacy/3945-rs.c if (!rs_sta->win[i].counter) win 152 drivers/net/wireless/intel/iwlegacy/3945-rs.c if (time_after(jiffies, rs_sta->win[i].stamp + RATE_WIN_FLUSH)) { win 154 drivers/net/wireless/intel/iwlegacy/3945-rs.c rs_sta->win[i].counter, i); win 155 drivers/net/wireless/intel/iwlegacy/3945-rs.c il3945_clear_win(&rs_sta->win[i]); win 241 drivers/net/wireless/intel/iwlegacy/3945-rs.c struct il3945_rate_scale_data *win, int success, win 264 drivers/net/wireless/intel/iwlegacy/3945-rs.c if (win->counter >= RATE_MAX_WINDOW) { win 267 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->counter = RATE_MAX_WINDOW - 1; win 269 drivers/net/wireless/intel/iwlegacy/3945-rs.c if (win->data & (1ULL << (RATE_MAX_WINDOW - 1))) { win 270 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->data &= ~(1ULL << (RATE_MAX_WINDOW - 1)); win 271 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->success_counter--; win 276 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->counter++; win 281 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->data <<= 1; win 283 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->success_counter++; win 284 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->data |= 0x1; win 292 drivers/net/wireless/intel/iwlegacy/3945-rs.c if (win->counter > 0) win 293 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->success_ratio = win 294 drivers/net/wireless/intel/iwlegacy/3945-rs.c 128 * (100 * win->success_counter) / win->counter; win 296 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->success_ratio = IL_INVALID_VALUE; win 298 drivers/net/wireless/intel/iwlegacy/3945-rs.c fail_count = win->counter - win->success_counter; win 302 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->success_counter >= RATE_MIN_SUCCESS_TH) win 303 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->average_tpt = win 304 drivers/net/wireless/intel/iwlegacy/3945-rs.c ((win->success_ratio * rs_sta->expected_tpt[idx] + win 307 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->average_tpt = IL_INVALID_VALUE; win 310 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->stamp = jiffies; win 349 drivers/net/wireless/intel/iwlegacy/3945-rs.c il3945_clear_win(&rs_sta->win[i]); win 487 drivers/net/wireless/intel/iwlegacy/3945-rs.c il3945_collect_tx_data(rs_sta, &rs_sta->win[scale_rate_idx], 0, win 500 drivers/net/wireless/intel/iwlegacy/3945-rs.c il3945_collect_tx_data(rs_sta, &rs_sta->win[last_idx], win 614 drivers/net/wireless/intel/iwlegacy/3945-rs.c struct il3945_rate_scale_data *win = NULL; win 666 drivers/net/wireless/intel/iwlegacy/3945-rs.c win = &(rs_sta->win[idx]); win 668 drivers/net/wireless/intel/iwlegacy/3945-rs.c fail_count = win->counter - win->success_counter; win 671 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->success_counter < RATE_MIN_SUCCESS_TH) { win 676 drivers/net/wireless/intel/iwlegacy/3945-rs.c "expected_tpt is %sNULL\n", idx, win->counter, win 677 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->success_counter, win 681 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->average_tpt = IL_INVALID_VALUE; win 686 drivers/net/wireless/intel/iwlegacy/3945-rs.c current_tpt = win->average_tpt; win 699 drivers/net/wireless/intel/iwlegacy/3945-rs.c low_tpt = rs_sta->win[low].average_tpt; win 702 drivers/net/wireless/intel/iwlegacy/3945-rs.c high_tpt = rs_sta->win[high].average_tpt; win 709 drivers/net/wireless/intel/iwlegacy/3945-rs.c if (win->success_ratio < RATE_DECREASE_TH || !current_tpt) { win 717 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->success_ratio >= RATE_INCREASE_TH) win 739 drivers/net/wireless/intel/iwlegacy/3945-rs.c win->success_ratio >= RATE_INCREASE_TH) win 749 drivers/net/wireless/intel/iwlegacy/3945-rs.c } else if (win->success_ratio >= RATE_INCREASE_TH) { win 760 drivers/net/wireless/intel/iwlegacy/3945-rs.c (win->success_ratio > RATE_HIGH_TH || win 826 drivers/net/wireless/intel/iwlegacy/3945-rs.c lq_sta->win[j].counter, win 827 drivers/net/wireless/intel/iwlegacy/3945-rs.c lq_sta->win[j].success_counter, win 828 drivers/net/wireless/intel/iwlegacy/3945-rs.c lq_sta->win[j].success_ratio); win 74 drivers/net/wireless/intel/iwlegacy/3945.h struct il3945_rate_scale_data win[RATE_COUNT_3945]; win 214 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_rate_scale_clear_win(struct il_rate_scale_data *win) win 216 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->data = 0; win 217 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->success_counter = 0; win 218 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->success_ratio = IL_INVALID_VALUE; win 219 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->counter = 0; win 220 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->average_tpt = IL_INVALID_VALUE; win 221 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->stamp = 0; win 407 drivers/net/wireless/intel/iwlegacy/4965-rs.c struct il_rate_scale_data *win = NULL; win 415 drivers/net/wireless/intel/iwlegacy/4965-rs.c win = &(tbl->win[scale_idx]); win 429 drivers/net/wireless/intel/iwlegacy/4965-rs.c if (win->counter >= RATE_MAX_WINDOW) { win 432 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->counter = RATE_MAX_WINDOW - 1; win 434 drivers/net/wireless/intel/iwlegacy/4965-rs.c if (win->data & mask) { win 435 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->data &= ~mask; win 436 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->success_counter--; win 441 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->counter++; win 444 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->data <<= 1; win 448 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->success_counter++; win 449 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->data |= 0x1; win 457 drivers/net/wireless/intel/iwlegacy/4965-rs.c if (win->counter > 0) win 458 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->success_ratio = win 459 drivers/net/wireless/intel/iwlegacy/4965-rs.c 128 * (100 * win->success_counter) / win->counter; win 461 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->success_ratio = IL_INVALID_VALUE; win 463 drivers/net/wireless/intel/iwlegacy/4965-rs.c fail_count = win->counter - win->success_counter; win 467 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->success_counter >= RATE_MIN_SUCCESS_TH) win 468 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->average_tpt = (win->success_ratio * tpt + 64) / 128; win 470 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->average_tpt = IL_INVALID_VALUE; win 473 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->stamp = jiffies; win 1071 drivers/net/wireless/intel/iwlegacy/4965-rs.c s32 active_sr = active_tbl->win[idx].success_ratio; win 1266 drivers/net/wireless/intel/iwlegacy/4965-rs.c struct il_rate_scale_data *win = &(tbl->win[idx]); win 1293 drivers/net/wireless/intel/iwlegacy/4965-rs.c if (win->success_ratio >= IL_RS_GOOD_RATIO) win 1386 drivers/net/wireless/intel/iwlegacy/4965-rs.c struct il_rate_scale_data *win = &(tbl->win[idx]); win 1411 drivers/net/wireless/intel/iwlegacy/4965-rs.c if (win->success_ratio >= IL_RS_GOOD_RATIO) win 1509 drivers/net/wireless/intel/iwlegacy/4965-rs.c struct il_rate_scale_data *win = &(tbl->win[idx]); win 1531 drivers/net/wireless/intel/iwlegacy/4965-rs.c if (win->success_ratio >= IL_RS_GOOD_RATIO) win 1691 drivers/net/wireless/intel/iwlegacy/4965-rs.c win win 1701 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_rate_scale_clear_win(&(tbl->win[i])); win 1737 drivers/net/wireless/intel/iwlegacy/4965-rs.c struct il_rate_scale_data *win = NULL; win 1844 drivers/net/wireless/intel/iwlegacy/4965-rs.c win = &(tbl->win[idx]); win 1848 drivers/net/wireless/intel/iwlegacy/4965-rs.c win = &(tbl->win[idx]); win 1857 drivers/net/wireless/intel/iwlegacy/4965-rs.c fail_count = win->counter - win->success_counter; win 1859 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->success_counter < RATE_MIN_SUCCESS_TH) { win 1861 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->success_counter, win->counter, idx); win 1864 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->average_tpt = IL_INVALID_VALUE; win 1874 drivers/net/wireless/intel/iwlegacy/4965-rs.c if (win->average_tpt != win 1875 drivers/net/wireless/intel/iwlegacy/4965-rs.c ((win->success_ratio * tbl->expected_tpt[idx] + 64) / 128)) { win 1877 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->average_tpt = win 1878 drivers/net/wireless/intel/iwlegacy/4965-rs.c ((win->success_ratio * tbl->expected_tpt[idx] + 64) / 128); win 1886 drivers/net/wireless/intel/iwlegacy/4965-rs.c if (win->average_tpt > lq_sta->last_tpt) { win 1890 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->success_ratio, win->average_tpt, win 1898 drivers/net/wireless/intel/iwlegacy/4965-rs.c current_tpt = win->average_tpt; win 1905 drivers/net/wireless/intel/iwlegacy/4965-rs.c win->success_ratio, win->average_tpt, win 1942 drivers/net/wireless/intel/iwlegacy/4965-rs.c sr = win->success_ratio; win 1945 drivers/net/wireless/intel/iwlegacy/4965-rs.c current_tpt = win->average_tpt; win 1947 drivers/net/wireless/intel/iwlegacy/4965-rs.c low_tpt = tbl->win[low].average_tpt; win 1949 drivers/net/wireless/intel/iwlegacy/4965-rs.c high_tpt = tbl->win[high].average_tpt; win 2043 drivers/net/wireless/intel/iwlegacy/4965-rs.c if (!update_lq && !done_search && !lq_sta->stay_in_tbl && win->counter) { win 2063 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_rate_scale_clear_win(&(tbl->win[i])); win 2288 drivers/net/wireless/intel/iwlegacy/4965-rs.c win[i]); win 2295 drivers/net/wireless/intel/iwlegacy/4965-rs.c win[i]); win 2703 drivers/net/wireless/intel/iwlegacy/4965-rs.c lq_sta->lq_info[i].win[j].counter, win 2704 drivers/net/wireless/intel/iwlegacy/4965-rs.c lq_sta->lq_info[i].win[j].success_counter, win 2705 drivers/net/wireless/intel/iwlegacy/4965-rs.c lq_sta->lq_info[i].win[j].success_ratio); win 2757 drivers/net/wireless/intel/iwlegacy/common.h struct il_rate_scale_data win[RATE_COUNT]; /* rate histories */ win 460 drivers/net/wireless/intel/iwlwifi/dvm/rs.c window = &(tbl->win[scale_index]); win 1159 drivers/net/wireless/intel/iwlwifi/dvm/rs.c s32 active_sr = active_tbl->win[index].success_ratio; win 1413 drivers/net/wireless/intel/iwlwifi/dvm/rs.c struct iwl_rate_scale_data *window = &(tbl->win[index]); win 1586 drivers/net/wireless/intel/iwlwifi/dvm/rs.c struct iwl_rate_scale_data *window = &(tbl->win[index]); win 1756 drivers/net/wireless/intel/iwlwifi/dvm/rs.c struct iwl_rate_scale_data *window = &(tbl->win[index]); win 1924 drivers/net/wireless/intel/iwlwifi/dvm/rs.c struct iwl_rate_scale_data *window = &(tbl->win[index]); win 2154 drivers/net/wireless/intel/iwlwifi/dvm/rs.c &(tbl->win[i])); win 2163 drivers/net/wireless/intel/iwlwifi/dvm/rs.c rs_rate_scale_clear_window(&(tbl->win[i])); win 2312 drivers/net/wireless/intel/iwlwifi/dvm/rs.c window = &(tbl->win[index]); win 2316 drivers/net/wireless/intel/iwlwifi/dvm/rs.c window = &(tbl->win[index]); win 2419 drivers/net/wireless/intel/iwlwifi/dvm/rs.c low_tpt = tbl->win[low].average_tpt; win 2421 drivers/net/wireless/intel/iwlwifi/dvm/rs.c high_tpt = tbl->win[high].average_tpt; win 2570 drivers/net/wireless/intel/iwlwifi/dvm/rs.c rs_rate_scale_clear_window(&(tbl->win[i])); win 2795 drivers/net/wireless/intel/iwlwifi/dvm/rs.c rs_rate_scale_clear_window(&lq_sta->lq_info[j].win[i]); win 3213 drivers/net/wireless/intel/iwlwifi/dvm/rs.c lq_sta->lq_info[i].win[j].counter, win 3214 drivers/net/wireless/intel/iwlwifi/dvm/rs.c lq_sta->lq_info[i].win[j].success_counter, win 3215 drivers/net/wireless/intel/iwlwifi/dvm/rs.c lq_sta->lq_info[i].win[j].success_ratio); win 305 drivers/net/wireless/intel/iwlwifi/dvm/rs.h struct iwl_rate_scale_data win[IWL_RATE_COUNT]; /* rate histories */ win 592 drivers/net/wireless/intel/iwlwifi/mvm/rs.c rs_rate_scale_clear_window(&tbl->win[i]); win 812 drivers/net/wireless/intel/iwlwifi/mvm/rs.c window = &(tbl->win[scale_index]); win 1374 drivers/net/wireless/intel/iwlwifi/mvm/rs.c s32 success_ratio = active_tbl->win[index].success_ratio; win 1723 drivers/net/wireless/intel/iwlwifi/mvm/rs.c memcpy(search_tbl, tbl, offsetof(struct iwl_scale_tbl_info, win)); win 2162 drivers/net/wireless/intel/iwlwifi/mvm/rs.c window = &(tbl->win[index]); win 2249 drivers/net/wireless/intel/iwlwifi/mvm/rs.c low_tpt = tbl->win[low].average_tpt; win 2251 drivers/net/wireless/intel/iwlwifi/mvm/rs.c high_tpt = tbl->win[high].average_tpt; win 3934 drivers/net/wireless/intel/iwlwifi/mvm/rs.c tbl->win[j].counter, win 3935 drivers/net/wireless/intel/iwlwifi/mvm/rs.c tbl->win[j].success_counter, win 3936 drivers/net/wireless/intel/iwlwifi/mvm/rs.c tbl->win[j].success_ratio); win 305 drivers/net/wireless/intel/iwlwifi/mvm/rs.h struct iwl_rate_scale_data win[IWL_RATE_COUNT]; /* rate histories */ win 96 drivers/pci/bus.c struct resource_entry *win; win 100 drivers/pci/bus.c resource_list_for_each_entry(win, resources) { win 101 drivers/pci/bus.c res = win->res; win 323 drivers/pci/controller/dwc/pcie-designware-host.c struct resource_entry *win, *tmp; win 356 drivers/pci/controller/dwc/pcie-designware-host.c resource_list_for_each_entry_safe(win, tmp, &bridge->windows) { win 357 drivers/pci/controller/dwc/pcie-designware-host.c switch (resource_type(win->res)) { win 359 drivers/pci/controller/dwc/pcie-designware-host.c ret = devm_pci_remap_iospace(dev, win->res, win 363 drivers/pci/controller/dwc/pcie-designware-host.c ret, win->res); win 364 drivers/pci/controller/dwc/pcie-designware-host.c resource_list_destroy_entry(win); win 366 drivers/pci/controller/dwc/pcie-designware-host.c pp->io = win->res; win 369 drivers/pci/controller/dwc/pcie-designware-host.c pp->io_bus_addr = pp->io->start - win->offset; win 373 drivers/pci/controller/dwc/pcie-designware-host.c pp->mem = win->res; win 376 drivers/pci/controller/dwc/pcie-designware-host.c pp->mem_bus_addr = pp->mem->start - win->offset; win 379 drivers/pci/controller/dwc/pcie-designware-host.c pp->cfg = win->res; win 386 drivers/pci/controller/dwc/pcie-designware-host.c pp->busn = win->res; win 949 drivers/pci/controller/pci-aardvark.c struct resource_entry *win, *tmp; win 963 drivers/pci/controller/pci-aardvark.c resource_list_for_each_entry_safe(win, tmp, &pcie->resources) { win 964 drivers/pci/controller/pci-aardvark.c struct resource *res = win->res; win 972 drivers/pci/controller/pci-aardvark.c resource_list_destroy_entry(win); win 434 drivers/pci/controller/pci-ftpci100.c struct resource_entry *win; win 493 drivers/pci/controller/pci-ftpci100.c resource_list_for_each_entry(win, &res) { win 494 drivers/pci/controller/pci-ftpci100.c switch (resource_type(win->res)) { win 496 drivers/pci/controller/pci-ftpci100.c io = win->res; win 498 drivers/pci/controller/pci-ftpci100.c if (!faraday_res_to_memcfg(io->start - win->offset, win 514 drivers/pci/controller/pci-ftpci100.c mem = win->res; win 525 drivers/pci/controller/pci-v3-semi.c struct resource_entry *win) win 532 drivers/pci/controller/pci-v3-semi.c switch (resource_type(win->res)) { win 534 drivers/pci/controller/pci-v3-semi.c io = win->res; win 537 drivers/pci/controller/pci-v3-semi.c v3->io_bus_addr = io->start - win->offset; win 555 drivers/pci/controller/pci-v3-semi.c mem = win->res; win 559 drivers/pci/controller/pci-v3-semi.c v3->pre_bus_addr = mem->start - win->offset; win 584 drivers/pci/controller/pci-v3-semi.c v3->non_pre_bus_addr = mem->start - win->offset; win 603 drivers/pci/controller/pci-v3-semi.c dev_dbg(dev, "BUS %pR\n", win->res); win 604 drivers/pci/controller/pci-v3-semi.c host->busnr = win->res->start; win 608 drivers/pci/controller/pci-v3-semi.c resource_type(win->res)); win 737 drivers/pci/controller/pci-v3-semi.c struct resource_entry *win; win 855 drivers/pci/controller/pci-v3-semi.c resource_list_for_each_entry(win, &res) { win 856 drivers/pci/controller/pci-v3-semi.c ret = v3_pci_setup_resource(v3, io_base, host, win); win 70 drivers/pci/controller/pci-versatile.c struct resource_entry *win, *tmp; win 80 drivers/pci/controller/pci-versatile.c resource_list_for_each_entry_safe(win, tmp, res) { win 81 drivers/pci/controller/pci-versatile.c struct resource *res = win->res; win 89 drivers/pci/controller/pci-versatile.c resource_list_destroy_entry(win); win 247 drivers/pci/controller/pci-xgene.c port->cfg_base = cfg->win; win 677 drivers/pci/controller/pcie-altera.c struct resource_entry *win; win 688 drivers/pci/controller/pcie-altera.c resource_list_for_each_entry(win, &pcie->resources) { win 689 drivers/pci/controller/pcie-altera.c struct resource *res = win->res; win 1026 drivers/pci/controller/pcie-mediatek.c struct resource_entry *win, *tmp_win; win 1040 drivers/pci/controller/pcie-mediatek.c resource_list_for_each_entry_safe(win, tmp_win, windows) { win 1041 drivers/pci/controller/pcie-mediatek.c switch (resource_type(win->res)) { win 1043 drivers/pci/controller/pcie-mediatek.c err = devm_pci_remap_iospace(dev, win->res, io_base); win 1046 drivers/pci/controller/pcie-mediatek.c err, win->res); win 1047 drivers/pci/controller/pcie-mediatek.c resource_list_destroy_entry(win); win 1051 drivers/pci/controller/pcie-mediatek.c memcpy(&pcie->mem, win->res, sizeof(*win->res)); win 1055 drivers/pci/controller/pcie-mediatek.c pcie->busnr = win->res->start; win 37 drivers/pci/controller/pcie-mobiveil.c #define PAB_REG_ADDR(offset, win) \ win 38 drivers/pci/controller/pcie-mobiveil.c (offset + (win * PAB_REG_BLOCK_SIZE)) win 39 drivers/pci/controller/pcie-mobiveil.c #define PAB_EXT_REG_ADDR(offset, win) \ win 40 drivers/pci/controller/pcie-mobiveil.c (offset + (win * PAB_EXT_REG_BLOCK_SIZE)) win 65 drivers/pci/controller/pcie-mobiveil.c #define PAB_AXI_AMAP_CTRL(win) PAB_REG_ADDR(0x0ba0, win) win 71 drivers/pci/controller/pcie-mobiveil.c #define PAB_EXT_AXI_AMAP_SIZE(win) PAB_EXT_REG_ADDR(0xbaf0, win) win 73 drivers/pci/controller/pcie-mobiveil.c #define PAB_EXT_AXI_AMAP_AXI_WIN(win) PAB_EXT_REG_ADDR(0x80a0, win) win 74 drivers/pci/controller/pcie-mobiveil.c #define PAB_AXI_AMAP_AXI_WIN(win) PAB_REG_ADDR(0x0ba4, win) win 77 drivers/pci/controller/pcie-mobiveil.c #define PAB_AXI_AMAP_PEX_WIN_L(win) PAB_REG_ADDR(0x0ba8, win) win 82 drivers/pci/controller/pcie-mobiveil.c #define PAB_AXI_AMAP_PEX_WIN_H(win) PAB_REG_ADDR(0x0bac, win) win 85 drivers/pci/controller/pcie-mobiveil.c #define PAB_PEX_AMAP_CTRL(win) PAB_REG_ADDR(0x4ba0, win) win 90 drivers/pci/controller/pcie-mobiveil.c #define PAB_EXT_PEX_AMAP_SIZEN(win) PAB_EXT_REG_ADDR(0xbef0, win) win 91 drivers/pci/controller/pcie-mobiveil.c #define PAB_EXT_PEX_AMAP_AXI_WIN(win) PAB_EXT_REG_ADDR(0xb4a0, win) win 92 drivers/pci/controller/pcie-mobiveil.c #define PAB_PEX_AMAP_AXI_WIN(win) PAB_REG_ADDR(0x4ba4, win) win 93 drivers/pci/controller/pcie-mobiveil.c #define PAB_PEX_AMAP_PEX_WIN_L(win) PAB_REG_ADDR(0x4ba8, win) win 94 drivers/pci/controller/pcie-mobiveil.c #define PAB_PEX_AMAP_PEX_WIN_H(win) PAB_REG_ADDR(0x4bac, win) win 584 drivers/pci/controller/pcie-mobiveil.c struct resource_entry *win; win 639 drivers/pci/controller/pcie-mobiveil.c resource_list_for_each_entry(win, &pcie->resources) { win 640 drivers/pci/controller/pcie-mobiveil.c if (resource_type(win->res) == IORESOURCE_MEM) win 642 drivers/pci/controller/pcie-mobiveil.c else if (resource_type(win->res) == IORESOURCE_IO) win 649 drivers/pci/controller/pcie-mobiveil.c win->res->start, win 650 drivers/pci/controller/pcie-mobiveil.c win->res->start - win->offset, win 651 drivers/pci/controller/pcie-mobiveil.c type, resource_size(win->res)); win 337 drivers/pci/controller/pcie-rcar.c static void rcar_pcie_setup_window(int win, struct rcar_pcie *pcie, win 345 drivers/pci/controller/pcie-rcar.c rcar_pci_write_reg(pcie, 0x00000000, PCIEPTCTLR(win)); win 353 drivers/pci/controller/pcie-rcar.c rcar_pci_write_reg(pcie, mask << 7, PCIEPAMR(win)); win 360 drivers/pci/controller/pcie-rcar.c rcar_pci_write_reg(pcie, upper_32_bits(res_start), PCIEPAUR(win)); win 362 drivers/pci/controller/pcie-rcar.c PCIEPALR(win)); win 369 drivers/pci/controller/pcie-rcar.c rcar_pci_write_reg(pcie, mask, PCIEPTCTLR(win)); win 374 drivers/pci/controller/pcie-rcar.c struct resource_entry *win; win 378 drivers/pci/controller/pcie-rcar.c resource_list_for_each_entry(win, &pci->resources) { win 379 drivers/pci/controller/pcie-rcar.c struct resource *res = win->res; win 953 drivers/pci/controller/pcie-rockchip-host.c struct resource_entry *win; win 1008 drivers/pci/controller/pcie-rockchip-host.c resource_list_for_each_entry(win, &res) { win 1009 drivers/pci/controller/pcie-rockchip-host.c switch (resource_type(win->res)) { win 1011 drivers/pci/controller/pcie-rockchip-host.c io = win->res; win 1014 drivers/pci/controller/pcie-rockchip-host.c rockchip->io_bus_addr = io->start - win->offset; win 1024 drivers/pci/controller/pcie-rockchip-host.c mem = win->res; win 1027 drivers/pci/controller/pcie-rockchip-host.c rockchip->mem_bus_addr = mem->start - win->offset; win 1030 drivers/pci/controller/pcie-rockchip-host.c rockchip->root_bus_nr = win->res->start; win 83 drivers/pci/ecam.c cfg->win = pci_remap_cfgspace(cfgres->start, bus_range * bsz); win 84 drivers/pci/ecam.c if (!cfg->win) win 117 drivers/pci/ecam.c if (cfg->win) win 118 drivers/pci/ecam.c iounmap(cfg->win); win 143 drivers/pci/ecam.c base = cfg->win + (busn << cfg->ops->bus_shift); win 489 drivers/pci/of.c struct resource_entry *win, *tmp; win 501 drivers/pci/of.c resource_list_for_each_entry_safe(win, tmp, resources) { win 502 drivers/pci/of.c struct resource *res = win->res; win 510 drivers/pci/of.c resource_list_destroy_entry(win); win 987 drivers/pcmcia/cistpl.c io->win[0].base = 0; win 988 drivers/pcmcia/cistpl.c io->win[0].len = (1 << (io->flags & CISTPL_IO_LINES_MASK)); win 1004 drivers/pcmcia/cistpl.c io->win[i].base = 0; win 1005 drivers/pcmcia/cistpl.c io->win[i].len = 1; win 1009 drivers/pcmcia/cistpl.c io->win[i].base += *p << (j*8); win 1014 drivers/pcmcia/cistpl.c io->win[i].len += *p << (j*8); win 1054 drivers/pcmcia/cistpl.c mem->win[i].len = len << 8; win 1055 drivers/pcmcia/cistpl.c mem->win[i].card_addr = ca << 8; win 1056 drivers/pcmcia/cistpl.c mem->win[i].host_addr = ha << 8; win 1161 drivers/pcmcia/cistpl.c entry->mem.win[0].len = get_unaligned_le16(p) << 8; win 1162 drivers/pcmcia/cistpl.c entry->mem.win[0].card_addr = 0; win 1163 drivers/pcmcia/cistpl.c entry->mem.win[0].host_addr = 0; win 1170 drivers/pcmcia/cistpl.c entry->mem.win[0].len = get_unaligned_le16(p) << 8; win 1171 drivers/pcmcia/cistpl.c entry->mem.win[0].card_addr = get_unaligned_le16(p + 2) << 8; win 1172 drivers/pcmcia/cistpl.c entry->mem.win[0].host_addr = 0; win 212 drivers/pcmcia/pcmcia_cis.c i = (io->win[1].len > io->win[0].len); win 214 drivers/pcmcia/pcmcia_cis.c p_dev->resource[1]->start = io->win[1-i].base; win 215 drivers/pcmcia/pcmcia_cis.c p_dev->resource[1]->end = io->win[1-i].len; win 217 drivers/pcmcia/pcmcia_cis.c p_dev->resource[0]->start = io->win[i].base; win 218 drivers/pcmcia/pcmcia_cis.c p_dev->resource[0]->end = io->win[i].len; win 231 drivers/pcmcia/pcmcia_cis.c p_dev->resource[2]->start = mem->win[0].host_addr; win 232 drivers/pcmcia/pcmcia_cis.c p_dev->resource[2]->end = mem->win[0].len; win 235 drivers/pcmcia/pcmcia_cis.c p_dev->card_addr = mem->win[0].card_addr; win 235 drivers/pcmcia/pcmcia_resource.c s->win[w].card_start = offset; win 236 drivers/pcmcia/pcmcia_resource.c ret = s->ops->set_mem_map(s, &s->win[w]); win 431 drivers/pcmcia/pcmcia_resource.c pccard_mem_map *win; win 441 drivers/pcmcia/pcmcia_resource.c win = &s->win[w]; win 450 drivers/pcmcia/pcmcia_resource.c win->flags &= ~MAP_ACTIVE; win 451 drivers/pcmcia/pcmcia_resource.c s->ops->set_mem_map(s, win); win 455 drivers/pcmcia/pcmcia_resource.c if (win->res) { win 457 drivers/pcmcia/pcmcia_resource.c release_resource(win->res); win 458 drivers/pcmcia/pcmcia_resource.c kfree(win->res); win 459 drivers/pcmcia/pcmcia_resource.c win->res = NULL; win 839 drivers/pcmcia/pcmcia_resource.c pccard_mem_map *win; win 877 drivers/pcmcia/pcmcia_resource.c win = &s->win[w]; win 880 drivers/pcmcia/pcmcia_resource.c win->res = pcmcia_find_mem_region(res->start, res->end, align, win 882 drivers/pcmcia/pcmcia_resource.c if (!win->res) { win 891 drivers/pcmcia/pcmcia_resource.c win->map = w+1; win 892 drivers/pcmcia/pcmcia_resource.c win->flags = res->flags & WIN_FLAGS_MAP; win 893 drivers/pcmcia/pcmcia_resource.c win->speed = speed; win 894 drivers/pcmcia/pcmcia_resource.c win->card_start = 0; win 896 drivers/pcmcia/pcmcia_resource.c if (s->ops->set_mem_map(s, win) != 0) { win 905 drivers/pcmcia/pcmcia_resource.c res->start = win->static_start; win 907 drivers/pcmcia/pcmcia_resource.c res->start = win->res->start; win 912 drivers/pcmcia/pcmcia_resource.c res->flags |= (win->map << 2) | IORESOURCE_MEM; win 913 drivers/pcmcia/pcmcia_resource.c res->parent = win->res; win 914 drivers/pcmcia/pcmcia_resource.c if (win->res) win 171 drivers/pnp/pnpacpi/rsparser.c struct resource_win win = {{0}, 0}; win 172 drivers/pnp/pnpacpi/rsparser.c struct resource *r = &win.res; win 175 drivers/pnp/pnpacpi/rsparser.c if (acpi_dev_resource_address_space(res, &win) win 176 drivers/pnp/pnpacpi/rsparser.c || acpi_dev_resource_ext_address_space(res, &win)) { win 177 drivers/pnp/pnpacpi/rsparser.c pnp_add_resource(dev, &win.res); win 863 drivers/rapidio/devices/tsi721.c struct tsi721_ob_win *win; win 887 drivers/rapidio/devices/tsi721.c win = &priv->ob_win[i]; win 889 drivers/rapidio/devices/tsi721.c if (win->base >= bar_base && win->base < bar_end) { win 890 drivers/rapidio/devices/tsi721.c if (win_base < (win->base + win->size) && win 891 drivers/rapidio/devices/tsi721.c (win_base + size) > win->base) { win 893 drivers/rapidio/devices/tsi721.c win_base = win->base + win->size; win 38 drivers/scsi/csiostor/csio_hw_t5.c csio_t5_set_mem_win(struct csio_hw *hw, uint32_t win) win 61 drivers/scsi/csiostor/csio_hw_t5.c PCIE_MEM_ACCESS_REG(PCIE_MEM_ACCESS_BASE_WIN_A, win)); win 63 drivers/scsi/csiostor/csio_hw_t5.c PCIE_MEM_ACCESS_REG(PCIE_MEM_ACCESS_BASE_WIN_A, win)); win 255 drivers/scsi/csiostor/csio_hw_t5.c csio_t5_memory_rw(struct csio_hw *hw, u32 win, int mtype, u32 addr, win 296 drivers/scsi/csiostor/csio_hw_t5.c PCIE_MEM_ACCESS_REG(PCIE_MEM_ACCESS_BASE_WIN_A, win)); win 320 drivers/scsi/csiostor/csio_hw_t5.c PCIE_MEM_ACCESS_REG(PCIE_MEM_ACCESS_OFFSET_A, win)); win 322 drivers/scsi/csiostor/csio_hw_t5.c PCIE_MEM_ACCESS_REG(PCIE_MEM_ACCESS_OFFSET_A, win)); win 342 drivers/scsi/cxgbi/libcxgbi.h static inline unsigned int cxgbi_sock_compute_wscale(unsigned int win) win 346 drivers/scsi/cxgbi/libcxgbi.h while (wscale < 14 && (65535 << wscale) < win) win 704 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.win = dev->overlay; win 714 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.win.field = V4L2_FIELD_NONE; win 715 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.win.chromakey = 0; win 716 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.win.clips = NULL; win 717 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.win.clipcount = 0; win 718 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.win.bitmap = NULL; win 720 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c v4l_bound_align_image(&f->fmt.win.w.width, MIN_WIDTH, dev->max_width, 1, win 721 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c &f->fmt.win.w.height, MIN_HEIGHT, dev->max_height, win 723 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c v4l_bound_align_image(&f->fmt.win.w.left, MIN_WIDTH, dev->max_width, 1, win 724 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c &f->fmt.win.w.top, MIN_HEIGHT, dev->max_height, win 729 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.win.w.width, f->fmt.win.w.height, win 730 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.win.w.left, f->fmt.win.w.top); win 735 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c &f->fmt.win, win 747 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c dev->overlay = f->fmt.win; win 1139 drivers/target/iscsi/cxgbit/cxgbit_cm.c u32 win; win 1162 drivers/target/iscsi/cxgbit/cxgbit_cm.c win = csk->rcv_win >> 10; win 1163 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (win > RCV_BUFSIZ_M) win 1164 drivers/target/iscsi/cxgbit/cxgbit_cm.c win = RCV_BUFSIZ_M; win 1173 drivers/target/iscsi/cxgbit/cxgbit_cm.c RCV_BUFSIZ_V(win); win 301 drivers/thermal/intel/intel_powerclamp.c static void adjust_compensation(int target_ratio, unsigned int win) win 313 drivers/thermal/intel/intel_powerclamp.c win * num_online_cpus()) win 329 drivers/thermal/intel/intel_powerclamp.c unsigned int guard, unsigned int win) win 352 drivers/thermal/intel/intel_powerclamp.c adjust_compensation(target_ratio, win); win 358 drivers/thermal/intel/intel_powerclamp.c 2 * win * num_online_cpus(); win 25 drivers/usb/host/xhci-mvebu.c int win; win 28 drivers/usb/host/xhci-mvebu.c for (win = 0; win < USB3_MAX_WINDOWS; win++) { win 29 drivers/usb/host/xhci-mvebu.c writel(0, base + USB3_WIN_CTRL(win)); win 30 drivers/usb/host/xhci-mvebu.c writel(0, base + USB3_WIN_BASE(win)); win 34 drivers/usb/host/xhci-mvebu.c for (win = 0; win < dram->num_cs; win++) { win 35 drivers/usb/host/xhci-mvebu.c const struct mbus_dram_window *cs = dram->cs + win; win 39 drivers/usb/host/xhci-mvebu.c base + USB3_WIN_CTRL(win)); win 41 drivers/usb/host/xhci-mvebu.c writel((cs->base & 0xffff0000), base + USB3_WIN_BASE(win)); win 183 drivers/video/fbdev/au1200fb.c static struct window_settings *win; win 716 drivers/video/fbdev/au1200fb.c xsz = win->w[plane].xres; win 717 drivers/video/fbdev/au1200fb.c ysz = win->w[plane].yres; win 718 drivers/video/fbdev/au1200fb.c if ((xpos + win->w[plane].xres) > panel->Xres) { win 724 drivers/video/fbdev/au1200fb.c if ((ypos + win->w[plane].yres) > panel->Yres) { win 732 drivers/video/fbdev/au1200fb.c xsz = win->w[plane].xres + xpos; win 740 drivers/video/fbdev/au1200fb.c ysz = win->w[plane].yres + ypos; win 747 drivers/video/fbdev/au1200fb.c win->w[plane].xpos = xpos; win 748 drivers/video/fbdev/au1200fb.c win->w[plane].ypos = ypos; win 852 drivers/video/fbdev/au1200fb.c au1200_setlocation(fbdev, 0, win->w[0].xpos, win->w[0].ypos); win 853 drivers/video/fbdev/au1200fb.c au1200_setlocation(fbdev, 1, win->w[1].xpos, win->w[1].ypos); win 854 drivers/video/fbdev/au1200fb.c au1200_setlocation(fbdev, 2, win->w[2].xpos, win->w[2].ypos); win 855 drivers/video/fbdev/au1200fb.c au1200_setlocation(fbdev, 3, win->w[3].xpos, win->w[3].ypos); win 872 drivers/video/fbdev/au1200fb.c lcd->backcolor = win->mode_backcolor; win 875 drivers/video/fbdev/au1200fb.c lcd->colorkey = win->mode_colorkey; win 876 drivers/video/fbdev/au1200fb.c lcd->colorkeymsk = win->mode_colorkeymsk; win 943 drivers/video/fbdev/au1200fb.c | win->w[plane].mode_winctrl1 /* FRM,CCO,PO,PIPE */ win 946 drivers/video/fbdev/au1200fb.c au1200_setlocation(fbdev, plane, win->w[plane].xpos, win->w[plane].ypos); win 955 drivers/video/fbdev/au1200fb.c lcd->winenable |= win->w[plane].mode_winenable; win 1047 drivers/video/fbdev/au1200fb.c var->xres = win->w[plane].xres; win 1048 drivers/video/fbdev/au1200fb.c var->yres = win->w[plane].yres; win 1054 drivers/video/fbdev/au1200fb.c var->bits_per_pixel = winbpp(win->w[plane].mode_winctrl1); win 1097 drivers/video/fbdev/au1200fb.c idx = (win->w[0].mode_winctrl1 & LCD_WINCTRL1_FRM) >> 25; win 1110 drivers/video/fbdev/au1200fb.c idx = (win->w[0].mode_winctrl1 & LCD_WINCTRL1_FRM) >> 25; win 1524 drivers/video/fbdev/au1200fb.c bpp = winbpp(win->w[fbdev->plane].mode_winctrl1); win 1663 drivers/video/fbdev/au1200fb.c win = &windows[window_index]; win 1666 drivers/video/fbdev/au1200fb.c printk(DRIVER_NAME ": Win %d %s\n", window_index, win->name); win 1669 drivers/video/fbdev/au1200fb.c bpp = winbpp(win->w[plane].mode_winctrl1); win 1670 drivers/video/fbdev/au1200fb.c if (win->w[plane].xres == 0) win 1671 drivers/video/fbdev/au1200fb.c win->w[plane].xres = panel->Xres; win 1672 drivers/video/fbdev/au1200fb.c if (win->w[plane].yres == 0) win 1673 drivers/video/fbdev/au1200fb.c win->w[plane].yres = panel->Yres; win 1691 drivers/video/fbdev/au1200fb.c fbdev->fb_len = (win->w[plane].xres * win->w[plane].yres * bpp) / 8; win 386 drivers/video/fbdev/mmp/fb/mmpfb.c struct mmp_win win; win 389 drivers/video/fbdev/mmp/fb/mmpfb.c memset(&win, 0, sizeof(win)); win 390 drivers/video/fbdev/mmp/fb/mmpfb.c win.xsrc = win.xdst = fbi->mode.xres; win 391 drivers/video/fbdev/mmp/fb/mmpfb.c win.ysrc = win.ydst = fbi->mode.yres; win 392 drivers/video/fbdev/mmp/fb/mmpfb.c win.pix_fmt = fbi->pix_fmt; win 393 drivers/video/fbdev/mmp/fb/mmpfb.c stride = pixfmt_to_stride(win.pix_fmt); win 394 drivers/video/fbdev/mmp/fb/mmpfb.c win.pitch[0] = var->xres_virtual * stride; win 395 drivers/video/fbdev/mmp/fb/mmpfb.c win.pitch[1] = win.pitch[2] = win 397 drivers/video/fbdev/mmp/fb/mmpfb.c mmp_overlay_set_win(fbi->overlay, &win); win 125 drivers/video/fbdev/mmp/hw/mmp_ctrl.c tmp |= fmt_to_reg(overlay, overlay->win.pix_fmt); win 129 drivers/video/fbdev/mmp/hw/mmp_ctrl.c static void overlay_set_win(struct mmp_overlay *overlay, struct mmp_win *win) win 134 drivers/video/fbdev/mmp/hw/mmp_ctrl.c memcpy(&overlay->win, win, sizeof(struct mmp_win)); win 139 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed(win->pitch[0], ®s->v_pitch_yc); win 140 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed(win->pitch[2] << 16 | win 141 drivers/video/fbdev/mmp/hw/mmp_ctrl.c win->pitch[1], ®s->v_pitch_uv); win 143 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed((win->ysrc << 16) | win->xsrc, ®s->v_size); win 144 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed((win->ydst << 16) | win->xdst, ®s->v_size_z); win 145 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed(win->ypos << 16 | win->xpos, ®s->v_start); win 147 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed(win->pitch[0], ®s->g_pitch); win 149 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed((win->ysrc << 16) | win->xsrc, ®s->g_size); win 150 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed((win->ydst << 16) | win->xdst, ®s->g_size_z); win 151 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed(win->ypos << 16 | win->xpos, ®s->g_start); win 415 drivers/video/fbdev/omap/hwa742.c static void create_req_list(struct omapfb_update_window *win, win 419 drivers/video/fbdev/omap/hwa742.c int x = win->x; win 420 drivers/video/fbdev/omap/hwa742.c int y = win->y; win 421 drivers/video/fbdev/omap/hwa742.c int width = win->width; win 422 drivers/video/fbdev/omap/hwa742.c int height = win->height; win 426 drivers/video/fbdev/omap/hwa742.c flags = win->format & ~OMAPFB_FORMAT_MASK; win 427 drivers/video/fbdev/omap/hwa742.c color_mode = win->format & OMAPFB_FORMAT_MASK; win 479 drivers/video/fbdev/omap/hwa742.c struct omapfb_update_window *win, win 492 drivers/video/fbdev/omap/hwa742.c if (unlikely(win->format & win 500 drivers/video/fbdev/omap/hwa742.c create_req_list(win, &req_list); win 168 drivers/video/fbdev/omap/omapfb.h struct omapfb_update_window *win, win 229 drivers/video/fbdev/omap/omapfb.h struct omapfb_update_window *win, win 676 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_update_window *win, win 700 drivers/video/fbdev/omap/omapfb_main.c if (win->x >= xres || win->y >= yres || win 701 drivers/video/fbdev/omap/omapfb_main.c win->out_x > xres || win->out_y > yres) win 708 drivers/video/fbdev/omap/omapfb_main.c if (win->x + win->width > xres) win 709 drivers/video/fbdev/omap/omapfb_main.c win->width = xres - win->x; win 710 drivers/video/fbdev/omap/omapfb_main.c if (win->y + win->height > yres) win 711 drivers/video/fbdev/omap/omapfb_main.c win->height = yres - win->y; win 712 drivers/video/fbdev/omap/omapfb_main.c if (win->out_x + win->out_width > xres) win 713 drivers/video/fbdev/omap/omapfb_main.c win->out_width = xres - win->out_x; win 714 drivers/video/fbdev/omap/omapfb_main.c if (win->out_y + win->out_height > yres) win 715 drivers/video/fbdev/omap/omapfb_main.c win->out_height = yres - win->out_y; win 716 drivers/video/fbdev/omap/omapfb_main.c if (!win->width || !win->height || !win->out_width || !win->out_height) win 719 drivers/video/fbdev/omap/omapfb_main.c return fbdev->ctrl->update_window(fbi, win, callback, callback_data); win 724 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_update_window *win) win 730 drivers/video/fbdev/omap/omapfb_main.c ret = omapfb_update_window_async(fbi, win, NULL, NULL); win 740 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_update_window win; win 747 drivers/video/fbdev/omap/omapfb_main.c win.x = 0; win 748 drivers/video/fbdev/omap/omapfb_main.c win.y = 0; win 749 drivers/video/fbdev/omap/omapfb_main.c win.width = fbi->var.xres; win 750 drivers/video/fbdev/omap/omapfb_main.c win.height = fbi->var.yres; win 751 drivers/video/fbdev/omap/omapfb_main.c win.out_x = 0; win 752 drivers/video/fbdev/omap/omapfb_main.c win.out_y = 0; win 753 drivers/video/fbdev/omap/omapfb_main.c win.out_width = fbi->var.xres; win 754 drivers/video/fbdev/omap/omapfb_main.c win.out_height = fbi->var.yres; win 755 drivers/video/fbdev/omap/omapfb_main.c win.format = 0; win 758 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->update_window(fbi, &win, NULL, NULL); win 1033 drivers/video/fbdev/omap/omapfb_main.c struct omapfb_update_window win; win 1035 drivers/video/fbdev/omap/omapfb_main.c memset(&win, 0, sizeof(win)); win 1036 drivers/video/fbdev/omap/omapfb_main.c win.width = 2; win 1037 drivers/video/fbdev/omap/omapfb_main.c win.height = 2; win 1038 drivers/video/fbdev/omap/omapfb_main.c win.out_width = 2; win 1039 drivers/video/fbdev/omap/omapfb_main.c win.out_height = 2; win 1040 drivers/video/fbdev/omap/omapfb_main.c fbdev->ctrl->update_window(fbdev->fb_info[0], &win, NULL, NULL); win 60 drivers/video/fbdev/s3c-fb.c #define OSD_BASE(win, variant) ((variant).osd + ((win) * (variant).osd_stride)) win 61 drivers/video/fbdev/s3c-fb.c #define VIDOSD_A(win, variant) (OSD_BASE(win, variant) + 0x00) win 62 drivers/video/fbdev/s3c-fb.c #define VIDOSD_B(win, variant) (OSD_BASE(win, variant) + 0x04) win 63 drivers/video/fbdev/s3c-fb.c #define VIDOSD_C(win, variant) (OSD_BASE(win, variant) + 0x08) win 64 drivers/video/fbdev/s3c-fb.c #define VIDOSD_D(win, variant) (OSD_BASE(win, variant) + 0x0C) win 136 drivers/video/fbdev/s3c-fb.c struct s3c_fb_win_variant *win[S3C_FB_MAX_WIN]; win 226 drivers/video/fbdev/s3c-fb.c static bool s3c_fb_validate_win_bpp(struct s3c_fb_win *win, unsigned int bpp) win 228 drivers/video/fbdev/s3c-fb.c return win->variant.valid_bpp & VALID_BPP(bpp); win 242 drivers/video/fbdev/s3c-fb.c struct s3c_fb_win *win = info->par; win 243 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = win->parent; win 250 drivers/video/fbdev/s3c-fb.c if (!s3c_fb_validate_win_bpp(win, var->bits_per_pixel)) { win 252 drivers/video/fbdev/s3c-fb.c win->index, var->bits_per_pixel); win 265 drivers/video/fbdev/s3c-fb.c if (sfb->variant.palette[win->index] != 0) { win 392 drivers/video/fbdev/s3c-fb.c static void vidosd_set_size(struct s3c_fb_win *win, u32 size) win 394 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = win->parent; win 397 drivers/video/fbdev/s3c-fb.c if (win->variant.osd_size_off) win 398 drivers/video/fbdev/s3c-fb.c writel(size, sfb->regs + OSD_BASE(win->index, sfb->variant) win 399 drivers/video/fbdev/s3c-fb.c + win->variant.osd_size_off); win 408 drivers/video/fbdev/s3c-fb.c static void vidosd_set_alpha(struct s3c_fb_win *win, u32 alpha) win 410 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = win->parent; win 412 drivers/video/fbdev/s3c-fb.c if (win->variant.has_osd_alpha) win 413 drivers/video/fbdev/s3c-fb.c writel(alpha, sfb->regs + VIDOSD_C(win->index, sfb->variant)); win 422 drivers/video/fbdev/s3c-fb.c static void shadow_protect_win(struct s3c_fb_win *win, bool protect) win 424 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = win->parent; win 432 drivers/video/fbdev/s3c-fb.c writel(reg | SHADOWCON_WINx_PROTECT(win->index), win 440 drivers/video/fbdev/s3c-fb.c writel(reg & ~SHADOWCON_WINx_PROTECT(win->index), win 488 drivers/video/fbdev/s3c-fb.c struct s3c_fb_win *win = info->par; win 489 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = win->parent; win 492 drivers/video/fbdev/s3c-fb.c int win_no = win->index; win 501 drivers/video/fbdev/s3c-fb.c shadow_protect_win(win, 1); win 511 drivers/video/fbdev/s3c-fb.c if (win->variant.palette_sz >= 256) win 573 drivers/video/fbdev/s3c-fb.c vidosd_set_alpha(win, alpha); win 574 drivers/video/fbdev/s3c-fb.c vidosd_set_size(win, data); win 584 drivers/video/fbdev/s3c-fb.c sfb->enabled |= (1 << win->index); win 675 drivers/video/fbdev/s3c-fb.c shadow_protect_win(win, 0); win 697 drivers/video/fbdev/s3c-fb.c struct s3c_fb_win *win, win 704 drivers/video/fbdev/s3c-fb.c palreg = sfb->regs + sfb->variant.palette[win->index]; win 707 drivers/video/fbdev/s3c-fb.c __func__, win->index, reg, palreg, value); win 709 drivers/video/fbdev/s3c-fb.c win->palette_buffer[reg] = value; win 714 drivers/video/fbdev/s3c-fb.c if (win->variant.palette_16bpp) win 743 drivers/video/fbdev/s3c-fb.c struct s3c_fb_win *win = info->par; win 744 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = win->parent; win 748 drivers/video/fbdev/s3c-fb.c __func__, win->index, regno, red, green, blue); win 768 drivers/video/fbdev/s3c-fb.c if (regno < win->variant.palette_sz) { win 769 drivers/video/fbdev/s3c-fb.c val = chan_to_field(red, &win->palette.r); win 770 drivers/video/fbdev/s3c-fb.c val |= chan_to_field(green, &win->palette.g); win 771 drivers/video/fbdev/s3c-fb.c val |= chan_to_field(blue, &win->palette.b); win 773 drivers/video/fbdev/s3c-fb.c s3c_fb_update_palette(sfb, win, regno, val); win 796 drivers/video/fbdev/s3c-fb.c struct s3c_fb_win *win = info->par; win 797 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = win->parent; win 798 drivers/video/fbdev/s3c-fb.c unsigned int index = win->index; win 816 drivers/video/fbdev/s3c-fb.c shadow_protect_win(win, 1); win 819 drivers/video/fbdev/s3c-fb.c shadow_protect_win(win, 0); win 823 drivers/video/fbdev/s3c-fb.c shadow_protect_win(win, 1); win 825 drivers/video/fbdev/s3c-fb.c shadow_protect_win(win, 0); win 837 drivers/video/fbdev/s3c-fb.c shadow_protect_win(win, 1); win 846 drivers/video/fbdev/s3c-fb.c shadow_protect_win(win, 0); win 867 drivers/video/fbdev/s3c-fb.c struct s3c_fb_win *win = info->par; win 868 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = win->parent; win 869 drivers/video/fbdev/s3c-fb.c void __iomem *buf = sfb->regs + win->index * 8; win 901 drivers/video/fbdev/s3c-fb.c shadow_protect_win(win, 1); win 906 drivers/video/fbdev/s3c-fb.c shadow_protect_win(win, 0); win 1017 drivers/video/fbdev/s3c-fb.c struct s3c_fb_win *win = info->par; win 1018 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = win->parent; win 1080 drivers/video/fbdev/s3c-fb.c static int s3c_fb_alloc_memory(struct s3c_fb *sfb, struct s3c_fb_win *win) win 1082 drivers/video/fbdev/s3c-fb.c struct s3c_fb_pd_win *windata = win->windata; win 1084 drivers/video/fbdev/s3c-fb.c struct fb_info *fbi = win->fbinfo; win 1125 drivers/video/fbdev/s3c-fb.c static void s3c_fb_free_memory(struct s3c_fb *sfb, struct s3c_fb_win *win) win 1127 drivers/video/fbdev/s3c-fb.c struct fb_info *fbi = win->fbinfo; win 1141 drivers/video/fbdev/s3c-fb.c static void s3c_fb_release_win(struct s3c_fb *sfb, struct s3c_fb_win *win) win 1145 drivers/video/fbdev/s3c-fb.c if (win->fbinfo) { win 1148 drivers/video/fbdev/s3c-fb.c data &= ~SHADOWCON_CHx_ENABLE(win->index); win 1149 drivers/video/fbdev/s3c-fb.c data &= ~SHADOWCON_CHx_LOCAL_ENABLE(win->index); win 1152 drivers/video/fbdev/s3c-fb.c unregister_framebuffer(win->fbinfo); win 1153 drivers/video/fbdev/s3c-fb.c if (win->fbinfo->cmap.len) win 1154 drivers/video/fbdev/s3c-fb.c fb_dealloc_cmap(&win->fbinfo->cmap); win 1155 drivers/video/fbdev/s3c-fb.c s3c_fb_free_memory(sfb, win); win 1156 drivers/video/fbdev/s3c-fb.c framebuffer_release(win->fbinfo); win 1176 drivers/video/fbdev/s3c-fb.c struct s3c_fb_win *win; win 1192 drivers/video/fbdev/s3c-fb.c windata = sfb->pdata->win[win_no]; win 1199 drivers/video/fbdev/s3c-fb.c win = fbinfo->par; win 1200 drivers/video/fbdev/s3c-fb.c *res = win; win 1202 drivers/video/fbdev/s3c-fb.c win->variant = *variant; win 1203 drivers/video/fbdev/s3c-fb.c win->fbinfo = fbinfo; win 1204 drivers/video/fbdev/s3c-fb.c win->parent = sfb; win 1205 drivers/video/fbdev/s3c-fb.c win->windata = windata; win 1206 drivers/video/fbdev/s3c-fb.c win->index = win_no; win 1207 drivers/video/fbdev/s3c-fb.c win->palette_buffer = (u32 *)(win + 1); win 1209 drivers/video/fbdev/s3c-fb.c ret = s3c_fb_alloc_memory(sfb, win); win 1216 drivers/video/fbdev/s3c-fb.c if (win->variant.palette_16bpp) { win 1218 drivers/video/fbdev/s3c-fb.c win->palette.r.offset = 11; win 1219 drivers/video/fbdev/s3c-fb.c win->palette.r.length = 5; win 1220 drivers/video/fbdev/s3c-fb.c win->palette.g.offset = 5; win 1221 drivers/video/fbdev/s3c-fb.c win->palette.g.length = 6; win 1222 drivers/video/fbdev/s3c-fb.c win->palette.b.offset = 0; win 1223 drivers/video/fbdev/s3c-fb.c win->palette.b.length = 5; win 1227 drivers/video/fbdev/s3c-fb.c win->palette.r.offset = 16; win 1228 drivers/video/fbdev/s3c-fb.c win->palette.r.length = 8; win 1229 drivers/video/fbdev/s3c-fb.c win->palette.g.offset = 8; win 1230 drivers/video/fbdev/s3c-fb.c win->palette.g.length = 8; win 1231 drivers/video/fbdev/s3c-fb.c win->palette.b.offset = 0; win 1232 drivers/video/fbdev/s3c-fb.c win->palette.b.length = 8; win 1247 drivers/video/fbdev/s3c-fb.c fbinfo->pseudo_palette = &win->pseudo_palette; win 1259 drivers/video/fbdev/s3c-fb.c ret = fb_alloc_cmap(&fbinfo->cmap, win->variant.palette_sz, 1); win 1336 drivers/video/fbdev/s3c-fb.c static void s3c_fb_clear_win(struct s3c_fb *sfb, int win) win 1341 drivers/video/fbdev/s3c-fb.c writel(0, regs + sfb->variant.wincon + (win * 4)); win 1342 drivers/video/fbdev/s3c-fb.c writel(0, regs + VIDOSD_A(win, sfb->variant)); win 1343 drivers/video/fbdev/s3c-fb.c writel(0, regs + VIDOSD_B(win, sfb->variant)); win 1344 drivers/video/fbdev/s3c-fb.c writel(0, regs + VIDOSD_C(win, sfb->variant)); win 1348 drivers/video/fbdev/s3c-fb.c reg &= ~(SHADOWCON_WINx_PROTECT(win) | win 1349 drivers/video/fbdev/s3c-fb.c SHADOWCON_CHx_ENABLE(win) | win 1350 drivers/video/fbdev/s3c-fb.c SHADOWCON_CHx_LOCAL_ENABLE(win)); win 1363 drivers/video/fbdev/s3c-fb.c int win; win 1456 drivers/video/fbdev/s3c-fb.c for (win = 0; win < fbdrv->variant.nr_windows; win++) win 1457 drivers/video/fbdev/s3c-fb.c s3c_fb_clear_win(sfb, win); win 1460 drivers/video/fbdev/s3c-fb.c for (win = 0; win < (fbdrv->variant.nr_windows - 1); win++) { win 1463 drivers/video/fbdev/s3c-fb.c regs += (win * 8); win 1472 drivers/video/fbdev/s3c-fb.c for (win = 0; win < fbdrv->variant.nr_windows; win++) { win 1473 drivers/video/fbdev/s3c-fb.c if (!pd->win[win]) win 1476 drivers/video/fbdev/s3c-fb.c ret = s3c_fb_probe_win(sfb, win, fbdrv->win[win], win 1477 drivers/video/fbdev/s3c-fb.c &sfb->windows[win]); win 1479 drivers/video/fbdev/s3c-fb.c dev_err(dev, "failed to create window %d\n", win); win 1480 drivers/video/fbdev/s3c-fb.c for (; win >= 0; win--) win 1481 drivers/video/fbdev/s3c-fb.c s3c_fb_release_win(sfb, sfb->windows[win]); win 1516 drivers/video/fbdev/s3c-fb.c int win; win 1520 drivers/video/fbdev/s3c-fb.c for (win = 0; win < S3C_FB_MAX_WIN; win++) win 1521 drivers/video/fbdev/s3c-fb.c if (sfb->windows[win]) win 1522 drivers/video/fbdev/s3c-fb.c s3c_fb_release_win(sfb, sfb->windows[win]); win 1539 drivers/video/fbdev/s3c-fb.c struct s3c_fb_win *win; win 1545 drivers/video/fbdev/s3c-fb.c win = sfb->windows[win_no]; win 1546 drivers/video/fbdev/s3c-fb.c if (!win) win 1550 drivers/video/fbdev/s3c-fb.c s3c_fb_blank(FB_BLANK_POWERDOWN, win->fbinfo); win 1567 drivers/video/fbdev/s3c-fb.c struct s3c_fb_win *win; win 1596 drivers/video/fbdev/s3c-fb.c win = sfb->windows[win_no]; win 1597 drivers/video/fbdev/s3c-fb.c if (!win) win 1600 drivers/video/fbdev/s3c-fb.c shadow_protect_win(win, 1); win 1604 drivers/video/fbdev/s3c-fb.c shadow_protect_win(win, 0); win 1611 drivers/video/fbdev/s3c-fb.c win = sfb->windows[win_no]; win 1612 drivers/video/fbdev/s3c-fb.c if (!win) win 1616 drivers/video/fbdev/s3c-fb.c s3c_fb_set_par(win->fbinfo); win 1736 drivers/video/fbdev/s3c-fb.c .win[0] = &s3c_fb_data_64xx_wins[0], win 1737 drivers/video/fbdev/s3c-fb.c .win[1] = &s3c_fb_data_64xx_wins[1], win 1738 drivers/video/fbdev/s3c-fb.c .win[2] = &s3c_fb_data_64xx_wins[2], win 1739 drivers/video/fbdev/s3c-fb.c .win[3] = &s3c_fb_data_64xx_wins[3], win 1740 drivers/video/fbdev/s3c-fb.c .win[4] = &s3c_fb_data_64xx_wins[4], win 1765 drivers/video/fbdev/s3c-fb.c .win[0] = &(struct s3c_fb_win_variant) { win 1769 drivers/video/fbdev/s3c-fb.c .win[1] = &(struct s3c_fb_win_variant) { win 3666 fs/ext4/mballoc.c int win; win 3684 fs/ext4/mballoc.c win = min(winl, wins); win 3688 fs/ext4/mballoc.c if (offs && offs < win) win 3689 fs/ext4/mballoc.c win = offs; win 3692 fs/ext4/mballoc.c EXT4_NUM_B2C(sbi, win); win 430 include/linux/acpi.h struct resource_win *win); win 432 include/linux/acpi.h struct resource_win *win); win 34 include/linux/pci-ecam.h void __iomem *win; /* 64-bit single mapping */ win 48 include/linux/platform_data/video_s3c.h struct s3c_fb_pd_win *win[S3C_FB_MAX_WIN]; win 116 include/linux/psi_types.h struct psi_window win; win 299 include/linux/swap.h unsigned short win; win 35 include/linux/win_minmax.h u32 minmax_running_max(struct minmax *m, u32 win, u32 t, u32 meas); win 36 include/linux/win_minmax.h u32 minmax_running_min(struct minmax *m, u32 win, u32 t, u32 meas); win 253 include/media/davinci/dm355_ccdc.h struct v4l2_rect win; win 283 include/media/davinci/dm355_ccdc.h struct v4l2_rect win; win 132 include/media/davinci/dm644x_ccdc.h struct v4l2_rect win; win 156 include/media/davinci/dm644x_ccdc.h struct v4l2_rect win; win 447 include/media/davinci/isif.h struct v4l2_rect win; win 484 include/media/davinci/isif.h struct v4l2_rect win; win 371 include/media/davinci/vpbe_osd.h struct osd_window_state win[4]; win 81 include/media/drv-intf/saa7146_vv.h struct v4l2_window win; win 727 include/net/tcp.h s32 win = tp->rcv_wup + tp->rcv_wnd - tp->rcv_nxt; win 729 include/net/tcp.h if (win < 0) win 730 include/net/tcp.h win = 0; win 731 include/net/tcp.h return (u32) win; win 426 include/pcmcia/cistpl.h } win[CISTPL_IO_MAX_WIN]; win 443 include/pcmcia/cistpl.h } win[CISTPL_MEM_MAX_WIN]; win 140 include/pcmcia/ss.h pccard_mem_map win[MAX_WIN]; win 2235 include/uapi/linux/videodev2.h struct v4l2_window win; /* V4L2_BUF_TYPE_VIDEO_OVERLAY */ win 139 include/video/mmp_disp.h void (*set_win)(struct mmp_overlay *overlay, struct mmp_win *win); win 152 include/video/mmp_disp.h struct mmp_win win; win 276 include/video/mmp_disp.h struct mmp_win *win) win 279 include/video/mmp_disp.h overlay->ops->set_win(overlay, win); win 446 kernel/sched/psi.c static void window_reset(struct psi_window *win, u64 now, u64 value, win 449 kernel/sched/psi.c win->start_time = now; win 450 kernel/sched/psi.c win->start_value = value; win 451 kernel/sched/psi.c win->prev_growth = prev_growth; win 465 kernel/sched/psi.c static u64 window_update(struct psi_window *win, u64 now, u64 value) win 470 kernel/sched/psi.c elapsed = now - win->start_time; win 471 kernel/sched/psi.c growth = value - win->start_value; win 479 kernel/sched/psi.c if (elapsed > win->size) win 480 kernel/sched/psi.c window_reset(win, now, value, growth); win 484 kernel/sched/psi.c remaining = win->size - elapsed; win 485 kernel/sched/psi.c growth += div64_u64(win->prev_growth * remaining, win->size); win 496 kernel/sched/psi.c window_reset(&t->win, now, win 529 kernel/sched/psi.c growth = window_update(&t->win, now, total[t->state]); win 534 kernel/sched/psi.c if (now < t->last_event_time + t->win.size) win 1043 kernel/sched/psi.c t->win.size = window_us * NSEC_PER_USEC; win 1044 kernel/sched/psi.c window_reset(&t->win, 0, 0, 0); win 1073 kernel/sched/psi.c div_u64(t->win.size, UPDATES_PER_WINDOW)); win 1109 kernel/sched/psi.c period = min(period, div_u64(tmp->win.size, win 29 lib/win_minmax.c static u32 minmax_subwin_update(struct minmax *m, u32 win, win 34 lib/win_minmax.c if (unlikely(dt > win)) { win 45 lib/win_minmax.c if (unlikely(val->t - m->s[0].t > win)) { win 50 lib/win_minmax.c } else if (unlikely(m->s[1].t == m->s[0].t) && dt > win/4) { win 56 lib/win_minmax.c } else if (unlikely(m->s[2].t == m->s[1].t) && dt > win/2) { win 67 lib/win_minmax.c u32 minmax_running_max(struct minmax *m, u32 win, u32 t, u32 meas) win 72 lib/win_minmax.c unlikely(val.t - m->s[2].t > win)) /* nothing left in window? */ win 80 lib/win_minmax.c return minmax_subwin_update(m, win, &val); win 85 lib/win_minmax.c u32 minmax_running_min(struct minmax *m, u32 win, u32 t, u32 meas) win 90 lib/win_minmax.c unlikely(val.t - m->s[2].t > win)) /* nothing left in window? */ win 98 lib/win_minmax.c return minmax_subwin_update(m, win, &val); win 52 mm/swap_state.c #define SWAP_RA_VAL(addr, win, hits) \ win 54 mm/swap_state.c (((win) << SWAP_RA_WIN_SHIFT) & SWAP_RA_WIN_MASK) | \ win 338 mm/swap_state.c int win, hits; win 341 mm/swap_state.c win = SWAP_RA_WIN(ra_val); win 346 mm/swap_state.c SWAP_RA_VAL(addr, win, hits)); win 649 mm/swap_state.c unsigned int max_win, hits, prev_win, win, left; win 657 mm/swap_state.c ra_info->win = 1; win 674 mm/swap_state.c ra_info->win = win = __swapin_nr_pages(pfn, fpfn, hits, win 677 mm/swap_state.c SWAP_RA_VAL(faddr, win, 0)); win 679 mm/swap_state.c if (win == 1) { win 686 mm/swap_state.c swap_ra_clamp_pfn(vma, faddr, fpfn, fpfn + win, &start, &end); win 688 mm/swap_state.c swap_ra_clamp_pfn(vma, faddr, fpfn - win + 1, fpfn + 1, win 691 mm/swap_state.c left = (win - 1) / 2; win 692 mm/swap_state.c swap_ra_clamp_pfn(vma, faddr, fpfn - left, fpfn + win - left, win 735 mm/swap_state.c if (ra_info.win == 1) win 766 mm/swap_state.c ra_info.win == 1); win 1350 net/decnet/af_decnet.c unsigned long win; win 1447 net/decnet/af_decnet.c if (u.win > NSP_MAX_WINDOW) win 1448 net/decnet/af_decnet.c u.win = NSP_MAX_WINDOW; win 1449 net/decnet/af_decnet.c if (u.win == 0) win 1451 net/decnet/af_decnet.c scp->max_window = u.win; win 1452 net/decnet/af_decnet.c if (scp->snd_window > u.win) win 1453 net/decnet/af_decnet.c scp->snd_window = u.win; win 804 net/ipv4/tcp_ipv4.c u32 win, u32 tsval, u32 tsecr, int oif, win 843 net/ipv4/tcp_ipv4.c rep.th.window = htons(win); win 806 net/ipv6/tcp_ipv6.c u32 ack, u32 win, u32 tsval, u32 tsecr, win 847 net/ipv6/tcp_ipv6.c t1->window = htons(win); win 1018 net/ipv6/tcp_ipv6.c u32 ack, u32 win, u32 tsval, u32 tsecr, int oif, win 1022 net/ipv6/tcp_ipv6.c tcp_v6_send_response(sk, skb, seq, ack, win, tsval, tsecr, oif, key, 0, win 474 net/netfilter/nf_conntrack_proto_tcp.c __u32 seq, ack, sack, end, win, swin; win 485 net/netfilter/nf_conntrack_proto_tcp.c win = win_raw; win 500 net/netfilter/nf_conntrack_proto_tcp.c seq, ack, receiver_offset, sack, receiver_offset, win, end); win 519 net/netfilter/nf_conntrack_proto_tcp.c sender->td_maxwin = (win == 0 ? 1 : win); win 541 net/netfilter/nf_conntrack_proto_tcp.c swin = win << sender->td_scale; win 564 net/netfilter/nf_conntrack_proto_tcp.c sender->td_maxwin = (win == 0 ? 1 : win); win 593 net/netfilter/nf_conntrack_proto_tcp.c seq, ack, receiver_offset, sack, receiver_offset, win, end); win 619 net/netfilter/nf_conntrack_proto_tcp.c win <<= sender->td_scale; win 624 net/netfilter/nf_conntrack_proto_tcp.c swin = win + (sack - ack); win 644 net/netfilter/nf_conntrack_proto_tcp.c if (after(sack + win, receiver->td_maxend - 1)) { win 645 net/netfilter/nf_conntrack_proto_tcp.c receiver->td_maxend = sack + win; win 646 net/netfilter/nf_conntrack_proto_tcp.c if (win == 0) win 2086 net/sunrpc/auth_gss/auth_gss.c u32 win, seq_xmit = 0; win 2106 net/sunrpc/auth_gss/auth_gss.c win = ctx->gc_win; win 2107 net/sunrpc/auth_gss/auth_gss.c if (win > 0) win 2108 net/sunrpc/auth_gss/auth_gss.c ret = !gss_seq_is_newer(req->rq_seqno, seq_xmit - win); win 641 net/tipc/bcast.c u32 win; win 670 net/tipc/bcast.c win = nla_get_u32(props[TIPC_NLA_PROP_WIN]); win 671 net/tipc/bcast.c err = tipc_bc_link_set_queue_limits(net, win); win 2297 net/tipc/link.c void tipc_link_set_queue_limits(struct tipc_link *l, u32 win) win 2301 net/tipc/link.c l->window = win; win 2302 net/tipc/link.c l->backlog[TIPC_LOW_IMPORTANCE].limit = max_t(u16, 50, win); win 2303 net/tipc/link.c l->backlog[TIPC_MEDIUM_IMPORTANCE].limit = max_t(u16, 100, win * 2); win 2304 net/tipc/link.c l->backlog[TIPC_HIGH_IMPORTANCE].limit = max_t(u16, 150, win * 3); win 2305 net/tipc/link.c l->backlog[TIPC_CRITICAL_IMPORTANCE].limit = max_t(u16, 200, win * 4); win 2358 net/tipc/link.c u32 win; win 2360 net/tipc/link.c win = nla_get_u32(props[TIPC_NLA_PROP_WIN]); win 2361 net/tipc/link.c if ((win < TIPC_MIN_LINK_WIN) || (win > TIPC_MAX_LINK_WIN)) win 2144 net/tipc/node.c u32 win; win 2146 net/tipc/node.c win = nla_get_u32(props[TIPC_NLA_PROP_WIN]); win 2147 net/tipc/node.c tipc_link_set_queue_limits(link, win); win 18 scripts/kconfig/lxdialog/checklist.c static void print_item(WINDOW * win, int choice, int selected) win 27 scripts/kconfig/lxdialog/checklist.c wattrset(win, dlg.menubox.atr); win 28 scripts/kconfig/lxdialog/checklist.c wmove(win, choice, 0); win 30 scripts/kconfig/lxdialog/checklist.c waddch(win, ' '); win 32 scripts/kconfig/lxdialog/checklist.c wmove(win, choice, check_x); win 33 scripts/kconfig/lxdialog/checklist.c wattrset(win, selected ? dlg.check_selected.atr win 36 scripts/kconfig/lxdialog/checklist.c wprintw(win, "(%c)", item_is_tag('X') ? 'X' : ' '); win 38 scripts/kconfig/lxdialog/checklist.c wattrset(win, selected ? dlg.tag_selected.atr : dlg.tag.atr); win 39 scripts/kconfig/lxdialog/checklist.c mvwaddch(win, choice, item_x, list_item[0]); win 40 scripts/kconfig/lxdialog/checklist.c wattrset(win, selected ? dlg.item_selected.atr : dlg.item.atr); win 41 scripts/kconfig/lxdialog/checklist.c waddstr(win, list_item + 1); win 43 scripts/kconfig/lxdialog/checklist.c wmove(win, choice, check_x + 1); win 44 scripts/kconfig/lxdialog/checklist.c wrefresh(win); win 52 scripts/kconfig/lxdialog/checklist.c static void print_arrows(WINDOW * win, int choice, int item_no, int scroll, win 55 scripts/kconfig/lxdialog/checklist.c wmove(win, y, x); win 58 scripts/kconfig/lxdialog/checklist.c wattrset(win, dlg.uarrow.atr); win 59 scripts/kconfig/lxdialog/checklist.c waddch(win, ACS_UARROW); win 60 scripts/kconfig/lxdialog/checklist.c waddstr(win, "(-)"); win 62 scripts/kconfig/lxdialog/checklist.c wattrset(win, dlg.menubox.atr); win 63 scripts/kconfig/lxdialog/checklist.c waddch(win, ACS_HLINE); win 64 scripts/kconfig/lxdialog/checklist.c waddch(win, ACS_HLINE); win 65 scripts/kconfig/lxdialog/checklist.c waddch(win, ACS_HLINE); win 66 scripts/kconfig/lxdialog/checklist.c waddch(win, ACS_HLINE); win 70 scripts/kconfig/lxdialog/checklist.c wmove(win, y, x); win 73 scripts/kconfig/lxdialog/checklist.c wattrset(win, dlg.darrow.atr); win 74 scripts/kconfig/lxdialog/checklist.c waddch(win, ACS_DARROW); win 75 scripts/kconfig/lxdialog/checklist.c waddstr(win, "(+)"); win 77 scripts/kconfig/lxdialog/checklist.c wattrset(win, dlg.menubox_border.atr); win 78 scripts/kconfig/lxdialog/checklist.c waddch(win, ACS_HLINE); win 79 scripts/kconfig/lxdialog/checklist.c waddch(win, ACS_HLINE); win 80 scripts/kconfig/lxdialog/checklist.c waddch(win, ACS_HLINE); win 81 scripts/kconfig/lxdialog/checklist.c waddch(win, ACS_HLINE); win 181 scripts/kconfig/lxdialog/dialog.h int on_key_esc(WINDOW *win); win 202 scripts/kconfig/lxdialog/dialog.h void attr_clear(WINDOW * win, int height, int width, chtype attr); win 204 scripts/kconfig/lxdialog/dialog.h void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x); win 205 scripts/kconfig/lxdialog/dialog.h void print_button(WINDOW * win, const char *label, int y, int x, int selected); win 207 scripts/kconfig/lxdialog/dialog.h void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box, win 209 scripts/kconfig/lxdialog/dialog.h void draw_shadow(WINDOW * win, int y, int x, int height, int width); win 53 scripts/kconfig/lxdialog/menubox.c static void do_print_item(WINDOW * win, const char *item, int line_y, win 64 scripts/kconfig/lxdialog/menubox.c wattrset(win, dlg.menubox.atr); win 65 scripts/kconfig/lxdialog/menubox.c wmove(win, line_y, 0); win 70 scripts/kconfig/lxdialog/menubox.c waddch(win, ' '); win 73 scripts/kconfig/lxdialog/menubox.c wclrtoeol(win); win 75 scripts/kconfig/lxdialog/menubox.c wattrset(win, selected ? dlg.item_selected.atr : dlg.item.atr); win 76 scripts/kconfig/lxdialog/menubox.c mvwaddstr(win, line_y, item_x, menu_item); win 78 scripts/kconfig/lxdialog/menubox.c wattrset(win, selected ? dlg.tag_key_selected.atr win 80 scripts/kconfig/lxdialog/menubox.c mvwaddch(win, line_y, item_x + j, menu_item[j]); win 83 scripts/kconfig/lxdialog/menubox.c wmove(win, line_y, item_x + 1); win 86 scripts/kconfig/lxdialog/menubox.c wrefresh(win); win 98 scripts/kconfig/lxdialog/menubox.c static void print_arrows(WINDOW * win, int item_no, int scroll, int y, int x, win 103 scripts/kconfig/lxdialog/menubox.c getyx(win, cur_y, cur_x); win 105 scripts/kconfig/lxdialog/menubox.c wmove(win, y, x); win 108 scripts/kconfig/lxdialog/menubox.c wattrset(win, dlg.uarrow.atr); win 109 scripts/kconfig/lxdialog/menubox.c waddch(win, ACS_UARROW); win 110 scripts/kconfig/lxdialog/menubox.c waddstr(win, "(-)"); win 112 scripts/kconfig/lxdialog/menubox.c wattrset(win, dlg.menubox.atr); win 113 scripts/kconfig/lxdialog/menubox.c waddch(win, ACS_HLINE); win 114 scripts/kconfig/lxdialog/menubox.c waddch(win, ACS_HLINE); win 115 scripts/kconfig/lxdialog/menubox.c waddch(win, ACS_HLINE); win 116 scripts/kconfig/lxdialog/menubox.c waddch(win, ACS_HLINE); win 120 scripts/kconfig/lxdialog/menubox.c wmove(win, y, x); win 121 scripts/kconfig/lxdialog/menubox.c wrefresh(win); win 124 scripts/kconfig/lxdialog/menubox.c wattrset(win, dlg.darrow.atr); win 125 scripts/kconfig/lxdialog/menubox.c waddch(win, ACS_DARROW); win 126 scripts/kconfig/lxdialog/menubox.c waddstr(win, "(+)"); win 128 scripts/kconfig/lxdialog/menubox.c wattrset(win, dlg.menubox_border.atr); win 129 scripts/kconfig/lxdialog/menubox.c waddch(win, ACS_HLINE); win 130 scripts/kconfig/lxdialog/menubox.c waddch(win, ACS_HLINE); win 131 scripts/kconfig/lxdialog/menubox.c waddch(win, ACS_HLINE); win 132 scripts/kconfig/lxdialog/menubox.c waddch(win, ACS_HLINE); win 135 scripts/kconfig/lxdialog/menubox.c wmove(win, cur_y, cur_x); win 136 scripts/kconfig/lxdialog/menubox.c wrefresh(win); win 142 scripts/kconfig/lxdialog/menubox.c static void print_buttons(WINDOW * win, int height, int width, int selected) win 147 scripts/kconfig/lxdialog/menubox.c print_button(win, "Select", y, x, selected == 0); win 148 scripts/kconfig/lxdialog/menubox.c print_button(win, " Exit ", y, x + 12, selected == 1); win 149 scripts/kconfig/lxdialog/menubox.c print_button(win, " Help ", y, x + 24, selected == 2); win 150 scripts/kconfig/lxdialog/menubox.c print_button(win, " Save ", y, x + 36, selected == 3); win 151 scripts/kconfig/lxdialog/menubox.c print_button(win, " Load ", y, x + 48, selected == 4); win 153 scripts/kconfig/lxdialog/menubox.c wmove(win, y, x + 1 + 12 * selected); win 154 scripts/kconfig/lxdialog/menubox.c wrefresh(win); win 158 scripts/kconfig/lxdialog/menubox.c static void do_scroll(WINDOW *win, int *scroll, int n) win 161 scripts/kconfig/lxdialog/menubox.c scrollok(win, TRUE); win 162 scripts/kconfig/lxdialog/menubox.c wscrl(win, n); win 163 scripts/kconfig/lxdialog/menubox.c scrollok(win, FALSE); win 165 scripts/kconfig/lxdialog/menubox.c wrefresh(win); win 12 scripts/kconfig/lxdialog/textbox.c static void print_page(WINDOW *win, int height, int width, update_text_fn win 14 scripts/kconfig/lxdialog/textbox.c static void print_line(WINDOW *win, int row, int width); win 16 scripts/kconfig/lxdialog/textbox.c static void print_position(WINDOW * win); win 299 scripts/kconfig/lxdialog/textbox.c static void print_page(WINDOW *win, int height, int width, update_text_fn win 316 scripts/kconfig/lxdialog/textbox.c print_line(win, i, width); win 322 scripts/kconfig/lxdialog/textbox.c wnoutrefresh(win); win 328 scripts/kconfig/lxdialog/textbox.c static void print_line(WINDOW * win, int row, int width) win 334 scripts/kconfig/lxdialog/textbox.c wmove(win, row, 0); /* move cursor to correct line */ win 335 scripts/kconfig/lxdialog/textbox.c waddch(win, ' '); win 336 scripts/kconfig/lxdialog/textbox.c waddnstr(win, line, MIN(strlen(line), width - 2)); win 341 scripts/kconfig/lxdialog/textbox.c int x = getcurx(win); win 344 scripts/kconfig/lxdialog/textbox.c waddch(win, ' '); win 347 scripts/kconfig/lxdialog/textbox.c wclrtoeol(win); win 386 scripts/kconfig/lxdialog/textbox.c static void print_position(WINDOW * win) win 390 scripts/kconfig/lxdialog/textbox.c wattrset(win, dlg.position_indicator.atr); win 391 scripts/kconfig/lxdialog/textbox.c wbkgdset(win, dlg.position_indicator.atr & A_COLOR); win 393 scripts/kconfig/lxdialog/textbox.c wmove(win, getmaxy(win) - 3, getmaxx(win) - 9); win 394 scripts/kconfig/lxdialog/textbox.c wprintw(win, "(%3d%%)", percent); win 229 scripts/kconfig/lxdialog/util.c void attr_clear(WINDOW * win, int height, int width, chtype attr) win 233 scripts/kconfig/lxdialog/util.c wattrset(win, attr); win 235 scripts/kconfig/lxdialog/util.c wmove(win, i, 0); win 237 scripts/kconfig/lxdialog/util.c waddch(win, ' '); win 239 scripts/kconfig/lxdialog/util.c touchwin(win); win 369 scripts/kconfig/lxdialog/util.c void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x) win 380 scripts/kconfig/lxdialog/util.c wmove(win, y, (width - prompt_len) / 2); win 381 scripts/kconfig/lxdialog/util.c waddstr(win, tempstr); win 408 scripts/kconfig/lxdialog/util.c wmove(win, cur_y, cur_x); win 409 scripts/kconfig/lxdialog/util.c waddstr(win, word); win 410 scripts/kconfig/lxdialog/util.c getyx(win, cur_y, cur_x); win 434 scripts/kconfig/lxdialog/util.c void print_button(WINDOW * win, const char *label, int y, int x, int selected) win 438 scripts/kconfig/lxdialog/util.c wmove(win, y, x); win 439 scripts/kconfig/lxdialog/util.c wattrset(win, selected ? dlg.button_active.atr win 441 scripts/kconfig/lxdialog/util.c waddstr(win, "<"); win 444 scripts/kconfig/lxdialog/util.c wattrset(win, selected ? dlg.button_label_active.atr win 447 scripts/kconfig/lxdialog/util.c waddch(win, ' '); win 448 scripts/kconfig/lxdialog/util.c wattrset(win, selected ? dlg.button_key_active.atr win 450 scripts/kconfig/lxdialog/util.c waddch(win, label[0]); win 451 scripts/kconfig/lxdialog/util.c wattrset(win, selected ? dlg.button_label_active.atr win 453 scripts/kconfig/lxdialog/util.c waddstr(win, (char *)label + 1); win 454 scripts/kconfig/lxdialog/util.c wattrset(win, selected ? dlg.button_active.atr win 456 scripts/kconfig/lxdialog/util.c waddstr(win, ">"); win 457 scripts/kconfig/lxdialog/util.c wmove(win, y, x + temp + 1); win 464 scripts/kconfig/lxdialog/util.c draw_box(WINDOW * win, int y, int x, int height, int width, win 469 scripts/kconfig/lxdialog/util.c wattrset(win, 0); win 471 scripts/kconfig/lxdialog/util.c wmove(win, y + i, x); win 474 scripts/kconfig/lxdialog/util.c waddch(win, border | ACS_ULCORNER); win 476 scripts/kconfig/lxdialog/util.c waddch(win, border | ACS_LLCORNER); win 478 scripts/kconfig/lxdialog/util.c waddch(win, box | ACS_URCORNER); win 480 scripts/kconfig/lxdialog/util.c waddch(win, box | ACS_LRCORNER); win 482 scripts/kconfig/lxdialog/util.c waddch(win, border | ACS_HLINE); win 484 scripts/kconfig/lxdialog/util.c waddch(win, box | ACS_HLINE); win 486 scripts/kconfig/lxdialog/util.c waddch(win, border | ACS_VLINE); win 488 scripts/kconfig/lxdialog/util.c waddch(win, box | ACS_VLINE); win 490 scripts/kconfig/lxdialog/util.c waddch(win, box | ' '); win 498 scripts/kconfig/lxdialog/util.c void draw_shadow(WINDOW * win, int y, int x, int height, int width) win 503 scripts/kconfig/lxdialog/util.c wattrset(win, dlg.shadow.atr); win 504 scripts/kconfig/lxdialog/util.c wmove(win, y + height, x + 2); win 506 scripts/kconfig/lxdialog/util.c waddch(win, winch(win) & A_CHARTEXT); win 508 scripts/kconfig/lxdialog/util.c wmove(win, i, x + width); win 509 scripts/kconfig/lxdialog/util.c waddch(win, winch(win) & A_CHARTEXT); win 510 scripts/kconfig/lxdialog/util.c waddch(win, winch(win) & A_CHARTEXT); win 512 scripts/kconfig/lxdialog/util.c wnoutrefresh(win); win 547 scripts/kconfig/lxdialog/util.c int on_key_esc(WINDOW *win) win 553 scripts/kconfig/lxdialog/util.c nodelay(win, TRUE); win 554 scripts/kconfig/lxdialog/util.c keypad(win, FALSE); win 555 scripts/kconfig/lxdialog/util.c key = wgetch(win); win 556 scripts/kconfig/lxdialog/util.c key2 = wgetch(win); win 558 scripts/kconfig/lxdialog/util.c key3 = wgetch(win); win 560 scripts/kconfig/lxdialog/util.c nodelay(win, FALSE); win 561 scripts/kconfig/lxdialog/util.c keypad(win, TRUE); win 147 scripts/kconfig/nconf.gui.c void print_in_middle(WINDOW *win, win 157 scripts/kconfig/nconf.gui.c if (win == NULL) win 158 scripts/kconfig/nconf.gui.c win = stdscr; win 159 scripts/kconfig/nconf.gui.c getyx(win, y, x); win 170 scripts/kconfig/nconf.gui.c (void) wattrset(win, color); win 171 scripts/kconfig/nconf.gui.c mvwprintw(win, y, x, "%s", string); win 214 scripts/kconfig/nconf.gui.c void fill_window(WINDOW *win, const char *text) win 220 scripts/kconfig/nconf.gui.c getmaxyx(win, y, x); win 229 scripts/kconfig/nconf.gui.c mvwprintw(win, i, 0, "%s", tmp); win 250 scripts/kconfig/nconf.gui.c WINDOW *win; win 289 scripts/kconfig/nconf.gui.c win = newwin(win_rows, total_width+4, y, x); win 290 scripts/kconfig/nconf.gui.c keypad(win, TRUE); win 291 scripts/kconfig/nconf.gui.c menu_win = derwin(win, 1, btns_width, win_rows-2, win 294 scripts/kconfig/nconf.gui.c msg_win = derwin(win, win_rows-2, msg_width, 1, win 300 scripts/kconfig/nconf.gui.c (void) wattrset(win, attributes[DIALOG_BOX]); win 301 scripts/kconfig/nconf.gui.c box(win, 0, 0); win 307 scripts/kconfig/nconf.gui.c set_menu_win(menu, win); win 318 scripts/kconfig/nconf.gui.c touchwin(win); win 320 scripts/kconfig/nconf.gui.c while ((res = wgetch(win))) { win 335 scripts/kconfig/nconf.gui.c touchwin(win); win 353 scripts/kconfig/nconf.gui.c delwin(win); win 363 scripts/kconfig/nconf.gui.c WINDOW *win; win 403 scripts/kconfig/nconf.gui.c win = newwin(win_lines, win_cols, y, x); win 404 scripts/kconfig/nconf.gui.c prompt_win = derwin(win, prompt_lines+1, prompt_width, 2, 2); win 405 scripts/kconfig/nconf.gui.c form_win = derwin(win, 1, prompt_width, prompt_lines+3, 2); win 410 scripts/kconfig/nconf.gui.c (void) wattrset(win, attributes[INPUT_BOX]); win 411 scripts/kconfig/nconf.gui.c box(win, 0, 0); win 412 scripts/kconfig/nconf.gui.c (void) wattrset(win, attributes[INPUT_HEADING]); win 414 scripts/kconfig/nconf.gui.c mvwprintw(win, 0, 3, "%s", title); win 426 scripts/kconfig/nconf.gui.c panel = new_panel(win); win 431 scripts/kconfig/nconf.gui.c touchwin(win); win 516 scripts/kconfig/nconf.gui.c touchwin(win); win 537 scripts/kconfig/nconf.gui.c delwin(win); win 563 scripts/kconfig/nconf.gui.c WINDOW *win; win 591 scripts/kconfig/nconf.gui.c win = newwin(win_lines, win_cols, y, x); win 592 scripts/kconfig/nconf.gui.c keypad(win, TRUE); win 594 scripts/kconfig/nconf.gui.c (void) wattrset(win, attributes[SCROLLWIN_BOX]); win 595 scripts/kconfig/nconf.gui.c box(win, 0, 0); win 596 scripts/kconfig/nconf.gui.c (void) wattrset(win, attributes[SCROLLWIN_HEADING]); win 597 scripts/kconfig/nconf.gui.c mvwprintw(win, 0, 3, " %s ", title); win 598 scripts/kconfig/nconf.gui.c panel = new_panel(win); win 603 scripts/kconfig/nconf.gui.c copywin(pad, win, start_y, start_x, 2, 2, text_lines, win 605 scripts/kconfig/nconf.gui.c print_in_middle(win, win 611 scripts/kconfig/nconf.gui.c wrefresh(win); win 613 scripts/kconfig/nconf.gui.c res = wgetch(win); win 662 scripts/kconfig/nconf.gui.c delwin(win); win 75 scripts/kconfig/nconf.h void print_in_middle(WINDOW *win, win 84 scripts/kconfig/nconf.h void fill_window(WINDOW *win, const char *text); win 77 sound/soc/kirkwood/kirkwood-dma.c kirkwood_dma_conf_mbus_windows(void __iomem *base, int win, win 84 sound/soc/kirkwood/kirkwood-dma.c writel(0, base + KIRKWOOD_AUDIO_WIN_CTRL_REG(win)); win 85 sound/soc/kirkwood/kirkwood-dma.c writel(0, base + KIRKWOOD_AUDIO_WIN_BASE_REG(win)); win 92 sound/soc/kirkwood/kirkwood-dma.c base + KIRKWOOD_AUDIO_WIN_BASE_REG(win)); win 96 sound/soc/kirkwood/kirkwood-dma.c base + KIRKWOOD_AUDIO_WIN_CTRL_REG(win)); win 17 sound/soc/kirkwood/kirkwood.h #define KIRKWOOD_AUDIO_WIN_BASE_REG(win) (0xA00 + ((win)<<3)) win 18 sound/soc/kirkwood/kirkwood.h #define KIRKWOOD_AUDIO_WIN_CTRL_REG(win) (0xA04 + ((win)<<3)) win 108 tools/lib/subcmd/help.c struct winsize win; win 112 tools/lib/subcmd/help.c get_term_dimensions(&win); win 113 tools/lib/subcmd/help.c max_cols = win.ws_col - 1; /* don't print *on* the edge */ win 49 tools/thermal/tmon/tui.c static void draw_hbar(WINDOW *win, int y, int start, int len, win 70 tools/thermal/tmon/tui.c static void close_window(WINDOW *win) win 72 tools/thermal/tmon/tui.c if (win) { win 73 tools/thermal/tmon/tui.c delwin(win); win 74 tools/thermal/tmon/tui.c win = NULL; win 524 tools/thermal/tmon/tui.c static void draw_hbar(WINDOW *win, int y, int start, int len, unsigned long ptn, win 527 tools/thermal/tmon/tui.c mvwaddch(win, y, start, ptn); win 528 tools/thermal/tmon/tui.c whline(win, ptn, len); win 530 tools/thermal/tmon/tui.c mvwaddch(win, y, MAX_DISP_TEMP+TDATA_LEFT, ']');