mode 28 arch/alpha/include/asm/agp_backend.h alpha_agp_mode mode; mode 246 arch/alpha/include/asm/dma.h static __inline__ void set_dma_mode(unsigned int dmanr, char mode) mode 249 arch/alpha/include/asm/dma.h dma_outb(mode | dmanr, DMA1_MODE_REG); mode 251 arch/alpha/include/asm/dma.h dma_outb(mode | (dmanr&3), DMA2_MODE_REG); mode 22 arch/alpha/include/asm/floppy.h #define fd_set_dma_mode(mode) set_dma_mode(FLOPPY_DMA,mode) mode 35 arch/alpha/include/asm/floppy.h #define fd_dma_setup(addr,size,mode,io) alpha_fd_dma_setup(addr,size,mode,io) mode 38 arch/alpha/include/asm/floppy.h alpha_fd_dma_setup(char *addr, unsigned long size, int mode, int io) mode 46 arch/alpha/include/asm/floppy.h dir = (mode != DMA_MODE_READ) ? PCI_DMA_FROMDEVICE : PCI_DMA_TODEVICE; mode 64 arch/alpha/include/asm/floppy.h fd_set_dma_mode(mode); mode 63 arch/alpha/include/asm/sfp-machine.h #define FP_ROUNDMODE mode mode 810 arch/alpha/kernel/core_cia.c cia_kill_arch(int mode) mode 473 arch/alpha/kernel/core_marvel.c marvel_kill_arch(int mode) mode 978 arch/alpha/kernel/core_marvel.c if (agp->mode.bits.rate != 2) mode 987 arch/alpha/kernel/core_marvel.c if (agp->mode.bits.rate == 2) mode 1007 arch/alpha/kernel/core_marvel.c agp->mode.bits.rate, mode 1010 arch/alpha/kernel/core_marvel.c agp->mode.bits.rate = new_rate; mode 1014 arch/alpha/kernel/core_marvel.c agp->hose->index, agp->mode.bits.rate, mode 1015 arch/alpha/kernel/core_marvel.c agp->mode.bits.sba ? " - SBA" : "", agp->mode.bits.rq); mode 1017 arch/alpha/kernel/core_marvel.c csrs->AGP_CMD.csr = agp->mode.lw; mode 1144 arch/alpha/kernel/core_marvel.c agp->mode.lw = csrs->AGP_CMD.csr; mode 483 arch/alpha/kernel/core_t2.c t2_kill_arch(int mode) mode 437 arch/alpha/kernel/core_titan.c titan_kill_arch(int mode) mode 649 arch/alpha/kernel/core_titan.c pctl.pctl_r_bits.apctl_v_agp_sba_en = agp->mode.bits.sba; mode 653 arch/alpha/kernel/core_titan.c if (agp->mode.bits.rate & 2) mode 656 arch/alpha/kernel/core_titan.c if (agp->mode.bits.rate & 4) mode 667 arch/alpha/kernel/core_titan.c pctl.pctl_r_bits.apctl_v_agp_en = agp->mode.bits.enable; mode 796 arch/alpha/kernel/core_titan.c agp->mode.lw = 0; mode 797 arch/alpha/kernel/core_titan.c agp->mode.bits.rate = 1 << pctl.pctl_r_bits.apctl_v_agp_rate; mode 798 arch/alpha/kernel/core_titan.c agp->mode.bits.sba = pctl.pctl_r_bits.apctl_v_agp_sba_en; mode 799 arch/alpha/kernel/core_titan.c agp->mode.bits.rq = 7; /* RQ Depth? */ mode 800 arch/alpha/kernel/core_titan.c agp->mode.bits.enable = pctl.pctl_r_bits.apctl_v_agp_en; mode 445 arch/alpha/kernel/core_tsunami.c tsunami_kill_arch(int mode) mode 342 arch/alpha/kernel/core_wildfire.c wildfire_kill_arch(int mode) mode 282 arch/alpha/kernel/osf_sys.c tmp.st_mode = lstat->mode; mode 164 arch/alpha/kernel/pci-sysfs.c res_attr->attr.mode = S_IRUSR | S_IWUSR; mode 71 arch/alpha/kernel/process.c int mode; mode 106 arch/alpha/kernel/process.c if (how->mode == LINUX_REBOOT_CMD_RESTART) { mode 150 arch/alpha/kernel/process.c alpha_mv.kill_arch(how->mode); mode 152 arch/alpha/kernel/process.c if (! alpha_using_srm && how->mode != LINUX_REBOOT_CMD_RESTART) { mode 166 arch/alpha/kernel/process.c common_shutdown(int mode, char *restart_cmd) mode 169 arch/alpha/kernel/process.c args.mode = mode; mode 2342 arch/alpha/kernel/smc37c669.c int __init smcc669_open( struct FILE *fp, char *info, char *next, char *mode ) mode 2351 arch/alpha/kernel/smc37c669.c if ( fp->mode & ATTR$M_WRITE ) { mode 2372 arch/alpha/kernel/smc37c669.c if ( fp->mode & ATTR$M_WRITE ) { mode 204 arch/alpha/kernel/sys_alcor.c alcor_kill_arch(int mode) mode 206 arch/alpha/kernel/sys_alcor.c cia_kill_arch(mode); mode 209 arch/alpha/kernel/sys_alcor.c switch(mode) { mode 243 arch/alpha/kernel/sys_miata.c miata_kill_arch(int mode) mode 245 arch/alpha/kernel/sys_miata.c cia_kill_arch(mode); mode 248 arch/alpha/kernel/sys_miata.c switch(mode) { mode 83 arch/alpha/kernel/sys_nautilus.c nautilus_kill_arch(int mode) mode 89 arch/alpha/kernel/sys_nautilus.c switch (mode) { mode 89 arch/alpha/kernel/sys_ruffian.c ruffian_kill_arch (int mode) mode 91 arch/alpha/kernel/sys_ruffian.c cia_kill_arch(mode); mode 313 arch/alpha/kernel/sys_sio.c sio_kill_arch(int mode) mode 107 arch/alpha/math-emu/math.c unsigned long fa, fb, fc, func, mode, src; mode 118 arch/alpha/math-emu/math.c mode = (insn >> 11) & 0x3; mode 123 arch/alpha/math-emu/math.c if (mode == 3) { mode 125 arch/alpha/math-emu/math.c mode = (fpcr >> FPCR_DYN_SHIFT) & 3; mode 52 arch/arc/include/asm/entry-arcv2.h ; 1. SP auto-switched to kernel mode stack mode 53 arch/arc/include/asm/entry-arcv2.h ; 2. STATUS32.Z flag set if in U mode at time of interrupt (U:1,K:0) mode 77 arch/arc/include/asm/entry-arcv2.h ; 1. SP auto-switched to kernel mode stack mode 78 arch/arc/include/asm/entry-arcv2.h ; 2. STATUS32.Z flag set if in U mode at time of exception (U:1,K:0) mode 144 arch/arc/include/asm/entry-arcv2.h ; - U mode: retrieve it from AUX_USER_SP mode 145 arch/arc/include/asm/entry-arcv2.h ; - K mode: add the offset from current SP where H/w starts auto push mode 147 arch/arc/include/asm/entry-arcv2.h ; 1. Utilize the fact that Z bit is set if Intr taken in U mode mode 149 arch/arc/include/asm/entry-arcv2.h ; but on return, restored only if U mode mode 151 arch/arc/include/asm/entry-arcv2.h lr r10, [AUX_USER_SP] ; U mode SP mode 155 arch/arc/include/asm/entry-arcv2.h add.nz r10, r10, SZ_PT_REGS ; K mode SP mode 178 arch/arc/include/asm/entry-arcv2.h ; Restore SP (into AUX_USER_SP) only if returning to U mode mode 179 arch/arc/include/asm/entry-arcv2.h ; - for K mode, it will be implicitly restored as stack is unwound mode 222 arch/arc/include/asm/entry-arcv2.h ; INPUT: Z flag set if returning to K mode mode 507 arch/arc/kernel/perf_event.c arc_pmu->attr[j].attr.attr.mode = VERIFY_OCTAL_PERMISSIONS(0444); mode 1219 arch/arm/common/sa1111.c void sa1111_select_audio_mode(struct sa1111_dev *sadev, int mode) mode 1228 arch/arm/common/sa1111.c if (mode == SA1111_AUDIO_I2S) { mode 297 arch/arm/include/asm/assembler.h .macro smp_dmb mode mode 323 arch/arm/include/asm/assembler.h .macro setmode, mode, reg mode 326 arch/arm/include/asm/assembler.h .macro setmode, mode, reg mode 331 arch/arm/include/asm/assembler.h .macro setmode, mode, reg mode 126 arch/arm/include/asm/dma.h extern void set_dma_mode(unsigned int chan, unsigned int mode); mode 24 arch/arm/include/asm/firmware.h int (*prepare_idle)(unsigned long mode); mode 28 arch/arm/include/asm/firmware.h int (*do_idle)(unsigned long mode); mode 31 arch/arm/include/asm/floppy.h unsigned int mode, unsigned long addr) mode 33 arch/arm/include/asm/floppy.h set_dma_mode(DMA_FLOPPY, mode); mode 427 arch/arm/include/asm/hardware/sa1111.h void sa1111_select_audio_mode(struct sa1111_dev *sadev, int mode); mode 46 arch/arm/include/asm/kvm_host.h u32 *kvm_vcpu_reg(struct kvm_vcpu *vcpu, u8 reg_num, u32 mode); mode 60 arch/arm/include/asm/ptrace.h unsigned long mode = regs->ARM_cpsr & MODE_MASK; mode 68 arch/arm/include/asm/ptrace.h if (mode == USR_MODE) mode 70 arch/arm/include/asm/ptrace.h if (elf_hwcap & HWCAP_26BIT && mode == USR26_MODE) mode 38 arch/arm/include/asm/smp_scu.h static inline int scu_power_mode(void __iomem *scu_base, unsigned int mode) mode 43 arch/arm/include/asm/smp_scu.h unsigned int mode) mode 95 arch/arm/include/asm/v7m.h void armv7m_restart(enum reboot_mode mode, const char *cmd); mode 65 arch/arm/kernel/dma-isa.c unsigned int mode; mode 68 arch/arm/kernel/dma-isa.c mode = (chan & 3) | dma->dma_mode; mode 119 arch/arm/kernel/dma-isa.c outb(mode, isa_dma_port[chan][ISA_DMA_MODE]); mode 170 arch/arm/kernel/dma.c void set_dma_mode (unsigned int chan, unsigned int mode) mode 177 arch/arm/kernel/dma.c dma->dma_mode = mode; mode 24 arch/arm/kernel/isa.c .mode = 0444, mode 30 arch/arm/kernel/isa.c .mode = 0444, mode 36 arch/arm/kernel/isa.c .mode = 0444, mode 46 arch/arm/kernel/isa.c .mode = 0555, mode 54 arch/arm/kernel/isa.c .mode = 0555, mode 75 arch/arm/kernel/smp_scu.c unsigned int mode) mode 80 arch/arm/kernel/smp_scu.c if (mode > 3 || mode == 1 || cpu > 3) mode 85 arch/arm/kernel/smp_scu.c val |= mode; mode 99 arch/arm/kernel/smp_scu.c int scu_power_mode(void __iomem *scu_base, unsigned int mode) mode 101 arch/arm/kernel/smp_scu.c return scu_set_power_mode_internal(scu_base, smp_processor_id(), mode); mode 123 arch/arm/kernel/sys_oabi-compat.c tmp.st_mode = stat->mode; mode 209 arch/arm/kernel/traps.c unsigned int fp, mode; mode 219 arch/arm/kernel/traps.c mode = processor_mode(regs); mode 222 arch/arm/kernel/traps.c mode = 0x10; mode 225 arch/arm/kernel/traps.c mode = 0x10; mode 239 arch/arm/kernel/traps.c c_backtrace(fp, mode); mode 10 arch/arm/kernel/v7m.c void armv7m_restart(enum reboot_mode mode, const char *cmd) mode 104 arch/arm/kvm/emulate.c unsigned long mode = *vcpu_cpsr(vcpu) & MODE_MASK; mode 106 arch/arm/kvm/emulate.c switch (mode) { mode 108 arch/arm/kvm/emulate.c mode &= ~MODE32_BIT; /* 0 ... 3 */ mode 112 arch/arm/kvm/emulate.c mode = VCPU_REG_OFFSET_ABT; mode 116 arch/arm/kvm/emulate.c mode = VCPU_REG_OFFSET_UND; mode 120 arch/arm/kvm/emulate.c mode = VCPU_REG_OFFSET_USR; mode 127 arch/arm/kvm/emulate.c return reg_array + vcpu_reg_offsets[mode][reg_num]; mode 135 arch/arm/kvm/emulate.c unsigned long mode = *vcpu_cpsr(vcpu) & MODE_MASK; mode 136 arch/arm/kvm/emulate.c switch (mode) { mode 78 arch/arm/kvm/guest.c unsigned long mode = val & MODE_MASK; mode 79 arch/arm/kvm/guest.c switch (mode) { mode 40 arch/arm/mach-at91/pm.c int (*config_shdwc_ws)(void __iomem *shdwc, u32 *mode, u32 *polarity); mode 41 arch/arm/mach-at91/pm.c int (*config_pmc_ws)(void __iomem *pmc, u32 mode, u32 polarity); mode 133 arch/arm/mach-at91/pm.c unsigned int mode = 0, polarity = 0, val = 0; mode 142 arch/arm/mach-at91/pm.c writel(mode, soc_pm.data.pmc + AT91_PMC_FSMR); mode 147 arch/arm/mach-at91/pm.c soc_pm.config_shdwc_ws(soc_pm.data.shdwc, &mode, &polarity); mode 165 arch/arm/mach-at91/pm.c mode |= wsi->pmc_fsmr_bit; mode 174 arch/arm/mach-at91/pm.c if (mode) { mode 176 arch/arm/mach-at91/pm.c soc_pm.config_pmc_ws(soc_pm.data.pmc, mode, polarity); mode 181 arch/arm/mach-at91/pm.c return mode ? 0 : -EPERM; mode 184 arch/arm/mach-at91/pm.c static int at91_sama5d2_config_shdwc_ws(void __iomem *shdwc, u32 *mode, mode 191 arch/arm/mach-at91/pm.c *mode |= (val & 0x3ff); mode 197 arch/arm/mach-at91/pm.c static int at91_sama5d2_config_pmc_ws(void __iomem *pmc, u32 mode, u32 polarity) mode 199 arch/arm/mach-at91/pm.c writel(mode, pmc + AT91_PMC_FSMR); mode 205 arch/arm/mach-at91/pm.c static int at91_sam9x60_config_pmc_ws(void __iomem *pmc, u32 mode, u32 polarity) mode 207 arch/arm/mach-at91/pm.c writel(mode, pmc + AT91_PMC_FSMR); mode 219 arch/arm/mach-at91/pm.c soc_pm.data.mode = soc_pm.data.suspend_mode; mode 223 arch/arm/mach-at91/pm.c soc_pm.data.mode = soc_pm.data.standby_mode; mode 227 arch/arm/mach-at91/pm.c soc_pm.data.mode = -1; mode 230 arch/arm/mach-at91/pm.c return at91_pm_config_ws(soc_pm.data.mode, true); mode 278 arch/arm/mach-at91/pm.c return (soc_pm.data.mode >= AT91_PM_ULP0); mode 298 arch/arm/mach-at91/pm.c if (soc_pm.data.mode == AT91_PM_BACKUP) { mode 337 arch/arm/mach-at91/pm.c if (soc_pm.data.mode >= AT91_PM_ULP0 && mode 366 arch/arm/mach-at91/pm.c at91_pm_config_ws(soc_pm.data.mode, false); mode 31 arch/arm/mach-at91/pm.h unsigned int mode; mode 12 arch/arm/mach-at91/pm_data-offsets.c DEFINE(PM_DATA_MODE, offsetof(struct at91_pm_data, mode)); mode 29 arch/arm/mach-bcm/board_bcm281xx.c static void bcm281xx_restart(enum reboot_mode mode, const char *cmd) mode 63 arch/arm/mach-clps711x/board-dt.c static void clps711x_restart(enum reboot_mode mode, const char *cmd) mode 88 arch/arm/mach-cns3xxx/pm.c void cns3xxx_restart(enum reboot_mode mode, const char *cmd) mode 585 arch/arm/mach-davinci/board-da830-evm.c .mode = SPI_MODE_0, mode 148 arch/arm/mach-davinci/board-da850-evm.c .mode = SPI_MODE_0, mode 389 arch/arm/mach-davinci/board-dm355-evm.c .mode = SPI_MODE_0, mode 228 arch/arm/mach-davinci/board-dm355-leopard.c .mode = SPI_MODE_0, mode 789 arch/arm/mach-davinci/board-dm365-evm.c .mode = SPI_MODE_0, mode 405 arch/arm/mach-davinci/board-mityomapl138.c .mode = SPI_MODE_0, mode 28 arch/arm/mach-davinci/include/mach/mux.h const unsigned char mode; mode 76 arch/arm/mach-davinci/mux.c tmp2 = (cfg->mode << cfg->mask_offset); mode 26 arch/arm/mach-davinci/mux.h .mode = mux_mode, \ mode 37 arch/arm/mach-davinci/mux.h .mode = mux_mode, \ mode 48 arch/arm/mach-davinci/mux.h .mode = mux_mode, \ mode 62 arch/arm/mach-davinci/usb-da8xx.c .mode = MUSB_OTG, mode 28 arch/arm/mach-davinci/usb.c .mode = MUSB_OTG, mode 440 arch/arm/mach-dove/common.c void dove_restart(enum reboot_mode mode, const char *cmd) mode 311 arch/arm/mach-ebsa110/core.c static void ebsa110_restart(enum reboot_mode mode, const char *cmd) mode 996 arch/arm/mach-ep93xx/core.c void ep93xx_restart(enum reboot_mode mode, const char *cmd) mode 101 arch/arm/mach-ep93xx/edb93xx.c .mode = SPI_MODE_3, mode 66 arch/arm/mach-ep93xx/simone.c .mode = SPI_MODE_3, mode 260 arch/arm/mach-ep93xx/ts72xx.c .mode = SPI_MODE_0, mode 226 arch/arm/mach-ep93xx/vision_ep9307.c .mode = SPI_MODE_3, mode 233 arch/arm/mach-ep93xx/vision_ep9307.c .mode = SPI_MODE_3, mode 240 arch/arm/mach-ep93xx/vision_ep9307.c .mode = SPI_MODE_3, mode 115 arch/arm/mach-exynos/common.h void exynos_set_boot_flag(unsigned int cpu, unsigned int mode); mode 116 arch/arm/mach-exynos/common.h void exynos_clear_boot_flag(unsigned int cpu, unsigned int mode); mode 34 arch/arm/mach-exynos/firmware.c static int exynos_do_idle(unsigned long mode) mode 36 arch/arm/mach-exynos/firmware.c switch (mode) { mode 233 arch/arm/mach-exynos/firmware.c void exynos_set_boot_flag(unsigned int cpu, unsigned int mode) mode 239 arch/arm/mach-exynos/firmware.c if (mode & BOOT_MODE_MASK) mode 242 arch/arm/mach-exynos/firmware.c tmp |= mode; mode 246 arch/arm/mach-exynos/firmware.c void exynos_clear_boot_flag(unsigned int cpu, unsigned int mode) mode 251 arch/arm/mach-exynos/firmware.c tmp &= ~mode; mode 196 arch/arm/mach-footbridge/common.c void footbridge_restart(enum reboot_mode mode, const char *cmd) mode 198 arch/arm/mach-footbridge/common.c if (mode == REBOOT_SOFT) { mode 638 arch/arm/mach-footbridge/netwinder-hw.c static void netwinder_restart(enum reboot_mode mode, const char *cmd) mode 640 arch/arm/mach-footbridge/netwinder-hw.c if (mode == REBOOT_SOFT) { mode 12 arch/arm/mach-highbank/system.c void highbank_restart(enum reboot_mode mode, const char *cmd) mode 14 arch/arm/mach-highbank/system.c if (mode == REBOOT_HARD) mode 102 arch/arm/mach-imx/common.h int imx6_set_lpm(enum mxc_cpu_pwr_mode mode); mode 106 arch/arm/mach-imx/common.h int imx7ulp_set_lpm(enum ulp_cpu_pwr_mode mode); mode 38 arch/arm/mach-imx/iomux-imx31.c u32 mode; mode 43 arch/arm/mach-imx/iomux-imx31.c mode = (pin_mode & IOMUX_MODE_MASK) >> IOMUX_MODE_SHIFT; mode 49 arch/arm/mach-imx/iomux-imx31.c l |= mode << (field * 8); mode 146 arch/arm/mach-imx/iomux-mx3.h #define IOMUX_MODE(pin, mode) (pin | mode << IOMUX_MODE_SHIFT) mode 358 arch/arm/mach-imx/mach-armadillo5x0.c .mode = fb_modedb, mode 224 arch/arm/mach-imx/mach-mx21ads.c .mode = { mode 243 arch/arm/mach-imx/mach-mx21ads.c .mode = mx21ads_modes, mode 323 arch/arm/mach-imx/mach-mx27_3ds.c .mode = { mode 346 arch/arm/mach-imx/mach-mx27_3ds.c .mode = mx27_3ds_modes, mode 367 arch/arm/mach-imx/mach-mx27_3ds.c .mode = SPI_CS_HIGH, mode 259 arch/arm/mach-imx/mach-mx27ads.c .mode = { mode 278 arch/arm/mach-imx/mach-mx27ads.c .mode = mx27ads_modes, mode 158 arch/arm/mach-imx/mach-mx31_3ds.c .mode = fb_modedb, mode 384 arch/arm/mach-imx/mach-mx31_3ds.c .mode = SPI_CS_HIGH, mode 266 arch/arm/mach-imx/mach-mx31ads.c .mode = REGULATOR_MODE_NORMAL, mode 285 arch/arm/mach-imx/mach-mx31ads.c .mode = REGULATOR_MODE_NORMAL, mode 302 arch/arm/mach-imx/mach-mx31ads.c .mode = REGULATOR_MODE_NORMAL, mode 320 arch/arm/mach-imx/mach-mx31ads.c .mode = REGULATOR_MODE_NORMAL, mode 324 arch/arm/mach-imx/mach-mx31ads.c .mode = REGULATOR_MODE_NORMAL, mode 286 arch/arm/mach-imx/mach-mx31moboard.c .mode = SPI_CS_HIGH, mode 73 arch/arm/mach-imx/mach-mx35_3ds.c .mode = fb_modedb, mode 304 arch/arm/mach-imx/mach-pca100.c .mode = { mode 332 arch/arm/mach-imx/mach-pca100.c .mode = pca100_fb_modes, mode 392 arch/arm/mach-imx/mach-pcm037.c .mode = fb_modedb, mode 51 arch/arm/mach-imx/mach-pcm037_eet.c .mode = SPI_CPHA, mode 73 arch/arm/mach-imx/mach-pcm043.c .mode = fb_modedb, mode 81 arch/arm/mach-imx/mach-vpr200.c .mode = fb_modedb, mode 157 arch/arm/mach-imx/mx31lilly-db.c .mode = &fb_modedb, mode 143 arch/arm/mach-imx/pm-imx5.c static void mx5_cpu_lp_set(enum mxc_cpu_pwr_mode mode) mode 161 arch/arm/mach-imx/pm-imx5.c switch (mode) { mode 171 arch/arm/mach-imx/pm-imx5.c if (mode == WAIT_UNCLOCKED_POWER_OFF) { mode 189 arch/arm/mach-imx/pm-imx5.c printk(KERN_WARNING "UNKNOWN cpu power mode: %d\n", mode); mode 291 arch/arm/mach-imx/pm-imx6.c int imx6_set_lpm(enum mxc_cpu_pwr_mode mode) mode 296 arch/arm/mach-imx/pm-imx6.c switch (mode) { mode 351 arch/arm/mach-imx/pm-imx6.c if (mode != WAIT_CLOCKED) mode 354 arch/arm/mach-imx/pm-imx6.c if (mode != WAIT_CLOCKED) mode 30 arch/arm/mach-imx/pm-imx7ulp.c int imx7ulp_set_lpm(enum ulp_cpu_pwr_mode mode) mode 37 arch/arm/mach-imx/pm-imx7ulp.c switch (mode) { mode 33 arch/arm/mach-imx/system.c void mxc_restart(enum reboot_mode mode, const char *cmd) mode 73 arch/arm/mach-integrator/impd1.c .mode = { mode 101 arch/arm/mach-integrator/impd1.c .mode = { mode 129 arch/arm/mach-integrator/impd1.c .mode = { mode 161 arch/arm/mach-integrator/impd1.c .mode = { mode 288 arch/arm/mach-iop32x/n2100.c static void n2100_restart(enum reboot_mode mode, const char *cmd) mode 11 arch/arm/mach-iop32x/restart.c void iop3xx_restart(enum reboot_mode mode, const char *cmd) mode 263 arch/arm/mach-ixp4xx/common.c void ixp4xx_restart(enum reboot_mode mode, const char *cmd) mode 265 arch/arm/mach-ixp4xx/common.c if (mode == REBOOT_SOFT) { mode 65 arch/arm/mach-lpc32xx/common.c void lpc32xx_set_phy_interface_mode(phy_interface_t mode) mode 69 arch/arm/mach-lpc32xx/common.c if (mode == PHY_INTERFACE_MODE_MII) mode 232 arch/arm/mach-mmp/aspenite.c .mode = MV_USB_MODE_HOST, mode 128 arch/arm/mach-mmp/brownstone.c .mode = 2, /* VID1 = 1, VID0 = 0 */ mode 47 arch/arm/mach-mmp/common.c void mmp_restart(enum reboot_mode mode, const char *cmd) mode 122 arch/arm/mach-mmp/jasper.c .mode = 2, /* VID1 = 1, VID0 = 0 */ mode 173 arch/arm/mach-mmp/pxa168.c void pxa168_restart(enum reboot_mode mode, const char *cmd) mode 169 arch/arm/mach-mmp/ttc_dkb.c .mode = MV_USB_MODE_OTG, mode 187 arch/arm/mach-mmp/ttc_dkb.c #define CFG_DUMBMODE(mode) (mode << 28) /* 0x0 ~ 0x6*/ mode 410 arch/arm/mach-mv78xx0/common.c void mv78xx0_restart(enum reboot_mode mode, const char *cmd) mode 20 arch/arm/mach-mvebu/common.h void mvebu_restart(enum reboot_mode mode, const char *cmd); mode 94 arch/arm/mach-mvebu/system-controller.c void mvebu_restart(enum reboot_mode mode, const char *cmd) mode 432 arch/arm/mach-mxs/mach-mxs.c static void mxs_restart(enum reboot_mode mode, const char *cmd) mode 87 arch/arm/mach-nomadik/cpu-8815.c static void cpu8815_restart(enum reboot_mode mode, const char *cmd) mode 30 arch/arm/mach-nspire/nspire.c static void nspire_restart(enum reboot_mode mode, const char *cmd) mode 245 arch/arm/mach-omap1/board-palmtt.c static void __init omap_mpu_wdt_mode(int mode) { mode 246 arch/arm/mach-omap1/board-palmtt.c if (mode) mode 226 arch/arm/mach-omap1/board-palmz71.c omap_mpu_wdt_mode(int mode) mode 228 arch/arm/mach-omap1/board-palmz71.c if (mode) mode 27 arch/arm/mach-omap1/include/mach/mux.h #define MUX_REG(reg, mode_offset, mode) .mux_reg_name = "FUNC_MUX_CTRL_"#reg, \ mode 30 arch/arm/mach-omap1/include/mach/mux.h .mask = mode, mode 41 arch/arm/mach-omap1/include/mach/mux.h #define MUX_REG_7XX(reg, mode_offset, mode) .mux_reg_name = "OMAP7XX_IO_CONF_"#reg, \ mode 44 arch/arm/mach-omap1/include/mach/mux.h .mask = mode, mode 53 arch/arm/mach-omap1/include/mach/mux.h #define MUX_REG(reg, mode_offset, mode) .mux_reg = FUNC_MUX_CTRL_##reg, \ mode 55 arch/arm/mach-omap1/include/mach/mux.h .mask = mode, mode 64 arch/arm/mach-omap1/include/mach/mux.h #define MUX_REG_7XX(reg, mode_offset, mode) \ mode 67 arch/arm/mach-omap1/include/mach/mux.h .mask = mode, mode 75 arch/arm/mach-omap1/include/mach/mux.h #define MUX_CFG(desc, mux_reg, mode_offset, mode, \ mode 81 arch/arm/mach-omap1/include/mach/mux.h MUX_REG(mux_reg, mode_offset, mode) \ mode 94 arch/arm/mach-omap1/include/mach/mux.h #define MUX_CFG_7XX(desc, mux_reg, mode_offset, mode, \ mode 99 arch/arm/mach-omap1/include/mach/mux.h MUX_REG_7XX(mux_reg, mode_offset, mode) \ mode 27 arch/arm/mach-omap1/reset.c void omap1_restart(enum reboot_mode mode, const char *cmd) mode 19 arch/arm/mach-omap2/am33xx-restart.c void am33xx_restart(enum reboot_mode mode, const char *cmd) mode 105 arch/arm/mach-omap2/board-n8x0.c .mode = MUSB_OTG, mode 61 arch/arm/mach-omap2/cm.h void (*module_enable)(u8 mode, u8 part, u16 inst, u16 clkctrl_offs); mode 72 arch/arm/mach-omap2/cm.h int omap_cm_module_enable(u8 mode, u8 part, u16 inst, u16 clkctrl_offs); mode 273 arch/arm/mach-omap2/cm33xx.c static void am33xx_cm_module_enable(u8 mode, u8 part, u16 inst, mode 280 arch/arm/mach-omap2/cm33xx.c v |= mode << AM33XX_MODULEMODE_SHIFT; mode 144 arch/arm/mach-omap2/cm_common.c int omap_cm_module_enable(u8 mode, u8 part, u16 inst, u16 clkctrl_offs) mode 152 arch/arm/mach-omap2/cm_common.c cm_ll_data->module_enable(mode, part, inst, clkctrl_offs); mode 318 arch/arm/mach-omap2/cminst44xx.c static void omap4_cminst_module_enable(u8 mode, u8 part, u16 inst, mode 325 arch/arm/mach-omap2/cminst44xx.c v |= mode << OMAP4430_MODULEMODE_SHIFT; mode 151 arch/arm/mach-omap2/common.h void omap2xxx_restart(enum reboot_mode mode, const char *cmd); mode 153 arch/arm/mach-omap2/common.h static inline void omap2xxx_restart(enum reboot_mode mode, const char *cmd) mode 159 arch/arm/mach-omap2/common.h void am33xx_restart(enum reboot_mode mode, const char *cmd); mode 161 arch/arm/mach-omap2/common.h static inline void am33xx_restart(enum reboot_mode mode, const char *cmd) mode 167 arch/arm/mach-omap2/common.h void omap3xxx_restart(enum reboot_mode mode, const char *cmd); mode 169 arch/arm/mach-omap2/common.h static inline void omap3xxx_restart(enum reboot_mode mode, const char *cmd) mode 175 arch/arm/mach-omap2/common.h void ti81xx_restart(enum reboot_mode mode, const char *cmd); mode 177 arch/arm/mach-omap2/common.h static inline void ti81xx_restart(enum reboot_mode mode, const char *cmd) mode 184 arch/arm/mach-omap2/common.h void omap44xx_restart(enum reboot_mode mode, const char *cmd); mode 186 arch/arm/mach-omap2/common.h static inline void omap44xx_restart(enum reboot_mode mode, const char *cmd) mode 31 arch/arm/mach-omap2/omap2-restart.c void omap2xxx_restart(enum reboot_mode mode, const char *cmd) mode 28 arch/arm/mach-omap2/omap3-restart.c void omap3xxx_restart(enum reboot_mode mode, const char *cmd) mode 19 arch/arm/mach-omap2/omap4-restart.c void omap44xx_restart(enum reboot_mode mode, const char *cmd) mode 25 arch/arm/mach-omap2/ti81xx-restart.c void ti81xx_restart(enum reboot_mode mode, const char *cmd) mode 365 arch/arm/mach-orion5x/common.c void orion5x_restart(enum reboot_mode mode, const char *cmd) mode 62 arch/arm/mach-picoxcell/common.c static void picoxcell_wdt_restart(enum reboot_mode mode, const char *cmd) mode 44 arch/arm/mach-prima2/pm.c static void sirfsoc_set_sleep_mode(u32 mode) mode 49 arch/arm/mach-prima2/pm.c sleep_mode |= mode << 1; mode 67 arch/arm/mach-prima2/rstc.c static void sirfsoc_restart(enum reboot_mode mode, const char *cmd) mode 709 arch/arm/mach-pxa/corgi.c static void corgi_restart(enum reboot_mode mode, const char *cmd) mode 850 arch/arm/mach-pxa/eseries.c if (par->mode->xres == 480) mode 457 arch/arm/mach-pxa/lubbock.c static void lubbock_irda_transceiver_mode(struct device *dev, int mode) mode 462 arch/arm/mach-pxa/lubbock.c if (mode & IR_SIRMODE) { mode 464 arch/arm/mach-pxa/lubbock.c } else if (mode & IR_FIRMODE) { mode 467 arch/arm/mach-pxa/lubbock.c pxa2xx_transceiver_mode(dev, mode); mode 364 arch/arm/mach-pxa/mainstone.c static void mainstone_irda_transceiver_mode(struct device *dev, int mode) mode 369 arch/arm/mach-pxa/mainstone.c if (mode & IR_SIRMODE) { mode 371 arch/arm/mach-pxa/mainstone.c } else if (mode & IR_FIRMODE) { mode 374 arch/arm/mach-pxa/mainstone.c pxa2xx_transceiver_mode(dev, mode); mode 375 arch/arm/mach-pxa/mainstone.c if (mode & IR_OFF) { mode 136 arch/arm/mach-pxa/palm27x.c void __init palm27x_lcd_init(int power, struct pxafb_mode_info *mode) mode 138 arch/arm/mach-pxa/palm27x.c palm27x_lcd_screen.modes = mode; mode 31 arch/arm/mach-pxa/palm27x.h struct pxafb_mode_info *mode); mode 33 arch/arm/mach-pxa/palm27x.h #define palm27x_lcd_init(power, mode) do {} while (0) mode 148 arch/arm/mach-pxa/pcm027.c .mode = SPI_MODE_0, mode 88 arch/arm/mach-pxa/pxa27x.c int pxa27x_set_pwrmode(unsigned int mode) mode 90 arch/arm/mach-pxa/pxa27x.c switch (mode) { mode 93 arch/arm/mach-pxa/pxa27x.c pwrmode = mode; mode 23 arch/arm/mach-pxa/pxa27x.h extern int pxa27x_set_pwrmode(unsigned int mode); mode 42 arch/arm/mach-pxa/pxa2xx.c void pxa2xx_transceiver_mode(struct device *dev, int mode) mode 44 arch/arm/mach-pxa/pxa2xx.c if (mode & IR_OFF) { mode 46 arch/arm/mach-pxa/pxa2xx.c } else if (mode & IR_SIRMODE) { mode 48 arch/arm/mach-pxa/pxa2xx.c } else if (mode & IR_FIRMODE) { mode 89 arch/arm/mach-pxa/reset.c void pxa_restart(enum reboot_mode mode, const char *cmd) mode 96 arch/arm/mach-pxa/reset.c switch (mode) { mode 967 arch/arm/mach-pxa/spitz.c static void spitz_restart(enum reboot_mode mode, const char *cmd) mode 309 arch/arm/mach-pxa/tosa.c static void tosa_irda_transceiver_mode(struct device *dev, int mode) mode 311 arch/arm/mach-pxa/tosa.c if (mode & IR_OFF) { mode 313 arch/arm/mach-pxa/tosa.c pxa2xx_transceiver_mode(dev, mode); mode 316 arch/arm/mach-pxa/tosa.c pxa2xx_transceiver_mode(dev, mode); mode 823 arch/arm/mach-pxa/tosa.c .mode = SPI_MODE_0, mode 887 arch/arm/mach-pxa/tosa.c static void tosa_restart(enum reboot_mode mode, const char *cmd) mode 376 arch/arm/mach-pxa/trizeps4.c static void trizeps4_irda_transceiver_mode(struct device *dev, int mode) mode 382 arch/arm/mach-pxa/trizeps4.c if (mode & IR_SIRMODE) mode 384 arch/arm/mach-pxa/trizeps4.c else if (mode & IR_FIRMODE) mode 388 arch/arm/mach-pxa/trizeps4.c if (mode & IR_OFF) mode 396 arch/arm/mach-pxa/trizeps4.c pxa2xx_transceiver_mode(dev, mode); mode 542 arch/arm/mach-pxa/z2.c spi->mode = SPI_MODE_2, mode 442 arch/arm/mach-pxa/zeus.c .mode = SPI_MODE_0, mode 203 arch/arm/mach-rpc/riscpc.c static void rpc_restart(enum reboot_mode mode, const char *cmd) mode 446 arch/arm/mach-s3c24xx/mach-jive.c .mode = SPI_MODE_3, /* CPOL=1, CPHA=1 */ mode 453 arch/arm/mach-s3c24xx/mach-jive.c .mode = SPI_MODE_0, /* CPOL=0, CPHA=0 */ mode 521 arch/arm/mach-s3c24xx/mach-mini2440.c .mode = 1, mode 432 arch/arm/mach-s3c64xx/common.c void s3c64xx_restart(enum reboot_mode mode, const char *cmd) mode 434 arch/arm/mach-s3c64xx/common.c if (mode != REBOOT_SOFT) mode 22 arch/arm/mach-s3c64xx/common.h void s3c64xx_restart(enum reboot_mode mode, const char *cmd); mode 50 arch/arm/mach-s3c64xx/mach-crag6410-module.c .mode = SPI_MODE_0, mode 63 arch/arm/mach-s3c64xx/mach-crag6410-module.c .mode = SPI_MODE_0, mode 242 arch/arm/mach-s3c64xx/mach-crag6410-module.c .mode = SPI_MODE_0, mode 275 arch/arm/mach-s3c64xx/mach-crag6410-module.c .mode = SPI_MODE_0, mode 298 arch/arm/mach-s3c64xx/mach-crag6410-module.c .mode = SPI_MODE_0, mode 47 arch/arm/mach-s3c64xx/mach-s3c64xx-dt.c static void s3c64xx_dt_restart(enum reboot_mode mode, const char *cmd) mode 49 arch/arm/mach-s3c64xx/mach-s3c64xx-dt.c if (mode != REBOOT_SOFT) mode 421 arch/arm/mach-s3c64xx/mach-smdk6410.c .mode = REGULATOR_MODE_NORMAL, mode 51 arch/arm/mach-s5pv210/s5pv210.c static void s5pv210_dt_restart(enum reboot_mode mode, const char *cmd) mode 97 arch/arm/mach-sa1100/generic.c void sa11x0_restart(enum reboot_mode mode, const char *cmd) mode 101 arch/arm/mach-sa1100/generic.c if (mode == REBOOT_SOFT) { mode 70 arch/arm/mach-socfpga/socfpga.c static void socfpga_cyclone5_restart(enum reboot_mode mode, const char *cmd) mode 76 arch/arm/mach-socfpga/socfpga.c if (mode == REBOOT_HARD) mode 83 arch/arm/mach-socfpga/socfpga.c static void socfpga_arria10_restart(enum reboot_mode mode, const char *cmd) mode 89 arch/arm/mach-socfpga/socfpga.c if (mode == REBOOT_HARD) mode 21 arch/arm/mach-spear/restart.c void spear_restart(enum reboot_mode mode, const char *cmd) mode 23 arch/arm/mach-spear/restart.c if (mode == REBOOT_SOFT) { mode 185 arch/arm/mach-tegra/pm.c static void tegra_pm_set(enum tegra_suspend_mode mode) mode 202 arch/arm/mach-tegra/pm.c tegra_pmc_enter_suspend_mode(mode); mode 227 arch/arm/mach-tegra/pm.c enum tegra_suspend_mode mode) mode 232 arch/arm/mach-tegra/pm.c if (mode > TEGRA_SUSPEND_LP1) mode 235 arch/arm/mach-tegra/pm.c return mode; mode 350 arch/arm/mach-tegra/pm.c enum tegra_suspend_mode mode = tegra_pmc_get_suspend_mode(); mode 352 arch/arm/mach-tegra/pm.c if (WARN_ON(mode < TEGRA_SUSPEND_NONE || mode 353 arch/arm/mach-tegra/pm.c mode >= TEGRA_MAX_SUSPEND_MODE)) mode 356 arch/arm/mach-tegra/pm.c pr_info("Entering suspend state %s\n", lp_state[mode]); mode 358 arch/arm/mach-tegra/pm.c tegra_pm_set(mode); mode 363 arch/arm/mach-tegra/pm.c switch (mode) { mode 384 arch/arm/mach-tegra/pm.c switch (mode) { mode 408 arch/arm/mach-tegra/pm.c enum tegra_suspend_mode mode = tegra_pmc_get_suspend_mode(); mode 410 arch/arm/mach-tegra/pm.c if (mode == TEGRA_SUSPEND_NONE) mode 415 arch/arm/mach-tegra/pm.c if (mode >= TEGRA_SUSPEND_LP1) { mode 421 arch/arm/mach-tegra/pm.c mode = TEGRA_SUSPEND_LP2; mode 426 arch/arm/mach-tegra/pm.c switch (mode) { mode 302 arch/arm/mach-u300/core.c static void u300_restart(enum reboot_mode mode, const char *cmd) mode 304 arch/arm/mach-u300/core.c switch (mode) { mode 102 arch/arm/mach-ux500/cpu-db8500.c static void ux500_restart(enum reboot_mode mode, const char *cmd) mode 33 arch/arm/mach-vt8500/vt8500.c static void vt8500_restart(enum reboot_mode mode, const char *cmd) mode 154 arch/arm/mm/alignment.c char mode; mode 157 arch/arm/mm/alignment.c if (get_user(mode, buffer)) mode 159 arch/arm/mm/alignment.c if (mode >= '0' && mode <= '5') mode 160 arch/arm/mm/alignment.c ai_usermode = safe_usermode(mode - '0', true); mode 360 arch/arm/mm/cache-l2x0-pmu.c return attr->mode; mode 210 arch/arm/mm/cache-tauros2.c char *mode = NULL; mode 228 arch/arm/mm/cache-tauros2.c mode = "ARMv5"; mode 265 arch/arm/mm/cache-tauros2.c mode = "ARMv7"; mode 269 arch/arm/mm/cache-tauros2.c if (mode == NULL) { mode 275 arch/arm/mm/cache-tauros2.c "in %s mode.\n", mode); mode 29 arch/arm/nwfpe/fpa11.h int8 mode; mode 31 arch/arm/nwfpe/fpa11_cpdo.c roundData.mode = SetRoundingMode(opcode); mode 261 arch/arm/nwfpe/fpa11_cpdt.c roundData.mode = SetRoundingMode(opcode); mode 62 arch/arm/nwfpe/fpa11_cprt.c roundData.mode = SetRoundingMode(opcode); mode 106 arch/arm/nwfpe/fpa11_cprt.c roundData.mode = SetRoundingMode(opcode); mode 77 arch/arm/nwfpe/softfloat.c roundingMode = roundData->mode; mode 224 arch/arm/nwfpe/softfloat.c roundingMode = roundData->mode; mode 395 arch/arm/nwfpe/softfloat.c roundingMode = roundData->mode; mode 573 arch/arm/nwfpe/softfloat.c roundingMode = roundData->mode; mode 983 arch/arm/nwfpe/softfloat.c roundingMode = roundData->mode; mode 1127 arch/arm/nwfpe/softfloat.c return packFloat32( roundData->mode == float_round_down, 0, 0 ); mode 1882 arch/arm/nwfpe/softfloat.c switch ( roundData->mode ) { mode 1900 arch/arm/nwfpe/softfloat.c roundingMode = roundData->mode; mode 2023 arch/arm/nwfpe/softfloat.c return packFloat64( roundData->mode == float_round_down, 0, 0 ); mode 2692 arch/arm/nwfpe/softfloat.c switch ( roundData->mode ) { mode 2716 arch/arm/nwfpe/softfloat.c roundingMode = roundData->mode; mode 2845 arch/arm/nwfpe/softfloat.c return packFloatx80( roundData->mode == float_round_down, 0, 0 ); mode 281 arch/arm/plat-omap/dma.c void omap_set_dma_write_mode(int lch, enum omap_dma_write_mode mode) mode 288 arch/arm/plat-omap/dma.c csdp |= (mode << 16); mode 294 arch/arm/plat-omap/dma.c void omap_set_dma_channel_mode(int lch, enum omap_dma_channel_mode mode) mode 301 arch/arm/plat-omap/dma.c l |= mode; mode 134 arch/arm/plat-orion/gpio.c orion_gpio_is_valid(struct orion_gpio_chip *ochip, unsigned pin, int mode) mode 139 arch/arm/plat-orion/gpio.c if ((mode & GPIO_INPUT_OK) && !test_bit(pin, &ochip->valid_input)) mode 142 arch/arm/plat-orion/gpio.c if ((mode & GPIO_OUTPUT_OK) && !test_bit(pin, &ochip->valid_output)) mode 263 arch/arm/plat-orion/gpio.c void __init orion_gpio_set_valid(unsigned pin, int mode) mode 272 arch/arm/plat-orion/gpio.c if (mode == 1) mode 273 arch/arm/plat-orion/gpio.c mode = GPIO_INPUT_OK | GPIO_OUTPUT_OK; mode 275 arch/arm/plat-orion/gpio.c if (mode & GPIO_INPUT_OK) mode 280 arch/arm/plat-orion/gpio.c if (mode & GPIO_OUTPUT_OK) mode 30 arch/arm/plat-orion/include/plat/orion-gpio.h void orion_gpio_set_valid(unsigned pin, int mode); mode 148 arch/arm64/include/asm/compat.h unsigned short mode; mode 235 arch/arm64/include/asm/kvm_emulate.h u32 mode; mode 238 arch/arm64/include/asm/kvm_emulate.h mode = *vcpu_cpsr(vcpu) & PSR_AA32_MODE_MASK; mode 239 arch/arm64/include/asm/kvm_emulate.h return mode > PSR_AA32_MODE_USR; mode 242 arch/arm64/include/asm/kvm_emulate.h mode = *vcpu_cpsr(vcpu) & PSR_MODE_MASK; mode 244 arch/arm64/include/asm/kvm_emulate.h return mode != PSR_MODE_EL0t; mode 246 arch/arm64/kernel/armv8_deprecated.c sysctl->mode = 0644; mode 372 arch/arm64/kernel/fpsimd.c .mode = 0644, mode 304 arch/arm64/kernel/perf_event.c return attr->mode; mode 309 arch/arm64/kernel/perf_event.c return attr->mode; mode 624 arch/arm64/kernel/process.c .mode = 0644, mode 188 arch/arm64/kernel/sdei.c u32 mode; mode 223 arch/arm64/kernel/sdei.c mode = regs->pstate & (PSR_MODE32_BIT | PSR_MODE_MASK); mode 229 arch/arm64/kernel/sdei.c if (mode == kernel_mode && !interrupts_enabled(regs)) mode 240 arch/arm64/kernel/sdei.c if (mode == kernel_mode) mode 242 arch/arm64/kernel/sdei.c else if (mode & PSR_MODE32_BIT) mode 119 arch/arm64/kernel/sys32.c COMPAT_SYSCALL_DEFINE6(aarch32_fallocate, int, fd, int, mode, mode 122 arch/arm64/kernel/sys32.c return ksys_fallocate(fd, mode, arg_u64(offset), arg_u64(len)); mode 178 arch/arm64/kvm/guest.c u64 mode = (*(u64 *)valp) & PSR_AA32_MODE_MASK; mode 179 arch/arm64/kvm/guest.c switch (mode) { mode 147 arch/arm64/kvm/hyp/sysreg-sr.c u64 mode = pstate & PSR_AA32_MODE_MASK; mode 160 arch/arm64/kvm/hyp/sysreg-sr.c if (!(mode & PSR_MODE32_BIT) && mode >= PSR_MODE_EL2t) mode 104 arch/arm64/kvm/regmap.c unsigned long mode = *vcpu_cpsr(vcpu) & PSR_AA32_MODE_MASK; mode 106 arch/arm64/kvm/regmap.c switch (mode) { mode 108 arch/arm64/kvm/regmap.c mode &= ~PSR_MODE32_BIT; /* 0 ... 3 */ mode 112 arch/arm64/kvm/regmap.c mode = 4; mode 116 arch/arm64/kvm/regmap.c mode = 5; mode 120 arch/arm64/kvm/regmap.c mode = 0; /* SYS maps to USR */ mode 127 arch/arm64/kvm/regmap.c return reg_array + vcpu_reg_offsets[mode][reg_num]; mode 135 arch/arm64/kvm/regmap.c unsigned long mode = *vcpu_cpsr(vcpu) & PSR_AA32_MODE_MASK; mode 136 arch/arm64/kvm/regmap.c switch (mode) { mode 73 arch/c6x/include/asm/cache.h extern void L2_cache_set_mode(unsigned int mode); mode 39 arch/c6x/include/asm/syscalls.h extern long sys_fallocate_c6x(int fd, int mode, mode 288 arch/c6x/platforms/cache.c void L2_cache_set_mode(unsigned int mode) mode 294 arch/c6x/platforms/cache.c ccfg |= (mode & 7); mode 308 arch/csky/abiv1/alignment.c .mode = 0666, mode 315 arch/csky/abiv1/alignment.c .mode = 0666, mode 322 arch/csky/abiv1/alignment.c .mode = 0666, mode 329 arch/csky/abiv1/alignment.c .mode = 0666, mode 338 arch/csky/abiv1/alignment.c .mode = 0555, mode 62 arch/h8300/lib/libgcc.h typedef int SItype __attribute__ ((mode (SI))); mode 63 arch/h8300/lib/libgcc.h typedef unsigned int USItype __attribute__ ((mode (SI))); mode 64 arch/h8300/lib/libgcc.h typedef int DItype __attribute__ ((mode (DI))); mode 65 arch/h8300/lib/libgcc.h typedef unsigned int UDItype __attribute__ ((mode (DI))); mode 74 arch/h8300/lib/libgcc.h typedef int word_type __attribute__ ((mode (__word__))); mode 100 arch/ia64/include/uapi/asm/gcc_intrin.h #define ia64_hint(mode) \ mode 102 arch/ia64/include/uapi/asm/gcc_intrin.h switch (mode) { \ mode 117 arch/ia64/include/uapi/asm/gcc_intrin.h #define ia64_mux1(x, mode) \ mode 121 arch/ia64/include/uapi/asm/gcc_intrin.h switch (mode) { \ mode 224 arch/ia64/kernel/crash.c .mode = 0644, mode 231 arch/ia64/kernel/crash.c .mode = 0644, mode 240 arch/ia64/kernel/crash.c .mode = 0555, mode 533 arch/ia64/kernel/perfmon.c .mode = 0666, mode 540 arch/ia64/kernel/perfmon.c .mode = 0666, mode 547 arch/ia64/kernel/perfmon.c .mode = 0600, mode 554 arch/ia64/kernel/perfmon.c .mode = 0600, mode 562 arch/ia64/kernel/perfmon.c .mode = 0555, mode 570 arch/ia64/kernel/perfmon.c .mode = 0555, mode 638 arch/ia64/kernel/perfmon.c static int pfm_write_ibr_dbr(int mode, pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs); mode 3627 arch/ia64/kernel/perfmon.c pfm_write_ibr_dbr(int mode, pfm_context_t *ctx, void *arg, int count, struct pt_regs *regs) mode 3744 arch/ia64/kernel/perfmon.c if ((mode == PFM_CODE_RR && rnum >= PFM_NUM_IBRS) || ((mode == PFM_DATA_RR) && rnum >= PFM_NUM_DBRS)) { mode 3746 arch/ia64/kernel/perfmon.c rnum, dbreg.val, mode, i, count)); mode 3755 arch/ia64/kernel/perfmon.c if (mode == PFM_CODE_RR) mode 3773 arch/ia64/kernel/perfmon.c if (mode == PFM_CODE_RR) { mode 52 arch/ia64/pci/pci.c int mode, result; mode 59 arch/ia64/pci/pci.c mode = 0; mode 62 arch/ia64/pci/pci.c mode = 1; mode 67 arch/ia64/pci/pci.c result = ia64_sal_pci_config_read(addr, mode, len, &data); mode 79 arch/ia64/pci/pci.c int mode, result; mode 86 arch/ia64/pci/pci.c mode = 0; mode 89 arch/ia64/pci/pci.c mode = 1; mode 93 arch/ia64/pci/pci.c result = ia64_sal_pci_config_write(addr, mode, len, value); mode 348 arch/m68k/atari/atakeyb.c void ikbd_mouse_button_action(int mode) mode 350 arch/m68k/atari/atakeyb.c char cmd[2] = { 0x07, mode }; mode 145 arch/m68k/atari/time.c mste_rtc.mode=(mste_rtc.mode | 1); mode 147 arch/m68k/atari/time.c mste_rtc.mode=(mste_rtc.mode & ~1); mode 174 arch/m68k/atari/time.c mste_rtc.mode=(mste_rtc.mode | 1); mode 176 arch/m68k/atari/time.c mste_rtc.mode=(mste_rtc.mode & ~1); mode 51 arch/m68k/coldfire/stmark2.c .mode = SPI_MODE_3, mode 93 arch/m68k/fpsp040/fpsp.h .set FPCR_MODE,USER_FPCR+3 | FPCR rounding mode control mode 1725 arch/m68k/ifpsp060/src/fpsp.S # if the exception occurred from supervisor mode, check if mode 3294 arch/m68k/ifpsp060/src/fpsp.S # if the effective addressing mode was -() or ()+, then the address # mode 4143 arch/m68k/ifpsp060/src/fpsp.S # if the instruction was executed from supervisor mode and the addressing mode 11815 arch/m68k/ifpsp060/src/fpsp.S # if the rnd mode is anything but RZ, then we have to re-do the above mode 18080 arch/m68k/ifpsp060/src/fpsp.S # if the addressing mode is post-increment or pre-decrement, mode 24713 arch/m68k/ifpsp060/src/fpsp.S # if the effective addressing mode was predecrement or postincrement, mode 578 arch/m68k/ifpsp060/src/isp.S # if exception occurred in user mode, then we have to restore a7 in case it mode 1724 arch/m68k/ifpsp060/src/pfpsp.S # if the exception occurred from supervisor mode, check if mode 3293 arch/m68k/ifpsp060/src/pfpsp.S # if the effective addressing mode was -() or ()+, then the address # mode 8246 arch/m68k/ifpsp060/src/pfpsp.S # if the rnd mode is anything but RZ, then we have to re-do the above mode 14673 arch/m68k/ifpsp060/src/pfpsp.S # if the effective addressing mode was predecrement or postincrement, mode 274 arch/m68k/include/asm/atarihw.h u_short mode; mode 687 arch/m68k/include/asm/atarihw.h u_char mode; mode 797 arch/m68k/include/asm/atarihw.h u_char mode; mode 19 arch/m68k/include/asm/atarikb.h void ikbd_mouse_button_action(int mode); mode 170 arch/m68k/include/asm/dma.h static __inline__ void set_dma_mode(unsigned int dmanr, char mode) mode 177 arch/m68k/include/asm/dma.h printk("set_dma_mode(dmanr=%d,mode=%d)\n", dmanr, mode); mode 192 arch/m68k/include/asm/dma.h ((mode & DMA_MODE_SINGLE_BIT) ? MCFDMA_DCR_SAA : 0) | mode 194 arch/m68k/include/asm/dma.h ((mode & DMA_MODE_WRITE_BIT) ? MCFDMA_DCR_S_RW : 0) | mode 196 arch/m68k/include/asm/dma.h ((mode & DMA_MODE_WRITE_BIT) ? MCFDMA_DCR_SINC : MCFDMA_DCR_DINC) | mode 198 arch/m68k/include/asm/dma.h ((mode & DMA_MODE_WORD_BIT) ? MCFDMA_DCR_SSIZE_WORD : mode 199 arch/m68k/include/asm/dma.h ((mode & DMA_MODE_LONG_BIT) ? MCFDMA_DCR_SSIZE_LONG : mode 201 arch/m68k/include/asm/dma.h ((mode & DMA_MODE_WORD_BIT) ? MCFDMA_DCR_DSIZE_WORD : mode 202 arch/m68k/include/asm/dma.h ((mode & DMA_MODE_LONG_BIT) ? MCFDMA_DCR_DSIZE_LONG : mode 361 arch/m68k/include/asm/dma.h static __inline__ void set_dma_mode(unsigned int dmanr, char mode) mode 368 arch/m68k/include/asm/dma.h printk("set_dma_mode(dmanr=%d,mode=%d)\n", dmanr, mode); mode 382 arch/m68k/include/asm/dma.h ((mode & DMA_MODE_SRC_SA_BIT) ? MCFDMA_DMR_SRCM_SA : MCFDMA_DMR_SRCM_IA) | mode 384 arch/m68k/include/asm/dma.h ((mode & DMA_MODE_DES_SA_BIT) ? MCFDMA_DMR_DSTM_SA : MCFDMA_DMR_DSTM_IA) | mode 386 arch/m68k/include/asm/dma.h (((mode & DMA_MODE_SSIZE_MASK) >> DMA_MODE_SSIZE_OFF) << MCFDMA_DMR_DSTS_OFF) | mode 387 arch/m68k/include/asm/dma.h (((mode & DMA_MODE_SSIZE_MASK) >> DMA_MODE_SSIZE_OFF) << MCFDMA_DMR_SRCS_OFF); mode 103 arch/m68k/include/asm/floppy.h #define fd_dma_setup(addr, size, mode, io) vdma_dma_setup(addr, size, mode, io) mode 159 arch/m68k/include/asm/floppy.h static int vdma_dma_setup(char *addr, unsigned long size, int mode, int io) mode 163 arch/m68k/include/asm/floppy.h virtual_dma_mode = (mode == DMA_MODE_WRITE); mode 450 arch/m68k/math-emu/fp_arith.c static void fp_roundint(struct fp_ext *dest, int mode) mode 496 arch/m68k/math-emu/fp_arith.c switch (mode) { mode 543 arch/m68k/math-emu/fp_arith.c if (dest->sign ^ (mode - FPCR_ROUND_RM)) mode 577 arch/m68k/math-emu/fp_arith.c modrem_kernel(struct fp_ext *dest, struct fp_ext *src, int mode) mode 594 arch/m68k/math-emu/fp_arith.c fp_roundint(&tmp, mode); mode 112 arch/m68k/math-emu/fp_decode.h | extract the addressing mode mode 128 arch/m68k/math-emu/fp_decode.h | extract the register for the addressing mode mode 196 arch/m68k/math-emu/fp_decode.h | test if %pc is the base register for the indirect addr mode mode 214 arch/m68k/math-emu/fp_decode.h | addressing mode: data register direct mode 220 arch/m68k/math-emu/fp_decode.h | addressing mode: address register indirect mode 244 arch/m68k/math-emu/fp_decode.h | addressing mode: address register indirect with postincrement mode 263 arch/m68k/math-emu/fp_decode.h | addressing mode: address register indirect with predecrement mode 289 arch/m68k/math-emu/fp_decode.h | addressing mode: address register/programm counter indirect mode 345 arch/m68k/math-emu/fp_decode.h | addressing mode: address register/programm counter indirect mode 355 arch/m68k/math-emu/fp_decode.h 3: | addressing mode: address register/programm counter memory indirect mode 7 arch/microblaze/lib/libgcc.h typedef int word_type __attribute__ ((mode (__word__))); mode 212 arch/mips/alchemy/common/dma.c chan->mode = dev->dma_mode; mode 397 arch/mips/alchemy/devboards/db1000.c .mode = 0, mode 167 arch/mips/alchemy/devboards/db1200.c .mode = 0, mode 175 arch/mips/alchemy/devboards/db1200.c .mode = 0, mode 109 arch/mips/alchemy/devboards/db1550.c .mode = SPI_MODE_0, mode 117 arch/mips/alchemy/devboards/db1550.c .mode = SPI_MODE_0, mode 55 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c union cvmx_gmxx_inf_mode mode; mode 56 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); mode 58 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c if (mode.s.type) { mode 164 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c union cvmx_gmxx_inf_mode mode; mode 168 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); mode 170 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c if (mode.s.en == 0) mode 173 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c OCTEON_IS_MODEL(OCTEON_CN58XX)) && mode.s.type == 1) mode 401 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c union cvmx_gmxx_inf_mode mode; mode 402 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); mode 416 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c if (((index == 0) && (mode.s.p0mii == 1)) mode 417 arch/mips/cavium-octeon/executive/cvmx-helper-rgmii.c || ((index != 0) && (mode.s.type == 1))) { mode 73 arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c if (pcs_misc_ctl_reg.s.mode) { mode 94 arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c if (pcs_misc_ctl_reg.s.mode) { mode 344 arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c union cvmx_gmxx_inf_mode mode; mode 351 arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); mode 352 arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c mode.s.en = 1; mode 353 arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c cvmx_write_csr(CVMX_GMXX_INF_MODE(interface), mode.u64); mode 427 arch/mips/cavium-octeon/executive/cvmx-helper-sgmii.c if (pcs_misc_ctl_reg.s.mode) { mode 56 arch/mips/cavium-octeon/executive/cvmx-helper-util.c mode) mode 58 arch/mips/cavium-octeon/executive/cvmx-helper-util.c switch (mode) { mode 69 arch/mips/cavium-octeon/executive/cvmx-helper-xaui.c union cvmx_gmxx_inf_mode mode; mode 76 arch/mips/cavium-octeon/executive/cvmx-helper-xaui.c mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); mode 77 arch/mips/cavium-octeon/executive/cvmx-helper-xaui.c mode.s.en = 1; mode 78 arch/mips/cavium-octeon/executive/cvmx-helper-xaui.c cvmx_write_csr(CVMX_GMXX_INF_MODE(interface), mode.u64); mode 146 arch/mips/cavium-octeon/executive/cvmx-helper.c union cvmx_gmxx_inf_mode mode; mode 218 arch/mips/cavium-octeon/executive/cvmx-helper.c mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); mode 221 arch/mips/cavium-octeon/executive/cvmx-helper.c switch (mode.cn61xx.mode) { mode 230 arch/mips/cavium-octeon/executive/cvmx-helper.c if (!mode.s.en) mode 233 arch/mips/cavium-octeon/executive/cvmx-helper.c if (mode.s.type) mode 246 arch/mips/cavium-octeon/executive/cvmx-helper.c union cvmx_gmxx_inf_mode mode; mode 248 arch/mips/cavium-octeon/executive/cvmx-helper.c mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); mode 253 arch/mips/cavium-octeon/executive/cvmx-helper.c switch (mode.cn68xx.mode) { mode 288 arch/mips/cavium-octeon/executive/cvmx-helper.c union cvmx_gmxx_inf_mode mode; mode 327 arch/mips/cavium-octeon/executive/cvmx-helper.c mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); mode 330 arch/mips/cavium-octeon/executive/cvmx-helper.c switch (mode.cn52xx.mode) { mode 343 arch/mips/cavium-octeon/executive/cvmx-helper.c if (!mode.s.en) mode 346 arch/mips/cavium-octeon/executive/cvmx-helper.c if (mode.s.type) { mode 381 arch/mips/cavium-octeon/executive/cvmx-helper.c port_config.s.mode = CVMX_HELPER_INPUT_PORT_SKIP_MODE; mode 78 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c union cvmx_gmxx_inf_mode mode; mode 83 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); mode 86 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c if (mode.s.en) { mode 87 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c switch (mode.cn52xx.mode) { mode 102 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c if (mode.s.en) { mode 110 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c if (mode.s.type) mode 120 arch/mips/cavium-octeon/executive/cvmx-interrupt-rsl.c if (mode.s.type) mode 123 arch/mips/cavium-octeon/executive/cvmx-pko.c cvmx_helper_interface_mode_t mode; mode 142 arch/mips/cavium-octeon/executive/cvmx-pko.c mode = cvmx_helper_interface_get_mode(interface); mode 143 arch/mips/cavium-octeon/executive/cvmx-pko.c if (mode == CVMX_HELPER_INTERFACE_MODE_DISABLED) mode 152 arch/mips/cavium-octeon/executive/cvmx-pko.c config.s.pipe = (mode == CVMX_HELPER_INTERFACE_MODE_LOOP) ? mode 105 arch/mips/cavium-octeon/executive/cvmx-spi.c int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, int timeout, mode 114 arch/mips/cavium-octeon/executive/cvmx-spi.c INVOKE_CB(cvmx_spi_callbacks.reset_cb, interface, mode); mode 117 arch/mips/cavium-octeon/executive/cvmx-spi.c INVOKE_CB(cvmx_spi_callbacks.calendar_setup_cb, interface, mode, mode 121 arch/mips/cavium-octeon/executive/cvmx-spi.c INVOKE_CB(cvmx_spi_callbacks.clock_detect_cb, interface, mode, timeout); mode 124 arch/mips/cavium-octeon/executive/cvmx-spi.c INVOKE_CB(cvmx_spi_callbacks.training_cb, interface, mode, timeout); mode 127 arch/mips/cavium-octeon/executive/cvmx-spi.c INVOKE_CB(cvmx_spi_callbacks.calendar_sync_cb, interface, mode, mode 131 arch/mips/cavium-octeon/executive/cvmx-spi.c INVOKE_CB(cvmx_spi_callbacks.interface_up_cb, interface, mode); mode 150 arch/mips/cavium-octeon/executive/cvmx-spi.c int cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode, int timeout) mode 157 arch/mips/cavium-octeon/executive/cvmx-spi.c cvmx_dprintf("SPI%d: Restart %s\n", interface, modes[mode]); mode 160 arch/mips/cavium-octeon/executive/cvmx-spi.c INVOKE_CB(cvmx_spi_callbacks.reset_cb, interface, mode); mode 166 arch/mips/cavium-octeon/executive/cvmx-spi.c INVOKE_CB(cvmx_spi_callbacks.clock_detect_cb, interface, mode, timeout); mode 169 arch/mips/cavium-octeon/executive/cvmx-spi.c INVOKE_CB(cvmx_spi_callbacks.training_cb, interface, mode, timeout); mode 172 arch/mips/cavium-octeon/executive/cvmx-spi.c INVOKE_CB(cvmx_spi_callbacks.calendar_sync_cb, interface, mode, mode 176 arch/mips/cavium-octeon/executive/cvmx-spi.c INVOKE_CB(cvmx_spi_callbacks.interface_up_cb, interface, mode); mode 195 arch/mips/cavium-octeon/executive/cvmx-spi.c int cvmx_spi_reset_cb(int interface, cvmx_spi_mode_t mode) mode 311 arch/mips/cavium-octeon/executive/cvmx-spi.c int cvmx_spi_calendar_setup_cb(int interface, cvmx_spi_mode_t mode, mode 316 arch/mips/cavium-octeon/executive/cvmx-spi.c if (mode & CVMX_SPI_MODE_RX_HALFPLEX) { mode 350 arch/mips/cavium-octeon/executive/cvmx-spi.c if (mode & CVMX_SPI_MODE_TX_HALFPLEX) { mode 430 arch/mips/cavium-octeon/executive/cvmx-spi.c int cvmx_spi_clock_detect_cb(int interface, cvmx_spi_mode_t mode, int timeout) mode 508 arch/mips/cavium-octeon/executive/cvmx-spi.c int cvmx_spi_training_cb(int interface, cvmx_spi_mode_t mode, int timeout) mode 577 arch/mips/cavium-octeon/executive/cvmx-spi.c int cvmx_spi_calendar_sync_cb(int interface, cvmx_spi_mode_t mode, int timeout) mode 580 arch/mips/cavium-octeon/executive/cvmx-spi.c if (mode & CVMX_SPI_MODE_RX_HALFPLEX) { mode 592 arch/mips/cavium-octeon/executive/cvmx-spi.c if (mode & CVMX_SPI_MODE_TX_HALFPLEX) { mode 633 arch/mips/cavium-octeon/executive/cvmx-spi.c int cvmx_spi_interface_up_cb(int interface, cvmx_spi_mode_t mode) mode 639 arch/mips/cavium-octeon/executive/cvmx-spi.c if (mode & CVMX_SPI_MODE_RX_HALFPLEX) { mode 647 arch/mips/cavium-octeon/executive/cvmx-spi.c if (mode & CVMX_SPI_MODE_TX_HALFPLEX) { mode 195 arch/mips/include/asm/asmmacro.h bgez \tmp, 10f # 16 register mode? mode 135 arch/mips/include/asm/compat.h compat_mode_t mode; mode 205 arch/mips/include/asm/dma.h static __inline__ void set_dma_mode(unsigned int dmanr, char mode) mode 208 arch/mips/include/asm/dma.h dma_outb(mode | dmanr, DMA1_MODE_REG); mode 210 arch/mips/include/asm/dma.h dma_outb(mode | (dmanr&3), DMA2_MODE_REG); mode 54 arch/mips/include/asm/fpu.h static inline int __enable_fpu(enum fpu_mode mode) mode 58 arch/mips/include/asm/fpu.h switch (mode) { mode 87 arch/mips/include/asm/fpu.h fr = (int)mode & FPU_FR_MASK; mode 120 arch/mips/include/asm/fpu.h enum fpu_mode mode; mode 124 arch/mips/include/asm/fpu.h mode = FPU_HYBRID; mode 126 arch/mips/include/asm/fpu.h mode = !test_thread_flag(TIF_32BIT_FPREGS); mode 128 arch/mips/include/asm/fpu.h ret = __enable_fpu(mode); mode 133 arch/mips/include/asm/fpu.h if (mode == FPU_64BIT || mode == FPU_HYBRID) mode 258 arch/mips/include/asm/fpu.h static inline int __enable_fpu(enum fpu_mode mode) mode 21 arch/mips/include/asm/jazzdma.h extern void vdma_set_mode(int channel, int mode); mode 815 arch/mips/include/asm/mach-au1x00/au1000.h void (*set_phy_mode)(int mode); mode 114 arch/mips/include/asm/mach-au1x00/au1000_dma.h unsigned int mode; mode 234 arch/mips/include/asm/mach-au1x00/au1000_dma.h u32 mode; mode 244 arch/mips/include/asm/mach-au1x00/au1000_dma.h mode = chan->mode | (chan->dev_id << DMA_DID_BIT); mode 246 arch/mips/include/asm/mach-au1x00/au1000_dma.h mode |= DMA_IE; mode 248 arch/mips/include/asm/mach-au1x00/au1000_dma.h __raw_writel(~mode, chan->io + DMA_MODE_CLEAR); mode 249 arch/mips/include/asm/mach-au1x00/au1000_dma.h __raw_writel(mode, chan->io + DMA_MODE_SET); mode 255 arch/mips/include/asm/mach-au1x00/au1000_dma.h static inline void set_dma_mode(unsigned int dmanr, unsigned int mode) mode 266 arch/mips/include/asm/mach-au1x00/au1000_dma.h mode &= (DMA_BE | DMA_DR | DMA_TS8 | DMA_DW_MASK | DMA_NC); mode 267 arch/mips/include/asm/mach-au1x00/au1000_dma.h chan->mode &= ~(DMA_BE | DMA_DR | DMA_TS8 | DMA_DW_MASK | DMA_NC); mode 268 arch/mips/include/asm/mach-au1x00/au1000_dma.h chan->mode |= mode; mode 277 arch/mips/include/asm/mach-au1x00/au1000_dma.h return chan->mode; mode 301 arch/mips/include/asm/mach-au1x00/au1000_dma.h if (chan->mode & DMA_DS) /* second bank of device IDs */ mode 445 arch/mips/include/asm/mach-au1x00/au1000_dma.h if ((chan->mode & DMA_DW_MASK) == DMA_DW16) mode 447 arch/mips/include/asm/mach-au1x00/au1000_dma.h else if ((chan->mode & DMA_DW_MASK) == DMA_DW32) mode 171 arch/mips/include/asm/mach-au1x00/au1xxx_ide.h #define SBC_IDE_TIMING(mode) \ mode 172 arch/mips/include/asm/mach-au1x00/au1xxx_ide.h (SBC_IDE_##mode##_TWCS | \ mode 173 arch/mips/include/asm/mach-au1x00/au1xxx_ide.h SBC_IDE_##mode##_TCSH | \ mode 174 arch/mips/include/asm/mach-au1x00/au1xxx_ide.h SBC_IDE_##mode##_TCSOFF | \ mode 175 arch/mips/include/asm/mach-au1x00/au1xxx_ide.h SBC_IDE_##mode##_TWP | \ mode 176 arch/mips/include/asm/mach-au1x00/au1xxx_ide.h SBC_IDE_##mode##_TCSW | \ mode 177 arch/mips/include/asm/mach-au1x00/au1xxx_ide.h SBC_IDE_##mode##_TPM | \ mode 178 arch/mips/include/asm/mach-au1x00/au1xxx_ide.h SBC_IDE_##mode##_TA) mode 67 arch/mips/include/asm/mach-generic/floppy.h static inline void fd_set_dma_mode(char mode) mode 69 arch/mips/include/asm/mach-generic/floppy.h set_dma_mode(FLOPPY_DMA, mode); mode 61 arch/mips/include/asm/mach-jazz/floppy.h static inline void fd_set_dma_mode(char mode) mode 63 arch/mips/include/asm/mach-jazz/floppy.h vdma_set_mode(JAZZ_FLOPPY_DMA, mode); mode 134 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h #define BASIC_MODE_REG_VALUE(mode, ogpio) \ mode 135 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h (mode << BASIC_MODE_REG_SHIFT(ogpio)) mode 147 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h #define BASIC_MODE(mode, gpio) \ mode 148 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h BASIC_MODE_REG_VALUE(mode, OFFSET_GPIO_NUMBER(gpio)) mode 317 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h static inline int msp_gpio_pin_mode(enum msp_gpio_mode mode, unsigned int gpio) mode 321 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h if ((1 << gpio) & ~MSP_GPIO_MODE_ALLOWED[mode]) mode 329 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h newmode = BASIC_MODE(mode, gpio); mode 332 arch/mips/include/asm/mach-pmcs-msp71xx/msp_gpio_macros.h if (mode == MSP_GPIO_INPUT) mode 84 arch/mips/include/asm/mach-pmcs-msp71xx/msp_usb.h u32 mode; /* 0xa8: USB controller mode */ mode 97 arch/mips/include/asm/mach-pmcs-msp71xx/msp_usb.h u32 mode; /* 0xa8: USB controller mode */ mode 1730 arch/mips/include/asm/octeon/cvmx-agl-defs.h uint64_t mode:1; mode 1732 arch/mips/include/asm/octeon/cvmx-agl-defs.h uint64_t mode:1; mode 267 arch/mips/include/asm/octeon/cvmx-asxx-defs.h uint64_t mode:1; mode 269 arch/mips/include/asm/octeon/cvmx-asxx-defs.h uint64_t mode:1; mode 171 arch/mips/include/asm/octeon/cvmx-ciu-defs.h __BITFIELD_FIELD(uint64_t mode:2, mode 371 arch/mips/include/asm/octeon/cvmx-gmxx-defs.h uint64_t mode:3; mode 381 arch/mips/include/asm/octeon/cvmx-gmxx-defs.h uint64_t mode:3; mode 418 arch/mips/include/asm/octeon/cvmx-gmxx-defs.h uint64_t mode:2; mode 426 arch/mips/include/asm/octeon/cvmx-gmxx-defs.h uint64_t mode:2; mode 437 arch/mips/include/asm/octeon/cvmx-gmxx-defs.h uint64_t mode:1; mode 445 arch/mips/include/asm/octeon/cvmx-gmxx-defs.h uint64_t mode:1; mode 458 arch/mips/include/asm/octeon/cvmx-gmxx-defs.h uint64_t mode:1; mode 466 arch/mips/include/asm/octeon/cvmx-gmxx-defs.h uint64_t mode:1; mode 479 arch/mips/include/asm/octeon/cvmx-gmxx-defs.h uint64_t mode:3; mode 487 arch/mips/include/asm/octeon/cvmx-gmxx-defs.h uint64_t mode:3; mode 45 arch/mips/include/asm/octeon/cvmx-helper-util.h *cvmx_helper_interface_mode_to_string(cvmx_helper_interface_mode_t mode); mode 610 arch/mips/include/asm/octeon/cvmx-pcsx-defs.h uint64_t mode:1; mode 616 arch/mips/include/asm/octeon/cvmx-pcsx-defs.h uint64_t mode:1; mode 1337 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t mode:2; mode 1343 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t mode:2; mode 1388 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t mode:2; mode 1394 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t mode:2; mode 1427 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t mode:2; mode 1433 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t mode:2; mode 1477 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t mode:2; mode 1483 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t mode:2; mode 1537 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t mode:2; mode 1543 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t mode:2; mode 1589 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t mode:2; mode 1595 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t mode:2; mode 1643 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t mode:2; mode 1649 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t mode:2; mode 2395 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t mode:1; mode 2401 arch/mips/include/asm/octeon/cvmx-pip-defs.h uint64_t mode:1; mode 2126 arch/mips/include/asm/octeon/cvmx-pko-defs.h uint64_t mode:2; mode 2128 arch/mips/include/asm/octeon/cvmx-pko-defs.h uint64_t mode:2; mode 49 arch/mips/include/asm/octeon/cvmx-spi.h int (*reset_cb) (int interface, cvmx_spi_mode_t mode); mode 52 arch/mips/include/asm/octeon/cvmx-spi.h int (*calendar_setup_cb) (int interface, cvmx_spi_mode_t mode, mode 56 arch/mips/include/asm/octeon/cvmx-spi.h int (*clock_detect_cb) (int interface, cvmx_spi_mode_t mode, mode 60 arch/mips/include/asm/octeon/cvmx-spi.h int (*training_cb) (int interface, cvmx_spi_mode_t mode, int timeout); mode 63 arch/mips/include/asm/octeon/cvmx-spi.h int (*calendar_sync_cb) (int interface, cvmx_spi_mode_t mode, mode 67 arch/mips/include/asm/octeon/cvmx-spi.h int (*interface_up_cb) (int interface, cvmx_spi_mode_t mode); mode 97 arch/mips/include/asm/octeon/cvmx-spi.h extern int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, mode 113 arch/mips/include/asm/octeon/cvmx-spi.h extern int cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode, mode 183 arch/mips/include/asm/octeon/cvmx-spi.h extern int cvmx_spi_reset_cb(int interface, cvmx_spi_mode_t mode); mode 200 arch/mips/include/asm/octeon/cvmx-spi.h extern int cvmx_spi_calendar_setup_cb(int interface, cvmx_spi_mode_t mode, mode 217 arch/mips/include/asm/octeon/cvmx-spi.h extern int cvmx_spi_clock_detect_cb(int interface, cvmx_spi_mode_t mode, mode 234 arch/mips/include/asm/octeon/cvmx-spi.h extern int cvmx_spi_training_cb(int interface, cvmx_spi_mode_t mode, mode 251 arch/mips/include/asm/octeon/cvmx-spi.h extern int cvmx_spi_calendar_sync_cb(int interface, cvmx_spi_mode_t mode, mode 267 arch/mips/include/asm/octeon/cvmx-spi.h extern int cvmx_spi_interface_up_cb(int interface, cvmx_spi_mode_t mode); mode 33 arch/mips/include/asm/pmon.h #define pmon_open(name, flags, mode) debug_vectors->open(name, flage, mode) mode 830 arch/mips/include/asm/sn/sn0/hubio.h mode: 2, /* Widget operation Mode */ mode 844 arch/mips/include/asm/sn/sn0/hubio.h #define iprb_mode iprb_fields_s.mode mode 443 arch/mips/jazz/jazzdma.c void vdma_set_mode(int channel, int mode) mode 447 arch/mips/jazz/jazzdma.c mode); mode 479 arch/mips/jazz/jazzdma.c switch (mode) { mode 497 arch/mips/jazz/jazzdma.c mode); mode 63 arch/mips/kernel/irq_txx9.c unsigned char mode; mode 108 arch/mips/kernel/irq_txx9.c if (unlikely(TXx9_IRCR_EDGE(txx9irq[irq_nr].mode))) mode 118 arch/mips/kernel/irq_txx9.c int mode; mode 123 arch/mips/kernel/irq_txx9.c case IRQF_TRIGGER_RISING: mode = TXx9_IRCR_UP; break; mode 124 arch/mips/kernel/irq_txx9.c case IRQF_TRIGGER_FALLING: mode = TXx9_IRCR_DOWN; break; mode 125 arch/mips/kernel/irq_txx9.c case IRQF_TRIGGER_HIGH: mode = TXx9_IRCR_HIGH; break; mode 126 arch/mips/kernel/irq_txx9.c case IRQF_TRIGGER_LOW: mode = TXx9_IRCR_LOW; break; mode 134 arch/mips/kernel/irq_txx9.c cr |= (mode & 0x3) << ofs; mode 136 arch/mips/kernel/irq_txx9.c txx9irq[irq_nr].mode = mode; mode 156 arch/mips/kernel/irq_txx9.c txx9irq[i].mode = TXx9_IRCR_LOW; mode 128 arch/mips/kernel/linux32.c asmlinkage long sys32_fallocate(int fd, int mode, unsigned offset_a2, mode 131 arch/mips/kernel/linux32.c return ksys_fallocate(fd, mode, merge_64(offset_a2, offset_a3), mode 464 arch/mips/kvm/mips.c smp_store_mb(vcpu->mode, IN_GUEST_MODE); mode 1291 arch/mips/kvm/mips.c vcpu->mode = OUTSIDE_GUEST_MODE; mode 1466 arch/mips/kvm/mips.c smp_store_mb(vcpu->mode, IN_GUEST_MODE); mode 1145 arch/mips/kvm/trap_emul.c smp_store_mb(vcpu->mode, READING_SHADOW_PAGE_TABLES); mode 1173 arch/mips/kvm/trap_emul.c smp_store_release(&vcpu->mode, OUTSIDE_GUEST_MODE); mode 92 arch/mips/lasat/picvue.c static void pvc_write(u8 byte, int mode) mode 96 arch/mips/lasat/picvue.c if (mode == MODE_DATA) mode 103 arch/mips/lasat/picvue.c if (mode == MODE_DATA) mode 164 arch/mips/lasat/sysctl.c .mode = 0444, mode 171 arch/mips/lasat/sysctl.c .mode = 0444, mode 178 arch/mips/lasat/sysctl.c .mode = 0444, mode 185 arch/mips/lasat/sysctl.c .mode = 0644, mode 193 arch/mips/lasat/sysctl.c .mode = 0644, mode 200 arch/mips/lasat/sysctl.c .mode = 0644, mode 209 arch/mips/lasat/sysctl.c .mode = 0600, mode 216 arch/mips/lasat/sysctl.c .mode = 0644, mode 224 arch/mips/lasat/sysctl.c .mode = 0644, mode 232 arch/mips/lasat/sysctl.c .mode = 0444, mode 239 arch/mips/lasat/sysctl.c .mode = 0444, mode 248 arch/mips/lasat/sysctl.c .mode = 0555, mode 7 arch/mips/lib/libgcc.h typedef int word_type __attribute__ ((mode (__word__))); mode 35 arch/mips/lib/libgcc.h typedef int ti_type __attribute__((mode(TI))); mode 894 arch/mips/mm/tlbex.c enum vmalloc64_mode mode) mode 904 arch/mips/mm/tlbex.c if (mode != not_refill && check_for_high_segbits) { mode 927 arch/mips/mm/tlbex.c if (mode != not_refill && check_for_high_segbits) { mode 930 arch/mips/mm/tlbex.c if (mode == refill_scratch && scratch_reg >= 0) mode 950 arch/mips/mm/tlbex.c if (mode == refill_scratch) { mode 1690 arch/mips/mm/tlbex.c unsigned int mode, unsigned int scratch) mode 1692 arch/mips/mm/tlbex.c unsigned int hwmode = mode & (_PAGE_VALID | _PAGE_DIRTY); mode 1693 arch/mips/mm/tlbex.c unsigned int swmode = mode & ~hwmode; mode 1700 arch/mips/mm/tlbex.c uasm_i_ori(p, pte, pte, mode); mode 1798 arch/mips/mm/tlbex.c unsigned int mode = _PAGE_VALID | _PAGE_ACCESSED; mode 1800 arch/mips/mm/tlbex.c iPTE_SW(p, r, pte, ptr, mode, scratch); mode 1838 arch/mips/mm/tlbex.c unsigned int mode = (_PAGE_ACCESSED | _PAGE_MODIFIED | _PAGE_VALID mode 1841 arch/mips/mm/tlbex.c iPTE_SW(p, r, pte, ptr, mode, scratch); mode 305 arch/mips/pci/pci-rt3883.c static void rt3883_pci_preinit(struct rt3883_pci_controller *rpc, unsigned mode) mode 316 arch/mips/pci/pci-rt3883.c if (mode & RT3883_PCI_MODE_PCIE) { mode 351 arch/mips/pci/pci-rt3883.c if (mode & RT3883_PCI_MODE_PCI) { mode 356 arch/mips/pci/pci-rt3883.c if (mode & RT3883_PCI_MODE_PCIE) { mode 378 arch/mips/pci/pci-rt3883.c if (mode & RT3883_PCI_MODE_PCIE) { mode 417 arch/mips/pci/pci-rt3883.c int mode; mode 459 arch/mips/pci/pci-rt3883.c mode = RT3883_PCI_MODE_NONE; mode 472 arch/mips/pci/pci-rt3883.c mode |= RT3883_PCI_MODE_PCIE; mode 477 arch/mips/pci/pci-rt3883.c mode |= RT3883_PCI_MODE_PCI; mode 482 arch/mips/pci/pci-rt3883.c if (mode == RT3883_PCI_MODE_NONE) { mode 489 arch/mips/pci/pci-rt3883.c (mode & RT3883_PCI_MODE_PCI) ? " PCI" : "", mode 490 arch/mips/pci/pci-rt3883.c (mode & RT3883_PCI_MODE_PCIE) ? " PCIe" : ""); mode 492 arch/mips/pci/pci-rt3883.c rt3883_pci_preinit(rpc, mode); mode 536 arch/mips/pci/pci-rt3883.c if (mode == RT3883_PCI_MODE_PCIE) { mode 62 arch/mips/pic32/pic32mzda/config.c int pic32_set_lcd_mode(int mode) mode 64 arch/mips/pic32/pic32mzda/config.c u32 mask = mode ? BIT(30) : 0; mode 15 arch/mips/pic32/pic32mzda/pic32mzda.h int pic32_set_lcd_mode(int mode); mode 50 arch/mips/txx9/generic/irq_tx4939.c unsigned char mode; mode 95 arch/mips/txx9/generic/irq_tx4939.c if (TXx9_IRCR_EDGE(tx4939irq[irq_nr].mode)) { mode 110 arch/mips/txx9/generic/irq_tx4939.c int mode; mode 116 arch/mips/txx9/generic/irq_tx4939.c mode = TXx9_IRCR_UP; mode 119 arch/mips/txx9/generic/irq_tx4939.c mode = TXx9_IRCR_DOWN; mode 122 arch/mips/txx9/generic/irq_tx4939.c mode = TXx9_IRCR_HIGH; mode 125 arch/mips/txx9/generic/irq_tx4939.c mode = TXx9_IRCR_LOW; mode 140 arch/mips/txx9/generic/irq_tx4939.c cr |= (mode & 0x3) << ofs; mode 142 arch/mips/txx9/generic/irq_tx4939.c tx4939irq[irq_nr].mode = mode; mode 178 arch/mips/txx9/generic/irq_tx4939.c tx4939irq[i].mode = TXx9_IRCR_LOW; mode 948 arch/mips/txx9/generic/setup.c dev->bindata_attr.attr.mode = S_IRUSR | S_IWUSR; mode 283 arch/mips/txx9/rbtx4938/setup.c .mode = SPI_MODE_1 | SPI_CS_HIGH, mode 20 arch/nds32/kernel/process.c extern void setup_mm_for_reboot(char mode); mode 22 arch/nds32/kernel/process.c extern inline void arch_reset(char mode) mode 24 arch/nds32/kernel/process.c if (mode == 's') { mode 541 arch/nds32/mm/alignment.c .mode = 0666, mode 549 arch/nds32/mm/alignment.c .mode = 0644, mode 559 arch/nds32/mm/alignment.c .mode = 0555, mode 73 arch/nds32/mm/mm-nds32.c void setup_mm_for_reboot(char mode) mode 117 arch/parisc/include/asm/compat.h compat_mode_t mode; mode 142 arch/parisc/include/asm/dma.h static __inline__ void set_dma_mode(unsigned int dmanr, char mode) mode 42 arch/parisc/include/asm/floppy.h #define fd_dma_setup(addr, size, mode, io) SW._dma_setup(addr, size, mode, io) mode 194 arch/parisc/include/asm/floppy.h static int vdma_dma_setup(char *addr, unsigned long size, int mode, int io) mode 198 arch/parisc/include/asm/floppy.h virtual_dma_mode = (mode == DMA_MODE_WRITE); mode 205 arch/parisc/include/asm/floppy.h static int hard_dma_setup(char *addr, unsigned long size, int mode, int io) mode 216 arch/parisc/include/asm/floppy.h set_dma_mode(FLOPPY_DMA,mode); mode 228 arch/parisc/include/asm/floppy.h int (*_dma_setup)(char *addr, unsigned long size, int mode, int io); mode 25 arch/parisc/include/uapi/asm/ipcbuf.h __kernel_mode_t mode; mode 609 arch/parisc/include/uapi/asm/pdc.h int mode; mode 888 arch/parisc/kernel/firmware.c initiator->mode = pdc_result[5]; mode 891 arch/parisc/kernel/firmware.c initiator->mode = -1; mode 355 arch/parisc/kernel/sys_parisc.c asmlinkage long parisc_fallocate(int fd, int mode, u32 offhi, u32 offlo, mode 358 arch/parisc/kernel/sys_parisc.c return ksys_fallocate(fd, mode, ((u64)offhi << 32) | offlo, mode 45 arch/powerpc/boot/redboot.h short mode; /* Type of pixels (packed, indexed) */ mode 26 arch/powerpc/include/asm/cell-pmu.h #define CBE_PM_TRACE_MODE_SET(mode) (((mode) & 0x3) << 28) mode 142 arch/powerpc/include/asm/compat.h compat_mode_t mode; mode 607 arch/powerpc/include/asm/cpm1.h int cpm1_clk_setup(enum cpm_clk_target target, int clock, int mode); mode 1136 arch/powerpc/include/asm/cpm2.h extern int cpm2_clk_setup(enum cpm_clk_target target, int clock, int mode); mode 222 arch/powerpc/include/asm/dma.h static __inline__ void set_dma_mode(unsigned int dmanr, char mode) mode 225 arch/powerpc/include/asm/dma.h dma_outb(mode | dmanr, DMA1_MODE_REG); mode 227 arch/powerpc/include/asm/dma.h dma_outb(mode | (dmanr & 3), DMA2_MODE_REG); mode 135 arch/powerpc/include/asm/eeh.h int mode; /* EEH mode */ mode 23 arch/powerpc/include/asm/floppy.h #define fd_set_dma_mode(mode) set_dma_mode(FLOPPY_DMA, mode) mode 33 arch/powerpc/include/asm/floppy.h #define fd_dma_setup(addr,size,mode,io) fd_ops->_dma_setup(addr,size,mode,io) mode 41 arch/powerpc/include/asm/floppy.h int (*_dma_setup)(char *addr, unsigned long size, int mode, int io); mode 116 arch/powerpc/include/asm/floppy.h static int vdma_dma_setup(char *addr, unsigned long size, int mode, int io) mode 120 arch/powerpc/include/asm/floppy.h virtual_dma_mode = (mode == DMA_MODE_WRITE); mode 127 arch/powerpc/include/asm/floppy.h static int hard_dma_setup(char *addr, unsigned long size, int mode, int io) mode 136 arch/powerpc/include/asm/floppy.h dir = (mode == DMA_MODE_READ) ? PCI_DMA_FROMDEVICE : PCI_DMA_TODEVICE; mode 154 arch/powerpc/include/asm/floppy.h fd_set_dma_mode(mode); mode 316 arch/powerpc/include/asm/kvm_ppc.h int (*set_smt_mode)(struct kvm *kvm, unsigned long mode, mode 71 arch/powerpc/include/asm/mpc52xx.h u32 mode; /* SDRAM + 0x00 */ mode 109 arch/powerpc/include/asm/mpc52xx.h u32 mode; /* GPTx + 0x00 */ mode 154 arch/powerpc/include/asm/mpc52xx_psc.h u8 mode; /* PSC + 0x00 */ mode 208 arch/powerpc/include/asm/opal.h int64_t opal_pci_set_phb_cxl_mode(uint64_t phb_id, uint64_t mode, uint64_t pe_number); mode 89 arch/powerpc/include/asm/pmac_low_i2c.h extern int pmac_i2c_setmode(struct pmac_i2c_bus *bus, int mode); mode 92 arch/powerpc/include/asm/pmac_pfunc.h int (*set_i2c_mode)(PMF_STD_ARGS, int mode); mode 28 arch/powerpc/include/asm/pnv-pci.h int pnv_phb_to_cxl_mode(struct pci_dev *dev, uint64_t mode); mode 60 arch/powerpc/include/asm/ppc-pci.h void eeh_pe_dev_mode_mark(struct eeh_pe *pe, int mode); mode 522 arch/powerpc/include/asm/ps3av.h u8 mode; /* in: hdmi_mode */ mode 230 arch/powerpc/include/asm/spu.h unsigned int flags, umode_t mode, mode 31 arch/powerpc/include/asm/vio.h #define h_vio_signal(ua, mode) \ mode 32 arch/powerpc/include/asm/vio.h plpar_hcall_norets(H_VIO_SIGNAL, ua, mode) mode 28 arch/powerpc/include/uapi/asm/ipcbuf.h __kernel_mode_t mode; mode 197 arch/powerpc/kernel/eeh.c if (edev->mode & EEH_DEV_BRIDGE) { mode 996 arch/powerpc/kernel/eeh.c if (edev->mode & EEH_DEV_BRIDGE) mode 1194 arch/powerpc/kernel/eeh.c edev->mode &= ~EEH_DEV_SYSFS; mode 1201 arch/powerpc/kernel/eeh.c edev->mode |= EEH_DEV_NO_HANDLER; mode 1309 arch/powerpc/kernel/eeh.c edev->mode |= EEH_DEV_DISCONNECTED; mode 1317 arch/powerpc/kernel/eeh.c edev->mode |= EEH_DEV_NO_HANDLER; mode 1321 arch/powerpc/kernel/eeh.c edev->mode &= ~EEH_DEV_SYSFS; mode 95 arch/powerpc/kernel/eeh_driver.c return !edev || (edev->mode & EEH_DEV_REMOVED); mode 169 arch/powerpc/kernel/eeh_driver.c edev->mode |= EEH_DEV_IRQ_DISABLED; mode 182 arch/powerpc/kernel/eeh_driver.c if ((edev->mode) & EEH_DEV_IRQ_DISABLED) { mode 183 arch/powerpc/kernel/eeh_driver.c edev->mode &= ~EEH_DEV_IRQ_DISABLED; mode 294 arch/powerpc/kernel/eeh_driver.c else if (edev->mode & EEH_DEV_NO_HANDLER) mode 534 arch/powerpc/kernel/eeh_driver.c edev->mode |= EEH_DEV_DISCONNECTED; mode 559 arch/powerpc/kernel/eeh_driver.c if (!(edev->mode & EEH_DEV_DISCONNECTED)) mode 562 arch/powerpc/kernel/eeh_driver.c edev->mode &= ~(EEH_DEV_DISCONNECTED | EEH_DEV_IRQ_DISABLED); mode 937 arch/powerpc/kernel/eeh_driver.c edev->mode &= ~EEH_DEV_NO_HANDLER; mode 1069 arch/powerpc/kernel/eeh_driver.c edev->mode &= ~EEH_DEV_NO_HANDLER; mode 1205 arch/powerpc/kernel/eeh_driver.c edev->mode &= ~EEH_DEV_NO_HANDLER; mode 623 arch/powerpc/kernel/eeh_pe.c int mode = *((int *)flag); mode 625 arch/powerpc/kernel/eeh_pe.c edev->mode |= mode; mode 634 arch/powerpc/kernel/eeh_pe.c void eeh_pe_dev_mode_mark(struct eeh_pe *pe, int mode) mode 636 arch/powerpc/kernel/eeh_pe.c eeh_pe_dev_traverse(pe, __eeh_pe_dev_mode_mark, &mode); mode 710 arch/powerpc/kernel/eeh_pe.c if (!(edev->mode & (EEH_DEV_ROOT_PORT | EEH_DEV_DS_PORT))) mode 849 arch/powerpc/kernel/eeh_pe.c if (edev->mode & EEH_DEV_BRIDGE) mode 53 arch/powerpc/kernel/eeh_sysfs.c EEH_SHOW_ATTR(eeh_mode, mode, "0x%x"); mode 161 arch/powerpc/kernel/eeh_sysfs.c if (edev && (edev->mode & EEH_DEV_SYSFS)) mode 172 arch/powerpc/kernel/eeh_sysfs.c edev->mode |= EEH_DEV_SYSFS; mode 185 arch/powerpc/kernel/eeh_sysfs.c edev->mode &= ~EEH_DEV_SYSFS; mode 196 arch/powerpc/kernel/eeh_sysfs.c edev->mode &= ~EEH_DEV_SYSFS; mode 89 arch/powerpc/kernel/idle.c .mode = 0644, mode 97 arch/powerpc/kernel/idle.c .mode = 0555, mode 1597 arch/powerpc/kernel/pci-common.c int mode; mode 1624 arch/powerpc/kernel/pci-common.c mode = PCI_PROBE_NORMAL; mode 1626 arch/powerpc/kernel/pci-common.c mode = hose->controller_ops.probe_mode(bus); mode 1627 arch/powerpc/kernel/pci-common.c pr_debug(" probe mode: %d\n", mode); mode 1628 arch/powerpc/kernel/pci-common.c if (mode == PCI_PROBE_DEVTREE) mode 1631 arch/powerpc/kernel/pci-common.c if (mode == PCI_PROBE_NORMAL) { mode 110 arch/powerpc/kernel/pci-hotplug.c int slotno, mode, max; mode 119 arch/powerpc/kernel/pci-hotplug.c mode = PCI_PROBE_NORMAL; mode 121 arch/powerpc/kernel/pci-hotplug.c mode = phb->controller_ops.probe_mode(bus); mode 123 arch/powerpc/kernel/pci-hotplug.c if (mode == PCI_PROBE_DEVTREE) { mode 126 arch/powerpc/kernel/pci-hotplug.c } else if (mode == PCI_PROBE_NORMAL && mode 256 arch/powerpc/kernel/pci_of_scan.c int len, i, mode; mode 336 arch/powerpc/kernel/pci_of_scan.c mode = PCI_PROBE_NORMAL; mode 338 arch/powerpc/kernel/pci_of_scan.c mode = phb->controller_ops.probe_mode(bus); mode 339 arch/powerpc/kernel/pci_of_scan.c pr_debug(" probe mode: %d\n", mode); mode 341 arch/powerpc/kernel/pci_of_scan.c if (mode == PCI_PROBE_DEVTREE) mode 343 arch/powerpc/kernel/pci_of_scan.c else if (mode == PCI_PROBE_NORMAL) mode 376 arch/powerpc/kernel/pci_of_scan.c if (edev && (edev->mode & EEH_DEV_REMOVED)) mode 2774 arch/powerpc/kernel/ptrace.c int mode = bp_info->addr_mode & PPC_BREAKPOINT_MODE_MASK; mode 2788 arch/powerpc/kernel/ptrace.c if (mode == PPC_BREAKPOINT_MODE_MASK) { mode 2813 arch/powerpc/kernel/ptrace.c if (mode == PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE) mode 2815 arch/powerpc/kernel/ptrace.c else if (mode == PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE) mode 87 arch/powerpc/kernel/sys_ppc32.c asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offhi, u32 offlo, mode 90 arch/powerpc/kernel/sys_ppc32.c return ksys_fallocate(fd, mode, ((loff_t)offhi << 32) | offlo, mode 546 arch/powerpc/kernel/sysfs.c attr->attr.mode |= 0200; mode 72 arch/powerpc/kvm/book3s.c { "largepages_2M", VM_STAT(num_2M_pages, .mode = 0444) }, mode 73 arch/powerpc/kvm/book3s.c { "largepages_1G", VM_STAT(num_1G_pages, .mode = 0444) }, mode 1855 arch/powerpc/kvm/book3s_pr.c vcpu->mode = OUTSIDE_GUEST_MODE; mode 799 arch/powerpc/kvm/booke.c vcpu->mode = OUTSIDE_GUEST_MODE; mode 99 arch/powerpc/kvm/powerpc.c vcpu->mode = IN_GUEST_MODE; mode 2160 arch/powerpc/kvm/powerpc.c unsigned long mode = cap->args[0]; mode 2165 arch/powerpc/kvm/powerpc.c r = kvm->arch.kvm_ops->set_smt_mode(kvm, mode, flags); mode 1876 arch/powerpc/mm/book3s64/hash_utils.c unsigned long mode = htab_convert_pte_flags(pgprot_val(PAGE_KERNEL)); mode 1885 arch/powerpc/mm/book3s64/hash_utils.c ret = hpte_insert_repeating(hash, vpn, __pa(vaddr), mode, mode 400 arch/powerpc/perf/hv-24x7.c attr->attr.attr.mode = 0444; mode 55 arch/powerpc/perf/imc-pmu.c PMU_FORMAT_ATTR(mode, "config:33-40"); mode 134 arch/powerpc/perf/imc-pmu.c attr->attr.attr.mode = 0444; mode 111 arch/powerpc/platforms/4xx/cpm.c static void cpm_idle_config(int mode) mode 115 arch/powerpc/platforms/4xx/cpm.c if (idle_mode[mode].enabled) mode 121 arch/powerpc/platforms/4xx/cpm.c idle_mode[mode].enabled = 1; mode 223 arch/powerpc/platforms/512x/mpc512x_shared.c unsigned long mode, pix_fmt, res, bpp; mode 239 arch/powerpc/platforms/512x/mpc512x_shared.c mode = in_be32(&diu_reg->diu_mode); mode 240 arch/powerpc/platforms/512x/mpc512x_shared.c if (mode == MFB_MODE0) { mode 253 arch/powerpc/platforms/52xx/mpc52xx_common.c out_be32(&mpc52xx_wdt->mode, 0x00000000); mode 255 arch/powerpc/platforms/52xx/mpc52xx_common.c out_be32(&mpc52xx_wdt->mode, 0x00009004); mode 141 arch/powerpc/platforms/52xx/mpc52xx_gpt.c setbits32(&gpt->regs->mode, MPC52xx_GPT_MODE_IRQ_EN); mode 151 arch/powerpc/platforms/52xx/mpc52xx_gpt.c clrbits32(&gpt->regs->mode, MPC52xx_GPT_MODE_IRQ_EN); mode 171 arch/powerpc/platforms/52xx/mpc52xx_gpt.c reg = in_be32(&gpt->regs->mode) & ~MPC52xx_GPT_MODE_ICT_MASK; mode 176 arch/powerpc/platforms/52xx/mpc52xx_gpt.c out_be32(&gpt->regs->mode, reg); mode 245 arch/powerpc/platforms/52xx/mpc52xx_gpt.c u32 mode; mode 264 arch/powerpc/platforms/52xx/mpc52xx_gpt.c mode = in_be32(&gpt->regs->mode); mode 265 arch/powerpc/platforms/52xx/mpc52xx_gpt.c if ((mode & MPC52xx_GPT_MODE_MS_MASK) == 0) mode 266 arch/powerpc/platforms/52xx/mpc52xx_gpt.c out_be32(&gpt->regs->mode, mode | MPC52xx_GPT_MODE_MS_IC); mode 295 arch/powerpc/platforms/52xx/mpc52xx_gpt.c clrsetbits_be32(&gpt->regs->mode, MPC52xx_GPT_MODE_GPIO_MASK, r); mode 307 arch/powerpc/platforms/52xx/mpc52xx_gpt.c clrbits32(&gpt->regs->mode, MPC52xx_GPT_MODE_GPIO_MASK); mode 345 arch/powerpc/platforms/52xx/mpc52xx_gpt.c clrsetbits_be32(&gpt->regs->mode, MPC52xx_GPT_MODE_MS_MASK, mode 443 arch/powerpc/platforms/52xx/mpc52xx_gpt.c clrsetbits_be32(&gpt->regs->mode, clear, set); mode 481 arch/powerpc/platforms/52xx/mpc52xx_gpt.c clrbits32(&gpt->regs->mode, MPC52xx_GPT_MODE_COUNTER_ENABLE); mode 532 arch/powerpc/platforms/52xx/mpc52xx_gpt.c out_8((u8 *) &gpt_wdt->regs->mode, MPC52xx_GPT_MODE_WDT_PING); mode 638 arch/powerpc/platforms/52xx/mpc52xx_gpt.c clrbits32(&gpt_wdt->regs->mode, mode 141 arch/powerpc/platforms/83xx/mpc836x_mds.c const char *mode; mode 178 arch/powerpc/platforms/83xx/mpc836x_mds.c mode = of_get_property(np, "mode", NULL); mode 179 arch/powerpc/platforms/83xx/mpc836x_mds.c if (mode && !strcmp(mode, "peripheral")) { mode 29 arch/powerpc/platforms/83xx/mpc837x_mds.c const void *phy_type, *mode; mode 55 arch/powerpc/platforms/83xx/mpc837x_mds.c mode = of_get_property(np, "dr_mode", NULL); mode 58 arch/powerpc/platforms/83xx/mpc837x_mds.c if (mode && !strcmp(mode, "peripheral")) mode 83 arch/powerpc/platforms/85xx/mpc85xx_cds.c unsigned long mode, void *cmd) mode 397 arch/powerpc/platforms/8xx/cpm1.c int cpm1_clk_setup(enum cpm_clk_target target, int clock, int mode) mode 512 arch/powerpc/platforms/8xx/cpm1.c if (mode == CPM_CLK_RTX) { mode 515 arch/powerpc/platforms/8xx/cpm1.c } else if (mode == CPM_CLK_RX) { mode 52 arch/powerpc/platforms/cell/cbe_thermal.c .attr = { .name = __stringify(_name), .mode = _mode }, \ mode 241 arch/powerpc/platforms/cell/cbe_thermal.c .attr = {.name = "temperature", .mode = 0400 }, mode 264 arch/powerpc/platforms/cell/cbe_thermal.c .attr = {.name = "temperature0", .mode = 0400 }, mode 269 arch/powerpc/platforms/cell/cbe_thermal.c .attr = {.name = "temperature1", .mode = 0400 }, mode 57 arch/powerpc/platforms/cell/spu_syscalls.c umode_t, mode, int, neighbor_fd) mode 70 arch/powerpc/platforms/cell/spu_syscalls.c ret = calls->create_thread(name, flags, mode, neighbor.file); mode 74 arch/powerpc/platforms/cell/spu_syscalls.c ret = calls->create_thread(name, flags, mode, NULL); mode 318 arch/powerpc/platforms/cell/spufs/backing_ops.c u32 mode) mode 330 arch/powerpc/platforms/cell/spufs/backing_ops.c prob->dma_querytype_RW = mode; mode 247 arch/powerpc/platforms/cell/spufs/hw_ops.c static int spu_hw_set_mfc_query(struct spu_context * ctx, u32 mask, u32 mode) mode 258 arch/powerpc/platforms/cell/spufs/hw_ops.c out_be32(&prob->dma_querytype_RW, mode); mode 76 arch/powerpc/platforms/cell/spufs/inode.c spufs_new_inode(struct super_block *sb, umode_t mode) mode 85 arch/powerpc/platforms/cell/spufs/inode.c inode->i_mode = mode; mode 109 arch/powerpc/platforms/cell/spufs/inode.c const struct file_operations *fops, umode_t mode, mode 119 arch/powerpc/platforms/cell/spufs/inode.c inode = spufs_new_inode(sb, S_IFREG | mode); mode 182 arch/powerpc/platforms/cell/spufs/inode.c const struct spufs_tree_descr *files, umode_t mode, mode 191 arch/powerpc/platforms/cell/spufs/inode.c files->mode & mode, files->size, ctx); mode 230 arch/powerpc/platforms/cell/spufs/inode.c umode_t mode) mode 236 arch/powerpc/platforms/cell/spufs/inode.c inode = spufs_new_inode(dir->i_sb, mode | S_IFDIR); mode 265 arch/powerpc/platforms/cell/spufs/inode.c mode, ctx); mode 267 arch/powerpc/platforms/cell/spufs/inode.c ret = spufs_fill_dir(dentry, spufs_dir_contents, mode, ctx); mode 271 arch/powerpc/platforms/cell/spufs/inode.c mode, ctx); mode 405 arch/powerpc/platforms/cell/spufs/inode.c struct vfsmount *mnt, int flags, umode_t mode, mode 440 arch/powerpc/platforms/cell/spufs/inode.c ret = spufs_mkdir(inode, dentry, flags, mode & 0777); mode 462 arch/powerpc/platforms/cell/spufs/inode.c spufs_mkgang(struct inode *dir, struct dentry *dentry, umode_t mode) mode 469 arch/powerpc/platforms/cell/spufs/inode.c inode = spufs_new_inode(dir->i_sb, mode | S_IFDIR); mode 526 arch/powerpc/platforms/cell/spufs/inode.c struct vfsmount *mnt, umode_t mode) mode 531 arch/powerpc/platforms/cell/spufs/inode.c ret = spufs_mkgang(inode, dentry, mode & 0777); mode 546 arch/powerpc/platforms/cell/spufs/inode.c unsigned int flags, umode_t mode, struct file *filp) mode 564 arch/powerpc/platforms/cell/spufs/inode.c mode &= ~current_umask(); mode 567 arch/powerpc/platforms/cell/spufs/inode.c ret = spufs_create_gang(dir, dentry, path->mnt, mode); mode 569 arch/powerpc/platforms/cell/spufs/inode.c ret = spufs_create_context(dir, dentry, path->mnt, flags, mode, mode 581 arch/powerpc/platforms/cell/spufs/inode.c umode_t mode; mode 646 arch/powerpc/platforms/cell/spufs/inode.c ctx->mode = result.uint_32 & S_IALLUGO; mode 695 arch/powerpc/platforms/cell/spufs/inode.c inode = spufs_new_inode(sb, S_IFDIR | ctx->mode); mode 762 arch/powerpc/platforms/cell/spufs/inode.c ctx->mode = 0755; mode 196 arch/powerpc/platforms/cell/spufs/spufs.h int (*set_mfc_query)(struct spu_context * ctx, u32 mask, u32 mode); mode 223 arch/powerpc/platforms/cell/spufs/spufs.h umode_t mode; mode 236 arch/powerpc/platforms/cell/spufs/spufs.h umode_t mode, struct file *filp); mode 64 arch/powerpc/platforms/cell/spufs/syscalls.c umode_t mode, struct file *neighbor) mode 73 arch/powerpc/platforms/cell/spufs/syscalls.c ret = spufs_create(&path, dentry, flags, mode, neighbor); mode 84 arch/powerpc/platforms/powermac/low_i2c.c int mode; /* current mode */ mode 404 arch/powerpc/platforms/powermac/low_i2c.c switch(bus->mode) { mode 580 arch/powerpc/platforms/powermac/low_i2c.c bus->mode = pmac_i2c_mode_std; mode 658 arch/powerpc/platforms/powermac/low_i2c.c u8 mode; mode 693 arch/powerpc/platforms/powermac/low_i2c.c switch(bus->mode) { mode 698 arch/powerpc/platforms/powermac/low_i2c.c hdr->mode = PMU_I2C_MODE_SIMPLE; mode 707 arch/powerpc/platforms/powermac/low_i2c.c if (bus->mode == pmac_i2c_mode_stdsub) mode 708 arch/powerpc/platforms/powermac/low_i2c.c hdr->mode = PMU_I2C_MODE_STDSUB; mode 710 arch/powerpc/platforms/powermac/low_i2c.c hdr->mode = PMU_I2C_MODE_COMBINED; mode 810 arch/powerpc/platforms/powermac/low_i2c.c bus->mode = pmac_i2c_mode_std; mode 855 arch/powerpc/platforms/powermac/low_i2c.c switch(bus->mode) { mode 869 arch/powerpc/platforms/powermac/low_i2c.c if (bus->mode == pmac_i2c_mode_stdsub) mode 933 arch/powerpc/platforms/powermac/low_i2c.c bus->mode = pmac_i2c_mode_std; mode 1096 arch/powerpc/platforms/powermac/low_i2c.c bus->mode = pmac_i2c_mode_std; mode 1116 arch/powerpc/platforms/powermac/low_i2c.c int pmac_i2c_setmode(struct pmac_i2c_bus *bus, int mode) mode 1123 arch/powerpc/platforms/powermac/low_i2c.c if (mode < pmac_i2c_mode_dumb || mode > pmac_i2c_mode_combined) { mode 1125 arch/powerpc/platforms/powermac/low_i2c.c " bus %pOF !\n", mode, bus->busnode); mode 1128 arch/powerpc/platforms/powermac/low_i2c.c bus->mode = mode; mode 1142 arch/powerpc/platforms/powermac/low_i2c.c " %d bytes, bus %pOF\n", bus->channel, addrdir, bus->mode, subsize, mode 1345 arch/powerpc/platforms/powermac/low_i2c.c static int pmac_i2c_do_set_mode(PMF_STD_ARGS, int mode) mode 1349 arch/powerpc/platforms/powermac/low_i2c.c return pmac_i2c_setmode(inst->bus, mode); mode 377 arch/powerpc/platforms/powermac/pfunc_core.c u32 mode = pmf_next32(cmd); mode 379 arch/powerpc/platforms/powermac/pfunc_core.c LOG_PARSE("pmf: set_i2c_mode(mode: %d)\n", mode); mode 381 arch/powerpc/platforms/powermac/pfunc_core.c PMF_PARSE_CALL(set_i2c_mode, cmd, h, mode); mode 391 arch/powerpc/platforms/powernv/eeh-powernv.c edev->mode &= 0xFFFFFF00; mode 397 arch/powerpc/platforms/powernv/eeh-powernv.c edev->mode |= EEH_DEV_BRIDGE; mode 403 arch/powerpc/platforms/powernv/eeh-powernv.c edev->mode |= EEH_DEV_ROOT_PORT; mode 405 arch/powerpc/platforms/powernv/eeh-powernv.c edev->mode |= EEH_DEV_DS_PORT; mode 209 arch/powerpc/platforms/powernv/opal-core.c .attr = {.name = "core", .mode = 0400}, mode 338 arch/powerpc/platforms/powernv/opal-dump.c dump->dump_attr.attr.mode = 0400; mode 198 arch/powerpc/platforms/powernv/opal-elog.c elog->raw_attr.attr.mode = 0400; mode 494 arch/powerpc/platforms/powernv/opal-flash.c .attr = {.name = "image", .mode = 0200}, mode 38 arch/powerpc/platforms/powernv/opal-imc.c static struct dentry *imc_debugfs_create_x64(const char *name, umode_t mode, mode 41 arch/powerpc/platforms/powernv/opal-imc.c return debugfs_create_file_unsafe(name, mode, parent, mode 56 arch/powerpc/platforms/powernv/opal-imc.c char mode[16], cmd[16]; mode 71 arch/powerpc/platforms/powernv/opal-imc.c sprintf(mode, "imc_mode_%d", (u32)(ptr->id)); mode 72 arch/powerpc/platforms/powernv/opal-imc.c if (!imc_debugfs_create_x64(mode, 0600, imc_debugfs_parent, mode 102 arch/powerpc/platforms/powernv/opal-msglog.c .attr = {.name = "msglog", .mode = 0400}, mode 138 arch/powerpc/platforms/powernv/opal-powercap.c attr->attr.attr.mode = 0444; mode 216 arch/powerpc/platforms/powernv/opal-powercap.c pcaps[i].pattrs[j].attr.attr.mode |= 0220; mode 155 arch/powerpc/platforms/powernv/opal-psr.c psr_attrs[i].attr.attr.mode = 0664; mode 125 arch/powerpc/platforms/powernv/opal-sensor-groups.c attr->attr.attr.mode = 0220; mode 250 arch/powerpc/platforms/powernv/opal-sysparam.c attr[i].kobj_attr.attr.mode = 0444; mode 253 arch/powerpc/platforms/powernv/opal-sysparam.c attr[i].kobj_attr.attr.mode = 0200; mode 256 arch/powerpc/platforms/powernv/opal-sysparam.c attr[i].kobj_attr.attr.mode = 0644; mode 720 arch/powerpc/platforms/powernv/opal.c .attr = {.name = "symbol_map", .mode = 0400}, mode 798 arch/powerpc/platforms/powernv/opal.c attr->attr.mode = 0400; mode 12 arch/powerpc/platforms/powernv/pci-cxl.c int pnv_phb_to_cxl_mode(struct pci_dev *dev, uint64_t mode) mode 25 arch/powerpc/platforms/powernv/pci-cxl.c rc = opal_pci_set_phb_cxl_mode(phb->opal_id, mode, pe->pe_number); mode 729 arch/powerpc/platforms/powernv/pci.c if (edev->mode & EEH_DEV_REMOVED) mode 42 arch/powerpc/platforms/powernv/ultravisor.c .attr = {.name = "msglog", .mode = 0400}, mode 1130 arch/powerpc/platforms/powernv/vas-window.c int creds, mode; mode 1134 arch/powerpc/platforms/powernv/vas-window.c mode = GET_FIELD(VAS_WINCTL_TX_WCRED_MODE, val); mode 1136 arch/powerpc/platforms/powernv/vas-window.c mode = GET_FIELD(VAS_WINCTL_RX_WCRED_MODE, val); mode 1138 arch/powerpc/platforms/powernv/vas-window.c if (!mode) mode 265 arch/powerpc/platforms/pseries/eeh_pseries.c edev->mode &= 0xFFFFFF00; mode 267 arch/powerpc/platforms/pseries/eeh_pseries.c edev->mode |= EEH_DEV_BRIDGE; mode 273 arch/powerpc/platforms/pseries/eeh_pseries.c edev->mode |= EEH_DEV_ROOT_PORT; mode 275 arch/powerpc/platforms/pseries/eeh_pseries.c edev->mode |= EEH_DEV_DS_PORT; mode 711 arch/powerpc/platforms/pseries/lparcfg.c umode_t mode = 0444; mode 715 arch/powerpc/platforms/pseries/lparcfg.c mode |= 0200; mode 717 arch/powerpc/platforms/pseries/lparcfg.c if (!proc_create("powerpc/lparcfg", mode, NULL, &lparcfg_fops)) { mode 139 arch/powerpc/sysdev/cpm2.c int cpm2_clk_setup(enum cpm_clk_target target, int clock, int mode) mode 255 arch/powerpc/sysdev/cpm2.c if (mode == CPM_CLK_RTX) { mode 258 arch/powerpc/sysdev/cpm2.c } else if (mode == CPM_CLK_RX) { mode 159 arch/powerpc/sysdev/fsl_soc.c unsigned long mode, void *cmd) mode 1374 arch/powerpc/xmon/xmon.c int mode; mode 1380 arch/powerpc/xmon/xmon.c mode = 7; mode 1383 arch/powerpc/xmon/xmon.c mode = 5; mode 1385 arch/powerpc/xmon/xmon.c mode = 6; mode 1396 arch/powerpc/xmon/xmon.c dabr.enabled = mode | BP_DABR; mode 63 arch/s390/appldata/appldata_base.c .mode = S_IRUGO | S_IWUSR, mode 68 arch/s390/appldata/appldata_base.c .mode = S_IRUGO | S_IWUSR, mode 78 arch/s390/appldata/appldata_base.c .mode = S_IRUGO | S_IXUGO, mode 380 arch/s390/appldata/appldata_base.c ops->ctl_table[0].mode = S_IRUGO | S_IXUGO; mode 384 arch/s390/appldata/appldata_base.c ops->ctl_table[2].mode = S_IRUGO | S_IWUSR; mode 59 arch/s390/boot/kaslr.c int mode, i; mode 61 arch/s390/boot/kaslr.c mode = check_prng(); mode 63 arch/s390/boot/kaslr.c switch (mode) { mode 41 arch/s390/crypto/prng.c module_param_named(mode, prng_mode, int, 0); mode 680 arch/s390/crypto/prng.c .mode = 0644, mode 686 arch/s390/crypto/prng.c .mode = 0644, mode 738 arch/s390/crypto/prng.c static DEVICE_ATTR(mode, 0444, prng_mode_show, NULL); mode 94 arch/s390/hypfs/inode.c static struct inode *hypfs_make_inode(struct super_block *sb, umode_t mode) mode 101 arch/s390/hypfs/inode.c ret->i_mode = mode; mode 105 arch/s390/hypfs/inode.c if (S_ISDIR(mode)) mode 343 arch/s390/hypfs/inode.c char *data, umode_t mode) mode 354 arch/s390/hypfs/inode.c inode = hypfs_make_inode(parent->d_sb, mode); mode 360 arch/s390/hypfs/inode.c if (S_ISREG(mode)) { mode 366 arch/s390/hypfs/inode.c } else if (S_ISDIR(mode)) { mode 251 arch/s390/include/asm/ap.h unsigned int mode : 3; mode 211 arch/s390/include/asm/compat.h compat_mode_t mode; mode 51 arch/s390/include/asm/debug.h umode_t mode; mode 102 arch/s390/include/asm/debug.h int buf_size, umode_t mode, uid_t uid, mode 268 arch/s390/include/uapi/asm/dasd.h __u8 mode:1; mode 22 arch/s390/include/uapi/asm/ipcbuf.h __kernel_mode_t mode; mode 51 arch/s390/include/uapi/asm/kvm.h __u16 mode; mode 135 arch/s390/kernel/compat_linux.c tmp.st_mode = stat->mode; mode 284 arch/s390/kernel/compat_linux.c COMPAT_SYSCALL_DEFINE6(s390_fallocate, int, fd, int, mode, u32, offhigh, u32, offlow, mode 287 arch/s390/kernel/compat_linux.c return ksys_fallocate(fd, mode, ((loff_t)offhigh << 32) + offlow, mode 126 arch/s390/kernel/compat_linux.h long compat_sys_s390_fallocate(int fd, int mode, u32 offhigh, u32 offlow, u32 lenhigh, u32 lenlow); mode 75 arch/s390/kernel/debug.c int nr_areas, int buf_size, umode_t mode); mode 235 arch/s390/kernel/debug.c int mode) mode 249 arch/s390/kernel/debug.c if ((mode == ALL_AREAS) && (pages_per_area != 0)) { mode 319 arch/s390/kernel/debug.c int nr_areas, int buf_size, umode_t mode) mode 328 arch/s390/kernel/debug.c rc->mode = mode & ~S_IFMT; mode 356 arch/s390/kernel/debug.c static debug_info_t *debug_info_copy(debug_info_t *in, int mode) mode 365 arch/s390/kernel/debug.c in->nr_areas, in->buf_size, in->level, mode); mode 378 arch/s390/kernel/debug.c if (mode == NO_AREAS) mode 669 arch/s390/kernel/debug.c int nr_areas, int buf_size, umode_t mode, mode 682 arch/s390/kernel/debug.c rc = debug_info_create(name, pages_per_area, nr_areas, buf_size, mode); mode 883 arch/s390/kernel/debug.c .mode = S_IRUGO | S_IWUSR, mode 890 arch/s390/kernel/debug.c .mode = S_IRUGO | S_IWUSR, mode 900 arch/s390/kernel/debug.c .mode = S_IRUGO | S_IXUGO, mode 1105 arch/s390/kernel/debug.c umode_t mode; mode 1111 arch/s390/kernel/debug.c mode = (id->mode | S_IFREG) & ~S_IXUGO; mode 1113 arch/s390/kernel/debug.c mode &= ~(S_IRUSR | S_IRGRP | S_IROTH); mode 1115 arch/s390/kernel/debug.c mode &= ~(S_IWUSR | S_IWGRP | S_IWOTH); mode 1116 arch/s390/kernel/debug.c pde = debugfs_create_file(view->name, mode, id->debugfs_root_entry, mode 487 arch/s390/kernel/dis.c char *mode = user_mode(regs) ? "User" : "Krnl"; mode 512 arch/s390/kernel/dis.c printk("%s Code: Bad PSW.\n", mode); mode 529 arch/s390/kernel/dis.c ptr += sprintf(ptr, "%s Code:", mode); mode 149 arch/s390/kernel/dumpstack.c char *mode; mode 151 arch/s390/kernel/dumpstack.c mode = user_mode(regs) ? "User" : "Krnl"; mode 152 arch/s390/kernel/dumpstack.c printk("%s PSW : %px %px", mode, (void *)regs->psw.mask, (void *)regs->psw.addr); mode 160 arch/s390/kernel/dumpstack.c printk("%s GPRS: %016lx %016lx %016lx %016lx\n", mode, mode 829 arch/s390/kernel/time.c .attr = { .name = "online", .mode = 0600 }, mode 619 arch/s390/kernel/topology.c .mode = 0644, mode 629 arch/s390/kernel/topology.c .mode = 0555, mode 380 arch/s390/kvm/gaccess.c enum gacc_mode mode) mode 461 arch/s390/kvm/gaccess.c if (ale.fo == 1 && mode == GACC_STORE) mode 494 arch/s390/kvm/gaccess.c u8 ar, enum gacc_mode mode, enum prot_type prot) mode 535 arch/s390/kvm/gaccess.c tec->fsi = mode == GACC_STORE ? FSI_STORE : FSI_FETCH; mode 555 arch/s390/kvm/gaccess.c unsigned long ga, u8 ar, enum gacc_mode mode) mode 566 arch/s390/kvm/gaccess.c if ((mode == GACC_IFETCH) && (psw.as != PSW_BITS_AS_HOME)) mode 580 arch/s390/kvm/gaccess.c rc = ar_translation(vcpu, asce, ar, mode); mode 582 arch/s390/kvm/gaccess.c return trans_exc(vcpu, rc, ga, ar, mode, PROT_TYPE_ALC); mode 616 arch/s390/kvm/gaccess.c enum gacc_mode mode, enum prot_type *prot) mode 764 arch/s390/kvm/gaccess.c if (mode == GACC_STORE && dat_protection) { mode 768 arch/s390/kvm/gaccess.c if (mode == GACC_IFETCH && iep_protection && iep) { mode 799 arch/s390/kvm/gaccess.c const union asce asce, enum gacc_mode mode) mode 808 arch/s390/kvm/gaccess.c if (mode == GACC_STORE && lap_enabled && is_low_address(ga)) mode 809 arch/s390/kvm/gaccess.c return trans_exc(vcpu, PGM_PROTECTION, ga, ar, mode, mode 813 arch/s390/kvm/gaccess.c rc = guest_translate(vcpu, ga, pages, asce, mode, &prot); mode 822 arch/s390/kvm/gaccess.c return trans_exc(vcpu, rc, ga, ar, mode, prot); mode 831 arch/s390/kvm/gaccess.c unsigned long len, enum gacc_mode mode) mode 844 arch/s390/kvm/gaccess.c rc = get_vcpu_asce(vcpu, &asce, ga, ar, mode); mode 856 arch/s390/kvm/gaccess.c rc = guest_page_range(vcpu, ga, ar, pages, nr_pages, asce, mode); mode 860 arch/s390/kvm/gaccess.c if (mode == GACC_STORE) mode 876 arch/s390/kvm/gaccess.c void *data, unsigned long len, enum gacc_mode mode) mode 884 arch/s390/kvm/gaccess.c if (mode) mode 905 arch/s390/kvm/gaccess.c unsigned long *gpa, enum gacc_mode mode) mode 913 arch/s390/kvm/gaccess.c rc = get_vcpu_asce(vcpu, &asce, gva, ar, mode); mode 917 arch/s390/kvm/gaccess.c if (mode == GACC_STORE) mode 919 arch/s390/kvm/gaccess.c mode, PROT_TYPE_LA); mode 923 arch/s390/kvm/gaccess.c rc = guest_translate(vcpu, gva, gpa, asce, mode, &prot); mode 925 arch/s390/kvm/gaccess.c return trans_exc(vcpu, rc, gva, 0, mode, prot); mode 929 arch/s390/kvm/gaccess.c return trans_exc(vcpu, rc, gva, PGM_ADDRESSING, mode, 0); mode 939 arch/s390/kvm/gaccess.c unsigned long length, enum gacc_mode mode) mode 948 arch/s390/kvm/gaccess.c rc = guest_translate_address(vcpu, gva, ar, &gpa, mode); mode 162 arch/s390/kvm/gaccess.h u8 ar, unsigned long *gpa, enum gacc_mode mode); mode 164 arch/s390/kvm/gaccess.h unsigned long length, enum gacc_mode mode); mode 167 arch/s390/kvm/gaccess.h unsigned long len, enum gacc_mode mode); mode 170 arch/s390/kvm/gaccess.h void *data, unsigned long len, enum gacc_mode mode); mode 2515 arch/s390/kvm/interrupt.c KVM_S390_AIS_MODE_ALL, req.mode); mode 2518 arch/s390/kvm/interrupt.c switch (req.mode) { mode 327 arch/s390/mm/cmm.c .mode = 0644, mode 332 arch/s390/mm/cmm.c .mode = 0644, mode 337 arch/s390/mm/cmm.c .mode = 0644, mode 347 arch/s390/mm/cmm.c .mode = 0555, mode 89 arch/s390/mm/kasan_init.c enum populate_mode mode) mode 107 arch/s390/mm/kasan_init.c if (mode == POPULATE_ZERO_SHADOW && mode 121 arch/s390/mm/kasan_init.c if (mode == POPULATE_ZERO_SHADOW && mode 135 arch/s390/mm/kasan_init.c if (mode == POPULATE_ZERO_SHADOW && mode 149 arch/s390/mm/kasan_init.c if (mode == POPULATE_ZERO_SHADOW && mode 159 arch/s390/mm/kasan_init.c mode != POPULATE_ZERO_SHADOW) { mode 162 arch/s390/mm/kasan_init.c if (mode == POPULATE_ONE2ONE) { mode 184 arch/s390/mm/kasan_init.c switch (mode) { mode 28 arch/s390/mm/pgalloc.c .mode = S_IRUGO | S_IWUSR, mode 40 arch/s390/mm/pgalloc.c .mode = 0555, mode 39 arch/s390/numa/numa.c static const struct numa_mode *mode = &numa_mode_plain; mode 43 arch/s390/numa/numa.c return mode->__pfn_to_nid ? mode->__pfn_to_nid(pfn) : 0; mode 48 arch/s390/numa/numa.c if (mode->update_cpu_topology) mode 49 arch/s390/numa/numa.c mode->update_cpu_topology(); mode 54 arch/s390/numa/numa.c return mode->distance ? mode->distance(a, b) : 0; mode 79 arch/s390/numa/numa.c align = mode->align ? mode->align() : ULONG_MAX; mode 127 arch/s390/numa/numa.c pr_info("NUMA mode: %s\n", mode->name); mode 131 arch/s390/numa/numa.c if (mode->setup) mode 132 arch/s390/numa/numa.c mode->setup(); mode 164 arch/s390/numa/numa.c mode = &numa_mode_plain; mode 167 arch/s390/numa/numa.c mode = &numa_mode_emu; mode 541 arch/sh/boards/mach-ecovec24/setup.c .mode = SH_KEYSC_MODE_1, mode 808 arch/sh/boards/mach-ecovec24/setup.c .mode = SPI_MODE_0, mode 106 arch/sh/boards/mach-kfr2r09/setup.c .mode = SH_KEYSC_MODE_1, /* KEYOUT0->4, KEYIN0->4 */ mode 78 arch/sh/boards/mach-migor/setup.c .mode = SH_KEYSC_MODE_2, /* KEYOUT0->4, KEYIN1->5 */ mode 63 arch/sh/boards/mach-r2d/setup.c .mode = SPI_MODE_3, mode 95 arch/sh/boards/mach-se/7722/setup.c .mode = SH_KEYSC_MODE_1, /* KEYOUT0->5, KEYIN0->4 */ mode 326 arch/sh/boards/mach-se/7724/setup.c .mode = SH_KEYSC_MODE_1, mode 283 arch/sh/drivers/dma/dma-api.c unsigned long to, size_t size, unsigned int mode) mode 291 arch/sh/drivers/dma/dma-api.c channel->mode = mode; mode 115 arch/sh/drivers/dma/dma-g2.c chan->mode = !chan->mode; mode 124 arch/sh/drivers/dma/dma-g2.c g2_dma->channel[chan_nr].direction = chan->mode; mode 62 arch/sh/drivers/dma/dma-pvr2.c __raw_writel(chan->mode & DMA_MODE_MASK, PVR2_DMA_MODE); mode 95 arch/sh/drivers/dma/dma-sysfs.c return sprintf(buf, "0x%08x\n", channel->mode); mode 103 arch/sh/drivers/dma/dma-sysfs.c channel->mode = simple_strtoul(buf, NULL, 0); mode 107 arch/sh/drivers/dma/dma-sysfs.c static DEVICE_ATTR(mode, S_IRUGO | S_IWUSR, dma_show_mode, dma_store_mode); mode 69 arch/sh/include/asm/dma.h unsigned int mode; mode 110 arch/sh/include/asm/dma.h unsigned long to, size_t size, unsigned int mode); mode 30 arch/sh/include/asm/hw_irq.h void __init plat_irq_setup_pins(int mode); mode 15 arch/sh/include/asm/suspend.h void sh_mobile_call_standby(unsigned long mode); mode 61 arch/sh/include/asm/suspend.h unsigned long mode; mode 37 arch/sh/kernel/asm-offsets.c DEFINE(SH_SLEEP_MODE, offsetof(struct sh_sleep_data, mode)); mode 55 arch/sh/kernel/cpu/sh3/setup-sh3.c void __init plat_irq_setup_pins(int mode) mode 57 arch/sh/kernel/cpu/sh3/setup-sh3.c if (mode == IRQ_MODE_IRQ) { mode 128 arch/sh/kernel/cpu/sh4/setup-sh4-202.c void __init plat_irq_setup_pins(int mode) mode 130 arch/sh/kernel/cpu/sh4/setup-sh4-202.c switch (mode) { mode 343 arch/sh/kernel/cpu/sh4/setup-sh7750.c void __init plat_irq_setup_pins(int mode) mode 350 arch/sh/kernel/cpu/sh4/setup-sh7750.c switch (mode) { mode 281 arch/sh/kernel/cpu/sh4/setup-sh7760.c void __init plat_irq_setup_pins(int mode) mode 283 arch/sh/kernel/cpu/sh4/setup-sh7760.c switch (mode) { mode 29 arch/sh/kernel/cpu/sh4a/clock-sh7734.c int mode = 12; mode 33 arch/sh/kernel/cpu/sh4a/clock-sh7734.c mode = 16; mode 35 arch/sh/kernel/cpu/sh4a/clock-sh7734.c return clk->parent->rate * mode; mode 599 arch/sh/kernel/cpu/sh4a/setup-sh7734.c void __init plat_irq_setup_pins(int mode) mode 601 arch/sh/kernel/cpu/sh4a/setup-sh7734.c switch (mode) { mode 1201 arch/sh/kernel/cpu/sh4a/setup-sh7757.c void __init plat_irq_setup_pins(int mode) mode 1203 arch/sh/kernel/cpu/sh4a/setup-sh7757.c switch (mode) { mode 423 arch/sh/kernel/cpu/sh4a/setup-sh7763.c void __init plat_irq_setup_pins(int mode) mode 425 arch/sh/kernel/cpu/sh4a/setup-sh7763.c switch (mode) { mode 539 arch/sh/kernel/cpu/sh4a/setup-sh7770.c void __init plat_irq_setup_pins(int mode) mode 541 arch/sh/kernel/cpu/sh4a/setup-sh7770.c switch (mode) { mode 473 arch/sh/kernel/cpu/sh4a/setup-sh7780.c void __init plat_irq_setup_pins(int mode) mode 475 arch/sh/kernel/cpu/sh4a/setup-sh7780.c switch (mode) { mode 565 arch/sh/kernel/cpu/sh4a/setup-sh7785.c void __init plat_irq_setup_pins(int mode) mode 567 arch/sh/kernel/cpu/sh4a/setup-sh7785.c switch (mode) { mode 760 arch/sh/kernel/cpu/sh4a/setup-sh7786.c void __init plat_irq_setup_pins(int mode) mode 762 arch/sh/kernel/cpu/sh4a/setup-sh7786.c switch (mode) { mode 339 arch/sh/kernel/cpu/sh4a/setup-shx3.c void __init plat_irq_setup_pins(int mode) mode 343 arch/sh/kernel/cpu/sh4a/setup-shx3.c switch (mode) { mode 46 arch/sh/kernel/cpu/shmobile/pm.c void sh_mobile_call_standby(unsigned long mode) mode 56 arch/sh/kernel/cpu/shmobile/pm.c mode, NULL); mode 59 arch/sh/kernel/cpu/shmobile/pm.c if (mode & SUSP_SH_MMU) mode 63 arch/sh/kernel/cpu/shmobile/pm.c standby_onchip_mem(mode, RAM_BASE); mode 66 arch/sh/kernel/cpu/shmobile/pm.c mode, NULL); mode 8 arch/sh/lib/libgcc.h typedef int word_type __attribute__ ((mode (__word__))); mode 144 arch/sh/mm/alignment.c char mode; mode 147 arch/sh/mm/alignment.c if (get_user(mode, buffer)) mode 149 arch/sh/mm/alignment.c if (mode >= '0' && mode <= '5') mode 150 arch/sh/mm/alignment.c *data = mode - '0'; mode 24 arch/sparc/include/asm/asm-prototypes.h typedef int TItype __attribute__((mode(TI))); mode 171 arch/sparc/include/asm/compat.h compat_mode_t mode; mode 69 arch/sparc/include/asm/floppy_32.h #define fd_set_dma_mode(mode) sun_fd_set_dma_mode(mode) mode 228 arch/sparc/include/asm/floppy_32.h static inline void sun_fd_set_dma_mode(int mode) mode 230 arch/sparc/include/asm/floppy_32.h switch(mode) { mode 238 arch/sparc/include/asm/floppy_32.h printk("Unknown dma mode %d\n", mode); mode 72 arch/sparc/include/asm/floppy_64.h #define fd_set_dma_mode(mode) sun_fdops.fd_set_dma_mode(mode) mode 167 arch/sparc/include/asm/floppy_64.h static void sun_fd_set_dma_mode(int mode) mode 169 arch/sparc/include/asm/floppy_64.h switch(mode) { mode 177 arch/sparc/include/asm/floppy_64.h printk("Unknown dma mode %d\n", mode); mode 392 arch/sparc/include/asm/floppy_64.h static void sun_pci_fd_set_dma_mode(int mode) mode 394 arch/sparc/include/asm/floppy_64.h if (mode == DMA_MODE_WRITE) mode 399 arch/sparc/include/asm/floppy_64.h ebus_dma_prepare(&sun_pci_fd_ebus_dma, mode != DMA_MODE_WRITE); mode 28 arch/sparc/include/asm/ldc.h u8 mode; mode 175 arch/sparc/include/asm/oplib_64.h int prom_map(int mode, unsigned long size, mode 89 arch/sparc/include/asm/parport.h static inline void set_dma_mode(unsigned int dmanr, char mode) mode 91 arch/sparc/include/asm/parport.h ebus_dma_prepare(&sparc_ebus_dmas[dmanr].info, (mode != DMA_MODE_WRITE)); mode 26 arch/sparc/include/uapi/asm/ipcbuf.h __kernel_mode_t mode; mode 1164 arch/sparc/kernel/ds.c .mode = LDC_MODE_STREAM, mode 245 arch/sparc/kernel/ldc.c if (lp->cfg.mode == LDC_MODE_STREAM) mode 435 arch/sparc/kernel/ldc.c p->env = lp->cfg.mode; mode 455 arch/sparc/kernel/ldc.c p->env = lp->cfg.mode; mode 677 arch/sparc/kernel/ldc.c p->env != lp->cfg.mode) mode 696 arch/sparc/kernel/ldc.c p->env != lp->cfg.mode) mode 812 arch/sparc/kernel/ldc.c if (lp->cfg.mode == LDC_MODE_RAW && mode 933 arch/sparc/kernel/ldc.c if (lp->cfg.mode == LDC_MODE_RAW && mode 1140 arch/sparc/kernel/ldc.c switch (cfgp->mode) { mode 1194 arch/sparc/kernel/ldc.c if (lp->cfg.mode == LDC_MODE_STREAM) { mode 1351 arch/sparc/kernel/ldc.c if (lp->cfg.mode == LDC_MODE_RAW) { mode 1386 arch/sparc/kernel/ldc.c if (lp->cfg.mode == LDC_MODE_RAW) mode 1409 arch/sparc/kernel/ldc.c if (lp->cfg.mode == LDC_MODE_RAW) mode 1476 arch/sparc/kernel/ldc.c return lp->cfg.mode; mode 1597 arch/sparc/kernel/ldc.c u8 *data = ((lp->cfg.mode == LDC_MODE_UNRELIABLE) ? mode 1867 arch/sparc/kernel/ldc.c (lp->cfg.mode == LDC_MODE_UNRELIABLE ? mode 1891 arch/sparc/kernel/ldc.c if (err > 0 && lp->cfg.mode != LDC_MODE_UNRELIABLE) mode 1984 arch/sparc/kernel/ldc.c lp->cfg.mode, lp->rx_head, lp->rx_tail, err); mode 72 arch/sparc/kernel/sys_sparc32.c err |= put_user(stat->mode, &statbuf->st_mode); mode 233 arch/sparc/kernel/sys_sparc32.c COMPAT_SYSCALL_DEFINE6(fallocate, int, fd, int, mode, u32, offhi, u32, offlo, mode 236 arch/sparc/kernel/sys_sparc32.c return ksys_fallocate(fd, mode, ((loff_t)offhi << 32) | offlo, mode 94 arch/sparc/kernel/systbls.h asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offhi, u32 offlo, mode 1920 arch/sparc/kernel/traps_64.c u32 sp_state, mode; mode 1935 arch/sparc/kernel/traps_64.c mode = ((attrs & SUN4V_ERR_ATTRS_MODE_MSK) >> mode 1937 arch/sparc/kernel/traps_64.c pr_cont("%s ", modes[mode]); mode 7 arch/sparc/lib/libgcc.h typedef int word_type __attribute__ ((mode (__word__))); mode 237 arch/sparc/prom/misc_64.c int prom_map(int mode, unsigned long size, mode 248 arch/sparc/prom/misc_64.c args[5] = (unsigned int) mode; mode 43 arch/um/drivers/tty.c int fd, err, mode = 0; mode 46 arch/um/drivers/tty.c mode = O_RDWR; mode 48 arch/um/drivers/tty.c mode = O_RDONLY; mode 50 arch/um/drivers/tty.c mode = O_WRONLY; mode 52 arch/um/drivers/tty.c fd = open(data->dev, mode); mode 103 arch/um/drivers/ubd_kern.c static int ubd_open(struct block_device *bdev, fmode_t mode); mode 104 arch/um/drivers/ubd_kern.c static void ubd_release(struct gendisk *disk, fmode_t mode); mode 105 arch/um/drivers/ubd_kern.c static int ubd_ioctl(struct block_device *bdev, fmode_t mode, mode 678 arch/um/drivers/ubd_kern.c int fd, err, sectorsize, asked_switch, mode = 0644; mode 680 arch/um/drivers/ubd_kern.c fd = os_open_file(file, *openflags, mode); mode 688 arch/um/drivers/ubd_kern.c fd = os_open_file(file, *openflags, mode); mode 1213 arch/um/drivers/ubd_kern.c static int ubd_open(struct block_device *bdev, fmode_t mode) mode 1242 arch/um/drivers/ubd_kern.c static void ubd_release(struct gendisk *disk, fmode_t mode) mode 1426 arch/um/drivers/ubd_kern.c static int ubd_ioctl(struct block_device *bdev, fmode_t mode, mode 22 arch/um/drivers/vde.h int mode; mode 80 arch/um/drivers/vde_kern.c .mode = 0 }); mode 99 arch/um/drivers/vde_kern.c init->mode = simple_strtoul(mode_str, &last, 8); mode 90 arch/um/drivers/vde_user.c args->mode = init->mode ? init->mode : 0700; mode 137 arch/um/include/shared/os.h extern int os_access(const char *file, int mode); mode 142 arch/um/include/shared/os.h extern int os_mode_fd(int fd, int mode); mode 146 arch/um/include/shared/os.h extern int os_open_file(const char *file, struct openflags flags, int mode); mode 37 arch/um/include/shared/timer-internal.h static inline void time_travel_set_timer_mode(enum time_travel_timer_mode mode) mode 39 arch/um/include/shared/timer-internal.h time_travel_timer_mode = mode; mode 61 arch/um/include/shared/timer-internal.h static inline void time_travel_set_timer_mode(enum time_travel_timer_mode mode) mode 68 arch/um/os-Linux/file.c int os_access(const char *file, int mode) mode 72 arch/um/os-Linux/file.c amode = (mode & OS_ACC_R_OK ? R_OK : 0) | mode 73 arch/um/os-Linux/file.c (mode & OS_ACC_W_OK ? W_OK : 0) | mode 74 arch/um/os-Linux/file.c (mode & OS_ACC_X_OK ? X_OK : 0) | mode 75 arch/um/os-Linux/file.c (mode & OS_ACC_F_OK ? F_OK : 0); mode 120 arch/um/os-Linux/file.c int os_mode_fd(int fd, int mode) mode 124 arch/um/os-Linux/file.c CATCH_EINTR(err = fchmod(fd, mode)); mode 176 arch/um/os-Linux/file.c int os_open_file(const char *file, struct openflags flags, int mode) mode 199 arch/um/os-Linux/file.c fd = open64(file, f, mode); mode 33 arch/unicore32/include/asm/ptrace.h unsigned long mode = regs->UCreg_asr & MODE_MASK; mode 41 arch/unicore32/include/asm/ptrace.h if (mode == USER_MODE) mode 73 arch/unicore32/kernel/puv3-core.c .mode = MUSB_HOST, mode 140 arch/unicore32/kernel/traps.c unsigned int fp, mode; mode 150 arch/unicore32/kernel/traps.c mode = processor_mode(regs); mode 153 arch/unicore32/kernel/traps.c mode = 0x10; mode 156 arch/unicore32/kernel/traps.c mode = 0x10; mode 170 arch/unicore32/kernel/traps.c c_backtrace(fp, mode); mode 345 arch/x86/boot/boot.h int set_mode(u16 mode); mode 346 arch/x86/boot/boot.h int mode_defined(u16 mode); mode 22 arch/x86/boot/video-bios.c static int set_bios_mode(u8 mode); mode 26 arch/x86/boot/video-bios.c return set_bios_mode(mi->mode - VIDEO_FIRST_BIOS); mode 29 arch/x86/boot/video-bios.c static int set_bios_mode(u8 mode) mode 35 arch/x86/boot/video-bios.c ireg.al = mode; /* AH=0x00 Set Video Mode */ mode 46 arch/x86/boot/video-bios.c if (new_mode == mode) mode 63 arch/x86/boot/video-bios.c u8 mode; mode 81 arch/x86/boot/video-bios.c for (mode = 0x14; mode <= 0x7f; mode++) { mode 85 arch/x86/boot/video-bios.c if (mode_defined(VIDEO_FIRST_BIOS+mode)) mode 88 arch/x86/boot/video-bios.c if (set_bios_mode(mode)) mode 106 arch/x86/boot/video-bios.c mi->mode = VIDEO_FIRST_BIOS+mode; mode 52 arch/x86/boot/video-mode.c int mode_defined(u16 mode) mode 61 arch/x86/boot/video-mode.c if (mi->mode == mode) mode 70 arch/x86/boot/video-mode.c static int raw_set_mode(u16 mode, u16 *real_mode) mode 77 arch/x86/boot/video-mode.c mode &= ~VIDEO_RECALC; mode 86 arch/x86/boot/video-mode.c if ((mode == nmode && visible) || mode 87 arch/x86/boot/video-mode.c mode == mi->mode || mode 88 arch/x86/boot/video-mode.c mode == (mi->y << 8)+mi->x) { mode 89 arch/x86/boot/video-mode.c *real_mode = mi->mode; mode 100 arch/x86/boot/video-mode.c if (mode >= card->xmode_first && mode 101 arch/x86/boot/video-mode.c mode < card->xmode_first+card->xmode_n) { mode 103 arch/x86/boot/video-mode.c *real_mode = mix.mode = mode; mode 145 arch/x86/boot/video-mode.c int set_mode(u16 mode) mode 151 arch/x86/boot/video-mode.c if (mode == VIDEO_CURRENT_MODE) mode 153 arch/x86/boot/video-mode.c else if (mode == NORMAL_VGA) mode 154 arch/x86/boot/video-mode.c mode = VIDEO_80x25; mode 155 arch/x86/boot/video-mode.c else if (mode == EXTENDED_VGA) mode 156 arch/x86/boot/video-mode.c mode = VIDEO_8POINT; mode 158 arch/x86/boot/video-mode.c rv = raw_set_mode(mode, &real_mode); mode 162 arch/x86/boot/video-mode.c if (mode & VIDEO_RECALC) mode 34 arch/x86/boot/video-vesa.c u16 mode; mode 54 arch/x86/boot/video-vesa.c while ((mode = rdfs16(mode_ptr)) != 0xffff) { mode 60 arch/x86/boot/video-vesa.c if (mode & ~0x1ff) mode 66 arch/x86/boot/video-vesa.c ireg.cx = mode; mode 77 arch/x86/boot/video-vesa.c mi->mode = mode + VIDEO_FIRST_VESA; mode 92 arch/x86/boot/video-vesa.c mi->mode = mode + VIDEO_FIRST_VESA; mode 104 arch/x86/boot/video-vesa.c static int vesa_set_mode(struct mode_info *mode) mode 108 arch/x86/boot/video-vesa.c u16 vesa_mode = mode->mode - VIDEO_FIRST_VESA; mode 146 arch/x86/boot/video-vesa.c force_x = mode->x; mode 147 arch/x86/boot/video-vesa.c force_y = mode->y; mode 42 arch/x86/boot/video-vga.c u8 mode; mode 49 arch/x86/boot/video-vga.c mode = oreg.al; mode 51 arch/x86/boot/video-vga.c if (mode != 3 && mode != 7) mode 52 arch/x86/boot/video-vga.c mode = 3; mode 55 arch/x86/boot/video-vga.c ireg.ax = mode; /* AH=0: set mode */ mode 58 arch/x86/boot/video-vga.c return mode; mode 191 arch/x86/boot/video-vga.c static int vga_set_mode(struct mode_info *mode) mode 197 arch/x86/boot/video-vga.c force_x = mode->x; mode 198 arch/x86/boot/video-vga.c force_y = mode->y; mode 200 arch/x86/boot/video-vga.c switch (mode->mode) { mode 166 arch/x86/boot/video.c u16 mode_id = mi->mode ? mi->mode : mode 319 arch/x86/boot/video.c u16 mode = boot_params.hdr.vid_mode; mode 328 arch/x86/boot/video.c if (mode == ASK_VGA) mode 329 arch/x86/boot/video.c mode = mode_menu(); mode 331 arch/x86/boot/video.c if (!set_mode(mode)) mode 334 arch/x86/boot/video.c printf("Undefined video mode number: %x\n", mode); mode 335 arch/x86/boot/video.c mode = ASK_VGA; mode 337 arch/x86/boot/video.c boot_params.hdr.vid_mode = mode; mode 65 arch/x86/boot/video.h u16 mode; /* Mode number (vga= style) */ mode 72 arch/x86/boot/video.h int (*set_mode)(struct mode_info *mode); mode 84 arch/x86/boot/video.h int mode_defined(u16 mode); /* video.c */ mode 74 arch/x86/entry/vdso/vdso32-setup.c .mode = 0644, mode 85 arch/x86/entry/vdso/vdso32-setup.c .mode = 0555, mode 86 arch/x86/events/amd/power.c static void pmu_event_start(struct perf_event *event, int mode) mode 91 arch/x86/events/amd/power.c static void pmu_event_stop(struct perf_event *event, int mode) mode 100 arch/x86/events/amd/power.c if ((mode & PERF_EF_UPDATE) && !(hwc->state & PERF_HES_UPTODATE)) { mode 110 arch/x86/events/amd/power.c static int pmu_event_add(struct perf_event *event, int mode) mode 116 arch/x86/events/amd/power.c if (mode & PERF_EF_START) mode 1728 arch/x86/events/core.c return pmu_attr->event_str || x86_pmu.event_map(idx) ? attr->mode : 0; mode 508 arch/x86/events/intel/bts.c static void bts_event_del(struct perf_event *event, int mode) mode 513 arch/x86/events/intel/bts.c static int bts_event_add(struct perf_event *event, int mode) mode 527 arch/x86/events/intel/bts.c if (mode & PERF_EF_START) { mode 4429 arch/x86/events/intel/core.c return boot_cpu_has(X86_FEATURE_RTM) ? attr->mode : 0; mode 4435 arch/x86/events/intel/core.c return x86_pmu.pebs ? attr->mode : 0; mode 4441 arch/x86/events/intel/core.c return x86_pmu.lbr_nr ? attr->mode : 0; mode 4447 arch/x86/events/intel/core.c return x86_pmu.version >= 2 ? attr->mode : 0; mode 4454 arch/x86/events/intel/core.c return x86_pmu.flags & PMU_FL_TFA ? attr->mode : 0; mode 4456 arch/x86/events/intel/core.c return attr->mode; mode 374 arch/x86/events/intel/cstate.c static void cstate_pmu_event_start(struct perf_event *event, int mode) mode 379 arch/x86/events/intel/cstate.c static void cstate_pmu_event_stop(struct perf_event *event, int mode) mode 384 arch/x86/events/intel/cstate.c static void cstate_pmu_event_del(struct perf_event *event, int mode) mode 389 arch/x86/events/intel/cstate.c static int cstate_pmu_event_add(struct perf_event *event, int mode) mode 391 arch/x86/events/intel/cstate.c if (mode & PERF_EF_START) mode 392 arch/x86/events/intel/cstate.c cstate_pmu_event_start(event, mode); mode 257 arch/x86/events/intel/pt.c de_attr->attr.attr.mode = S_IRUGO; mode 1428 arch/x86/events/intel/pt.c static void pt_event_start(struct perf_event *event, int mode) mode 1459 arch/x86/events/intel/pt.c static void pt_event_stop(struct perf_event *event, int mode) mode 1476 arch/x86/events/intel/pt.c if (mode & PERF_EF_UPDATE) { mode 1499 arch/x86/events/intel/pt.c static void pt_event_del(struct perf_event *event, int mode) mode 1504 arch/x86/events/intel/pt.c static int pt_event_add(struct perf_event *event, int mode) mode 1513 arch/x86/events/intel/pt.c if (mode & PERF_EF_START) { mode 263 arch/x86/events/intel/rapl.c static void rapl_pmu_event_start(struct perf_event *event, int mode) mode 273 arch/x86/events/intel/rapl.c static void rapl_pmu_event_stop(struct perf_event *event, int mode) mode 295 arch/x86/events/intel/rapl.c if ((mode & PERF_EF_UPDATE) && !(hwc->state & PERF_HES_UPTODATE)) { mode 307 arch/x86/events/intel/rapl.c static int rapl_pmu_event_add(struct perf_event *event, int mode) mode 317 arch/x86/events/intel/rapl.c if (mode & PERF_EF_START) mode 82 arch/x86/ia32/sys_ia32.c __put_user(stat->mode, &ubuf->st_mode) || mode 225 arch/x86/ia32/sys_ia32.c COMPAT_SYSCALL_DEFINE6(x86_fallocate, int, fd, int, mode, mode 229 arch/x86/ia32/sys_ia32.c return ksys_fallocate(fd, mode, ((u64)offset_hi << 32) | offset_lo, mode 112 arch/x86/include/asm/compat.h unsigned short mode; mode 199 arch/x86/include/asm/dma.h static inline void set_dma_mode(unsigned int dmanr, char mode) mode 202 arch/x86/include/asm/dma.h dma_outb(mode | dmanr, DMA1_MODE_REG); mode 204 arch/x86/include/asm/dma.h dma_outb(mode | (dmanr & 3), DMA2_MODE_REG); mode 44 arch/x86/include/asm/floppy.h #define fd_dma_setup(addr, size, mode, io) SW._dma_setup(addr, size, mode, io) mode 195 arch/x86/include/asm/floppy.h static int vdma_dma_setup(char *addr, unsigned long size, int mode, int io) mode 199 arch/x86/include/asm/floppy.h virtual_dma_mode = (mode == DMA_MODE_WRITE); mode 206 arch/x86/include/asm/floppy.h static int hard_dma_setup(char *addr, unsigned long size, int mode, int io) mode 217 arch/x86/include/asm/floppy.h set_dma_mode(FLOPPY_DMA, mode); mode 229 arch/x86/include/asm/floppy.h int (*_dma_setup)(char *addr, unsigned long size, int mode, int io); mode 298 arch/x86/include/asm/kvm_emulate.h enum x86emul_mode mode; mode 814 arch/x86/include/asm/kvm_host.h u8 mode; mode 59 arch/x86/include/asm/kvm_page_track.h enum kvm_page_track_mode mode); mode 62 arch/x86/include/asm/kvm_page_track.h enum kvm_page_track_mode mode); mode 64 arch/x86/include/asm/kvm_page_track.h enum kvm_page_track_mode mode); mode 74 arch/x86/include/asm/sysfb.h struct simplefb_platform_data *mode); mode 76 arch/x86/include/asm/sysfb.h const struct simplefb_platform_data *mode); mode 81 arch/x86/include/asm/sysfb.h struct simplefb_platform_data *mode) mode 87 arch/x86/include/asm/sysfb.h const struct simplefb_platform_data *mode) mode 880 arch/x86/include/asm/uv/uv_hub.h static unsigned long uv_hub_ipi_value(int apicid, int vector, int mode) mode 885 arch/x86/include/asm/uv/uv_hub.h (mode << UVH_IPI_INT_DELIVERY_MODE_SHFT) | mode 3735 arch/x86/include/asm/uv/uv_mmrs.h unsigned long mode:1; /* RW */ mode 24 arch/x86/include/asm/x86_init.h void (*mpc_record)(unsigned int mode); mode 245 arch/x86/include/uapi/asm/kvm.h __u8 mode; mode 801 arch/x86/kernel/apic/x2apic_uv_x.c if (is_uv3_hub() && gru.s3.mode) { mode 700 arch/x86/kernel/cpu/bugs.c enum spectre_v2_user_mitigation mode = SPECTRE_V2_USER_NONE; mode 716 arch/x86/kernel/cpu/bugs.c mode = SPECTRE_V2_USER_STRICT; mode 720 arch/x86/kernel/cpu/bugs.c mode = SPECTRE_V2_USER_PRCTL; mode 726 arch/x86/kernel/cpu/bugs.c mode = SPECTRE_V2_USER_SECCOMP; mode 728 arch/x86/kernel/cpu/bugs.c mode = SPECTRE_V2_USER_PRCTL; mode 755 arch/x86/kernel/cpu/bugs.c spectre_v2_user_ibpb = mode; mode 770 arch/x86/kernel/cpu/bugs.c if (mode != SPECTRE_V2_USER_STRICT && mode 772 arch/x86/kernel/cpu/bugs.c mode = SPECTRE_V2_USER_STRICT_PREFERRED; mode 778 arch/x86/kernel/cpu/bugs.c mode = SPECTRE_V2_USER_NONE; mode 780 arch/x86/kernel/cpu/bugs.c spectre_v2_user_stibp = mode; mode 783 arch/x86/kernel/cpu/bugs.c pr_info("%s\n", spectre_v2_user_strings[mode]); mode 861 arch/x86/kernel/cpu/bugs.c enum spectre_v2_mitigation mode = SPECTRE_V2_NONE; mode 878 arch/x86/kernel/cpu/bugs.c mode = SPECTRE_V2_IBRS_ENHANCED; mode 911 arch/x86/kernel/cpu/bugs.c mode = SPECTRE_V2_RETPOLINE_AMD; mode 916 arch/x86/kernel/cpu/bugs.c mode = SPECTRE_V2_RETPOLINE_GENERIC; mode 921 arch/x86/kernel/cpu/bugs.c spectre_v2_enabled = mode; mode 922 arch/x86/kernel/cpu/bugs.c pr_info("%s\n", spectre_v2_strings[mode]); mode 946 arch/x86/kernel/cpu/bugs.c if (boot_cpu_has(X86_FEATURE_IBRS) && mode != SPECTRE_V2_IBRS_ENHANCED) { mode 1120 arch/x86/kernel/cpu/bugs.c enum ssb_mitigation mode = SPEC_STORE_BYPASS_NONE; mode 1124 arch/x86/kernel/cpu/bugs.c return mode; mode 1130 arch/x86/kernel/cpu/bugs.c return mode; mode 1140 arch/x86/kernel/cpu/bugs.c mode = SPEC_STORE_BYPASS_SECCOMP; mode 1142 arch/x86/kernel/cpu/bugs.c mode = SPEC_STORE_BYPASS_PRCTL; mode 1145 arch/x86/kernel/cpu/bugs.c mode = SPEC_STORE_BYPASS_DISABLE; mode 1148 arch/x86/kernel/cpu/bugs.c mode = SPEC_STORE_BYPASS_PRCTL; mode 1170 arch/x86/kernel/cpu/bugs.c if (mode == SPEC_STORE_BYPASS_DISABLE) { mode 1185 arch/x86/kernel/cpu/bugs.c return mode; mode 512 arch/x86/kernel/cpu/cacheinfo.c umode_t mode = attr->mode; mode 519 arch/x86/kernel/cpu/cacheinfo.c return mode; mode 524 arch/x86/kernel/cpu/cacheinfo.c return mode; mode 1112 arch/x86/kernel/cpu/mce/amd.c .attr = {.name = __stringify(error_count), .mode = 0444 }, mode 1118 arch/x86/kernel/cpu/mce/amd.c .attr = {.name = __stringify(val), .mode = 0644 }, \ mode 2421 arch/x86/kernel/cpu/mce/core.c a->attr.mode = 0644; mode 209 arch/x86/kernel/cpu/resctrl/ctrlmondata.c if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP && mode 218 arch/x86/kernel/cpu/resctrl/ctrlmondata.c if ((rdtgrp->mode == RDT_MODE_EXCLUSIVE || mode 219 arch/x86/kernel/cpu/resctrl/ctrlmondata.c rdtgrp->mode == RDT_MODE_SHAREABLE) && mode 235 arch/x86/kernel/cpu/resctrl/ctrlmondata.c if (rdtgrp->mode == RDT_MODE_EXCLUSIVE || mode 236 arch/x86/kernel/cpu/resctrl/ctrlmondata.c rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP) { mode 262 arch/x86/kernel/cpu/resctrl/ctrlmondata.c if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP && mode 284 arch/x86/kernel/cpu/resctrl/ctrlmondata.c if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP) { mode 390 arch/x86/kernel/cpu/resctrl/ctrlmondata.c if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKED) { mode 424 arch/x86/kernel/cpu/resctrl/ctrlmondata.c if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP) { mode 470 arch/x86/kernel/cpu/resctrl/ctrlmondata.c if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP) { mode 473 arch/x86/kernel/cpu/resctrl/ctrlmondata.c } else if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKED) { mode 210 arch/x86/kernel/cpu/resctrl/internal.h enum rdtgrp_mode mode; mode 258 arch/x86/kernel/cpu/resctrl/internal.h umode_t mode; mode 1365 arch/x86/kernel/cpu/resctrl/pseudo_lock.c rdtgrp->mode = RDT_MODE_PSEUDO_LOCKED; mode 1404 arch/x86/kernel/cpu/resctrl/pseudo_lock.c if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP) { mode 1551 arch/x86/kernel/cpu/resctrl/pseudo_lock.c static char *pseudo_lock_devnode(struct device *dev, umode_t *mode) mode 1556 arch/x86/kernel/cpu/resctrl/pseudo_lock.c if (mode) mode 1557 arch/x86/kernel/cpu/resctrl/pseudo_lock.c *mode = 0600; mode 161 arch/x86/kernel/cpu/resctrl/rdtgroup.c return rdtgrp->mode; mode 180 arch/x86/kernel/cpu/resctrl/rdtgroup.c static const char *rdtgroup_mode_str(enum rdtgrp_mode mode) mode 182 arch/x86/kernel/cpu/resctrl/rdtgroup.c if (mode < RDT_MODE_SHAREABLE || mode >= RDT_NUM_MODES) mode 185 arch/x86/kernel/cpu/resctrl/rdtgroup.c return rdt_mode_str[mode]; mode 207 arch/x86/kernel/cpu/resctrl/rdtgroup.c kn = __kernfs_create_file(parent_kn, rft->name, rft->mode, mode 271 arch/x86/kernel/cpu/resctrl/rdtgroup.c if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKED) { mode 469 arch/x86/kernel/cpu/resctrl/rdtgroup.c if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKED || mode 470 arch/x86/kernel/cpu/resctrl/rdtgroup.c rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP) { mode 684 arch/x86/kernel/cpu/resctrl/rdtgroup.c if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKED || mode 685 arch/x86/kernel/cpu/resctrl/rdtgroup.c rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP) { mode 805 arch/x86/kernel/cpu/resctrl/rdtgroup.c enum rdtgrp_mode mode; mode 821 arch/x86/kernel/cpu/resctrl/rdtgroup.c mode = rdtgroup_mode_by_closid(i); mode 822 arch/x86/kernel/cpu/resctrl/rdtgroup.c switch (mode) { mode 963 arch/x86/kernel/cpu/resctrl/rdtgroup.c seq_printf(s, "%s\n", rdtgroup_mode_str(rdtgrp->mode)); mode 1063 arch/x86/kernel/cpu/resctrl/rdtgroup.c enum rdtgrp_mode mode; mode 1079 arch/x86/kernel/cpu/resctrl/rdtgroup.c mode = rdtgroup_mode_by_closid(i); mode 1081 arch/x86/kernel/cpu/resctrl/rdtgroup.c mode != RDT_MODE_PSEUDO_LOCKSETUP) { mode 1084 arch/x86/kernel/cpu/resctrl/rdtgroup.c if (mode == RDT_MODE_EXCLUSIVE) mode 1179 arch/x86/kernel/cpu/resctrl/rdtgroup.c enum rdtgrp_mode mode; mode 1195 arch/x86/kernel/cpu/resctrl/rdtgroup.c mode = rdtgrp->mode; mode 1197 arch/x86/kernel/cpu/resctrl/rdtgroup.c if ((!strcmp(buf, "shareable") && mode == RDT_MODE_SHAREABLE) || mode 1198 arch/x86/kernel/cpu/resctrl/rdtgroup.c (!strcmp(buf, "exclusive") && mode == RDT_MODE_EXCLUSIVE) || mode 1200 arch/x86/kernel/cpu/resctrl/rdtgroup.c mode == RDT_MODE_PSEUDO_LOCKSETUP) || mode 1201 arch/x86/kernel/cpu/resctrl/rdtgroup.c (!strcmp(buf, "pseudo-locked") && mode == RDT_MODE_PSEUDO_LOCKED)) mode 1204 arch/x86/kernel/cpu/resctrl/rdtgroup.c if (mode == RDT_MODE_PSEUDO_LOCKED) { mode 1211 arch/x86/kernel/cpu/resctrl/rdtgroup.c if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP) { mode 1216 arch/x86/kernel/cpu/resctrl/rdtgroup.c rdtgrp->mode = RDT_MODE_SHAREABLE; mode 1222 arch/x86/kernel/cpu/resctrl/rdtgroup.c if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP) { mode 1227 arch/x86/kernel/cpu/resctrl/rdtgroup.c rdtgrp->mode = RDT_MODE_EXCLUSIVE; mode 1232 arch/x86/kernel/cpu/resctrl/rdtgroup.c rdtgrp->mode = RDT_MODE_PSEUDO_LOCKSETUP; mode 1301 arch/x86/kernel/cpu/resctrl/rdtgroup.c if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKED) { mode 1323 arch/x86/kernel/cpu/resctrl/rdtgroup.c if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP) { mode 1350 arch/x86/kernel/cpu/resctrl/rdtgroup.c .mode = 0444, mode 1357 arch/x86/kernel/cpu/resctrl/rdtgroup.c .mode = 0444, mode 1364 arch/x86/kernel/cpu/resctrl/rdtgroup.c .mode = 0444, mode 1371 arch/x86/kernel/cpu/resctrl/rdtgroup.c .mode = 0444, mode 1378 arch/x86/kernel/cpu/resctrl/rdtgroup.c .mode = 0444, mode 1385 arch/x86/kernel/cpu/resctrl/rdtgroup.c .mode = 0444, mode 1392 arch/x86/kernel/cpu/resctrl/rdtgroup.c .mode = 0444, mode 1399 arch/x86/kernel/cpu/resctrl/rdtgroup.c .mode = 0444, mode 1406 arch/x86/kernel/cpu/resctrl/rdtgroup.c .mode = 0444, mode 1413 arch/x86/kernel/cpu/resctrl/rdtgroup.c .mode = 0444, mode 1420 arch/x86/kernel/cpu/resctrl/rdtgroup.c .mode = 0444, mode 1427 arch/x86/kernel/cpu/resctrl/rdtgroup.c .mode = 0644, mode 1435 arch/x86/kernel/cpu/resctrl/rdtgroup.c .mode = 0644, mode 1443 arch/x86/kernel/cpu/resctrl/rdtgroup.c .mode = 0644, mode 1452 arch/x86/kernel/cpu/resctrl/rdtgroup.c .mode = 0644, mode 1460 arch/x86/kernel/cpu/resctrl/rdtgroup.c .mode = 0644, mode 1468 arch/x86/kernel/cpu/resctrl/rdtgroup.c .mode = 0644, mode 1476 arch/x86/kernel/cpu/resctrl/rdtgroup.c .mode = 0444, mode 1580 arch/x86/kernel/cpu/resctrl/rdtgroup.c iattr.ia_mode = rft->mode & mask; mode 1591 arch/x86/kernel/cpu/resctrl/rdtgroup.c iattr.ia_mode |= parent->mode; mode 1616 arch/x86/kernel/cpu/resctrl/rdtgroup.c kn_info->mode, r); mode 1640 arch/x86/kernel/cpu/resctrl/rdtgroup.c kn_info = kernfs_create_dir(parent_kn, "info", parent_kn->mode, NULL); mode 1691 arch/x86/kernel/cpu/resctrl/rdtgroup.c kn = kernfs_create_dir(parent_kn, name, parent_kn->mode, prgrp); mode 1926 arch/x86/kernel/cpu/resctrl/rdtgroup.c if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP || mode 1927 arch/x86/kernel/cpu/resctrl/rdtgroup.c rdtgrp->mode == RDT_MODE_PSEUDO_LOCKED) mode 2247 arch/x86/kernel/cpu/resctrl/rdtgroup.c if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP || mode 2248 arch/x86/kernel/cpu/resctrl/rdtgroup.c rdtgrp->mode == RDT_MODE_PSEUDO_LOCKED) mode 2292 arch/x86/kernel/cpu/resctrl/rdtgroup.c rdtgroup_default.mode = RDT_MODE_SHAREABLE; mode 2363 arch/x86/kernel/cpu/resctrl/rdtgroup.c kn = kernfs_create_dir(parent_kn, name, parent_kn->mode, prgrp); mode 2539 arch/x86/kernel/cpu/resctrl/rdtgroup.c enum rdtgrp_mode mode; mode 2550 arch/x86/kernel/cpu/resctrl/rdtgroup.c mode = rdtgroup_mode_by_closid(i); mode 2551 arch/x86/kernel/cpu/resctrl/rdtgroup.c if (mode == RDT_MODE_PSEUDO_LOCKSETUP) mode 2568 arch/x86/kernel/cpu/resctrl/rdtgroup.c if (mode == RDT_MODE_SHAREABLE) mode 2654 arch/x86/kernel/cpu/resctrl/rdtgroup.c rdtgrp->mode = RDT_MODE_SHAREABLE; mode 2661 arch/x86/kernel/cpu/resctrl/rdtgroup.c const char *name, umode_t mode, mode 2676 arch/x86/kernel/cpu/resctrl/rdtgroup.c (prdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP || mode 2677 arch/x86/kernel/cpu/resctrl/rdtgroup.c prdtgrp->mode == RDT_MODE_PSEUDO_LOCKED)) { mode 2696 arch/x86/kernel/cpu/resctrl/rdtgroup.c kn = kernfs_create_dir(parent_kn, name, mode, rdtgrp); mode 2772 arch/x86/kernel/cpu/resctrl/rdtgroup.c umode_t mode) mode 2777 arch/x86/kernel/cpu/resctrl/rdtgroup.c ret = mkdir_rdt_prepare(parent_kn, prgrp_kn, name, mode, RDTMON_GROUP, mode 2801 arch/x86/kernel/cpu/resctrl/rdtgroup.c const char *name, umode_t mode) mode 2808 arch/x86/kernel/cpu/resctrl/rdtgroup.c ret = mkdir_rdt_prepare(parent_kn, prgrp_kn, name, mode, RDTCTRL_GROUP, mode 2871 arch/x86/kernel/cpu/resctrl/rdtgroup.c umode_t mode) mode 2883 arch/x86/kernel/cpu/resctrl/rdtgroup.c return rdtgroup_mkdir_ctrl_mon(parent_kn, parent_kn, name, mode); mode 2890 arch/x86/kernel/cpu/resctrl/rdtgroup.c return rdtgroup_mkdir_mon(parent_kn, parent_kn->parent, name, mode); mode 3011 arch/x86/kernel/cpu/resctrl/rdtgroup.c if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKSETUP || mode 3012 arch/x86/kernel/cpu/resctrl/rdtgroup.c rdtgrp->mode == RDT_MODE_PSEUDO_LOCKED) { mode 143 arch/x86/kernel/cpuid.c static char *cpuid_devnode(struct device *dev, umode_t *mode) mode 29 arch/x86/kernel/hpet.c enum hpet_mode mode; mode 210 arch/x86/kernel/hpet.c switch (hc->mode) { mode 213 arch/x86/kernel/hpet.c hc->mode = HPET_MODE_DEVICE; mode 233 arch/x86/kernel/hpet.c if (hc->mode == HPET_MODE_UNUSED) { mode 234 arch/x86/kernel/hpet.c hc->mode = HPET_MODE_DEVICE; mode 564 arch/x86/kernel/hpet.c if (hc->mode != HPET_MODE_CLOCKEVT || hc->in_use) mode 613 arch/x86/kernel/hpet.c if (hc->mode != HPET_MODE_UNUSED) mode 627 arch/x86/kernel/hpet.c hc->mode = HPET_MODE_CLOCKEVT; mode 907 arch/x86/kernel/hpet.c hpet_base.channels[0].mode = HPET_MODE_LEGACY; mode 909 arch/x86/kernel/hpet.c hpet_base.channels[1].mode = HPET_MODE_LEGACY; mode 73 arch/x86/kernel/itmt.c .mode = 0644, mode 84 arch/x86/kernel/itmt.c .mode = 0555, mode 41 arch/x86/kernel/ksysfs.c .mode = S_IRUGO, mode 189 arch/x86/kernel/ksysfs.c .mode = S_IRUGO, mode 202 arch/x86/kernel/msr.c static char *msr_devnode(struct device *dev, umode_t *mode) mode 214 arch/x86/kernel/paravirt.c static inline void enter_lazy(enum paravirt_lazy_mode mode) mode 218 arch/x86/kernel/paravirt.c this_cpu_write(paravirt_lazy_mode, mode); mode 221 arch/x86/kernel/paravirt.c static void leave_lazy(enum paravirt_lazy_mode mode) mode 223 arch/x86/kernel/paravirt.c BUG_ON(this_cpu_read(paravirt_lazy_mode) != mode); mode 61 arch/x86/kernel/process_32.c void __show_regs(struct pt_regs *regs, enum show_regs_mode mode) mode 81 arch/x86/kernel/process_32.c if (mode != SHOW_REGS_ALL) mode 67 arch/x86/kernel/process_64.c void __show_regs(struct pt_regs *regs, enum show_regs_mode mode) mode 92 arch/x86/kernel/process_64.c if (mode == SHOW_REGS_SHORT) mode 95 arch/x86/kernel/process_64.c if (mode == SHOW_REGS_USER) { mode 598 arch/x86/kernel/reboot.c unsigned short mode; mode 606 arch/x86/kernel/reboot.c mode = reboot_mode == REBOOT_WARM ? 0x1234 : 0; mode 607 arch/x86/kernel/reboot.c *((unsigned short *)__va(0x472)) = mode; mode 40 arch/x86/kernel/sysfb.c struct simplefb_platform_data mode; mode 49 arch/x86/kernel/sysfb.c compatible = parse_mode(si, &mode); mode 51 arch/x86/kernel/sysfb.c ret = create_simplefb(si, &mode); mode 28 arch/x86/kernel/sysfb_simplefb.c struct simplefb_platform_data *mode) mode 49 arch/x86/kernel/sysfb_simplefb.c mode->format = f->name; mode 50 arch/x86/kernel/sysfb_simplefb.c mode->width = si->lfb_width; mode 51 arch/x86/kernel/sysfb_simplefb.c mode->height = si->lfb_height; mode 52 arch/x86/kernel/sysfb_simplefb.c mode->stride = si->lfb_linelength; mode 61 arch/x86/kernel/sysfb_simplefb.c const struct simplefb_platform_data *mode) mode 92 arch/x86/kernel/sysfb_simplefb.c length = mode->height * mode->stride; mode 109 arch/x86/kernel/sysfb_simplefb.c &res, 1, mode, sizeof(*mode)); mode 549 arch/x86/kvm/emulate.c if (ctxt->mode == X86EMUL_MODE_PROT64) mode 603 arch/x86/kvm/emulate.c if (ctxt->mode == X86EMUL_MODE_PROT64 && seg < VCPU_SREG_FS) mode 706 arch/x86/kvm/emulate.c enum x86emul_mode mode, ulong *linear) mode 717 arch/x86/kvm/emulate.c switch (mode) { mode 735 arch/x86/kvm/emulate.c if ((((ctxt->mode != X86EMUL_MODE_REAL) && (desc.type & 8)) mode 776 arch/x86/kvm/emulate.c ctxt->mode, linear); mode 780 arch/x86/kvm/emulate.c enum x86emul_mode mode) mode 790 arch/x86/kvm/emulate.c rc = __linearize(ctxt, addr, &max_size, 1, false, true, mode, &linear); mode 798 arch/x86/kvm/emulate.c return assign_eip(ctxt, dst, ctxt->mode); mode 804 arch/x86/kvm/emulate.c enum x86emul_mode mode = ctxt->mode; mode 808 arch/x86/kvm/emulate.c if (ctxt->mode >= X86EMUL_MODE_PROT16) { mode 814 arch/x86/kvm/emulate.c mode = X86EMUL_MODE_PROT64; mode 816 arch/x86/kvm/emulate.c mode = X86EMUL_MODE_PROT32; /* temporary value */ mode 819 arch/x86/kvm/emulate.c if (mode == X86EMUL_MODE_PROT16 || mode == X86EMUL_MODE_PROT32) mode 820 arch/x86/kvm/emulate.c mode = cs_desc->d ? X86EMUL_MODE_PROT32 : X86EMUL_MODE_PROT16; mode 821 arch/x86/kvm/emulate.c rc = assign_eip(ctxt, dst, mode); mode 823 arch/x86/kvm/emulate.c ctxt->mode = mode; mode 896 arch/x86/kvm/emulate.c rc = __linearize(ctxt, addr, &max_size, 0, false, true, ctxt->mode, mode 1375 arch/x86/kvm/emulate.c if (ctxt->mode == X86EMUL_MODE_PROT64) mode 1654 arch/x86/kvm/emulate.c if (ctxt->mode == X86EMUL_MODE_REAL) { mode 1660 arch/x86/kvm/emulate.c } else if (seg <= VCPU_SREG_GS && ctxt->mode == X86EMUL_MODE_VM86) { mode 1683 arch/x86/kvm/emulate.c if (ctxt->mode != X86EMUL_MODE_PROT64 || rpl != cpl) mode 1794 arch/x86/kvm/emulate.c } else if (ctxt->mode == X86EMUL_MODE_PROT64) { mode 1827 arch/x86/kvm/emulate.c ctxt->mode == X86EMUL_MODE_PROT64) mode 1935 arch/x86/kvm/emulate.c switch(ctxt->mode) { mode 2138 arch/x86/kvm/emulate.c switch(ctxt->mode) { mode 2209 arch/x86/kvm/emulate.c switch(ctxt->mode) { mode 2311 arch/x86/kvm/emulate.c if (ctxt->mode >= X86EMUL_MODE_PROT16 && (cs & 3) > cpl) mode 2741 arch/x86/kvm/emulate.c if (ctxt->mode == X86EMUL_MODE_PROT64) mode 2794 arch/x86/kvm/emulate.c if (ctxt->mode == X86EMUL_MODE_REAL || mode 2795 arch/x86/kvm/emulate.c ctxt->mode == X86EMUL_MODE_VM86) mode 2825 arch/x86/kvm/emulate.c ctxt->mode == X86EMUL_MODE_PROT64 ? mode 2855 arch/x86/kvm/emulate.c if (ctxt->mode == X86EMUL_MODE_REAL) mode 2862 arch/x86/kvm/emulate.c if ((ctxt->mode != X86EMUL_MODE_PROT64) && (efer & EFER_LMA) mode 2867 arch/x86/kvm/emulate.c if (ctxt->mode == X86EMUL_MODE_PROT64) mode 2906 arch/x86/kvm/emulate.c if (ctxt->mode == X86EMUL_MODE_REAL || mode 2907 arch/x86/kvm/emulate.c ctxt->mode == X86EMUL_MODE_VM86) mode 2959 arch/x86/kvm/emulate.c if (ctxt->mode == X86EMUL_MODE_REAL) mode 2961 arch/x86/kvm/emulate.c if (ctxt->mode == X86EMUL_MODE_VM86) mode 3226 arch/x86/kvm/emulate.c ctxt->mode = X86EMUL_MODE_VM86; mode 3229 arch/x86/kvm/emulate.c ctxt->mode = X86EMUL_MODE_PROT32; mode 3536 arch/x86/kvm/emulate.c enum x86emul_mode prev_mode = ctxt->mode; mode 3567 arch/x86/kvm/emulate.c ctxt->mode = prev_mode; mode 3706 arch/x86/kvm/emulate.c if (ctxt->mode == X86EMUL_MODE_PROT64) mode 3855 arch/x86/kvm/emulate.c if (ctxt->mode == X86EMUL_MODE_PROT64) mode 3883 arch/x86/kvm/emulate.c if (ctxt->mode == X86EMUL_MODE_PROT64) mode 3890 arch/x86/kvm/emulate.c if (ctxt->mode == X86EMUL_MODE_PROT64 && mode 4074 arch/x86/kvm/emulate.c if (ctxt->mode >= X86EMUL_MODE_PROT64) mode 4092 arch/x86/kvm/emulate.c if (ctxt->mode == X86EMUL_MODE_PROT64) mode 5186 arch/x86/kvm/emulate.c int mode = ctxt->mode; mode 5209 arch/x86/kvm/emulate.c switch (mode) { mode 5245 arch/x86/kvm/emulate.c if (mode == X86EMUL_MODE_PROT64) mode 5277 arch/x86/kvm/emulate.c if (mode != X86EMUL_MODE_PROT64) mode 5325 arch/x86/kvm/emulate.c (mode == X86EMUL_MODE_PROT64 || (ctxt->modrm & 0xc0) == 0xc0)) { mode 5375 arch/x86/kvm/emulate.c if (ctxt->mode == X86EMUL_MODE_PROT64) mode 5410 arch/x86/kvm/emulate.c if (mode == X86EMUL_MODE_PROT64) { mode 5418 arch/x86/kvm/emulate.c if (mode == X86EMUL_MODE_PROT64) mode 5576 arch/x86/kvm/emulate.c if ((ctxt->mode == X86EMUL_MODE_PROT64 && (ctxt->d & No64)) || mode 5615 arch/x86/kvm/emulate.c if ((ctxt->d & Prot) && ctxt->mode < X86EMUL_MODE_PROT16) { mode 58 arch/x86/kvm/i8254.c switch (c->mode) { mode 124 arch/x86/kvm/i8254.c switch (c->mode) { mode 151 arch/x86/kvm/i8254.c switch (c->mode) { mode 192 arch/x86/kvm/i8254.c (c->mode << 1) | mode 376 arch/x86/kvm/i8254.c switch (ps->channels[0].mode) { mode 402 arch/x86/kvm/i8254.c saved_mode = pit->pit_state.channels[0].mode; mode 403 arch/x86/kvm/i8254.c pit->pit_state.channels[0].mode = 0xff; /* disable timer */ mode 405 arch/x86/kvm/i8254.c pit->pit_state.channels[0].mode = saved_mode; mode 471 arch/x86/kvm/i8254.c s->mode = (val >> 1) & 7; mode 472 arch/x86/kvm/i8254.c if (s->mode > 5) mode 473 arch/x86/kvm/i8254.c s->mode -= 4; mode 622 arch/x86/kvm/i8254.c c->mode = 0xff; mode 19 arch/x86/kvm/i8254.h u8 mode; mode 111 arch/x86/kvm/ioapic.h int mode = kvm->arch.irqchip_mode; mode 115 arch/x86/kvm/ioapic.h return mode == KVM_IRQCHIP_KERNEL; mode 71 arch/x86/kvm/irq.h int mode = kvm->arch.irqchip_mode; mode 75 arch/x86/kvm/irq.h return mode == KVM_IRQCHIP_KERNEL; mode 80 arch/x86/kvm/irq.h int mode = kvm->arch.irqchip_mode; mode 84 arch/x86/kvm/irq.h return mode == KVM_IRQCHIP_SPLIT; mode 89 arch/x86/kvm/irq.h int mode = kvm->arch.irqchip_mode; mode 93 arch/x86/kvm/irq.h return mode == KVM_IRQCHIP_KERNEL; mode 98 arch/x86/kvm/irq.h int mode = kvm->arch.irqchip_mode; mode 102 arch/x86/kvm/irq.h return mode != KVM_IRQCHIP_NONE; mode 127 arch/x86/kvm/lapic.c return kvm_can_post_timer_interrupt(vcpu) && vcpu->mode == IN_GUEST_MODE; mode 132 arch/x86/kvm/lapic.c switch (map->mode) { mode 223 arch/x86/kvm/lapic.c new->mode |= KVM_APIC_MODE_X2APIC; mode 227 arch/x86/kvm/lapic.c new->mode |= KVM_APIC_MODE_XAPIC_FLAT; mode 229 arch/x86/kvm/lapic.c new->mode |= KVM_APIC_MODE_XAPIC_CLUSTER; mode 858 arch/x86/kvm/lapic.c map->mode != KVM_APIC_MODE_X2APIC)) mode 2241 arch/x86/kvm/lapic.c int vector, mode, trig_mode; mode 2245 arch/x86/kvm/lapic.c mode = reg & APIC_MODE_MASK; mode 2247 arch/x86/kvm/lapic.c return __apic_accept_irq(apic, mode, vector, 1, trig_mode, mode 1046 arch/x86/kvm/mmu.c smp_store_mb(vcpu->mode, READING_SHADOW_PAGE_TABLES); mode 1056 arch/x86/kvm/mmu.c smp_store_release(&vcpu->mode, OUTSIDE_GUEST_MODE); mode 55 arch/x86/kvm/page_track.c static inline bool page_track_mode_is_valid(enum kvm_page_track_mode mode) mode 57 arch/x86/kvm/page_track.c if (mode < 0 || mode >= KVM_PAGE_TRACK_MAX) mode 64 arch/x86/kvm/page_track.c enum kvm_page_track_mode mode, short count) mode 70 arch/x86/kvm/page_track.c val = slot->arch.gfn_track[mode][index]; mode 75 arch/x86/kvm/page_track.c slot->arch.gfn_track[mode][index] += count; mode 92 arch/x86/kvm/page_track.c enum kvm_page_track_mode mode) mode 95 arch/x86/kvm/page_track.c if (WARN_ON(!page_track_mode_is_valid(mode))) mode 98 arch/x86/kvm/page_track.c update_gfn_track(slot, gfn, mode, 1); mode 106 arch/x86/kvm/page_track.c if (mode == KVM_PAGE_TRACK_WRITE) mode 127 arch/x86/kvm/page_track.c enum kvm_page_track_mode mode) mode 129 arch/x86/kvm/page_track.c if (WARN_ON(!page_track_mode_is_valid(mode))) mode 132 arch/x86/kvm/page_track.c update_gfn_track(slot, gfn, mode, -1); mode 146 arch/x86/kvm/page_track.c enum kvm_page_track_mode mode) mode 151 arch/x86/kvm/page_track.c if (WARN_ON(!page_track_mode_is_valid(mode))) mode 159 arch/x86/kvm/page_track.c return !!READ_ONCE(slot->arch.gfn_track[mode][index]); mode 709 arch/x86/kvm/trace.h #define kei_decode_mode(mode) ({ \ mode 711 arch/x86/kvm/trace.h switch (mode) { \ mode 754 arch/x86/kvm/trace.h __entry->flags = kei_decode_mode(vcpu->arch.emulate_ctxt.mode); mode 3659 arch/x86/kvm/vmx/vmx.c u8 mode = 0; mode 3664 arch/x86/kvm/vmx/vmx.c mode |= MSR_BITMAP_MODE_X2APIC; mode 3666 arch/x86/kvm/vmx/vmx.c mode |= MSR_BITMAP_MODE_X2APIC_APICV; mode 3669 arch/x86/kvm/vmx/vmx.c return mode; mode 3673 arch/x86/kvm/vmx/vmx.c u8 mode) mode 3679 arch/x86/kvm/vmx/vmx.c msr_bitmap[word] = (mode & MSR_BITMAP_MODE_X2APIC_APICV) ? 0 : ~0; mode 3683 arch/x86/kvm/vmx/vmx.c if (mode & MSR_BITMAP_MODE_X2APIC) { mode 3689 arch/x86/kvm/vmx/vmx.c if (mode & MSR_BITMAP_MODE_X2APIC_APICV) { mode 3701 arch/x86/kvm/vmx/vmx.c u8 mode = vmx_msr_bitmap_mode(vcpu); mode 3702 arch/x86/kvm/vmx/vmx.c u8 changed = mode ^ vmx->msr_bitmap_mode; mode 3708 arch/x86/kvm/vmx/vmx.c vmx_update_msr_bitmap_x2apic(msr_bitmap, mode); mode 3710 arch/x86/kvm/vmx/vmx.c vmx->msr_bitmap_mode = mode; mode 3766 arch/x86/kvm/vmx/vmx.c if (vcpu->mode == IN_GUEST_MODE) { mode 217 arch/x86/kvm/x86.c { "largepages", VM_STAT(lpages, .mode = 0444) }, mode 218 arch/x86/kvm/x86.c { "nx_largepages_splitted", VM_STAT(nx_lpage_splits, .mode = 0444) }, mode 1838 arch/x86/kvm/x86.c static inline int gtod_is_based_on_tsc(int mode) mode 1840 arch/x86/kvm/x86.c return mode == VCLOCK_TSC || mode == VCLOCK_HVCLOCK; mode 2081 arch/x86/kvm/x86.c static inline u64 vgettsc(u64 *tsc_timestamp, int *mode) mode 2093 arch/x86/kvm/x86.c *mode = VCLOCK_HVCLOCK; mode 2098 arch/x86/kvm/x86.c *mode = VCLOCK_NONE; mode 2102 arch/x86/kvm/x86.c *mode = VCLOCK_TSC; mode 2108 arch/x86/kvm/x86.c *mode = VCLOCK_NONE; mode 2111 arch/x86/kvm/x86.c if (*mode == VCLOCK_NONE) mode 2121 arch/x86/kvm/x86.c int mode; mode 2127 arch/x86/kvm/x86.c ns += vgettsc(tsc_timestamp, &mode); mode 2133 arch/x86/kvm/x86.c return mode; mode 2140 arch/x86/kvm/x86.c int mode; mode 2147 arch/x86/kvm/x86.c ns += vgettsc(tsc_timestamp, &mode); mode 2154 arch/x86/kvm/x86.c return mode; mode 5772 arch/x86/kvm/x86.c if (ctxt->mode != X86EMUL_MODE_PROT64) mode 6370 arch/x86/kvm/x86.c ctxt->mode = (!is_protmode(vcpu)) ? X86EMUL_MODE_REAL : mode 8192 arch/x86/kvm/x86.c vcpu->mode = IN_GUEST_MODE; mode 8217 arch/x86/kvm/x86.c if (vcpu->mode == EXITING_GUEST_MODE || kvm_request_pending(vcpu) mode 8219 arch/x86/kvm/x86.c vcpu->mode = OUTSIDE_GUEST_MODE; mode 8282 arch/x86/kvm/x86.c vcpu->mode = OUTSIDE_GUEST_MODE; mode 37 arch/x86/platform/intel-mid/device_libs/platform_mrfld_spidev.c spi_info->mode = SPI_MODE_0; mode 139 arch/x86/platform/olpc/olpc-xo1-sci.c const char *mode = lid_wake_mode_names[lid_wake_mode]; mode 140 arch/x86/platform/olpc/olpc-xo1-sci.c return sprintf(buf, "%s\n", mode); mode 148 arch/x86/platform/olpc/olpc-xo1-sci.c const char *mode = lid_wake_mode_names[i]; mode 149 arch/x86/platform/olpc/olpc-xo1-sci.c if (strlen(mode) != count || strncasecmp(mode, buf, count)) mode 43 arch/x86/xen/multicalls.h static inline void xen_mc_issue(unsigned mode) mode 45 arch/x86/xen/multicalls.h trace_xen_mc_issue(mode); mode 47 arch/x86/xen/multicalls.h if ((paravirt_get_lazy_mode() & mode) == 0) mode 32 arch/xtensa/include/uapi/asm/ipcbuf.h __kernel_mode_t mode; mode 89 arch/xtensa/platforms/iss/include/platform/simcall.h static inline int simc_open(const char *file, int flags, int mode) mode 91 arch/xtensa/platforms/iss/include/platform/simcall.h return __simc(SYS_open, (int) file, flags, mode); mode 125 arch/xtensa/platforms/iss/simdisk.c static int simdisk_open(struct block_device *bdev, fmode_t mode) mode 137 arch/xtensa/platforms/iss/simdisk.c static void simdisk_release(struct gendisk *disk, fmode_t mode) mode 314 block/blk-integrity.c .attr = { .name = "format", .mode = 0444 }, mode 319 block/blk-integrity.c .attr = { .name = "tag_size", .mode = 0444 }, mode 324 block/blk-integrity.c .attr = { .name = "protection_interval_bytes", .mode = 0444 }, mode 329 block/blk-integrity.c .attr = { .name = "read_verify", .mode = 0644 }, mode 335 block/blk-integrity.c .attr = { .name = "write_generate", .mode = 0644 }, mode 341 block/blk-integrity.c .attr = { .name = "device_is_integrity_capable", .mode = 0444 }, mode 1116 block/blk-iocost.c static int iocg_wake_fn(struct wait_queue_entry *wq_entry, unsigned mode, mode 1138 block/blk-iocost.c default_wake_function(wq_entry, mode, flags, key); mode 817 block/blk-mq-debugfs.c debugfs_create_file(attr->name, attr->mode, parent, mode 11 block/blk-mq-debugfs.h umode_t mode; mode 191 block/blk-mq-sysfs.c .attr = {.name = "nr_tags", .mode = 0444 }, mode 195 block/blk-mq-sysfs.c .attr = {.name = "nr_reserved_tags", .mode = 0444 }, mode 199 block/blk-mq-sysfs.c .attr = {.name = "cpu_list", .mode = 0444 }, mode 1086 block/blk-mq.c static int blk_mq_dispatch_wake(wait_queue_entry_t *wait, unsigned mode, mode 3414 block/blk-mq.c enum hrtimer_mode mode; mode 3443 block/blk-mq.c mode = HRTIMER_MODE_REL; mode 3444 block/blk-mq.c hrtimer_init_sleeper_on_stack(&hs, CLOCK_MONOTONIC, mode); mode 3451 block/blk-mq.c hrtimer_sleeper_start_expires(&hs, mode); mode 3455 block/blk-mq.c mode = HRTIMER_MODE_ABS; mode 213 block/blk-rq-qos.c unsigned int mode, int wake_flags, void *key) mode 533 block/blk-sysfs.c .attr = {.name = "nr_requests", .mode = 0644 }, mode 539 block/blk-sysfs.c .attr = {.name = "read_ahead_kb", .mode = 0644 }, mode 545 block/blk-sysfs.c .attr = {.name = "max_sectors_kb", .mode = 0644 }, mode 551 block/blk-sysfs.c .attr = {.name = "max_hw_sectors_kb", .mode = 0444 }, mode 556 block/blk-sysfs.c .attr = {.name = "max_segments", .mode = 0444 }, mode 561 block/blk-sysfs.c .attr = {.name = "max_discard_segments", .mode = 0444 }, mode 566 block/blk-sysfs.c .attr = {.name = "max_integrity_segments", .mode = 0444 }, mode 571 block/blk-sysfs.c .attr = {.name = "max_segment_size", .mode = 0444 }, mode 576 block/blk-sysfs.c .attr = {.name = "scheduler", .mode = 0644 }, mode 582 block/blk-sysfs.c .attr = {.name = "hw_sector_size", .mode = 0444 }, mode 587 block/blk-sysfs.c .attr = {.name = "logical_block_size", .mode = 0444 }, mode 592 block/blk-sysfs.c .attr = {.name = "physical_block_size", .mode = 0444 }, mode 597 block/blk-sysfs.c .attr = {.name = "chunk_sectors", .mode = 0444 }, mode 602 block/blk-sysfs.c .attr = {.name = "minimum_io_size", .mode = 0444 }, mode 607 block/blk-sysfs.c .attr = {.name = "optimal_io_size", .mode = 0444 }, mode 612 block/blk-sysfs.c .attr = {.name = "discard_granularity", .mode = 0444 }, mode 617 block/blk-sysfs.c .attr = {.name = "discard_max_hw_bytes", .mode = 0444 }, mode 622 block/blk-sysfs.c .attr = {.name = "discard_max_bytes", .mode = 0644 }, mode 628 block/blk-sysfs.c .attr = {.name = "discard_zeroes_data", .mode = 0444 }, mode 633 block/blk-sysfs.c .attr = {.name = "write_same_max_bytes", .mode = 0444 }, mode 638 block/blk-sysfs.c .attr = {.name = "write_zeroes_max_bytes", .mode = 0444 }, mode 643 block/blk-sysfs.c .attr = {.name = "rotational", .mode = 0644 }, mode 649 block/blk-sysfs.c .attr = {.name = "zoned", .mode = 0444 }, mode 654 block/blk-sysfs.c .attr = {.name = "nr_zones", .mode = 0444 }, mode 659 block/blk-sysfs.c .attr = {.name = "nomerges", .mode = 0644 }, mode 665 block/blk-sysfs.c .attr = {.name = "rq_affinity", .mode = 0644 }, mode 671 block/blk-sysfs.c .attr = {.name = "iostats", .mode = 0644 }, mode 677 block/blk-sysfs.c .attr = {.name = "add_random", .mode = 0644 }, mode 683 block/blk-sysfs.c .attr = {.name = "io_poll", .mode = 0644 }, mode 689 block/blk-sysfs.c .attr = {.name = "io_poll_delay", .mode = 0644 }, mode 695 block/blk-sysfs.c .attr = {.name = "write_cache", .mode = 0644 }, mode 701 block/blk-sysfs.c .attr = {.name = "fua", .mode = 0444 }, mode 706 block/blk-sysfs.c .attr = {.name = "dax", .mode = 0444 }, mode 711 block/blk-sysfs.c .attr = {.name = "io_timeout", .mode = 0644 }, mode 717 block/blk-sysfs.c .attr = {.name = "wbt_lat_usec", .mode = 0644 }, mode 724 block/blk-sysfs.c .attr = {.name = "throttle_sample_time", .mode = 0644 }, mode 782 block/blk-sysfs.c return attr->mode; mode 314 block/blk-zoned.c int blkdev_report_zones_ioctl(struct block_device *bdev, fmode_t mode, mode 374 block/blk-zoned.c int blkdev_reset_zones_ioctl(struct block_device *bdev, fmode_t mode, mode 394 block/blk-zoned.c if (!(mode & FMODE_WRITE)) mode 37 block/bsg-lib.c fmode_t mode) mode 66 block/bsg.c fmode_t mode) mode 84 block/bsg.c if (blk_verify_command(sreq->cmd, mode)) mode 135 block/bsg.c static int bsg_sg_io(struct request_queue *q, fmode_t mode, void __user *uarg) mode 159 block/bsg.c ret = q->bsg_dev.ops->fill_hdr(rq, &hdr, mode); mode 476 block/bsg.c static char *bsg_devnode(struct device *dev, umode_t *mode) mode 81 block/compat_ioctl.c static int compat_hdio_ioctl(struct block_device *bdev, fmode_t mode, mode 88 block/compat_ioctl.c error = __blkdev_driver_ioctl(bdev, mode, mode 118 block/compat_ioctl.c static int compat_cdrom_read_audio(struct block_device *bdev, fmode_t mode, mode 141 block/compat_ioctl.c return __blkdev_driver_ioctl(bdev, mode, cmd, mode 145 block/compat_ioctl.c static int compat_cdrom_generic_command(struct block_device *bdev, fmode_t mode, mode 174 block/compat_ioctl.c return __blkdev_driver_ioctl(bdev, mode, cmd, (unsigned long)cgc); mode 184 block/compat_ioctl.c static int compat_blkpg_ioctl(struct block_device *bdev, fmode_t mode, mode 203 block/compat_ioctl.c return blkdev_ioctl(bdev, mode, cmd, (unsigned long)a); mode 210 block/compat_ioctl.c static int compat_blkdev_driver_ioctl(struct block_device *bdev, fmode_t mode, mode 225 block/compat_ioctl.c return compat_hdio_ioctl(bdev, mode, cmd, arg); mode 227 block/compat_ioctl.c return compat_cdrom_read_audio(bdev, mode, cmd, arg); mode 229 block/compat_ioctl.c return compat_cdrom_generic_command(bdev, mode, cmd, arg); mode 310 block/compat_ioctl.c return __blkdev_driver_ioctl(bdev, mode, cmd, arg); mode 322 block/compat_ioctl.c fmode_t mode = file->f_mode; mode 331 block/compat_ioctl.c mode |= FMODE_NDELAY; mode 333 block/compat_ioctl.c mode &= ~FMODE_NDELAY; mode 362 block/compat_ioctl.c return blkdev_ioctl(bdev, mode, cmd, mode 365 block/compat_ioctl.c return blkdev_ioctl(bdev, mode, BLKBSZSET, mode 368 block/compat_ioctl.c return compat_blkpg_ioctl(bdev, mode, cmd, compat_ptr(arg)); mode 415 block/compat_ioctl.c return blkdev_ioctl(bdev, mode, cmd, mode 419 block/compat_ioctl.c ret = disk->fops->compat_ioctl(bdev, mode, cmd, arg); mode 421 block/compat_ioctl.c ret = compat_blkdev_driver_ioctl(bdev, mode, cmd, arg); mode 1233 block/genhd.c return a->mode; mode 1340 block/genhd.c static char *block_devnode(struct device *dev, umode_t *mode, mode 1346 block/genhd.c return disk->devnode(disk, mode); mode 201 block/ioctl.c static int blk_ioctl_discard(struct block_device *bdev, fmode_t mode, mode 210 block/ioctl.c if (!(mode & FMODE_WRITE)) mode 234 block/ioctl.c static int blk_ioctl_zeroout(struct block_device *bdev, fmode_t mode, mode 241 block/ioctl.c if (!(mode & FMODE_WRITE)) mode 298 block/ioctl.c int __blkdev_driver_ioctl(struct block_device *bdev, fmode_t mode, mode 304 block/ioctl.c return disk->fops->ioctl(bdev, mode, cmd, arg); mode 425 block/ioctl.c static int blkdev_flushbuf(struct block_device *bdev, fmode_t mode, mode 433 block/ioctl.c ret = __blkdev_driver_ioctl(bdev, mode, cmd, arg); mode 442 block/ioctl.c static int blkdev_roset(struct block_device *bdev, fmode_t mode, mode 450 block/ioctl.c ret = __blkdev_driver_ioctl(bdev, mode, cmd, arg); mode 486 block/ioctl.c static int blkdev_bszset(struct block_device *bdev, fmode_t mode, mode 498 block/ioctl.c if (!(mode & FMODE_EXCL)) { mode 500 block/ioctl.c if (blkdev_get(bdev, mode | FMODE_EXCL, &bdev) < 0) mode 505 block/ioctl.c if (!(mode & FMODE_EXCL)) mode 506 block/ioctl.c blkdev_put(bdev, mode | FMODE_EXCL); mode 513 block/ioctl.c int blkdev_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd, mode 522 block/ioctl.c return blkdev_flushbuf(bdev, mode, cmd, arg); mode 524 block/ioctl.c return blkdev_roset(bdev, mode, cmd, arg); mode 526 block/ioctl.c return blk_ioctl_discard(bdev, mode, arg, 0); mode 528 block/ioctl.c return blk_ioctl_discard(bdev, mode, arg, mode 531 block/ioctl.c return blk_ioctl_zeroout(bdev, mode, arg); mode 533 block/ioctl.c return blkdev_report_zones_ioctl(bdev, mode, cmd, arg); mode 535 block/ioctl.c return blkdev_reset_zones_ioctl(bdev, mode, cmd, arg); mode 576 block/ioctl.c return blkdev_bszset(bdev, mode, argp); mode 606 block/ioctl.c return __blkdev_driver_ioctl(bdev, mode, cmd, arg); mode 192 block/kyber-iosched.c static int kyber_domain_wake(wait_queue_entry_t *wait, unsigned mode, int flags, mode 691 block/kyber-iosched.c static int kyber_domain_wake(wait_queue_entry_t *wqe, unsigned mode, int flags, mode 196 block/scsi_ioctl.c int blk_verify_command(unsigned char *cmd, fmode_t mode) mode 209 block/scsi_ioctl.c if (test_bit(cmd[0], filter->write_ok) && (mode & FMODE_WRITE)) mode 217 block/scsi_ioctl.c struct sg_io_hdr *hdr, fmode_t mode) mode 223 block/scsi_ioctl.c if (blk_verify_command(req->cmd, mode)) mode 279 block/scsi_ioctl.c struct sg_io_hdr *hdr, fmode_t mode) mode 321 block/scsi_ioctl.c ret = blk_fill_sghdr_rq(q, rq, hdr, mode); mode 404 block/scsi_ioctl.c int sg_scsi_ioctl(struct request_queue *q, struct gendisk *disk, fmode_t mode, mode 457 block/scsi_ioctl.c err = blk_verify_command(req->cmd, mode); mode 545 block/scsi_ioctl.c int scsi_cmd_ioctl(struct request_queue *q, struct gendisk *bd_disk, fmode_t mode, mode 587 block/scsi_ioctl.c err = sg_io(q, bd_disk, &hdr, mode); mode 635 block/scsi_ioctl.c err = sg_io(q, bd_disk, &hdr, mode); mode 659 block/scsi_ioctl.c err = sg_scsi_ioctl(q, bd_disk, mode, arg); mode 687 block/scsi_ioctl.c int scsi_cmd_blk_ioctl(struct block_device *bd, fmode_t mode, mode 696 block/scsi_ioctl.c return scsi_cmd_ioctl(bd->bd_disk->queue, bd->bd_disk, mode, cmd, arg); mode 38 crypto/fips.c .mode = 0444, mode 47 crypto/fips.c .mode = 0555, mode 64 crypto/tcrypt.c static int mode; mode 2354 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2358 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2362 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2366 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2370 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2374 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2378 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2382 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2386 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2390 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2394 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2398 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2402 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2406 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2410 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2414 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2418 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2422 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2426 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2430 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2434 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2438 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2442 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2446 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2450 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2454 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2459 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2464 crypto/tcrypt.c if (mode > 300 && mode < 400) break; mode 2477 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2481 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2485 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2489 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2493 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2497 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2501 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2505 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2509 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2513 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2517 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2521 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2525 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2529 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2533 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2537 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2541 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2545 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2549 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2553 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2557 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2562 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2567 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2572 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2577 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2582 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 2587 crypto/tcrypt.c if (mode > 400 && mode < 500) break; mode 3035 crypto/tcrypt.c err = do_test(alg, type, mask, mode, num_mb); mode 3073 crypto/tcrypt.c module_param(mode, int, 0); mode 24 drivers/acpi/acpica/achware.h acpi_status acpi_hw_set_mode(u32 mode); mode 28 drivers/acpi/acpica/hwacpi.c acpi_status acpi_hw_set_mode(u32 mode) mode 65 drivers/acpi/acpica/hwacpi.c switch (mode) { mode 396 drivers/acpi/battery.c u8 mode; /* int or string? */ mode 457 drivers/acpi/battery.c if (offsets[i].mode) { mode 678 drivers/acpi/battery.c .attr = {.name = "alarm", .mode = 0644}, mode 1280 drivers/acpi/battery.c unsigned long mode, void *_unused) mode 1286 drivers/acpi/battery.c switch (mode) { mode 114 drivers/acpi/ec_sys.c umode_t mode = 0400; mode 127 drivers/acpi/ec_sys.c mode = 0600; mode 128 drivers/acpi/ec_sys.c debugfs_create_file("io", mode, dev_dir, ec, &acpi_ec_io_ops); mode 1390 drivers/acpi/nfit/core.c return a->mode; mode 1681 drivers/acpi/nfit/core.c return a->mode; mode 1692 drivers/acpi/nfit/core.c return a->mode; mode 79 drivers/acpi/sbs.c u16 mode; mode 125 drivers/acpi/sbs.c return (battery->mode & 0x8000); mode 302 drivers/acpi/sbs.c u8 mode; /* word or block? */ mode 308 drivers/acpi/sbs.c {0x03, SMBUS_READ_WORD, offsetof(struct acpi_battery, mode)}, mode 348 drivers/acpi/sbs.c info_readers[i].mode, mode 369 drivers/acpi/sbs.c state_readers[i].mode, mode 469 drivers/acpi/sbs.c .attr = {.name = "alarm", .mode = 0644}, mode 398 drivers/acpi/sysfs.c table_attr->attr.attr.mode = 0400; mode 493 drivers/acpi/sysfs.c data_attr->attr.attr.mode = 0400; mode 915 drivers/acpi/sysfs.c counter_attrs[i].attr.mode = 0644; mode 223 drivers/acpi/thermal.c static int acpi_thermal_set_cooling_mode(struct acpi_thermal *tz, int mode) mode 229 drivers/acpi/thermal.c "_SCP", mode))) mode 528 drivers/acpi/thermal.c enum thermal_device_mode *mode) mode 535 drivers/acpi/thermal.c *mode = tz->tz_enabled ? THERMAL_DEVICE_ENABLED : mode 542 drivers/acpi/thermal.c enum thermal_device_mode mode) mode 553 drivers/acpi/thermal.c if (mode == THERMAL_DEVICE_ENABLED) mode 555 drivers/acpi/thermal.c else if (mode == THERMAL_DEVICE_DISABLED) { mode 478 drivers/android/binderfs.c static struct inode *binderfs_make_inode(struct super_block *sb, int mode) mode 485 drivers/android/binderfs.c ret->i_mode = mode; mode 27 drivers/ata/ahci_mtk.c struct regmap *mode; mode 110 drivers/ata/ahci_mtk.c plat->mode = syscon_regmap_lookup_by_phandle( mode 112 drivers/ata/ahci_mtk.c if (IS_ERR(plat->mode)) { mode 114 drivers/ata/ahci_mtk.c return PTR_ERR(plat->mode); mode 117 drivers/ata/ahci_mtk.c regmap_update_bits(plat->mode, SYS_CFG, SYS_CFG_SATA_MSK, mode 497 drivers/ata/libata-acpi.c u8 mode; mode 505 drivers/ata/libata-acpi.c mode = ata_timing_cycle2mode(ATA_SHIFT_PIO, gtm->drive[unit].pio); mode 506 drivers/ata/libata-acpi.c xfer_mask |= ata_xfer_mode2mask(mode); mode 517 drivers/ata/libata-acpi.c mode = ata_timing_cycle2mode(type, gtm->drive[unit].dma); mode 518 drivers/ata/libata-acpi.c xfer_mask |= ata_xfer_mode2mask(mode); mode 182 drivers/ata/libata-core.c enum ata_link_iter_mode mode) mode 184 drivers/ata/libata-core.c BUG_ON(mode != ATA_LITER_EDGE && mode 185 drivers/ata/libata-core.c mode != ATA_LITER_PMP_FIRST && mode != ATA_LITER_HOST_FIRST); mode 189 drivers/ata/libata-core.c switch (mode) { mode 201 drivers/ata/libata-core.c switch (mode) { mode 222 drivers/ata/libata-core.c if (mode == ATA_LITER_PMP_FIRST) mode 241 drivers/ata/libata-core.c enum ata_dev_iter_mode mode) mode 243 drivers/ata/libata-core.c BUG_ON(mode != ATA_DITER_ENABLED && mode != ATA_DITER_ENABLED_REVERSE && mode 244 drivers/ata/libata-core.c mode != ATA_DITER_ALL && mode != ATA_DITER_ALL_REVERSE); mode 248 drivers/ata/libata-core.c switch (mode) { mode 261 drivers/ata/libata-core.c switch (mode) { mode 275 drivers/ata/libata-core.c if ((mode == ATA_DITER_ENABLED || mode == ATA_DITER_ENABLED_REVERSE) && mode 1478 drivers/ata/libata-core.c u8 mode = (id[ATA_ID_OLD_PIO_MODES] >> 8) & 0xFF; mode 1479 drivers/ata/libata-core.c if (mode < 5) /* Valid PIO range */ mode 1480 drivers/ata/libata-core.c pio_mask = (2 << mode) - 1; mode 3256 drivers/ata/libata-core.c while (xfer_mode > t->mode) mode 3259 drivers/ata/libata-core.c if (xfer_mode == t->mode) mode 3371 drivers/ata/libata-core.c t && ata_xfer_mode2shift(t->mode) == xfer_shift; t++) { mode 3389 drivers/ata/libata-core.c last_mode = t->mode; mode 571 drivers/ata/libata-transport.c unsigned char *mode; mode 574 drivers/ata/libata-transport.c mode = "unsupported"; mode 576 drivers/ata/libata-transport.c mode = "forced_unsupported"; mode 578 drivers/ata/libata-transport.c mode = "forced_unqueued"; mode 580 drivers/ata/libata-transport.c mode = "queued"; mode 582 drivers/ata/libata-transport.c mode = "unqueued"; mode 584 drivers/ata/libata-transport.c return snprintf(buf, 20, "%s\n", mode); mode 693 drivers/ata/libata-transport.c i->private_##attrb[count].attr.mode = perm; \ mode 224 drivers/ata/pata_artop.c u8 mode = (adev->dma_mode - XFER_UDMA_0) + 1 - clock; mode 225 drivers/ata/pata_artop.c if (mode == 0) mode 226 drivers/ata/pata_artop.c mode = 1; mode 227 drivers/ata/pata_artop.c ultra |= (mode << (2 * dn)); mode 262 drivers/ata/pata_artop.c u8 mode = adev->dma_mode - XFER_UDMA_0 + 1 - clock; mode 263 drivers/ata/pata_artop.c if (mode == 0) mode 264 drivers/ata/pata_artop.c mode = 1; mode 265 drivers/ata/pata_artop.c ultra |= (mode << (4 * adev->devno)); mode 113 drivers/ata/pata_atp867x.c u8 mode = speed - XFER_UDMA_0 + 1; mode 122 drivers/ata/pata_atp867x.c if (dp->pci66mhz && mode > ATP867X_IO_DMAMODE_UDMA_0 && mode 124 drivers/ata/pata_atp867x.c mode < ATP867X_IO_DMAMODE_UDMA_5)) mode 125 drivers/ata/pata_atp867x.c mode--; mode 130 drivers/ata/pata_atp867x.c (mode << ATP867X_IO_DMAMODE_SLAVE_SHIFT); mode 133 drivers/ata/pata_atp867x.c (mode << ATP867X_IO_DMAMODE_MSTR_SHIFT); mode 68 drivers/ata/pata_bk3710.c unsigned int mode) mode 75 drivers/ata/pata_bk3710.c t0 = DIV_ROUND_UP(pata_bk3710_udmatimings[mode].cycletime, mode 78 drivers/ata/pata_bk3710.c trp = DIV_ROUND_UP(pata_bk3710_udmatimings[mode].rptime, mode 103 drivers/ata/pata_bk3710.c unsigned int mode) mode 111 drivers/ata/pata_bk3710.c t = ata_timing_find_mode(mode); mode 151 drivers/ata/pata_bk3710.c unsigned int mode) mode 157 drivers/ata/pata_bk3710.c t = ata_timing_find_mode(XFER_PIO_0 + mode); mode 178 drivers/ata/pata_bk3710.c if (mode2 < mode) mode 179 drivers/ata/pata_bk3710.c mode = mode2; mode 94 drivers/ata/pata_cmd64x.c static void cmd64x_set_timing(struct ata_port *ap, struct ata_device *adev, u8 mode) mode 118 drivers/ata/pata_cmd64x.c if (ata_timing_compute(adev, mode, &t, T, 0) < 0) { mode 96 drivers/ata/pata_cs5535.c int mode = adev->pio_mode - XFER_PIO_0; mode 97 drivers/ata/pata_cs5535.c int cmdmode = mode; mode 102 drivers/ata/pata_cs5535.c cmdmode = min(mode, pairmode); mode 110 drivers/ata/pata_cs5535.c pio_cmd_timings[cmdmode] << 16 | pio_timings[mode], 0); mode 133 drivers/ata/pata_cs5535.c int mode = adev->dma_mode; mode 137 drivers/ata/pata_cs5535.c if (mode >= XFER_UDMA_0) mode 138 drivers/ata/pata_cs5535.c reg |= udma_timings[mode - XFER_UDMA_0]; mode 140 drivers/ata/pata_cs5535.c reg |= mwdma_timings[mode - XFER_MW_DMA_0]; mode 164 drivers/ata/pata_cs5536.c int mode = adev->pio_mode - XFER_PIO_0; mode 165 drivers/ata/pata_cs5536.c int cmdmode = mode; mode 170 drivers/ata/pata_cs5536.c cmdmode = min(mode, pair->pio_mode - XFER_PIO_0); mode 172 drivers/ata/pata_cs5536.c cs5536_program_dtc(adev, drv_timings[mode]); mode 177 drivers/ata/pata_cs5536.c cast |= addr_timings[mode] << cshift; mode 204 drivers/ata/pata_cs5536.c int mode = adev->dma_mode; mode 209 drivers/ata/pata_cs5536.c if (mode >= XFER_UDMA_0) { mode 211 drivers/ata/pata_cs5536.c etc |= udma_timings[mode - XFER_UDMA_0] << dshift; mode 214 drivers/ata/pata_cs5536.c cs5536_program_dtc(adev, mwdma_timings[mode - XFER_MW_DMA_0]); mode 230 drivers/ata/pata_hpt366.c u8 mode) mode 237 drivers/ata/pata_hpt366.c if (mode < XFER_MW_DMA_0) mode 239 drivers/ata/pata_hpt366.c else if (mode < XFER_UDMA_0) mode 244 drivers/ata/pata_hpt366.c t = hpt36x_find_mode(ap, mode); mode 409 drivers/ata/pata_hpt37x.c u8 mode) mode 426 drivers/ata/pata_hpt37x.c if (mode < XFER_MW_DMA_0) mode 428 drivers/ata/pata_hpt37x.c else if (mode < XFER_UDMA_0) mode 433 drivers/ata/pata_hpt37x.c timing = hpt37x_find_mode(ap, mode); mode 503 drivers/ata/pata_hpt37x.c u8 mode) mode 519 drivers/ata/pata_hpt37x.c if (mode < XFER_MW_DMA_0) mode 521 drivers/ata/pata_hpt37x.c else if (mode < XFER_UDMA_0) mode 526 drivers/ata/pata_hpt37x.c timing = hpt37x_find_mode(ap, mode); mode 183 drivers/ata/pata_hpt3x2n.c u8 mode) mode 199 drivers/ata/pata_hpt3x2n.c if (mode < XFER_MW_DMA_0) mode 201 drivers/ata/pata_hpt3x2n.c else if (mode < XFER_UDMA_0) mode 206 drivers/ata/pata_hpt3x2n.c timing = hpt3x2n_find_mode(ap, mode); mode 60 drivers/ata/pata_imx.c u32 T, mode; mode 71 drivers/ata/pata_imx.c mode = adev->pio_mode - XFER_PIO_0; mode 80 drivers/ata/pata_imx.c writeb(pio_t4[mode] / T + 1, priv->host_regs + PATA_IMX_ATA_TIME_4); mode 81 drivers/ata/pata_imx.c writeb(pio_t9[mode] / T + 1, priv->host_regs + PATA_IMX_ATA_TIME_9); mode 82 drivers/ata/pata_imx.c writeb(pio_tA[mode] / T + 1, priv->host_regs + PATA_IMX_ATA_TIME_AX); mode 606 drivers/ata/pata_it821x.c int mode = 0; mode 621 drivers/ata/pata_it821x.c mode = ffs(buf[51]); mode 624 drivers/ata/pata_it821x.c mode = ffs(buf[49]); mode 631 drivers/ata/pata_it821x.c if (mode) mode 632 drivers/ata/pata_it821x.c snprintf(mbuf, 8, "%5s%d", mtype, mode - 1); mode 906 drivers/ata/pata_it821x.c static const char *mode[2] = { "pass through", "smart" }; mode 929 drivers/ata/pata_it821x.c mode[conf]); mode 260 drivers/ata/pata_macio.c int mode; mode 357 drivers/ata/pata_macio.c int mode) mode 361 drivers/ata/pata_macio.c for (i = 0; priv->timings[i].mode > 0; i++) { mode 362 drivers/ata/pata_macio.c if (priv->timings[i].mode == mode) mode 1015 drivers/ata/pata_macio.c while (priv->timings[i].mode > 0) { mode 1016 drivers/ata/pata_macio.c unsigned int mask = 1U << (priv->timings[i].mode & 0x0f); mode 1017 drivers/ata/pata_macio.c switch(priv->timings[i].mode & 0xf0) { mode 53 drivers/ata/pata_ns87415.c static void ns87415_set_mode(struct ata_port *ap, struct ata_device *adev, u8 mode) mode 78 drivers/ata/pata_ns87415.c if (mode >= XFER_MW_DMA_0 || !ata_pio_need_iordy(adev)) mode 116 drivers/ata/pata_optidma.c static void optidma_mode_setup(struct ata_port *ap, struct ata_device *adev, u8 mode) mode 148 drivers/ata/pata_optidma.c if (mode >= XFER_MW_DMA_0) mode 168 drivers/ata/pata_optidma.c if (mode < XFER_MW_DMA_0) { mode 171 drivers/ata/pata_optidma.c } else if (mode < XFER_UDMA_0) { mode 201 drivers/ata/pata_optidma.c static void optiplus_mode_setup(struct ata_port *ap, struct ata_device *adev, u8 mode) mode 208 drivers/ata/pata_optidma.c int udma = mode - XFER_UDMA_0; mode 211 drivers/ata/pata_optidma.c if (mode <= XFER_UDMA_0) { mode 76 drivers/ata/pata_samsung_cf.c static void pata_s3c_set_endian(void __iomem *s3c_ide_regbase, u8 mode) mode 79 drivers/ata/pata_samsung_cf.c reg = mode ? (reg & ~S3C_ATA_CFG_SWAP) : (reg | S3C_ATA_CFG_SWAP); mode 88 drivers/ata/pata_sc1200.c int mode = adev->pio_mode - XFER_PIO_0; mode 94 drivers/ata/pata_sc1200.c pio_timings[format][mode]); mode 123 drivers/ata/pata_sc1200.c int mode = adev->dma_mode; mode 126 drivers/ata/pata_sc1200.c if (mode >= XFER_UDMA_0) mode 127 drivers/ata/pata_sc1200.c format = udma_timing[clock][mode - XFER_UDMA_0]; mode 129 drivers/ata/pata_sc1200.c format = mwdma_timing[clock][mode - XFER_MW_DMA_0]; mode 123 drivers/ata/pata_sil680.c u8 mode; mode 134 drivers/ata/pata_sil680.c pci_read_config_byte(pdev, addr_mask, &mode); mode 137 drivers/ata/pata_sil680.c mode &= ~(3 << port_shift); /* Clear IORDY and DMA bits */ mode 141 drivers/ata/pata_sil680.c mode |= 1 << port_shift; mode 144 drivers/ata/pata_sil680.c pci_write_config_byte(pdev, addr_mask, mode); mode 171 drivers/ata/pata_sil680.c u8 scsc, mode; mode 175 drivers/ata/pata_sil680.c pci_read_config_byte(pdev, addr_mask, &mode); mode 181 drivers/ata/pata_sil680.c mode &= ~(0x03 << port_shift); mode 189 drivers/ata/pata_sil680.c mode |= (0x03 << port_shift); mode 192 drivers/ata/pata_sil680.c mode |= (0x02 << port_shift); mode 194 drivers/ata/pata_sil680.c pci_write_config_byte(pdev, addr_mask, mode); mode 246 drivers/ata/pata_via.c int mode, int set_ast, int udma_type) mode 267 drivers/ata/pata_via.c ata_timing_compute(adev, mode, &t, T, UT); mode 1518 drivers/ata/sata_fsl.c host_priv->intr_coalescing.attr.mode = S_IRUGO | S_IWUSR; mode 1527 drivers/ata/sata_fsl.c host_priv->rx_watermark.attr.mode = S_IRUGO | S_IWUSR; mode 440 drivers/atm/horizon.c static inline void update_tx_channel_config (hrz_dev * dev, short chan, u8 mode, u16 value) { mode 442 drivers/atm/horizon.c chan * TX_CHANNEL_CONFIG_MULT | mode); mode 159 drivers/atm/idt77105.c static int set_loopback(struct atm_dev *dev,int mode) mode 164 drivers/atm/idt77105.c switch (mode) { mode 179 drivers/atm/idt77105.c (mode == ATM_LM_NONE ? "NONE" : mode 180 drivers/atm/idt77105.c (mode == ATM_LM_LOC_ATM ? "DIAG (local)" : mode 181 drivers/atm/idt77105.c (mode == IDT77105_DIAG_LC_LINE_LOOPBACK ? "LOOP (remote)" : mode 184 drivers/atm/idt77105.c PRIV(dev)->loop_mode = mode; mode 1194 drivers/atm/iphase.c wr_ptr->mode = DMA_INT_ENABLE; mode 3029 drivers/atm/iphase.c wr_ptr->mode = TX_DLE_PSI; mode 3042 drivers/atm/iphase.c wr_ptr->mode = DMA_INT_ENABLE; mode 287 drivers/atm/iphase.h u16 mode; mode 153 drivers/atm/suni.c static int set_loopback(struct atm_dev *dev,int mode) mode 169 drivers/atm/suni.c switch (mode) { mode 182 drivers/atm/suni.c PRIV(dev)->loop_mode = mode; mode 242 drivers/atm/suni.c int mode; mode 244 drivers/atm/suni.c if (get_user(mode, (int __user *) arg)) mode 247 drivers/atm/suni.c if (mode == SONET_FRAME_SONET) mode 249 drivers/atm/suni.c else if (mode == SONET_FRAME_SDH) mode 103 drivers/atm/uPD98402.c static int set_loopback(struct atm_dev *dev,int mode) mode 109 drivers/atm/uPD98402.c switch (__ATM_LM_XTLOC(mode)) { mode 121 drivers/atm/uPD98402.c switch (__ATM_LM_XTRMT(mode)) { mode 131 drivers/atm/uPD98402.c PRIV(dev)->loop_mode = mode; mode 486 drivers/base/cacheinfo.c umode_t mode = attr->mode; mode 489 drivers/base/cacheinfo.c return mode; mode 491 drivers/base/cacheinfo.c return mode; mode 493 drivers/base/cacheinfo.c return mode; mode 495 drivers/base/cacheinfo.c return mode; mode 497 drivers/base/cacheinfo.c return mode; mode 500 drivers/base/cacheinfo.c return mode; mode 503 drivers/base/cacheinfo.c return mode; mode 506 drivers/base/cacheinfo.c return mode; mode 508 drivers/base/cacheinfo.c return mode; mode 511 drivers/base/cacheinfo.c return mode; mode 514 drivers/base/cacheinfo.c return mode; mode 517 drivers/base/cacheinfo.c return mode; mode 1170 drivers/base/core.c umode_t mode = 0; mode 1176 drivers/base/core.c name = device_get_devnode(dev, &mode, &uid, &gid, &tmp); mode 1179 drivers/base/core.c if (mode) mode 1180 drivers/base/core.c add_uevent_var(env, "DEVMODE=%#o", mode & 0777); mode 1590 drivers/base/core.c WARN(((attr->attr.mode & S_IWUGO) && !attr->store), mode 1593 drivers/base/core.c WARN(((attr->attr.mode & S_IRUGO) && !attr->show), mode 2453 drivers/base/core.c umode_t *mode, kuid_t *uid, kgid_t *gid, mode 2462 drivers/base/core.c *tmp = dev->type->devnode(dev, mode, uid, gid); mode 2468 drivers/base/core.c *tmp = dev->class->devnode(dev, mode); mode 97 drivers/base/devcoredump.c .attr = { .name = "data", .mode = S_IRUSR | S_IWUSR, }, mode 46 drivers/base/devtmpfs.c umode_t mode; /* 0 => delete */ mode 104 drivers/base/devtmpfs.c req.mode = 0; mode 107 drivers/base/devtmpfs.c req.name = device_get_devnode(dev, &req.mode, &req.uid, &req.gid, &tmp); mode 111 drivers/base/devtmpfs.c if (req.mode == 0) mode 112 drivers/base/devtmpfs.c req.mode = 0600; mode 114 drivers/base/devtmpfs.c req.mode |= S_IFBLK; mode 116 drivers/base/devtmpfs.c req.mode |= S_IFCHR; mode 147 drivers/base/devtmpfs.c req.mode = 0; mode 164 drivers/base/devtmpfs.c static int dev_mkdir(const char *name, umode_t mode) mode 174 drivers/base/devtmpfs.c err = vfs_mkdir(d_inode(path.dentry), dentry, mode); mode 209 drivers/base/devtmpfs.c static int handle_create(const char *nodename, umode_t mode, kuid_t uid, mode 224 drivers/base/devtmpfs.c err = vfs_mknod(d_inode(path.dentry), dentry, mode, dev->devt); mode 228 drivers/base/devtmpfs.c newattrs.ia_mode = mode; mode 299 drivers/base/devtmpfs.c if (!S_ISBLK(stat->mode)) mode 302 drivers/base/devtmpfs.c if (!S_ISCHR(stat->mode)) mode 336 drivers/base/devtmpfs.c newattrs.ia_mode = stat.mode & ~0777; mode 382 drivers/base/devtmpfs.c static int handle(const char *name, umode_t mode, kuid_t uid, kgid_t gid, mode 385 drivers/base/devtmpfs.c if (mode) mode 386 drivers/base/devtmpfs.c return handle_create(name, mode, uid, gid, dev); mode 411 drivers/base/devtmpfs.c req->err = handle(req->name, req->mode, mode 435 drivers/base/firmware_loader/fallback.c .attr = { .name = "data", .mode = 0644 }, mode 32 drivers/base/firmware_loader/fallback_table.c .mode = 0644, mode 41 drivers/base/firmware_loader/fallback_table.c .mode = 0644, mode 1334 drivers/base/firmware_loader/main.c unsigned long mode, void *unused) mode 1336 drivers/base/firmware_loader/main.c switch (mode) { mode 248 drivers/base/power/trace.c pm_trace_notify(struct notifier_block *nb, unsigned long mode, void *_unused) mode 250 drivers/base/power/trace.c switch (mode) { mode 54 drivers/base/soc.c return attr->mode; mode 57 drivers/base/soc.c return attr->mode; mode 60 drivers/base/soc.c return attr->mode; mode 63 drivers/base/soc.c return attr->mode; mode 66 drivers/base/soc.c return attr->mode; mode 1535 drivers/block/amiflop.c static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode, mode 1610 drivers/block/amiflop.c static int fd_ioctl(struct block_device *bdev, fmode_t mode, mode 1616 drivers/block/amiflop.c ret = fd_locked_ioctl(bdev, mode, cmd, param); mode 1657 drivers/block/amiflop.c static int floppy_open(struct block_device *bdev, fmode_t mode) mode 1672 drivers/block/amiflop.c if (mode & (FMODE_READ|FMODE_WRITE)) { mode 1674 drivers/block/amiflop.c if (mode & FMODE_WRITE) { mode 1707 drivers/block/amiflop.c static void floppy_release(struct gendisk *disk, fmode_t mode) mode 166 drivers/block/aoe/aoeblk.c .attr = { .name = "firmware-version", .mode = 0444 }, mode 220 drivers/block/aoe/aoeblk.c aoeblk_open(struct block_device *bdev, fmode_t mode) mode 248 drivers/block/aoe/aoeblk.c aoeblk_release(struct gendisk *disk, fmode_t mode) mode 301 drivers/block/aoe/aoeblk.c aoeblk_ioctl(struct block_device *bdev, fmode_t mode, uint cmd, ulong arg) mode 278 drivers/block/aoe/aoechr.c static char *aoe_devnode(struct device *dev, umode_t *mode) mode 442 drivers/block/ataflop.c static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode, unsigned int mode 447 drivers/block/ataflop.c static int floppy_open(struct block_device *bdev, fmode_t mode); mode 448 drivers/block/ataflop.c static void floppy_release(struct gendisk *disk, fmode_t mode); mode 1559 drivers/block/ataflop.c static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode, mode 1742 drivers/block/ataflop.c static int fd_ioctl(struct block_device *bdev, fmode_t mode, mode 1748 drivers/block/ataflop.c ret = fd_locked_ioctl(bdev, mode, cmd, arg); mode 1889 drivers/block/ataflop.c static int floppy_open(struct block_device *bdev, fmode_t mode) mode 1898 drivers/block/ataflop.c if (p->ref == -1 || (p->ref && mode & FMODE_EXCL)) mode 1901 drivers/block/ataflop.c if (mode & FMODE_EXCL) mode 1908 drivers/block/ataflop.c if (mode & FMODE_NDELAY) mode 1911 drivers/block/ataflop.c if (mode & (FMODE_READ|FMODE_WRITE)) { mode 1913 drivers/block/ataflop.c if (mode & FMODE_WRITE) { mode 1926 drivers/block/ataflop.c static int floppy_unlocked_open(struct block_device *bdev, fmode_t mode) mode 1931 drivers/block/ataflop.c ret = floppy_open(bdev, mode); mode 1937 drivers/block/ataflop.c static void floppy_release(struct gendisk *disk, fmode_t mode) mode 34 drivers/block/cryptoloop.c char *mode; mode 48 drivers/block/cryptoloop.c mode = cmsp + cipher_len; mode 50 drivers/block/cryptoloop.c if (*mode) { mode 51 drivers/block/cryptoloop.c mode++; mode 52 drivers/block/cryptoloop.c mode_len = strcspn(mode, "-"); mode 56 drivers/block/cryptoloop.c mode = "cbc"; mode 63 drivers/block/cryptoloop.c memmove(cms, mode, mode_len); mode 653 drivers/block/drbd/drbd_actlog.c enum update_sync_bits_mode mode) mode 666 drivers/block/drbd/drbd_actlog.c if (mode == SET_OUT_OF_SYNC) mode 673 drivers/block/drbd/drbd_actlog.c if (mode == SET_IN_SYNC) mode 675 drivers/block/drbd/drbd_actlog.c else if (mode == SET_OUT_OF_SYNC) mode 715 drivers/block/drbd/drbd_actlog.c ext->rs_failed = (mode == RECORD_RS_FAILED) ? count : 0; mode 720 drivers/block/drbd/drbd_actlog.c if (mode != SET_OUT_OF_SYNC) mode 728 drivers/block/drbd/drbd_actlog.c } else if (mode != SET_OUT_OF_SYNC) { mode 781 drivers/block/drbd/drbd_actlog.c enum update_sync_bits_mode mode) mode 798 drivers/block/drbd/drbd_actlog.c if (mode == RECORD_RS_FAILED) mode 805 drivers/block/drbd/drbd_actlog.c else if (mode == SET_IN_SYNC) mode 812 drivers/block/drbd/drbd_actlog.c cleared += update_rs_extent(device, BM_BIT_TO_EXT(sbnr), c, mode); mode 819 drivers/block/drbd/drbd_actlog.c if (mode == SET_IN_SYNC) { mode 825 drivers/block/drbd/drbd_actlog.c } else if (mode == RECORD_RS_FAILED) mode 847 drivers/block/drbd/drbd_actlog.c enum update_sync_bits_mode mode) mode 855 drivers/block/drbd/drbd_actlog.c if ((mode == SET_OUT_OF_SYNC) && size == 0) mode 860 drivers/block/drbd/drbd_actlog.c drbd_change_sync_fname[mode], mode 878 drivers/block/drbd/drbd_actlog.c if (mode == SET_IN_SYNC) { mode 895 drivers/block/drbd/drbd_actlog.c count = update_sync_bits(device, sbnr, ebnr, mode); mode 1649 drivers/block/drbd/drbd_int.h enum update_sync_bits_mode mode); mode 53 drivers/block/drbd/drbd_main.c static int drbd_open(struct block_device *bdev, fmode_t mode); mode 54 drivers/block/drbd/drbd_main.c static void drbd_release(struct gendisk *gd, fmode_t mode); mode 1912 drivers/block/drbd/drbd_main.c static int drbd_open(struct block_device *bdev, fmode_t mode) mode 1924 drivers/block/drbd/drbd_main.c if (mode & FMODE_WRITE) mode 1938 drivers/block/drbd/drbd_main.c static void drbd_release(struct gendisk *gd, fmode_t mode) mode 840 drivers/block/floppy.c static void reset_fdc_info(int mode) mode 849 drivers/block/floppy.c if (FDC(drive) == fdc && (mode || UDRS->track != NEED_1_RECAL)) mode 3406 drivers/block/floppy.c static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, mode 3441 drivers/block/floppy.c if (((cmd & 0x40) && !(mode & (FMODE_WRITE | FMODE_WRITE_IOCTL))) || mode 3588 drivers/block/floppy.c static int fd_ioctl(struct block_device *bdev, fmode_t mode, mode 3594 drivers/block/floppy.c ret = fd_locked_ioctl(bdev, mode, cmd, param); mode 3676 drivers/block/floppy.c static int compat_set_geometry(struct block_device *bdev, fmode_t mode, unsigned int cmd, mode 3686 drivers/block/floppy.c if (!(mode & (FMODE_WRITE | FMODE_WRITE_IOCTL))) mode 3880 drivers/block/floppy.c static int fd_compat_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, mode 3895 drivers/block/floppy.c return fd_ioctl(bdev, mode, cmd, param); mode 3902 drivers/block/floppy.c return fd_ioctl(bdev, mode, cmd, mode 3906 drivers/block/floppy.c return compat_set_geometry(bdev, mode, cmd, compat_ptr(param)); mode 3979 drivers/block/floppy.c static void floppy_release(struct gendisk *disk, fmode_t mode) mode 4000 drivers/block/floppy.c static int floppy_open(struct block_device *bdev, fmode_t mode) mode 4066 drivers/block/floppy.c if (!(mode & FMODE_NDELAY)) { mode 4067 drivers/block/floppy.c if (mode & (FMODE_READ|FMODE_WRITE)) { mode 4077 drivers/block/floppy.c if ((mode & FMODE_WRITE) && mode 421 drivers/block/loop.c int mode) mode 433 drivers/block/loop.c mode |= FALLOC_FL_KEEP_SIZE; mode 440 drivers/block/loop.c ret = file->f_op->fallocate(file, mode, pos, blk_rq_bytes(rq)); mode 951 drivers/block/loop.c static int loop_set_fd(struct loop_device *lo, fmode_t mode, mode 975 drivers/block/loop.c if (!(mode & FMODE_EXCL)) { mode 998 drivers/block/loop.c if (!(file->f_mode & FMODE_WRITE) || !(mode & FMODE_WRITE) || mode 1611 drivers/block/loop.c static int lo_ioctl(struct block_device *bdev, fmode_t mode, mode 1619 drivers/block/loop.c return loop_set_fd(lo, mode, bdev, arg); mode 1626 drivers/block/loop.c if ((mode & FMODE_WRITE) || capable(CAP_SYS_ADMIN)) { mode 1635 drivers/block/loop.c if ((mode & FMODE_WRITE) || capable(CAP_SYS_ADMIN)) { mode 1645 drivers/block/loop.c if (!(mode & FMODE_WRITE) && !capable(CAP_SYS_ADMIN)) mode 1774 drivers/block/loop.c static int lo_compat_ioctl(struct block_device *bdev, fmode_t mode, mode 1799 drivers/block/loop.c err = lo_ioctl(bdev, mode, cmd, arg); mode 1809 drivers/block/loop.c static int lo_open(struct block_device *bdev, fmode_t mode) mode 1829 drivers/block/loop.c static void lo_release(struct gendisk *disk, fmode_t mode) mode 3202 drivers/block/mtip32xx/mtip32xx.c fmode_t mode, mode 3240 drivers/block/mtip32xx/mtip32xx.c fmode_t mode, mode 3343 drivers/block/mtip32xx/mtip32xx.c static int mtip_block_open(struct block_device *dev, fmode_t mode) mode 3361 drivers/block/mtip32xx/mtip32xx.c static void mtip_block_release(struct gendisk *disk, fmode_t mode) mode 216 drivers/block/nbd.c .attr = { .name = "pid", .mode = 0444}, mode 1403 drivers/block/nbd.c static int nbd_ioctl(struct block_device *bdev, fmode_t mode, mode 1449 drivers/block/nbd.c static int nbd_open(struct block_device *bdev, fmode_t mode) mode 1490 drivers/block/nbd.c static void nbd_release(struct gendisk *disk, fmode_t mode) mode 1428 drivers/block/null_blk_main.c static int null_open(struct block_device *bdev, fmode_t mode) mode 1433 drivers/block/null_blk_main.c static void null_release(struct gendisk *disk, fmode_t mode) mode 53 drivers/block/paride/aten.c switch (pi->mode) { mode 74 drivers/block/paride/aten.c switch (pi->mode) { mode 129 drivers/block/paride/aten.c printk("mode %d (%s), delay %d\n",pi->mode, mode 130 drivers/block/paride/aten.c mode_string[pi->mode],pi->delay); mode 54 drivers/block/paride/bpck.c switch (pi->mode) { mode 85 drivers/block/paride/bpck.c switch (pi->mode) { mode 112 drivers/block/paride/bpck.c switch (pi->mode) { mode 153 drivers/block/paride/bpck.c switch (pi->mode) { mode 226 drivers/block/paride/bpck.c switch (pi->mode) { mode 256 drivers/block/paride/bpck.c if (pi->mode >= 2) { w2(9); w2(0); } else t2(2); mode 285 drivers/block/paride/bpck.c switch (pi->mode) { mode 308 drivers/block/paride/bpck.c case 4: om = pi->mode; mode 309 drivers/block/paride/bpck.c pi->mode = 0; mode 315 drivers/block/paride/bpck.c pi->mode = om; mode 319 drivers/block/paride/bpck.c switch (pi->mode) { mode 338 drivers/block/paride/bpck.c pi->device,pi->port,pi->unit,pi->mode); mode 354 drivers/block/paride/bpck.c om = pi->mode; od = pi->delay; mode 355 drivers/block/paride/bpck.c pi->mode = 0; pi->delay = 6; mode 396 drivers/block/paride/bpck.c pi->mode = om; pi->delay = od; mode 442 drivers/block/paride/bpck.c pi->mode,mode_string[pi->mode],pi->delay); mode 98 drivers/block/paride/bpck6.c if(pi->mode >=2) mode 100 drivers/block/paride/bpck6.c PPCSTRUCT(pi)->mode=4+pi->mode-2; mode 102 drivers/block/paride/bpck6.c else if(pi->mode==1) mode 104 drivers/block/paride/bpck6.c PPCSTRUCT(pi)->mode=3; mode 108 drivers/block/paride/bpck6.c PPCSTRUCT(pi)->mode=1; mode 170 drivers/block/paride/bpck6.c PPCSTRUCT(pi)->mode=1; mode 208 drivers/block/paride/bpck6.c pi->unit,pi->mode,mode_string[pi->mode],pi->delay); mode 51 drivers/block/paride/comm.c switch (pi->mode) { mode 77 drivers/block/paride/comm.c switch (pi->mode) { mode 112 drivers/block/paride/comm.c switch (pi->mode) { mode 153 drivers/block/paride/comm.c switch (pi->mode) { mode 185 drivers/block/paride/comm.c printk("mode %d (%s), delay %d\n",pi->mode, mode 186 drivers/block/paride/comm.c mode_string[pi->mode],pi->delay); mode 54 drivers/block/paride/dstr.c if (pi->mode) { w0(0x11); } else { w0(1); } mode 57 drivers/block/paride/dstr.c switch (pi->mode) { mode 81 drivers/block/paride/dstr.c if (pi->mode >= 2) { w0(0x11); } else { w0(1); } mode 84 drivers/block/paride/dstr.c switch (pi->mode) { mode 120 drivers/block/paride/dstr.c if (pi->mode) { w0(0x19); } else { w0(9); } mode 123 drivers/block/paride/dstr.c switch (pi->mode) { mode 162 drivers/block/paride/dstr.c if (pi->mode) { w0(0x19); } else { w0(9); } mode 165 drivers/block/paride/dstr.c switch (pi->mode) { mode 200 drivers/block/paride/dstr.c printk("mode %d (%s), delay %d\n",pi->mode, mode 201 drivers/block/paride/dstr.c mode_string[pi->mode],pi->delay); mode 53 drivers/block/paride/epat.c switch (pi->mode) { mode 74 drivers/block/paride/epat.c switch (pi->mode) { mode 101 drivers/block/paride/epat.c switch (pi->mode) { mode 166 drivers/block/paride/epat.c switch (pi->mode) { mode 234 drivers/block/paride/epat.c if (pi->mode >= 3) { mode 284 drivers/block/paride/epat.c pi->device,pi->port,pi->mode,cc,e[0],e[1],f); mode 303 drivers/block/paride/epat.c printk("mode %d (%s), delay %d\n",pi->mode, mode 304 drivers/block/paride/epat.c mode_string[pi->mode],pi->delay); mode 55 drivers/block/paride/epia.c switch (pi->mode) { mode 88 drivers/block/paride/epia.c switch (pi->mode) { mode 120 drivers/block/paride/epia.c if (pi->mode >= 3) { mode 140 drivers/block/paride/epia.c switch (pi->mode) { mode 200 drivers/block/paride/epia.c switch (pi->mode) { mode 267 drivers/block/paride/epia.c pi->device,pi->port,pi->mode,e[0],e[1],f); mode 282 drivers/block/paride/epia.c printk("mode %d (%s), delay %d\n",pi->mode, mode 283 drivers/block/paride/epia.c mode_string[pi->mode],pi->delay); mode 46 drivers/block/paride/fit3.c switch (pi->mode) { mode 71 drivers/block/paride/fit3.c switch (pi->mode) { mode 99 drivers/block/paride/fit3.c switch (pi->mode) { mode 138 drivers/block/paride/fit3.c switch (pi->mode) { mode 160 drivers/block/paride/fit3.c if (pi->mode == 2) { mode 179 drivers/block/paride/fit3.c pi->mode,mode_string[pi->mode],pi->delay); mode 81 drivers/block/paride/friq.c switch(pi->mode) { mode 141 drivers/block/paride/friq.c switch(pi->mode) { mode 212 drivers/block/paride/friq.c pi->device,pi->port,pi->mode,e[0],e[1],r); mode 226 drivers/block/paride/friq.c printk("mode %d (%s), delay %d\n",pi->mode, mode 227 drivers/block/paride/friq.c mode_string[pi->mode],pi->delay); mode 78 drivers/block/paride/frpw.c switch(pi->mode) { mode 144 drivers/block/paride/frpw.c switch(pi->mode) { mode 232 drivers/block/paride/frpw.c if (((pi->private%2) == 0) && (pi->mode > 2)) { mode 235 drivers/block/paride/frpw.c pi->device, pi->mode); mode 239 drivers/block/paride/frpw.c if (((pi->private%2) == 1) && (pi->mode == 2)) { mode 265 drivers/block/paride/frpw.c pi->device,pi->port,(pi->private%2),pi->mode,e[0],e[1],r); mode 279 drivers/block/paride/frpw.c printk("mode %d (%s), delay %d\n",pi->mode, mode 280 drivers/block/paride/frpw.c mode_string[pi->mode],pi->delay); mode 51 drivers/block/paride/kbic.c switch (pi->mode) { mode 81 drivers/block/paride/kbic.c switch (pi->mode) { mode 138 drivers/block/paride/kbic.c switch (pi->mode) { mode 196 drivers/block/paride/kbic.c switch (pi->mode) { mode 237 drivers/block/paride/kbic.c printk("mode %d (%s), delay %d\n",pi->mode, mode 238 drivers/block/paride/kbic.c mode_string[pi->mode],pi->delay); mode 44 drivers/block/paride/on20.c switch (pi->mode) { mode 76 drivers/block/paride/on20.c if (pi->mode) { op(2); vl(8); op(2); vl(9); } mode 94 drivers/block/paride/on20.c if (pi->mode) { mode 120 drivers/block/paride/on20.c printk("mode %d (%s), delay %d\n",pi->mode, mode 121 drivers/block/paride/on20.c mode_string[pi->mode],pi->delay); mode 53 drivers/block/paride/on26.c switch (pi->mode) { mode 82 drivers/block/paride/on26.c switch (pi->mode) { mode 110 drivers/block/paride/on26.c x = 8; if (pi->mode) x = 9; mode 118 drivers/block/paride/on26.c { if (pi->mode >= 2) { w3(4); w3(4); w3(4); w3(4); } mode 135 drivers/block/paride/on26.c m = pi->mode; mode 137 drivers/block/paride/on26.c pi->mode = 0; mode 178 drivers/block/paride/on26.c pi->mode = m; mode 190 drivers/block/paride/on26.c switch (pi->mode) { mode 239 drivers/block/paride/on26.c switch (pi->mode) { mode 243 drivers/block/paride/on26.c w0(2); P1; w0(0x18+pi->mode); P2; w0(0); P1; mode 250 drivers/block/paride/on26.c w0(2); P1; w0(8+pi->mode); P2; mode 285 drivers/block/paride/on26.c printk("mode %d (%s), delay %d\n",pi->mode, mode 286 drivers/block/paride/on26.c mode_string[pi->mode],pi->delay); mode 191 drivers/block/paride/paride.c pi->mode, e[0], e[1]); mode 279 drivers/block/paride/paride.c if (pi->mode != -1) { mode 280 drivers/block/paride/paride.c if (pi->mode >= max) mode 283 drivers/block/paride/paride.c if (pi->mode >= pi->proto->epp_first) mode 291 drivers/block/paride/paride.c for (pi->mode = 0; pi->mode < max; pi->mode++) { mode 293 drivers/block/paride/paride.c if (pi->mode >= pi->proto->epp_first) mode 299 drivers/block/paride/paride.c best = pi->mode; mode 301 drivers/block/paride/paride.c pi->mode = best; mode 350 drivers/block/paride/paride.c int pi_init(PIA * pi, int autoprobe, int port, int mode, mode 400 drivers/block/paride/paride.c pi->mode = mode; mode 40 drivers/block/paride/paride.h int mode; /* transfer mode in use */ mode 64 drivers/block/paride/paride.h int mode, /* -1 for autoprobe */ mode 231 drivers/block/paride/pcd.c static int pcd_block_open(struct block_device *bdev, fmode_t mode) mode 239 drivers/block/paride/pcd.c ret = cdrom_open(&cd->info, bdev, mode); mode 245 drivers/block/paride/pcd.c static void pcd_block_release(struct gendisk *disk, fmode_t mode) mode 249 drivers/block/paride/pcd.c cdrom_release(&cd->info, mode); mode 253 drivers/block/paride/pcd.c static int pcd_block_ioctl(struct block_device *bdev, fmode_t mode, mode 260 drivers/block/paride/pcd.c ret = cdrom_ioctl(&cd->info, bdev, mode, cmd, arg); mode 791 drivers/block/paride/pd.c static int pd_open(struct block_device *bdev, fmode_t mode) mode 823 drivers/block/paride/pd.c static int pd_ioctl(struct block_device *bdev, fmode_t mode, mode 840 drivers/block/paride/pd.c static void pd_release(struct gendisk *p, fmode_t mode) mode 208 drivers/block/paride/pf.c static int pf_open(struct block_device *bdev, fmode_t mode); mode 211 drivers/block/paride/pf.c static int pf_ioctl(struct block_device *bdev, fmode_t mode, mode 215 drivers/block/paride/pf.c static void pf_release(struct gendisk *disk, fmode_t mode); mode 328 drivers/block/paride/pf.c static int pf_open(struct block_device *bdev, fmode_t mode) mode 341 drivers/block/paride/pf.c if ((pf->media_status == PF_RO) && (mode & FMODE_WRITE)) mode 371 drivers/block/paride/pf.c static int pf_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) mode 387 drivers/block/paride/pf.c static void pf_release(struct gendisk *disk, fmode_t mode) mode 70 drivers/block/paride/ppc6lnx.c u8 mode; // operating mode mode 157 drivers/block/paride/ppc6lnx.c i = ppc->mode & 0x0C; mode 160 drivers/block/paride/ppc6lnx.c i = (ppc->mode & 2) | 1; mode 210 drivers/block/paride/ppc6lnx.c if (ppc->mode & 4) // EPP mode 228 drivers/block/paride/ppc6lnx.c switch(ppc->mode) mode 259 drivers/block/paride/ppc6lnx.c switch(ppc->mode) mode 292 drivers/block/paride/ppc6lnx.c switch(ppc->mode) mode 381 drivers/block/paride/ppc6lnx.c switch(ppc->mode) mode 530 drivers/block/paride/ppc6lnx.c switch(ppc->mode) mode 164 drivers/block/pktcdvd.c static struct attribute _obj = { .name = _name, .mode = _mode } mode 2260 drivers/block/pktcdvd.c static int pkt_open(struct block_device *bdev, fmode_t mode) mode 2276 drivers/block/pktcdvd.c if ((mode & FMODE_WRITE) && mode 2282 drivers/block/pktcdvd.c ret = pkt_open_dev(pd, mode & FMODE_WRITE); mode 2304 drivers/block/pktcdvd.c static void pkt_close(struct gendisk *disk, fmode_t mode) mode 2628 drivers/block/pktcdvd.c static int pkt_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg) mode 2654 drivers/block/pktcdvd.c ret = __blkdev_driver_ioctl(pd->bdev, mode, cmd, arg); mode 2690 drivers/block/pktcdvd.c static char *pktcdvd_devnode(struct gendisk *gd, umode_t *mode) mode 563 drivers/block/rbd.c return attr->mode; mode 659 drivers/block/rbd.c static int rbd_open(struct block_device *bdev, fmode_t mode) mode 678 drivers/block/rbd.c static void rbd_release(struct gendisk *disk, fmode_t mode) mode 706 drivers/block/rbd.c static int rbd_ioctl(struct block_device *bdev, fmode_t mode, mode 724 drivers/block/rbd.c static int rbd_compat_ioctl(struct block_device *bdev, fmode_t mode, mode 727 drivers/block/rbd.c return rbd_ioctl(bdev, mode, cmd, arg); mode 26 drivers/block/rsxx/config.c cfg->data.intr_coal.mode = RSXX_INTR_COAL_DISABLED; mode 189 drivers/block/rsxx/config.c card->config.data.intr_coal.mode); mode 55 drivers/block/rsxx/dev.c fmode_t mode, mode 178 drivers/block/rsxx/dma.c static u32 dma_intr_coal_val(u32 mode, u32 count, u32 latency) mode 182 drivers/block/rsxx/dma.c if (mode == RSXX_INTR_COAL_DISABLED) mode 196 drivers/block/rsxx/dma.c if (card->config.data.intr_coal.mode != RSXX_INTR_COAL_AUTO_TUNE || mode 203 drivers/block/rsxx/dma.c intr_coal = dma_intr_coal_val(card->config.data.intr_coal.mode, mode 882 drivers/block/rsxx/dma.c intr_coal = dma_intr_coal_val(card->config.data.intr_coal.mode, mode 35 drivers/block/rsxx/rsxx_cfg.h __u32 mode; /* Disabled, manual, auto-tune... */ mode 143 drivers/block/sunvdc.c static int vdc_ioctl(struct block_device *bdev, fmode_t mode, mode 909 drivers/block/sunvdc.c .mode = LDC_MODE_UNRELIABLE, mode 609 drivers/block/swim.c static int floppy_open(struct block_device *bdev, fmode_t mode) mode 615 drivers/block/swim.c if (fs->ref_count == -1 || (fs->ref_count && mode & FMODE_EXCL)) mode 618 drivers/block/swim.c if (mode & FMODE_EXCL) mode 637 drivers/block/swim.c if (mode & FMODE_NDELAY) mode 640 drivers/block/swim.c if (mode & (FMODE_READ|FMODE_WRITE)) { mode 642 drivers/block/swim.c if ((mode & FMODE_WRITE) && fs->write_protected) { mode 659 drivers/block/swim.c static int floppy_unlocked_open(struct block_device *bdev, fmode_t mode) mode 664 drivers/block/swim.c ret = floppy_open(bdev, mode); mode 670 drivers/block/swim.c static void floppy_release(struct gendisk *disk, fmode_t mode) mode 686 drivers/block/swim.c static int floppy_ioctl(struct block_device *bdev, fmode_t mode, mode 65 drivers/block/swim3.c REG(mode); mode 249 drivers/block/swim3.c static int floppy_ioctl(struct block_device *bdev, fmode_t mode, mode 251 drivers/block/swim3.c static int floppy_open(struct block_device *bdev, fmode_t mode); mode 252 drivers/block/swim3.c static void floppy_release(struct gendisk *disk, fmode_t mode); mode 868 drivers/block/swim3.c static int floppy_locked_ioctl(struct block_device *bdev, fmode_t mode, mode 896 drivers/block/swim3.c static int floppy_ioctl(struct block_device *bdev, fmode_t mode, mode 902 drivers/block/swim3.c ret = floppy_locked_ioctl(bdev, mode, cmd, param); mode 908 drivers/block/swim3.c static int floppy_open(struct block_device *bdev, fmode_t mode) mode 920 drivers/block/swim3.c out_8(&sw->mode, 0x95); mode 943 drivers/block/swim3.c } else if (fs->ref_count == -1 || mode & FMODE_EXCL) mode 946 drivers/block/swim3.c if (err == 0 && (mode & FMODE_NDELAY) == 0 mode 947 drivers/block/swim3.c && (mode & (FMODE_READ|FMODE_WRITE))) { mode 953 drivers/block/swim3.c if (err == 0 && (mode & FMODE_WRITE)) { mode 969 drivers/block/swim3.c if (mode & FMODE_EXCL) mode 977 drivers/block/swim3.c static int floppy_unlocked_open(struct block_device *bdev, fmode_t mode) mode 982 drivers/block/swim3.c ret = floppy_open(bdev, mode); mode 988 drivers/block/swim3.c static void floppy_release(struct gendisk *disk, fmode_t mode) mode 383 drivers/block/sx8.c __le32 mode; mode 143 drivers/block/virtio_blk.c static int virtblk_ioctl(struct block_device *bdev, fmode_t mode, mode 155 drivers/block/virtio_blk.c return scsi_cmd_blk_ioctl(bdev, mode, cmd, mode 421 drivers/block/virtio_blk.c static int virtblk_open(struct block_device *bd, fmode_t mode) mode 437 drivers/block/virtio_blk.c static void virtblk_release(struct gendisk *disk, fmode_t mode) mode 739 drivers/block/virtio_blk.c return a->mode; mode 27 drivers/block/xen-blkback/xenbus.c char *mode; mode 327 drivers/block/xen-blkback/xenbus.c kfree(blkif->be->mode); mode 412 drivers/block/xen-blkback/xenbus.c VBD_SHOW(mode, "%s\n", be->mode); mode 712 drivers/block/xen-blkback/xenbus.c be->mode = xenbus_read(XBT_NIL, dev->nodename, "mode", NULL); mode 713 drivers/block/xen-blkback/xenbus.c if (IS_ERR(be->mode)) { mode 714 drivers/block/xen-blkback/xenbus.c err = PTR_ERR(be->mode); mode 715 drivers/block/xen-blkback/xenbus.c be->mode = NULL; mode 729 drivers/block/xen-blkback/xenbus.c kfree(be->mode); mode 730 drivers/block/xen-blkback/xenbus.c be->mode = NULL; mode 738 drivers/block/xen-blkback/xenbus.c !strchr(be->mode, 'w'), cdrom); mode 751 drivers/block/xen-blkback/xenbus.c kfree(be->mode); mode 752 drivers/block/xen-blkback/xenbus.c be->mode = NULL; mode 492 drivers/block/xen-blkfront.c static int blkif_ioctl(struct block_device *bdev, fmode_t mode, mode 2559 drivers/block/xen-blkfront.c static int blkif_open(struct block_device *bdev, fmode_t mode) mode 2587 drivers/block/xen-blkfront.c static void blkif_release(struct gendisk *disk, fmode_t mode) mode 913 drivers/block/xsysace.c static int ace_open(struct block_device *bdev, fmode_t mode) mode 931 drivers/block/xsysace.c static void ace_release(struct gendisk *disk, fmode_t mode) mode 149 drivers/block/z2ram.c static int z2_open(struct block_device *bdev, fmode_t mode) mode 313 drivers/block/z2ram.c z2_release(struct gendisk *disk, fmode_t mode) mode 630 drivers/block/zram/zram_drv.c int mode; mode 634 drivers/block/zram/zram_drv.c mode = IDLE_WRITEBACK; mode 636 drivers/block/zram/zram_drv.c mode = HUGE_WRITEBACK; mode 689 drivers/block/zram/zram_drv.c if (mode == IDLE_WRITEBACK && mode 692 drivers/block/zram/zram_drv.c if (mode == HUGE_WRITEBACK && mode 1799 drivers/block/zram/zram_drv.c static int zram_open(struct block_device *bdev, fmode_t mode) mode 377 drivers/bluetooth/btintel.c __u8 mode; mode 402 drivers/bluetooth/btintel.c cp.mode = IBT_REG_MODE_8BIT; mode 405 drivers/bluetooth/btintel.c cp.mode = IBT_REG_MODE_16BIT; mode 408 drivers/bluetooth/btintel.c cp.mode = IBT_REG_MODE_32BIT; mode 460 drivers/bluetooth/btintel.c u8 mode; mode 468 drivers/bluetooth/btintel.c mode = IBT_REG_MODE_8BIT; mode 471 drivers/bluetooth/btintel.c mode = IBT_REG_MODE_16BIT; mode 474 drivers/bluetooth/btintel.c mode = IBT_REG_MODE_32BIT; mode 486 drivers/bluetooth/btintel.c cp->mode = mode; mode 140 drivers/bluetooth/btmtksdio.c u8 mode; mode 825 drivers/bluetooth/btmtksdio.c tci_sleep.mode = 0x5; mode 100 drivers/bluetooth/btmtkuart.c u8 mode; mode 818 drivers/bluetooth/btmtkuart.c tci_sleep.mode = 0x5; mode 226 drivers/bluetooth/btqca.c const u8 *data, enum rome_tlv_dnld_mode mode) mode 238 drivers/bluetooth/btqca.c if (mode == ROME_SKIP_EVT_VSE_CC || mode == ROME_SKIP_EVT_VSE) mode 2539 drivers/bluetooth/btusb.c u8 mode; mode 3007 drivers/bluetooth/btusb.c tci_sleep.mode = 0x5; mode 549 drivers/bluetooth/hci_qca.c umode_t mode; mode 557 drivers/bluetooth/hci_qca.c mode = S_IRUGO; mode 558 drivers/bluetooth/hci_qca.c debugfs_create_u8("tx_ibs_state", mode, ibs_dir, &qca->tx_ibs_state); mode 559 drivers/bluetooth/hci_qca.c debugfs_create_u8("rx_ibs_state", mode, ibs_dir, &qca->rx_ibs_state); mode 560 drivers/bluetooth/hci_qca.c debugfs_create_u64("ibs_sent_sleeps", mode, ibs_dir, mode 562 drivers/bluetooth/hci_qca.c debugfs_create_u64("ibs_sent_wakes", mode, ibs_dir, mode 564 drivers/bluetooth/hci_qca.c debugfs_create_u64("ibs_sent_wake_acks", mode, ibs_dir, mode 566 drivers/bluetooth/hci_qca.c debugfs_create_u64("ibs_recv_sleeps", mode, ibs_dir, mode 568 drivers/bluetooth/hci_qca.c debugfs_create_u64("ibs_recv_wakes", mode, ibs_dir, mode 570 drivers/bluetooth/hci_qca.c debugfs_create_u64("ibs_recv_wake_acks", mode, ibs_dir, mode 572 drivers/bluetooth/hci_qca.c debugfs_create_bool("tx_vote", mode, ibs_dir, &qca->tx_vote); mode 573 drivers/bluetooth/hci_qca.c debugfs_create_u64("tx_votes_on", mode, ibs_dir, &qca->tx_votes_on); mode 574 drivers/bluetooth/hci_qca.c debugfs_create_u64("tx_votes_off", mode, ibs_dir, &qca->tx_votes_off); mode 575 drivers/bluetooth/hci_qca.c debugfs_create_bool("rx_vote", mode, ibs_dir, &qca->rx_vote); mode 576 drivers/bluetooth/hci_qca.c debugfs_create_u64("rx_votes_on", mode, ibs_dir, &qca->rx_votes_on); mode 577 drivers/bluetooth/hci_qca.c debugfs_create_u64("rx_votes_off", mode, ibs_dir, &qca->rx_votes_off); mode 578 drivers/bluetooth/hci_qca.c debugfs_create_u64("votes_on", mode, ibs_dir, &qca->votes_on); mode 579 drivers/bluetooth/hci_qca.c debugfs_create_u64("votes_off", mode, ibs_dir, &qca->votes_off); mode 580 drivers/bluetooth/hci_qca.c debugfs_create_u32("vote_on_ms", mode, ibs_dir, &qca->vote_on_ms); mode 581 drivers/bluetooth/hci_qca.c debugfs_create_u32("vote_off_ms", mode, ibs_dir, &qca->vote_off_ms); mode 584 drivers/bluetooth/hci_qca.c mode = S_IRUGO | S_IWUSR; mode 585 drivers/bluetooth/hci_qca.c debugfs_create_u32("wake_retrans", mode, ibs_dir, &qca->wake_retrans); mode 586 drivers/bluetooth/hci_qca.c debugfs_create_u32("tx_idle_delay", mode, ibs_dir, mode 1156 drivers/cdrom/cdrom.c fmode_t mode) mode 1165 drivers/cdrom/cdrom.c if ((mode & FMODE_NDELAY) && (cdi->options & CDO_USE_FFLAGS)) { mode 1173 drivers/cdrom/cdrom.c if (mode & FMODE_WRITE) { mode 1258 drivers/cdrom/cdrom.c void cdrom_release(struct cdrom_device_info *cdi, fmode_t mode) mode 1280 drivers/cdrom/cdrom.c !(mode & FMODE_NDELAY); mode 3330 drivers/cdrom/cdrom.c fmode_t mode, unsigned int cmd, unsigned long arg) mode 3338 drivers/cdrom/cdrom.c ret = scsi_cmd_blk_ioctl(bdev, mode, cmd, argp); mode 3641 drivers/cdrom/cdrom.c .mode = 0444, mode 3648 drivers/cdrom/cdrom.c .mode = 0644, mode 3655 drivers/cdrom/cdrom.c .mode = 0644, mode 3662 drivers/cdrom/cdrom.c .mode = 0644, mode 3669 drivers/cdrom/cdrom.c .mode = 0644, mode 3676 drivers/cdrom/cdrom.c .mode = 0644, mode 3686 drivers/cdrom/cdrom.c .mode = 0555, mode 3697 drivers/cdrom/cdrom.c .mode = 0555, mode 478 drivers/cdrom/gdrom.c static int gdrom_bdops_open(struct block_device *bdev, fmode_t mode) mode 485 drivers/cdrom/gdrom.c ret = cdrom_open(gd.cd_info, bdev, mode); mode 490 drivers/cdrom/gdrom.c static void gdrom_bdops_release(struct gendisk *disk, fmode_t mode) mode 493 drivers/cdrom/gdrom.c cdrom_release(gd.cd_info, mode); mode 503 drivers/cdrom/gdrom.c static int gdrom_bdops_ioctl(struct block_device *bdev, fmode_t mode, mode 509 drivers/cdrom/gdrom.c ret = cdrom_ioctl(gd.cd_info, bdev, mode, cmd, arg); mode 140 drivers/char/agp/agp.h u32 mode; mode 193 drivers/char/agp/agp.h void agp_generic_enable(struct agp_bridge_data *bridge, u32 mode); mode 208 drivers/char/agp/agp.h u32 agp_collect_device_status(struct agp_bridge_data *bridge, u32 mode, u32 command); mode 370 drivers/char/agp/ali-agp.c &bridge->mode); mode 71 drivers/char/agp/alpha-agp.c static void alpha_core_agp_enable(struct agp_bridge_data *bridge, u32 mode) mode 75 drivers/char/agp/alpha-agp.c agp->mode.lw = agp_collect_device_status(bridge, mode, mode 78 drivers/char/agp/alpha-agp.c agp->mode.bits.enable = 1; mode 81 drivers/char/agp/alpha-agp.c agp_device_command(agp->mode.lw, false); mode 191 drivers/char/agp/alpha-agp.c alpha_bridge->mode = agp->capability.lw; mode 477 drivers/char/agp/amd-k7-agp.c &bridge->mode); mode 547 drivers/char/agp/amd64-agp.c pci_read_config_dword(pdev, bridge->capndx+PCI_AGP_STATUS, &bridge->mode); mode 530 drivers/char/agp/ati-agp.c &bridge->mode); mode 49 drivers/char/agp/compat_ioctl.c userinfo.agp_mode = kerninfo.mode; mode 400 drivers/char/agp/efficeon-agp.c &bridge->mode); mode 725 drivers/char/agp/frontend.c userinfo.agp_mode = kerninfo.mode; mode 789 drivers/char/agp/frontend.c struct agp_setup mode; mode 792 drivers/char/agp/frontend.c if (copy_from_user(&mode, arg, sizeof(struct agp_setup))) mode 795 drivers/char/agp/frontend.c agp_enable(agp_bridge, mode.agp_mode); mode 375 drivers/char/agp/generic.c if (bridge->mode & AGPSTAT_MODE_3_0) mode 376 drivers/char/agp/generic.c info->mode = bridge->mode & ~AGP3_RESERVED_MASK; mode 378 drivers/char/agp/generic.c info->mode = bridge->mode & ~AGP2_RESERVED_MASK; mode 755 drivers/char/agp/generic.c if (agp_bridge->mode & AGPSTAT_MODE_3_0) mode 769 drivers/char/agp/generic.c int mode; mode 771 drivers/char/agp/generic.c mode = bridge_agpstat & 0x7; mode 773 drivers/char/agp/generic.c mode *= 4; mode 781 drivers/char/agp/generic.c agp_v3 ? 3 : 2, mode); mode 824 drivers/char/agp/generic.c if (bridge->mode & AGPSTAT_MODE_3_0) { mode 1287 drivers/char/agp/generic.c void agp_enable(struct agp_bridge_data *bridge, u32 mode) mode 1291 drivers/char/agp/generic.c bridge->driver->agp_enable(bridge, mode); mode 244 drivers/char/agp/hp-agp.c agp_bridge->mode = readl(hp->lba_regs+hp->lba_cap_offset+PCI_AGP_STATUS); mode 403 drivers/char/agp/hp-agp.c hp_zx1_enable (struct agp_bridge_data *bridge, u32 mode) mode 409 drivers/char/agp/hp-agp.c command = agp_collect_device_status(bridge, mode, command); mode 414 drivers/char/agp/hp-agp.c agp_device_command(command, (mode & AGP8X_MODE) != 0); mode 800 drivers/char/agp/intel-agp.c &bridge->mode); mode 138 drivers/char/agp/intel-gtt.c static void intel_fake_agp_enable(struct agp_bridge_data *bridge, u32 mode) mode 392 drivers/char/agp/nvidia-agp.c &bridge->mode); mode 83 drivers/char/agp/parisc-agp.c agp_bridge->mode = readl(info->lba_regs+info->lba_cap_offset+PCI_AGP_STATUS); mode 198 drivers/char/agp/parisc-agp.c parisc_agp_enable(struct agp_bridge_data *bridge, u32 mode) mode 205 drivers/char/agp/parisc-agp.c command = agp_collect_device_status(bridge, mode, command); mode 210 drivers/char/agp/parisc-agp.c agp_device_command(command, (mode & AGP8X_MODE) != 0); mode 75 drivers/char/agp/sis-agp.c static void sis_delayed_enable(struct agp_bridge_data *bridge, u32 mode) mode 85 drivers/char/agp/sis-agp.c command = agp_collect_device_status(bridge, mode, command); mode 205 drivers/char/agp/sis-agp.c pci_read_config_dword(pdev, bridge->capndx+PCI_AGP_STATUS, &bridge->mode); mode 302 drivers/char/agp/sworks-agp.c agp_bridge->capndx+PCI_AGP_STATUS, &agp_bridge->mode); mode 401 drivers/char/agp/sworks-agp.c static void serverworks_agp_enable(struct agp_bridge_data *bridge, u32 mode) mode 409 drivers/char/agp/sworks-agp.c command = agp_collect_device_status(bridge, mode, command); mode 227 drivers/char/agp/uninorth-agp.c static void uninorth_agp_enable(struct agp_bridge_data *bridge, u32 mode) mode 236 drivers/char/agp/uninorth-agp.c command = agp_collect_device_status(bridge, mode, status); mode 666 drivers/char/agp/uninorth-agp.c pci_read_config_dword(pdev, cap_ptr+PCI_AGP_STATUS, &bridge->mode); mode 481 drivers/char/agp/via-agp.c bridge->capndx+PCI_AGP_STATUS, &bridge->mode); mode 547 drivers/char/dtlk.c status.mode = *t++; mode 743 drivers/char/hpet.c .mode = 0644, mode 753 drivers/char/hpet.c .mode = 0555, mode 763 drivers/char/hpet.c .mode = 0555, mode 157 drivers/char/hw_random/s390-trng.c .mode = 0444, mode 586 drivers/char/ipmi/ipmi_devintf.c int mode; mode 588 drivers/char/ipmi/ipmi_devintf.c mode = ipmi_get_maintenance_mode(priv->user); mode 589 drivers/char/ipmi/ipmi_devintf.c if (copy_to_user(arg, &mode, sizeof(mode))) { mode 599 drivers/char/ipmi/ipmi_devintf.c int mode; mode 601 drivers/char/ipmi/ipmi_devintf.c if (copy_from_user(&mode, arg, sizeof(mode))) { mode 605 drivers/char/ipmi/ipmi_devintf.c rv = ipmi_set_maintenance_mode(priv->user, mode); mode 1484 drivers/char/ipmi/ipmi_msghandler.c int mode, index; mode 1492 drivers/char/ipmi/ipmi_msghandler.c mode = user->intf->maintenance_mode; mode 1496 drivers/char/ipmi/ipmi_msghandler.c return mode; mode 1507 drivers/char/ipmi/ipmi_msghandler.c int ipmi_set_maintenance_mode(struct ipmi_user *user, int mode) mode 1518 drivers/char/ipmi/ipmi_msghandler.c if (intf->maintenance_mode != mode) { mode 1519 drivers/char/ipmi/ipmi_msghandler.c switch (mode) { mode 1537 drivers/char/ipmi/ipmi_msghandler.c intf->maintenance_mode = mode; mode 2801 drivers/char/ipmi/ipmi_msghandler.c umode_t mode = attr->mode; mode 2808 drivers/char/ipmi/ipmi_msghandler.c return (!rv && id.aux_firmware_revision_set) ? mode : 0; mode 2814 drivers/char/ipmi/ipmi_msghandler.c return (!rv && guid_set) ? mode : 0; mode 2816 drivers/char/ipmi/ipmi_msghandler.c return mode; mode 661 drivers/char/ipmi/ipmi_poweroff.c .mode = 0644, mode 668 drivers/char/ipmi/ipmi_poweroff.c .mode = 0555, mode 675 drivers/char/ipmi/ipmi_poweroff.c .mode = 0555, mode 197 drivers/char/lp.c static int lp_negotiate(struct parport *port, int mode) mode 199 drivers/char/lp.c if (parport_negotiate(port, mode) != 0) { mode 200 drivers/char/lp.c mode = IEEE1284_MODE_COMPAT; mode 201 drivers/char/lp.c parport_negotiate(port, mode); mode 204 drivers/char/lp.c return mode; mode 883 drivers/char/mem.c umode_t mode; mode 933 drivers/char/mem.c static char *mem_devnode(struct device *dev, umode_t *mode) mode 935 drivers/char/mem.c if (mode && devlist[MINOR(dev->devt)].mode) mode 936 drivers/char/mem.c *mode = devlist[MINOR(dev->devt)].mode; mode 255 drivers/char/misc.c static char *misc_devnode(struct device *dev, umode_t *mode) mode 259 drivers/char/misc.c if (mode && c->mode) mode 260 drivers/char/misc.c *mode = c->mode; mode 969 drivers/char/pcmcia/synclink_cs.c if (info->params.mode == MGSL_MODE_ASYNC) mode 1006 drivers/char/pcmcia/synclink_cs.c if (info->params.mode == MGSL_MODE_HDLC) { mode 1035 drivers/char/pcmcia/synclink_cs.c if (info->params.mode == MGSL_MODE_ASYNC) { mode 1214 drivers/char/pcmcia/synclink_cs.c if (info->params.mode == MGSL_MODE_HDLC) mode 1377 drivers/char/pcmcia/synclink_cs.c if (info->params.mode == MGSL_MODE_HDLC || info->netcount) mode 1503 drivers/char/pcmcia/synclink_cs.c if (info->params.mode == MGSL_MODE_ASYNC || !info->tx_active) { mode 1569 drivers/char/pcmcia/synclink_cs.c if (info->params.mode == MGSL_MODE_HDLC) { mode 1622 drivers/char/pcmcia/synclink_cs.c if (info->params.mode == MGSL_MODE_HDLC) { mode 1654 drivers/char/pcmcia/synclink_cs.c if (info->params.mode == MGSL_MODE_HDLC) mode 1915 drivers/char/pcmcia/synclink_cs.c info->params.mode == MGSL_MODE_HDLC) { mode 1990 drivers/char/pcmcia/synclink_cs.c if ((info->params.mode == MGSL_MODE_HDLC) && mode 2394 drivers/char/pcmcia/synclink_cs.c if (info->params.mode == MGSL_MODE_HDLC) { mode 2566 drivers/char/pcmcia/synclink_cs.c if (info->params.mode == MGSL_MODE_HDLC) { mode 2924 drivers/char/pcmcia/synclink_cs.c if (info->params.mode == MGSL_MODE_HDLC && info->params.clock_speed) mode 2965 drivers/char/pcmcia/synclink_cs.c if (info->params.mode == MGSL_MODE_HDLC && info->params.clock_speed) mode 2986 drivers/char/pcmcia/synclink_cs.c if (info->params.mode == MGSL_MODE_HDLC && info->params.clock_speed) mode 3305 drivers/char/pcmcia/synclink_cs.c if (info->params.mode == MGSL_MODE_ASYNC) { mode 3595 drivers/char/pcmcia/synclink_cs.c if (info->params.mode == MGSL_MODE_ASYNC) { mode 3844 drivers/char/pcmcia/synclink_cs.c info->params.mode == MGSL_MODE_HDLC) { mode 123 drivers/char/ppdev.c int mode; mode 139 drivers/char/ppdev.c mode = pport->ieee1284.mode & ~(IEEE1284_DEVICEID | IEEE1284_ADDR); mode 149 drivers/char/ppdev.c if (mode == IEEE1284_MODE_EPP) { mode 158 drivers/char/ppdev.c if (pport->ieee1284.mode & IEEE1284_ADDR) mode 201 drivers/char/ppdev.c int mode; mode 215 drivers/char/ppdev.c mode = pport->ieee1284.mode & ~(IEEE1284_DEVICEID | IEEE1284_ADDR); mode 230 drivers/char/ppdev.c if ((pp->flags & PP_FASTWRITE) && (mode == IEEE1284_MODE_EPP)) { mode 232 drivers/char/ppdev.c if (pport->ieee1284.mode & IEEE1284_ADDR) { mode 325 drivers/char/ppdev.c static enum ieee1284_phase init_phase(int mode) mode 327 drivers/char/ppdev.c switch (mode & ~(IEEE1284_DEVICEID mode 391 drivers/char/ppdev.c pp->saved_state.mode = info->mode; mode 393 drivers/char/ppdev.c info->mode = pp->state.mode; mode 417 drivers/char/ppdev.c int mode; mode 419 drivers/char/ppdev.c if (copy_from_user(&mode, argp, sizeof(mode))) mode 422 drivers/char/ppdev.c pp->state.mode = mode; mode 423 drivers/char/ppdev.c pp->state.phase = init_phase(mode); mode 426 drivers/char/ppdev.c pp->pdev->port->ieee1284.mode = mode; mode 434 drivers/char/ppdev.c int mode; mode 437 drivers/char/ppdev.c mode = pp->pdev->port->ieee1284.mode; mode 439 drivers/char/ppdev.c mode = pp->state.mode; mode 441 drivers/char/ppdev.c if (copy_to_user(argp, &mode, sizeof(mode))) mode 519 drivers/char/ppdev.c int mode; mode 547 drivers/char/ppdev.c pp->state.mode = info->mode; mode 549 drivers/char/ppdev.c info->mode = pp->saved_state.mode; mode 578 drivers/char/ppdev.c if (copy_from_user(&mode, argp, sizeof(mode))) mode 580 drivers/char/ppdev.c if (mode) mode 587 drivers/char/ppdev.c if (copy_from_user(&mode, argp, sizeof(mode))) mode 589 drivers/char/ppdev.c switch ((ret = parport_negotiate(port, mode))) { mode 701 drivers/char/ppdev.c pp->state.mode = IEEE1284_MODE_COMPAT; mode 702 drivers/char/ppdev.c pp->state.phase = init_phase(pp->state.mode); mode 726 drivers/char/ppdev.c (pp->state.mode != IEEE1284_MODE_COMPAT)) { mode 733 drivers/char/ppdev.c pp->saved_state.mode = info->mode; mode 735 drivers/char/ppdev.c info->mode = pp->state.mode; mode 739 drivers/char/ppdev.c (pp->pdev->port->ieee1284.mode != IEEE1284_MODE_COMPAT)) { mode 752 drivers/char/ppdev.c pp->state.mode = info->mode; mode 754 drivers/char/ppdev.c info->mode = pp->saved_state.mode; mode 2282 drivers/char/random.c .mode = 0444, mode 2288 drivers/char/random.c .mode = 0444, mode 2296 drivers/char/random.c .mode = 0644, mode 2305 drivers/char/random.c .mode = 0644, mode 2314 drivers/char/random.c .mode = 0644, mode 2321 drivers/char/random.c .mode = 0444, mode 2327 drivers/char/random.c .mode = 0444, mode 2335 drivers/char/random.c .mode = 0444, mode 2342 drivers/char/random.c .mode = 0444, mode 309 drivers/char/raw.c static char *raw_devnode(struct device *dev, umode_t *mode) mode 271 drivers/char/rtc.c .mode = 0644, mode 280 drivers/char/rtc.c .mode = 0555, mode 289 drivers/char/rtc.c .mode = 0555, mode 1084 drivers/char/virtio_console.c static int port_fops_fasync(int fd, struct file *filp, int mode) mode 1089 drivers/char/virtio_console.c return fasync_helper(fd, filp, mode, &port->async_queue); mode 329 drivers/clk/nxp/clk-lpc32xx.c enum clk_pll_mode mode; mode 491 drivers/clk/nxp/clk-lpc32xx.c clk->mode = PLL_DIRECT_BYPASS; mode 495 drivers/clk/nxp/clk-lpc32xx.c clk->mode = PLL_BYPASS; mode 500 drivers/clk/nxp/clk-lpc32xx.c clk->mode = PLL_DIRECT; mode 509 drivers/clk/nxp/clk-lpc32xx.c clk->mode = PLL_INTEGER; mode 512 drivers/clk/nxp/clk-lpc32xx.c clk->mode = PLL_NON_INTEGER; mode 540 drivers/clk/nxp/clk-lpc32xx.c switch (clk->mode) { mode 629 drivers/clk/nxp/clk-lpc32xx.c clk->mode = PLL_DIRECT; mode 631 drivers/clk/nxp/clk-lpc32xx.c clk->mode = PLL_NON_INTEGER; mode 687 drivers/clk/nxp/clk-lpc32xx.c clk->mode = PLL_NON_INTEGER; mode 114 drivers/clk/pistachio/clk-pll.c static inline void pll_frac_set_mode(struct clk_hw *hw, enum pll_mode mode) mode 120 drivers/clk/pistachio/clk-pll.c if (mode == PLL_MODE_INT) mode 485 drivers/clk/qcom/clk-alpha-pll.c u32 mode; mode 487 drivers/clk/qcom/clk-alpha-pll.c regmap_read(pll->clkr.regmap, PLL_MODE(pll), &mode); mode 503 drivers/clk/qcom/clk-alpha-pll.c if (mode & PLL_UPDATE_BYPASS) { mode 94 drivers/clk/qcom/clk-hfpll.c u32 mode; mode 97 drivers/clk/qcom/clk-hfpll.c regmap_read(regmap, hd->mode_reg, &mode); mode 98 drivers/clk/qcom/clk-hfpll.c if (!(mode & (PLL_BYPASSNL | PLL_RESET_N | PLL_OUTCTRL))) mode 204 drivers/clk/qcom/clk-hfpll.c u32 mode, status; mode 206 drivers/clk/qcom/clk-hfpll.c regmap_read(regmap, hd->mode_reg, &mode); mode 207 drivers/clk/qcom/clk-hfpll.c if (mode != (PLL_BYPASSNL | PLL_RESET_N | PLL_OUTCTRL)) { mode 228 drivers/clk/qcom/clk-hfpll.c u32 mode; mode 230 drivers/clk/qcom/clk-hfpll.c regmap_read(regmap, hd->mode_reg, &mode); mode 231 drivers/clk/qcom/clk-hfpll.c mode &= 0x7; mode 232 drivers/clk/qcom/clk-hfpll.c return mode == (PLL_BYPASSNL | PLL_RESET_N | PLL_OUTCTRL); mode 146 drivers/clk/qcom/clk-pll.c u32 mode; mode 153 drivers/clk/qcom/clk-pll.c regmap_read(pll->clkr.regmap, pll->mode_reg, &mode); mode 154 drivers/clk/qcom/clk-pll.c enabled = (mode & enable_mask) == enable_mask; mode 267 drivers/clk/qcom/clk-pll.c u32 mode; mode 269 drivers/clk/qcom/clk-pll.c ret = regmap_read(pll->clkr.regmap, pll->mode_reg, &mode); mode 306 drivers/clk/qcom/clk-pll.c u32 mode; mode 313 drivers/clk/qcom/clk-pll.c regmap_read(pll->clkr.regmap, pll->mode_reg, &mode); mode 314 drivers/clk/qcom/clk-pll.c enabled = (mode & enable_mask) == enable_mask; mode 326 drivers/clk/qcom/clk-rcg.c calc_rate(unsigned long rate, u32 m, u32 n, u32 mode, u32 pre_div) mode 331 drivers/clk/qcom/clk-rcg.c if (mode) { mode 345 drivers/clk/qcom/clk-rcg.c u32 pre_div, m = 0, n = 0, ns, md, mode = 0; mode 357 drivers/clk/qcom/clk-rcg.c regmap_read(rcg->clkr.regmap, rcg->clkr.enable_reg, &mode); mode 359 drivers/clk/qcom/clk-rcg.c mode = ns; mode 360 drivers/clk/qcom/clk-rcg.c mode = reg_to_mnctr_mode(mn, mode); mode 363 drivers/clk/qcom/clk-rcg.c return calc_rate(parent_rate, m, n, mode, pre_div); mode 370 drivers/clk/qcom/clk-rcg.c u32 m, n, pre_div, ns, md, mode, reg; mode 380 drivers/clk/qcom/clk-rcg.c m = n = pre_div = mode = 0; mode 390 drivers/clk/qcom/clk-rcg.c mode = reg_to_mnctr_mode(mn, reg); mode 396 drivers/clk/qcom/clk-rcg.c return calc_rate(parent_rate, m, n, mode, pre_div); mode 147 drivers/clk/qcom/clk-rcg2.c calc_rate(unsigned long rate, u32 m, u32 n, u32 mode, u32 hid_div) mode 154 drivers/clk/qcom/clk-rcg2.c if (mode) { mode 168 drivers/clk/qcom/clk-rcg2.c u32 cfg, hid_div, m = 0, n = 0, mode = 0, mask; mode 180 drivers/clk/qcom/clk-rcg2.c mode = cfg & CFG_MODE_MASK; mode 181 drivers/clk/qcom/clk-rcg2.c mode >>= CFG_MODE_SHIFT; mode 188 drivers/clk/qcom/clk-rcg2.c return calc_rate(parent_rate, m, n, mode, hid_div); mode 958 drivers/clk/qcom/clk-rcg2.c u32 val, mask, cfg, mode, src; mode 980 drivers/clk/qcom/clk-rcg2.c mode = cfg & CFG_MODE_MASK; mode 981 drivers/clk/qcom/clk-rcg2.c mode >>= CFG_MODE_SHIFT; mode 982 drivers/clk/qcom/clk-rcg2.c if (mode) { mode 997 drivers/clk/qcom/clk-rcg2.c f->freq = calc_rate(prate, f->m, f->n, mode, f->pre_div); mode 1039 drivers/clk/qcom/clk-rcg2.c u32 level, mask, cfg, m = 0, n = 0, mode, pre_div; mode 1064 drivers/clk/qcom/clk-rcg2.c mode = cfg & CFG_MODE_MASK; mode 1065 drivers/clk/qcom/clk-rcg2.c mode >>= CFG_MODE_SHIFT; mode 1066 drivers/clk/qcom/clk-rcg2.c if (mode) { mode 1079 drivers/clk/qcom/clk-rcg2.c return calc_rate(parent_rate, m, n, mode, pre_div); mode 84 drivers/clk/renesas/clk-r8a7778.c u32 mode; mode 86 drivers/clk/renesas/clk-r8a7778.c if (rcar_rst_read_mode_pins(&mode)) mode 89 drivers/clk/renesas/clk-r8a7778.c BUG_ON(!(mode & BIT(19))); mode 91 drivers/clk/renesas/clk-r8a7778.c cpg_mode_rates = (!!(mode & BIT(18)) << 2) | mode 92 drivers/clk/renesas/clk-r8a7778.c (!!(mode & BIT(12)) << 1) | mode 93 drivers/clk/renesas/clk-r8a7778.c (!!(mode & BIT(11))); mode 94 drivers/clk/renesas/clk-r8a7778.c cpg_mode_divs = (!!(mode & BIT(2)) << 1) | mode 95 drivers/clk/renesas/clk-r8a7778.c (!!(mode & BIT(1))); mode 126 drivers/clk/renesas/clk-r8a7779.c u32 mode; mode 128 drivers/clk/renesas/clk-r8a7779.c if (rcar_rst_read_mode_pins(&mode)) mode 151 drivers/clk/renesas/clk-r8a7779.c config = &cpg_clk_configs[CPG_CLK_CONFIG_INDEX(mode)]; mode 152 drivers/clk/renesas/clk-r8a7779.c plla_mult = cpg_plla_mult[CPG_PLLA_MULT_INDEX(mode)]; mode 388 drivers/clk/renesas/clk-rcar-gen2.c u32 mode; mode 391 drivers/clk/renesas/clk-rcar-gen2.c mode = ioread32(modemr); mode 394 drivers/clk/renesas/clk-rcar-gen2.c return mode; mode 376 drivers/clk/renesas/rcar-gen2-cpg.c unsigned int pll0_div, u32 mode) mode 382 drivers/clk/renesas/rcar-gen2-cpg.c cpg_mode = mode; mode 386 drivers/clk/renesas/rcar-gen2-cpg.c pr_debug("%s: mode = 0x%x quirks = 0x%x\n", __func__, mode, cpg_quirks); mode 38 drivers/clk/renesas/rcar-gen2-cpg.h unsigned int pll0_div, u32 mode); mode 710 drivers/clk/renesas/rcar-gen3-cpg.c unsigned int clk_extalr, u32 mode) mode 716 drivers/clk/renesas/rcar-gen3-cpg.c cpg_mode = mode; mode 720 drivers/clk/renesas/rcar-gen3-cpg.c pr_debug("%s: mode = 0x%x quirks = 0x%x\n", __func__, mode, cpg_quirks); mode 74 drivers/clk/renesas/rcar-gen3-cpg.h unsigned int clk_extalr, u32 mode); mode 610 drivers/clk/rockchip/clk.c unsigned long mode, void *cmd) mode 159 drivers/clk/samsung/clk-s3c2412.c unsigned long mode, void *cmd) mode 311 drivers/clk/samsung/clk-s3c2443.c unsigned long mode, void *cmd) mode 73 drivers/clk/spear/clk-vco-pll.c unsigned int mode; mode 75 drivers/clk/spear/clk-vco-pll.c mode = rtbl[index].mode ? 256 : 1; mode 76 drivers/clk/spear/clk-vco-pll.c rate = (((2 * rate / 10000) * rtbl[index].m) / (mode * rtbl[index].n)); mode 197 drivers/clk/spear/clk-vco-pll.c unsigned int num = 2, den = 0, val, mode = 0; mode 202 drivers/clk/spear/clk-vco-pll.c mode = (readl_relaxed(vco->mode_reg) >> PLL_MODE_SHIFT) & PLL_MODE_MASK; mode 212 drivers/clk/spear/clk-vco-pll.c if (!mode) { mode 246 drivers/clk/spear/clk-vco-pll.c val |= (rtbl[i].mode & PLL_MODE_MASK) << PLL_MODE_SHIFT; mode 254 drivers/clk/spear/clk-vco-pll.c if (rtbl[i].mode) mode 87 drivers/clk/spear/clk.h u8 mode; mode 235 drivers/clk/spear/spear1310_clock.c {.mode = 0, .m = 0x83, .n = 0x04, .p = 0x5}, /* vco 1572, pll 49.125 MHz */ mode 236 drivers/clk/spear/spear1310_clock.c {.mode = 0, .m = 0x7D, .n = 0x06, .p = 0x3}, /* vco 1000, pll 125 MHz */ mode 237 drivers/clk/spear/spear1310_clock.c {.mode = 0, .m = 0x64, .n = 0x06, .p = 0x1}, /* vco 800, pll 400 MHz */ mode 238 drivers/clk/spear/spear1310_clock.c {.mode = 0, .m = 0x7D, .n = 0x06, .p = 0x1}, /* vco 1000, pll 500 MHz */ mode 239 drivers/clk/spear/spear1310_clock.c {.mode = 0, .m = 0xA6, .n = 0x06, .p = 0x1}, /* vco 1328, pll 664 MHz */ mode 240 drivers/clk/spear/spear1310_clock.c {.mode = 0, .m = 0xC8, .n = 0x06, .p = 0x1}, /* vco 1600, pll 800 MHz */ mode 241 drivers/clk/spear/spear1310_clock.c {.mode = 0, .m = 0x7D, .n = 0x06, .p = 0x0}, /* vco 1, pll 1 GHz */ mode 246 drivers/clk/spear/spear1310_clock.c {.mode = 0, .m = 0x7D, .n = 0x06, .p = 0x2}, /* vco 1000, pll 250 MHz */ mode 247 drivers/clk/spear/spear1310_clock.c {.mode = 0, .m = 0xA6, .n = 0x06, .p = 0x2}, /* vco 1328, pll 332 MHz */ mode 248 drivers/clk/spear/spear1310_clock.c {.mode = 0, .m = 0xC8, .n = 0x06, .p = 0x2}, /* vco 1600, pll 400 MHz */ mode 249 drivers/clk/spear/spear1310_clock.c {.mode = 0, .m = 0x7D, .n = 0x06, .p = 0x0}, /* vco 1, pll 1 GHz */ mode 168 drivers/clk/spear/spear1340_clock.c {.mode = 0, .m = 0x83, .n = 0x04, .p = 0x5}, /* vco 1572, pll 49.125 MHz */ mode 169 drivers/clk/spear/spear1340_clock.c {.mode = 0, .m = 0x7D, .n = 0x06, .p = 0x3}, /* vco 1000, pll 125 MHz */ mode 170 drivers/clk/spear/spear1340_clock.c {.mode = 0, .m = 0x64, .n = 0x06, .p = 0x1}, /* vco 800, pll 400 MHz */ mode 171 drivers/clk/spear/spear1340_clock.c {.mode = 0, .m = 0x7D, .n = 0x06, .p = 0x1}, /* vco 1000, pll 500 MHz */ mode 172 drivers/clk/spear/spear1340_clock.c {.mode = 0, .m = 0xA6, .n = 0x06, .p = 0x1}, /* vco 1328, pll 664 MHz */ mode 173 drivers/clk/spear/spear1340_clock.c {.mode = 0, .m = 0xC8, .n = 0x06, .p = 0x1}, /* vco 1600, pll 800 MHz */ mode 174 drivers/clk/spear/spear1340_clock.c {.mode = 0, .m = 0x7D, .n = 0x06, .p = 0x0}, /* vco 1, pll 1 GHz */ mode 175 drivers/clk/spear/spear1340_clock.c {.mode = 0, .m = 0x96, .n = 0x06, .p = 0x0}, /* vco 1200, pll 1200 MHz */ mode 180 drivers/clk/spear/spear1340_clock.c {.mode = 0, .m = 0x7D, .n = 0x06, .p = 0x2}, /* vco 1000, pll 250 MHz */ mode 181 drivers/clk/spear/spear1340_clock.c {.mode = 0, .m = 0xA6, .n = 0x06, .p = 0x2}, /* vco 1328, pll 332 MHz */ mode 182 drivers/clk/spear/spear1340_clock.c {.mode = 0, .m = 0xC8, .n = 0x06, .p = 0x2}, /* vco 1600, pll 400 MHz */ mode 183 drivers/clk/spear/spear1340_clock.c {.mode = 0, .m = 0x7D, .n = 0x06, .p = 0x0}, /* vco 1, pll 1 GHz */ mode 101 drivers/clk/spear/spear3xx_clock.c {.mode = 0, .m = 0x53, .n = 0x0C, .p = 0x1}, /* vco 332 & pll 166 MHz */ mode 102 drivers/clk/spear/spear3xx_clock.c {.mode = 0, .m = 0x85, .n = 0x0C, .p = 0x1}, /* vco 532 & pll 266 MHz */ mode 103 drivers/clk/spear/spear3xx_clock.c {.mode = 0, .m = 0xA6, .n = 0x0C, .p = 0x1}, /* vco 664 & pll 332 MHz */ mode 85 drivers/clk/spear/spear6xx_clock.c {.mode = 0, .m = 0x53, .n = 0x0F, .p = 0x1}, /* vco 332 & pll 166 MHz */ mode 86 drivers/clk/spear/spear6xx_clock.c {.mode = 0, .m = 0x85, .n = 0x0F, .p = 0x1}, /* vco 532 & pll 266 MHz */ mode 87 drivers/clk/spear/spear6xx_clock.c {.mode = 0, .m = 0xA6, .n = 0x0F, .p = 0x1}, /* vco 664 & pll 332 MHz */ mode 21 drivers/clk/st/clk-flexgen.c bool mode; mode 201 drivers/clk/st/clk-flexgen.c unsigned long flexgen_flags, bool mode) { mode 255 drivers/clk/st/clk-flexgen.c fgxbar->control_mode = mode; mode 295 drivers/clk/st/clk-flexgen.c .mode = 1, mode 343 drivers/clk/st/clk-flexgen.c clk_mode = data->mode; mode 279 drivers/clk/tegra/clk-dfll.c enum dfll_ctrl_mode mode; mode 372 drivers/clk/tegra/clk-dfll.c return td->mode >= DFLL_OPEN_LOOP; mode 492 drivers/clk/tegra/clk-dfll.c enum dfll_ctrl_mode mode) mode 494 drivers/clk/tegra/clk-dfll.c td->mode = mode; mode 495 drivers/clk/tegra/clk-dfll.c dfll_writel(td, mode - 1, DFLL_CTRL); mode 660 drivers/clk/tegra/clk-dfll.c if ((td->mode < DFLL_CLOSED_LOOP) && mode 916 drivers/clk/tegra/clk-dfll.c if (td->mode == DFLL_UNINITIALIZED) { mode 918 drivers/clk/tegra/clk-dfll.c __func__, mode_name[td->mode]); mode 929 drivers/clk/tegra/clk-dfll.c if (td->mode == DFLL_CLOSED_LOOP) mode 948 drivers/clk/tegra/clk-dfll.c if (td->mode != DFLL_OPEN_LOOP) { mode 950 drivers/clk/tegra/clk-dfll.c mode_name[td->mode]); mode 969 drivers/clk/tegra/clk-dfll.c if (td->mode != DFLL_DISABLED) { mode 971 drivers/clk/tegra/clk-dfll.c mode_name[td->mode]); mode 1019 drivers/clk/tegra/clk-dfll.c switch (td->mode) { mode 1041 drivers/clk/tegra/clk-dfll.c BUG_ON(td->mode > DFLL_CLOSED_LOOP); mode 1043 drivers/clk/tegra/clk-dfll.c __func__, mode_name[td->mode]); mode 1057 drivers/clk/tegra/clk-dfll.c switch (td->mode) { mode 1071 drivers/clk/tegra/clk-dfll.c BUG_ON(td->mode > DFLL_CLOSED_LOOP); mode 1073 drivers/clk/tegra/clk-dfll.c __func__, mode_name[td->mode]); mode 1294 drivers/clk/tegra/clk-dfll.c *val = (td->mode == DFLL_CLOSED_LOOP); mode 1366 drivers/clk/tegra/clk-dfll.c if (!td || (td->mode == DFLL_UNINITIALIZED)) mode 2019 drivers/clk/tegra/clk-dfll.c if (td->mode != DFLL_DISABLED) { mode 75 drivers/clk/zynqmp/pll.c u32 mode; mode 79 drivers/clk/zynqmp/pll.c mode = PLL_MODE_FRAC; mode 81 drivers/clk/zynqmp/pll.c mode = PLL_MODE_INT; mode 83 drivers/clk/zynqmp/pll.c ret = eemi_ops->ioctl(0, IOCTL_SET_PLL_FRAC_MODE, clk_id, mode, NULL); mode 94 drivers/clocksource/clksrc_st_lpc.c uint32_t mode; mode 96 drivers/clocksource/clksrc_st_lpc.c ret = of_property_read_u32(np, "st,lpc-mode", &mode); mode 103 drivers/clocksource/clksrc_st_lpc.c if (mode != ST_LPC_MODE_CLKSRC) mode 78 drivers/clocksource/timer-digicolor.c static inline void dc_timer_enable(struct clock_event_device *ce, u32 mode) mode 81 drivers/clocksource/timer-digicolor.c writeb(CONTROL_ENABLE | mode, dt->base + CONTROL(dt->timer_id)); mode 343 drivers/counter/counter.c dev_attr->attr.mode |= 0444; mode 347 drivers/counter/counter.c dev_attr->attr.mode |= 0200; mode 90 drivers/cpufreq/bmips-cpufreq.c uint32_t mode; mode 95 drivers/cpufreq/bmips-cpufreq.c mode = read_c0_brcm_mode(); mode 96 drivers/cpufreq/bmips-cpufreq.c div = ((mode >> BMIPS5_CLK_DIV_SHIFT) & BMIPS5_CLK_DIV_MASK); mode 168 drivers/cpufreq/brcmstb-avs-cpufreq.c unsigned int mode; mode 303 drivers/cpufreq/brcmstb-avs-cpufreq.c static char *brcm_avs_mode_to_string(unsigned int mode) mode 305 drivers/cpufreq/brcmstb-avs-cpufreq.c switch (mode) { mode 345 drivers/cpufreq/brcmstb-avs-cpufreq.c pmap->mode = args[0]; mode 357 drivers/cpufreq/brcmstb-avs-cpufreq.c args[0] = pmap->mode; mode 630 drivers/cpufreq/brcmstb-avs-cpufreq.c return sprintf(buf, "%s %u\n", brcm_avs_mode_to_string(pmap.mode), mode 631 drivers/cpufreq/brcmstb-avs-cpufreq.c pmap.mode); mode 649 drivers/cpufreq/brcmstb-avs-cpufreq.c mdiv_p3, mdiv_p4, pmap.mode, pmap.state); mode 155 drivers/crypto/atmel-aes.c unsigned long mode; mode 480 drivers/crypto/atmel-aes.c dd->flags = (dd->flags & AES_FLAGS_PERSISTENT) | rctx->mode; mode 502 drivers/crypto/atmel-aes.c if (rctx->mode & AES_FLAGS_ENCRYPT) { mode 1085 drivers/crypto/atmel-aes.c static int atmel_aes_crypt(struct ablkcipher_request *req, unsigned long mode) mode 1092 drivers/crypto/atmel-aes.c switch (mode & AES_FLAGS_OPMODE_MASK) { mode 1120 drivers/crypto/atmel-aes.c rctx->mode = mode; mode 1122 drivers/crypto/atmel-aes.c if (!(mode & AES_FLAGS_ENCRYPT) && (req->src == req->dst)) { mode 1744 drivers/crypto/atmel-aes.c unsigned long mode) mode 1759 drivers/crypto/atmel-aes.c rctx->mode = AES_FLAGS_GCM | mode; mode 2206 drivers/crypto/atmel-aes.c unsigned long mode) mode 2212 drivers/crypto/atmel-aes.c bool enc = (mode & AES_FLAGS_ENCRYPT); mode 2228 drivers/crypto/atmel-aes.c rctx->base.mode = mode; mode 30 drivers/crypto/atmel-authenc.h struct atmel_sha_authenc_ctx *atmel_sha_authenc_spawn(unsigned long mode); mode 2278 drivers/crypto/atmel-sha.c struct atmel_sha_authenc_ctx *atmel_sha_authenc_spawn(unsigned long mode) mode 2286 drivers/crypto/atmel-sha.c switch (mode & SHA_FLAGS_MODE_MASK) { mode 2318 drivers/crypto/atmel-sha.c tctx->flags = mode; mode 82 drivers/crypto/atmel-tdes.c unsigned long mode; mode 625 drivers/crypto/atmel-tdes.c rctx->mode &= TDES_FLAGS_MODE_MASK; mode 626 drivers/crypto/atmel-tdes.c dd->flags = (dd->flags & ~TDES_FLAGS_MODE_MASK) | rctx->mode; mode 668 drivers/crypto/atmel-tdes.c static int atmel_tdes_crypt(struct ablkcipher_request *req, unsigned long mode) mode 674 drivers/crypto/atmel-tdes.c if (mode & TDES_FLAGS_CFB8) { mode 680 drivers/crypto/atmel-tdes.c } else if (mode & TDES_FLAGS_CFB16) { mode 686 drivers/crypto/atmel-tdes.c } else if (mode & TDES_FLAGS_CFB32) { mode 700 drivers/crypto/atmel-tdes.c rctx->mode = mode; mode 2816 drivers/crypto/axis/artpec6_crypto.c mode_t mode; mode 154 drivers/crypto/bcm/cipher.c if ((ctx->cipher.mode == CIPHER_MODE_XTS) && mode 223 drivers/crypto/bcm/cipher.c if ((ctx->cipher.mode == CIPHER_MODE_XTS) && mode 330 drivers/crypto/bcm/cipher.c cipher_parms.mode = ctx->cipher.mode; mode 355 drivers/crypto/bcm/cipher.c if ((ctx->cipher.mode == CIPHER_MODE_CBC) && mode 371 drivers/crypto/bcm/cipher.c if ((ctx->cipher.mode == CIPHER_MODE_CBC) && mode 380 drivers/crypto/bcm/cipher.c } else if (ctx->cipher.mode == CIPHER_MODE_CTR) { mode 446 drivers/crypto/bcm/cipher.c 0, ctx->auth.alg, ctx->auth.mode, mode 467 drivers/crypto/bcm/cipher.c if ((ctx->cipher.mode == CIPHER_MODE_XTS) && mode 481 drivers/crypto/bcm/cipher.c if ((ctx->cipher.mode == CIPHER_MODE_XTS) && mode 519 drivers/crypto/bcm/cipher.c if ((ctx->cipher.mode == CIPHER_MODE_XTS) && mode 538 drivers/crypto/bcm/cipher.c &iproc_priv.cipher_cnt[ctx->cipher.alg][ctx->cipher.mode]); mode 741 drivers/crypto/bcm/cipher.c hash_parms.mode = ctx->auth.mode; mode 825 drivers/crypto/bcm/cipher.c hash_parms.mode, mode 870 drivers/crypto/bcm/cipher.c data_pad_len = spu->spu_gcm_ccm_pad_len(ctx->cipher.mode, chunksize); mode 882 drivers/crypto/bcm/cipher.c ctx->auth.mode, rctx->total_sent, mode 1013 drivers/crypto/bcm/cipher.c if (rctx->is_sw_hmac || ctx->auth.mode == HASH_MODE_HMAC) { mode 1096 drivers/crypto/bcm/cipher.c data_padlen = spu->spu_gcm_ccm_pad_len(ctx->cipher.mode, mode 1100 drivers/crypto/bcm/cipher.c data_padlen = spu->spu_gcm_ccm_pad_len(ctx->cipher.mode, mode 1102 drivers/crypto/bcm/cipher.c assoc_buf_len = spu->spu_assoc_resp_len(ctx->cipher.mode, mode 1107 drivers/crypto/bcm/cipher.c if (ctx->cipher.mode == CIPHER_MODE_CCM) mode 1339 drivers/crypto/bcm/cipher.c cipher_parms.mode = ctx->cipher.mode; mode 1347 drivers/crypto/bcm/cipher.c hash_parms.mode = ctx->auth.mode; mode 1391 drivers/crypto/bcm/cipher.c if (spu->spu_assoc_resp_len(ctx->cipher.mode, mode 1397 drivers/crypto/bcm/cipher.c aead_parms.iv_len = spu->spu_aead_ivlen(ctx->cipher.mode, mode 1404 drivers/crypto/bcm/cipher.c aead_parms.aad_pad_len = spu->spu_gcm_ccm_pad_len(ctx->cipher.mode, mode 1408 drivers/crypto/bcm/cipher.c aead_parms.data_pad_len = spu->spu_gcm_ccm_pad_len(ctx->cipher.mode, mode 1411 drivers/crypto/bcm/cipher.c if (ctx->cipher.mode == CIPHER_MODE_CCM) { mode 1417 drivers/crypto/bcm/cipher.c ctx->cipher.mode, mode 1426 drivers/crypto/bcm/cipher.c spu->spu_gcm_ccm_pad_len(ctx->cipher.mode, mode 1443 drivers/crypto/bcm/cipher.c ctx->cipher.mode, mode 1448 drivers/crypto/bcm/cipher.c ctx->cipher.mode, mode 1454 drivers/crypto/bcm/cipher.c if (spu_req_incl_icv(ctx->cipher.mode, rctx->is_encrypt)) { mode 1489 drivers/crypto/bcm/cipher.c ctx->auth.alg, ctx->auth.mode, mode 1520 drivers/crypto/bcm/cipher.c if (((ctx->cipher.mode == CIPHER_MODE_GCM) || mode 1521 drivers/crypto/bcm/cipher.c (ctx->cipher.mode == CIPHER_MODE_CCM)) && !rctx->is_encrypt) { mode 1608 drivers/crypto/bcm/cipher.c if (ctx->cipher.mode == CIPHER_MODE_CCM) mode 1610 drivers/crypto/bcm/cipher.c else if (ctx->cipher.mode == CIPHER_MODE_GCM) mode 1778 drivers/crypto/bcm/cipher.c if (ctx->cipher.mode == CIPHER_MODE_CBC || mode 1779 drivers/crypto/bcm/cipher.c ctx->cipher.mode == CIPHER_MODE_CTR || mode 1780 drivers/crypto/bcm/cipher.c ctx->cipher.mode == CIPHER_MODE_OFB || mode 1781 drivers/crypto/bcm/cipher.c ctx->cipher.mode == CIPHER_MODE_XTS || mode 1782 drivers/crypto/bcm/cipher.c ctx->cipher.mode == CIPHER_MODE_GCM || mode 1783 drivers/crypto/bcm/cipher.c ctx->cipher.mode == CIPHER_MODE_CCM) { mode 1834 drivers/crypto/bcm/cipher.c if (ctx->cipher.mode == CIPHER_MODE_XTS) mode 1916 drivers/crypto/bcm/cipher.c (ctx->cipher.mode == CIPHER_MODE_XTS)) { mode 1933 drivers/crypto/bcm/cipher.c cipher_parms.mode = ctx->cipher.mode; mode 2073 drivers/crypto/bcm/cipher.c (ctx->auth.mode == HASH_MODE_XCBC)) mode 2495 drivers/crypto/bcm/cipher.c ctx->auth.mode = HASH_MODE_HASH; mode 2552 drivers/crypto/bcm/cipher.c ctx->auth.mode = HASH_MODE_HMAC; mode 2555 drivers/crypto/bcm/cipher.c ctx->auth.mode = HASH_MODE_HASH; mode 2579 drivers/crypto/bcm/cipher.c if (((ctx->cipher.mode == CIPHER_MODE_GCM) || mode 2580 drivers/crypto/bcm/cipher.c (ctx->cipher.mode == CIPHER_MODE_CCM)) && mode 2590 drivers/crypto/bcm/cipher.c if ((ctx->cipher.mode == CIPHER_MODE_CCM) && mode 2603 drivers/crypto/bcm/cipher.c if ((ctx->cipher.mode == CIPHER_MODE_CCM) && mode 2615 drivers/crypto/bcm/cipher.c if (ctx->cipher.mode == CIPHER_MODE_GCM && mode 2761 drivers/crypto/bcm/cipher.c if (ctx->cipher.mode == CIPHER_MODE_CBC || mode 2762 drivers/crypto/bcm/cipher.c ctx->cipher.mode == CIPHER_MODE_CTR || mode 2763 drivers/crypto/bcm/cipher.c ctx->cipher.mode == CIPHER_MODE_OFB || mode 2764 drivers/crypto/bcm/cipher.c ctx->cipher.mode == CIPHER_MODE_XTS || mode 2765 drivers/crypto/bcm/cipher.c ctx->cipher.mode == CIPHER_MODE_GCM) { mode 2769 drivers/crypto/bcm/cipher.c } else if (ctx->cipher.mode == CIPHER_MODE_CCM) { mode 3142 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_GCM, mode 3146 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_GCM, mode 3165 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CCM, mode 3169 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_CCM, mode 3188 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_GCM, mode 3192 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_GCM, mode 3211 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CCM, mode 3215 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_CCM, mode 3234 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_GCM, mode 3238 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_GCM, mode 3257 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CBC, mode 3261 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 3280 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CBC, mode 3284 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 3303 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CBC, mode 3307 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 3326 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CBC, mode 3330 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 3349 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CBC, mode 3353 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 3372 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CBC, mode 3376 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 3395 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CBC, mode 3399 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 3418 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CBC, mode 3422 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 3441 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CBC, mode 3445 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 3464 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CBC, mode 3468 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 3487 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CBC, mode 3491 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 3510 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CBC, mode 3514 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 3533 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CBC, mode 3537 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 3556 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CBC, mode 3560 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 3579 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CBC, mode 3583 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 3603 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 3607 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_NONE, mode 3624 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_OFB, mode 3628 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_NONE, mode 3645 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CBC, mode 3649 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_NONE, mode 3666 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_ECB, mode 3670 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_NONE, mode 3687 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_OFB, mode 3691 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_NONE, mode 3708 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CBC, mode 3712 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_NONE, mode 3729 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_ECB, mode 3733 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_NONE, mode 3750 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_OFB, mode 3754 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_NONE, mode 3771 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CBC, mode 3775 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_NONE, mode 3792 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_ECB, mode 3796 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_NONE, mode 3813 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_CTR, mode 3817 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_NONE, mode 3834 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_XTS, mode 3838 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_NONE, mode 3856 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 3860 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HASH, mode 3875 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 3879 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 3893 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 3897 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HASH, mode 3911 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 3915 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 3929 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 3933 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HASH, mode 3947 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 3951 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 3965 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 3969 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HASH, mode 3983 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 3987 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 4002 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 4006 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HASH, mode 4021 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 4025 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 4040 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 4044 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HASH, mode 4059 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 4063 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 4078 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 4082 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HASH, mode 4097 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 4101 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC mode 4116 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 4120 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HASH, mode 4135 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 4139 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 4154 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 4158 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HASH, mode 4173 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 4177 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 4192 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 4196 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HASH, mode 4211 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 4215 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_HMAC, mode 4230 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 4234 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_XCBC, mode 4249 drivers/crypto/bcm/cipher.c .mode = CIPHER_MODE_NONE, mode 4253 drivers/crypto/bcm/cipher.c .mode = HASH_MODE_CMAC, mode 4272 drivers/crypto/bcm/cipher.c ctx->cipher.mode, mode 4569 drivers/crypto/bcm/cipher.c (driver_alg->auth_info.mode != HASH_MODE_XCBC) && mode 4587 drivers/crypto/bcm/cipher.c if (driver_alg->auth_info.mode != HASH_MODE_HMAC) { mode 4594 drivers/crypto/bcm/cipher.c ((driver_alg->auth_info.mode == HASH_MODE_XCBC) || mode 4595 drivers/crypto/bcm/cipher.c (driver_alg->auth_info.mode == HASH_MODE_CMAC))) { mode 94 drivers/crypto/bcm/cipher.h enum spu_cipher_mode mode; mode 99 drivers/crypto/bcm/cipher.h enum hash_mode mode; mode 642 drivers/crypto/bcm/spu.c (hash_parms->mode == HASH_MODE_XCBC)) { mode 651 drivers/crypto/bcm/spu.c spu_alg_name(cipher_parms->alg, cipher_parms->mode), mode 652 drivers/crypto/bcm/spu.c cipher_parms->alg, cipher_parms->mode, cipher_parms->type); mode 658 drivers/crypto/bcm/spu.c hash_parms->alg, hash_parms->mode, hash_parms->type); mode 695 drivers/crypto/bcm/spu.c cipher_bits |= cipher_parms->mode << CIPHER_MODE_SHIFT; mode 700 drivers/crypto/bcm/spu.c cipher_bits |= hash_parms->mode << HASH_MODE_SHIFT; mode 716 drivers/crypto/bcm/spu.c if ((cipher_parms->mode == CIPHER_MODE_GCM) || mode 717 drivers/crypto/bcm/spu.c (cipher_parms->mode == CIPHER_MODE_CCM)) mode 723 drivers/crypto/bcm/spu.c if ((cipher_parms->mode == CIPHER_MODE_GCM) || mode 724 drivers/crypto/bcm/spu.c (cipher_parms->mode == CIPHER_MODE_CCM)) mode 801 drivers/crypto/bcm/spu.c if (cipher_parms->mode == CIPHER_MODE_CCM) mode 849 drivers/crypto/bcm/spu.c cipher_parms->mode, cipher_parms->type); mode 889 drivers/crypto/bcm/spu.c cipher_bits |= cipher_parms->mode << CIPHER_MODE_SHIFT; mode 964 drivers/crypto/bcm/spu.c if (cipher_parms->mode == CIPHER_MODE_XTS) mode 1005 drivers/crypto/bcm/spu.c if (cipher_parms->mode == CIPHER_MODE_XTS) mode 1022 drivers/crypto/bcm/spu.c if (cipher_parms->mode == CIPHER_MODE_XTS) mode 117 drivers/crypto/bcm/spu.h enum spu_cipher_mode mode; mode 128 drivers/crypto/bcm/spu.h enum hash_mode mode; mode 981 drivers/crypto/bcm/spu2.c (cipher_parms->mode == CIPHER_MODE_GCM)) mode 991 drivers/crypto/bcm/spu2.c (cipher_parms->mode == CIPHER_MODE_CCM)) mode 998 drivers/crypto/bcm/spu2.c cipher_parms->mode, cipher_parms->type); mode 1005 drivers/crypto/bcm/spu2.c hash_parms->alg, hash_parms->mode, hash_parms->type); mode 1019 drivers/crypto/bcm/spu2.c err = spu2_cipher_xlate(cipher_parms->alg, cipher_parms->mode, mode 1054 drivers/crypto/bcm/spu2.c err = spu2_hash_xlate(hash_parms->alg, hash_parms->mode, mode 1133 drivers/crypto/bcm/spu2.c cipher_parms->mode, cipher_parms->type); mode 1139 drivers/crypto/bcm/spu2.c err = spu2_cipher_xlate(cipher_parms->alg, cipher_parms->mode, mode 294 drivers/crypto/bcm/util.c char *spu_alg_name(enum spu_cipher_alg alg, enum spu_cipher_mode mode) mode 300 drivers/crypto/bcm/util.c switch (mode) { mode 320 drivers/crypto/bcm/util.c switch (mode) { mode 332 drivers/crypto/bcm/util.c switch (mode) { mode 358 drivers/crypto/bcm/util.c u32 mode; mode 385 drivers/crypto/bcm/util.c for (mode = 0; mode < CIPHER_MODE_LAST; mode++) { mode 386 drivers/crypto/bcm/util.c op_cnt = atomic_read(&ipriv->cipher_cnt[alg][mode]); mode 391 drivers/crypto/bcm/util.c spu_alg_name(alg, mode), op_cnt); mode 93 drivers/crypto/bcm/util.h char *spu_alg_name(enum spu_cipher_alg alg, enum spu_cipher_mode mode); mode 667 drivers/crypto/caam/qi.c opts.cgr.mode = QMAN_CGR_MODE_FRAME; mode 458 drivers/crypto/caam/regs.h u32 mode; /* RTSTMODEx - Test mode */ mode 236 drivers/crypto/cavium/nitrox/nitrox_dev.h enum vf_mode mode; mode 558 drivers/crypto/cavium/nitrox/nitrox_hal.c void config_nps_core_vfcfg_mode(struct nitrox_device *ndev, enum vf_mode mode) mode 563 drivers/crypto/cavium/nitrox/nitrox_hal.c vfcfg.s.cfg = mode & 0x7; mode 24 drivers/crypto/cavium/nitrox/nitrox_hal.h void config_nps_core_vfcfg_mode(struct nitrox_device *ndev, enum vf_mode mode); mode 209 drivers/crypto/cavium/nitrox/nitrox_isr.c if (ndev->mode == __NDEV_MODE_PF) { mode 62 drivers/crypto/cavium/nitrox/nitrox_mbx.c msg.data = ndev->mode; mode 33 drivers/crypto/cavium/nitrox/nitrox_sriov.c enum vf_mode mode = 0; mode 37 drivers/crypto/cavium/nitrox/nitrox_sriov.c mode = __NDEV_MODE_PF; mode 40 drivers/crypto/cavium/nitrox/nitrox_sriov.c mode = __NDEV_MODE_VF16; mode 43 drivers/crypto/cavium/nitrox/nitrox_sriov.c mode = __NDEV_MODE_VF32; mode 46 drivers/crypto/cavium/nitrox/nitrox_sriov.c mode = __NDEV_MODE_VF64; mode 49 drivers/crypto/cavium/nitrox/nitrox_sriov.c mode = __NDEV_MODE_VF128; mode 53 drivers/crypto/cavium/nitrox/nitrox_sriov.c return mode; mode 56 drivers/crypto/cavium/nitrox/nitrox_sriov.c static inline int vf_mode_to_nr_queues(enum vf_mode mode) mode 60 drivers/crypto/cavium/nitrox/nitrox_sriov.c switch (mode) { mode 173 drivers/crypto/cavium/nitrox/nitrox_sriov.c ndev->mode = num_vfs_to_mode(num_vfs); mode 175 drivers/crypto/cavium/nitrox/nitrox_sriov.c ndev->iov.max_vf_queues = vf_mode_to_nr_queues(ndev->mode); mode 187 drivers/crypto/cavium/nitrox/nitrox_sriov.c config_nps_core_vfcfg_mode(ndev, ndev->mode); mode 195 drivers/crypto/cavium/nitrox/nitrox_sriov.c ndev->mode = __NDEV_MODE_PF; mode 218 drivers/crypto/cavium/nitrox/nitrox_sriov.c ndev->mode = __NDEV_MODE_PF; mode 223 drivers/crypto/cavium/nitrox/nitrox_sriov.c config_nps_core_vfcfg_mode(ndev, ndev->mode); mode 160 drivers/crypto/ccp/ccp-crypto-aes-cmac.c rctx->cmd.u.aes.mode = ctx->u.aes.mode; mode 282 drivers/crypto/ccp/ccp-crypto-aes-cmac.c ctx->u.aes.mode = alg->mode; mode 362 drivers/crypto/ccp/ccp-crypto-aes-cmac.c ccp_alg->mode = CCP_AES_MODE_CMAC; mode 49 drivers/crypto/ccp/ccp-crypto-aes-galois.c ctx->u.aes.mode = CCP_AES_MODE_GCM; mode 90 drivers/crypto/ccp/ccp-crypto-aes-galois.c if (ctx->u.aes.mode != CCP_AES_MODE_GCM) mode 122 drivers/crypto/ccp/ccp-crypto-aes-galois.c rctx->cmd.u.aes.mode = ctx->u.aes.mode; mode 189 drivers/crypto/ccp/ccp-crypto-aes-galois.c enum ccp_aes_mode mode; mode 200 drivers/crypto/ccp/ccp-crypto-aes-galois.c .mode = CCP_AES_MODE_GHASH, mode 223 drivers/crypto/ccp/ccp-crypto-aes-galois.c ccp_aead->mode = def->mode; mode 31 drivers/crypto/ccp/ccp-crypto-aes.c if (ctx->u.aes.mode != CCP_AES_MODE_ECB) mode 58 drivers/crypto/ccp/ccp-crypto-aes.c ctx->u.aes.mode = alg->mode; mode 78 drivers/crypto/ccp/ccp-crypto-aes.c if (((ctx->u.aes.mode == CCP_AES_MODE_ECB) || mode 79 drivers/crypto/ccp/ccp-crypto-aes.c (ctx->u.aes.mode == CCP_AES_MODE_CBC)) && mode 83 drivers/crypto/ccp/ccp-crypto-aes.c if (ctx->u.aes.mode != CCP_AES_MODE_ECB) { mode 97 drivers/crypto/ccp/ccp-crypto-aes.c rctx->cmd.u.aes.mode = ctx->u.aes.mode; mode 257 drivers/crypto/ccp/ccp-crypto-aes.c enum ccp_aes_mode mode; mode 268 drivers/crypto/ccp/ccp-crypto-aes.c .mode = CCP_AES_MODE_ECB, mode 277 drivers/crypto/ccp/ccp-crypto-aes.c .mode = CCP_AES_MODE_CBC, mode 286 drivers/crypto/ccp/ccp-crypto-aes.c .mode = CCP_AES_MODE_CFB, mode 295 drivers/crypto/ccp/ccp-crypto-aes.c .mode = CCP_AES_MODE_OFB, mode 304 drivers/crypto/ccp/ccp-crypto-aes.c .mode = CCP_AES_MODE_CTR, mode 313 drivers/crypto/ccp/ccp-crypto-aes.c .mode = CCP_AES_MODE_CTR, mode 336 drivers/crypto/ccp/ccp-crypto-aes.c ccp_alg->mode = def->mode; mode 30 drivers/crypto/ccp/ccp-crypto-des3.c if (ctx->u.des3.mode != CCP_DES3_MODE_ECB) mode 52 drivers/crypto/ccp/ccp-crypto-des3.c ctx->u.des3.mode = alg->mode; mode 72 drivers/crypto/ccp/ccp-crypto-des3.c if (((ctx->u.des3.mode == CCP_DES3_MODE_ECB) || mode 73 drivers/crypto/ccp/ccp-crypto-des3.c (ctx->u.des3.mode == CCP_DES3_MODE_CBC)) && mode 77 drivers/crypto/ccp/ccp-crypto-des3.c if (ctx->u.des3.mode != CCP_DES3_MODE_ECB) { mode 91 drivers/crypto/ccp/ccp-crypto-des3.c rctx->cmd.u.des3.mode = ctx->u.des3.mode; mode 156 drivers/crypto/ccp/ccp-crypto-des3.c enum ccp_des3_mode mode; mode 167 drivers/crypto/ccp/ccp-crypto-des3.c .mode = CCP_DES3_MODE_ECB, mode 176 drivers/crypto/ccp/ccp-crypto-des3.c .mode = CCP_DES3_MODE_CBC, mode 199 drivers/crypto/ccp/ccp-crypto-des3.c ccp_alg->mode = def->mode; mode 37 drivers/crypto/ccp/ccp-crypto.h u32 mode; mode 45 drivers/crypto/ccp/ccp-crypto.h u32 mode; mode 55 drivers/crypto/ccp/ccp-crypto.h u32 mode; mode 95 drivers/crypto/ccp/ccp-crypto.h enum ccp_aes_mode mode; mode 164 drivers/crypto/ccp/ccp-crypto.h enum ccp_des3_mode mode; mode 155 drivers/crypto/ccp/ccp-dev-v3.c | (op->u.aes.mode << REQ1_AES_MODE_SHIFT) mode 167 drivers/crypto/ccp/ccp-dev-v3.c if (op->u.aes.mode == CCP_AES_MODE_CFB) mode 96 drivers/crypto/ccp/ccp-dev-v5.c u16 mode:5; mode 108 drivers/crypto/ccp/ccp-dev-v5.c u16 mode:5; mode 117 drivers/crypto/ccp/ccp-dev-v5.c u16 mode:3; mode 132 drivers/crypto/ccp/ccp-dev-v5.c u16 mode:3; mode 139 drivers/crypto/ccp/ccp-dev-v5.c #define CCP_AES_MODE(p) ((p)->aes.mode) mode 146 drivers/crypto/ccp/ccp-dev-v5.c #define CCP_DES3_MODE(p) ((p)->des3.mode) mode 152 drivers/crypto/ccp/ccp-dev-v5.c #define CCP_ECC_MODE(p) ((p)->ecc.mode) mode 298 drivers/crypto/ccp/ccp-dev-v5.c CCP_AES_MODE(&function) = op->u.aes.mode; mode 427 drivers/crypto/ccp/ccp-dev-v5.c CCP_DES3_MODE(&function) = op->u.des3.mode; mode 571 drivers/crypto/ccp/ccp-dev-v5.c function.ecc.mode = op->u.ecc.function; mode 494 drivers/crypto/ccp/ccp-dev.h enum ccp_aes_mode mode; mode 507 drivers/crypto/ccp/ccp-dev.h enum ccp_des3_mode mode; mode 499 drivers/crypto/ccp/ccp-ops.c op.u.aes.mode = aes->mode; mode 737 drivers/crypto/ccp/ccp-ops.c op.u.aes.mode = CCP_AES_MODE_GHASH; mode 754 drivers/crypto/ccp/ccp-ops.c op.u.aes.mode = CCP_AES_MODE_GCTR; mode 839 drivers/crypto/ccp/ccp-ops.c op.u.aes.mode = CCP_AES_MODE_GHASH; mode 911 drivers/crypto/ccp/ccp-ops.c if (((aes->mode == CCP_AES_MODE_ECB) || mode 912 drivers/crypto/ccp/ccp-ops.c (aes->mode == CCP_AES_MODE_CBC)) && mode 919 drivers/crypto/ccp/ccp-ops.c if (aes->mode != CCP_AES_MODE_ECB) { mode 936 drivers/crypto/ccp/ccp-ops.c op.init = (aes->mode == CCP_AES_MODE_ECB) ? 0 : 1; mode 938 drivers/crypto/ccp/ccp-ops.c op.u.aes.mode = aes->mode; mode 973 drivers/crypto/ccp/ccp-ops.c if (aes->mode != CCP_AES_MODE_ECB) { mode 986 drivers/crypto/ccp/ccp-ops.c switch (aes->mode) { mode 1027 drivers/crypto/ccp/ccp-ops.c if (aes->mode == CCP_AES_MODE_ECB) mode 1040 drivers/crypto/ccp/ccp-ops.c if (aes->mode != CCP_AES_MODE_ECB) { mode 1295 drivers/crypto/ccp/ccp-ops.c if (((des3->mode == CCP_DES3_MODE_ECB) || mode 1296 drivers/crypto/ccp/ccp-ops.c (des3->mode == CCP_DES3_MODE_CBC)) && mode 1303 drivers/crypto/ccp/ccp-ops.c if (des3->mode != CCP_DES3_MODE_ECB) { mode 1320 drivers/crypto/ccp/ccp-ops.c op.init = (des3->mode == CCP_DES3_MODE_ECB) ? 0 : 1; mode 1322 drivers/crypto/ccp/ccp-ops.c op.u.des3.mode = des3->mode; mode 1370 drivers/crypto/ccp/ccp-ops.c if (des3->mode != CCP_DES3_MODE_ECB) { mode 1439 drivers/crypto/ccp/ccp-ops.c if (des3->mode != CCP_DES3_MODE_ECB) { mode 1460 drivers/crypto/ccp/ccp-ops.c if (des3->mode != CCP_DES3_MODE_ECB) mode 2458 drivers/crypto/ccp/ccp-ops.c switch (cmd->u.aes.mode) { mode 58 drivers/crypto/ccree/cc_hash.c static const void *cc_larval_digest(struct device *dev, u32 mode); mode 100 drivers/crypto/ccree/cc_hash.c static void cc_set_endianity(u32 mode, struct cc_hw_desc *desc) mode 102 drivers/crypto/ccree/cc_hash.c if (mode == DRV_HASH_MD5 || mode == DRV_HASH_SHA384 || mode 103 drivers/crypto/ccree/cc_hash.c mode == DRV_HASH_SHA512) { mode 2258 drivers/crypto/ccree/cc_hash.c static const void *cc_larval_digest(struct device *dev, u32 mode) mode 2260 drivers/crypto/ccree/cc_hash.c switch (mode) { mode 2276 drivers/crypto/ccree/cc_hash.c dev_err(dev, "Invalid hash mode (%d)\n", mode); mode 2290 drivers/crypto/ccree/cc_hash.c cc_sram_addr_t cc_larval_digest_addr(void *drvdata, u32 mode) mode 2298 drivers/crypto/ccree/cc_hash.c switch (mode) { mode 2341 drivers/crypto/ccree/cc_hash.c dev_err(dev, "Invalid hash mode (%d)\n", mode); mode 2349 drivers/crypto/ccree/cc_hash.c cc_digest_len_addr(void *drvdata, u32 mode) mode 2355 drivers/crypto/ccree/cc_hash.c switch (mode) { mode 93 drivers/crypto/ccree/cc_hash.h cc_digest_len_addr(void *drvdata, u32 mode); mode 105 drivers/crypto/ccree/cc_hash.h cc_sram_addr_t cc_larval_digest_addr(void *drvdata, u32 mode); mode 488 drivers/crypto/ccree/cc_hw_queue_defs.h enum cc_flow_mode mode) mode 490 drivers/crypto/ccree/cc_hw_queue_defs.h pdesc->word[4] |= FIELD_PREP(WORD4_DATA_FLOW_MODE, mode); mode 499 drivers/crypto/ccree/cc_hw_queue_defs.h static inline void set_cipher_mode(struct cc_hw_desc *pdesc, int mode) mode 501 drivers/crypto/ccree/cc_hw_queue_defs.h pdesc->word[4] |= FIELD_PREP(WORD4_CIPHER_MODE, mode); mode 526 drivers/crypto/ccree/cc_hw_queue_defs.h static inline void set_cipher_config0(struct cc_hw_desc *pdesc, int mode) mode 528 drivers/crypto/ccree/cc_hw_queue_defs.h pdesc->word[4] |= FIELD_PREP(WORD4_CIPHER_CONF0, mode); mode 619 drivers/crypto/ccree/cc_hw_queue_defs.h enum cc_setup_op mode) mode 621 drivers/crypto/ccree/cc_hw_queue_defs.h pdesc->word[4] |= FIELD_PREP(WORD4_SETUP_OPERATION, mode); mode 213 drivers/crypto/chelsio/chcr_ipsec.c if (x->props.mode != XFRM_MODE_TRANSPORT && mode 214 drivers/crypto/chelsio/chcr_ipsec.c x->props.mode != XFRM_MODE_TUNNEL) { mode 484 drivers/crypto/chelsio/chtls/chtls.h int chtls_setkey(struct chtls_sock *csk, u32 keylen, u32 mode); mode 184 drivers/crypto/chelsio/chtls/chtls_cm.c static void chtls_send_abort(struct sock *sk, int mode, struct sk_buff *skb) mode 201 drivers/crypto/chelsio/chtls/chtls_cm.c req->cmd = mode; mode 203 drivers/crypto/chelsio/chtls/chtls_cm.c send_or_defer(sk, tp, skb, mode == CPL_ABORT_SEND_RST); mode 206 drivers/crypto/chelsio/chtls/chtls_cm.c static void chtls_send_reset(struct sock *sk, int mode, struct sk_buff *skb) mode 230 drivers/crypto/chelsio/chtls/chtls_cm.c chtls_send_abort(sk, mode, skb); mode 70 drivers/crypto/geode-aes.c void *dst, u32 len, u8 *iv, int mode, int dir) mode 90 drivers/crypto/geode-aes.c if (mode == AES_MODE_CBC) { mode 101 drivers/crypto/geode-aes.c if (mode == AES_MODE_CBC) mode 278 drivers/crypto/geode-aes.c static int geode_skcipher_crypt(struct skcipher_request *req, int mode, int dir) mode 302 drivers/crypto/geode-aes.c walk.iv, mode, dir); mode 622 drivers/crypto/hifn_795x.c u8 op, type, mode, unused; mode 1072 drivers/crypto/hifn_795x.c u8 *key, int keylen, u8 *iv, int ivsize, u16 mode) mode 1083 drivers/crypto/hifn_795x.c cry_cmd->masks = __cpu_to_le16(mode | mode 1146 drivers/crypto/hifn_795x.c if (rctx->iv && rctx->mode != ACRYPTO_MODE_ECB) mode 1149 drivers/crypto/hifn_795x.c switch (rctx->mode) { mode 1531 drivers/crypto/hifn_795x.c if (rctx->iv && !rctx->ivsize && rctx->mode != ACRYPTO_MODE_ECB) mode 1585 drivers/crypto/hifn_795x.c rctx->mode, rctx->op, rctx->type, err); mode 1998 drivers/crypto/hifn_795x.c u8 type, u8 mode) mode 2006 drivers/crypto/hifn_795x.c if (req->info && mode != ACRYPTO_MODE_ECB) { mode 2023 drivers/crypto/hifn_795x.c rctx->mode = mode; mode 2067 drivers/crypto/hifn_795x.c u8 type, u8 mode) mode 2073 drivers/crypto/hifn_795x.c err = hifn_setup_crypto_req(req, op, type, mode); mode 42 drivers/crypto/inside-secure/safexcel_cipher.c u32 mode; mode 73 drivers/crypto/inside-secure/safexcel_cipher.c if (ctx->mode == CONTEXT_CONTROL_CRYPTO_MODE_CTR_LOAD) { mode 105 drivers/crypto/inside-secure/safexcel_cipher.c if (ctx->mode != CONTEXT_CONTROL_CRYPTO_MODE_ECB) { mode 317 drivers/crypto/inside-secure/safexcel_cipher.c if (ctx->mode == CONTEXT_CONTROL_CRYPTO_MODE_CTR_LOAD) { mode 415 drivers/crypto/inside-secure/safexcel_cipher.c cdesc->control_data.control1 = ctx->mode; mode 534 drivers/crypto/inside-secure/safexcel_cipher.c if ((!ctx->aead) && (ctx->mode == CONTEXT_CONTROL_CRYPTO_MODE_CBC) && mode 588 drivers/crypto/inside-secure/safexcel_cipher.c } else if ((ctx->mode == CONTEXT_CONTROL_CRYPTO_MODE_CBC) && mode 1139 drivers/crypto/inside-secure/safexcel_cipher.c ctx->mode = CONTEXT_CONTROL_CRYPTO_MODE_ECB; mode 1174 drivers/crypto/inside-secure/safexcel_cipher.c ctx->mode = CONTEXT_CONTROL_CRYPTO_MODE_CBC; mode 1210 drivers/crypto/inside-secure/safexcel_cipher.c ctx->mode = CONTEXT_CONTROL_CRYPTO_MODE_CFB; mode 1246 drivers/crypto/inside-secure/safexcel_cipher.c ctx->mode = CONTEXT_CONTROL_CRYPTO_MODE_OFB; mode 1320 drivers/crypto/inside-secure/safexcel_cipher.c ctx->mode = CONTEXT_CONTROL_CRYPTO_MODE_CTR_LOAD; mode 1378 drivers/crypto/inside-secure/safexcel_cipher.c ctx->mode = CONTEXT_CONTROL_CRYPTO_MODE_CBC; mode 1414 drivers/crypto/inside-secure/safexcel_cipher.c ctx->mode = CONTEXT_CONTROL_CRYPTO_MODE_ECB; mode 1472 drivers/crypto/inside-secure/safexcel_cipher.c ctx->mode = CONTEXT_CONTROL_CRYPTO_MODE_CBC; mode 1508 drivers/crypto/inside-secure/safexcel_cipher.c ctx->mode = CONTEXT_CONTROL_CRYPTO_MODE_ECB; mode 1564 drivers/crypto/inside-secure/safexcel_cipher.c ctx->mode = CONTEXT_CONTROL_CRYPTO_MODE_CBC; /* default */ mode 1785 drivers/crypto/inside-secure/safexcel_cipher.c ctx->mode = CONTEXT_CONTROL_CRYPTO_MODE_CTR_LOAD; /* override default */ mode 1819 drivers/crypto/inside-secure/safexcel_cipher.c ctx->mode = CONTEXT_CONTROL_CRYPTO_MODE_CTR_LOAD; /* override default */ mode 1853 drivers/crypto/inside-secure/safexcel_cipher.c ctx->mode = CONTEXT_CONTROL_CRYPTO_MODE_CTR_LOAD; /* override default */ mode 1887 drivers/crypto/inside-secure/safexcel_cipher.c ctx->mode = CONTEXT_CONTROL_CRYPTO_MODE_CTR_LOAD; /* override default */ mode 1921 drivers/crypto/inside-secure/safexcel_cipher.c ctx->mode = CONTEXT_CONTROL_CRYPTO_MODE_CTR_LOAD; /* override default */ mode 2019 drivers/crypto/inside-secure/safexcel_cipher.c ctx->mode = CONTEXT_CONTROL_CRYPTO_MODE_XTS; mode 2135 drivers/crypto/inside-secure/safexcel_cipher.c ctx->mode = CONTEXT_CONTROL_CRYPTO_MODE_XCM; /* override default */ mode 2237 drivers/crypto/inside-secure/safexcel_cipher.c ctx->mode = CONTEXT_CONTROL_CRYPTO_MODE_XCM; /* override default */ mode 111 drivers/crypto/ixp4xx_crypto.c u8 mode; /* NPE_OP_* operation mode */ mode 117 drivers/crypto/ixp4xx_crypto.c u8 mode; /* NPE_OP_* operation mode */ mode 639 drivers/crypto/ixp4xx_crypto.c crypt->mode = NPE_OP_HASH_GEN_ICV; mode 719 drivers/crypto/ixp4xx_crypto.c crypt->mode = NPE_OP_ENC_GEN_KEY; mode 899 drivers/crypto/ixp4xx_crypto.c crypt->mode = dir->npe_mode; mode 909 drivers/crypto/ixp4xx_crypto.c crypt->mode |= NPE_OP_NOT_IN_PLACE; mode 1014 drivers/crypto/ixp4xx_crypto.c crypt->mode = dir->npe_mode; mode 1042 drivers/crypto/ixp4xx_crypto.c crypt->mode |= NPE_OP_NOT_IN_PLACE; mode 102 drivers/crypto/mediatek/mtk-aes.c u64 mode; mode 226 drivers/crypto/mediatek/mtk-aes.c aes->flags = (aes->flags & AES_FLAGS_BUSY) | rctx->mode; mode 664 drivers/crypto/mediatek/mtk-aes.c static int mtk_aes_crypt(struct ablkcipher_request *req, u64 mode) mode 676 drivers/crypto/mediatek/mtk-aes.c rctx->mode = mode; mode 678 drivers/crypto/mediatek/mtk-aes.c return mtk_aes_handle_queue(cryp, !(mode & AES_FLAGS_ENCRYPT), mode 983 drivers/crypto/mediatek/mtk-aes.c static int mtk_aes_gcm_crypt(struct aead_request *req, u64 mode) mode 989 drivers/crypto/mediatek/mtk-aes.c bool enc = !!(mode & AES_FLAGS_ENCRYPT); mode 1002 drivers/crypto/mediatek/mtk-aes.c rctx->mode = AES_FLAGS_GCM | mode; mode 47 drivers/crypto/nx/nx-aes-cbc.c csbcpb->cpb.hdr.mode = NX_MODE_AES_CBC; mode 43 drivers/crypto/nx/nx-aes-ccm.c csbcpb->cpb.hdr.mode = NX_MODE_AES_CCM; mode 46 drivers/crypto/nx/nx-aes-ccm.c csbcpb_aead->cpb.hdr.mode = NX_MODE_AES_CCA; mode 48 drivers/crypto/nx/nx-aes-ctr.c csbcpb->cpb.hdr.mode = NX_MODE_AES_CTR; mode 47 drivers/crypto/nx/nx-aes-ecb.c csbcpb->cpb.hdr.mode = NX_MODE_AES_ECB; mode 53 drivers/crypto/nx/nx-aes-gcm.c csbcpb->cpb.hdr.mode = NX_MODE_AES_GCM; mode 56 drivers/crypto/nx/nx-aes-gcm.c csbcpb_aead->cpb.hdr.mode = NX_MODE_AES_GCA; mode 182 drivers/crypto/nx/nx-aes-gcm.c csbcpb->cpb.hdr.mode = NX_MODE_AES_GMAC; mode 239 drivers/crypto/nx/nx-aes-gcm.c csbcpb->cpb.hdr.mode = NX_MODE_AES_GCM; mode 260 drivers/crypto/nx/nx-aes-gcm.c csbcpb->cpb.hdr.mode = NX_MODE_AES_ECB; mode 298 drivers/crypto/nx/nx-aes-gcm.c csbcpb->cpb.hdr.mode = NX_MODE_AES_GCM; mode 70 drivers/crypto/nx/nx-aes-xcbc.c csbcpb->cpb.hdr.mode = NX_MODE_AES_ECB; mode 131 drivers/crypto/nx/nx-aes-xcbc.c csbcpb->cpb.hdr.mode = NX_MODE_AES_XCBC_MAC; mode 151 drivers/crypto/nx/nx-aes-xcbc.c csbcpb->cpb.hdr.mode = NX_MODE_AES_XCBC_MAC; mode 382 drivers/crypto/nx/nx.c if (msc->fc >= NX_MAX_FC || msc->mode >= NX_MAX_MODE) { mode 385 drivers/crypto/nx/nx.c msc->mode); mode 399 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][0].databytelen = mode 401 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][0].sglen = mode 405 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][1].databytelen = mode 407 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][1].sglen = mode 412 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][2]. mode 414 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][2].sglen = mode 418 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][1]. mode 420 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][1].sglen = mode 429 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][2].databytelen = mode 431 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][2].sglen = mode 488 drivers/crypto/nx/nx.c static bool nx_check_prop(struct device *dev, u32 fc, u32 mode, int slot) mode 490 drivers/crypto/nx/nx.c struct alg_props *props = &nx_driver.of.ap[fc][mode][slot]; mode 495 drivers/crypto/nx/nx.c "%u/%u (ignored)\n", fc, mode, slot, mode 503 drivers/crypto/nx/nx.c static bool nx_check_props(struct device *dev, u32 fc, u32 mode) mode 508 drivers/crypto/nx/nx.c if (!nx_check_prop(dev, fc, mode, i)) mode 514 drivers/crypto/nx/nx.c static int nx_register_alg(struct crypto_alg *alg, u32 fc, u32 mode) mode 516 drivers/crypto/nx/nx.c return nx_check_props(&nx_driver.viodev->dev, fc, mode) ? mode 520 drivers/crypto/nx/nx.c static int nx_register_aead(struct aead_alg *alg, u32 fc, u32 mode) mode 522 drivers/crypto/nx/nx.c return nx_check_props(&nx_driver.viodev->dev, fc, mode) ? mode 526 drivers/crypto/nx/nx.c static int nx_register_shash(struct shash_alg *alg, u32 fc, u32 mode, int slot) mode 529 drivers/crypto/nx/nx.c fc, mode, slot) : mode 530 drivers/crypto/nx/nx.c nx_check_props(&nx_driver.viodev->dev, fc, mode)) ? mode 534 drivers/crypto/nx/nx.c static void nx_unregister_alg(struct crypto_alg *alg, u32 fc, u32 mode) mode 536 drivers/crypto/nx/nx.c if (nx_check_props(NULL, fc, mode)) mode 540 drivers/crypto/nx/nx.c static void nx_unregister_aead(struct aead_alg *alg, u32 fc, u32 mode) mode 542 drivers/crypto/nx/nx.c if (nx_check_props(NULL, fc, mode)) mode 546 drivers/crypto/nx/nx.c static void nx_unregister_shash(struct shash_alg *alg, u32 fc, u32 mode, mode 549 drivers/crypto/nx/nx.c if (slot >= 0 ? nx_check_prop(NULL, fc, mode, slot) : mode 550 drivers/crypto/nx/nx.c nx_check_props(NULL, fc, mode)) mode 652 drivers/crypto/nx/nx.c static int nx_crypto_ctx_init(struct nx_crypto_ctx *nx_ctx, u32 fc, u32 mode) mode 661 drivers/crypto/nx/nx.c if (mode == NX_MODE_AES_GCM || mode == NX_MODE_AES_CCM) mode 678 drivers/crypto/nx/nx.c if (mode == NX_MODE_AES_GCM || mode == NX_MODE_AES_CCM) mode 686 drivers/crypto/nx/nx.c memcpy(nx_ctx->props, nx_driver.of.ap[fc][mode], mode 38 drivers/crypto/nx/nx.h u32 mode; mode 112 drivers/crypto/nx/nx_csbcpb.h u8 mode; mode 282 drivers/crypto/omap-aes-gcm.c rctx->mode &= FLAGS_MODE_MASK; mode 283 drivers/crypto/omap-aes-gcm.c dd->flags = (dd->flags & ~FLAGS_MODE_MASK) | rctx->mode; mode 301 drivers/crypto/omap-aes-gcm.c static int omap_aes_gcm_crypt(struct aead_request *req, unsigned long mode) mode 317 drivers/crypto/omap-aes-gcm.c if (mode & FLAGS_RFC4106_GCM) mode 330 drivers/crypto/omap-aes-gcm.c rctx->mode = mode; mode 460 drivers/crypto/omap-aes.c rctx->mode &= FLAGS_MODE_MASK; mode 461 drivers/crypto/omap-aes.c dd->flags = (dd->flags & ~FLAGS_MODE_MASK) | rctx->mode; mode 508 drivers/crypto/omap-aes.c static int omap_aes_crypt(struct ablkcipher_request *req, unsigned long mode) mode 517 drivers/crypto/omap-aes.c !!(mode & FLAGS_ENCRYPT), mode 518 drivers/crypto/omap-aes.c !!(mode & FLAGS_CBC)); mode 529 drivers/crypto/omap-aes.c if (mode & FLAGS_ENCRYPT) mode 541 drivers/crypto/omap-aes.c rctx->mode = mode; mode 106 drivers/crypto/omap-aes.h unsigned long mode; mode 94 drivers/crypto/omap-des.c unsigned long mode; mode 573 drivers/crypto/omap-des.c rctx->mode &= FLAGS_MODE_MASK; mode 574 drivers/crypto/omap-des.c dd->flags = (dd->flags & ~FLAGS_MODE_MASK) | rctx->mode; mode 622 drivers/crypto/omap-des.c static int omap_des_crypt(struct ablkcipher_request *req, unsigned long mode) mode 630 drivers/crypto/omap-des.c !!(mode & FLAGS_ENCRYPT), mode 631 drivers/crypto/omap-des.c !!(mode & FLAGS_CBC)); mode 642 drivers/crypto/omap-des.c rctx->mode = mode; mode 79 drivers/crypto/qat/qat_common/adf_aer.c int mode; mode 150 drivers/crypto/qat/qat_common/adf_aer.c if (reset_data->mode == ADF_DEV_RESET_SYNC) mode 157 drivers/crypto/qat/qat_common/adf_aer.c enum adf_dev_reset_mode mode) mode 171 drivers/crypto/qat/qat_common/adf_aer.c reset_data->mode = mode; mode 176 drivers/crypto/qat/qat_common/adf_aer.c if (mode == ADF_DEV_RESET_SYNC) { mode 192 drivers/crypto/qat/qat_common/adf_common_drv.h unsigned char mode); mode 194 drivers/crypto/qat/qat_common/adf_common_drv.h unsigned char ae, unsigned char mode); mode 196 drivers/crypto/qat/qat_common/adf_common_drv.h unsigned char ae, unsigned char mode); mode 122 drivers/crypto/qat/qat_common/icp_qat_hw.h #define ICP_QAT_HW_AUTH_CONFIG_BUILD(mode, algo, cmp_len) \ mode 123 drivers/crypto/qat/qat_common/icp_qat_hw.h (((mode & QAT_AUTH_MODE_MASK) << QAT_AUTH_MODE_BITPOS) | \ mode 254 drivers/crypto/qat/qat_common/icp_qat_hw.h #define ICP_QAT_HW_CIPHER_CONFIG_BUILD(mode, algo, convert, dir) \ mode 255 drivers/crypto/qat/qat_common/icp_qat_hw.h (((mode & QAT_CIPHER_MODE_MASK) << QAT_CIPHER_MODE_BITPOS) | \ mode 66 drivers/crypto/qat/qat_common/qat_algs.c #define QAT_AES_HW_CONFIG_ENC(alg, mode) \ mode 67 drivers/crypto/qat/qat_common/qat_algs.c ICP_QAT_HW_CIPHER_CONFIG_BUILD(mode, alg, \ mode 71 drivers/crypto/qat/qat_common/qat_algs.c #define QAT_AES_HW_CONFIG_DEC(alg, mode) \ mode 72 drivers/crypto/qat/qat_common/qat_algs.c ICP_QAT_HW_CIPHER_CONFIG_BUILD(mode, alg, \ mode 296 drivers/crypto/qat/qat_common/qat_algs.c int mode) mode 313 drivers/crypto/qat/qat_common/qat_algs.c cipher->aes.cipher_config.val = QAT_AES_HW_CONFIG_ENC(alg, mode); mode 377 drivers/crypto/qat/qat_common/qat_algs.c int mode) mode 399 drivers/crypto/qat/qat_common/qat_algs.c cipher->aes.cipher_config.val = QAT_AES_HW_CONFIG_DEC(alg, mode); mode 490 drivers/crypto/qat/qat_common/qat_algs.c unsigned int keylen, int mode) mode 498 drivers/crypto/qat/qat_common/qat_algs.c enc_cd->aes.cipher_config.val = QAT_AES_HW_CONFIG_ENC(alg, mode); mode 503 drivers/crypto/qat/qat_common/qat_algs.c unsigned int keylen, int mode) mode 512 drivers/crypto/qat/qat_common/qat_algs.c if (mode != ICP_QAT_HW_CIPHER_CTR_MODE) mode 514 drivers/crypto/qat/qat_common/qat_algs.c QAT_AES_HW_CONFIG_DEC(alg, mode); mode 517 drivers/crypto/qat/qat_common/qat_algs.c QAT_AES_HW_CONFIG_ENC(alg, mode); mode 520 drivers/crypto/qat/qat_common/qat_algs.c static int qat_alg_validate_key(int key_len, int *alg, int mode) mode 522 drivers/crypto/qat/qat_common/qat_algs.c if (mode != ICP_QAT_HW_CIPHER_XTS_MODE) { mode 552 drivers/crypto/qat/qat_common/qat_algs.c unsigned int keylen, int mode) mode 560 drivers/crypto/qat/qat_common/qat_algs.c if (qat_alg_validate_key(keys.enckeylen, &alg, mode)) mode 563 drivers/crypto/qat/qat_common/qat_algs.c if (qat_alg_aead_init_enc_session(tfm, alg, &keys, mode)) mode 566 drivers/crypto/qat/qat_common/qat_algs.c if (qat_alg_aead_init_dec_session(tfm, alg, &keys, mode)) mode 583 drivers/crypto/qat/qat_common/qat_algs.c int mode) mode 587 drivers/crypto/qat/qat_common/qat_algs.c if (qat_alg_validate_key(keylen, &alg, mode)) mode 590 drivers/crypto/qat/qat_common/qat_algs.c qat_alg_ablkcipher_init_enc(ctx, alg, key, keylen, mode); mode 591 drivers/crypto/qat/qat_common/qat_algs.c qat_alg_ablkcipher_init_dec(ctx, alg, key, keylen, mode); mode 954 drivers/crypto/qat/qat_common/qat_algs.c int mode) mode 961 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_ablkcipher_init_sessions(ctx, key, keylen, mode); mode 966 drivers/crypto/qat/qat_common/qat_algs.c int mode) mode 993 drivers/crypto/qat/qat_common/qat_algs.c ret = qat_alg_ablkcipher_init_sessions(ctx, key, keylen, mode); mode 1017 drivers/crypto/qat/qat_common/qat_algs.c int mode) mode 1022 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_ablkcipher_rekey(ctx, key, keylen, mode); mode 1024 drivers/crypto/qat/qat_common/qat_algs.c return qat_alg_ablkcipher_newkey(ctx, key, keylen, mode); mode 200 drivers/crypto/qat/qat_common/qat_hal.c unsigned char ae, unsigned char mode) mode 204 drivers/crypto/qat/qat_common/qat_hal.c if ((mode != 4) && (mode != 8)) { mode 205 drivers/crypto/qat/qat_common/qat_hal.c pr_err("QAT: bad ctx mode=%d\n", mode); mode 212 drivers/crypto/qat/qat_common/qat_hal.c new_csr = (mode == 4) ? mode 220 drivers/crypto/qat/qat_common/qat_hal.c unsigned char ae, unsigned char mode) mode 227 drivers/crypto/qat/qat_common/qat_hal.c new_csr = (mode) ? mode 239 drivers/crypto/qat/qat_common/qat_hal.c unsigned char mode) mode 247 drivers/crypto/qat/qat_common/qat_hal.c new_csr = (mode) ? mode 252 drivers/crypto/qat/qat_common/qat_hal.c new_csr = (mode) ? mode 67 drivers/crypto/qce/common.h #define IS_CBC(mode) (mode & QCE_MODE_CBC) mode 68 drivers/crypto/qce/common.h #define IS_ECB(mode) (mode & QCE_MODE_ECB) mode 69 drivers/crypto/qce/common.h #define IS_CTR(mode) (mode & QCE_MODE_CTR) mode 70 drivers/crypto/qce/common.h #define IS_XTS(mode) (mode & QCE_MODE_XTS) mode 71 drivers/crypto/qce/common.h #define IS_CCM(mode) (mode & QCE_MODE_CCM) mode 240 drivers/crypto/rockchip/rk3288_crypto.h u32 mode; mode 247 drivers/crypto/rockchip/rk3288_crypto.h u32 mode; mode 82 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c ctx->mode = RK_CRYPTO_AES_ECB_MODE; mode 92 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c ctx->mode = RK_CRYPTO_AES_ECB_MODE | RK_CRYPTO_DEC; mode 102 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c ctx->mode = RK_CRYPTO_AES_CBC_MODE; mode 112 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c ctx->mode = RK_CRYPTO_AES_CBC_MODE | RK_CRYPTO_DEC; mode 122 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c ctx->mode = 0; mode 132 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c ctx->mode = RK_CRYPTO_DEC; mode 142 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c ctx->mode = RK_CRYPTO_TDES_CHAINMODE_CBC; mode 152 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c ctx->mode = RK_CRYPTO_TDES_CHAINMODE_CBC | RK_CRYPTO_DEC; mode 162 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c ctx->mode = RK_CRYPTO_TDES_SELECT; mode 172 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c ctx->mode = RK_CRYPTO_TDES_SELECT | RK_CRYPTO_DEC; mode 182 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c ctx->mode = RK_CRYPTO_TDES_SELECT | RK_CRYPTO_TDES_CHAINMODE_CBC; mode 192 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c ctx->mode = RK_CRYPTO_TDES_SELECT | RK_CRYPTO_TDES_CHAINMODE_CBC | mode 210 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c ctx->mode |= RK_CRYPTO_TDES_FIFO_MODE | mode 213 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c CRYPTO_WRITE(dev, RK_CRYPTO_TDES_CTRL, ctx->mode); mode 217 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c ctx->mode |= RK_CRYPTO_AES_FIFO_MODE | mode 222 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c ctx->mode |= RK_CRYPTO_AES_192BIT_key; mode 224 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c ctx->mode |= RK_CRYPTO_AES_256BIT_key; mode 225 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c CRYPTO_WRITE(dev, RK_CRYPTO_AES_CTRL, ctx->mode); mode 258 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c if (ctx->mode & RK_CRYPTO_DEC) { mode 302 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c if (!(ctx->mode & RK_CRYPTO_DEC)) { mode 322 drivers/crypto/rockchip/rk3288_crypto_ablkcipher.c if (ctx->mode & RK_CRYPTO_DEC) { mode 69 drivers/crypto/rockchip/rk3288_crypto_ahash.c CRYPTO_WRITE(dev, RK_CRYPTO_HASH_CTRL, rctx->mode | mode 208 drivers/crypto/rockchip/rk3288_crypto_ahash.c rctx->mode = 0; mode 213 drivers/crypto/rockchip/rk3288_crypto_ahash.c rctx->mode = RK_CRYPTO_HASH_SHA1; mode 216 drivers/crypto/rockchip/rk3288_crypto_ahash.c rctx->mode = RK_CRYPTO_HASH_SHA256; mode 219 drivers/crypto/rockchip/rk3288_crypto_ahash.c rctx->mode = RK_CRYPTO_HASH_MD5; mode 248 drivers/crypto/s5p-sss.c unsigned long mode; mode 493 drivers/crypto/s5p-sss.c if (reqctx->mode & FLAGS_AES_CBC) mode 496 drivers/crypto/s5p-sss.c else if (reqctx->mode & FLAGS_AES_CTR) mode 1926 drivers/crypto/s5p-sss.c static void s5p_aes_crypt_start(struct s5p_aes_dev *dev, unsigned long mode) mode 1936 drivers/crypto/s5p-sss.c if (mode & FLAGS_AES_DECRYPT) mode 1939 drivers/crypto/s5p-sss.c if ((mode & FLAGS_AES_MODE_MASK) == FLAGS_AES_CBC) { mode 1943 drivers/crypto/s5p-sss.c } else if ((mode & FLAGS_AES_MODE_MASK) == FLAGS_AES_CTR) { mode 2028 drivers/crypto/s5p-sss.c s5p_aes_crypt_start(dev, reqctx->mode); mode 2052 drivers/crypto/s5p-sss.c static int s5p_aes_crypt(struct ablkcipher_request *req, unsigned long mode) mode 2063 drivers/crypto/s5p-sss.c ((mode & FLAGS_AES_MODE_MASK) != FLAGS_AES_CTR)) { mode 2068 drivers/crypto/s5p-sss.c reqctx->mode = mode; mode 153 drivers/crypto/sahara.c unsigned long mode; mode 178 drivers/crypto/sahara.c unsigned int mode; mode 570 drivers/crypto/sahara.c rctx->mode &= FLAGS_MODE_MASK; mode 571 drivers/crypto/sahara.c dev->flags = (dev->flags & ~FLAGS_MODE_MASK) | rctx->mode; mode 633 drivers/crypto/sahara.c static int sahara_aes_crypt(struct ablkcipher_request *req, unsigned long mode) mode 640 drivers/crypto/sahara.c req->nbytes, !!(mode & FLAGS_ENCRYPT), !!(mode & FLAGS_CBC)); mode 648 drivers/crypto/sahara.c rctx->mode = mode; mode 776 drivers/crypto/sahara.c hdr = rctx->mode; mode 1125 drivers/crypto/sahara.c rctx->mode |= SAHARA_HDR_MDHA_ALG_SHA1; mode 1129 drivers/crypto/sahara.c rctx->mode |= SAHARA_HDR_MDHA_ALG_SHA256; mode 125 drivers/crypto/stm32/stm32-cryp.c unsigned long mode; mode 717 drivers/crypto/stm32/stm32-cryp.c static int stm32_cryp_crypt(struct ablkcipher_request *req, unsigned long mode) mode 727 drivers/crypto/stm32/stm32-cryp.c rctx->mode = mode; mode 732 drivers/crypto/stm32/stm32-cryp.c static int stm32_cryp_aead_crypt(struct aead_request *req, unsigned long mode) mode 741 drivers/crypto/stm32/stm32-cryp.c rctx->mode = mode; mode 931 drivers/crypto/stm32/stm32-cryp.c rctx->mode &= FLG_MODE_MASK; mode 935 drivers/crypto/stm32/stm32-cryp.c cryp->flags = (cryp->flags & ~FLG_MODE_MASK) | rctx->mode; mode 22 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c u32 mode = ctx->mode; mode 56 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c writel(mode, ss->base + SS_CTL); mode 133 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c if (ctx->mode & SS_DECRYPTION) mode 155 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c u32 mode = ctx->mode; mode 218 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c writel(mode, ss->base + SS_CTL); mode 282 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c mode, mode 353 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c rctx->mode = SS_OP_AES | SS_CBC | SS_ENABLED | SS_ENCRYPTION | mode 364 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c rctx->mode = SS_OP_AES | SS_CBC | SS_ENABLED | SS_DECRYPTION | mode 376 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c rctx->mode = SS_OP_AES | SS_ECB | SS_ENABLED | SS_ENCRYPTION | mode 387 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c rctx->mode = SS_OP_AES | SS_ECB | SS_ENABLED | SS_DECRYPTION | mode 399 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c rctx->mode = SS_OP_DES | SS_CBC | SS_ENABLED | SS_ENCRYPTION | mode 410 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c rctx->mode = SS_OP_DES | SS_CBC | SS_ENABLED | SS_DECRYPTION | mode 422 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c rctx->mode = SS_OP_DES | SS_ECB | SS_ENABLED | SS_ENCRYPTION | mode 433 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c rctx->mode = SS_OP_DES | SS_ECB | SS_ENABLED | SS_DECRYPTION | mode 445 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c rctx->mode = SS_OP_3DES | SS_CBC | SS_ENABLED | SS_ENCRYPTION | mode 456 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c rctx->mode = SS_OP_3DES | SS_CBC | SS_ENABLED | SS_DECRYPTION | mode 468 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c rctx->mode = SS_OP_3DES | SS_ECB | SS_ENABLED | SS_ENCRYPTION | mode 479 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c rctx->mode = SS_OP_3DES | SS_ECB | SS_ENABLED | SS_DECRYPTION | mode 27 drivers/crypto/sunxi-ss/sun4i-ss-core.c .mode = SS_OP_MD5, mode 53 drivers/crypto/sunxi-ss/sun4i-ss-core.c .mode = SS_OP_SHA1, mode 44 drivers/crypto/sunxi-ss/sun4i-ss-hash.c op->mode = algt->mode; mode 191 drivers/crypto/sunxi-ss/sun4i-ss-hash.c op->byte_count, areq->nbytes, op->mode, mode 223 drivers/crypto/sunxi-ss/sun4i-ss-hash.c writel(op->mode | SS_ENABLED | ivmode, ss->base + SS_CTL); mode 347 drivers/crypto/sunxi-ss/sun4i-ss-hash.c writel(op->mode | SS_ENABLED | SS_DATA_END, ss->base + SS_CTL); mode 426 drivers/crypto/sunxi-ss/sun4i-ss-hash.c if (op->mode == SS_OP_SHA1) { mode 438 drivers/crypto/sunxi-ss/sun4i-ss-hash.c writel(op->mode | SS_ENABLED | SS_DATA_END, ss->base + SS_CTL); mode 468 drivers/crypto/sunxi-ss/sun4i-ss-hash.c if (op->mode == SS_OP_SHA1) { mode 23 drivers/crypto/sunxi-ss/sun4i-ss-prng.c const u32 mode = SS_OP_PRNG | SS_PRNG_CONTINUE | SS_ENABLED; mode 33 drivers/crypto/sunxi-ss/sun4i-ss-prng.c writel(mode, ss->base + SS_CTL); mode 149 drivers/crypto/sunxi-ss/sun4i-ss.h u32 mode; mode 167 drivers/crypto/sunxi-ss/sun4i-ss.h u32 mode; mode 171 drivers/crypto/sunxi-ss/sun4i-ss.h u32 mode; mode 258 drivers/crypto/ux500/cryp/cryp_core.c static int mode_is_aes(enum cryp_algo_mode mode) mode 260 drivers/crypto/ux500/cryp/cryp_core.c return CRYP_ALGO_AES_ECB == mode || mode 261 drivers/crypto/ux500/cryp/cryp_core.c CRYP_ALGO_AES_CBC == mode || mode 262 drivers/crypto/ux500/cryp/cryp_core.c CRYP_ALGO_AES_CTR == mode || mode 263 drivers/crypto/ux500/cryp/cryp_core.c CRYP_ALGO_AES_XTS == mode; mode 334 drivers/dax/bus.c return a->mode; mode 270 drivers/dax/super.c return a->mode; mode 123 drivers/dma/dw-edma/dw-edma-core.h enum dw_edma_mode mode; mode 34 drivers/dma/dw-edma/dw-edma-pcie.c enum dw_edma_mode mode; mode 53 drivers/dma/dw-edma/dw-edma-pcie.c .mode = EDMA_MODE_UNROLL, mode 152 drivers/dma/dw-edma/dw-edma-pcie.c dw->mode = pdata->mode; mode 159 drivers/dma/dw-edma/dw-edma-pcie.c dw->mode == EDMA_MODE_LEGACY ? "Legacy" : "Unroll"); mode 59 drivers/dma/dw-edma/dw-edma-v0-core.c if (dw->mode == EDMA_MODE_LEGACY) mode 71 drivers/dma/dw-edma/dw-edma-v0-core.c if (dw->mode == EDMA_MODE_LEGACY) { mode 96 drivers/dma/dw-edma/dw-edma-v0-core.c if (dw->mode == EDMA_MODE_LEGACY) { mode 58 drivers/dma/dw-edma/dw-edma-v0-debugfs.c if (dw->mode == EDMA_MODE_LEGACY && mode 177 drivers/dma/dw-edma/dw-edma-v0-debugfs.c if (dw->mode == EDMA_MODE_UNROLL) { mode 246 drivers/dma/dw-edma/dw-edma-v0-debugfs.c if (dw->mode == EDMA_MODE_UNROLL) { mode 301 drivers/dma/dw-edma/dw-edma-v0-debugfs.c debugfs_create_u32("mode", 0444, base_dir, &dw->mode); mode 185 drivers/dma/fsldma.c u32 mode; mode 187 drivers/dma/fsldma.c mode = get_mr(chan); mode 191 drivers/dma/fsldma.c mode |= FSL_DMA_MR_EMP_EN; mode 193 drivers/dma/fsldma.c mode &= ~FSL_DMA_MR_EMP_EN; mode 197 drivers/dma/fsldma.c mode |= FSL_DMA_MR_EMS_EN; mode 199 drivers/dma/fsldma.c mode &= ~FSL_DMA_MR_EMS_EN; mode 200 drivers/dma/fsldma.c mode |= FSL_DMA_MR_CS; mode 203 drivers/dma/fsldma.c set_mr(chan, mode); mode 208 drivers/dma/fsldma.c u32 mode; mode 212 drivers/dma/fsldma.c mode = get_mr(chan); mode 220 drivers/dma/fsldma.c mode |= FSL_DMA_MR_CA; mode 221 drivers/dma/fsldma.c set_mr(chan, mode); mode 223 drivers/dma/fsldma.c mode &= ~FSL_DMA_MR_CA; mode 227 drivers/dma/fsldma.c mode &= ~(FSL_DMA_MR_CS | FSL_DMA_MR_EMS_EN); mode 228 drivers/dma/fsldma.c set_mr(chan, mode); mode 255 drivers/dma/fsldma.c u32 mode; mode 257 drivers/dma/fsldma.c mode = get_mr(chan); mode 261 drivers/dma/fsldma.c mode &= ~FSL_DMA_MR_SAHE; mode 267 drivers/dma/fsldma.c mode &= ~FSL_DMA_MR_SAHTS_MASK; mode 268 drivers/dma/fsldma.c mode |= FSL_DMA_MR_SAHE | (__ilog2(size) << 14); mode 272 drivers/dma/fsldma.c set_mr(chan, mode); mode 288 drivers/dma/fsldma.c u32 mode; mode 290 drivers/dma/fsldma.c mode = get_mr(chan); mode 294 drivers/dma/fsldma.c mode &= ~FSL_DMA_MR_DAHE; mode 300 drivers/dma/fsldma.c mode &= ~FSL_DMA_MR_DAHTS_MASK; mode 301 drivers/dma/fsldma.c mode |= FSL_DMA_MR_DAHE | (__ilog2(size) << 16); mode 305 drivers/dma/fsldma.c set_mr(chan, mode); mode 322 drivers/dma/fsldma.c u32 mode; mode 326 drivers/dma/fsldma.c mode = get_mr(chan); mode 327 drivers/dma/fsldma.c mode &= ~FSL_DMA_MR_BWC_MASK; mode 328 drivers/dma/fsldma.c mode |= (__ilog2(size) << 24) & FSL_DMA_MR_BWC_MASK; mode 330 drivers/dma/fsldma.c set_mr(chan, mode); mode 608 drivers/dma/fsldma.c u32 mode; mode 610 drivers/dma/fsldma.c mode = get_mr(chan); mode 611 drivers/dma/fsldma.c mode &= ~FSL_DMA_MR_CS; mode 612 drivers/dma/fsldma.c set_mr(chan, mode); mode 1360 drivers/dma/fsldma.c u32 mode; mode 1369 drivers/dma/fsldma.c mode = chan->regs_save.mr mode 1371 drivers/dma/fsldma.c set_mr(chan, mode); mode 684 drivers/dma/imx-dma.c unsigned int mode = 0; mode 698 drivers/dma/imx-dma.c mode = IMX_DMA_MEMSIZE_8; mode 701 drivers/dma/imx-dma.c mode = IMX_DMA_MEMSIZE_16; mode 705 drivers/dma/imx-dma.c mode = IMX_DMA_MEMSIZE_32; mode 711 drivers/dma/imx-dma.c imxdmac->ccr_from_device = (mode | IMX_DMA_TYPE_FIFO) | mode 716 drivers/dma/imx-dma.c ((mode | IMX_DMA_TYPE_FIFO) << 2) | CCR_REN; mode 198 drivers/dma/imx-sdma.c struct sdma_mode_count mode; mode 705 drivers/dma/imx-sdma.c bd0->mode.command = C0_SETPM; mode 706 drivers/dma/imx-sdma.c bd0->mode.status = BD_DONE | BD_WRAP | BD_EXTD; mode 707 drivers/dma/imx-sdma.c bd0->mode.count = size / 2; mode 790 drivers/dma/imx-sdma.c if (bd->mode.status & BD_DONE) mode 793 drivers/dma/imx-sdma.c if (bd->mode.status & BD_RROR) { mode 794 drivers/dma/imx-sdma.c bd->mode.status &= ~BD_RROR; mode 804 drivers/dma/imx-sdma.c desc->chn_real_count = bd->mode.count; mode 805 drivers/dma/imx-sdma.c bd->mode.status |= BD_DONE; mode 806 drivers/dma/imx-sdma.c bd->mode.count = desc->period_len; mode 839 drivers/dma/imx-sdma.c if (bd->mode.status & (BD_DONE | BD_RROR)) mode 841 drivers/dma/imx-sdma.c sdmac->desc->chn_real_count += bd->mode.count; mode 1027 drivers/dma/imx-sdma.c bd0->mode.command = C0_SETDM; mode 1028 drivers/dma/imx-sdma.c bd0->mode.status = BD_DONE | BD_WRAP | BD_EXTD; mode 1029 drivers/dma/imx-sdma.c bd0->mode.count = sizeof(*context) / 4; mode 1412 drivers/dma/imx-sdma.c bd->mode.count = count; mode 1414 drivers/dma/imx-sdma.c bd->mode.command = 0; mode 1434 drivers/dma/imx-sdma.c bd->mode.status = param; mode 1475 drivers/dma/imx-sdma.c bd->mode.count = count; mode 1483 drivers/dma/imx-sdma.c bd->mode.command = 0; mode 1488 drivers/dma/imx-sdma.c bd->mode.command = 2; mode 1493 drivers/dma/imx-sdma.c bd->mode.command = 1; mode 1512 drivers/dma/imx-sdma.c bd->mode.status = param; mode 1560 drivers/dma/imx-sdma.c bd->mode.count = period_len; mode 1565 drivers/dma/imx-sdma.c bd->mode.command = 0; mode 1567 drivers/dma/imx-sdma.c bd->mode.command = sdmac->word_size; mode 1578 drivers/dma/imx-sdma.c bd->mode.status = param; mode 298 drivers/dma/owl-dma.c static inline u32 llc_hw_ctrla(u32 mode, u32 llc_ctl) mode 302 drivers/dma/owl-dma.c ctl = BIT_FIELD(mode, 4, 28, 28) | mode 303 drivers/dma/owl-dma.c BIT_FIELD(mode, 8, 16, 20) | mode 304 drivers/dma/owl-dma.c BIT_FIELD(mode, 4, 8, 16) | mode 305 drivers/dma/owl-dma.c BIT_FIELD(mode, 6, 0, 10) | mode 367 drivers/dma/owl-dma.c u32 mode; mode 369 drivers/dma/owl-dma.c mode = OWL_DMA_MODE_PW(0); mode 373 drivers/dma/owl-dma.c mode |= OWL_DMA_MODE_TS(0) | OWL_DMA_MODE_ST_DCU | mode 379 drivers/dma/owl-dma.c mode |= OWL_DMA_MODE_TS(vchan->drq) mode 388 drivers/dma/owl-dma.c mode |= OWL_DMA_MODE_NDDBW_8BIT; mode 392 drivers/dma/owl-dma.c mode |= OWL_DMA_MODE_TS(vchan->drq) mode 401 drivers/dma/owl-dma.c mode |= OWL_DMA_MODE_NDDBW_8BIT; mode 416 drivers/dma/owl-dma.c hw->ctrla = llc_hw_ctrla(mode, mode 249 drivers/dma/pch_dma.c static void pdc_set_mode(struct dma_chan *chan, u32 mode) mode 263 drivers/dma/pch_dma.c val |= mode << (DMA_CTL0_BITS_PER_CH * chan->chan_id); mode 274 drivers/dma/pch_dma.c val |= mode << (DMA_CTL0_BITS_PER_CH * ch); mode 277 drivers/dma/pl330.c unsigned int mode; mode 564 drivers/dma/pl330.c return (thrd->dmac->pcfg.mode & DMAC_MODE_NS) ? true : false; mode 1840 drivers/dma/pl330.c pl330->pcfg.mode |= DMAC_MODE_NS; mode 1842 drivers/dma/pl330.c pl330->pcfg.mode &= ~DMAC_MODE_NS; mode 638 drivers/dma/qcom/hidma.c hidma_create_sysfs_entry(struct hidma_dev *dev, char *name, int mode) mode 653 drivers/dma/qcom/hidma.c attrs->attr.mode = mode; mode 21 drivers/dma/qcom/hidma_mgmt_sys.c int mode; mode 44 drivers/dma/qcom/hidma_mgmt_sys.c #define DECLARE_ATTRIBUTE(name, mode) \ mode 45 drivers/dma/qcom/hidma_mgmt_sys.c {#name, mode, get_##name, set_##name} mode 185 drivers/dma/qcom/hidma_mgmt_sys.c static int create_sysfs_entry(struct hidma_mgmt_dev *dev, char *name, int mode) mode 200 drivers/dma/qcom/hidma_mgmt_sys.c attrs->attr.mode = mode; mode 209 drivers/dma/qcom/hidma_mgmt_sys.c int mode, int index, mode 226 drivers/dma/qcom/hidma_mgmt_sys.c chattr->attr.attr.mode = mode; mode 263 drivers/dma/qcom/hidma_mgmt_sys.c hidma_mgmt_files[i].mode); mode 110 drivers/dma/sirf-dma.c int mode; mode 257 drivers/dma/sirf-dma.c sdma->exec_desc(sdesc, cid, schan->mode, base); mode 436 drivers/dma/sirf-dma.c schan->mode = (config->src_maxburst == 4 ? 1 : 0); mode 83 drivers/dma/ste_dma40.c .mode = STEDMA40_MODE_PHYSICAL, mode 97 drivers/dma/ste_dma40.c .mode = STEDMA40_MODE_LOGICAL, mode 1706 drivers/dma/ste_dma40.c bool is_log = conf->mode == STEDMA40_MODE_LOGICAL; mode 1843 drivers/dma/ste_dma40.c bool is_log = d40c->dma_cfg.mode == STEDMA40_MODE_LOGICAL; mode 2362 drivers/dma/ste_dma40.c case 0: cfg.mode = STEDMA40_MODE_LOGICAL; break; mode 2363 drivers/dma/ste_dma40.c case 1: cfg.mode = STEDMA40_MODE_PHYSICAL; break; mode 26 drivers/dma/sun4i-dma.c #define SUN4I_DMA_CFG_DST_ADDR_MODE(mode) ((mode) << 21) mode 30 drivers/dma/sun4i-dma.c #define SUN4I_DMA_CFG_SRC_ADDR_MODE(mode) ((mode) << 5) mode 229 drivers/edac/amd64_edac_inj.c return attr->mode; mode 110 drivers/edac/debugfs.c edac_debugfs_create_file(const char *name, umode_t mode, struct dentry *parent, mode 116 drivers/edac/debugfs.c return debugfs_create_file(name, mode, parent, data, fops); mode 121 drivers/edac/debugfs.c void edac_debugfs_create_x8(const char *name, umode_t mode, mode 127 drivers/edac/debugfs.c debugfs_create_x8(name, mode, parent, value); mode 132 drivers/edac/debugfs.c void edac_debugfs_create_x16(const char *name, umode_t mode, mode 138 drivers/edac/debugfs.c debugfs_create_x16(name, mode, parent, value); mode 143 drivers/edac/debugfs.c void edac_debugfs_create_x32(const char *name, umode_t mode, mode 149 drivers/edac/debugfs.c debugfs_create_x32(name, mode, parent, value); mode 149 drivers/edac/edac_device_sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ mode 377 drivers/edac/edac_device_sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ mode 480 drivers/edac/edac_device_sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ mode 370 drivers/edac/edac_mc_sysfs.c return attr->mode; mode 879 drivers/edac/edac_mc_sysfs.c umode_t mode = 0; mode 882 drivers/edac/edac_mc_sysfs.c return attr->mode; mode 884 drivers/edac/edac_mc_sysfs.c mode |= S_IRUGO; mode 886 drivers/edac/edac_mc_sysfs.c mode |= S_IWUSR; mode 887 drivers/edac/edac_mc_sysfs.c return mode; mode 79 drivers/edac/edac_module.h edac_debugfs_create_file(const char *name, umode_t mode, struct dentry *parent, mode 81 drivers/edac/edac_module.h void edac_debugfs_create_x8(const char *name, umode_t mode, mode 83 drivers/edac/edac_module.h void edac_debugfs_create_x16(const char *name, umode_t mode, mode 85 drivers/edac/edac_module.h void edac_debugfs_create_x32(const char *name, umode_t mode, mode 95 drivers/edac/edac_module.h edac_debugfs_create_file(const char *name, umode_t mode, struct dentry *parent, mode 97 drivers/edac/edac_module.h static inline void edac_debugfs_create_x8(const char *name, umode_t mode, mode 99 drivers/edac/edac_module.h static inline void edac_debugfs_create_x16(const char *name, umode_t mode, mode 101 drivers/edac/edac_module.h static inline void edac_debugfs_create_x32(const char *name, umode_t mode, mode 129 drivers/edac/edac_pci_sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ mode 268 drivers/edac/edac_pci_sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ mode 276 drivers/edac/edac_pci_sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ mode 492 drivers/edac/i7core_edac.c enum edac_type mode; mode 514 drivers/edac/i7core_edac.c mode = EDAC_S8ECD8ED; mode 516 drivers/edac/i7core_edac.c mode = EDAC_S4ECD4ED; mode 519 drivers/edac/i7core_edac.c mode = EDAC_NONE; mode 625 drivers/edac/i7core_edac.c dimm->edac_mode = mode; mode 407 drivers/edac/mpc85xx_edac.c .mode = (S_IRUGO | S_IWUSR) mode 414 drivers/edac/mpc85xx_edac.c .mode = (S_IRUGO | S_IWUSR) mode 421 drivers/edac/mpc85xx_edac.c .mode = (S_IRUGO | S_IWUSR) mode 1584 drivers/edac/sb_edac.c enum edac_type mode) mode 1665 drivers/edac/sb_edac.c dimm->edac_mode = mode; mode 1680 drivers/edac/sb_edac.c enum edac_type mode; mode 1693 drivers/edac/sb_edac.c mode = EDAC_S4ECD4ED; mode 1735 drivers/edac/sb_edac.c mode = EDAC_S8ECD8ED; mode 1739 drivers/edac/sb_edac.c mode = EDAC_S4ECD4ED; mode 1751 drivers/edac/sb_edac.c return __populate_dimms(mci, knl_mc_sizes, mode); mode 171 drivers/edac/thunderx_edac.c umode_t mode; mode 219 drivers/edac/thunderx_edac.c .mode = VERIFY_OCTAL_PERMISSIONS(_mode), \ mode 481 drivers/edac/thunderx_edac.c ent = edac_debugfs_create_file(attrs[i]->name, attrs[i]->mode, mode 227 drivers/extcon/extcon-arizona.c static void arizona_extcon_set_mode(struct arizona_extcon_info *info, int mode) mode 231 drivers/extcon/extcon-arizona.c mode %= info->micd_num_modes; mode 234 drivers/extcon/extcon-arizona.c info->micd_modes[mode].gpio); mode 238 drivers/extcon/extcon-arizona.c info->micd_modes[mode].bias << mode 241 drivers/extcon/extcon-arizona.c ARIZONA_ACCDET_SRC, info->micd_modes[mode].src); mode 243 drivers/extcon/extcon-arizona.c info->micd_mode = mode; mode 245 drivers/extcon/extcon-arizona.c dev_dbg(arizona->dev, "Set jack polarity to %d\n", mode); mode 292 drivers/extcon/extcon-arizona.c unsigned int mode; mode 319 drivers/extcon/extcon-arizona.c mode = ARIZONA_ACCDET_MODE_ADC; mode 321 drivers/extcon/extcon-arizona.c mode = ARIZONA_ACCDET_MODE_MIC; mode 325 drivers/extcon/extcon-arizona.c ARIZONA_ACCDET_MODE_MASK, mode); mode 1355 drivers/extcon/extcon-arizona.c int ret, mode, i, j; mode 1452 drivers/extcon/extcon-arizona.c mode = GPIOF_OUT_INIT_HIGH; mode 1454 drivers/extcon/extcon-arizona.c mode = GPIOF_OUT_INIT_LOW; mode 1457 drivers/extcon/extcon-arizona.c mode, "MICD polarity"); mode 1467 drivers/extcon/extcon-arizona.c mode = GPIOD_OUT_HIGH; mode 1469 drivers/extcon/extcon-arizona.c mode = GPIOD_OUT_LOW; mode 1152 drivers/extcon/extcon.c cable->attr_name.attr.mode = 0444; mode 1157 drivers/extcon/extcon.c cable->attr_state.attr.mode = 0444; mode 1201 drivers/extcon/extcon.c edev->d_attrs_muex[index].attr.mode = 0000; mode 59 drivers/firmware/dmi-sysfs.c .attr = {.name = __stringify(_name), .mode = 0400}, \ mode 76 drivers/firmware/dmi-sysfs.c .attr = {.name = __stringify(_name), .mode = 0400}, \ mode 445 drivers/firmware/dmi-sysfs.c .attr = {.name = "raw_event_log", .mode = 0400}, mode 551 drivers/firmware/dmi-sysfs.c .attr = {.name = "raw", .mode = 0400}, mode 68 drivers/firmware/edd.c .attr = {.name = __stringify(_name), .mode = _mode }, \ mode 193 drivers/firmware/efi/efi.c return attr->mode; mode 52 drivers/firmware/efi/efivars.c .attr = {.name = __stringify(_name), .mode = _mode}, \ mode 551 drivers/firmware/efi/efivars.c attr->attr.mode = 0200; mode 562 drivers/firmware/efi/efivars.c attr->attr.mode = 0200; mode 228 drivers/firmware/efi/esrt.c return attr->mode; mode 107 drivers/firmware/efi/libstub/gop.c struct efi_graphics_output_protocol_mode_32 *mode; mode 125 drivers/firmware/efi/libstub/gop.c mode = (void *)(unsigned long)gop32->mode; mode 126 drivers/firmware/efi/libstub/gop.c info = (void *)(unsigned long)mode->info; mode 127 drivers/firmware/efi/libstub/gop.c current_fb_base = mode->frame_buffer_base; mode 204 drivers/firmware/efi/libstub/gop.c struct efi_graphics_output_protocol_mode_64 *mode; mode 222 drivers/firmware/efi/libstub/gop.c mode = (void *)(unsigned long)gop64->mode; mode 223 drivers/firmware/efi/libstub/gop.c info = (void *)(unsigned long)mode->info; mode 224 drivers/firmware/efi/libstub/gop.c current_fb_base = mode->frame_buffer_base; mode 529 drivers/firmware/google/gsmi.c .attr = {.name = "append_to_eventlog", .mode = 0200}, mode 576 drivers/firmware/google/gsmi.c .attr = {.name = "clear_eventlog", .mode = 0200}, mode 602 drivers/firmware/google/gsmi.c .attr = {.name = "clear_config", .mode = 0200}, mode 30 drivers/firmware/google/memconsole.c .attr = {.name = "log", .mode = 0444}, mode 122 drivers/firmware/google/vpd.c info->bin_attr.attr.mode = 0444; mode 202 drivers/firmware/google/vpd.c sec->bin_attr.attr.mode = 0444; mode 63 drivers/firmware/imx/scu-pd.c u8 mode; mode 191 drivers/firmware/imx/scu-pd.c msg.mode = power_on ? IMX_SC_PM_PW_MODE_ON : IMX_SC_PM_PW_MODE_LP; mode 308 drivers/firmware/qemu_fw_cfg.c .attr = { .name = "rev", .mode = S_IRUSR }, mode 401 drivers/firmware/qemu_fw_cfg.c .attr = { .name = __stringify(_attr), .mode = S_IRUSR }, \ mode 478 drivers/firmware/qemu_fw_cfg.c .attr = { .name = "raw", .mode = S_IRUSR }, mode 338 drivers/firmware/tegra/bpmp-debugfs.c umode_t mode; mode 340 drivers/firmware/tegra/bpmp-debugfs.c mode = t & DEBUGFS_S_IRUSR ? S_IRUSR : 0; mode 341 drivers/firmware/tegra/bpmp-debugfs.c mode |= t & DEBUGFS_S_IWUSR ? S_IWUSR : 0; mode 342 drivers/firmware/tegra/bpmp-debugfs.c dentry = debugfs_create_file(name, mode, mode 2121 drivers/firmware/ti_sci.c u8 mode, u8 size, u8 order_id) mode 2151 drivers/firmware/ti_sci.c req->mode = mode; mode 2188 drivers/firmware/ti_sci.c u32 nav_id, u32 index, u8 *mode, mode 2229 drivers/firmware/ti_sci.c if (mode) mode 2230 drivers/firmware/ti_sci.c *mode = resp->mode; mode 3335 drivers/firmware/ti_sci.c static int tisci_reboot_handler(struct notifier_block *nb, unsigned long mode, mode 681 drivers/firmware/ti_sci.h u8 mode; mode 724 drivers/firmware/ti_sci.h u8 mode; mode 63 drivers/firmware/trusted_foundations.c static int tf_prepare_idle(unsigned long mode) mode 65 drivers/firmware/trusted_foundations.c switch (mode) { mode 607 drivers/firmware/xilinx/zynqmp.c static int zynqmp_pm_set_suspend_mode(u32 mode) mode 609 drivers/firmware/xilinx/zynqmp.c return zynqmp_pm_invoke_fn(PM_SET_SUSPEND_MODE, mode, 0, 0, 0, NULL); mode 199 drivers/fpga/dfl-afu-error.c return attr->mode; mode 377 drivers/fpga/dfl-afu-main.c umode_t mode = attr->mode; mode 392 drivers/fpga/dfl-afu-main.c mode = 0; mode 395 drivers/fpga/dfl-afu-main.c return mode; mode 482 drivers/fpga/dfl-afu-main.c return attr->mode; mode 305 drivers/fpga/dfl-fme-error.c return attr->mode; mode 155 drivers/fpga/ice40-spi.c if (spi->mode & SPI_CPHA) { mode 338 drivers/fpga/socfpga.c int mode; mode 341 drivers/fpga/socfpga.c mode = socfpga_fpga_cfg_mode_get(priv); mode 342 drivers/fpga/socfpga.c if (mode < 0) mode 343 drivers/fpga/socfpga.c return mode; mode 349 drivers/fpga/socfpga.c ctrl_reg |= cfgmgr_modes[mode].ctrl; mode 629 drivers/fsi/fsi-core.c .mode = 0600, mode 892 drivers/fsi/fsi-core.c static char *cfam_devnode(struct device *dev, umode_t *mode, mode 910 drivers/fsi/fsi-core.c static char *fsi_cdev_devnode(struct device *dev, umode_t *mode, mode 75 drivers/gpio/gpio-max3191x.c enum max3191x_mode mode; mode 120 drivers/gpio/gpio-max3191x.c return max3191x->mode == STATUS_BYTE_ENABLED ? 2 : 1; mode 136 drivers/gpio/gpio-max3191x.c if (max3191x->mode == STATUS_BYTE_ENABLED) { mode 197 drivers/gpio/gpio-max3191x.c if (max3191x->mode == STATUS_BYTE_DISABLED) mode 395 drivers/gpio/gpio-max3191x.c max3191x->mode = device_property_read_bool(dev, "maxim,modesel-8bit") mode 401 drivers/gpio/gpio-max3191x.c max3191x->modesel_pins->info, max3191x->mode); mode 371 drivers/gpio/gpiolib-sysfs.c umode_t mode = attr->mode; mode 376 drivers/gpio/gpiolib-sysfs.c mode = 0; mode 379 drivers/gpio/gpiolib-sysfs.c mode = 0; mode 381 drivers/gpio/gpiolib-sysfs.c mode = 0; mode 384 drivers/gpio/gpiolib-sysfs.c return mode; mode 2930 drivers/gpio/gpiolib.c enum pin_config_param mode) mode 2935 drivers/gpio/gpiolib.c switch (mode) { mode 2945 drivers/gpio/gpiolib.c config = PIN_CONF_PACKED(mode, arg); mode 81 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c uint32_t mode:2; mode 94 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_crtc_helper_set_mode(crtc, &crtc->mode, mode 385 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_display_mode *mode = NULL; mode 391 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c mode = drm_mode_duplicate(dev, native_mode); mode 392 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c mode->type = DRM_MODE_TYPE_PREFERRED | DRM_MODE_TYPE_DRIVER; mode 393 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_mode_set_name(mode); mode 395 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c DRM_DEBUG_KMS("Adding native panel mode %s\n", mode->name); mode 405 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c mode = drm_cvt_mode(dev, native_mode->hdisplay, native_mode->vdisplay, 60, true, false, false); mode 406 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c mode->type = DRM_MODE_TYPE_PREFERRED | DRM_MODE_TYPE_DRIVER; mode 407 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c DRM_DEBUG_KMS("Adding cvt approximation of native panel mode %s\n", mode->name); mode 409 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c return mode; mode 417 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_display_mode *mode = NULL; mode 459 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c mode = drm_cvt_mode(dev, common_modes[i].w, common_modes[i].h, 60, false, false, false); mode 460 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_mode_probed_add(connector, mode); mode 615 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_display_mode *t, *mode; mode 618 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c list_for_each_entry_safe(mode, t, &connector->probed_modes, head) { mode 619 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (mode->type & DRM_MODE_TYPE_PREFERRED) { mode 620 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (mode->hdisplay != native_mode->hdisplay || mode 621 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c mode->vdisplay != native_mode->vdisplay) mode 622 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c memcpy(native_mode, mode, sizeof(*mode)); mode 628 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c list_for_each_entry_safe(mode, t, &connector->probed_modes, head) { mode 629 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (mode->hdisplay == native_mode->hdisplay && mode 630 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c mode->vdisplay == native_mode->vdisplay) { mode 631 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c *native_mode = *mode; mode 649 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_display_mode *mode; mode 668 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c mode = amdgpu_connector_lcd_native_mode(encoder); mode 669 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (mode) { mode 671 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_mode_probed_add(connector, mode); mode 673 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c connector->display_info.width_mm = mode->width_mm; mode 674 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c connector->display_info.height_mm = mode->height_mm; mode 683 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_display_mode *mode) mode 687 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if ((mode->hdisplay < 320) || (mode->vdisplay < 240)) mode 697 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if ((mode->hdisplay > native_mode->hdisplay) || mode 698 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c (mode->vdisplay > native_mode->vdisplay)) mode 703 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if ((mode->hdisplay != native_mode->hdisplay) || mode 704 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c (mode->vdisplay != native_mode->vdisplay)) mode 835 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_display_mode *mode) mode 842 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if ((mode->clock / 10) > adev->clock.max_pixel_clock) mode 1153 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_display_mode *mode) mode 1161 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (amdgpu_connector->use_digital && (mode->clock > 165000)) { mode 1168 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (mode->clock > 340000) mode 1178 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if ((mode->clock / 10) > adev->clock.max_pixel_clock) mode 1209 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_display_mode *mode; mode 1244 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c mode = amdgpu_connector_lcd_native_mode(encoder); mode 1245 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (mode) { mode 1247 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c drm_mode_probed_add(connector, mode); mode 1249 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c connector->display_info.width_mm = mode->width_mm; mode 1250 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c connector->display_info.height_mm = mode->height_mm; mode 1414 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c struct drm_display_mode *mode) mode 1425 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if ((mode->hdisplay < 320) || (mode->vdisplay < 240)) mode 1435 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if ((mode->hdisplay > native_mode->hdisplay) || mode 1436 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c (mode->vdisplay > native_mode->vdisplay)) mode 1441 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if ((mode->hdisplay != native_mode->hdisplay) || mode 1442 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c (mode->vdisplay != native_mode->vdisplay)) mode 1450 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c return amdgpu_atombios_dp_mode_valid_helper(connector, mode); mode 1454 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (mode->clock > 340000) mode 1457 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c if (mode->clock > 165000) mode 669 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c static bool amdgpu_display_is_hdtv_mode(const struct drm_display_mode *mode) mode 672 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c if ((mode->vdisplay == 480 && mode->hdisplay == 720) || /* 480p */ mode 673 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c (mode->vdisplay == 576) || /* 576p */ mode 674 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c (mode->vdisplay == 720) || /* 720p */ mode 675 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c (mode->vdisplay == 1080)) /* 1080p */ mode 682 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c const struct drm_display_mode *mode, mode 707 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c else if (mode->hdisplay < amdgpu_encoder->native_mode.hdisplay || mode 708 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c mode->vdisplay < amdgpu_encoder->native_mode.vdisplay) mode 716 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c src_v = crtc->mode.vdisplay; mode 718 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c src_h = crtc->mode.hdisplay; mode 722 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c if ((!(mode->flags & DRM_MODE_FLAG_INTERLACE)) && mode 726 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_display_is_hdtv_mode(mode)))) { mode 730 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_crtc->h_border = (mode->hdisplay >> 5) + 16; mode 734 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_crtc->v_border = (mode->vdisplay >> 5) + 16; mode 736 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c src_v = crtc->mode.vdisplay; mode 737 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c dst_v = crtc->mode.vdisplay - (amdgpu_crtc->v_border * 2); mode 738 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c src_h = crtc->mode.hdisplay; mode 739 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c dst_h = crtc->mode.hdisplay - (amdgpu_crtc->h_border * 2); mode 797 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c const struct drm_display_mode *mode) mode 833 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c vbl_start = mode->crtc_vdisplay; mode 879 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c vtotal = mode->crtc_vtotal; mode 1416 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c const struct drm_display_mode *mode) mode 1419 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c stime, etime, mode); mode 176 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c enum drm_mm_insert_mode mode; mode 193 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c mode = DRM_MM_INSERT_BEST; mode 195 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c mode = DRM_MM_INSERT_HIGH; mode 200 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c mode); mode 597 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h const struct drm_display_mode *mode); mode 609 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h const struct drm_display_mode *mode, mode 343 drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c if ((crtc->mode.clock == test_crtc->mode.clock) && mode 2296 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c umode_t effective_mode = attr->mode; mode 814 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c .mode = S_IRUGO, mode 822 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c .mode = S_IRUGO, mode 874 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c .mode = S_IRUGO, mode 381 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c #define FW_VERSION_ATTR(name, mode, field) \ mode 391 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c static DEVICE_ATTR(name, mode, show_##name, NULL) mode 276 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c enum drm_mm_insert_mode mode; mode 315 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c mode = DRM_MM_INSERT_BEST; mode 317 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c mode = DRM_MM_INSERT_HIGH; mode 329 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c mode); mode 348 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c mode); mode 97 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c .mode = S_IRUGO, mode 40 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c struct drm_display_mode *mode, mode 56 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); mode 57 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); mode 58 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); mode 59 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); mode 62 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c a1 = mode->crtc_vdisplay * adjusted_mode->crtc_hdisplay; mode 63 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c a2 = adjusted_mode->crtc_vdisplay * mode->crtc_hdisplay; mode 66 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); mode 67 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); mode 69 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); mode 70 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); mode 191 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c struct drm_display_mode *mode) mode 201 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c args.usH_Size = cpu_to_le16(mode->crtc_hdisplay - (amdgpu_crtc->h_border * 2)); mode 203 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c cpu_to_le16(mode->crtc_hblank_end - mode->crtc_hdisplay + (amdgpu_crtc->h_border * 2)); mode 204 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c args.usV_Size = cpu_to_le16(mode->crtc_vdisplay - (amdgpu_crtc->v_border * 2)); mode 206 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c cpu_to_le16(mode->crtc_vblank_end - mode->crtc_vdisplay + (amdgpu_crtc->v_border * 2)); mode 208 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c cpu_to_le16(mode->crtc_hsync_start - mode->crtc_hdisplay + amdgpu_crtc->h_border); mode 210 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c cpu_to_le16(mode->crtc_hsync_end - mode->crtc_hsync_start); mode 212 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c cpu_to_le16(mode->crtc_vsync_start - mode->crtc_vdisplay + amdgpu_crtc->v_border); mode 214 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c cpu_to_le16(mode->crtc_vsync_end - mode->crtc_vsync_start); mode 218 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 220 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 222 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c if (mode->flags & DRM_MODE_FLAG_CSYNC) mode 224 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 226 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 306 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c struct drm_display_mode *mode) mode 314 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c u32 adjusted_clock = mode->clock; mode 316 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c u32 dp_clock = mode->clock; mode 317 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c u32 clock = mode->clock; mode 319 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c bool is_duallink = amdgpu_dig_monitor_is_duallink(encoder, mode->clock); mode 350 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c adjusted_clock = mode->clock * 2; mode 748 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c struct drm_display_mode *mode) mode 772 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c amdgpu_connector->pixelclock_for_modeset = mode->clock; mode 790 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c mode->clock / 10); mode 797 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c mode->clock / 10); mode 804 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c mode->clock / 10); mode 812 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c amdgpu_crtc->adjusted_clock = amdgpu_atombios_crtc_adjust_pll(crtc, mode); mode 817 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c void amdgpu_atombios_crtc_set_pll(struct drm_crtc *crtc, struct drm_display_mode *mode) mode 824 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c u32 pll_clock = mode->clock; mode 825 drivers/gpu/drm/amd/amdgpu/atombios_crtc.c u32 clock = mode->clock; mode 28 drivers/gpu/drm/amd/amdgpu/atombios_crtc.h struct drm_display_mode *mode, mode 37 drivers/gpu/drm/amd/amdgpu/atombios_crtc.h struct drm_display_mode *mode); mode 56 drivers/gpu/drm/amd/amdgpu/atombios_crtc.h struct drm_display_mode *mode); mode 58 drivers/gpu/drm/amd/amdgpu/atombios_crtc.h struct drm_display_mode *mode); mode 399 drivers/gpu/drm/amd/amdgpu/atombios_dp.c const struct drm_display_mode *mode) mode 412 drivers/gpu/drm/amd/amdgpu/atombios_dp.c mode->clock, mode 423 drivers/gpu/drm/amd/amdgpu/atombios_dp.c struct drm_display_mode *mode) mode 435 drivers/gpu/drm/amd/amdgpu/atombios_dp.c mode->clock, &dp_lanes, &dp_clock); mode 33 drivers/gpu/drm/amd/amdgpu/atombios_dp.h const struct drm_display_mode *mode); mode 35 drivers/gpu/drm/amd/amdgpu/atombios_dp.h struct drm_display_mode *mode); mode 285 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c const struct drm_display_mode *mode, mode 295 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if ((mode->flags & DRM_MODE_FLAG_INTERLACE) mode 296 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c && (mode->crtc_vsync_start < (mode->crtc_vdisplay + 2))) mode 300 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c if (mode->crtc_vsync_start == mode->crtc_vdisplay) mode 1407 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_atombios_encoder_dpms(struct drm_encoder *encoder, int mode) mode 1412 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c amdgpu_encoder->encoder_id, mode, amdgpu_encoder->devices, mode 1419 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c switch (mode) { mode 1431 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c switch (mode) { mode 1443 drivers/gpu/drm/amd/amdgpu/atombios_encoders.c switch (mode) { mode 43 drivers/gpu/drm/amd/amdgpu/atombios_encoders.h const struct drm_display_mode *mode, mode 56 drivers/gpu/drm/amd/amdgpu/atombios_encoders.h amdgpu_atombios_encoder_dpms(struct drm_encoder *encoder, int mode); mode 590 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_display_mode *mode) mode 602 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (amdgpu_crtc->base.enabled && mode) { mode 603 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (mode->crtc_hdisplay < 1920) { mode 606 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c } else if (mode->crtc_hdisplay < 2560) { mode 609 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c } else if (mode->crtc_hdisplay < 4096) { mode 637 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (amdgpu_crtc->base.enabled && mode) { mode 1024 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_display_mode *mode = &amdgpu_crtc->base.mode; mode 1031 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (amdgpu_crtc->base.enabled && num_heads && mode) { mode 1032 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c active_time = (u32) div_u64((u64)mode->crtc_hdisplay * 1000000, mode 1033 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c (u32)mode->clock); mode 1034 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c line_time = (u32) div_u64((u64)mode->crtc_htotal * 1000000, mode 1035 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c (u32)mode->clock); mode 1049 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c wm_high.disp_clk = mode->clock; mode 1050 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c wm_high.src_width = mode->crtc_hdisplay; mode 1054 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 1088 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c wm_low.disp_clk = mode->clock; mode 1089 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c wm_low.src_width = mode->crtc_hdisplay; mode 1093 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 1115 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); mode 1154 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_display_mode *mode = NULL; mode 1165 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c mode = &adev->mode_info.crtcs[i]->base.mode; mode 1166 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c lb_size = dce_v10_0_line_buffer_adjust(adev, adev->mode_info.crtcs[i], mode); mode 1220 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_display_mode *mode) mode 1245 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 1551 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_display_mode *mode) mode 1581 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_audio_set_dto(encoder, mode->clock); mode 1664 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_afmt_update_ACR(encoder, mode->clock); mode 1690 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_audio_write_latency_fields(encoder, mode); mode 1692 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c err = drm_hdmi_avi_infoframe_from_display_mode(&frame, connector, mode); mode 2053 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c viewport_w = crtc->mode.hdisplay; mode 2054 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c viewport_h = (crtc->mode.vdisplay + 1) & ~1; mode 2077 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_display_mode *mode) mode 2085 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 2481 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c static void dce_v10_0_crtc_dpms(struct drm_crtc *crtc, int mode) mode 2488 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c switch (mode) { mode 2592 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_display_mode *mode, mode 2604 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c amdgpu_atombios_crtc_overscan_setup(crtc, mode, adjusted_mode); mode 2614 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c const struct drm_display_mode *mode, mode 2634 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (!amdgpu_display_crtc_scaling_mode_fixup(crtc, mode, adjusted_mode)) mode 3304 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_display_mode *mode, mode 3315 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_set_interleave(encoder->crtc, mode); mode 3401 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_display_mode *mode, mode 3413 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c dce_v10_0_ext_dpms(struct drm_encoder *encoder, int mode) mode 616 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_display_mode *mode) mode 628 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (amdgpu_crtc->base.enabled && mode) { mode 629 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (mode->crtc_hdisplay < 1920) { mode 632 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c } else if (mode->crtc_hdisplay < 2560) { mode 635 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c } else if (mode->crtc_hdisplay < 4096) { mode 663 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (amdgpu_crtc->base.enabled && mode) { mode 1050 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_display_mode *mode = &amdgpu_crtc->base.mode; mode 1057 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (amdgpu_crtc->base.enabled && num_heads && mode) { mode 1058 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c active_time = (u32) div_u64((u64)mode->crtc_hdisplay * 1000000, mode 1059 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c (u32)mode->clock); mode 1060 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c line_time = (u32) div_u64((u64)mode->crtc_htotal * 1000000, mode 1061 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c (u32)mode->clock); mode 1075 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c wm_high.disp_clk = mode->clock; mode 1076 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c wm_high.src_width = mode->crtc_hdisplay; mode 1080 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 1114 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c wm_low.disp_clk = mode->clock; mode 1115 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c wm_low.src_width = mode->crtc_hdisplay; mode 1119 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 1141 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); mode 1180 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_display_mode *mode = NULL; mode 1191 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c mode = &adev->mode_info.crtcs[i]->base.mode; mode 1192 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c lb_size = dce_v11_0_line_buffer_adjust(adev, adev->mode_info.crtcs[i], mode); mode 1246 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_display_mode *mode) mode 1271 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 1593 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_display_mode *mode) mode 1623 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_audio_set_dto(encoder, mode->clock); mode 1706 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_afmt_update_ACR(encoder, mode->clock); mode 1732 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_audio_write_latency_fields(encoder, mode); mode 1734 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c err = drm_hdmi_avi_infoframe_from_display_mode(&frame, connector, mode); mode 2095 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c viewport_w = crtc->mode.hdisplay; mode 2096 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c viewport_h = (crtc->mode.vdisplay + 1) & ~1; mode 2119 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_display_mode *mode) mode 2127 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 2560 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c static void dce_v11_0_crtc_dpms(struct drm_crtc *crtc, int mode) mode 2567 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c switch (mode) { mode 2681 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_display_mode *mode, mode 2712 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c amdgpu_atombios_crtc_overscan_setup(crtc, mode, adjusted_mode); mode 2722 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c const struct drm_display_mode *mode, mode 2742 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (!amdgpu_display_crtc_scaling_mode_fixup(crtc, mode, adjusted_mode)) mode 3430 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_display_mode *mode, mode 3441 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_set_interleave(encoder->crtc, mode); mode 3527 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_display_mode *mode, mode 3539 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c dce_v11_0_ext_dpms(struct drm_encoder *encoder, int mode) mode 823 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_display_mode *mode = &amdgpu_crtc->base.mode; mode 835 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (amdgpu_crtc->base.enabled && num_heads && mode) { mode 836 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c active_time = (u32) div_u64((u64)mode->crtc_hdisplay * 1000000, mode 837 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c (u32)mode->clock); mode 838 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c line_time = (u32) div_u64((u64)mode->crtc_htotal * 1000000, mode 839 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c (u32)mode->clock); mode 857 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c wm_high.disp_clk = mode->clock; mode 858 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c wm_high.src_width = mode->crtc_hdisplay; mode 862 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 884 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c wm_low.disp_clk = mode->clock; mode 885 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c wm_low.src_width = mode->crtc_hdisplay; mode 889 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 925 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c b.full = dfixed_const(mode->clock); mode 937 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c b.full = dfixed_const(mode->clock); mode 948 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); mode 986 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_display_mode *mode, mode 1004 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (amdgpu_crtc->base.enabled && mode) { mode 1029 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (amdgpu_crtc->base.enabled && mode) { mode 1070 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c mode0 = &adev->mode_info.crtcs[i]->base.mode; mode 1071 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c mode1 = &adev->mode_info.crtcs[i+1]->base.mode; mode 1125 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_display_mode *mode) mode 1147 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 1429 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_display_mode *mode) mode 1443 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c err = drm_hdmi_avi_infoframe_from_display_mode(&frame, connector, mode); mode 1628 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_display_mode *mode) mode 1672 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_write_latency_fields(encoder, mode); mode 1674 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_set_dto(encoder, mode->clock); mode 1676 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_set_acr(encoder, mode->clock, bpc); mode 1682 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_audio_set_avi_infoframe(encoder, mode); mode 1987 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c viewport_w = crtc->mode.hdisplay; mode 1988 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c viewport_h = (crtc->mode.vdisplay + 1) & ~1; mode 2013 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_display_mode *mode) mode 2019 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 2373 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c static void dce_v6_0_crtc_dpms(struct drm_crtc *crtc, int mode) mode 2380 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c switch (mode) { mode 2479 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_display_mode *mode, mode 2491 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c amdgpu_atombios_crtc_overscan_setup(crtc, mode, adjusted_mode); mode 2501 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c const struct drm_display_mode *mode, mode 2522 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (!amdgpu_display_crtc_scaling_mode_fixup(crtc, mode, adjusted_mode)) mode 3100 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_display_mode *mode, mode 3113 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_set_interleave(encoder->crtc, mode); mode 3203 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_display_mode *mode, mode 3215 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c dce_v6_0_ext_dpms(struct drm_encoder *encoder, int mode) mode 3221 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c const struct drm_display_mode *mode, mode 527 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_display_mode *mode) mode 539 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (amdgpu_crtc->base.enabled && mode) { mode 540 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (mode->crtc_hdisplay < 1920) { mode 543 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c } else if (mode->crtc_hdisplay < 2560) { mode 546 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c } else if (mode->crtc_hdisplay < 4096) { mode 572 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (amdgpu_crtc->base.enabled && mode) { mode 959 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_display_mode *mode = &amdgpu_crtc->base.mode; mode 966 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (amdgpu_crtc->base.enabled && num_heads && mode) { mode 967 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c active_time = (u32) div_u64((u64)mode->crtc_hdisplay * 1000000, mode 968 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c (u32)mode->clock); mode 969 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c line_time = (u32) div_u64((u64)mode->crtc_htotal * 1000000, mode 970 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c (u32)mode->clock); mode 984 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c wm_high.disp_clk = mode->clock; mode 985 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c wm_high.src_width = mode->crtc_hdisplay; mode 989 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 1023 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c wm_low.disp_clk = mode->clock; mode 1024 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c wm_low.src_width = mode->crtc_hdisplay; mode 1028 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 1050 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); mode 1091 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_display_mode *mode = NULL; mode 1102 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c mode = &adev->mode_info.crtcs[i]->base.mode; mode 1103 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c lb_size = dce_v8_0_line_buffer_adjust(adev, adev->mode_info.crtcs[i], mode); mode 1158 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_display_mode *mode) mode 1184 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) { mode 1498 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_display_mode *mode) mode 1530 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_audio_set_dto(encoder, mode->clock); mode 1600 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_afmt_update_ACR(encoder, mode->clock); mode 1624 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_audio_write_latency_fields(encoder, mode); mode 1626 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c err = drm_hdmi_avi_infoframe_from_display_mode(&frame, connector, mode); mode 1962 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c viewport_w = crtc->mode.hdisplay; mode 1963 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c viewport_h = (crtc->mode.vdisplay + 1) & ~1; mode 1986 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_display_mode *mode) mode 1992 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 2382 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c static void dce_v8_0_crtc_dpms(struct drm_crtc *crtc, int mode) mode 2389 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c switch (mode) { mode 2500 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_display_mode *mode, mode 2512 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c amdgpu_atombios_crtc_overscan_setup(crtc, mode, adjusted_mode); mode 2522 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c const struct drm_display_mode *mode, mode 2542 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (!amdgpu_display_crtc_scaling_mode_fixup(crtc, mode, adjusted_mode)) mode 3192 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_display_mode *mode, mode 3203 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_set_interleave(encoder->crtc, mode); mode 3289 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_display_mode *mode, mode 3301 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c dce_v8_0_ext_dpms(struct drm_encoder *encoder, int mode) mode 128 drivers/gpu/drm/amd/amdgpu/dce_virtual.c static void dce_virtual_crtc_dpms(struct drm_crtc *crtc, int mode) mode 138 drivers/gpu/drm/amd/amdgpu/dce_virtual.c switch (mode) { mode 179 drivers/gpu/drm/amd/amdgpu/dce_virtual.c struct drm_display_mode *mode, mode 192 drivers/gpu/drm/amd/amdgpu/dce_virtual.c const struct drm_display_mode *mode, mode 280 drivers/gpu/drm/amd/amdgpu/dce_virtual.c struct drm_display_mode *mode = NULL; mode 306 drivers/gpu/drm/amd/amdgpu/dce_virtual.c mode = drm_cvt_mode(dev, common_modes[i].w, common_modes[i].h, 60, false, false, false); mode 307 drivers/gpu/drm/amd/amdgpu/dce_virtual.c drm_mode_probed_add(connector, mode); mode 314 drivers/gpu/drm/amd/amdgpu/dce_virtual.c struct drm_display_mode *mode) mode 320 drivers/gpu/drm/amd/amdgpu/dce_virtual.c dce_virtual_dpms(struct drm_connector *connector, int mode) mode 542 drivers/gpu/drm/amd/amdgpu/dce_virtual.c struct drm_display_mode *mode, mode 554 drivers/gpu/drm/amd/amdgpu/dce_virtual.c dce_virtual_encoder_dpms(struct drm_encoder *encoder, int mode) mode 560 drivers/gpu/drm/amd/amdgpu/dce_virtual.c const struct drm_display_mode *mode, mode 6443 drivers/gpu/drm/amd/amdgpu/si_dpm.c static void si_fan_ctrl_set_static_mode(struct amdgpu_device *adev, u32 mode) mode 6461 drivers/gpu/drm/amd/amdgpu/si_dpm.c tmp |= FDO_PWM_MODE(mode); mode 6623 drivers/gpu/drm/amd/amdgpu/si_dpm.c static void si_dpm_set_fan_control_mode(void *handle, u32 mode) mode 6627 drivers/gpu/drm/amd/amdgpu/si_dpm.c if (mode) { mode 6631 drivers/gpu/drm/amd/amdgpu/si_dpm.c si_fan_ctrl_set_static_mode(adev, mode); mode 758 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c sizeof(wac_info.mode) + mode 798 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c wac_info.mode = *((enum HSA_DBG_WAVEMODE *)(&args_buff[args_idx])); mode 799 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c args_idx += sizeof(wac_info.mode); mode 812 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c wac_info.mode, wac_info.trapId, mode 257 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c cntl->bitfields.mode = adw_info->watch_mode[index]; mode 317 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c cntl.bitfields.mode); mode 414 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c cntl.bitfields.mode); mode 499 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c switch (wac_info->mode) { mode 509 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c reg_sq_cmd.bits.mode = SQ_IND_CMD_MODE_SINGLE; mode 524 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c reg_sq_cmd.bits.mode = SQ_IND_CMD_MODE_BROADCAST; mode 532 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c reg_sq_cmd.bits.mode = SQ_IND_CMD_MODE_BROADCAST; mode 609 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c pr_debug("\t\t mode is: %u\n", wac_info->mode); mode 620 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c pr_debug("\t\t mode is : %u\n", reg_sq_cmd.bitfields.mode); mode 727 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c pr_debug("\t\t mode is: %u\n", wac_info->mode); mode 738 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c pr_debug("\t\t mode is : %u\n", reg_sq_cmd.bitfields.mode); mode 774 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c wac_info.mode = HSA_DBG_WAVEMODE_BROADCAST_PROCESS; mode 113 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.h uint32_t mode:3; mode 201 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.h uint32_t mode:2; mode 249 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.h enum HSA_DBG_WAVEMODE mode; mode 955 drivers/gpu/drm/amd/amdkfd/kfd_priv.h enum kfd_unmap_queues_filter mode, mode 985 drivers/gpu/drm/amd/amdkfd/kfd_priv.h enum kfd_unmap_queues_filter mode, mode 319 drivers/gpu/drm/amd/amdkfd/kfd_process.c process->attr_pasid.mode = KFD_SYSFS_FILE_MODE; mode 638 drivers/gpu/drm/amd/amdkfd/kfd_topology.c dev->attr_gpuid.mode = KFD_SYSFS_FILE_MODE; mode 641 drivers/gpu/drm/amd/amdkfd/kfd_topology.c dev->attr_name.mode = KFD_SYSFS_FILE_MODE; mode 644 drivers/gpu/drm/amd/amdkfd/kfd_topology.c dev->attr_props.mode = KFD_SYSFS_FILE_MODE; mode 667 drivers/gpu/drm/amd/amdkfd/kfd_topology.c mem->attr.mode = KFD_SYSFS_FILE_MODE; mode 686 drivers/gpu/drm/amd/amdkfd/kfd_topology.c cache->attr.mode = KFD_SYSFS_FILE_MODE; mode 705 drivers/gpu/drm/amd/amdkfd/kfd_topology.c iolink->attr.mode = KFD_SYSFS_FILE_MODE; mode 791 drivers/gpu/drm/amd/amdkfd/kfd_topology.c sys_props.attr_genid.mode = KFD_SYSFS_FILE_MODE; mode 799 drivers/gpu/drm/amd/amdkfd/kfd_topology.c sys_props.attr_props.mode = KFD_SYSFS_FILE_MODE; mode 479 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_display_mode *mode; mode 492 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c list_for_each_entry(mode, &connector->modes, head) { mode 493 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (max_size < mode->htotal * mode->vtotal) mode 494 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c max_size = mode->htotal * mode->vtotal; mode 3128 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c static void update_stream_scaling_settings(const struct drm_display_mode *mode, mode 3138 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!mode) mode 3142 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c src.width = mode->hdisplay; mode 3143 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c src.height = mode->vdisplay; mode 3555 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_display_mode mode = *drm_mode; mode 3604 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c mode_refresh = drm_mode_vrefresh(&mode); mode 3616 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c &mode, preferred_mode, mode 3622 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c drm_mode_set_crtcinfo(&mode, 0); mode 3630 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c &mode, &aconnector->base, con_state, NULL); mode 3633 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c &mode, &aconnector->base, con_state, old_stream); mode 3655 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c update_stream_scaling_settings(&mode, dm_state, stream); mode 4098 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_display_mode *mode) mode 4108 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if ((mode->flags & DRM_MODE_FLAG_INTERLACE) || mode 4109 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c (mode->flags & DRM_MODE_FLAG_DBLSCAN)) mode 4127 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c stream = create_stream_for_sink(aconnector, mode, NULL, NULL); mode 4139 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c mode->vdisplay, mode 4140 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c mode->hdisplay, mode 4141 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c mode->clock, mode 4403 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c const struct drm_display_mode *mode, mode 4904 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_display_mode *mode = NULL; mode 4907 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c mode = drm_mode_duplicate(dev, native_mode); mode 4909 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (mode == NULL) mode 4912 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c mode->hdisplay = hdisplay; mode 4913 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c mode->vdisplay = vdisplay; mode 4914 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c mode->type &= ~DRM_MODE_TYPE_PREFERRED; mode 4915 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c strscpy(mode->name, name, DRM_DISPLAY_MODE_LEN); mode 4917 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c return mode; mode 4925 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_display_mode *mode = NULL; mode 4972 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c mode = amdgpu_dm_create_common_mode(encoder, mode 4975 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c drm_mode_probed_add(connector, mode); mode 6244 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c acrtc->hw_mode = new_crtc_state->mode; mode 6245 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c crtc->hwmode = new_crtc_state->mode; mode 6321 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c update_stream_scaling_settings(&dm_new_con_state->base.crtc->mode, mode 6584 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_display_mode *mode = &new_crtc_state->base.mode; mode 6585 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c int vrefresh = drm_mode_vrefresh(mode); mode 6667 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c &new_crtc_state->mode, mode 6820 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c &new_crtc_state->mode, dm_new_conn_state, dm_new_crtc_state->stream); mode 377 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h struct drm_display_mode *mode); mode 90 drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.c enum blnd_mode mode) mode 97 drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.c switch (mode) { mode 830 drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.h unsigned int blnd_inst, enum blnd_mode mode); mode 74 drivers/gpu/drm/amd/display/dc/dce/dce_ipp.c int mode; mode 82 drivers/gpu/drm/amd/display/dc/dce/dce_ipp.c mode = 0; mode 85 drivers/gpu/drm/amd/display/dc/dce/dce_ipp.c mode = 1; mode 88 drivers/gpu/drm/amd/display/dc/dce/dce_ipp.c mode = 2; mode 91 drivers/gpu/drm/amd/display/dc/dce/dce_ipp.c mode = 3; mode 95 drivers/gpu/drm/amd/display/dc/dce/dce_ipp.c mode = 0; mode 99 drivers/gpu/drm/amd/display/dc/dce/dce_ipp.c CURSOR_MODE, mode, mode 161 drivers/gpu/drm/amd/display/dc/dce/dce_ipp.c if (params->mode != IPP_PRESCALE_MODE_BYPASS) { mode 221 drivers/gpu/drm/amd/display/dc/dce/dce_ipp.c enum ipp_degamma_mode mode) mode 224 drivers/gpu/drm/amd/display/dc/dce/dce_ipp.c uint32_t degamma_type = (mode == IPP_DEGAMMA_MODE_HW_sRGB) ? 1 : 0; mode 226 drivers/gpu/drm/amd/display/dc/dce/dce_ipp.c ASSERT(mode == IPP_DEGAMMA_MODE_BYPASS || mode == IPP_DEGAMMA_MODE_HW_sRGB); mode 490 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c enum dcp_out_trunc_round_mode mode, mode 525 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c switch (mode) { mode 1317 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c enum opp_regamma mode) mode 1322 drivers/gpu/drm/amd/display/dc/dce/dce_transform.c GRPH_REGAMMA_MODE, mode); mode 515 drivers/gpu/drm/amd/display/dc/dce/dce_transform.h enum opp_regamma mode); mode 246 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c prescale_params->mode = IPP_PRESCALE_MODE_FIXED_UNSIGNED; mode 103 drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_regamma_v.c static void configure_regamma_mode(struct dce_transform *xfm_dce, uint32_t mode) mode 109 drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_regamma_v.c mode, mode 554 drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_regamma_v.c enum opp_regamma mode) mode 713 drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c enum test_pattern_mode mode; mode 757 drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c mode = TEST_PATTERN_MODE_COLORSQUARES_RGB; mode 785 drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c mode, mode 806 drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c mode = (test_pattern == mode 911 drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c mode, mode 933 drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c mode = (bit_depth == mode 1071 drivers/gpu/drm/amd/display/dc/dce110/dce110_timing_generator.c mode, mode 56 drivers/gpu/drm/amd/display/dc/dce110/dce110_transform_v.h enum opp_regamma mode); mode 844 drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c enum test_pattern_mode mode; mode 888 drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c mode = TEST_PATTERN_MODE_COLORSQUARES_RGB; mode 896 drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c CRTC_TEST_PATTERN_MODE, mode, mode 905 drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c mode = (test_pattern == mode 998 drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c CRTC_TEST_PATTERN_MODE, mode, mode 1006 drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c mode = (bit_depth == mode 1074 drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c CRTC_TEST_PATTERN_MODE, mode, mode 219 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c struct dpp *dpp_base, const struct pwl_params *params, enum opp_regamma mode) mode 224 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c switch (mode) { mode 291 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c enum expansion_mode mode, mode 324 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c FORMAT_EXPANSION_MODE, mode, mode 330 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c FORMAT_EXPANSION_MODE, mode, mode 1435 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.h enum ipp_degamma_mode mode); mode 1487 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.h enum expansion_mode mode, mode 613 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_cm.c enum ipp_degamma_mode mode) mode 618 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_cm.c switch (mode) { mode 306 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c s.mode, s.alpha_mode, s.pre_multiplied_alpha, s.overlap_only, mode 402 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer_debug.c s.mode, s.alpha_mode, s.pre_multiplied_alpha, s.overlap_only, mode 441 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.c REG_GET_4(MPCC_CONTROL[mpcc_inst], MPCC_MODE, &s->mode, mode 907 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c enum test_pattern_mode mode; mode 953 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c mode = TEST_PATTERN_MODE_COLORSQUARES_RGB; mode 961 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c OTG_TEST_PATTERN_MODE, mode, mode 970 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c mode = (test_pattern == mode 1061 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c OTG_TEST_PATTERN_MODE, mode, mode 1069 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c mode = (bit_depth == mode 1137 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c OTG_TEST_PATTERN_MODE, mode, mode 98 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.c enum expansion_mode mode, mode 115 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.c FORMAT_EXPANSION_MODE, mode); mode 460 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.c enum opp_regamma mode) mode 654 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.h enum ipp_degamma_mode mode); mode 688 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp.h enum opp_regamma mode); mode 136 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c enum ipp_degamma_mode mode) mode 141 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c switch (mode) { mode 291 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c enum dc_lut_mode mode; mode 300 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c mode = LUT_BYPASS; mode 303 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c mode = LUT_RAM_A; mode 306 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c mode = LUT_RAM_B; mode 309 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c mode = LUT_BYPASS; mode 312 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c return mode; mode 384 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c enum dc_lut_mode mode; mode 393 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c mode = LUT_BYPASS; mode 396 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c mode = LUT_RAM_A; mode 399 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c mode = LUT_RAM_B; mode 402 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c mode = LUT_BYPASS; mode 405 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c return mode; mode 766 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c enum dc_lut_mode mode; mode 775 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c mode = LUT_BYPASS; mode 778 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c mode = LUT_RAM_A; mode 781 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c mode = LUT_RAM_B; mode 784 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c mode = LUT_BYPASS; mode 799 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c return mode; mode 808 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c enum dc_lut_mode mode, mode 815 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c if (mode == LUT_BYPASS) mode 817 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c else if (mode == LUT_RAM_A) mode 829 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c enum dc_lut_mode mode, mode 835 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c CM_3DLUT_RAM_SEL, mode == LUT_RAM_A ? 0 : 1, mode 912 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c enum dc_lut_mode mode; mode 926 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c mode = get3dlut_config(dpp_base, &is_17x17x17, &is_12bits_color_channel); mode 928 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c if (mode == LUT_BYPASS || mode == LUT_RAM_B) mode 929 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c mode = LUT_RAM_A; mode 931 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c mode = LUT_RAM_B; mode 955 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c dpp20_select_3dlut_ram(dpp_base, mode, mode 982 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c dpp20_set_3dlut_mode(dpp_base, mode, is_12bits_color_channel, mode 1973 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c enum dynamic_metadata_mode mode = dc_is_dp_signal(stream->signal) mode 1990 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c hubp->inst, mode); mode 262 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.c enum dc_lut_mode mode; mode 271 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.c mode = LUT_BYPASS; mode 274 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.c mode = LUT_RAM_A; mode 277 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.c mode = LUT_RAM_B; mode 280 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.c mode = LUT_BYPASS; mode 283 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.c return mode; mode 52 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_opp.c enum test_pattern_mode mode; mode 116 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_opp.c mode = (test_pattern == mode 164 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_opp.c DPG_MODE, mode, mode 174 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_opp.c mode = (bit_depth == mode 241 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_opp.c DPG_MODE, mode, mode 2172 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c enum mmhubbub_wbif_mode mode, mode 2182 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c if (mode == PACKED_444) /* packed mode */ mode 2184 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c else if (mode == PLANAR_420_8BPC) mode 2186 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c else if (mode == PLANAR_420_10BPC) /* p010 */ mode 2193 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c max_free_entry = (mode == PACKED_444) ? total_y_free_entry + total_c_free_entry : small_free_entry; mode 50 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.h enum mmhubbub_wbif_mode mode, mode 32 drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c #define table_hash(mode, bpc, max_min) ((mode << 16) | (bpc << 8) | max_min) mode 38 drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c #define TABLE_CASE(mode, bpc, max) case (table_hash(mode, BPC_##bpc, max)): \ mode 39 drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c table = qp_table_##mode##_##bpc##bpc_##max; \ mode 40 drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c table_size = sizeof(qp_table_##mode##_##bpc##bpc_##max)/sizeof(*qp_table_##mode##_##bpc##bpc_##max); \ mode 46 drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c int mode = MODE_SELECT(444, 422, 420); mode 47 drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c int sel = table_hash(mode, bpc, max_min); mode 109 drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c void get_ofs_set(qp_set ofs, enum colour_mode mode, float bpp) mode 113 drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c if (mode == CM_444 || mode == CM_RGB) { mode 129 drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c } else if (mode == CM_422) { mode 104 drivers/gpu/drm/amd/display/dc/dsc/rc_calc_dpi.c enum colour_mode mode = pps->convert_rgb ? CM_RGB : mode 131 drivers/gpu/drm/amd/display/dc/dsc/rc_calc_dpi.c calc_rc_params(&rc, mode, bpc, bpp, slice_width, slice_height, pps->dsc_version_minor); mode 56 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c enum gpio_mode mode) mode 58 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c return dal_gpio_open_ex(gpio, mode); mode 63 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c enum gpio_mode mode) mode 75 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c gpio->mode = mode; mode 107 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c return gpio->mode; mode 124 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c enum gpio_mode mode) mode 131 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c return gpio->pin->funcs->change_mode(gpio->pin, mode); mode 261 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c gpio->mode = GPIO_MODE_UNKNOWN; mode 286 drivers/gpu/drm/amd/display/dc/gpio/gpio_base.c gpio->mode = GPIO_MODE_UNKNOWN; mode 298 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c enum gpio_mode mode = gpio->mode; mode 345 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c if (!(*pin)->funcs->open(*pin, mode)) { mode 539 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c enum gpio_mode mode, mode 548 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c result = dal_gpio_open_ex(ddc->pin_data, mode); mode 555 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c result = dal_gpio_open_ex(ddc->pin_clock, mode); mode 566 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c if (mode == GPIO_MODE_INPUT) mode 598 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c enum gpio_mode mode) mode 605 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c result = dal_gpio_change_mode(ddc->pin_data, mode); mode 615 drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c result = dal_gpio_change_mode(ddc->pin_clock, mode); mode 62 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c enum gpio_mode mode) mode 68 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c ptr->opened = (dal_hw_gpio_config_mode(pin, mode) == GPIO_RESULT_OK); mode 81 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c switch (ptr->mode) { mode 105 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c switch (ptr->mode) { mode 123 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c enum gpio_mode mode) mode 127 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c return dal_hw_gpio_config_mode(pin, mode); mode 137 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c ptr->mode = GPIO_MODE_UNKNOWN; mode 143 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c enum gpio_mode mode) mode 145 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c gpio->base.mode = mode; mode 147 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c switch (mode) { mode 188 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.c pin->base.mode = GPIO_MODE_UNKNOWN; mode 43 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h enum gpio_mode mode; mode 53 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h enum gpio_mode mode); mode 65 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h enum gpio_mode mode); mode 120 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h enum gpio_mode mode); mode 128 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h enum gpio_mode mode); mode 139 drivers/gpu/drm/amd/display/dc/gpio/hw_gpio.h enum gpio_mode mode); mode 92 drivers/gpu/drm/amd/display/dc/gpio/hw_hpd.c if (ptr->mode == GPIO_MODE_INTERRUPT) { mode 174 drivers/gpu/drm/amd/display/dc/inc/dcn_calcs.h int mode; mode 171 drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h enum opp_regamma mode); mode 179 drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h enum ipp_degamma_mode mode); mode 191 drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h enum expansion_mode mode, mode 45 drivers/gpu/drm/amd/display/dc/inc/hw/gpio.h enum gpio_mode mode; mode 52 drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h enum ipp_prescale_mode mode; mode 89 drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h enum expansion_mode mode, mode 105 drivers/gpu/drm/amd/display/dc/inc/hw/ipp.h enum ipp_degamma_mode mode); mode 139 drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h uint32_t mode; mode 238 drivers/gpu/drm/amd/display/dc/inc/hw/transform.h enum opp_regamma mode); mode 242 drivers/gpu/drm/amd/display/dc/inc/hw/transform.h enum ipp_degamma_mode mode); mode 254 drivers/gpu/drm/amd/display/dc/inc/hw/transform.h enum expansion_mode mode, mode 37 drivers/gpu/drm/amd/display/include/gpio_interface.h enum gpio_mode mode); mode 41 drivers/gpu/drm/amd/display/include/gpio_interface.h enum gpio_mode mode); mode 60 drivers/gpu/drm/amd/display/include/gpio_interface.h enum gpio_mode mode); mode 104 drivers/gpu/drm/amd/display/include/gpio_service_interface.h enum gpio_mode mode, mode 109 drivers/gpu/drm/amd/display/include/gpio_service_interface.h enum gpio_mode mode); mode 242 drivers/gpu/drm/amd/include/kgd_pp_interface.h void (*set_fan_control_mode)(void *handle, u32 mode); mode 500 drivers/gpu/drm/amd/powerplay/amd_powerplay.c static void pp_dpm_set_fan_control_mode(void *handle, uint32_t mode) mode 512 drivers/gpu/drm/amd/powerplay/amd_powerplay.c hwmgr->hwmgr_func->set_fan_control_mode(hwmgr, mode); mode 519 drivers/gpu/drm/amd/powerplay/amd_powerplay.c uint32_t mode = 0; mode 529 drivers/gpu/drm/amd/powerplay/amd_powerplay.c mode = hwmgr->hwmgr_func->get_fan_control_mode(hwmgr); mode 531 drivers/gpu/drm/amd/powerplay/amd_powerplay.c return mode; mode 1319 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c static int smu10_asic_reset(struct pp_hwmgr *hwmgr, enum SMU_ASIC_RESET_MODE mode) mode 1323 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c mode); mode 4541 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c static void smu7_set_fan_control_mode(struct pp_hwmgr *hwmgr, uint32_t mode) mode 4543 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c switch (mode) { mode 4553 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c if (!smu7_fan_ctrl_set_static_mode(hwmgr, mode)) mode 5005 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c enum PP_SMC_POWER_PROFILE mode; mode 5010 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c mode = input[size]; mode 5011 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c switch (mode) { mode 5036 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c hwmgr->power_profile_mode = mode; mode 5044 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c if (mode == hwmgr->power_profile_mode) mode 5047 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c memcpy(&tmp, &smu7_profiling[mode], sizeof(struct profile_mode_setting)); mode 5061 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c smu7_patch_compute_profile_mode(hwmgr, mode); mode 5062 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c hwmgr->power_profile_mode = mode; mode 111 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c int smu7_fan_ctrl_set_static_mode(struct pp_hwmgr *hwmgr, uint32_t mode) mode 126 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c CG_FDO_CTRL2, FDO_PWM_MODE, mode); mode 46 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.h extern int smu7_fan_ctrl_set_static_mode(struct pp_hwmgr *hwmgr, uint32_t mode); mode 4059 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c static void vega10_set_fan_control_mode(struct pp_hwmgr *hwmgr, uint32_t mode) mode 4061 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c switch (mode) { mode 128 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c int vega10_fan_ctrl_set_static_mode(struct pp_hwmgr *hwmgr, uint32_t mode) mode 147 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c CG_FDO_CTRL2, FDO_PWM_MODE, mode)); mode 61 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.h uint32_t mode); mode 1615 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c static void vega12_set_fan_control_mode(struct pp_hwmgr *hwmgr, uint32_t mode) mode 1617 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c switch (mode) { mode 2719 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c static void vega20_set_fan_control_mode(struct pp_hwmgr *hwmgr, uint32_t mode) mode 2721 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c switch (mode) { mode 90 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_thermal.c static int vega20_fan_ctrl_set_static_mode(struct pp_hwmgr *hwmgr, uint32_t mode) mode 99 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_thermal.c CG_FDO_CTRL2, FDO_PWM_MODE, mode)); mode 530 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h int (*set_fan_control_mode)(struct smu_context *smu, uint32_t mode); mode 278 drivers/gpu/drm/amd/powerplay/inc/hwmgr.h void (*set_fan_control_mode)(struct pp_hwmgr *hwmgr, uint32_t mode); mode 356 drivers/gpu/drm/amd/powerplay/inc/hwmgr.h int (*asic_reset)(struct pp_hwmgr *hwmgr, enum SMU_ASIC_RESET_MODE mode); mode 566 drivers/gpu/drm/amd/powerplay/inc/smu71_discrete.h uint8_t mode; mode 633 drivers/gpu/drm/amd/powerplay/inc/smu72_discrete.h uint8_t mode; mode 668 drivers/gpu/drm/amd/powerplay/inc/smu73_discrete.h uint8_t mode; mode 633 drivers/gpu/drm/amd/powerplay/inc/smu74_discrete.h uint8_t mode; mode 662 drivers/gpu/drm/amd/powerplay/inc/smu75_discrete.h uint8_t mode; mode 1408 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu_v11_0_set_fan_static_mode(struct smu_context *smu, uint32_t mode) mode 1417 drivers/gpu/drm/amd/powerplay/smu_v11_0.c CG_FDO_CTRL2, FDO_PWM_MODE, mode)); mode 1453 drivers/gpu/drm/amd/powerplay/smu_v11_0.c uint32_t mode) mode 1457 drivers/gpu/drm/amd/powerplay/smu_v11_0.c switch (mode) { mode 61 drivers/gpu/drm/arc/arcpgu_crtc.c const struct drm_display_mode *mode) mode 64 drivers/gpu/drm/arc/arcpgu_crtc.c long rate, clk_rate = mode->clock * 1000; mode 119 drivers/gpu/drm/arc/arcpgu_drv.c unsigned long mode_clock = arcpgu->crtc.mode.crtc_clock * 1000; mode 769 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c struct drm_display_mode *mode, mode 799 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c denominator = mode->hdisplay - 3; mode 802 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c denominator = (mode->htotal - 1) * v_out - 2 * v_in; mode 805 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c return aclk_rate * denominator >= mode->crtc_clock * 1000 * fraction ? mode 1033 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c struct drm_display_mode *mode = &crtc_st->adjusted_mode; mode 1039 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c hactive = mode->crtc_hdisplay; mode 1040 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c hfront_porch = mode->crtc_hsync_start - mode->crtc_hdisplay; mode 1041 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c hsync_len = mode->crtc_hsync_end - mode->crtc_hsync_start; mode 1042 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c hback_porch = mode->crtc_htotal - mode->crtc_hsync_end; mode 1044 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c vactive = mode->crtc_vdisplay; mode 1045 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c vfront_porch = mode->crtc_vsync_start - mode->crtc_vdisplay; mode 1046 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c vsync_len = mode->crtc_vsync_end - mode->crtc_vsync_start; mode 1047 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c vback_porch = mode->crtc_vtotal - mode->crtc_vsync_end; mode 1056 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c value |= mode->flags & DRM_MODE_FLAG_PVSYNC ? BS_SYNC_VSP : 0; mode 1057 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c value |= mode->flags & DRM_MODE_FLAG_PHSYNC ? BS_SYNC_HSP : 0; mode 87 drivers/gpu/drm/arm/display/komeda/komeda_crtc.c struct drm_display_mode *mode = &kcrtc_st->base.adjusted_mode; mode 121 drivers/gpu/drm/arm/display/komeda/komeda_crtc.c err = clk_set_rate(master->pxlclk, mode->crtc_clock * 1000); mode 368 drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h struct drm_display_mode *mode, mode 90 drivers/gpu/drm/arm/display/komeda/komeda_wb_connector.c struct drm_display_mode *mode) mode 94 drivers/gpu/drm/arm/display/komeda/komeda_wb_connector.c int w = mode->hdisplay, h = mode->vdisplay; mode 192 drivers/gpu/drm/arm/hdlcd_crtc.c const struct drm_display_mode *mode) mode 195 drivers/gpu/drm/arm/hdlcd_crtc.c long rate, clk_rate = mode->clock * 1000; mode 215 drivers/gpu/drm/arm/hdlcd_drv.c unsigned long mode_clock = hdlcd->crtc.mode.crtc_clock * 1000; mode 25 drivers/gpu/drm/arm/malidp_crtc.c const struct drm_display_mode *mode) mode 34 drivers/gpu/drm/arm/malidp_crtc.c long rate, req_rate = mode->crtc_clock * 1000; mode 338 drivers/gpu/drm/arm/malidp_hw.c static void malidp500_modeset(struct malidp_hw_device *hwdev, struct videomode *mode) mode 345 drivers/gpu/drm/arm/malidp_hw.c if (mode->flags & DISPLAY_FLAGS_HSYNC_HIGH) mode 347 drivers/gpu/drm/arm/malidp_hw.c if (mode->flags & DISPLAY_FLAGS_VSYNC_HIGH) mode 363 drivers/gpu/drm/arm/malidp_hw.c val = MALIDP_DE_H_FRONTPORCH(mode->hfront_porch) | mode 364 drivers/gpu/drm/arm/malidp_hw.c MALIDP_DE_H_BACKPORCH(mode->hback_porch); mode 367 drivers/gpu/drm/arm/malidp_hw.c val = MALIDP500_DE_V_FRONTPORCH(mode->vfront_porch) | mode 368 drivers/gpu/drm/arm/malidp_hw.c MALIDP_DE_V_BACKPORCH(mode->vback_porch); mode 371 drivers/gpu/drm/arm/malidp_hw.c val = MALIDP_DE_H_SYNCWIDTH(mode->hsync_len) | mode 372 drivers/gpu/drm/arm/malidp_hw.c MALIDP_DE_V_SYNCWIDTH(mode->vsync_len); mode 375 drivers/gpu/drm/arm/malidp_hw.c val = MALIDP_DE_H_ACTIVE(mode->hactive) | MALIDP_DE_V_ACTIVE(mode->vactive); mode 378 drivers/gpu/drm/arm/malidp_hw.c if (mode->flags & DISPLAY_FLAGS_INTERLACED) mode 650 drivers/gpu/drm/arm/malidp_hw.c static void malidp550_modeset(struct malidp_hw_device *hwdev, struct videomode *mode) mode 671 drivers/gpu/drm/arm/malidp_hw.c val = MALIDP_DE_H_FRONTPORCH(mode->hfront_porch) | mode 672 drivers/gpu/drm/arm/malidp_hw.c MALIDP_DE_H_BACKPORCH(mode->hback_porch); mode 675 drivers/gpu/drm/arm/malidp_hw.c val = MALIDP550_DE_V_FRONTPORCH(mode->vfront_porch) | mode 676 drivers/gpu/drm/arm/malidp_hw.c MALIDP_DE_V_BACKPORCH(mode->vback_porch); mode 679 drivers/gpu/drm/arm/malidp_hw.c val = MALIDP_DE_H_SYNCWIDTH(mode->hsync_len) | mode 680 drivers/gpu/drm/arm/malidp_hw.c MALIDP_DE_V_SYNCWIDTH(mode->vsync_len); mode 681 drivers/gpu/drm/arm/malidp_hw.c if (mode->flags & DISPLAY_FLAGS_HSYNC_HIGH) mode 683 drivers/gpu/drm/arm/malidp_hw.c if (mode->flags & DISPLAY_FLAGS_VSYNC_HIGH) mode 687 drivers/gpu/drm/arm/malidp_hw.c val = MALIDP_DE_H_ACTIVE(mode->hactive) | MALIDP_DE_V_ACTIVE(mode->vactive); mode 690 drivers/gpu/drm/arm/malidp_hw.c if (mode->flags & DISPLAY_FLAGS_INTERLACED) mode 44 drivers/gpu/drm/arm/malidp_mw.c struct drm_display_mode *mode) mode 48 drivers/gpu/drm/arm/malidp_mw.c int w = mode->hdisplay, h = mode->vdisplay; mode 138 drivers/gpu/drm/arm/malidp_mw.c if ((fb->width != crtc_state->mode.hdisplay) || mode 139 drivers/gpu/drm/arm/malidp_mw.c (fb->height != crtc_state->mode.vdisplay)) { mode 468 drivers/gpu/drm/arm/malidp_planes.c static u32 malidp_calc_mmu_control_value(enum mmu_prefetch_mode mode, mode 473 drivers/gpu/drm/arm/malidp_planes.c if (mode != MALIDP_PREFETCH_MODE_NONE) { mode 476 drivers/gpu/drm/arm/malidp_planes.c if (mode == MALIDP_PREFETCH_MODE_PARTIAL) { mode 101 drivers/gpu/drm/armada/armada_510.c const struct drm_display_mode *mode, uint32_t *sclk) mode 104 drivers/gpu/drm/armada/armada_510.c unsigned long desired_khz = mode->crtc_clock; mode 142 drivers/gpu/drm/armada/armada_510.c const struct drm_display_mode *mode) mode 173 drivers/gpu/drm/armada/armada_crtc.c const struct drm_display_mode *mode) mode 177 drivers/gpu/drm/armada/armada_crtc.c if (mode->vscan > 1) mode 180 drivers/gpu/drm/armada/armada_crtc.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 183 drivers/gpu/drm/armada/armada_crtc.c if (mode->flags & DRM_MODE_FLAG_HSKEW) mode 188 drivers/gpu/drm/armada/armada_crtc.c mode->flags & DRM_MODE_FLAG_INTERLACE) mode 191 drivers/gpu/drm/armada/armada_crtc.c if (mode->flags & (DRM_MODE_FLAG_BCAST | DRM_MODE_FLAG_PIXMUX | mode 200 drivers/gpu/drm/armada/armada_crtc.c const struct drm_display_mode *mode, struct drm_display_mode *adj) mode 606 drivers/gpu/drm/armada/armada_crtc.c } else if (dcrtc->cursor_x + w > dcrtc->crtc.mode.hdisplay) { mode 609 drivers/gpu/drm/armada/armada_crtc.c w = max_t(int, dcrtc->crtc.mode.hdisplay - dcrtc->cursor_x, 0); mode 619 drivers/gpu/drm/armada/armada_crtc.c } else if (dcrtc->cursor_y + h > dcrtc->crtc.mode.vdisplay) { mode 622 drivers/gpu/drm/armada/armada_crtc.c h = max_t(int, dcrtc->crtc.mode.vdisplay - dcrtc->cursor_y, 0); mode 22 drivers/gpu/drm/armada/armada_fb.c const struct drm_mode_fb_cmd2 *mode, struct armada_gem_object *obj) mode 28 drivers/gpu/drm/armada/armada_fb.c switch (mode->pixel_format) { mode 68 drivers/gpu/drm/armada/armada_fb.c drm_helper_mode_fill_fb_struct(dev, &dfb->fb, mode); mode 88 drivers/gpu/drm/armada/armada_fb.c struct drm_file *dfile, const struct drm_mode_fb_cmd2 *mode) mode 90 drivers/gpu/drm/armada/armada_fb.c const struct drm_format_info *info = drm_get_format_info(dev, mode); mode 96 drivers/gpu/drm/armada/armada_fb.c mode->width, mode->height, mode->pixel_format, mode 97 drivers/gpu/drm/armada/armada_fb.c mode->flags, mode->pitches[0], mode->pitches[1], mode 98 drivers/gpu/drm/armada/armada_fb.c mode->pitches[2]); mode 102 drivers/gpu/drm/armada/armada_fb.c (mode->handles[0] != mode->handles[1] || mode 103 drivers/gpu/drm/armada/armada_fb.c mode->handles[0] != mode->handles[2])) { mode 108 drivers/gpu/drm/armada/armada_fb.c obj = armada_gem_object_lookup(dfile, mode->handles[0]); mode 126 drivers/gpu/drm/armada/armada_fb.c dfb = armada_framebuffer_create(dev, mode, obj); mode 20 drivers/gpu/drm/armada/armada_fb.h struct drm_file *dfile, const struct drm_mode_fb_cmd2 *mode); mode 31 drivers/gpu/drm/armada/armada_fbdev.c struct drm_mode_fb_cmd2 mode; mode 38 drivers/gpu/drm/armada/armada_fbdev.c memset(&mode, 0, sizeof(mode)); mode 39 drivers/gpu/drm/armada/armada_fbdev.c mode.width = sizes->surface_width; mode 40 drivers/gpu/drm/armada/armada_fbdev.c mode.height = sizes->surface_height; mode 41 drivers/gpu/drm/armada/armada_fbdev.c mode.pitches[0] = armada_pitch(mode.width, sizes->surface_bpp); mode 42 drivers/gpu/drm/armada/armada_fbdev.c mode.pixel_format = drm_mode_legacy_fb_format(sizes->surface_bpp, mode 45 drivers/gpu/drm/armada/armada_fbdev.c size = mode.pitches[0] * mode.height; mode 64 drivers/gpu/drm/armada/armada_fbdev.c dfb = armada_framebuffer_create(dev, &mode, obj); mode 160 drivers/gpu/drm/ast/ast_dp501.c void ast_set_dp501_video_output(struct drm_device *dev, u8 mode) mode 163 drivers/gpu/drm/ast/ast_dp501.c ast_write_data(dev, mode); mode 299 drivers/gpu/drm/ast/ast_drv.h void ast_set_dp501_video_output(struct drm_device *dev, u8 mode); mode 85 drivers/gpu/drm/ast/ast_mode.c static bool ast_get_vbios_mode_info(struct drm_crtc *crtc, struct drm_display_mode *mode, mode 114 drivers/gpu/drm/ast/ast_mode.c switch (crtc->mode.crtc_hdisplay) { mode 125 drivers/gpu/drm/ast/ast_mode.c if (crtc->mode.crtc_vdisplay == 800) mode 137 drivers/gpu/drm/ast/ast_mode.c if (crtc->mode.crtc_vdisplay == 900) mode 146 drivers/gpu/drm/ast/ast_mode.c if (crtc->mode.crtc_vdisplay == 1080) mode 155 drivers/gpu/drm/ast/ast_mode.c refresh_rate = drm_mode_vrefresh(mode); mode 162 drivers/gpu/drm/ast/ast_mode.c (((mode->flags & DRM_MODE_FLAG_NVSYNC) && mode 164 drivers/gpu/drm/ast/ast_mode.c ((mode->flags & DRM_MODE_FLAG_PVSYNC) && mode 166 drivers/gpu/drm/ast/ast_mode.c ((mode->flags & DRM_MODE_FLAG_NHSYNC) && mode 168 drivers/gpu/drm/ast/ast_mode.c ((mode->flags & DRM_MODE_FLAG_PHSYNC) && mode 234 drivers/gpu/drm/ast/ast_mode.c static void ast_set_std_reg(struct drm_crtc *crtc, struct drm_display_mode *mode, mode 279 drivers/gpu/drm/ast/ast_mode.c static void ast_set_crtc_reg(struct drm_crtc *crtc, struct drm_display_mode *mode, mode 292 drivers/gpu/drm/ast/ast_mode.c temp = (mode->crtc_htotal >> 3) - 5; mode 297 drivers/gpu/drm/ast/ast_mode.c temp = (mode->crtc_hdisplay >> 3) - 1; mode 302 drivers/gpu/drm/ast/ast_mode.c temp = (mode->crtc_hblank_start >> 3) - 1; mode 307 drivers/gpu/drm/ast/ast_mode.c temp = ((mode->crtc_hblank_end >> 3) - 1) & 0x7f; mode 314 drivers/gpu/drm/ast/ast_mode.c temp = ((mode->crtc_hsync_start-precache) >> 3) - 1; mode 319 drivers/gpu/drm/ast/ast_mode.c temp = (((mode->crtc_hsync_end-precache) >> 3) - 1) & 0x3f; mode 328 drivers/gpu/drm/ast/ast_mode.c temp = (mode->crtc_vtotal) - 2; mode 337 drivers/gpu/drm/ast/ast_mode.c temp = (mode->crtc_vsync_start) - 1; mode 346 drivers/gpu/drm/ast/ast_mode.c temp = (mode->crtc_vsync_end - 1) & 0x3f; mode 353 drivers/gpu/drm/ast/ast_mode.c temp = mode->crtc_vdisplay - 1; mode 362 drivers/gpu/drm/ast/ast_mode.c temp = mode->crtc_vblank_start - 1; mode 371 drivers/gpu/drm/ast/ast_mode.c temp = mode->crtc_vblank_end - 1; mode 400 drivers/gpu/drm/ast/ast_mode.c static void ast_set_dclk_reg(struct drm_device *dev, struct drm_display_mode *mode, mode 418 drivers/gpu/drm/ast/ast_mode.c static void ast_set_ext_reg(struct drm_crtc *crtc, struct drm_display_mode *mode, mode 465 drivers/gpu/drm/ast/ast_mode.c static void ast_set_sync_reg(struct drm_device *dev, struct drm_display_mode *mode, mode 478 drivers/gpu/drm/ast/ast_mode.c static bool ast_set_dac_reg(struct drm_crtc *crtc, struct drm_display_mode *mode, mode 504 drivers/gpu/drm/ast/ast_mode.c static void ast_crtc_dpms(struct drm_crtc *crtc, int mode) mode 511 drivers/gpu/drm/ast/ast_mode.c switch (mode) { mode 569 drivers/gpu/drm/ast/ast_mode.c struct drm_display_mode *mode, mode 583 drivers/gpu/drm/ast/ast_mode.c ret = ast_get_vbios_mode_info(crtc, mode, adjusted_mode, &vbios_mode); mode 705 drivers/gpu/drm/ast/ast_mode.c static void ast_encoder_dpms(struct drm_encoder *encoder, int mode) mode 711 drivers/gpu/drm/ast/ast_mode.c struct drm_display_mode *mode, mode 782 drivers/gpu/drm/ast/ast_mode.c struct drm_display_mode *mode) mode 789 drivers/gpu/drm/ast/ast_mode.c if ((mode->hdisplay == 1680) && (mode->vdisplay == 1050)) mode 791 drivers/gpu/drm/ast/ast_mode.c if ((mode->hdisplay == 1280) && (mode->vdisplay == 800)) mode 793 drivers/gpu/drm/ast/ast_mode.c if ((mode->hdisplay == 1440) && (mode->vdisplay == 900)) mode 795 drivers/gpu/drm/ast/ast_mode.c if ((mode->hdisplay == 1360) && (mode->vdisplay == 768)) mode 797 drivers/gpu/drm/ast/ast_mode.c if ((mode->hdisplay == 1600) && (mode->vdisplay == 900)) mode 803 drivers/gpu/drm/ast/ast_mode.c if ((mode->hdisplay == 1920) && (mode->vdisplay == 1080)) mode 806 drivers/gpu/drm/ast/ast_mode.c if ((mode->hdisplay == 1920) && (mode->vdisplay == 1200)) { mode 815 drivers/gpu/drm/ast/ast_mode.c switch (mode->hdisplay) { mode 817 drivers/gpu/drm/ast/ast_mode.c if (mode->vdisplay == 480) flags = MODE_OK; mode 820 drivers/gpu/drm/ast/ast_mode.c if (mode->vdisplay == 600) flags = MODE_OK; mode 823 drivers/gpu/drm/ast/ast_mode.c if (mode->vdisplay == 768) flags = MODE_OK; mode 826 drivers/gpu/drm/ast/ast_mode.c if (mode->vdisplay == 1024) flags = MODE_OK; mode 829 drivers/gpu/drm/ast/ast_mode.c if (mode->vdisplay == 1200) flags = MODE_OK; mode 160 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c const struct drm_display_mode *mode) mode 164 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c return atmel_hlcdc_dc_mode_valid(crtc->dc, mode); mode 496 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c const struct drm_display_mode *mode) mode 498 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c int vfront_porch = mode->vsync_start - mode->vdisplay; mode 499 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c int vback_porch = mode->vtotal - mode->vsync_end; mode 500 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c int vsync_len = mode->vsync_end - mode->vsync_start; mode 501 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c int hfront_porch = mode->hsync_start - mode->hdisplay; mode 502 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c int hback_porch = mode->htotal - mode->hsync_end; mode 503 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c int hsync_len = mode->hsync_end - mode->hsync_start; mode 513 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c mode->hdisplay < 1) mode 518 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c mode->vdisplay < 1) mode 408 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h const struct drm_display_mode *mode); mode 126 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c static int atmel_hlcdc_format_to_plane_mode(u32 format, u32 *mode) mode 130 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_C8_MODE; mode 133 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_XRGB4444_MODE; mode 136 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_ARGB4444_MODE; mode 139 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_RGBA4444_MODE; mode 142 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_RGB565_MODE; mode 145 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_RGB888_MODE; mode 148 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_ARGB1555_MODE; mode 151 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_XRGB8888_MODE; mode 154 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_ARGB8888_MODE; mode 157 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_RGBA8888_MODE; mode 160 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_AYUV_MODE; mode 163 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_YUYV_MODE; mode 166 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_UYVY_MODE; mode 169 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_YVYU_MODE; mode 172 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_VYUY_MODE; mode 175 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_NV21_MODE; mode 178 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_NV61_MODE; mode 181 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_YUV420_MODE; mode 184 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c *mode = ATMEL_HLCDC_YUV422_MODE; mode 602 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c const struct drm_display_mode *mode; mode 612 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c mode = &crtc_state->adjusted_mode; mode 703 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c (mode->hdisplay != state->crtc_w || mode 704 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c mode->vdisplay != state->crtc_h)) mode 83 drivers/gpu/drm/bochs/bochs.h struct drm_display_mode *mode); mode 206 drivers/gpu/drm/bochs/bochs_hw.c struct drm_display_mode *mode) mode 208 drivers/gpu/drm/bochs/bochs_hw.c bochs->xres = mode->hdisplay; mode 209 drivers/gpu/drm/bochs/bochs_hw.c bochs->yres = mode->vdisplay; mode 211 drivers/gpu/drm/bochs/bochs_hw.c bochs->stride = mode->hdisplay * (bochs->bpp / 8); mode 52 drivers/gpu/drm/bochs/bochs_kms.c bochs_hw_setmode(bochs, &crtc_state->mode); mode 118 drivers/gpu/drm/bochs/bochs_kms.c struct drm_display_mode *mode) mode 122 drivers/gpu/drm/bochs/bochs_kms.c unsigned long size = mode->hdisplay * mode->vdisplay * 4; mode 399 drivers/gpu/drm/bridge/adv7511/adv7511.h void adv7533_mode_set(struct adv7511 *adv, const struct drm_display_mode *mode); mode 415 drivers/gpu/drm/bridge/adv7511/adv7511.h const struct drm_display_mode *mode) mode 209 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c unsigned int mode; mode 238 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c mode = ADV7511_HDMI_CFG_MODE_HDMI; mode 255 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c mode = ADV7511_HDMI_CFG_MODE_DVI; mode 270 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c ADV7511_HDMI_CFG_MODE_MASK, mode); mode 670 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c struct drm_display_mode *mode) mode 672 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c if (mode->clock > 165000) mode 679 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c const struct drm_display_mode *mode, mode 750 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c if (drm_mode_vrefresh(mode) <= 24) mode 752 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c else if (drm_mode_vrefresh(mode) <= 25) mode 754 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c else if (drm_mode_vrefresh(mode) <= 30) mode 774 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c adv7511->f_tmds = mode->clock; mode 792 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c struct drm_display_mode *mode) mode 796 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c return adv7511_mode_valid(adv, mode); mode 842 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c const struct drm_display_mode *mode, mode 847 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c adv7511_mode_set(adv, mode, adj_mode); mode 30 drivers/gpu/drm/bridge/adv7511/adv7533.c struct drm_display_mode *mode = &adv->curr_mode; mode 34 drivers/gpu/drm/bridge/adv7511/adv7533.c hsw = mode->hsync_end - mode->hsync_start; mode 35 drivers/gpu/drm/bridge/adv7511/adv7533.c hfp = mode->hsync_start - mode->hdisplay; mode 36 drivers/gpu/drm/bridge/adv7511/adv7533.c hbp = mode->htotal - mode->hsync_end; mode 37 drivers/gpu/drm/bridge/adv7511/adv7533.c vsw = mode->vsync_end - mode->vsync_start; mode 38 drivers/gpu/drm/bridge/adv7511/adv7533.c vfp = mode->vsync_start - mode->vdisplay; mode 39 drivers/gpu/drm/bridge/adv7511/adv7533.c vbp = mode->vtotal - mode->vsync_end; mode 46 drivers/gpu/drm/bridge/adv7511/adv7533.c regmap_write(adv->regmap_cec, 0x28, mode->htotal >> 4); mode 47 drivers/gpu/drm/bridge/adv7511/adv7533.c regmap_write(adv->regmap_cec, 0x29, (mode->htotal << 4) & 0xff); mode 56 drivers/gpu/drm/bridge/adv7511/adv7533.c regmap_write(adv->regmap_cec, 0x30, mode->vtotal >> 4); mode 57 drivers/gpu/drm/bridge/adv7511/adv7533.c regmap_write(adv->regmap_cec, 0x31, (mode->vtotal << 4) & 0xff); mode 103 drivers/gpu/drm/bridge/adv7511/adv7533.c void adv7533_mode_set(struct adv7511 *adv, const struct drm_display_mode *mode) mode 111 drivers/gpu/drm/bridge/adv7511/adv7533.c if (mode->clock > 80000) mode 1055 drivers/gpu/drm/bridge/analogix-anx78xx.c const struct drm_display_mode *mode) mode 1057 drivers/gpu/drm/bridge/analogix-anx78xx.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 1061 drivers/gpu/drm/bridge/analogix-anx78xx.c if (mode->clock > 154000) mode 1077 drivers/gpu/drm/bridge/analogix-anx78xx.c const struct drm_display_mode *mode, mode 1489 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c const struct drm_display_mode *mode) mode 1498 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c video->interlaced = !!(mode->flags & DRM_MODE_FLAG_INTERLACE); mode 1499 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c video->v_sync_polarity = !!(mode->flags & DRM_MODE_FLAG_NVSYNC); mode 1500 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c video->h_sync_polarity = !!(mode->flags & DRM_MODE_FLAG_NHSYNC); mode 1503 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c vic = drm_match_cea_mode(mode); mode 484 drivers/gpu/drm/bridge/cdns-dsi.c static unsigned int mode_to_dpi_hfp(const struct drm_display_mode *mode, mode 488 drivers/gpu/drm/bridge/cdns-dsi.c return mode->hsync_start - mode->hdisplay; mode 490 drivers/gpu/drm/bridge/cdns-dsi.c return mode->crtc_hsync_start - mode->crtc_hdisplay; mode 508 drivers/gpu/drm/bridge/cdns-dsi.c const struct drm_display_mode *mode, mode 526 drivers/gpu/drm/bridge/cdns-dsi.c tmp = mode->htotal - mode 527 drivers/gpu/drm/bridge/cdns-dsi.c (sync_pulse ? mode->hsync_end : mode->hsync_start); mode 529 drivers/gpu/drm/bridge/cdns-dsi.c tmp = mode->crtc_htotal - mode 531 drivers/gpu/drm/bridge/cdns-dsi.c mode->crtc_hsync_end : mode->crtc_hsync_start); mode 537 drivers/gpu/drm/bridge/cdns-dsi.c tmp = mode->hsync_end - mode->hsync_start; mode 539 drivers/gpu/drm/bridge/cdns-dsi.c tmp = mode->crtc_hsync_end - mode->crtc_hsync_start; mode 546 drivers/gpu/drm/bridge/cdns-dsi.c mode->hdisplay : mode->crtc_hdisplay, mode 548 drivers/gpu/drm/bridge/cdns-dsi.c dsi_cfg->hfp = dpi_to_dsi_timing(mode_to_dpi_hfp(mode, mode_valid_check), mode 557 drivers/gpu/drm/bridge/cdns-dsi.c const struct drm_display_mode *mode, mode 585 drivers/gpu/drm/bridge/cdns-dsi.c dpi_hz = (mode_valid_check ? mode->clock : mode->crtc_clock) * 1000; mode 589 drivers/gpu/drm/bridge/cdns-dsi.c dpi_htotal = mode_valid_check ? mode->htotal : mode->crtc_htotal; mode 604 drivers/gpu/drm/bridge/cdns-dsi.c const struct drm_display_mode *mode, mode 614 drivers/gpu/drm/bridge/cdns-dsi.c ret = cdns_dsi_mode2cfg(dsi, mode, dsi_cfg, mode_valid_check); mode 618 drivers/gpu/drm/bridge/cdns-dsi.c phy_mipi_dphy_get_default_config(mode->crtc_clock * 1000, mode 622 drivers/gpu/drm/bridge/cdns-dsi.c ret = cdns_dsi_adjust_phy_config(dsi, dsi_cfg, phy_cfg, mode, mode_valid_check); mode 640 drivers/gpu/drm/bridge/cdns-dsi.c mode_to_dpi_hfp(mode, mode_valid_check) * nlanes < mode 642 drivers/gpu/drm/bridge/cdns-dsi.c (mode_valid_check ? mode->clock : mode->crtc_clock) * 1000) mode 665 drivers/gpu/drm/bridge/cdns-dsi.c const struct drm_display_mode *mode) mode 677 drivers/gpu/drm/bridge/cdns-dsi.c if (mode->vtotal - mode->vsync_end < 2) mode 681 drivers/gpu/drm/bridge/cdns-dsi.c if (mode->vsync_end - mode->vsync_start < 2) mode 686 drivers/gpu/drm/bridge/cdns-dsi.c if ((mode->hdisplay * bpp) % 32) mode 689 drivers/gpu/drm/bridge/cdns-dsi.c ret = cdns_dsi_check_conf(dsi, mode, &dsi_cfg, true); mode 783 drivers/gpu/drm/bridge/cdns-dsi.c struct drm_display_mode *mode; mode 793 drivers/gpu/drm/bridge/cdns-dsi.c mode = &bridge->encoder->crtc->state->adjusted_mode; mode 797 drivers/gpu/drm/bridge/cdns-dsi.c WARN_ON_ONCE(cdns_dsi_check_conf(dsi, mode, &dsi_cfg, false)); mode 807 drivers/gpu/drm/bridge/cdns-dsi.c writel(VBP_LEN(mode->crtc_vtotal - mode->crtc_vsync_end - 1) | mode 808 drivers/gpu/drm/bridge/cdns-dsi.c VFP_LEN(mode->crtc_vsync_start - mode->crtc_vdisplay) | mode 809 drivers/gpu/drm/bridge/cdns-dsi.c VSA_LEN(mode->crtc_vsync_end - mode->crtc_vsync_start + 1), mode 811 drivers/gpu/drm/bridge/cdns-dsi.c writel(mode->crtc_vdisplay, dsi->regs + VID_VSIZE2); mode 845 drivers/gpu/drm/bridge/cdns-dsi.c tmp = NSEC_PER_SEC / drm_mode_vrefresh(mode); mode 154 drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c struct drm_connector *connector, struct drm_display_mode *mode) mode 309 drivers/gpu/drm/bridge/sii902x.c struct drm_display_mode *mode) mode 350 drivers/gpu/drm/bridge/sii902x.c const struct drm_display_mode *mode, mode 885 drivers/gpu/drm/bridge/sii9234.c const struct drm_display_mode *mode) mode 887 drivers/gpu/drm/bridge/sii9234.c if (mode->clock > MHL1_MAX_CLK) mode 74 drivers/gpu/drm/bridge/sil-sii8620.c enum sii8620_mode mode; mode 263 drivers/gpu/drm/bridge/sil-sii8620.c return ctx->mode >= CM_MHL3; mode 314 drivers/gpu/drm/bridge/sil-sii8620.c if (ctx->mode >= CM_MHL1) mode 970 drivers/gpu/drm/bridge/sil-sii8620.c if (ctx->mode != CM_MHL1) { mode 1096 drivers/gpu/drm/bridge/sil-sii8620.c struct drm_display_mode *mode) mode 1104 drivers/gpu/drm/bridge/sil-sii8620.c NULL, mode); mode 1143 drivers/gpu/drm/bridge/sil-sii8620.c struct drm_display_mode *mode = mode 1188 drivers/gpu/drm/bridge/sil-sii8620.c int clk = mode->clock * (ctx->use_packed_pixel ? 2 : 3); mode 1217 drivers/gpu/drm/bridge/sil-sii8620.c sii8620_set_infoframes(ctx, mode); mode 1431 drivers/gpu/drm/bridge/sil-sii8620.c static void sii8620_set_mode(struct sii8620 *ctx, enum sii8620_mode mode) mode 1435 drivers/gpu/drm/bridge/sil-sii8620.c if (ctx->mode == mode) mode 1438 drivers/gpu/drm/bridge/sil-sii8620.c switch (mode) { mode 1447 drivers/gpu/drm/bridge/sil-sii8620.c ctx->mode = mode; mode 1451 drivers/gpu/drm/bridge/sil-sii8620.c ctx->mode = mode; mode 1486 drivers/gpu/drm/bridge/sil-sii8620.c ctx->mode = mode; mode 1489 drivers/gpu/drm/bridge/sil-sii8620.c dev_err(ctx->dev, "%s mode %d not supported\n", __func__, mode); mode 1495 drivers/gpu/drm/bridge/sil-sii8620.c if (mode != CM_MHL1) mode 1670 drivers/gpu/drm/bridge/sil-sii8620.c enum sii8620_mode mode; mode 1672 drivers/gpu/drm/bridge/sil-sii8620.c mode = ctx->stat[MHL_DST_VERSION] >= 0x30 ? CM_MHL3 : CM_MHL1; mode 1673 drivers/gpu/drm/bridge/sil-sii8620.c if (mode > ctx->mode) mode 1674 drivers/gpu/drm/bridge/sil-sii8620.c sii8620_set_mode(ctx, mode); mode 1783 drivers/gpu/drm/bridge/sil-sii8620.c switch (ctx->mode) { mode 1960 drivers/gpu/drm/bridge/sil-sii8620.c ctx->mode = CM_ECBUS_S; mode 2220 drivers/gpu/drm/bridge/sil-sii8620.c const struct drm_display_mode *mode) mode 2232 drivers/gpu/drm/bridge/sil-sii8620.c if (mode->clock < max_pclk) mode 2234 drivers/gpu/drm/bridge/sil-sii8620.c else if (mode->clock < max_pclk_pp_mode) mode 2241 drivers/gpu/drm/bridge/sil-sii8620.c const struct drm_display_mode *mode) mode 2244 drivers/gpu/drm/bridge/sil-sii8620.c int pack_required = sii8620_is_packing_required(ctx, mode); mode 2259 drivers/gpu/drm/bridge/sil-sii8620.c const struct drm_display_mode *mode, mode 1463 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c struct drm_display_mode *mode) mode 1560 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c static void hdmi_config_AVI(struct dw_hdmi *hdmi, struct drm_display_mode *mode) mode 1567 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c &hdmi->connector, mode); mode 1678 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c struct drm_display_mode *mode) mode 1686 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c mode); mode 1732 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c const struct drm_display_mode *mode) mode 1740 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c vmode->mtmdsclock = vmode->mpixelclock = mode->clock * 1000; mode 1755 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c inv_val |= mode->flags & DRM_MODE_FLAG_PVSYNC ? mode 1759 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c inv_val |= mode->flags & DRM_MODE_FLAG_PHSYNC ? mode 1770 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c inv_val |= mode->flags & DRM_MODE_FLAG_INTERLACE ? mode 1774 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c inv_val |= mode->flags & DRM_MODE_FLAG_INTERLACE ? mode 1784 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c hdisplay = mode->hdisplay; mode 1785 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c hblank = mode->htotal - mode->hdisplay; mode 1786 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c h_de_hs = mode->hsync_start - mode->hdisplay; mode 1787 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c hsync_len = mode->hsync_end - mode->hsync_start; mode 1800 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c vdisplay = mode->vdisplay; mode 1801 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c vblank = mode->vtotal - mode->vdisplay; mode 1802 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c v_de_vs = mode->vsync_start - mode->vdisplay; mode 1803 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c vsync_len = mode->vsync_end - mode->vsync_start; mode 1809 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) { mode 1979 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c static int dw_hdmi_setup(struct dw_hdmi *hdmi, struct drm_display_mode *mode) mode 1985 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c hdmi->vic = drm_match_cea_mode(mode); mode 2026 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c hdmi_av_composer(hdmi, mode); mode 2050 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c hdmi_config_AVI(hdmi, mode); mode 2051 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c hdmi_config_vendor_specific_infoframe(hdmi, mode); mode 2289 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c const struct drm_display_mode *mode) mode 2296 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c if (mode->flags & DRM_MODE_FLAG_DBLCLK) mode 2300 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c mode_status = hdmi->plat_data->mode_valid(connector, mode); mode 2307 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c const struct drm_display_mode *mode) mode 2314 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c memcpy(&hdmi->previous_mode, mode, sizeof(hdmi->previous_mode)); mode 264 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c static void dw_mipi_dsi_wait_for_two_frames(const struct drm_display_mode *mode) mode 268 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c refresh = drm_mode_vrefresh(mode); mode 587 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c const struct drm_display_mode *mode) mode 606 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 608 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 630 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c const struct drm_display_mode *mode) mode 642 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c VID_PKT_SIZE(mode->hdisplay / 2) : mode 643 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c VID_PKT_SIZE(mode->hdisplay)); mode 665 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c const struct drm_display_mode *mode, mode 672 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c frac = lbcc % mode->clock; mode 673 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c lbcc = lbcc / mode->clock; mode 681 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c const struct drm_display_mode *mode) mode 685 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c htotal = mode->htotal; mode 686 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c hsa = mode->hsync_end - mode->hsync_start; mode 687 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c hbp = mode->htotal - mode->hsync_end; mode 693 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c lbcc = dw_mipi_dsi_get_hcomponent_lbcc(dsi, mode, htotal); mode 696 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c lbcc = dw_mipi_dsi_get_hcomponent_lbcc(dsi, mode, hsa); mode 699 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c lbcc = dw_mipi_dsi_get_hcomponent_lbcc(dsi, mode, hbp); mode 704 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c const struct drm_display_mode *mode) mode 708 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c vactive = mode->vdisplay; mode 709 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c vsa = mode->vsync_end - mode->vsync_start; mode 710 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c vfp = mode->vsync_start - mode->vdisplay; mode 711 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c vbp = mode->vtotal - mode->vsync_end; mode 888 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c const struct drm_display_mode *mode, mode 914 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c const struct drm_display_mode *mode) mode 921 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c mode_status = pdata->mode_valid(pdata->priv_data, mode); mode 252 drivers/gpu/drm/bridge/tc358767.c struct drm_display_mode mode; mode 718 drivers/gpu/drm/bridge/tc358767.c const struct drm_display_mode *mode) mode 724 drivers/gpu/drm/bridge/tc358767.c int left_margin = mode->htotal - mode->hsync_end; mode 725 drivers/gpu/drm/bridge/tc358767.c int right_margin = mode->hsync_start - mode->hdisplay; mode 726 drivers/gpu/drm/bridge/tc358767.c int hsync_len = mode->hsync_end - mode->hsync_start; mode 727 drivers/gpu/drm/bridge/tc358767.c int upper_margin = mode->vtotal - mode->vsync_end; mode 728 drivers/gpu/drm/bridge/tc358767.c int lower_margin = mode->vsync_start - mode->vdisplay; mode 729 drivers/gpu/drm/bridge/tc358767.c int vsync_len = mode->vsync_end - mode->vsync_start; mode 741 drivers/gpu/drm/bridge/tc358767.c in_bw = mode->clock * bits_per_pixel / 8; mode 746 drivers/gpu/drm/bridge/tc358767.c mode->hdisplay, mode->vdisplay); mode 751 drivers/gpu/drm/bridge/tc358767.c dev_dbg(tc->dev, "total: %dx%d\n", mode->htotal, mode->vtotal); mode 773 drivers/gpu/drm/bridge/tc358767.c FIELD_PREP(HDISPR, ALIGN(mode->hdisplay, 2)) | mode 786 drivers/gpu/drm/bridge/tc358767.c FIELD_PREP(VDISPR, mode->vdisplay)); mode 805 drivers/gpu/drm/bridge/tc358767.c vid_sync_dly = hsync_len + left_margin + mode->hdisplay; mode 811 drivers/gpu/drm/bridge/tc358767.c FIELD_PREP(H_TOTAL, mode->htotal) | mode 812 drivers/gpu/drm/bridge/tc358767.c FIELD_PREP(V_TOTAL, mode->vtotal)); mode 823 drivers/gpu/drm/bridge/tc358767.c FIELD_PREP(V_ACT, mode->vdisplay) | mode 824 drivers/gpu/drm/bridge/tc358767.c FIELD_PREP(H_ACT, mode->hdisplay)); mode 831 drivers/gpu/drm/bridge/tc358767.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 834 drivers/gpu/drm/bridge/tc358767.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 1158 drivers/gpu/drm/bridge/tc358767.c 1000 * tc->mode.clock); mode 1163 drivers/gpu/drm/bridge/tc358767.c ret = tc_set_video_mode(tc, &tc->mode); mode 1276 drivers/gpu/drm/bridge/tc358767.c const struct drm_display_mode *mode, mode 1280 drivers/gpu/drm/bridge/tc358767.c adj->flags = mode->flags; mode 1288 drivers/gpu/drm/bridge/tc358767.c const struct drm_display_mode *mode) mode 1295 drivers/gpu/drm/bridge/tc358767.c if (mode->clock > 154000) mode 1298 drivers/gpu/drm/bridge/tc358767.c req = mode->clock * bits_per_pixel / 8; mode 1308 drivers/gpu/drm/bridge/tc358767.c const struct drm_display_mode *mode, mode 1313 drivers/gpu/drm/bridge/tc358767.c tc->mode = *mode; mode 53 drivers/gpu/drm/bridge/thc63lvd1024.c const struct drm_display_mode *mode) mode 73 drivers/gpu/drm/bridge/thc63lvd1024.c if (mode->clock < min_freq) mode 76 drivers/gpu/drm/bridge/thc63lvd1024.c if (mode->clock > max_freq) mode 213 drivers/gpu/drm/bridge/ti-sn65dsi86.c struct drm_display_mode *mode) mode 216 drivers/gpu/drm/bridge/ti-sn65dsi86.c if (mode->clock > 594000) mode 364 drivers/gpu/drm/bridge/ti-sn65dsi86.c struct drm_display_mode *mode = mode 367 drivers/gpu/drm/bridge/ti-sn65dsi86.c bit_rate_khz = mode->clock * mode 432 drivers/gpu/drm/bridge/ti-sn65dsi86.c struct drm_display_mode *mode = mode 436 drivers/gpu/drm/bridge/ti-sn65dsi86.c bit_rate_mhz = (mode->clock / 1000) * mode 458 drivers/gpu/drm/bridge/ti-sn65dsi86.c struct drm_display_mode *mode = mode 462 drivers/gpu/drm/bridge/ti-sn65dsi86.c if (mode->flags & DRM_MODE_FLAG_PHSYNC) mode 464 drivers/gpu/drm/bridge/ti-sn65dsi86.c if (mode->flags & DRM_MODE_FLAG_PVSYNC) mode 468 drivers/gpu/drm/bridge/ti-sn65dsi86.c mode->hdisplay); mode 470 drivers/gpu/drm/bridge/ti-sn65dsi86.c mode->vdisplay); mode 472 drivers/gpu/drm/bridge/ti-sn65dsi86.c (mode->hsync_end - mode->hsync_start) & 0xFF); mode 474 drivers/gpu/drm/bridge/ti-sn65dsi86.c (((mode->hsync_end - mode->hsync_start) >> 8) & 0x7F) | mode 477 drivers/gpu/drm/bridge/ti-sn65dsi86.c (mode->vsync_end - mode->vsync_start) & 0xFF); mode 479 drivers/gpu/drm/bridge/ti-sn65dsi86.c (((mode->vsync_end - mode->vsync_start) >> 8) & 0x7F) | mode 483 drivers/gpu/drm/bridge/ti-sn65dsi86.c (mode->htotal - mode->hsync_end) & 0xFF); mode 485 drivers/gpu/drm/bridge/ti-sn65dsi86.c (mode->vtotal - mode->vsync_end) & 0xFF); mode 488 drivers/gpu/drm/bridge/ti-sn65dsi86.c (mode->hsync_start - mode->hdisplay) & 0xFF); mode 490 drivers/gpu/drm/bridge/ti-sn65dsi86.c (mode->vsync_start - mode->vdisplay) & 0xFF); mode 175 drivers/gpu/drm/cirrus/cirrus.c struct drm_display_mode *mode, mode 183 drivers/gpu/drm/cirrus/cirrus.c htotal = mode->htotal / 8; mode 184 drivers/gpu/drm/cirrus/cirrus.c hsyncend = mode->hsync_end / 8; mode 185 drivers/gpu/drm/cirrus/cirrus.c hsyncstart = mode->hsync_start / 8; mode 186 drivers/gpu/drm/cirrus/cirrus.c hdispend = mode->hdisplay / 8; mode 188 drivers/gpu/drm/cirrus/cirrus.c vtotal = mode->vtotal; mode 189 drivers/gpu/drm/cirrus/cirrus.c vdispend = mode->vdisplay; mode 394 drivers/gpu/drm/cirrus/cirrus.c const struct drm_display_mode *mode) mode 396 drivers/gpu/drm/cirrus/cirrus.c if (cirrus_check_size(mode->hdisplay, mode->vdisplay, NULL) < 0) mode 418 drivers/gpu/drm/cirrus/cirrus.c cirrus_mode_set(cirrus, &crtc_state->mode, plane_state->fb); mode 432 drivers/gpu/drm/cirrus/cirrus.c cirrus_mode_set(cirrus, &crtc->mode, mode 70 drivers/gpu/drm/drm_agpsupport.c info->mode = kern->mode; mode 170 drivers/gpu/drm/drm_agpsupport.c int drm_agp_enable(struct drm_device *dev, struct drm_agp_mode mode) mode 175 drivers/gpu/drm/drm_agpsupport.c dev->agp->mode = mode.mode; mode 176 drivers/gpu/drm/drm_agpsupport.c agp_enable(dev->agp->bridge, mode.mode); mode 185 drivers/gpu/drm/drm_agpsupport.c struct drm_agp_mode *mode = data; mode 187 drivers/gpu/drm/drm_agpsupport.c return drm_agp_enable(dev, *mode); mode 396 drivers/gpu/drm/drm_atomic.c drm_printf(p, "\tmode: " DRM_MODE_FMT "\n", DRM_MODE_ARG(&state->mode)); mode 1368 drivers/gpu/drm/drm_atomic.c if (!set->mode) { mode 1390 drivers/gpu/drm/drm_atomic.c ret = drm_atomic_set_mode_for_crtc(crtc_state, set->mode); mode 1400 drivers/gpu/drm/drm_atomic.c drm_mode_get_hv_timing(set->mode, &hdisplay, &vdisplay); mode 426 drivers/gpu/drm/drm_atomic_helper.c drm_mode_copy(&new_crtc_state->adjusted_mode, &new_crtc_state->mode); mode 448 drivers/gpu/drm/drm_atomic_helper.c ret = drm_bridge_mode_fixup(encoder->bridge, &new_crtc_state->mode, mode 464 drivers/gpu/drm/drm_atomic_helper.c ret = funcs->mode_fixup(encoder, &new_crtc_state->mode, mode 488 drivers/gpu/drm/drm_atomic_helper.c ret = funcs->mode_fixup(crtc, &new_crtc_state->mode, mode 503 drivers/gpu/drm/drm_atomic_helper.c const struct drm_display_mode *mode) mode 507 drivers/gpu/drm/drm_atomic_helper.c ret = drm_encoder_mode_valid(encoder, mode); mode 514 drivers/gpu/drm/drm_atomic_helper.c ret = drm_bridge_mode_valid(encoder->bridge, mode); mode 520 drivers/gpu/drm/drm_atomic_helper.c ret = drm_crtc_mode_valid(crtc, mode); mode 542 drivers/gpu/drm/drm_atomic_helper.c const struct drm_display_mode *mode; mode 553 drivers/gpu/drm/drm_atomic_helper.c mode = &crtc_state->mode; mode 555 drivers/gpu/drm/drm_atomic_helper.c mode_status = mode_valid_path(connector, encoder, crtc, mode); mode 623 drivers/gpu/drm/drm_atomic_helper.c if (!drm_mode_equal(&old_crtc_state->mode, &new_crtc_state->mode)) { mode 815 drivers/gpu/drm/drm_atomic_helper.c drm_mode_get_hv_timing(&crtc_state->mode, &clip.x2, &clip.y2); mode 1128 drivers/gpu/drm/drm_atomic_helper.c int mode = DRM_MODE_DPMS_OFF; mode 1131 drivers/gpu/drm/drm_atomic_helper.c mode = DRM_MODE_DPMS_ON; mode 1133 drivers/gpu/drm/drm_atomic_helper.c connector->dpms = mode; mode 1154 drivers/gpu/drm/drm_atomic_helper.c crtc->mode = new_crtc_state->mode; mode 1200 drivers/gpu/drm/drm_atomic_helper.c struct drm_display_mode *mode, *adjusted_mode; mode 1208 drivers/gpu/drm/drm_atomic_helper.c mode = &new_crtc_state->mode; mode 1225 drivers/gpu/drm/drm_atomic_helper.c funcs->mode_set(encoder, mode, adjusted_mode); mode 1228 drivers/gpu/drm/drm_atomic_helper.c drm_bridge_mode_set(encoder->bridge, mode, adjusted_mode); mode 65 drivers/gpu/drm/drm_atomic_uapi.c const struct drm_display_mode *mode) mode 71 drivers/gpu/drm/drm_atomic_uapi.c if (mode && memcmp(&state->mode, mode, sizeof(*mode)) == 0) mode 77 drivers/gpu/drm/drm_atomic_uapi.c if (mode) { mode 78 drivers/gpu/drm/drm_atomic_uapi.c drm_mode_convert_to_umode(&umode, mode); mode 86 drivers/gpu/drm/drm_atomic_uapi.c drm_mode_copy(&state->mode, mode); mode 89 drivers/gpu/drm/drm_atomic_uapi.c mode->name, crtc->base.id, crtc->name, state); mode 91 drivers/gpu/drm/drm_atomic_uapi.c memset(&state->mode, 0, sizeof(state->mode)); mode 125 drivers/gpu/drm/drm_atomic_uapi.c memset(&state->mode, 0, sizeof(state->mode)); mode 138 drivers/gpu/drm/drm_atomic_uapi.c &state->mode, blob->data); mode 142 drivers/gpu/drm/drm_atomic_uapi.c ret, drm_get_mode_status_name(state->mode.status)); mode 143 drivers/gpu/drm/drm_atomic_uapi.c drm_mode_debug_printmodeline(&state->mode); mode 150 drivers/gpu/drm/drm_atomic_uapi.c state->mode.name, crtc->base.id, crtc->name, mode 431 drivers/gpu/drm/drm_atomic_uapi.c struct drm_property_blob *mode = mode 433 drivers/gpu/drm/drm_atomic_uapi.c ret = drm_atomic_set_mode_prop_for_crtc(state, mode); mode 434 drivers/gpu/drm/drm_atomic_uapi.c drm_property_blob_put(mode); mode 704 drivers/gpu/drm/drm_atomic_uapi.c state->tv.mode = val; mode 808 drivers/gpu/drm/drm_atomic_uapi.c *val = state->tv.mode; mode 914 drivers/gpu/drm/drm_atomic_uapi.c int mode) mode 928 drivers/gpu/drm/drm_atomic_uapi.c if (mode != DRM_MODE_DPMS_ON) mode 929 drivers/gpu/drm/drm_atomic_uapi.c mode = DRM_MODE_DPMS_OFF; mode 930 drivers/gpu/drm/drm_atomic_uapi.c connector->dpms = mode; mode 190 drivers/gpu/drm/drm_bridge.c const struct drm_display_mode *mode, mode 199 drivers/gpu/drm/drm_bridge.c ret = bridge->funcs->mode_fixup(bridge, mode, adjusted_mode); mode 201 drivers/gpu/drm/drm_bridge.c ret = ret && drm_bridge_mode_fixup(bridge->next, mode, adjusted_mode); mode 223 drivers/gpu/drm/drm_bridge.c const struct drm_display_mode *mode) mode 231 drivers/gpu/drm/drm_bridge.c ret = bridge->funcs->mode_valid(bridge, mode); mode 236 drivers/gpu/drm/drm_bridge.c return drm_bridge_mode_valid(bridge->next, mode); mode 297 drivers/gpu/drm/drm_bridge.c const struct drm_display_mode *mode, mode 304 drivers/gpu/drm/drm_bridge.c bridge->funcs->mode_set(bridge, mode, adjusted_mode); mode 306 drivers/gpu/drm/drm_bridge.c drm_bridge_mode_set(bridge->next, mode, adjusted_mode); mode 76 drivers/gpu/drm/drm_client_modeset.c drm_mode_destroy(client->dev, modeset->mode); mode 77 drivers/gpu/drm/drm_client_modeset.c modeset->mode = NULL; mode 120 drivers/gpu/drm/drm_client_modeset.c struct drm_display_mode *mode; mode 122 drivers/gpu/drm/drm_client_modeset.c list_for_each_entry(mode, &connector->modes, head) { mode 123 drivers/gpu/drm/drm_client_modeset.c if (mode->hdisplay > width || mode 124 drivers/gpu/drm/drm_client_modeset.c mode->vdisplay > height) mode 126 drivers/gpu/drm/drm_client_modeset.c if (mode->type & DRM_MODE_TYPE_PREFERRED) mode 127 drivers/gpu/drm/drm_client_modeset.c return mode; mode 136 drivers/gpu/drm/drm_client_modeset.c struct drm_display_mode *mode; mode 151 drivers/gpu/drm/drm_client_modeset.c list_for_each_entry(mode, &connector->modes, head) { mode 153 drivers/gpu/drm/drm_client_modeset.c if (!strcmp(mode->name, cmdline_mode->name)) mode 154 drivers/gpu/drm/drm_client_modeset.c return mode; mode 157 drivers/gpu/drm/drm_client_modeset.c if (mode->hdisplay != cmdline_mode->xres || mode 158 drivers/gpu/drm/drm_client_modeset.c mode->vdisplay != cmdline_mode->yres) mode 162 drivers/gpu/drm/drm_client_modeset.c if (mode->vrefresh != cmdline_mode->refresh) mode 167 drivers/gpu/drm/drm_client_modeset.c if (!(mode->flags & DRM_MODE_FLAG_INTERLACE)) mode 170 drivers/gpu/drm/drm_client_modeset.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 173 drivers/gpu/drm/drm_client_modeset.c return mode; mode 182 drivers/gpu/drm/drm_client_modeset.c mode = drm_mode_create_from_cmdline_mode(connector->dev, cmdline_mode); mode 183 drivers/gpu/drm/drm_client_modeset.c if (mode) mode 184 drivers/gpu/drm/drm_client_modeset.c list_add(&mode->head, &connector->modes); mode 186 drivers/gpu/drm/drm_client_modeset.c return mode; mode 237 drivers/gpu/drm/drm_client_modeset.c struct drm_display_mode *dmt_mode, *mode; mode 288 drivers/gpu/drm/drm_client_modeset.c list_for_each_entry(mode, &connectors[i]->modes, head) { mode 289 drivers/gpu/drm/drm_client_modeset.c if (drm_mode_match(mode, dmt_mode, mode 294 drivers/gpu/drm/drm_client_modeset.c modes[i] = mode; mode 633 drivers/gpu/drm/drm_client_modeset.c modes[i] = &connector->state->crtc->mode; mode 771 drivers/gpu/drm/drm_client_modeset.c struct drm_display_mode *mode = modes[i]; mode 775 drivers/gpu/drm/drm_client_modeset.c if (mode && crtc) { mode 780 drivers/gpu/drm/drm_client_modeset.c mode->name, crtc->base.id, offset->x, offset->y); mode 788 drivers/gpu/drm/drm_client_modeset.c modeset->mode = drm_mode_duplicate(dev, mode); mode 1108 drivers/gpu/drm/drm_client_modeset.c int drm_client_modeset_dpms(struct drm_client_dev *client, int mode) mode 1118 drivers/gpu/drm/drm_client_modeset.c ret = drm_client_modeset_commit_atomic(client, mode == DRM_MODE_DPMS_ON); mode 1120 drivers/gpu/drm/drm_client_modeset.c drm_client_modeset_dpms_legacy(client, mode); mode 126 drivers/gpu/drm/drm_connector.c struct drm_cmdline_mode *mode = &connector->cmdline_mode; mode 134 drivers/gpu/drm/drm_connector.c mode)) mode 137 drivers/gpu/drm/drm_connector.c if (mode->force) { mode 139 drivers/gpu/drm/drm_connector.c drm_get_connector_force_name(mode->force)); mode 140 drivers/gpu/drm/drm_connector.c connector->force = mode->force; mode 144 drivers/gpu/drm/drm_connector.c connector->name, mode->name, mode 145 drivers/gpu/drm/drm_connector.c mode->xres, mode->yres, mode 146 drivers/gpu/drm/drm_connector.c mode->refresh_specified ? mode->refresh : 60, mode 147 drivers/gpu/drm/drm_connector.c mode->rb ? " reduced blanking" : "", mode 148 drivers/gpu/drm/drm_connector.c mode->margins ? " with margins" : "", mode 149 drivers/gpu/drm/drm_connector.c mode->interlace ? " interlaced" : ""); mode 418 drivers/gpu/drm/drm_connector.c struct drm_display_mode *mode) mode 420 drivers/gpu/drm/drm_connector.c list_del(&mode->head); mode 421 drivers/gpu/drm/drm_connector.c drm_mode_destroy(connector->dev, mode); mode 433 drivers/gpu/drm/drm_connector.c struct drm_display_mode *mode, *t; mode 447 drivers/gpu/drm/drm_connector.c list_for_each_entry_safe(mode, t, &connector->probed_modes, head) mode 448 drivers/gpu/drm/drm_connector.c drm_mode_remove(connector, mode); mode 450 drivers/gpu/drm/drm_connector.c list_for_each_entry_safe(mode, t, &connector->modes, head) mode 451 drivers/gpu/drm/drm_connector.c drm_mode_remove(connector, mode); mode 2082 drivers/gpu/drm/drm_connector.c drm_mode_expose_to_userspace(const struct drm_display_mode *mode, mode 2090 drivers/gpu/drm/drm_connector.c if (!file_priv->stereo_allowed && drm_mode_is_stereo(mode)) mode 2102 drivers/gpu/drm/drm_connector.c if (drm_mode_match(mode_itr, mode, mode 2119 drivers/gpu/drm/drm_connector.c struct drm_display_mode *mode; mode 2173 drivers/gpu/drm/drm_connector.c list_for_each_entry(mode, &connector->modes, head) mode 2174 drivers/gpu/drm/drm_connector.c if (drm_mode_expose_to_userspace(mode, &export_list, mode 2176 drivers/gpu/drm/drm_connector.c list_add_tail(&mode->export_head, &export_list); mode 2191 drivers/gpu/drm/drm_connector.c list_for_each_entry(mode, &export_list, export_head) { mode 2192 drivers/gpu/drm/drm_connector.c drm_mode_convert_to_umode(&u_mode, mode); mode 394 drivers/gpu/drm/drm_crtc.c drm_mode_convert_to_umode(&crtc_resp->mode, &crtc->state->mode); mode 404 drivers/gpu/drm/drm_crtc.c drm_mode_convert_to_umode(&crtc_resp->mode, &crtc->mode); mode 412 drivers/gpu/drm/drm_crtc.c crtc_resp->mode.flags &= ~DRM_MODE_FLAG_PIC_AR_MASK; mode 494 drivers/gpu/drm/drm_crtc.c const struct drm_display_mode *mode, mode 500 drivers/gpu/drm/drm_crtc.c drm_mode_get_hv_timing(mode, &hdisplay, &vdisplay); mode 534 drivers/gpu/drm/drm_crtc.c struct drm_display_mode *mode = NULL; mode 598 drivers/gpu/drm/drm_crtc.c mode = drm_mode_create(dev); mode 599 drivers/gpu/drm/drm_crtc.c if (!mode) { mode 604 drivers/gpu/drm/drm_crtc.c (crtc_req->mode.flags & DRM_MODE_FLAG_PIC_AR_MASK) != DRM_MODE_FLAG_PIC_AR_NONE) { mode 611 drivers/gpu/drm/drm_crtc.c ret = drm_mode_convert_umode(dev, mode, &crtc_req->mode); mode 614 drivers/gpu/drm/drm_crtc.c ret, drm_get_mode_status_name(mode->status)); mode 615 drivers/gpu/drm/drm_crtc.c drm_mode_debug_printmodeline(mode); mode 641 drivers/gpu/drm/drm_crtc.c mode, fb); mode 647 drivers/gpu/drm/drm_crtc.c if (crtc_req->count_connectors == 0 && mode) { mode 653 drivers/gpu/drm/drm_crtc.c if (crtc_req->count_connectors > 0 && (!mode || !fb)) { mode 703 drivers/gpu/drm/drm_crtc.c set.mode = mode; mode 724 drivers/gpu/drm/drm_crtc.c drm_mode_destroy(dev, mode); mode 729 drivers/gpu/drm/drm_crtc.c mode = NULL; mode 272 drivers/gpu/drm/drm_crtc_helper.c struct drm_display_mode *mode, mode 294 drivers/gpu/drm/drm_crtc_helper.c adjusted_mode = drm_mode_duplicate(dev, mode); mode 300 drivers/gpu/drm/drm_crtc_helper.c saved_mode = crtc->mode; mode 308 drivers/gpu/drm/drm_crtc_helper.c crtc->mode = *mode; mode 327 drivers/gpu/drm/drm_crtc_helper.c if (!(ret = encoder_funcs->mode_fixup(encoder, mode, mode 336 drivers/gpu/drm/drm_crtc_helper.c if (!(ret = crtc_funcs->mode_fixup(crtc, mode, mode 368 drivers/gpu/drm/drm_crtc_helper.c ret = !crtc_funcs->mode_set(crtc, mode, adjusted_mode, x, y, old_fb); mode 382 drivers/gpu/drm/drm_crtc_helper.c encoder->base.id, encoder->name, mode->name); mode 384 drivers/gpu/drm/drm_crtc_helper.c encoder_funcs->mode_set(encoder, mode, adjusted_mode); mode 414 drivers/gpu/drm/drm_crtc_helper.c crtc->mode = saved_mode; mode 523 drivers/gpu/drm/drm_crtc_helper.c BUG_ON(!set->mode && set->fb); mode 531 drivers/gpu/drm/drm_crtc_helper.c if (!set->mode) mode 581 drivers/gpu/drm/drm_crtc_helper.c save_set.mode = &set->crtc->mode; mode 602 drivers/gpu/drm/drm_crtc_helper.c if (!drm_mode_equal(set->mode, &set->crtc->mode)) { mode 604 drivers/gpu/drm/drm_crtc_helper.c drm_mode_debug_printmodeline(&set->crtc->mode); mode 605 drivers/gpu/drm/drm_crtc_helper.c drm_mode_debug_printmodeline(set->mode); mode 708 drivers/gpu/drm/drm_crtc_helper.c drm_mode_debug_printmodeline(set->mode); mode 710 drivers/gpu/drm/drm_crtc_helper.c if (!drm_crtc_helper_set_mode(set->crtc, set->mode, mode 769 drivers/gpu/drm/drm_crtc_helper.c !drm_crtc_helper_set_mode(save_set.crtc, save_set.mode, save_set.x, mode 797 drivers/gpu/drm/drm_crtc_helper.c static void drm_helper_encoder_dpms(struct drm_encoder *encoder, int mode) mode 806 drivers/gpu/drm/drm_crtc_helper.c encoder_funcs->dpms(encoder, mode); mode 847 drivers/gpu/drm/drm_crtc_helper.c int drm_helper_connector_dpms(struct drm_connector *connector, int mode) mode 855 drivers/gpu/drm/drm_crtc_helper.c if (mode == connector->dpms) mode 859 drivers/gpu/drm/drm_crtc_helper.c connector->dpms = mode; mode 865 drivers/gpu/drm/drm_crtc_helper.c if (mode < old_dpms) { mode 877 drivers/gpu/drm/drm_crtc_helper.c if (mode > old_dpms) { mode 934 drivers/gpu/drm/drm_crtc_helper.c ret = drm_crtc_helper_set_mode(crtc, &crtc->mode, mode 73 drivers/gpu/drm/drm_crtc_helper_internal.h const struct drm_display_mode *mode); mode 75 drivers/gpu/drm/drm_crtc_helper_internal.h const struct drm_display_mode *mode); mode 77 drivers/gpu/drm/drm_crtc_helper_internal.h struct drm_display_mode *mode); mode 67 drivers/gpu/drm/drm_crtc_internal.h const struct drm_display_mode *mode, mode 238 drivers/gpu/drm/drm_crtc_internal.h int mode); mode 276 drivers/gpu/drm/drm_crtc_internal.h void drm_mode_fixup_1366x768(struct drm_display_mode *mode); mode 436 drivers/gpu/drm/drm_dp_dual_mode_helper.c enum drm_lspcon_mode *mode) mode 442 drivers/gpu/drm/drm_dp_dual_mode_helper.c if (!mode) { mode 465 drivers/gpu/drm/drm_dp_dual_mode_helper.c *mode = DRM_LSPCON_MODE_PCON; mode 467 drivers/gpu/drm/drm_dp_dual_mode_helper.c *mode = DRM_LSPCON_MODE_LS; mode 482 drivers/gpu/drm/drm_dp_dual_mode_helper.c enum drm_lspcon_mode mode) mode 489 drivers/gpu/drm/drm_dp_dual_mode_helper.c if (mode == DRM_LSPCON_MODE_PCON) mode 511 drivers/gpu/drm/drm_dp_dual_mode_helper.c if (current_mode != mode) { mode 516 drivers/gpu/drm/drm_dp_dual_mode_helper.c mode == DRM_LSPCON_MODE_LS ? mode 1916 drivers/gpu/drm/drm_edid.c mode_is_rb(const struct drm_display_mode *mode) mode 1918 drivers/gpu/drm/drm_edid.c return (mode->htotal - mode->hdisplay == 160) && mode 1919 drivers/gpu/drm/drm_edid.c (mode->hsync_end - mode->hdisplay == 80) && mode 1920 drivers/gpu/drm/drm_edid.c (mode->hsync_end - mode->hsync_start == 32) && mode 1921 drivers/gpu/drm/drm_edid.c (mode->vsync_start - mode->vdisplay == 3); mode 2127 drivers/gpu/drm/drm_edid.c struct drm_display_mode *m, *mode = NULL; mode 2177 drivers/gpu/drm/drm_edid.c mode = drm_cvt_mode(dev, 1366, 768, vrefresh_rate, 0, 0, mode 2179 drivers/gpu/drm/drm_edid.c if (!mode) mode 2181 drivers/gpu/drm/drm_edid.c mode->hdisplay = 1366; mode 2182 drivers/gpu/drm/drm_edid.c mode->hsync_start = mode->hsync_start - 1; mode 2183 drivers/gpu/drm/drm_edid.c mode->hsync_end = mode->hsync_end - 1; mode 2184 drivers/gpu/drm/drm_edid.c return mode; mode 2189 drivers/gpu/drm/drm_edid.c mode = drm_mode_find_dmt(dev, hsize, vsize, vrefresh_rate, mode 2191 drivers/gpu/drm/drm_edid.c if (mode) mode 2192 drivers/gpu/drm/drm_edid.c return mode; mode 2194 drivers/gpu/drm/drm_edid.c mode = drm_mode_find_dmt(dev, hsize, vsize, vrefresh_rate, false); mode 2195 drivers/gpu/drm/drm_edid.c if (mode) mode 2196 drivers/gpu/drm/drm_edid.c return mode; mode 2203 drivers/gpu/drm/drm_edid.c mode = drm_gtf_mode(dev, hsize, vsize, vrefresh_rate, 0, 0); mode 2211 drivers/gpu/drm/drm_edid.c mode = drm_gtf_mode(dev, hsize, vsize, vrefresh_rate, 0, 0); mode 2212 drivers/gpu/drm/drm_edid.c if (!mode) mode 2214 drivers/gpu/drm/drm_edid.c if (drm_mode_hsync(mode) > drm_gtf2_hbreak(edid)) { mode 2215 drivers/gpu/drm/drm_edid.c drm_mode_destroy(dev, mode); mode 2216 drivers/gpu/drm/drm_edid.c mode = drm_gtf_mode_complex(dev, hsize, vsize, mode 2225 drivers/gpu/drm/drm_edid.c mode = drm_cvt_mode(dev, hsize, vsize, vrefresh_rate, 0, 0, mode 2229 drivers/gpu/drm/drm_edid.c return mode; mode 2241 drivers/gpu/drm/drm_edid.c drm_mode_do_interlace_quirk(struct drm_display_mode *mode, mode 2261 drivers/gpu/drm/drm_edid.c if ((mode->hdisplay == cea_interlaced[i].w) && mode 2262 drivers/gpu/drm/drm_edid.c (mode->vdisplay == cea_interlaced[i].h / 2)) { mode 2263 drivers/gpu/drm/drm_edid.c mode->vdisplay *= 2; mode 2264 drivers/gpu/drm/drm_edid.c mode->vsync_start *= 2; mode 2265 drivers/gpu/drm/drm_edid.c mode->vsync_end *= 2; mode 2266 drivers/gpu/drm/drm_edid.c mode->vtotal *= 2; mode 2267 drivers/gpu/drm/drm_edid.c mode->vtotal |= 1; mode 2271 drivers/gpu/drm/drm_edid.c mode->flags |= DRM_MODE_FLAG_INTERLACE; mode 2289 drivers/gpu/drm/drm_edid.c struct drm_display_mode *mode; mode 2320 drivers/gpu/drm/drm_edid.c mode = drm_cvt_mode(dev, hactive, vactive, 60, true, false, false); mode 2321 drivers/gpu/drm/drm_edid.c if (!mode) mode 2327 drivers/gpu/drm/drm_edid.c mode = drm_mode_create(dev); mode 2328 drivers/gpu/drm/drm_edid.c if (!mode) mode 2334 drivers/gpu/drm/drm_edid.c mode->clock = le16_to_cpu(timing->pixel_clock) * 10; mode 2336 drivers/gpu/drm/drm_edid.c mode->hdisplay = hactive; mode 2337 drivers/gpu/drm/drm_edid.c mode->hsync_start = mode->hdisplay + hsync_offset; mode 2338 drivers/gpu/drm/drm_edid.c mode->hsync_end = mode->hsync_start + hsync_pulse_width; mode 2339 drivers/gpu/drm/drm_edid.c mode->htotal = mode->hdisplay + hblank; mode 2341 drivers/gpu/drm/drm_edid.c mode->vdisplay = vactive; mode 2342 drivers/gpu/drm/drm_edid.c mode->vsync_start = mode->vdisplay + vsync_offset; mode 2343 drivers/gpu/drm/drm_edid.c mode->vsync_end = mode->vsync_start + vsync_pulse_width; mode 2344 drivers/gpu/drm/drm_edid.c mode->vtotal = mode->vdisplay + vblank; mode 2347 drivers/gpu/drm/drm_edid.c if (mode->hsync_end > mode->htotal) mode 2348 drivers/gpu/drm/drm_edid.c mode->htotal = mode->hsync_end + 1; mode 2349 drivers/gpu/drm/drm_edid.c if (mode->vsync_end > mode->vtotal) mode 2350 drivers/gpu/drm/drm_edid.c mode->vtotal = mode->vsync_end + 1; mode 2352 drivers/gpu/drm/drm_edid.c drm_mode_do_interlace_quirk(mode, pt); mode 2358 drivers/gpu/drm/drm_edid.c mode->flags |= (pt->misc & DRM_EDID_PT_HSYNC_POSITIVE) ? mode 2360 drivers/gpu/drm/drm_edid.c mode->flags |= (pt->misc & DRM_EDID_PT_VSYNC_POSITIVE) ? mode 2364 drivers/gpu/drm/drm_edid.c mode->width_mm = pt->width_mm_lo | (pt->width_height_mm_hi & 0xf0) << 4; mode 2365 drivers/gpu/drm/drm_edid.c mode->height_mm = pt->height_mm_lo | (pt->width_height_mm_hi & 0xf) << 8; mode 2368 drivers/gpu/drm/drm_edid.c mode->width_mm *= 10; mode 2369 drivers/gpu/drm/drm_edid.c mode->height_mm *= 10; mode 2373 drivers/gpu/drm/drm_edid.c mode->width_mm = edid->width_cm * 10; mode 2374 drivers/gpu/drm/drm_edid.c mode->height_mm = edid->height_cm * 10; mode 2377 drivers/gpu/drm/drm_edid.c mode->type = DRM_MODE_TYPE_DRIVER; mode 2378 drivers/gpu/drm/drm_edid.c mode->vrefresh = drm_mode_vrefresh(mode); mode 2379 drivers/gpu/drm/drm_edid.c drm_mode_set_name(mode); mode 2381 drivers/gpu/drm/drm_edid.c return mode; mode 2385 drivers/gpu/drm/drm_edid.c mode_in_hsync_range(const struct drm_display_mode *mode, mode 2396 drivers/gpu/drm/drm_edid.c hsync = drm_mode_hsync(mode); mode 2402 drivers/gpu/drm/drm_edid.c mode_in_vsync_range(const struct drm_display_mode *mode, mode 2413 drivers/gpu/drm/drm_edid.c vsync = drm_mode_vrefresh(mode); mode 2434 drivers/gpu/drm/drm_edid.c mode_in_range(const struct drm_display_mode *mode, struct edid *edid, mode 2440 drivers/gpu/drm/drm_edid.c if (!mode_in_hsync_range(mode, edid, t)) mode 2443 drivers/gpu/drm/drm_edid.c if (!mode_in_vsync_range(mode, edid, t)) mode 2447 drivers/gpu/drm/drm_edid.c if (mode->clock > max_clock) mode 2452 drivers/gpu/drm/drm_edid.c if (t[13] && mode->hdisplay > 8 * (t[13] + (256 * (t[12]&0x3)))) mode 2455 drivers/gpu/drm/drm_edid.c if (mode_is_rb(mode) && !drm_monitor_supports_rb(edid)) mode 2462 drivers/gpu/drm/drm_edid.c const struct drm_display_mode *mode) mode 2468 drivers/gpu/drm/drm_edid.c if (mode->hdisplay == m->hdisplay && mode 2469 drivers/gpu/drm/drm_edid.c mode->vdisplay == m->vdisplay && mode 2470 drivers/gpu/drm/drm_edid.c drm_mode_vrefresh(mode) == drm_mode_vrefresh(m)) mode 2472 drivers/gpu/drm/drm_edid.c if (mode->hdisplay <= m->hdisplay && mode 2473 drivers/gpu/drm/drm_edid.c mode->vdisplay <= m->vdisplay) mode 2504 drivers/gpu/drm/drm_edid.c void drm_mode_fixup_1366x768(struct drm_display_mode *mode) mode 2506 drivers/gpu/drm/drm_edid.c if (mode->hdisplay == 1368 && mode->vdisplay == 768) { mode 2507 drivers/gpu/drm/drm_edid.c mode->hdisplay = 1366; mode 2508 drivers/gpu/drm/drm_edid.c mode->hsync_start--; mode 2509 drivers/gpu/drm/drm_edid.c mode->hsync_end--; mode 2510 drivers/gpu/drm/drm_edid.c drm_mode_set_name(mode); mode 2628 drivers/gpu/drm/drm_edid.c struct drm_display_mode *mode; mode 2637 drivers/gpu/drm/drm_edid.c mode = drm_mode_find_dmt(connector->dev, mode 2642 drivers/gpu/drm/drm_edid.c if (mode) { mode 2643 drivers/gpu/drm/drm_edid.c drm_mode_probed_add(connector, mode); mode 2838 drivers/gpu/drm/drm_edid.c static void fixup_detailed_cea_mode_clock(struct drm_display_mode *mode); mode 3000 drivers/gpu/drm/drm_edid.c cea_mode_alternate_timings(u8 vic, struct drm_display_mode *mode) mode 3021 drivers/gpu/drm/drm_edid.c vic == 12 || vic == 13) && mode->vtotal < 263) || mode 3023 drivers/gpu/drm/drm_edid.c vic == 27 || vic == 28) && mode->vtotal < 314)) { mode 3024 drivers/gpu/drm/drm_edid.c mode->vsync_start++; mode 3025 drivers/gpu/drm/drm_edid.c mode->vsync_end++; mode 3026 drivers/gpu/drm/drm_edid.c mode->vtotal++; mode 3211 drivers/gpu/drm/drm_edid.c struct drm_display_mode *mode, *tmp; mode 3223 drivers/gpu/drm/drm_edid.c list_for_each_entry(mode, &connector->probed_modes, head) { mode 3226 drivers/gpu/drm/drm_edid.c u8 vic = drm_match_cea_mode(mode); mode 3233 drivers/gpu/drm/drm_edid.c vic = drm_match_hdmi_mode(mode); mode 3248 drivers/gpu/drm/drm_edid.c if (mode->clock != clock1 && mode->clock != clock2) mode 3256 drivers/gpu/drm/drm_edid.c newmode->flags |= mode->flags & DRM_MODE_FLAG_3D_MASK; mode 3262 drivers/gpu/drm/drm_edid.c if (mode->clock != clock1) mode 3270 drivers/gpu/drm/drm_edid.c list_for_each_entry_safe(mode, tmp, &list, head) { mode 3271 drivers/gpu/drm/drm_edid.c list_del(&mode->head); mode 3272 drivers/gpu/drm/drm_edid.c drm_mode_probed_add(connector, mode); mode 3378 drivers/gpu/drm/drm_edid.c struct drm_display_mode *mode; mode 3379 drivers/gpu/drm/drm_edid.c mode = drm_display_mode_from_vic_index(connector, db, len, i); mode 3380 drivers/gpu/drm/drm_edid.c if (mode) { mode 3393 drivers/gpu/drm/drm_edid.c drm_mode_probed_add(connector, mode); mode 3420 drivers/gpu/drm/drm_edid.c stereo_match_mandatory(const struct drm_display_mode *mode, mode 3423 drivers/gpu/drm/drm_edid.c unsigned int interlaced = mode->flags & DRM_MODE_FLAG_INTERLACE; mode 3425 drivers/gpu/drm/drm_edid.c return mode->hdisplay == stereo_mode->width && mode 3426 drivers/gpu/drm/drm_edid.c mode->vdisplay == stereo_mode->height && mode 3428 drivers/gpu/drm/drm_edid.c drm_mode_vrefresh(mode) == stereo_mode->vrefresh; mode 3434 drivers/gpu/drm/drm_edid.c const struct drm_display_mode *mode; mode 3440 drivers/gpu/drm/drm_edid.c list_for_each_entry(mode, &connector->probed_modes, head) { mode 3445 drivers/gpu/drm/drm_edid.c if (!stereo_match_mandatory(mode, mode 3450 drivers/gpu/drm/drm_edid.c new_mode = drm_mode_duplicate(dev, mode); mode 3894 drivers/gpu/drm/drm_edid.c static void fixup_detailed_cea_mode_clock(struct drm_display_mode *mode) mode 3905 drivers/gpu/drm/drm_edid.c vic = drm_match_cea_mode_clock_tolerance(mode, 5); mode 3912 drivers/gpu/drm/drm_edid.c vic = drm_match_hdmi_mode_clock_tolerance(mode, 5); mode 3924 drivers/gpu/drm/drm_edid.c if (abs(mode->clock - clock1) < abs(mode->clock - clock2)) mode 3929 drivers/gpu/drm/drm_edid.c if (mode->clock == clock) mode 3933 drivers/gpu/drm/drm_edid.c type, vic, mode->clock, clock); mode 3934 drivers/gpu/drm/drm_edid.c mode->clock = clock; mode 4294 drivers/gpu/drm/drm_edid.c const struct drm_display_mode *mode) mode 4296 drivers/gpu/drm/drm_edid.c int i = !!(mode->flags & DRM_MODE_FLAG_INTERLACE); mode 4418 drivers/gpu/drm/drm_edid.c drm_default_rgb_quant_range(const struct drm_display_mode *mode) mode 4421 drivers/gpu/drm/drm_edid.c return drm_match_cea_mode(mode) > 1 ? mode 4744 drivers/gpu/drm/drm_edid.c struct drm_display_mode *mode; mode 4758 drivers/gpu/drm/drm_edid.c mode = drm_mode_create(dev); mode 4759 drivers/gpu/drm/drm_edid.c if (!mode) mode 4762 drivers/gpu/drm/drm_edid.c mode->clock = pixel_clock * 10; mode 4763 drivers/gpu/drm/drm_edid.c mode->hdisplay = hactive; mode 4764 drivers/gpu/drm/drm_edid.c mode->hsync_start = mode->hdisplay + hsync; mode 4765 drivers/gpu/drm/drm_edid.c mode->hsync_end = mode->hsync_start + hsync_width; mode 4766 drivers/gpu/drm/drm_edid.c mode->htotal = mode->hdisplay + hblank; mode 4768 drivers/gpu/drm/drm_edid.c mode->vdisplay = vactive; mode 4769 drivers/gpu/drm/drm_edid.c mode->vsync_start = mode->vdisplay + vsync; mode 4770 drivers/gpu/drm/drm_edid.c mode->vsync_end = mode->vsync_start + vsync_width; mode 4771 drivers/gpu/drm/drm_edid.c mode->vtotal = mode->vdisplay + vblank; mode 4773 drivers/gpu/drm/drm_edid.c mode->flags = 0; mode 4774 drivers/gpu/drm/drm_edid.c mode->flags |= hsync_positive ? DRM_MODE_FLAG_PHSYNC : DRM_MODE_FLAG_NHSYNC; mode 4775 drivers/gpu/drm/drm_edid.c mode->flags |= vsync_positive ? DRM_MODE_FLAG_PVSYNC : DRM_MODE_FLAG_NVSYNC; mode 4776 drivers/gpu/drm/drm_edid.c mode->type = DRM_MODE_TYPE_DRIVER; mode 4779 drivers/gpu/drm/drm_edid.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 4780 drivers/gpu/drm/drm_edid.c mode->vrefresh = drm_mode_vrefresh(mode); mode 4781 drivers/gpu/drm/drm_edid.c drm_mode_set_name(mode); mode 4783 drivers/gpu/drm/drm_edid.c return mode; mode 4935 drivers/gpu/drm/drm_edid.c struct drm_display_mode *mode; mode 4958 drivers/gpu/drm/drm_edid.c mode = drm_mode_duplicate(dev, ptr); mode 4959 drivers/gpu/drm/drm_edid.c if (mode) { mode 4960 drivers/gpu/drm/drm_edid.c drm_mode_probed_add(connector, mode); mode 4980 drivers/gpu/drm/drm_edid.c struct drm_display_mode *mode; mode 4982 drivers/gpu/drm/drm_edid.c list_for_each_entry(mode, &connector->probed_modes, head) { mode 4983 drivers/gpu/drm/drm_edid.c if (mode->hdisplay == hpref && mode 4984 drivers/gpu/drm/drm_edid.c mode->vdisplay == vpref) mode 4985 drivers/gpu/drm/drm_edid.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 5087 drivers/gpu/drm/drm_edid.c const struct drm_display_mode *mode) mode 5092 drivers/gpu/drm/drm_edid.c if (!frame || !mode) mode 5099 drivers/gpu/drm/drm_edid.c if (mode->flags & DRM_MODE_FLAG_DBLCLK) mode 5102 drivers/gpu/drm/drm_edid.c frame->video_code = drm_match_cea_mode(mode); mode 5119 drivers/gpu/drm/drm_edid.c u8 vendor_if_vic = drm_match_hdmi_mode(mode); mode 5120 drivers/gpu/drm/drm_edid.c bool is_s3d = mode->flags & DRM_MODE_FLAG_3D_MASK; mode 5140 drivers/gpu/drm/drm_edid.c picture_aspect = mode->picture_aspect_ratio; mode 5245 drivers/gpu/drm/drm_edid.c const struct drm_display_mode *mode, mode 5261 drivers/gpu/drm/drm_edid.c rgb_quant_range == drm_default_rgb_quant_range(mode)) mode 5290 drivers/gpu/drm/drm_edid.c s3d_structure_from_display_mode(const struct drm_display_mode *mode) mode 5292 drivers/gpu/drm/drm_edid.c u32 layout = mode->flags & DRM_MODE_FLAG_3D_MASK; mode 5332 drivers/gpu/drm/drm_edid.c const struct drm_display_mode *mode) mode 5344 drivers/gpu/drm/drm_edid.c if (!frame || !mode) mode 5350 drivers/gpu/drm/drm_edid.c vic = drm_match_hdmi_mode(mode); mode 5351 drivers/gpu/drm/drm_edid.c s3d_flags = mode->flags & DRM_MODE_FLAG_3D_MASK; mode 5371 drivers/gpu/drm/drm_edid.c frame->s3d_struct = s3d_structure_from_display_mode(mode); mode 133 drivers/gpu/drm/drm_encoder_slave.c void drm_i2c_encoder_dpms(struct drm_encoder *encoder, int mode) mode 135 drivers/gpu/drm/drm_encoder_slave.c get_slave_funcs(encoder)->dpms(encoder, mode); mode 140 drivers/gpu/drm/drm_encoder_slave.c const struct drm_display_mode *mode, mode 146 drivers/gpu/drm/drm_encoder_slave.c return get_slave_funcs(encoder)->mode_fixup(encoder, mode, adjusted_mode); mode 163 drivers/gpu/drm/drm_encoder_slave.c struct drm_display_mode *mode, mode 166 drivers/gpu/drm/drm_encoder_slave.c get_slave_funcs(encoder)->mode_set(encoder, mode, adjusted_mode); mode 1605 drivers/gpu/drm/drm_fb_helper.c desired_mode = mode_set->mode; mode 620 drivers/gpu/drm/drm_ioc32.c u32 mode; /**< AGP mode */ mode 627 drivers/gpu/drm/drm_ioc32.c struct drm_agp_mode mode; mode 629 drivers/gpu/drm/drm_ioc32.c if (get_user(mode.mode, &argp->mode)) mode 632 drivers/gpu/drm/drm_ioc32.c return drm_ioctl_kernel(file, drm_agp_enable_ioctl, &mode, mode 639 drivers/gpu/drm/drm_ioc32.c u32 mode; mode 664 drivers/gpu/drm/drm_ioc32.c i32.mode = info.mode; mode 411 drivers/gpu/drm/drm_mipi_dbi.c struct drm_display_mode *mode; mode 413 drivers/gpu/drm/drm_mipi_dbi.c mode = drm_mode_duplicate(connector->dev, &dbidev->mode); mode 414 drivers/gpu/drm/drm_mipi_dbi.c if (!mode) { mode 419 drivers/gpu/drm/drm_mipi_dbi.c if (mode->name[0] == '\0') mode 420 drivers/gpu/drm/drm_mipi_dbi.c drm_mode_set_name(mode); mode 422 drivers/gpu/drm/drm_mipi_dbi.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 423 drivers/gpu/drm/drm_mipi_dbi.c drm_mode_probed_add(connector, mode); mode 425 drivers/gpu/drm/drm_mipi_dbi.c if (mode->width_mm) { mode 426 drivers/gpu/drm/drm_mipi_dbi.c connector->display_info.width_mm = mode->width_mm; mode 427 drivers/gpu/drm/drm_mipi_dbi.c connector->display_info.height_mm = mode->height_mm; mode 445 drivers/gpu/drm/drm_mipi_dbi.c static int mipi_dbi_rotate_mode(struct drm_display_mode *mode, mode 451 drivers/gpu/drm/drm_mipi_dbi.c swap(mode->hdisplay, mode->vdisplay); mode 452 drivers/gpu/drm/drm_mipi_dbi.c swap(mode->hsync_start, mode->vsync_start); mode 453 drivers/gpu/drm/drm_mipi_dbi.c swap(mode->hsync_end, mode->vsync_end); mode 454 drivers/gpu/drm/drm_mipi_dbi.c swap(mode->htotal, mode->vtotal); mode 455 drivers/gpu/drm/drm_mipi_dbi.c swap(mode->width_mm, mode->height_mm); mode 499 drivers/gpu/drm/drm_mipi_dbi.c const struct drm_display_mode *mode, mode 516 drivers/gpu/drm/drm_mipi_dbi.c drm_mode_copy(&dbidev->mode, mode); mode 517 drivers/gpu/drm/drm_mipi_dbi.c ret = mipi_dbi_rotate_mode(&dbidev->mode, rotation); mode 537 drivers/gpu/drm/drm_mipi_dbi.c drm->mode_config.min_width = dbidev->mode.hdisplay; mode 538 drivers/gpu/drm/drm_mipi_dbi.c drm->mode_config.max_width = dbidev->mode.hdisplay; mode 539 drivers/gpu/drm/drm_mipi_dbi.c drm->mode_config.min_height = dbidev->mode.vdisplay; mode 540 drivers/gpu/drm/drm_mipi_dbi.c drm->mode_config.max_height = dbidev->mode.vdisplay; mode 568 drivers/gpu/drm/drm_mipi_dbi.c const struct drm_display_mode *mode, unsigned int rotation) mode 570 drivers/gpu/drm/drm_mipi_dbi.c size_t bufsize = mode->vdisplay * mode->hdisplay * sizeof(u16); mode 575 drivers/gpu/drm/drm_mipi_dbi.c ARRAY_SIZE(mipi_dbi_formats), mode, mode 1316 drivers/gpu/drm/drm_mipi_dbi.c umode_t mode = S_IFREG | S_IWUSR; mode 1319 drivers/gpu/drm/drm_mipi_dbi.c mode |= S_IRUGO; mode 1320 drivers/gpu/drm/drm_mipi_dbi.c debugfs_create_file("command", mode, minor->debugfs_root, dbidev, mode 793 drivers/gpu/drm/drm_mipi_dsi.c int mipi_dsi_dcs_get_power_mode(struct mipi_dsi_device *dsi, u8 *mode) mode 797 drivers/gpu/drm/drm_mipi_dsi.c err = mipi_dsi_dcs_read(dsi, MIPI_DCS_GET_POWER_MODE, mode, mode 798 drivers/gpu/drm/drm_mipi_dsi.c sizeof(*mode)); mode 987 drivers/gpu/drm/drm_mipi_dsi.c enum mipi_dsi_dcs_tear_mode mode) mode 989 drivers/gpu/drm/drm_mipi_dsi.c u8 value = mode; mode 344 drivers/gpu/drm/drm_mm.c enum drm_mm_insert_mode mode) mode 346 drivers/gpu/drm/drm_mm.c switch (mode) { mode 367 drivers/gpu/drm/drm_mm.c enum drm_mm_insert_mode mode) mode 369 drivers/gpu/drm/drm_mm.c switch (mode) { mode 469 drivers/gpu/drm/drm_mm.c enum drm_mm_insert_mode mode) mode 486 drivers/gpu/drm/drm_mm.c once = mode & DRM_MM_INSERT_ONCE; mode 487 drivers/gpu/drm/drm_mm.c mode &= ~DRM_MM_INSERT_ONCE; mode 490 drivers/gpu/drm/drm_mm.c for (hole = first_hole(mm, range_start, range_end, size, mode); mode 492 drivers/gpu/drm/drm_mm.c hole = once ? NULL : next_hole(mm, hole, mode)) { mode 498 drivers/gpu/drm/drm_mm.c if (mode == DRM_MM_INSERT_LOW && hole_start >= range_end) mode 501 drivers/gpu/drm/drm_mm.c if (mode == DRM_MM_INSERT_HIGH && hole_end <= range_start) mode 515 drivers/gpu/drm/drm_mm.c if (mode == DRM_MM_INSERT_HIGH) mode 527 drivers/gpu/drm/drm_mm.c if (mode != DRM_MM_INSERT_HIGH) mode 687 drivers/gpu/drm/drm_mm.c enum drm_mm_insert_mode mode) mode 702 drivers/gpu/drm/drm_mm.c scan->mode = mode; mode 761 drivers/gpu/drm/drm_mm.c if (scan->mode == DRM_MM_INSERT_HIGH) mode 773 drivers/gpu/drm/drm_mm.c if (scan->mode != DRM_MM_INSERT_HIGH) mode 54 drivers/gpu/drm/drm_modes.c void drm_mode_debug_printmodeline(const struct drm_display_mode *mode) mode 56 drivers/gpu/drm/drm_modes.c DRM_DEBUG_KMS("Modeline " DRM_MODE_FMT "\n", DRM_MODE_ARG(mode)); mode 89 drivers/gpu/drm/drm_modes.c void drm_mode_destroy(struct drm_device *dev, struct drm_display_mode *mode) mode 91 drivers/gpu/drm/drm_modes.c if (!mode) mode 94 drivers/gpu/drm/drm_modes.c kfree(mode); mode 108 drivers/gpu/drm/drm_modes.c struct drm_display_mode *mode) mode 112 drivers/gpu/drm/drm_modes.c list_add_tail(&mode->head, &connector->probed_modes); mode 739 drivers/gpu/drm/drm_modes.c void drm_mode_set_name(struct drm_display_mode *mode) mode 741 drivers/gpu/drm/drm_modes.c bool interlaced = !!(mode->flags & DRM_MODE_FLAG_INTERLACE); mode 743 drivers/gpu/drm/drm_modes.c snprintf(mode->name, DRM_DISPLAY_MODE_LEN, "%dx%d%s", mode 744 drivers/gpu/drm/drm_modes.c mode->hdisplay, mode->vdisplay, mode 757 drivers/gpu/drm/drm_modes.c int drm_mode_hsync(const struct drm_display_mode *mode) mode 761 drivers/gpu/drm/drm_modes.c if (mode->hsync) mode 762 drivers/gpu/drm/drm_modes.c return mode->hsync; mode 764 drivers/gpu/drm/drm_modes.c if (mode->htotal <= 0) mode 767 drivers/gpu/drm/drm_modes.c calc_val = (mode->clock * 1000) / mode->htotal; /* hsync in Hz */ mode 783 drivers/gpu/drm/drm_modes.c int drm_mode_vrefresh(const struct drm_display_mode *mode) mode 787 drivers/gpu/drm/drm_modes.c if (mode->vrefresh > 0) mode 788 drivers/gpu/drm/drm_modes.c refresh = mode->vrefresh; mode 789 drivers/gpu/drm/drm_modes.c else if (mode->htotal > 0 && mode->vtotal > 0) { mode 792 drivers/gpu/drm/drm_modes.c num = mode->clock * 1000; mode 793 drivers/gpu/drm/drm_modes.c den = mode->htotal * mode->vtotal; mode 795 drivers/gpu/drm/drm_modes.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 797 drivers/gpu/drm/drm_modes.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 799 drivers/gpu/drm/drm_modes.c if (mode->vscan > 1) mode 800 drivers/gpu/drm/drm_modes.c den *= mode->vscan; mode 817 drivers/gpu/drm/drm_modes.c void drm_mode_get_hv_timing(const struct drm_display_mode *mode, mode 820 drivers/gpu/drm/drm_modes.c struct drm_display_mode adjusted = *mode; mode 936 drivers/gpu/drm/drm_modes.c const struct drm_display_mode *mode) mode 944 drivers/gpu/drm/drm_modes.c drm_mode_copy(nmode, mode); mode 1107 drivers/gpu/drm/drm_modes.c drm_mode_validate_basic(const struct drm_display_mode *mode) mode 1109 drivers/gpu/drm/drm_modes.c if (mode->type & ~DRM_MODE_TYPE_ALL) mode 1112 drivers/gpu/drm/drm_modes.c if (mode->flags & ~DRM_MODE_FLAG_ALL) mode 1115 drivers/gpu/drm/drm_modes.c if ((mode->flags & DRM_MODE_FLAG_3D_MASK) > DRM_MODE_FLAG_3D_MAX) mode 1118 drivers/gpu/drm/drm_modes.c if (mode->clock == 0) mode 1121 drivers/gpu/drm/drm_modes.c if (mode->hdisplay == 0 || mode 1122 drivers/gpu/drm/drm_modes.c mode->hsync_start < mode->hdisplay || mode 1123 drivers/gpu/drm/drm_modes.c mode->hsync_end < mode->hsync_start || mode 1124 drivers/gpu/drm/drm_modes.c mode->htotal < mode->hsync_end) mode 1127 drivers/gpu/drm/drm_modes.c if (mode->vdisplay == 0 || mode 1128 drivers/gpu/drm/drm_modes.c mode->vsync_start < mode->vdisplay || mode 1129 drivers/gpu/drm/drm_modes.c mode->vsync_end < mode->vsync_start || mode 1130 drivers/gpu/drm/drm_modes.c mode->vtotal < mode->vsync_end) mode 1150 drivers/gpu/drm/drm_modes.c const struct drm_display_mode *mode) mode 1154 drivers/gpu/drm/drm_modes.c status = drm_mode_validate_basic(mode); mode 1159 drivers/gpu/drm/drm_modes.c return dev->mode_config.funcs->mode_valid(dev, mode); mode 1180 drivers/gpu/drm/drm_modes.c drm_mode_validate_size(const struct drm_display_mode *mode, mode 1183 drivers/gpu/drm/drm_modes.c if (maxX > 0 && mode->hdisplay > maxX) mode 1186 drivers/gpu/drm/drm_modes.c if (maxY > 0 && mode->vdisplay > maxY) mode 1205 drivers/gpu/drm/drm_modes.c drm_mode_validate_ycbcr420(const struct drm_display_mode *mode, mode 1208 drivers/gpu/drm/drm_modes.c u8 vic = drm_match_cea_mode(mode); mode 1292 drivers/gpu/drm/drm_modes.c struct drm_display_mode *mode, *t; mode 1294 drivers/gpu/drm/drm_modes.c list_for_each_entry_safe(mode, t, mode_list, head) { mode 1295 drivers/gpu/drm/drm_modes.c if (mode->status != MODE_OK) { mode 1296 drivers/gpu/drm/drm_modes.c list_del(&mode->head); mode 1298 drivers/gpu/drm/drm_modes.c drm_mode_debug_printmodeline(mode); mode 1300 drivers/gpu/drm/drm_modes.c mode->name, mode 1301 drivers/gpu/drm/drm_modes.c drm_get_mode_status_name(mode->status)); mode 1303 drivers/gpu/drm/drm_modes.c drm_mode_destroy(dev, mode); mode 1374 drivers/gpu/drm/drm_modes.c struct drm_display_mode *mode; mode 1378 drivers/gpu/drm/drm_modes.c list_for_each_entry(mode, &connector->modes, head) { mode 1379 drivers/gpu/drm/drm_modes.c if (!drm_mode_equal(pmode, mode)) mode 1396 drivers/gpu/drm/drm_modes.c if (mode->status == MODE_STALE) { mode 1397 drivers/gpu/drm/drm_modes.c drm_mode_copy(mode, pmode); mode 1398 drivers/gpu/drm/drm_modes.c } else if ((mode->type & DRM_MODE_TYPE_PREFERRED) == 0 && mode 1400 drivers/gpu/drm/drm_modes.c pmode->type |= mode->type; mode 1401 drivers/gpu/drm/drm_modes.c drm_mode_copy(mode, pmode); mode 1403 drivers/gpu/drm/drm_modes.c mode->type |= pmode->type; mode 1419 drivers/gpu/drm/drm_modes.c struct drm_cmdline_mode *mode) mode 1431 drivers/gpu/drm/drm_modes.c mode->bpp = bpp; mode 1432 drivers/gpu/drm/drm_modes.c mode->bpp_specified = true; mode 1438 drivers/gpu/drm/drm_modes.c struct drm_cmdline_mode *mode) mode 1450 drivers/gpu/drm/drm_modes.c mode->refresh = refresh; mode 1451 drivers/gpu/drm/drm_modes.c mode->refresh_specified = true; mode 1459 drivers/gpu/drm/drm_modes.c struct drm_cmdline_mode *mode) mode 1469 drivers/gpu/drm/drm_modes.c mode->interlace = true; mode 1475 drivers/gpu/drm/drm_modes.c mode->margins = true; mode 1478 drivers/gpu/drm/drm_modes.c if (mode->force != DRM_FORCE_UNSPECIFIED) mode 1483 drivers/gpu/drm/drm_modes.c mode->force = DRM_FORCE_ON; mode 1485 drivers/gpu/drm/drm_modes.c mode->force = DRM_FORCE_ON_DIGITAL; mode 1488 drivers/gpu/drm/drm_modes.c if (mode->force != DRM_FORCE_UNSPECIFIED) mode 1491 drivers/gpu/drm/drm_modes.c mode->force = DRM_FORCE_OFF; mode 1494 drivers/gpu/drm/drm_modes.c if (mode->force != DRM_FORCE_UNSPECIFIED) mode 1497 drivers/gpu/drm/drm_modes.c mode->force = DRM_FORCE_ON; mode 1510 drivers/gpu/drm/drm_modes.c struct drm_cmdline_mode *mode) mode 1554 drivers/gpu/drm/drm_modes.c mode); mode 1563 drivers/gpu/drm/drm_modes.c mode->xres = xres; mode 1564 drivers/gpu/drm/drm_modes.c mode->yres = yres; mode 1565 drivers/gpu/drm/drm_modes.c mode->cvt = cvt; mode 1566 drivers/gpu/drm/drm_modes.c mode->rb = rb; mode 1573 drivers/gpu/drm/drm_modes.c struct drm_cmdline_mode *mode) mode 1636 drivers/gpu/drm/drm_modes.c mode->tv_margins.right = margin; mode 1647 drivers/gpu/drm/drm_modes.c mode->tv_margins.left = margin; mode 1658 drivers/gpu/drm/drm_modes.c mode->tv_margins.top = margin; mode 1669 drivers/gpu/drm/drm_modes.c mode->tv_margins.bottom = margin; mode 1682 drivers/gpu/drm/drm_modes.c mode->rotation_reflection = rotation; mode 1692 drivers/gpu/drm/drm_modes.c static bool drm_named_mode_is_in_whitelist(const char *mode, unsigned int size) mode 1697 drivers/gpu/drm/drm_modes.c if (!strncmp(mode, drm_named_modes_whitelist[i], size)) mode 1730 drivers/gpu/drm/drm_modes.c struct drm_cmdline_mode *mode) mode 1747 drivers/gpu/drm/drm_modes.c mode->specified = false; mode 1776 drivers/gpu/drm/drm_modes.c connector, mode); mode 1788 drivers/gpu/drm/drm_modes.c mode->bpp_specified = true; mode 1797 drivers/gpu/drm/drm_modes.c mode->refresh_specified = true; mode 1824 drivers/gpu/drm/drm_modes.c strscpy(mode->name, name, mode_end + 1); mode 1829 drivers/gpu/drm/drm_modes.c mode); mode 1833 drivers/gpu/drm/drm_modes.c mode->specified = true; mode 1836 drivers/gpu/drm/drm_modes.c ret = drm_mode_parse_cmdline_bpp(bpp_ptr, &bpp_end_ptr, mode); mode 1843 drivers/gpu/drm/drm_modes.c &refresh_end_ptr, mode); mode 1864 drivers/gpu/drm/drm_modes.c connector, mode); mode 1873 drivers/gpu/drm/drm_modes.c connector, mode); mode 1894 drivers/gpu/drm/drm_modes.c struct drm_display_mode *mode; mode 1897 drivers/gpu/drm/drm_modes.c mode = drm_cvt_mode(dev, mode 1903 drivers/gpu/drm/drm_modes.c mode = drm_gtf_mode(dev, mode 1908 drivers/gpu/drm/drm_modes.c if (!mode) mode 1911 drivers/gpu/drm/drm_modes.c mode->type |= DRM_MODE_TYPE_USERDEF; mode 1914 drivers/gpu/drm/drm_modes.c drm_mode_fixup_1366x768(mode); mode 1915 drivers/gpu/drm/drm_modes.c drm_mode_set_crtcinfo(mode, CRTC_INTERLACE_HALVE_V); mode 1916 drivers/gpu/drm/drm_modes.c return mode; mode 2068 drivers/gpu/drm/drm_modes.c const struct drm_display_mode *mode) mode 2070 drivers/gpu/drm/drm_modes.c u8 vic = drm_match_cea_mode(mode); mode 2088 drivers/gpu/drm/drm_modes.c const struct drm_display_mode *mode) mode 2090 drivers/gpu/drm/drm_modes.c u8 vic = drm_match_cea_mode(mode); mode 2107 drivers/gpu/drm/drm_modes.c const struct drm_display_mode *mode) mode 2109 drivers/gpu/drm/drm_modes.c return drm_mode_is_420_only(display, mode) || mode 2110 drivers/gpu/drm/drm_modes.c drm_mode_is_420_also(display, mode); mode 1151 drivers/gpu/drm/drm_plane.c &crtc->mode, fb); mode 131 drivers/gpu/drm/drm_plane_helper.c .mode = crtc->mode, mode 160 drivers/gpu/drm/drm_plane_helper.c .mode = &crtc->mode, mode 70 drivers/gpu/drm/drm_probe_helper.c drm_mode_validate_flag(const struct drm_display_mode *mode, mode 73 drivers/gpu/drm/drm_probe_helper.c if ((mode->flags & DRM_MODE_FLAG_INTERLACE) && mode 77 drivers/gpu/drm/drm_probe_helper.c if ((mode->flags & DRM_MODE_FLAG_DBLSCAN) && mode 81 drivers/gpu/drm/drm_probe_helper.c if ((mode->flags & DRM_MODE_FLAG_3D_MASK) && mode 89 drivers/gpu/drm/drm_probe_helper.c drm_mode_validate_pipeline(struct drm_display_mode *mode, mode 98 drivers/gpu/drm/drm_probe_helper.c ret = drm_connector_mode_valid(connector, mode); mode 106 drivers/gpu/drm/drm_probe_helper.c ret = drm_encoder_mode_valid(encoder, mode); mode 115 drivers/gpu/drm/drm_probe_helper.c ret = drm_bridge_mode_valid(encoder->bridge, mode); mode 126 drivers/gpu/drm/drm_probe_helper.c ret = drm_crtc_mode_valid(crtc, mode); mode 142 drivers/gpu/drm/drm_probe_helper.c struct drm_display_mode *mode; mode 149 drivers/gpu/drm/drm_probe_helper.c list_for_each_entry(mode, &connector->probed_modes, head) { mode 150 drivers/gpu/drm/drm_probe_helper.c if (mode->hdisplay != cmdline_mode->xres || mode 151 drivers/gpu/drm/drm_probe_helper.c mode->vdisplay != cmdline_mode->yres) mode 156 drivers/gpu/drm/drm_probe_helper.c if (drm_mode_vrefresh(mode) != cmdline_mode->refresh) mode 163 drivers/gpu/drm/drm_probe_helper.c mode = drm_mode_create_from_cmdline_mode(connector->dev, mode 165 drivers/gpu/drm/drm_probe_helper.c if (mode == NULL) mode 168 drivers/gpu/drm/drm_probe_helper.c drm_mode_probed_add(connector, mode); mode 173 drivers/gpu/drm/drm_probe_helper.c const struct drm_display_mode *mode) mode 180 drivers/gpu/drm/drm_probe_helper.c return crtc_funcs->mode_valid(crtc, mode); mode 184 drivers/gpu/drm/drm_probe_helper.c const struct drm_display_mode *mode) mode 192 drivers/gpu/drm/drm_probe_helper.c return encoder_funcs->mode_valid(encoder, mode); mode 196 drivers/gpu/drm/drm_probe_helper.c struct drm_display_mode *mode) mode 204 drivers/gpu/drm/drm_probe_helper.c return connector_funcs->mode_valid(connector, mode); mode 392 drivers/gpu/drm/drm_probe_helper.c struct drm_display_mode *mode; mode 417 drivers/gpu/drm/drm_probe_helper.c list_for_each_entry(mode, &connector->modes, head) mode 418 drivers/gpu/drm/drm_probe_helper.c mode->status = MODE_STALE; mode 505 drivers/gpu/drm/drm_probe_helper.c list_for_each_entry(mode, &connector->modes, head) { mode 506 drivers/gpu/drm/drm_probe_helper.c if (mode->status == MODE_OK) mode 507 drivers/gpu/drm/drm_probe_helper.c mode->status = drm_mode_validate_driver(dev, mode); mode 509 drivers/gpu/drm/drm_probe_helper.c if (mode->status == MODE_OK) mode 510 drivers/gpu/drm/drm_probe_helper.c mode->status = drm_mode_validate_size(mode, maxX, maxY); mode 512 drivers/gpu/drm/drm_probe_helper.c if (mode->status == MODE_OK) mode 513 drivers/gpu/drm/drm_probe_helper.c mode->status = drm_mode_validate_flag(mode, mode_flags); mode 515 drivers/gpu/drm/drm_probe_helper.c if (mode->status == MODE_OK) mode 516 drivers/gpu/drm/drm_probe_helper.c mode->status = drm_mode_validate_pipeline(mode, mode 519 drivers/gpu/drm/drm_probe_helper.c if (mode->status == MODE_OK) mode 520 drivers/gpu/drm/drm_probe_helper.c mode->status = drm_mode_validate_ycbcr420(mode, mode 533 drivers/gpu/drm/drm_probe_helper.c list_for_each_entry(mode, &connector->modes, head) mode 534 drivers/gpu/drm/drm_probe_helper.c mode->vrefresh = drm_mode_vrefresh(mode); mode 540 drivers/gpu/drm/drm_probe_helper.c list_for_each_entry(mode, &connector->modes, head) { mode 541 drivers/gpu/drm/drm_probe_helper.c drm_mode_set_crtcinfo(mode, CRTC_INTERLACE_HALVE_V); mode 542 drivers/gpu/drm/drm_probe_helper.c drm_mode_debug_printmodeline(mode); mode 36 drivers/gpu/drm/drm_simple_kms_helper.c const struct drm_display_mode *mode) mode 45 drivers/gpu/drm/drm_simple_kms_helper.c return pipe->funcs->mode_valid(crtc, mode); mode 55 drivers/gpu/drm/drm_sysfs.c static char *drm_devnode(struct device *dev, umode_t *mode) mode 228 drivers/gpu/drm/drm_sysfs.c struct drm_display_mode *mode; mode 232 drivers/gpu/drm/drm_sysfs.c list_for_each_entry(mode, &connector->modes, head) { mode 234 drivers/gpu/drm/drm_sysfs.c mode->name); mode 256 drivers/gpu/drm/drm_sysfs.c .attr.mode = 0444, mode 518 drivers/gpu/drm/drm_vblank.c const struct drm_display_mode *mode) mode 524 drivers/gpu/drm/drm_vblank.c int dotclock = mode->crtc_clock; mode 534 drivers/gpu/drm/drm_vblank.c int frame_size = mode->crtc_htotal * mode->crtc_vtotal; mode 541 drivers/gpu/drm/drm_vblank.c linedur_ns = div_u64((u64) mode->crtc_htotal * 1000000, dotclock); mode 547 drivers/gpu/drm/drm_vblank.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 555 drivers/gpu/drm/drm_vblank.c vblank->hwmode = *mode; mode 558 drivers/gpu/drm/drm_vblank.c crtc->base.id, mode->crtc_htotal, mode 559 drivers/gpu/drm/drm_vblank.c mode->crtc_vtotal, mode->crtc_vdisplay); mode 606 drivers/gpu/drm/drm_vblank.c const struct drm_display_mode *mode; mode 628 drivers/gpu/drm/drm_vblank.c mode = &vblank->hwmode; mode 630 drivers/gpu/drm/drm_vblank.c mode = &crtc->hwmode; mode 635 drivers/gpu/drm/drm_vblank.c if (mode->crtc_clock == 0) { mode 658 drivers/gpu/drm/drm_vblank.c mode); mode 688 drivers/gpu/drm/drm_vblank.c delta_ns = div_s64(1000000LL * (vpos * mode->crtc_htotal + hpos), mode 689 drivers/gpu/drm/drm_vblank.c mode->crtc_clock); mode 143 drivers/gpu/drm/etnaviv/etnaviv_mmu.c enum drm_mm_insert_mode mode = DRM_MM_INSERT_LOW; mode 155 drivers/gpu/drm/etnaviv/etnaviv_mmu.c size, 0, 0, 0, U64_MAX, mode); mode 160 drivers/gpu/drm/etnaviv/etnaviv_mmu.c drm_mm_scan_init(&scan, &context->mm, size, 0, 0, mode); mode 212 drivers/gpu/drm/etnaviv/etnaviv_mmu.c mode = DRM_MM_INSERT_EVICT; mode 198 drivers/gpu/drm/exynos/exynos5433_drm_decon.c struct drm_display_mode *m = &crtc->base.mode; mode 412 drivers/gpu/drm/exynos/exynos5433_drm_decon.c if (crtc->base.mode.flags & DRM_MODE_FLAG_INTERLACE) { mode 587 drivers/gpu/drm/exynos/exynos5433_drm_decon.c const struct drm_display_mode *mode) mode 141 drivers/gpu/drm/exynos/exynos7_drm_decon.c const struct drm_display_mode *mode) mode 143 drivers/gpu/drm/exynos/exynos7_drm_decon.c unsigned long ideal_clk = mode->htotal * mode->vtotal * mode->vrefresh; mode 155 drivers/gpu/drm/exynos/exynos7_drm_decon.c struct drm_display_mode *mode = &crtc->base.state->adjusted_mode; mode 162 drivers/gpu/drm/exynos/exynos7_drm_decon.c if (mode->htotal == 0 || mode->vtotal == 0) mode 168 drivers/gpu/drm/exynos/exynos7_drm_decon.c vsync_len = mode->crtc_vsync_end - mode->crtc_vsync_start; mode 169 drivers/gpu/drm/exynos/exynos7_drm_decon.c vbpd = mode->crtc_vtotal - mode->crtc_vsync_end; mode 170 drivers/gpu/drm/exynos/exynos7_drm_decon.c vfpd = mode->crtc_vsync_start - mode->crtc_vdisplay; mode 179 drivers/gpu/drm/exynos/exynos7_drm_decon.c hsync_len = mode->crtc_hsync_end - mode->crtc_hsync_start; mode 180 drivers/gpu/drm/exynos/exynos7_drm_decon.c hbpd = mode->crtc_htotal - mode->crtc_hsync_end; mode 181 drivers/gpu/drm/exynos/exynos7_drm_decon.c hfpd = mode->crtc_hsync_start - mode->crtc_hdisplay; mode 192 drivers/gpu/drm/exynos/exynos7_drm_decon.c val = VIDTCON4_LINEVAL(mode->vdisplay - 1) | mode 193 drivers/gpu/drm/exynos/exynos7_drm_decon.c VIDTCON4_HOZVAL(mode->hdisplay - 1); mode 196 drivers/gpu/drm/exynos/exynos7_drm_decon.c writel(mode->vdisplay - 1, ctx->regs + LINECNT_OP_THRESHOLD); mode 205 drivers/gpu/drm/exynos/exynos7_drm_decon.c clkdiv = decon_calc_clkdiv(ctx, mode); mode 73 drivers/gpu/drm/exynos/exynos_dp.c struct drm_display_mode *mode; mode 79 drivers/gpu/drm/exynos/exynos_dp.c mode = drm_mode_create(connector->dev); mode 80 drivers/gpu/drm/exynos/exynos_dp.c if (!mode) { mode 86 drivers/gpu/drm/exynos/exynos_dp.c drm_display_mode_from_videomode(&dp->vm, mode); mode 87 drivers/gpu/drm/exynos/exynos_dp.c connector->display_info.width_mm = mode->width_mm; mode 88 drivers/gpu/drm/exynos/exynos_dp.c connector->display_info.height_mm = mode->height_mm; mode 90 drivers/gpu/drm/exynos/exynos_dp.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 91 drivers/gpu/drm/exynos/exynos_dp.c drm_mode_set_name(mode); mode 92 drivers/gpu/drm/exynos/exynos_dp.c drm_mode_probed_add(connector, mode); mode 121 drivers/gpu/drm/exynos/exynos_dp.c struct drm_display_mode *mode, mode 84 drivers/gpu/drm/exynos/exynos_drm_crtc.c const struct drm_display_mode *mode) mode 89 drivers/gpu/drm/exynos/exynos_drm_crtc.c return exynos_crtc->ops->mode_valid(exynos_crtc, mode); mode 95 drivers/gpu/drm/exynos/exynos_drm_crtc.c const struct drm_display_mode *mode, mode 101 drivers/gpu/drm/exynos/exynos_drm_crtc.c return exynos_crtc->ops->mode_fixup(exynos_crtc, mode, mode 73 drivers/gpu/drm/exynos/exynos_drm_dpi.c struct drm_display_mode *mode; mode 75 drivers/gpu/drm/exynos/exynos_drm_dpi.c mode = drm_mode_create(connector->dev); mode 76 drivers/gpu/drm/exynos/exynos_drm_dpi.c if (!mode) { mode 81 drivers/gpu/drm/exynos/exynos_drm_dpi.c drm_display_mode_from_videomode(ctx->vm, mode); mode 82 drivers/gpu/drm/exynos/exynos_drm_dpi.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 83 drivers/gpu/drm/exynos/exynos_drm_dpi.c drm_mode_probed_add(connector, mode); mode 121 drivers/gpu/drm/exynos/exynos_drm_dpi.c struct drm_display_mode *mode, mode 141 drivers/gpu/drm/exynos/exynos_drm_drv.h const struct drm_display_mode *mode); mode 143 drivers/gpu/drm/exynos/exynos_drm_drv.h const struct drm_display_mode *mode, mode 393 drivers/gpu/drm/exynos/exynos_drm_fimd.c struct drm_display_mode *mode = &state->adjusted_mode; mode 398 drivers/gpu/drm/exynos/exynos_drm_fimd.c if (mode->clock == 0) { mode 403 drivers/gpu/drm/exynos/exynos_drm_fimd.c ideal_clk = mode->clock * 1000; mode 457 drivers/gpu/drm/exynos/exynos_drm_fimd.c struct drm_display_mode *mode = &crtc->base.state->adjusted_mode; mode 466 drivers/gpu/drm/exynos/exynos_drm_fimd.c if (mode->htotal == 0 || mode->vtotal == 0) mode 492 drivers/gpu/drm/exynos/exynos_drm_fimd.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 494 drivers/gpu/drm/exynos/exynos_drm_fimd.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 499 drivers/gpu/drm/exynos/exynos_drm_fimd.c vsync_len = mode->crtc_vsync_end - mode->crtc_vsync_start; mode 500 drivers/gpu/drm/exynos/exynos_drm_fimd.c vbpd = mode->crtc_vtotal - mode->crtc_vsync_end; mode 501 drivers/gpu/drm/exynos/exynos_drm_fimd.c vfpd = mode->crtc_vsync_start - mode->crtc_vdisplay; mode 509 drivers/gpu/drm/exynos/exynos_drm_fimd.c hsync_len = mode->crtc_hsync_end - mode->crtc_hsync_start; mode 510 drivers/gpu/drm/exynos/exynos_drm_fimd.c hbpd = mode->crtc_htotal - mode->crtc_hsync_end; mode 511 drivers/gpu/drm/exynos/exynos_drm_fimd.c hfpd = mode->crtc_hsync_start - mode->crtc_hdisplay; mode 546 drivers/gpu/drm/exynos/exynos_drm_fimd.c val = VIDTCON2_LINEVAL(mode->vdisplay - 1) | mode 547 drivers/gpu/drm/exynos/exynos_drm_fimd.c VIDTCON2_HOZVAL(mode->hdisplay - 1) | mode 548 drivers/gpu/drm/exynos/exynos_drm_fimd.c VIDTCON2_LINEVAL_E(mode->vdisplay - 1) | mode 549 drivers/gpu/drm/exynos/exynos_drm_fimd.c VIDTCON2_HOZVAL_E(mode->hdisplay - 1); mode 250 drivers/gpu/drm/exynos/exynos_drm_mic.c const struct drm_display_mode *mode, mode 256 drivers/gpu/drm/exynos/exynos_drm_mic.c drm_display_mode_to_videomode(mode, &mic->vm); mode 61 drivers/gpu/drm/exynos/exynos_drm_plane.c struct drm_display_mode *mode = &crtc_state->adjusted_mode; mode 90 drivers/gpu/drm/exynos/exynos_drm_plane.c actual_w = exynos_plane_get_size(crtc_x, crtc_w, mode->hdisplay); mode 91 drivers/gpu/drm/exynos/exynos_drm_plane.c actual_h = exynos_plane_get_size(crtc_y, crtc_h, mode->vdisplay); mode 353 drivers/gpu/drm/exynos/exynos_drm_vidi.c struct drm_display_mode *mode, mode 802 drivers/gpu/drm/exynos/exynos_hdmi.c struct drm_display_mode *m = &hdata->encoder.crtc->state->mode; mode 915 drivers/gpu/drm/exynos/exynos_hdmi.c struct drm_display_mode *mode) mode 922 drivers/gpu/drm/exynos/exynos_hdmi.c mode->hdisplay, mode->vdisplay, mode->vrefresh, mode 923 drivers/gpu/drm/exynos/exynos_hdmi.c (mode->flags & DRM_MODE_FLAG_INTERLACE) ? true : mode 924 drivers/gpu/drm/exynos/exynos_hdmi.c false, mode->clock * 1000); mode 926 drivers/gpu/drm/exynos/exynos_hdmi.c ret = hdmi_find_phy_conf(hdata, mode->clock * 1000); mode 978 drivers/gpu/drm/exynos/exynos_hdmi.c const struct drm_display_mode *mode, mode 1123 drivers/gpu/drm/exynos/exynos_hdmi.c struct drm_display_mode *m = &hdata->encoder.crtc->state->mode; mode 1198 drivers/gpu/drm/exynos/exynos_hdmi.c struct drm_display_mode *m = &hdata->encoder.crtc->state->mode; mode 1277 drivers/gpu/drm/exynos/exynos_hdmi.c struct drm_display_mode *m = &hdata->encoder.crtc->state->mode; mode 1423 drivers/gpu/drm/exynos/exynos_hdmi.c struct drm_display_mode *m = &hdata->encoder.crtc->state->mode; mode 426 drivers/gpu/drm/exynos/exynos_mixer.c static void mixer_cfg_rgb_fmt(struct mixer_context *ctx, struct drm_display_mode *mode) mode 428 drivers/gpu/drm/exynos/exynos_mixer.c enum hdmi_quantization_range range = drm_default_rgb_quant_range(mode); mode 431 drivers/gpu/drm/exynos/exynos_mixer.c if (mode->vdisplay < 720) { mode 504 drivers/gpu/drm/exynos/exynos_mixer.c struct drm_display_mode *mode = &ctx->crtc->base.state->adjusted_mode; mode 506 drivers/gpu/drm/exynos/exynos_mixer.c mixer_cfg_scan(ctx, mode->hdisplay, mode->vdisplay); mode 507 drivers/gpu/drm/exynos/exynos_mixer.c mixer_cfg_rgb_fmt(ctx, mode); mode 1043 drivers/gpu/drm/exynos/exynos_mixer.c const struct drm_display_mode *mode) mode 1046 drivers/gpu/drm/exynos/exynos_mixer.c u32 w = mode->hdisplay, h = mode->vdisplay; mode 1049 drivers/gpu/drm/exynos/exynos_mixer.c w, h, mode->vrefresh, mode 1050 drivers/gpu/drm/exynos/exynos_mixer.c !!(mode->flags & DRM_MODE_FLAG_INTERLACE)); mode 1069 drivers/gpu/drm/exynos/exynos_mixer.c const struct drm_display_mode *mode, mode 1073 drivers/gpu/drm/exynos/exynos_mixer.c int width = mode->hdisplay, height = mode->vdisplay, i; mode 1085 drivers/gpu/drm/exynos/exynos_mixer.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 85 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c struct drm_display_mode *mode = &crtc->state->mode; mode 89 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c clk_set_rate(fsl_dev->pix_clk, mode->clock * 1000); mode 91 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c drm_display_mode_to_videomode(mode, &vm); mode 74 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c struct drm_display_mode *mode) mode 76 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c if (mode->hdisplay & 0xf) mode 39 drivers/gpu/drm/gma500/cdv_intel_crt.c static void cdv_intel_crt_dpms(struct drm_encoder *encoder, int mode) mode 49 drivers/gpu/drm/gma500/cdv_intel_crt.c switch (mode) { mode 68 drivers/gpu/drm/gma500/cdv_intel_crt.c struct drm_display_mode *mode) mode 70 drivers/gpu/drm/gma500/cdv_intel_crt.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 74 drivers/gpu/drm/gma500/cdv_intel_crt.c if (mode->clock < 20000) mode 78 drivers/gpu/drm/gma500/cdv_intel_crt.c if (mode->clock > 355000) mode 85 drivers/gpu/drm/gma500/cdv_intel_crt.c struct drm_display_mode *mode, mode 569 drivers/gpu/drm/gma500/cdv_intel_display.c struct drm_display_mode *mode, mode 672 drivers/gpu/drm/gma500/cdv_intel_display.c cdv_intel_dp_set_m_n(crtc, mode, adjusted_mode); mode 769 drivers/gpu/drm/gma500/cdv_intel_display.c drm_mode_debug_printmodeline(mode); mode 783 drivers/gpu/drm/gma500/cdv_intel_display.c int sdvo_pixel_multiply = adjusted_mode->clock / mode->clock; mode 803 drivers/gpu/drm/gma500/cdv_intel_display.c ((mode->vdisplay - 1) << 16) | (mode->hdisplay - 1)); mode 806 drivers/gpu/drm/gma500/cdv_intel_display.c ((mode->hdisplay - 1) << 16) | (mode->vdisplay - 1)); mode 926 drivers/gpu/drm/gma500/cdv_intel_display.c struct drm_display_mode *mode; mode 945 drivers/gpu/drm/gma500/cdv_intel_display.c mode = kzalloc(sizeof(*mode), GFP_KERNEL); mode 946 drivers/gpu/drm/gma500/cdv_intel_display.c if (!mode) mode 949 drivers/gpu/drm/gma500/cdv_intel_display.c mode->clock = cdv_intel_crtc_clock_get(dev, crtc); mode 950 drivers/gpu/drm/gma500/cdv_intel_display.c mode->hdisplay = (htot & 0xffff) + 1; mode 951 drivers/gpu/drm/gma500/cdv_intel_display.c mode->htotal = ((htot & 0xffff0000) >> 16) + 1; mode 952 drivers/gpu/drm/gma500/cdv_intel_display.c mode->hsync_start = (hsync & 0xffff) + 1; mode 953 drivers/gpu/drm/gma500/cdv_intel_display.c mode->hsync_end = ((hsync & 0xffff0000) >> 16) + 1; mode 954 drivers/gpu/drm/gma500/cdv_intel_display.c mode->vdisplay = (vtot & 0xffff) + 1; mode 955 drivers/gpu/drm/gma500/cdv_intel_display.c mode->vtotal = ((vtot & 0xffff0000) >> 16) + 1; mode 956 drivers/gpu/drm/gma500/cdv_intel_display.c mode->vsync_start = (vsync & 0xffff) + 1; mode 957 drivers/gpu/drm/gma500/cdv_intel_display.c mode->vsync_end = ((vsync & 0xffff0000) >> 16) + 1; mode 959 drivers/gpu/drm/gma500/cdv_intel_display.c drm_mode_set_name(mode); mode 960 drivers/gpu/drm/gma500/cdv_intel_display.c drm_mode_set_crtcinfo(mode, 0); mode 962 drivers/gpu/drm/gma500/cdv_intel_display.c return mode; mode 53 drivers/gpu/drm/gma500/cdv_intel_dp.c int mode, uint8_t write_byte, mode 59 drivers/gpu/drm/gma500/cdv_intel_dp.c i2c_algo_dp_aux_transaction(struct i2c_adapter *adapter, int mode, mode 65 drivers/gpu/drm/gma500/cdv_intel_dp.c ret = (*algo_data->aux_ch)(adapter, mode, mode 83 drivers/gpu/drm/gma500/cdv_intel_dp.c int mode = MODE_I2C_START; mode 87 drivers/gpu/drm/gma500/cdv_intel_dp.c mode |= MODE_I2C_READ; mode 89 drivers/gpu/drm/gma500/cdv_intel_dp.c mode |= MODE_I2C_WRITE; mode 92 drivers/gpu/drm/gma500/cdv_intel_dp.c ret = i2c_algo_dp_aux_transaction(adapter, mode, 0, NULL); mode 104 drivers/gpu/drm/gma500/cdv_intel_dp.c int mode = MODE_I2C_STOP; mode 107 drivers/gpu/drm/gma500/cdv_intel_dp.c mode |= MODE_I2C_READ; mode 109 drivers/gpu/drm/gma500/cdv_intel_dp.c mode |= MODE_I2C_WRITE; mode 111 drivers/gpu/drm/gma500/cdv_intel_dp.c (void) i2c_algo_dp_aux_transaction(adapter, mode, 0, NULL); mode 511 drivers/gpu/drm/gma500/cdv_intel_dp.c struct drm_display_mode *mode) mode 520 drivers/gpu/drm/gma500/cdv_intel_dp.c if (mode->hdisplay > intel_dp->panel_fixed_mode->hdisplay) mode 522 drivers/gpu/drm/gma500/cdv_intel_dp.c if (mode->vdisplay > intel_dp->panel_fixed_mode->vdisplay) mode 529 drivers/gpu/drm/gma500/cdv_intel_dp.c (cdv_intel_dp_link_required(mode->clock, dev_priv->edp.bpp) mode 534 drivers/gpu/drm/gma500/cdv_intel_dp.c if (cdv_intel_dp_link_required(mode->clock, 24) mode 539 drivers/gpu/drm/gma500/cdv_intel_dp.c if (mode->clock < 10000) mode 750 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_i2c_aux_ch(struct i2c_adapter *adapter, int mode, mode 767 drivers/gpu/drm/gma500/cdv_intel_dp.c if (mode & MODE_I2C_READ) mode 772 drivers/gpu/drm/gma500/cdv_intel_dp.c if (!(mode & MODE_I2C_STOP)) mode 778 drivers/gpu/drm/gma500/cdv_intel_dp.c switch (mode) { mode 825 drivers/gpu/drm/gma500/cdv_intel_dp.c if (mode == MODE_I2C_READ) { mode 895 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_mode_fixup(struct drm_encoder *encoder, const struct drm_display_mode *mode, mode 905 drivers/gpu/drm/gma500/cdv_intel_dp.c int refclock = mode->clock; mode 986 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_set_m_n(struct drm_crtc *crtc, struct drm_display_mode *mode, mode 1026 drivers/gpu/drm/gma500/cdv_intel_dp.c mode->clock, adjusted_mode->clock, &m_n); mode 1039 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode, mode 1095 drivers/gpu/drm/gma500/cdv_intel_dp.c if (mode->hdisplay != adjusted_mode->hdisplay || mode 1096 drivers/gpu/drm/gma500/cdv_intel_dp.c mode->vdisplay != adjusted_mode->vdisplay) mode 1109 drivers/gpu/drm/gma500/cdv_intel_dp.c static void cdv_intel_dp_sink_dpms(struct gma_encoder *encoder, int mode) mode 1118 drivers/gpu/drm/gma500/cdv_intel_dp.c if (mode != DRM_MODE_DPMS_ON) { mode 1170 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_dpms(struct drm_encoder *encoder, int mode) mode 1178 drivers/gpu/drm/gma500/cdv_intel_dp.c if (mode != DRM_MODE_DPMS_ON) { mode 1183 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_sink_dpms(intel_encoder, mode); mode 1192 drivers/gpu/drm/gma500/cdv_intel_dp.c cdv_intel_dp_sink_dpms(intel_encoder, mode); mode 1808 drivers/gpu/drm/gma500/cdv_intel_dp.c struct drm_display_mode *mode; mode 1809 drivers/gpu/drm/gma500/cdv_intel_dp.c mode = drm_mode_duplicate(dev, intel_dp->panel_fixed_mode); mode 1810 drivers/gpu/drm/gma500/cdv_intel_dp.c drm_mode_probed_add(connector, mode); mode 1889 drivers/gpu/drm/gma500/cdv_intel_dp.c drm_crtc_helper_set_mode(crtc, &crtc->mode, mode 64 drivers/gpu/drm/gma500/cdv_intel_hdmi.c struct drm_display_mode *mode, mode 93 drivers/gpu/drm/gma500/cdv_intel_hdmi.c static void cdv_hdmi_dpms(struct drm_encoder *encoder, int mode) mode 102 drivers/gpu/drm/gma500/cdv_intel_hdmi.c if (mode != DRM_MODE_DPMS_ON) mode 228 drivers/gpu/drm/gma500/cdv_intel_hdmi.c struct drm_display_mode *mode) mode 230 drivers/gpu/drm/gma500/cdv_intel_hdmi.c if (mode->clock > 165000) mode 232 drivers/gpu/drm/gma500/cdv_intel_hdmi.c if (mode->clock < 20000) mode 236 drivers/gpu/drm/gma500/cdv_intel_hdmi.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 240 drivers/gpu/drm/gma500/cdv_intel_hdmi.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 216 drivers/gpu/drm/gma500/cdv_intel_lvds.c static void cdv_intel_lvds_encoder_dpms(struct drm_encoder *encoder, int mode) mode 219 drivers/gpu/drm/gma500/cdv_intel_lvds.c if (mode == DRM_MODE_DPMS_ON) mode 235 drivers/gpu/drm/gma500/cdv_intel_lvds.c struct drm_display_mode *mode) mode 243 drivers/gpu/drm/gma500/cdv_intel_lvds.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 247 drivers/gpu/drm/gma500/cdv_intel_lvds.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 251 drivers/gpu/drm/gma500/cdv_intel_lvds.c if (mode->hdisplay > fixed_mode->hdisplay) mode 253 drivers/gpu/drm/gma500/cdv_intel_lvds.c if (mode->vdisplay > fixed_mode->vdisplay) mode 260 drivers/gpu/drm/gma500/cdv_intel_lvds.c const struct drm_display_mode *mode, mode 340 drivers/gpu/drm/gma500/cdv_intel_lvds.c struct drm_display_mode *mode, mode 359 drivers/gpu/drm/gma500/cdv_intel_lvds.c if (mode->hdisplay != adjusted_mode->hdisplay || mode 360 drivers/gpu/drm/gma500/cdv_intel_lvds.c mode->vdisplay != adjusted_mode->vdisplay) mode 392 drivers/gpu/drm/gma500/cdv_intel_lvds.c struct drm_display_mode *mode = mode 394 drivers/gpu/drm/gma500/cdv_intel_lvds.c drm_mode_probed_add(connector, mode); mode 189 drivers/gpu/drm/gma500/gma_display.c void gma_crtc_dpms(struct drm_crtc *crtc, int mode) mode 205 drivers/gpu/drm/gma500/gma_display.c switch (mode) { mode 69 drivers/gpu/drm/gma500/gma_display.h extern void gma_crtc_dpms(struct drm_crtc *crtc, int mode); mode 430 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c int mdfld_dsi_dpi_timing_calculation(struct drm_display_mode *mode, mode 437 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c pclk_hactive = mode->hdisplay; mode 438 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c pclk_hfp = mode->hsync_start - mode->hdisplay; mode 439 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c pclk_hsync = mode->hsync_end - mode->hsync_start; mode 440 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c pclk_hbp = mode->htotal - mode->hsync_end; mode 442 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c pclk_vfp = mode->vsync_start - mode->vdisplay; mode 443 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c pclk_vsync = mode->vsync_end - mode->vsync_start; mode 444 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c pclk_vbp = mode->vtotal - mode->vsync_end; mode 474 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c struct drm_display_mode *mode = dsi_config->mode; mode 507 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c (mode->vtotal * mode->htotal * dsi_config->bpp / mode 521 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c mode->vdisplay << 16 | mode->hdisplay); mode 524 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c mdfld_dsi_dpi_timing_calculation(mode, &dpi_timing, mode 683 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c void mdfld_dsi_dpi_dpms(struct drm_encoder *encoder, int mode) mode 685 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c mdfld_dsi_dpi_set_power(encoder, mode == DRM_MODE_DPMS_ON); mode 689 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c const struct drm_display_mode *mode, mode 748 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c struct drm_display_mode *mode = dsi_config->mode; mode 750 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c mdfld_dsi_dpi_timing_calculation(mode, &dpi_timing, mode 755 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c mode->vdisplay << 16 | mode->hdisplay); mode 797 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c struct drm_display_mode *mode = dsi_config->mode; mode 799 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c REG_WRITE(HTOTAL_A, ((mode->htotal - 1) << 16) | (mode->hdisplay - 1)); mode 800 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c REG_WRITE(HBLANK_A, ((mode->htotal - 1) << 16) | (mode->hdisplay - 1)); mode 802 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c ((mode->hsync_end - 1) << 16) | (mode->hsync_start - 1)); mode 804 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c REG_WRITE(VTOTAL_A, ((mode->vtotal - 1) << 16) | (mode->vdisplay - 1)); mode 805 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c REG_WRITE(VBLANK_A, ((mode->vtotal - 1) << 16) | (mode->vdisplay - 1)); mode 807 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c ((mode->vsync_end - 1) << 16) | (mode->vsync_start - 1)); mode 810 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c ((mode->hdisplay - 1) << 16) | (mode->vdisplay - 1)); mode 815 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c struct drm_display_mode *mode, mode 879 drivers/gpu/drm/gma500/mdfld_dsi_dpi.c ((mode->vdisplay - 1) << 16) | (mode->hdisplay - 1)); mode 58 drivers/gpu/drm/gma500/mdfld_dsi_dpi.h extern int mdfld_dsi_dpi_timing_calculation(struct drm_display_mode *mode, mode 66 drivers/gpu/drm/gma500/mdfld_dsi_dpi.h extern void mdfld_dsi_dpi_dpms(struct drm_encoder *encoder, int mode); mode 68 drivers/gpu/drm/gma500/mdfld_dsi_dpi.h const struct drm_display_mode *mode, mode 73 drivers/gpu/drm/gma500/mdfld_dsi_dpi.h struct drm_display_mode *mode, mode 202 drivers/gpu/drm/gma500/mdfld_dsi_output.c int mdfld_dsi_get_power_mode(struct mdfld_dsi_config *dsi_config, u32 *mode, mode 205 drivers/gpu/drm/gma500/mdfld_dsi_output.c if (!dsi_config || !mode) { mode 210 drivers/gpu/drm/gma500/mdfld_dsi_output.c return mdfld_dsi_get_panel_status(dsi_config, 0x0a, mode, hs); mode 352 drivers/gpu/drm/gma500/mdfld_dsi_output.c struct drm_display_mode *mode) mode 360 drivers/gpu/drm/gma500/mdfld_dsi_output.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 363 drivers/gpu/drm/gma500/mdfld_dsi_output.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 372 drivers/gpu/drm/gma500/mdfld_dsi_output.c if (mode->hdisplay != fixed_mode->hdisplay) mode 375 drivers/gpu/drm/gma500/mdfld_dsi_output.c if (mode->vdisplay != fixed_mode->vdisplay) mode 530 drivers/gpu/drm/gma500/mdfld_dsi_output.c dsi_config->mode = dsi_config->fixed_mode; mode 252 drivers/gpu/drm/gma500/mdfld_dsi_output.h struct drm_display_mode *mode; mode 374 drivers/gpu/drm/gma500/mdfld_dsi_output.h u32 *mode, bool hs); mode 295 drivers/gpu/drm/gma500/mdfld_intel_display.c static void mdfld_crtc_dpms(struct drm_crtc *crtc, int mode) mode 306 drivers/gpu/drm/gma500/mdfld_intel_display.c dev_dbg(dev->dev, "mode = %d, pipe = %d\n", mode, pipe); mode 317 drivers/gpu/drm/gma500/mdfld_intel_display.c switch (mode) { mode 657 drivers/gpu/drm/gma500/mdfld_intel_display.c struct drm_display_mode *mode, mode 688 drivers/gpu/drm/gma500/mdfld_intel_display.c android_hdmi_crtc_mode_set(crtc, mode, adjusted_mode, mode 717 drivers/gpu/drm/gma500/mdfld_intel_display.c mode->hdisplay); mode 719 drivers/gpu/drm/gma500/mdfld_intel_display.c mode->vdisplay); mode 724 drivers/gpu/drm/gma500/mdfld_intel_display.c memcpy(&gma_crtc->saved_mode, mode, mode 774 drivers/gpu/drm/gma500/mdfld_intel_display.c REG_WRITE(map->size, ((min(mode->crtc_vdisplay, adjusted_mode->crtc_vdisplay) - 1) << 16) mode 775 drivers/gpu/drm/gma500/mdfld_intel_display.c | (min(mode->crtc_hdisplay, adjusted_mode->crtc_hdisplay) - 1)); mode 777 drivers/gpu/drm/gma500/mdfld_intel_display.c REG_WRITE(map->src, ((mode->crtc_hdisplay - 1) << 16) mode 778 drivers/gpu/drm/gma500/mdfld_intel_display.c | (mode->crtc_vdisplay - 1)); mode 781 drivers/gpu/drm/gma500/mdfld_intel_display.c ((mode->crtc_vdisplay - 1) << 16) | mode 782 drivers/gpu/drm/gma500/mdfld_intel_display.c (mode->crtc_hdisplay - 1)); mode 784 drivers/gpu/drm/gma500/mdfld_intel_display.c ((mode->crtc_hdisplay - 1) << 16) | mode 785 drivers/gpu/drm/gma500/mdfld_intel_display.c (mode->crtc_vdisplay - 1)); mode 802 drivers/gpu/drm/gma500/mdfld_intel_display.c mode->crtc_hdisplay) / 2; mode 804 drivers/gpu/drm/gma500/mdfld_intel_display.c mode->crtc_vdisplay) / 2; mode 806 drivers/gpu/drm/gma500/mdfld_intel_display.c REG_WRITE(map->htotal, (mode->crtc_hdisplay - 1) | mode 808 drivers/gpu/drm/gma500/mdfld_intel_display.c REG_WRITE(map->vtotal, (mode->crtc_vdisplay - 1) | mode 37 drivers/gpu/drm/gma500/mdfld_tmd_vid.c struct drm_display_mode *mode; mode 42 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode = kzalloc(sizeof(*mode), GFP_KERNEL); mode 43 drivers/gpu/drm/gma500/mdfld_tmd_vid.c if (!mode) mode 47 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; mode 48 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->vdisplay = (ti->vactive_hi << 8) | ti->vactive_lo; mode 49 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->hsync_start = mode->hdisplay + \ mode 52 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->hsync_end = mode->hsync_start + \ mode 55 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ mode 57 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->vsync_start = \ mode 58 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->vdisplay + ((ti->vsync_offset_hi << 8) | \ mode 60 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->vsync_end = \ mode 61 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->vsync_start + ((ti->vsync_pulse_width_hi << 8) | \ mode 63 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->vtotal = mode->vdisplay + \ mode 65 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->clock = ti->pixel_clock * 10; mode 67 drivers/gpu/drm/gma500/mdfld_tmd_vid.c dev_dbg(dev->dev, "hdisplay is %d\n", mode->hdisplay); mode 68 drivers/gpu/drm/gma500/mdfld_tmd_vid.c dev_dbg(dev->dev, "vdisplay is %d\n", mode->vdisplay); mode 69 drivers/gpu/drm/gma500/mdfld_tmd_vid.c dev_dbg(dev->dev, "HSS is %d\n", mode->hsync_start); mode 70 drivers/gpu/drm/gma500/mdfld_tmd_vid.c dev_dbg(dev->dev, "HSE is %d\n", mode->hsync_end); mode 71 drivers/gpu/drm/gma500/mdfld_tmd_vid.c dev_dbg(dev->dev, "htotal is %d\n", mode->htotal); mode 72 drivers/gpu/drm/gma500/mdfld_tmd_vid.c dev_dbg(dev->dev, "VSS is %d\n", mode->vsync_start); mode 73 drivers/gpu/drm/gma500/mdfld_tmd_vid.c dev_dbg(dev->dev, "VSE is %d\n", mode->vsync_end); mode 74 drivers/gpu/drm/gma500/mdfld_tmd_vid.c dev_dbg(dev->dev, "vtotal is %d\n", mode->vtotal); mode 75 drivers/gpu/drm/gma500/mdfld_tmd_vid.c dev_dbg(dev->dev, "clock is %d\n", mode->clock); mode 77 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->hdisplay = 480; mode 78 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->vdisplay = 854; mode 79 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->hsync_start = 487; mode 80 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->hsync_end = 490; mode 81 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->htotal = 499; mode 82 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->vsync_start = 861; mode 83 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->vsync_end = 865; mode 84 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->vtotal = 873; mode 85 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->clock = 33264; mode 88 drivers/gpu/drm/gma500/mdfld_tmd_vid.c drm_mode_set_name(mode); mode 89 drivers/gpu/drm/gma500/mdfld_tmd_vid.c drm_mode_set_crtcinfo(mode, 0); mode 91 drivers/gpu/drm/gma500/mdfld_tmd_vid.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 93 drivers/gpu/drm/gma500/mdfld_tmd_vid.c return mode; mode 32 drivers/gpu/drm/gma500/mdfld_tpo_vid.c struct drm_display_mode *mode; mode 34 drivers/gpu/drm/gma500/mdfld_tpo_vid.c mode = kzalloc(sizeof(*mode), GFP_KERNEL); mode 35 drivers/gpu/drm/gma500/mdfld_tpo_vid.c if (!mode) mode 38 drivers/gpu/drm/gma500/mdfld_tpo_vid.c mode->hdisplay = 864; mode 39 drivers/gpu/drm/gma500/mdfld_tpo_vid.c mode->vdisplay = 480; mode 40 drivers/gpu/drm/gma500/mdfld_tpo_vid.c mode->hsync_start = 873; mode 41 drivers/gpu/drm/gma500/mdfld_tpo_vid.c mode->hsync_end = 876; mode 42 drivers/gpu/drm/gma500/mdfld_tpo_vid.c mode->htotal = 887; mode 43 drivers/gpu/drm/gma500/mdfld_tpo_vid.c mode->vsync_start = 487; mode 44 drivers/gpu/drm/gma500/mdfld_tpo_vid.c mode->vsync_end = 490; mode 45 drivers/gpu/drm/gma500/mdfld_tpo_vid.c mode->vtotal = 499; mode 46 drivers/gpu/drm/gma500/mdfld_tpo_vid.c mode->clock = 33264; mode 48 drivers/gpu/drm/gma500/mdfld_tpo_vid.c drm_mode_set_name(mode); mode 49 drivers/gpu/drm/gma500/mdfld_tpo_vid.c drm_mode_set_crtcinfo(mode, 0); mode 51 drivers/gpu/drm/gma500/mdfld_tpo_vid.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 53 drivers/gpu/drm/gma500/mdfld_tpo_vid.c return mode; mode 242 drivers/gpu/drm/gma500/oaktrail.h extern int oaktrail_crtc_hdmi_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode, mode 245 drivers/gpu/drm/gma500/oaktrail.h extern void oaktrail_crtc_hdmi_dpms(struct drm_crtc *crtc, int mode); mode 214 drivers/gpu/drm/gma500/oaktrail_crtc.c static void oaktrail_crtc_dpms(struct drm_crtc *crtc, int mode) mode 226 drivers/gpu/drm/gma500/oaktrail_crtc.c oaktrail_crtc_hdmi_dpms(crtc, mode); mode 236 drivers/gpu/drm/gma500/oaktrail_crtc.c switch (mode) { mode 357 drivers/gpu/drm/gma500/oaktrail_crtc.c struct drm_display_mode *mode, mode 382 drivers/gpu/drm/gma500/oaktrail_crtc.c return oaktrail_crtc_hdmi_mode_set(crtc, mode, adjusted_mode, x, y, old_fb); mode 388 drivers/gpu/drm/gma500/oaktrail_crtc.c mode, mode 422 drivers/gpu/drm/gma500/oaktrail_crtc.c REG_WRITE_WITH_AUX(map->src, ((mode->crtc_hdisplay - 1) << 16) | mode 423 drivers/gpu/drm/gma500/oaktrail_crtc.c (mode->crtc_vdisplay - 1), i); mode 437 drivers/gpu/drm/gma500/oaktrail_crtc.c mode->crtc_hdisplay) / 2; mode 439 drivers/gpu/drm/gma500/oaktrail_crtc.c mode->crtc_vdisplay) / 2; mode 442 drivers/gpu/drm/gma500/oaktrail_crtc.c REG_WRITE_WITH_AUX(map->htotal, (mode->crtc_hdisplay - 1) | mode 444 drivers/gpu/drm/gma500/oaktrail_crtc.c REG_WRITE_WITH_AUX(map->vtotal, (mode->crtc_vdisplay - 1) | mode 535 drivers/gpu/drm/gma500/oaktrail_crtc.c adjusted_mode->clock / mode->clock; mode 160 drivers/gpu/drm/gma500/oaktrail_hdmi.c static unsigned int htotal_calculate(struct drm_display_mode *mode) mode 164 drivers/gpu/drm/gma500/oaktrail_hdmi.c htotal = (mode->crtc_hdisplay - 1) | ((mode->crtc_htotal - 1) << 16); mode 170 drivers/gpu/drm/gma500/oaktrail_hdmi.c new_crtc_htotal = (mode->crtc_htotal - 1) * 200 * 1000 / mode->clock; mode 173 drivers/gpu/drm/gma500/oaktrail_hdmi.c return (mode->crtc_hdisplay - 1) | (new_crtc_htotal << 16); mode 262 drivers/gpu/drm/gma500/oaktrail_hdmi.c struct drm_display_mode *mode, mode 334 drivers/gpu/drm/gma500/oaktrail_hdmi.c REG_WRITE(pipesrc_reg, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); mode 342 drivers/gpu/drm/gma500/oaktrail_hdmi.c REG_WRITE(PCH_PIPEBSRC, ((mode->crtc_hdisplay - 1) << 16) | (mode->crtc_vdisplay - 1)); mode 347 drivers/gpu/drm/gma500/oaktrail_hdmi.c REG_WRITE(dspsize_reg, ((mode->vdisplay - 1) << 16) | (mode->hdisplay - 1)); mode 381 drivers/gpu/drm/gma500/oaktrail_hdmi.c void oaktrail_crtc_hdmi_dpms(struct drm_crtc *crtc, int mode) mode 386 drivers/gpu/drm/gma500/oaktrail_hdmi.c DRM_DEBUG_KMS("%s %d\n", __func__, mode); mode 388 drivers/gpu/drm/gma500/oaktrail_hdmi.c switch (mode) { mode 493 drivers/gpu/drm/gma500/oaktrail_hdmi.c static void oaktrail_hdmi_dpms(struct drm_encoder *encoder, int mode) mode 502 drivers/gpu/drm/gma500/oaktrail_hdmi.c if (dpms_mode == mode) mode 505 drivers/gpu/drm/gma500/oaktrail_hdmi.c if (mode != DRM_MODE_DPMS_ON) mode 510 drivers/gpu/drm/gma500/oaktrail_hdmi.c dpms_mode = mode; mode 515 drivers/gpu/drm/gma500/oaktrail_hdmi.c struct drm_display_mode *mode) mode 517 drivers/gpu/drm/gma500/oaktrail_hdmi.c if (mode->clock > 165000) mode 519 drivers/gpu/drm/gma500/oaktrail_hdmi.c if (mode->clock < 20000) mode 522 drivers/gpu/drm/gma500/oaktrail_hdmi.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 590 drivers/gpu/drm/gma500/oaktrail_hdmi.c struct drm_display_mode *mode, mode 66 drivers/gpu/drm/gma500/oaktrail_lvds.c static void oaktrail_lvds_dpms(struct drm_encoder *encoder, int mode) mode 71 drivers/gpu/drm/gma500/oaktrail_lvds.c if (mode == DRM_MODE_DPMS_ON) mode 80 drivers/gpu/drm/gma500/oaktrail_lvds.c struct drm_display_mode *mode, mode 131 drivers/gpu/drm/gma500/oaktrail_lvds.c if ((mode->vdisplay != adjusted_mode->crtc_vdisplay) || mode 132 drivers/gpu/drm/gma500/oaktrail_lvds.c (mode->hdisplay != adjusted_mode->crtc_hdisplay)) { mode 133 drivers/gpu/drm/gma500/oaktrail_lvds.c if ((adjusted_mode->crtc_hdisplay * mode->vdisplay) == mode 134 drivers/gpu/drm/gma500/oaktrail_lvds.c (mode->hdisplay * adjusted_mode->crtc_vdisplay)) mode 137 drivers/gpu/drm/gma500/oaktrail_lvds.c mode->vdisplay) > (mode->hdisplay * mode 214 drivers/gpu/drm/gma500/oaktrail_lvds.c struct drm_display_mode *mode = NULL; mode 222 drivers/gpu/drm/gma500/oaktrail_lvds.c mode = kzalloc(sizeof(*mode), GFP_KERNEL); mode 223 drivers/gpu/drm/gma500/oaktrail_lvds.c if (!mode) mode 226 drivers/gpu/drm/gma500/oaktrail_lvds.c mode->hdisplay = (ti->hactive_hi << 8) | ti->hactive_lo; mode 227 drivers/gpu/drm/gma500/oaktrail_lvds.c mode->vdisplay = (ti->vactive_hi << 8) | ti->vactive_lo; mode 228 drivers/gpu/drm/gma500/oaktrail_lvds.c mode->hsync_start = mode->hdisplay + \ mode 231 drivers/gpu/drm/gma500/oaktrail_lvds.c mode->hsync_end = mode->hsync_start + \ mode 234 drivers/gpu/drm/gma500/oaktrail_lvds.c mode->htotal = mode->hdisplay + ((ti->hblank_hi << 8) | \ mode 236 drivers/gpu/drm/gma500/oaktrail_lvds.c mode->vsync_start = \ mode 237 drivers/gpu/drm/gma500/oaktrail_lvds.c mode->vdisplay + ((ti->vsync_offset_hi << 4) | \ mode 239 drivers/gpu/drm/gma500/oaktrail_lvds.c mode->vsync_end = \ mode 240 drivers/gpu/drm/gma500/oaktrail_lvds.c mode->vsync_start + ((ti->vsync_pulse_width_hi << 4) | \ mode 242 drivers/gpu/drm/gma500/oaktrail_lvds.c mode->vtotal = mode->vdisplay + \ mode 244 drivers/gpu/drm/gma500/oaktrail_lvds.c mode->clock = ti->pixel_clock * 10; mode 246 drivers/gpu/drm/gma500/oaktrail_lvds.c pr_info("hdisplay is %d\n", mode->hdisplay); mode 247 drivers/gpu/drm/gma500/oaktrail_lvds.c pr_info("vdisplay is %d\n", mode->vdisplay); mode 248 drivers/gpu/drm/gma500/oaktrail_lvds.c pr_info("HSS is %d\n", mode->hsync_start); mode 249 drivers/gpu/drm/gma500/oaktrail_lvds.c pr_info("HSE is %d\n", mode->hsync_end); mode 250 drivers/gpu/drm/gma500/oaktrail_lvds.c pr_info("htotal is %d\n", mode->htotal); mode 251 drivers/gpu/drm/gma500/oaktrail_lvds.c pr_info("VSS is %d\n", mode->vsync_start); mode 252 drivers/gpu/drm/gma500/oaktrail_lvds.c pr_info("VSE is %d\n", mode->vsync_end); mode 253 drivers/gpu/drm/gma500/oaktrail_lvds.c pr_info("vtotal is %d\n", mode->vtotal); mode 254 drivers/gpu/drm/gma500/oaktrail_lvds.c pr_info("clock is %d\n", mode->clock); mode 256 drivers/gpu/drm/gma500/oaktrail_lvds.c mode_dev->panel_fixed_mode = mode; mode 92 drivers/gpu/drm/gma500/psb_intel_display.c struct drm_display_mode *mode, mode 160 drivers/gpu/drm/gma500/psb_intel_display.c adjusted_mode->clock / mode->clock; mode 210 drivers/gpu/drm/gma500/psb_intel_display.c drm_mode_debug_printmodeline(mode); mode 277 drivers/gpu/drm/gma500/psb_intel_display.c ((mode->vdisplay - 1) << 16) | (mode->hdisplay - 1)); mode 280 drivers/gpu/drm/gma500/psb_intel_display.c ((mode->hdisplay - 1) << 16) | (mode->vdisplay - 1)); mode 378 drivers/gpu/drm/gma500/psb_intel_display.c struct drm_display_mode *mode; mode 400 drivers/gpu/drm/gma500/psb_intel_display.c mode = kzalloc(sizeof(*mode), GFP_KERNEL); mode 401 drivers/gpu/drm/gma500/psb_intel_display.c if (!mode) mode 404 drivers/gpu/drm/gma500/psb_intel_display.c mode->clock = psb_intel_crtc_clock_get(dev, crtc); mode 405 drivers/gpu/drm/gma500/psb_intel_display.c mode->hdisplay = (htot & 0xffff) + 1; mode 406 drivers/gpu/drm/gma500/psb_intel_display.c mode->htotal = ((htot & 0xffff0000) >> 16) + 1; mode 407 drivers/gpu/drm/gma500/psb_intel_display.c mode->hsync_start = (hsync & 0xffff) + 1; mode 408 drivers/gpu/drm/gma500/psb_intel_display.c mode->hsync_end = ((hsync & 0xffff0000) >> 16) + 1; mode 409 drivers/gpu/drm/gma500/psb_intel_display.c mode->vdisplay = (vtot & 0xffff) + 1; mode 410 drivers/gpu/drm/gma500/psb_intel_display.c mode->vtotal = ((vtot & 0xffff0000) >> 16) + 1; mode 411 drivers/gpu/drm/gma500/psb_intel_display.c mode->vsync_start = (vsync & 0xffff) + 1; mode 412 drivers/gpu/drm/gma500/psb_intel_display.c mode->vsync_end = ((vsync & 0xffff0000) >> 16) + 1; mode 414 drivers/gpu/drm/gma500/psb_intel_display.c drm_mode_set_name(mode); mode 415 drivers/gpu/drm/gma500/psb_intel_display.c drm_mode_set_crtcinfo(mode, 0); mode 417 drivers/gpu/drm/gma500/psb_intel_display.c return mode; mode 62 drivers/gpu/drm/gma500/psb_intel_drv.h psb_intel_mode_set_pixel_multiplier(struct drm_display_mode *mode, mode 65 drivers/gpu/drm/gma500/psb_intel_drv.h mode->clock *= multiplier; mode 66 drivers/gpu/drm/gma500/psb_intel_drv.h mode->private_flags |= multiplier; mode 70 drivers/gpu/drm/gma500/psb_intel_drv.h psb_intel_mode_get_pixel_multiplier(const struct drm_display_mode *mode) mode 72 drivers/gpu/drm/gma500/psb_intel_drv.h return (mode->private_flags & INTEL_MODE_PIXEL_MULTIPLIER_MASK) mode 244 drivers/gpu/drm/gma500/psb_intel_drv.h const struct drm_display_mode *mode, mode 247 drivers/gpu/drm/gma500/psb_intel_drv.h struct drm_display_mode *mode); mode 264 drivers/gpu/drm/gma500/psb_intel_drv.h struct drm_display_mode *mode, mode 240 drivers/gpu/drm/gma500/psb_intel_lvds.c static void psb_intel_lvds_encoder_dpms(struct drm_encoder *encoder, int mode) mode 244 drivers/gpu/drm/gma500/psb_intel_lvds.c if (mode == DRM_MODE_DPMS_ON) mode 334 drivers/gpu/drm/gma500/psb_intel_lvds.c struct drm_display_mode *mode) mode 345 drivers/gpu/drm/gma500/psb_intel_lvds.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 349 drivers/gpu/drm/gma500/psb_intel_lvds.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 353 drivers/gpu/drm/gma500/psb_intel_lvds.c if (mode->hdisplay > fixed_mode->hdisplay) mode 355 drivers/gpu/drm/gma500/psb_intel_lvds.c if (mode->vdisplay > fixed_mode->vdisplay) mode 362 drivers/gpu/drm/gma500/psb_intel_lvds.c const struct drm_display_mode *mode, mode 456 drivers/gpu/drm/gma500/psb_intel_lvds.c struct drm_display_mode *mode, mode 474 drivers/gpu/drm/gma500/psb_intel_lvds.c if (mode->hdisplay != adjusted_mode->hdisplay || mode 475 drivers/gpu/drm/gma500/psb_intel_lvds.c mode->vdisplay != adjusted_mode->vdisplay) mode 507 drivers/gpu/drm/gma500/psb_intel_lvds.c struct drm_display_mode *mode = mode 509 drivers/gpu/drm/gma500/psb_intel_lvds.c drm_mode_probed_add(connector, mode); mode 545 drivers/gpu/drm/gma500/psb_intel_sdvo.c static int psb_intel_sdvo_get_pixel_multiplier(struct drm_display_mode *mode) mode 547 drivers/gpu/drm/gma500/psb_intel_sdvo.c if (mode->clock >= 100000) mode 549 drivers/gpu/drm/gma500/psb_intel_sdvo.c else if (mode->clock >= 50000) mode 618 drivers/gpu/drm/gma500/psb_intel_sdvo.c int mode) mode 622 drivers/gpu/drm/gma500/psb_intel_sdvo.c switch (mode) { mode 729 drivers/gpu/drm/gma500/psb_intel_sdvo.c const struct drm_display_mode *mode) mode 735 drivers/gpu/drm/gma500/psb_intel_sdvo.c width = mode->crtc_hdisplay; mode 736 drivers/gpu/drm/gma500/psb_intel_sdvo.c height = mode->crtc_vdisplay; mode 739 drivers/gpu/drm/gma500/psb_intel_sdvo.c h_blank_len = mode->crtc_hblank_end - mode->crtc_hblank_start; mode 740 drivers/gpu/drm/gma500/psb_intel_sdvo.c h_sync_len = mode->crtc_hsync_end - mode->crtc_hsync_start; mode 742 drivers/gpu/drm/gma500/psb_intel_sdvo.c v_blank_len = mode->crtc_vblank_end - mode->crtc_vblank_start; mode 743 drivers/gpu/drm/gma500/psb_intel_sdvo.c v_sync_len = mode->crtc_vsync_end - mode->crtc_vsync_start; mode 745 drivers/gpu/drm/gma500/psb_intel_sdvo.c h_sync_offset = mode->crtc_hsync_start - mode->crtc_hblank_start; mode 746 drivers/gpu/drm/gma500/psb_intel_sdvo.c v_sync_offset = mode->crtc_vsync_start - mode->crtc_vblank_start; mode 748 drivers/gpu/drm/gma500/psb_intel_sdvo.c dtd->part1.clock = mode->clock / 10; mode 767 drivers/gpu/drm/gma500/psb_intel_sdvo.c if (mode->flags & DRM_MODE_FLAG_PHSYNC) mode 769 drivers/gpu/drm/gma500/psb_intel_sdvo.c if (mode->flags & DRM_MODE_FLAG_PVSYNC) mode 777 drivers/gpu/drm/gma500/psb_intel_sdvo.c static void psb_intel_sdvo_get_mode_from_dtd(struct drm_display_mode * mode, mode 780 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->hdisplay = dtd->part1.h_active; mode 781 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->hdisplay += ((dtd->part1.h_high >> 4) & 0x0f) << 8; mode 782 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->hsync_start = mode->hdisplay + dtd->part2.h_sync_off; mode 783 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->hsync_start += (dtd->part2.sync_off_width_high & 0xc0) << 2; mode 784 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->hsync_end = mode->hsync_start + dtd->part2.h_sync_width; mode 785 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->hsync_end += (dtd->part2.sync_off_width_high & 0x30) << 4; mode 786 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->htotal = mode->hdisplay + dtd->part1.h_blank; mode 787 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->htotal += (dtd->part1.h_high & 0xf) << 8; mode 789 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vdisplay = dtd->part1.v_active; mode 790 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vdisplay += ((dtd->part1.v_high >> 4) & 0x0f) << 8; mode 791 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vsync_start = mode->vdisplay; mode 792 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vsync_start += (dtd->part2.v_sync_off_width >> 4) & 0xf; mode 793 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vsync_start += (dtd->part2.sync_off_width_high & 0x0c) << 2; mode 794 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vsync_start += dtd->part2.v_sync_off_high & 0xc0; mode 795 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vsync_end = mode->vsync_start + mode 797 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vsync_end += (dtd->part2.sync_off_width_high & 0x3) << 4; mode 798 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vtotal = mode->vdisplay + dtd->part1.v_blank; mode 799 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vtotal += (dtd->part1.v_high & 0xf) << 8; mode 801 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->clock = dtd->part1.clock * 10; mode 803 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->flags &= ~(DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC); mode 805 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->flags |= DRM_MODE_FLAG_PHSYNC; mode 807 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->flags |= DRM_MODE_FLAG_PVSYNC; mode 821 drivers/gpu/drm/gma500/psb_intel_sdvo.c uint8_t mode) mode 823 drivers/gpu/drm/gma500/psb_intel_sdvo.c return psb_intel_sdvo_set_value(psb_intel_sdvo, SDVO_CMD_SET_ENCODE, &mode, 1); mode 827 drivers/gpu/drm/gma500/psb_intel_sdvo.c uint8_t mode) mode 829 drivers/gpu/drm/gma500/psb_intel_sdvo.c return psb_intel_sdvo_set_value(psb_intel_sdvo, SDVO_CMD_SET_COLORIMETRY, &mode, 1); mode 916 drivers/gpu/drm/gma500/psb_intel_sdvo.c const struct drm_display_mode *mode) mode 924 drivers/gpu/drm/gma500/psb_intel_sdvo.c psb_intel_sdvo_get_dtd_from_mode(&output_dtd, mode); mode 933 drivers/gpu/drm/gma500/psb_intel_sdvo.c const struct drm_display_mode *mode, mode 941 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->clock / 10, mode 942 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->hdisplay, mode 943 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode->vdisplay)) mode 957 drivers/gpu/drm/gma500/psb_intel_sdvo.c const struct drm_display_mode *mode, mode 969 drivers/gpu/drm/gma500/psb_intel_sdvo.c if (!psb_intel_sdvo_set_output_timings_from_mode(psb_intel_sdvo, mode)) mode 973 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode, mode 981 drivers/gpu/drm/gma500/psb_intel_sdvo.c mode, mode 995 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct drm_display_mode *mode, mode 1009 drivers/gpu/drm/gma500/psb_intel_sdvo.c if (!mode) mode 1102 drivers/gpu/drm/gma500/psb_intel_sdvo.c static void psb_intel_sdvo_dpms(struct drm_encoder *encoder, int mode) mode 1110 drivers/gpu/drm/gma500/psb_intel_sdvo.c switch (mode) { mode 1118 drivers/gpu/drm/gma500/psb_intel_sdvo.c DRM_DEBUG("DPMS: %d", mode); mode 1121 drivers/gpu/drm/gma500/psb_intel_sdvo.c if (mode != DRM_MODE_DPMS_ON) { mode 1124 drivers/gpu/drm/gma500/psb_intel_sdvo.c psb_intel_sdvo_set_encoder_power_state(psb_intel_sdvo, mode); mode 1126 drivers/gpu/drm/gma500/psb_intel_sdvo.c if (mode == DRM_MODE_DPMS_OFF) { mode 1162 drivers/gpu/drm/gma500/psb_intel_sdvo.c psb_intel_sdvo_set_encoder_power_state(psb_intel_sdvo, mode); mode 1169 drivers/gpu/drm/gma500/psb_intel_sdvo.c struct drm_display_mode *mode) mode 1173 drivers/gpu/drm/gma500/psb_intel_sdvo.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 1176 drivers/gpu/drm/gma500/psb_intel_sdvo.c if (psb_intel_sdvo->pixel_clock_min > mode->clock) mode 1179 drivers/gpu/drm/gma500/psb_intel_sdvo.c if (psb_intel_sdvo->pixel_clock_max < mode->clock) mode 1183 drivers/gpu/drm/gma500/psb_intel_sdvo.c if (mode->hdisplay > psb_intel_sdvo->sdvo_lvds_fixed_mode->hdisplay) mode 1186 drivers/gpu/drm/gma500/psb_intel_sdvo.c if (mode->vdisplay > psb_intel_sdvo->sdvo_lvds_fixed_mode->vdisplay) mode 1804 drivers/gpu/drm/gma500/psb_intel_sdvo.c drm_crtc_helper_set_mode(crtc, &crtc->mode, crtc->x, mode 1833 drivers/gpu/drm/gma500/psb_intel_sdvo.c drm_crtc_helper_set_mode(crtc, &crtc->mode, crtc->x, crtc->y, mode 582 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c struct drm_display_mode *mode; mode 586 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c mode = kzalloc(sizeof(*mode), GFP_KERNEL); mode 587 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c if (!mode) mode 591 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c mode->hdisplay = 1280; mode 592 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c mode->vdisplay = 800; mode 593 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c mode->hsync_start = 1360; mode 594 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c mode->hsync_end = 1400; mode 595 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c mode->htotal = 1440; mode 596 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c mode->vsync_start = 814; mode 597 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c mode->vsync_end = 824; mode 598 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c mode->vtotal = 838; mode 599 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c mode->clock = 33324 << 1; mode 601 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c dev_info(&dev->pdev->dev, "hdisplay(w) = %d\n", mode->hdisplay); mode 602 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c dev_info(&dev->pdev->dev, "vdisplay(h) = %d\n", mode->vdisplay); mode 603 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c dev_info(&dev->pdev->dev, "HSS = %d\n", mode->hsync_start); mode 604 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c dev_info(&dev->pdev->dev, "HSE = %d\n", mode->hsync_end); mode 605 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c dev_info(&dev->pdev->dev, "htotal = %d\n", mode->htotal); mode 606 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c dev_info(&dev->pdev->dev, "VSS = %d\n", mode->vsync_start); mode 607 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c dev_info(&dev->pdev->dev, "VSE = %d\n", mode->vsync_end); mode 608 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c dev_info(&dev->pdev->dev, "vtotal = %d\n", mode->vtotal); mode 609 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c dev_info(&dev->pdev->dev, "clock = %d\n", mode->clock); mode 611 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c drm_mode_set_name(mode); mode 612 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c drm_mode_set_crtcinfo(mode, 0); mode 614 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 616 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c return mode; mode 312 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c struct drm_display_mode *mode, mode 320 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c x = mode->hdisplay; mode 321 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c y = mode->vdisplay; mode 364 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c struct drm_display_mode *mode = &crtc->state->mode; mode 367 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c int width = mode->hsync_end - mode->hsync_start; mode 368 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c int height = mode->vsync_end - mode->vsync_start; mode 371 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c writel(HIBMC_FIELD(HIBMC_CRT_HORZ_TOTAL_TOTAL, mode->htotal - 1) | mode 372 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c HIBMC_FIELD(HIBMC_CRT_HORZ_TOTAL_DISP_END, mode->hdisplay - 1), mode 376 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c HIBMC_FIELD(HIBMC_CRT_HORZ_SYNC_START, mode->hsync_start - 1), mode 379 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c writel(HIBMC_FIELD(HIBMC_CRT_VERT_TOTAL_TOTAL, mode->vtotal - 1) | mode 380 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c HIBMC_FIELD(HIBMC_CRT_VERT_TOTAL_DISP_END, mode->vdisplay - 1), mode 384 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c HIBMC_FIELD(HIBMC_CRT_VERT_SYNC_START, mode->vsync_start - 1), mode 392 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c display_ctrl_adjust(dev, mode, val); mode 154 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c unsigned int mode; mode 158 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c mode = (readl(mmio + HIBMC_POWER_MODE_CTRL) & mode 161 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c switch (mode) { mode 27 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c struct drm_display_mode *mode) mode 73 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c struct drm_display_mode *mode, mode 448 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c struct drm_display_mode *mode, mode 463 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c val = (mode->flags & DRM_MODE_FLAG_NHSYNC ? 1 : 0) << 2; mode 464 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c val |= (mode->flags & DRM_MODE_FLAG_NVSYNC ? 1 : 0) << 1; mode 474 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c pixel_clk_kHz = mode->clock; mode 475 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c htot = mode->htotal; mode 476 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c vtot = mode->vtotal; mode 477 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c hfp = mode->hsync_start - mode->hdisplay; mode 478 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c hbp = mode->htotal - mode->hsync_end; mode 479 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c hsw = mode->hsync_end - mode->hsync_start; mode 480 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c vfp = mode->vsync_start - mode->vdisplay; mode 481 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c vbp = mode->vtotal - mode->vsync_end; mode 482 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c vsw = mode->vsync_end - mode->vsync_start; mode 501 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c writel(mode->vdisplay, base + VID_VACTIVE_LINES); mode 502 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c writel(mode->hdisplay, base + VID_PKT_SIZE); mode 540 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c struct drm_display_mode *mode = &dsi->cur_mode; mode 548 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c dphy_req_kHz = mode->clock * bpp / dsi->lanes; mode 558 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c dsi_set_mode_timing(base, phy->lane_byte_clk_kHz, mode, dsi->format); mode 567 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c dsi->lanes, mode->clock, phy->lane_byte_clk_kHz); mode 609 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c const struct drm_display_mode *mode) mode 618 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c req_kHz = mode->clock * bpp / dsi->lanes; mode 623 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c mode->hdisplay, mode->vdisplay, bpp, mode 624 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c drm_mode_vrefresh(mode), mode->clock); mode 630 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c if (mode->clock/dsi->lanes == lane_byte_clk_kHz/3) { mode 640 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c const struct drm_display_mode *mode) mode 659 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c drm_mode_copy(&adj_mode, mode); mode 663 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c if (!crtc_funcs->mode_fixup(crtc, mode, &adj_mode)) mode 674 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c struct drm_display_mode *mode, mode 141 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c const struct drm_display_mode *mode, mode 148 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c clk_round_rate(ctx->ade_pix_clk, mode->clock * 1000) / 1000; mode 154 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c struct drm_display_mode *mode, mode 157 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c u32 clk_Hz = mode->clock * 1000; mode 171 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c struct drm_display_mode *mode, mode 175 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c u32 width = mode->hdisplay; mode 176 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c u32 height = mode->vdisplay; mode 180 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c plr_flags = (mode->flags & DRM_MODE_FLAG_NVSYNC) ? FLAG_NVSYNC : 0; mode 181 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c plr_flags |= (mode->flags & DRM_MODE_FLAG_NHSYNC) ? FLAG_NHSYNC : 0; mode 182 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c hfp = mode->hsync_start - mode->hdisplay; mode 183 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c hbp = mode->htotal - mode->hsync_end; mode 184 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c hsw = mode->hsync_end - mode->hsync_start; mode 185 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c vfp = mode->vsync_start - mode->vdisplay; mode 186 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c vbp = mode->vtotal - mode->vsync_end; mode 187 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c vsw = mode->vsync_end - mode->vsync_start; mode 214 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c ade_set_pix_clk(ctx, mode, adj_mode); mode 479 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c struct drm_display_mode *mode = &crtc->state->mode; mode 484 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c ade_ldi_set_mode(ctx, mode, adj_mode); mode 492 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c struct drm_display_mode *mode = &crtc->state->mode; mode 497 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c ade_ldi_set_mode(ctx, mode, adj_mode); mode 53 drivers/gpu/drm/i2c/ch7006_drv.c static void ch7006_encoder_dpms(struct drm_encoder *encoder, int mode) mode 61 drivers/gpu/drm/i2c/ch7006_drv.c if (mode == priv->last_dpms) mode 63 drivers/gpu/drm/i2c/ch7006_drv.c priv->last_dpms = mode; mode 91 drivers/gpu/drm/i2c/ch7006_drv.c const struct drm_display_mode *mode, mode 99 drivers/gpu/drm/i2c/ch7006_drv.c priv->mode = ch7006_lookup_mode(encoder, mode); mode 101 drivers/gpu/drm/i2c/ch7006_drv.c return !!priv->mode; mode 105 drivers/gpu/drm/i2c/ch7006_drv.c struct drm_display_mode *mode) mode 107 drivers/gpu/drm/i2c/ch7006_drv.c if (ch7006_lookup_mode(encoder, mode)) mode 122 drivers/gpu/drm/i2c/ch7006_drv.c const struct ch7006_mode *mode = priv->mode; mode 128 drivers/gpu/drm/i2c/ch7006_drv.c regs[CH7006_DISPMODE] = norm->dispmode | mode->dispmode; mode 229 drivers/gpu/drm/i2c/ch7006_drv.c const struct ch7006_mode *mode; mode 232 drivers/gpu/drm/i2c/ch7006_drv.c for (mode = ch7006_modes; mode->mode.clock; mode++) { mode 233 drivers/gpu/drm/i2c/ch7006_drv.c if (~mode->valid_scales & 1<<priv->scale || mode 234 drivers/gpu/drm/i2c/ch7006_drv.c ~mode->valid_norms & 1<<priv->norm) mode 238 drivers/gpu/drm/i2c/ch7006_drv.c drm_mode_duplicate(encoder->dev, &mode->mode)); mode 363 drivers/gpu/drm/i2c/ch7006_drv.c drm_crtc_helper_set_mode(crtc, &crtc->mode, mode 107 drivers/gpu/drm/i2c/ch7006_mode.c .mode = { \ mode 178 drivers/gpu/drm/i2c/ch7006_mode.c const struct ch7006_mode *mode; mode 180 drivers/gpu/drm/i2c/ch7006_mode.c for (mode = ch7006_modes; mode->mode.clock; mode++) { mode 182 drivers/gpu/drm/i2c/ch7006_mode.c if (~mode->valid_norms & 1<<priv->norm) mode 185 drivers/gpu/drm/i2c/ch7006_mode.c if (mode->mode.hdisplay != drm_mode->hdisplay || mode 186 drivers/gpu/drm/i2c/ch7006_mode.c mode->mode.vdisplay != drm_mode->vdisplay || mode 187 drivers/gpu/drm/i2c/ch7006_mode.c mode->mode.vtotal != drm_mode->vtotal || mode 188 drivers/gpu/drm/i2c/ch7006_mode.c mode->mode.htotal != drm_mode->htotal || mode 189 drivers/gpu/drm/i2c/ch7006_mode.c mode->mode.clock != drm_mode->clock) mode 192 drivers/gpu/drm/i2c/ch7006_mode.c return mode; mode 237 drivers/gpu/drm/i2c/ch7006_mode.c const struct ch7006_mode *mode = priv->mode; mode 240 drivers/gpu/drm/i2c/ch7006_mode.c subc_inc = round_fixed((mode->subc_coeff >> 8) mode 260 drivers/gpu/drm/i2c/ch7006_mode.c const struct ch7006_mode *mode = priv->mode; mode 269 drivers/gpu/drm/i2c/ch7006_mode.c if (abs(freq - mode->mode.clock) < mode 270 drivers/gpu/drm/i2c/ch7006_mode.c abs(best_freq - mode->mode.clock)) { mode 332 drivers/gpu/drm/i2c/ch7006_mode.c const struct ch7006_mode *ch_mode = priv->mode; mode 333 drivers/gpu/drm/i2c/ch7006_mode.c const struct drm_display_mode *mode = &ch_mode->mode; mode 347 drivers/gpu/drm/i2c/ch7006_mode.c do_div(scale, mode->vtotal); mode 352 drivers/gpu/drm/i2c/ch7006_mode.c hpos = round_fixed((norm->hvirtual * aspect - mode->hdisplay * scale) mode 353 drivers/gpu/drm/i2c/ch7006_mode.c * priv->hmargin * mode->vtotal) / norm->vtotal / 100 / 4; mode 358 drivers/gpu/drm/i2c/ch7006_mode.c vpos = max(0, norm->vdisplay - round_fixed(mode->vdisplay*scale) mode 63 drivers/gpu/drm/i2c/ch7006_priv.h struct drm_display_mode mode; mode 81 drivers/gpu/drm/i2c/ch7006_priv.h const struct ch7006_mode *mode; mode 218 drivers/gpu/drm/i2c/sil164_drv.c sil164_encoder_dpms(struct drm_encoder *encoder, int mode) mode 221 drivers/gpu/drm/i2c/sil164_drv.c bool on = (mode == DRM_MODE_DPMS_ON); mode 222 drivers/gpu/drm/i2c/sil164_drv.c bool duallink = (on && encoder->crtc->mode.clock > 165000); mode 258 drivers/gpu/drm/i2c/sil164_drv.c struct drm_display_mode *mode) mode 262 drivers/gpu/drm/i2c/sil164_drv.c if (mode->clock < 32000) mode 265 drivers/gpu/drm/i2c/sil164_drv.c if (mode->clock > 330000 || mode 266 drivers/gpu/drm/i2c/sil164_drv.c (mode->clock > 165000 && !priv->duallink_slave)) mode 274 drivers/gpu/drm/i2c/sil164_drv.c struct drm_display_mode *mode, mode 856 drivers/gpu/drm/i2c/tda998x_drv.c tda998x_write_avi(struct tda998x_priv *priv, const struct drm_display_mode *mode) mode 861 drivers/gpu/drm/i2c/tda998x_drv.c &priv->connector, mode); mode 863 drivers/gpu/drm/i2c/tda998x_drv.c drm_hdmi_avi_infoframe_quant_range(&frame.avi, &priv->connector, mode, mode 870 drivers/gpu/drm/i2c/tda998x_drv.c const struct drm_display_mode *mode) mode 876 drivers/gpu/drm/i2c/tda998x_drv.c mode)) mode 1373 drivers/gpu/drm/i2c/tda998x_drv.c const struct drm_display_mode *mode) mode 1378 drivers/gpu/drm/i2c/tda998x_drv.c if (mode->clock > ((priv->rev == TDA19988) ? 165000 : 150000)) mode 1380 drivers/gpu/drm/i2c/tda998x_drv.c if (mode->htotal >= BIT(13)) mode 1382 drivers/gpu/drm/i2c/tda998x_drv.c if (mode->vtotal >= BIT(11)) mode 1420 drivers/gpu/drm/i2c/tda998x_drv.c const struct drm_display_mode *mode, mode 1461 drivers/gpu/drm/i2c/tda998x_drv.c n_pix = mode->htotal; mode 1462 drivers/gpu/drm/i2c/tda998x_drv.c n_line = mode->vtotal; mode 1464 drivers/gpu/drm/i2c/tda998x_drv.c hs_pix_e = mode->hsync_end - mode->hdisplay; mode 1465 drivers/gpu/drm/i2c/tda998x_drv.c hs_pix_s = mode->hsync_start - mode->hdisplay; mode 1466 drivers/gpu/drm/i2c/tda998x_drv.c de_pix_e = mode->htotal; mode 1467 drivers/gpu/drm/i2c/tda998x_drv.c de_pix_s = mode->htotal - mode->hdisplay; mode 1478 drivers/gpu/drm/i2c/tda998x_drv.c if ((mode->flags & DRM_MODE_FLAG_INTERLACE) == 0) { mode 1479 drivers/gpu/drm/i2c/tda998x_drv.c ref_line = 1 + mode->vsync_start - mode->vdisplay; mode 1480 drivers/gpu/drm/i2c/tda998x_drv.c vwin1_line_s = mode->vtotal - mode->vdisplay - 1; mode 1481 drivers/gpu/drm/i2c/tda998x_drv.c vwin1_line_e = vwin1_line_s + mode->vdisplay; mode 1483 drivers/gpu/drm/i2c/tda998x_drv.c vs1_line_s = mode->vsync_start - mode->vdisplay; mode 1485 drivers/gpu/drm/i2c/tda998x_drv.c mode->vsync_end - mode->vsync_start; mode 1490 drivers/gpu/drm/i2c/tda998x_drv.c ref_line = 1 + (mode->vsync_start - mode->vdisplay)/2; mode 1491 drivers/gpu/drm/i2c/tda998x_drv.c vwin1_line_s = (mode->vtotal - mode->vdisplay)/2; mode 1492 drivers/gpu/drm/i2c/tda998x_drv.c vwin1_line_e = vwin1_line_s + mode->vdisplay/2; mode 1494 drivers/gpu/drm/i2c/tda998x_drv.c vs1_line_s = (mode->vsync_start - mode->vdisplay)/2; mode 1496 drivers/gpu/drm/i2c/tda998x_drv.c (mode->vsync_end - mode->vsync_start)/2; mode 1497 drivers/gpu/drm/i2c/tda998x_drv.c vwin2_line_s = vwin1_line_s + mode->vtotal/2; mode 1498 drivers/gpu/drm/i2c/tda998x_drv.c vwin2_line_e = vwin2_line_s + mode->vdisplay/2; mode 1499 drivers/gpu/drm/i2c/tda998x_drv.c vs2_pix_s = vs2_pix_e = hs_pix_s + mode->htotal/2; mode 1500 drivers/gpu/drm/i2c/tda998x_drv.c vs2_line_s = vs1_line_s + mode->vtotal/2 ; mode 1502 drivers/gpu/drm/i2c/tda998x_drv.c (mode->vsync_end - mode->vsync_start)/2; mode 1509 drivers/gpu/drm/i2c/tda998x_drv.c rep = mode->flags & DRM_MODE_FLAG_DBLCLK ? 1 : 0; mode 1514 drivers/gpu/drm/i2c/tda998x_drv.c tmds_clock = mode->clock * (1 + rep); mode 1591 drivers/gpu/drm/i2c/tda998x_drv.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 1593 drivers/gpu/drm/i2c/tda998x_drv.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 1629 drivers/gpu/drm/i2c/tda998x_drv.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 1631 drivers/gpu/drm/i2c/tda998x_drv.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 250 drivers/gpu/drm/i915/display/dvo_ch7017.c struct drm_display_mode *mode) mode 252 drivers/gpu/drm/i915/display/dvo_ch7017.c if (mode->clock > 160000) mode 259 drivers/gpu/drm/i915/display/dvo_ch7017.c const struct drm_display_mode *mode, mode 272 drivers/gpu/drm/i915/display/dvo_ch7017.c if (mode->clock < 100000) { mode 302 drivers/gpu/drm/i915/display/dvo_ch7017.c horizontal_active_pixel_input = mode->hdisplay & 0x00ff; mode 304 drivers/gpu/drm/i915/display/dvo_ch7017.c vertical_active_line_output = mode->vdisplay & 0x00ff; mode 305 drivers/gpu/drm/i915/display/dvo_ch7017.c horizontal_active_pixel_output = mode->hdisplay & 0x00ff; mode 307 drivers/gpu/drm/i915/display/dvo_ch7017.c active_input_line_output = ((mode->hdisplay & 0x0700) >> 8) | mode 308 drivers/gpu/drm/i915/display/dvo_ch7017.c (((mode->vdisplay & 0x0700) >> 8) << 3); mode 311 drivers/gpu/drm/i915/display/dvo_ch7017.c (mode->hdisplay & 0x0700) >> 8; mode 268 drivers/gpu/drm/i915/display/dvo_ch7xxx.c struct drm_display_mode *mode) mode 270 drivers/gpu/drm/i915/display/dvo_ch7xxx.c if (mode->clock > 165000) mode 277 drivers/gpu/drm/i915/display/dvo_ch7xxx.c const struct drm_display_mode *mode, mode 282 drivers/gpu/drm/i915/display/dvo_ch7xxx.c if (mode->clock <= 65000) { mode 305 drivers/gpu/drm/i915/display/dvo_ch7xxx.c if (mode->flags & DRM_MODE_FLAG_PHSYNC) mode 308 drivers/gpu/drm/i915/display/dvo_ch7xxx.c if (mode->flags & DRM_MODE_FLAG_PVSYNC) mode 317 drivers/gpu/drm/i915/display/dvo_ivch.c struct drm_display_mode *mode) mode 319 drivers/gpu/drm/i915/display/dvo_ivch.c if (mode->clock > 112000) mode 398 drivers/gpu/drm/i915/display/dvo_ivch.c const struct drm_display_mode *mode, mode 418 drivers/gpu/drm/i915/display/dvo_ivch.c if (mode->hdisplay != adjusted_mode->crtc_hdisplay || mode 419 drivers/gpu/drm/i915/display/dvo_ivch.c mode->vdisplay != adjusted_mode->crtc_vdisplay) { mode 424 drivers/gpu/drm/i915/display/dvo_ivch.c x_ratio = (((mode->hdisplay - 1) << 16) / mode 426 drivers/gpu/drm/i915/display/dvo_ivch.c y_ratio = (((mode->vdisplay - 1) << 16) / mode 528 drivers/gpu/drm/i915/display/dvo_ns2501.c struct drm_display_mode *mode) mode 532 drivers/gpu/drm/i915/display/dvo_ns2501.c mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); mode 540 drivers/gpu/drm/i915/display/dvo_ns2501.c if ((mode->hdisplay == 640 && mode->vdisplay == 480 && mode->clock == 25175) || mode 541 drivers/gpu/drm/i915/display/dvo_ns2501.c (mode->hdisplay == 800 && mode->vdisplay == 600 && mode->clock == 40000) || mode 542 drivers/gpu/drm/i915/display/dvo_ns2501.c (mode->hdisplay == 1024 && mode->vdisplay == 768 && mode->clock == 65000)) { mode 550 drivers/gpu/drm/i915/display/dvo_ns2501.c const struct drm_display_mode *mode, mode 559 drivers/gpu/drm/i915/display/dvo_ns2501.c mode->hdisplay, mode->htotal, mode->vdisplay, mode->vtotal); mode 591 drivers/gpu/drm/i915/display/dvo_ns2501.c if (mode->hdisplay == 640 && mode->vdisplay == 480) mode 593 drivers/gpu/drm/i915/display/dvo_ns2501.c else if (mode->hdisplay == 800 && mode->vdisplay == 600) mode 595 drivers/gpu/drm/i915/display/dvo_ns2501.c else if (mode->hdisplay == 1024 && mode->vdisplay == 768) mode 188 drivers/gpu/drm/i915/display/dvo_sil164.c struct drm_display_mode *mode) mode 194 drivers/gpu/drm/i915/display/dvo_sil164.c const struct drm_display_mode *mode, mode 220 drivers/gpu/drm/i915/display/dvo_tfp410.c struct drm_display_mode *mode) mode 226 drivers/gpu/drm/i915/display/dvo_tfp410.c const struct drm_display_mode *mode, mode 235 drivers/gpu/drm/i915/display/intel_atomic.c u32 mode; mode 259 drivers/gpu/drm/i915/display/intel_atomic.c mode = SKL_PS_SCALER_MODE_NV12; mode 266 drivers/gpu/drm/i915/display/intel_atomic.c mode = PS_SCALER_MODE_NORMAL; mode 268 drivers/gpu/drm/i915/display/intel_atomic.c mode = PS_SCALER_MODE_PLANAR; mode 271 drivers/gpu/drm/i915/display/intel_atomic.c mode |= PS_PLANE_Y_SEL(plane_state->linked_plane->id); mode 274 drivers/gpu/drm/i915/display/intel_atomic.c mode = PS_SCALER_MODE_NORMAL; mode 284 drivers/gpu/drm/i915/display/intel_atomic.c mode = SKL_PS_SCALER_MODE_HQ; mode 286 drivers/gpu/drm/i915/display/intel_atomic.c mode = SKL_PS_SCALER_MODE_DYN; mode 291 drivers/gpu/drm/i915/display/intel_atomic.c scaler_state->scalers[*scaler_id].mode = mode; mode 160 drivers/gpu/drm/i915/display/intel_crt.c int mode) mode 189 drivers/gpu/drm/i915/display/intel_crt.c switch (mode) { mode 313 drivers/gpu/drm/i915/display/intel_crt.c struct drm_display_mode *mode) mode 320 drivers/gpu/drm/i915/display/intel_crt.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 323 drivers/gpu/drm/i915/display/intel_crt.c if (mode->clock < 25000) mode 338 drivers/gpu/drm/i915/display/intel_crt.c if (mode->clock > max_clock) mode 341 drivers/gpu/drm/i915/display/intel_crt.c if (mode->clock > max_dotclk) mode 346 drivers/gpu/drm/i915/display/intel_crt.c (ironlake_get_lanes_required(mode->clock, 270000, 24) > 2)) mode 350 drivers/gpu/drm/i915/display/intel_crt.c if (mode->hdisplay > 4096) mode 4404 drivers/gpu/drm/i915/display/intel_display.c crtc->base.mode = new_crtc_state->base.mode; mode 5638 drivers/gpu/drm/i915/display/intel_display.c PS_FILTER_MEDIUM | scaler_state->scalers[id].mode); mode 8252 drivers/gpu/drm/i915/display/intel_display.c pipe_config->base.mode.vdisplay = pipe_config->pipe_src_h; mode 8253 drivers/gpu/drm/i915/display/intel_display.c pipe_config->base.mode.hdisplay = pipe_config->pipe_src_w; mode 8256 drivers/gpu/drm/i915/display/intel_display.c void intel_mode_from_pipe_config(struct drm_display_mode *mode, mode 8259 drivers/gpu/drm/i915/display/intel_display.c mode->hdisplay = pipe_config->base.adjusted_mode.crtc_hdisplay; mode 8260 drivers/gpu/drm/i915/display/intel_display.c mode->htotal = pipe_config->base.adjusted_mode.crtc_htotal; mode 8261 drivers/gpu/drm/i915/display/intel_display.c mode->hsync_start = pipe_config->base.adjusted_mode.crtc_hsync_start; mode 8262 drivers/gpu/drm/i915/display/intel_display.c mode->hsync_end = pipe_config->base.adjusted_mode.crtc_hsync_end; mode 8264 drivers/gpu/drm/i915/display/intel_display.c mode->vdisplay = pipe_config->base.adjusted_mode.crtc_vdisplay; mode 8265 drivers/gpu/drm/i915/display/intel_display.c mode->vtotal = pipe_config->base.adjusted_mode.crtc_vtotal; mode 8266 drivers/gpu/drm/i915/display/intel_display.c mode->vsync_start = pipe_config->base.adjusted_mode.crtc_vsync_start; mode 8267 drivers/gpu/drm/i915/display/intel_display.c mode->vsync_end = pipe_config->base.adjusted_mode.crtc_vsync_end; mode 8269 drivers/gpu/drm/i915/display/intel_display.c mode->flags = pipe_config->base.adjusted_mode.flags; mode 8270 drivers/gpu/drm/i915/display/intel_display.c mode->type = DRM_MODE_TYPE_DRIVER; mode 8272 drivers/gpu/drm/i915/display/intel_display.c mode->clock = pipe_config->base.adjusted_mode.crtc_clock; mode 8274 drivers/gpu/drm/i915/display/intel_display.c mode->hsync = drm_mode_hsync(mode); mode 8275 drivers/gpu/drm/i915/display/intel_display.c mode->vrefresh = drm_mode_vrefresh(mode); mode 8276 drivers/gpu/drm/i915/display/intel_display.c drm_mode_set_name(mode); mode 11087 drivers/gpu/drm/i915/display/intel_display.c const struct drm_display_mode *mode, mode 11194 drivers/gpu/drm/i915/display/intel_display.c if (!mode) mode 11195 drivers/gpu/drm/i915/display/intel_display.c mode = &load_detect_mode; mode 11197 drivers/gpu/drm/i915/display/intel_display.c ret = drm_atomic_set_mode_for_crtc(&crtc_state->base, mode); mode 11416 drivers/gpu/drm/i915/display/intel_display.c struct drm_display_mode *mode; mode 11425 drivers/gpu/drm/i915/display/intel_display.c mode = kzalloc(sizeof(*mode), GFP_KERNEL); mode 11426 drivers/gpu/drm/i915/display/intel_display.c if (!mode) mode 11431 drivers/gpu/drm/i915/display/intel_display.c kfree(mode); mode 11439 drivers/gpu/drm/i915/display/intel_display.c kfree(mode); mode 11445 drivers/gpu/drm/i915/display/intel_display.c intel_mode_from_pipe_config(mode, crtc_state); mode 11449 drivers/gpu/drm/i915/display/intel_display.c return mode; mode 11951 drivers/gpu/drm/i915/display/intel_display.c static void intel_dump_crtc_timings(const struct drm_display_mode *mode) mode 11955 drivers/gpu/drm/i915/display/intel_display.c mode->crtc_clock, mode 11956 drivers/gpu/drm/i915/display/intel_display.c mode->crtc_hdisplay, mode->crtc_hsync_start, mode 11957 drivers/gpu/drm/i915/display/intel_display.c mode->crtc_hsync_end, mode->crtc_htotal, mode 11958 drivers/gpu/drm/i915/display/intel_display.c mode->crtc_vdisplay, mode->crtc_vsync_start, mode 11959 drivers/gpu/drm/i915/display/intel_display.c mode->crtc_vsync_end, mode->crtc_vtotal, mode 11960 drivers/gpu/drm/i915/display/intel_display.c mode->type, mode->flags); mode 12130 drivers/gpu/drm/i915/display/intel_display.c drm_mode_debug_printmodeline(&pipe_config->base.mode); mode 12320 drivers/gpu/drm/i915/display/intel_display.c drm_mode_get_hv_timing(&pipe_config->base.mode, mode 12545 drivers/gpu/drm/i915/display/intel_display.c (current_config->base.mode.private_flags & I915_MODE_FLAG_INHERITED) && mode 12546 drivers/gpu/drm/i915/display/intel_display.c !(pipe_config->base.mode.private_flags & I915_MODE_FLAG_INHERITED); mode 13624 drivers/gpu/drm/i915/display/intel_display.c if (new_crtc_state->base.mode.private_flags != mode 13625 drivers/gpu/drm/i915/display/intel_display.c old_crtc_state->base.mode.private_flags) mode 14252 drivers/gpu/drm/i915/display/intel_display.c unsigned mode, int sync, void *key) mode 14594 drivers/gpu/drm/i915/display/intel_display.c old_crtc_state->base.mode.private_flags & I915_MODE_FLAG_INHERITED) mode 15029 drivers/gpu/drm/i915/display/intel_display.c scaler->mode = 0; mode 15760 drivers/gpu/drm/i915/display/intel_display.c const struct drm_display_mode *mode) mode 15779 drivers/gpu/drm/i915/display/intel_display.c if (mode->vscan > 1) mode 15782 drivers/gpu/drm/i915/display/intel_display.c if (mode->flags & DRM_MODE_FLAG_HSKEW) mode 15785 drivers/gpu/drm/i915/display/intel_display.c if (mode->flags & (DRM_MODE_FLAG_CSYNC | mode 15790 drivers/gpu/drm/i915/display/intel_display.c if (mode->flags & (DRM_MODE_FLAG_BCAST | mode 15813 drivers/gpu/drm/i915/display/intel_display.c if (mode->hdisplay > hdisplay_max || mode 15814 drivers/gpu/drm/i915/display/intel_display.c mode->hsync_start > htotal_max || mode 15815 drivers/gpu/drm/i915/display/intel_display.c mode->hsync_end > htotal_max || mode 15816 drivers/gpu/drm/i915/display/intel_display.c mode->htotal > htotal_max) mode 15819 drivers/gpu/drm/i915/display/intel_display.c if (mode->vdisplay > vdisplay_max || mode 15820 drivers/gpu/drm/i915/display/intel_display.c mode->vsync_start > vtotal_max || mode 15821 drivers/gpu/drm/i915/display/intel_display.c mode->vsync_end > vtotal_max || mode 15822 drivers/gpu/drm/i915/display/intel_display.c mode->vtotal > vtotal_max) mode 16783 drivers/gpu/drm/i915/display/intel_display.c memset(&crtc->base.mode, 0, sizeof(crtc->base.mode)); mode 16785 drivers/gpu/drm/i915/display/intel_display.c intel_mode_from_pipe_config(&crtc->base.mode, crtc_state); mode 16786 drivers/gpu/drm/i915/display/intel_display.c crtc->base.mode.hdisplay = crtc_state->pipe_src_w; mode 16787 drivers/gpu/drm/i915/display/intel_display.c crtc->base.mode.vdisplay = crtc_state->pipe_src_h; mode 16789 drivers/gpu/drm/i915/display/intel_display.c WARN_ON(drm_atomic_set_mode_for_crtc(crtc->base.state, &crtc->base.mode)); mode 16800 drivers/gpu/drm/i915/display/intel_display.c crtc_state->base.mode.private_flags = I915_MODE_FLAG_INHERITED; mode 467 drivers/gpu/drm/i915/display/intel_display.h const struct drm_display_mode *mode, mode 516 drivers/gpu/drm/i915/display/intel_display.h void intel_mode_from_pipe_config(struct drm_display_mode *mode, mode 587 drivers/gpu/drm/i915/display/intel_display_types.h u32 mode; mode 1250 drivers/gpu/drm/i915/display/intel_display_types.h enum drm_lspcon_mode mode; mode 590 drivers/gpu/drm/i915/display/intel_dp.c struct drm_display_mode *mode) mode 596 drivers/gpu/drm/i915/display/intel_dp.c int target_clock = mode->clock; mode 602 drivers/gpu/drm/i915/display/intel_dp.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 608 drivers/gpu/drm/i915/display/intel_dp.c if (mode->hdisplay > fixed_mode->hdisplay) mode 611 drivers/gpu/drm/i915/display/intel_dp.c if (mode->vdisplay > fixed_mode->vdisplay) mode 640 drivers/gpu/drm/i915/display/intel_dp.c mode->hdisplay) >> 4; mode 644 drivers/gpu/drm/i915/display/intel_dp.c mode->hdisplay); mode 652 drivers/gpu/drm/i915/display/intel_dp.c if (mode->clock < 10000) mode 655 drivers/gpu/drm/i915/display/intel_dp.c if (mode->flags & DRM_MODE_FLAG_DBLCLK) mode 3037 drivers/gpu/drm/i915/display/intel_dp.c void intel_dp_sink_dpms(struct intel_dp *intel_dp, int mode) mode 3045 drivers/gpu/drm/i915/display/intel_dp.c if (mode != DRM_MODE_DPMS_ON) { mode 3072 drivers/gpu/drm/i915/display/intel_dp.c mode == DRM_MODE_DPMS_ON ? "enable" : "disable"); mode 5492 drivers/gpu/drm/i915/display/intel_dp.c struct drm_display_mode *mode; mode 5494 drivers/gpu/drm/i915/display/intel_dp.c mode = drm_mode_duplicate(connector->dev, mode 5496 drivers/gpu/drm/i915/display/intel_dp.c if (mode) { mode 5497 drivers/gpu/drm/i915/display/intel_dp.c drm_mode_probed_add(connector, mode); mode 52 drivers/gpu/drm/i915/display/intel_dp.h void intel_dp_sink_dpms(struct intel_dp *intel_dp, int mode); mode 427 drivers/gpu/drm/i915/display/intel_dp_mst.c struct drm_display_mode *mode) mode 437 drivers/gpu/drm/i915/display/intel_dp_mst.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 444 drivers/gpu/drm/i915/display/intel_dp_mst.c mode_rate = intel_dp_link_required(mode->clock, 18); mode 447 drivers/gpu/drm/i915/display/intel_dp_mst.c if (mode->clock < 10000) mode 450 drivers/gpu/drm/i915/display/intel_dp_mst.c if (mode->flags & DRM_MODE_FLAG_DBLCLK) mode 453 drivers/gpu/drm/i915/display/intel_dp_mst.c if (mode_rate > max_rate || mode->clock > max_dotclk) mode 35 drivers/gpu/drm/i915/display/intel_dsi.c struct drm_display_mode *mode; mode 44 drivers/gpu/drm/i915/display/intel_dsi.c mode = drm_mode_duplicate(connector->dev, mode 46 drivers/gpu/drm/i915/display/intel_dsi.c if (!mode) { mode 51 drivers/gpu/drm/i915/display/intel_dsi.c drm_mode_probed_add(connector, mode); mode 56 drivers/gpu/drm/i915/display/intel_dsi.c struct drm_display_mode *mode) mode 64 drivers/gpu/drm/i915/display/intel_dsi.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 68 drivers/gpu/drm/i915/display/intel_dsi.c if (mode->hdisplay > fixed_mode->hdisplay) mode 70 drivers/gpu/drm/i915/display/intel_dsi.c if (mode->vdisplay > fixed_mode->vdisplay) mode 178 drivers/gpu/drm/i915/display/intel_dsi.h struct drm_display_mode *mode); mode 577 drivers/gpu/drm/i915/display/intel_dsi_vbt.c struct drm_display_mode *mode = dev_priv->vbt.lfp_lvds_vbt_mode; mode 606 drivers/gpu/drm/i915/display/intel_dsi_vbt.c intel_dsi->pclk = mode->clock; mode 616 drivers/gpu/drm/i915/display/intel_dsi_vbt.c intel_dsi->pclk += DIV_ROUND_UP(mode->vtotal * intel_dsi->pixel_overlap * 60, 1000); mode 210 drivers/gpu/drm/i915/display/intel_dvo.c &pipe_config->base.mode, mode 221 drivers/gpu/drm/i915/display/intel_dvo.c struct drm_display_mode *mode) mode 227 drivers/gpu/drm/i915/display/intel_dvo.c int target_clock = mode->clock; mode 229 drivers/gpu/drm/i915/display/intel_dvo.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 235 drivers/gpu/drm/i915/display/intel_dvo.c if (mode->hdisplay > fixed_mode->hdisplay) mode 237 drivers/gpu/drm/i915/display/intel_dvo.c if (mode->vdisplay > fixed_mode->vdisplay) mode 246 drivers/gpu/drm/i915/display/intel_dvo.c return intel_dvo->dev.dev_ops->mode_valid(&intel_dvo->dev, mode); mode 338 drivers/gpu/drm/i915/display/intel_dvo.c struct drm_display_mode *mode; mode 339 drivers/gpu/drm/i915/display/intel_dvo.c mode = drm_mode_duplicate(connector->dev, fixed_mode); mode 340 drivers/gpu/drm/i915/display/intel_dvo.c if (mode) { mode 341 drivers/gpu/drm/i915/display/intel_dvo.c drm_mode_probed_add(connector, mode); mode 387 drivers/gpu/drm/i915/display/intel_dvo.c struct drm_display_mode *mode; mode 389 drivers/gpu/drm/i915/display/intel_dvo.c mode = intel_encoder_current_mode(encoder); mode 390 drivers/gpu/drm/i915/display/intel_dvo.c if (mode) { mode 392 drivers/gpu/drm/i915/display/intel_dvo.c drm_mode_debug_printmodeline(mode); mode 393 drivers/gpu/drm/i915/display/intel_dvo.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 396 drivers/gpu/drm/i915/display/intel_dvo.c return mode; mode 79 drivers/gpu/drm/i915/display/intel_dvo_dev.h struct drm_display_mode *mode); mode 99 drivers/gpu/drm/i915/display/intel_dvo_dev.h const struct drm_display_mode *mode, mode 914 drivers/gpu/drm/i915/display/intel_hdmi.c const struct drm_display_mode *mode) mode 936 drivers/gpu/drm/i915/display/intel_hdmi.c return mode->crtc_hdisplay % pixels_per_group == 0 && mode 937 drivers/gpu/drm/i915/display/intel_hdmi.c mode->crtc_htotal % pixels_per_group == 0 && mode 938 drivers/gpu/drm/i915/display/intel_hdmi.c mode->crtc_hblank_start % pixels_per_group == 0 && mode 939 drivers/gpu/drm/i915/display/intel_hdmi.c mode->crtc_hblank_end % pixels_per_group == 0 && mode 940 drivers/gpu/drm/i915/display/intel_hdmi.c mode->crtc_hsync_start % pixels_per_group == 0 && mode 941 drivers/gpu/drm/i915/display/intel_hdmi.c mode->crtc_hsync_end % pixels_per_group == 0 && mode 942 drivers/gpu/drm/i915/display/intel_hdmi.c ((mode->flags & DRM_MODE_FLAG_INTERLACE) == 0 || mode 943 drivers/gpu/drm/i915/display/intel_hdmi.c mode->crtc_htotal/2 % pixels_per_group == 0); mode 2145 drivers/gpu/drm/i915/display/intel_hdmi.c struct drm_display_mode *mode) mode 2156 drivers/gpu/drm/i915/display/intel_hdmi.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 2159 drivers/gpu/drm/i915/display/intel_hdmi.c clock = mode->clock; mode 2161 drivers/gpu/drm/i915/display/intel_hdmi.c if ((mode->flags & DRM_MODE_FLAG_3D_MASK) == DRM_MODE_FLAG_3D_FRAME_PACKING) mode 2167 drivers/gpu/drm/i915/display/intel_hdmi.c if (mode->flags & DRM_MODE_FLAG_DBLCLK) mode 2170 drivers/gpu/drm/i915/display/intel_hdmi.c if (drm_mode_is_420_only(&connector->display_info, mode)) mode 58 drivers/gpu/drm/i915/display/intel_lspcon.c static const char *lspcon_mode_name(enum drm_lspcon_mode mode) mode 60 drivers/gpu/drm/i915/display/intel_lspcon.c switch (mode) { mode 68 drivers/gpu/drm/i915/display/intel_lspcon.c MISSING_CASE(mode); mode 120 drivers/gpu/drm/i915/display/intel_lspcon.c enum drm_lspcon_mode mode) mode 125 drivers/gpu/drm/i915/display/intel_lspcon.c if (current_mode == mode) mode 129 drivers/gpu/drm/i915/display/intel_lspcon.c lspcon_mode_name(mode)); mode 131 drivers/gpu/drm/i915/display/intel_lspcon.c wait_for((current_mode = lspcon_get_current_mode(lspcon)) == mode, 400); mode 132 drivers/gpu/drm/i915/display/intel_lspcon.c if (current_mode != mode) mode 143 drivers/gpu/drm/i915/display/intel_lspcon.c enum drm_lspcon_mode mode) mode 155 drivers/gpu/drm/i915/display/intel_lspcon.c if (current_mode == mode) { mode 160 drivers/gpu/drm/i915/display/intel_lspcon.c err = drm_lspcon_set_mode(adapter, mode); mode 166 drivers/gpu/drm/i915/display/intel_lspcon.c lspcon->mode = mode; mode 230 drivers/gpu/drm/i915/display/intel_lspcon.c lspcon->mode = lspcon_wait_mode(lspcon, expected_mode); mode 237 drivers/gpu/drm/i915/display/intel_lspcon.c if (lspcon->mode != DRM_LSPCON_MODE_PCON) { mode 567 drivers/gpu/drm/i915/display/intel_lspcon.c lspcon->mode = DRM_LSPCON_MODE_INVALID; mode 368 drivers/gpu/drm/i915/display/intel_lvds.c struct drm_display_mode *mode) mode 374 drivers/gpu/drm/i915/display/intel_lvds.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 376 drivers/gpu/drm/i915/display/intel_lvds.c if (mode->hdisplay > fixed_mode->hdisplay) mode 378 drivers/gpu/drm/i915/display/intel_lvds.c if (mode->vdisplay > fixed_mode->vdisplay) mode 463 drivers/gpu/drm/i915/display/intel_lvds.c struct drm_display_mode *mode; mode 469 drivers/gpu/drm/i915/display/intel_lvds.c mode = drm_mode_duplicate(dev, intel_connector->panel.fixed_mode); mode 470 drivers/gpu/drm/i915/display/intel_lvds.c if (mode == NULL) mode 473 drivers/gpu/drm/i915/display/intel_lvds.c drm_mode_probed_add(connector, mode); mode 1054 drivers/gpu/drm/i915/display/intel_psr.c const u32 mode = val & I915_PSR_DEBUG_MODE_MASK; mode 1059 drivers/gpu/drm/i915/display/intel_psr.c mode > I915_PSR_DEBUG_FORCE_PSR1) { mode 1074 drivers/gpu/drm/i915/display/intel_psr.c if (old_mode != mode) mode 697 drivers/gpu/drm/i915/display/intel_sdvo.c int mode) mode 701 drivers/gpu/drm/i915/display/intel_sdvo.c switch (mode) { mode 827 drivers/gpu/drm/i915/display/intel_sdvo.c const struct drm_display_mode *mode) mode 836 drivers/gpu/drm/i915/display/intel_sdvo.c width = mode->hdisplay; mode 837 drivers/gpu/drm/i915/display/intel_sdvo.c height = mode->vdisplay; mode 840 drivers/gpu/drm/i915/display/intel_sdvo.c h_blank_len = mode->htotal - mode->hdisplay; mode 841 drivers/gpu/drm/i915/display/intel_sdvo.c h_sync_len = mode->hsync_end - mode->hsync_start; mode 843 drivers/gpu/drm/i915/display/intel_sdvo.c v_blank_len = mode->vtotal - mode->vdisplay; mode 844 drivers/gpu/drm/i915/display/intel_sdvo.c v_sync_len = mode->vsync_end - mode->vsync_start; mode 846 drivers/gpu/drm/i915/display/intel_sdvo.c h_sync_offset = mode->hsync_start - mode->hdisplay; mode 847 drivers/gpu/drm/i915/display/intel_sdvo.c v_sync_offset = mode->vsync_start - mode->vdisplay; mode 849 drivers/gpu/drm/i915/display/intel_sdvo.c mode_clock = mode->clock; mode 871 drivers/gpu/drm/i915/display/intel_sdvo.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 873 drivers/gpu/drm/i915/display/intel_sdvo.c if (mode->flags & DRM_MODE_FLAG_PHSYNC) mode 875 drivers/gpu/drm/i915/display/intel_sdvo.c if (mode->flags & DRM_MODE_FLAG_PVSYNC) mode 884 drivers/gpu/drm/i915/display/intel_sdvo.c struct drm_display_mode mode = {}; mode 886 drivers/gpu/drm/i915/display/intel_sdvo.c mode.hdisplay = dtd->part1.h_active; mode 887 drivers/gpu/drm/i915/display/intel_sdvo.c mode.hdisplay += ((dtd->part1.h_high >> 4) & 0x0f) << 8; mode 888 drivers/gpu/drm/i915/display/intel_sdvo.c mode.hsync_start = mode.hdisplay + dtd->part2.h_sync_off; mode 889 drivers/gpu/drm/i915/display/intel_sdvo.c mode.hsync_start += (dtd->part2.sync_off_width_high & 0xc0) << 2; mode 890 drivers/gpu/drm/i915/display/intel_sdvo.c mode.hsync_end = mode.hsync_start + dtd->part2.h_sync_width; mode 891 drivers/gpu/drm/i915/display/intel_sdvo.c mode.hsync_end += (dtd->part2.sync_off_width_high & 0x30) << 4; mode 892 drivers/gpu/drm/i915/display/intel_sdvo.c mode.htotal = mode.hdisplay + dtd->part1.h_blank; mode 893 drivers/gpu/drm/i915/display/intel_sdvo.c mode.htotal += (dtd->part1.h_high & 0xf) << 8; mode 895 drivers/gpu/drm/i915/display/intel_sdvo.c mode.vdisplay = dtd->part1.v_active; mode 896 drivers/gpu/drm/i915/display/intel_sdvo.c mode.vdisplay += ((dtd->part1.v_high >> 4) & 0x0f) << 8; mode 897 drivers/gpu/drm/i915/display/intel_sdvo.c mode.vsync_start = mode.vdisplay; mode 898 drivers/gpu/drm/i915/display/intel_sdvo.c mode.vsync_start += (dtd->part2.v_sync_off_width >> 4) & 0xf; mode 899 drivers/gpu/drm/i915/display/intel_sdvo.c mode.vsync_start += (dtd->part2.sync_off_width_high & 0x0c) << 2; mode 900 drivers/gpu/drm/i915/display/intel_sdvo.c mode.vsync_start += dtd->part2.v_sync_off_high & 0xc0; mode 901 drivers/gpu/drm/i915/display/intel_sdvo.c mode.vsync_end = mode.vsync_start + mode 903 drivers/gpu/drm/i915/display/intel_sdvo.c mode.vsync_end += (dtd->part2.sync_off_width_high & 0x3) << 4; mode 904 drivers/gpu/drm/i915/display/intel_sdvo.c mode.vtotal = mode.vdisplay + dtd->part1.v_blank; mode 905 drivers/gpu/drm/i915/display/intel_sdvo.c mode.vtotal += (dtd->part1.v_high & 0xf) << 8; mode 907 drivers/gpu/drm/i915/display/intel_sdvo.c mode.clock = dtd->part1.clock * 10; mode 910 drivers/gpu/drm/i915/display/intel_sdvo.c mode.flags |= DRM_MODE_FLAG_INTERLACE; mode 912 drivers/gpu/drm/i915/display/intel_sdvo.c mode.flags |= DRM_MODE_FLAG_PHSYNC; mode 914 drivers/gpu/drm/i915/display/intel_sdvo.c mode.flags |= DRM_MODE_FLAG_NHSYNC; mode 916 drivers/gpu/drm/i915/display/intel_sdvo.c mode.flags |= DRM_MODE_FLAG_PVSYNC; mode 918 drivers/gpu/drm/i915/display/intel_sdvo.c mode.flags |= DRM_MODE_FLAG_NVSYNC; mode 920 drivers/gpu/drm/i915/display/intel_sdvo.c drm_mode_set_crtcinfo(&mode, 0); mode 922 drivers/gpu/drm/i915/display/intel_sdvo.c drm_mode_copy(pmode, &mode); mode 936 drivers/gpu/drm/i915/display/intel_sdvo.c u8 mode) mode 938 drivers/gpu/drm/i915/display/intel_sdvo.c return intel_sdvo_set_value(intel_sdvo, SDVO_CMD_SET_ENCODE, &mode, 1); mode 942 drivers/gpu/drm/i915/display/intel_sdvo.c u8 mode) mode 944 drivers/gpu/drm/i915/display/intel_sdvo.c return intel_sdvo_set_value(intel_sdvo, SDVO_CMD_SET_COLORIMETRY, &mode, 1); mode 1182 drivers/gpu/drm/i915/display/intel_sdvo.c format_map = 1 << conn_state->tv.mode; mode 1194 drivers/gpu/drm/i915/display/intel_sdvo.c const struct drm_display_mode *mode) mode 1202 drivers/gpu/drm/i915/display/intel_sdvo.c intel_sdvo_get_dtd_from_mode(&output_dtd, mode); mode 1216 drivers/gpu/drm/i915/display/intel_sdvo.c const struct drm_display_mode *mode, mode 1227 drivers/gpu/drm/i915/display/intel_sdvo.c mode->clock / 10, mode 1228 drivers/gpu/drm/i915/display/intel_sdvo.c mode->hdisplay, mode 1229 drivers/gpu/drm/i915/display/intel_sdvo.c mode->vdisplay)) mode 1280 drivers/gpu/drm/i915/display/intel_sdvo.c struct drm_display_mode *mode = &pipe_config->base.mode; mode 1296 drivers/gpu/drm/i915/display/intel_sdvo.c if (!intel_sdvo_set_output_timings_from_mode(intel_sdvo, mode)) mode 1301 drivers/gpu/drm/i915/display/intel_sdvo.c mode, mode 1311 drivers/gpu/drm/i915/display/intel_sdvo.c mode, mode 1438 drivers/gpu/drm/i915/display/intel_sdvo.c const struct drm_display_mode *mode = &crtc_state->base.mode; mode 1471 drivers/gpu/drm/i915/display/intel_sdvo.c intel_sdvo_get_dtd_from_mode(&output_dtd, mode); mode 1824 drivers/gpu/drm/i915/display/intel_sdvo.c struct drm_display_mode *mode) mode 1831 drivers/gpu/drm/i915/display/intel_sdvo.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 1834 drivers/gpu/drm/i915/display/intel_sdvo.c if (intel_sdvo->pixel_clock_min > mode->clock) mode 1837 drivers/gpu/drm/i915/display/intel_sdvo.c if (intel_sdvo->pixel_clock_max < mode->clock) mode 1840 drivers/gpu/drm/i915/display/intel_sdvo.c if (mode->clock > max_dotclk) mode 1847 drivers/gpu/drm/i915/display/intel_sdvo.c if (mode->hdisplay > fixed_mode->hdisplay) mode 1850 drivers/gpu/drm/i915/display/intel_sdvo.c if (mode->vdisplay > fixed_mode->vdisplay) mode 2191 drivers/gpu/drm/i915/display/intel_sdvo.c format_map = 1 << conn_state->tv.mode; mode 2275 drivers/gpu/drm/i915/display/intel_sdvo.c if (state->tv.mode == intel_sdvo_connector->tv_format_supported[i]) { mode 2331 drivers/gpu/drm/i915/display/intel_sdvo.c state->tv.mode = intel_sdvo_connector->tv_format_supported[val]; mode 2820 drivers/gpu/drm/i915/display/intel_sdvo.c struct drm_display_mode *mode; mode 2851 drivers/gpu/drm/i915/display/intel_sdvo.c list_for_each_entry(mode, &connector->probed_modes, head) { mode 2852 drivers/gpu/drm/i915/display/intel_sdvo.c if (mode->type & DRM_MODE_TYPE_PREFERRED) { mode 2854 drivers/gpu/drm/i915/display/intel_sdvo.c drm_mode_duplicate(connector->dev, mode); mode 2981 drivers/gpu/drm/i915/display/intel_sdvo.c intel_sdvo_connector->base.base.state->tv.mode = intel_sdvo_connector->tv_format_supported[0]; mode 402 drivers/gpu/drm/i915/display/intel_sprite.c PS_SCALER_EN | PS_PLANE_SEL(plane->id) | scaler->mode); mode 12 drivers/gpu/drm/i915/display/intel_tc.c static const char *tc_port_mode_name(enum tc_port_mode mode) mode 20 drivers/gpu/drm/i915/display/intel_tc.c if (WARN_ON(mode >= ARRAY_SIZE(names))) mode 21 drivers/gpu/drm/i915/display/intel_tc.c mode = TC_PORT_TBT_ALT; mode 23 drivers/gpu/drm/i915/display/intel_tc.c return names[mode]; mode 357 drivers/gpu/drm/i915/display/intel_tc.c enum tc_port_mode mode; mode 362 drivers/gpu/drm/i915/display/intel_tc.c mode = dig_port->tc_legacy_port ? TC_PORT_LEGACY : TC_PORT_DP_ALT; mode 367 drivers/gpu/drm/i915/display/intel_tc.c mode = live_mode; mode 370 drivers/gpu/drm/i915/display/intel_tc.c return mode; mode 945 drivers/gpu/drm/i915/display/intel_tv.c int format = conn_state->tv.mode; mode 952 drivers/gpu/drm/i915/display/intel_tv.c struct drm_display_mode *mode) mode 957 drivers/gpu/drm/i915/display/intel_tv.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 960 drivers/gpu/drm/i915/display/intel_tv.c if (mode->clock > max_dotclk) mode 964 drivers/gpu/drm/i915/display/intel_tv.c if (tv_mode && abs(tv_mode->refresh - drm_mode_vrefresh(mode) * 1000) mode 981 drivers/gpu/drm/i915/display/intel_tv.c intel_tv_mode_to_mode(struct drm_display_mode *mode, mode 984 drivers/gpu/drm/i915/display/intel_tv.c mode->clock = tv_mode->clock / mode 998 drivers/gpu/drm/i915/display/intel_tv.c mode->hdisplay = mode 1000 drivers/gpu/drm/i915/display/intel_tv.c mode->hsync_start = mode->hdisplay + mode 1002 drivers/gpu/drm/i915/display/intel_tv.c mode->hsync_end = mode->hsync_start + mode 1004 drivers/gpu/drm/i915/display/intel_tv.c mode->htotal = tv_mode->htotal + 1; mode 1017 drivers/gpu/drm/i915/display/intel_tv.c mode->vdisplay = intel_tv_mode_vdisplay(tv_mode); mode 1019 drivers/gpu/drm/i915/display/intel_tv.c mode->vsync_start = mode->vdisplay + mode 1021 drivers/gpu/drm/i915/display/intel_tv.c mode->vsync_end = mode->vsync_start + mode 1023 drivers/gpu/drm/i915/display/intel_tv.c mode->vtotal = mode->vdisplay + mode 1026 drivers/gpu/drm/i915/display/intel_tv.c mode->vsync_start = mode->vdisplay + mode 1029 drivers/gpu/drm/i915/display/intel_tv.c mode->vsync_end = mode->vsync_start + mode 1031 drivers/gpu/drm/i915/display/intel_tv.c mode->vtotal = mode->vdisplay + mode 1037 drivers/gpu/drm/i915/display/intel_tv.c mode->flags = 0; mode 1039 drivers/gpu/drm/i915/display/intel_tv.c mode->vrefresh = 0; mode 1040 drivers/gpu/drm/i915/display/intel_tv.c mode->vrefresh = drm_mode_vrefresh(mode); mode 1042 drivers/gpu/drm/i915/display/intel_tv.c snprintf(mode->name, sizeof(mode->name), mode 1044 drivers/gpu/drm/i915/display/intel_tv.c mode->hdisplay, mode->vdisplay, mode 1049 drivers/gpu/drm/i915/display/intel_tv.c static void intel_tv_scale_mode_horiz(struct drm_display_mode *mode, mode 1053 drivers/gpu/drm/i915/display/intel_tv.c int hsync_start = mode->hsync_start - mode->hdisplay + right_margin; mode 1054 drivers/gpu/drm/i915/display/intel_tv.c int hsync_end = mode->hsync_end - mode->hdisplay + right_margin; mode 1055 drivers/gpu/drm/i915/display/intel_tv.c int new_htotal = mode->htotal * hdisplay / mode 1056 drivers/gpu/drm/i915/display/intel_tv.c (mode->hdisplay - left_margin - right_margin); mode 1058 drivers/gpu/drm/i915/display/intel_tv.c mode->clock = mode->clock * new_htotal / mode->htotal; mode 1060 drivers/gpu/drm/i915/display/intel_tv.c mode->hdisplay = hdisplay; mode 1061 drivers/gpu/drm/i915/display/intel_tv.c mode->hsync_start = hdisplay + hsync_start * new_htotal / mode->htotal; mode 1062 drivers/gpu/drm/i915/display/intel_tv.c mode->hsync_end = hdisplay + hsync_end * new_htotal / mode->htotal; mode 1063 drivers/gpu/drm/i915/display/intel_tv.c mode->htotal = new_htotal; mode 1066 drivers/gpu/drm/i915/display/intel_tv.c static void intel_tv_scale_mode_vert(struct drm_display_mode *mode, mode 1070 drivers/gpu/drm/i915/display/intel_tv.c int vsync_start = mode->vsync_start - mode->vdisplay + bottom_margin; mode 1071 drivers/gpu/drm/i915/display/intel_tv.c int vsync_end = mode->vsync_end - mode->vdisplay + bottom_margin; mode 1072 drivers/gpu/drm/i915/display/intel_tv.c int new_vtotal = mode->vtotal * vdisplay / mode 1073 drivers/gpu/drm/i915/display/intel_tv.c (mode->vdisplay - top_margin - bottom_margin); mode 1075 drivers/gpu/drm/i915/display/intel_tv.c mode->clock = mode->clock * new_vtotal / mode->vtotal; mode 1077 drivers/gpu/drm/i915/display/intel_tv.c mode->vdisplay = vdisplay; mode 1078 drivers/gpu/drm/i915/display/intel_tv.c mode->vsync_start = vdisplay + vsync_start * new_vtotal / mode->vtotal; mode 1079 drivers/gpu/drm/i915/display/intel_tv.c mode->vsync_end = vdisplay + vsync_end * new_vtotal / mode->vtotal; mode 1080 drivers/gpu/drm/i915/display/intel_tv.c mode->vtotal = new_vtotal; mode 1090 drivers/gpu/drm/i915/display/intel_tv.c struct drm_display_mode mode = {}; mode 1146 drivers/gpu/drm/i915/display/intel_tv.c intel_tv_mode_to_mode(&mode, &tv_mode); mode 1149 drivers/gpu/drm/i915/display/intel_tv.c drm_mode_debug_printmodeline(&mode); mode 1151 drivers/gpu/drm/i915/display/intel_tv.c intel_tv_scale_mode_horiz(&mode, hdisplay, mode 1152 drivers/gpu/drm/i915/display/intel_tv.c xpos, mode.hdisplay - xsize - xpos); mode 1153 drivers/gpu/drm/i915/display/intel_tv.c intel_tv_scale_mode_vert(&mode, vdisplay, mode 1154 drivers/gpu/drm/i915/display/intel_tv.c ypos, mode.vdisplay - ysize - ypos); mode 1156 drivers/gpu/drm/i915/display/intel_tv.c adjusted_mode->crtc_clock = mode.clock; mode 1685 drivers/gpu/drm/i915/display/intel_tv.c connector->state->tv.mode = i; mode 1742 drivers/gpu/drm/i915/display/intel_tv.c intel_tv_is_preferred_mode(const struct drm_display_mode *mode, mode 1751 drivers/gpu/drm/i915/display/intel_tv.c return vdisplay == mode->vdisplay; mode 1755 drivers/gpu/drm/i915/display/intel_tv.c intel_tv_set_mode_type(struct drm_display_mode *mode, mode 1758 drivers/gpu/drm/i915/display/intel_tv.c mode->type = DRM_MODE_TYPE_DRIVER; mode 1760 drivers/gpu/drm/i915/display/intel_tv.c if (intel_tv_is_preferred_mode(mode, tv_mode)) mode 1761 drivers/gpu/drm/i915/display/intel_tv.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 1773 drivers/gpu/drm/i915/display/intel_tv.c struct drm_display_mode *mode; mode 1785 drivers/gpu/drm/i915/display/intel_tv.c mode = drm_mode_create(connector->dev); mode 1786 drivers/gpu/drm/i915/display/intel_tv.c if (!mode) mode 1796 drivers/gpu/drm/i915/display/intel_tv.c intel_tv_mode_to_mode(mode, tv_mode); mode 1799 drivers/gpu/drm/i915/display/intel_tv.c drm_mode_debug_printmodeline(mode); mode 1801 drivers/gpu/drm/i915/display/intel_tv.c intel_tv_scale_mode_horiz(mode, input->w, 0, 0); mode 1802 drivers/gpu/drm/i915/display/intel_tv.c intel_tv_scale_mode_vert(mode, input->h, 0, 0); mode 1803 drivers/gpu/drm/i915/display/intel_tv.c intel_tv_set_mode_type(mode, tv_mode); mode 1805 drivers/gpu/drm/i915/display/intel_tv.c drm_mode_set_name(mode); mode 1807 drivers/gpu/drm/i915/display/intel_tv.c drm_mode_probed_add(connector, mode); mode 1837 drivers/gpu/drm/i915/display/intel_tv.c if (old_state->tv.mode != new_state->tv.mode || mode 1962 drivers/gpu/drm/i915/display/intel_tv.c state->tv.mode = initial_mode; mode 1980 drivers/gpu/drm/i915/display/intel_tv.c state->tv.mode); mode 858 drivers/gpu/drm/i915/gt/intel_engine_cs.c const i915_reg_t mode = RING_MI_MODE(base); mode 866 drivers/gpu/drm/i915/gt/intel_engine_cs.c intel_uncore_write_fw(uncore, mode, _MASKED_BIT_ENABLE(STOP_RING)); mode 870 drivers/gpu/drm/i915/gt/intel_engine_cs.c mode, MODE_IDLE, MODE_IDLE, mode 878 drivers/gpu/drm/i915/gt/intel_engine_cs.c intel_uncore_posting_read_fw(uncore, mode); mode 425 drivers/gpu/drm/i915/gt/intel_engine_types.h int (*emit_flush)(struct i915_request *request, u32 mode); mode 2321 drivers/gpu/drm/i915/gt/intel_lrc.c u32 mode; mode 2328 drivers/gpu/drm/i915/gt/intel_lrc.c mode = _MASKED_BIT_ENABLE(GEN11_GFX_DISABLE_LEGACY_MODE); mode 2330 drivers/gpu/drm/i915/gt/intel_lrc.c mode = _MASKED_BIT_ENABLE(GFX_RUN_LIST_ENABLE); mode 2331 drivers/gpu/drm/i915/gt/intel_lrc.c ENGINE_WRITE_FW(engine, RING_MODE_GEN7, mode); mode 2738 drivers/gpu/drm/i915/gt/intel_lrc.c static int gen8_emit_flush(struct i915_request *request, u32 mode) mode 2755 drivers/gpu/drm/i915/gt/intel_lrc.c if (mode & EMIT_INVALIDATE) { mode 2771 drivers/gpu/drm/i915/gt/intel_lrc.c u32 mode) mode 2783 drivers/gpu/drm/i915/gt/intel_lrc.c if (mode & EMIT_FLUSH) { mode 2790 drivers/gpu/drm/i915/gt/intel_lrc.c if (mode & EMIT_INVALIDATE) { mode 2842 drivers/gpu/drm/i915/gt/intel_lrc.c u32 mode) mode 2849 drivers/gpu/drm/i915/gt/intel_lrc.c if (mode & EMIT_FLUSH) { mode 2871 drivers/gpu/drm/i915/gt/intel_lrc.c if (mode & EMIT_INVALIDATE) { mode 61 drivers/gpu/drm/i915/gt/intel_ringbuffer.c gen2_render_ring_flush(struct i915_request *rq, u32 mode) mode 68 drivers/gpu/drm/i915/gt/intel_ringbuffer.c if (mode & EMIT_INVALIDATE) mode 70 drivers/gpu/drm/i915/gt/intel_ringbuffer.c if (mode & EMIT_FLUSH) mode 92 drivers/gpu/drm/i915/gt/intel_ringbuffer.c gen4_render_ring_flush(struct i915_request *rq, u32 mode) mode 126 drivers/gpu/drm/i915/gt/intel_ringbuffer.c if (mode & EMIT_INVALIDATE) { mode 133 drivers/gpu/drm/i915/gt/intel_ringbuffer.c if (mode & EMIT_INVALIDATE) mode 152 drivers/gpu/drm/i915/gt/intel_ringbuffer.c if (mode & EMIT_INVALIDATE) { mode 251 drivers/gpu/drm/i915/gt/intel_ringbuffer.c gen6_render_ring_flush(struct i915_request *rq, u32 mode) mode 268 drivers/gpu/drm/i915/gt/intel_ringbuffer.c if (mode & EMIT_FLUSH) { mode 277 drivers/gpu/drm/i915/gt/intel_ringbuffer.c if (mode & EMIT_INVALIDATE) { mode 356 drivers/gpu/drm/i915/gt/intel_ringbuffer.c gen7_render_ring_flush(struct i915_request *rq, u32 mode) mode 377 drivers/gpu/drm/i915/gt/intel_ringbuffer.c if (mode & EMIT_FLUSH) { mode 383 drivers/gpu/drm/i915/gt/intel_ringbuffer.c if (mode & EMIT_INVALIDATE) { mode 1031 drivers/gpu/drm/i915/gt/intel_ringbuffer.c bsd_ring_flush(struct i915_request *rq, u32 mode) mode 2081 drivers/gpu/drm/i915/gt/intel_ringbuffer.c static int gen6_flush_dw(struct i915_request *rq, u32 mode, u32 invflags) mode 2083 drivers/gpu/drm/i915/gt/intel_ringbuffer.c return mi_flush_dw(rq, mode & EMIT_INVALIDATE ? invflags : 0); mode 2086 drivers/gpu/drm/i915/gt/intel_ringbuffer.c static int gen6_bsd_ring_flush(struct i915_request *rq, u32 mode) mode 2088 drivers/gpu/drm/i915/gt/intel_ringbuffer.c return gen6_flush_dw(rq, mode, MI_INVALIDATE_TLB | MI_INVALIDATE_BSD); mode 2133 drivers/gpu/drm/i915/gt/intel_ringbuffer.c static int gen6_ring_flush(struct i915_request *rq, u32 mode) mode 2135 drivers/gpu/drm/i915/gt/intel_ringbuffer.c return gen6_flush_dw(rq, mode, MI_INVALIDATE_TLB); mode 1612 drivers/gpu/drm/i915/gt/selftest_hangcheck.c const char *mode) mode 1618 drivers/gpu/drm/i915/gt/selftest_hangcheck.c engine->name, mode, p->name); mode 1630 drivers/gpu/drm/i915/gt/selftest_hangcheck.c engine->name, mode, p->name); mode 107 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c umode_t mode, mode 124 drivers/gpu/drm/i915/gt/uc/intel_guc_log.c buf_file = debugfs_create_file(filename, mode, mode 298 drivers/gpu/drm/i915/gvt/fb_decoder.c static int cursor_mode_to_drm(int mode) mode 302 drivers/gpu/drm/i915/gvt/fb_decoder.c switch (mode) { mode 335 drivers/gpu/drm/i915/gvt/fb_decoder.c u32 val, mode, index; mode 345 drivers/gpu/drm/i915/gvt/fb_decoder.c mode = val & MCURSOR_MODE; mode 346 drivers/gpu/drm/i915/gvt/fb_decoder.c plane->enabled = (mode != MCURSOR_MODE_DISABLE); mode 350 drivers/gpu/drm/i915/gvt/fb_decoder.c index = cursor_mode_to_drm(mode); mode 353 drivers/gpu/drm/i915/gvt/fb_decoder.c gvt_vgpu_err("Non-supported cursor mode (0x%x)\n", mode); mode 356 drivers/gpu/drm/i915/gvt/fb_decoder.c plane->mode = mode; mode 136 drivers/gpu/drm/i915/gvt/fb_decoder.h u8 mode; /* cursor mode select */ mode 63 drivers/gpu/drm/i915/gvt/firmware.c .attr = {.name = "gvt_firmware", .mode = (S_IRUSR)}, mode 1355 drivers/gpu/drm/i915/gvt/handlers.c u32 mode; mode 1358 drivers/gpu/drm/i915/gvt/handlers.c mode = vgpu_vreg(vgpu, offset); mode 1360 drivers/gpu/drm/i915/gvt/handlers.c if (GFX_MODE_BIT_SET_IN_MASK(mode, START_DMA)) { mode 1763 drivers/gpu/drm/i915/i915_debugfs.c rps_power_to_str(rps->power.mode)); mode 2421 drivers/gpu/drm/i915/i915_debugfs.c struct drm_display_mode *mode) mode 2428 drivers/gpu/drm/i915/i915_debugfs.c seq_printf(m, DRM_MODE_FMT "\n", DRM_MODE_ARG(mode)); mode 2451 drivers/gpu/drm/i915/i915_debugfs.c struct drm_display_mode *mode = &crtc->mode; mode 2453 drivers/gpu/drm/i915/i915_debugfs.c intel_seq_print_mode(m, 2, mode); mode 2481 drivers/gpu/drm/i915/i915_debugfs.c struct drm_display_mode *mode = panel->fixed_mode; mode 2484 drivers/gpu/drm/i915/i915_debugfs.c intel_seq_print_mode(m, 2, mode); mode 2563 drivers/gpu/drm/i915/i915_debugfs.c struct drm_display_mode *mode; mode 2604 drivers/gpu/drm/i915/i915_debugfs.c list_for_each_entry(mode, &connector->modes, head) mode 2605 drivers/gpu/drm/i915/i915_debugfs.c intel_seq_print_mode(m, 2, mode); mode 2709 drivers/gpu/drm/i915/i915_debugfs.c i, yesno(sc->in_use), sc->mode); mode 579 drivers/gpu/drm/i915/i915_drv.h enum { LOW_POWER, BETWEEN, HIGH_POWER } mode; mode 103 drivers/gpu/drm/i915/i915_gem_evict.c enum drm_mm_insert_mode mode; mode 121 drivers/gpu/drm/i915/i915_gem_evict.c mode = DRM_MM_INSERT_BEST; mode 123 drivers/gpu/drm/i915/i915_gem_evict.c mode = DRM_MM_INSERT_HIGH; mode 125 drivers/gpu/drm/i915/i915_gem_evict.c mode = DRM_MM_INSERT_LOW; mode 128 drivers/gpu/drm/i915/i915_gem_evict.c start, end, mode); mode 3727 drivers/gpu/drm/i915/i915_gem_gtt.c enum drm_mm_insert_mode mode; mode 3748 drivers/gpu/drm/i915/i915_gem_gtt.c mode = DRM_MM_INSERT_BEST; mode 3750 drivers/gpu/drm/i915/i915_gem_gtt.c mode = DRM_MM_INSERT_HIGHEST; mode 3752 drivers/gpu/drm/i915/i915_gem_gtt.c mode = DRM_MM_INSERT_LOW; mode 3766 drivers/gpu/drm/i915/i915_gem_gtt.c start, end, mode); mode 3770 drivers/gpu/drm/i915/i915_gem_gtt.c if (mode & DRM_MM_INSERT_ONCE) { mode 491 drivers/gpu/drm/i915/i915_gpu_error.c err_printf(m, " MODE: 0x%08x\n", ee->mode); mode 1105 drivers/gpu/drm/i915/i915_gpu_error.c ee->mode = ENGINE_READ(engine, RING_MI_MODE); mode 104 drivers/gpu/drm/i915/i915_gpu_error.h u32 mode; mode 764 drivers/gpu/drm/i915/i915_irq.c const struct drm_display_mode *mode = &vblank->hwmode; mode 784 drivers/gpu/drm/i915/i915_irq.c htotal = mode->crtc_htotal; mode 785 drivers/gpu/drm/i915/i915_irq.c hsync_start = mode->crtc_hsync_start; mode 786 drivers/gpu/drm/i915/i915_irq.c vbl_start = mode->crtc_vblank_start; mode 787 drivers/gpu/drm/i915/i915_irq.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 847 drivers/gpu/drm/i915/i915_irq.c const struct drm_display_mode *mode = &vblank->hwmode; mode 848 drivers/gpu/drm/i915/i915_irq.c u32 vblank_start = mode->crtc_vblank_start; mode 849 drivers/gpu/drm/i915/i915_irq.c u32 vtotal = mode->crtc_vtotal; mode 850 drivers/gpu/drm/i915/i915_irq.c u32 htotal = mode->crtc_htotal; mode 851 drivers/gpu/drm/i915/i915_irq.c u32 clock = mode->crtc_clock; mode 890 drivers/gpu/drm/i915/i915_irq.c const struct drm_display_mode *mode; mode 899 drivers/gpu/drm/i915/i915_irq.c mode = &vblank->hwmode; mode 901 drivers/gpu/drm/i915/i915_irq.c if (mode->private_flags & I915_MODE_FLAG_GET_SCANLINE_FROM_TIMESTAMP) mode 904 drivers/gpu/drm/i915/i915_irq.c vtotal = mode->crtc_vtotal; mode 905 drivers/gpu/drm/i915/i915_irq.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 948 drivers/gpu/drm/i915/i915_irq.c const struct drm_display_mode *mode) mode 958 drivers/gpu/drm/i915/i915_irq.c mode->private_flags & I915_MODE_FLAG_USE_SCANLINE_COUNTER; mode 960 drivers/gpu/drm/i915/i915_irq.c if (WARN_ON(!mode->crtc_clock)) { mode 966 drivers/gpu/drm/i915/i915_irq.c htotal = mode->crtc_htotal; mode 967 drivers/gpu/drm/i915/i915_irq.c hsync_start = mode->crtc_hsync_start; mode 968 drivers/gpu/drm/i915/i915_irq.c vtotal = mode->crtc_vtotal; mode 969 drivers/gpu/drm/i915/i915_irq.c vbl_start = mode->crtc_vblank_start; mode 970 drivers/gpu/drm/i915/i915_irq.c vbl_end = mode->crtc_vblank_end; mode 972 drivers/gpu/drm/i915/i915_irq.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) { mode 1242 drivers/gpu/drm/i915/i915_irq.c if ((adj < 0 && rps->power.mode == HIGH_POWER) || mode 1243 drivers/gpu/drm/i915/i915_irq.c (adj > 0 && rps->power.mode == LOW_POWER)) mode 119 drivers/gpu/drm/i915/i915_irq.h const struct drm_display_mode *mode); mode 3286 drivers/gpu/drm/i915/i915_perf.c oa_config->sysfs_metric_id.attr.mode = S_IRUGO; mode 3515 drivers/gpu/drm/i915/i915_perf.c .mode = 0644, mode 3524 drivers/gpu/drm/i915/i915_perf.c .mode = 0644, mode 3536 drivers/gpu/drm/i915/i915_perf.c .mode = 0555, mode 3546 drivers/gpu/drm/i915/i915_perf.c .mode = 0555, mode 817 drivers/gpu/drm/i915/i915_pmu.c attr->attr.attr.mode = 0444; mode 830 drivers/gpu/drm/i915/i915_pmu.c attr->attr.attr.mode = 0444; mode 3308 drivers/gpu/drm/i915/i915_reg.h #define PHY_CH_POWER_MODE(mode, phy, ch) ((mode) << (6 * (phy) + 3 * (ch) + 2)) mode 236 drivers/gpu/drm/i915/i915_sw_fence.c static int i915_sw_fence_wake(wait_queue_entry_t *wq, unsigned mode, int flags, void *key) mode 243 drivers/gpu/drm/i915/i915_sysfs.c .attr = {.name = "l3_parity", .mode = (S_IRUSR | S_IWUSR)}, mode 252 drivers/gpu/drm/i915/i915_sysfs.c .attr = {.name = "l3_parity_slice_1", .mode = (S_IRUSR | S_IWUSR)}, mode 553 drivers/gpu/drm/i915/i915_sysfs.c .attr.mode = S_IRUSR | S_IWUSR, mode 6574 drivers/gpu/drm/i915/intel_pm.c if (new_power == rps->power.mode) mode 6637 drivers/gpu/drm/i915/intel_pm.c rps->power.mode = new_power; mode 6647 drivers/gpu/drm/i915/intel_pm.c new_power = rps->power.mode; mode 6648 drivers/gpu/drm/i915/intel_pm.c switch (rps->power.mode) { mode 7117 drivers/gpu/drm/i915/intel_pm.c rps->power.mode = -1; mode 88 drivers/gpu/drm/i915/oa/i915_oa_bdw.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; mode 86 drivers/gpu/drm/i915/oa/i915_oa_bxt.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; mode 87 drivers/gpu/drm/i915/oa/i915_oa_cflgt2.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; mode 87 drivers/gpu/drm/i915/oa/i915_oa_cflgt3.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; mode 87 drivers/gpu/drm/i915/oa/i915_oa_chv.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; mode 99 drivers/gpu/drm/i915/oa/i915_oa_cnl.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; mode 86 drivers/gpu/drm/i915/oa/i915_oa_glk.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; mode 116 drivers/gpu/drm/i915/oa/i915_oa_hsw.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; mode 96 drivers/gpu/drm/i915/oa/i915_oa_icl.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; mode 87 drivers/gpu/drm/i915/oa/i915_oa_kblgt2.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; mode 87 drivers/gpu/drm/i915/oa/i915_oa_kblgt3.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; mode 86 drivers/gpu/drm/i915/oa/i915_oa_sklgt2.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; mode 87 drivers/gpu/drm/i915/oa/i915_oa_sklgt3.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; mode 87 drivers/gpu/drm/i915/oa/i915_oa_sklgt4.c dev_priv->perf.test_config.sysfs_metric_id.attr.mode = 0444; mode 218 drivers/gpu/drm/i915/selftests/i915_vma.c const struct pin_mode *mode, mode 224 drivers/gpu/drm/i915/selftests/i915_vma.c const struct pin_mode *mode, mode 230 drivers/gpu/drm/i915/selftests/i915_vma.c if (i915_vma_misplaced(vma, mode->size, 0, mode->flags)) mode 238 drivers/gpu/drm/i915/selftests/i915_vma.c const struct pin_mode *mode, mode 246 drivers/gpu/drm/i915/selftests/i915_vma.c const struct pin_mode *mode, mode 14 drivers/gpu/drm/i915/selftests/igt_spinner.c unsigned int mode; mode 43 drivers/gpu/drm/i915/selftests/igt_spinner.c mode = i915_coherent_map_type(gt->i915); mode 44 drivers/gpu/drm/i915/selftests/igt_spinner.c vaddr = i915_gem_object_pin_map(spin->obj, mode); mode 152 drivers/gpu/drm/imx/dw_hdmi-imx.c const struct drm_display_mode *mode) mode 154 drivers/gpu/drm/imx/dw_hdmi-imx.c if (mode->clock < 13500) mode 157 drivers/gpu/drm/imx/dw_hdmi-imx.c if (mode->clock > 216000) mode 165 drivers/gpu/drm/imx/dw_hdmi-imx.c const struct drm_display_mode *mode) mode 167 drivers/gpu/drm/imx/dw_hdmi-imx.c if (mode->clock < 13500) mode 170 drivers/gpu/drm/imx/dw_hdmi-imx.c if (mode->clock > 216000) mode 64 drivers/gpu/drm/imx/imx-ldb.c struct drm_display_mode mode; mode 143 drivers/gpu/drm/imx/imx-ldb.c struct drm_display_mode *mode; mode 145 drivers/gpu/drm/imx/imx-ldb.c mode = drm_mode_create(connector->dev); mode 146 drivers/gpu/drm/imx/imx-ldb.c if (!mode) mode 148 drivers/gpu/drm/imx/imx-ldb.c drm_mode_copy(mode, &imx_ldb_ch->mode); mode 149 drivers/gpu/drm/imx/imx-ldb.c mode->type |= DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 150 drivers/gpu/drm/imx/imx-ldb.c drm_mode_probed_add(connector, mode); mode 250 drivers/gpu/drm/imx/imx-ldb.c struct drm_display_mode *mode = &crtc_state->adjusted_mode; mode 254 drivers/gpu/drm/imx/imx-ldb.c unsigned long di_clk = mode->clock * 1000; mode 258 drivers/gpu/drm/imx/imx-ldb.c if (mode->clock > 170000) { mode 262 drivers/gpu/drm/imx/imx-ldb.c if (mode->clock > 85000 && !dual) { mode 268 drivers/gpu/drm/imx/imx-ldb.c serial_clk = 3500UL * mode->clock; mode 272 drivers/gpu/drm/imx/imx-ldb.c serial_clk = 7000UL * mode->clock; mode 279 drivers/gpu/drm/imx/imx-ldb.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 281 drivers/gpu/drm/imx/imx-ldb.c else if (mode->flags & DRM_MODE_FLAG_PVSYNC) mode 285 drivers/gpu/drm/imx/imx-ldb.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 287 drivers/gpu/drm/imx/imx-ldb.c else if (mode->flags & DRM_MODE_FLAG_PVSYNC) mode 574 drivers/gpu/drm/imx/imx-ldb.c &channel->mode, mode 108 drivers/gpu/drm/imx/imx-tve.c int mode; mode 160 drivers/gpu/drm/imx/imx-tve.c if (tve->mode == TVE_MODE_VGA) mode 241 drivers/gpu/drm/imx/imx-tve.c struct drm_display_mode *mode) mode 247 drivers/gpu/drm/imx/imx-tve.c rate = clk_round_rate(tve->clk, 2000UL * mode->clock) / 2000; mode 248 drivers/gpu/drm/imx/imx-tve.c if (rate == mode->clock) mode 252 drivers/gpu/drm/imx/imx-tve.c rate = clk_round_rate(tve->clk, 1000UL * mode->clock) / 1000; mode 253 drivers/gpu/drm/imx/imx-tve.c if (rate == mode->clock) mode 257 drivers/gpu/drm/imx/imx-tve.c mode->hdisplay, mode->vdisplay); mode 272 drivers/gpu/drm/imx/imx-tve.c struct drm_display_mode *mode) mode 285 drivers/gpu/drm/imx/imx-tve.c rate = 2000UL * mode->clock; mode 301 drivers/gpu/drm/imx/imx-tve.c if (tve->mode == TVE_MODE_VGA) mode 474 drivers/gpu/drm/imx/imx-tve.c encoder_type = tve->mode == TVE_MODE_VGA ? mode 562 drivers/gpu/drm/imx/imx-tve.c tve->mode = of_get_tve_mode(np); mode 563 drivers/gpu/drm/imx/imx-tve.c if (tve->mode != TVE_MODE_VGA) { mode 568 drivers/gpu/drm/imx/imx-tve.c if (tve->mode == TVE_MODE_VGA) { mode 211 drivers/gpu/drm/imx/ipuv3-crtc.c const struct drm_display_mode *mode, mode 268 drivers/gpu/drm/imx/ipuv3-crtc.c struct drm_display_mode *mode = &crtc->state->adjusted_mode; mode 274 drivers/gpu/drm/imx/ipuv3-crtc.c mode->hdisplay); mode 276 drivers/gpu/drm/imx/ipuv3-crtc.c mode->vdisplay); mode 308 drivers/gpu/drm/imx/ipuv3-crtc.c drm_display_mode_to_videomode(mode, &sig_cfg.mode); mode 311 drivers/gpu/drm/imx/ipuv3-crtc.c mode->flags & DRM_MODE_FLAG_INTERLACE, mode 312 drivers/gpu/drm/imx/ipuv3-crtc.c imx_crtc_state->bus_format, mode->hdisplay); mode 38 drivers/gpu/drm/imx/ipuv3-plane.h struct drm_display_mode *mode, mode 31 drivers/gpu/drm/imx/parallel-display.c struct drm_display_mode mode; mode 62 drivers/gpu/drm/imx/parallel-display.c struct drm_display_mode *mode = drm_mode_create(connector->dev); mode 65 drivers/gpu/drm/imx/parallel-display.c if (!mode) mode 68 drivers/gpu/drm/imx/parallel-display.c ret = of_get_drm_display_mode(np, &imxpd->mode, mode 74 drivers/gpu/drm/imx/parallel-display.c drm_mode_copy(mode, &imxpd->mode); mode 75 drivers/gpu/drm/imx/parallel-display.c mode->type |= DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, mode 76 drivers/gpu/drm/imx/parallel-display.c drm_mode_probed_add(connector, mode); mode 256 drivers/gpu/drm/ingenic/ingenic-drm.c struct drm_display_mode *mode) mode 260 drivers/gpu/drm/ingenic/ingenic-drm.c vpe = mode->vsync_end - mode->vsync_start; mode 261 drivers/gpu/drm/ingenic/ingenic-drm.c vds = mode->vtotal - mode->vsync_start; mode 262 drivers/gpu/drm/ingenic/ingenic-drm.c vde = vds + mode->vdisplay; mode 263 drivers/gpu/drm/ingenic/ingenic-drm.c vt = vde + mode->vsync_start - mode->vdisplay; mode 265 drivers/gpu/drm/ingenic/ingenic-drm.c hpe = mode->hsync_end - mode->hsync_start; mode 266 drivers/gpu/drm/ingenic/ingenic-drm.c hds = mode->htotal - mode->hsync_start; mode 267 drivers/gpu/drm/ingenic/ingenic-drm.c hde = hds + mode->hdisplay; mode 268 drivers/gpu/drm/ingenic/ingenic-drm.c ht = hde + mode->hsync_start - mode->hdisplay; mode 293 drivers/gpu/drm/ingenic/ingenic-drm.c regmap_write(priv->map, JZ_REG_LCD_REV, mode->htotal << 16); mode 348 drivers/gpu/drm/ingenic/ingenic-drm.c ingenic_drm_crtc_update_timings(priv, &state->mode); mode 393 drivers/gpu/drm/ingenic/ingenic-drm.c struct drm_display_mode *mode = &crtc_state->adjusted_mode; mode 407 drivers/gpu/drm/ingenic/ingenic-drm.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 409 drivers/gpu/drm/ingenic/ingenic-drm.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 418 drivers/gpu/drm/ingenic/ingenic-drm.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 154 drivers/gpu/drm/mcde/mcde_display.c const struct drm_display_mode *mode = &cstate->mode; mode 171 drivers/gpu/drm/mcde/mcde_display.c if (fb->pitches[0] != mode->hdisplay * fb->format->cpp[0]) { mode 335 drivers/gpu/drm/mcde/mcde_display.c const struct drm_display_mode *mode, mode 397 drivers/gpu/drm/mcde/mcde_display.c val = mode->hdisplay << MCDE_OVLXCONF_PPL_SHIFT; mode 398 drivers/gpu/drm/mcde/mcde_display.c val |= mode->vdisplay << MCDE_OVLXCONF_LPF_SHIFT; mode 460 drivers/gpu/drm/mcde/mcde_display.c const struct drm_display_mode *mode) mode 522 drivers/gpu/drm/mcde/mcde_display.c val = (mode->hdisplay - 1) << MCDE_CHNLXCONF_PPL_SHIFT; mode 523 drivers/gpu/drm/mcde/mcde_display.c val |= (mode->vdisplay - 1) << MCDE_CHNLXCONF_LPF_SHIFT; mode 820 drivers/gpu/drm/mcde/mcde_display.c const struct drm_display_mode *mode = &cstate->mode; mode 823 drivers/gpu/drm/mcde/mcde_display.c u32 formatter_ppl = mode->hdisplay; /* pixels per line */ mode 824 drivers/gpu/drm/mcde/mcde_display.c u32 formatter_lpf = mode->vdisplay; /* lines per frame */ mode 834 drivers/gpu/drm/mcde/mcde_display.c mode->hdisplay, mode->vdisplay, mode 863 drivers/gpu/drm/mcde/mcde_display.c fifo_wtrmrk = mode->hdisplay; mode 870 drivers/gpu/drm/mcde/mcde_display.c pkt_div = mcde_dsi_get_pkt_div(mode->hdisplay, 640); mode 885 drivers/gpu/drm/mcde/mcde_display.c mode->hdisplay * mode->vdisplay * cpp); mode 886 drivers/gpu/drm/mcde/mcde_display.c mcde->stride = mode->hdisplay * cpp; mode 911 drivers/gpu/drm/mcde/mcde_display.c MCDE_CHANNEL_0, mode, format); mode 917 drivers/gpu/drm/mcde/mcde_display.c mcde_configure_channel(mcde, MCDE_CHANNEL_0, MCDE_FIFO_A, mode); mode 928 drivers/gpu/drm/mcde/mcde_display.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 366 drivers/gpu/drm/mcde/mcde_dsi.c const struct drm_display_mode *mode) mode 423 drivers/gpu/drm/mcde/mcde_dsi.c val = mode->vdisplay << DSI_VID_VSIZE_VSA_LENGTH_SHIFT; mode 425 drivers/gpu/drm/mcde/mcde_dsi.c val |= (mode->vsync_start - mode->vdisplay) mode 428 drivers/gpu/drm/mcde/mcde_dsi.c val |= (mode->vsync_end - mode->vsync_start) mode 431 drivers/gpu/drm/mcde/mcde_dsi.c val |= (mode->vtotal - mode->vsync_end) mode 442 drivers/gpu/drm/mcde/mcde_dsi.c hfp = (mode->hsync_start - mode->hdisplay) * bpp - 6 - 2; mode 448 drivers/gpu/drm/mcde/mcde_dsi.c hbp = (mode->htotal - mode->hsync_end) * bpp - 4 - 6; mode 454 drivers/gpu/drm/mcde/mcde_dsi.c hsa = (mode->hsync_end - mode->hsync_start) * bpp - 4 - 4 - 6; mode 462 drivers/gpu/drm/mcde/mcde_dsi.c hbp = (mode->htotal - mode->hsync_start) * bpp - 4 - 4 - 6; mode 478 drivers/gpu/drm/mcde/mcde_dsi.c val = mode->hdisplay * (bpp / 8); mode 488 drivers/gpu/drm/mcde/mcde_dsi.c bpl = mode->clock * mode->htotal; mode 500 drivers/gpu/drm/mcde/mcde_dsi.c blkline_pck = bpl - (mode->hsync_end - mode->hsync_start) - 6; mode 520 drivers/gpu/drm/mcde/mcde_dsi.c blkeol_pck = bpl - mode->hdisplay * bpp - 6; mode 678 drivers/gpu/drm/mcde/mcde_dsi.c const struct drm_display_mode *mode, mode 682 drivers/gpu/drm/mcde/mcde_dsi.c unsigned long pixel_clock_hz = mode->clock * 1000; mode 693 drivers/gpu/drm/mcde/mcde_dsi.c mode->hdisplay, mode->vdisplay, pixel_clock_hz, mode 735 drivers/gpu/drm/mcde/mcde_dsi.c mcde_dsi_setup_video_mode(d, mode); mode 70 drivers/gpu/drm/mediatek/mtk_dpi.c struct drm_display_mode mode; mode 416 drivers/gpu/drm/mediatek/mtk_dpi.c struct drm_display_mode *mode) mode 430 drivers/gpu/drm/mediatek/mtk_dpi.c factor = dpi->conf->cal_factor(mode->clock); mode 431 drivers/gpu/drm/mediatek/mtk_dpi.c drm_display_mode_to_videomode(mode, &vm); mode 468 drivers/gpu/drm/mediatek/mtk_dpi.c mode->flags & DRM_MODE_FLAG_3D_MASK) { mode 475 drivers/gpu/drm/mediatek/mtk_dpi.c !(mode->flags & DRM_MODE_FLAG_3D_MASK)) { mode 479 drivers/gpu/drm/mediatek/mtk_dpi.c mode->flags & DRM_MODE_FLAG_3D_MASK) { mode 491 drivers/gpu/drm/mediatek/mtk_dpi.c mtk_dpi_config_3d(dpi, !!(mode->flags & DRM_MODE_FLAG_3D_MASK)); mode 521 drivers/gpu/drm/mediatek/mtk_dpi.c const struct drm_display_mode *mode, mode 528 drivers/gpu/drm/mediatek/mtk_dpi.c struct drm_display_mode *mode, mode 533 drivers/gpu/drm/mediatek/mtk_dpi.c drm_mode_copy(&dpi->mode, adjusted_mode); mode 548 drivers/gpu/drm/mediatek/mtk_dpi.c mtk_dpi_set_display_mode(dpi, &dpi->mode); mode 144 drivers/gpu/drm/mediatek/mtk_drm_crtc.c const struct drm_display_mode *mode, mode 155 drivers/gpu/drm/mediatek/mtk_drm_crtc.c state->pending_width = crtc->mode.hdisplay; mode 156 drivers/gpu/drm/mediatek/mtk_drm_crtc.c state->pending_height = crtc->mode.vdisplay; mode 157 drivers/gpu/drm/mediatek/mtk_drm_crtc.c state->pending_vrefresh = crtc->mode.vrefresh; mode 25 drivers/gpu/drm/mediatek/mtk_drm_fb.c const struct drm_mode_fb_cmd2 *mode, mode 28 drivers/gpu/drm/mediatek/mtk_drm_fb.c const struct drm_format_info *info = drm_get_format_info(dev, mode); mode 39 drivers/gpu/drm/mediatek/mtk_drm_fb.c drm_helper_mode_fill_fb_struct(dev, fb, mode); mode 717 drivers/gpu/drm/mediatek/mtk_dsi.c const struct drm_display_mode *mode, mode 724 drivers/gpu/drm/mediatek/mtk_dsi.c struct drm_display_mode *mode, mode 155 drivers/gpu/drm/mediatek/mtk_hdmi.c struct drm_display_mode mode; mode 408 drivers/gpu/drm/mediatek/mtk_hdmi.c struct drm_display_mode *mode) mode 412 drivers/gpu/drm/mediatek/mtk_hdmi.c if (mode->flags & DRM_MODE_FLAG_INTERLACE && mode 413 drivers/gpu/drm/mediatek/mtk_hdmi.c mode->clock == 74250 && mode 414 drivers/gpu/drm/mediatek/mtk_hdmi.c mode->vdisplay == 1080) mode 861 drivers/gpu/drm/mediatek/mtk_hdmi.c struct drm_display_mode *mode) mode 869 drivers/gpu/drm/mediatek/mtk_hdmi.c mtk_hdmi_hw_msic_setting(hdmi, mode); mode 977 drivers/gpu/drm/mediatek/mtk_hdmi.c struct drm_display_mode *mode) mode 984 drivers/gpu/drm/mediatek/mtk_hdmi.c &hdmi->conn, mode); mode 1057 drivers/gpu/drm/mediatek/mtk_hdmi.c struct drm_display_mode *mode) mode 1064 drivers/gpu/drm/mediatek/mtk_hdmi.c &hdmi->conn, mode); mode 1120 drivers/gpu/drm/mediatek/mtk_hdmi.c return mtk_hdmi_aud_output_config(hdmi, &hdmi->mode); mode 1124 drivers/gpu/drm/mediatek/mtk_hdmi.c struct drm_display_mode *mode) mode 1134 drivers/gpu/drm/mediatek/mtk_hdmi.c mode->clock * 1000); mode 1139 drivers/gpu/drm/mediatek/mtk_hdmi.c mtk_hdmi_video_set_display_mode(hdmi, mode); mode 1142 drivers/gpu/drm/mediatek/mtk_hdmi.c mtk_hdmi_aud_output_config(hdmi, mode); mode 1237 drivers/gpu/drm/mediatek/mtk_hdmi.c struct drm_display_mode *mode) mode 1242 drivers/gpu/drm/mediatek/mtk_hdmi.c mode->hdisplay, mode->vdisplay, mode->vrefresh, mode 1243 drivers/gpu/drm/mediatek/mtk_hdmi.c !!(mode->flags & DRM_MODE_FLAG_INTERLACE), mode->clock * 1000); mode 1248 drivers/gpu/drm/mediatek/mtk_hdmi.c drm_mode_copy(&adjusted_mode, mode); mode 1249 drivers/gpu/drm/mediatek/mtk_hdmi.c if (!drm_bridge_mode_fixup(hdmi->bridge.next, mode, mode 1254 drivers/gpu/drm/mediatek/mtk_hdmi.c if (mode->clock < 27000) mode 1256 drivers/gpu/drm/mediatek/mtk_hdmi.c if (mode->clock > 297000) mode 1259 drivers/gpu/drm/mediatek/mtk_hdmi.c return drm_mode_validate_size(mode, 0x1fff, 0x1fff); mode 1339 drivers/gpu/drm/mediatek/mtk_hdmi.c const struct drm_display_mode *mode, mode 1373 drivers/gpu/drm/mediatek/mtk_hdmi.c const struct drm_display_mode *mode, mode 1391 drivers/gpu/drm/mediatek/mtk_hdmi.c drm_mode_copy(&hdmi->mode, adjusted_mode); mode 1405 drivers/gpu/drm/mediatek/mtk_hdmi.c struct drm_display_mode *mode) mode 1408 drivers/gpu/drm/mediatek/mtk_hdmi.c mtk_hdmi_setup_avi_infoframe(hdmi, mode); mode 1410 drivers/gpu/drm/mediatek/mtk_hdmi.c if (mode->flags & DRM_MODE_FLAG_3D_MASK) mode 1411 drivers/gpu/drm/mediatek/mtk_hdmi.c mtk_hdmi_setup_vendor_specific_infoframe(hdmi, mode); mode 1418 drivers/gpu/drm/mediatek/mtk_hdmi.c mtk_hdmi_output_set_display_mode(hdmi, &hdmi->mode); mode 1422 drivers/gpu/drm/mediatek/mtk_hdmi.c mtk_hdmi_send_infoframe(hdmi, &hdmi->mode); mode 99 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c static void ddcm_trigger_mode(struct mtk_hdmi_ddc *ddc, int mode) mode 104 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c DDCM_SIF_MODE_OFFSET, mode); mode 93 drivers/gpu/drm/meson/meson_crtc.c writel(crtc_state->mode.hdisplay | mode 94 drivers/gpu/drm/meson/meson_crtc.c crtc_state->mode.vdisplay << 16, mode 98 drivers/gpu/drm/meson/meson_crtc.c (crtc_state->mode.hdisplay - 1), mode 101 drivers/gpu/drm/meson/meson_crtc.c (crtc_state->mode.vdisplay - 1), mode 103 drivers/gpu/drm/meson/meson_crtc.c writel_relaxed(crtc_state->mode.hdisplay << 16 | mode 104 drivers/gpu/drm/meson/meson_crtc.c crtc_state->mode.vdisplay, mode 125 drivers/gpu/drm/meson/meson_crtc.c writel(crtc_state->mode.hdisplay, mode 295 drivers/gpu/drm/meson/meson_dw_hdmi.c struct drm_display_mode *mode) mode 298 drivers/gpu/drm/meson/meson_dw_hdmi.c unsigned int pixel_clock = mode->clock; mode 371 drivers/gpu/drm/meson/meson_dw_hdmi.c struct drm_display_mode *mode) mode 374 drivers/gpu/drm/meson/meson_dw_hdmi.c int vic = drm_match_cea_mode(mode); mode 379 drivers/gpu/drm/meson/meson_dw_hdmi.c vclk_freq = mode->clock; mode 387 drivers/gpu/drm/meson/meson_dw_hdmi.c if (mode->flags & DRM_MODE_FLAG_DBLCLK) mode 398 drivers/gpu/drm/meson/meson_dw_hdmi.c if (mode->flags & DRM_MODE_FLAG_DBLCLK) mode 410 drivers/gpu/drm/meson/meson_dw_hdmi.c struct drm_display_mode *mode) mode 417 drivers/gpu/drm/meson/meson_dw_hdmi.c DRM_DEBUG_DRIVER("\"%s\" div%d\n", mode->name, mode 418 drivers/gpu/drm/meson/meson_dw_hdmi.c mode->clock > 340000 ? 40 : 10); mode 441 drivers/gpu/drm/meson/meson_dw_hdmi.c if (mode->clock > 340000) { mode 459 drivers/gpu/drm/meson/meson_dw_hdmi.c meson_hdmi_phy_setup_mode(dw_hdmi, mode); mode 613 drivers/gpu/drm/meson/meson_dw_hdmi.c const struct drm_display_mode *mode) mode 619 drivers/gpu/drm/meson/meson_dw_hdmi.c int vic = drm_match_cea_mode(mode); mode 622 drivers/gpu/drm/meson/meson_dw_hdmi.c DRM_DEBUG_DRIVER("Modeline " DRM_MODE_FMT "\n", DRM_MODE_ARG(mode)); mode 626 drivers/gpu/drm/meson/meson_dw_hdmi.c mode->clock > connector->display_info.max_tmds_clock) mode 631 drivers/gpu/drm/meson/meson_dw_hdmi.c status = meson_venc_hdmi_supported_mode(mode); mode 635 drivers/gpu/drm/meson/meson_dw_hdmi.c return meson_vclk_dmt_supported_freq(priv, mode->clock); mode 640 drivers/gpu/drm/meson/meson_dw_hdmi.c vclk_freq = mode->clock; mode 643 drivers/gpu/drm/meson/meson_dw_hdmi.c if (mode->flags & DRM_MODE_FLAG_DBLCLK) mode 655 drivers/gpu/drm/meson/meson_dw_hdmi.c if (mode->flags & DRM_MODE_FLAG_DBLCLK) mode 710 drivers/gpu/drm/meson/meson_dw_hdmi.c struct drm_display_mode *mode, mode 715 drivers/gpu/drm/meson/meson_dw_hdmi.c int vic = drm_match_cea_mode(mode); mode 717 drivers/gpu/drm/meson/meson_dw_hdmi.c DRM_DEBUG_DRIVER("\"%s\" vic %d\n", mode->name, vic); mode 720 drivers/gpu/drm/meson/meson_dw_hdmi.c meson_venc_hdmi_mode_set(priv, vic, mode); mode 723 drivers/gpu/drm/meson/meson_dw_hdmi.c dw_hdmi_set_vclk(dw_hdmi, mode); mode 167 drivers/gpu/drm/meson/meson_overlay.c crtc_height = crtc_state->mode.vdisplay; mode 168 drivers/gpu/drm/meson/meson_overlay.c crtc_width = crtc_state->mode.hdisplay; mode 349 drivers/gpu/drm/meson/meson_overlay.c interlace_mode = state->crtc->mode.flags & DRM_MODE_FLAG_INTERLACE; mode 189 drivers/gpu/drm/meson/meson_plane.c if (state->crtc->mode.flags & DRM_MODE_FLAG_INTERLACE) { mode 211 drivers/gpu/drm/meson/meson_plane.c if (state->crtc->mode.flags & DRM_MODE_FLAG_INTERLACE) { mode 220 drivers/gpu/drm/meson/meson_plane.c if (state->crtc->mode.flags & DRM_MODE_FLAG_INTERLACE) mode 252 drivers/gpu/drm/meson/meson_plane.c if (state->crtc->mode.flags & DRM_MODE_FLAG_INTERLACE) mode 819 drivers/gpu/drm/meson/meson_venc.c union meson_hdmi_venc_mode *mode; mode 863 drivers/gpu/drm/meson/meson_venc.c meson_venc_hdmi_supported_mode(const struct drm_display_mode *mode) mode 865 drivers/gpu/drm/meson/meson_venc.c if (mode->flags & ~(DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NHSYNC | mode 869 drivers/gpu/drm/meson/meson_venc.c if (mode->hdisplay < 640 || mode->hdisplay > 1920) mode 872 drivers/gpu/drm/meson/meson_venc.c if (mode->vdisplay < 480 || mode->vdisplay > 1200) mode 883 drivers/gpu/drm/meson/meson_venc.c while (vmode->vic && vmode->mode) { mode 893 drivers/gpu/drm/meson/meson_venc.c void meson_venc_hdmi_get_dmt_vmode(const struct drm_display_mode *mode, mode 901 drivers/gpu/drm/meson/meson_venc.c dmt_mode->encp.max_pxcnt = mode->htotal - 1; mode 902 drivers/gpu/drm/meson/meson_venc.c dmt_mode->encp.havon_begin = mode->htotal - mode->hsync_start; mode 904 drivers/gpu/drm/meson/meson_venc.c mode->hdisplay - 1; mode 905 drivers/gpu/drm/meson/meson_venc.c dmt_mode->encp.vavon_bline = mode->vtotal - mode->vsync_start; mode 907 drivers/gpu/drm/meson/meson_venc.c mode->vdisplay - 1; mode 909 drivers/gpu/drm/meson/meson_venc.c dmt_mode->encp.hso_end = mode->hsync_end - mode->hsync_start; mode 913 drivers/gpu/drm/meson/meson_venc.c dmt_mode->encp.vso_eline = mode->vsync_end - mode->vsync_start; mode 915 drivers/gpu/drm/meson/meson_venc.c dmt_mode->encp.max_lncnt = mode->vtotal - 1; mode 922 drivers/gpu/drm/meson/meson_venc.c while (vmode->vic && vmode->mode) { mode 924 drivers/gpu/drm/meson/meson_venc.c return vmode->mode; mode 949 drivers/gpu/drm/meson/meson_venc.c struct drm_display_mode *mode) mode 982 drivers/gpu/drm/meson/meson_venc.c if (mode->flags & DRM_MODE_FLAG_DBLCLK) { mode 993 drivers/gpu/drm/meson/meson_venc.c DRM_MODE_ARG(mode)); mode 997 drivers/gpu/drm/meson/meson_venc.c meson_venc_hdmi_get_dmt_vmode(mode, &vmode_dmt); mode 1006 drivers/gpu/drm/meson/meson_venc.c eof_lines = mode->vsync_start - mode->vdisplay; mode 1007 drivers/gpu/drm/meson/meson_venc.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 1009 drivers/gpu/drm/meson/meson_venc.c sof_lines = mode->vtotal - mode->vsync_end; mode 1010 drivers/gpu/drm/meson/meson_venc.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 1012 drivers/gpu/drm/meson/meson_venc.c vsync_lines = mode->vsync_end - mode->vsync_start; mode 1013 drivers/gpu/drm/meson/meson_venc.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 1016 drivers/gpu/drm/meson/meson_venc.c total_pixels_venc = mode->htotal; mode 1022 drivers/gpu/drm/meson/meson_venc.c active_pixels_venc = mode->hdisplay; mode 1028 drivers/gpu/drm/meson/meson_venc.c front_porch_venc = (mode->hsync_start - mode->hdisplay); mode 1034 drivers/gpu/drm/meson/meson_venc.c hsync_pixels_venc = (mode->hsync_end - mode->hsync_start); mode 1151 drivers/gpu/drm/meson/meson_venc.c lines_f0 = mode->vtotal >> 1; mode 1168 drivers/gpu/drm/meson/meson_venc.c de_v_end_even = de_v_begin_even + mode->vdisplay; mode 1171 drivers/gpu/drm/meson/meson_venc.c de_v_end_odd = de_v_begin_odd + mode->vdisplay; mode 1416 drivers/gpu/drm/meson/meson_venc.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 1418 drivers/gpu/drm/meson/meson_venc.c (mode->vdisplay / 2); mode 1420 drivers/gpu/drm/meson/meson_venc.c de_v_end_even = de_v_begin_even + mode->vdisplay; mode 1428 drivers/gpu/drm/meson/meson_venc.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) { mode 1434 drivers/gpu/drm/meson/meson_venc.c + ((mode->vtotal - 1) / 2); mode 1435 drivers/gpu/drm/meson/meson_venc.c de_v_end_odd = de_v_begin_odd + (mode->vdisplay / 2); mode 1471 drivers/gpu/drm/meson/meson_venc.c vs_bline_evn = mode->vtotal mode 1478 drivers/gpu/drm/meson/meson_venc.c mode->vtotal); mode 1492 drivers/gpu/drm/meson/meson_venc.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) { mode 1524 drivers/gpu/drm/meson/meson_venc.c if (mode->flags & DRM_MODE_FLAG_PHSYNC) mode 1528 drivers/gpu/drm/meson/meson_venc.c if (mode->flags & DRM_MODE_FLAG_PVSYNC) mode 1559 drivers/gpu/drm/meson/meson_venc.c struct meson_cvbs_enci_mode *mode) mode 1563 drivers/gpu/drm/meson/meson_venc.c if (mode->mode_tag == priv->venc.current_mode) mode 1581 drivers/gpu/drm/meson/meson_venc.c writel_relaxed(mode->hso_begin, mode 1583 drivers/gpu/drm/meson/meson_venc.c writel_relaxed(mode->hso_end, mode 1587 drivers/gpu/drm/meson/meson_venc.c writel_relaxed(mode->vso_even, mode 1589 drivers/gpu/drm/meson/meson_venc.c writel_relaxed(mode->vso_odd, mode 1594 drivers/gpu/drm/meson/meson_venc.c ENCI_MACV_MAX_AMP_VAL(mode->macv_max_amp), mode 1598 drivers/gpu/drm/meson/meson_venc.c writel_relaxed(mode->video_prog_mode, mode 1600 drivers/gpu/drm/meson/meson_venc.c writel_relaxed(mode->video_mode, mode 1617 drivers/gpu/drm/meson/meson_venc.c writel(mode->sch_adjust, priv->io_base + _REG(ENCI_VIDEO_SCH)); mode 1623 drivers/gpu/drm/meson/meson_venc.c writel_relaxed(mode->yc_delay, priv->io_base + _REG(ENCI_YC_DELAY)); mode 1626 drivers/gpu/drm/meson/meson_venc.c writel_relaxed(mode->pixel_start, mode 1628 drivers/gpu/drm/meson/meson_venc.c writel_relaxed(mode->pixel_end, mode 1631 drivers/gpu/drm/meson/meson_venc.c writel_relaxed(mode->top_field_line_start, mode 1633 drivers/gpu/drm/meson/meson_venc.c writel_relaxed(mode->top_field_line_end, mode 1636 drivers/gpu/drm/meson/meson_venc.c writel_relaxed(mode->bottom_field_line_start, mode 1638 drivers/gpu/drm/meson/meson_venc.c writel_relaxed(mode->bottom_field_line_end, mode 1716 drivers/gpu/drm/meson/meson_venc.c writel_relaxed(mode->video_saturation, mode 1718 drivers/gpu/drm/meson/meson_venc.c writel_relaxed(mode->video_contrast, mode 1720 drivers/gpu/drm/meson/meson_venc.c writel_relaxed(mode->video_brightness, mode 1722 drivers/gpu/drm/meson/meson_venc.c writel_relaxed(mode->video_hue, mode 1734 drivers/gpu/drm/meson/meson_venc.c writel_relaxed(mode->analog_sync_adj, mode 1737 drivers/gpu/drm/meson/meson_venc.c priv->venc.current_mode = mode->mode_tag; mode 52 drivers/gpu/drm/meson/meson_venc.h meson_venc_hdmi_supported_mode(const struct drm_display_mode *mode); mode 61 drivers/gpu/drm/meson/meson_venc.h struct meson_cvbs_enci_mode *mode); mode 63 drivers/gpu/drm/meson/meson_venc.h struct drm_display_mode *mode); mode 47 drivers/gpu/drm/meson/meson_venc_cvbs.c .mode = { mode 57 drivers/gpu/drm/meson/meson_venc_cvbs.c .mode = { mode 75 drivers/gpu/drm/meson/meson_venc_cvbs.c if (drm_mode_match(req_mode, &meson_mode->mode, mode 103 drivers/gpu/drm/meson/meson_venc_cvbs.c struct drm_display_mode *mode; mode 109 drivers/gpu/drm/meson/meson_venc_cvbs.c mode = drm_mode_duplicate(dev, &meson_mode->mode); mode 110 drivers/gpu/drm/meson/meson_venc_cvbs.c if (!mode) { mode 115 drivers/gpu/drm/meson/meson_venc_cvbs.c drm_mode_probed_add(connector, mode); mode 122 drivers/gpu/drm/meson/meson_venc_cvbs.c struct drm_display_mode *mode) mode 158 drivers/gpu/drm/meson/meson_venc_cvbs.c if (meson_cvbs_get_mode(&crtc_state->mode)) mode 204 drivers/gpu/drm/meson/meson_venc_cvbs.c struct drm_display_mode *mode, mode 207 drivers/gpu/drm/meson/meson_venc_cvbs.c const struct meson_cvbs_mode *meson_mode = meson_cvbs_get_mode(mode); mode 19 drivers/gpu/drm/meson/meson_venc_cvbs.h struct drm_display_mode mode; mode 465 drivers/gpu/drm/mga/mga_dma.c struct drm_agp_mode mode; mode 483 drivers/gpu/drm/mga/mga_dma.c mode.mode = (info.mode & ~0x07) | dma_bs->agp_mode; mode 484 drivers/gpu/drm/mga/mga_dma.c err = drm_agp_enable(dev, mode); mode 486 drivers/gpu/drm/mga/mga_dma.c DRM_ERROR("Unable to enable AGP (mode = 0x%lx)\n", mode.mode); mode 495 drivers/gpu/drm/mga/mga_dma.c if (mode.mode & 0x02) mode 187 drivers/gpu/drm/mgag200/mgag200_drv.h struct drm_display_mode mode; mode 899 drivers/gpu/drm/mgag200/mgag200_mode.c struct drm_display_mode *mode, mode 986 drivers/gpu/drm/mgag200/mgag200_mode.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 988 drivers/gpu/drm/mgag200/mgag200_mode.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 1031 drivers/gpu/drm/mgag200/mgag200_mode.c hdisplay = mode->hdisplay / 8 - 1; mode 1032 drivers/gpu/drm/mgag200/mgag200_mode.c hsyncstart = mode->hsync_start / 8 - 1; mode 1033 drivers/gpu/drm/mgag200/mgag200_mode.c hsyncend = mode->hsync_end / 8 - 1; mode 1034 drivers/gpu/drm/mgag200/mgag200_mode.c htotal = mode->htotal / 8 - 1; mode 1040 drivers/gpu/drm/mgag200/mgag200_mode.c vdisplay = mode->vdisplay - 1; mode 1041 drivers/gpu/drm/mgag200/mgag200_mode.c vsyncstart = mode->vsync_start - 1; mode 1042 drivers/gpu/drm/mgag200/mgag200_mode.c vsyncend = mode->vsync_end - 1; mode 1043 drivers/gpu/drm/mgag200/mgag200_mode.c vtotal = mode->vtotal - 2; mode 1115 drivers/gpu/drm/mgag200/mgag200_mode.c mga_crtc_set_plls(mdev, mode->clock); mode 1138 drivers/gpu/drm/mgag200/mgag200_mode.c memcpy(&mdev->mode, mode, sizeof(struct drm_display_mode)); mode 1176 drivers/gpu/drm/mgag200/mgag200_mode.c mb = (mode->clock * bpp) / 1000; mode 1262 drivers/gpu/drm/mgag200/mgag200_mode.c static void mga_crtc_dpms(struct drm_crtc *crtc, int mode) mode 1268 drivers/gpu/drm/mgag200/mgag200_mode.c switch (mode) { mode 1289 drivers/gpu/drm/mgag200/mgag200_mode.c if (mode == DRM_MODE_DPMS_OFF) { mode 1304 drivers/gpu/drm/mgag200/mgag200_mode.c if (mode == DRM_MODE_DPMS_ON && mdev->suspended == true) { mode 1465 drivers/gpu/drm/mgag200/mgag200_mode.c struct drm_display_mode *mode, mode 1537 drivers/gpu/drm/mgag200/mgag200_mode.c static uint32_t mga_vga_calculate_mode_bandwidth(struct drm_display_mode *mode, mode 1546 drivers/gpu/drm/mgag200/mgag200_mode.c if (!mode->htotal || !mode->vtotal || !mode->clock) mode 1549 drivers/gpu/drm/mgag200/mgag200_mode.c active_area = mode->hdisplay * mode->vdisplay; mode 1550 drivers/gpu/drm/mgag200/mgag200_mode.c total_area = mode->htotal * mode->vtotal; mode 1552 drivers/gpu/drm/mgag200/mgag200_mode.c pixels_per_second = active_area * mode->clock * 1000; mode 1564 drivers/gpu/drm/mgag200/mgag200_mode.c struct drm_display_mode *mode) mode 1572 drivers/gpu/drm/mgag200/mgag200_mode.c if (mode->hdisplay > 1600) mode 1574 drivers/gpu/drm/mgag200/mgag200_mode.c if (mode->vdisplay > 1200) mode 1576 drivers/gpu/drm/mgag200/mgag200_mode.c if (mga_vga_calculate_mode_bandwidth(mode, bpp) mode 1580 drivers/gpu/drm/mgag200/mgag200_mode.c if (mode->hdisplay > 1920) mode 1582 drivers/gpu/drm/mgag200/mgag200_mode.c if (mode->vdisplay > 1200) mode 1584 drivers/gpu/drm/mgag200/mgag200_mode.c if (mga_vga_calculate_mode_bandwidth(mode, bpp) mode 1588 drivers/gpu/drm/mgag200/mgag200_mode.c if (mga_vga_calculate_mode_bandwidth(mode, bpp) mode 1593 drivers/gpu/drm/mgag200/mgag200_mode.c if (mode->hdisplay > 1280) mode 1595 drivers/gpu/drm/mgag200/mgag200_mode.c if (mode->vdisplay > 1024) mode 1597 drivers/gpu/drm/mgag200/mgag200_mode.c if (mga_vga_calculate_mode_bandwidth(mode, bpp) > mode 1601 drivers/gpu/drm/mgag200/mgag200_mode.c (mga_vga_calculate_mode_bandwidth(mode, bpp) mode 1605 drivers/gpu/drm/mgag200/mgag200_mode.c (mga_vga_calculate_mode_bandwidth(mode, bpp) mode 1609 drivers/gpu/drm/mgag200/mgag200_mode.c (mga_vga_calculate_mode_bandwidth(mode, mode 1614 drivers/gpu/drm/mgag200/mgag200_mode.c if ((mode->hdisplay % 8) != 0 || (mode->hsync_start % 8) != 0 || mode 1615 drivers/gpu/drm/mgag200/mgag200_mode.c (mode->hsync_end % 8) != 0 || (mode->htotal % 8) != 0) { mode 1619 drivers/gpu/drm/mgag200/mgag200_mode.c if (mode->crtc_hdisplay > 2048 || mode->crtc_hsync_start > 4096 || mode 1620 drivers/gpu/drm/mgag200/mgag200_mode.c mode->crtc_hsync_end > 4096 || mode->crtc_htotal > 4096 || mode 1621 drivers/gpu/drm/mgag200/mgag200_mode.c mode->crtc_vdisplay > 2048 || mode->crtc_vsync_start > 4096 || mode 1622 drivers/gpu/drm/mgag200/mgag200_mode.c mode->crtc_vsync_end > 4096 || mode->crtc_vtotal > 4096) { mode 1632 drivers/gpu/drm/mgag200/mgag200_mode.c if ((mode->hdisplay * mode->vdisplay * (bpp/8)) > mdev->mc.vram_size) { mode 86 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c } else if (kms->perf.perf_tune.mode == DPU_PERF_MODE_MINIMUM) { mode 90 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c } else if (kms->perf.perf_tune.mode == DPU_PERF_MODE_FIXED) { mode 274 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c if (kms->perf.perf_tune.mode == DPU_PERF_MODE_FIXED) mode 415 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c perf->perf_tune.mode = perf_mode; mode 429 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c perf->perf_tune.mode, mode 49 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.h u32 mode; mode 691 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c struct drm_display_mode *mode; mode 703 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c mode = &cstate->base.adjusted_mode; mode 820 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c struct drm_display_mode *mode; mode 846 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c mode = &state->adjusted_mode; mode 855 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c mixer_width = mode->hdisplay / cstate->num_mixers; mode 859 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c crtc_rect.x2 = mode->hdisplay; mode 860 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c crtc_rect.y2 = mode->vdisplay; mode 1084 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c struct drm_display_mode *mode; mode 1097 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c mode = &crtc->state->adjusted_mode; mode 1098 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c out_width = mode->hdisplay / cstate->num_mixers; mode 1101 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c mode->hdisplay, mode->vdisplay); mode 1114 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c out_width, mode->vdisplay); mode 492 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c cfg.mode = phys_enc->intf_mode; mode 528 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c struct drm_display_mode *mode) mode 538 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c topology.num_lm = (mode->vdisplay > MAX_VDISPLAY_SPLIT) ? 2 : 1; mode 552 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c const struct drm_display_mode *mode; mode 569 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c mode = &crtc_state->mode; mode 590 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c if (!phys->ops.mode_fixup(phys, mode, adj_mode)) mode 945 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c struct drm_display_mode *mode, mode 1079 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c phys->ops.mode_set(phys, mode, adj_mode); mode 1187 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c struct drm_display_mode *mode; mode 1207 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c mode = &drm_enc->crtc->state->adjusted_mode; mode 1637 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c struct drm_display_mode *mode) mode 1654 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c pclk_rate = mode->clock; /* pixel clock in kHz */ mode 1670 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c line_time = (pclk_period * mode->htotal) / 1000; mode 1685 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c struct drm_display_mode *mode; mode 1698 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c mode = &drm_enc->crtc->state->adjusted_mode; mode 1700 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c line_time = _dpu_encoder_calculate_linetime(dpu_enc, mode); mode 1706 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c vtotal = mode->vtotal; mode 121 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h const struct drm_display_mode *mode, mode 124 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h struct drm_display_mode *mode, mode 45 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c const struct drm_display_mode *mode, mode 178 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c struct drm_display_mode *mode, mode 184 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c if (!phys_enc || !mode || !adj_mode) { mode 355 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c struct drm_display_mode *mode; mode 365 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c mode = &phys_enc->cached_mode; mode 399 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c (mode->vtotal * drm_mode_vrefresh(mode)); mode 410 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c tc_cfg.vsync_init_val = mode->vdisplay; mode 413 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c tc_cfg.start_pos = mode->vdisplay; mode 414 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c tc_cfg.rd_ptr_irq = mode->vdisplay + 1; mode 419 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c mode->vtotal, drm_mode_vrefresh(mode)); mode 40 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c const struct drm_display_mode *mode, mode 45 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c if ((mode->htotal < mode->hsync_end) mode 46 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c || (mode->hsync_start < mode->hdisplay) mode 47 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c || (mode->vtotal < mode->vsync_end) mode 48 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c || (mode->vsync_start < mode->vdisplay) mode 49 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c || (mode->hsync_end < mode->hsync_start) mode 50 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c || (mode->vsync_end < mode->vsync_start)) { mode 53 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c mode->hsync_start, mode->hsync_end, mode 54 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c mode->htotal, mode->hdisplay); mode 56 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c mode->vsync_start, mode->vsync_end, mode 57 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c mode->vtotal, mode->vdisplay); mode 70 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c timing->width = mode->hdisplay; /* active width */ mode 71 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c timing->height = mode->vdisplay; /* active height */ mode 74 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c timing->h_back_porch = mode->htotal - mode->hsync_end; mode 75 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c timing->h_front_porch = mode->hsync_start - mode->hdisplay; mode 76 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c timing->v_back_porch = mode->vtotal - mode->vsync_end; mode 77 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c timing->v_front_porch = mode->vsync_start - mode->vdisplay; mode 78 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c timing->hsync_pulse_width = mode->hsync_end - mode->hsync_start; mode 79 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c timing->vsync_pulse_width = mode->vsync_end - mode->vsync_start; mode 80 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c timing->hsync_polarity = (mode->flags & DRM_MODE_FLAG_NHSYNC) ? 1 : 0; mode 81 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c timing->vsync_polarity = (mode->flags & DRM_MODE_FLAG_NVSYNC) ? 1 : 0; mode 84 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c timing->hsync_skew = mode->hskew; mode 220 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c const struct drm_display_mode *mode, mode 235 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c struct drm_display_mode mode; mode 247 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c mode = phys_enc->cached_mode; mode 254 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c drm_mode_debug_printmodeline(&mode); mode 257 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c mode.hdisplay >>= 1; mode 258 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c mode.htotal >>= 1; mode 259 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c mode.hsync_start >>= 1; mode 260 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c mode.hsync_end >>= 1; mode 265 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c mode.hdisplay, mode.htotal, mode 266 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c mode.hsync_start, mode.hsync_end); mode 269 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c drm_mode_to_intf_timing_params(phys_enc, &mode, &timing_params); mode 374 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c struct drm_display_mode *mode, mode 167 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c enum dpu_sspp_multirect_mode mode) mode 185 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c if (mode == DPU_SSPP_MULTIRECT_TIME_MX) mode 162 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h enum dpu_sspp_multirect_mode mode; mode 290 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h enum dpu_sspp_multirect_mode mode); mode 67 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c if (cfg->mode == INTF_MODE_CMD) { mode 41 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h enum dpu_intf_mode mode; mode 210 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c void dpu_debugfs_create_regset32(const char *name, umode_t mode, mode 219 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c debugfs_create_file(name, mode, parent, regset, &dpu_fops_regset32); mode 200 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h void dpu_debugfs_create_regset32(const char *name, umode_t mode, mode 382 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c ot_params.frame_rate = drm_mode_vrefresh(&crtc->mode); mode 51 drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h TP_PROTO(u32 pnum, u32 fmt, u32 mode, u32 danger_lut, mode 53 drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h TP_ARGS(pnum, fmt, mode, danger_lut, safe_lut), mode 57 drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h __field(u32, mode) mode 64 drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h __entry->mode = mode; mode 70 drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h __entry->mode, __entry->danger_lut, mode 230 drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c struct drm_display_mode *mode; mode 235 drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c mode = &crtc->state->adjusted_mode; mode 238 drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c mdp4_crtc->name, DRM_MODE_ARG(mode)); mode 241 drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c MDP4_DMA_SRC_SIZE_WIDTH(mode->hdisplay) | mode 242 drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c MDP4_DMA_SRC_SIZE_HEIGHT(mode->vdisplay)); mode 253 drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c MDP4_OVLP_SIZE_WIDTH(mode->hdisplay) | mode 254 drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c MDP4_OVLP_SIZE_HEIGHT(mode->vdisplay)); mode 40 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c struct drm_display_mode *mode, mode 48 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c mode = adjusted_mode; mode 50 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode)); mode 53 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 55 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 61 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c hsync_start_x = (mode->htotal - mode->hsync_start); mode 62 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; mode 64 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c vsync_period = mode->vtotal * mode->htotal; mode 65 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; mode 66 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dsi_hsync_skew; mode 67 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dsi_hsync_skew - 1; mode 70 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c MDP4_DSI_HSYNC_CTRL_PULSEW(mode->hsync_end - mode->hsync_start) | mode 71 drivers/gpu/drm/msm/disp/mdp4/mdp4_dsi_encoder.c MDP4_DSI_HSYNC_CTRL_PERIOD(mode->htotal)); mode 85 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c struct drm_display_mode *mode, mode 94 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c mode = adjusted_mode; mode 96 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode)); mode 98 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c mdp4_dtv_encoder->pixclock = mode->clock * 1000; mode 103 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 105 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 111 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c hsync_start_x = (mode->htotal - mode->hsync_start); mode 112 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; mode 114 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c vsync_period = mode->vtotal * mode->htotal; mode 115 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; mode 116 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; mode 117 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dtv_hsync_skew - 1; mode 120 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c MDP4_DTV_HSYNC_CTRL_PULSEW(mode->hsync_end - mode->hsync_start) | mode 121 drivers/gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c MDP4_DTV_HSYNC_CTRL_PERIOD(mode->htotal)); mode 255 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c struct drm_display_mode *mode, mode 265 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c mode = adjusted_mode; mode 267 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode)); mode 269 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c mdp4_lcdc_encoder->pixclock = mode->clock * 1000; mode 274 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 276 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 282 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c hsync_start_x = (mode->htotal - mode->hsync_start); mode 283 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; mode 285 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c vsync_period = mode->vtotal * mode->htotal; mode 286 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; mode 287 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + lcdc_hsync_skew; mode 288 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + lcdc_hsync_skew - 1; mode 291 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c MDP4_LCDC_HSYNC_CTRL_PULSEW(mode->hsync_end - mode->hsync_start) | mode 292 drivers/gpu/drm/msm/disp/mdp4/mdp4_lcdc_encoder.c MDP4_LCDC_HSYNC_CTRL_PERIOD(mode->htotal)); mode 65 drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_connector.c struct drm_display_mode *mode) mode 72 drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_connector.c requested = 1000 * mode->clock; mode 40 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c struct drm_display_mode *mode) mode 54 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c total_lines_x100 = mode->vtotal * drm_mode_vrefresh(mode); mode 57 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c __func__, mode->vtotal, drm_mode_vrefresh(mode)); mode 77 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c REG_MDP5_PP_VSYNC_INIT_VAL(pp_id), mode->vdisplay); mode 78 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c mdp5_write(mdp5_kms, REG_MDP5_PP_RD_PTR_IRQ(pp_id), mode->vdisplay + 1); mode 79 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c mdp5_write(mdp5_kms, REG_MDP5_PP_START_POS(pp_id), mode->vdisplay); mode 124 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c struct drm_display_mode *mode, mode 127 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c mode = adjusted_mode; mode 129 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode)); mode 130 drivers/gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c pingpong_tearcheck_setup(encoder, mode); mode 372 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c struct drm_display_mode *mode; mode 377 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c mode = &crtc->state->adjusted_mode; mode 379 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c DBG("%s: set mode: " DRM_MODE_FMT, crtc->name, DRM_MODE_ARG(mode)); mode 381 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c mixer_width = mode->hdisplay; mode 388 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c MDP5_LM_OUT_SIZE_HEIGHT(mode->vdisplay)); mode 400 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c MDP5_LM_OUT_SIZE_HEIGHT(mode->vdisplay)); mode 451 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c count = intf->mode == MDP5_INTF_DSI_MODE_COMMAND ? 0 : 0xffffffff; mode 555 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c (intf->mode == MDP5_INTF_DSI_MODE_COMMAND)) { mode 583 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c ((pstate->crtc_x + pstate->crtc_w) >= cstate->mode.hdisplay) && mode 584 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c ((pstate->crtc_y + pstate->crtc_h) >= cstate->mode.vdisplay); mode 619 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c const struct drm_display_mode *mode = &state->adjusted_mode; mode 657 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c if (mode->hdisplay > hw_cfg->lm.max_width) mode 753 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c uint32_t xres = crtc->mode.hdisplay; mode 754 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c uint32_t yres = crtc->mode.vdisplay; mode 146 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c if (intf->mode == MDP5_INTF_DSI_MODE_COMMAND) mode 151 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c if (intf->mode == MDP5_INTF_WB_MODE_LINE) mode 194 drivers/gpu/drm/msm/disp/mdp5/mdp5_ctl.c return intf->mode == MDP5_INTF_DSI_MODE_COMMAND; mode 94 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct drm_display_mode *mode, mode 108 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c mode = adjusted_mode; mode 110 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode)); mode 116 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 118 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 147 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c hsync_start_x = (mode->htotal - mode->hsync_start); mode 148 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c hsync_end_x = mode->htotal - (mode->hsync_start - mode->hdisplay) - 1; mode 150 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c vsync_period = mode->vtotal * mode->htotal; mode 151 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c vsync_len = (mode->vsync_end - mode->vsync_start) * mode->htotal; mode 152 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c display_v_start = (mode->vtotal - mode->vsync_start) * mode->htotal + dtv_hsync_skew; mode 153 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c display_v_end = vsync_period - ((mode->vsync_start - mode->vdisplay) * mode->htotal) + dtv_hsync_skew - 1; mode 161 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c display_v_start += mode->htotal - mode->hsync_start; mode 162 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c display_v_end -= mode->hsync_start - mode->hdisplay; mode 168 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c MDP5_INTF_HSYNC_CTL_PULSEW(mode->hsync_end - mode->hsync_start) | mode 169 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c MDP5_INTF_HSYNC_CTL_PERIOD(mode->htotal)); mode 255 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c struct drm_display_mode *mode, mode 261 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c if (intf->mode == MDP5_INTF_DSI_MODE_COMMAND) mode 262 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c mdp5_cmd_encoder_mode_set(encoder, mode, adjusted_mode); mode 264 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c mdp5_vid_encoder_mode_set(encoder, mode, adjusted_mode); mode 272 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c if (intf->mode == MDP5_INTF_DSI_MODE_COMMAND) mode 285 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c mdp5_encoder_mode_set(encoder, &cstate->mode, &cstate->adjusted_mode); mode 287 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c if (intf->mode == MDP5_INTF_DSI_MODE_COMMAND) mode 393 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c intf->mode = MDP5_INTF_DSI_MODE_COMMAND; mode 396 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c intf->mode = MDP5_INTF_DSI_MODE_VIDEO; mode 398 drivers/gpu/drm/msm/disp/mdp5/mdp5_encoder.c intf->mode = MDP5_INTF_MODE_NONE; mode 601 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c const struct drm_display_mode *mode) mode 620 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c vsw = mode->crtc_vsync_end - mode->crtc_vsync_start; mode 621 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c vbp = mode->crtc_vtotal - mode->crtc_vsync_end; mode 631 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c vactive_end = vactive_start + mode->crtc_vdisplay; mode 634 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c vfp_end = mode->crtc_vtotal; mode 922 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c intf->mode = MDP5_INTF_MODE_NONE; mode 156 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h enum mdp5_intf_mode mode; mode 242 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h (intf->mode == MDP5_INTF_DSI_MODE_COMMAND)) mode 300 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h struct drm_display_mode *mode, mode 308 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.h struct drm_display_mode *mode, mode 571 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c uint32_t i, mode = 0; /* RGB, no CSC */ mode 578 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c mode |= MDP5_PIPE_OP_MODE_CSC_SRC_DATA_FORMAT(DATA_FORMAT_YUV); mode 580 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c mode |= MDP5_PIPE_OP_MODE_CSC_DST_DATA_FORMAT(DATA_FORMAT_YUV); mode 581 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c mode |= MDP5_PIPE_OP_MODE_CSC_1_EN; mode 582 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c mdp5_write(mdp5_kms, REG_MDP5_PIPE_OP_MODE(pipe), mode); mode 162 drivers/gpu/drm/msm/dsi/dsi.h const struct drm_display_mode *mode); mode 154 drivers/gpu/drm/msm/dsi/dsi_host.c struct drm_display_mode *mode; mode 513 drivers/gpu/drm/msm/dsi/dsi_host.c msm_host->mode->clock, msm_host->byte_clk_rate); mode 581 drivers/gpu/drm/msm/dsi/dsi_host.c msm_host->mode->clock, msm_host->byte_clk_rate, mode 663 drivers/gpu/drm/msm/dsi/dsi_host.c struct drm_display_mode *mode = msm_host->mode; mode 666 drivers/gpu/drm/msm/dsi/dsi_host.c pclk_rate = mode->clock * 1000; mode 704 drivers/gpu/drm/msm/dsi/dsi_host.c if (!msm_host->mode) { mode 920 drivers/gpu/drm/msm/dsi/dsi_host.c struct drm_display_mode *mode = msm_host->mode; mode 922 drivers/gpu/drm/msm/dsi/dsi_host.c u32 h_total = mode->htotal; mode 923 drivers/gpu/drm/msm/dsi/dsi_host.c u32 v_total = mode->vtotal; mode 924 drivers/gpu/drm/msm/dsi/dsi_host.c u32 hs_end = mode->hsync_end - mode->hsync_start; mode 925 drivers/gpu/drm/msm/dsi/dsi_host.c u32 vs_end = mode->vsync_end - mode->vsync_start; mode 926 drivers/gpu/drm/msm/dsi/dsi_host.c u32 ha_start = h_total - mode->hsync_start; mode 927 drivers/gpu/drm/msm/dsi/dsi_host.c u32 ha_end = ha_start + mode->hdisplay; mode 928 drivers/gpu/drm/msm/dsi/dsi_host.c u32 va_start = v_total - mode->vsync_start; mode 929 drivers/gpu/drm/msm/dsi/dsi_host.c u32 va_end = va_start + mode->vdisplay; mode 930 drivers/gpu/drm/msm/dsi/dsi_host.c u32 hdisplay = mode->hdisplay; mode 981 drivers/gpu/drm/msm/dsi/dsi_host.c DSI_CMD_MDP_STREAM_TOTAL_V_TOTAL(mode->vdisplay)); mode 1020 drivers/gpu/drm/msm/dsi/dsi_host.c static void dsi_set_tx_power_mode(int mode, struct msm_dsi_host *msm_host) mode 1026 drivers/gpu/drm/msm/dsi/dsi_host.c if (mode == 0) mode 1347 drivers/gpu/drm/msm/dsi/dsi_host.c int bllp_len = msm_host->mode->hdisplay * mode 2419 drivers/gpu/drm/msm/dsi/dsi_host.c const struct drm_display_mode *mode) mode 2423 drivers/gpu/drm/msm/dsi/dsi_host.c if (msm_host->mode) { mode 2424 drivers/gpu/drm/msm/dsi/dsi_host.c drm_mode_destroy(msm_host->dev, msm_host->mode); mode 2425 drivers/gpu/drm/msm/dsi/dsi_host.c msm_host->mode = NULL; mode 2428 drivers/gpu/drm/msm/dsi/dsi_host.c msm_host->mode = drm_mode_duplicate(msm_host->dev, mode); mode 2429 drivers/gpu/drm/msm/dsi/dsi_host.c if (!msm_host->mode) { mode 340 drivers/gpu/drm/msm/dsi/dsi_manager.c struct drm_display_mode *mode) mode 350 drivers/gpu/drm/msm/dsi/dsi_manager.c requested = 1000 * mode->clock; mode 543 drivers/gpu/drm/msm/dsi/dsi_manager.c const struct drm_display_mode *mode, mode 552 drivers/gpu/drm/msm/dsi/dsi_manager.c DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode)); mode 71 drivers/gpu/drm/msm/edp/edp.h const struct drm_display_mode *mode, mode 47 drivers/gpu/drm/msm/edp/edp_bridge.c const struct drm_display_mode *mode, mode 55 drivers/gpu/drm/msm/edp/edp_bridge.c DBG("set mode: " DRM_MODE_FMT, DRM_MODE_ARG(mode)); mode 59 drivers/gpu/drm/msm/edp/edp_connector.c struct drm_display_mode *mode) mode 67 drivers/gpu/drm/msm/edp/edp_connector.c requested = 1000 * mode->clock; mode 76 drivers/gpu/drm/msm/edp/edp_connector.c edp->ctrl, mode->clock, NULL, NULL)) mode 1257 drivers/gpu/drm/msm/edp/edp_ctrl.c const struct drm_display_mode *mode, mode 1270 drivers/gpu/drm/msm/edp/edp_ctrl.c ctrl->pixel_rate = mode->clock; mode 1271 drivers/gpu/drm/msm/edp/edp_ctrl.c ctrl->interlaced = !!(mode->flags & DRM_MODE_FLAG_INTERLACE); mode 1285 drivers/gpu/drm/msm/edp/edp_ctrl.c EDP_TOTAL_HOR_VER_HORIZ(mode->htotal) | mode 1286 drivers/gpu/drm/msm/edp/edp_ctrl.c EDP_TOTAL_HOR_VER_VERT(mode->vtotal)); mode 1288 drivers/gpu/drm/msm/edp/edp_ctrl.c vstart_from_sync = mode->vtotal - mode->vsync_start; mode 1289 drivers/gpu/drm/msm/edp/edp_ctrl.c hstart_from_sync = mode->htotal - mode->hsync_start; mode 1295 drivers/gpu/drm/msm/edp/edp_ctrl.c mode->vsync_end - mode->vsync_start); mode 1297 drivers/gpu/drm/msm/edp/edp_ctrl.c mode->hsync_end - mode->hsync_start); mode 1298 drivers/gpu/drm/msm/edp/edp_ctrl.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 1300 drivers/gpu/drm/msm/edp/edp_ctrl.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 1305 drivers/gpu/drm/msm/edp/edp_ctrl.c EDP_ACTIVE_HOR_VER_HORIZ(mode->hdisplay) | mode 1306 drivers/gpu/drm/msm/edp/edp_ctrl.c EDP_ACTIVE_HOR_VER_VERT(mode->vdisplay)); mode 89 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c const struct drm_display_mode *mode = &crtc->state->adjusted_mode; mode 96 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c hdmi->connector, mode); mode 202 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c const struct drm_display_mode *mode, mode 210 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c mode = adjusted_mode; mode 212 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c hdmi->pixclock = mode->clock * 1000; mode 214 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c hstart = mode->htotal - mode->hsync_start; mode 215 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c hend = mode->htotal - mode->hsync_start + mode->hdisplay; mode 217 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c vstart = mode->vtotal - mode->vsync_start - 1; mode 218 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c vend = mode->vtotal - mode->vsync_start + mode->vdisplay - 1; mode 221 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c mode->htotal, mode->vtotal, hstart, hend, vstart, vend); mode 224 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c HDMI_TOTAL_H_TOTAL(mode->htotal - 1) | mode 225 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c HDMI_TOTAL_V_TOTAL(mode->vtotal - 1)); mode 234 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) { mode 236 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c HDMI_VSYNC_TOTAL_F2_V_TOTAL(mode->vtotal)); mode 249 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 251 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 253 drivers/gpu/drm/msm/hdmi/hdmi_bridge.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 379 drivers/gpu/drm/msm/hdmi/hdmi_connector.c struct drm_display_mode *mode) mode 388 drivers/gpu/drm/msm/hdmi/hdmi_connector.c requested = 1000 * mode->clock; mode 112 drivers/gpu/drm/nouveau/dispnv04/crtc.c static void nv_crtc_calc_state_ext(struct drm_crtc *crtc, struct drm_display_mode * mode, int dot_clock) mode 170 drivers/gpu/drm/nouveau/dispnv04/crtc.c nv_crtc_dpms(struct drm_crtc *crtc, int mode) mode 178 drivers/gpu/drm/nouveau/dispnv04/crtc.c NV_DEBUG(drm, "Setting dpms mode %d on CRTC %d\n", mode, mode 181 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (nv_crtc->last_dpms == mode) /* Don't do unnecessary mode changes. */ mode 184 drivers/gpu/drm/nouveau/dispnv04/crtc.c nv_crtc->last_dpms = mode; mode 192 drivers/gpu/drm/nouveau/dispnv04/crtc.c switch (mode) { mode 232 drivers/gpu/drm/nouveau/dispnv04/crtc.c nv_crtc_mode_set_vga(struct drm_crtc *crtc, struct drm_display_mode *mode) mode 240 drivers/gpu/drm/nouveau/dispnv04/crtc.c int horizDisplay = (mode->crtc_hdisplay >> 3) - 1; mode 241 drivers/gpu/drm/nouveau/dispnv04/crtc.c int horizStart = (mode->crtc_hsync_start >> 3) + 1; mode 242 drivers/gpu/drm/nouveau/dispnv04/crtc.c int horizEnd = (mode->crtc_hsync_end >> 3) + 1; mode 243 drivers/gpu/drm/nouveau/dispnv04/crtc.c int horizTotal = (mode->crtc_htotal >> 3) - 5; mode 244 drivers/gpu/drm/nouveau/dispnv04/crtc.c int horizBlankStart = (mode->crtc_hdisplay >> 3) - 1; mode 245 drivers/gpu/drm/nouveau/dispnv04/crtc.c int horizBlankEnd = (mode->crtc_htotal >> 3) - 1; mode 246 drivers/gpu/drm/nouveau/dispnv04/crtc.c int vertDisplay = mode->crtc_vdisplay - 1; mode 247 drivers/gpu/drm/nouveau/dispnv04/crtc.c int vertStart = mode->crtc_vsync_start - 1; mode 248 drivers/gpu/drm/nouveau/dispnv04/crtc.c int vertEnd = mode->crtc_vsync_end - 1; mode 249 drivers/gpu/drm/nouveau/dispnv04/crtc.c int vertTotal = mode->crtc_vtotal - 2; mode 250 drivers/gpu/drm/nouveau/dispnv04/crtc.c int vertBlankStart = mode->crtc_vdisplay - 1; mode 251 drivers/gpu/drm/nouveau/dispnv04/crtc.c int vertBlankEnd = mode->crtc_vtotal - 1; mode 279 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 300 drivers/gpu/drm/nouveau/dispnv04/crtc.c if ((mode->flags & (DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NHSYNC)) mode 301 drivers/gpu/drm/nouveau/dispnv04/crtc.c && (mode->flags & (DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_NVSYNC))) { mode 304 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 306 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 309 drivers/gpu/drm/nouveau/dispnv04/crtc.c int vdisplay = mode->vdisplay; mode 310 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 312 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (mode->vscan > 1) mode 313 drivers/gpu/drm/nouveau/dispnv04/crtc.c vdisplay *= mode->vscan; mode 329 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (mode->flags & DRM_MODE_FLAG_CLKDIV2) mode 358 drivers/gpu/drm/nouveau/dispnv04/crtc.c regp->CRTC[NV_CIO_CR_CELL_HT_INDEX] = ((mode->flags & DRM_MODE_FLAG_DBLSCAN) ? MASK(NV_CIO_CR_CELL_HT_SCANDBL) : 0) | mode 387 drivers/gpu/drm/nouveau/dispnv04/crtc.c regp->CRTC[NV_CIO_CRE_RPC1_INDEX] = mode->crtc_hdisplay < 1280 ? mode 403 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) { mode 456 drivers/gpu/drm/nouveau/dispnv04/crtc.c nv_crtc_mode_set_regs(struct drm_crtc *crtc, struct drm_display_mode * mode) mode 510 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 552 drivers/gpu/drm/nouveau/dispnv04/crtc.c regp->crtc_830 = mode->crtc_vdisplay - 3; mode 553 drivers/gpu/drm/nouveau/dispnv04/crtc.c regp->crtc_834 = mode->crtc_vdisplay - 1; mode 631 drivers/gpu/drm/nouveau/dispnv04/crtc.c nv_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode, mode 655 drivers/gpu/drm/nouveau/dispnv04/crtc.c nv_crtc_calc_state_ext(crtc, mode, adjusted_mode->clock); mode 880 drivers/gpu/drm/nouveau/dispnv04/crtc.c nouveau_calc_arb(dev, crtc->mode.clock, drm_fb->format->cpp[0] * 8, mode 50 drivers/gpu/drm/nouveau/dispnv04/cursor.c if (crtc->mode.flags & DRM_MODE_FLAG_DBLSCAN) mode 354 drivers/gpu/drm/nouveau/dispnv04/dac.c const struct drm_display_mode *mode, mode 375 drivers/gpu/drm/nouveau/dispnv04/dac.c struct drm_display_mode *mode, mode 459 drivers/gpu/drm/nouveau/dispnv04/dac.c static void nv04_dac_dpms(struct drm_encoder *encoder, int mode) mode 464 drivers/gpu/drm/nouveau/dispnv04/dac.c if (nv_encoder->last_dpms == mode) mode 466 drivers/gpu/drm/nouveau/dispnv04/dac.c nv_encoder->last_dpms = mode; mode 469 drivers/gpu/drm/nouveau/dispnv04/dac.c mode, nv_encoder->dcb->index); mode 471 drivers/gpu/drm/nouveau/dispnv04/dac.c nv04_dac_update_dacclk(encoder, mode == DRM_MODE_DPMS_ON); mode 113 drivers/gpu/drm/nouveau/dispnv04/dfp.c void nv04_dfp_update_fp_control(struct drm_encoder *encoder, int mode) mode 120 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (mode == DRM_MODE_DPMS_ON) { mode 183 drivers/gpu/drm/nouveau/dispnv04/dfp.c const struct drm_display_mode *mode, mode 191 drivers/gpu/drm/nouveau/dispnv04/dfp.c mode->hdisplay > nv_connector->native_mode->hdisplay || mode 192 drivers/gpu/drm/nouveau/dispnv04/dfp.c mode->vdisplay > nv_connector->native_mode->vdisplay) { mode 193 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv_encoder->mode = *adjusted_mode; mode 196 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv_encoder->mode = *nv_connector->native_mode; mode 280 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct drm_display_mode *mode, mode 291 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct drm_display_mode *output_mode = &nv_encoder->mode; mode 457 drivers/gpu/drm/nouveau/dispnv04/dfp.c run_tmds_table(dev, dcbe, head, nv_encoder->mode.clock); mode 459 drivers/gpu/drm/nouveau/dispnv04/dfp.c call_lvds_script(dev, dcbe, head, LVDS_RESET, nv_encoder->mode.clock); mode 476 drivers/gpu/drm/nouveau/dispnv04/dfp.c slave_encoder, &nv_encoder->mode, &nv_encoder->mode); mode 485 drivers/gpu/drm/nouveau/dispnv04/dfp.c static void nv04_dfp_update_backlight(struct drm_encoder *encoder, int mode) mode 496 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (mode == DRM_MODE_DPMS_ON) { mode 507 drivers/gpu/drm/nouveau/dispnv04/dfp.c static inline bool is_powersaving_dpms(int mode) mode 509 drivers/gpu/drm/nouveau/dispnv04/dfp.c return mode != DRM_MODE_DPMS_ON && mode != NV_DPMS_CLEARED; mode 512 drivers/gpu/drm/nouveau/dispnv04/dfp.c static void nv04_lvds_dpms(struct drm_encoder *encoder, int mode) mode 520 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (nv_encoder->last_dpms == mode) mode 522 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv_encoder->last_dpms = mode; mode 525 drivers/gpu/drm/nouveau/dispnv04/dfp.c mode, nv_encoder->dcb->index); mode 527 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (was_powersaving && is_powersaving_dpms(mode)) mode 537 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (mode == DRM_MODE_DPMS_ON) { mode 539 drivers/gpu/drm/nouveau/dispnv04/dfp.c LVDS_PANEL_ON, nv_encoder->mode.clock); mode 548 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv04_dfp_update_backlight(encoder, mode); mode 549 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv04_dfp_update_fp_control(encoder, mode); mode 551 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (mode == DRM_MODE_DPMS_ON) mode 560 drivers/gpu/drm/nouveau/dispnv04/dfp.c static void nv04_tmds_dpms(struct drm_encoder *encoder, int mode) mode 565 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (nv_encoder->last_dpms == mode) mode 567 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv_encoder->last_dpms = mode; mode 570 drivers/gpu/drm/nouveau/dispnv04/dfp.c mode, nv_encoder->dcb->index); mode 572 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv04_dfp_update_backlight(encoder, mode); mode 573 drivers/gpu/drm/nouveau/dispnv04/dfp.c nv04_dfp_update_fp_control(encoder, mode); mode 113 drivers/gpu/drm/nouveau/dispnv04/disp.h void nv04_dfp_update_fp_control(struct drm_encoder *encoder, int mode); mode 151 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c .mode = { DRM_MODE("720x480", DRM_MODE_TYPE_DRIVER, 27000, mode 167 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c .mode = { DRM_MODE("720x576", DRM_MODE_TYPE_DRIVER, 27000, mode 183 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c .mode = { DRM_MODE("1280x720", DRM_MODE_TYPE_DRIVER, 74250, mode 199 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c .mode = { DRM_MODE("1920x1080", DRM_MODE_TYPE_DRIVER, 74250, mode 319 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c struct drm_display_mode *mode = &encoder->crtc->mode; mode 325 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c uint64_t rs[] = {mode->hdisplay * id3, mode 326 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c mode->vdisplay * id3}; mode 548 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c struct drm_display_mode *crtc_mode = &encoder->crtc->mode; mode 550 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c &get_tv_norm(encoder)->ctv_enc_mode.mode; mode 74 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c static void nv04_tv_dpms(struct drm_encoder *encoder, int mode) mode 83 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c mode, nv_encoder->dcb->index); mode 87 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c if (mode == DRM_MODE_DPMS_ON) { mode 102 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c get_slave_funcs(encoder)->dpms(encoder, mode); mode 141 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c struct drm_display_mode *mode, mode 161 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c get_slave_funcs(encoder)->mode_set(encoder, mode, adjusted_mode); mode 208 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct drm_display_mode *mode; mode 210 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode = drm_mode_duplicate(encoder->dev, tv_mode); mode 212 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode->clock = tv_norm->tv_enc_mode.vrefresh * mode 213 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode->htotal / 1000 * mode 214 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode->vtotal / 1000; mode 216 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 217 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode->clock *= 2; mode 219 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if (mode->hdisplay == tv_norm->tv_enc_mode.hdisplay && mode 220 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode->vdisplay == tv_norm->tv_enc_mode.vdisplay) mode 221 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 223 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c drm_mode_probed_add(connector, mode); mode 234 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct drm_display_mode *output_mode = &tv_norm->ctv_enc_mode.mode; mode 235 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct drm_display_mode *mode; mode 259 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode = drm_mode_duplicate(encoder->dev, output_mode); mode 260 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 263 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode = drm_cvt_mode(encoder->dev, modes[i].hdisplay, mode 272 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode->htotal = output_mode->htotal; mode 273 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode->hsync_start = (mode->hdisplay + (mode->htotal mode 274 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c - mode->hdisplay) * 9 / 10) & ~7; mode 275 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode->hsync_end = mode->hsync_start + 8; mode 279 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode->vtotal = output_mode->vtotal; mode 280 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode->vsync_start = output_mode->vsync_start; mode 281 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode->vsync_end = output_mode->vsync_end; mode 284 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode->type |= DRM_MODE_TYPE_DRIVER; mode 285 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c drm_mode_probed_add(connector, mode); mode 304 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c struct drm_display_mode *mode) mode 310 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c &tv_norm->ctv_enc_mode.mode; mode 312 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if (mode->clock > 400000) mode 315 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if (mode->hdisplay > output_mode->hdisplay || mode 316 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode->vdisplay > output_mode->vdisplay) mode 319 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if ((mode->flags & DRM_MODE_FLAG_INTERLACE) != mode 323 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 329 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if (mode->clock > 70000) mode 332 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if (abs(drm_mode_vrefresh(mode) * 1000 - mode 337 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 345 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c const struct drm_display_mode *mode, mode 354 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c adjusted_mode->clock = tv_norm->ctv_enc_mode.mode.clock; mode 361 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c static void nv17_tv_dpms(struct drm_encoder *encoder, int mode) mode 369 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if (nouveau_encoder(encoder)->last_dpms == mode) mode 371 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nouveau_encoder(encoder)->last_dpms = mode; mode 374 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c mode, nouveau_encoder(encoder)->dcb->index); mode 379 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv04_dfp_update_fp_control(encoder, mode); mode 384 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if (mode == DRM_MODE_DPMS_ON) mode 390 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nvkm_gpio_set(gpio, 0, DCB_GPIO_TVDAC1, 0xff, mode == DRM_MODE_DPMS_ON); mode 391 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nvkm_gpio_set(gpio, 0, DCB_GPIO_TVDAC0, 0xff, mode == DRM_MODE_DPMS_ON); mode 393 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c nv04_dac_update_dacclk(encoder, mode == DRM_MODE_DPMS_ON); mode 520 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c &tv_norm->ctv_enc_mode.mode; mode 753 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c drm_crtc_helper_set_mode(crtc, &crtc->mode, mode 106 drivers/gpu/drm/nouveau/dispnv04/tvnv17.h struct drm_display_mode mode; mode 49 drivers/gpu/drm/nouveau/dispnv50/atom.h } mode; mode 56 drivers/gpu/drm/nouveau/dispnv50/atom.h u8 mode:4; mode 103 drivers/gpu/drm/nouveau/dispnv50/atom.h u8 mode:4; mode 132 drivers/gpu/drm/nouveau/dispnv50/atom.h bool mode:1; mode 179 drivers/gpu/drm/nouveau/dispnv50/atom.h u8 mode:4; mode 194 drivers/gpu/drm/nouveau/dispnv50/atom.h u8 mode:2; mode 63 drivers/gpu/drm/nouveau/dispnv50/base507c.c evo_data(push, asyw->image.mode << 8 | mode 30 drivers/gpu/drm/nouveau/dispnv50/base827c.c evo_data(push, asyw->image.mode << 8 | mode 30 drivers/gpu/drm/nouveau/dispnv50/base907c.c evo_data(push, asyw->image.mode << 8 | mode 69 drivers/gpu/drm/nouveau/dispnv50/base907c.c asyw->xlut.i.mode << 24); mode 81 drivers/gpu/drm/nouveau/dispnv50/base907c.c asyw->xlut.i.mode = 7; mode 311 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_display_mode *mode = &crtc_state->mode; mode 321 drivers/gpu/drm/nouveau/dispnv50/disp.c if (asyc->scaler.mode == DRM_MODE_SCALE_NONE) { mode 329 drivers/gpu/drm/nouveau/dispnv50/disp.c if (mode->hdisplay == native_mode->hdisplay && mode 330 drivers/gpu/drm/nouveau/dispnv50/disp.c mode->vdisplay == native_mode->vdisplay && mode 331 drivers/gpu/drm/nouveau/dispnv50/disp.c mode->type & DRM_MODE_TYPE_DRIVER) mode 333 drivers/gpu/drm/nouveau/dispnv50/disp.c mode = native_mode; mode 340 drivers/gpu/drm/nouveau/dispnv50/disp.c mode = native_mode; mode 343 drivers/gpu/drm/nouveau/dispnv50/disp.c if (!drm_mode_equal(adjusted_mode, mode)) { mode 344 drivers/gpu/drm/nouveau/dispnv50/disp.c drm_mode_copy(adjusted_mode, mode); mode 502 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_audio_enable(struct drm_encoder *encoder, struct drm_display_mode *mode) mode 555 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_hdmi_enable(struct drm_encoder *encoder, struct drm_display_mode *mode) mode 591 drivers/gpu/drm/nouveau/dispnv50/disp.c &nv_connector->base, mode); mode 599 drivers/gpu/drm/nouveau/dispnv50/disp.c &nv_connector->base, mode); mode 609 drivers/gpu/drm/nouveau/dispnv50/disp.c max_ac_packet = mode->htotal - mode->hdisplay; mode 615 drivers/gpu/drm/nouveau/dispnv50/disp.c high_tmds_clock_ratio = mode->clock > 340000; mode 630 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_audio_enable(encoder, mode); mode 959 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_display_mode *mode) mode 1460 drivers/gpu/drm/nouveau/dispnv50/disp.c struct drm_display_mode *mode = &asyh->state.adjusted_mode; mode 1492 drivers/gpu/drm/nouveau/dispnv50/disp.c if (mode->clock >= 165000 && mode 1500 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_hdmi_enable(&nv_encoder->base.base, mode); mode 1515 drivers/gpu/drm/nouveau/dispnv50/disp.c if (mode->clock >= bios->fp.duallink_transition_clk) { mode 1541 drivers/gpu/drm/nouveau/dispnv50/disp.c nv50_audio_enable(encoder, mode); mode 49 drivers/gpu/drm/nouveau/dispnv50/head.c if (asyh->set.mode ) head->func->mode (head, asyh); mode 84 drivers/gpu/drm/nouveau/dispnv50/head.c u32 mode = 0x00; mode 86 drivers/gpu/drm/nouveau/dispnv50/head.c if (asyc->dither.mode == DITHERING_MODE_AUTO) { mode 88 drivers/gpu/drm/nouveau/dispnv50/head.c mode = DITHERING_MODE_DYNAMIC2X2; mode 90 drivers/gpu/drm/nouveau/dispnv50/head.c mode = asyc->dither.mode; mode 95 drivers/gpu/drm/nouveau/dispnv50/head.c mode |= DITHERING_DEPTH_8BPC; mode 97 drivers/gpu/drm/nouveau/dispnv50/head.c mode |= asyc->dither.depth; mode 100 drivers/gpu/drm/nouveau/dispnv50/head.c asyh->dither.enable = mode; mode 101 drivers/gpu/drm/nouveau/dispnv50/head.c asyh->dither.bits = mode >> 1; mode 102 drivers/gpu/drm/nouveau/dispnv50/head.c asyh->dither.mode = mode >> 3; mode 113 drivers/gpu/drm/nouveau/dispnv50/head.c struct drm_display_mode *umode = &asyh->state.mode; mode 114 drivers/gpu/drm/nouveau/dispnv50/head.c int mode = asyc->scaler.mode; mode 124 drivers/gpu/drm/nouveau/dispnv50/head.c if (mode == DRM_MODE_SCALE_NONE) mode 128 drivers/gpu/drm/nouveau/dispnv50/head.c mode = DRM_MODE_SCALE_FULLSCREEN; mode 148 drivers/gpu/drm/nouveau/dispnv50/head.c if ((asyc->scaler.underscan.mode == UNDERSCAN_ON || mode 149 drivers/gpu/drm/nouveau/dispnv50/head.c (asyc->scaler.underscan.mode == UNDERSCAN_AUTO && mode 169 drivers/gpu/drm/nouveau/dispnv50/head.c switch (mode) { mode 246 drivers/gpu/drm/nouveau/dispnv50/head.c struct drm_display_mode *mode = &asyh->state.adjusted_mode; mode 247 drivers/gpu/drm/nouveau/dispnv50/head.c struct nv50_head_mode *m = &asyh->mode; mode 250 drivers/gpu/drm/nouveau/dispnv50/head.c drm_mode_set_crtcinfo(mode, CRTC_INTERLACE_HALVE_V | CRTC_STEREO_DOUBLE); mode 259 drivers/gpu/drm/nouveau/dispnv50/head.c m->h.active = mode->crtc_htotal; mode 260 drivers/gpu/drm/nouveau/dispnv50/head.c m->h.synce = mode->crtc_hsync_end - mode->crtc_hsync_start - 1; mode 261 drivers/gpu/drm/nouveau/dispnv50/head.c m->h.blanke = mode->crtc_hblank_end - mode->crtc_hsync_start - 1; mode 262 drivers/gpu/drm/nouveau/dispnv50/head.c m->h.blanks = m->h.blanke + mode->crtc_hdisplay; mode 264 drivers/gpu/drm/nouveau/dispnv50/head.c m->v.active = mode->crtc_vtotal; mode 265 drivers/gpu/drm/nouveau/dispnv50/head.c m->v.synce = mode->crtc_vsync_end - mode->crtc_vsync_start - 1; mode 266 drivers/gpu/drm/nouveau/dispnv50/head.c m->v.blanke = mode->crtc_vblank_end - mode->crtc_vsync_start - 1; mode 267 drivers/gpu/drm/nouveau/dispnv50/head.c m->v.blanks = m->v.blanke + mode->crtc_vdisplay; mode 270 drivers/gpu/drm/nouveau/dispnv50/head.c blankus = (m->v.active - mode->crtc_vdisplay - 2) * m->h.active; mode 272 drivers/gpu/drm/nouveau/dispnv50/head.c blankus /= mode->crtc_clock; mode 275 drivers/gpu/drm/nouveau/dispnv50/head.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) { mode 277 drivers/gpu/drm/nouveau/dispnv50/head.c m->v.blank2s = m->v.blank2e + mode->crtc_vdisplay; mode 285 drivers/gpu/drm/nouveau/dispnv50/head.c m->clock = mode->crtc_clock; mode 287 drivers/gpu/drm/nouveau/dispnv50/head.c asyh->or.nhsync = !!(mode->flags & DRM_MODE_FLAG_NHSYNC); mode 288 drivers/gpu/drm/nouveau/dispnv50/head.c asyh->or.nvsync = !!(mode->flags & DRM_MODE_FLAG_NVSYNC); mode 290 drivers/gpu/drm/nouveau/dispnv50/head.c asyh->set.mode = true; mode 427 drivers/gpu/drm/nouveau/dispnv50/head.c asyh->mode = armh->mode; mode 22 drivers/gpu/drm/nouveau/dispnv50/head.h void (*mode)(struct nv50_head *, struct nv50_head_atom *); mode 45 drivers/gpu/drm/nouveau/dispnv50/head507d.c evo_data(push, asyh->dither.mode << 3 | mode 219 drivers/gpu/drm/nouveau/dispnv50/head507d.c asyh->core.w = asyh->state.mode.hdisplay; mode 220 drivers/gpu/drm/nouveau/dispnv50/head507d.c asyh->core.h = asyh->state.mode.vdisplay; mode 251 drivers/gpu/drm/nouveau/dispnv50/head507d.c evo_data(push, 0x80000000 | asyh->olut.mode << 30); mode 278 drivers/gpu/drm/nouveau/dispnv50/head507d.c asyh->olut.mode = 0; mode 280 drivers/gpu/drm/nouveau/dispnv50/head507d.c asyh->olut.mode = 1; mode 289 drivers/gpu/drm/nouveau/dispnv50/head507d.c struct nv50_head_mode *m = &asyh->mode; mode 302 drivers/gpu/drm/nouveau/dispnv50/head507d.c evo_data(push, asyh->mode.v.blankus); mode 329 drivers/gpu/drm/nouveau/dispnv50/head507d.c .mode = head507d_mode, mode 98 drivers/gpu/drm/nouveau/dispnv50/head827d.c evo_data(push, 0x80000000 | asyh->olut.mode << 30); mode 109 drivers/gpu/drm/nouveau/dispnv50/head827d.c .mode = head507d_mode, mode 36 drivers/gpu/drm/nouveau/dispnv50/head907d.c asyh->mode.interlace); mode 61 drivers/gpu/drm/nouveau/dispnv50/head907d.c evo_data(push, asyh->dither.mode << 3 | mode 208 drivers/gpu/drm/nouveau/dispnv50/head907d.c evo_data(push, 0x80000000 | asyh->olut.mode << 24); mode 236 drivers/gpu/drm/nouveau/dispnv50/head907d.c asyh->olut.mode = 7; mode 244 drivers/gpu/drm/nouveau/dispnv50/head907d.c struct nv50_head_mode *m = &asyh->mode; mode 286 drivers/gpu/drm/nouveau/dispnv50/head907d.c .mode = head907d_mode, mode 32 drivers/gpu/drm/nouveau/dispnv50/head917d.c evo_data(push, asyh->dither.mode << 3 | mode 84 drivers/gpu/drm/nouveau/dispnv50/head917d.c .mode = head907d_mode, mode 75 drivers/gpu/drm/nouveau/dispnv50/headc37d.c evo_data(push, asyh->dither.mode << 8 | mode 154 drivers/gpu/drm/nouveau/dispnv50/headc37d.c asyh->olut.mode = 2; mode 165 drivers/gpu/drm/nouveau/dispnv50/headc37d.c struct nv50_head_mode *m = &asyh->mode; mode 202 drivers/gpu/drm/nouveau/dispnv50/headc37d.c .mode = headc37d_mode, mode 92 drivers/gpu/drm/nouveau/dispnv50/headc57d.c asyh->olut.mode << 2 | mode 157 drivers/gpu/drm/nouveau/dispnv50/headc57d.c asyh->olut.mode = 2; /* DIRECT10 */ mode 171 drivers/gpu/drm/nouveau/dispnv50/headc57d.c struct nv50_head_mode *m = &asyh->mode; mode 194 drivers/gpu/drm/nouveau/dispnv50/headc57d.c .mode = headc57d_mode, mode 134 drivers/gpu/drm/nouveau/dispnv50/wndw.c asyw->image.mode = 0; mode 258 drivers/gpu/drm/nouveau/dispnv50/wndw.c asyw->image.blockh = fb->nvbo->mode >> 4; mode 260 drivers/gpu/drm/nouveau/dispnv50/wndw.c asyw->image.blockh = fb->nvbo->mode; mode 274 drivers/gpu/drm/nouveau/dispnv50/wndw.c asyw->image.mode = asyw->image.interval ? 0 : 1; mode 77 drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c asyw->xlut.i.mode = 2; mode 126 drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c evo_data(push, asyw->image.mode << 4 | asyw->image.interval); mode 40 drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c evo_data(push, asyw->image.mode << 4 | asyw->image.interval); mode 115 drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c asyw->xlut.i.mode << 2 | mode 164 drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c asyw->xlut.i.mode = 1; /* DIRECT8. */ mode 166 drivers/gpu/drm/nouveau/dispnv50/wndwc57e.c asyw->xlut.i.mode = 2; /* DIRECT10. */ mode 8 drivers/gpu/drm/nouveau/include/nvif/if0003.h __u8 mode; mode 10 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/iccsense.h u8 mode; mode 15 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/vmap.h u8 mode; mode 20 drivers/gpu/drm/nouveau/include/nvkm/subdev/pci.h u32 mode; mode 67 drivers/gpu/drm/nouveau/include/nvkm/subdev/therm.h int mode; mode 447 drivers/gpu/drm/nouveau/nouveau_bios.c bool nouveau_bios_fp_mode(struct drm_device *dev, struct drm_display_mode *mode) mode 453 drivers/gpu/drm/nouveau/nouveau_bios.c if (!mode) /* just checking whether we can produce a mode */ mode 456 drivers/gpu/drm/nouveau/nouveau_bios.c memset(mode, 0, sizeof(struct drm_display_mode)); mode 463 drivers/gpu/drm/nouveau/nouveau_bios.c mode->clock = ROM16(mode_entry[7]) * 10; mode 465 drivers/gpu/drm/nouveau/nouveau_bios.c mode->hdisplay = ROM16(mode_entry[11]) + 1; mode 470 drivers/gpu/drm/nouveau/nouveau_bios.c mode->hsync_start = ROM16(mode_entry[17]) + 1; mode 471 drivers/gpu/drm/nouveau/nouveau_bios.c mode->hsync_end = ROM16(mode_entry[19]) + 1; mode 472 drivers/gpu/drm/nouveau/nouveau_bios.c mode->htotal = ROM16(mode_entry[21]) + 1; mode 474 drivers/gpu/drm/nouveau/nouveau_bios.c mode->vdisplay = ROM16(mode_entry[25]) + 1; mode 475 drivers/gpu/drm/nouveau/nouveau_bios.c mode->vsync_start = ROM16(mode_entry[31]) + 1; mode 476 drivers/gpu/drm/nouveau/nouveau_bios.c mode->vsync_end = ROM16(mode_entry[33]) + 1; mode 477 drivers/gpu/drm/nouveau/nouveau_bios.c mode->vtotal = ROM16(mode_entry[35]) + 1; mode 478 drivers/gpu/drm/nouveau/nouveau_bios.c mode->flags |= (mode_entry[37] & 0x10) ? mode 480 drivers/gpu/drm/nouveau/nouveau_bios.c mode->flags |= (mode_entry[37] & 0x1) ? mode 487 drivers/gpu/drm/nouveau/nouveau_bios.c mode->status = MODE_OK; mode 488 drivers/gpu/drm/nouveau/nouveau_bios.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 489 drivers/gpu/drm/nouveau/nouveau_bios.c drm_mode_set_name(mode); mode 168 drivers/gpu/drm/nouveau/nouveau_bo.c if (nvbo->mode) { mode 171 drivers/gpu/drm/nouveau/nouveau_bo.c *size = roundup_64(*size, 64 * nvbo->mode); mode 175 drivers/gpu/drm/nouveau/nouveau_bo.c *size = roundup_64(*size, 64 * nvbo->mode); mode 179 drivers/gpu/drm/nouveau/nouveau_bo.c *size = roundup_64(*size, 64 * nvbo->mode); mode 183 drivers/gpu/drm/nouveau/nouveau_bo.c *size = roundup_64(*size, 32 * nvbo->mode); mode 248 drivers/gpu/drm/nouveau/nouveau_bo.c nvbo->mode = tile_mode; mode 362 drivers/gpu/drm/nouveau/nouveau_bo.c nvbo->mode && (type & TTM_PL_FLAG_VRAM) && mode 1343 drivers/gpu/drm/nouveau/nouveau_bo.c nvbo->mode, nvbo->zeta); mode 34 drivers/gpu/drm/nouveau/nouveau_bo.h unsigned mode; mode 58 drivers/gpu/drm/nouveau/nouveau_connector.c struct drm_display_mode *mode, *largest = NULL; mode 61 drivers/gpu/drm/nouveau/nouveau_connector.c list_for_each_entry(mode, &connector->probed_modes, head) { mode 62 drivers/gpu/drm/nouveau/nouveau_connector.c mode->vrefresh = drm_mode_vrefresh(mode); mode 63 drivers/gpu/drm/nouveau/nouveau_connector.c if (helper->mode_valid(connector, mode) != MODE_OK || mode 64 drivers/gpu/drm/nouveau/nouveau_connector.c (mode->flags & DRM_MODE_FLAG_INTERLACE)) mode 68 drivers/gpu/drm/nouveau/nouveau_connector.c if (mode->type & DRM_MODE_TYPE_PREFERRED) { mode 70 drivers/gpu/drm/nouveau/nouveau_connector.c return drm_mode_duplicate(dev, mode); mode 76 drivers/gpu/drm/nouveau/nouveau_connector.c if (mode->hdisplay < high_w) mode 79 drivers/gpu/drm/nouveau/nouveau_connector.c if (mode->hdisplay == high_w && mode->vdisplay < high_h) mode 82 drivers/gpu/drm/nouveau/nouveau_connector.c if (mode->hdisplay == high_w && mode->vdisplay == high_h && mode 83 drivers/gpu/drm/nouveau/nouveau_connector.c mode->vrefresh < high_v) mode 86 drivers/gpu/drm/nouveau/nouveau_connector.c high_w = mode->hdisplay; mode 87 drivers/gpu/drm/nouveau/nouveau_connector.c high_h = mode->vdisplay; mode 88 drivers/gpu/drm/nouveau/nouveau_connector.c high_v = mode->vrefresh; mode 89 drivers/gpu/drm/nouveau/nouveau_connector.c largest = mode; mode 107 drivers/gpu/drm/nouveau/nouveau_connector.c *val = asyc->scaler.mode; mode 109 drivers/gpu/drm/nouveau/nouveau_connector.c *val = asyc->scaler.underscan.mode; mode 115 drivers/gpu/drm/nouveau/nouveau_connector.c *val = asyc->dither.mode; mode 168 drivers/gpu/drm/nouveau/nouveau_connector.c if (asyc->scaler.mode != val) { mode 169 drivers/gpu/drm/nouveau/nouveau_connector.c asyc->scaler.mode = val; mode 174 drivers/gpu/drm/nouveau/nouveau_connector.c if (asyc->scaler.underscan.mode != val) { mode 175 drivers/gpu/drm/nouveau/nouveau_connector.c asyc->scaler.underscan.mode = val; mode 192 drivers/gpu/drm/nouveau/nouveau_connector.c if (asyc->dither.mode != val) { mode 193 drivers/gpu/drm/nouveau/nouveau_connector.c asyc->dither.mode = val; mode 198 drivers/gpu/drm/nouveau/nouveau_connector.c if (asyc->dither.mode != val) { mode 264 drivers/gpu/drm/nouveau/nouveau_connector.c asyc->dither.mode = DITHERING_MODE_AUTO; mode 266 drivers/gpu/drm/nouveau/nouveau_connector.c asyc->scaler.mode = DRM_MODE_SCALE_NONE; mode 267 drivers/gpu/drm/nouveau/nouveau_connector.c asyc->scaler.underscan.mode = UNDERSCAN_OFF; mode 275 drivers/gpu/drm/nouveau/nouveau_connector.c asyc->scaler.mode = DRM_MODE_SCALE_FULLSCREEN; mode 337 drivers/gpu/drm/nouveau/nouveau_connector.c armc->scaler.mode); mode 350 drivers/gpu/drm/nouveau/nouveau_connector.c armc->dither.mode); mode 782 drivers/gpu/drm/nouveau/nouveau_connector.c nv_connector->scaling_mode = asyc->scaler.mode; mode 783 drivers/gpu/drm/nouveau/nouveau_connector.c nv_connector->dithering_mode = asyc->dither.mode; mode 787 drivers/gpu/drm/nouveau/nouveau_connector.c &connector->encoder->crtc->mode, mode 827 drivers/gpu/drm/nouveau/nouveau_connector.c struct moderec *mode = &scaler_modes[0]; mode 833 drivers/gpu/drm/nouveau/nouveau_connector.c while (mode->hdisplay) { mode 834 drivers/gpu/drm/nouveau/nouveau_connector.c if (mode->hdisplay <= native->hdisplay && mode 835 drivers/gpu/drm/nouveau/nouveau_connector.c mode->vdisplay <= native->vdisplay && mode 836 drivers/gpu/drm/nouveau/nouveau_connector.c (mode->hdisplay != native->hdisplay || mode 837 drivers/gpu/drm/nouveau/nouveau_connector.c mode->vdisplay != native->vdisplay)) { mode 838 drivers/gpu/drm/nouveau/nouveau_connector.c m = drm_cvt_mode(dev, mode->hdisplay, mode->vdisplay, mode 848 drivers/gpu/drm/nouveau/nouveau_connector.c mode++; mode 861 drivers/gpu/drm/nouveau/nouveau_connector.c struct drm_display_mode *mode = nv_connector->native_mode; mode 896 drivers/gpu/drm/nouveau/nouveau_connector.c duallink = mode->clock >= bios->fp.duallink_transition_clk; mode 942 drivers/gpu/drm/nouveau/nouveau_connector.c struct drm_display_mode mode; mode 944 drivers/gpu/drm/nouveau/nouveau_connector.c nouveau_bios_fp_mode(dev, &mode); mode 945 drivers/gpu/drm/nouveau/nouveau_connector.c nv_connector->native_mode = drm_mode_duplicate(dev, &mode); mode 961 drivers/gpu/drm/nouveau/nouveau_connector.c struct drm_display_mode *mode; mode 963 drivers/gpu/drm/nouveau/nouveau_connector.c mode = drm_mode_duplicate(dev, nv_connector->native_mode); mode 964 drivers/gpu/drm/nouveau/nouveau_connector.c drm_mode_probed_add(connector, mode); mode 1035 drivers/gpu/drm/nouveau/nouveau_connector.c struct drm_display_mode *mode) mode 1041 drivers/gpu/drm/nouveau/nouveau_connector.c unsigned clock = mode->clock; mode 1046 drivers/gpu/drm/nouveau/nouveau_connector.c (mode->hdisplay > nv_connector->native_mode->hdisplay || mode 1047 drivers/gpu/drm/nouveau/nouveau_connector.c mode->vdisplay > nv_connector->native_mode->vdisplay)) mode 1062 drivers/gpu/drm/nouveau/nouveau_connector.c return get_slave_funcs(encoder)->mode_valid(encoder, mode); mode 1073 drivers/gpu/drm/nouveau/nouveau_connector.c if ((mode->flags & DRM_MODE_FLAG_3D_MASK) == DRM_MODE_FLAG_3D_FRAME_PACKING) mode 65 drivers/gpu/drm/nouveau/nouveau_connector.h } mode; mode 74 drivers/gpu/drm/nouveau/nouveau_connector.h int mode; /* DRM_MODE_SCALE_* */ mode 80 drivers/gpu/drm/nouveau/nouveau_connector.h } mode; mode 142 drivers/gpu/drm/nouveau/nouveau_display.c const struct drm_display_mode *mode) mode 56 drivers/gpu/drm/nouveau/nouveau_encoder.h struct drm_display_mode mode; mode 246 drivers/gpu/drm/nouveau/nouveau_gem.c rep->tile_mode = nvbo->mode; mode 97 drivers/gpu/drm/nouveau/nvkm/core/option.c int mode = 1, level = CONFIG_NOUVEAU_DEBUG_DEFAULT; mode 104 drivers/gpu/drm/nouveau/nvkm/core/option.c mode = 0; mode 108 drivers/gpu/drm/nouveau/nvkm/core/option.c if (mode) { mode 129 drivers/gpu/drm/nouveau/nvkm/core/option.c mode = 1; mode 580 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv40.c if (ctx->mode != NVKM_GRCTX_VALS) mode 665 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv40.c .mode = NVKM_GRCTX_VALS, mode 676 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv40.c .mode = NVKM_GRCTX_PROG, mode 12 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv40.h } mode; mode 29 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv40.h if (ctx->mode != NVKM_GRCTX_PROG) mode 64 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv40.h if (ctx->mode != NVKM_GRCTX_PROG) mode 123 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv40.h if (ctx->mode != NVKM_GRCTX_VALS) mode 260 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c .mode = NVKM_GRCTX_VALS, mode 271 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c .mode = NVKM_GRCTX_PROG, mode 787 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c if (val && ctx->mode == NVKM_GRCTX_VALS) { mode 1160 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c if (val && ctx->mode == NVKM_GRCTX_VALS) { mode 384 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c args->v0.version, args->v0.domain, args->v0.mode); mode 424 drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c dom->mode = args->v0.mode; mode 139 drivers/gpu/drm/nouveau/nvkm/engine/pm/gf100.c nvkm_wr32(device, dom->addr + 0x09c, 0x00040002 | (dom->mode << 3)); mode 38 drivers/gpu/drm/nouveau/nvkm/engine/pm/nv40.c nvkm_wr32(device, 0x00a7c0 + dom->addr, 0x00000001 | (dom->mode << 4)); mode 82 drivers/gpu/drm/nouveau/nvkm/engine/pm/priv.h u8 mode; mode 92 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->mode = 1; mode 94 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->mode = 0; mode 99 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->mode = nvbios_rd08(bios, entry); mode 108 drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c info->mode = nvbios_rd08(bios, vmap + 0x00); mode 496 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c nvkm_clk_nstate(struct nvkm_clk *clk, const char *mode, int arglen) mode 500 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (clk->allow_reclock && !strncasecmpz(mode, "auto", arglen)) mode 503 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (strncasecmpz(mode, "disabled", arglen)) { mode 504 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c char save = mode[arglen]; mode 507 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c ((char *)mode)[arglen] = '\0'; mode 508 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (!kstrtol(mode, 0, &v)) { mode 513 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c ((char *)mode)[arglen] = save; mode 657 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c const char *mode; mode 698 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c mode = nvkm_stropt(device->cfgopt, "NvClkMode", &arglen); mode 699 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (mode) { mode 700 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c clk->ustate_ac = nvkm_clk_nstate(clk, mode, arglen); mode 701 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c clk->ustate_dc = nvkm_clk_nstate(clk, mode, arglen); mode 704 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c mode = nvkm_stropt(device->cfgopt, "NvClkModeAC", &arglen); mode 705 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (mode) mode 706 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c clk->ustate_ac = nvkm_clk_nstate(clk, mode, arglen); mode 708 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c mode = nvkm_stropt(device->cfgopt, "NvClkModeDC", &arglen); mode 709 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (mode) mode 710 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c clk->ustate_dc = nvkm_clk_nstate(clk, mode, arglen); mode 142 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c int from, mode; mode 194 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c mode = freq != out; mode 204 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c if (mode == 1) { mode 213 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c if (mode == 1 && from == 0) { mode 242 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c if (mode == 0) { mode 278 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c if (mode == 0) mode 292 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c if (mode == 0) { mode 400 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c if (mode == 0) mode 132 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c int mode; mode 191 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode == 2) { mode 217 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram_mask(fuc, 0x1373f0, (~ram->mode & 3), 0x00000000); mode 218 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode == 2) { mode 343 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->from == 2 && ram->mode != 2) { mode 354 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->from != 2 && ram->mode != 2) { mode 373 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->from != 2 && ram->mode == 2) { mode 384 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->from == 2 && ram->mode == 2) { mode 390 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode != 2) /*XXX*/ { mode 408 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode != 2) { mode 414 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode == 2 && next->bios.ramcfg_11_08_10) mode 585 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (next->bios.ramcfg_11_08_10 && (ram->mode == 2) /*XXX*/) { mode 628 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode == 1) { mode 646 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode == 2) { /*XXX*/ mode 654 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode != 2) { mode 824 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode != 2) /*XXX*/ { mode 934 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode != 2) { mode 1052 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ram->mode = (next->freq > fuc->refpll.vco1.max_freq) ? 2 : 1; mode 1064 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (ram->mode == 2) { mode 27 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.c nvkm_i2c_pad_mode_locked(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) mode 29 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.c PAD_TRACE(pad, "-> %s", (mode == NVKM_I2C_PAD_AUX) ? "aux" : mode 30 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.c (mode == NVKM_I2C_PAD_I2C) ? "i2c" : "off"); mode 31 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.c if (pad->func->mode) mode 32 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.c pad->func->mode(pad, mode); mode 36 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.c nvkm_i2c_pad_mode(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) mode 38 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.c PAD_TRACE(pad, "mode %d", mode); mode 40 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.c nvkm_i2c_pad_mode_locked(pad, mode); mode 41 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.c pad->mode = mode; mode 49 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.c if (pad->mode == NVKM_I2C_PAD_OFF) mode 50 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.c nvkm_i2c_pad_mode_locked(pad, pad->mode); mode 55 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.c nvkm_i2c_pad_acquire(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) mode 59 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.c if (pad->mode != mode) { mode 60 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.c if (pad->mode != NVKM_I2C_PAD_OFF) { mode 64 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.c nvkm_i2c_pad_mode_locked(pad, mode); mode 80 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.c nvkm_i2c_pad_mode_locked(pad, pad->mode); mode 102 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.c pad->mode = NVKM_I2C_PAD_OFF; mode 18 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.h } mode; mode 32 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.h void (*mode)(struct nvkm_i2c_pad *, enum nvkm_i2c_pad_mode); mode 29 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/padg94.c g94_i2c_pad_mode(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) mode 35 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/padg94.c switch (mode) { mode 57 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/padg94.c .mode = g94_i2c_pad_mode, mode 32 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/padgf119.c .mode = g94_i2c_pad_mode, mode 29 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/padgm200.c gm200_i2c_pad_mode(struct nvkm_i2c_pad *pad, enum nvkm_i2c_pad_mode mode) mode 35 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/padgm200.c switch (mode) { mode 57 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/padgm200.c .mode = gm200_i2c_pad_mode, mode 247 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c if (pwr_rail->mode != 1 || !pwr_rail->resistor_count) mode 31 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c int mode; mode 59 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c u32 mode = nvkm_pci_rd32(pci, 0x004c); mode 66 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c if ((mode | pci->agp.mode) & PCI_AGP_COMMAND_FW) { mode 67 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c mode = pci->agp.mode & ~PCI_AGP_COMMAND_FW; mode 68 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c agp_enable(pci->agp.bridge, mode); mode 92 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c agp_enable(pci->agp.bridge, pci->agp.mode); mode 110 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c int mode = -1; mode 120 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c mode = 0; mode 122 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c mode = nvkm_longopt(device->cfgopt, "NvAGP", mode); mode 132 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c pci->agp.mode = info.mode; mode 148 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c quirk->mode); mode 149 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c mode = quirk->mode; mode 156 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c if (mode >= 1) { mode 157 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c if (pci->agp.mode & 0x00000008) mode 158 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c mode /= 4; /* AGPv3 */ mode 159 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c pci->agp.mode &= ~0x00000007; mode 160 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c pci->agp.mode |= (mode & 0x7); mode 162 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c if (mode == 0) { mode 171 drivers/gpu/drm/nouveau/nvkm/subdev/pci/agp.c pci->agp.mode &= ~PCI_AGP_COMMAND_FW; mode 106 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c nvkm_therm_update(struct nvkm_therm *therm, int mode) mode 116 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c if (mode < 0) mode 117 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c mode = therm->mode; mode 118 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c therm->mode = mode; mode 120 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c switch (mode) { mode 185 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c nvkm_therm_fan_mode(struct nvkm_therm *therm, int mode) mode 196 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c if ((mode >= ARRAY_SIZE(name)) || mode 197 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c (mode != NVKM_THERM_CTRL_NONE && nvkm_pmu_fan_controlled(device))) mode 202 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c if (mode == NVKM_THERM_CTRL_AUTO && mode 206 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c if (therm->mode == mode) mode 209 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c nvkm_debug(subdev, "fan management: %s\n", name[mode]); mode 210 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c nvkm_therm_update(therm, mode); mode 223 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c return therm->mode; mode 355 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c therm->suspend = therm->mode; mode 356 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c therm->mode = NVKM_THERM_CTRL_NONE; mode 438 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c therm->mode = therm->suspend = -1; /* undefined */ mode 177 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c if (therm->mode != NVKM_THERM_CTRL_MANUAL) mode 55 drivers/gpu/drm/nouveau/nvkm/subdev/therm/priv.h int nvkm_therm_fan_mode(struct nvkm_therm *, int mode); mode 118 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c if (ver == 0x10 || (ver == 0x20 && info.mode == 0)) { mode 123 drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c switch (info.mode) { mode 105 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c const char *mode; mode 133 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c mode = "GPIO"; mode 135 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c mode = "PWM"; mode 137 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c nvkm_debug(&volt->base.subdev, "Using %s mode\n", mode); mode 599 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c .mode = OMAP_DSS_DSI_CMD_MODE, mode 1121 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c struct drm_display_mode *mode) mode 1126 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (mode->hdisplay != ddata->vm.hactive) mode 1129 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c if (mode->vdisplay != ddata->vm.vactive) mode 1134 drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c mode->hdisplay, mode->vdisplay); mode 2927 drivers/gpu/drm/omapdrm/dss/dispc.c enum omap_dss_load_mode mode) mode 2929 drivers/gpu/drm/omapdrm/dss/dispc.c REG_FLD_MOD(dispc, DISPC_CONFIG, mode, 2, 1); mode 3012 drivers/gpu/drm/omapdrm/dss/dispc.c enum dss_io_pad_mode mode) mode 3017 drivers/gpu/drm/omapdrm/dss/dispc.c switch (mode) { mode 55 drivers/gpu/drm/omapdrm/dss/display.c struct drm_display_mode *mode; mode 57 drivers/gpu/drm/omapdrm/dss/display.c mode = drm_mode_create(connector->dev); mode 58 drivers/gpu/drm/omapdrm/dss/display.c if (!mode) mode 61 drivers/gpu/drm/omapdrm/dss/display.c drm_display_mode_from_videomode(vm, mode); mode 63 drivers/gpu/drm/omapdrm/dss/display.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 64 drivers/gpu/drm/omapdrm/dss/display.c drm_mode_set_name(mode); mode 65 drivers/gpu/drm/omapdrm/dss/display.c drm_mode_probed_add(connector, mode); mode 450 drivers/gpu/drm/omapdrm/dss/dpi.c const struct drm_display_mode *mode) mode 458 drivers/gpu/drm/omapdrm/dss/dpi.c dpi->pixelclock = mode->clock * 1000; mode 464 drivers/gpu/drm/omapdrm/dss/dpi.c struct drm_display_mode *mode) mode 473 drivers/gpu/drm/omapdrm/dss/dpi.c if (mode->hdisplay % 8 != 0) mode 476 drivers/gpu/drm/omapdrm/dss/dpi.c if (mode->clock == 0) mode 480 drivers/gpu/drm/omapdrm/dss/dpi.c ok = dpi_pll_clk_calc(dpi, mode->clock * 1000, &ctx); mode 486 drivers/gpu/drm/omapdrm/dss/dpi.c ok = dpi_dss_clk_calc(dpi, mode->clock * 1000, &ctx); mode 498 drivers/gpu/drm/omapdrm/dss/dpi.c mode->clock = pck / 1000; mode 414 drivers/gpu/drm/omapdrm/dss/dsi.c enum omap_dss_dsi_mode mode; mode 2104 drivers/gpu/drm/omapdrm/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_VIDEO_MODE) { mode 3241 drivers/gpu/drm/omapdrm/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_VIDEO_MODE) { mode 3535 drivers/gpu/drm/omapdrm/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_VIDEO_MODE) { mode 3612 drivers/gpu/drm/omapdrm/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_VIDEO_MODE) { mode 3739 drivers/gpu/drm/omapdrm/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_VIDEO_MODE) { mode 3780 drivers/gpu/drm/omapdrm/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_VIDEO_MODE) { mode 3793 drivers/gpu/drm/omapdrm/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_VIDEO_MODE) { mode 3998 drivers/gpu/drm/omapdrm/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_CMD_MODE) { mode 4026 drivers/gpu/drm/omapdrm/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_CMD_MODE) mode 4038 drivers/gpu/drm/omapdrm/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_CMD_MODE) mode 4701 drivers/gpu/drm/omapdrm/dss/dsi.c dsi->mode = config->mode; mode 4703 drivers/gpu/drm/omapdrm/dss/dsi.c if (config->mode == OMAP_DSS_DSI_VIDEO_MODE) mode 195 drivers/gpu/drm/omapdrm/dss/hdmi.h enum hdmi_audio_transf_mode mode; mode 241 drivers/gpu/drm/omapdrm/dss/hdmi4.c const struct drm_display_mode *mode) mode 247 drivers/gpu/drm/omapdrm/dss/hdmi4.c drm_display_mode_to_videomode(mode, &hdmi->cfg.vm); mode 249 drivers/gpu/drm/omapdrm/dss/hdmi4.c dispc_set_tv_pclk(hdmi->dss->dispc, mode->clock * 1000); mode 823 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c audio_dma.mode = HDMI_AUDIO_TRANSF_DMA; mode 240 drivers/gpu/drm/omapdrm/dss/hdmi5.c const struct drm_display_mode *mode) mode 246 drivers/gpu/drm/omapdrm/dss/hdmi5.c drm_display_mode_to_videomode(mode, &hdmi->cfg.vm); mode 248 drivers/gpu/drm/omapdrm/dss/hdmi5.c dispc_set_tv_pclk(hdmi->dss->dispc, mode->clock * 1000); mode 865 drivers/gpu/drm/omapdrm/dss/hdmi5_core.c audio_dma.mode = HDMI_AUDIO_TRANSF_DMA; mode 259 drivers/gpu/drm/omapdrm/dss/hdmi_wp.c r = FLD_MOD(r, aud_dma->mode, 9, 9); mode 212 drivers/gpu/drm/omapdrm/dss/omapdss.h enum omap_dss_dsi_mode mode; mode 358 drivers/gpu/drm/omapdrm/dss/omapdss.h struct drm_display_mode *mode); mode 360 drivers/gpu/drm/omapdrm/dss/omapdss.h const struct drm_display_mode *mode); mode 198 drivers/gpu/drm/omapdrm/dss/sdi.c const struct drm_display_mode *mode) mode 202 drivers/gpu/drm/omapdrm/dss/sdi.c sdi->pixelclock = mode->clock * 1000; mode 206 drivers/gpu/drm/omapdrm/dss/sdi.c struct drm_display_mode *mode) mode 210 drivers/gpu/drm/omapdrm/dss/sdi.c unsigned long pixelclock = mode->clock * 1000; mode 228 drivers/gpu/drm/omapdrm/dss/sdi.c mode->clock = pck / 1000; mode 516 drivers/gpu/drm/omapdrm/dss/venc.c struct drm_display_mode *mode; mode 518 drivers/gpu/drm/omapdrm/dss/venc.c mode = drm_mode_duplicate(connector->dev, modes[i]); mode 519 drivers/gpu/drm/omapdrm/dss/venc.c if (!mode) mode 522 drivers/gpu/drm/omapdrm/dss/venc.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 523 drivers/gpu/drm/omapdrm/dss/venc.c drm_mode_set_name(mode); mode 524 drivers/gpu/drm/omapdrm/dss/venc.c drm_mode_probed_add(connector, mode); mode 530 drivers/gpu/drm/omapdrm/dss/venc.c static enum venc_videomode venc_get_videomode(const struct drm_display_mode *mode) mode 532 drivers/gpu/drm/omapdrm/dss/venc.c if (!(mode->flags & DRM_MODE_FLAG_INTERLACE)) mode 535 drivers/gpu/drm/omapdrm/dss/venc.c if (mode->clock == omap_dss_pal_mode.clock && mode 536 drivers/gpu/drm/omapdrm/dss/venc.c mode->hdisplay == omap_dss_pal_mode.hdisplay && mode 537 drivers/gpu/drm/omapdrm/dss/venc.c mode->vdisplay == omap_dss_pal_mode.vdisplay) mode 540 drivers/gpu/drm/omapdrm/dss/venc.c if (mode->clock == omap_dss_ntsc_mode.clock && mode 541 drivers/gpu/drm/omapdrm/dss/venc.c mode->hdisplay == omap_dss_ntsc_mode.hdisplay && mode 542 drivers/gpu/drm/omapdrm/dss/venc.c mode->vdisplay == omap_dss_ntsc_mode.vdisplay) mode 549 drivers/gpu/drm/omapdrm/dss/venc.c const struct drm_display_mode *mode) mode 552 drivers/gpu/drm/omapdrm/dss/venc.c enum venc_videomode venc_mode = venc_get_videomode(mode); mode 577 drivers/gpu/drm/omapdrm/dss/venc.c struct drm_display_mode *mode) mode 581 drivers/gpu/drm/omapdrm/dss/venc.c switch (venc_get_videomode(mode)) { mode 583 drivers/gpu/drm/omapdrm/dss/venc.c drm_mode_copy(mode, &omap_dss_pal_mode); mode 587 drivers/gpu/drm/omapdrm/dss/venc.c drm_mode_copy(mode, &omap_dss_ntsc_mode); mode 594 drivers/gpu/drm/omapdrm/dss/venc.c drm_mode_set_crtcinfo(mode, CRTC_INTERLACE_HALVE_V); mode 595 drivers/gpu/drm/omapdrm/dss/venc.c drm_mode_set_name(mode); mode 243 drivers/gpu/drm/omapdrm/omap_connector.c const struct drm_display_mode *mode, mode 248 drivers/gpu/drm/omapdrm/omap_connector.c drm_mode_copy(adjusted_mode, mode); mode 263 drivers/gpu/drm/omapdrm/omap_connector.c struct drm_display_mode *mode) mode 269 drivers/gpu/drm/omapdrm/omap_connector.c status = omap_connector_mode_fixup(omap_connector->output, mode, mode 275 drivers/gpu/drm/omapdrm/omap_connector.c if (drm_mode_vrefresh(mode) != drm_mode_vrefresh(&new_mode)) mode 281 drivers/gpu/drm/omapdrm/omap_connector.c DRM_MODE_ARG(mode)); mode 28 drivers/gpu/drm/omapdrm/omap_connector.h const struct drm_display_mode *mode, mode 365 drivers/gpu/drm/omapdrm/omap_crtc.c struct drm_display_mode *mode = &omap_crtc->pipe->crtc->mode; mode 385 drivers/gpu/drm/omapdrm/omap_crtc.c ret = dssdrv->update(dssdev, 0, 0, mode->hdisplay, mode->vdisplay); mode 490 drivers/gpu/drm/omapdrm/omap_crtc.c const struct drm_display_mode *mode) mode 497 drivers/gpu/drm/omapdrm/omap_crtc.c drm_display_mode_to_videomode(mode, &vm); mode 526 drivers/gpu/drm/omapdrm/omap_crtc.c uint64_t bandwidth = mode->clock * 1000; mode 529 drivers/gpu/drm/omapdrm/omap_crtc.c bandwidth = bandwidth * mode->hdisplay * mode->vdisplay * bpp; mode 530 drivers/gpu/drm/omapdrm/omap_crtc.c bandwidth = div_u64(bandwidth, mode->htotal * mode->vtotal); mode 546 drivers/gpu/drm/omapdrm/omap_crtc.c struct drm_display_mode *mode = &crtc->state->adjusted_mode; mode 549 drivers/gpu/drm/omapdrm/omap_crtc.c omap_crtc->name, DRM_MODE_ARG(mode)); mode 551 drivers/gpu/drm/omapdrm/omap_crtc.c drm_display_mode_to_videomode(mode, &omap_crtc->vm); mode 97 drivers/gpu/drm/omapdrm/omap_encoder.c struct drm_display_mode *mode, mode 231 drivers/gpu/drm/omapdrm/omap_encoder.c &crtc_state->mode, mode 80 drivers/gpu/drm/panel/panel-arm-versatile.c struct drm_display_mode mode; mode 136 drivers/gpu/drm/panel/panel-arm-versatile.c .mode = { mode 160 drivers/gpu/drm/panel/panel-arm-versatile.c .mode = { mode 183 drivers/gpu/drm/panel/panel-arm-versatile.c .mode = { mode 207 drivers/gpu/drm/panel/panel-arm-versatile.c .mode = { mode 267 drivers/gpu/drm/panel/panel-arm-versatile.c struct drm_display_mode *mode; mode 273 drivers/gpu/drm/panel/panel-arm-versatile.c mode = drm_mode_duplicate(panel->drm, &vpanel->panel_type->mode); mode 274 drivers/gpu/drm/panel/panel-arm-versatile.c drm_mode_set_name(mode); mode 275 drivers/gpu/drm/panel/panel-arm-versatile.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 277 drivers/gpu/drm/panel/panel-arm-versatile.c mode->width_mm = vpanel->panel_type->width_mm; mode 278 drivers/gpu/drm/panel/panel-arm-versatile.c mode->height_mm = vpanel->panel_type->height_mm; mode 279 drivers/gpu/drm/panel/panel-arm-versatile.c drm_mode_probed_add(connector, mode); mode 169 drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c struct drm_display_mode *mode; mode 171 drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c mode = drm_mode_duplicate(panel->drm, &feiyang_default_mode); mode 172 drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c if (!mode) { mode 180 drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c drm_mode_set_name(mode); mode 182 drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c drm_mode_probed_add(connector, mode); mode 648 drivers/gpu/drm/panel/panel-ilitek-ili9322.c struct drm_display_mode *mode; mode 666 drivers/gpu/drm/panel/panel-ilitek-ili9322.c mode = drm_mode_duplicate(panel->drm, &srgb_320x240_mode); mode 669 drivers/gpu/drm/panel/panel-ilitek-ili9322.c mode = drm_mode_duplicate(panel->drm, &srgb_360x240_mode); mode 673 drivers/gpu/drm/panel/panel-ilitek-ili9322.c mode = drm_mode_duplicate(panel->drm, &prgb_320x240_mode); mode 676 drivers/gpu/drm/panel/panel-ilitek-ili9322.c mode = drm_mode_duplicate(panel->drm, &yuv_640x320_mode); mode 679 drivers/gpu/drm/panel/panel-ilitek-ili9322.c mode = drm_mode_duplicate(panel->drm, &yuv_720x360_mode); mode 682 drivers/gpu/drm/panel/panel-ilitek-ili9322.c mode = drm_mode_duplicate(panel->drm, &itu_r_bt_656_720_mode); mode 685 drivers/gpu/drm/panel/panel-ilitek-ili9322.c mode = drm_mode_duplicate(panel->drm, &itu_r_bt_656_640_mode); mode 688 drivers/gpu/drm/panel/panel-ilitek-ili9322.c mode = NULL; mode 691 drivers/gpu/drm/panel/panel-ilitek-ili9322.c if (!mode) { mode 695 drivers/gpu/drm/panel/panel-ilitek-ili9322.c drm_mode_set_name(mode); mode 700 drivers/gpu/drm/panel/panel-ilitek-ili9322.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 704 drivers/gpu/drm/panel/panel-ilitek-ili9322.c mode->flags |= DRM_MODE_FLAG_PHSYNC; mode 706 drivers/gpu/drm/panel/panel-ilitek-ili9322.c mode->flags |= DRM_MODE_FLAG_NHSYNC; mode 708 drivers/gpu/drm/panel/panel-ilitek-ili9322.c mode->flags |= DRM_MODE_FLAG_PVSYNC; mode 710 drivers/gpu/drm/panel/panel-ilitek-ili9322.c mode->flags |= DRM_MODE_FLAG_NVSYNC; mode 712 drivers/gpu/drm/panel/panel-ilitek-ili9322.c mode->width_mm = ili->conf->width_mm; mode 713 drivers/gpu/drm/panel/panel-ilitek-ili9322.c mode->height_mm = ili->conf->height_mm; mode 714 drivers/gpu/drm/panel/panel-ilitek-ili9322.c drm_mode_probed_add(connector, mode); mode 394 drivers/gpu/drm/panel/panel-ilitek-ili9881c.c struct drm_display_mode *mode; mode 396 drivers/gpu/drm/panel/panel-ilitek-ili9881c.c mode = drm_mode_duplicate(panel->drm, &bananapi_default_mode); mode 397 drivers/gpu/drm/panel/panel-ilitek-ili9881c.c if (!mode) { mode 405 drivers/gpu/drm/panel/panel-ilitek-ili9881c.c drm_mode_set_name(mode); mode 407 drivers/gpu/drm/panel/panel-ilitek-ili9881c.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 408 drivers/gpu/drm/panel/panel-ilitek-ili9881c.c drm_mode_probed_add(connector, mode); mode 33 drivers/gpu/drm/panel/panel-innolux-p079zca.c const struct drm_display_mode *mode; mode 242 drivers/gpu/drm/panel/panel-innolux-p079zca.c .mode = &innolux_p079zca_mode, mode 390 drivers/gpu/drm/panel/panel-innolux-p079zca.c .mode = &innolux_p097pfg_mode, mode 409 drivers/gpu/drm/panel/panel-innolux-p079zca.c const struct drm_display_mode *m = innolux->desc->mode; mode 410 drivers/gpu/drm/panel/panel-innolux-p079zca.c struct drm_display_mode *mode; mode 412 drivers/gpu/drm/panel/panel-innolux-p079zca.c mode = drm_mode_duplicate(panel->drm, m); mode 413 drivers/gpu/drm/panel/panel-innolux-p079zca.c if (!mode) { mode 419 drivers/gpu/drm/panel/panel-innolux-p079zca.c drm_mode_set_name(mode); mode 421 drivers/gpu/drm/panel/panel-innolux-p079zca.c drm_mode_probed_add(panel->connector, mode); mode 47 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c const struct drm_display_mode *mode; mode 75 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c ret = mipi_dsi_dcs_set_column_address(dsi, 0, jdi->mode->hdisplay - 1); mode 81 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c ret = mipi_dsi_dcs_set_page_address(dsi, 0, jdi->mode->vdisplay - 1); mode 305 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c struct drm_display_mode *mode; mode 309 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c mode = drm_mode_duplicate(panel->drm, &default_mode); mode 310 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c if (!mode) { mode 317 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c drm_mode_set_name(mode); mode 319 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c drm_mode_probed_add(panel->connector, mode); mode 400 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c jdi->mode = &default_mode; mode 338 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c struct drm_display_mode *mode; mode 340 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c mode = drm_mode_duplicate(panel->drm, &default_mode); mode 341 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c if (!mode) { mode 348 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c drm_mode_set_name(mode); mode 350 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c drm_mode_probed_add(panel->connector, mode); mode 147 drivers/gpu/drm/panel/panel-lg-lb035q02.c struct drm_display_mode *mode; mode 149 drivers/gpu/drm/panel/panel-lg-lb035q02.c mode = drm_mode_duplicate(panel->drm, &lb035q02_mode); mode 150 drivers/gpu/drm/panel/panel-lg-lb035q02.c if (!mode) mode 153 drivers/gpu/drm/panel/panel-lg-lb035q02.c drm_mode_set_name(mode); mode 154 drivers/gpu/drm/panel/panel-lg-lb035q02.c drm_mode_probed_add(connector, mode); mode 215 drivers/gpu/drm/panel/panel-lg-lg4573.c struct drm_display_mode *mode; mode 217 drivers/gpu/drm/panel/panel-lg-lg4573.c mode = drm_mode_duplicate(panel->drm, &default_mode); mode 218 drivers/gpu/drm/panel/panel-lg-lg4573.c if (!mode) { mode 225 drivers/gpu/drm/panel/panel-lg-lg4573.c drm_mode_set_name(mode); mode 227 drivers/gpu/drm/panel/panel-lg-lg4573.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 228 drivers/gpu/drm/panel/panel-lg-lg4573.c drm_mode_probed_add(connector, mode); mode 113 drivers/gpu/drm/panel/panel-lvds.c struct drm_display_mode *mode; mode 115 drivers/gpu/drm/panel/panel-lvds.c mode = drm_mode_create(lvds->panel.drm); mode 116 drivers/gpu/drm/panel/panel-lvds.c if (!mode) mode 119 drivers/gpu/drm/panel/panel-lvds.c drm_display_mode_from_videomode(&lvds->video_mode, mode); mode 120 drivers/gpu/drm/panel/panel-lvds.c mode->type |= DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 121 drivers/gpu/drm/panel/panel-lvds.c drm_mode_probed_add(connector, mode); mode 129 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c struct drm_display_mode *mode; mode 131 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c mode = drm_mode_duplicate(panel->drm, &nl8048_mode); mode 132 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c if (!mode) mode 135 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c drm_mode_set_name(mode); mode 136 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c drm_mode_probed_add(connector, mode); mode 195 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c spi->mode = SPI_MODE_0; mode 214 drivers/gpu/drm/panel/panel-novatek-nt39016.c struct drm_display_mode *mode; mode 216 drivers/gpu/drm/panel/panel-novatek-nt39016.c mode = drm_mode_duplicate(drm_panel->drm, &panel_info->display_mode); mode 217 drivers/gpu/drm/panel/panel-novatek-nt39016.c if (!mode) mode 220 drivers/gpu/drm/panel/panel-novatek-nt39016.c drm_mode_set_name(mode); mode 222 drivers/gpu/drm/panel/panel-novatek-nt39016.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 223 drivers/gpu/drm/panel/panel-novatek-nt39016.c drm_mode_probed_add(connector, mode); mode 274 drivers/gpu/drm/panel/panel-novatek-nt39016.c spi->mode = SPI_MODE_3 | SPI_3WIRE; mode 151 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c struct drm_display_mode *mode; mode 158 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c mode = drm_mode_create(drm); mode 159 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c if (!mode) { mode 167 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c mode->clock = lcd_mode->pixelclock; mode 168 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c mode->hdisplay = lcd_mode->hactive; mode 169 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c mode->hsync_start = lcd_mode->hactive + lcd_mode->hfp; mode 170 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c mode->hsync_end = lcd_mode->hactive + lcd_mode->hfp + mode 172 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c mode->htotal = lcd_mode->hactive + lcd_mode->hfp + mode 174 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c mode->vdisplay = lcd_mode->vactive; mode 175 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c mode->vsync_start = lcd_mode->vactive + lcd_mode->vfp; mode 176 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c mode->vsync_end = lcd_mode->vactive + lcd_mode->vfp + mode 178 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c mode->vtotal = lcd_mode->vactive + lcd_mode->vfp + mode 180 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c mode->vrefresh = lcd_mode->refresh; mode 184 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 185 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c mode->type |= DRM_MODE_TYPE_DRIVER; mode 187 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c drm_mode_set_name(mode); mode 188 drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c drm_mode_probed_add(connector, mode); mode 354 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c struct drm_display_mode *mode; mode 356 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c mode = drm_mode_duplicate(panel->drm, &default_mode); mode 357 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c if (!mode) { mode 364 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c drm_mode_set_name(mode); mode 366 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 367 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c drm_mode_probed_add(panel->connector, mode); mode 369 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c panel->connector->display_info.width_mm = mode->width_mm; mode 370 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c panel->connector->display_info.height_mm = mode->height_mm; mode 118 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c struct drm_display_mode *mode; mode 120 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c mode = drm_mode_duplicate(panel->drm, osd101t2587->default_mode); mode 121 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c if (!mode) { mode 129 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c drm_mode_set_name(mode); mode 131 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c drm_mode_probed_add(panel->connector, mode); mode 42 drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c const struct drm_display_mode *mode; mode 171 drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c struct drm_display_mode *mode; mode 173 drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c mode = drm_mode_duplicate(panel->drm, &default_mode); mode 174 drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c if (!mode) { mode 181 drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c drm_mode_set_name(mode); mode 183 drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c drm_mode_probed_add(panel->connector, mode); mode 211 drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c wuxga_nt->mode = &default_mode; mode 323 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c struct drm_display_mode *mode; mode 325 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c mode = drm_mode_duplicate(drm, m); mode 326 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c if (!mode) { mode 332 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c mode->type |= DRM_MODE_TYPE_DRIVER; mode 335 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 337 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c drm_mode_set_name(mode); mode 339 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c drm_mode_probed_add(connector, mode); mode 442 drivers/gpu/drm/panel/panel-raydium-rm67191.c struct drm_display_mode *mode; mode 444 drivers/gpu/drm/panel/panel-raydium-rm67191.c mode = drm_mode_duplicate(panel->drm, &default_mode); mode 445 drivers/gpu/drm/panel/panel-raydium-rm67191.c if (!mode) { mode 452 drivers/gpu/drm/panel/panel-raydium-rm67191.c drm_mode_set_name(mode); mode 453 drivers/gpu/drm/panel/panel-raydium-rm67191.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 454 drivers/gpu/drm/panel/panel-raydium-rm67191.c drm_mode_probed_add(panel->connector, mode); mode 456 drivers/gpu/drm/panel/panel-raydium-rm67191.c connector->display_info.width_mm = mode->width_mm; mode 457 drivers/gpu/drm/panel/panel-raydium-rm67191.c connector->display_info.height_mm = mode->height_mm; mode 340 drivers/gpu/drm/panel/panel-raydium-rm68200.c struct drm_display_mode *mode; mode 342 drivers/gpu/drm/panel/panel-raydium-rm68200.c mode = drm_mode_duplicate(panel->drm, &default_mode); mode 343 drivers/gpu/drm/panel/panel-raydium-rm68200.c if (!mode) { mode 350 drivers/gpu/drm/panel/panel-raydium-rm68200.c drm_mode_set_name(mode); mode 352 drivers/gpu/drm/panel/panel-raydium-rm68200.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 353 drivers/gpu/drm/panel/panel-raydium-rm68200.c drm_mode_probed_add(panel->connector, mode); mode 355 drivers/gpu/drm/panel/panel-raydium-rm68200.c panel->connector->display_info.width_mm = mode->width_mm; mode 356 drivers/gpu/drm/panel/panel-raydium-rm68200.c panel->connector->display_info.height_mm = mode->height_mm; mode 236 drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c struct drm_display_mode *mode; mode 238 drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c mode = drm_mode_duplicate(panel->drm, &default_mode); mode 239 drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c if (!mode) { mode 246 drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c drm_mode_set_name(mode); mode 248 drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 249 drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c panel->connector->display_info.width_mm = mode->width_mm; mode 250 drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c panel->connector->display_info.height_mm = mode->height_mm; mode 251 drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c drm_mode_probed_add(panel->connector, mode); mode 127 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c struct drm_display_mode *mode; mode 130 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c mode = drm_mode_duplicate(panel->drm, &default_mode); mode 131 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c if (!mode) { mode 138 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c drm_mode_set_name(mode); mode 140 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 141 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c drm_mode_probed_add(connector, mode); mode 144 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c panel->connector->display_info.width_mm = mode->width_mm; mode 145 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c panel->connector->display_info.height_mm = mode->height_mm; mode 268 drivers/gpu/drm/panel/panel-samsung-ld9040.c struct drm_display_mode *mode; mode 270 drivers/gpu/drm/panel/panel-samsung-ld9040.c mode = drm_mode_create(connector->dev); mode 271 drivers/gpu/drm/panel/panel-samsung-ld9040.c if (!mode) { mode 276 drivers/gpu/drm/panel/panel-samsung-ld9040.c drm_display_mode_from_videomode(&ctx->vm, mode); mode 277 drivers/gpu/drm/panel/panel-samsung-ld9040.c mode->width_mm = ctx->width_mm; mode 278 drivers/gpu/drm/panel/panel-samsung-ld9040.c mode->height_mm = ctx->height_mm; mode 279 drivers/gpu/drm/panel/panel-samsung-ld9040.c connector->display_info.width_mm = mode->width_mm; mode 280 drivers/gpu/drm/panel/panel-samsung-ld9040.c connector->display_info.height_mm = mode->height_mm; mode 282 drivers/gpu/drm/panel/panel-samsung-ld9040.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 283 drivers/gpu/drm/panel/panel-samsung-ld9040.c drm_mode_probed_add(connector, mode); mode 149 drivers/gpu/drm/panel/panel-samsung-s6d16d0.c struct drm_display_mode *mode; mode 151 drivers/gpu/drm/panel/panel-samsung-s6d16d0.c mode = drm_mode_duplicate(panel->drm, &samsung_s6d16d0_mode); mode 152 drivers/gpu/drm/panel/panel-samsung-s6d16d0.c if (!mode) { mode 156 drivers/gpu/drm/panel/panel-samsung-s6d16d0.c drm_mode_set_name(mode); mode 157 drivers/gpu/drm/panel/panel-samsung-s6d16d0.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 159 drivers/gpu/drm/panel/panel-samsung-s6d16d0.c connector->display_info.width_mm = mode->width_mm; mode 160 drivers/gpu/drm/panel/panel-samsung-s6d16d0.c connector->display_info.height_mm = mode->height_mm; mode 162 drivers/gpu/drm/panel/panel-samsung-s6d16d0.c drm_mode_probed_add(connector, mode); mode 229 drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c const struct drm_display_mode *mode; mode 625 drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c .mode = &s6e3ha2_mode, mode 644 drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c .mode = &s6e3hf2_mode, mode 652 drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c struct drm_display_mode *mode; mode 654 drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c mode = drm_mode_duplicate(panel->drm, ctx->desc->mode); mode 655 drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c if (!mode) { mode 657 drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c ctx->desc->mode->hdisplay, ctx->desc->mode->vdisplay, mode 658 drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c ctx->desc->mode->vrefresh); mode 662 drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c drm_mode_set_name(mode); mode 664 drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 665 drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c drm_mode_probed_add(connector, mode); mode 406 drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c struct drm_display_mode *mode; mode 408 drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c mode = drm_mode_duplicate(panel->drm, &default_mode); mode 409 drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c if (!mode) { mode 416 drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c drm_mode_set_name(mode); mode 418 drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 419 drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c drm_mode_probed_add(connector, mode); mode 368 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c struct drm_display_mode *mode; mode 370 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c mode = drm_mode_duplicate(panel->drm, &default_mode); mode 371 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c if (!mode) { mode 378 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c drm_mode_set_name(mode); mode 380 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 381 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c drm_mode_probed_add(connector, mode); mode 469 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c spi->mode = SPI_MODE_3; mode 927 drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c struct drm_display_mode *mode; mode 929 drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c mode = drm_mode_create(connector->dev); mode 930 drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c if (!mode) { mode 935 drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c drm_display_mode_from_videomode(&ctx->vm, mode); mode 936 drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c mode->width_mm = ctx->width_mm; mode 937 drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c mode->height_mm = ctx->height_mm; mode 938 drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c connector->display_info.width_mm = mode->width_mm; mode 939 drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c connector->display_info.height_mm = mode->height_mm; mode 941 drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 942 drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c drm_mode_probed_add(connector, mode); mode 63 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c struct drm_display_mode *mode; mode 74 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c mode = drm_mode_create(drm); mode 75 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c if (!mode) { mode 81 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c drm_display_mode_from_videomode(&vm, mode); mode 83 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c mode->type |= DRM_MODE_TYPE_DRIVER; mode 86 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 88 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c drm_mode_probed_add(connector, mode); mode 95 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c mode = drm_mode_duplicate(drm, m); mode 96 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c if (!mode) { mode 102 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c mode->type |= DRM_MODE_TYPE_DRIVER; mode 105 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 107 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c drm_mode_set_name(mode); mode 109 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c drm_mode_probed_add(connector, mode); mode 32 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c const struct drm_display_mode *mode; mode 42 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c unsigned int refresh = drm_mode_vrefresh(sharp->mode); mode 133 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c const struct drm_display_mode *mode) mode 137 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c err = mipi_dsi_dcs_set_column_address(left, 0, mode->hdisplay / 2 - 1); mode 143 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c err = mipi_dsi_dcs_set_page_address(left, 0, mode->vdisplay - 1); mode 149 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c err = mipi_dsi_dcs_set_column_address(right, mode->hdisplay / 2, mode 150 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c mode->hdisplay - 1); mode 156 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c err = mipi_dsi_dcs_set_page_address(right, 0, mode->vdisplay - 1); mode 229 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c sharp->mode); mode 283 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c struct drm_display_mode *mode; mode 285 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c mode = drm_mode_duplicate(panel->drm, &default_mode); mode 286 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c if (!mode) { mode 293 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c drm_mode_set_name(mode); mode 295 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c drm_mode_probed_add(panel->connector, mode); mode 321 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c sharp->mode = &default_mode; mode 106 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c struct drm_display_mode *mode; mode 108 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c mode = drm_mode_duplicate(panel->drm, &ls037v7dw01_mode); mode 109 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c if (!mode) mode 112 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c drm_mode_set_name(mode); mode 113 drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c drm_mode_probed_add(connector, mode); mode 35 drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c const struct drm_display_mode *mode; mode 215 drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c struct drm_display_mode *mode; mode 217 drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c mode = drm_mode_duplicate(panel->drm, &default_mode); mode 218 drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c if (!mode) { mode 225 drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c drm_mode_set_name(mode); mode 227 drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c drm_mode_probed_add(panel->connector, mode); mode 247 drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c sharp_nt->mode = &default_mode; mode 125 drivers/gpu/drm/panel/panel-simple.c struct drm_display_mode *mode; mode 133 drivers/gpu/drm/panel/panel-simple.c mode = drm_mode_create(drm); mode 134 drivers/gpu/drm/panel/panel-simple.c if (!mode) { mode 140 drivers/gpu/drm/panel/panel-simple.c drm_display_mode_from_videomode(&vm, mode); mode 142 drivers/gpu/drm/panel/panel-simple.c mode->type |= DRM_MODE_TYPE_DRIVER; mode 145 drivers/gpu/drm/panel/panel-simple.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 147 drivers/gpu/drm/panel/panel-simple.c drm_mode_probed_add(connector, mode); mode 158 drivers/gpu/drm/panel/panel-simple.c struct drm_display_mode *mode; mode 164 drivers/gpu/drm/panel/panel-simple.c mode = drm_mode_duplicate(drm, m); mode 165 drivers/gpu/drm/panel/panel-simple.c if (!mode) { mode 171 drivers/gpu/drm/panel/panel-simple.c mode->type |= DRM_MODE_TYPE_DRIVER; mode 174 drivers/gpu/drm/panel/panel-simple.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 176 drivers/gpu/drm/panel/panel-simple.c drm_mode_set_name(mode); mode 178 drivers/gpu/drm/panel/panel-simple.c drm_mode_probed_add(connector, mode); mode 189 drivers/gpu/drm/panel/panel-simple.c struct drm_display_mode *mode; mode 197 drivers/gpu/drm/panel/panel-simple.c mode = drm_mode_duplicate(drm, &panel->override_mode); mode 198 drivers/gpu/drm/panel/panel-simple.c if (mode) { mode 199 drivers/gpu/drm/panel/panel-simple.c drm_mode_probed_add(connector, mode); mode 92 drivers/gpu/drm/panel/panel-sitronix-st7701.c const struct drm_display_mode *mode; mode 131 drivers/gpu/drm/panel/panel-sitronix-st7701.c const struct drm_display_mode *mode = st7701->desc->mode; mode 154 drivers/gpu/drm/panel/panel-sitronix-st7701.c DSI_CMD2_BK0_PORCTRL_B0(mode), mode 155 drivers/gpu/drm/panel/panel-sitronix-st7701.c DSI_CMD2_BK0_PORCTRL_B1(mode)); mode 270 drivers/gpu/drm/panel/panel-sitronix-st7701.c const struct drm_display_mode *desc_mode = st7701->desc->mode; mode 271 drivers/gpu/drm/panel/panel-sitronix-st7701.c struct drm_display_mode *mode; mode 273 drivers/gpu/drm/panel/panel-sitronix-st7701.c mode = drm_mode_duplicate(panel->drm, desc_mode); mode 274 drivers/gpu/drm/panel/panel-sitronix-st7701.c if (!mode) { mode 282 drivers/gpu/drm/panel/panel-sitronix-st7701.c drm_mode_set_name(mode); mode 283 drivers/gpu/drm/panel/panel-sitronix-st7701.c drm_mode_probed_add(panel->connector, mode); mode 324 drivers/gpu/drm/panel/panel-sitronix-st7701.c .mode = &ts8550b_mode, mode 176 drivers/gpu/drm/panel/panel-sitronix-st7789v.c struct drm_display_mode *mode; mode 178 drivers/gpu/drm/panel/panel-sitronix-st7789v.c mode = drm_mode_duplicate(panel->drm, &default_mode); mode 179 drivers/gpu/drm/panel/panel-sitronix-st7789v.c if (!mode) { mode 186 drivers/gpu/drm/panel/panel-sitronix-st7789v.c drm_mode_set_name(mode); mode 188 drivers/gpu/drm/panel/panel-sitronix-st7789v.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 189 drivers/gpu/drm/panel/panel-sitronix-st7789v.c drm_mode_probed_add(connector, mode); mode 150 drivers/gpu/drm/panel/panel-sony-acx565akm.c unsigned int mode) mode 154 drivers/gpu/drm/panel/panel-sony-acx565akm.c lcd->cabc_mode = mode; mode 160 drivers/gpu/drm/panel/panel-sony-acx565akm.c cabc_ctrl |= (1 << 8) | (mode & 3); mode 185 drivers/gpu/drm/panel/panel-sony-acx565akm.c int mode; mode 188 drivers/gpu/drm/panel/panel-sony-acx565akm.c mode = 0; mode 190 drivers/gpu/drm/panel/panel-sony-acx565akm.c mode = acx565akm_get_cabc_mode(lcd); mode 193 drivers/gpu/drm/panel/panel-sony-acx565akm.c if (mode >= 0 && mode < ARRAY_SIZE(acx565akm_cabc_modes)) mode 194 drivers/gpu/drm/panel/panel-sony-acx565akm.c mode_str = acx565akm_cabc_modes[mode]; mode 527 drivers/gpu/drm/panel/panel-sony-acx565akm.c struct drm_display_mode *mode; mode 529 drivers/gpu/drm/panel/panel-sony-acx565akm.c mode = drm_mode_duplicate(panel->drm, &acx565akm_mode); mode 530 drivers/gpu/drm/panel/panel-sony-acx565akm.c if (!mode) mode 533 drivers/gpu/drm/panel/panel-sony-acx565akm.c drm_mode_set_name(mode); mode 534 drivers/gpu/drm/panel/panel-sony-acx565akm.c drm_mode_probed_add(connector, mode); mode 628 drivers/gpu/drm/panel/panel-sony-acx565akm.c spi->mode = SPI_MODE_3; mode 293 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c struct drm_display_mode *mode; mode 295 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c mode = drm_mode_duplicate(panel->drm, &td028ttec1_mode); mode 296 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c if (!mode) mode 299 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c drm_mode_set_name(mode); mode 300 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c drm_mode_probed_add(connector, mode); mode 341 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c spi->mode = SPI_MODE_3; mode 60 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c unsigned int mode; mode 149 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c td043mtea1_write(lcd, 2, TPO_R02_MODE(lcd->mode) | TPO_R02_NCLK_RISING); mode 217 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c return snprintf(buf, PAGE_SIZE, "%d\n", lcd->mode); mode 231 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd->mode = val; mode 282 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c static DEVICE_ATTR_RW(mode); mode 352 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c struct drm_display_mode *mode; mode 354 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c mode = drm_mode_duplicate(panel->drm, &td043mtea1_mode); mode 355 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c if (!mode) mode 358 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c drm_mode_set_name(mode); mode 359 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c drm_mode_probed_add(connector, mode); mode 431 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c lcd->mode = TPO_R02_MODE_800x480; mode 447 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c spi->mode = SPI_MODE_0; mode 56 drivers/gpu/drm/panel/panel-tpo-tpg110.c struct drm_display_mode mode; mode 109 drivers/gpu/drm/panel/panel-tpo-tpg110.c .mode = { mode 126 drivers/gpu/drm/panel/panel-tpo-tpg110.c .mode = { mode 143 drivers/gpu/drm/panel/panel-tpo-tpg110.c .mode = { mode 160 drivers/gpu/drm/panel/panel-tpo-tpg110.c .mode = { mode 177 drivers/gpu/drm/panel/panel-tpo-tpg110.c .mode = { mode 391 drivers/gpu/drm/panel/panel-tpo-tpg110.c struct drm_display_mode *mode; mode 397 drivers/gpu/drm/panel/panel-tpo-tpg110.c mode = drm_mode_duplicate(panel->drm, &tpg->panel_mode->mode); mode 398 drivers/gpu/drm/panel/panel-tpo-tpg110.c drm_mode_set_name(mode); mode 399 drivers/gpu/drm/panel/panel-tpo-tpg110.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 401 drivers/gpu/drm/panel/panel-tpo-tpg110.c mode->width_mm = tpg->width; mode 402 drivers/gpu/drm/panel/panel-tpo-tpg110.c mode->height_mm = tpg->height; mode 404 drivers/gpu/drm/panel/panel-tpo-tpg110.c drm_mode_probed_add(connector, mode); mode 448 drivers/gpu/drm/panel/panel-tpo-tpg110.c spi->mode |= SPI_3WIRE_HIZ; mode 461 drivers/gpu/drm/panel/panel-truly-nt35597.c struct drm_display_mode *mode; mode 465 drivers/gpu/drm/panel/panel-truly-nt35597.c mode = drm_mode_create(connector->dev); mode 466 drivers/gpu/drm/panel/panel-truly-nt35597.c if (!mode) { mode 474 drivers/gpu/drm/panel/panel-truly-nt35597.c drm_mode_copy(mode, config->dm); mode 475 drivers/gpu/drm/panel/panel-truly-nt35597.c mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; mode 476 drivers/gpu/drm/panel/panel-truly-nt35597.c drm_mode_probed_add(connector, mode); mode 52 drivers/gpu/drm/pl111/pl111_display.c const struct drm_display_mode *mode) mode 63 drivers/gpu/drm/pl111/pl111_display.c bw = mode->clock * 1000ULL; /* In Hz */ mode 64 drivers/gpu/drm/pl111/pl111_display.c bw = bw * mode->hdisplay * mode->vdisplay * cpp; mode 65 drivers/gpu/drm/pl111/pl111_display.c bw = div_u64(bw, mode->htotal * mode->vtotal); mode 73 drivers/gpu/drm/pl111/pl111_display.c mode->hdisplay, mode->vdisplay, mode 74 drivers/gpu/drm/pl111/pl111_display.c mode->clock * 1000, cpp, bw); mode 79 drivers/gpu/drm/pl111/pl111_display.c mode->hdisplay, mode->vdisplay, mode 80 drivers/gpu/drm/pl111/pl111_display.c mode->clock * 1000, cpp, bw); mode 89 drivers/gpu/drm/pl111/pl111_display.c const struct drm_display_mode *mode = &cstate->mode; mode 93 drivers/gpu/drm/pl111/pl111_display.c if (mode->hdisplay % 16) mode 106 drivers/gpu/drm/pl111/pl111_display.c if (fb->pitches[0] != mode->hdisplay * fb->format->cpp[0]) mode 127 drivers/gpu/drm/pl111/pl111_display.c const struct drm_display_mode *mode = &cstate->mode; mode 138 drivers/gpu/drm/pl111/pl111_display.c ret = clk_set_rate(priv->clk, mode->clock * 1000); mode 142 drivers/gpu/drm/pl111/pl111_display.c mode->clock * 1000, ret); mode 147 drivers/gpu/drm/pl111/pl111_display.c ppl = (mode->hdisplay / 16) - 1; mode 148 drivers/gpu/drm/pl111/pl111_display.c hsw = mode->hsync_end - mode->hsync_start - 1; mode 149 drivers/gpu/drm/pl111/pl111_display.c hfp = mode->hsync_start - mode->hdisplay - 1; mode 150 drivers/gpu/drm/pl111/pl111_display.c hbp = mode->htotal - mode->hsync_end - 1; mode 152 drivers/gpu/drm/pl111/pl111_display.c lpp = mode->vdisplay - 1; mode 153 drivers/gpu/drm/pl111/pl111_display.c vsw = mode->vsync_end - mode->vsync_start - 1; mode 154 drivers/gpu/drm/pl111/pl111_display.c vfp = mode->vsync_start - mode->vdisplay; mode 155 drivers/gpu/drm/pl111/pl111_display.c vbp = mode->vtotal - mode->vsync_end; mode 157 drivers/gpu/drm/pl111/pl111_display.c cpl = mode->hdisplay - 1; mode 178 drivers/gpu/drm/pl111/pl111_display.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 181 drivers/gpu/drm/pl111/pl111_display.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 234 drivers/gpu/drm/qxl/qxl_dev.h uint32_t mode; /* qxl-1 */ mode 225 drivers/gpu/drm/qxl/qxl_display.c struct drm_display_mode *mode = NULL; mode 232 drivers/gpu/drm/qxl/qxl_display.c mode = drm_cvt_mode(dev, width, height, 60, false, false, false); mode 234 drivers/gpu/drm/qxl/qxl_display.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 235 drivers/gpu/drm/qxl/qxl_display.c mode->hdisplay = width; mode 236 drivers/gpu/drm/qxl/qxl_display.c mode->vdisplay = height; mode 237 drivers/gpu/drm/qxl/qxl_display.c drm_mode_set_name(mode); mode 238 drivers/gpu/drm/qxl/qxl_display.c drm_mode_probed_add(connector, mode); mode 330 drivers/gpu/drm/qxl/qxl_display.c struct drm_display_mode *mode = &crtc->mode; mode 332 drivers/gpu/drm/qxl/qxl_display.c head.width = mode->hdisplay; mode 333 drivers/gpu/drm/qxl/qxl_display.c head.height = mode->vdisplay; mode 1004 drivers/gpu/drm/qxl/qxl_display.c struct drm_display_mode *mode) mode 1009 drivers/gpu/drm/qxl/qxl_display.c if (qxl_check_mode(qdev, mode->hdisplay, mode->vdisplay) != 0) mode 39 drivers/gpu/drm/radeon/atombios_crtc.c struct drm_display_mode *mode, mode 55 drivers/gpu/drm/radeon/atombios_crtc.c args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); mode 56 drivers/gpu/drm/radeon/atombios_crtc.c args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); mode 57 drivers/gpu/drm/radeon/atombios_crtc.c args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); mode 58 drivers/gpu/drm/radeon/atombios_crtc.c args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); mode 61 drivers/gpu/drm/radeon/atombios_crtc.c a1 = mode->crtc_vdisplay * adjusted_mode->crtc_hdisplay; mode 62 drivers/gpu/drm/radeon/atombios_crtc.c a2 = adjusted_mode->crtc_vdisplay * mode->crtc_hdisplay; mode 65 drivers/gpu/drm/radeon/atombios_crtc.c args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); mode 66 drivers/gpu/drm/radeon/atombios_crtc.c args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); mode 68 drivers/gpu/drm/radeon/atombios_crtc.c args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); mode 69 drivers/gpu/drm/radeon/atombios_crtc.c args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); mode 268 drivers/gpu/drm/radeon/atombios_crtc.c void atombios_crtc_dpms(struct drm_crtc *crtc, int mode) mode 274 drivers/gpu/drm/radeon/atombios_crtc.c switch (mode) { mode 304 drivers/gpu/drm/radeon/atombios_crtc.c struct drm_display_mode *mode) mode 314 drivers/gpu/drm/radeon/atombios_crtc.c args.usH_Size = cpu_to_le16(mode->crtc_hdisplay - (radeon_crtc->h_border * 2)); mode 316 drivers/gpu/drm/radeon/atombios_crtc.c cpu_to_le16(mode->crtc_hblank_end - mode->crtc_hdisplay + (radeon_crtc->h_border * 2)); mode 317 drivers/gpu/drm/radeon/atombios_crtc.c args.usV_Size = cpu_to_le16(mode->crtc_vdisplay - (radeon_crtc->v_border * 2)); mode 319 drivers/gpu/drm/radeon/atombios_crtc.c cpu_to_le16(mode->crtc_vblank_end - mode->crtc_vdisplay + (radeon_crtc->v_border * 2)); mode 321 drivers/gpu/drm/radeon/atombios_crtc.c cpu_to_le16(mode->crtc_hsync_start - mode->crtc_hdisplay + radeon_crtc->h_border); mode 323 drivers/gpu/drm/radeon/atombios_crtc.c cpu_to_le16(mode->crtc_hsync_end - mode->crtc_hsync_start); mode 325 drivers/gpu/drm/radeon/atombios_crtc.c cpu_to_le16(mode->crtc_vsync_start - mode->crtc_vdisplay + radeon_crtc->v_border); mode 327 drivers/gpu/drm/radeon/atombios_crtc.c cpu_to_le16(mode->crtc_vsync_end - mode->crtc_vsync_start); mode 331 drivers/gpu/drm/radeon/atombios_crtc.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 333 drivers/gpu/drm/radeon/atombios_crtc.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 335 drivers/gpu/drm/radeon/atombios_crtc.c if (mode->flags & DRM_MODE_FLAG_CSYNC) mode 337 drivers/gpu/drm/radeon/atombios_crtc.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 339 drivers/gpu/drm/radeon/atombios_crtc.c if (mode->flags & DRM_MODE_FLAG_DBLCLK) mode 341 drivers/gpu/drm/radeon/atombios_crtc.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 351 drivers/gpu/drm/radeon/atombios_crtc.c struct drm_display_mode *mode) mode 361 drivers/gpu/drm/radeon/atombios_crtc.c args.usH_Total = cpu_to_le16(mode->crtc_htotal); mode 362 drivers/gpu/drm/radeon/atombios_crtc.c args.usH_Disp = cpu_to_le16(mode->crtc_hdisplay); mode 363 drivers/gpu/drm/radeon/atombios_crtc.c args.usH_SyncStart = cpu_to_le16(mode->crtc_hsync_start); mode 365 drivers/gpu/drm/radeon/atombios_crtc.c cpu_to_le16(mode->crtc_hsync_end - mode->crtc_hsync_start); mode 366 drivers/gpu/drm/radeon/atombios_crtc.c args.usV_Total = cpu_to_le16(mode->crtc_vtotal); mode 367 drivers/gpu/drm/radeon/atombios_crtc.c args.usV_Disp = cpu_to_le16(mode->crtc_vdisplay); mode 368 drivers/gpu/drm/radeon/atombios_crtc.c args.usV_SyncStart = cpu_to_le16(mode->crtc_vsync_start); mode 370 drivers/gpu/drm/radeon/atombios_crtc.c cpu_to_le16(mode->crtc_vsync_end - mode->crtc_vsync_start); mode 377 drivers/gpu/drm/radeon/atombios_crtc.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 379 drivers/gpu/drm/radeon/atombios_crtc.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 381 drivers/gpu/drm/radeon/atombios_crtc.c if (mode->flags & DRM_MODE_FLAG_CSYNC) mode 383 drivers/gpu/drm/radeon/atombios_crtc.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 385 drivers/gpu/drm/radeon/atombios_crtc.c if (mode->flags & DRM_MODE_FLAG_DBLCLK) mode 387 drivers/gpu/drm/radeon/atombios_crtc.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 559 drivers/gpu/drm/radeon/atombios_crtc.c struct drm_display_mode *mode) mode 567 drivers/gpu/drm/radeon/atombios_crtc.c u32 adjusted_clock = mode->clock; mode 569 drivers/gpu/drm/radeon/atombios_crtc.c u32 dp_clock = mode->clock; mode 570 drivers/gpu/drm/radeon/atombios_crtc.c u32 clock = mode->clock; mode 572 drivers/gpu/drm/radeon/atombios_crtc.c bool is_duallink = radeon_dig_monitor_is_duallink(encoder, mode->clock); mode 584 drivers/gpu/drm/radeon/atombios_crtc.c if (ASIC_IS_DCE32(rdev) && mode->clock > 200000) /* range limits??? */ mode 598 drivers/gpu/drm/radeon/atombios_crtc.c if (ASIC_IS_DCE32(rdev) && mode->clock > 165000) mode 603 drivers/gpu/drm/radeon/atombios_crtc.c if (mode->clock > 200000) /* range limits??? */ mode 644 drivers/gpu/drm/radeon/atombios_crtc.c adjusted_clock = mode->clock * 2; mode 963 drivers/gpu/drm/radeon/atombios_crtc.c static bool atombios_crtc_prepare_pll(struct drm_crtc *crtc, struct drm_display_mode *mode) mode 976 drivers/gpu/drm/radeon/atombios_crtc.c radeon_dp_mst_prepare_pll(crtc, mode); mode 989 drivers/gpu/drm/radeon/atombios_crtc.c radeon_connector->pixelclock_for_modeset = mode->clock; mode 1029 drivers/gpu/drm/radeon/atombios_crtc.c mode->clock / 10); mode 1042 drivers/gpu/drm/radeon/atombios_crtc.c mode->clock / 10); mode 1050 drivers/gpu/drm/radeon/atombios_crtc.c mode->clock / 10); mode 1058 drivers/gpu/drm/radeon/atombios_crtc.c radeon_crtc->adjusted_clock = atombios_adjust_pll(crtc, mode); mode 1063 drivers/gpu/drm/radeon/atombios_crtc.c static void atombios_crtc_set_pll(struct drm_crtc *crtc, struct drm_display_mode *mode) mode 1070 drivers/gpu/drm/radeon/atombios_crtc.c u32 pll_clock = mode->clock; mode 1071 drivers/gpu/drm/radeon/atombios_crtc.c u32 clock = mode->clock; mode 1440 drivers/gpu/drm/radeon/atombios_crtc.c viewport_w = crtc->mode.hdisplay; mode 1441 drivers/gpu/drm/radeon/atombios_crtc.c viewport_h = (crtc->mode.vdisplay + 1) & ~1; mode 1443 drivers/gpu/drm/radeon/atombios_crtc.c (crtc->mode.flags & DRM_MODE_FLAG_INTERLACE)) mode 1652 drivers/gpu/drm/radeon/atombios_crtc.c viewport_w = crtc->mode.hdisplay; mode 1653 drivers/gpu/drm/radeon/atombios_crtc.c viewport_h = (crtc->mode.vdisplay + 1) & ~1; mode 1828 drivers/gpu/drm/radeon/atombios_crtc.c if ((crtc->mode.clock == test_crtc->mode.clock) && mode 2054 drivers/gpu/drm/radeon/atombios_crtc.c struct drm_display_mode *mode, mode 2088 drivers/gpu/drm/radeon/atombios_crtc.c atombios_overscan_setup(crtc, mode, adjusted_mode); mode 2098 drivers/gpu/drm/radeon/atombios_crtc.c const struct drm_display_mode *mode, mode 2124 drivers/gpu/drm/radeon/atombios_crtc.c if (!radeon_crtc_scaling_mode_fixup(crtc, mode, adjusted_mode)) mode 453 drivers/gpu/drm/radeon/atombios_dp.c const struct drm_display_mode *mode) mode 466 drivers/gpu/drm/radeon/atombios_dp.c mode->clock, mode 477 drivers/gpu/drm/radeon/atombios_dp.c struct drm_display_mode *mode) mode 484 drivers/gpu/drm/radeon/atombios_dp.c if ((mode->clock > 340000) && mode 493 drivers/gpu/drm/radeon/atombios_dp.c mode->clock, mode 301 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_display_mode *mode); mode 304 drivers/gpu/drm/radeon/atombios_encoders.c const struct drm_display_mode *mode, mode 316 drivers/gpu/drm/radeon/atombios_encoders.c if ((mode->flags & DRM_MODE_FLAG_INTERLACE) mode 317 drivers/gpu/drm/radeon/atombios_encoders.c && (mode->crtc_vsync_start < (mode->crtc_vdisplay + 2))) mode 321 drivers/gpu/drm/radeon/atombios_encoders.c if (mode->crtc_vsync_start == mode->crtc_vdisplay) mode 1578 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms_avivo(struct drm_encoder *encoder, int mode) mode 1629 drivers/gpu/drm/radeon/atombios_encoders.c switch (mode) { mode 1665 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms_dig(struct drm_encoder *encoder, int mode) mode 1687 drivers/gpu/drm/radeon/atombios_encoders.c switch (mode) { mode 1783 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms(struct drm_encoder *encoder, int mode) mode 1791 drivers/gpu/drm/radeon/atombios_encoders.c radeon_encoder->encoder_id, mode, radeon_encoder->devices, mode 1797 drivers/gpu/drm/radeon/atombios_encoders.c radeon_audio_dpms(encoder, mode); mode 1808 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms_avivo(encoder, mode); mode 1815 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms_dig(encoder, mode); mode 1819 drivers/gpu/drm/radeon/atombios_encoders.c switch (mode) { mode 1830 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms_dig(encoder, mode); mode 1832 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms_avivo(encoder, mode); mode 1837 drivers/gpu/drm/radeon/atombios_encoders.c switch (mode) { mode 1848 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_encoder_dpms_avivo(encoder, mode); mode 1854 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atombios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); mode 2061 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_display_mode *mode) mode 2086 drivers/gpu/drm/radeon/atombios_encoders.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 2092 drivers/gpu/drm/radeon/atombios_encoders.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 2098 drivers/gpu/drm/radeon/atombios_encoders.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 2275 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_display_mode *mode, mode 2630 drivers/gpu/drm/radeon/atombios_encoders.c struct drm_display_mode *mode, mode 2642 drivers/gpu/drm/radeon/atombios_encoders.c radeon_atom_ext_dpms(struct drm_encoder *encoder, int mode) mode 935 drivers/gpu/drm/radeon/ci_dpm.c static void ci_fan_ctrl_set_static_mode(struct radeon_device *rdev, u32 mode) mode 953 drivers/gpu/drm/radeon/ci_dpm.c tmp |= FDO_PWM_MODE(mode); mode 1133 drivers/gpu/drm/radeon/ci_dpm.c void ci_fan_ctrl_set_mode(struct radeon_device *rdev, u32 mode) mode 1135 drivers/gpu/drm/radeon/ci_dpm.c if (mode) { mode 1139 drivers/gpu/drm/radeon/ci_dpm.c ci_fan_ctrl_set_static_mode(rdev, mode); mode 8823 drivers/gpu/drm/radeon/cik.c struct drm_display_mode *mode) mode 8835 drivers/gpu/drm/radeon/cik.c if (radeon_crtc->base.enabled && mode) { mode 8836 drivers/gpu/drm/radeon/cik.c if (mode->crtc_hdisplay < 1920) { mode 8839 drivers/gpu/drm/radeon/cik.c } else if (mode->crtc_hdisplay < 2560) { mode 8842 drivers/gpu/drm/radeon/cik.c } else if (mode->crtc_hdisplay < 4096) { mode 8867 drivers/gpu/drm/radeon/cik.c if (radeon_crtc->base.enabled && mode) { mode 9254 drivers/gpu/drm/radeon/cik.c struct drm_display_mode *mode = &radeon_crtc->base.mode; mode 9261 drivers/gpu/drm/radeon/cik.c if (radeon_crtc->base.enabled && num_heads && mode) { mode 9262 drivers/gpu/drm/radeon/cik.c active_time = (u32) div_u64((u64)mode->crtc_hdisplay * 1000000, mode 9263 drivers/gpu/drm/radeon/cik.c (u32)mode->clock); mode 9264 drivers/gpu/drm/radeon/cik.c line_time = (u32) div_u64((u64)mode->crtc_htotal * 1000000, mode 9265 drivers/gpu/drm/radeon/cik.c (u32)mode->clock); mode 9280 drivers/gpu/drm/radeon/cik.c wm_high.disp_clk = mode->clock; mode 9281 drivers/gpu/drm/radeon/cik.c wm_high.src_width = mode->crtc_hdisplay; mode 9285 drivers/gpu/drm/radeon/cik.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 9320 drivers/gpu/drm/radeon/cik.c wm_low.disp_clk = mode->clock; mode 9321 drivers/gpu/drm/radeon/cik.c wm_low.src_width = mode->crtc_hdisplay; mode 9325 drivers/gpu/drm/radeon/cik.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 9349 drivers/gpu/drm/radeon/cik.c radeon_crtc->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); mode 9388 drivers/gpu/drm/radeon/cik.c struct drm_display_mode *mode = NULL; mode 9402 drivers/gpu/drm/radeon/cik.c mode = &rdev->mode_info.crtcs[i]->base.mode; mode 9403 drivers/gpu/drm/radeon/cik.c lb_size = dce8_line_buffer_adjust(rdev, rdev->mode_info.crtcs[i], mode); mode 233 drivers/gpu/drm/radeon/cik_reg.h uint32_t mode:2; mode 125 drivers/gpu/drm/radeon/dce6_afmt.c struct drm_display_mode *mode) mode 135 drivers/gpu/drm/radeon/dce6_afmt.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) { mode 1825 drivers/gpu/drm/radeon/evergreen.c struct drm_display_mode *mode, mode 1851 drivers/gpu/drm/radeon/evergreen.c if (radeon_crtc->base.enabled && mode) { mode 1880 drivers/gpu/drm/radeon/evergreen.c if (radeon_crtc->base.enabled && mode) { mode 2156 drivers/gpu/drm/radeon/evergreen.c struct drm_display_mode *mode = &radeon_crtc->base.mode; mode 2169 drivers/gpu/drm/radeon/evergreen.c if (radeon_crtc->base.enabled && num_heads && mode) { mode 2170 drivers/gpu/drm/radeon/evergreen.c active_time = (u32) div_u64((u64)mode->crtc_hdisplay * 1000000, mode 2171 drivers/gpu/drm/radeon/evergreen.c (u32)mode->clock); mode 2172 drivers/gpu/drm/radeon/evergreen.c line_time = (u32) div_u64((u64)mode->crtc_htotal * 1000000, mode 2173 drivers/gpu/drm/radeon/evergreen.c (u32)mode->clock); mode 2190 drivers/gpu/drm/radeon/evergreen.c wm_high.disp_clk = mode->clock; mode 2191 drivers/gpu/drm/radeon/evergreen.c wm_high.src_width = mode->crtc_hdisplay; mode 2195 drivers/gpu/drm/radeon/evergreen.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 2217 drivers/gpu/drm/radeon/evergreen.c wm_low.disp_clk = mode->clock; mode 2218 drivers/gpu/drm/radeon/evergreen.c wm_low.src_width = mode->crtc_hdisplay; mode 2222 drivers/gpu/drm/radeon/evergreen.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 2256 drivers/gpu/drm/radeon/evergreen.c b.full = dfixed_const(mode->clock); mode 2268 drivers/gpu/drm/radeon/evergreen.c b.full = dfixed_const(mode->clock); mode 2280 drivers/gpu/drm/radeon/evergreen.c radeon_crtc->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); mode 2338 drivers/gpu/drm/radeon/evergreen.c mode0 = &rdev->mode_info.crtcs[i]->base.mode; mode 2339 drivers/gpu/drm/radeon/evergreen.c mode1 = &rdev->mode_info.crtcs[i+1]->base.mode; mode 175 drivers/gpu/drm/radeon/evergreen_cs.c unsigned mode; mode 304 drivers/gpu/drm/radeon/evergreen_cs.c switch (surf->mode) { mode 315 drivers/gpu/drm/radeon/evergreen_cs.c __func__, __LINE__, prefix, surf->mode); mode 325 drivers/gpu/drm/radeon/evergreen_cs.c switch (surf->mode) { mode 334 drivers/gpu/drm/radeon/evergreen_cs.c __func__, __LINE__, prefix, surf->mode); mode 407 drivers/gpu/drm/radeon/evergreen_cs.c surf.mode = G_028C70_ARRAY_MODE(track->cb_color_info[id]); mode 450 drivers/gpu/drm/radeon/evergreen_cs.c if (!surf.mode) { mode 486 drivers/gpu/drm/radeon/evergreen_cs.c surf.mode, surf.bpe, surf.nsamples, mode 574 drivers/gpu/drm/radeon/evergreen_cs.c surf.mode = G_028040_ARRAY_MODE(track->db_z_info); mode 671 drivers/gpu/drm/radeon/evergreen_cs.c surf.mode = G_028040_ARRAY_MODE(track->db_z_info); mode 782 drivers/gpu/drm/radeon/evergreen_cs.c surf.mode = G_030004_ARRAY_MODE(texdw[1]); mode 882 drivers/gpu/drm/radeon/evergreen_cs.c switch (surf.mode) { mode 885 drivers/gpu/drm/radeon/evergreen_cs.c surf.mode = ARRAY_1D_TILED_THIN1; mode 896 drivers/gpu/drm/radeon/evergreen_cs.c __func__, __LINE__, surf.mode); mode 922 drivers/gpu/drm/radeon/evergreen_cs.c surf.mode, surf.bpe, surf.nsamples, mode 98 drivers/gpu/drm/radeon/evergreen_hdmi.c struct drm_connector *connector, struct drm_display_mode *mode) mode 103 drivers/gpu/drm/radeon/evergreen_hdmi.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) { mode 3231 drivers/gpu/drm/radeon/r100.c mode1 = &rdev->mode_info.crtcs[0]->base.mode; mode 3239 drivers/gpu/drm/radeon/r100.c mode2 = &rdev->mode_info.crtcs[1]->base.mode; mode 1907 drivers/gpu/drm/radeon/radeon.h void (*hdmi_setmode)(struct drm_encoder *encoder, struct drm_display_mode *mode); mode 1984 drivers/gpu/drm/radeon/radeon.h void (*fan_ctrl_set_mode)(struct radeon_device *rdev, u32 mode); mode 135 drivers/gpu/drm/radeon/radeon_agp.c struct drm_agp_mode mode; mode 164 drivers/gpu/drm/radeon/radeon_agp.c mode.mode = info.mode; mode 169 drivers/gpu/drm/radeon/radeon_agp.c agp_status = (RREG32(RADEON_AGP_STATUS) | RADEON_AGPv3_MODE) & mode.mode; mode 171 drivers/gpu/drm/radeon/radeon_agp.c agp_status = mode.mode; mode 214 drivers/gpu/drm/radeon/radeon_agp.c mode.mode &= ~RADEON_AGP_MODE_MASK; mode 218 drivers/gpu/drm/radeon/radeon_agp.c mode.mode |= RADEON_AGPv3_8X_MODE; mode 222 drivers/gpu/drm/radeon/radeon_agp.c mode.mode |= RADEON_AGPv3_4X_MODE; mode 228 drivers/gpu/drm/radeon/radeon_agp.c mode.mode |= RADEON_AGP_4X_MODE; mode 231 drivers/gpu/drm/radeon/radeon_agp.c mode.mode |= RADEON_AGP_2X_MODE; mode 235 drivers/gpu/drm/radeon/radeon_agp.c mode.mode |= RADEON_AGP_1X_MODE; mode 240 drivers/gpu/drm/radeon/radeon_agp.c mode.mode &= ~RADEON_AGP_FW_MODE; /* disable fw */ mode 241 drivers/gpu/drm/radeon/radeon_agp.c ret = drm_agp_enable(rdev->ddev, mode); mode 243 drivers/gpu/drm/radeon/radeon_agp.c DRM_ERROR("Unable to enable AGP (mode = 0x%lx)\n", mode.mode); mode 773 drivers/gpu/drm/radeon/radeon_asic.h void si_fan_ctrl_set_mode(struct radeon_device *rdev, u32 mode); mode 902 drivers/gpu/drm/radeon/radeon_asic.h void ci_fan_ctrl_set_mode(struct radeon_device *rdev, u32 mode); mode 1802 drivers/gpu/drm/radeon/radeon_atombios.c struct drm_display_mode *mode) mode 1822 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_htotal = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_Total); mode 1823 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_hdisplay = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_Disp); mode 1824 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_hsync_start = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_SyncStart); mode 1825 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_hsync_end = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_H_SyncStart) + mode 1828 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_vtotal = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_Total); mode 1829 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_vdisplay = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_Disp); mode 1830 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_vsync_start = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_SyncStart); mode 1831 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_vsync_end = le16_to_cpu(tv_info->aModeTimings[index].usCRTC_V_SyncStart) + mode 1834 drivers/gpu/drm/radeon/radeon_atombios.c mode->flags = 0; mode 1837 drivers/gpu/drm/radeon/radeon_atombios.c mode->flags |= DRM_MODE_FLAG_NVSYNC; mode 1839 drivers/gpu/drm/radeon/radeon_atombios.c mode->flags |= DRM_MODE_FLAG_NHSYNC; mode 1841 drivers/gpu/drm/radeon/radeon_atombios.c mode->flags |= DRM_MODE_FLAG_CSYNC; mode 1843 drivers/gpu/drm/radeon/radeon_atombios.c mode->flags |= DRM_MODE_FLAG_INTERLACE; mode 1845 drivers/gpu/drm/radeon/radeon_atombios.c mode->flags |= DRM_MODE_FLAG_DBLSCAN; mode 1847 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_clock = mode->clock = mode 1852 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_htotal -= 1; mode 1853 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_vtotal -= 1; mode 1862 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_htotal = le16_to_cpu(dtd_timings->usHActive) + mode 1864 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_hdisplay = le16_to_cpu(dtd_timings->usHActive); mode 1865 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_hsync_start = le16_to_cpu(dtd_timings->usHActive) + mode 1867 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_hsync_end = mode->crtc_hsync_start + mode 1870 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_vtotal = le16_to_cpu(dtd_timings->usVActive) + mode 1872 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_vdisplay = le16_to_cpu(dtd_timings->usVActive); mode 1873 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_vsync_start = le16_to_cpu(dtd_timings->usVActive) + mode 1875 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_vsync_end = mode->crtc_vsync_start + mode 1878 drivers/gpu/drm/radeon/radeon_atombios.c mode->flags = 0; mode 1881 drivers/gpu/drm/radeon/radeon_atombios.c mode->flags |= DRM_MODE_FLAG_NVSYNC; mode 1883 drivers/gpu/drm/radeon/radeon_atombios.c mode->flags |= DRM_MODE_FLAG_NHSYNC; mode 1885 drivers/gpu/drm/radeon/radeon_atombios.c mode->flags |= DRM_MODE_FLAG_CSYNC; mode 1887 drivers/gpu/drm/radeon/radeon_atombios.c mode->flags |= DRM_MODE_FLAG_INTERLACE; mode 1889 drivers/gpu/drm/radeon/radeon_atombios.c mode->flags |= DRM_MODE_FLAG_DBLSCAN; mode 1891 drivers/gpu/drm/radeon/radeon_atombios.c mode->crtc_clock = mode->clock = mode 60 drivers/gpu/drm/radeon/radeon_audio.c struct drm_connector *connector, struct drm_display_mode *mode); mode 62 drivers/gpu/drm/radeon/radeon_audio.c struct drm_connector *connector, struct drm_display_mode *mode); mode 99 drivers/gpu/drm/radeon/radeon_audio.c struct drm_display_mode *mode); mode 101 drivers/gpu/drm/radeon/radeon_audio.c struct drm_display_mode *mode); mode 407 drivers/gpu/drm/radeon/radeon_audio.c struct drm_display_mode *mode) mode 416 drivers/gpu/drm/radeon/radeon_audio.c radeon_encoder->audio->write_latency_fields(encoder, connector, mode); mode 506 drivers/gpu/drm/radeon/radeon_audio.c struct drm_display_mode *mode) mode 519 drivers/gpu/drm/radeon/radeon_audio.c err = drm_hdmi_avi_infoframe_from_display_mode(&frame, connector, mode); mode 526 drivers/gpu/drm/radeon/radeon_audio.c drm_hdmi_avi_infoframe_quant_range(&frame, connector, mode, mode 693 drivers/gpu/drm/radeon/radeon_audio.c struct drm_display_mode *mode) mode 710 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_write_latency_fields(encoder, mode); mode 711 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_set_dto(encoder, mode->clock); mode 714 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_update_acr(encoder, mode->clock); mode 718 drivers/gpu/drm/radeon/radeon_audio.c if (radeon_audio_set_avi_packet(encoder, mode) < 0) mode 725 drivers/gpu/drm/radeon/radeon_audio.c if (radeon_audio_set_avi_packet(encoder, mode) < 0) mode 731 drivers/gpu/drm/radeon/radeon_audio.c struct drm_display_mode *mode) mode 748 drivers/gpu/drm/radeon/radeon_audio.c radeon_audio_write_latency_fields(encoder, mode); mode 753 drivers/gpu/drm/radeon/radeon_audio.c if (radeon_audio_set_avi_packet(encoder, mode) < 0) mode 759 drivers/gpu/drm/radeon/radeon_audio.c struct drm_display_mode *mode) mode 764 drivers/gpu/drm/radeon/radeon_audio.c radeon_encoder->audio->mode_set(encoder, mode); mode 767 drivers/gpu/drm/radeon/radeon_audio.c void radeon_audio_dpms(struct drm_encoder *encoder, int mode) mode 772 drivers/gpu/drm/radeon/radeon_audio.c radeon_encoder->audio->dpms(encoder, mode == DRM_MODE_DPMS_ON); mode 49 drivers/gpu/drm/radeon/radeon_audio.h struct drm_connector *connector, struct drm_display_mode *mode); mode 65 drivers/gpu/drm/radeon/radeon_audio.h struct drm_display_mode *mode); mode 66 drivers/gpu/drm/radeon/radeon_audio.h void (*dpms)(struct drm_encoder *encoder, bool mode); mode 80 drivers/gpu/drm/radeon/radeon_audio.h struct drm_display_mode *mode); mode 81 drivers/gpu/drm/radeon/radeon_audio.h void radeon_audio_dpms(struct drm_encoder *encoder, int mode); mode 115 drivers/gpu/drm/radeon/radeon_connectors.c drm_crtc_helper_set_mode(crtc, &crtc->mode, mode 473 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_display_mode *mode = NULL; mode 479 drivers/gpu/drm/radeon/radeon_connectors.c mode = drm_mode_duplicate(dev, native_mode); mode 480 drivers/gpu/drm/radeon/radeon_connectors.c mode->type = DRM_MODE_TYPE_PREFERRED | DRM_MODE_TYPE_DRIVER; mode 481 drivers/gpu/drm/radeon/radeon_connectors.c drm_mode_set_name(mode); mode 483 drivers/gpu/drm/radeon/radeon_connectors.c DRM_DEBUG_KMS("Adding native panel mode %s\n", mode->name); mode 493 drivers/gpu/drm/radeon/radeon_connectors.c mode = drm_cvt_mode(dev, native_mode->hdisplay, native_mode->vdisplay, 60, true, false, false); mode 494 drivers/gpu/drm/radeon/radeon_connectors.c mode->type = DRM_MODE_TYPE_PREFERRED | DRM_MODE_TYPE_DRIVER; mode 495 drivers/gpu/drm/radeon/radeon_connectors.c DRM_DEBUG_KMS("Adding cvt approximation of native panel mode %s\n", mode->name); mode 497 drivers/gpu/drm/radeon/radeon_connectors.c return mode; mode 504 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_display_mode *mode = NULL; mode 546 drivers/gpu/drm/radeon/radeon_connectors.c mode = drm_cvt_mode(dev, common_modes[i].w, common_modes[i].h, 60, false, false, false); mode 547 drivers/gpu/drm/radeon/radeon_connectors.c drm_mode_probed_add(connector, mode); mode 777 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_display_mode *t, *mode; mode 780 drivers/gpu/drm/radeon/radeon_connectors.c list_for_each_entry_safe(mode, t, &connector->probed_modes, head) { mode 781 drivers/gpu/drm/radeon/radeon_connectors.c if (mode->type & DRM_MODE_TYPE_PREFERRED) { mode 782 drivers/gpu/drm/radeon/radeon_connectors.c if (mode->hdisplay != native_mode->hdisplay || mode 783 drivers/gpu/drm/radeon/radeon_connectors.c mode->vdisplay != native_mode->vdisplay) mode 784 drivers/gpu/drm/radeon/radeon_connectors.c memcpy(native_mode, mode, sizeof(*mode)); mode 790 drivers/gpu/drm/radeon/radeon_connectors.c list_for_each_entry_safe(mode, t, &connector->probed_modes, head) { mode 791 drivers/gpu/drm/radeon/radeon_connectors.c if (mode->hdisplay == native_mode->hdisplay && mode 792 drivers/gpu/drm/radeon/radeon_connectors.c mode->vdisplay == native_mode->vdisplay) { mode 793 drivers/gpu/drm/radeon/radeon_connectors.c *native_mode = *mode; mode 811 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_display_mode *mode; mode 830 drivers/gpu/drm/radeon/radeon_connectors.c mode = radeon_fp_native_mode(encoder); mode 831 drivers/gpu/drm/radeon/radeon_connectors.c if (mode) { mode 833 drivers/gpu/drm/radeon/radeon_connectors.c drm_mode_probed_add(connector, mode); mode 835 drivers/gpu/drm/radeon/radeon_connectors.c connector->display_info.width_mm = mode->width_mm; mode 836 drivers/gpu/drm/radeon/radeon_connectors.c connector->display_info.height_mm = mode->height_mm; mode 845 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_display_mode *mode) mode 849 drivers/gpu/drm/radeon/radeon_connectors.c if ((mode->hdisplay < 320) || (mode->vdisplay < 240)) mode 859 drivers/gpu/drm/radeon/radeon_connectors.c if ((mode->hdisplay > native_mode->hdisplay) || mode 860 drivers/gpu/drm/radeon/radeon_connectors.c (mode->vdisplay > native_mode->vdisplay)) mode 865 drivers/gpu/drm/radeon/radeon_connectors.c if ((mode->hdisplay != native_mode->hdisplay) || mode 866 drivers/gpu/drm/radeon/radeon_connectors.c (mode->vdisplay != native_mode->vdisplay)) mode 1005 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_display_mode *mode) mode 1012 drivers/gpu/drm/radeon/radeon_connectors.c if ((mode->clock / 10) > rdev->clock.max_pixel_clock) mode 1149 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_display_mode *mode) mode 1151 drivers/gpu/drm/radeon/radeon_connectors.c if ((mode->hdisplay > 1024) || (mode->vdisplay > 768)) mode 1479 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_display_mode *mode) mode 1490 drivers/gpu/drm/radeon/radeon_connectors.c (mode->clock > 135000)) mode 1493 drivers/gpu/drm/radeon/radeon_connectors.c if (radeon_connector->use_digital && (mode->clock > 165000)) { mode 1500 drivers/gpu/drm/radeon/radeon_connectors.c if (mode->clock > 340000) mode 1510 drivers/gpu/drm/radeon/radeon_connectors.c if ((mode->clock / 10) > rdev->clock.max_pixel_clock) mode 1541 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_display_mode *mode; mode 1576 drivers/gpu/drm/radeon/radeon_connectors.c mode = radeon_fp_native_mode(encoder); mode 1577 drivers/gpu/drm/radeon/radeon_connectors.c if (mode) { mode 1579 drivers/gpu/drm/radeon/radeon_connectors.c drm_mode_probed_add(connector, mode); mode 1581 drivers/gpu/drm/radeon/radeon_connectors.c connector->display_info.width_mm = mode->width_mm; mode 1582 drivers/gpu/drm/radeon/radeon_connectors.c connector->display_info.height_mm = mode->height_mm; mode 1767 drivers/gpu/drm/radeon/radeon_connectors.c struct drm_display_mode *mode) mode 1780 drivers/gpu/drm/radeon/radeon_connectors.c if ((mode->hdisplay < 320) || (mode->vdisplay < 240)) mode 1790 drivers/gpu/drm/radeon/radeon_connectors.c if ((mode->hdisplay > native_mode->hdisplay) || mode 1791 drivers/gpu/drm/radeon/radeon_connectors.c (mode->vdisplay > native_mode->vdisplay)) mode 1796 drivers/gpu/drm/radeon/radeon_connectors.c if ((mode->hdisplay != native_mode->hdisplay) || mode 1797 drivers/gpu/drm/radeon/radeon_connectors.c (mode->vdisplay != native_mode->vdisplay)) mode 1804 drivers/gpu/drm/radeon/radeon_connectors.c return radeon_dp_mode_valid_helper(connector, mode); mode 1808 drivers/gpu/drm/radeon/radeon_connectors.c if (mode->clock > 340000) mode 1811 drivers/gpu/drm/radeon/radeon_connectors.c if (mode->clock > 165000) mode 193 drivers/gpu/drm/radeon/radeon_cursor.c frame_end = crtc->x + crtc->mode.crtc_hdisplay; mode 210 drivers/gpu/drm/radeon/radeon_cursor.c x >= (crtc->x + crtc->mode.hdisplay) || mode 211 drivers/gpu/drm/radeon/radeon_cursor.c y >= (crtc->y + crtc->mode.vdisplay)) mode 231 drivers/gpu/drm/radeon/radeon_cursor.c if (crtc->mode.flags & DRM_MODE_FLAG_DBLSCAN) mode 1670 drivers/gpu/drm/radeon/radeon_display.c static bool is_hdtv_mode(const struct drm_display_mode *mode) mode 1673 drivers/gpu/drm/radeon/radeon_display.c if ((mode->vdisplay == 480 && mode->hdisplay == 720) || /* 480p */ mode 1674 drivers/gpu/drm/radeon/radeon_display.c (mode->vdisplay == 576) || /* 576p */ mode 1675 drivers/gpu/drm/radeon/radeon_display.c (mode->vdisplay == 720) || /* 720p */ mode 1676 drivers/gpu/drm/radeon/radeon_display.c (mode->vdisplay == 1080)) /* 1080p */ mode 1683 drivers/gpu/drm/radeon/radeon_display.c const struct drm_display_mode *mode, mode 1711 drivers/gpu/drm/radeon/radeon_display.c else if (mode->hdisplay < radeon_encoder->native_mode.hdisplay || mode 1712 drivers/gpu/drm/radeon/radeon_display.c mode->vdisplay < radeon_encoder->native_mode.vdisplay) mode 1720 drivers/gpu/drm/radeon/radeon_display.c src_v = crtc->mode.vdisplay; mode 1722 drivers/gpu/drm/radeon/radeon_display.c src_h = crtc->mode.hdisplay; mode 1727 drivers/gpu/drm/radeon/radeon_display.c (!(mode->flags & DRM_MODE_FLAG_INTERLACE)) && mode 1731 drivers/gpu/drm/radeon/radeon_display.c is_hdtv_mode(mode)))) { mode 1735 drivers/gpu/drm/radeon/radeon_display.c radeon_crtc->h_border = (mode->hdisplay >> 5) + 16; mode 1739 drivers/gpu/drm/radeon/radeon_display.c radeon_crtc->v_border = (mode->vdisplay >> 5) + 16; mode 1741 drivers/gpu/drm/radeon/radeon_display.c src_v = crtc->mode.vdisplay; mode 1742 drivers/gpu/drm/radeon/radeon_display.c dst_v = crtc->mode.vdisplay - (radeon_crtc->v_border * 2); mode 1743 drivers/gpu/drm/radeon/radeon_display.c src_h = crtc->mode.hdisplay; mode 1744 drivers/gpu/drm/radeon/radeon_display.c dst_h = crtc->mode.hdisplay - (radeon_crtc->h_border * 2); mode 1815 drivers/gpu/drm/radeon/radeon_display.c const struct drm_display_mode *mode) mode 1930 drivers/gpu/drm/radeon/radeon_display.c vbl_start = mode->crtc_vdisplay; mode 1976 drivers/gpu/drm/radeon/radeon_display.c vtotal = mode->crtc_vtotal; mode 216 drivers/gpu/drm/radeon/radeon_dp_mst.c struct drm_display_mode *mode) mode 219 drivers/gpu/drm/radeon/radeon_dp_mst.c if (mode->clock < 10000) mode 222 drivers/gpu/drm/radeon/radeon_dp_mst.c if (mode->flags & DRM_MODE_FLAG_DBLCLK) mode 351 drivers/gpu/drm/radeon/radeon_dp_mst.c void radeon_dp_mst_prepare_pll(struct drm_crtc *crtc, struct drm_display_mode *mode) mode 363 drivers/gpu/drm/radeon/radeon_dp_mst.c radeon_connector->pixelclock_for_modeset = mode->clock; mode 379 drivers/gpu/drm/radeon/radeon_dp_mst.c radeon_mst_encoder_dpms(struct drm_encoder *encoder, int mode) mode 411 drivers/gpu/drm/radeon/radeon_dp_mst.c switch (mode) { mode 507 drivers/gpu/drm/radeon/radeon_dp_mst.c const struct drm_display_mode *mode, mode 570 drivers/gpu/drm/radeon/radeon_dp_mst.c struct drm_display_mode *mode, mode 140 drivers/gpu/drm/radeon/radeon_drv.c const struct drm_display_mode *mode); mode 612 drivers/gpu/drm/radeon/radeon_drv.c const struct drm_display_mode *mode) mode 615 drivers/gpu/drm/radeon/radeon_drv.c stime, etime, mode); mode 167 drivers/gpu/drm/radeon/radeon_fence.c static int radeon_fence_check_signaled(wait_queue_entry_t *wait, unsigned mode, int flags, void *key) mode 38 drivers/gpu/drm/radeon/radeon_legacy_crtc.c struct drm_display_mode *mode) mode 50 drivers/gpu/drm/radeon/radeon_legacy_crtc.c struct drm_display_mode *mode) mode 55 drivers/gpu/drm/radeon/radeon_legacy_crtc.c int xres = mode->hdisplay; mode 56 drivers/gpu/drm/radeon/radeon_legacy_crtc.c int yres = mode->vdisplay; mode 84 drivers/gpu/drm/radeon/radeon_legacy_crtc.c fp_crtc_h_total_disp = ((((mode->crtc_htotal / 8) - 1) & 0x3ff) mode 85 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | ((((mode->crtc_hdisplay / 8) - 1) & 0x1ff) << 16)); mode 87 drivers/gpu/drm/radeon/radeon_legacy_crtc.c hsync_wid = (mode->crtc_hsync_end - mode->crtc_hsync_start) / 8; mode 90 drivers/gpu/drm/radeon/radeon_legacy_crtc.c hsync_start = mode->crtc_hsync_start - 8; mode 94 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | ((mode->flags & DRM_MODE_FLAG_NHSYNC) mode 98 drivers/gpu/drm/radeon/radeon_legacy_crtc.c fp_crtc_v_total_disp = (((mode->crtc_vtotal - 1) & 0xffff) mode 99 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | ((mode->crtc_vdisplay - 1) << 16)); mode 101 drivers/gpu/drm/radeon/radeon_legacy_crtc.c vsync_wid = mode->crtc_vsync_end - mode->crtc_vsync_start; mode 105 drivers/gpu/drm/radeon/radeon_legacy_crtc.c fp_v_sync_strt_wid = (((mode->crtc_vsync_start - 1) & 0xfff) mode 107 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | ((mode->flags & DRM_MODE_FLAG_NVSYNC) mode 163 drivers/gpu/drm/radeon/radeon_legacy_crtc.c blank_width = (mode->crtc_hblank_end - mode->crtc_hblank_start) / 8; mode 168 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | ((((mode->crtc_hdisplay / 8) - 1) & 0x1ff) << 16)); mode 170 drivers/gpu/drm/radeon/radeon_legacy_crtc.c hsync_wid = (mode->crtc_hsync_end - mode->crtc_hsync_start) / 8; mode 174 drivers/gpu/drm/radeon/radeon_legacy_crtc.c fp_h_sync_strt_wid = ((((mode->crtc_hsync_start - mode->crtc_hblank_start) / 8) & 0x1fff) mode 176 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | ((mode->flags & DRM_MODE_FLAG_NHSYNC) mode 180 drivers/gpu/drm/radeon/radeon_legacy_crtc.c fp_crtc_v_total_disp = (((mode->crtc_vblank_end - mode->crtc_vblank_start) & 0xffff) mode 181 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | ((mode->crtc_vdisplay - 1) << 16)); mode 183 drivers/gpu/drm/radeon/radeon_legacy_crtc.c vsync_wid = mode->crtc_vsync_end - mode->crtc_vsync_start; mode 187 drivers/gpu/drm/radeon/radeon_legacy_crtc.c fp_v_sync_strt_wid = ((((mode->crtc_vsync_start - mode->crtc_vblank_start) & 0xfff) mode 189 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | ((mode->flags & DRM_MODE_FLAG_NVSYNC) mode 297 drivers/gpu/drm/radeon/radeon_legacy_crtc.c static void radeon_crtc_dpms(struct drm_crtc *crtc, int mode) mode 325 drivers/gpu/drm/radeon/radeon_legacy_crtc.c switch (mode) { mode 573 drivers/gpu/drm/radeon/radeon_legacy_crtc.c static bool radeon_set_crtc_timing(struct drm_crtc *crtc, struct drm_display_mode *mode) mode 622 drivers/gpu/drm/radeon/radeon_legacy_crtc.c crtc_h_total_disp = ((((mode->crtc_htotal / 8) - 1) & 0x3ff) mode 623 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | ((((mode->crtc_hdisplay / 8) - 1) & 0x1ff) << 16)); mode 625 drivers/gpu/drm/radeon/radeon_legacy_crtc.c hsync_wid = (mode->crtc_hsync_end - mode->crtc_hsync_start) / 8; mode 628 drivers/gpu/drm/radeon/radeon_legacy_crtc.c hsync_start = mode->crtc_hsync_start - 8; mode 632 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | ((mode->flags & DRM_MODE_FLAG_NHSYNC) mode 637 drivers/gpu/drm/radeon/radeon_legacy_crtc.c crtc_v_total_disp = (((mode->crtc_vtotal - 1) & 0xffff) mode 638 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | ((mode->crtc_vdisplay - 1) << 16)); mode 640 drivers/gpu/drm/radeon/radeon_legacy_crtc.c vsync_wid = mode->crtc_vsync_end - mode->crtc_vsync_start; mode 644 drivers/gpu/drm/radeon/radeon_legacy_crtc.c crtc_v_sync_strt_wid = (((mode->crtc_vsync_start - 1) & 0xfff) mode 646 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | ((mode->flags & DRM_MODE_FLAG_NVSYNC) mode 661 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | ((mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 664 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | ((mode->flags & DRM_MODE_FLAG_CSYNC) mode 667 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | ((mode->flags & DRM_MODE_FLAG_INTERLACE) mode 692 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | ((mode->flags & DRM_MODE_FLAG_DBLSCAN) mode 695 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | ((mode->flags & DRM_MODE_FLAG_CSYNC) mode 698 drivers/gpu/drm/radeon/radeon_legacy_crtc.c | ((mode->flags & DRM_MODE_FLAG_INTERLACE) mode 733 drivers/gpu/drm/radeon/radeon_legacy_crtc.c static void radeon_set_pll(struct drm_crtc *crtc, struct drm_display_mode *mode) mode 780 drivers/gpu/drm/radeon/radeon_legacy_crtc.c if (mode->clock > 200000) /* range limits??? */ mode 818 drivers/gpu/drm/radeon/radeon_legacy_crtc.c radeon_compute_pll_legacy(pll, mode->clock, mode 845 drivers/gpu/drm/radeon/radeon_legacy_crtc.c htotal_cntl = mode->htotal & 0x7; mode 1027 drivers/gpu/drm/radeon/radeon_legacy_crtc.c const struct drm_display_mode *mode, mode 1030 drivers/gpu/drm/radeon/radeon_legacy_crtc.c if (!radeon_crtc_scaling_mode_fixup(crtc, mode, adjusted_mode)) mode 1036 drivers/gpu/drm/radeon/radeon_legacy_crtc.c struct drm_display_mode *mode, mode 53 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_lvds_update(struct drm_encoder *encoder, int mode) mode 90 drivers/gpu/drm/radeon/radeon_legacy_encoders.c switch (mode) { mode 136 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atombios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); mode 138 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); mode 142 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_lvds_dpms(struct drm_encoder *encoder, int mode) mode 151 drivers/gpu/drm/radeon/radeon_legacy_encoders.c lvds->dpms_mode = mode; mode 154 drivers/gpu/drm/radeon/radeon_legacy_encoders.c lvds->dpms_mode = mode; mode 158 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_legacy_lvds_update(encoder, mode); mode 184 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_display_mode *mode, mode 254 drivers/gpu/drm/radeon/radeon_legacy_encoders.c const struct drm_display_mode *mode, mode 519 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_primary_dac_dpms(struct drm_encoder *encoder, int mode) mode 529 drivers/gpu/drm/radeon/radeon_legacy_encoders.c switch (mode) { mode 555 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atombios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); mode 557 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); mode 585 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_display_mode *mode, mode 731 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_tmds_int_dpms(struct drm_encoder *encoder, int mode) mode 738 drivers/gpu/drm/radeon/radeon_legacy_encoders.c switch (mode) { mode 752 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atombios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); mode 754 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); mode 782 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_display_mode *mode, mode 808 drivers/gpu/drm/radeon/radeon_legacy_encoders.c if ((uint32_t)(mode->clock / 10) < tmds->tmds_pll[i].freq) { mode 895 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_tmds_ext_dpms(struct drm_encoder *encoder, int mode) mode 902 drivers/gpu/drm/radeon/radeon_legacy_encoders.c switch (mode) { mode 918 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atombios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); mode 920 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); mode 947 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_display_mode *mode, mode 1038 drivers/gpu/drm/radeon/radeon_legacy_encoders.c static void radeon_legacy_tv_dac_dpms(struct drm_encoder *encoder, int mode) mode 1060 drivers/gpu/drm/radeon/radeon_legacy_encoders.c switch (mode) { mode 1123 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_atombios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); mode 1125 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_combios_encoder_dpms_scratch_regs(encoder, (mode == DRM_MODE_DPMS_ON) ? true : false); mode 1153 drivers/gpu/drm/radeon/radeon_legacy_encoders.c struct drm_display_mode *mode, mode 1297 drivers/gpu/drm/radeon/radeon_legacy_encoders.c radeon_legacy_tv_mode_set(encoder, mode, adjusted_mode); mode 525 drivers/gpu/drm/radeon/radeon_legacy_tv.c struct drm_display_mode *mode, mode 749 drivers/gpu/drm/radeon/radeon_mode.h struct drm_display_mode *mode); mode 751 drivers/gpu/drm/radeon/radeon_mode.h const struct drm_display_mode *mode); mode 853 drivers/gpu/drm/radeon/radeon_mode.h struct drm_display_mode *mode, mode 857 drivers/gpu/drm/radeon/radeon_mode.h extern void atombios_crtc_dpms(struct drm_crtc *crtc, int mode); mode 882 drivers/gpu/drm/radeon/radeon_mode.h const struct drm_display_mode *mode); mode 950 drivers/gpu/drm/radeon/radeon_mode.h const struct drm_display_mode *mode, mode 967 drivers/gpu/drm/radeon/radeon_mode.h struct drm_display_mode *mode, mode 996 drivers/gpu/drm/radeon/radeon_mode.h void radeon_dp_mst_prepare_pll(struct drm_crtc *crtc, struct drm_display_mode *mode); mode 732 drivers/gpu/drm/radeon/radeon_pm.c umode_t effective_mode = attr->mode; mode 906 drivers/gpu/drm/radeon/rs600.c mode0 = &rdev->mode_info.crtcs[0]->base.mode; mode 908 drivers/gpu/drm/radeon/rs600.c mode1 = &rdev->mode_info.crtcs[1]->base.mode; mode 277 drivers/gpu/drm/radeon/rs690.c struct drm_display_mode *mode = &crtc->base.mode; mode 310 drivers/gpu/drm/radeon/rs690.c b.full = dfixed_const(mode->crtc_hdisplay); mode 327 drivers/gpu/drm/radeon/rs690.c a.full = dfixed_const(mode->clock); mode 351 drivers/gpu/drm/radeon/rs690.c a.full = dfixed_const(crtc->base.mode.crtc_htotal); mode 359 drivers/gpu/drm/radeon/rs690.c a.full = dfixed_const(crtc->base.mode.crtc_htotal); mode 360 drivers/gpu/drm/radeon/rs690.c b.full = dfixed_const(crtc->base.mode.crtc_hdisplay); mode 443 drivers/gpu/drm/radeon/rs690.c wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay); mode 450 drivers/gpu/drm/radeon/rs690.c if (dfixed_trunc(estimated_width) > crtc->base.mode.crtc_hdisplay) { mode 600 drivers/gpu/drm/radeon/rs690.c mode0 = &rdev->mode_info.crtcs[0]->base.mode; mode 602 drivers/gpu/drm/radeon/rs690.c mode1 = &rdev->mode_info.crtcs[1]->base.mode; mode 67 drivers/gpu/drm/radeon/rs780_dpm.c if (crtc->mode.htotal && crtc->mode.vtotal) mode 68 drivers/gpu/drm/radeon/rs780_dpm.c pi->refresh_rate = drm_mode_vrefresh(&crtc->mode); mode 960 drivers/gpu/drm/radeon/rv515.c struct drm_display_mode *mode = &crtc->base.mode; mode 990 drivers/gpu/drm/radeon/rv515.c b.full = dfixed_const(mode->crtc_hdisplay); mode 1007 drivers/gpu/drm/radeon/rv515.c a.full = dfixed_const(mode->clock); mode 1031 drivers/gpu/drm/radeon/rv515.c a.full = dfixed_const(crtc->base.mode.crtc_htotal); mode 1039 drivers/gpu/drm/radeon/rv515.c a.full = dfixed_const(crtc->base.mode.crtc_htotal); mode 1040 drivers/gpu/drm/radeon/rv515.c b.full = dfixed_const(crtc->base.mode.crtc_hdisplay); mode 1094 drivers/gpu/drm/radeon/rv515.c wm->priority_mark_max.full = dfixed_const(crtc->base.mode.crtc_hdisplay); mode 1101 drivers/gpu/drm/radeon/rv515.c if (dfixed_trunc(estimated_width) > crtc->base.mode.crtc_hdisplay) { mode 1246 drivers/gpu/drm/radeon/rv515.c mode0 = &rdev->mode_info.crtcs[0]->base.mode; mode 1248 drivers/gpu/drm/radeon/rv515.c mode1 = &rdev->mode_info.crtcs[1]->base.mode; mode 1288 drivers/gpu/drm/radeon/rv515.c mode0 = &rdev->mode_info.crtcs[0]->base.mode; mode 1290 drivers/gpu/drm/radeon/rv515.c mode1 = &rdev->mode_info.crtcs[1]->base.mode; mode 1973 drivers/gpu/drm/radeon/si.c struct drm_display_mode *mode, mode 1991 drivers/gpu/drm/radeon/si.c if (radeon_crtc->base.enabled && mode) { mode 2016 drivers/gpu/drm/radeon/si.c if (radeon_crtc->base.enabled && mode) { mode 2302 drivers/gpu/drm/radeon/si.c struct drm_display_mode *mode = &radeon_crtc->base.mode; mode 2314 drivers/gpu/drm/radeon/si.c if (radeon_crtc->base.enabled && num_heads && mode) { mode 2315 drivers/gpu/drm/radeon/si.c active_time = (u32) div_u64((u64)mode->crtc_hdisplay * 1000000, mode 2316 drivers/gpu/drm/radeon/si.c (u32)mode->clock); mode 2317 drivers/gpu/drm/radeon/si.c line_time = (u32) div_u64((u64)mode->crtc_htotal * 1000000, mode 2318 drivers/gpu/drm/radeon/si.c (u32)mode->clock); mode 2339 drivers/gpu/drm/radeon/si.c wm_high.disp_clk = mode->clock; mode 2340 drivers/gpu/drm/radeon/si.c wm_high.src_width = mode->crtc_hdisplay; mode 2344 drivers/gpu/drm/radeon/si.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 2366 drivers/gpu/drm/radeon/si.c wm_low.disp_clk = mode->clock; mode 2367 drivers/gpu/drm/radeon/si.c wm_low.src_width = mode->crtc_hdisplay; mode 2371 drivers/gpu/drm/radeon/si.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 2407 drivers/gpu/drm/radeon/si.c b.full = dfixed_const(mode->clock); mode 2419 drivers/gpu/drm/radeon/si.c b.full = dfixed_const(mode->clock); mode 2431 drivers/gpu/drm/radeon/si.c radeon_crtc->lb_vblank_lead_lines = DIV_ROUND_UP(lb_size, mode->crtc_hdisplay); mode 2481 drivers/gpu/drm/radeon/si.c mode0 = &rdev->mode_info.crtcs[i]->base.mode; mode 2482 drivers/gpu/drm/radeon/si.c mode1 = &rdev->mode_info.crtcs[i+1]->base.mode; mode 6008 drivers/gpu/drm/radeon/si_dpm.c static void si_fan_ctrl_set_static_mode(struct radeon_device *rdev, u32 mode) mode 6026 drivers/gpu/drm/radeon/si_dpm.c tmp |= FDO_PWM_MODE(mode); mode 6194 drivers/gpu/drm/radeon/si_dpm.c void si_fan_ctrl_set_mode(struct radeon_device *rdev, u32 mode) mode 6196 drivers/gpu/drm/radeon/si_dpm.c if (mode) { mode 6200 drivers/gpu/drm/radeon/si_dpm.c si_fan_ctrl_set_static_mode(rdev, mode); mode 213 drivers/gpu/drm/rcar-du/rcar_du_crtc.c const struct drm_display_mode *mode = &rcrtc->crtc.state->adjusted_mode; mode 215 drivers/gpu/drm/rcar-du/rcar_du_crtc.c unsigned long mode_clock = mode->clock * 1000; mode 293 drivers/gpu/drm/rcar-du/rcar_du_crtc.c dsmr = ((mode->flags & DRM_MODE_FLAG_PVSYNC) ? DSMR_VSL : 0) mode 294 drivers/gpu/drm/rcar-du/rcar_du_crtc.c | ((mode->flags & DRM_MODE_FLAG_PHSYNC) ? DSMR_HSL : 0) mode 295 drivers/gpu/drm/rcar-du/rcar_du_crtc.c | ((mode->flags & DRM_MODE_FLAG_INTERLACE) ? DSMR_ODEV : 0) mode 300 drivers/gpu/drm/rcar-du/rcar_du_crtc.c rcar_du_crtc_write(rcrtc, HDSR, mode->htotal - mode->hsync_start - 19); mode 301 drivers/gpu/drm/rcar-du/rcar_du_crtc.c rcar_du_crtc_write(rcrtc, HDER, mode->htotal - mode->hsync_start + mode 302 drivers/gpu/drm/rcar-du/rcar_du_crtc.c mode->hdisplay - 19); mode 303 drivers/gpu/drm/rcar-du/rcar_du_crtc.c rcar_du_crtc_write(rcrtc, HSWR, mode->hsync_end - mode 304 drivers/gpu/drm/rcar-du/rcar_du_crtc.c mode->hsync_start - 1); mode 305 drivers/gpu/drm/rcar-du/rcar_du_crtc.c rcar_du_crtc_write(rcrtc, HCR, mode->htotal - 1); mode 307 drivers/gpu/drm/rcar-du/rcar_du_crtc.c rcar_du_crtc_write(rcrtc, VDSR, mode->crtc_vtotal - mode 308 drivers/gpu/drm/rcar-du/rcar_du_crtc.c mode->crtc_vsync_end - 2); mode 309 drivers/gpu/drm/rcar-du/rcar_du_crtc.c rcar_du_crtc_write(rcrtc, VDER, mode->crtc_vtotal - mode 310 drivers/gpu/drm/rcar-du/rcar_du_crtc.c mode->crtc_vsync_end + mode 311 drivers/gpu/drm/rcar-du/rcar_du_crtc.c mode->crtc_vdisplay - 2); mode 312 drivers/gpu/drm/rcar-du/rcar_du_crtc.c rcar_du_crtc_write(rcrtc, VSPR, mode->crtc_vtotal - mode 313 drivers/gpu/drm/rcar-du/rcar_du_crtc.c mode->crtc_vsync_end + mode 314 drivers/gpu/drm/rcar-du/rcar_du_crtc.c mode->crtc_vsync_start - 1); mode 315 drivers/gpu/drm/rcar-du/rcar_du_crtc.c rcar_du_crtc_write(rcrtc, VCR, mode->crtc_vtotal - 1); mode 317 drivers/gpu/drm/rcar-du/rcar_du_crtc.c rcar_du_crtc_write(rcrtc, DESR, mode->htotal - mode->hsync_start - 1); mode 318 drivers/gpu/drm/rcar-du/rcar_du_crtc.c rcar_du_crtc_write(rcrtc, DEWR, mode->hdisplay); mode 556 drivers/gpu/drm/rcar-du/rcar_du_crtc.c interlaced = rcrtc->crtc.mode.flags & DRM_MODE_FLAG_INTERLACE; mode 681 drivers/gpu/drm/rcar-du/rcar_du_crtc.c const struct drm_display_mode *mode = mode 685 drivers/gpu/drm/rcar-du/rcar_du_crtc.c mode->clock * 1000); mode 770 drivers/gpu/drm/rcar-du/rcar_du_crtc.c const struct drm_display_mode *mode) mode 774 drivers/gpu/drm/rcar-du/rcar_du_crtc.c bool interlaced = mode->flags & DRM_MODE_FLAG_INTERLACE; mode 784 drivers/gpu/drm/rcar-du/rcar_du_crtc.c if (mode->htotal - mode->hsync_start < 20) mode 787 drivers/gpu/drm/rcar-du/rcar_du_crtc.c vbp = (mode->vtotal - mode->vsync_end) / (interlaced ? 2 : 1); mode 49 drivers/gpu/drm/rcar-du/rcar_du_vsp.c const struct drm_display_mode *mode = &crtc->crtc.state->adjusted_mode; mode 52 drivers/gpu/drm/rcar-du/rcar_du_vsp.c .width = mode->hdisplay, mode 53 drivers/gpu/drm/rcar-du/rcar_du_vsp.c .height = mode->vdisplay, mode 54 drivers/gpu/drm/rcar-du/rcar_du_vsp.c .interlaced = mode->flags & DRM_MODE_FLAG_INTERLACE, mode 64 drivers/gpu/drm/rcar-du/rcar_du_vsp.c .dst.x2 = mode->hdisplay, mode 65 drivers/gpu/drm/rcar-du/rcar_du_vsp.c .dst.y2 = mode->vdisplay, mode 68 drivers/gpu/drm/rcar-du/rcar_du_vsp.c .src.x2 = mode->hdisplay << 16, mode 69 drivers/gpu/drm/rcar-du/rcar_du_vsp.c .src.y2 = mode->vdisplay << 16, mode 146 drivers/gpu/drm/rcar-du/rcar_du_writeback.c const struct drm_display_mode *mode = &crtc_state->mode; mode 159 drivers/gpu/drm/rcar-du/rcar_du_writeback.c if (fb->width != mode->hdisplay || fb->height != mode->vdisplay) { mode 42 drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c const struct drm_display_mode *mode) mode 48 drivers/gpu/drm/rcar-du/rcar_dw_hdmi.c if (mode->clock > 297000) mode 69 drivers/gpu/drm/rcar-du/rcar_lvds.c enum rcar_lvds_mode mode; mode 122 drivers/gpu/drm/rcar-du/rcar_lvds.c if (crtc_state->mode.hdisplay != panel_mode->hdisplay || mode 123 drivers/gpu/drm/rcar-du/rcar_lvds.c crtc_state->mode.vdisplay != panel_mode->vdisplay) mode 408 drivers/gpu/drm/rcar-du/rcar_lvds.c const struct drm_display_mode *mode = &lvds->display_mode; mode 456 drivers/gpu/drm/rcar-du/rcar_lvds.c lvds->info->pll_setup(lvds, mode->clock * 1000); mode 459 drivers/gpu/drm/rcar-du/rcar_lvds.c lvdcr0 = lvds->mode << LVDCR0_LVMD_SHIFT; mode 544 drivers/gpu/drm/rcar-du/rcar_lvds.c const struct drm_display_mode *mode, mode 564 drivers/gpu/drm/rcar-du/rcar_lvds.c enum rcar_lvds_mode mode; mode 581 drivers/gpu/drm/rcar-du/rcar_lvds.c mode = RCAR_LVDS_MODE_JEIDA; mode 584 drivers/gpu/drm/rcar-du/rcar_lvds.c mode = RCAR_LVDS_MODE_VESA; mode 593 drivers/gpu/drm/rcar-du/rcar_lvds.c mode |= RCAR_LVDS_MODE_MIRROR; mode 595 drivers/gpu/drm/rcar-du/rcar_lvds.c lvds->mode = mode; mode 599 drivers/gpu/drm/rcar-du/rcar_lvds.c const struct drm_display_mode *mode, mode 62 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c struct drm_display_mode mode; mode 133 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c const struct drm_display_mode *mode, mode 141 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c struct drm_display_mode *mode, mode 278 drivers/gpu/drm/rockchip/cdn-dp-core.c struct drm_display_mode *mode) mode 301 drivers/gpu/drm/rockchip/cdn-dp-core.c requested = mode->clock * bpc * 3 / 1000; mode 319 drivers/gpu/drm/rockchip/cdn-dp-core.c requested, actual, mode->clock); mode 541 drivers/gpu/drm/rockchip/cdn-dp-core.c struct drm_display_mode *mode, mode 561 drivers/gpu/drm/rockchip/cdn-dp-core.c video->v_sync_polarity = !!(mode->flags & DRM_MODE_FLAG_NVSYNC); mode 562 drivers/gpu/drm/rockchip/cdn-dp-core.c video->h_sync_polarity = !!(mode->flags & DRM_MODE_FLAG_NHSYNC); mode 564 drivers/gpu/drm/rockchip/cdn-dp-core.c memcpy(&dp->mode, adjusted, sizeof(*mode)); mode 957 drivers/gpu/drm/rockchip/cdn-dp-core.c struct drm_display_mode *mode = &dp->mode; mode 968 drivers/gpu/drm/rockchip/cdn-dp-core.c if (mode->clock && mode 69 drivers/gpu/drm/rockchip/cdn-dp-core.h struct drm_display_mode mode; mode 584 drivers/gpu/drm/rockchip/cdn-dp-reg.c struct drm_display_mode *mode) mode 633 drivers/gpu/drm/rockchip/cdn-dp-reg.c struct drm_display_mode *mode = &dp->mode; mode 661 drivers/gpu/drm/rockchip/cdn-dp-reg.c symbol = tu_size_reg * mode->clock * bit_per_pix; mode 668 drivers/gpu/drm/rockchip/cdn-dp-reg.c mode->clock, dp->link.num_lanes, mode 682 drivers/gpu/drm/rockchip/cdn-dp-reg.c val = div_u64(mode->clock * (symbol + 1), 1000) + link_rate; mode 717 drivers/gpu/drm/rockchip/cdn-dp-reg.c val = (mode->hsync_start - mode->hdisplay) << 16; mode 718 drivers/gpu/drm/rockchip/cdn-dp-reg.c val |= mode->htotal - mode->hsync_end; mode 723 drivers/gpu/drm/rockchip/cdn-dp-reg.c val = mode->hdisplay * bit_per_pix / 8; mode 728 drivers/gpu/drm/rockchip/cdn-dp-reg.c val = mode->htotal | ((mode->htotal - mode->hsync_start) << 16); mode 733 drivers/gpu/drm/rockchip/cdn-dp-reg.c val = mode->hsync_end - mode->hsync_start; mode 734 drivers/gpu/drm/rockchip/cdn-dp-reg.c val |= (mode->hdisplay << 16) | (video->h_sync_polarity << 15); mode 739 drivers/gpu/drm/rockchip/cdn-dp-reg.c val = mode->vtotal; mode 740 drivers/gpu/drm/rockchip/cdn-dp-reg.c val |= (mode->vtotal - mode->vsync_start) << 16; mode 745 drivers/gpu/drm/rockchip/cdn-dp-reg.c val = mode->vsync_end - mode->vsync_start; mode 746 drivers/gpu/drm/rockchip/cdn-dp-reg.c val |= (mode->vdisplay << 16) | (video->v_sync_polarity << 15); mode 751 drivers/gpu/drm/rockchip/cdn-dp-reg.c val = cdn_dp_get_msa_misc(video, mode); mode 760 drivers/gpu/drm/rockchip/cdn-dp-reg.c val = mode->hsync_end - mode->hsync_start; mode 761 drivers/gpu/drm/rockchip/cdn-dp-reg.c val |= mode->hdisplay << 16; mode 766 drivers/gpu/drm/rockchip/cdn-dp-reg.c val = mode->vdisplay; mode 767 drivers/gpu/drm/rockchip/cdn-dp-reg.c val |= (mode->vtotal - mode->vsync_start) << 16; mode 772 drivers/gpu/drm/rockchip/cdn-dp-reg.c val = mode->vtotal; mode 471 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c dw_mipi_dsi_get_lane_mbps(void *priv_data, const struct drm_display_mode *mode, mode 496 drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c mpclk = DIV_ROUND_UP(mode->clock, MSEC_PER_SEC); mode 223 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c const struct drm_display_mode *mode) mode 226 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c int pclk = mode->clock * 1000; mode 250 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c const struct drm_display_mode *mode, mode 257 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c struct drm_display_mode *mode, mode 317 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c struct drm_display_mode *mode) mode 189 drivers/gpu/drm/rockchip/inno_hdmi.c static void inno_hdmi_set_pwr_mode(struct inno_hdmi *hdmi, int mode) mode 191 drivers/gpu/drm/rockchip/inno_hdmi.c switch (mode) { mode 218 drivers/gpu/drm/rockchip/inno_hdmi.c DRM_DEV_ERROR(hdmi->dev, "Unknown power mode %d\n", mode); mode 270 drivers/gpu/drm/rockchip/inno_hdmi.c struct drm_display_mode *mode) mode 277 drivers/gpu/drm/rockchip/inno_hdmi.c mode); mode 284 drivers/gpu/drm/rockchip/inno_hdmi.c struct drm_display_mode *mode) mode 291 drivers/gpu/drm/rockchip/inno_hdmi.c mode); mode 381 drivers/gpu/drm/rockchip/inno_hdmi.c struct drm_display_mode *mode) mode 387 drivers/gpu/drm/rockchip/inno_hdmi.c value |= mode->flags & DRM_MODE_FLAG_PHSYNC ? mode 389 drivers/gpu/drm/rockchip/inno_hdmi.c value |= mode->flags & DRM_MODE_FLAG_PVSYNC ? mode 391 drivers/gpu/drm/rockchip/inno_hdmi.c value |= mode->flags & DRM_MODE_FLAG_INTERLACE ? mode 396 drivers/gpu/drm/rockchip/inno_hdmi.c value = mode->htotal; mode 400 drivers/gpu/drm/rockchip/inno_hdmi.c value = mode->htotal - mode->hdisplay; mode 404 drivers/gpu/drm/rockchip/inno_hdmi.c value = mode->hsync_start - mode->hdisplay; mode 408 drivers/gpu/drm/rockchip/inno_hdmi.c value = mode->hsync_end - mode->hsync_start; mode 412 drivers/gpu/drm/rockchip/inno_hdmi.c value = mode->vtotal; mode 416 drivers/gpu/drm/rockchip/inno_hdmi.c value = mode->vtotal - mode->vdisplay; mode 419 drivers/gpu/drm/rockchip/inno_hdmi.c value = mode->vsync_start - mode->vdisplay; mode 422 drivers/gpu/drm/rockchip/inno_hdmi.c value = mode->vsync_end - mode->vsync_start; mode 433 drivers/gpu/drm/rockchip/inno_hdmi.c struct drm_display_mode *mode) mode 435 drivers/gpu/drm/rockchip/inno_hdmi.c hdmi->hdmi_data.vic = drm_match_cea_mode(mode); mode 456 drivers/gpu/drm/rockchip/inno_hdmi.c inno_hdmi_config_video_timing(hdmi, mode); mode 461 drivers/gpu/drm/rockchip/inno_hdmi.c inno_hdmi_config_video_avi(hdmi, mode); mode 462 drivers/gpu/drm/rockchip/inno_hdmi.c inno_hdmi_config_video_vsi(hdmi, mode); mode 471 drivers/gpu/drm/rockchip/inno_hdmi.c hdmi->tmds_rate = mode->clock * 1000; mode 482 drivers/gpu/drm/rockchip/inno_hdmi.c struct drm_display_mode *mode, mode 508 drivers/gpu/drm/rockchip/inno_hdmi.c const struct drm_display_mode *mode, mode 571 drivers/gpu/drm/rockchip/inno_hdmi.c struct drm_display_mode *mode) mode 100 drivers/gpu/drm/rockchip/rk3066_hdmi.c static void rk3066_hdmi_set_power_mode(struct rk3066_hdmi *hdmi, int mode) mode 107 drivers/gpu/drm/rockchip/rk3066_hdmi.c DRM_DEV_DEBUG(hdmi->dev, "mode :%d\n", mode); mode 110 drivers/gpu/drm/rockchip/rk3066_hdmi.c if (current_mode == mode) mode 114 drivers/gpu/drm/rockchip/rk3066_hdmi.c if (current_mode > mode) { mode 142 drivers/gpu/drm/rockchip/rk3066_hdmi.c } while ((next_mode != mode) && (i < 5)); mode 150 drivers/gpu/drm/rockchip/rk3066_hdmi.c if (mode < HDMI_SYS_POWER_MODE_D) mode 185 drivers/gpu/drm/rockchip/rk3066_hdmi.c struct drm_display_mode *mode) mode 191 drivers/gpu/drm/rockchip/rk3066_hdmi.c &hdmi->connector, mode); mode 208 drivers/gpu/drm/rockchip/rk3066_hdmi.c struct drm_display_mode *mode) mode 214 drivers/gpu/drm/rockchip/rk3066_hdmi.c value |= mode->flags & DRM_MODE_FLAG_PHSYNC ? mode 216 drivers/gpu/drm/rockchip/rk3066_hdmi.c value |= mode->flags & DRM_MODE_FLAG_PVSYNC ? mode 218 drivers/gpu/drm/rockchip/rk3066_hdmi.c value |= mode->flags & DRM_MODE_FLAG_INTERLACE ? mode 230 drivers/gpu/drm/rockchip/rk3066_hdmi.c value = mode->htotal; mode 234 drivers/gpu/drm/rockchip/rk3066_hdmi.c value = mode->htotal - mode->hdisplay; mode 238 drivers/gpu/drm/rockchip/rk3066_hdmi.c value = mode->htotal - mode->hsync_start; mode 242 drivers/gpu/drm/rockchip/rk3066_hdmi.c value = mode->hsync_end - mode->hsync_start; mode 246 drivers/gpu/drm/rockchip/rk3066_hdmi.c value = mode->vtotal; mode 250 drivers/gpu/drm/rockchip/rk3066_hdmi.c value = mode->vtotal - mode->vdisplay; mode 253 drivers/gpu/drm/rockchip/rk3066_hdmi.c value = mode->vtotal - mode->vsync_start + vsync_offset; mode 256 drivers/gpu/drm/rockchip/rk3066_hdmi.c value = mode->vsync_end - mode->vsync_start; mode 317 drivers/gpu/drm/rockchip/rk3066_hdmi.c struct drm_display_mode *mode) mode 319 drivers/gpu/drm/rockchip/rk3066_hdmi.c hdmi->hdmi_data.vic = drm_match_cea_mode(mode); mode 330 drivers/gpu/drm/rockchip/rk3066_hdmi.c hdmi->tmdsclk = mode->clock * 1000; mode 349 drivers/gpu/drm/rockchip/rk3066_hdmi.c rk3066_hdmi_config_video_timing(hdmi, mode); mode 354 drivers/gpu/drm/rockchip/rk3066_hdmi.c rk3066_hdmi_config_avi(hdmi, mode); mode 379 drivers/gpu/drm/rockchip/rk3066_hdmi.c struct drm_display_mode *mode, mode 426 drivers/gpu/drm/rockchip/rk3066_hdmi.c const struct drm_display_mode *mode, mode 489 drivers/gpu/drm/rockchip/rk3066_hdmi.c struct drm_display_mode *mode) mode 491 drivers/gpu/drm/rockchip/rk3066_hdmi.c u32 vic = drm_match_cea_mode(mode); mode 276 drivers/gpu/drm/rockchip/rockchip_drm_vop.c static uint16_t scl_vop_cal_scale(enum scale_mode mode, uint32_t src, mode 286 drivers/gpu/drm/rockchip/rockchip_drm_vop.c if (mode == SCALE_UP) mode 288 drivers/gpu/drm/rockchip/rockchip_drm_vop.c else if (mode == SCALE_DOWN) mode 291 drivers/gpu/drm/rockchip/rockchip_drm_vop.c if (mode == SCALE_UP) { mode 296 drivers/gpu/drm/rockchip/rockchip_drm_vop.c } else if (mode == SCALE_DOWN) { mode 829 drivers/gpu/drm/rockchip/rockchip_drm_vop.c dsp_stx = dest->x1 + crtc->mode.htotal - crtc->mode.hsync_start; mode 830 drivers/gpu/drm/rockchip/rockchip_drm_vop.c dsp_sty = dest->y1 + crtc->mode.vtotal - crtc->mode.vsync_start; mode 1039 drivers/gpu/drm/rockchip/rockchip_drm_vop.c const struct drm_display_mode *mode, mode 212 drivers/gpu/drm/rockchip/rockchip_lvds.c struct drm_display_mode *mode) mode 215 drivers/gpu/drm/rockchip/rockchip_lvds.c u8 pin_hsync = (mode->flags & DRM_MODE_FLAG_PHSYNC) ? 1 : 0; mode 216 drivers/gpu/drm/rockchip/rockchip_lvds.c u8 pin_dclk = (mode->flags & DRM_MODE_FLAG_PCSYNC) ? 1 : 0; mode 231 drivers/gpu/drm/rockchip/rockchip_lvds.c if ((mode->htotal - mode->hsync_start) & 0x01) mode 283 drivers/gpu/drm/rockchip/rockchip_lvds.c struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode; mode 292 drivers/gpu/drm/rockchip/rockchip_lvds.c rockchip_lvds_grf_config(encoder, mode); mode 22 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 26 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 27 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.specified); mode 28 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 29 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 31 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 32 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 33 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 34 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 35 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_ON); mode 42 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 46 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 47 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.specified); mode 48 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 49 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 51 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 52 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 53 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 54 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 55 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_ON); mode 66 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 70 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 71 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.specified); mode 72 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 73 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 75 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 76 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 77 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 78 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 79 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_ON_DIGITAL); mode 90 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 94 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 95 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.specified); mode 96 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 97 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 99 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 100 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 101 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 102 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 103 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_ON_DIGITAL); mode 110 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 114 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 115 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.specified); mode 116 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 117 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 119 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 120 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 121 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 122 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 123 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_OFF); mode 130 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 134 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 141 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 145 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 152 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 156 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 157 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 158 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 159 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 161 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 163 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 165 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 166 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 167 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 168 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 169 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_UNSPECIFIED); mode 176 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 180 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 187 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 191 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 198 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 202 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 209 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 213 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 220 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 224 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 225 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 226 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 227 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 229 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 231 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 233 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 234 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.cvt); mode 235 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 236 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 237 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_UNSPECIFIED); mode 244 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 248 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 249 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 250 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 251 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 253 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 255 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 257 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.rb); mode 258 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.cvt); mode 259 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 260 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 261 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_UNSPECIFIED); mode 268 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 272 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 273 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 274 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 275 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 277 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 279 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 281 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.rb); mode 282 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 283 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 284 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 285 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_UNSPECIFIED); mode 292 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 296 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 297 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 298 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 299 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 301 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 303 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.bpp_specified); mode 304 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp != 24); mode 306 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 307 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 308 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 309 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 310 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_UNSPECIFIED); mode 317 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 321 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 328 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 332 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 333 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 334 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 335 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 337 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.refresh_specified); mode 338 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh != 60); mode 340 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 342 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 343 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 344 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 345 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 346 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_UNSPECIFIED); mode 353 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 357 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 364 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 368 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 369 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 370 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 371 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 373 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.refresh_specified); mode 374 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh != 60); mode 376 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.bpp_specified); mode 377 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp != 24); mode 379 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 380 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 381 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 382 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 383 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_UNSPECIFIED); mode 390 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 394 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 395 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 396 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 397 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 399 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.refresh_specified); mode 400 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh != 60); mode 402 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.bpp_specified); mode 403 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp != 24); mode 405 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 406 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 407 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.interlace); mode 408 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 409 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_UNSPECIFIED); mode 416 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 420 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 421 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 422 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 423 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 425 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.refresh_specified); mode 426 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh != 60); mode 428 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.bpp_specified); mode 429 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp != 24); mode 431 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 432 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 433 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 434 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.margins); mode 435 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_UNSPECIFIED); mode 442 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 446 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 447 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 448 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 449 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 451 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.refresh_specified); mode 452 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh != 60); mode 454 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.bpp_specified); mode 455 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp != 24); mode 457 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 458 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 459 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 460 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 461 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_OFF); mode 468 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 472 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 479 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 483 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 484 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 485 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 486 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 488 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.refresh_specified); mode 489 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh != 60); mode 491 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.bpp_specified); mode 492 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp != 24); mode 494 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 495 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 496 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 497 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 498 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_ON); mode 505 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 509 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 510 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 511 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 512 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 514 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.refresh_specified); mode 515 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh != 60); mode 517 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.bpp_specified); mode 518 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp != 24); mode 520 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 521 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 522 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 523 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 524 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_ON); mode 531 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 538 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 539 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 540 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 541 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 543 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.refresh_specified); mode 544 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh != 60); mode 546 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.bpp_specified); mode 547 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp != 24); mode 549 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 550 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 551 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 552 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 553 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_ON_DIGITAL); mode 560 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 564 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 565 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 566 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 567 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 569 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.refresh_specified); mode 570 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh != 60); mode 572 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.bpp_specified); mode 573 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp != 24); mode 575 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 576 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 577 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.interlace); mode 578 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.margins); mode 579 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_ON); mode 586 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 590 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 591 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 592 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 593 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 595 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 597 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 599 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 600 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 601 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 602 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.margins); mode 603 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_ON); mode 610 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 614 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 615 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 616 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 617 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 619 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 621 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 623 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 624 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.cvt); mode 625 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 626 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.margins); mode 627 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_UNSPECIFIED); mode 634 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 638 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 645 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 649 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 656 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 660 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 661 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(strcmp(mode.name, "NTSC")); mode 662 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 663 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 670 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 674 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 675 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(strcmp(mode.name, "NTSC")); mode 677 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 679 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.bpp_specified); mode 680 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp != 24); mode 687 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 691 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 698 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 702 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 709 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 713 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 720 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 724 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 731 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 735 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 736 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 737 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(strcmp(mode.name, "NTSC")); mode 738 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rotation_reflection != DRM_MODE_ROTATE_180); mode 745 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 749 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 750 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 751 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(strcmp(mode.name, "NTSC")); mode 752 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rotation_reflection != DRM_MODE_ROTATE_180); mode 753 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.bpp_specified); mode 754 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp != 24); mode 761 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 765 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 766 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 767 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 768 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 769 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rotation_reflection != DRM_MODE_ROTATE_0); mode 771 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 773 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 775 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 776 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 777 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 778 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 779 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_UNSPECIFIED); mode 786 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 790 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 791 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 792 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 793 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 794 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rotation_reflection != DRM_MODE_ROTATE_90); mode 796 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 798 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 800 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 801 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 802 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 803 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 804 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_UNSPECIFIED); mode 811 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 815 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 816 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 817 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 818 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 819 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rotation_reflection != DRM_MODE_ROTATE_180); mode 821 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 823 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 825 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 826 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 827 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 828 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 829 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_UNSPECIFIED); mode 836 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 840 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 841 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 842 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 843 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 844 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rotation_reflection != DRM_MODE_ROTATE_270); mode 846 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 848 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 850 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 851 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 852 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 853 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 854 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_UNSPECIFIED); mode 861 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 865 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 872 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 876 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 883 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 887 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 894 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 898 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 899 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 900 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 901 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 902 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rotation_reflection != (DRM_MODE_ROTATE_0 | DRM_MODE_REFLECT_X)); mode 904 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 906 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 908 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 909 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 910 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 911 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 912 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_UNSPECIFIED); mode 919 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 923 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 924 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 925 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 926 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 927 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rotation_reflection != (DRM_MODE_ROTATE_0 | DRM_MODE_REFLECT_Y)); mode 929 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 931 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 933 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 934 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 935 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 936 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 937 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_UNSPECIFIED); mode 944 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 948 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 949 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 950 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 951 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 952 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.tv_margins.right != 14); mode 953 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.tv_margins.left != 24); mode 954 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.tv_margins.bottom != 36); mode 955 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.tv_margins.top != 42); mode 957 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 959 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 961 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 962 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 963 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 964 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 965 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_UNSPECIFIED); mode 972 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 976 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 977 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(!mode.specified); mode 978 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.xres != 720); mode 979 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.yres != 480); mode 980 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rotation_reflection != (DRM_MODE_ROTATE_270 | DRM_MODE_REFLECT_X)); mode 982 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.refresh_specified); mode 984 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.bpp_specified); mode 986 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.rb); mode 987 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.cvt); mode 988 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.interlace); mode 989 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.margins); mode 990 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c FAIL_ON(mode.force != DRM_FORCE_UNSPECIFIED); mode 997 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c struct drm_cmdline_mode mode = { }; mode 1001 drivers/gpu/drm/selftests/test-drm_cmdline_parser.c &mode)); mode 34 drivers/gpu/drm/selftests/test-drm_mm.c enum drm_mm_insert_mode mode; mode 527 drivers/gpu/drm/selftests/test-drm_mm.c const struct insert_mode *mode) mode 533 drivers/gpu/drm/selftests/test-drm_mm.c mode->mode); mode 536 drivers/gpu/drm/selftests/test-drm_mm.c size, alignment, color, mode->name, err); mode 571 drivers/gpu/drm/selftests/test-drm_mm.c const struct insert_mode *mode; mode 594 drivers/gpu/drm/selftests/test-drm_mm.c for (mode = insert_modes; mode->name; mode++) { mode 600 drivers/gpu/drm/selftests/test-drm_mm.c if (!expect_insert(&mm, node, size, 0, n, mode)) { mode 602 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, size, n); mode 642 drivers/gpu/drm/selftests/test-drm_mm.c if (!expect_insert(&mm, &nodes[n], size, 0, n, mode)) { mode 644 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, size, n); mode 650 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, n, addr, nodes[n].start); mode 667 drivers/gpu/drm/selftests/test-drm_mm.c if (!expect_insert(&mm, node, size, 0, n, mode)) { mode 669 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, size, n); mode 765 drivers/gpu/drm/selftests/test-drm_mm.c const struct insert_mode *mode) mode 772 drivers/gpu/drm/selftests/test-drm_mm.c mode->mode); mode 775 drivers/gpu/drm/selftests/test-drm_mm.c size, alignment, color, mode->name, mode 878 drivers/gpu/drm/selftests/test-drm_mm.c const struct insert_mode *mode; mode 903 drivers/gpu/drm/selftests/test-drm_mm.c for (mode = insert_modes; mode->name; mode++) { mode 907 drivers/gpu/drm/selftests/test-drm_mm.c start, end, mode)) { mode 909 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, size, n, mode 918 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, start, end, size); mode 929 drivers/gpu/drm/selftests/test-drm_mm.c start, end, mode)) { mode 930 drivers/gpu/drm/selftests/test-drm_mm.c pr_err("%s reinsert failed, step %d\n", mode->name, n); mode 936 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, n, addr, nodes[n].start); mode 943 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, start, end, size); mode 1038 drivers/gpu/drm/selftests/test-drm_mm.c const struct insert_mode *mode; mode 1056 drivers/gpu/drm/selftests/test-drm_mm.c for (mode = insert_modes; mode->name; mode++) { mode 1064 drivers/gpu/drm/selftests/test-drm_mm.c mode)) { mode 1066 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, prime); mode 1337 drivers/gpu/drm/selftests/test-drm_mm.c const struct insert_mode *mode) mode 1348 drivers/gpu/drm/selftests/test-drm_mm.c mode->mode); mode 1405 drivers/gpu/drm/selftests/test-drm_mm.c const struct insert_mode *mode; mode 1449 drivers/gpu/drm/selftests/test-drm_mm.c for (mode = evict_modes; mode->name; mode++) { mode 1455 drivers/gpu/drm/selftests/test-drm_mm.c mode); mode 1458 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, n); mode 1469 drivers/gpu/drm/selftests/test-drm_mm.c mode); mode 1472 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, size/2, n); mode 1487 drivers/gpu/drm/selftests/test-drm_mm.c mode); mode 1490 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, nsize, n); mode 1518 drivers/gpu/drm/selftests/test-drm_mm.c const struct insert_mode *mode; mode 1549 drivers/gpu/drm/selftests/test-drm_mm.c for (mode = evict_modes; mode->name; mode++) { mode 1555 drivers/gpu/drm/selftests/test-drm_mm.c mode); mode 1558 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, n, range_start, range_end); mode 1568 drivers/gpu/drm/selftests/test-drm_mm.c mode); mode 1571 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, range_size/2, n, range_start, range_end); mode 1585 drivers/gpu/drm/selftests/test-drm_mm.c mode); mode 1588 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, nsize, n, range_start, range_end); mode 1827 drivers/gpu/drm/selftests/test-drm_mm.c static int __igt_once(unsigned int mode) mode 1862 drivers/gpu/drm/selftests/test-drm_mm.c mode | DRM_MM_INSERT_ONCE); mode 1870 drivers/gpu/drm/selftests/test-drm_mm.c err = drm_mm_insert_node_generic(&mm, &node, 2, 0, 0, mode); mode 1929 drivers/gpu/drm/selftests/test-drm_mm.c const struct insert_mode *mode; mode 1974 drivers/gpu/drm/selftests/test-drm_mm.c for (mode = insert_modes; mode->name; mode++) { mode 2038 drivers/gpu/drm/selftests/test-drm_mm.c mode)) { mode 2040 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, n); mode 2051 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, node->size, node->color); mode 2062 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, node->start, node->size, rem); mode 2091 drivers/gpu/drm/selftests/test-drm_mm.c const struct insert_mode *mode) mode 2102 drivers/gpu/drm/selftests/test-drm_mm.c mode->mode); mode 2156 drivers/gpu/drm/selftests/test-drm_mm.c const struct insert_mode *mode; mode 2191 drivers/gpu/drm/selftests/test-drm_mm.c for (mode = evict_modes; mode->name; mode++) { mode 2197 drivers/gpu/drm/selftests/test-drm_mm.c mode); mode 2200 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, n); mode 2210 drivers/gpu/drm/selftests/test-drm_mm.c mode); mode 2213 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, total_size/2, n); mode 2227 drivers/gpu/drm/selftests/test-drm_mm.c mode); mode 2230 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, nsize, n); mode 2259 drivers/gpu/drm/selftests/test-drm_mm.c const struct insert_mode *mode; mode 2292 drivers/gpu/drm/selftests/test-drm_mm.c for (mode = evict_modes; mode->name; mode++) { mode 2298 drivers/gpu/drm/selftests/test-drm_mm.c mode); mode 2301 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, n, range_start, range_end); mode 2311 drivers/gpu/drm/selftests/test-drm_mm.c mode); mode 2314 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, total_size/2, n, range_start, range_end); mode 2328 drivers/gpu/drm/selftests/test-drm_mm.c mode); mode 2331 drivers/gpu/drm/selftests/test-drm_mm.c mode->name, nsize, n, range_start, range_end); mode 84 drivers/gpu/drm/selftests/test-drm_plane_helper.c .mode = { mode 45 drivers/gpu/drm/shmobile/shmob_drm_backlight.c void shmob_drm_backlight_dpms(struct shmob_drm_connector *scon, int mode) mode 50 drivers/gpu/drm/shmobile/shmob_drm_backlight.c scon->backlight->props.power = mode == DRM_MODE_DPMS_ON mode 15 drivers/gpu/drm/shmobile/shmob_drm_backlight.h void shmob_drm_backlight_dpms(struct shmob_drm_connector *scon, int mode); mode 65 drivers/gpu/drm/shmobile/shmob_drm_crtc.c const struct drm_display_mode *mode = &crtc->mode; mode 69 drivers/gpu/drm/shmobile/shmob_drm_crtc.c | ((mode->flags & DRM_MODE_FLAG_PVSYNC) ? 0 : LDMT1R_VPOL) mode 70 drivers/gpu/drm/shmobile/shmob_drm_crtc.c | ((mode->flags & DRM_MODE_FLAG_PHSYNC) ? 0 : LDMT1R_HPOL) mode 96 drivers/gpu/drm/shmobile/shmob_drm_crtc.c value = ((mode->hdisplay / 8) << 16) /* HDCN */ mode 97 drivers/gpu/drm/shmobile/shmob_drm_crtc.c | (mode->htotal / 8); /* HTCN */ mode 100 drivers/gpu/drm/shmobile/shmob_drm_crtc.c value = (((mode->hsync_end - mode->hsync_start) / 8) << 16) /* HSYNW */ mode 101 drivers/gpu/drm/shmobile/shmob_drm_crtc.c | (mode->hsync_start / 8); /* HSYNP */ mode 104 drivers/gpu/drm/shmobile/shmob_drm_crtc.c value = ((mode->hdisplay & 7) << 24) | ((mode->htotal & 7) << 16) mode 105 drivers/gpu/drm/shmobile/shmob_drm_crtc.c | (((mode->hsync_end - mode->hsync_start) & 7) << 8) mode 106 drivers/gpu/drm/shmobile/shmob_drm_crtc.c | (mode->hsync_start & 7); mode 109 drivers/gpu/drm/shmobile/shmob_drm_crtc.c value = ((mode->vdisplay) << 16) /* VDLN */ mode 110 drivers/gpu/drm/shmobile/shmob_drm_crtc.c | mode->vtotal; /* VTLN */ mode 113 drivers/gpu/drm/shmobile/shmob_drm_crtc.c value = ((mode->vsync_end - mode->vsync_start) << 16) /* VSYNW */ mode 114 drivers/gpu/drm/shmobile/shmob_drm_crtc.c | mode->vsync_start; /* VSYNP */ mode 323 drivers/gpu/drm/shmobile/shmob_drm_crtc.c static void shmob_drm_crtc_dpms(struct drm_crtc *crtc, int mode) mode 327 drivers/gpu/drm/shmobile/shmob_drm_crtc.c if (scrtc->dpms == mode) mode 330 drivers/gpu/drm/shmobile/shmob_drm_crtc.c if (mode == DRM_MODE_DPMS_ON) mode 335 drivers/gpu/drm/shmobile/shmob_drm_crtc.c scrtc->dpms = mode; mode 344 drivers/gpu/drm/shmobile/shmob_drm_crtc.c struct drm_display_mode *mode, mode 500 drivers/gpu/drm/shmobile/shmob_drm_crtc.c static void shmob_drm_encoder_dpms(struct drm_encoder *encoder, int mode) mode 506 drivers/gpu/drm/shmobile/shmob_drm_crtc.c if (senc->dpms == mode) mode 509 drivers/gpu/drm/shmobile/shmob_drm_crtc.c shmob_drm_backlight_dpms(scon, mode); mode 511 drivers/gpu/drm/shmobile/shmob_drm_crtc.c senc->dpms = mode; mode 515 drivers/gpu/drm/shmobile/shmob_drm_crtc.c const struct drm_display_mode *mode, mode 542 drivers/gpu/drm/shmobile/shmob_drm_crtc.c struct drm_display_mode *mode, mode 599 drivers/gpu/drm/shmobile/shmob_drm_crtc.c struct drm_display_mode *mode; mode 601 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode = drm_mode_create(connector->dev); mode 602 drivers/gpu/drm/shmobile/shmob_drm_crtc.c if (mode == NULL) mode 605 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->type = DRM_MODE_TYPE_PREFERRED | DRM_MODE_TYPE_DRIVER; mode 606 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->clock = sdev->pdata->panel.mode.clock; mode 607 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->hdisplay = sdev->pdata->panel.mode.hdisplay; mode 608 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->hsync_start = sdev->pdata->panel.mode.hsync_start; mode 609 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->hsync_end = sdev->pdata->panel.mode.hsync_end; mode 610 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->htotal = sdev->pdata->panel.mode.htotal; mode 611 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->vdisplay = sdev->pdata->panel.mode.vdisplay; mode 612 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->vsync_start = sdev->pdata->panel.mode.vsync_start; mode 613 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->vsync_end = sdev->pdata->panel.mode.vsync_end; mode 614 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->vtotal = sdev->pdata->panel.mode.vtotal; mode 615 drivers/gpu/drm/shmobile/shmob_drm_crtc.c mode->flags = sdev->pdata->panel.mode.flags; mode 617 drivers/gpu/drm/shmobile/shmob_drm_crtc.c drm_mode_set_name(mode); mode 618 drivers/gpu/drm/shmobile/shmob_drm_crtc.c drm_mode_probed_add(connector, mode); mode 50 drivers/gpu/drm/sti/sti_crtc.c sti_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode) mode 56 drivers/gpu/drm/sti/sti_crtc.c int rate = mode->clock * 1000; mode 59 drivers/gpu/drm/sti/sti_crtc.c crtc->base.id, sti_mixer_to_str(mixer), mode->name); mode 61 drivers/gpu/drm/sti/sti_crtc.c DRM_DEBUG_KMS(DRM_MODE_FMT "\n", DRM_MODE_ARG(mode)); mode 87 drivers/gpu/drm/sti/sti_crtc.c sti_vtg_set_config(compo->vtg[mixer->id], &crtc->mode); mode 89 drivers/gpu/drm/sti/sti_crtc.c if (sti_mixer_active_video_area(mixer, &crtc->mode)) { mode 191 drivers/gpu/drm/sti/sti_cursor.c struct drm_display_mode *mode; mode 200 drivers/gpu/drm/sti/sti_cursor.c mode = &crtc_state->mode; mode 203 drivers/gpu/drm/sti/sti_cursor.c dst_w = clamp_val(state->crtc_w, 0, mode->crtc_hdisplay - dst_x); mode 204 drivers/gpu/drm/sti/sti_cursor.c dst_h = clamp_val(state->crtc_h, 0, mode->crtc_vdisplay - dst_y); mode 262 drivers/gpu/drm/sti/sti_cursor.c struct drm_display_mode *mode; mode 271 drivers/gpu/drm/sti/sti_cursor.c mode = &crtc->mode; mode 281 drivers/gpu/drm/sti/sti_cursor.c y = sti_vtg_get_line_number(*mode, 0); mode 282 drivers/gpu/drm/sti/sti_cursor.c x = sti_vtg_get_pixel_number(*mode, 0); mode 285 drivers/gpu/drm/sti/sti_cursor.c y = sti_vtg_get_line_number(*mode, mode->vdisplay - 1); mode 286 drivers/gpu/drm/sti/sti_cursor.c x = sti_vtg_get_pixel_number(*mode, mode->hdisplay - 1); mode 295 drivers/gpu/drm/sti/sti_cursor.c y = sti_vtg_get_line_number(*mode, dst_y); mode 296 drivers/gpu/drm/sti/sti_cursor.c x = sti_vtg_get_pixel_number(*mode, dst_x); mode 87 drivers/gpu/drm/sti/sti_dvo.c struct drm_display_mode mode; mode 113 drivers/gpu/drm/sti/sti_dvo.c struct drm_display_mode *mode = &dvo->mode; mode 121 drivers/gpu/drm/sti/sti_dvo.c timing.total_lines = mode->vtotal; mode 122 drivers/gpu/drm/sti/sti_dvo.c timing.active_lines = mode->vdisplay; mode 123 drivers/gpu/drm/sti/sti_dvo.c timing.blanking_lines = mode->vsync_start - mode->vdisplay; mode 124 drivers/gpu/drm/sti/sti_dvo.c timing.trailing_lines = mode->vtotal - mode->vsync_start; mode 125 drivers/gpu/drm/sti/sti_dvo.c timing.total_pixels = mode->htotal; mode 126 drivers/gpu/drm/sti/sti_dvo.c timing.active_pixels = mode->hdisplay; mode 127 drivers/gpu/drm/sti/sti_dvo.c timing.blanking_pixels = mode->hsync_start - mode->hdisplay; mode 128 drivers/gpu/drm/sti/sti_dvo.c timing.trailing_pixels = mode->htotal - mode->hsync_start; mode 279 drivers/gpu/drm/sti/sti_dvo.c const struct drm_display_mode *mode, mode 284 drivers/gpu/drm/sti/sti_dvo.c int rate = mode->clock * 1000; mode 290 drivers/gpu/drm/sti/sti_dvo.c memcpy(&dvo->mode, mode, sizeof(struct drm_display_mode)); mode 349 drivers/gpu/drm/sti/sti_dvo.c struct drm_display_mode *mode) mode 351 drivers/gpu/drm/sti/sti_dvo.c int target = mode->clock * 1000; mode 625 drivers/gpu/drm/sti/sti_gdp.c struct drm_display_mode *mode; mode 636 drivers/gpu/drm/sti/sti_gdp.c mode = &crtc_state->mode; mode 639 drivers/gpu/drm/sti/sti_gdp.c dst_w = clamp_val(state->crtc_w, 0, mode->hdisplay - dst_x); mode 640 drivers/gpu/drm/sti/sti_gdp.c dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); mode 660 drivers/gpu/drm/sti/sti_gdp.c if (mode->clock && gdp->clk_pix) { mode 662 drivers/gpu/drm/sti/sti_gdp.c int rate = mode->clock * 1000; mode 704 drivers/gpu/drm/sti/sti_gdp.c struct drm_display_mode *mode; mode 745 drivers/gpu/drm/sti/sti_gdp.c mode = &crtc->mode; mode 748 drivers/gpu/drm/sti/sti_gdp.c dst_w = clamp_val(state->crtc_w, 0, mode->hdisplay - dst_x); mode 749 drivers/gpu/drm/sti/sti_gdp.c dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); mode 786 drivers/gpu/drm/sti/sti_gdp.c ydo = sti_vtg_get_line_number(*mode, dst_y); mode 787 drivers/gpu/drm/sti/sti_gdp.c yds = sti_vtg_get_line_number(*mode, dst_y + dst_h - 1); mode 788 drivers/gpu/drm/sti/sti_gdp.c xdo = sti_vtg_get_pixel_number(*mode, dst_x); mode 789 drivers/gpu/drm/sti/sti_gdp.c xds = sti_vtg_get_pixel_number(*mode, dst_x + dst_w - 1); mode 804 drivers/gpu/drm/sti/sti_gdp.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 839 drivers/gpu/drm/sti/sti_gdp.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) { mode 171 drivers/gpu/drm/sti/sti_hda.c struct drm_display_mode mode; mode 246 drivers/gpu/drm/sti/sti_hda.c struct drm_display_mode mode; mode 281 drivers/gpu/drm/sti/sti_hda.c static bool hda_get_mode_idx(struct drm_display_mode mode, int *idx) mode 286 drivers/gpu/drm/sti/sti_hda.c if (drm_mode_equal(&hda_supported_modes[i].mode, &mode)) { mode 444 drivers/gpu/drm/sti/sti_hda.c if (!hda_get_mode_idx(hda->mode, &mode_idx)) { mode 496 drivers/gpu/drm/sti/sti_hda.c val |= (hda->mode.flags & DRM_MODE_FLAG_INTERLACE) ? mode 515 drivers/gpu/drm/sti/sti_hda.c const struct drm_display_mode *mode, mode 525 drivers/gpu/drm/sti/sti_hda.c memcpy(&hda->mode, mode, sizeof(struct drm_display_mode)); mode 527 drivers/gpu/drm/sti/sti_hda.c if (!hda_get_mode_idx(hda->mode, &mode_idx)) { mode 535 drivers/gpu/drm/sti/sti_hda.c hddac_rate = mode->clock * 1000 * 2; mode 539 drivers/gpu/drm/sti/sti_hda.c hddac_rate = mode->clock * 1000 * 4; mode 553 drivers/gpu/drm/sti/sti_hda.c ret = clk_set_rate(hda->clk_pix, mode->clock * 1000); mode 556 drivers/gpu/drm/sti/sti_hda.c mode->clock * 1000); mode 583 drivers/gpu/drm/sti/sti_hda.c struct drm_display_mode *mode = mode 585 drivers/gpu/drm/sti/sti_hda.c &hda_supported_modes[i].mode); mode 586 drivers/gpu/drm/sti/sti_hda.c if (!mode) mode 588 drivers/gpu/drm/sti/sti_hda.c mode->vrefresh = drm_mode_vrefresh(mode); mode 592 drivers/gpu/drm/sti/sti_hda.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 594 drivers/gpu/drm/sti/sti_hda.c drm_mode_probed_add(connector, mode); mode 604 drivers/gpu/drm/sti/sti_hda.c struct drm_display_mode *mode) mode 606 drivers/gpu/drm/sti/sti_hda.c int target = mode->clock * 1000; mode 615 drivers/gpu/drm/sti/sti_hda.c if (!hda_get_mode_idx(*mode, &idx)) { mode 243 drivers/gpu/drm/sti/sti_hdmi.c xmin = sti_vtg_get_pixel_number(hdmi->mode, 1); mode 244 drivers/gpu/drm/sti/sti_hdmi.c xmax = sti_vtg_get_pixel_number(hdmi->mode, hdmi->mode.hdisplay); mode 245 drivers/gpu/drm/sti/sti_hdmi.c ymin = sti_vtg_get_line_number(hdmi->mode, 0); mode 246 drivers/gpu/drm/sti/sti_hdmi.c ymax = sti_vtg_get_line_number(hdmi->mode, hdmi->mode.vdisplay - 1); mode 274 drivers/gpu/drm/sti/sti_hdmi.c if (hdmi->mode.flags & DRM_MODE_FLAG_NHSYNC) { mode 280 drivers/gpu/drm/sti/sti_hdmi.c if (hdmi->mode.flags & DRM_MODE_FLAG_NVSYNC) { mode 362 drivers/gpu/drm/sti/sti_hdmi.c u32 val, slot, mode, i; mode 368 drivers/gpu/drm/sti/sti_hdmi.c mode = HDMI_IFRAME_FIELD; mode 374 drivers/gpu/drm/sti/sti_hdmi.c mode = HDMI_IFRAME_FRAME; mode 380 drivers/gpu/drm/sti/sti_hdmi.c mode = HDMI_IFRAME_FRAME; mode 416 drivers/gpu/drm/sti/sti_hdmi.c val |= HDMI_IFRAME_CFG_DI_N(mode, slot); mode 433 drivers/gpu/drm/sti/sti_hdmi.c struct drm_display_mode *mode = &hdmi->mode; mode 441 drivers/gpu/drm/sti/sti_hdmi.c hdmi->drm_connector, mode); mode 515 drivers/gpu/drm/sti/sti_hdmi.c struct drm_display_mode *mode = &hdmi->mode; mode 524 drivers/gpu/drm/sti/sti_hdmi.c mode); mode 842 drivers/gpu/drm/sti/sti_hdmi.c params->sample_rate, hdmi->mode.clock * 1000, n); mode 927 drivers/gpu/drm/sti/sti_hdmi.c const struct drm_display_mode *mode, mode 936 drivers/gpu/drm/sti/sti_hdmi.c memcpy(&hdmi->mode, mode, sizeof(struct drm_display_mode)); mode 939 drivers/gpu/drm/sti/sti_hdmi.c ret = clk_set_rate(hdmi->clk_pix, mode->clock * 1000); mode 942 drivers/gpu/drm/sti/sti_hdmi.c mode->clock * 1000); mode 945 drivers/gpu/drm/sti/sti_hdmi.c ret = clk_set_rate(hdmi->clk_phy, mode->clock * 1000); mode 948 drivers/gpu/drm/sti/sti_hdmi.c mode->clock * 1000); mode 1000 drivers/gpu/drm/sti/sti_hdmi.c struct drm_display_mode *mode) mode 1002 drivers/gpu/drm/sti/sti_hdmi.c int target = mode->clock * 1000; mode 75 drivers/gpu/drm/sti/sti_hdmi.h struct drm_display_mode mode; mode 78 drivers/gpu/drm/sti/sti_hdmi_tx3g4c28phy.c u32 ckpxpll = hdmi->mode.clock * 1000; mode 733 drivers/gpu/drm/sti/sti_hqvdp.c struct drm_display_mode *mode, mode 740 drivers/gpu/drm/sti/sti_hqvdp.c lfw = mode->htotal * (clk_get_rate(hqvdp->clk) / 1000000); mode 741 drivers/gpu/drm/sti/sti_hqvdp.c lfw /= max(src_w, dst_w) * mode->clock / 1000; mode 1027 drivers/gpu/drm/sti/sti_hqvdp.c struct drm_display_mode *mode; mode 1036 drivers/gpu/drm/sti/sti_hqvdp.c mode = &crtc_state->mode; mode 1039 drivers/gpu/drm/sti/sti_hqvdp.c dst_w = clamp_val(state->crtc_w, 0, mode->hdisplay - dst_x); mode 1040 drivers/gpu/drm/sti/sti_hqvdp.c dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); mode 1047 drivers/gpu/drm/sti/sti_hqvdp.c if (mode->clock && !sti_hqvdp_check_hw_scaling(hqvdp, mode, mode 1117 drivers/gpu/drm/sti/sti_hqvdp.c struct drm_display_mode *mode; mode 1143 drivers/gpu/drm/sti/sti_hqvdp.c mode = &crtc->mode; mode 1146 drivers/gpu/drm/sti/sti_hqvdp.c dst_w = clamp_val(state->crtc_w, 0, mode->hdisplay - dst_x); mode 1147 drivers/gpu/drm/sti/sti_hqvdp.c dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); mode 224 drivers/gpu/drm/sti/sti_mixer.c struct drm_display_mode *mode) mode 228 drivers/gpu/drm/sti/sti_mixer.c ydo = sti_vtg_get_line_number(*mode, 0); mode 229 drivers/gpu/drm/sti/sti_mixer.c yds = sti_vtg_get_line_number(*mode, mode->vdisplay - 1); mode 230 drivers/gpu/drm/sti/sti_mixer.c xdo = sti_vtg_get_pixel_number(*mode, 0); mode 231 drivers/gpu/drm/sti/sti_mixer.c xds = sti_vtg_get_pixel_number(*mode, mode->hdisplay - 1); mode 293 drivers/gpu/drm/sti/sti_mixer.c struct drm_display_mode *mode) mode 297 drivers/gpu/drm/sti/sti_mixer.c ydo = sti_vtg_get_line_number(*mode, 0); mode 298 drivers/gpu/drm/sti/sti_mixer.c yds = sti_vtg_get_line_number(*mode, mode->vdisplay - 1); mode 299 drivers/gpu/drm/sti/sti_mixer.c xdo = sti_vtg_get_pixel_number(*mode, 0); mode 300 drivers/gpu/drm/sti/sti_mixer.c xds = sti_vtg_get_pixel_number(*mode, mode->hdisplay - 1); mode 309 drivers/gpu/drm/sti/sti_mixer.c sti_mixer_set_background_area(mixer, mode); mode 57 drivers/gpu/drm/sti/sti_mixer.h struct drm_display_mode *mode); mode 273 drivers/gpu/drm/sti/sti_tvout.c struct drm_display_mode *mode) mode 278 drivers/gpu/drm/sti/sti_tvout.c if (mode->vdisplay >= TVO_MIN_HD_HEIGHT) mode 585 drivers/gpu/drm/sti/sti_tvout.c static void sti_tvout_encoder_dpms(struct drm_encoder *encoder, int mode) mode 590 drivers/gpu/drm/sti/sti_tvout.c struct drm_display_mode *mode, mode 639 drivers/gpu/drm/sti/sti_tvout.c tvout_preformatter_set_matrix(tvout, &encoder->crtc->mode); mode 689 drivers/gpu/drm/sti/sti_tvout.c tvout_preformatter_set_matrix(tvout, &encoder->crtc->mode); mode 740 drivers/gpu/drm/sti/sti_tvout.c tvout_preformatter_set_matrix(tvout, &encoder->crtc->mode); mode 143 drivers/gpu/drm/sti/sti_vid.c struct drm_display_mode *mode = &crtc->mode; mode 146 drivers/gpu/drm/sti/sti_vid.c int dst_w = clamp_val(state->crtc_w, 0, mode->hdisplay - dst_x); mode 147 drivers/gpu/drm/sti/sti_vid.c int dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); mode 161 drivers/gpu/drm/sti/sti_vid.c ydo = sti_vtg_get_line_number(*mode, dst_y); mode 162 drivers/gpu/drm/sti/sti_vid.c yds = sti_vtg_get_line_number(*mode, dst_y + dst_h - 1); mode 163 drivers/gpu/drm/sti/sti_vid.c xdo = sti_vtg_get_pixel_number(*mode, dst_x); mode 164 drivers/gpu/drm/sti/sti_vid.c xds = sti_vtg_get_pixel_number(*mode, dst_x + dst_w - 1); mode 160 drivers/gpu/drm/sti/sti_vtg.c const struct drm_display_mode *mode) mode 166 drivers/gpu/drm/sti/sti_vtg.c u32 xstart = sti_vtg_get_pixel_number(*mode, 0); mode 167 drivers/gpu/drm/sti/sti_vtg.c u32 ystart = sti_vtg_get_line_number(*mode, 0); mode 168 drivers/gpu/drm/sti/sti_vtg.c u32 xstop = sti_vtg_get_pixel_number(*mode, mode->hdisplay - 1); mode 169 drivers/gpu/drm/sti/sti_vtg.c u32 ystop = sti_vtg_get_line_number(*mode, mode->vdisplay - 1); mode 187 drivers/gpu/drm/sti/sti_vtg.c const struct drm_display_mode *mode) mode 193 drivers/gpu/drm/sti/sti_vtg.c clocksperline = mode->htotal; mode 197 drivers/gpu/drm/sti/sti_vtg.c stop = mode->hsync_end - mode->hsync_start; mode 218 drivers/gpu/drm/sti/sti_vtg.c fallsync_top += mode->vsync_end - mode->vsync_start; mode 223 drivers/gpu/drm/sti/sti_vtg.c risesync_top = mode->vtotal; mode 224 drivers/gpu/drm/sti/sti_vtg.c fallsync_top = mode->vsync_end - mode->vsync_start; mode 241 drivers/gpu/drm/sti/sti_vtg.c const struct drm_display_mode *mode) mode 246 drivers/gpu/drm/sti/sti_vtg.c writel(mode->htotal, vtg->regs + VTG_CLKLN); mode 249 drivers/gpu/drm/sti/sti_vtg.c writel(mode->vtotal * 2, vtg->regs + VTG_HLFLN); mode 252 drivers/gpu/drm/sti/sti_vtg.c vtg_set_output_window(vtg->regs, mode); mode 255 drivers/gpu/drm/sti/sti_vtg.c vtg_set_hsync_vsync_pos(&sync[VTG_SYNC_ID_HDMI - 1], HDMI_DELAY, mode); mode 258 drivers/gpu/drm/sti/sti_vtg.c vtg_set_hsync_vsync_pos(&sync[VTG_SYNC_ID_HDDCS - 1], 0, mode); mode 261 drivers/gpu/drm/sti/sti_vtg.c vtg_set_hsync_vsync_pos(&sync[VTG_SYNC_ID_HDF - 1], AWG_DELAY_HD, mode); mode 264 drivers/gpu/drm/sti/sti_vtg.c vtg_set_hsync_vsync_pos(&sync[VTG_SYNC_ID_DVO - 1], DVO_DELAY, mode); mode 293 drivers/gpu/drm/sti/sti_vtg.c const struct drm_display_mode *mode) mode 296 drivers/gpu/drm/sti/sti_vtg.c vtg_set_mode(vtg, VTG_MODE_MASTER, vtg->sync_params, mode); mode 315 drivers/gpu/drm/sti/sti_vtg.c u32 sti_vtg_get_line_number(struct drm_display_mode mode, int y) mode 317 drivers/gpu/drm/sti/sti_vtg.c u32 start_line = mode.vtotal - mode.vsync_start + 1; mode 319 drivers/gpu/drm/sti/sti_vtg.c if (mode.flags & DRM_MODE_FLAG_INTERLACE) mode 335 drivers/gpu/drm/sti/sti_vtg.c u32 sti_vtg_get_pixel_number(struct drm_display_mode mode, int x) mode 337 drivers/gpu/drm/sti/sti_vtg.c return mode.htotal - mode.hsync_start + x; mode 25 drivers/gpu/drm/sti/sti_vtg.h const struct drm_display_mode *mode); mode 31 drivers/gpu/drm/sti/sti_vtg.h u32 sti_vtg_get_line_number(struct drm_display_mode mode, int y); mode 32 drivers/gpu/drm/sti/sti_vtg.h u32 sti_vtg_get_pixel_number(struct drm_display_mode mode, int x); mode 241 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c dw_mipi_dsi_get_lane_mbps(void *priv_data, const struct drm_display_mode *mode, mode 262 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c pll_out_khz = mode->clock * bpp / lanes; mode 471 drivers/gpu/drm/stm/ltdc.c const struct drm_display_mode *mode) mode 474 drivers/gpu/drm/stm/ltdc.c int target = mode->clock * 1000; mode 495 drivers/gpu/drm/stm/ltdc.c if (mode->type & DRM_MODE_TYPE_PREFERRED) mode 509 drivers/gpu/drm/stm/ltdc.c const struct drm_display_mode *mode, mode 514 drivers/gpu/drm/stm/ltdc.c int rate = mode->clock * 1000; mode 539 drivers/gpu/drm/stm/ltdc.c mode->clock, adjusted_mode->clock); mode 548 drivers/gpu/drm/stm/ltdc.c struct drm_display_mode *mode = &crtc->state->adjusted_mode; mode 563 drivers/gpu/drm/stm/ltdc.c drm_display_mode_to_videomode(mode, &vm); mode 565 drivers/gpu/drm/stm/ltdc.c DRM_DEBUG_DRIVER("CRTC:%d mode:%s\n", crtc->base.id, mode->name); mode 674 drivers/gpu/drm/stm/ltdc.c const struct drm_display_mode *mode) mode 45 drivers/gpu/drm/stm/ltdc.h const struct drm_display_mode *mode); mode 96 drivers/gpu/drm/sun4i/sun4i_backend.c static int sun4i_backend_drm_format_to_layer(u32 format, u32 *mode) mode 100 drivers/gpu/drm/sun4i/sun4i_backend.c *mode = SUN4I_BACKEND_LAY_FBFMT_ARGB8888; mode 104 drivers/gpu/drm/sun4i/sun4i_backend.c *mode = SUN4I_BACKEND_LAY_FBFMT_ARGB4444; mode 108 drivers/gpu/drm/sun4i/sun4i_backend.c *mode = SUN4I_BACKEND_LAY_FBFMT_ARGB1555; mode 112 drivers/gpu/drm/sun4i/sun4i_backend.c *mode = SUN4I_BACKEND_LAY_FBFMT_RGBA5551; mode 116 drivers/gpu/drm/sun4i/sun4i_backend.c *mode = SUN4I_BACKEND_LAY_FBFMT_RGBA4444; mode 120 drivers/gpu/drm/sun4i/sun4i_backend.c *mode = SUN4I_BACKEND_LAY_FBFMT_XRGB8888; mode 124 drivers/gpu/drm/sun4i/sun4i_backend.c *mode = SUN4I_BACKEND_LAY_FBFMT_RGB888; mode 128 drivers/gpu/drm/sun4i/sun4i_backend.c *mode = SUN4I_BACKEND_LAY_FBFMT_RGB565; mode 139 drivers/gpu/drm/sun4i/sun4i_crtc.c struct drm_display_mode *mode = &crtc->state->adjusted_mode; mode 143 drivers/gpu/drm/sun4i/sun4i_crtc.c sun4i_tcon_mode_set(scrtc->tcon, encoder, mode); mode 46 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c struct drm_display_mode *mode) mode 53 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c &hdmi->connector, mode); mode 75 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c struct drm_display_mode *mode = &crtc_state->mode; mode 77 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c if (mode->flags & DRM_MODE_FLAG_DBLCLK) mode 99 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode; mode 107 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c sun4i_hdmi_setup_avi_infoframes(hdmi, mode); mode 120 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c struct drm_display_mode *mode, mode 127 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c clk_set_rate(hdmi->mod_clk, mode->crtc_clock * 1000); mode 128 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c clk_set_rate(hdmi->tmds_clk, mode->crtc_clock * 1000); mode 151 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c writel(SUN4I_HDMI_VID_TIMING_X(mode->hdisplay) | mode 152 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c SUN4I_HDMI_VID_TIMING_Y(mode->vdisplay), mode 155 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c x = mode->htotal - mode->hsync_start; mode 156 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c y = mode->vtotal - mode->vsync_start; mode 160 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c x = mode->hsync_start - mode->hdisplay; mode 161 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c y = mode->vsync_start - mode->vdisplay; mode 165 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c x = mode->hsync_end - mode->hsync_start; mode 166 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c y = mode->vsync_end - mode->vsync_start; mode 171 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c if (mode->flags & DRM_MODE_FLAG_PHSYNC) mode 174 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c if (mode->flags & DRM_MODE_FLAG_PVSYNC) mode 181 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c const struct drm_display_mode *mode) mode 184 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c unsigned long rate = mode->clock * 1000; mode 61 drivers/gpu/drm/sun4i/sun4i_rgb.c const struct drm_display_mode *mode) mode 65 drivers/gpu/drm/sun4i/sun4i_rgb.c u32 hsync = mode->hsync_end - mode->hsync_start; mode 66 drivers/gpu/drm/sun4i/sun4i_rgb.c u32 vsync = mode->vsync_end - mode->vsync_start; mode 67 drivers/gpu/drm/sun4i/sun4i_rgb.c unsigned long long rate = mode->clock * 1000; mode 79 drivers/gpu/drm/sun4i/sun4i_rgb.c if ((mode->hdisplay < 1) || (mode->htotal < 1)) mode 82 drivers/gpu/drm/sun4i/sun4i_rgb.c if ((mode->hdisplay > 0x7ff) || (mode->htotal > 0xfff)) mode 93 drivers/gpu/drm/sun4i/sun4i_rgb.c if ((mode->vdisplay < 1) || (mode->vtotal < 1)) mode 96 drivers/gpu/drm/sun4i/sun4i_rgb.c if ((mode->vdisplay > 0x7ff) || (mode->vtotal > 0xfff)) mode 249 drivers/gpu/drm/sun4i/sun4i_tcon.c static int sun4i_tcon_get_clk_delay(const struct drm_display_mode *mode, mode 252 drivers/gpu/drm/sun4i/sun4i_tcon.c int delay = mode->vtotal - mode->vdisplay; mode 254 drivers/gpu/drm/sun4i/sun4i_tcon.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 268 drivers/gpu/drm/sun4i/sun4i_tcon.c const struct drm_display_mode *mode) mode 271 drivers/gpu/drm/sun4i/sun4i_tcon.c clk_set_rate(tcon->dclk, mode->crtc_clock * 1000); mode 275 drivers/gpu/drm/sun4i/sun4i_tcon.c SUN4I_TCON0_BASIC0_X(mode->crtc_hdisplay) | mode 276 drivers/gpu/drm/sun4i/sun4i_tcon.c SUN4I_TCON0_BASIC0_Y(mode->crtc_vdisplay)); mode 333 drivers/gpu/drm/sun4i/sun4i_tcon.c const struct drm_display_mode *mode) mode 346 drivers/gpu/drm/sun4i/sun4i_tcon.c sun4i_tcon0_mode_set_common(tcon, mode); mode 372 drivers/gpu/drm/sun4i/sun4i_tcon.c block_space = mode->htotal * bpp / (tcon_div * lanes); mode 373 drivers/gpu/drm/sun4i/sun4i_tcon.c block_space -= mode->hdisplay + 40; mode 377 drivers/gpu/drm/sun4i/sun4i_tcon.c SUN4I_TCON0_CPU_TRI0_BLOCK_SIZE(mode->hdisplay)); mode 380 drivers/gpu/drm/sun4i/sun4i_tcon.c SUN4I_TCON0_CPU_TRI1_BLOCK_NUM(mode->vdisplay)); mode 382 drivers/gpu/drm/sun4i/sun4i_tcon.c start_delay = (mode->crtc_vtotal - mode->crtc_vdisplay - 10 - 1); mode 383 drivers/gpu/drm/sun4i/sun4i_tcon.c start_delay = start_delay * mode->crtc_htotal * 149; mode 384 drivers/gpu/drm/sun4i/sun4i_tcon.c start_delay = start_delay / (mode->crtc_clock / 1000) / 8; mode 404 drivers/gpu/drm/sun4i/sun4i_tcon.c const struct drm_display_mode *mode) mode 414 drivers/gpu/drm/sun4i/sun4i_tcon.c sun4i_tcon0_mode_set_common(tcon, mode); mode 420 drivers/gpu/drm/sun4i/sun4i_tcon.c clk_delay = sun4i_tcon_get_clk_delay(mode, 0); mode 429 drivers/gpu/drm/sun4i/sun4i_tcon.c bp = mode->crtc_htotal - mode->crtc_hsync_start; mode 431 drivers/gpu/drm/sun4i/sun4i_tcon.c mode->crtc_htotal, bp); mode 435 drivers/gpu/drm/sun4i/sun4i_tcon.c SUN4I_TCON0_BASIC1_H_TOTAL(mode->htotal) | mode 442 drivers/gpu/drm/sun4i/sun4i_tcon.c bp = mode->crtc_vtotal - mode->crtc_vsync_start; mode 444 drivers/gpu/drm/sun4i/sun4i_tcon.c mode->crtc_vtotal, bp); mode 448 drivers/gpu/drm/sun4i/sun4i_tcon.c SUN4I_TCON0_BASIC2_V_TOTAL(mode->crtc_vtotal * 2) | mode 462 drivers/gpu/drm/sun4i/sun4i_tcon.c if (!(mode->flags & DRM_MODE_FLAG_PHSYNC)) mode 465 drivers/gpu/drm/sun4i/sun4i_tcon.c if (!(mode->flags & DRM_MODE_FLAG_PVSYNC)) mode 481 drivers/gpu/drm/sun4i/sun4i_tcon.c const struct drm_display_mode *mode) mode 493 drivers/gpu/drm/sun4i/sun4i_tcon.c sun4i_tcon0_mode_set_common(tcon, mode); mode 499 drivers/gpu/drm/sun4i/sun4i_tcon.c clk_delay = sun4i_tcon_get_clk_delay(mode, 0); mode 508 drivers/gpu/drm/sun4i/sun4i_tcon.c bp = mode->crtc_htotal - mode->crtc_hsync_start; mode 510 drivers/gpu/drm/sun4i/sun4i_tcon.c mode->crtc_htotal, bp); mode 514 drivers/gpu/drm/sun4i/sun4i_tcon.c SUN4I_TCON0_BASIC1_H_TOTAL(mode->crtc_htotal) | mode 521 drivers/gpu/drm/sun4i/sun4i_tcon.c bp = mode->crtc_vtotal - mode->crtc_vsync_start; mode 523 drivers/gpu/drm/sun4i/sun4i_tcon.c mode->crtc_vtotal, bp); mode 527 drivers/gpu/drm/sun4i/sun4i_tcon.c SUN4I_TCON0_BASIC2_V_TOTAL(mode->crtc_vtotal * 2) | mode 531 drivers/gpu/drm/sun4i/sun4i_tcon.c hsync = mode->crtc_hsync_end - mode->crtc_hsync_start; mode 532 drivers/gpu/drm/sun4i/sun4i_tcon.c vsync = mode->crtc_vsync_end - mode->crtc_vsync_start; mode 539 drivers/gpu/drm/sun4i/sun4i_tcon.c if (mode->flags & DRM_MODE_FLAG_PHSYNC) mode 542 drivers/gpu/drm/sun4i/sun4i_tcon.c if (mode->flags & DRM_MODE_FLAG_PVSYNC) mode 585 drivers/gpu/drm/sun4i/sun4i_tcon.c const struct drm_display_mode *mode) mode 594 drivers/gpu/drm/sun4i/sun4i_tcon.c clk_set_rate(tcon->sclk1, mode->crtc_clock * 1000); mode 597 drivers/gpu/drm/sun4i/sun4i_tcon.c clk_delay = sun4i_tcon_get_clk_delay(mode, 1); mode 603 drivers/gpu/drm/sun4i/sun4i_tcon.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 613 drivers/gpu/drm/sun4i/sun4i_tcon.c SUN4I_TCON1_BASIC0_X(mode->crtc_hdisplay) | mode 614 drivers/gpu/drm/sun4i/sun4i_tcon.c SUN4I_TCON1_BASIC0_Y(mode->crtc_vdisplay)); mode 618 drivers/gpu/drm/sun4i/sun4i_tcon.c SUN4I_TCON1_BASIC1_X(mode->crtc_hdisplay) | mode 619 drivers/gpu/drm/sun4i/sun4i_tcon.c SUN4I_TCON1_BASIC1_Y(mode->crtc_vdisplay)); mode 623 drivers/gpu/drm/sun4i/sun4i_tcon.c SUN4I_TCON1_BASIC2_X(mode->crtc_hdisplay) | mode 624 drivers/gpu/drm/sun4i/sun4i_tcon.c SUN4I_TCON1_BASIC2_Y(mode->crtc_vdisplay)); mode 627 drivers/gpu/drm/sun4i/sun4i_tcon.c bp = mode->crtc_htotal - mode->crtc_hsync_start; mode 629 drivers/gpu/drm/sun4i/sun4i_tcon.c mode->htotal, bp); mode 631 drivers/gpu/drm/sun4i/sun4i_tcon.c SUN4I_TCON1_BASIC3_H_TOTAL(mode->crtc_htotal) | mode 634 drivers/gpu/drm/sun4i/sun4i_tcon.c bp = mode->crtc_vtotal - mode->crtc_vsync_start; mode 636 drivers/gpu/drm/sun4i/sun4i_tcon.c mode->crtc_vtotal, bp); mode 651 drivers/gpu/drm/sun4i/sun4i_tcon.c vtotal = mode->vtotal; mode 652 drivers/gpu/drm/sun4i/sun4i_tcon.c if (!(mode->flags & DRM_MODE_FLAG_INTERLACE)) mode 661 drivers/gpu/drm/sun4i/sun4i_tcon.c hsync = mode->crtc_hsync_end - mode->crtc_hsync_start; mode 662 drivers/gpu/drm/sun4i/sun4i_tcon.c vsync = mode->crtc_vsync_end - mode->crtc_vsync_start; mode 676 drivers/gpu/drm/sun4i/sun4i_tcon.c const struct drm_display_mode *mode) mode 681 drivers/gpu/drm/sun4i/sun4i_tcon.c sun4i_tcon0_mode_set_cpu(tcon, encoder, mode); mode 684 drivers/gpu/drm/sun4i/sun4i_tcon.c sun4i_tcon0_mode_set_lvds(tcon, encoder, mode); mode 687 drivers/gpu/drm/sun4i/sun4i_tcon.c sun4i_tcon0_mode_set_rgb(tcon, encoder, mode); mode 692 drivers/gpu/drm/sun4i/sun4i_tcon.c sun4i_tcon1_mode_set(tcon, mode); mode 191 drivers/gpu/drm/sun4i/sun4i_tcon.h #define SUN4I_TCON_SAFE_PERIOD_MODE(mode) ((mode) & 0x3) mode 275 drivers/gpu/drm/sun4i/sun4i_tcon.h const struct drm_display_mode *mode); mode 142 drivers/gpu/drm/sun4i/sun4i_tv.c u32 mode; mode 215 drivers/gpu/drm/sun4i/sun4i_tv.c .mode = SUN4I_TVE_CFG0_RES_480i, mode 244 drivers/gpu/drm/sun4i/sun4i_tv.c .mode = SUN4I_TVE_CFG0_RES_576i, mode 291 drivers/gpu/drm/sun4i/sun4i_tv.c static const struct tv_mode *sun4i_tv_find_tv_by_mode(const struct drm_display_mode *mode) mode 300 drivers/gpu/drm/sun4i/sun4i_tv.c mode->name, tv_mode->name); mode 302 drivers/gpu/drm/sun4i/sun4i_tv.c if (!strcmp(mode->name, tv_mode->name)) mode 311 drivers/gpu/drm/sun4i/sun4i_tv.c mode->name, tv_mode->name, mode 312 drivers/gpu/drm/sun4i/sun4i_tv.c mode->vdisplay, tv_mode->vdisplay); mode 314 drivers/gpu/drm/sun4i/sun4i_tv.c if (mode->vdisplay == tv_mode->vdisplay) mode 322 drivers/gpu/drm/sun4i/sun4i_tv.c struct drm_display_mode *mode) mode 324 drivers/gpu/drm/sun4i/sun4i_tv.c DRM_DEBUG_DRIVER("Creating mode %s\n", mode->name); mode 326 drivers/gpu/drm/sun4i/sun4i_tv.c mode->type = DRM_MODE_TYPE_DRIVER; mode 327 drivers/gpu/drm/sun4i/sun4i_tv.c mode->clock = 13500; mode 328 drivers/gpu/drm/sun4i/sun4i_tv.c mode->flags = DRM_MODE_FLAG_INTERLACE; mode 330 drivers/gpu/drm/sun4i/sun4i_tv.c mode->hdisplay = tv_mode->hdisplay; mode 331 drivers/gpu/drm/sun4i/sun4i_tv.c mode->hsync_start = mode->hdisplay + tv_mode->hfront_porch; mode 332 drivers/gpu/drm/sun4i/sun4i_tv.c mode->hsync_end = mode->hsync_start + tv_mode->hsync_len; mode 333 drivers/gpu/drm/sun4i/sun4i_tv.c mode->htotal = mode->hsync_end + tv_mode->hback_porch; mode 335 drivers/gpu/drm/sun4i/sun4i_tv.c mode->vdisplay = tv_mode->vdisplay; mode 336 drivers/gpu/drm/sun4i/sun4i_tv.c mode->vsync_start = mode->vdisplay + tv_mode->vfront_porch; mode 337 drivers/gpu/drm/sun4i/sun4i_tv.c mode->vsync_end = mode->vsync_start + tv_mode->vsync_len; mode 338 drivers/gpu/drm/sun4i/sun4i_tv.c mode->vtotal = mode->vsync_end + tv_mode->vback_porch; mode 370 drivers/gpu/drm/sun4i/sun4i_tv.c struct drm_display_mode *mode, mode 374 drivers/gpu/drm/sun4i/sun4i_tv.c const struct tv_mode *tv_mode = sun4i_tv_find_tv_by_mode(mode); mode 386 drivers/gpu/drm/sun4i/sun4i_tv.c tv_mode->mode | mode 490 drivers/gpu/drm/sun4i/sun4i_tv.c struct drm_display_mode *mode; mode 493 drivers/gpu/drm/sun4i/sun4i_tv.c mode = drm_mode_create(connector->dev); mode 494 drivers/gpu/drm/sun4i/sun4i_tv.c if (!mode) { mode 499 drivers/gpu/drm/sun4i/sun4i_tv.c strcpy(mode->name, tv_mode->name); mode 501 drivers/gpu/drm/sun4i/sun4i_tv.c sun4i_tv_mode_to_drm_mode(tv_mode, mode); mode 502 drivers/gpu/drm/sun4i/sun4i_tv.c drm_mode_probed_add(connector, mode); mode 509 drivers/gpu/drm/sun4i/sun4i_tv.c struct drm_display_mode *mode) mode 316 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c enum sun6i_dsi_inst_mode mode, mode 322 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c SUN6I_DSI_INST_FUNC_INST_MODE(mode) | mode 366 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c struct drm_display_mode *mode) mode 368 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c u16 start = clamp(mode->vtotal - mode->vdisplay - 10, 8, 100); mode 369 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c u16 delay = mode->vtotal - (mode->vsync_end - mode->vdisplay) + start; mode 371 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c if (delay > mode->vtotal) mode 372 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c delay = delay % mode->vtotal; mode 378 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c struct drm_display_mode *mode) mode 383 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c return mode->htotal * Bpp / device->lanes; mode 387 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c struct drm_display_mode *mode, mode 392 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c edge0 += (mode->hdisplay + 40) * SUN6I_DSI_TCON_DIV / 8; mode 401 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c struct drm_display_mode *mode, mode 406 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c unsigned int hbp = mode->htotal - mode->hsync_end; mode 410 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c edge1 += (mode->hdisplay + hbp + 20) * Bpp / device->lanes; mode 419 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c struct drm_display_mode *mode) mode 425 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c u16 line_num = sun6i_dsi_get_line_num(dsi, mode); mode 428 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c edge1 = sun6i_dsi_get_drq_edge1(dsi, mode, line_num); mode 429 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c edge0 = sun6i_dsi_get_drq_edge0(dsi, mode, line_num, edge1); mode 440 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c } else if ((mode->hsync_start - mode->hdisplay) > 20) { mode 442 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c u16 drq = (mode->hsync_start - mode->hdisplay) - 20; mode 455 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c struct drm_display_mode *mode) mode 461 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c u32 hsync_porch = (mode->htotal - mode->hdisplay) * 150; mode 463 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c delay = (hsync_porch / ((mode->clock / 1000) * 8)); mode 480 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c struct drm_display_mode *mode) mode 513 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c wc = mode->hdisplay * mipi_dsi_pixel_format_to_bpp(device->format) / 8; mode 532 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c struct drm_display_mode *mode) mode 544 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c hblk = mode->hdisplay * Bpp; mode 560 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c (mode->hsync_end - mode->hsync_start) * Bpp - HSA_PACKET_OVERHEAD); mode 569 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c (mode->htotal - mode->hsync_end) * Bpp - HBP_PACKET_OVERHEAD); mode 578 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c (mode->hsync_start - mode->hdisplay) * Bpp - HFP_PACKET_OVERHEAD); mode 587 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c (mode->htotal - (mode->hsync_end - mode->hsync_start)) * Bpp - mode 628 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c SUN6I_DSI_BASIC_SIZE0_VSA(mode->vsync_end - mode 629 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c mode->vsync_start) | mode 630 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c SUN6I_DSI_BASIC_SIZE0_VBP(mode->vtotal - mode 631 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c mode->vsync_end)); mode 634 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c SUN6I_DSI_BASIC_SIZE1_VACT(mode->vdisplay) | mode 635 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c SUN6I_DSI_BASIC_SIZE1_VT(mode->vtotal)); mode 718 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode; mode 729 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c delay = sun6i_dsi_get_video_start_delay(dsi, mode); mode 736 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c sun6i_dsi_setup_burst(dsi, mode); mode 737 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c sun6i_dsi_setup_inst_loop(dsi, mode); mode 738 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c sun6i_dsi_setup_format(dsi, mode); mode 739 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c sun6i_dsi_setup_timings(dsi, mode); mode 743 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c phy_mipi_dphy_get_default_config(mode->clock * 1000, mode 154 drivers/gpu/drm/sun4i/sun8i_csc.c enum sun8i_csc_mode mode, mode 161 drivers/gpu/drm/sun4i/sun8i_csc.c switch (mode) { mode 178 drivers/gpu/drm/sun4i/sun8i_csc.c enum sun8i_csc_mode mode, mode 185 drivers/gpu/drm/sun4i/sun8i_csc.c switch (mode) { mode 229 drivers/gpu/drm/sun4i/sun8i_csc.c enum sun8i_csc_mode mode, mode 237 drivers/gpu/drm/sun4i/sun8i_csc.c mode, encoding, range); mode 244 drivers/gpu/drm/sun4i/sun8i_csc.c mode, encoding, range); mode 31 drivers/gpu/drm/sun4i/sun8i_csc.h enum sun8i_csc_mode mode, mode 18 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c struct drm_display_mode *mode, mode 24 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c clk_set_rate(hdmi->clk_tmds, mode->crtc_clock * 1000); mode 38 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c const struct drm_display_mode *mode) mode 40 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c if (mode->clock > 297000) mode 48 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c const struct drm_display_mode *mode) mode 56 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c if (mode->clock > 340000) mode 180 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h const struct drm_display_mode *mode); mode 344 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c struct drm_display_mode *mode) mode 349 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 352 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 359 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c clk_set_rate(phy->clk_phy, mode->crtc_clock * 1000); mode 361 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c return phy->variant->phy_config(hdmi, phy, mode->crtc_clock * 1000); mode 138 drivers/gpu/drm/sun4i/sun8i_vi_layer.c struct drm_display_mode *mode; mode 144 drivers/gpu/drm/sun4i/sun8i_vi_layer.c mode = &plane->state->crtc->state->mode; mode 145 drivers/gpu/drm/sun4i/sun8i_vi_layer.c fps = (mode->clock * 1000) / (mode->vtotal * mode->htotal); mode 149 drivers/gpu/drm/sun4i/sun8i_vi_layer.c do_div(ability, mode->vdisplay * fps * max(src_w, dst_w)); mode 416 drivers/gpu/drm/tegra/dc.c switch (window->tiling.mode) { mode 433 drivers/gpu/drm/tegra/dc.c switch (window->tiling.mode) { mode 636 drivers/gpu/drm/tegra/dc.c if (tiling->mode == TEGRA_BO_TILING_MODE_BLOCK && mode 1586 drivers/gpu/drm/tegra/dc.c struct drm_display_mode *mode) mode 1599 drivers/gpu/drm/tegra/dc.c value = ((mode->vsync_end - mode->vsync_start) << 16) | mode 1600 drivers/gpu/drm/tegra/dc.c ((mode->hsync_end - mode->hsync_start) << 0); mode 1603 drivers/gpu/drm/tegra/dc.c value = ((mode->vtotal - mode->vsync_end) << 16) | mode 1604 drivers/gpu/drm/tegra/dc.c ((mode->htotal - mode->hsync_end) << 0); mode 1607 drivers/gpu/drm/tegra/dc.c value = ((mode->vsync_start - mode->vdisplay) << 16) | mode 1608 drivers/gpu/drm/tegra/dc.c ((mode->hsync_start - mode->hdisplay) << 0); mode 1611 drivers/gpu/drm/tegra/dc.c value = (mode->vdisplay << 16) | mode->hdisplay; mode 1780 drivers/gpu/drm/tegra/dc.c struct drm_display_mode *mode = &crtc->state->adjusted_mode; mode 1859 drivers/gpu/drm/tegra/dc.c tegra_dc_set_timings(dc, mode); mode 759 drivers/gpu/drm/tegra/drm.c enum tegra_bo_tiling_mode mode; mode 764 drivers/gpu/drm/tegra/drm.c switch (args->mode) { mode 766 drivers/gpu/drm/tegra/drm.c mode = TEGRA_BO_TILING_MODE_PITCH; mode 774 drivers/gpu/drm/tegra/drm.c mode = TEGRA_BO_TILING_MODE_TILED; mode 782 drivers/gpu/drm/tegra/drm.c mode = TEGRA_BO_TILING_MODE_BLOCK; mode 800 drivers/gpu/drm/tegra/drm.c bo->tiling.mode = mode; mode 822 drivers/gpu/drm/tegra/drm.c switch (bo->tiling.mode) { mode 824 drivers/gpu/drm/tegra/drm.c args->mode = DRM_TEGRA_GEM_TILING_MODE_PITCH; mode 829 drivers/gpu/drm/tegra/drm.c args->mode = DRM_TEGRA_GEM_TILING_MODE_TILED; mode 834 drivers/gpu/drm/tegra/drm.c args->mode = DRM_TEGRA_GEM_TILING_MODE_BLOCK; mode 487 drivers/gpu/drm/tegra/dsi.c const struct drm_display_mode *mode) mode 547 drivers/gpu/drm/tegra/dsi.c hact = mode->hdisplay * mul / div; mode 550 drivers/gpu/drm/tegra/dsi.c hsw = (mode->hsync_end - mode->hsync_start) * mul / div; mode 553 drivers/gpu/drm/tegra/dsi.c hbp = (mode->htotal - mode->hsync_end) * mul / div; mode 559 drivers/gpu/drm/tegra/dsi.c hfp = (mode->hsync_start - mode->hdisplay) * mul / div; mode 582 drivers/gpu/drm/tegra/dsi.c bytes = 1 + (mode->hdisplay / 2) * mul / div; mode 585 drivers/gpu/drm/tegra/dsi.c bytes = 1 + mode->hdisplay * mul / div; mode 608 drivers/gpu/drm/tegra/dsi.c bclk = DIV_ROUND_UP(mode->htotal * mul, div * lanes); mode 620 drivers/gpu/drm/tegra/dsi.c tegra_dsi_configure(dsi->slave, pipe, mode); mode 626 drivers/gpu/drm/tegra/dsi.c tegra_dsi_ganged_enable(dsi, 0, mode->hdisplay / 2); mode 627 drivers/gpu/drm/tegra/dsi.c tegra_dsi_ganged_enable(dsi->slave, mode->hdisplay / 2, mode 628 drivers/gpu/drm/tegra/dsi.c mode->hdisplay / 2); mode 817 drivers/gpu/drm/tegra/dsi.c struct drm_display_mode *mode) mode 906 drivers/gpu/drm/tegra/dsi.c struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode; mode 928 drivers/gpu/drm/tegra/dsi.c tegra_dsi_configure(dsi, dc->pipe, mode); mode 957 drivers/gpu/drm/tegra/dsi.c state->pclk = crtc_state->mode.clock * 1000; mode 969 drivers/gpu/drm/tegra/dsi.c state->vrefresh = drm_mode_vrefresh(&crtc_state->mode); mode 49 drivers/gpu/drm/tegra/fb.c tiling->mode = TEGRA_BO_TILING_MODE_PITCH; mode 54 drivers/gpu/drm/tegra/fb.c tiling->mode = TEGRA_BO_TILING_MODE_TILED; mode 59 drivers/gpu/drm/tegra/fb.c tiling->mode = TEGRA_BO_TILING_MODE_BLOCK; mode 64 drivers/gpu/drm/tegra/fb.c tiling->mode = TEGRA_BO_TILING_MODE_BLOCK; mode 69 drivers/gpu/drm/tegra/fb.c tiling->mode = TEGRA_BO_TILING_MODE_BLOCK; mode 74 drivers/gpu/drm/tegra/fb.c tiling->mode = TEGRA_BO_TILING_MODE_BLOCK; mode 79 drivers/gpu/drm/tegra/fb.c tiling->mode = TEGRA_BO_TILING_MODE_BLOCK; mode 84 drivers/gpu/drm/tegra/fb.c tiling->mode = TEGRA_BO_TILING_MODE_BLOCK; mode 295 drivers/gpu/drm/tegra/gem.c bo->tiling.mode = TEGRA_BO_TILING_MODE_TILED; mode 25 drivers/gpu/drm/tegra/gem.h enum tegra_bo_tiling_mode mode; mode 685 drivers/gpu/drm/tegra/hdmi.c struct drm_display_mode *mode) mode 692 drivers/gpu/drm/tegra/hdmi.c &hdmi->output.connector, mode); mode 1115 drivers/gpu/drm/tegra/hdmi.c struct drm_display_mode *mode) mode 1119 drivers/gpu/drm/tegra/hdmi.c unsigned long pclk = mode->clock * 1000; mode 1179 drivers/gpu/drm/tegra/hdmi.c struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode; mode 1199 drivers/gpu/drm/tegra/hdmi.c hdmi->pixel_clock = mode->clock * 1000; mode 1200 drivers/gpu/drm/tegra/hdmi.c h_sync_width = mode->hsync_end - mode->hsync_start; mode 1201 drivers/gpu/drm/tegra/hdmi.c h_back_porch = mode->htotal - mode->hsync_end; mode 1202 drivers/gpu/drm/tegra/hdmi.c h_front_porch = mode->hsync_start - mode->hdisplay; mode 1249 drivers/gpu/drm/tegra/hdmi.c if ((mode->hdisplay == 720) && ((mode->vdisplay == 480) || mode 1250 drivers/gpu/drm/tegra/hdmi.c (mode->vdisplay == 576))) mode 1290 drivers/gpu/drm/tegra/hdmi.c tegra_hdmi_setup_avi_infoframe(hdmi, mode); mode 1357 drivers/gpu/drm/tegra/hdmi.c if (mode->flags & DRM_MODE_FLAG_PHSYNC) mode 1360 drivers/gpu/drm/tegra/hdmi.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 1363 drivers/gpu/drm/tegra/hdmi.c if (mode->flags & DRM_MODE_FLAG_PVSYNC) mode 1366 drivers/gpu/drm/tegra/hdmi.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 1405 drivers/gpu/drm/tegra/hdmi.c unsigned long pclk = crtc_state->mode.clock * 1000; mode 349 drivers/gpu/drm/tegra/hub.c if (tiling->mode == TEGRA_BO_TILING_MODE_BLOCK && mode 495 drivers/gpu/drm/tegra/hub.c switch (state->tiling.mode) { mode 98 drivers/gpu/drm/tegra/rgb.c struct drm_display_mode *mode) mode 174 drivers/gpu/drm/tegra/rgb.c unsigned long pclk = crtc_state->mode.clock * 1000; mode 904 drivers/gpu/drm/tegra/sor.c const struct drm_display_mode *mode, mode 909 drivers/gpu/drm/tegra/sor.c const u64 pclk = mode->clock * 1000; mode 926 drivers/gpu/drm/tegra/sor.c params.num_clocks = div_u64(link_rate * mode->hdisplay, pclk); mode 961 drivers/gpu/drm/tegra/sor.c num_syms_per_line = (mode->hdisplay * config->bits_per_pixel) * mode 976 drivers/gpu/drm/tegra/sor.c num = ((mode->htotal - mode->hdisplay) - 7) * link_rate; mode 985 drivers/gpu/drm/tegra/sor.c num = (mode->hdisplay - 25) * link_rate; mode 1036 drivers/gpu/drm/tegra/sor.c const struct drm_display_mode *mode, mode 1051 drivers/gpu/drm/tegra/sor.c if (mode->flags & DRM_MODE_FLAG_PHSYNC) mode 1054 drivers/gpu/drm/tegra/sor.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 1057 drivers/gpu/drm/tegra/sor.c if (mode->flags & DRM_MODE_FLAG_PVSYNC) mode 1060 drivers/gpu/drm/tegra/sor.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 1096 drivers/gpu/drm/tegra/sor.c value = ((mode->vtotal & 0x7fff) << 16) | (mode->htotal & 0x7fff); mode 1100 drivers/gpu/drm/tegra/sor.c vse = mode->vsync_end - mode->vsync_start - 1; mode 1101 drivers/gpu/drm/tegra/sor.c hse = mode->hsync_end - mode->hsync_start - 1; mode 1107 drivers/gpu/drm/tegra/sor.c vbe = vse + (mode->vtotal - mode->vsync_end); mode 1108 drivers/gpu/drm/tegra/sor.c hbe = hse + (mode->htotal - mode->hsync_end); mode 1114 drivers/gpu/drm/tegra/sor.c vbs = vbe + mode->vdisplay; mode 1115 drivers/gpu/drm/tegra/sor.c hbs = hbe + mode->hdisplay; mode 1573 drivers/gpu/drm/tegra/sor.c struct drm_display_mode *mode) mode 1638 drivers/gpu/drm/tegra/sor.c static int calc_h_ref_to_sync(const struct drm_display_mode *mode, mode 1643 drivers/gpu/drm/tegra/sor.c hfp = mode->hsync_start - mode->hdisplay; mode 1644 drivers/gpu/drm/tegra/sor.c hsw = mode->hsync_end - mode->hsync_start; mode 1645 drivers/gpu/drm/tegra/sor.c hbp = mode->htotal - mode->hsync_end; mode 1665 drivers/gpu/drm/tegra/sor.c if (mode->hdisplay < 16) mode 1681 drivers/gpu/drm/tegra/sor.c struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode; mode 1718 drivers/gpu/drm/tegra/sor.c err = tegra_sor_compute_config(sor, mode, &config, &link); mode 1957 drivers/gpu/drm/tegra/sor.c tegra_sor_mode_set(sor, mode, state); mode 1992 drivers/gpu/drm/tegra/sor.c unsigned long pclk = crtc_state->mode.clock * 1000; mode 2103 drivers/gpu/drm/tegra/sor.c const struct drm_display_mode *mode) mode 2118 drivers/gpu/drm/tegra/sor.c &sor->output.connector, mode); mode 2369 drivers/gpu/drm/tegra/sor.c struct drm_display_mode *mode; mode 2371 drivers/gpu/drm/tegra/sor.c mode = &sor->output.encoder.crtc->state->adjusted_mode; mode 2373 drivers/gpu/drm/tegra/sor.c if (mode->clock >= 340000 && scdc->supported) { mode 2429 drivers/gpu/drm/tegra/sor.c struct drm_display_mode *mode; mode 2436 drivers/gpu/drm/tegra/sor.c mode = &encoder->crtc->state->adjusted_mode; mode 2437 drivers/gpu/drm/tegra/sor.c pclk = mode->clock * 1000; mode 2513 drivers/gpu/drm/tegra/sor.c if (mode->clock < 340000) { mode 2578 drivers/gpu/drm/tegra/sor.c if (mode->clock >= 340000) mode 2589 drivers/gpu/drm/tegra/sor.c if (mode->clock < 75000) mode 2595 drivers/gpu/drm/tegra/sor.c max_ac = ((mode->htotal - mode->hdisplay) - SOR_REKEY - 18) / 32; mode 2604 drivers/gpu/drm/tegra/sor.c (mode->hsync_end - mode->hsync_start) + mode 2605 drivers/gpu/drm/tegra/sor.c (mode->htotal - mode->hsync_end) - 10; mode 2620 drivers/gpu/drm/tegra/sor.c err = tegra_sor_hdmi_setup_avi_infoframe(sor, mode); mode 2639 drivers/gpu/drm/tegra/sor.c settings = tegra_sor_hdmi_find_settings(sor, mode->clock * 1000); mode 2642 drivers/gpu/drm/tegra/sor.c mode->clock * 1000); mode 2760 drivers/gpu/drm/tegra/sor.c tegra_sor_mode_set(sor, mode, state); mode 76 drivers/gpu/drm/tilcdc/tilcdc_crtc.c end = start + (crtc->mode.vdisplay * fb->pitches[0]); mode 216 drivers/gpu/drm/tilcdc/tilcdc_crtc.c req_rate = crtc->mode.clock * 1000; mode 256 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->lcd_fck_rate, crtc->mode.clock, clkdiv); mode 268 drivers/gpu/drm/tilcdc/tilcdc_crtc.c static uint tilcdc_mode_hvtotal(const struct drm_display_mode *mode) mode 270 drivers/gpu/drm/tilcdc/tilcdc_crtc.c return (uint) div_u64(1000llu * mode->htotal * mode->vtotal, mode 271 drivers/gpu/drm/tilcdc/tilcdc_crtc.c mode->clock); mode 281 drivers/gpu/drm/tilcdc/tilcdc_crtc.c struct drm_display_mode *mode = &crtc->state->adjusted_mode; mode 316 drivers/gpu/drm/tilcdc/tilcdc_crtc.c hbp = mode->htotal - mode->hsync_end; mode 317 drivers/gpu/drm/tilcdc/tilcdc_crtc.c hfp = mode->hsync_start - mode->hdisplay; mode 318 drivers/gpu/drm/tilcdc/tilcdc_crtc.c hsw = mode->hsync_end - mode->hsync_start; mode 319 drivers/gpu/drm/tilcdc/tilcdc_crtc.c vbp = mode->vtotal - mode->vsync_end; mode 320 drivers/gpu/drm/tilcdc/tilcdc_crtc.c vfp = mode->vsync_start - mode->vdisplay; mode 321 drivers/gpu/drm/tilcdc/tilcdc_crtc.c vsw = mode->vsync_end - mode->vsync_start; mode 324 drivers/gpu/drm/tilcdc/tilcdc_crtc.c mode->hdisplay, mode->vdisplay, hbp, hfp, hsw, vbp, vfp, vsw); mode 344 drivers/gpu/drm/tilcdc/tilcdc_crtc.c reg = (((mode->hdisplay >> 4) - 1) << 4) | mode 349 drivers/gpu/drm/tilcdc/tilcdc_crtc.c reg |= (((mode->hdisplay >> 4) - 1) & 0x40) >> 3; mode 352 drivers/gpu/drm/tilcdc/tilcdc_crtc.c reg = ((mode->vdisplay - 1) & 0x3ff) | mode 364 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if ((mode->vdisplay - 1) & 0x400) { mode 417 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 422 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 622 drivers/gpu/drm/tilcdc/tilcdc_crtc.c const struct drm_display_mode *mode, mode 636 drivers/gpu/drm/tilcdc/tilcdc_crtc.c adjusted_mode->hskew = mode->hsync_end - mode->hsync_start; mode 639 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) { mode 731 drivers/gpu/drm/tilcdc/tilcdc_crtc.c const struct drm_display_mode *mode) mode 741 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (mode->hdisplay > tilcdc_crtc_max_width(crtc)) mode 745 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (mode->hdisplay & 0xf) mode 748 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (mode->vdisplay > 2048) mode 752 drivers/gpu/drm/tilcdc/tilcdc_crtc.c mode->hdisplay, mode->vdisplay, mode 753 drivers/gpu/drm/tilcdc/tilcdc_crtc.c drm_mode_vrefresh(mode), mode->clock); mode 755 drivers/gpu/drm/tilcdc/tilcdc_crtc.c hbp = mode->htotal - mode->hsync_end; mode 756 drivers/gpu/drm/tilcdc/tilcdc_crtc.c hfp = mode->hsync_start - mode->hdisplay; mode 757 drivers/gpu/drm/tilcdc/tilcdc_crtc.c hsw = mode->hsync_end - mode->hsync_start; mode 758 drivers/gpu/drm/tilcdc/tilcdc_crtc.c vbp = mode->vtotal - mode->vsync_end; mode 759 drivers/gpu/drm/tilcdc/tilcdc_crtc.c vfp = mode->vsync_start - mode->vdisplay; mode 760 drivers/gpu/drm/tilcdc/tilcdc_crtc.c vsw = mode->vsync_end - mode->vsync_start; mode 796 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (mode->clock > priv->max_pixelclock) { mode 805 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (mode->hdisplay > priv->max_width) mode 809 drivers/gpu/drm/tilcdc/tilcdc_crtc.c bandwidth = mode->hdisplay * mode->vdisplay * mode 810 drivers/gpu/drm/tilcdc/tilcdc_crtc.c drm_mode_vrefresh(mode); mode 43 drivers/gpu/drm/tilcdc/tilcdc_panel.c static void panel_encoder_dpms(struct drm_encoder *encoder, int mode) mode 50 drivers/gpu/drm/tilcdc/tilcdc_panel.c backlight->props.power = mode == DRM_MODE_DPMS_ON ? mode 57 drivers/gpu/drm/tilcdc/tilcdc_panel.c mode == DRM_MODE_DPMS_ON ? 1 : 0); mode 71 drivers/gpu/drm/tilcdc/tilcdc_panel.c struct drm_display_mode *mode, mode 146 drivers/gpu/drm/tilcdc/tilcdc_panel.c struct drm_display_mode *mode = drm_mode_create(dev); mode 152 drivers/gpu/drm/tilcdc/tilcdc_panel.c drm_display_mode_from_videomode(&vm, mode); mode 154 drivers/gpu/drm/tilcdc/tilcdc_panel.c mode->type = DRM_MODE_TYPE_DRIVER; mode 157 drivers/gpu/drm/tilcdc/tilcdc_panel.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 159 drivers/gpu/drm/tilcdc/tilcdc_panel.c drm_mode_set_name(mode); mode 160 drivers/gpu/drm/tilcdc/tilcdc_panel.c drm_mode_probed_add(connector, mode); mode 48 drivers/gpu/drm/tilcdc/tilcdc_plane.c if (crtc_state->mode.hdisplay != state->crtc_w || mode 49 drivers/gpu/drm/tilcdc/tilcdc_plane.c crtc_state->mode.vdisplay != state->crtc_h) { mode 52 drivers/gpu/drm/tilcdc/tilcdc_plane.c crtc_state->mode.hdisplay, crtc_state->mode.vdisplay, mode 57 drivers/gpu/drm/tilcdc/tilcdc_plane.c pitch = crtc_state->mode.hdisplay * mode 52 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c static void tfp410_encoder_dpms(struct drm_encoder *encoder, int mode) mode 56 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c if (tfp410_encoder->dpms == mode) mode 59 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c if (mode == DRM_MODE_DPMS_ON) { mode 67 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c tfp410_encoder->dpms = mode; mode 81 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c struct drm_display_mode *mode, mode 65 drivers/gpu/drm/tiny/repaper.c const struct drm_display_mode *mode; mode 883 drivers/gpu/drm/tiny/repaper.c struct drm_display_mode *mode; mode 885 drivers/gpu/drm/tiny/repaper.c mode = drm_mode_duplicate(connector->dev, epd->mode); mode 886 drivers/gpu/drm/tiny/repaper.c if (!mode) { mode 891 drivers/gpu/drm/tiny/repaper.c drm_mode_set_name(mode); mode 892 drivers/gpu/drm/tiny/repaper.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 893 drivers/gpu/drm/tiny/repaper.c drm_mode_probed_add(connector, mode); mode 895 drivers/gpu/drm/tiny/repaper.c connector->display_info.width_mm = mode->width_mm; mode 896 drivers/gpu/drm/tiny/repaper.c connector->display_info.height_mm = mode->height_mm; mode 996 drivers/gpu/drm/tiny/repaper.c const struct drm_display_mode *mode; mode 1084 drivers/gpu/drm/tiny/repaper.c mode = &repaper_e1144cs021_mode; mode 1094 drivers/gpu/drm/tiny/repaper.c mode = &repaper_e1190cs021_mode; mode 1104 drivers/gpu/drm/tiny/repaper.c mode = &repaper_e2200cs021_mode; mode 1122 drivers/gpu/drm/tiny/repaper.c mode = &repaper_e2271cs021_mode; mode 1135 drivers/gpu/drm/tiny/repaper.c epd->mode = mode; mode 1136 drivers/gpu/drm/tiny/repaper.c epd->width = mode->hdisplay; mode 1137 drivers/gpu/drm/tiny/repaper.c epd->height = mode->vdisplay; mode 1150 drivers/gpu/drm/tiny/repaper.c drm->mode_config.min_width = mode->hdisplay; mode 1151 drivers/gpu/drm/tiny/repaper.c drm->mode_config.max_width = mode->hdisplay; mode 1152 drivers/gpu/drm/tiny/repaper.c drm->mode_config.min_height = mode->vdisplay; mode 1153 drivers/gpu/drm/tiny/repaper.c drm->mode_config.max_height = mode->vdisplay; mode 57 drivers/gpu/drm/ttm/ttm_bo.c .mode = S_IRUGO mode 59 drivers/gpu/drm/ttm/ttm_bo_manager.c enum drm_mm_insert_mode mode; mode 71 drivers/gpu/drm/ttm/ttm_bo_manager.c mode = DRM_MM_INSERT_BEST; mode 73 drivers/gpu/drm/ttm/ttm_bo_manager.c mode = DRM_MM_INSERT_HIGH; mode 79 drivers/gpu/drm/ttm/ttm_bo_manager.c place->fpfn, lpfn, mode); mode 60 drivers/gpu/drm/ttm/ttm_memory.c .mode = S_IRUGO mode 64 drivers/gpu/drm/ttm/ttm_memory.c .mode = S_IRUGO | S_IWUSR mode 68 drivers/gpu/drm/ttm/ttm_memory.c .mode = S_IRUGO | S_IWUSR mode 72 drivers/gpu/drm/ttm/ttm_memory.c .mode = S_IRUGO | S_IWUSR mode 76 drivers/gpu/drm/ttm/ttm_memory.c .mode = S_IRUGO mode 176 drivers/gpu/drm/ttm/ttm_memory.c .mode = S_IRUGO | S_IWUSR mode 128 drivers/gpu/drm/ttm/ttm_page_alloc.c .mode = S_IRUGO | S_IWUSR mode 132 drivers/gpu/drm/ttm/ttm_page_alloc.c .mode = S_IRUGO | S_IWUSR mode 136 drivers/gpu/drm/ttm/ttm_page_alloc.c .mode = S_IRUGO | S_IWUSR mode 176 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c .mode = S_IRUGO | S_IWUSR mode 180 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c .mode = S_IRUGO | S_IWUSR mode 184 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c .mode = S_IRUGO | S_IWUSR mode 74 drivers/gpu/drm/tve200/tve200_display.c const struct drm_display_mode *mode = &cstate->mode; mode 81 drivers/gpu/drm/tve200/tve200_display.c if (!(mode->hdisplay == 352 && mode->vdisplay == 240) && /* SIF(525) */ mode 82 drivers/gpu/drm/tve200/tve200_display.c !(mode->hdisplay == 352 && mode->vdisplay == 288) && /* CIF(625) */ mode 83 drivers/gpu/drm/tve200/tve200_display.c !(mode->hdisplay == 640 && mode->vdisplay == 480) && /* VGA */ mode 84 drivers/gpu/drm/tve200/tve200_display.c !(mode->hdisplay == 720 && mode->vdisplay == 480) && /* D1 */ mode 85 drivers/gpu/drm/tve200/tve200_display.c !(mode->hdisplay == 720 && mode->vdisplay == 576)) { /* D1 */ mode 87 drivers/gpu/drm/tve200/tve200_display.c mode->hdisplay, mode->vdisplay); mode 104 drivers/gpu/drm/tve200/tve200_display.c if (fb->pitches[0] != mode->hdisplay * fb->format->cpp[0]) { mode 128 drivers/gpu/drm/tve200/tve200_display.c const struct drm_display_mode *mode = &cstate->mode; mode 154 drivers/gpu/drm/tve200/tve200_display.c if ((mode->hdisplay == 352 && mode->vdisplay == 240) || /* SIF(525) */ mode 155 drivers/gpu/drm/tve200/tve200_display.c (mode->hdisplay == 352 && mode->vdisplay == 288)) { /* CIF(625) */ mode 158 drivers/gpu/drm/tve200/tve200_display.c } else if (mode->hdisplay == 640 && mode->vdisplay == 480) { mode 161 drivers/gpu/drm/tve200/tve200_display.c } else if ((mode->hdisplay == 720 && mode->vdisplay == 480) || mode 162 drivers/gpu/drm/tve200/tve200_display.c (mode->hdisplay == 720 && mode->vdisplay == 576)) { mode 59 drivers/gpu/drm/udl/udl_connector.c struct drm_display_mode *mode) mode 65 drivers/gpu/drm/udl/udl_connector.c if (mode->vdisplay * mode->hdisplay > udl->sku_pixel_limit) mode 35 drivers/gpu/drm/udl/udl_encoder.c struct drm_display_mode *mode, mode 41 drivers/gpu/drm/udl/udl_encoder.c udl_encoder_dpms(struct drm_encoder *encoder, int mode) mode 161 drivers/gpu/drm/udl/udl_modeset.c static char *udl_set_vid_cmds(char *wrptr, struct drm_display_mode *mode) mode 168 drivers/gpu/drm/udl/udl_modeset.c xds = mode->crtc_htotal - mode->crtc_hsync_start; mode 171 drivers/gpu/drm/udl/udl_modeset.c xde = xds + mode->crtc_hdisplay; mode 175 drivers/gpu/drm/udl/udl_modeset.c yds = mode->crtc_vtotal - mode->crtc_vsync_start; mode 178 drivers/gpu/drm/udl/udl_modeset.c yde = yds + mode->crtc_vdisplay; mode 183 drivers/gpu/drm/udl/udl_modeset.c mode->crtc_htotal - 1); mode 190 drivers/gpu/drm/udl/udl_modeset.c mode->crtc_hsync_end - mode->crtc_hsync_start + 1); mode 193 drivers/gpu/drm/udl/udl_modeset.c wrptr = udl_set_register_16(wrptr, 0x0F, mode->hdisplay); mode 196 drivers/gpu/drm/udl/udl_modeset.c yec = mode->crtc_vtotal; mode 203 drivers/gpu/drm/udl/udl_modeset.c wrptr = udl_set_register_lfsr16(wrptr, 0x15, mode->crtc_vsync_end - mode->crtc_vsync_start); mode 206 drivers/gpu/drm/udl/udl_modeset.c wrptr = udl_set_register_16(wrptr, 0x17, mode->crtc_vdisplay); mode 209 drivers/gpu/drm/udl/udl_modeset.c mode->clock / 5); mode 249 drivers/gpu/drm/udl/udl_modeset.c static void udl_crtc_dpms(struct drm_crtc *crtc, int mode) mode 255 drivers/gpu/drm/udl/udl_modeset.c if (mode == DRM_MODE_DPMS_OFF) { mode 264 drivers/gpu/drm/udl/udl_modeset.c buf = udl_set_blank(buf, mode); mode 297 drivers/gpu/drm/udl/udl_modeset.c struct drm_display_mode *mode, mode 327 drivers/gpu/drm/udl/udl_modeset.c wrptr = udl_set_base8bpp(wrptr, 2 * mode->vdisplay * mode->hdisplay); mode 47 drivers/gpu/drm/vboxvideo/vbox_main.c struct drm_display_mode *mode; mode 57 drivers/gpu/drm/vboxvideo/vbox_main.c mode = &crtc->state->mode; mode 65 drivers/gpu/drm/vboxvideo/vbox_main.c if (rects[i].x1 > crtc_x + mode->hdisplay || mode 66 drivers/gpu/drm/vboxvideo/vbox_main.c rects[i].y1 > crtc_y + mode->vdisplay || mode 184 drivers/gpu/drm/vboxvideo/vbox_mode.c vbox_crtc->width = crtc->state->mode.hdisplay; mode 185 drivers/gpu/drm/vboxvideo/vbox_mode.c vbox_crtc->height = crtc->state->mode.vdisplay; mode 733 drivers/gpu/drm/vboxvideo/vbox_mode.c struct drm_display_mode *mode = NULL; mode 751 drivers/gpu/drm/vboxvideo/vbox_mode.c mode = drm_cvt_mode(connector->dev, preferred_width, preferred_height, mode 753 drivers/gpu/drm/vboxvideo/vbox_mode.c if (mode) { mode 754 drivers/gpu/drm/vboxvideo/vbox_mode.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 755 drivers/gpu/drm/vboxvideo/vbox_mode.c drm_mode_probed_add(connector, mode); mode 802 drivers/gpu/drm/vboxvideo/vbox_mode.c struct drm_display_mode *mode, *iterator; mode 806 drivers/gpu/drm/vboxvideo/vbox_mode.c list_for_each_entry_safe(mode, iterator, &connector->modes, head) { mode 807 drivers/gpu/drm/vboxvideo/vbox_mode.c list_del(&mode->head); mode 808 drivers/gpu/drm/vboxvideo/vbox_mode.c drm_mode_destroy(dev, mode); mode 90 drivers/gpu/drm/vc4/vc4_crtc.c const struct drm_display_mode *mode) mode 122 drivers/gpu/drm/vc4/vc4_crtc.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) { mode 127 drivers/gpu/drm/vc4/vc4_crtc.c *hpos += mode->crtc_htotal / 2; mode 131 drivers/gpu/drm/vc4/vc4_crtc.c fifo_lines = vc4_crtc->cob_size / mode->crtc_hdisplay; mode 164 drivers/gpu/drm/vc4/vc4_crtc.c vblank_lines = mode->vtotal - mode->vdisplay; mode 299 drivers/gpu/drm/vc4/vc4_crtc.c struct drm_display_mode *mode = &state->adjusted_mode; mode 300 drivers/gpu/drm/vc4/vc4_crtc.c bool interlace = mode->flags & DRM_MODE_FLAG_INTERLACE; mode 301 drivers/gpu/drm/vc4/vc4_crtc.c u32 pixel_rep = (mode->flags & DRM_MODE_FLAG_DBLCLK) ? 2 : 1; mode 312 drivers/gpu/drm/vc4/vc4_crtc.c VC4_SET_FIELD((mode->htotal - mode 313 drivers/gpu/drm/vc4/vc4_crtc.c mode->hsync_end) * pixel_rep, mode 315 drivers/gpu/drm/vc4/vc4_crtc.c VC4_SET_FIELD((mode->hsync_end - mode 316 drivers/gpu/drm/vc4/vc4_crtc.c mode->hsync_start) * pixel_rep, mode 319 drivers/gpu/drm/vc4/vc4_crtc.c VC4_SET_FIELD((mode->hsync_start - mode 320 drivers/gpu/drm/vc4/vc4_crtc.c mode->hdisplay) * pixel_rep, mode 322 drivers/gpu/drm/vc4/vc4_crtc.c VC4_SET_FIELD(mode->hdisplay * pixel_rep, PV_HORZB_HACTIVE)); mode 325 drivers/gpu/drm/vc4/vc4_crtc.c VC4_SET_FIELD(mode->crtc_vtotal - mode->crtc_vsync_end, mode 327 drivers/gpu/drm/vc4/vc4_crtc.c VC4_SET_FIELD(mode->crtc_vsync_end - mode->crtc_vsync_start, mode 330 drivers/gpu/drm/vc4/vc4_crtc.c VC4_SET_FIELD(mode->crtc_vsync_start - mode->crtc_vdisplay, mode 332 drivers/gpu/drm/vc4/vc4_crtc.c VC4_SET_FIELD(mode->crtc_vdisplay, PV_VERTB_VACTIVE)); mode 336 drivers/gpu/drm/vc4/vc4_crtc.c VC4_SET_FIELD(mode->crtc_vtotal - mode 337 drivers/gpu/drm/vc4/vc4_crtc.c mode->crtc_vsync_end - 1, mode 339 drivers/gpu/drm/vc4/vc4_crtc.c VC4_SET_FIELD(mode->crtc_vsync_end - mode 340 drivers/gpu/drm/vc4/vc4_crtc.c mode->crtc_vsync_start, mode 343 drivers/gpu/drm/vc4/vc4_crtc.c VC4_SET_FIELD(mode->crtc_vsync_start - mode 344 drivers/gpu/drm/vc4/vc4_crtc.c mode->crtc_vdisplay, mode 346 drivers/gpu/drm/vc4/vc4_crtc.c VC4_SET_FIELD(mode->crtc_vdisplay, PV_VERTB_VACTIVE)); mode 357 drivers/gpu/drm/vc4/vc4_crtc.c VC4_SET_FIELD(mode->htotal * pixel_rep / 2, mode 366 drivers/gpu/drm/vc4/vc4_crtc.c CRTC_WRITE(PV_HACT_ACT, mode->hdisplay * pixel_rep); mode 388 drivers/gpu/drm/vc4/vc4_crtc.c struct drm_display_mode *mode = &crtc->state->adjusted_mode; mode 389 drivers/gpu/drm/vc4/vc4_crtc.c bool interlace = mode->flags & DRM_MODE_FLAG_INTERLACE; mode 552 drivers/gpu/drm/vc4/vc4_crtc.c struct drm_display_mode *mode = &crtc->state->adjusted_mode; mode 568 drivers/gpu/drm/vc4/vc4_crtc.c VC4_SET_FIELD(mode->hdisplay, SCALER_DISPCTRLX_WIDTH) | mode 569 drivers/gpu/drm/vc4/vc4_crtc.c VC4_SET_FIELD(mode->vdisplay, SCALER_DISPCTRLX_HEIGHT) | mode 582 drivers/gpu/drm/vc4/vc4_crtc.c const struct drm_display_mode *mode) mode 585 drivers/gpu/drm/vc4/vc4_crtc.c if (mode->flags & DRM_MODE_FLAG_DBLSCAN) { mode 132 drivers/gpu/drm/vc4/vc4_dpi.c struct drm_display_mode *mode = &encoder->crtc->mode; mode 188 drivers/gpu/drm/vc4/vc4_dpi.c if (mode->flags & DRM_MODE_FLAG_NHSYNC) mode 190 drivers/gpu/drm/vc4/vc4_dpi.c else if (!(mode->flags & DRM_MODE_FLAG_PHSYNC)) mode 193 drivers/gpu/drm/vc4/vc4_dpi.c if (mode->flags & DRM_MODE_FLAG_NVSYNC) mode 195 drivers/gpu/drm/vc4/vc4_dpi.c else if (!(mode->flags & DRM_MODE_FLAG_PVSYNC)) mode 200 drivers/gpu/drm/vc4/vc4_dpi.c ret = clk_set_rate(dpi->pixel_clock, mode->clock * 1000); mode 210 drivers/gpu/drm/vc4/vc4_dpi.c const struct drm_display_mode *mode) mode 212 drivers/gpu/drm/vc4/vc4_dpi.c if (mode->flags & DRM_MODE_FLAG_INTERLACE) mode 749 drivers/gpu/drm/vc4/vc4_drv.h const struct drm_display_mode *mode); mode 780 drivers/gpu/drm/vc4/vc4_dsi.c const struct drm_display_mode *mode, mode 787 drivers/gpu/drm/vc4/vc4_dsi.c unsigned long pixel_clock_hz = mode->clock * 1000; mode 810 drivers/gpu/drm/vc4/vc4_dsi.c adjusted_mode->htotal = adjusted_mode->clock * mode->htotal / mode 811 drivers/gpu/drm/vc4/vc4_dsi.c mode->clock; mode 812 drivers/gpu/drm/vc4/vc4_dsi.c adjusted_mode->hsync_end += adjusted_mode->htotal - mode->htotal; mode 813 drivers/gpu/drm/vc4/vc4_dsi.c adjusted_mode->hsync_start += adjusted_mode->htotal - mode->htotal; mode 820 drivers/gpu/drm/vc4/vc4_dsi.c struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode; mode 829 drivers/gpu/drm/vc4/vc4_dsi.c unsigned long pixel_clock_hz = mode->clock * 1000; mode 384 drivers/gpu/drm/vc4/vc4_hdmi.c const struct drm_display_mode *mode = &crtc->state->adjusted_mode; mode 389 drivers/gpu/drm/vc4/vc4_hdmi.c hdmi->connector, mode); mode 396 drivers/gpu/drm/vc4/vc4_hdmi.c hdmi->connector, mode, mode 471 drivers/gpu/drm/vc4/vc4_hdmi.c struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode; mode 477 drivers/gpu/drm/vc4/vc4_hdmi.c bool hsync_pos = mode->flags & DRM_MODE_FLAG_PHSYNC; mode 478 drivers/gpu/drm/vc4/vc4_hdmi.c bool vsync_pos = mode->flags & DRM_MODE_FLAG_PVSYNC; mode 479 drivers/gpu/drm/vc4/vc4_hdmi.c bool interlaced = mode->flags & DRM_MODE_FLAG_INTERLACE; mode 480 drivers/gpu/drm/vc4/vc4_hdmi.c u32 pixel_rep = (mode->flags & DRM_MODE_FLAG_DBLCLK) ? 2 : 1; mode 481 drivers/gpu/drm/vc4/vc4_hdmi.c u32 verta = (VC4_SET_FIELD(mode->crtc_vsync_end - mode->crtc_vsync_start, mode 483 drivers/gpu/drm/vc4/vc4_hdmi.c VC4_SET_FIELD(mode->crtc_vsync_start - mode->crtc_vdisplay, mode 485 drivers/gpu/drm/vc4/vc4_hdmi.c VC4_SET_FIELD(mode->crtc_vdisplay, VC4_HDMI_VERTA_VAL)); mode 487 drivers/gpu/drm/vc4/vc4_hdmi.c VC4_SET_FIELD(mode->crtc_vtotal - mode->crtc_vsync_end, mode 490 drivers/gpu/drm/vc4/vc4_hdmi.c VC4_SET_FIELD(mode->crtc_vtotal - mode 491 drivers/gpu/drm/vc4/vc4_hdmi.c mode->crtc_vsync_end - mode 504 drivers/gpu/drm/vc4/vc4_hdmi.c mode->clock * 1000 * mode 505 drivers/gpu/drm/vc4/vc4_hdmi.c ((mode->flags & DRM_MODE_FLAG_DBLCLK) ? 2 : 1)); mode 548 drivers/gpu/drm/vc4/vc4_hdmi.c VC4_SET_FIELD(mode->hdisplay * pixel_rep, mode 552 drivers/gpu/drm/vc4/vc4_hdmi.c VC4_SET_FIELD((mode->htotal - mode 553 drivers/gpu/drm/vc4/vc4_hdmi.c mode->hsync_end) * pixel_rep, mode 555 drivers/gpu/drm/vc4/vc4_hdmi.c VC4_SET_FIELD((mode->hsync_end - mode 556 drivers/gpu/drm/vc4/vc4_hdmi.c mode->hsync_start) * pixel_rep, mode 558 drivers/gpu/drm/vc4/vc4_hdmi.c VC4_SET_FIELD((mode->hsync_start - mode 559 drivers/gpu/drm/vc4/vc4_hdmi.c mode->hdisplay) * pixel_rep, mode 576 drivers/gpu/drm/vc4/vc4_hdmi.c drm_default_rgb_quant_range(mode) == mode 682 drivers/gpu/drm/vc4/vc4_hdmi.c const struct drm_display_mode *mode) mode 700 drivers/gpu/drm/vc4/vc4_hdmi.c if (mode->clock > HSM_CLOCK_FREQ / (1000 * 101 / 100)) mode 738 drivers/gpu/drm/vc4/vc4_hdmi.c const struct drm_display_mode *mode = &crtc->state->adjusted_mode; mode 744 drivers/gpu/drm/vc4/vc4_hdmi.c tmp = (u64)(mode->clock * 1000) * n; mode 274 drivers/gpu/drm/vc4/vc4_plane.c if (left + right >= crtc_state->mode.hdisplay || mode 275 drivers/gpu/drm/vc4/vc4_plane.c top + bottom >= crtc_state->mode.vdisplay) mode 278 drivers/gpu/drm/vc4/vc4_plane.c adjhdisplay = crtc_state->mode.hdisplay - (left + right); mode 281 drivers/gpu/drm/vc4/vc4_plane.c crtc_state->mode.hdisplay); mode 283 drivers/gpu/drm/vc4/vc4_plane.c if (vc4_pstate->crtc_x > crtc_state->mode.hdisplay - left) mode 284 drivers/gpu/drm/vc4/vc4_plane.c vc4_pstate->crtc_x = crtc_state->mode.hdisplay - left; mode 286 drivers/gpu/drm/vc4/vc4_plane.c adjvdisplay = crtc_state->mode.vdisplay - (top + bottom); mode 289 drivers/gpu/drm/vc4/vc4_plane.c crtc_state->mode.vdisplay); mode 291 drivers/gpu/drm/vc4/vc4_plane.c if (vc4_pstate->crtc_y > crtc_state->mode.vdisplay - top) mode 292 drivers/gpu/drm/vc4/vc4_plane.c vc4_pstate->crtc_y = crtc_state->mode.vdisplay - top; mode 296 drivers/gpu/drm/vc4/vc4_plane.c crtc_state->mode.hdisplay); mode 299 drivers/gpu/drm/vc4/vc4_plane.c crtc_state->mode.vdisplay); mode 912 drivers/gpu/drm/vc4/vc4_plane.c vc4_state->crtc_w == state->crtc->mode.hdisplay && mode 913 drivers/gpu/drm/vc4/vc4_plane.c vc4_state->crtc_h == state->crtc->mode.vdisplay; mode 184 drivers/gpu/drm/vc4/vc4_txp.c struct drm_display_mode *mode) mode 188 drivers/gpu/drm/vc4/vc4_txp.c int w = mode->hdisplay, h = mode->vdisplay; mode 240 drivers/gpu/drm/vc4/vc4_txp.c if (fb->width != crtc_state->mode.hdisplay || mode 241 drivers/gpu/drm/vc4/vc4_txp.c fb->height != crtc_state->mode.vdisplay) { mode 269 drivers/gpu/drm/vc4/vc4_txp.c struct drm_display_mode *mode; mode 277 drivers/gpu/drm/vc4/vc4_txp.c mode = &conn_state->crtc->state->adjusted_mode; mode 299 drivers/gpu/drm/vc4/vc4_txp.c VC4_SET_FIELD(mode->hdisplay, TXP_WIDTH) | mode 300 drivers/gpu/drm/vc4/vc4_txp.c VC4_SET_FIELD(mode->vdisplay, TXP_HEIGHT)); mode 213 drivers/gpu/drm/vc4/vc4_vec.c const struct drm_display_mode *mode; mode 287 drivers/gpu/drm/vc4/vc4_vec.c .mode = &ntsc_mode, mode 291 drivers/gpu/drm/vc4/vc4_vec.c .mode = &ntsc_mode, mode 295 drivers/gpu/drm/vc4/vc4_vec.c .mode = &pal_mode, mode 299 drivers/gpu/drm/vc4/vc4_vec.c .mode = &pal_mode, mode 319 drivers/gpu/drm/vc4/vc4_vec.c struct drm_display_mode *mode; mode 321 drivers/gpu/drm/vc4/vc4_vec.c mode = drm_mode_duplicate(connector->dev, mode 322 drivers/gpu/drm/vc4/vc4_vec.c vc4_vec_tv_modes[state->tv.mode].mode); mode 323 drivers/gpu/drm/vc4/vc4_vec.c if (!mode) { mode 328 drivers/gpu/drm/vc4/vc4_vec.c drm_mode_probed_add(connector, mode); mode 474 drivers/gpu/drm/vc4/vc4_vec.c const struct drm_display_mode *mode, mode 487 drivers/gpu/drm/vc4/vc4_vec.c vec->tv_mode = &vc4_vec_tv_modes[conn_state->tv.mode]; mode 496 drivers/gpu/drm/vc4/vc4_vec.c vec_mode = &vc4_vec_tv_modes[conn_state->tv.mode]; mode 499 drivers/gpu/drm/vc4/vc4_vec.c !drm_mode_equal(vec_mode->mode, &crtc_state->adjusted_mode)) mode 101 drivers/gpu/drm/via/via_dmablit.c int mode) mode 117 drivers/gpu/drm/via/via_dmablit.c if (mode == 1) mode 131 drivers/gpu/drm/via/via_dmablit.c if (mode == 1) { mode 160 drivers/gpu/drm/via/via_dmablit.c if (mode == 1) { mode 89 drivers/gpu/drm/virtio/virtgpu_display.c crtc->mode.hdisplay, mode 90 drivers/gpu/drm/virtio/virtgpu_display.c crtc->mode.vdisplay, 0, 0); mode 139 drivers/gpu/drm/virtio/virtgpu_display.c struct drm_display_mode *mode, mode 156 drivers/gpu/drm/virtio/virtgpu_display.c struct drm_display_mode *mode = NULL; mode 175 drivers/gpu/drm/virtio/virtgpu_display.c mode = drm_cvt_mode(connector->dev, width, height, 60, mode 177 drivers/gpu/drm/virtio/virtgpu_display.c mode->type |= DRM_MODE_TYPE_PREFERRED; mode 178 drivers/gpu/drm/virtio/virtgpu_display.c drm_mode_probed_add(connector, mode); mode 186 drivers/gpu/drm/virtio/virtgpu_display.c struct drm_display_mode *mode) mode 195 drivers/gpu/drm/virtio/virtgpu_display.c if (!(mode->type & DRM_MODE_TYPE_PREFERRED)) mode 197 drivers/gpu/drm/virtio/virtgpu_display.c if (mode->hdisplay == XRES_DEF && mode->vdisplay == YRES_DEF) mode 199 drivers/gpu/drm/virtio/virtgpu_display.c if (mode->hdisplay <= width && mode->hdisplay >= width - 16 && mode 200 drivers/gpu/drm/virtio/virtgpu_display.c mode->vdisplay <= height && mode->vdisplay >= height - 16) mode 203 drivers/gpu/drm/virtio/virtgpu_display.c DRM_DEBUG("del mode: %dx%d\n", mode->hdisplay, mode->vdisplay); mode 63 drivers/gpu/drm/vkms/vkms_crtc.c drm_calc_timestamping_constants(crtc, &crtc->mode); mode 522 drivers/gpu/drm/vmwgfx/device_include/svga3d_cmd.h SVGA3dStretchBltMode mode; mode 1266 drivers/gpu/drm/vmwgfx/device_include/svga3d_cmd.h uint16 mode; mode 715 drivers/gpu/drm/vmwgfx/device_include/svga3d_dx.h SVGA3dDXPresentBltMode mode; mode 296 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h enum vmw_dma_map_mode mode; mode 475 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c set.mode = NULL; mode 567 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c struct drm_display_mode *mode; mode 570 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c mode = drm_mode_duplicate(vmw_priv->dev, &new_mode); mode 571 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c if (!mode) { mode 576 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c mode->hdisplay = var->xres; mode 577 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c mode->vdisplay = var->yres; mode 578 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c vmw_guess_mode_timing(mode); mode 581 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c mode->hdisplay * mode 583 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c mode->vdisplay)) { mode 584 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c drm_mode_destroy(vmw_priv->dev, mode); mode 599 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c set.mode = mode; mode 619 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c par->set_mode = mode; mode 547 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c if (new_state->mode.crtc_clock == 0) mode 548 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c new_state->adjusted_mode.crtc_clock = new_state->mode.clock; mode 1633 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c rects[i].x2 = du->gui_x + crtc_state->mode.hdisplay; mode 1634 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c rects[i].y2 = du->gui_y + crtc_state->mode.vdisplay; mode 2114 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c int vmw_du_connector_dpms(struct drm_connector *connector, int mode) mode 2218 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c void vmw_guess_mode_timing(struct drm_display_mode *mode) mode 2220 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c mode->hsync_start = mode->hdisplay + 50; mode 2221 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c mode->hsync_end = mode->hsync_start + 50; mode 2222 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c mode->htotal = mode->hsync_end + 50; mode 2224 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c mode->vsync_start = mode->vdisplay + 50; mode 2225 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c mode->vsync_end = mode->vsync_start + 50; mode 2226 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c mode->vtotal = mode->vsync_end + 50; mode 2228 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c mode->clock = (u32)mode->htotal * (u32)mode->vtotal / 100 * 6; mode 2229 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c mode->vrefresh = drm_mode_vrefresh(mode); mode 2239 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c struct drm_display_mode *mode = NULL; mode 2265 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c mode = drm_mode_duplicate(dev, &prefmode); mode 2266 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c if (!mode) mode 2268 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c mode->hdisplay = du->pref_width; mode 2269 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c mode->vdisplay = du->pref_height; mode 2270 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c vmw_guess_mode_timing(mode); mode 2273 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c mode->hdisplay * assumed_bpp, mode 2274 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c mode->vdisplay)) { mode 2275 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c drm_mode_probed_add(connector, mode); mode 2277 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c drm_mode_destroy(dev, mode); mode 2278 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c mode = NULL; mode 2287 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c du->pref_mode = mode; mode 2300 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c mode = drm_mode_duplicate(dev, bmode); mode 2301 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c if (!mode) mode 2303 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c mode->vrefresh = drm_mode_vrefresh(mode); mode 2305 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c drm_mode_probed_add(connector, mode); mode 2471 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c s32 crtc_width = unit->crtc.mode.hdisplay; mode 2472 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c s32 crtc_height = unit->crtc.mode.vdisplay; mode 2656 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c struct drm_display_mode *mode; mode 2688 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c list_for_each_entry(mode, &con->modes, head) { mode 2689 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c if (mode->type & DRM_MODE_TYPE_PREFERRED) mode 2693 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c if (mode->type & DRM_MODE_TYPE_PREFERRED) mode 2694 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c *p_mode = mode; mode 408 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h int vmw_du_connector_dpms(struct drm_connector *connector, int mode); mode 449 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h void vmw_guess_mode_timing(struct drm_display_mode *mode); mode 93 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c w = max(w, crtc->x + crtc->mode.hdisplay); mode 94 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c h = max(h, crtc->y + crtc->mode.vdisplay); mode 127 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c vmw_write(dev_priv, SVGA_REG_DISPLAY_WIDTH, crtc->mode.hdisplay); mode 128 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c vmw_write(dev_priv, SVGA_REG_DISPLAY_HEIGHT, crtc->mode.vdisplay); mode 121 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c struct drm_display_mode *mode) mode 145 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c cmd->obj.size.width = mode->hdisplay; mode 146 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c cmd->obj.size.height = mode->vdisplay; mode 154 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c cmd->obj.backingStore.pitch = mode->hdisplay * 4; mode 252 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c ret = vmw_sou_fifo_create(dev_priv, sou, x, y, &crtc->mode); mode 165 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c struct drm_display_mode *mode, mode 181 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c cmd->body.width = mode->hdisplay; mode 182 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c cmd->body.height = mode->vdisplay; mode 194 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c stdu->display_width = mode->hdisplay; mode 195 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c stdu->display_height = mode->vdisplay; mode 398 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c ret = vmw_stdu_define_st(dev_priv, stdu, &crtc->mode, x, y); mode 331 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c switch (vsgt->mode) { mode 426 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c vsgt->mode = dev_priv->map_mode; mode 64 drivers/gpu/drm/xen/xen_drm_front_conn.c struct drm_display_mode *mode; mode 68 drivers/gpu/drm/xen/xen_drm_front_conn.c mode = drm_mode_create(connector->dev); mode 69 drivers/gpu/drm/xen/xen_drm_front_conn.c if (!mode) mode 80 drivers/gpu/drm/xen/xen_drm_front_conn.c mode->type = DRM_MODE_TYPE_PREFERRED | DRM_MODE_TYPE_DRIVER; mode 82 drivers/gpu/drm/xen/xen_drm_front_conn.c drm_display_mode_from_videomode(&videomode, mode); mode 83 drivers/gpu/drm/xen/xen_drm_front_conn.c drm_mode_probed_add(connector, mode); mode 273 drivers/gpu/drm/xen/xen_drm_front_kms.c display_mode_valid(struct drm_crtc *crtc, const struct drm_display_mode *mode) mode 279 drivers/gpu/drm/xen/xen_drm_front_kms.c if (mode->hdisplay != pipeline->width) mode 282 drivers/gpu/drm/xen/xen_drm_front_kms.c if (mode->vdisplay != pipeline->height) mode 101 drivers/gpu/drm/zte/zx_hdmi.c struct drm_display_mode *mode) mode 108 drivers/gpu/drm/zte/zx_hdmi.c mode); mode 119 drivers/gpu/drm/zte/zx_hdmi.c struct drm_display_mode *mode) mode 126 drivers/gpu/drm/zte/zx_hdmi.c mode); mode 140 drivers/gpu/drm/zte/zx_hdmi.c struct drm_display_mode *mode, mode 146 drivers/gpu/drm/zte/zx_hdmi.c zx_hdmi_config_video_avi(hdmi, mode); mode 147 drivers/gpu/drm/zte/zx_hdmi.c zx_hdmi_config_video_vsi(hdmi, mode); mode 282 drivers/gpu/drm/zte/zx_hdmi.c struct drm_display_mode *mode) mode 40 drivers/gpu/drm/zte/zx_tvenc.c struct drm_display_mode mode; mode 66 drivers/gpu/drm/zte/zx_tvenc.c .mode = { mode 97 drivers/gpu/drm/zte/zx_tvenc.c .mode = { mode 133 drivers/gpu/drm/zte/zx_tvenc.c zx_tvenc_find_zmode(struct drm_display_mode *mode) mode 140 drivers/gpu/drm/zte/zx_tvenc.c if (drm_mode_equal(mode, &zmode->mode)) mode 148 drivers/gpu/drm/zte/zx_tvenc.c struct drm_display_mode *mode, mode 161 drivers/gpu/drm/zte/zx_tvenc.c zmode = zx_tvenc_find_zmode(mode); mode 233 drivers/gpu/drm/zte/zx_tvenc.c struct drm_display_mode *mode; mode 235 drivers/gpu/drm/zte/zx_tvenc.c mode = drm_mode_duplicate(connector->dev, &zmode->mode); mode 236 drivers/gpu/drm/zte/zx_tvenc.c if (!mode) { mode 241 drivers/gpu/drm/zte/zx_tvenc.c drm_mode_set_name(mode); mode 242 drivers/gpu/drm/zte/zx_tvenc.c drm_mode_probed_add(connector, mode); mode 250 drivers/gpu/drm/zte/zx_tvenc.c struct drm_display_mode *mode) mode 255 drivers/gpu/drm/zte/zx_tvenc.c zmode = zx_tvenc_find_zmode(mode); mode 257 drivers/gpu/drm/zte/zx_tvenc.c DRM_DEV_ERROR(tvenc->dev, "unsupported mode: %s\n", mode->name); mode 120 drivers/gpu/drm/zte/zx_vga.c struct drm_display_mode *mode) mode 355 drivers/gpu/drm/zte/zx_vou.c struct drm_display_mode *mode = &crtc->state->adjusted_mode; mode 356 drivers/gpu/drm/zte/zx_vou.c bool interlaced = mode->flags & DRM_MODE_FLAG_INTERLACE; mode 367 drivers/gpu/drm/zte/zx_vou.c drm_display_mode_to_videomode(mode, &vm); mode 446 drivers/gpu/drm/zte/zx_vou.c ret = clk_set_rate(zcrtc->pixclk, mode->clock * 1000); mode 201 drivers/gpu/ipu-v3/ipu-common.c int ipu_degrees_to_rot_mode(enum ipu_rotate_mode *mode, int degrees, mode 228 drivers/gpu/ipu-v3/ipu-common.c *mode = (enum ipu_rotate_mode)((r90 << 2) | (hf << 1) | vf); mode 233 drivers/gpu/ipu-v3/ipu-common.c int ipu_rot_mode_to_degrees(int *degrees, enum ipu_rotate_mode mode, mode 238 drivers/gpu/ipu-v3/ipu-common.c r90 = ((u32)mode >> 2) & 0x1; mode 239 drivers/gpu/ipu-v3/ipu-common.c hf = ((u32)mode >> 1) & 0x1; mode 240 drivers/gpu/ipu-v3/ipu-common.c vf = ((u32)mode >> 0) & 0x1; mode 205 drivers/gpu/ipu-v3/ipu-di.c u32 h_total = sig->mode.hactive + sig->mode.hsync_len + mode 206 drivers/gpu/ipu-v3/ipu-di.c sig->mode.hback_porch + sig->mode.hfront_porch; mode 207 drivers/gpu/ipu-v3/ipu-di.c u32 v_total = sig->mode.vactive + sig->mode.vsync_len + mode 208 drivers/gpu/ipu-v3/ipu-di.c sig->mode.vback_porch + sig->mode.vfront_porch; mode 220 drivers/gpu/ipu-v3/ipu-di.c .cnt_down = sig->mode.hsync_len * 2, mode 227 drivers/gpu/ipu-v3/ipu-di.c .cnt_down = sig->mode.vsync_len * 2, mode 240 drivers/gpu/ipu-v3/ipu-di.c .offset_count = (sig->mode.vsync_len + mode 241 drivers/gpu/ipu-v3/ipu-di.c sig->mode.vback_porch) / 2, mode 243 drivers/gpu/ipu-v3/ipu-di.c .repeat_count = sig->mode.vactive / 2, mode 248 drivers/gpu/ipu-v3/ipu-di.c .offset_count = sig->mode.hsync_len + mode 249 drivers/gpu/ipu-v3/ipu-di.c sig->mode.hback_porch, mode 251 drivers/gpu/ipu-v3/ipu-di.c .repeat_count = sig->mode.hactive, mode 268 drivers/gpu/ipu-v3/ipu-di.c u32 h_total = sig->mode.hactive + sig->mode.hsync_len + mode 269 drivers/gpu/ipu-v3/ipu-di.c sig->mode.hback_porch + sig->mode.hfront_porch; mode 270 drivers/gpu/ipu-v3/ipu-di.c u32 v_total = sig->mode.vactive + sig->mode.vsync_len + mode 271 drivers/gpu/ipu-v3/ipu-di.c sig->mode.vback_porch + sig->mode.vfront_porch; mode 285 drivers/gpu/ipu-v3/ipu-di.c .cnt_down = sig->mode.hsync_len * 2, mode 292 drivers/gpu/ipu-v3/ipu-di.c .cnt_down = sig->mode.vsync_len * 2, mode 296 drivers/gpu/ipu-v3/ipu-di.c .offset_count = sig->mode.vsync_len + mode 297 drivers/gpu/ipu-v3/ipu-di.c sig->mode.vback_porch, mode 299 drivers/gpu/ipu-v3/ipu-di.c .repeat_count = sig->mode.vactive, mode 304 drivers/gpu/ipu-v3/ipu-di.c .offset_count = sig->mode.hsync_len + mode 305 drivers/gpu/ipu-v3/ipu-di.c sig->mode.hback_porch, mode 307 drivers/gpu/ipu-v3/ipu-di.c .repeat_count = sig->mode.hactive, mode 332 drivers/gpu/ipu-v3/ipu-di.c .offset_count = sig->mode.vsync_len + mode 333 drivers/gpu/ipu-v3/ipu-di.c sig->mode.vback_porch, mode 335 drivers/gpu/ipu-v3/ipu-di.c .repeat_count = sig->mode.vactive, mode 345 drivers/gpu/ipu-v3/ipu-di.c .cnt_down = sig->mode.hsync_len * 2, mode 349 drivers/gpu/ipu-v3/ipu-di.c .offset_count = sig->mode.hsync_len + mode 350 drivers/gpu/ipu-v3/ipu-di.c sig->mode.hback_porch, mode 352 drivers/gpu/ipu-v3/ipu-di.c .repeat_count = sig->mode.hactive, mode 362 drivers/gpu/ipu-v3/ipu-di.c .cnt_down = sig->mode.vsync_len * 2, mode 371 drivers/gpu/ipu-v3/ipu-di.c .cnt_down = sig->mode.hsync_len * 2, mode 380 drivers/gpu/ipu-v3/ipu-di.c .cnt_down = sig->mode.vsync_len * 2, mode 428 drivers/gpu/ipu-v3/ipu-di.c clk_set_rate(clk, sig->mode.pixelclock); mode 431 drivers/gpu/ipu-v3/ipu-di.c div = DIV_ROUND_CLOSEST(in_rate, sig->mode.pixelclock); mode 448 drivers/gpu/ipu-v3/ipu-di.c div = DIV_ROUND_CLOSEST(clkrate, sig->mode.pixelclock); mode 452 drivers/gpu/ipu-v3/ipu-di.c error = rate / (sig->mode.pixelclock / 1000); mode 468 drivers/gpu/ipu-v3/ipu-di.c clk_set_rate(clk, sig->mode.pixelclock); mode 471 drivers/gpu/ipu-v3/ipu-di.c div = DIV_ROUND_CLOSEST(in_rate, sig->mode.pixelclock); mode 498 drivers/gpu/ipu-v3/ipu-di.c sig->mode.pixelclock, mode 509 drivers/gpu/ipu-v3/ipu-di.c int ipu_di_adjust_videomode(struct ipu_di *di, struct videomode *mode) mode 513 drivers/gpu/ipu-v3/ipu-di.c if (mode->vfront_porch >= 2) mode 516 drivers/gpu/ipu-v3/ipu-di.c diff = 2 - mode->vfront_porch; mode 518 drivers/gpu/ipu-v3/ipu-di.c if (mode->vback_porch >= diff) { mode 519 drivers/gpu/ipu-v3/ipu-di.c mode->vfront_porch = 2; mode 520 drivers/gpu/ipu-v3/ipu-di.c mode->vback_porch -= diff; mode 521 drivers/gpu/ipu-v3/ipu-di.c } else if (mode->vsync_len > diff) { mode 522 drivers/gpu/ipu-v3/ipu-di.c mode->vfront_porch = 2; mode 523 drivers/gpu/ipu-v3/ipu-di.c mode->vsync_len = mode->vsync_len - diff; mode 564 drivers/gpu/ipu-v3/ipu-di.c di->id, sig->mode.hactive, sig->mode.vactive); mode 569 drivers/gpu/ipu-v3/ipu-di.c sig->mode.pixelclock); mode 588 drivers/gpu/ipu-v3/ipu-di.c if (sig->mode.flags & DISPLAY_FLAGS_INTERLACED) { mode 608 drivers/gpu/ipu-v3/ipu-di.c if (sig->mode.flags & DISPLAY_FLAGS_HSYNC_HIGH) mode 610 drivers/gpu/ipu-v3/ipu-di.c if (sig->mode.flags & DISPLAY_FLAGS_VSYNC_HIGH) mode 629 drivers/greybus/interface.c return attr->mode; mode 643 drivers/greybus/interface.c return attr->mode; mode 658 drivers/greybus/interface.c return attr->mode; mode 1900 drivers/hid/hid-core.c .attr = { .name = "report_descriptor", .mode = 0444 }, mode 1906 drivers/hid/hid-core.c .attr = { .name = "country", .mode = 0444 }, mode 1058 drivers/hid/hid-cp2112.c umode_t mode = (buf[1] & 1) ? S_IWUSR | S_IRUGO : S_IRUGO; mode 1059 drivers/hid/hid-cp2112.c ret = sysfs_chmod_file(&hdev->dev.kobj, *attr, mode); mode 50 drivers/hid/hid-gt683r.c enum gt683r_led_mode mode; mode 85 drivers/hid/hid-gt683r.c if (led->mode == GT683R_LED_NORMAL) mode 87 drivers/hid/hid-gt683r.c else if (led->mode == GT683R_LED_AUDIO) mode 110 drivers/hid/hid-gt683r.c led->mode = GT683R_LED_NORMAL; mode 112 drivers/hid/hid-gt683r.c led->mode = GT683R_LED_AUDIO; mode 114 drivers/hid/hid-gt683r.c led->mode = GT683R_LED_BREATHING; mode 158 drivers/hid/hid-gt683r.c static int gt683r_mode_set(struct gt683r_led *led, u8 mode) mode 170 drivers/hid/hid-gt683r.c buffer[3] = mode; mode 182 drivers/hid/hid-gt683r.c u8 mode; mode 196 drivers/hid/hid-gt683r.c mode = led->mode; mode 198 drivers/hid/hid-gt683r.c mode = GT683R_LED_OFF; mode 200 drivers/hid/hid-gt683r.c gt683r_mode_set(led, mode); mode 205 drivers/hid/hid-gt683r.c static DEVICE_ATTR_RW(mode); mode 238 drivers/hid/hid-gt683r.c led->mode = GT683R_LED_NORMAL; mode 123 drivers/hid/hid-ntrig.c static inline void ntrig_set_mode(struct hid_device *hdev, const int mode) mode 128 drivers/hid/hid-ntrig.c if (mode < 0 || mode > 3) mode 132 drivers/hid/hid-ntrig.c report_id_hash[mode_commands[mode]]; mode 143 drivers/hid/hid-rmi.c static int rmi_set_mode(struct hid_device *hdev, u8 mode) mode 146 drivers/hid/hid-rmi.c const u8 txbuf[2] = {RMI_SET_RMI_MODE_REPORT_ID, mode}; mode 157 drivers/hid/hid-rmi.c dev_err(&hdev->dev, "unable to set rmi mode to %d (%d)\n", mode, mode 72 drivers/hid/hid-roccat-common.h .attr = { .name = #thingy, .mode = 0660 }, \ mode 81 drivers/hid/hid-roccat-common.h .attr = { .name = #thingy, .mode = 0440 }, \ mode 89 drivers/hid/hid-roccat-common.h .attr = { .name = #thingy, .mode = 0220 }, \ mode 184 drivers/hid/hid-roccat-isku.c .attr = { .name = #thingy, .mode = 0660 }, \ mode 193 drivers/hid/hid-roccat-isku.c .attr = { .name = #thingy, .mode = 0440 }, \ mode 201 drivers/hid/hid-roccat-isku.c .attr = { .name = #thingy, .mode = 0220 }, \ mode 380 drivers/hid/hid-roccat-kone.c .attr = { .name = "profile" #number, .mode = 0660 }, \ mode 156 drivers/hid/hid-roccat-koneplus.c .attr = { .name = #thingy, .mode = 0660 }, \ mode 165 drivers/hid/hid-roccat-koneplus.c .attr = { .name = #thingy, .mode = 0440 }, \ mode 173 drivers/hid/hid-roccat-koneplus.c .attr = { .name = #thingy, .mode = 0220 }, \ mode 225 drivers/hid/hid-roccat-koneplus.c .attr = { .name = "profile" #number "_settings", .mode = 0440 }, \ mode 231 drivers/hid/hid-roccat-koneplus.c .attr = { .name = "profile" #number "_buttons", .mode = 0440 }, \ mode 199 drivers/hid/hid-roccat-kovaplus.c .attr = { .name = #thingy, .mode = 0660 }, \ mode 208 drivers/hid/hid-roccat-kovaplus.c .attr = { .name = #thingy, .mode = 0220 }, \ mode 255 drivers/hid/hid-roccat-kovaplus.c .attr = { .name = "profile" #number "_settings", .mode = 0440 }, \ mode 261 drivers/hid/hid-roccat-kovaplus.c .attr = { .name = "profile" #number "_buttons", .mode = 0440 }, \ mode 89 drivers/hid/hid-roccat-lua.c .attr = { .name = #thingy, .mode = 0660 }, \ mode 158 drivers/hid/hid-roccat-pyra.c .attr = { .name = #thingy, .mode = 0660 }, \ mode 167 drivers/hid/hid-roccat-pyra.c .attr = { .name = #thingy, .mode = 0440 }, \ mode 175 drivers/hid/hid-roccat-pyra.c .attr = { .name = #thingy, .mode = 0220 }, \ mode 223 drivers/hid/hid-roccat-pyra.c .attr = { .name = "profile" #number "_settings", .mode = 0440 }, \ mode 229 drivers/hid/hid-roccat-pyra.c .attr = { .name = "profile" #number "_buttons", .mode = 0440 }, \ mode 33 drivers/hid/hid-saitek.c int mode; mode 50 drivers/hid/hid-saitek.c ssc->mode = -1; mode 100 drivers/hid/hid-saitek.c int mode = -1; mode 102 drivers/hid/hid-saitek.c mode = 0; mode 104 drivers/hid/hid-saitek.c mode = 1; mode 106 drivers/hid/hid-saitek.c mode = 2; mode 111 drivers/hid/hid-saitek.c if (mode != ssc->mode) { mode 112 drivers/hid/hid-saitek.c hid_dbg(hdev, "entered mode %d\n", mode); mode 113 drivers/hid/hid-saitek.c if (ssc->mode != -1) { mode 117 drivers/hid/hid-saitek.c ssc->mode = mode; mode 122 drivers/hid/hid-saitek.c int mode = -1; mode 124 drivers/hid/hid-saitek.c mode = 0; mode 126 drivers/hid/hid-saitek.c mode = 1; mode 128 drivers/hid/hid-saitek.c mode = 2; mode 134 drivers/hid/hid-saitek.c if (mode != ssc->mode) { mode 135 drivers/hid/hid-saitek.c hid_dbg(hdev, "entered mode %d\n", mode); mode 136 drivers/hid/hid-saitek.c if (ssc->mode != -1) { mode 143 drivers/hid/hid-saitek.c ssc->mode = mode; mode 63 drivers/hid/hid-sensor-custom.c {.name = "name", .mode = S_IRUGO}, mode 64 drivers/hid/hid-sensor-custom.c {.name = "units", .mode = S_IRUGO}, mode 65 drivers/hid/hid-sensor-custom.c {.name = "unit-expo", .mode = S_IRUGO}, mode 66 drivers/hid/hid-sensor-custom.c {.name = "minimum", .mode = S_IRUGO}, mode 67 drivers/hid/hid-sensor-custom.c {.name = "maximum", .mode = S_IRUGO}, mode 68 drivers/hid/hid-sensor-custom.c {.name = "size", .mode = S_IRUGO}, mode 69 drivers/hid/hid-sensor-custom.c {.name = "value", .mode = S_IWUSR | S_IRUGO}, mode 592 drivers/hid/hid-sensor-custom.c device_attr->attr.mode = hid_custom_attrs[j].mode; mode 594 drivers/hid/hid-sensor-custom.c if (hid_custom_attrs[j].mode & S_IWUSR) mode 760 drivers/hid/hid-wiimote-core.c __u8 mode = 2; mode 766 drivers/hid/hid-wiimote-core.c mode = 1; mode 770 drivers/hid/hid-wiimote-core.c wdata->state.mp = mode; mode 607 drivers/hid/hid-wiimote-modules.c static int wiimod_ir_change(struct wiimote_data *wdata, __u16 mode) mode 620 drivers/hid/hid-wiimote-modules.c if (mode == (wdata->state.flags & WIIPROTO_FLAGS_IR)) { mode 625 drivers/hid/hid-wiimote-modules.c if (mode == 0) { mode 687 drivers/hid/hid-wiimote-modules.c switch (mode) { mode 710 drivers/hid/hid-wiimote-modules.c wdata->state.flags |= mode & WIIPROTO_FLAGS_IR; mode 866 drivers/hid/usbhid/hiddev.c static char *hiddev_devnode(struct device *dev, umode_t *mode) mode 1829 drivers/hid/wacom_sys.c u8 mode; mode 1831 drivers/hid/wacom_sys.c mode = wacom->led.groups[index].select; mode 1832 drivers/hid/wacom_sys.c return sprintf(buf, "%d\n", mode < 3 ? mode : -1); mode 1843 drivers/hid/wacom_sys.c .mode = DEV_ATTR_RO_PERM}, \ mode 1932 drivers/hid/wacom_sys.c .attr = {.name = "unpair_remote", .mode = 0200}, mode 347 drivers/hsi/clients/hsi_char.c if ((rxc->mode != HSI_MODE_STREAM) && (rxc->mode != HSI_MODE_FRAME)) mode 356 drivers/hsi/clients/hsi_char.c cl->rx_cfg.mode = rxc->mode; mode 364 drivers/hsi/clients/hsi_char.c if (rxc->mode == HSI_MODE_FRAME) mode 372 drivers/hsi/clients/hsi_char.c rxc->mode = cl->rx_cfg.mode; mode 382 drivers/hsi/clients/hsi_char.c if ((txc->mode != HSI_MODE_STREAM) && (txc->mode != HSI_MODE_FRAME)) mode 391 drivers/hsi/clients/hsi_char.c cl->tx_cfg.mode = txc->mode; mode 406 drivers/hsi/clients/hsi_char.c txc->mode = cl->tx_cfg.mode; mode 37 drivers/hsi/controllers/omap_ssi.h u32 mode; mode 349 drivers/hsi/controllers/omap_ssi_port.c if (omap_port->sst.mode != SSI_MODE_FRAME) { mode 357 drivers/hsi/controllers/omap_ssi_port.c if (omap_port->ssr.mode != SSI_MODE_FRAME) { mode 487 drivers/hsi/controllers/omap_ssi_port.c writel_relaxed(cl->tx_cfg.mode, sst + SSI_SST_MODE_REG); mode 493 drivers/hsi/controllers/omap_ssi_port.c if ((omap_port->ssr.mode == SSI_MODE_FRAME) && mode 494 drivers/hsi/controllers/omap_ssi_port.c (cl->rx_cfg.mode != SSI_MODE_FRAME)) mode 496 drivers/hsi/controllers/omap_ssi_port.c writel_relaxed(cl->rx_cfg.mode, ssr + SSI_SSR_MODE_REG); mode 505 drivers/hsi/controllers/omap_ssi_port.c omap_port->sst.mode = cl->tx_cfg.mode; mode 510 drivers/hsi/controllers/omap_ssi_port.c omap_port->ssr.mode = cl->rx_cfg.mode; mode 759 drivers/hsi/controllers/omap_ssi_port.c static int ssi_set_port_mode(struct omap_ssi_port *omap_port, u32 mode) mode 761 drivers/hsi/controllers/omap_ssi_port.c writel(mode, omap_port->sst_base + SSI_SST_MODE_REG); mode 762 drivers/hsi/controllers/omap_ssi_port.c writel(mode, omap_port->ssr_base + SSI_SSR_MODE_REG); mode 764 drivers/hsi/controllers/omap_ssi_port.c mode = readl(omap_port->ssr_base + SSI_SSR_MODE_REG); mode 792 drivers/hsi/controllers/omap_ssi_port.c omap_port->sst.mode = SSI_MODE_SLEEP; mode 793 drivers/hsi/controllers/omap_ssi_port.c omap_port->ssr.mode = SSI_MODE_SLEEP; mode 1325 drivers/hsi/controllers/omap_ssi_port.c u32 mode; mode 1327 drivers/hsi/controllers/omap_ssi_port.c writel_relaxed(omap_port->sst.mode, mode 1329 drivers/hsi/controllers/omap_ssi_port.c writel_relaxed(omap_port->ssr.mode, mode 1332 drivers/hsi/controllers/omap_ssi_port.c mode = readl(omap_port->ssr_base + SSI_SSR_MODE_REG); mode 1366 drivers/hsi/controllers/omap_ssi_port.c goto mode; /* We always need to restore the mode & TX divisor */ mode 1370 drivers/hsi/controllers/omap_ssi_port.c mode: mode 139 drivers/hsi/hsi_core.c const char *mode; mode 142 drivers/hsi/hsi_core.c err = of_property_read_string(client, name, &mode); mode 146 drivers/hsi/hsi_core.c if (strcmp(mode, "stream") == 0) mode 148 drivers/hsi/hsi_core.c else if (strcmp(mode, "frame") == 0) mode 203 drivers/hsi/hsi_core.c int length, cells, err, i, max_chan, mode; mode 215 drivers/hsi/hsi_core.c err = hsi_of_property_parse_mode(client, "hsi-mode", &mode); mode 218 drivers/hsi/hsi_core.c &cl->rx_cfg.mode); mode 223 drivers/hsi/hsi_core.c &cl->tx_cfg.mode); mode 227 drivers/hsi/hsi_core.c cl->rx_cfg.mode = mode; mode 228 drivers/hsi/hsi_core.c cl->tx_cfg.mode = mode; mode 36 drivers/hv/hv_utils_transport.c hvt->mode != HVUTIL_TRANSPORT_CHARDEV)) mode 41 drivers/hv/hv_utils_transport.c if (hvt->mode == HVUTIL_TRANSPORT_DESTROY) { mode 87 drivers/hv/hv_utils_transport.c if (hvt->mode == HVUTIL_TRANSPORT_DESTROY) mode 105 drivers/hv/hv_utils_transport.c if (hvt->mode == HVUTIL_TRANSPORT_DESTROY) mode 124 drivers/hv/hv_utils_transport.c if (hvt->mode == HVUTIL_TRANSPORT_DESTROY) { mode 126 drivers/hv/hv_utils_transport.c } else if (hvt->mode == HVUTIL_TRANSPORT_INIT) { mode 131 drivers/hv/hv_utils_transport.c hvt->mode = HVUTIL_TRANSPORT_CHARDEV; mode 133 drivers/hv/hv_utils_transport.c else if (hvt->mode == HVUTIL_TRANSPORT_NETLINK) { mode 139 drivers/hv/hv_utils_transport.c hvt->mode = HVUTIL_TRANSPORT_CHARDEV; mode 167 drivers/hv/hv_utils_transport.c mode_old = hvt->mode; mode 168 drivers/hv/hv_utils_transport.c if (hvt->mode != HVUTIL_TRANSPORT_DESTROY) mode 169 drivers/hv/hv_utils_transport.c hvt->mode = HVUTIL_TRANSPORT_INIT; mode 207 drivers/hv/hv_utils_transport.c if (hvt->mode == HVUTIL_TRANSPORT_INIT) mode 208 drivers/hv/hv_utils_transport.c hvt->mode = HVUTIL_TRANSPORT_NETLINK; mode 210 drivers/hv/hv_utils_transport.c if (hvt->mode == HVUTIL_TRANSPORT_NETLINK) mode 223 drivers/hv/hv_utils_transport.c if (hvt->mode == HVUTIL_TRANSPORT_INIT || mode 224 drivers/hv/hv_utils_transport.c hvt->mode == HVUTIL_TRANSPORT_DESTROY) { mode 226 drivers/hv/hv_utils_transport.c } else if (hvt->mode == HVUTIL_TRANSPORT_NETLINK) { mode 247 drivers/hv/hv_utils_transport.c if (hvt->mode != HVUTIL_TRANSPORT_CHARDEV) { mode 330 drivers/hv/hv_utils_transport.c mode_old = hvt->mode; mode 331 drivers/hv/hv_utils_transport.c hvt->mode = HVUTIL_TRANSPORT_DESTROY; mode 22 drivers/hv/hv_utils_transport.h int mode; /* hvutil_transport_mode */ mode 673 drivers/hv/vmbus_drv.c return attr->mode; mode 1332 drivers/hv/vmbus_drv.c .mode = 0644, mode 1343 drivers/hv/vmbus_drv.c .mode = 0555, mode 1746 drivers/hv/vmbus_drv.c return attr->mode; mode 272 drivers/hwmon/abx500.c return attr->mode; mode 628 drivers/hwmon/acpi_power_meter.c sensors->dev_attr.attr.mode = 0444; mode 633 drivers/hwmon/acpi_power_meter.c sensors->dev_attr.attr.mode |= 0200; mode 64 drivers/hwmon/adc128d818.c u8 mode; /* Operation mode */ mode 89 drivers/hwmon/adc128d818.c for (i = 0; i < num_inputs[data->mode]; i++) { mode 109 drivers/hwmon/adc128d818.c if (data->mode != 1) { mode 256 drivers/hwmon/adc128d818.c if (index >= num_inputs[data->mode] * 4) mode 260 drivers/hwmon/adc128d818.c if (data->mode == 1) mode 264 drivers/hwmon/adc128d818.c return attr->mode; mode 406 drivers/hwmon/adc128d818.c if (data->mode != 0) { mode 409 drivers/hwmon/adc128d818.c data->mode << 1); mode 461 drivers/hwmon/adc128d818.c if (of_property_read_u8(dev->of_node, "ti,mode", &data->mode) == 0) { mode 462 drivers/hwmon/adc128d818.c if (data->mode > 3) { mode 464 drivers/hwmon/adc128d818.c data->mode); mode 472 drivers/hwmon/adc128d818.c data->mode = (err >> 1) & ADC128_REG_MASK; mode 669 drivers/hwmon/adm9240.c u8 mode = i2c_smbus_read_byte_data(client, ADM9240_REG_TEMP_CONF) & 3; mode 679 drivers/hwmon/adm9240.c conf, mode); mode 703 drivers/hwmon/adm9240.c "cold start: config was 0x%02x mode %u\n", conf, mode); mode 165 drivers/hwmon/ads7871.c spi->mode = (SPI_MODE_0); mode 1119 drivers/hwmon/applesmc.c attr->mode = 0444 | (grp->store ? 0200 : 0); mode 441 drivers/hwmon/aspeed-pwm-tacho.c u8 mode, u16 unit, u8 division) mode 443 drivers/hwmon/aspeed-pwm-tacho.c u32 reg_value = ((mode << TYPE_CTRL_FAN_MODE) | mode 528 drivers/hwmon/aspeed-pwm-tacho.c u8 fan_tach_ch_source, type, mode, both; mode 558 drivers/hwmon/aspeed-pwm-tacho.c mode = priv->type_fan_tach_mode[type]; mode 559 drivers/hwmon/aspeed-pwm-tacho.c both = (mode & BOTH_EDGES) ? 1 : 0; mode 628 drivers/hwmon/aspeed-pwm-tacho.c return a->mode; mode 639 drivers/hwmon/aspeed-pwm-tacho.c return a->mode; mode 271 drivers/hwmon/asus_atk0110.c attr->attr.mode = 0444; mode 397 drivers/hwmon/coretemp.c tdata->sd_attrs[i].dev_attr.attr.mode = 0444; mode 318 drivers/hwmon/da9052-hwmon.c return attr->mode; mode 841 drivers/hwmon/dell-smm-hwmon.c return attr->mode; mode 2044 drivers/hwmon/dme1737.c struct attribute *attr, umode_t mode) mode 2046 drivers/hwmon/dme1737.c if (sysfs_chmod_file(&dev->kobj, attr, mode)) { mode 2054 drivers/hwmon/dme1737.c umode_t mode) mode 2059 drivers/hwmon/dme1737.c dme1737_chmod_file(dev, *attr, mode); mode 336 drivers/hwmon/ds1621.c return attr->mode; mode 652 drivers/hwmon/f71805f.c int mode; mode 656 drivers/hwmon/f71805f.c mode = 3; mode 659 drivers/hwmon/f71805f.c mode = 2; mode 662 drivers/hwmon/f71805f.c mode = 1; mode 665 drivers/hwmon/f71805f.c return sprintf(buf, "%d\n", mode); mode 759 drivers/hwmon/f75375s.c u8 conf, mode; mode 763 drivers/hwmon/f75375s.c mode = f75375_read8(client, F75375_REG_FAN_TIMER); mode 768 drivers/hwmon/f75375s.c if (!(mode & (1 << F75387_FAN_CTRL_LINEAR(nr)))) mode 771 drivers/hwmon/f75375s.c manu = ((mode >> F75387_FAN_MANU_MODE(nr)) & 1); mode 772 drivers/hwmon/f75375s.c duty = ((mode >> F75387_FAN_DUTY_MODE(nr)) & 1); mode 789 drivers/hwmon/f75375s.c switch ((mode >> FAN_CTRL_MODE(nr)) & 3) { mode 310 drivers/hwmon/gpio-fan.c return attr->mode; mode 86 drivers/hwmon/hwmon.c return attr->mode; mode 280 drivers/hwmon/hwmon.c umode_t mode; mode 288 drivers/hwmon/hwmon.c mode = ops->is_visible(drvdata, type, attr, index); mode 289 drivers/hwmon/hwmon.c if (!mode) mode 292 drivers/hwmon/hwmon.c if ((mode & 0444) && ((is_string && !ops->read_string) || mode 295 drivers/hwmon/hwmon.c if ((mode & 0222) && !ops->write) mode 322 drivers/hwmon/hwmon.c a->mode = mode; mode 286 drivers/hwmon/i5k_amb.c iattr->s_attr.dev_attr.attr.mode = 0444; mode 301 drivers/hwmon/i5k_amb.c iattr->s_attr.dev_attr.attr.mode = 0444; mode 316 drivers/hwmon/i5k_amb.c iattr->s_attr.dev_attr.attr.mode = 0644; mode 332 drivers/hwmon/i5k_amb.c iattr->s_attr.dev_attr.attr.mode = 0644; mode 348 drivers/hwmon/i5k_amb.c iattr->s_attr.dev_attr.attr.mode = 0644; mode 364 drivers/hwmon/i5k_amb.c iattr->s_attr.dev_attr.attr.mode = 0444; mode 920 drivers/hwmon/ibmaem.c sensors->dev_attr.attr.mode = 0444; mode 937 drivers/hwmon/ibmaem.c sensors->dev_attr.attr.mode = 0644; mode 346 drivers/hwmon/ibmpex.c data->sensors[sensor].attr[func].dev_attr.attr.mode = 0444; mode 500 drivers/hwmon/ibmpowernv.c sdata->dev_attr.attr.mode = 0664; mode 502 drivers/hwmon/ibmpowernv.c sdata->dev_attr.attr.mode = 0444; mode 144 drivers/hwmon/iio_hwmon.c a->dev_attr.attr.mode = 0444; mode 2000 drivers/hwmon/it87.c return attr->mode; mode 2087 drivers/hwmon/it87.c return attr->mode; mode 2138 drivers/hwmon/it87.c return attr->mode; mode 2179 drivers/hwmon/it87.c return attr->mode | S_IWUSR; mode 2185 drivers/hwmon/it87.c return attr->mode; mode 2242 drivers/hwmon/it87.c return attr->mode | S_IWUSR; mode 2246 drivers/hwmon/it87.c return attr->mode | S_IWUSR; mode 2248 drivers/hwmon/it87.c return attr->mode; mode 2317 drivers/hwmon/it87.c return attr->mode; mode 380 drivers/hwmon/jc42.c umode_t mode = 0444; mode 386 drivers/hwmon/jc42.c mode |= 0200; mode 390 drivers/hwmon/jc42.c mode |= 0200; mode 394 drivers/hwmon/jc42.c mode |= 0200; mode 403 drivers/hwmon/jc42.c mode = 0; mode 406 drivers/hwmon/jc42.c return mode; mode 230 drivers/hwmon/k10temp.c return attr->mode; mode 940 drivers/hwmon/lm63.c return attr->mode | S_IWUSR; mode 942 drivers/hwmon/lm63.c return attr->mode; mode 165 drivers/hwmon/lm70.c if (spi->mode & (SPI_CPOL | SPI_CPHA)) mode 444 drivers/hwmon/lm93.c static int LM93_TEMP_OFFSET_FROM_REG(u8 reg, int mode) mode 446 drivers/hwmon/lm93.c return (reg & 0x0f) * (mode ? 5 : 10); mode 458 drivers/hwmon/lm93.c static u8 LM93_TEMP_OFFSET_TO_REG(int off, int mode) mode 460 drivers/hwmon/lm93.c int factor = mode ? 5 : 10; mode 463 drivers/hwmon/lm93.c mode ? LM93_TEMP_OFFSET_MAX1 : LM93_TEMP_OFFSET_MAX0); mode 468 drivers/hwmon/lm93.c static int LM93_TEMP_AUTO_OFFSET_FROM_REG(u8 reg, int nr, int mode) mode 472 drivers/hwmon/lm93.c return LM93_TEMP_OFFSET_FROM_REG(reg & 0x0f, mode); mode 476 drivers/hwmon/lm93.c return LM93_TEMP_OFFSET_FROM_REG(reg >> 4 & 0x0f, mode); mode 484 drivers/hwmon/lm93.c static u8 LM93_TEMP_AUTO_OFFSET_TO_REG(u8 old, int off, int nr, int mode) mode 486 drivers/hwmon/lm93.c u8 new = LM93_TEMP_OFFSET_TO_REG(off, mode); mode 498 drivers/hwmon/lm93.c int mode) mode 519 drivers/hwmon/lm93.c LM93_TEMP_OFFSET_FROM_REG(reg, mode); mode 523 drivers/hwmon/lm93.c int nr, int mode) mode 526 drivers/hwmon/lm93.c (LM93_TEMP_FROM_REG(data->boost[nr]) - hyst), mode); mode 1407 drivers/hwmon/lm93.c int mode = LM93_TEMP_OFFSET_MODE_FROM_REG(data->sfc2, nr); mode 1409 drivers/hwmon/lm93.c LM93_AUTO_BOOST_HYST_FROM_REGS(data, nr, mode)); mode 1449 drivers/hwmon/lm93.c int mode = LM93_TEMP_OFFSET_MODE_FROM_REG(data->sfc2, nr); mode 1452 drivers/hwmon/lm93.c nr, mode)); mode 1572 drivers/hwmon/lm93.c int mode = LM93_TEMP_OFFSET_MODE_FROM_REG(data->sfc2, nr); mode 1574 drivers/hwmon/lm93.c data->auto_pwm_min_hyst[nr / 2], mode)); mode 92 drivers/hwmon/lochnagar-hwmon.c enum lochnagar_measure_mode mode, int nsamples) mode 100 drivers/hwmon/lochnagar-hwmon.c LOCHNAGAR2_IMON_ENA_MASK | chan | mode); mode 175 drivers/hwmon/lochnagar-hwmon.c enum lochnagar_measure_mode mode, int nsamples, mode 185 drivers/hwmon/lochnagar-hwmon.c ret = do_measurement(regmap, chan, mode, nsamples); mode 68 drivers/hwmon/ltc2990.c u32 mode[2]; mode 163 drivers/hwmon/ltc2990.c (ltc2990_attrs_ena_0[data->mode[0]] & mode 164 drivers/hwmon/ltc2990.c ltc2990_attrs_ena_1[data->mode[1]]); mode 167 drivers/hwmon/ltc2990.c return a->mode; mode 223 drivers/hwmon/ltc2990.c data->mode, 2); mode 227 drivers/hwmon/ltc2990.c if (data->mode[0] & ~LTC2990_MODE0_MASK || mode 228 drivers/hwmon/ltc2990.c data->mode[1] & ~LTC2990_MODE1_MASK) mode 235 drivers/hwmon/ltc2990.c data->mode[0] = ret >> LTC2990_MODE0_SHIFT & LTC2990_MODE0_MASK; mode 236 drivers/hwmon/ltc2990.c data->mode[1] = ret >> LTC2990_MODE1_SHIFT & LTC2990_MODE1_MASK; mode 241 drivers/hwmon/ltc2990.c data->mode[0] << LTC2990_MODE0_SHIFT | mode 242 drivers/hwmon/ltc2990.c data->mode[1] << LTC2990_MODE1_SHIFT); mode 189 drivers/hwmon/max1111.c spi->mode = SPI_MODE_0; mode 463 drivers/hwmon/max16065.c return a->mode; mode 474 drivers/hwmon/max16065.c return a->mode; mode 28 drivers/hwmon/max31722.c u8 mode; mode 31 drivers/hwmon/max31722.c static int max31722_set_mode(struct max31722_data *data, u8 mode) mode 37 drivers/hwmon/max31722.c (data->mode & MAX31722_MODE_MASK) | mode mode 45 drivers/hwmon/max31722.c data->mode = (data->mode & MAX31722_MODE_MASK) | mode; mode 87 drivers/hwmon/max31722.c data->mode = MAX31722_MODE_CONTINUOUS | MAX31722_RESOLUTION_12BIT; mode 201 drivers/hwmon/max6650.c static int max6650_set_operating_mode(struct max6650_data *data, u8 mode) mode 206 drivers/hwmon/max6650.c if (mode == (config & MAX6650_CFG_MODE_MASK)) mode 209 drivers/hwmon/max6650.c config = (config & ~MAX6650_CFG_MODE_MASK) | mode; mode 339 drivers/hwmon/max6650.c return a->mode; mode 523 drivers/hwmon/max6650.c int mode; mode 545 drivers/hwmon/max6650.c mode = (data->config & MAX6650_CFG_MODE_MASK) >> 4; mode 546 drivers/hwmon/max6650.c *val = (4 - mode) & 3; /* {0 1 2 3} -> {0 3 2 1} */ mode 396 drivers/hwmon/max6697.c return attr->mode; mode 359 drivers/hwmon/nct6683.c .attr = {.name = _template, .mode = _mode }, \ mode 444 drivers/hwmon/nct6683.c a2->dev_attr.attr.mode = mode 445 drivers/hwmon/nct6683.c (*t)->dev_attr.attr.mode; mode 454 drivers/hwmon/nct6683.c a->dev_attr.attr.mode = mode 455 drivers/hwmon/nct6683.c (*t)->dev_attr.attr.mode; mode 689 drivers/hwmon/nct6683.c return attr->mode; mode 757 drivers/hwmon/nct6683.c return attr->mode; mode 876 drivers/hwmon/nct6683.c return attr->mode; mode 956 drivers/hwmon/nct6683.c return attr->mode | S_IWUSR; mode 958 drivers/hwmon/nct6683.c return attr->mode; mode 965 drivers/hwmon/nct6775.c static enum pwm_enable reg_to_pwm_enable(int pwm, int mode) mode 967 drivers/hwmon/nct6775.c if (mode == 0 && pwm == 255) mode 969 drivers/hwmon/nct6775.c return mode + 1; mode 972 drivers/hwmon/nct6775.c static int pwm_enable_to_reg(enum pwm_enable mode) mode 974 drivers/hwmon/nct6775.c if (mode == off) mode 976 drivers/hwmon/nct6775.c return mode - 1; mode 984 drivers/hwmon/nct6775.c static unsigned int step_time_from_reg(u8 reg, u8 mode) mode 986 drivers/hwmon/nct6775.c return mode ? 400 * reg : 100 * reg; mode 989 drivers/hwmon/nct6775.c static u8 step_time_to_reg(unsigned int msec, u8 mode) mode 991 drivers/hwmon/nct6775.c return clamp_val((mode ? (msec + 200) / 400 : mode 1246 drivers/hwmon/nct6775.c .attr = {.name = _template, .mode = _mode }, \ mode 1331 drivers/hwmon/nct6775.c a2->dev_attr.attr.mode = mode 1332 drivers/hwmon/nct6775.c (*t)->dev_attr.attr.mode; mode 1341 drivers/hwmon/nct6775.c a->dev_attr.attr.mode = mode 1342 drivers/hwmon/nct6775.c (*t)->dev_attr.attr.mode; mode 2057 drivers/hwmon/nct6775.c return attr->mode; mode 2275 drivers/hwmon/nct6775.c return attr->mode; mode 2476 drivers/hwmon/nct6775.c return attr->mode; mode 3284 drivers/hwmon/nct6775.c return attr->mode; mode 3478 drivers/hwmon/nct6775.c return attr->mode; mode 70 drivers/hwmon/nct7802.c unsigned int mode; mode 73 drivers/hwmon/nct7802.c ret = regmap_read(data->regmap, REG_MODE, &mode); mode 77 drivers/hwmon/nct7802.c return sprintf(buf, "%u\n", (mode >> (2 * sattr->index) & 3) + 2); mode 702 drivers/hwmon/nct7802.c return attr->mode; mode 714 drivers/hwmon/nct7802.c return attr->mode; mode 787 drivers/hwmon/nct7802.c return attr->mode; mode 800 drivers/hwmon/nct7802.c return attr->mode; mode 866 drivers/hwmon/nct7802.c return attr->mode; mode 704 drivers/hwmon/occ/common.c .mode = VERIFY_OCTAL_PERMISSIONS(_mode), \ mode 47 drivers/hwmon/occ/common.h u8 mode; mode 556 drivers/hwmon/pc87427.c static void update_pwm_enable(struct pc87427_data *data, int nr, u8 mode) mode 560 drivers/hwmon/pc87427.c data->pwm_enable[nr] |= mode; mode 615 drivers/hwmon/pc87427.c u8 mode; mode 622 drivers/hwmon/pc87427.c mode = data->pwm_enable[nr] & PWM_ENABLE_MODE_MASK; mode 623 drivers/hwmon/pc87427.c if (mode != PWM_MODE_MANUAL && mode != PWM_MODE_OFF) { mode 632 drivers/hwmon/pc87427.c if (mode == PWM_MODE_MANUAL && val == 0) { mode 635 drivers/hwmon/pc87427.c mode = PWM_MODE_OFF; mode 638 drivers/hwmon/pc87427.c } else if (mode == PWM_MODE_OFF && val != 0) { mode 641 drivers/hwmon/pc87427.c mode = PWM_MODE_MANUAL; mode 647 drivers/hwmon/pc87427.c if (mode == PWM_MODE_MANUAL) mode 50 drivers/hwmon/pmbus/inspur-ipsps.c [mode] = IPSPS_REG_MODE, mode 163 drivers/hwmon/pmbus/inspur-ipsps.c static SENSOR_DEVICE_ATTR_RW(mode, ipsps_mode, mode); mode 464 drivers/hwmon/pmbus/pmbus.h enum pmbus_fan_mode mode); mode 466 drivers/hwmon/pmbus/pmbus.h enum pmbus_fan_mode mode); mode 416 drivers/hwmon/pmbus/pmbus_core.c enum pmbus_fan_mode mode, mode 425 drivers/hwmon/pmbus/pmbus_core.c want_rpm = (mode == rpm); mode 451 drivers/hwmon/pmbus/pmbus_core.c enum pmbus_fan_mode mode) mode 453 drivers/hwmon/pmbus/pmbus_core.c return pmbus_get_fan_rate(client, page, id, mode, false); mode 458 drivers/hwmon/pmbus/pmbus_core.c enum pmbus_fan_mode mode) mode 460 drivers/hwmon/pmbus/pmbus_core.c return pmbus_get_fan_rate(client, page, id, mode, true); mode 1014 drivers/hwmon/pmbus/pmbus_core.c umode_t mode, mode 1024 drivers/hwmon/pmbus/pmbus_core.c dev_attr->attr.mode = mode; mode 1031 drivers/hwmon/pmbus/pmbus_core.c umode_t mode, mode 1040 drivers/hwmon/pmbus/pmbus_core.c pmbus_dev_attr_init(&a->dev_attr, name, mode, show, store); mode 157 drivers/hwmon/pwm-fan.c return a->mode; mode 221 drivers/hwmon/s3c-hwmon.c attr->dev_attr.attr.mode = S_IRUGO; mode 239 drivers/hwmon/s3c-hwmon.c attr->dev_attr.attr.mode = S_IRUGO; mode 221 drivers/hwmon/scpi-hwmon.c sensor->dev_attr_input.attr.mode = 0444; mode 225 drivers/hwmon/scpi-hwmon.c sensor->dev_attr_label.attr.mode = 0444; mode 134 drivers/hwmon/sht3x.c u8 mode; mode 223 drivers/hwmon/sht3x.c u16 interval_ms = mode_to_update_interval[data->mode]; mode 441 drivers/hwmon/sht3x.c if (data->mode > 0) { mode 554 drivers/hwmon/sht3x.c mode_to_update_interval[data->mode]); mode 563 drivers/hwmon/sht3x.c u8 mode; mode 573 drivers/hwmon/sht3x.c mode = get_mode_from_update_interval(update_interval); mode 577 drivers/hwmon/sht3x.c if (mode == data->mode) { mode 589 drivers/hwmon/sht3x.c if (data->mode > 0) { mode 594 drivers/hwmon/sht3x.c data->mode = 0; mode 597 drivers/hwmon/sht3x.c if (mode > 0) { mode 599 drivers/hwmon/sht3x.c command = periodic_measure_commands_hpm[mode - 1]; mode 601 drivers/hwmon/sht3x.c command = periodic_measure_commands_lpm[mode - 1]; mode 610 drivers/hwmon/sht3x.c data->mode = mode; mode 694 drivers/hwmon/sht3x.c data->mode = 0; mode 79 drivers/hwmon/vexpress-hwmon.c return attr->mode; mode 343 drivers/hwmon/w83627ehf.c static inline unsigned int step_time_from_reg(u8 reg, u8 mode) mode 345 drivers/hwmon/w83627ehf.c return mode ? 100 * reg : 400 * reg; mode 348 drivers/hwmon/w83627ehf.c static inline u8 step_time_to_reg(unsigned int msec, u8 mode) mode 350 drivers/hwmon/w83627ehf.c return clamp_val((mode ? (msec + 50) / 100 : (msec + 200) / 400), mode 966 drivers/hwmon/w83795.c unsigned int mode; mode 969 drivers/hwmon/w83795.c mode = 0; /* DC */ mode 971 drivers/hwmon/w83795.c mode = 1; /* PWM */ mode 973 drivers/hwmon/w83795.c return sprintf(buf, "%u\n", mode); mode 91 drivers/hwspinlock/hwspinlock_core.c int __hwspin_trylock(struct hwspinlock *hwlock, int mode, unsigned long *flags) mode 96 drivers/hwspinlock/hwspinlock_core.c BUG_ON(!flags && mode == HWLOCK_IRQSTATE); mode 111 drivers/hwspinlock/hwspinlock_core.c switch (mode) { mode 136 drivers/hwspinlock/hwspinlock_core.c switch (mode) { mode 207 drivers/hwspinlock/hwspinlock_core.c int mode, unsigned long *flags) mode 216 drivers/hwspinlock/hwspinlock_core.c ret = __hwspin_trylock(hwlock, mode, flags); mode 224 drivers/hwspinlock/hwspinlock_core.c if (mode == HWLOCK_IN_ATOMIC) { mode 265 drivers/hwspinlock/hwspinlock_core.c void __hwspin_unlock(struct hwspinlock *hwlock, int mode, unsigned long *flags) mode 268 drivers/hwspinlock/hwspinlock_core.c BUG_ON(!flags && mode == HWLOCK_IRQSTATE); mode 287 drivers/hwspinlock/hwspinlock_core.c switch (mode) { mode 288 drivers/hwtracing/coresight/coresight-catu.c if (!etr_buf || etr_buf->mode != ETR_MODE_CATU || !etr_buf->private) mode 350 drivers/hwtracing/coresight/coresight-catu.c etr_buf->mode = ETR_MODE_CATU; mode 371 drivers/hwtracing/coresight/coresight-catu.c coresight_simple_reg32(struct catu_drvdata, mode, CATU_MODE); mode 411 drivers/hwtracing/coresight/coresight-catu.c u32 control, mode; mode 430 drivers/hwtracing/coresight/coresight-catu.c if (etr_buf && etr_buf->mode == ETR_MODE_CATU) { mode 433 drivers/hwtracing/coresight/coresight-catu.c mode = CATU_MODE_TRANSLATE; mode 438 drivers/hwtracing/coresight/coresight-catu.c mode = CATU_MODE_PASS_THROUGH; mode 444 drivers/hwtracing/coresight/coresight-catu.c catu_write_mode(drvdata, mode); mode 447 drivers/hwtracing/coresight/coresight-catu.c (mode == CATU_MODE_PASS_THROUGH) ? mode 94 drivers/hwtracing/coresight/coresight-catu.h CATU_REG32(mode, CATU_MODE); mode 326 drivers/hwtracing/coresight/coresight-cpu-debug.c u32 mode, pcsr_offset; mode 338 drivers/hwtracing/coresight/coresight-cpu-debug.c mode = eddevid & EDDEVID_PCSAMPLE_MODE; mode 346 drivers/hwtracing/coresight/coresight-cpu-debug.c switch (mode) { mode 92 drivers/hwtracing/coresight/coresight-etb10.c u32 mode; mode 153 drivers/hwtracing/coresight/coresight-etb10.c if (drvdata->mode == CS_MODE_PERF) { mode 158 drivers/hwtracing/coresight/coresight-etb10.c if (drvdata->mode == CS_MODE_DISABLED) { mode 163 drivers/hwtracing/coresight/coresight-etb10.c drvdata->mode = CS_MODE_SYSFS; mode 183 drivers/hwtracing/coresight/coresight-etb10.c if (drvdata->mode == CS_MODE_SYSFS) { mode 218 drivers/hwtracing/coresight/coresight-etb10.c drvdata->mode = CS_MODE_PERF; mode 227 drivers/hwtracing/coresight/coresight-etb10.c static int etb_enable(struct coresight_device *csdev, u32 mode, void *data) mode 231 drivers/hwtracing/coresight/coresight-etb10.c switch (mode) { mode 362 drivers/hwtracing/coresight/coresight-etb10.c WARN_ON_ONCE(drvdata->mode == CS_MODE_DISABLED); mode 366 drivers/hwtracing/coresight/coresight-etb10.c drvdata->mode = CS_MODE_DISABLED; mode 589 drivers/hwtracing/coresight/coresight-etb10.c if (drvdata->mode == CS_MODE_SYSFS) { mode 343 drivers/hwtracing/coresight/coresight-etm-perf.c static void etm_event_stop(struct perf_event *event, int mode) mode 372 drivers/hwtracing/coresight/coresight-etm-perf.c if (mode & PERF_EF_UPDATE) { mode 389 drivers/hwtracing/coresight/coresight-etm-perf.c static int etm_event_add(struct perf_event *event, int mode) mode 394 drivers/hwtracing/coresight/coresight-etm-perf.c if (mode & PERF_EF_START) { mode 405 drivers/hwtracing/coresight/coresight-etm-perf.c static void etm_event_del(struct perf_event *event, int mode) mode 552 drivers/hwtracing/coresight/coresight-etm-perf.c ea->attr.attr.mode = 0444; mode 177 drivers/hwtracing/coresight/coresight-etm.h u32 mode; mode 241 drivers/hwtracing/coresight/coresight-etm.h local_t mode; mode 81 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c config->mode = ETM_MODE_EXCLUDE; mode 102 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c val = config->mode; mode 120 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c config->mode = val & ETM_MODE_ALL; mode 122 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c if (config->mode & ETM_MODE_EXCLUDE) mode 127 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c if (config->mode & ETM_MODE_CYCACC) mode 132 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c if (config->mode & ETM_MODE_STALL) { mode 142 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c if (config->mode & ETM_MODE_TIMESTAMP) { mode 152 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c if (config->mode & ETM_MODE_CTXID) mode 157 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c if (config->mode & ETM_MODE_BBROAD) mode 162 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c if (config->mode & ETM_MODE_RET_STACK) mode 167 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c if (config->mode & (ETM_MODE_EXCL_KERN | ETM_MODE_EXCL_USER)) mode 178 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c static DEVICE_ATTR_RW(mode); mode 724 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c if (!local_read(&drvdata->mode)) { mode 943 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c if (!local_read(&drvdata->mode)) { mode 243 drivers/hwtracing/coresight/coresight-etm3x.c u32 flags, mode; mode 245 drivers/hwtracing/coresight/coresight-etm3x.c mode = config->mode; mode 247 drivers/hwtracing/coresight/coresight-etm3x.c mode &= (ETM_MODE_EXCL_KERN | ETM_MODE_EXCL_USER); mode 250 drivers/hwtracing/coresight/coresight-etm3x.c if (mode == (ETM_MODE_EXCL_KERN | ETM_MODE_EXCL_USER)) mode 254 drivers/hwtracing/coresight/coresight-etm3x.c if (!(mode & ETM_MODE_EXCL_KERN) && !(mode & ETM_MODE_EXCL_USER)) mode 283 drivers/hwtracing/coresight/coresight-etm3x.c if (mode & ETM_MODE_EXCL_USER) { mode 321 drivers/hwtracing/coresight/coresight-etm3x.c config->mode = ETM_MODE_EXCL_KERN; mode 324 drivers/hwtracing/coresight/coresight-etm3x.c config->mode = ETM_MODE_EXCL_USER; mode 333 drivers/hwtracing/coresight/coresight-etm3x.c if (config->mode) mode 464 drivers/hwtracing/coresight/coresight-etm3x.c if (!local_read(&drvdata->mode)) mode 536 drivers/hwtracing/coresight/coresight-etm3x.c struct perf_event *event, u32 mode) mode 542 drivers/hwtracing/coresight/coresight-etm3x.c val = local_cmpxchg(&drvdata->mode, CS_MODE_DISABLED, mode); mode 548 drivers/hwtracing/coresight/coresight-etm3x.c switch (mode) { mode 561 drivers/hwtracing/coresight/coresight-etm3x.c local_set(&drvdata->mode, CS_MODE_DISABLED); mode 640 drivers/hwtracing/coresight/coresight-etm3x.c u32 mode; mode 648 drivers/hwtracing/coresight/coresight-etm3x.c mode = local_read(&drvdata->mode); mode 650 drivers/hwtracing/coresight/coresight-etm3x.c switch (mode) { mode 660 drivers/hwtracing/coresight/coresight-etm3x.c WARN_ON_ONCE(mode); mode 664 drivers/hwtracing/coresight/coresight-etm3x.c if (mode) mode 665 drivers/hwtracing/coresight/coresight-etm3x.c local_set(&drvdata->mode, CS_MODE_DISABLED); mode 700 drivers/hwtracing/coresight/coresight-etm3x.c if (local_read(&etmdrvdata[cpu]->mode)) mode 712 drivers/hwtracing/coresight/coresight-etm3x.c if (local_read(&etmdrvdata[cpu]->mode)) mode 178 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c config->mode = 0x0; mode 181 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c config->mode &= ~(ETM_MODE_LOAD | ETM_MODE_STORE); mode 185 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c config->mode &= ~(ETM_MODE_DATA_TRACE_ADDR | mode 210 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c config->mode |= ETM_MODE_VIEWINST_STARTSTOP; mode 282 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c val = config->mode; mode 290 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c unsigned long val, mode; mode 298 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c config->mode = val & ETMv4_MODE_ALL; mode 300 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c config->mode & ETM_MODE_EXCLUDE ? true : false); mode 305 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (config->mode & ETM_MODE_LOAD) mode 308 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (config->mode & ETM_MODE_STORE) mode 311 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (config->mode & ETM_MODE_LOAD_STORE) mode 320 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((config->mode & ETM_MODE_BB) && (drvdata->trcbb == true)) mode 326 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((config->mode & ETMv4_MODE_CYCACC) && mode 333 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((config->mode & ETMv4_MODE_CTXID) && (drvdata->ctxid_size)) mode 338 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((config->mode & ETM_MODE_VMID) && (drvdata->vmid_size)) mode 344 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c mode = ETM_MODE_COND(config->mode); mode 347 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c config->cfg |= mode << 8; mode 351 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((config->mode & ETMv4_MODE_TIMESTAMP) && (drvdata->ts_size)) mode 357 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((config->mode & ETM_MODE_RETURNSTACK) && mode 364 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c mode = ETM_MODE_QELEM(config->mode); mode 368 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((mode & BIT(0)) && (drvdata->q_support & BIT(0))) mode 374 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((mode & BIT(1)) && (drvdata->q_support & BIT(1))) mode 378 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((config->mode & ETM_MODE_ATB_TRIGGER) && mode 385 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((config->mode & ETM_MODE_LPOVERRIDE) && mode 392 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (config->mode & ETM_MODE_ISTALL_EN) mode 398 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (config->mode & ETM_MODE_INSTPRIO) mode 404 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((config->mode & ETM_MODE_NOOVERFLOW) && mode 411 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (config->mode & ETM_MODE_VIEWINST_STARTSTOP) mode 417 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (config->mode & ETM_MODE_TRACE_RESET) mode 423 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((config->mode & ETM_MODE_TRACE_ERR) && mode 429 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (config->mode & (ETM_MODE_EXCL_KERN | ETM_MODE_EXCL_USER)) mode 436 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c static DEVICE_ATTR_RW(mode); mode 1005 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c config->mode & ETM_MODE_EXCLUDE ? true : false); mode 317 drivers/hwtracing/coresight/coresight-etm4x.c config->mode = ETM_MODE_EXCL_KERN; mode 320 drivers/hwtracing/coresight/coresight-etm4x.c config->mode = ETM_MODE_EXCL_USER; mode 417 drivers/hwtracing/coresight/coresight-etm4x.c struct perf_event *event, u32 mode) mode 423 drivers/hwtracing/coresight/coresight-etm4x.c val = local_cmpxchg(&drvdata->mode, CS_MODE_DISABLED, mode); mode 429 drivers/hwtracing/coresight/coresight-etm4x.c switch (mode) { mode 442 drivers/hwtracing/coresight/coresight-etm4x.c local_set(&drvdata->mode, CS_MODE_DISABLED); mode 534 drivers/hwtracing/coresight/coresight-etm4x.c u32 mode; mode 542 drivers/hwtracing/coresight/coresight-etm4x.c mode = local_read(&drvdata->mode); mode 544 drivers/hwtracing/coresight/coresight-etm4x.c switch (mode) { mode 555 drivers/hwtracing/coresight/coresight-etm4x.c if (mode) mode 556 drivers/hwtracing/coresight/coresight-etm4x.c local_set(&drvdata->mode, CS_MODE_DISABLED); mode 768 drivers/hwtracing/coresight/coresight-etm4x.c if (config->mode & ETM_MODE_EXCL_KERN) mode 770 drivers/hwtracing/coresight/coresight-etm4x.c } else if (config->mode & ETM_MODE_EXCL_KERN) { mode 774 drivers/hwtracing/coresight/coresight-etm4x.c if (config->mode & ETM_MODE_EXCL_USER) mode 1023 drivers/hwtracing/coresight/coresight-etm4x.c u32 addr_acc, mode; mode 1025 drivers/hwtracing/coresight/coresight-etm4x.c mode = config->mode; mode 1026 drivers/hwtracing/coresight/coresight-etm4x.c mode &= (ETM_MODE_EXCL_KERN | ETM_MODE_EXCL_USER); mode 1029 drivers/hwtracing/coresight/coresight-etm4x.c WARN_ON_ONCE(mode == (ETM_MODE_EXCL_KERN | ETM_MODE_EXCL_USER)); mode 1032 drivers/hwtracing/coresight/coresight-etm4x.c if (!(mode & ETM_MODE_EXCL_KERN) && !(mode & ETM_MODE_EXCL_USER)) mode 1065 drivers/hwtracing/coresight/coresight-etm4x.c if (local_read(&etmdrvdata[cpu]->mode)) mode 1077 drivers/hwtracing/coresight/coresight-etm4x.c if (local_read(&etmdrvdata[cpu]->mode)) mode 242 drivers/hwtracing/coresight/coresight-etm4x.h u32 mode; mode 344 drivers/hwtracing/coresight/coresight-etm4x.h local_t mode; mode 148 drivers/hwtracing/coresight/coresight-priv.h int coresight_enable_path(struct list_head *path, u32 mode, void *sink_data); mode 138 drivers/hwtracing/coresight/coresight-stm.c local_t mode; mode 195 drivers/hwtracing/coresight/coresight-stm.c struct perf_event *event, u32 mode) mode 200 drivers/hwtracing/coresight/coresight-stm.c if (mode != CS_MODE_SYSFS) mode 203 drivers/hwtracing/coresight/coresight-stm.c val = local_cmpxchg(&drvdata->mode, CS_MODE_DISABLED, mode); mode 267 drivers/hwtracing/coresight/coresight-stm.c if (local_read(&drvdata->mode) == CS_MODE_SYSFS) { mode 277 drivers/hwtracing/coresight/coresight-stm.c local_set(&drvdata->mode, CS_MODE_DISABLED); mode 382 drivers/hwtracing/coresight/coresight-stm.c if (!(drvdata && local_read(&drvdata->mode))) mode 416 drivers/hwtracing/coresight/coresight-stm.c if (!(drvdata && local_read(&drvdata->mode))) mode 521 drivers/hwtracing/coresight/coresight-stm.c if (!local_read(&drvdata->mode)) { mode 547 drivers/hwtracing/coresight/coresight-stm.c if (local_read(&drvdata->mode)) { mode 568 drivers/hwtracing/coresight/coresight-stm.c if (!local_read(&drvdata->mode)) { mode 594 drivers/hwtracing/coresight/coresight-stm.c if (local_read(&drvdata->mode)) { mode 81 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->mode == CS_MODE_SYSFS) mode 184 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->mode == CS_MODE_SYSFS) { mode 207 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->mode = CS_MODE_SYSFS; mode 240 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->mode == CS_MODE_SYSFS) { mode 270 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->mode = CS_MODE_PERF; mode 280 drivers/hwtracing/coresight/coresight-tmc-etf.c u32 mode, void *data) mode 284 drivers/hwtracing/coresight/coresight-tmc-etf.c switch (mode) { mode 322 drivers/hwtracing/coresight/coresight-tmc-etf.c WARN_ON_ONCE(drvdata->mode == CS_MODE_DISABLED); mode 326 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->mode = CS_MODE_DISABLED; mode 351 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->mode = CS_MODE_SYSFS; mode 379 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->mode = CS_MODE_DISABLED; mode 458 drivers/hwtracing/coresight/coresight-tmc-etf.c if (WARN_ON_ONCE(drvdata->mode != CS_MODE_PERF)) mode 583 drivers/hwtracing/coresight/coresight-tmc-etf.c enum tmc_mode mode; mode 600 drivers/hwtracing/coresight/coresight-tmc-etf.c mode = readl_relaxed(drvdata->base + TMC_MODE); mode 601 drivers/hwtracing/coresight/coresight-tmc-etf.c if (mode != TMC_MODE_CIRCULAR_BUFFER) { mode 607 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->mode == CS_MODE_PERF) { mode 619 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->mode == CS_MODE_SYSFS) mode 632 drivers/hwtracing/coresight/coresight-tmc-etf.c enum tmc_mode mode; mode 643 drivers/hwtracing/coresight/coresight-tmc-etf.c mode = readl_relaxed(drvdata->base + TMC_MODE); mode 644 drivers/hwtracing/coresight/coresight-tmc-etf.c if (mode != TMC_MODE_CIRCULAR_BUFFER) { mode 650 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->mode == CS_MODE_SYSFS) { mode 615 drivers/hwtracing/coresight/coresight-tmc-etr.c etr_buf->mode = ETR_MODE_FLAT; mode 682 drivers/hwtracing/coresight/coresight-tmc-etr.c etr_buf->mode = ETR_MODE_ETR_SG; mode 795 drivers/hwtracing/coresight/coresight-tmc-etr.c static inline int tmc_etr_mode_alloc_buf(int mode, mode 802 drivers/hwtracing/coresight/coresight-tmc-etr.c switch (mode) { mode 806 drivers/hwtracing/coresight/coresight-tmc-etr.c if (etr_buf_ops[mode] && etr_buf_ops[mode]->alloc) mode 807 drivers/hwtracing/coresight/coresight-tmc-etr.c rc = etr_buf_ops[mode]->alloc(drvdata, etr_buf, mode 810 drivers/hwtracing/coresight/coresight-tmc-etr.c etr_buf->ops = etr_buf_ops[mode]; mode 876 drivers/hwtracing/coresight/coresight-tmc-etr.c (unsigned long)size >> 10, etr_buf->mode); mode 974 drivers/hwtracing/coresight/coresight-tmc-etr.c if (etr_buf->mode == ETR_MODE_ETR_SG) mode 1010 drivers/hwtracing/coresight/coresight-tmc-etr.c if ((etr_buf->mode == ETR_MODE_ETR_SG) && mode 1104 drivers/hwtracing/coresight/coresight-tmc-etr.c if (drvdata->mode == CS_MODE_SYSFS) mode 1152 drivers/hwtracing/coresight/coresight-tmc-etr.c if (drvdata->reading || drvdata->mode == CS_MODE_PERF) { mode 1162 drivers/hwtracing/coresight/coresight-tmc-etr.c if (drvdata->mode == CS_MODE_SYSFS) { mode 1179 drivers/hwtracing/coresight/coresight-tmc-etr.c drvdata->mode = CS_MODE_SYSFS; mode 1570 drivers/hwtracing/coresight/coresight-tmc-etr.c if (drvdata->mode == CS_MODE_SYSFS) { mode 1604 drivers/hwtracing/coresight/coresight-tmc-etr.c drvdata->mode = CS_MODE_PERF; mode 1615 drivers/hwtracing/coresight/coresight-tmc-etr.c u32 mode, void *data) mode 1617 drivers/hwtracing/coresight/coresight-tmc-etr.c switch (mode) { mode 1646 drivers/hwtracing/coresight/coresight-tmc-etr.c WARN_ON_ONCE(drvdata->mode == CS_MODE_DISABLED); mode 1650 drivers/hwtracing/coresight/coresight-tmc-etr.c drvdata->mode = CS_MODE_DISABLED; mode 1698 drivers/hwtracing/coresight/coresight-tmc-etr.c if (drvdata->mode == CS_MODE_SYSFS) mode 1720 drivers/hwtracing/coresight/coresight-tmc-etr.c if (drvdata->mode == CS_MODE_SYSFS) { mode 264 drivers/hwtracing/coresight/coresight-tmc.c coresight_tmc_reg(mode, TMC_MODE); mode 155 drivers/hwtracing/coresight/coresight-tmc.h enum etr_mode mode; mode 201 drivers/hwtracing/coresight/coresight-tmc.h u32 mode; mode 72 drivers/hwtracing/coresight/coresight-tpiu.c static int tpiu_enable(struct coresight_device *csdev, u32 mode, void *__unused) mode 220 drivers/hwtracing/coresight/coresight.c u32 mode, void *data) mode 231 drivers/hwtracing/coresight/coresight.c ret = sink_ops(csdev)->enable(csdev, mode, data); mode 313 drivers/hwtracing/coresight/coresight.c static int coresight_enable_source(struct coresight_device *csdev, u32 mode) mode 325 drivers/hwtracing/coresight/coresight.c ret = source_ops(csdev)->enable(csdev, NULL, mode); mode 412 drivers/hwtracing/coresight/coresight.c int coresight_enable_path(struct list_head *path, u32 mode, void *sink_data) mode 437 drivers/hwtracing/coresight/coresight.c ret = coresight_enable_sink(csdev, mode, sink_data); mode 188 drivers/hwtracing/intel_th/core.c static char *intel_th_output_devnode(struct device *dev, umode_t *mode, mode 392 drivers/hwtracing/intel_th/gth.c master_attrs[i].attr.attr.mode = S_IRUGO | S_IWUSR; mode 440 drivers/hwtracing/intel_th/gth.c out_attrs[idx].attr.attr.mode |= S_IRUGO; mode 445 drivers/hwtracing/intel_th/gth.c out_attrs[idx].attr.attr.mode |= S_IWUSR; mode 22 drivers/hwtracing/intel_th/msu-sink.c static void *msu_sink_assign(struct device *dev, int *mode) mode 37 drivers/hwtracing/intel_th/msu-sink.c *mode = MSC_MODE_MULTI; mode 161 drivers/hwtracing/intel_th/msu.c unsigned int mode; mode 763 drivers/hwtracing/intel_th/msu.c if (msc->mode > MSC_MODE_MULTI) mode 766 drivers/hwtracing/intel_th/msu.c if (msc->mode == MSC_MODE_MULTI) { mode 779 drivers/hwtracing/intel_th/msu.c if (msc->mode == MSC_MODE_SINGLE) { mode 788 drivers/hwtracing/intel_th/msu.c reg |= msc->mode << __ffs(MSC_MODE); mode 798 drivers/hwtracing/intel_th/msu.c msc->thdev->output.multiblock = msc->mode == MSC_MODE_MULTI; mode 822 drivers/hwtracing/intel_th/msu.c if (msc->mode == MSC_MODE_MULTI) mode 830 drivers/hwtracing/intel_th/msu.c if (msc->mode == MSC_MODE_SINGLE) { mode 1259 drivers/hwtracing/intel_th/msu.c if (msc->mode == MSC_MODE_SINGLE) mode 1261 drivers/hwtracing/intel_th/msu.c else if (msc->mode == MSC_MODE_MULTI) mode 1290 drivers/hwtracing/intel_th/msu.c if (msc->mode == MSC_MODE_SINGLE) { mode 1295 drivers/hwtracing/intel_th/msu.c } else if (msc->mode == MSC_MODE_MULTI) { mode 1373 drivers/hwtracing/intel_th/msu.c if (msc->mode == MSC_MODE_SINGLE) mode 1506 drivers/hwtracing/intel_th/msu.c if (msc->mode == MSC_MODE_SINGLE && !msc->single_wrap) mode 1520 drivers/hwtracing/intel_th/msu.c if (msc->mode == MSC_MODE_SINGLE) { mode 1524 drivers/hwtracing/intel_th/msu.c } else if (msc->mode == MSC_MODE_MULTI) { mode 1619 drivers/hwtracing/intel_th/msu.c if (msc->mode != MSC_MODE_SINGLE && mode 1620 drivers/hwtracing/intel_th/msu.c msc->mode != MSC_MODE_MULTI) mode 1668 drivers/hwtracing/intel_th/msu.c msc->mode = MSC_MODE_MULTI; mode 1827 drivers/hwtracing/intel_th/msu.c const char *mode = msc_mode[msc->mode]; mode 1832 drivers/hwtracing/intel_th/msu.c mode = msc->mbuf->name; mode 1833 drivers/hwtracing/intel_th/msu.c ret = scnprintf(buf, PAGE_SIZE, "%s\n", mode); mode 1846 drivers/hwtracing/intel_th/msu.c char *cp, *mode; mode 1856 drivers/hwtracing/intel_th/msu.c mode = kstrndup(buf, len, GFP_KERNEL); mode 1857 drivers/hwtracing/intel_th/msu.c if (!mode) mode 1860 drivers/hwtracing/intel_th/msu.c i = match_string(msc_mode, ARRAY_SIZE(msc_mode), mode); mode 1862 drivers/hwtracing/intel_th/msu.c kfree(mode); mode 1868 drivers/hwtracing/intel_th/msu.c kfree(mode); mode 1872 drivers/hwtracing/intel_th/msu.c mbuf = msu_buffer_get(mode); mode 1873 drivers/hwtracing/intel_th/msu.c kfree(mode); mode 1909 drivers/hwtracing/intel_th/msu.c msc->mode = i; mode 1919 drivers/hwtracing/intel_th/msu.c static DEVICE_ATTR_RW(mode); mode 1930 drivers/hwtracing/intel_th/msu.c if (msc->mode == MSC_MODE_SINGLE) mode 1932 drivers/hwtracing/intel_th/msu.c else if (msc->mode == MSC_MODE_MULTI) { mode 1984 drivers/hwtracing/intel_th/msu.c if (nr_wins && msc->mode == MSC_MODE_SINGLE) { mode 2041 drivers/hwtracing/intel_th/msu.c if (msc->mode == MSC_MODE_MULTI && !msc->mbuf) mode 25 drivers/hwtracing/intel_th/pti.c unsigned int mode; mode 54 drivers/hwtracing/intel_th/pti.c return scnprintf(buf, PAGE_SIZE, "%d\n", pti_mode[pti->mode]); mode 72 drivers/hwtracing/intel_th/pti.c pti->mode = ret; mode 77 drivers/hwtracing/intel_th/pti.c static DEVICE_ATTR_RW(mode); mode 158 drivers/hwtracing/intel_th/pti.c ctl |= pti->mode << __ffs(PTI_MODE); mode 182 drivers/hwtracing/intel_th/pti.c pti->mode = (ctl & PTI_MODE) >> __ffs(PTI_MODE); mode 186 drivers/hwtracing/intel_th/pti.c if (!pti_mode[pti->mode]) mode 187 drivers/hwtracing/intel_th/pti.c pti->mode = pti_width_mode(4); mode 434 drivers/i2c/algos/i2c-algo-pca.c int mode; mode 463 drivers/i2c/algos/i2c-algo-pca.c mode = I2C_PCA_MODE_TURBO; mode 468 drivers/i2c/algos/i2c-algo-pca.c mode = I2C_PCA_MODE_FASTP; mode 473 drivers/i2c/algos/i2c-algo-pca.c mode = I2C_PCA_MODE_FAST; mode 478 drivers/i2c/algos/i2c-algo-pca.c mode = I2C_PCA_MODE_STD; mode 504 drivers/i2c/algos/i2c-algo-pca.c pca_outw(pca_data, I2C_PCA_IND, mode); mode 88 drivers/i2c/busses/i2c-at91.h #define AT91_TWI_FMR_TXRDYM(mode) (((mode) & 0x3) << 0) mode 90 drivers/i2c/busses/i2c-at91.h #define AT91_TWI_FMR_RXRDYM(mode) (((mode) & 0x3) << 4) mode 274 drivers/i2c/busses/i2c-designware-core.h int mode; mode 197 drivers/i2c/busses/i2c-designware-platdrv.c dev->mode = DW_IC_MASTER; mode 218 drivers/i2c/busses/i2c-designware-platdrv.c dev->mode = DW_IC_SLAVE; mode 396 drivers/i2c/busses/i2c-designware-platdrv.c if (dev->mode == DW_IC_SLAVE) mode 625 drivers/i2c/busses/i2c-eg20t.c u32 mode; mode 629 drivers/i2c/busses/i2c-eg20t.c mode = ioread32(p + PCH_I2CMOD); mode 630 drivers/i2c/busses/i2c-eg20t.c mode &= BUFFER_MODE | EEPROM_SR_MODE; mode 631 drivers/i2c/busses/i2c-eg20t.c if (mode != NORMAL_MODE) { mode 633 drivers/i2c/busses/i2c-eg20t.c "I2C-%d mode(%d) is not supported\n", mode, i); mode 189 drivers/i2c/busses/i2c-fsi.c u32 mode = I2C_MODE_ENHANCED, extended_status, watermark; mode 197 drivers/i2c/busses/i2c-fsi.c mode |= FIELD_PREP(I2C_MODE_CLKDIV, I2C_DEFAULT_CLK_DIV); mode 198 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_MODE, &mode); mode 218 drivers/i2c/busses/i2c-fsi.c u32 mode, dummy = 0; mode 220 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_read_reg(fsi, I2C_FSI_MODE, &mode); mode 224 drivers/i2c/busses/i2c-fsi.c if (FIELD_GET(I2C_MODE_PORT, mode) == port->port) mode 227 drivers/i2c/busses/i2c-fsi.c mode = (mode & ~I2C_MODE_PORT) | FIELD_PREP(I2C_MODE_PORT, port->port); mode 228 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_write_reg(fsi, I2C_FSI_MODE, &mode); mode 378 drivers/i2c/busses/i2c-fsi.c u32 mode; mode 382 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_read_reg(i2c->fsi, I2C_FSI_MODE, &mode); mode 386 drivers/i2c/busses/i2c-fsi.c mode |= I2C_MODE_DIAG; mode 387 drivers/i2c/busses/i2c-fsi.c fsi_i2c_write_reg(i2c->fsi, I2C_FSI_MODE, &mode); mode 393 drivers/i2c/busses/i2c-fsi.c u32 mode; mode 397 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_read_reg(i2c->fsi, I2C_FSI_MODE, &mode); mode 401 drivers/i2c/busses/i2c-fsi.c mode &= ~I2C_MODE_DIAG; mode 402 drivers/i2c/busses/i2c-fsi.c fsi_i2c_write_reg(i2c->fsi, I2C_FSI_MODE, &mode); mode 441 drivers/i2c/busses/i2c-fsi.c u32 mode, dummy = 0; mode 453 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_read_reg(i2c->fsi, I2C_FSI_MODE, &mode); mode 459 drivers/i2c/busses/i2c-fsi.c mode &= ~I2C_MODE_PORT; mode 460 drivers/i2c/busses/i2c-fsi.c mode |= FIELD_PREP(I2C_MODE_PORT, port); mode 461 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_MODE, &mode); mode 387 drivers/i2c/busses/i2c-img-scb.c enum img_i2c_mode mode; mode 444 drivers/i2c/busses/i2c-img-scb.c static void img_i2c_switch_mode(struct img_i2c *i2c, enum img_i2c_mode mode) mode 446 drivers/i2c/busses/i2c-img-scb.c i2c->mode = mode; mode 447 drivers/i2c/busses/i2c-img-scb.c i2c->int_enable = img_i2c_int_enable_by_mode[mode]; mode 478 drivers/i2c/busses/i2c-img-scb.c if (cmd == CMD_GEN_DATA && i2c->mode == MODE_ATOMIC) { mode 960 drivers/i2c/busses/i2c-img-scb.c if (i2c->mode == MODE_ATOMIC) mode 962 drivers/i2c/busses/i2c-img-scb.c else if (i2c->mode == MODE_AUTOMATIC) mode 964 drivers/i2c/busses/i2c-img-scb.c else if (i2c->mode == MODE_SEQUENCE) mode 966 drivers/i2c/busses/i2c-img-scb.c else if (i2c->mode == MODE_WAITSTOP && (int_status & INT_SLAVE_EVENT) && mode 969 drivers/i2c/busses/i2c-img-scb.c else if (i2c->mode == MODE_RAW) mode 1032 drivers/i2c/busses/i2c-img-scb.c if (i2c->mode == MODE_SUSPEND) { mode 1037 drivers/i2c/busses/i2c-img-scb.c if (i2c->mode == MODE_FATAL) mode 114 drivers/i2c/busses/i2c-imx-lpi2c.c enum lpi2c_imx_mode mode; mode 153 drivers/i2c/busses/i2c-imx-lpi2c.c enum lpi2c_imx_mode mode; mode 156 drivers/i2c/busses/i2c-imx-lpi2c.c mode = STANDARD; mode 158 drivers/i2c/busses/i2c-imx-lpi2c.c mode = FAST; mode 160 drivers/i2c/busses/i2c-imx-lpi2c.c mode = FAST_PLUS; mode 162 drivers/i2c/busses/i2c-imx-lpi2c.c mode = HS; mode 164 drivers/i2c/busses/i2c-imx-lpi2c.c mode = ULTRA_FAST; mode 166 drivers/i2c/busses/i2c-imx-lpi2c.c lpi2c_imx->mode = mode; mode 217 drivers/i2c/busses/i2c-imx-lpi2c.c if (lpi2c_imx->mode == HS || lpi2c_imx->mode == ULTRA_FAST) mode 235 drivers/i2c/busses/i2c-imx-lpi2c.c if (lpi2c_imx->mode == ULTRA_FAST) mode 241 drivers/i2c/busses/i2c-imx-lpi2c.c if (lpi2c_imx->mode == ULTRA_FAST) mode 255 drivers/i2c/busses/i2c-imx-lpi2c.c if (lpi2c_imx->mode == HS) mode 33 drivers/i2c/busses/i2c-pnx.c int mode; /* Interface mode */ mode 149 drivers/i2c/busses/i2c-pnx.c slave_addr, alg_data->mif.mode); mode 184 drivers/i2c/busses/i2c-pnx.c (slave_addr << 1) | start_bit | alg_data->mif.mode); mode 187 drivers/i2c/busses/i2c-pnx.c iowrite32((slave_addr << 1) | start_bit | alg_data->mif.mode, mode 389 drivers/i2c/busses/i2c-pnx.c alg_data->mif.mode); mode 436 drivers/i2c/busses/i2c-pnx.c if (alg_data->mif.mode == I2C_SMBUS_WRITE) { mode 438 drivers/i2c/busses/i2c-pnx.c } else if (alg_data->mif.mode == I2C_SMBUS_READ) { mode 543 drivers/i2c/busses/i2c-pnx.c alg_data->mif.mode = (pmsg->flags & I2C_M_RD) ? mode 549 drivers/i2c/busses/i2c-pnx.c __func__, alg_data->mif.mode, alg_data->mif.len); mode 40 drivers/i2c/busses/i2c-powermac.c int mode, subsize, len; mode 46 drivers/i2c/busses/i2c-powermac.c mode = pmac_i2c_mode_std; mode 50 drivers/i2c/busses/i2c-powermac.c mode = read ? pmac_i2c_mode_combined : pmac_i2c_mode_stdsub; mode 104 drivers/i2c/busses/i2c-powermac.c rc = pmac_i2c_setmode(bus, mode); mode 107 drivers/i2c/busses/i2c-powermac.c mode, rc); mode 214 drivers/i2c/busses/i2c-rk3x.c unsigned int mode; mode 250 drivers/i2c/busses/i2c-rk3x.c val |= REG_CON_EN | REG_CON_MOD(i2c->mode) | REG_CON_START; mode 383 drivers/i2c/busses/i2c-rk3x.c if (i2c->mode == REG_CON_MOD_TX) { mode 1000 drivers/i2c/busses/i2c-rk3x.c i2c->mode = REG_CON_MOD_REGISTER_TX; mode 1019 drivers/i2c/busses/i2c-rk3x.c i2c->mode = REG_CON_MOD_REGISTER_TX; mode 1024 drivers/i2c/busses/i2c-rk3x.c i2c->mode = REG_CON_MOD_TX; mode 190 drivers/i2c/busses/i2c-st.c int mode; mode 274 drivers/i2c/busses/i2c-st.c struct st_i2c_timings *t = &i2c_timings[i2c_dev->mode]; mode 837 drivers/i2c/busses/i2c-st.c i2c_dev->mode = I2C_MODE_STANDARD; mode 840 drivers/i2c/busses/i2c-st.c i2c_dev->mode = I2C_MODE_FAST; mode 88 drivers/i2c/busses/i2c-wmt.c int mode; mode 160 drivers/i2c/busses/i2c-wmt.c if (i2c_dev->mode == I2C_MODE_STANDARD) mode 250 drivers/i2c/busses/i2c-wmt.c if (i2c_dev->mode == I2C_MODE_STANDARD) mode 362 drivers/i2c/busses/i2c-wmt.c if (i2c_dev->mode == I2C_MODE_STANDARD) mode 400 drivers/i2c/busses/i2c-wmt.c i2c_dev->mode = I2C_MODE_STANDARD; mode 403 drivers/i2c/busses/i2c-wmt.c i2c_dev->mode = I2C_MODE_FAST; mode 143 drivers/i2c/i2c-slave-eeprom.c eeprom->bin.attr.mode = S_IRUSR | S_IWUSR; mode 211 drivers/i3c/master.c int mode; mode 216 drivers/i3c/master.c for_each_set_bit(mode, &caps, 8) { mode 217 drivers/i3c/master.c if (mode >= ARRAY_SIZE(hdrcap_strings)) mode 220 drivers/i3c/master.c if (!hdrcap_strings[mode]) mode 224 drivers/i3c/master.c hdrcap_strings[mode]); mode 411 drivers/i3c/master.c i3cbus->mode = I3C_BUS_MODE_PURE; mode 440 drivers/i3c/master.c if (i3cbus->mode < 0 || mode 441 drivers/i3c/master.c i3cbus->mode >= ARRAY_SIZE(i3c_bus_mode_strings) || mode 442 drivers/i3c/master.c !i3c_bus_mode_strings[i3cbus->mode]) mode 445 drivers/i3c/master.c ret = sprintf(buf, "%s\n", i3c_bus_mode_strings[i3cbus->mode]); mode 450 drivers/i3c/master.c static DEVICE_ATTR_RO(mode); mode 530 drivers/i3c/master.c int i3c_bus_set_mode(struct i3c_bus *i3cbus, enum i3c_bus_mode mode, mode 535 drivers/i3c/master.c i3cbus->mode = mode; mode 537 drivers/i3c/master.c switch (i3cbus->mode) { mode 2412 drivers/i3c/master.c enum i3c_bus_mode mode = I3C_BUS_MODE_PURE; mode 2448 drivers/i3c/master.c if (mode < I3C_BUS_MODE_MIXED_FAST) mode 2449 drivers/i3c/master.c mode = I3C_BUS_MODE_MIXED_FAST; mode 2452 drivers/i3c/master.c if (mode < I3C_BUS_MODE_MIXED_LIMITED) mode 2453 drivers/i3c/master.c mode = I3C_BUS_MODE_MIXED_LIMITED; mode 2456 drivers/i3c/master.c if (mode < I3C_BUS_MODE_MIXED_SLOW) mode 2457 drivers/i3c/master.c mode = I3C_BUS_MODE_MIXED_SLOW; mode 2468 drivers/i3c/master.c ret = i3c_bus_set_mode(i3cbus, mode, i2c_scl_rate); mode 600 drivers/i3c/master/dw-i3c-master.c switch (bus->mode) { mode 1193 drivers/i3c/master/i3c-master-cdns.c switch (bus->mode) { mode 510 drivers/ide/au1xxx-ide.c char *mode = "MWDMA2"; mode 512 drivers/ide/au1xxx-ide.c char *mode = "PIO+DDMA(offload)"; mode 564 drivers/ide/au1xxx-ide.c printk(KERN_INFO "Au1xxx IDE(builtin) configured for %s\n", mode ); mode 380 drivers/ide/cmd640.c static void __set_prefetch_mode(ide_drive_t *drive, int mode) mode 382 drivers/ide/cmd640.c if (mode) { /* want prefetch on? */ mode 411 drivers/ide/cmd640.c static void set_prefetch_mode(ide_drive_t *drive, unsigned int index, int mode) mode 419 drivers/ide/cmd640.c __set_prefetch_mode(drive, mode); mode 420 drivers/ide/cmd640.c if (mode) mode 55 drivers/ide/cmd64x.c static void cmd64x_program_timings(ide_drive_t *drive, u8 mode) mode 72 drivers/ide/cmd64x.c ide_timing_compute(drive, mode, &t, T, 0); mode 182 drivers/ide/cs5536.c const u8 mode = drive->dma_mode; mode 186 drivers/ide/cs5536.c if (mode >= XFER_UDMA_0) { mode 188 drivers/ide/cs5536.c etc |= udma_timings[mode - XFER_UDMA_0] << dshift; mode 192 drivers/ide/cs5536.c timings |= mwdma_timings[mode - XFER_MW_DMA_0] << 8; mode 59 drivers/ide/cy82c693.c const u8 mode = drive->dma_mode; mode 60 drivers/ide/cy82c693.c u8 single = (mode & 0x10) >> 4, index = 0, data = 0; mode 64 drivers/ide/cy82c693.c data = (mode & 3) | (single << 2); mode 796 drivers/ide/hpt366.c static void hpt3xxn_set_clock(ide_hwif_t *hwif, u8 mode) mode 801 drivers/ide/hpt366.c if ((scr2 & 0x7f) == mode) mode 809 drivers/ide/hpt366.c outb(mode, base + 0x6b); mode 1609 drivers/ide/ide-cd.c static int idecd_open(struct block_device *bdev, fmode_t mode) mode 1621 drivers/ide/ide-cd.c rc = cdrom_open(&info->devinfo, bdev, mode); mode 1629 drivers/ide/ide-cd.c static void idecd_release(struct gendisk *disk, fmode_t mode) mode 1634 drivers/ide/ide-cd.c cdrom_release(&info->devinfo, mode); mode 1679 drivers/ide/ide-cd.c static int idecd_locked_ioctl(struct block_device *bdev, fmode_t mode, mode 1696 drivers/ide/ide-cd.c err = cdrom_ioctl(&info->devinfo, bdev, mode, cmd, arg); mode 1701 drivers/ide/ide-cd.c static int idecd_ioctl(struct block_device *bdev, fmode_t mode, mode 1707 drivers/ide/ide-cd.c ret = idecd_locked_ioctl(bdev, mode, cmd, arg); mode 19 drivers/ide/ide-disk_ioctl.c int ide_disk_ioctl(ide_drive_t *drive, struct block_device *bdev, fmode_t mode, mode 267 drivers/ide/ide-dma.c u8 mode = ((id[ATA_ID_CFA_MODES] & 0x38) >> 3) - 1; mode 269 drivers/ide/ide-dma.c mask |= ((2 << mode) - 1) << 3; mode 280 drivers/ide/ide-dma.c u8 mode = id[ATA_ID_OLD_DMA_MODES] >> 8; mode 286 drivers/ide/ide-dma.c if (mode <= 2) mode 287 drivers/ide/ide-dma.c mask = (2 << mode) - 1; mode 316 drivers/ide/ide-dma.c u8 mode = 0; mode 329 drivers/ide/ide-dma.c mode = xfer_mode_bases[i] + x; mode 334 drivers/ide/ide-dma.c if (hwif->chipset == ide_acorn && mode == 0) { mode 340 drivers/ide/ide-dma.c mode = XFER_MW_DMA_1; mode 343 drivers/ide/ide-dma.c mode = min(mode, req_mode); mode 346 drivers/ide/ide-dma.c mode ? ide_xfer_verbose(mode) : "no DMA"); mode 348 drivers/ide/ide-dma.c return mode; mode 417 drivers/ide/ide-dma.c u8 mode; mode 421 drivers/ide/ide-dma.c mode = drive->current_speed; mode 426 drivers/ide/ide-dma.c if (mode > XFER_UDMA_0 && mode <= XFER_UDMA_7) mode 427 drivers/ide/ide-dma.c mode--; mode 429 drivers/ide/ide-dma.c mode = XFER_PIO_4; mode 430 drivers/ide/ide-dma.c ide_set_xfer_rate(drive, mode); mode 255 drivers/ide/ide-floppy_ioctl.c fmode_t mode, unsigned int cmd, mode 264 drivers/ide/ide-floppy_ioctl.c if (!(mode & FMODE_WRITE)) mode 275 drivers/ide/ide-floppy_ioctl.c fmode_t mode, unsigned int cmd, unsigned long arg) mode 287 drivers/ide/ide-floppy_ioctl.c err = ide_floppy_format_ioctl(drive, &pc, mode, cmd, argp); mode 296 drivers/ide/ide-floppy_ioctl.c err = scsi_cmd_blk_ioctl(bdev, mode, cmd, argp); mode 184 drivers/ide/ide-gd.c static int ide_gd_open(struct block_device *bdev, fmode_t mode) mode 212 drivers/ide/ide-gd.c if (ret && (mode & FMODE_NDELAY) == 0) { mode 217 drivers/ide/ide-gd.c if ((drive->dev_flags & IDE_DFLAG_WP) && (mode & FMODE_WRITE)) { mode 242 drivers/ide/ide-gd.c static int ide_gd_unlocked_open(struct block_device *bdev, fmode_t mode) mode 247 drivers/ide/ide-gd.c ret = ide_gd_open(bdev, mode); mode 254 drivers/ide/ide-gd.c static void ide_gd_release(struct gendisk *disk, fmode_t mode) mode 335 drivers/ide/ide-gd.c static int ide_gd_ioctl(struct block_device *bdev, fmode_t mode, mode 341 drivers/ide/ide-gd.c return drive->disk_ops->ioctl(drive, bdev, mode, cmd, arg); mode 481 drivers/ide/ide-proc.c ent = proc_create_single_data(p->name, p->mode, dir, p->show, data); mode 1894 drivers/ide/ide-tape.c static int idetape_open(struct block_device *bdev, fmode_t mode) mode 1908 drivers/ide/ide-tape.c static void idetape_release(struct gendisk *disk, fmode_t mode) mode 1917 drivers/ide/ide-tape.c static int idetape_ioctl(struct block_device *bdev, fmode_t mode, mode 61 drivers/ide/ide-timings.c for (t = ide_timing; t->mode != speed; t++) mode 62 drivers/ide/ide-timings.c if (t->mode == 0xff) mode 28 drivers/ide/ide-xfer-mode.c const char *ide_xfer_verbose(u8 mode) mode 31 drivers/ide/ide-xfer-mode.c u8 i = mode & 0xf; mode 33 drivers/ide/ide-xfer-mode.c if (mode >= XFER_UDMA_0 && mode <= XFER_UDMA_7) mode 35 drivers/ide/ide-xfer-mode.c else if (mode >= XFER_MW_DMA_0 && mode <= XFER_MW_DMA_4) mode 37 drivers/ide/ide-xfer-mode.c else if (mode >= XFER_SW_DMA_0 && mode <= XFER_SW_DMA_2) mode 39 drivers/ide/ide-xfer-mode.c else if (mode >= XFER_PIO_0 && mode <= XFER_PIO_6) mode 41 drivers/ide/ide-xfer-mode.c else if (mode == XFER_PIO_SLOW) mode 123 drivers/ide/ide-xfer-mode.c int ide_set_pio_mode(ide_drive_t *drive, const u8 mode) mode 139 drivers/ide/ide-xfer-mode.c drive->pio_mode = mode; mode 145 drivers/ide/ide-xfer-mode.c if (ide_config_drive_speed(drive, mode)) mode 147 drivers/ide/ide-xfer-mode.c drive->pio_mode = mode; mode 151 drivers/ide/ide-xfer-mode.c drive->pio_mode = mode; mode 153 drivers/ide/ide-xfer-mode.c return ide_config_drive_speed(drive, mode); mode 157 drivers/ide/ide-xfer-mode.c int ide_set_dma_mode(ide_drive_t *drive, const u8 mode) mode 169 drivers/ide/ide-xfer-mode.c if (ide_config_drive_speed(drive, mode)) mode 171 drivers/ide/ide-xfer-mode.c drive->dma_mode = mode; mode 175 drivers/ide/ide-xfer-mode.c drive->dma_mode = mode; mode 177 drivers/ide/ide-xfer-mode.c return ide_config_drive_speed(drive, mode); mode 226 drivers/ide/ide-xfer-mode.c u8 mode = ide_find_dma_mode(drive, speed); mode 228 drivers/ide/ide-xfer-mode.c if (mode == 0) { mode 230 drivers/ide/ide-xfer-mode.c mode = fls(hwif->pio_mask) - 1 + XFER_PIO_0; mode 232 drivers/ide/ide-xfer-mode.c mode = XFER_PIO_4; mode 237 drivers/ide/ide-xfer-mode.c return min(speed, mode); mode 611 drivers/ide/it821x.c static char *mode[2] = { "pass through", "smart" }; mode 621 drivers/ide/it821x.c pci_name(dev), mode[conf & 1]); mode 70 drivers/ide/opti621.c unsigned long mode = drive->pio_mode, pair_mode; mode 71 drivers/ide/opti621.c const u8 pio = mode - XFER_PIO_0; mode 84 drivers/ide/opti621.c ide_set_drivedata(drive, (void *)mode); mode 88 drivers/ide/opti621.c if (pair_mode && pair_mode < mode) mode 65 drivers/ide/palm_bk3710.c unsigned int mode) mode 72 drivers/ide/palm_bk3710.c t0 = DIV_ROUND_UP(palm_bk3710_udmatimings[mode].cycletime, mode 75 drivers/ide/palm_bk3710.c trp = DIV_ROUND_UP(palm_bk3710_udmatimings[mode].rptime, mode 100 drivers/ide/palm_bk3710.c unsigned int mode) mode 108 drivers/ide/palm_bk3710.c t = ide_timing_find_mode(mode); mode 132 drivers/ide/palm_bk3710.c unsigned int mode) mode 138 drivers/ide/palm_bk3710.c t = ide_timing_find_mode(XFER_PIO_0 + mode); mode 158 drivers/ide/palm_bk3710.c if (mode2 < mode) mode 159 drivers/ide/palm_bk3710.c mode = mode2; mode 41 drivers/ide/pdc202xx_new.c u8 mode; mode 49 drivers/ide/pdc202xx_new.c mode = 4; mode 53 drivers/ide/pdc202xx_new.c mode = 3; mode 59 drivers/ide/pdc202xx_new.c return mode; mode 143 drivers/ide/pdc202xx_new.c u8 mode = speed & 0x07; mode 147 drivers/ide/pdc202xx_new.c udma_timings[mode].reg10); mode 149 drivers/ide/pdc202xx_new.c udma_timings[mode].reg11); mode 151 drivers/ide/pdc202xx_new.c udma_timings[mode].reg12); mode 154 drivers/ide/pdc202xx_new.c mwdma_timings[mode].reg0e); mode 156 drivers/ide/pdc202xx_new.c mwdma_timings[mode].reg0f); mode 132 drivers/ide/sc1200.c const u8 mode = drive->dma_mode; mode 153 drivers/ide/sc1200.c if (mode >= XFER_UDMA_0) mode 154 drivers/ide/sc1200.c timings = udma_timing[pci_clock][mode - XFER_UDMA_0]; mode 156 drivers/ide/sc1200.c timings = mwdma_timing[pci_clock][mode - XFER_MW_DMA_0]; mode 199 drivers/ide/sc1200.c int mode = -1; mode 206 drivers/ide/sc1200.c case 200: mode = XFER_UDMA_0; break; mode 207 drivers/ide/sc1200.c case 201: mode = XFER_UDMA_1; break; mode 208 drivers/ide/sc1200.c case 202: mode = XFER_UDMA_2; break; mode 209 drivers/ide/sc1200.c case 100: mode = XFER_MW_DMA_0; break; mode 210 drivers/ide/sc1200.c case 101: mode = XFER_MW_DMA_1; break; mode 211 drivers/ide/sc1200.c case 102: mode = XFER_MW_DMA_2; break; mode 213 drivers/ide/sc1200.c if (mode != -1) { mode 216 drivers/ide/sc1200.c if (ide_set_dma_mode(drive, mode) == 0 && mode 75 drivers/ide/serverworks.c u8 btr = 0, mode, mask; mode 78 drivers/ide/serverworks.c mode = btr & 0x3; mode 82 drivers/ide/serverworks.c if (mode > 2 && check_in_drive_lists(drive, svwks_bad_ata100)) mode 83 drivers/ide/serverworks.c mode = 2; mode 85 drivers/ide/serverworks.c switch(mode) { mode 256 drivers/ide/siimage.c u8 mode = 0; mode 278 drivers/ide/siimage.c mode = sil_ioread8(dev, base + addr_mask); mode 279 drivers/ide/siimage.c mode &= ~(unit ? 0x30 : 0x03); mode 283 drivers/ide/siimage.c mode |= unit ? 0x10 : 0x01; mode 287 drivers/ide/siimage.c sil_iowrite8(dev, mode, base + addr_mask); mode 307 drivers/ide/siimage.c u8 mode = 0, unit = drive->dn & 1; mode 316 drivers/ide/siimage.c mode = sil_ioread8 (dev, base + addr_mask); mode 320 drivers/ide/siimage.c mode &= ~(unit ? 0x30 : 0x03); mode 330 drivers/ide/siimage.c mode |= unit ? 0x30 : 0x03; mode 333 drivers/ide/siimage.c mode |= unit ? 0x20 : 0x02; mode 336 drivers/ide/siimage.c sil_iowrite8 (dev, mode, base + addr_mask); mode 197 drivers/ide/sis5513.c static void sis_ata16_program_timings(ide_drive_t *drive, const u8 mode) mode 210 drivers/ide/sis5513.c if (mode >= XFER_MW_DMA_0) { mode 213 drivers/ide/sis5513.c t1 |= mwdma_timings[mode - XFER_MW_DMA_0]; mode 215 drivers/ide/sis5513.c t1 |= pio_timings[mode - XFER_PIO_0]; mode 220 drivers/ide/sis5513.c static void sis_ata100_program_timings(ide_drive_t *drive, const u8 mode) mode 229 drivers/ide/sis5513.c if (mode >= XFER_MW_DMA_0) { mode 236 drivers/ide/sis5513.c t1 = mwdma_timings[mode - XFER_MW_DMA_0]; mode 238 drivers/ide/sis5513.c t1 = pio_timings[mode - XFER_PIO_0]; mode 243 drivers/ide/sis5513.c static void sis_ata133_program_timings(ide_drive_t *drive, const u8 mode) mode 253 drivers/ide/sis5513.c if (mode >= XFER_MW_DMA_0) { mode 255 drivers/ide/sis5513.c idx = mode - XFER_MW_DMA_0 + 5; mode 257 drivers/ide/sis5513.c idx = mode - XFER_PIO_0; mode 265 drivers/ide/sis5513.c static void sis_program_timings(ide_drive_t *drive, const u8 mode) mode 268 drivers/ide/sis5513.c sis_ata16_program_timings(drive, mode); mode 270 drivers/ide/sis5513.c sis_ata100_program_timings(drive, mode); mode 272 drivers/ide/sis5513.c sis_ata133_program_timings(drive, mode); mode 299 drivers/ide/sis5513.c static void sis_ata133_program_udma_timings(ide_drive_t *drive, const u8 mode) mode 311 drivers/ide/sis5513.c idx = mode - XFER_UDMA_0; mode 318 drivers/ide/sis5513.c static void sis_ata33_program_udma_timings(ide_drive_t *drive, const u8 mode) mode 330 drivers/ide/sis5513.c reg |= cycle_time_value[i][mode - XFER_UDMA_0] << cycle_time_offset[i]; mode 335 drivers/ide/sis5513.c static void sis_program_udma_timings(ide_drive_t *drive, const u8 mode) mode 338 drivers/ide/sis5513.c sis_ata133_program_udma_timings(drive, mode); mode 340 drivers/ide/sis5513.c sis_ata33_program_udma_timings(drive, mode); mode 20 drivers/ide/tc86c001.c u16 mode, scr = inw(scr_port); mode 24 drivers/ide/tc86c001.c case XFER_UDMA_4: mode = 0x00c0; break; mode 25 drivers/ide/tc86c001.c case XFER_UDMA_3: mode = 0x00b0; break; mode 26 drivers/ide/tc86c001.c case XFER_UDMA_2: mode = 0x00a0; break; mode 27 drivers/ide/tc86c001.c case XFER_UDMA_1: mode = 0x0090; break; mode 28 drivers/ide/tc86c001.c case XFER_UDMA_0: mode = 0x0080; break; mode 29 drivers/ide/tc86c001.c case XFER_MW_DMA_2: mode = 0x0070; break; mode 30 drivers/ide/tc86c001.c case XFER_MW_DMA_1: mode = 0x0060; break; mode 31 drivers/ide/tc86c001.c case XFER_MW_DMA_0: mode = 0x0050; break; mode 32 drivers/ide/tc86c001.c case XFER_PIO_4: mode = 0x0400; break; mode 33 drivers/ide/tc86c001.c case XFER_PIO_3: mode = 0x0300; break; mode 34 drivers/ide/tc86c001.c case XFER_PIO_2: mode = 0x0200; break; mode 35 drivers/ide/tc86c001.c case XFER_PIO_1: mode = 0x0100; break; mode 37 drivers/ide/tc86c001.c default: mode = 0x0000; break; mode 41 drivers/ide/tc86c001.c scr |= mode; mode 131 drivers/ide/tx4939ide.c const u8 mode = drive->dma_mode; mode 134 drivers/ide/tx4939ide.c if (mode >= XFER_UDMA_0) mode 135 drivers/ide/tx4939ide.c val = mode - XFER_UDMA_0 + 8; mode 137 drivers/ide/tx4939ide.c val = mode - XFER_MW_DMA_0 + 5; mode 353 drivers/iio/accel/adxl372.c enum adxl372_act_proc_mode mode) mode 360 drivers/iio/accel/adxl372.c ADXL372_MEASURE_LINKLOOP_MODE(mode)); mode 364 drivers/iio/accel/adxl372.c st->act_proc_mode = mode; mode 277 drivers/iio/accel/bma180.c static int bma180_set_pmode(struct bma180_data *data, bool mode) mode 279 drivers/iio/accel/bma180.c u8 reg_val = mode ? data->part_info->lowpower_val : 0; mode 287 drivers/iio/accel/bma180.c data->pmode = mode; mode 550 drivers/iio/accel/bma180.c const struct iio_chan_spec *chan, unsigned int mode) mode 556 drivers/iio/accel/bma180.c ret = bma180_set_pmode(data, mode); mode 251 drivers/iio/accel/bmc150-accel-core.c enum bmc150_power_modes mode, mode 275 drivers/iio/accel/bmc150-accel-core.c lpw_bits = mode << BMC150_ACCEL_PMU_MODE_SHIFT; mode 273 drivers/iio/accel/kxcjk-1013.c enum kxcjk1013_mode mode) mode 283 drivers/iio/accel/kxcjk-1013.c if (mode == STANDBY) mode 299 drivers/iio/accel/kxcjk-1013.c enum kxcjk1013_mode *mode) mode 310 drivers/iio/accel/kxcjk-1013.c *mode = OPERATION; mode 312 drivers/iio/accel/kxcjk-1013.c *mode = STANDBY; mode 22 drivers/iio/accel/kxsd9-spi.c spi->mode = SPI_MODE_0; mode 64 drivers/iio/accel/mma7660.c enum mma7660_mode mode; mode 79 drivers/iio/accel/mma7660.c enum mma7660_mode mode) mode 84 drivers/iio/accel/mma7660.c if (mode == data->mode) mode 93 drivers/iio/accel/mma7660.c if (mode == MMA7660_MODE_ACTIVE) { mode 107 drivers/iio/accel/mma7660.c data->mode = mode; mode 189 drivers/iio/accel/mma7660.c data->mode = MMA7660_MODE_STANDBY; mode 628 drivers/iio/accel/mma8452.c static int mma8452_set_power_mode(struct mma8452_data *data, u8 mode) mode 638 drivers/iio/accel/mma8452.c reg |= mode << MMA8452_CTRL_REG2_MODS_SHIFT; mode 869 drivers/iio/accel/mma9553.c unsigned int mode) mode 872 drivers/iio/accel/mma9553.c u8 gender = !mode; mode 875 drivers/iio/accel/mma9553.c if ((mode != 0) && (mode != 1)) mode 687 drivers/iio/accel/sca3000.c int mode; mode 690 drivers/iio/accel/sca3000.c mode = SCA3000_REG_MODE_MEAS_MODE_NORMAL; mode 693 drivers/iio/accel/sca3000.c mode = SCA3000_REG_MODE_MEAS_MODE_OP_1; mode 696 drivers/iio/accel/sca3000.c mode = SCA3000_REG_MODE_MEAS_MODE_OP_2; mode 704 drivers/iio/accel/sca3000.c st->rx[0] |= (mode & SCA3000_REG_MODE_MODE_MASK); mode 103 drivers/iio/accel/stk8312.c u8 mode; mode 167 drivers/iio/accel/stk8312.c static int stk8312_set_mode(struct stk8312_data *data, u8 mode) mode 172 drivers/iio/accel/stk8312.c if (mode == data->mode) mode 175 drivers/iio/accel/stk8312.c ret = i2c_smbus_write_byte_data(client, STK8312_REG_MODE, mode); mode 181 drivers/iio/accel/stk8312.c data->mode = mode; mode 182 drivers/iio/accel/stk8312.c if (mode & STK8312_MODE_ACTIVE) { mode 194 drivers/iio/accel/stk8312.c u8 mode; mode 197 drivers/iio/accel/stk8312.c mode = data->mode; mode 206 drivers/iio/accel/stk8312.c stk8312_set_mode(data, mode); mode 210 drivers/iio/accel/stk8312.c return stk8312_set_mode(data, mode); mode 243 drivers/iio/accel/stk8312.c u8 mode; mode 249 drivers/iio/accel/stk8312.c mode = data->mode; mode 267 drivers/iio/accel/stk8312.c return stk8312_set_mode(data, mode); mode 271 drivers/iio/accel/stk8312.c stk8312_set_mode(data, mode); mode 280 drivers/iio/accel/stk8312.c u8 mode; mode 288 drivers/iio/accel/stk8312.c mode = data->mode; mode 307 drivers/iio/accel/stk8312.c return stk8312_set_mode(data, mode); mode 311 drivers/iio/accel/stk8312.c stk8312_set_mode(data, mode); mode 343 drivers/iio/accel/stk8312.c ret = stk8312_set_mode(data, data->mode | STK8312_MODE_ACTIVE); mode 351 drivers/iio/accel/stk8312.c data->mode & (~STK8312_MODE_ACTIVE)); mode 357 drivers/iio/accel/stk8312.c data->mode & (~STK8312_MODE_ACTIVE)); mode 483 drivers/iio/accel/stk8312.c return stk8312_set_mode(data, data->mode | STK8312_MODE_ACTIVE); mode 490 drivers/iio/accel/stk8312.c return stk8312_set_mode(data, data->mode & (~STK8312_MODE_ACTIVE)); mode 622 drivers/iio/accel/stk8312.c return stk8312_set_mode(data, data->mode & (~STK8312_MODE_ACTIVE)); mode 631 drivers/iio/accel/stk8312.c return stk8312_set_mode(data, data->mode | STK8312_MODE_ACTIVE); mode 181 drivers/iio/accel/stk8ba50.c static int stk8ba50_set_power(struct stk8ba50_data *data, bool mode) mode 191 drivers/iio/accel/stk8ba50.c if (mode) mode 199 drivers/iio/adc/ad7124.c enum ad_sigma_delta_mode mode) mode 204 drivers/iio/adc/ad7124.c st->adc_control |= AD7124_ADC_CTRL_MODE(mode); mode 35 drivers/iio/adc/ad7266.c enum ad7266_mode mode; mode 107 drivers/iio/adc/ad7266.c switch (st->mode) { mode 169 drivers/iio/adc/ad7266.c if (st->mode == AD7266_MODE_DIFF) mode 179 drivers/iio/adc/ad7266.c st->mode != AD7266_MODE_DIFF) mode 365 drivers/iio/adc/ad7266.c is_differential = st->mode != AD7266_MODE_SINGLE_ENDED; mode 367 drivers/iio/adc/ad7266.c (st->mode == AD7266_MODE_DIFF); mode 417 drivers/iio/adc/ad7266.c st->mode = pdata->mode; mode 434 drivers/iio/adc/ad7266.c st->mode = AD7266_MODE_DIFF; mode 33 drivers/iio/adc/ad7606_spi.c #define AD7616_RANGE_CH_MODE(ch, mode) ((mode) << ((((ch) & 0b11)) * 2)) mode 43 drivers/iio/adc/ad7606_spi.c #define AD7606_RANGE_CH_MODE(ch, mode) \ mode 44 drivers/iio/adc/ad7606_spi.c ((GENMASK(3, 0) & mode) << (4 * ((ch) & 0x1))) mode 179 drivers/iio/adc/ad7606_spi.c unsigned int ch_addr, mode, ch_index; mode 199 drivers/iio/adc/ad7606_spi.c mode = AD7616_RANGE_CH_MODE(ch_index, ((val + 1) & 0b11)); mode 201 drivers/iio/adc/ad7606_spi.c mode); mode 202 drivers/iio/adc/ad7768-1.c enum ad7768_conv_mode mode) mode 211 drivers/iio/adc/ad7768-1.c regval |= AD7768_CONV_MODE(mode); mode 273 drivers/iio/adc/ad7768-1.c unsigned int mode; mode 277 drivers/iio/adc/ad7768-1.c mode = AD7768_DIG_FIL_FIL(dec_rate); mode 279 drivers/iio/adc/ad7768-1.c mode = AD7768_DIG_FIL_DEC_RATE(dec_rate); mode 281 drivers/iio/adc/ad7768-1.c ret = ad7768_spi_reg_write(st, AD7768_REG_DIGITAL_FILTER, mode); mode 85 drivers/iio/adc/ad7780.c enum ad_sigma_delta_mode mode) mode 90 drivers/iio/adc/ad7780.c switch (mode) { mode 148 drivers/iio/adc/ad7791.c uint8_t mode; mode 179 drivers/iio/adc/ad7791.c enum ad_sigma_delta_mode mode) mode 183 drivers/iio/adc/ad7791.c switch (mode) { mode 185 drivers/iio/adc/ad7791.c mode = AD7791_MODE_CONTINUOUS; mode 188 drivers/iio/adc/ad7791.c mode = AD7791_MODE_SINGLE; mode 192 drivers/iio/adc/ad7791.c mode = AD7791_MODE_POWERDOWN; mode 196 drivers/iio/adc/ad7791.c st->mode &= ~AD7791_MODE_SEL_MASK; mode 197 drivers/iio/adc/ad7791.c st->mode |= AD7791_MODE_SEL(mode); mode 199 drivers/iio/adc/ad7791.c return ad_sd_write_reg(sd, AD7791_REG_MODE, sizeof(st->mode), st->mode); mode 214 drivers/iio/adc/ad7791.c bool unipolar = !!(st->mode & AD7791_MODE_UNIPOLAR); mode 328 drivers/iio/adc/ad7791.c st->mode = AD7791_MODE_BUFFER; mode 335 drivers/iio/adc/ad7791.c st->mode &= ~AD7791_MODE_BUFFER; mode 339 drivers/iio/adc/ad7791.c st->mode |= AD7791_MODE_BURNOUT; mode 342 drivers/iio/adc/ad7791.c st->mode |= AD7791_MODE_UNIPOLAR; mode 344 drivers/iio/adc/ad7791.c return ad_sd_write_reg(&st->sd, AD7791_REG_MODE, sizeof(st->mode), mode 345 drivers/iio/adc/ad7791.c st->mode); mode 157 drivers/iio/adc/ad7793.c u16 mode; mode 193 drivers/iio/adc/ad7793.c enum ad_sigma_delta_mode mode) mode 197 drivers/iio/adc/ad7793.c st->mode &= ~AD7793_MODE_SEL_MASK; mode 198 drivers/iio/adc/ad7793.c st->mode |= AD7793_MODE_SEL(mode); mode 200 drivers/iio/adc/ad7793.c return ad_sd_write_reg(&st->sd, AD7793_REG_MODE, 2, st->mode); mode 285 drivers/iio/adc/ad7793.c st->mode = AD7793_MODE_RATE(1); mode 289 drivers/iio/adc/ad7793.c st->mode |= AD7793_MODE_CLKSRC(pdata->clock_src); mode 458 drivers/iio/adc/ad7793.c ->sample_freq_avail[AD7793_MODE_RATE(st->mode)]; mode 512 drivers/iio/adc/ad7793.c st->mode &= ~AD7793_MODE_RATE(-1); mode 513 drivers/iio/adc/ad7793.c st->mode |= AD7793_MODE_RATE(i); mode 514 drivers/iio/adc/ad7793.c ad_sd_write_reg(&st->sd, AD7793_REG_MODE, sizeof(st->mode), mode 515 drivers/iio/adc/ad7793.c st->mode); mode 238 drivers/iio/adc/ad7887.c uint8_t mode; mode 272 drivers/iio/adc/ad7887.c mode = AD7887_PM_MODE4; mode 274 drivers/iio/adc/ad7887.c mode |= AD7887_REF_DIS; mode 276 drivers/iio/adc/ad7887.c mode |= AD7887_DUAL; mode 278 drivers/iio/adc/ad7887.c st->tx_cmd_buf[0] = AD7887_CH_AIN0 | mode; mode 288 drivers/iio/adc/ad7887.c st->tx_cmd_buf[2] = AD7887_CH_AIN1 | mode; mode 42 drivers/iio/adc/ad7923.c #define AD7923_PM_MODE_WRITE(mode) ((mode) << 4) /* write mode */ mode 209 drivers/iio/adc/ad_sigma_delta.c unsigned int mode, unsigned int channel) mode 223 drivers/iio/adc/ad_sigma_delta.c ret = ad_sigma_delta_set_mode(sigma_delta, mode); mode 261 drivers/iio/adc/ad_sigma_delta.c ret = ad_sd_calibrate(sigma_delta, cb[i].mode, cb[i].channel); mode 133 drivers/iio/adc/axp288_adc.c unsigned int mode, unsigned long address) mode 146 drivers/iio/adc/axp288_adc.c AXP288_ADC_TS_CURRENT_ON_OFF_MASK, mode); mode 151 drivers/iio/adc/axp288_adc.c if (mode == AXP288_ADC_TS_CURRENT_ON_ONDEMAND) mode 168 drivers/iio/adc/hi8435.c u8 mode, psen; mode 176 drivers/iio/adc/hi8435.c mode = !!(psen & BIT(chan->channel / 8)); mode 178 drivers/iio/adc/hi8435.c ret = hi8435_readw(priv, mode ? HI8435_SOCENHYS_REG : mode 200 drivers/iio/adc/hi8435.c u8 mode, psen; mode 208 drivers/iio/adc/hi8435.c mode = !!(psen & BIT(chan->channel / 8)); mode 210 drivers/iio/adc/hi8435.c ret = hi8435_readw(priv, mode ? HI8435_SOCENHYS_REG : mode 217 drivers/iio/adc/hi8435.c if (val < 2 || val > 21 || (val + 2) > priv->threshold_hi[mode]) mode 220 drivers/iio/adc/hi8435.c if (val == priv->threshold_lo[mode]) mode 223 drivers/iio/adc/hi8435.c priv->threshold_lo[mode] = val; mode 226 drivers/iio/adc/hi8435.c if ((priv->threshold_hi[mode] - priv->threshold_lo[mode]) % 2) mode 227 drivers/iio/adc/hi8435.c priv->threshold_hi[mode]--; mode 230 drivers/iio/adc/hi8435.c if (val < 3 || val > 22 || val < (priv->threshold_lo[mode] + 2)) mode 233 drivers/iio/adc/hi8435.c if (val == priv->threshold_hi[mode]) mode 236 drivers/iio/adc/hi8435.c priv->threshold_hi[mode] = val; mode 239 drivers/iio/adc/hi8435.c if ((priv->threshold_hi[mode] - priv->threshold_lo[mode]) % 2) mode 240 drivers/iio/adc/hi8435.c priv->threshold_lo[mode]++; mode 246 drivers/iio/adc/hi8435.c ret = hi8435_readw(priv, mode ? HI8435_SOCENHYS_REG : mode 254 drivers/iio/adc/hi8435.c reg = priv->threshold_hi[mode] - priv->threshold_lo[mode]; mode 257 drivers/iio/adc/hi8435.c reg |= (priv->threshold_hi[mode] + priv->threshold_lo[mode]); mode 259 drivers/iio/adc/hi8435.c ret = hi8435_writew(priv, mode ? HI8435_SOCENHYS_REG : mode 318 drivers/iio/adc/hi8435.c unsigned int mode) mode 333 drivers/iio/adc/hi8435.c if (mode) mode 169 drivers/iio/adc/mcp320x.c if (!(adc->spi->mode & SPI_CPOL)) mode 420 drivers/iio/adc/mcp320x.c if (!(spi->mode & SPI_CPOL)) mode 379 drivers/iio/adc/meson_saradc.c enum meson_sar_adc_avg_mode mode, mode 390 drivers/iio/adc/meson_saradc.c val = mode << MESON_SAR_ADC_AVG_CNTL_AVG_MODE_SHIFT(address); mode 165 drivers/iio/adc/qcom-spmi-iadc.c u8 mode, sta1, chan, dig, en, req; mode 168 drivers/iio/adc/qcom-spmi-iadc.c ret = iadc_read(iadc, IADC_MODE_CTL, &mode); mode 194 drivers/iio/adc/qcom-spmi-iadc.c mode, en, chan, dig, req, sta1); mode 199 drivers/iio/adc/qcom-spmi-iadc.c u8 decim, mode; mode 203 drivers/iio/adc/qcom-spmi-iadc.c mode = (IADC_OP_MODE_NORMAL << IADC_OP_MODE_SHIFT) | IADC_TRIM_EN; mode 204 drivers/iio/adc/qcom-spmi-iadc.c ret = iadc_write(iadc, IADC_MODE_CTL, mode); mode 176 drivers/iio/adc/qcom-spmi-vadc.c u8 mode, sta1, chan, dig, en, req; mode 179 drivers/iio/adc/qcom-spmi-vadc.c ret = vadc_read(vadc, VADC_MODE_CTL, &mode); mode 205 drivers/iio/adc/qcom-spmi-vadc.c mode, en, chan, dig, req, sta1); mode 71 drivers/iio/adc/rcar-gyroadc.c unsigned int mode; mode 79 drivers/iio/adc/rcar-gyroadc.c (priv->mode == RCAR_GYROADC_MODE_SELECT_1_MB88101A) ? 10 : 5; mode 98 drivers/iio/adc/rcar-gyroadc.c writel(priv->mode, priv->regs + RCAR_GYROADC_MODE_SELECT); mode 193 drivers/iio/adc/rcar-gyroadc.c if (priv->mode == RCAR_GYROADC_MODE_SELECT_1_MB88101A) mode 417 drivers/iio/adc/rcar-gyroadc.c priv->mode = childmode; mode 121 drivers/iio/adc/ti-adc12138.c static int adc12138_mode_programming(struct adc12138 *adc, u8 mode, mode 133 drivers/iio/adc/ti-adc12138.c mode = (mode & 0xc0) | ((mode & 0x0f) << 2); mode 135 drivers/iio/adc/ti-adc12138.c adc->tx_buf[0] = mode; mode 165 drivers/iio/adc/ti-adc12138.c u8 mode = (ch_to_mux[channel->channel] << 4) | mode 168 drivers/iio/adc/ti-adc12138.c return adc12138_mode_programming(adc, mode, data, len); mode 283 drivers/iio/adc/ti-adc12138.c u8 mode; mode 309 drivers/iio/adc/ti-adc12138.c mode = ADC12138_MODE_ACQUISITION_TIME_6; mode 312 drivers/iio/adc/ti-adc12138.c mode = ADC12138_MODE_ACQUISITION_TIME_10; mode 315 drivers/iio/adc/ti-adc12138.c mode = ADC12138_MODE_ACQUISITION_TIME_18; mode 318 drivers/iio/adc/ti-adc12138.c mode = ADC12138_MODE_ACQUISITION_TIME_34; mode 324 drivers/iio/adc/ti-adc12138.c return adc12138_mode_programming(adc, mode, &trash, 1); mode 926 drivers/iio/adc/ti-ads1015.c static int ads1015_set_conv_mode(struct ads1015_data *data, int mode) mode 930 drivers/iio/adc/ti-ads1015.c mode << ADS1015_CFG_MOD_SHIFT); mode 540 drivers/iio/adc/ti-ads7950.c spi->mode |= SPI_CS_WORD; mode 445 drivers/iio/adc/ti-ads8688.c spi->mode = SPI_MODE_1; mode 463 drivers/iio/adc/vf610_adc.c unsigned int mode) mode 468 drivers/iio/adc/vf610_adc.c info->adc_feature.conv_mode = mode; mode 500 drivers/iio/chemical/bme680_core.c static int bme680_set_mode(struct bme680_data *data, bool mode) mode 505 drivers/iio/chemical/bme680_core.c if (mode) { mode 524 drivers/iio/common/ssp_sensors/ssp_dev.c spi->mode = SPI_MODE_1; mode 247 drivers/iio/dac/ad5064.c const struct iio_chan_spec *chan, unsigned int mode) mode 253 drivers/iio/dac/ad5064.c st->pwr_down_mode[chan->channel] = mode + 1; mode 124 drivers/iio/dac/ad5380.c unsigned int mode; mode 127 drivers/iio/dac/ad5380.c ret = regmap_read(st->regmap, AD5380_REG_SF_CTRL, &mode); mode 131 drivers/iio/dac/ad5380.c mode = (mode >> AD5380_CTRL_PWR_DOWN_MODE_OFFSET) & 1; mode 133 drivers/iio/dac/ad5380.c return mode; mode 137 drivers/iio/dac/ad5380.c const struct iio_chan_spec *chan, unsigned int mode) mode 144 drivers/iio/dac/ad5380.c mode << AD5380_CTRL_PWR_DOWN_MODE_OFFSET); mode 64 drivers/iio/dac/ad5446.c const struct iio_chan_spec *chan, unsigned int mode) mode 68 drivers/iio/dac/ad5446.c st->pwr_down_mode = mode + 1; mode 37 drivers/iio/dac/ad5504.c #define AD5504_DAC_PWRDWN_MODE(mode) ((mode) << 6) mode 153 drivers/iio/dac/ad5504.c const struct iio_chan_spec *chan, unsigned int mode) mode 157 drivers/iio/dac/ad5504.c st->pwr_down_mode = mode; mode 99 drivers/iio/dac/ad5624r_spi.c const struct iio_chan_spec *chan, unsigned int mode) mode 103 drivers/iio/dac/ad5624r_spi.c st->pwr_down_mode = mode; mode 38 drivers/iio/dac/ad5686.c unsigned int mode) mode 43 drivers/iio/dac/ad5686.c st->pwr_down_mode |= ((mode + 1) << (chan->channel * 2)); mode 287 drivers/iio/dac/ad5755.c enum ad5755_mode mode = st->ctrl[chan->channel] & 7; mode 288 drivers/iio/dac/ad5755.c *min = ad5755_min_max_table[mode][0]; mode 289 drivers/iio/dac/ad5755.c *max = ad5755_min_max_table[mode][1]; mode 471 drivers/iio/dac/ad5755.c static bool ad5755_is_valid_mode(struct ad5755_state *st, enum ad5755_mode mode) mode 473 drivers/iio/dac/ad5755.c switch (mode) { mode 526 drivers/iio/dac/ad5755.c if (!ad5755_is_valid_mode(st, pdata->dac[i].mode)) mode 534 drivers/iio/dac/ad5755.c val |= pdata->dac[i].mode; mode 544 drivers/iio/dac/ad5755.c static bool ad5755_is_voltage_mode(enum ad5755_mode mode) mode 546 drivers/iio/dac/ad5755.c switch (mode) { mode 568 drivers/iio/dac/ad5755.c if (pdata && ad5755_is_voltage_mode(pdata->dac[i].mode)) mode 580 drivers/iio/dac/ad5755.c .mode = AD5755_MODE_CURRENT_4mA_20mA, \ mode 663 drivers/iio/dac/ad5755.c pdata->dac[devnr].mode = tmp; mode 665 drivers/iio/dac/ad5755.c pdata->dac[devnr].mode = AD5755_MODE_CURRENT_4mA_20mA; mode 318 drivers/iio/dac/ad5758.c enum ad5758_dc_dc_mode mode) mode 326 drivers/iio/dac/ad5758.c if (mode == AD5758_DCDC_MODE_PPC_CURRENT) { mode 336 drivers/iio/dac/ad5758.c AD5758_DCDC_CONFIG1_DCDC_MODE_MODE(mode)); mode 349 drivers/iio/dac/ad5758.c st->dc_dc_mode = mode; mode 375 drivers/iio/dac/ad5758.c unsigned int mode; mode 382 drivers/iio/dac/ad5758.c mode = AD5758_DAC_CONFIG_SR_EN_MODE(1) | mode 386 drivers/iio/dac/ad5758.c ret = ad5758_spi_write_mask(st, AD5758_DAC_CONFIG, mask, mode); mode 654 drivers/iio/dac/ad5758.c static bool ad5758_is_valid_mode(enum ad5758_dc_dc_mode mode) mode 656 drivers/iio/dac/ad5758.c switch (mode) { mode 161 drivers/iio/dac/ad5791.c const struct iio_chan_spec *chan, unsigned int mode) mode 165 drivers/iio/dac/ad5791.c st->pwr_down_mode = mode; mode 64 drivers/iio/dac/max5821.c unsigned int mode) mode 68 drivers/iio/dac/max5821.c st->powerdown_mode[chan->channel] = mode; mode 156 drivers/iio/dac/mcp4725.c const struct iio_chan_spec *chan, unsigned mode) mode 160 drivers/iio/dac/mcp4725.c data->powerdown_mode = mode; mode 63 drivers/iio/dac/ti-dac082s085.c #define POWERDOWN(mode) (0x30 | ((mode) + 1) << 6) mode 88 drivers/iio/dac/ti-dac082s085.c unsigned int mode) mode 93 drivers/iio/dac/ti-dac082s085.c if (ti_dac->powerdown_mode == mode) mode 98 drivers/iio/dac/ti-dac082s085.c ret = ti_dac_cmd(ti_dac, POWERDOWN(mode), 0); mode 102 drivers/iio/dac/ti-dac082s085.c ti_dac->powerdown_mode = mode; mode 58 drivers/iio/dac/ti-dac5571.c #define DAC5571_POWERDOWN(mode) ((mode) + 1) mode 133 drivers/iio/dac/ti-dac5571.c unsigned int mode) mode 138 drivers/iio/dac/ti-dac5571.c if (data->powerdown_mode == mode) mode 144 drivers/iio/dac/ti-dac5571.c DAC5571_POWERDOWN(mode)); mode 148 drivers/iio/dac/ti-dac5571.c data->powerdown_mode = mode; mode 91 drivers/iio/dac/ti-dac7311.c unsigned int mode) mode 95 drivers/iio/dac/ti-dac7311.c ti_dac->powerdown_mode = mode; mode 250 drivers/iio/dac/ti-dac7311.c spi->mode = SPI_MODE_1; mode 62 drivers/iio/dac/vf610_dac.c unsigned int mode) mode 68 drivers/iio/dac/vf610_dac.c info->conv_mode = mode; mode 70 drivers/iio/dac/vf610_dac.c if (mode) mode 768 drivers/iio/frequency/ad9523.c (st->spi->mode & SPI_3WIRE ? 0 : mode 136 drivers/iio/gyro/bmg160_core.c static int bmg160_set_mode(struct bmg160_data *data, u8 mode) mode 141 drivers/iio/gyro/bmg160_core.c ret = regmap_write(data->regmap, BMG160_REG_PMU_LPW, mode); mode 73 drivers/iio/gyro/fxas21002c_core.c enum fxas21002c_mode_state mode; mode 236 drivers/iio/gyro/fxas21002c_core.c enum fxas21002c_mode_state mode) mode 240 drivers/iio/gyro/fxas21002c_core.c if (mode == data->mode) mode 243 drivers/iio/gyro/fxas21002c_core.c if (mode == FXAS21002C_MODE_READY) mode 250 drivers/iio/gyro/fxas21002c_core.c if (mode == FXAS21002C_MODE_ACTIVE) mode 258 drivers/iio/gyro/fxas21002c_core.c if (mode == FXAS21002C_MODE_ACTIVE && mode 259 drivers/iio/gyro/fxas21002c_core.c data->mode == FXAS21002C_MODE_STANDBY) mode 262 drivers/iio/gyro/fxas21002c_core.c if (data->mode == FXAS21002C_MODE_READY) mode 265 drivers/iio/gyro/fxas21002c_core.c data->prev_mode = data->mode; mode 266 drivers/iio/gyro/fxas21002c_core.c data->mode = mode; mode 177 drivers/iio/health/max30102.c static int max30102_set_powermode(struct max30102_data *data, u8 mode, bool en) mode 179 drivers/iio/health/max30102.c u8 reg = mode; mode 454 drivers/iio/imu/adis16400.c st->adis.spi->mode = SPI_MODE_3; mode 1123 drivers/iio/imu/adis16480.c unsigned int mode, mask; mode 1143 drivers/iio/imu/adis16480.c mode = ADIS16480_SYNC_EN(enable) | ADIS16480_SYNC_SEL(pin); mode 1147 drivers/iio/imu/adis16480.c mode |= ADIS16480_SYNC_MODE(st->clk_mode); mode 1152 drivers/iio/imu/adis16480.c val |= mode; mode 291 drivers/iio/imu/bmi160/bmi160_core.c bool mode) mode 296 drivers/iio/imu/bmi160/bmi160_core.c if (mode) mode 325 drivers/iio/imu/kmx61.c static int kmx61_set_mode(struct kmx61_data *data, u8 mode, u8 device, mode 337 drivers/iio/imu/kmx61.c if (mode & KMX61_ACC_STBY_BIT) { mode 347 drivers/iio/imu/kmx61.c if (mode & KMX61_MAG_STBY_BIT) { mode 356 drivers/iio/imu/kmx61.c if (mode & KMX61_ACT_STBY_BIT) mode 373 drivers/iio/imu/kmx61.c static int kmx61_get_mode(struct kmx61_data *data, u8 *mode, u8 device) mode 382 drivers/iio/imu/kmx61.c *mode = 0; mode 386 drivers/iio/imu/kmx61.c *mode |= KMX61_ACC_STBY_BIT; mode 388 drivers/iio/imu/kmx61.c *mode &= ~KMX61_ACC_STBY_BIT; mode 393 drivers/iio/imu/kmx61.c *mode |= KMX61_MAG_STBY_BIT; mode 395 drivers/iio/imu/kmx61.c *mode &= ~KMX61_MAG_STBY_BIT; mode 419 drivers/iio/imu/kmx61.c u8 mode; mode 422 drivers/iio/imu/kmx61.c ret = kmx61_get_mode(data, &mode, KMX61_ACC | KMX61_MAG); mode 455 drivers/iio/imu/kmx61.c return kmx61_set_mode(data, mode, KMX61_ACC | KMX61_MAG, true); mode 508 drivers/iio/imu/kmx61.c u8 mode; mode 512 drivers/iio/imu/kmx61.c ret = kmx61_get_mode(data, &mode, mode 526 drivers/iio/imu/kmx61.c return kmx61_set_mode(data, mode, mode 588 drivers/iio/imu/kmx61.c u8 mode; mode 591 drivers/iio/imu/kmx61.c ret = kmx61_get_mode(data, &mode, KMX61_ACC | KMX61_MAG); mode 641 drivers/iio/imu/kmx61.c return kmx61_set_mode(data, mode, KMX61_ACC | KMX61_MAG, true); mode 668 drivers/iio/imu/kmx61.c u8 mode; mode 671 drivers/iio/imu/kmx61.c ret = kmx61_get_mode(data, &mode, KMX61_ACC | KMX61_MAG); mode 715 drivers/iio/imu/kmx61.c mode |= KMX61_ACT_STBY_BIT; mode 716 drivers/iio/imu/kmx61.c return kmx61_set_mode(data, mode, KMX61_ACC | KMX61_MAG, true); mode 672 drivers/iio/industrialio-buffer.c unsigned int mode; mode 718 drivers/iio/industrialio-buffer.c config->mode = INDIO_BUFFER_TRIGGERED; mode 726 drivers/iio/industrialio-buffer.c config->mode = INDIO_BUFFER_HARDWARE; mode 729 drivers/iio/industrialio-buffer.c config->mode = INDIO_BUFFER_SOFTWARE; mode 951 drivers/iio/industrialio-buffer.c indio_dev->currentmode = config->mode; mode 989 drivers/iio/industrialio-core.c dev_attr->attr.mode |= S_IRUGO; mode 994 drivers/iio/industrialio-core.c dev_attr->attr.mode |= S_IWUSR; mode 158 drivers/iio/light/isl29018.c static int isl29018_read_sensor_input(struct isl29018_chip *chip, int mode) mode 167 drivers/iio/light/isl29018.c mode << ISL29018_CMD1_OPMODE_SHIFT); mode 183 drivers/iio/light/isl29028.c enum isl29028_als_ir_mode mode) mode 187 drivers/iio/light/isl29028.c if (chip->als_ir_mode == mode) mode 194 drivers/iio/light/isl29028.c switch (mode) { mode 230 drivers/iio/light/isl29028.c chip->als_ir_mode = mode; mode 80 drivers/iio/light/isl29125.c u8 mode, data; mode 93 drivers/iio/light/isl29125.c data->conf1 | isl29125_regs[si].mode); mode 83 drivers/iio/light/opt3001.c u32 mode; mode 179 drivers/iio/light/opt3001.c static void opt3001_set_mode(struct opt3001 *opt, u16 *reg, u16 mode) mode 182 drivers/iio/light/opt3001.c *reg |= mode; mode 183 drivers/iio/light/opt3001.c opt->mode = mode; mode 392 drivers/iio/light/opt3001.c if (opt->mode == OPT3001_CONFIGURATION_M_CONTINUOUS) mode 423 drivers/iio/light/opt3001.c if (opt->mode == OPT3001_CONFIGURATION_M_CONTINUOUS) mode 532 drivers/iio/light/opt3001.c return opt->mode == OPT3001_CONFIGURATION_M_CONTINUOUS; mode 541 drivers/iio/light/opt3001.c u16 mode; mode 544 drivers/iio/light/opt3001.c if (state && opt->mode == OPT3001_CONFIGURATION_M_CONTINUOUS) mode 547 drivers/iio/light/opt3001.c if (!state && opt->mode == OPT3001_CONFIGURATION_M_SHUTDOWN) mode 552 drivers/iio/light/opt3001.c mode = state ? OPT3001_CONFIGURATION_M_CONTINUOUS mode 563 drivers/iio/light/opt3001.c opt3001_set_mode(opt, ®, mode); mode 215 drivers/iio/light/us5182d.c static int us5182d_set_opmode(struct us5182d_data *data, u8 mode) mode 219 drivers/iio/light/us5182d.c if (mode == data->opmode) mode 228 drivers/iio/light/us5182d.c ret = ret | (mode << US5182D_OPMODE_SHIFT); mode 244 drivers/iio/light/us5182d.c data->opmode = mode; mode 253 drivers/iio/light/us5182d.c u8 mode; mode 265 drivers/iio/light/us5182d.c mode = data->px_enabled ? US5182D_ALS_PX : US5182D_ALS_ONLY; mode 267 drivers/iio/light/us5182d.c ret = us5182d_set_opmode(data, mode); mode 279 drivers/iio/light/us5182d.c u8 mode; mode 291 drivers/iio/light/us5182d.c mode = data->als_enabled ? US5182D_ALS_PX : US5182D_PX_ONLY; mode 293 drivers/iio/light/us5182d.c ret = us5182d_set_opmode(data, mode); mode 213 drivers/iio/magnetometer/ak8974.c static int ak8974_set_power(struct ak8974 *ak8974, bool mode) mode 218 drivers/iio/magnetometer/ak8974.c val = mode ? AK8974_CTRL1_POWER : 0; mode 224 drivers/iio/magnetometer/ak8974.c if (mode) mode 455 drivers/iio/magnetometer/ak8975.c static int ak8975_set_mode(struct ak8975_data *data, enum ak_ctrl_mode mode) mode 461 drivers/iio/magnetometer/ak8975.c data->def->ctrl_modes[mode]; mode 227 drivers/iio/magnetometer/bmc150_magn.c enum bmc150_magn_power_modes mode, mode 232 drivers/iio/magnetometer/bmc150_magn.c switch (mode) { mode 61 drivers/iio/magnetometer/hmc5843_spi.c spi->mode = SPI_MODE_3; mode 32 drivers/iio/magnetometer/rm3100-spi.c spi->mode = SPI_MODE_0; mode 94 drivers/iio/pressure/ms5611_spi.c spi->mode = SPI_MODE_0; mode 41 drivers/iio/pressure/t5403.c int mode; mode 53 drivers/iio/pressure/t5403.c (pressure ? (data->mode << T5403_MODE_SHIFT) : T5403_PT) | mode 58 drivers/iio/pressure/t5403.c wait_time += pressure ? t5403_pressure_conv_ms[data->mode] : 2; mode 151 drivers/iio/pressure/t5403.c *val2 = t5403_pressure_conv_ms[data->mode] * 1000; mode 172 drivers/iio/pressure/t5403.c data->mode = i; mode 244 drivers/iio/pressure/t5403.c data->mode = T5403_MODE_STANDARD; mode 49 drivers/iio/pressure/zpa2326_spi.c spi->mode = SPI_MODE_3; mode 169 drivers/iio/resolver/ad2s1200.c spi->mode = SPI_MODE_3; mode 513 drivers/iio/trigger/stm32-timer-trigger.c unsigned int mode) mode 546 drivers/iio/trigger/stm32-timer-trigger.c static int stm32_enable_mode2sms(int mode) mode 548 drivers/iio/trigger/stm32-timer-trigger.c switch (mode) { mode 562 drivers/iio/trigger/stm32-timer-trigger.c unsigned int mode) mode 565 drivers/iio/trigger/stm32-timer-trigger.c int sms = stm32_enable_mode2sms(mode); mode 585 drivers/iio/trigger/stm32-timer-trigger.c static int stm32_sms2enable_mode(int mode) mode 587 drivers/iio/trigger/stm32-timer-trigger.c switch (mode) { mode 842 drivers/infiniband/core/cache.c enum ib_cache_gid_default_mode mode) mode 861 drivers/infiniband/core/cache.c if (mode == IB_CACHE_GID_DEFAULT_MODE_SET) { mode 865 drivers/infiniband/core/cache.c } else if (mode == IB_CACHE_GID_DEFAULT_MODE_DELETE) { mode 180 drivers/infiniband/core/cm.c .attr = { .name = __stringify(_name), .mode = 0444 }, \ mode 4272 drivers/infiniband/core/cm.c static char *cm_devnode(struct device *dev, umode_t *mode) mode 4274 drivers/infiniband/core/cm.c if (mode) mode 4275 drivers/infiniband/core/cm.c *mode = 0666; mode 133 drivers/infiniband/core/core_priv.h enum ib_cache_gid_default_mode mode); mode 19 drivers/infiniband/core/counters.c (curr->mode != RDMA_COUNTER_MODE_NONE))) mode 22 drivers/infiniband/core/counters.c curr->mode = new_mode; mode 46 drivers/infiniband/core/counters.c ret = __counter_set_mode(&port_counter->mode, mode 49 drivers/infiniband/core/counters.c if (port_counter->mode.mode != RDMA_COUNTER_MODE_AUTO) { mode 55 drivers/infiniband/core/counters.c ret = __counter_set_mode(&port_counter->mode, mode 58 drivers/infiniband/core/counters.c ret = __counter_set_mode(&port_counter->mode, mode 68 drivers/infiniband/core/counters.c enum rdma_nl_counter_mode mode) mode 90 drivers/infiniband/core/counters.c if (mode == RDMA_COUNTER_MODE_MANUAL) { mode 91 drivers/infiniband/core/counters.c ret = __counter_set_mode(&port_counter->mode, mode 100 drivers/infiniband/core/counters.c counter->mode.mode = mode; mode 122 drivers/infiniband/core/counters.c (port_counter->mode.mode == RDMA_COUNTER_MODE_MANUAL)) mode 123 drivers/infiniband/core/counters.c __counter_set_mode(&port_counter->mode, RDMA_COUNTER_MODE_NONE, mode 137 drivers/infiniband/core/counters.c struct auto_mode_param *param = &counter->mode.param; mode 139 drivers/infiniband/core/counters.c counter->mode.mode = RDMA_COUNTER_MODE_AUTO; mode 140 drivers/infiniband/core/counters.c counter->mode.mask = new_mask; mode 149 drivers/infiniband/core/counters.c struct auto_mode_param *param = &counter->mode.param; mode 239 drivers/infiniband/core/counters.c if (auto_mode_match(qp, counter, port_counter->mode.mask)) mode 292 drivers/infiniband/core/counters.c if (port_counter->mode.mode != RDMA_COUNTER_MODE_AUTO) mode 307 drivers/infiniband/core/counters.c auto_mode_init_counter(counter, qp, port_counter->mode.mask); mode 475 drivers/infiniband/core/counters.c if (port_counter->mode.mode == RDMA_COUNTER_MODE_AUTO) mode 526 drivers/infiniband/core/counters.c if (port_counter->mode.mode == RDMA_COUNTER_MODE_AUTO) mode 587 drivers/infiniband/core/counters.c port_counter->mode.mode != RDMA_COUNTER_MODE_MANUAL) { mode 600 drivers/infiniband/core/counters.c enum rdma_nl_counter_mode *mode, mode 606 drivers/infiniband/core/counters.c *mode = port_counter->mode.mode; mode 607 drivers/infiniband/core/counters.c *mask = port_counter->mode.mask; mode 622 drivers/infiniband/core/counters.c port_counter->mode.mode = RDMA_COUNTER_MODE_NONE; mode 111 drivers/infiniband/core/iwcm.c .mode = 0644, mode 654 drivers/infiniband/core/nldev.c struct rdma_counter_mode *m = &counter->mode; mode 656 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_STAT_MODE, m->mode)) mode 659 drivers/infiniband/core/nldev.c if (m->mode == RDMA_COUNTER_MODE_AUTO) mode 1669 drivers/infiniband/core/nldev.c u32 index, port, mode, mask = 0, qpn, cntn = 0; mode 1707 drivers/infiniband/core/nldev.c mode = nla_get_u32(tb[RDMA_NLDEV_ATTR_STAT_MODE]); mode 1708 drivers/infiniband/core/nldev.c if (mode == RDMA_COUNTER_MODE_AUTO) { mode 1916 drivers/infiniband/core/nldev.c static enum rdma_nl_counter_mode mode; mode 1952 drivers/infiniband/core/nldev.c ret = rdma_counter_get_mode(device, port, &mode, &mask); mode 1958 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_STAT_MODE, mode)) { mode 1963 drivers/infiniband/core/nldev.c if ((mode == RDMA_COUNTER_MODE_AUTO) && mode 67 drivers/infiniband/core/rdma_core.c enum rdma_lookup_mode mode) mode 80 drivers/infiniband/core/rdma_core.c switch (mode) { mode 94 drivers/infiniband/core/rdma_core.c enum rdma_lookup_mode mode) mode 97 drivers/infiniband/core/rdma_core.c switch (mode) { mode 319 drivers/infiniband/core/rdma_core.c enum rdma_lookup_mode mode) mode 343 drivers/infiniband/core/rdma_core.c enum rdma_lookup_mode mode) mode 353 drivers/infiniband/core/rdma_core.c if (mode != UVERBS_LOOKUP_READ) mode 382 drivers/infiniband/core/rdma_core.c enum rdma_lookup_mode mode, mode 390 drivers/infiniband/core/rdma_core.c uobj = lookup_get_idr_uobject(NULL, ufile, id, mode); mode 397 drivers/infiniband/core/rdma_core.c uobj = obj->type_class->lookup_get(obj, ufile, id, mode); mode 411 drivers/infiniband/core/rdma_core.c if (mode != UVERBS_LOOKUP_DESTROY && mode 418 drivers/infiniband/core/rdma_core.c ret = uverbs_try_lock_object(uobj, mode); mode 426 drivers/infiniband/core/rdma_core.c uobj->uapi_object->type_class->lookup_put(uobj, mode); mode 680 drivers/infiniband/core/rdma_core.c enum rdma_lookup_mode mode) mode 685 drivers/infiniband/core/rdma_core.c enum rdma_lookup_mode mode) mode 689 drivers/infiniband/core/rdma_core.c WARN_ON(mode != UVERBS_LOOKUP_READ); mode 695 drivers/infiniband/core/rdma_core.c enum rdma_lookup_mode mode) mode 697 drivers/infiniband/core/rdma_core.c assert_uverbs_usecnt(uobj, mode); mode 703 drivers/infiniband/core/rdma_core.c switch (mode) { mode 714 drivers/infiniband/core/rdma_core.c uobj->uapi_object->type_class->lookup_put(uobj, mode); mode 757 drivers/infiniband/core/sysfs.c element->attr.attr.mode = S_IRUGO; mode 934 drivers/infiniband/core/sysfs.c hsa->attr.mode = S_IRUGO; mode 952 drivers/infiniband/core/sysfs.c hsa->attr.mode = S_IWUSR | S_IRUGO; mode 70 drivers/infiniband/core/ucma.c .mode = 0644, mode 1834 drivers/infiniband/core/ucma.c .mode = 0666, mode 1217 drivers/infiniband/core/user_mad.c static char *umad_devnode(struct device *dev, umode_t *mode) mode 1419 drivers/infiniband/core/uverbs_main.c static char *uverbs_devnode(struct device *dev, umode_t *mode) mode 1421 drivers/infiniband/core/uverbs_main.c if (mode) mode 1422 drivers/infiniband/core/uverbs_main.c *mode = 0666; mode 1202 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data); mode 1374 drivers/infiniband/hw/hfi1/chip.c int mode, u64 value) mode 1378 drivers/infiniband/hw/hfi1/chip.c if (mode == CNTR_MODE_R) { mode 1380 drivers/infiniband/hw/hfi1/chip.c } else if (mode == CNTR_MODE_W) { mode 1388 drivers/infiniband/hw/hfi1/chip.c hfi1_cdbg(CNTR, "csr 0x%x val 0x%llx mode %d", csr, ret, mode); mode 1394 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1407 drivers/infiniband/hw/hfi1/chip.c return read_write_csr(dd, csr, mode, data); mode 1411 drivers/infiniband/hw/hfi1/chip.c void *context, int idx, int mode, u64 data) mode 1421 drivers/infiniband/hw/hfi1/chip.c void *context, int idx, int mode, u64 data) mode 1431 drivers/infiniband/hw/hfi1/chip.c void *context, int idx, int mode, u64 data) mode 1441 drivers/infiniband/hw/hfi1/chip.c void *context, int idx, int mode, mode 1452 drivers/infiniband/hw/hfi1/chip.c int vl, int mode, u64 data) mode 1468 drivers/infiniband/hw/hfi1/chip.c val = read_write_csr(dd, csr, mode, data); mode 1473 drivers/infiniband/hw/hfi1/chip.c int vl, int mode, u64 data) mode 1481 drivers/infiniband/hw/hfi1/chip.c if (mode == CNTR_MODE_R) mode 1483 drivers/infiniband/hw/hfi1/chip.c else if (mode == CNTR_MODE_W) mode 1491 drivers/infiniband/hw/hfi1/chip.c hfi1_cdbg(CNTR, "csr 0x%x val 0x%llx mode %d", csr, data, mode); mode 1497 drivers/infiniband/hw/hfi1/chip.c int vl, int mode, u64 data) mode 1503 drivers/infiniband/hw/hfi1/chip.c return read_write_csr(ppd->dd, entry->csr, mode, data); mode 1507 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1521 drivers/infiniband/hw/hfi1/chip.c val = read_write_csr(ppd->dd, csr, mode, data); mode 1526 drivers/infiniband/hw/hfi1/chip.c static inline u64 read_write_sw(struct hfi1_devdata *dd, u64 *cntr, int mode, mode 1531 drivers/infiniband/hw/hfi1/chip.c if (mode == CNTR_MODE_R) { mode 1533 drivers/infiniband/hw/hfi1/chip.c } else if (mode == CNTR_MODE_W) { mode 1541 drivers/infiniband/hw/hfi1/chip.c hfi1_cdbg(CNTR, "val 0x%llx mode %d", ret, mode); mode 1547 drivers/infiniband/hw/hfi1/chip.c int vl, int mode, u64 data) mode 1553 drivers/infiniband/hw/hfi1/chip.c return read_write_sw(ppd->dd, &ppd->link_downed, mode, data); mode 1557 drivers/infiniband/hw/hfi1/chip.c int vl, int mode, u64 data) mode 1563 drivers/infiniband/hw/hfi1/chip.c return read_write_sw(ppd->dd, &ppd->link_up, mode, data); mode 1567 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 1574 drivers/infiniband/hw/hfi1/chip.c return read_write_sw(ppd->dd, &ppd->unknown_frame_count, mode, data); mode 1578 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1591 drivers/infiniband/hw/hfi1/chip.c return read_write_sw(ppd->dd, counter, mode, data); mode 1595 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 1604 drivers/infiniband/hw/hfi1/chip.c mode, data); mode 1608 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1616 drivers/infiniband/hw/hfi1/chip.c mode, data); mode 1631 drivers/infiniband/hw/hfi1/chip.c int vl, int mode, u64 data) mode 1638 drivers/infiniband/hw/hfi1/chip.c if (mode == CNTR_MODE_R) { mode 1640 drivers/infiniband/hw/hfi1/chip.c } else if (mode == CNTR_MODE_W) { mode 1655 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1660 drivers/infiniband/hw/hfi1/chip.c mode, data); mode 1664 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1669 drivers/infiniband/hw/hfi1/chip.c mode, data); mode 1673 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1681 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1689 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1697 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1705 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1713 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1718 drivers/infiniband/hw/hfi1/chip.c mode, data); mode 1723 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 1732 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 1741 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 1751 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 1759 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 1769 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1778 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 1786 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 1795 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 1805 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 1814 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1823 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 1831 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 1845 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1857 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 1866 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 1875 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 1884 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 1893 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 1903 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1912 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1921 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 1929 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 1938 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1946 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 1955 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 1965 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1974 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 1982 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 1991 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2000 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2009 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2019 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2027 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2037 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2046 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2054 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2063 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2072 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2081 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2091 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2099 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2109 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2118 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2127 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2136 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2145 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2154 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2163 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2171 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2180 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2190 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2199 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2208 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2216 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2229 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2239 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2247 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2256 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2266 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2275 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2283 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2292 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2301 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2311 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2320 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2329 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2338 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2347 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2356 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2365 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2374 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2382 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2392 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2401 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2410 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2419 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2428 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2437 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2446 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2455 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2464 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2473 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2482 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2491 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2500 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2508 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2517 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2526 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2535 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2545 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2554 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2563 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2572 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2581 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2590 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2599 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2608 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2617 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2626 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2635 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2644 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2653 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2662 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2671 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2680 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2688 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2697 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2706 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2715 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2724 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2734 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2743 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2751 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2760 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2769 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2778 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2787 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2796 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2810 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2819 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2828 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2837 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2845 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2854 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2863 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2873 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2881 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2890 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2900 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2909 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2918 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2926 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2936 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2945 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2954 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 2963 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2971 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2980 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 2990 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 2999 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3008 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3017 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3026 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3035 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3044 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3053 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3062 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3070 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3079 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3088 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3097 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3106 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3116 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 3124 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3138 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3147 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3155 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3164 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3178 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3187 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3195 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3205 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 3214 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3222 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3231 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3240 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3249 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3258 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3267 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3276 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3285 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3294 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3303 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3312 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3321 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3330 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3339 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3349 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 3358 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3366 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3376 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3385 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3394 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3403 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3412 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3421 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3430 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3439 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3448 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3457 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3466 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3475 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3484 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3493 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3502 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3511 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3520 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3529 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3538 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3547 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3556 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3565 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3574 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3583 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3592 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3601 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3609 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3619 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 3627 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3636 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3646 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3654 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3663 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3673 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3682 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3690 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3700 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3708 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3718 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3726 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3736 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3745 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3758 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3767 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 3775 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3789 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3797 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3807 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3816 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 3824 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3838 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3847 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3856 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3864 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3873 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3883 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3892 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3901 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3909 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3918 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3927 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3936 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3945 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3954 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3963 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 3973 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3982 drivers/infiniband/hw/hfi1/chip.c int mode, u64 data) mode 3990 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 3998 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 4007 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 4017 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) mode 4025 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 4034 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 4043 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 4052 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, mode 4060 drivers/infiniband/hw/hfi1/chip.c val = read_write_csr(dd, csr, mode, data); mode 4061 drivers/infiniband/hw/hfi1/chip.c if (mode == CNTR_MODE_R) { mode 4064 drivers/infiniband/hw/hfi1/chip.c } else if (mode == CNTR_MODE_W) { mode 4075 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) \ mode 4080 drivers/infiniband/hw/hfi1/chip.c mode, data); \ mode 4089 drivers/infiniband/hw/hfi1/chip.c void *context, int vl, int mode, u64 data) \ mode 4097 drivers/infiniband/hw/hfi1/chip.c mode, data); \ mode 118 drivers/infiniband/hw/hfi1/device.c static char *hfi1_devnode(struct device *dev, umode_t *mode) mode 120 drivers/infiniband/hw/hfi1/device.c if (mode) mode 121 drivers/infiniband/hw/hfi1/device.c *mode = 0600; mode 131 drivers/infiniband/hw/hfi1/device.c static char *hfi1_user_devnode(struct device *dev, umode_t *mode) mode 133 drivers/infiniband/hw/hfi1/device.c if (mode) mode 134 drivers/infiniband/hw/hfi1/device.c *mode = 0666; mode 1682 drivers/infiniband/hw/hfi1/sdma.c u8 skip = 0, mode = ahg_mode(tx); mode 1687 drivers/infiniband/hw/hfi1/sdma.c if (mode > SDMA_AHG_APPLY_UPDATE1) mode 1688 drivers/infiniband/hw/hfi1/sdma.c skip = mode >> 1; mode 2312 drivers/infiniband/hw/hfi1/sdma.c u8 skip = 0, mode = ahg_mode(tx); mode 2321 drivers/infiniband/hw/hfi1/sdma.c if (mode > SDMA_AHG_APPLY_UPDATE1) mode 2322 drivers/infiniband/hw/hfi1/sdma.c skip = mode >> 1; mode 3238 drivers/infiniband/hw/hfi1/sdma.c u8 mode; mode 3243 drivers/infiniband/hw/hfi1/sdma.c mode = SDMA_AHG_APPLY_UPDATE1; mode 3245 drivers/infiniband/hw/hfi1/sdma.c mode = SDMA_AHG_APPLY_UPDATE2; mode 3247 drivers/infiniband/hw/hfi1/sdma.c mode = SDMA_AHG_APPLY_UPDATE3; mode 3250 drivers/infiniband/hw/hfi1/sdma.c switch (mode) { mode 3268 drivers/infiniband/hw/hfi1/sdma.c (((u64)mode & SDMA_DESC1_HEADER_MODE_MASK) mode 99 drivers/infiniband/hw/hfi1/sysfs.c .attr = {.name = "cc_table_bin", .mode = 0444}, mode 141 drivers/infiniband/hw/hfi1/sysfs.c .attr = {.name = "cc_settings_bin", .mode = 0444}, mode 212 drivers/infiniband/hw/hfi1/sysfs.c .attr = { .name = __stringify(N), .mode = 0444 }, \ mode 317 drivers/infiniband/hw/hfi1/sysfs.c .attr = { .name = __stringify(N), .mode = 0444 }, \ mode 423 drivers/infiniband/hw/hfi1/sysfs.c .attr = { .name = __stringify(N), .mode = 0444 }, \ mode 1667 drivers/infiniband/hw/hfi1/tid_rdma.c void *context, int vl, int mode, u64 data) mode 242 drivers/infiniband/hw/hfi1/tid_rdma.h void *context, int vl, int mode, u64 data); mode 1390 drivers/infiniband/hw/i40iw/i40iw_puda.c if (pfpdu->mode && (fps != pfpdu->fps)) { mode 1395 drivers/infiniband/hw/i40iw/i40iw_puda.c pfpdu->mode = false; mode 1398 drivers/infiniband/hw/i40iw/i40iw_puda.c if (!pfpdu->mode) { mode 1403 drivers/infiniband/hw/i40iw/i40iw_puda.c pfpdu->mode = true; mode 1487 drivers/infiniband/hw/i40iw/i40iw_puda.c if (!pfpdu->mode) mode 268 drivers/infiniband/hw/i40iw/i40iw_type.h bool mode; mode 847 drivers/infiniband/hw/mlx4/mcg.c group->dentry.attr.mode = 0400; mode 180 drivers/infiniband/hw/mlx4/sysfs.c vdentry->dentry.attr.mode = 0; mode 185 drivers/infiniband/hw/mlx4/sysfs.c vdentry->dentry.attr.mode |= S_IWUSR; mode 188 drivers/infiniband/hw/mlx4/sysfs.c vdentry->dentry.attr.mode |= S_IRUGO; mode 522 drivers/infiniband/hw/mlx4/sysfs.c element->attr.attr.mode = S_IWUSR | S_IRUGO; mode 525 drivers/infiniband/hw/mlx4/sysfs.c element->attr.attr.mode = S_IRUGO; mode 602 drivers/infiniband/hw/mlx4/sysfs.c p->smi_enabled.attr.mode = 0444; mode 613 drivers/infiniband/hw/mlx4/sysfs.c p->enable_smi_admin.attr.mode = 0644; mode 1148 drivers/infiniband/hw/mlx5/mr.c u64 length, int acc, int mode) mode 1170 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, access_mode_1_0, mode & 0x3); mode 1171 drivers/infiniband/hw/mlx5/mr.c MLX5_SET(mkc, mkc, access_mode_4_2, (mode >> 2) & 0x7); mode 1225 drivers/infiniband/hw/mlx5/mr.c int mode; mode 1232 drivers/infiniband/hw/mlx5/mr.c mode = MLX5_MKC_ACCESS_MODE_MEMIC; mode 1240 drivers/infiniband/hw/mlx5/mr.c mode = MLX5_MKC_ACCESS_MODE_SW_ICM; mode 1247 drivers/infiniband/hw/mlx5/mr.c attr->access_flags, mode); mode 664 drivers/infiniband/hw/ocrdma/ocrdma_sli.h u32 mode; mode 52 drivers/infiniband/hw/qib/qib_fs.c umode_t mode, const struct file_operations *fops, mode 64 drivers/infiniband/hw/qib/qib_fs.c inode->i_mode = mode; mode 72 drivers/infiniband/hw/qib/qib_fs.c if (S_ISDIR(mode)) { mode 87 drivers/infiniband/hw/qib/qib_fs.c static int create_file(const char *name, umode_t mode, mode 97 drivers/infiniband/hw/qib/qib_fs.c mode, fops, data); mode 178 drivers/infiniband/hw/qib/qib_sysfs.c #define QIB_PORT_ATTR(name, mode, show, store) \ mode 180 drivers/infiniband/hw/qib/qib_sysfs.c __ATTR(name, mode, show, store) mode 251 drivers/infiniband/hw/qib/qib_sysfs.c .attr = {.name = "cc_table_bin", .mode = 0444}, mode 290 drivers/infiniband/hw/qib/qib_sysfs.c .attr = {.name = "cc_settings_bin", .mode = 0444}, mode 340 drivers/infiniband/hw/qib/qib_sysfs.c .attr = { .name = __stringify(N), .mode = 0444 }, \ mode 414 drivers/infiniband/hw/qib/qib_sysfs.c .attr = { .name = __stringify(N), .mode = 0664 }, \ mode 420 drivers/infiniband/hw/qib/qib_sysfs.c .attr = { .name = __stringify(N), .mode = 0664 }, \ mode 150 drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h ((_dev->dsr->caps.mode == PVRDMA_DEVICE_MODE_ROCE) && \ mode 258 drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h u8 mode; /* PVRDMA_DEVICE_MODE_ */ mode 1549 drivers/infiniband/ulp/ipoib/ipoib_cm.c static DEVICE_ATTR(mode, S_IWUSR | S_IRUGO, show_mode, set_mode); mode 71 drivers/infiniband/ulp/ipoib/ipoib_netlink.c u16 mode, umcast; mode 75 drivers/infiniband/ulp/ipoib/ipoib_netlink.c mode = nla_get_u16(data[IFLA_IPOIB_MODE]); mode 76 drivers/infiniband/ulp/ipoib/ipoib_netlink.c if (mode == IPOIB_MODE_DATAGRAM) mode 78 drivers/infiniband/ulp/ipoib/ipoib_netlink.c else if (mode == IPOIB_MODE_CONNECTED) mode 49 drivers/input/gameport/fm801-gp.c static int fm801_gp_open(struct gameport *gameport, int mode) mode 51 drivers/input/gameport/fm801-gp.c switch (mode) { mode 803 drivers/input/gameport/gameport.c int gameport_open(struct gameport *gameport, struct gameport_driver *drv, int mode) mode 806 drivers/input/gameport/gameport.c if (gameport->open(gameport, mode)) { mode 810 drivers/input/gameport/gameport.c if (mode != GAMEPORT_MODE_RAW) mode 93 drivers/input/gameport/lightning.c static int l4_open(struct gameport *gameport, int mode) mode 97 drivers/input/gameport/lightning.c if (l4->port != 0 && mode != GAMEPORT_MODE_COOKED) mode 200 drivers/input/input-poller.c return input->poller ? attr->mode : 0; mode 1792 drivers/input/input.c static char *input_devnode(struct device *dev, umode_t *mode) mode 44 drivers/input/joystick/a3d.c int mode; mode 101 drivers/input/joystick/a3d.c switch (a3d->mode) { mode 169 drivers/input/joystick/a3d.c data[0] != a3d->mode || a3d_csum(data, a3d->length)) mode 197 drivers/input/joystick/a3d.c static int a3d_adc_open(struct gameport *gameport, int mode) mode 201 drivers/input/joystick/a3d.c if (mode != GAMEPORT_MODE_COOKED) mode 278 drivers/input/joystick/a3d.c a3d->mode = data[0]; mode 280 drivers/input/joystick/a3d.c if (!a3d->mode || a3d->mode > 5) { mode 282 drivers/input/joystick/a3d.c "(%s, id=%d), contact <vojtech@ucw.cz>\n", gameport->phys, a3d->mode); mode 292 drivers/input/joystick/a3d.c input_dev->name = a3d_names[a3d->mode]; mode 296 drivers/input/joystick/a3d.c input_dev->id.product = a3d->mode; mode 304 drivers/input/joystick/a3d.c if (a3d->mode == A3D_MODE_PXL) { mode 354 drivers/input/joystick/a3d.c gameport_set_name(adc, a3d_names[a3d->mode]); mode 91 drivers/input/joystick/db9.c int mode; mode 325 drivers/input/joystick/db9.c static int db9_saturn(int mode, struct parport *port, struct input_dev *devs[]) mode 331 drivers/input/joystick/db9.c switch (mode) { mode 347 drivers/input/joystick/db9.c max_pads = min(db9_modes[mode].n_pads, DB9_MAX_DEVICES); mode 363 drivers/input/joystick/db9.c switch (db9->mode) { mode 479 drivers/input/joystick/db9.c db9_saturn(db9->mode, port, db9->dev); mode 520 drivers/input/joystick/db9.c if (db9_modes[db9->mode].reverse) { mode 553 drivers/input/joystick/db9.c int mode; mode 570 drivers/input/joystick/db9.c mode = db9_cfg[port_idx].args[DB9_ARG_MODE]; mode 572 drivers/input/joystick/db9.c if (mode < 1 || mode >= DB9_MAX_PAD || !db9_modes[mode].n_buttons) { mode 573 drivers/input/joystick/db9.c printk(KERN_ERR "db9.c: Bad device type %d\n", mode); mode 577 drivers/input/joystick/db9.c db9_mode = &db9_modes[mode]; mode 599 drivers/input/joystick/db9.c db9->mode = mode; mode 618 drivers/input/joystick/db9.c input_dev->id.product = mode; mode 669 drivers/input/joystick/db9.c for (i = 0; i < min(db9_modes[db9->mode].n_pads, DB9_MAX_DEVICES); i++) mode 41 drivers/input/joystick/grip.c unsigned char mode[2]; mode 181 drivers/input/joystick/grip.c switch (grip->mode[i]) { mode 303 drivers/input/joystick/grip.c grip->mode[i] = GRIP_MODE_GPP; mode 308 drivers/input/joystick/grip.c grip->mode[i] = GRIP_MODE_BD; mode 312 drivers/input/joystick/grip.c grip->mode[i] = GRIP_MODE_XT; mode 315 drivers/input/joystick/grip.c grip->mode[i] = GRIP_MODE_DC; mode 320 drivers/input/joystick/grip.c if (!grip->mode[0] && !grip->mode[1]) { mode 329 drivers/input/joystick/grip.c if (!grip->mode[i]) mode 341 drivers/input/joystick/grip.c input_dev->name = grip_name[grip->mode[i]]; mode 345 drivers/input/joystick/grip.c input_dev->id.product = grip->mode[i]; mode 356 drivers/input/joystick/grip.c for (j = 0; (t = grip_abs[grip->mode[i]][j]) >= 0; j++) { mode 358 drivers/input/joystick/grip.c if (j < grip_cen[grip->mode[i]]) mode 360 drivers/input/joystick/grip.c else if (j < grip_anx[grip->mode[i]]) mode 366 drivers/input/joystick/grip.c for (j = 0; (t = grip_btn[grip->mode[i]][j]) >= 0; j++) mode 41 drivers/input/joystick/grip_mp.c int mode; mode 397 drivers/input/joystick/grip_mp.c grip_name[port->mode], slot); mode 402 drivers/input/joystick/grip_mp.c port->mode = GRIP_MODE_RESET; mode 417 drivers/input/joystick/grip_mp.c if (port->mode == GRIP_MODE_RESET) mode 420 drivers/input/joystick/grip_mp.c port->mode = GRIP_MODE_GP; mode 425 drivers/input/joystick/grip_mp.c port->mode = GRIP_MODE_RESET; mode 458 drivers/input/joystick/grip_mp.c if (grip->port[slot]->mode == GRIP_MODE_RESET) mode 460 drivers/input/joystick/grip_mp.c if (grip->port[slot]->mode != GRIP_MODE_NONE) mode 595 drivers/input/joystick/grip_mp.c input_dev->name = grip_name[port->mode]; mode 598 drivers/input/joystick/grip_mp.c input_dev->id.product = 0x0100 + port->mode; mode 609 drivers/input/joystick/grip_mp.c for (j = 0; (t = grip_abs[port->mode][j]) >= 0; j++) mode 612 drivers/input/joystick/grip_mp.c for (j = 0; (t = grip_btn[port->mode][j]) >= 0; j++) mode 654 drivers/input/joystick/grip_mp.c if (!grip->port[0]->mode && !grip->port[1]->mode && !grip->port[2]->mode && !grip->port[3]->mode) { mode 347 drivers/input/joystick/psxpad-spi.c spi->mode = SPI_MODE_3; mode 99 drivers/input/joystick/tmdc.c int mode; mode 114 drivers/input/joystick/tmdc.c int mode[2]; mode 179 drivers/input/joystick/tmdc.c if (data[TMDC_BYTE_ID] != port->mode) mode 189 drivers/input/joystick/tmdc.c switch (port->mode) { mode 277 drivers/input/joystick/tmdc.c port->mode = data[TMDC_BYTE_ID]; mode 279 drivers/input/joystick/tmdc.c for (model = tmdc_models; model->id && model->id != port->mode; model++) mode 299 drivers/input/joystick/tmdc.c port->absc, (data[TMDC_BYTE_DEF] & 0xf) << 3, port->mode); mode 112 drivers/input/keyboard/lkkbd.c #define LK_CMD_SET_MODE(mode, div) ((mode) | ((div) << 3)) mode 86 drivers/input/keyboard/sh_keysc.c int keyout_nr = sh_keysc_mode[pdata->mode].keyout; mode 87 drivers/input/keyboard/sh_keysc.c int keyin_nr = sh_keysc_mode[pdata->mode].keyin; mode 248 drivers/input/keyboard/sh_keysc.c sh_keysc_write(priv, KYCR1, (sh_keysc_mode[pdata->mode].kymd << 8) | mode 60 drivers/input/keyboard/spear-keyboard.c unsigned int mode; mode 120 drivers/input/keyboard/spear-keyboard.c (kbd->mode << MODE_CTL_KEYNUM_SHIFT); mode 172 drivers/input/keyboard/spear-keyboard.c kbd->mode = val; mode 217 drivers/input/keyboard/spear-keyboard.c kbd->mode = pdata->mode; mode 193 drivers/input/misc/ati_remote2.c int mode; mode 312 drivers/input/misc/ati_remote2.c int channel, mode; mode 319 drivers/input/misc/ati_remote2.c mode = data[0] & 0x0F; mode 321 drivers/input/misc/ati_remote2.c if (mode > ATI_REMOTE2_PC) { mode 328 drivers/input/misc/ati_remote2.c if (!((1 << mode) & ar2->mode_mask)) mode 351 drivers/input/misc/ati_remote2.c int channel, mode, hw_code, index; mode 358 drivers/input/misc/ati_remote2.c mode = data[0] & 0x0F; mode 360 drivers/input/misc/ati_remote2.c if (mode > ATI_REMOTE2_PC) { mode 376 drivers/input/misc/ati_remote2.c if (ar2->mode == mode) mode 380 drivers/input/misc/ati_remote2.c ar2->mode = mode; mode 383 drivers/input/misc/ati_remote2.c if (!((1 << mode) & ar2->mode_mask)) mode 403 drivers/input/misc/ati_remote2.c if (ar2->keycode[mode][index] == BTN_LEFT || mode 404 drivers/input/misc/ati_remote2.c ar2->keycode[mode][index] == BTN_RIGHT) mode 419 drivers/input/misc/ati_remote2.c input_event(idev, EV_KEY, ar2->keycode[mode][index], data[1]); mode 485 drivers/input/misc/ati_remote2.c unsigned int mode; mode 496 drivers/input/misc/ati_remote2.c mode = ke->index / ARRAY_SIZE(ati_remote2_key_table); mode 498 drivers/input/misc/ati_remote2.c scancode = (mode << 8) + ati_remote2_key_table[offset].hw_code; mode 503 drivers/input/misc/ati_remote2.c mode = scancode >> 8; mode 504 drivers/input/misc/ati_remote2.c if (mode > ATI_REMOTE2_PC) mode 511 drivers/input/misc/ati_remote2.c index = mode * ARRAY_SIZE(ati_remote2_key_table) + offset; mode 514 drivers/input/misc/ati_remote2.c ke->keycode = ar2->keycode[mode][offset]; mode 527 drivers/input/misc/ati_remote2.c unsigned int mode; mode 537 drivers/input/misc/ati_remote2.c mode = ke->index / ARRAY_SIZE(ati_remote2_key_table); mode 543 drivers/input/misc/ati_remote2.c mode = scancode >> 8; mode 544 drivers/input/misc/ati_remote2.c if (mode > ATI_REMOTE2_PC) mode 552 drivers/input/misc/ati_remote2.c *old_keycode = ar2->keycode[mode][offset]; mode 553 drivers/input/misc/ati_remote2.c ar2->keycode[mode][offset] = ke->keycode; mode 556 drivers/input/misc/ati_remote2.c for (mode = 0; mode < ATI_REMOTE2_MODES; mode++) { mode 558 drivers/input/misc/ati_remote2.c if (ar2->keycode[mode][index] == *old_keycode) mode 571 drivers/input/misc/ati_remote2.c int index, mode, retval; mode 585 drivers/input/misc/ati_remote2.c for (mode = 0; mode < ATI_REMOTE2_MODES; mode++) { mode 587 drivers/input/misc/ati_remote2.c ar2->keycode[mode][index] = ati_remote2_key_table[index].keycode; mode 588 drivers/input/misc/ati_remote2.c __set_bit(ar2->keycode[mode][index], idev->keybit); mode 128 drivers/input/misc/bma150.c u8 mode; mode 181 drivers/input/misc/bma150.c static int bma150_set_mode(struct bma150_data *bma150, u8 mode) mode 185 drivers/input/misc/bma150.c error = bma150_set_reg_bits(bma150->client, mode, BMA150_WAKE_UP_POS, mode 190 drivers/input/misc/bma150.c error = bma150_set_reg_bits(bma150->client, mode, BMA150_SLEEP_POS, mode 195 drivers/input/misc/bma150.c if (mode == BMA150_MODE_NORMAL) mode 198 drivers/input/misc/bma150.c bma150->mode = mode; mode 356 drivers/input/misc/bma150.c if (bma150->mode != BMA150_MODE_NORMAL) { mode 369 drivers/input/misc/bma150.c if (bma150->mode != BMA150_MODE_SLEEP) mode 66 drivers/input/misc/cma3000_d0x.c u8 mode; mode 108 drivers/input/misc/cma3000_d0x.c u8 ctrl, mode, range; mode 127 drivers/input/misc/cma3000_d0x.c mode = (ctrl & CMA3000_MODEMASK) >> 1; mode 130 drivers/input/misc/cma3000_d0x.c data->bit_to_mg = mode_to_mg[mode][range]; mode 180 drivers/input/misc/cma3000_d0x.c ctrl = (data->mode << 1) | CMA3000_RANGE2G; mode 182 drivers/input/misc/cma3000_d0x.c ctrl = (data->mode << 1) | CMA3000_RANGE8G; mode 186 drivers/input/misc/cma3000_d0x.c ctrl = (data->mode << 1) | CMA3000_RANGE8G; mode 309 drivers/input/misc/cma3000_d0x.c data->mode = pdata->mode; mode 310 drivers/input/misc/cma3000_d0x.c if (data->mode > CMAMODE_POFF) { mode 311 drivers/input/misc/cma3000_d0x.c data->mode = CMAMODE_MOTDET; mode 190 drivers/input/misc/drv260x.c u32 mode; mode 276 drivers/input/misc/drv260x.c haptics->mode = DRV260X_LRA_NO_CAL_MODE; mode 367 drivers/input/misc/drv260x.c switch (haptics->mode) { mode 472 drivers/input/misc/drv260x.c error = device_property_read_u32(dev, "mode", &haptics->mode); mode 478 drivers/input/misc/drv260x.c if (haptics->mode < DRV260X_LRA_MODE || mode 479 drivers/input/misc/drv260x.c haptics->mode > DRV260X_ERM_MODE) { mode 480 drivers/input/misc/drv260x.c dev_err(dev, "Vibrator mode is invalid: %i\n", haptics->mode); mode 497 drivers/input/misc/drv260x.c if (haptics->mode == DRV260X_LRA_MODE && mode 504 drivers/input/misc/drv260x.c if (haptics->mode == DRV260X_ERM_MODE && mode 124 drivers/input/misc/ideapad_slidebar.c static void slidebar_mode_set(u8 mode) mode 131 drivers/input/misc/ideapad_slidebar.c outb(mode, 0xff2b); mode 182 drivers/input/misc/ideapad_slidebar.c u8 mode; mode 185 drivers/input/misc/ideapad_slidebar.c error = kstrtou8(buf, 0, &mode); mode 189 drivers/input/misc/ideapad_slidebar.c slidebar_mode_set(mode); mode 1234 drivers/input/misc/ims-pcu.c umode_t mode = attr->mode; mode 1240 drivers/input/misc/ims-pcu.c mode = 0; mode 1244 drivers/input/misc/ims-pcu.c mode = 0; mode 1247 drivers/input/misc/ims-pcu.c return mode; mode 47 drivers/input/misc/max77650-onkey.c int irq_r, irq_f, error, mode; mode 69 drivers/input/misc/max77650-onkey.c mode = MAX77650_ONKEY_MODE_SLIDE; mode 72 drivers/input/misc/max77650-onkey.c mode = MAX77650_ONKEY_MODE_PUSH; mode 77 drivers/input/misc/max77650-onkey.c MAX77650_ONKEY_MODE_MASK, mode); mode 62 drivers/input/misc/max77693-haptic.c enum max77693_haptic_pulse_mode mode; mode 114 drivers/input/misc/max77693-haptic.c (haptic->mode << MAX77693_CONFIG2_HTYP) | mode 306 drivers/input/misc/max77693-haptic.c haptic->mode = MAX77693_HAPTIC_EXTERNAL_MODE; mode 49 drivers/input/misc/max8997_haptic.c enum max8997_haptic_pulse_mode mode; mode 60 drivers/input/misc/max8997_haptic.c if (chip->mode == MAX8997_EXTERNAL_MODE) { mode 103 drivers/input/misc/max8997_haptic.c chip->mode << MAX8997_MODE_SHIFT | chip->pwm_divisor; mode 106 drivers/input/misc/max8997_haptic.c if (chip->mode == MAX8997_INTERNAL_MODE && chip->enabled) { mode 176 drivers/input/misc/max8997_haptic.c if (chip->mode == MAX8997_EXTERNAL_MODE) { mode 198 drivers/input/misc/max8997_haptic.c if (chip->mode == MAX8997_EXTERNAL_MODE) mode 273 drivers/input/misc/max8997_haptic.c chip->mode = haptic_pdata->mode; mode 276 drivers/input/misc/max8997_haptic.c switch (chip->mode) { mode 305 drivers/input/misc/max8997_haptic.c "Invalid chip mode specified (%d)\n", chip->mode); mode 351 drivers/input/misc/max8997_haptic.c if (chip->mode == MAX8997_EXTERNAL_MODE) mode 367 drivers/input/misc/max8997_haptic.c if (chip->mode == MAX8997_EXTERNAL_MODE) mode 1225 drivers/input/mouse/cyapa.c static DEVICE_ATTR(mode, S_IRUGO, cyapa_show_mode, NULL); mode 345 drivers/input/mouse/cypress_ps2.c cytp->mode = (cytp->mode & ~CYTP_BIT_ABS_REL_MASK) mode 360 drivers/input/mouse/cypress_ps2.c cytp->mode = 0; mode 459 drivers/input/mouse/cypress_ps2.c if (cytp->mode & CYTP_BIT_ABS_PRESSURE) mode 467 drivers/input/mouse/cypress_ps2.c if (cytp->mode & CYTP_BIT_ABS_PRESSURE) mode 474 drivers/input/mouse/cypress_ps2.c if (cytp->mode & CYTP_BIT_ABS_PRESSURE) mode 585 drivers/input/mouse/cypress_ps2.c if ((cytp->mode & CYTP_BIT_ABS_REL_MASK) == 0) mode 592 drivers/input/mouse/cypress_ps2.c if (cytp->mode & CYTP_BIT_ABS_NO_PRESSURE) mode 618 drivers/input/mouse/cypress_ps2.c cytp->mode |= CYTP_BIT_HIGH_RATE; mode 621 drivers/input/mouse/cypress_ps2.c cytp->mode &= ~CYTP_BIT_HIGH_RATE; mode 157 drivers/input/mouse/cypress_ps2.h int mode; mode 50 drivers/input/mouse/elan_i2c.h int (*set_mode)(struct i2c_client *client, u8 mode); mode 72 drivers/input/mouse/elan_i2c.h int (*iap_get_mode)(struct i2c_client *client, enum tp_mode *mode); mode 89 drivers/input/mouse/elan_i2c_core.c u8 mode; mode 276 drivers/input/mouse/elan_i2c_core.c data->mode |= ETP_ENABLE_ABS; mode 277 drivers/input/mouse/elan_i2c_core.c error = data->ops->set_mode(client, data->mode); mode 658 drivers/input/mouse/elan_i2c_core.c data->mode |= ETP_ENABLE_CALIBRATE; mode 659 drivers/input/mouse/elan_i2c_core.c retval = data->ops->set_mode(client, data->mode); mode 693 drivers/input/mouse/elan_i2c_core.c data->mode &= ~ETP_ENABLE_CALIBRATE; mode 694 drivers/input/mouse/elan_i2c_core.c error = data->ops->set_mode(data->client, data->mode); mode 714 drivers/input/mouse/elan_i2c_core.c enum tp_mode mode; mode 720 drivers/input/mouse/elan_i2c_core.c error = data->ops->iap_get_mode(data->client, &mode); mode 727 drivers/input/mouse/elan_i2c_core.c return sprintf(buf, "%d\n", (int)mode); mode 735 drivers/input/mouse/elan_i2c_core.c static DEVICE_ATTR(mode, S_IRUGO, elan_sysfs_read_mode, NULL); mode 772 drivers/input/mouse/elan_i2c_core.c data->mode |= ETP_ENABLE_CALIBRATE; mode 773 drivers/input/mouse/elan_i2c_core.c retval = data->ops->set_mode(data->client, data->mode); mode 801 drivers/input/mouse/elan_i2c_core.c data->mode &= ~ETP_ENABLE_CALIBRATE; mode 802 drivers/input/mouse/elan_i2c_core.c error = data->ops->set_mode(data->client, data->mode); mode 208 drivers/input/mouse/elan_i2c_i2c.c static int elan_i2c_set_mode(struct i2c_client *client, u8 mode) mode 210 drivers/input/mouse/elan_i2c_i2c.c return elan_i2c_write_cmd(client, ETP_I2C_SET_CMD, mode); mode 460 drivers/input/mouse/elan_i2c_i2c.c static int elan_i2c_iap_get_mode(struct i2c_client *client, enum tp_mode *mode) mode 477 drivers/input/mouse/elan_i2c_i2c.c *mode = (constant & ETP_I2C_MAIN_MODE_ON) ? MAIN_MODE : IAP_MODE; mode 514 drivers/input/mouse/elan_i2c_i2c.c enum tp_mode mode; mode 519 drivers/input/mouse/elan_i2c_i2c.c error = elan_i2c_iap_get_mode(client, &mode); mode 523 drivers/input/mouse/elan_i2c_i2c.c if (mode == IAP_MODE) { mode 538 drivers/input/mouse/elan_i2c_i2c.c msleep(mode == MAIN_MODE ? 100 : 30); mode 541 drivers/input/mouse/elan_i2c_i2c.c error = elan_i2c_iap_get_mode(client, &mode); mode 545 drivers/input/mouse/elan_i2c_i2c.c if (mode == MAIN_MODE) { mode 546 drivers/input/mouse/elan_i2c_i2c.c dev_err(dev, "wrong mode: %d\n", mode); mode 85 drivers/input/mouse/elan_i2c_smbus.c static int elan_smbus_set_mode(struct i2c_client *client, u8 mode) mode 87 drivers/input/mouse/elan_i2c_smbus.c u8 cmd[4] = { 0x00, 0x07, 0x00, mode }; mode 294 drivers/input/mouse/elan_i2c_smbus.c enum tp_mode *mode) mode 310 drivers/input/mouse/elan_i2c_smbus.c *mode = (constant & ETP_SMBUS_IAP_MODE_ON) ? IAP_MODE : MAIN_MODE; mode 348 drivers/input/mouse/elan_i2c_smbus.c enum tp_mode mode; mode 354 drivers/input/mouse/elan_i2c_smbus.c error = elan_smbus_iap_get_mode(client, &mode); mode 358 drivers/input/mouse/elan_i2c_smbus.c if (mode == MAIN_MODE) { mode 312 drivers/input/mouse/hgpk.c switch (priv->mode) { mode 335 drivers/input/mouse/hgpk.c priv->mode, pktcnt, 6, psmouse->packet); mode 351 drivers/input/mouse/hgpk.c if (priv->mode == HGPK_MODE_GLIDESENSOR) { mode 405 drivers/input/mouse/hgpk.c if (priv->mode != HGPK_MODE_PENTABLET && priv->abs_x != -1) { mode 468 drivers/input/mouse/hgpk.c if (priv->mode == HGPK_MODE_MOUSE) mode 509 drivers/input/mouse/hgpk.c switch (priv->mode) { mode 524 drivers/input/mouse/hgpk.c cmd = priv->mode == HGPK_MODE_GLIDESENSOR ? mode 540 drivers/input/mouse/hgpk.c enum hgpk_mode mode) mode 558 drivers/input/mouse/hgpk.c switch (mode) { mode 810 drivers/input/mouse/hgpk.c return sprintf(buf, "%s\n", hgpk_mode_names[priv->mode]); mode 817 drivers/input/mouse/hgpk.c enum hgpk_mode old_mode = priv->mode; mode 836 drivers/input/mouse/hgpk.c priv->mode = new_mode; mode 856 drivers/input/mouse/hgpk.c priv->mode = old_mode; mode 940 drivers/input/mouse/hgpk.c hgpk_setup_input_device(psmouse->dev, NULL, priv->mode); mode 994 drivers/input/mouse/hgpk.c priv->mode = hgpk_default_mode; mode 38 drivers/input/mouse/hgpk.h enum hgpk_mode mode; mode 167 drivers/input/mouse/psmouse.h .mode = _mode, \ mode 79 drivers/input/mouse/synaptics.c static int synaptics_mode_cmd(struct psmouse *psmouse, u8 mode) mode 84 drivers/input/mouse/synaptics.c error = ps2_sliced_command(&psmouse->ps2dev, mode); mode 580 drivers/input/mouse/synaptics.c priv->mode = 0; mode 582 drivers/input/mouse/synaptics.c priv->mode |= SYN_BIT_ABSOLUTE_MODE; mode 584 drivers/input/mouse/synaptics.c priv->mode |= SYN_BIT_DISABLE_GESTURE; mode 586 drivers/input/mouse/synaptics.c priv->mode |= SYN_BIT_HIGH_RATE; mode 588 drivers/input/mouse/synaptics.c priv->mode |= SYN_BIT_W_MODE; mode 590 drivers/input/mouse/synaptics.c error = synaptics_mode_cmd(psmouse, priv->mode); mode 612 drivers/input/mouse/synaptics.c priv->mode |= SYN_BIT_HIGH_RATE; mode 615 drivers/input/mouse/synaptics.c priv->mode &= ~SYN_BIT_HIGH_RATE; mode 619 drivers/input/mouse/synaptics.c synaptics_mode_cmd(psmouse, priv->mode); mode 692 drivers/input/mouse/synaptics.c priv->mode |= SYN_BIT_FOUR_BYTE_CLIENT; mode 694 drivers/input/mouse/synaptics.c priv->mode &= ~SYN_BIT_FOUR_BYTE_CLIENT; mode 696 drivers/input/mouse/synaptics.c if (synaptics_mode_cmd(psmouse, priv->mode)) mode 1383 drivers/input/mouse/synaptics.c priv->mode |= SYN_BIT_DISABLE_GESTURE; mode 1385 drivers/input/mouse/synaptics.c priv->mode &= ~SYN_BIT_DISABLE_GESTURE; mode 1387 drivers/input/mouse/synaptics.c if (synaptics_mode_cmd(psmouse, priv->mode)) mode 184 drivers/input/mouse/synaptics.h u8 mode; /* current mode byte */ mode 219 drivers/input/mouse/trackpoint.c return trackpoint_is_attr_available(psmouse, attr) ? attr->mode : 0; mode 107 drivers/input/mousedev.c enum mousedev_emul mode; mode 588 drivers/input/mousedev.c switch (client->mode) { mode 641 drivers/input/mousedev.c switch (client->mode) { mode 662 drivers/input/mousedev.c client->mode = MOUSEDEV_EMUL_PS2; mode 691 drivers/input/mousedev.c client->mode = MOUSEDEV_EMUL_EXPS; mode 699 drivers/input/mousedev.c client->mode = MOUSEDEV_EMUL_IMPS; mode 397 drivers/input/rmi4/rmi_spi.c if (pdata->spi_data.mode) mode 398 drivers/input/rmi4/rmi_spi.c spi->mode = pdata->spi_data.mode; mode 58 drivers/input/serio/parkbd.c module_param_named(mode, parkbd_mode, uint, 0); mode 59 drivers/input/serio/parkbd.c MODULE_PARM_DESC(mode, "Mode of operation: XT = 0/AT = 1 (default)"); mode 50 drivers/input/serio/ps2-gpio.c unsigned char mode; mode 87 drivers/input/serio/ps2-gpio.c drvdata->mode = PS2_MODE_TX; mode 286 drivers/input/serio/ps2-gpio.c drvdata->mode = PS2_MODE_RX; mode 318 drivers/input/serio/ps2-gpio.c return drvdata->mode ? ps2_gpio_irq_tx(drvdata) : mode 401 drivers/input/serio/ps2-gpio.c drvdata->mode = PS2_MODE_RX; mode 125 drivers/input/tablet/pegasus_notetaker.c static int pegasus_set_mode(struct pegasus *pegasus, u8 mode, u8 led) mode 127 drivers/input/tablet/pegasus_notetaker.c u8 cmd[] = { NOTETAKER_SET_CMD, NOTETAKER_SET_MODE, led, mode }; mode 600 drivers/input/touchscreen/ad7877.c umode_t mode = attr->mode; mode 604 drivers/input/touchscreen/ad7877.c mode = 0; mode 607 drivers/input/touchscreen/ad7877.c mode = 0; mode 610 drivers/input/touchscreen/ad7877.c return mode; mode 491 drivers/input/touchscreen/ads7846.c return attr->mode; mode 1286 drivers/input/touchscreen/ads7846.c spi->mode = SPI_MODE_0; mode 145 drivers/input/touchscreen/atmel_mxt_ts.c u8 mode; mode 2275 drivers/input/touchscreen/atmel_mxt_ts.c static int mxt_read_diagnostic_debug(struct mxt_data *data, u8 mode, mode 2282 drivers/input/touchscreen/atmel_mxt_ts.c u8 cmd = mode; mode 2318 drivers/input/touchscreen/atmel_mxt_ts.c if (p->mode != mode || p->page != page) { mode 2354 drivers/input/touchscreen/atmel_mxt_ts.c u8 mode; mode 2365 drivers/input/touchscreen/atmel_mxt_ts.c mode = MXT_DIAGNOSTIC_DELTAS; mode 2369 drivers/input/touchscreen/atmel_mxt_ts.c mode = MXT_DIAGNOSTIC_REFS; mode 2373 drivers/input/touchscreen/atmel_mxt_ts.c ret = mxt_read_diagnostic_debug(data, mode, ptr); mode 256 drivers/input/touchscreen/auo-pixcir-ts.c static int auo_pixcir_power_mode(struct auo_pixcir_ts *ts, int mode) mode 269 drivers/input/touchscreen/auo-pixcir-ts.c ret |= mode; mode 88 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_handshake(struct cyttsp4 *cd, u8 mode) mode 90 drivers/input/touchscreen/cyttsp4_core.c u8 cmd = mode ^ CY_HST_TOGGLE; mode 97 drivers/input/touchscreen/cyttsp4_core.c if (mode & CY_HST_MODE_CHANGE) mode 1070 drivers/input/touchscreen/cyttsp4_core.c u8 mode[3]; mode 1091 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_read(cd, CY_REG_BASE, sizeof(mode), mode); mode 1097 drivers/input/touchscreen/cyttsp4_core.c mode[0], mode[1], mode[2]); mode 1099 drivers/input/touchscreen/cyttsp4_core.c if (IS_BOOTLOADER(mode[0], mode[1])) { mode 1102 drivers/input/touchscreen/cyttsp4_core.c if (cd->mode == CY_MODE_BOOTLOADER) { mode 1110 drivers/input/touchscreen/cyttsp4_core.c __func__, cd->mode, cur_mode); mode 1113 drivers/input/touchscreen/cyttsp4_core.c if (cd->mode != CY_MODE_UNKNOWN) { mode 1115 drivers/input/touchscreen/cyttsp4_core.c cd->mode = CY_MODE_UNKNOWN; mode 1125 drivers/input/touchscreen/cyttsp4_core.c cd->mode = cur_mode; mode 1130 drivers/input/touchscreen/cyttsp4_core.c switch (mode[0] & CY_HST_MODE) { mode 1146 drivers/input/touchscreen/cyttsp4_core.c mode[0]); mode 1166 drivers/input/touchscreen/cyttsp4_core.c && (mode[0] & CY_HST_MODE_CHANGE) == 0) { mode 1169 drivers/input/touchscreen/cyttsp4_core.c __func__, cd->mode, cur_mode); mode 1170 drivers/input/touchscreen/cyttsp4_core.c cd->mode = cur_mode; mode 1177 drivers/input/touchscreen/cyttsp4_core.c __func__, cd->mode, cur_mode); mode 1178 drivers/input/touchscreen/cyttsp4_core.c if ((mode[0] & CY_HST_MODE_CHANGE) == 0 && cd->mode != cur_mode) { mode 1180 drivers/input/touchscreen/cyttsp4_core.c dev_err(dev, "%s %d->%d 0x%x\n", __func__, cd->mode, mode 1189 drivers/input/touchscreen/cyttsp4_core.c dev_vdbg(dev, "%s: command byte:0x%x\n", __func__, mode[cmd_ofs]); mode 1191 drivers/input/touchscreen/cyttsp4_core.c && mode[cmd_ofs] & CY_CMD_COMPLETE) { mode 1204 drivers/input/touchscreen/cyttsp4_core.c if (cd->mode == CY_MODE_OPERATIONAL) { mode 1217 drivers/input/touchscreen/cyttsp4_core.c __func__, mode[0], rc); mode 1218 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_handshake(cd, mode[0]); mode 1221 drivers/input/touchscreen/cyttsp4_core.c __func__, mode[0], rc); mode 1334 drivers/input/touchscreen/cyttsp4_core.c t = wait_event_timeout(cd->wait_q, cd->mode == CY_MODE_BOOTLOADER, mode 1338 drivers/input/touchscreen/cyttsp4_core.c __func__, cd->mode); mode 1351 drivers/input/touchscreen/cyttsp4_core.c t = wait_event_timeout(cd->wait_q, cd->mode == CY_MODE_SYSINFO, mode 1355 drivers/input/touchscreen/cyttsp4_core.c __func__, cd->mode); mode 1373 drivers/input/touchscreen/cyttsp4_core.c cd->mode = CY_MODE_UNKNOWN; mode 1390 drivers/input/touchscreen/cyttsp4_core.c u8 mode; mode 1416 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_read(cd, CY_REG_BASE, sizeof(mode), &mode); mode 1425 drivers/input/touchscreen/cyttsp4_core.c mode &= ~CY_HST_MODE; mode 1426 drivers/input/touchscreen/cyttsp4_core.c mode |= new_dev_mode | CY_HST_MODE_CHANGE; mode 1429 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_write(cd, CY_REG_BASE, sizeof(mode), &mode); mode 1442 drivers/input/touchscreen/cyttsp4_core.c __func__, t, cd->mode); mode 1461 drivers/input/touchscreen/cyttsp4_core.c u8 *mode; mode 1473 drivers/input/touchscreen/cyttsp4_core.c mode = &cd->sysinfo.xy_mode[CY_REG_BASE]; mode 1474 drivers/input/touchscreen/cyttsp4_core.c if (IS_BOOTLOADER(mode[0], mode[1])) { mode 1493 drivers/input/touchscreen/cyttsp4_core.c u8 mode[2]; mode 1511 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_read(cd, CY_REG_BASE, sizeof(mode), &mode); mode 1518 drivers/input/touchscreen/cyttsp4_core.c if (IS_BOOTLOADER(mode[0], mode[1])) { mode 1525 drivers/input/touchscreen/cyttsp4_core.c mode[0] |= CY_HST_SLEEP; mode 1526 drivers/input/touchscreen/cyttsp4_core.c rc = cyttsp4_adap_write(cd, CY_REG_BASE, sizeof(mode[0]), &mode[0]); mode 1761 drivers/input/touchscreen/cyttsp4_core.c u8 mode; mode 1786 drivers/input/touchscreen/cyttsp4_core.c cyttsp4_adap_read(cd, CY_REG_BASE, sizeof(mode), &mode); mode 2097 drivers/input/touchscreen/cyttsp4_core.c if (rc < 0 && cd->mode == CY_MODE_UNKNOWN) { mode 336 drivers/input/touchscreen/cyttsp4_core.h enum cyttsp4_mode mode; mode 153 drivers/input/touchscreen/cyttsp4_spi.c spi->mode = SPI_MODE_0; mode 145 drivers/input/touchscreen/cyttsp_spi.c spi->mode = SPI_MODE_0; mode 647 drivers/input/touchscreen/edt-ft5x06.c static int edt_ft5x06_debugfs_mode_get(void *data, u64 *mode) mode 651 drivers/input/touchscreen/edt-ft5x06.c *mode = tsdata->factory_mode; mode 656 drivers/input/touchscreen/edt-ft5x06.c static int edt_ft5x06_debugfs_mode_set(void *data, u64 mode) mode 661 drivers/input/touchscreen/edt-ft5x06.c if (mode > 1) mode 666 drivers/input/touchscreen/edt-ft5x06.c if (mode != tsdata->factory_mode) { mode 667 drivers/input/touchscreen/edt-ft5x06.c retval = mode ? edt_ft5x06_factory_mode(tsdata) : mode 30 drivers/input/touchscreen/fsl-imx25-tcq.c enum mx25_tcq_mode mode; mode 452 drivers/input/touchscreen/fsl-imx25-tcq.c priv->mode = MX25_TS_4WIRE; mode 861 drivers/input/touchscreen/hideep.c int mode; mode 864 drivers/input/touchscreen/hideep.c error = kstrtoint(buf, 0, &mode); mode 123 drivers/input/touchscreen/mc13783_ts.c unsigned int mode = MC13XXX_ADC_MODE_TS; mode 127 drivers/input/touchscreen/mc13783_ts.c mode, channel, mode 768 drivers/input/touchscreen/melfas_mip4.c static int mip4_bl_change_mode(struct mip4_ts *ts, u8 mode) mode 770 drivers/input/touchscreen/melfas_mip4.c u8 mode_chg_cmd[] = { MIP4_R0_BOOT, MIP4_R1_BOOT_MODE, mode }; mode 798 drivers/input/touchscreen/melfas_mip4.c mode, error, ret); mode 803 drivers/input/touchscreen/melfas_mip4.c "Sent mode change request (mode: %d)\n", mode); mode 818 drivers/input/touchscreen/melfas_mip4.c "Current device mode: %d, want: %d\n", result, mode); mode 820 drivers/input/touchscreen/melfas_mip4.c if (result == mode) mode 183 drivers/input/touchscreen/pixcir_i2c_ts.c enum pixcir_power_mode mode) mode 188 drivers/input/touchscreen/pixcir_i2c_ts.c if (mode == PIXCIR_POWER_ACTIVE || mode == PIXCIR_POWER_IDLE) { mode 201 drivers/input/touchscreen/pixcir_i2c_ts.c ret |= mode; mode 213 drivers/input/touchscreen/pixcir_i2c_ts.c if (mode == PIXCIR_POWER_HALT) { mode 227 drivers/input/touchscreen/pixcir_i2c_ts.c enum pixcir_int_mode mode, bool polarity) mode 240 drivers/input/touchscreen/pixcir_i2c_ts.c ret |= mode; mode 336 drivers/input/touchscreen/surface3_spi.c spi->mode = SPI_MODE_0; mode 53 drivers/input/touchscreen/tsc2005.c spi->mode = SPI_MODE_0; mode 343 drivers/input/touchscreen/tsc200x-core.c umode_t mode = attr->mode; mode 347 drivers/input/touchscreen/tsc200x-core.c mode = 0; mode 350 drivers/input/touchscreen/tsc200x-core.c return mode; mode 280 drivers/input/touchscreen/wm97xx-core.c void wm97xx_set_suspend_mode(struct wm97xx *wm, u16 mode) mode 282 drivers/input/touchscreen/wm97xx-core.c wm->suspend_mode = mode; mode 283 drivers/input/touchscreen/wm97xx-core.c device_init_wakeup(&wm->input_dev->dev, mode != 0); mode 1414 drivers/iommu/amd_iommu.c static struct page *free_sub_pt(unsigned long root, int mode, mode 1417 drivers/iommu/amd_iommu.c switch (mode) { mode 1451 drivers/iommu/amd_iommu.c BUG_ON(domain->mode < PAGE_MODE_NONE || mode 1452 drivers/iommu/amd_iommu.c domain->mode > PAGE_MODE_6_LEVEL); mode 1454 drivers/iommu/amd_iommu.c freelist = free_sub_pt(root, domain->mode, freelist); mode 1474 drivers/iommu/amd_iommu.c if (address <= PM_LEVEL_SIZE(domain->mode) || mode 1475 drivers/iommu/amd_iommu.c WARN_ON_ONCE(domain->mode == PAGE_MODE_6_LEVEL)) mode 1482 drivers/iommu/amd_iommu.c *pte = PM_LEVEL_PDE(domain->mode, mode 1485 drivers/iommu/amd_iommu.c domain->mode += 1; mode 1507 drivers/iommu/amd_iommu.c while (address > PM_LEVEL_SIZE(domain->mode)) mode 1510 drivers/iommu/amd_iommu.c level = domain->mode - 1; mode 1592 drivers/iommu/amd_iommu.c if (address > PM_LEVEL_SIZE(domain->mode)) mode 1595 drivers/iommu/amd_iommu.c level = domain->mode - 1; mode 1635 drivers/iommu/amd_iommu.c int mode; mode 1646 drivers/iommu/amd_iommu.c mode = IOMMU_PTE_MODE(pteval); mode 1648 drivers/iommu/amd_iommu.c return free_sub_pt(pt, mode, freelist); mode 1921 drivers/iommu/amd_iommu.c dma_dom->domain.mode = PAGE_MODE_3_LEVEL; mode 1959 drivers/iommu/amd_iommu.c if (domain->mode != PAGE_MODE_NONE) mode 1962 drivers/iommu/amd_iommu.c pte_root |= (domain->mode & DEV_ENTRY_MODE_MASK) mode 2965 drivers/iommu/amd_iommu.c pdomain->mode = PAGE_MODE_3_LEVEL; mode 2990 drivers/iommu/amd_iommu.c pdomain->mode = PAGE_MODE_NONE; mode 3021 drivers/iommu/amd_iommu.c if (domain->mode != PAGE_MODE_NONE) mode 3105 drivers/iommu/amd_iommu.c if (domain->mode == PAGE_MODE_NONE) mode 3129 drivers/iommu/amd_iommu.c if (domain->mode == PAGE_MODE_NONE) mode 3146 drivers/iommu/amd_iommu.c if (domain->mode == PAGE_MODE_NONE) mode 3326 drivers/iommu/amd_iommu.c domain->mode = PAGE_MODE_NONE; mode 3523 drivers/iommu/amd_iommu.c if (domain->mode != PAGE_MODE_NONE) mode 3539 drivers/iommu/amd_iommu.c if (domain->mode != PAGE_MODE_NONE) mode 2845 drivers/iommu/amd_iommu_init.c int amd_iommu_reenable(int mode) mode 473 drivers/iommu/amd_iommu_types.h int mode; /* paging mode (0-6 levels) */ mode 50 drivers/iommu/intel_irq_remapping.c enum irq_mode mode; mode 61 drivers/iommu/intel_irq_remapping.c #define IR_X2APIC_MODE(mode) (mode ? (1 << 11) : 0) mode 137 drivers/iommu/intel_irq_remapping.c irq_iommu->mode = IRQ_REMAPPING; mode 200 drivers/iommu/intel_irq_remapping.c irq_iommu->mode = irte->pst ? IRQ_POSTING : IRQ_REMAPPING; mode 474 drivers/iommu/intel_irq_remapping.c static void iommu_set_irq_remapping(struct intel_iommu *iommu, int mode) mode 485 drivers/iommu/intel_irq_remapping.c (addr) | IR_X2APIC_MODE(mode) | INTR_REMAP_TABLE_REG_SIZE); mode 1166 drivers/iommu/intel_irq_remapping.c if (force || ir_data->irq_2_iommu.mode == IRQ_REMAPPING) mode 137 drivers/iommu/irq_remapping.c int irq_remapping_reenable(int mode) mode 140 drivers/iommu/irq_remapping.c return remap_ops->reenable(mode); mode 85 drivers/irqchip/irq-ftintc010.c u32 mode, polarity; mode 87 drivers/irqchip/irq-ftintc010.c mode = readl(FT010_IRQ_MODE(f->base)); mode 92 drivers/irqchip/irq-ftintc010.c mode &= ~BIT(offset); mode 96 drivers/irqchip/irq-ftintc010.c mode &= ~BIT(offset); mode 100 drivers/irqchip/irq-ftintc010.c mode |= BIT(offset); mode 104 drivers/irqchip/irq-ftintc010.c mode |= BIT(offset); mode 112 drivers/irqchip/irq-ftintc010.c writel(mode, FT010_IRQ_MODE(f->base)); mode 471 drivers/irqchip/irq-gic.c u32 mode = 0; mode 475 drivers/irqchip/irq-gic.c mode = GIC_CPU_CTRL_EOImodeNS; mode 487 drivers/irqchip/irq-gic.c writel_relaxed(bypass | mode | GICC_ENABLE, cpu_base + GIC_CPU_CTRL); mode 99 drivers/isdn/hardware/mISDN/avmfritz.c u8 mode; mode 105 drivers/isdn/hardware/mISDN/avmfritz.c u8 mode; mode 340 drivers/isdn/hardware/mISDN/avmfritz.c u8 mode; mode 346 drivers/isdn/hardware/mISDN/avmfritz.c mode = (fc->type == AVM_FRITZ_PCIV2) ? HDLC_FIFO_SIZE_128 : 0; mode 356 drivers/isdn/hardware/mISDN/avmfritz.c hdlc->ctrl.sr.mode = mode | HDLC_MODE_TRANS; mode 365 drivers/isdn/hardware/mISDN/avmfritz.c hdlc->ctrl.sr.mode = mode | HDLC_MODE_TRANS; mode 375 drivers/isdn/hardware/mISDN/avmfritz.c hdlc->ctrl.sr.mode = mode | HDLC_MODE_ITF_FLG; mode 78 drivers/isdn/hardware/mISDN/mISDNinfineon.c enum addr_mode mode; mode 86 drivers/isdn/hardware/mISDN/mISDNinfineon.c enum addr_mode mode; mode 632 drivers/isdn/hardware/mISDN/mISDNinfineon.c if (hw->cfg.mode) { mode 638 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->cfg.mode = AM_NONE; mode 640 drivers/isdn/hardware/mISDN/mISDNinfineon.c if (hw->addr.mode) { mode 646 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->addr.mode = AM_NONE; mode 675 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->cfg.mode = hw->ci->cfg_mode; mode 705 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->addr.mode = hw->ci->addr_mode; mode 717 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->isac.mode = hw->cfg.mode; mode 720 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->hscx.mode = hw->cfg.mode; mode 727 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->isac.mode = hw->addr.mode; mode 729 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->hscx.mode = hw->addr.mode; mode 734 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->isac.mode = hw->addr.mode; mode 736 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->hscx.mode = hw->addr.mode; mode 743 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->isac.mode = hw->cfg.mode; mode 746 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->hscx.mode = hw->cfg.mode; mode 761 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->isac.mode = hw->addr.mode; mode 764 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->hscx.mode = hw->addr.mode; mode 768 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->isac.mode = hw->addr.mode; mode 771 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->hscx.mode = hw->addr.mode; mode 780 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->isac.mode = hw->addr.mode; mode 783 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->hscx.mode = hw->addr.mode; mode 790 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->isac.mode = hw->addr.mode; mode 793 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->hscx.mode = hw->addr.mode; mode 800 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->isac.mode = hw->addr.mode; mode 803 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->hscx.mode = hw->addr.mode; mode 810 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->isac.mode = hw->addr.mode; mode 813 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->hscx.mode = hw->addr.mode; mode 818 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->isac.mode = hw->addr.mode; mode 820 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->hscx.mode = hw->addr.mode; mode 826 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->isac.mode = hw->addr.mode; mode 829 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->hscx.mode = hw->addr.mode; mode 836 drivers/isdn/hardware/mISDN/mISDNinfineon.c switch (hw->isac.mode) { mode 143 drivers/leds/leds-as3645a.c enum as_mode mode; mode 234 drivers/leds/leds-as3645a.c as3645a_set_control(struct as3645a *flash, enum as_mode mode, bool on) mode 241 drivers/leds/leds-as3645a.c | mode; mode 243 drivers/leds/leds-as3645a.c if (mode == AS_MODE_FLASH && mode 107 drivers/leds/leds-bcm6328.c void __iomem *mode; mode 112 drivers/leds/leds-bcm6328.c mode = led->mem + BCM6328_REG_MODE_HI; mode 114 drivers/leds/leds-bcm6328.c mode = led->mem + BCM6328_REG_MODE_LO; mode 116 drivers/leds/leds-bcm6328.c val = bcm6328_led_read(mode); mode 119 drivers/leds/leds-bcm6328.c bcm6328_led_write(mode, val); mode 306 drivers/leds/leds-bcm6328.c void __iomem *mode; mode 311 drivers/leds/leds-bcm6328.c mode = mem + BCM6328_REG_MODE_HI; mode 313 drivers/leds/leds-bcm6328.c mode = mem + BCM6328_REG_MODE_LO; mode 315 drivers/leds/leds-bcm6328.c val = bcm6328_led_read(mode) >> mode 335 drivers/leds/leds-bd2802.c .attr = {.name = reg_name, .mode = 0644}, \ mode 465 drivers/leds/leds-bd2802.c .mode = 0644, mode 501 drivers/leds/leds-bd2802.c .mode = 0644, \ mode 85 drivers/leds/leds-ktd2692.c enum ktd2692_led_mode mode; mode 165 drivers/leds/leds-ktd2692.c led->mode = KTD2692_MODE_DISABLE; mode 170 drivers/leds/leds-ktd2692.c led->mode = KTD2692_MODE_MOVIE; mode 173 drivers/leds/leds-ktd2692.c ktd2692_expresswire_write(led, led->mode | KTD2692_REG_MODE_BASE); mode 193 drivers/leds/leds-ktd2692.c led->mode = KTD2692_MODE_FLASH; mode 196 drivers/leds/leds-ktd2692.c led->mode = KTD2692_MODE_DISABLE; mode 200 drivers/leds/leds-ktd2692.c ktd2692_expresswire_write(led, led->mode | KTD2692_REG_MODE_BASE); mode 203 drivers/leds/leds-ktd2692.c led->mode = KTD2692_MODE_DISABLE; mode 249 drivers/leds/leds-ktd2692.c led->mode = KTD2692_MODE_DISABLE; mode 85 drivers/leds/leds-lm3530.c const char *mode; mode 109 drivers/leds/leds-lm3530.c enum lm3530_mode mode; mode 149 drivers/leds/leds-lm3530.c if (sysfs_streq(str, mode_map[i].mode)) mode 241 drivers/leds/leds-lm3530.c switch (drvdata->mode) { mode 288 drivers/leds/leds-lm3530.c drvdata->mode == LM3530_BL_MODE_PWM) { mode 314 drivers/leds/leds-lm3530.c switch (drvdata->mode) { mode 358 drivers/leds/leds-lm3530.c if (drvdata->mode == mode_map[i].mode_val) mode 359 drivers/leds/leds-lm3530.c len += sprintf(buf + len, "[%s] ", mode_map[i].mode); mode 361 drivers/leds/leds-lm3530.c len += sprintf(buf + len, "%s ", mode_map[i].mode); mode 375 drivers/leds/leds-lm3530.c int mode, err; mode 380 drivers/leds/leds-lm3530.c mode = lm3530_get_mode_from_str(buf); mode 381 drivers/leds/leds-lm3530.c if (mode < 0) { mode 383 drivers/leds/leds-lm3530.c return mode; mode 386 drivers/leds/leds-lm3530.c drvdata->mode = mode; mode 389 drivers/leds/leds-lm3530.c if (mode != LM3530_BL_MODE_PWM && pwm->pwm_set_intensity) mode 398 drivers/leds/leds-lm3530.c return sizeof(drvdata->mode); mode 400 drivers/leds/leds-lm3530.c static DEVICE_ATTR(mode, 0644, lm3530_mode_get, lm3530_mode_set); mode 421 drivers/leds/leds-lm3530.c if (pdata->mode > LM3530_BL_MODE_PWM) { mode 436 drivers/leds/leds-lm3530.c drvdata->mode = pdata->mode; mode 138 drivers/leds/leds-lm3532.c int mode; mode 357 drivers/leds/leds-lm3532.c if (led->mode == LM3532_ALS_CTRL) { mode 412 drivers/leds/leds-lm3532.c brightness_config_val = led->ctrl_brt_pointer | led->mode; mode 597 drivers/leds/leds-lm3532.c &led->mode); mode 613 drivers/leds/leds-lm3532.c if (led->mode == LM3532_BL_MODE_ALS) { mode 614 drivers/leds/leds-lm3532.c led->mode = LM3532_ALS_CTRL; mode 621 drivers/leds/leds-lm3532.c led->mode = LM3532_I2C_CTRL; mode 614 drivers/leds/leds-lm3533.c umode_t mode = attr->mode; mode 619 drivers/leds/leds-lm3533.c mode = 0; mode 622 drivers/leds/leds-lm3533.c return mode; mode 87 drivers/leds/leds-lp5521.c #define LP5521_R_IS_LOADING(mode) \ mode 88 drivers/leds/leds-lp5521.c ((mode & LP5521_MODE_R_M) == LP5521_LOAD_R) mode 89 drivers/leds/leds-lp5521.c #define LP5521_G_IS_LOADING(mode) \ mode 90 drivers/leds/leds-lp5521.c ((mode & LP5521_MODE_G_M) == LP5521_LOAD_G) mode 91 drivers/leds/leds-lp5521.c #define LP5521_B_IS_LOADING(mode) \ mode 92 drivers/leds/leds-lp5521.c ((mode & LP5521_MODE_B_M) == LP5521_LOAD_B) mode 164 drivers/leds/leds-lp5521.c u8 mode; mode 180 drivers/leds/leds-lp5521.c ret = lp55xx_read(chip, LP5521_REG_OP_MODE, &mode); mode 189 drivers/leds/leds-lp5521.c if (LP5521_R_IS_LOADING(mode)) { mode 190 drivers/leds/leds-lp5521.c mode = (mode & ~LP5521_MODE_R_M) | LP5521_RUN_R; mode 194 drivers/leds/leds-lp5521.c if (LP5521_G_IS_LOADING(mode)) { mode 195 drivers/leds/leds-lp5521.c mode = (mode & ~LP5521_MODE_G_M) | LP5521_RUN_G; mode 199 drivers/leds/leds-lp5521.c if (LP5521_B_IS_LOADING(mode)) { mode 200 drivers/leds/leds-lp5521.c mode = (mode & ~LP5521_MODE_B_M) | LP5521_RUN_B; mode 204 drivers/leds/leds-lp5521.c lp55xx_write(chip, LP5521_REG_OP_MODE, mode); mode 371 drivers/leds/leds-lp5521.c enum lp55xx_engine_mode mode = chip->engines[nr - 1].mode; mode 373 drivers/leds/leds-lp5521.c switch (mode) { mode 401 drivers/leds/leds-lp5521.c engine->mode = LP55XX_ENGINE_RUN; mode 405 drivers/leds/leds-lp5521.c engine->mode = LP55XX_ENGINE_LOAD; mode 408 drivers/leds/leds-lp5521.c engine->mode = LP55XX_ENGINE_DISABLED; mode 89 drivers/leds/leds-lp5523.c #define LP5523_ENG1_IS_LOADING(mode) \ mode 90 drivers/leds/leds-lp5523.c ((mode & LP5523_MODE_ENG1_M) == LP5523_LOAD_ENG1) mode 91 drivers/leds/leds-lp5523.c #define LP5523_ENG2_IS_LOADING(mode) \ mode 92 drivers/leds/leds-lp5523.c ((mode & LP5523_MODE_ENG2_M) == LP5523_LOAD_ENG2) mode 93 drivers/leds/leds-lp5523.c #define LP5523_ENG3_IS_LOADING(mode) \ mode 94 drivers/leds/leds-lp5523.c ((mode & LP5523_MODE_ENG3_M) == LP5523_LOAD_ENG3) mode 220 drivers/leds/leds-lp5523.c u8 mode; mode 235 drivers/leds/leds-lp5523.c ret = lp55xx_read(chip, LP5523_REG_OP_MODE, &mode); mode 244 drivers/leds/leds-lp5523.c if (LP5523_ENG1_IS_LOADING(mode)) { mode 245 drivers/leds/leds-lp5523.c mode = (mode & ~LP5523_MODE_ENG1_M) | LP5523_RUN_ENG1; mode 249 drivers/leds/leds-lp5523.c if (LP5523_ENG2_IS_LOADING(mode)) { mode 250 drivers/leds/leds-lp5523.c mode = (mode & ~LP5523_MODE_ENG2_M) | LP5523_RUN_ENG2; mode 254 drivers/leds/leds-lp5523.c if (LP5523_ENG3_IS_LOADING(mode)) { mode 255 drivers/leds/leds-lp5523.c mode = (mode & ~LP5523_MODE_ENG3_M) | LP5523_RUN_ENG3; mode 259 drivers/leds/leds-lp5523.c lp55xx_write(chip, LP5523_REG_OP_MODE, mode); mode 394 drivers/leds/leds-lp5523.c enum lp55xx_engine_mode mode = chip->engines[nr - 1].mode; mode 396 drivers/leds/leds-lp5523.c switch (mode) { mode 424 drivers/leds/leds-lp5523.c engine->mode = LP55XX_ENGINE_RUN; mode 428 drivers/leds/leds-lp5523.c engine->mode = LP55XX_ENGINE_LOAD; mode 431 drivers/leds/leds-lp5523.c engine->mode = LP55XX_ENGINE_DISABLED; mode 539 drivers/leds/leds-lp5523.c if (engine->mode != LP55XX_ENGINE_LOAD) mode 50 drivers/leds/leds-lp5562.c #define LP5562_ENG1_IS_LOADING(mode) \ mode 51 drivers/leds/leds-lp5562.c ((mode & LP5562_MODE_ENG1_M) == LP5562_LOAD_ENG1) mode 52 drivers/leds/leds-lp5562.c #define LP5562_ENG2_IS_LOADING(mode) \ mode 53 drivers/leds/leds-lp5562.c ((mode & LP5562_MODE_ENG2_M) == LP5562_LOAD_ENG2) mode 54 drivers/leds/leds-lp5562.c #define LP5562_ENG3_IS_LOADING(mode) \ mode 55 drivers/leds/leds-lp5562.c ((mode & LP5562_MODE_ENG3_M) == LP5562_LOAD_ENG3) mode 156 drivers/leds/leds-lp5562.c u8 mode; mode 175 drivers/leds/leds-lp5562.c ret = lp55xx_read(chip, LP5562_REG_OP_MODE, &mode); mode 184 drivers/leds/leds-lp5562.c if (LP5562_ENG1_IS_LOADING(mode)) { mode 185 drivers/leds/leds-lp5562.c mode = (mode & ~LP5562_MODE_ENG1_M) | LP5562_RUN_ENG1; mode 189 drivers/leds/leds-lp5562.c if (LP5562_ENG2_IS_LOADING(mode)) { mode 190 drivers/leds/leds-lp5562.c mode = (mode & ~LP5562_MODE_ENG2_M) | LP5562_RUN_ENG2; mode 194 drivers/leds/leds-lp5562.c if (LP5562_ENG3_IS_LOADING(mode)) { mode 195 drivers/leds/leds-lp5562.c mode = (mode & ~LP5562_MODE_ENG3_M) | LP5562_RUN_ENG3; mode 199 drivers/leds/leds-lp5562.c lp55xx_write(chip, LP5562_REG_OP_MODE, mode); mode 356 drivers/leds/leds-lp5562.c static int lp5562_run_predef_led_pattern(struct lp55xx_chip *chip, int mode) mode 361 drivers/leds/leds-lp5562.c if (mode == LP5562_PATTERN_OFF) { mode 366 drivers/leds/leds-lp5562.c ptn = chip->pdata->patterns + (mode - 1); mode 413 drivers/leds/leds-lp5562.c unsigned long mode; mode 416 drivers/leds/leds-lp5562.c ret = kstrtoul(buf, 0, &mode); mode 420 drivers/leds/leds-lp5562.c if (mode > num_patterns || !ptn) mode 424 drivers/leds/leds-lp5562.c ret = lp5562_run_predef_led_pattern(chip, mode); mode 207 drivers/leds/leds-lp55xx-common.c chip->engines[idx - 1].mode = LP55XX_ENGINE_LOAD; mode 131 drivers/leds/leds-lp55xx-common.h enum lp55xx_engine_mode mode; mode 71 drivers/leds/leds-lp8501.c #define LP8501_ENG1_IS_LOADING(mode) \ mode 72 drivers/leds/leds-lp8501.c ((mode & LP8501_MODE_ENG1_M) == LP8501_LOAD_ENG1) mode 73 drivers/leds/leds-lp8501.c #define LP8501_ENG2_IS_LOADING(mode) \ mode 74 drivers/leds/leds-lp8501.c ((mode & LP8501_MODE_ENG2_M) == LP8501_LOAD_ENG2) mode 75 drivers/leds/leds-lp8501.c #define LP8501_ENG3_IS_LOADING(mode) \ mode 76 drivers/leds/leds-lp8501.c ((mode & LP8501_MODE_ENG3_M) == LP8501_LOAD_ENG3) mode 159 drivers/leds/leds-lp8501.c u8 mode; mode 174 drivers/leds/leds-lp8501.c ret = lp55xx_read(chip, LP8501_REG_OP_MODE, &mode); mode 183 drivers/leds/leds-lp8501.c if (LP8501_ENG1_IS_LOADING(mode)) { mode 184 drivers/leds/leds-lp8501.c mode = (mode & ~LP8501_MODE_ENG1_M) | LP8501_RUN_ENG1; mode 188 drivers/leds/leds-lp8501.c if (LP8501_ENG2_IS_LOADING(mode)) { mode 189 drivers/leds/leds-lp8501.c mode = (mode & ~LP8501_MODE_ENG2_M) | LP8501_RUN_ENG2; mode 193 drivers/leds/leds-lp8501.c if (LP8501_ENG3_IS_LOADING(mode)) { mode 194 drivers/leds/leds-lp8501.c mode = (mode & ~LP8501_MODE_ENG3_M) | LP8501_RUN_ENG3; mode 198 drivers/leds/leds-lp8501.c lp55xx_write(chip, LP8501_REG_OP_MODE, mode); mode 148 drivers/leds/leds-max77693.c static int max77693_set_mode_reg(struct max77693_led_device *led, u8 mode) mode 154 drivers/leds/leds-max77693.c if (mode & MODE_TORCH(i)) mode 157 drivers/leds/leds-max77693.c if (mode & MODE_FLASH(i)) { mode 159 drivers/leds/leds-max77693.c } else if (mode & MODE_FLASH_EXTERNAL(i)) { mode 171 drivers/leds/leds-max77693.c if (mode & ~(MODE_TORCH(FLED1) | MODE_TORCH(FLED2))) { mode 180 drivers/leds/leds-max77693.c static int max77693_add_mode(struct max77693_led_device *led, u8 mode) mode 187 drivers/leds/leds-max77693.c mode |= (mode << 1); mode 195 drivers/leds/leds-max77693.c if (mode & MODE_FLASH_EXTERNAL(i)) mode 198 drivers/leds/leds-max77693.c new_mode_flags = mode | led->mode_flags; mode 214 drivers/leds/leds-max77693.c if (mode & MODE_FLASH_MASK) mode 215 drivers/leds/leds-max77693.c led->mode_flags &= ~mode; mode 221 drivers/leds/leds-max77693.c u8 mode) mode 225 drivers/leds/leds-max77693.c mode |= (mode << 1); mode 227 drivers/leds/leds-max77693.c led->mode_flags &= ~mode; mode 233 drivers/leds/leds-max77693.c int fled_id, enum max77693_led_mode mode) mode 235 drivers/leds/leds-max77693.c if (mode == FLASH) mode 243 drivers/leds/leds-max77693.c int fled_id, enum max77693_led_mode mode, mode 248 drivers/leds/leds-max77693.c max77693_add_allowed_modes(led, fled_id, mode); mode 255 drivers/leds/leds-max77693.c if (mode == FLASH) mode 260 drivers/leds/leds-max77693.c max77693_add_allowed_modes(led, FLED1, mode); mode 263 drivers/leds/leds-max77693.c max77693_add_allowed_modes(led, FLED2, mode); mode 48 drivers/leds/leds-max8997.c enum max8997_led_mode mode) mode 54 drivers/leds/leds-max8997.c switch (mode) { mode 94 drivers/leds/leds-max8997.c led->led_mode = mode; mode 203 drivers/leds/leds-max8997.c enum max8997_led_mode mode; mode 208 drivers/leds/leds-max8997.c mode = MAX8997_FLASH_PIN_CONTROL_MODE; mode 210 drivers/leds/leds-max8997.c mode = MAX8997_MOVIE_PIN_CONTROL_MODE; mode 212 drivers/leds/leds-max8997.c mode = MAX8997_FLASH_MODE; mode 214 drivers/leds/leds-max8997.c mode = MAX8997_MOVIE_MODE; mode 216 drivers/leds/leds-max8997.c mode = MAX8997_NONE; mode 218 drivers/leds/leds-max8997.c max8997_led_set_mode(led, mode); mode 225 drivers/leds/leds-max8997.c static DEVICE_ATTR(mode, 0644, max8997_led_show_mode, max8997_led_store_mode); mode 262 drivers/leds/leds-max8997.c u8 mode = 0, brightness = 0; mode 264 drivers/leds/leds-max8997.c mode = pdata->led_pdata->mode[led->id]; mode 267 drivers/leds/leds-max8997.c max8997_led_set_mode(led, mode); mode 41 drivers/leds/leds-netxbig.c enum netxbig_led_mode mode; mode 149 drivers/leds/leds-netxbig.c enum netxbig_led_mode mode; mode 154 drivers/leds/leds-netxbig.c static int netxbig_led_get_timer_mode(enum netxbig_led_mode *mode, mode 165 drivers/leds/leds-netxbig.c *mode = timer[i].mode; mode 178 drivers/leds/leds-netxbig.c enum netxbig_led_mode mode; mode 183 drivers/leds/leds-netxbig.c ret = netxbig_led_get_timer_mode(&mode, *delay_on, *delay_off, mode 188 drivers/leds/leds-netxbig.c mode_val = led_dat->mode_val[mode]; mode 195 drivers/leds/leds-netxbig.c led_dat->mode = mode; mode 207 drivers/leds/leds-netxbig.c enum netxbig_led_mode mode; mode 215 drivers/leds/leds-netxbig.c mode = NETXBIG_LED_OFF; mode 219 drivers/leds/leds-netxbig.c mode = NETXBIG_LED_SATA; mode 220 drivers/leds/leds-netxbig.c else if (led_dat->mode == NETXBIG_LED_OFF) mode 221 drivers/leds/leds-netxbig.c mode = NETXBIG_LED_ON; mode 223 drivers/leds/leds-netxbig.c mode = led_dat->mode; mode 225 drivers/leds/leds-netxbig.c mode_val = led_dat->mode_val[mode]; mode 228 drivers/leds/leds-netxbig.c led_dat->mode = mode; mode 249 drivers/leds/leds-netxbig.c enum netxbig_led_mode mode; mode 266 drivers/leds/leds-netxbig.c if (led_dat->mode != NETXBIG_LED_ON && mode 267 drivers/leds/leds-netxbig.c led_dat->mode != NETXBIG_LED_SATA) mode 268 drivers/leds/leds-netxbig.c mode = led_dat->mode; /* Keep modes 'off' and 'timer'. */ mode 270 drivers/leds/leds-netxbig.c mode = NETXBIG_LED_SATA; mode 272 drivers/leds/leds-netxbig.c mode = NETXBIG_LED_ON; mode 274 drivers/leds/leds-netxbig.c mode_val = led_dat->mode_val[mode]; mode 281 drivers/leds/leds-netxbig.c led_dat->mode = mode; mode 455 drivers/leds/leds-netxbig.c &timers[i].mode); mode 456 drivers/leds/leds-netxbig.c if (timers[i].mode >= NETXBIG_LED_MODE_NUM) mode 525 drivers/leds/leds-netxbig.c int mode; mode 529 drivers/leds/leds-netxbig.c "mode-val", 2 * i, &mode); mode 532 drivers/leds/leds-netxbig.c if (mode >= NETXBIG_LED_MODE_NUM) { mode 536 drivers/leds/leds-netxbig.c mode_val[mode] = val; mode 42 drivers/leds/leds-ns2.c enum ns2_led_modes *mode) mode 55 drivers/leds/leds-ns2.c *mode = led_dat->modval[i].mode; mode 65 drivers/leds/leds-ns2.c enum ns2_led_modes mode) mode 72 drivers/leds/leds-ns2.c if (mode == led_dat->modval[i].mode) { mode 102 drivers/leds/leds-ns2.c enum ns2_led_modes mode; mode 105 drivers/leds/leds-ns2.c mode = NS_V2_LED_OFF; mode 107 drivers/leds/leds-ns2.c mode = NS_V2_LED_SATA; mode 109 drivers/leds/leds-ns2.c mode = NS_V2_LED_ON; mode 111 drivers/leds/leds-ns2.c ns2_led_set_mode(led_dat, mode); mode 177 drivers/leds/leds-ns2.c enum ns2_led_modes mode; mode 217 drivers/leds/leds-ns2.c ret = ns2_led_get_mode(led_dat, &mode); mode 222 drivers/leds/leds-ns2.c led_dat->sata = (mode == NS_V2_LED_SATA) ? 1 : 0; mode 224 drivers/leds/leds-ns2.c (mode == NS_V2_LED_OFF) ? LED_OFF : LED_FULL; mode 301 drivers/leds/leds-ns2.c (u32 *) &modval[i].mode); mode 72 drivers/leds/leds-tlc591xx.c tlc591xx_set_mode(struct regmap *regmap, u8 mode) mode 81 drivers/leds/leds-tlc591xx.c val = MODE2_OCH_STOP | mode; mode 52 drivers/leds/trigger/ledtrig-netdev.c unsigned long mode; mode 76 drivers/leds/trigger/ledtrig-netdev.c if (!test_bit(NETDEV_LED_MODE_LINKUP, &trigger_data->mode)) mode 79 drivers/leds/trigger/ledtrig-netdev.c if (test_bit(NETDEV_LED_LINK, &trigger_data->mode)) mode 88 drivers/leds/trigger/ledtrig-netdev.c if (test_bit(NETDEV_LED_TX, &trigger_data->mode) || mode 89 drivers/leds/trigger/ledtrig-netdev.c test_bit(NETDEV_LED_RX, &trigger_data->mode)) mode 134 drivers/leds/trigger/ledtrig-netdev.c clear_bit(NETDEV_LED_MODE_LINKUP, &trigger_data->mode); mode 137 drivers/leds/trigger/ledtrig-netdev.c set_bit(NETDEV_LED_MODE_LINKUP, &trigger_data->mode); mode 169 drivers/leds/trigger/ledtrig-netdev.c return sprintf(buf, "%u\n", test_bit(bit, &trigger_data->mode)); mode 201 drivers/leds/trigger/ledtrig-netdev.c set_bit(bit, &trigger_data->mode); mode 203 drivers/leds/trigger/ledtrig-netdev.c clear_bit(bit, &trigger_data->mode); mode 318 drivers/leds/trigger/ledtrig-netdev.c clear_bit(NETDEV_LED_MODE_LINKUP, &trigger_data->mode); mode 334 drivers/leds/trigger/ledtrig-netdev.c set_bit(NETDEV_LED_MODE_LINKUP, &trigger_data->mode); mode 363 drivers/leds/trigger/ledtrig-netdev.c if (!test_bit(NETDEV_LED_TX, &trigger_data->mode) && mode 364 drivers/leds/trigger/ledtrig-netdev.c !test_bit(NETDEV_LED_RX, &trigger_data->mode)) mode 369 drivers/leds/trigger/ledtrig-netdev.c (test_bit(NETDEV_LED_TX, &trigger_data->mode) ? mode 371 drivers/leds/trigger/ledtrig-netdev.c (test_bit(NETDEV_LED_RX, &trigger_data->mode) ? mode 377 drivers/leds/trigger/ledtrig-netdev.c invert = test_bit(NETDEV_LED_LINK, &trigger_data->mode); mode 412 drivers/leds/trigger/ledtrig-netdev.c trigger_data->mode = 0; mode 338 drivers/leds/trigger/ledtrig-pattern.c return attr->mode; mode 340 drivers/leds/trigger/ledtrig-pattern.c return attr->mode; mode 551 drivers/lightnvm/pblk-sysfs.c .mode = 0444, mode 556 drivers/lightnvm/pblk-sysfs.c .mode = 0444, mode 561 drivers/lightnvm/pblk-sysfs.c .mode = 0444, mode 566 drivers/lightnvm/pblk-sysfs.c .mode = 0444, mode 571 drivers/lightnvm/pblk-sysfs.c .mode = 0444, mode 576 drivers/lightnvm/pblk-sysfs.c .mode = 0444, mode 581 drivers/lightnvm/pblk-sysfs.c .mode = 0444, mode 586 drivers/lightnvm/pblk-sysfs.c .mode = 0444, mode 591 drivers/lightnvm/pblk-sysfs.c .mode = 0200, mode 596 drivers/lightnvm/pblk-sysfs.c .mode = 0644, mode 601 drivers/lightnvm/pblk-sysfs.c .mode = 0444, mode 606 drivers/lightnvm/pblk-sysfs.c .mode = 0644, mode 611 drivers/lightnvm/pblk-sysfs.c .mode = 0644, mode 617 drivers/lightnvm/pblk-sysfs.c .mode = 0444, mode 223 drivers/macintosh/mac_hid.c .mode = 0644, mode 230 drivers/macintosh/mac_hid.c .mode = 0644, mode 237 drivers/macintosh/mac_hid.c .mode = 0644, mode 248 drivers/macintosh/mac_hid.c .mode = 0555, mode 259 drivers/macintosh/mac_hid.c .mode = 0555, mode 1074 drivers/macintosh/smu.c enum smu_file_mode mode; mode 1092 drivers/macintosh/smu.c pp->mode = smu_file_commands; mode 1127 drivers/macintosh/smu.c pp->mode = smu_file_events; mode 1139 drivers/macintosh/smu.c else if (pp->mode != smu_file_commands) mode 1242 drivers/macintosh/smu.c if (pp->mode == smu_file_commands) mode 1244 drivers/macintosh/smu.c if (pp->mode == smu_file_events) mode 1259 drivers/macintosh/smu.c if (pp->mode == smu_file_commands) { mode 1267 drivers/macintosh/smu.c if (pp->mode == smu_file_events) { mode 1286 drivers/macintosh/smu.c pp->mode = smu_file_closing; mode 227 drivers/macintosh/windfarm_core.c new_ct->attr.attr.mode = 0644; mode 322 drivers/macintosh/windfarm_core.c new_sr->attr.attr.mode = 0444; mode 102 drivers/mailbox/hi6220-mailbox.c u32 mode; mode 104 drivers/mailbox/hi6220-mailbox.c mode = readl(mbox->base + MBOX_MODE_REG(slot)); mode 105 drivers/mailbox/hi6220-mailbox.c mode = (mode & ~MBOX_ACK_CONFIG_MASK) | val; mode 106 drivers/mailbox/hi6220-mailbox.c writel(mode, mbox->base + MBOX_MODE_REG(slot)); mode 278 drivers/md/bcache/bcache.h int (*ioctl)(struct bcache_device *d, fmode_t mode, mode 378 drivers/md/bcache/request.c unsigned int mode = cache_mode(dc); mode 388 drivers/md/bcache/request.c if (mode == CACHE_MODE_NONE || mode 389 drivers/md/bcache/request.c (mode == CACHE_MODE_WRITEAROUND && mode 1241 drivers/md/bcache/request.c static int cached_dev_ioctl(struct bcache_device *d, fmode_t mode, mode 1249 drivers/md/bcache/request.c return __blkdev_driver_ioctl(dc->bdev, mode, cmd, arg); mode 1364 drivers/md/bcache/request.c static int flash_dev_ioctl(struct bcache_device *d, fmode_t mode, mode 648 drivers/md/bcache/super.c static int open_dev(struct block_device *b, fmode_t mode) mode 659 drivers/md/bcache/super.c static void release_dev(struct gendisk *b, fmode_t mode) mode 666 drivers/md/bcache/super.c static int ioctl_dev(struct block_device *b, fmode_t mode, mode 671 drivers/md/bcache/super.c return d->ioctl(d, mode, cmd, arg); mode 45 drivers/md/bcache/sysfs.h { .name = #_name, .mode = _mode } mode 353 drivers/md/dm-cache-target.c enum cache_metadata_mode mode; mode 945 drivers/md/dm-cache-target.c return cache->features.mode; mode 953 drivers/md/dm-cache-target.c static void notify_mode_switch(struct cache *cache, enum cache_metadata_mode mode) mode 963 drivers/md/dm-cache-target.c cache_device_name(cache), descs[(int)mode]); mode 1001 drivers/md/dm-cache-target.c cache->features.mode = new_mode; mode 2214 drivers/md/dm-cache-target.c cf->mode = CM_WRITE; mode 2471 drivers/md/dm-cache-target.c bool may_format = ca->features.mode == CM_WRITE; mode 143 drivers/md/dm-clone-target.c enum clone_metadata_mode mode; mode 161 drivers/md/dm-clone-target.c return READ_ONCE(clone->mode); mode 194 drivers/md/dm-clone-target.c WRITE_ONCE(clone->mode, new_mode); mode 203 drivers/md/dm-integrity.c unsigned char mode; mode 466 drivers/md/dm-integrity.c if (ic->mode == 'B' || ic->sb->flags & cpu_to_le32(SB_FLAG_DIRTY_BITMAP)) mode 501 drivers/md/dm-integrity.c sector_t sector, sector_t n_sectors, int mode) mode 512 drivers/md/dm-integrity.c mode); mode 538 drivers/md/dm-integrity.c if (mode == BITMAP_OP_TEST_ALL_SET) { mode 552 drivers/md/dm-integrity.c } else if (mode == BITMAP_OP_TEST_ALL_CLEAR) { mode 566 drivers/md/dm-integrity.c } else if (mode == BITMAP_OP_SET) { mode 578 drivers/md/dm-integrity.c } else if (mode == BITMAP_OP_CLEAR) { mode 1521 drivers/md/dm-integrity.c if (unlikely(ic->mode == 'R')) mode 1685 drivers/md/dm-integrity.c if (unlikely(ic->mode == 'R') && unlikely(dio->write)) mode 1872 drivers/md/dm-integrity.c if (likely(ic->mode == 'J')) { mode 1976 drivers/md/dm-integrity.c if (ic->mode == 'B' && dio->write) { mode 2012 drivers/md/dm-integrity.c if (ic->mode == 'B') { mode 2078 drivers/md/dm-integrity.c if (unlikely(ic->mode != 'J')) { mode 2367 drivers/md/dm-integrity.c if (ic->mode == 'B') { mode 2384 drivers/md/dm-integrity.c if (ic->mode == 'B') { mode 2406 drivers/md/dm-integrity.c if (ic->mode == 'B') { mode 2606 drivers/md/dm-integrity.c if (ic->mode == 'R') mode 2715 drivers/md/dm-integrity.c if (write_sections == ic->journal_sections && (ic->mode == 'J' || journal_empty)) { mode 2760 drivers/md/dm-integrity.c if (ic->mode == 'B') { mode 2793 drivers/md/dm-integrity.c if (ic->mode == 'B') mode 2799 drivers/md/dm-integrity.c if (ic->mode == 'J') { mode 2806 drivers/md/dm-integrity.c if (ic->mode == 'B') { mode 2833 drivers/md/dm-integrity.c if (ic->mode == 'B') { mode 2869 drivers/md/dm-integrity.c if (ic->mode == 'B') { mode 2942 drivers/md/dm-integrity.c arg_count += ic->mode == 'J'; mode 2943 drivers/md/dm-integrity.c arg_count += ic->mode == 'J'; mode 2944 drivers/md/dm-integrity.c arg_count += ic->mode == 'B'; mode 2945 drivers/md/dm-integrity.c arg_count += ic->mode == 'B'; mode 2950 drivers/md/dm-integrity.c ic->tag_size, ic->mode, arg_count); mode 2960 drivers/md/dm-integrity.c if (ic->mode == 'J') { mode 2964 drivers/md/dm-integrity.c if (ic->mode == 'B') { mode 3635 drivers/md/dm-integrity.c ic->mode = argv[3][0]; mode 3770 drivers/md/dm-integrity.c if (ic->mode == 'B' && !ic->internal_hash) { mode 3829 drivers/md/dm-integrity.c if (ic->mode == 'J' || ic->mode == 'B') { mode 3853 drivers/md/dm-integrity.c if (ic->mode != 'R') { mode 3866 drivers/md/dm-integrity.c if (ic->mode != 'R') mode 4022 drivers/md/dm-integrity.c if (ic->mode != 'R') { mode 4029 drivers/md/dm-integrity.c if (ic->mode == 'B') { mode 4089 drivers/md/dm-integrity.c if (ic->mode == 'B') { mode 1262 drivers/md/dm-ioctl.c fmode_t mode = FMODE_READ | FMODE_WRITE; mode 1265 drivers/md/dm-ioctl.c mode = FMODE_READ; mode 1267 drivers/md/dm-ioctl.c return mode; mode 248 drivers/md/dm-raid.c int mode; mode 357 drivers/md/dm-raid.c const int mode; mode 365 drivers/md/dm-raid.c static int dm_raid_journal_mode_to_md(const char *mode) mode 370 drivers/md/dm-raid.c if (!strcasecmp(mode, _raid456_journal_mode[m].param)) mode 371 drivers/md/dm-raid.c return _raid456_journal_mode[m].mode; mode 377 drivers/md/dm-raid.c static const char *md_journal_mode_to_dm_raid(const int mode) mode 382 drivers/md/dm-raid.c if (mode == _raid456_journal_mode[m].mode) mode 1266 drivers/md/dm-raid.c rs->journal_dev.mode = R5C_JOURNAL_MODE_WRITE_THROUGH; mode 1288 drivers/md/dm-raid.c rs->journal_dev.mode = r; mode 3249 drivers/md/dm-raid.c r = r5c_journal_mode_set(&rs->md, rs->journal_dev.mode); mode 3398 drivers/md/dm-raid.c return (rs->journal_dev.mode == R5C_JOURNAL_MODE_WRITE_THROUGH) ? "A" : "a"; mode 3661 drivers/md/dm-raid.c md_journal_mode_to_dm_raid(rs->journal_dev.mode)); mode 57 drivers/md/dm-table.c fmode_t mode; mode 184 drivers/md/dm-table.c int dm_table_create(struct dm_table **result, fmode_t mode, mode 211 drivers/md/dm-table.c t->mode = mode; mode 392 drivers/md/dm-table.c dd->dm_dev->mode | new_mode, &new_dev); mode 426 drivers/md/dm-table.c int dm_get_device(struct dm_target *ti, const char *path, fmode_t mode, mode 446 drivers/md/dm-table.c if ((r = dm_get_table_device(t->md, dev, mode, &dd->dm_dev))) { mode 455 drivers/md/dm-table.c } else if (dd->dm_dev->mode != (mode | dd->dm_dev->mode)) { mode 456 drivers/md/dm-table.c r = upgrade_mode(dd, mode, t->md); mode 745 drivers/md/dm-table.c if (dm_target_always_writeable(tgt->type) && !(t->mode & FMODE_WRITE)) { mode 1991 drivers/md/dm-table.c return t->mode; mode 2001 drivers/md/dm-table.c static void suspend_targets(struct dm_table *t, enum suspend_mode mode) mode 2009 drivers/md/dm-table.c switch (mode) { mode 214 drivers/md/dm-thin.c enum pool_mode mode; mode 291 drivers/md/dm-thin.c return pool->pf.mode; mode 304 drivers/md/dm-thin.c enum pool_mode mode = get_pool_mode(pool); mode 306 drivers/md/dm-thin.c if (mode == PM_OUT_OF_DATA_SPACE) { mode 316 drivers/md/dm-thin.c descs[(int)mode], extra_desc ? : ""); mode 1445 drivers/md/dm-thin.c static bool is_read_only_pool_mode(enum pool_mode mode) mode 1447 drivers/md/dm-thin.c return (mode == PM_OUT_OF_METADATA_SPACE || mode == PM_READ_ONLY); mode 2623 drivers/md/dm-thin.c pool->pf.mode = new_mode; mode 2628 drivers/md/dm-thin.c pt->adjusted_pf.mode = new_mode; mode 2886 drivers/md/dm-thin.c enum pool_mode new_mode = pt->adjusted_pf.mode; mode 2893 drivers/md/dm-thin.c pt->adjusted_pf.mode = old_mode; mode 2916 drivers/md/dm-thin.c pf->mode = PM_WRITE; mode 3188 drivers/md/dm-thin.c pf->mode = PM_READ_ONLY; mode 3344 drivers/md/dm-thin.c metadata_mode = FMODE_READ | ((pf.mode == PM_READ_ONLY) ? 0 : FMODE_WRITE); mode 3380 drivers/md/dm-thin.c block_size, pf.mode == PM_READ_ONLY, &ti->error, &pool_created); mode 3901 drivers/md/dm-thin.c !pf->discard_passdown + (pf->mode == PM_READ_ONLY) + mode 3914 drivers/md/dm-thin.c if (pf->mode == PM_READ_ONLY) mode 3938 drivers/md/dm-thin.c enum pool_mode mode; mode 4009 drivers/md/dm-thin.c mode = get_pool_mode(pool); mode 4010 drivers/md/dm-thin.c if (mode == PM_OUT_OF_DATA_SPACE) mode 4012 drivers/md/dm-thin.c else if (is_read_only_pool_mode(mode)) mode 251 drivers/md/dm-verity-target.c if (v->mode == DM_VERITY_MODE_LOGGING) mode 254 drivers/md/dm-verity-target.c if (v->mode == DM_VERITY_MODE_RESTART) mode 709 drivers/md/dm-verity-target.c if (v->mode != DM_VERITY_MODE_EIO) mode 722 drivers/md/dm-verity-target.c if (v->mode != DM_VERITY_MODE_EIO) { mode 724 drivers/md/dm-verity-target.c switch (v->mode) { mode 889 drivers/md/dm-verity-target.c v->mode = DM_VERITY_MODE_LOGGING; mode 893 drivers/md/dm-verity-target.c v->mode = DM_VERITY_MODE_RESTART; mode 56 drivers/md/dm-verity.h enum verity_mode mode; /* mode for handling verification errors */ mode 329 drivers/md/dm.c static int dm_blk_open(struct block_device *bdev, fmode_t mode) mode 353 drivers/md/dm.c static void dm_blk_close(struct gendisk *disk, fmode_t mode) mode 533 drivers/md/dm.c static int dm_blk_ioctl(struct block_device *bdev, fmode_t mode, mode 557 drivers/md/dm.c r = __blkdev_driver_ioctl(bdev, mode, cmd, arg); mode 751 drivers/md/dm.c bdev = blkdev_get_by_dev(dev, td->dm_dev.mode | FMODE_EXCL, _dm_claim_ptr); mode 757 drivers/md/dm.c blkdev_put(bdev, td->dm_dev.mode | FMODE_EXCL); mode 775 drivers/md/dm.c blkdev_put(td->dm_dev.bdev, td->dm_dev.mode | FMODE_EXCL); mode 782 drivers/md/dm.c fmode_t mode) mode 787 drivers/md/dm.c if (td->dm_dev.bdev->bd_dev == dev && td->dm_dev.mode == mode) mode 793 drivers/md/dm.c int dm_get_table_device(struct mapped_device *md, dev_t dev, fmode_t mode, mode 800 drivers/md/dm.c td = find_table_device(&md->table_devices, dev, mode); mode 808 drivers/md/dm.c td->dm_dev.mode = mode; mode 185 drivers/md/dm.h int dm_get_table_device(struct mapped_device *md, dev_t dev, fmode_t mode, mode 26 drivers/md/md-cluster.c void (*bast)(void *arg, int mode); /* blocking AST function pointer*/ mode 28 drivers/md/md-cluster.c int mode; mode 124 drivers/md/md-cluster.c static int dlm_lock_sync(struct dlm_lock_resource *res, int mode) mode 128 drivers/md/md-cluster.c ret = dlm_lock(res->ls, mode, &res->lksb, mode 136 drivers/md/md-cluster.c res->mode = mode; mode 149 drivers/md/md-cluster.c static int dlm_lock_sync_interruptible(struct dlm_lock_resource *res, int mode, mode 154 drivers/md/md-cluster.c ret = dlm_lock(res->ls, mode, &res->lksb, mode 179 drivers/md/md-cluster.c res->mode = mode; mode 184 drivers/md/md-cluster.c char *name, void (*bastfn)(void *arg, int mode), int with_lvb) mode 197 drivers/md/md-cluster.c res->mode = DLM_LOCK_IV; mode 419 drivers/md/md-cluster.c static void ack_bast(void *arg, int mode) mode 424 drivers/md/md-cluster.c if (mode == DLM_LOCK_EX) { mode 712 drivers/md/md-cluster.c WARN_ON(cinfo->token_lockres->mode != DLM_LOCK_EX); mode 1059 drivers/md/md-cluster.c if (cinfo->token_lockres->mode == DLM_LOCK_EX) { mode 85 drivers/md/md-faulty.c static int check_mode(struct faulty_conf *conf, int mode) mode 87 drivers/md/md-faulty.c if (conf->period[mode] == 0 && mode 88 drivers/md/md-faulty.c atomic_read(&conf->counters[mode]) <= 0) mode 92 drivers/md/md-faulty.c if (atomic_dec_and_test(&conf->counters[mode])) { mode 93 drivers/md/md-faulty.c if (conf->period[mode]) mode 94 drivers/md/md-faulty.c atomic_set(&conf->counters[mode], conf->period[mode]); mode 124 drivers/md/md-faulty.c static void add_sector(struct faulty_conf *conf, sector_t start, int mode) mode 130 drivers/md/md-faulty.c switch(mode) { mode 131 drivers/md/md-faulty.c case NoPersist: conf->modes[i] = mode; return; mode 159 drivers/md/md-faulty.c conf->modes[n] = mode; mode 256 drivers/md/md-faulty.c int mode = mddev->new_layout & ModeMask; mode 264 drivers/md/md-faulty.c if (mode == ClearFaults) mode 266 drivers/md/md-faulty.c else if (mode == ClearErrors) { mode 272 drivers/md/md-faulty.c } else if (mode < Modes) { mode 273 drivers/md/md-faulty.c conf->period[mode] = count; mode 275 drivers/md/md-faulty.c atomic_set(&conf->counters[mode], count); mode 206 drivers/md/md.c .mode = S_IRUGO|S_IWUSR, mode 213 drivers/md/md.c .mode = S_IRUGO|S_IWUSR, mode 223 drivers/md/md.c .mode = S_IRUGO|S_IXUGO, mode 233 drivers/md/md.c .mode = 0555, mode 6144 drivers/md/md.c static int do_md_stop(struct mddev *mddev, int mode, mode 6210 drivers/md/md.c if (mode == 0) { mode 7276 drivers/md/md.c static int md_ioctl(struct block_device *bdev, fmode_t mode, mode 7573 drivers/md/md.c static int md_compat_ioctl(struct block_device *bdev, fmode_t mode, mode 7588 drivers/md/md.c return md_ioctl(bdev, mode, cmd, arg); mode 7592 drivers/md/md.c static int md_open(struct block_device *bdev, fmode_t mode) mode 7636 drivers/md/md.c static void md_release(struct gendisk *disk, fmode_t mode) mode 2571 drivers/md/raid5-cache.c int r5c_journal_mode_set(struct mddev *mddev, int mode) mode 2575 drivers/md/raid5-cache.c if (mode < R5C_JOURNAL_MODE_WRITE_THROUGH || mode 2576 drivers/md/raid5-cache.c mode > R5C_JOURNAL_MODE_WRITE_BACK) mode 2584 drivers/md/raid5-cache.c mode == R5C_JOURNAL_MODE_WRITE_BACK) mode 2588 drivers/md/raid5-cache.c conf->log->r5c_journal_mode = mode; mode 2592 drivers/md/raid5-cache.c mdname(mddev), mode, r5c_journal_mode_str[mode]); mode 2600 drivers/md/raid5-cache.c int mode = ARRAY_SIZE(r5c_journal_mode_str); mode 2610 drivers/md/raid5-cache.c while (mode--) mode 2611 drivers/md/raid5-cache.c if (strlen(r5c_journal_mode_str[mode]) == len && mode 2612 drivers/md/raid5-cache.c !strncmp(page, r5c_journal_mode_str[mode], len)) mode 2617 drivers/md/raid5-cache.c ret = r5c_journal_mode_set(mddev, mode); mode 340 drivers/media/cec/cec-api.c u32 mode = fh->mode_initiator | fh->mode_follower; mode 342 drivers/media/cec/cec-api.c if (copy_to_user(parg, &mode, sizeof(mode))) mode 350 drivers/media/cec/cec-api.c u32 mode; mode 356 drivers/media/cec/cec-api.c if (copy_from_user(&mode, parg, sizeof(mode))) mode 358 drivers/media/cec/cec-api.c if (mode & ~(CEC_MODE_INITIATOR_MSK | CEC_MODE_FOLLOWER_MSK)) { mode 363 drivers/media/cec/cec-api.c mode_initiator = mode & CEC_MODE_INITIATOR_MSK; mode 364 drivers/media/cec/cec-api.c mode_follower = mode & CEC_MODE_FOLLOWER_MSK; mode 85 drivers/media/cec/cec-pin-error-inj.c u8 mode; mode 160 drivers/media/cec/cec-pin-error-inj.c mode = CEC_ERROR_INJ_MODE_ONCE; mode 163 drivers/media/cec/cec-pin-error-inj.c mode = CEC_ERROR_INJ_MODE_OFF; mode 165 drivers/media/cec/cec-pin-error-inj.c mode = CEC_ERROR_INJ_MODE_ONCE; mode 167 drivers/media/cec/cec-pin-error-inj.c mode = CEC_ERROR_INJ_MODE_ALWAYS; mode 169 drivers/media/cec/cec-pin-error-inj.c mode = CEC_ERROR_INJ_MODE_TOGGLE; mode 232 drivers/media/cec/cec-pin-error-inj.c *error |= (u64)mode << mode_offset; mode 240 drivers/media/cec/cec-pin-error-inj.c static void cec_pin_show_cmd(struct seq_file *sf, u32 cmd, u8 mode) mode 246 drivers/media/cec/cec-pin-error-inj.c switch (mode) { mode 316 drivers/media/cec/cec-pin-error-inj.c unsigned int mode; mode 322 drivers/media/cec/cec-pin-error-inj.c mode = (e >> mode_offset) & CEC_ERROR_INJ_MODE_MASK; mode 323 drivers/media/cec/cec-pin-error-inj.c if (!mode) mode 325 drivers/media/cec/cec-pin-error-inj.c cec_pin_show_cmd(sf, i, mode); mode 162 drivers/media/cec/cec-pin.c unsigned int mode = (e >> mode_offset) & CEC_ERROR_INJ_MODE_MASK; mode 173 drivers/media/cec/cec-pin.c switch (mode) { mode 224 drivers/media/cec/cec-pin.c unsigned int mode = (e >> mode_offset) & CEC_ERROR_INJ_MODE_MASK; mode 235 drivers/media/cec/cec-pin.c switch (mode) { mode 411 drivers/media/common/siano/smscoreapi.c int mode; mode 444 drivers/media/common/siano/smscoreapi.c entry->mode = default_mode; mode 459 drivers/media/common/siano/smscoreapi.c return entry->mode; mode 480 drivers/media/common/siano/smscoreapi.c static void smscore_registry_setmode(char *devpath, int mode) mode 486 drivers/media/common/siano/smscoreapi.c entry->mode = mode; mode 718 drivers/media/common/siano/smscoreapi.c dev->mode = DEVICE_MODE_NONE; mode 876 drivers/media/common/siano/smscoreapi.c int mode = smscore_registry_getmode(coredev->devpath); mode 879 drivers/media/common/siano/smscoreapi.c if (board_id != SMS_BOARD_UNKNOWN && mode == DEVICE_MODE_NONE) mode 880 drivers/media/common/siano/smscoreapi.c mode = sms_get_board(board_id)->default_mode; mode 882 drivers/media/common/siano/smscoreapi.c rc = smscore_set_device_mode(coredev, mode); mode 934 drivers/media/common/siano/smscoreapi.c if (coredev->mode != DEVICE_MODE_NONE) { mode 991 drivers/media/common/siano/smscoreapi.c if (coredev->mode == DEVICE_MODE_NONE) { mode 1102 drivers/media/common/siano/smscoreapi.c int mode) mode 1113 drivers/media/common/siano/smscoreapi.c if (mode <= DEVICE_MODE_NONE || mode >= DEVICE_MODE_MAX) mode 1117 drivers/media/common/siano/smscoreapi.c board_id, mode); mode 1119 drivers/media/common/siano/smscoreapi.c if (!fw || !fw[mode]) { mode 1121 drivers/media/common/siano/smscoreapi.c mode, type); mode 1122 drivers/media/common/siano/smscoreapi.c return smscore_fw_lkup[type][mode]; mode 1125 drivers/media/common/siano/smscoreapi.c return fw[mode]; mode 1139 drivers/media/common/siano/smscoreapi.c int mode, mode 1147 drivers/media/common/siano/smscoreapi.c char *fw_filename = smscore_get_fw_filename(coredev, mode); mode 1149 drivers/media/common/siano/smscoreapi.c pr_err("mode %d not supported on this device\n", mode); mode 1299 drivers/media/common/siano/smscoreapi.c static int smscore_init_device(struct smscore_device_t *coredev, int mode) mode 1313 drivers/media/common/siano/smscoreapi.c msg->msg_data[0] = mode; mode 1333 drivers/media/common/siano/smscoreapi.c int smscore_set_device_mode(struct smscore_device_t *coredev, int mode) mode 1337 drivers/media/common/siano/smscoreapi.c pr_debug("set device mode to %d\n", mode); mode 1339 drivers/media/common/siano/smscoreapi.c if (mode <= DEVICE_MODE_NONE || mode >= DEVICE_MODE_MAX) { mode 1340 drivers/media/common/siano/smscoreapi.c pr_err("invalid mode specified %d\n", mode); mode 1344 drivers/media/common/siano/smscoreapi.c smscore_registry_setmode(coredev->devpath, mode); mode 1354 drivers/media/common/siano/smscoreapi.c if (coredev->mode == mode) { mode 1355 drivers/media/common/siano/smscoreapi.c pr_debug("device mode %d already set\n", mode); mode 1359 drivers/media/common/siano/smscoreapi.c if (!(coredev->modes_supported & (1 << mode))) { mode 1361 drivers/media/common/siano/smscoreapi.c mode, NULL); mode 1366 drivers/media/common/siano/smscoreapi.c mode); mode 1369 drivers/media/common/siano/smscoreapi.c rc = smscore_init_device(coredev, mode); mode 1374 drivers/media/common/siano/smscoreapi.c if (mode <= DEVICE_MODE_NONE || mode >= DEVICE_MODE_MAX) { mode 1375 drivers/media/common/siano/smscoreapi.c pr_err("invalid mode specified %d\n", mode); mode 1379 drivers/media/common/siano/smscoreapi.c smscore_registry_setmode(coredev->devpath, mode); mode 1383 drivers/media/common/siano/smscoreapi.c &coredev->mode); mode 1385 drivers/media/common/siano/smscoreapi.c if (coredev->mode != mode && coredev->setmode_handler) mode 1386 drivers/media/common/siano/smscoreapi.c rc = coredev->setmode_handler(coredev->context, mode); mode 1391 drivers/media/common/siano/smscoreapi.c coredev->mode = mode; mode 1401 drivers/media/common/siano/smscoreapi.c msg->msg_data[0] = mode; mode 1429 drivers/media/common/siano/smscoreapi.c return coredev->mode; mode 1505 drivers/media/common/siano/smscoreapi.c if (coredev->mode == DEVICE_MODE_DVBT_BDA) mode 1541 drivers/media/common/siano/smscoreapi.c coredev->mode = ver->firmware_id == 255 ? mode 102 drivers/media/common/siano/smscoreapi.h typedef int (*setmode_t)(void *context, int mode); mode 103 drivers/media/common/siano/smscoreapi.h typedef void (*detectmode_t)(void *context, int *mode); mode 180 drivers/media/common/siano/smscoreapi.h int mode, modes_supported; mode 1128 drivers/media/common/siano/smscoreapi.h extern int smscore_set_device_mode(struct smscore_device_t *coredev, int mode); mode 157 drivers/media/common/siano/smsdvb-main.c static inline int sms_to_mode(u32 mode) mode 159 drivers/media/common/siano/smsdvb-main.c switch (mode) { mode 756 drivers/media/dvb-core/dmxdev.c ¶->filter.mode[1], DMX_FILTER_SIZE - 1); mode 760 drivers/media/dvb-core/dmxdev.c (*secfilter)->filter_mode[0] = para->filter.mode[0]; mode 869 drivers/media/dvb-core/dmxdev.c filter->mode[i] ^= 0xff; mode 934 drivers/media/dvb-core/dvb_demux.c u8 mask, mode, doneq; mode 942 drivers/media/dvb-core/dvb_demux.c mode = sf->filter_mode[i]; mode 944 drivers/media/dvb-core/dvb_demux.c f->maskandmode[i] = mask & mode; mode 945 drivers/media/dvb-core/dvb_demux.c doneq |= f->maskandnotmode[i] = mask & ~mode; mode 1023 drivers/media/dvb-core/dvbdev.c static char *dvb_devnode(struct device *dev, umode_t *mode) mode 164 drivers/media/dvb-frontends/as102_fe_types.h uint8_t mode; mode 176 drivers/media/dvb-frontends/as102_fe_types.h uint8_t mode; mode 676 drivers/media/dvb-frontends/cx24123.c static int cx24123_repeater_mode(struct cx24123_state *state, u8 mode, u8 start) mode 679 drivers/media/dvb-frontends/cx24123.c if (mode) mode 46 drivers/media/dvb-frontends/cxd2099.c int mode; mode 190 drivers/media/dvb-frontends/cxd2099.c static void set_mode(struct cxd *ci, int mode) mode 192 drivers/media/dvb-frontends/cxd2099.c if (mode == ci->mode) mode 195 drivers/media/dvb-frontends/cxd2099.c switch (mode) { mode 205 drivers/media/dvb-frontends/cxd2099.c ci->mode = mode; mode 208 drivers/media/dvb-frontends/cxd2099.c static void cam_mode(struct cxd *ci, int mode) mode 212 drivers/media/dvb-frontends/cxd2099.c if (mode == ci->cammode) mode 215 drivers/media/dvb-frontends/cxd2099.c switch (mode) { mode 233 drivers/media/dvb-frontends/cxd2099.c ci->cammode = mode; mode 241 drivers/media/dvb-frontends/cxd2099.c ci->mode = -1; mode 450 drivers/media/dvb-frontends/cxd2099.c ci->mode = -1; mode 480 drivers/media/dvb-frontends/cxd2099.c ci->mode = -1; mode 65 drivers/media/dvb-frontends/cxd2880/cxd2880_dvbt.h enum cxd2880_dvbt_mode mode; mode 362 drivers/media/dvb-frontends/cxd2880/cxd2880_dvbt2.h enum cxd2880_dvbt2_mode mode; mode 66 drivers/media/dvb-frontends/cxd2880/cxd2880_spi_device.c enum cxd2880_spi_mode mode, mode 72 drivers/media/dvb-frontends/cxd2880/cxd2880_spi_device.c switch (mode) { mode 74 drivers/media/dvb-frontends/cxd2880/cxd2880_spi_device.c spi->mode = SPI_MODE_0; mode 77 drivers/media/dvb-frontends/cxd2880/cxd2880_spi_device.c spi->mode = SPI_MODE_1; mode 80 drivers/media/dvb-frontends/cxd2880/cxd2880_spi_device.c spi->mode = SPI_MODE_2; mode 83 drivers/media/dvb-frontends/cxd2880/cxd2880_spi_device.c spi->mode = SPI_MODE_3; mode 20 drivers/media/dvb-frontends/cxd2880/cxd2880_spi_device.h enum cxd2880_spi_mode mode, mode 2991 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd.c enum cxd2880_tnrdmd_gpio_mode mode, mode 3002 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd.c if (mode > CXD2880_TNRDMD_GPIO_MODE_EEW) mode 3011 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd.c 0x00, 0x40 + id, mode, mode 3043 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd.c mode, u8 open_drain, u8 invert) mode 3051 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd.c return cxd2880_tnrdmd_gpio_set_cfg(tnr_dmd->diver_sub, id, en, mode, mode 280 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd.h enum cxd2880_tnrdmd_gpio_mode mode, mode 287 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd.h mode, u8 open_drain, mode 498 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt2_mon.c ofdm->mode = (enum cxd2880_dvbt2_mode)(data[0] & 0x07); mode 83 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c *mode, mode 90 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c if (!tnr_dmd || !mode || !guard) mode 110 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c mode, guard); mode 133 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c *mode = (enum cxd2880_dvbt_mode)((rdata >> 2) & 0x03); mode 281 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.c info->mode = (enum cxd2880_dvbt_mode)((rdata[1] >> 1) & 0x03); mode 28 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt_mon.h *mode, mode 1412 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c enum cxd2880_dvbt_mode mode = CXD2880_DVBT_MODE_2K; mode 1428 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c &mode, &guard); mode 1431 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c switch (mode) { mode 1440 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c pr_debug("transmission mode is invalid %d\n", mode); mode 184 drivers/media/dvb-frontends/dib3000mc.c static int dib3000mc_set_output_mode(struct dib3000mc_state *state, int mode) mode 194 drivers/media/dvb-frontends/dib3000mc.c &state->demod, mode); mode 196 drivers/media/dvb-frontends/dib3000mc.c switch (mode) { mode 305 drivers/media/dvb-frontends/dib3000mc.c static void dib3000mc_set_impulse_noise(struct dib3000mc_state *state, u8 mode, s16 nfft) mode 319 drivers/media/dvb-frontends/dib3000mc.c if (mode == 1) mode 151 drivers/media/dvb-frontends/dib7000m.c static int dib7000m_set_output_mode(struct dib7000m_state *state, int mode) mode 161 drivers/media/dvb-frontends/dib7000m.c dprintk("setting output mode for demod %p to %d\n", &state->demod, mode); mode 163 drivers/media/dvb-frontends/dib7000m.c switch (mode) { mode 202 drivers/media/dvb-frontends/dib7000m.c if (mode == OUTMODE_DIVERSITY) mode 209 drivers/media/dvb-frontends/dib7000m.c static void dib7000m_set_power_mode(struct dib7000m_state *state, enum dib7000m_power_mode mode) mode 216 drivers/media/dvb-frontends/dib7000m.c switch (mode) { mode 95 drivers/media/dvb-frontends/dib7000p.c static int dib7090_set_output_mode(struct dvb_frontend *fe, int mode); mode 97 drivers/media/dvb-frontends/dib7000p.c static void dib7090_setDibTxMux(struct dib7000p_state *state, int mode); mode 98 drivers/media/dvb-frontends/dib7000p.c static void dib7090_setHostBusMux(struct dib7000p_state *state, int mode); mode 172 drivers/media/dvb-frontends/dib7000p.c static int dib7000p_set_output_mode(struct dib7000p_state *state, int mode) mode 181 drivers/media/dvb-frontends/dib7000p.c dprintk("setting output mode for demod %p to %d\n", &state->demod, mode); mode 183 drivers/media/dvb-frontends/dib7000p.c switch (mode) { mode 251 drivers/media/dvb-frontends/dib7000p.c static int dib7000p_set_power_mode(struct dib7000p_state *state, enum dib7000p_power_mode mode) mode 257 drivers/media/dvb-frontends/dib7000p.c switch (mode) { mode 2529 drivers/media/dvb-frontends/dib7000p.c static void dib7090_setDibTxMux(struct dib7000p_state *state, int mode) mode 2533 drivers/media/dvb-frontends/dib7000p.c switch (mode) { mode 2555 drivers/media/dvb-frontends/dib7000p.c static void dib7090_setHostBusMux(struct dib7000p_state *state, int mode) mode 2559 drivers/media/dvb-frontends/dib7000p.c switch (mode) { mode 2613 drivers/media/dvb-frontends/dib7000p.c static int dib7090_set_output_mode(struct dvb_frontend *fe, int mode) mode 2627 drivers/media/dvb-frontends/dib7000p.c switch (mode) { mode 2682 drivers/media/dvb-frontends/dib7000p.c if (mode != OUTMODE_HIGH_Z) mode 112 drivers/media/dvb-frontends/dib8000.c u16 mode; mode 381 drivers/media/dvb-frontends/dib8000.c u16 mode; mode 384 drivers/media/dvb-frontends/dib8000.c mode = 1; mode 387 drivers/media/dvb-frontends/dib8000.c mode = 2; mode 392 drivers/media/dvb-frontends/dib8000.c mode = 3; mode 395 drivers/media/dvb-frontends/dib8000.c return mode; mode 405 drivers/media/dvb-frontends/dib8000.c static int dib8000_set_output_mode(struct dvb_frontend *fe, int mode) mode 410 drivers/media/dvb-frontends/dib8000.c state->output_mode = mode; mode 416 drivers/media/dvb-frontends/dib8000.c &state->fe[0], mode); mode 418 drivers/media/dvb-frontends/dib8000.c switch (mode) { mode 505 drivers/media/dvb-frontends/dib8000.c static void dib8000_set_power_mode(struct dib8000_state *state, enum dib8000_power_mode mode) mode 518 drivers/media/dvb-frontends/dib8000.c switch (mode) { mode 1478 drivers/media/dvb-frontends/dib8000.c static void dib8096p_setDibTxMux(struct dib8000_state *state, int mode) mode 1482 drivers/media/dvb-frontends/dib8000.c switch (mode) { mode 1501 drivers/media/dvb-frontends/dib8000.c static void dib8096p_setHostBusMux(struct dib8000_state *state, int mode) mode 1505 drivers/media/dvb-frontends/dib8000.c switch (mode) { mode 1561 drivers/media/dvb-frontends/dib8000.c static int dib8096p_set_output_mode(struct dvb_frontend *fe, int mode) mode 1568 drivers/media/dvb-frontends/dib8000.c state->output_mode = mode; mode 1576 drivers/media/dvb-frontends/dib8000.c switch (mode) { mode 1636 drivers/media/dvb-frontends/dib8000.c if (mode != OUTMODE_HIGH_Z) mode 1921 drivers/media/dvb-frontends/dib8000.c static s32 dib8000_get_adc_power(struct dvb_frontend *fe, u8 mode) mode 1928 drivers/media/dvb-frontends/dib8000.c if (mode) { mode 2103 drivers/media/dvb-frontends/dib8000.c u16 mode = 0; mode 2106 drivers/media/dvb-frontends/dib8000.c for (mode = 0; mode < 24; mode++) mode 2107 drivers/media/dvb-frontends/dib8000.c dib8000_write_word(state, 117 + mode, ana_fe[mode]); mode 2303 drivers/media/dvb-frontends/dib8000.c if (state->mode == 3) mode 2304 drivers/media/dvb-frontends/dib8000.c dib8000_write_word(state, 180, 0x1fcf | ((state->mode - 1) << 14)); mode 2306 drivers/media/dvb-frontends/dib8000.c dib8000_write_word(state, 180, 0x0fcf | ((state->mode - 1) << 14)); mode 2358 drivers/media/dvb-frontends/dib8000.c state->mode = fft_to_mode(state); mode 2393 drivers/media/dvb-frontends/dib8000.c dib8000_write_word(state, 0, (state->mode << 13) | state->seg_diff_mask); mode 2784 drivers/media/dvb-frontends/dib8000.c reg_32 = ((11 - state->mode) << 12) | (6 << 8) | 0x40; /* P_timf_alpha = (11-P_mode), P_corm_alpha=6, P_corm_thres=0x40 */ mode 2785 drivers/media/dvb-frontends/dib8000.c reg_37 = (3 << 5) | (0 << 4) | (10 - state->mode); /* P_ctrl_pha_off_max=3 P_ctrl_sfreq_inh =0 P_ctrl_sfreq_step = (10-P_mode) */ mode 2787 drivers/media/dvb-frontends/dib8000.c reg_32 = ((10 - state->mode) << 12) | (6 << 8) | 0x60; /* P_timf_alpha = (10-P_mode), P_corm_alpha=6, P_corm_thres=0x60 */ mode 2788 drivers/media/dvb-frontends/dib8000.c reg_37 = (3 << 5) | (0 << 4) | (9 - state->mode); /* P_ctrl_pha_off_max=3 P_ctrl_sfreq_inh =0 P_ctrl_sfreq_step = (9-P_mode) */ mode 2791 drivers/media/dvb-frontends/dib8000.c reg_32 = ((9 - state->mode) << 12) | (6 << 8) | 0x80; /* P_timf_alpha = (9-P_mode, P_corm_alpha=6, P_corm_thres=0x80 */ mode 2792 drivers/media/dvb-frontends/dib8000.c reg_37 = (3 << 5) | (0 << 4) | (8 - state->mode); /* P_ctrl_pha_off_max=3 P_ctrl_sfreq_inh =0 P_ctrl_sfreq_step = 9 */ mode 2798 drivers/media/dvb-frontends/dib8000.c reg_32 = ((13-state->mode) << 12) | (6 << 8) | 0x40; /* P_timf_alpha = (13-P_mode) , P_corm_alpha=6, P_corm_thres=0x40*/ mode 2799 drivers/media/dvb-frontends/dib8000.c reg_37 = (12-state->mode) | ((5 + state->mode) << 5); mode 2801 drivers/media/dvb-frontends/dib8000.c reg_32 = ((12-state->mode) << 12) | (6 << 8) | 0x60; /* P_timf_alpha = (12-P_mode) , P_corm_alpha=6, P_corm_thres=0x60 */ mode 2802 drivers/media/dvb-frontends/dib8000.c reg_37 = (11-state->mode) | ((5 + state->mode) << 5); mode 2805 drivers/media/dvb-frontends/dib8000.c reg_32 = ((11-state->mode) << 12) | (6 << 8) | 0x80; /* P_timf_alpha = 8 , P_corm_alpha=6, P_corm_thres=0x80 */ mode 2806 drivers/media/dvb-frontends/dib8000.c reg_37 = ((5+state->mode) << 5) | (10 - state->mode); mode 2848 drivers/media/dvb-frontends/dib8000.c static unsigned long dib8000_get_timeout(struct dib8000_state *state, u32 delay, enum timeout_mode mode) mode 2850 drivers/media/dvb-frontends/dib8000.c if (mode == SYMBOL_DEPENDENT_ON) mode 51 drivers/media/dvb-frontends/dib8000.h s32 (*get_adc_power)(struct dvb_frontend *fe, u8 mode); mode 211 drivers/media/dvb-frontends/dib9000.c static u16 to_fw_output_mode(u16 mode) mode 213 drivers/media/dvb-frontends/dib9000.c switch (mode) { mode 897 drivers/media/dvb-frontends/dib9000.c static void dib9000_set_power_mode(struct dib9000_state *state, enum dib9000_power_mode mode) mode 911 drivers/media/dvb-frontends/dib9000.c switch (mode) { mode 1532 drivers/media/dvb-frontends/dib9000.c u16 mode = (u16) onoff; mode 1533 drivers/media/dvb-frontends/dib9000.c return dib9000_mbx_send(state, OUT_MSG_ENABLE_DIVERSITY, &mode, 1); mode 1536 drivers/media/dvb-frontends/dib9000.c static int dib9000_fw_set_output_mode(struct dvb_frontend *fe, int mode) mode 1541 drivers/media/dvb-frontends/dib9000.c dprintk("setting output mode for demod %p to %d\n", fe, mode); mode 1543 drivers/media/dvb-frontends/dib9000.c switch (mode) { mode 1569 drivers/media/dvb-frontends/dib9000.c switch (mode) { mode 1581 drivers/media/dvb-frontends/dib9000.c outreg = to_fw_output_mode(mode); mode 188 drivers/media/dvb-frontends/drx39xyj/drx_driver.h u32 mode, mode 193 drivers/media/dvb-frontends/drx39xyj/drx_driver.h u32 mode, mode 229 drivers/media/dvb-frontends/drx39xyj/drx_driver.h u32 mode, mode 233 drivers/media/dvb-frontends/drx39xyj/drx_driver.h u32 mode, mode 1231 drivers/media/dvb-frontends/drx39xyj/drx_driver.h enum drxuio_mode mode; mode 1516 drivers/media/dvb-frontends/drx39xyj/drx_driver.h enum drxi2s_mode mode; /*< I2S mode, master or slave */ mode 359 drivers/media/dvb-frontends/drx39xyj/drxj.c #define DRX_ISPOWERDOWNMODE(mode) ((mode == DRX_POWER_MODE_9) || \ mode 360 drivers/media/dvb-frontends/drx39xyj/drxj.c (mode == DRX_POWER_MODE_10) || \ mode 361 drivers/media/dvb-frontends/drx39xyj/drxj.c (mode == DRX_POWER_MODE_11) || \ mode 362 drivers/media/dvb-frontends/drx39xyj/drxj.c (mode == DRX_POWER_MODE_12) || \ mode 363 drivers/media/dvb-frontends/drx39xyj/drxj.c (mode == DRX_POWER_MODE_13) || \ mode 364 drivers/media/dvb-frontends/drx39xyj/drxj.c (mode == DRX_POWER_MODE_14) || \ mode 365 drivers/media/dvb-frontends/drx39xyj/drxj.c (mode == DRX_POWER_MODE_15) || \ mode 366 drivers/media/dvb-frontends/drx39xyj/drxj.c (mode == DRX_POWER_MODE_16) || \ mode 367 drivers/media/dvb-frontends/drx39xyj/drxj.c (mode == DRX_POWER_DOWN)) mode 1028 drivers/media/dvb-frontends/drx39xyj/drxj.c ctrl_power_mode(struct drx_demod_instance *demod, enum drx_power_mode *mode); mode 3557 drivers/media/dvb-frontends/drx39xyj/drxj.c switch (uio_cfg->mode) { mode 3561 drivers/media/dvb-frontends/drx39xyj/drxj.c ext_attr->uio_sma_tx_mode = uio_cfg->mode; mode 3564 drivers/media/dvb-frontends/drx39xyj/drxj.c ext_attr->uio_sma_tx_mode = uio_cfg->mode; mode 3581 drivers/media/dvb-frontends/drx39xyj/drxj.c switch (uio_cfg->mode) { mode 3584 drivers/media/dvb-frontends/drx39xyj/drxj.c ext_attr->uio_sma_rx_mode = uio_cfg->mode; mode 3587 drivers/media/dvb-frontends/drx39xyj/drxj.c ext_attr->uio_sma_rx_mode = uio_cfg->mode; mode 3605 drivers/media/dvb-frontends/drx39xyj/drxj.c switch (uio_cfg->mode) { mode 3608 drivers/media/dvb-frontends/drx39xyj/drxj.c ext_attr->uio_gpio_mode = uio_cfg->mode; mode 3611 drivers/media/dvb-frontends/drx39xyj/drxj.c ext_attr->uio_gpio_mode = uio_cfg->mode; mode 3629 drivers/media/dvb-frontends/drx39xyj/drxj.c switch (uio_cfg->mode) { mode 3631 drivers/media/dvb-frontends/drx39xyj/drxj.c ext_attr->uio_irqn_mode = uio_cfg->mode; mode 3640 drivers/media/dvb-frontends/drx39xyj/drxj.c ext_attr->uio_irqn_mode = uio_cfg->mode; mode 11031 drivers/media/dvb-frontends/drx39xyj/drxj.c ctrl_power_mode(struct drx_demod_instance *demod, enum drx_power_mode *mode) mode 11044 drivers/media/dvb-frontends/drx39xyj/drxj.c if (mode == NULL) mode 11048 drivers/media/dvb-frontends/drx39xyj/drxj.c if (common_attr->current_power_mode == *mode) mode 11051 drivers/media/dvb-frontends/drx39xyj/drxj.c switch (*mode) { mode 11080 drivers/media/dvb-frontends/drx39xyj/drxj.c if (*mode == DRX_POWER_UP) { mode 11137 drivers/media/dvb-frontends/drx39xyj/drxj.c if (*mode != DRXJ_POWER_DOWN_MAIN_PATH) { mode 11149 drivers/media/dvb-frontends/drx39xyj/drxj.c if ((*mode != DRX_POWER_UP)) { mode 11166 drivers/media/dvb-frontends/drx39xyj/drxj.c common_attr->current_power_mode = *mode; mode 11913 drivers/media/dvb-frontends/drx39xyj/drxj.c uio_cfg.mode = DRX_UIO_MODE_READWRITE; mode 1572 drivers/media/dvb-frontends/drxk_hard.c static int ctrl_power_mode(struct drxk_state *state, enum drx_power_mode *mode) mode 1580 drivers/media/dvb-frontends/drxk_hard.c if (mode == NULL) mode 1583 drivers/media/dvb-frontends/drxk_hard.c switch (*mode) { mode 1605 drivers/media/dvb-frontends/drxk_hard.c if (state->m_current_power_mode == *mode) mode 1618 drivers/media/dvb-frontends/drxk_hard.c if (*mode == DRX_POWER_UP) { mode 1661 drivers/media/dvb-frontends/drxk_hard.c if (*mode != DRXK_POWER_DOWN_OFDM) { mode 1669 drivers/media/dvb-frontends/drxk_hard.c state->m_current_power_mode = *mode; mode 48 drivers/media/dvb-frontends/gp8psk-fe.c static int gp8psk_set_tuner_mode(struct dvb_frontend *fe, int mode) mode 52 drivers/media/dvb-frontends/gp8psk-fe.c return st->ops->out(st->priv, SET_8PSK_CONFIG, mode, 0, NULL, 0); mode 219 drivers/media/dvb-frontends/lgdt3305.c enum lgdt3305_mpeg_mode mode) mode 221 drivers/media/dvb-frontends/lgdt3305.c lg_dbg("(%d)\n", mode); mode 222 drivers/media/dvb-frontends/lgdt3305.c return lgdt3305_set_reg_bit(state, LGDT3305_TP_CTRL_1, 5, mode); mode 230 drivers/media/dvb-frontends/lgdt3305.c enum lgdt3305_tp_clock_mode mode = state->cfg->tpclk_mode; mode 243 drivers/media/dvb-frontends/lgdt3305.c if (mode) mode 224 drivers/media/dvb-frontends/lgdt3306a.c enum lgdt3306a_mpeg_mode mode) mode 229 drivers/media/dvb-frontends/lgdt3306a.c dbg_info("(%d)\n", mode); mode 232 drivers/media/dvb-frontends/lgdt3306a.c mode == LGDT3306A_MPEG_PARALLEL ? 1 : 0); mode 250 drivers/media/dvb-frontends/lgdt3306a.c if (mode == LGDT3306A_MPEG_PARALLEL) mode 288 drivers/media/dvb-frontends/lgdt3306a.c int mode) mode 293 drivers/media/dvb-frontends/lgdt3306a.c dbg_info("(%d)\n", mode); mode 295 drivers/media/dvb-frontends/lgdt3306a.c if (mode) { mode 344 drivers/media/dvb-frontends/lgdt3306a.c int mode) mode 348 drivers/media/dvb-frontends/lgdt3306a.c dbg_info("(%d)\n", mode); mode 350 drivers/media/dvb-frontends/lgdt3306a.c if (mode == 0) { mode 152 drivers/media/dvb-frontends/or51211.c static int or51211_setmode(struct dvb_frontend* fe, int mode) mode 157 drivers/media/dvb-frontends/or51211.c state->config->setmode(fe, mode); mode 21 drivers/media/dvb-frontends/or51211.h void (*setmode)(struct dvb_frontend * fe, int mode); mode 664 drivers/media/dvb-frontends/s5h1409.c static int s5h1409_set_mpeg_timing(struct dvb_frontend *fe, int mode) mode 669 drivers/media/dvb-frontends/s5h1409.c dprintk("%s(%d)\n", __func__, mode); mode 672 drivers/media/dvb-frontends/s5h1409.c switch (mode) { mode 677 drivers/media/dvb-frontends/s5h1409.c dprintk("%s(%d) Mode1 or Defaulting\n", __func__, mode); mode 415 drivers/media/dvb-frontends/s5h1411.c static int s5h1411_set_mpeg_timing(struct dvb_frontend *fe, int mode) mode 420 drivers/media/dvb-frontends/s5h1411.c dprintk("%s(%d)\n", __func__, mode); mode 423 drivers/media/dvb-frontends/s5h1411.c switch (mode) { mode 428 drivers/media/dvb-frontends/s5h1411.c dprintk("%s(%d) Mode1 or Defaulting\n", __func__, mode); mode 61 drivers/media/dvb-frontends/stv0367.c enum stv0367_ter_mode mode;/* mode 2K or 8K */ mode 603 drivers/media/dvb-frontends/stv0367.c static int stv0367ter_duration(s32 mode, int tempo1, int tempo2, int tempo3) mode 606 drivers/media/dvb-frontends/stv0367.c switch (mode) { mode 707 drivers/media/dvb-frontends/stv0367.c u8 try, u_var1 = 0, u_var2 = 0, u_var3 = 0, u_var4 = 0, mode, guard; mode 737 drivers/media/dvb-frontends/stv0367.c mode = stv0367_readbits(state, F367TER_SYR_MODE); mode 738 drivers/media/dvb-frontends/stv0367.c if (stv0367ter_check_cpamp(state, mode) == mode 753 drivers/media/dvb-frontends/stv0367.c mode, tmp, tmp2); mode 762 drivers/media/dvb-frontends/stv0367.c if ((mode != 0) && (mode != 1) && (mode != 2)) mode 800 drivers/media/dvb-frontends/stv0367.c wd = stv0367ter_duration(mode, 125, 500, 250); mode 801 drivers/media/dvb-frontends/stv0367.c tempo = stv0367ter_duration(mode, 4, 16, 8); mode 845 drivers/media/dvb-frontends/stv0367.c (mode == 1) && mode 853 drivers/media/dvb-frontends/stv0367.c wd = stv0367ter_duration(mode, 125, 500, 250); mode 1129 drivers/media/dvb-frontends/stv0367.c ter_state->mode = stv0367_readbits(state, F367TER_SYR_MODE); mode 1151 drivers/media/dvb-frontends/stv0367.c if (ter_state->mode == FE_TER_MODE_2K) mode 1153 drivers/media/dvb-frontends/stv0367.c else if (ter_state->mode == FE_TER_MODE_4K) mode 1155 drivers/media/dvb-frontends/stv0367.c else if (ter_state->mode == FE_TER_MODE_8K) mode 1247 drivers/media/dvb-frontends/stv0367.c ter_state->mode = FE_TER_MODE_2K; mode 1253 drivers/media/dvb-frontends/stv0367.c ter_state->mode = FE_TER_MODE_8K; mode 1348 drivers/media/dvb-frontends/stv0367.c enum stv0367_ter_mode mode; mode 1413 drivers/media/dvb-frontends/stv0367.c mode = stv0367_readbits(state, F367TER_SYR_MODE); mode 1415 drivers/media/dvb-frontends/stv0367.c switch (mode) { mode 3833 drivers/media/dvb-frontends/stv090x.c u8 mode, value; mode 3839 drivers/media/dvb-frontends/stv090x.c mode = (state->config->diseqc_envelope_mode) ? 5 : 3; mode 3842 drivers/media/dvb-frontends/stv090x.c mode = (state->config->diseqc_envelope_mode) ? 4 : 2; mode 3846 drivers/media/dvb-frontends/stv090x.c STV090x_SETFIELD_Px(reg, DISTX_MODE_FIELD, mode); mode 83 drivers/media/dvb-frontends/stv090x.h int (*tuner_set_mode)(struct dvb_frontend *fe, enum tuner_mode mode); mode 277 drivers/media/dvb-frontends/stv6110x.c static int stv6110x_set_mode(struct dvb_frontend *fe, enum tuner_mode mode) mode 282 drivers/media/dvb-frontends/stv6110x.c switch (mode) { mode 35 drivers/media/dvb-frontends/stv6110x.h int (*tuner_set_mode) (struct dvb_frontend *fe, enum tuner_mode mode); mode 337 drivers/media/dvb-frontends/tc90522.c u8 val[15], mode; mode 343 drivers/media/dvb-frontends/tc90522.c mode = 1; mode 346 drivers/media/dvb-frontends/tc90522.c mode = (val[0] & 0xc0) >> 6; mode 347 drivers/media/dvb-frontends/tc90522.c c->transmission_mode = tm_conv[mode]; mode 553 drivers/media/dvb-frontends/tda10071.c u8 mode, rolloff, pilot, inversion, div; mode 634 drivers/media/dvb-frontends/tda10071.c for (i = 0, mode = 0xff; i < ARRAY_SIZE(TDA10071_MODCOD); i++) { mode 638 drivers/media/dvb-frontends/tda10071.c mode = TDA10071_MODCOD[i].val; mode 639 drivers/media/dvb-frontends/tda10071.c dev_dbg(&client->dev, "mode found=%02x\n", mode); mode 644 drivers/media/dvb-frontends/tda10071.c if (mode == 0xff) { mode 665 drivers/media/dvb-frontends/tda10071.c cmd.args[2] = mode; mode 161 drivers/media/i2c/ad9389b.c static void ad9389b_csc_conversion_mode(struct v4l2_subdev *sd, u8 mode) mode 163 drivers/media/i2c/ad9389b.c ad9389b_wr_and_or(sd, 0x17, 0xe7, (mode & 0x3)<<3); mode 164 drivers/media/i2c/ad9389b.c ad9389b_wr_and_or(sd, 0x18, 0x9f, (mode & 0x3)<<5); mode 316 drivers/media/i2c/adv7511-v4l2.c static void adv7511_csc_conversion_mode(struct v4l2_subdev *sd, u8 mode) mode 318 drivers/media/i2c/adv7511-v4l2.c adv7511_wr_and_or(sd, 0x18, 0x9f, (mode & 0x3)<<5); mode 93 drivers/media/i2c/adv7842.c enum adv7842_mode mode; mode 651 drivers/media/i2c/adv7842.c return ((state->mode == ADV7842_MODE_RGB) || mode 652 drivers/media/i2c/adv7842.c (state->mode == ADV7842_MODE_COMP)); mode 659 drivers/media/i2c/adv7842.c return state->mode == ADV7842_MODE_HDMI; mode 1023 drivers/media/i2c/adv7842.c switch (state->mode) { mode 1041 drivers/media/i2c/adv7842.c __func__, state->mode); mode 1070 drivers/media/i2c/adv7842.c switch (state->mode) { mode 1107 drivers/media/i2c/adv7842.c __func__, state->mode); mode 1191 drivers/media/i2c/adv7842.c if (state->mode == ADV7842_MODE_RGB) { mode 1198 drivers/media/i2c/adv7842.c if (state->mode == ADV7842_MODE_COMP) { mode 1231 drivers/media/i2c/adv7842.c if (state->mode == ADV7842_MODE_COMP) { mode 1245 drivers/media/i2c/adv7842.c if (state->mode == ADV7842_MODE_COMP) { mode 1385 drivers/media/i2c/adv7842.c if (state->mode == ADV7842_MODE_SDP) { mode 1545 drivers/media/i2c/adv7842.c if (state->mode == ADV7842_MODE_SDP) mode 1667 drivers/media/i2c/adv7842.c if (state->mode == ADV7842_MODE_SDP) mode 1709 drivers/media/i2c/adv7842.c if (state->mode == ADV7842_MODE_SDP) mode 1720 drivers/media/i2c/adv7842.c switch (state->mode) { mode 1733 drivers/media/i2c/adv7842.c __func__, state->mode); mode 1800 drivers/media/i2c/adv7842.c switch (state->mode) { mode 1857 drivers/media/i2c/adv7842.c if (state->mode == ADV7842_MODE_COMP) { mode 1945 drivers/media/i2c/adv7842.c __func__, state->mode); mode 1959 drivers/media/i2c/adv7842.c state->mode = ADV7842_MODE_HDMI; mode 1964 drivers/media/i2c/adv7842.c state->mode = ADV7842_MODE_HDMI; mode 1969 drivers/media/i2c/adv7842.c state->mode = ADV7842_MODE_COMP; mode 1973 drivers/media/i2c/adv7842.c state->mode = ADV7842_MODE_RGB; mode 1977 drivers/media/i2c/adv7842.c state->mode = ADV7842_MODE_SDP; mode 1981 drivers/media/i2c/adv7842.c state->mode = ADV7842_MODE_SDP; mode 2082 drivers/media/i2c/adv7842.c if (state->mode == ADV7842_MODE_SDP) { mode 2121 drivers/media/i2c/adv7842.c if (state->mode == ADV7842_MODE_SDP) mode 2410 drivers/media/i2c/adv7842.c if (state->mode == ADV7842_MODE_SDP) mode 2838 drivers/media/i2c/adv7842.c if (state->mode == ADV7842_MODE_SDP) mode 2849 drivers/media/i2c/adv7842.c if (state->mode != ADV7842_MODE_SDP) mode 2945 drivers/media/i2c/adv7842.c if (state->mode != ADV7842_MODE_SDP) mode 2968 drivers/media/i2c/adv7842.c if (state->mode != ADV7842_MODE_SDP) mode 3473 drivers/media/i2c/adv7842.c state->mode = pdata->mode; mode 2541 drivers/media/i2c/cx25840/cx25840-core.c u8 mode; mode 2554 drivers/media/i2c/cx25840/cx25840-core.c mode = cx25840_read(client, 0x804); mode 2557 drivers/media/i2c/cx25840/cx25840-core.c if ((mode & 0xf) == 1) mode 2562 drivers/media/i2c/cx25840/cx25840-core.c if (mode == 2 || mode == 4) mode 2565 drivers/media/i2c/cx25840/cx25840-core.c if (mode & 0x10) mode 760 drivers/media/i2c/cx25840/cx25840-ir.c if (p->mode != V4L2_SUBDEV_IR_MODE_PULSE_WIDTH) mode 770 drivers/media/i2c/cx25840/cx25840-ir.c p->mode = V4L2_SUBDEV_IR_MODE_PULSE_WIDTH; mode 771 drivers/media/i2c/cx25840/cx25840-ir.c o->mode = p->mode; mode 948 drivers/media/i2c/cx25840/cx25840-ir.c if (p->mode != V4L2_SUBDEV_IR_MODE_PULSE_WIDTH) mode 957 drivers/media/i2c/cx25840/cx25840-ir.c p->mode = V4L2_SUBDEV_IR_MODE_PULSE_WIDTH; mode 958 drivers/media/i2c/cx25840/cx25840-ir.c o->mode = p->mode; mode 1174 drivers/media/i2c/cx25840/cx25840-ir.c .mode = V4L2_SUBDEV_IR_MODE_PULSE_WIDTH, mode 1193 drivers/media/i2c/cx25840/cx25840-ir.c .mode = V4L2_SUBDEV_IR_MODE_PULSE_WIDTH, mode 397 drivers/media/i2c/et8ek8/et8ek8_driver.c fmt->width = reglist->mode.window_width; mode 398 drivers/media/i2c/et8ek8/et8ek8_driver.c fmt->height = reglist->mode.window_height; mode 399 drivers/media/i2c/et8ek8/et8ek8_driver.c fmt->code = reglist->mode.bus_format; mode 463 drivers/media/i2c/et8ek8/et8ek8_driver.c struct et8ek8_mode *current_mode = ¤t_reglist->mode; mode 466 drivers/media/i2c/et8ek8/et8ek8_driver.c struct et8ek8_mode *mode = &(*list)->mode; mode 471 drivers/media/i2c/et8ek8/et8ek8_driver.c if (mode->window_width != current_mode->window_width || mode 472 drivers/media/i2c/et8ek8/et8ek8_driver.c mode->window_height != current_mode->window_height) mode 475 drivers/media/i2c/et8ek8/et8ek8_driver.c if (TIMEPERFRAME_AVG_FPS(mode->timeperframe) == fps) mode 496 drivers/media/i2c/et8ek8/et8ek8_driver.c if ((*list1)->mode.window_width > (*list2)->mode.window_width) mode 498 drivers/media/i2c/et8ek8/et8ek8_driver.c if ((*list1)->mode.window_width < (*list2)->mode.window_width) mode 501 drivers/media/i2c/et8ek8/et8ek8_driver.c if ((*list1)->mode.window_height > (*list2)->mode.window_height) mode 503 drivers/media/i2c/et8ek8/et8ek8_driver.c if ((*list1)->mode.window_height < (*list2)->mode.window_height) mode 537 drivers/media/i2c/et8ek8/et8ek8_driver.c list->mode.window_width, list->mode.window_height, mode 538 drivers/media/i2c/et8ek8/et8ek8_driver.c list->mode.bus_format, mode 539 drivers/media/i2c/et8ek8/et8ek8_driver.c list->mode.timeperframe.numerator, mode 540 drivers/media/i2c/et8ek8/et8ek8_driver.c list->mode.timeperframe.denominator, mode 582 drivers/media/i2c/et8ek8/et8ek8_driver.c static int et8ek8_set_test_pattern(struct et8ek8_sensor *sensor, s32 mode) mode 594 drivers/media/i2c/et8ek8/et8ek8_driver.c if (mode) { mode 596 drivers/media/i2c/et8ek8/et8ek8_driver.c if (mode < 5) { mode 599 drivers/media/i2c/et8ek8/et8ek8_driver.c tp_mode = mode + 3; mode 603 drivers/media/i2c/et8ek8/et8ek8_driver.c tp_mode = mode - 4 + 3; mode 692 drivers/media/i2c/et8ek8/et8ek8_driver.c max_rows = sensor->current_reglist->mode.max_exp; mode 724 drivers/media/i2c/et8ek8/et8ek8_driver.c struct et8ek8_mode *mode = &sensor->current_reglist->mode; mode 732 drivers/media/i2c/et8ek8/et8ek8_driver.c max = mode->max_exp; mode 739 drivers/media/i2c/et8ek8/et8ek8_driver.c pixel_rate = ((mode->pixel_clock + (1 << S) - 1) >> S) + mode->width; mode 740 drivers/media/i2c/et8ek8/et8ek8_driver.c pixel_rate = mode->window_width * (pixel_rate - 1) / mode->width; mode 829 drivers/media/i2c/et8ek8/et8ek8_driver.c xclk_freq = sensor->current_reglist->mode.ext_clock; mode 897 drivers/media/i2c/et8ek8/et8ek8_driver.c struct et8ek8_mode *mode = &(*list)->mode; mode 904 drivers/media/i2c/et8ek8/et8ek8_driver.c if (pixelformat[i] == mode->bus_format) mode 911 drivers/media/i2c/et8ek8/et8ek8_driver.c code->code = mode->bus_format; mode 915 drivers/media/i2c/et8ek8/et8ek8_driver.c pixelformat[npixelformat] = mode->bus_format; mode 970 drivers/media/i2c/et8ek8/et8ek8_driver.c struct et8ek8_mode *mode = &(*list)->mode; mode 983 drivers/media/i2c/et8ek8/et8ek8_driver.c fie->interval = mode->timeperframe; mode 1052 drivers/media/i2c/et8ek8/et8ek8_driver.c fi->interval = sensor->current_reglist->mode.timeperframe; mode 1070 drivers/media/i2c/et8ek8/et8ek8_driver.c if (sensor->current_reglist->mode.ext_clock != reglist->mode.ext_clock) mode 33 drivers/media/i2c/et8ek8/et8ek8_mode.c .mode = { mode 134 drivers/media/i2c/et8ek8/et8ek8_mode.c .mode = { mode 190 drivers/media/i2c/et8ek8/et8ek8_mode.c .mode = { mode 246 drivers/media/i2c/et8ek8/et8ek8_mode.c .mode = { mode 302 drivers/media/i2c/et8ek8/et8ek8_mode.c .mode = { mode 358 drivers/media/i2c/et8ek8/et8ek8_mode.c .mode = { mode 413 drivers/media/i2c/et8ek8/et8ek8_mode.c .mode = { mode 469 drivers/media/i2c/et8ek8/et8ek8_mode.c .mode = { mode 525 drivers/media/i2c/et8ek8/et8ek8_mode.c .mode = { mode 74 drivers/media/i2c/et8ek8/et8ek8_reg.h struct et8ek8_mode mode; mode 585 drivers/media/i2c/imx214.c const struct imx214_mode *mode; mode 591 drivers/media/i2c/imx214.c mode = v4l2_find_nearest_size(imx214_modes, mode 596 drivers/media/i2c/imx214.c __crop->width = mode->width; mode 597 drivers/media/i2c/imx214.c __crop->height = mode->height; mode 721 drivers/media/i2c/imx214.c const struct imx214_mode *mode; mode 731 drivers/media/i2c/imx214.c mode = v4l2_find_nearest_size(imx214_modes, mode 734 drivers/media/i2c/imx214.c ret = imx214_write_table(imx214, mode->reg_table); mode 816 drivers/media/i2c/imx214.c const struct imx214_mode *mode; mode 821 drivers/media/i2c/imx214.c mode = v4l2_find_nearest_size(imx214_modes, mode 826 drivers/media/i2c/imx214.c fie->width = mode->width; mode 827 drivers/media/i2c/imx214.c fie->height = mode->height; mode 822 drivers/media/i2c/imx258.c static void imx258_update_pad_format(const struct imx258_mode *mode, mode 825 drivers/media/i2c/imx258.c fmt->format.width = mode->width; mode 826 drivers/media/i2c/imx258.c fmt->format.height = mode->height; mode 863 drivers/media/i2c/imx258.c const struct imx258_mode *mode; mode 876 drivers/media/i2c/imx258.c mode = v4l2_find_nearest_size(supported_modes, mode 879 drivers/media/i2c/imx258.c imx258_update_pad_format(mode, fmt); mode 884 drivers/media/i2c/imx258.c imx258->cur_mode = mode; mode 885 drivers/media/i2c/imx258.c __v4l2_ctrl_s_ctrl(imx258->link_freq, mode->link_freq_index); mode 887 drivers/media/i2c/imx258.c link_freq = link_freq_menu_items[mode->link_freq_index]; mode 901 drivers/media/i2c/imx258.c link_freq_configs[mode->link_freq_index].pixels_per_line mode 518 drivers/media/i2c/imx274.c const struct imx274_mode *mode; mode 714 drivers/media/i2c/imx274.c err = imx274_write_table(priv, priv->mode->init_regs); mode 913 drivers/media/i2c/imx274.c imx274->mode = best_mode; mode 1325 drivers/media/i2c/imx274.c imx274->mode - &imx274_modes[0]); mode 1418 drivers/media/i2c/imx274.c if (*frame_length < priv->mode->min_frame_len) mode 1419 drivers/media/i2c/imx274.c *frame_length = priv->mode->min_frame_len; mode 1424 drivers/media/i2c/imx274.c else if (*val < priv->mode->min_SHR) mode 1425 drivers/media/i2c/imx274.c *val = priv->mode->min_SHR; mode 1598 drivers/media/i2c/imx274.c - priv->mode->nocpiop) / hmax; mode 1608 drivers/media/i2c/imx274.c (coarse_time * hmax + priv->mode->nocpiop) mode 1742 drivers/media/i2c/imx274.c if (req_frame_rate > priv->mode->max_fps) { mode 1744 drivers/media/i2c/imx274.c frame_interval.denominator = priv->mode->max_fps; mode 1838 drivers/media/i2c/imx274.c imx274->mode = &imx274_modes[IMX274_DEFAULT_BINNING]; mode 1841 drivers/media/i2c/imx274.c imx274->format.width = imx274->crop.width / imx274->mode->bin_ratio; mode 1842 drivers/media/i2c/imx274.c imx274->format.height = imx274->crop.height / imx274->mode->bin_ratio; mode 1990 drivers/media/i2c/imx319.c const struct imx319_mode *mode, mode 1993 drivers/media/i2c/imx319.c fmt->format.width = mode->width; mode 1994 drivers/media/i2c/imx319.c fmt->format.height = mode->height; mode 2036 drivers/media/i2c/imx319.c const struct imx319_mode *mode; mode 2052 drivers/media/i2c/imx319.c mode = v4l2_find_nearest_size(supported_modes, mode 2056 drivers/media/i2c/imx319.c imx319_update_pad_format(imx319, mode, fmt); mode 2061 drivers/media/i2c/imx319.c imx319->cur_mode = mode; mode 2073 drivers/media/i2c/imx319.c h_blank = mode->llp - imx319->cur_mode->width; mode 2273 drivers/media/i2c/imx319.c const struct imx319_mode *mode; mode 2299 drivers/media/i2c/imx319.c mode = imx319->cur_mode; mode 2300 drivers/media/i2c/imx319.c vblank_def = mode->fll_def - mode->height; mode 2301 drivers/media/i2c/imx319.c vblank_min = mode->fll_min - mode->height; mode 2304 drivers/media/i2c/imx319.c IMX319_FLL_MAX - mode->height, mode 2307 drivers/media/i2c/imx319.c hblank = mode->llp - mode->width; mode 2315 drivers/media/i2c/imx319.c exposure_max = mode->fll_def - 18; mode 1291 drivers/media/i2c/imx355.c const struct imx355_mode *mode, mode 1294 drivers/media/i2c/imx355.c fmt->format.width = mode->width; mode 1295 drivers/media/i2c/imx355.c fmt->format.height = mode->height; mode 1337 drivers/media/i2c/imx355.c const struct imx355_mode *mode; mode 1353 drivers/media/i2c/imx355.c mode = v4l2_find_nearest_size(supported_modes, mode 1357 drivers/media/i2c/imx355.c imx355_update_pad_format(imx355, mode, fmt); mode 1362 drivers/media/i2c/imx355.c imx355->cur_mode = mode; mode 1374 drivers/media/i2c/imx355.c h_blank = mode->llp - imx355->cur_mode->width; mode 1573 drivers/media/i2c/imx355.c const struct imx355_mode *mode; mode 1599 drivers/media/i2c/imx355.c mode = imx355->cur_mode; mode 1600 drivers/media/i2c/imx355.c vblank_def = mode->fll_def - mode->height; mode 1601 drivers/media/i2c/imx355.c vblank_min = mode->fll_min - mode->height; mode 1604 drivers/media/i2c/imx355.c IMX355_FLL_MAX - mode->height, mode 1607 drivers/media/i2c/imx355.c hblank = mode->llp - mode->width; mode 1615 drivers/media/i2c/imx355.c exposure_max = mode->fll_def - 10; mode 239 drivers/media/i2c/m5mols/m5mols.h u8 mode; mode 306 drivers/media/i2c/m5mols/m5mols.h int m5mols_set_mode(struct m5mols_info *info, u8 mode); mode 312 drivers/media/i2c/m5mols/m5mols.h int m5mols_do_scenemode(struct m5mols_info *info, u8 mode); mode 334 drivers/media/i2c/m5mols/m5mols.h unsigned int mode) mode 336 drivers/media/i2c/m5mols/m5mols.h ctrl->priv = (void *)(uintptr_t)mode; mode 130 drivers/media/i2c/m5mols/m5mols_controls.c int m5mols_do_scenemode(struct m5mols_info *info, u8 mode) mode 133 drivers/media/i2c/m5mols/m5mols_controls.c struct m5mols_scenemode scenemode = m5mols_default_scenemode[mode]; mode 136 drivers/media/i2c/m5mols/m5mols_controls.c if (mode > REG_SCENE_CANDLE) mode 141 drivers/media/i2c/m5mols/m5mols_controls.c ret = m5mols_write(sd, AE_EV_PRESET_MONITOR, mode); mode 143 drivers/media/i2c/m5mols/m5mols_controls.c ret = m5mols_write(sd, AE_EV_PRESET_CAPTURE, mode); mode 219 drivers/media/i2c/m5mols/m5mols_controls.c static int m5mols_set_metering_mode(struct m5mols_info *info, int mode) mode 223 drivers/media/i2c/m5mols/m5mols_controls.c switch (mode) { mode 451 drivers/media/i2c/m5mols/m5mols_controls.c int last_mode = info->mode; mode 466 drivers/media/i2c/m5mols/m5mols_controls.c if (ctrl_mode && ctrl_mode != info->mode) { mode 514 drivers/media/i2c/m5mols/m5mols_controls.c if (ret == 0 && info->mode != last_mode) mode 360 drivers/media/i2c/m5mols/m5mols_core.c static int m5mols_reg_mode(struct v4l2_subdev *sd, u8 mode) mode 362 drivers/media/i2c/m5mols/m5mols_core.c int ret = m5mols_write(sd, SYSTEM_SYSMODE, mode); mode 365 drivers/media/i2c/m5mols/m5mols_core.c return m5mols_busy_wait(sd, SYSTEM_SYSMODE, mode, 0xff, mode 378 drivers/media/i2c/m5mols/m5mols_core.c int m5mols_set_mode(struct m5mols_info *info, u8 mode) mode 384 drivers/media/i2c/m5mols/m5mols_core.c if (mode < REG_PARAMETER || mode > REG_CAPTURE) mode 388 drivers/media/i2c/m5mols/m5mols_core.c if (ret || reg == mode) mode 394 drivers/media/i2c/m5mols/m5mols_core.c if (mode == REG_MONITOR) mode 401 drivers/media/i2c/m5mols/m5mols_core.c if (mode == REG_PARAMETER) { mode 411 drivers/media/i2c/m5mols/m5mols_core.c if (mode == REG_MONITOR) mode 418 drivers/media/i2c/m5mols/m5mols_core.c v4l2_warn(sd, "Wrong mode: %d\n", mode); mode 422 drivers/media/i2c/m5mols/m5mols_core.c info->mode = mode; mode 801 drivers/media/i2c/max2175.c static int max2175_rx_mode_from_freq(struct max2175 *ctx, u32 freq, u32 *mode) mode 809 drivers/media/i2c/max2175.c *mode = i; mode 811 drivers/media/i2c/max2175.c freq, *mode); mode 820 drivers/media/i2c/max2175.c u32 mode, u32 freq) mode 824 drivers/media/i2c/max2175.c return (ctx->rx_modes[mode].band == band); mode 246 drivers/media/i2c/ml86v7667.c u8 mode; mode 249 drivers/media/i2c/ml86v7667.c mode = std & V4L2_STD_525_60 ? MRA_NTSC_BT601 : MRA_PAL_BT601; mode 250 drivers/media/i2c/ml86v7667.c ret = ml86v7667_mask_set(client, MRA_REG, MRA_INPUT_MODE_MASK, mode); mode 492 drivers/media/i2c/msp3400-driver.c state->mode = extern_input ? MSP_MODE_EXTERN : MSP_MODE_AM_DETECT; mode 572 drivers/media/i2c/msp3400-driver.c switch (state->mode) { mode 584 drivers/media/i2c/msp3400-driver.c if (state->mode == MSP_MODE_EXTERN) { mode 85 drivers/media/i2c/msp3400-driver.h int mode; mode 146 drivers/media/i2c/msp3400-driver.h void msp3400c_set_mode(struct i2c_client *client, int mode); mode 202 drivers/media/i2c/msp3400-kthreads.c void msp3400c_set_mode(struct i2c_client *client, int mode) mode 205 drivers/media/i2c/msp3400-kthreads.c struct msp3400c_init_data_dem *data = &msp3400c_init_data[mode]; mode 209 drivers/media/i2c/msp3400-kthreads.c dev_dbg_lvl(&client->dev, 1, msp_debug, "set_mode: %d\n", mode); mode 210 drivers/media/i2c/msp3400-kthreads.c state->mode = mode; mode 265 drivers/media/i2c/msp3400-kthreads.c if (state->mode != MSP_MODE_EXTERN) { mode 282 drivers/media/i2c/msp3400-kthreads.c switch (state->mode) { mode 349 drivers/media/i2c/msp3400-kthreads.c if (state->mode == MSP_MODE_AM_NICAM) { mode 384 drivers/media/i2c/msp3400-kthreads.c if (state->mode == MSP_MODE_FM_NICAM1 || state->mode == MSP_MODE_FM_NICAM2) mode 388 drivers/media/i2c/msp3400-kthreads.c if (state->mode == MSP_MODE_AM_NICAM) mode 392 drivers/media/i2c/msp3400-kthreads.c if (state->mode == MSP_MODE_FM_TERRA && state->main != state->second) { mode 409 drivers/media/i2c/msp3400-kthreads.c switch (state->mode) { mode 511 drivers/media/i2c/msp3400-kthreads.c if (state->radio || MSP_MODE_EXTERN == state->mode) { mode 702 drivers/media/i2c/msp3400-kthreads.c if (state->mode == MSP_MODE_EXTERN) { mode 780 drivers/media/i2c/msp3400-kthreads.c state->mode = MSP_MODE_FM_NICAM2; mode 782 drivers/media/i2c/msp3400-kthreads.c state->mode = MSP_MODE_FM_NICAM1; mode 788 drivers/media/i2c/msp3400-kthreads.c state->mode = MSP_MODE_AM_NICAM; mode 794 drivers/media/i2c/msp3400-kthreads.c state->mode = MSP_MODE_BTSC; mode 797 drivers/media/i2c/msp3400-kthreads.c state->mode = MSP_MODE_FM_RADIO; mode 809 drivers/media/i2c/msp3400-kthreads.c state->mode = MSP_MODE_FM_TERRA; mode 999 drivers/media/i2c/msp3400-kthreads.c if (state->mode == MSP_MODE_EXTERN) { mode 1085 drivers/media/i2c/msp3400-kthreads.c if (state->mode == MSP_MODE_EXTERN) mode 701 drivers/media/i2c/mt9m111.c const struct mt9m111_mode_info *mode; mode 746 drivers/media/i2c/mt9m111.c mode = &mt9m111_mode_data[best_gap_idx]; mode 749 drivers/media/i2c/mt9m111.c return mode; mode 1069 drivers/media/i2c/mt9m111.c const struct mt9m111_mode_info *mode; mode 1087 drivers/media/i2c/mt9m111.c mode = mt9m111_find_mode(mt9m111, fps, mt9m111->width, mt9m111->height); mode 1088 drivers/media/i2c/mt9m111.c if (!mode) mode 1091 drivers/media/i2c/mt9m111.c if (mode->max_fps != fps) { mode 1092 drivers/media/i2c/mt9m111.c fract->denominator = mode->max_fps; mode 1096 drivers/media/i2c/mt9m111.c mt9m111->current_mode = mode; mode 284 drivers/media/i2c/mt9t001.c const u16 mode = MT9T001_OUTPUT_CONTROL_CHIP_ENABLE; mode 295 drivers/media/i2c/mt9t001.c return mt9t001_set_output_control(mt9t001, mode, 0); mode 334 drivers/media/i2c/mt9t001.c return mt9t001_set_output_control(mt9t001, 0, mode); mode 303 drivers/media/i2c/mt9v011.c unsigned mode = 0x1000; mode 306 drivers/media/i2c/mt9v011.c mode |= 0x4000; mode 309 drivers/media/i2c/mt9v011.c mode |= 0x8000; mode 311 drivers/media/i2c/mt9v011.c mt9v011_write(sd, R20_MT9V011_READ_MODE, mode); mode 381 drivers/media/i2c/mt9v032.c const u16 mode = MT9V032_CHIP_CONTROL_DOUT_ENABLE mode 391 drivers/media/i2c/mt9v032.c return regmap_update_bits(map, MT9V032_CHIP_CONTROL, mode, 0); mode 424 drivers/media/i2c/mt9v032.c return regmap_update_bits(map, MT9V032_CHIP_CONTROL, mode, mode); mode 1307 drivers/media/i2c/ov13858.c static void ov13858_update_pad_format(const struct ov13858_mode *mode, mode 1310 drivers/media/i2c/ov13858.c fmt->format.width = mode->width; mode 1311 drivers/media/i2c/ov13858.c fmt->format.height = mode->height; mode 1353 drivers/media/i2c/ov13858.c const struct ov13858_mode *mode; mode 1367 drivers/media/i2c/ov13858.c mode = v4l2_find_nearest_size(supported_modes, mode 1371 drivers/media/i2c/ov13858.c ov13858_update_pad_format(mode, fmt); mode 1376 drivers/media/i2c/ov13858.c ov13858->cur_mode = mode; mode 1377 drivers/media/i2c/ov13858.c __v4l2_ctrl_s_ctrl(ov13858->link_freq, mode->link_freq_index); mode 1378 drivers/media/i2c/ov13858.c link_freq = link_freq_menu_items[mode->link_freq_index]; mode 1393 drivers/media/i2c/ov13858.c link_freq_configs[mode->link_freq_index].pixels_per_line mode 1599 drivers/media/i2c/ov13858.c const struct ov13858_mode *mode; mode 1626 drivers/media/i2c/ov13858.c mode = ov13858->cur_mode; mode 1627 drivers/media/i2c/ov13858.c vblank_def = mode->vts_def - mode->height; mode 1628 drivers/media/i2c/ov13858.c vblank_min = mode->vts_min - mode->height; mode 1631 drivers/media/i2c/ov13858.c vblank_min, OV13858_VTS_MAX - mode->height, 1, mode 1634 drivers/media/i2c/ov13858.c hblank = link_freq_configs[mode->link_freq_index].pixels_per_line - mode 1635 drivers/media/i2c/ov13858.c mode->width; mode 1642 drivers/media/i2c/ov13858.c exposure_max = mode->vts_def - 8; mode 286 drivers/media/i2c/ov2680.c const struct ov2680_mode_info *mode) mode 288 drivers/media/i2c/ov2680.c const struct reg_value *regs = mode->reg_data; mode 294 drivers/media/i2c/ov2680.c for (i = 0; i < mode->reg_data_size; ++i, ++regs) { mode 701 drivers/media/i2c/ov2680.c const struct ov2680_mode_info *mode; mode 714 drivers/media/i2c/ov2680.c mode = v4l2_find_nearest_size(ov2680_mode_data, mode 717 drivers/media/i2c/ov2680.c if (!mode) { mode 730 drivers/media/i2c/ov2680.c fmt->width = mode->width; mode 731 drivers/media/i2c/ov2680.c fmt->height = mode->height; mode 735 drivers/media/i2c/ov2680.c sensor->current_mode = mode; mode 321 drivers/media/i2c/ov2685.c static void ov2685_fill_fmt(const struct ov2685_mode *mode, mode 325 drivers/media/i2c/ov2685.c fmt->width = mode->width; mode 326 drivers/media/i2c/ov2685.c fmt->height = mode->height; mode 614 drivers/media/i2c/ov2685.c const struct ov2685_mode *mode; mode 622 drivers/media/i2c/ov2685.c mode = ov2685->cur_mode; mode 638 drivers/media/i2c/ov2685.c h_blank = mode->hts_def - mode->width; mode 645 drivers/media/i2c/ov2685.c V4L2_CID_VBLANK, mode->vts_def - mode->height, mode 646 drivers/media/i2c/ov2685.c OV2685_VTS_MAX - mode->height, 1, mode 647 drivers/media/i2c/ov2685.c mode->vts_def - mode->height); mode 649 drivers/media/i2c/ov2685.c exposure_max = mode->vts_def - 4; mode 653 drivers/media/i2c/ov2685.c mode->exp_def); mode 950 drivers/media/i2c/ov5640.c const struct ov5640_mode_info *mode = sensor->current_mode; mode 960 drivers/media/i2c/ov5640.c if (mode->dn_mode == SCALING || mode 961 drivers/media/i2c/ov5640.c (mode->id == OV5640_MODE_720P_1280_720)) mode 1047 drivers/media/i2c/ov5640.c const struct ov5640_mode_info *mode) mode 1062 drivers/media/i2c/ov5640.c ret = ov5640_write_reg16(sensor, OV5640_REG_VFIFO_HSIZE, mode->hact); mode 1066 drivers/media/i2c/ov5640.c return ov5640_write_reg16(sensor, OV5640_REG_VFIFO_VSIZE, mode->vact); mode 1071 drivers/media/i2c/ov5640.c const struct ov5640_mode_info *mode) mode 1076 drivers/media/i2c/ov5640.c ret = ov5640_set_jpeg_timings(sensor, mode); mode 1081 drivers/media/i2c/ov5640.c ret = ov5640_write_reg16(sensor, OV5640_REG_TIMING_DVPHO, mode->hact); mode 1085 drivers/media/i2c/ov5640.c ret = ov5640_write_reg16(sensor, OV5640_REG_TIMING_DVPVO, mode->vact); mode 1089 drivers/media/i2c/ov5640.c ret = ov5640_write_reg16(sensor, OV5640_REG_TIMING_HTS, mode->htot); mode 1093 drivers/media/i2c/ov5640.c return ov5640_write_reg16(sensor, OV5640_REG_TIMING_VTS, mode->vtot); mode 1097 drivers/media/i2c/ov5640.c const struct ov5640_mode_info *mode) mode 1099 drivers/media/i2c/ov5640.c const struct reg_value *regs = mode->reg_data; mode 1106 drivers/media/i2c/ov5640.c for (i = 0; i < mode->reg_data_size; ++i, ++regs) { mode 1123 drivers/media/i2c/ov5640.c return ov5640_set_timings(sensor, mode); mode 1378 drivers/media/i2c/ov5640.c u8 mode; mode 1381 drivers/media/i2c/ov5640.c ret = ov5640_read_reg(sensor, OV5640_REG_AEC_CTRL00, &mode); mode 1384 drivers/media/i2c/ov5640.c mode &= 0xfb; mode 1385 drivers/media/i2c/ov5640.c return ov5640_write_reg(sensor, OV5640_REG_AEC_CTRL00, mode); mode 1598 drivers/media/i2c/ov5640.c const struct ov5640_mode_info *mode; mode 1600 drivers/media/i2c/ov5640.c mode = v4l2_find_nearest_size(ov5640_mode_data, mode 1605 drivers/media/i2c/ov5640.c if (!mode || mode 1606 drivers/media/i2c/ov5640.c (!nearest && (mode->hact != width || mode->vact != height))) mode 1611 drivers/media/i2c/ov5640.c !(mode->hact == 640 && mode->vact == 480)) mode 1615 drivers/media/i2c/ov5640.c if ((mode->hact == 2592 && mode->vact == 1944) && mode 1619 drivers/media/i2c/ov5640.c return mode; mode 1627 drivers/media/i2c/ov5640.c const struct ov5640_mode_info *mode) mode 1637 drivers/media/i2c/ov5640.c if (!mode->reg_data) mode 1648 drivers/media/i2c/ov5640.c if (ret && mode->id != OV5640_MODE_720P_1280_720 && mode 1649 drivers/media/i2c/ov5640.c mode->id != OV5640_MODE_1080P_1920_1080) mode 1669 drivers/media/i2c/ov5640.c ret = ov5640_load_regs(sensor, mode); mode 1787 drivers/media/i2c/ov5640.c const struct ov5640_mode_info *mode) mode 1789 drivers/media/i2c/ov5640.c if (!mode->reg_data) mode 1793 drivers/media/i2c/ov5640.c return ov5640_load_regs(sensor, mode); mode 1798 drivers/media/i2c/ov5640.c const struct ov5640_mode_info *mode = sensor->current_mode; mode 1806 drivers/media/i2c/ov5640.c dn_mode = mode->dn_mode; mode 1826 drivers/media/i2c/ov5640.c rate = mode->vtot * mode->htot * 16; mode 1845 drivers/media/i2c/ov5640.c ret = ov5640_set_mode_exposure_calc(sensor, mode); mode 1851 drivers/media/i2c/ov5640.c ret = ov5640_set_mode_direct(sensor, mode); mode 1879 drivers/media/i2c/ov5640.c sensor->last_mode = mode; mode 2108 drivers/media/i2c/ov5640.c const struct ov5640_mode_info *mode; mode 2140 drivers/media/i2c/ov5640.c mode = ov5640_find_mode(sensor, rate, width, height, false); mode 2141 drivers/media/i2c/ov5640.c return mode ? rate : -EINVAL; mode 2175 drivers/media/i2c/ov5640.c const struct ov5640_mode_info *mode; mode 2178 drivers/media/i2c/ov5640.c mode = ov5640_find_mode(sensor, fr, fmt->width, fmt->height, true); mode 2179 drivers/media/i2c/ov5640.c if (!mode) mode 2181 drivers/media/i2c/ov5640.c fmt->width = mode->hact; mode 2182 drivers/media/i2c/ov5640.c fmt->height = mode->vact; mode 2185 drivers/media/i2c/ov5640.c *new_mode = mode; mode 2788 drivers/media/i2c/ov5640.c const struct ov5640_mode_info *mode; mode 2801 drivers/media/i2c/ov5640.c mode = sensor->current_mode; mode 2804 drivers/media/i2c/ov5640.c mode->hact, mode->vact); mode 2811 drivers/media/i2c/ov5640.c mode = ov5640_find_mode(sensor, frame_rate, mode->hact, mode 2812 drivers/media/i2c/ov5640.c mode->vact, true); mode 2813 drivers/media/i2c/ov5640.c if (!mode) { mode 2818 drivers/media/i2c/ov5640.c if (mode != sensor->current_mode || mode 2822 drivers/media/i2c/ov5640.c sensor->current_mode = mode; mode 588 drivers/media/i2c/ov5645.c static int ov5645_set_aec_mode(struct ov5645 *ov5645, u32 mode) mode 593 drivers/media/i2c/ov5645.c if (mode == V4L2_EXPOSURE_AUTO) mode 2173 drivers/media/i2c/ov5670.c static void ov5670_update_pad_format(const struct ov5670_mode *mode, mode 2176 drivers/media/i2c/ov5670.c fmt->format.width = mode->width; mode 2177 drivers/media/i2c/ov5670.c fmt->format.height = mode->height; mode 2214 drivers/media/i2c/ov5670.c const struct ov5670_mode *mode; mode 2222 drivers/media/i2c/ov5670.c mode = v4l2_find_nearest_size(supported_modes, mode 2226 drivers/media/i2c/ov5670.c ov5670_update_pad_format(mode, fmt); mode 2230 drivers/media/i2c/ov5670.c ov5670->cur_mode = mode; mode 2231 drivers/media/i2c/ov5670.c __v4l2_ctrl_s_ctrl(ov5670->link_freq, mode->link_freq_index); mode 2234 drivers/media/i2c/ov5670.c link_freq_configs[mode->link_freq_index].pixel_rate); mode 733 drivers/media/i2c/ov5675.c static void ov5675_update_pad_format(const struct ov5675_mode *mode, mode 736 drivers/media/i2c/ov5675.c fmt->width = mode->width; mode 737 drivers/media/i2c/ov5675.c fmt->height = mode->height; mode 864 drivers/media/i2c/ov5675.c const struct ov5675_mode *mode; mode 867 drivers/media/i2c/ov5675.c mode = v4l2_find_nearest_size(supported_modes, mode 873 drivers/media/i2c/ov5675.c ov5675_update_pad_format(mode, &fmt->format); mode 877 drivers/media/i2c/ov5675.c ov5675->cur_mode = mode; mode 878 drivers/media/i2c/ov5675.c __v4l2_ctrl_s_ctrl(ov5675->link_freq, mode->link_freq_index); mode 880 drivers/media/i2c/ov5675.c to_pixel_rate(mode->link_freq_index)); mode 883 drivers/media/i2c/ov5675.c vblank_def = mode->vts_def - mode->height; mode 885 drivers/media/i2c/ov5675.c mode->vts_min - mode->height, mode 886 drivers/media/i2c/ov5675.c OV5675_VTS_MAX - mode->height, 1, mode 889 drivers/media/i2c/ov5675.c h_blank = to_pixels_per_line(mode->hts, mode->link_freq_index) - mode 890 drivers/media/i2c/ov5675.c mode->width; mode 781 drivers/media/i2c/ov5695.c static int ov5695_get_reso_dist(const struct ov5695_mode *mode, mode 784 drivers/media/i2c/ov5695.c return abs(mode->width - framefmt->width) + mode 785 drivers/media/i2c/ov5695.c abs(mode->height - framefmt->height); mode 813 drivers/media/i2c/ov5695.c const struct ov5695_mode *mode; mode 818 drivers/media/i2c/ov5695.c mode = ov5695_find_best_fit(fmt); mode 820 drivers/media/i2c/ov5695.c fmt->format.width = mode->width; mode 821 drivers/media/i2c/ov5695.c fmt->format.height = mode->height; mode 828 drivers/media/i2c/ov5695.c ov5695->cur_mode = mode; mode 829 drivers/media/i2c/ov5695.c h_blank = mode->hts_def - mode->width; mode 832 drivers/media/i2c/ov5695.c vblank_def = mode->vts_def - mode->height; mode 834 drivers/media/i2c/ov5695.c OV5695_VTS_MAX - mode->height, mode 848 drivers/media/i2c/ov5695.c const struct ov5695_mode *mode = ov5695->cur_mode; mode 859 drivers/media/i2c/ov5695.c fmt->format.width = mode->width; mode 860 drivers/media/i2c/ov5695.c fmt->format.height = mode->height; mode 1169 drivers/media/i2c/ov5695.c const struct ov5695_mode *mode; mode 1177 drivers/media/i2c/ov5695.c mode = ov5695->cur_mode; mode 1191 drivers/media/i2c/ov5695.c h_blank = mode->hts_def - mode->width; mode 1197 drivers/media/i2c/ov5695.c vblank_def = mode->vts_def - mode->height; mode 1200 drivers/media/i2c/ov5695.c OV5695_VTS_MAX - mode->height, mode 1203 drivers/media/i2c/ov5695.c exposure_max = mode->vts_def - 4; mode 1207 drivers/media/i2c/ov5695.c mode->exp_def); mode 1003 drivers/media/i2c/ov7251.c const struct ov7251_mode_info *mode = ov7251->current_mode; mode 1012 drivers/media/i2c/ov7251.c if (mode->width != ov7251_mode_info_data[i].width || mode 1013 drivers/media/i2c/ov7251.c mode->height != ov7251_mode_info_data[i].height) mode 823 drivers/media/i2c/ov8856.c static void ov8856_update_pad_format(const struct ov8856_mode *mode, mode 826 drivers/media/i2c/ov8856.c fmt->width = mode->width; mode 827 drivers/media/i2c/ov8856.c fmt->height = mode->height; mode 954 drivers/media/i2c/ov8856.c const struct ov8856_mode *mode; mode 957 drivers/media/i2c/ov8856.c mode = v4l2_find_nearest_size(supported_modes, mode 963 drivers/media/i2c/ov8856.c ov8856_update_pad_format(mode, &fmt->format); mode 967 drivers/media/i2c/ov8856.c ov8856->cur_mode = mode; mode 968 drivers/media/i2c/ov8856.c __v4l2_ctrl_s_ctrl(ov8856->link_freq, mode->link_freq_index); mode 970 drivers/media/i2c/ov8856.c to_pixel_rate(mode->link_freq_index)); mode 973 drivers/media/i2c/ov8856.c vblank_def = mode->vts_def - mode->height; mode 975 drivers/media/i2c/ov8856.c mode->vts_min - mode->height, mode 976 drivers/media/i2c/ov8856.c OV8856_VTS_MAX - mode->height, 1, mode 979 drivers/media/i2c/ov8856.c h_blank = to_pixels_per_line(mode->hts, mode->link_freq_index) - mode 980 drivers/media/i2c/ov8856.c mode->width; mode 416 drivers/media/i2c/s5c73m3/s5c73m3-core.c u16 mode; mode 421 drivers/media/i2c/s5c73m3/s5c73m3-core.c mode = COMM_IMG_OUTPUT_INTERLEAVED; mode 423 drivers/media/i2c/s5c73m3/s5c73m3-core.c mode = COMM_IMG_OUTPUT_YUV; mode 425 drivers/media/i2c/s5c73m3/s5c73m3-core.c ret = s5c73m3_isp_command(state, COMM_IMG_OUTPUT, mode); mode 217 drivers/media/i2c/s5c73m3/s5c73m3-ctrls.c u16 mode = (c->af_distance->val == V4L2_AUTO_FOCUS_RANGE_MACRO) mode 219 drivers/media/i2c/s5c73m3/s5c73m3-ctrls.c ret = s5c73m3_isp_command(state, COMM_AF_MODE, mode); mode 1160 drivers/media/i2c/smiapp/smiapp-core.c strobe_setup->mode); mode 1948 drivers/media/i2c/smiapp/smiapp-core.c int mode = SMIAPP_SCALING_MODE_HORIZONTAL; mode 2009 drivers/media/i2c/smiapp/smiapp-core.c mode = SMIAPP_SCALING_MODE_HORIZONTAL; mode 2030 drivers/media/i2c/smiapp/smiapp-core.c mode = SMIAPP_SCALING_MODE_BOTH; mode 2039 drivers/media/i2c/smiapp/smiapp-core.c if (mode == SMIAPP_SCALING_MODE_BOTH) mode 2050 drivers/media/i2c/smiapp/smiapp-core.c sensor->scaling_mode = mode; mode 163 drivers/media/i2c/sony-btf-mpx.c int mode = t->mpxmode; mode 178 drivers/media/i2c/sony-btf-mpx.c mode++; mode 180 drivers/media/i2c/sony-btf-mpx.c if (mpx_audio_modes[mode].audio_mode != AUD_MONO) { mode 183 drivers/media/i2c/sony-btf-mpx.c switch (mpx_audio_modes[mode].audio_mode) { mode 185 drivers/media/i2c/sony-btf-mpx.c source = mpx_audio_modes[mode].source; mode 198 drivers/media/i2c/sony-btf-mpx.c source = mpx_audio_modes[mode].source; mode 207 drivers/media/i2c/sony-btf-mpx.c source |= mpx_audio_modes[mode].source & 0x00ff; mode 209 drivers/media/i2c/sony-btf-mpx.c source = mpx_audio_modes[mode].source; mode 211 drivers/media/i2c/sony-btf-mpx.c mpx_write(client, 0x10, 0x0030, mpx_audio_modes[mode].modus); mode 213 drivers/media/i2c/sony-btf-mpx.c mpx_write(client, 0x12, 0x0013, mpx_audio_modes[mode].acb); mode 215 drivers/media/i2c/sony-btf-mpx.c mpx_audio_modes[mode].fm_prescale); mode 217 drivers/media/i2c/sony-btf-mpx.c mpx_audio_modes[mode].nicam_prescale); mode 219 drivers/media/i2c/sony-btf-mpx.c mpx_audio_modes[mode].scart_prescale); mode 220 drivers/media/i2c/sony-btf-mpx.c mpx_write(client, 0x10, 0x0020, mpx_audio_modes[mode].system); mode 221 drivers/media/i2c/sony-btf-mpx.c mpx_write(client, 0x12, 0x0000, mpx_audio_modes[mode].volume); mode 222 drivers/media/i2c/sony-btf-mpx.c if (mpx_audio_modes[mode].audio_mode == AUD_A2) mode 233 drivers/media/i2c/sony-btf-mpx.c mpx_audio_modes[mode].modus, mode 235 drivers/media/i2c/sony-btf-mpx.c mpx_audio_modes[mode].acb, mode 236 drivers/media/i2c/sony-btf-mpx.c mpx_audio_modes[mode].fm_prescale, mode 237 drivers/media/i2c/sony-btf-mpx.c mpx_audio_modes[mode].nicam_prescale, mode 238 drivers/media/i2c/sony-btf-mpx.c mpx_audio_modes[mode].scart_prescale, mode 239 drivers/media/i2c/sony-btf-mpx.c mpx_audio_modes[mode].system, mode 240 drivers/media/i2c/sony-btf-mpx.c mpx_audio_modes[mode].volume); mode 502 drivers/media/i2c/tda1997x.c static int tda1997x_manual_hpd(struct v4l2_subdev *sd, enum hpd_mode mode) mode 516 drivers/media/i2c/tda1997x.c switch (mode) { mode 83 drivers/media/i2c/ths7303.c enum ths7303_filter_mode mode) mode 94 drivers/media/i2c/ths7303.c switch (mode) { mode 65 drivers/media/i2c/tvaudio.c typedef void (*setaudmode)(struct CHIPSTATE*, int mode); mode 330 drivers/media/i2c/tvaudio.c int mode, selected; mode 349 drivers/media/i2c/tvaudio.c mode = desc->getrxsubchans(chip); mode 350 drivers/media/i2c/tvaudio.c if (mode == chip->prevmode) mode 356 drivers/media/i2c/tvaudio.c chip->prevmode = mode; mode 361 drivers/media/i2c/tvaudio.c if (mode & V4L2_TUNER_SUB_LANG1) mode 366 drivers/media/i2c/tvaudio.c if (mode & V4L2_TUNER_SUB_LANG1) mode 368 drivers/media/i2c/tvaudio.c else if (mode & V4L2_TUNER_SUB_STEREO) mode 372 drivers/media/i2c/tvaudio.c if (mode & V4L2_TUNER_SUB_LANG2) mode 374 drivers/media/i2c/tvaudio.c else if (mode & V4L2_TUNER_SUB_STEREO) mode 378 drivers/media/i2c/tvaudio.c if (mode & V4L2_TUNER_SUB_LANG2) mode 380 drivers/media/i2c/tvaudio.c else if (mode & V4L2_TUNER_SUB_STEREO) mode 419 drivers/media/i2c/tvaudio.c int val, mode; mode 421 drivers/media/i2c/tvaudio.c mode = V4L2_TUNER_SUB_MONO; mode 425 drivers/media/i2c/tvaudio.c return mode; mode 428 drivers/media/i2c/tvaudio.c mode |= V4L2_TUNER_SUB_LANG1 | V4L2_TUNER_SUB_LANG2; mode 430 drivers/media/i2c/tvaudio.c mode = V4L2_TUNER_SUB_STEREO; mode 434 drivers/media/i2c/tvaudio.c val, mode); mode 435 drivers/media/i2c/tvaudio.c return mode; mode 438 drivers/media/i2c/tvaudio.c static void tda9840_setaudmode(struct CHIPSTATE *chip, int mode) mode 443 drivers/media/i2c/tvaudio.c switch (mode) { mode 587 drivers/media/i2c/tvaudio.c int mode, val; mode 591 drivers/media/i2c/tvaudio.c mode = V4L2_TUNER_SUB_MONO; mode 594 drivers/media/i2c/tvaudio.c return mode; mode 597 drivers/media/i2c/tvaudio.c mode = V4L2_TUNER_SUB_STEREO; mode 599 drivers/media/i2c/tvaudio.c mode |= V4L2_TUNER_SUB_SAP; mode 600 drivers/media/i2c/tvaudio.c return mode; mode 603 drivers/media/i2c/tvaudio.c static void tda985x_setaudmode(struct CHIPSTATE *chip, int mode) mode 608 drivers/media/i2c/tvaudio.c switch (mode) { mode 751 drivers/media/i2c/tvaudio.c int val,mode; mode 753 drivers/media/i2c/tvaudio.c mode = V4L2_TUNER_SUB_MONO; mode 757 drivers/media/i2c/tvaudio.c return mode; mode 760 drivers/media/i2c/tvaudio.c mode = V4L2_TUNER_SUB_STEREO; mode 762 drivers/media/i2c/tvaudio.c mode |= V4L2_TUNER_SUB_LANG1 | V4L2_TUNER_SUB_LANG2; mode 765 drivers/media/i2c/tvaudio.c val, mode); mode 766 drivers/media/i2c/tvaudio.c return mode; mode 769 drivers/media/i2c/tvaudio.c static void tda9873_setaudmode(struct CHIPSTATE *chip, int mode) mode 787 drivers/media/i2c/tvaudio.c switch (mode) { mode 810 drivers/media/i2c/tvaudio.c mode, sw_data); mode 959 drivers/media/i2c/tvaudio.c int dsr,nsr,mode; mode 962 drivers/media/i2c/tvaudio.c mode = V4L2_TUNER_SUB_MONO; mode 966 drivers/media/i2c/tvaudio.c return mode; mode 969 drivers/media/i2c/tvaudio.c return mode; mode 972 drivers/media/i2c/tvaudio.c return mode; mode 988 drivers/media/i2c/tvaudio.c mode = V4L2_TUNER_SUB_STEREO; mode 990 drivers/media/i2c/tvaudio.c mode |= V4L2_TUNER_SUB_LANG1 | V4L2_TUNER_SUB_LANG2; mode 993 drivers/media/i2c/tvaudio.c mode = V4L2_TUNER_SUB_STEREO; mode 995 drivers/media/i2c/tvaudio.c mode |= V4L2_TUNER_SUB_LANG1 | V4L2_TUNER_SUB_LANG2; mode 1000 drivers/media/i2c/tvaudio.c dsr, nsr, necr, mode); mode 1001 drivers/media/i2c/tvaudio.c return mode; mode 1004 drivers/media/i2c/tvaudio.c static void tda9874a_setaudmode(struct CHIPSTATE *chip, int mode) mode 1028 drivers/media/i2c/tvaudio.c switch(mode) { mode 1052 drivers/media/i2c/tvaudio.c mode, aosr, mdacosr); mode 1057 drivers/media/i2c/tvaudio.c switch(mode) { mode 1091 drivers/media/i2c/tvaudio.c mode, fmmr, aosr); mode 1341 drivers/media/i2c/tvaudio.c static void tda8425_setaudmode(struct CHIPSTATE *chip, int mode) mode 1345 drivers/media/i2c/tvaudio.c switch (mode) { mode 1422 drivers/media/i2c/tvaudio.c int val, mode; mode 1424 drivers/media/i2c/tvaudio.c mode = V4L2_TUNER_SUB_MONO; mode 1428 drivers/media/i2c/tvaudio.c return mode; mode 1431 drivers/media/i2c/tvaudio.c mode |= V4L2_TUNER_SUB_LANG1 | V4L2_TUNER_SUB_LANG2; mode 1433 drivers/media/i2c/tvaudio.c mode = V4L2_TUNER_SUB_STEREO; mode 1438 drivers/media/i2c/tvaudio.c return mode; mode 1447 drivers/media/i2c/tvaudio.c static void ta8874z_setaudmode(struct CHIPSTATE *chip, int mode) mode 1453 drivers/media/i2c/tvaudio.c v4l2_dbg(1, debug, sd, "ta8874z_setaudmode(): mode: 0x%02x\n", mode); mode 1455 drivers/media/i2c/tvaudio.c switch(mode){ mode 39 drivers/media/i2c/upd64083.c u8 mode; mode 98 drivers/media/i2c/upd64083.c state->mode = (input & 3) << 6; mode 100 drivers/media/i2c/upd64083.c r00 = (state->regs[R00] & ~(3 << 6)) | state->mode; mode 176 drivers/media/i2c/upd64083.c state->mode = 0; /* YCS mode */ mode 407 drivers/media/pci/bt8xx/dvb-bt8xx.c static void or51211_setmode(struct dvb_frontend * fe, int mode) mode 410 drivers/media/pci/bt8xx/dvb-bt8xx.c bttv_write_gpio(bt->bttv_nr, 0x0002, mode); /* Reset */ mode 555 drivers/media/pci/cobalt/cobalt-driver.c .mode = ADV7842_MODE_HDMI, mode 763 drivers/media/pci/cx18/cx18-av-core.c u8 mode; mode 776 drivers/media/pci/cx18/cx18-av-core.c mode = cx18_av_read(cx, 0x804); mode 779 drivers/media/pci/cx18/cx18-av-core.c if ((mode & 0xf) == 1) mode 784 drivers/media/pci/cx18/cx18-av-core.c if (mode == 2 || mode == 4) mode 787 drivers/media/pci/cx18/cx18-av-core.c if (mode & 0x10) mode 736 drivers/media/pci/cx18/cx18-mailbox.c u32 mode; mode 739 drivers/media/pci/cx18/cx18-mailbox.c mode = (cx->filter_mode & 1) ? 2 : (cx->spatial_strength ? 1 : 0); mode 741 drivers/media/pci/cx18/cx18-mailbox.c s->handle, 1, mode, cx->spatial_strength); mode 742 drivers/media/pci/cx18/cx18-mailbox.c mode = (cx->filter_mode & 2) ? 2 : (cx->temporal_strength ? 1 : 0); mode 744 drivers/media/pci/cx18/cx18-mailbox.c s->handle, 0, mode, cx->temporal_strength); mode 153 drivers/media/pci/cx23885/cx23885-input.c params.mode = V4L2_SUBDEV_IR_MODE_PULSE_WIDTH; mode 181 drivers/media/pci/cx23885/cx23885-input.c params.mode = V4L2_SUBDEV_IR_MODE_PULSE_WIDTH; mode 969 drivers/media/pci/cx23885/cx23885-video.c .mode = V4L2_TUNER_ANALOG_TV, mode 743 drivers/media/pci/cx23885/cx23888-ir.c if (p->mode != V4L2_SUBDEV_IR_MODE_PULSE_WIDTH) mode 750 drivers/media/pci/cx23885/cx23888-ir.c o->mode = p->mode = V4L2_SUBDEV_IR_MODE_PULSE_WIDTH; mode 871 drivers/media/pci/cx23885/cx23888-ir.c if (p->mode != V4L2_SUBDEV_IR_MODE_PULSE_WIDTH) mode 878 drivers/media/pci/cx23885/cx23888-ir.c o->mode = p->mode = V4L2_SUBDEV_IR_MODE_PULSE_WIDTH; mode 1126 drivers/media/pci/cx23885/cx23888-ir.c .mode = V4L2_SUBDEV_IR_MODE_PULSE_WIDTH, mode 1145 drivers/media/pci/cx23885/cx23888-ir.c .mode = V4L2_SUBDEV_IR_MODE_PULSE_WIDTH, mode 2991 drivers/media/pci/cx88/cx88-cards.c int command, int mode) mode 113 drivers/media/pci/cx88/cx88-tvaudio.c static void set_audio_start(struct cx88_core *core, u32 mode) mode 119 drivers/media/pci/cx88/cx88-tvaudio.c cx_write(AUD_INIT, mode); mode 163 drivers/media/pci/cx88/cx88-tvaudio.c u32 mode) mode 257 drivers/media/pci/cx88/cx88-tvaudio.c mode |= EN_FMRADIO_EN_RDS; mode 263 drivers/media/pci/cx88/cx88-tvaudio.c set_audio_finish(core, mode); mode 268 drivers/media/pci/cx88/cx88-tvaudio.c set_audio_finish(core, mode); mode 272 drivers/media/pci/cx88/cx88-tvaudio.c static void set_audio_standard_NICAM(struct cx88_core *core, u32 mode) mode 369 drivers/media/pci/cx88/cx88-tvaudio.c mode |= EN_DMTRX_LR | EN_DMTRX_BYPASS; mode 370 drivers/media/pci/cx88/cx88-tvaudio.c set_audio_finish(core, mode); mode 373 drivers/media/pci/cx88/cx88-tvaudio.c static void set_audio_standard_A2(struct cx88_core *core, u32 mode) mode 634 drivers/media/pci/cx88/cx88-tvaudio.c mode |= EN_FMRADIO_EN_RDS | EN_DMTRX_SUMDIFF; mode 635 drivers/media/pci/cx88/cx88-tvaudio.c set_audio_finish(core, mode); mode 814 drivers/media/pci/cx88/cx88-tvaudio.c u32 reg, mode, pilot; mode 817 drivers/media/pci/cx88/cx88-tvaudio.c mode = reg & 0x03; mode 822 drivers/media/pci/cx88/cx88-tvaudio.c reg, m[mode], p[pilot], mode 831 drivers/media/pci/cx88/cx88-tvaudio.c switch (mode) { mode 881 drivers/media/pci/cx88/cx88-tvaudio.c void cx88_set_stereo(struct cx88_core *core, u32 mode, int manual) mode 887 drivers/media/pci/cx88/cx88-tvaudio.c core->audiomode_manual = mode; mode 892 drivers/media/pci/cx88/cx88-tvaudio.c core->audiomode_current = mode; mode 896 drivers/media/pci/cx88/cx88-tvaudio.c switch (mode) { mode 918 drivers/media/pci/cx88/cx88-tvaudio.c switch (mode) { mode 942 drivers/media/pci/cx88/cx88-tvaudio.c switch (mode) { mode 959 drivers/media/pci/cx88/cx88-tvaudio.c switch (mode) { mode 991 drivers/media/pci/cx88/cx88-tvaudio.c u32 mode = 0; mode 1020 drivers/media/pci/cx88/cx88-tvaudio.c mode = V4L2_TUNER_MODE_STEREO; mode 1022 drivers/media/pci/cx88/cx88-tvaudio.c mode = V4L2_TUNER_MODE_MONO; mode 1023 drivers/media/pci/cx88/cx88-tvaudio.c if (mode == core->audiomode_current) mode 1026 drivers/media/pci/cx88/cx88-tvaudio.c cx88_set_stereo(core, mode, 0); mode 686 drivers/media/pci/cx88/cx88.h void cx88_set_stereo(struct cx88_core *core, u32 mode, int manual); mode 2727 drivers/media/pci/ddbridge/ddbridge-core.c static char *ddb_devnode(struct device *device, umode_t *mode) mode 2735 drivers/media/pci/ddbridge/ddbridge-core.c .attr = { .name = __stringify(_name), .mode = 0444 }, \ mode 2740 drivers/media/pci/ddbridge/ddbridge-core.c .attr = { .name = __stringify(_name), .mode = 0222 }, \ mode 175 drivers/media/pci/ddbridge/ddbridge-mci.h u8 mode; mode 326 drivers/media/pci/ivtv/ivtv-driver.c int ivtv_set_output_mode(struct ivtv *itv, int mode) mode 333 drivers/media/pci/ivtv/ivtv-driver.c itv->output_mode = old_mode = mode; mode 778 drivers/media/pci/ivtv/ivtv-driver.h int ivtv_set_output_mode(struct ivtv *itv, int mode); mode 545 drivers/media/pci/ivtv/ivtv-fileops.c int mode; mode 570 drivers/media/pci/ivtv/ivtv-fileops.c mode = s->type == IVTV_DEC_STREAM_TYPE_MPG ? OUT_MPG : OUT_YUV; mode 572 drivers/media/pci/ivtv/ivtv-fileops.c if (ivtv_set_output_mode(itv, mode) != mode) { mode 593 drivers/media/pci/ivtv/ivtv-fileops.c if (mode == OUT_YUV && s->q_full.length == 0 && itv->dma_data_req_size) { mode 679 drivers/media/pci/ivtv/ivtv-fileops.c if (mode == OUT_YUV) mode 1523 drivers/media/pci/ivtv/ivtv-ioctl.c int mode = itv->output_mode; mode 1559 drivers/media/pci/ivtv/ivtv-ioctl.c if (mode < 0 || mode > OUT_PASSTHROUGH) mode 1560 drivers/media/pci/ivtv/ivtv-ioctl.c mode = OUT_NONE; mode 1561 drivers/media/pci/ivtv/ivtv-ioctl.c IVTV_INFO("Output Mode: %s\n", output_modes[mode]); mode 32 drivers/media/pci/ivtv/ivtv-vbi.c static void ivtv_set_cc(struct ivtv *itv, int mode, const struct vbi_cc *cc) mode 40 drivers/media/pci/ivtv/ivtv-vbi.c data.line = (mode & 1) ? 21 : 0; mode 45 drivers/media/pci/ivtv/ivtv-vbi.c data.line = (mode & 2) ? 21 : 0; mode 51 drivers/media/pci/ivtv/ivtv-vbi.c static void ivtv_set_wss(struct ivtv *itv, int enabled, int mode) mode 64 drivers/media/pci/ivtv/ivtv-vbi.c mode = 0x08; /* 4x3 full format */ mode 69 drivers/media/pci/ivtv/ivtv-vbi.c data.data[0] = mode & 0xff; mode 70 drivers/media/pci/ivtv/ivtv-vbi.c data.data[1] = (mode >> 8) & 0xff; mode 484 drivers/media/pci/ivtv/ivtv-vbi.c int mode = 0; mode 489 drivers/media/pci/ivtv/ivtv-vbi.c mode |= 1; mode 495 drivers/media/pci/ivtv/ivtv-vbi.c mode |= 2; mode 499 drivers/media/pci/ivtv/ivtv-vbi.c if (mode) { mode 501 drivers/media/pci/ivtv/ivtv-vbi.c ivtv_set_cc(itv, mode, &cc); mode 491 drivers/media/pci/meye/meye.c static void mchip_vrj_setup(u8 mode) mode 497 drivers/media/pci/meye/meye.c mchip_set(MCHIP_VRJ_MODE_SPECIFY, mode); mode 65 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c .mode = SPI_MODE_0, mode 80 drivers/media/pci/ngene/ngene-core.c if (chan->mode & NGENE_IO_TSOUT) { mode 515 drivers/media/pci/ngene/ngene-core.c if (chan->mode & NGENE_IO_TSOUT) mode 522 drivers/media/pci/ngene/ngene-core.c if (chan->mode & NGENE_IO_TSOUT) { mode 541 drivers/media/pci/ngene/ngene-core.c u8 control, u8 mode, u8 flags) mode 555 drivers/media/pci/ngene/ngene-core.c if (chan->mode & NGENE_IO_TSOUT) mode 559 drivers/media/pci/ngene/ngene-core.c com.cmd.StreamControl.Mode = mode; mode 567 drivers/media/pci/ngene/ngene-core.c chan->Mode = mode; mode 585 drivers/media/pci/ngene/ngene-core.c if (mode & SMODE_AUDIO_CAPTURE) { mode 589 drivers/media/pci/ngene/ngene-core.c } else if (mode & SMODE_TRANSPORT_STREAM) { mode 596 drivers/media/pci/ngene/ngene-core.c if (chan->mode & NGENE_IO_TSOUT) { mode 607 drivers/media/pci/ngene/ngene-core.c if (mode & SMODE_VBI_CAPTURE) { mode 619 drivers/media/pci/ngene/ngene-core.c if (mode & SMODE_AUDIO_CAPTURE) { mode 621 drivers/media/pci/ngene/ngene-core.c if (mode & SMODE_AUDIO_SPDIF) { mode 634 drivers/media/pci/ngene/ngene-core.c } else if (mode & SMODE_TRANSPORT_STREAM) { mode 637 drivers/media/pci/ngene/ngene-core.c if (chan->mode & NGENE_IO_TSOUT) { mode 671 drivers/media/pci/ngene/ngene-core.c if (mode & SMODE_TRANSPORT_STREAM) mode 686 drivers/media/pci/ngene/ngene-core.c u8 control = 0, mode = 0, flags = 0; mode 717 drivers/media/pci/ngene/ngene-core.c if (chan->mode & (NGENE_IO_TSIN | NGENE_IO_TSOUT)) { mode 719 drivers/media/pci/ngene/ngene-core.c mode = SMODE_TRANSPORT_STREAM; mode 721 drivers/media/pci/ngene/ngene-core.c if (chan->mode & NGENE_IO_TSOUT) { mode 727 drivers/media/pci/ngene/ngene-core.c if (chan->mode & NGENE_IO_TSIN) mode 736 drivers/media/pci/ngene/ngene-core.c control, mode, flags); mode 1451 drivers/media/pci/ngene/ngene-core.c chan->mode = chan->type; /* for now only one mode */ mode 643 drivers/media/pci/ngene/ngene.h int mode; mode 7191 drivers/media/pci/saa7134/saa7134-cards.c enum tda18271_mode mode) mode 7194 drivers/media/pci/saa7134/saa7134-cards.c switch (mode) { mode 7208 drivers/media/pci/saa7134/saa7134-cards.c enum tda18271_mode mode) mode 7211 drivers/media/pci/saa7134/saa7134-cards.c switch (mode) { mode 7232 drivers/media/pci/saa7134/saa7134-cards.c enum tda18271_mode mode) mode 7234 drivers/media/pci/saa7134/saa7134-cards.c switch (mode) { mode 103 drivers/media/pci/saa7134/saa7134-core.c unsigned long mode,status; mode 110 drivers/media/pci/saa7134/saa7134-core.c mode = saa_readl(SAA7134_GPIO_GPMODE0 >> 2) & 0xfffffff; mode 113 drivers/media/pci/saa7134/saa7134-core.c dev->name, mode, (~mode) & status, mode & status, msg); mode 80 drivers/media/pci/saa7134/saa7134-tvaudio.c .mode = TVAUDIO_FM_BG_STEREO, mode 88 drivers/media/pci/saa7134/saa7134-tvaudio.c .mode = TVAUDIO_FM_BG_STEREO, mode 94 drivers/media/pci/saa7134/saa7134-tvaudio.c .mode = TVAUDIO_FM_BG_STEREO, mode 100 drivers/media/pci/saa7134/saa7134-tvaudio.c .mode = TVAUDIO_FM_BG_STEREO, mode 106 drivers/media/pci/saa7134/saa7134-tvaudio.c .mode = TVAUDIO_NICAM_FM, mode 112 drivers/media/pci/saa7134/saa7134-tvaudio.c .mode = TVAUDIO_NICAM_FM, mode 118 drivers/media/pci/saa7134/saa7134-tvaudio.c .mode = TVAUDIO_NICAM_FM, mode 124 drivers/media/pci/saa7134/saa7134-tvaudio.c .mode = TVAUDIO_NICAM_AM, mode 130 drivers/media/pci/saa7134/saa7134-tvaudio.c .mode = TVAUDIO_NICAM_FM, mode 136 drivers/media/pci/saa7134/saa7134-tvaudio.c .mode = TVAUDIO_FM_K_STEREO, mode 142 drivers/media/pci/saa7134/saa7134-tvaudio.c .mode = TVAUDIO_FM_MONO, mode 266 drivers/media/pci/saa7134/saa7134-tvaudio.c switch (audio->mode) { mode 371 drivers/media/pci/saa7134/saa7134-tvaudio.c switch (audio->mode) { mode 422 drivers/media/pci/saa7134/saa7134-tvaudio.c u32 mode) mode 440 drivers/media/pci/saa7134/saa7134-tvaudio.c switch (audio->mode) { mode 449 drivers/media/pci/saa7134/saa7134-tvaudio.c name[mode % ARRAY_SIZE(name)]); mode 450 drivers/media/pci/saa7134/saa7134-tvaudio.c reg = fm[ mode % ARRAY_SIZE(fm) ]; mode 465 drivers/media/pci/saa7134/saa7134-tvaudio.c int max1,max2,carrier,rx,mode,lastmode,default_carrier; mode 592 drivers/media/pci/saa7134/saa7134-tvaudio.c if (UNSET == dev->thread.mode) { mode 594 drivers/media/pci/saa7134/saa7134-tvaudio.c mode = saa7134_tvaudio_rx2mode(rx); mode 596 drivers/media/pci/saa7134/saa7134-tvaudio.c mode = dev->thread.mode; mode 598 drivers/media/pci/saa7134/saa7134-tvaudio.c if (lastmode != mode) { mode 599 drivers/media/pci/saa7134/saa7134-tvaudio.c tvaudio_setstereo(dev,&tvaudio[audio],mode); mode 600 drivers/media/pci/saa7134/saa7134-tvaudio.c lastmode = mode; mode 895 drivers/media/pci/saa7134/saa7134-tvaudio.c u32 mode; mode 897 drivers/media/pci/saa7134/saa7134-tvaudio.c mode = V4L2_TUNER_MODE_MONO; mode 899 drivers/media/pci/saa7134/saa7134-tvaudio.c mode = V4L2_TUNER_MODE_STEREO; mode 901 drivers/media/pci/saa7134/saa7134-tvaudio.c mode = V4L2_TUNER_MODE_LANG1; mode 903 drivers/media/pci/saa7134/saa7134-tvaudio.c mode = V4L2_TUNER_MODE_LANG2; mode 904 drivers/media/pci/saa7134/saa7134-tvaudio.c return mode; mode 1053 drivers/media/pci/saa7134/saa7134-tvaudio.c dev->thread.mode = UNSET; mode 1717 drivers/media/pci/saa7134/saa7134-video.c int rx, mode; mode 1722 drivers/media/pci/saa7134/saa7134-video.c mode = dev->thread.mode; mode 1723 drivers/media/pci/saa7134/saa7134-video.c if (UNSET == mode) { mode 1725 drivers/media/pci/saa7134/saa7134-video.c mode = saa7134_tvaudio_rx2mode(rx); mode 1727 drivers/media/pci/saa7134/saa7134-video.c if (mode != t->audmode) mode 1728 drivers/media/pci/saa7134/saa7134-video.c dev->thread.mode = t->audmode; mode 95 drivers/media/pci/saa7134/saa7134.h enum saa7134_tvaudio_mode mode; mode 458 drivers/media/pci/saa7134/saa7134.h unsigned int mode; mode 24 drivers/media/pci/saa7164/saa7164-api.c i->mode = 0; mode 579 drivers/media/pci/saa7164/saa7164-api.c p.mode = TU_STANDARD_AUTO; mode 581 drivers/media/pci/saa7164/saa7164-api.c p.mode = TU_STANDARD_MANUAL; mode 767 drivers/media/pci/saa7164/saa7164-api.c int saa7164_api_transition_port(struct saa7164_port *port, u8 mode) mode 774 drivers/media/pci/saa7164/saa7164-api.c __func__, port->nr, port->hwcfg.unitid, mode); mode 777 drivers/media/pci/saa7164/saa7164-api.c SAA_STATE_CONTROL, sizeof(mode), &mode); mode 718 drivers/media/pci/saa7164/saa7164-core.c dev->fw_status.mode = saa7164_readl(SAA_DEVICE_SYSINIT_MODE); mode 727 drivers/media/pci/saa7164/saa7164-core.c dprintk(1, " .mode = 0x%08x\n", s->mode); mode 364 drivers/media/pci/saa7164/saa7164-encoder.c .mode = V4L2_TUNER_ANALOG_TV, mode 377 drivers/media/pci/saa7164/saa7164-types.h u8 mode; mode 421 drivers/media/pci/saa7164/saa7164-types.h u32 mode; mode 215 drivers/media/pci/saa7164/saa7164.h u32 mode; mode 529 drivers/media/pci/saa7164/saa7164.h int saa7164_api_transition_port(struct saa7164_port *port, u8 mode); mode 436 drivers/media/pci/solo6x10/solo6x10-core.c sdram_attr->attr.mode = 0440; mode 20 drivers/media/pci/solo6x10/solo6x10-gpio.c unsigned int port_mask, unsigned int mode) mode 33 drivers/media/pci/solo6x10/solo6x10-gpio.c ret |= ((mode & 3) << (port << 1)); mode 45 drivers/media/pci/solo6x10/solo6x10-gpio.c if (!mode) mode 100 drivers/media/pci/solo6x10/solo6x10-gpio.c int ret, mode; mode 105 drivers/media/pci/solo6x10/solo6x10-gpio.c mode = 3 & (ret >> ((offset + 8) * 2)); mode 108 drivers/media/pci/solo6x10/solo6x10-gpio.c mode = 1 & (ret >> (offset - 8)); mode 111 drivers/media/pci/solo6x10/solo6x10-gpio.c if (!mode) mode 113 drivers/media/pci/solo6x10/solo6x10-gpio.c else if (mode == 1) mode 145 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c solo_enc->interlaced = (solo_enc->mode & 0x08) ? 1 : 0; mode 148 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c if (solo_enc->mode == SOLO_ENC_MODE_CIF) { mode 261 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c solo_reg_write(solo_dev, SOLO_CAP_CH_SCALE(ch), solo_enc->mode); mode 902 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c solo_enc->mode = SOLO_ENC_MODE_D1; mode 904 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c solo_enc->mode = SOLO_ENC_MODE_CIF; mode 1264 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c solo_enc->mode = SOLO_ENC_MODE_CIF; mode 149 drivers/media/pci/solo6x10/solo6x10.h u8 mode, gop, qp, interlaced, interval; mode 778 drivers/media/pci/ttpci/av7110.c u16 mode = 0xb96a; mode 793 drivers/media/pci/ttpci/av7110.c mode = 4; mode 803 drivers/media/pci/ttpci/av7110.c buf[3] = mode; mode 1063 drivers/media/pci/ttpci/av7110.c int mode; mode 1069 drivers/media/pci/ttpci/av7110.c mode = av7110->playing; mode 1094 drivers/media/pci/ttpci/av7110.c if (mode) mode 1095 drivers/media/pci/ttpci/av7110.c av7110_av_start_play(av7110, mode); mode 319 drivers/media/pci/ttpci/av7110_av.c int av7110_set_vidmode(struct av7110 *av7110, enum av7110_video_mode mode) mode 324 drivers/media/pci/ttpci/av7110_av.c ret = av7110_fw_cmd(av7110, COMTYPE_ENCODER, LoadVidCode, 1, mode); mode 8 drivers/media/pci/ttpci/av7110_av.h enum av7110_video_mode mode); mode 462 drivers/media/pci/ttpci/av7110_hw.h static inline int av7710_set_video_mode(struct av7110 *av7110, int mode) mode 464 drivers/media/pci/ttpci/av7110_hw.h return av7110_fw_cmd(av7110, COMTYPE_ENCODER, SetVidMode, 1, mode); mode 232 drivers/media/pci/ttpci/dvb_filter.h u32 mode; mode 58 drivers/media/pci/tw686x/tw686x-core.c static const char *dma_mode_name(unsigned int mode) mode 60 drivers/media/pci/tw686x/tw686x-core.c switch (mode) { mode 36 drivers/media/pci/tw686x/tw686x-video.c .mode = 0, mode 40 drivers/media/pci/tw686x/tw686x-video.c .mode = 5, mode 44 drivers/media/pci/tw686x/tw686x-video.c .mode = 6, mode 724 drivers/media/pci/tw686x/tw686x-video.c val |= vc->format->mode << 20; mode 39 drivers/media/pci/tw686x/tw686x.h unsigned int mode; mode 1157 drivers/media/platform/coda/coda-bit.c ctx->params.codec_mode = ctx->codec->mode; mode 1880 drivers/media/platform/coda/coda-bit.c ctx->params.codec_mode = ctx->codec->mode; mode 122 drivers/media/platform/coda/coda-common.c #define CODA_CODEC(mode, src_fourcc, dst_fourcc, max_w, max_h) \ mode 123 drivers/media/platform/coda/coda-common.c { mode, src_fourcc, dst_fourcc, max_w, max_h } mode 1532 drivers/media/platform/coda/coda-common.c ctx->params.codec_mode = ctx->codec->mode; mode 99 drivers/media/platform/coda/coda.h u32 mode; mode 323 drivers/media/platform/davinci/isif.c val = val | 1 | (bc->horz.mode << ISIF_HORZ_BC_MODE_SHIFT); mode 327 drivers/media/platform/davinci/isif.c if (bc->horz.mode != ISIF_HORZ_BC_DISABLE) { mode 110 drivers/media/platform/davinci/vpbe.c static int vpbe_get_mode_info(struct vpbe_device *vpbe_dev, char *mode, mode 118 drivers/media/platform/davinci/vpbe.c if (!mode) mode 123 drivers/media/platform/davinci/vpbe.c if (!strcmp(mode, var.name)) { mode 296 drivers/media/platform/exynos4-is/fimc-is-param.c isp->aa.mode = 0; mode 533 drivers/media/platform/exynos4-is/fimc-is-param.h u32 mode; mode 162 drivers/media/platform/exynos4-is/fimc-is.h u16 mode; mode 212 drivers/media/platform/imx-pxp.c int mode; mode 771 drivers/media/platform/imx-pxp.c ctrl = BF_PXP_CTRL_VFLIP0(!!(ctx->mode & MEM2MEM_VFLIP)) | mode 772 drivers/media/platform/imx-pxp.c BF_PXP_CTRL_HFLIP0(!!(ctx->mode & MEM2MEM_HFLIP)); mode 1308 drivers/media/platform/imx-pxp.c ctx->mode |= MEM2MEM_HFLIP; mode 1310 drivers/media/platform/imx-pxp.c ctx->mode &= ~MEM2MEM_HFLIP; mode 1315 drivers/media/platform/imx-pxp.c ctx->mode |= MEM2MEM_VFLIP; mode 1317 drivers/media/platform/imx-pxp.c ctx->mode &= ~MEM2MEM_VFLIP; mode 66 drivers/media/platform/marvell-ccic/mcam-core.h static inline int mcam_buffer_mode_supported(enum mcam_buffer_mode mode) mode 68 drivers/media/platform/marvell-ccic/mcam-core.h switch (mode) { mode 291 drivers/media/platform/mtk-jpeg/mtk_jpeg_hw.c static void mtk_jpeg_dec_set_dec_mode(void __iomem *base, u32 mode) mode 293 drivers/media/platform/mtk-jpeg/mtk_jpeg_hw.c writel(mode & 0x03, base + JPGDEC_REG_OPERATION_MODE); mode 243 drivers/media/platform/omap/omap_vout.c enum omap_color_mode mode; mode 250 drivers/media/platform/omap/omap_vout.c mode = OMAP_DSS_COLOR_YUV2; mode 253 drivers/media/platform/omap/omap_vout.c mode = OMAP_DSS_COLOR_UYVY; mode 256 drivers/media/platform/omap/omap_vout.c mode = OMAP_DSS_COLOR_RGB16; mode 259 drivers/media/platform/omap/omap_vout.c mode = OMAP_DSS_COLOR_RGB24P; mode 262 drivers/media/platform/omap/omap_vout.c mode = (ovl->id == OMAP_DSS_VIDEO1) ? mode 266 drivers/media/platform/omap/omap_vout.c mode = OMAP_DSS_COLOR_RGBX32; mode 269 drivers/media/platform/omap/omap_vout.c mode = -EINVAL; mode 272 drivers/media/platform/omap/omap_vout.c return mode; mode 673 drivers/media/platform/omap3isp/isp.c enum isp_pipeline_stream_state mode) mode 709 drivers/media/platform/omap3isp/isp.c ret = v4l2_subdev_call(subdev, video, s_stream, mode); mode 715 drivers/media/platform/omap3isp/isp.c s_stream, mode); mode 717 drivers/media/platform/omap3isp/isp.c s_stream, mode); mode 719 drivers/media/platform/omap3isp/isp.c s_stream, mode); mode 28 drivers/media/platform/omap3isp/ispcsiphy.c u32 shift, mode; mode 41 drivers/media/platform/omap3isp/ispcsiphy.c mode = OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_DPHY; mode 49 drivers/media/platform/omap3isp/ispcsiphy.c mode = OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_DPHY; mode 57 drivers/media/platform/omap3isp/ispcsiphy.c mode = OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_CCP2_DATA_STROBE; mode 59 drivers/media/platform/omap3isp/ispcsiphy.c mode = OMAP3630_CONTROL_CAMERA_PHY_CTRL_CAMMODE_CCP2_DATA_CLOCK; mode 63 drivers/media/platform/omap3isp/ispcsiphy.c reg |= mode << shift; mode 963 drivers/media/platform/omap3isp/isppreview.c enum preview_ycpos_mode mode; mode 967 drivers/media/platform/omap3isp/isppreview.c mode = YCPOS_CrYCbY; mode 970 drivers/media/platform/omap3isp/isppreview.c mode = YCPOS_YCrYCb; mode 978 drivers/media/platform/omap3isp/isppreview.c mode << ISPPRV_PCR_YCPOS_SHIFT); mode 612 drivers/media/platform/pxa_camera.c bool hsync = true, vsync = true, pclk, data, mode; mode 629 drivers/media/platform/pxa_camera.c mode = common_flags & (V4L2_MBUS_MASTER | V4L2_MBUS_SLAVE); mode 630 drivers/media/platform/pxa_camera.c return (!hsync || !vsync || !pclk || !data || !mode) ? mode 793 drivers/media/platform/qcom/venus/helpers.c int venus_helper_set_work_mode(struct venus_inst *inst, u32 mode) mode 801 drivers/media/platform/qcom/venus/helpers.c wm.video_work_mode = mode; mode 910 drivers/media/platform/qcom/venus/helpers.c struct hfi_buffer_alloc_mode mode; mode 916 drivers/media/platform/qcom/venus/helpers.c mode.type = HFI_BUFFER_OUTPUT; mode 917 drivers/media/platform/qcom/venus/helpers.c mode.mode = HFI_BUFFER_MODE_DYNAMIC; mode 919 drivers/media/platform/qcom/venus/helpers.c ret = hfi_session_set_property(inst, ptype, &mode); mode 923 drivers/media/platform/qcom/venus/helpers.c mode.type = HFI_BUFFER_OUTPUT2; mode 925 drivers/media/platform/qcom/venus/helpers.c return hfi_session_set_property(inst, ptype, &mode); mode 35 drivers/media/platform/qcom/venus/helpers.h int venus_helper_set_work_mode(struct venus_inst *inst, u32 mode); mode 37 drivers/media/platform/qcom/venus/hfi_cmds.c void pkt_sys_debug_config(struct hfi_sys_set_property_pkt *pkt, u32 mode, mode 48 drivers/media/platform/qcom/venus/hfi_cmds.c hfi->mode = mode; mode 51 drivers/media/platform/qcom/venus/hfi_cmds.c void pkt_sys_coverage_config(struct hfi_sys_set_property_pkt *pkt, u32 mode) mode 57 drivers/media/platform/qcom/venus/hfi_cmds.c pkt->data[1] = mode; mode 670 drivers/media/platform/qcom/venus/hfi_cmds.c switch (in->mode) { mode 680 drivers/media/platform/qcom/venus/hfi_cmds.c db->mode = in->mode; mode 798 drivers/media/platform/qcom/venus/hfi_cmds.c switch (in->mode) { mode 810 drivers/media/platform/qcom/venus/hfi_cmds.c intra->mode = in->mode; mode 867 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_buffer_alloc_mode *in = pdata, *mode = prop_data; mode 869 drivers/media/platform/qcom/venus/hfi_cmds.c mode->type = in->type; mode 870 drivers/media/platform/qcom/venus/hfi_cmds.c mode->mode = in->mode; mode 871 drivers/media/platform/qcom/venus/hfi_cmds.c pkt->shdr.hdr.size += sizeof(u32) + sizeof(*mode); mode 1132 drivers/media/platform/qcom/venus/hfi_cmds.c switch (in->mode) { mode 1144 drivers/media/platform/qcom/venus/hfi_cmds.c intra->mode = in->mode; mode 263 drivers/media/platform/qcom/venus/hfi_cmds.h void pkt_sys_debug_config(struct hfi_sys_set_property_pkt *pkt, u32 mode, mode 265 drivers/media/platform/qcom/venus/hfi_cmds.h void pkt_sys_coverage_config(struct hfi_sys_set_property_pkt *pkt, u32 mode); mode 578 drivers/media/platform/qcom/venus/hfi_helper.h u32 mode; mode 590 drivers/media/platform/qcom/venus/hfi_helper.h u32 mode; mode 619 drivers/media/platform/qcom/venus/hfi_helper.h u32 mode; mode 626 drivers/media/platform/qcom/venus/hfi_helper.h u32 mode; mode 984 drivers/media/platform/qcom/venus/hfi_helper.h u32 mode; mode 65 drivers/media/platform/qcom/venus/hfi_parser.c struct hfi_buffer_alloc_mode_supported *mode = data; mode 66 drivers/media/platform/qcom/venus/hfi_parser.c u32 num_entries = mode->num_entries; mode 72 drivers/media/platform/qcom/venus/hfi_parser.c type = mode->data; mode 75 drivers/media/platform/qcom/venus/hfi_parser.c if (mode->buffer_type == HFI_BUFFER_OUTPUT || mode 76 drivers/media/platform/qcom/venus/hfi_parser.c mode->buffer_type == HFI_BUFFER_OUTPUT2) mode 788 drivers/media/platform/qcom/venus/hfi_venus.c static int venus_sys_set_coverage(struct venus_hfi_device *hdev, u32 mode) mode 796 drivers/media/platform/qcom/venus/hfi_venus.c pkt_sys_coverage_config(pkt, mode); mode 695 drivers/media/platform/qcom/venus/venc.c deblock.mode = venc_v4l2_to_hfi( mode 505 drivers/media/platform/rcar_fdp1.c #define FDP1_DEINT_MODE_USES_NEXT(mode) \ mode 506 drivers/media/platform/rcar_fdp1.c (mode == FDP1_ADAPT2D3D || \ mode 507 drivers/media/platform/rcar_fdp1.c mode == FDP1_FIXED3D || \ mode 508 drivers/media/platform/rcar_fdp1.c mode == FDP1_NEXTFIELD) mode 510 drivers/media/platform/rcar_fdp1.c #define FDP1_DEINT_MODE_USES_PREV(mode) \ mode 511 drivers/media/platform/rcar_fdp1.c (mode == FDP1_ADAPT2D3D || \ mode 512 drivers/media/platform/rcar_fdp1.c mode == FDP1_FIXED3D || \ mode 513 drivers/media/platform/rcar_fdp1.c mode == FDP1_PREVFIELD) mode 356 drivers/media/platform/rockchip/rga/rga-hw.c union rga_mode_ctrl mode; mode 360 drivers/media/platform/rockchip/rga/rga-hw.c mode.val = 0; mode 364 drivers/media/platform/rockchip/rga/rga-hw.c mode.data.gradient_sat = 1; mode 365 drivers/media/platform/rockchip/rga/rga-hw.c mode.data.render = RGA_MODE_RENDER_BITBLT; mode 366 drivers/media/platform/rockchip/rga/rga-hw.c mode.data.bitblt = RGA_MODE_BITBLT_MODE_SRC_TO_DST; mode 372 drivers/media/platform/rockchip/rga/rga-hw.c dest[(RGA_MODE_CTRL - RGA_MODE_BASE_REG) >> 2] = mode.val; mode 969 drivers/media/platform/s5p-jpeg/jpeg-core.c ctx->mode = S5P_JPEG_ENCODE; mode 975 drivers/media/platform/s5p-jpeg/jpeg-core.c ctx->mode = S5P_JPEG_DECODE; mode 1249 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ctx->mode == S5P_JPEG_ENCODE) { mode 1299 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ctx->mode == S5P_JPEG_ENCODE) mode 1312 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ctx->mode == S5P_JPEG_ENCODE) mode 1343 drivers/media/platform/s5p-jpeg/jpeg-core.c ct->mode == S5P_JPEG_DECODE && !ct->hdr_parsed) mode 1370 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ctx->mode == S5P_JPEG_ENCODE) mode 1490 drivers/media/platform/s5p-jpeg/jpeg-core.c if (!ctx->jpeg->variant->hw_ex4_compat || ctx->mode != S5P_JPEG_DECODE) mode 1609 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ct->mode == S5P_JPEG_ENCODE || mode 1610 drivers/media/platform/s5p-jpeg/jpeg-core.c (ct->mode == S5P_JPEG_DECODE && mode 1623 drivers/media/platform/s5p-jpeg/jpeg-core.c f_type == FMT_TYPE_OUTPUT && ct->mode == S5P_JPEG_ENCODE) mode 1649 drivers/media/platform/s5p-jpeg/jpeg-core.c ((ct->mode == S5P_JPEG_DECODE && f_type == FMT_TYPE_CAPTURE) || mode 1650 drivers/media/platform/s5p-jpeg/jpeg-core.c (ct->mode == S5P_JPEG_ENCODE && f_type == FMT_TYPE_OUTPUT))) { mode 1660 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ct->mode == S5P_JPEG_DECODE && mode 1849 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ctx->mode != S5P_JPEG_DECODE) mode 1854 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ctx->mode != S5P_JPEG_ENCODE) mode 1969 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ctx->mode == S5P_JPEG_ENCODE) { mode 1991 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ctx->mode == S5P_JPEG_DECODE) mode 2058 drivers/media/platform/s5p-jpeg/jpeg-core.c s5p_jpeg_proc_mode(jpeg->regs, ctx->mode); mode 2059 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ctx->mode == S5P_JPEG_ENCODE) { mode 2136 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ctx->mode == S5P_JPEG_ENCODE) { mode 2167 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ctx->mode == S5P_JPEG_ENCODE) mode 2174 drivers/media/platform/s5p-jpeg/jpeg-core.c ctx->mode == S5P_JPEG_DECODE) mode 2212 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ctx->mode == S5P_JPEG_ENCODE) { mode 2279 drivers/media/platform/s5p-jpeg/jpeg-core.c exynos4_jpeg_set_enc_dec_mode(jpeg->regs, ctx->mode); mode 2294 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ctx->mode == S5P_JPEG_ENCODE) { mode 2323 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ctx->mode == S5P_JPEG_ENCODE) mode 2344 drivers/media/platform/s5p-jpeg/jpeg-core.c exynos3250_jpeg_proc_mode(jpeg->regs, ctx->mode); mode 2346 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ctx->mode == S5P_JPEG_ENCODE) { mode 2414 drivers/media/platform/s5p-jpeg/jpeg-core.c exynos3250_jpeg_coef(jpeg->regs, ctx->mode); mode 2427 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ctx->mode == S5P_JPEG_DECODE) { mode 2479 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ctx->mode == S5P_JPEG_DECODE) mode 2538 drivers/media/platform/s5p-jpeg/jpeg-core.c if (ctx->mode == S5P_JPEG_DECODE && mode 2674 drivers/media/platform/s5p-jpeg/jpeg-core.c if (curr_ctx->mode == S5P_JPEG_ENCODE) mode 2678 drivers/media/platform/s5p-jpeg/jpeg-core.c if (curr_ctx->mode == S5P_JPEG_DECODE) mode 2701 drivers/media/platform/s5p-jpeg/jpeg-core.c if (curr_ctx->mode == S5P_JPEG_ENCODE) mode 2759 drivers/media/platform/s5p-jpeg/jpeg-core.c if (curr_ctx->mode == S5P_JPEG_ENCODE) { mode 2819 drivers/media/platform/s5p-jpeg/jpeg-core.c (curr_ctx->mode == S5P_JPEG_DECODE)) { mode 2841 drivers/media/platform/s5p-jpeg/jpeg-core.c if (curr_ctx->mode == S5P_JPEG_ENCODE) mode 228 drivers/media/platform/s5p-jpeg/jpeg-core.h unsigned int mode; mode 132 drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.c void exynos3250_jpeg_proc_mode(void __iomem *regs, unsigned int mode) mode 136 drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.c if (mode == S5P_JPEG_ENCODE) mode 146 drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.c void exynos3250_jpeg_subsampling_mode(void __iomem *regs, unsigned int mode) mode 150 drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.c switch (mode) { mode 390 drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.c void exynos3250_jpeg_coef(void __iomem *base, unsigned int mode) mode 392 drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.c if (mode == S5P_JPEG_ENCODE) { mode 24 drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.h void exynos3250_jpeg_proc_mode(void __iomem *regs, unsigned int mode); mode 25 drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.h void exynos3250_jpeg_subsampling_mode(void __iomem *regs, unsigned int mode); mode 42 drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.h void exynos3250_jpeg_coef(void __iomem *base, unsigned int mode); mode 32 drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c void exynos4_jpeg_set_enc_dec_mode(void __iomem *base, unsigned int mode) mode 38 drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c if (mode == S5P_JPEG_DECODE) { mode 42 drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c } else if (mode == S5P_JPEG_ENCODE) {/* encode */ mode 14 drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.h void exynos4_jpeg_set_enc_dec_mode(void __iomem *base, unsigned int mode); mode 35 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c void s5p_jpeg_input_raw_mode(void __iomem *regs, unsigned long mode) mode 40 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c if (mode == S5P_JPEG_RAW_IN_565) mode 42 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c else if (mode == S5P_JPEG_RAW_IN_422) mode 51 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c void s5p_jpeg_proc_mode(void __iomem *regs, unsigned long mode) mode 56 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c if (mode == S5P_JPEG_ENCODE) mode 66 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c void s5p_jpeg_subsampling_mode(void __iomem *regs, unsigned int mode) mode 70 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c if (mode == V4L2_JPEG_CHROMA_SUBSAMPLING_420) mode 28 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.h void s5p_jpeg_input_raw_mode(void __iomem *regs, unsigned long mode); mode 29 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.h void s5p_jpeg_proc_mode(void __iomem *regs, unsigned long mode); mode 30 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.h void s5p_jpeg_subsampling_mode(void __iomem *regs, unsigned int mode); mode 284 drivers/media/platform/tegra-cec/tegra_cec.c u32 mode = 0; mode 288 drivers/media/platform/tegra-cec/tegra_cec.c mode = TEGRA_CEC_TX_REG_BCAST; mode 294 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_buf[i] = mode | msg->msg[i]; mode 269 drivers/media/platform/ti-vpe/vpdma_priv.h static inline u32 dtd_pkt_ctl(bool mode, bool dir, int chan, int pri, mode 272 drivers/media/platform/ti-vpe/vpdma_priv.h return (DTD_PKT_TYPE << DTD_PKT_TYPE_SHFT) | (mode << DTD_MODE_SHFT) | mode 825 drivers/media/platform/ti-vpe/vpe.c static void config_edi_input_mode(struct vpe_ctx *ctx, int mode) mode 830 drivers/media/platform/ti-vpe/vpe.c if (mode & 0x2) mode 833 drivers/media/platform/ti-vpe/vpe.c if (mode & 0x3) mode 836 drivers/media/platform/ti-vpe/vpe.c write_field(edi_config_reg, mode, VPE_EDI_INP_MODE_MASK, mode 225 drivers/media/platform/vim2m.c int mode; mode 482 drivers/media/platform/vim2m.c if (ctx->mode & MEM2MEM_VFLIP) { mode 502 drivers/media/platform/vim2m.c if (ctx->mode & MEM2MEM_HFLIP) mode 506 drivers/media/platform/vim2m.c ctx->mode & MEM2MEM_HFLIP); mode 525 drivers/media/platform/vim2m.c if (ctx->mode & MEM2MEM_HFLIP) mode 537 drivers/media/platform/vim2m.c if (ctx->mode & MEM2MEM_HFLIP) mode 544 drivers/media/platform/vim2m.c ctx->mode & MEM2MEM_HFLIP); mode 554 drivers/media/platform/vim2m.c if (ctx->mode & MEM2MEM_HFLIP) mode 923 drivers/media/platform/vim2m.c ctx->mode |= MEM2MEM_HFLIP; mode 925 drivers/media/platform/vim2m.c ctx->mode &= ~MEM2MEM_HFLIP; mode 930 drivers/media/platform/vim2m.c ctx->mode |= MEM2MEM_VFLIP; mode 932 drivers/media/platform/vim2m.c ctx->mode &= ~MEM2MEM_VFLIP; mode 110 drivers/media/platform/vivid/vivid-core.h #define VIVID_INVALID_SIGNAL(mode) \ mode 111 drivers/media/platform/vivid/vivid-core.h ((mode) == NO_SIGNAL || (mode) == NO_LOCK || (mode) == OUT_OF_RANGE) mode 75 drivers/media/platform/vsp1/vsp1_clu.c clu->mode = ctrl->val; mode 201 drivers/media/platform/vsp1/vsp1_clu.c if (clu->mode == V4L2_CID_VSP1_CLU_MODE_2D && clu->yuv_mode) mode 33 drivers/media/platform/vsp1/vsp1_clu.h unsigned int mode; mode 105 drivers/media/radio/radio-si476x.c si476x_phase_diversity_mode_to_idx(enum si476x_phase_diversity_mode mode) mode 107 drivers/media/radio/radio-si476x.c switch (mode) { mode 864 drivers/media/radio/radio-si476x.c enum si476x_phase_diversity_mode mode; mode 970 drivers/media/radio/radio-si476x.c mode = si476x_phase_diversity_idx_to_mode(ctrl->val); mode 972 drivers/media/radio/radio-si476x.c if (mode == radio->core->diversity_mode) { mode 982 drivers/media/radio/radio-si476x.c radio->core->diversity_mode = mode; mode 985 drivers/media/radio/radio-si476x.c retval = radio->ops->phase_diversity(radio->core, mode); mode 987 drivers/media/radio/radio-si476x.c radio->core->diversity_mode = mode; mode 154 drivers/media/radio/radio-wl1273.c if (core->mode != WL1273_MODE_RX) mode 289 drivers/media/radio/radio-wl1273.c if (core->mode == WL1273_MODE_RX) { mode 460 drivers/media/radio/radio-wl1273.c if (core->mode == WL1273_MODE_RX) { mode 534 drivers/media/radio/radio-wl1273.c if (core->mode == WL1273_MODE_RX) { mode 540 drivers/media/radio/radio-wl1273.c } else if (core->mode == WL1273_MODE_TX) { mode 563 drivers/media/radio/radio-wl1273.c if (pdata->enable && core->mode == WL1273_MODE_OFF) { mode 624 drivers/media/radio/radio-wl1273.c if (core->mode == WL1273_MODE_OFF) { mode 669 drivers/media/radio/radio-wl1273.c if (core->mode == WL1273_MODE_RX) mode 672 drivers/media/radio/radio-wl1273.c else if (core->mode == WL1273_MODE_TX) mode 687 drivers/media/radio/radio-wl1273.c static int wl1273_fm_set_mode(struct wl1273_device *radio, int mode) mode 697 drivers/media/radio/radio-wl1273.c old_mode = core->mode; mode 698 drivers/media/radio/radio-wl1273.c if (mode & radio->forbidden) { mode 703 drivers/media/radio/radio-wl1273.c switch (mode) { mode 706 drivers/media/radio/radio-wl1273.c r = wl1273_fm_start(radio, mode); mode 713 drivers/media/radio/radio-wl1273.c core->mode = mode; mode 721 drivers/media/radio/radio-wl1273.c if (mode == WL1273_MODE_RX) { mode 756 drivers/media/radio/radio-wl1273.c core->mode = WL1273_MODE_OFF; mode 765 drivers/media/radio/radio-wl1273.c core->mode = WL1273_MODE_SUSPENDED; mode 770 drivers/media/radio/radio-wl1273.c dev_err(dev, "%s: Unknown mode: %d\n", __func__, mode); mode 776 drivers/media/radio/radio-wl1273.c core->mode = old_mode; mode 880 drivers/media/radio/radio-wl1273.c if (core->mode == WL1273_MODE_OFF || mode 881 drivers/media/radio/radio-wl1273.c core->mode == WL1273_MODE_SUSPENDED) mode 909 drivers/media/radio/radio-wl1273.c if (core->mode == WL1273_MODE_OFF || mode 910 drivers/media/radio/radio-wl1273.c core->mode == WL1273_MODE_SUSPENDED) mode 999 drivers/media/radio/radio-wl1273.c if (core->mode == WL1273_MODE_OFF || mode 1000 drivers/media/radio/radio-wl1273.c core->mode == WL1273_MODE_SUSPENDED) mode 1008 drivers/media/radio/radio-wl1273.c if (core->mode == WL1273_MODE_TX && new_mode == WL1273_RDS_OFF) { mode 1010 drivers/media/radio/radio-wl1273.c } else if (core->mode == WL1273_MODE_TX && new_mode == WL1273_RDS_ON) { mode 1012 drivers/media/radio/radio-wl1273.c } else if (core->mode == WL1273_MODE_RX && new_mode == WL1273_RDS_OFF) { mode 1014 drivers/media/radio/radio-wl1273.c } else if (core->mode == WL1273_MODE_RX && new_mode == WL1273_RDS_ON) { mode 1038 drivers/media/radio/radio-wl1273.c if (core->mode != WL1273_MODE_TX) mode 1095 drivers/media/radio/radio-wl1273.c if (core->mode == WL1273_MODE_RX) { mode 1101 drivers/media/radio/radio-wl1273.c } else if (core->mode == WL1273_MODE_TX) { mode 1116 drivers/media/radio/radio-wl1273.c if (core->mode == WL1273_MODE_RX && radio->rds_on && mode 1118 drivers/media/radio/radio-wl1273.c dev_dbg(radio->dev, "%s: Mode: %d\n", __func__, core->mode); mode 1155 drivers/media/radio/radio-wl1273.c if (core->mode == WL1273_MODE_RX) { mode 1185 drivers/media/radio/radio-wl1273.c if (core->mode != WL1273_MODE_RX) mode 1324 drivers/media/radio/radio-wl1273.c if (core->mode == WL1273_MODE_OFF || mode 1325 drivers/media/radio/radio-wl1273.c core->mode == WL1273_MODE_SUSPENDED) mode 1423 drivers/media/radio/radio-wl1273.c if (core->mode == WL1273_MODE_RX && ctrl->val) mode 1428 drivers/media/radio/radio-wl1273.c else if (core->mode == WL1273_MODE_RX) mode 1431 drivers/media/radio/radio-wl1273.c else if (core->mode == WL1273_MODE_TX && ctrl->val) mode 1433 drivers/media/radio/radio-wl1273.c else if (core->mode == WL1273_MODE_TX) mode 1524 drivers/media/radio/radio-wl1273.c if (core->mode != WL1273_MODE_RX) mode 1659 drivers/media/radio/radio-wl1273.c if (core->mode == WL1273_MODE_RX) { mode 1776 drivers/media/radio/radio-wl1273.c if (core->mode != WL1273_MODE_TX) mode 1809 drivers/media/radio/radio-wl1273.c if (core->mode == WL1273_MODE_OFF) { mode 1814 drivers/media/radio/radio-wl1273.c if (core->mode == WL1273_MODE_SUSPENDED) { mode 1843 drivers/media/radio/radio-wl1273.c if (core->mode == WL1273_MODE_TX) { mode 1855 drivers/media/radio/radio-wl1273.c } else if (core->mode == WL1273_MODE_RX) { mode 2031 drivers/media/radio/radio-wl1273.c radio->core->mode = WL1273_MODE_OFF; mode 724 drivers/media/radio/si4713/si4713.c static int si4713_tx_rds_buff(struct si4713_device *sdev, u8 mode, u16 rdsb, mode 731 drivers/media/radio/si4713/si4713.c mode & SI4713_RDSBUFF_MODE_MASK, mode 1172 drivers/media/radio/wl128x/fmdrv_common.c int fmc_set_stereo_mono(struct fmdev *fmdev, u16 mode) mode 1176 drivers/media/radio/wl128x/fmdrv_common.c return fm_rx_set_stereo_mono(fmdev, mode); mode 1179 drivers/media/radio/wl128x/fmdrv_common.c return fm_tx_set_stereo_mono(fmdev, mode); mode 1303 drivers/media/radio/wl128x/fmdrv_common.c static int fm_power_up(struct fmdev *fmdev, u8 mode) mode 1310 drivers/media/radio/wl128x/fmdrv_common.c if (mode >= FM_MODE_ENTRY_MAX) { mode 1352 drivers/media/radio/wl128x/fmdrv_common.c sprintf(fw_name, "%s_%x.%d.bts", (mode == FM_MODE_RX) ? mode 568 drivers/media/radio/wl128x/fmdrv_rx.c int fm_rx_set_stereo_mono(struct fmdev *fmdev, u16 mode) mode 573 drivers/media/radio/wl128x/fmdrv_rx.c if (mode != FM_STEREO_MODE && mode != FM_MONO_MODE) { mode 579 drivers/media/radio/wl128x/fmdrv_rx.c payload = (u16)mode; mode 596 drivers/media/radio/wl128x/fmdrv_rx.c int fm_rx_get_stereo_mono(struct fmdev *fmdev, u16 *mode) mode 602 drivers/media/radio/wl128x/fmdrv_rx.c if (mode == NULL) { mode 612 drivers/media/radio/wl128x/fmdrv_rx.c *mode = be16_to_cpu(curr_mode); mode 618 drivers/media/radio/wl128x/fmdrv_rx.c int fm_rx_set_deemphasis_mode(struct fmdev *fmdev, u16 mode) mode 626 drivers/media/radio/wl128x/fmdrv_rx.c if (mode != FM_RX_EMPHASIS_FILTER_50_USEC && mode 627 drivers/media/radio/wl128x/fmdrv_rx.c mode != FM_RX_EMPHASIS_FILTER_75_USEC) { mode 628 drivers/media/radio/wl128x/fmdrv_rx.c fmerr("Invalid rx de-emphasis mode (%d)\n", mode); mode 632 drivers/media/radio/wl128x/fmdrv_rx.c payload = mode; mode 638 drivers/media/radio/wl128x/fmdrv_rx.c fmdev->rx.deemphasis_mode = mode; mode 14 drivers/media/radio/wl128x/fmdrv_tx.c int fm_tx_set_stereo_mono(struct fmdev *fmdev, u16 mode) mode 19 drivers/media/radio/wl128x/fmdrv_tx.c if (fmdev->tx_data.aud_mode == mode) mode 22 drivers/media/radio/wl128x/fmdrv_tx.c fmdbg("stereo mode: %d\n", mode); mode 25 drivers/media/radio/wl128x/fmdrv_tx.c payload = (1 - mode); mode 31 drivers/media/radio/wl128x/fmdrv_tx.c fmdev->tx_data.aud_mode = mode; mode 56 drivers/media/radio/wl128x/fmdrv_tx.c static int set_rds_data_mode(struct fmdev *fmdev, u8 mode) mode 583 drivers/media/rc/img-ir/img-ir-hw.c hw->mode = IMG_IR_M_NORMAL; mode 741 drivers/media/rc/img-ir/img-ir-hw.c hw->mode = IMG_IR_M_WAKE; mode 778 drivers/media/rc/img-ir/img-ir-hw.c hw->mode = IMG_IR_M_NORMAL; mode 790 drivers/media/rc/img-ir/img-ir-hw.c if (hw->mode == IMG_IR_M_NORMAL) { mode 793 drivers/media/rc/img-ir/img-ir-hw.c hw->mode = IMG_IR_M_REPEATING; mode 804 drivers/media/rc/img-ir/img-ir-hw.c if (hw->mode == IMG_IR_M_REPEATING) { mode 807 drivers/media/rc/img-ir/img-ir-hw.c hw->mode = IMG_IR_M_NORMAL; mode 840 drivers/media/rc/img-ir/img-ir-hw.c if (hw->mode == IMG_IR_M_REPEATING) { mode 915 drivers/media/rc/img-ir/img-ir-hw.c switch (hw->mode) { mode 245 drivers/media/rc/img-ir/img-ir-hw.h enum img_ir_mode mode; mode 14 drivers/media/rc/img-ir/img-ir-rc6.c unsigned int addr, cmd, mode, trl1, trl2; mode 38 drivers/media/rc/img-ir/img-ir-rc6.c mode = (raw >> 18) & 0x07; mode 50 drivers/media/rc/img-ir/img-ir-rc6.c if (mode) mode 983 drivers/media/rc/rc-main.c static char *rc_devnode(struct device *dev, umode_t *mode) mode 89 drivers/media/rc/tango-ir.c u32 data0, data1, toggle, mode, addr, cmd, code; mode 94 drivers/media/rc/tango-ir.c mode = data0 >> 1 & 7; mode 95 drivers/media/rc/tango-ir.c if (mode != 0) mode 433 drivers/media/spi/gs1662.c spi->mode = SPI_MODE_0; mode 90 drivers/media/tuners/msi001.c u8 mode, filter_mode; mode 94 drivers/media/tuners/msi001.c u8 mode; mode 147 drivers/media/tuners/msi001.c mode = band_lut[i].mode; mode 158 drivers/media/tuners/msi001.c if ((mode >> 0) & 0x1) mode 243 drivers/media/tuners/msi001.c reg |= mode << 4; mode 2040 drivers/media/tuners/mt2063.c switch (params->mode) { mode 350 drivers/media/tuners/mt20xx.c switch (params->mode) { mode 509 drivers/media/tuners/mt20xx.c if (V4L2_TUNER_DIGITAL_TV == params->mode) { mode 545 drivers/media/tuners/mt20xx.c switch (params->mode) { mode 202 drivers/media/tuners/mxl5007t.c enum mxl5007t_mode mode, mode 205 drivers/media/tuners/mxl5007t.c switch (mode) { mode 351 drivers/media/tuners/mxl5007t.c enum mxl5007t_mode mode) mode 358 drivers/media/tuners/mxl5007t.c mxl5007t_set_mode_bits(state, mode, cfg->if_diff_out_level); mode 365 drivers/media/tuners/mxl5007t.c if (mode >= MxL_MODE_CABLE) { mode 513 drivers/media/tuners/mxl5007t.c enum mxl5007t_mode mode) mode 519 drivers/media/tuners/mxl5007t.c init_regs = mxl5007t_calc_init_regs(state, mode); mode 605 drivers/media/tuners/mxl5007t.c enum mxl5007t_mode mode; mode 611 drivers/media/tuners/mxl5007t.c mode = MxL_MODE_ATSC; mode 615 drivers/media/tuners/mxl5007t.c mode = MxL_MODE_CABLE; mode 620 drivers/media/tuners/mxl5007t.c mode = MxL_MODE_DVBT; mode 645 drivers/media/tuners/mxl5007t.c ret = mxl5007t_tuner_init(state, mode); mode 24 drivers/media/tuners/tda18271-common.c switch (priv->mode) { mode 63 drivers/media/tuners/tda18271-fe.c switch (priv->mode) { mode 723 drivers/media/tuners/tda18271-fe.c switch (priv->mode) { mode 736 drivers/media/tuners/tda18271-fe.c switch (priv->mode) { mode 871 drivers/media/tuners/tda18271-fe.c priv->mode); mode 931 drivers/media/tuners/tda18271-fe.c priv->mode = TDA18271_DIGITAL; mode 989 drivers/media/tuners/tda18271-fe.c char *mode; mode 992 drivers/media/tuners/tda18271-fe.c ((params->mode == V4L2_TUNER_RADIO) ? 1 : 1000) / 2; mode 994 drivers/media/tuners/tda18271-fe.c priv->mode = TDA18271_ANALOG; mode 996 drivers/media/tuners/tda18271-fe.c if (params->mode == V4L2_TUNER_RADIO) { mode 998 drivers/media/tuners/tda18271-fe.c mode = "fm"; mode 1001 drivers/media/tuners/tda18271-fe.c mode = "MN"; mode 1004 drivers/media/tuners/tda18271-fe.c mode = "B"; mode 1007 drivers/media/tuners/tda18271-fe.c mode = "GH"; mode 1010 drivers/media/tuners/tda18271-fe.c mode = "I"; mode 1013 drivers/media/tuners/tda18271-fe.c mode = "DK"; mode 1016 drivers/media/tuners/tda18271-fe.c mode = "L"; mode 1019 drivers/media/tuners/tda18271-fe.c mode = "L'"; mode 1022 drivers/media/tuners/tda18271-fe.c mode = "xx"; mode 1025 drivers/media/tuners/tda18271-fe.c tda_dbg("setting tda18271 to system %s\n", mode); mode 97 drivers/media/tuners/tda18271-priv.h enum tda18271_mode mode; mode 41 drivers/media/tuners/tda827x.c char *mode; mode 47 drivers/media/tuners/tda827x.c mode = "MN"; mode 50 drivers/media/tuners/tda827x.c mode = "B"; mode 53 drivers/media/tuners/tda827x.c mode = "GH"; mode 56 drivers/media/tuners/tda827x.c mode = "I"; mode 59 drivers/media/tuners/tda827x.c mode = "DK"; mode 62 drivers/media/tuners/tda827x.c mode = "L"; mode 65 drivers/media/tuners/tda827x.c mode = "LC"; mode 68 drivers/media/tuners/tda827x.c mode = "xx"; mode 71 drivers/media/tuners/tda827x.c if (params->mode == V4L2_TUNER_RADIO) { mode 75 drivers/media/tuners/tda827x.c dprintk("setting tda827x to system %s\n", mode); mode 250 drivers/media/tuners/tda827x.c if (params->mode == V4L2_TUNER_RADIO) mode 664 drivers/media/tuners/tda827x.c if (params->mode == V4L2_TUNER_RADIO) mode 107 drivers/media/tuners/tda8290.c char* mode; mode 111 drivers/media/tuners/tda8290.c mode = "MN"; mode 114 drivers/media/tuners/tda8290.c mode = "B"; mode 117 drivers/media/tuners/tda8290.c mode = "GH"; mode 120 drivers/media/tuners/tda8290.c mode = "I"; mode 123 drivers/media/tuners/tda8290.c mode = "DK"; mode 126 drivers/media/tuners/tda8290.c mode = "L"; mode 129 drivers/media/tuners/tda8290.c mode = "LC"; mode 132 drivers/media/tuners/tda8290.c mode = "xx"; mode 135 drivers/media/tuners/tda8290.c if (params->mode == V4L2_TUNER_RADIO) { mode 140 drivers/media/tuners/tda8290.c tuner_dbg("setting tda829x to system %s\n", mode); mode 200 drivers/media/tuners/tda8290.c if (params->mode == V4L2_TUNER_RADIO) { mode 37 drivers/media/tuners/tda9887.c unsigned int mode; mode 408 drivers/media/tuners/tda9887.c if (priv->mode == V4L2_TUNER_RADIO) { mode 520 drivers/media/tuners/tda9887.c if (priv->mode == V4L2_TUNER_RADIO) { mode 611 drivers/media/tuners/tda9887.c if (priv->mode != V4L2_TUNER_RADIO) mode 633 drivers/media/tuners/tda9887.c priv->mode = params->mode; mode 777 drivers/media/tuners/tuner-simple.c switch (params->mode) { mode 1165 drivers/media/tuners/tuner-xc2028.c if (p->mode == V4L2_TUNER_RADIO) { mode 1263 drivers/media/tuners/xc4000.c if (params->mode == V4L2_TUNER_RADIO) { mode 48 drivers/media/tuners/xc5000.c unsigned int mode; mode 560 drivers/media/tuners/xc5000.c static int xc_tune_channel(struct xc5000_priv *priv, u32 freq_hz, int mode) mode 809 drivers/media/tuners/xc5000.c priv->mode = V4L2_TUNER_DIGITAL_TV; mode 846 drivers/media/tuners/xc5000.c priv->rf_mode = params->mode; mode 847 drivers/media/tuners/xc5000.c if (params->mode > XC_RF_MODE_CABLE) mode 1022 drivers/media/tuners/xc5000.c switch (priv->mode) { mode 1043 drivers/media/tuners/xc5000.c switch (params->mode) { mode 1055 drivers/media/tuners/xc5000.c priv->mode = params->mode; mode 351 drivers/media/usb/as102/as10x_cmd.h uint8_t mode; mode 512 drivers/media/usb/as102/as10x_cmd.h int as10x_cmd_eLNA_change_mode(struct as10x_bus_adapter_t *adap, uint8_t mode); mode 134 drivers/media/usb/as102/as10x_cmd_cfg.c int as10x_cmd_eLNA_change_mode(struct as10x_bus_adapter_t *adap, uint8_t mode) mode 149 drivers/media/usb/as102/as10x_cmd_cfg.c pcmd->body.cfg_change_mode.req.mode = mode; mode 34 drivers/media/usb/as102/as10x_handle.h int (*read_write)(struct as10x_bus_adapter_t *bus_adap, uint8_t mode, mode 426 drivers/media/usb/cpia2/cpia2.h int cpia2_set_flicker_mode(struct camera_data *cam, int mode); mode 1586 drivers/media/usb/cpia2/cpia2_core.c int cpia2_set_flicker_mode(struct camera_data *cam, int mode) mode 1600 drivers/media/usb/cpia2/cpia2_core.c switch(mode) { mode 1627 drivers/media/usb/cpia2/cpia2_core.c if (mode == NEVER_FLICKER) { mode 1641 drivers/media/usb/cpia2/cpia2_core.c switch(mode) { mode 1645 drivers/media/usb/cpia2/cpia2_core.c cam->params.flicker_control.flicker_mode_req = mode; mode 293 drivers/media/usb/cx231xx/cx231xx-avcore.c int cx231xx_afe_set_mode(struct cx231xx *dev, enum AFE_MODE mode) mode 302 drivers/media/usb/cx231xx/cx231xx-avcore.c switch (mode) { mode 320 drivers/media/usb/cx231xx/cx231xx-avcore.c if ((mode != dev->afe_mode) && mode 325 drivers/media/usb/cx231xx/cx231xx-avcore.c dev->afe_mode = mode; mode 1511 drivers/media/usb/cx231xx/cx231xx-avcore.c u8 spectral_invert, u32 mode) mode 1535 drivers/media/usb/cx231xx/cx231xx-avcore.c colibri_carrier_offset = cx231xx_Get_Colibri_CarrierOffset(mode, mode 1543 drivers/media/usb/cx231xx/cx231xx-avcore.c spectral_invert, mode); mode 1546 drivers/media/usb/cx231xx/cx231xx-avcore.c u32 cx231xx_Get_Colibri_CarrierOffset(u32 mode, u32 standerd) mode 1550 drivers/media/usb/cx231xx/cx231xx-avcore.c if (mode == TUNER_MODE_FM_RADIO) { mode 1565 drivers/media/usb/cx231xx/cx231xx-avcore.c u8 spectral_invert, u32 mode) mode 1573 drivers/media/usb/cx231xx/cx231xx-avcore.c if_freq, spectral_invert, mode); mode 1576 drivers/media/usb/cx231xx/cx231xx-avcore.c if (mode == TUNER_MODE_FM_RADIO) { mode 1628 drivers/media/usb/cx231xx/cx231xx-avcore.c int cx231xx_dif_configure_C2HH_for_low_IF(struct cx231xx *dev, u32 mode, mode 1634 drivers/media/usb/cx231xx/cx231xx-avcore.c if (mode == V4L2_TUNER_RADIO) { mode 2224 drivers/media/usb/cx231xx/cx231xx-avcore.c int cx231xx_set_power_mode(struct cx231xx *dev, enum AV_MODE mode) mode 2230 drivers/media/usb/cx231xx/cx231xx-avcore.c if (dev->power_mode != mode) mode 2231 drivers/media/usb/cx231xx/cx231xx-avcore.c dev->power_mode = mode; mode 2234 drivers/media/usb/cx231xx/cx231xx-avcore.c __func__, mode); mode 2245 drivers/media/usb/cx231xx/cx231xx-avcore.c switch (mode) { mode 2417 drivers/media/usb/cx231xx/cx231xx-avcore.c if (mode == POLARIS_AVMODE_DIGITAL) { mode 2429 drivers/media/usb/cx231xx/cx231xx-avcore.c status = cx231xx_afe_update_power_control(dev, mode); mode 2432 drivers/media/usb/cx231xx/cx231xx-avcore.c status = cx231xx_i2s_blk_update_power_control(dev, mode); mode 681 drivers/media/usb/cx231xx/cx231xx-core.c if (dev->mode == set_mode) mode 686 drivers/media/usb/cx231xx/cx231xx-core.c dev->mode = set_mode; mode 690 drivers/media/usb/cx231xx/cx231xx-core.c if (dev->mode != CX231XX_SUSPEND) mode 693 drivers/media/usb/cx231xx/cx231xx-core.c dev->mode = set_mode; mode 695 drivers/media/usb/cx231xx/cx231xx-core.c if (dev->mode == CX231XX_DIGITAL_MODE)/* Set Digital power mode */ { mode 742 drivers/media/usb/cx231xx/cx231xx-core.c dev->mode == CX231XX_DIGITAL_MODE ? "digital" : "analog", mode 1532 drivers/media/usb/cx231xx/cx231xx-core.c int cx231xx_mode_register(struct cx231xx *dev, u16 address, u32 mode) mode 1544 drivers/media/usb/cx231xx/cx231xx-core.c tmp |= mode; mode 411 drivers/media/usb/cx231xx/cx231xx-dvb.c params.mode = 0; /* 0- Air; 1 - cable */ mode 782 drivers/media/usb/cx231xx/cx231xx-pcb-cfg.c dev->current_pcb_config.mode); mode 175 drivers/media/usb/cx231xx/cx231xx-pcb-cfg.h u8 mode; /* digital , anlog, dif or external A/V */ mode 687 drivers/media/usb/cx231xx/cx231xx.h enum cx231xx_mode mode; mode 783 drivers/media/usb/cx231xx/cx231xx.h int cx231xx_afe_set_mode(struct cx231xx *dev, enum AFE_MODE mode); mode 795 drivers/media/usb/cx231xx/cx231xx.h int cx231xx_dif_configure_C2HH_for_low_IF(struct cx231xx *dev, u32 mode, mode 798 drivers/media/usb/cx231xx/cx231xx.h u8 spectral_invert, u32 mode); mode 799 drivers/media/usb/cx231xx/cx231xx.h u32 cx231xx_Get_Colibri_CarrierOffset(u32 mode, u32 standerd); mode 801 drivers/media/usb/cx231xx/cx231xx.h u8 spectral_invert, u32 mode); mode 842 drivers/media/usb/cx231xx/cx231xx.h int cx231xx_mode_register(struct cx231xx *dev, u16 address, u32 mode); mode 918 drivers/media/usb/cx231xx/cx231xx.h int cx231xx_set_power_mode(struct cx231xx *dev, enum AV_MODE mode); mode 177 drivers/media/usb/dvb-usb-v2/anysee.c static int anysee_led_ctrl(struct dvb_usb_device *d, u8 mode, u8 interval) mode 179 drivers/media/usb/dvb-usb-v2/anysee.c u8 buf[] = {CMD_LED_AND_IR_CTRL, 0x01, mode, interval}; mode 181 drivers/media/usb/dvb-usb-v2/anysee.c mode, interval); mode 706 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c int mxl111sf_gpio_mode_switch(struct mxl111sf_state *state, unsigned int mode) mode 715 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c mxl_debug("(%d)", mode); mode 717 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c switch (mode) { mode 19 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.h int mxl111sf_gpio_mode_switch(struct mxl111sf_state *state, unsigned int mode); mode 56 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c int mxl1x1sf_set_device_mode(struct mxl111sf_state *state, int mode) mode 60 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c mxl_debug("(%s)", MXL_SOC_MODE == mode ? mode 65 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c MXL_SOC_MODE == mode ? 0x01 : 0x00); mode 70 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c 0x7d, 0x40, MXL_SOC_MODE == mode ? mode 78 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c state->device_mode = mode; mode 114 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c u8 mode, tmp; mode 124 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c mxl111sf_read_reg(state, V6_MPEG_IN_CLK_INV_REG, &mode); mode 127 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c mode &= ~V6_INVERTED_CLK_PHASE; mode 129 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c mode |= V6_INVERTED_CLK_PHASE; mode 131 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c ret = mxl111sf_write_reg(state, V6_MPEG_IN_CLK_INV_REG, mode); mode 136 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c ret = mxl111sf_read_reg(state, V6_MPEG_IN_CTRL_REG, &mode); mode 142 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c mode &= ~V6_MPEG_IN_DATA_SERIAL; mode 145 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c mode |= V6_MPEG_IN_DATA_PARALLEL; mode 148 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c mode &= ~V6_MPEG_IN_DATA_PARALLEL; mode 151 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c mode |= V6_MPEG_IN_DATA_SERIAL; mode 173 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c mode &= ~V6_INVERTED_MPEG_SYNC; mode 175 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c mode |= V6_INVERTED_MPEG_SYNC; mode 179 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c mode &= ~V6_INVERTED_MPEG_VALID; mode 181 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c mode |= V6_INVERTED_MPEG_VALID; mode 183 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.c ret = mxl111sf_write_reg(state, V6_MPEG_IN_CTRL_REG, mode); mode 14 drivers/media/usb/dvb-usb-v2/mxl111sf-phy.h int mxl1x1sf_set_device_mode(struct mxl111sf_state *state, int mode); mode 455 drivers/media/usb/dvb-usb/cxusb-analog.c if (bt656->mode == NEW_FRAME) { mode 467 drivers/media/usb/dvb-usb/cxusb-analog.c if (bt656->mode == NEW_FRAME || reset) { mode 470 drivers/media/usb/dvb-usb/cxusb-analog.c bt656->mode = FIRST_FIELD; mode 481 drivers/media/usb/dvb-usb/cxusb-analog.c if (bt656->mode == FIRST_FIELD) { mode 493 drivers/media/usb/dvb-usb/cxusb-analog.c bt656->mode = SECOND_FIELD; mode 498 drivers/media/usb/dvb-usb/cxusb-analog.c if (bt656->mode == SECOND_FIELD) { mode 506 drivers/media/usb/dvb-usb/cxusb-analog.c bt656->mode = NEW_FRAME; mode 865 drivers/media/usb/dvb-usb/cxusb-analog.c cxdev->bt656.mode = NEW_FRAME; mode 105 drivers/media/usb/dvb-usb/cxusb.h enum cxusb_bt656_mode mode; mode 321 drivers/media/usb/dvb-usb/dvb-usb-remote.c d->props.rc.mode = DVB_RC_LEGACY; mode 323 drivers/media/usb/dvb-usb/dvb-usb-remote.c d->props.rc.mode = DVB_RC_CORE; mode 334 drivers/media/usb/dvb-usb/dvb-usb-remote.c if (d->props.rc.mode == DVB_RC_LEGACY) mode 350 drivers/media/usb/dvb-usb/dvb-usb-remote.c if (d->props.rc.mode == DVB_RC_LEGACY) mode 298 drivers/media/usb/dvb-usb/dvb-usb.h enum dvb_usb_mode mode; /* Drivers shouldn't touch on it */ mode 681 drivers/media/usb/em28xx/em28xx-core.c if (dev->mode == EM28XX_ANALOG_MODE) mode 699 drivers/media/usb/em28xx/em28xx-core.c if (dev->mode == EM28XX_ANALOG_MODE) mode 720 drivers/media/usb/em28xx/em28xx-core.c if (dev->mode != EM28XX_SUSPEND) { mode 722 drivers/media/usb/em28xx/em28xx-core.c if (dev->mode == EM28XX_ANALOG_MODE) mode 750 drivers/media/usb/em28xx/em28xx-core.c if (dev->mode == set_mode) mode 754 drivers/media/usb/em28xx/em28xx-core.c dev->mode = set_mode; mode 761 drivers/media/usb/em28xx/em28xx-core.c dev->mode = set_mode; mode 763 drivers/media/usb/em28xx/em28xx-core.c if (dev->mode == EM28XX_DIGITAL_MODE) mode 819 drivers/media/usb/em28xx/em28xx-core.c void em28xx_uninit_usb_xfer(struct em28xx *dev, enum em28xx_mode mode) mode 825 drivers/media/usb/em28xx/em28xx-core.c em28xx_isocdbg("called %s in mode %d\n", __func__, mode); mode 827 drivers/media/usb/em28xx/em28xx-core.c if (mode == EM28XX_DIGITAL_MODE) mode 884 drivers/media/usb/em28xx/em28xx-core.c int em28xx_alloc_urbs(struct em28xx *dev, enum em28xx_mode mode, int xfer_bulk, mode 894 drivers/media/usb/em28xx/em28xx-core.c em28xx_isocdbg("em28xx: called %s in mode %d\n", __func__, mode); mode 900 drivers/media/usb/em28xx/em28xx-core.c if (mode == EM28XX_DIGITAL_MODE) { mode 909 drivers/media/usb/em28xx/em28xx-core.c } else if (mode == EM28XX_ANALOG_MODE) { mode 924 drivers/media/usb/em28xx/em28xx-core.c em28xx_uninit_usb_xfer(dev, mode); mode 952 drivers/media/usb/em28xx/em28xx-core.c em28xx_uninit_usb_xfer(dev, mode); mode 959 drivers/media/usb/em28xx/em28xx-core.c em28xx_uninit_usb_xfer(dev, mode); mode 974 drivers/media/usb/em28xx/em28xx-core.c mode == EM28XX_ANALOG_MODE ? mode 981 drivers/media/usb/em28xx/em28xx-core.c mode == EM28XX_ANALOG_MODE ? mode 1006 drivers/media/usb/em28xx/em28xx-core.c int em28xx_init_usb_xfer(struct em28xx *dev, enum em28xx_mode mode, mode 1019 drivers/media/usb/em28xx/em28xx-core.c em28xx_isocdbg("em28xx: called %s in mode %d\n", __func__, mode); mode 1023 drivers/media/usb/em28xx/em28xx-core.c if (mode == EM28XX_DIGITAL_MODE) { mode 1033 drivers/media/usb/em28xx/em28xx-core.c rc = em28xx_alloc_urbs(dev, mode, xfer_bulk, num_bufs, mode 1045 drivers/media/usb/em28xx/em28xx-core.c em28xx_uninit_usb_xfer(dev, mode); mode 1061 drivers/media/usb/em28xx/em28xx-core.c em28xx_uninit_usb_xfer(dev, mode); mode 298 drivers/media/usb/em28xx/em28xx-video.c u8 mode = 0x00; mode 302 drivers/media/usb/em28xx/em28xx-video.c mode = (v ? 0x20 : 0x00) | (h ? 0x10 : 0x00); mode 317 drivers/media/usb/em28xx/em28xx-video.c mode = (h || v) ? 0x30 : 0x00; mode 319 drivers/media/usb/em28xx/em28xx-video.c return em28xx_write_reg(dev, EM28XX_R26_COMPR, mode); mode 762 drivers/media/usb/em28xx/em28xx.h enum em28xx_mode mode; mode 824 drivers/media/usb/em28xx/em28xx.h int em28xx_alloc_urbs(struct em28xx *dev, enum em28xx_mode mode, int xfer_bulk, mode 826 drivers/media/usb/em28xx/em28xx.h int em28xx_init_usb_xfer(struct em28xx *dev, enum em28xx_mode mode, mode 831 drivers/media/usb/em28xx/em28xx.h void em28xx_uninit_usb_xfer(struct em28xx *dev, enum em28xx_mode mode); mode 307 drivers/media/usb/gspca/cpia1.c u8 mode; mode 365 drivers/media/usb/gspca/cpia1.c static const struct v4l2_pix_format mode[] = { mode 682 drivers/media/usb/gspca/cpia1.c params->compression.mode = CPIA_COMPRESSION_AUTO; mode 937 drivers/media/usb/gspca/cpia1.c sd->params.compression.mode, mode 1436 drivers/media/usb/gspca/cpia1.c cam->cam_mode = mode; mode 1437 drivers/media/usb/gspca/cpia1.c cam->nmodes = ARRAY_SIZE(mode); mode 208 drivers/media/usb/gspca/etoms.c int len, __u8 mode) mode 217 drivers/media/usb/gspca/etoms.c ptchcount = ((len & 0x07) << 4) | (mode & 0x03); mode 425 drivers/media/usb/gspca/gl860/gl860.c s32 mode = (s32) gspca_dev->curr_mode; mode 427 drivers/media/usb/gspca/gl860/gl860.c sd->swapRB * (gspca_dev->cam.cam_mode[mode].bytesperline + 1); mode 946 drivers/media/usb/gspca/gspca.c int mode, mode 951 drivers/media/usb/gspca/gspca.c modeU = modeD = mode; mode 1045 drivers/media/usb/gspca/gspca.c int w, h, mode, mode2; mode 1054 drivers/media/usb/gspca/gspca.c mode = wxh_to_nearest_mode(gspca_dev, w, h, fmt->fmt.pix.pixelformat); mode 1057 drivers/media/usb/gspca/gspca.c if (gspca_dev->cam.cam_mode[mode].pixelformat mode 1061 drivers/media/usb/gspca/gspca.c mode2 = gspca_get_mode(gspca_dev, mode, mode 1064 drivers/media/usb/gspca/gspca.c mode = mode2; mode 1066 drivers/media/usb/gspca/gspca.c fmt->fmt.pix = gspca_dev->cam.cam_mode[mode]; mode 1073 drivers/media/usb/gspca/gspca.c return mode; /* used when s_fmt */ mode 1094 drivers/media/usb/gspca/gspca.c int mode; mode 1099 drivers/media/usb/gspca/gspca.c mode = try_fmt_vid_cap(gspca_dev, fmt); mode 1100 drivers/media/usb/gspca/gspca.c if (mode < 0) mode 1103 drivers/media/usb/gspca/gspca.c gspca_dev->curr_mode = mode; mode 1108 drivers/media/usb/gspca/gspca.c gspca_dev->pixfmt = gspca_dev->cam.cam_mode[mode]; mode 1147 drivers/media/usb/gspca/gspca.c int mode; mode 1150 drivers/media/usb/gspca/gspca.c mode = wxh_to_mode(gspca_dev, fival->width, fival->height, mode 1152 drivers/media/usb/gspca/gspca.c if (mode < 0) mode 1156 drivers/media/usb/gspca/gspca.c gspca_dev->cam.mode_framerates[mode].nrates == 0) mode 1160 drivers/media/usb/gspca/gspca.c gspca_dev->cam.cam_mode[mode].pixelformat) mode 1163 drivers/media/usb/gspca/gspca.c for (i = 0; i < gspca_dev->cam.mode_framerates[mode].nrates; i++) { mode 1168 drivers/media/usb/gspca/gspca.c gspca_dev->cam.mode_framerates[mode].rates[i]; mode 276 drivers/media/usb/gspca/kinect.c int mode; mode 282 drivers/media/usb/gspca/kinect.c mode = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv; mode 284 drivers/media/usb/gspca/kinect.c if (mode & FORMAT_Y10B) { mode 297 drivers/media/usb/gspca/kinect.c if (mode & FORMAT_UYVY) mode 302 drivers/media/usb/gspca/kinect.c if (mode & MODE_1280x1024) mode 307 drivers/media/usb/gspca/kinect.c if (mode & FPS_HIGH) mode 326 drivers/media/usb/gspca/kinect.c if (mode & (FORMAT_Y10B | MODE_1280x1024)) { mode 1373 drivers/media/usb/gspca/ov534.c int mode; mode 1408 drivers/media/usb/gspca/ov534.c mode = gspca_dev->curr_mode; /* 0: 320x240, 1: 640x480 */ mode 1409 drivers/media/usb/gspca/ov534.c reg_w_array(gspca_dev, bridge_start[sd->sensor][mode].val, mode 1410 drivers/media/usb/gspca/ov534.c bridge_start[sd->sensor][mode].len); mode 1411 drivers/media/usb/gspca/ov534.c sccb_w_array(gspca_dev, sensor_start[sd->sensor][mode].val, mode 1412 drivers/media/usb/gspca/ov534.c sensor_start[sd->sensor][mode].len); mode 55 drivers/media/usb/gspca/pac207.c u8 mode; mode 181 drivers/media/usb/gspca/pac207.c u8 mode; mode 185 drivers/media/usb/gspca/pac207.c mode = 0x02; mode 187 drivers/media/usb/gspca/pac207.c mode = 0x00; mode 188 drivers/media/usb/gspca/pac207.c pac207_write_reg(gspca_dev, 0x41, mode); mode 279 drivers/media/usb/gspca/pac207.c __u8 mode; mode 303 drivers/media/usb/gspca/pac207.c mode = 0x00; mode 305 drivers/media/usb/gspca/pac207.c mode = 0x02; mode 307 drivers/media/usb/gspca/pac207.c mode |= 0x01; mode 312 drivers/media/usb/gspca/pac207.c pac207_write_reg(gspca_dev, 0x41, mode); mode 327 drivers/media/usb/gspca/pac207.c u8 mode; mode 331 drivers/media/usb/gspca/pac207.c mode = 0x02; mode 333 drivers/media/usb/gspca/pac207.c mode = 0x00; mode 335 drivers/media/usb/gspca/pac207.c pac207_write_reg(gspca_dev, 0x41, mode); /* Turn off LED */ mode 332 drivers/media/usb/gspca/se401.c int mode = 0; mode 359 drivers/media/usb/gspca/se401.c mode = 0x03; break; mode 361 drivers/media/usb/gspca/se401.c mode = SE401_QUANT_FACT << 4; break; mode 363 drivers/media/usb/gspca/se401.c mode = (SE401_QUANT_FACT << 4) | 0x02; break; mode 365 drivers/media/usb/gspca/se401.c se401_set_feature(gspca_dev, SE401_OPERATINGMODE, mode); mode 1878 drivers/media/usb/gspca/sn9c20x.c static void configure_sensor_output(struct gspca_dev *gspca_dev, int mode) mode 1885 drivers/media/usb/gspca/sn9c20x.c if (mode & MODE_SXGA) { mode 1904 drivers/media/usb/gspca/sn9c20x.c if (mode & MODE_SXGA) { mode 1922 drivers/media/usb/gspca/sn9c20x.c if (mode & MODE_SXGA) { mode 1971 drivers/media/usb/gspca/sn9c20x.c #define HW_WIN(mode, hstart, vstart) \ mode 1973 drivers/media/usb/gspca/sn9c20x.c (mode & MODE_SXGA ? 1280 >> 4 : 640 >> 4), \ mode 1974 drivers/media/usb/gspca/sn9c20x.c (mode & MODE_SXGA ? 1024 >> 3 : 480 >> 3)}) mode 1984 drivers/media/usb/gspca/sn9c20x.c int mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv; mode 1993 drivers/media/usb/gspca/sn9c20x.c if (mode & MODE_RAW) mode 1995 drivers/media/usb/gspca/sn9c20x.c else if (mode & MODE_JPEG) mode 2001 drivers/media/usb/gspca/sn9c20x.c switch (mode & SCALE_MASK) { mode 2020 drivers/media/usb/gspca/sn9c20x.c configure_sensor_output(gspca_dev, mode); mode 2024 drivers/media/usb/gspca/sn9c20x.c reg_w(gspca_dev, 0x1180, HW_WIN(mode, sd->hstart, sd->vstart), 6); mode 2047 drivers/media/usb/gspca/sn9c20x.c if (mode & MODE_JPEG) { mode 1092 drivers/media/usb/gspca/sonixb.c int i, mode; mode 1095 drivers/media/usb/gspca/sonixb.c mode = cam->cam_mode[gspca_dev->curr_mode].priv & 0x07; mode 1099 drivers/media/usb/gspca/sonixb.c regs[0x18] |= mode << 4; mode 1140 drivers/media/usb/gspca/sonixb.c regs[0x19] = mode ? 0x23 : 0x43; mode 1189 drivers/media/usb/gspca/sonixb.c if (mode) mode 1297 drivers/media/usb/gspca/sonixj.c u8 mode[8]; mode 1303 drivers/media/usb/gspca/sonixj.c mode[0] = 0x80 | 0x10; mode 1306 drivers/media/usb/gspca/sonixj.c mode[0] = 0x81 | 0x10; mode 1309 drivers/media/usb/gspca/sonixj.c mode[1] = sd->i2c_addr; mode 1310 drivers/media/usb/gspca/sonixj.c mode[2] = reg; mode 1311 drivers/media/usb/gspca/sonixj.c mode[3] = 0; mode 1312 drivers/media/usb/gspca/sonixj.c mode[4] = 0; mode 1313 drivers/media/usb/gspca/sonixj.c mode[5] = 0; mode 1314 drivers/media/usb/gspca/sonixj.c mode[6] = 0; mode 1315 drivers/media/usb/gspca/sonixj.c mode[7] = 0x10; mode 1316 drivers/media/usb/gspca/sonixj.c i2c_w8(gspca_dev, mode); mode 1318 drivers/media/usb/gspca/sonixj.c mode[0] = (mode[0] & 0x81) | (len << 4) | 0x02; mode 1319 drivers/media/usb/gspca/sonixj.c mode[2] = 0; mode 1320 drivers/media/usb/gspca/sonixj.c i2c_w8(gspca_dev, mode); mode 2179 drivers/media/usb/gspca/sonixj.c int mode; mode 2362 drivers/media/usb/gspca/sonixj.c mode = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv; mode 2375 drivers/media/usb/gspca/sonixj.c if (!mode) mode 2384 drivers/media/usb/gspca/sonixj.c if (mode) { /* if 320x240 */ mode 2395 drivers/media/usb/gspca/sonixj.c if (!mode) { /* if 640x480 */ mode 2470 drivers/media/usb/gspca/sonixj.c sd->reg18 = sn9c1xx[0x18] | (mode << 4) | 0x40; mode 225 drivers/media/usb/gspca/spca1528.c u8 mode; mode 233 drivers/media/usb/gspca/spca1528.c mode = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv; mode 234 drivers/media/usb/gspca/spca1528.c reg_wb(gspca_dev, 0x25, 0x0000, 0x0004, mode); mode 448 drivers/media/usb/gspca/spca500.c int mode; mode 457 drivers/media/usb/gspca/spca500.c mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv; mode 458 drivers/media/usb/gspca/spca500.c reg_w(gspca_dev, 0, 0x8003, mode << 4); mode 1854 drivers/media/usb/gspca/spca501.c int mode; mode 1876 drivers/media/usb/gspca/spca501.c mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv; mode 1881 drivers/media/usb/gspca/spca501.c switch (mode) { mode 626 drivers/media/usb/gspca/spca505.c int ret, mode; mode 661 drivers/media/usb/gspca/spca505.c mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv; mode 662 drivers/media/usb/gspca/spca505.c reg_write(gspca_dev, SPCA50X_REG_COMPRESS, 0x00, mode_tb[mode][0]); mode 663 drivers/media/usb/gspca/spca505.c reg_write(gspca_dev, SPCA50X_REG_COMPRESS, 0x06, mode_tb[mode][1]); mode 664 drivers/media/usb/gspca/spca505.c reg_write(gspca_dev, SPCA50X_REG_COMPRESS, 0x07, mode_tb[mode][2]); mode 1390 drivers/media/usb/gspca/spca508.c int mode; mode 1392 drivers/media/usb/gspca/spca508.c mode = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv; mode 1393 drivers/media/usb/gspca/spca508.c reg_write(gspca_dev, 0x8500, mode); mode 1394 drivers/media/usb/gspca/spca508.c switch (mode) { mode 341 drivers/media/usb/gspca/spca561.c static int i2c_read(struct gspca_dev *gspca_dev, __u16 reg, __u8 mode) mode 348 drivers/media/usb/gspca/spca561.c reg_w_val(gspca_dev, 0x8802, mode | 0x01); mode 559 drivers/media/usb/gspca/spca561.c int mode; mode 563 drivers/media/usb/gspca/spca561.c mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv; mode 564 drivers/media/usb/gspca/spca561.c if (mode <= 1) { mode 566 drivers/media/usb/gspca/spca561.c reg_w_val(gspca_dev, 0x8500, 0x10 | mode); mode 571 drivers/media/usb/gspca/spca561.c reg_w_val(gspca_dev, 0x8500, mode); mode 594 drivers/media/usb/gspca/spca561.c int mode; mode 601 drivers/media/usb/gspca/spca561.c mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv; mode 602 drivers/media/usb/gspca/spca561.c switch (mode) { mode 619 drivers/media/usb/gspca/spca561.c reg_w_val(gspca_dev, 0x8500, mode); /* mode */ mode 881 drivers/media/usb/gspca/sq930x.c int mode; mode 883 drivers/media/usb/gspca/sq930x.c mode = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv; mode 884 drivers/media/usb/gspca/sq930x.c cap = &capconfig[sd->sensor][mode]; mode 911 drivers/media/usb/gspca/sq930x.c int mode; mode 956 drivers/media/usb/gspca/sq930x.c mode = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv; mode 957 drivers/media/usb/gspca/sq930x.c lz24bp_ppl(sd, mode == 1 ? 0x0564 : 0x0310); mode 29 drivers/media/usb/gspca/stv0680.c struct v4l2_pix_format mode; mode 94 drivers/media/usb/gspca/stv0680.c static int stv0680_set_video_mode(struct gspca_dev *gspca_dev, u8 mode) mode 98 drivers/media/usb/gspca/stv0680.c if (sd->current_mode == mode) mode 102 drivers/media/usb/gspca/stv0680.c gspca_dev->usb_buf[0] = mode; mode 110 drivers/media/usb/gspca/stv0680.c if (stv0680_get_video_mode(gspca_dev) != mode) { mode 115 drivers/media/usb/gspca/stv0680.c sd->current_mode = mode; mode 201 drivers/media/usb/gspca/stv0680.c sd->mode.width = (gspca_dev->usb_buf[4] << 8) | mode 203 drivers/media/usb/gspca/stv0680.c sd->mode.height = (gspca_dev->usb_buf[6] << 8) | mode 205 drivers/media/usb/gspca/stv0680.c sd->mode.pixelformat = V4L2_PIX_FMT_STV0680; mode 206 drivers/media/usb/gspca/stv0680.c sd->mode.field = V4L2_FIELD_NONE; mode 207 drivers/media/usb/gspca/stv0680.c sd->mode.bytesperline = sd->mode.width; mode 208 drivers/media/usb/gspca/stv0680.c sd->mode.sizeimage = cam->bulk_size; mode 209 drivers/media/usb/gspca/stv0680.c sd->mode.colorspace = V4L2_COLORSPACE_SRGB; mode 213 drivers/media/usb/gspca/stv0680.c cam->cam_mode = &sd->mode; mode 286 drivers/media/usb/gspca/stv0680.c if (len != sd->mode.sizeimage) { mode 182 drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c u32 mode = cam->cam_mode[sd->gspca_dev.curr_mode].priv; mode 202 drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c if (mode & PB0100_CROP_TO_VGA) { mode 214 drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c if (mode & PB0100_SUBSAMPLE) { mode 741 drivers/media/usb/gspca/t613.c int i, mode; mode 746 drivers/media/usb/gspca/t613.c mode = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv; mode 747 drivers/media/usb/gspca/t613.c switch (mode) { mode 3426 drivers/media/usb/gspca/vc032x.c int mode; mode 3455 drivers/media/usb/gspca/vc032x.c mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv; mode 3460 drivers/media/usb/gspca/vc032x.c if (mode) mode 3468 drivers/media/usb/gspca/vc032x.c if (mode) mode 3476 drivers/media/usb/gspca/vc032x.c if (mode) mode 3484 drivers/media/usb/gspca/vc032x.c switch (mode) { mode 3499 drivers/media/usb/gspca/vc032x.c if (mode) mode 3507 drivers/media/usb/gspca/vc032x.c init = mi1320_soc_init[mode]; mode 3510 drivers/media/usb/gspca/vc032x.c init = mode == 1 ? ov7670_InitVGA : ov7670_InitQVGA; mode 3515 drivers/media/usb/gspca/vc032x.c if (mode) mode 3532 drivers/media/usb/gspca/vc032x.c if (mode) mode 5814 drivers/media/usb/gspca/zc3xx.c int i, mode; mode 5896 drivers/media/usb/gspca/zc3xx.c mode = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv; mode 5897 drivers/media/usb/gspca/zc3xx.c if (mode) mode 5905 drivers/media/usb/gspca/zc3xx.c if (mode /* if 320x240 */ mode 5911 drivers/media/usb/gspca/zc3xx.c if (!mode) { /* if 640x480 */ mode 6672 drivers/media/usb/gspca/zc3xx.c int mode; mode 6719 drivers/media/usb/gspca/zc3xx.c mode = gspca_dev->cam.cam_mode[gspca_dev->curr_mode].priv; mode 6728 drivers/media/usb/gspca/zc3xx.c usb_exchange(gspca_dev, init_tb[sd->sensor][mode]); mode 795 drivers/media/usb/hackrf/hackrf.c unsigned int mode; mode 808 drivers/media/usb/hackrf/hackrf.c mode = 1; mode 816 drivers/media/usb/hackrf/hackrf.c mode = 2; mode 826 drivers/media/usb/hackrf/hackrf.c ret = hackrf_alloc_urbs(dev, (mode == 1)); mode 839 drivers/media/usb/hackrf/hackrf.c ret = hackrf_ctrl_msg(dev, CMD_SET_TRANSCEIVER_MODE, mode, 0, NULL, 0); mode 422 drivers/media/usb/pvrusb2/pvrusb2-ctrl.c int mask,val,kv,mode,ret; mode 433 drivers/media/usb/pvrusb2/pvrusb2-ctrl.c mode = 0; mode 435 drivers/media/usb/pvrusb2/pvrusb2-ctrl.c mode = (*ptr == '-') ? -1 : 1; mode 452 drivers/media/usb/pvrusb2/pvrusb2-ctrl.c switch (mode) { mode 3392 drivers/media/usb/pvrusb2/pvrusb2-hdw.c int mode, mode 3415 drivers/media/usb/pvrusb2/pvrusb2-hdw.c hdw->fw_cpu_flag = (mode != 2); mode 3417 drivers/media/usb/pvrusb2/pvrusb2-hdw.c hdw->fw_size = (mode == 1) ? 0x4000 : 0x2000; mode 209 drivers/media/usb/pvrusb2/pvrusb2-hdw.h int mode, /* 0=8KB FX2, 1=16KB FX2, 2=PROM */ mode 314 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_name.attr.mode = S_IRUGO; mode 319 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_type.attr.mode = S_IRUGO; mode 324 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_min.attr.mode = S_IRUGO; mode 329 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_max.attr.mode = S_IRUGO; mode 334 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_def.attr.mode = S_IRUGO; mode 339 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_val.attr.mode = S_IRUGO; mode 343 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_custom.attr.mode = S_IRUGO; mode 347 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_enum.attr.mode = S_IRUGO; mode 352 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_bits.attr.mode = S_IRUGO; mode 356 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_val.attr.mode |= S_IWUSR|S_IWGRP; mode 357 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c cip->attr_custom.attr.mode |= S_IWUSR|S_IWGRP; mode 422 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c dip->attr_debugcmd.attr.mode = S_IRUGO|S_IWUSR|S_IWGRP; mode 427 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c dip->attr_debuginfo.attr.mode = S_IRUGO; mode 650 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sfp->attr_v4l_minor_number.attr.mode = S_IRUGO; mode 665 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sfp->attr_v4l_radio_minor_number.attr.mode = S_IRUGO; mode 680 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sfp->attr_unit_number.attr.mode = S_IRUGO; mode 694 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sfp->attr_bus_info.attr.mode = S_IRUGO; mode 709 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sfp->attr_hdw_name.attr.mode = S_IRUGO; mode 724 drivers/media/usb/pvrusb2/pvrusb2-sysfs.c sfp->attr_hdw_desc.attr.mode = S_IRUGO; mode 83 drivers/media/usb/pwc/pwc-ctrl.c unsigned char mode[3]; /* precomputed mode table */ mode 182 drivers/media/usb/pwc/pwc-ctrl.c pEntry->mode, 3); mode 187 drivers/media/usb/pwc/pwc-ctrl.c pwc_dec1_init(pdev, pEntry->mode); mode 245 drivers/media/usb/pwc/pwc-ctrl.c pChoose->mode, 13); mode 250 drivers/media/usb/pwc/pwc-ctrl.c pwc_dec23_init(pdev, pChoose->mode); mode 296 drivers/media/usb/pwc/pwc-ctrl.c ret = send_video_command(pdev, 4, pChoose->mode, 12); mode 301 drivers/media/usb/pwc/pwc-ctrl.c pwc_dec23_init(pdev, pChoose->mode); mode 27 drivers/media/usb/pwc/pwc-kiara.h unsigned char mode[12]; /* precomputed mode settings for cam */ mode 42 drivers/media/usb/pwc/pwc-timon.h unsigned char mode[13]; /* precomputed mode settings for cam */ mode 212 drivers/media/usb/s2255/s2255drv.c struct s2255_mode mode; mode 341 drivers/media/usb/s2255/s2255drv.c static int s2255_set_mode(struct s2255_vc *vc, struct s2255_mode *mode); mode 816 drivers/media/usb/s2255/s2255drv.c struct s2255_mode mode; mode 834 drivers/media/usb/s2255/s2255drv.c mode = vc->mode; mode 843 drivers/media/usb/s2255/s2255drv.c mode.scale = SCALE_4CIFSI; mode 845 drivers/media/usb/s2255/s2255drv.c mode.scale = SCALE_4CIFS; mode 847 drivers/media/usb/s2255/s2255drv.c mode.scale = SCALE_2CIFS; mode 850 drivers/media/usb/s2255/s2255drv.c mode.scale = SCALE_1CIFS; mode 855 drivers/media/usb/s2255/s2255drv.c mode.color &= ~MASK_COLOR; mode 856 drivers/media/usb/s2255/s2255drv.c mode.color |= COLOR_Y8; mode 860 drivers/media/usb/s2255/s2255drv.c mode.color &= ~MASK_COLOR; mode 861 drivers/media/usb/s2255/s2255drv.c mode.color |= COLOR_JPG; mode 862 drivers/media/usb/s2255/s2255drv.c mode.color |= (vc->jpegqual << 8); mode 865 drivers/media/usb/s2255/s2255drv.c mode.color &= ~MASK_COLOR; mode 866 drivers/media/usb/s2255/s2255drv.c mode.color |= COLOR_YUVPL; mode 871 drivers/media/usb/s2255/s2255drv.c mode.color &= ~MASK_COLOR; mode 872 drivers/media/usb/s2255/s2255drv.c mode.color |= COLOR_YUVPK; mode 875 drivers/media/usb/s2255/s2255drv.c if ((mode.color & MASK_COLOR) != (vc->mode.color & MASK_COLOR)) mode 876 drivers/media/usb/s2255/s2255drv.c mode.restart = 1; mode 877 drivers/media/usb/s2255/s2255drv.c else if (mode.scale != vc->mode.scale) mode 878 drivers/media/usb/s2255/s2255drv.c mode.restart = 1; mode 879 drivers/media/usb/s2255/s2255drv.c else if (mode.format != vc->mode.format) mode 880 drivers/media/usb/s2255/s2255drv.c mode.restart = 1; mode 881 drivers/media/usb/s2255/s2255drv.c vc->mode = mode; mode 882 drivers/media/usb/s2255/s2255drv.c (void) s2255_set_mode(vc, &mode); mode 901 drivers/media/usb/s2255/s2255drv.c static u32 get_transfer_size(struct s2255_mode *mode) mode 909 drivers/media/usb/s2255/s2255drv.c if (mode == NULL) mode 912 drivers/media/usb/s2255/s2255drv.c if (mode->format == FORMAT_NTSC) { mode 913 drivers/media/usb/s2255/s2255drv.c switch (mode->scale) { mode 930 drivers/media/usb/s2255/s2255drv.c } else if (mode->format == FORMAT_PAL) { mode 931 drivers/media/usb/s2255/s2255drv.c switch (mode->scale) { mode 950 drivers/media/usb/s2255/s2255drv.c if ((mode->color & MASK_COLOR) != COLOR_Y8) { mode 965 drivers/media/usb/s2255/s2255drv.c static void s2255_print_cfg(struct s2255_dev *sdev, struct s2255_mode *mode) mode 969 drivers/media/usb/s2255/s2255drv.c dev_info(dev, "format: %d\nscale %d\n", mode->format, mode->scale); mode 970 drivers/media/usb/s2255/s2255drv.c dev_info(dev, "fdec: %d\ncolor %d\n", mode->fdec, mode->color); mode 971 drivers/media/usb/s2255/s2255drv.c dev_info(dev, "bright: 0x%x\n", mode->bright); mode 984 drivers/media/usb/s2255/s2255drv.c struct s2255_mode *mode) mode 996 drivers/media/usb/s2255/s2255drv.c if ((mode->color & MASK_COLOR) == COLOR_JPG) { mode 997 drivers/media/usb/s2255/s2255drv.c mode->color &= ~MASK_COLOR; mode 998 drivers/media/usb/s2255/s2255drv.c mode->color |= COLOR_JPG; mode 999 drivers/media/usb/s2255/s2255drv.c mode->color &= ~MASK_JPG_QUALITY; mode 1000 drivers/media/usb/s2255/s2255drv.c mode->color |= (vc->jpegqual << 8); mode 1003 drivers/media/usb/s2255/s2255drv.c vc->mode = *mode; mode 1004 drivers/media/usb/s2255/s2255drv.c vc->req_image_size = get_transfer_size(mode); mode 1011 drivers/media/usb/s2255/s2255drv.c buffer[3 + i] = cpu_to_le32(((u32 *)&vc->mode)[i]); mode 1015 drivers/media/usb/s2255/s2255drv.c s2255_print_cfg(dev, mode); mode 1017 drivers/media/usb/s2255/s2255drv.c if (mode->restart) { mode 1027 drivers/media/usb/s2255/s2255drv.c vc->mode.restart = 0; mode 1099 drivers/media/usb/s2255/s2255drv.c struct s2255_mode mode; mode 1109 drivers/media/usb/s2255/s2255drv.c mode = vc->mode; mode 1113 drivers/media/usb/s2255/s2255drv.c if (mode.format != FORMAT_NTSC) { mode 1114 drivers/media/usb/s2255/s2255drv.c mode.restart = 1; mode 1115 drivers/media/usb/s2255/s2255drv.c mode.format = FORMAT_NTSC; mode 1116 drivers/media/usb/s2255/s2255drv.c mode.fdec = FDEC_1; mode 1122 drivers/media/usb/s2255/s2255drv.c if (mode.format != FORMAT_PAL) { mode 1123 drivers/media/usb/s2255/s2255drv.c mode.restart = 1; mode 1124 drivers/media/usb/s2255/s2255drv.c mode.format = FORMAT_PAL; mode 1125 drivers/media/usb/s2255/s2255drv.c mode.fdec = FDEC_1; mode 1132 drivers/media/usb/s2255/s2255drv.c if (mode.restart) mode 1133 drivers/media/usb/s2255/s2255drv.c s2255_set_mode(vc, &mode); mode 1202 drivers/media/usb/s2255/s2255drv.c struct s2255_mode mode; mode 1203 drivers/media/usb/s2255/s2255drv.c mode = vc->mode; mode 1207 drivers/media/usb/s2255/s2255drv.c mode.bright = ctrl->val; mode 1210 drivers/media/usb/s2255/s2255drv.c mode.contrast = ctrl->val; mode 1213 drivers/media/usb/s2255/s2255drv.c mode.hue = ctrl->val; mode 1216 drivers/media/usb/s2255/s2255drv.c mode.saturation = ctrl->val; mode 1219 drivers/media/usb/s2255/s2255drv.c mode.color &= ~MASK_INPUT_TYPE; mode 1220 drivers/media/usb/s2255/s2255drv.c mode.color |= !ctrl->val << 16; mode 1228 drivers/media/usb/s2255/s2255drv.c mode.restart = 0; mode 1233 drivers/media/usb/s2255/s2255drv.c s2255_set_mode(vc, &mode); mode 1271 drivers/media/usb/s2255/s2255drv.c def_num = (vc->mode.format == FORMAT_NTSC) ? 1001 : 1000; mode 1272 drivers/media/usb/s2255/s2255drv.c def_dem = (vc->mode.format == FORMAT_NTSC) ? 30000 : 25000; mode 1274 drivers/media/usb/s2255/s2255drv.c switch (vc->mode.fdec) { mode 1301 drivers/media/usb/s2255/s2255drv.c struct s2255_mode mode; mode 1306 drivers/media/usb/s2255/s2255drv.c mode = vc->mode; mode 1311 drivers/media/usb/s2255/s2255drv.c def_num = (mode.format == FORMAT_NTSC) ? 1001 : 1000; mode 1312 drivers/media/usb/s2255/s2255drv.c def_dem = (mode.format == FORMAT_NTSC) ? 30000 : 25000; mode 1327 drivers/media/usb/s2255/s2255drv.c mode.fdec = fdec; mode 1330 drivers/media/usb/s2255/s2255drv.c s2255_set_mode(vc, &mode); mode 1480 drivers/media/usb/s2255/s2255drv.c s2255_set_mode(vc, &vc->mode); mode 1998 drivers/media/usb/s2255/s2255drv.c vc->mode = mode_def; mode 2000 drivers/media/usb/s2255/s2255drv.c vc->mode.color |= (1 << 16); mode 2006 drivers/media/usb/s2255/s2255drv.c vc->mode.restart = 1; mode 242 drivers/media/usb/siano/smsusb.c static inline char *sms_get_fw_name(int mode, int board_id) mode 245 drivers/media/usb/siano/smsusb.c return (fw && fw[mode]) ? fw[mode] : smsusb1_fw_lkup[mode]; mode 301 drivers/media/usb/siano/smsusb.c static void smsusb1_detectmode(void *context, int *mode) mode 306 drivers/media/usb/siano/smsusb.c *mode = DEVICE_MODE_NONE; mode 312 drivers/media/usb/siano/smsusb.c *mode = 1; mode 314 drivers/media/usb/siano/smsusb.c *mode = 4; mode 316 drivers/media/usb/siano/smsusb.c *mode = 0; mode 318 drivers/media/usb/siano/smsusb.c *mode = 2; mode 320 drivers/media/usb/siano/smsusb.c pr_debug("%d \"%s\"\n", *mode, product_string); mode 323 drivers/media/usb/siano/smsusb.c static int smsusb1_setmode(void *context, int mode) mode 328 drivers/media/usb/siano/smsusb.c if (mode < DEVICE_MODE_DVBT || mode > DEVICE_MODE_DVBT_BDA) { mode 329 drivers/media/usb/siano/smsusb.c pr_err("invalid firmware id specified %d\n", mode); mode 501 drivers/media/usb/stkwebcam/stk-sensor.c switch (dev->vsettings.mode) { mode 518 drivers/media/usb/stkwebcam/stk-sensor.c pr_err("Unsupported mode %d\n", dev->vsettings.mode); mode 560 drivers/media/usb/stkwebcam/stk-sensor.c switch (dev->vsettings.mode) { mode 898 drivers/media/usb/stkwebcam/stk-webcam.c stk_sizes[i].m != dev->vsettings.mode; i++) mode 976 drivers/media/usb/stkwebcam/stk-webcam.c stk_sizes[i].m != dev->vsettings.mode) mode 984 drivers/media/usb/stkwebcam/stk-webcam.c if (dev->vsettings.mode == MODE_SXGA) mode 1025 drivers/media/usb/stkwebcam/stk-webcam.c dev->vsettings.mode = stk_sizes[idx].m; mode 1352 drivers/media/usb/stkwebcam/stk-webcam.c dev->vsettings.mode = MODE_VGA; mode 44 drivers/media/usb/stkwebcam/stk-webcam.h enum stk_mode mode; mode 113 drivers/media/usb/tm6000/tm6000-dvb.c if (dev->mode != TM6000_MODE_DIGITAL) { mode 115 drivers/media/usb/tm6000/tm6000-dvb.c dev->mode = TM6000_MODE_DIGITAL; mode 1360 drivers/media/usb/tm6000/tm6000-video.c dev->mode = TM6000_MODE_ANALOG; mode 224 drivers/media/usb/tm6000/tm6000.h enum tm6000_mode mode; mode 383 drivers/media/usb/ttusb-dec/ttusb_dec.c static int ttusb_dec_get_stb_state (struct ttusb_dec *dec, unsigned int *mode, mode 398 drivers/media/usb/ttusb-dec/ttusb_dec.c if (mode != NULL) { mode 400 drivers/media/usb/ttusb-dec/ttusb_dec.c *mode = ntohl(tmp); mode 1417 drivers/media/usb/ttusb-dec/ttusb_dec.c unsigned int mode = 0, model = 0, version = 0; mode 1421 drivers/media/usb/ttusb-dec/ttusb_dec.c result = ttusb_dec_get_stb_state(dec, &mode, &model, &version); mode 1425 drivers/media/usb/ttusb-dec/ttusb_dec.c if (!mode) { mode 2392 drivers/media/usb/usbvision/usbvision-core.c int mode[4] = { SAA7115_COMPOSITE0, 0, 0, SAA7115_COMPOSITE3 }; mode 2408 drivers/media/usb/usbvision/usbvision-core.c mode[1] = SAA7115_COMPOSITE2; mode 2413 drivers/media/usb/usbvision/usbvision-core.c mode[2] = SAA7115_COMPOSITE1; mode 2415 drivers/media/usb/usbvision/usbvision-core.c mode[2] = SAA7115_SVIDEO1; mode 2421 drivers/media/usb/usbvision/usbvision-core.c mode[1] = SAA7115_COMPOSITE1; mode 2422 drivers/media/usb/usbvision/usbvision-core.c mode[2] = SAA7115_SVIDEO1; mode 2425 drivers/media/usb/usbvision/usbvision-core.c call_all(usbvision, video, s_routing, mode[channel], 0, 0); mode 75 drivers/media/usb/zr364xx/zr364xx.c static int mode; mode 81 drivers/media/usb/zr364xx/zr364xx.c module_param(mode, int, 0644); mode 82 drivers/media/usb/zr364xx/zr364xx.c MODULE_PARM_DESC(mode, "0 = 320x240, 1 = 160x120, 2 = 640x480"); mode 849 drivers/media/usb/zr364xx/zr364xx.c mode = 1; mode 851 drivers/media/usb/zr364xx/zr364xx.c mode = 2; mode 853 drivers/media/usb/zr364xx/zr364xx.c mode = 0; mode 855 drivers/media/usb/zr364xx/zr364xx.c m0d1[0] = mode; mode 856 drivers/media/usb/zr364xx/zr364xx.c m1[2].value = 0xf000 + mode; mode 857 drivers/media/usb/zr364xx/zr364xx.c m2[1].value = 0xf000 + mode; mode 861 drivers/media/usb/zr364xx/zr364xx.c switch (mode) { mode 1436 drivers/media/usb/zr364xx/zr364xx.c switch (mode) { mode 1454 drivers/media/usb/zr364xx/zr364xx.c m0d1[0] = mode; mode 1455 drivers/media/usb/zr364xx/zr364xx.c m1[2].value = 0xf000 + mode; mode 1456 drivers/media/usb/zr364xx/zr364xx.c m2[1].value = 0xf000 + mode; mode 1460 drivers/media/usb/zr364xx/zr364xx.c switch (mode) { mode 161 drivers/media/v4l2-core/tuner-core.c enum v4l2_tuner_type mode; mode 488 drivers/media/v4l2-core/tuner-core.c if (V4L2_TUNER_RADIO == t->mode) mode 763 drivers/media/v4l2-core/tuner-core.c t->mode = V4L2_TUNER_ANALOG_TV; mode 765 drivers/media/v4l2-core/tuner-core.c t->mode = V4L2_TUNER_RADIO; mode 819 drivers/media/v4l2-core/tuner-core.c static inline int check_mode(struct tuner *t, enum v4l2_tuner_type mode) mode 822 drivers/media/v4l2-core/tuner-core.c if (mode == V4L2_TUNER_RADIO) mode 842 drivers/media/v4l2-core/tuner-core.c static int set_mode(struct tuner *t, enum v4l2_tuner_type mode) mode 846 drivers/media/v4l2-core/tuner-core.c if (mode != t->mode) { mode 847 drivers/media/v4l2-core/tuner-core.c if (check_mode(t, mode) == -EINVAL) { mode 849 drivers/media/v4l2-core/tuner-core.c mode); mode 855 drivers/media/v4l2-core/tuner-core.c t->mode = mode; mode 856 drivers/media/v4l2-core/tuner-core.c dprintk("Changing to mode %d\n", mode); mode 870 drivers/media/v4l2-core/tuner-core.c if (t->mode == V4L2_TUNER_RADIO) { mode 897 drivers/media/v4l2-core/tuner-core.c .mode = t->mode, mode 1038 drivers/media/v4l2-core/tuner-core.c .mode = t->mode, mode 1095 drivers/media/v4l2-core/tuner-core.c switch (t->mode) { mode 1107 drivers/media/v4l2-core/tuner-core.c if (t->mode == V4L2_TUNER_RADIO) { mode 1118 drivers/media/v4l2-core/tuner-core.c if (t->mode != V4L2_TUNER_RADIO) mode 1210 drivers/media/v4l2-core/tuner-core.c if (f->type == t->mode && fe_tuner_ops->get_frequency && !t->standby) { mode 1214 drivers/media/v4l2-core/tuner-core.c f->frequency = (V4L2_TUNER_RADIO == t->mode) ? mode 1242 drivers/media/v4l2-core/tuner-core.c if (vt->type == t->mode && analog_ops->get_afc) mode 1244 drivers/media/v4l2-core/tuner-core.c if (vt->type == t->mode && analog_ops->has_signal) { mode 1258 drivers/media/v4l2-core/tuner-core.c if (vt->type == t->mode) { mode 1294 drivers/media/v4l2-core/tuner-core.c if (t->mode == V4L2_TUNER_RADIO) { mode 1348 drivers/media/v4l2-core/tuner-core.c if (set_mode(t, t->mode) == 0) mode 244 drivers/media/v4l2-core/v4l2-ioctl.c pr_cont("index=%u, mode=0x%x\n", p->index, p->mode); mode 248 drivers/media/v4l2-core/v4l2-ioctl.c p->capability, p->mode); mode 260 drivers/media/v4l2-core/v4l2-ioctl.c p->capability, p->mode); mode 32 drivers/memory/atmel-ebi.c u32 mode; mode 134 drivers/memory/atmel-ebi.c smcconf->mode |= ATMEL_SMC_MODE_TDF(ncycles); mode 186 drivers/memory/atmel-ebi.c smcconf->mode |= ATMEL_SMC_MODE_DBW_8; mode 190 drivers/memory/atmel-ebi.c smcconf->mode |= ATMEL_SMC_MODE_DBW_16; mode 194 drivers/memory/atmel-ebi.c smcconf->mode |= ATMEL_SMC_MODE_DBW_32; mode 205 drivers/memory/atmel-ebi.c smcconf->mode |= ATMEL_SMC_MODE_TDFMODE_OPTIMIZED; mode 212 drivers/memory/atmel-ebi.c smcconf->mode |= ATMEL_SMC_MODE_BAT_WRITE; mode 219 drivers/memory/atmel-ebi.c smcconf->mode |= ATMEL_SMC_MODE_READMODE_NRD; mode 226 drivers/memory/atmel-ebi.c smcconf->mode |= ATMEL_SMC_MODE_WRITEMODE_NWE; mode 234 drivers/memory/atmel-ebi.c smcconf->mode |= ATMEL_SMC_MODE_EXNWMODE_FROZEN; mode 236 drivers/memory/atmel-ebi.c smcconf->mode |= ATMEL_SMC_MODE_EXNWMODE_READY; mode 247 drivers/memory/atmel-ebi.c smcconf->mode |= ATMEL_SMC_MODE_PS_4; mode 251 drivers/memory/atmel-ebi.c smcconf->mode |= ATMEL_SMC_MODE_PS_8; mode 255 drivers/memory/atmel-ebi.c smcconf->mode |= ATMEL_SMC_MODE_PS_16; mode 259 drivers/memory/atmel-ebi.c smcconf->mode |= ATMEL_SMC_MODE_PS_32; mode 266 drivers/memory/atmel-ebi.c smcconf->mode |= ATMEL_SMC_MODE_PMEN; mode 209 drivers/memory/pl353-smc.c int pl353_smc_set_ecc_mode(enum pl353_smc_ecc_mode mode) mode 214 drivers/memory/pl353-smc.c switch (mode) { mode 221 drivers/memory/pl353-smc.c reg |= mode << PL353_SMC_ECC_MEMCFG_MODE_SHIFT; mode 1937 drivers/memstick/core/ms_block.c static int msb_bd_open(struct block_device *bdev, fmode_t mode) mode 1984 drivers/memstick/core/ms_block.c static void msb_bd_release(struct gendisk *disk, fmode_t mode) mode 181 drivers/memstick/core/mspro_block.c static int mspro_block_bd_open(struct block_device *bdev, fmode_t mode) mode 191 drivers/memstick/core/mspro_block.c if ((mode & FMODE_WRITE) && msb->read_only) mode 225 drivers/memstick/core/mspro_block.c static void mspro_block_bd_release(struct gendisk *disk, fmode_t mode) mode 1055 drivers/memstick/core/mspro_block.c s_attr->dev_attr.attr.mode = S_IRUGO; mode 600 drivers/message/fusion/mptctl.c mptctl_fasync(int fd, struct file *filep, int mode) mode 609 drivers/message/fusion/mptctl.c ret = fasync_helper(fd, filep, mode, &async_queue); mode 484 drivers/mfd/ab3100-core.c bool mode; mode 530 drivers/mfd/ab3100-core.c if (!priv->mode) { mode 591 drivers/mfd/ab3100-core.c ab3100_get_priv.mode = false; mode 596 drivers/mfd/ab3100-core.c ab3100_set_priv.mode = true; mode 2529 drivers/mfd/ab8500-debugfs.c dev_attr[irq_index]->attr.mode = S_IRUGO; mode 39 drivers/mfd/adp5520.c uint8_t mode; mode 314 drivers/mfd/adp5520.c adp5520_read(chip->dev, ADP5520_MODE_STATUS, &chip->mode); mode 316 drivers/mfd/adp5520.c chip->mode &= ADP5520_BL_EN | ADP5520_DIM_EN | ADP5520_nSTNBY; mode 326 drivers/mfd/adp5520.c adp5520_write(chip->dev, ADP5520_MODE_STATUS, chip->mode); mode 122 drivers/mfd/altera-a10sr.c spi->mode = SPI_MODE_3; mode 251 drivers/mfd/atmel-smc.c regmap_write(regmap, ATMEL_SMC_MODE(cs), conf->mode); mode 273 drivers/mfd/atmel-smc.c regmap_write(regmap, ATMEL_HSMC_MODE(layout, cs), conf->mode); mode 292 drivers/mfd/atmel-smc.c regmap_read(regmap, ATMEL_SMC_MODE(cs), &conf->mode); mode 314 drivers/mfd/atmel-smc.c regmap_read(regmap, ATMEL_HSMC_MODE(layout, cs), &conf->mode); mode 30 drivers/mfd/da9052-spi.c spi->mode = SPI_MODE_0; mode 444 drivers/mfd/ezx-pcap.c spi->mode = SPI_MODE_0 | (pdata->config & PCAP_CS_AH ? SPI_CS_HIGH : 0); mode 366 drivers/mfd/lm3533-core.c umode_t mode = attr->mode; mode 369 drivers/mfd/lm3533-core.c mode = 0; mode 371 drivers/mfd/lm3533-core.c mode = 0; mode 373 drivers/mfd/lm3533-core.c return mode; mode 252 drivers/mfd/mc13xxx-core.c int mc13xxx_adc_do_conversion(struct mc13xxx *mc13xxx, unsigned int mode, mode 298 drivers/mfd/mc13xxx-core.c switch (mode) { mode 351 drivers/mfd/mc13xxx-core.c if (mode == MC13XXX_ADC_MODE_TS) mode 137 drivers/mfd/mc13xxx-spi.c spi->mode = SPI_MODE_0 | SPI_CS_HIGH; mode 450 drivers/mfd/menelaus.c int vtg_val, int mode) mode 470 drivers/mfd/menelaus.c ret = menelaus_write_reg(vtg->mode_reg, mode); mode 282 drivers/mfd/motorola-cpcap.c spi->mode = SPI_MODE_0 | SPI_CS_HIGH; mode 491 drivers/mfd/omap-usb-host.c const char *mode; mode 496 drivers/mfd/omap-usb-host.c ret = of_property_read_string(node, prop, &mode); mode 501 drivers/mfd/omap-usb-host.c ret = match_string(port_modes, ARRAY_SIZE(port_modes), mode); mode 504 drivers/mfd/omap-usb-host.c i, mode); mode 508 drivers/mfd/omap-usb-host.c dev_dbg(dev, "port%d-mode: %s -> %d\n", i, mode, ret); mode 159 drivers/mfd/omap-usb-tll.c static unsigned ohci_omap3_fslsmode(enum usbhs_omap_port_mode mode) mode 161 drivers/mfd/omap-usb-tll.c switch (mode) { mode 69 drivers/mfd/rn5t618.c unsigned long mode, void *cmd) mode 997 drivers/mfd/si476x-cmd.c enum si476x_phase_diversity_mode mode) mode 1001 drivers/mfd/si476x-cmd.c mode & 0x07, mode 318 drivers/mfd/sm501.c unsigned long mode; mode 324 drivers/mfd/sm501.c mode = smc501_readl(sm->regs + SM501_POWER_MODE_CONTROL); mode 328 drivers/mfd/sm501.c mode &= 3; /* get current power mode */ mode 356 drivers/mfd/sm501.c switch (mode) { mode 360 drivers/mfd/sm501.c mode = 0; mode 366 drivers/mfd/sm501.c mode = 1; mode 374 drivers/mfd/sm501.c smc501_writel(mode, sm->regs + SM501_POWER_MODE_CONTROL); mode 378 drivers/mfd/sm501.c gate, clock, mode); mode 513 drivers/mfd/sm501.c unsigned long mode = smc501_readl(sm->regs + SM501_POWER_MODE_CONTROL); mode 586 drivers/mfd/sm501.c mode = smc501_readl(sm->regs + SM501_POWER_MODE_CONTROL); mode 593 drivers/mfd/sm501.c mode &= 3; /* find current mode */ mode 595 drivers/mfd/sm501.c switch (mode) { mode 599 drivers/mfd/sm501.c mode = 0; mode 605 drivers/mfd/sm501.c mode = 1; mode 613 drivers/mfd/sm501.c smc501_writel(mode, sm->regs + SM501_POWER_MODE_CONTROL); mode 622 drivers/mfd/sm501.c gate, clock, mode); mode 72 drivers/mfd/stmpe-spi.c spi_reg_write(stmpe, STMPE811_REG_SPI_CFG, spi->mode); mode 331 drivers/mfd/tc6393xb.c const struct fb_videomode *mode) { mode 337 drivers/mfd/tc6393xb.c iowrite16(mode->pixclock, tc6393xb->scr + SCR_PLL1CR + 0); mode 338 drivers/mfd/tc6393xb.c iowrite16(mode->pixclock >> 16, tc6393xb->scr + SCR_PLL1CR + 2); mode 119 drivers/mfd/timberdale.c .mode = SPI_MODE_0, mode 129 drivers/mfd/timberdale.c .mode = SPI_MODE_1, mode 129 drivers/mfd/tps6105x.c switch (pdata->mode) { mode 144 drivers/mfd/tps6105x.c dev_warn(&client->dev, "invalid mode: %d\n", pdata->mode); mode 764 drivers/mfd/tps65010.c int tps65010_set_led(unsigned led, unsigned mode) mode 789 drivers/mfd/tps65010.c switch (mode) { mode 874 drivers/mfd/tps65010.c int tps65010_set_low_pwr(unsigned mode) mode 885 drivers/mfd/tps65010.c mode ? "enable" : "disable", mode 890 drivers/mfd/tps65010.c switch (mode) { mode 985 drivers/mfd/tps65010.c int tps65013_set_low_pwr(unsigned mode) mode 997 drivers/mfd/tps65010.c mode ? "enable" : "disable", mode 1004 drivers/mfd/tps65010.c switch (mode) { mode 84 drivers/mfd/wl1273-core.c if (core->mode == WL1273_MODE_OFF || mode 85 drivers/mfd/wl1273-core.c core->mode == WL1273_MODE_SUSPENDED) mode 88 drivers/mfd/wl1273-core.c if (core->mode == WL1273_MODE_RX && new_mode == WL1273_AUDIO_DIGITAL) { mode 104 drivers/mfd/wl1273-core.c } else if (core->mode == WL1273_MODE_RX && mode 111 drivers/mfd/wl1273-core.c } else if (core->mode == WL1273_MODE_TX && mode 123 drivers/mfd/wl1273-core.c } else if (core->mode == WL1273_MODE_TX && mode 45 drivers/mfd/wm831x-spi.c spi->mode = SPI_MODE_0; mode 277 drivers/mfd/wm8350-core.c unsigned int cust_id, mode, chip_rev; mode 307 drivers/mfd/wm8350-core.c mode = (id2 & WM8350_CONF_STS_MASK) >> 10; mode 312 drivers/mfd/wm8350-core.c mode, cust_id, mask_rev, chip_rev); mode 452 drivers/misc/apds990x.c static int apds990x_ack_int(struct apds990x_chip *chip, u8 mode) mode 458 drivers/misc/apds990x.c switch (mode & (APDS990X_ST_AINT | APDS990X_ST_PINT)) { mode 214 drivers/misc/bh1770glc.c static int bh1770_prox_rate(struct bh1770_chip *chip, int mode) mode 218 drivers/misc/bh1770glc.c rate = (mode == PROX_ABOVE_THRESHOLD) ? mode 452 drivers/misc/bh1770glc.c u8 mode; mode 486 drivers/misc/bh1770glc.c mode = PROX_ABOVE_THRESHOLD; mode 491 drivers/misc/bh1770glc.c mode = PROX_BELOW_THRESHOLD; mode 498 drivers/misc/bh1770glc.c bh1770_prox_rate(chip, mode); mode 1089 drivers/misc/cxl/cxl.h int (*afu_activate_mode)(struct cxl_afu *afu, int mode); mode 1090 drivers/misc/cxl/cxl.h int (*afu_deactivate_mode)(struct cxl_afu *afu, int mode); mode 110 drivers/misc/cxl/cxllib.c int cxllib_switch_phb_mode(struct pci_dev *dev, enum cxllib_mode mode, mode 118 drivers/misc/cxl/cxllib.c switch (mode) { mode 29 drivers/misc/cxl/debugfs.c static void debugfs_create_io_x64(const char *name, umode_t mode, mode 32 drivers/misc/cxl/debugfs.c debugfs_create_file_unsafe(name, mode, parent, (void __force *)value, mode 549 drivers/misc/cxl/file.c static char *cxl_devnode(struct device *dev, umode_t *mode) mode 756 drivers/misc/cxl/guest.c static int guest_afu_activate_mode(struct cxl_afu *afu, int mode) mode 758 drivers/misc/cxl/guest.c if (!mode) mode 760 drivers/misc/cxl/guest.c if (!(mode & afu->modes_supported)) mode 763 drivers/misc/cxl/guest.c if (mode == CXL_MODE_DIRECTED) mode 766 drivers/misc/cxl/guest.c if (mode == CXL_MODE_DEDICATED) mode 787 drivers/misc/cxl/guest.c static int guest_afu_deactivate_mode(struct cxl_afu *afu, int mode) mode 789 drivers/misc/cxl/guest.c if (!mode) mode 791 drivers/misc/cxl/guest.c if (!(mode & afu->modes_supported)) mode 794 drivers/misc/cxl/guest.c if (mode == CXL_MODE_DIRECTED) mode 222 drivers/misc/cxl/native.c static int cxl_alloc_spa(struct cxl_afu *afu, int mode) mode 235 drivers/misc/cxl/native.c if (mode != CXL_MODE_DEDICATED) mode 978 drivers/misc/cxl/native.c static int native_afu_deactivate_mode(struct cxl_afu *afu, int mode) mode 980 drivers/misc/cxl/native.c if (mode == CXL_MODE_DIRECTED) mode 982 drivers/misc/cxl/native.c if (mode == CXL_MODE_DEDICATED) mode 987 drivers/misc/cxl/native.c static int native_afu_activate_mode(struct cxl_afu *afu, int mode) mode 989 drivers/misc/cxl/native.c if (!mode) mode 991 drivers/misc/cxl/native.c if (!(mode & afu->modes_supported)) mode 999 drivers/misc/cxl/native.c if (mode == CXL_MODE_DIRECTED) mode 1001 drivers/misc/cxl/native.c if ((mode == CXL_MODE_DEDICATED) && mode 350 drivers/misc/cxl/sysfs.c enum prefault_modes mode = -1; mode 353 drivers/misc/cxl/sysfs.c mode = CXL_PREFAULT_NONE; mode 359 drivers/misc/cxl/sysfs.c mode = CXL_PREFAULT_WED; mode 361 drivers/misc/cxl/sysfs.c mode = CXL_PREFAULT_ALL; mode 367 drivers/misc/cxl/sysfs.c if (mode == -1) mode 370 drivers/misc/cxl/sysfs.c afu->prefault_mode = mode; mode 391 drivers/misc/cxl/sysfs.c int old_mode, mode = -1; mode 400 drivers/misc/cxl/sysfs.c mode = CXL_MODE_DEDICATED; mode 402 drivers/misc/cxl/sysfs.c mode = CXL_MODE_DIRECTED; mode 404 drivers/misc/cxl/sysfs.c mode = 0; mode 406 drivers/misc/cxl/sysfs.c if (mode == -1) { mode 423 drivers/misc/cxl/sysfs.c if ((rc = cxl_ops->afu_activate_mode(afu, mode))) mode 460 drivers/misc/cxl/sysfs.c __ATTR_RW(mode), mode 620 drivers/misc/cxl/sysfs.c cr->config_attr.attr.mode = S_IRUSR; mode 693 drivers/misc/cxl/sysfs.c afu->attr_eb.attr.mode = S_IRUGO; mode 193 drivers/misc/ds1682.c .mode = S_IRUGO | S_IWUSR, mode 83 drivers/misc/eeprom/digsy_mtc_eeprom.c .mode = SPI_MODE_0, mode 166 drivers/misc/eeprom/ee1004.c .mode = 0444, mode 111 drivers/misc/eeprom/eeprom.c .mode = S_IRUGO, mode 1334 drivers/misc/eeprom/idt_89hpesx.c pdev->ee_file->attr.mode &= ~0200; mode 127 drivers/misc/eeprom/max6875.c .mode = S_IRUGO, mode 1349 drivers/misc/genwqe/card_base.c static char *genwqe_devnode(struct device *dev, umode_t *mode) mode 1351 drivers/misc/genwqe/card_base.c if (mode) mode 1352 drivers/misc/genwqe/card_base.c *mode = 0666; mode 337 drivers/misc/genwqe/card_dev.c static int genwqe_fasync(int fd, struct file *filp, int mode) mode 341 drivers/misc/genwqe/card_dev.c return fasync_helper(fd, filp, mode, &cdev->async_queue); mode 275 drivers/misc/genwqe/card_sysfs.c umode_t mode = attr->mode; mode 278 drivers/misc/genwqe/card_sysfs.c return mode; mode 282 drivers/misc/genwqe/card_sysfs.c return mode; mode 362 drivers/misc/habanalabs/sysfs.c .attr = {.name = "eeprom", .mode = (0444)}, mode 76 drivers/misc/ibmasm/ibmasmfs.c static struct inode *ibmasmfs_make_inode(struct super_block *sb, int mode); mode 135 drivers/misc/ibmasm/ibmasmfs.c static struct inode *ibmasmfs_make_inode(struct super_block *sb, int mode) mode 141 drivers/misc/ibmasm/ibmasmfs.c ret->i_mode = mode; mode 151 drivers/misc/ibmasm/ibmasmfs.c int mode) mode 160 drivers/misc/ibmasm/ibmasmfs.c inode = ibmasmfs_make_inode(parent->d_sb, S_IFREG | mode); mode 133 drivers/misc/isl29003.c static int isl29003_set_mode(struct i2c_client *client, int mode) mode 136 drivers/misc/isl29003.c ISL29003_RES_MASK, ISL29003_RES_SHIFT, mode); mode 283 drivers/misc/isl29003.c static DEVICE_ATTR(mode, S_IWUSR | S_IRUGO, mode 73 drivers/misc/lis3lv02d/lis3lv02d_spi.c spi->mode = SPI_MODE_0; mode 141 drivers/misc/mei/bus-fixup.c unsigned int mode = MEI_CL_IO_TX_BLOCKING | MEI_CL_IO_TX_INTERNAL; mode 157 drivers/misc/mei/bus-fixup.c return __mei_cl_send(cldev->cl, buf, size, mode); mode 34 drivers/misc/mei/bus.c unsigned int mode) mode 90 drivers/misc/mei/bus.c cb->internal = !!(mode & MEI_CL_IO_TX_INTERNAL); mode 91 drivers/misc/mei/bus.c cb->blocking = !!(mode & MEI_CL_IO_TX_BLOCKING); mode 114 drivers/misc/mei/bus.c unsigned int mode, unsigned long timeout) mode 120 drivers/misc/mei/bus.c bool nonblock = !!(mode & MEI_CL_IO_RX_NONBLOCK); mode 320 drivers/misc/mei/mei_dev.h unsigned int mode); mode 322 drivers/misc/mei/mei_dev.h unsigned int mode, unsigned long timeout); mode 582 drivers/misc/ocxl/file.c static char *ocxl_devnode(struct device *dev, umode_t *mode) mode 121 drivers/misc/ocxl/sysfs.c info->attr_global_mmio.attr.mode = 0600; mode 652 drivers/misc/pch_phub.c .mode = S_IRUGO | S_IWUSR, mode 165 drivers/misc/sgi-gru/gruprocfs.c const char *mode[] = { "??", "UPM", "INTR", "OS_POLL" }; mode 181 drivers/misc/sgi-gru/gruprocfs.c mode[ts->ts_user_options & mode 100 drivers/misc/sgi-xp/xpc_main.c .mode = 0644, mode 108 drivers/misc/sgi-xp/xpc_main.c .mode = 0644, mode 117 drivers/misc/sgi-xp/xpc_main.c .mode = 0555, mode 123 drivers/misc/sgi-xp/xpc_main.c .mode = 0644, mode 132 drivers/misc/sgi-xp/xpc_main.c .mode = 0555, mode 85 drivers/misc/sram.c part->battr.attr.mode = S_IRUSR | S_IWUSR; mode 52 drivers/misc/tsl2550.c static int tsl2550_set_operating_mode(struct i2c_client *client, int mode) mode 56 drivers/misc/tsl2550.c int ret = i2c_smbus_write_byte(client, TSL2550_MODE_RANGE[mode]); mode 58 drivers/misc/tsl2550.c data->operating_mode = mode; mode 1767 drivers/misc/vmw_balloon.c enum migrate_mode mode) mode 304 drivers/mmc/core/block.c static int mmc_blk_open(struct block_device *bdev, fmode_t mode) mode 315 drivers/mmc/core/block.c if ((mode & FMODE_WRITE) && md->read_only) { mode 325 drivers/mmc/core/block.c static void mmc_blk_release(struct gendisk *disk, fmode_t mode) mode 781 drivers/mmc/core/block.c static int mmc_blk_ioctl(struct block_device *bdev, fmode_t mode, mode 818 drivers/mmc/core/block.c static int mmc_blk_compat_ioctl(struct block_device *bdev, fmode_t mode, mode 821 drivers/mmc/core/block.c return mmc_blk_ioctl(bdev, mode, cmd, (unsigned long) compat_ptr(arg)); mode 2669 drivers/mmc/core/block.c md->force_ro.attr.mode = S_IRUGO | S_IWUSR; mode 2676 drivers/mmc/core/block.c umode_t mode; mode 2679 drivers/mmc/core/block.c mode = S_IRUGO; mode 2681 drivers/mmc/core/block.c mode = S_IRUGO | S_IWUSR; mode 2686 drivers/mmc/core/block.c md->power_ro_lock.attr.mode = mode; mode 916 drivers/mmc/core/core.c void mmc_set_chip_select(struct mmc_host *host, int mode) mode 918 drivers/mmc/core/core.c host->ios.chip_select = mode; mode 968 drivers/mmc/core/core.c void mmc_set_bus_mode(struct mmc_host *host, unsigned int mode) mode 970 drivers/mmc/core/core.c host->ios.bus_mode = mode; mode 2401 drivers/mmc/core/core.c unsigned long mode, void *unused) mode 2408 drivers/mmc/core/core.c switch (mode) { mode 42 drivers/mmc/core/core.h void mmc_set_chip_select(struct mmc_host *host, int mode); mode 44 drivers/mmc/core/core.h void mmc_set_bus_mode(struct mmc_host *host, unsigned int mode); mode 3164 drivers/mmc/core/mmc_test.c const char *name, umode_t mode, const struct file_operations *fops) mode 3170 drivers/mmc/core/mmc_test.c debugfs_create_file(name, mode, card->debugfs_root, card, fops); mode 43 drivers/mmc/core/pwrseq_emmc.c unsigned long mode, void *cmd) mode 264 drivers/mmc/core/sd_ops.c int mmc_sd_switch(struct mmc_card *card, int mode, int group, mode 274 drivers/mmc/core/sd_ops.c mode = !!mode; mode 281 drivers/mmc/core/sd_ops.c cmd.arg = mode << 31 | 0x00FFFFFF; mode 21 drivers/mmc/core/sd_ops.h int mmc_sd_switch(struct mmc_card *card, int mode, int group, mode 1143 drivers/mmc/host/mmc_spi.c host->spi->mode ^= SPI_CS_HIGH; mode 1148 drivers/mmc/host/mmc_spi.c host->spi->mode ^= SPI_CS_HIGH; mode 1152 drivers/mmc/host/mmc_spi.c host->spi->mode ^= SPI_CS_HIGH; mode 1216 drivers/mmc/host/mmc_spi.c host->spi->mode &= ~(SPI_CPOL|SPI_CPHA); mode 1237 drivers/mmc/host/mmc_spi.c host->spi->mode |= (SPI_CPOL|SPI_CPHA); mode 1303 drivers/mmc/host/mmc_spi.c if (spi->mode != SPI_MODE_3) mode 1304 drivers/mmc/host/mmc_spi.c spi->mode = SPI_MODE_0; mode 1310 drivers/mmc/host/mmc_spi.c spi->mode, spi->max_speed_hz / 1000, mode 706 drivers/mmc/host/mtk-sd.c u32 mode = 0; mode 719 drivers/mmc/host/mtk-sd.c MSDC_CFG_CKMOD, &mode); mode 722 drivers/mmc/host/mtk-sd.c MSDC_CFG_CKMOD_EXTRA, &mode); mode 724 drivers/mmc/host/mtk-sd.c timeout = mode >= 2 ? timeout * 2 : timeout; mode 751 drivers/mmc/host/mtk-sd.c u32 mode; mode 776 drivers/mmc/host/mtk-sd.c mode = 0x3; mode 778 drivers/mmc/host/mtk-sd.c mode = 0x2; /* ddr mode and use divisor */ mode 801 drivers/mmc/host/mtk-sd.c mode = 0x1; /* no divisor */ mode 805 drivers/mmc/host/mtk-sd.c mode = 0x0; /* use divisor */ mode 826 drivers/mmc/host/mtk-sd.c (mode << 8) | div); mode 830 drivers/mmc/host/mtk-sd.c (mode << 12) | div); mode 178 drivers/mmc/host/sdhci-cadence.c static void sdhci_cdns_set_emmc_mode(struct sdhci_cdns_priv *priv, u32 mode) mode 185 drivers/mmc/host/sdhci-cadence.c tmp |= FIELD_PREP(SDHCI_CDNS_HRS06_MODE, mode); mode 201 drivers/mmc/host/sdhci-cadence.c u32 mode; mode 205 drivers/mmc/host/sdhci-cadence.c mode = SDHCI_CDNS_HRS06_MODE_MMC_SDR; mode 208 drivers/mmc/host/sdhci-cadence.c mode = SDHCI_CDNS_HRS06_MODE_MMC_DDR; mode 211 drivers/mmc/host/sdhci-cadence.c mode = SDHCI_CDNS_HRS06_MODE_MMC_HS200; mode 215 drivers/mmc/host/sdhci-cadence.c mode = SDHCI_CDNS_HRS06_MODE_MMC_HS400ES; mode 217 drivers/mmc/host/sdhci-cadence.c mode = SDHCI_CDNS_HRS06_MODE_MMC_HS400; mode 220 drivers/mmc/host/sdhci-cadence.c mode = SDHCI_CDNS_HRS06_MODE_SD; mode 224 drivers/mmc/host/sdhci-cadence.c sdhci_cdns_set_emmc_mode(priv, mode); mode 227 drivers/mmc/host/sdhci-cadence.c if (mode == SDHCI_CDNS_HRS06_MODE_SD) mode 325 drivers/mmc/host/sdhci-cadence.c u32 mode; mode 329 drivers/mmc/host/sdhci-cadence.c mode = sdhci_cdns_get_emmc_mode(priv); mode 331 drivers/mmc/host/sdhci-cadence.c if (mode == SDHCI_CDNS_HRS06_MODE_MMC_HS400 && ios->enhanced_strobe) mode 335 drivers/mmc/host/sdhci-cadence.c if (mode == SDHCI_CDNS_HRS06_MODE_MMC_HS400ES && !ios->enhanced_strobe) mode 1251 drivers/mmc/host/sdhci-esdhc-imx.c u16 mode; mode 1275 drivers/mmc/host/sdhci-esdhc-imx.c mode = sdhci_readw(host, SDHCI_TRANSFER_MODE); mode 1277 drivers/mmc/host/sdhci-esdhc-imx.c mode |= SDHCI_TRNS_DMA; mode 1279 drivers/mmc/host/sdhci-esdhc-imx.c mode |= SDHCI_TRNS_BLK_CNT_EN; mode 1280 drivers/mmc/host/sdhci-esdhc-imx.c sdhci_writew(host, mode, SDHCI_TRANSFER_MODE); mode 288 drivers/mmc/host/sdhci-of-arasan.c static void sdhci_arasan_set_power(struct sdhci_host *host, unsigned char mode, mode 296 drivers/mmc/host/sdhci-of-arasan.c sdhci_set_power_noreg(host, mode, vdd); mode 98 drivers/mmc/host/sdhci-of-at91.c static void sdhci_at91_set_power(struct sdhci_host *host, unsigned char mode, mode 106 drivers/mmc/host/sdhci-of-at91.c sdhci_set_power_noreg(host, mode, vdd); mode 593 drivers/mmc/host/sdhci-omap.c unsigned int mode) mode 597 drivers/mmc/host/sdhci-omap.c if (omap_host->bus_mode == mode) mode 601 drivers/mmc/host/sdhci-omap.c if (mode == MMC_BUSMODE_OPENDRAIN) mode 607 drivers/mmc/host/sdhci-omap.c omap_host->bus_mode = mode; mode 673 drivers/mmc/host/sdhci-omap.c static void sdhci_omap_set_power(struct sdhci_host *host, unsigned char mode, mode 899 drivers/mmc/host/sdhci-omap.c *sdhci_omap_iodelay_pinctrl_state(struct sdhci_omap_host *omap_host, char *mode, mode 911 drivers/mmc/host/sdhci-omap.c snprintf(str, 20, "%s-%s", mode, version); mode 916 drivers/mmc/host/sdhci-omap.c pinctrl_state = pinctrl_lookup_state(omap_host->pinctrl, mode); mode 919 drivers/mmc/host/sdhci-omap.c dev_err(dev, "no pinctrl state for %s mode", mode); mode 189 drivers/mmc/host/sdhci-pci-arasan.c static int arasan_phy_set(struct sdhci_host *host, u8 mode, u8 otap, mode 195 drivers/mmc/host/sdhci-pci-arasan.c if (mode == HISPD_MODE || mode == HS200_MODE) mode 198 drivers/mmc/host/sdhci-pci-arasan.c ret = arasan_phy_write(host, mode, MODE_CTRL); mode 201 drivers/mmc/host/sdhci-pci-arasan.c if (mode == HS400_MODE || mode == HS200_MODE) { mode 209 drivers/mmc/host/sdhci-pci-arasan.c if (mode == LEGACY_MODE) { mode 218 drivers/mmc/host/sdhci-pci-arasan.c if (mode != HS200_MODE) mode 225 drivers/mmc/host/sdhci-pci-arasan.c if (mode != LEGACY_MODE) { mode 233 drivers/mmc/host/sdhci-pci-arasan.c if (mode != LEGACY_MODE) { mode 635 drivers/mmc/host/sdhci-pci-core.c static void sdhci_intel_set_power(struct sdhci_host *host, unsigned char mode, mode 641 drivers/mmc/host/sdhci-pci-core.c sdhci_set_power(host, mode, vdd); mode 643 drivers/mmc/host/sdhci-pci-core.c if (mode == MMC_POWER_OFF) mode 300 drivers/mmc/host/sdhci-pxav3.c static void pxav3_set_power(struct sdhci_host *host, unsigned char mode, mode 306 drivers/mmc/host/sdhci-pxav3.c sdhci_set_power_noreg(host, mode, vdd); mode 216 drivers/mmc/host/sdhci-xenon.c static void xenon_set_power(struct sdhci_host *host, unsigned char mode, mode 222 drivers/mmc/host/sdhci-xenon.c sdhci_set_power_noreg(host, mode, vdd); mode 1155 drivers/mmc/host/sdhci.c u16 *mode) mode 1168 drivers/mmc/host/sdhci.c *mode |= SDHCI_TRNS_AUTO_SEL; mode 1185 drivers/mmc/host/sdhci.c *mode |= SDHCI_TRNS_AUTO_CMD12; mode 1187 drivers/mmc/host/sdhci.c *mode |= SDHCI_TRNS_AUTO_CMD23; mode 1193 drivers/mmc/host/sdhci.c u16 mode = 0; mode 1204 drivers/mmc/host/sdhci.c mode = sdhci_readw(host, SDHCI_TRANSFER_MODE); mode 1205 drivers/mmc/host/sdhci.c sdhci_writew(host, mode & ~(SDHCI_TRNS_AUTO_CMD12 | mode 1214 drivers/mmc/host/sdhci.c mode = SDHCI_TRNS_BLK_CNT_EN; mode 1217 drivers/mmc/host/sdhci.c mode = SDHCI_TRNS_BLK_CNT_EN | SDHCI_TRNS_MULTI; mode 1218 drivers/mmc/host/sdhci.c sdhci_auto_cmd_select(host, cmd, &mode); mode 1224 drivers/mmc/host/sdhci.c mode |= SDHCI_TRNS_READ; mode 1226 drivers/mmc/host/sdhci.c mode |= SDHCI_TRNS_DMA; mode 1228 drivers/mmc/host/sdhci.c sdhci_writew(host, mode, SDHCI_TRANSFER_MODE); mode 1702 drivers/mmc/host/sdhci.c static void sdhci_set_power_reg(struct sdhci_host *host, unsigned char mode, mode 1709 drivers/mmc/host/sdhci.c if (mode != MMC_POWER_OFF) mode 1715 drivers/mmc/host/sdhci.c void sdhci_set_power_noreg(struct sdhci_host *host, unsigned char mode, mode 1720 drivers/mmc/host/sdhci.c if (mode != MMC_POWER_OFF) { mode 1789 drivers/mmc/host/sdhci.c void sdhci_set_power(struct sdhci_host *host, unsigned char mode, mode 1793 drivers/mmc/host/sdhci.c sdhci_set_power_noreg(host, mode, vdd); mode 1795 drivers/mmc/host/sdhci.c sdhci_set_power_reg(host, mode, vdd); mode 622 drivers/mmc/host/sdhci.h void (*set_power)(struct sdhci_host *host, unsigned char mode, mode 762 drivers/mmc/host/sdhci.h void sdhci_set_power(struct sdhci_host *host, unsigned char mode, mode 764 drivers/mmc/host/sdhci.h void sdhci_set_power_noreg(struct sdhci_host *host, unsigned char mode, mode 207 drivers/mmc/host/sdhci_am654.c static void sdhci_am654_set_power(struct sdhci_host *host, unsigned char mode, mode 215 drivers/mmc/host/sdhci_am654.c sdhci_set_power_noreg(host, mode, vdd); mode 816 drivers/mmc/host/usdhi6rol0.c u32 option, mode; mode 852 drivers/mmc/host/usdhi6rol0.c mode = 0; mode 855 drivers/mmc/host/usdhi6rol0.c mode = ios->timing == MMC_TIMING_UHS_DDR50; mode 858 drivers/mmc/host/usdhi6rol0.c usdhi6_write(host, USDHI6_SDIF_MODE, mode); mode 97 drivers/mtd/chips/cfi_cmdset_0001.c static int chip_ready (struct map_info *map, struct flchip *chip, unsigned long adr, int mode); mode 98 drivers/mtd/chips/cfi_cmdset_0001.c static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode); mode 806 drivers/mtd/chips/cfi_cmdset_0001.c static int chip_ready (struct map_info *map, struct flchip *chip, unsigned long adr, int mode) mode 815 drivers/mtd/chips/cfi_cmdset_0001.c if (mode == FL_SYNCING && chip->oldstate != FL_READY) mode 846 drivers/mtd/chips/cfi_cmdset_0001.c !(mode == FL_READY || mode == FL_POINT || mode 847 drivers/mtd/chips/cfi_cmdset_0001.c (mode == FL_WRITING && (cfip->SuspendCmdSupport & 1)))) mode 896 drivers/mtd/chips/cfi_cmdset_0001.c if (mode != FL_READY && mode != FL_POINT && mode 897 drivers/mtd/chips/cfi_cmdset_0001.c (mode != FL_WRITING || !cfip || !(cfip->SuspendCmdSupport&1))) mode 908 drivers/mtd/chips/cfi_cmdset_0001.c if (mode == FL_READY && chip->oldstate == FL_READY) mode 923 drivers/mtd/chips/cfi_cmdset_0001.c static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode) mode 930 drivers/mtd/chips/cfi_cmdset_0001.c (mode == FL_WRITING || mode == FL_ERASING || mode == FL_OTP_WRITE mode 931 drivers/mtd/chips/cfi_cmdset_0001.c || mode == FL_SHUTDOWN) && chip->state != FL_SYNCING) { mode 969 drivers/mtd/chips/cfi_cmdset_0001.c ret = chip_ready(map, contender, contender->start, mode); mode 994 drivers/mtd/chips/cfi_cmdset_0001.c if (mode == FL_ERASING && shared->erasing mode 1008 drivers/mtd/chips/cfi_cmdset_0001.c if (mode == FL_ERASING) mode 1012 drivers/mtd/chips/cfi_cmdset_0001.c ret = chip_ready(map, chip, adr, mode); mode 1549 drivers/mtd/chips/cfi_cmdset_0001.c unsigned long adr, map_word datum, int mode) mode 1557 drivers/mtd/chips/cfi_cmdset_0001.c switch (mode) { mode 1569 drivers/mtd/chips/cfi_cmdset_0001.c ret = get_chip(map, chip, adr, mode); mode 1580 drivers/mtd/chips/cfi_cmdset_0001.c chip->state = mode; mode 94 drivers/mtd/chips/cfi_cmdset_0002.c static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode); mode 879 drivers/mtd/chips/cfi_cmdset_0002.c static int get_chip(struct map_info *map, struct flchip *chip, unsigned long adr, int mode) mode 914 drivers/mtd/chips/cfi_cmdset_0002.c !(mode == FL_READY || mode == FL_POINT || mode 915 drivers/mtd/chips/cfi_cmdset_0002.c (mode == FL_WRITING && (cfip->EraseSuspend & 0x2)))) mode 955 drivers/mtd/chips/cfi_cmdset_0002.c if (mode != FL_READY && mode != FL_POINT && mode 968 drivers/mtd/chips/cfi_cmdset_0002.c if (mode == FL_READY && chip->oldstate == FL_READY) mode 1389 drivers/mtd/chips/cfi_cmdset_0002.c int mode); mode 1652 drivers/mtd/chips/cfi_cmdset_0002.c int mode, struct cfi_private *cfi) mode 1671 drivers/mtd/chips/cfi_cmdset_0002.c chip->state = mode; mode 1680 drivers/mtd/chips/cfi_cmdset_0002.c if (chip->state != mode) { mode 1722 drivers/mtd/chips/cfi_cmdset_0002.c unsigned long adr, int mode) mode 1728 drivers/mtd/chips/cfi_cmdset_0002.c ret = get_chip(map, chip, adr, mode); mode 1734 drivers/mtd/chips/cfi_cmdset_0002.c if (mode == FL_OTP_WRITE) mode 1742 drivers/mtd/chips/cfi_cmdset_0002.c unsigned long adr, int mode) mode 1744 drivers/mtd/chips/cfi_cmdset_0002.c if (mode == FL_OTP_WRITE) mode 1757 drivers/mtd/chips/cfi_cmdset_0002.c int mode) mode 1781 drivers/mtd/chips/cfi_cmdset_0002.c ret = do_write_oneword_once(map, chip, adr, datum, mode, cfi); mode 1799 drivers/mtd/chips/cfi_cmdset_0002.c int mode) mode 1808 drivers/mtd/chips/cfi_cmdset_0002.c ret = do_write_oneword_start(map, chip, adr, mode); mode 1812 drivers/mtd/chips/cfi_cmdset_0002.c ret = do_write_oneword_retry(map, chip, adr, datum, mode); mode 1814 drivers/mtd/chips/cfi_cmdset_0002.c do_write_oneword_done(map, chip, adr, mode); mode 222 drivers/mtd/devices/block2mtd.c const fmode_t mode = FMODE_READ | FMODE_WRITE | FMODE_EXCL; mode 235 drivers/mtd/devices/block2mtd.c bdev = blkdev_get_by_path(devname, mode, dev); mode 257 drivers/mtd/devices/block2mtd.c bdev = blkdev_get_by_dev(devt, mode, dev); mode 351 drivers/mtd/devices/docg3.c static void doc_set_asic_mode(struct docg3 *docg3, u8 mode) mode 358 drivers/mtd/devices/docg3.c mode |= DOC_ASICMODE_MDWREN; mode 359 drivers/mtd/devices/docg3.c doc_dbg("doc_set_asic_mode(%02x)\n", mode); mode 360 drivers/mtd/devices/docg3.c doc_writeb(docg3, mode, DOC_ASICMODE); mode 361 drivers/mtd/devices/docg3.c doc_writeb(docg3, ~mode, DOC_ASICMODECONFIRM); mode 885 drivers/mtd/devices/docg3.c if (oobbuf && ops->mode == MTD_OPS_PLACE_OOB) mode 889 drivers/mtd/devices/docg3.c from, ops->mode, buf, len, oobbuf, ooblen); mode 943 drivers/mtd/devices/docg3.c (ops->mode != MTD_OPS_RAW) && mode 1293 drivers/mtd/devices/docg3.c switch (ops->mode) { mode 1349 drivers/mtd/devices/docg3.c if (ops->mode == MTD_OPS_AUTO_OOB) { mode 1393 drivers/mtd/devices/docg3.c if (oobbuf && ops->mode == MTD_OPS_PLACE_OOB) mode 1397 drivers/mtd/devices/docg3.c ofs, ops->mode, buf, len, oobbuf, ooblen); mode 1398 drivers/mtd/devices/docg3.c switch (ops->mode) { mode 1433 drivers/mtd/devices/docg3.c else if (ooblen > 0 && ops->mode == MTD_OPS_AUTO_OOB) mode 1618 drivers/mtd/devices/docg3.c int pctrl, mode; mode 1622 drivers/mtd/devices/docg3.c mode = pctrl & 0x03; mode 1633 drivers/mtd/devices/docg3.c mode >> 1, mode & 0x1); mode 1635 drivers/mtd/devices/docg3.c switch (mode) { mode 248 drivers/mtd/devices/st_spi_fsm.c uint32_t mode; mode 1070 drivers/mtd/devices/st_spi_fsm.c seq->mode = ((cfg->mode_data & 0xff) << 0 | /* data */ mode 1877 drivers/mtd/devices/st_spi_fsm.c static int stfsm_set_mode(struct stfsm *fsm, uint32_t mode) mode 1892 drivers/mtd/devices/st_spi_fsm.c writel(mode, fsm->base + SPI_MODESELECT); mode 142 drivers/mtd/inftlcore.c ops.mode = MTD_OPS_PLACE_OOB; mode 162 drivers/mtd/inftlcore.c ops.mode = MTD_OPS_PLACE_OOB; mode 182 drivers/mtd/inftlcore.c ops.mode = MTD_OPS_PLACE_OOB; mode 31 drivers/mtd/lpddr/lpddr_cmds.c static int get_chip(struct map_info *map, struct flchip *chip, int mode); mode 32 drivers/mtd/lpddr/lpddr_cmds.c static int chip_ready(struct map_info *map, struct flchip *chip, int mode); mode 170 drivers/mtd/lpddr/lpddr_cmds.c static int get_chip(struct map_info *map, struct flchip *chip, int mode) mode 176 drivers/mtd/lpddr/lpddr_cmds.c if (chip->priv && (mode == FL_WRITING || mode == FL_ERASING) mode 215 drivers/mtd/lpddr/lpddr_cmds.c ret = chip_ready(map, contender, mode); mode 240 drivers/mtd/lpddr/lpddr_cmds.c if (mode == FL_ERASING && shared->erasing mode 254 drivers/mtd/lpddr/lpddr_cmds.c if (mode == FL_ERASING) mode 259 drivers/mtd/lpddr/lpddr_cmds.c ret = chip_ready(map, chip, mode); mode 266 drivers/mtd/lpddr/lpddr_cmds.c static int chip_ready(struct map_info *map, struct flchip *chip, int mode) mode 273 drivers/mtd/lpddr/lpddr_cmds.c if (FL_SYNCING == mode && FL_READY != chip->oldstate) mode 283 drivers/mtd/lpddr/lpddr_cmds.c !(mode == FL_READY || mode == FL_POINT)) mode 305 drivers/mtd/lpddr/lpddr_cmds.c if (mode == FL_READY && chip->oldstate == FL_READY) mode 204 drivers/mtd/mtd_blkdevs.c static int blktrans_open(struct block_device *bdev, fmode_t mode) mode 233 drivers/mtd/mtd_blkdevs.c dev->file_mode = mode; mode 254 drivers/mtd/mtd_blkdevs.c static void blktrans_release(struct gendisk *disk, fmode_t mode) mode 301 drivers/mtd/mtd_blkdevs.c static int blktrans_ioctl(struct block_device *bdev, fmode_t mode, mode 38 drivers/mtd/mtdchar.c enum mtd_file_modes mode; mode 166 drivers/mtd/mtdchar.c switch (mfi->mode) { mode 179 drivers/mtd/mtdchar.c ops.mode = MTD_OPS_RAW; mode 260 drivers/mtd/mtdchar.c switch (mfi->mode) { mode 273 drivers/mtd/mtdchar.c ops.mode = MTD_OPS_RAW; mode 318 drivers/mtd/mtdchar.c static int otp_select_filemode(struct mtd_file_info *mfi, int mode) mode 323 drivers/mtd/mtdchar.c switch (mode) { mode 329 drivers/mtd/mtdchar.c mfi->mode = MTD_FILE_MODE_OTP_FACTORY; mode 336 drivers/mtd/mtdchar.c mfi->mode = MTD_FILE_MODE_OTP_USER; mode 339 drivers/mtd/mtdchar.c mfi->mode = MTD_FILE_MODE_NORMAL; mode 369 drivers/mtd/mtdchar.c ops.mode = (mfi->mode == MTD_FILE_MODE_RAW) ? MTD_OPS_RAW : mode 406 drivers/mtd/mtdchar.c ops.mode = (mfi->mode == MTD_FILE_MODE_RAW) ? MTD_OPS_RAW : mode 603 drivers/mtd/mtdchar.c ops.mode = req.mode; mode 861 drivers/mtd/mtdchar.c int mode; mode 862 drivers/mtd/mtdchar.c if (copy_from_user(&mode, argp, sizeof(int))) mode 865 drivers/mtd/mtdchar.c mfi->mode = MTD_FILE_MODE_NORMAL; mode 867 drivers/mtd/mtdchar.c ret = otp_select_filemode(mfi, mode); mode 880 drivers/mtd/mtdchar.c switch (mfi->mode) { mode 908 drivers/mtd/mtdchar.c if (mfi->mode != MTD_FILE_MODE_OTP_USER) mode 946 drivers/mtd/mtdchar.c mfi->mode = 0; mode 957 drivers/mtd/mtdchar.c mfi->mode = arg; mode 338 drivers/mtd/mtdswap.c ops.mode = MTD_OPS_AUTO_OOB; mode 377 drivers/mtd/mtdswap.c ops.mode = MTD_OPS_AUTO_OOB; mode 885 drivers/mtd/mtdswap.c ops.mode = MTD_OPS_AUTO_OOB; mode 1177 drivers/mtd/nand/onenand/onenand_base.c if (ops->mode == MTD_OPS_AUTO_OOB) mode 1295 drivers/mtd/nand/onenand/onenand_base.c if (ops->mode == MTD_OPS_AUTO_OOB) mode 1356 drivers/mtd/nand/onenand/onenand_base.c unsigned int mode = ops->mode; mode 1368 drivers/mtd/nand/onenand/onenand_base.c if (mode == MTD_OPS_AUTO_OOB) mode 1405 drivers/mtd/nand/onenand/onenand_base.c if (mode == MTD_OPS_AUTO_OOB) mode 1450 drivers/mtd/nand/onenand/onenand_base.c switch (ops->mode) { mode 1854 drivers/mtd/nand/onenand/onenand_base.c if (ops->mode == MTD_OPS_AUTO_OOB) mode 1983 drivers/mtd/nand/onenand/onenand_base.c unsigned int mode = ops->mode; mode 1993 drivers/mtd/nand/onenand/onenand_base.c if (mode == MTD_OPS_AUTO_OOB) mode 2028 drivers/mtd/nand/onenand/onenand_base.c if (mode == MTD_OPS_AUTO_OOB) mode 2087 drivers/mtd/nand/onenand/onenand_base.c switch (ops->mode) { mode 2445 drivers/mtd/nand/onenand/onenand_base.c .mode = MTD_OPS_PLACE_OOB, mode 3013 drivers/mtd/nand/onenand/onenand_base.c ops.mode = MTD_OPS_PLACE_OOB; mode 3038 drivers/mtd/nand/onenand/onenand_base.c otp_op_t action, int mode) mode 3053 drivers/mtd/nand/onenand/onenand_base.c if (mode == MTD_OTP_FACTORY) { mode 3059 drivers/mtd/nand/onenand/onenand_base.c if (mode == MTD_OTP_USER) { mode 3519 drivers/mtd/nand/onenand/onenand_base.c .mode = MTD_OPS_PLACE_OOB, mode 83 drivers/mtd/nand/onenand/onenand_bbt.c ops.mode = MTD_OPS_PLACE_OOB; mode 249 drivers/mtd/nand/raw/ams-delta.c this->ecc.mode = NAND_ECC_SOFT; mode 1121 drivers/mtd/nand/raw/atmel/nand-controller.c switch (chip->ecc.mode) { mode 1143 drivers/mtd/nand/raw/atmel/nand-controller.c chip->ecc.mode); mode 1158 drivers/mtd/nand/raw/atmel/nand-controller.c if (chip->ecc.mode != NAND_ECC_HW) mode 1296 drivers/mtd/nand/raw/atmel/nand-controller.c smcconf->mode |= ATMEL_SMC_MODE_TDF(ncycles) | mode 1391 drivers/mtd/nand/raw/atmel/nand-controller.c smcconf->mode |= ATMEL_SMC_MODE_DBW_16; mode 1394 drivers/mtd/nand/raw/atmel/nand-controller.c smcconf->mode |= ATMEL_SMC_MODE_READMODE_NRD | mode 1501 drivers/mtd/nand/raw/atmel/nand-controller.c chip->ecc.mode = NAND_ECC_HW; mode 433 drivers/mtd/nand/raw/au1550nd.c this->ecc.mode = NAND_ECC_SOFT; mode 394 drivers/mtd/nand/raw/bcm47xxnflash/ops_bcm4706.c b47n->nand_chip.ecc.mode = NAND_ECC_NONE; /* TODO: implement ECC */ mode 2239 drivers/mtd/nand/raw/brcmnand/brcmnand.c if (chip->ecc.mode != NAND_ECC_HW) { mode 2241 drivers/mtd/nand/raw/brcmnand/brcmnand.c chip->ecc.mode); mode 2261 drivers/mtd/nand/raw/brcmnand/brcmnand.c if (chip->ecc.mode != NAND_ECC_NONE && mode 2402 drivers/mtd/nand/raw/brcmnand/brcmnand.c chip->ecc.mode = NAND_ECC_HW; mode 637 drivers/mtd/nand/raw/cafe_nand.c cafe->nand.ecc.mode = NAND_ECC_HW_SYNDROME; mode 179 drivers/mtd/nand/raw/cmx270_nand.c this->ecc.mode = NAND_ECC_SOFT; mode 148 drivers/mtd/nand/raw/cs553x_nand.c static void cs_enable_hwecc(struct nand_chip *this, int mode) mode 213 drivers/mtd/nand/raw/cs553x_nand.c this->ecc.mode = NAND_ECC_HW; mode 135 drivers/mtd/nand/raw/davinci_nand.c static void nand_davinci_hwctl_1bit(struct nand_chip *chip, int mode) mode 219 drivers/mtd/nand/raw/davinci_nand.c static void nand_davinci_hwctl_4bit(struct nand_chip *chip, int mode) mode 236 drivers/mtd/nand/raw/davinci_nand.c info->is_readmode = (mode == NAND_ECC_READ); mode 518 drivers/mtd/nand/raw/davinci_nand.c const char *mode; mode 543 drivers/mtd/nand/raw/davinci_nand.c "ti,davinci-ecc-mode", &mode)) { mode 544 drivers/mtd/nand/raw/davinci_nand.c if (!strncmp("none", mode, 4)) mode 546 drivers/mtd/nand/raw/davinci_nand.c if (!strncmp("soft", mode, 4)) mode 548 drivers/mtd/nand/raw/davinci_nand.c if (!strncmp("hw", mode, 2)) mode 600 drivers/mtd/nand/raw/davinci_nand.c switch (info->chip.ecc.mode) { mode 675 drivers/mtd/nand/raw/davinci_nand.c info->chip.ecc.mode = NAND_ECC_HW_OOB_FIRST; mode 779 drivers/mtd/nand/raw/davinci_nand.c info->chip.ecc.mode = pdata->ecc_mode; mode 822 drivers/mtd/nand/raw/davinci_nand.c if (info->chip.ecc.mode == NAND_ECC_HW_SYNDROME) mode 551 drivers/mtd/nand/raw/denali.c u32 mode; mode 554 drivers/mtd/nand/raw/denali.c mode = DENALI_MAP10 | DENALI_BANK(denali) | page; mode 562 drivers/mtd/nand/raw/denali.c denali->host_write(denali, mode, mode 567 drivers/mtd/nand/raw/denali.c denali->host_write(denali, mode, lower_32_bits(dma_addr)); mode 570 drivers/mtd/nand/raw/denali.c denali->host_write(denali, mode, upper_32_bits(dma_addr)); mode 576 drivers/mtd/nand/raw/denali.c u32 mode; mode 579 drivers/mtd/nand/raw/denali.c mode = DENALI_MAP10 | DENALI_BANK(denali); mode 584 drivers/mtd/nand/raw/denali.c denali->host_write(denali, mode | page, mode 588 drivers/mtd/nand/raw/denali.c denali->host_write(denali, mode | ((dma_addr >> 16) << 8), 0x2200); mode 591 drivers/mtd/nand/raw/denali.c denali->host_write(denali, mode | ((dma_addr & 0xffff) << 8), 0x2300); mode 594 drivers/mtd/nand/raw/denali.c denali->host_write(denali, mode | 0x14000, 0x2400); mode 1218 drivers/mtd/nand/raw/denali.c chip->ecc.mode = NAND_ECC_HW_SYNDROME; mode 786 drivers/mtd/nand/raw/diskonchip.c static void doc200x_enable_hwecc(struct nand_chip *this, int mode) mode 792 drivers/mtd/nand/raw/diskonchip.c switch (mode) { mode 804 drivers/mtd/nand/raw/diskonchip.c static void doc2001plus_enable_hwecc(struct nand_chip *this, int mode) mode 810 drivers/mtd/nand/raw/diskonchip.c switch (mode) { mode 1586 drivers/mtd/nand/raw/diskonchip.c nand->ecc.mode = NAND_ECC_HW_SYNDROME; mode 247 drivers/mtd/nand/raw/fsl_elbc_nand.c if (chip->ecc.mode != NAND_ECC_HW) mode 731 drivers/mtd/nand/raw/fsl_elbc_nand.c switch (chip->ecc.mode) { mode 744 drivers/mtd/nand/raw/fsl_elbc_nand.c chip->ecc.mode = NAND_ECC_HW; mode 751 drivers/mtd/nand/raw/fsl_elbc_nand.c chip->ecc.mode = NAND_ECC_SOFT; mode 791 drivers/mtd/nand/raw/fsl_elbc_nand.c chip->ecc.mode); mode 312 drivers/mtd/nand/raw/fsl_ifc_nand.c if (chip->ecc.mode == NAND_ECC_HW) mode 728 drivers/mtd/nand/raw/fsl_ifc_nand.c chip->ecc.mode); mode 915 drivers/mtd/nand/raw/fsl_ifc_nand.c chip->ecc.mode = NAND_ECC_HW; mode 928 drivers/mtd/nand/raw/fsl_ifc_nand.c chip->ecc.mode = NAND_ECC_SOFT; mode 166 drivers/mtd/nand/raw/fsl_upm.c fun->chip.ecc.mode = NAND_ECC_SOFT; mode 141 drivers/mtd/nand/raw/fsmc_nand.c enum access_mode mode; mode 357 drivers/mtd/nand/raw/fsmc_nand.c static void fsmc_enable_hwecc(struct nand_chip *chip, int mode) mode 630 drivers/mtd/nand/raw/fsmc_nand.c if (host->mode == USE_DMA_ACCESS) mode 639 drivers/mtd/nand/raw/fsmc_nand.c if (host->mode == USE_DMA_ACCESS) mode 899 drivers/mtd/nand/raw/fsmc_nand.c switch (nand->ecc.mode) { mode 928 drivers/mtd/nand/raw/fsmc_nand.c if (nand->ecc.mode == NAND_ECC_HW) { mode 1045 drivers/mtd/nand/raw/fsmc_nand.c if (host->mode == USE_DMA_ACCESS) mode 1058 drivers/mtd/nand/raw/fsmc_nand.c nand->ecc.mode = NAND_ECC_HW; mode 1063 drivers/mtd/nand/raw/fsmc_nand.c if (host->mode == USE_DMA_ACCESS) { mode 1115 drivers/mtd/nand/raw/fsmc_nand.c if (host->mode == USE_DMA_ACCESS) mode 1118 drivers/mtd/nand/raw/fsmc_nand.c if (host->mode == USE_DMA_ACCESS) mode 1138 drivers/mtd/nand/raw/fsmc_nand.c if (host->mode == USE_DMA_ACCESS) { mode 274 drivers/mtd/nand/raw/gpio.c chip->ecc.mode = NAND_ECC_SOFT; mode 2186 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c ecc->mode = NAND_ECC_HW; mode 189 drivers/mtd/nand/raw/hisi504_nand.c if (chip->ecc.mode == NAND_ECC_NONE) { mode 471 drivers/mtd/nand/raw/hisi504_nand.c if (chip->ecc.mode == NAND_ECC_HW) mode 724 drivers/mtd/nand/raw/hisi504_nand.c if (chip->ecc.mode == NAND_ECC_HW) mode 190 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c static void ingenic_nand_ecc_hwctl(struct nand_chip *chip, int mode) mode 194 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c nand->reading = (mode == NAND_ECC_READ); mode 246 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c switch (chip->ecc.mode) { mode 267 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c chip->ecc.mode); mode 272 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c if (chip->ecc.mode != NAND_ECC_HW) mode 368 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c chip->ecc.mode = NAND_ECC_HW; mode 567 drivers/mtd/nand/raw/lpc32xx_mlc.c static void lpc32xx_ecc_enable(struct nand_chip *chip, int mode) mode 659 drivers/mtd/nand/raw/lpc32xx_mlc.c chip->ecc.mode = NAND_ECC_HW; mode 329 drivers/mtd/nand/raw/lpc32xx_slc.c static void lpc32xx_nand_ecc_enable(struct nand_chip *chip, int mode) mode 884 drivers/mtd/nand/raw/lpc32xx_slc.c chip->ecc.mode = NAND_ECC_HW_SYNDROME; mode 2250 drivers/mtd/nand/raw/marvell_nand.c if (ecc->mode != NAND_ECC_NONE && (!ecc->size || !ecc->strength)) { mode 2262 drivers/mtd/nand/raw/marvell_nand.c switch (ecc->mode) { mode 2468 drivers/mtd/nand/raw/marvell_nand.c if (chip->ecc.mode == NAND_ECC_HW) { mode 2643 drivers/mtd/nand/raw/marvell_nand.c chip->ecc.mode = NAND_ECC_HW; mode 1197 drivers/mtd/nand/raw/meson_nand.c nand->ecc.mode = NAND_ECC_HW; mode 691 drivers/mtd/nand/raw/mpc5121_nfc.c chip->ecc.mode = NAND_ECC_SOFT; mode 187 drivers/mtd/nand/raw/mtk_ecc.c reg = ecc_bit | (config->mode << ecc->caps->ecc_mode_shift); mode 191 drivers/mtd/nand/raw/mtk_ecc.c if (config->mode != ECC_NFI_MODE) mode 200 drivers/mtd/nand/raw/mtk_ecc.c reg = ecc_bit | (config->mode << ecc->caps->ecc_mode_shift); mode 312 drivers/mtd/nand/raw/mtk_ecc.c if (config->mode != ECC_NFI_MODE || op != ECC_ENCODE) { mode 320 drivers/mtd/nand/raw/mtk_ecc.c if (ecc->caps->pg_irq_sel && config->mode == ECC_NFI_MODE) mode 29 drivers/mtd/nand/raw/mtk_ecc.h enum mtk_ecc_mode mode; mode 618 drivers/mtd/nand/raw/mtk_nand.c nfc->ecc_cfg.mode = ECC_DMA_MODE; mode 814 drivers/mtd/nand/raw/mtk_nand.c nfc->ecc_cfg.mode = ECC_NFI_MODE; mode 948 drivers/mtd/nand/raw/mtk_nand.c nfc->ecc_cfg.mode = ECC_NFI_MODE; mode 1229 drivers/mtd/nand/raw/mtk_nand.c if (nand->ecc.mode != NAND_ECC_HW) { mode 1393 drivers/mtd/nand/raw/mtk_nand.c nand->ecc.mode = NAND_ECC_HW; mode 672 drivers/mtd/nand/raw/mxc_nand.c if (chip->ecc.mode != NAND_ECC_HW) mode 690 drivers/mtd/nand/raw/mxc_nand.c if (chip->ecc.mode != NAND_ECC_HW) mode 1120 drivers/mtd/nand/raw/mxc_nand.c if (nand_chip->ecc.mode == NAND_ECC_HW && mtd->writesize) mode 1230 drivers/mtd/nand/raw/mxc_nand.c if (nand_chip->ecc.mode == NAND_ECC_HW) mode 1306 drivers/mtd/nand/raw/mxc_nand.c if (chip->ecc.mode == NAND_ECC_HW) mode 1683 drivers/mtd/nand/raw/mxc_nand.c switch (chip->ecc.mode) { mode 1731 drivers/mtd/nand/raw/mxc_nand.c if (chip->ecc.mode == NAND_ECC_HW) { mode 1846 drivers/mtd/nand/raw/mxc_nand.c this->ecc.mode = NAND_ECC_HW; mode 1848 drivers/mtd/nand/raw/mxc_nand.c this->ecc.mode = NAND_ECC_SOFT; mode 417 drivers/mtd/nand/raw/nand_base.c switch (ops->mode) { mode 491 drivers/mtd/nand/raw/nand_base.c if (ops->mode == MTD_OPS_RAW) mode 531 drivers/mtd/nand/raw/nand_base.c ops.mode = MTD_OPS_PLACE_OOB; mode 918 drivers/mtd/nand/raw/nand_base.c int modes, mode, ret; mode 937 drivers/mtd/nand/raw/nand_base.c for (mode = fls(modes) - 1; mode >= 0; mode--) { mode 938 drivers/mtd/nand/raw/nand_base.c ret = onfi_fill_data_interface(chip, NAND_SDR_IFACE, mode); mode 950 drivers/mtd/nand/raw/nand_base.c chip->onfi_timing_mode_default = mode; mode 3093 drivers/mtd/nand/raw/nand_base.c switch (ops->mode) { mode 3209 drivers/mtd/nand/raw/nand_base.c if (unlikely(ops->mode == MTD_OPS_RAW)) mode 3231 drivers/mtd/nand/raw/nand_base.c (ops->mode != MTD_OPS_RAW)) { mode 3509 drivers/mtd/nand/raw/nand_base.c if (ops->mode == MTD_OPS_RAW) mode 3568 drivers/mtd/nand/raw/nand_base.c if (ops->mode != MTD_OPS_PLACE_OOB && mode 3569 drivers/mtd/nand/raw/nand_base.c ops->mode != MTD_OPS_AUTO_OOB && mode 3570 drivers/mtd/nand/raw/nand_base.c ops->mode != MTD_OPS_RAW) mode 4044 drivers/mtd/nand/raw/nand_base.c (ops->mode == MTD_OPS_RAW)); mode 4101 drivers/mtd/nand/raw/nand_base.c ops.mode = MTD_OPS_PLACE_OOB; mode 4127 drivers/mtd/nand/raw/nand_base.c switch (ops->mode) { mode 4965 drivers/mtd/nand/raw/nand_base.c chip->ecc.mode = ecc_mode; mode 5087 drivers/mtd/nand/raw/nand_base.c if (WARN_ON(ecc->mode != NAND_ECC_SOFT)) mode 5548 drivers/mtd/nand/raw/nand_base.c !(ecc->mode == NAND_ECC_SOFT && ecc->algo == NAND_ECC_BCH)) { mode 5566 drivers/mtd/nand/raw/nand_base.c if (ecc->mode == NAND_ECC_NONE) { mode 5584 drivers/mtd/nand/raw/nand_base.c switch (ecc->mode) { mode 5650 drivers/mtd/nand/raw/nand_base.c ecc->mode = NAND_ECC_SOFT; mode 5688 drivers/mtd/nand/raw/nand_base.c WARN(1, "Invalid NAND_ECC_MODE %d\n", ecc->mode); mode 5763 drivers/mtd/nand/raw/nand_base.c switch (ecc->mode) { mode 5906 drivers/mtd/nand/raw/nand_base.c if (chip->ecc.mode == NAND_ECC_SOFT && mode 319 drivers/mtd/nand/raw/nand_bbt.c ops.mode = MTD_OPS_PLACE_OOB; mode 359 drivers/mtd/nand/raw/nand_bbt.c ops.mode = MTD_OPS_PLACE_OOB; mode 426 drivers/mtd/nand/raw/nand_bbt.c ops.mode = MTD_OPS_PLACE_OOB; mode 731 drivers/mtd/nand/raw/nand_bbt.c ops.mode = MTD_OPS_PLACE_OOB; mode 260 drivers/mtd/nand/raw/nand_hynix.c int mode, int reg, bool inv, u8 *val) mode 263 drivers/mtd/nand/raw/nand_hynix.c int val_offs = (mode * nregs) + reg; mode 19 drivers/mtd/nand/raw/nand_macronix.c static int macronix_nand_setup_read_retry(struct nand_chip *chip, int mode) mode 28 drivers/mtd/nand/raw/nand_macronix.c feature[0] = mode; mode 457 drivers/mtd/nand/raw/nand_micron.c chip->ecc.mode != NAND_ECC_ON_DIE) { mode 463 drivers/mtd/nand/raw/nand_micron.c if (chip->ecc.mode == NAND_ECC_ON_DIE) { mode 149 drivers/mtd/nand/raw/nand_toshiba.c if (nand_is_slc(chip) && chip->ecc.mode == NAND_ECC_ON_DIE && mode 2206 drivers/mtd/nand/raw/nandsim.c chip->ecc.mode = NAND_ECC_SOFT; mode 2245 drivers/mtd/nand/raw/nandsim.c chip->ecc.mode = NAND_ECC_SOFT; mode 76 drivers/mtd/nand/raw/ndfc.c static void ndfc_enable_hwecc(struct nand_chip *chip, int mode) mode 152 drivers/mtd/nand/raw/ndfc.c chip->ecc.mode = NAND_ECC_HW; mode 887 drivers/mtd/nand/raw/omap2.c if ((info->nand.ecc.mode == NAND_ECC_HW) && mode 945 drivers/mtd/nand/raw/omap2.c static void omap_enable_hwecc(struct nand_chip *chip, int mode) mode 960 drivers/mtd/nand/raw/omap2.c switch (mode) { mode 970 drivers/mtd/nand/raw/omap2.c "error: unrecognized Mode[%d]!\n", mode); mode 1035 drivers/mtd/nand/raw/omap2.c int mode) mode 1056 drivers/mtd/nand/raw/omap2.c if (mode == NAND_ECC_READ) { mode 1076 drivers/mtd/nand/raw/omap2.c if (mode == NAND_ECC_READ) { mode 1089 drivers/mtd/nand/raw/omap2.c if (mode == NAND_ECC_READ) { mode 2017 drivers/mtd/nand/raw/omap2.c chip->ecc.mode = NAND_ECC_SOFT; mode 2026 drivers/mtd/nand/raw/omap2.c chip->ecc.mode = NAND_ECC_HW; mode 2043 drivers/mtd/nand/raw/omap2.c chip->ecc.mode = NAND_ECC_HW; mode 2063 drivers/mtd/nand/raw/omap2.c chip->ecc.mode = NAND_ECC_HW; mode 2085 drivers/mtd/nand/raw/omap2.c chip->ecc.mode = NAND_ECC_HW; mode 2105 drivers/mtd/nand/raw/omap2.c chip->ecc.mode = NAND_ECC_HW; mode 2128 drivers/mtd/nand/raw/omap2.c chip->ecc.mode = NAND_ECC_HW; mode 142 drivers/mtd/nand/raw/orion_nand.c nc->ecc.mode = NAND_ECC_SOFT; mode 135 drivers/mtd/nand/raw/pasemi_nand.c chip->ecc.mode = NAND_ECC_SOFT; mode 69 drivers/mtd/nand/raw/plat_nand.c data->chip.ecc.mode = NAND_ECC_SOFT; mode 2551 drivers/mtd/nand/raw/qcom_nandc.c ecc->mode = NAND_ECC_HW; mode 398 drivers/mtd/nand/raw/r852.c static void r852_ecc_hwctl(struct nand_chip *chip, int mode) mode 405 drivers/mtd/nand/raw/r852.c switch (mode) { mode 860 drivers/mtd/nand/raw/r852.c chip->ecc.mode = NAND_ECC_HW_SYNDROME; mode 586 drivers/mtd/nand/raw/s3c2410.c static void s3c2410_nand_enable_hwecc(struct nand_chip *chip, int mode) mode 597 drivers/mtd/nand/raw/s3c2410.c static void s3c2412_nand_enable_hwecc(struct nand_chip *chip, int mode) mode 608 drivers/mtd/nand/raw/s3c2410.c static void s3c2440_nand_enable_hwecc(struct nand_chip *chip, int mode) mode 906 drivers/mtd/nand/raw/s3c2410.c chip->ecc.mode = info->platform->ecc_mode; mode 931 drivers/mtd/nand/raw/s3c2410.c switch (chip->ecc.mode) { mode 1042 drivers/mtd/nand/raw/sh_flctl.c chip->ecc.mode = NAND_ECC_HW; mode 1047 drivers/mtd/nand/raw/sh_flctl.c chip->ecc.mode = NAND_ECC_SOFT; mode 83 drivers/mtd/nand/raw/sharpsl.c static void sharpsl_nand_enable_hwecc(struct nand_chip *chip, int mode) mode 160 drivers/mtd/nand/raw/sharpsl.c this->ecc.mode = NAND_ECC_HW; mode 111 drivers/mtd/nand/raw/sm_common.c ops.mode = MTD_OPS_PLACE_OOB; mode 156 drivers/mtd/nand/raw/socrates_nand.c nand_chip->ecc.mode = NAND_ECC_SOFT; /* enable ECC */ mode 464 drivers/mtd/nand/raw/stm32_fmc2_nand.c int mode) mode 468 drivers/mtd/nand/raw/stm32_fmc2_nand.c if (mode == NAND_ECC_WRITE) mode 501 drivers/mtd/nand/raw/stm32_fmc2_nand.c static void stm32_fmc2_hwctl(struct nand_chip *chip, int mode) mode 510 drivers/mtd/nand/raw/stm32_fmc2_nand.c if (mode == NAND_ECC_WRITE) mode 518 drivers/mtd/nand/raw/stm32_fmc2_nand.c stm32_fmc2_enable_bch_irq(fmc2, mode); mode 1750 drivers/mtd/nand/raw/stm32_fmc2_nand.c if (chip->ecc.mode != NAND_ECC_HW) { mode 1966 drivers/mtd/nand/raw/stm32_fmc2_nand.c chip->ecc.mode = NAND_ECC_HW; mode 177 drivers/mtd/nand/raw/sunxi_nand.c int mode; mode 686 drivers/mtd/nand/raw/sunxi_nand.c ecc_ctl |= NFC_ECC_EN | NFC_ECC_MODE(data->mode) | NFC_ECC_EXCEPTION | mode 1578 drivers/mtd/nand/raw/sunxi_nand.c if (!section && ecc->mode == NAND_ECC_HW) { mode 1677 drivers/mtd/nand/raw/sunxi_nand.c data->mode = i; mode 1723 drivers/mtd/nand/raw/sunxi_nand.c switch (ecc->mode) { mode 1755 drivers/mtd/nand/raw/sunxi_nand.c switch (ecc->mode) { mode 1993 drivers/mtd/nand/raw/sunxi_nand.c nand->ecc.mode = NAND_ECC_HW; mode 514 drivers/mtd/nand/raw/tango_nand.c ecc->mode = NAND_ECC_HW; mode 917 drivers/mtd/nand/raw/tegra_nand.c chip->ecc.mode = NAND_ECC_HW; mode 136 drivers/mtd/nand/raw/tmio_nand.c u8 mode; mode 139 drivers/mtd/nand/raw/tmio_nand.c mode = FCR_MODE_DATA; mode 142 drivers/mtd/nand/raw/tmio_nand.c mode |= FCR_MODE_CLE; mode 144 drivers/mtd/nand/raw/tmio_nand.c mode &= ~FCR_MODE_CLE; mode 147 drivers/mtd/nand/raw/tmio_nand.c mode |= FCR_MODE_ALE; mode 149 drivers/mtd/nand/raw/tmio_nand.c mode &= ~FCR_MODE_ALE; mode 151 drivers/mtd/nand/raw/tmio_nand.c mode = FCR_MODE_STANDBY; mode 154 drivers/mtd/nand/raw/tmio_nand.c tmio_iowrite8(mode, tmio->fcr + FCR_MODE); mode 257 drivers/mtd/nand/raw/tmio_nand.c static void tmio_nand_enable_hwecc(struct nand_chip *chip, int mode) mode 413 drivers/mtd/nand/raw/tmio_nand.c nand_chip->ecc.mode = NAND_ECC_HW; mode 209 drivers/mtd/nand/raw/txx9ndfmc.c static void txx9ndfmc_enable_hwecc(struct nand_chip *chip, int mode) mode 332 drivers/mtd/nand/raw/txx9ndfmc.c chip->ecc.mode = NAND_ECC_HW; mode 733 drivers/mtd/nand/raw/vf610_nfc.c if (nfc->chip.ecc.mode == NAND_ECC_HW) { mode 762 drivers/mtd/nand/raw/vf610_nfc.c if (chip->ecc.mode != NAND_ECC_HW) mode 183 drivers/mtd/nand/raw/xway_nand.c data->chip.ecc.mode = NAND_ECC_SOFT; mode 257 drivers/mtd/nand/spi/core.c if (req->mode == MTD_OPS_AUTO_OOB) mode 295 drivers/mtd/nand/spi/core.c if (req->mode == MTD_OPS_AUTO_OOB) mode 493 drivers/mtd/nand/spi/core.c if (ops->mode != MTD_OPS_RAW && spinand->eccinfo.ooblayout) mode 541 drivers/mtd/nand/spi/core.c if (ops->mode != MTD_OPS_RAW && mtd->ooblayout) mode 577 drivers/mtd/nand/spi/core.c .mode = MTD_OPS_RAW, mode 612 drivers/mtd/nand/spi/core.c .mode = MTD_OPS_RAW, mode 130 drivers/mtd/nftlcore.c ops.mode = MTD_OPS_PLACE_OOB; mode 151 drivers/mtd/nftlcore.c ops.mode = MTD_OPS_PLACE_OOB; mode 174 drivers/mtd/nftlcore.c ops.mode = MTD_OPS_PLACE_OOB; mode 103 drivers/mtd/parsers/sharpslpart.c ops.mode = MTD_OPS_PLACE_OOB; mode 77 drivers/mtd/sm_ftl.c vendor_attribute->dev_attr.attr.mode = S_IRUGO; mode 258 drivers/mtd/sm_ftl.c ops.mode = ftl->smallpagenand ? MTD_OPS_RAW : MTD_OPS_PLACE_OOB; mode 338 drivers/mtd/sm_ftl.c ops.mode = ftl->smallpagenand ? MTD_OPS_RAW : MTD_OPS_PLACE_OOB; mode 278 drivers/mtd/spi-nor/nxp-spifi.c u16 mode = 0; mode 286 drivers/mtd/spi-nor/nxp-spifi.c mode |= SPI_RX_DUAL; mode 289 drivers/mtd/spi-nor/nxp-spifi.c mode |= SPI_RX_QUAD; mode 298 drivers/mtd/spi-nor/nxp-spifi.c mode |= SPI_CPHA; mode 301 drivers/mtd/spi-nor/nxp-spifi.c mode |= SPI_CPOL; mode 308 drivers/mtd/spi-nor/nxp-spifi.c if (mode & SPI_RX_DUAL) { mode 311 drivers/mtd/spi-nor/nxp-spifi.c } else if (mode & SPI_RX_QUAD) { mode 318 drivers/mtd/spi-nor/nxp-spifi.c switch (mode & (SPI_CPHA | SPI_CPOL)) { mode 169 drivers/mtd/ssfdc.c ops.mode = MTD_OPS_RAW; mode 53 drivers/mtd/tests/nandbiterrs.c static int mode; mode 54 drivers/mtd/tests/nandbiterrs.c module_param(mode, int, S_IRUGO); mode 55 drivers/mtd/tests/nandbiterrs.c MODULE_PARM_DESC(mode, "0=incremental errors, 1=overwrite test"); mode 107 drivers/mtd/tests/nandbiterrs.c ops.mode = MTD_OPS_RAW; /* No ECC */ mode 380 drivers/mtd/tests/nandbiterrs.c if (mode == 0) mode 65 drivers/mtd/tests/oobtest.c ops.mode = MTD_OPS_AUTO_OOB; mode 175 drivers/mtd/tests/oobtest.c ops.mode = MTD_OPS_AUTO_OOB; mode 212 drivers/mtd/tests/oobtest.c ops.mode = MTD_OPS_AUTO_OOB; mode 272 drivers/mtd/tests/oobtest.c ops.mode = MTD_OPS_AUTO_OOB; mode 496 drivers/mtd/tests/oobtest.c ops.mode = MTD_OPS_AUTO_OOB; mode 516 drivers/mtd/tests/oobtest.c ops.mode = MTD_OPS_AUTO_OOB; mode 543 drivers/mtd/tests/oobtest.c ops.mode = MTD_OPS_AUTO_OOB; mode 563 drivers/mtd/tests/oobtest.c ops.mode = MTD_OPS_AUTO_OOB; mode 590 drivers/mtd/tests/oobtest.c ops.mode = MTD_OPS_AUTO_OOB; mode 610 drivers/mtd/tests/oobtest.c ops.mode = MTD_OPS_AUTO_OOB; mode 653 drivers/mtd/tests/oobtest.c ops.mode = MTD_OPS_AUTO_OOB; mode 684 drivers/mtd/tests/oobtest.c ops.mode = MTD_OPS_AUTO_OOB; mode 52 drivers/mtd/tests/readtest.c ops.mode = MTD_OPS_PLACE_OOB; mode 219 drivers/mtd/ubi/block.c static int ubiblock_open(struct block_device *bdev, fmode_t mode) mode 238 drivers/mtd/ubi/block.c if (mode & FMODE_WRITE) { mode 262 drivers/mtd/ubi/block.c static void ubiblock_release(struct gendisk *gd, fmode_t mode) mode 1124 drivers/mtd/ubi/build.c if (MAJOR(stat.rdev) != MTD_CHAR_MAJOR || !S_ISCHR(stat.mode)) mode 58 drivers/mtd/ubi/cdev.c err = desc->mode; mode 59 drivers/mtd/ubi/cdev.c desc->mode = UBI_EXCLUSIVE; mode 71 drivers/mtd/ubi/cdev.c static void revoke_exclusive(struct ubi_volume_desc *desc, int mode) mode 77 drivers/mtd/ubi/cdev.c ubi_assert(vol->exclusive == 1 && desc->mode == UBI_EXCLUSIVE); mode 79 drivers/mtd/ubi/cdev.c if (mode == UBI_READONLY) mode 81 drivers/mtd/ubi/cdev.c else if (mode == UBI_READWRITE) mode 83 drivers/mtd/ubi/cdev.c else if (mode == UBI_METAONLY) mode 89 drivers/mtd/ubi/cdev.c desc->mode = mode; mode 95 drivers/mtd/ubi/cdev.c int vol_id = iminor(inode) - 1, mode, ubi_num; mode 102 drivers/mtd/ubi/cdev.c mode = UBI_READWRITE; mode 104 drivers/mtd/ubi/cdev.c mode = UBI_READONLY; mode 107 drivers/mtd/ubi/cdev.c ubi_num, vol_id, mode); mode 109 drivers/mtd/ubi/cdev.c desc = ubi_open_volume(ubi_num, vol_id, mode); mode 123 drivers/mtd/ubi/cdev.c vol->ubi->ubi_num, vol->vol_id, desc->mode); mode 404 drivers/mtd/ubi/cdev.c if (desc->mode == UBI_READONLY) { mode 440 drivers/mtd/ubi/cdev.c if (desc->mode == UBI_READONLY || mode 473 drivers/mtd/ubi/cdev.c if (desc->mode == UBI_READONLY || mode 114 drivers/mtd/ubi/kapi.c struct ubi_volume_desc *ubi_open_volume(int ubi_num, int vol_id, int mode) mode 121 drivers/mtd/ubi/kapi.c dbg_gen("open device %d, volume %d, mode %d", ubi_num, vol_id, mode); mode 126 drivers/mtd/ubi/kapi.c if (mode != UBI_READONLY && mode != UBI_READWRITE && mode 127 drivers/mtd/ubi/kapi.c mode != UBI_EXCLUSIVE && mode != UBI_METAONLY) mode 158 drivers/mtd/ubi/kapi.c switch (mode) { mode 189 drivers/mtd/ubi/kapi.c desc->mode = mode; mode 233 drivers/mtd/ubi/kapi.c int mode) mode 239 drivers/mtd/ubi/kapi.c dbg_gen("open device %d, volume %s, mode %d", ubi_num, name, mode); mode 268 drivers/mtd/ubi/kapi.c ret = ubi_open_volume(ubi_num, vol_id, mode); mode 289 drivers/mtd/ubi/kapi.c struct ubi_volume_desc *ubi_open_volume_path(const char *pathname, int mode) mode 295 drivers/mtd/ubi/kapi.c dbg_gen("open volume %s, mode %d", pathname, mode); mode 309 drivers/mtd/ubi/kapi.c if (!S_ISCHR(stat.mode)) mode 316 drivers/mtd/ubi/kapi.c return ubi_open_volume(ubi_num, vol_id, mode); mode 331 drivers/mtd/ubi/kapi.c ubi->ubi_num, vol->vol_id, desc->mode); mode 334 drivers/mtd/ubi/kapi.c switch (desc->mode) { mode 525 drivers/mtd/ubi/kapi.c if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) mode 570 drivers/mtd/ubi/kapi.c if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) mode 607 drivers/mtd/ubi/kapi.c if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) mode 667 drivers/mtd/ubi/kapi.c if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) mode 703 drivers/mtd/ubi/kapi.c if (desc->mode == UBI_READONLY || vol->vol_type == UBI_STATIC_VOLUME) mode 388 drivers/mtd/ubi/ubi.h int mode; mode 347 drivers/mtd/ubi/vmt.c ubi_assert(desc->mode == UBI_EXCLUSIVE); mode 97 drivers/net/bonding/bond_main.c static char *mode; mode 135 drivers/net/bonding/bond_main.c module_param(mode, charp, 0); mode 136 drivers/net/bonding/bond_main.c MODULE_PARM_DESC(mode, "Mode of operation; 0 for balance-rr, " mode 216 drivers/net/bonding/bond_main.c const char *bond_mode_name(int mode) mode 228 drivers/net/bonding/bond_main.c if (mode < BOND_MODE_ROUNDROBIN || mode > BOND_MODE_ALB) mode 231 drivers/net/bonding/bond_main.c return names[mode]; mode 4427 drivers/net/bonding/bond_main.c if (mode) { mode 4428 drivers/net/bonding/bond_main.c bond_opt_initstr(&newval, mode); mode 4431 drivers/net/bonding/bond_main.c pr_err("Error: Invalid bonding mode \"%s\"\n", mode); mode 4751 drivers/net/bonding/bond_main.c params->mode = bond_mode; mode 171 drivers/net/bonding/bond_netlink.c int mode = nla_get_u8(data[IFLA_BOND_MODE]); mode 173 drivers/net/bonding/bond_netlink.c bond_opt_initval(&newval, mode); mode 579 drivers/net/bonding/bond_options.c if (test_bit(params->mode, &opt->unsuppmodes)) mode 596 drivers/net/bonding/bond_options.c modeval = bond_opt_get_val(BOND_OPT_MODE, params->mode); mode 597 drivers/net/bonding/bond_options.c if (test_bit(params->mode, &opt->unsuppmodes)) mode 772 drivers/net/bonding/bond_options.c bond->params.mode = newval->value; mode 134 drivers/net/bonding/bond_sysfs.c .mode = 0644, mode 208 drivers/net/bonding/bond_sysfs.c static DEVICE_ATTR(mode, 0644, bonding_show_mode, bonding_sysfs_store_option); mode 21 drivers/net/bonding/bond_sysfs_slave.c .mode = _mode }, \ mode 290 drivers/net/can/at91_can.c unsigned int mb, enum at91_mb_mode mode, int prio) mode 292 drivers/net/can/at91_can.c at91_write(priv, AT91_MMR(mb), (mode << 24) | (prio << 16)); mode 296 drivers/net/can/at91_can.c enum at91_mb_mode mode) mode 298 drivers/net/can/at91_can.c set_mb_mode_prio(priv, mb, mode, 0); mode 1157 drivers/net/can/at91_can.c static int at91_set_mode(struct net_device *dev, enum can_mode mode) mode 1159 drivers/net/can/at91_can.c switch (mode) { mode 685 drivers/net/can/c_can/c_can.c static int c_can_set_mode(struct net_device *dev, enum can_mode mode) mode 690 drivers/net/can/c_can/c_can.c switch (mode) { mode 339 drivers/net/can/cc770/cc770.c static int cc770_set_mode(struct net_device *dev, enum can_mode mode) mode 341 drivers/net/can/cc770/cc770.c switch (mode) { mode 1357 drivers/net/can/flexcan.c static int flexcan_set_mode(struct net_device *dev, enum can_mode mode) mode 1361 drivers/net/can/flexcan.c switch (mode) { mode 1016 drivers/net/can/grcan.c static int grcan_set_mode(struct net_device *dev, enum can_mode mode) mode 1022 drivers/net/can/grcan.c if (mode == CAN_MODE_START) { mode 803 drivers/net/can/ifi_canfd/ifi_canfd.c static int ifi_canfd_set_mode(struct net_device *ndev, enum can_mode mode) mode 805 drivers/net/can/ifi_canfd/ifi_canfd.c switch (mode) { mode 1770 drivers/net/can/janz-ican3.c static int ican3_set_mode(struct net_device *ndev, enum can_mode mode) mode 1775 drivers/net/can/janz-ican3.c if (mode != CAN_MODE_START) mode 495 drivers/net/can/kvaser_pciefd.c u32 mode; mode 499 drivers/net/can/kvaser_pciefd.c mode = ioread32(can->reg_base + KVASER_PCIEFD_KCAN_MODE_REG); mode 500 drivers/net/can/kvaser_pciefd.c if (!(mode & KVASER_PCIEFD_KCAN_MODE_EPEN)) { mode 501 drivers/net/can/kvaser_pciefd.c mode |= KVASER_PCIEFD_KCAN_MODE_EPEN; mode 502 drivers/net/can/kvaser_pciefd.c iowrite32(mode, can->reg_base + KVASER_PCIEFD_KCAN_MODE_REG); mode 509 drivers/net/can/kvaser_pciefd.c u32 mode; mode 513 drivers/net/can/kvaser_pciefd.c mode = ioread32(can->reg_base + KVASER_PCIEFD_KCAN_MODE_REG); mode 514 drivers/net/can/kvaser_pciefd.c mode &= ~KVASER_PCIEFD_KCAN_MODE_EPEN; mode 515 drivers/net/can/kvaser_pciefd.c iowrite32(mode, can->reg_base + KVASER_PCIEFD_KCAN_MODE_REG); mode 536 drivers/net/can/kvaser_pciefd.c u32 mode; mode 541 drivers/net/can/kvaser_pciefd.c mode = ioread32(can->reg_base + KVASER_PCIEFD_KCAN_MODE_REG); mode 543 drivers/net/can/kvaser_pciefd.c mode &= ~KVASER_PCIEFD_KCAN_MODE_CCM; mode 545 drivers/net/can/kvaser_pciefd.c mode |= KVASER_PCIEFD_KCAN_MODE_NIFDEN; mode 547 drivers/net/can/kvaser_pciefd.c mode &= ~KVASER_PCIEFD_KCAN_MODE_NIFDEN; mode 549 drivers/net/can/kvaser_pciefd.c mode |= KVASER_PCIEFD_KCAN_MODE_CCM; mode 550 drivers/net/can/kvaser_pciefd.c mode &= ~KVASER_PCIEFD_KCAN_MODE_NIFDEN; mode 554 drivers/net/can/kvaser_pciefd.c mode |= KVASER_PCIEFD_KCAN_MODE_LOM; mode 556 drivers/net/can/kvaser_pciefd.c mode |= KVASER_PCIEFD_KCAN_MODE_EEN; mode 557 drivers/net/can/kvaser_pciefd.c mode |= KVASER_PCIEFD_KCAN_MODE_EPEN; mode 559 drivers/net/can/kvaser_pciefd.c mode &= ~KVASER_PCIEFD_KCAN_MODE_APT; mode 560 drivers/net/can/kvaser_pciefd.c mode &= ~KVASER_PCIEFD_KCAN_MODE_RM; mode 561 drivers/net/can/kvaser_pciefd.c iowrite32(mode, can->reg_base + KVASER_PCIEFD_KCAN_MODE_REG); mode 585 drivers/net/can/kvaser_pciefd.c u32 mode; mode 588 drivers/net/can/kvaser_pciefd.c mode = ioread32(can->reg_base + KVASER_PCIEFD_KCAN_MODE_REG); mode 589 drivers/net/can/kvaser_pciefd.c mode |= KVASER_PCIEFD_KCAN_MODE_RM; mode 590 drivers/net/can/kvaser_pciefd.c iowrite32(mode, can->reg_base + KVASER_PCIEFD_KCAN_MODE_REG); mode 598 drivers/net/can/kvaser_pciefd.c u32 mode; mode 619 drivers/net/can/kvaser_pciefd.c mode = ioread32(can->reg_base + KVASER_PCIEFD_KCAN_MODE_REG); mode 620 drivers/net/can/kvaser_pciefd.c mode &= ~KVASER_PCIEFD_KCAN_MODE_RM; mode 621 drivers/net/can/kvaser_pciefd.c iowrite32(mode, can->reg_base + KVASER_PCIEFD_KCAN_MODE_REG); mode 821 drivers/net/can/kvaser_pciefd.c u32 mode, test, btrn; mode 839 drivers/net/can/kvaser_pciefd.c mode = ioread32(can->reg_base + KVASER_PCIEFD_KCAN_MODE_REG); mode 842 drivers/net/can/kvaser_pciefd.c iowrite32(mode | KVASER_PCIEFD_KCAN_MODE_RM, mode 861 drivers/net/can/kvaser_pciefd.c iowrite32(mode, can->reg_base + KVASER_PCIEFD_KCAN_MODE_REG); mode 877 drivers/net/can/kvaser_pciefd.c static int kvaser_pciefd_set_mode(struct net_device *ndev, enum can_mode mode) mode 882 drivers/net/can/kvaser_pciefd.c switch (mode) { mode 1208 drivers/net/can/m_can/m_can.c static int m_can_set_mode(struct net_device *dev, enum can_mode mode) mode 1210 drivers/net/can/m_can/m_can.c switch (mode) { mode 38 drivers/net/can/mscan/mscan.c u8 mode; mode 50 drivers/net/can/mscan/mscan.c static int mscan_set_mode(struct net_device *dev, u8 mode) mode 58 drivers/net/can/mscan/mscan.c if (mode != MSCAN_NORMAL_MODE) { mode 67 drivers/net/can/mscan/mscan.c if ((mode & MSCAN_SLPRQ) && !(canctl1 & MSCAN_SLPAK)) { mode 93 drivers/net/can/mscan/mscan.c if ((mode & MSCAN_INITRQ) && !(canctl1 & MSCAN_INITAK)) { mode 105 drivers/net/can/mscan/mscan.c if (mode & MSCAN_CSWAI) mode 485 drivers/net/can/mscan/mscan.c static int mscan_do_set_mode(struct net_device *dev, enum can_mode mode) mode 489 drivers/net/can/mscan/mscan.c switch (mode) { mode 203 drivers/net/can/pch_can.c enum pch_can_mode mode) mode 205 drivers/net/can/pch_can.c switch (mode) { mode 815 drivers/net/can/pch_can.c static int pch_can_do_set_mode(struct net_device *ndev, enum can_mode mode) mode 819 drivers/net/can/pch_can.c switch (mode) { mode 527 drivers/net/can/peak_canfd/peak_canfd.c static int peak_canfd_set_mode(struct net_device *ndev, enum can_mode mode) mode 531 drivers/net/can/peak_canfd/peak_canfd.c switch (mode) { mode 710 drivers/net/can/rcar/rcar_can.c static int rcar_can_do_set_mode(struct net_device *ndev, enum can_mode mode) mode 712 drivers/net/can/rcar/rcar_can.c switch (mode) { mode 1520 drivers/net/can/rcar/rcar_canfd.c static int rcar_canfd_do_set_mode(struct net_device *ndev, enum can_mode mode) mode 1524 drivers/net/can/rcar/rcar_canfd.c switch (mode) { mode 228 drivers/net/can/sja1000/sja1000.c static int sja1000_set_mode(struct net_device *dev, enum can_mode mode) mode 230 drivers/net/can/sja1000/sja1000.c switch (mode) { mode 401 drivers/net/can/softing/softing_main.c static int softing_candev_set_mode(struct net_device *ndev, enum can_mode mode) mode 405 drivers/net/can/softing/softing_main.c switch (mode) { mode 386 drivers/net/can/spi/hi311x.c static int hi3110_do_set_mode(struct net_device *net, enum can_mode mode) mode 390 drivers/net/can/spi/hi311x.c switch (mode) { mode 481 drivers/net/can/spi/mcp251x.c static int mcp251x_do_set_mode(struct net_device *net, enum can_mode mode) mode 485 drivers/net/can/spi/mcp251x.c switch (mode) { mode 386 drivers/net/can/sun4i_can.c static int sun4ican_set_mode(struct net_device *dev, enum can_mode mode) mode 390 drivers/net/can/sun4i_can.c switch (mode) { mode 426 drivers/net/can/ti_hecc.c static int ti_hecc_do_set_mode(struct net_device *ndev, enum can_mode mode) mode 430 drivers/net/can/ti_hecc.c switch (mode) { mode 124 drivers/net/can/usb/ems_usb.c u8 mode; mode 551 drivers/net/can/usb/ems_usb.c static int ems_usb_write_mode(struct ems_usb *dev, u8 mode) mode 553 drivers/net/can/usb/ems_usb.c dev->active_params.msg.can_params.cc_params.sja1000.mode = mode; mode 887 drivers/net/can/usb/ems_usb.c static int ems_usb_set_mode(struct net_device *netdev, enum can_mode mode) mode 891 drivers/net/can/usb/ems_usb.c switch (mode) { mode 954 drivers/net/can/usb/ems_usb.c sja1000->mode = SJA1000_MOD_RM; mode 949 drivers/net/can/usb/esd_usb2.c static int esd_usb2_set_mode(struct net_device *netdev, enum can_mode mode) mode 951 drivers/net/can/usb/esd_usb2.c switch (mode) { mode 90 drivers/net/can/usb/gs_usb.c u32 mode; mode 109 drivers/net/can/usb/gs_usb.c u32 mode; mode 248 drivers/net/can/usb/gs_usb.c dm->mode = GS_CAN_MODE_RESET; mode 660 drivers/net/can/usb/gs_usb.c dm->mode = GS_CAN_MODE_START; mode 740 drivers/net/can/usb/gs_usb.c imode->mode = GS_CAN_IDENTIFY_ON; mode 742 drivers/net/can/usb/gs_usb.c imode->mode = GS_CAN_IDENTIFY_OFF; mode 146 drivers/net/can/usb/kvaser_usb/kvaser_usb.h int (*dev_set_mode)(struct net_device *netdev, enum can_mode mode); mode 215 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c u8 mode; mode 1478 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c enum can_mode mode) mode 1482 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c switch (mode) { mode 1830 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c cmd->set_ctrlmode.mode = KVASER_USB_HYDRA_CTRLMODE_LISTEN; mode 1832 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c cmd->set_ctrlmode.mode = KVASER_USB_HYDRA_CTRLMODE_NORMAL; mode 1279 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c enum can_mode mode) mode 1284 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c switch (mode) { mode 738 drivers/net/can/usb/mcba_usb.c static int mcba_net_set_mode(struct net_device *netdev, enum can_mode mode) mode 169 drivers/net/can/usb/peak_usb/pcan_usb.c static int pcan_usb_set_sja1000(struct peak_usb_device *dev, u8 mode) mode 172 drivers/net/can/usb/peak_usb/pcan_usb.c [1] = mode, mode 655 drivers/net/can/usb/peak_usb/pcan_usb_core.c static int peak_usb_set_mode(struct net_device *netdev, enum can_mode mode) mode 660 drivers/net/can/usb/peak_usb/pcan_usb_core.c switch (mode) { mode 84 drivers/net/can/usb/peak_usb/pcan_usb_fd.c u8 mode; mode 101 drivers/net/can/usb/peak_usb/pcan_usb_fd.c u8 mode; mode 367 drivers/net/can/usb/peak_usb/pcan_usb_fd.c cmd->mode = led_mode; mode 381 drivers/net/can/usb/peak_usb/pcan_usb_fd.c cmd->mode = clk_mode; mode 411 drivers/net/can/usb/peak_usb/pcan_usb_pro.c static int pcan_usb_pro_set_led(struct peak_usb_device *dev, u8 mode, mode 417 drivers/net/can/usb/peak_usb/pcan_usb_pro.c pcan_msg_add_rec(&um, PCAN_USBPRO_SETLED, dev->ctrl_idx, mode, timeout); mode 108 drivers/net/can/usb/peak_usb/pcan_usb_pro.h __le16 mode; mode 121 drivers/net/can/usb/peak_usb/pcan_usb_pro.h __le16 mode; mode 136 drivers/net/can/usb/ucan.c __le16 mode; /* OR-ing any of UCAN_MODE_* */ mode 993 drivers/net/can/usb/ucan.c up->ctl_msg_buffer->cmd_start.mode = cpu_to_le16(ctrlmode); mode 1266 drivers/net/can/usb/ucan.c static int ucan_set_mode(struct net_device *netdev, enum can_mode mode) mode 1272 drivers/net/can/usb/ucan.c switch (mode) { mode 315 drivers/net/can/usb/usb_8dev.c static int usb_8dev_set_mode(struct net_device *netdev, enum can_mode mode) mode 320 drivers/net/can/usb/usb_8dev.c switch (mode) { mode 519 drivers/net/can/xilinx_can.c static int xcan_do_set_mode(struct net_device *ndev, enum can_mode mode) mode 523 drivers/net/can/xilinx_can.c switch (mode) { mode 1226 drivers/net/dsa/b53/b53_common.c unsigned int mode, mode 1231 drivers/net/dsa/b53/b53_common.c if (mode == MLO_AN_PHY) mode 1234 drivers/net/dsa/b53/b53_common.c if (mode == MLO_AN_FIXED) { mode 1243 drivers/net/dsa/b53/b53_common.c dev->ops->serdes_config(dev, port, mode, state); mode 1257 drivers/net/dsa/b53/b53_common.c unsigned int mode, mode 1262 drivers/net/dsa/b53/b53_common.c if (mode == MLO_AN_PHY) mode 1265 drivers/net/dsa/b53/b53_common.c if (mode == MLO_AN_FIXED) { mode 1272 drivers/net/dsa/b53/b53_common.c dev->ops->serdes_link_set(dev, port, mode, interface, false); mode 1277 drivers/net/dsa/b53/b53_common.c unsigned int mode, mode 1283 drivers/net/dsa/b53/b53_common.c if (mode == MLO_AN_PHY) mode 1286 drivers/net/dsa/b53/b53_common.c if (mode == MLO_AN_FIXED) { mode 1293 drivers/net/dsa/b53/b53_common.c dev->ops->serdes_link_set(dev, port, mode, interface, true); mode 53 drivers/net/dsa/b53/b53_priv.h unsigned int mode, mode 57 drivers/net/dsa/b53/b53_priv.h unsigned int mode, phy_interface_t interface, mode 331 drivers/net/dsa/b53/b53_priv.h unsigned int mode, mode 335 drivers/net/dsa/b53/b53_priv.h unsigned int mode, mode 338 drivers/net/dsa/b53/b53_priv.h unsigned int mode, mode 63 drivers/net/dsa/b53/b53_serdes.c void b53_serdes_config(struct b53_device *dev, int port, unsigned int mode, mode 141 drivers/net/dsa/b53/b53_serdes.c void b53_serdes_link_set(struct b53_device *dev, int port, unsigned int mode, mode 113 drivers/net/dsa/b53/b53_serdes.h void b53_serdes_config(struct b53_device *dev, int port, unsigned int mode, mode 116 drivers/net/dsa/b53/b53_serdes.h void b53_serdes_link_set(struct b53_device *dev, int port, unsigned int mode, mode 82 drivers/net/dsa/b53/b53_srab.c phy_interface_t mode; mode 376 drivers/net/dsa/b53/b53_srab.c if (port->mode == PHY_INTERFACE_MODE_SGMII) mode 400 drivers/net/dsa/b53/b53_srab.c if (p->mode != PHY_INTERFACE_MODE_SGMII) mode 559 drivers/net/dsa/b53/b53_srab.c p->mode = PHY_INTERFACE_MODE_SGMII; mode 565 drivers/net/dsa/b53/b53_srab.c p->mode = PHY_INTERFACE_MODE_MII; mode 568 drivers/net/dsa/b53/b53_srab.c p->mode = PHY_INTERFACE_MODE_GMII; mode 571 drivers/net/dsa/b53/b53_srab.c p->mode = PHY_INTERFACE_MODE_RGMII; mode 574 drivers/net/dsa/b53/b53_srab.c p->mode = PHY_INTERFACE_MODE_INTERNAL; mode 577 drivers/net/dsa/b53/b53_srab.c p->mode = PHY_INTERFACE_MODE_NA; mode 581 drivers/net/dsa/b53/b53_srab.c if (p->mode != PHY_INTERFACE_MODE_NA) mode 583 drivers/net/dsa/b53/b53_srab.c port, phy_modes(p->mode)); mode 385 drivers/net/dsa/bcm_sf2.c int mode; mode 399 drivers/net/dsa/bcm_sf2.c mode = of_get_phy_mode(port); mode 400 drivers/net/dsa/bcm_sf2.c if (mode < 0) mode 403 drivers/net/dsa/bcm_sf2.c if (mode == PHY_INTERFACE_MODE_INTERNAL) mode 406 drivers/net/dsa/bcm_sf2.c if (mode == PHY_INTERFACE_MODE_MOCA) mode 535 drivers/net/dsa/bcm_sf2.c unsigned int mode, mode 629 drivers/net/dsa/bcm_sf2.c unsigned int mode, mode 636 drivers/net/dsa/bcm_sf2.c unsigned int mode, mode 645 drivers/net/dsa/bcm_sf2.c if (mode == MLO_AN_PHY && phydev) mode 1459 drivers/net/dsa/lantiq_gswip.c unsigned int mode, mode 1508 drivers/net/dsa/lantiq_gswip.c unsigned int mode, mode 1517 drivers/net/dsa/lantiq_gswip.c unsigned int mode, mode 1021 drivers/net/dsa/microchip/ksz9477.c int mode; mode 1026 drivers/net/dsa/microchip/ksz9477.c mode = 0; mode 1029 drivers/net/dsa/microchip/ksz9477.c mode = 1; mode 1032 drivers/net/dsa/microchip/ksz9477.c mode = 2; mode 1035 drivers/net/dsa/microchip/ksz9477.c mode = 3; mode 1040 drivers/net/dsa/microchip/ksz9477.c mode = 0; mode 1043 drivers/net/dsa/microchip/ksz9477.c mode = 1; mode 1046 drivers/net/dsa/microchip/ksz9477.c mode = 2; mode 1049 drivers/net/dsa/microchip/ksz9477.c mode = 3; mode 1052 drivers/net/dsa/microchip/ksz9477.c return mode; mode 1055 drivers/net/dsa/microchip/ksz9477.c static void ksz9477_set_xmii(struct ksz_device *dev, int mode, u8 *data) mode 1060 drivers/net/dsa/microchip/ksz9477.c switch (mode) { mode 1075 drivers/net/dsa/microchip/ksz9477.c switch (mode) { mode 1098 drivers/net/dsa/microchip/ksz9477.c int mode; mode 1105 drivers/net/dsa/microchip/ksz9477.c mode = ksz9477_get_xmii(dev, data8); mode 1106 drivers/net/dsa/microchip/ksz9477.c switch (mode) { mode 975 drivers/net/dsa/microchip/ksz9477_reg.h #define MMD_SETUP(mode, dev) \ mode 976 drivers/net/dsa/microchip/ksz9477_reg.h (((u16)(mode) << PORT_MMD_OP_MODE_S) | (dev)) mode 376 drivers/net/dsa/mt7530.c mt7530_pad_clk_setup(struct dsa_switch *ds, int mode) mode 390 drivers/net/dsa/mt7530.c switch (mode) { mode 412 drivers/net/dsa/mt7530.c dev_err(priv->dev, "xMII mode %d not supported\n", mode); mode 1312 drivers/net/dsa/mt7530.c unsigned int mode, mode 1355 drivers/net/dsa/mt7530.c if (phylink_autoneg_inband(mode)) { mode 1393 drivers/net/dsa/mt7530.c unsigned int mode, mode 1402 drivers/net/dsa/mt7530.c unsigned int mode, mode 399 drivers/net/dsa/mv88e6xxx/chip.c phy_interface_t mode) mode 421 drivers/net/dsa/mv88e6xxx/chip.c (state.interface == mode || mode 437 drivers/net/dsa/mv88e6xxx/chip.c mode = chip->info->ops->port_max_speed_mode(port); mode 452 drivers/net/dsa/mv88e6xxx/chip.c err = chip->info->ops->port_set_rgmii_delay(chip, port, mode); mode 458 drivers/net/dsa/mv88e6xxx/chip.c err = chip->info->ops->port_set_cmode(chip, port, mode); mode 599 drivers/net/dsa/mv88e6xxx/chip.c unsigned int mode, mode 605 drivers/net/dsa/mv88e6xxx/chip.c if ((mode == MLO_AN_PHY) && mv88e6xxx_phy_is_internal(ds, port)) mode 608 drivers/net/dsa/mv88e6xxx/chip.c if (mode == MLO_AN_FIXED) { mode 646 drivers/net/dsa/mv88e6xxx/chip.c unsigned int mode, mode 649 drivers/net/dsa/mv88e6xxx/chip.c if (mode == MLO_AN_FIXED) mode 654 drivers/net/dsa/mv88e6xxx/chip.c unsigned int mode, phy_interface_t interface, mode 657 drivers/net/dsa/mv88e6xxx/chip.c if (mode == MLO_AN_FIXED) mode 1433 drivers/net/dsa/mv88e6xxx/chip.c u16 mode = vlan_filtering ? MV88E6XXX_PORT_CTL2_8021Q_MODE_SECURE : mode 1441 drivers/net/dsa/mv88e6xxx/chip.c err = mv88e6xxx_port_set_8021q_mode(chip, port, mode); mode 372 drivers/net/dsa/mv88e6xxx/chip.h phy_interface_t mode); mode 420 drivers/net/dsa/mv88e6xxx/chip.h enum mv88e6xxx_frame_mode mode); mode 439 drivers/net/dsa/mv88e6xxx/chip.h phy_interface_t mode); mode 640 drivers/net/dsa/mv88e6xxx/chip.h phy_interface_t mode); mode 69 drivers/net/dsa/mv88e6xxx/port.c phy_interface_t mode) mode 81 drivers/net/dsa/mv88e6xxx/port.c switch (mode) { mode 110 drivers/net/dsa/mv88e6xxx/port.c phy_interface_t mode) mode 115 drivers/net/dsa/mv88e6xxx/port.c return mv88e6xxx_port_set_rgmii_delay(chip, port, mode); mode 119 drivers/net/dsa/mv88e6xxx/port.c phy_interface_t mode) mode 124 drivers/net/dsa/mv88e6xxx/port.c return mv88e6xxx_port_set_rgmii_delay(chip, port, mode); mode 396 drivers/net/dsa/mv88e6xxx/port.c phy_interface_t mode, bool force) mode 406 drivers/net/dsa/mv88e6xxx/port.c if (mode == PHY_INTERFACE_MODE_NA) mode 407 drivers/net/dsa/mv88e6xxx/port.c mode = PHY_INTERFACE_MODE_1000BASEX; mode 409 drivers/net/dsa/mv88e6xxx/port.c switch (mode) { mode 482 drivers/net/dsa/mv88e6xxx/port.c phy_interface_t mode) mode 487 drivers/net/dsa/mv88e6xxx/port.c return mv88e6xxx_port_set_cmode(chip, port, mode, false); mode 491 drivers/net/dsa/mv88e6xxx/port.c phy_interface_t mode) mode 496 drivers/net/dsa/mv88e6xxx/port.c switch (mode) { mode 507 drivers/net/dsa/mv88e6xxx/port.c return mv88e6xxx_port_set_cmode(chip, port, mode, false); mode 536 drivers/net/dsa/mv88e6xxx/port.c phy_interface_t mode) mode 543 drivers/net/dsa/mv88e6xxx/port.c switch (mode) { mode 558 drivers/net/dsa/mv88e6xxx/port.c return mv88e6xxx_port_set_cmode(chip, port, mode, true); mode 846 drivers/net/dsa/mv88e6xxx/port.c enum mv88e6xxx_egress_mode mode) mode 857 drivers/net/dsa/mv88e6xxx/port.c switch (mode) { mode 878 drivers/net/dsa/mv88e6xxx/port.c enum mv88e6xxx_frame_mode mode) mode 889 drivers/net/dsa/mv88e6xxx/port.c switch (mode) { mode 904 drivers/net/dsa/mv88e6xxx/port.c enum mv88e6xxx_frame_mode mode) mode 915 drivers/net/dsa/mv88e6xxx/port.c switch (mode) { mode 1185 drivers/net/dsa/mv88e6xxx/port.c u16 mode) mode 1195 drivers/net/dsa/mv88e6xxx/port.c reg |= mode & MV88E6XXX_PORT_CTL2_8021Q_MODE_MASK; mode 1202 drivers/net/dsa/mv88e6xxx/port.c mv88e6xxx_port_8021q_mode_names[mode]); mode 295 drivers/net/dsa/mv88e6xxx/port.h phy_interface_t mode); mode 297 drivers/net/dsa/mv88e6xxx/port.h phy_interface_t mode); mode 326 drivers/net/dsa/mv88e6xxx/port.h u16 mode); mode 330 drivers/net/dsa/mv88e6xxx/port.h enum mv88e6xxx_egress_mode mode); mode 332 drivers/net/dsa/mv88e6xxx/port.h enum mv88e6xxx_frame_mode mode); mode 334 drivers/net/dsa/mv88e6xxx/port.h enum mv88e6xxx_frame_mode mode); mode 355 drivers/net/dsa/mv88e6xxx/port.h phy_interface_t mode); mode 357 drivers/net/dsa/mv88e6xxx/port.h phy_interface_t mode); mode 359 drivers/net/dsa/mv88e6xxx/port.h phy_interface_t mode); mode 433 drivers/net/dsa/mv88e6xxx/serdes.c phy_interface_t mode; mode 472 drivers/net/dsa/mv88e6xxx/serdes.c mode = PHY_INTERFACE_MODE_SGMII; mode 475 drivers/net/dsa/mv88e6xxx/serdes.c mode = PHY_INTERFACE_MODE_1000BASEX; mode 478 drivers/net/dsa/mv88e6xxx/serdes.c mode = PHY_INTERFACE_MODE_2500BASEX; mode 481 drivers/net/dsa/mv88e6xxx/serdes.c mode = PHY_INTERFACE_MODE_NA; mode 485 drivers/net/dsa/mv88e6xxx/serdes.c PAUSE_OFF, mode); mode 422 drivers/net/dsa/qca8k.c qca8k_set_pad_ctrl(struct qca8k_priv *priv, int port, int mode) mode 441 drivers/net/dsa/qca8k.c switch (mode) { mode 463 drivers/net/dsa/qca8k.c pr_err("xMII mode %d not supported\n", mode); mode 824 drivers/net/dsa/sja1105/sja1105_main.c unsigned int mode, mode 831 drivers/net/dsa/sja1105/sja1105_main.c unsigned int mode, mode 40 drivers/net/dsa/vitesse-vsc73xx-spi.c static u8 vsc73xx_make_addr(u8 mode, u8 block, u8 subblock) mode 46 drivers/net/dsa/vitesse-vsc73xx-spi.c ret |= (mode & 1) << VSC73XX_CMD_SPI_MODE_SHIFT; mode 151 drivers/net/dsa/vitesse-vsc73xx-spi.c spi->mode = SPI_MODE_0; mode 2211 drivers/net/ethernet/3com/typhoon.c int mode = 0; mode 2236 drivers/net/ethernet/3com/typhoon.c mode = 1; mode 2248 drivers/net/ethernet/3com/typhoon.c if(!mode) mode 2250 drivers/net/ethernet/3com/typhoon.c return mode; mode 461 drivers/net/ethernet/3com/typhoon.h u16 mode; mode 198 drivers/net/ethernet/amazon/ena/ena_netdev.c adapter->ena_napi[i].dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; mode 1160 drivers/net/ethernet/amazon/ena/ena_netdev.c net_dim_get_rx_moderation(dim->mode, dim->profile_ix); mode 150 drivers/net/ethernet/amd/7990.c ib->mode = LE_MO_PROM; /* normal, enable Tx & Rx */ mode 643 drivers/net/ethernet/amd/7990.c ib->mode |= LE_MO_PROM; mode 645 drivers/net/ethernet/amd/7990.c ib->mode &= ~LE_MO_PROM; mode 74 drivers/net/ethernet/amd/7990.h volatile unsigned short mode; /* Pre-set mode (reg. 15) */ mode 85 drivers/net/ethernet/amd/a2065.c unsigned short mode; /* Pre-set mode (reg. 15) */ mode 164 drivers/net/ethernet/amd/a2065.c ib->mode = 0; mode 632 drivers/net/ethernet/amd/a2065.c ib->mode |= LE_MO_PROM; mode 634 drivers/net/ethernet/amd/a2065.c ib->mode &= ~LE_MO_PROM; mode 211 drivers/net/ethernet/amd/am79c961a.c unsigned int mode = MODE_PORT_10BT; mode 214 drivers/net/ethernet/amd/am79c961a.c mode |= MODE_PROMISC; mode 227 drivers/net/ethernet/amd/am79c961a.c return mode; mode 237 drivers/net/ethernet/amd/am79c961a.c u16 multi_hash[4], mode = am79c961_get_rx_mode(dev, multi_hash); mode 258 drivers/net/ethernet/amd/am79c961a.c write_rreg (dev->base_addr, MODE, mode); mode 381 drivers/net/ethernet/amd/am79c961a.c u16 multi_hash[4], mode = am79c961_get_rx_mode(dev, multi_hash); mode 413 drivers/net/ethernet/amd/am79c961a.c write_rreg(dev->base_addr, MODE, mode); mode 146 drivers/net/ethernet/amd/atarilance.c unsigned short mode; /* Pre-set mode */ mode 612 drivers/net/ethernet/amd/atarilance.c MEM->init.mode = 0x0000; /* Disable Rx and Tx. */ mode 208 drivers/net/ethernet/amd/declance.c unsigned short mode; /* pre-set mode (reg. 15) */ mode 797 drivers/net/ethernet/amd/declance.c *lib_ptr(ib, mode, lp->type) = 0; mode 995 drivers/net/ethernet/amd/declance.c *lib_ptr(ib, mode, lp->type) |= LE_MO_PROM; mode 997 drivers/net/ethernet/amd/declance.c *lib_ptr(ib, mode, lp->type) &= ~LE_MO_PROM; mode 227 drivers/net/ethernet/amd/lance.c u16 mode; /* Pre-set mode (reg. 15) */ mode 301 drivers/net/ethernet/amd/lance.c static void lance_init_ring(struct net_device *dev, gfp_t mode); mode 569 drivers/net/ethernet/amd/lance.c lp->init_block.mode = 0x0003; /* Disable Rx and Tx. */ mode 892 drivers/net/ethernet/amd/lance.c lp->init_block.mode = 0x0000; mode 569 drivers/net/ethernet/amd/ni65.c static void ni65_init_lance(struct priv *p,unsigned char *daddr,int filter,int mode) mode 581 drivers/net/ethernet/amd/ni65.c p->ib.mode = mode; mode 90 drivers/net/ethernet/amd/ni65.h unsigned short mode; mode 234 drivers/net/ethernet/amd/pcnet32.c __le16 mode; mode 788 drivers/net/ethernet/amd/pcnet32.c lp->init_block->mode = cpu_to_le16(csr15); mode 1905 drivers/net/ethernet/amd/pcnet32.c lp->init_block->mode = cpu_to_le16(0x0003); /* Disable Rx and Tx. */ mode 2266 drivers/net/ethernet/amd/pcnet32.c lp->init_block->mode = mode 2733 drivers/net/ethernet/amd/pcnet32.c lp->init_block->mode = mode 2738 drivers/net/ethernet/amd/pcnet32.c lp->init_block->mode = mode 128 drivers/net/ethernet/amd/sun3lance.c unsigned short mode; /* Pre-set mode */ mode 393 drivers/net/ethernet/amd/sun3lance.c MEM->init.mode = 0x0000; mode 491 drivers/net/ethernet/amd/sun3lance.c MEM->init.mode = 0x0000; mode 216 drivers/net/ethernet/amd/sunlance.c u16 mode; /* Pre-set mode (reg. 15) */ mode 942 drivers/net/ethernet/amd/sunlance.c sbus_writew(0, &ib->mode); mode 947 drivers/net/ethernet/amd/sunlance.c ib->mode = 0; mode 1213 drivers/net/ethernet/amd/sunlance.c u16 mode; mode 1230 drivers/net/ethernet/amd/sunlance.c mode = sbus_readw(&ib_iomem->mode); mode 1232 drivers/net/ethernet/amd/sunlance.c mode = ib_mem->mode; mode 1234 drivers/net/ethernet/amd/sunlance.c mode |= LE_MO_PROM; mode 1236 drivers/net/ethernet/amd/sunlance.c sbus_writew(mode, &ib_iomem->mode); mode 1238 drivers/net/ethernet/amd/sunlance.c ib_mem->mode = mode; mode 1240 drivers/net/ethernet/amd/sunlance.c mode &= ~LE_MO_PROM; mode 1242 drivers/net/ethernet/amd/sunlance.c sbus_writew(mode, &ib_iomem->mode); mode 1244 drivers/net/ethernet/amd/sunlance.c ib_mem->mode = mode; mode 1349 drivers/net/ethernet/amd/xgbe/xgbe-dev.c enum xgbe_mdio_mode mode) mode 1353 drivers/net/ethernet/amd/xgbe/xgbe-dev.c switch (mode) { mode 167 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c unsigned int mode = enable ? 1 : 0; mode 170 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c XI2C_IOWRITE_BITS(pdata, IC_ENABLE, EN, mode); mode 171 drivers/net/ethernet/amd/xgbe/xgbe-i2c.c if (XI2C_IOREAD_BITS(pdata, IC_ENABLE_STATUS, EN) == mode) mode 297 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c enum xgbe_mode mode) mode 299 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c switch (mode) { mode 325 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c "invalid operation mode requested (%u)\n", mode); mode 335 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c enum xgbe_mode mode) mode 337 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (mode == xgbe_cur_mode(pdata)) mode 340 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_change_mode(pdata, mode); mode 346 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c enum xgbe_mode mode) mode 348 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c return pdata->phy_if.phy_impl.use_mode(pdata, mode); mode 1151 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c enum xgbe_mode mode; mode 1159 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c mode = pdata->phy_if.phy_impl.get_mode(pdata, pdata->phy.speed); mode 1160 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c switch (mode) { mode 1178 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c xgbe_set_mode(pdata, mode); mode 1294 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c enum xgbe_mode mode; mode 1299 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c mode = xgbe_cur_mode(pdata); mode 1301 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c mode = xgbe_phy_status_aneg(pdata); mode 1303 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c switch (mode) { mode 1326 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c if (xgbe_set_mode(pdata, mode) && pdata->an_again) mode 236 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c enum xgbe_mode mode; mode 280 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c mode = XGBE_MODE_KR; mode 283 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c mode = XGBE_MODE_KX_2500; mode 285 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c mode = XGBE_MODE_KX_1000; mode 287 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c mode = XGBE_MODE_UNKNOWN; mode 296 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c return mode; mode 499 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c enum xgbe_mode mode; mode 506 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c mode = XGBE_MODE_KR; mode 509 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c mode = XGBE_MODE_KX_2500; mode 511 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c mode = XGBE_MODE_KX_1000; mode 514 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c return mode; mode 520 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c enum xgbe_mode mode; mode 525 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c mode = XGBE_MODE_KX_2500; mode 527 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c mode = XGBE_MODE_KX_1000; mode 529 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c mode = XGBE_MODE_KR; mode 532 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c return mode; mode 554 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static void xgbe_phy_set_mode(struct xgbe_prv_data *pdata, enum xgbe_mode mode) mode 556 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c switch (mode) { mode 572 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c enum xgbe_mode mode, bool advert) mode 580 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c if (cur_mode == mode) mode 587 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c static bool xgbe_phy_use_mode(struct xgbe_prv_data *pdata, enum xgbe_mode mode) mode 591 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c switch (mode) { mode 593 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c return xgbe_phy_check_mode(pdata, mode, mode 596 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c return xgbe_phy_check_mode(pdata, mode, mode 599 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c return xgbe_phy_check_mode(pdata, mode, mode 1531 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c enum xgbe_mode mode; mode 1544 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_MODE_SGMII_100; mode 1548 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_MODE_UNKNOWN; mode 1554 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_MODE_SGMII_1000; mode 1558 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_MODE_UNKNOWN; mode 1562 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_MODE_UNKNOWN; mode 1565 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return mode; mode 1571 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c enum xgbe_mode mode; mode 1606 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = (ad_reg & 0x20) ? XGBE_MODE_X : XGBE_MODE_UNKNOWN; mode 1608 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return mode; mode 1615 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c enum xgbe_mode mode; mode 1637 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_MODE_KR; mode 1640 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_MODE_SFI; mode 1646 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_MODE_KX_1000; mode 1649 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_MODE_X; mode 1656 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_MODE_SGMII_100; mode 1658 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_MODE_SGMII_1000; mode 1664 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_MODE_X; mode 1671 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_MODE_SGMII_100; mode 1673 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_MODE_SGMII_1000; mode 1677 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_MODE_UNKNOWN; mode 1686 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return mode; mode 1692 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c enum xgbe_mode mode; mode 1732 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_MODE_KR; mode 1734 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_MODE_KX_1000; mode 1736 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_MODE_UNKNOWN; mode 1744 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return mode; mode 1897 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c enum xgbe_phy_redrv_mode mode) mode 1903 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c redrv_val = (u16)mode; mode 1910 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c enum xgbe_phy_redrv_mode mode) mode 1919 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_redrv_write(pdata, redrv_reg, mode); mode 1927 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c enum xgbe_phy_redrv_mode mode; mode 1933 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_PHY_REDRV_MODE_CX; mode 1937 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mode = XGBE_PHY_REDRV_MODE_SR; mode 1944 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_set_redrv_mode_i2c(pdata, mode); mode 1946 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_set_redrv_mode_mdio(pdata, mode); mode 2271 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_set_mode(struct xgbe_prv_data *pdata, enum xgbe_mode mode) mode 2273 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (mode) { mode 2301 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c enum xgbe_mode mode, bool advert) mode 2309 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (cur_mode == mode) mode 2317 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c enum xgbe_mode mode) mode 2321 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (mode) { mode 2323 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, mode 2326 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, mode 2334 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c enum xgbe_mode mode) mode 2338 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (mode) { mode 2340 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, mode 2343 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, mode 2346 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, mode 2349 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, mode 2357 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c enum xgbe_mode mode) mode 2362 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (mode) { mode 2366 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, mode 2371 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, mode 2376 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, mode 2381 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, mode 2393 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c enum xgbe_mode mode) mode 2397 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (mode) { mode 2399 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, mode 2407 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c enum xgbe_mode mode) mode 2411 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (mode) { mode 2413 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, mode 2416 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_check_mode(pdata, mode, mode 2423 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_use_mode(struct xgbe_prv_data *pdata, enum xgbe_mode mode) mode 2429 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_use_bp_mode(pdata, mode); mode 2431 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_use_bp_2500_mode(pdata, mode); mode 2435 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_use_baset_mode(pdata, mode); mode 2438 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_use_basex_mode(pdata, mode); mode 2440 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_use_sfp_mode(pdata, mode); mode 640 drivers/net/ethernet/broadcom/bcmsysport.c moder = net_dim_get_def_rx_moderation(priv->dim.dim.mode); mode 1095 drivers/net/ethernet/broadcom/bcmsysport.c struct dim_cq_moder cur_profile = net_dim_get_rx_moderation(dim->mode, mode 1440 drivers/net/ethernet/broadcom/bcmsysport.c dim->dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; mode 1457 drivers/net/ethernet/broadcom/bcmsysport.c moder = net_dim_get_def_rx_moderation(dim->dim.mode); mode 1049 drivers/net/ethernet/broadcom/bgmac.c u32 mode; mode 1063 drivers/net/ethernet/broadcom/bgmac.c mode = (bgmac_read(bgmac, BGMAC_DEV_STATUS) & BGMAC_DS_MM_MASK) >> mode 1065 drivers/net/ethernet/broadcom/bgmac.c if (bgmac->feature_flags & BGMAC_FEAT_CLKCTLST || mode != 0) mode 1067 drivers/net/ethernet/broadcom/bgmac.c if (!(bgmac->feature_flags & BGMAC_FEAT_CLKCTLST) && mode == 2) mode 3848 drivers/net/ethernet/broadcom/bnx2.c val = bnx2_reg_rd_ind(bp, cpu_reg->mode); mode 3850 drivers/net/ethernet/broadcom/bnx2.c bnx2_reg_wr_ind(bp, cpu_reg->mode, val); mode 3902 drivers/net/ethernet/broadcom/bnx2.c val = bnx2_reg_rd_ind(bp, cpu_reg->mode); mode 3905 drivers/net/ethernet/broadcom/bnx2.c bnx2_reg_wr_ind(bp, cpu_reg->mode, val); mode 7017 drivers/net/ethernet/broadcom/bnx2.h u32 mode; mode 13 drivers/net/ethernet/broadcom/bnx2_fw.h .mode = BNX2_COM_CPU_MODE, mode 29 drivers/net/ethernet/broadcom/bnx2_fw.h .mode = BNX2_CP_CPU_MODE, mode 45 drivers/net/ethernet/broadcom/bnx2_fw.h .mode = BNX2_RXP_CPU_MODE, mode 61 drivers/net/ethernet/broadcom/bnx2_fw.h .mode = BNX2_TPAT_CPU_MODE, mode 77 drivers/net/ethernet/broadcom/bnx2_fw.h .mode = BNX2_TXP_CPU_MODE, mode 560 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h enum bnx2x_tpa_mode_t mode; mode 2025 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h int bnx2x_set_gpio(struct bnx2x *bp, int gpio_num, u32 mode, u8 port); mode 2026 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h int bnx2x_set_mult_gpio(struct bnx2x *bp, u8 pins, u32 mode); mode 2027 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h int bnx2x_set_gpio_int(struct bnx2x *bp, int gpio_num, u32 mode, u8 port); mode 481 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (fp->mode == TPA_MODE_GRO) { mode 600 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (fp->mode == TPA_MODE_GRO) { mode 627 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (fp->mode == TPA_MODE_GRO) mode 647 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (fp->mode == TPA_MODE_LRO) mode 964 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (fp->mode == TPA_MODE_DISABLED && mode 992 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (fp->mode == TPA_MODE_GRO) mode 1410 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (fp->mode != TPA_MODE_DISABLED) { mode 1424 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c fp->mode = TPA_MODE_DISABLED; mode 1452 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c fp->mode = TPA_MODE_DISABLED; mode 1574 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (fp->mode != TPA_MODE_DISABLED) mode 2492 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c fp->mode = TPA_MODE_LRO; mode 2494 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c fp->mode = TPA_MODE_GRO; mode 2496 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c fp->mode = TPA_MODE_DISABLED; mode 2502 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c fp->mode = TPA_MODE_DISABLED; mode 4632 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (ring_size < (fp->mode == TPA_MODE_DISABLED ? mode 1020 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h if (fp->mode == TPA_MODE_DISABLED) mode 262 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init.h static inline void bnx2x_dcb_config_qm(struct bnx2x *bp, enum cos_mode mode, mode 271 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init.h if (mode != STATIC_COS) { mode 2592 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u32 tmp, mode; mode 2596 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c mode = REG_RD(bp, phy->mdio_ctrl + EMAC_REG_EMAC_MDIO_MODE); mode 2598 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c mode & ~EMAC_MDIO_MODE_CLAUSE_45); mode 2619 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c REG_WR(bp, phy->mdio_ctrl + EMAC_REG_EMAC_MDIO_MODE, mode); mode 2627 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u32 val, mode; mode 2632 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c mode = REG_RD(bp, phy->mdio_ctrl + EMAC_REG_EMAC_MDIO_MODE); mode 2634 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c mode & ~EMAC_MDIO_MODE_CLAUSE_45); mode 2658 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c REG_WR(bp, phy->mdio_ctrl + EMAC_REG_EMAC_MDIO_MODE, mode); mode 2933 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c struct link_vars *vars, u8 mode) mode 2935 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c vars->eee_status |= ((u32) mode) << SHMEM_EEE_SUPPORTED_SHIFT; mode 5857 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u16 mode = 0; mode 5867 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c mode |= EMAC_MODE_PORT_MII_10M; mode 5871 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c mode |= EMAC_MODE_PORT_MII; mode 5875 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c mode |= EMAC_MODE_PORT_GMII; mode 5879 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c mode |= (EMAC_MODE_25G_MODE | EMAC_MODE_PORT_GMII); mode 5890 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c mode |= EMAC_MODE_HALF_DUPLEX; mode 5893 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c mode); mode 6293 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c struct link_vars *vars, u8 mode, u32 speed) mode 6302 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c DP(NETIF_MSG_LINK, "bnx2x_set_led: port %x, mode %d\n", port, mode); mode 6309 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c ¶ms->phy[phy_idx], params, mode); mode 6313 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c switch (mode) { mode 6346 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c if (mode == LED_MODE_ON || mode 6359 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c if (mode == LED_MODE_ON) mode 6368 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c mode == LED_MODE_ON)) mode 6373 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c (mode == LED_MODE_ON)) mode 6380 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c (mode == LED_MODE_ON)) { mode 6431 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c mode); mode 8625 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u16 mode = MDIO_WC_REG_UC_INFO_B1_FIRMWARE_MODE_DEFAULT; mode 8637 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c mode = MDIO_WC_REG_UC_INFO_B1_FIRMWARE_MODE_DEFAULT; mode 8641 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c mode = MDIO_WC_REG_UC_INFO_B1_FIRMWARE_MODE_SFP_DAC; mode 8647 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c val |= (mode << (lane << 2)); mode 9174 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c struct link_params *params, u8 mode) mode 9183 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c switch (mode) { mode 10679 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c struct link_params *params, u8 mode) mode 10690 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c switch (mode) { mode 11249 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c struct link_params *params, u8 mode) mode 11262 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c DP(NETIF_MSG_LINK, "54618x set link led (mode=%x)\n", mode); mode 11263 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c switch (mode) { mode 11597 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c struct link_params *params, u8 mode) mode 11601 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c switch (mode) { mode 141 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h struct link_params *params, u8 mode); mode 412 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h struct link_vars *vars, u8 mode, u32 speed); mode 2087 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c int bnx2x_set_gpio(struct bnx2x *bp, int gpio_num, u32 mode, u8 port) mode 2106 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c switch (mode) { mode 2143 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c int bnx2x_set_mult_gpio(struct bnx2x *bp, u8 pins, u32 mode) mode 2157 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c switch (mode) { mode 2177 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c BNX2X_ERR("Invalid GPIO mode assignment %d\n", mode); mode 2190 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c int bnx2x_set_gpio_int(struct bnx2x *bp, int gpio_num, u32 mode, u8 port) mode 2209 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c switch (mode) { mode 2238 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c static int bnx2x_set_spio(struct bnx2x *bp, int spio, u32 mode) mode 2252 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c switch (mode) { mode 3131 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c if (fp->mode != TPA_MODE_DISABLED) { mode 3134 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c if (fp->mode == TPA_MODE_GRO) mode 3179 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c if (fp->mode != TPA_MODE_DISABLED) { mode 613 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c if (fp->mode != TPA_MODE_DISABLED) { mode 616 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c if (fp->mode == TPA_MODE_GRO) mode 992 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c int mode = bp->rx_mode; mode 1001 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c DP(NETIF_MSG_IFUP, "Rx mode is %d\n", mode); mode 1004 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c if (mode == BNX2X_RX_MODE_NONE) { mode 1013 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c if (mode == BNX2X_RX_MODE_PROMISC) mode 8329 drivers/net/ethernet/broadcom/bnxt/bnxt.c cpr->dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; mode 11288 drivers/net/ethernet/broadcom/bnxt/bnxt.c u16 mode; mode 11293 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (nla_len(attr) < sizeof(mode)) mode 11296 drivers/net/ethernet/broadcom/bnxt/bnxt.c mode = nla_get_u16(attr); mode 11297 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (mode == bp->br_mode) mode 11300 drivers/net/ethernet/broadcom/bnxt/bnxt.c rc = bnxt_hwrm_set_br_mode(bp, mode); mode 11302 drivers/net/ethernet/broadcom/bnxt/bnxt.c bp->br_mode = mode; mode 1135 drivers/net/ethernet/broadcom/bnxt/bnxt.h #define BNXT_AUTO_MODE(mode) ((mode) > BNXT_LINK_AUTO_NONE && \ mode 1136 drivers/net/ethernet/broadcom/bnxt/bnxt.h (mode) <= BNXT_LINK_AUTO_MSK) mode 689 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c static u8 bnxt_dcbnl_setdcbx(struct net_device *dev, u8 mode) mode 697 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c if (mode & DCB_CAP_DCBX_HOST) { mode 702 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c if ((mode & DCB_CAP_DCBX_VER_CEE) || mode 703 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c !(mode & DCB_CAP_DCBX_VER_IEEE)) mode 707 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c if (mode == bp->dcbx_cap) mode 710 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c bp->dcbx_cap = mode; mode 42 drivers/net/ethernet/broadcom/bnxt/bnxt_debugfs.c dim->mode, mode 24 drivers/net/ethernet/broadcom/bnxt/bnxt_dim.c net_dim_get_rx_moderation(dim->mode, dim->profile_ix); mode 475 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c int bnxt_dl_eswitch_mode_get(struct devlink *devlink, u16 *mode) mode 479 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c *mode = bp->eswitch_mode; mode 483 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c int bnxt_dl_eswitch_mode_set(struct devlink *devlink, u16 mode, mode 490 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c if (bp->eswitch_mode == mode) { mode 492 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c mode == DEVLINK_ESWITCH_MODE_LEGACY ? mode 498 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c switch (mode) { mode 32 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h int bnxt_dl_eswitch_mode_get(struct devlink *devlink, u16 *mode); mode 33 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.h int bnxt_dl_eswitch_mode_set(struct devlink *devlink, u16 mode, mode 652 drivers/net/ethernet/broadcom/genet/bcmgenet.c moder = net_dim_get_def_rx_moderation(ring->dim.dim.mode); mode 1134 drivers/net/ethernet/broadcom/genet/bcmgenet.c enum bcmgenet_power_mode mode) mode 1139 drivers/net/ethernet/broadcom/genet/bcmgenet.c switch (mode) { mode 1145 drivers/net/ethernet/broadcom/genet/bcmgenet.c ret = bcmgenet_wol_power_down_cfg(priv, mode); mode 1176 drivers/net/ethernet/broadcom/genet/bcmgenet.c enum bcmgenet_power_mode mode) mode 1185 drivers/net/ethernet/broadcom/genet/bcmgenet.c switch (mode) { mode 1216 drivers/net/ethernet/broadcom/genet/bcmgenet.c bcmgenet_wol_power_up_cfg(priv, mode); mode 1929 drivers/net/ethernet/broadcom/genet/bcmgenet.c net_dim_get_rx_moderation(dim->mode, dim->profile_ix); mode 2089 drivers/net/ethernet/broadcom/genet/bcmgenet.c dim->dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; mode 2106 drivers/net/ethernet/broadcom/genet/bcmgenet.c moder = net_dim_get_def_rx_moderation(dim->dim.mode); mode 733 drivers/net/ethernet/broadcom/genet/bcmgenet.h enum bcmgenet_power_mode mode); mode 735 drivers/net/ethernet/broadcom/genet/bcmgenet.h enum bcmgenet_power_mode mode); mode 124 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c enum bcmgenet_power_mode mode) mode 130 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c if (mode != GENET_POWER_WOL_MAGIC) { mode 131 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c netif_err(priv, wol, dev, "unsupported mode: %d\n", mode); mode 176 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c enum bcmgenet_power_mode mode) mode 180 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c if (mode != GENET_POWER_WOL_MAGIC) { mode 181 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c netif_err(priv, wol, priv->dev, "invalid mode: %d\n", mode); mode 398 drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c u32 r32, mode; mode 402 drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c mode = (r32 >> FNC_PERS_FN_SHIFT(bfa_ioc_pcifn(ioc))) & mode 408 drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c if ((!msix && mode) || (msix && !mode)) mode 412 drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c mode = __F0_INTX_STATUS_MSIX; mode 414 drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c mode = __F0_INTX_STATUS_INTA; mode 417 drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c r32 |= (mode << FNC_PERS_FN_SHIFT(bfa_ioc_pcifn(ioc))); mode 641 drivers/net/ethernet/brocade/bna/bfi_enet.h u8 mode; /* cable or Serdes */ mode 114 drivers/net/ethernet/brocade/bna/bna.h #define is_xxx_enable(mode, bitmask, xxx) ((bitmask & xxx) && (mode & xxx)) mode 116 drivers/net/ethernet/brocade/bna/bna.h #define is_xxx_disable(mode, bitmask, xxx) ((bitmask & xxx) && !(mode & xxx)) mode 118 drivers/net/ethernet/brocade/bna/bna.h #define xxx_enable(mode, bitmask, xxx) \ mode 121 drivers/net/ethernet/brocade/bna/bna.h mode |= xxx; \ mode 124 drivers/net/ethernet/brocade/bna/bna.h #define xxx_disable(mode, bitmask, xxx) \ mode 127 drivers/net/ethernet/brocade/bna/bna.h mode &= ~xxx; \ mode 130 drivers/net/ethernet/brocade/bna/bna.h #define xxx_inactive(mode, bitmask, xxx) \ mode 133 drivers/net/ethernet/brocade/bna/bna.h mode &= ~xxx; \ mode 136 drivers/net/ethernet/brocade/bna/bna.h #define is_promisc_enable(mode, bitmask) \ mode 137 drivers/net/ethernet/brocade/bna/bna.h is_xxx_enable(mode, bitmask, BNA_RXMODE_PROMISC) mode 139 drivers/net/ethernet/brocade/bna/bna.h #define is_promisc_disable(mode, bitmask) \ mode 140 drivers/net/ethernet/brocade/bna/bna.h is_xxx_disable(mode, bitmask, BNA_RXMODE_PROMISC) mode 142 drivers/net/ethernet/brocade/bna/bna.h #define promisc_enable(mode, bitmask) \ mode 143 drivers/net/ethernet/brocade/bna/bna.h xxx_enable(mode, bitmask, BNA_RXMODE_PROMISC) mode 145 drivers/net/ethernet/brocade/bna/bna.h #define promisc_disable(mode, bitmask) \ mode 146 drivers/net/ethernet/brocade/bna/bna.h xxx_disable(mode, bitmask, BNA_RXMODE_PROMISC) mode 148 drivers/net/ethernet/brocade/bna/bna.h #define promisc_inactive(mode, bitmask) \ mode 149 drivers/net/ethernet/brocade/bna/bna.h xxx_inactive(mode, bitmask, BNA_RXMODE_PROMISC) mode 151 drivers/net/ethernet/brocade/bna/bna.h #define is_default_enable(mode, bitmask) \ mode 152 drivers/net/ethernet/brocade/bna/bna.h is_xxx_enable(mode, bitmask, BNA_RXMODE_DEFAULT) mode 154 drivers/net/ethernet/brocade/bna/bna.h #define is_default_disable(mode, bitmask) \ mode 155 drivers/net/ethernet/brocade/bna/bna.h is_xxx_disable(mode, bitmask, BNA_RXMODE_DEFAULT) mode 157 drivers/net/ethernet/brocade/bna/bna.h #define default_enable(mode, bitmask) \ mode 158 drivers/net/ethernet/brocade/bna/bna.h xxx_enable(mode, bitmask, BNA_RXMODE_DEFAULT) mode 160 drivers/net/ethernet/brocade/bna/bna.h #define default_disable(mode, bitmask) \ mode 161 drivers/net/ethernet/brocade/bna/bna.h xxx_disable(mode, bitmask, BNA_RXMODE_DEFAULT) mode 163 drivers/net/ethernet/brocade/bna/bna.h #define default_inactive(mode, bitmask) \ mode 164 drivers/net/ethernet/brocade/bna/bna.h xxx_inactive(mode, bitmask, BNA_RXMODE_DEFAULT) mode 166 drivers/net/ethernet/brocade/bna/bna.h #define is_allmulti_enable(mode, bitmask) \ mode 167 drivers/net/ethernet/brocade/bna/bna.h is_xxx_enable(mode, bitmask, BNA_RXMODE_ALLMULTI) mode 169 drivers/net/ethernet/brocade/bna/bna.h #define is_allmulti_disable(mode, bitmask) \ mode 170 drivers/net/ethernet/brocade/bna/bna.h is_xxx_disable(mode, bitmask, BNA_RXMODE_ALLMULTI) mode 172 drivers/net/ethernet/brocade/bna/bna.h #define allmulti_enable(mode, bitmask) \ mode 173 drivers/net/ethernet/brocade/bna/bna.h xxx_enable(mode, bitmask, BNA_RXMODE_ALLMULTI) mode 175 drivers/net/ethernet/brocade/bna/bna.h #define allmulti_disable(mode, bitmask) \ mode 176 drivers/net/ethernet/brocade/bna/bna.h xxx_disable(mode, bitmask, BNA_RXMODE_ALLMULTI) mode 178 drivers/net/ethernet/brocade/bna/bna.h #define allmulti_inactive(mode, bitmask) \ mode 179 drivers/net/ethernet/brocade/bna/bna.h xxx_inactive(mode, bitmask, BNA_RXMODE_ALLMULTI) mode 448 drivers/net/ethernet/brocade/bna/bna_enet.c lpbk_up_req->mode = (ethport->bna->enet.type == mode 476 drivers/net/ethernet/brocade/bna/bnad_debugfs.c umode_t mode; mode 527 drivers/net/ethernet/brocade/bna/bnad_debugfs.c file->mode, mode 1844 drivers/net/ethernet/calxeda/xgmac.c static void xgmac_pmt(void __iomem *ioaddr, unsigned long mode) mode 1848 drivers/net/ethernet/calxeda/xgmac.c if (mode & WAKE_MAGIC) mode 1850 drivers/net/ethernet/calxeda/xgmac.c if (mode & WAKE_UCAST) mode 3136 drivers/net/ethernet/cavium/liquidio/lio_main.c liquidio_eswitch_mode_get(struct devlink *devlink, u16 *mode) mode 3144 drivers/net/ethernet/cavium/liquidio/lio_main.c *mode = oct->eswitch_mode; mode 3150 drivers/net/ethernet/cavium/liquidio/lio_main.c liquidio_eswitch_mode_set(struct devlink *devlink, u16 mode, mode 3163 drivers/net/ethernet/cavium/liquidio/lio_main.c if (oct->eswitch_mode == mode) mode 3166 drivers/net/ethernet/cavium/liquidio/lio_main.c switch (mode) { mode 3168 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->eswitch_mode = mode; mode 3174 drivers/net/ethernet/cavium/liquidio/lio_main.c oct->eswitch_mode = mode; mode 895 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c if (prtx_ctl.s.mode == 0) { /* RGMII mode */ mode 1090 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c agl_prtx_ctl.s.mode = rgmii_mode ? 0 : 1; mode 272 drivers/net/ethernet/cavium/thunder/nic.h u8 mode; mode 579 drivers/net/ethernet/cavium/thunder/nic.h u8 mode; mode 1122 drivers/net/ethernet/cavium/thunder/nic_main.c bgx_set_xcast_mode(nic->node, bgx, lmac, mbx.xcast.mode); mode 1989 drivers/net/ethernet/cavium/thunder/nicvf_main.c static void __nicvf_set_rx_mode_task(u8 mode, struct xcast_addr_list *mc_addrs, mode 2006 drivers/net/ethernet/cavium/thunder/nicvf_main.c if (mode & BGX_XCAST_MCAST_FILTER) { mode 2029 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.xcast.mode = mode; mode 2041 drivers/net/ethernet/cavium/thunder/nicvf_main.c u8 mode; mode 2051 drivers/net/ethernet/cavium/thunder/nicvf_main.c mode = vf_work->mode; mode 2056 drivers/net/ethernet/cavium/thunder/nicvf_main.c __nicvf_set_rx_mode_task(mode, mc, nic); mode 2064 drivers/net/ethernet/cavium/thunder/nicvf_main.c u8 mode = 0; mode 2067 drivers/net/ethernet/cavium/thunder/nicvf_main.c mode = BGX_XCAST_BCAST_ACCEPT | BGX_XCAST_MCAST_ACCEPT; mode 2070 drivers/net/ethernet/cavium/thunder/nicvf_main.c mode |= BGX_XCAST_BCAST_ACCEPT; mode 2073 drivers/net/ethernet/cavium/thunder/nicvf_main.c mode |= BGX_XCAST_MCAST_ACCEPT; mode 2075 drivers/net/ethernet/cavium/thunder/nicvf_main.c mode |= BGX_XCAST_MCAST_FILTER; mode 2095 drivers/net/ethernet/cavium/thunder/nicvf_main.c nic->rx_mode_work.mode = mode; mode 354 drivers/net/ethernet/cavium/thunder/thunder_bgx.c void bgx_set_xcast_mode(int node, int bgx_idx, int lmacid, u8 mode) mode 367 drivers/net/ethernet/cavium/thunder/thunder_bgx.c if (mode & BGX_XCAST_BCAST_ACCEPT) mode 376 drivers/net/ethernet/cavium/thunder/thunder_bgx.c if (mode & (BGX_XCAST_MCAST_ACCEPT)) { mode 378 drivers/net/ethernet/cavium/thunder/thunder_bgx.c } else if (mode & BGX_XCAST_MCAST_FILTER) { mode 221 drivers/net/ethernet/cavium/thunder/thunder_bgx.h void bgx_set_xcast_mode(int node, int bgx_idx, int lmacid, u8 mode); mode 180 drivers/net/ethernet/chelsio/cxgb/common.h unsigned int mode; /* selects MC5 width */ mode 102 drivers/net/ethernet/chelsio/cxgb/cxgb2.c static int t1_clock(struct adapter *adapter, int mode); mode 1230 drivers/net/ethernet/chelsio/cxgb/cxgb2.c static int t1_clock(struct adapter *adapter, int mode) mode 1256 drivers/net/ethernet/chelsio/cxgb/cxgb2.c if (mode & 2) mode 1259 drivers/net/ethernet/chelsio/cxgb/cxgb2.c if ((adapter->t1powersave & 1) == (mode & 1)) mode 1262 drivers/net/ethernet/chelsio/cxgb/cxgb2.c if ((mode & 1) == HCLOCK) { mode 333 drivers/net/ethernet/chelsio/cxgb3/common.h unsigned int mode; /* selects MC5 width */ mode 447 drivers/net/ethernet/chelsio/cxgb3/common.h unsigned char mode; mode 719 drivers/net/ethernet/chelsio/cxgb3/common.h void t3_mc5_prep(struct adapter *adapter, struct mc5 *mc5, int mode); mode 137 drivers/net/ethernet/chelsio/cxgb3/mc5.c if (mc5->mode == MC5_MODE_144_BIT) { mode 154 drivers/net/ethernet/chelsio/cxgb3/mc5.c mc5->mode == MC5_MODE_144_BIT ? mode 291 drivers/net/ethernet/chelsio/cxgb3/mc5.c V_TMMODE(mc5->mode == MC5_MODE_72_BIT) | F_DBGIEN); mode 298 drivers/net/ethernet/chelsio/cxgb3/mc5.c V_TMMODE(mc5->mode == MC5_MODE_72_BIT) | mode 299 drivers/net/ethernet/chelsio/cxgb3/mc5.c V_COMPEN(mc5->mode == MC5_MODE_72_BIT) | mode 323 drivers/net/ethernet/chelsio/cxgb3/mc5.c cfg |= V_TMMODE(mc5->mode == MC5_MODE_72_BIT) | F_TMRST; mode 401 drivers/net/ethernet/chelsio/cxgb3/mc5.c void t3_mc5_prep(struct adapter *adapter, struct mc5 *mc5, int mode) mode 414 drivers/net/ethernet/chelsio/cxgb3/mc5.c mc5->mode = (unsigned char)mode; mode 420 drivers/net/ethernet/chelsio/cxgb3/mc5.c if (mode == MC5_MODE_144_BIT) mode 49 drivers/net/ethernet/chelsio/cxgb4/cudbg_entity.h u32 mode; mode 84 drivers/net/ethernet/chelsio/cxgb4/cudbg_entity.h u32 mode; mode 1246 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c hw_sched_buff->mode = TIMERMODE_G(t4_read_reg(padap, TP_MOD_CONFIG_A)); mode 1481 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c tp_la_buff->mode = DBGLAMODE_G(t4_read_reg(padap, TP_DBG_LA_CONFIG_A)); mode 1058 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h s8 mode; /* per-class or per-flow */ mode 1689 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_config_glbl_rss(struct adapter *adapter, int mbox, unsigned int mode, mode 1866 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int t4_sched_params(struct adapter *adapter, int type, int level, int mode, mode 3527 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c debugfs_create_file(files[i].name, files[i].mode, mode 43 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.h umode_t mode; mode 3110 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c p.u.params.mode = SCHED_CLASS_MODE_CLASS; mode 127 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c int cxgb4_ptprx_timestamping(struct port_info *pi, u8 port, u16 mode) mode 140 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c c.u.init.mode = cpu_to_be16(mode); mode 161 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c c.u.init.mode = cpu_to_be16(PTP_TS_NONE); mode 69 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.h int cxgb4_ptprx_timestamping(struct port_info *pi, u8 port, u16 mode); mode 54 drivers/net/ethernet/chelsio/cxgb4/sched.c p->u.params.level, p->u.params.mode, mode 5215 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_config_glbl_rss(struct adapter *adapter, int mbox, unsigned int mode, mode 5224 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c if (mode == FW_RSS_GLB_CONFIG_CMD_MODE_MANUAL) { mode 5226 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c cpu_to_be32(FW_RSS_GLB_CONFIG_CMD_MODE_V(mode)); mode 5227 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c } else if (mode == FW_RSS_GLB_CONFIG_CMD_MODE_BASICVIRTUAL) { mode 5229 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c cpu_to_be32(FW_RSS_GLB_CONFIG_CMD_MODE_V(mode)); mode 8133 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int ret, mode; mode 8140 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c mode = smt_idx ? FW_VI_MAC_SMT_AND_MPSTCAM : FW_VI_MAC_MPS_TCAM_ENTRY; mode 8148 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c FW_VI_MAC_CMD_SMAC_RESULT_V(mode) | mode 10351 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int t4_sched_params(struct adapter *adapter, int type, int level, int mode, mode 10366 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c cmd.u.params.mode = mode; mode 3305 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h __be16 mode; mode 3517 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h __u8 mode; mode 722 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c switch (adapter->params.rss.mode) { mode 2450 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c umode_t mode; /* file system mode */ mode 2482 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c debugfs_files[i].mode, mode 2633 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c if (adapter->params.rss.mode != mode 2636 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c " mode %d\n", adapter->params.rss.mode); mode 211 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h unsigned int mode; /* RSS mode */ mode 1041 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c rss->mode = FW_RSS_GLB_CONFIG_CMD_MODE_G( mode 1043 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c switch (rss->mode) { mode 1160 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c switch (adapter->params.rss.mode) { mode 1206 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c switch (adapter->params.rss.mode) { mode 986 drivers/net/ethernet/dec/tulip/de4x5.c static char *build_setup_frame(struct net_device *dev, int mode); mode 5033 drivers/net/ethernet/dec/tulip/de4x5.c build_setup_frame(struct net_device *dev, int mode) mode 5040 drivers/net/ethernet/dec/tulip/de4x5.c if (mode == ALL) { mode 158 drivers/net/ethernet/dec/tulip/dmfe.c #define SHOW_MEDIA_TYPE(mode) \ mode 160 drivers/net/ethernet/dec/tulip/dmfe.c (mode & 1) ? "100":"10", \ mode 161 drivers/net/ethernet/dec/tulip/dmfe.c (mode & 4) ? "full":"half"); mode 294 drivers/net/ethernet/dec/tulip/dmfe.c static unsigned char mode = 8; mode 2183 drivers/net/ethernet/dec/tulip/dmfe.c module_param(mode, byte, 0); mode 2192 drivers/net/ethernet/dec/tulip/dmfe.c MODULE_PARM_DESC(mode, "Davicom DM9xxx: " mode 2217 drivers/net/ethernet/dec/tulip/dmfe.c switch (mode) { mode 2223 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_media_mode = mode; mode 86 drivers/net/ethernet/dec/tulip/uli526x.c #define SHOW_MEDIA_TYPE(mode) \ mode 88 drivers/net/ethernet/dec/tulip/uli526x.c mode & 1 ? "100" : "10", \ mode 89 drivers/net/ethernet/dec/tulip/uli526x.c mode & 4 ? "full" : "half"); mode 210 drivers/net/ethernet/dec/tulip/uli526x.c static int mode = 8; mode 1789 drivers/net/ethernet/dec/tulip/uli526x.c module_param(mode, int, 0); mode 1792 drivers/net/ethernet/dec/tulip/uli526x.c MODULE_PARM_DESC(mode, "ULi M5261/M5263: Bit 0: 10/100Mbps, bit 2: duplex, bit 8: HomePNA"); mode 1812 drivers/net/ethernet/dec/tulip/uli526x.c switch (mode) { mode 1817 drivers/net/ethernet/dec/tulip/uli526x.c uli526x_media_mode = mode; mode 414 drivers/net/ethernet/dlink/dl2k.c u32 mode; mode 419 drivers/net/ethernet/dlink/dl2k.c mode = dr32(ASICCtrl); mode 420 drivers/net/ethernet/dlink/dl2k.c mode &= ~(IPG_AC_LED_MODE_BIT_1 | IPG_AC_LED_MODE | IPG_AC_LED_SPEED); mode 423 drivers/net/ethernet/dlink/dl2k.c mode |= IPG_AC_LED_MODE; mode 425 drivers/net/ethernet/dlink/dl2k.c mode |= IPG_AC_LED_MODE_BIT_1; mode 427 drivers/net/ethernet/dlink/dl2k.c mode |= IPG_AC_LED_SPEED; mode 429 drivers/net/ethernet/dlink/dl2k.c dw32(ASICCtrl, mode); mode 3936 drivers/net/ethernet/emulex/benet/be_cmds.c u32 domain, u16 intf_id, u8 *mode, bool *spoofchk) mode 3964 drivers/net/ethernet/emulex/benet/be_cmds.c if (!BEx_chip(adapter) && mode) { mode 3981 drivers/net/ethernet/emulex/benet/be_cmds.c if (mode) mode 3982 drivers/net/ethernet/emulex/benet/be_cmds.c *mode = AMAP_GET_BITS(struct amap_get_hsw_resp_context, mode 4102 drivers/net/ethernet/emulex/benet/be_cmds.c if (cfgs->module[i].trace_lvl[j].mode == MODE_UART) mode 4140 drivers/net/ethernet/emulex/benet/be_cmds.c if (cfgs->module[0].trace_lvl[j].mode == MODE_UART) mode 2080 drivers/net/ethernet/emulex/benet/be_cmds.h u8 mode; mode 2478 drivers/net/ethernet/emulex/benet/be_cmds.h u16 intf_id, u8 *mode, bool *spoofchk); mode 4966 drivers/net/ethernet/emulex/benet/be_main.c u16 mode = 0; mode 4979 drivers/net/ethernet/emulex/benet/be_main.c if (nla_len(attr) < sizeof(mode)) mode 4982 drivers/net/ethernet/emulex/benet/be_main.c mode = nla_get_u16(attr); mode 4983 drivers/net/ethernet/emulex/benet/be_main.c if (BE3_chip(adapter) && mode == BRIDGE_MODE_VEPA) mode 4986 drivers/net/ethernet/emulex/benet/be_main.c if (mode != BRIDGE_MODE_VEPA && mode != BRIDGE_MODE_VEB) mode 4991 drivers/net/ethernet/emulex/benet/be_main.c mode == BRIDGE_MODE_VEPA ? mode 4998 drivers/net/ethernet/emulex/benet/be_main.c mode == BRIDGE_MODE_VEPA ? "VEPA" : "VEB"); mode 5004 drivers/net/ethernet/emulex/benet/be_main.c mode == BRIDGE_MODE_VEPA ? "VEPA" : "VEB"); mode 286 drivers/net/ethernet/ethoc.c u32 mode = ethoc_read(dev, MODER); mode 287 drivers/net/ethernet/ethoc.c mode |= MODER_RXEN | MODER_TXEN; mode 288 drivers/net/ethernet/ethoc.c ethoc_write(dev, MODER, mode); mode 293 drivers/net/ethernet/ethoc.c u32 mode = ethoc_read(dev, MODER); mode 294 drivers/net/ethernet/ethoc.c mode &= ~(MODER_RXEN | MODER_TXEN); mode 295 drivers/net/ethernet/ethoc.c ethoc_write(dev, MODER, mode); mode 344 drivers/net/ethernet/ethoc.c u32 mode; mode 353 drivers/net/ethernet/ethoc.c mode = ethoc_read(dev, MODER); mode 354 drivers/net/ethernet/ethoc.c mode |= MODER_CRC | MODER_PAD; mode 355 drivers/net/ethernet/ethoc.c ethoc_write(dev, MODER, mode); mode 358 drivers/net/ethernet/ethoc.c mode = ethoc_read(dev, MODER); mode 359 drivers/net/ethernet/ethoc.c mode |= MODER_FULLD; mode 360 drivers/net/ethernet/ethoc.c ethoc_write(dev, MODER, mode); mode 670 drivers/net/ethernet/ethoc.c u32 mode; mode 685 drivers/net/ethernet/ethoc.c mode = ethoc_read(priv, MODER); mode 687 drivers/net/ethernet/ethoc.c mode |= MODER_FULLD; mode 689 drivers/net/ethernet/ethoc.c mode &= ~MODER_FULLD; mode 690 drivers/net/ethernet/ethoc.c ethoc_write(priv, MODER, mode); mode 827 drivers/net/ethernet/ethoc.c u32 mode = ethoc_read(priv, MODER); mode 833 drivers/net/ethernet/ethoc.c mode |= MODER_LOOP; mode 835 drivers/net/ethernet/ethoc.c mode &= ~MODER_LOOP; mode 839 drivers/net/ethernet/ethoc.c mode &= ~MODER_BRO; mode 841 drivers/net/ethernet/ethoc.c mode |= MODER_BRO; mode 845 drivers/net/ethernet/ethoc.c mode |= MODER_PRO; mode 847 drivers/net/ethernet/ethoc.c mode &= ~MODER_PRO; mode 849 drivers/net/ethernet/ethoc.c ethoc_write(priv, MODER, mode); mode 374 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c rfse.mode |= ENETC_RFSE_EN; mode 376 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c rfse.mode |= ENETC_RFSE_MODE_BD; mode 485 drivers/net/ethernet/freescale/enetc/enetc_hw.h u16 mode; mode 868 drivers/net/ethernet/freescale/fman/fman_dtsec.c static void graceful_start(struct fman_mac *dtsec, enum comm_mode mode) mode 872 drivers/net/ethernet/freescale/fman/fman_dtsec.c if (mode & COMM_MODE_TX) mode 875 drivers/net/ethernet/freescale/fman/fman_dtsec.c if (mode & COMM_MODE_RX) mode 880 drivers/net/ethernet/freescale/fman/fman_dtsec.c static void graceful_stop(struct fman_mac *dtsec, enum comm_mode mode) mode 886 drivers/net/ethernet/freescale/fman/fman_dtsec.c if (mode & COMM_MODE_RX) { mode 900 drivers/net/ethernet/freescale/fman/fman_dtsec.c if (mode & COMM_MODE_TX) { mode 914 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_enable(struct fman_mac *dtsec, enum comm_mode mode) mode 924 drivers/net/ethernet/freescale/fman/fman_dtsec.c if (mode & COMM_MODE_RX) mode 926 drivers/net/ethernet/freescale/fman/fman_dtsec.c if (mode & COMM_MODE_TX) mode 932 drivers/net/ethernet/freescale/fman/fman_dtsec.c graceful_start(dtsec, mode); mode 937 drivers/net/ethernet/freescale/fman/fman_dtsec.c int dtsec_disable(struct fman_mac *dtsec, enum comm_mode mode) mode 946 drivers/net/ethernet/freescale/fman/fman_dtsec.c graceful_stop(dtsec, mode); mode 949 drivers/net/ethernet/freescale/fman/fman_dtsec.c if (mode & COMM_MODE_RX) mode 951 drivers/net/ethernet/freescale/fman/fman_dtsec.c if (mode & COMM_MODE_TX) mode 964 drivers/net/ethernet/freescale/fman/fman_dtsec.c enum comm_mode mode = COMM_MODE_NONE; mode 971 drivers/net/ethernet/freescale/fman/fman_dtsec.c mode |= COMM_MODE_RX; mode 973 drivers/net/ethernet/freescale/fman/fman_dtsec.c mode |= COMM_MODE_TX; mode 975 drivers/net/ethernet/freescale/fman/fman_dtsec.c graceful_stop(dtsec, mode); mode 997 drivers/net/ethernet/freescale/fman/fman_dtsec.c graceful_start(dtsec, mode); mode 1005 drivers/net/ethernet/freescale/fman/fman_dtsec.c enum comm_mode mode = COMM_MODE_NONE; mode 1012 drivers/net/ethernet/freescale/fman/fman_dtsec.c mode |= COMM_MODE_RX; mode 1014 drivers/net/ethernet/freescale/fman/fman_dtsec.c mode |= COMM_MODE_TX; mode 1016 drivers/net/ethernet/freescale/fman/fman_dtsec.c graceful_stop(dtsec, mode); mode 1025 drivers/net/ethernet/freescale/fman/fman_dtsec.c graceful_start(dtsec, mode); mode 1033 drivers/net/ethernet/freescale/fman/fman_dtsec.c enum comm_mode mode = COMM_MODE_NONE; mode 1039 drivers/net/ethernet/freescale/fman/fman_dtsec.c mode |= COMM_MODE_RX; mode 1041 drivers/net/ethernet/freescale/fman/fman_dtsec.c mode |= COMM_MODE_TX; mode 1043 drivers/net/ethernet/freescale/fman/fman_dtsec.c graceful_stop(dtsec, mode); mode 1051 drivers/net/ethernet/freescale/fman/fman_dtsec.c graceful_start(dtsec, mode); mode 1269 drivers/net/ethernet/freescale/fman/fman_dtsec.c enum comm_mode mode = COMM_MODE_NONE; mode 1276 drivers/net/ethernet/freescale/fman/fman_dtsec.c mode |= COMM_MODE_RX; mode 1278 drivers/net/ethernet/freescale/fman/fman_dtsec.c mode |= COMM_MODE_TX; mode 1280 drivers/net/ethernet/freescale/fman/fman_dtsec.c graceful_stop(dtsec, mode); mode 1301 drivers/net/ethernet/freescale/fman/fman_dtsec.c graceful_start(dtsec, mode); mode 46 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_enable(struct fman_mac *dtsec, enum comm_mode mode); mode 47 drivers/net/ethernet/freescale/fman/fman_dtsec.h int dtsec_disable(struct fman_mac *dtsec, enum comm_mode mode); mode 715 drivers/net/ethernet/freescale/fman/fman_memac.c int memac_enable(struct fman_mac *memac, enum comm_mode mode) mode 724 drivers/net/ethernet/freescale/fman/fman_memac.c if (mode & COMM_MODE_RX) mode 726 drivers/net/ethernet/freescale/fman/fman_memac.c if (mode & COMM_MODE_TX) mode 734 drivers/net/ethernet/freescale/fman/fman_memac.c int memac_disable(struct fman_mac *memac, enum comm_mode mode) mode 743 drivers/net/ethernet/freescale/fman/fman_memac.c if (mode & COMM_MODE_RX) mode 745 drivers/net/ethernet/freescale/fman/fman_memac.c if (mode & COMM_MODE_TX) mode 49 drivers/net/ethernet/freescale/fman/fman_memac.h int memac_enable(struct fman_mac *memac, enum comm_mode mode); mode 50 drivers/net/ethernet/freescale/fman/fman_memac.h int memac_disable(struct fman_mac *memac, enum comm_mode mode); mode 426 drivers/net/ethernet/freescale/fman/fman_tgec.c int tgec_enable(struct fman_mac *tgec, enum comm_mode mode) mode 435 drivers/net/ethernet/freescale/fman/fman_tgec.c if (mode & COMM_MODE_RX) mode 437 drivers/net/ethernet/freescale/fman/fman_tgec.c if (mode & COMM_MODE_TX) mode 444 drivers/net/ethernet/freescale/fman/fman_tgec.c int tgec_disable(struct fman_mac *tgec, enum comm_mode mode) mode 453 drivers/net/ethernet/freescale/fman/fman_tgec.c if (mode & COMM_MODE_RX) mode 455 drivers/net/ethernet/freescale/fman/fman_tgec.c if (mode & COMM_MODE_TX) mode 42 drivers/net/ethernet/freescale/fman/fman_tgec.h int tgec_enable(struct fman_mac *tgec, enum comm_mode mode); mode 43 drivers/net/ethernet/freescale/fman/fman_tgec.h int tgec_disable(struct fman_mac *tgec, enum comm_mode mode); mode 69 drivers/net/ethernet/freescale/fman/mac.c int (*enable)(struct fman_mac *mac_dev, enum comm_mode mode); mode 70 drivers/net/ethernet/freescale/fman/mac.c int (*disable)(struct fman_mac *mac_dev, enum comm_mode mode); mode 248 drivers/net/ethernet/freescale/gianfar.c if (priv->mode == MQ_MG_MODE) { mode 522 drivers/net/ethernet/freescale/gianfar.c if (priv->mode == MQ_MG_MODE) { mode 651 drivers/net/ethernet/freescale/gianfar.c unsigned short mode, poll_mode; mode 657 drivers/net/ethernet/freescale/gianfar.c mode = MQ_MG_MODE; mode 660 drivers/net/ethernet/freescale/gianfar.c mode = SQ_SG_MODE; mode 664 drivers/net/ethernet/freescale/gianfar.c if (mode == SQ_SG_MODE) { mode 718 drivers/net/ethernet/freescale/gianfar.c priv->mode = mode; mode 748 drivers/net/ethernet/freescale/gianfar.c if (priv->mode == MQ_MG_MODE) { mode 1108 drivers/net/ethernet/freescale/gianfar.h unsigned short mode; mode 87 drivers/net/ethernet/freescale/ucc_geth.c .mode = UCC_FAST_PROTOCOL_MODE_ETHERNET, mode 1494 drivers/net/ethernet/freescale/ucc_geth.c static int ugeth_enable(struct ucc_geth_private *ugeth, enum comm_dir mode) mode 1513 drivers/net/ethernet/freescale/ucc_geth.c if ((mode & COMM_DIR_TX) && (!enabled_tx) && uccf->stopped_tx) mode 1515 drivers/net/ethernet/freescale/ucc_geth.c if ((mode & COMM_DIR_RX) && (!enabled_rx) && uccf->stopped_rx) mode 1518 drivers/net/ethernet/freescale/ucc_geth.c ucc_fast_enable(uccf, mode); /* OK to do even if not disabled */ mode 1524 drivers/net/ethernet/freescale/ucc_geth.c static int ugeth_disable(struct ucc_geth_private *ugeth, enum comm_dir mode) mode 1538 drivers/net/ethernet/freescale/ucc_geth.c if ((mode & COMM_DIR_TX) && uccf->enabled_tx && !uccf->stopped_tx) mode 1542 drivers/net/ethernet/freescale/ucc_geth.c if ((mode & COMM_DIR_RX) && uccf->enabled_rx && !uccf->stopped_rx) mode 1545 drivers/net/ethernet/freescale/ucc_geth.c ucc_fast_disable(ugeth->uccf, mode); /* OK to do even if not enabled */ mode 61 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c static void hns_gmac_enable(void *mac_drv, enum mac_commom_mode mode) mode 66 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c if (mode == MAC_COMM_MODE_TX || mode == MAC_COMM_MODE_RX_AND_TX) mode 69 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c if (mode == MAC_COMM_MODE_RX || mode == MAC_COMM_MODE_RX_AND_TX) { mode 76 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c static void hns_gmac_disable(void *mac_drv, enum mac_commom_mode mode) mode 81 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c if (mode == MAC_COMM_MODE_TX || mode == MAC_COMM_MODE_RX_AND_TX) mode 84 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c if (mode == MAC_COMM_MODE_RX || mode == MAC_COMM_MODE_RX_AND_TX) { mode 1038 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c void hns_mac_enable(struct hns_mac_cb *mac_cb, enum mac_commom_mode mode) mode 1042 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c mac_ctrl_drv->mac_enable(mac_cb->priv.mac, mode); mode 1045 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c void hns_mac_disable(struct hns_mac_cb *mac_cb, enum mac_commom_mode mode) mode 1049 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c mac_ctrl_drv->mac_disable(mac_cb->priv.mac, mode); mode 347 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void (*mac_enable)(void *mac_drv, enum mac_commom_mode mode); mode 349 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void (*mac_disable)(void *mac_drv, enum mac_commom_mode mode); mode 413 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h #define MAC_INTERFACE_FROM_MODE(mode) (enum mac_intf)((mode) & 0xFFFF0000) mode 414 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h #define MAC_SPEED_FROM_MODE(mode) (enum mac_speed)((mode) & 0x0000FFFF) mode 467 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void hns_mac_enable(struct hns_mac_cb *mac_cb, enum mac_commom_mode mode); mode 468 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h void hns_mac_disable(struct hns_mac_cb *mac_cb, enum mac_commom_mode mode); mode 2172 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c enum dsaf_port_rate_mode mode; mode 2179 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c mode = DSAF_PORT_RATE_10000; mode 2181 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c mode = DSAF_PORT_RATE_1000; mode 2183 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c hns_dsaf_port_work_rate_cfg(dsaf_dev, mac_id, mode); mode 508 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c u32 mode; mode 529 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c mode = dsaf_read_sub(mac_cb->dsaf_dev, reg); mode 530 drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c if (dsaf_get_bit(mode, mac_cb->port_mode_off)) mode 186 drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c enum ppe_port_mode mode) mode 188 drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c dsaf_write_dev(ppe_cb, PPE_CFG_XGE_MODE_REG, mode); mode 111 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c static void hns_xgmac_lf_rf_insert(struct mac_driver *mac_drv, u32 mode) mode 114 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c XGMAC_LF_RF_INSERT_M, XGMAC_LF_RF_INSERT_S, mode); mode 136 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c static void hns_xgmac_enable(void *mac_drv, enum mac_commom_mode mode) mode 143 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c if (mode == MAC_COMM_MODE_TX) { mode 145 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c } else if (mode == MAC_COMM_MODE_RX) { mode 147 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c } else if (mode == MAC_COMM_MODE_RX_AND_TX) { mode 151 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c dev_err(drv->dev, "error mac mode:%d\n", mode); mode 160 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c static void hns_xgmac_disable(void *mac_drv, enum mac_commom_mode mode) mode 164 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c if (mode == MAC_COMM_MODE_TX) { mode 166 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c } else if (mode == MAC_COMM_MODE_RX) { mode 168 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c } else if (mode == MAC_COMM_MODE_RX_AND_TX) { mode 71 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c static u8 hns3_dcbnl_setdcbx(struct net_device *ndev, u8 mode) mode 76 drivers/net/ethernet/hisilicon/hns3/hns3_dcbnl.c return h->kinfo.dcb_ops->setdcbx(h, mode); mode 1579 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c u16 mode = mqprio_qopt->mode; mode 1584 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c mode == TC_MQPRIO_MODE_CHANNEL) || (!hw && tc == 0))) mode 235 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c static int hns3_lp_run_test(struct net_device *ndev, enum hnae3_loop mode) mode 268 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c mode, good_cnt, HNS3_NIC_LB_TEST_PKT_NUM); mode 279 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c mode, good_cnt, HNS3_NIC_LB_TEST_PKT_NUM); mode 971 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h u8 mode; mode 380 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c static u8 hclge_setdcbx(struct hnae3_handle *h, u8 mode) mode 386 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c netif_dbg(h, drv, netdev, "set dcbx: mode=%u\n", mode); mode 389 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c if ((mode & DCB_CAP_DCBX_LLD_MANAGED) || mode 390 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c (mode & DCB_CAP_DCBX_VER_CEE) || mode 391 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c !(mode & DCB_CAP_DCBX_HOST)) mode 394 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c hdev->dcbx_cap = mode; mode 4090 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c u16 mode = 0; mode 4092 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c hnae3_set_bit(mode, HCLGE_RSS_TC_VALID_B, (tc_valid[i] & 0x1)); mode 4093 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c hnae3_set_field(mode, HCLGE_RSS_TC_SIZE_M, mode 4095 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c hnae3_set_field(mode, HCLGE_RSS_TC_OFFSET_M, mode 4098 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c req->rss_tc_mode[i] = cpu_to_le16(mode); mode 4678 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c *fd_mode = req->mode; mode 480 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c static int hclge_tm_qs_schd_mode_cfg(struct hclge_dev *hdev, u16 qs_id, u8 mode) mode 486 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c if (mode == HCLGE_SCH_MODE_DWRR) mode 148 drivers/net/ethernet/hp/hp100.c u_short mode; /* PIO, Shared Mem or Busmaster */ mode 648 drivers/net/ethernet/hp/hp100.c lp->mode = local_mode; mode 667 drivers/net/ethernet/hp/hp100.c if (lp->mode == 1) /* busmaster */ mode 682 drivers/net/ethernet/hp/hp100.c if (lp->mode == 1) /* busmaster */ mode 702 drivers/net/ethernet/hp/hp100.c if (lp->mode == 1) { /* busmaster */ mode 748 drivers/net/ethernet/hp/hp100.c if (lp->mode == 2) { /* memory mapped */ mode 817 drivers/net/ethernet/hp/hp100.c if (lp->mode == 1) { mode 930 drivers/net/ethernet/hp/hp100.c if (lp->mode == 1) { /* busmaster */ mode 934 drivers/net/ethernet/hp/hp100.c } else if (lp->mode == 2) { /* memory mapped */ mode 940 drivers/net/ethernet/hp/hp100.c } else if (lp->mode == 3) { /* i/o mapped mode */ mode 952 drivers/net/ethernet/hp/hp100.c if (lp->mode == 1) { /* busmaster */ mode 978 drivers/net/ethernet/hp/hp100.c if (lp->mode == 1) { /* only needed for Busmaster */ mode 1057 drivers/net/ethernet/hp/hp100.c if (lp->mode == 1) mode 1713 drivers/net/ethernet/hp/hp100.c if (lp->mode == 2) { /* memory mapped */ mode 1790 drivers/net/ethernet/hp/hp100.c if (lp->mode == 2) { /* memory mapped mode */ mode 1822 drivers/net/ethernet/hp/hp100.c if (lp->mode == 2) mode 2204 drivers/net/ethernet/hp/hp100.c dev->name, lp->mode, (u_int) val, hp100_inb(RX_PKT_CNT), mode 2222 drivers/net/ethernet/hp/hp100.c if (lp->mode == 1) mode 2238 drivers/net/ethernet/hp/hp100.c if (lp->mode != 1) /* non busmaster */ mode 2265 drivers/net/ethernet/hp/hp100.c if (lp->mode == 1) { mode 2274 drivers/net/ethernet/hp/hp100.c if ((lp->mode == 1) && (val & (HP100_RX_PDA_ZERO))) mode 2281 drivers/net/ethernet/hp/hp100.c if ((lp->mode == 1) && (val & (HP100_TX_COMPLETE))) mode 2294 drivers/net/ethernet/hp/hp100.c if (lp->mode == 1) { mode 2333 drivers/net/ethernet/hp/hp100.c if (lp->mode == 1) { mode 2338 drivers/net/ethernet/hp/hp100.c } else if (lp->mode == 2) { mode 2348 drivers/net/ethernet/hp/hp100.c if (lp->mode == 1) { /* busmaster mode */ mode 2382 drivers/net/ethernet/hp/hp100.c if (lp->mode == 1) mode 2817 drivers/net/ethernet/hp/hp100.c if (p->mode == 1) /* busmaster */ mode 611 drivers/net/ethernet/ibm/emac/core.c if (emac_phy_gpcs(dev->phy.mode)) { mode 726 drivers/net/ethernet/ibm/emac/core.c if (emac_phy_gpcs(dev->phy.mode)) { mode 2651 drivers/net/ethernet/ibm/emac/core.c dev->phy.mode = dev->phy_dev->interface; mode 2684 drivers/net/ethernet/ibm/emac/core.c dev->phy.mode = dev->phy_mode; mode 2742 drivers/net/ethernet/ibm/emac/core.c if (emac_phy_gpcs(dev->phy.mode)) { mode 100 drivers/net/ethernet/ibm/emac/phy.c if (limit > 0 && phy->mode == PHY_INTERFACE_MODE_SGMII) { mode 316 drivers/net/ethernet/ibm/emac/phy.c switch (phy->mode) { mode 55 drivers/net/ethernet/ibm/emac/phy.h int mode; /* PHY mode */ mode 57 drivers/net/ethernet/ibm/emac/rgmii.c static inline u32 rgmii_mode_mask(int mode, int input) mode 59 drivers/net/ethernet/ibm/emac/rgmii.c switch (mode) { mode 78 drivers/net/ethernet/ibm/emac/rgmii.c int rgmii_attach(struct platform_device *ofdev, int input, int mode) mode 86 drivers/net/ethernet/ibm/emac/rgmii.c if (input < 0 || !rgmii_valid_mode(mode)) { mode 95 drivers/net/ethernet/ibm/emac/rgmii.c out_be32(&p->fer, in_be32(&p->fer) | rgmii_mode_mask(mode, input)); mode 98 drivers/net/ethernet/ibm/emac/rgmii.c ofdev->dev.of_node, input, phy_modes(mode)); mode 57 drivers/net/ethernet/ibm/emac/rgmii.h int rgmii_attach(struct platform_device *ofdev, int input, int mode); mode 45 drivers/net/ethernet/ibm/emac/zmii.c static inline int zmii_valid_mode(int mode) mode 47 drivers/net/ethernet/ibm/emac/zmii.c return mode == PHY_INTERFACE_MODE_MII || mode 48 drivers/net/ethernet/ibm/emac/zmii.c mode == PHY_INTERFACE_MODE_RMII || mode 49 drivers/net/ethernet/ibm/emac/zmii.c mode == PHY_INTERFACE_MODE_SMII || mode 50 drivers/net/ethernet/ibm/emac/zmii.c mode == PHY_INTERFACE_MODE_NA; mode 53 drivers/net/ethernet/ibm/emac/zmii.c static inline const char *zmii_mode_name(int mode) mode 55 drivers/net/ethernet/ibm/emac/zmii.c switch (mode) { mode 67 drivers/net/ethernet/ibm/emac/zmii.c static inline u32 zmii_mode_mask(int mode, int input) mode 69 drivers/net/ethernet/ibm/emac/zmii.c switch (mode) { mode 81 drivers/net/ethernet/ibm/emac/zmii.c int zmii_attach(struct platform_device *ofdev, int input, int *mode) mode 86 drivers/net/ethernet/ibm/emac/zmii.c ZMII_DBG(dev, "init(%d, %d)" NL, input, *mode); mode 88 drivers/net/ethernet/ibm/emac/zmii.c if (!zmii_valid_mode(*mode)) { mode 104 drivers/net/ethernet/ibm/emac/zmii.c if (dev->mode == PHY_INTERFACE_MODE_NA) { mode 105 drivers/net/ethernet/ibm/emac/zmii.c if (*mode == PHY_INTERFACE_MODE_NA) { mode 111 drivers/net/ethernet/ibm/emac/zmii.c dev->mode = PHY_INTERFACE_MODE_MII; mode 113 drivers/net/ethernet/ibm/emac/zmii.c dev->mode = PHY_INTERFACE_MODE_RMII; mode 115 drivers/net/ethernet/ibm/emac/zmii.c dev->mode = PHY_INTERFACE_MODE_SMII; mode 117 drivers/net/ethernet/ibm/emac/zmii.c dev->mode = *mode; mode 121 drivers/net/ethernet/ibm/emac/zmii.c zmii_mode_name(dev->mode)); mode 124 drivers/net/ethernet/ibm/emac/zmii.c if (*mode != PHY_INTERFACE_MODE_NA && *mode != dev->mode) { mode 127 drivers/net/ethernet/ibm/emac/zmii.c ofdev->dev.of_node, *mode, input); mode 136 drivers/net/ethernet/ibm/emac/zmii.c *mode = dev->mode; mode 139 drivers/net/ethernet/ibm/emac/zmii.c out_be32(&p->fer, in_be32(&p->fer) | zmii_mode_mask(dev->mode, input)); mode 202 drivers/net/ethernet/ibm/emac/zmii.c in_be32(&dev->base->fer) & ~zmii_mode_mask(dev->mode, input)); mode 244 drivers/net/ethernet/ibm/emac/zmii.c dev->mode = PHY_INTERFACE_MODE_NA; mode 37 drivers/net/ethernet/ibm/emac/zmii.h int mode; mode 53 drivers/net/ethernet/ibm/emac/zmii.h int zmii_attach(struct platform_device *ofdev, int input, int *mode); mode 1858 drivers/net/ethernet/ibm/ibmveth.c .name = __stringify(_name), .mode = _mode, \ mode 1592 drivers/net/ethernet/intel/e1000e/mac.c u32 mode = (hw->mac.ledctl_mode2 >> i) & mode 1597 drivers/net/ethernet/intel/e1000e/mac.c (mode == E1000_LEDCTL_MODE_LED_ON)) || mode 1599 drivers/net/ethernet/intel/e1000e/mac.c (mode == E1000_LEDCTL_MODE_LED_OFF))) { mode 125 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c static u8 fm10k_dcbnl_setdcbx(struct net_device __always_unused *dev, u8 mode) mode 127 drivers/net/ethernet/intel/fm10k/fm10k_dcbnl.c return (mode != (DCB_CAP_DCBX_HOST | DCB_CAP_DCBX_VER_IEEE)) ? 1 : 0; mode 392 drivers/net/ethernet/intel/fm10k/fm10k_pf.c static s32 fm10k_update_xcast_mode_pf(struct fm10k_hw *hw, u16 glort, u8 mode) mode 397 drivers/net/ethernet/intel/fm10k/fm10k_pf.c if (mode > FM10K_XCAST_MODE_NONE) mode 408 drivers/net/ethernet/intel/fm10k/fm10k_pf.c xcast_mode = ((u32)mode << 16) | glort; mode 1311 drivers/net/ethernet/intel/fm10k/fm10k_pf.c u8 mode) mode 1316 drivers/net/ethernet/intel/fm10k/fm10k_pf.c switch (mode) { mode 1357 drivers/net/ethernet/intel/fm10k/fm10k_pf.c u8 mode = 0; mode 1367 drivers/net/ethernet/intel/fm10k/fm10k_pf.c err = fm10k_tlv_attr_get_u8(result, &mode); mode 1372 drivers/net/ethernet/intel/fm10k/fm10k_pf.c mode = fm10k_iov_supported_xcast_mode_pf(vf_info, mode); mode 1375 drivers/net/ethernet/intel/fm10k/fm10k_pf.c if (!(FM10K_VF_FLAG_ENABLED(vf_info) & BIT(mode))) mode 1376 drivers/net/ethernet/intel/fm10k/fm10k_pf.c fm10k_update_xcast_mode_pf(hw, vf_info->glort, mode); mode 1379 drivers/net/ethernet/intel/fm10k/fm10k_pf.c mode = FM10K_VF_FLAG_SET_MODE(mode); mode 1398 drivers/net/ethernet/intel/fm10k/fm10k_pf.c mode = FM10K_VF_FLAG_SET_MODE_NONE; mode 1407 drivers/net/ethernet/intel/fm10k/fm10k_pf.c if (!err && (!FM10K_VF_FLAG_ENABLED(vf_info) != !mode)) mode 1409 drivers/net/ethernet/intel/fm10k/fm10k_pf.c !!mode); mode 1412 drivers/net/ethernet/intel/fm10k/fm10k_pf.c mode |= FM10K_VF_FLAG_CAPABLE(vf_info); mode 1414 drivers/net/ethernet/intel/fm10k/fm10k_pf.c vf_info->vf_flags = mode; mode 602 drivers/net/ethernet/intel/fm10k/fm10k_type.h #define FM10K_VF_FLAG_SET_MODE(mode) ((u8)0x10 << (mode)) mode 428 drivers/net/ethernet/intel/fm10k/fm10k_vf.c u16 __always_unused glort, u8 mode) mode 433 drivers/net/ethernet/intel/fm10k/fm10k_vf.c if (mode > FM10K_XCAST_MODE_NONE) mode 438 drivers/net/ethernet/intel/fm10k/fm10k_vf.c fm10k_tlv_attr_put_u8(msg, FM10K_LPORT_STATE_MSG_XCAST_MODE, mode); mode 803 drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h u8 mode; mode 2429 drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h __le32 mode; mode 2822 drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h u8 mode; mode 1478 drivers/net/ethernet/intel/i40e/i40e_common.c u32 mode = 0; mode 1490 drivers/net/ethernet/intel/i40e/i40e_common.c mode = (gpio_val & I40E_GLGEN_GPIO_CTL_LED_MODE_MASK) >> mode 1495 drivers/net/ethernet/intel/i40e/i40e_common.c return mode; mode 1507 drivers/net/ethernet/intel/i40e/i40e_common.c void i40e_led_set(struct i40e_hw *hw, u32 mode, bool blink) mode 1511 drivers/net/ethernet/intel/i40e/i40e_common.c if (mode & 0xfffffff0) mode 1512 drivers/net/ethernet/intel/i40e/i40e_common.c hw_dbg(hw, "invalid mode passed in %X\n", mode); mode 1524 drivers/net/ethernet/intel/i40e/i40e_common.c gpio_val |= ((mode << I40E_GLGEN_GPIO_CTL_LED_MODE_SHIFT) & mode 2419 drivers/net/ethernet/intel/i40e/i40e_common.c u16 valid_flags, u8 mode, mode 2431 drivers/net/ethernet/intel/i40e/i40e_common.c scfg->mode = mode; mode 5166 drivers/net/ethernet/intel/i40e/i40e_common.c u16 led_addr, u32 mode) mode 5193 drivers/net/ethernet/intel/i40e/i40e_common.c if (mode & I40E_PHY_LED_MODE_ORIG) { mode 5194 drivers/net/ethernet/intel/i40e/i40e_common.c led_ctl = (mode & I40E_PHY_LED_MODE_MASK); mode 5370 drivers/net/ethernet/intel/i40e/i40e_main.c vsi->mqprio_qopt.mode != TC_MQPRIO_MODE_CHANNEL) mode 6077 drivers/net/ethernet/intel/i40e/i40e_main.c u8 mode; mode 6103 drivers/net/ethernet/intel/i40e/i40e_main.c mode = I40E_AQ_SET_SWITCH_BIT7_VALID; mode 6106 drivers/net/ethernet/intel/i40e/i40e_main.c mode |= I40E_AQ_SET_SWITCH_L4_TYPE_TCP; mode 6109 drivers/net/ethernet/intel/i40e/i40e_main.c mode |= I40E_AQ_SET_SWITCH_MODE_NON_TUNNEL; mode 6114 drivers/net/ethernet/intel/i40e/i40e_main.c mode, NULL); mode 7390 drivers/net/ethernet/intel/i40e/i40e_main.c u16 mode; mode 7396 drivers/net/ethernet/intel/i40e/i40e_main.c mode = mqprio_qopt->mode; mode 7409 drivers/net/ethernet/intel/i40e/i40e_main.c switch (mode) { mode 7454 drivers/net/ethernet/intel/i40e/i40e_main.c mode != TC_MQPRIO_MODE_CHANNEL) mode 12365 drivers/net/ethernet/intel/i40e/i40e_main.c __u16 mode; mode 12370 drivers/net/ethernet/intel/i40e/i40e_main.c mode = nla_get_u16(attr); mode 12371 drivers/net/ethernet/intel/i40e/i40e_main.c if ((mode != BRIDGE_MODE_VEPA) && mode 12372 drivers/net/ethernet/intel/i40e/i40e_main.c (mode != BRIDGE_MODE_VEB)) mode 12380 drivers/net/ethernet/intel/i40e/i40e_main.c veb->bridge_mode = mode; mode 12387 drivers/net/ethernet/intel/i40e/i40e_main.c } else if (mode != veb->bridge_mode) { mode 12389 drivers/net/ethernet/intel/i40e/i40e_main.c veb->bridge_mode = mode; mode 12391 drivers/net/ethernet/intel/i40e/i40e_main.c if (mode == BRIDGE_MODE_VEB) mode 53 drivers/net/ethernet/intel/i40e/i40e_prototype.h void i40e_led_set(struct i40e_hw *hw, u32 mode, bool blink); mode 55 drivers/net/ethernet/intel/i40e/i40e_prototype.h u16 led_addr, u32 mode); mode 170 drivers/net/ethernet/intel/i40e/i40e_prototype.h u16 valid_flags, u8 mode, mode 2602 drivers/net/ethernet/intel/iavf/iavf_main.c u16 mode; mode 2606 drivers/net/ethernet/intel/iavf/iavf_main.c mode = mqprio_qopt->mode; mode 2625 drivers/net/ethernet/intel/iavf/iavf_main.c if (mode == TC_MQPRIO_MODE_CHANNEL) { mode 4596 drivers/net/ethernet/intel/ice/ice_main.c __u16 mode; mode 4600 drivers/net/ethernet/intel/ice/ice_main.c mode = nla_get_u16(attr); mode 4601 drivers/net/ethernet/intel/ice/ice_main.c if (mode != BRIDGE_MODE_VEPA && mode != BRIDGE_MODE_VEB) mode 4604 drivers/net/ethernet/intel/ice/ice_main.c if (mode == pf_sw->bridge_mode) mode 4612 drivers/net/ethernet/intel/ice/ice_main.c err = ice_vsi_update_bridge_mode(pf->vsi[v], mode); mode 4617 drivers/net/ethernet/intel/ice/ice_main.c hw->evb_veb = (mode == BRIDGE_MODE_VEB); mode 4624 drivers/net/ethernet/intel/ice/ice_main.c mode, status, hw->adminq.sq_last_status); mode 4630 drivers/net/ethernet/intel/ice/ice_main.c pf_sw->bridge_mode = mode; mode 1469 drivers/net/ethernet/intel/igb/e1000_mac.c u32 mode = (hw->mac.ledctl_mode2 >> i) & mode 1474 drivers/net/ethernet/intel/igb/e1000_mac.c (mode == E1000_LEDCTL_MODE_LED_ON)) || mode 1476 drivers/net/ethernet/intel/igb/e1000_mac.c (mode == E1000_LEDCTL_MODE_LED_OFF))) { mode 130 drivers/net/ethernet/intel/igb/igb_hwmon.c igb_attr->dev_attr.attr.mode = 0444; mode 1637 drivers/net/ethernet/intel/igb/igb_main.c static void set_queue_mode(struct e1000_hw *hw, int queue, enum queue_mode mode) mode 1646 drivers/net/ethernet/intel/igb/igb_main.c if (mode == QUEUE_MODE_STREAM_RESERVATION) mode 713 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c static u8 ixgbe_dcbnl_setdcbx(struct net_device *dev, u8 mode) mode 721 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c if ((mode & DCB_CAP_DCBX_LLD_MANAGED) || mode 722 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c ((mode & DCB_CAP_DCBX_VER_IEEE) && (mode & DCB_CAP_DCBX_VER_CEE)) || mode 723 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c !(mode & DCB_CAP_DCBX_HOST)) mode 726 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c if (mode == adapter->dcbx_cap) mode 729 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c adapter->dcbx_cap = mode; mode 735 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c if (mode & DCB_CAP_DCBX_VER_IEEE) { mode 738 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c } else if (mode & DCB_CAP_DCBX_VER_CEE) { mode 281 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c if (target_mode && !test_bit(__IXGBE_FCOE_TARGET, &fcoe->mode)) { mode 282 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c set_bit(__IXGBE_FCOE_TARGET, &fcoe->mode); mode 59 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.h unsigned long mode; mode 74 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c u32 key[], u32 salt, u32 mode, u32 ip_idx) mode 91 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c IXGBE_WRITE_REG(hw, IXGBE_IPSRXMOD, mode); mode 323 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (r->mode & IXGBE_RXTXMOD_VF) mode 328 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c r->mode, r->iptbl_ind); mode 332 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (t->mode & IXGBE_RXTXMOD_VF) mode 402 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (rsa->mode & IXGBE_RXTXMOD_VF) mode 674 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c rsa.mode = IXGBE_RXMOD_VALID; mode 676 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c rsa.mode |= IXGBE_RXMOD_PROTO_ESP; mode 678 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c rsa.mode |= IXGBE_RXMOD_DECRYPT; mode 680 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c rsa.mode |= IXGBE_RXMOD_IPV6; mode 686 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c rsa.salt, rsa.mode, rsa.iptbl_ind); mode 852 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (ipsec->rx_tbl[i].mode & IXGBE_RXTXMOD_VF && mode 861 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (ipsec->tx_tbl[i].mode & IXGBE_RXTXMOD_VF && mode 951 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->rx_tbl[sa_idx].mode |= IXGBE_RXTXMOD_VF; mode 955 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c ipsec->tx_tbl[sa_idx].mode |= IXGBE_RXTXMOD_VF; mode 1016 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (!(rsa->mode & IXGBE_RXTXMOD_VF) || mode 1038 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c if (!(tsa->mode & IXGBE_RXTXMOD_VF) || mode 37 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.h u32 mode; mode 54 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.h u32 mode; mode 9948 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c __u16 mode) mode 9954 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c switch (mode) { mode 10006 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c adapter->bridge_mode = mode; mode 10009 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c mode == BRIDGE_MODE_VEPA ? "VEPA" : "VEB"); mode 10031 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c __u16 mode; mode 10036 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (nla_len(attr) < sizeof(mode)) mode 10039 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c mode = nla_get_u16(attr); mode 10040 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c status = ixgbe_configure_bridge_mode(adapter, mode); mode 124 drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c ixgbe_attr->dev_attr.attr.mode = 0444; mode 311 drivers/net/ethernet/intel/ixgbevf/ipsec.c rsa.mode = IXGBE_RXMOD_VALID; mode 313 drivers/net/ethernet/intel/ixgbevf/ipsec.c rsa.mode |= IXGBE_RXMOD_PROTO_ESP; mode 315 drivers/net/ethernet/intel/ixgbevf/ipsec.c rsa.mode |= IXGBE_RXMOD_DECRYPT; mode 317 drivers/net/ethernet/intel/ixgbevf/ipsec.c rsa.mode |= IXGBE_RXMOD_IPV6; mode 23 drivers/net/ethernet/intel/ixgbevf/ipsec.h u32 mode; mode 75 drivers/net/ethernet/jme.h __u8 mode; /* CPOL, CPHA, and Duplex mode of SPI */ mode 3471 drivers/net/ethernet/marvell/mvneta.c static void mvneta_mac_config(struct phylink_config *config, unsigned int mode, mode 3513 drivers/net/ethernet/marvell/mvneta.c if (!phylink_autoneg_inband(mode)) { mode 3605 drivers/net/ethernet/marvell/mvneta.c unsigned int mode, phy_interface_t interface) mode 3613 drivers/net/ethernet/marvell/mvneta.c if (!phylink_autoneg_inband(mode)) { mode 3624 drivers/net/ethernet/marvell/mvneta.c static void mvneta_mac_link_up(struct phylink_config *config, unsigned int mode, mode 3632 drivers/net/ethernet/marvell/mvneta.c if (!phylink_autoneg_inband(mode)) { mode 59 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c static void mvpp2_mac_config(struct phylink_config *config, unsigned int mode, mode 61 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c static void mvpp2_mac_link_up(struct phylink_config *config, unsigned int mode, mode 4883 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c u32 mode = readl(port->base + MVPP22_XLG_CTRL3_REG); mode 4884 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c mode &= MVPP22_XLG_CTRL3_MACMODESELECT_MASK; mode 4886 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c if (mode == MVPP22_XLG_CTRL3_MACMODESELECT_10G) { mode 4908 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c static void mvpp2_xlg_config(struct mvpp2_port *port, unsigned int mode, mode 4945 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c static void mvpp2_gmac_config(struct mvpp2_port *port, unsigned int mode, mode 4995 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c if (!phylink_autoneg_inband(mode)) { mode 5084 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c static void mvpp2_mac_config(struct phylink_config *config, unsigned int mode, mode 5112 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c mvpp2_xlg_config(port, mode, state); mode 5116 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c mvpp2_gmac_config(port, mode, state); mode 5127 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c static void mvpp2_mac_link_up(struct phylink_config *config, unsigned int mode, mode 5134 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c if (!phylink_autoneg_inband(mode)) { mode 5156 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c unsigned int mode, phy_interface_t interface) mode 5162 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c if (!phylink_autoneg_inband(mode)) { mode 614 drivers/net/ethernet/marvell/octeontx2/af/mbox.h u16 mode; mode 2304 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (req->mode & NIX_RX_MODE_PROMISC) mode 2306 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c else if (req->mode & NIX_RX_MODE_ALLMULTI) mode 681 drivers/net/ethernet/marvell/skge.c static void skge_led(struct skge_port *skge, enum led_mode mode) mode 688 drivers/net/ethernet/marvell/skge.c switch (mode) { mode 725 drivers/net/ethernet/marvell/skge.c switch (mode) { mode 1784 drivers/net/ethernet/marvell/skge.c u32 mode; mode 1802 drivers/net/ethernet/marvell/skge.c mode = xm_read32(hw, port, XM_MODE); mode 1818 drivers/net/ethernet/marvell/skge.c mode |= XM_PAUSE_MODE; mode 1826 drivers/net/ethernet/marvell/skge.c mode &= ~XM_PAUSE_MODE; mode 1831 drivers/net/ethernet/marvell/skge.c xm_write32(hw, port, XM_MODE, mode); mode 2935 drivers/net/ethernet/marvell/skge.c u32 mode; mode 2938 drivers/net/ethernet/marvell/skge.c mode = xm_read32(hw, port, XM_MODE); mode 2939 drivers/net/ethernet/marvell/skge.c mode |= XM_MD_ENA_HASH; mode 2941 drivers/net/ethernet/marvell/skge.c mode |= XM_MD_ENA_PROM; mode 2943 drivers/net/ethernet/marvell/skge.c mode &= ~XM_MD_ENA_PROM; mode 2958 drivers/net/ethernet/marvell/skge.c xm_write32(hw, port, XM_MODE, mode); mode 2383 drivers/net/ethernet/marvell/sky2.c u16 ctl, mode; mode 2413 drivers/net/ethernet/marvell/sky2.c mode = DATA_BLIND_VAL(DATA_BLIND_DEF) | GM_SMOD_VLAN_ENA; mode 2415 drivers/net/ethernet/marvell/sky2.c mode |= IPG_DATA_VAL(IPG_DATA_DEF_1000); mode 2417 drivers/net/ethernet/marvell/sky2.c mode |= IPG_DATA_VAL(IPG_DATA_DEF_10_100); mode 2420 drivers/net/ethernet/marvell/sky2.c mode |= GM_SMOD_JUMBO_ENA; mode 2422 drivers/net/ethernet/marvell/sky2.c gma_write16(hw, port, GM_SERIAL_MODE, mode); mode 3932 drivers/net/ethernet/marvell/sky2.c static void sky2_led(struct sky2_port *sky2, enum led_mode mode) mode 3945 drivers/net/ethernet/marvell/sky2.c switch (mode) { mode 3978 drivers/net/ethernet/marvell/sky2.c PHY_M_LED_MO_DUP(mode) | mode 3979 drivers/net/ethernet/marvell/sky2.c PHY_M_LED_MO_10(mode) | mode 3980 drivers/net/ethernet/marvell/sky2.c PHY_M_LED_MO_100(mode) | mode 3981 drivers/net/ethernet/marvell/sky2.c PHY_M_LED_MO_1000(mode) | mode 3982 drivers/net/ethernet/marvell/sky2.c PHY_M_LED_MO_RX(mode) | mode 3983 drivers/net/ethernet/marvell/sky2.c PHY_M_LED_MO_TX(mode)); mode 201 drivers/net/ethernet/mediatek/mtk_eth_soc.c static void mtk_mac_config(struct phylink_config *config, unsigned int mode, mode 330 drivers/net/ethernet/mediatek/mtk_eth_soc.c else if (phylink_autoneg_inband(mode)) mode 338 drivers/net/ethernet/mediatek/mtk_eth_soc.c } else if (phylink_autoneg_inband(mode)) { mode 428 drivers/net/ethernet/mediatek/mtk_eth_soc.c static void mtk_mac_link_down(struct phylink_config *config, unsigned int mode, mode 439 drivers/net/ethernet/mediatek/mtk_eth_soc.c static void mtk_mac_link_up(struct phylink_config *config, unsigned int mode, mode 2839 drivers/net/ethernet/mediatek/mtk_eth_soc.c mac->mode = MLO_AN_PHY; mode 909 drivers/net/ethernet/mediatek/mtk_eth_soc.h unsigned int mode; mode 48 drivers/net/ethernet/mellanox/mlx4/en_cq.c int entries, int ring, enum cq_type mode, mode 65 drivers/net/ethernet/mellanox/mlx4/en_cq.c cq->type = mode; mode 457 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c static u8 mlx4_en_dcbnl_setdcbx(struct net_device *dev, u8 mode) mode 463 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c if (mode == priv->dcbx_cap) mode 466 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c if ((mode & DCB_CAP_DCBX_LLD_MANAGED) || mode 467 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c ((mode & DCB_CAP_DCBX_VER_IEEE) && mode 468 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c (mode & DCB_CAP_DCBX_VER_CEE)) || mode 469 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c !(mode & DCB_CAP_DCBX_HOST)) mode 472 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c priv->dcbx_cap = mode; mode 477 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c if (mode & DCB_CAP_DCBX_VER_IEEE) { mode 482 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c } else if (mode & DCB_CAP_DCBX_VER_CEE) { mode 3048 drivers/net/ethernet/mellanox/mlx4/main.c info->port_attr.attr.mode = 0444; mode 3050 drivers/net/ethernet/mellanox/mlx4/main.c info->port_attr.attr.mode = 0644; mode 3067 drivers/net/ethernet/mellanox/mlx4/main.c info->port_mtu_attr.attr.mode = 0444; mode 3069 drivers/net/ethernet/mellanox/mlx4/main.c info->port_mtu_attr.attr.mode = 0644; mode 1467 drivers/net/ethernet/mellanox/mlx4/mcg.c u32 qpn, enum mlx4_net_trans_promisc_mode mode) mode 1477 drivers/net/ethernet/mellanox/mlx4/mcg.c switch (mode) { mode 1491 drivers/net/ethernet/mellanox/mlx4/mcg.c rule.promisc_mode = mode; mode 1502 drivers/net/ethernet/mellanox/mlx4/mcg.c enum mlx4_net_trans_promisc_mode mode) mode 1507 drivers/net/ethernet/mellanox/mlx4/mcg.c switch (mode) { mode 691 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h int entries, int ring, enum cq_type mode, int node); mode 764 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h int mlx4_SET_MCAST_FLTR(struct mlx4_dev *dev, u8 port, u64 mac, u64 clear, u8 mode); mode 1829 drivers/net/ethernet/mellanox/mlx4/port.c u64 mac, u64 clear, u8 mode) mode 1831 drivers/net/ethernet/mellanox/mlx4/port.c return mlx4_cmd(dev, (mac | (clear << 63)), port, mode, mode 909 drivers/net/ethernet/mellanox/mlx5/core/cmd.c cmd_mode = cmd->mode; mode 987 drivers/net/ethernet/mellanox/mlx5/core/cmd.c if (cmd->mode == CMD_MODE_POLLING || ent->polling) { mode 1408 drivers/net/ethernet/mellanox/mlx5/core/cmd.c static void mlx5_cmd_change_mod(struct mlx5_core_dev *dev, int mode) mode 1417 drivers/net/ethernet/mellanox/mlx5/core/cmd.c cmd->mode = mode; mode 1990 drivers/net/ethernet/mellanox/mlx5/core/cmd.c cmd->mode = CMD_MODE_POLLING; mode 155 drivers/net/ethernet/mellanox/mlx5/core/devlink.c enum mlx5_flow_steering_mode mode; mode 158 drivers/net/ethernet/mellanox/mlx5/core/devlink.c mode = MLX5_FLOW_STEERING_MODE_SMFS; mode 160 drivers/net/ethernet/mellanox/mlx5/core/devlink.c mode = MLX5_FLOW_STEERING_MODE_DMFS; mode 161 drivers/net/ethernet/mellanox/mlx5/core/devlink.c dev->priv.steering->mode = mode; mode 171 drivers/net/ethernet/mellanox/mlx5/core/devlink.c if (dev->priv.steering->mode == MLX5_FLOW_STEERING_MODE_SMFS) mode 196 drivers/net/ethernet/mellanox/mlx5/core/devlink.c if (dev->priv.steering->mode == MLX5_FLOW_STEERING_MODE_DMFS) mode 290 drivers/net/ethernet/mellanox/mlx5/core/en.h enum mlx5_dcbx_oper_mode mode; mode 461 drivers/net/ethernet/mellanox/mlx5/core/en.h enum mlx5e_xdp_xmit_mode mode; mode 128 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h u8 mode; mode 133 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h mode = sq->min_inline_mode; mode 137 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h mode = max_t(u8, MLX5_INLINE_MODE_L2, mode); mode 139 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h return mode; mode 87 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c xdpi.mode = MLX5E_XDP_XMIT_MODE_FRAME; mode 106 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c xdpi.mode = MLX5E_XDP_XMIT_MODE_PAGE; mode 366 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c switch (xdpi.mode) { mode 510 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c xdpi.mode = MLX5E_XDP_XMIT_MODE_FRAME; mode 75 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.c xdpi.mode = MLX5E_XDP_XMIT_MODE_XSK; mode 199 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c attrs->flags |= (x->props.mode == XFRM_MODE_TRANSPORT) ? mode 234 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c if (x->props.mode != XFRM_MODE_TRANSPORT && mode 235 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c x->props.mode != XFRM_MODE_TUNNEL) { mode 136 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c struct mlx5_wqe_eth_seg *eseg, u8 mode, mode 151 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c swp_spec.is_tun = mode == XFRM_MODE_TUNNEL; mode 279 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c mlx5e_ipsec_set_swp(skb, &wqe->eth, x->props.mode, xo); mode 62 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c enum mlx5_dcbx_oper_mode mode) mode 72 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c MLX5_SET(dcbx_param, param, version_admin, mode); mode 73 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c if (mode != MLX5E_DCBX_PARAM_VER_OPER_HOST) mode 87 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c if (dcbx->mode == MLX5E_DCBX_PARAM_VER_OPER_HOST) mode 94 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c dcbx->mode = MLX5E_DCBX_PARAM_VER_OPER_HOST; mode 406 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c static u8 mlx5e_dcbnl_setdcbx(struct net_device *dev, u8 mode) mode 411 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c if (mode & DCB_CAP_DCBX_LLD_MANAGED) mode 414 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c if ((!mode) && MLX5_CAP_GEN(priv->mdev, dcbx)) { mode 415 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c if (dcbx->mode == MLX5E_DCBX_PARAM_VER_OPER_AUTO) mode 420 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c dcbx->mode = MLX5E_DCBX_PARAM_VER_OPER_AUTO; mode 428 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c if (!(mode & DCB_CAP_DCBX_HOST)) mode 434 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c dcbx->cap = mode; mode 1013 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c enum mlx5_dcbx_oper_mode *mode) mode 1017 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c *mode = MLX5E_DCBX_PARAM_VER_OPER_HOST; mode 1020 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c *mode = MLX5_GET(dcbx_param, out, version_oper); mode 1025 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c if (*mode != MLX5E_DCBX_PARAM_VER_OPER_HOST) mode 1026 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c *mode = MLX5E_DCBX_PARAM_VER_OPER_AUTO; mode 1193 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c mlx5e_dcbnl_query_dcbx_mode(priv, &dcbx->mode); mode 1197 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c if (priv->dcbx.mode == MLX5E_DCBX_PARAM_VER_OPER_HOST) mode 49 drivers/net/ethernet/mellanox/mlx5/core/en_dim.c net_dim_get_rx_moderation(dim->mode, dim->profile_ix); mode 59 drivers/net/ethernet/mellanox/mlx5/core/en_dim.c net_dim_get_tx_moderation(dim->mode, dim->profile_ix); mode 647 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c int mode = 0; mode 652 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c mode = find_first_bit(&fec_mode, size); mode 654 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (mode < ARRAY_SIZE(pplm_fec_2_ethtool)) mode 655 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c return pplm_fec_2_ethtool[mode]; mode 1421 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c static __u32 mlx5e_reformat_wol_mode_mlx5_to_linux(u8 mode) mode 1425 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (mode & MLX5_WOL_MAGIC) mode 1428 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (mode & MLX5_WOL_SECURED_MAGIC) mode 1431 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (mode & MLX5_WOL_ARP) mode 1434 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (mode & MLX5_WOL_BROADCAST) mode 1437 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (mode & MLX5_WOL_MULTICAST) mode 1440 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (mode & MLX5_WOL_UNICAST) mode 1443 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (mode & MLX5_WOL_PHY_ACTIVITY) mode 1449 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c static u8 mlx5e_reformat_wol_mode_linux_to_mlx5(__u32 mode) mode 1453 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (mode & WAKE_MAGIC) mode 1456 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (mode & WAKE_MAGICSECURE) mode 1459 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (mode & WAKE_ARP) mode 1462 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (mode & WAKE_BCAST) mode 1465 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (mode & WAKE_MCAST) mode 1468 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (mode & WAKE_UCAST) mode 1471 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (mode & WAKE_PHY) mode 1548 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c int mode; mode 1555 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c for (mode = 0; mode < ARRAY_SIZE(pplm_fec_2_ethtool); mode++) { mode 1556 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c if (!(pplm_fec_2_ethtool[mode] & fecparam->fec)) mode 1558 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c fec_policy |= (1 << mode); mode 608 drivers/net/ethernet/mellanox/mlx5/core/en_main.c rq->dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_CQE; mode 612 drivers/net/ethernet/mellanox/mlx5/core/en_main.c rq->dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; mode 1179 drivers/net/ethernet/mellanox/mlx5/core/en_main.c sq->dim.mode = params->tx_cq_moderation.cq_period_mode; mode 4545 drivers/net/ethernet/mellanox/mlx5/core/en_main.c u8 mode, setting; mode 4551 drivers/net/ethernet/mellanox/mlx5/core/en_main.c mode = setting ? BRIDGE_MODE_VEPA : BRIDGE_MODE_VEB; mode 4553 drivers/net/ethernet/mellanox/mlx5/core/en_main.c mode, mode 4563 drivers/net/ethernet/mellanox/mlx5/core/en_main.c u16 mode = BRIDGE_MODE_UNDEF; mode 4575 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (nla_len(attr) < sizeof(mode)) mode 4578 drivers/net/ethernet/mellanox/mlx5/core/en_main.c mode = nla_get_u16(attr); mode 4579 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (mode > BRIDGE_MODE_VEPA) mode 4585 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (mode == BRIDGE_MODE_UNDEF) mode 4588 drivers/net/ethernet/mellanox/mlx5/core/en_main.c setting = (mode == BRIDGE_MODE_VEPA) ? 1 : 0; mode 414 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c if (esw->mode != MLX5_ESWITCH_OFFLOADS) mode 435 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c if (esw->mode != MLX5_ESWITCH_OFFLOADS) mode 3789 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (esw && esw->mode == MLX5_ESWITCH_OFFLOADS) mode 114 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c static inline u16 mlx5e_calc_min_inline(enum mlx5_inline_modes mode, mode 119 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c switch (mode) { mode 295 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c u8 mode = mlx5e_tx_wqe_inline_mode(sq, &wqe->ctrl, skb); mode 299 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c ihs = mlx5e_calc_min_inline(mode, skb); mode 618 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c u8 mode = mlx5e_tx_wqe_inline_mode(sq, NULL, skb); mode 622 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c ihs = mlx5e_calc_min_inline(mode, skb); mode 518 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (esw->fdb_table.legacy.fdb && esw->mode == MLX5_ESWITCH_LEGACY) mode 1644 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (esw->mode == MLX5_ESWITCH_LEGACY) { mode 1696 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (vport_num && esw->mode == MLX5_ESWITCH_LEGACY) mode 1750 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->mode == MLX5_ESWITCH_LEGACY) { mode 1817 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (esw->mode == MLX5_ESWITCH_OFFLOADS && mlx5_eswitch_is_funcs_handler(esw->dev)) { mode 1826 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (esw->mode == MLX5_ESWITCH_OFFLOADS && mlx5_eswitch_is_funcs_handler(esw->dev)) mode 1874 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c int mlx5_eswitch_enable(struct mlx5_eswitch *esw, int mode) mode 1892 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->mode = mode; mode 1896 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (mode == MLX5_ESWITCH_LEGACY) { mode 1910 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c mode == MLX5_ESWITCH_LEGACY ? "LEGACY" : "OFFLOADS", mode 1916 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->mode = MLX5_ESWITCH_NONE; mode 1918 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (mode == MLX5_ESWITCH_OFFLOADS) { mode 1930 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (!ESW_ALLOWED(esw) || esw->mode == MLX5_ESWITCH_NONE) mode 1934 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->mode == MLX5_ESWITCH_LEGACY ? "LEGACY" : "OFFLOADS", mode 1939 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (esw->mode == MLX5_ESWITCH_LEGACY) mode 1941 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c else if (esw->mode == MLX5_ESWITCH_OFFLOADS) mode 1946 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c old_mode = esw->mode; mode 1947 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->mode = MLX5_ESWITCH_NONE; mode 2018 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->mode = MLX5_ESWITCH_NONE; mode 2085 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (evport->enabled && esw->mode == MLX5_ESWITCH_LEGACY) mode 2167 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (evport->enabled && esw->mode == MLX5_ESWITCH_LEGACY) { mode 2212 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (evport->enabled && esw->mode == MLX5_ESWITCH_LEGACY) mode 2308 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (esw->mode != MLX5_ESWITCH_LEGACY) { mode 2328 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (esw->mode != MLX5_ESWITCH_LEGACY) mode 2466 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (!vport->enabled || esw->mode != MLX5_ESWITCH_LEGACY) mode 2575 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c return ESW_ALLOWED(esw) ? esw->mode : MLX5_ESWITCH_NONE; mode 2592 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if ((dev0->priv.eswitch->mode == MLX5_ESWITCH_NONE && mode 2593 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c dev1->priv.eswitch->mode == MLX5_ESWITCH_NONE) || mode 2594 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c (dev0->priv.eswitch->mode == MLX5_ESWITCH_OFFLOADS && mode 2595 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c dev1->priv.eswitch->mode == MLX5_ESWITCH_OFFLOADS)) mode 2604 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c return (dev0->priv.eswitch->mode == MLX5_ESWITCH_OFFLOADS && mode 2605 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c dev1->priv.eswitch->mode == MLX5_ESWITCH_OFFLOADS); mode 2612 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c WARN_ON_ONCE(esw->mode != MLX5_ESWITCH_NONE); mode 241 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h int mode; mode 272 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h int mlx5_eswitch_enable(struct mlx5_eswitch *esw, int mode); mode 403 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h int mlx5_devlink_eswitch_mode_set(struct devlink *devlink, u16 mode, mode 405 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h int mlx5_devlink_eswitch_mode_get(struct devlink *devlink, u16 *mode); mode 406 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h int mlx5_devlink_eswitch_inline_mode_set(struct devlink *devlink, u8 mode, mode 408 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h int mlx5_devlink_eswitch_inline_mode_get(struct devlink *devlink, u8 *mode); mode 409 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h int mlx5_eswitch_inline_mode_get(struct mlx5_eswitch *esw, u8 *mode); mode 605 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h static inline int mlx5_eswitch_enable(struct mlx5_eswitch *esw, int mode) { return 0; } mode 150 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (esw->mode != MLX5_ESWITCH_OFFLOADS) mode 1072 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->dev->priv.steering->mode); mode 1365 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (esw->mode != MLX5_ESWITCH_LEGACY && mode 2223 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c static int esw_mode_from_devlink(u16 mode, u16 *mlx5_mode) mode 2225 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c switch (mode) { mode 2239 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c static int esw_mode_to_devlink(u16 mlx5_mode, u16 *mode) mode 2243 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c *mode = DEVLINK_ESWITCH_MODE_LEGACY; mode 2246 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c *mode = DEVLINK_ESWITCH_MODE_SWITCHDEV; mode 2255 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c static int esw_inline_mode_from_devlink(u8 mode, u8 *mlx5_mode) mode 2257 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c switch (mode) { mode 2277 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c static int esw_inline_mode_to_devlink(u8 mlx5_mode, u8 *mode) mode 2281 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c *mode = DEVLINK_ESWITCH_INLINE_MODE_NONE; mode 2284 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c *mode = DEVLINK_ESWITCH_INLINE_MODE_LINK; mode 2287 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c *mode = DEVLINK_ESWITCH_INLINE_MODE_NETWORK; mode 2290 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c *mode = DEVLINK_ESWITCH_INLINE_MODE_TRANSPORT; mode 2309 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (dev->priv.eswitch->mode == MLX5_ESWITCH_NONE && mode 2316 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c int mlx5_devlink_eswitch_mode_set(struct devlink *devlink, u16 mode, mode 2327 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c cur_mlx5_mode = dev->priv.eswitch->mode; mode 2329 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (esw_mode_from_devlink(mode, &mlx5_mode)) mode 2335 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (mode == DEVLINK_ESWITCH_MODE_SWITCHDEV) mode 2337 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c else if (mode == DEVLINK_ESWITCH_MODE_LEGACY) mode 2343 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c int mlx5_devlink_eswitch_mode_get(struct devlink *devlink, u16 *mode) mode 2352 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c return esw_mode_to_devlink(dev->priv.eswitch->mode, mode); mode 2355 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c int mlx5_devlink_eswitch_inline_mode_set(struct devlink *devlink, u8 mode, mode 2369 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (mode == DEVLINK_ESWITCH_INLINE_MODE_NONE) mode 2385 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c err = esw_inline_mode_from_devlink(mode, &mlx5_mode); mode 2411 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c int mlx5_devlink_eswitch_inline_mode_get(struct devlink *devlink, u8 *mode) mode 2421 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c return esw_inline_mode_to_devlink(esw->offloads.inline_mode, mode); mode 2424 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c int mlx5_eswitch_inline_mode_get(struct mlx5_eswitch *esw, u8 *mode) mode 2433 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (esw->mode == MLX5_ESWITCH_NONE) mode 2457 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c *mode = mlx5_mode; mode 2481 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (esw->mode == MLX5_ESWITCH_LEGACY) { mode 2547 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (esw->mode == MLX5_ESWITCH_OFFLOADS) mode 3001 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (peer_ns && ns->mode != peer_ns->mode) { mode 3015 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c enum mlx5_flow_steering_mode mode) mode 3029 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (root->mode == mode) mode 3032 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c if (mode == MLX5_FLOW_STEERING_MODE_SMFS) mode 3048 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c root->mode = mode; mode 108 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h enum mlx5_flow_steering_mode mode; mode 245 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h enum mlx5_flow_steering_mode mode; mode 270 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h enum mlx5_flow_steering_mode mode); mode 308 drivers/net/ethernet/mellanox/mlx5/core/lag.c roce_lag &= dev0->priv.eswitch->mode == MLX5_ESWITCH_NONE && mode 309 drivers/net/ethernet/mellanox/mlx5/core/lag.c dev1->priv.eswitch->mode == MLX5_ESWITCH_NONE; mode 198 drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h int mlx5_query_mtppse(struct mlx5_core_dev *mdev, u8 pin, u8 *arm, u8 *mode); mode 199 drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h int mlx5_set_mtppse(struct mlx5_core_dev *mdev, u8 pin, u8 arm, u8 mode); mode 855 drivers/net/ethernet/mellanox/mlx5/core/port.c int mlx5_query_mtppse(struct mlx5_core_dev *mdev, u8 pin, u8 *arm, u8 *mode) mode 869 drivers/net/ethernet/mellanox/mlx5/core/port.c *mode = MLX5_GET(mtppse_reg, in, event_generation_mode); mode 874 drivers/net/ethernet/mellanox/mlx5/core/port.c int mlx5_set_mtppse(struct mlx5_core_dev *mdev, u8 pin, u8 arm, u8 mode) mode 881 drivers/net/ethernet/mellanox/mlx5/core/port.c MLX5_SET(mtppse_reg, in, event_generation_mode, mode); mode 71 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c u32 pd, u64 length, u64 start_addr, int mode, mode 80 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c MLX5_SET(mkc, mkc, access_mode_1_0, mode); mode 81 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c MLX5_SET(mkc, mkc, access_mode_4_2, (mode >> 2) & 0x7); mode 84 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_icm_pool.c if (mode == MLX5_MKC_ACCESS_MODE_SW_ICM) { mode 371 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; mode 377 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; mode 383 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0200; mode 389 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; mode 395 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; mode 402 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0644; mode 408 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; mode 415 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; mode 422 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; mode 429 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; mode 436 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; mode 443 drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c mlxsw_hwmon_attr->dev_attr.attr.mode = 0444; mode 101 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c enum thermal_device_mode mode; mode 113 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c enum thermal_device_mode mode; mode 280 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c enum thermal_device_mode *mode) mode 284 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c *mode = thermal->mode; mode 290 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c enum thermal_device_mode mode) mode 296 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c if (mode == THERMAL_DEVICE_ENABLED) mode 303 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c thermal->mode = mode; mode 468 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c enum thermal_device_mode *mode) mode 472 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c *mode = tz->mode; mode 478 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c enum thermal_device_mode mode) mode 485 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c if (mode == THERMAL_DEVICE_ENABLED) mode 492 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c tz->mode = mode; mode 782 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c module_tz->mode = THERMAL_DEVICE_ENABLED; mode 904 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c gearbox_tz->mode = THERMAL_DEVICE_ENABLED; mode 1068 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c thermal->mode = THERMAL_DEVICE_ENABLED; mode 1585 drivers/net/ethernet/mellanox/mlxsw/reg.h enum mlxsw_reg_spmlr_learn_mode mode) mode 1590 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_spmlr_learn_mode_set(payload, mode); mode 10092 drivers/net/ethernet/mellanox/mlxsw/reg.h MLXSW_ITEM32(reg, sbpr, mode, 0x08, 0, 4); mode 10096 drivers/net/ethernet/mellanox/mlxsw/reg.h enum mlxsw_reg_sbpr_mode mode, u32 size, mode 10102 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_sbpr_mode_set(payload, mode); mode 2670 drivers/net/ethernet/mellanox/mlxsw/spectrum.c u8 width, unsigned long *mode) mode 2677 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mode); mode 3054 drivers/net/ethernet/mellanox/mlxsw/spectrum.c unsigned long *mode) mode 3059 drivers/net/ethernet/mellanox/mlxsw/spectrum.c __set_bit(link_mode->mask_ethtool[i], mode); mode 3064 drivers/net/ethernet/mellanox/mlxsw/spectrum.c u8 width, unsigned long *mode) mode 3073 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mode); mode 3108 drivers/net/ethernet/mellanox/mlxsw/spectrum.c const unsigned long *mode) mode 3114 drivers/net/ethernet/mellanox/mlxsw/spectrum.c if (test_bit(link_mode->mask_ethtool[i], mode)) mode 293 drivers/net/ethernet/mellanox/mlxsw/spectrum.h u8 width, unsigned long *mode); mode 17 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c enum mlxsw_reg_sbpr_mode mode; mode 172 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c enum mlxsw_reg_sbpr_mode mode, mode 181 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c mlxsw_reg_sbpr_pack(sbpr_pl, des->pool, des->dir, mode, mode 190 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c pr->mode = mode; mode 412 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c .mode = _mode, \ mode 418 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c .mode = _mode, \ mode 484 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c err = mlxsw_sp_sb_pr_write(mlxsw_sp, i, prs[i].mode, mode 488 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c err = mlxsw_sp_sb_pr_write(mlxsw_sp, i, prs[i].mode, mode 635 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c return pr->mode == MLXSW_REG_SBPR_MODE_STATIC; mode 998 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c pool_info->threshold_type = (enum devlink_sb_threshold_type) pr->mode; mode 1011 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c enum mlxsw_reg_sbpr_mode mode; mode 1013 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c mode = (enum mlxsw_reg_sbpr_mode) threshold_type; mode 1021 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c if (pr->freeze_mode && pr->mode != mode) { mode 1031 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c return mlxsw_sp_sb_pr_write(mlxsw_sp, pool_index, mode, mode 1042 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c if (pr->mode == MLXSW_REG_SBPR_MODE_DYNAMIC) mode 1053 drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c if (pr->mode == MLXSW_REG_SBPR_MODE_DYNAMIC) { mode 18 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c u8 mode) mode 20 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c return (mode != (DCB_CAP_DCBX_HOST | DCB_CAP_DCBX_VER_IEEE)) ? 1 : 0; mode 970 drivers/net/ethernet/mellanox/mlxsw/switchx2.c enum mlxsw_reg_spmlr_learn_mode mode) mode 975 drivers/net/ethernet/mellanox/mlxsw/switchx2.c mlxsw_reg_spmlr_pack(spmlr_pl, mlxsw_sx_port->local_port, mode); mode 370 drivers/net/ethernet/mscc/ocelot.c int speed, atop_wm, mode = 0; mode 381 drivers/net/ethernet/mscc/ocelot.c mode = DEV_MAC_MODE_CFG_GIGA_MODE_ENA; mode 385 drivers/net/ethernet/mscc/ocelot.c mode = DEV_MAC_MODE_CFG_GIGA_MODE_ENA; mode 400 drivers/net/ethernet/mscc/ocelot.c mode, DEV_MAC_MODE_CFG); mode 33 drivers/net/ethernet/mscc/ocelot_police.c enum mscc_qos_rate_mode mode; mode 57 drivers/net/ethernet/mscc/ocelot_police.c switch (conf->mode) { mode 60 drivers/net/ethernet/mscc/ocelot_police.c if (conf->mode == MSCC_QOS_RATE_MODE_LINE) { mode 184 drivers/net/ethernet/mscc/ocelot_police.c pp.mode = MSCC_QOS_RATE_MODE_DATA; mode 214 drivers/net/ethernet/mscc/ocelot_police.c pp.mode = MSCC_QOS_RATE_MODE_DISABLED; mode 1011 drivers/net/ethernet/neterion/s2io.c int mode; mode 1014 drivers/net/ethernet/neterion/s2io.c mode = (u8)GET_PCI_MODE(val64); mode 1018 drivers/net/ethernet/neterion/s2io.c return mode; mode 1045 drivers/net/ethernet/neterion/s2io.c int mode; mode 1050 drivers/net/ethernet/neterion/s2io.c mode = (u8)GET_PCI_MODE(val64); mode 1055 drivers/net/ethernet/neterion/s2io.c config->bus_speed = bus_speed[mode]; mode 1060 drivers/net/ethernet/neterion/s2io.c return mode; mode 1063 drivers/net/ethernet/neterion/s2io.c switch (mode) { mode 1090 drivers/net/ethernet/neterion/s2io.c mode = -1; mode 1096 drivers/net/ethernet/neterion/s2io.c return mode; mode 2112 drivers/net/ethernet/neterion/s2io.c int mode; mode 2115 drivers/net/ethernet/neterion/s2io.c mode = s2io_verify_pci_mode(sp); mode 2157 drivers/net/ethernet/neterion/s2io.c mode != PCI_MODE_PCI_33) { mode 7663 drivers/net/ethernet/neterion/s2io.c int mode; mode 7886 drivers/net/ethernet/neterion/s2io.c mode = s2io_verify_pci_mode(sp); mode 7887 drivers/net/ethernet/neterion/s2io.c if (mode < 0) { mode 8029 drivers/net/ethernet/neterion/s2io.c mode = s2io_print_pci_mode(sp); mode 8030 drivers/net/ethernet/neterion/s2io.c if (mode < 0) { mode 239 drivers/net/ethernet/netronome/nfp/abm/main.c static int nfp_abm_eswitch_mode_set(struct nfp_app *app, u16 mode) mode 243 drivers/net/ethernet/netronome/nfp/abm/main.c if (abm->eswitch_mode == mode) mode 246 drivers/net/ethernet/netronome/nfp/abm/main.c switch (mode) { mode 80 drivers/net/ethernet/netronome/nfp/bpf/jit.c u8 mode, u8 xfer, u8 areg, u8 breg, u8 size, enum cmd_ctx_swap ctx, mode 94 drivers/net/ethernet/netronome/nfp/bpf/jit.c FIELD_PREP(OP_CMD_MODE, mode); mode 100 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_cmd_any(struct nfp_prog *nfp_prog, enum cmd_tgt_map op, u8 mode, u8 xfer, mode 122 drivers/net/ethernet/netronome/nfp/bpf/jit.c __emit_cmd(nfp_prog, op, mode, xfer, reg.areg, reg.breg, size, ctx, mode 127 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_cmd(struct nfp_prog *nfp_prog, enum cmd_tgt_map op, u8 mode, u8 xfer, mode 130 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_cmd_any(nfp_prog, op, mode, xfer, lreg, rreg, size, ctx, false); mode 134 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_cmd_indir(struct nfp_prog *nfp_prog, enum cmd_tgt_map op, u8 mode, u8 xfer, mode 137 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_cmd_any(nfp_prog, op, mode, xfer, lreg, rreg, size, ctx, true); mode 900 drivers/net/ethernet/netronome/nfp/bpf/jit.c enum cmd_mode mode) mode 911 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_cmd(nfp_prog, CMD_TGT_READ32_SWAP, mode, 0, mode 1025 drivers/net/ethernet/netronome/nfp/flower/action.c if (ip_tun->mode & ~NFP_FL_SUPPORTED_TUNNEL_INFO_FLAGS) { mode 145 drivers/net/ethernet/netronome/nfp/nfp_app.h int (*eswitch_mode_set)(struct nfp_app *app, u16 mode); mode 371 drivers/net/ethernet/netronome/nfp/nfp_app.h static inline int nfp_app_eswitch_mode_get(struct nfp_app *app, u16 *mode) mode 376 drivers/net/ethernet/netronome/nfp/nfp_app.h *mode = app->type->eswitch_mode_get(app); mode 381 drivers/net/ethernet/netronome/nfp/nfp_app.h static inline int nfp_app_eswitch_mode_set(struct nfp_app *app, u16 mode) mode 385 drivers/net/ethernet/netronome/nfp/nfp_app.h return app->type->eswitch_mode_set(app, mode); mode 329 drivers/net/ethernet/netronome/nfp/nfp_asm.h static inline swreg __enc_swreg_lm(u8 id, enum nfp_bpf_lm_mode mode, u8 off) mode 331 drivers/net/ethernet/netronome/nfp/nfp_asm.h WARN_ON(id > 3 || (off && mode != NN_LM_MOD_NONE)); mode 335 drivers/net/ethernet/netronome/nfp/nfp_asm.h FIELD_PREP(NN_REG_LM_MOD, mode) | mode 156 drivers/net/ethernet/netronome/nfp/nfp_devlink.c static int nfp_devlink_eswitch_mode_get(struct devlink *devlink, u16 *mode) mode 160 drivers/net/ethernet/netronome/nfp/nfp_devlink.c return nfp_app_eswitch_mode_get(pf->app, mode); mode 163 drivers/net/ethernet/netronome/nfp/nfp_devlink.c static int nfp_devlink_eswitch_mode_set(struct devlink *devlink, u16 mode, mode 170 drivers/net/ethernet/netronome/nfp/nfp_devlink.c ret = nfp_app_eswitch_mode_set(pf->app, mode); mode 43 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000/nfp6000.h static inline int nfp_cppat_mu_locality_lsb(int mode, bool addr40) mode 45 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000/nfp6000.h switch (mode) { mode 191 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_arm.h #define NFP_ARM_GCSR_EXPA_CSR(mode, target, token, is_64, action, address) \ mode 192 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_arm.h (((mode) ? NFP_ARM_GCSR_EXPA_BAR_TYPE_EXPL : \ mode 201 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_arm.h #define NFP_ARM_GCSR_BULK_CSR(mode, target, token, is_64, address) \ mode 202 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_arm.h (((mode) ? NFP_ARM_GCSR_BULK_BAR_TYPE_EXPA : \ mode 248 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c unsigned int mode, addr40; mode 253 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c mode = NFP_IMB_TGTADDRESSMODECFG_MODE_of(imbcppat); mode 256 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c res = nfp_cppat_mu_locality_lsb(mode, addr40); mode 197 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.h nfp_eth_set_fec(struct nfp_cpp *cpp, unsigned int idx, enum nfp_eth_fec mode); mode 214 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.h int __nfp_eth_set_aneg(struct nfp_nsp *nsp, enum nfp_eth_aneg mode); mode 512 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c int __nfp_eth_set_aneg(struct nfp_nsp *nsp, enum nfp_eth_aneg mode) mode 515 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c NSP_ETH_STATE_ANEG, mode, mode 529 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c static int __nfp_eth_set_fec(struct nfp_nsp *nsp, enum nfp_eth_fec mode) mode 532 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c NSP_ETH_STATE_FEC, mode, mode 548 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c nfp_eth_set_fec(struct nfp_cpp *cpp, unsigned int idx, enum nfp_eth_fec mode) mode 557 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c err = __nfp_eth_set_fec(nsp, mode); mode 344 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_target.c int mode, bool addr40, int isld1, int isld0) mode 352 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_target.c switch (mode) { mode 432 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_target.c int mode, bool addr40, int isld1, int isld0) mode 437 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_target.c ret = nfp_decode_basic(addr, &v, cpp_tgt, mode, addr40, isld1, isld0); mode 476 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_target.c int mode, bool addr40, int isld1, int isld0) mode 489 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_target.c switch (mode) { mode 497 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_target.c mode, addr40, isld1, isld0); mode 508 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_target.c mode, addr40, isld1, isld0); mode 534 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_target.c mode, addr40, isld1, isld0); mode 555 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_target.c mode, addr40, isld1, isld0); mode 570 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_target.c static int nfp_encode_mu(u64 *addr, int dest_island, int mode, mode 580 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_target.c locality_lsb = nfp_cppat_mu_locality_lsb(mode, addr40); mode 587 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_target.c switch (mode) { mode 673 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_target.c int mode, bool addr40, int isld1, int isld0) mode 683 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_target.c return nfp_encode_basic(addr, dest_island, cpp_tgt, mode, mode 687 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_target.c return nfp_encode_mu(addr, dest_island, mode, mode 691 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_target.c if (mode != 1 || addr40) mode 317 drivers/net/ethernet/nxp/lpc_eth.c const char *mode = of_get_property(dev->of_node, mode 319 drivers/net/ethernet/nxp/lpc_eth.c if (mode && !strcmp(mode, "mii")) mode 1012 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c unsigned long mode = 0; mode 1017 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c mode = PCH_GBE_MODE_MII_ETHER; mode 1021 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c mode = PCH_GBE_MODE_MII_ETHER; mode 1025 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c mode = PCH_GBE_MODE_GMII_ETHER; mode 1029 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c mode |= PCH_GBE_MODE_FULL_DUPLEX; mode 1031 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c mode |= PCH_GBE_MODE_HALF_DUPLEX; mode 1032 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c iowrite32(mode, &hw->reg->MODE); mode 356 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c static int netxen_p2_nic_set_promisc(struct netxen_adapter *adapter, u32 mode) mode 387 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (mode == NETXEN_NIU_PROMISC_MODE) mode 392 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (mode == NETXEN_NIU_ALLMULTI_MODE) mode 654 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c u32 mode = VPORT_MISS_MODE_DROP; mode 668 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c mode = VPORT_MISS_MODE_ACCEPT_ALL; mode 674 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c mode = VPORT_MISS_MODE_ACCEPT_MULTI; mode 684 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c adapter->set_promisc(adapter, mode); mode 696 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c static int netxen_p3_nic_set_promisc(struct netxen_adapter *adapter, u32 mode) mode 709 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c req.words[0] = cpu_to_le64(mode); mode 573 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c u32 mode) mode 575 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c NXWR32(adapter, NETXEN_INTR_MODE_REG, mode); mode 2786 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c .attr = { .name = "bridged_mode", .mode = 0644 }, mode 2818 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c .attr = { .name = "diag_mode", .mode = 0644 }, mode 2963 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c .attr = { .name = "crb", .mode = 0644 }, mode 2970 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c .attr = { .name = "mem", .mode = 0644 }, mode 3099 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c .attr = { .name = "dimm", .mode = 0644 }, mode 519 drivers/net/ethernet/qlogic/qed/qed.h enum qed_ufp_mode mode; mode 1570 drivers/net/ethernet/qlogic/qed/qed_dcbx.c u8 mode = 0; mode 1577 drivers/net/ethernet/qlogic/qed/qed_dcbx.c mode |= DCB_CAP_DCBX_VER_IEEE; mode 1579 drivers/net/ethernet/qlogic/qed/qed_dcbx.c mode |= DCB_CAP_DCBX_VER_CEE; mode 1581 drivers/net/ethernet/qlogic/qed/qed_dcbx.c mode |= DCB_CAP_DCBX_STATIC; mode 1583 drivers/net/ethernet/qlogic/qed/qed_dcbx.c DP_VERBOSE(hwfn, QED_MSG_DCB, "dcb mode = %d\n", mode); mode 1586 drivers/net/ethernet/qlogic/qed/qed_dcbx.c return mode; mode 1833 drivers/net/ethernet/qlogic/qed/qed_dcbx.c static u8 qed_dcbnl_setdcbx(struct qed_dev *cdev, u8 mode) mode 1840 drivers/net/ethernet/qlogic/qed/qed_dcbx.c DP_VERBOSE(hwfn, QED_MSG_DCB, "new mode = %x\n", mode); mode 1842 drivers/net/ethernet/qlogic/qed/qed_dcbx.c if (!(mode & DCB_CAP_DCBX_VER_IEEE) && mode 1843 drivers/net/ethernet/qlogic/qed/qed_dcbx.c !(mode & DCB_CAP_DCBX_VER_CEE) && !(mode & DCB_CAP_DCBX_STATIC)) { mode 1854 drivers/net/ethernet/qlogic/qed/qed_dcbx.c if (mode & DCB_CAP_DCBX_VER_CEE) { mode 1859 drivers/net/ethernet/qlogic/qed/qed_dcbx.c if (mode & DCB_CAP_DCBX_VER_IEEE) { mode 1864 drivers/net/ethernet/qlogic/qed/qed_dcbx.c if (mode & DCB_CAP_DCBX_STATIC) { mode 2202 drivers/net/ethernet/qlogic/qed/qed_debug.c enum dbg_bus_frame_modes mode) mode 2204 drivers/net/ethernet/qlogic/qed/qed_debug.c qed_wr(p_hwfn, p_ptt, DBG_REG_FRAMING_MODE, (u8)mode); mode 2430 drivers/net/ethernet/qlogic/qed/qed_debug.c eval_mode = GET_FIELD(reg_data->mode.data, mode 2433 drivers/net/ethernet/qlogic/qed/qed_debug.c GET_FIELD(reg_data->mode.data, mode 2692 drivers/net/ethernet/qlogic/qed/qed_debug.c eval_mode = GET_FIELD(cond_hdr->mode.data, mode 2696 drivers/net/ethernet/qlogic/qed/qed_debug.c GET_FIELD(cond_hdr->mode.data, mode 2933 drivers/net/ethernet/qlogic/qed/qed_debug.c eval_mode = GET_FIELD(reg_data->mode.data, mode 2936 drivers/net/ethernet/qlogic/qed/qed_debug.c GET_FIELD(reg_data->mode.data, mode 3176 drivers/net/ethernet/qlogic/qed/qed_debug.c eval_mode = GET_FIELD(cond_hdr->mode.data, mode 3180 drivers/net/ethernet/qlogic/qed/qed_debug.c GET_FIELD(cond_hdr->mode.data, mode 4257 drivers/net/ethernet/qlogic/qed/qed_debug.c eval_mode = GET_FIELD(reg->mode.data, mode 4261 drivers/net/ethernet/qlogic/qed/qed_debug.c GET_FIELD(reg->mode.data, mode 4472 drivers/net/ethernet/qlogic/qed/qed_debug.c eval_mode = GET_FIELD(cond_hdr->mode.data, mode 4476 drivers/net/ethernet/qlogic/qed/qed_debug.c GET_FIELD(cond_hdr->mode.data, mode 5587 drivers/net/ethernet/qlogic/qed/qed_debug.c eval_mode = GET_FIELD(reg_data->mode.data, mode 5589 drivers/net/ethernet/qlogic/qed/qed_debug.c modes_buf_offset = GET_FIELD(reg_data->mode.data, mode 862 drivers/net/ethernet/qlogic/qed/qed_dev.c u32 mode; mode 925 drivers/net/ethernet/qlogic/qed/qed_dev.c qed_wr(p_hwfn, p_ptt, addr, p_details->mode); mode 961 drivers/net/ethernet/qlogic/qed/qed_dev.c filter_details.mode = filter_prot_type ? 1 : 0; mode 4681 drivers/net/ethernet/qlogic/qed/qed_dev.c switch (p_chain->mode) { mode 4833 drivers/net/ethernet/qlogic/qed/qed_dev.c enum qed_chain_mode mode, mode 4843 drivers/net/ethernet/qlogic/qed/qed_dev.c if (mode == QED_CHAIN_MODE_SINGLE) mode 4846 drivers/net/ethernet/qlogic/qed/qed_dev.c page_cnt = QED_CHAIN_PAGE_CNT(num_elems, elem_size, mode); mode 4854 drivers/net/ethernet/qlogic/qed/qed_dev.c intended_use, mode, cnt_type, num_elems, elem_size); mode 4859 drivers/net/ethernet/qlogic/qed/qed_dev.c mode, cnt_type); mode 4861 drivers/net/ethernet/qlogic/qed/qed_dev.c switch (mode) { mode 323 drivers/net/ethernet/qlogic/qed/qed_dev_api.h enum qed_chain_mode mode, mode 2016 drivers/net/ethernet/qlogic/qed/qed_hsi.h struct dbg_mode_hdr mode; mode 2062 drivers/net/ethernet/qlogic/qed/qed_hsi.h struct dbg_mode_hdr mode; /* Mode header */ mode 2105 drivers/net/ethernet/qlogic/qed/qed_hsi.h struct dbg_mode_hdr mode; /* Mode header */ mode 2133 drivers/net/ethernet/qlogic/qed/qed_hsi.h struct dbg_mode_hdr mode; /* Mode header */ mode 2297 drivers/net/ethernet/qlogic/qed/qed_hsi.h u8 mode; mode 10114 drivers/net/ethernet/qlogic/qed/qed_hsi.h u8 mode; mode 907 drivers/net/ethernet/qlogic/qed/qed_iwarp.c p_mpa_ramrod->mode = ep->mpa_rev; mode 1989 drivers/net/ethernet/qlogic/qed/qed_l2.c qed_arfs_mode_to_hsi(enum qed_filter_config_mode mode) mode 1991 drivers/net/ethernet/qlogic/qed/qed_l2.c if (mode == QED_FILTER_CONFIG_MODE_5_TUPLE) mode 1993 drivers/net/ethernet/qlogic/qed/qed_l2.c if (mode == QED_FILTER_CONFIG_MODE_IP_DEST) mode 1995 drivers/net/ethernet/qlogic/qed/qed_l2.c if (mode == QED_FILTER_CONFIG_MODE_IP_SRC) mode 2004 drivers/net/ethernet/qlogic/qed/qed_l2.c if (p_cfg_params->mode != QED_FILTER_CONFIG_MODE_DISABLE) { mode 2010 drivers/net/ethernet/qlogic/qed/qed_l2.c qed_arfs_mode_to_hsi(p_cfg_params->mode)); mode 2018 drivers/net/ethernet/qlogic/qed/qed_l2.c (u32)p_cfg_params->mode); mode 2801 drivers/net/ethernet/qlogic/qed/qed_l2.c enum qed_filter_config_mode mode) mode 2811 drivers/net/ethernet/qlogic/qed/qed_l2.c arfs_config_params.mode = mode; mode 194 drivers/net/ethernet/qlogic/qed/qed_l2.h enum qed_filter_config_mode mode; mode 2468 drivers/net/ethernet/qlogic/qed/qed_main.c static int qed_set_led(struct qed_dev *cdev, enum qed_led_mode mode) mode 2478 drivers/net/ethernet/qlogic/qed/qed_main.c status = qed_mcp_set_led(hwfn, ptt, mode); mode 1725 drivers/net/ethernet/qlogic/qed/qed_mcp.c p_hwfn->ufp_info.mode = QED_UFP_MODE_ETS; mode 1727 drivers/net/ethernet/qlogic/qed/qed_mcp.c p_hwfn->ufp_info.mode = QED_UFP_MODE_VNIC_BW; mode 1729 drivers/net/ethernet/qlogic/qed/qed_mcp.c p_hwfn->ufp_info.mode = QED_UFP_MODE_UNKNOWN; mode 1754 drivers/net/ethernet/qlogic/qed/qed_mcp.c p_hwfn->ufp_info.mode, p_hwfn->ufp_info.tc, mode 1763 drivers/net/ethernet/qlogic/qed/qed_mcp.c if (p_hwfn->ufp_info.mode == QED_UFP_MODE_VNIC_BW) { mode 1769 drivers/net/ethernet/qlogic/qed/qed_mcp.c } else if (p_hwfn->ufp_info.mode == QED_UFP_MODE_ETS) { mode 2755 drivers/net/ethernet/qlogic/qed/qed_mcp.c struct qed_ptt *p_ptt, enum qed_led_mode mode) mode 2760 drivers/net/ethernet/qlogic/qed/qed_mcp.c switch (mode) { mode 2771 drivers/net/ethernet/qlogic/qed/qed_mcp.c DP_NOTICE(p_hwfn, "Invalid LED mode %d\n", mode); mode 555 drivers/net/ethernet/qlogic/qed/qed_mcp.h enum qed_led_mode mode); mode 224 drivers/net/ethernet/qlogic/qed/qed_sriov.c enum qed_iov_validate_q_mode mode, mode 229 drivers/net/ethernet/qlogic/qed/qed_sriov.c if (mode == QED_IOV_VALIDATE_Q_NA) mode 243 drivers/net/ethernet/qlogic/qed/qed_sriov.c return mode == QED_IOV_VALIDATE_Q_ENABLE; mode 247 drivers/net/ethernet/qlogic/qed/qed_sriov.c return mode == QED_IOV_VALIDATE_Q_DISABLE; mode 253 drivers/net/ethernet/qlogic/qed/qed_sriov.c enum qed_iov_validate_q_mode mode) mode 263 drivers/net/ethernet/qlogic/qed/qed_sriov.c return qed_iov_validate_queue_mode(p_hwfn, p_vf, rx_qid, mode, false); mode 269 drivers/net/ethernet/qlogic/qed/qed_sriov.c enum qed_iov_validate_q_mode mode) mode 279 drivers/net/ethernet/qlogic/qed/qed_sriov.c return qed_iov_validate_queue_mode(p_hwfn, p_vf, tx_qid, mode, true); mode 57 drivers/net/ethernet/qlogic/qede/qede_filter.c enum qed_filter_config_mode mode; mode 110 drivers/net/ethernet/qlogic/qede/qede_filter.c enum qed_filter_config_mode mode; mode 181 drivers/net/ethernet/qlogic/qede/qede_filter.c edev->arfs->mode == QED_FILTER_CONFIG_MODE_DISABLE) { mode 183 drivers/net/ethernet/qlogic/qede/qede_filter.c fltr->tuple.mode); mode 184 drivers/net/ethernet/qlogic/qede/qede_filter.c edev->arfs->mode = fltr->tuple.mode; mode 202 drivers/net/ethernet/qlogic/qede/qede_filter.c edev->arfs->mode != QED_FILTER_CONFIG_MODE_DISABLE) { mode 203 drivers/net/ethernet/qlogic/qede/qede_filter.c enum qed_filter_config_mode mode; mode 205 drivers/net/ethernet/qlogic/qede/qede_filter.c mode = QED_FILTER_CONFIG_MODE_DISABLE; mode 206 drivers/net/ethernet/qlogic/qede/qede_filter.c edev->ops->configure_arfs_searcher(edev->cdev, mode); mode 207 drivers/net/ethernet/qlogic/qede/qede_filter.c edev->arfs->mode = QED_FILTER_CONFIG_MODE_DISABLE; mode 538 drivers/net/ethernet/qlogic/qede/qede_filter.c n->tuple.mode = QED_FILTER_CONFIG_MODE_5_TUPLE; mode 1612 drivers/net/ethernet/qlogic/qede/qede_filter.c t->mode = QED_FILTER_CONFIG_MODE_5_TUPLE; mode 1615 drivers/net/ethernet/qlogic/qede/qede_filter.c t->mode = QED_FILTER_CONFIG_MODE_L4_PORT; mode 1618 drivers/net/ethernet/qlogic/qede/qede_filter.c t->mode = QED_FILTER_CONFIG_MODE_IP_SRC; mode 1621 drivers/net/ethernet/qlogic/qede/qede_filter.c t->mode = QED_FILTER_CONFIG_MODE_IP_DEST; mode 1644 drivers/net/ethernet/qlogic/qede/qede_filter.c t->mode = QED_FILTER_CONFIG_MODE_5_TUPLE; mode 1648 drivers/net/ethernet/qlogic/qede/qede_filter.c t->mode = QED_FILTER_CONFIG_MODE_L4_PORT; mode 1652 drivers/net/ethernet/qlogic/qede/qede_filter.c t->mode = QED_FILTER_CONFIG_MODE_IP_SRC; mode 1656 drivers/net/ethernet/qlogic/qede/qede_filter.c t->mode = QED_FILTER_CONFIG_MODE_IP_DEST; mode 1964 drivers/net/ethernet/qlogic/qede/qede_filter.c if ((edev->arfs->filter_count && edev->arfs->mode != t.mode) || mode 1968 drivers/net/ethernet/qlogic/qede/qede_filter.c t.mode, edev->arfs->mode, edev->arfs->filter_count); mode 2034 drivers/net/ethernet/qlogic/qede/qede_filter.c edev->arfs->mode != t->mode) { mode 2037 drivers/net/ethernet/qlogic/qede/qede_filter.c t->mode, edev->arfs->filter_count); mode 1064 drivers/net/ethernet/qlogic/qede/qede_main.c bool is_vf, enum qede_probe_mode mode) mode 1081 drivers/net/ethernet/qlogic/qede/qede_main.c probe_params.recov_in_prog = (mode == QEDE_PROBE_RECOVERY); mode 1109 drivers/net/ethernet/qlogic/qede/qede_main.c if (mode != QEDE_PROBE_RECOVERY) { mode 1130 drivers/net/ethernet/qlogic/qede/qede_main.c rc = qede_rdma_dev_add(edev, (mode == QEDE_PROBE_RECOVERY)); mode 1134 drivers/net/ethernet/qlogic/qede/qede_main.c if (mode != QEDE_PROBE_RECOVERY) { mode 1154 drivers/net/ethernet/qlogic/qede/qede_main.c qede_ptp_enable(edev, (mode == QEDE_PROBE_NORMAL)); mode 1169 drivers/net/ethernet/qlogic/qede/qede_main.c qede_rdma_dev_remove(edev, (mode == QEDE_PROBE_RECOVERY)); mode 1208 drivers/net/ethernet/qlogic/qede/qede_main.c static void __qede_remove(struct pci_dev *pdev, enum qede_remove_mode mode) mode 1224 drivers/net/ethernet/qlogic/qede/qede_main.c qede_rdma_dev_remove(edev, (mode == QEDE_REMOVE_RECOVERY)); mode 1226 drivers/net/ethernet/qlogic/qede/qede_main.c if (mode != QEDE_REMOVE_RECOVERY) { mode 1250 drivers/net/ethernet/qlogic/qede/qede_main.c if (mode != QEDE_REMOVE_RECOVERY) mode 2166 drivers/net/ethernet/qlogic/qede/qede_main.c static void qede_unload(struct qede_dev *edev, enum qede_unload_mode mode, mode 2179 drivers/net/ethernet/qlogic/qede/qede_main.c if (mode != QEDE_UNLOAD_RECOVERY) mode 2188 drivers/net/ethernet/qlogic/qede/qede_main.c if (mode != QEDE_UNLOAD_RECOVERY) { mode 2217 drivers/net/ethernet/qlogic/qede/qede_main.c if (mode == QEDE_UNLOAD_RECOVERY) mode 2227 drivers/net/ethernet/qlogic/qede/qede_main.c if (mode != QEDE_UNLOAD_RECOVERY) mode 2241 drivers/net/ethernet/qlogic/qede/qede_main.c static int qede_load(struct qede_dev *edev, enum qede_load_mode mode, mode 2287 drivers/net/ethernet/qlogic/qede/qede_main.c rc = qede_start_queues(edev, mode != QEDE_LOAD_RELOAD); mode 2051 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h static inline int qlcnic_set_lb_mode(struct qlcnic_adapter *adapter, u8 mode) mode 2053 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h return adapter->ahw->hw_ops->config_loopback(adapter, mode); mode 2056 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h static inline int qlcnic_clear_lb_mode(struct qlcnic_adapter *adapter, u8 mode) mode 2058 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h return adapter->ahw->hw_ops->clear_loopback(adapter, mode); mode 2062 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h u32 mode) mode 2064 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h return adapter->ahw->hw_ops->config_promisc_mode(adapter, mode); mode 1723 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c int qlcnic_83xx_nic_set_promisc(struct qlcnic_adapter *adapter, u32 mode) mode 1745 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c mode = VPORT_MISS_MODE_ACCEPT_ALL; mode 1747 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c cmd->req.arg[1] = mode | temp; mode 1759 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c int qlcnic_83xx_loopback_test(struct net_device *netdev, u8 mode) mode 1784 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c mode == QLCNIC_ILB_MODE ? "internal" : "external"); mode 1791 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c ret = qlcnic_83xx_set_lb_mode(adapter, mode); mode 1809 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c qlcnic_83xx_clear_lb_mode(adapter, mode); mode 1814 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c ret = qlcnic_do_lb_test(adapter, mode); mode 1816 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c qlcnic_83xx_clear_lb_mode(adapter, mode); mode 1841 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c static int qlcnic_83xx_set_lb_mode(struct qlcnic_adapter *adapter, u8 mode) mode 1866 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c if (mode == QLCNIC_ILB_MODE) mode 1868 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c if (mode == QLCNIC_ELB_MODE) mode 1900 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c qlcnic_83xx_clear_lb_mode(adapter, mode); mode 1910 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c static int qlcnic_83xx_clear_lb_mode(struct qlcnic_adapter *adapter, u8 mode) mode 1920 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c if (mode == QLCNIC_ILB_MODE) mode 1922 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c if (mode == QLCNIC_ELB_MODE) mode 1975 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c int mode) mode 1988 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c if (mode == QLCNIC_IP_UP) mode 2007 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c (mode == QLCNIC_IP_UP) ? "Add" : "Remove", ip); mode 2012 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c int qlcnic_83xx_config_hw_lro(struct qlcnic_adapter *adapter, int mode) mode 2019 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c lro_bit_mask = (mode ? (BIT_0 | BIT_1 | BIT_2 | BIT_3) : 0); mode 157 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c u8 mode, int lock) mode 169 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c val |= mode << 7; mode 170 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c if (mode) mode 1042 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c int qlcnic_do_lb_test(struct qlcnic_adapter *adapter, u8 mode) mode 1078 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c if (mode != QLCNIC_ILB_MODE) mode 1086 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c static int qlcnic_loopback_test(struct net_device *netdev, u8 mode) mode 1097 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c return qlcnic_83xx_loopback_test(netdev, mode); mode 1106 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c mode == QLCNIC_ILB_MODE ? "internal" : "external"); mode 1121 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ret = qlcnic_set_lb_mode(adapter, mode); mode 1140 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ret = qlcnic_do_lb_test(adapter, mode); mode 1142 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c qlcnic_clear_lb_mode(adapter, mode); mode 541 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c u32 mode = VPORT_MISS_MODE_DROP; mode 552 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c mode = VPORT_MISS_MODE_ACCEPT_ALL; mode 555 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c mode = VPORT_MISS_MODE_ACCEPT_MULTI; mode 567 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c mode = VPORT_MISS_MODE_ACCEPT_ALL; mode 574 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (mode == VPORT_MISS_MODE_ACCEPT_ALL && mode 585 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c qlcnic_nic_set_promisc(adapter, mode); mode 601 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int qlcnic_82xx_nic_set_promisc(struct qlcnic_adapter *adapter, u32 mode) mode 614 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c req.words[0] = cpu_to_le64(mode); mode 725 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int qlcnic_82xx_set_lb_mode(struct qlcnic_adapter *adapter, u8 mode) mode 727 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (qlcnic_set_fw_loopback(adapter, mode)) mode 740 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int qlcnic_82xx_clear_lb_mode(struct qlcnic_adapter *adapter, u8 mode) mode 744 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c mode = VPORT_MISS_MODE_DROP; mode 748 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c mode = VPORT_MISS_MODE_ACCEPT_ALL; mode 750 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c mode = VPORT_MISS_MODE_ACCEPT_MULTI; mode 752 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c qlcnic_nic_set_promisc(adapter, mode); mode 1549 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c u32 mode = VPORT_MISS_MODE_DROP; mode 1556 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c mode = VPORT_MISS_MODE_ACCEPT_ALL; mode 1559 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c mode = VPORT_MISS_MODE_ACCEPT_MULTI; mode 1574 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c mode = VPORT_MISS_MODE_ACCEPT_ALL; mode 1582 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c if (mode == VPORT_MISS_MODE_ACCEPT_ALL && mode 1593 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c qlcnic_nic_set_promisc(adapter, mode); mode 1339 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c u8 mode = vp->vlan_mode; mode 1351 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c if (qlcnic_84xx_check(adapter) && mode == QLC_PVID_MODE) mode 1354 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c switch (mode) { mode 1356 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c cmd->rsp.arg[1] = mode | 1 << 8; mode 1360 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c cmd->rsp.arg[1] = mode | 1 << 8 | vp->pvid << 16; mode 1180 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "bridged_mode", .mode = 0644 }, mode 1186 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "diag_mode", .mode = 0644 }, mode 1192 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "beacon", .mode = 0644 }, mode 1198 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "crb", .mode = 0644 }, mode 1205 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "mem", .mode = 0644 }, mode 1212 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "npar_config", .mode = 0644 }, mode 1219 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "pci_config", .mode = 0644 }, mode 1226 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "port_stats", .mode = 0644 }, mode 1233 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "esw_stats", .mode = 0644 }, mode 1240 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "esw_config", .mode = 0644 }, mode 1247 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "pm_config", .mode = 0644 }, mode 1254 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c .attr = { .name = "flash", .mode = 0644 }, mode 119 drivers/net/ethernet/qualcomm/qca_debug.c qca->spi_dev->mode); mode 939 drivers/net/ethernet/qualcomm/qca_spi.c spi->mode = SPI_MODE_3; mode 113 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c int mode = RMNET_EPMODE_VND; mode 150 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c port->rmnet_mode = mode; mode 198 drivers/net/ethernet/realtek/atp.c static void write_packet(long ioaddr, int length, unsigned char *packet, int pad, int mode); mode 94 drivers/net/ethernet/rocker/rocker.h u8 mode; mode 1423 drivers/net/ethernet/rocker/rocker_main.c static struct rocker_world_ops *rocker_world_ops_find(u8 mode) mode 1428 drivers/net/ethernet/rocker/rocker_main.c if (rocker_world_ops[i]->mode == mode) mode 1433 drivers/net/ethernet/rocker/rocker_main.c static int rocker_world_init(struct rocker *rocker, u8 mode) mode 1438 drivers/net/ethernet/rocker/rocker_main.c wops = rocker_world_ops_find(mode); mode 1441 drivers/net/ethernet/rocker/rocker_main.c mode); mode 1469 drivers/net/ethernet/rocker/rocker_main.c u8 mode; mode 1472 drivers/net/ethernet/rocker/rocker_main.c err = rocker_cmd_get_port_settings_mode(rocker_port, &mode); mode 1478 drivers/net/ethernet/rocker/rocker_main.c if (rocker->wops->mode != mode) { mode 1484 drivers/net/ethernet/rocker/rocker_main.c return rocker_world_init(rocker, mode); mode 2809 drivers/net/ethernet/rocker/rocker_ofdpa.c .mode = ROCKER_PORT_MODE_OF_DPA, mode 330 drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h void (*pmt)(void __iomem *ioaddr, unsigned long mode); mode 490 drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h unsigned int mode; mode 83 drivers/net/ethernet/samsung/sxgbe/sxgbe_core.c static void sxgbe_core_pmt(void __iomem *ioaddr, unsigned long mode) mode 214 drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.c int mode, int end) mode 250 drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.h int mode, int end); mode 327 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c priv->use_riwt, priv->mode, mode 108 drivers/net/ethernet/seeq/sgiseeq.c unsigned char mode; mode 146 drivers/net/ethernet/seeq/sgiseeq.c sregs->rstat = sp->mode | RSTAT_GO_BITS; mode 660 drivers/net/ethernet/seeq/sgiseeq.c unsigned char oldmode = sp->mode; mode 663 drivers/net/ethernet/seeq/sgiseeq.c sp->mode = SEEQ_RCMD_RANY; mode 665 drivers/net/ethernet/seeq/sgiseeq.c sp->mode = SEEQ_RCMD_RBMCAST; mode 667 drivers/net/ethernet/seeq/sgiseeq.c sp->mode = SEEQ_RCMD_RBCAST; mode 673 drivers/net/ethernet/seeq/sgiseeq.c if (oldmode != sp->mode) mode 768 drivers/net/ethernet/seeq/sgiseeq.c sp->mode = SEEQ_RCMD_RBCAST; mode 2075 drivers/net/ethernet/sfc/ef10.c unsigned int mode, usecs; mode 2079 drivers/net/ethernet/sfc/ef10.c mode = 3; mode 2082 drivers/net/ethernet/sfc/ef10.c mode = 0; mode 2094 drivers/net/ethernet/sfc/ef10.c MCDI_SET_DWORD(inbuf, SET_EVQ_TMR_IN_TMR_MODE, mode); mode 2103 drivers/net/ethernet/sfc/ef10.c ERF_DD_EVQ_IND_TIMER_MODE, mode, mode 2110 drivers/net/ethernet/sfc/ef10.c EFX_POPULATE_DWORD_3(timer_cmd, ERF_DZ_TC_TIMER_MODE, mode, mode 104 drivers/net/ethernet/sfc/ethtool.c enum efx_led_mode mode = EFX_LED_DEFAULT; mode 108 drivers/net/ethernet/sfc/ethtool.c mode = EFX_LED_ON; mode 111 drivers/net/ethernet/sfc/ethtool.c mode = EFX_LED_OFF; mode 114 drivers/net/ethernet/sfc/ethtool.c mode = EFX_LED_DEFAULT; mode 120 drivers/net/ethernet/sfc/ethtool.c efx->type->set_id_led(efx, mode); mode 271 drivers/net/ethernet/sfc/ethtool.c enum efx_loopback_mode mode, mode 283 drivers/net/ethernet/sfc/ethtool.c EFX_LOOPBACK_NAME(mode, "tx_sent")); mode 287 drivers/net/ethernet/sfc/ethtool.c EFX_LOOPBACK_NAME(mode, "tx_done")); mode 292 drivers/net/ethernet/sfc/ethtool.c EFX_LOOPBACK_NAME(mode, "rx_good")); mode 296 drivers/net/ethernet/sfc/ethtool.c EFX_LOOPBACK_NAME(mode, "rx_bad")); mode 320 drivers/net/ethernet/sfc/ethtool.c enum efx_loopback_mode mode; mode 363 drivers/net/ethernet/sfc/ethtool.c for (mode = LOOPBACK_NONE; mode <= LOOPBACK_TEST_MAX; mode++) { mode 364 drivers/net/ethernet/sfc/ethtool.c if (!(efx->loopback_modes & (1 << mode))) mode 367 drivers/net/ethernet/sfc/ethtool.c &tests->loopback[mode], mode, n, mode 94 drivers/net/ethernet/sfc/falcon/ethtool.c enum ef4_led_mode mode = EF4_LED_DEFAULT; mode 98 drivers/net/ethernet/sfc/falcon/ethtool.c mode = EF4_LED_ON; mode 101 drivers/net/ethernet/sfc/falcon/ethtool.c mode = EF4_LED_OFF; mode 104 drivers/net/ethernet/sfc/falcon/ethtool.c mode = EF4_LED_DEFAULT; mode 110 drivers/net/ethernet/sfc/falcon/ethtool.c efx->type->set_id_led(efx, mode); mode 253 drivers/net/ethernet/sfc/falcon/ethtool.c enum ef4_loopback_mode mode, mode 265 drivers/net/ethernet/sfc/falcon/ethtool.c EF4_LOOPBACK_NAME(mode, "tx_sent")); mode 269 drivers/net/ethernet/sfc/falcon/ethtool.c EF4_LOOPBACK_NAME(mode, "tx_done")); mode 274 drivers/net/ethernet/sfc/falcon/ethtool.c EF4_LOOPBACK_NAME(mode, "rx_good")); mode 278 drivers/net/ethernet/sfc/falcon/ethtool.c EF4_LOOPBACK_NAME(mode, "rx_bad")); mode 302 drivers/net/ethernet/sfc/falcon/ethtool.c enum ef4_loopback_mode mode; mode 345 drivers/net/ethernet/sfc/falcon/ethtool.c for (mode = LOOPBACK_NONE; mode <= LOOPBACK_TEST_MAX; mode++) { mode 346 drivers/net/ethernet/sfc/falcon/ethtool.c if (!(efx->loopback_modes & (1 << mode))) mode 349 drivers/net/ethernet/sfc/falcon/ethtool.c &tests->loopback[mode], mode, n, mode 2675 drivers/net/ethernet/sfc/falcon/falcon.c static void falcon_set_id_led(struct ef4_nic *efx, enum ef4_led_mode mode) mode 2677 drivers/net/ethernet/sfc/falcon/falcon.c falcon_board(efx)->type->set_id_led(efx, mode); mode 548 drivers/net/ethernet/sfc/falcon/falcon_boards.c static void sfe4002_set_id_led(struct ef4_nic *efx, enum ef4_led_mode mode) mode 552 drivers/net/ethernet/sfc/falcon/falcon_boards.c (mode == EF4_LED_ON) ? QUAKE_LED_ON : QUAKE_LED_OFF); mode 607 drivers/net/ethernet/sfc/falcon/falcon_boards.c static void sfn4112f_set_id_led(struct ef4_nic *efx, enum ef4_led_mode mode) mode 611 drivers/net/ethernet/sfc/falcon/falcon_boards.c switch (mode) { mode 663 drivers/net/ethernet/sfc/falcon/falcon_boards.c static void sfe4003_set_id_led(struct ef4_nic *efx, enum ef4_led_mode mode) mode 673 drivers/net/ethernet/sfc/falcon/falcon_boards.c (mode == EF4_LED_ON) ? SFE4003_LED_ON : SFE4003_LED_OFF); mode 606 drivers/net/ethernet/sfc/falcon/net_driver.h static inline bool ef4_phy_mode_disabled(enum ef4_phy_mode mode) mode 608 drivers/net/ethernet/sfc/falcon/net_driver.h return !!(mode & ~PHY_MODE_TX_DISABLED); mode 1066 drivers/net/ethernet/sfc/falcon/net_driver.h void (*set_id_led)(struct ef4_nic *efx, enum ef4_led_mode mode); mode 158 drivers/net/ethernet/sfc/falcon/nic.h void (*set_id_led) (struct ef4_nic *efx, enum ef4_led_mode mode); mode 15 drivers/net/ethernet/sfc/falcon/phy.h void tenxpress_set_id_led(struct ef4_nic *efx, enum ef4_led_mode mode); mode 50 drivers/net/ethernet/sfc/falcon/qt202x_phy.c void falcon_qt202x_set_led(struct ef4_nic *p, int led, int mode) mode 53 drivers/net/ethernet/sfc/falcon/qt202x_phy.c ef4_mdio_write(p, MDIO_MMD_PMAPMD, addr, mode); mode 616 drivers/net/ethernet/sfc/falcon/selftest.c enum ef4_loopback_mode mode; mode 634 drivers/net/ethernet/sfc/falcon/selftest.c for (mode = LOOPBACK_NONE; mode <= LOOPBACK_TEST_MAX; mode++) { mode 635 drivers/net/ethernet/sfc/falcon/selftest.c if (!(loopback_modes & (1 << mode))) mode 641 drivers/net/ethernet/sfc/falcon/selftest.c efx->loopback_mode = mode; mode 664 drivers/net/ethernet/sfc/falcon/selftest.c &tests->loopback[mode]); mode 388 drivers/net/ethernet/sfc/falcon/tenxpress.c void tenxpress_set_id_led(struct ef4_nic *efx, enum ef4_led_mode mode) mode 392 drivers/net/ethernet/sfc/falcon/tenxpress.c switch (mode) { mode 84 drivers/net/ethernet/sfc/mcdi.c mcdi->mode = MCDI_MODE_POLL; mode 170 drivers/net/ethernet/sfc/mcdi.c if (mcdi->mode == MCDI_MODE_EVENTS) mode 444 drivers/net/ethernet/sfc/mcdi.c if (mcdi->mode == MCDI_MODE_POLL) mode 467 drivers/net/ethernet/sfc/mcdi.c if (mcdi->mode == MCDI_MODE_EVENTS) { mode 659 drivers/net/ethernet/sfc/mcdi.c if (mcdi->mode == MCDI_MODE_POLL) mode 667 drivers/net/ethernet/sfc/mcdi.c cmd, (int)inlen, mcdi->mode); mode 669 drivers/net/ethernet/sfc/mcdi.c if (mcdi->mode == MCDI_MODE_EVENTS && efx_mcdi_poll_once(efx)) { mode 964 drivers/net/ethernet/sfc/mcdi.c if (mcdi->mode == MCDI_MODE_FAIL) mode 1004 drivers/net/ethernet/sfc/mcdi.c if (mcdi->mode == MCDI_MODE_EVENTS) { mode 1111 drivers/net/ethernet/sfc/mcdi.c if (mcdi->mode == MCDI_MODE_POLL || mcdi->mode == MCDI_MODE_FAIL) mode 1122 drivers/net/ethernet/sfc/mcdi.c mcdi->mode = MCDI_MODE_POLL; mode 1141 drivers/net/ethernet/sfc/mcdi.c BUG_ON(mcdi->mode == MCDI_MODE_EVENTS); mode 1179 drivers/net/ethernet/sfc/mcdi.c if (mcdi->mode == MCDI_MODE_EVENTS || mcdi->mode == MCDI_MODE_FAIL) mode 1190 drivers/net/ethernet/sfc/mcdi.c mcdi->mode = MCDI_MODE_EVENTS; mode 1226 drivers/net/ethernet/sfc/mcdi.c if (mcdi->mode == MCDI_MODE_EVENTS) { mode 1275 drivers/net/ethernet/sfc/mcdi.c if (mcdi->mode == MCDI_MODE_EVENTS) { mode 1294 drivers/net/ethernet/sfc/mcdi.c if (xchg(&mcdi->mode, MCDI_MODE_FAIL) == MCDI_MODE_FAIL) mode 1804 drivers/net/ethernet/sfc/mcdi.c void efx_mcdi_set_id_led(struct efx_nic *efx, enum efx_led_mode mode) mode 1815 drivers/net/ethernet/sfc/mcdi.c MCDI_SET_DWORD(inbuf, SET_ID_LED_IN_STATE, mode); mode 1868 drivers/net/ethernet/sfc/mcdi.c mcdi->mode = MCDI_MODE_POLL; mode 70 drivers/net/ethernet/sfc/mcdi.h enum efx_mcdi_mode mode; mode 339 drivers/net/ethernet/sfc/mcdi.h void efx_mcdi_set_id_led(struct efx_nic *efx, enum efx_led_mode mode); mode 298 drivers/net/ethernet/sfc/mcdi_mon.c attr->dev_attr.attr.mode = 0444; mode 279 drivers/net/ethernet/sfc/mcdi_port.c enum efx_phy_mode mode, supported; mode 291 drivers/net/ethernet/sfc/mcdi_port.c mode = efx->phy_mode & supported; mode 294 drivers/net/ethernet/sfc/mcdi_port.c if (mode & PHY_MODE_TX_DISABLED) mode 296 drivers/net/ethernet/sfc/mcdi_port.c if (mode & PHY_MODE_LOW_POWER) mode 298 drivers/net/ethernet/sfc/mcdi_port.c if (mode & PHY_MODE_OFF) mode 844 drivers/net/ethernet/sfc/mcdi_port.c u32 mode; mode 857 drivers/net/ethernet/sfc/mcdi_port.c mode = 0; mode 862 drivers/net/ethernet/sfc/mcdi_port.c mode = MC_CMD_PHY_BIST_CABLE_LONG; mode 864 drivers/net/ethernet/sfc/mcdi_port.c mode = MC_CMD_PHY_BIST_CABLE_SHORT; mode 867 drivers/net/ethernet/sfc/mcdi_port.c mode = MC_CMD_PHY_BIST_CABLE_LONG; mode 869 drivers/net/ethernet/sfc/mcdi_port.c if (mode != 0) { mode 870 drivers/net/ethernet/sfc/mcdi_port.c rc = efx_mcdi_bist(efx, mode, results); mode 682 drivers/net/ethernet/sfc/net_driver.h static inline bool efx_phy_mode_disabled(enum efx_phy_mode mode) mode 684 drivers/net/ethernet/sfc/net_driver.h return !!(mode & ~PHY_MODE_TX_DISABLED); mode 1297 drivers/net/ethernet/sfc/net_driver.h void (*set_id_led)(struct efx_nic *efx, enum efx_led_mode mode); mode 297 drivers/net/ethernet/sfc/ptp.c unsigned int mode; mode 795 drivers/net/ethernet/sfc/ptp.c MCDI_SET_DWORD(inbuf, PTP_IN_ENABLE_MODE, efx->ptp_data->mode); mode 1629 drivers/net/ethernet/sfc/ptp.c if (ptp->mode == MC_CMD_PTP_MODE_V1) { mode 1662 drivers/net/ethernet/sfc/ptp.c if (ptp->mode == MC_CMD_PTP_MODE_V2) { mode 1666 drivers/net/ethernet/sfc/ptp.c BUG_ON(ptp->mode != MC_CMD_PTP_MODE_V2_ENHANCED); mode 1720 drivers/net/ethernet/sfc/ptp.c return efx->ptp_data->mode; mode 1727 drivers/net/ethernet/sfc/ptp.c (enable_wanted && (efx->ptp_data->mode != new_mode))) { mode 1733 drivers/net/ethernet/sfc/ptp.c (efx->ptp_data->mode != new_mode)) { mode 1744 drivers/net/ethernet/sfc/ptp.c efx->ptp_data->mode = new_mode; mode 616 drivers/net/ethernet/sfc/selftest.c enum efx_loopback_mode mode; mode 634 drivers/net/ethernet/sfc/selftest.c for (mode = LOOPBACK_NONE; mode <= LOOPBACK_TEST_MAX; mode++) { mode 635 drivers/net/ethernet/sfc/selftest.c if (!(loopback_modes & (1 << mode))) mode 641 drivers/net/ethernet/sfc/selftest.c efx->loopback_mode = mode; mode 664 drivers/net/ethernet/sfc/selftest.c &tests->loopback[mode]); mode 438 drivers/net/ethernet/stmicro/stmmac/common.h const struct stmmac_mode_ops *mode; mode 456 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c static void sun8i_dwmac_dma_operation_mode_rx(void __iomem *ioaddr, int mode, mode 462 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (mode == SF_DMA_MODE) { mode 467 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (mode < 32) mode 469 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c else if (mode < 64) mode 471 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c else if (mode < 96) mode 473 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c else if (mode < 128) mode 479 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c static void sun8i_dwmac_dma_operation_mode_tx(void __iomem *ioaddr, int mode, mode 485 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (mode == SF_DMA_MODE) { mode 496 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (mode < 64) mode 498 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c else if (mode < 128) mode 500 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c else if (mode < 192) mode 502 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c else if (mode < 256) mode 255 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c static void dwmac1000_pmt(struct mac_device_info *hw, unsigned long mode) mode 260 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c if (mode & WAKE_MAGIC) { mode 264 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c if (mode & WAKE_UCAST) { mode 150 drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c static void dwmac1000_dma_operation_mode_rx(void __iomem *ioaddr, int mode, mode 155 drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c if (mode == SF_DMA_MODE) { mode 159 drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c pr_debug("GMAC: disable RX SF mode (threshold %d)\n", mode); mode 162 drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c if (mode <= 32) mode 164 drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c else if (mode <= 64) mode 166 drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c else if (mode <= 96) mode 178 drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c static void dwmac1000_dma_operation_mode_tx(void __iomem *ioaddr, int mode, mode 183 drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c if (mode == SF_DMA_MODE) { mode 192 drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c pr_debug("GMAC: disabling TX SF (threshold %d)\n", mode); mode 196 drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c if (mode <= 32) mode 198 drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c else if (mode <= 64) mode 200 drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c else if (mode <= 128) mode 202 drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c else if (mode <= 192) mode 148 drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c static void dwmac100_pmt(struct mac_device_info *hw, unsigned long mode) mode 53 drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c static void dwmac100_dma_operation_mode_tx(void __iomem *ioaddr, int mode, mode 58 drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c if (mode <= 32) mode 60 drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c else if (mode <= 64) mode 60 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c u8 mode, u32 queue) mode 66 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c if (mode == MTL_QUEUE_AVB) mode 68 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c else if (mode == MTL_QUEUE_DCB) mode 296 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c static void dwmac4_pmt(struct mac_device_info *hw, unsigned long mode) mode 302 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c if (mode & WAKE_MAGIC) { mode 306 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c if (mode & WAKE_UCAST) { mode 296 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c int mode, int end, int bfsize) mode 301 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static void dwmac4_rd_init_tx_desc(struct dma_desc *p, int mode, int end) mode 310 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c bool csum_flag, int mode, bool tx_own, mode 390 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static void dwmac4_release_tx_desc(struct dma_desc *p, int mode) mode 193 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c static void dwmac4_dma_rx_chan_op_mode(void __iomem *ioaddr, int mode, mode 201 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c if (mode == SF_DMA_MODE) { mode 205 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c pr_debug("GMAC: disable RX SF mode (threshold %d)\n", mode); mode 208 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c if (mode <= 32) mode 210 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c else if (mode <= 64) mode 212 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c else if (mode <= 96) mode 275 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c static void dwmac4_dma_tx_chan_op_mode(void __iomem *ioaddr, int mode, mode 281 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c if (mode == SF_DMA_MODE) { mode 286 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c pr_debug("GMAC: disabling TX SF (threshold %d)\n", mode); mode 290 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c if (mode <= 32) mode 292 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c else if (mode <= 64) mode 294 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c else if (mode <= 96) mode 296 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c else if (mode <= 128) mode 298 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c else if (mode <= 192) mode 300 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c else if (mode <= 256) mode 302 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c else if (mode <= 384) mode 81 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c static void dwxgmac2_rx_queue_enable(struct mac_device_info *hw, u8 mode, mode 88 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c if (mode == MTL_QUEUE_AVB) mode 90 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c else if (mode == MTL_QUEUE_DCB) mode 318 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c static void dwxgmac2_pmt(struct mac_device_info *hw, unsigned long mode) mode 323 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c if (mode & WAKE_MAGIC) mode 325 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c if (mode & WAKE_UCAST) mode 130 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c int mode, int end, int bfsize) mode 135 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_init_tx_desc(struct dma_desc *p, int mode, int end) mode 144 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c bool csum_flag, int mode, bool tx_own, mode 221 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c static void dwxgmac2_release_tx_desc(struct dma_desc *p, int mode) mode 139 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c static void dwxgmac2_dma_rx_mode(void __iomem *ioaddr, int mode, mode 145 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c if (mode == SF_DMA_MODE) { mode 151 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c if (mode <= 64) mode 153 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c else if (mode <= 96) mode 215 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c static void dwxgmac2_dma_tx_mode(void __iomem *ioaddr, int mode, mode 221 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c if (mode == SF_DMA_MODE) { mode 227 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c if (mode <= 64) mode 229 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c else if (mode <= 96) mode 231 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c else if (mode <= 128) mode 233 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c else if (mode <= 192) mode 235 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c else if (mode <= 256) mode 237 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c else if (mode <= 384) mode 258 drivers/net/ethernet/stmicro/stmmac/enh_desc.c int mode, int end, int bfsize) mode 267 drivers/net/ethernet/stmicro/stmmac/enh_desc.c if (mode == STMMAC_CHAIN_MODE) mode 276 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static void enh_desc_init_tx_desc(struct dma_desc *p, int mode, int end) mode 279 drivers/net/ethernet/stmicro/stmmac/enh_desc.c if (mode == STMMAC_CHAIN_MODE) mode 305 drivers/net/ethernet/stmicro/stmmac/enh_desc.c static void enh_desc_release_tx_desc(struct dma_desc *p, int mode) mode 310 drivers/net/ethernet/stmicro/stmmac/enh_desc.c if (mode == STMMAC_CHAIN_MODE) mode 317 drivers/net/ethernet/stmicro/stmmac/enh_desc.c bool csum_flag, int mode, bool tx_own, mode 322 drivers/net/ethernet/stmicro/stmmac/enh_desc.c if (mode == STMMAC_CHAIN_MODE) mode 32 drivers/net/ethernet/stmicro/stmmac/hwif.c priv->mode = STMMAC_CHAIN_MODE; mode 33 drivers/net/ethernet/stmicro/stmmac/hwif.c mac->mode = &chain_mode_ops; mode 36 drivers/net/ethernet/stmicro/stmmac/hwif.c priv->mode = STMMAC_RING_MODE; mode 37 drivers/net/ethernet/stmicro/stmmac/hwif.c mac->mode = &ring_mode_ops; mode 82 drivers/net/ethernet/stmicro/stmmac/hwif.c const void *mode; mode 102 drivers/net/ethernet/stmicro/stmmac/hwif.c .mode = NULL, mode 120 drivers/net/ethernet/stmicro/stmmac/hwif.c .mode = NULL, mode 138 drivers/net/ethernet/stmicro/stmmac/hwif.c .mode = NULL, mode 156 drivers/net/ethernet/stmicro/stmmac/hwif.c .mode = &dwmac4_ring_mode_ops, mode 174 drivers/net/ethernet/stmicro/stmmac/hwif.c .mode = &dwmac4_ring_mode_ops, mode 192 drivers/net/ethernet/stmicro/stmmac/hwif.c .mode = &dwmac4_ring_mode_ops, mode 210 drivers/net/ethernet/stmicro/stmmac/hwif.c .mode = NULL, mode 276 drivers/net/ethernet/stmicro/stmmac/hwif.c mac->mode = mac->mode ? : entry->mode; mode 36 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*init_rx_desc)(struct dma_desc *p, int disable_rx_ic, int mode, mode 39 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*init_tx_desc)(struct dma_desc *p, int mode, int end); mode 42 drivers/net/ethernet/stmicro/stmmac/hwif.h bool csum_flag, int mode, bool tx_own, bool ls, mode 51 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*release_tx_desc)(struct dma_desc *p, int mode); mode 182 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*dma_rx_mode)(void __iomem *ioaddr, int mode, u32 channel, mode 184 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*dma_tx_mode)(void __iomem *ioaddr, int mode, u32 channel, mode 287 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*rx_queue_enable)(struct mac_device_info *hw, u8 mode, u32 queue); mode 321 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*pmt)(struct mac_device_info *hw, unsigned long mode); mode 499 drivers/net/ethernet/stmicro/stmmac/hwif.h stmmac_do_void_callback(__priv, mode, init, __args) mode 501 drivers/net/ethernet/stmicro/stmmac/hwif.h stmmac_do_callback(__priv, mode, is_jumbo_frm, __args) mode 503 drivers/net/ethernet/stmicro/stmmac/hwif.h stmmac_do_callback(__priv, mode, jumbo_frm, __args) mode 505 drivers/net/ethernet/stmicro/stmmac/hwif.h stmmac_do_callback(__priv, mode, set_16kib_bfsize, __args) mode 507 drivers/net/ethernet/stmicro/stmmac/hwif.h stmmac_do_void_callback(__priv, mode, init_desc3, __args) mode 509 drivers/net/ethernet/stmicro/stmmac/hwif.h stmmac_do_void_callback(__priv, mode, refill_desc3, __args) mode 511 drivers/net/ethernet/stmicro/stmmac/hwif.h stmmac_do_void_callback(__priv, mode, clean_desc3, __args) mode 540 drivers/net/ethernet/stmicro/stmmac/hwif.h void (*ctrl)(void __iomem *ioaddr, unsigned int mode); mode 181 drivers/net/ethernet/stmicro/stmmac/mmc_core.c static void dwmac_mmc_ctrl(void __iomem *mmcaddr, unsigned int mode) mode 185 drivers/net/ethernet/stmicro/stmmac/mmc_core.c value |= (mode & 0x3F); mode 326 drivers/net/ethernet/stmicro/stmmac/mmc_core.c static void dwxgmac_mmc_ctrl(void __iomem *mmcaddr, unsigned int mode) mode 330 drivers/net/ethernet/stmicro/stmmac/mmc_core.c value |= (mode & 0x3F); mode 125 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static void ndesc_init_rx_desc(struct dma_desc *p, int disable_rx_ic, int mode, mode 135 drivers/net/ethernet/stmicro/stmmac/norm_desc.c if (mode == STMMAC_CHAIN_MODE) mode 144 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static void ndesc_init_tx_desc(struct dma_desc *p, int mode, int end) mode 147 drivers/net/ethernet/stmicro/stmmac/norm_desc.c if (mode == STMMAC_CHAIN_MODE) mode 173 drivers/net/ethernet/stmicro/stmmac/norm_desc.c static void ndesc_release_tx_desc(struct dma_desc *p, int mode) mode 178 drivers/net/ethernet/stmicro/stmmac/norm_desc.c if (mode == STMMAC_CHAIN_MODE) mode 185 drivers/net/ethernet/stmicro/stmmac/norm_desc.c bool csum_flag, int mode, bool tx_own, mode 205 drivers/net/ethernet/stmicro/stmmac/norm_desc.c if (mode == STMMAC_CHAIN_MODE) mode 200 drivers/net/ethernet/stmicro/stmmac/stmmac.h unsigned int mode; mode 878 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c static void stmmac_mac_config(struct phylink_config *config, unsigned int mode, mode 943 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c unsigned int mode, phy_interface_t interface) mode 954 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c unsigned int mode, phy_interface_t interface, mode 1042 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c int mode = priv->plat->phy_interface; mode 1049 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c mode, &stmmac_phylink_mac_ops); mode 1143 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c priv->use_riwt, priv->mode, mode 1148 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c priv->use_riwt, priv->mode, mode 1169 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c priv->mode, (i == DMA_TX_SIZE - 1)); mode 1172 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c priv->mode, (i == DMA_TX_SIZE - 1)); mode 1333 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if (priv->mode == STMMAC_CHAIN_MODE) { mode 1382 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if (priv->mode == STMMAC_CHAIN_MODE) { mode 1703 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c u8 mode; mode 1706 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c mode = priv->plat->rx_queues_cfg[queue].mode_to_use; mode 1707 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c stmmac_rx_queue_enable(priv, priv->hw, mode, queue); mode 1944 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c stmmac_release_tx_desc(priv, p, priv->mode); mode 1995 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c priv->mode, (i == DMA_TX_SIZE - 1)); mode 1998 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c priv->mode, (i == DMA_TX_SIZE - 1)); mode 2130 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c unsigned int mode = MMC_CNTRL_RESET_ON_READ | MMC_CNTRL_COUNTER_RESET | mode 2136 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c stmmac_mmc_ctrl(priv, priv->mmcaddr, mode); mode 2198 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if (priv->extend_desc && (priv->mode == STMMAC_RING_MODE)) mode 3223 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c priv->mode, 1, last_segment, skb->len); mode 3318 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c csum_insertion, priv->mode, 1, last_segment, mode 267 drivers/net/ethernet/sun/ldmvsw.c .mode = LDC_MODE_UNRELIABLE, mode 412 drivers/net/ethernet/sun/sunvnet.c .mode = LDC_MODE_UNRELIABLE, mode 45 drivers/net/ethernet/ti/cpsw-phy-sel.c u32 mode = 0; mode 52 drivers/net/ethernet/ti/cpsw-phy-sel.c mode = AM33XX_GMII_SEL_MODE_RMII; mode 56 drivers/net/ethernet/ti/cpsw-phy-sel.c mode = AM33XX_GMII_SEL_MODE_RGMII; mode 62 drivers/net/ethernet/ti/cpsw-phy-sel.c mode = AM33XX_GMII_SEL_MODE_RGMII; mode 72 drivers/net/ethernet/ti/cpsw-phy-sel.c mode = AM33XX_GMII_SEL_MODE_MII; mode 78 drivers/net/ethernet/ti/cpsw-phy-sel.c mode <<= slave * 2; mode 82 drivers/net/ethernet/ti/cpsw-phy-sel.c mode |= AM33XX_GMII_SEL_RMII1_IO_CLK_EN; mode 84 drivers/net/ethernet/ti/cpsw-phy-sel.c mode |= AM33XX_GMII_SEL_RMII2_IO_CLK_EN; mode 89 drivers/net/ethernet/ti/cpsw-phy-sel.c mode |= AM33XX_GMII_SEL_RGMII1_IDMODE; mode 91 drivers/net/ethernet/ti/cpsw-phy-sel.c mode |= AM33XX_GMII_SEL_RGMII2_IDMODE; mode 95 drivers/net/ethernet/ti/cpsw-phy-sel.c reg |= mode; mode 105 drivers/net/ethernet/ti/cpsw-phy-sel.c u32 mode = 0; mode 111 drivers/net/ethernet/ti/cpsw-phy-sel.c mode = AM33XX_GMII_SEL_MODE_RMII; mode 118 drivers/net/ethernet/ti/cpsw-phy-sel.c mode = AM33XX_GMII_SEL_MODE_RGMII; mode 127 drivers/net/ethernet/ti/cpsw-phy-sel.c mode = AM33XX_GMII_SEL_MODE_MII; mode 137 drivers/net/ethernet/ti/cpsw-phy-sel.c mode <<= 4; mode 148 drivers/net/ethernet/ti/cpsw-phy-sel.c reg |= mode; mode 2283 drivers/net/ethernet/ti/cpsw.c if (mqprio->mode != TC_MQPRIO_MODE_DCB) mode 2768 drivers/net/ethernet/ti/cpsw.c struct gpio_descs *mode; mode 2781 drivers/net/ethernet/ti/cpsw.c mode = devm_gpiod_get_array_optional(dev, "mode", GPIOD_OUT_LOW); mode 2782 drivers/net/ethernet/ti/cpsw.c if (IS_ERR(mode)) { mode 2783 drivers/net/ethernet/ti/cpsw.c ret = PTR_ERR(mode); mode 180 drivers/net/ethernet/ti/davinci_cpdma.c #define cpdma_desc_to_port(chan, mode, directed) \ mode 184 drivers/net/ethernet/ti/davinci_cpdma.c mode |= (CPDMA_DESC_TO_PORT_EN | \ mode 987 drivers/net/ethernet/ti/davinci_cpdma.c u32 mode; mode 1007 drivers/net/ethernet/ti/davinci_cpdma.c mode = desc_read(prev, hw_mode); mode 1008 drivers/net/ethernet/ti/davinci_cpdma.c if (((mode & (CPDMA_DESC_EOQ | CPDMA_DESC_OWNER)) == CPDMA_DESC_EOQ) && mode 1010 drivers/net/ethernet/ti/davinci_cpdma.c desc_write(prev, hw_mode, mode & ~CPDMA_DESC_EOQ); mode 1023 drivers/net/ethernet/ti/davinci_cpdma.c u32 mode; mode 1042 drivers/net/ethernet/ti/davinci_cpdma.c mode = CPDMA_DESC_OWNER | CPDMA_DESC_SOP | CPDMA_DESC_EOP; mode 1043 drivers/net/ethernet/ti/davinci_cpdma.c cpdma_desc_to_port(chan, mode, si->directed); mode 1063 drivers/net/ethernet/ti/davinci_cpdma.c writel_relaxed(mode | len, &desc->hw_mode); mode 2689 drivers/net/ethernet/ti/tlan.c u16 mode; mode 2710 drivers/net/ethernet/ti/tlan.c mode = an_adv & an_lpa & 0x03E0; mode 2711 drivers/net/ethernet/ti/tlan.c if (mode & 0x0100) mode 2713 drivers/net/ethernet/ti/tlan.c else if (!(mode & 0x0080) && (mode & 0x0040)) mode 2717 drivers/net/ethernet/ti/tlan.c if ((!(mode & 0x0180)) && mode 104 drivers/net/ethernet/toshiba/ps3_gelic_net.c static int gelic_card_set_link_mode(struct gelic_card *card, int mode) mode 111 drivers/net/ethernet/toshiba/ps3_gelic_net.c GELIC_LV1_PHY_ETHERNET_0, mode, 0, &v1, &v2); mode 118 drivers/net/ethernet/toshiba/ps3_gelic_net.c card->link_mode = mode; mode 1251 drivers/net/ethernet/toshiba/ps3_gelic_net.c u64 mode; mode 1255 drivers/net/ethernet/toshiba/ps3_gelic_net.c mode = GELIC_LV1_ETHER_AUTO_NEG; mode 1259 drivers/net/ethernet/toshiba/ps3_gelic_net.c mode = GELIC_LV1_ETHER_SPEED_10; mode 1262 drivers/net/ethernet/toshiba/ps3_gelic_net.c mode = GELIC_LV1_ETHER_SPEED_100; mode 1265 drivers/net/ethernet/toshiba/ps3_gelic_net.c mode = GELIC_LV1_ETHER_SPEED_1000; mode 1271 drivers/net/ethernet/toshiba/ps3_gelic_net.c mode |= GELIC_LV1_ETHER_FULL_DUPLEX; mode 1278 drivers/net/ethernet/toshiba/ps3_gelic_net.c ret = gelic_card_set_link_mode(card, mode); mode 639 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c iwe.u.mode = IW_MODE_MASTER; mode 641 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c iwe.u.mode = IW_MODE_ADHOC; mode 1351 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c __u32 mode = data->mode; mode 1355 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c if (mode == IW_MODE_INFRA) mode 1367 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c __u32 *mode = &data->mode; mode 1369 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c *mode = IW_MODE_INFRA; mode 698 drivers/net/ethernet/wiznet/w5100.c u8 mode = S0_MR_MACRAW; mode 702 drivers/net/ethernet/wiznet/w5100.c mode |= W5500_S0_MR_MF; mode 704 drivers/net/ethernet/wiznet/w5100.c mode |= S0_MR_MF; mode 707 drivers/net/ethernet/wiznet/w5100.c w5100_write(priv, W5100_S0_MR(priv), mode); mode 1443 drivers/net/ethernet/xilinx/xilinx_axienet_main.c static void axienet_mac_config(struct phylink_config *config, unsigned int mode, mode 1484 drivers/net/ethernet/xilinx/xilinx_axienet_main.c unsigned int mode, mode 1491 drivers/net/ethernet/xilinx/xilinx_axienet_main.c unsigned int mode, mode 341 drivers/net/fddi/skfp/drvfbi.c void sm_pm_bypass_req(struct s_smc *smc, int mode) mode 344 drivers/net/fddi/skfp/drvfbi.c mode == BP_INSERT ? "BP_INSERT" : "BP_DEINSERT"); mode 350 drivers/net/fddi/skfp/drvfbi.c switch(mode) { mode 1023 drivers/net/fddi/skfp/fplustm.c void sm_ma_control(struct s_smc *smc, int mode) mode 1025 drivers/net/fddi/skfp/fplustm.c switch(mode) { mode 1272 drivers/net/fddi/skfp/fplustm.c void mac_set_rx_mode(struct s_smc *smc, int mode) mode 1274 drivers/net/fddi/skfp/fplustm.c switch (mode) { mode 512 drivers/net/fddi/skfp/h/cmtdef.h void sm_ma_control(struct s_smc *smc, int mode); mode 528 drivers/net/fddi/skfp/h/cmtdef.h void sm_pm_bypass_req(struct s_smc *smc, int mode); mode 577 drivers/net/fddi/skfp/h/cmtdef.h void mac_set_rx_mode(struct s_smc *smc, int mode); mode 139 drivers/net/fddi/skfp/hwmtm.c void mac_drv_rx_mode(struct s_smc *smc, int mode); mode 988 drivers/net/fddi/skfp/hwmtm.c void mac_drv_rx_mode(struct s_smc *smc, int mode) mode 990 drivers/net/fddi/skfp/hwmtm.c switch(mode) { mode 1028 drivers/net/fddi/skfp/hwmtm.c mac_set_rx_mode(smc,mode) ; mode 144 drivers/net/fddi/skfp/skfddi.c extern void mac_drv_rx_mode(struct s_smc *smc, int mode); mode 1198 drivers/net/fjes/fjes_hw.c req_buf->start_trace.mode = hw->debug_mode; mode 128 drivers/net/fjes/fjes_hw.h __le32 mode; mode 202 drivers/net/fjes/fjes_trace.h __field(int, mode) mode 207 drivers/net/fjes/fjes_trace.h __entry->mode = req_buf->start_trace.mode; mode 211 drivers/net/fjes/fjes_trace.h __entry->length, __entry->mode, &__entry->buffer) mode 695 drivers/net/geneve.c ipv6 = geneve->info.mode & IP_TUNNEL_INFO_IPV6 || metadata; mode 989 drivers/net/geneve.c if (unlikely(!info || !(info->mode & IP_TUNNEL_INFO_TX))) { mode 1000 drivers/net/geneve.c if (info->mode & IP_TUNNEL_INFO_IPV6) mode 1364 drivers/net/geneve.c info->mode = IP_TUNNEL_INFO_IPV6; mode 1425 drivers/net/geneve.c if (info->key.label && (!(info->mode & IP_TUNNEL_INFO_IPV6))) { mode 107 drivers/net/hamradio/6pack.c unsigned char mode; /* 6pack mode */ mode 715 drivers/net/hamradio/6pack.c sp->mode = tmp; mode 1173 drivers/net/hamradio/baycom_epp.c static char *mode[NR_PORTS] = { "", }; mode 1176 drivers/net/hamradio/baycom_epp.c module_param_array(mode, charp, NULL, 0); mode 1177 drivers/net/hamradio/baycom_epp.c MODULE_PARM_DESC(mode, "baycom operating mode"); mode 1249 drivers/net/hamradio/baycom_epp.c if (!mode[i]) mode 1259 drivers/net/hamradio/baycom_epp.c if (set_hw && baycom_setmode(netdev_priv(dev), mode[i])) mode 1314 drivers/net/hamradio/baycom_epp.c mode[nr_dev] = str; mode 478 drivers/net/hamradio/baycom_par.c static char *mode[NR_PORTS] = { "picpar", }; mode 481 drivers/net/hamradio/baycom_par.c module_param_array(mode, charp, NULL, 0); mode 482 drivers/net/hamradio/baycom_par.c MODULE_PARM_DESC(mode, "baycom operating mode; eg. par96 or picpar"); mode 530 drivers/net/hamradio/baycom_par.c if (!mode[i]) mode 542 drivers/net/hamradio/baycom_par.c if (set_hw && baycom_setmode(bc, mode[i])) mode 590 drivers/net/hamradio/baycom_par.c mode[nr_dev] = str; mode 569 drivers/net/hamradio/baycom_ser_fdx.c static char *mode[NR_PORTS] = { "ser12*", }; mode 574 drivers/net/hamradio/baycom_ser_fdx.c module_param_array(mode, charp, NULL, 0); mode 575 drivers/net/hamradio/baycom_ser_fdx.c MODULE_PARM_DESC(mode, "baycom operating mode; * for software DCD"); mode 605 drivers/net/hamradio/baycom_ser_fdx.c if (!mode[i]) mode 617 drivers/net/hamradio/baycom_ser_fdx.c if (set_hw && baycom_setmode(bc, mode[i])) mode 665 drivers/net/hamradio/baycom_ser_fdx.c mode[nr_dev] = str; mode 623 drivers/net/hamradio/baycom_ser_hdx.c static char *mode[NR_PORTS] = { "ser12*", }; mode 627 drivers/net/hamradio/baycom_ser_hdx.c module_param_array(mode, charp, NULL, 0); mode 628 drivers/net/hamradio/baycom_ser_hdx.c MODULE_PARM_DESC(mode, "baycom operating mode; * for software DCD"); mode 656 drivers/net/hamradio/baycom_ser_hdx.c if (!mode[i]) mode 668 drivers/net/hamradio/baycom_ser_hdx.c if (set_hw && baycom_setmode(bc, mode[i])) mode 717 drivers/net/hamradio/baycom_ser_hdx.c mode[nr_dev] = str; mode 64 drivers/net/hamradio/mkiss.c int mode; mode 834 drivers/net/hamradio/mkiss.c ax->mode = tmp; mode 1003 drivers/net/hamradio/yam.c if (yi.cfg.mode > YAM_MAXMODE) mode 1005 drivers/net/hamradio/yam.c yp->dupmode = yi.cfg.mode; mode 1042 drivers/net/hamradio/yam.c yi.cfg.mode = yp->dupmode; mode 583 drivers/net/hippi/rrunner.c rrpriv->info->evt_ctrl.mode = 0; mode 589 drivers/net/hippi/rrunner.c rrpriv->info->cmd_ctrl.mode = 0; mode 603 drivers/net/hippi/rrunner.c rrpriv->info->tx_ctrl.mode = 0; mode 642 drivers/net/hippi/rrunner.c rrpriv->rx_ring[i].mode = 0; mode 666 drivers/net/hippi/rrunner.c rrpriv->rx_ctrl[4].mode = 8; mode 907 drivers/net/hippi/rrunner.c rrpriv->rx_ring[index].mode |= mode 937 drivers/net/hippi/rrunner.c printk("len %x, mode %x\n", pkt_len, desc->mode); mode 939 drivers/net/hippi/rrunner.c if ( (rrpriv->rx_ring[index].mode & PACKET_BAD) == PACKET_BAD){ mode 1003 drivers/net/hippi/rrunner.c desc->mode = 0; mode 1079 drivers/net/hippi/rrunner.c desc->mode = 0; mode 1296 drivers/net/hippi/rrunner.c rrpriv->tx_ring[cons].mode, mode 1312 drivers/net/hippi/rrunner.c rrpriv->tx_ring[i].mode, mode 1436 drivers/net/hippi/rrunner.c rrpriv->tx_ring[index].mode = PACKET_START | PACKET_END; mode 564 drivers/net/hippi/rrunner.h u8 mode; mode 566 drivers/net/hippi/rrunner.h u8 mode; mode 586 drivers/net/hippi/rrunner.h u8 mode; mode 588 drivers/net/hippi/rrunner.h u8 mode; mode 771 drivers/net/hippi/rrunner.h u16 mode; mode 776 drivers/net/hippi/rrunner.h u16 mode; mode 1228 drivers/net/ieee802154/adf7242.c hw->phy->cca.mode = NL802154_CCA_ENERGY; mode 1217 drivers/net/ieee802154/at86rf230.c switch (cca->mode) { mode 1551 drivers/net/ieee802154/at86rf230.c lp->hw->phy->cca.mode = NL802154_CCA_ENERGY; mode 552 drivers/net/ieee802154/atusb.c switch (cca->mode) { mode 902 drivers/net/ieee802154/atusb.c hw->phy->cca.mode = NL802154_CCA_ENERGY; mode 416 drivers/net/ieee802154/ca8210.c u8 mode; mode 1488 drivers/net/ieee802154/ca8210.c command.pdata.data_req.dst.mode = dst_address_mode; mode 1837 drivers/net/ieee802154/ca8210.c hdr.source.mode = data_ind[0]; mode 1838 drivers/net/ieee802154/ca8210.c dev_dbg(&priv->spi->dev, "srcAddrMode: %#03x\n", hdr.source.mode); mode 1842 drivers/net/ieee802154/ca8210.c hdr.dest.mode = data_ind[11]; mode 1843 drivers/net/ieee802154/ca8210.c dev_dbg(&priv->spi->dev, "dstAddrMode: %#03x\n", hdr.dest.mode); mode 1858 drivers/net/ieee802154/ca8210.c hdr.fc.dest_addr_mode = hdr.dest.mode; mode 1859 drivers/net/ieee802154/ca8210.c hdr.fc.source_addr_mode = hdr.source.mode; mode 1968 drivers/net/ieee802154/ca8210.c header.source.mode, mode 1969 drivers/net/ieee802154/ca8210.c header.dest.mode, mode 2223 drivers/net/ieee802154/ca8210.c cca_mode = cca->mode & 3; mode 2973 drivers/net/ieee802154/ca8210.c ca8210_hw->phy->cca.mode = NL802154_CCA_ENERGY_CARRIER; mode 648 drivers/net/ieee802154/mcr20a.c switch (cca->mode) { mode 1003 drivers/net/ieee802154/mcr20a.c phy->cca.mode = NL802154_CCA_ENERGY; mode 857 drivers/net/ieee802154/mrf24j40.c switch (cca->mode) { mode 1249 drivers/net/ieee802154/mrf24j40.c devrec->hw->phy->cca.mode = NL802154_CCA_CARRIER; mode 94 drivers/net/ipvlan/ipvlan.h u16 mode; mode 643 drivers/net/ipvlan/ipvlan_core.c switch(port->mode) { mode 655 drivers/net/ipvlan/ipvlan_core.c port->mode); mode 740 drivers/net/ipvlan/ipvlan_core.c switch (port->mode) { mode 753 drivers/net/ipvlan/ipvlan_core.c port->mode); mode 25 drivers/net/ipvlan/ipvlan_l3s.c if (!port || port->mode != IPVLAN_MODE_L3S) mode 15 drivers/net/ipvlan/ipvlan_main.c if (port->mode != nval) { mode 35 drivers/net/ipvlan/ipvlan_main.c } else if (port->mode == IPVLAN_MODE_L3S) { mode 39 drivers/net/ipvlan/ipvlan_main.c port->mode = nval; mode 47 drivers/net/ipvlan/ipvlan_main.c if (port->mode == IPVLAN_MODE_L3 || mode 48 drivers/net/ipvlan/ipvlan_main.c port->mode == IPVLAN_MODE_L3S) mode 70 drivers/net/ipvlan/ipvlan_main.c port->mode = IPVLAN_MODE_L3; mode 96 drivers/net/ipvlan/ipvlan_main.c if (port->mode == IPVLAN_MODE_L3S) mode 169 drivers/net/ipvlan/ipvlan_main.c if (ipvlan->port->mode == IPVLAN_MODE_L3 || mode 170 drivers/net/ipvlan/ipvlan_main.c ipvlan->port->mode == IPVLAN_MODE_L3S) mode 468 drivers/net/ipvlan/ipvlan_main.c u16 mode = nla_get_u16(data[IFLA_IPVLAN_MODE]); mode 470 drivers/net/ipvlan/ipvlan_main.c if (mode >= IPVLAN_MODE_MAX) mode 499 drivers/net/ipvlan/ipvlan_main.c if (nla_put_u16(skb, IFLA_IPVLAN_MODE, port->mode)) mode 518 drivers/net/ipvlan/ipvlan_main.c u16 mode = IPVLAN_MODE_L3; mode 607 drivers/net/ipvlan/ipvlan_main.c mode = nla_get_u16(data[IFLA_IPVLAN_MODE]); mode 609 drivers/net/ipvlan/ipvlan_main.c err = ipvlan_set_port_mode(port, mode, extack); mode 260 drivers/net/macvlan.c enum macvlan_mode mode) mode 274 drivers/net/macvlan.c if (vlan->dev == src || !(vlan->mode & mode)) mode 286 drivers/net/macvlan.c mode == MACVLAN_MODE_BRIDGE) ?: mode 319 drivers/net/macvlan.c else if (src->mode == MACVLAN_MODE_VEPA) mode 461 drivers/net/macvlan.c if (src && src->mode != MACVLAN_MODE_VEPA && mode 462 drivers/net/macvlan.c src->mode != MACVLAN_MODE_BRIDGE) { mode 484 drivers/net/macvlan.c if (!vlan || vlan->mode == MACVLAN_MODE_SOURCE) mode 517 drivers/net/macvlan.c if (vlan->mode == MACVLAN_MODE_BRIDGE) { mode 528 drivers/net/macvlan.c if (dest && dest->mode == MACVLAN_MODE_BRIDGE) { mode 745 drivers/net/macvlan.c if (vlan->mode == MACVLAN_MODE_PASSTHRU) { mode 1317 drivers/net/macvlan.c static int macvlan_changelink_sources(struct macvlan_dev *vlan, u32 mode, mode 1328 drivers/net/macvlan.c if (mode == MACVLAN_MACADDR_ADD) { mode 1334 drivers/net/macvlan.c } else if (mode == MACVLAN_MACADDR_DEL) { mode 1343 drivers/net/macvlan.c } else if (mode == MACVLAN_MACADDR_FLUSH) { mode 1345 drivers/net/macvlan.c } else if (mode == MACVLAN_MACADDR_SET) { mode 1435 drivers/net/macvlan.c vlan->mode = MACVLAN_MODE_VEPA; mode 1437 drivers/net/macvlan.c vlan->mode = nla_get_u32(data[IFLA_MACVLAN_MODE]); mode 1442 drivers/net/macvlan.c if (vlan->mode == MACVLAN_MODE_PASSTHRU) { mode 1452 drivers/net/macvlan.c if (vlan->mode != MACVLAN_MODE_SOURCE) { mode 1502 drivers/net/macvlan.c if (vlan->mode == MACVLAN_MODE_SOURCE) mode 1515 drivers/net/macvlan.c enum macvlan_mode mode; mode 1523 drivers/net/macvlan.c mode = nla_get_u32(data[IFLA_MACVLAN_MODE]); mode 1525 drivers/net/macvlan.c if ((mode == MACVLAN_MODE_PASSTHRU) != mode 1526 drivers/net/macvlan.c (vlan->mode == MACVLAN_MODE_PASSTHRU)) mode 1528 drivers/net/macvlan.c if (vlan->mode == MACVLAN_MODE_SOURCE && mode 1529 drivers/net/macvlan.c vlan->mode != mode) mode 1549 drivers/net/macvlan.c vlan->mode = mode; mode 1551 drivers/net/macvlan.c if (vlan->mode != MACVLAN_MODE_SOURCE) mode 1604 drivers/net/macvlan.c if (nla_put_u32(skb, IFLA_MACVLAN_MODE, vlan->mode)) mode 543 drivers/net/phy/aquantia_main.c int mode, val; mode 579 drivers/net/phy/aquantia_main.c mode = FIELD_GET(VEND1_GLOBAL_RSVD_STAT9_MODE, val); mode 580 drivers/net/phy/aquantia_main.c if (mode == VEND1_GLOBAL_RSVD_STAT9_1000BT2) mode 711 drivers/net/phy/marvell.c u16 mode, mode 715 drivers/net/phy/marvell.c mode |= MII_M1111_HWCFG_FIBER_COPPER_AUTO; mode 721 drivers/net/phy/marvell.c mode); mode 18 drivers/net/phy/mdio-cavium.c if (m == p->mode) mode 22 drivers/net/phy/mdio-cavium.c smi_clk.s.mode = (m == C45) ? 1 : 0; mode 25 drivers/net/phy/mdio-cavium.c p->mode = m; mode 34 drivers/net/phy/mdio-cavium.h OCT_MDIO_BITFIELD_FIELD(u64 mode:1, mode 94 drivers/net/phy/mdio-cavium.h enum cavium_mdiobus_mode mode; mode 44 drivers/net/phy/microchip_t1.c u8 mode; mode 51 drivers/net/phy/microchip_t1.c static int access_ereg(struct phy_device *phydev, u8 mode, u8 bank, mode 57 drivers/net/phy/microchip_t1.c if (mode > PHYACC_ATTR_MODE_WRITE || bank > PHYACC_ATTR_BANK_MAX) mode 61 drivers/net/phy/microchip_t1.c if (mode == PHYACC_ATTR_MODE_WRITE) mode 68 drivers/net/phy/microchip_t1.c if (mode == PHYACC_ATTR_MODE_WRITE) { mode 83 drivers/net/phy/microchip_t1.c if (mode == PHYACC_ATTR_MODE_READ) mode 167 drivers/net/phy/microchip_t1.c if (init[i].mode == PHYACC_ATTR_MODE_MODIFY) { mode 173 drivers/net/phy/microchip_t1.c rc = access_ereg(phydev, init[i].mode, init[i].bank, mode 86 drivers/net/phy/mscc.c #define LED_MODE_SEL(x, mode) (((mode) << LED_MODE_SEL_POS(x)) & LED_MODE_SEL_MASK(x)) mode 499 drivers/net/phy/mscc.c u8 mode) mode 507 drivers/net/phy/mscc.c reg_val |= LED_MODE_SEL(led_num, (u16)mode); mode 92 drivers/net/phy/national.c static void ns_giga_speed_fallback(struct phy_device *phydev, int mode) mode 103 drivers/net/phy/national.c phy_write(phydev, LED_CTRL_REG, mode); mode 524 drivers/net/phy/phy_device.c const char *mode = NULL; mode 527 drivers/net/phy/phy_device.c mode = "internal"; mode 529 drivers/net/phy/phy_device.c mode = phy_modes(phydev->interface); mode 531 drivers/net/phy/phy_device.c return sprintf(buf, "%s\n", mode); mode 141 drivers/net/phy/phylink.c static const char *phylink_an_mode_str(unsigned int mode) mode 149 drivers/net/phy/phylink.c return mode < ARRAY_SIZE(modestr) ? modestr[mode] : "unknown"; mode 425 drivers/net/phy/spi_ks8995.c .mode = 0600, mode 487 drivers/net/phy/spi_ks8995.c spi->mode = SPI_MODE_0; mode 743 drivers/net/ppp/ppp_generic.c npi.mode = ppp->npmode[i]; mode 747 drivers/net/ppp/ppp_generic.c ppp->npmode[i] = npi.mode; mode 327 drivers/net/slip/slip.c if (sl->mode & (SL_MODE_ADAPTIVE | SL_MODE_CSLIP)) { mode 331 drivers/net/slip/slip.c if (!(sl->mode & SL_MODE_CSLIP)) { mode 345 drivers/net/slip/slip.c if (!(sl->mode & SL_MODE_CSLIP)) { mode 347 drivers/net/slip/slip.c sl->mode |= SL_MODE_CSLIP; mode 348 drivers/net/slip/slip.c sl->mode &= ~SL_MODE_ADAPTIVE; mode 389 drivers/net/slip/slip.c if (sl->mode & SL_MODE_CSLIP) mode 393 drivers/net/slip/slip.c if (sl->mode & SL_MODE_SLIP6) mode 620 drivers/net/slip/slip.c dev->type = ARPHRD_SLIP + sl->mode; mode 707 drivers/net/slip/slip.c if (sl->mode & SL_MODE_SLIP6) mode 770 drivers/net/slip/slip.c sl->mode = SL_MODE_DEFAULT; mode 1097 drivers/net/slip/slip.c if (put_user(sl->mode, p)) mode 1117 drivers/net/slip/slip.c sl->mode = tmp; mode 1118 drivers/net/slip/slip.c sl->dev->type = ARPHRD_SLIP + sl->mode; mode 1393 drivers/net/slip/slip.c unsigned char s = (sl->mode & SL_MODE_SLIP6)?0x70:END; mode 84 drivers/net/slip/slip.h unsigned char mode; /* SLIP mode */ mode 601 drivers/net/sungem_phy.c int mode; mode 607 drivers/net/sungem_phy.c mode = (phy_reg & BCM5421_MODE_MASK) >> 5; mode 609 drivers/net/sungem_phy.c if ( mode == BCM54XX_COPPER) mode 625 drivers/net/sungem_phy.c int mode; mode 631 drivers/net/sungem_phy.c mode = (phy_reg & BCM5421_MODE_MASK ) >> 5; mode 633 drivers/net/sungem_phy.c if ( mode == BCM54XX_COPPER) mode 674 drivers/net/sungem_phy.c int mode; mode 680 drivers/net/sungem_phy.c mode = (phy_reg & BCM5461_MODE_MASK ) >> 1; mode 682 drivers/net/sungem_phy.c if ( mode == BCM54XX_COPPER) mode 700 drivers/net/sungem_phy.c int mode; mode 706 drivers/net/sungem_phy.c mode = (phy_reg & BCM5461_MODE_MASK ) >> 1; mode 708 drivers/net/sungem_phy.c if ( mode == BCM54XX_COPPER) { mode 401 drivers/net/team/team.c const struct team_mode *mode; mode 409 drivers/net/team/team.c if (strcmp(mitem->mode->kind, kind) == 0) mode 425 drivers/net/team/team.c int team_mode_register(const struct team_mode *mode) mode 430 drivers/net/team/team.c if (!is_good_mode_name(mode->kind) || mode 431 drivers/net/team/team.c mode->priv_size > TEAM_MODE_PRIV_SIZE) mode 439 drivers/net/team/team.c if (__find_mode(mode->kind)) { mode 444 drivers/net/team/team.c mitem->mode = mode; mode 452 drivers/net/team/team.c void team_mode_unregister(const struct team_mode *mode) mode 457 drivers/net/team/team.c mitem = __find_mode(mode->kind); mode 469 drivers/net/team/team.c const struct team_mode *mode = NULL; mode 483 drivers/net/team/team.c mode = mitem->mode; mode 484 drivers/net/team/team.c if (!try_module_get(mode->owner)) mode 485 drivers/net/team/team.c mode = NULL; mode 490 drivers/net/team/team.c return mode; mode 493 drivers/net/team/team.c static void team_mode_put(const struct team_mode *mode) mode 495 drivers/net/team/team.c module_put(mode->owner); mode 517 drivers/net/team/team.c return team->mode != &__team_no_mode; mode 523 drivers/net/team/team.c team->mode = &__team_no_mode; mode 534 drivers/net/team/team.c !team->mode->ops->transmit) mode 537 drivers/net/team/team.c team->ops.transmit = team->mode->ops->transmit; mode 540 drivers/net/team/team.c !team->mode->ops->receive) mode 543 drivers/net/team/team.c team->ops.receive = team->mode->ops->receive; mode 564 drivers/net/team/team.c team_mode_put(team->mode); mode 582 drivers/net/team/team.c team->mode = new_mode; mode 600 drivers/net/team/team.c if (team_is_mode_set(team) && strcmp(team->mode->kind, kind) == 0) { mode 1111 drivers/net/team/team.c lag_upper_info.tx_type = team->mode->lag_tx_type; mode 1185 drivers/net/team/team.c port = kzalloc(sizeof(struct team_port) + team->mode->port_priv_size, mode 1373 drivers/net/team/team.c ctx->data.str_val = team->mode->kind; mode 214 drivers/net/usb/asix.h int asix_write_rx_ctl(struct usbnet *dev, u16 mode, int in_pm); mode 217 drivers/net/usb/asix.h int asix_write_medium_mode(struct usbnet *dev, u16 mode, int in_pm); mode 343 drivers/net/usb/asix_common.c int asix_write_rx_ctl(struct usbnet *dev, u16 mode, int in_pm) mode 347 drivers/net/usb/asix_common.c netdev_dbg(dev->net, "asix_write_rx_ctl() - mode = 0x%04x\n", mode); mode 348 drivers/net/usb/asix_common.c ret = asix_write_cmd(dev, AX_CMD_WRITE_RX_CTL, mode, 0, 0, NULL, in_pm); mode 351 drivers/net/usb/asix_common.c mode, ret); mode 372 drivers/net/usb/asix_common.c int asix_write_medium_mode(struct usbnet *dev, u16 mode, int in_pm) mode 376 drivers/net/usb/asix_common.c netdev_dbg(dev->net, "asix_write_medium_mode() - mode = 0x%04x\n", mode); mode 378 drivers/net/usb/asix_common.c mode, 0, 0, NULL, in_pm); mode 381 drivers/net/usb/asix_common.c mode, ret); mode 173 drivers/net/usb/asix_devices.c u8 mode; mode 178 drivers/net/usb/asix_devices.c mode = AX88172_MEDIUM_DEFAULT; mode 181 drivers/net/usb/asix_devices.c mode |= ~AX88172_MEDIUM_FD; mode 184 drivers/net/usb/asix_devices.c ethtool_cmd_speed(&ecmd), ecmd.duplex, mode); mode 186 drivers/net/usb/asix_devices.c asix_write_medium_mode(dev, mode, 0); mode 300 drivers/net/usb/asix_devices.c u16 mode; mode 305 drivers/net/usb/asix_devices.c mode = AX88772_MEDIUM_DEFAULT; mode 308 drivers/net/usb/asix_devices.c mode &= ~AX_MEDIUM_PS; mode 311 drivers/net/usb/asix_devices.c mode &= ~AX_MEDIUM_FD; mode 314 drivers/net/usb/asix_devices.c ethtool_cmd_speed(&ecmd), ecmd.duplex, mode); mode 316 drivers/net/usb/asix_devices.c asix_write_medium_mode(dev, mode, 0); mode 956 drivers/net/usb/asix_devices.c u16 mode; mode 965 drivers/net/usb/asix_devices.c mode = AX88178_MEDIUM_DEFAULT; mode 969 drivers/net/usb/asix_devices.c mode |= AX_MEDIUM_GM; mode 971 drivers/net/usb/asix_devices.c mode |= AX_MEDIUM_PS; mode 973 drivers/net/usb/asix_devices.c mode &= ~(AX_MEDIUM_PS | AX_MEDIUM_GM); mode 975 drivers/net/usb/asix_devices.c mode |= AX_MEDIUM_ENCK; mode 978 drivers/net/usb/asix_devices.c mode |= AX_MEDIUM_FD; mode 980 drivers/net/usb/asix_devices.c mode &= ~AX_MEDIUM_FD; mode 983 drivers/net/usb/asix_devices.c speed, ecmd.duplex, mode); mode 985 drivers/net/usb/asix_devices.c asix_write_medium_mode(dev, mode, 0); mode 59 drivers/net/usb/ax88172a.c u16 mode = 0; mode 62 drivers/net/usb/ax88172a.c mode = AX88772_MEDIUM_DEFAULT; mode 65 drivers/net/usb/ax88172a.c mode &= ~AX_MEDIUM_FD; mode 68 drivers/net/usb/ax88172a.c mode &= ~AX_MEDIUM_PS; mode 71 drivers/net/usb/ax88172a.c if (mode != priv->oldmode) { mode 72 drivers/net/usb/ax88172a.c asix_write_medium_mode(dev, mode, 0); mode 73 drivers/net/usb/ax88172a.c priv->oldmode = mode; mode 75 drivers/net/usb/ax88172a.c phydev->speed, phydev->duplex, mode); mode 1450 drivers/net/usb/ax88179_178a.c u16 mode, tmp16, delay = HZ / 10; mode 1456 drivers/net/usb/ax88179_178a.c mode = 0; mode 1457 drivers/net/usb/ax88179_178a.c ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_RX_CTL, 2, 2, &mode); mode 1468 drivers/net/usb/ax88179_178a.c mode = AX_MEDIUM_RECEIVE_EN | AX_MEDIUM_TXFLOW_CTRLEN | mode 1480 drivers/net/usb/ax88179_178a.c mode |= AX_MEDIUM_GIGAMODE | AX_MEDIUM_EN_125MHZ; mode 1482 drivers/net/usb/ax88179_178a.c mode |= AX_MEDIUM_JUMBO_EN; mode 1491 drivers/net/usb/ax88179_178a.c mode |= AX_MEDIUM_PS; mode 1507 drivers/net/usb/ax88179_178a.c mode |= AX_MEDIUM_FULL_DUPLEX; mode 1509 drivers/net/usb/ax88179_178a.c 2, 2, &mode); mode 410 drivers/net/usb/dm9601.c u8 mode; mode 412 drivers/net/usb/dm9601.c if (dm_read_reg(dev, DM_MODE_CTRL, &mode) < 0) { mode 417 drivers/net/usb/dm9601.c dm_write_reg(dev, DM_MODE_CTRL, mode & 0x7f); mode 237 drivers/net/usb/sr9800.c static int sr_write_rx_ctl(struct usbnet *dev, u16 mode) mode 241 drivers/net/usb/sr9800.c netdev_dbg(dev->net, "%s : mode = 0x%04x\n", __func__, mode); mode 242 drivers/net/usb/sr9800.c ret = sr_write_cmd(dev, SR_CMD_WRITE_RX_CTL, mode, 0, 0, NULL); mode 246 drivers/net/usb/sr9800.c mode, ret); mode 266 drivers/net/usb/sr9800.c static int sr_write_medium_mode(struct usbnet *dev, u16 mode) mode 270 drivers/net/usb/sr9800.c netdev_dbg(dev->net, "%s : mode = 0x%04x\n", __func__, mode); mode 271 drivers/net/usb/sr9800.c ret = sr_write_cmd(dev, SR_CMD_WRITE_MEDIUM_MODE, mode, 0, 0, NULL); mode 275 drivers/net/usb/sr9800.c mode, ret); mode 537 drivers/net/usb/sr9800.c u16 mode; mode 541 drivers/net/usb/sr9800.c mode = SR9800_MEDIUM_DEFAULT; mode 544 drivers/net/usb/sr9800.c mode &= ~SR_MEDIUM_PS; mode 547 drivers/net/usb/sr9800.c mode &= ~SR_MEDIUM_FD; mode 550 drivers/net/usb/sr9800.c __func__, ethtool_cmd_speed(&ecmd), ecmd.duplex, mode); mode 552 drivers/net/usb/sr9800.c sr_write_medium_mode(dev, mode); mode 2644 drivers/net/vxlan.c if (info && info->mode & IP_TUNNEL_INFO_BRIDGE && mode 2645 drivers/net/vxlan.c info->mode & IP_TUNNEL_INFO_TX) { mode 2648 drivers/net/vxlan.c if (info && info->mode & IP_TUNNEL_INFO_TX) mode 429 drivers/net/wan/farsync.c int mode; /* Normal or FarSync raw */ mode 867 drivers/net/wan/farsync.c if (port->mode == FST_RAW) mode 1290 drivers/net/wan/farsync.c if (port->mode == FST_RAW) mode 1675 drivers/net/wan/farsync.c port->mode = FST_RAW; mode 1677 drivers/net/wan/farsync.c port->mode = FST_GEN_HDLC; mode 2106 drivers/net/wan/farsync.c port->mode = FST_RAW; mode 2110 drivers/net/wan/farsync.c if (port->mode == FST_RAW) { mode 2117 drivers/net/wan/farsync.c port->mode = FST_GEN_HDLC; mode 2190 drivers/net/wan/farsync.c if (port->mode != FST_RAW) { mode 2223 drivers/net/wan/farsync.c if (port->mode != FST_RAW) { mode 52 drivers/net/wan/fsl_ucc_hdlc.c .mode = UCC_FAST_PROTOCOL_MODE_HDLC, mode 760 drivers/net/wireless/admtek/adm8211.c switch (priv->mode) { mode 1397 drivers/net/wireless/admtek/adm8211.c if (priv->mode != NL80211_IFTYPE_MONITOR) mode 1402 drivers/net/wireless/admtek/adm8211.c priv->mode = vif->type; mode 1424 drivers/net/wireless/admtek/adm8211.c priv->mode = NL80211_IFTYPE_MONITOR; mode 1546 drivers/net/wireless/admtek/adm8211.c priv->mode = NL80211_IFTYPE_MONITOR; mode 1561 drivers/net/wireless/admtek/adm8211.c priv->mode = NL80211_IFTYPE_UNSPECIFIED; mode 1894 drivers/net/wireless/admtek/adm8211.c priv->mode = NL80211_IFTYPE_UNSPECIFIED; mode 553 drivers/net/wireless/admtek/adm8211.h int mode; mode 483 drivers/net/wireless/ath/ar5523/ar5523.c qinfo.attr.mode = cpu_to_be32(0); mode 279 drivers/net/wireless/ath/ar5523/ar5523_hw.h __be32 mode; mode 680 drivers/net/wireless/ath/ath10k/core.c static void ath10k_init_sdio(struct ath10k *ar, enum ath10k_firmware_mode mode) mode 698 drivers/net/wireless/ath/ath10k/core.c if (mode == ATH10K_FIRMWARE_MODE_UTF) mode 2518 drivers/net/wireless/ath/ath10k/core.c int ath10k_core_start(struct ath10k *ar, enum ath10k_firmware_mode mode, mode 2569 drivers/net/wireless/ath/ath10k/core.c ath10k_init_sdio(ar, mode); mode 2636 drivers/net/wireless/ath/ath10k/core.c if (mode == ATH10K_FIRMWARE_MODE_NORMAL) { mode 2656 drivers/net/wireless/ath/ath10k/core.c if (mode == ATH10K_FIRMWARE_MODE_NORMAL) { mode 2668 drivers/net/wireless/ath/ath10k/core.c mode == ATH10K_FIRMWARE_MODE_NORMAL) { mode 2753 drivers/net/wireless/ath/ath10k/core.c mode == ATH10K_FIRMWARE_MODE_NORMAL) { mode 2776 drivers/net/wireless/ath/ath10k/core.c if (mode == ATH10K_FIRMWARE_MODE_NORMAL) { mode 828 drivers/net/wireless/ath/ath10k/core.h static inline const char *ath10k_cal_mode_str(enum ath10k_cal_mode mode) mode 830 drivers/net/wireless/ath/ath10k/core.h switch (mode) { mode 1151 drivers/net/wireless/ath/ath10k/core.h enum ath10k_spectral_mode mode; mode 1240 drivers/net/wireless/ath/ath10k/core.h int ath10k_core_start(struct ath10k *ar, enum ath10k_firmware_mode mode, mode 2015 drivers/net/wireless/ath/ath10k/htt.h enum htt_tx_mode_switch_mode mode; mode 3087 drivers/net/wireless/ath/ath10k/htt_rx.c if (ar->htt.tx_q_state.mode == HTT_TX_MODE_SWITCH_PUSH) { mode 3209 drivers/net/wireless/ath/ath10k/htt_rx.c enum htt_tx_mode_switch_mode mode; mode 3231 drivers/net/wireless/ath/ath10k/htt_rx.c mode = MS(info1, HTT_TX_MODE_SWITCH_IND_INFO1_MODE); mode 3236 drivers/net/wireless/ath/ath10k/htt_rx.c info0, info1, enable, num_records, mode, threshold); mode 3245 drivers/net/wireless/ath/ath10k/htt_rx.c switch (mode) { mode 3251 drivers/net/wireless/ath/ath10k/htt_rx.c mode); mode 3259 drivers/net/wireless/ath/ath10k/htt_rx.c ar->htt.tx_q_state.mode = mode; mode 56 drivers/net/wireless/ath/ath10k/htt_tx.c if (ar->htt.tx_q_state.mode != HTT_TX_MODE_SWITCH_PUSH_PULL) mode 98 drivers/net/wireless/ath/ath10k/htt_tx.c if (ar->htt.tx_q_state.mode != HTT_TX_MODE_SWITCH_PUSH_PULL) mode 1036 drivers/net/wireless/ath/ath10k/mac.c arg.channel.mode = chan_to_phymode(chandef); mode 1484 drivers/net/wireless/ath/ath10k/mac.c arg.channel.mode = chan_to_phymode(chandef); mode 1507 drivers/net/wireless/ath/ath10k/mac.c ath10k_wmi_phymode_str(arg.channel.mode)); mode 3156 drivers/net/wireless/ath/ath10k/mac.c ch->mode = MODE_11G; mode 3158 drivers/net/wireless/ath/ath10k/mac.c ch->mode = MODE_11A; mode 3160 drivers/net/wireless/ath/ath10k/mac.c if (WARN_ON_ONCE(ch->mode == MODE_UNKNOWN)) mode 3167 drivers/net/wireless/ath/ath10k/mac.c ch->max_antenna_gain, ch->mode); mode 3988 drivers/net/wireless/ath/ath10k/mac.c if (ar->htt.tx_q_state.mode == HTT_TX_MODE_SWITCH_PUSH) mode 4149 drivers/net/wireless/ath/ath10k/mac.c if (ar->htt.tx_q_state.mode != HTT_TX_MODE_SWITCH_PUSH) mode 4405 drivers/net/wireless/ath/ath10k/mac.c if (ar->htt.tx_q_state.mode != HTT_TX_MODE_SWITCH_PUSH) mode 6328 drivers/net/wireless/ath/ath10k/mac.c enum wmi_phy_mode mode; mode 6330 drivers/net/wireless/ath/ath10k/mac.c mode = chan_to_phymode(&def); mode 6332 drivers/net/wireless/ath/ath10k/mac.c sta->addr, bw, mode); mode 6335 drivers/net/wireless/ath/ath10k/mac.c WMI_PEER_PHYMODE, mode); mode 6338 drivers/net/wireless/ath/ath10k/mac.c sta->addr, mode, err); mode 8126 drivers/net/wireless/ath/ath10k/mac.c enum ieee80211_chanctx_switch_mode mode) mode 8134 drivers/net/wireless/ath/ath10k/mac.c n_vifs, mode); mode 340 drivers/net/wireless/ath/ath10k/qmi.c ath10k_qmi_mode_send_sync_msg(struct ath10k *ar, enum wlfw_driver_mode_enum_v01 mode) mode 355 drivers/net/wireless/ath/ath10k/qmi.c req.mode = mode; mode 365 drivers/net/wireless/ath/ath10k/qmi.c ath10k_err(ar, "failed to send wlan mode %d request: %d\n", mode, ret); mode 379 drivers/net/wireless/ath/ath10k/qmi.c ath10k_dbg(ar, ATH10K_DBG_QMI, "qmi wlan mode req completed: %d\n", mode); mode 476 drivers/net/wireless/ath/ath10k/qmi.c enum wlfw_driver_mode_enum_v01 mode, mode 482 drivers/net/wireless/ath/ath10k/qmi.c mode, config); mode 490 drivers/net/wireless/ath/ath10k/qmi.c ret = ath10k_qmi_mode_send_sync_msg(ar, mode); mode 111 drivers/net/wireless/ath/ath10k/qmi.h enum wlfw_driver_mode_enum_v01 mode, mode 637 drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c mode), mode 256 drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.h enum wlfw_driver_mode_enum_v01 mode; mode 954 drivers/net/wireless/ath/ath10k/snoc.c enum wlfw_driver_mode_enum_v01 mode; mode 986 drivers/net/wireless/ath/ath10k/snoc.c mode = QMI_WLFW_MISSION_V01; mode 989 drivers/net/wireless/ath/ath10k/snoc.c mode = QMI_WLFW_FTM_V01; mode 996 drivers/net/wireless/ath/ath10k/snoc.c return ath10k_qmi_wlan_enable(ar, &cfg, mode, mode 192 drivers/net/wireless/ath/ath10k/spectral.c if (ar->spectral.mode == SPECTRAL_DISABLED) mode 211 drivers/net/wireless/ath/ath10k/spectral.c enum ath10k_spectral_mode mode) mode 225 drivers/net/wireless/ath/ath10k/spectral.c arvif->spectral_enabled = (mode != SPECTRAL_DISABLED); mode 226 drivers/net/wireless/ath/ath10k/spectral.c ar->spectral.mode = mode; mode 236 drivers/net/wireless/ath/ath10k/spectral.c if (mode == SPECTRAL_DISABLED) mode 239 drivers/net/wireless/ath/ath10k/spectral.c if (mode == SPECTRAL_BACKGROUND) mode 277 drivers/net/wireless/ath/ath10k/spectral.c char *mode = ""; mode 282 drivers/net/wireless/ath/ath10k/spectral.c spectral_mode = ar->spectral.mode; mode 287 drivers/net/wireless/ath/ath10k/spectral.c mode = "disable"; mode 290 drivers/net/wireless/ath/ath10k/spectral.c mode = "background"; mode 293 drivers/net/wireless/ath/ath10k/spectral.c mode = "manual"; mode 297 drivers/net/wireless/ath/ath10k/spectral.c len = strlen(mode); mode 298 drivers/net/wireless/ath/ath10k/spectral.c return simple_read_from_buffer(user_buf, count, ppos, mode, len); mode 319 drivers/net/wireless/ath/ath10k/spectral.c if (ar->spectral.mode == SPECTRAL_MANUAL || mode 320 drivers/net/wireless/ath/ath10k/spectral.c ar->spectral.mode == SPECTRAL_BACKGROUND) { mode 325 drivers/net/wireless/ath/ath10k/spectral.c ar->spectral.mode); mode 478 drivers/net/wireless/ath/ath10k/spectral.c umode_t mode, mode 484 drivers/net/wireless/ath/ath10k/spectral.c buf_file = debugfs_create_file(filename, mode, parent, buf, mode 514 drivers/net/wireless/ath/ath10k/spectral.c ar->spectral.mode = SPECTRAL_DISABLED; mode 1706 drivers/net/wireless/ath/ath10k/wmi.c if (arg->mode == MODE_11AC_VHT80_80) mode 1717 drivers/net/wireless/ath/ath10k/wmi.c ch->mode = arg->mode; mode 7097 drivers/net/wireless/ath/ath10k/wmi.c flags, arg->channel.freq, arg->channel.mode, mode 1973 drivers/net/wireless/ath/ath10k/wmi.h static inline const char *ath10k_wmi_phymode_str(enum wmi_phy_mode mode) mode 1975 drivers/net/wireless/ath/ath10k/wmi.h switch (mode) { mode 2032 drivers/net/wireless/ath/ath10k/wmi.h u8 mode; /* only 6 LSBs */ mode 2070 drivers/net/wireless/ath/ath10k/wmi.h enum wmi_phy_mode mode; mode 645 drivers/net/wireless/ath/ath5k/ani.c ath5k_ani_init(struct ath5k_hw *ah, enum ath5k_ani_mode mode) mode 651 drivers/net/wireless/ath/ath5k/ani.c if (mode < ATH5K_ANI_MODE_OFF || mode > ATH5K_ANI_MODE_AUTO) { mode 652 drivers/net/wireless/ath/ath5k/ani.c ATH5K_ERR(ah, "ANI mode %d out of range", mode); mode 666 drivers/net/wireless/ath/ath5k/ani.c if (mode == ATH5K_ANI_MODE_OFF) { mode 668 drivers/net/wireless/ath/ath5k/ani.c } else if (mode == ATH5K_ANI_MODE_MANUAL_LOW) { mode 676 drivers/net/wireless/ath/ath5k/ani.c } else if (mode == ATH5K_ANI_MODE_MANUAL_HIGH) { mode 686 drivers/net/wireless/ath/ath5k/ani.c } else if (mode == ATH5K_ANI_MODE_AUTO) { mode 699 drivers/net/wireless/ath/ath5k/ani.c if (mode == ATH5K_ANI_MODE_AUTO) { mode 713 drivers/net/wireless/ath/ath5k/ani.c ah->ani_state.ani_mode = mode; mode 104 drivers/net/wireless/ath/ath5k/ani.h void ath5k_ani_init(struct ath5k_hw *ah, enum ath5k_ani_mode mode); mode 1609 drivers/net/wireless/ath/ath5k/ath5k.h int ath5k_hw_write_initvals(struct ath5k_hw *ah, u8 mode, bool change_channel); mode 1636 drivers/net/wireless/ath/ath5k/ath5k.h u8 mode, bool fast); mode 297 drivers/net/wireless/ath/ath5k/base.c unsigned int mode, unsigned int max) mode 302 drivers/net/wireless/ath/ath5k/base.c switch (mode) { mode 328 drivers/net/wireless/ath/ath5k/base.c channels[count].hw_value = mode; mode 41 drivers/net/wireless/ath/ath5k/eeprom.c unsigned int mode) mode 48 drivers/net/wireless/ath/ath5k/eeprom.c if (mode == AR5K_EEPROM_MODE_11A) { mode 190 drivers/net/wireless/ath/ath5k/eeprom.c unsigned int mode) mode 198 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_switch_settling[mode] = (val >> 8) & 0x7f; mode 199 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_atn_tx_rx[mode] = (val >> 2) & 0x3f; mode 200 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ant_control[mode][i] = (val << 4) & 0x3f; mode 203 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ant_control[mode][i++] |= (val >> 12) & 0xf; mode 204 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ant_control[mode][i++] = (val >> 6) & 0x3f; mode 205 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ant_control[mode][i++] = val & 0x3f; mode 208 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ant_control[mode][i++] = (val >> 10) & 0x3f; mode 209 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ant_control[mode][i++] = (val >> 4) & 0x3f; mode 210 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ant_control[mode][i] = (val << 2) & 0x3f; mode 213 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ant_control[mode][i++] |= (val >> 14) & 0x3; mode 214 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ant_control[mode][i++] = (val >> 8) & 0x3f; mode 215 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ant_control[mode][i++] = (val >> 2) & 0x3f; mode 216 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ant_control[mode][i] = (val << 4) & 0x3f; mode 219 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ant_control[mode][i++] |= (val >> 12) & 0xf; mode 220 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ant_control[mode][i++] = (val >> 6) & 0x3f; mode 221 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ant_control[mode][i++] = val & 0x3f; mode 224 drivers/net/wireless/ath/ath5k/eeprom.c ah->ah_ant_ctl[mode][AR5K_ANT_CTL] = mode 225 drivers/net/wireless/ath/ath5k/eeprom.c (ee->ee_ant_control[mode][0] << 4); mode 226 drivers/net/wireless/ath/ath5k/eeprom.c ah->ah_ant_ctl[mode][AR5K_ANT_SWTABLE_A] = mode 227 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ant_control[mode][1] | mode 228 drivers/net/wireless/ath/ath5k/eeprom.c (ee->ee_ant_control[mode][2] << 6) | mode 229 drivers/net/wireless/ath/ath5k/eeprom.c (ee->ee_ant_control[mode][3] << 12) | mode 230 drivers/net/wireless/ath/ath5k/eeprom.c (ee->ee_ant_control[mode][4] << 18) | mode 231 drivers/net/wireless/ath/ath5k/eeprom.c (ee->ee_ant_control[mode][5] << 24); mode 232 drivers/net/wireless/ath/ath5k/eeprom.c ah->ah_ant_ctl[mode][AR5K_ANT_SWTABLE_B] = mode 233 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ant_control[mode][6] | mode 234 drivers/net/wireless/ath/ath5k/eeprom.c (ee->ee_ant_control[mode][7] << 6) | mode 235 drivers/net/wireless/ath/ath5k/eeprom.c (ee->ee_ant_control[mode][8] << 12) | mode 236 drivers/net/wireless/ath/ath5k/eeprom.c (ee->ee_ant_control[mode][9] << 18) | mode 237 drivers/net/wireless/ath/ath5k/eeprom.c (ee->ee_ant_control[mode][10] << 24); mode 250 drivers/net/wireless/ath/ath5k/eeprom.c unsigned int mode) mode 256 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_n_piers[mode] = 0; mode 258 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_adc_desired_size[mode] = (s8)((val >> 8) & 0xff); mode 259 drivers/net/wireless/ath/ath5k/eeprom.c switch (mode) { mode 261 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ob[mode][3] = (val >> 5) & 0x7; mode 262 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_db[mode][3] = (val >> 2) & 0x7; mode 263 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ob[mode][2] = (val << 1) & 0x7; mode 266 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ob[mode][2] |= (val >> 15) & 0x1; mode 267 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_db[mode][2] = (val >> 12) & 0x7; mode 268 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ob[mode][1] = (val >> 9) & 0x7; mode 269 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_db[mode][1] = (val >> 6) & 0x7; mode 270 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ob[mode][0] = (val >> 3) & 0x7; mode 271 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_db[mode][0] = val & 0x7; mode 275 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ob[mode][1] = (val >> 4) & 0x7; mode 276 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_db[mode][1] = val & 0x7; mode 281 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_tx_end2xlna_enable[mode] = (val >> 8) & 0xff; mode 282 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_thr_62[mode] = val & 0xff; mode 285 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_thr_62[mode] = mode == AR5K_EEPROM_MODE_11A ? 15 : 28; mode 288 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_tx_end2xpa_disable[mode] = (val >> 8) & 0xff; mode 289 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_tx_frm2xpa_enable[mode] = val & 0xff; mode 292 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_pga_desired_size[mode] = (val >> 8) & 0xff; mode 295 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_noise_floor_thr[mode] = -((((val & 0xff) ^ 0xff)) + 1); mode 297 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_noise_floor_thr[mode] = val & 0xff; mode 300 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_noise_floor_thr[mode] = mode 301 drivers/net/wireless/ath/ath5k/eeprom.c mode == AR5K_EEPROM_MODE_11A ? -54 : -1; mode 304 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_xlna_gain[mode] = (val >> 5) & 0xff; mode 305 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_x_gain[mode] = (val >> 1) & 0xf; mode 306 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_xpd[mode] = val & 0x1; mode 309 drivers/net/wireless/ath/ath5k/eeprom.c mode != AR5K_EEPROM_MODE_11B) mode 310 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_fixed_bias[mode] = (val >> 13) & 0x1; mode 314 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_false_detect[mode] = (val >> 6) & 0x7f; mode 316 drivers/net/wireless/ath/ath5k/eeprom.c if (mode == AR5K_EEPROM_MODE_11A) mode 317 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_xr_power[mode] = val & 0x3f; mode 320 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_ob[mode][0] = val & 0x7; mode 321 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_db[mode][0] = (val >> 3) & 0x7; mode 326 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_i_gain[mode] = AR5K_EEPROM_I_GAIN; mode 329 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_i_gain[mode] = (val >> 13) & 0x7; mode 332 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_i_gain[mode] |= (val << 3) & 0x38; mode 334 drivers/net/wireless/ath/ath5k/eeprom.c if (mode == AR5K_EEPROM_MODE_11G) { mode 342 drivers/net/wireless/ath/ath5k/eeprom.c mode == AR5K_EEPROM_MODE_11A) { mode 343 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_i_cal[mode] = (val >> 8) & 0x3f; mode 344 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_q_cal[mode] = (val >> 3) & 0x1f; mode 353 drivers/net/wireless/ath/ath5k/eeprom.c switch (mode) { mode 359 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_margin_tx_rx[mode] = val & 0x3f; mode 365 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_bin2freq(ee, val & 0xff, mode); mode 367 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_n_piers[mode]++; mode 370 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_bin2freq(ee, (val >> 8) & 0xff, mode); mode 372 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_n_piers[mode]++; mode 376 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_bin2freq(ee, val & 0xff, mode); mode 378 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_n_piers[mode]++; mode 381 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_margin_tx_rx[mode] = (val >> 8) & 0x3f; mode 387 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_bin2freq(ee, val & 0xff, mode); mode 389 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_n_piers[mode]++; mode 392 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_bin2freq(ee, (val >> 8) & 0xff, mode); mode 394 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_n_piers[mode]++; mode 397 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_turbo_max_power[mode] = val & 0x7f; mode 398 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_xr_power[mode] = (val >> 7) & 0x3f; mode 402 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_bin2freq(ee, val & 0xff, mode); mode 404 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_n_piers[mode]++; mode 407 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_margin_tx_rx[mode] = (val >> 8) & 0x3f; mode 410 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_i_cal[mode] = (val >> 5) & 0x3f; mode 411 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_q_cal[mode] = val & 0x1f; mode 426 drivers/net/wireless/ath/ath5k/eeprom.c switch (mode) { mode 428 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_switch_settling_turbo[mode] = (val >> 6) & 0x7f; mode 430 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_atn_tx_rx_turbo[mode] = (val >> 13) & 0x7; mode 432 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_atn_tx_rx_turbo[mode] |= (val & 0x7) << 3; mode 433 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_margin_tx_rx_turbo[mode] = (val >> 3) & 0x3f; mode 435 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_adc_desired_size_turbo[mode] = (val >> 9) & 0x7f; mode 437 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_adc_desired_size_turbo[mode] |= (val & 0x1) << 7; mode 438 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_pga_desired_size_turbo[mode] = (val >> 1) & 0xff; mode 444 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_switch_settling_turbo[mode] = (val >> 8) & 0x7f; mode 446 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_atn_tx_rx_turbo[mode] = (val >> 15) & 0x7; mode 448 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_atn_tx_rx_turbo[mode] |= (val & 0x1f) << 1; mode 449 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_margin_tx_rx_turbo[mode] = (val >> 5) & 0x3f; mode 451 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_adc_desired_size_turbo[mode] = (val >> 11) & 0x7f; mode 453 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_adc_desired_size_turbo[mode] |= (val & 0x7) << 5; mode 454 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_pga_desired_size_turbo[mode] = (val >> 3) & 0xff; mode 471 drivers/net/wireless/ath/ath5k/eeprom.c unsigned int mode; mode 485 drivers/net/wireless/ath/ath5k/eeprom.c for (mode = AR5K_EEPROM_MODE_11A; mode <= AR5K_EEPROM_MODE_11G; mode++) { mode 486 drivers/net/wireless/ath/ath5k/eeprom.c offset = mode_offset[mode]; mode 488 drivers/net/wireless/ath/ath5k/eeprom.c ret = ath5k_eeprom_read_ants(ah, &offset, mode); mode 492 drivers/net/wireless/ath/ath5k/eeprom.c ret = ath5k_eeprom_read_modes(ah, &offset, mode); mode 511 drivers/net/wireless/ath/ath5k/eeprom.c struct ath5k_chan_pcal_info *pc, unsigned int mode) mode 519 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_n_piers[mode] = 0; mode 528 drivers/net/wireless/ath/ath5k/eeprom.c freq1, mode); mode 529 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_n_piers[mode]++; mode 536 drivers/net/wireless/ath/ath5k/eeprom.c freq2, mode); mode 537 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_n_piers[mode]++; mode 601 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_init_11bg_2413(struct ath5k_hw *ah, unsigned int mode, int offset) mode 606 drivers/net/wireless/ath/ath5k/eeprom.c switch (mode) { mode 619 drivers/net/wireless/ath/ath5k/eeprom.c mode); mode 667 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_free_pcal_info(struct ath5k_hw *ah, int mode) mode 673 drivers/net/wireless/ath/ath5k/eeprom.c switch (mode) { mode 693 drivers/net/wireless/ath/ath5k/eeprom.c for (pier = 0; pier < ee->ee_n_piers[mode]; pier++) { mode 714 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_convert_pcal_info_5111(struct ath5k_hw *ah, int mode, mode 721 drivers/net/wireless/ath/ath5k/eeprom.c u8 *pdgain_idx = ee->ee_pdc_to_idx[mode]; mode 724 drivers/net/wireless/ath/ath5k/eeprom.c for (pier = 0; pier < ee->ee_n_piers[mode]; pier++) { mode 743 drivers/net/wireless/ath/ath5k/eeprom.c if (!((ee->ee_x_gain[mode] >> idx) & 0x1)) { mode 749 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_pd_gains[mode] = 1; mode 787 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_free_pcal_info(ah, mode); mode 793 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_read_pcal_info_5111(struct ath5k_hw *ah, int mode) mode 802 drivers/net/wireless/ath/ath5k/eeprom.c switch (mode) { mode 827 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_n_piers[mode] = 3; mode 840 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_n_piers[mode] = 3; mode 846 drivers/net/wireless/ath/ath5k/eeprom.c for (i = 0; i < ee->ee_n_piers[mode]; i++) { mode 880 drivers/net/wireless/ath/ath5k/eeprom.c return ath5k_eeprom_convert_pcal_info_5111(ah, mode, pcal); mode 902 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_convert_pcal_info_5112(struct ath5k_hw *ah, int mode, mode 907 drivers/net/wireless/ath/ath5k/eeprom.c u8 *pdgain_idx = ee->ee_pdc_to_idx[mode]; mode 911 drivers/net/wireless/ath/ath5k/eeprom.c for (pier = 0; pier < ee->ee_n_piers[mode]; pier++) { mode 925 drivers/net/wireless/ath/ath5k/eeprom.c for (pdg = 0; pdg < ee->ee_pd_gains[mode]; pdg++) { mode 1010 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_free_pcal_info(ah, mode); mode 1016 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_read_pcal_info_5112(struct ath5k_hw *ah, int mode) mode 1021 drivers/net/wireless/ath/ath5k/eeprom.c u8 *pdgain_idx = ee->ee_pdc_to_idx[mode]; mode 1034 drivers/net/wireless/ath/ath5k/eeprom.c if ((ee->ee_x_gain[mode] >> i) & 0x1) mode 1037 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_pd_gains[mode] = pd_gains; mode 1042 drivers/net/wireless/ath/ath5k/eeprom.c switch (mode) { mode 1075 drivers/net/wireless/ath/ath5k/eeprom.c for (i = 0; i < ee->ee_n_piers[mode]; i++) { mode 1124 drivers/net/wireless/ath/ath5k/eeprom.c return ath5k_eeprom_convert_pcal_info_5112(ah, mode, gen_chan_info); mode 1151 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_pdgains_size_2413(struct ath5k_eeprom_info *ee, unsigned int mode) mode 1156 drivers/net/wireless/ath/ath5k/eeprom.c sz = pdgains_size[ee->ee_pd_gains[mode] - 1]; mode 1157 drivers/net/wireless/ath/ath5k/eeprom.c sz *= ee->ee_n_piers[mode]; mode 1165 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_cal_data_offset_2413(struct ath5k_eeprom_info *ee, int mode) mode 1169 drivers/net/wireless/ath/ath5k/eeprom.c switch (mode) { mode 1194 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_convert_pcal_info_2413(struct ath5k_hw *ah, int mode, mode 1199 drivers/net/wireless/ath/ath5k/eeprom.c u8 *pdgain_idx = ee->ee_pdc_to_idx[mode]; mode 1203 drivers/net/wireless/ath/ath5k/eeprom.c for (pier = 0; pier < ee->ee_n_piers[mode]; pier++) { mode 1217 drivers/net/wireless/ath/ath5k/eeprom.c for (pdg = 0; pdg < ee->ee_pd_gains[mode]; pdg++) { mode 1225 drivers/net/wireless/ath/ath5k/eeprom.c if (pdg == ee->ee_pd_gains[mode] - 1) mode 1264 drivers/net/wireless/ath/ath5k/eeprom.c if (pdg == ee->ee_pd_gains[mode] - 1) mode 1273 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_free_pcal_info(ah, mode); mode 1279 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_read_pcal_info_2413(struct ath5k_hw *ah, int mode) mode 1284 drivers/net/wireless/ath/ath5k/eeprom.c u8 *pdgain_idx = ee->ee_pdc_to_idx[mode]; mode 1297 drivers/net/wireless/ath/ath5k/eeprom.c if ((ee->ee_x_gain[mode] >> idx) & 0x1) mode 1301 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_pd_gains[mode] = pd_gains; mode 1306 drivers/net/wireless/ath/ath5k/eeprom.c offset = ath5k_cal_data_offset_2413(ee, mode); mode 1307 drivers/net/wireless/ath/ath5k/eeprom.c switch (mode) { mode 1320 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_init_11bg_2413(ah, mode, offset); mode 1328 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_init_11bg_2413(ah, mode, offset); mode 1336 drivers/net/wireless/ath/ath5k/eeprom.c for (i = 0; i < ee->ee_n_piers[mode]; i++) { mode 1458 drivers/net/wireless/ath/ath5k/eeprom.c return ath5k_eeprom_convert_pcal_info_2413(ah, mode, chinfo); mode 1470 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_read_target_rate_pwr_info(struct ath5k_hw *ah, unsigned int mode) mode 1480 drivers/net/wireless/ath/ath5k/eeprom.c rate_target_pwr_num = &ee->ee_rate_target_pwr_num[mode]; mode 1481 drivers/net/wireless/ath/ath5k/eeprom.c switch (mode) { mode 1485 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_rate_target_pwr_num[mode] = AR5K_EEPROM_N_5GHZ_RATE_CHAN; mode 1490 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_rate_target_pwr_num[mode] = 2; /* 3rd is g mode's 1st */ mode 1495 drivers/net/wireless/ath/ath5k/eeprom.c ee->ee_rate_target_pwr_num[mode] = AR5K_EEPROM_N_2GHZ_CHAN; mode 1506 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_bin2freq(ee, (val >> 9) & 0x7f, mode); mode 1527 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_bin2freq(ee, (val >> 8) & 0xff, mode); mode 1568 drivers/net/wireless/ath/ath5k/eeprom.c int (*read_pcal)(struct ath5k_hw *hw, int mode); mode 1569 drivers/net/wireless/ath/ath5k/eeprom.c int mode; mode 1582 drivers/net/wireless/ath/ath5k/eeprom.c for (mode = AR5K_EEPROM_MODE_11A; mode <= AR5K_EEPROM_MODE_11G; mode 1583 drivers/net/wireless/ath/ath5k/eeprom.c mode++) { mode 1584 drivers/net/wireless/ath/ath5k/eeprom.c err = read_pcal(ah, mode); mode 1588 drivers/net/wireless/ath/ath5k/eeprom.c err = ath5k_eeprom_read_target_rate_pwr_info(ah, mode); mode 1775 drivers/net/wireless/ath/ath5k/eeprom.c u8 mode; mode 1777 drivers/net/wireless/ath/ath5k/eeprom.c for (mode = AR5K_EEPROM_MODE_11A; mode <= AR5K_EEPROM_MODE_11G; mode++) mode 1778 drivers/net/wireless/ath/ath5k/eeprom.c ath5k_eeprom_free_pcal_info(ah, mode); mode 1418 drivers/net/wireless/ath/ath5k/initvals.c u8 mode) mode 1424 drivers/net/wireless/ath/ath5k/initvals.c ath5k_hw_reg_write(ah, ini_mode[i].mode_value[mode], mode 1440 drivers/net/wireless/ath/ath5k/initvals.c ath5k_hw_write_initvals(struct ath5k_hw *ah, u8 mode, bool skip_pcu) mode 1452 drivers/net/wireless/ath/ath5k/initvals.c ar5212_ini_mode_start, mode); mode 1466 drivers/net/wireless/ath/ath5k/initvals.c rf5111_ini_mode_end, mode); mode 1482 drivers/net/wireless/ath/ath5k/initvals.c rf5112_ini_mode_end, mode); mode 1497 drivers/net/wireless/ath/ath5k/initvals.c rf5413_ini_mode_end, mode); mode 1513 drivers/net/wireless/ath/ath5k/initvals.c rf2413_ini_mode_end, mode); mode 1535 drivers/net/wireless/ath/ath5k/initvals.c rf2413_ini_mode_end, mode); mode 1559 drivers/net/wireless/ath/ath5k/initvals.c rf2425_ini_mode_end, mode); mode 1578 drivers/net/wireless/ath/ath5k/initvals.c if (mode > 2) { mode 1579 drivers/net/wireless/ath/ath5k/initvals.c ATH5K_ERR(ah, "unsupported channel mode: %d\n", mode); mode 1585 drivers/net/wireless/ath/ath5k/initvals.c ar5211_ini_mode, mode); mode 812 drivers/net/wireless/ath/ath5k/phy.c unsigned int mode) mode 912 drivers/net/wireless/ath/ath5k/phy.c rfb[i] = ini_rfb[i].rfb_mode_data[mode]; mode 2588 drivers/net/wireless/ath/ath5k/phy.c u8 mode, max, i; mode 2597 drivers/net/wireless/ath/ath5k/phy.c mode = AR5K_EEPROM_MODE_11A; mode 2601 drivers/net/wireless/ath/ath5k/phy.c mode = AR5K_EEPROM_MODE_11B; mode 2606 drivers/net/wireless/ath/ath5k/phy.c mode = AR5K_EEPROM_MODE_11G; mode 2609 drivers/net/wireless/ath/ath5k/phy.c max = ee->ee_n_piers[mode] - 1; mode 2676 drivers/net/wireless/ath/ath5k/phy.c u8 mode, max, i; mode 2685 drivers/net/wireless/ath/ath5k/phy.c mode = AR5K_EEPROM_MODE_11A; mode 2689 drivers/net/wireless/ath/ath5k/phy.c mode = AR5K_EEPROM_MODE_11B; mode 2694 drivers/net/wireless/ath/ath5k/phy.c mode = AR5K_EEPROM_MODE_11G; mode 2697 drivers/net/wireless/ath/ath5k/phy.c max = ee->ee_rate_target_pwr_num[mode] - 1; mode 3752 drivers/net/wireless/ath/ath5k/phy.c u8 mode, bool fast) mode 3867 drivers/net/wireless/ath/ath5k/phy.c ret = ath5k_hw_rfregs_init(ah, channel, mode); mode 3874 drivers/net/wireless/ath/ath5k/phy.c if (mode == AR5K_MODE_11B) mode 3941 drivers/net/wireless/ath/ath5k/phy.c if (!(mode == AR5K_MODE_11B)) { mode 514 drivers/net/wireless/ath/ath5k/reset.c ath5k_hw_set_power_mode(struct ath5k_hw *ah, enum ath5k_power_mode mode, mode 522 drivers/net/wireless/ath/ath5k/reset.c switch (mode) { mode 672 drivers/net/wireless/ath/ath5k/reset.c u32 turbo, mode, clock, bus_flags; mode 676 drivers/net/wireless/ath/ath5k/reset.c mode = 0; mode 748 drivers/net/wireless/ath/ath5k/reset.c mode = AR5K_PHY_MODE_RAD_RF5112; mode 751 drivers/net/wireless/ath/ath5k/reset.c mode = AR5K_PHY_MODE_RAD_RF5111; /*Zero*/ mode 756 drivers/net/wireless/ath/ath5k/reset.c mode |= AR5K_PHY_MODE_FREQ_2GHZ; mode 760 drivers/net/wireless/ath/ath5k/reset.c mode |= AR5K_PHY_MODE_MOD_CCK; mode 770 drivers/net/wireless/ath/ath5k/reset.c mode |= AR5K_PHY_MODE_MOD_OFDM; mode 772 drivers/net/wireless/ath/ath5k/reset.c mode |= AR5K_PHY_MODE_MOD_DYN; mode 775 drivers/net/wireless/ath/ath5k/reset.c mode |= (AR5K_PHY_MODE_FREQ_5GHZ | mode 797 drivers/net/wireless/ath/ath5k/reset.c mode |= (ah->ah_bwmode == AR5K_BWMODE_10MHZ) ? mode 824 drivers/net/wireless/ath/ath5k/reset.c ath5k_hw_reg_write(ah, mode, AR5K_PHY_MODE); mode 1150 drivers/net/wireless/ath/ath5k/reset.c u8 mode; mode 1155 drivers/net/wireless/ath/ath5k/reset.c mode = 0; mode 1172 drivers/net/wireless/ath/ath5k/reset.c mode = channel->hw_value; mode 1173 drivers/net/wireless/ath/ath5k/reset.c switch (mode) { mode 1201 drivers/net/wireless/ath/ath5k/reset.c ret = ath5k_hw_phy_init(ah, channel, mode, true); mode 1286 drivers/net/wireless/ath/ath5k/reset.c ret = ath5k_hw_write_initvals(ah, mode, skip_pcu); mode 1340 drivers/net/wireless/ath/ath5k/reset.c ret = ath5k_hw_phy_init(ah, channel, mode, false); mode 1107 drivers/net/wireless/ath/ath6kl/cfg80211.c enum wmi_phy_mode mode) mode 1113 drivers/net/wireless/ath/ath6kl/cfg80211.c vif->nw_type, freq, mode); mode 1117 drivers/net/wireless/ath/ath6kl/cfg80211.c (mode == WMI_11G_HT20 && mode 1482 drivers/net/wireless/ath/ath6kl/cfg80211.c struct wmi_power_mode_cmd mode; mode 1493 drivers/net/wireless/ath/ath6kl/cfg80211.c mode.pwr_mode = REC_POWER; mode 1496 drivers/net/wireless/ath/ath6kl/cfg80211.c mode.pwr_mode = MAX_PERF_POWER; mode 1500 drivers/net/wireless/ath/ath6kl/cfg80211.c mode.pwr_mode) != 0) { mode 2420 drivers/net/wireless/ath/ath6kl/cfg80211.c enum ath6kl_cfg_suspend_mode mode, mode 2427 drivers/net/wireless/ath/ath6kl/cfg80211.c switch (mode) { mode 32 drivers/net/wireless/ath/ath6kl/cfg80211.h enum wmi_phy_mode mode); mode 50 drivers/net/wireless/ath/ath6kl/cfg80211.h enum ath6kl_cfg_suspend_mode mode, mode 1268 drivers/net/wireless/ath/ath6kl/debug.c enum wmi_roam_mode mode; mode 1278 drivers/net/wireless/ath/ath6kl/debug.c mode = WMI_DEFAULT_ROAM_MODE; mode 1280 drivers/net/wireless/ath/ath6kl/debug.c mode = WMI_HOST_BIAS_ROAM_MODE; mode 1282 drivers/net/wireless/ath/ath6kl/debug.c mode = WMI_LOCK_BSS_MODE; mode 1286 drivers/net/wireless/ath/ath6kl/debug.c ret = ath6kl_wmi_set_roam_mode_cmd(ar->wmi, mode); mode 110 drivers/net/wireless/ath/ath6kl/sdio.c u8 mode, u8 opcode, u32 addr, mode 115 drivers/net/wireless/ath/ath6kl/sdio.c ((mode & 1) << 27) | mode 835 drivers/net/wireless/ath/ath6kl/wmi.c int ath6kl_wmi_set_roam_mode_cmd(struct wmi *wmi, enum wmi_roam_mode mode) mode 846 drivers/net/wireless/ath/ath6kl/wmi.c cmd->info.roam_mode = mode; mode 849 drivers/net/wireless/ath/ath6kl/wmi.c ath6kl_dbg(ATH6KL_DBG_WMI, "set roam mode %d\n", mode); mode 2770 drivers/net/wireless/ath/ath6kl/wmi.c int ret, mode, band; mode 2801 drivers/net/wireless/ath/ath6kl/wmi.c for (mode = 0; mode < WMI_RATES_MODE_MAX; mode++) { mode 2803 drivers/net/wireless/ath/ath6kl/wmi.c if (mode == WMI_RATES_MODE_11A || mode 2804 drivers/net/wireless/ath/ath6kl/wmi.c mode == WMI_RATES_MODE_11A_HT20 || mode 2805 drivers/net/wireless/ath/ath6kl/wmi.c mode == WMI_RATES_MODE_11A_HT40) mode 2809 drivers/net/wireless/ath/ath6kl/wmi.c cmd->ratemask[mode] = cpu_to_le64(ratemask[band]); mode 2822 drivers/net/wireless/ath/ath6kl/wmi.c int ret, mode, band; mode 2851 drivers/net/wireless/ath/ath6kl/wmi.c for (mode = 0; mode < WMI_RATES_MODE_MAX; mode++) { mode 2853 drivers/net/wireless/ath/ath6kl/wmi.c if (mode == WMI_RATES_MODE_11A || mode 2854 drivers/net/wireless/ath/ath6kl/wmi.c mode == WMI_RATES_MODE_11A_HT20 || mode 2855 drivers/net/wireless/ath/ath6kl/wmi.c mode == WMI_RATES_MODE_11A_HT40) mode 2859 drivers/net/wireless/ath/ath6kl/wmi.c cmd->ratemask[mode] = cpu_to_le32(ratemask[band]); mode 2658 drivers/net/wireless/ath/ath6kl/wmi.h int ath6kl_wmi_set_roam_mode_cmd(struct wmi *wmi, enum wmi_roam_mode mode); mode 4749 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c int mode, mode 4770 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c if (mode) { /* 5GHz */ mode 4962 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c int mode; mode 4979 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c mode = (frequency >= 4000); mode 4980 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c if (mode) mode 4992 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c if (!ar9003_hw_cal_pier_get(ah, mode, ipier, ichain, mode 5129 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c if (mode) { mode 526 drivers/net/wireless/ath/ath9k/ar9003_phy.c int mode; mode 533 drivers/net/wireless/ath/ath9k/ar9003_phy.c mode = 0; mode 537 drivers/net/wireless/ath/ath9k/ar9003_phy.c mode = 1; mode 558 drivers/net/wireless/ath/ath9k/ar9003_phy.c freq_offset = ath9k_hw_fbin2freq(spurChansPtr[i], mode); mode 566 drivers/net/wireless/ath/ath9k/ar9003_phy.c mode); mode 693 drivers/net/wireless/ath/ath9k/common-spectral.c char *mode = ""; mode 698 drivers/net/wireless/ath/ath9k/common-spectral.c mode = "disable"; mode 701 drivers/net/wireless/ath/ath9k/common-spectral.c mode = "background"; mode 704 drivers/net/wireless/ath/ath9k/common-spectral.c mode = "chanscan"; mode 707 drivers/net/wireless/ath/ath9k/common-spectral.c mode = "manual"; mode 710 drivers/net/wireless/ath/ath9k/common-spectral.c len = strlen(mode); mode 711 drivers/net/wireless/ath/ath9k/common-spectral.c return simple_read_from_buffer(user_buf, count, ppos, mode, len); mode 1034 drivers/net/wireless/ath/ath9k/common-spectral.c umode_t mode, mode 1040 drivers/net/wireless/ath/ath9k/common-spectral.c buf_file = debugfs_create_file(filename, mode, parent, buf, mode 600 drivers/net/wireless/ath/ath9k/htc.h enum ath9k_power_mode mode); mode 34 drivers/net/wireless/ath/ath9k/htc_drv_main.c enum ath9k_power_mode mode) mode 39 drivers/net/wireless/ath/ath9k/htc_drv_main.c ret = ath9k_hw_setpower(priv->ah, mode); mode 190 drivers/net/wireless/ath/ath9k/htc_drv_main.c enum htc_phymode mode; mode 224 drivers/net/wireless/ath/ath9k/htc_drv_main.c mode = ath9k_htc_get_curmode(priv, ah->curchan); mode 225 drivers/net/wireless/ath/ath9k/htc_drv_main.c htc_mode = cpu_to_be16(mode); mode 250 drivers/net/wireless/ath/ath9k/htc_drv_main.c enum htc_phymode mode; mode 295 drivers/net/wireless/ath/ath9k/htc_drv_main.c mode = ath9k_htc_get_curmode(priv, hchan); mode 296 drivers/net/wireless/ath/ath9k/htc_drv_main.c htc_mode = cpu_to_be16(mode); mode 915 drivers/net/wireless/ath/ath9k/htc_drv_main.c enum htc_phymode mode; mode 944 drivers/net/wireless/ath/ath9k/htc_drv_main.c mode = ath9k_htc_get_curmode(priv, init_channel); mode 945 drivers/net/wireless/ath/ath9k/htc_drv_main.c htc_mode = cpu_to_be16(mode); mode 2232 drivers/net/wireless/ath/ath9k/hw.c bool ath9k_hw_setpower(struct ath_hw *ah, enum ath9k_power_mode mode) mode 2243 drivers/net/wireless/ath/ath9k/hw.c if (ah->power_mode == mode) mode 2247 drivers/net/wireless/ath/ath9k/hw.c modes[ah->power_mode], modes[mode]); mode 2249 drivers/net/wireless/ath/ath9k/hw.c switch (mode) { mode 2264 drivers/net/wireless/ath/ath9k/hw.c ath_err(common, "Unknown power mode %u\n", mode); mode 2267 drivers/net/wireless/ath/ath9k/hw.c ah->power_mode = mode; mode 1075 drivers/net/wireless/ath/ath9k/hw.h bool ath9k_hw_setpower(struct ath_hw *ah, enum ath9k_power_mode mode); mode 84 drivers/net/wireless/ath/ath9k/main.c static bool ath9k_setpower(struct ath_softc *sc, enum ath9k_power_mode mode) mode 90 drivers/net/wireless/ath/ath9k/main.c ret = ath9k_hw_setpower(sc->sc_ah, mode); mode 147 drivers/net/wireless/ath/ath9k/main.c enum ath9k_power_mode mode; mode 165 drivers/net/wireless/ath/ath9k/main.c mode = ATH9K_PM_NETWORK_SLEEP; mode 176 drivers/net/wireless/ath/ath9k/main.c ath9k_hw_setpower(sc->sc_ah, mode); mode 152 drivers/net/wireless/ath/carl9170/cmd.c const u32 mode, const u32 addr, const u32 len) mode 162 drivers/net/wireless/ath/carl9170/cmd.c cmd->bcn_ctrl.mode = cpu_to_le32(mode); mode 55 drivers/net/wireless/ath/carl9170/cmd.h const u32 mode, const u32 addr, const u32 len); mode 191 drivers/net/wireless/ath/carl9170/fwcmd.h __le32 mode; mode 139 drivers/net/wireless/ath/wcn36xx/debug.c #define ADD_FILE(name, mode, fop, priv_data) \ mode 143 drivers/net/wireless/ath/wcn36xx/debug.c mode, dfs->rootdir, \ mode 977 drivers/net/wireless/ath/wcn36xx/hal.h enum wcn36xx_hal_sys_mode mode; mode 1008 drivers/net/wireless/ath/wcn36xx/hal.h enum wcn36xx_hal_sys_mode mode; mode 1088 drivers/net/wireless/ath/wcn36xx/hal.h enum wcn36xx_hal_sys_mode mode; mode 4105 drivers/net/wireless/ath/wcn36xx/hal.h enum pno_mode mode; mode 4156 drivers/net/wireless/ath/wcn36xx/hal.h enum pno_mode mode; mode 4793 drivers/net/wireless/ath/wcn36xx/hal.h enum wcn36xx_hal_thermal_mitigation_mode_type mode; mode 520 drivers/net/wireless/ath/wcn36xx/smd.c int wcn36xx_smd_init_scan(struct wcn36xx *wcn, enum wcn36xx_hal_sys_mode mode) mode 528 drivers/net/wireless/ath/wcn36xx/smd.c msg_body.mode = mode; mode 532 drivers/net/wireless/ath/wcn36xx/smd.c wcn36xx_dbg(WCN36XX_DBG_HAL, "hal init scan mode %d\n", msg_body.mode); mode 610 drivers/net/wireless/ath/wcn36xx/smd.c enum wcn36xx_hal_sys_mode mode) mode 618 drivers/net/wireless/ath/wcn36xx/smd.c msg_body.mode = mode; mode 623 drivers/net/wireless/ath/wcn36xx/smd.c msg_body.mode); mode 62 drivers/net/wireless/ath/wcn36xx/smd.h int wcn36xx_smd_init_scan(struct wcn36xx *wcn, enum wcn36xx_hal_sys_mode mode); mode 66 drivers/net/wireless/ath/wcn36xx/smd.h enum wcn36xx_hal_sys_mode mode); mode 48 drivers/net/wireless/ath/wil6210/debugfs.c umode_t mode; mode 426 drivers/net/wireless/ath/wil6210/debugfs.c static void wil_debugfs_create_iomem_x32(const char *name, umode_t mode, mode 436 drivers/net/wireless/ath/wil6210/debugfs.c debugfs_create_file_unsafe(name, mode, parent, data, &fops_iomem_x32); mode 473 drivers/net/wireless/ath/wil6210/debugfs.c debugfs_create_u32(tbl[i].name, tbl[i].mode, dbg, mode 477 drivers/net/wireless/ath/wil6210/debugfs.c debugfs_create_x32(tbl[i].name, tbl[i].mode, dbg, mode 481 drivers/net/wireless/ath/wil6210/debugfs.c debugfs_create_file_unsafe(tbl[i].name, tbl[i].mode, mode 486 drivers/net/wireless/ath/wil6210/debugfs.c wil_debugfs_create_iomem_x32(tbl[i].name, tbl[i].mode, mode 491 drivers/net/wireless/ath/wil6210/debugfs.c debugfs_create_u8(tbl[i].name, tbl[i].mode, dbg, mode 696 drivers/net/wireless/ath/wil6210/debugfs.c umode_t mode, mode 700 drivers/net/wireless/ath/wil6210/debugfs.c return debugfs_create_file(name, mode, parent, wil_blob, &fops_ioblob); mode 2371 drivers/net/wireless/ath/wil6210/debugfs.c umode_t mode; mode 2414 drivers/net/wireless/ath/wil6210/debugfs.c debugfs_create_file(dbg_files[i].name, dbg_files[i].mode, dbg, mode 2439 drivers/net/wireless/ath/wil6210/debugfs.c #define WIL_FIELD(name, mode, type) { __stringify(name), mode, \ mode 962 drivers/net/wireless/ath/wil6210/main.c static void wil_set_oob_mode(struct wil6210_priv *wil, u8 mode) mode 964 drivers/net/wireless/ath/wil6210/main.c wil_info(wil, "oob_mode to %d\n", mode); mode 965 drivers/net/wireless/ath/wil6210/main.c switch (mode) { mode 979 drivers/net/wireless/ath/wil6210/main.c wil_err(wil, "invalid oob_mode: %d\n", mode); mode 36 drivers/net/wireless/ath/wil6210/pcie_bus.c unsigned long mode, void *unused); mode 582 drivers/net/wireless/ath/wil6210/pcie_bus.c unsigned long mode, void *unused) mode 589 drivers/net/wireless/ath/wil6210/pcie_bus.c wil_dbg_pm(wil, "pm_notify: mode (%ld)\n", mode); mode 591 drivers/net/wireless/ath/wil6210/pcie_bus.c switch (mode) { mode 612 drivers/net/wireless/ath/wil6210/pcie_bus.c wil_dbg_pm(wil, "unhandled notify mode %ld\n", mode); mode 616 drivers/net/wireless/ath/wil6210/pcie_bus.c wil_dbg_pm(wil, "notification mode %ld: rc (%d)\n", mode, rc); mode 2623 drivers/net/wireless/ath/wil6210/wmi.c cmd.sniffer_cfg.mode = cpu_to_le32(WMI_SNIFFER_ON); mode 1164 drivers/net/wireless/ath/wil6210/wmi.h __le32 mode; mode 2945 drivers/net/wireless/ath/wil6210/wmi.h u8 mode; mode 2986 drivers/net/wireless/ath/wil6210/wmi.h u8 mode; mode 3166 drivers/net/wireless/ath/wil6210/wmi.h u8 mode; mode 2354 drivers/net/wireless/atmel/atmel.c iwe.u.mode = priv->BSSinfo[i].BSStype; mode 714 drivers/net/wireless/broadcom/b43/debugfs.c #define ADD_FILE(name, mode) \ mode 718 drivers/net/wireless/broadcom/b43/debugfs.c mode, e->subdir, dev, \ mode 826 drivers/net/wireless/broadcom/b43/phy_g.c b43_radio_interference_mitigation_enable(struct b43_wldev *dev, int mode) mode 834 drivers/net/wireless/broadcom/b43/phy_g.c switch (mode) { mode 992 drivers/net/wireless/broadcom/b43/phy_g.c b43_radio_interference_mitigation_disable(struct b43_wldev *dev, int mode) mode 998 drivers/net/wireless/broadcom/b43/phy_g.c switch (mode) { mode 2706 drivers/net/wireless/broadcom/b43/phy_g.c enum b43_interference_mitigation mode) mode 2717 drivers/net/wireless/broadcom/b43/phy_g.c switch (mode) { mode 2721 drivers/net/wireless/broadcom/b43/phy_g.c mode = B43_INTERFMODE_MANUALWLAN; mode 2723 drivers/net/wireless/broadcom/b43/phy_g.c mode = B43_INTERFMODE_NONE; mode 2734 drivers/net/wireless/broadcom/b43/phy_g.c if (currentmode == mode) mode 2739 drivers/net/wireless/broadcom/b43/phy_g.c if (mode == B43_INTERFMODE_NONE) { mode 2743 drivers/net/wireless/broadcom/b43/phy_g.c b43_radio_interference_mitigation_enable(dev, mode); mode 2744 drivers/net/wireless/broadcom/b43/phy_g.c gphy->interfmode = mode; mode 1134 drivers/net/wireless/broadcom/b43/phy_lp.c enum b43_lpphy_txpctl_mode mode) mode 1141 drivers/net/wireless/broadcom/b43/phy_lp.c if (oldmode == mode) mode 1143 drivers/net/wireless/broadcom/b43/phy_lp.c lpphy->txpctl_mode = mode; mode 1149 drivers/net/wireless/broadcom/b43/phy_lp.c if (mode == B43_LPPHY_TXPCTL_HW) { mode 1161 drivers/net/wireless/broadcom/b43/phy_lp.c if (mode == B43_LPPHY_TXPCTL_HW) mode 1458 drivers/net/wireless/broadcom/b43/phy_lp.c static void lpphy_set_tssi_mux(struct b43_wldev *dev, enum tssi_mux_mode mode) mode 1460 drivers/net/wireless/broadcom/b43/phy_lp.c if (mode != TSSI_MUX_EXT) { mode 1464 drivers/net/wireless/broadcom/b43/phy_lp.c if (mode == TSSI_MUX_POSTPA) { mode 85 drivers/net/wireless/broadcom/b43/sysfs.c int mode; mode 90 drivers/net/wireless/broadcom/b43/sysfs.c mode = get_integer(buf, count); mode 91 drivers/net/wireless/broadcom/b43/sysfs.c switch (mode) { mode 93 drivers/net/wireless/broadcom/b43/sysfs.c mode = B43_INTERFMODE_NONE; mode 96 drivers/net/wireless/broadcom/b43/sysfs.c mode = B43_INTERFMODE_NONWLAN; mode 99 drivers/net/wireless/broadcom/b43/sysfs.c mode = B43_INTERFMODE_MANUALWLAN; mode 102 drivers/net/wireless/broadcom/b43/sysfs.c mode = B43_INTERFMODE_AUTOWLAN; mode 111 drivers/net/wireless/broadcom/b43/sysfs.c err = wldev->phy.ops->interf_mitigation(wldev, mode); mode 397 drivers/net/wireless/broadcom/b43legacy/debugfs.c #define ADD_FILE(name, mode) \ mode 401 drivers/net/wireless/broadcom/b43legacy/debugfs.c mode, e->subdir, dev, \ mode 973 drivers/net/wireless/broadcom/b43legacy/radio.c int mode) mode 982 drivers/net/wireless/broadcom/b43legacy/radio.c switch (mode) { mode 1219 drivers/net/wireless/broadcom/b43legacy/radio.c int mode) mode 1225 drivers/net/wireless/broadcom/b43legacy/radio.c switch (mode) { mode 1323 drivers/net/wireless/broadcom/b43legacy/radio.c int mode) mode 1333 drivers/net/wireless/broadcom/b43legacy/radio.c switch (mode) { mode 1337 drivers/net/wireless/broadcom/b43legacy/radio.c mode = B43legacy_RADIO_INTERFMODE_MANUALWLAN; mode 1339 drivers/net/wireless/broadcom/b43legacy/radio.c mode = B43legacy_RADIO_INTERFMODE_NONE; mode 1350 drivers/net/wireless/broadcom/b43legacy/radio.c if (currentmode == mode) mode 1356 drivers/net/wireless/broadcom/b43legacy/radio.c if (mode == B43legacy_RADIO_INTERFMODE_NONE) { mode 1360 drivers/net/wireless/broadcom/b43legacy/radio.c b43legacy_radio_interference_mitigation_enable(dev, mode); mode 1361 drivers/net/wireless/broadcom/b43legacy/radio.c phy->interfmode = mode; mode 73 drivers/net/wireless/broadcom/b43legacy/radio.h int mode); mode 103 drivers/net/wireless/broadcom/b43legacy/sysfs.c int mode; mode 108 drivers/net/wireless/broadcom/b43legacy/sysfs.c mode = get_integer(buf, count); mode 109 drivers/net/wireless/broadcom/b43legacy/sysfs.c switch (mode) { mode 111 drivers/net/wireless/broadcom/b43legacy/sysfs.c mode = B43legacy_INTERFMODE_NONE; mode 114 drivers/net/wireless/broadcom/b43legacy/sysfs.c mode = B43legacy_INTERFMODE_NONWLAN; mode 117 drivers/net/wireless/broadcom/b43legacy/sysfs.c mode = B43legacy_INTERFMODE_MANUALWLAN; mode 120 drivers/net/wireless/broadcom/b43legacy/sysfs.c mode = B43legacy_INTERFMODE_AUTOWLAN; mode 129 drivers/net/wireless/broadcom/b43legacy/sysfs.c err = b43legacy_radio_set_interference_mitigation(wldev, mode); mode 452 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c enum brcmf_btcoex_mode mode, u16 duration) mode 458 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c switch (mode) { mode 16 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.h enum brcmf_btcoex_mode mode, u16 duration); mode 5143 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c info.mode = (u8)ret; mode 97 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c u32 mode; mode 100 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c mode = BRCMF_ARP_OL_AGENT | BRCMF_ARP_OL_PEER_AUTO_REPLY; mode 102 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c mode = 0; mode 106 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c err = brcmf_fil_iovar_int_set(ifp, "arp_ol", mode); mode 109 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c mode, err); mode 117 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c enable, mode); mode 127 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c enable, mode); mode 253 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h u8 mode; /* mode: depends on iovar */ mode 511 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c u8 mode; mode 890 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (BRCMF_FWS_MODE_GET_REUSESEQ(fws->mode)) mode 903 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (BRCMF_FWS_MODE_GET_REUSESEQ(fws->mode)) { mode 1527 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (BRCMF_FWS_MODE_GET_REUSESEQ(fws->mode)) mode 1575 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (BRCMF_FWS_MODE_GET_REUSESEQ(fws->mode)) { mode 2346 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c u32 mode; mode 2412 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (brcmf_fil_iovar_int_get(ifp, "wlfc_mode", &mode) == 0) { mode 2413 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c if (BRCMF_FWS_MODE_GET_REUSESEQ(mode)) { mode 2414 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c mode = 0; mode 2415 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c BRCMF_FWS_MODE_SET_REUSESEQ(mode, 1); mode 2417 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c "wlfc_mode", mode) == 0) { mode 2418 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c BRCMF_FWS_MODE_SET_REUSESEQ(fws->mode, 1); mode 670 drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.c bool ai_clkctl_cc(struct si_pub *sih, enum bcma_clkmode mode) mode 678 drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.c bcma_core_set_clockmode(cc, mode); mode 679 drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.c return mode == BCMA_CLKMODE_FAST; mode 183 drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.h bool ai_clkctl_cc(struct si_pub *sih, enum bcma_clkmode mode); mode 617 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c u16 mode = info->ht_operation_mode; mode 621 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c mode & IEEE80211_HT_OP_MODE_PROTECTION); mode 623 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c mode & IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT); mode 625 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c mode & IEEE80211_HT_OP_MODE_NON_HT_STA_PRSNT); mode 1243 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c static void brcms_b_clkctl_clk(struct brcms_hardware *wlc_hw, enum bcma_clkmode mode) mode 1253 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (mode == BCMA_CLKMODE_FAST) { mode 1284 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_hw->forcefastclk = (mode == BCMA_CLKMODE_FAST); mode 1291 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_hw->forcefastclk = ai_clkctl_cc(wlc_hw->sih, mode); mode 2881 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c void wlc_lcnphy_epa_switch(struct brcms_phy *pi, bool mode) mode 2885 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (mode) { mode 962 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_set_tx_pwr_ctrl(struct brcms_phy *pi, u16 mode); mode 982 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h u16 wlc_lcnphy_tempsense(struct brcms_phy *pi, bool mode); mode 983 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h s16 wlc_lcnphy_tempsense_new(struct brcms_phy *pi, bool mode); mode 984 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h s8 wlc_lcnphy_tempsense_degree(struct brcms_phy *pi, bool mode); mode 985 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h s8 wlc_lcnphy_vbatsense(struct brcms_phy *pi, bool mode); mode 988 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_epa_switch(struct brcms_phy *pi, bool mode); mode 1014 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_calib_modes(struct brcms_phy *pi, uint mode); mode 1015 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_lcnphy_deaf_mode(struct brcms_phy *pi, bool mode); mode 1034 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_nphy_deaf_mode(struct brcms_phy *pi, bool mode); mode 1105 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h int wlc_phy_tx_tone_nphy(struct brcms_phy *pi, u32 f_kHz, u16 max_val, u8 mode, mode 2126 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c enum lcnphy_tssi_mode mode; mode 2131 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mode = LCNPHY_TSSI_EXT; mode 2134 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mode = LCNPHY_TSSI_POST_PA; mode 2156 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c wlc_lcnphy_set_tssi_mux(pi, mode); mode 2433 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static u16 wlc_lcnphy_set_tx_pwr_ctrl_mode(struct brcms_phy *pi, u16 mode) mode 2436 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u16 current_mode = mode; mode 2438 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mode == LCNPHY_TX_PWR_CTRL_HW) mode 2441 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mode == LCNPHY_TX_PWR_CTRL_TEMPBASED) mode 2446 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_lcnphy_set_tx_pwr_ctrl(struct brcms_phy *pi, u16 mode) mode 2452 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mode = wlc_lcnphy_set_tx_pwr_ctrl_mode(pi, mode); mode 2456 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c ((LCNPHY_TX_PWR_CTRL_HW == mode) ? 1 : 0) << 6); mode 2459 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c ((LCNPHY_TX_PWR_CTRL_HW == mode) ? 0 : 1) << 4); mode 2461 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (old_mode != mode) { mode 2468 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (LCNPHY_TX_PWR_CTRL_HW == mode) { mode 2487 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c ((0x1 << 15) | (0x1 << 14) | (0x1 << 13)), mode); mode 2488 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (mode == LCNPHY_TX_PWR_CTRL_TEMPBASED) { mode 2924 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_vbat_temp_sense_setup(struct brcms_phy *pi, u8 mode) mode 3014 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (mode == TEMPSENSE) { mode 3371 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_lcnphy_deaf_mode(struct brcms_phy *pi, bool mode) mode 3377 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x4b0, (0x1 << 5), (mode) << 5); mode 3385 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->radio_chanspec)) ? (!mode) : 0) << mode 3386 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c 6 | (!mode) << 5); mode 3387 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c mod_phy_reg(pi, 0x410, (0x1 << 7), (mode) << 7); mode 3568 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c s16 *ptr, int mode) mode 3594 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c write_phy_reg(pi, 0x5a2, (u16) (mode | mode << 6)); mode 4007 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c s16 wlc_lcnphy_tempsense_new(struct brcms_phy *pi, bool mode) mode 4013 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (mode == 1) { mode 4036 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (mode == 1) { mode 4049 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c u16 wlc_lcnphy_tempsense(struct brcms_phy *pi, bool mode) mode 4057 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (mode == 1) { mode 4091 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (mode) mode 4094 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (mode == 1) { mode 4107 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c s8 wlc_lcnphy_tempsense_degree(struct brcms_phy *pi, bool mode) mode 4109 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c s32 degree = wlc_lcnphy_tempsense_new(pi, mode); mode 4117 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c s8 wlc_lcnphy_vbatsense(struct brcms_phy *pi, bool mode) mode 4123 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (mode == 1) { mode 4142 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (mode == 1) { mode 4149 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_afe_clk_init(struct brcms_phy *pi, u8 mode) mode 4156 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c if (((mode == AFE_CLK_INIT_MODE_PAPD) && (phybw40 == 0)) || mode 4157 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c (mode == AFE_CLK_INIT_MODE_TXRX2X)) mode 4260 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c void wlc_lcnphy_calib_modes(struct brcms_phy *pi, uint mode) mode 4266 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c switch (mode) { mode 28612 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c void wlc_nphy_deaf_mode(struct brcms_phy *pi, bool mode) mode 28616 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (mode) { mode 663 drivers/net/wireless/cisco/airo.c __le16 mode; mode 4653 drivers/net/wireless/cisco/airo.c u16 mode; mode 4667 drivers/net/wireless/cisco/airo.c mode = le16_to_cpu(status_rid.mode); mode 4670 drivers/net/wireless/cisco/airo.c mode & 1 ? "CFG ": "", mode 4671 drivers/net/wireless/cisco/airo.c mode & 2 ? "ACT ": "", mode 4672 drivers/net/wireless/cisco/airo.c mode & 0x10 ? "SYN ": "", mode 4673 drivers/net/wireless/cisco/airo.c mode & 0x20 ? "LNK ": "", mode 4674 drivers/net/wireless/cisco/airo.c mode & 0x40 ? "LEAP ": "", mode 4675 drivers/net/wireless/cisco/airo.c mode & 0x80 ? "PRIV ": "", mode 4676 drivers/net/wireless/cisco/airo.c mode & 0x100 ? "KEY ": "", mode 4677 drivers/net/wireless/cisco/airo.c mode & 0x200 ? "WEP ": "", mode 4678 drivers/net/wireless/cisco/airo.c mode & 0x8000 ? "ERR ": ""); mode 4691 drivers/net/wireless/cisco/airo.c le16_to_cpu(status_rid.mode), mode 4991 drivers/net/wireless/cisco/airo.c static const char *get_rmode(__le16 mode) mode 4993 drivers/net/wireless/cisco/airo.c switch(mode & RXMODE_MASK) { mode 5007 drivers/net/wireless/cisco/airo.c __le16 mode; mode 5026 drivers/net/wireless/cisco/airo.c mode = ai->config.opmode & MODE_CFG_MASK; mode 5035 drivers/net/wireless/cisco/airo.c mode == MODE_STA_IBSS ? "adhoc" : mode 5036 drivers/net/wireless/cisco/airo.c mode == MODE_STA_ESS ? get_rmode(ai->config.rmode): mode 5037 drivers/net/wireless/cisco/airo.c mode == MODE_AP ? "AP" : mode 5038 drivers/net/wireless/cisco/airo.c mode == MODE_AP_RPTR ? "AP RPTR" : "Error", mode 5744 drivers/net/wireless/cisco/airo.c if ((status_rid->mode & cpu_to_le16(0x3f)) != cpu_to_le16(0x3f)) mode 7068 drivers/net/wireless/cisco/airo.c __le16 mode; mode 7071 drivers/net/wireless/cisco/airo.c mode = local->config.powerSaveMode; mode 7072 drivers/net/wireless/cisco/airo.c if ((vwrq->disabled = (mode == POWERSAVE_CAM))) mode 7300 drivers/net/wireless/cisco/airo.c iwe.u.mode = IW_MODE_MASTER; mode 7302 drivers/net/wireless/cisco/airo.c iwe.u.mode = IW_MODE_ADHOC; mode 7723 drivers/net/wireless/cisco/airo.c local->wstats.status = le16_to_cpu(status_rid.mode); mode 187 drivers/net/wireless/intel/ipw2x00/ipw2100.c module_param_named(mode, network_mode, int, 0444); mode 193 drivers/net/wireless/intel/ipw2x00/ipw2100.c MODULE_PARM_DESC(mode, "network mode (0=BSS,1=IBSS,2=Monitor)"); mode 2347 drivers/net/wireless/intel/ipw2x00/ipw2100.c size_t len, int mode) mode 2355 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (mode == SEARCH_SNAPSHOT) { mode 2357 drivers/net/wireless/intel/ipw2x00/ipw2100.c mode = SEARCH_DISCARD; mode 2362 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (mode == SEARCH_SNAPSHOT) mode 2378 drivers/net/wireless/intel/ipw2x00/ipw2100.c } else if (mode == SEARCH_DISCARD) mode 4007 drivers/net/wireless/intel/ipw2x00/ipw2100.c static int ipw2100_switch_mode(struct ipw2100_priv *priv, u32 mode) mode 4011 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (mode == priv->ieee->iw_mode) mode 4021 drivers/net/wireless/intel/ipw2x00/ipw2100.c switch (mode) { mode 4036 drivers/net/wireless/intel/ipw2x00/ipw2100.c priv->ieee->iw_mode = mode; mode 6700 drivers/net/wireless/intel/ipw2x00/ipw2100.c IPW_DEBUG_WX("SET Mode -> %d\n", wrqu->mode); mode 6702 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (wrqu->mode == priv->ieee->iw_mode) mode 6711 drivers/net/wireless/intel/ipw2x00/ipw2100.c switch (wrqu->mode) { mode 6742 drivers/net/wireless/intel/ipw2x00/ipw2100.c wrqu->mode = priv->ieee->iw_mode; mode 6743 drivers/net/wireless/intel/ipw2x00/ipw2100.c IPW_DEBUG_WX("GET Mode -> %d\n", wrqu->mode); mode 7853 drivers/net/wireless/intel/ipw2x00/ipw2100.c int err = 0, mode = *(int *)extra; mode 7861 drivers/net/wireless/intel/ipw2x00/ipw2100.c if ((mode < 0) || (mode > POWER_MODES)) mode 7862 drivers/net/wireless/intel/ipw2x00/ipw2100.c mode = IPW_POWER_AUTO; mode 7864 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (IPW_POWER_LEVEL(priv->power_mode) != mode) mode 7865 drivers/net/wireless/intel/ipw2x00/ipw2100.c err = ipw2100_set_power_mode(priv, mode); mode 7917 drivers/net/wireless/intel/ipw2x00/ipw2100.c int err, mode = *(int *)extra; mode 7925 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (mode == 1) mode 7927 drivers/net/wireless/intel/ipw2x00/ipw2100.c else if (mode == 0) mode 7965 drivers/net/wireless/intel/ipw2x00/ipw2100.c int err, mode = *(int *)extra; mode 7973 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (mode == 1) mode 7975 drivers/net/wireless/intel/ipw2x00/ipw2100.c else if (mode == 0) mode 8343 drivers/net/wireless/intel/ipw2x00/ipw2100.c short mode; mode 1045 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (priv->assoc_network->mode == IEEE_A) { mode 1049 drivers/net/wireless/intel/ipw2x00/ipw2200.c } else if (priv->assoc_network->mode == IEEE_G) { mode 2539 drivers/net/wireless/intel/ipw2x00/ipw2200.c static int ipw_send_power_mode(struct ipw_priv *priv, u32 mode) mode 2550 drivers/net/wireless/intel/ipw2x00/ipw2200.c switch (mode) { mode 2558 drivers/net/wireless/intel/ipw2x00/ipw2200.c param = cpu_to_le32(mode); mode 4178 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (priv->ieee->mode == IEEE_B) mode 5353 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (!ipw_is_rate_in_mask(priv, network->mode, mode 5376 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (!ipw_is_rate_in_mask(priv, network->mode, mode 5576 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (!libipw_is_valid_mode(priv->ieee, network->mode)) { mode 5763 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (!libipw_is_valid_mode(priv->ieee, network->mode)) { mode 5828 drivers/net/wireless/intel/ipw2x00/ipw2200.c network->mode = IEEE_A; mode 5838 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (priv->ieee->mode & IEEE_G) mode 5839 drivers/net/wireless/intel/ipw2x00/ipw2200.c network->mode = IEEE_G; mode 5841 drivers/net/wireless/intel/ipw2x00/ipw2200.c network->mode = IEEE_B; mode 5852 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (priv->ieee->mode & IEEE_A) { mode 5853 drivers/net/wireless/intel/ipw2x00/ipw2200.c network->mode = IEEE_A; mode 5855 drivers/net/wireless/intel/ipw2x00/ipw2200.c } else if (priv->ieee->mode & IEEE_G) { mode 5856 drivers/net/wireless/intel/ipw2x00/ipw2200.c network->mode = IEEE_G; mode 5859 drivers/net/wireless/intel/ipw2x00/ipw2200.c network->mode = IEEE_B; mode 6067 drivers/net/wireless/intel/ipw2x00/ipw2200.c static void ipw_set_fixed_rate(struct ipw_priv *priv, int mode) mode 6094 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (mode == IEEE_B) { mode 6820 drivers/net/wireless/intel/ipw2x00/ipw2200.c u8 mode = 0; mode 6826 drivers/net/wireless/intel/ipw2x00/ipw2200.c mode = priv->assoc_network->mode; mode 6829 drivers/net/wireless/intel/ipw2x00/ipw2200.c mode = priv->ieee->mode; mode 6831 drivers/net/wireless/intel/ipw2x00/ipw2200.c IPW_DEBUG_QOS("QoS network/card mode %d\n", mode); mode 6832 drivers/net/wireless/intel/ipw2x00/ipw2200.c return mode; mode 6863 drivers/net/wireless/intel/ipw2x00/ipw2200.c if ((priv->ieee->mode == IEEE_B) || (network->mode == IEEE_B)) mode 7079 drivers/net/wireless/intel/ipw2x00/ipw2200.c if ((network->mode == IEEE_B) || (priv->ieee->mode == IEEE_B)) mode 7279 drivers/net/wireless/intel/ipw2x00/ipw2200.c ipw_set_fixed_rate(priv, network->mode); mode 7318 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (network->mode & priv->ieee->mode & IEEE_A) mode 7320 drivers/net/wireless/intel/ipw2x00/ipw2200.c else if (network->mode & priv->ieee->mode & IEEE_G) mode 7322 drivers/net/wireless/intel/ipw2x00/ipw2200.c else if (network->mode & priv->ieee->mode & IEEE_B) mode 8549 drivers/net/wireless/intel/ipw2x00/ipw2200.c priv->ieee->mode = IEEE_A | IEEE_G | IEEE_B; mode 8561 drivers/net/wireless/intel/ipw2x00/ipw2200.c priv->ieee->mode = IEEE_G | IEEE_B; mode 8740 drivers/net/wireless/intel/ipw2x00/ipw2200.c IPW_DEBUG_WX("Set MODE: %d\n", wrqu->mode); mode 8742 drivers/net/wireless/intel/ipw2x00/ipw2200.c switch (wrqu->mode) { mode 8750 drivers/net/wireless/intel/ipw2x00/ipw2200.c wrqu->mode = IW_MODE_INFRA; mode 8755 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (wrqu->mode == priv->ieee->iw_mode) mode 8766 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (wrqu->mode == IW_MODE_MONITOR) mode 8778 drivers/net/wireless/intel/ipw2x00/ipw2200.c priv->ieee->iw_mode = wrqu->mode; mode 8791 drivers/net/wireless/intel/ipw2x00/ipw2200.c wrqu->mode = priv->ieee->iw_mode; mode 8792 drivers/net/wireless/intel/ipw2x00/ipw2200.c IPW_DEBUG_WX("Get MODE -> %d\n", wrqu->mode); mode 8861 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (priv->ieee->mode & (IEEE_B | IEEE_G)) { mode 8874 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (priv->ieee->mode & IEEE_A) { mode 9212 drivers/net/wireless/intel/ipw2x00/ipw2200.c ipw_set_fixed_rate(priv, priv->ieee->mode); mode 9585 drivers/net/wireless/intel/ipw2x00/ipw2200.c int mode = *(int *)extra; mode 9589 drivers/net/wireless/intel/ipw2x00/ipw2200.c if ((mode < 1) || (mode > IPW_POWER_LIMIT)) mode 9590 drivers/net/wireless/intel/ipw2x00/ipw2200.c mode = IPW_POWER_AC; mode 9592 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (IPW_POWER_LEVEL(priv->power_mode) != mode) { mode 9593 drivers/net/wireless/intel/ipw2x00/ipw2200.c err = ipw_send_power_mode(priv, mode); mode 9599 drivers/net/wireless/intel/ipw2x00/ipw2200.c priv->power_mode = IPW_POWER_ENABLED | mode; mode 9643 drivers/net/wireless/intel/ipw2x00/ipw2200.c int mode = *(int *)extra; mode 9646 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (mode == 0 || mode & ~IEEE_MODE_MASK) { mode 9647 drivers/net/wireless/intel/ipw2x00/ipw2200.c IPW_WARNING("Attempt to set invalid wireless mode: %d\n", mode); mode 9653 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (mode & IEEE_A) { mode 9659 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (mode & IEEE_A) { mode 9669 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (mode & IEEE_B) { mode 9675 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (mode & IEEE_G) { mode 9681 drivers/net/wireless/intel/ipw2x00/ipw2200.c priv->ieee->mode = mode; mode 9697 drivers/net/wireless/intel/ipw2x00/ipw2200.c mode & IEEE_A ? 'a' : '.', mode 9698 drivers/net/wireless/intel/ipw2x00/ipw2200.c mode & IEEE_B ? 'b' : '.', mode & IEEE_G ? 'g' : '.'); mode 9709 drivers/net/wireless/intel/ipw2x00/ipw2200.c switch (priv->ieee->mode) { mode 9750 drivers/net/wireless/intel/ipw2x00/ipw2200.c int mode = *(int *)extra; mode 9753 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (mode == 1) { mode 9766 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (mode == 0) { mode 10365 drivers/net/wireless/intel/ipw2x00/ipw2200.c else if (priv->ieee->mode == IEEE_B) /* 802.11b */ mode 12014 drivers/net/wireless/intel/ipw2x00/ipw2200.c module_param_named(mode, network_mode, int, 0444); mode 12015 drivers/net/wireless/intel/ipw2x00/ipw2200.c MODULE_PARM_DESC(mode, "network mode (0=BSS,1=IBSS,2=Monitor)"); mode 12017 drivers/net/wireless/intel/ipw2x00/ipw2200.c module_param_named(mode, network_mode, int, 0444); mode 12018 drivers/net/wireless/intel/ipw2x00/ipw2200.c MODULE_PARM_DESC(mode, "network mode (0=BSS,1=IBSS)"); mode 415 drivers/net/wireless/intel/ipw2x00/libipw.h u8 mode; mode 601 drivers/net/wireless/intel/ipw2x00/libipw.h u8 mode; mode 631 drivers/net/wireless/intel/ipw2x00/libipw.h u8 mode; mode 782 drivers/net/wireless/intel/ipw2x00/libipw.h int mode; /* A, B, G */ mode 847 drivers/net/wireless/intel/ipw2x00/libipw.h int mode) mode 855 drivers/net/wireless/intel/ipw2x00/libipw.h if ((mode & IEEE_A) && mode 860 drivers/net/wireless/intel/ipw2x00/libipw.h if ((mode & IEEE_G) && mode 865 drivers/net/wireless/intel/ipw2x00/libipw.h if ((mode & IEEE_B) && mode 47 drivers/net/wireless/intel/ipw2x00/libipw_geo.c (!(ieee->mode & IEEE_G) || mode 1360 drivers/net/wireless/intel/ipw2x00/libipw_rx.c network->mode = 0; mode 1362 drivers/net/wireless/intel/ipw2x00/libipw_rx.c network->mode = IEEE_A; mode 1365 drivers/net/wireless/intel/ipw2x00/libipw_rx.c network->mode |= IEEE_G; mode 1367 drivers/net/wireless/intel/ipw2x00/libipw_rx.c network->mode |= IEEE_B; mode 1420 drivers/net/wireless/intel/ipw2x00/libipw_rx.c network->mode = 0; mode 1422 drivers/net/wireless/intel/ipw2x00/libipw_rx.c network->mode = IEEE_A; mode 1425 drivers/net/wireless/intel/ipw2x00/libipw_rx.c network->mode |= IEEE_G; mode 1427 drivers/net/wireless/intel/ipw2x00/libipw_rx.c network->mode |= IEEE_B; mode 1430 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if (network->mode == 0) { mode 1479 drivers/net/wireless/intel/ipw2x00/libipw_rx.c dst->mode = src->mode; mode 75 drivers/net/wireless/intel/ipw2x00/libipw_wx.c libipw_modes[network->mode]); mode 82 drivers/net/wireless/intel/ipw2x00/libipw_wx.c iwe.u.mode = IW_MODE_MASTER; mode 84 drivers/net/wireless/intel/ipw2x00/libipw_wx.c iwe.u.mode = IW_MODE_ADHOC; mode 153 drivers/net/wireless/intel/iwlegacy/3945-mac.c il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; mode 189 drivers/net/wireless/intel/iwlegacy/3945-mac.c il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; mode 743 drivers/net/wireless/intel/iwlegacy/3945.c station->sta.mode = STA_CONTROL_MODIFY_MSK; mode 2241 drivers/net/wireless/intel/iwlegacy/3945.c addsta->mode = cmd->mode; mode 3272 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; mode 3320 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; mode 3401 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; mode 3454 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; mode 3597 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; mode 3624 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; mode 3651 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; mode 3670 drivers/net/wireless/intel/iwlegacy/4965-mac.c il->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; mode 1705 drivers/net/wireless/intel/iwlegacy/4965.c addsta->mode = cmd->mode; mode 957 drivers/net/wireless/intel/iwlegacy/commands.h u8 mode; /* 1: modify existing, 0: add new station */ mode 985 drivers/net/wireless/intel/iwlegacy/commands.h u8 mode; /* 1: modify existing, 0: add new station */ mode 1023 drivers/net/wireless/intel/iwlegacy/commands.h u8 mode; /* 1: modify existing, 0: add new station */ mode 536 drivers/net/wireless/intel/iwlegacy/common.c int mode = led_mode; mode 539 drivers/net/wireless/intel/iwlegacy/common.c if (mode == IL_LED_DEFAULT) mode 540 drivers/net/wireless/intel/iwlegacy/common.c mode = il->cfg->led_mode; mode 548 drivers/net/wireless/intel/iwlegacy/common.c switch (mode) { mode 1797 drivers/net/wireless/intel/iwlegacy/common.c il->stations[sta_id].sta.mode == mode 1810 drivers/net/wireless/intel/iwlegacy/common.c il->stations[sta_id].sta.mode == mode 1980 drivers/net/wireless/intel/iwlegacy/common.c station->sta.mode = 0; mode 2258 drivers/net/wireless/intel/iwlegacy/common.c il->stations[i].sta.mode = 0; mode 112 drivers/net/wireless/intel/iwlegacy/debug.c #define DEBUGFS_ADD_FILE(name, parent, mode) do { \ mode 113 drivers/net/wireless/intel/iwlegacy/debug.c debugfs_create_file(#name, mode, parent, il, \ mode 62 drivers/net/wireless/intel/iwlegacy/iwl-spectrum.h u8 mode; mode 70 drivers/net/wireless/intel/iwlegacy/iwl-spectrum.h u8 mode; mode 892 drivers/net/wireless/intel/iwlwifi/dvm/commands.h u8 mode; /* 1: modify existing, 0: add new station */ mode 26 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c #define DEBUGFS_ADD_FILE(name, parent, mode) do { \ mode 27 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c debugfs_create_file(#name, mode, parent, priv, \ mode 162 drivers/net/wireless/intel/iwlwifi/dvm/led.c int mode = iwlwifi_mod_params.led_mode; mode 165 drivers/net/wireless/intel/iwlwifi/dvm/led.c if (mode == IWL_LED_DISABLE) { mode 169 drivers/net/wireless/intel/iwlwifi/dvm/led.c if (mode == IWL_LED_DEFAULT) mode 170 drivers/net/wireless/intel/iwlwifi/dvm/led.c mode = priv->cfg->led_mode; mode 181 drivers/net/wireless/intel/iwlwifi/dvm/led.c switch (mode) { mode 1534 drivers/net/wireless/intel/iwlwifi/dvm/mac80211.c .mode = STA_CONTROL_MODIFY_MSK, mode 405 drivers/net/wireless/intel/iwlwifi/dvm/main.c u32 capacity, u32 mode) mode 412 drivers/net/wireless/intel/iwlwifi/dvm/main.c if (mode == 0) mode 440 drivers/net/wireless/intel/iwlwifi/dvm/main.c if (mode == 0) { mode 458 drivers/net/wireless/intel/iwlwifi/dvm/main.c u32 mode; mode 463 drivers/net/wireless/intel/iwlwifi/dvm/main.c u32 mode; /* 0 - no timestamp, 1 - timestamp recorded */ mode 472 drivers/net/wireless/intel/iwlwifi/dvm/main.c mode = read.mode; mode 501 drivers/net/wireless/intel/iwlwifi/dvm/main.c capacity, mode); mode 518 drivers/net/wireless/intel/iwlwifi/dvm/main.c capacity, mode); mode 521 drivers/net/wireless/intel/iwlwifi/dvm/main.c priv, base, 0, next_entry, capacity, mode); mode 526 drivers/net/wireless/intel/iwlwifi/dvm/main.c capacity, mode); mode 529 drivers/net/wireless/intel/iwlwifi/dvm/main.c priv, base, 0, next_entry, capacity, mode); mode 1697 drivers/net/wireless/intel/iwlwifi/dvm/main.c u32 num_events, u32 mode, mode 1721 drivers/net/wireless/intel/iwlwifi/dvm/main.c if (mode == 0) mode 1740 drivers/net/wireless/intel/iwlwifi/dvm/main.c if (mode == 0) { mode 1777 drivers/net/wireless/intel/iwlwifi/dvm/main.c u32 size, u32 mode, mode 1788 drivers/net/wireless/intel/iwlwifi/dvm/main.c size - next_entry, mode, mode 1791 drivers/net/wireless/intel/iwlwifi/dvm/main.c next_entry, mode, mode 1795 drivers/net/wireless/intel/iwlwifi/dvm/main.c size, mode, pos, buf, bufsz); mode 1799 drivers/net/wireless/intel/iwlwifi/dvm/main.c mode, pos, buf, bufsz); mode 1802 drivers/net/wireless/intel/iwlwifi/dvm/main.c size, mode, pos, buf, bufsz); mode 1815 drivers/net/wireless/intel/iwlwifi/dvm/main.c u32 mode; /* 0 - no timestamp, 1 - timestamp recorded */ mode 1846 drivers/net/wireless/intel/iwlwifi/dvm/main.c mode = iwl_trans_read_mem32(trans, base + (1 * sizeof(u32))); mode 1894 drivers/net/wireless/intel/iwlwifi/dvm/main.c capacity - next_entry, mode, mode 1898 drivers/net/wireless/intel/iwlwifi/dvm/main.c next_entry, mode, pos, buf, bufsz); mode 1901 drivers/net/wireless/intel/iwlwifi/dvm/main.c next_entry, size, mode, mode 1905 drivers/net/wireless/intel/iwlwifi/dvm/main.c next_entry, size, mode, mode 216 drivers/net/wireless/intel/iwlwifi/dvm/sta.c cmd.mode = STA_CONTROL_MODIFY_MSK; mode 301 drivers/net/wireless/intel/iwlwifi/dvm/sta.c station->sta.mode = 0; mode 672 drivers/net/wireless/intel/iwlwifi/dvm/sta.c priv->stations[i].sta.mode = 0; mode 1129 drivers/net/wireless/intel/iwlwifi/dvm/sta.c sta_cmd.mode = STA_CONTROL_MODIFY_MSK; mode 1198 drivers/net/wireless/intel/iwlwifi/dvm/sta.c sta_cmd.mode = STA_CONTROL_MODIFY_MSK; mode 1357 drivers/net/wireless/intel/iwlwifi/dvm/sta.c priv->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; mode 1381 drivers/net/wireless/intel/iwlwifi/dvm/sta.c priv->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; mode 1406 drivers/net/wireless/intel/iwlwifi/dvm/sta.c priv->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; mode 1418 drivers/net/wireless/intel/iwlwifi/dvm/sta.c .mode = STA_CONTROL_MODIFY_MSK, mode 106 drivers/net/wireless/intel/iwlwifi/fw/api/coex.h __le32 mode; mode 577 drivers/net/wireless/intel/iwlwifi/fw/api/power.h #define IWL_BF_CMD_CONFIG(mode) \ mode 578 drivers/net/wireless/intel/iwlwifi/fw/api/power.h .bf_energy_delta = cpu_to_le32(IWL_BF_ENERGY_DELTA ## mode), \ mode 580 drivers/net/wireless/intel/iwlwifi/fw/api/power.h cpu_to_le32(IWL_BF_ROAMING_ENERGY_DELTA ## mode), \ mode 581 drivers/net/wireless/intel/iwlwifi/fw/api/power.h .bf_roaming_state = cpu_to_le32(IWL_BF_ROAMING_STATE ## mode), \ mode 582 drivers/net/wireless/intel/iwlwifi/fw/api/power.h .bf_temp_threshold = cpu_to_le32(IWL_BF_TEMP_THRESHOLD ## mode), \ mode 583 drivers/net/wireless/intel/iwlwifi/fw/api/power.h .bf_temp_fast_filter = cpu_to_le32(IWL_BF_TEMP_FAST_FILTER ## mode), \ mode 584 drivers/net/wireless/intel/iwlwifi/fw/api/power.h .bf_temp_slow_filter = cpu_to_le32(IWL_BF_TEMP_SLOW_FILTER ## mode), \ mode 585 drivers/net/wireless/intel/iwlwifi/fw/api/power.h .bf_debug_flag = cpu_to_le32(IWL_BF_DEBUG_FLAG ## mode), \ mode 586 drivers/net/wireless/intel/iwlwifi/fw/api/power.h .bf_escape_timer = cpu_to_le32(IWL_BF_ESCAPE_TIMER ## mode), \ mode 587 drivers/net/wireless/intel/iwlwifi/fw/api/power.h .ba_escape_timer = cpu_to_le32(IWL_BA_ESCAPE_TIMER ## mode) mode 201 drivers/net/wireless/intel/iwlwifi/fw/api/rs.h u8 mode; mode 2118 drivers/net/wireless/intel/iwlwifi/fw/dbg.c monitor_only = trigger->mode & IWL_FW_DBG_TRIGGER_MONITOR_ONLY; mode 159 drivers/net/wireless/intel/iwlwifi/fw/dbg.h return ((trig->mode & IWL_FW_DBG_TRIGGER_STOP) && mode 175 drivers/net/wireless/intel/iwlwifi/fw/debugfs.c #define FWRT_DEBUGFS_ADD_FILE_ALIAS(alias, name, parent, mode) do { \ mode 176 drivers/net/wireless/intel/iwlwifi/fw/debugfs.c debugfs_create_file(alias, mode, parent, fwrt, \ mode 179 drivers/net/wireless/intel/iwlwifi/fw/debugfs.c #define FWRT_DEBUGFS_ADD_FILE(name, parent, mode) \ mode 180 drivers/net/wireless/intel/iwlwifi/fw/debugfs.c FWRT_DEBUGFS_ADD_FILE_ALIAS(#name, name, parent, mode) mode 748 drivers/net/wireless/intel/iwlwifi/fw/file.h u8 mode; mode 292 drivers/net/wireless/intel/iwlwifi/fw/img.h static inline const char *get_fw_dbg_mode_string(int mode) mode 294 drivers/net/wireless/intel/iwlwifi/fw/img.h switch (mode) { mode 198 drivers/net/wireless/intel/iwlwifi/mvm/coex.c u32 mode; mode 205 drivers/net/wireless/intel/iwlwifi/mvm/coex.c mode = BT_COEX_BT; mode 208 drivers/net/wireless/intel/iwlwifi/mvm/coex.c mode = BT_COEX_WIFI; mode 212 drivers/net/wireless/intel/iwlwifi/mvm/coex.c mode = 0; mode 215 drivers/net/wireless/intel/iwlwifi/mvm/coex.c bt_cmd.mode = cpu_to_le32(mode); mode 219 drivers/net/wireless/intel/iwlwifi/mvm/coex.c mode = iwlwifi_mod_params.bt_coex_active ? BT_COEX_NW : BT_COEX_DISABLE; mode 220 drivers/net/wireless/intel/iwlwifi/mvm/coex.c bt_cmd.mode = cpu_to_le32(mode); mode 745 drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c #define MVM_DEBUGFS_ADD_FILE_VIF(name, parent, mode) do { \ mode 746 drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c debugfs_create_file(#name, mode, parent, vif, \ mode 1571 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c #define MVM_DEBUGFS_ADD_FILE_ALIAS(alias, name, parent, mode) do { \ mode 1572 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c debugfs_create_file(alias, mode, parent, mvm, \ mode 1575 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c #define MVM_DEBUGFS_ADD_FILE(name, parent, mode) \ mode 1576 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c MVM_DEBUGFS_ADD_FILE_ALIAS(#name, name, parent, mode) mode 1583 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c #define MVM_DEBUGFS_ADD_STA_FILE_ALIAS(alias, name, parent, mode) do { \ mode 1584 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c debugfs_create_file(alias, mode, parent, sta, \ mode 1587 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c #define MVM_DEBUGFS_ADD_STA_FILE(name, parent, mode) \ mode 1588 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c MVM_DEBUGFS_ADD_STA_FILE_ALIAS(#name, name, parent, mode) mode 112 drivers/net/wireless/intel/iwlwifi/mvm/led.c int mode = iwlwifi_mod_params.led_mode; mode 115 drivers/net/wireless/intel/iwlwifi/mvm/led.c switch (mode) { mode 121 drivers/net/wireless/intel/iwlwifi/mvm/led.c mode = IWL_LED_RF_STATE; mode 138 drivers/net/wireless/intel/iwlwifi/mvm/led.c if (mode == IWL_LED_RF_STATE) mode 4280 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c enum ieee80211_chanctx_switch_mode mode) mode 4289 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c switch (mode) { mode 304 drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c cmd->mode = IWL_TLC_MNG_MODE_NON_HT; mode 308 drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c cmd->mode = IWL_TLC_MNG_MODE_HE; mode 311 drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c cmd->mode = IWL_TLC_MNG_MODE_VHT; mode 314 drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c cmd->mode = IWL_TLC_MNG_MODE_HT; mode 126 drivers/net/wireless/intel/iwlwifi/mvm/rs.c enum rs_column_mode mode; mode 197 drivers/net/wireless/intel/iwlwifi/mvm/rs.c .mode = RS_LEGACY, mode 213 drivers/net/wireless/intel/iwlwifi/mvm/rs.c .mode = RS_LEGACY, mode 229 drivers/net/wireless/intel/iwlwifi/mvm/rs.c .mode = RS_SISO, mode 246 drivers/net/wireless/intel/iwlwifi/mvm/rs.c .mode = RS_SISO, mode 263 drivers/net/wireless/intel/iwlwifi/mvm/rs.c .mode = RS_SISO, mode 282 drivers/net/wireless/intel/iwlwifi/mvm/rs.c .mode = RS_SISO, mode 301 drivers/net/wireless/intel/iwlwifi/mvm/rs.c .mode = RS_MIMO2, mode 317 drivers/net/wireless/intel/iwlwifi/mvm/rs.c .mode = RS_MIMO2, mode 1264 drivers/net/wireless/intel/iwlwifi/mvm/rs.c switch (column->mode) { mode 1285 drivers/net/wireless/intel/iwlwifi/mvm/rs.c if (WARN_ON_ONCE(column->mode != RS_LEGACY && mode 1286 drivers/net/wireless/intel/iwlwifi/mvm/rs.c column->mode != RS_SISO && mode 1287 drivers/net/wireless/intel/iwlwifi/mvm/rs.c column->mode != RS_MIMO2)) mode 1291 drivers/net/wireless/intel/iwlwifi/mvm/rs.c if (column->mode == RS_LEGACY) mode 1298 drivers/net/wireless/intel/iwlwifi/mvm/rs.c if (column->mode == RS_SISO) { mode 1315 drivers/net/wireless/intel/iwlwifi/mvm/rs.c } else if (column->mode == RS_MIMO2) { mode 1728 drivers/net/wireless/intel/iwlwifi/mvm/rs.c if (column->mode == RS_LEGACY) { mode 1737 drivers/net/wireless/intel/iwlwifi/mvm/rs.c } else if (column->mode == RS_SISO) { mode 1740 drivers/net/wireless/intel/iwlwifi/mvm/rs.c } else if (column->mode == RS_MIMO2) { mode 1747 drivers/net/wireless/intel/iwlwifi/mvm/rs.c if (column->mode != RS_LEGACY) { mode 1760 drivers/net/wireless/intel/iwlwifi/mvm/rs.c if (curr_column->mode != column->mode) { mode 4095 drivers/net/wireless/intel/iwlwifi/mvm/rs.c #define MVM_DEBUGFS_ADD_FILE_RS(name, parent, mode) do { \ mode 4096 drivers/net/wireless/intel/iwlwifi/mvm/rs.c debugfs_create_file(#name, mode, parent, lq_sta, \ mode 2517 drivers/net/wireless/intel/iwlwifi/pcie/trans.c #define DEBUGFS_ADD_FILE(name, parent, mode) do { \ mode 2518 drivers/net/wireless/intel/iwlwifi/pcie/trans.c debugfs_create_file(#name, mode, parent, trans, \ mode 2405 drivers/net/wireless/intersil/hostap/hostap_ap.c iwe.u.mode = IW_MODE_MASTER; mode 2407 drivers/net/wireless/intersil/hostap/hostap_ap.c iwe.u.mode = IW_MODE_INFRA; mode 1135 drivers/net/wireless/intersil/hostap/hostap_ioctl.c __u32 *mode, char *extra) mode 1144 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (*mode != IW_MODE_ADHOC && *mode != IW_MODE_INFRA && mode 1145 drivers/net/wireless/intersil/hostap/hostap_ioctl.c *mode != IW_MODE_MASTER && *mode != IW_MODE_REPEAT && mode 1146 drivers/net/wireless/intersil/hostap/hostap_ioctl.c *mode != IW_MODE_MONITOR) mode 1150 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (*mode == IW_MODE_ADHOC || *mode == IW_MODE_INFRA) mode 1154 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (*mode == local->iw_mode) mode 1157 drivers/net/wireless/intersil/hostap/hostap_ioctl.c if (*mode == IW_MODE_MASTER && local->essid[0] == '\0') { mode 1167 drivers/net/wireless/intersil/hostap/hostap_ioctl.c local->iw_mode == IW_MODE_MONITOR) && *mode == IW_MODE_MASTER) { mode 1176 drivers/net/wireless/intersil/hostap/hostap_ioctl.c "%d -> %d\n", dev->name, local->iw_mode, *mode); mode 1177 drivers/net/wireless/intersil/hostap/hostap_ioctl.c local->iw_mode = *mode; mode 1211 drivers/net/wireless/intersil/hostap/hostap_ioctl.c __u32 *mode, char *extra) mode 1221 drivers/net/wireless/intersil/hostap/hostap_ioctl.c *mode = IW_MODE_INFRA; mode 1224 drivers/net/wireless/intersil/hostap/hostap_ioctl.c *mode = IW_MODE_REPEAT; mode 1227 drivers/net/wireless/intersil/hostap/hostap_ioctl.c *mode = local->iw_mode; mode 1829 drivers/net/wireless/intersil/hostap/hostap_ioctl.c iwe.u.mode = IW_MODE_MASTER; mode 1831 drivers/net/wireless/intersil/hostap/hostap_ioctl.c iwe.u.mode = IW_MODE_ADHOC; mode 2900 drivers/net/wireless/intersil/hostap/hostap_ioctl.c u32 mode; mode 2914 drivers/net/wireless/intersil/hostap/hostap_ioctl.c mode = IW_MODE_MASTER; mode 2915 drivers/net/wireless/intersil/hostap/hostap_ioctl.c ret = prism2_ioctl_siwmode(dev, NULL, &mode, NULL); mode 2931 drivers/net/wireless/intersil/hostap/hostap_ioctl.c mode = IW_MODE_MONITOR; mode 2932 drivers/net/wireless/intersil/hostap/hostap_ioctl.c ret = prism2_ioctl_siwmode(dev, NULL, &mode, NULL); mode 319 drivers/net/wireless/intersil/p54/fwio.c u16 mode; mode 328 drivers/net/wireless/intersil/p54/fwio.c switch (priv->mode) { mode 330 drivers/net/wireless/intersil/p54/fwio.c mode = P54_FILTER_TYPE_STATION; mode 333 drivers/net/wireless/intersil/p54/fwio.c mode = P54_FILTER_TYPE_AP; mode 337 drivers/net/wireless/intersil/p54/fwio.c mode = P54_FILTER_TYPE_IBSS; mode 340 drivers/net/wireless/intersil/p54/fwio.c mode = P54_FILTER_TYPE_PROMISCUOUS; mode 343 drivers/net/wireless/intersil/p54/fwio.c mode = P54_FILTER_TYPE_HIBERNATE; mode 352 drivers/net/wireless/intersil/p54/fwio.c (mode != P54_FILTER_TYPE_PROMISCUOUS)) mode 353 drivers/net/wireless/intersil/p54/fwio.c mode |= P54_FILTER_TYPE_TRANSPARENT; mode 355 drivers/net/wireless/intersil/p54/fwio.c mode = P54_FILTER_TYPE_HIBERNATE; mode 358 drivers/net/wireless/intersil/p54/fwio.c setup->mac_mode = cpu_to_le16(mode); mode 387 drivers/net/wireless/intersil/p54/fwio.c priv->phy_idle = mode == P54_FILTER_TYPE_HIBERNATE; mode 391 drivers/net/wireless/intersil/p54/fwio.c int p54_scan(struct p54_common *priv, u16 mode, u16 dwell) mode 414 drivers/net/wireless/intersil/p54/fwio.c head->mode = cpu_to_le16(mode); mode 600 drivers/net/wireless/intersil/p54/fwio.c u16 mode; mode 604 drivers/net/wireless/intersil/p54/fwio.c mode = P54_PSM | P54_PSM_BEACON_TIMEOUT | P54_PSM_DTIM | mode 607 drivers/net/wireless/intersil/p54/fwio.c mode = P54_PSM_CAM; mode 615 drivers/net/wireless/intersil/p54/fwio.c psm->mode = cpu_to_le16(mode); mode 629 drivers/net/wireless/intersil/p54/fwio.c priv->phy_ps = mode != P54_PSM_CAM; mode 35 drivers/net/wireless/intersil/p54/led.c if (priv->mode == NL80211_IFTYPE_UNSPECIFIED) mode 72 drivers/net/wireless/intersil/p54/led.c if (priv->mode == NL80211_IFTYPE_UNSPECIFIED) mode 331 drivers/net/wireless/intersil/p54/lmac.h __le16 mode; mode 473 drivers/net/wireless/intersil/p54/lmac.h __le16 mode; mode 534 drivers/net/wireless/intersil/p54/lmac.h int p54_scan(struct p54_common *priv, u16 mode, u16 dwell); mode 183 drivers/net/wireless/intersil/p54/main.c priv->mode = NL80211_IFTYPE_MONITOR; mode 186 drivers/net/wireless/intersil/p54/main.c priv->mode = NL80211_IFTYPE_UNSPECIFIED; mode 205 drivers/net/wireless/intersil/p54/main.c priv->mode = NL80211_IFTYPE_UNSPECIFIED; mode 232 drivers/net/wireless/intersil/p54/main.c if (priv->mode != NL80211_IFTYPE_MONITOR) { mode 244 drivers/net/wireless/intersil/p54/main.c priv->mode = vif->type; mode 273 drivers/net/wireless/intersil/p54/main.c priv->mode = NL80211_IFTYPE_MONITOR; mode 426 drivers/net/wireless/intersil/p54/main.c if (unlikely(priv->mode == NL80211_IFTYPE_UNSPECIFIED)) mode 738 drivers/net/wireless/intersil/p54/main.c priv->mode = NL80211_IFTYPE_UNSPECIFIED; mode 232 drivers/net/wireless/intersil/p54/p54.h int mode; mode 1109 drivers/net/wireless/intersil/p54/p54usb.c if (priv->common.mode != NL80211_IFTYPE_UNSPECIFIED) mode 171 drivers/net/wireless/intersil/p54/txrx.c if (unlikely(priv->mode == NL80211_IFTYPE_UNSPECIFIED)) mode 342 drivers/net/wireless/intersil/p54/txrx.c if (unlikely(priv->mode == NL80211_IFTYPE_UNSPECIFIED)) mode 525 drivers/net/wireless/intersil/p54/txrx.c if (unlikely(priv->mode == NL80211_IFTYPE_UNSPECIFIED)) mode 711 drivers/net/wireless/intersil/p54/txrx.c switch (priv->mode) { mode 70 drivers/net/wireless/intersil/prism54/isl_ioctl.c u32 mode, bsstype; mode 84 drivers/net/wireless/intersil/prism54/isl_ioctl.c mode = INL_MODE_CLIENT; mode 88 drivers/net/wireless/intersil/prism54/isl_ioctl.c mode = INL_MODE_CLIENT; mode 92 drivers/net/wireless/intersil/prism54/isl_ioctl.c mode = INL_MODE_CLIENT; mode 96 drivers/net/wireless/intersil/prism54/isl_ioctl.c mode = INL_MODE_AP; mode 100 drivers/net/wireless/intersil/prism54/isl_ioctl.c mode = INL_MODE_PROMISCUOUS; mode 112 drivers/net/wireless/intersil/prism54/isl_ioctl.c mgt_set(priv, OID_INL_MODE, &mode); mode 128 drivers/net/wireless/intersil/prism54/isl_ioctl.c u32 channel, authen, wep, filter, dot1x, mlme, conformance, power, mode; mode 142 drivers/net/wireless/intersil/prism54/isl_ioctl.c mode = CARD_DEFAULT_IW_MODE; mode 155 drivers/net/wireless/intersil/prism54/isl_ioctl.c prism54_mib_mode_helper(priv, mode); mode 607 drivers/net/wireless/intersil/prism54/isl_ioctl.c iwe.u.mode = 0; mode 609 drivers/net/wireless/intersil/prism54/isl_ioctl.c iwe.u.mode = IW_MODE_MASTER; mode 611 drivers/net/wireless/intersil/prism54/isl_ioctl.c iwe.u.mode = IW_MODE_ADHOC; mode 613 drivers/net/wireless/intersil/prism54/isl_ioctl.c if (iwe.u.mode) mode 571 drivers/net/wireless/marvell/libertas/cmd.c cmd.mode = cpu_to_le16(0x1); mode 664 drivers/net/wireless/marvell/libertas/host.h __le16 mode; mode 393 drivers/net/wireless/marvell/libertas/if_spi.c static int spu_set_bus_mode(struct if_spi_card *card, u16 mode) mode 398 drivers/net/wireless/marvell/libertas/if_spi.c err = spu_write_u16(card, IF_SPI_SPU_BUS_MODE_REG, mode); mode 405 drivers/net/wireless/marvell/libertas/if_spi.c if ((rval & 0xF) != mode) { mode 338 drivers/net/wireless/marvell/libertas_tf/cmd.c void lbtf_set_mode(struct lbtf_private *priv, enum lbtf_mode mode) mode 344 drivers/net/wireless/marvell/libertas_tf/cmd.c cmd.mode = cpu_to_le16(mode); mode 345 drivers/net/wireless/marvell/libertas_tf/cmd.c lbtf_deb_wext("Switching to mode: 0x%x\n", mode); mode 400 drivers/net/wireless/marvell/libertas_tf/libertas_tf.h __le16 mode; mode 469 drivers/net/wireless/marvell/libertas_tf/libertas_tf.h void lbtf_set_mode(struct lbtf_private *priv, enum lbtf_mode mode); mode 793 drivers/net/wireless/marvell/mwifiex/cfg80211.c u16 mode = P2P_MODE_DISABLE; mode 796 drivers/net/wireless/marvell/mwifiex/cfg80211.c HostCmd_ACT_GEN_SET, 0, &mode, true)) mode 810 drivers/net/wireless/marvell/mwifiex/cfg80211.c u16 mode; mode 815 drivers/net/wireless/marvell/mwifiex/cfg80211.c mode = P2P_MODE_DEVICE; mode 817 drivers/net/wireless/marvell/mwifiex/cfg80211.c HostCmd_ACT_GEN_SET, 0, &mode, true)) mode 820 drivers/net/wireless/marvell/mwifiex/cfg80211.c mode = P2P_MODE_CLIENT; mode 822 drivers/net/wireless/marvell/mwifiex/cfg80211.c HostCmd_ACT_GEN_SET, 0, &mode, true)) mode 836 drivers/net/wireless/marvell/mwifiex/cfg80211.c u16 mode; mode 841 drivers/net/wireless/marvell/mwifiex/cfg80211.c mode = P2P_MODE_DEVICE; mode 843 drivers/net/wireless/marvell/mwifiex/cfg80211.c HostCmd_ACT_GEN_SET, 0, &mode, true)) mode 846 drivers/net/wireless/marvell/mwifiex/cfg80211.c mode = P2P_MODE_GO; mode 848 drivers/net/wireless/marvell/mwifiex/cfg80211.c HostCmd_ACT_GEN_SET, 0, &mode, true)) mode 2180 drivers/net/wireless/marvell/mwifiex/cfg80211.c const u8 *ssid, const u8 *bssid, int mode, mode 2212 drivers/net/wireless/marvell/mwifiex/cfg80211.c if (mode == NL80211_IFTYPE_ADHOC) { mode 2288 drivers/net/wireless/marvell/mwifiex/cfg80211.c if (mode == NL80211_IFTYPE_ADHOC) mode 2320 drivers/net/wireless/marvell/mwifiex/cfg80211.c if (mode == NL80211_IFTYPE_ADHOC) { mode 3260 drivers/net/wireless/marvell/mwifiex/cfg80211.c mef_entry->mode = MEF_MODE_HOST_SLEEP; mode 3316 drivers/net/wireless/marvell/mwifiex/cfg80211.c mef_entry->mode = MEF_MODE_HOST_SLEEP; mode 3964 drivers/net/wireless/marvell/mwifiex/cfg80211.c if (channel_sw->mode) { mode 1354 drivers/net/wireless/marvell/mwifiex/cmdevt.c ps_mode->mode = cpu_to_le16(adapter->enhanced_ps_mode); mode 1017 drivers/net/wireless/marvell/mwifiex/fw.h __le16 mode; mode 1385 drivers/net/wireless/marvell/mwifiex/fw.h __le32 mode; mode 2063 drivers/net/wireless/marvell/mwifiex/fw.h __le32 mode; mode 2078 drivers/net/wireless/marvell/mwifiex/fw.h __le16 mode; mode 2100 drivers/net/wireless/marvell/mwifiex/fw.h u8 mode; mode 42 drivers/net/wireless/marvell/mwifiex/ioctl.h u32 mode; mode 416 drivers/net/wireless/marvell/mwifiex/ioctl.h u8 mode; mode 1007 drivers/net/wireless/marvell/mwifiex/main.c mcast_list.mode = MWIFIEX_PROMISC_MODE; mode 1010 drivers/net/wireless/marvell/mwifiex/main.c mcast_list.mode = MWIFIEX_ALL_MULTI_MODE; mode 1012 drivers/net/wireless/marvell/mwifiex/main.c mcast_list.mode = MWIFIEX_MULTICAST_MODE; mode 829 drivers/net/wireless/marvell/mwifiex/main.h u16 mode; mode 352 drivers/net/wireless/marvell/mwifiex/scan.c struct mwifiex_bssdescriptor *bss_desc, u32 mode) mode 382 drivers/net/wireless/marvell/mwifiex/scan.c if (bss_desc->bss_mode == mode) { mode 254 drivers/net/wireless/marvell/mwifiex/sta_cmd.c if (txp->mode) { mode 1450 drivers/net/wireless/marvell/mwifiex/sta_cmd.c mef_entry->mode = mef->mef_entry[i].mode; mode 1579 drivers/net/wireless/marvell/mwifiex/sta_cmd.c coex_tlv->header.len = cpu_to_le16(sizeof(coex_tlv->mode)); mode 1585 drivers/net/wireless/marvell/mwifiex/sta_cmd.c coex_tlv->mode = cpu_to_le32(MWIFIEX_COEX_MODE_TIMESHARE); mode 1587 drivers/net/wireless/marvell/mwifiex/sta_cmd.c coex_tlv->mode = cpu_to_le32(MWIFIEX_COEX_MODE_SPATIAL); mode 2093 drivers/net/wireless/marvell/mwifiex/sta_cmd.c cmd_ptr->params.mode_cfg.mode = cpu_to_le16( mode 412 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c if (!le32_to_cpu(txp_cfg->mode)) mode 738 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c put_unaligned_le16(le16_to_cpu(mode_cfg->mode), data_buf); mode 1004 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c u32 mode; mode 1009 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c mode = le32_to_cpu(coex_tlv->mode); mode 1010 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c if (mode == MWIFIEX_COEX_MODE_TIMESHARE) mode 1158 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c adapter->bus_aggr.mode = MWIFIEX_BUS_AGGR_MODE_LEN_V2; mode 96 drivers/net/wireless/marvell/mwifiex/sta_ioctl.c if (mcast_list->mode == MWIFIEX_PROMISC_MODE) { mode 105 drivers/net/wireless/marvell/mwifiex/sta_ioctl.c if (mcast_list->mode == MWIFIEX_ALL_MULTI_MODE) { mode 704 drivers/net/wireless/marvell/mwifiex/sta_ioctl.c txp_cfg->mode = cpu_to_le32(1); mode 2925 drivers/net/wireless/marvell/mwl8k.c __le16 mode; mode 2944 drivers/net/wireless/marvell/mwl8k.c cmd->mode = cpu_to_le16(mask); mode 3756 drivers/net/wireless/marvell/mwl8k.c __le16 mode; mode 3759 drivers/net/wireless/marvell/mwl8k.c static int mwl8k_cmd_set_rateadapt_mode(struct ieee80211_hw *hw, __u16 mode) mode 3771 drivers/net/wireless/marvell/mwl8k.c cmd->mode = cpu_to_le16(mode); mode 111 drivers/net/wireless/mediatek/mt76/mt7603/mcu.c __le32 mode; mode 115 drivers/net/wireless/mediatek/mt76/mt7603/mcu.c .mode = cpu_to_le32(BIT(31)), mode 238 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c u32 len, u32 mode) mode 243 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c __le32 mode; mode 247 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c .mode = cpu_to_le32(mode), mode 422 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c u32 len, addr, mode; mode 425 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c mode = mt7615_mcu_gen_dl_mode(hdr[i].feature_set, is_cr4); mode 429 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c err = mt7615_mcu_init_download(dev, addr, len, mode); mode 12 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c .mode = m, \ mode 752 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c (radar_specs[i].mode & 0xf); mode 42 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.h u8 mode; mode 13 drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.c enum mt76x02_eeprom_modes mode) mode 22 drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.c val |= FIELD_PREP(MT_EFUSE_CTRL_MODE, mode); mode 58 drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.c int len, enum mt76x02_eeprom_modes mode) mode 63 drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.c ret = mt76x02_efuse_read(dev, base + i, buf + i, mode); mode 176 drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.h int len, enum mt76x02_eeprom_modes mode); mode 867 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c int mode = ht_mode & IEEE80211_HT_OP_MODE_PROTECTION; mode 916 drivers/net/wireless/mediatek/mt76/mt76x02_mac.c switch (mode) { mode 96 drivers/net/wireless/mediatek/mt76/mt76x02_mcu.c __le32 mode; mode 99 drivers/net/wireless/mediatek/mt76/mt76x02_mcu.c .mode = cpu_to_le32(on ? RADIO_ON : RADIO_OFF), mode 33 drivers/net/wireless/mediatek/mt7601u/eeprom.c enum mt7601u_eeprom_access_modes mode) mode 42 drivers/net/wireless/mediatek/mt7601u/eeprom.c FIELD_PREP(MT_EFUSE_CTRL_MODE, mode) | mode 203 drivers/net/wireless/mediatek/mt7601u/mac.c int mode = ht_mode & IEEE80211_HT_OP_MODE_PROTECTION; mode 231 drivers/net/wireless/mediatek/mt7601u/mac.c switch (mode) { mode 301 drivers/net/wireless/mediatek/mt7601u/phy.c static int mt7601u_bbp_temp(struct mt7601u_dev *dev, int mode, const char *name) mode 306 drivers/net/wireless/mediatek/mt7601u/phy.c if (dev->temp_mode == mode) mode 309 drivers/net/wireless/mediatek/mt7601u/phy.c dev->temp_mode = mode; mode 310 drivers/net/wireless/mediatek/mt7601u/phy.c trace_temp_mode(dev, mode); mode 1272 drivers/net/wireless/ray_cs.c switch (wrqu->mode) { mode 1296 drivers/net/wireless/ray_cs.c wrqu->mode = IW_MODE_INFRA; mode 1298 drivers/net/wireless/ray_cs.c wrqu->mode = IW_MODE_ADHOC; mode 528 drivers/net/wireless/rayctl.h UCHAR mode; mode 817 drivers/net/wireless/realtek/rtlwifi/base.c else if (mac->mode == WIRELESS_MODE_AC_5G) mode 820 drivers/net/wireless/realtek/rtlwifi/base.c else if (mac->mode == WIRELESS_MODE_AC_24G) mode 823 drivers/net/wireless/realtek/rtlwifi/base.c else if (mac->mode == WIRELESS_MODE_N_24G) mode 826 drivers/net/wireless/realtek/rtlwifi/base.c else if (mac->mode == WIRELESS_MODE_N_5G) mode 829 drivers/net/wireless/realtek/rtlwifi/base.c else if (mac->mode & WIRELESS_MODE_G) mode 832 drivers/net/wireless/realtek/rtlwifi/base.c else if (mac->mode & WIRELESS_MODE_B) mode 835 drivers/net/wireless/realtek/rtlwifi/base.c else if (mac->mode & WIRELESS_MODE_A) mode 1282 drivers/net/wireless/realtek/rtlwifi/base.c if (rtlmac->mode == WIRELESS_MODE_B) { mode 83 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c if ((mac->mode == WIRELESS_MODE_B) || (mac->mode == WIRELESS_MODE_G)) mode 598 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c if (rtlpriv->mac80211.mode == WIRELESS_MODE_B) mode 1114 drivers/net/wireless/realtek/rtlwifi/core.c mac->mode = WIRELESS_MODE_A; mode 1117 drivers/net/wireless/realtek/rtlwifi/core.c mac->mode = WIRELESS_MODE_B; mode 1119 drivers/net/wireless/realtek/rtlwifi/core.c mac->mode = WIRELESS_MODE_G; mode 1124 drivers/net/wireless/realtek/rtlwifi/core.c mac->mode = WIRELESS_MODE_N_24G; mode 1126 drivers/net/wireless/realtek/rtlwifi/core.c mac->mode = WIRELESS_MODE_N_5G; mode 1131 drivers/net/wireless/realtek/rtlwifi/core.c mac->mode = WIRELESS_MODE_AC_5G; mode 1133 drivers/net/wireless/realtek/rtlwifi/core.c mac->mode = WIRELESS_MODE_AC_24G; mode 1176 drivers/net/wireless/realtek/rtlwifi/core.c mac->mode = 0; mode 1278 drivers/net/wireless/realtek/rtlwifi/core.c mac->mode = WIRELESS_MODE_A; mode 1281 drivers/net/wireless/realtek/rtlwifi/core.c mac->mode = WIRELESS_MODE_B; mode 1283 drivers/net/wireless/realtek/rtlwifi/core.c mac->mode = WIRELESS_MODE_G; mode 1288 drivers/net/wireless/realtek/rtlwifi/core.c mac->mode = WIRELESS_MODE_N_24G; mode 1290 drivers/net/wireless/realtek/rtlwifi/core.c mac->mode = WIRELESS_MODE_N_5G; mode 1295 drivers/net/wireless/realtek/rtlwifi/core.c mac->mode = WIRELESS_MODE_AC_5G; mode 1297 drivers/net/wireless/realtek/rtlwifi/core.c mac->mode = WIRELESS_MODE_AC_24G; mode 1306 drivers/net/wireless/realtek/rtlwifi/core.c sta_entry->wireless_mode = mac->mode; mode 442 drivers/net/wireless/realtek/rtlwifi/debug.c #define RTL_DEBUGFS_ADD_CORE(name, mode, fopname) \ mode 445 drivers/net/wireless/realtek/rtlwifi/debug.c debugfs_create_file(#name, mode, parent, \ mode 367 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c void rtl88e_set_fw_pwrmode_cmd(struct ieee80211_hw *hw, u8 mode) mode 373 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c RT_TRACE(rtlpriv, COMP_POWER, DBG_LOUD, "FW LPS mode = %d\n", mode); mode 375 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c SET_H2CCMD_PWRMODE_PARM_MODE(u1_h2c_set_pwrmode, ((mode) ? 1 : 0)); mode 383 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c if (mode == FW_PS_ACTIVE_MODE) mode 254 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.h void rtl88e_set_fw_pwrmode_cmd(struct ieee80211_hw *hw, u8 mode); mode 1201 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c u8 mode = MSR_NOLINK; mode 1205 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c mode = MSR_NOLINK; mode 1211 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c mode = MSR_ADHOC; mode 1216 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c mode = MSR_INFRA; mode 1222 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c mode = MSR_AP; mode 1239 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c if (mode != MSR_AP && rtlpriv->mac80211.link_state < MAC80211_LINKED) { mode 1240 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c mode = MSR_NOLINK; mode 1244 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c if (mode == MSR_NOLINK || mode == MSR_INFRA) { mode 1247 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c } else if (mode == MSR_ADHOC || mode == MSR_AP) { mode 1253 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c mode); mode 1256 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c rtl_write_byte(rtlpriv, MSR, bt_msr | mode); mode 1258 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c if (mode == MSR_AP) mode 1984 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c enum wireless_mode wirelessmode = mac->mode; mode 1625 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c u32 mode; mode 1627 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c mode = pi_mode ? 0x01000100 : 0x01000000; mode 1628 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c rtl_set_bbreg(hw, 0x820, MASKDWORD, mode); mode 1629 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c rtl_set_bbreg(hw, 0x828, MASKDWORD, mode); mode 1624 drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c (rtlpriv->mac80211.mode == WIRELESS_MODE_G || mode 1625 drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c (rtlpriv->mac80211.mode == (WIRELESS_MODE_G | WIRELESS_MODE_B))) && mode 1647 drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c BT_OTHER_ACTION) && (rtlpriv->mac80211.mode < mode 425 drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c void rtl92c_set_fw_pwrmode_cmd(struct ieee80211_hw *hw, u8 mode) mode 431 drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c RT_TRACE(rtlpriv, COMP_POWER, DBG_LOUD, "FW LPS mode = %d\n", mode); mode 433 drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c SET_H2CCMD_PWRMODE_PARM_MODE(u1_h2c_set_pwrmode, mode); mode 67 drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.h void rtl92c_set_fw_pwrmode_cmd(struct ieee80211_hw *hw, u8 mode); mode 1140 drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c u32 mode; mode 1142 drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c mode = pi_mode ? 0x01000100 : 0x01000000; mode 1143 drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c rtl_set_bbreg(hw, 0x820, MASKDWORD, mode); mode 1144 drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c rtl_set_bbreg(hw, 0x828, MASKDWORD, mode); mode 1137 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c u8 mode = MSR_NOLINK; mode 1143 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c mode = MSR_NOLINK; mode 1148 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c mode = MSR_ADHOC; mode 1153 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c mode = MSR_INFRA; mode 1159 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c mode = MSR_AP; mode 1165 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c mode = MSR_ADHOC; mode 1181 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c if (mode != MSR_AP && mode 1183 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c mode = MSR_NOLINK; mode 1186 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c if (mode == MSR_NOLINK || mode == MSR_INFRA) { mode 1189 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c } else if (mode == MSR_ADHOC || mode == MSR_AP) { mode 1195 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c mode); mode 1197 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c rtl_write_byte(rtlpriv, MSR, bt_msr | mode); mode 1200 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c if (mode == MSR_AP) mode 1772 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c enum wireless_mode wirelessmode = mac->mode; mode 1555 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c enum wireless_mode wirelessmode = mac->mode; mode 1924 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c enum wireless_mode wirelessmode = mac->mode; mode 74 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.h void rtl92c_set_fw_pwrmode_cmd(struct ieee80211_hw *hw, u8 mode); mode 101 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/rf.c if (mac->mode == WIRELESS_MODE_B) mode 1809 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c enum wireless_mode wirelessmode = mac->mode; mode 1745 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c u32 mode; mode 1749 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c mode = pi_mode ? 0x01000100 : 0x01000000; mode 1750 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c rtl_set_bbreg(hw, 0x820, MASKDWORD, mode); mode 1751 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c rtl_set_bbreg(hw, 0x828, MASKDWORD, mode); mode 2883 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c rtlpriv->mac80211.mode); mode 569 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c if (rtlpriv->mac80211.mode == WIRELESS_MODE_B) mode 398 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c void rtl92ee_set_fw_pwrmode_cmd(struct ieee80211_hw *hw, u8 mode) mode 412 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c mode = (bt_lps_on ? FW_PS_MIN_MODE : FW_PS_ACTIVE_MODE); mode 415 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c mode, bt_ctrl_lps); mode 417 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c switch (mode) { mode 444 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c if (mode == FW_PS_ACTIVE_MODE) { mode 465 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c SET_H2CCMD_PWRMODE_PARM_MODE(u1_h2c_set_pwrmode, ((mode) ? 1 : 0)); mode 157 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.h void rtl92ee_set_fw_pwrmode_cmd(struct ieee80211_hw *hw, u8 mode); mode 1457 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c u8 mode = MSR_NOLINK; mode 1461 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c mode = MSR_NOLINK; mode 1467 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c mode = MSR_ADHOC; mode 1472 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c mode = MSR_INFRA; mode 1478 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c mode = MSR_AP; mode 1494 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c if (mode != MSR_AP && rtlpriv->mac80211.link_state < MAC80211_LINKED) { mode 1495 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c mode = MSR_NOLINK; mode 1499 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c if (mode == MSR_NOLINK || mode == MSR_INFRA) { mode 1502 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c } else if (mode == MSR_ADHOC || mode == MSR_AP) { mode 1508 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c mode); mode 1511 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c rtl_write_byte(rtlpriv, MSR, bt_msr | mode); mode 1513 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c if (mode == MSR_AP) mode 82 drivers/net/wireless/realtek/rtlwifi/rtl8192se/dm.c if (mac->mode == WIRELESS_MODE_G || mode 83 drivers/net/wireless/realtek/rtlwifi/rtl8192se/dm.c mac->mode == WIRELESS_MODE_B) mode 99 drivers/net/wireless/realtek/rtlwifi/rtl8192se/dm.c if (mac->mode == WIRELESS_MODE_G || mode 100 drivers/net/wireless/realtek/rtlwifi/rtl8192se/dm.c mac->mode == WIRELESS_MODE_B) mode 313 drivers/net/wireless/realtek/rtlwifi/rtl8192se/dm.c if (mac->mode != WIRELESS_MODE_B) { mode 548 drivers/net/wireless/realtek/rtlwifi/rtl8192se/fw.c void rtl92s_set_fw_pwrmode_cmd(struct ieee80211_hw *hw, u8 mode) mode 555 drivers/net/wireless/realtek/rtlwifi/rtl8192se/fw.c pwrmode.mode = mode; mode 570 drivers/net/wireless/realtek/rtlwifi/rtl8192se/fw.c if (pwrmode.mode == FW_PS_MIN_MODE) mode 572 drivers/net/wireless/realtek/rtlwifi/rtl8192se/fw.c else if (pwrmode.mode == FW_PS_MAX_MODE) mode 202 drivers/net/wireless/realtek/rtlwifi/rtl8192se/fw.h u8 mode; mode 345 drivers/net/wireless/realtek/rtlwifi/rtl8192se/fw.h void rtl92s_set_fw_pwrmode_cmd(struct ieee80211_hw *hw, u8 mode); mode 2025 drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c enum wireless_mode wirelessmode = mac->mode; mode 249 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/fw.c void rtl8723e_set_fw_pwrmode_cmd(struct ieee80211_hw *hw, u8 mode) mode 255 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/fw.c RT_TRACE(rtlpriv, COMP_POWER, DBG_LOUD, "FW LPS mode = %d\n", mode); mode 257 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/fw.c SET_H2CCMD_PWRMODE_PARM_MODE(u1_h2c_set_pwrmode, mode); mode 37 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/fw.h void rtl8723e_set_fw_pwrmode_cmd(struct ieee80211_hw *hw, u8 mode); mode 49 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hal_bt_coexist.c if (rtlpriv->mac80211.mode == WIRELESS_MODE_G || mode 50 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hal_bt_coexist.c rtlpriv->mac80211.mode == WIRELESS_MODE_B) { mode 1103 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c u8 mode = MSR_NOLINK; mode 1111 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c mode = MSR_NOLINK; mode 1116 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c mode = MSR_ADHOC; mode 1121 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c mode = MSR_INFRA; mode 1127 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c mode = MSR_AP; mode 1144 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c if (mode != MSR_AP && mode 1146 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c mode = MSR_NOLINK; mode 1149 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c if (mode == MSR_NOLINK || mode == MSR_INFRA) { mode 1152 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c } else if (mode == MSR_ADHOC || mode == MSR_AP) { mode 1158 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c mode); mode 1161 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c rtl_write_byte(rtlpriv, MSR, bt_msr | mode); mode 1163 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c if (mode == MSR_AP) mode 1849 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c enum wireless_mode wirelessmode = mac->mode; mode 978 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (rtlpriv->mac80211.mode == WIRELESS_MODE_B) mode 1012 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c (mac->mode == WIRELESS_MODE_N_24G)) { mode 216 drivers/net/wireless/realtek/rtlwifi/rtl8723be/fw.c void rtl8723be_set_fw_pwrmode_cmd(struct ieee80211_hw *hw, u8 mode) mode 230 drivers/net/wireless/realtek/rtlwifi/rtl8723be/fw.c mode = (bt_lps_on ? FW_PS_MIN_MODE : FW_PS_ACTIVE_MODE); mode 233 drivers/net/wireless/realtek/rtlwifi/rtl8723be/fw.c mode, bt_ctrl_lps); mode 235 drivers/net/wireless/realtek/rtlwifi/rtl8723be/fw.c switch (mode) { mode 262 drivers/net/wireless/realtek/rtlwifi/rtl8723be/fw.c if (mode == FW_PS_ACTIVE_MODE) { mode 283 drivers/net/wireless/realtek/rtlwifi/rtl8723be/fw.c SET_H2CCMD_PWRMODE_PARM_MODE(u1_h2c_set_pwrmode, ((mode) ? 1 : 0)); mode 121 drivers/net/wireless/realtek/rtlwifi/rtl8723be/fw.h void rtl8723be_set_fw_pwrmode_cmd(struct ieee80211_hw *hw, u8 mode); mode 1492 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c u8 mode = MSR_NOLINK; mode 1496 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c mode = MSR_NOLINK; mode 1502 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c mode = MSR_ADHOC; mode 1507 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c mode = MSR_INFRA; mode 1513 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c mode = MSR_AP; mode 1529 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c if (mode != MSR_AP && rtlpriv->mac80211.link_state < MAC80211_LINKED) { mode 1530 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c mode = MSR_NOLINK; mode 1534 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c if (mode == MSR_NOLINK || mode == MSR_INFRA) { mode 1537 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c } else if (mode == MSR_ADHOC || mode == MSR_AP) { mode 1543 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c mode); mode 1546 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c rtl_write_byte(rtlpriv, MSR, bt_msr | mode); mode 1548 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c if (mode == MSR_AP) mode 419 drivers/net/wireless/realtek/rtlwifi/rtl8723com/phy_common.c u32 mode; mode 421 drivers/net/wireless/realtek/rtlwifi/rtl8723com/phy_common.c mode = pi_mode ? 0x01000100 : 0x01000000; mode 422 drivers/net/wireless/realtek/rtlwifi/rtl8723com/phy_common.c rtl_set_bbreg(hw, 0x820, MASKDWORD, mode); mode 423 drivers/net/wireless/realtek/rtlwifi/rtl8723com/phy_common.c rtl_set_bbreg(hw, 0x828, MASKDWORD, mode); mode 710 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (mac->mode == WIRELESS_MODE_AC_24G || mode 711 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c mac->mode == WIRELESS_MODE_AC_5G || mode 712 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c mac->mode == WIRELESS_MODE_AC_ONLY) mode 2689 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c (mac->mode == WIRELESS_MODE_N_24G)) { mode 465 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c void rtl8821ae_set_fw_pwrmode_cmd(struct ieee80211_hw *hw, u8 mode) mode 479 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c mode = (bt_lps_on ? FW_PS_MIN_MODE : FW_PS_ACTIVE_MODE); mode 482 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c mode, bt_ctrl_lps); mode 484 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c switch (mode) { mode 511 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c if (mode == FW_PS_ACTIVE_MODE) { mode 532 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c SET_H2CCMD_PWRMODE_PARM_MODE(u1_h2c_set_pwrmode, ((mode) ? 1 : 0)); mode 281 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.h void rtl8821ae_set_fw_pwrmode_cmd(struct ieee80211_hw *hw, u8 mode); mode 3308 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c enum wireless_mode wirelessmode = mac->mode; mode 3722 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c u16 wireless_mode = mac->mode; mode 1539 drivers/net/wireless/realtek/rtlwifi/wifi.h u16 mode; /* wireless mode */ mode 819 drivers/net/wireless/realtek/rtw88/coex.c lps_mode = rtwdev->lps_conf.mode; mode 656 drivers/net/wireless/realtek/rtw88/debug.c #define rtw_debugfs_add_core(name, mode, fopname, parent) \ mode 659 drivers/net/wireless/realtek/rtw88/debug.c if (!debugfs_create_file(#name, mode, \ mode 376 drivers/net/wireless/realtek/rtw88/fw.c SET_PWR_MODE_SET_MODE(h2c_pkt, conf->mode); mode 538 drivers/net/wireless/realtek/rtw88/main.h enum rtw_lps_mode mode; mode 104 drivers/net/wireless/realtek/rtw88/ps.c if (conf->mode == RTW_MODE_LPS) mode 117 drivers/net/wireless/realtek/rtw88/ps.c conf->mode = RTW_MODE_LPS; mode 131 drivers/net/wireless/realtek/rtw88/ps.c conf->mode = RTW_MODE_ACTIVE; mode 153 drivers/net/wireless/realtek/rtw88/ps.c conf->mode = RTW_MODE_LPS; mode 170 drivers/net/wireless/realtek/rtw88/ps.c conf->mode = RTW_MODE_ACTIVE; mode 961 drivers/net/wireless/rndis_wlan.c static int set_infra_mode(struct usbnet *usbdev, int mode); mode 1193 drivers/net/wireless/rndis_wlan.c static int set_infra_mode(struct usbnet *usbdev, int mode) mode 1202 drivers/net/wireless/rndis_wlan.c tmp = cpu_to_le32(mode); mode 1217 drivers/net/wireless/rndis_wlan.c priv->infra_mode = mode; mode 1851 drivers/net/wireless/rndis_wlan.c int mode; mode 1855 drivers/net/wireless/rndis_wlan.c mode = NDIS_80211_INFRA_ADHOC; mode 1858 drivers/net/wireless/rndis_wlan.c mode = NDIS_80211_INFRA_INFRA; mode 1866 drivers/net/wireless/rndis_wlan.c return set_infra_mode(usbdev, mode); mode 2590 drivers/net/wireless/rndis_wlan.c __le32 mode; mode 2610 drivers/net/wireless/rndis_wlan.c mode = cpu_to_le32(power_mode); mode 2612 drivers/net/wireless/rndis_wlan.c &mode, sizeof(mode)); mode 707 drivers/net/wireless/rsi/rsi_91x_mgmt.c enum opmode mode, mode 735 drivers/net/wireless/rsi/rsi_91x_mgmt.c vap_caps->vif_type = mode; mode 715 drivers/net/wireless/rsi/rsi_mgmt.h int rsi_set_vap_capabilities(struct rsi_common *common, enum opmode mode, mode 159 drivers/net/wireless/st/cw1200/cw1200.h int mode; mode 382 drivers/net/wireless/st/cw1200/cw1200_spi.c func->mode = SPI_MODE_0; mode 385 drivers/net/wireless/st/cw1200/cw1200_spi.c func->chip_select, func->mode, func->bits_per_word, mode 45 drivers/net/wireless/st/cw1200/debug.c static const char *cw1200_debug_mode(int mode) mode 47 drivers/net/wireless/st/cw1200/debug.c switch (mode) { mode 120 drivers/net/wireless/st/cw1200/debug.c cw1200_debug_mode(priv->mode), mode 139 drivers/net/wireless/st/cw1200/debug.c priv->mode == NL80211_IFTYPE_AP || mode 140 drivers/net/wireless/st/cw1200/debug.c priv->mode == NL80211_IFTYPE_ADHOC || mode 141 drivers/net/wireless/st/cw1200/debug.c priv->mode == NL80211_IFTYPE_MESH_POINT || mode 142 drivers/net/wireless/st/cw1200/debug.c priv->mode == NL80211_IFTYPE_P2P_GO) mode 157 drivers/net/wireless/st/cw1200/debug.c switch (priv->powersave_mode.mode) { mode 266 drivers/net/wireless/st/cw1200/main.c priv->mode = NL80211_IFTYPE_UNSPECIFIED; mode 523 drivers/net/wireless/st/cw1200/main.c struct wsm_operational_mode mode = { mode 569 drivers/net/wireless/st/cw1200/main.c wsm_set_operational_mode(priv, &mode); mode 217 drivers/net/wireless/st/cw1200/pm.c priv->powersave_mode.mode != WSM_PSM_PS) { mode 218 drivers/net/wireless/st/cw1200/pm.c state->prev_ps_mode = priv->powersave_mode.mode; mode 219 drivers/net/wireless/st/cw1200/pm.c priv->powersave_mode.mode = WSM_PSM_PS; mode 325 drivers/net/wireless/st/cw1200/pm.c priv->powersave_mode.mode = state->prev_ps_mode; mode 156 drivers/net/wireless/st/cw1200/scan.c !(priv->powersave_mode.mode & WSM_PSM_PS)) { mode 158 drivers/net/wireless/st/cw1200/scan.c pm.mode = WSM_PSM_PS; mode 176 drivers/net/wireless/st/cw1200/scan.c !(priv->powersave_mode.mode & WSM_PSM_PS)) mode 306 drivers/net/wireless/st/cw1200/scan.c if (priv->mode == NL80211_IFTYPE_UNSPECIFIED) mode 320 drivers/net/wireless/st/cw1200/scan.c if (priv->mode == NL80211_IFTYPE_UNSPECIFIED) mode 79 drivers/net/wireless/st/cw1200/sta.c priv->mode = NL80211_IFTYPE_MONITOR; mode 118 drivers/net/wireless/st/cw1200/sta.c priv->mode = NL80211_IFTYPE_UNSPECIFIED; mode 218 drivers/net/wireless/st/cw1200/sta.c if (priv->mode != NL80211_IFTYPE_MONITOR) { mode 228 drivers/net/wireless/st/cw1200/sta.c priv->mode = vif->type; mode 292 drivers/net/wireless/st/cw1200/sta.c priv->mode = NL80211_IFTYPE_MONITOR; mode 374 drivers/net/wireless/st/cw1200/sta.c priv->powersave_mode.mode = WSM_PSM_ACTIVE; mode 376 drivers/net/wireless/st/cw1200/sta.c priv->powersave_mode.mode = WSM_PSM_PS; mode 378 drivers/net/wireless/st/cw1200/sta.c priv->powersave_mode.mode = WSM_PSM_FAST_PS; mode 405 drivers/net/wireless/st/cw1200/sta.c struct wsm_operational_mode mode = { mode 418 drivers/net/wireless/st/cw1200/sta.c wsm_set_operational_mode(priv, &mode); mode 639 drivers/net/wireless/st/cw1200/sta.c if (priv->mode == NL80211_IFTYPE_STATION) { mode 669 drivers/net/wireless/st/cw1200/sta.c pm.mode &= ~WSM_PSM_FAST_PS_FLAG; mode 746 drivers/net/wireless/st/cw1200/sta.c (priv->mode == NL80211_IFTYPE_AP) ? mode 865 drivers/net/wireless/st/cw1200/sta.c if (priv->mode == NL80211_IFTYPE_UNSPECIFIED) mode 933 drivers/net/wireless/st/cw1200/sta.c switch (priv->mode) { mode 1174 drivers/net/wireless/st/cw1200/sta.c if (priv->mode == NL80211_IFTYPE_ADHOC) mode 1211 drivers/net/wireless/st/cw1200/sta.c .mode = conf->ibss_joined ? mode 1453 drivers/net/wireless/st/cw1200/sta.c .mode = WSM_START_MODE_P2P_DEV, mode 1548 drivers/net/wireless/st/cw1200/sta.c if (priv->mode != NL80211_IFTYPE_AP) mode 1578 drivers/net/wireless/st/cw1200/sta.c if (priv->mode != NL80211_IFTYPE_AP || !sta_priv->link_id) mode 1755 drivers/net/wireless/st/cw1200/sta.c if (priv->mode == NL80211_IFTYPE_STATION) { mode 1786 drivers/net/wireless/st/cw1200/sta.c priv->mode, mode 2197 drivers/net/wireless/st/cw1200/sta.c if (priv->mode == NL80211_IFTYPE_STATION || mode 2198 drivers/net/wireless/st/cw1200/sta.c priv->mode == NL80211_IFTYPE_MONITOR || mode 2199 drivers/net/wireless/st/cw1200/sta.c priv->mode == NL80211_IFTYPE_UNSPECIFIED) mode 2312 drivers/net/wireless/st/cw1200/sta.c .mode = priv->vif->p2p ? mode 2326 drivers/net/wireless/st/cw1200/sta.c struct wsm_operational_mode mode = { mode 2359 drivers/net/wireless/st/cw1200/sta.c wsm_set_operational_mode(priv, &mode); mode 2371 drivers/net/wireless/st/cw1200/sta.c if (priv->mode == NL80211_IFTYPE_AP) { mode 444 drivers/net/wireless/st/cw1200/txrx.c else if (priv->mode != NL80211_IFTYPE_AP) mode 862 drivers/net/wireless/st/cw1200/txrx.c if (priv->mode == NL80211_IFTYPE_UNSPECIFIED) { mode 1020 drivers/net/wireless/st/cw1200/txrx.c if (priv->mode == NL80211_IFTYPE_UNSPECIFIED) { mode 432 drivers/net/wireless/st/cw1200/wsm.c WSM_PUT8(buf, arg->mode); mode 619 drivers/net/wireless/st/cw1200/wsm.c WSM_PUT8(buf, arg->mode); mode 648 drivers/net/wireless/st/cw1200/wsm.c WSM_PUT8(buf, arg->mode); mode 673 drivers/net/wireless/st/cw1200/wsm.c WSM_PUT8(buf, arg->mode); mode 920 drivers/net/wireless/st/cw1200/wsm.c if (priv->mode == NL80211_IFTYPE_UNSPECIFIED) { mode 1472 drivers/net/wireless/st/cw1200/wsm.c switch (priv->mode) { mode 1525 drivers/net/wireless/st/cw1200/wsm.c priv->mode != NL80211_IFTYPE_AP) { mode 897 drivers/net/wireless/st/cw1200/wsm.h u8 mode; mode 965 drivers/net/wireless/st/cw1200/wsm.h u8 mode; mode 1168 drivers/net/wireless/st/cw1200/wsm.h u8 mode; mode 1190 drivers/net/wireless/st/cw1200/wsm.h /* [in] */ u8 mode; mode 941 drivers/net/wireless/ti/wl1251/acx.c int wl1251_acx_bet_enable(struct wl1251 *wl, enum wl1251_acx_bet_mode mode, mode 953 drivers/net/wireless/ti/wl1251/acx.c acx->enable = mode; mode 1475 drivers/net/wireless/ti/wl1251/acx.h int wl1251_acx_bet_enable(struct wl1251 *wl, enum wl1251_acx_bet_mode mode, mode 615 drivers/net/wireless/ti/wl1251/main.c u32 mode; mode 619 drivers/net/wireless/ti/wl1251/main.c mode = DF_SNIFF_MODE_ENABLE | DF_ENCRYPTION_DISABLE; mode 622 drivers/net/wireless/ti/wl1251/main.c mode = 0; mode 625 drivers/net/wireless/ti/wl1251/main.c ret = wl1251_acx_feature_cfg(wl, mode); mode 92 drivers/net/wireless/ti/wl1251/ps.c int wl1251_ps_set_mode(struct wl1251 *wl, enum wl1251_station_mode mode) mode 96 drivers/net/wireless/ti/wl1251/ps.c switch (mode) { mode 166 drivers/net/wireless/ti/wl1251/ps.c wl->station_mode = mode; mode 15 drivers/net/wireless/ti/wl1251/ps.h int wl1251_ps_set_mode(struct wl1251 *wl, enum wl1251_station_mode mode); mode 323 drivers/net/wireless/ti/wl12xx/main.c .mode = WL12XX_FWLOG_CONTINUOUS, mode 96 drivers/net/wireless/ti/wl18xx/conf.h u8 mode; mode 461 drivers/net/wireless/ti/wl18xx/main.c .mode = WL12XX_FWLOG_CONTINUOUS, mode 510 drivers/net/wireless/ti/wl18xx/main.c .mode = HT_MODE_WIDE, mode 1263 drivers/net/wireless/ti/wl18xx/main.c (priv->conf.ht.mode != HT_MODE_WIDE) && mode 1264 drivers/net/wireless/ti/wl18xx/main.c (priv->conf.ht.mode != HT_MODE_SISO20); mode 1949 drivers/net/wireless/ti/wl18xx/main.c priv->conf.ht.mode = HT_MODE_DEFAULT; mode 1951 drivers/net/wireless/ti/wl18xx/main.c priv->conf.ht.mode = HT_MODE_WIDE; mode 1953 drivers/net/wireless/ti/wl18xx/main.c priv->conf.ht.mode = HT_MODE_SISO20; mode 1960 drivers/net/wireless/ti/wl18xx/main.c if (priv->conf.ht.mode == HT_MODE_DEFAULT) { mode 1975 drivers/net/wireless/ti/wl18xx/main.c } else if (priv->conf.ht.mode == HT_MODE_WIDE) { mode 1980 drivers/net/wireless/ti/wl18xx/main.c } else if (priv->conf.ht.mode == HT_MODE_SISO20) { mode 1785 drivers/net/wireless/ti/wlcore/cmd.c cmd->logger_mode = wl->conf.fwlog.mode; mode 1051 drivers/net/wireless/ti/wlcore/conf.h u8 mode; mode 316 drivers/net/wireless/ti/wlcore/main.c wl->conf.fwlog.mode = WL12XX_FWLOG_CONTINUOUS; mode 319 drivers/net/wireless/ti/wlcore/main.c wl->conf.fwlog.mode = WL12XX_FWLOG_CONTINUOUS; mode 4881 drivers/net/wireless/ti/wlcore/main.c enum ieee80211_chanctx_switch_mode mode) mode 4888 drivers/net/wireless/ti/wlcore/main.c n_vifs, mode); mode 16 drivers/net/wireless/ti/wlcore/ps.c enum wl1271_cmd_ps_mode mode) mode 21 drivers/net/wireless/ti/wlcore/ps.c switch (mode) { mode 25 drivers/net/wireless/ti/wlcore/ps.c mode, timeout); mode 35 drivers/net/wireless/ti/wlcore/ps.c ret = wl1271_cmd_ps_mode(wl, wlvif, mode, timeout); mode 63 drivers/net/wireless/ti/wlcore/ps.c ret = wl1271_cmd_ps_mode(wl, wlvif, mode, 0); mode 70 drivers/net/wireless/ti/wlcore/ps.c wl1271_warning("trying to set ps to unsupported mode %d", mode); mode 17 drivers/net/wireless/ti/wlcore/ps.h enum wl1271_cmd_ps_mode mode); mode 173 drivers/net/wireless/ti/wlcore/spi.c spi->mode ^= SPI_CS_HIGH; mode 190 drivers/net/wireless/ti/wlcore/spi.c spi->mode ^= SPI_CS_HIGH; mode 132 drivers/net/wireless/ti/wlcore/sysfs.c .attr = { .name = "fwlog", .mode = 0400 }, mode 1476 drivers/net/wireless/wl3501_cs.c if (wrqu->mode == IW_MODE_INFRA || mode 1477 drivers/net/wireless/wl3501_cs.c wrqu->mode == IW_MODE_ADHOC || mode 1478 drivers/net/wireless/wl3501_cs.c wrqu->mode == IW_MODE_AUTO) { mode 1481 drivers/net/wireless/wl3501_cs.c this->net_type = wrqu->mode; mode 1492 drivers/net/wireless/wl3501_cs.c wrqu->mode = this->net_type; mode 1588 drivers/net/wireless/wl3501_cs.c iwe.u.mode = this->bss_set[i].bss_type; mode 942 drivers/net/wireless/zydas/zd1201.c struct iw_request_info *info, __u32 *mode, char *extra) mode 950 drivers/net/wireless/zydas/zd1201.c if (*mode != IW_MODE_MASTER) mode 959 drivers/net/wireless/zydas/zd1201.c switch(*mode) { mode 1005 drivers/net/wireless/zydas/zd1201.c struct iw_request_info *info, __u32 *mode, char *extra) mode 1016 drivers/net/wireless/zydas/zd1201.c *mode = IW_MODE_ADHOC; mode 1019 drivers/net/wireless/zydas/zd1201.c *mode = IW_MODE_INFRA; mode 1022 drivers/net/wireless/zydas/zd1201.c *mode = IW_MODE_REPEAT; mode 1025 drivers/net/wireless/zydas/zd1201.c *mode = 8;/* No Pseudo-IBSS... */ mode 1028 drivers/net/wireless/zydas/zd1201.c *mode = IW_MODE_MASTER; mode 1033 drivers/net/wireless/zydas/zd1201.c *mode = IW_MODE_AUTO; mode 1036 drivers/net/wireless/zydas/zd1201.c *mode = IW_MODE_MONITOR; mode 1153 drivers/net/wireless/zydas/zd1201.c iwe.u.mode = IW_MODE_MASTER; mode 1155 drivers/net/wireless/zydas/zd1201.c iwe.u.mode = IW_MODE_ADHOC; mode 231 drivers/nfc/microread/microread.c u8 mode; mode 268 drivers/nfc/microread/microread.c mode = 0xff; mode 270 drivers/nfc/microread/microread.c MICROREAD_PAR_P2P_TARGET_MODE, &mode, 1); mode 289 drivers/nfc/microread/microread.c mode = 0x02; mode 291 drivers/nfc/microread/microread.c MICROREAD_PAR_P2P_TARGET_MODE, &mode, 1); mode 554 drivers/nfc/microread/microread.c u8 mode; mode 611 drivers/nfc/microread/microread.c mode = 0xff; mode 613 drivers/nfc/microread/microread.c MICROREAD_PAR_P2P_TARGET_MODE, &mode, 1); mode 41 drivers/nfc/nfcsim.c u8 mode; mode 56 drivers/nfc/nfcsim.c u8 mode; mode 92 drivers/nfc/nfcsim.c u8 rf_tech, u8 mode) mode 99 drivers/nfc/nfcsim.c link->mode = mode; mode 108 drivers/nfc/nfcsim.c link->mode = NFCSIM_MODE_NONE; mode 120 drivers/nfc/nfcsim.c link->mode = NFCSIM_MODE_NONE; mode 128 drivers/nfc/nfcsim.c int timeout, u8 rf_tech, u8 mode) mode 147 drivers/nfc/nfcsim.c if (!skb || link->rf_tech != rf_tech || link->mode == mode) { mode 188 drivers/nfc/nfcsim.c dev->rf_tech, dev->mode); mode 229 drivers/nfc/nfcsim.c dev->mode); mode 265 drivers/nfc/nfcsim.c dev->mode = NFCSIM_MODE_INITIATOR; mode 295 drivers/nfc/nfcsim.c dev->mode = NFCSIM_MODE_TARGET; mode 37 drivers/nfc/nxp-nci/core.c if (info->mode != NXP_NCI_MODE_COLD) { mode 45 drivers/nfc/nxp-nci/core.c info->mode = NXP_NCI_MODE_NCI; mode 62 drivers/nfc/nxp-nci/core.c info->mode = NXP_NCI_MODE_COLD; mode 78 drivers/nfc/nxp-nci/core.c if (info->mode != NXP_NCI_MODE_NCI) { mode 126 drivers/nfc/nxp-nci/core.c info->mode = NXP_NCI_MODE_COLD; mode 156 drivers/nfc/nxp-nci/core.c if (info->mode == NXP_NCI_MODE_FW) mode 63 drivers/nfc/nxp-nci/firmware.c info->mode = NXP_NCI_MODE_COLD; mode 230 drivers/nfc/nxp-nci/firmware.c info->mode = NXP_NCI_MODE_FW; mode 46 drivers/nfc/nxp-nci/i2c.c enum nxp_nci_mode mode) mode 50 drivers/nfc/nxp-nci/i2c.c gpiod_set_value(phy->gpiod_fw, (mode == NXP_NCI_MODE_FW) ? 1 : 0); mode 51 drivers/nfc/nxp-nci/i2c.c gpiod_set_value(phy->gpiod_en, (mode != NXP_NCI_MODE_COLD) ? 1 : 0); mode 54 drivers/nfc/nxp-nci/i2c.c if (mode == NXP_NCI_MODE_COLD) mode 209 drivers/nfc/nxp-nci/i2c.c switch (info->mode) { mode 223 drivers/nfc/nxp-nci/i2c.c if (info->mode == NXP_NCI_MODE_FW) mode 231 drivers/nfc/nxp-nci/i2c.c switch (info->mode) { mode 32 drivers/nfc/nxp-nci/nxp-nci.h int (*set_mode)(void *id, enum nxp_nci_mode mode); mode 57 drivers/nfc/nxp-nci/nxp-nci.h enum nxp_nci_mode mode; mode 1184 drivers/nfc/pn533/pn533.c u8 mode, *cmd, comm_mode = NFC_COMM_PASSIVE, *gb; mode 1193 drivers/nfc/pn533/pn533.c mode = resp->data[0]; mode 1197 drivers/nfc/pn533/pn533.c mode, resp->len); mode 1199 drivers/nfc/pn533/pn533.c if ((mode & PN533_INIT_TARGET_RESP_FRAME_MASK) == mode 1203 drivers/nfc/pn533/pn533.c if ((mode & PN533_INIT_TARGET_RESP_DEP) == 0) /* Only DEP supported */ mode 1708 drivers/nfc/pn533/pn533.c struct nfc_target *target, u8 mode) mode 193 drivers/nfc/s3fwrn5/core.c enum s3fwrn5_mode mode) mode 195 drivers/nfc/s3fwrn5/core.c switch (mode) { mode 34 drivers/nfc/s3fwrn5/i2c.c enum s3fwrn5_mode mode; mode 48 drivers/nfc/s3fwrn5/i2c.c static void s3fwrn5_i2c_set_mode(void *phy_id, enum s3fwrn5_mode mode) mode 54 drivers/nfc/s3fwrn5/i2c.c if (phy->mode == mode) mode 57 drivers/nfc/s3fwrn5/i2c.c phy->mode = mode; mode 61 drivers/nfc/s3fwrn5/i2c.c if (mode == S3FWRN5_MODE_FW) mode 64 drivers/nfc/s3fwrn5/i2c.c if (mode != S3FWRN5_MODE_COLD) { mode 79 drivers/nfc/s3fwrn5/i2c.c enum s3fwrn5_mode mode; mode 83 drivers/nfc/s3fwrn5/i2c.c mode = phy->mode; mode 87 drivers/nfc/s3fwrn5/i2c.c return mode; mode 132 drivers/nfc/s3fwrn5/i2c.c hdr_size = (phy->mode == S3FWRN5_MODE_NCI) ? mode 141 drivers/nfc/s3fwrn5/i2c.c data_len = (phy->mode == S3FWRN5_MODE_NCI) ? mode 161 drivers/nfc/s3fwrn5/i2c.c return s3fwrn5_recv_frame(phy->ndev, skb, phy->mode); mode 179 drivers/nfc/s3fwrn5/i2c.c switch (phy->mode) { mode 225 drivers/nfc/s3fwrn5/i2c.c phy->mode = S3FWRN5_MODE_COLD; mode 45 drivers/nfc/s3fwrn5/s3fwrn5.h enum s3fwrn5_mode mode) mode 50 drivers/nfc/s3fwrn5/s3fwrn5.h info->phy_ops->set_mode(info->phy_id, mode); mode 86 drivers/nfc/s3fwrn5/s3fwrn5.h enum s3fwrn5_mode mode); mode 26 drivers/nfc/st-nci/core.c cmd.mode = 1; mode 60 drivers/nfc/st-nci/ndlc.c cmd.mode = 0; mode 32 drivers/nfc/st-nci/st-nci.h u8 mode; mode 2009 drivers/nfc/trf7970a.c spi->mode = SPI_MODE_1; mode 555 drivers/nvdimm/bus.c void nd_device_unregister(struct device *dev, enum nd_async_mode mode) mode 559 drivers/nvdimm/bus.c switch (mode) { mode 695 drivers/nvdimm/bus.c return a->mode; mode 1165 drivers/nvdimm/bus.c enum nd_ioctl_mode mode) mode 1176 drivers/nvdimm/bus.c if (mode == DIMM_IOCTL) { mode 130 drivers/nvdimm/claim.c nd_pfn->mode = PFN_MODE_NONE; mode 434 drivers/nvdimm/dimm_devs.c return a->mode; mode 444 drivers/nvdimm/dimm_devs.c return a->mode; mode 449 drivers/nvdimm/dimm_devs.c return a->mode; mode 1586 drivers/nvdimm/namespace_devs.c char *mode; mode 1592 drivers/nvdimm/namespace_devs.c mode = "safe"; mode 1594 drivers/nvdimm/namespace_devs.c mode = "memory"; mode 1596 drivers/nvdimm/namespace_devs.c mode = "dax"; mode 1598 drivers/nvdimm/namespace_devs.c mode = "memory"; mode 1600 drivers/nvdimm/namespace_devs.c mode = "raw"; mode 1601 drivers/nvdimm/namespace_devs.c rc = sprintf(buf, "%s\n", mode); mode 1606 drivers/nvdimm/namespace_devs.c static DEVICE_ATTR_RO(mode); mode 1658 drivers/nvdimm/namespace_devs.c return a->mode; mode 1666 drivers/nvdimm/namespace_devs.c return a->mode; mode 206 drivers/nvdimm/nd.h enum nd_pfn_mode mode; mode 223 drivers/nvdimm/nd.h void nd_device_unregister(struct device *dev, enum nd_async_mode mode); mode 25 drivers/nvdimm/pfn.h __le32 mode; mode 54 drivers/nvdimm/pfn_devs.c switch (nd_pfn->mode) { mode 79 drivers/nvdimm/pfn_devs.c nd_pfn->mode = PFN_MODE_PMEM; mode 82 drivers/nvdimm/pfn_devs.c nd_pfn->mode = PFN_MODE_RAM; mode 85 drivers/nvdimm/pfn_devs.c nd_pfn->mode = PFN_MODE_NONE; mode 96 drivers/nvdimm/pfn_devs.c static DEVICE_ATTR_RW(mode); mode 287 drivers/nvdimm/pfn_devs.c return a->mode; mode 310 drivers/nvdimm/pfn_devs.c nd_pfn->mode = PFN_MODE_NONE; mode 378 drivers/nvdimm/pfn_devs.c if (nd_pfn->mode != PFN_MODE_PMEM) mode 448 drivers/nvdimm/pfn_devs.c enum nd_pfn_mode mode; mode 489 drivers/nvdimm/pfn_devs.c switch (le32_to_cpu(pfn_sb->mode)) { mode 502 drivers/nvdimm/pfn_devs.c mode = le32_to_cpu(pfn_sb->mode); mode 505 drivers/nvdimm/pfn_devs.c (mode == PFN_MODE_PMEM)) { mode 513 drivers/nvdimm/pfn_devs.c (mode == PFN_MODE_PMEM)) { mode 542 drivers/nvdimm/pfn_devs.c nd_pfn->mode = mode; mode 557 drivers/nvdimm/pfn_devs.c if (nd_pfn->align != align || nd_pfn->mode != mode) { mode 561 drivers/nvdimm/pfn_devs.c nd_pfn->align, align, nd_pfn->mode, mode 562 drivers/nvdimm/pfn_devs.c mode); mode 686 drivers/nvdimm/pfn_devs.c if (nd_pfn->mode == PFN_MODE_RAM) { mode 690 drivers/nvdimm/pfn_devs.c } else if (nd_pfn->mode == PFN_MODE_PMEM) { mode 757 drivers/nvdimm/pfn_devs.c if (nd_pfn->mode == PFN_MODE_PMEM) { mode 772 drivers/nvdimm/pfn_devs.c } else if (nd_pfn->mode == PFN_MODE_RAM) mode 784 drivers/nvdimm/pfn_devs.c pfn_sb->mode = cpu_to_le32(nd_pfn->mode); mode 649 drivers/nvdimm/region_devs.c return a->mode; mode 660 drivers/nvdimm/region_devs.c return a->mode; mode 665 drivers/nvdimm/region_devs.c return a->mode; mode 670 drivers/nvdimm/region_devs.c return a->mode; mode 672 drivers/nvdimm/region_devs.c return a->mode; mode 818 drivers/nvdimm/region_devs.c return a->mode; mode 1560 drivers/nvme/host/core.c static int nvme_ioctl(struct block_device *bdev, fmode_t mode, mode 1605 drivers/nvme/host/core.c static int nvme_open(struct block_device *bdev, fmode_t mode) mode 1627 drivers/nvme/host/core.c static void nvme_release(struct gendisk *disk, fmode_t mode) mode 2046 drivers/nvme/host/core.c static int nvme_ns_head_open(struct block_device *bdev, fmode_t mode) mode 2055 drivers/nvme/host/core.c static void nvme_ns_head_release(struct gendisk *disk, fmode_t mode) mode 3143 drivers/nvme/host/core.c return a->mode; mode 3281 drivers/nvme/host/core.c return a->mode; mode 1252 drivers/nvme/host/lightnvm.c return attr->mode; mode 1257 drivers/nvme/host/lightnvm.c return attr->mode; mode 1261 drivers/nvme/host/lightnvm.c return attr->mode; mode 282 drivers/nvme/target/io-cmd-file.c int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; mode 304 drivers/nvme/target/io-cmd-file.c ret = vfs_fallocate(req->ns->file, mode, offset, len); mode 342 drivers/nvme/target/io-cmd-file.c int mode = FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE; mode 356 drivers/nvme/target/io-cmd-file.c ret = vfs_fallocate(req->ns->file, mode, offset, len); mode 111 drivers/nvmem/nvmem-sysfs.c .mode = 0644, mode 136 drivers/nvmem/nvmem-sysfs.c .mode = 0444, mode 160 drivers/nvmem/nvmem-sysfs.c .mode = 0600, mode 185 drivers/nvmem/nvmem-sysfs.c .mode = 0400, mode 78 drivers/of/kobj.c pp->attr.attr.mode = secure ? 0400 : 0444; mode 27 drivers/oprofile/oprofilefs.c static struct inode *oprofilefs_get_inode(struct super_block *sb, int mode) mode 33 drivers/oprofile/oprofilefs.c inode->i_mode = mode; mode 562 drivers/parisc/iosapic.c u32 mode = 0; mode 566 drivers/parisc/iosapic.c mode |= IOSAPIC_IRDT_PO_LOW; mode 569 drivers/parisc/iosapic.c mode |= IOSAPIC_IRDT_LEVEL_TRIG; mode 576 drivers/parisc/iosapic.c *dp0 = mode | (u32) vi->txn_data; mode 111 drivers/parisc/pdc_stable.c .attr = {.name = __stringify(_name), .mode = _mode}, \ mode 118 drivers/parisc/pdc_stable.c .attr = {.name = __stringify(_name), .mode = _mode}, \ mode 353 drivers/parport/daisy.c int parport_daisy_select(struct parport *port, int daisy, int mode) mode 355 drivers/parport/daisy.c switch (mode) mode 226 drivers/parport/ieee1284.c switch (port->ieee1284.mode) { mode 304 drivers/parport/ieee1284.c port->ieee1284.mode = IEEE1284_MODE_COMPAT; mode 327 drivers/parport/ieee1284.c int parport_negotiate (struct parport *port, int mode) mode 330 drivers/parport/ieee1284.c if (mode == IEEE1284_MODE_COMPAT) mode 335 drivers/parport/ieee1284.c int m = mode & ~IEEE1284_ADDR; mode 342 drivers/parport/ieee1284.c if (port->ieee1284.mode == mode) mode 346 drivers/parport/ieee1284.c if ((port->ieee1284.mode & ~IEEE1284_ADDR) == (mode & ~IEEE1284_ADDR)){ mode 347 drivers/parport/ieee1284.c port->ieee1284.mode = mode; mode 352 drivers/parport/ieee1284.c if (port->ieee1284.mode != IEEE1284_MODE_COMPAT) mode 355 drivers/parport/ieee1284.c if (mode == IEEE1284_MODE_COMPAT) mode 359 drivers/parport/ieee1284.c switch (mode) { mode 371 drivers/parport/ieee1284.c if (mode & IEEE1284_EXT_LINK) mode 435 drivers/parport/ieee1284.c port->name, mode, port->ops->read_status (port)); mode 443 drivers/parport/ieee1284.c if (mode && !xflag) { mode 446 drivers/parport/ieee1284.c port->name, mode); mode 452 drivers/parport/ieee1284.c if (mode & IEEE1284_EXT_LINK) { mode 453 drivers/parport/ieee1284.c m = mode & 0x7f; mode 486 drivers/parport/ieee1284.c port->name, mode, mode 499 drivers/parport/ieee1284.c "supported\n", port->name, mode); mode 508 drivers/parport/ieee1284.c DPRINTK (KERN_DEBUG "%s: In mode 0x%02x\n", port->name, mode); mode 509 drivers/parport/ieee1284.c port->ieee1284.mode = mode; mode 512 drivers/parport/ieee1284.c if (!(mode & IEEE1284_EXT_LINK) && (m & IEEE1284_MODE_ECP)) { mode 532 drivers/parport/ieee1284.c } else switch (mode) { mode 606 drivers/parport/ieee1284.c int mode = port->ieee1284.mode; mode 607 drivers/parport/ieee1284.c int addr = mode & IEEE1284_ADDR; mode 611 drivers/parport/ieee1284.c mode &= ~(IEEE1284_DEVICEID | IEEE1284_ADDR); mode 614 drivers/parport/ieee1284.c switch (mode) { mode 666 drivers/parport/ieee1284.c port->ieee1284.mode); mode 700 drivers/parport/ieee1284.c int mode = port->physport->ieee1284.mode; mode 701 drivers/parport/ieee1284.c int addr = mode & IEEE1284_ADDR; mode 705 drivers/parport/ieee1284.c mode &= ~(IEEE1284_DEVICEID | IEEE1284_ADDR); mode 708 drivers/parport/ieee1284.c switch (mode) { mode 767 drivers/parport/ieee1284.c port->physport->ieee1284.mode); mode 573 drivers/parport/ieee1284_ops.c else if (port->ieee1284.mode != IEEE1284_MODE_ECPRLE) mode 834 drivers/parport/parport_ip32.c static void parport_ip32_set_mode(struct parport *p, unsigned int mode) mode 838 drivers/parport/parport_ip32.c mode &= ECR_MODE_MASK; mode 841 drivers/parport/parport_ip32.c if (!(mode == ECR_MODE_SPP || mode == ECR_MODE_PS2 mode 847 drivers/parport/parport_ip32.c parport_ip32_write_econtrol(p, mode | ECR_nERRINTR | ECR_SERVINTR); mode 1532 drivers/parport/parport_ip32.c unsigned int mode) mode 1578 drivers/parport/parport_ip32.c if (mode == ECR_MODE_ECP) { mode 127 drivers/parport/parport_pc.c static inline void frob_set_mode(struct parport *p, int mode) mode 129 drivers/parport/parport_pc.c frob_econtrol(p, ECR_MODE_MASK, mode << 5); mode 143 drivers/parport/parport_pc.c int mode; mode 154 drivers/parport/parport_pc.c mode = (oecr >> 5) & 0x7; mode 155 drivers/parport/parport_pc.c if (mode == m) mode 158 drivers/parport/parport_pc.c if (mode >= 2 && !(priv->ctr & 0x20)) { mode 163 drivers/parport/parport_pc.c switch (mode) { mode 188 drivers/parport/parport_pc.c if (mode >= 2 && m >= 2) { mode 238 drivers/parport/procfs.c #define PARPORT_PORT_DIR(CHILD) { .procname = NULL, .mode = 0555, .child = CHILD } mode 240 drivers/parport/procfs.c .mode = 0555, .child = CHILD } mode 241 drivers/parport/procfs.c #define PARPORT_DEV_DIR(CHILD) { .procname = "dev", .mode = 0555, .child = CHILD } mode 243 drivers/parport/procfs.c .mode = 0555, .child = NULL } mode 274 drivers/parport/procfs.c .mode = 0644, mode 283 drivers/parport/procfs.c .mode = 0444, mode 290 drivers/parport/procfs.c .mode = 0444, mode 297 drivers/parport/procfs.c .mode = 0444, mode 304 drivers/parport/procfs.c .mode = 0444, mode 313 drivers/parport/procfs.c .mode = 0444, mode 320 drivers/parport/procfs.c .mode = 0444, mode 327 drivers/parport/procfs.c .mode = 0444, mode 334 drivers/parport/procfs.c .mode = 0444, mode 341 drivers/parport/procfs.c .mode = 0444, mode 352 drivers/parport/procfs.c .mode = 0444, mode 390 drivers/parport/procfs.c .mode = 0644, mode 401 drivers/parport/procfs.c .mode = 0555, mode 441 drivers/parport/procfs.c .mode = 0644, mode 450 drivers/parport/procfs.c .mode = 0644, mode 460 drivers/parport/procfs.c .mode = 0555, mode 486 drivers/parport/share.c tmp->ieee1284.mode = IEEE1284_MODE_COMPAT; mode 96 drivers/pci/controller/dwc/pci-dra7xx.c enum dw_pcie_device_mode mode; mode 100 drivers/pci/controller/dwc/pci-dra7xx.c enum dw_pcie_device_mode mode; mode 334 drivers/pci/controller/dwc/pci-dra7xx.c if (dra7xx->mode == DW_PCIE_EP_TYPE) mode 549 drivers/pci/controller/dwc/pci-dra7xx.c .mode = DW_PCIE_RC_TYPE, mode 553 drivers/pci/controller/dwc/pci-dra7xx.c .mode = DW_PCIE_EP_TYPE, mode 558 drivers/pci/controller/dwc/pci-dra7xx.c .mode = DW_PCIE_RC_TYPE, mode 563 drivers/pci/controller/dwc/pci-dra7xx.c .mode = DW_PCIE_RC_TYPE, mode 568 drivers/pci/controller/dwc/pci-dra7xx.c .mode = DW_PCIE_EP_TYPE, mode 573 drivers/pci/controller/dwc/pci-dra7xx.c .mode = DW_PCIE_EP_TYPE, mode 693 drivers/pci/controller/dwc/pci-dra7xx.c enum dw_pcie_device_mode mode; mode 701 drivers/pci/controller/dwc/pci-dra7xx.c mode = (enum dw_pcie_device_mode)data->mode; mode 794 drivers/pci/controller/dwc/pci-dra7xx.c switch (mode) { mode 830 drivers/pci/controller/dwc/pci-dra7xx.c dev_err(dev, "INVALID device type %d\n", mode); mode 832 drivers/pci/controller/dwc/pci-dra7xx.c dra7xx->mode = mode; mode 864 drivers/pci/controller/dwc/pci-dra7xx.c if (dra7xx->mode != DW_PCIE_RC_TYPE) mode 881 drivers/pci/controller/dwc/pci-dra7xx.c if (dra7xx->mode != DW_PCIE_RC_TYPE) mode 93 drivers/pci/controller/dwc/pci-keystone.c #define KS_PCIE_DEV_TYPE(mode) ((mode) << 1) mode 111 drivers/pci/controller/dwc/pci-keystone.c enum dw_pcie_device_mode mode; mode 1090 drivers/pci/controller/dwc/pci-keystone.c enum dw_pcie_device_mode mode) mode 1104 drivers/pci/controller/dwc/pci-keystone.c switch (mode) { mode 1112 drivers/pci/controller/dwc/pci-keystone.c dev_err(dev, "INVALID device type %d\n", mode); mode 1157 drivers/pci/controller/dwc/pci-keystone.c .mode = DW_PCIE_RC_TYPE, mode 1163 drivers/pci/controller/dwc/pci-keystone.c .mode = DW_PCIE_EP_TYPE, mode 1192 drivers/pci/controller/dwc/pci-keystone.c enum dw_pcie_device_mode mode; mode 1218 drivers/pci/controller/dwc/pci-keystone.c mode = data->mode; mode 1332 drivers/pci/controller/dwc/pci-keystone.c ret = ks_pcie_am654_set_mode(dev, mode); mode 1347 drivers/pci/controller/dwc/pci-keystone.c switch (mode) { mode 1391 drivers/pci/controller/dwc/pci-keystone.c dev_err(dev, "INVALID device type %d\n", mode); mode 37 drivers/pci/controller/dwc/pcie-artpec6.c enum dw_pcie_device_mode mode; mode 42 drivers/pci/controller/dwc/pcie-artpec6.c enum dw_pcie_device_mode mode; mode 113 drivers/pci/controller/dwc/pcie-artpec6.c switch (artpec6_pcie->mode) { mode 496 drivers/pci/controller/dwc/pcie-artpec6.c enum dw_pcie_device_mode mode; mode 504 drivers/pci/controller/dwc/pcie-artpec6.c mode = (enum dw_pcie_device_mode)data->mode; mode 519 drivers/pci/controller/dwc/pcie-artpec6.c artpec6_pcie->mode = mode; mode 539 drivers/pci/controller/dwc/pcie-artpec6.c switch (artpec6_pcie->mode) { mode 563 drivers/pci/controller/dwc/pcie-artpec6.c dev_err(dev, "INVALID device type %d\n", artpec6_pcie->mode); mode 571 drivers/pci/controller/dwc/pcie-artpec6.c .mode = DW_PCIE_RC_TYPE, mode 576 drivers/pci/controller/dwc/pcie-artpec6.c .mode = DW_PCIE_EP_TYPE, mode 581 drivers/pci/controller/dwc/pcie-artpec6.c .mode = DW_PCIE_RC_TYPE, mode 586 drivers/pci/controller/dwc/pcie-artpec6.c .mode = DW_PCIE_EP_TYPE, mode 27 drivers/pci/controller/dwc/pcie-designware-plat.c enum dw_pcie_device_mode mode; mode 31 drivers/pci/controller/dwc/pcie-designware-plat.c enum dw_pcie_device_mode mode; mode 185 drivers/pci/controller/dwc/pcie-designware-plat.c enum dw_pcie_device_mode mode; mode 192 drivers/pci/controller/dwc/pcie-designware-plat.c mode = (enum dw_pcie_device_mode)data->mode; mode 206 drivers/pci/controller/dwc/pcie-designware-plat.c dw_plat_pcie->mode = mode; mode 218 drivers/pci/controller/dwc/pcie-designware-plat.c switch (dw_plat_pcie->mode) { mode 236 drivers/pci/controller/dwc/pcie-designware-plat.c dev_err(dev, "INVALID device type %d\n", dw_plat_pcie->mode); mode 243 drivers/pci/controller/dwc/pcie-designware-plat.c .mode = DW_PCIE_RC_TYPE, mode 247 drivers/pci/controller/dwc/pcie-designware-plat.c .mode = DW_PCIE_EP_TYPE, mode 307 drivers/pci/controller/dwc/pcie-tegra194.c enum dw_pcie_device_mode mode; mode 99 drivers/pci/hotplug/acpiphp_ibm.c .mode = S_IRUGO, mode 370 drivers/pci/hotplug/ibmphp_core.c u8 mode = 0; mode 377 drivers/pci/hotplug/ibmphp_core.c mode = slot->supported_bus_mode; mode 385 drivers/pci/hotplug/ibmphp_core.c if (mode == BUS_MODE_PCIX) mode 574 drivers/pci/hotplug/ibmphp_core.c u8 mode; mode 577 drivers/pci/hotplug/ibmphp_core.c mode = slot_cur->bus_on->current_bus_mode; mode 583 drivers/pci/hotplug/ibmphp_core.c if (mode == BUS_MODE_PCIX) mode 585 drivers/pci/hotplug/ibmphp_core.c else if (mode == BUS_MODE_PCI) mode 119 drivers/pci/hotplug/pci_hotplug_core.c .attr = {.name = "power", .mode = S_IFREG | S_IRUGO | S_IWUSR}, mode 164 drivers/pci/hotplug/pci_hotplug_core.c .attr = {.name = "attention", .mode = S_IFREG | S_IRUGO | S_IWUSR}, mode 182 drivers/pci/hotplug/pci_hotplug_core.c .attr = {.name = "latch", .mode = S_IFREG | S_IRUGO}, mode 199 drivers/pci/hotplug/pci_hotplug_core.c .attr = {.name = "adapter", .mode = S_IFREG | S_IRUGO}, mode 230 drivers/pci/hotplug/pci_hotplug_core.c .attr = {.name = "test", .mode = S_IFREG | S_IRUGO | S_IWUSR}, mode 314 drivers/pci/hotplug/shpchp.h int (*get_mode1_ECC_cap)(struct slot *slot, u8 *mode); mode 497 drivers/pci/hotplug/shpchp_hpc.c static int hpc_get_mode1_ECC_cap(struct slot *slot, u8 *mode) mode 505 drivers/pci/hotplug/shpchp_hpc.c *mode = (sec_bus_status & 0x0100) >> 8; mode 510 drivers/pci/hotplug/shpchp_hpc.c ctrl_dbg(ctrl, "Mode 1 ECC cap = %d\n", *mode); mode 401 drivers/pci/iov.c return a->mode; mode 515 drivers/pci/msi.c msi_dev_attr->attr.mode = S_IRUGO; mode 113 drivers/pci/pci-label.c .attr = {.name = "label", .mode = 0444}, mode 118 drivers/pci/pci-label.c .attr = {.name = "index", .mode = 0444}, mode 250 drivers/pci/pci-label.c .attr = {.name = "label", .mode = 0444}, mode 255 drivers/pci/pci-label.c .attr = {.name = "acpi_index", .mode = 0444}, mode 944 drivers/pci/pci-sysfs.c b->legacy_io->attr.mode = 0600; mode 958 drivers/pci/pci-sysfs.c b->legacy_mem->attr.mode = 0600; mode 1176 drivers/pci/pci-sysfs.c res_attr->attr.mode = 0600; mode 1289 drivers/pci/pci-sysfs.c .mode = 0644, mode 1299 drivers/pci/pci-sysfs.c .mode = 0644, mode 1381 drivers/pci/pci-sysfs.c attr->attr.mode = 0600; mode 1490 drivers/pci/pci-sysfs.c return a->mode; mode 1508 drivers/pci/pci-sysfs.c return a->mode; mode 1518 drivers/pci/pci-sysfs.c return a->mode; mode 1530 drivers/pci/pci-sysfs.c return a->mode; mode 649 drivers/pci/pcie/aer.c return a->mode; mode 447 drivers/pci/vpd.c attr->attr.mode = S_IRUSR | S_IWUSR; mode 1605 drivers/pcmcia/cistpl.c .attr = { .name = "cis", .mode = S_IRUGO | S_IWUSR }, mode 167 drivers/pcmcia/tcic.c u_char mode = (tcic_getb(TCIC_MODE) & TCIC_MODE_PGMMASK) | reg; mode 168 drivers/pcmcia/tcic.c tcic_setb(TCIC_MODE, mode); mode 174 drivers/pcmcia/tcic.c u_char mode = (tcic_getb(TCIC_MODE) & TCIC_MODE_PGMMASK) | reg; mode 175 drivers/pcmcia/tcic.c tcic_setb(TCIC_MODE, mode); mode 181 drivers/pcmcia/tcic.c u_char mode = (tcic_getb(TCIC_MODE) & TCIC_MODE_PGMMASK) | reg; mode 182 drivers/pcmcia/tcic.c tcic_setb(TCIC_MODE, mode); mode 385 drivers/perf/arm-ccn.c return attr->mode; mode 207 drivers/perf/arm_dsu_pmu.c return test_bit(evt, dsu_pmu->cpmceid_bitmap) ? attr->mode : 0; mode 544 drivers/perf/arm_smmuv3_pmu.c return attr->mode; mode 142 drivers/perf/fsl_imx8_ddr_perf.c IMX8_DDR_PMU_EVENT_ATTR(load-mode, 0x33), mode 473 drivers/phy/allwinner/phy-sun4i-usb.c enum phy_mode mode, int submode) mode 480 drivers/phy/allwinner/phy-sun4i-usb.c if (mode == PHY_MODE_USB_HOST) mode 485 drivers/phy/allwinner/phy-sun4i-usb.c switch (mode) { mode 59 drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c unsigned int mode; mode 284 drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c if (priv->mode == PHY_TYPE_USB3) mode 307 drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c unsigned int mode; mode 314 drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c mode = args->args[0]; mode 316 drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c if (mode != PHY_TYPE_USB3 && mode != PHY_TYPE_PCIE) { mode 321 drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c priv->mode = mode; mode 94 drivers/phy/amlogic/phy-meson-gxl-usb2.c enum phy_mode mode; mode 150 drivers/phy/amlogic/phy-meson-gxl-usb2.c enum phy_mode mode, int submode) mode 154 drivers/phy/amlogic/phy-meson-gxl-usb2.c switch (mode) { mode 179 drivers/phy/amlogic/phy-meson-gxl-usb2.c priv->mode = mode; mode 207 drivers/phy/amlogic/phy-meson-gxl-usb2.c ret = phy_meson_gxl_usb2_set_mode(phy, priv->mode, 0); mode 212 drivers/phy/amlogic/phy-meson-gxl-usb2.c priv->mode); mode 251 drivers/phy/amlogic/phy-meson-gxl-usb2.c priv->mode = PHY_MODE_USB_HOST; mode 85 drivers/phy/amlogic/phy-meson-gxl-usb3.c enum phy_mode mode; mode 123 drivers/phy/amlogic/phy-meson-gxl-usb3.c enum phy_mode mode, int submode) mode 127 drivers/phy/amlogic/phy-meson-gxl-usb3.c switch (mode) { mode 142 drivers/phy/amlogic/phy-meson-gxl-usb3.c dev_err(&phy->dev, "unsupported PHY mode %d\n", mode); mode 146 drivers/phy/amlogic/phy-meson-gxl-usb3.c priv->mode = mode; mode 168 drivers/phy/amlogic/phy-meson-gxl-usb3.c ret = phy_meson_gxl_usb3_set_mode(phy, priv->mode, 0); mode 248 drivers/phy/amlogic/phy-meson-gxl-usb3.c priv->mode = PHY_MODE_USB_HOST; mode 454 drivers/phy/broadcom/phy-brcm-usb-init.c static u32 brcmusb_usb_mdio_read(void __iomem *ctrl_base, u32 reg, int mode) mode 458 drivers/phy/broadcom/phy-brcm-usb-init.c data = (reg << 16) | mode; mode 473 drivers/phy/broadcom/phy-brcm-usb-init.c u32 val, int mode) mode 477 drivers/phy/broadcom/phy-brcm-usb-init.c data = (reg << 16) | val | mode; mode 837 drivers/phy/broadcom/phy-brcm-usb-init.c int mode) mode 846 drivers/phy/broadcom/phy-brcm-usb-init.c reg |= mode; mode 904 drivers/phy/broadcom/phy-brcm-usb-init.c reg |= params->mode; mode 908 drivers/phy/broadcom/phy-brcm-usb-init.c switch (params->mode) { mode 919 drivers/phy/broadcom/phy-brcm-usb-init.c if (params->mode == USB_CTLR_MODE_TYPEC_PD) mode 21 drivers/phy/broadcom/phy-brcm-usb-init.h int mode; mode 32 drivers/phy/broadcom/phy-brcm-usb-init.h int mode); mode 181 drivers/phy/broadcom/phy-brcm-usb.c priv->ini.mode)); mode 289 drivers/phy/broadcom/phy-brcm-usb.c const char *mode; mode 326 drivers/phy/broadcom/phy-brcm-usb.c priv->ini.mode = USB_CTLR_MODE_HOST; mode 327 drivers/phy/broadcom/phy-brcm-usb.c err = of_property_read_string(dn, "dr_mode", &mode); mode 331 drivers/phy/broadcom/phy-brcm-usb.c mode, &priv->ini.mode); mode 351 drivers/phy/broadcom/phy-brcm-usb.c if (priv->ini.mode != USB_CTLR_MODE_DRD) mode 235 drivers/phy/cadence/cdns-dphy.c static int cdns_dphy_validate(struct phy *phy, enum phy_mode mode, int submode, mode 240 drivers/phy/cadence/cdns-dphy.c if (mode != PHY_MODE_MIPI_DPHY) mode 348 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c static int mixel_dphy_validate(struct phy *phy, enum phy_mode mode, int submode, mode 353 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c if (mode != PHY_MODE_MIPI_DPHY) mode 49 drivers/phy/hisilicon/phy-histb-combphy.c struct histb_combphy_mode mode; mode 73 drivers/phy/hisilicon/phy-histb-combphy.c static int is_mode_fixed(struct histb_combphy_mode *mode) mode 75 drivers/phy/hisilicon/phy-histb-combphy.c return (mode->fixed != PHY_NONE) ? true : false; mode 80 drivers/phy/hisilicon/phy-histb-combphy.c struct histb_combphy_mode *mode = &priv->mode; mode 84 drivers/phy/hisilicon/phy-histb-combphy.c if (is_mode_fixed(mode)) mode 87 drivers/phy/hisilicon/phy-histb-combphy.c switch (mode->select) { mode 101 drivers/phy/hisilicon/phy-histb-combphy.c return regmap_update_bits(syscon, mode->reg, mode->mask, mode 102 drivers/phy/hisilicon/phy-histb-combphy.c hw_sel << mode->shift); mode 168 drivers/phy/hisilicon/phy-histb-combphy.c struct histb_combphy_mode *mode = &priv->mode; mode 175 drivers/phy/hisilicon/phy-histb-combphy.c mode->select = args->args[0]; mode 177 drivers/phy/hisilicon/phy-histb-combphy.c if (mode->select < PHY_TYPE_SATA || mode->select > PHY_TYPE_USB3) { mode 182 drivers/phy/hisilicon/phy-histb-combphy.c if (is_mode_fixed(mode) && mode->select != mode->fixed) { mode 184 drivers/phy/hisilicon/phy-histb-combphy.c mode->select, mode->fixed); mode 197 drivers/phy/hisilicon/phy-histb-combphy.c struct histb_combphy_mode *mode; mode 219 drivers/phy/hisilicon/phy-histb-combphy.c mode = &priv->mode; mode 220 drivers/phy/hisilicon/phy-histb-combphy.c mode->fixed = PHY_NONE; mode 222 drivers/phy/hisilicon/phy-histb-combphy.c ret = of_property_read_u32(np, "hisilicon,fixed-mode", &mode->fixed); mode 224 drivers/phy/hisilicon/phy-histb-combphy.c dev_dbg(dev, "found fixed phy mode %d\n", mode->fixed); mode 229 drivers/phy/hisilicon/phy-histb-combphy.c if (is_mode_fixed(mode)) { mode 234 drivers/phy/hisilicon/phy-histb-combphy.c mode->reg = vals[0]; mode 235 drivers/phy/hisilicon/phy-histb-combphy.c mode->shift = vals[1]; mode 236 drivers/phy/hisilicon/phy-histb-combphy.c mode->mask = vals[2]; mode 239 drivers/phy/hisilicon/phy-histb-combphy.c if (!is_mode_fixed(mode)) { mode 86 drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c unsigned int mode; mode 364 drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c unsigned int mode; mode 371 drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c mode = args->args[0]; mode 373 drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c switch (mode) { mode 375 drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c priv->mode = mode; mode 383 drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c dev_err(dev, "PHY mode not implemented yet: %u\n", mode); mode 387 drivers/phy/lantiq/phy-lantiq-vrx200-pcie.c dev_err(dev, "invalid PHY mode %u\n", mode); mode 96 drivers/phy/marvell/phy-armada38x-comphy.c static int a38x_comphy_set_mode(struct phy *phy, enum phy_mode mode, int sub) mode 101 drivers/phy/marvell/phy-armada38x-comphy.c if (mode != PHY_MODE_ETHERNET) mode 51 drivers/phy/marvell/phy-mvebu-a3700-comphy.c #define COMPHY_FW_MODE(mode) ((mode) << 12) mode 52 drivers/phy/marvell/phy-mvebu-a3700-comphy.c #define COMPHY_FW_NET(mode, idx, speed) (COMPHY_FW_MODE(mode) | \ mode 55 drivers/phy/marvell/phy-mvebu-a3700-comphy.c #define COMPHY_FW_PCIE(mode, idx, speed, width) (COMPHY_FW_NET(mode, idx, speed) | \ mode 60 drivers/phy/marvell/phy-mvebu-a3700-comphy.c enum phy_mode mode; mode 69 drivers/phy/marvell/phy-mvebu-a3700-comphy.c .mode = _mode, \ mode 106 drivers/phy/marvell/phy-mvebu-a3700-comphy.c enum phy_mode mode; mode 112 drivers/phy/marvell/phy-mvebu-a3700-comphy.c unsigned long mode) mode 116 drivers/phy/marvell/phy-mvebu-a3700-comphy.c arm_smccc_smc(function, lane, mode, 0, 0, 0, 0, 0, &res); mode 122 drivers/phy/marvell/phy-mvebu-a3700-comphy.c enum phy_mode mode, mode 128 drivers/phy/marvell/phy-mvebu-a3700-comphy.c if (mode == PHY_MODE_INVALID) mode 134 drivers/phy/marvell/phy-mvebu-a3700-comphy.c mvebu_a3700_comphy_modes[i].mode == mode && mode 145 drivers/phy/marvell/phy-mvebu-a3700-comphy.c static int mvebu_a3700_comphy_set_mode(struct phy *phy, enum phy_mode mode, mode 154 drivers/phy/marvell/phy-mvebu-a3700-comphy.c fw_mode = mvebu_a3700_comphy_get_fw_mode(lane->id, lane->port, mode, mode 162 drivers/phy/marvell/phy-mvebu-a3700-comphy.c lane->mode = mode; mode 176 drivers/phy/marvell/phy-mvebu-a3700-comphy.c lane->mode, lane->submode); mode 182 drivers/phy/marvell/phy-mvebu-a3700-comphy.c switch (lane->mode) { mode 218 drivers/phy/marvell/phy-mvebu-a3700-comphy.c dev_err(lane->dev, "unsupported PHY mode (%d)\n", lane->mode); mode 300 drivers/phy/marvell/phy-mvebu-a3700-comphy.c lane->mode = PHY_MODE_INVALID; mode 153 drivers/phy/marvell/phy-mvebu-cp110-comphy.c #define COMPHY_FW_PARAM_FULL(mode, port, speed, pol, width) \ mode 155 drivers/phy/marvell/phy-mvebu-cp110-comphy.c (((mode) << COMPHY_FW_MODE_OFFSET) & COMPHY_FW_MODE_MASK) | \ mode 160 drivers/phy/marvell/phy-mvebu-cp110-comphy.c #define COMPHY_FW_PARAM(mode, port) \ mode 161 drivers/phy/marvell/phy-mvebu-cp110-comphy.c COMPHY_FW_PARAM_FULL(mode, port, COMPHY_FW_SPEED_MAX, 0, 0) mode 163 drivers/phy/marvell/phy-mvebu-cp110-comphy.c #define COMPHY_FW_PARAM_ETH(mode, port, speed) \ mode 164 drivers/phy/marvell/phy-mvebu-cp110-comphy.c COMPHY_FW_PARAM_FULL(mode, port, speed, 0, 0) mode 166 drivers/phy/marvell/phy-mvebu-cp110-comphy.c #define COMPHY_FW_PARAM_PCIE(mode, port, width) \ mode 167 drivers/phy/marvell/phy-mvebu-cp110-comphy.c COMPHY_FW_PARAM_FULL(mode, port, COMPHY_FW_SPEED_5000, 0, width) mode 179 drivers/phy/marvell/phy-mvebu-cp110-comphy.c enum phy_mode mode; mode 191 drivers/phy/marvell/phy-mvebu-cp110-comphy.c .mode = PHY_MODE_ETHERNET, \ mode 201 drivers/phy/marvell/phy-mvebu-cp110-comphy.c .mode = _mode, \ mode 267 drivers/phy/marvell/phy-mvebu-cp110-comphy.c enum phy_mode mode; mode 273 drivers/phy/marvell/phy-mvebu-cp110-comphy.c unsigned long lane, unsigned long mode) mode 277 drivers/phy/marvell/phy-mvebu-cp110-comphy.c arm_smccc_smc(function, phys, lane, mode, 0, 0, 0, 0, &res); mode 283 drivers/phy/marvell/phy-mvebu-cp110-comphy.c enum phy_mode mode, int submode) mode 287 drivers/phy/marvell/phy-mvebu-cp110-comphy.c bool ignore_submode = (mode == PHY_MODE_PCIE); mode 291 drivers/phy/marvell/phy-mvebu-cp110-comphy.c if (mode == PHY_MODE_INVALID) mode 298 drivers/phy/marvell/phy-mvebu-cp110-comphy.c conf->mode == mode && mode 313 drivers/phy/marvell/phy-mvebu-cp110-comphy.c enum phy_mode mode, int submode) mode 315 drivers/phy/marvell/phy-mvebu-cp110-comphy.c return mvebu_comphy_get_mode(false, lane, port, mode, submode); mode 319 drivers/phy/marvell/phy-mvebu-cp110-comphy.c enum phy_mode mode, int submode) mode 321 drivers/phy/marvell/phy-mvebu-cp110-comphy.c return mvebu_comphy_get_mode(true, lane, port, mode, submode); mode 717 drivers/phy/marvell/phy-mvebu-cp110-comphy.c lane->mode, lane->submode); mode 762 drivers/phy/marvell/phy-mvebu-cp110-comphy.c lane->mode, lane->submode); mode 767 drivers/phy/marvell/phy-mvebu-cp110-comphy.c switch (lane->mode) { mode 813 drivers/phy/marvell/phy-mvebu-cp110-comphy.c dev_err(priv->dev, "unsupported PHY mode (%d)\n", lane->mode); mode 828 drivers/phy/marvell/phy-mvebu-cp110-comphy.c lane->id, lane->mode, ret); mode 836 drivers/phy/marvell/phy-mvebu-cp110-comphy.c enum phy_mode mode, int submode) mode 843 drivers/phy/marvell/phy-mvebu-cp110-comphy.c if (mvebu_comphy_get_fw_mode(lane->id, lane->port, mode, submode) < 0) mode 846 drivers/phy/marvell/phy-mvebu-cp110-comphy.c lane->mode = mode; mode 850 drivers/phy/marvell/phy-mvebu-cp110-comphy.c if (mode == PHY_MODE_PCIE && !lane->submode) mode 1051 drivers/phy/marvell/phy-mvebu-cp110-comphy.c lane->mode = PHY_MODE_INVALID; mode 600 drivers/phy/mediatek/phy-mtk-tphy.c enum phy_mode mode) mode 606 drivers/phy/mediatek/phy-mtk-tphy.c switch (mode) { mode 974 drivers/phy/mediatek/phy-mtk-tphy.c static int mtk_phy_set_mode(struct phy *phy, enum phy_mode mode, int submode) mode 980 drivers/phy/mediatek/phy-mtk-tphy.c u2_phy_instance_set_mode(tphy, instance, mode); mode 247 drivers/phy/mediatek/phy-mtk-xsphy.c enum phy_mode mode) mode 252 drivers/phy/mediatek/phy-mtk-xsphy.c switch (mode) { mode 429 drivers/phy/mediatek/phy-mtk-xsphy.c static int mtk_phy_set_mode(struct phy *phy, enum phy_mode mode, int submode) mode 435 drivers/phy/mediatek/phy-mtk-xsphy.c u2_phy_instance_set_mode(xsphy, inst, mode); mode 369 drivers/phy/motorola/phy-cpcap-usb.c enum cpcap_gpio_mode mode) mode 374 drivers/phy/motorola/phy-cpcap-usb.c gpiod_set_value(ddata->gpio[0], mode & 1); mode 375 drivers/phy/motorola/phy-cpcap-usb.c gpiod_set_value(ddata->gpio[1], mode >> 1); mode 60 drivers/phy/mscc/phy-ocelot-serdes.c static int serdes_init_s6g(struct regmap *regmap, u8 serdes, int mode) mode 71 drivers/phy/mscc/phy-ocelot-serdes.c if (mode == PHY_INTERFACE_MODE_QSGMII) { mode 339 drivers/phy/mscc/phy-ocelot-serdes.c enum phy_mode mode; mode 348 drivers/phy/mscc/phy-ocelot-serdes.c .mode = _mode, \ mode 398 drivers/phy/mscc/phy-ocelot-serdes.c static int serdes_set_mode(struct phy *phy, enum phy_mode mode, int submode) mode 405 drivers/phy/mscc/phy-ocelot-serdes.c if (mode != PHY_MODE_ETHERNET) mode 410 drivers/phy/mscc/phy-ocelot-serdes.c mode != ocelot_serdes_muxes[i].mode || mode 359 drivers/phy/phy-core.c int phy_set_mode_ext(struct phy *phy, enum phy_mode mode, int submode) mode 367 drivers/phy/phy-core.c ret = phy->ops->set_mode(phy, mode, submode); mode 369 drivers/phy/phy-core.c phy->attrs.mode = mode; mode 467 drivers/phy/phy-core.c int phy_validate(struct phy *phy, enum phy_mode mode, int submode, mode 479 drivers/phy/phy-core.c ret = phy->ops->validate(phy, mode, submode, opts); mode 533 drivers/phy/phy-xgene.c enum xgene_phy_mode mode; /* Mode of operation */ mode 1323 drivers/phy/phy-xgene.c if (ctx->mode == MODE_SATA) { mode 1329 drivers/phy/phy-xgene.c ctx->mode); mode 1621 drivers/phy/phy-xgene.c ctx->mode = args->args[0]; mode 999 drivers/phy/qualcomm/phy-qcom-qmp.c enum phy_mode mode; mode 1600 drivers/phy/qualcomm/phy-qcom-qmp.c enum phy_mode mode, int submode) mode 1605 drivers/phy/qualcomm/phy-qcom-qmp.c qmp->mode = mode; mode 1618 drivers/phy/qualcomm/phy-qcom-qmp.c if (qmp->mode == PHY_MODE_USB_HOST_SS || mode 1619 drivers/phy/qualcomm/phy-qcom-qmp.c qmp->mode == PHY_MODE_USB_DEVICE_SS) mode 1665 drivers/phy/qualcomm/phy-qcom-qmp.c dev_vdbg(dev, "Suspending QMP phy, mode:%d\n", qmp->mode); mode 1691 drivers/phy/qualcomm/phy-qcom-qmp.c dev_vdbg(dev, "Resuming QMP phy, mode:%d\n", qmp->mode); mode 334 drivers/phy/qualcomm/phy-qcom-qusb2.c enum phy_mode mode; mode 466 drivers/phy/qualcomm/phy-qcom-qusb2.c enum phy_mode mode, int submode) mode 470 drivers/phy/qualcomm/phy-qcom-qusb2.c qphy->mode = mode; mode 481 drivers/phy/qualcomm/phy-qcom-qusb2.c dev_vdbg(dev, "Suspending QUSB2 Phy, mode:%d\n", qphy->mode); mode 495 drivers/phy/qualcomm/phy-qcom-qusb2.c switch (qphy->mode) { mode 524 drivers/phy/qualcomm/phy-qcom-qusb2.c if (qphy->mode != PHY_MODE_INVALID) { mode 547 drivers/phy/qualcomm/phy-qcom-qusb2.c dev_vdbg(dev, "Resuming QUSB2 phy, mode:%d\n", qphy->mode); mode 93 drivers/phy/qualcomm/phy-qcom-ufs-i.h enum phy_mode mode; mode 38 drivers/phy/qualcomm/phy-qcom-ufs-qmp-14nm.c enum phy_mode mode, int submode) mode 42 drivers/phy/qualcomm/phy-qcom-ufs-qmp-14nm.c phy_common->mode = PHY_MODE_INVALID; mode 44 drivers/phy/qualcomm/phy-qcom-ufs-qmp-14nm.c if (mode > 0) mode 45 drivers/phy/qualcomm/phy-qcom-ufs-qmp-14nm.c phy_common->mode = mode; mode 57 drivers/phy/qualcomm/phy-qcom-ufs-qmp-20nm.c enum phy_mode mode, int submode) mode 61 drivers/phy/qualcomm/phy-qcom-ufs-qmp-20nm.c phy_common->mode = PHY_MODE_INVALID; mode 63 drivers/phy/qualcomm/phy-qcom-ufs-qmp-20nm.c if (mode > 0) mode 64 drivers/phy/qualcomm/phy-qcom-ufs-qmp-20nm.c phy_common->mode = mode; mode 548 drivers/phy/qualcomm/phy-qcom-ufs.c if (phy_common->mode == PHY_MODE_UFS_HS_B) mode 43 drivers/phy/qualcomm/phy-qcom-usb-hs.c enum phy_mode mode, int submode) mode 52 drivers/phy/qualcomm/phy-qcom-usb-hs.c switch (mode) { mode 68 drivers/phy/qualcomm/phy-qcom-usb-hs.c switch (mode) { mode 581 drivers/phy/renesas/phy-rcar-gen3-usb2.c enum usb_dr_mode mode = of_usb_get_dr_mode_by_phy(np, i); mode 583 drivers/phy/renesas/phy-rcar-gen3-usb2.c if (mode != USB_DR_MODE_UNKNOWN) { mode 585 drivers/phy/renesas/phy-rcar-gen3-usb2.c candidate = mode; mode 586 drivers/phy/renesas/phy-rcar-gen3-usb2.c else if (candidate != mode) mode 191 drivers/phy/rockchip/phy-rockchip-inno-usb2.c enum usb_dr_mode mode; mode 412 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (rport->mode != USB_DR_MODE_HOST && mode 413 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->mode != USB_DR_MODE_UNKNOWN) { mode 431 drivers/phy/rockchip/phy-rockchip-inno-usb2.c dev_dbg(&rport->phy->dev, "mode %d\n", rport->mode); mode 507 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->mode != USB_DR_MODE_HOST && mode 508 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->mode != USB_DR_MODE_UNKNOWN) { mode 1000 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->mode = of_usb_get_dr_mode_by_phy(child_np, -1); mode 1001 drivers/phy/rockchip/phy-rockchip-inno-usb2.c if (rport->mode == USB_DR_MODE_HOST || mode 1002 drivers/phy/rockchip/phy-rockchip-inno-usb2.c rport->mode == USB_DR_MODE_UNKNOWN) { mode 386 drivers/phy/rockchip/phy-rockchip-typec.c u8 mode; mode 722 drivers/phy/rockchip/phy-rockchip-typec.c static int tcphy_phy_init(struct rockchip_typec_phy *tcphy, u8 mode) mode 747 drivers/phy/rockchip/phy-rockchip-typec.c if (mode == MODE_DFP_DP) { mode 812 drivers/phy/rockchip/phy-rockchip-typec.c u8 mode; mode 821 drivers/phy/rockchip/phy-rockchip-typec.c mode = MODE_DFP_USB; mode 825 drivers/phy/rockchip/phy-rockchip-typec.c mode = MODE_UFP_USB; mode 828 drivers/phy/rockchip/phy-rockchip-typec.c mode = MODE_DFP_DP; mode 839 drivers/phy/rockchip/phy-rockchip-typec.c mode |= MODE_DFP_USB; mode 851 drivers/phy/rockchip/phy-rockchip-typec.c return mode; mode 888 drivers/phy/rockchip/phy-rockchip-typec.c if (tcphy->mode == new_mode) mode 891 drivers/phy/rockchip/phy-rockchip-typec.c if (tcphy->mode == MODE_DISCONNECT) { mode 901 drivers/phy/rockchip/phy-rockchip-typec.c tcphy->mode |= new_mode & (MODE_DFP_USB | MODE_UFP_USB); mode 910 drivers/phy/rockchip/phy-rockchip-typec.c if (tcphy->mode == MODE_DISCONNECT) mode 927 drivers/phy/rockchip/phy-rockchip-typec.c if (tcphy->mode == MODE_DISCONNECT) mode 930 drivers/phy/rockchip/phy-rockchip-typec.c tcphy->mode &= ~(MODE_UFP_USB | MODE_DFP_USB); mode 931 drivers/phy/rockchip/phy-rockchip-typec.c if (tcphy->mode == MODE_DISCONNECT) mode 965 drivers/phy/rockchip/phy-rockchip-typec.c if (tcphy->mode == new_mode) mode 972 drivers/phy/rockchip/phy-rockchip-typec.c if (new_mode == MODE_DFP_DP && tcphy->mode != MODE_DISCONNECT) { mode 975 drivers/phy/rockchip/phy-rockchip-typec.c } else if (tcphy->mode == MODE_DISCONNECT) { mode 1004 drivers/phy/rockchip/phy-rockchip-typec.c tcphy->mode |= MODE_DFP_DP; mode 1007 drivers/phy/rockchip/phy-rockchip-typec.c if (tcphy->mode == MODE_DISCONNECT) mode 1020 drivers/phy/rockchip/phy-rockchip-typec.c if (tcphy->mode == MODE_DISCONNECT) mode 1023 drivers/phy/rockchip/phy-rockchip-typec.c tcphy->mode &= ~MODE_DFP_DP; mode 1027 drivers/phy/rockchip/phy-rockchip-typec.c if (tcphy->mode == MODE_DISCONNECT) mode 1096 drivers/phy/rockchip/phy-rockchip-typec.c tcphy->mode = MODE_DISCONNECT; mode 104 drivers/phy/st/phy-spear1310-miphy.c enum spear1310_miphy_mode mode; mode 155 drivers/phy/st/phy-spear1310-miphy.c if (priv->mode == PCIE) mode 166 drivers/phy/st/phy-spear1310-miphy.c if (priv->mode == PCIE) mode 194 drivers/phy/st/phy-spear1310-miphy.c priv->mode = args->args[0]; mode 196 drivers/phy/st/phy-spear1310-miphy.c if (priv->mode != SATA && priv->mode != PCIE) { mode 81 drivers/phy/st/phy-spear1340-miphy.c enum spear1340_miphy_mode mode; mode 161 drivers/phy/st/phy-spear1340-miphy.c if (priv->mode == SATA) mode 163 drivers/phy/st/phy-spear1340-miphy.c else if (priv->mode == PCIE) mode 174 drivers/phy/st/phy-spear1340-miphy.c if (priv->mode == SATA) mode 176 drivers/phy/st/phy-spear1340-miphy.c else if (priv->mode == PCIE) mode 200 drivers/phy/st/phy-spear1340-miphy.c if (priv->mode == SATA) mode 211 drivers/phy/st/phy-spear1340-miphy.c if (priv->mode == SATA) mode 231 drivers/phy/st/phy-spear1340-miphy.c priv->mode = args->args[0]; mode 233 drivers/phy/st/phy-spear1340-miphy.c if (priv->mode != SATA && priv->mode != PCIE) { mode 329 drivers/phy/tegra/xusb-tegra186.c if (port->mode == USB_DR_MODE_UNKNOWN) mode 331 drivers/phy/tegra/xusb-tegra186.c else if (port->mode == USB_DR_MODE_PERIPHERAL) mode 333 drivers/phy/tegra/xusb-tegra186.c else if (port->mode == USB_DR_MODE_HOST) mode 335 drivers/phy/tegra/xusb-tegra186.c else if (port->mode == USB_DR_MODE_OTG) mode 398 drivers/phy/tegra/xusb-tegra186.c if (port->supply && port->mode == USB_DR_MODE_HOST) { mode 425 drivers/phy/tegra/xusb-tegra186.c if (port->supply && port->mode == USB_DR_MODE_HOST) { mode 627 drivers/phy/tegra/xusb-tegra186.c if (usb2->mode == USB_DR_MODE_UNKNOWN) mode 629 drivers/phy/tegra/xusb-tegra186.c else if (usb2->mode == USB_DR_MODE_PERIPHERAL) mode 631 drivers/phy/tegra/xusb-tegra186.c else if (usb2->mode == USB_DR_MODE_HOST) mode 633 drivers/phy/tegra/xusb-tegra186.c else if (usb2->mode == USB_DR_MODE_OTG) mode 558 drivers/phy/tegra/xusb.c const char *mode; mode 562 drivers/phy/tegra/xusb.c if (!of_property_read_string(np, "mode", &mode)) { mode 563 drivers/phy/tegra/xusb.c int err = match_string(modes, ARRAY_SIZE(modes), mode); mode 566 drivers/phy/tegra/xusb.c mode); mode 567 drivers/phy/tegra/xusb.c usb2->mode = USB_DR_MODE_UNKNOWN; mode 569 drivers/phy/tegra/xusb.c usb2->mode = err; mode 572 drivers/phy/tegra/xusb.c usb2->mode = USB_DR_MODE_HOST; mode 292 drivers/phy/tegra/xusb.h enum usb_dr_mode mode; mode 89 drivers/phy/ti/phy-da8xx-usb.c enum phy_mode mode, int submode) mode 94 drivers/phy/ti/phy-da8xx-usb.c switch (mode) { mode 54 drivers/phy/ti/phy-gmii-sel.c static int phy_gmii_sel_mode(struct phy *phy, enum phy_mode mode, int submode) mode 63 drivers/phy/ti/phy-gmii-sel.c if (mode != PHY_MODE_ETHERNET) mode 201 drivers/phy/ti/phy-omap-control.c enum omap_control_usb_mode mode) mode 217 drivers/phy/ti/phy-omap-control.c switch (mode) { mode 181 drivers/phy/ti/phy-ti-pipe3.c enum pipe3_mode mode; mode 206 drivers/phy/ti/phy-ti-pipe3.c enum pipe3_mode mode; mode 212 drivers/phy/ti/phy-ti-pipe3.c .mode = PIPE3_MODE_USBSS, mode 238 drivers/phy/ti/phy-ti-pipe3.c .mode = PIPE3_MODE_SATA, mode 264 drivers/phy/ti/phy-ti-pipe3.c .mode = PIPE3_MODE_PCIE, mode 365 drivers/phy/ti/phy-ti-pipe3.c if (phy->mode == PIPE3_MODE_SATA || phy->mode == PIPE3_MODE_USBSS) { mode 381 drivers/phy/ti/phy-ti-pipe3.c if (phy->mode == PIPE3_MODE_PCIE) mode 488 drivers/phy/ti/phy-ti-pipe3.c if (phy->mode == PIPE3_MODE_SATA) { mode 509 drivers/phy/ti/phy-ti-pipe3.c if (phy->mode == PIPE3_MODE_PCIE) { mode 531 drivers/phy/ti/phy-ti-pipe3.c if ((val & PLL_LOCK) && phy->mode == PIPE3_MODE_SATA) mode 555 drivers/phy/ti/phy-ti-pipe3.c if (phy->mode == PIPE3_MODE_SATA && !phy->dpll_reset_syscon) mode 559 drivers/phy/ti/phy-ti-pipe3.c if (phy->mode != PIPE3_MODE_PCIE) { mode 582 drivers/phy/ti/phy-ti-pipe3.c if (phy->mode == PIPE3_MODE_SATA) { mode 614 drivers/phy/ti/phy-ti-pipe3.c if (phy->mode != PIPE3_MODE_SATA) mode 618 drivers/phy/ti/phy-ti-pipe3.c if (phy->mode != PIPE3_MODE_SATA) { mode 628 drivers/phy/ti/phy-ti-pipe3.c if (phy->mode != PIPE3_MODE_PCIE || phy->phy_power_syscon) { mode 636 drivers/phy/ti/phy-ti-pipe3.c if (phy->mode == PIPE3_MODE_PCIE) { mode 708 drivers/phy/ti/phy-ti-pipe3.c if (phy->mode == PIPE3_MODE_PCIE) { mode 726 drivers/phy/ti/phy-ti-pipe3.c if (phy->mode == PIPE3_MODE_SATA) { mode 772 drivers/phy/ti/phy-ti-pipe3.c if (phy->mode == PIPE3_MODE_PCIE) mode 806 drivers/phy/ti/phy-ti-pipe3.c phy->mode = data->mode; mode 832 drivers/phy/ti/phy-ti-pipe3.c if (phy->mode == PIPE3_MODE_SATA) { mode 53 drivers/phy/ti/phy-tusb1210.c static int tusb1210_set_mode(struct phy *phy, enum phy_mode mode, int submode) mode 62 drivers/phy/ti/phy-tusb1210.c switch (mode) { mode 322 drivers/phy/ti/phy-twl4030-usb.c static void twl4030_usb_set_mode(struct twl4030_usb *twl, int mode) mode 324 drivers/phy/ti/phy-twl4030-usb.c twl->usb_mode = mode; mode 326 drivers/phy/ti/phy-twl4030-usb.c switch (mode) { mode 340 drivers/phy/ti/phy-twl4030-usb.c mode); mode 727 drivers/pinctrl/intel/pinctrl-baytrail.c byt_set_group_simple_mux(vg, group, group.mode); mode 78 drivers/pinctrl/intel/pinctrl-cherryview.c u8 mode; mode 177 drivers/pinctrl/intel/pinctrl-cherryview.c .mode = (m), \ mode 186 drivers/pinctrl/intel/pinctrl-cherryview.c .altfunc.mode = (m), \ mode 195 drivers/pinctrl/intel/pinctrl-cherryview.c .altfunc.mode = (m), \ mode 738 drivers/pinctrl/intel/pinctrl-cherryview.c u32 mode; mode 740 drivers/pinctrl/intel/pinctrl-cherryview.c mode = ctrl0 & CHV_PADCTRL0_PMODE_MASK; mode 741 drivers/pinctrl/intel/pinctrl-cherryview.c mode >>= CHV_PADCTRL0_PMODE_SHIFT; mode 743 drivers/pinctrl/intel/pinctrl-cherryview.c seq_printf(s, "mode %d ", mode); mode 832 drivers/pinctrl/intel/pinctrl-cherryview.c value |= altfunc->mode << CHV_PADCTRL0_PMODE_SHIFT; mode 843 drivers/pinctrl/intel/pinctrl-cherryview.c pin, altfunc->mode, altfunc->invert_oe ? "" : "not "); mode 323 drivers/pinctrl/intel/pinctrl-intel.c u32 cfg0, cfg1, mode; mode 335 drivers/pinctrl/intel/pinctrl-intel.c mode = (cfg0 & PADCFG0_PMODE_MASK) >> PADCFG0_PMODE_SHIFT; mode 336 drivers/pinctrl/intel/pinctrl-intel.c if (mode == PADCFG0_PMODE_GPIO) mode 339 drivers/pinctrl/intel/pinctrl-intel.c seq_printf(s, "mode %d ", mode); mode 437 drivers/pinctrl/intel/pinctrl-intel.c value |= grp->mode << PADCFG0_PMODE_SHIFT; mode 32 drivers/pinctrl/intel/pinctrl-intel.h unsigned short mode; mode 137 drivers/pinctrl/intel/pinctrl-intel.h .mode = __builtin_choose_expr( \ mode 536 drivers/pinctrl/intel/pinctrl-merrifield.c u32 value, mode; mode 545 drivers/pinctrl/intel/pinctrl-merrifield.c mode = (value & BUFCFG_PINMODE_MASK) >> BUFCFG_PINMODE_SHIFT; mode 546 drivers/pinctrl/intel/pinctrl-merrifield.c if (!mode) mode 549 drivers/pinctrl/intel/pinctrl-merrifield.c seq_printf(s, "mode %d ", mode); mode 594 drivers/pinctrl/intel/pinctrl-merrifield.c u32 bits = grp->mode << BUFCFG_PINMODE_SHIFT; mode 475 drivers/pinctrl/mediatek/pinctrl-mt2701.c unsigned int mode) mode 489 drivers/pinctrl/mediatek/pinctrl-mt2701.c spec_flag = (mode >> 3); mode 674 drivers/pinctrl/mediatek/pinctrl-mtk-common.c unsigned long pin, unsigned long mode) mode 684 drivers/pinctrl/mediatek/pinctrl-mtk-common.c pin, mode); mode 689 drivers/pinctrl/mediatek/pinctrl-mtk-common.c mode &= mask; mode 692 drivers/pinctrl/mediatek/pinctrl-mtk-common.c val = (mode << (GPIO_MODE_BITS * bit)); mode 239 drivers/pinctrl/mediatek/pinctrl-mtk-common.h unsigned int mode); mode 687 drivers/pinctrl/mvebu/pinctrl-mvebu.c struct mvebu_mpp_mode *mode = &soc->modes[n]; mode 688 drivers/pinctrl/mvebu/pinctrl-mvebu.c struct mvebu_mpp_ctrl_setting *set = &mode->settings[0]; mode 719 drivers/pinctrl/mvebu/pinctrl-mvebu.c grp = mvebu_pinctrl_find_group_by_pid(pctl, mode->pid); mode 722 drivers/pinctrl/mvebu/pinctrl-mvebu.c mode->pid); mode 726 drivers/pinctrl/mvebu/pinctrl-mvebu.c grp->settings = mode->settings; mode 363 drivers/pinctrl/nomadik/pinctrl-abx500.c u8 mode; mode 386 drivers/pinctrl/nomadik/pinctrl-abx500.c mode = bit_mode; mode 405 drivers/pinctrl/nomadik/pinctrl-abx500.c return mode; mode 410 drivers/pinctrl/nomadik/pinctrl-abx500.c if (mode) mode 432 drivers/pinctrl/nomadik/pinctrl-abx500.c mode = (alt_bit2 << 1) + alt_bit1; mode 433 drivers/pinctrl/nomadik/pinctrl-abx500.c if (mode == af.alta_val) mode 435 drivers/pinctrl/nomadik/pinctrl-abx500.c else if (mode == af.altb_val) mode 455 drivers/pinctrl/nomadik/pinctrl-abx500.c int mode = -1; mode 493 drivers/pinctrl/nomadik/pinctrl-abx500.c mode = abx500_get_mode(pctldev, chip, offset); mode 495 drivers/pinctrl/nomadik/pinctrl-abx500.c seq_printf(s, " %s", (mode < 0) ? "unknown" : modes[mode]); mode 305 drivers/pinctrl/nomadik/pinctrl-nomadik.c unsigned offset, enum nmk_gpio_slpm mode) mode 310 drivers/pinctrl/nomadik/pinctrl-nomadik.c if (mode == NMK_GPIO_SLPM_NOCHANGE) mode 936 drivers/pinctrl/nomadik/pinctrl-nomadik.c int mode; mode 960 drivers/pinctrl/nomadik/pinctrl-nomadik.c mode = nmk_gpio_get_mode(nmk_chip, offset); mode 961 drivers/pinctrl/nomadik/pinctrl-nomadik.c if ((mode == NMK_GPIO_ALT_C) && pctldev) mode 962 drivers/pinctrl/nomadik/pinctrl-nomadik.c mode = nmk_prcm_gpiocr_get_mode(pctldev, gpio); mode 969 drivers/pinctrl/nomadik/pinctrl-nomadik.c (mode < 0) ? "unknown" : modes[mode]); mode 983 drivers/pinctrl/nomadik/pinctrl-nomadik.c (mode < 0) ? "unknown" : modes[mode]); mode 1413 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c int pin_number, int mode) mode 1420 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c if (mode == fn_gpio || cfg->fn0 == mode || cfg->fn1 == mode || cfg->fn2 == mode) { mode 1424 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c !!(cfg->fn0 == mode) ? mode 1429 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c !!(cfg->fn1 == mode) ? mode 1434 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c !!(cfg->fn2 == mode) ? mode 312 drivers/pinctrl/pinctrl-as3722.c int mode; mode 314 drivers/pinctrl/pinctrl-as3722.c mode = as3722_pinctrl_gpio_get_mode( mode 316 drivers/pinctrl/pinctrl-as3722.c if (mode < 0) { mode 319 drivers/pinctrl/pinctrl-as3722.c return mode; mode 323 drivers/pinctrl/pinctrl-as3722.c AS3722_GPIO_MODE_MASK, mode); mode 447 drivers/pinctrl/pinctrl-as3722.c int mode; mode 458 drivers/pinctrl/pinctrl-as3722.c mode = control & AS3722_GPIO_MODE_MASK; mode 459 drivers/pinctrl/pinctrl-as3722.c switch (mode) { mode 1482 drivers/pinctrl/pinctrl-at91.c enum at91_mux mode; mode 1494 drivers/pinctrl/pinctrl-at91.c mode = at91_gpio->ops->get_periph(pio, mask); mode 1497 drivers/pinctrl/pinctrl-at91.c if (mode == AT91_MUX_GPIO) { mode 1507 drivers/pinctrl/pinctrl-at91.c mode + 'A' - 1); mode 397 drivers/pinctrl/pinctrl-tb10x.c const unsigned int mode; mode 403 drivers/pinctrl/pinctrl-tb10x.c .port = (PORT), .mode = (MODE), \ mode 464 drivers/pinctrl/pinctrl-tb10x.c unsigned int mode; mode 493 drivers/pinctrl/pinctrl-tb10x.c unsigned int port, unsigned int mode) mode 500 drivers/pinctrl/pinctrl-tb10x.c state->ports[port].mode = mode; mode 503 drivers/pinctrl/pinctrl-tb10x.c pcfg |= (mode << (PCFG_PORT_BITWIDTH * port)) & PCFG_PORT_MASK(port); mode 620 drivers/pinctrl/pinctrl-tb10x.c unsigned int mode = pfg->mode; mode 638 drivers/pinctrl/pinctrl-tb10x.c muxmode = mode; mode 640 drivers/pinctrl/pinctrl-tb10x.c && (state->ports[port].mode == mode)) { mode 705 drivers/pinctrl/pinctrl-tb10x.c && (state->ports[grp->port].mode != grp->mode)) { mode 720 drivers/pinctrl/pinctrl-tb10x.c tb10x_pinctrl_set_config(state, grp->port, grp->mode); mode 782 drivers/pinctrl/pinctrl-tb10x.c state->ports[i].mode = tb10x_pinctrl_get_config(state, i); mode 257 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c unsigned int mode; mode 265 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c mode = PMIC_MPP_MODE_ANALOG_BIDIR; mode 267 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c mode = PMIC_MPP_MODE_ANALOG_INPUT; mode 269 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c mode = PMIC_MPP_MODE_ANALOG_OUTPUT; mode 273 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c mode = PMIC_MPP_MODE_DIGITAL_BIDIR; mode 275 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c mode = PMIC_MPP_MODE_DIGITAL_INPUT; mode 277 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c mode = PMIC_MPP_MODE_DIGITAL_OUTPUT; mode 281 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c mode = PMIC_MPP_MODE_CURRENT_SINK; mode 294 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c val = mode << PMIC_MPP_REG_MODE_DIR_SHIFT | mode 77 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c u8 mode; mode 283 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c if (pin->mode != PM8XXX_GPIO_MODE_INPUT) mode 288 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c if (pin->mode & PM8XXX_GPIO_MODE_OUTPUT) mode 366 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->mode = PM8XXX_GPIO_MODE_INPUT; mode 370 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->mode = PM8XXX_GPIO_MODE_OUTPUT; mode 409 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pin->mode << 2; mode 462 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->mode = PM8XXX_GPIO_MODE_INPUT; mode 463 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pin->mode << 2; mode 478 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->mode = PM8XXX_GPIO_MODE_OUTPUT; mode 481 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pin->mode << 2; mode 497 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c if (pin->mode == PM8XXX_GPIO_MODE_OUTPUT) { mode 517 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c val = pin->mode << 2; mode 599 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c seq_printf(s, " %-4s", modes[pin->mode]); mode 653 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c pin->mode = (val >> 2) & 0x3; mode 108 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c u8 mode; mode 173 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c switch (pin->mode) { mode 305 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->mode = function; mode 447 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c switch (pin->mode) { mode 471 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c switch (pin->mode) { mode 563 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c switch (pin->mode) { mode 670 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->mode = PM8XXX_MPP_DIGITAL; mode 676 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->mode = PM8XXX_MPP_DIGITAL; mode 683 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->mode = PM8XXX_MPP_DIGITAL; mode 703 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->mode = PM8XXX_MPP_ANALOG; mode 708 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->mode = PM8XXX_MPP_ANALOG; mode 715 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->mode = PM8XXX_MPP_SINK; mode 721 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->mode = PM8XXX_MPP_SINK; mode 726 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c pin->mode = PM8XXX_MPP_DIGITAL; mode 53 drivers/pinctrl/spear/pinctrl-spear.c static int set_mode(struct spear_pmx *pmx, int mode) mode 63 drivers/pinctrl/spear/pinctrl-spear.c if (pmx->machdata->pmx_modes[i]->mode == (1 << mode)) { mode 77 drivers/pinctrl/spear/pinctrl-spear.c pmx->machdata->mode = pmx_mode->mode; mode 257 drivers/pinctrl/spear/pinctrl-spear.c if (!(pmx->machdata->mode & modemux->modes)) mode 381 drivers/pinctrl/spear/pinctrl-spear.c int mode = 0; mode 383 drivers/pinctrl/spear/pinctrl-spear.c if (of_property_read_u32(np, "st,pinmux-mode", &mode)) { mode 388 drivers/pinctrl/spear/pinctrl-spear.c if (set_mode(pmx, mode)) { mode 390 drivers/pinctrl/spear/pinctrl-spear.c mode); mode 34 drivers/pinctrl/spear/pinctrl-spear.h u16 mode; mode 165 drivers/pinctrl/spear/pinctrl-spear.h u16 mode; mode 41 drivers/pinctrl/spear/pinctrl-spear300.c .mode = NAND_MODE, mode 49 drivers/pinctrl/spear/pinctrl-spear300.c .mode = NOR_MODE, mode 57 drivers/pinctrl/spear/pinctrl-spear300.c .mode = PHOTO_FRAME_MODE, mode 65 drivers/pinctrl/spear/pinctrl-spear300.c .mode = LEND_IP_PHONE_MODE, mode 73 drivers/pinctrl/spear/pinctrl-spear300.c .mode = HEND_IP_PHONE_MODE, mode 81 drivers/pinctrl/spear/pinctrl-spear300.c .mode = LEND_WIFI_PHONE_MODE, mode 89 drivers/pinctrl/spear/pinctrl-spear300.c .mode = HEND_WIFI_PHONE_MODE, mode 97 drivers/pinctrl/spear/pinctrl-spear300.c .mode = ATA_PABX_WI2S_MODE, mode 105 drivers/pinctrl/spear/pinctrl-spear300.c .mode = ATA_PABX_I2S_MODE, mode 113 drivers/pinctrl/spear/pinctrl-spear300.c .mode = CAML_LCDW_MODE, mode 121 drivers/pinctrl/spear/pinctrl-spear300.c .mode = CAMU_LCD_MODE, mode 129 drivers/pinctrl/spear/pinctrl-spear300.c .mode = CAMU_WLCD_MODE, mode 137 drivers/pinctrl/spear/pinctrl-spear300.c .mode = CAML_LCD_MODE, mode 34 drivers/pinctrl/spear/pinctrl-spear320.c .mode = AUTO_NET_SMII_MODE, mode 42 drivers/pinctrl/spear/pinctrl-spear320.c .mode = AUTO_NET_MII_MODE, mode 50 drivers/pinctrl/spear/pinctrl-spear320.c .mode = AUTO_EXP_MODE, mode 58 drivers/pinctrl/spear/pinctrl-spear320.c .mode = SMALL_PRINTERS_MODE, mode 66 drivers/pinctrl/spear/pinctrl-spear320.c .mode = EXTENDED_MODE, mode 159 drivers/pinctrl/stm32/pinctrl-stm32.c u32 mode, u32 alt) mode 163 drivers/pinctrl/stm32/pinctrl-stm32.c bank->pin_backup[offset] |= mode << STM32_GPIO_BKP_MODE_SHIFT; mode 282 drivers/pinctrl/stm32/pinctrl-stm32.c u32 mode, alt; mode 284 drivers/pinctrl/stm32/pinctrl-stm32.c stm32_pmx_get_mode(bank, pin, &mode, &alt); mode 285 drivers/pinctrl/stm32/pinctrl-stm32.c if ((alt == 0) && (mode == 0)) mode 287 drivers/pinctrl/stm32/pinctrl-stm32.c else if ((alt == 0) && (mode == 1)) mode 690 drivers/pinctrl/stm32/pinctrl-stm32.c int pin, u32 mode, u32 alt) mode 717 drivers/pinctrl/stm32/pinctrl-stm32.c val |= mode << (pin * 2); mode 723 drivers/pinctrl/stm32/pinctrl-stm32.c stm32_gpio_backup_mode(bank, pin, mode, alt); mode 732 drivers/pinctrl/stm32/pinctrl-stm32.c void stm32_pmx_get_mode(struct stm32_gpio_bank *bank, int pin, u32 *mode, mode 749 drivers/pinctrl/stm32/pinctrl-stm32.c *mode = val >> (pin * 2); mode 764 drivers/pinctrl/stm32/pinctrl-stm32.c u32 mode, alt; mode 783 drivers/pinctrl/stm32/pinctrl-stm32.c mode = stm32_gpio_get_mode(function); mode 786 drivers/pinctrl/stm32/pinctrl-stm32.c return stm32_pmx_set_mode(bank, pin, mode, alt); mode 1080 drivers/pinctrl/stm32/pinctrl-stm32.c u32 mode, alt, drive, speed, bias; mode 1096 drivers/pinctrl/stm32/pinctrl-stm32.c stm32_pmx_get_mode(bank, offset, &mode, &alt); mode 1099 drivers/pinctrl/stm32/pinctrl-stm32.c seq_printf(s, "%s ", modes[mode]); mode 1101 drivers/pinctrl/stm32/pinctrl-stm32.c switch (mode) { mode 1490 drivers/pinctrl/stm32/pinctrl-stm32.c u32 val, alt, mode, offset = stm32_gpio_pin(pin); mode 1509 drivers/pinctrl/stm32/pinctrl-stm32.c mode = bank->pin_backup[offset] & STM32_GPIO_BKP_MODE_MASK; mode 1510 drivers/pinctrl/stm32/pinctrl-stm32.c mode >>= STM32_GPIO_BKP_MODE_SHIFT; mode 1512 drivers/pinctrl/stm32/pinctrl-stm32.c ret = stm32_pmx_set_mode(bank, offset, mode, alt); mode 1516 drivers/pinctrl/stm32/pinctrl-stm32.c if (mode == 1) { mode 67 drivers/pinctrl/stm32/pinctrl-stm32.h int pin, u32 *mode, u32 *alt); mode 971 drivers/pinctrl/sunxi/pinctrl-sunxi.c u8 mode; mode 975 drivers/pinctrl/sunxi/pinctrl-sunxi.c mode = IRQ_EDGE_RISING; mode 978 drivers/pinctrl/sunxi/pinctrl-sunxi.c mode = IRQ_EDGE_FALLING; mode 981 drivers/pinctrl/sunxi/pinctrl-sunxi.c mode = IRQ_EDGE_BOTH; mode 984 drivers/pinctrl/sunxi/pinctrl-sunxi.c mode = IRQ_LEVEL_HIGH; mode 987 drivers/pinctrl/sunxi/pinctrl-sunxi.c mode = IRQ_LEVEL_LOW; mode 1004 drivers/pinctrl/sunxi/pinctrl-sunxi.c writel(regval | (mode << index), pctl->membase + reg); mode 742 drivers/platform/chrome/cros_ec_spi.c spi->mode = SPI_MODE_0; mode 336 drivers/platform/chrome/cros_ec_sysfs.c return a->mode; mode 223 drivers/platform/mellanox/mlxreg-hotplug.c PRIV_DEV_ATTR(id).dev_attr.attr.mode = 0444; mode 179 drivers/platform/mellanox/mlxreg-io.c priv->mlxreg_io_dev_attr[i].dev_attr.attr.mode = mode 180 drivers/platform/mellanox/mlxreg-io.c priv->pdata->data[i].mode; mode 412 drivers/platform/x86/acerhdf.c enum thermal_device_mode *mode) mode 417 drivers/platform/x86/acerhdf.c *mode = (kernelmode) ? THERMAL_DEVICE_ENABLED mode 430 drivers/platform/x86/acerhdf.c enum thermal_device_mode mode) mode 432 drivers/platform/x86/acerhdf.c if (mode == THERMAL_DEVICE_DISABLED && kernelmode) mode 434 drivers/platform/x86/acerhdf.c else if (mode == THERMAL_DEVICE_ENABLED && !kernelmode) mode 475 drivers/platform/x86/alienware-wmi.c zone_dev_attrs[zone].attr.mode = 0644; mode 1594 drivers/platform/x86/asus-laptop.c return supported ? attr->mode : 0; mode 1631 drivers/platform/x86/asus-laptop.c return supported ? attr->mode : 0; mode 1567 drivers/platform/x86/asus-wmi.c return attr->mode; mode 1919 drivers/platform/x86/asus-wmi.c int mode = asus->fnlock_locked; mode 1921 drivers/platform/x86/asus-wmi.c asus_wmi_set_devstate(ASUS_WMI_DEVID_FNLOCK, mode, NULL); mode 2115 drivers/platform/x86/asus-wmi.c .mode = _mode }, \ mode 2182 drivers/platform/x86/asus-wmi.c return ok ? attr->mode : 0; mode 245 drivers/platform/x86/classmate-laptop.c .attr = { .name = "sensitivity", .mode = 0660 }, mode 294 drivers/platform/x86/classmate-laptop.c .attr = { .name = "g_select", .mode = 0660 }, mode 584 drivers/platform/x86/classmate-laptop.c .attr = { .name = "sensitivity", .mode = 0660 }, mode 62 drivers/platform/x86/dcdbas.h .mode = 0600 }, \ mode 506 drivers/platform/x86/dell-smbios-base.c token_location_attrs[i].attr.mode = 0444; mode 517 drivers/platform/x86/dell-smbios-base.c token_value_attrs[i].attr.mode = 0444; mode 657 drivers/platform/x86/dell_rbu.c .attr = {.name = "data", .mode = 0444}, mode 662 drivers/platform/x86/dell_rbu.c .attr = {.name = "image_type", .mode = 0644}, mode 668 drivers/platform/x86/dell_rbu.c .attr = {.name = "packet_size", .mode = 0644}, mode 541 drivers/platform/x86/ideapad-laptop.c return supported ? attr->mode : 0; mode 438 drivers/platform/x86/intel-hid.c unsigned long long mode; mode 445 drivers/platform/x86/intel-hid.c if (!intel_hid_evaluate_method(handle, INTEL_HID_DSM_HDMM_FN, &mode)) { mode 450 drivers/platform/x86/intel-hid.c if (mode != 0) { mode 52 drivers/platform/x86/intel-rst.c .attr = { .name = "wakeup_events", .mode = 0600 }, mode 96 drivers/platform/x86/intel-rst.c .attr = { .name = "wakeup_time", .mode = 0600 }, mode 28 drivers/platform/x86/intel-wmi-thunderbolt.c u8 mode; mode 31 drivers/platform/x86/intel-wmi-thunderbolt.c input.pointer = &mode; mode 32 drivers/platform/x86/intel-wmi-thunderbolt.c mode = hex_to_bin(buf[0]); mode 33 drivers/platform/x86/intel-wmi-thunderbolt.c dev_dbg(dev, "force_power: storing %#x\n", mode); mode 34 drivers/platform/x86/intel-wmi-thunderbolt.c if (mode == 0 || mode == 1) { mode 369 drivers/platform/x86/intel_menlow.c static int intel_menlow_add_one_attribute(char *name, umode_t mode, void *show, mode 382 drivers/platform/x86/intel_menlow.c attr->attr.attr.mode = mode; mode 145 drivers/platform/x86/intel_speed_select_if/isst_if_mbox_msr.c unsigned long mode, void *_unused) mode 147 drivers/platform/x86/intel_speed_select_if/isst_if_mbox_msr.c switch (mode) { mode 973 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 979 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 985 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 991 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 997 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1003 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1009 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1015 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1021 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1027 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1033 drivers/platform/x86/mlx-platform.c .mode = 0200, mode 1039 drivers/platform/x86/mlx-platform.c .mode = 0200, mode 1045 drivers/platform/x86/mlx-platform.c .mode = 0200, mode 1051 drivers/platform/x86/mlx-platform.c .mode = 0200, mode 1057 drivers/platform/x86/mlx-platform.c .mode = 0644, mode 1064 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1079 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1085 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1091 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1097 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1103 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1109 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1115 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1121 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1127 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1133 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1139 drivers/platform/x86/mlx-platform.c .mode = 0200, mode 1145 drivers/platform/x86/mlx-platform.c .mode = 0200, mode 1151 drivers/platform/x86/mlx-platform.c .mode = 0200, mode 1157 drivers/platform/x86/mlx-platform.c .mode = 0200, mode 1164 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1179 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1185 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1191 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1197 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1203 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1209 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1215 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1221 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1227 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1233 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1239 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1245 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1251 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1257 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1263 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1269 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1275 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1281 drivers/platform/x86/mlx-platform.c .mode = 0200, mode 1287 drivers/platform/x86/mlx-platform.c .mode = 0200, mode 1293 drivers/platform/x86/mlx-platform.c .mode = 0200, mode 1299 drivers/platform/x86/mlx-platform.c .mode = 0200, mode 1305 drivers/platform/x86/mlx-platform.c .mode = 0644, mode 1312 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 1318 drivers/platform/x86/mlx-platform.c .mode = 0444, mode 985 drivers/platform/x86/msi-laptop.c dev_attr_bluetooth.attr.mode |= S_IWUSR; mode 986 drivers/platform/x86/msi-laptop.c dev_attr_wlan.attr.mode |= S_IWUSR; mode 987 drivers/platform/x86/msi-laptop.c dev_attr_threeg.attr.mode |= S_IWUSR; mode 1227 drivers/platform/x86/samsung-laptop.c return ok ? attr->mode : 0; mode 860 drivers/platform/x86/sony-laptop.c handles->devattr.attr.mode = S_IRUGO; mode 1767 drivers/platform/x86/sony-laptop.c unsigned int mode; mode 1793 drivers/platform/x86/sony-laptop.c kbdbl_ctl->mode = value; mode 1822 drivers/platform/x86/sony-laptop.c count = snprintf(buffer, PAGE_SIZE, "%d\n", kbdbl_ctl->mode); mode 1916 drivers/platform/x86/sony-laptop.c kbdbl_ctl->mode = kbd_backlight; mode 1925 drivers/platform/x86/sony-laptop.c kbdbl_ctl->mode_attr.attr.mode = S_IRUGO | S_IWUSR; mode 1933 drivers/platform/x86/sony-laptop.c __sony_nc_kbd_backlight_mode_set(kbdbl_ctl->mode); mode 1938 drivers/platform/x86/sony-laptop.c kbdbl_ctl->timeout_attr.attr.mode = S_IRUGO | S_IWUSR; mode 2091 drivers/platform/x86/sony-laptop.c bcare_ctl->attrs[0].attr.mode = S_IRUGO | S_IWUSR; mode 2105 drivers/platform/x86/sony-laptop.c bcare_ctl->attrs[1].attr.mode = S_IRUGO; mode 2137 drivers/platform/x86/sony-laptop.c unsigned int mode; mode 2151 drivers/platform/x86/sony-laptop.c static int sony_nc_thermal_mode_set(unsigned short mode) mode 2161 drivers/platform/x86/sony-laptop.c if ((mode && !(th_handle->profiles & mode)) || mode >= THM_PROFILE_MAX) mode 2164 drivers/platform/x86/sony-laptop.c if (sony_call_snc_handle(0x0122, mode << 0x10 | 0x0200, &result)) mode 2167 drivers/platform/x86/sony-laptop.c th_handle->mode = mode; mode 2226 drivers/platform/x86/sony-laptop.c int mode = sony_nc_thermal_mode_get(); mode 2228 drivers/platform/x86/sony-laptop.c if (mode < 0) mode 2229 drivers/platform/x86/sony-laptop.c return mode; mode 2231 drivers/platform/x86/sony-laptop.c count = snprintf(buffer, PAGE_SIZE, "%s\n", snc_thermal_profiles[mode]); mode 2254 drivers/platform/x86/sony-laptop.c th_handle->mode = ret; mode 2258 drivers/platform/x86/sony-laptop.c th_handle->profiles_attr.attr.mode = S_IRUGO; mode 2263 drivers/platform/x86/sony-laptop.c th_handle->mode_attr.attr.mode = S_IRUGO | S_IWUSR; mode 2300 drivers/platform/x86/sony-laptop.c if (status != th_handle->mode) mode 2301 drivers/platform/x86/sony-laptop.c sony_nc_thermal_mode_set(th_handle->mode); mode 2391 drivers/platform/x86/sony-laptop.c lid_ctl->attrs[LID_RESUME_S5].attr.mode = S_IRUGO | S_IWUSR; mode 2398 drivers/platform/x86/sony-laptop.c lid_ctl->attrs[LID_RESUME_S4].attr.mode = S_IRUGO | S_IWUSR; mode 2404 drivers/platform/x86/sony-laptop.c lid_ctl->attrs[LID_RESUME_S3].attr.mode = S_IRUGO | S_IWUSR; mode 2520 drivers/platform/x86/sony-laptop.c gfxs_ctl->attr.attr.mode = S_IRUGO; mode 2597 drivers/platform/x86/sony-laptop.c hsc_handle->attr.mode = S_IRUGO | S_IWUSR; mode 2663 drivers/platform/x86/sony-laptop.c lowbatt_handle->attr.mode = S_IRUGO | S_IWUSR; mode 2746 drivers/platform/x86/sony-laptop.c fan_handle->attr.mode = S_IRUGO; mode 2752 drivers/platform/x86/sony-laptop.c hsf_handle->attr.mode = S_IRUGO | S_IWUSR; mode 2844 drivers/platform/x86/sony-laptop.c uc_handle->attr.mode = S_IRUGO | S_IWUSR; mode 2891 drivers/platform/x86/sony-laptop.c panel_handle->attr.mode = S_IRUGO; mode 2946 drivers/platform/x86/sony-laptop.c sc_handle->attr.mode = S_IWUSR; mode 3022 drivers/platform/x86/sony-laptop.c tp_ctl->attr.attr.mode = S_IRUGO | S_IWUSR; mode 3234 drivers/platform/x86/sony-laptop.c item->devattr.attr.mode |= S_IRUGO; mode 3245 drivers/platform/x86/sony-laptop.c item->devattr.attr.mode |= S_IWUSR; mode 3250 drivers/platform/x86/sony-laptop.c if (item->devattr.attr.mode != 0) { mode 2105 drivers/platform/x86/thinkpad_acpi.c int mode = TP_ACPI_MULTI_MODE_INVALID; mode 2150 drivers/platform/x86/thinkpad_acpi.c mode = TP_ACPI_MULTI_MODE_LAPTOP; mode 2153 drivers/platform/x86/thinkpad_acpi.c mode = TP_ACPI_MULTI_MODE_FLAT; mode 2156 drivers/platform/x86/thinkpad_acpi.c mode = TP_ACPI_MULTI_MODE_TABLET; mode 2160 drivers/platform/x86/thinkpad_acpi.c mode = TP_ACPI_MULTI_MODE_STAND_TENT; mode 2162 drivers/platform/x86/thinkpad_acpi.c mode = TP_ACPI_MULTI_MODE_STAND; mode 2165 drivers/platform/x86/thinkpad_acpi.c mode = TP_ACPI_MULTI_MODE_TENT; mode 2174 drivers/platform/x86/thinkpad_acpi.c if (!(mode & valid_modes)) { mode 2180 drivers/platform/x86/thinkpad_acpi.c return !!(mode & TP_ACPI_MULTI_MODE_TABLET_LIKE); mode 3779 drivers/platform/x86/thinkpad_acpi.c int mode = 0; mode 3781 drivers/platform/x86/thinkpad_acpi.c if (!acpi_evalf(hkey_handle, &mode, "GTRW", "dd", 0)) { mode 3786 drivers/platform/x86/thinkpad_acpi.c return mode; mode 3803 drivers/platform/x86/thinkpad_acpi.c static int adaptive_keyboard_get_next_mode(int mode) mode 3809 drivers/platform/x86/thinkpad_acpi.c if (adaptive_keyboard_modes[i] == mode) mode 8572 drivers/platform/x86/thinkpad_acpi.c int res, mode; mode 8580 drivers/platform/x86/thinkpad_acpi.c mode = 0; mode 8582 drivers/platform/x86/thinkpad_acpi.c mode = 2; mode 8584 drivers/platform/x86/thinkpad_acpi.c mode = 1; mode 8586 drivers/platform/x86/thinkpad_acpi.c return snprintf(buf, PAGE_SIZE, "%d\n", mode); mode 9980 drivers/platform/x86/thinkpad_acpi.c umode_t mode = iibm->base_procfs_mode; mode 9982 drivers/platform/x86/thinkpad_acpi.c if (!mode) mode 9983 drivers/platform/x86/thinkpad_acpi.c mode = S_IRUGO; mode 9985 drivers/platform/x86/thinkpad_acpi.c mode |= S_IWUSR; mode 9986 drivers/platform/x86/thinkpad_acpi.c entry = proc_create_data(ibm->name, mode, proc_dir, mode 839 drivers/platform/x86/toshiba_acpi.c u32 *mode) mode 846 drivers/platform/x86/toshiba_acpi.c result = sci_read(dev, SCI_USB_SLEEP_CHARGE, mode); mode 857 drivers/platform/x86/toshiba_acpi.c u32 mode) mode 864 drivers/platform/x86/toshiba_acpi.c result = sci_write(dev, SCI_USB_SLEEP_CHARGE, mode); mode 875 drivers/platform/x86/toshiba_acpi.c u32 *mode) mode 898 drivers/platform/x86/toshiba_acpi.c *mode = out[2]; mode 905 drivers/platform/x86/toshiba_acpi.c u32 mode) mode 914 drivers/platform/x86/toshiba_acpi.c in[2] = mode; mode 1018 drivers/platform/x86/toshiba_acpi.c static int toshiba_function_keys_get(struct toshiba_acpi_dev *dev, u32 *mode) mode 1025 drivers/platform/x86/toshiba_acpi.c result = sci_read(dev, SCI_KBD_FUNCTION_KEYS, mode); mode 1035 drivers/platform/x86/toshiba_acpi.c static int toshiba_function_keys_set(struct toshiba_acpi_dev *dev, u32 mode) mode 1042 drivers/platform/x86/toshiba_acpi.c result = sci_write(dev, SCI_KBD_FUNCTION_KEYS, mode); mode 1781 drivers/platform/x86/toshiba_acpi.c int mode; mode 1785 drivers/platform/x86/toshiba_acpi.c ret = kstrtoint(buf, 0, &mode); mode 1792 drivers/platform/x86/toshiba_acpi.c if (mode != SCI_KBD_MODE_FNZ && mode != SCI_KBD_MODE_AUTO) mode 1796 drivers/platform/x86/toshiba_acpi.c if (mode != SCI_KBD_MODE_AUTO && mode != SCI_KBD_MODE_ON && mode 1797 drivers/platform/x86/toshiba_acpi.c mode != SCI_KBD_MODE_OFF) mode 1810 drivers/platform/x86/toshiba_acpi.c if (toshiba->kbd_mode != mode) { mode 1820 drivers/platform/x86/toshiba_acpi.c time |= mode; mode 1827 drivers/platform/x86/toshiba_acpi.c toshiba->kbd_mode = mode; mode 1828 drivers/platform/x86/toshiba_acpi.c toshiba_acpi->kbd_mode = mode; mode 1988 drivers/platform/x86/toshiba_acpi.c u32 mode; mode 1991 drivers/platform/x86/toshiba_acpi.c ret = toshiba_usb_sleep_charge_get(toshiba, &mode); mode 1995 drivers/platform/x86/toshiba_acpi.c return sprintf(buf, "%x\n", mode & SCI_USB_CHARGE_MODE_MASK); mode 2004 drivers/platform/x86/toshiba_acpi.c u32 mode; mode 2021 drivers/platform/x86/toshiba_acpi.c mode = toshiba->usbsc_mode_base; mode 2023 drivers/platform/x86/toshiba_acpi.c mode |= SCI_USB_CHARGE_DISABLED; mode 2025 drivers/platform/x86/toshiba_acpi.c mode |= SCI_USB_CHARGE_ALTERNATE; mode 2027 drivers/platform/x86/toshiba_acpi.c mode |= SCI_USB_CHARGE_AUTO; mode 2029 drivers/platform/x86/toshiba_acpi.c mode |= SCI_USB_CHARGE_TYPICAL; mode 2031 drivers/platform/x86/toshiba_acpi.c ret = toshiba_usb_sleep_charge_set(toshiba, mode); mode 2177 drivers/platform/x86/toshiba_acpi.c int mode; mode 2180 drivers/platform/x86/toshiba_acpi.c ret = toshiba_function_keys_get(toshiba, &mode); mode 2184 drivers/platform/x86/toshiba_acpi.c return sprintf(buf, "%d\n", mode); mode 2192 drivers/platform/x86/toshiba_acpi.c int mode; mode 2195 drivers/platform/x86/toshiba_acpi.c ret = kstrtoint(buf, 0, &mode); mode 2203 drivers/platform/x86/toshiba_acpi.c if (mode != 0 && mode != 1) mode 2206 drivers/platform/x86/toshiba_acpi.c ret = toshiba_function_keys_set(toshiba, mode); mode 2396 drivers/platform/x86/toshiba_acpi.c return exists ? attr->mode : 0; mode 74 drivers/platform/x86/wmi-bmof.c priv->bmof_bin_attr.attr.mode = 0400; mode 960 drivers/platform/x86/wmi.c wblock->char_dev.mode = 0444; mode 72 drivers/power/reset/arm-versatile-reboot.c static int versatile_reboot(struct notifier_block *this, unsigned long mode, mode 125 drivers/power/reset/at91-poweroff.c u32 mode = 0, tmp; mode 140 drivers/power/reset/at91-poweroff.c mode |= AT91_SHDW_CPTWK0_(tmp); mode 144 drivers/power/reset/at91-poweroff.c mode |= AT91_SHDW_RTCWKEN; mode 147 drivers/power/reset/at91-poweroff.c mode |= AT91_SHDW_RTTWKEN; mode 149 drivers/power/reset/at91-poweroff.c writel(wakeup_mode | mode, at91_shdwc.shdwc_base + AT91_SHDW_MR); mode 60 drivers/power/reset/at91-reset.c static int at91sam9260_restart(struct notifier_block *this, unsigned long mode, mode 87 drivers/power/reset/at91-reset.c static int at91sam9g45_restart(struct notifier_block *this, unsigned long mode, mode 131 drivers/power/reset/at91-reset.c static int sama5d3_restart(struct notifier_block *this, unsigned long mode, mode 140 drivers/power/reset/at91-reset.c static int samx7_restart(struct notifier_block *this, unsigned long mode, mode 219 drivers/power/reset/at91-sama5d2_shdwc.c u32 mode = 0, tmp, input; mode 227 drivers/power/reset/at91-sama5d2_shdwc.c mode |= AT91_SHDW_WKUPDBC(at91_shdwc_debouncer_value(pdev, tmp)); mode 230 drivers/power/reset/at91-sama5d2_shdwc.c mode |= SHDW_RTCWKEN(shdw->cfg); mode 233 drivers/power/reset/at91-sama5d2_shdwc.c mode |= SHDW_RTTWKEN(shdw->cfg); mode 235 drivers/power/reset/at91-sama5d2_shdwc.c dev_dbg(&pdev->dev, "%s: mode = %#x\n", __func__, mode); mode 236 drivers/power/reset/at91-sama5d2_shdwc.c writel(mode, shdw->shdwc_base + AT91_SHDW_MR); mode 32 drivers/power/reset/axxia-reset.c unsigned long mode, void *cmd) mode 29 drivers/power/reset/brcm-kona-reset.c unsigned long mode, void *cmd) mode 46 drivers/power/reset/brcmstb-reboot.c unsigned long mode, void *cmd) mode 27 drivers/power/reset/gpio-restart.c unsigned long mode, void *cmd) mode 25 drivers/power/reset/hisi-reboot.c unsigned long mode, void *cmd) mode 53 drivers/power/reset/keystone-reset.c unsigned long mode, void *cmd) mode 37 drivers/power/reset/ocelot-reset.c unsigned long mode, void *cmd) mode 17 drivers/power/reset/reboot-mode.c const char *mode; mode 33 drivers/power/reset/reboot-mode.c if (!strcmp(info->mode, cmd)) { mode 43 drivers/power/reset/reboot-mode.c unsigned long mode, void *cmd) mode 84 drivers/power/reset/reboot-mode.c info->mode); mode 89 drivers/power/reset/reboot-mode.c info->mode = kstrdup_const(prop->name + len, GFP_KERNEL); mode 90 drivers/power/reset/reboot-mode.c if (!info->mode) { mode 93 drivers/power/reset/reboot-mode.c } else if (info->mode[0] == '\0') { mode 94 drivers/power/reset/reboot-mode.c kfree_const(info->mode); mode 111 drivers/power/reset/reboot-mode.c kfree_const(info->mode); mode 128 drivers/power/reset/reboot-mode.c kfree_const(info->mode); mode 25 drivers/power/reset/rmobile-reset.c unsigned long mode, void *cmd) mode 27 drivers/power/reset/rmobile-reset.c pr_debug("%s %lu\n", __func__, mode); mode 42 drivers/power/reset/st-poweroff.c static int st_restart(struct notifier_block *this, unsigned long mode, mode 27 drivers/power/reset/syscon-reboot.c unsigned long mode, void *cmd) mode 40 drivers/power/reset/vexpress-poweroff.c static int vexpress_restart(struct notifier_block *this, unsigned long mode, mode 31 drivers/power/reset/xgene-reboot.c unsigned long mode, void *cmd) mode 22 drivers/power/reset/zx-reboot.c unsigned long mode, void *cmd) mode 179 drivers/power/supply/adp5061.c int mode, ret; mode 185 drivers/power/supply/adp5061.c mode = ADP5061_VINX_SET_ILIM_MODE(regval); mode 186 drivers/power/supply/adp5061.c val->intval = adp5061_in_current_lim[mode] * 1000; mode 245 drivers/power/supply/adp5061.c int mode, ret; mode 251 drivers/power/supply/adp5061.c mode = ADP5061_TERM_SET_CHG_VLIM_MODE(regval); mode 252 drivers/power/supply/adp5061.c val->intval = adp5061_const_chg_vmax[mode] * 1000; mode 538 drivers/power/supply/adp5061.c int mode, ret; mode 546 drivers/power/supply/adp5061.c mode = ADP5061_CHG_STATUS_2_BAT_STATUS(status2); mode 547 drivers/power/supply/adp5061.c if (mode == ADP5061_NO_BATTERY) mode 167 drivers/power/supply/bq2415x_charger.c enum bq2415x_mode mode; /* currently configured mode */ mode 722 drivers/power/supply/bq2415x_charger.c static int bq2415x_set_mode(struct bq2415x_device *bq, enum bq2415x_mode mode) mode 728 drivers/power/supply/bq2415x_charger.c if (mode == BQ2415X_MODE_BOOST) mode 730 drivers/power/supply/bq2415x_charger.c else if (mode != BQ2415X_MODE_OFF) mode 742 drivers/power/supply/bq2415x_charger.c switch (mode) { mode 779 drivers/power/supply/bq2415x_charger.c bq->mode = mode; mode 788 drivers/power/supply/bq2415x_charger.c enum bq2415x_mode mode; mode 791 drivers/power/supply/bq2415x_charger.c mode = BQ2415X_MODE_OFF; mode 793 drivers/power/supply/bq2415x_charger.c mode = BQ2415X_MODE_NONE; mode 795 drivers/power/supply/bq2415x_charger.c mode = BQ2415X_MODE_HOST_CHARGER; mode 797 drivers/power/supply/bq2415x_charger.c mode = BQ2415X_MODE_DEDICATED_CHARGER; mode 799 drivers/power/supply/bq2415x_charger.c if (bq->reported_mode == mode) mode 802 drivers/power/supply/bq2415x_charger.c bq->reported_mode = mode; mode 893 drivers/power/supply/bq2415x_charger.c if (bq->automode > 0 && (bq->reported_mode != bq->mode)) { mode 1123 drivers/power/supply/bq2415x_charger.c enum bq2415x_mode mode; mode 1130 drivers/power/supply/bq2415x_charger.c mode = bq->reported_mode; mode 1134 drivers/power/supply/bq2415x_charger.c mode = BQ2415X_MODE_OFF; mode 1138 drivers/power/supply/bq2415x_charger.c mode = BQ2415X_MODE_NONE; mode 1142 drivers/power/supply/bq2415x_charger.c mode = BQ2415X_MODE_HOST_CHARGER; mode 1146 drivers/power/supply/bq2415x_charger.c mode = BQ2415X_MODE_DEDICATED_CHARGER; mode 1150 drivers/power/supply/bq2415x_charger.c mode = BQ2415X_MODE_BOOST; mode 1157 drivers/power/supply/bq2415x_charger.c mode = bq->reported_mode; mode 1162 drivers/power/supply/bq2415x_charger.c ret = bq2415x_set_mode(bq, mode); mode 1180 drivers/power/supply/bq2415x_charger.c switch (bq->mode) { mode 1429 drivers/power/supply/bq2415x_charger.c static DEVICE_ATTR(mode, S_IWUSR | S_IRUGO, mode 1582 drivers/power/supply/bq2415x_charger.c bq->mode = BQ2415X_MODE_OFF; mode 1391 drivers/power/supply/charger-manager.c charger->attr_name.attr.mode = 0444; mode 1396 drivers/power/supply/charger-manager.c charger->attr_state.attr.mode = 0444; mode 1402 drivers/power/supply/charger-manager.c charger->attr_externally_control.attr.mode = 0644; mode 660 drivers/power/supply/ds2780_battery.c .mode = S_IRUGO | S_IWUSR, mode 705 drivers/power/supply/ds2780_battery.c .mode = S_IRUGO | S_IWUSR, mode 662 drivers/power/supply/ds2781_battery.c .mode = S_IRUGO | S_IWUSR, mode 708 drivers/power/supply/ds2781_battery.c .mode = S_IRUGO | S_IWUSR, mode 650 drivers/power/supply/lp8788-charger.c u8 mode; mode 654 drivers/power/supply/lp8788-charger.c mode = val & LP8788_CHG_EOC_MODE_M; mode 656 drivers/power/supply/lp8788-charger.c level = mode ? abs_level[val] : relative_level[val]; mode 553 drivers/power/supply/olpc_battery.c .mode = S_IRUGO, mode 577 drivers/power/supply/olpc_battery.c .mode = S_IRUGO, mode 324 drivers/power/supply/power_supply_sysfs.c umode_t mode = S_IRUSR | S_IRGRP | S_IROTH; mode 328 drivers/power/supply/power_supply_sysfs.c return mode; mode 336 drivers/power/supply/power_supply_sysfs.c mode |= S_IWUSR; mode 338 drivers/power/supply/power_supply_sysfs.c return mode; mode 522 drivers/power/supply/sbs-battery.c enum sbs_battery_mode mode) mode 530 drivers/power/supply/sbs-battery.c if ((original_val & BATTERY_MODE_MASK) == mode) mode 531 drivers/power/supply/sbs-battery.c return mode; mode 533 drivers/power/supply/sbs-battery.c if (mode == BATTERY_MODE_AMPS) mode 552 drivers/power/supply/sbs-battery.c enum sbs_battery_mode mode = BATTERY_MODE_WATTS; mode 555 drivers/power/supply/sbs-battery.c mode = BATTERY_MODE_AMPS; mode 557 drivers/power/supply/sbs-battery.c mode = sbs_set_battery_mode(client, mode); mode 558 drivers/power/supply/sbs-battery.c if (mode < 0) mode 559 drivers/power/supply/sbs-battery.c return mode; mode 567 drivers/power/supply/sbs-battery.c ret = sbs_set_battery_mode(client, mode); mode 140 drivers/power/supply/sc27xx_fuel_gauge.c int ret, status, cap, mode; mode 151 drivers/power/supply/sc27xx_fuel_gauge.c mode = (status & SC27XX_FGU_MODE_AREA_MASK) >> SC27XX_FGU_MODE_AREA_SHIFT; mode 159 drivers/power/supply/sc27xx_fuel_gauge.c if (mode == SC27XX_FGU_FIRST_POWERTON || cap == SC27XX_FGU_DEFAULT_CAP) mode 691 drivers/power/supply/twl4030_charger.c int mode; mode 694 drivers/power/supply/twl4030_charger.c mode = sysfs_match_string(modes, buf); mode 695 drivers/power/supply/twl4030_charger.c if (mode < 0) mode 696 drivers/power/supply/twl4030_charger.c return mode; mode 699 drivers/power/supply/twl4030_charger.c if (mode == 2) mode 702 drivers/power/supply/twl4030_charger.c bci->ac_mode = mode; mode 706 drivers/power/supply/twl4030_charger.c bci->usb_mode = mode; mode 722 drivers/power/supply/twl4030_charger.c int mode = bci->usb_mode; mode 725 drivers/power/supply/twl4030_charger.c mode = bci->ac_mode; mode 728 drivers/power/supply/twl4030_charger.c if (mode == i) mode 737 drivers/power/supply/twl4030_charger.c static DEVICE_ATTR(mode, 0644, twl4030_bci_mode_show, mode 286 drivers/power/supply/ucs1002_power.c unsigned int mode; mode 293 drivers/power/supply/ucs1002_power.c mode = V_SET_ACTIVE_MODE_DEDICATED; mode 296 drivers/power/supply/ucs1002_power.c mode = V_SET_ACTIVE_MODE_BC12_SDP; mode 299 drivers/power/supply/ucs1002_power.c mode = V_SET_ACTIVE_MODE_BC12_DCP; mode 302 drivers/power/supply/ucs1002_power.c mode = V_SET_ACTIVE_MODE_BC12_CDP; mode 309 drivers/power/supply/ucs1002_power.c V_SET_ACTIVE_MODE_MASK, mode); mode 57 drivers/power/supply/wilco-charger.c static int charge_mode_to_psp_val(enum charge_mode mode) mode 59 drivers/power/supply/wilco-charger.c switch (mode) { mode 123 drivers/power/supply/wilco-charger.c int mode; mode 127 drivers/power/supply/wilco-charger.c mode = psp_val_to_charge_mode(val->intval); mode 128 drivers/power/supply/wilco-charger.c if (mode < 0) mode 130 drivers/power/supply/wilco-charger.c return wilco_ec_set_byte_property(ec, PID_CHARGE_MODE, mode); mode 95 drivers/powercap/intel_rapl_common.c void (*set_floor_freq)(struct rapl_domain *rd, bool mode); mode 211 drivers/powercap/intel_rapl_common.c static int set_domain_enable(struct powercap_zone *power_zone, bool mode) mode 219 drivers/powercap/intel_rapl_common.c rapl_write_data_raw(rd, PL1_ENABLE, mode); mode 221 drivers/powercap/intel_rapl_common.c rapl_defaults->set_floor_freq(rd, mode); mode 227 drivers/powercap/intel_rapl_common.c static int get_domain_enable(struct powercap_zone *power_zone, bool *mode) mode 233 drivers/powercap/intel_rapl_common.c *mode = false; mode 241 drivers/powercap/intel_rapl_common.c *mode = val; mode 835 drivers/powercap/intel_rapl_common.c static void set_floor_freq_default(struct rapl_domain *rd, bool mode) mode 842 drivers/powercap/intel_rapl_common.c rapl_write_data_raw(rd, PL1_CLAMP, mode); mode 846 drivers/powercap/intel_rapl_common.c rapl_write_data_raw(rd, PL2_ENABLE, mode); mode 847 drivers/powercap/intel_rapl_common.c rapl_write_data_raw(rd, PL2_CLAMP, mode); mode 1399 drivers/powercap/intel_rapl_common.c unsigned long mode, void *_unused) mode 1401 drivers/powercap/intel_rapl_common.c switch (mode) { mode 184 drivers/powercap/powercap_sys.c int mode, mode 198 drivers/powercap/powercap_sys.c dev_attr->attr.mode = mode; mode 370 drivers/powercap/powercap_sys.c dev_attr_energy_uj.attr.mode = S_IWUSR | S_IRUGO; mode 372 drivers/powercap/powercap_sys.c dev_attr_energy_uj.attr.mode = S_IRUGO; mode 425 drivers/powercap/powercap_sys.c bool mode = true; mode 431 drivers/powercap/powercap_sys.c if (power_zone->ops->get_enable(power_zone, &mode)) mode 432 drivers/powercap/powercap_sys.c mode = false; mode 437 drivers/powercap/powercap_sys.c if (control_type->ops->get_enable(control_type, &mode)) mode 438 drivers/powercap/powercap_sys.c mode = false; mode 441 drivers/powercap/powercap_sys.c return sprintf(buf, "%d\n", mode); mode 448 drivers/powercap/powercap_sys.c bool mode; mode 450 drivers/powercap/powercap_sys.c if (strtobool(buf, &mode)) mode 455 drivers/powercap/powercap_sys.c if (!power_zone->ops->set_enable(power_zone, mode)) mode 461 drivers/powercap/powercap_sys.c if (!control_type->ops->set_enable(control_type, mode)) mode 76 drivers/pps/clients/pps-gpio.c if (pps->params.mode & PPS_ECHOASSERT) mode 81 drivers/pps/clients/pps-gpio.c if (pps->params.mode & PPS_ECHOCLEAR) mode 87 drivers/pps/clients/pps-gpio.c if (info->pps->params.mode & (PPS_ECHOASSERT | PPS_ECHOCLEAR)) { mode 201 drivers/pps/clients/pps-gpio.c data->info.mode = PPS_CAPTUREASSERT | PPS_OFFSETASSERT | mode 204 drivers/pps/clients/pps-gpio.c data->info.mode |= PPS_CAPTURECLEAR | PPS_OFFSETCLEAR | mode 47 drivers/pps/clients/pps-ktimer.c .mode = PPS_CAPTUREASSERT | PPS_OFFSETASSERT | mode 55 drivers/pps/clients/pps-ldisc.c info.mode = PPS_CAPTUREBOTH | \ mode 133 drivers/pps/clients/pps_parport.c .mode = PPS_CAPTUREBOTH | \ mode 72 drivers/pps/kapi.c if ((info->mode & default_params) != default_params) { mode 78 drivers/pps/kapi.c if ((info->mode & (PPS_TSFMT_TSPEC | PPS_TSFMT_NTPFP)) == 0) { mode 96 drivers/pps/kapi.c pps->params.mode = default_params; mode 100 drivers/pps/kapi.c if ((pps->info.mode & (PPS_ECHOASSERT | PPS_ECHOCLEAR)) && mode 177 drivers/pps/kapi.c if ((pps->params.mode & (PPS_ECHOASSERT | PPS_ECHOCLEAR))) mode 181 drivers/pps/kapi.c pps->current_mode = pps->params.mode; mode 182 drivers/pps/kapi.c if (event & pps->params.mode & PPS_CAPTUREASSERT) { mode 184 drivers/pps/kapi.c if (pps->params.mode & PPS_OFFSETASSERT) mode 196 drivers/pps/kapi.c if (event & pps->params.mode & PPS_CAPTURECLEAR) { mode 198 drivers/pps/kapi.c if (pps->params.mode & PPS_OFFSETCLEAR) mode 126 drivers/pps/pps.c if (!(params.mode & (PPS_CAPTUREASSERT | PPS_CAPTURECLEAR))) { mode 128 drivers/pps/pps.c params.mode); mode 133 drivers/pps/pps.c if ((params.mode & ~pps->info.mode) != 0) { mode 135 drivers/pps/pps.c params.mode); mode 145 drivers/pps/pps.c if ((params.mode & (PPS_TSFMT_TSPEC | PPS_TSFMT_NTPFP)) == 0) { mode 148 drivers/pps/pps.c params.mode); mode 149 drivers/pps/pps.c pps->params.mode |= PPS_TSFMT_TSPEC; mode 151 drivers/pps/pps.c if (pps->info.mode & PPS_CANWAIT) mode 152 drivers/pps/pps.c pps->params.mode |= PPS_CANWAIT; mode 170 drivers/pps/pps.c err = put_user(pps->info.mode, iuarg); mode 220 drivers/pps/pps.c if ((bind_args.edge & ~pps->info.mode) != 0) { mode 23 drivers/pps/sysfs.c if (!(pps->info.mode & PPS_CAPTUREASSERT)) mode 37 drivers/pps/sysfs.c if (!(pps->info.mode & PPS_CAPTURECLEAR)) mode 51 drivers/pps/sysfs.c return sprintf(buf, "%4x\n", pps->info.mode); mode 53 drivers/pps/sysfs.c static DEVICE_ATTR_RO(mode); mode 307 drivers/ps3/ps3av_cmd.c int ps3av_cmd_av_hdmi_mode(u8 mode) mode 313 drivers/ps3/ps3av_cmd.c hdmi_mode.mode = mode; mode 605 drivers/ps3/ps3av_cmd.c const struct ps3av_pkt_audio_mode *mode) mode 607 drivers/ps3/ps3av_cmd.c info->pb1.cc = mode->audio_num_of_ch + 1; /* CH2:0x01 --- CH8:0x07 */ mode 613 drivers/ps3/ps3av_cmd.c info->pb4 = mode->audio_layout; mode 614 drivers/ps3/ps3av_cmd.c info->pb5.dm = mode->audio_downmix; mode 615 drivers/ps3/ps3av_cmd.c info->pb5.lsv = mode->audio_downmix_level; mode 244 drivers/ptp/ptp_clock.c pps.mode = PTP_PPS_MODE; mode 174 drivers/ptp/ptp_sysfs.c umode_t mode = attr->mode; mode 179 drivers/ptp/ptp_sysfs.c mode = 0; mode 182 drivers/ptp/ptp_sysfs.c mode = 0; mode 185 drivers/ptp/ptp_sysfs.c mode = 0; mode 188 drivers/ptp/ptp_sysfs.c return mode; mode 279 drivers/ptp/ptp_sysfs.c da->attr.mode = 0644; mode 1934 drivers/rapidio/devices/rio_mport_cdev.c static int mport_cdev_fasync(int fd, struct file *filp, int mode) mode 1938 drivers/rapidio/devices/rio_mport_cdev.c return fasync_helper(fd, filp, mode, &priv->async_queue); mode 247 drivers/rapidio/rio-sysfs.c .mode = S_IRUGO | S_IWUSR, mode 263 drivers/rapidio/rio-sysfs.c umode_t mode = attr->mode; mode 272 drivers/rapidio/rio-sysfs.c mode = 0; mode 275 drivers/rapidio/rio-sysfs.c return mode; mode 611 drivers/regulator/ab8500-ext.c unsigned int mode) mode 622 drivers/regulator/ab8500-ext.c switch (mode) { mode 295 drivers/regulator/ab8500.c unsigned int mode; mode 305 drivers/regulator/ab8500.c mode = REGULATOR_MODE_IDLE; mode 307 drivers/regulator/ab8500.c mode = REGULATOR_MODE_NORMAL; mode 309 drivers/regulator/ab8500.c return mode; mode 313 drivers/regulator/ab8500.c unsigned int mode) mode 338 drivers/regulator/ab8500.c switch (mode) { mode 295 drivers/regulator/act8865-regulator.c static unsigned int act8865_of_map_mode(unsigned int mode) mode 297 drivers/regulator/act8865-regulator.c switch (mode) { mode 309 drivers/regulator/act8865-regulator.c static int act8865_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 341 drivers/regulator/act8865-regulator.c switch (mode) { mode 141 drivers/regulator/act8945a-regulator.c static unsigned int act8945a_of_map_mode(unsigned int mode) mode 143 drivers/regulator/act8945a-regulator.c switch (mode) { mode 154 drivers/regulator/act8945a-regulator.c static int act8945a_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 187 drivers/regulator/act8945a-regulator.c switch (mode) { mode 204 drivers/regulator/act8945a-regulator.c act8945a->op_mode[id] = mode; mode 28 drivers/regulator/as3711-regulator.c static int as3711_set_mode_sd(struct regulator_dev *rdev, unsigned int mode) mode 34 drivers/regulator/as3711-regulator.c switch (mode) { mode 327 drivers/regulator/as3722-regulator.c int id, u8 mode) mode 331 drivers/regulator/as3722-regulator.c switch (mode) { mode 338 drivers/regulator/as3722-regulator.c AS3722_LDO3_MODE_MASK, mode); mode 444 drivers/regulator/as3722-regulator.c unsigned int mode) mode 455 drivers/regulator/as3722-regulator.c switch (mode) { mode 140 drivers/regulator/bd9571mwv-regulator.c static int bd9571mwv_bkup_mode_read(struct bd9571mwv *bd, unsigned int *mode) mode 144 drivers/regulator/bd9571mwv-regulator.c ret = regmap_read(bd->regmap, BD9571MWV_BKUP_MODE_CNT, mode); mode 153 drivers/regulator/bd9571mwv-regulator.c static int bd9571mwv_bkup_mode_write(struct bd9571mwv *bd, unsigned int mode) mode 157 drivers/regulator/bd9571mwv-regulator.c ret = regmap_write(bd->regmap, BD9571MWV_BKUP_MODE_CNT, mode); mode 160 drivers/regulator/bd9571mwv-regulator.c mode, ret); mode 180 drivers/regulator/bd9571mwv-regulator.c unsigned int mode; mode 197 drivers/regulator/bd9571mwv-regulator.c ret = bd9571mwv_bkup_mode_read(bdreg->bd, &mode); mode 201 drivers/regulator/bd9571mwv-regulator.c mode &= ~BD9571MWV_BKUP_MODE_CNT_KEEPON_MASK; mode 203 drivers/regulator/bd9571mwv-regulator.c mode |= bdreg->bkup_mode_cnt_keepon; mode 205 drivers/regulator/bd9571mwv-regulator.c ret = bd9571mwv_bkup_mode_write(bdreg->bd, mode); mode 217 drivers/regulator/bd9571mwv-regulator.c unsigned int mode; mode 224 drivers/regulator/bd9571mwv-regulator.c ret = bd9571mwv_bkup_mode_read(bdreg->bd, &mode); mode 228 drivers/regulator/bd9571mwv-regulator.c bdreg->bkup_mode_cnt_saved = mode; mode 234 drivers/regulator/bd9571mwv-regulator.c mode &= ~BD9571MWV_BKUP_MODE_CNT_KEEPON_MASK; mode 235 drivers/regulator/bd9571mwv-regulator.c mode |= bdreg->bkup_mode_cnt_keepon; mode 237 drivers/regulator/bd9571mwv-regulator.c if (mode != bdreg->bkup_mode_cnt_saved) mode 238 drivers/regulator/bd9571mwv-regulator.c return bd9571mwv_bkup_mode_write(bdreg->bd, mode); mode 519 drivers/regulator/core.c unsigned int *mode) mode 521 drivers/regulator/core.c switch (*mode) { mode 528 drivers/regulator/core.c rdev_err(rdev, "invalid mode %x specified\n", *mode); mode 540 drivers/regulator/core.c while (*mode) { mode 541 drivers/regulator/core.c if (rdev->constraints->valid_modes_mask & *mode) mode 543 drivers/regulator/core.c *mode /= 2; mode 601 drivers/regulator/core.c static const char *regulator_opmode_to_str(int mode) mode 603 drivers/regulator/core.c switch (mode) { mode 616 drivers/regulator/core.c static ssize_t regulator_print_opmode(char *buf, int mode) mode 618 drivers/regulator/core.c return sprintf(buf, "%s\n", regulator_opmode_to_str(mode)); mode 825 drivers/regulator/core.c rdev->constraints->state_mem.mode); mode 836 drivers/regulator/core.c rdev->constraints->state_disk.mode); mode 847 drivers/regulator/core.c rdev->constraints->state_standby.mode); mode 913 drivers/regulator/core.c unsigned int mode; mode 965 drivers/regulator/core.c mode = rdev->desc->ops->get_optimum_mode(rdev, input_uV, mode 969 drivers/regulator/core.c err = regulator_mode_constrain(rdev, &mode); mode 976 drivers/regulator/core.c err = rdev->desc->ops->set_mode(rdev, mode); mode 978 drivers/regulator/core.c rdev_err(rdev, "failed to set optimum mode %x\n", mode); mode 1028 drivers/regulator/core.c if (rdev->desc->ops->set_suspend_mode && rstate->mode > 0) { mode 1029 drivers/regulator/core.c ret = rdev->desc->ops->set_suspend_mode(rdev, rstate->mode); mode 4142 drivers/regulator/core.c int regulator_set_mode(struct regulator *regulator, unsigned int mode) mode 4159 drivers/regulator/core.c if (regulator_curr_mode == mode) { mode 4166 drivers/regulator/core.c ret = regulator_mode_constrain(rdev, &mode); mode 4170 drivers/regulator/core.c ret = rdev->desc->ops->set_mode(rdev, mode); mode 4615 drivers/regulator/core.c int regulator_mode_to_status(unsigned int mode) mode 4617 drivers/regulator/core.c switch (mode) { mode 4669 drivers/regulator/core.c umode_t mode = attr->mode; mode 4675 drivers/regulator/core.c return mode; mode 4683 drivers/regulator/core.c return mode; mode 4688 drivers/regulator/core.c return ops->get_current_limit ? mode : 0; mode 4691 drivers/regulator/core.c return ops->get_mode ? mode : 0; mode 4694 drivers/regulator/core.c return (rdev->ena_pin || ops->is_enabled) ? mode : 0; mode 4697 drivers/regulator/core.c return ops->get_status ? mode : 0; mode 4700 drivers/regulator/core.c return ops->get_bypass ? mode : 0; mode 4705 drivers/regulator/core.c return (ops->set_voltage || ops->set_voltage_sel) ? mode : 0; mode 4709 drivers/regulator/core.c return ops->set_current_limit ? mode : 0; mode 4714 drivers/regulator/core.c return mode; mode 4719 drivers/regulator/core.c return ops->set_suspend_voltage ? mode : 0; mode 4724 drivers/regulator/core.c return ops->set_suspend_mode ? mode : 0; mode 4726 drivers/regulator/core.c return mode; mode 215 drivers/regulator/cpcap-regulator.c static unsigned int cpcap_map_mode(unsigned int mode) mode 217 drivers/regulator/cpcap-regulator.c switch (mode) { mode 240 drivers/regulator/cpcap-regulator.c unsigned int mode) mode 244 drivers/regulator/cpcap-regulator.c switch (mode) { mode 72 drivers/regulator/da9055-regulator.c struct da9055_mode_reg mode; mode 86 drivers/regulator/da9055-regulator.c int ret, mode = 0; mode 88 drivers/regulator/da9055-regulator.c ret = da9055_reg_read(regulator->da9055, info->mode.reg); mode 92 drivers/regulator/da9055-regulator.c switch ((ret & info->mode.mask) >> info->mode.shift) { mode 94 drivers/regulator/da9055-regulator.c mode = REGULATOR_MODE_FAST; mode 97 drivers/regulator/da9055-regulator.c mode = REGULATOR_MODE_NORMAL; mode 100 drivers/regulator/da9055-regulator.c mode = REGULATOR_MODE_STANDBY; mode 104 drivers/regulator/da9055-regulator.c return mode; mode 108 drivers/regulator/da9055-regulator.c unsigned int mode) mode 114 drivers/regulator/da9055-regulator.c switch (mode) { mode 116 drivers/regulator/da9055-regulator.c val = DA9055_BUCK_MODE_SYNC << info->mode.shift; mode 119 drivers/regulator/da9055-regulator.c val = DA9055_BUCK_MODE_AUTO << info->mode.shift; mode 122 drivers/regulator/da9055-regulator.c val = DA9055_BUCK_MODE_SLEEP << info->mode.shift; mode 126 drivers/regulator/da9055-regulator.c return da9055_reg_update(regulator->da9055, info->mode.reg, mode 127 drivers/regulator/da9055-regulator.c info->mode.mask, val); mode 146 drivers/regulator/da9055-regulator.c static int da9055_ldo_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 153 drivers/regulator/da9055-regulator.c switch (mode) { mode 393 drivers/regulator/da9055-regulator.c .mode = {\ mode 48 drivers/regulator/da9062-regulator.c struct reg_field mode; mode 64 drivers/regulator/da9062-regulator.c struct regmap_field *mode; mode 108 drivers/regulator/da9062-regulator.c static int da9062_buck_set_mode(struct regulator_dev *rdev, unsigned mode) mode 113 drivers/regulator/da9062-regulator.c switch (mode) { mode 127 drivers/regulator/da9062-regulator.c return regmap_field_write(regl->mode, val); mode 139 drivers/regulator/da9062-regulator.c unsigned int val, mode = 0; mode 142 drivers/regulator/da9062-regulator.c ret = regmap_field_read(regl->mode, &val); mode 149 drivers/regulator/da9062-regulator.c mode = REGULATOR_MODE_FAST | REGULATOR_MODE_STANDBY; mode 165 drivers/regulator/da9062-regulator.c mode &= REGULATOR_MODE_STANDBY; mode 167 drivers/regulator/da9062-regulator.c mode &= REGULATOR_MODE_NORMAL | REGULATOR_MODE_FAST; mode 169 drivers/regulator/da9062-regulator.c return mode; mode 177 drivers/regulator/da9062-regulator.c static int da9062_ldo_set_mode(struct regulator_dev *rdev, unsigned mode) mode 182 drivers/regulator/da9062-regulator.c switch (mode) { mode 278 drivers/regulator/da9062-regulator.c unsigned mode) mode 283 drivers/regulator/da9062-regulator.c switch (mode) { mode 297 drivers/regulator/da9062-regulator.c return regmap_field_write(regl->mode, val); mode 301 drivers/regulator/da9062-regulator.c unsigned mode) mode 306 drivers/regulator/da9062-regulator.c switch (mode) { mode 383 drivers/regulator/da9062-regulator.c .mode = REG_FIELD(DA9062AA_BUCK1_CFG, mode 419 drivers/regulator/da9062-regulator.c .mode = REG_FIELD(DA9062AA_BUCK3_CFG, mode 455 drivers/regulator/da9062-regulator.c .mode = REG_FIELD(DA9062AA_BUCK4_CFG, mode 627 drivers/regulator/da9062-regulator.c .mode = REG_FIELD(DA9062AA_BUCK1_CFG, mode 663 drivers/regulator/da9062-regulator.c .mode = REG_FIELD(DA9062AA_BUCK2_CFG, mode 699 drivers/regulator/da9062-regulator.c .mode = REG_FIELD(DA9062AA_BUCK3_CFG, mode 735 drivers/regulator/da9062-regulator.c .mode = REG_FIELD(DA9062AA_BUCK4_CFG, mode 955 drivers/regulator/da9062-regulator.c if (regl->info->mode.reg) { mode 956 drivers/regulator/da9062-regulator.c regl->mode = devm_regmap_field_alloc( mode 959 drivers/regulator/da9062-regulator.c regl->info->mode); mode 960 drivers/regulator/da9062-regulator.c if (IS_ERR(regl->mode)) mode 961 drivers/regulator/da9062-regulator.c return PTR_ERR(regl->mode); mode 78 drivers/regulator/da9063-regulator.c struct reg_field mode; /* buck mode of operation */ mode 129 drivers/regulator/da9063-regulator.c .mode = BFIELD(DA9063_REG_##regl_name##_CFG, DA9063_BUCK_MODE_MASK) mode 145 drivers/regulator/da9063-regulator.c struct regmap_field *mode; mode 196 drivers/regulator/da9063-regulator.c static int da9063_buck_set_mode(struct regulator_dev *rdev, unsigned mode) mode 201 drivers/regulator/da9063-regulator.c switch (mode) { mode 215 drivers/regulator/da9063-regulator.c return regmap_field_write(regl->mode, val); mode 228 drivers/regulator/da9063-regulator.c unsigned int val, mode = 0; mode 231 drivers/regulator/da9063-regulator.c ret = regmap_field_read(regl->mode, &val); mode 238 drivers/regulator/da9063-regulator.c mode = REGULATOR_MODE_FAST | REGULATOR_MODE_STANDBY; mode 265 drivers/regulator/da9063-regulator.c mode &= REGULATOR_MODE_STANDBY; mode 267 drivers/regulator/da9063-regulator.c mode &= REGULATOR_MODE_NORMAL | REGULATOR_MODE_FAST; mode 269 drivers/regulator/da9063-regulator.c return mode; mode 277 drivers/regulator/da9063-regulator.c static int da9063_ldo_set_mode(struct regulator_dev *rdev, unsigned mode) mode 282 drivers/regulator/da9063-regulator.c switch (mode) { mode 389 drivers/regulator/da9063-regulator.c static int da9063_buck_set_suspend_mode(struct regulator_dev *rdev, unsigned mode) mode 394 drivers/regulator/da9063-regulator.c switch (mode) { mode 408 drivers/regulator/da9063-regulator.c return regmap_field_write(regl->mode, val); mode 411 drivers/regulator/da9063-regulator.c static int da9063_ldo_set_suspend_mode(struct regulator_dev *rdev, unsigned mode) mode 416 drivers/regulator/da9063-regulator.c switch (mode) { mode 816 drivers/regulator/da9063-regulator.c if (regl->info->mode.reg) { mode 817 drivers/regulator/da9063-regulator.c regl->mode = devm_regmap_field_alloc(&pdev->dev, mode 818 drivers/regulator/da9063-regulator.c da9063->regmap, regl->info->mode); mode 819 drivers/regulator/da9063-regulator.c if (IS_ERR(regl->mode)) mode 820 drivers/regulator/da9063-regulator.c return PTR_ERR(regl->mode); mode 97 drivers/regulator/da9211-regulator.c int ret, mode = 0; mode 105 drivers/regulator/da9211-regulator.c mode = REGULATOR_MODE_FAST; mode 108 drivers/regulator/da9211-regulator.c mode = REGULATOR_MODE_NORMAL; mode 111 drivers/regulator/da9211-regulator.c mode = REGULATOR_MODE_STANDBY; mode 115 drivers/regulator/da9211-regulator.c return mode; mode 119 drivers/regulator/da9211-regulator.c unsigned int mode) mode 125 drivers/regulator/da9211-regulator.c switch (mode) { mode 147 drivers/regulator/fan53555.c static int fan53555_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 151 drivers/regulator/fan53555.c switch (mode) { mode 411 drivers/regulator/hi6421-regulator.c unsigned int mode) mode 416 drivers/regulator/hi6421-regulator.c switch (mode) { mode 435 drivers/regulator/hi6421-regulator.c unsigned int mode) mode 440 drivers/regulator/hi6421-regulator.c switch (mode) { mode 127 drivers/regulator/hi6421v530-regulator.c unsigned int mode) mode 133 drivers/regulator/hi6421v530-regulator.c switch (mode) { mode 352 drivers/regulator/lp872x.c static int lp872x_buck_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 378 drivers/regulator/lp872x.c if (mode == REGULATOR_MODE_FAST) mode 380 drivers/regulator/lp872x.c else if (mode == REGULATOR_MODE_NORMAL) mode 104 drivers/regulator/lp8755.c static int lp8755_buck_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 111 drivers/regulator/lp8755.c switch (mode) { mode 204 drivers/regulator/lp8788-buck.c enum lp8788_dvs_mode mode = lp8788_get_buck_dvs_ctrl_mode(buck, id); mode 212 drivers/regulator/lp8788-buck.c if (mode == EXTPIN) { mode 225 drivers/regulator/lp8788-buck.c if (mode == EXTPIN) { mode 305 drivers/regulator/lp8788-buck.c static int lp8788_buck_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 312 drivers/regulator/lp8788-buck.c switch (mode) { mode 128 drivers/regulator/ltc3589.c unsigned int mode) mode 136 drivers/regulator/ltc3589.c if (mode == REGULATOR_MODE_STANDBY) mode 91 drivers/regulator/ltc3676.c unsigned int mode) mode 98 drivers/regulator/ltc3676.c dev_dbg(dev, "%s id=%d mode=%d\n", __func__, dcdc, mode); mode 101 drivers/regulator/ltc3676.c switch (mode) { mode 110 drivers/regulator/ltc3676.c rdev->desc->name, mode); mode 486 drivers/regulator/max77620-regulator.c unsigned int mode) mode 497 drivers/regulator/max77620-regulator.c switch (mode) { mode 513 drivers/regulator/max77620-regulator.c id, mode); mode 528 drivers/regulator/max77620-regulator.c rpdata->current_mode = mode; mode 140 drivers/regulator/max77686-regulator.c unsigned int mode) mode 150 drivers/regulator/max77686-regulator.c switch (mode) { mode 159 drivers/regulator/max77686-regulator.c rdev->desc->name, mode); mode 175 drivers/regulator/max77686-regulator.c unsigned int mode) mode 181 drivers/regulator/max77686-regulator.c switch (mode) { mode 193 drivers/regulator/max77686-regulator.c rdev->desc->name, mode); mode 66 drivers/regulator/max77802-regulator.c static inline unsigned int max77802_map_mode(unsigned int mode) mode 68 drivers/regulator/max77802-regulator.c return mode == MAX77802_OPMODE_NORMAL ? mode 111 drivers/regulator/max77802-regulator.c static int max77802_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 118 drivers/regulator/max77802-regulator.c switch (mode) { mode 127 drivers/regulator/max77802-regulator.c rdev->desc->name, mode); mode 161 drivers/regulator/max77802-regulator.c unsigned int mode) mode 174 drivers/regulator/max77802-regulator.c rdev->desc->name, mode); mode 178 drivers/regulator/max77802-regulator.c switch (mode) { mode 198 drivers/regulator/max77802-regulator.c rdev->desc->name, mode); mode 202 drivers/regulator/max77802-regulator.c rdev->desc->name, mode); mode 52 drivers/regulator/max8649.c unsigned mode:2; /* bit[1:0] = VID1, VID0 */ mode 82 drivers/regulator/max8649.c static int max8649_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 86 drivers/regulator/max8649.c switch (mode) { mode 174 drivers/regulator/max8649.c info->mode = pdata->mode; mode 175 drivers/regulator/max8649.c switch (info->mode) { mode 224 drivers/regulator/max8973-regulator.c static int max8973_dcdc_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 231 drivers/regulator/max8973-regulator.c switch (mode) { mode 489 drivers/regulator/mc13892-regulator.c static int mc13892_vcam_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 495 drivers/regulator/mc13892-regulator.c if (mode == REGULATOR_MODE_FAST) mode 78 drivers/regulator/mcp16502.c static unsigned int mcp16502_of_map_mode(unsigned int mode) mode 80 drivers/regulator/mcp16502.c if (mode == REGULATOR_MODE_NORMAL || mode == REGULATOR_MODE_IDLE) mode 81 drivers/regulator/mcp16502.c return mode; mode 130 drivers/regulator/mcp16502.c static void mcp16502_gpio_set_mode(struct mcp16502 *mcp, int mode) mode 132 drivers/regulator/mcp16502.c switch (mode) { mode 141 drivers/regulator/mcp16502.c pr_err("%s: %d invalid\n", __func__, mode); mode 206 drivers/regulator/mcp16502.c static int _mcp16502_set_mode(struct regulator_dev *rdev, unsigned int mode, mode 216 drivers/regulator/mcp16502.c switch (mode) { mode 234 drivers/regulator/mcp16502.c static int mcp16502_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 236 drivers/regulator/mcp16502.c return _mcp16502_set_mode(rdev, mode, MCP16502_OPMODE_ACTIVE); mode 304 drivers/regulator/mcp16502.c unsigned int mode) mode 308 drivers/regulator/mcp16502.c return _mcp16502_set_mode(rdev, mode, MCP16502_OPMODE_LPM); mode 311 drivers/regulator/mcp16502.c return _mcp16502_set_mode(rdev, mode, MCP16502_OPMODE_HIB); mode 172 drivers/regulator/mt6323-regulator.c static int mt6323_ldo_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 183 drivers/regulator/mt6323-regulator.c switch (mode) { mode 205 drivers/regulator/mt6323-regulator.c unsigned int mode; mode 223 drivers/regulator/mt6323-regulator.c mode = REGULATOR_MODE_STANDBY; mode 225 drivers/regulator/mt6323-regulator.c mode = REGULATOR_MODE_NORMAL; mode 227 drivers/regulator/mt6323-regulator.c return mode; mode 247 drivers/regulator/mt6358-regulator.c static unsigned int mt6358_map_mode(unsigned int mode) mode 249 drivers/regulator/mt6358-regulator.c return mode == MT6358_BUCK_MODE_AUTO ? mode 329 drivers/regulator/mt6358-regulator.c unsigned int mode) mode 334 drivers/regulator/mt6358-regulator.c switch (mode) { mode 184 drivers/regulator/mt6380-regulator.c unsigned int mode) mode 189 drivers/regulator/mt6380-regulator.c switch (mode) { mode 211 drivers/regulator/mt6380-regulator.c unsigned int mode; mode 224 drivers/regulator/mt6380-regulator.c mode = REGULATOR_MODE_NORMAL; mode 227 drivers/regulator/mt6380-regulator.c mode = REGULATOR_MODE_FAST; mode 233 drivers/regulator/mt6380-regulator.c return mode; mode 150 drivers/regulator/mt6397-regulator.c unsigned int mode) mode 155 drivers/regulator/mt6397-regulator.c switch (mode) { mode 32 drivers/regulator/of_regulator.c unsigned int mode; mode 131 drivers/regulator/of_regulator.c mode = desc->of_map_mode(pval); mode 132 drivers/regulator/of_regulator.c if (mode == REGULATOR_MODE_INVALID) mode 135 drivers/regulator/of_regulator.c constraints->initial_mode = mode; mode 154 drivers/regulator/of_regulator.c mode = desc->of_map_mode(pval); mode 155 drivers/regulator/of_regulator.c if (mode == REGULATOR_MODE_INVALID) mode 159 drivers/regulator/of_regulator.c constraints->valid_modes_mask |= mode; mode 215 drivers/regulator/of_regulator.c mode = desc->of_map_mode(pval); mode 216 drivers/regulator/of_regulator.c if (mode == REGULATOR_MODE_INVALID) mode 220 drivers/regulator/of_regulator.c suspend_state->mode = mode; mode 438 drivers/regulator/palmas-regulator.c static int palmas_set_mode_smps(struct regulator_dev *dev, unsigned int mode) mode 457 drivers/regulator/palmas-regulator.c switch (mode) { mode 72 drivers/regulator/pv88060-regulator.c int ret, mode = 0; mode 80 drivers/regulator/pv88060-regulator.c mode = REGULATOR_MODE_FAST; mode 83 drivers/regulator/pv88060-regulator.c mode = REGULATOR_MODE_NORMAL; mode 86 drivers/regulator/pv88060-regulator.c mode = REGULATOR_MODE_STANDBY; mode 90 drivers/regulator/pv88060-regulator.c return mode; mode 94 drivers/regulator/pv88060-regulator.c unsigned int mode) mode 99 drivers/regulator/pv88060-regulator.c switch (mode) { mode 213 drivers/regulator/pv88080-regulator.c int ret, mode = 0; mode 221 drivers/regulator/pv88080-regulator.c mode = REGULATOR_MODE_FAST; mode 224 drivers/regulator/pv88080-regulator.c mode = REGULATOR_MODE_NORMAL; mode 227 drivers/regulator/pv88080-regulator.c mode = REGULATOR_MODE_STANDBY; mode 233 drivers/regulator/pv88080-regulator.c return mode; mode 237 drivers/regulator/pv88080-regulator.c unsigned int mode) mode 242 drivers/regulator/pv88080-regulator.c switch (mode) { mode 94 drivers/regulator/pv88090-regulator.c int ret, mode = 0; mode 102 drivers/regulator/pv88090-regulator.c mode = REGULATOR_MODE_FAST; mode 105 drivers/regulator/pv88090-regulator.c mode = REGULATOR_MODE_NORMAL; mode 108 drivers/regulator/pv88090-regulator.c mode = REGULATOR_MODE_STANDBY; mode 112 drivers/regulator/pv88090-regulator.c return mode; mode 116 drivers/regulator/pv88090-regulator.c unsigned int mode) mode 121 drivers/regulator/pv88090-regulator.c switch (mode) { mode 93 drivers/regulator/qcom-rpmh-regulator.c unsigned int (*of_map_mode)(unsigned int mode); mode 130 drivers/regulator/qcom-rpmh-regulator.c unsigned int mode; mode 263 drivers/regulator/qcom-rpmh-regulator.c unsigned int mode, bool bypassed) mode 270 drivers/regulator/qcom-rpmh-regulator.c if (mode > REGULATOR_MODE_STANDBY) mode 273 drivers/regulator/qcom-rpmh-regulator.c pmic_mode = vreg->hw_data->pmic_mode_map[mode]; mode 286 drivers/regulator/qcom-rpmh-regulator.c unsigned int mode) mode 291 drivers/regulator/qcom-rpmh-regulator.c if (mode == vreg->mode) mode 294 drivers/regulator/qcom-rpmh-regulator.c ret = rpmh_regulator_vrm_set_mode_bypass(vreg, mode, vreg->bypassed); mode 296 drivers/regulator/qcom-rpmh-regulator.c vreg->mode = mode; mode 305 drivers/regulator/qcom-rpmh-regulator.c return vreg->mode; mode 322 drivers/regulator/qcom-rpmh-regulator.c unsigned int mode; mode 325 drivers/regulator/qcom-rpmh-regulator.c mode = REGULATOR_MODE_NORMAL; mode 327 drivers/regulator/qcom-rpmh-regulator.c mode = REGULATOR_MODE_IDLE; mode 329 drivers/regulator/qcom-rpmh-regulator.c return rpmh_regulator_vrm_set_mode(rdev, mode); mode 341 drivers/regulator/qcom-rpmh-regulator.c ret = rpmh_regulator_vrm_set_mode_bypass(vreg, vreg->mode, enable); mode 451 drivers/regulator/qcom-rpmh-regulator.c vreg->mode = REGULATOR_MODE_INVALID; mode 515 drivers/regulator/qcom-rpmh-regulator.c unsigned int mode; mode 519 drivers/regulator/qcom-rpmh-regulator.c mode = REGULATOR_MODE_NORMAL; mode 522 drivers/regulator/qcom-rpmh-regulator.c mode = REGULATOR_MODE_IDLE; mode 525 drivers/regulator/qcom-rpmh-regulator.c mode = REGULATOR_MODE_STANDBY; mode 528 drivers/regulator/qcom-rpmh-regulator.c mode = REGULATOR_MODE_INVALID; mode 532 drivers/regulator/qcom-rpmh-regulator.c return mode; mode 554 drivers/regulator/qcom-rpmh-regulator.c unsigned int mode; mode 558 drivers/regulator/qcom-rpmh-regulator.c mode = REGULATOR_MODE_FAST; mode 561 drivers/regulator/qcom-rpmh-regulator.c mode = REGULATOR_MODE_NORMAL; mode 564 drivers/regulator/qcom-rpmh-regulator.c mode = REGULATOR_MODE_IDLE; mode 567 drivers/regulator/qcom-rpmh-regulator.c mode = REGULATOR_MODE_STANDBY; mode 570 drivers/regulator/qcom-rpmh-regulator.c mode = REGULATOR_MODE_INVALID; mode 574 drivers/regulator/qcom-rpmh-regulator.c return mode; mode 595 drivers/regulator/qcom-rpmh-regulator.c unsigned int mode; mode 599 drivers/regulator/qcom-rpmh-regulator.c mode = REGULATOR_MODE_FAST; mode 602 drivers/regulator/qcom-rpmh-regulator.c mode = REGULATOR_MODE_NORMAL; mode 605 drivers/regulator/qcom-rpmh-regulator.c mode = REGULATOR_MODE_IDLE; mode 608 drivers/regulator/qcom-rpmh-regulator.c mode = REGULATOR_MODE_INVALID; mode 612 drivers/regulator/qcom-rpmh-regulator.c return mode; mode 1017 drivers/regulator/qcom_spmi-regulator.c spmi_regulator_common_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 1023 drivers/regulator/qcom_spmi-regulator.c switch (mode) { mode 1039 drivers/regulator/qcom_spmi-regulator.c spmi_regulator_ftsmps426_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 1045 drivers/regulator/qcom_spmi-regulator.c switch (mode) { mode 1066 drivers/regulator/qcom_spmi-regulator.c unsigned int mode; mode 1069 drivers/regulator/qcom_spmi-regulator.c mode = REGULATOR_MODE_NORMAL; mode 1071 drivers/regulator/qcom_spmi-regulator.c mode = REGULATOR_MODE_IDLE; mode 1073 drivers/regulator/qcom_spmi-regulator.c return spmi_regulator_common_set_mode(rdev, mode); mode 1721 drivers/regulator/qcom_spmi-regulator.c static unsigned int spmi_regulator_of_map_mode(unsigned int mode) mode 1723 drivers/regulator/qcom_spmi-regulator.c if (mode == 1) mode 1725 drivers/regulator/qcom_spmi-regulator.c if (mode == 2) mode 525 drivers/regulator/rk808-regulator.c static int rk8xx_set_suspend_mode(struct regulator_dev *rdev, unsigned int mode) mode 531 drivers/regulator/rk808-regulator.c switch (mode) { mode 546 drivers/regulator/rk808-regulator.c static int rk8xx_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 548 drivers/regulator/rk808-regulator.c switch (mode) { mode 601 drivers/regulator/rk808-regulator.c static unsigned int rk8xx_regulator_of_map_mode(unsigned int mode) mode 603 drivers/regulator/rk808-regulator.c switch (mode) { mode 166 drivers/regulator/s5m8767.c unsigned int mode; mode 193 drivers/regulator/s5m8767.c mode = s5m8767->opmode[i].mode; mode 201 drivers/regulator/s5m8767.c *enable_ctrl = s5m8767_opmode_reg[reg_id][mode] << S5M8767_ENCTRL_SHIFT; mode 431 drivers/regulator/s5m8767.c int i, mode = 0; mode 440 drivers/regulator/s5m8767.c mode = s5m8767_opmode_reg[rdata->id][opmode->mode]; mode 444 drivers/regulator/s5m8767.c if (mode != S5M8767_ENCTRL_USE_GPIO) { mode 447 drivers/regulator/s5m8767.c rdata->reg_node, mode); mode 590 drivers/regulator/s5m8767.c &rmode->mode)) { mode 595 drivers/regulator/s5m8767.c rmode->mode = S5M8767_OPMODE_NORMAL_MODE; mode 33 drivers/regulator/stpmic1_regulator.c static int stpmic1_set_mode(struct regulator_dev *rdev, unsigned int mode); mode 36 drivers/regulator/stpmic1_regulator.c static unsigned int stpmic1_map_mode(unsigned int mode); mode 443 drivers/regulator/stpmic1_regulator.c static unsigned int stpmic1_map_mode(unsigned int mode) mode 445 drivers/regulator/stpmic1_regulator.c switch (mode) { mode 468 drivers/regulator/stpmic1_regulator.c static int stpmic1_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 473 drivers/regulator/stpmic1_regulator.c switch (mode) { mode 37 drivers/regulator/sy8824x.c static int sy8824_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 42 drivers/regulator/sy8824x.c switch (mode) { mode 65 drivers/regulator/tps6105x-regulator.c if (pdata->mode != TPS6105X_MODE_VOLTAGE) { mode 175 drivers/regulator/tps62360-regulator.c static int tps62360_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 183 drivers/regulator/tps62360-regulator.c switch (mode) { mode 314 drivers/regulator/tps65910-regulator.c int mode; mode 390 drivers/regulator/tps65910-regulator.c static int tps65910_set_mode(struct regulator_dev *dev, unsigned int mode) mode 400 drivers/regulator/tps65910-regulator.c switch (mode) { mode 245 drivers/regulator/twl-regulator.c static int twl4030reg_set_mode(struct regulator_dev *rdev, unsigned mode) mode 251 drivers/regulator/twl-regulator.c switch (mode) { mode 265 drivers/regulator/twl-regulator.c static inline unsigned int twl4030reg_map_mode(unsigned int mode) mode 267 drivers/regulator/twl-regulator.c switch (mode) { mode 206 drivers/regulator/twl6030-regulator.c static int twl6030reg_set_mode(struct regulator_dev *rdev, unsigned mode) mode 221 drivers/regulator/twl6030-regulator.c switch (mode) { mode 25 drivers/regulator/virtual.c unsigned int mode; mode 216 drivers/regulator/virtual.c switch (data->mode) { mode 234 drivers/regulator/virtual.c unsigned int mode; mode 242 drivers/regulator/virtual.c mode = REGULATOR_MODE_FAST; mode 244 drivers/regulator/virtual.c mode = REGULATOR_MODE_NORMAL; mode 246 drivers/regulator/virtual.c mode = REGULATOR_MODE_IDLE; mode 248 drivers/regulator/virtual.c mode = REGULATOR_MODE_STANDBY; mode 255 drivers/regulator/virtual.c ret = regulator_set_mode(data->regulator, mode); mode 257 drivers/regulator/virtual.c data->mode = mode; mode 269 drivers/regulator/virtual.c static DEVICE_ATTR(mode, 0664, show_mode, set_mode); mode 313 drivers/regulator/virtual.c drvdata->mode = regulator_get_mode(drvdata->regulator); mode 89 drivers/regulator/wm831x-dcdc.c unsigned int mode) mode 93 drivers/regulator/wm831x-dcdc.c switch (mode) { mode 114 drivers/regulator/wm831x-dcdc.c static int wm831x_dcdc_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 120 drivers/regulator/wm831x-dcdc.c return wm831x_dcdc_set_mode_int(wm831x, reg, mode); mode 124 drivers/regulator/wm831x-dcdc.c unsigned int mode) mode 130 drivers/regulator/wm831x-dcdc.c return wm831x_dcdc_set_mode_int(wm831x, reg, mode); mode 107 drivers/regulator/wm831x-ldo.c unsigned int mode) mode 116 drivers/regulator/wm831x-ldo.c switch (mode) { mode 352 drivers/regulator/wm831x-ldo.c unsigned int mode) mode 360 drivers/regulator/wm831x-ldo.c switch (mode) { mode 239 drivers/regulator/wm8350-regulator.c int wm8350_isink_set_flash(struct wm8350 *wm8350, int isink, u16 mode, mode 246 drivers/regulator/wm8350-regulator.c (mode ? WM8350_CS1_FLASH_MODE : 0) | mode 252 drivers/regulator/wm8350-regulator.c (mode ? WM8350_CS2_FLASH_MODE : 0) | mode 431 drivers/regulator/wm8350-regulator.c unsigned int mode) mode 456 drivers/regulator/wm8350-regulator.c switch (mode) { mode 654 drivers/regulator/wm8350-regulator.c int wm8350_dcdc25_set_mode(struct wm8350 *wm8350, int dcdc, u16 mode, mode 660 drivers/regulator/wm8350-regulator.c mode ? "normal" : "boost", ilim ? "low" : "normal"); mode 668 drivers/regulator/wm8350-regulator.c (mode << WM8350_DC2_MODE_SHIFT) | mode 678 drivers/regulator/wm8350-regulator.c (mode << WM8350_DC5_MODE_SHIFT) | mode 721 drivers/regulator/wm8350-regulator.c static int wm8350_dcdc_set_mode(struct regulator_dev *rdev, unsigned int mode) mode 735 drivers/regulator/wm8350-regulator.c switch (mode) { mode 769 drivers/regulator/wm8350-regulator.c int mode = REGULATOR_MODE_NORMAL; mode 799 drivers/regulator/wm8350-regulator.c mode = REGULATOR_MODE_FAST; mode 801 drivers/regulator/wm8350-regulator.c mode = REGULATOR_MODE_NORMAL; mode 803 drivers/regulator/wm8350-regulator.c mode = REGULATOR_MODE_IDLE; mode 805 drivers/regulator/wm8350-regulator.c mode = REGULATOR_MODE_STANDBY; mode 807 drivers/regulator/wm8350-regulator.c return mode; mode 818 drivers/regulator/wm8350-regulator.c unsigned int mode; mode 841 drivers/regulator/wm8350-regulator.c return eff[i].mode; mode 855 drivers/regulator/wm8350-regulator.c int dcdc = rdev_get_id(rdev), mode; mode 860 drivers/regulator/wm8350-regulator.c mode = get_mode(output_uA, dcdc1_6_efficiency); mode 864 drivers/regulator/wm8350-regulator.c mode = get_mode(output_uA, dcdc3_4_efficiency); mode 867 drivers/regulator/wm8350-regulator.c mode = REGULATOR_MODE_NORMAL; mode 870 drivers/regulator/wm8350-regulator.c return mode; mode 57 drivers/regulator/wm8400-regulator.c static int wm8400_dcdc_set_mode(struct regulator_dev *dev, unsigned int mode) mode 63 drivers/regulator/wm8400-regulator.c switch (mode) { mode 44 drivers/reset/reset-lpc18xx.c static int lpc18xx_rgu_restart(struct notifier_block *nb, unsigned long mode, mode 606 drivers/rtc/interface.c void rtc_handle_legacy_irq(struct rtc_device *rtc, int num, int mode) mode 612 drivers/rtc/interface.c rtc->irq_data = (rtc->irq_data + (num << 8)) | (RTC_IRQF | mode); mode 51 drivers/rtc/nvmem.c rtc->nvram->attr.mode = 0644; mode 124 drivers/rtc/rtc-ds1302.c } else if (spi->mode & SPI_CPHA) { mode 570 drivers/rtc/rtc-ds1305.c || !(spi->mode & SPI_CPHA)) mode 489 drivers/rtc/rtc-ds1343.c spi->mode = SPI_MODE_3 | SPI_CS_HIGH; mode 115 drivers/rtc/rtc-ds1347.c spi->mode = SPI_MODE_3; mode 187 drivers/rtc/rtc-ds1390.c spi->mode = SPI_MODE_3; mode 656 drivers/rtc/rtc-ds3232.c spi->mode = SPI_MODE_3; mode 65 drivers/rtc/rtc-fm3130.c static void fm3130_rtc_mode(struct device *dev, int mode) mode 71 drivers/rtc/rtc-fm3130.c switch (mode) { mode 84 drivers/rtc/rtc-fm3130.c dev_dbg(dev, "invalid mode %d\n", mode); mode 125 drivers/rtc/rtc-max6902.c spi->mode = SPI_MODE_3; mode 114 drivers/rtc/rtc-max6916.c spi->mode = SPI_MODE_3; mode 386 drivers/rtc/rtc-mcp795.c spi->mode = SPI_MODE_0; mode 108 drivers/rtc/rtc-meson.c static void meson_rtc_set_dir(struct meson_rtc *rtc, u32 mode) mode 112 drivers/rtc/rtc-meson.c meson_rtc_send_bit(rtc, mode); mode 339 drivers/rtc/rtc-rx6110.c (spi->mode != (SPI_CS_HIGH | SPI_CPOL | SPI_CPHA))) { mode 341 drivers/rtc/rtc-rx6110.c spi->bits_per_word, spi->max_speed_hz, spi->mode); mode 190 drivers/rtc/rtc-st-lpc.c uint32_t mode; mode 193 drivers/rtc/rtc-st-lpc.c ret = of_property_read_u32(np, "st,lpc-mode", &mode); mode 200 drivers/rtc/rtc-st-lpc.c if (mode != ST_LPC_MODE_RTC) mode 281 drivers/rtc/sysfs.c umode_t mode = attr->mode; mode 285 drivers/rtc/sysfs.c mode = 0; mode 288 drivers/rtc/sysfs.c mode = 0; mode 291 drivers/rtc/sysfs.c mode = 0; mode 294 drivers/rtc/sysfs.c return mode; mode 1101 drivers/s390/block/dasd.c umode_t mode; mode 1108 drivers/s390/block/dasd.c mode = (S_IRUSR | S_IWUSR | S_IFREG); mode 1109 drivers/s390/block/dasd.c pde = debugfs_create_file("statistics", mode, base_dentry, mode 1219 drivers/s390/block/dasd.c umode_t mode; mode 1224 drivers/s390/block/dasd.c mode = S_IRUSR | S_IFREG; mode 1225 drivers/s390/block/dasd.c pde = debugfs_create_file("host_access_list", mode, base_dentry, mode 3304 drivers/s390/block/dasd.c static int dasd_open(struct block_device *bdev, fmode_t mode) mode 3339 drivers/s390/block/dasd.c if ((mode & FMODE_WRITE) && mode 3357 drivers/s390/block/dasd.c static void dasd_release(struct gendisk *disk, fmode_t mode) mode 354 drivers/s390/block/dasd_eckd.c data->attributes.mode = 0x3; /* ECKD */ mode 4289 drivers/s390/block/dasd_eckd.c dedata->attributes.mode = 0x3; /* ECKD */ mode 162 drivers/s390/block/dasd_eckd.h unsigned char mode:2; /* Architecture mode */ mode 489 drivers/s390/block/dasd_fba.c if (private->rdc_data.mode.bits.data_chain == 0) { mode 506 drivers/s390/block/dasd_fba.c if (private->rdc_data.mode.bits.data_chain != 0) { mode 523 drivers/s390/block/dasd_fba.c if (private->rdc_data.mode.bits.data_chain == 0) { mode 591 drivers/s390/block/dasd_fba.c if (private->rdc_data.mode.bits.data_chain != 0) mode 597 drivers/s390/block/dasd_fba.c if (private->rdc_data.mode.bits.data_chain == 0) mode 52 drivers/s390/block/dasd_fba.h } __attribute__ ((packed)) mode; mode 576 drivers/s390/block/dasd_ioctl.c int dasd_ioctl(struct block_device *bdev, fmode_t mode, mode 32 drivers/s390/block/dcssblk.c static int dcssblk_open(struct block_device *bdev, fmode_t mode); mode 33 drivers/s390/block/dcssblk.c static void dcssblk_release(struct gendisk *disk, fmode_t mode); mode 809 drivers/s390/block/dcssblk.c dcssblk_open(struct block_device *bdev, fmode_t mode) mode 827 drivers/s390/block/dcssblk.c dcssblk_release(struct gendisk *disk, fmode_t mode) mode 49 drivers/s390/char/hmcdrv_dev.c umode_t mode; /* mode of device node (unused, zero) */ mode 93 drivers/s390/char/hmcdrv_dev.c static char *hmcdrv_dev_name(struct device *dev, umode_t *mode) mode 103 drivers/s390/char/hmcdrv_dev.c if (mode) mode 104 drivers/s390/char/hmcdrv_dev.c *mode = hmcdrv_dev.mode; mode 322 drivers/s390/char/hmcdrv_dev.c hmcdrv_dev.mode = 0; /* "unset" */ mode 346 drivers/s390/char/hmcdrv_dev.c hmcdrv_dev.dev.mode = 0; /* finally produces 0600 */ mode 144 drivers/s390/char/sclp_config.c .mode = S_IWUSR, mode 517 drivers/s390/char/sclp_sd.c sd_file->data_attr.attr.mode = 0444; mode 1334 drivers/s390/char/tty3270.c tty3270_erase_line(struct tty3270 *tp, int mode) mode 1341 drivers/s390/char/tty3270.c if (mode == 0) mode 1343 drivers/s390/char/tty3270.c else if (mode == 1) { mode 1352 drivers/s390/char/tty3270.c } else if (mode == 2) mode 1364 drivers/s390/char/tty3270.c tty3270_erase_display(struct tty3270 *tp, int mode) mode 1368 drivers/s390/char/tty3270.c if (mode == 0) { mode 1374 drivers/s390/char/tty3270.c } else if (mode == 1) { mode 1380 drivers/s390/char/tty3270.c } else if (mode == 2) { mode 150 drivers/s390/cio/chp.c .mode = S_IRUSR, mode 204 drivers/s390/cio/chp.c .mode = S_IRUSR, mode 923 drivers/s390/cio/css.c return css_chsc_characteristics.secm ? attr->mode : 0; mode 1335 drivers/s390/crypto/ap_bus.c apinfo.mode = (func >> 26) & 0x07; mode 1497 drivers/s390/crypto/pkey_api.c .mode = 0666, mode 4087 drivers/s390/net/qeth_core_main.c setparms->data.mode = SET_PROMISC_MODE_OFF; mode 4089 drivers/s390/net/qeth_core_main.c card->info.promisc_mode = setparms->data.mode; mode 4095 drivers/s390/net/qeth_core_main.c enum qeth_ipa_promisc_modes mode = enable ? SET_PROMISC_MODE_ON : mode 4101 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(card, 4, "mode:%x", mode); mode 4104 drivers/s390/net/qeth_core_main.c SETADP_DATA_SIZEOF(mode)); mode 4108 drivers/s390/net/qeth_core_main.c cmd->data.setadapterparms.data.mode = mode; mode 534 drivers/s390/net/qeth_core_mpc.h __u32 mode; mode 194 drivers/scsi/3w-9xxx.c .mode = S_IRUGO, mode 122 drivers/scsi/3w-sas.c .mode = S_IRUSR, mode 153 drivers/scsi/3w-sas.c .mode = S_IRUSR, mode 195 drivers/scsi/3w-sas.c .mode = S_IRUGO, mode 529 drivers/scsi/3w-xxxx.c .mode = S_IRUGO, mode 2069 drivers/scsi/53c700.c .mode = S_IRUGO, mode 2695 drivers/scsi/aacraid/aacraid.h void aac_src_access_devreg(struct aac_dev *dev, int mode); mode 567 drivers/scsi/aacraid/linit.c .mode = S_IRUGO, mode 595 drivers/scsi/aacraid/linit.c .mode = 0444, mode 1398 drivers/scsi/aacraid/linit.c .mode = S_IRUGO, mode 1405 drivers/scsi/aacraid/linit.c .mode = S_IRUGO, mode 1412 drivers/scsi/aacraid/linit.c .mode = S_IRUGO, mode 1419 drivers/scsi/aacraid/linit.c .mode = S_IRUGO, mode 1426 drivers/scsi/aacraid/linit.c .mode = S_IRUGO, mode 1433 drivers/scsi/aacraid/linit.c .mode = S_IRUGO, mode 1440 drivers/scsi/aacraid/linit.c .mode = 0444, mode 1447 drivers/scsi/aacraid/linit.c .mode = S_IRUGO, mode 1454 drivers/scsi/aacraid/linit.c .mode = S_IRUGO, mode 1461 drivers/scsi/aacraid/linit.c .mode = S_IRUGO, mode 1468 drivers/scsi/aacraid/linit.c .mode = S_IWUSR|S_IRUGO, mode 42 drivers/scsi/aacraid/src.c int isFastResponse, mode; mode 50 drivers/scsi/aacraid/src.c mode = AAC_INT_MODE_MSI; mode 54 drivers/scsi/aacraid/src.c mode |= AAC_INT_MODE_AIF; mode 56 drivers/scsi/aacraid/src.c mode |= AAC_INT_MODE_SYNC; mode 59 drivers/scsi/aacraid/src.c mode = AAC_INT_MODE_INTX; mode 71 drivers/scsi/aacraid/src.c mode |= AAC_INT_MODE_AIF; mode 73 drivers/scsi/aacraid/src.c mode |= AAC_INT_MODE_SYNC; mode 77 drivers/scsi/aacraid/src.c if (mode & AAC_INT_MODE_SYNC) { mode 119 drivers/scsi/aacraid/src.c mode = 0; mode 123 drivers/scsi/aacraid/src.c if (mode & AAC_INT_MODE_AIF) { mode 137 drivers/scsi/aacraid/src.c mode = 0; mode 140 drivers/scsi/aacraid/src.c if (mode) { mode 163 drivers/scsi/aacraid/src.c mode = 0; mode 1316 drivers/scsi/aacraid/src.c void aac_src_access_devreg(struct aac_dev *dev, int mode) mode 1320 drivers/scsi/aacraid/src.c switch (mode) { mode 2554 drivers/scsi/aic7xxx/aic79xx_core.c u_int mode; mode 2571 drivers/scsi/aic7xxx/aic79xx_core.c mode = AHD_MODE_SCSI; mode 2578 drivers/scsi/aic7xxx/aic79xx_core.c mode = busfreetime == BUSFREE_DFF0 mode 2580 drivers/scsi/aic7xxx/aic79xx_core.c ahd_set_modes(ahd, mode, mode); mode 2586 drivers/scsi/aic7xxx/aic79xx_core.c ahd_name(ahd), scbid, mode); mode 2648 drivers/scsi/aic7xxx/aic79xx_core.c ahd_clear_fifo(ahd, mode); mode 2809 drivers/scsi/aic7xxx/aic79xx_osm.c u8 mode; mode 2813 drivers/scsi/aic7xxx/aic79xx_osm.c mode = ahd_inb(ahd, SBLKCTL); mode 2817 drivers/scsi/aic7xxx/aic79xx_osm.c if (mode & ENAB40) mode 2819 drivers/scsi/aic7xxx/aic79xx_osm.c else if (mode & ENAB20) mode 2514 drivers/scsi/aic7xxx/aic7xxx_osm.c u8 mode; mode 2527 drivers/scsi/aic7xxx/aic7xxx_osm.c mode = ahc_inb(ahc, SBLKCTL); mode 2531 drivers/scsi/aic7xxx/aic7xxx_osm.c if (mode & ENAB40) mode 2533 drivers/scsi/aic7xxx/aic7xxx_osm.c else if (mode & ENAB20) mode 408 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y cur_symbol->info.rinfo->mode = $2; mode 1829 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y if (symbol->info.rinfo->mode == WO) { mode 1846 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y if (symbol->info.rinfo->mode == RO) { mode 75 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.h amode_t mode; mode 32 drivers/scsi/aic94xx/aic94xx_dump.c u32 mode; mode 267 drivers/scsi/aic94xx/aic94xx_dump.c int mode; mode 300 drivers/scsi/aic94xx/aic94xx_dump.c for (mode = 0; mode < 9; mode++) mode 301 drivers/scsi/aic94xx/aic94xx_dump.c PRINT_MREG_16bit(asd_ha, mode, MnSCBPTR, CMnSCBPTR(mode)); mode 304 drivers/scsi/aic94xx/aic94xx_dump.c for (mode = 0; mode < 9; mode++) mode 305 drivers/scsi/aic94xx/aic94xx_dump.c PRINT_MREG_16bit(asd_ha, mode, MnDDBPTR, CMnDDBPTR(mode)); mode 308 drivers/scsi/aic94xx/aic94xx_dump.c for (mode = 0; mode < 8; mode++) mode 309 drivers/scsi/aic94xx/aic94xx_dump.c PRINT_MREG_32bit(asd_ha, mode, MnREQMBX, CMnREQMBX(mode)); mode 310 drivers/scsi/aic94xx/aic94xx_dump.c for (mode = 0; mode < 8; mode++) mode 311 drivers/scsi/aic94xx/aic94xx_dump.c PRINT_MREG_32bit(asd_ha, mode, MnRSPMBX, CMnRSPMBX(mode)); mode 312 drivers/scsi/aic94xx/aic94xx_dump.c for (mode = 0; mode < 8; mode++) mode 313 drivers/scsi/aic94xx/aic94xx_dump.c PRINT_MREG_32bit(asd_ha, mode, MnINT, CMnINT(mode)); mode 314 drivers/scsi/aic94xx/aic94xx_dump.c for (mode = 0; mode < 8; mode++) mode 315 drivers/scsi/aic94xx/aic94xx_dump.c PRINT_MREG_32bit(asd_ha, mode, MnINTEN, CMnINTEN(mode)); mode 318 drivers/scsi/aic94xx/aic94xx_dump.c for (mode = 0; mode < 8; mode++) mode 319 drivers/scsi/aic94xx/aic94xx_dump.c PRINT_MREG_8bit(asd_ha, mode, MnSCRATCHPAGE, mode 320 drivers/scsi/aic94xx/aic94xx_dump.c CMnSCRATCHPAGE(mode)); mode 476 drivers/scsi/aic94xx/aic94xx_dump.c int mode; mode 512 drivers/scsi/aic94xx/aic94xx_dump.c for (mode = 0; mode < 8; mode++) { mode 513 drivers/scsi/aic94xx/aic94xx_dump.c u32 lseq_cio_addr = LmSEQ_PHY_BASE(mode, lseq); mode 517 drivers/scsi/aic94xx/aic94xx_dump.c if (LSEQmCIOREGS[i].mode == MODE_COMMON) mode 522 drivers/scsi/aic94xx/aic94xx_dump.c for (mode = 0; mode < 8; mode++) { mode 523 drivers/scsi/aic94xx/aic94xx_dump.c u32 lseq_cio_addr = LmSEQ_PHY_BASE(mode, lseq); mode 526 drivers/scsi/aic94xx/aic94xx_dump.c asd_printk("Mode %d\n", mode); mode 528 drivers/scsi/aic94xx/aic94xx_dump.c if (!(LSEQmCIOREGS[i].mode & (1 << mode))) mode 588 drivers/scsi/aic94xx/aic94xx_dump.c for (mode = 0; mode < 3; mode++) { mode 589 drivers/scsi/aic94xx/aic94xx_dump.c asd_printk("LSEQ%d MDP 0 MODE %d >>>>\n", lseq, mode); mode 590 drivers/scsi/aic94xx/aic94xx_dump.c moffs = mode * LSEQ_MODE_SCRATCH_SIZE; mode 196 drivers/scsi/arcmsr/arcmsr_attr.c .mode = S_IRUSR , mode 205 drivers/scsi/arcmsr/arcmsr_attr.c .mode = S_IWUSR, mode 214 drivers/scsi/arcmsr/arcmsr_attr.c .mode = S_IWUSR, mode 231 drivers/scsi/arm/acornscsi.c unsigned int mode, addr, len; mode 233 drivers/scsi/arm/acornscsi.c mode = dmac_read(host, DMAC_MODECON); mode 240 drivers/scsi/arm/acornscsi.c mode, addr, (len + 1) & 0xffff, mode 1015 drivers/scsi/arm/acornscsi.c unsigned int address, length, mode; mode 1029 drivers/scsi/arm/acornscsi.c mode = DMAC_WRITE; mode 1031 drivers/scsi/arm/acornscsi.c mode = DMAC_READ; mode 1055 drivers/scsi/arm/acornscsi.c dmac_write(host, DMAC_MODECON, mode); mode 891 drivers/scsi/be2iscsi/be_main.h u8 mode; /* DWORD 4 */ mode 1341 drivers/scsi/be2iscsi/be_mgmt.c AMAP_SET_BITS(struct amap_iscsi_target_context_update_wrb, mode, pwrb, mode 761 drivers/scsi/bfa/bfa_defs.h enum bfa_mode_s mode; mode 779 drivers/scsi/bfa/bfa_defs.h u8 mode; mode 1214 drivers/scsi/bfa/bfa_defs.h u8 mode; /* bfa_diag_dport_test_opmode */ mode 1331 drivers/scsi/bfa/bfa_defs_svc.h enum bfa_mode_s mode; mode 177 drivers/scsi/bfa/bfa_fcpim.h u8 mode; /* IO is passthrough or not */ mode 3483 drivers/scsi/bfa/bfa_ioc.c bfa_ablk_adapter_config(struct bfa_ablk_s *ablk, enum bfa_mode_s mode, mode 3505 drivers/scsi/bfa/bfa_ioc.c m->mode = (u8)mode; mode 3514 drivers/scsi/bfa/bfa_ioc.c bfa_ablk_port_config(struct bfa_ablk_s *ablk, int port, enum bfa_mode_s mode, mode 3537 drivers/scsi/bfa/bfa_ioc.c m->mode = (u8)mode; mode 857 drivers/scsi/bfa/bfa_ioc.h bfa_status_t bfa_ioc_cb_pll_init(void __iomem *rb, enum bfi_asic_mode mode); mode 858 drivers/scsi/bfa/bfa_ioc.h bfa_status_t bfa_ioc_ct_pll_init(void __iomem *rb, enum bfi_asic_mode mode); mode 859 drivers/scsi/bfa/bfa_ioc.h bfa_status_t bfa_ioc_ct2_pll_init(void __iomem *rb, enum bfi_asic_mode mode); mode 942 drivers/scsi/bfa/bfa_ioc.h enum bfa_mode_s mode, int max_pf, int max_vf, mode 945 drivers/scsi/bfa/bfa_ioc.h enum bfa_mode_s mode, int max_pf, int max_vf, mode 341 drivers/scsi/bfa/bfa_ioc_ct.c u32 r32, mode; mode 346 drivers/scsi/bfa/bfa_ioc_ct.c mode = (r32 >> FNC_PERS_FN_SHIFT(bfa_ioc_pcifn(ioc))) & mode 352 drivers/scsi/bfa/bfa_ioc_ct.c if ((!msix && mode) || (msix && !mode)) mode 356 drivers/scsi/bfa/bfa_ioc_ct.c mode = __F0_INTX_STATUS_MSIX; mode 358 drivers/scsi/bfa/bfa_ioc_ct.c mode = __F0_INTX_STATUS_INTA; mode 361 drivers/scsi/bfa/bfa_ioc_ct.c r32 |= (mode << FNC_PERS_FN_SHIFT(bfa_ioc_pcifn(ioc))); mode 582 drivers/scsi/bfa/bfa_ioc_ct.c bfa_ioc_ct_pll_init(void __iomem *rb, enum bfi_asic_mode mode) mode 585 drivers/scsi/bfa/bfa_ioc_ct.c bfa_boolean_t fcmode = (mode == BFI_ASIC_MODE_FC); mode 888 drivers/scsi/bfa/bfa_ioc_ct.c bfa_ioc_ct2_pll_init(void __iomem *rb, enum bfi_asic_mode mode) mode 6127 drivers/scsi/bfa/bfa_svc.c (__dport)->result.mode = (__mode); \ mode 6605 drivers/scsi/bfa/bfa_svc.c bfa_dport_result_start(dport, msg->info.teststart.mode); mode 1291 drivers/scsi/bfa/bfad_bsg.c iocmd->cfg.mode, iocmd->cfg.max_pf, mode 1314 drivers/scsi/bfa/bfad_bsg.c iocmd->instance, iocmd->cfg.mode, mode 425 drivers/scsi/bfa/bfad_debugfs.c umode_t mode; mode 469 drivers/scsi/bfa/bfad_debugfs.c file->mode, mode 716 drivers/scsi/bfa/bfi.h u8 mode; mode 1140 drivers/scsi/bfa/bfi.h u8 mode; /* bfa_diag_dport_test_opmode */ mode 329 drivers/scsi/cxlflash/common.h int cxlflash_afu_sync(struct afu *afu, ctx_hndl_t c, res_hndl_t r, u8 mode); mode 257 drivers/scsi/cxlflash/lunmgt.c if (lli->parent->mode != MODE_NONE) mode 2398 drivers/scsi/cxlflash/main.c int cxlflash_afu_sync(struct afu *afu, ctx_hndl_t ctx, res_hndl_t res, u8 mode) mode 2405 drivers/scsi/cxlflash/main.c __func__, afu, ctx, res, mode); mode 2412 drivers/scsi/cxlflash/main.c rcb.cdb[1] = mode; mode 3081 drivers/scsi/cxlflash/main.c u32 mode = MAX_HWQ_MODE; mode 3085 drivers/scsi/cxlflash/main.c mode = i; mode 3090 drivers/scsi/cxlflash/main.c if (mode >= MAX_HWQ_MODE) { mode 3095 drivers/scsi/cxlflash/main.c afu->hwq_mode = mode; mode 3154 drivers/scsi/cxlflash/main.c static DEVICE_ATTR_RO(mode); mode 3883 drivers/scsi/cxlflash/main.c static char *cxlflash_devnode(struct device *dev, umode_t *mode) mode 566 drivers/scsi/cxlflash/superpipe.c int cxlflash_lun_attach(struct glun_info *gli, enum lun_mode mode, bool locked) mode 573 drivers/scsi/cxlflash/superpipe.c if (gli->mode == MODE_NONE) mode 574 drivers/scsi/cxlflash/superpipe.c gli->mode = mode; mode 575 drivers/scsi/cxlflash/superpipe.c else if (gli->mode != mode) { mode 577 drivers/scsi/cxlflash/superpipe.c __func__, gli->mode, mode); mode 586 drivers/scsi/cxlflash/superpipe.c __func__, rc, gli->mode, gli->users); mode 605 drivers/scsi/cxlflash/superpipe.c WARN_ON(gli->mode == MODE_NONE); mode 607 drivers/scsi/cxlflash/superpipe.c gli->mode = MODE_NONE; mode 653 drivers/scsi/cxlflash/superpipe.c __func__, ctxid, release->rsrc_handle, gli->mode, gli->users); mode 682 drivers/scsi/cxlflash/superpipe.c switch (gli->mode) { mode 1893 drivers/scsi/cxlflash/superpipe.c switch (gli->mode) { mode 42 drivers/scsi/cxlflash/superpipe.h enum lun_mode mode; /* NONE, VIRTUAL, PHYSICAL */ mode 132 drivers/scsi/cxlflash/superpipe.h int cxlflash_lun_attach(struct glun_info *gli, enum lun_mode mode, bool locked); mode 761 drivers/scsi/cxlflash/vlun.c if (unlikely(gli->mode != MODE_VIRTUAL)) { mode 763 drivers/scsi/cxlflash/vlun.c __func__, gli->mode); mode 998 drivers/scsi/cxlflash/vlun.c if (gli->mode == MODE_NONE) { mode 1223 drivers/scsi/cxlflash/vlun.c if (unlikely(gli->mode != MODE_VIRTUAL)) { mode 1226 drivers/scsi/cxlflash/vlun.c __func__, gli->mode); mode 1318 drivers/scsi/cxlflash/vlun.c cxlflash_lun_attach(gli, gli->mode, false); mode 194 drivers/scsi/device_handler/scsi_dh_rdac.c unsigned char mode; mode 216 drivers/scsi/device_handler/scsi_dh_rdac.c static const char *mode[] = { mode 399 drivers/scsi/device_handler/scsi_dh_rdac.c h->mode = RDAC_MODE_IOSHIP; /* LUN in IOSHIP mode */ mode 401 drivers/scsi/device_handler/scsi_dh_rdac.c h->mode = RDAC_MODE_AVT; /* LUN in AVT mode */ mode 403 drivers/scsi/device_handler/scsi_dh_rdac.c h->mode = RDAC_MODE; /* LUN in RDAC mode */ mode 411 drivers/scsi/device_handler/scsi_dh_rdac.c if (h->mode == RDAC_MODE) { mode 622 drivers/scsi/device_handler/scsi_dh_rdac.c switch (h->mode) { mode 755 drivers/scsi/device_handler/scsi_dh_rdac.c RDAC_NAME, h->lun, mode[(int)h->mode], mode 216 drivers/scsi/esas2r/esas2r_main.c { .name = __stringify(_name), .mode = S_IRUSR | S_IWUSR }, \ mode 228 drivers/scsi/esas2r/esas2r_main.c .attr = { .name = "default_nvram", .mode = S_IRUGO }, mode 343 drivers/scsi/fcoe/fcoe.c if (fip->mode == FIP_MODE_VN2VN) { mode 465 drivers/scsi/fcoe/fcoe.c if (fip->mode == FIP_MODE_VN2VN) { mode 2043 drivers/scsi/fcoe/fcoe.c if (ctlr_dev->mode == FIP_CONN_TYPE_VN2VN && mode 2044 drivers/scsi/fcoe/fcoe.c ctlr->mode != FIP_MODE_VN2VN) { mode 2048 drivers/scsi/fcoe/fcoe.c } else if (ctlr->mode != FIP_MODE_FABRIC) { mode 126 drivers/scsi/fcoe/fcoe_ctlr.c if (fip->mode == FIP_MODE_VN2VN) mode 138 drivers/scsi/fcoe/fcoe_ctlr.c void fcoe_ctlr_init(struct fcoe_ctlr *fip, enum fip_mode mode) mode 141 drivers/scsi/fcoe/fcoe_ctlr.c fip->mode = mode; mode 445 drivers/scsi/fcoe/fcoe_ctlr.c if (fip->mode == FIP_MODE_NON_FIP) mode 449 drivers/scsi/fcoe/fcoe_ctlr.c switch (fip->mode) { mode 451 drivers/scsi/fcoe/fcoe_ctlr.c LIBFCOE_FIP_DBG(fip, "invalid mode %d\n", fip->mode); mode 659 drivers/scsi/fcoe/fcoe_ctlr.c } else if (fip->mode == FIP_MODE_VN2VN) { mode 708 drivers/scsi/fcoe/fcoe_ctlr.c if (op == ELS_FLOGI && fip->mode != FIP_MODE_VN2VN) { mode 726 drivers/scsi/fcoe/fcoe_ctlr.c if (!fip->sel_fcf && fip->mode != FIP_MODE_VN2VN) mode 731 drivers/scsi/fcoe/fcoe_ctlr.c if (fip->mode == FIP_MODE_VN2VN) mode 746 drivers/scsi/fcoe/fcoe_ctlr.c if (fip->mode == FIP_MODE_VN2VN) { mode 1248 drivers/scsi/fcoe/fcoe_ctlr.c sub == FIP_SC_REP && fip->mode != FIP_MODE_VN2VN) { mode 1549 drivers/scsi/fcoe/fcoe_ctlr.c if (fip->mode == FIP_MODE_VN2VN) { mode 1577 drivers/scsi/fcoe/fcoe_ctlr.c if (fip->mode == FIP_MODE_VN2VN && op == FIP_OP_VN2VN) mode 1807 drivers/scsi/fcoe/fcoe_ctlr.c if (fip->mode == FIP_MODE_VN2VN) mode 2920 drivers/scsi/fcoe/fcoe_ctlr.c fip->mode == FIP_MODE_VN2VN ? "vn2vn" : "fcf", mode 2964 drivers/scsi/fcoe/fcoe_ctlr.c if (fip->mode == FIP_MODE_VN2VN) mode 3217 drivers/scsi/fcoe/fcoe_ctlr.c fcoe_ctlr_mode_set(lport, fip, fip->mode); mode 3248 drivers/scsi/fcoe/fcoe_ctlr.c switch (ctlr_dev->mode) { mode 3250 drivers/scsi/fcoe/fcoe_ctlr.c ctlr->mode = FIP_MODE_VN2VN; mode 3254 drivers/scsi/fcoe/fcoe_ctlr.c ctlr->mode = FIP_MODE_FABRIC; mode 3260 drivers/scsi/fcoe/fcoe_ctlr.c fcoe_ctlr_mode_set(lport, ctlr, ctlr->mode); mode 56 drivers/scsi/fcoe/fcoe_sysfs.c ((x)->mode) mode 265 drivers/scsi/fcoe/fcoe_sysfs.c name = get_fcoe_ctlr_mode_name(ctlr->mode); mode 277 drivers/scsi/fcoe/fcoe_sysfs.c char mode[FCOE_MAX_MODENAME_LEN + 1]; mode 282 drivers/scsi/fcoe/fcoe_sysfs.c strncpy(mode, buf, count); mode 284 drivers/scsi/fcoe/fcoe_sysfs.c if (mode[count - 1] == '\n') mode 285 drivers/scsi/fcoe/fcoe_sysfs.c mode[count - 1] = '\0'; mode 287 drivers/scsi/fcoe/fcoe_sysfs.c mode[count] = '\0'; mode 300 drivers/scsi/fcoe/fcoe_sysfs.c ctlr->mode = fcoe_parse_mode(mode); mode 301 drivers/scsi/fcoe/fcoe_sysfs.c if (ctlr->mode == FIP_CONN_TYPE_UNKNOWN) { mode 318 drivers/scsi/fcoe/fcoe_sysfs.c static FCOE_DEVICE_ATTR(ctlr, mode, S_IRUGO | S_IWUSR, mode 807 drivers/scsi/fcoe/fcoe_sysfs.c ctlr->mode = FIP_CONN_TYPE_FABRIC; mode 1346 drivers/scsi/fnic/fnic_fcs.c if (fnic->ctlr.mode == FIP_MODE_NON_FIP) mode 1141 drivers/scsi/hptiop.c .mode = S_IRUGO, mode 1149 drivers/scsi/hptiop.c .mode = S_IRUGO, mode 3056 drivers/scsi/ibmvscsi/ibmvfc.c .mode = S_IRUGO, mode 1899 drivers/scsi/ibmvscsi/ibmvscsi.c .mode = S_IRUGO, mode 1919 drivers/scsi/ibmvscsi/ibmvscsi.c .mode = S_IRUGO, mode 1939 drivers/scsi/ibmvscsi/ibmvscsi.c .mode = S_IRUGO, mode 1960 drivers/scsi/ibmvscsi/ibmvscsi.c .mode = S_IRUGO, mode 1981 drivers/scsi/ibmvscsi/ibmvscsi.c .mode = S_IRUGO, mode 2001 drivers/scsi/ibmvscsi/ibmvscsi.c .mode = S_IRUGO, mode 2021 drivers/scsi/ibmvscsi/ibmvscsi.c .mode = S_IRUGO, mode 2035 drivers/scsi/ibmvscsi/ibmvscsi.c .mode = S_IRUGO, mode 39 drivers/scsi/imm.c int mode; /* Transfer mode */ mode 132 drivers/scsi/imm.c dev->mode = simple_strtoul(buffer + 5, NULL, 0); mode 145 drivers/scsi/imm.c seq_printf(m, "Mode : %s\n", IMM_MODE_STRING[dev->mode]); mode 233 drivers/scsi/imm.c unsigned char a, mode; mode 235 drivers/scsi/imm.c switch (tmp->mode) { mode 237 drivers/scsi/imm.c mode = 0x00; mode 240 drivers/scsi/imm.c mode = 0x01; mode 248 drivers/scsi/imm.c w_dtr(base, mode); mode 363 drivers/scsi/imm.c switch (dev->mode) { mode 411 drivers/scsi/imm.c switch (dev->mode) { mode 529 drivers/scsi/imm.c if ((dev->mode == IMM_EPP_8) || mode 530 drivers/scsi/imm.c (dev->mode == IMM_EPP_16) || mode 531 drivers/scsi/imm.c (dev->mode == IMM_EPP_32)) mode 875 drivers/scsi/imm.c if ((dev->mode == IMM_NIBBLE) || (dev->mode == IMM_PS2)) { mode 899 drivers/scsi/imm.c if ((dev->mode == IMM_NIBBLE) || (dev->mode == IMM_PS2)) { mode 1016 drivers/scsi/imm.c old_mode = dev->mode; mode 1020 drivers/scsi/imm.c dev->mode = IMM_EPP_32; mode 1030 drivers/scsi/imm.c loop, IMM_MODE_STRING[dev->mode]); mode 1045 drivers/scsi/imm.c if (dev->mode == IMM_EPP_32) { mode 1046 drivers/scsi/imm.c dev->mode = old_mode; mode 1070 drivers/scsi/imm.c if (dev->mode == IMM_EPP_32) { mode 1071 drivers/scsi/imm.c dev->mode = old_mode; mode 1081 drivers/scsi/imm.c ppb, loop, IMM_MODE_STRING[dev->mode]); mode 1168 drivers/scsi/imm.c dev->mode = IMM_AUTODETECT; mode 1211 drivers/scsi/imm.c dev->mode = IMM_NIBBLE; mode 1214 drivers/scsi/imm.c dev->mode = IMM_PS2; mode 1226 drivers/scsi/imm.c if (dev->mode == IMM_NIBBLE || dev->mode == IMM_PS2) mode 1026 drivers/scsi/initio.c scb->mode = 0; mode 1087 drivers/scsi/initio.c if (!(scb->mode & SCM_RSENS)) { /* not in auto req. sense mode */ mode 1102 drivers/scsi/initio.c scb->mode = SCM_RSENS; mode 353 drivers/scsi/initio.h u8 mode; /*6 */ mode 3477 drivers/scsi/ipr.c .mode = S_IRUGO, mode 3513 drivers/scsi/ipr.c .mode = S_IRUGO, mode 3565 drivers/scsi/ipr.c .mode = S_IRUGO | S_IWUSR, mode 3627 drivers/scsi/ipr.c .mode = S_IWUSR, mode 3702 drivers/scsi/ipr.c .mode = S_IRUGO | S_IWUSR, mode 3743 drivers/scsi/ipr.c .mode = S_IWUSR, mode 3828 drivers/scsi/ipr.c .mode = S_IRUGO | S_IWUSR, mode 4134 drivers/scsi/ipr.c .mode = S_IWUSR, mode 4164 drivers/scsi/ipr.c .mode = S_IRUGO, mode 4220 drivers/scsi/ipr.c .mode = S_IRUGO | S_IWUSR, mode 4469 drivers/scsi/ipr.c .mode = S_IRUSR | S_IWUSR, mode 4533 drivers/scsi/ipr.c .mode = S_IRUSR, mode 4574 drivers/scsi/ipr.c .mode = S_IRUGO, mode 4610 drivers/scsi/ipr.c .mode = S_IRUGO, mode 4645 drivers/scsi/ipr.c .mode = S_IRUGO, mode 4715 drivers/scsi/ipr.c .mode = S_IRUGO | S_IWUSR, mode 736 drivers/scsi/isci/port_config.c enum sci_port_configuration_mode mode; mode 738 drivers/scsi/isci/port_config.c mode = ihost->oem_parameters.controller.mode_type; mode 740 drivers/scsi/isci/port_config.c if (mode == SCIC_PORT_MANUAL_CONFIGURATION_MODE) { mode 71 drivers/scsi/iscsi_boot_sysfs.c .attr = { .name = __stringify(sysfs_name), .mode = 0444 }, \ mode 4480 drivers/scsi/lpfc/lpfc_attr.c .mode = S_IRUSR, mode 6240 drivers/scsi/lpfc/lpfc_attr.c .mode = S_IRUSR | S_IWUSR, mode 6298 drivers/scsi/lpfc/lpfc_attr.c .mode = S_IRUSR | S_IWUSR, mode 1977 drivers/scsi/lpfc/lpfc_bsg.c lpfc_sli4_bsg_set_loopback_mode(struct lpfc_hba *phba, int mode, mode 2011 drivers/scsi/lpfc/lpfc_bsg.c mode); mode 4737 drivers/scsi/lpfc/lpfc_bsg.c uint32_t transmit_length, receive_length, mode; mode 4876 drivers/scsi/lpfc/lpfc_bsg.c mode = bf_get(lpfc_event_log, rdEventLog); mode 4887 drivers/scsi/lpfc/lpfc_bsg.c if (mode == 0) { mode 241 drivers/scsi/lpfc/lpfc_crtn.h void lpfc_reg_fcfi_mrq(struct lpfc_hba *phba, struct lpfcMboxq *mbox, int mode); mode 2239 drivers/scsi/lpfc/lpfc_els.c char *mode; mode 2282 drivers/scsi/lpfc/lpfc_els.c mode = KERN_ERR; mode 2284 drivers/scsi/lpfc/lpfc_els.c mode = KERN_INFO; mode 2287 drivers/scsi/lpfc/lpfc_els.c lpfc_printf_vlog(vport, mode, LOG_ELS, mode 2537 drivers/scsi/lpfc/lpfc_mbox.c lpfc_reg_fcfi_mrq(struct lpfc_hba *phba, struct lpfcMboxq *mbox, int mode) mode 2548 drivers/scsi/lpfc/lpfc_mbox.c if (mode == 0) { mode 5064 drivers/scsi/lpfc/lpfc_sli.c int mode = 3, i; mode 5076 drivers/scsi/lpfc/lpfc_sli.c mode = 2; mode 5090 drivers/scsi/lpfc/lpfc_sli.c rc = lpfc_sli_config_port(phba, mode); mode 5096 drivers/scsi/lpfc/lpfc_sli.c if (rc && mode != 2) mode 5098 drivers/scsi/lpfc/lpfc_sli.c else if (rc && mode == 2) mode 14352 drivers/scsi/lpfc/lpfc_sli.c if (READ_ONCE(eq->mode) == LPFC_EQ_POLL) mode 14406 drivers/scsi/lpfc/lpfc_sli.c __lpfc_sli4_switch_eqmode(struct lpfc_queue *eq, uint8_t mode) mode 14408 drivers/scsi/lpfc/lpfc_sli.c if (mode == eq->mode) mode 14421 drivers/scsi/lpfc/lpfc_sli.c WRITE_ONCE(eq->mode, mode); mode 14437 drivers/scsi/lpfc/lpfc_sli.c mode ? lpfc_sli4_add_to_poll_list(eq) : mode 149 drivers/scsi/lpfc/lpfc_sli4.h uint8_t mode; /* interrupt or polling */ mode 2253 drivers/scsi/megaraid/megaraid_sas.h #define MEGASAS_PERF_MODE_2STR(mode) \ mode 2254 drivers/scsi/megaraid/megaraid_sas.h ((mode) == MR_BALANCED_PERF_MODE ? "Balanced" : \ mode 2255 drivers/scsi/megaraid/megaraid_sas.h (mode) == MR_IOPS_PERF_MODE ? "IOPS" : \ mode 2256 drivers/scsi/megaraid/megaraid_sas.h (mode) == MR_LATENCY_PERF_MODE ? "Latency" : \ mode 7938 drivers/scsi/megaraid/megaraid_sas_base.c static int megasas_mgmt_fasync(int fd, struct file *filep, int mode) mode 7944 drivers/scsi/megaraid/megaraid_sas_base.c rc = fasync_helper(fd, filep, mode, &megasas_async_queue); mode 522 drivers/scsi/mpt3sas/mpt3sas_ctl.c _ctl_fasync(int fd, struct file *filep, int mode) mode 524 drivers/scsi/mpt3sas/mpt3sas_ctl.c return fasync_helper(fd, filep, mode, &async_queue); mode 8247 drivers/scsi/ncr53c8xx.c .attr = { .name = "revision", .mode = S_IRUGO, }, mode 359 drivers/scsi/nsp32.c int mode = FALSE; mode 366 drivers/scsi/nsp32.c data->msgoutbuf[pos] = IDENTIFY(mode, SCpnt->device->lun); pos++; mode 649 drivers/scsi/pcmcia/sym53c500_cs.c .mode = (S_IRUGO | S_IWUSR), mode 233 drivers/scsi/pm8001/pm8001_ctl.c show_sas_spec_support_status(unsigned int mode, char *buf) mode 237 drivers/scsi/pm8001/pm8001_ctl.c if (mode & SAS_1_1) mode 239 drivers/scsi/pm8001/pm8001_ctl.c if (mode & SAS_2_0) mode 256 drivers/scsi/pm8001/pm8001_ctl.c unsigned int mode; mode 262 drivers/scsi/pm8001/pm8001_ctl.c mode = (pm8001_ha->main_cfg_tbl.pm8001_tbl.ctrl_cap_flag & mode 266 drivers/scsi/pm8001/pm8001_ctl.c mode = (pm8001_ha->main_cfg_tbl.pm80xx_tbl.ctrl_cap_flag & mode 268 drivers/scsi/pm8001/pm8001_ctl.c return show_sas_spec_support_status(mode, buf); mode 3869 drivers/scsi/pm8001/pm80xx_hwi.c struct smp_req *psmp_cmd, int mode, int length) mode 3873 drivers/scsi/pm8001/pm80xx_hwi.c if (mode == SMP_DIRECT) { mode 3458 drivers/scsi/pmcraid.c static int pmcraid_chr_fasync(int fd, struct file *filep, int mode) mode 3465 drivers/scsi/pmcraid.c rc = fasync_helper(fd, filep, mode, &pinstance->aen_queue); mode 4040 drivers/scsi/pmcraid.c .mode = S_IRUGO | S_IWUSR, mode 4067 drivers/scsi/pmcraid.c .mode = S_IRUGO, mode 4101 drivers/scsi/pmcraid.c .mode = S_IRUGO, mode 33 drivers/scsi/ppa.c int mode; /* Transfer mode */ mode 129 drivers/scsi/ppa.c dev->mode = x; mode 148 drivers/scsi/ppa.c seq_printf(m, "Mode : %s\n", PPA_MODE_STRING[dev->mode]); mode 288 drivers/scsi/ppa.c switch (dev->mode) { mode 333 drivers/scsi/ppa.c switch (dev->mode) { mode 413 drivers/scsi/ppa.c if ((flag == CONNECT_EPP_MAYBE) && IN_EPP_MODE(dev->mode)) mode 890 drivers/scsi/ppa.c old_mode = dev->mode; mode 894 drivers/scsi/ppa.c dev->mode = PPA_EPP_32; mode 904 drivers/scsi/ppa.c loop, PPA_MODE_STRING[dev->mode]); mode 922 drivers/scsi/ppa.c if (dev->mode == PPA_EPP_32) { mode 923 drivers/scsi/ppa.c dev->mode = old_mode; mode 945 drivers/scsi/ppa.c if (dev->mode == PPA_EPP_32) { mode 946 drivers/scsi/ppa.c dev->mode = old_mode; mode 953 drivers/scsi/ppa.c loop, PPA_MODE_STRING[dev->mode]); mode 1031 drivers/scsi/ppa.c dev->mode = PPA_AUTODETECT; mode 1074 drivers/scsi/ppa.c dev->mode = PPA_NIBBLE; mode 1077 drivers/scsi/ppa.c dev->mode = PPA_PS2; mode 1081 drivers/scsi/ppa.c dev->mode = PPA_PS2; mode 1095 drivers/scsi/ppa.c if (dev->mode == PPA_NIBBLE || dev->mode == PPA_PS2) mode 161 drivers/scsi/qedf/qedf_attr.c .mode = S_IRUSR | S_IWUSR, mode 3152 drivers/scsi/qedf/qedf_main.c static int __qedf_probe(struct pci_dev *pdev, int mode) mode 3172 drivers/scsi/qedf/qedf_main.c if (mode != QEDF_MODE_RECOVERY) { mode 3392 drivers/scsi/qedf/qedf_main.c if (mode != QEDF_MODE_RECOVERY) { mode 3440 drivers/scsi/qedf/qedf_main.c if (mode != QEDF_MODE_RECOVERY) { mode 3464 drivers/scsi/qedf/qedf_main.c if (mode != QEDF_MODE_RECOVERY) { mode 3474 drivers/scsi/qedf/qedf_main.c if (mode != QEDF_MODE_RECOVERY) { mode 3511 drivers/scsi/qedf/qedf_main.c if (mode == QEDF_MODE_RECOVERY) mode 3549 drivers/scsi/qedf/qedf_main.c static void __qedf_remove(struct pci_dev *pdev, int mode) mode 3570 drivers/scsi/qedf/qedf_main.c if (mode != QEDF_MODE_RECOVERY) mode 3574 drivers/scsi/qedf/qedf_main.c if (mode == QEDF_MODE_RECOVERY) mode 3608 drivers/scsi/qedf/qedf_main.c if (mode != QEDF_MODE_RECOVERY) { mode 3621 drivers/scsi/qedf/qedf_main.c if (mode != QEDF_MODE_RECOVERY) { mode 3635 drivers/scsi/qedf/qedf_main.c if (mode != QEDF_MODE_RECOVERY) { mode 3645 drivers/scsi/qedf/qedf_main.c if (mode != QEDF_MODE_RECOVERY) { mode 3661 drivers/scsi/qedf/qedf_main.c if (mode != QEDF_MODE_RECOVERY) mode 2326 drivers/scsi/qedi/qedi_main.c static void __qedi_remove(struct pci_dev *pdev, int mode) mode 2356 drivers/scsi/qedi/qedi_main.c if (mode == QEDI_MODE_NORMAL) mode 2370 drivers/scsi/qedi/qedi_main.c if (mode == QEDI_MODE_NORMAL) { mode 2390 drivers/scsi/qedi/qedi_main.c static int __qedi_probe(struct pci_dev *pdev, int mode) mode 2405 drivers/scsi/qedi/qedi_main.c if (mode != QEDI_MODE_RECOVERY) { mode 2438 drivers/scsi/qedi/qedi_main.c if (mode != QEDI_MODE_RECOVERY) { mode 2524 drivers/scsi/qedi/qedi_main.c if (mode != QEDI_MODE_RECOVERY) { mode 2536 drivers/scsi/qedi/qedi_main.c if (mode != QEDI_MODE_RECOVERY) { mode 2573 drivers/scsi/qedi/qedi_main.c if (mode == QEDI_MODE_NORMAL) { mode 145 drivers/scsi/qla2xxx/qla_attr.c .mode = S_IRUSR | S_IWUSR, mode 260 drivers/scsi/qla2xxx/qla_attr.c .mode = S_IRUSR | S_IWUSR, mode 322 drivers/scsi/qla2xxx/qla_attr.c .mode = S_IRUSR | S_IWUSR, mode 507 drivers/scsi/qla2xxx/qla_attr.c .mode = S_IWUSR, mode 620 drivers/scsi/qla2xxx/qla_attr.c .mode = S_IRUSR | S_IWUSR, mode 657 drivers/scsi/qla2xxx/qla_attr.c .mode = S_IRUSR | S_IWUSR, mode 793 drivers/scsi/qla2xxx/qla_attr.c .mode = S_IWUSR, mode 836 drivers/scsi/qla2xxx/qla_attr.c .mode = S_IWUSR, mode 899 drivers/scsi/qla2xxx/qla_attr.c .mode = S_IRUSR, mode 957 drivers/scsi/qla2xxx/qla_attr.c .mode = S_IRUSR, mode 1703 drivers/scsi/qla2xxx/qla_attr.c int mode = QLA_SET_DATA_RATE_LR; mode 1721 drivers/scsi/qla2xxx/qla_attr.c mode = QLA_SET_DATA_RATE_NOLR; mode 1755 drivers/scsi/qla2xxx/qla_attr.c rval = qla2x00_set_data_rate(vha, mode); mode 632 drivers/scsi/qla2xxx/qla_bsg.c uint16_t *new_config, uint16_t mode) mode 642 drivers/scsi/qla2xxx/qla_bsg.c if (mode == INTERNAL_LOOPBACK) mode 644 drivers/scsi/qla2xxx/qla_bsg.c else if (mode == EXTERNAL_LOOPBACK) mode 1345 drivers/scsi/qla2xxx/qla_bsg.c if (port_param->mode) mode 1359 drivers/scsi/qla2xxx/qla_bsg.c if (!port_param->mode) { mode 181 drivers/scsi/qla2xxx/qla_bsg.h uint16_t mode; mode 916 drivers/scsi/qla2xxx/qla_gbl.h int qla2x00_set_data_rate(scsi_qla_host_t *vha, uint16_t mode); mode 5324 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_set_data_rate(scsi_qla_host_t *vha, uint16_t mode) mode 5334 drivers/scsi/qla2xxx/qla_mbx.c mode); mode 5357 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[1] = mode; mode 296 drivers/scsi/qla2xxx/qla_mr.h uint8_t mode; mode 111 drivers/scsi/qla4xxx/ql4_attr.c .mode = S_IRUSR | S_IWUSR, mode 3358 drivers/scsi/scsi_debug.c u8 mode; mode 3360 drivers/scsi/scsi_debug.c mode = cmd[1] & 0x1f; mode 3361 drivers/scsi/scsi_debug.c switch (mode) { mode 19 drivers/scsi/scsi_sysctl.c .mode = 0644, mode 26 drivers/scsi/scsi_sysctl.c .mode = 0555, mode 33 drivers/scsi/scsi_sysctl.c .mode = 0555, mode 238 drivers/scsi/scsi_sysfs.c show_shost_mode(unsigned int mode, char *buf) mode 242 drivers/scsi/scsi_sysfs.c if (mode & MODE_INITIATOR) mode 245 drivers/scsi/scsi_sysfs.c if (mode & MODE_TARGET) mode 864 drivers/scsi/scsi_sysfs.c .attr = {.name = __stringify(vpd_##_page), .mode = S_IRUGO }, \ mode 889 drivers/scsi/scsi_sysfs.c .mode = S_IRUGO, mode 1193 drivers/scsi/scsi_sysfs.c return attr->mode; mode 783 drivers/scsi/scsi_transport_fc.c i->private_rport_attrs[count].attr.mode = S_IRUGO; \ mode 791 drivers/scsi/scsi_transport_fc.c i->private_rport_attrs[count].attr.mode = S_IRUGO; \ mode 799 drivers/scsi/scsi_transport_fc.c i->private_rport_attrs[count].attr.mode = S_IRUGO; \ mode 1033 drivers/scsi/scsi_transport_fc.c i->private_starget_attrs[count].attr.mode = S_IRUGO; \ mode 1042 drivers/scsi/scsi_transport_fc.c i->private_starget_attrs[count].attr.mode = S_IRUGO; \ mode 1196 drivers/scsi/scsi_transport_fc.c i->private_vport_attrs[count].attr.mode = S_IRUGO; \ mode 1205 drivers/scsi/scsi_transport_fc.c i->private_vport_attrs[count].attr.mode = S_IRUGO; \ mode 1220 drivers/scsi/scsi_transport_fc.c i->private_vport_attrs[count].attr.mode = S_IRUGO; \ mode 1414 drivers/scsi/scsi_transport_fc.c i->private_host_attrs[count].attr.mode = S_IRUGO; \ mode 1422 drivers/scsi/scsi_transport_fc.c i->private_host_attrs[count].attr.mode = S_IRUGO; \ mode 1430 drivers/scsi/scsi_transport_fc.c i->private_host_attrs[count].attr.mode = S_IRUGO; \ mode 1459 drivers/scsi/scsi_transport_fc.c i->private_host_attrs[count].attr.mode = S_IRUGO; \ mode 1686 drivers/scsi/scsi_transport_sas.c i->private_##attrb[count].attr.mode = perm; \ mode 1693 drivers/scsi/scsi_transport_sas.c i->private_##attrb[count].attr.mode = perm; \ mode 1695 drivers/scsi/scsi_transport_sas.c i->private_##attrb[count].attr.mode = ro_perm; \ mode 1445 drivers/scsi/scsi_transport_spi.c rc = sysfs_chmod_file(kobj, attr, attr->mode | S_IWUSR); mode 405 drivers/scsi/sd.c int mode; mode 418 drivers/scsi/sd.c mode = sysfs_match_string(lbp_mode, buf); mode 419 drivers/scsi/sd.c if (mode < 0) mode 422 drivers/scsi/sd.c sd_config_discard(sdkp, mode); mode 450 drivers/scsi/sd.c int mode; mode 455 drivers/scsi/sd.c mode = sysfs_match_string(zeroing_mode, buf); mode 456 drivers/scsi/sd.c if (mode < 0) mode 459 drivers/scsi/sd.c sdkp->zeroing_mode = mode; mode 770 drivers/scsi/sd.c static void sd_config_discard(struct scsi_disk *sdkp, unsigned int mode) mode 781 drivers/scsi/sd.c sdkp->provisioning_mode = mode; mode 783 drivers/scsi/sd.c switch (mode) { mode 1334 drivers/scsi/sd.c static int sd_open(struct block_device *bdev, fmode_t mode) mode 1362 drivers/scsi/sd.c if (sdev->removable && !sdkp->media_present && !(mode & FMODE_NDELAY)) mode 1370 drivers/scsi/sd.c if (sdkp->write_prot && (mode & FMODE_WRITE)) mode 1408 drivers/scsi/sd.c static void sd_release(struct gendisk *disk, fmode_t mode) mode 1462 drivers/scsi/sd.c static int sd_ioctl(struct block_device *bdev, fmode_t mode, mode 1485 drivers/scsi/sd.c (mode & FMODE_NDELAY) != 0); mode 1503 drivers/scsi/sd.c error = scsi_cmd_blk_ioctl(bdev, mode, cmd, p); mode 1694 drivers/scsi/sd.c static int sd_compat_ioctl(struct block_device *bdev, fmode_t mode, mode 1708 drivers/scsi/sd.c (mode & FMODE_NDELAY) != 0); mode 1209 drivers/scsi/sg.c sg_fasync(int fd, struct file *filp, int mode) mode 1217 drivers/scsi/sg.c "sg_fasync: mode=%d\n", mode)); mode 1219 drivers/scsi/sg.c return fasync_helper(fd, filp, mode, &sfp->async_qp); mode 233 drivers/scsi/smartpqi/smartpqi_init.c enum pqi_ctrl_mode mode) mode 235 drivers/scsi/smartpqi/smartpqi_init.c sis_write_driver_scratch(ctrl_info, mode); mode 524 drivers/scsi/sr.c static int sr_block_open(struct block_device *bdev, fmode_t mode) mode 539 drivers/scsi/sr.c ret = cdrom_open(&cd->cdi, bdev, mode); mode 550 drivers/scsi/sr.c static void sr_block_release(struct gendisk *disk, fmode_t mode) mode 554 drivers/scsi/sr.c cdrom_release(&cd->cdi, mode); mode 559 drivers/scsi/sr.c static int sr_block_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd, mode 570 drivers/scsi/sr.c (mode & FMODE_NDELAY) != 0); mode 587 drivers/scsi/sr.c ret = cdrom_ioctl(&cd->cdi, bdev, mode, cmd, arg); mode 1048 drivers/scsi/st.c int mode = TAPE_MODE(inode); mode 1052 drivers/scsi/st.c if (mode != STp->current_mode) { mode 1054 drivers/scsi/st.c STp->current_mode, mode); mode 1056 drivers/scsi/st.c STp->current_mode = mode; mode 4171 drivers/scsi/st.c static int create_one_cdev(struct scsi_tape *tape, int mode, int rew) mode 4177 drivers/scsi/st.c struct st_modedef *STm = &(tape->modes[mode]); mode 4181 drivers/scsi/st.c cdev_devno = MKDEV(SCSI_TAPE_MAJOR, TAPE_MINOR(dev_num, mode, rew)); mode 4196 drivers/scsi/st.c rew ? "non" : "auto", mode); mode 4201 drivers/scsi/st.c i = mode << (4 - ST_NBR_MODE_BITS); mode 4206 drivers/scsi/st.c cdev_devno, &tape->modes[mode], "%s", name); mode 4226 drivers/scsi/st.c int mode, error; mode 4227 drivers/scsi/st.c for (mode = 0; mode < ST_NBR_MODES; ++mode) { mode 4228 drivers/scsi/st.c error = create_one_cdev(tape, mode, 0); mode 4231 drivers/scsi/st.c error = create_one_cdev(tape, mode, 1); mode 4242 drivers/scsi/st.c int mode, rew; mode 4244 drivers/scsi/st.c for (mode = 0; mode < ST_NBR_MODES; mode++) { mode 4245 drivers/scsi/st.c struct st_modedef *STm = &(tape->modes[mode]); mode 102 drivers/scsi/sym53c8xx_2/sym_hipd.c static char *sym_scsi_bus_mode(int mode) mode 104 drivers/scsi/sym53c8xx_2/sym_hipd.c switch(mode) { mode 66 drivers/scsi/sym53c8xx_2/sym_nvram.c switch (nvram->data.parisc.mode) { mode 658 drivers/scsi/ufs/ufs-qcom.c char mode[BUS_VECTOR_NAME_LEN]; mode 660 drivers/scsi/ufs/ufs-qcom.c ufs_qcom_get_speed_mode(&host->dev_req_params, mode); mode 662 drivers/scsi/ufs/ufs-qcom.c vote = ufs_qcom_get_bus_vote(host, mode); mode 740 drivers/scsi/ufs/ufs-qcom.c host->bus_vote.max_bus_bw.attr.mode = S_IRUGO | S_IWUSR; mode 1467 drivers/scsi/ufs/ufshcd.c hba->clk_scaling.enable_attr.attr.mode = 0644; mode 1808 drivers/scsi/ufs/ufshcd.c hba->clk_gating.delay_attr.attr.mode = 0644; mode 1816 drivers/scsi/ufs/ufshcd.c hba->clk_gating.enable_attr.attr.mode = 0644; mode 3829 drivers/scsi/ufs/ufshcd.c static int ufshcd_uic_change_pwr_mode(struct ufs_hba *hba, u8 mode) mode 3846 drivers/scsi/ufs/ufshcd.c uic_cmd.argument3 = mode; mode 441 drivers/sfi/sfi_core.c tbl_attr->attr.attr.mode = 0400; mode 45 drivers/sh/intc/balancing.c unsigned int i, j, fn, mode; mode 63 drivers/sh/intc/balancing.c mode = MODE_ENABLE_REG; mode 68 drivers/sh/intc/balancing.c return _INTC_MK(fn, mode, mode 45 drivers/sh/intc/handle.c unsigned int fn, mode; mode 57 drivers/sh/intc/handle.c mode = MODE_DUAL_REG; mode 63 drivers/sh/intc/handle.c mode = MODE_ENABLE_REG; mode 67 drivers/sh/intc/handle.c mode = MODE_MASK_REG; mode 74 drivers/sh/intc/handle.c return _INTC_MK(fn, mode, mode 113 drivers/sh/intc/handle.c unsigned int fn, n, mode, bit; mode 125 drivers/sh/intc/handle.c mode = MODE_PCLR_REG; mode 130 drivers/sh/intc/handle.c mode = MODE_PRIO_REG; mode 144 drivers/sh/intc/handle.c return _INTC_MK(fn, mode, mode 179 drivers/sh/intc/handle.c unsigned int i, j, fn, mode; mode 190 drivers/sh/intc/handle.c mode = MODE_ENABLE_REG; mode 195 drivers/sh/intc/handle.c return _INTC_MK(fn, mode, mode 11 drivers/sh/intc/internals.h #define _INTC_MK(fn, mode, addr_e, addr_d, width, shift) \ mode 12 drivers/sh/intc/internals.h ((shift) | ((width) << 5) | ((fn) << 9) | ((mode) << 13) | \ mode 195 drivers/slimbus/qcom-ngd-ctrl.c enum slimbus_mode_enum_type_v01 mode; mode 240 drivers/slimbus/qcom-ngd-ctrl.c mode), mode 469 drivers/slimbus/qcom-ngd-ctrl.c req.mode = SLIMBUS_MODE_SATELLITE_V01; mode 471 drivers/slimbus/qcom-ngd-ctrl.c req.mode = SLIMBUS_MODE_MASTER_V01; mode 74 drivers/soc/bcm/brcmstb/pm/pm-mips.c u8 mode; mode 120 drivers/soc/fsl/qe/ucc.c enum comm_dir mode) mode 132 drivers/soc/fsl/qe/ucc.c if (!((mode == COMM_DIR_RX) || (mode == COMM_DIR_TX))) mode 207 drivers/soc/fsl/qe/ucc.c if (mode == COMM_DIR_RX) mode 489 drivers/soc/fsl/qe/ucc.c static int ucc_get_tdm_rxtx_clk(enum comm_dir mode, u32 tdm_num, mode 497 drivers/soc/fsl/qe/ucc.c if (mode == COMM_DIR_RX) mode 499 drivers/soc/fsl/qe/ucc.c if (mode == COMM_DIR_TX) mode 504 drivers/soc/fsl/qe/ucc.c static u32 ucc_get_tdm_clk_shift(enum comm_dir mode, u32 tdm_num) mode 508 drivers/soc/fsl/qe/ucc.c shift = (mode == COMM_DIR_RX) ? RX_CLK_SHIFT_BASE : TX_CLK_SHIFT_BASE; mode 518 drivers/soc/fsl/qe/ucc.c enum comm_dir mode) mode 531 drivers/soc/fsl/qe/ucc.c if (mode != COMM_DIR_RX && mode != COMM_DIR_TX) mode 534 drivers/soc/fsl/qe/ucc.c clock_bits = ucc_get_tdm_rxtx_clk(mode, tdm_num, clock); mode 538 drivers/soc/fsl/qe/ucc.c shift = ucc_get_tdm_clk_shift(mode, tdm_num); mode 550 drivers/soc/fsl/qe/ucc.c enum comm_dir mode) mode 554 drivers/soc/fsl/qe/ucc.c if (mode == COMM_DIR_RX && clock == QE_RSYNC_PIN) { mode 558 drivers/soc/fsl/qe/ucc.c if (mode == COMM_DIR_TX && clock == QE_TSYNC_PIN) { mode 621 drivers/soc/fsl/qe/ucc.c static u32 ucc_get_tdm_sync_shift(enum comm_dir mode, u32 tdm_num) mode 625 drivers/soc/fsl/qe/ucc.c shift = (mode == COMM_DIR_RX) ? RX_SYNC_SHIFT_BASE : TX_SYNC_SHIFT_BASE; mode 632 drivers/soc/fsl/qe/ucc.c enum comm_dir mode) mode 644 drivers/soc/fsl/qe/ucc.c if (mode != COMM_DIR_RX && mode != COMM_DIR_TX) mode 647 drivers/soc/fsl/qe/ucc.c source = ucc_get_tdm_sync_source(tdm_num, clock, mode); mode 651 drivers/soc/fsl/qe/ucc.c shift = ucc_get_tdm_sync_shift(mode, tdm_num); mode 92 drivers/soc/fsl/qe/ucc_fast.c void ucc_fast_enable(struct ucc_fast_private * uccf, enum comm_dir mode) mode 101 drivers/soc/fsl/qe/ucc_fast.c if (mode & COMM_DIR_TX) { mode 105 drivers/soc/fsl/qe/ucc_fast.c if (mode & COMM_DIR_RX) { mode 113 drivers/soc/fsl/qe/ucc_fast.c void ucc_fast_disable(struct ucc_fast_private * uccf, enum comm_dir mode) mode 122 drivers/soc/fsl/qe/ucc_fast.c if (mode & COMM_DIR_TX) { mode 126 drivers/soc/fsl/qe/ucc_fast.c if (mode & COMM_DIR_RX) { mode 261 drivers/soc/fsl/qe/ucc_fast.c gumr |= uf_info->mode; mode 73 drivers/soc/fsl/qe/ucc_slow.c void ucc_slow_enable(struct ucc_slow_private * uccs, enum comm_dir mode) mode 82 drivers/soc/fsl/qe/ucc_slow.c if (mode & COMM_DIR_TX) { mode 86 drivers/soc/fsl/qe/ucc_slow.c if (mode & COMM_DIR_RX) { mode 94 drivers/soc/fsl/qe/ucc_slow.c void ucc_slow_disable(struct ucc_slow_private * uccs, enum comm_dir mode) mode 103 drivers/soc/fsl/qe/ucc_slow.c if (mode & COMM_DIR_TX) { mode 107 drivers/soc/fsl/qe/ucc_slow.c if (mode & COMM_DIR_RX) { mode 276 drivers/soc/fsl/qe/ucc_slow.c us_info->diag | us_info->mode; mode 299 drivers/soc/qcom/qcom-geni-se.c void geni_se_select_mode(struct geni_se *se, enum geni_se_xfer_mode mode) mode 301 drivers/soc/qcom/qcom-geni-se.c WARN_ON(mode != GENI_SE_FIFO && mode != GENI_SE_DMA); mode 303 drivers/soc/qcom/qcom-geni-se.c switch (mode) { mode 112 drivers/soc/qcom/qcom_gsbi.c u32 mode; mode 173 drivers/soc/qcom/qcom_gsbi.c if (of_property_read_u32(node, "qcom,mode", &gsbi->mode)) { mode 182 drivers/soc/qcom/qcom_gsbi.c gsbi->mode, gsbi->crci); mode 189 drivers/soc/qcom/qcom_gsbi.c writel_relaxed((gsbi->mode << GSBI_PROTOCOL_SHIFT) | gsbi->crci, mode 201 drivers/soc/qcom/qcom_gsbi.c if (gsbi->mode == GSBI_PROT_SPI) mode 150 drivers/soc/qcom/spm.c enum pm_sleep_mode mode) mode 155 drivers/soc/qcom/spm.c start_index = drv->reg_data->start_index[mode]; mode 110 drivers/soc/renesas/rcar-rst.c int __init rcar_rst_read_mode_pins(u32 *mode) mode 120 drivers/soc/renesas/rcar-rst.c *mode = saved_mode; mode 38 drivers/soc/samsung/exynos-pmu.c void exynos_sys_powerdown_conf(enum sys_powerdown mode) mode 49 drivers/soc/samsung/exynos-pmu.c pmu_data->powerdown_conf(mode); mode 53 drivers/soc/samsung/exynos-pmu.c pmu_raw_writel(pmu_data->pmu_config[i].val[mode], mode 58 drivers/soc/samsung/exynos-pmu.c pmu_data->powerdown_conf_extra(mode); mode 114 drivers/soc/samsung/exynos3250-pmu.c static void exynos3250_powerdown_conf_extra(enum sys_powerdown mode) mode 127 drivers/soc/samsung/exynos3250-pmu.c if (mode != SYS_SLEEP) mode 154 drivers/soc/samsung/exynos5250-pmu.c static void exynos5_powerdown_conf(enum sys_powerdown mode) mode 199 drivers/soc/samsung/exynos5420-pmu.c static void exynos5420_powerdown_conf(enum sys_powerdown mode) mode 66 drivers/soc/tegra/fuse/fuse-tegra.c .attr = { .name = "fuse", .mode = S_IRUGO, }, mode 1425 drivers/soc/tegra/pmc.c void tegra_pmc_set_suspend_mode(enum tegra_suspend_mode mode) mode 1427 drivers/soc/tegra/pmc.c if (mode < TEGRA_SUSPEND_NONE || mode >= TEGRA_MAX_SUSPEND_MODE) mode 1430 drivers/soc/tegra/pmc.c pmc->suspend_mode = mode; mode 1433 drivers/soc/tegra/pmc.c void tegra_pmc_enter_suspend_mode(enum tegra_suspend_mode mode) mode 1438 drivers/soc/tegra/pmc.c switch (mode) { mode 75 drivers/soc/ti/knav_dma.c u32 mode; mode 163 drivers/soc/ti/knav_dma.c writel_relaxed(v, &chan->reg_chan->mode); mode 269 drivers/soc/ti/knav_dma.c writel_relaxed(0, &dma->reg_tx_chan[i].mode); mode 177 drivers/spi/atmel-quadspi.c const struct atmel_qspi_mode *mode) mode 179 drivers/spi/atmel-quadspi.c if (op->cmd.buswidth != mode->cmd_buswidth) mode 182 drivers/spi/atmel-quadspi.c if (op->addr.nbytes && op->addr.buswidth != mode->addr_buswidth) mode 185 drivers/spi/atmel-quadspi.c if (op->data.nbytes && op->data.buswidth != mode->data_buswidth) mode 221 drivers/spi/atmel-quadspi.c int mode; mode 227 drivers/spi/atmel-quadspi.c mode = atmel_qspi_find_mode(op); mode 228 drivers/spi/atmel-quadspi.c if (mode < 0) mode 229 drivers/spi/atmel-quadspi.c return mode; mode 230 drivers/spi/atmel-quadspi.c ifr |= atmel_qspi_modes[mode].config; mode 588 drivers/spi/spi-armada-3700.c a3700_spi_mode_set(a3700_spi, spi->mode); mode 366 drivers/spi/spi-at91-usart.c if (spi->mode & SPI_CPOL) mode 371 drivers/spi/spi-at91-usart.c if (spi->mode & SPI_CPHA) mode 376 drivers/spi/spi-at91-usart.c if (spi->mode & SPI_LOOP) mode 393 drivers/spi/spi-at91-usart.c spi->bits_per_word, spi->mode, spi->chip_select, mr); mode 73 drivers/spi/spi-ath79.c int cs_high = (spi->mode & SPI_CS_HIGH) ? is_active : !is_active; mode 379 drivers/spi/spi-atmel.c u32 cpol = (spi->mode & SPI_CPOL) ? SPI_BIT(CPOL) : 0; mode 1185 drivers/spi/spi-atmel.c if (!as->use_cs_gpios && (spi->mode & SPI_CS_HIGH)) { mode 1191 drivers/spi/spi-atmel.c if (spi->mode & SPI_CPOL) mode 1193 drivers/spi/spi-atmel.c if (!(spi->mode & SPI_CPHA)) mode 1236 drivers/spi/spi-atmel.c bits, spi->mode, spi->chip_select, csr); mode 164 drivers/spi/spi-au1550.c unsigned cspol = spi->mode & SPI_CS_HIGH ? 1 : 0; mode 182 drivers/spi/spi-au1550.c if (spi->mode & SPI_CPOL) mode 186 drivers/spi/spi-au1550.c if (spi->mode & SPI_CPHA) mode 191 drivers/spi/spi-au1550.c if (spi->mode & SPI_LSB_FIRST) mode 120 drivers/spi/spi-axi-spi-engine.c if (spi->mode & SPI_CPOL) mode 122 drivers/spi/spi-axi-spi-engine.c if (spi->mode & SPI_CPHA) mode 124 drivers/spi/spi-axi-spi-engine.c if (spi->mode & SPI_3WIRE) mode 149 drivers/spi/spi-bcm-qspi.c u8 mode; mode 541 drivers/spi/spi-bcm-qspi.c spcr |= xp->mode & 3; mode 555 drivers/spi/spi-bcm-qspi.c xp.mode = spi->mode; mode 575 drivers/spi/spi-bcm-qspi.c xp->mode = spi->mode; mode 1170 drivers/spi/spi-bcm-qspi.c parms.mode = SPI_MODE_3; mode 1095 drivers/spi/spi-bcm2835.c if (spi->mode & SPI_3WIRE && tfr->rx_buf) mode 1192 drivers/spi/spi-bcm2835.c if (spi->mode & SPI_CPOL) mode 1194 drivers/spi/spi-bcm2835.c if (spi->mode & SPI_CPHA) mode 1216 drivers/spi/spi-bcm2835.c if (spi->mode & SPI_NO_CS) mode 416 drivers/spi/spi-bcm2835aux.c if (spi->mode & SPI_CPOL) { mode 451 drivers/spi/spi-bcm2835aux.c if (spi->mode & SPI_NO_CS) mode 459 drivers/spi/spi-bcm2835aux.c (spi->mode & SPI_CS_HIGH) ? 0 : 1); mode 149 drivers/spi/spi-bcm63xx-hsspi.c if (spi->mode & SPI_CPOL) mode 231 drivers/spi/spi-bcm63xx-hsspi.c if (spi->mode & SPI_CPHA) mode 243 drivers/spi/spi-bcm63xx-hsspi.c if (spi->mode & SPI_CS_HIGH) mode 250 drivers/spi/spi-bcm63xx-hsspi.c if (spi->mode & SPI_CS_HIGH) mode 195 drivers/spi/spi-bitbang.c cs->txrx_word = bitbang->txrx_word[spi->mode & (SPI_CPOL|SPI_CPHA)]; mode 235 drivers/spi/spi-bitbang.c if (spi->mode & SPI_3WIRE) { mode 319 drivers/spi/spi-bitbang.c enable = (!!(spi->mode & SPI_CS_HIGH) == enable); mode 117 drivers/spi/spi-butterfly.c setsck(spi, spi->mode & SPI_CPOL); mode 214 drivers/spi/spi-cadence.c if (spi->mode & SPI_CPHA) mode 216 drivers/spi/spi-cadence.c if (spi->mode & SPI_CPOL) mode 292 drivers/spi/spi-cadence.c __func__, spi->mode, spi->bits_per_word, mode 37 drivers/spi/spi-cavium.c int mode; mode 44 drivers/spi/spi-cavium.c mode = spi->mode; mode 45 drivers/spi/spi-cavium.c cpha = mode & SPI_CPHA; mode 46 drivers/spi/spi-cavium.c cpol = mode & SPI_CPOL; mode 53 drivers/spi/spi-cavium.c mpi_cfg.s.cshi = (mode & SPI_CS_HIGH) ? 1 : 0; mode 54 drivers/spi/spi-cavium.c mpi_cfg.s.lsbfirst = (mode & SPI_LSB_FIRST) ? 1 : 0; mode 55 drivers/spi/spi-cavium.c mpi_cfg.s.wireor = (mode & SPI_3WIRE) ? 1 : 0; mode 43 drivers/spi/spi-clps711x.c (spi->mode & SPI_CPHA) ? mode 290 drivers/spi/spi-coldfire-qspi.c bool cs_high = spi->mode & SPI_CS_HIGH; mode 306 drivers/spi/spi-coldfire-qspi.c if (spi->mode & SPI_CPHA) mode 308 drivers/spi/spi-coldfire-qspi.c if (spi->mode & SPI_CPOL) mode 327 drivers/spi/spi-coldfire-qspi.c spi->chip_select, spi->mode & SPI_CS_HIGH); mode 228 drivers/spi/spi-davinci.c if (!(spi->mode & SPI_CS_WORD)) mode 319 drivers/spi/spi-davinci.c if (spi->mode & SPI_LSB_FIRST) mode 322 drivers/spi/spi-davinci.c if (spi->mode & SPI_CPOL) mode 325 drivers/spi/spi-davinci.c if (!(spi->mode & SPI_CPHA)) mode 368 drivers/spi/spi-davinci.c if (spi->mode & SPI_READY) { mode 422 drivers/spi/spi-davinci.c if (!(spi->mode & SPI_NO_CS)) { mode 430 drivers/spi/spi-davinci.c if (spi->mode & SPI_READY) mode 433 drivers/spi/spi-davinci.c if (spi->mode & SPI_LOOP) mode 93 drivers/spi/spi-dln2.c u16 mode; mode 286 drivers/spi/spi-dln2.c static int dln2_spi_set_mode(struct dln2_spi *dln2, u8 mode) mode 290 drivers/spi/spi-dln2.c u8 mode; mode 294 drivers/spi/spi-dln2.c tx.mode = mode; mode 609 drivers/spi/spi-dln2.c u8 bpw, u8 mode) mode 614 drivers/spi/spi-dln2.c bus_setup_change = dln2->speed != speed || dln2->mode != mode || mode 632 drivers/spi/spi-dln2.c if (dln2->mode != mode) { mode 633 drivers/spi/spi-dln2.c ret = dln2_spi_set_mode(dln2, mode & 0x3); mode 637 drivers/spi/spi-dln2.c dln2->mode = mode; mode 661 drivers/spi/spi-dln2.c spi->mode); mode 706 drivers/spi/spi-dln2.c dln2->mode = 0xff; mode 818 drivers/spi/spi-dln2.c dln2->mode = 0xff; mode 131 drivers/spi/spi-dw.c bool cs_high = !!(spi->mode & SPI_CS_HIGH); mode 330 drivers/spi/spi-dw.c | ((((spi->mode & SPI_CPOL) ? 1 : 0) << SPI_SCOL_OFFSET) | mode 331 drivers/spi/spi-dw.c (((spi->mode & SPI_CPHA) ? 1 : 0) << SPI_SCPH_OFFSET) | mode 332 drivers/spi/spi-dw.c (((spi->mode & SPI_LOOP) ? 1 : 0) << SPI_SRL_OFFSET)) mode 108 drivers/spi/spi-efm32.c int value = !(spi->mode & SPI_CS_HIGH) == !(is_on == BITBANG_CS_ACTIVE); mode 124 drivers/spi/spi-efm32.c (spi->mode & SPI_CPHA ? REG_CTRL_CLKPHA : 0) | mode 125 drivers/spi/spi-efm32.c (spi->mode & SPI_CPOL ? REG_CTRL_CLKPOL : 0), REG_CTRL); mode 162 drivers/spi/spi-ep93xx.c cr0 |= (spi->mode & (SPI_CPHA | SPI_CPOL)) << SSPCR0_MODE_SHIFT; mode 166 drivers/spi/spi-ep93xx.c spi->mode, div_cpsr, div_scr, dss); mode 858 drivers/spi/spi-fsl-dspi.c if (spi->mode & SPI_CPOL) mode 860 drivers/spi/spi-fsl-dspi.c if (spi->mode & SPI_CPHA) mode 871 drivers/spi/spi-fsl-dspi.c if (spi->mode & SPI_LSB_FIRST) mode 172 drivers/spi/spi-fsl-espi.c if (!(m->spi->mode & SPI_LSB_FIRST) && first->bits_per_word != 8 && mode 404 drivers/spi/spi-fsl-espi.c espi->swab = spi->mode & SPI_LSB_FIRST && trans->bits_per_word > 8; mode 498 drivers/spi/spi-fsl-espi.c if (spi->mode & SPI_CPHA) mode 500 drivers/spi/spi-fsl-espi.c if (spi->mode & SPI_CPOL) mode 502 drivers/spi/spi-fsl-espi.c if (!(spi->mode & SPI_LSB_FIRST)) mode 508 drivers/spi/spi-fsl-espi.c if (spi->mode & SPI_LOOP) mode 95 drivers/spi/spi-fsl-lpspi.c u16 mode; mode 239 drivers/spi/spi-fsl-lpspi.c gpio_direction_output(gpio, spi->mode & SPI_CS_HIGH ? 0 : 1); mode 281 drivers/spi/spi-fsl-lpspi.c temp |= (fsl_lpspi->config.mode & 0x3) << 30; mode 418 drivers/spi/spi-fsl-lpspi.c if (fsl_lpspi->config.mode & SPI_CS_HIGH) mode 444 drivers/spi/spi-fsl-lpspi.c fsl_lpspi->config.mode = spi->mode; mode 94 drivers/spi/spi-fsl-spi.c __be32 __iomem *mode = ®_base->mode; mode 97 drivers/spi/spi-fsl-spi.c if (cs->hw_mode == mpc8xxx_spi_read_reg(mode)) mode 104 drivers/spi/spi-fsl-spi.c mpc8xxx_spi_write_reg(mode, cs->hw_mode & ~SPMODE_ENABLE); mode 110 drivers/spi/spi-fsl-spi.c mpc8xxx_spi_write_reg(mode, cs->hw_mode); mode 118 drivers/spi/spi-fsl-spi.c bool pol = spi->mode & SPI_CS_HIGH; mode 197 drivers/spi/spi-fsl-spi.c !(spi->mode & SPI_LSB_FIRST)); mode 217 drivers/spi/spi-fsl-spi.c if (spi->mode & SPI_LSB_FIRST && mode 463 drivers/spi/spi-fsl-spi.c cs->hw_mode = mpc8xxx_spi_read_reg(®_base->mode); mode 468 drivers/spi/spi-fsl-spi.c if (spi->mode & SPI_CPHA) mode 470 drivers/spi/spi-fsl-spi.c if (spi->mode & SPI_CPOL) mode 472 drivers/spi/spi-fsl-spi.c if (!(spi->mode & SPI_LSB_FIRST)) mode 474 drivers/spi/spi-fsl-spi.c if (spi->mode & SPI_LOOP) mode 656 drivers/spi/spi-fsl-spi.c mpc8xxx_spi_write_reg(®_base->mode, 0); mode 670 drivers/spi/spi-fsl-spi.c mpc8xxx_spi_write_reg(®_base->mode, regval); mode 26 drivers/spi/spi-fsl-spi.h __be32 mode; mode 157 drivers/spi/spi-geni-qcom.c if (!(slv->mode & SPI_CS_HIGH)) mode 173 drivers/spi/spi-geni-qcom.c static void spi_setup_word_len(struct spi_geni_master *mas, u16 mode, mode 177 drivers/spi/spi-geni-qcom.c bool msb_first = (mode & SPI_LSB_FIRST) ? false : true; mode 215 drivers/spi/spi-geni-qcom.c if (spi_slv->mode & SPI_LOOP) mode 218 drivers/spi/spi-geni-qcom.c if (spi_slv->mode & SPI_CPOL) mode 221 drivers/spi/spi-geni-qcom.c if (spi_slv->mode & SPI_CPHA) mode 224 drivers/spi/spi-geni-qcom.c if (spi_slv->mode & SPI_CS_HIGH) mode 240 drivers/spi/spi-geni-qcom.c spi_setup_word_len(mas, spi_slv->mode, spi_slv->bits_per_word); mode 305 drivers/spi/spi-geni-qcom.c u16 mode, struct spi_master *spi) mode 313 drivers/spi/spi-geni-qcom.c spi_setup_word_len(mas, mode, xfer->bits_per_word); mode 392 drivers/spi/spi-geni-qcom.c setup_fifo_xfer(xfer, mas, slv->mode, spi); mode 105 drivers/spi/spi-gpio.c if (spi->mode & SPI_3WIRE) mode 205 drivers/spi/spi-gpio.c gpiod_set_value_cansleep(spi_gpio->sck, spi->mode & SPI_CPOL); mode 212 drivers/spi/spi-gpio.c gpiod_set_value_cansleep(cs, (spi->mode & SPI_CS_HIGH) ? is_active : !is_active); mode 230 drivers/spi/spi-gpio.c !(spi->mode & SPI_CS_HIGH)); mode 258 drivers/spi/spi-gpio.c if (spi->mode & SPI_3WIRE_HIZ) { mode 260 drivers/spi/spi-gpio.c !(spi->mode & SPI_CPOL)); mode 262 drivers/spi/spi-gpio.c !!(spi->mode & SPI_CPOL)); mode 422 drivers/spi/spi-img-spfi.c if (msg->spi->mode & SPI_CPHA) mode 426 drivers/spi/spi-img-spfi.c if (msg->spi->mode & SPI_CPOL) mode 459 drivers/spi/spi-img-spfi.c (spi->mode & SPI_CS_HIGH) ? mode 469 drivers/spi/spi-img-spfi.c int mode = ((spi->mode & SPI_CS_HIGH) ? mode 472 drivers/spi/spi-img-spfi.c ret = gpio_direction_output(spi->cs_gpio, mode); mode 514 drivers/spi/spi-imx.c if (spi->mode & SPI_READY) mode 527 drivers/spi/spi-imx.c if (spi->mode & SPI_LOOP) mode 543 drivers/spi/spi-imx.c if (spi->mode & SPI_CPHA) mode 548 drivers/spi/spi-imx.c if (spi->mode & SPI_CPOL) { mode 556 drivers/spi/spi-imx.c if (spi->mode & SPI_CS_HIGH) mode 714 drivers/spi/spi-imx.c if (spi->mode & SPI_CPHA) mode 716 drivers/spi/spi-imx.c if (spi->mode & SPI_CPOL) mode 718 drivers/spi/spi-imx.c if (spi->mode & SPI_CS_HIGH) mode 731 drivers/spi/spi-imx.c if (spi->mode & SPI_LOOP) mode 815 drivers/spi/spi-imx.c if (spi->mode & SPI_CPHA) mode 817 drivers/spi/spi-imx.c if (spi->mode & SPI_CPOL) mode 819 drivers/spi/spi-imx.c if (spi->mode & SPI_CS_HIGH) mode 890 drivers/spi/spi-imx.c if (spi->mode & SPI_CPHA) mode 892 drivers/spi/spi-imx.c if (spi->mode & SPI_CPOL) mode 1054 drivers/spi/spi-imx.c int dev_is_lowactive = !(spi->mode & SPI_CS_HIGH); mode 1056 drivers/spi/spi-imx.c if (spi->mode & SPI_NO_CS) mode 1518 drivers/spi/spi-imx.c spi->mode, spi->bits_per_word, spi->max_speed_hz); mode 1520 drivers/spi/spi-imx.c if (spi->mode & SPI_NO_CS) mode 1525 drivers/spi/spi-imx.c spi->mode & SPI_CS_HIGH ? 0 : 1); mode 306 drivers/spi/spi-lantiq-ssc.c unsigned int mode) mode 318 drivers/spi/spi-lantiq-ssc.c if (mode & SPI_CPHA) mode 323 drivers/spi/spi-lantiq-ssc.c if (mode & SPI_CPOL) mode 329 drivers/spi/spi-lantiq-ssc.c if (mode & SPI_LSB_FIRST) mode 335 drivers/spi/spi-lantiq-ssc.c if (mode & SPI_LOOP) mode 409 drivers/spi/spi-lantiq-ssc.c if (spidev->mode & SPI_CS_HIGH) mode 423 drivers/spi/spi-lantiq-ssc.c hw_setup_clock_mode(spi, message->spi->mode); mode 759 drivers/spi/spi-lantiq-ssc.c if (!!(spidev->mode & SPI_CS_HIGH) == enable) mode 258 drivers/spi/spi-lm70llp.c pp->info.mode = SPI_3WIRE | SPI_MODE_0; mode 319 drivers/spi/spi-loopback-test.c spi->mode |= loop_req ? SPI_LOOP : 0; mode 320 drivers/spi/spi-loopback-test.c spi->mode |= no_cs ? SPI_NO_CS : 0; mode 155 drivers/spi/spi-lp8841-rtc.c if ((spi->mode & SPI_CS_HIGH) == 0) { mode 160 drivers/spi/spi-lp8841-rtc.c if ((spi->mode & SPI_LSB_FIRST) == 0) { mode 165 drivers/spi/spi-lp8841-rtc.c if ((spi->mode & SPI_3WIRE) == 0) { mode 104 drivers/spi/spi-mem.c u32 mode = mem->spi->mode; mode 111 drivers/spi/spi-mem.c if ((tx && (mode & (SPI_TX_DUAL | SPI_TX_QUAD))) || mode 112 drivers/spi/spi-mem.c (!tx && (mode & (SPI_RX_DUAL | SPI_RX_QUAD)))) mode 118 drivers/spi/spi-mem.c if ((tx && (mode & SPI_TX_QUAD)) || mode 119 drivers/spi/spi-mem.c (!tx && (mode & SPI_RX_QUAD))) mode 125 drivers/spi/spi-mem.c if ((tx && (mode & SPI_TX_OCTAL)) || mode 126 drivers/spi/spi-mem.c (!tx && (mode & SPI_RX_OCTAL))) mode 413 drivers/spi/spi-meson-spicc.c if (spi->mode & SPI_CPOL) mode 418 drivers/spi/spi-meson-spicc.c if (spi->mode & SPI_CPHA) mode 425 drivers/spi/spi-meson-spicc.c if (spi->mode & SPI_CS_HIGH) mode 430 drivers/spi/spi-meson-spicc.c if (spi->mode & SPI_READY) mode 489 drivers/spi/spi-meson-spicc.c !(spi->mode & SPI_CS_HIGH)); mode 104 drivers/spi/spi-mpc512x-psc.c if (spi->mode & SPI_CPHA) mode 109 drivers/spi/spi-mpc512x-psc.c if (spi->mode & SPI_CPOL) mode 114 drivers/spi/spi-mpc512x-psc.c if (spi->mode & SPI_LSB_FIRST) mode 132 drivers/spi/spi-mpc512x-psc.c mps->cs_control(spi, (spi->mode & SPI_CS_HIGH) ? 1 : 0); mode 140 drivers/spi/spi-mpc512x-psc.c mps->cs_control(spi, (spi->mode & SPI_CS_HIGH) ? 0 : 1); mode 386 drivers/spi/spi-mpc512x-psc.c spi->mode & SPI_CS_HIGH ? 0 : 1); mode 82 drivers/spi/spi-mpc52xx-psc.c if (spi->mode & SPI_CPHA) mode 86 drivers/spi/spi-mpc52xx-psc.c if (spi->mode & SPI_CPOL) mode 91 drivers/spi/spi-mpc52xx-psc.c if (spi->mode & SPI_LSB_FIRST) mode 111 drivers/spi/spi-mpc52xx-psc.c mps->cs_control(spi, (spi->mode & SPI_CS_HIGH) ? 1 : 0); mode 119 drivers/spi/spi-mpc52xx-psc.c mps->cs_control(spi, (spi->mode & SPI_CS_HIGH) ? 0 : 1); mode 175 drivers/spi/spi-mpc52xx-psc.c out_8(&psc->mode, 0); mode 177 drivers/spi/spi-mpc52xx-psc.c out_8(&psc->mode, MPC52xx_PSC_MODE_FFULL); mode 330 drivers/spi/spi-mpc52xx-psc.c out_8(&psc->mode, MPC52xx_PSC_MODE_FFULL); mode 164 drivers/spi/spi-mpc52xx.c if (spi->mode & SPI_CPHA) mode 166 drivers/spi/spi-mpc52xx.c if (spi->mode & SPI_CPOL) mode 168 drivers/spi/spi-mpc52xx.c if (spi->mode & SPI_LSB_FIRST) mode 201 drivers/spi/spi-mt65xx.c cpha = spi->mode & SPI_CPHA ? 1 : 0; mode 202 drivers/spi/spi-mt65xx.c cpol = spi->mode & SPI_CPOL ? 1 : 0; mode 215 drivers/spi/spi-mt65xx.c if (spi->mode & SPI_LSB_FIRST) { mode 516 drivers/spi/spi-mt65xx.c gpio_direction_output(spi->cs_gpio, !(spi->mode & SPI_CS_HIGH)); mode 124 drivers/spi/spi-mt7621.c if (spi->mode & SPI_LSB_FIRST) mode 364 drivers/spi/spi-mxic.c if (mem->spi->mode & (SPI_TX_QUAD | SPI_RX_QUAD)) mode 366 drivers/spi/spi-mxic.c else if (mem->spi->mode & (SPI_TX_DUAL | SPI_RX_DUAL)) mode 457 drivers/spi/spi-mxic.c if (((spi->mode & SPI_TX_QUAD) && mode 458 drivers/spi/spi-mxic.c !(spi->mode & SPI_RX_QUAD)) || mode 459 drivers/spi/spi-mxic.c ((spi->mode & SPI_TX_DUAL) && mode 460 drivers/spi/spi-mxic.c !(spi->mode & SPI_RX_DUAL))) mode 469 drivers/spi/spi-mxic.c if (spi->mode & SPI_TX_QUAD) mode 471 drivers/spi/spi-mxic.c else if (spi->mode & SPI_TX_DUAL) mode 474 drivers/spi/spi-mxic.c if (spi->mode & SPI_RX_QUAD) mode 476 drivers/spi/spi-mxic.c else if (spi->mode & SPI_RX_DUAL) mode 95 drivers/spi/spi-mxs.c ((dev->mode & SPI_CPOL) ? BM_SSP_CTRL1_POLARITY : 0) | mode 96 drivers/spi/spi-mxs.c ((dev->mode & SPI_CPHA) ? BM_SSP_CTRL1_PHASE : 0), mode 34 drivers/spi/spi-npcm-pspi.c u16 mode; mode 115 drivers/spi/spi-npcm-pspi.c switch (spi->mode & (SPI_CPOL | SPI_CPHA)) { mode 176 drivers/spi/spi-npcm-pspi.c if (!priv->is_save_param || priv->mode != spi->mode) { mode 178 drivers/spi/spi-npcm-pspi.c priv->mode = spi->mode; mode 48 drivers/spi/spi-oc-tiny.c unsigned int mode; mode 75 drivers/spi/spi-oc-tiny.c (spi->mode & SPI_CS_HIGH) ? is_active : !is_active); mode 90 drivers/spi/spi-oc-tiny.c writel(hw->mode, hw->base + TINY_SPI_CONTROL); mode 102 drivers/spi/spi-oc-tiny.c hw->mode = spi->mode & (SPI_CPOL | SPI_CPHA); mode 194 drivers/spi/spi-omap-uwire.c if (spi->mode & SPI_CPOL) mode 327 drivers/spi/spi-omap-uwire.c if (spi->mode & SPI_CS_HIGH) mode 330 drivers/spi/spi-omap-uwire.c if (spi->mode & SPI_CPOL) mode 333 drivers/spi/spi-omap-uwire.c switch (spi->mode & (SPI_CPOL | SPI_CPHA)) { mode 139 drivers/spi/spi-omap2-mcspi.c u16 mode; mode 246 drivers/spi/spi-omap2-mcspi.c if (spi->mode & SPI_CS_HIGH) mode 944 drivers/spi/spi-omap2-mcspi.c if (!(spi->mode & SPI_CS_HIGH)) mode 963 drivers/spi/spi-omap2-mcspi.c if (spi->mode & SPI_CPOL) mode 967 drivers/spi/spi-omap2-mcspi.c if (spi->mode & SPI_CPHA) mode 974 drivers/spi/spi-omap2-mcspi.c cs->mode = spi->mode; mode 978 drivers/spi/spi-omap2-mcspi.c (spi->mode & SPI_CPHA) ? "trailing" : "leading", mode 979 drivers/spi/spi-omap2-mcspi.c (spi->mode & SPI_CPOL) ? "inverted" : "normal"); mode 1050 drivers/spi/spi-omap2-mcspi.c cs->mode = 0; mode 1064 drivers/spi/spi-omap2-mcspi.c !(spi->mode & SPI_CS_HIGH)); mode 1160 drivers/spi/spi-omap2-mcspi.c if (spi->mode != cs->mode) mode 1166 drivers/spi/spi-omap2-mcspi.c omap2_mcspi_set_cs(spi, spi->mode & SPI_CS_HIGH); mode 1255 drivers/spi/spi-omap2-mcspi.c omap2_mcspi_set_cs(spi, !(spi->mode & SPI_CS_HIGH)); mode 240 drivers/spi/spi-orion.c if (spi->mode & SPI_CPOL) mode 242 drivers/spi/spi-orion.c if (spi->mode & SPI_CPHA) mode 244 drivers/spi/spi-orion.c if (spi->mode & SPI_LSB_FIRST) mode 278 drivers/spi/spi-orion.c speed == 50000000 && spi->mode & SPI_CPOL && mode 279 drivers/spi/spi-orion.c spi->mode & SPI_CPHA) mode 509 drivers/spi/spi-orion.c gpio_direction_output(spi->cs_gpio, !(spi->mode & SPI_CS_HIGH)); mode 290 drivers/spi/spi-pic32-sqi.c if (spi->mode & SPI_LSB_FIRST) mode 346 drivers/spi/spi-pic32-sqi.c int ret = 0, mode; mode 369 drivers/spi/spi-pic32-sqi.c mode = spi->mode & (SPI_MODE_3 | SPI_LSB_FIRST); mode 370 drivers/spi/spi-pic32-sqi.c if (sqi->cur_mode != mode) { mode 373 drivers/spi/spi-pic32-sqi.c if (mode & SPI_CPOL) mode 375 drivers/spi/spi-pic32-sqi.c if (mode & SPI_LSB_FIRST) mode 380 drivers/spi/spi-pic32-sqi.c sqi->cur_mode = mode; mode 106 drivers/spi/spi-pic32.c u32 mode; mode 463 drivers/spi/spi-pic32.c if (pic32s->mode != spi->mode) { mode 466 drivers/spi/spi-pic32.c if (spi->mode & SPI_CPOL) mode 471 drivers/spi/spi-pic32.c if (spi->mode & SPI_CPHA) mode 479 drivers/spi/spi-pic32.c pic32s->mode = spi->mode; mode 598 drivers/spi/spi-pic32.c gpio_direction_output(spi->cs_gpio, !(spi->mode & SPI_CS_HIGH)); mode 606 drivers/spi/spi-pic32.c gpio_direction_output(spi->cs_gpio, !(spi->mode & SPI_CS_HIGH)); mode 784 drivers/spi/spi-pic32.c pic32s->mode = -1; mode 2018 drivers/spi/spi-pl022.c if (spi->mode & SPI_LSB_FIRST) { mode 2039 drivers/spi/spi-pl022.c if (spi->mode & SPI_CPOL) mode 2045 drivers/spi/spi-pl022.c if (spi->mode & SPI_CPHA) mode 2054 drivers/spi/spi-pl022.c if (spi->mode & SPI_LOOP) mode 94 drivers/spi/spi-ppc4xx.c u8 mode; mode 139 drivers/spi/spi-ppc4xx.c u8 mode; mode 197 drivers/spi/spi-ppc4xx.c out_8(&hw->regs->mode, cs->mode); mode 240 drivers/spi/spi-ppc4xx.c cs->mode = SPI_PPC4XX_MODE_SPE; mode 242 drivers/spi/spi-ppc4xx.c switch (spi->mode & (SPI_CPHA | SPI_CPOL)) { mode 244 drivers/spi/spi-ppc4xx.c cs->mode |= SPI_CLK_MODE0; mode 247 drivers/spi/spi-ppc4xx.c cs->mode |= SPI_CLK_MODE1; mode 250 drivers/spi/spi-ppc4xx.c cs->mode |= SPI_CLK_MODE2; mode 253 drivers/spi/spi-ppc4xx.c cs->mode |= SPI_CLK_MODE3; mode 257 drivers/spi/spi-ppc4xx.c if (spi->mode & SPI_LSB_FIRST) mode 258 drivers/spi/spi-ppc4xx.c cs->mode |= SPI_PPC4XX_MODE_RD; mode 277 drivers/spi/spi-ppc4xx.c cspol = spi->mode & SPI_CS_HIGH ? 1 : 0; mode 1206 drivers/spi/spi-pxa2xx.c chip->gpio_cs_inverted = spi->mode & SPI_CS_HIGH; mode 1240 drivers/spi/spi-pxa2xx.c chip->gpio_cs_inverted = spi->mode & SPI_CS_HIGH; mode 1377 drivers/spi/spi-pxa2xx.c chip->cr1 |= (((spi->mode & SPI_CPHA) != 0) ? SSCR1_SPH : 0) mode 1378 drivers/spi/spi-pxa2xx.c | (((spi->mode & SPI_CPOL) != 0) ? SSCR1_SPO : 0); mode 1380 drivers/spi/spi-pxa2xx.c if (spi->mode & SPI_LOOP) mode 286 drivers/spi/spi-qcom-qspi.c mstr_cfg |= message->spi->mode << SPI_MODE_SHFT; mode 149 drivers/spi/spi-qup.c int mode; mode 163 drivers/spi/spi-qup.c static inline bool spi_qup_is_dma_xfer(int mode) mode 165 drivers/spi/spi-qup.c if (mode == QUP_IO_M_MODE_DMOV || mode == QUP_IO_M_MODE_BAM) mode 265 drivers/spi/spi-qup.c bool is_block_mode = controller->mode == QUP_IO_M_MODE_BLOCK; mode 350 drivers/spi/spi-qup.c bool is_block_mode = controller->mode == QUP_IO_M_MODE_BLOCK; mode 543 drivers/spi/spi-qup.c qup->mode = QUP_IO_M_MODE_FIFO; mode 561 drivers/spi/spi-qup.c if (qup->mode == QUP_IO_M_MODE_FIFO) mode 633 drivers/spi/spi-qup.c if (spi_qup_is_dma_xfer(controller->mode)) { mode 650 drivers/spi/spi-qup.c if (!spi_qup_is_dma_xfer(controller->mode)) { mode 666 drivers/spi/spi-qup.c if (spi->mode & SPI_LOOP && xfer->len > controller->in_fifo_sz) { mode 683 drivers/spi/spi-qup.c controller->mode = QUP_IO_M_MODE_FIFO; mode 687 drivers/spi/spi-qup.c controller->mode = QUP_IO_M_MODE_BAM; mode 689 drivers/spi/spi-qup.c controller->mode = QUP_IO_M_MODE_BLOCK; mode 714 drivers/spi/spi-qup.c switch (controller->mode) { mode 763 drivers/spi/spi-qup.c controller->mode); mode 771 drivers/spi/spi-qup.c if (!spi_qup_is_dma_xfer(controller->mode)) mode 776 drivers/spi/spi-qup.c iomode |= (controller->mode << QUP_IO_M_OUTPUT_MODE_MASK_SHIFT); mode 777 drivers/spi/spi-qup.c iomode |= (controller->mode << QUP_IO_M_INPUT_MODE_MASK_SHIFT); mode 783 drivers/spi/spi-qup.c if (spi->mode & SPI_CPOL) mode 792 drivers/spi/spi-qup.c if (spi->mode & SPI_LOOP) mode 797 drivers/spi/spi-qup.c if (spi->mode & SPI_CPHA) mode 806 drivers/spi/spi-qup.c if ((xfer->speed_hz >= SPI_HS_MIN_RATE) && !(spi->mode & SPI_LOOP)) mode 818 drivers/spi/spi-qup.c if (spi_qup_is_dma_xfer(controller->mode)) { mode 836 drivers/spi/spi-qup.c if (spi_qup_is_dma_xfer(controller->mode)) mode 871 drivers/spi/spi-qup.c if (spi_qup_is_dma_xfer(controller->mode)) mode 882 drivers/spi/spi-qup.c if (ret && spi_qup_is_dma_xfer(controller->mode)) mode 470 drivers/spi/spi-rockchip.c cr0 |= (spi->mode & 0x3U) << CR0_SCPH_OFFSET; mode 471 drivers/spi/spi-rockchip.c if (spi->mode & SPI_LSB_FIRST) mode 845 drivers/spi/spi-rspi.c if (spi->mode & SPI_LOOP) { mode 888 drivers/spi/spi-rspi.c u16 current_mode = 0xffff, mode; mode 891 drivers/spi/spi-rspi.c mode = qspi_transfer_mode(xfer); mode 892 drivers/spi/spi-rspi.c if (mode == current_mode) { mode 910 drivers/spi/spi-rspi.c rspi_write16(rspi, rspi->spcmd | mode, RSPI_SPCMD(i)); mode 911 drivers/spi/spi-rspi.c current_mode = mode; mode 934 drivers/spi/spi-rspi.c if (spi->mode & SPI_CPOL) mode 936 drivers/spi/spi-rspi.c if (spi->mode & SPI_CPHA) mode 941 drivers/spi/spi-rspi.c if (spi->mode & SPI_LOOP) mode 946 drivers/spi/spi-rspi.c if (msg->spi->mode & mode 39 drivers/spi/spi-s3c24xx.c unsigned int mode; mode 97 drivers/spi/spi-s3c24xx.c unsigned int cspol = spi->mode & SPI_CS_HIGH ? 1 : 0; mode 129 drivers/spi/spi-s3c24xx.c if (spi->mode != cs->mode) { mode 132 drivers/spi/spi-s3c24xx.c if (spi->mode & SPI_CPHA) mode 135 drivers/spi/spi-s3c24xx.c if (spi->mode & SPI_CPOL) mode 138 drivers/spi/spi-s3c24xx.c cs->mode = spi->mode; mode 262 drivers/spi/spi-s3c24xx.c enum spi_fiq_mode mode; mode 276 drivers/spi/spi-s3c24xx.c mode = FIQ_MODE_TX; mode 278 drivers/spi/spi-s3c24xx.c mode = FIQ_MODE_RX; mode 280 drivers/spi/spi-s3c24xx.c mode = FIQ_MODE_TXRX; mode 290 drivers/spi/spi-s3c24xx.c if (hw->fiq_mode != mode) { mode 293 drivers/spi/spi-s3c24xx.c hw->fiq_mode = mode; mode 295 drivers/spi/spi-s3c24xx.c switch (mode) { mode 319 drivers/spi/spi-s3c24xx.c hw->fiq_mode = mode; mode 656 drivers/spi/spi-s3c64xx.c sdd->cur_mode = spi->mode; mode 130 drivers/spi/spi-sc18is602.c static int sc18is602_setup_transfer(struct sc18is602 *hw, u32 hz, u8 mode) mode 135 drivers/spi/spi-sc18is602.c if (mode & SPI_CPHA) mode 137 drivers/spi/spi-sc18is602.c if (mode & SPI_CPOL) mode 139 drivers/spi/spi-sc18is602.c if (mode & SPI_LSB_FIRST) mode 199 drivers/spi/spi-sc18is602.c status = sc18is602_setup_transfer(hw, t->speed_hz, spi->mode); mode 131 drivers/spi/spi-sh-hspi.c if (spi->mode & SPI_CPHA) mode 133 drivers/spi/spi-sh-hspi.c if (spi->mode & SPI_CPOL) mode 560 drivers/spi/spi-sh-msiof.c (p->native_cs_high == !!(spi->mode & SPI_CS_HIGH))) mode 566 drivers/spi/spi-sh-msiof.c if (spi->mode & SPI_CS_HIGH) mode 576 drivers/spi/spi-sh-msiof.c p->native_cs_high = spi->mode & SPI_CS_HIGH; mode 594 drivers/spi/spi-sh-msiof.c cs_high = !!(spi->mode & SPI_CS_HIGH); mode 596 drivers/spi/spi-sh-msiof.c sh_msiof_spi_set_pin_regs(p, ss, !!(spi->mode & SPI_CPOL), mode 597 drivers/spi/spi-sh-msiof.c !!(spi->mode & SPI_CPHA), mode 598 drivers/spi/spi-sh-msiof.c !!(spi->mode & SPI_3WIRE), mode 599 drivers/spi/spi-sh-msiof.c !!(spi->mode & SPI_LSB_FIRST), cs_high); mode 1103 drivers/spi/spi-sh-msiof.c info->mode = of_property_read_bool(np, "spi-slave") ? MSIOF_SPI_SLAVE mode 1107 drivers/spi/spi-sh-msiof.c if (info->mode == MSIOF_SPI_MASTER) mode 1320 drivers/spi/spi-sh-msiof.c if (info->mode == MSIOF_SPI_SLAVE) mode 364 drivers/spi/spi-sh.c pr_debug("\tmode = %02x\n", spi->mode); mode 137 drivers/spi/spi-sifive.c if (device->mode & SPI_CS_HIGH) mode 148 drivers/spi/spi-sifive.c device->mode & SIFIVE_SPI_SCKMODE_MODE_MASK); mode 158 drivers/spi/spi-sifive.c if (device->mode & SPI_CS_HIGH) mode 171 drivers/spi/spi-sifive.c unsigned int mode; mode 178 drivers/spi/spi-sifive.c mode = max_t(unsigned int, t->rx_nbits, t->tx_nbits); mode 182 drivers/spi/spi-sifive.c switch (mode) { mode 193 drivers/spi/spi-sifive.c if (device->mode & SPI_LSB_FIRST) mode 205 drivers/spi/spi-sifive.c return 1600000 * spi->fifo_depth <= t->speed_hz * mode; mode 470 drivers/spi/spi-sirf.c if (sspi->word_width == 1 && !(spi->mode & SPI_LSB_FIRST)) mode 474 drivers/spi/spi-sirf.c (!(spi->mode & SPI_LSB_FIRST))) mode 741 drivers/spi/spi-sirf.c if (spi->mode & SPI_CS_HIGH) mode 747 drivers/spi/spi-sirf.c if (spi->mode & SPI_CS_HIGH) mode 761 drivers/spi/spi-sirf.c if (spi->mode & SPI_CS_HIGH) mode 767 drivers/spi/spi-sirf.c if (spi->mode & SPI_CS_HIGH) mode 781 drivers/spi/spi-sirf.c spi->mode & SPI_CS_HIGH ? 1 : 0); mode 785 drivers/spi/spi-sirf.c spi->mode & SPI_CS_HIGH ? 0 : 1); mode 799 drivers/spi/spi-sirf.c if (!(spi->mode & SPI_CS_HIGH)) { mode 806 drivers/spi/spi-sirf.c if (!(spi->mode & SPI_LSB_FIRST)) { mode 813 drivers/spi/spi-sirf.c if (spi->mode & SPI_CPOL) { mode 824 drivers/spi/spi-sirf.c if (((spi->mode & SPI_CPOL) && (spi->mode & SPI_CPHA)) || mode 825 drivers/spi/spi-sirf.c (!(spi->mode & SPI_CPOL) && !(spi->mode & SPI_CPHA))) { mode 120 drivers/spi/spi-slave-mt27xx.c cpha = spi->mode & SPI_CPHA ? 1 : 0; mode 121 drivers/spi/spi-slave-mt27xx.c cpol = spi->mode & SPI_CPOL ? 1 : 0; mode 133 drivers/spi/spi-slave-mt27xx.c if (spi->mode & SPI_LSB_FIRST) mode 332 drivers/spi/spi-sprd-adi.c unsigned long mode, void *cmd) mode 721 drivers/spi/spi-sprd.c u32 val, mode = 0; mode 727 drivers/spi/spi-sprd.c ss->hw_mode = sdev->mode; mode 769 drivers/spi/spi-sprd.c mode |= SPRD_SPI_TX_MODE; mode 771 drivers/spi/spi-sprd.c mode |= SPRD_SPI_RX_MODE; mode 773 drivers/spi/spi-sprd.c writel_relaxed(val | mode, ss->base + SPRD_SPI_CTL1); mode 775 drivers/spi/spi-sprd.c ss->trans_mode = mode; mode 205 drivers/spi/spi-st-ssc4.c ret = gpio_direction_output(cs, spi->mode & SPI_CS_HIGH); mode 234 drivers/spi/spi-st-ssc4.c if (spi->mode & SPI_CPOL) mode 239 drivers/spi/spi-st-ssc4.c if (spi->mode & SPI_CPHA) mode 244 drivers/spi/spi-st-ssc4.c if ((spi->mode & SPI_LSB_FIRST) == 0) mode 249 drivers/spi/spi-st-ssc4.c if (spi->mode & SPI_LOOP) mode 991 drivers/spi/spi-stm32.c (spi_dev->mode & SPI_CS_HIGH) ? "low" : "high"); mode 994 drivers/spi/spi-stm32.c !(spi_dev->mode & SPI_CS_HIGH)); mode 1016 drivers/spi/spi-stm32.c if (spi_dev->mode & SPI_CPOL) mode 1021 drivers/spi/spi-stm32.c if (spi_dev->mode & SPI_CPHA) mode 1026 drivers/spi/spi-stm32.c if (spi_dev->mode & SPI_LSB_FIRST) mode 1032 drivers/spi/spi-stm32.c spi_dev->mode & SPI_CPOL, mode 1033 drivers/spi/spi-stm32.c spi_dev->mode & SPI_CPHA, mode 1034 drivers/spi/spi-stm32.c spi_dev->mode & SPI_LSB_FIRST, mode 1035 drivers/spi/spi-stm32.c spi_dev->mode & SPI_CS_HIGH); mode 1439 drivers/spi/spi-stm32.c if (spi_dev->mode & SPI_3WIRE) { /* MISO/MOSI signals shared */ mode 1489 drivers/spi/spi-stm32.c u32 mode; mode 1493 drivers/spi/spi-stm32.c mode = STM32H7_SPI_HALF_DUPLEX; mode 1496 drivers/spi/spi-stm32.c mode = STM32H7_SPI_HALF_DUPLEX; mode 1499 drivers/spi/spi-stm32.c mode = STM32H7_SPI_SIMPLEX_RX; mode 1501 drivers/spi/spi-stm32.c mode = STM32H7_SPI_SIMPLEX_TX; mode 1503 drivers/spi/spi-stm32.c mode = STM32H7_SPI_FULL_DUPLEX; mode 1507 drivers/spi/spi-stm32.c cfg2_setb |= (mode << STM32H7_SPI_CFG2_COMM_SHIFT) & mode 191 drivers/spi/spi-sun4i.c if (spi->mode & SPI_CS_HIGH) mode 241 drivers/spi/spi-sun4i.c if (spi->mode & SPI_CPOL) mode 246 drivers/spi/spi-sun4i.c if (spi->mode & SPI_CPHA) mode 251 drivers/spi/spi-sun4i.c if (spi->mode & SPI_LSB_FIRST) mode 240 drivers/spi/spi-sun6i.c if (spi->mode & SPI_CPOL) mode 245 drivers/spi/spi-sun6i.c if (spi->mode & SPI_CPHA) mode 250 drivers/spi/spi-sun6i.c if (spi->mode & SPI_LSB_FIRST) mode 126 drivers/spi/spi-synquacer.c unsigned int mode; mode 233 drivers/spi/spi-synquacer.c unsigned int speed, mode, bpw, cs, bus_width, transfer_mode; mode 252 drivers/spi/spi-synquacer.c mode = spi->mode; mode 260 drivers/spi/spi-synquacer.c mode == sspi->mode && cs == sspi->cs && mode 277 drivers/spi/spi-synquacer.c if (bpw == 8 && (mode & (SPI_TX_DUAL | SPI_RX_DUAL)) && div < 3) mode 279 drivers/spi/spi-synquacer.c if (bpw == 8 && (mode & (SPI_TX_QUAD | SPI_RX_QUAD)) && div < 6) mode 281 drivers/spi/spi-synquacer.c if (bpw == 16 && (mode & (SPI_TX_QUAD | SPI_RX_QUAD)) && div < 3) mode 284 drivers/spi/spi-synquacer.c if (mode & SPI_CPHA) mode 289 drivers/spi/spi-synquacer.c if (mode & SPI_CPOL) mode 294 drivers/spi/spi-synquacer.c if (mode & SPI_CS_HIGH) mode 299 drivers/spi/spi-synquacer.c if (mode & SPI_LSB_FIRST) mode 345 drivers/spi/spi-synquacer.c sspi->mode = mode; mode 378 drivers/spi/spi-synquacer.c if (bpw == 8 && !(xfer->len % 4) && !(spi->mode & SPI_LSB_FIRST)) mode 794 drivers/spi/spi-tegra114.c req_mode = spi->mode & 0x3; mode 804 drivers/spi/spi-tegra114.c if (spi->mode & SPI_LSB_FIRST) mode 809 drivers/spi/spi-tegra114.c if (spi->mode & SPI_3WIRE) mode 831 drivers/spi/spi-tegra114.c if (spi->mode & SPI_CS_HIGH) mode 946 drivers/spi/spi-tegra114.c spi->mode & SPI_CPOL ? "" : "~", mode 947 drivers/spi/spi-tegra114.c spi->mode & SPI_CPHA ? "" : "~", mode 975 drivers/spi/spi-tegra114.c if (spi->mode & SPI_CS_HIGH) mode 1001 drivers/spi/spi-tegra114.c int cs_val = (spi->mode & SPI_CS_HIGH) ? 0 : 1; mode 276 drivers/spi/spi-tegra20-sflash.c if (spi->mode & SPI_CPHA) mode 279 drivers/spi/spi-tegra20-sflash.c if (spi->mode & SPI_CPOL) mode 753 drivers/spi/spi-tegra20-slink.c spi->mode & SPI_CPOL ? "" : "~", mode 754 drivers/spi/spi-tegra20-slink.c spi->mode & SPI_CPHA ? "" : "~", mode 765 drivers/spi/spi-tegra20-slink.c if (spi->mode & SPI_CS_HIGH) mode 792 drivers/spi/spi-tegra20-slink.c if (spi->mode & SPI_CPHA) mode 795 drivers/spi/spi-tegra20-slink.c if (spi->mode & SPI_CPOL) mode 595 drivers/spi/spi-ti-qspi.c if (spi->mode & SPI_CPHA) mode 597 drivers/spi/spi-ti-qspi.c if (spi->mode & SPI_CPOL) mode 599 drivers/spi/spi-ti-qspi.c if (spi->mode & SPI_CS_HIGH) mode 425 drivers/spi/spi-topcliff-pch.c if (!(spi->mode & SPI_LSB_FIRST)) mode 427 drivers/spi/spi-topcliff-pch.c if (spi->mode & SPI_CPOL) mode 429 drivers/spi/spi-topcliff-pch.c if (spi->mode & SPI_CPHA) mode 98 drivers/spi/spi-txx9.c int val = (spi->mode & SPI_CS_HIGH) ? on : !on; mode 123 drivers/spi/spi-txx9.c !(spi->mode & SPI_CS_HIGH))) { mode 172 drivers/spi/spi-txx9.c | ((spi->mode & SPI_CPOL) ? TXx9_SPCR0_SPOL : 0) mode 173 drivers/spi/spi-txx9.c | ((spi->mode & SPI_CPHA) ? TXx9_SPCR0_SPHA : 0) mode 38 drivers/spi/spi-uniphier.c u16 mode; mode 133 drivers/spi/spi-uniphier.c switch (spi->mode & (SPI_CPOL | SPI_CPHA)) { mode 156 drivers/spi/spi-uniphier.c if (!(spi->mode & SPI_CS_HIGH)) mode 163 drivers/spi/spi-uniphier.c if (spi->mode & SPI_LSB_FIRST) mode 216 drivers/spi/spi-uniphier.c if (!priv->is_save_param || priv->mode != spi->mode) { mode 218 drivers/spi/spi-uniphier.c priv->mode = spi->mode; mode 92 drivers/spi/spi-xcomm.c if (spi->mode & SPI_CPOL) mode 97 drivers/spi/spi-xcomm.c if (spi->mode & SPI_CPHA) mode 102 drivers/spi/spi-xcomm.c if (spi->mode & SPI_3WIRE) mode 200 drivers/spi/spi-xilinx.c if (spi->mode & SPI_CPHA) mode 202 drivers/spi/spi-xilinx.c if (spi->mode & SPI_CPOL) mode 204 drivers/spi/spi-xilinx.c if (spi->mode & SPI_LSB_FIRST) mode 206 drivers/spi/spi-xilinx.c if (spi->mode & SPI_LOOP) mode 230 drivers/spi/spi-xilinx.c if (spi->mode & SPI_CS_HIGH) mode 156 drivers/spi/spi-xlp.c if (spi->mode & SPI_CPHA) mode 160 drivers/spi/spi-xlp.c if (spi->mode & SPI_CPOL) mode 164 drivers/spi/spi-xlp.c if (!(spi->mode & SPI_CS_HIGH)) mode 168 drivers/spi/spi-xlp.c if (spi->mode & SPI_LSB_FIRST) mode 345 drivers/spi/spi-zynq-qspi.c if (spi->mode & SPI_CPHA) mode 347 drivers/spi/spi-zynq-qspi.c if (spi->mode & SPI_CPOL) mode 173 drivers/spi/spi-zynqmp-gqspi.c enum mode_type mode; mode 474 drivers/spi/spi-zynqmp-gqspi.c if (qspi->mode & SPI_CPHA) mode 476 drivers/spi/spi-zynqmp-gqspi.c if (qspi->mode & SPI_CPOL) mode 627 drivers/spi/spi-zynqmp-gqspi.c if (xqspi->mode == GQSPI_MODE_DMA) { mode 701 drivers/spi/spi-zynqmp-gqspi.c xqspi->mode = GQSPI_MODE_IO; mode 729 drivers/spi/spi-zynqmp-gqspi.c xqspi->mode = GQSPI_MODE_DMA; mode 759 drivers/spi/spi-zynqmp-gqspi.c if (xqspi->mode == GQSPI_MODE_DMA) { mode 765 drivers/spi/spi-zynqmp-gqspi.c xqspi->mode = GQSPI_MODE_IO; mode 816 drivers/spi/spi-zynqmp-gqspi.c if (xqspi->mode == GQSPI_MODE_DMA) mode 858 drivers/spi/spi-zynqmp-gqspi.c if ((xqspi->mode == GQSPI_MODE_IO) && mode 878 drivers/spi/spi-zynqmp-gqspi.c if (xqspi->mode == GQSPI_MODE_DMA) { mode 128 drivers/spi/spi.c .attr = { .name = file, .mode = 0444 }, \ mode 139 drivers/spi/spi.c .attr = { .name = file, .mode = 0444 }, \ mode 650 drivers/spi/spi.c proxy->mode = chip->mode; mode 778 drivers/spi/spi.c if (spi->mode & SPI_CS_HIGH) mode 789 drivers/spi/spi.c if (!(spi->mode & SPI_NO_CS)) { mode 1707 drivers/spi/spi.c spi->mode |= SPI_CPHA; mode 1709 drivers/spi/spi.c spi->mode |= SPI_CPOL; mode 1711 drivers/spi/spi.c spi->mode |= SPI_3WIRE; mode 1713 drivers/spi/spi.c spi->mode |= SPI_LSB_FIRST; mode 1715 drivers/spi/spi.c spi->mode |= SPI_CS_HIGH; mode 1723 drivers/spi/spi.c spi->mode |= SPI_TX_DUAL; mode 1726 drivers/spi/spi.c spi->mode |= SPI_TX_QUAD; mode 1729 drivers/spi/spi.c spi->mode |= SPI_TX_OCTAL; mode 1744 drivers/spi/spi.c spi->mode |= SPI_RX_DUAL; mode 1747 drivers/spi/spi.c spi->mode |= SPI_RX_QUAD; mode 1750 drivers/spi/spi.c spi->mode |= SPI_RX_OCTAL; mode 1785 drivers/spi/spi.c spi->mode |= SPI_CS_HIGH; mode 1879 drivers/spi/spi.c u32 mode; mode 1903 drivers/spi/spi.c lookup->mode |= SPI_LSB_FIRST; mode 1907 drivers/spi/spi.c lookup->mode |= SPI_CPOL; mode 1911 drivers/spi/spi.c lookup->mode |= SPI_CPHA; mode 1955 drivers/spi/spi.c lookup->mode |= SPI_CPHA; mode 1957 drivers/spi/spi.c lookup->mode |= SPI_CPOL; mode 1959 drivers/spi/spi.c lookup->mode |= SPI_CS_HIGH; mode 2016 drivers/spi/spi.c spi->mode = lookup.mode; mode 3041 drivers/spi/spi.c if (((spi->mode & SPI_TX_DUAL) && (spi->mode & SPI_TX_QUAD)) || mode 3042 drivers/spi/spi.c ((spi->mode & SPI_RX_DUAL) && (spi->mode & SPI_RX_QUAD))) { mode 3049 drivers/spi/spi.c if ((spi->mode & SPI_3WIRE) && (spi->mode & mode 3058 drivers/spi/spi.c bad_bits = spi->mode & ~(spi->controller->mode_bits | SPI_CS_WORD); mode 3071 drivers/spi/spi.c spi->mode &= ~ugly_bits; mode 3102 drivers/spi/spi.c (int) (spi->mode & (SPI_CPOL | SPI_CPHA)), mode 3103 drivers/spi/spi.c (spi->mode & SPI_CS_HIGH) ? "cs_high, " : "", mode 3104 drivers/spi/spi.c (spi->mode & SPI_LSB_FIRST) ? "lsb, " : "", mode 3105 drivers/spi/spi.c (spi->mode & SPI_3WIRE) ? "3wire, " : "", mode 3106 drivers/spi/spi.c (spi->mode & SPI_LOOP) ? "loopback, " : "", mode 3144 drivers/spi/spi.c if ((spi->mode & SPI_CS_WORD) && (!(ctlr->mode_bits & SPI_CS_WORD) || mode 3174 drivers/spi/spi.c (spi->mode & SPI_3WIRE)) { mode 3244 drivers/spi/spi.c !(spi->mode & (SPI_TX_DUAL | SPI_TX_QUAD))) mode 3247 drivers/spi/spi.c !(spi->mode & SPI_TX_QUAD)) mode 3257 drivers/spi/spi.c !(spi->mode & (SPI_RX_DUAL | SPI_RX_QUAD))) mode 3260 drivers/spi/spi.c !(spi->mode & SPI_RX_QUAD)) mode 371 drivers/spi/spidev.c retval = put_user(spi->mode & SPI_MODE_MASK, mode 375 drivers/spi/spidev.c retval = put_user(spi->mode & SPI_MODE_MASK, mode 379 drivers/spi/spidev.c retval = put_user((spi->mode & SPI_LSB_FIRST) ? 1 : 0, mode 398 drivers/spi/spidev.c u32 save = spi->mode; mode 409 drivers/spi/spidev.c tmp |= spi->mode & ~SPI_MODE_MASK; mode 410 drivers/spi/spidev.c spi->mode = (u16)tmp; mode 413 drivers/spi/spidev.c spi->mode = save; mode 421 drivers/spi/spidev.c u32 save = spi->mode; mode 424 drivers/spi/spidev.c spi->mode |= SPI_LSB_FIRST; mode 426 drivers/spi/spidev.c spi->mode &= ~SPI_LSB_FIRST; mode 429 drivers/spi/spidev.c spi->mode = save; mode 43 drivers/ssb/driver_chipcommon.c enum ssb_clkmode mode) mode 54 drivers/ssb/driver_chipcommon.c if (ccdev->id.revision >= 10 && mode == SSB_CLKMODE_SLOW) mode 55 drivers/ssb/driver_chipcommon.c mode = SSB_CLKMODE_DYNAMIC; mode 72 drivers/ssb/driver_chipcommon.c switch (mode) { mode 1183 drivers/ssb/main.c enum ssb_clkmode mode; mode 1191 drivers/ssb/main.c mode = dynamic_pctl ? SSB_CLKMODE_DYNAMIC : SSB_CLKMODE_FAST; mode 1192 drivers/ssb/main.c ssb_chipco_set_clockmode(&bus->chipco, mode); mode 153 drivers/staging/comedi/drivers/addi_apci_3120.c unsigned char mode; mode 357 drivers/staging/comedi/drivers/addi_apci_3120.c unsigned int timer, unsigned int mode) mode 362 drivers/staging/comedi/drivers/addi_apci_3120.c devpriv->timer_mode |= APCI3120_TIMER_MODE(timer, mode); mode 421 drivers/staging/comedi/drivers/addi_apci_3120.c devpriv->mode |= APCI3120_MODE_SCAN_ENA; mode 499 drivers/staging/comedi/drivers/addi_apci_3120.c (devpriv->mode & APCI3120_MODE_EOS_IRQ_ENA)) { mode 508 drivers/staging/comedi/drivers/addi_apci_3120.c devpriv->mode |= APCI3120_MODE_EOS_IRQ_ENA; mode 509 drivers/staging/comedi/drivers/addi_apci_3120.c outb(devpriv->mode, dev->iobase + APCI3120_MODE_REG); mode 544 drivers/staging/comedi/drivers/addi_apci_3120.c devpriv->mode = APCI3120_MODE_TIMER2_CLK_OSC | mode 580 drivers/staging/comedi/drivers/addi_apci_3120.c devpriv->mode |= APCI3120_MODE_EOS_IRQ_ENA; mode 583 drivers/staging/comedi/drivers/addi_apci_3120.c outb(devpriv->mode, dev->iobase + APCI3120_MODE_REG); mode 681 drivers/staging/comedi/drivers/addi_apci_3120.c devpriv->mode = 0; mode 682 drivers/staging/comedi/drivers/addi_apci_3120.c outb(devpriv->mode, dev->iobase + APCI3120_MODE_REG); mode 714 drivers/staging/comedi/drivers/addi_apci_3120.c devpriv->mode = APCI3120_MODE_TIMER2_CLK_OSC | mode 716 drivers/staging/comedi/drivers/addi_apci_3120.c outb(devpriv->mode, dev->iobase + APCI3120_MODE_REG); mode 824 drivers/staging/comedi/drivers/addi_apci_3120.c unsigned int mode; mode 860 drivers/staging/comedi/drivers/addi_apci_3120.c mode = APCI3120_MODE_TIMER2_AS_COUNTER; mode 864 drivers/staging/comedi/drivers/addi_apci_3120.c mode = APCI3120_MODE_TIMER2_AS_TIMER; mode 868 drivers/staging/comedi/drivers/addi_apci_3120.c mode = APCI3120_MODE_TIMER2_AS_TIMER; mode 872 drivers/staging/comedi/drivers/addi_apci_3120.c mode = APCI3120_MODE_TIMER2_AS_WDOG; mode 881 drivers/staging/comedi/drivers/addi_apci_3120.c devpriv->mode &= ~APCI3120_MODE_TIMER2_AS_MASK; mode 882 drivers/staging/comedi/drivers/addi_apci_3120.c devpriv->mode |= mode; mode 883 drivers/staging/comedi/drivers/addi_apci_3120.c outb(devpriv->mode, dev->iobase + APCI3120_MODE_REG); mode 556 drivers/staging/comedi/drivers/adl_pci9118.c static void pci9118_start_pacer(struct comedi_device *dev, int mode) mode 558 drivers/staging/comedi/drivers/adl_pci9118.c if (mode == 1 || mode == 2 || mode == 4) mode 103 drivers/staging/comedi/drivers/adv_pci1723.c unsigned short mode = 0x0000; /* assume output */ mode 111 drivers/staging/comedi/drivers/adv_pci1723.c mode |= PCI1723_DIO_CTRL_LDIO; /* low byte input */ mode 113 drivers/staging/comedi/drivers/adv_pci1723.c mode |= PCI1723_DIO_CTRL_HDIO; /* high byte input */ mode 114 drivers/staging/comedi/drivers/adv_pci1723.c outw(mode, dev->iobase + PCI1723_DIO_CTRL_REG); mode 91 drivers/staging/comedi/drivers/adv_pci1724.c unsigned long mode = (unsigned long)s->private; mode 97 drivers/staging/comedi/drivers/adv_pci1724.c ctrl = PCI1724_DAC_CTRL_GX(chan) | PCI1724_DAC_CTRL_CX(chan) | mode; mode 683 drivers/staging/comedi/drivers/amplc_pci230.c unsigned int mode, u64 ns, mode 690 drivers/staging/comedi/drivers/amplc_pci230.c comedi_8254_set_mode(dev->pacer, ct, mode); mode 284 drivers/staging/comedi/drivers/cb_pcidas64.c static inline u16 adc_mode_bits(unsigned int mode) mode 286 drivers/staging/comedi/drivers/cb_pcidas64.c return (mode & 0xf) << 12; mode 255 drivers/staging/comedi/drivers/comedi_8254.c unsigned int mode) mode 261 drivers/staging/comedi/drivers/comedi_8254.c if (mode > (I8254_MODE5 | I8254_BCD)) mode 266 drivers/staging/comedi/drivers/comedi_8254.c mode; /* mode and BCD|binary */ mode 281 drivers/staging/comedi/drivers/comedi_8254.c unsigned int val, unsigned int mode) mode 287 drivers/staging/comedi/drivers/comedi_8254.c if (mode > (I8254_MODE5 | I8254_BCD)) mode 290 drivers/staging/comedi/drivers/comedi_8254.c comedi_8254_set_mode(i8254, counter, mode); mode 309 drivers/staging/comedi/drivers/comedi_8254.c unsigned int mode; mode 315 drivers/staging/comedi/drivers/comedi_8254.c mode = I8254_MODE2 | I8254_BINARY; mode 317 drivers/staging/comedi/drivers/comedi_8254.c mode = I8254_MODE0 | I8254_BINARY; mode 319 drivers/staging/comedi/drivers/comedi_8254.c comedi_8254_set_mode(i8254, counter1, mode); mode 320 drivers/staging/comedi/drivers/comedi_8254.c comedi_8254_set_mode(i8254, counter2, mode); mode 106 drivers/staging/comedi/drivers/comedi_8254.h unsigned int counter, unsigned int mode); mode 108 drivers/staging/comedi/drivers/comedi_8254.h unsigned int counter, unsigned int val, unsigned int mode); mode 27 drivers/staging/comedi/drivers/comedi_isadma.c set_dma_mode(desc->chan, desc->mode); mode 137 drivers/staging/comedi/drivers/comedi_isadma.c desc->mode = (dma_dir == COMEDI_ISADMA_READ) ? DMA_MODE_READ mode 37 drivers/staging/comedi/drivers/comedi_isadma.h char mode; mode 138 drivers/staging/comedi/drivers/das6402.c unsigned int mode) mode 140 drivers/staging/comedi/drivers/das6402.c outb(DAS6402_MODE_ENHANCED | mode, dev->iobase + DAS6402_MODE_REG); mode 209 drivers/staging/comedi/drivers/das6402.c unsigned int mode) mode 214 drivers/staging/comedi/drivers/das6402.c mode |= DAS6402_MODE_RANGE(range); mode 216 drivers/staging/comedi/drivers/das6402.c mode |= DAS6402_MODE_SE; mode 218 drivers/staging/comedi/drivers/das6402.c mode |= DAS6402_MODE_UNI; mode 220 drivers/staging/comedi/drivers/das6402.c das6402_set_mode(dev, mode); mode 257 drivers/staging/comedi/drivers/dt2811.c unsigned int mode; mode 272 drivers/staging/comedi/drivers/dt2811.c mode = DT2811_ADCSR_ADMODE(1); mode 283 drivers/staging/comedi/drivers/dt2811.c mode = DT2811_ADCSR_ADMODE(2); mode 293 drivers/staging/comedi/drivers/dt2811.c mode = DT2811_ADCSR_ADMODE(3); mode 296 drivers/staging/comedi/drivers/dt2811.c outb(mode | DT2811_ADCSR_INTENB, dev->iobase + DT2811_ADCSR_REG); mode 121 drivers/staging/comedi/drivers/ni_labpc_common.c enum scan_mode mode, mode 139 drivers/staging/comedi/drivers/ni_labpc_common.c if ((mode == MODE_SINGLE_CHAN || mode == MODE_SINGLE_CHAN_INTERVAL) && mode 150 drivers/staging/comedi/drivers/ni_labpc_common.c enum scan_mode mode, mode 187 drivers/staging/comedi/drivers/ni_labpc_common.c if (mode == MODE_MULT_CHAN_UP) mode 273 drivers/staging/comedi/drivers/ni_labpc_common.c enum scan_mode mode) mode 275 drivers/staging/comedi/drivers/ni_labpc_common.c if (mode == MODE_SINGLE_CHAN || cmd->scan_begin_src == TRIG_FOLLOW) mode 282 drivers/staging/comedi/drivers/ni_labpc_common.c enum scan_mode mode) mode 287 drivers/staging/comedi/drivers/ni_labpc_common.c if (mode == MODE_SINGLE_CHAN && cmd->scan_begin_src == TRIG_TIMER) mode 294 drivers/staging/comedi/drivers/ni_labpc_common.c enum scan_mode mode, unsigned int ns) mode 299 drivers/staging/comedi/drivers/ni_labpc_common.c if (mode == MODE_SINGLE_CHAN && mode 310 drivers/staging/comedi/drivers/ni_labpc_common.c enum scan_mode mode) mode 315 drivers/staging/comedi/drivers/ni_labpc_common.c if (mode == MODE_SINGLE_CHAN && cmd->convert_src == TRIG_TIMER) mode 322 drivers/staging/comedi/drivers/ni_labpc_common.c enum scan_mode mode, unsigned int ns) mode 327 drivers/staging/comedi/drivers/ni_labpc_common.c if (mode == MODE_SINGLE_CHAN && cmd->convert_src == TRIG_TIMER) mode 335 drivers/staging/comedi/drivers/ni_labpc_common.c enum scan_mode mode) mode 338 drivers/staging/comedi/drivers/ni_labpc_common.c unsigned int convert_period = labpc_ai_convert_period(cmd, mode); mode 339 drivers/staging/comedi/drivers/ni_labpc_common.c unsigned int scan_period = labpc_ai_scan_period(cmd, mode); mode 389 drivers/staging/comedi/drivers/ni_labpc_common.c labpc_set_ai_convert_period(cmd, mode, mode 391 drivers/staging/comedi/drivers/ni_labpc_common.c labpc_set_ai_scan_period(cmd, mode, mode 401 drivers/staging/comedi/drivers/ni_labpc_common.c labpc_set_ai_scan_period(cmd, mode, scan_period); mode 412 drivers/staging/comedi/drivers/ni_labpc_common.c labpc_set_ai_convert_period(cmd, mode, convert_period); mode 444 drivers/staging/comedi/drivers/ni_labpc_common.c enum scan_mode mode = labpc_ai_scan_mode(cmd); mode 455 drivers/staging/comedi/drivers/ni_labpc_common.c switch (mode) { mode 504 drivers/staging/comedi/drivers/ni_labpc_common.c enum scan_mode mode; mode 595 drivers/staging/comedi/drivers/ni_labpc_common.c mode = labpc_ai_scan_mode(cmd); mode 596 drivers/staging/comedi/drivers/ni_labpc_common.c labpc_adc_timing(dev, cmd, mode); mode 619 drivers/staging/comedi/drivers/ni_labpc_common.c enum scan_mode mode = labpc_ai_scan_mode(cmd); mode 620 drivers/staging/comedi/drivers/ni_labpc_common.c unsigned int chanspec = (mode == MODE_MULT_CHAN_UP) ? mode 672 drivers/staging/comedi/drivers/ni_labpc_common.c labpc_ai_set_chan_and_gain(dev, mode, chan, range, aref); mode 674 drivers/staging/comedi/drivers/ni_labpc_common.c labpc_setup_cmd6_reg(dev, s, mode, xfer, range, aref, mode 678 drivers/staging/comedi/drivers/ni_labpc_common.c if (mode == MODE_MULT_CHAN_UP || mode == MODE_MULT_CHAN_DOWN) { mode 706 drivers/staging/comedi/drivers/ni_labpc_common.c if (labpc_ai_convert_period(cmd, mode)) mode 710 drivers/staging/comedi/drivers/ni_labpc_common.c if (labpc_ai_scan_period(cmd, mode)) mode 735 drivers/staging/comedi/drivers/ni_labpc_common.c if (!labpc_use_continuous_mode(cmd, mode)) { mode 449 drivers/staging/comedi/drivers/ni_tio.c unsigned int mode; mode 469 drivers/staging/comedi/drivers/ni_tio.c mode = ni_tio_get_soft_copy(counter, reg); mode 470 drivers/staging/comedi/drivers/ni_tio.c switch (mode & GI_CNT_MODE_MASK) { mode 498 drivers/staging/comedi/drivers/ni_tio.c static int ni_tio_set_counter_mode(struct ni_gpct *counter, unsigned int mode) mode 513 drivers/staging/comedi/drivers/ni_tio.c mode_reg_values = mode & mode_reg_direct_mask; mode 514 drivers/staging/comedi/drivers/ni_tio.c switch (mode & NI_GPCT_RELOAD_SOURCE_MASK) { mode 534 drivers/staging/comedi/drivers/ni_tio.c bits |= GI_CNT_MODE(mode >> NI_GPCT_COUNTING_MODE_SHIFT); mode 535 drivers/staging/comedi/drivers/ni_tio.c bits |= GI_INDEX_PHASE((mode >> NI_GPCT_INDEX_PHASE_BITSHIFT)); mode 536 drivers/staging/comedi/drivers/ni_tio.c if (mode & NI_GPCT_INDEX_ENABLE_BIT) mode 545 drivers/staging/comedi/drivers/ni_tio.c GI_CNT_DIR(mode >> NI_GPCT_COUNTING_DIRECTION_SHIFT)); mode 547 drivers/staging/comedi/drivers/ni_tio.c if (mode & NI_GPCT_OR_GATE_BIT) mode 549 drivers/staging/comedi/drivers/ni_tio.c if (mode & NI_GPCT_INVERT_OUTPUT_BIT) mode 1345 drivers/staging/comedi/drivers/ni_tio.c unsigned int mode = ni_tio_get_soft_copy( mode 1349 drivers/staging/comedi/drivers/ni_tio.c if ((mode & GI_GATING_MODE_MASK) == GI_GATING_DISABLED) mode 1351 drivers/staging/comedi/drivers/ni_tio.c if (mode & GI_GATE_POL_INVERT) mode 1353 drivers/staging/comedi/drivers/ni_tio.c if ((mode & GI_GATING_MODE_MASK) != GI_LEVEL_GATING) mode 1361 drivers/staging/comedi/drivers/ni_tio.c unsigned int mode = ni_tio_get_soft_copy( mode 1365 drivers/staging/comedi/drivers/ni_tio.c if (!(mode & GI_GATE2_MODE)) mode 1367 drivers/staging/comedi/drivers/ni_tio.c if (mode & GI_GATE2_POL_INVERT) mode 147 drivers/staging/comedi/drivers/pcl711.c static void pcl711_ai_set_mode(struct comedi_device *dev, unsigned int mode) mode 157 drivers/staging/comedi/drivers/pcl711.c if (mode == PCL711_MODE_EXT_IRQ || mode == PCL711_MODE_PACER_IRQ) mode 158 drivers/staging/comedi/drivers/pcl711.c mode |= PCL711_MODE_IRQ(dev->irq); mode 160 drivers/staging/comedi/drivers/pcl711.c outb(mode, dev->iobase + PCL711_MODE_REG); mode 46 drivers/staging/emxx_udc/emxx_udc.c static void _nbu2ss_set_test_mode(struct nbu2ss_udc *, u32 mode); mode 1318 drivers/staging/emxx_udc/emxx_udc.c static void _nbu2ss_set_test_mode(struct nbu2ss_udc *udc, u32 mode) mode 1322 drivers/staging/emxx_udc/emxx_udc.c if (mode > MAX_TEST_MODE_NUM) mode 1325 drivers/staging/emxx_udc/emxx_udc.c dev_info(udc->dev, "SET FEATURE : test mode = %d\n", mode); mode 1329 drivers/staging/emxx_udc/emxx_udc.c data |= mode << TEST_MODE_SHIFT; mode 577 drivers/staging/exfat/exfat.h struct timestamp_t *tp, u8 mode); mode 579 drivers/staging/exfat/exfat.h struct timestamp_t *tp, u8 mode); mode 838 drivers/staging/exfat/exfat.h u8 mode); mode 840 drivers/staging/exfat/exfat.h u8 mode); mode 842 drivers/staging/exfat/exfat.h u8 mode); mode 844 drivers/staging/exfat/exfat.h u8 mode); mode 912 drivers/staging/exfat/exfat.h struct uni_name_t *p_uniname, u8 mode); mode 944 drivers/staging/exfat/exfat.h struct uni_name_t *p_uniname, u8 mode, struct file_id_t *fid); mode 1140 drivers/staging/exfat/exfat_core.c u8 mode) mode 1145 drivers/staging/exfat/exfat_core.c switch (mode) { mode 1165 drivers/staging/exfat/exfat_core.c u8 mode) mode 1170 drivers/staging/exfat/exfat_core.c switch (mode) { mode 1194 drivers/staging/exfat/exfat_core.c u8 mode) mode 1202 drivers/staging/exfat/exfat_core.c switch (mode) { mode 1215 drivers/staging/exfat/exfat_core.c u8 mode) mode 1223 drivers/staging/exfat/exfat_core.c switch (mode) { mode 1702 drivers/staging/exfat/exfat_core.c s32 mode = ES_MODE_STARTED; mode 1764 drivers/staging/exfat/exfat_core.c switch (mode) { mode 1767 drivers/staging/exfat/exfat_core.c mode = ES_MODE_GET_FILE_ENTRY; mode 1773 drivers/staging/exfat/exfat_core.c mode = ES_MODE_GET_STRM_ENTRY; mode 1779 drivers/staging/exfat/exfat_core.c mode = ES_MODE_GET_NAME_ENTRY; mode 1789 drivers/staging/exfat/exfat_core.c mode = ES_MODE_GET_CRITICAL_SEC_ENTRY; mode 2604 drivers/staging/exfat/exfat_core.c struct uni_name_t *p_uniname, u8 mode) mode 2608 drivers/staging/exfat/exfat_core.c if (mode == 0x0) mode 3306 drivers/staging/exfat/exfat_core.c struct uni_name_t *p_uniname, u8 mode, struct file_id_t *fid) mode 3328 drivers/staging/exfat/exfat_core.c ret = fs_func->init_dir_entry(sb, p_dir, dentry, TYPE_FILE | mode, mode 3343 drivers/staging/exfat/exfat_core.c fid->attr = ATTR_ARCHIVE | mode; mode 316 drivers/staging/exfat/exfat_super.c mode_t mode) mode 319 drivers/staging/exfat/exfat_super.c mode &= ~0222; mode 322 drivers/staging/exfat/exfat_super.c return (mode & ~sbi->options.fs_dmask) | S_IFDIR; mode 324 drivers/staging/exfat/exfat_super.c return (mode & ~sbi->options.fs_dmask) | S_IFLNK; mode 326 drivers/staging/exfat/exfat_super.c return (mode & ~sbi->options.fs_fmask) | S_IFREG; mode 644 drivers/staging/exfat/exfat_super.c static int ffsCreateFile(struct inode *inode, char *path, u8 mode, mode 668 drivers/staging/exfat/exfat_super.c ret = create_file(inode, &dir, &uni_name, mode, fid); mode 2350 drivers/staging/exfat/exfat_super.c static int exfat_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 2632 drivers/staging/exfat/exfat_super.c static int exfat_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 67 drivers/staging/fbtft/fb_uc1611.c par->spi->mode |= SPI_CS_HIGH; mode 33 drivers/staging/fbtft/fb_watterott.c static short mode = 565; mode 34 drivers/staging/fbtft/fb_watterott.c module_param(mode, short, 0000); mode 35 drivers/staging/fbtft/fb_watterott.c MODULE_PARM_DESC(mode, "RGB color transfer mode: 332, 565 (default)"); mode 152 drivers/staging/fbtft/fb_watterott.c save_mode = par->spi->mode; mode 153 drivers/staging/fbtft/fb_watterott.c par->spi->mode |= SPI_CS_HIGH; mode 164 drivers/staging/fbtft/fb_watterott.c par->spi->mode = save_mode; mode 176 drivers/staging/fbtft/fb_watterott.c if (mode == 332) mode 142 drivers/staging/fieldbus/dev_core.c umode_t mode = attr->mode; mode 145 drivers/staging/fieldbus/dev_core.c mode = 0; mode 147 drivers/staging/fieldbus/dev_core.c mode |= 0444; mode 149 drivers/staging/fieldbus/dev_core.c mode |= 0200; mode 152 drivers/staging/fieldbus/dev_core.c return mode; mode 352 drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h u8 mode; mode 1168 drivers/staging/fsl-dpaa2/ethsw/dpsw.c enum dpsw_fdb_learning_mode mode) mode 1179 drivers/staging/fsl-dpaa2/ethsw/dpsw.c dpsw_set_field(cmd_params->mode, LEARNING_MODE, mode); mode 560 drivers/staging/fsl-dpaa2/ethsw/dpsw.h enum dpsw_fdb_learning_mode mode); mode 126 drivers/staging/gasket/apex_driver.c .mode = GASKET_PAGE_TABLE_MODE_NORMAL, mode 130 drivers/staging/gasket/gasket_core.h enum gasket_page_table_mode mode; mode 275 drivers/staging/gasket/gasket_page_table.c if (pg_tbl->config.mode == GASKET_PAGE_TABLE_MODE_NORMAL || mode 276 drivers/staging/gasket/gasket_page_table.c pg_tbl->config.mode == GASKET_PAGE_TABLE_MODE_SIMPLE) { mode 26 drivers/staging/greybus/light.c u32 mode; mode 83 drivers/staging/greybus/light.c return !!(channel->mode & (GB_CHANNEL_MODE_FLASH | GB_CHANNEL_MODE_TORCH mode 101 drivers/staging/greybus/light.c u32 mode) mode 108 drivers/staging/greybus/light.c if (channel && channel->mode == mode) mode 146 drivers/staging/greybus/light.c if (channel->mode & GB_CHANNEL_MODE_FLASH) mode 748 drivers/staging/greybus/light.c if (!(channel->mode & GB_CHANNEL_MODE_FLASH)) mode 786 drivers/staging/greybus/light.c if (channel->mode & GB_CHANNEL_MODE_FLASH) { mode 858 drivers/staging/greybus/light.c if (channel->mode & GB_CHANNEL_MODE_FLASH) { mode 911 drivers/staging/greybus/light.c if (!(channel->mode & GB_CHANNEL_MODE_TORCH)) mode 938 drivers/staging/greybus/light.c if (channel->mode & GB_CHANNEL_MODE_TORCH) mode 963 drivers/staging/greybus/light.c channel->mode = le32_to_cpu(conf.mode); mode 28 drivers/staging/greybus/spilib.c u16 mode; mode 239 drivers/staging/greybus/spilib.c request->mode = dev->mode; mode 408 drivers/staging/greybus/spilib.c #define gb_spi_mode_map(mode) mode mode 414 drivers/staging/greybus/spilib.c u16 mode, flags; mode 422 drivers/staging/greybus/spilib.c mode = le16_to_cpu(response.mode); mode 423 drivers/staging/greybus/spilib.c spi->mode = gb_spi_mode_map(mode); mode 469 drivers/staging/greybus/spilib.c spi_board.mode = le16_to_cpu(response.mode); mode 509 drivers/staging/greybus/spilib.c master->mode_bits = spi->mode; mode 165 drivers/staging/iio/adc/ad7192.c u32 mode; mode 192 drivers/staging/iio/adc/ad7192.c enum ad_sigma_delta_mode mode) mode 196 drivers/staging/iio/adc/ad7192.c st->mode &= ~AD7192_MODE_SEL_MASK; mode 197 drivers/staging/iio/adc/ad7192.c st->mode |= AD7192_MODE_SEL(mode); mode 199 drivers/staging/iio/adc/ad7192.c return ad_sd_write_reg(&st->sd, AD7192_REG_MODE, 3, st->mode); mode 279 drivers/staging/iio/adc/ad7192.c st->mode = AD7192_MODE_SEL(AD7192_MODE_IDLE) | mode 287 drivers/staging/iio/adc/ad7192.c st->mode |= AD7192_MODE_REJ60; mode 313 drivers/staging/iio/adc/ad7192.c ret = ad_sd_write_reg(&st->sd, AD7192_REG_MODE, 3, st->mode); mode 346 drivers/staging/iio/adc/ad7192.c return sprintf(buf, "%d\n", !!(st->mode & AD7192_MODE_ACX)); mode 389 drivers/staging/iio/adc/ad7192.c st->mode |= AD7192_MODE_ACX; mode 391 drivers/staging/iio/adc/ad7192.c st->mode &= ~AD7192_MODE_ACX; mode 393 drivers/staging/iio/adc/ad7192.c ad_sd_write_reg(&st->sd, AD7192_REG_MODE, 3, st->mode); mode 411 drivers/staging/iio/adc/ad7192.c AD7192_SYNC4_FILTER * AD7192_MODE_RATE(st->mode)); mode 415 drivers/staging/iio/adc/ad7192.c AD7192_SYNC3_FILTER * AD7192_MODE_RATE(st->mode)); mode 418 drivers/staging/iio/adc/ad7192.c fadc = DIV_ROUND_CLOSEST(st->fclk, AD7192_MODE_RATE(st->mode)); mode 504 drivers/staging/iio/adc/ad7192.c st->mode &= ~AD7192_MODE_SINC3; mode 510 drivers/staging/iio/adc/ad7192.c st->mode |= AD7192_MODE_SINC3; mode 516 drivers/staging/iio/adc/ad7192.c st->mode &= ~AD7192_MODE_SINC3; mode 522 drivers/staging/iio/adc/ad7192.c st->mode |= AD7192_MODE_SINC3; mode 528 drivers/staging/iio/adc/ad7192.c ret = ad_sd_write_reg(&st->sd, AD7192_REG_MODE, 3, st->mode); mode 540 drivers/staging/iio/adc/ad7192.c st->f_order * AD7192_MODE_RATE(st->mode)); mode 544 drivers/staging/iio/adc/ad7192.c if (st->mode & AD7192_MODE_SINC3) mode 588 drivers/staging/iio/adc/ad7192.c (st->f_order * 1024 * AD7192_MODE_RATE(st->mode)); mode 644 drivers/staging/iio/adc/ad7192.c st->mode &= ~AD7192_MODE_RATE(-1); mode 645 drivers/staging/iio/adc/ad7192.c st->mode |= AD7192_MODE_RATE(div); mode 646 drivers/staging/iio/adc/ad7192.c ad_sd_write_reg(&st->sd, AD7192_REG_MODE, 3, st->mode); mode 603 drivers/staging/iio/adc/ad7280a.c attr->dev_attr.attr.mode = 0644; mode 619 drivers/staging/iio/adc/ad7280a.c attr->dev_attr.attr.mode = 0644; mode 938 drivers/staging/iio/adc/ad7280a.c st->spi->mode = SPI_MODE_1; mode 52 drivers/staging/iio/adc/ad7816.c u8 mode; mode 79 drivers/staging/iio/adc/ad7816.c if (chip->mode == AD7816_PD) { /* operating mode 2 */ mode 126 drivers/staging/iio/adc/ad7816.c if (chip->mode) mode 141 drivers/staging/iio/adc/ad7816.c chip->mode = AD7816_FULL; mode 144 drivers/staging/iio/adc/ad7816.c chip->mode = AD7816_PD; mode 150 drivers/staging/iio/adc/ad7816.c static IIO_DEVICE_ATTR(mode, 0644, mode 356 drivers/staging/iio/addac/adt7316.c static IIO_DEVICE_ATTR(mode, 0644, mode 96 drivers/staging/iio/resolver/ad2s1210.c enum ad2s1210_mode mode; mode 107 drivers/staging/iio/resolver/ad2s1210.c static inline void ad2s1210_set_mode(enum ad2s1210_mode mode, mode 110 drivers/staging/iio/resolver/ad2s1210.c gpiod_set_value(st->gpios[AD2S1210_A0], ad2s1210_mode_vals[mode][0]); mode 111 drivers/staging/iio/resolver/ad2s1210.c gpiod_set_value(st->gpios[AD2S1210_A1], ad2s1210_mode_vals[mode][1]); mode 112 drivers/staging/iio/resolver/ad2s1210.c st->mode = mode; mode 670 drivers/staging/iio/resolver/ad2s1210.c st->mode = MOD_CONFIG; mode 686 drivers/staging/iio/resolver/ad2s1210.c spi->mode = SPI_MODE_3; mode 2363 drivers/staging/isdn/gigaset/capi.c switch (cs->mode) { mode 707 drivers/staging/isdn/gigaset/common.c cs->mode = M_UNKNOWN; mode 823 drivers/staging/isdn/gigaset/common.c cs->mode = M_UNKNOWN; mode 722 drivers/staging/isdn/gigaset/ev-layer.c static void init_failed(struct cardstate *cs, int mode) mode 728 drivers/staging/isdn/gigaset/ev-layer.c cs->mode = mode; mode 748 drivers/staging/isdn/gigaset/ev-layer.c cs->mode = M_UNKNOWN; mode 927 drivers/staging/isdn/gigaset/ev-layer.c cs->mode = M_UNKNOWN; mode 1051 drivers/staging/isdn/gigaset/ev-layer.c int mode; mode 1075 drivers/staging/isdn/gigaset/ev-layer.c mode = cs->mode; mode 1077 drivers/staging/isdn/gigaset/ev-layer.c cs->mode = M_UNKNOWN; mode 1079 drivers/staging/isdn/gigaset/ev-layer.c return mode; mode 1088 drivers/staging/isdn/gigaset/ev-layer.c cs->mode = M_UNKNOWN; mode 1121 drivers/staging/isdn/gigaset/ev-layer.c cs->mode = M_UNIMODEM; mode 1161 drivers/staging/isdn/gigaset/ev-layer.c cs->mode = M_CID; mode 1165 drivers/staging/isdn/gigaset/ev-layer.c cs->mode = M_UNIMODEM; mode 1728 drivers/staging/isdn/gigaset/ev-layer.c && cs->mode == M_CID) { mode 1799 drivers/staging/isdn/gigaset/ev-layer.c if (cs->mode == M_UNIMODEM) { mode 1825 drivers/staging/isdn/gigaset/ev-layer.c switch (cs->mode) { mode 414 drivers/staging/isdn/gigaset/gigaset.h int mode; /* see M_XXXX */ mode 64 drivers/staging/kpc2000/kpc2000_spi.c .mode = SPI_MODE_0, mode 71 drivers/staging/kpc2000/kpc2000_spi.c .mode = SPI_MODE_0, mode 1313 drivers/staging/ks7010/ks_hostif.c void hostif_start_request(struct ks_wlan_private *priv, unsigned char mode) mode 1321 drivers/staging/ks7010/ks_hostif.c pp->mode = cpu_to_le16(mode); mode 1483 drivers/staging/ks7010/ks_hostif.c u32 mode, u32 wake_up, u32 receive_dtims) mode 1491 drivers/staging/ks7010/ks_hostif.c pp->mode = cpu_to_le32(mode); mode 1500 drivers/staging/ks7010/ks_hostif.c enum sleep_mode_type mode) mode 1504 drivers/staging/ks7010/ks_hostif.c if (mode == SLP_SLEEP) { mode 1510 drivers/staging/ks7010/ks_hostif.c } else if (mode == SLP_ACTIVE) { mode 1514 drivers/staging/ks7010/ks_hostif.c netdev_err(priv->net_dev, "invalid mode %ld\n", (long)mode); mode 1680 drivers/staging/ks7010/ks_hostif.c u32 mode; mode 1784 drivers/staging/ks7010/ks_hostif.c mode = (priv->wpa.version == IW_AUTH_WPA_VERSION_WPA2) ? mode 1788 drivers/staging/ks7010/ks_hostif.c rsn_mode.rsn_mode = cpu_to_le32(mode); mode 1945 drivers/staging/ks7010/ks_hostif.c u32 mode, wake_up, receive_dtims; mode 1949 drivers/staging/ks7010/ks_hostif.c mode = POWER_ACTIVE; mode 1953 drivers/staging/ks7010/ks_hostif.c mode = (priv->reg.operation_mode == MODE_INFRASTRUCTURE) ? mode 1960 drivers/staging/ks7010/ks_hostif.c hostif_power_mgmt_request(priv, mode, wake_up, receive_dtims); mode 219 drivers/staging/ks7010/ks_hostif.h __le32 mode; mode 244 drivers/staging/ks7010/ks_hostif.h __le16 mode; mode 741 drivers/staging/ks7010/ks_wlan_net.c if (uwrq->mode != IW_MODE_ADHOC && mode 742 drivers/staging/ks7010/ks_wlan_net.c uwrq->mode != IW_MODE_INFRA) mode 745 drivers/staging/ks7010/ks_wlan_net.c priv->reg.operation_mode = (uwrq->mode == IW_MODE_ADHOC) ? mode 762 drivers/staging/ks7010/ks_wlan_net.c uwrq->mode = (priv->reg.operation_mode == MODE_INFRASTRUCTURE) ? mode 1212 drivers/staging/ks7010/ks_wlan_net.c iwe.u.mode = (capabilities & WLAN_CAPABILITY_ESS) ? mode 1787 drivers/staging/ks7010/ks_wlan_net.c __u32 mode = 1; mode 1800 drivers/staging/ks7010/ks_wlan_net.c return ks_wlan_set_stop_request(dev, NULL, &mode, NULL); mode 2462 drivers/staging/ks7010/ks_wlan_net.c ret = ks_wlan_set_stop_request(dev, NULL, &wrq->u.mode, NULL); mode 996 drivers/staging/media/allegro-dvt/allegro-core.c v4l2_bitrate_mode_to_mcu_mode(enum v4l2_mpeg_video_bitrate_mode mode) mode 998 drivers/staging/media/allegro-dvt/allegro-core.c switch (mode) { mode 1537 drivers/staging/media/ipu3/ipu3-abi.h u32 mode; mode 24 drivers/staging/media/ipu3/ipu3-css-fw.c bi->info.isp.sp.id, bi->info.isp.sp.pipeline.mode, mode 191 drivers/staging/media/ipu3/ipu3-css-fw.c if (bi->info.isp.sp.pipeline.mode >= IPU3_CSS_PIPE_ID_NUM) mode 1649 drivers/staging/media/ipu3/ipu3-css.c if (bi->info.isp.sp.pipeline.mode != binary_mode) mode 435 drivers/staging/media/omap4iss/iss.c enum iss_pipeline_stream_state mode) mode 472 drivers/staging/media/omap4iss/iss.c ret = v4l2_subdev_call(subdev, video, s_stream, mode); mode 482 drivers/staging/media/soc_camera/soc_mediabus.c bool hsync = true, vsync = true, pclk, data, mode; mode 499 drivers/staging/media/soc_camera/soc_mediabus.c mode = common_flags & (V4L2_MBUS_MASTER | V4L2_MBUS_SLAVE); mode 500 drivers/staging/media/soc_camera/soc_mediabus.c return (!hsync || !vsync || !pclk || !data || !mode) ? mode 353 drivers/staging/most/core.c return attr->mode; mode 121 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c u32 mode = 0; mode 141 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c mode = rt_sysc_r32(reg); mode 142 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c mode &= ~(p->groups[group].mask << shift); mode 150 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c mode |= p->groups[group].gpio << shift; mode 154 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c mode |= p->func[func]->value << shift; mode 156 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c rt_sysc_w32(mode, reg); mode 1361 drivers/staging/octeon/octeon-stubs.h cvmx_spi_mode_t mode, int timeout) mode 509 drivers/staging/olpc_dcon/olpc_dcon.c __ATTR(mode, 0444, dcon_mode_show, NULL), mode 1111 drivers/staging/pi433/pi433_if.c spi->mode = 0x00; mode 1126 drivers/staging/pi433/pi433_if.c spi->mode, spi->bits_per_word, spi->max_speed_hz); mode 105 drivers/staging/pi433/rf69.c int rf69_set_mode(struct spi_device *spi, enum mode mode) mode 115 drivers/staging/pi433/rf69.c if (unlikely(mode >= ARRAY_SIZE(mode_map))) { mode 121 drivers/staging/pi433/rf69.c mode_map[mode]); mode 20 drivers/staging/pi433/rf69.h int rf69_set_mode(struct spi_device *spi, enum mode mode); mode 993 drivers/staging/rtl8188eu/core/rtw_ap.c void rtw_set_macaddr_acl(struct adapter *padapter, int mode) mode 998 drivers/staging/rtl8188eu/core/rtw_ap.c DBG_88E("%s, mode =%d\n", __func__, mode); mode 1000 drivers/staging/rtl8188eu/core/rtw_ap.c pacl_list->mode = mode; mode 1699 drivers/staging/rtl8188eu/core/rtw_ap.c pacl_list->mode = 0; mode 535 drivers/staging/rtl8188eu/core/rtw_cmd.c psetop->mode = (u8)networktype; mode 171 drivers/staging/rtl8188eu/core/rtw_ieee80211.c void rtw_set_supported_rate(u8 *SupportedRates, uint mode) mode 175 drivers/staging/rtl8188eu/core/rtw_ieee80211.c switch (mode) { mode 1535 drivers/staging/rtl8188eu/core/rtw_mlme.c psetauthparm->mode = (unsigned char)psecuritypriv->dot11AuthAlgrthm; mode 4843 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c if (psetop->mode == Ndis802_11APMode) { mode 4846 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c } else if (psetop->mode == Ndis802_11Infrastructure) { mode 4850 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c } else if (psetop->mode == Ndis802_11IBSS) { mode 5199 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c if (pparm->mode < 4) mode 5200 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c pmlmeinfo->auth_algo = pparm->mode; mode 612 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c int rtw_pm_set_lps(struct adapter *padapter, u8 mode) mode 617 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (mode < PS_MODE_NUM) { mode 618 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (pwrctrlpriv->power_mgnt != mode) { mode 619 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (mode == PS_MODE_ACTIVE) mode 623 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrctrlpriv->power_mgnt = mode; mode 633 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c int rtw_pm_set_ips(struct adapter *padapter, u8 mode) mode 637 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (mode == IPS_NORMAL || mode == IPS_LEVEL_2) { mode 638 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c rtw_ips_mode_req(pwrctrlpriv, mode); mode 639 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c DBG_88E("%s %s\n", __func__, mode == IPS_NORMAL ? "IPS_NORMAL" : "IPS_LEVEL_2"); mode 641 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c } else if (mode == IPS_NONE) { mode 642 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c rtw_ips_mode_req(pwrctrlpriv, mode); mode 501 drivers/staging/rtl8188eu/core/rtw_sta_mgt.c if (pacl_list->mode == 1)/* accept unless in deny list */ mode 503 drivers/staging/rtl8188eu/core/rtw_sta_mgt.c else if (pacl_list->mode == 2)/* deny unless in accept list */ mode 265 drivers/staging/rtl8188eu/core/rtw_wlan_util.c void Switch_DM_Func(struct adapter *padapter, u32 mode, u8 enable) mode 268 drivers/staging/rtl8188eu/core/rtw_wlan_util.c rtw_hal_set_hwreg(padapter, HW_VAR_DM_FUNC_SET, (u8 *)(&mode)); mode 270 drivers/staging/rtl8188eu/core/rtw_wlan_util.c rtw_hal_set_hwreg(padapter, HW_VAR_DM_FUNC_CLR, (u8 *)(&mode)); mode 868 drivers/staging/rtl8188eu/hal/phy.c u32 mode; mode 870 drivers/staging/rtl8188eu/hal/phy.c mode = pi_mode ? 0x01000100 : 0x01000000; mode 871 drivers/staging/rtl8188eu/hal/phy.c phy_set_bb_reg(adapt, rFPGA0_XA_HSSIParameter1, bMaskDWord, mode); mode 872 drivers/staging/rtl8188eu/hal/phy.c phy_set_bb_reg(adapt, rFPGA0_XB_HSSIParameter1, bMaskDWord, mode); mode 1132 drivers/staging/rtl8188eu/hal/usb_halinit.c u8 mode = *((u8 *)val); mode 1139 drivers/staging/rtl8188eu/hal/usb_halinit.c val8 |= mode; mode 1142 drivers/staging/rtl8188eu/hal/usb_halinit.c DBG_88E("%s()-%d mode = %d\n", __func__, __LINE__, mode); mode 1144 drivers/staging/rtl8188eu/hal/usb_halinit.c if ((mode == _HW_STATE_STATION_) || (mode == _HW_STATE_NOLINK_)) { mode 1148 drivers/staging/rtl8188eu/hal/usb_halinit.c } else if (mode == _HW_STATE_ADHOC_) { mode 1151 drivers/staging/rtl8188eu/hal/usb_halinit.c } else if (mode == _HW_STATE_AP_) { mode 734 drivers/staging/rtl8188eu/include/ieee80211.h void rtw_set_supported_rate(u8 *SupportedRates, uint mode); mode 29 drivers/staging/rtl8188eu/include/rtw_ap.h void rtw_set_macaddr_acl(struct adapter *padapter, int mode); mode 104 drivers/staging/rtl8188eu/include/rtw_cmd.h u8 mode; mode 136 drivers/staging/rtl8188eu/include/rtw_cmd.h u8 mode; /* 0: legacy open, 1: legacy shared 2: 802.1x */ mode 387 drivers/staging/rtl8188eu/include/rtw_mlme_ext.h enum hw_mode {IEEE80211G} mode; mode 460 drivers/staging/rtl8188eu/include/rtw_mlme_ext.h void Switch_DM_Func(struct adapter *padapter, u32 mode, u8 enable); mode 82 drivers/staging/rtl8188eu/include/rtw_pwrctrl.h unsigned char mode; mode 242 drivers/staging/rtl8188eu/include/rtw_pwrctrl.h int rtw_pm_set_ips(struct adapter *adapter, u8 mode); mode 243 drivers/staging/rtl8188eu/include/rtw_pwrctrl.h int rtw_pm_set_lps(struct adapter *adapter, u8 mode); mode 30 drivers/staging/rtl8188eu/include/sta_info.h int mode; mode 174 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c iwe.u.mode = IW_MODE_MASTER; mode 176 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c iwe.u.mode = IW_MODE_ADHOC; mode 721 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c switch (wrqu->mode) { mode 740 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c RT_TRACE(_module_rtl871x_ioctl_os_c, _drv_err_, ("\n Mode: %s is not supported\n", iw_operation_mode[wrqu->mode])); mode 761 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c wrqu->mode = IW_MODE_INFRA; mode 764 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c wrqu->mode = IW_MODE_ADHOC; mode 766 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c wrqu->mode = IW_MODE_MASTER; mode 768 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c wrqu->mode = IW_MODE_AUTO; mode 172 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c u8 mode = priv->rtllib->mode; mode 177 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c ((mode&(IEEE_G|IEEE_N_24G)) ? 9 : 20) + aSifsTime; mode 630 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c switch (priv->rtllib->mode) { mode 791 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c rtl92e_set_wireless_mode(dev, priv->rtllib->mode); mode 2132 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c switch (ieee->mode) { mode 1002 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c switch (priv->rtllib->mode) { mode 338 drivers/staging/rtl8192e/rtl8192e/rtl_core.c if (net->mode & (IEEE_G | IEEE_N_24G)) { mode 650 drivers/staging/rtl8192e/rtl8192e/rtl_core.c if (ieee->mode == WIRELESS_MODE_N_24G || mode 651 drivers/staging/rtl8192e/rtl8192e/rtl_core.c ieee->mode == WIRELESS_MODE_N_5G) { mode 713 drivers/staging/rtl8192e/rtl8192e/rtl_core.c priv->rtllib->mode = wireless_mode; mode 908 drivers/staging/rtl8192e/rtl8192e/rtl_core.c priv->rtllib->mode = WIRELESS_MODE_AUTO; mode 344 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c if (!(priv->rtllib->mode == WIRELESS_MODE_N_24G || mode 345 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c priv->rtllib->mode == WIRELESS_MODE_N_5G)) mode 1186 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c if (!(priv->rtllib->mode == WIRELESS_MODE_N_24G || mode 1187 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c priv->rtllib->mode == WIRELESS_MODE_N_5G)) mode 1701 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c if (priv->rtllib->mode == WIRELESS_MODE_G) mode 1715 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c if (priv->rtllib->mode == WIRELESS_MODE_G) mode 1921 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c if (priv->rtllib->mode == WIRELESS_MODE_B) mode 2285 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c if (priv->rtllib->mode == WIRELESS_MODE_N_24G) { mode 2456 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c (priv->rtllib->mode == IEEE_G)) { mode 257 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c if (wrqu->mode == IW_MODE_ADHOC || wrqu->mode == IW_MODE_MONITOR || mode 754 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c int mode = parms[0]; mode 759 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c priv->rtllib->active_scan = mode; mode 432 drivers/staging/rtl8192e/rtl819x_HTProc.c switch (ieee->mode) { mode 328 drivers/staging/rtl8192e/rtllib.h (((priv->rtllib->current_network.mode == IEEE_A) \ mode 329 drivers/staging/rtl8192e/rtllib.h || (priv->rtllib->current_network.mode == IEEE_N_24G) \ mode 330 drivers/staging/rtl8192e/rtllib.h || (priv->rtllib->current_network.mode == IEEE_N_5G)) ? 16 : 10) mode 1122 drivers/staging/rtl8192e/rtllib.h u8 mode; mode 1548 drivers/staging/rtl8192e/rtllib.h int mode; /* A, B, G */ mode 2367 drivers/staging/rtl8192e/rtllib_rx.c network->mode = 0; mode 2369 drivers/staging/rtl8192e/rtllib_rx.c network->mode = IEEE_A; mode 2372 drivers/staging/rtl8192e/rtllib_rx.c network->mode |= IEEE_G; mode 2374 drivers/staging/rtl8192e/rtllib_rx.c network->mode |= IEEE_B; mode 2377 drivers/staging/rtl8192e/rtllib_rx.c if (network->mode == 0) { mode 2385 drivers/staging/rtl8192e/rtllib_rx.c if (network->mode == IEEE_A) mode 2386 drivers/staging/rtl8192e/rtllib_rx.c network->mode = IEEE_N_5G; mode 2387 drivers/staging/rtl8192e/rtllib_rx.c else if (network->mode & (IEEE_G | IEEE_B)) mode 2388 drivers/staging/rtl8192e/rtllib_rx.c network->mode = IEEE_N_24G; mode 2444 drivers/staging/rtl8192e/rtllib_rx.c dst->mode = src->mode; mode 2636 drivers/staging/rtl8192e/rtllib_rx.c if ((ieee->current_network.mode == IEEE_N_24G || mode 2637 drivers/staging/rtl8192e/rtllib_rx.c ieee->current_network.mode == IEEE_G) && mode 189 drivers/staging/rtl8192e/rtllib_softmac.c if (ieee->mode == IEEE_A || mode 190 drivers/staging/rtl8192e/rtllib_softmac.c ieee->mode == IEEE_N_5G || mode 191 drivers/staging/rtl8192e/rtllib_softmac.c (ieee->mode == IEEE_N_24G && !pHTInfo->bCurSuppCCK)) mode 846 drivers/staging/rtl8192e/rtllib_softmac.c if ((ieee->current_network.mode == IEEE_G) || mode 847 drivers/staging/rtl8192e/rtllib_softmac.c (ieee->current_network.mode == IEEE_N_24G && mode 1185 drivers/staging/rtl8192e/rtllib_softmac.c ieee->mode = WIRELESS_MODE_G; mode 1697 drivers/staging/rtl8192e/rtllib_softmac.c ieee->current_network.mode, mode 1895 drivers/staging/rtl8192e/rtllib_softmac.c ((ieee->mode == IEEE_G) && mode 1896 drivers/staging/rtl8192e/rtllib_softmac.c (ieee->current_network.mode == IEEE_N_24G) && mode 2315 drivers/staging/rtl8192e/rtllib_softmac.c ieee->current_network.mode); mode 2321 drivers/staging/rtl8192e/rtllib_softmac.c if ((ieee->current_network.mode == IEEE_N_24G) && mode 2592 drivers/staging/rtl8192e/rtllib_softmac.c ieee->mode = IEEE_G; mode 2665 drivers/staging/rtl8192e/rtllib_softmac.c ieee->current_network.mode = ieee->mode; mode 2670 drivers/staging/rtl8192e/rtllib_softmac.c netdev_info(ieee->dev, "%s(): ieee->mode = %d\n", __func__, ieee->mode); mode 2671 drivers/staging/rtl8192e/rtllib_softmac.c if ((ieee->mode == IEEE_N_24G) || (ieee->mode == IEEE_N_5G)) mode 288 drivers/staging/rtl8192e/rtllib_softmac_wx.c switch (wrqu->mode) { mode 294 drivers/staging/rtl8192e/rtllib_softmac_wx.c wrqu->mode = IW_MODE_INFRA; mode 301 drivers/staging/rtl8192e/rtllib_softmac_wx.c if (wrqu->mode == ieee->iw_mode) mode 304 drivers/staging/rtl8192e/rtllib_softmac_wx.c if (wrqu->mode == IW_MODE_MONITOR) { mode 314 drivers/staging/rtl8192e/rtllib_softmac_wx.c ieee->iw_mode = wrqu->mode; mode 317 drivers/staging/rtl8192e/rtllib_softmac_wx.c ieee->iw_mode = wrqu->mode; mode 500 drivers/staging/rtl8192e/rtllib_softmac_wx.c wrqu->mode = ieee->iw_mode; mode 552 drivers/staging/rtl8192e/rtllib_softmac_wx.c if (ieee->mode & (IEEE_N_24G | IEEE_N_5G)) mode 412 drivers/staging/rtl8192e/rtllib_tx.c if (ieee->mode < IEEE_N_24G) { mode 539 drivers/staging/rtl8192e/rtllib_tx.c if (ieee->mode & IEEE_MODE_MASK) mode 75 drivers/staging/rtl8192e/rtllib_wx.c if (network->mode&(1<<i)) { mode 90 drivers/staging/rtl8192e/rtllib_wx.c iwe.u.mode = IW_MODE_MASTER; mode 92 drivers/staging/rtl8192e/rtllib_wx.c iwe.u.mode = IW_MODE_ADHOC; mode 138 drivers/staging/rtl8192e/rtllib_wx.c if (network->mode >= IEEE_N_24G) { mode 172 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define aSifsTime ((priv->ieee80211->current_network.mode == IEEE_A || \ mode 173 drivers/staging/rtl8192u/ieee80211/ieee80211.h priv->ieee80211->current_network.mode == IEEE_N_24G || \ mode 174 drivers/staging/rtl8192u/ieee80211/ieee80211.h priv->ieee80211->current_network.mode == IEEE_N_5G) ? \ mode 1356 drivers/staging/rtl8192u/ieee80211/ieee80211.h u8 mode; mode 1752 drivers/staging/rtl8192u/ieee80211/ieee80211.h int mode; /* A, B, G */ mode 2073 drivers/staging/rtl8192u/ieee80211/ieee80211.h static inline int ieee80211_is_valid_mode(struct ieee80211_device *ieee, int mode) mode 2081 drivers/staging/rtl8192u/ieee80211/ieee80211.h if ((mode & IEEE_A) && mode 2086 drivers/staging/rtl8192u/ieee80211/ieee80211.h if ((mode & IEEE_G) && mode 2091 drivers/staging/rtl8192u/ieee80211/ieee80211.h if ((mode & IEEE_B) && mode 2124 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c network->mode = 0; mode 2126 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c network->mode = IEEE_A; mode 2129 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c network->mode |= IEEE_G; mode 2131 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c network->mode |= IEEE_B; mode 2134 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (network->mode == 0) { mode 2144 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (network->mode == IEEE_A) mode 2145 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c network->mode = IEEE_N_5G; mode 2146 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c else if (network->mode & (IEEE_G | IEEE_B)) mode 2147 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c network->mode = IEEE_N_24G; mode 2197 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c dst->mode = src->mode; mode 2403 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if ((ieee->current_network.mode == IEEE_N_24G || ieee->current_network.mode == IEEE_G) mode 190 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c if (ieee->mode == IEEE_A || mode 191 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee->mode == IEEE_N_5G || mode 192 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c (ieee->mode == IEEE_N_24G && !pHTInfo->bCurSuppCCK)) mode 1575 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ((ieee->mode == IEEE_G) && mode 1576 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c (ieee->current_network.mode == IEEE_N_24G) && mode 1854 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c ieee->current_network.mode); mode 1860 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c if (ieee->current_network.mode == IEEE_N_24G && mode 278 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c if (wrqu->mode == ieee->iw_mode) mode 281 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c if (wrqu->mode == IW_MODE_MONITOR) mode 287 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c ieee->iw_mode = wrqu->mode; mode 290 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c ieee->iw_mode = wrqu->mode; mode 441 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c wrqu->mode = ieee->iw_mode; mode 496 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c if (ieee->mode & (IEEE_N_24G | IEEE_N_5G)) mode 420 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c if (ieee->mode < IEEE_N_24G) /* b, g mode */ { mode 490 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c if (ieee->mode == IW_MODE_MASTER) mode 812 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c tcb_desc->data_rate = CURRENT_RATE(ieee->mode, ieee->rate, ieee->HTCurrentOperaRate); mode 74 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (network->mode & BIT(i)) { mode 87 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c iwe.u.mode = IW_MODE_MASTER; mode 89 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c iwe.u.mode = IW_MODE_ADHOC; mode 133 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c if (network->mode >= IEEE_N_24G) /* add N rate here */ { mode 710 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c switch (ieee->mode) { mode 1142 drivers/staging/rtl8192u/r8192U_core.c if (net->mode & (IEEE_G | IEEE_N_24G)) { mode 1780 drivers/staging/rtl8192u/r8192U_core.c u8 mode = priv->ieee80211->current_network.mode; mode 1802 drivers/staging/rtl8192u/r8192U_core.c u1bAIFS = qos_parameters->aifs[i] * ((mode & (IEEE_G | IEEE_N_24G)) ? 9 : 20) + aSifsTime; mode 1950 drivers/staging/rtl8192u/r8192U_core.c switch (ieee->mode) { mode 2033 drivers/staging/rtl8192u/r8192U_core.c if (ieee->mode == WIRELESS_MODE_N_24G || mode 2034 drivers/staging/rtl8192u/r8192U_core.c ieee->mode == WIRELESS_MODE_N_5G) mode 2086 drivers/staging/rtl8192u/r8192U_core.c priv->ieee80211->mode = wireless_mode; mode 2105 drivers/staging/rtl8192u/r8192U_core.c priv->ieee80211->mode = WIRELESS_MODE_AUTO; /* SET AUTO */ mode 2616 drivers/staging/rtl8192u/r8192U_core.c switch (priv->ieee80211->mode) { mode 2770 drivers/staging/rtl8192u/r8192U_core.c rtl8192_SetWirelessMode(dev, priv->ieee80211->mode); mode 301 drivers/staging/rtl8192u/r8192U_dm.c if (!(priv->ieee80211->mode == WIRELESS_MODE_N_24G || mode 302 drivers/staging/rtl8192u/r8192U_dm.c priv->ieee80211->mode == WIRELESS_MODE_N_5G)) mode 1501 drivers/staging/rtl8192u/r8192U_dm.c if (!(priv->ieee80211->mode == WIRELESS_MODE_N_24G || mode 1502 drivers/staging/rtl8192u/r8192U_dm.c priv->ieee80211->mode == WIRELESS_MODE_N_5G)) mode 2173 drivers/staging/rtl8192u/r8192U_dm.c u8 mode = priv->ieee80211->mode; mode 2178 drivers/staging/rtl8192u/r8192U_dm.c u1bAIFS = qos_parameters->aifs[0] * ((mode & (IEEE_G | IEEE_N_24G)) ? 9 : 20) + aSifsTime; mode 2385 drivers/staging/rtl8192u/r8192U_dm.c if (priv->ieee80211->mode == WIRELESS_MODE_B) { mode 2735 drivers/staging/rtl8192u/r8192U_dm.c if (priv->ieee80211->mode == WIRELESS_MODE_N_24G) { mode 2953 drivers/staging/rtl8192u/r8192U_dm.c if ((priv->ieee80211->current_network.atheros_cap_exist) && (priv->ieee80211->mode == IEEE_G)) { mode 606 drivers/staging/rtl8192u/r8192U_wx.c int mode = parms[0]; mode 608 drivers/staging/rtl8192u/r8192U_wx.c priv->ieee80211->active_scan = mode; mode 173 drivers/staging/rtl8192u/r819xU_cmdpkt.c if (priv->ieee80211->current_network.mode == IEEE_A || mode 174 drivers/staging/rtl8192u/r819xU_cmdpkt.c priv->ieee80211->current_network.mode == IEEE_N_5G || mode 175 drivers/staging/rtl8192u/r819xU_cmdpkt.c (priv->ieee80211->current_network.mode == IEEE_N_24G && mode 1413 drivers/staging/rtl8192u/r819xU_phy.c switch (priv->ieee80211->mode) { mode 126 drivers/staging/rtl8712/ieee80211.c static void set_supported_rate(u8 *rates, uint mode) mode 129 drivers/staging/rtl8712/ieee80211.c switch (mode) { mode 513 drivers/staging/rtl8712/rtl871x_cmd.c psetop->mode = (u8)networktype; mode 137 drivers/staging/rtl8712/rtl871x_cmd.h u8 mode; mode 159 drivers/staging/rtl8712/rtl871x_cmd.h u8 mode; /*0: legacy open, 1: legacy shared 2: 802.1x*/ mode 555 drivers/staging/rtl8712/rtl871x_cmd.h u8 mode; mode 273 drivers/staging/rtl8712/rtl871x_ioctl_linux.c iwe.u.mode = (u32)IW_MODE_MASTER; mode 275 drivers/staging/rtl8712/rtl871x_ioctl_linux.c iwe.u.mode = (u32)IW_MODE_ADHOC; mode 720 drivers/staging/rtl8712/rtl871x_ioctl_linux.c switch (wrqu->mode) { mode 752 drivers/staging/rtl8712/rtl871x_ioctl_linux.c wrqu->mode = IW_MODE_INFRA; mode 755 drivers/staging/rtl8712/rtl871x_ioctl_linux.c wrqu->mode = IW_MODE_ADHOC; mode 757 drivers/staging/rtl8712/rtl871x_ioctl_linux.c wrqu->mode = IW_MODE_MASTER; mode 759 drivers/staging/rtl8712/rtl871x_ioctl_linux.c wrqu->mode = IW_MODE_AUTO; mode 1163 drivers/staging/rtl8712/rtl871x_mlme.c psetauthparm->mode = (u8)psecuritypriv->AuthAlgrthm; mode 23 drivers/staging/rtl8712/rtl871x_mp.c pmp_priv->mode = _LOOPBOOK_MODE_; mode 98 drivers/staging/rtl8712/rtl871x_mp.h u32 mode;/*0 for normal type packet, mode 179 drivers/staging/rtl8712/rtl871x_mp_ioctl.c if (pmppriv->mode == _LOOPBOOK_MODE_) mode 258 drivers/staging/rtl8712/rtl871x_mp_ioctl.c u32 mode; mode 263 drivers/staging/rtl8712/rtl871x_mp_ioctl.c mode = *((u32 *)poid_par_priv->information_buf); mode 264 drivers/staging/rtl8712/rtl871x_mp_ioctl.c Adapter->mppriv.mode = mode;/* 1 for loopback*/ mode 73 drivers/staging/rtl8712/rtl871x_pwrctrl.h unsigned char mode; mode 31 drivers/staging/rtl8712/sta_info.h u8 mode; mode 1316 drivers/staging/rtl8723bs/core/rtw_ap.c void rtw_set_macaddr_acl(struct adapter *padapter, int mode) mode 1321 drivers/staging/rtl8723bs/core/rtw_ap.c DBG_871X("%s, mode =%d\n", __func__, mode); mode 1323 drivers/staging/rtl8723bs/core/rtw_ap.c pacl_list->mode = mode; mode 2381 drivers/staging/rtl8723bs/core/rtw_ap.c pacl_list->mode = 0; mode 951 drivers/staging/rtl8723bs/core/rtw_cmd.c psetop->mode = (u8)networktype; mode 263 drivers/staging/rtl8723bs/core/rtw_ieee80211.c void rtw_set_supported_rate(u8 *SupportedRates, uint mode) mode 267 drivers/staging/rtl8723bs/core/rtw_ieee80211.c switch (mode) { mode 2222 drivers/staging/rtl8723bs/core/rtw_mlme.c psetauthparm->mode = (unsigned char)psecuritypriv->dot11AuthAlgrthm; mode 6016 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if (psetop->mode == Ndis802_11APMode) { mode 6020 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c } else if (psetop->mode == Ndis802_11Infrastructure) { mode 6024 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c } else if (psetop->mode == Ndis802_11IBSS) { mode 6035 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if (psetop->mode == Ndis802_11APMode) mode 6039 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if (psetop->mode == Ndis802_11APMode) { mode 6423 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if (pparm->mode < 4) mode 6424 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c pmlmeinfo->auth_algo = pparm->mode; mode 1295 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c int rtw_pm_set_lps(struct adapter *padapter, u8 mode) mode 1300 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (mode < PS_MODE_NUM) { mode 1301 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrctrlpriv->power_mgnt != mode) { mode 1302 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (PS_MODE_ACTIVE == mode) mode 1307 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrctrlpriv->power_mgnt = mode; mode 1317 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c int rtw_pm_set_ips(struct adapter *padapter, u8 mode) mode 1321 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (mode == IPS_NORMAL || mode == IPS_LEVEL_2) { mode 1322 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c rtw_ips_mode_req(pwrctrlpriv, mode); mode 1323 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c DBG_871X("%s %s\n", __func__, mode == IPS_NORMAL?"IPS_NORMAL":"IPS_LEVEL_2"); mode 1325 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c } else if (mode == IPS_NONE) { mode 1326 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c rtw_ips_mode_req(pwrctrlpriv, mode); mode 616 drivers/staging/rtl8723bs/core/rtw_sta_mgt.c if (pacl_list->mode == 1) /* accept unless in deny list */ mode 619 drivers/staging/rtl8723bs/core/rtw_sta_mgt.c else if (pacl_list->mode == 2)/* deny unless in accept list */ mode 297 drivers/staging/rtl8723bs/core/rtw_wlan_util.c void Switch_DM_Func(struct adapter *padapter, u32 mode, u8 enable) mode 300 drivers/staging/rtl8723bs/core/rtw_wlan_util.c rtw_hal_set_hwreg(padapter, HW_VAR_DM_FUNC_SET, (u8 *)(&mode)); mode 302 drivers/staging/rtl8723bs/core/rtw_wlan_util.c rtw_hal_set_hwreg(padapter, HW_VAR_DM_FUNC_CLR, (u8 *)(&mode)); mode 3320 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c u8 mode = *((u8 *)val); mode 3329 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c Set_MSR(padapter, mode); mode 3330 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c DBG_871X("#### %s() -%d iface_type(0) mode = %d ####\n", __func__, __LINE__, mode); mode 3332 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c if ((mode == _HW_STATE_STATION_) || (mode == _HW_STATE_NOLINK_)) { mode 3351 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c } else if (mode == _HW_STATE_ADHOC_) { mode 3354 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c } else if (mode == _HW_STATE_AP_) { mode 1131 drivers/staging/rtl8723bs/include/ieee80211.h void rtw_set_supported_rate(u8 *SupportedRates, uint mode) ; mode 20 drivers/staging/rtl8723bs/include/rtw_ap.h void rtw_set_macaddr_acl(struct adapter *padapter, int mode); mode 254 drivers/staging/rtl8723bs/include/rtw_cmd.h u8 mode; mode 286 drivers/staging/rtl8723bs/include/rtw_cmd.h u8 mode; /* 0: legacy open, 1: legacy shared 2: 802.1x */ mode 840 drivers/staging/rtl8723bs/include/rtw_cmd.h extern u8 rtw_setrfintfs_cmd(struct adapter *padapter, u8 mode); mode 467 drivers/staging/rtl8723bs/include/rtw_mlme_ext.h enum hw_mode {IEEE80211G, IEEE80211A} mode; mode 556 drivers/staging/rtl8723bs/include/rtw_mlme_ext.h void Switch_DM_Func(struct adapter *padapter, u32 mode, u8 enable); mode 213 drivers/staging/rtl8723bs/include/rtw_mp.h u32 mode;/* 0 for normal type packet, 1 for loopback packet (16bytes TXCMD) */ mode 92 drivers/staging/rtl8723bs/include/rtw_pwrctrl.h unsigned char mode; mode 356 drivers/staging/rtl8723bs/include/rtw_pwrctrl.h int rtw_pm_set_ips(struct adapter *padapter, u8 mode); mode 357 drivers/staging/rtl8723bs/include/rtw_pwrctrl.h int rtw_pm_set_lps(struct adapter *padapter, u8 mode); mode 28 drivers/staging/rtl8723bs/include/sta_info.h int mode; mode 168 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c iwe.u.mode = IW_MODE_MASTER; mode 170 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c iwe.u.mode = IW_MODE_ADHOC; mode 862 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c switch (wrqu->mode) { mode 883 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c RT_TRACE(_module_rtl871x_ioctl_os_c, _drv_err_, ("\n Mode: %s is not supported \n", iw_operation_mode[wrqu->mode])); mode 920 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c wrqu->mode = IW_MODE_INFRA; mode 923 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c wrqu->mode = IW_MODE_ADHOC; mode 925 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c wrqu->mode = IW_MODE_MASTER; mode 927 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c wrqu->mode = IW_MODE_AUTO; mode 4443 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c unsigned mode = 0; mode 4449 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c sscanf(extra+4, "%u", &mode); mode 4450 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c ret = rtw_pm_set_lps(padapter, mode); mode 4452 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c sscanf(extra+4, "%u", &mode); mode 4453 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c ret = rtw_pm_set_ips(padapter, mode); mode 5072 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c wdata.mode = subcmd; mode 5080 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c wdata.mode = subcmd; mode 76 drivers/staging/rtl8723bs/os_dep/osdep_service.c static int openFile(struct file **fpp, char *path, int flag, int mode) mode 80 drivers/staging/rtl8723bs/os_dep/osdep_service.c fp = filp_open(path, flag, mode); mode 836 drivers/staging/rts5208/ms.c static int msxc_change_power(struct rtsx_chip *chip, u8 mode) mode 848 drivers/staging/rts5208/ms.c buf[1] = mode; mode 1352 drivers/staging/rts5208/rtsx_chip.c u8 mode = 0, tmp; mode 1362 drivers/staging/rts5208/rtsx_chip.c mode |= (1 << i); mode 1368 drivers/staging/rts5208/rtsx_chip.c if (mode) { mode 1378 drivers/staging/rts5208/rtsx_chip.c 0x80 | mode | mode 943 drivers/staging/rts5208/rtsx_chip.h #define CHECK_LUN_MODE(chip, mode) ((chip)->lun_mode == (mode)) mode 1914 drivers/staging/rts5208/rtsx_scsi.c u8 mode; mode 1930 drivers/staging/rts5208/rtsx_scsi.c mode = srb->cmnd[3]; mode 1933 drivers/staging/rts5208/rtsx_scsi.c if (mode == 0) { mode 1940 drivers/staging/rts5208/rtsx_scsi.c } else if (mode == 1) { mode 1088 drivers/staging/rts5208/sd.c static int sd_check_switch_mode(struct rtsx_chip *chip, u8 mode, u8 func_group, mode 1096 drivers/staging/rts5208/sd.c __func__, mode, func_group, func_to_switch); mode 1099 drivers/staging/rts5208/sd.c cmd[1] = mode; mode 104 drivers/staging/rts5208/xd.c static void xd_assign_phy_addr(struct rtsx_chip *chip, u32 addr, u8 mode) mode 108 drivers/staging/rts5208/xd.c switch (mode) { mode 32 drivers/staging/sm750fb/ddk750_power.c void sm750_set_power_mode(unsigned int mode) mode 41 drivers/staging/sm750fb/ddk750_power.c switch (mode) { mode 59 drivers/staging/sm750fb/ddk750_power.c if (mode == POWER_MODE_CTRL_MODE_SLEEP) { mode 299 drivers/staging/speakup/speakup_dtlk.c status.mode = *t++; mode 44 drivers/staging/speakup/speakup_dtlk.h u_char mode; /* 0=Character; 1=Phoneme; 2=Text */ mode 684 drivers/staging/vc04_services/bcm2835-camera/mmal-parameters.h u32 mode; /* enum mmal_parameter_displaymode */ mode 385 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c unsigned int size, void *userdata, VCHIQ_BULK_MODE_T mode) mode 389 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c switch (mode) { mode 393 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c userdata, mode, mode 410 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c unsigned int size, void *userdata, VCHIQ_BULK_MODE_T mode) mode 414 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c switch (mode) { mode 418 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c mode, VCHIQ_BULK_RECEIVE); mode 1061 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c if (args.mode == VCHIQ_BULK_MODE_BLOCKING) { mode 1070 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c } else if (args.mode == VCHIQ_BULK_MODE_WAITING) { mode 1094 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c args.userdata, args.mode, dir); mode 1122 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c arg)->mode), mode 1614 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c VCHIQ_BULK_MODE_T mode; mode 1644 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c put_user(args32.mode, &args->mode)) mode 1657 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c if (get_user(args32.mode, &args->mode)) mode 1660 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c if (copy_to_user(&ptrargs32->mode, mode 1661 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c &args32.mode, mode 1662 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c sizeof(args32.mode))) mode 1221 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c if (bulk->mode == VCHIQ_BULK_MODE_BLOCKING) { mode 1231 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c } else if (bulk->mode == mode 2960 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c VCHIQ_BULK_MODE_T mode, mode 2978 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c switch (mode) { mode 3025 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c bulk->mode = mode; mode 213 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h short mode; mode 526 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h void *userdata, VCHIQ_BULK_MODE_T mode, mode 121 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_if.h VCHIQ_BULK_MODE_T mode); mode 124 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_if.h VCHIQ_BULK_MODE_T mode); mode 127 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_if.h void *userdata, VCHIQ_BULK_MODE_T mode); mode 130 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_if.h VCHIQ_BULK_MODE_T mode); mode 31 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_ioctl.h VCHIQ_BULK_MODE_T mode; mode 208 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c VCHIQ_BULK_MODE_T mode; mode 215 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c mode = VCHIQ_BULK_MODE_CALLBACK; mode 218 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c mode = VCHIQ_BULK_MODE_BLOCKING; mode 222 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c mode = VCHIQ_BULK_MODE_NOCALLBACK; mode 231 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c data_size, bulk_handle, mode); mode 268 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c VCHIQ_BULK_MODE_T mode; mode 275 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c mode = VCHIQ_BULK_MODE_CALLBACK; mode 279 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c mode = VCHIQ_BULK_MODE_BLOCKING; mode 283 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c mode = VCHIQ_BULK_MODE_NOCALLBACK; mode 292 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c data_size, bulk_handle, mode); mode 22 drivers/staging/vt6655/key.c u32 mode, bool onfly_latch) mode 61 drivers/staging/vt6655/key.c key_mode |= mode; mode 64 drivers/staging/vt6655/key.c key_mode |= (mode << 4); mode 68 drivers/staging/vt6655/key.c key_mode |= mode; mode 78 drivers/staging/vt6655/key.c if (mode == KEY_CTL_WEP) { mode 38 drivers/staging/vt6656/key.c u32 mode, bool onfly_latch) mode 77 drivers/staging/vt6656/key.c key_mode |= mode; mode 80 drivers/staging/vt6656/key.c key_mode |= (mode << 4); mode 84 drivers/staging/vt6656/key.c key_mode |= mode; mode 94 drivers/staging/vt6656/key.c if (mode == KEY_CTL_WEP) { mode 31 drivers/staging/wilc1000/wilc_hif.c __le32 mode; mode 42 drivers/staging/wilc1000/wilc_hif.c u8 mode; mode 1162 drivers/staging/wilc1000/wilc_hif.c u8 index, u8 mode, enum authtype auth_type) mode 1171 drivers/staging/wilc1000/wilc_hif.c wid_list[0].val = &mode; mode 1202 drivers/staging/wilc1000/wilc_hif.c u8 mode, u8 cipher_mode, u8 index) mode 1207 drivers/staging/wilc1000/wilc_hif.c if (mode == WILC_AP_MODE) { mode 1240 drivers/staging/wilc1000/wilc_hif.c } else if (mode == WILC_STATION_MODE) { mode 1273 drivers/staging/wilc1000/wilc_hif.c const u8 *rx_mic, const u8 *tx_mic, u8 mode, mode 1285 drivers/staging/wilc1000/wilc_hif.c if (mode == WILC_STATION_MODE && mode 1302 drivers/staging/wilc1000/wilc_hif.c if (mode == WILC_AP_MODE) { mode 1317 drivers/staging/wilc1000/wilc_hif.c } else if (mode == WILC_STATION_MODE) { mode 1410 drivers/staging/wilc1000/wilc_hif.c int wilc_set_operation_mode(struct wilc_vif *vif, int index, u8 mode, mode 1423 drivers/staging/wilc1000/wilc_hif.c drv.mode = (ifc_id | (mode << 1)); mode 178 drivers/staging/wilc1000/wilc_hif.h u8 index, u8 mode, enum authtype auth_type); mode 181 drivers/staging/wilc1000/wilc_hif.h u8 mode, u8 cipher_mode, u8 index); mode 186 drivers/staging/wilc1000/wilc_hif.h const u8 *rx_mic, const u8 *tx_mic, u8 mode, mode 222 drivers/staging/wilc1000/wilc_hif.h int wilc_set_operation_mode(struct wilc_vif *vif, int index, u8 mode, mode 108 drivers/staging/wilc1000/wilc_netdev.c if (wilc->vif[i]->mode == WILC_STATION_MODE) mode 114 drivers/staging/wilc1000/wilc_netdev.c if (wilc->vif[i]->mode == WILC_AP_MODE) mode 126 drivers/staging/wilc1000/wilc_netdev.c void wilc_wlan_set_bssid(struct net_device *wilc_netdev, u8 *bssid, u8 mode) mode 135 drivers/staging/wilc1000/wilc_netdev.c vif->mode = mode; mode 515 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c u8 mode = WILC_FW_SEC_NO; mode 527 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c mode = WILC_FW_SEC_WEP; mode 529 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c mode = WILC_FW_SEC_WEP_EXTENDED; mode 533 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c key_index, mode, mode 567 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c mode = WILC_FW_SEC_WPA_TKIP; mode 569 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c mode = WILC_FW_SEC_WPA2_AES; mode 571 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c priv->wilc_groupkey = mode; mode 576 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c mode = WILC_FW_SEC_WPA_TKIP; mode 578 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c mode = priv->wilc_groupkey | WILC_FW_AES; mode 602 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c op_mode, mode); mode 605 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c rx_mic, tx_mic, op_mode, mode, mode 204 drivers/staging/wilc1000/wilc_wfi_netdevice.h u8 mode; mode 289 drivers/staging/wilc1000/wilc_wfi_netdevice.h void wilc_wlan_set_bssid(struct net_device *wilc_netdev, u8 *bssid, u8 mode); mode 1118 drivers/staging/wilc1000/wilc_wlan.c int wilc_send_config_pkt(struct wilc_vif *vif, u8 mode, struct wid *wids, mode 1125 drivers/staging/wilc1000/wilc_wlan.c if (mode == WILC_GET_CFG) { mode 1141 drivers/staging/wilc1000/wilc_wlan.c } else if (mode == WILC_SET_CFG) { mode 300 drivers/staging/wilc1000/wilc_wlan.h int wilc_send_config_pkt(struct wilc_vif *vif, u8 mode, struct wid *wids, mode 1433 drivers/staging/wlan-ng/hfa384x.h u16 mode, u16 lowaddr, u16 highaddr, u16 codelen); mode 235 drivers/staging/wlan-ng/hfa384x_usb.c enum cmd_mode mode, mode 243 drivers/staging/wlan-ng/hfa384x_usb.c enum cmd_mode mode, mode 1013 drivers/staging/wlan-ng/hfa384x_usb.c int hfa384x_cmd_download(struct hfa384x *hw, u16 mode, u16 lowaddr, mode 1019 drivers/staging/wlan-ng/hfa384x_usb.c mode, lowaddr, highaddr, codelen); mode 1022 drivers/staging/wlan-ng/hfa384x_usb.c HFA384x_CMD_PROGMODE_SET(mode)); mode 1292 drivers/staging/wlan-ng/hfa384x_usb.c enum cmd_mode mode, mode 1315 drivers/staging/wlan-ng/hfa384x_usb.c ctlx->reapable = mode; mode 1324 drivers/staging/wlan-ng/hfa384x_usb.c } else if (mode == DOWAIT) { mode 1374 drivers/staging/wlan-ng/hfa384x_usb.c enum cmd_mode mode, mode 1401 drivers/staging/wlan-ng/hfa384x_usb.c ctlx->reapable = mode; mode 1410 drivers/staging/wlan-ng/hfa384x_usb.c } else if (mode == DOWAIT) { mode 579 drivers/target/target_core_file.c int mode = FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE; mode 584 drivers/target/target_core_file.c ret = file->f_op->fallocate(file, mode, pos, len); mode 75 drivers/target/target_core_iblock.c fmode_t mode; mode 93 drivers/target/target_core_iblock.c mode = FMODE_READ|FMODE_EXCL; mode 95 drivers/target/target_core_iblock.c mode |= FMODE_WRITE; mode 99 drivers/target/target_core_iblock.c bd = blkdev_get_by_path(ib_dev->ibd_udev_path, mode, ib_dev); mode 52 drivers/thermal/da9062-thermal.c enum thermal_device_mode mode; mode 125 drivers/thermal/da9062-thermal.c enum thermal_device_mode *mode) mode 128 drivers/thermal/da9062-thermal.c *mode = thermal->mode; mode 236 drivers/thermal/da9062-thermal.c thermal->mode = THERMAL_DEVICE_ENABLED; mode 207 drivers/thermal/imx_thermal.c enum thermal_device_mode mode; mode 266 drivers/thermal/imx_thermal.c if (data->mode == THERMAL_DEVICE_ENABLED) { mode 293 drivers/thermal/imx_thermal.c if (data->mode != THERMAL_DEVICE_ENABLED) { mode 342 drivers/thermal/imx_thermal.c enum thermal_device_mode *mode) mode 346 drivers/thermal/imx_thermal.c *mode = data->mode; mode 352 drivers/thermal/imx_thermal.c enum thermal_device_mode mode) mode 358 drivers/thermal/imx_thermal.c if (mode == THERMAL_DEVICE_ENABLED) { mode 386 drivers/thermal/imx_thermal.c data->mode = mode; mode 841 drivers/thermal/imx_thermal.c data->mode = THERMAL_DEVICE_ENABLED; mode 897 drivers/thermal/imx_thermal.c data->mode = THERMAL_DEVICE_DISABLED; mode 917 drivers/thermal/imx_thermal.c data->mode = THERMAL_DEVICE_ENABLED; mode 47 drivers/thermal/intel/int340x_thermal/int3400_thermal.c int mode; mode 234 drivers/thermal/intel/int340x_thermal/int3400_thermal.c enum thermal_device_mode *mode) mode 241 drivers/thermal/intel/int340x_thermal/int3400_thermal.c *mode = priv->mode; mode 247 drivers/thermal/intel/int340x_thermal/int3400_thermal.c enum thermal_device_mode mode) mode 256 drivers/thermal/intel/int340x_thermal/int3400_thermal.c if (mode == THERMAL_DEVICE_ENABLED) mode 258 drivers/thermal/intel/int340x_thermal/int3400_thermal.c else if (mode == THERMAL_DEVICE_DISABLED) mode 263 drivers/thermal/intel/int340x_thermal/int3400_thermal.c if (enable != priv->mode) { mode 264 drivers/thermal/intel/int340x_thermal/int3400_thermal.c priv->mode = enable; mode 109 drivers/thermal/intel/intel_quark_dts_thermal.c enum thermal_device_mode mode; mode 134 drivers/thermal/intel/intel_quark_dts_thermal.c aux_entry->mode = THERMAL_DEVICE_ENABLED; mode 145 drivers/thermal/intel/intel_quark_dts_thermal.c aux_entry->mode = THERMAL_DEVICE_ENABLED; mode 147 drivers/thermal/intel/intel_quark_dts_thermal.c aux_entry->mode = THERMAL_DEVICE_DISABLED; mode 167 drivers/thermal/intel/intel_quark_dts_thermal.c aux_entry->mode = THERMAL_DEVICE_DISABLED; mode 179 drivers/thermal/intel/intel_quark_dts_thermal.c aux_entry->mode = THERMAL_DEVICE_DISABLED; mode 181 drivers/thermal/intel/intel_quark_dts_thermal.c aux_entry->mode = THERMAL_DEVICE_ENABLED; mode 316 drivers/thermal/intel/intel_quark_dts_thermal.c enum thermal_device_mode *mode) mode 319 drivers/thermal/intel/intel_quark_dts_thermal.c *mode = aux_entry->mode; mode 324 drivers/thermal/intel/intel_quark_dts_thermal.c enum thermal_device_mode mode) mode 329 drivers/thermal/intel/intel_quark_dts_thermal.c if (mode == THERMAL_DEVICE_ENABLED) mode 68 drivers/thermal/of-thermal.c enum thermal_device_mode mode; mode 273 drivers/thermal/of-thermal.c enum thermal_device_mode *mode) mode 277 drivers/thermal/of-thermal.c *mode = data->mode; mode 283 drivers/thermal/of-thermal.c enum thermal_device_mode mode) mode 289 drivers/thermal/of-thermal.c if (mode == THERMAL_DEVICE_ENABLED) { mode 299 drivers/thermal/of-thermal.c data->mode = mode; mode 952 drivers/thermal/of-thermal.c tz->mode = THERMAL_DEVICE_DISABLED; mode 38 drivers/thermal/qcom/tsens-common.c u32 *p2, u32 mode) mode 49 drivers/thermal/qcom/tsens-common.c if (mode == TWO_PT_CALIB) { mode 140 drivers/thermal/qcom/tsens-v0_1.c int mode = 0; mode 153 drivers/thermal/qcom/tsens-v0_1.c mode = (qfprom_csel[0] & MSM8916_CAL_SEL_MASK) >> MSM8916_CAL_SEL_SHIFT; mode 154 drivers/thermal/qcom/tsens-v0_1.c dev_dbg(priv->dev, "calibration mode is %d\n", mode); mode 156 drivers/thermal/qcom/tsens-v0_1.c switch (mode) { mode 185 drivers/thermal/qcom/tsens-v0_1.c compute_intercept_slope(priv, p1, p2, mode); mode 196 drivers/thermal/qcom/tsens-v0_1.c int mode = 0; mode 214 drivers/thermal/qcom/tsens-v0_1.c mode = (calib[4] & CAL_SEL_0_1) >> CAL_SEL_SHIFT; mode 215 drivers/thermal/qcom/tsens-v0_1.c mode |= (calib[5] & CAL_SEL_2) >> CAL_SEL_SHIFT_2; mode 217 drivers/thermal/qcom/tsens-v0_1.c switch (mode) { mode 249 drivers/thermal/qcom/tsens-v0_1.c mode = (calib[1] & CAL_SEL_0_1) >> CAL_SEL_SHIFT; mode 250 drivers/thermal/qcom/tsens-v0_1.c mode |= (calib[3] & CAL_SEL_2) >> CAL_SEL_SHIFT_2; mode 252 drivers/thermal/qcom/tsens-v0_1.c switch (mode) { mode 285 drivers/thermal/qcom/tsens-v0_1.c switch (mode) { mode 321 drivers/thermal/qcom/tsens-v0_1.c compute_intercept_slope(priv, p1, p2, mode); mode 84 drivers/thermal/qcom/tsens-v1.c u32 mode = 0, lsb = 0, msb = 0; mode 92 drivers/thermal/qcom/tsens-v1.c mode = (qfprom_cdata[4] & CAL_SEL_MASK) >> CAL_SEL_SHIFT; mode 93 drivers/thermal/qcom/tsens-v1.c dev_dbg(priv->dev, "calibration mode is %d\n", mode); mode 95 drivers/thermal/qcom/tsens-v1.c switch (mode) { mode 140 drivers/thermal/qcom/tsens-v1.c compute_intercept_slope(priv, p1, p2, mode); mode 315 drivers/thermal/qcom/tsens.h void compute_intercept_slope(struct tsens_priv *priv, u32 *pt1, u32 *pt2, u32 mode); mode 78 drivers/thermal/rockchip_thermal.c enum adc_sort_mode mode; mode 510 drivers/thermal/rockchip_thermal.c switch (table->mode) { mode 516 drivers/thermal/rockchip_thermal.c pr_err("%s: unknown table mode: %d\n", __func__, table->mode); mode 537 drivers/thermal/rockchip_thermal.c switch (table->mode) { mode 573 drivers/thermal/rockchip_thermal.c pr_err("%s: unknown table mode: %d\n", __func__, table->mode); mode 808 drivers/thermal/rockchip_thermal.c enum tshut_mode mode) mode 813 drivers/thermal/rockchip_thermal.c if (mode == TSHUT_MODE_GPIO) { mode 844 drivers/thermal/rockchip_thermal.c .mode = ADC_INCREMENT, mode 868 drivers/thermal/rockchip_thermal.c .mode = ADC_INCREMENT, mode 892 drivers/thermal/rockchip_thermal.c .mode = ADC_INCREMENT, mode 917 drivers/thermal/rockchip_thermal.c .mode = ADC_DECREMENT, mode 940 drivers/thermal/rockchip_thermal.c .mode = ADC_INCREMENT, mode 965 drivers/thermal/rockchip_thermal.c .mode = ADC_INCREMENT, mode 990 drivers/thermal/rockchip_thermal.c .mode = ADC_INCREMENT, mode 1015 drivers/thermal/rockchip_thermal.c .mode = ADC_INCREMENT, mode 92 drivers/thermal/st/stm_thermal.c enum thermal_device_mode mode; mode 377 drivers/thermal/st/stm_thermal.c sensor->mode = THERMAL_DEVICE_DISABLED; mode 399 drivers/thermal/st/stm_thermal.c sensor->mode = THERMAL_DEVICE_ENABLED; mode 411 drivers/thermal/st/stm_thermal.c if (sensor->mode != THERMAL_DEVICE_ENABLED) mode 579 drivers/thermal/st/stm_thermal.c sensor->mode = THERMAL_DEVICE_DISABLED; mode 593 drivers/thermal/st/stm_thermal.c sensor->mode = THERMAL_DEVICE_ENABLED; mode 721 drivers/thermal/st/stm_thermal.c sensor->mode = THERMAL_DEVICE_ENABLED; mode 313 drivers/thermal/tegra/soctherm.c u32 mode; mode 1634 drivers/thermal/tegra/soctherm.c stc->oc_cfg.mode = OC_THROTTLE_MODE_BRIEF; mode 1903 drivers/thermal/tegra/soctherm.c if (oc->mode == OC_THROTTLE_MODE_DISABLED) mode 1907 drivers/thermal/tegra/soctherm.c r = REG_SET_MASK(r, OC1_CFG_THROTTLE_MODE_MASK, oc->mode); mode 745 drivers/thermal/thermal_core.c dev->attr.attr.mode = 0444; mode 754 drivers/thermal/thermal_core.c dev->weight_attr.attr.mode = S_IWUSR | S_IRUGO; mode 1559 drivers/thermal/thermal_core.c unsigned long mode, void *_unused) mode 1564 drivers/thermal/thermal_core.c switch (mode) { mode 170 drivers/thermal/thermal_hwmon.c temp->temp_input.attr.attr.mode = 0444; mode 182 drivers/thermal/thermal_hwmon.c temp->temp_crit.attr.attr.mode = 0444; mode 52 drivers/thermal/thermal_sysfs.c enum thermal_device_mode mode; mode 58 drivers/thermal/thermal_sysfs.c result = tz->ops->get_mode(tz, &mode); mode 62 drivers/thermal/thermal_sysfs.c return sprintf(buf, "%s\n", mode == THERMAL_DEVICE_ENABLED ? "enabled" mode 404 drivers/thermal/thermal_sysfs.c static DEVICE_ATTR_RW(mode); mode 447 drivers/thermal/thermal_sysfs.c return attr->mode; mode 482 drivers/thermal/thermal_sysfs.c return attr->mode; mode 558 drivers/thermal/thermal_sysfs.c tz->trip_type_attrs[indx].attr.attr.mode = S_IRUGO; mode 569 drivers/thermal/thermal_sysfs.c tz->trip_temp_attrs[indx].attr.attr.mode = S_IRUGO; mode 573 drivers/thermal/thermal_sysfs.c tz->trip_temp_attrs[indx].attr.attr.mode |= S_IWUSR; mode 588 drivers/thermal/thermal_sysfs.c tz->trip_hyst_attrs[indx].attr.attr.mode = S_IRUGO; mode 591 drivers/thermal/thermal_sysfs.c tz->trip_hyst_attrs[indx].attr.attr.mode |= S_IWUSR; mode 32 drivers/thermal/ti-soc-thermal/ti-thermal-common.c enum thermal_device_mode mode; mode 157 drivers/thermal/ti-soc-thermal/ti-thermal-common.c data->mode = THERMAL_DEVICE_ENABLED; mode 285 drivers/thunderbolt/domain.c return attr->mode; mode 289 drivers/thunderbolt/domain.c return attr->mode; mode 1377 drivers/thunderbolt/switch.c return attr->mode; mode 1381 drivers/thunderbolt/switch.c return attr->mode; mode 1385 drivers/thunderbolt/switch.c return attr->mode; mode 1389 drivers/thunderbolt/switch.c return attr->mode; mode 1393 drivers/thunderbolt/switch.c return sw->safe_mode ? 0 : attr->mode; mode 1494 drivers/tty/moxa.c static void MoxaPortFlushData(struct moxa_port *port, int mode) mode 1497 drivers/tty/moxa.c if (mode < 0 || mode > 2) mode 1500 drivers/tty/moxa.c moxafunc(ofsAddr, FC_FlushQueue, mode); mode 1501 drivers/tty/moxa.c if (mode != 1) { mode 1751 drivers/tty/moxa.c tcflag_t mode = 0; mode 1755 drivers/tty/moxa.c mode = termio->c_cflag & CSIZE; mode 1756 drivers/tty/moxa.c if (mode == CS5) mode 1757 drivers/tty/moxa.c mode = MX_CS5; mode 1758 drivers/tty/moxa.c else if (mode == CS6) mode 1759 drivers/tty/moxa.c mode = MX_CS6; mode 1760 drivers/tty/moxa.c else if (mode == CS7) mode 1761 drivers/tty/moxa.c mode = MX_CS7; mode 1762 drivers/tty/moxa.c else if (mode == CS8) mode 1763 drivers/tty/moxa.c mode = MX_CS8; mode 1766 drivers/tty/moxa.c if (mode == MX_CS5) mode 1767 drivers/tty/moxa.c mode |= MX_STOP15; mode 1769 drivers/tty/moxa.c mode |= MX_STOP2; mode 1771 drivers/tty/moxa.c mode |= MX_STOP1; mode 1776 drivers/tty/moxa.c mode |= MX_PARMARK; mode 1778 drivers/tty/moxa.c mode |= MX_PARODD; mode 1781 drivers/tty/moxa.c mode |= MX_PARSPACE; mode 1783 drivers/tty/moxa.c mode |= MX_PAREVEN; mode 1786 drivers/tty/moxa.c mode |= MX_PARNONE; mode 1788 drivers/tty/moxa.c moxafunc(ofsAddr, FC_SetDataMode, (u16)mode); mode 1820 drivers/tty/moxa.c u8 mode = 0; mode 1823 drivers/tty/moxa.c mode |= DTR_ON; mode 1825 drivers/tty/moxa.c mode |= RTS_ON; mode 1826 drivers/tty/moxa.c port->lineCtrl = mode; mode 1827 drivers/tty/moxa.c moxafunc(port->tableAddr, FC_LineControl, mode); mode 1833 drivers/tty/moxa.c int mode = 0; mode 1836 drivers/tty/moxa.c mode |= RTS_FlowCtl; mode 1838 drivers/tty/moxa.c mode |= CTS_FlowCtl; mode 1840 drivers/tty/moxa.c mode |= Tx_FlowCtl; mode 1842 drivers/tty/moxa.c mode |= Rx_FlowCtl; mode 1844 drivers/tty/moxa.c mode |= IXM_IXANY; mode 1845 drivers/tty/moxa.c moxafunc(port->tableAddr, FC_SetFlowCtl, mode); mode 531 drivers/tty/mxser.c static unsigned char mxser_get_msr(int baseaddr, int mode, int port) mode 541 drivers/tty/mxser.c if (mode) mode 124 drivers/tty/n_gsm.c int mode; mode 1372 drivers/tty/n_gsm.c if (gsm->dlci[0]->mode == DLCI_MODE_ADM) mode 1484 drivers/tty/n_gsm.c dlci->mode = DLCI_MODE_ADM; mode 2894 drivers/tty/n_gsm.c if (gsm->encoding == 0 && gsm->dlci[0]->mode == DLCI_MODE_ADM && mode 224 drivers/tty/rocket.c static void sSetInterfaceMode(CHANNEL_T * ChP, Byte_t mode); mode 3064 drivers/tty/rocket.c static void sSetInterfaceMode(CHANNEL_T * ChP, Byte_t mode) mode 3066 drivers/tty/rocket.c sOutB(ChP->CtlP->AiopIO[2], (mode & 0x18) | ChP->ChanNum); mode 398 drivers/tty/serial/8250/8250_exar.c u8 mode, value; mode 402 drivers/tty/serial/8250/8250_exar.c mode = IOT2040_UART_MODE_RS422; mode 404 drivers/tty/serial/8250/8250_exar.c mode = IOT2040_UART_MODE_RS485; mode 407 drivers/tty/serial/8250/8250_exar.c mode |= IOT2040_UART_TERMINATE_BUS; mode 409 drivers/tty/serial/8250/8250_exar.c mode = IOT2040_UART_MODE_RS232; mode 414 drivers/tty/serial/8250/8250_exar.c mode <<= IOT2040_UART2_SHIFT; mode 419 drivers/tty/serial/8250/8250_exar.c value |= mode; mode 223 drivers/tty/serial/8250/8250_mtk.c static void mtk8250_set_flow_ctrl(struct uart_8250_port *up, int mode) mode 233 drivers/tty/serial/8250/8250_mtk.c switch (mode) { mode 295 drivers/tty/serial/8250/8250_mtk.c int mode; mode 371 drivers/tty/serial/8250/8250_mtk.c mode = MTK_UART_FC_HW; mode 373 drivers/tty/serial/8250/8250_mtk.c mode = MTK_UART_FC_SW; mode 375 drivers/tty/serial/8250/8250_mtk.c mode = MTK_UART_FC_NONE; mode 377 drivers/tty/serial/8250/8250_mtk.c mtk8250_set_flow_ctrl(up, mode); mode 742 drivers/tty/serial/8250/8250_port.c unsigned char mode; mode 745 drivers/tty/serial/8250/8250_port.c mode = serial_in(up, UART_RSA_MSR); mode 746 drivers/tty/serial/8250/8250_port.c result = mode & UART_RSA_MSR_FIFO; mode 749 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_RSA_MSR, mode | UART_RSA_MSR_FIFO); mode 750 drivers/tty/serial/8250/8250_port.c mode = serial_in(up, UART_RSA_MSR); mode 751 drivers/tty/serial/8250/8250_port.c result = mode & UART_RSA_MSR_FIFO; mode 781 drivers/tty/serial/8250/8250_port.c unsigned char mode; mode 788 drivers/tty/serial/8250/8250_port.c mode = serial_in(up, UART_RSA_MSR); mode 789 drivers/tty/serial/8250/8250_port.c result = !(mode & UART_RSA_MSR_FIFO); mode 792 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_RSA_MSR, mode & ~UART_RSA_MSR_FIFO); mode 793 drivers/tty/serial/8250/8250_port.c mode = serial_in(up, UART_RSA_MSR); mode 794 drivers/tty/serial/8250/8250_port.c result = !(mode & UART_RSA_MSR_FIFO); mode 302 drivers/tty/serial/atmel_serial.c unsigned int mode; mode 307 drivers/tty/serial/atmel_serial.c mode = atmel_uart_readl(port, ATMEL_US_MR); mode 310 drivers/tty/serial/atmel_serial.c mode &= ~ATMEL_US_USMODE; mode 319 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_USMODE_RS485; mode 328 drivers/tty/serial/atmel_serial.c atmel_uart_writel(port, ATMEL_US_MR, mode); mode 367 drivers/tty/serial/atmel_serial.c unsigned int mode; mode 374 drivers/tty/serial/atmel_serial.c mode = atmel_uart_readl(port, ATMEL_US_MR); mode 377 drivers/tty/serial/atmel_serial.c mode &= ~ATMEL_US_USMODE; mode 388 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_USMODE_ISO7816_T0 | ATMEL_US_DSNACK; mode 391 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_USMODE_ISO7816_T1 | ATMEL_US_INACK; mode 399 drivers/tty/serial/atmel_serial.c mode &= ~(ATMEL_US_USCLKS | ATMEL_US_NBSTOP | ATMEL_US_PAR); mode 402 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_USCLKS_MCK | ATMEL_US_CLKO; mode 404 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_PAR_EVEN | ATMEL_US_NBSTOP_1 | ATMEL_US_MAX_ITER(3); mode 433 drivers/tty/serial/atmel_serial.c mode = atmel_port->backup_mode; mode 448 drivers/tty/serial/atmel_serial.c atmel_uart_writel(port, ATMEL_US_MR, mode); mode 477 drivers/tty/serial/atmel_serial.c unsigned int mode = atmel_uart_readl(port, ATMEL_US_MR); mode 485 drivers/tty/serial/atmel_serial.c mode &= ~ATMEL_US_USMODE; mode 486 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_USMODE_RS485; mode 490 drivers/tty/serial/atmel_serial.c if ((mode & ATMEL_US_USMODE) == ATMEL_US_USMODE_HWHS) { mode 519 drivers/tty/serial/atmel_serial.c mode &= ~ATMEL_US_CHMODE; mode 521 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_CHMODE_LOC_LOOP; mode 523 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_CHMODE_NORMAL; mode 525 drivers/tty/serial/atmel_serial.c atmel_uart_writel(port, ATMEL_US_MR, mode); mode 2137 drivers/tty/serial/atmel_serial.c unsigned int old_mode, mode, imr, quot, baud, div, cd, fp = 0; mode 2140 drivers/tty/serial/atmel_serial.c mode = old_mode = atmel_uart_readl(port, ATMEL_US_MR); mode 2143 drivers/tty/serial/atmel_serial.c mode &= ~(ATMEL_US_USCLKS | ATMEL_US_CHRL | ATMEL_US_NBSTOP | mode 2151 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_CHRL_5; mode 2154 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_CHRL_6; mode 2157 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_CHRL_7; mode 2160 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_CHRL_8; mode 2166 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_NBSTOP_2; mode 2173 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_PAR_MARK; mode 2175 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_PAR_SPACE; mode 2177 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_PAR_ODD; mode 2179 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_PAR_EVEN; mode 2181 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_PAR_NONE; mode 2231 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_USMODE_RS485; mode 2235 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_USCLKS_MCK | ATMEL_US_CLKO; mode 2237 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_MAX_ITER(3); mode 2240 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_USMODE_ISO7816_T0; mode 2242 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_USMODE_ISO7816_T1; mode 2261 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_USMODE_HWHS; mode 2267 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_USMODE_NORMAL; mode 2271 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_USMODE_NORMAL; mode 2294 drivers/tty/serial/atmel_serial.c mode |= ATMEL_US_USCLKS_MCK_DIV8; mode 2302 drivers/tty/serial/atmel_serial.c atmel_uart_writel(port, ATMEL_US_MR, mode); mode 2308 drivers/tty/serial/atmel_serial.c if ((old_mode & ATMEL_US_USMODE) != (mode & ATMEL_US_USMODE)) { mode 2311 drivers/tty/serial/atmel_serial.c if ((mode & ATMEL_US_USMODE) == ATMEL_US_USMODE_HWHS) { mode 1025 drivers/tty/serial/ifx6x60.c spi->mode = IFX_SPI_MODE | (SPI_LOOP & spi->mode); mode 273 drivers/tty/serial/kgdb_nmi.c unsigned int mode = file->f_flags & O_ACCMODE; mode 277 drivers/tty/serial/kgdb_nmi.c if (!ret && (mode == O_RDONLY || mode == O_RDWR)) mode 286 drivers/tty/serial/kgdb_nmi.c unsigned int mode = file->f_flags & O_ACCMODE; mode 288 drivers/tty/serial/kgdb_nmi.c if (mode == O_RDONLY || mode == O_RDWR) mode 504 drivers/tty/serial/max310x.c unsigned int mode = 0, div = 0, frac = 0, c = 0, F = 0; mode 515 drivers/tty/serial/max310x.c mode = MAX310X_BRGCFG_4XMODE_BIT; mode 519 drivers/tty/serial/max310x.c mode = MAX310X_BRGCFG_2XMODE_BIT; mode 536 drivers/tty/serial/max310x.c max310x_port_write(port, MAX310X_BRGCFG_REG, frac | mode); mode 1468 drivers/tty/serial/max310x.c spi->mode = spi->mode ? : SPI_MODE_0; mode 179 drivers/tty/serial/meson_uart.c u32 ostatus, status, ch, mode; mode 194 drivers/tty/serial/meson_uart.c mode = readl(port->membase + AML_UART_CONTROL); mode 195 drivers/tty/serial/meson_uart.c mode |= AML_UART_CLEAR_ERR; mode 196 drivers/tty/serial/meson_uart.c writel(mode, port->membase + AML_UART_CONTROL); mode 199 drivers/tty/serial/meson_uart.c mode &= ~AML_UART_CLEAR_ERR; mode 200 drivers/tty/serial/meson_uart.c writel(mode, port->membase + AML_UART_CONTROL); mode 153 drivers/tty/serial/mpc52xx_uart.c out_8(&PSC(port)->mode, mr1); mode 154 drivers/tty/serial/mpc52xx_uart.c out_8(&PSC(port)->mode, mr2); mode 191 drivers/tty/serial/mpc52xx_uart.c return in_8(&PSC(port)->mode); mode 226 drivers/tty/serial/omap-serial.c unsigned int baud, unsigned int mode) mode 228 drivers/tty/serial/omap-serial.c unsigned int n = port->uartclk / (mode * baud); mode 234 drivers/tty/serial/omap-serial.c abs_diff = baud - (port->uartclk / (mode * n)); mode 269 drivers/tty/serial/omap-serial.c unsigned int mode; mode 272 drivers/tty/serial/omap-serial.c mode = 13; mode 274 drivers/tty/serial/omap-serial.c mode = 16; mode 275 drivers/tty/serial/omap-serial.c return port->uartclk/(mode * baud); mode 1399 drivers/tty/serial/omap-serial.c unsigned int mode; mode 1405 drivers/tty/serial/omap-serial.c mode = up->ier; mode 1430 drivers/tty/serial/omap-serial.c up->ier = mode; mode 1388 drivers/tty/serial/sc16is7xx.c spi->mode = spi->mode ? : SPI_MODE_0; mode 294 drivers/tty/serial/st-asc.c unsigned long status, mode; mode 304 drivers/tty/serial/st-asc.c mode = asc_in(port, ASC_CTL) & ASC_CTL_MODE_MSK; mode 305 drivers/tty/serial/st-asc.c if (mode == ASC_CTL_MODE_8BIT || mode == ASC_CTL_MODE_8BIT_PAR) mode 87 drivers/tty/serial/suncore.c const char *mode, *s; mode 95 drivers/tty/serial/suncore.c mode = of_get_property(uart_dp, mode 97 drivers/tty/serial/suncore.c if (!mode) mode 98 drivers/tty/serial/suncore.c mode = "115200,8,n,1,-"; mode 100 drivers/tty/serial/suncore.c mode = "9600,8,n,1,-"; mode 112 drivers/tty/serial/suncore.c mode = of_get_property(dp, mode_prop, NULL); mode 113 drivers/tty/serial/suncore.c if (!mode) mode 114 drivers/tty/serial/suncore.c mode = "9600,8,n,1,-"; mode 120 drivers/tty/serial/suncore.c s = mode; mode 425 drivers/tty/serial/sunsab.c writeb(up->cached_mode, &up->regs->rw.mode); mode 569 drivers/tty/serial/sunsab.c writeb(up->cached_mode, &up->regs->w.mode); mode 617 drivers/tty/serial/sunsab.c writeb(up->cached_mode, &up->regs->rw.mode); mode 1009 drivers/tty/serial/sunsab.c up->cached_mode = readb(&up->regs->rw.mode); mode 1011 drivers/tty/serial/sunsab.c writeb(up->cached_mode, &up->regs->rw.mode); mode 1013 drivers/tty/serial/sunsab.c writeb(up->cached_mode, &up->regs->rw.mode); mode 14 drivers/tty/serial/sunsab.h u8 mode; /* Mode Register */ mode 45 drivers/tty/serial/sunsab.h u8 mode; mode 81 drivers/tty/serial/sunsab.h u8 mode; mode 196 drivers/tty/serial/sunsu.c unsigned char mode; mode 199 drivers/tty/serial/sunsu.c mode = serial_inp(up, UART_RSA_MSR); mode 200 drivers/tty/serial/sunsu.c result = mode & UART_RSA_MSR_FIFO; mode 203 drivers/tty/serial/sunsu.c serial_outp(up, UART_RSA_MSR, mode | UART_RSA_MSR_FIFO); mode 204 drivers/tty/serial/sunsu.c mode = serial_inp(up, UART_RSA_MSR); mode 205 drivers/tty/serial/sunsu.c result = mode & UART_RSA_MSR_FIFO; mode 235 drivers/tty/serial/sunsu.c unsigned char mode; mode 242 drivers/tty/serial/sunsu.c mode = serial_inp(up, UART_RSA_MSR); mode 243 drivers/tty/serial/sunsu.c result = !(mode & UART_RSA_MSR_FIFO); mode 246 drivers/tty/serial/sunsu.c serial_outp(up, UART_RSA_MSR, mode & ~UART_RSA_MSR_FIFO); mode 247 drivers/tty/serial/sunsu.c mode = serial_inp(up, UART_RSA_MSR); mode 248 drivers/tty/serial/sunsu.c result = !(mode & UART_RSA_MSR_FIFO); mode 1099 drivers/tty/synclink.c (info->params.mode == MGSL_MODE_HDLC ? mgsl_get_rx_frame : mgsl_get_raw_rx_frame); mode 1540 drivers/tty/synclink.c (info->params.mode == MGSL_MODE_HDLC)) { mode 1871 drivers/tty/synclink.c if (info->params.mode == MGSL_MODE_HDLC || mode 1872 drivers/tty/synclink.c info->params.mode == MGSL_MODE_RAW || mode 2019 drivers/tty/synclink.c if ((info->params.mode == MGSL_MODE_ASYNC ) || !info->tx_active) { mode 2063 drivers/tty/synclink.c if ( (info->params.mode == MGSL_MODE_HDLC || mode 2064 drivers/tty/synclink.c info->params.mode == MGSL_MODE_RAW) && info->xmit_cnt ) { mode 2107 drivers/tty/synclink.c if ( info->params.mode == MGSL_MODE_HDLC || mode 2108 drivers/tty/synclink.c info->params.mode == MGSL_MODE_RAW ) { mode 2112 drivers/tty/synclink.c if ( info->params.mode == MGSL_MODE_HDLC ) { mode 2229 drivers/tty/synclink.c if ( info->params.mode == MGSL_MODE_HDLC || mode 2230 drivers/tty/synclink.c info->params.mode == MGSL_MODE_RAW ) { mode 2264 drivers/tty/synclink.c if ( info->params.mode == MGSL_MODE_HDLC || mode 2265 drivers/tty/synclink.c info->params.mode == MGSL_MODE_RAW ) { mode 2608 drivers/tty/synclink.c if ( info->tx_active && info->params.mode == MGSL_MODE_HDLC ) mode 3145 drivers/tty/synclink.c if ( info->params.mode == MGSL_MODE_HDLC || mode 3146 drivers/tty/synclink.c info->params.mode == MGSL_MODE_RAW ) { mode 3465 drivers/tty/synclink.c if (info->params.mode == MGSL_MODE_HDLC || mode 3466 drivers/tty/synclink.c info->params.mode == MGSL_MODE_RAW ) { mode 4616 drivers/tty/synclink.c if (info->params.mode == MGSL_MODE_RAW) { mode 4652 drivers/tty/synclink.c if ( info->params.mode == MGSL_MODE_HDLC && mode 5441 drivers/tty/synclink.c if ( info->params.mode == MGSL_MODE_HDLC || mode 5442 drivers/tty/synclink.c info->params.mode == MGSL_MODE_RAW ) { mode 5518 drivers/tty/synclink.c if ( info->params.mode == MGSL_MODE_ASYNC ) { mode 5538 drivers/tty/synclink.c if ( info->params.mode == MGSL_MODE_RAW ) mode 5556 drivers/tty/synclink.c if ( info->params.mode == MGSL_MODE_RAW && mode 5992 drivers/tty/synclink.c unsigned long oldmode = info->params.mode; mode 5994 drivers/tty/synclink.c info->params.mode = MGSL_MODE_HDLC; mode 6048 drivers/tty/synclink.c info->params.mode = oldmode; mode 6103 drivers/tty/synclink.c if ( info->params.mode == MGSL_MODE_RAW ) { mode 7461 drivers/tty/synclink.c (info->params.mode == MGSL_MODE_HDLC || mode 7462 drivers/tty/synclink.c info->params.mode == MGSL_MODE_RAW) ) { mode 357 drivers/tty/synclink_gt.c .mode = MGSL_MODE_HDLC, mode 806 drivers/tty/synclink_gt.c if (info->params.mode == MGSL_MODE_HDLC) { mode 988 drivers/tty/synclink_gt.c if (info->tx_enabled && info->params.mode == MGSL_MODE_ASYNC) mode 1133 drivers/tty/synclink_gt.c tmp_params.mode = (compat_ulong_t)info->params.mode; mode 1160 drivers/tty/synclink_gt.c if (tmp_params.mode == MGSL_MODE_BASE_CLOCK) { mode 1163 drivers/tty/synclink_gt.c info->params.mode = tmp_params.mode; mode 1258 drivers/tty/synclink_gt.c if (info->params.mode != MGSL_MODE_ASYNC) { mode 1932 drivers/tty/synclink_gt.c switch(info->params.mode) { mode 2106 drivers/tty/synclink_gt.c if (info->params.mode == MGSL_MODE_ASYNC) mode 2133 drivers/tty/synclink_gt.c if (info->params.mode == MGSL_MODE_ASYNC) { mode 2274 drivers/tty/synclink_gt.c if (info->params.mode != MGSL_MODE_ASYNC) { mode 2290 drivers/tty/synclink_gt.c if (info->params.mode != MGSL_MODE_ASYNC && info->drop_rts_on_tx_done) { mode 2480 drivers/tty/synclink_gt.c if (info->params.mode != MGSL_MODE_ASYNC || mode 2609 drivers/tty/synclink_gt.c if (tmp_params.mode == MGSL_MODE_BASE_CLOCK) mode 2634 drivers/tty/synclink_gt.c if (info->params.mode != MGSL_MODE_ASYNC) mode 3529 drivers/tty/synclink_gt.c info->params.mode = MGSL_MODE_ASYNC; mode 3897 drivers/tty/synclink_gt.c if (info->params.mode != MGSL_MODE_ASYNC) { mode 3979 drivers/tty/synclink_gt.c if (info->params.mode == MGSL_MODE_ASYNC) { mode 3989 drivers/tty/synclink_gt.c if (info->params.mode != MGSL_MODE_ASYNC) { mode 4018 drivers/tty/synclink_gt.c if (info->params.mode != MGSL_MODE_ASYNC) { mode 4262 drivers/tty/synclink_gt.c switch(info->params.mode) { mode 4337 drivers/tty/synclink_gt.c switch(info->params.mode) { mode 4754 drivers/tty/synclink_gt.c switch(info->params.mode) { mode 4898 drivers/tty/synclink_gt.c if ((!size && info->params.mode == MGSL_MODE_HDLC) || mode 4899 drivers/tty/synclink_gt.c info->params.mode == MGSL_MODE_RAW) mode 5030 drivers/tty/synclink_gt.c info->params.mode = MGSL_MODE_ASYNC; mode 5099 drivers/tty/synclink_gt.c if(info->tx_active && info->params.mode == MGSL_MODE_HDLC) { mode 925 drivers/tty/synclinkmp.c if (info->params.mode == MGSL_MODE_HDLC) { mode 964 drivers/tty/synclinkmp.c if (info->params.mode == MGSL_MODE_HDLC) { mode 1007 drivers/tty/synclinkmp.c if ( (info->params.mode != MGSL_MODE_HDLC) || mode 1085 drivers/tty/synclinkmp.c if ( info->params.mode == MGSL_MODE_HDLC ) { mode 1123 drivers/tty/synclinkmp.c if (info->params.mode == MGSL_MODE_HDLC) { mode 1163 drivers/tty/synclinkmp.c if ( (info->params.mode == MGSL_MODE_HDLC) && mode 1371 drivers/tty/synclinkmp.c if (info->params.mode == MGSL_MODE_HDLC) { mode 2099 drivers/tty/synclinkmp.c if (info->params.mode == MGSL_MODE_ASYNC) { mode 2225 drivers/tty/synclinkmp.c if (info->params.mode != MGSL_MODE_ASYNC) { mode 2237 drivers/tty/synclinkmp.c if (info->params.mode != MGSL_MODE_ASYNC && info->drop_rts_on_tx_done ) { mode 2296 drivers/tty/synclinkmp.c if (info->params.mode != MGSL_MODE_ASYNC) { mode 2707 drivers/tty/synclinkmp.c if (info->params.mode == MGSL_MODE_HDLC || info->netcount) mode 2960 drivers/tty/synclinkmp.c if ( info->tx_active && info->params.mode == MGSL_MODE_HDLC ) { mode 4132 drivers/tty/synclinkmp.c if ( info->params.mode == MGSL_MODE_HDLC ) { mode 4199 drivers/tty/synclinkmp.c if (info->params.mode != MGSL_MODE_ASYNC) { mode 5464 drivers/tty/synclinkmp.c if(info->tx_active && info->params.mode == MGSL_MODE_HDLC) { mode 3402 drivers/tty/tty_io.c static char *tty_devnode(struct device *dev, umode_t *mode) mode 3404 drivers/tty/tty_io.c if (!mode) mode 3408 drivers/tty/tty_io.c *mode = 0666; mode 863 drivers/tty/tty_ldisc.c .mode = 0644, mode 874 drivers/tty/tty_ldisc.c .mode = 0555, mode 883 drivers/tty/tty_ldisc.c .mode = 0555, mode 474 drivers/tty/vcc.c .mode = LDC_MODE_RAW, mode 325 drivers/tty/vt/keyboard.c static void applkey(struct vc_data *vc, int key, char mode) mode 329 drivers/tty/vt/keyboard.c buf[1] = (mode ? 'O' : '['); mode 196 drivers/tty/vt/selection.c int mode, ret = 0; mode 226 drivers/tty/vt/selection.c mode = vt_do_kdgkbmode(fg_console); mode 227 drivers/tty/vt/selection.c if (mode == K_UNICODE) mode 2886 drivers/tty/vt/vt.c (vc->vt_mode.mode == VT_AUTO && vc->vc_mode == KD_GRAPHICS)) { mode 4212 drivers/tty/vt/vt.c unsigned int mode; mode 4214 drivers/tty/vt/vt.c if (get_user(mode, p + 1)) mode 4217 drivers/tty/vt/vt.c vesa_blank_mode = (mode < 4) ? mode : 0; mode 611 drivers/tty/vt/vt_ioctl.c if (tmp.mode != VT_AUTO && tmp.mode != VT_PROCESS) { mode 726 drivers/tty/vt/vt_ioctl.c nvc->vt_mode = vsa.mode; mode 768 drivers/tty/vt/vt_ioctl.c if (vc->vt_mode.mode != VT_PROCESS) { mode 1049 drivers/tty/vt/vt_ioctl.c vc->vt_mode.mode = VT_AUTO; mode 1298 drivers/tty/vt/vt_ioctl.c if (vc->vt_mode.mode == VT_PROCESS) { mode 1358 drivers/tty/vt/vt_ioctl.c if (vc->vt_mode.mode == VT_PROCESS) { mode 144 drivers/uio/uio_hv_generic.c .mode = 0600, mode 40 drivers/usb/c67x00/c67x00-drv.c sie->mode = c67x00_sie_config(dev->pdata->sie_config, sie_num); mode 42 drivers/usb/c67x00/c67x00-drv.c switch (sie->mode) { mode 55 drivers/usb/c67x00/c67x00-drv.c sie->mode, sie->sie_num); mode 62 drivers/usb/c67x00/c67x00-drv.c switch (sie->mode) { mode 201 drivers/usb/c67x00/c67x00.h int mode; mode 30 drivers/usb/cdns3/drd.c int cdns3_set_mode(struct cdns3 *cdns, enum usb_dr_mode mode) mode 35 drivers/usb/cdns3/drd.c switch (mode) { mode 60 drivers/usb/cdns3/drd.c dev_err(cdns->dev, "Unsupported mode of operation %d\n", mode); mode 165 drivers/usb/cdns3/drd.h int cdns3_set_mode(struct cdns3 *cdns, enum usb_dr_mode mode); mode 449 drivers/usb/chipidea/ci.h int hw_port_test_set(struct ci_hdrc *ci, u8 mode); mode 188 drivers/usb/chipidea/core.c int hw_port_test_set(struct ci_hdrc *ci, u8 mode) mode 192 drivers/usb/chipidea/core.c if (mode > TEST_MODE_MAX) mode 195 drivers/usb/chipidea/core.c hw_write(ci, OP_PORTSC, PORTSC_PTC, mode << __ffs(PORTSC_PTC)); mode 57 drivers/usb/chipidea/debug.c unsigned mode; mode 61 drivers/usb/chipidea/debug.c mode = hw_port_test_get(ci); mode 65 drivers/usb/chipidea/debug.c seq_printf(s, "mode = %u\n", mode); mode 79 drivers/usb/chipidea/debug.c unsigned mode; mode 90 drivers/usb/chipidea/debug.c if (sscanf(buf, "%u", &mode) != 1) mode 93 drivers/usb/chipidea/debug.c if (mode > 255) mode 98 drivers/usb/chipidea/debug.c ret = hw_port_test_set(ci, mode); mode 1062 drivers/usb/class/usblp.c static char *usblp_devnode(struct device *dev, umode_t *mode) mode 65 drivers/usb/core/file.c static char *usb_devnode(struct device *dev, umode_t *mode) mode 72 drivers/usb/core/file.c return drv->devnode(dev, mode); mode 482 drivers/usb/core/hub.c unsigned selector, mode; mode 491 drivers/usb/core/hub.c mode = INDICATOR_AUTO; mode 496 drivers/usb/core/hub.c mode = INDICATOR_GREEN_BLINK_OFF; mode 500 drivers/usb/core/hub.c mode = INDICATOR_GREEN_BLINK; mode 505 drivers/usb/core/hub.c mode = INDICATOR_AMBER_BLINK_OFF; mode 509 drivers/usb/core/hub.c mode = INDICATOR_AMBER_BLINK; mode 514 drivers/usb/core/hub.c mode = INDICATOR_ALT_BLINK_OFF; mode 518 drivers/usb/core/hub.c mode = INDICATOR_ALT_BLINK; mode 526 drivers/usb/core/hub.c hub->indicator[i] = mode; mode 214 drivers/usb/core/ledtrig-usbport.c port->attr.attr.mode = S_IRUSR | S_IWUSR; mode 127 drivers/usb/core/phy.c enum phy_mode mode) mode 139 drivers/usb/core/phy.c err = phy_set_mode(roothub_entry->phy, mode); mode 20 drivers/usb/core/phy.h enum phy_mode mode); mode 865 drivers/usb/core/sysfs.c return a->mode; mode 921 drivers/usb/core/sysfs.c .attr = {.name = "descriptors", .mode = 0444}, mode 1241 drivers/usb/core/sysfs.c return a->mode; mode 511 drivers/usb/core/usb.c umode_t *mode, kuid_t *uid, kgid_t *gid) mode 84 drivers/usb/dwc2/platform.c enum usb_dr_mode mode; mode 90 drivers/usb/dwc2/platform.c mode = hsotg->dr_mode; mode 98 drivers/usb/dwc2/platform.c mode = USB_DR_MODE_PERIPHERAL; mode 105 drivers/usb/dwc2/platform.c mode = USB_DR_MODE_HOST; mode 108 drivers/usb/dwc2/platform.c mode = USB_DR_MODE_HOST; mode 110 drivers/usb/dwc2/platform.c mode = USB_DR_MODE_PERIPHERAL; mode 113 drivers/usb/dwc2/platform.c if (mode != hsotg->dr_mode) { mode 116 drivers/usb/dwc2/platform.c mode == USB_DR_MODE_HOST ? "host" : "device"); mode 118 drivers/usb/dwc2/platform.c hsotg->dr_mode = mode; mode 49 drivers/usb/dwc3/core.c enum usb_dr_mode mode; mode 56 drivers/usb/dwc3/core.c mode = dwc->dr_mode; mode 66 drivers/usb/dwc3/core.c mode = USB_DR_MODE_PERIPHERAL; mode 74 drivers/usb/dwc3/core.c mode = USB_DR_MODE_HOST; mode 78 drivers/usb/dwc3/core.c mode = USB_DR_MODE_HOST; mode 80 drivers/usb/dwc3/core.c mode = USB_DR_MODE_PERIPHERAL; mode 87 drivers/usb/dwc3/core.c if (mode == USB_DR_MODE_OTG && mode 89 drivers/usb/dwc3/core.c mode = USB_DR_MODE_PERIPHERAL; mode 92 drivers/usb/dwc3/core.c if (mode != dwc->dr_mode) { mode 95 drivers/usb/dwc3/core.c mode == USB_DR_MODE_HOST ? "host" : "gadget"); mode 97 drivers/usb/dwc3/core.c dwc->dr_mode = mode; mode 103 drivers/usb/dwc3/core.c void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode) mode 109 drivers/usb/dwc3/core.c reg |= DWC3_GCTL_PRTCAPDIR(mode); mode 112 drivers/usb/dwc3/core.c dwc->current_dr_role = mode; mode 195 drivers/usb/dwc3/core.c void dwc3_set_mode(struct dwc3 *dwc, u32 mode) mode 200 drivers/usb/dwc3/core.c dwc->desired_dr_role = mode; mode 1393 drivers/usb/dwc3/core.h void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode); mode 1394 drivers/usb/dwc3/core.h void dwc3_set_mode(struct dwc3 *dwc, u32 mode); mode 1427 drivers/usb/dwc3/core.h int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode); mode 1438 drivers/usb/dwc3/core.h static inline int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode) mode 425 drivers/usb/dwc3/debugfs.c u32 mode = 0; mode 432 drivers/usb/dwc3/debugfs.c mode = DWC3_GCTL_PRTCAP_HOST; mode 435 drivers/usb/dwc3/debugfs.c mode = DWC3_GCTL_PRTCAP_DEVICE; mode 438 drivers/usb/dwc3/debugfs.c mode = DWC3_GCTL_PRTCAP_OTG; mode 440 drivers/usb/dwc3/debugfs.c dwc3_set_mode(dwc, mode); mode 126 drivers/usb/dwc3/dwc3-meson-g12a.c int i, enum phy_mode mode) mode 128 drivers/usb/dwc3/dwc3-meson-g12a.c if (mode == PHY_MODE_USB_HOST) mode 294 drivers/usb/dwc3/dwc3-meson-g12a.c enum phy_mode mode) mode 301 drivers/usb/dwc3/dwc3-meson-g12a.c if (mode == PHY_MODE_USB_HOST) mode 307 drivers/usb/dwc3/dwc3-meson-g12a.c if (mode == PHY_MODE_USB_DEVICE) mode 315 drivers/usb/dwc3/dwc3-meson-g12a.c priv->otg_phy_mode = mode; mode 317 drivers/usb/dwc3/dwc3-meson-g12a.c dwc3_meson_g12a_usb2_set_mode(priv, USB2_OTG_PHY, mode); mode 327 drivers/usb/dwc3/dwc3-meson-g12a.c enum phy_mode mode; mode 332 drivers/usb/dwc3/dwc3-meson-g12a.c mode = (role == USB_ROLE_HOST) ? PHY_MODE_USB_HOST mode 335 drivers/usb/dwc3/dwc3-meson-g12a.c if (mode == priv->otg_phy_mode) mode 338 drivers/usb/dwc3/dwc3-meson-g12a.c return dwc3_meson_g12a_otg_mode_set(priv, mode); mode 76 drivers/usb/dwc3/dwc3-qcom.c enum usb_dr_mode mode; mode 127 drivers/usb/dwc3/dwc3-qcom.c qcom->mode = event ? USB_DR_MODE_PERIPHERAL : USB_DR_MODE_HOST; mode 139 drivers/usb/dwc3/dwc3-qcom.c qcom->mode = event ? USB_DR_MODE_HOST : USB_DR_MODE_PERIPHERAL; mode 651 drivers/usb/dwc3/dwc3-qcom.c qcom->mode = usb_get_dr_mode(&qcom->dwc3->dev); mode 654 drivers/usb/dwc3/dwc3-qcom.c if (qcom->mode == USB_DR_MODE_PERIPHERAL) mode 41 drivers/usb/dwc3/gadget.c int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode) mode 48 drivers/usb/dwc3/gadget.c switch (mode) { mode 54 drivers/usb/dwc3/gadget.c reg |= mode << 1; mode 1404 drivers/usb/gadget/function/f_fs.c inode->i_mode = perms->mode; mode 1477 drivers/usb/gadget/function/f_fs.c data->perms.mode = data->root_mode; mode 1538 drivers/usb/gadget/function/f_fs.c data->perms.mode = (result.uint_32 & 0666) | S_IFREG; mode 1542 drivers/usb/gadget/function/f_fs.c data->perms.mode = (result.uint_32 & 0666) | S_IFREG; mode 1631 drivers/usb/gadget/function/f_fs.c ctx->perms.mode = S_IFREG | 0600; mode 2725 drivers/usb/gadget/function/f_mass_storage.c return attr->mode; mode 273 drivers/usb/gadget/function/u_fs.h umode_t mode; mode 1946 drivers/usb/gadget/legacy/inode.c int mode) mode 1952 drivers/usb/gadget/legacy/inode.c inode->i_mode = mode; mode 2625 drivers/usb/gadget/udc/fsl_udc_core.c u32 mode, usbcmd; mode 2627 drivers/usb/gadget/udc/fsl_udc_core.c mode = fsl_readl(&dr_regs->usbmode) & USB_MODE_CTRL_MODE_MASK; mode 2629 drivers/usb/gadget/udc/fsl_udc_core.c pr_debug("%s(): mode 0x%x stopped %d\n", __func__, mode, udc->stopped); mode 2642 drivers/usb/gadget/udc/fsl_udc_core.c if (mode != USB_MODE_CTRL_MODE_DEVICE) { mode 95 drivers/usb/gadget/udc/goku_udc.c u32 mode; mode 124 drivers/usb/gadget/udc/goku_udc.c mode = 0; mode 128 drivers/usb/gadget/udc/goku_udc.c mode++; /* fall through */ mode 130 drivers/usb/gadget/udc/goku_udc.c mode++; /* fall through */ mode 132 drivers/usb/gadget/udc/goku_udc.c mode++; /* fall through */ mode 134 drivers/usb/gadget/udc/goku_udc.c mode <<= 3; mode 139 drivers/usb/gadget/udc/goku_udc.c mode |= 2 << 1; /* bulk, or intr-with-toggle */ mode 146 drivers/usb/gadget/udc/goku_udc.c mode |= 1; mode 174 drivers/usb/gadget/udc/goku_udc.c writel(mode, ep->reg_mode); mode 129 drivers/usb/gadget/udc/gr_udc.c int mode = (epctrl & GR_EPCTRL_TT_MASK) >> GR_EPCTRL_TT_POS; mode 133 drivers/usb/gadget/udc/gr_udc.c seq_printf(seq, " mode = %s\n", gr_modestring[mode]); mode 144 drivers/usb/gadget/udc/gr_udc.c if (mode == 1 || mode == 3) mode 1470 drivers/usb/gadget/udc/gr_udc.c u8 mode; mode 1504 drivers/usb/gadget/udc/gr_udc.c mode = 0; mode 1506 drivers/usb/gadget/udc/gr_udc.c mode = 1; mode 1508 drivers/usb/gadget/udc/gr_udc.c mode = 2; mode 1510 drivers/usb/gadget/udc/gr_udc.c mode = 3; mode 1524 drivers/usb/gadget/udc/gr_udc.c if (nt && (mode == 0 || mode == 2)) { mode 1527 drivers/usb/gadget/udc/gr_udc.c (mode == 2 ? "Bulk" : "Control")); mode 1583 drivers/usb/gadget/udc/gr_udc.c | (mode << GR_EPCTRL_TT_POS) mode 1594 drivers/usb/gadget/udc/gr_udc.c ep->ep.name, gr_modestring[mode], ep->bytes_per_buffer); mode 1413 drivers/usb/gadget/udc/mv_udc_core.c static void mv_set_ptc(struct mv_udc *udc, u32 mode) mode 1418 drivers/usb/gadget/udc/mv_udc_core.c portsc |= mode << 16; mode 2131 drivers/usb/gadget/udc/mv_udc_core.c if (pdata->mode == MV_USB_MODE_OTG) { mode 2398 drivers/usb/gadget/udc/mv_udc_core.c u32 mode; mode 2403 drivers/usb/gadget/udc/mv_udc_core.c mode = readl(&udc->op_regs->usbmode); mode 2404 drivers/usb/gadget/udc/mv_udc_core.c mode &= ~3; mode 2405 drivers/usb/gadget/udc/mv_udc_core.c writel(mode, &udc->op_regs->usbmode); mode 1290 drivers/usb/gadget/udc/net2272.c net2272_set_fifo_mode(struct net2272 *dev, int mode) mode 1295 drivers/usb/gadget/udc/net2272.c tmp |= (mode << 6); mode 1303 drivers/usb/gadget/udc/net2272.c switch (mode) { mode 1661 drivers/usb/gadget/udc/net2272.c net2272_set_test_mode(struct net2272 *dev, int mode) mode 1688 drivers/usb/gadget/udc/net2272.c net2272_write(dev, USBTEST, mode); mode 1691 drivers/usb/gadget/udc/net2272.c if (mode == TEST_PACKET) { mode 1911 drivers/usb/gadget/udc/net2280.c static void set_fifo_mode(struct net2280 *dev, int mode) mode 1914 drivers/usb/gadget/udc/net2280.c writel((0xffff << PCI_BASE2_RANGE) | mode, &dev->regs->fifoctl); mode 1920 drivers/usb/gadget/udc/net2280.c switch (mode) { mode 2517 drivers/usb/gadget/udc/net2280.c int mode = 1; mode 2558 drivers/usb/gadget/udc/net2280.c mode = 2; mode 2564 drivers/usb/gadget/udc/net2280.c mode = 2; mode 2576 drivers/usb/gadget/udc/net2280.c mode = 2; mode 2695 drivers/usb/gadget/udc/net2280.c mode = 2; mode 2710 drivers/usb/gadget/udc/net2280.c mode = 2; mode 2713 drivers/usb/gadget/udc/net2280.c } else if (mode == 1) mode 2717 drivers/usb/gadget/udc/net2280.c if (mode == 2) { mode 439 drivers/usb/host/ehci-fsl.c u32 mode = ehci_readl(ehci, hcd->regs + FSL_SOC_USB_USBMODE); mode 440 drivers/usb/host/ehci-fsl.c mode &= USBMODE_CM_MASK; mode 445 drivers/usb/host/ehci-fsl.c pdata->already_suspended, mode, tmp); mode 30 drivers/usb/host/ehci-mv.c int mode; mode 113 drivers/usb/host/ehci-mv.c ehci_mv->mode = MV_USB_MODE_HOST; mode 115 drivers/usb/host/ehci-mv.c ehci_mv->mode = pdata->mode; mode 169 drivers/usb/host/ehci-mv.c if (ehci_mv->mode == MV_USB_MODE_OTG) { mode 208 drivers/usb/host/ehci-mv.c ehci_mv->mode == MV_USB_MODE_OTG ? "OTG" : "Host"); mode 234 drivers/usb/host/ehci-mv.c if (ehci_mv->mode == MV_USB_MODE_HOST) { mode 150 drivers/usb/host/fhci-hub.c u8 mode; mode 157 drivers/usb/host/fhci-hub.c mode = in_8(&fhci->regs->usb_usmod); mode 158 drivers/usb/host/fhci-hub.c out_8(&fhci->regs->usb_usmod, mode & (~USB_MODE_EN)); mode 170 drivers/usb/host/fhci-hub.c mode = in_8(&fhci->regs->usb_usmod); mode 171 drivers/usb/host/fhci-hub.c out_8(&fhci->regs->usb_usmod, mode | USB_MODE_EN); mode 220 drivers/usb/host/fhci-q.c if (ed->mode == FHCI_TF_ISO) { mode 62 drivers/usb/host/fhci-sched.c if (ed->mode == FHCI_TF_ISO) { mode 128 drivers/usb/host/fhci-sched.c u8 mode; mode 131 drivers/usb/host/fhci-sched.c mode = in_8(&usb->fhci->regs->usb_usmod); mode 148 drivers/usb/host/fhci-sched.c out_8(&usb->fhci->regs->usb_usmod, mode | USB_MODE_EN); mode 165 drivers/usb/host/fhci-sched.c switch (ed->mode) { mode 240 drivers/usb/host/fhci-sched.c ed->ep_addr, ed->mode, ed->speed, td->toggle)) { mode 714 drivers/usb/host/fhci-sched.c ed->mode = FHCI_TF_CTRL; mode 717 drivers/usb/host/fhci-sched.c ed->mode = FHCI_TF_BULK; mode 720 drivers/usb/host/fhci-sched.c ed->mode = FHCI_TF_INTR; mode 723 drivers/usb/host/fhci-sched.c ed->mode = FHCI_TF_ISO; mode 737 drivers/usb/host/fhci-sched.c if (ed->mode == FHCI_TF_ISO) { mode 765 drivers/usb/host/fhci-sched.c switch (ed->mode) { mode 872 drivers/usb/host/fhci-sched.c switch (ed->mode) { mode 525 drivers/usb/host/fhci-tds.c u8 mode; mode 534 drivers/usb/host/fhci-tds.c mode = in_8(&usb->fhci->regs->usb_usmod); mode 535 drivers/usb/host/fhci-tds.c out_8(&usb->fhci->regs->usb_usmod, mode & ~USB_MODE_EN); mode 572 drivers/usb/host/fhci-tds.c out_8(&usb->fhci->regs->usb_usmod, mode | USB_MODE_EN); mode 326 drivers/usb/host/fhci.h enum fhci_tf_mode mode; /* USB transfer mode */ mode 161 drivers/usb/host/max3421-hcd.c u8 mode; mode 472 drivers/usb/host/max3421-hcd.c u8 mode_lowspeed, mode_hubpre, mode = max3421_hcd->mode; mode 477 drivers/usb/host/max3421-hcd.c mode |= mode_lowspeed; mode 478 drivers/usb/host/max3421-hcd.c mode &= ~mode_hubpre; mode 480 drivers/usb/host/max3421-hcd.c mode |= mode_lowspeed | mode_hubpre; mode 482 drivers/usb/host/max3421-hcd.c mode &= ~(mode_lowspeed | mode_hubpre); mode 484 drivers/usb/host/max3421-hcd.c if (mode != max3421_hcd->mode) { mode 485 drivers/usb/host/max3421-hcd.c max3421_hcd->mode = mode; mode 486 drivers/usb/host/max3421-hcd.c spi_wr8(hcd, MAX3421_REG_MODE, max3421_hcd->mode); mode 1115 drivers/usb/host/max3421-hcd.c u8 hrsl, mode; mode 1122 drivers/usb/host/max3421-hcd.c mode = max3421_hcd->mode; mode 1130 drivers/usb/host/max3421-hcd.c mode &= ~BIT(MAX3421_MODE_SOFKAENAB_BIT); mode 1137 drivers/usb/host/max3421-hcd.c mode ^= BIT(MAX3421_MODE_LOWSPEED_BIT); mode 1139 drivers/usb/host/max3421-hcd.c mode |= BIT(MAX3421_MODE_SOFKAENAB_BIT); mode 1147 drivers/usb/host/max3421-hcd.c max3421_hcd->mode = mode; mode 1148 drivers/usb/host/max3421-hcd.c spi_wr8(hcd, MAX3421_REG_MODE, max3421_hcd->mode); mode 1156 drivers/usb/host/max3421-hcd.c if (mode & BIT(MAX3421_MODE_LOWSPEED_BIT)) mode 1344 drivers/usb/host/max3421-hcd.c max3421_hcd->mode = (BIT(MAX3421_MODE_HOST_BIT) | mode 1348 drivers/usb/host/max3421-hcd.c spi_wr8(hcd, MAX3421_REG_MODE, max3421_hcd->mode); mode 141 drivers/usb/host/ohci-pxa27x.c static int pxa27x_ohci_select_pmm(struct pxa27x_ohci *pxa_ohci, int mode) mode 146 drivers/usb/host/ohci-pxa27x.c switch (mode) { mode 163 drivers/usb/host/ohci-pxa27x.c mode ); mode 333 drivers/usb/image/mdc800.c static int mdc800_usb_waitForIRQ (int mode, int msec) mode 335 drivers/usb/image/mdc800.c mdc800->camera_request_ready=1+mode; mode 726 drivers/usb/misc/iowarrior.c static char *iowarrior_devnode(struct device *dev, umode_t *mode) mode 250 drivers/usb/misc/legousbtower.c static char *legousbtower_devnode(struct device *dev, umode_t *mode) mode 697 drivers/usb/misc/sisusbvga/sisusb_con.c sisusbcon_cursor(struct vc_data *c, int mode) mode 718 drivers/usb/misc/sisusbvga/sisusb_con.c if (mode == CM_ERASE) { mode 1328 drivers/usb/misc/sisusbvga/sisusb_con.c static void sisusbdummycon_cursor(struct vc_data *vc, int mode) { } mode 45 drivers/usb/misc/usb3503.c enum usb3503_mode mode; mode 121 drivers/usb/misc/usb3503.c hub->mode = USB3503_MODE_HUB; mode 127 drivers/usb/misc/usb3503.c static int usb3503_switch_mode(struct usb3503 *hub, enum usb3503_mode mode) mode 132 drivers/usb/misc/usb3503.c switch (mode) { mode 164 drivers/usb/misc/usb3503.c u32 mode = USB3503_MODE_HUB; mode 173 drivers/usb/misc/usb3503.c hub->mode = pdata->initial_mode; mode 242 drivers/usb/misc/usb3503.c of_property_read_u32(np, "initial-mode", &mode); mode 243 drivers/usb/misc/usb3503.c hub->mode = mode; mode 286 drivers/usb/misc/usb3503.c usb3503_switch_mode(hub, hub->mode); mode 289 drivers/usb/misc/usb3503.c (hub->mode == USB3503_MODE_HUB) ? "hub" : "standby"); mode 361 drivers/usb/misc/usb3503.c usb3503_switch_mode(hub, hub->mode); mode 23 drivers/usb/misc/usb4604.c enum usb4604_mode mode; mode 52 drivers/usb/misc/usb4604.c hub->mode = USB4604_MODE_HUB; mode 58 drivers/usb/misc/usb4604.c static int usb4604_switch_mode(struct usb4604 *hub, enum usb4604_mode mode) mode 63 drivers/usb/misc/usb4604.c switch (mode) { mode 87 drivers/usb/misc/usb4604.c u32 mode = USB4604_MODE_HUB; mode 94 drivers/usb/misc/usb4604.c if (of_property_read_u32(np, "initial-mode", &hub->mode)) mode 95 drivers/usb/misc/usb4604.c hub->mode = mode; mode 97 drivers/usb/misc/usb4604.c return usb4604_switch_mode(hub, hub->mode); mode 131 drivers/usb/misc/usb4604.c usb4604_switch_mode(hub, hub->mode); mode 259 drivers/usb/misc/uss720.c int mode; mode 265 drivers/usb/misc/uss720.c mode = (priv->reg[2] >> 5) & 0x7; mode 266 drivers/usb/misc/uss720.c if (mode == m) mode 269 drivers/usb/misc/uss720.c if (mode > ECR_PS2 && m > ECR_PS2) mode 277 drivers/usb/misc/uss720.c switch (mode) { mode 301 drivers/usb/mtu3/mtu3_dr.c enum mtu3_dr_force_mode mode) mode 306 drivers/usb/mtu3/mtu3_dr.c switch (mode) { mode 77 drivers/usb/mtu3/mtu3_dr.h enum mtu3_dr_force_mode mode); mode 98 drivers/usb/mtu3/mtu3_dr.h ssusb_set_force_mode(struct ssusb_mtk *ssusb, enum mtu3_dr_force_mode mode) mode 948 drivers/usb/musb/cppi_dma.c u16 maxpacket, u8 mode, mode 996 drivers/usb/musb/cppi_dma.c cppi_next_rx_segment(musb, cppi_ch, mode); mode 542 drivers/usb/musb/da8xx.c pdata->mode = musb_get_mode(&pdev->dev); mode 351 drivers/usb/musb/davinci.c static int davinci_musb_set_mode(struct musb *musb, u8 mode) mode 71 drivers/usb/musb/jz4740.c .mode = MUSB_PERIPHERAL, mode 111 drivers/usb/musb/musb_core.c enum usb_dr_mode mode; mode 113 drivers/usb/musb/musb_core.c mode = usb_get_dr_mode(dev); mode 114 drivers/usb/musb/musb_core.c switch (mode) { mode 1149 drivers/usb/musb/musb_core.c { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, }, mode 1150 drivers/usb/musb/musb_core.c { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, }, mode 1151 drivers/usb/musb/musb_core.c { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, .mode = BUF_DOUBLE, }, mode 1168 drivers/usb/musb/musb_core.c { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, }, mode 1169 drivers/usb/musb/musb_core.c { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, }, mode 1260 drivers/usb/musb/musb_core.c if (cfg->mode == BUF_DOUBLE) { mode 1754 drivers/usb/musb/musb_core.c static DEVICE_ATTR_RW(mode); mode 2186 drivers/usb/musb/musb_core.c musb->port_mode = plat->mode; mode 173 drivers/usb/musb/musb_core.h int (*set_mode)(struct musb *musb, u8 mode); mode 518 drivers/usb/musb/musb_core.h static inline int musb_platform_set_mode(struct musb *musb, u8 mode) mode 523 drivers/usb/musb/musb_core.h return musb->ops->set_mode(musb, mode); mode 50 drivers/usb/musb/musb_cppi41.c unsigned int mode); mode 329 drivers/usb/musb/musb_cppi41.c static u32 update_ep_mode(unsigned ep, unsigned mode, u32 old) mode 335 drivers/usb/musb/musb_cppi41.c old |= mode << shift; mode 340 drivers/usb/musb/musb_cppi41.c unsigned mode) mode 353 drivers/usb/musb/musb_cppi41.c new_mode = update_ep_mode(port, mode, old_mode); mode 367 drivers/usb/musb/musb_cppi41.c unsigned int mode) mode 383 drivers/usb/musb/musb_cppi41.c new_mode |= mode << shift; mode 393 drivers/usb/musb/musb_cppi41.c unsigned mode) mode 402 drivers/usb/musb/musb_cppi41.c new_mode = update_ep_mode(port, mode, old_mode); mode 412 drivers/usb/musb/musb_cppi41.c u16 packet_sz, u8 mode, mode 427 drivers/usb/musb/musb_cppi41.c cppi41_channel->tx_zlp = (cppi41_channel->is_tx && mode) ? 1 : 0; mode 524 drivers/usb/musb/musb_cppi41.c u16 packet_sz, u8 mode, mode 547 drivers/usb/musb/musb_cppi41.c ret = cppi41_configure_channel(channel, packet_sz, mode, dma_addr, len); mode 160 drivers/usb/musb/musb_dma.h u16 maxpacket, u8 mode, mode 55 drivers/usb/musb/musb_dsps.c u16 mode; mode 94 drivers/usb/musb/musb_dsps.c u32 mode; mode 510 drivers/usb/musb/musb_dsps.c static int dsps_musb_set_mode(struct musb *musb, u8 mode) mode 518 drivers/usb/musb/musb_dsps.c reg = musb_readl(ctrl_base, wrp->mode); mode 520 drivers/usb/musb/musb_dsps.c switch (mode) { mode 531 drivers/usb/musb/musb_dsps.c musb_writel(ctrl_base, wrp->mode, reg); mode 544 drivers/usb/musb/musb_dsps.c musb_writel(ctrl_base, wrp->mode, reg); mode 550 drivers/usb/musb/musb_dsps.c dev_err(glue->dev, "unsupported mode %d\n", mode); mode 782 drivers/usb/musb/musb_dsps.c pdata.mode = musb_get_mode(dev); mode 937 drivers/usb/musb/musb_dsps.c .mode = 0xe8, mode 992 drivers/usb/musb/musb_dsps.c glue->context.mode = musb_readl(mbase, wrp->mode); mode 1018 drivers/usb/musb/musb_dsps.c musb_writel(mbase, wrp->mode, glue->context.mode); mode 587 drivers/usb/musb/musb_host.c u32 *length, u8 *mode) mode 599 drivers/usb/musb/musb_host.c *mode = 1; mode 615 drivers/usb/musb/musb_host.c *mode = 0; mode 619 drivers/usb/musb/musb_host.c channel->desired_mode = *mode; mode 629 drivers/usb/musb/musb_host.c u8 *mode) mode 639 drivers/usb/musb/musb_host.c *mode = (urb->transfer_flags & URB_ZERO_PACKET) ? 1 : 0; mode 648 drivers/usb/musb/musb_host.c u8 mode; mode 652 drivers/usb/musb/musb_host.c &length, &mode); mode 655 drivers/usb/musb/musb_host.c &length, &mode); mode 667 drivers/usb/musb/musb_host.c if (!dma->channel_program(channel, pkt_size, mode, mode 149 drivers/usb/musb/musbhsdma.c u16 packet_sz, u8 mode, mode 160 drivers/usb/musb/musbhsdma.c channel, packet_sz, &dma_addr, len, mode); mode 162 drivers/usb/musb/musbhsdma.c if (mode) { mode 187 drivers/usb/musb/musbhsdma.c u16 packet_sz, u8 mode, mode 197 drivers/usb/musb/musbhsdma.c packet_sz, &dma_addr, len, mode); mode 220 drivers/usb/musb/musbhsdma.c configure_channel(channel, packet_sz, mode, dma_addr, len); mode 419 drivers/usb/musb/omap2430.c of_property_read_u32(np, "mode", (u32 *)&pdata->mode); mode 324 drivers/usb/musb/sunxi.c static int sunxi_musb_set_mode(struct musb *musb, u8 mode) mode 329 drivers/usb/musb/sunxi.c switch (mode) { mode 687 drivers/usb/musb/sunxi.c pdata.mode = MUSB_HOST; mode 693 drivers/usb/musb/sunxi.c pdata.mode = MUSB_PERIPHERAL; mode 699 drivers/usb/musb/sunxi.c pdata.mode = MUSB_OTG; mode 361 drivers/usb/musb/tusb6010.c static void tusb_set_clock_source(struct musb *musb, unsigned mode) mode 374 drivers/usb/musb/tusb6010.c if (mode > 0) mode 375 drivers/usb/musb/tusb6010.c reg |= TUSB_PRCM_CONF_SYS_CLKSEL(mode & 0x3); mode 192 drivers/usb/musb/ux500.c const char *mode; mode 199 drivers/usb/musb/ux500.c mode = of_get_property(np, "dr_mode", &strlen); mode 200 drivers/usb/musb/ux500.c if (!mode) { mode 206 drivers/usb/musb/ux500.c if (!strcmp(mode, "host")) mode 207 drivers/usb/musb/ux500.c pdata->mode = MUSB_HOST; mode 208 drivers/usb/musb/ux500.c if (!strcmp(mode, "otg")) mode 209 drivers/usb/musb/ux500.c pdata->mode = MUSB_OTG; mode 210 drivers/usb/musb/ux500.c if (!strcmp(mode, "peripheral")) mode 211 drivers/usb/musb/ux500.c pdata->mode = MUSB_PERIPHERAL; mode 71 drivers/usb/musb/ux500_dma.c u16 packet_sz, u8 mode, mode 88 drivers/usb/musb/ux500_dma.c packet_sz, mode, (unsigned long long) dma_addr, mode 190 drivers/usb/musb/ux500_dma.c u16 packet_sz, u8 mode, mode 200 drivers/usb/musb/ux500_dma.c ret = ux500_configure_channel(channel, packet_sz, mode, dma_addr, len); mode 131 drivers/usb/phy/phy-ab8500-usb.c enum ab8500_usb_mode mode; mode 339 drivers/usb/phy/phy-ab8500-usb.c ab->mode = USB_IDLE; mode 359 drivers/usb/phy/phy-ab8500-usb.c if (ab->mode == USB_IDLE) { mode 360 drivers/usb/phy/phy-ab8500-usb.c ab->mode = USB_PERIPHERAL; mode 375 drivers/usb/phy/phy-ab8500-usb.c if (ab->mode == USB_IDLE) { mode 376 drivers/usb/phy/phy-ab8500-usb.c ab->mode = USB_HOST; mode 389 drivers/usb/phy/phy-ab8500-usb.c ab->mode = USB_DEDICATED_CHG; mode 431 drivers/usb/phy/phy-ab8500-usb.c ab->mode = USB_IDLE; mode 452 drivers/usb/phy/phy-ab8500-usb.c if (ab->mode == USB_IDLE) { mode 453 drivers/usb/phy/phy-ab8500-usb.c ab->mode = USB_PERIPHERAL; mode 467 drivers/usb/phy/phy-ab8500-usb.c if (ab->mode == USB_IDLE) { mode 468 drivers/usb/phy/phy-ab8500-usb.c ab->mode = USB_HOST; mode 481 drivers/usb/phy/phy-ab8500-usb.c ab->mode = USB_DEDICATED_CHG; mode 549 drivers/usb/phy/phy-ab8500-usb.c if (ab->mode == USB_HOST) { mode 555 drivers/usb/phy/phy-ab8500-usb.c ab->mode = USB_IDLE; mode 558 drivers/usb/phy/phy-ab8500-usb.c if (ab->mode == USB_PERIPHERAL) { mode 564 drivers/usb/phy/phy-ab8500-usb.c ab->mode = USB_IDLE; mode 570 drivers/usb/phy/phy-ab8500-usb.c if (ab->mode == USB_DEDICATED_CHG) { mode 626 drivers/usb/phy/phy-ab8500-usb.c if ((ab->mode != USB_IDLE) && !gadget) { mode 627 drivers/usb/phy/phy-ab8500-usb.c ab->mode = USB_IDLE; mode 650 drivers/usb/phy/phy-ab8500-usb.c if ((ab->mode != USB_IDLE) && !host) { mode 651 drivers/usb/phy/phy-ab8500-usb.c ab->mode = USB_IDLE; mode 952 drivers/usb/phy/phy-ab8500-usb.c if (ab->mode == USB_HOST) mode 954 drivers/usb/phy/phy-ab8500-usb.c else if (ab->mode == USB_PERIPHERAL) mode 504 drivers/usb/phy/phy-tegra-usb.c if (phy->mode == USB_DR_MODE_PERIPHERAL) { mode 584 drivers/usb/phy/phy-tegra-usb.c if (phy->mode == USB_DR_MODE_HOST) mode 604 drivers/usb/phy/phy-tegra-usb.c if (phy->mode == USB_DR_MODE_PERIPHERAL) { mode 1118 drivers/usb/phy/phy-tegra-usb.c tegra_phy->mode = usb_get_dr_mode(&pdev->dev); mode 1120 drivers/usb/phy/phy-tegra-usb.c tegra_phy->mode = USB_DR_MODE_HOST; mode 1122 drivers/usb/phy/phy-tegra-usb.c if (tegra_phy->mode == USB_DR_MODE_UNKNOWN) { mode 141 drivers/usb/renesas_usbhs/common.c void usbhs_sys_set_test_mode(struct usbhs_priv *priv, u16 mode) mode 143 drivers/usb/renesas_usbhs/common.c usbhs_write(priv, TESTMODE, mode); mode 305 drivers/usb/renesas_usbhs/common.h void usbhs_sys_set_test_mode(struct usbhs_priv *priv, u16 mode); mode 185 drivers/usb/roles/class.c return attr->mode; mode 1503 drivers/usb/serial/cp210x.c struct cp210x_pin_mode mode; mode 1510 drivers/usb/serial/cp210x.c CP210X_GET_DEVICEMODE, &mode, mode 1511 drivers/usb/serial/cp210x.c sizeof(mode)); mode 1523 drivers/usb/serial/cp210x.c if (mode.eci == CP210X_PIN_MODE_MODEM) { mode 1535 drivers/usb/serial/cp210x.c if (mode.sci == CP210X_PIN_MODE_MODEM) { mode 1790 drivers/usb/serial/ftdi_sio.c static int ftdi_set_bitmode(struct usb_serial_port *port, u8 mode) mode 1801 drivers/usb/serial/ftdi_sio.c val = (mode << 8) | (priv->gpio_output << 4) | priv->gpio_value; mode 114 drivers/usb/serial/garmin_gps.c __u8 mode; mode 811 drivers/usb/serial/garmin_gps.c pkt[4] = __cpu_to_le32(garmin_data_p->mode); mode 911 drivers/usb/serial/garmin_gps.c garmin_data_p->mode = initial_mode; mode 932 drivers/usb/serial/garmin_gps.c __func__, garmin_data_p->mode, garmin_data_p->state, mode 957 drivers/usb/serial/garmin_gps.c if (garmin_data_p->mode == MODE_GARMIN_SERIAL) { mode 1016 drivers/usb/serial/garmin_gps.c if (garmin_data_p->mode == MODE_GARMIN_SERIAL) { mode 1079 drivers/usb/serial/garmin_gps.c garmin_data_p->mode = __le32_to_cpu(privpkt[3]); mode 1081 drivers/usb/serial/garmin_gps.c __func__, garmin_data_p->mode); mode 1098 drivers/usb/serial/garmin_gps.c garmin_data_p->mode); mode 1105 drivers/usb/serial/garmin_gps.c if (garmin_data_p->mode == MODE_GARMIN_SERIAL) { mode 1148 drivers/usb/serial/garmin_gps.c if (garmin_data_p->mode == MODE_GARMIN_SERIAL) { mode 1341 drivers/usb/serial/garmin_gps.c if (garmin_data_p->mode == MODE_NATIVE) mode 1363 drivers/usb/serial/garmin_gps.c if (garmin_data_p->mode == MODE_NATIVE) mode 252 drivers/usb/serial/mos7720.c enum mos7715_pp_modes mode) mode 254 drivers/usb/serial/mos7720.c mos_parport->shadowECR = mode; mode 271 drivers/usb/typec/bus.c size_t n, u16 svid, u8 mode) mode 278 drivers/usb/typec/bus.c if (altmodes[i]->svid == svid && altmodes[i]->mode == mode) mode 311 drivers/usb/typec/bus.c (id->mode == TYPEC_ANY_MODE || id->mode == altmode->mode)) mode 323 drivers/usb/typec/bus.c if (add_uevent_var(env, "MODE=%u", altmode->mode)) mode 327 drivers/usb/typec/bus.c altmode->svid, altmode->mode); mode 159 drivers/usb/typec/class.c return ((adev->svid == id->svid) && (adev->mode == id->mode)); mode 165 drivers/usb/typec/class.c struct typec_device_id id = { adev->svid, adev->mode, }; mode 225 drivers/usb/typec/class.c typec_altmode_register_notifier(struct device *dev, u16 svid, u8 mode, mode 228 drivers/usb/typec/class.c struct typec_device_id id = { svid, mode, }; mode 294 drivers/usb/typec/class.c snprintf(dir, sizeof(dir), "mode%d", adev->mode); mode 414 drivers/usb/typec/class.c return sprintf(buf, "%u\n", adev->mode); mode 416 drivers/usb/typec/class.c static DEVICE_ATTR_RO(mode); mode 494 drivers/usb/typec/class.c alt->adev.mode = desc->mode; mode 508 drivers/usb/typec/class.c sprintf(alt->group_name, "mode%d", desc->mode); mode 1481 drivers/usb/typec/class.c int typec_set_mode(struct typec_port *port, int mode) mode 1483 drivers/usb/typec/class.c return port->mux ? port->mux->set(port->mux, mode) : 0; mode 498 drivers/usb/typec/tcpm/fusb302.c enum toggling_mode mode) mode 516 drivers/usb/typec/tcpm/fusb302.c switch (mode) { mode 549 drivers/usb/typec/tcpm/fusb302.c if (mode == TOGGLING_MODE_OFF) { mode 574 drivers/usb/typec/tcpm/fusb302.c chip->toggling_mode = mode; mode 918 drivers/usb/typec/tcpm/fusb302.c enum toggling_mode mode = TOGGLING_MODE_OFF; mode 923 drivers/usb/typec/tcpm/fusb302.c mode = TOGGLING_MODE_SRC; mode 926 drivers/usb/typec/tcpm/fusb302.c mode = TOGGLING_MODE_SNK; mode 929 drivers/usb/typec/tcpm/fusb302.c mode = TOGGLING_MODE_DRP; mode 940 drivers/usb/typec/tcpm/fusb302.c ret = fusb302_set_toggling(chip, mode); mode 1025 drivers/usb/typec/tcpm/tcpm.c paltmode->mode = i; mode 1030 drivers/usb/typec/tcpm/tcpm.c paltmode->mode, paltmode->vdo); mode 1164 drivers/usb/typec/tcpm/tcpm.c response[0] |= VDO_OPOS(adev->mode); mode 1494 drivers/usb/typec/tcpm/tcpm.c header |= VDO_OPOS(altmode->mode); mode 1510 drivers/usb/typec/tcpm/tcpm.c header |= VDO_OPOS(altmode->mode); mode 197 drivers/usb/typec/tps6598x.c enum typec_pwr_opmode mode; mode 208 drivers/usb/typec/tps6598x.c mode = TPS_POWER_STATUS_PWROPMODE(pwr_status); mode 210 drivers/usb/typec/tps6598x.c desc.usb_pd = mode == TYPEC_PWR_MODE_PD; mode 221 drivers/usb/typec/tps6598x.c typec_set_pwr_opmode(tps->port, mode); mode 419 drivers/usb/typec/tps6598x.c char mode[5] = { }; mode 422 drivers/usb/typec/tps6598x.c ret = tps6598x_read32(tps, TPS_REG_MODE, (void *)mode); mode 426 drivers/usb/typec/tps6598x.c switch (match_string(modes, ARRAY_SIZE(modes), mode)) { mode 436 drivers/usb/typec/tps6598x.c mode); mode 144 drivers/usb/typec/ucsi/trace.h __field(u8, mode) mode 150 drivers/usb/typec/ucsi/trace.h __entry->mode = alt->mode; mode 155 drivers/usb/typec/ucsi/trace.h __entry->mode, __entry->vdo) mode 251 drivers/usb/typec/ucsi/ucsi.c u8 mode = 1; mode 256 drivers/usb/typec/ucsi/ucsi.c mode++; mode 258 drivers/usb/typec/ucsi/ucsi.c return mode; mode 291 drivers/usb/typec/ucsi/ucsi.c desc->mode = ucsi_altmode_next_mode(con->port_altmode, mode 318 drivers/usb/typec/ucsi/ucsi.c desc->mode = ucsi_altmode_next_mode(con->partner_altmode, mode 339 drivers/usb/typec/ucsi/ucsi.c desc->svid, desc->mode); mode 102 drivers/usb/typec/ucsi/ucsi_ccg.c u8 mode; mode 783 drivers/usb/typec/ucsi/ucsi_ccg.c enum enum_flash_mode *mode) mode 806 drivers/usb/typec/ucsi/ucsi_ccg.c *mode = SECONDARY_BL; mode 811 drivers/usb/typec/ucsi/ucsi_ccg.c *mode = SECONDARY; mode 815 drivers/usb/typec/ucsi/ucsi_ccg.c *mode = PRIMARY; mode 819 drivers/usb/typec/ucsi/ucsi_ccg.c *mode = PRIMARY; mode 822 drivers/usb/typec/ucsi/ucsi_ccg.c *mode = FLASH_NOT_NEEDED; mode 827 drivers/usb/typec/ucsi/ucsi_ccg.c static int do_flash(struct ucsi_ccg *uc, enum enum_flash_mode mode) mode 839 drivers/usb/typec/ucsi/ucsi_ccg.c err = request_firmware(&fw, ccg_fw_names[mode], dev); mode 842 drivers/usb/typec/ucsi/ucsi_ccg.c ccg_fw_names[mode], err); mode 846 drivers/usb/typec/ucsi/ucsi_ccg.c if (((uc->info.mode & CCG_DEVINFO_FWMODE_MASK) >> mode 960 drivers/usb/typec/ucsi/ucsi_ccg.c err = ccg_cmd_validate_fw(uc, (mode == PRIMARY) ? FW2 : FW1); mode 963 drivers/usb/typec/ucsi/ucsi_ccg.c (mode == PRIMARY) ? "FW2" : "FW1", err); mode 966 drivers/usb/typec/ucsi/ucsi_ccg.c (mode == PRIMARY) ? "FW2" : "FW1"); mode 1133 drivers/usb/typec/ucsi/ucsi_ccg.c if (uc->info.mode & CCG_DEVINFO_PDPORTS_MASK) mode 419 drivers/usb/usbip/vhci_sysfs.c status->attr.attr.mode = S_IRUGO; mode 2167 drivers/vfio/vfio.c static char *vfio_devnode(struct device *dev, umode_t *mode) mode 2177 drivers/vfio/vfio.c .mode = S_IRUGO | S_IWUGO, mode 43 drivers/vfio/virqfd.c static int virqfd_wakeup(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) mode 168 drivers/vhost/vhost.c static int vhost_poll_wakeup(wait_queue_entry_t *wait, unsigned mode, int sync, mode 90 drivers/video/backlight/corgi_lcd.c int mode; mode 188 drivers/video/backlight/corgi_lcd.c static void lcdtg_set_phadadj(struct corgi_lcd *lcd, int mode) mode 192 drivers/video/backlight/corgi_lcd.c switch (mode) { mode 275 drivers/video/backlight/corgi_lcd.c lcdtg_set_phadadj(lcd, lcd->mode); mode 284 drivers/video/backlight/corgi_lcd.c switch (lcd->mode) { mode 338 drivers/video/backlight/corgi_lcd.c int mode = CORGI_LCD_MODE_QVGA; mode 341 drivers/video/backlight/corgi_lcd.c mode = CORGI_LCD_MODE_VGA; mode 343 drivers/video/backlight/corgi_lcd.c if (lcd->mode == mode) mode 346 drivers/video/backlight/corgi_lcd.c lcdtg_set_phadadj(lcd, mode); mode 348 drivers/video/backlight/corgi_lcd.c switch (mode) { mode 358 drivers/video/backlight/corgi_lcd.c lcd->mode = mode; mode 554 drivers/video/backlight/corgi_lcd.c lcd->mode = (pdata) ? pdata->init_mode : CORGI_LCD_MODE_VGA; mode 496 drivers/video/backlight/ili922x.c reg, spi->max_speed_hz, spi->mode); mode 240 drivers/video/backlight/lm3533_bl.c umode_t mode = attr->mode; mode 245 drivers/video/backlight/lm3533_bl.c mode = 0; mode 248 drivers/video/backlight/lm3533_bl.c return mode; mode 66 drivers/video/backlight/lp855x_bl.c enum lp855x_brightness_ctrl_mode mode; mode 270 drivers/video/backlight/lp855x_bl.c if (lp->mode == PWM_BASED) mode 272 drivers/video/backlight/lp855x_bl.c else if (lp->mode == REGISTER_BASED) mode 323 drivers/video/backlight/lp855x_bl.c if (lp->mode == PWM_BASED) mode 325 drivers/video/backlight/lp855x_bl.c else if (lp->mode == REGISTER_BASED) mode 423 drivers/video/backlight/lp855x_bl.c lp->mode = PWM_BASED; mode 425 drivers/video/backlight/lp855x_bl.c lp->mode = REGISTER_BASED; mode 47 drivers/video/backlight/lp8788_bl.c enum lp8788_bl_ctrl_mode mode; mode 60 drivers/video/backlight/lp8788_bl.c static inline bool is_brightness_ctrl_by_pwm(enum lp8788_bl_ctrl_mode mode) mode 62 drivers/video/backlight/lp8788_bl.c return mode == LP8788_BL_COMB_PWM_BASED; mode 65 drivers/video/backlight/lp8788_bl.c static inline bool is_brightness_ctrl_by_register(enum lp8788_bl_ctrl_mode mode) mode 67 drivers/video/backlight/lp8788_bl.c return mode == LP8788_BL_REGISTER_ONLY || mode 68 drivers/video/backlight/lp8788_bl.c mode == LP8788_BL_COMB_REGISTER_BASED; mode 116 drivers/video/backlight/lp8788_bl.c bl->mode = cfg->bl_mode; mode 162 drivers/video/backlight/lp8788_bl.c enum lp8788_bl_ctrl_mode mode = bl->mode; mode 167 drivers/video/backlight/lp8788_bl.c if (is_brightness_ctrl_by_pwm(mode)) { mode 172 drivers/video/backlight/lp8788_bl.c } else if (is_brightness_ctrl_by_register(mode)) { mode 233 drivers/video/backlight/lp8788_bl.c enum lp8788_bl_ctrl_mode mode = bl->mode; mode 236 drivers/video/backlight/lp8788_bl.c if (is_brightness_ctrl_by_pwm(mode)) mode 238 drivers/video/backlight/lp8788_bl.c else if (is_brightness_ctrl_by_register(mode)) mode 40 drivers/video/backlight/omap1_bl.c static void omapbl_blank(struct omap_backlight *bl, int mode) mode 43 drivers/video/backlight/omap1_bl.c bl->pdata->set_power(bl->dev, mode); mode 45 drivers/video/backlight/omap1_bl.c switch (mode) { mode 33 drivers/video/backlight/tdo24m.c int (*adj_mode)(struct tdo24m *lcd, int mode); mode 37 drivers/video/backlight/tdo24m.c int mode; mode 217 drivers/video/backlight/tdo24m.c static int tdo24m_adj_mode(struct tdo24m *lcd, int mode) mode 219 drivers/video/backlight/tdo24m.c switch (mode) { mode 234 drivers/video/backlight/tdo24m.c lcd->mode = mode; mode 238 drivers/video/backlight/tdo24m.c static int tdo35s_adj_mode(struct tdo24m *lcd, int mode) mode 240 drivers/video/backlight/tdo24m.c switch (mode) { mode 255 drivers/video/backlight/tdo24m.c lcd->mode = mode; mode 271 drivers/video/backlight/tdo24m.c err = lcd->adj_mode(lcd, lcd->mode); mode 314 drivers/video/backlight/tdo24m.c int mode = MODE_QVGA; mode 317 drivers/video/backlight/tdo24m.c mode = MODE_VGA; mode 319 drivers/video/backlight/tdo24m.c if (lcd->mode == mode) mode 322 drivers/video/backlight/tdo24m.c return lcd->adj_mode(lcd, mode); mode 347 drivers/video/backlight/tdo24m.c spi->mode = SPI_MODE_3; mode 358 drivers/video/backlight/tdo24m.c lcd->mode = MODE_VGA; /* default to VGA */ mode 149 drivers/video/backlight/tosa_lcd.c static int tosa_lcd_set_mode(struct lcd_device *lcd, struct fb_videomode *mode) mode 153 drivers/video/backlight/tosa_lcd.c if (mode->xres == 320 || mode->yres == 320) mode 113 drivers/video/console/dummycon.c static void dummycon_cursor(struct vc_data *vc, int mode) { } mode 484 drivers/video/console/mdacon.c static void mdacon_cursor(struct vc_data *c, int mode) mode 486 drivers/video/console/mdacon.c if (mode == CM_ERASE) { mode 442 drivers/video/console/newport_con.c static void newport_cursor(struct vc_data *vc, int mode) mode 447 drivers/video/console/newport_con.c switch (mode) { mode 131 drivers/video/console/sticon.c static void sticon_cursor(struct vc_data *conp, int mode) mode 136 drivers/video/console/sticon.c switch (mode) { mode 71 drivers/video/console/vgacon.c static void vgacon_cursor(struct vc_data *c, int mode); mode 710 drivers/video/console/vgacon.c static void vgacon_cursor(struct vc_data *c, int mode) mode 717 drivers/video/console/vgacon.c switch (mode) { mode 780 drivers/video/console/vgacon.c u8 scanlines_lo = 0, r7 = 0, vsync_end = 0, mode, max_scan; mode 794 drivers/video/console/vgacon.c mode = inb_p(vga_video_port_val); mode 796 drivers/video/console/vgacon.c if (mode & 0x04) mode 907 drivers/video/console/vgacon.c static void vga_vesa_blank(struct vgastate *state, int mode) mode 950 drivers/video/console/vgacon.c if (mode & VESA_VSYNC_SUSPEND) { mode 959 drivers/video/console/vgacon.c if (mode & VESA_HSYNC_SUSPEND) { mode 488 drivers/video/fbdev/amba-clcd.c fb->fb.var.xres = fb->panel->mode.xres; mode 489 drivers/video/fbdev/amba-clcd.c fb->fb.var.yres = fb->panel->mode.yres; mode 490 drivers/video/fbdev/amba-clcd.c fb->fb.var.xres_virtual = fb->panel->mode.xres; mode 491 drivers/video/fbdev/amba-clcd.c fb->fb.var.yres_virtual = fb->panel->mode.yres; mode 494 drivers/video/fbdev/amba-clcd.c fb->fb.var.pixclock = fb->panel->mode.pixclock; mode 495 drivers/video/fbdev/amba-clcd.c fb->fb.var.left_margin = fb->panel->mode.left_margin; mode 496 drivers/video/fbdev/amba-clcd.c fb->fb.var.right_margin = fb->panel->mode.right_margin; mode 497 drivers/video/fbdev/amba-clcd.c fb->fb.var.upper_margin = fb->panel->mode.upper_margin; mode 498 drivers/video/fbdev/amba-clcd.c fb->fb.var.lower_margin = fb->panel->mode.lower_margin; mode 499 drivers/video/fbdev/amba-clcd.c fb->fb.var.hsync_len = fb->panel->mode.hsync_len; mode 500 drivers/video/fbdev/amba-clcd.c fb->fb.var.vsync_len = fb->panel->mode.vsync_len; mode 501 drivers/video/fbdev/amba-clcd.c fb->fb.var.sync = fb->panel->mode.sync; mode 502 drivers/video/fbdev/amba-clcd.c fb->fb.var.vmode = fb->panel->mode.vmode; mode 536 drivers/video/fbdev/amba-clcd.c fb->board->name, fb->panel->mode.name); mode 571 drivers/video/fbdev/amba-clcd.c err = fb_videomode_from_videomode(&video, &clcd_panel->mode); mode 599 drivers/video/fbdev/amba-clcd.c static int clcdfb_snprintf_mode(char *buf, int size, struct fb_videomode *mode) mode 601 drivers/video/fbdev/amba-clcd.c return snprintf(buf, size, "%ux%u@%u", mode->xres, mode->yres, mode 602 drivers/video/fbdev/amba-clcd.c mode->refresh); mode 626 drivers/video/fbdev/amba-clcd.c struct fb_videomode *mode; mode 637 drivers/video/fbdev/amba-clcd.c mode = &clcd_panel->mode; mode 639 drivers/video/fbdev/amba-clcd.c len = clcdfb_snprintf_mode(NULL, 0, mode); mode 644 drivers/video/fbdev/amba-clcd.c clcdfb_snprintf_mode(name, len + 1, mode); mode 645 drivers/video/fbdev/amba-clcd.c mode->name = name; mode 739 drivers/video/fbdev/amba-clcd.c / PICOS2KHZ(fb->panel->mode.pixclock); mode 820 drivers/video/fbdev/amba-clcd.c framesize = PAGE_ALIGN(fb->panel->mode.xres * fb->panel->mode.yres * mode 690 drivers/video/fbdev/amifb.c __u16 mode; mode 2034 drivers/video/fbdev/amifb.c state->mode = cursormode; mode 2043 drivers/video/fbdev/amifb.c if ((cursormode = state->mode) == FB_CURSOR_OFF) mode 3647 drivers/video/fbdev/amifb.c struct fb_videomode *mode = &ami_modedb[i]; mode 3648 drivers/video/fbdev/amifb.c tag = mode->pixclock; mode 3650 drivers/video/fbdev/amifb.c mode->pixclock = pixclock[tag]; mode 107 drivers/video/fbdev/arkfb.c module_param_named(mode, mode_option, charp, 0444); mode 108 drivers/video/fbdev/arkfb.c MODULE_PARM_DESC(mode, "Default video mode ('640x480-8@60', etc) (deprecated)"); mode 303 drivers/video/fbdev/arkfb.c int (*dac_set_mode)(struct dac_info *info, int mode); mode 344 drivers/video/fbdev/arkfb.c static inline int dac_set_mode(struct dac_info *info, int mode) mode 346 drivers/video/fbdev/arkfb.c return info->dacops->dac_set_mode(info, mode); mode 368 drivers/video/fbdev/arkfb.c u8 mode; mode 380 drivers/video/fbdev/arkfb.c static int ics5342_set_mode(struct dac_info *info, int mode) mode 384 drivers/video/fbdev/arkfb.c if (mode >= DAC_MAX) mode 387 drivers/video/fbdev/arkfb.c code = ics5342_mode_table[mode]; mode 393 drivers/video/fbdev/arkfb.c DAC_PAR(info)->mode = mode; mode 413 drivers/video/fbdev/arkfb.c int rv = svga_compute_pll((DAC_PAR(info)->mode == DAC_PSEUDO8_16) mode 450 drivers/video/fbdev/arkfb.c DAC_PAR(info)->mode = DAC_PSEUDO8_8; /* estimation */ mode 617 drivers/video/fbdev/arkfb.c u32 value, mode, hmul, hdiv, offset_value, screen_size; mode 701 drivers/video/fbdev/arkfb.c mode = svga_match_format(arkfb_formats, &(info->var), &(info->fix)); mode 704 drivers/video/fbdev/arkfb.c switch (mode) { mode 106 drivers/video/fbdev/atafb.c int mode; mode 569 drivers/video/fbdev/atafb.c int mode; mode 577 drivers/video/fbdev/atafb.c mode = par->hw.tt.mode & TT_SHIFTER_MODEMASK; mode 578 drivers/video/fbdev/atafb.c if (mode == TT_SHIFTER_TTHIGH || mode == TT_SHIFTER_STHIGH) { mode 581 drivers/video/fbdev/atafb.c if (mode == TT_SHIFTER_TTHIGH) mode 603 drivers/video/fbdev/atafb.c par->hw.tt.mode = TT_SHIFTER_TTHIGH; mode 613 drivers/video/fbdev/atafb.c par->hw.tt.mode = TT_SHIFTER_TTLOW; mode 621 drivers/video/fbdev/atafb.c par->hw.tt.mode = TT_SHIFTER_TTMID; mode 626 drivers/video/fbdev/atafb.c par->hw.tt.mode = TT_SHIFTER_STLOW; mode 634 drivers/video/fbdev/atafb.c par->hw.tt.mode = TT_SHIFTER_STMID; mode 641 drivers/video/fbdev/atafb.c par->hw.tt.mode = TT_SHIFTER_STHIGH; mode 693 drivers/video/fbdev/atafb.c switch (par->hw.tt.mode & TT_SHIFTER_MODEMASK) { mode 765 drivers/video/fbdev/atafb.c par->hw.tt.mode = shifter_tt.tt_shiftmode; mode 775 drivers/video/fbdev/atafb.c shifter_tt.tt_shiftmode = par->hw.tt.mode; mode 1545 drivers/video/fbdev/atafb.c hw->vid_mode = videl.mode; mode 1642 drivers/video/fbdev/atafb.c videl.mode = hw->vid_mode; mode 1791 drivers/video/fbdev/atafb.c int mode; mode 1799 drivers/video/fbdev/atafb.c mode = par->hw.st.mode & 3; mode 1800 drivers/video/fbdev/atafb.c if (mode == ST_HIGH) { mode 1830 drivers/video/fbdev/atafb.c par->hw.st.mode = ST_HIGH; mode 1840 drivers/video/fbdev/atafb.c par->hw.st.mode = ST_LOW; mode 1847 drivers/video/fbdev/atafb.c par->hw.st.mode = ST_MID; mode 1901 drivers/video/fbdev/atafb.c switch (par->hw.st.mode & 3) { mode 1954 drivers/video/fbdev/atafb.c par->hw.st.mode = shifter_tt.st_shiftmode; mode 1965 drivers/video/fbdev/atafb.c shifter_tt.st_shiftmode = par->hw.st.mode; mode 918 drivers/video/fbdev/atmel_lcdfb.c const char *mode; mode 921 drivers/video/fbdev/atmel_lcdfb.c err = of_property_read_string(np, "atmel,lcd-wiring-mode", &mode); mode 926 drivers/video/fbdev/atmel_lcdfb.c if (!strcasecmp(mode, atmel_lcdfb_wiring_modes[i])) mode 1104 drivers/video/fbdev/atmel_lcdfb.c fb_videomode_to_var(&info->var, &modelist->mode); mode 309 drivers/video/fbdev/aty/atyfb_base.c static char *mode; mode 2635 drivers/video/fbdev/aty/atyfb_base.c if (mode) { mode 2636 drivers/video/fbdev/aty/atyfb_base.c if (mac_find_mode(&var, info, mode, 8)) mode 2672 drivers/video/fbdev/aty/atyfb_base.c if (mode && fb_find_mode(&var, info, mode, NULL, 0, &defmode, 8)) mode 3869 drivers/video/fbdev/aty/atyfb_base.c mode = this_opt; mode 3981 drivers/video/fbdev/aty/atyfb_base.c module_param(mode, charp, 0); mode 3982 drivers/video/fbdev/aty/atyfb_base.c MODULE_PARM_DESC(mode, "Specify resolution as \"<xres>x<yres>[-<bpp>][@<refresh>]\" "); mode 1356 drivers/video/fbdev/aty/radeon_base.c static void radeon_write_pll_regs(struct radeonfb_info *rinfo, struct radeon_regs *mode) mode 1371 drivers/video/fbdev/aty/radeon_base.c if ((mode->ppll_ref_div == (INPLL(PPLL_REF_DIV) & PPLL_REF_DIV_MASK)) && mode 1372 drivers/video/fbdev/aty/radeon_base.c (mode->ppll_div_3 == (INPLL(PPLL_DIV_3) & mode 1378 drivers/video/fbdev/aty/radeon_base.c mode->clk_cntl_index & PPLL_DIV_SEL_MASK, mode 1396 drivers/video/fbdev/aty/radeon_base.c mode->clk_cntl_index & PPLL_DIV_SEL_MASK, mode 1406 drivers/video/fbdev/aty/radeon_base.c if (mode->ppll_ref_div & R300_PPLL_REF_DIV_ACC_MASK) { mode 1410 drivers/video/fbdev/aty/radeon_base.c OUTPLLP(PPLL_REF_DIV, mode->ppll_ref_div, 0); mode 1414 drivers/video/fbdev/aty/radeon_base.c (mode->ppll_ref_div << R300_PPLL_REF_DIV_ACC_SHIFT), mode 1418 drivers/video/fbdev/aty/radeon_base.c OUTPLLP(PPLL_REF_DIV, mode->ppll_ref_div, ~PPLL_REF_DIV_MASK); mode 1421 drivers/video/fbdev/aty/radeon_base.c OUTPLLP(PPLL_DIV_3, mode->ppll_div_3, ~PPLL_FB3_DIV_MASK); mode 1422 drivers/video/fbdev/aty/radeon_base.c OUTPLLP(PPLL_DIV_3, mode->ppll_div_3, ~PPLL_POST3_DIV_MASK); mode 1466 drivers/video/fbdev/aty/radeon_base.c void radeon_write_mode (struct radeonfb_info *rinfo, struct radeon_regs *mode, mode 1484 drivers/video/fbdev/aty/radeon_base.c OUTREG(SURFACE0_LOWER_BOUND + 0x10*i, mode->surf_lower_bound[i]); mode 1485 drivers/video/fbdev/aty/radeon_base.c OUTREG(SURFACE0_UPPER_BOUND + 0x10*i, mode->surf_upper_bound[i]); mode 1486 drivers/video/fbdev/aty/radeon_base.c OUTREG(SURFACE0_INFO + 0x10*i, mode->surf_info[i]); mode 1489 drivers/video/fbdev/aty/radeon_base.c OUTREG(CRTC_GEN_CNTL, mode->crtc_gen_cntl); mode 1490 drivers/video/fbdev/aty/radeon_base.c OUTREGP(CRTC_EXT_CNTL, mode->crtc_ext_cntl, mode 1492 drivers/video/fbdev/aty/radeon_base.c OUTREG(CRTC_MORE_CNTL, mode->crtc_more_cntl); mode 1493 drivers/video/fbdev/aty/radeon_base.c OUTREGP(DAC_CNTL, mode->dac_cntl, DAC_RANGE_CNTL | DAC_BLANKING); mode 1494 drivers/video/fbdev/aty/radeon_base.c OUTREG(CRTC_H_TOTAL_DISP, mode->crtc_h_total_disp); mode 1495 drivers/video/fbdev/aty/radeon_base.c OUTREG(CRTC_H_SYNC_STRT_WID, mode->crtc_h_sync_strt_wid); mode 1496 drivers/video/fbdev/aty/radeon_base.c OUTREG(CRTC_V_TOTAL_DISP, mode->crtc_v_total_disp); mode 1497 drivers/video/fbdev/aty/radeon_base.c OUTREG(CRTC_V_SYNC_STRT_WID, mode->crtc_v_sync_strt_wid); mode 1500 drivers/video/fbdev/aty/radeon_base.c OUTREG(CRTC_PITCH, mode->crtc_pitch); mode 1501 drivers/video/fbdev/aty/radeon_base.c OUTREG(SURFACE_CNTL, mode->surface_cntl); mode 1503 drivers/video/fbdev/aty/radeon_base.c radeon_write_pll_regs(rinfo, mode); mode 1507 drivers/video/fbdev/aty/radeon_base.c OUTREG(FP_CRTC_H_TOTAL_DISP, mode->fp_crtc_h_total_disp); mode 1508 drivers/video/fbdev/aty/radeon_base.c OUTREG(FP_CRTC_V_TOTAL_DISP, mode->fp_crtc_v_total_disp); mode 1509 drivers/video/fbdev/aty/radeon_base.c OUTREG(FP_H_SYNC_STRT_WID, mode->fp_h_sync_strt_wid); mode 1510 drivers/video/fbdev/aty/radeon_base.c OUTREG(FP_V_SYNC_STRT_WID, mode->fp_v_sync_strt_wid); mode 1511 drivers/video/fbdev/aty/radeon_base.c OUTREG(FP_HORZ_STRETCH, mode->fp_horz_stretch); mode 1512 drivers/video/fbdev/aty/radeon_base.c OUTREG(FP_VERT_STRETCH, mode->fp_vert_stretch); mode 1513 drivers/video/fbdev/aty/radeon_base.c OUTREG(FP_GEN_CNTL, mode->fp_gen_cntl); mode 1514 drivers/video/fbdev/aty/radeon_base.c OUTREG(TMDS_CRC, mode->tmds_crc); mode 1515 drivers/video/fbdev/aty/radeon_base.c OUTREG(TMDS_TRANSMITTER_CNTL, mode->tmds_transmitter_cntl); mode 1522 drivers/video/fbdev/aty/radeon_base.c OUTPLL(VCLK_ECP_CNTL, mode->vclk_ecp_cntl); mode 1650 drivers/video/fbdev/aty/radeon_base.c struct fb_var_screeninfo *mode = &info->var; mode 1662 drivers/video/fbdev/aty/radeon_base.c int depth = var_to_depth(mode); mode 1674 drivers/video/fbdev/aty/radeon_base.c hSyncStart = mode->xres + mode->right_margin; mode 1675 drivers/video/fbdev/aty/radeon_base.c hSyncEnd = hSyncStart + mode->hsync_len; mode 1676 drivers/video/fbdev/aty/radeon_base.c hTotal = hSyncEnd + mode->left_margin; mode 1678 drivers/video/fbdev/aty/radeon_base.c vSyncStart = mode->yres + mode->lower_margin; mode 1679 drivers/video/fbdev/aty/radeon_base.c vSyncEnd = vSyncStart + mode->vsync_len; mode 1680 drivers/video/fbdev/aty/radeon_base.c vTotal = vSyncEnd + mode->upper_margin; mode 1681 drivers/video/fbdev/aty/radeon_base.c pixClock = mode->pixclock; mode 1683 drivers/video/fbdev/aty/radeon_base.c sync = mode->sync; mode 1688 drivers/video/fbdev/aty/radeon_base.c if (rinfo->panel_info.xres < mode->xres) mode 1689 drivers/video/fbdev/aty/radeon_base.c mode->xres = rinfo->panel_info.xres; mode 1690 drivers/video/fbdev/aty/radeon_base.c if (rinfo->panel_info.yres < mode->yres) mode 1691 drivers/video/fbdev/aty/radeon_base.c mode->yres = rinfo->panel_info.yres; mode 1693 drivers/video/fbdev/aty/radeon_base.c hTotal = mode->xres + rinfo->panel_info.hblank; mode 1694 drivers/video/fbdev/aty/radeon_base.c hSyncStart = mode->xres + rinfo->panel_info.hOver_plus; mode 1697 drivers/video/fbdev/aty/radeon_base.c vTotal = mode->yres + rinfo->panel_info.vblank; mode 1698 drivers/video/fbdev/aty/radeon_base.c vSyncStart = mode->yres + rinfo->panel_info.vOver_plus; mode 1733 drivers/video/fbdev/aty/radeon_base.c hSyncPol = mode->sync & FB_SYNC_HOR_HIGH_ACT ? 0 : 1; mode 1734 drivers/video/fbdev/aty/radeon_base.c vSyncPol = mode->sync & FB_SYNC_VERT_HIGH_ACT ? 0 : 1; mode 1736 drivers/video/fbdev/aty/radeon_base.c cSync = mode->sync & FB_SYNC_COMP_HIGH_ACT ? (1 << 4) : 0; mode 1739 drivers/video/fbdev/aty/radeon_base.c bytpp = mode->bits_per_pixel >> 3; mode 1771 drivers/video/fbdev/aty/radeon_base.c (((mode->xres / 8) - 1) << 16)); mode 1777 drivers/video/fbdev/aty/radeon_base.c ((mode->yres - 1) << 16); mode 1784 drivers/video/fbdev/aty/radeon_base.c rinfo->pitch = ((mode->xres_virtual * ((mode->bits_per_pixel + 1) / 8) + 0x3f) mode 1788 drivers/video/fbdev/aty/radeon_base.c newmode->crtc_pitch = (rinfo->pitch << 3) / ((mode->bits_per_pixel + 1) / 8); mode 1790 drivers/video/fbdev/aty/radeon_base.c newmode->crtc_pitch = (mode->xres_virtual >> 3); mode 1807 drivers/video/fbdev/aty/radeon_base.c switch (mode->bits_per_pixel) { mode 1832 drivers/video/fbdev/aty/radeon_base.c rinfo->bpp = mode->bits_per_pixel; mode 1850 drivers/video/fbdev/aty/radeon_base.c if (mode->xres > rinfo->panel_info.xres) mode 1851 drivers/video/fbdev/aty/radeon_base.c mode->xres = rinfo->panel_info.xres; mode 1852 drivers/video/fbdev/aty/radeon_base.c if (mode->yres > rinfo->panel_info.yres) mode 1853 drivers/video/fbdev/aty/radeon_base.c mode->yres = rinfo->panel_info.yres; mode 1860 drivers/video/fbdev/aty/radeon_base.c if (mode->xres != rinfo->panel_info.xres) { mode 1861 drivers/video/fbdev/aty/radeon_base.c hRatio = round_div(mode->xres * HORZ_STRETCH_RATIO_MAX, mode 1873 drivers/video/fbdev/aty/radeon_base.c if (mode->yres != rinfo->panel_info.yres) { mode 1874 drivers/video/fbdev/aty/radeon_base.c vRatio = round_div(mode->yres * VERT_STRETCH_RATIO_MAX, mode 1931 drivers/video/fbdev/aty/radeon_base.c (((mode->xres / 8) - 1) << 16)); mode 1933 drivers/video/fbdev/aty/radeon_base.c ((mode->yres - 1) << 16); mode 1952 drivers/video/fbdev/aty/radeon_base.c info->fix.line_length = mode->xres_virtual mode 1953 drivers/video/fbdev/aty/radeon_base.c * ((mode->bits_per_pixel + 1) / 8); mode 1959 drivers/video/fbdev/aty/radeon_base.c btext_update_display(rinfo->fb_base_phys, mode->xres, mode->yres, mode 2241 drivers/video/fbdev/aty/radeon_base.c .mode = 0444, mode 2250 drivers/video/fbdev/aty/radeon_base.c .mode = 0444, mode 715 drivers/video/fbdev/aty/radeon_monitor.c const struct fb_videomode *mode) mode 717 drivers/video/fbdev/aty/radeon_monitor.c var->xres = mode->xres; mode 718 drivers/video/fbdev/aty/radeon_monitor.c var->yres = mode->yres; mode 719 drivers/video/fbdev/aty/radeon_monitor.c var->xres_virtual = mode->xres; mode 720 drivers/video/fbdev/aty/radeon_monitor.c var->yres_virtual = mode->yres; mode 723 drivers/video/fbdev/aty/radeon_monitor.c var->pixclock = mode->pixclock; mode 724 drivers/video/fbdev/aty/radeon_monitor.c var->left_margin = mode->left_margin; mode 725 drivers/video/fbdev/aty/radeon_monitor.c var->right_margin = mode->right_margin; mode 726 drivers/video/fbdev/aty/radeon_monitor.c var->upper_margin = mode->upper_margin; mode 727 drivers/video/fbdev/aty/radeon_monitor.c var->lower_margin = mode->lower_margin; mode 728 drivers/video/fbdev/aty/radeon_monitor.c var->hsync_len = mode->hsync_len; mode 729 drivers/video/fbdev/aty/radeon_monitor.c var->vsync_len = mode->vsync_len; mode 730 drivers/video/fbdev/aty/radeon_monitor.c var->sync = mode->sync; mode 731 drivers/video/fbdev/aty/radeon_monitor.c var->vmode = mode->vmode; mode 932 drivers/video/fbdev/aty/radeon_monitor.c struct fb_videomode mode; mode 936 drivers/video/fbdev/aty/radeon_monitor.c fb_var_to_videomode(&mode, &info->var); mode 937 drivers/video/fbdev/aty/radeon_monitor.c fb_add_videomode(&mode, &info->modelist); mode 954 drivers/video/fbdev/aty/radeon_monitor.c const struct fb_videomode *mode) mode 958 drivers/video/fbdev/aty/radeon_monitor.c distance = mode->yres - var->yres; mode 959 drivers/video/fbdev/aty/radeon_monitor.c distance += (mode->xres - var->xres)/2; mode 509 drivers/video/fbdev/aty/radeonfb.h extern void radeon_write_mode (struct radeonfb_info *rinfo, struct radeon_regs *mode, mode 511 drivers/video/fbdev/broadsheetfb.c int mode) mode 516 drivers/video/fbdev/broadsheetfb.c if (mode) mode 370 drivers/video/fbdev/carminefb.c u32 mode; mode 400 drivers/video/fbdev/carminefb.c mode = c_get_disp_reg(par, CARMINE_DISP_REG_DCM1); mode 401 drivers/video/fbdev/carminefb.c mode = (mode & ~CARMINE_DISP_DCM_MASK) | mode 404 drivers/video/fbdev/carminefb.c mode |= CARMINE_DEN | CARMINE_L0E; mode 405 drivers/video/fbdev/carminefb.c c_set_disp_reg(par, CARMINE_DISP_REG_DCM1, mode); mode 160 drivers/video/fbdev/cg14.c u8 mode; /* Mode Register */ mode 203 drivers/video/fbdev/cg14.c int mode; mode 282 drivers/video/fbdev/cg14.c int cur_mode, mode, ret = 0; mode 298 drivers/video/fbdev/cg14.c kmdi.mdi_mode = par->mode; mode 309 drivers/video/fbdev/cg14.c if (get_user(mode, (int __user *) arg)) { mode 317 drivers/video/fbdev/cg14.c switch(mode) { mode 337 drivers/video/fbdev/cg14.c par->mode = mode; mode 534 drivers/video/fbdev/cg14.c par->mode = MDI_8_PIX; mode 192 drivers/video/fbdev/cg6.c u32 mode; mode 414 drivers/video/fbdev/cg6.c sbus_writel(0x140000, &fbc->mode); mode 673 drivers/video/fbdev/cg6.c u32 rev, conf, mode; mode 699 drivers/video/fbdev/cg6.c mode = sbus_readl(&fbc->mode); mode 703 drivers/video/fbdev/cg6.c mode &= ~(CG6_FBC_BLIT_MASK | CG6_FBC_MODE_MASK | mode 707 drivers/video/fbdev/cg6.c mode |= (CG6_FBC_BLIT_SRC | CG6_FBC_MODE_COLOR8 | mode 711 drivers/video/fbdev/cg6.c sbus_writel(mode, &fbc->mode); mode 38 drivers/video/fbdev/clps711x-fb.c struct fb_videomode mode; mode 285 drivers/video/fbdev/clps711x-fb.c ret = of_get_fb_videomode(disp, &cfb->mode, OF_USE_NATIVE_MODE); mode 331 drivers/video/fbdev/clps711x-fb.c fb_videomode_to_var(&info->var, &cfb->mode); mode 513 drivers/video/fbdev/controlfb.c out_le32(CNTRL_REG(p,mode), r->mode); mode 833 drivers/video/fbdev/controlfb.c r->mode = 3; mode 837 drivers/video/fbdev/controlfb.c r->mode = 2; mode 846 drivers/video/fbdev/controlfb.c r->mode = 2; mode 850 drivers/video/fbdev/controlfb.c r->mode = 1; mode 858 drivers/video/fbdev/controlfb.c r->mode = 1; mode 861 drivers/video/fbdev/controlfb.c r->mode = 0; mode 66 drivers/video/fbdev/controlfb.h struct preg mode; mode 101 drivers/video/fbdev/controlfb.h unsigned char mode; mode 236 drivers/video/fbdev/core/bitblit.c static void bit_cursor(struct vc_data *vc, struct fb_info *info, int mode, mode 252 drivers/video/fbdev/core/bitblit.c mode = CM_ERASE; mode 357 drivers/video/fbdev/core/bitblit.c switch (mode) { mode 193 drivers/video/fbdev/core/fbcon.c static void fbcon_cursor(struct vc_data *vc, int mode); mode 394 drivers/video/fbdev/core/fbcon.c int mode; mode 415 drivers/video/fbdev/core/fbcon.c mode = (!ops->cursor_flash || ops->cursor_state.enable) ? mode 417 drivers/video/fbdev/core/fbcon.c ops->cursor(vc, info, mode, softback_lines, get_color(vc, info, c, 1), mode 939 drivers/video/fbdev/core/fbcon.c disp->mode = fb_match_mode(var, &info->modelist); mode 940 drivers/video/fbdev/core/fbcon.c if (disp->mode == NULL) mode 949 drivers/video/fbdev/core/fbcon.c fb_videomode_to_var(var, disp->mode); mode 1378 drivers/video/fbdev/core/fbcon.c static void fbcon_cursor(struct vc_data *vc, int mode) mode 1395 drivers/video/fbdev/core/fbcon.c ops->cursor_flash = (mode == CM_ERASE) ? 0 : 1; mode 1396 drivers/video/fbdev/core/fbcon.c if (mode & CM_SOFTBACK) { mode 1397 drivers/video/fbdev/core/fbcon.c mode &= ~CM_SOFTBACK; mode 1405 drivers/video/fbdev/core/fbcon.c ops->cursor(vc, info, mode, y, get_color(vc, info, c, 1), mode 2209 drivers/video/fbdev/core/fbcon.c const struct fb_videomode *mode; mode 2212 drivers/video/fbdev/core/fbcon.c mode = fb_find_best_mode(&var, &info->modelist); mode 2213 drivers/video/fbdev/core/fbcon.c if (mode == NULL) mode 2216 drivers/video/fbdev/core/fbcon.c fb_videomode_to_var(&var, mode); mode 3046 drivers/video/fbdev/core/fbcon.c struct fb_videomode *mode) mode 3061 drivers/video/fbdev/core/fbcon.c if (!p || !p->mode) mode 3063 drivers/video/fbdev/core/fbcon.c if (fb_mode_is_equal(p->mode, mode)) { mode 3293 drivers/video/fbdev/core/fbcon.c const struct fb_videomode *mode; mode 3298 drivers/video/fbdev/core/fbcon.c if (!fb_display[i].mode) mode 3302 drivers/video/fbdev/core/fbcon.c mode = fb_find_nearest_mode(fb_display[i].mode, mode 3304 drivers/video/fbdev/core/fbcon.c fb_videomode_to_var(&var, mode); mode 51 drivers/video/fbdev/core/fbcon.h const struct fb_videomode *mode; mode 64 drivers/video/fbdev/core/fbcon.h void (*cursor)(struct vc_data *vc, struct fb_info *info, int mode, mode 221 drivers/video/fbdev/core/fbcon_ccw.c static void ccw_cursor(struct vc_data *vc, struct fb_info *info, int mode, mode 241 drivers/video/fbdev/core/fbcon_ccw.c mode = CM_ERASE; mode 361 drivers/video/fbdev/core/fbcon_ccw.c switch (mode) { mode 204 drivers/video/fbdev/core/fbcon_cw.c static void cw_cursor(struct vc_data *vc, struct fb_info *info, int mode, mode 224 drivers/video/fbdev/core/fbcon_cw.c mode = CM_ERASE; mode 344 drivers/video/fbdev/core/fbcon_cw.c switch (mode) { mode 251 drivers/video/fbdev/core/fbcon_ud.c static void ud_cursor(struct vc_data *vc, struct fb_info *info, int mode, mode 272 drivers/video/fbdev/core/fbcon_ud.c mode = CM_ERASE; mode 384 drivers/video/fbdev/core/fbcon_ud.c switch (mode) { mode 271 drivers/video/fbdev/core/fbcvt.c struct fb_videomode *mode) mode 273 drivers/video/fbdev/core/fbcvt.c mode->refresh = cvt->f_refresh; mode 274 drivers/video/fbdev/core/fbcvt.c mode->pixclock = KHZ2PICOS(cvt->pixclock/1000); mode 275 drivers/video/fbdev/core/fbcvt.c mode->left_margin = cvt->h_back_porch; mode 276 drivers/video/fbdev/core/fbcvt.c mode->right_margin = cvt->h_front_porch; mode 277 drivers/video/fbdev/core/fbcvt.c mode->hsync_len = cvt->hsync; mode 278 drivers/video/fbdev/core/fbcvt.c mode->upper_margin = cvt->v_back_porch; mode 279 drivers/video/fbdev/core/fbcvt.c mode->lower_margin = cvt->v_front_porch; mode 280 drivers/video/fbdev/core/fbcvt.c mode->vsync_len = cvt->vsync; mode 282 drivers/video/fbdev/core/fbcvt.c mode->sync &= ~(FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT); mode 285 drivers/video/fbdev/core/fbcvt.c mode->sync |= FB_SYNC_HOR_HIGH_ACT; mode 287 drivers/video/fbdev/core/fbcvt.c mode->sync |= FB_SYNC_VERT_HIGH_ACT; mode 305 drivers/video/fbdev/core/fbcvt.c int fb_find_mode_cvt(struct fb_videomode *mode, int margins, int rb) mode 317 drivers/video/fbdev/core/fbcvt.c if (mode->vmode & FB_VMODE_INTERLACED) mode 320 drivers/video/fbdev/core/fbcvt.c cvt.xres = mode->xres; mode 321 drivers/video/fbdev/core/fbcvt.c cvt.yres = mode->yres; mode 322 drivers/video/fbdev/core/fbcvt.c cvt.refresh = mode->refresh; mode 376 drivers/video/fbdev/core/fbcvt.c fb_cvt_convert_to_mode(&cvt, mode); mode 959 drivers/video/fbdev/core/fbmem.c struct fb_videomode mode; mode 1037 drivers/video/fbdev/core/fbmem.c fb_var_to_videomode(&mode, &info->var); mode 1041 drivers/video/fbdev/core/fbmem.c ret = fb_add_videomode(&mode, &info->modelist); mode 1047 drivers/video/fbdev/core/fbmem.c event.data = &mode; mode 1579 drivers/video/fbdev/core/fbmem.c struct fb_videomode mode; mode 1635 drivers/video/fbdev/core/fbmem.c fb_var_to_videomode(&mode, &fb_info->var); mode 1636 drivers/video/fbdev/core/fbmem.c fb_add_videomode(&mode, &fb_info->modelist); mode 1949 drivers/video/fbdev/core/fbmem.c struct fb_videomode *m, mode; mode 1954 drivers/video/fbdev/core/fbmem.c m = &modelist->mode; mode 1958 drivers/video/fbdev/core/fbmem.c fb_var_to_videomode(&mode, &var); mode 1959 drivers/video/fbdev/core/fbmem.c if (err || !fb_mode_is_equal(m, &mode)) { mode 382 drivers/video/fbdev/core/fbmon.c struct fb_videomode *mode) mode 393 drivers/video/fbdev/core/fbmon.c mode->xres = xres; mode 394 drivers/video/fbdev/core/fbmon.c mode->yres = yres; mode 395 drivers/video/fbdev/core/fbmon.c mode->pixclock = var->pixclock; mode 396 drivers/video/fbdev/core/fbmon.c mode->refresh = refresh; mode 397 drivers/video/fbdev/core/fbmon.c mode->left_margin = var->left_margin; mode 398 drivers/video/fbdev/core/fbmon.c mode->right_margin = var->right_margin; mode 399 drivers/video/fbdev/core/fbmon.c mode->upper_margin = var->upper_margin; mode 400 drivers/video/fbdev/core/fbmon.c mode->lower_margin = var->lower_margin; mode 401 drivers/video/fbdev/core/fbmon.c mode->hsync_len = var->hsync_len; mode 402 drivers/video/fbdev/core/fbmon.c mode->vsync_len = var->vsync_len; mode 403 drivers/video/fbdev/core/fbmon.c mode->vmode = 0; mode 404 drivers/video/fbdev/core/fbmon.c mode->sync = 0; mode 409 drivers/video/fbdev/core/fbmon.c static int get_est_timing(unsigned char *block, struct fb_videomode *mode) mode 416 drivers/video/fbdev/core/fbmon.c calc_mode_timings(720, 400, 70, &mode[num]); mode 417 drivers/video/fbdev/core/fbmon.c mode[num++].flag = FB_MODE_IS_CALCULATED; mode 421 drivers/video/fbdev/core/fbmon.c calc_mode_timings(720, 400, 88, &mode[num]); mode 422 drivers/video/fbdev/core/fbmon.c mode[num++].flag = FB_MODE_IS_CALCULATED; mode 426 drivers/video/fbdev/core/fbmon.c mode[num++] = vesa_modes[3]; mode 430 drivers/video/fbdev/core/fbmon.c calc_mode_timings(640, 480, 67, &mode[num]); mode 431 drivers/video/fbdev/core/fbmon.c mode[num++].flag = FB_MODE_IS_CALCULATED; mode 435 drivers/video/fbdev/core/fbmon.c mode[num++] = vesa_modes[4]; mode 439 drivers/video/fbdev/core/fbmon.c mode[num++] = vesa_modes[5]; mode 443 drivers/video/fbdev/core/fbmon.c mode[num++] = vesa_modes[7]; mode 447 drivers/video/fbdev/core/fbmon.c mode[num++] = vesa_modes[8]; mode 453 drivers/video/fbdev/core/fbmon.c mode[num++] = vesa_modes[9]; mode 457 drivers/video/fbdev/core/fbmon.c mode[num++] = vesa_modes[10]; mode 461 drivers/video/fbdev/core/fbmon.c calc_mode_timings(832, 624, 75, &mode[num]); mode 462 drivers/video/fbdev/core/fbmon.c mode[num++].flag = FB_MODE_IS_CALCULATED; mode 466 drivers/video/fbdev/core/fbmon.c mode[num++] = vesa_modes[12]; mode 470 drivers/video/fbdev/core/fbmon.c mode[num++] = vesa_modes[13]; mode 474 drivers/video/fbdev/core/fbmon.c mode[num++] = vesa_modes[14]; mode 478 drivers/video/fbdev/core/fbmon.c mode[num++] = vesa_modes[15]; mode 482 drivers/video/fbdev/core/fbmon.c mode[num++] = vesa_modes[21]; mode 487 drivers/video/fbdev/core/fbmon.c mode[num++] = vesa_modes[17]; mode 494 drivers/video/fbdev/core/fbmon.c static int get_std_timing(unsigned char *block, struct fb_videomode *mode, mode 505 drivers/video/fbdev/core/fbmon.c if (i < DMT_SIZE && dmt_modes[i].mode) { mode 507 drivers/video/fbdev/core/fbmon.c *mode = *dmt_modes[i].mode; mode 508 drivers/video/fbdev/core/fbmon.c mode->flag |= FB_MODE_IS_STANDARD; mode 540 drivers/video/fbdev/core/fbmon.c calc_mode_timings(xres, yres, refresh, mode); mode 545 drivers/video/fbdev/core/fbmon.c && PICOS2KHZ(mode->pixclock) * 1000 > specs->dclkmax) { mode 553 drivers/video/fbdev/core/fbmon.c static int get_dst_timing(unsigned char *block, struct fb_videomode *mode, mode 559 drivers/video/fbdev/core/fbmon.c num += get_std_timing(block, &mode[num], ver, rev, specs); mode 565 drivers/video/fbdev/core/fbmon.c struct fb_videomode *mode) mode 567 drivers/video/fbdev/core/fbmon.c mode->xres = H_ACTIVE; mode 568 drivers/video/fbdev/core/fbmon.c mode->yres = V_ACTIVE; mode 569 drivers/video/fbdev/core/fbmon.c mode->pixclock = PIXEL_CLOCK; mode 570 drivers/video/fbdev/core/fbmon.c mode->pixclock /= 1000; mode 571 drivers/video/fbdev/core/fbmon.c mode->pixclock = KHZ2PICOS(mode->pixclock); mode 572 drivers/video/fbdev/core/fbmon.c mode->right_margin = H_SYNC_OFFSET; mode 573 drivers/video/fbdev/core/fbmon.c mode->left_margin = (H_ACTIVE + H_BLANKING) - mode 575 drivers/video/fbdev/core/fbmon.c mode->upper_margin = V_BLANKING - V_SYNC_OFFSET - mode 577 drivers/video/fbdev/core/fbmon.c mode->lower_margin = V_SYNC_OFFSET; mode 578 drivers/video/fbdev/core/fbmon.c mode->hsync_len = H_SYNC_WIDTH; mode 579 drivers/video/fbdev/core/fbmon.c mode->vsync_len = V_SYNC_WIDTH; mode 581 drivers/video/fbdev/core/fbmon.c mode->sync |= FB_SYNC_HOR_HIGH_ACT; mode 583 drivers/video/fbdev/core/fbmon.c mode->sync |= FB_SYNC_VERT_HIGH_ACT; mode 584 drivers/video/fbdev/core/fbmon.c mode->refresh = PIXEL_CLOCK/((H_ACTIVE + H_BLANKING) * mode 587 drivers/video/fbdev/core/fbmon.c mode->yres *= 2; mode 588 drivers/video/fbdev/core/fbmon.c mode->upper_margin *= 2; mode 589 drivers/video/fbdev/core/fbmon.c mode->lower_margin *= 2; mode 590 drivers/video/fbdev/core/fbmon.c mode->vsync_len *= 2; mode 591 drivers/video/fbdev/core/fbmon.c mode->vmode |= FB_VMODE_INTERLACED; mode 593 drivers/video/fbdev/core/fbmon.c mode->flag = FB_MODE_IS_DETAILED; mode 618 drivers/video/fbdev/core/fbmon.c struct fb_videomode *mode, *m; mode 623 drivers/video/fbdev/core/fbmon.c mode = kcalloc(50, sizeof(struct fb_videomode), GFP_KERNEL); mode 624 drivers/video/fbdev/core/fbmon.c if (mode == NULL) mode 629 drivers/video/fbdev/core/fbmon.c kfree(mode); mode 642 drivers/video/fbdev/core/fbmon.c get_detailed_timing(block, &mode[num]); mode 644 drivers/video/fbdev/core/fbmon.c mode[num].flag |= FB_MODE_IS_FIRST; mode 653 drivers/video/fbdev/core/fbmon.c num += get_est_timing(block, &mode[num]); mode 658 drivers/video/fbdev/core/fbmon.c num += get_std_timing(block, &mode[num], ver, rev, specs); mode 663 drivers/video/fbdev/core/fbmon.c num += get_dst_timing(block + 5, &mode[num], mode 669 drivers/video/fbdev/core/fbmon.c kfree(mode); mode 676 drivers/video/fbdev/core/fbmon.c return mode; mode 677 drivers/video/fbdev/core/fbmon.c memmove(m, mode, num * sizeof(struct fb_videomode)); mode 678 drivers/video/fbdev/core/fbmon.c kfree(mode); mode 719 drivers/video/fbdev/core/fbmon.c struct fb_videomode *modes, *mode; mode 731 drivers/video/fbdev/core/fbmon.c mode = &modes[i]; mode 733 drivers/video/fbdev/core/fbmon.c htotal = mode->xres + mode->right_margin + mode->hsync_len mode 734 drivers/video/fbdev/core/fbmon.c + mode->left_margin; mode 735 drivers/video/fbdev/core/fbmon.c vtotal = mode->yres + mode->lower_margin + mode->vsync_len mode 736 drivers/video/fbdev/core/fbmon.c + mode->upper_margin; mode 738 drivers/video/fbdev/core/fbmon.c if (mode->vmode & FB_VMODE_INTERLACED) mode 741 drivers/video/fbdev/core/fbmon.c if (mode->vmode & FB_VMODE_DOUBLE) mode 104 drivers/video/fbdev/core/fbsysfs.c const struct fb_videomode *mode) mode 109 drivers/video/fbdev/core/fbsysfs.c if (mode->flag & FB_MODE_IS_DETAILED) mode 111 drivers/video/fbdev/core/fbsysfs.c if (mode->flag & FB_MODE_IS_VESA) mode 113 drivers/video/fbdev/core/fbsysfs.c if (mode->flag & FB_MODE_IS_STANDARD) mode 116 drivers/video/fbdev/core/fbsysfs.c if (mode->vmode & FB_VMODE_INTERLACED) mode 118 drivers/video/fbdev/core/fbsysfs.c if (mode->vmode & FB_VMODE_DOUBLE) mode 122 drivers/video/fbdev/core/fbsysfs.c m, mode->xres, mode->yres, v, mode->refresh); mode 132 drivers/video/fbdev/core/fbsysfs.c struct fb_videomode *mode; mode 141 drivers/video/fbdev/core/fbsysfs.c mode = &modelist->mode; mode 142 drivers/video/fbdev/core/fbsysfs.c i = mode_string(mstr, 0, mode); mode 146 drivers/video/fbdev/core/fbsysfs.c fb_videomode_to_var(&var, mode); mode 149 drivers/video/fbdev/core/fbsysfs.c fb_info->mode = mode; mode 161 drivers/video/fbdev/core/fbsysfs.c if (!fb_info->mode) mode 164 drivers/video/fbdev/core/fbsysfs.c return mode_string(buf, 0, fb_info->mode); mode 203 drivers/video/fbdev/core/fbsysfs.c const struct fb_videomode *mode; mode 208 drivers/video/fbdev/core/fbsysfs.c mode = &modelist->mode; mode 209 drivers/video/fbdev/core/fbsysfs.c i += mode_string(buf, i, mode); mode 497 drivers/video/fbdev/core/fbsysfs.c __ATTR(mode, S_IRUGO|S_IWUSR, show_mode, store_mode), mode 543 drivers/video/fbdev/core/modedb.c const struct fb_videomode *mode, unsigned int bpp) mode 548 drivers/video/fbdev/core/modedb.c mode->name ? mode->name : "noname", mode 549 drivers/video/fbdev/core/modedb.c mode->xres, mode->yres, bpp, mode->refresh); mode 550 drivers/video/fbdev/core/modedb.c var->xres = mode->xres; mode 551 drivers/video/fbdev/core/modedb.c var->yres = mode->yres; mode 552 drivers/video/fbdev/core/modedb.c var->xres_virtual = mode->xres; mode 553 drivers/video/fbdev/core/modedb.c var->yres_virtual = mode->yres; mode 558 drivers/video/fbdev/core/modedb.c var->pixclock = mode->pixclock; mode 559 drivers/video/fbdev/core/modedb.c var->left_margin = mode->left_margin; mode 560 drivers/video/fbdev/core/modedb.c var->right_margin = mode->right_margin; mode 561 drivers/video/fbdev/core/modedb.c var->upper_margin = mode->upper_margin; mode 562 drivers/video/fbdev/core/modedb.c var->lower_margin = mode->lower_margin; mode 563 drivers/video/fbdev/core/modedb.c var->hsync_len = mode->hsync_len; mode 564 drivers/video/fbdev/core/modedb.c var->vsync_len = mode->vsync_len; mode 565 drivers/video/fbdev/core/modedb.c var->sync = mode->sync; mode 566 drivers/video/fbdev/core/modedb.c var->vmode = mode->vmode; mode 846 drivers/video/fbdev/core/modedb.c void fb_var_to_videomode(struct fb_videomode *mode, mode 851 drivers/video/fbdev/core/modedb.c mode->name = NULL; mode 852 drivers/video/fbdev/core/modedb.c mode->xres = var->xres; mode 853 drivers/video/fbdev/core/modedb.c mode->yres = var->yres; mode 854 drivers/video/fbdev/core/modedb.c mode->pixclock = var->pixclock; mode 855 drivers/video/fbdev/core/modedb.c mode->hsync_len = var->hsync_len; mode 856 drivers/video/fbdev/core/modedb.c mode->vsync_len = var->vsync_len; mode 857 drivers/video/fbdev/core/modedb.c mode->left_margin = var->left_margin; mode 858 drivers/video/fbdev/core/modedb.c mode->right_margin = var->right_margin; mode 859 drivers/video/fbdev/core/modedb.c mode->upper_margin = var->upper_margin; mode 860 drivers/video/fbdev/core/modedb.c mode->lower_margin = var->lower_margin; mode 861 drivers/video/fbdev/core/modedb.c mode->sync = var->sync; mode 862 drivers/video/fbdev/core/modedb.c mode->vmode = var->vmode & FB_VMODE_MASK; mode 863 drivers/video/fbdev/core/modedb.c mode->flag = FB_MODE_IS_FROM_VAR; mode 864 drivers/video/fbdev/core/modedb.c mode->refresh = 0; mode 885 drivers/video/fbdev/core/modedb.c mode->refresh = hfreq/vtotal; mode 894 drivers/video/fbdev/core/modedb.c const struct fb_videomode *mode) mode 896 drivers/video/fbdev/core/modedb.c var->xres = mode->xres; mode 897 drivers/video/fbdev/core/modedb.c var->yres = mode->yres; mode 898 drivers/video/fbdev/core/modedb.c var->xres_virtual = mode->xres; mode 899 drivers/video/fbdev/core/modedb.c var->yres_virtual = mode->yres; mode 902 drivers/video/fbdev/core/modedb.c var->pixclock = mode->pixclock; mode 903 drivers/video/fbdev/core/modedb.c var->left_margin = mode->left_margin; mode 904 drivers/video/fbdev/core/modedb.c var->right_margin = mode->right_margin; mode 905 drivers/video/fbdev/core/modedb.c var->upper_margin = mode->upper_margin; mode 906 drivers/video/fbdev/core/modedb.c var->lower_margin = mode->lower_margin; mode 907 drivers/video/fbdev/core/modedb.c var->hsync_len = mode->hsync_len; mode 908 drivers/video/fbdev/core/modedb.c var->vsync_len = mode->vsync_len; mode 909 drivers/video/fbdev/core/modedb.c var->sync = mode->sync; mode 910 drivers/video/fbdev/core/modedb.c var->vmode = mode->vmode & FB_VMODE_MASK; mode 959 drivers/video/fbdev/core/modedb.c struct fb_videomode *mode, *best = NULL; mode 966 drivers/video/fbdev/core/modedb.c mode = &modelist->mode; mode 968 drivers/video/fbdev/core/modedb.c if (mode->xres >= var->xres && mode->yres >= var->yres) { mode 969 drivers/video/fbdev/core/modedb.c d = (mode->xres - var->xres) + mode 970 drivers/video/fbdev/core/modedb.c (mode->yres - var->yres); mode 973 drivers/video/fbdev/core/modedb.c best = mode; mode 975 drivers/video/fbdev/core/modedb.c mode->refresh > best->refresh) mode 976 drivers/video/fbdev/core/modedb.c best = mode; mode 992 drivers/video/fbdev/core/modedb.c const struct fb_videomode *fb_find_nearest_mode(const struct fb_videomode *mode, mode 1004 drivers/video/fbdev/core/modedb.c cmode = &modelist->mode; mode 1006 drivers/video/fbdev/core/modedb.c d = abs(cmode->xres - mode->xres) + mode 1007 drivers/video/fbdev/core/modedb.c abs(cmode->yres - mode->yres); mode 1010 drivers/video/fbdev/core/modedb.c diff_refresh = abs(cmode->refresh - mode->refresh); mode 1013 drivers/video/fbdev/core/modedb.c d = abs(cmode->refresh - mode->refresh); mode 1037 drivers/video/fbdev/core/modedb.c struct fb_videomode *m, mode; mode 1039 drivers/video/fbdev/core/modedb.c fb_var_to_videomode(&mode, var); mode 1042 drivers/video/fbdev/core/modedb.c m = &modelist->mode; mode 1043 drivers/video/fbdev/core/modedb.c if (fb_mode_is_equal(m, &mode)) mode 1057 drivers/video/fbdev/core/modedb.c int fb_add_videomode(const struct fb_videomode *mode, struct list_head *head) mode 1066 drivers/video/fbdev/core/modedb.c m = &modelist->mode; mode 1067 drivers/video/fbdev/core/modedb.c if (fb_mode_is_equal(m, mode)) { mode 1078 drivers/video/fbdev/core/modedb.c modelist->mode = *mode; mode 1092 drivers/video/fbdev/core/modedb.c void fb_delete_videomode(const struct fb_videomode *mode, mode 1101 drivers/video/fbdev/core/modedb.c m = &modelist->mode; mode 1102 drivers/video/fbdev/core/modedb.c if (fb_mode_is_equal(m, mode)) { mode 1157 drivers/video/fbdev/core/modedb.c m = &modelist->mode; mode 310 drivers/video/fbdev/core/svgalib.c if (! cursor -> mode) mode 82 drivers/video/fbdev/core/tileblit.c static void tile_cursor(struct vc_data *vc, struct fb_info *info, int mode, mode 90 drivers/video/fbdev/core/tileblit.c cursor.mode = (mode == CM_ERASE || use_sw) ? 0 : 1; mode 170 drivers/video/fbdev/da8xx-fb.c struct fb_videomode mode; mode 750 drivers/video/fbdev/da8xx-fb.c struct fb_videomode *mode) mode 753 drivers/video/fbdev/da8xx-fb.c unsigned lcdc_clk_div = da8xx_fb_calc_clk_divider(par, mode->pixclock, mode 1043 drivers/video/fbdev/da8xx-fb.c da8xx_fb_calc_config_clk_divider(par, &par->mode); mode 1266 drivers/video/fbdev/da8xx-fb.c fb_var_to_videomode(&par->mode, &info->var); mode 1272 drivers/video/fbdev/da8xx-fb.c info->fix.line_length = (par->mode.xres * par->cfg.bpp) / 8; mode 1274 drivers/video/fbdev/da8xx-fb.c ret = lcd_init(par, &par->cfg, &par->mode); mode 1804 drivers/video/fbdev/fsl-diu-fb.c data->dev_attr.attr.mode = S_IRUGO|S_IWUSR; mode 1989 drivers/video/fbdev/fsl-diu-fb.c module_param_named(mode, fb_mode, charp, 0); mode 1990 drivers/video/fbdev/fsl-diu-fb.c MODULE_PARM_DESC(mode, mode 460 drivers/video/fbdev/geode/gx1fb_core.c module_param_string(mode, mode_option, sizeof(mode_option), 0444); mode 461 drivers/video/fbdev/geode/gx1fb_core.c MODULE_PARM_DESC(mode, "video mode (<x>x<y>[-<bpp>][@<refr>])"); mode 284 drivers/video/fbdev/i810/i810_accel.c static inline void i810fb_iring_enable(struct i810fb_par *par, u32 mode) mode 290 drivers/video/fbdev/i810/i810_accel.c if (mode == OFF) mode 248 drivers/video/fbdev/i810/i810_dvt.c u32 mode, pixclock; mode 254 drivers/video/fbdev/i810/i810_dvt.c mode = i810fb_find_best_mode(xres, yres, pixclock); mode 256 drivers/video/fbdev/i810/i810_dvt.c total = (std_modes[mode].cr00 | (std_modes[mode].cr35 & 1) << 8) + 3; mode 259 drivers/video/fbdev/i810/i810_dvt.c var->pixclock = 1000000000 / std_modes[mode].pixclock; mode 260 drivers/video/fbdev/i810/i810_dvt.c var->right_margin = (std_modes[mode].cr04 << 3) - xres; mode 261 drivers/video/fbdev/i810/i810_dvt.c var->hsync_len = ((std_modes[mode].cr05 & 0x1F) - mode 262 drivers/video/fbdev/i810/i810_dvt.c (std_modes[mode].cr04 & 0x1F)) << 3; mode 266 drivers/video/fbdev/i810/i810_dvt.c if (~(std_modes[mode].msr & (1 << 6))) mode 268 drivers/video/fbdev/i810/i810_dvt.c if (~(std_modes[mode].msr & (1 << 7))) mode 271 drivers/video/fbdev/i810/i810_dvt.c total = (std_modes[mode].cr06 | (std_modes[mode].cr30 & 0xF) << 8) + 2; mode 272 drivers/video/fbdev/i810/i810_dvt.c var->lower_margin = (std_modes[mode].cr10 | mode 273 drivers/video/fbdev/i810/i810_dvt.c (std_modes[mode].cr32 & 0x0F) << 8) - yres; mode 274 drivers/video/fbdev/i810/i810_dvt.c var->vsync_len = (std_modes[mode].cr11 & 0x0F) - mode 167 drivers/video/fbdev/i810/i810_main.c static void i810_screen_off(u8 __iomem *mmio, u8 mode) mode 174 drivers/video/fbdev/i810/i810_main.c val = (mode == OFF) ? val | SCR_OFF : mode 191 drivers/video/fbdev/i810/i810_main.c static void i810_dram_off(u8 __iomem *mmio, u8 mode) mode 197 drivers/video/fbdev/i810/i810_main.c val = (mode == OFF) ? val : val | DRAM_ON; mode 210 drivers/video/fbdev/i810/i810_main.c static void i810_protect_regs(u8 __iomem *mmio, int mode) mode 216 drivers/video/fbdev/i810/i810_main.c reg = (mode == OFF) ? reg & ~0x80 : mode 772 drivers/video/fbdev/i810/i810_main.c static void i810_enable_cursor(u8 __iomem *mmio, int mode) mode 777 drivers/video/fbdev/i810/i810_main.c temp = (mode == ON) ? temp | CURSOR_ENABLE_MASK : mode 1054 drivers/video/fbdev/i810/i810_main.c const struct fb_videomode *mode; mode 1056 drivers/video/fbdev/i810/i810_main.c mode = fb_find_best_mode(var, &info->modelist); mode 1057 drivers/video/fbdev/i810/i810_main.c if (mode) { mode 1058 drivers/video/fbdev/i810/i810_main.c fb_videomode_to_var(var, mode); mode 1393 drivers/video/fbdev/i810/i810_main.c int mode = 0, pwr, scr_off = 0; mode 1399 drivers/video/fbdev/i810/i810_main.c mode = POWERON; mode 1404 drivers/video/fbdev/i810/i810_main.c mode = POWERON; mode 1409 drivers/video/fbdev/i810/i810_main.c mode = STANDBY; mode 1414 drivers/video/fbdev/i810/i810_main.c mode = SUSPEND; mode 1419 drivers/video/fbdev/i810/i810_main.c mode = POWERDOWN; mode 1428 drivers/video/fbdev/i810/i810_main.c i810_writel(HVSYNC, mmio, mode); mode 1898 drivers/video/fbdev/i810/i810_main.c struct fb_videomode mode; mode 1909 drivers/video/fbdev/i810/i810_main.c memset(&mode, 0, sizeof(struct fb_videomode)); mode 1935 drivers/video/fbdev/i810/i810_main.c mode = *m; mode 1942 drivers/video/fbdev/i810/i810_main.c mode = *m; mode 1946 drivers/video/fbdev/i810/i810_main.c fb_videomode_to_var(&var, &mode); mode 1951 drivers/video/fbdev/i810/i810_main.c specs->modedb_len, (found) ? &mode : NULL, mode 2016 drivers/video/fbdev/i810/i810_main.c struct fb_videomode mode; mode 2060 drivers/video/fbdev/i810/i810_main.c fb_var_to_videomode(&mode, &info->var); mode 2061 drivers/video/fbdev/i810/i810_main.c fb_add_videomode(&mode, &info->modelist); mode 171 drivers/video/fbdev/imxfb.c struct imx_fb_videomode *mode; mode 336 drivers/video/fbdev/imxfb.c return &fbi->mode[0]; mode 338 drivers/video/fbdev/imxfb.c for (i = 0, m = &fbi->mode[0]; i < fbi->num_modes; i++, m++) { mode 339 drivers/video/fbdev/imxfb.c if (!strcmp(m->mode.name, fb_mode)) mode 369 drivers/video/fbdev/imxfb.c var->xres = imxfb_mode->mode.xres; mode 370 drivers/video/fbdev/imxfb.c var->yres = imxfb_mode->mode.yres; mode 372 drivers/video/fbdev/imxfb.c var->pixclock = imxfb_mode->mode.pixclock; mode 373 drivers/video/fbdev/imxfb.c var->hsync_len = imxfb_mode->mode.hsync_len; mode 374 drivers/video/fbdev/imxfb.c var->left_margin = imxfb_mode->mode.left_margin; mode 375 drivers/video/fbdev/imxfb.c var->right_margin = imxfb_mode->mode.right_margin; mode 376 drivers/video/fbdev/imxfb.c var->vsync_len = imxfb_mode->mode.vsync_len; mode 377 drivers/video/fbdev/imxfb.c var->upper_margin = imxfb_mode->mode.upper_margin; mode 378 drivers/video/fbdev/imxfb.c var->lower_margin = imxfb_mode->mode.lower_margin; mode 379 drivers/video/fbdev/imxfb.c var->sync = imxfb_mode->mode.sync; mode 719 drivers/video/fbdev/imxfb.c struct fb_videomode *of_mode = &imxfb_mode->mode; mode 888 drivers/video/fbdev/imxfb.c fb_mode = pdata->mode[0].mode.name; mode 890 drivers/video/fbdev/imxfb.c fbi->mode = pdata->mode; mode 909 drivers/video/fbdev/imxfb.c fbi->mode = devm_kzalloc(&pdev->dev, mode 911 drivers/video/fbdev/imxfb.c if (!fbi->mode) { mode 916 drivers/video/fbdev/imxfb.c ret = imxfb_of_read_mode(&pdev->dev, display_np, fbi->mode); mode 923 drivers/video/fbdev/imxfb.c m = &fbi->mode[0]; mode 927 drivers/video/fbdev/imxfb.c m->mode.xres * m->mode.yres * bytes_per_pixel); mode 996 drivers/video/fbdev/imxfb.c fb_add_videomode(&fbi->mode[i].mode, &info->modelist); mode 240 drivers/video/fbdev/intelfb/intelfbdrv.c static char *mode = NULL; mode 264 drivers/video/fbdev/intelfb/intelfbdrv.c module_param(mode, charp, S_IRUGO); mode 265 drivers/video/fbdev/intelfb/intelfbdrv.c MODULE_PARM_DESC(mode, mode 366 drivers/video/fbdev/intelfb/intelfbdrv.c mode = get_opt_string(this_opt, "mode="); mode 368 drivers/video/fbdev/intelfb/intelfbdrv.c mode = this_opt; mode 762 drivers/video/fbdev/intelfb/intelfbdrv.c DBG_MSG("options: mode = \"%s\"\n", mode ? mode : ""); mode 1032 drivers/video/fbdev/intelfb/intelfbdrv.c if (mode) { mode 1035 drivers/video/fbdev/intelfb/intelfbdrv.c msrc = fb_find_mode(var, dinfo->info, mode, mode 1044 drivers/video/fbdev/intelfb/intelfbdrv.c msrc = fb_find_mode(var, dinfo->info, mode, mode 52 drivers/video/fbdev/kyro/STG4000Interface.h OVRL_BLEND_MODE mode, mode 243 drivers/video/fbdev/kyro/STG4000OverlayDevice.c OVRL_BLEND_MODE mode, mode 250 drivers/video/fbdev/kyro/STG4000OverlayDevice.c tmp |= (mode << 28); mode 252 drivers/video/fbdev/kyro/STG4000OverlayDevice.c switch (mode) { mode 142 drivers/video/fbdev/macmodes.c const struct fb_videomode *mode; mode 223 drivers/video/fbdev/macmodes.c const struct fb_videomode *mode = NULL; mode 228 drivers/video/fbdev/macmodes.c mode = map->mode; mode 231 drivers/video/fbdev/macmodes.c if (!mode) mode 271 drivers/video/fbdev/macmodes.c var->xres = mode->xres; mode 272 drivers/video/fbdev/macmodes.c var->yres = mode->yres; mode 273 drivers/video/fbdev/macmodes.c var->xres_virtual = mode->xres; mode 274 drivers/video/fbdev/macmodes.c var->yres_virtual = mode->yres; mode 277 drivers/video/fbdev/macmodes.c var->pixclock = mode->pixclock; mode 278 drivers/video/fbdev/macmodes.c var->left_margin = mode->left_margin; mode 279 drivers/video/fbdev/macmodes.c var->right_margin = mode->right_margin; mode 280 drivers/video/fbdev/macmodes.c var->upper_margin = mode->upper_margin; mode 281 drivers/video/fbdev/macmodes.c var->lower_margin = mode->lower_margin; mode 282 drivers/video/fbdev/macmodes.c var->hsync_len = mode->hsync_len; mode 283 drivers/video/fbdev/macmodes.c var->vsync_len = mode->vsync_len; mode 284 drivers/video/fbdev/macmodes.c var->sync = mode->sync; mode 285 drivers/video/fbdev/macmodes.c var->vmode = mode->vmode; mode 322 drivers/video/fbdev/macmodes.c const struct fb_videomode *mode = map->mode; mode 324 drivers/video/fbdev/macmodes.c if (var->xres > mode->xres || var->yres > mode->yres) mode 326 drivers/video/fbdev/macmodes.c if (var->xres_virtual > mode->xres || var->yres_virtual > mode->yres) mode 328 drivers/video/fbdev/macmodes.c if (var->pixclock > mode->pixclock) mode 330 drivers/video/fbdev/macmodes.c if ((var->vmode & FB_VMODE_MASK) != mode->vmode) mode 340 drivers/video/fbdev/macmodes.c const struct fb_videomode *clk_mode = map->mode; mode 342 drivers/video/fbdev/macmodes.c if (mode->xres != clk_mode->xres || mode->yres != clk_mode->yres) mode 344 drivers/video/fbdev/macmodes.c if (var->pixclock > mode->pixclock) mode 346 drivers/video/fbdev/macmodes.c if (mode->vmode != clk_mode->vmode) mode 283 drivers/video/fbdev/matrox/matroxfb_DAC1064.c if (minfo->outputs[1].mode == MATROXFB_OUTPUT_MODE_MONITOR) { mode 685 drivers/video/fbdev/matrox/matroxfb_DAC1064.c minfo->outputs[0].mode = MATROXFB_OUTPUT_MODE_MONITOR; mode 880 drivers/video/fbdev/matrox/matroxfb_DAC1064.c minfo->outputs[0].mode = MATROXFB_OUTPUT_MODE_MONITOR; mode 703 drivers/video/fbdev/matrox/matroxfb_Ti3026.c minfo->outputs[0].mode = MATROXFB_OUTPUT_MODE_MONITOR; mode 923 drivers/video/fbdev/matrox/matroxfb_base.c if (mom.mode == MATROXFB_OUTPUT_MODE_MONITOR) { mode 929 drivers/video/fbdev/matrox/matroxfb_base.c val = oproc->verifymode(minfo->outputs[mom.output].data, mom.mode); mode 932 drivers/video/fbdev/matrox/matroxfb_base.c if (minfo->outputs[mom.output].mode != mom.mode) { mode 933 drivers/video/fbdev/matrox/matroxfb_base.c minfo->outputs[mom.output].mode = mom.mode; mode 973 drivers/video/fbdev/matrox/matroxfb_base.c mom.mode = minfo->outputs[mom.output].mode; mode 1673 drivers/video/fbdev/matrox/matroxfb_base.c minfo->outputs[2].mode = MATROXFB_OUTPUT_MODE_MONITOR; mode 251 drivers/video/fbdev/matrox/matroxfb_base.h int mode; mode 302 drivers/video/fbdev/matrox/matroxfb_base.h int (*verifymode)(void* altout_dev, u_int32_t mode); mode 382 drivers/video/fbdev/matrox/matroxfb_base.h unsigned int mode; mode 66 drivers/video/fbdev/matrox/matroxfb_crtc2.c int mode, mode 72 drivers/video/fbdev/matrox/matroxfb_crtc2.c switch (mode) { mode 90 drivers/video/fbdev/matrox/matroxfb_crtc2.c if (minfo->outputs[1].mode != MATROXFB_OUTPUT_MODE_MONITOR) { mode 193 drivers/video/fbdev/matrox/matroxfb_crtc2.c int *mode) { mode 226 drivers/video/fbdev/matrox/matroxfb_crtc2.c *mode = var->bits_per_pixel; mode 237 drivers/video/fbdev/matrox/matroxfb_crtc2.c *mode = 15; mode 318 drivers/video/fbdev/matrox/matroxfb_crtc2.c int mode; mode 320 drivers/video/fbdev/matrox/matroxfb_crtc2.c return matroxfb_dh_decode_var(m2info, var, &visual, &cmap_len, &mode); mode 328 drivers/video/fbdev/matrox/matroxfb_crtc2.c int mode; mode 333 drivers/video/fbdev/matrox/matroxfb_crtc2.c if ((err = matroxfb_dh_decode_var(m2info, var, &visual, &cmap_len, &mode)) != 0) mode 370 drivers/video/fbdev/matrox/matroxfb_crtc2.c matroxfb_dh_restore(m2info, &mt, mode, pos); mode 524 drivers/video/fbdev/matrox/matroxfb_g450.c dprintk(KERN_DEBUG "Computing, mode=%u\n", minfo->outputs[1].mode); mode 527 drivers/video/fbdev/matrox/matroxfb_g450.c minfo->outputs[1].mode != MATROXFB_OUTPUT_MODE_MONITOR) { mode 530 drivers/video/fbdev/matrox/matroxfb_g450.c cve2_init_TVdata(minfo->outputs[1].mode, &minfo->hw.maven, &outd); mode 562 drivers/video/fbdev/matrox/matroxfb_g450.c if (minfo->outputs[1].mode != MATROXFB_OUTPUT_MODE_MONITOR) { mode 611 drivers/video/fbdev/matrox/matroxfb_g450.c minfo->outputs[1].mode = MATROXFB_OUTPUT_MODE_MONITOR; mode 615 drivers/video/fbdev/matrox/matroxfb_g450.c minfo->outputs[2].mode = MATROXFB_OUTPUT_MODE_MONITOR; mode 627 drivers/video/fbdev/matrox/matroxfb_g450.c minfo->outputs[1].mode = MATROXFB_OUTPUT_MODE_MONITOR; mode 631 drivers/video/fbdev/matrox/matroxfb_g450.c minfo->outputs[2].mode = MATROXFB_OUTPUT_MODE_MONITOR; mode 479 drivers/video/fbdev/matrox/matroxfb_maven.c if (minfo->outputs[1].mode == MATROXFB_OUTPUT_MODE_PAL) mode 561 drivers/video/fbdev/matrox/matroxfb_maven.c if (m->mode == MATROXFB_OUTPUT_MODE_PAL) { mode 599 drivers/video/fbdev/matrox/matroxfb_maven.c if (m->mode == MATROXFB_OUTPUT_MODE_PAL) mode 699 drivers/video/fbdev/matrox/matroxfb_maven.c if (m->mode == MATROXFB_OUTPUT_MODE_PAL) mode 739 drivers/video/fbdev/matrox/matroxfb_maven.c if (!matroxfb_mavenclock((m->mode == MATROXFB_OUTPUT_MODE_PAL) ? &maven_PAL : &maven_NTSC, h, vt, &a, &b, &c, &h2)) { mode 762 drivers/video/fbdev/matrox/matroxfb_maven.c m->mode = minfo->outputs[1].mode; mode 763 drivers/video/fbdev/matrox/matroxfb_maven.c if (m->mode != MATROXFB_OUTPUT_MODE_MONITOR) { mode 993 drivers/video/fbdev/matrox/matroxfb_maven.c if (m->mode == MATROXFB_OUTPUT_MODE_MONITOR) { mode 1213 drivers/video/fbdev/matrox/matroxfb_maven.c minfo->outputs[1].mode = MATROXFB_OUTPUT_MODE_MONITOR; mode 1245 drivers/video/fbdev/matrox/matroxfb_maven.c minfo->outputs[1].mode = MATROXFB_OUTPUT_MODE_MONITOR; mode 283 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c static int mb862xxfb_blank(int mode, struct fb_info *fbi) mode 288 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c dev_dbg(fbi->dev, "blank mode=%d\n", mode); mode 290 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c switch (mode) { mode 421 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c struct mb862xx_gc_mode *mode = par->gc_mode; mode 475 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c } else if (mode) { mode 477 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c fb_videomode_to_var(&fbi->var, (struct fb_videomode *)mode); mode 478 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c fbi->var.bits_per_pixel = mode->def_bpp ? mode->def_bpp : 8; mode 225 drivers/video/fbdev/mmp/fb/mmpfb.c static void fbmode_to_mmpmode(struct mmp_mode *mode, mode 229 drivers/video/fbdev/mmp/fb/mmpfb.c mode->name = videomode->name; mode 230 drivers/video/fbdev/mmp/fb/mmpfb.c mode->refresh = videomode->refresh; mode 231 drivers/video/fbdev/mmp/fb/mmpfb.c mode->xres = videomode->xres; mode 232 drivers/video/fbdev/mmp/fb/mmpfb.c mode->yres = videomode->yres; mode 235 drivers/video/fbdev/mmp/fb/mmpfb.c mode->pixclock_freq = (u32)div_result; mode 237 drivers/video/fbdev/mmp/fb/mmpfb.c mode->left_margin = videomode->left_margin; mode 238 drivers/video/fbdev/mmp/fb/mmpfb.c mode->right_margin = videomode->right_margin; mode 239 drivers/video/fbdev/mmp/fb/mmpfb.c mode->upper_margin = videomode->upper_margin; mode 240 drivers/video/fbdev/mmp/fb/mmpfb.c mode->lower_margin = videomode->lower_margin; mode 241 drivers/video/fbdev/mmp/fb/mmpfb.c mode->hsync_len = videomode->hsync_len; mode 242 drivers/video/fbdev/mmp/fb/mmpfb.c mode->vsync_len = videomode->vsync_len; mode 243 drivers/video/fbdev/mmp/fb/mmpfb.c mode->hsync_invert = !!(videomode->sync & FB_SYNC_HOR_HIGH_ACT); mode 244 drivers/video/fbdev/mmp/fb/mmpfb.c mode->vsync_invert = !!(videomode->sync & FB_SYNC_VERT_HIGH_ACT); mode 246 drivers/video/fbdev/mmp/fb/mmpfb.c mode->invert_pixclock = !!(videomode->vmode & 8); mode 247 drivers/video/fbdev/mmp/fb/mmpfb.c mode->pix_fmt_out = output_fmt; mode 251 drivers/video/fbdev/mmp/fb/mmpfb.c struct mmp_mode *mode) mode 255 drivers/video/fbdev/mmp/fb/mmpfb.c videomode->name = mode->name; mode 256 drivers/video/fbdev/mmp/fb/mmpfb.c videomode->refresh = mode->refresh; mode 257 drivers/video/fbdev/mmp/fb/mmpfb.c videomode->xres = mode->xres; mode 258 drivers/video/fbdev/mmp/fb/mmpfb.c videomode->yres = mode->yres; mode 260 drivers/video/fbdev/mmp/fb/mmpfb.c do_div(div_result, mode->pixclock_freq); mode 263 drivers/video/fbdev/mmp/fb/mmpfb.c videomode->left_margin = mode->left_margin; mode 264 drivers/video/fbdev/mmp/fb/mmpfb.c videomode->right_margin = mode->right_margin; mode 265 drivers/video/fbdev/mmp/fb/mmpfb.c videomode->upper_margin = mode->upper_margin; mode 266 drivers/video/fbdev/mmp/fb/mmpfb.c videomode->lower_margin = mode->lower_margin; mode 267 drivers/video/fbdev/mmp/fb/mmpfb.c videomode->hsync_len = mode->hsync_len; mode 268 drivers/video/fbdev/mmp/fb/mmpfb.c videomode->vsync_len = mode->vsync_len; mode 269 drivers/video/fbdev/mmp/fb/mmpfb.c videomode->sync = (mode->hsync_invert ? FB_SYNC_HOR_HIGH_ACT : 0) mode 270 drivers/video/fbdev/mmp/fb/mmpfb.c | (mode->vsync_invert ? FB_SYNC_VERT_HIGH_ACT : 0); mode 271 drivers/video/fbdev/mmp/fb/mmpfb.c videomode->vmode = mode->invert_pixclock ? 8 : 0; mode 371 drivers/video/fbdev/mmp/fb/mmpfb.c memcpy(&fbi->mode, m, sizeof(struct fb_videomode)); mode 390 drivers/video/fbdev/mmp/fb/mmpfb.c win.xsrc = win.xdst = fbi->mode.xres; mode 391 drivers/video/fbdev/mmp/fb/mmpfb.c win.ysrc = win.ydst = fbi->mode.yres; mode 405 drivers/video/fbdev/mmp/fb/mmpfb.c struct mmp_mode mode; mode 413 drivers/video/fbdev/mmp/fb/mmpfb.c fbmode_to_mmpmode(&mode, &fbi->mode, fbi->output_fmt); mode 414 drivers/video/fbdev/mmp/fb/mmpfb.c mmp_path_set_mode(fbi->path, &mode); mode 493 drivers/video/fbdev/mmp/fb/mmpfb.c memcpy(&fbi->mode, &videomodes[0], sizeof(struct fb_videomode)); mode 495 drivers/video/fbdev/mmp/fb/mmpfb.c fb_videomode_to_var(&info->var, &fbi->mode); mode 24 drivers/video/fbdev/mmp/fb/mmpfb.h struct fb_videomode mode; mode 245 drivers/video/fbdev/mmp/hw/mmp_ctrl.c static void path_set_mode(struct mmp_path *path, struct mmp_mode *mode) mode 253 drivers/video/fbdev/mmp/hw/mmp_ctrl.c memcpy(&path->mode, mode, sizeof(struct mmp_mode)); mode 259 drivers/video/fbdev/mmp/hw/mmp_ctrl.c tmp |= mode->vsync_invert ? 0 : 0x8; mode 260 drivers/video/fbdev/mmp/hw/mmp_ctrl.c tmp |= mode->hsync_invert ? 0 : 0x4; mode 271 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed((mode->yres << 16) | mode->xres, ®s->screen_active); mode 272 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed((mode->left_margin << 16) | mode->right_margin, mode 274 drivers/video/fbdev/mmp/hw/mmp_ctrl.c writel_relaxed((mode->upper_margin << 16) | mode->lower_margin, mode 276 drivers/video/fbdev/mmp/hw/mmp_ctrl.c total_x = mode->xres + mode->left_margin + mode->right_margin + mode 277 drivers/video/fbdev/mmp/hw/mmp_ctrl.c mode->hsync_len; mode 278 drivers/video/fbdev/mmp/hw/mmp_ctrl.c total_y = mode->yres + mode->upper_margin + mode->lower_margin + mode 279 drivers/video/fbdev/mmp/hw/mmp_ctrl.c mode->vsync_len; mode 286 drivers/video/fbdev/mmp/hw/mmp_ctrl.c vsync_ctrl = ((mode->xres + mode->right_margin) << 16) mode 287 drivers/video/fbdev/mmp/hw/mmp_ctrl.c | (mode->xres + mode->right_margin); mode 292 drivers/video/fbdev/mmp/hw/mmp_ctrl.c sclk_div = sclk_src / mode->pixclock_freq; mode 293 drivers/video/fbdev/mmp/hw/mmp_ctrl.c if (sclk_div * mode->pixclock_freq < sclk_src) mode 297 drivers/video/fbdev/mmp/hw/mmp_ctrl.c __func__, sclk_src, sclk_div, mode->pixclock_freq); mode 428 drivers/video/fbdev/mmp/hw/mmp_ctrl.h #define CFG_HWC_1BITMOD(mode) ((mode)<<26) mode 519 drivers/video/fbdev/mmp/hw/mmp_ctrl.h #define CFG_SRAM_INIT_WR_RD(mode) ((mode)<<14) mode 590 drivers/video/fbdev/mmp/hw/mmp_ctrl.h #define CFG_DUMBMODE(mode) ((mode)<<28) mode 592 drivers/video/fbdev/mmp/hw/mmp_ctrl.h #define CFG_INTFRBSWAP(mode) ((mode)<<24) mode 796 drivers/video/fbdev/mx3fb.c enum ipu_panel mode = IPU_PANEL_TFT; mode 843 drivers/video/fbdev/mx3fb.c mode = IPU_PANEL_SHARP_TFT; mode 848 drivers/video/fbdev/mx3fb.c if (sdc_init_panel(mx3fb, mode, mode 1433 drivers/video/fbdev/mx3fb.c const struct fb_videomode *mode; mode 1460 drivers/video/fbdev/mx3fb.c if (mx3fb_pdata->mode && mx3fb_pdata->num_modes) { mode 1461 drivers/video/fbdev/mx3fb.c mode = mx3fb_pdata->mode; mode 1464 drivers/video/fbdev/mx3fb.c mode = mx3fb_modedb; mode 1468 drivers/video/fbdev/mx3fb.c if (!fb_find_mode(&fbi->var, fbi, fb_mode, mode, mode 1474 drivers/video/fbdev/mx3fb.c fb_videomode_to_modelist(mode, num_modes, &fbi->modelist); mode 154 drivers/video/fbdev/neofb.c biosMode *mode; mode 159 drivers/video/fbdev/neofb.c mode = bios8; mode 163 drivers/video/fbdev/neofb.c mode = bios16; mode 167 drivers/video/fbdev/neofb.c mode = bios24; mode 172 drivers/video/fbdev/neofb.c mode = bios32; mode 180 drivers/video/fbdev/neofb.c if (xres <= mode[i].x_res) { mode 181 drivers/video/fbdev/neofb.c xres_s = mode[i].x_res; mode 183 drivers/video/fbdev/neofb.c if (mode[i].x_res != xres_s) mode 184 drivers/video/fbdev/neofb.c return mode[i - 1].mode; mode 185 drivers/video/fbdev/neofb.c if (yres <= mode[i].y_res) mode 186 drivers/video/fbdev/neofb.c return mode[i].mode; mode 190 drivers/video/fbdev/neofb.c return mode[size - 1].mode; mode 831 drivers/video/fbdev/nvidia/nvidia.c const struct fb_videomode *mode; mode 833 drivers/video/fbdev/nvidia/nvidia.c mode = fb_find_best_mode(var, &info->modelist); mode 834 drivers/video/fbdev/nvidia/nvidia.c if (mode) { mode 835 drivers/video/fbdev/nvidia/nvidia.c fb_videomode_to_var(var, mode); mode 850 drivers/video/fbdev/nvidia/nvidia.c const struct fb_videomode *mode; mode 855 drivers/video/fbdev/nvidia/nvidia.c mode = fb_find_best_mode(var, &info->modelist); mode 856 drivers/video/fbdev/nvidia/nvidia.c if (!mode) { mode 862 drivers/video/fbdev/nvidia/nvidia.c fb_videomode_to_var(var, mode); mode 1130 drivers/video/fbdev/nvidia/nvidia.c const struct fb_videomode *mode; mode 1132 drivers/video/fbdev/nvidia/nvidia.c mode = fb_find_best_display(specs, &info->modelist); mode 1133 drivers/video/fbdev/nvidia/nvidia.c fb_videomode_to_var(&nvidiafb_default_var, mode); mode 568 drivers/video/fbdev/omap/hwa742.c static int hwa742_set_update_mode(enum omapfb_update_mode mode) mode 570 drivers/video/fbdev/omap/hwa742.c if (mode != OMAPFB_MANUAL_UPDATE && mode != OMAPFB_AUTO_UPDATE && mode 571 drivers/video/fbdev/omap/hwa742.c mode != OMAPFB_UPDATE_DISABLED) mode 574 drivers/video/fbdev/omap/hwa742.c if (mode == hwa742.update_mode) mode 578 drivers/video/fbdev/omap/hwa742.c mode == OMAPFB_UPDATE_DISABLED ? "disabled" : mode 579 drivers/video/fbdev/omap/hwa742.c (mode == OMAPFB_AUTO_UPDATE ? "auto" : "manual")); mode 593 drivers/video/fbdev/omap/hwa742.c hwa742.update_mode = mode; mode 597 drivers/video/fbdev/omap/hwa742.c switch (mode) { mode 559 drivers/video/fbdev/omap/lcd_mipid.c spi->mode = SPI_MODE_0; mode 79 drivers/video/fbdev/omap/lcdc.c static void set_load_mode(enum lcdc_load_mode mode) mode 85 drivers/video/fbdev/omap/lcdc.c switch (mode) { mode 521 drivers/video/fbdev/omap/lcdc.c static int omap_lcdc_set_update_mode(enum omapfb_update_mode mode) mode 525 drivers/video/fbdev/omap/lcdc.c if (mode != lcdc.update_mode) { mode 526 drivers/video/fbdev/omap/lcdc.c switch (mode) { mode 538 drivers/video/fbdev/omap/lcdc.c lcdc.update_mode = mode; mode 543 drivers/video/fbdev/omap/lcdc.c lcdc.update_mode = mode; mode 151 drivers/video/fbdev/omap/omapfb.h int (*set_update_mode)(enum omapfb_update_mode mode); mode 996 drivers/video/fbdev/omap/omapfb_main.c enum omapfb_update_mode mode) mode 1001 drivers/video/fbdev/omap/omapfb_main.c r = fbdev->ctrl->set_update_mode(mode); mode 236 drivers/video/fbdev/omap/sossi.c static void _set_tearsync_mode(int mode, unsigned line) mode 244 drivers/video/fbdev/omap/sossi.c l |= mode << 26; mode 246 drivers/video/fbdev/omap/sossi.c if (mode) mode 427 drivers/video/fbdev/omap/sossi.c int mode; mode 434 drivers/video/fbdev/omap/sossi.c mode = 2; /* HS or VS */ mode 436 drivers/video/fbdev/omap/sossi.c mode = 3; /* VS only */ mode 438 drivers/video/fbdev/omap/sossi.c mode = 0; mode 440 drivers/video/fbdev/omap/sossi.c sossi.tearsync_mode = mode; mode 579 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c .mode = OMAP_DSS_DSI_CMD_MODE, mode 270 drivers/video/fbdev/omap2/omapfb/displays/panel-nec-nl8048hl11.c spi->mode = SPI_MODE_0; mode 287 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c static void set_cabc_mode(struct panel_drv_data *ddata, unsigned mode) mode 291 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c ddata->cabc_mode = mode; mode 297 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c cabc_ctrl |= (1 << 8) | (mode & 3); mode 422 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c int mode; mode 426 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c mode = 0; mode 428 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c mode = get_cabc_mode(ddata); mode 430 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c if (mode >= 0 && mode < ARRAY_SIZE(cabc_modes)) mode 431 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c mode_str = cabc_modes[mode]; mode 749 drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c spi->mode = SPI_MODE_3; mode 385 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c spi->mode = SPI_MODE_3; mode 63 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c u32 mode; mode 202 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c return snprintf(buf, PAGE_SIZE, "%d\n", ddata->mode); mode 216 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->mode = val; mode 269 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c static DEVICE_ATTR(mode, S_IRUGO | S_IWUSR, mode 303 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c TPO_R02_MODE(ddata->mode) | TPO_R02_NCLK_RISING); mode 500 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c spi->mode = SPI_MODE_0; mode 520 drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c ddata->mode = TPO_R02_MODE_800x480; mode 2951 drivers/video/fbdev/omap2/omapfb/dss/dispc.c static void dispc_set_loadmode(enum omap_dss_load_mode mode) mode 2953 drivers/video/fbdev/omap2/omapfb/dss/dispc.c REG_FLD_MOD(DISPC_CONFIG, mode, 2, 1); mode 3028 drivers/video/fbdev/omap2/omapfb/dss/dispc.c static void dispc_mgr_set_io_pad_mode(enum dss_io_pad_mode mode) mode 3033 drivers/video/fbdev/omap2/omapfb/dss/dispc.c switch (mode) { mode 377 drivers/video/fbdev/omap2/omapfb/dss/dsi.c enum omap_dss_dsi_mode mode; mode 2150 drivers/video/fbdev/omap2/omapfb/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_VIDEO_MODE) { mode 3312 drivers/video/fbdev/omap2/omapfb/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_VIDEO_MODE) { mode 3610 drivers/video/fbdev/omap2/omapfb/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_VIDEO_MODE) { mode 3688 drivers/video/fbdev/omap2/omapfb/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_VIDEO_MODE) { mode 3824 drivers/video/fbdev/omap2/omapfb/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_VIDEO_MODE) { mode 3865 drivers/video/fbdev/omap2/omapfb/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_VIDEO_MODE) { mode 3881 drivers/video/fbdev/omap2/omapfb/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_VIDEO_MODE) { mode 4096 drivers/video/fbdev/omap2/omapfb/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_CMD_MODE) { mode 4137 drivers/video/fbdev/omap2/omapfb/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_CMD_MODE) mode 4150 drivers/video/fbdev/omap2/omapfb/dss/dsi.c if (dsi->mode == OMAP_DSS_DSI_CMD_MODE) mode 4801 drivers/video/fbdev/omap2/omapfb/dss/dsi.c dsi->mode = config->mode; mode 4803 drivers/video/fbdev/omap2/omapfb/dss/dsi.c if (config->mode == OMAP_DSS_DSI_VIDEO_MODE) mode 253 drivers/video/fbdev/omap2/omapfb/dss/dss.h enum omap_color_mode mode); mode 192 drivers/video/fbdev/omap2/omapfb/dss/hdmi.h enum hdmi_audio_transf_mode mode; mode 827 drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c audio_dma.mode = HDMI_AUDIO_TRANSF_DMA; mode 857 drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c audio_dma.mode = HDMI_AUDIO_TRANSF_DMA; mode 239 drivers/video/fbdev/omap2/omapfb/dss/hdmi_wp.c r = FLD_MOD(r, aud_dma->mode, 9, 9); mode 185 drivers/video/fbdev/omap2/omapfb/dss/overlay.c enum omap_color_mode mode) mode 187 drivers/video/fbdev/omap2/omapfb/dss/overlay.c if (mode != OMAP_DSS_COLOR_RGB12U && mode != OMAP_DSS_COLOR_RGB16) mode 299 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c enum omapfb_update_mode mode) mode 310 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c if (mode != OMAPFB_AUTO_UPDATE && mode != OMAPFB_MANUAL_UPDATE) mode 317 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c if (d->update_mode == mode) { mode 325 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c if (mode == OMAPFB_AUTO_UPDATE) mode 330 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c d->update_mode = mode; mode 332 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c if (mode == OMAPFB_MANUAL_UPDATE) mode 342 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c enum omapfb_update_mode *mode) mode 356 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c *mode = d->update_mode; mode 514 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c struct omapfb_ovl_colormode *mode) mode 516 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c int ovl_idx = mode->overlay_idx; mode 517 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c int mode_idx = mode->mode_idx; mode 528 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c mode_idx = mode->mode_idx; mode 549 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c mode->bits_per_pixel = var.bits_per_pixel; mode 550 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c mode->nonstd = var.nonstd; mode 551 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c mode->red = var.red; mode 552 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c mode->green = var.green; mode 553 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c mode->blue = var.blue; mode 554 drivers/video/fbdev/omap2/omapfb/omapfb-ioctl.c mode->transp = var.transp; mode 300 drivers/video/fbdev/omap2/omapfb/omapfb-main.c enum omap_color_mode *mode) mode 311 drivers/video/fbdev/omap2/omapfb/omapfb-main.c *mode = m->dssmode; mode 324 drivers/video/fbdev/omap2/omapfb/omapfb-main.c *mode = m->dssmode; mode 364 drivers/video/fbdev/omap2/omapfb/omapfb-main.c *mode = m->dssmode; mode 499 drivers/video/fbdev/omap2/omapfb/omapfb-main.c enum omap_color_mode mode; mode 508 drivers/video/fbdev/omap2/omapfb/omapfb-main.c r = fb_mode_to_dss_mode(var, &mode); mode 514 drivers/video/fbdev/omap2/omapfb/omapfb-main.c yuv_mode = mode == OMAP_DSS_COLOR_YUV2 || mode == OMAP_DSS_COLOR_UYVY; mode 581 drivers/video/fbdev/omap2/omapfb/omapfb-main.c struct omapfb_colormode *mode = &omapfb_colormodes[i]; mode 582 drivers/video/fbdev/omap2/omapfb/omapfb-main.c if (dssmode == mode->dssmode) { mode 583 drivers/video/fbdev/omap2/omapfb/omapfb-main.c assign_colormode_to_var(var, mode); mode 658 drivers/video/fbdev/omap2/omapfb/omapfb-main.c enum omap_color_mode mode = 0; mode 666 drivers/video/fbdev/omap2/omapfb/omapfb-main.c r = fb_mode_to_dss_mode(var, &mode); mode 673 drivers/video/fbdev/omap2/omapfb/omapfb-main.c if ((ofbi->overlays[i]->supported_modes & mode) == 0) { mode 838 drivers/video/fbdev/omap2/omapfb/omapfb-main.c enum omap_color_mode mode = 0; mode 871 drivers/video/fbdev/omap2/omapfb/omapfb-main.c r = fb_mode_to_dss_mode(var, &mode); mode 902 drivers/video/fbdev/omap2/omapfb/omapfb-main.c info.color_mode = mode; mode 1139 drivers/video/fbdev/omap2/omapfb/omapfb-main.c enum omapfb_color_format mode = OMAPFB_COLOR_RGB24U; /* XXX */ mode 1142 drivers/video/fbdev/omap2/omapfb/omapfb-main.c switch (mode) { mode 2630 drivers/video/fbdev/omap2/omapfb/omapfb-main.c module_param_named(mode, def_mode, charp, 0); mode 511 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c enum omapfb_update_mode mode; mode 514 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c r = omapfb_get_update_mode(fbi, &mode); mode 519 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c return snprintf(buf, PAGE_SIZE, "%u\n", (unsigned)mode); mode 526 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c unsigned mode; mode 529 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c r = kstrtouint(buf, 0, &mode); mode 533 drivers/video/fbdev/omap2/omapfb/omapfb-sysfs.c r = omapfb_set_update_mode(fbi, mode); mode 130 drivers/video/fbdev/omap2/omapfb/omapfb.h int omapfb_get_update_mode(struct fb_info *fbi, enum omapfb_update_mode *mode); mode 131 drivers/video/fbdev/omap2/omapfb/omapfb.h int omapfb_set_update_mode(struct fb_info *fbi, enum omapfb_update_mode mode); mode 290 drivers/video/fbdev/platinumfb.c init->mode[cmode+1] : mode 291 drivers/video/fbdev/platinumfb.c init->mode[cmode])); mode 64 drivers/video/fbdev/platinumfb.h unsigned char mode[3]; mode 1262 drivers/video/fbdev/pm2fb.c u8 mode = PM2F_CURSORMODE_TYPE_X; mode 1267 drivers/video/fbdev/pm2fb.c mode |= PM2F_CURSORMODE_CURSOR_ENABLE; mode 1269 drivers/video/fbdev/pm2fb.c pm2v_RDAC_WR(par, PM2VI_RD_CURSOR_MODE, mode); mode 1363 drivers/video/fbdev/pm2fb.c u8 mode; mode 1377 drivers/video/fbdev/pm2fb.c mode = 0x40; mode 1379 drivers/video/fbdev/pm2fb.c mode = 0x43; mode 1381 drivers/video/fbdev/pm2fb.c pm2_RDAC_WR(par, PM2I_RD_CURSOR_CONTROL, mode); mode 1822 drivers/video/fbdev/pm2fb.c module_param_named(mode, mode_option, charp, 0); mode 1823 drivers/video/fbdev/pm2fb.c MODULE_PARM_DESC(mode, "Initial video mode e.g. '648x480-8@60' (deprecated)"); mode 615 drivers/video/fbdev/pm3fb.c u8 mode; mode 626 drivers/video/fbdev/pm3fb.c mode = PM3RD_CursorMode_TYPE_X; mode 628 drivers/video/fbdev/pm3fb.c mode |= PM3RD_CursorMode_CURSOR_ENABLE; mode 630 drivers/video/fbdev/pm3fb.c PM3_WRITE_DAC_REG(par, PM3RD_CursorMode, mode); mode 319 drivers/video/fbdev/ps3fb.c u32 mode = id & PS3AV_MODE_MASK; mode 321 drivers/video/fbdev/ps3fb.c if (mode < PS3AV_MODE_480I || mode > PS3AV_MODE_WUXGA) mode 324 drivers/video/fbdev/ps3fb.c if (mode <= PS3AV_MODE_1080P50 && !(id & PS3AV_MODE_FULL)) { mode 326 drivers/video/fbdev/ps3fb.c return &ps3fb_modedb[mode - 1]; mode 329 drivers/video/fbdev/ps3fb.c return ps3fb_native_vmode(mode); mode 535 drivers/video/fbdev/ps3fb.c int mode; mode 537 drivers/video/fbdev/ps3fb.c mode = ps3fb_find_mode(var, &ddr_line_length, &xdr_line_length); mode 538 drivers/video/fbdev/ps3fb.c if (!mode) mode 605 drivers/video/fbdev/ps3fb.c unsigned int mode, ddr_line_length, xdr_line_length, lines, maxlines; mode 610 drivers/video/fbdev/ps3fb.c mode = ps3fb_find_mode(&info->var, &ddr_line_length, &xdr_line_length); mode 611 drivers/video/fbdev/ps3fb.c if (!mode) mode 614 drivers/video/fbdev/ps3fb.c vmode = ps3fb_native_vmode(mode & PS3AV_MODE_MASK); mode 628 drivers/video/fbdev/ps3fb.c par->new_mode_id = (par->new_mode_id & ~PS3AV_MODE_MASK) | mode; mode 167 drivers/video/fbdev/pxa168fb.c struct fb_videomode *mode, int pix_fmt, int ystretch) mode 173 drivers/video/fbdev/pxa168fb.c var->xres = mode->xres; mode 174 drivers/video/fbdev/pxa168fb.c var->yres = mode->yres; mode 183 drivers/video/fbdev/pxa168fb.c var->pixclock = mode->pixclock; mode 184 drivers/video/fbdev/pxa168fb.c var->left_margin = mode->left_margin; mode 185 drivers/video/fbdev/pxa168fb.c var->right_margin = mode->right_margin; mode 186 drivers/video/fbdev/pxa168fb.c var->upper_margin = mode->upper_margin; mode 187 drivers/video/fbdev/pxa168fb.c var->lower_margin = mode->lower_margin; mode 188 drivers/video/fbdev/pxa168fb.c var->hsync_len = mode->hsync_len; mode 189 drivers/video/fbdev/pxa168fb.c var->vsync_len = mode->vsync_len; mode 190 drivers/video/fbdev/pxa168fb.c var->sync = mode->sync; mode 406 drivers/video/fbdev/pxa168fb.c struct fb_videomode mode; mode 434 drivers/video/fbdev/pxa168fb.c fb_var_to_videomode(&mode, &info->var); mode 437 drivers/video/fbdev/pxa168fb.c set_clock_divider(fbi, &mode); mode 219 drivers/video/fbdev/pxa168fb.h #define CFG_HWC_1BITMOD(mode) ((mode) << 26) mode 294 drivers/video/fbdev/pxa168fb.h #define CFG_SRAM_INIT_WR_RD(mode) ((mode) << 14) mode 362 drivers/video/fbdev/pxa168fb.h #define CFG_DUMBMODE(mode) ((mode) << 28) mode 371 drivers/video/fbdev/pxafb.c struct pxafb_mode_info *mode = NULL; mode 384 drivers/video/fbdev/pxafb.c mode = &modelist[i]; mode 388 drivers/video/fbdev/pxafb.c return mode; mode 392 drivers/video/fbdev/pxafb.c struct pxafb_mode_info *mode) mode 394 drivers/video/fbdev/pxafb.c var->xres = mode->xres; mode 395 drivers/video/fbdev/pxafb.c var->yres = mode->yres; mode 396 drivers/video/fbdev/pxafb.c var->bits_per_pixel = mode->bpp; mode 397 drivers/video/fbdev/pxafb.c var->pixclock = mode->pixclock; mode 398 drivers/video/fbdev/pxafb.c var->hsync_len = mode->hsync_len; mode 399 drivers/video/fbdev/pxafb.c var->left_margin = mode->left_margin; mode 400 drivers/video/fbdev/pxafb.c var->right_margin = mode->right_margin; mode 401 drivers/video/fbdev/pxafb.c var->vsync_len = mode->vsync_len; mode 402 drivers/video/fbdev/pxafb.c var->upper_margin = mode->upper_margin; mode 403 drivers/video/fbdev/pxafb.c var->lower_margin = mode->lower_margin; mode 404 drivers/video/fbdev/pxafb.c var->sync = mode->sync; mode 405 drivers/video/fbdev/pxafb.c var->grayscale = mode->cmap_greyscale; mode 406 drivers/video/fbdev/pxafb.c var->transp.length = mode->transparency; mode 409 drivers/video/fbdev/pxafb.c pxafb_set_pixfmt(var, mode->depth); mode 468 drivers/video/fbdev/pxafb.c struct pxafb_mode_info *mode; mode 470 drivers/video/fbdev/pxafb.c mode = pxafb_getmode(inf, var); mode 471 drivers/video/fbdev/pxafb.c if (!mode) mode 473 drivers/video/fbdev/pxafb.c pxafb_setmode(var, mode); mode 1237 drivers/video/fbdev/pxafb.c struct pxafb_mode_info *mode = &inf->modes[0]; mode 1241 drivers/video/fbdev/pxafb.c t1 = max(mode->a0csrd_set_hld, mode->a0cswr_set_hld); mode 1242 drivers/video/fbdev/pxafb.c t2 = max(mode->rd_pulse_width, mode->wr_pulse_width); mode 1243 drivers/video/fbdev/pxafb.c t3 = mode->op_hold_time; mode 1244 drivers/video/fbdev/pxafb.c t4 = mode->cmd_inh_time; mode 1917 drivers/video/fbdev/pxafb.c struct pxafb_mode_info *mode = &inf->modes[0]; mode 1927 drivers/video/fbdev/pxafb.c mode->pixclock = simple_strtoul(this_opt+9, NULL, 0); mode 1928 drivers/video/fbdev/pxafb.c sprintf(s, "pixclock: %ld\n", mode->pixclock); mode 1930 drivers/video/fbdev/pxafb.c mode->left_margin = simple_strtoul(this_opt+5, NULL, 0); mode 1931 drivers/video/fbdev/pxafb.c sprintf(s, "left: %u\n", mode->left_margin); mode 1933 drivers/video/fbdev/pxafb.c mode->right_margin = simple_strtoul(this_opt+6, NULL, 0); mode 1934 drivers/video/fbdev/pxafb.c sprintf(s, "right: %u\n", mode->right_margin); mode 1936 drivers/video/fbdev/pxafb.c mode->upper_margin = simple_strtoul(this_opt+6, NULL, 0); mode 1937 drivers/video/fbdev/pxafb.c sprintf(s, "upper: %u\n", mode->upper_margin); mode 1939 drivers/video/fbdev/pxafb.c mode->lower_margin = simple_strtoul(this_opt+6, NULL, 0); mode 1940 drivers/video/fbdev/pxafb.c sprintf(s, "lower: %u\n", mode->lower_margin); mode 1942 drivers/video/fbdev/pxafb.c mode->hsync_len = simple_strtoul(this_opt+9, NULL, 0); mode 1943 drivers/video/fbdev/pxafb.c sprintf(s, "hsynclen: %u\n", mode->hsync_len); mode 1945 drivers/video/fbdev/pxafb.c mode->vsync_len = simple_strtoul(this_opt+9, NULL, 0); mode 1946 drivers/video/fbdev/pxafb.c sprintf(s, "vsynclen: %u\n", mode->vsync_len); mode 1950 drivers/video/fbdev/pxafb.c mode->sync &= ~FB_SYNC_HOR_HIGH_ACT; mode 1953 drivers/video/fbdev/pxafb.c mode->sync |= FB_SYNC_HOR_HIGH_ACT; mode 1958 drivers/video/fbdev/pxafb.c mode->sync &= ~FB_SYNC_VERT_HIGH_ACT; mode 1961 drivers/video/fbdev/pxafb.c mode->sync |= FB_SYNC_VERT_HIGH_ACT; mode 1085 drivers/video/fbdev/riva/fbdev.c const struct fb_videomode *mode; mode 1156 drivers/video/fbdev/riva/fbdev.c mode = fb_find_best_mode(var, &info->modelist); mode 1157 drivers/video/fbdev/riva/fbdev.c if (mode) { mode 1158 drivers/video/fbdev/riva/fbdev.c riva_update_var(var, mode); mode 131 drivers/video/fbdev/s1d13xxxfb.c u8 mode = s1d13xxxfb_readreg(par, S1DREG_COM_DISP_MODE); mode 134 drivers/video/fbdev/s1d13xxxfb.c mode |= 0x01; mode 136 drivers/video/fbdev/s1d13xxxfb.c mode &= ~0x01; mode 138 drivers/video/fbdev/s1d13xxxfb.c s1d13xxxfb_writereg(par, S1DREG_COM_DISP_MODE, mode); mode 144 drivers/video/fbdev/s1d13xxxfb.c u8 mode = s1d13xxxfb_readreg(par, S1DREG_COM_DISP_MODE); mode 147 drivers/video/fbdev/s1d13xxxfb.c mode |= 0x02; mode 149 drivers/video/fbdev/s1d13xxxfb.c mode &= ~0x02; mode 151 drivers/video/fbdev/s1d13xxxfb.c s1d13xxxfb_writereg(par, S1DREG_COM_DISP_MODE, mode); mode 1057 drivers/video/fbdev/s3c-fb.c static void s3c_fb_missing_pixclock(struct fb_videomode *mode) mode 1062 drivers/video/fbdev/s3c-fb.c div = mode->left_margin + mode->hsync_len + mode->right_margin + mode 1063 drivers/video/fbdev/s3c-fb.c mode->xres; mode 1064 drivers/video/fbdev/s3c-fb.c div *= mode->upper_margin + mode->vsync_len + mode->lower_margin + mode 1065 drivers/video/fbdev/s3c-fb.c mode->yres; mode 1066 drivers/video/fbdev/s3c-fb.c div *= mode->refresh ? : 60; mode 1070 drivers/video/fbdev/s3c-fb.c mode->pixclock = pixclk; mode 163 drivers/video/fbdev/s3fb.c module_param_named(mode, mode_option, charp, 0444); mode 164 drivers/video/fbdev/s3fb.c MODULE_PARM_DESC(mode, "Default video mode ('640x480-8@60', etc) (deprecated)"); mode 605 drivers/video/fbdev/s3fb.c u32 value, mode, hmul, offset_value, screen_size, multiplex, dbytes; mode 710 drivers/video/fbdev/s3fb.c mode = svga_match_format(s3fb_formats, &(info->var), &(info->fix)); mode 723 drivers/video/fbdev/s3fb.c vga_wcrt(par->state.vgabase, 0x63, (mode <= 2) ? 0x90 : 0x09); mode 758 drivers/video/fbdev/s3fb.c switch (mode) { mode 160 drivers/video/fbdev/savage/savagefb.h unsigned int mode, refresh; mode 915 drivers/video/fbdev/savage/savagefb_driver.c const struct fb_videomode *mode; mode 917 drivers/video/fbdev/savage/savagefb_driver.c mode = fb_find_best_mode(var, &info->modelist); mode 918 drivers/video/fbdev/savage/savagefb_driver.c if (mode) { mode 919 drivers/video/fbdev/savage/savagefb_driver.c savage_update_var(var, mode); mode 2245 drivers/video/fbdev/savage/savagefb_driver.c const struct fb_videomode *mode; mode 2247 drivers/video/fbdev/savage/savagefb_driver.c mode = fb_find_best_display(&info->monspecs, &info->modelist); mode 2248 drivers/video/fbdev/savage/savagefb_driver.c savage_update_var(&info->var, mode); mode 184 drivers/video/fbdev/sh_mobile_lcdcfb.c enum sh_mobile_lcdc_overlay_mode mode; mode 731 drivers/video/fbdev/sh_mobile_lcdcfb.c const struct fb_videomode *mode = &ch->display.mode; mode 750 drivers/video/fbdev/sh_mobile_lcdcfb.c h_total = mode->xres + mode->hsync_len + mode->left_margin mode 751 drivers/video/fbdev/sh_mobile_lcdcfb.c + mode->right_margin; mode 753 drivers/video/fbdev/sh_mobile_lcdcfb.c tmp |= (min(mode->xres, ch->xres) / 8) << 16; /* HDCN */ mode 756 drivers/video/fbdev/sh_mobile_lcdcfb.c hsync_pos = mode->xres + mode->right_margin; mode 758 drivers/video/fbdev/sh_mobile_lcdcfb.c tmp |= (mode->hsync_len / 8) << 16; /* HSYNW */ mode 762 drivers/video/fbdev/sh_mobile_lcdcfb.c tmp = mode->yres + mode->vsync_len + mode->upper_margin mode 763 drivers/video/fbdev/sh_mobile_lcdcfb.c + mode->lower_margin; /* VTLN */ mode 764 drivers/video/fbdev/sh_mobile_lcdcfb.c tmp |= min(mode->yres, ch->yres) << 16; /* VDLN */ mode 767 drivers/video/fbdev/sh_mobile_lcdcfb.c tmp = mode->yres + mode->lower_margin; /* VSYNP */ mode 768 drivers/video/fbdev/sh_mobile_lcdcfb.c tmp |= mode->vsync_len << 16; /* VSYNW */ mode 772 drivers/video/fbdev/sh_mobile_lcdcfb.c display_h_total = mode->xres + mode->hsync_len + mode->left_margin mode 773 drivers/video/fbdev/sh_mobile_lcdcfb.c + mode->right_margin; mode 774 drivers/video/fbdev/sh_mobile_lcdcfb.c tmp = ((mode->xres & 7) << 24) | ((display_h_total & 7) << 16) mode 775 drivers/video/fbdev/sh_mobile_lcdcfb.c | ((mode->hsync_len & 7) << 8) | (hsync_pos & 7); mode 796 drivers/video/fbdev/sh_mobile_lcdcfb.c switch (ovl->mode) { mode 1223 drivers/video/fbdev/sh_mobile_lcdcfb.c if (ovl->mode == LCDC_OVERLAY_BLEND && ovl->enabled) mode 1236 drivers/video/fbdev/sh_mobile_lcdcfb.c return scnprintf(buf, PAGE_SIZE, "%u\n", ovl->mode); mode 1245 drivers/video/fbdev/sh_mobile_lcdcfb.c unsigned int mode; mode 1248 drivers/video/fbdev/sh_mobile_lcdcfb.c mode = simple_strtoul(buf, &endp, 10); mode 1255 drivers/video/fbdev/sh_mobile_lcdcfb.c if (mode != LCDC_OVERLAY_BLEND && mode != LCDC_OVERLAY_ROP3) mode 1258 drivers/video/fbdev/sh_mobile_lcdcfb.c if (ovl->mode != mode) { mode 1259 drivers/video/fbdev/sh_mobile_lcdcfb.c ovl->mode = mode; mode 1341 drivers/video/fbdev/sh_mobile_lcdcfb.c if (ovl->mode == LCDC_OVERLAY_ROP3 && ovl->enabled) mode 1759 drivers/video/fbdev/sh_mobile_lcdcfb.c struct fb_videomode mode; mode 1765 drivers/video/fbdev/sh_mobile_lcdcfb.c fb_var_to_videomode(&mode, &info->var); mode 1767 drivers/video/fbdev/sh_mobile_lcdcfb.c if (fb_mode_is_equal(&ch->display.mode, &mode)) mode 1772 drivers/video/fbdev/sh_mobile_lcdcfb.c fb_videomode_to_var(&var, &ch->display.mode); mode 1839 drivers/video/fbdev/sh_mobile_lcdcfb.c const struct fb_videomode *mode = &ch->cfg->lcd_modes[i]; mode 1843 drivers/video/fbdev/sh_mobile_lcdcfb.c if (var->xres > mode->xres || var->yres > mode->yres) mode 1846 drivers/video/fbdev/sh_mobile_lcdcfb.c dist = var->xres * var->yres + mode->xres * mode->yres mode 1847 drivers/video/fbdev/sh_mobile_lcdcfb.c - 2 * min(var->xres, mode->xres) mode 1848 drivers/video/fbdev/sh_mobile_lcdcfb.c * min(var->yres, mode->yres); mode 1851 drivers/video/fbdev/sh_mobile_lcdcfb.c best_xres = mode->xres; mode 1852 drivers/video/fbdev/sh_mobile_lcdcfb.c best_yres = mode->yres; mode 2370 drivers/video/fbdev/sh_mobile_lcdcfb.c ovl->mode = LCDC_OVERLAY_BLEND; mode 2414 drivers/video/fbdev/sh_mobile_lcdcfb.c const struct fb_videomode *mode; mode 2432 drivers/video/fbdev/sh_mobile_lcdcfb.c for (i = 0, mode = cfg->lcd_modes; i < cfg->num_modes; i++, mode++) { mode 2433 drivers/video/fbdev/sh_mobile_lcdcfb.c unsigned int size = mode->yres * mode->xres; mode 2437 drivers/video/fbdev/sh_mobile_lcdcfb.c cfg->fourcc == V4L2_PIX_FMT_NV21) && (mode->yres & 0x1)) { mode 2444 drivers/video/fbdev/sh_mobile_lcdcfb.c max_mode = mode; mode 2456 drivers/video/fbdev/sh_mobile_lcdcfb.c mode = &default_720p; mode 2459 drivers/video/fbdev/sh_mobile_lcdcfb.c mode = cfg->lcd_modes; mode 2467 drivers/video/fbdev/sh_mobile_lcdcfb.c ch->xres = mode->xres; mode 2468 drivers/video/fbdev/sh_mobile_lcdcfb.c ch->xres_virtual = mode->xres; mode 2469 drivers/video/fbdev/sh_mobile_lcdcfb.c ch->yres = mode->yres; mode 2470 drivers/video/fbdev/sh_mobile_lcdcfb.c ch->yres_virtual = mode->yres * 2; mode 2482 drivers/video/fbdev/sh_mobile_lcdcfb.c ch->display.mode = *mode; mode 2502 drivers/video/fbdev/sh_mobile_lcdcfb.c ch->tx_dev->def_mode = *mode; mode 2505 drivers/video/fbdev/sh_mobile_lcdcfb.c return sh_mobile_lcdc_channel_fb_init(ch, mode, num_modes); mode 100 drivers/video/fbdev/sh_mobile_lcdcfb.h struct fb_videomode mode; mode 6598 drivers/video/fbdev/sis/sis_main.c static char *mode = NULL; mode 6641 drivers/video/fbdev/sis/sis_main.c if(mode) mode 6642 drivers/video/fbdev/sis/sis_main.c sisfb_search_mode(mode, false); mode 6723 drivers/video/fbdev/sis/sis_main.c module_param(mode, charp, 0); mode 6765 drivers/video/fbdev/sis/sis_main.c MODULE_PARM_DESC(mode, mode 2223 drivers/video/fbdev/sm501fb.c module_param_named(mode, fb_mode, charp, 0); mode 2224 drivers/video/fbdev/sm501fb.c MODULE_PARM_DESC(mode, mode 1186 drivers/video/fbdev/smscufx.c static int ufx_is_valid_mode(struct fb_videomode *mode, mode 1189 drivers/video/fbdev/smscufx.c if ((mode->xres * mode->yres) > (2048 * 1152)) { mode 1191 drivers/video/fbdev/smscufx.c mode->xres, mode->yres); mode 1195 drivers/video/fbdev/smscufx.c if (mode->pixclock < 5000) { mode 1197 drivers/video/fbdev/smscufx.c mode->xres, mode->yres, mode->pixclock); mode 1201 drivers/video/fbdev/smscufx.c pr_debug("%dx%d (pixclk %dps %dMHz) valid mode", mode->xres, mode->yres, mode 1202 drivers/video/fbdev/smscufx.c mode->pixclock, (1000000 / mode->pixclock)); mode 1221 drivers/video/fbdev/smscufx.c struct fb_videomode mode; mode 1230 drivers/video/fbdev/smscufx.c fb_var_to_videomode(&mode, var); mode 1232 drivers/video/fbdev/smscufx.c if (!ufx_is_valid_mode(&mode, info)) mode 381 drivers/video/fbdev/ssd1307fb.c u32 mode; mode 388 drivers/video/fbdev/ssd1307fb.c mode = (par->area_color_enable ? 0x30 : 0) | mode 390 drivers/video/fbdev/ssd1307fb.c ret = ssd1307fb_write_cmd(par->client, mode); mode 308 drivers/video/fbdev/tmiofb.c struct fb_videomode *mode = info->mode; mode 315 drivers/video/fbdev/tmiofb.c data->lcd_mode(dev, mode); mode 324 drivers/video/fbdev/tmiofb.c tmio_iowrite16(i += mode->hsync_len, par->lcr + LCR_HSE); mode 325 drivers/video/fbdev/tmiofb.c tmio_iowrite16(i += mode->left_margin, par->lcr + LCR_HDS); mode 326 drivers/video/fbdev/tmiofb.c tmio_iowrite16(i += mode->xres + mode->right_margin, par->lcr + LCR_HT); mode 327 drivers/video/fbdev/tmiofb.c tmio_iowrite16(mode->xres, par->lcr + LCR_HNP); mode 329 drivers/video/fbdev/tmiofb.c tmio_iowrite16(i += mode->vsync_len, par->lcr + LCR_VSE); mode 330 drivers/video/fbdev/tmiofb.c tmio_iowrite16(i += mode->upper_margin, par->lcr + LCR_VDS); mode 331 drivers/video/fbdev/tmiofb.c tmio_iowrite16(i += mode->yres, par->lcr + LCR_ILN); mode 332 drivers/video/fbdev/tmiofb.c tmio_iowrite16(i += mode->lower_margin, par->lcr + LCR_VT); mode 432 drivers/video/fbdev/tmiofb.c TMIOFB_ACC_DSADR((rect->dy * fbi->mode->xres + rect->dx) * 2), mode 452 drivers/video/fbdev/tmiofb.c TMIOFB_ACC_DSADR((area->dy * fbi->mode->xres + area->dx) * 2), mode 455 drivers/video/fbdev/tmiofb.c TMIOFB_ACC_SSADR((area->sy * fbi->mode->xres + area->sx) * 2), mode 474 drivers/video/fbdev/tmiofb.c .width = info->mode->xres, mode 475 drivers/video/fbdev/tmiofb.c .height = info->mode->yres, mode 486 drivers/video/fbdev/tmiofb.c struct fb_videomode *mode = fbi->mode; mode 488 drivers/video/fbdev/tmiofb.c unsigned int vds = mode->vsync_len + mode->upper_margin; mode 494 drivers/video/fbdev/tmiofb.c if (vcount < mode->vsync_len) mode 497 drivers/video/fbdev/tmiofb.c if (vcount < vds || vcount > vds + mode->yres) mode 557 drivers/video/fbdev/tmiofb.c struct fb_videomode *mode = data->modes + i; mode 559 drivers/video/fbdev/tmiofb.c if (mode->xres >= var->xres && mode->yres >= var->yres mode 560 drivers/video/fbdev/tmiofb.c && (!best || (mode->xres < best->xres mode 561 drivers/video/fbdev/tmiofb.c && mode->yres < best->yres))) mode 562 drivers/video/fbdev/tmiofb.c best = mode; mode 571 drivers/video/fbdev/tmiofb.c struct fb_videomode *mode; mode 574 drivers/video/fbdev/tmiofb.c mode = tmiofb_find_mode(info, var); mode 575 drivers/video/fbdev/tmiofb.c if (!mode || var->bits_per_pixel > 16) mode 578 drivers/video/fbdev/tmiofb.c fb_videomode_to_var(var, mode); mode 580 drivers/video/fbdev/tmiofb.c var->xres_virtual = mode->xres; mode 581 drivers/video/fbdev/tmiofb.c var->yres_virtual = info->screen_size / (mode->xres * 2); mode 608 drivers/video/fbdev/tmiofb.c struct fb_videomode *mode; mode 610 drivers/video/fbdev/tmiofb.c mode = tmiofb_find_mode(info, var); mode 611 drivers/video/fbdev/tmiofb.c if (!mode) mode 614 drivers/video/fbdev/tmiofb.c info->mode = mode; mode 615 drivers/video/fbdev/tmiofb.c info->fix.line_length = info->mode->xres * mode 80 drivers/video/fbdev/tridentfb.c module_param_named(mode, mode_option, charp, 0); mode 81 drivers/video/fbdev/tridentfb.c MODULE_PARM_DESC(mode, "Initial video mode e.g. '648x480-8@60' (deprecated)"); mode 1052 drivers/video/fbdev/udlfb.c static int dlfb_is_valid_mode(struct fb_videomode *mode, struct dlfb_data *dlfb) mode 1054 drivers/video/fbdev/udlfb.c if (mode->xres * mode->yres > dlfb->sku_pixel_limit) mode 1075 drivers/video/fbdev/udlfb.c struct fb_videomode mode; mode 1081 drivers/video/fbdev/udlfb.c fb_var_to_videomode(&mode, var); mode 1083 drivers/video/fbdev/udlfb.c if (!dlfb_is_valid_mode(&mode, dlfb)) mode 1288 drivers/video/fbdev/udlfb.c struct fb_videomode *mode; mode 1354 drivers/video/fbdev/udlfb.c mode = &info->monspecs.modedb[i]; mode 1355 drivers/video/fbdev/udlfb.c if (dlfb_is_valid_mode(mode, dlfb)) { mode 1356 drivers/video/fbdev/udlfb.c fb_add_videomode(mode, &info->modelist); mode 1359 drivers/video/fbdev/udlfb.c mode->xres, mode->yres); mode 1383 drivers/video/fbdev/udlfb.c mode = (struct fb_videomode *)&vesa_modes[i]; mode 1384 drivers/video/fbdev/udlfb.c if (dlfb_is_valid_mode(mode, dlfb)) mode 1385 drivers/video/fbdev/udlfb.c fb_add_videomode(mode, &info->modelist); mode 1388 drivers/video/fbdev/udlfb.c mode->xres, mode->yres); mode 1523 drivers/video/fbdev/udlfb.c .attr.mode = 0666, mode 273 drivers/video/fbdev/uvesafb.c struct fb_info *info, struct vbe_mode_ib *mode) mode 280 drivers/video/fbdev/uvesafb.c var->xres = mode->x_res; mode 281 drivers/video/fbdev/uvesafb.c var->yres = mode->y_res; mode 282 drivers/video/fbdev/uvesafb.c var->xres_virtual = mode->x_res; mode 284 drivers/video/fbdev/uvesafb.c info->fix.smem_len / mode->bytes_per_scan_line : mode 285 drivers/video/fbdev/uvesafb.c mode->y_res; mode 288 drivers/video/fbdev/uvesafb.c var->bits_per_pixel = mode->bits_per_pixel; mode 294 drivers/video/fbdev/uvesafb.c var->red.offset = mode->red_off; mode 295 drivers/video/fbdev/uvesafb.c var->red.length = mode->red_len; mode 296 drivers/video/fbdev/uvesafb.c var->green.offset = mode->green_off; mode 297 drivers/video/fbdev/uvesafb.c var->green.length = mode->green_len; mode 298 drivers/video/fbdev/uvesafb.c var->blue.offset = mode->blue_off; mode 299 drivers/video/fbdev/uvesafb.c var->blue.length = mode->blue_len; mode 300 drivers/video/fbdev/uvesafb.c var->transp.offset = mode->rsvd_off; mode 301 drivers/video/fbdev/uvesafb.c var->transp.length = mode->rsvd_len; mode 479 drivers/video/fbdev/uvesafb.c u16 *mode; mode 484 drivers/video/fbdev/uvesafb.c mode = (u16 *) (((u8 *)&par->vbe_ib) + par->vbe_ib.mode_list_ptr); mode 485 drivers/video/fbdev/uvesafb.c while (*mode != 0xffff) { mode 487 drivers/video/fbdev/uvesafb.c mode++; mode 497 drivers/video/fbdev/uvesafb.c mode = (u16 *) (((u8 *)&par->vbe_ib) + par->vbe_ib.mode_list_ptr); mode 498 drivers/video/fbdev/uvesafb.c while (*mode != 0xffff) { mode 503 drivers/video/fbdev/uvesafb.c task->t.regs.ecx = (u32) *mode; mode 511 drivers/video/fbdev/uvesafb.c *mode, (u32)task->t.regs.eax, err); mode 512 drivers/video/fbdev/uvesafb.c mode++; mode 518 drivers/video/fbdev/uvesafb.c mib->mode_id = *mode; mode 531 drivers/video/fbdev/uvesafb.c mode++; mode 597 drivers/video/fbdev/uvesafb.c static int uvesafb_is_valid_mode(struct fb_videomode *mode, mode 601 drivers/video/fbdev/uvesafb.c fb_videomode_to_var(&info->var, mode); mode 606 drivers/video/fbdev/uvesafb.c if (uvesafb_vbe_find_mode(info->par, mode->xres, mode->yres, 8, mode 723 drivers/video/fbdev/uvesafb.c struct vbe_mode_ib *mode; mode 726 drivers/video/fbdev/uvesafb.c mode = &par->vbe_modes[i]; mode 729 drivers/video/fbdev/uvesafb.c var.xres = mode->x_res; mode 730 drivers/video/fbdev/uvesafb.c var.yres = mode->y_res; mode 829 drivers/video/fbdev/uvesafb.c struct fb_videomode *mode; mode 863 drivers/video/fbdev/uvesafb.c mode = kcalloc(i, sizeof(*mode), GFP_KERNEL); mode 864 drivers/video/fbdev/uvesafb.c if (mode) { mode 868 drivers/video/fbdev/uvesafb.c mode[i] = modelist->mode; mode 875 drivers/video/fbdev/uvesafb.c i = fb_find_mode(&info->var, info, mode_option, mode, i, mode 878 drivers/video/fbdev/uvesafb.c kfree(mode); mode 885 drivers/video/fbdev/uvesafb.c mode = (struct fb_videomode *) mode 888 drivers/video/fbdev/uvesafb.c if (mode) { mode 889 drivers/video/fbdev/uvesafb.c fb_videomode_to_var(&info->var, mode); mode 1219 drivers/video/fbdev/uvesafb.c struct vbe_mode_ib *mode = NULL; mode 1229 drivers/video/fbdev/uvesafb.c mode = &par->vbe_modes[i]; mode 1238 drivers/video/fbdev/uvesafb.c task->t.regs.ebx = mode->mode_id | 0x4000; /* use LFB */ mode 1302 drivers/video/fbdev/uvesafb.c mode->bits_per_pixel <= 8) { mode 1318 drivers/video/fbdev/uvesafb.c info->fix.line_length = mode->bytes_per_scan_line; mode 1330 drivers/video/fbdev/uvesafb.c const struct fb_videomode *mode; mode 1348 drivers/video/fbdev/uvesafb.c mode = fb_find_best_mode(var, &info->modelist); mode 1349 drivers/video/fbdev/uvesafb.c if (mode) { mode 1350 drivers/video/fbdev/uvesafb.c if (mode->xres == var->xres && mode->yres == var->yres && mode 1351 drivers/video/fbdev/uvesafb.c !(mode->vmode & (FB_VMODE_INTERLACED | FB_VMODE_DOUBLE))) { mode 1352 drivers/video/fbdev/uvesafb.c fb_videomode_to_var(var, mode); mode 1367 drivers/video/fbdev/uvesafb.c struct vbe_mode_ib *mode = NULL; mode 1384 drivers/video/fbdev/uvesafb.c mode = &par->vbe_modes[match]; mode 1385 drivers/video/fbdev/uvesafb.c uvesafb_setup_var(var, info, mode); mode 1392 drivers/video/fbdev/uvesafb.c if (var->yres * mode->bytes_per_scan_line > info->fix.smem_len mode 1408 drivers/video/fbdev/uvesafb.c info->fix.smem_len / mode->bytes_per_scan_line : mode 1428 drivers/video/fbdev/uvesafb.c static void uvesafb_init_info(struct fb_info *info, struct vbe_mode_ib *mode) mode 1463 drivers/video/fbdev/uvesafb.c size_vmode = info->var.yres * mode->bytes_per_scan_line; mode 1490 drivers/video/fbdev/uvesafb.c info->fix.smem_start = mode->phys_base_ptr; mode 1497 drivers/video/fbdev/uvesafb.c mode->bytes_per_scan_line; mode 1680 drivers/video/fbdev/uvesafb.c struct vbe_mode_ib *mode = NULL; mode 1703 drivers/video/fbdev/uvesafb.c mode = &par->vbe_modes[i]; mode 1711 drivers/video/fbdev/uvesafb.c uvesafb_init_info(info, mode); mode 148 drivers/video/fbdev/valkyriefb.c out_8(&valkyrie_regs->mode.r, init->mode | 0x80); mode 154 drivers/video/fbdev/valkyriefb.c out_8(&valkyrie_regs->mode.r, init->mode); mode 199 drivers/video/fbdev/valkyriefb.c out_8(&p->valkyrie_regs->mode.r, init->mode); mode 210 drivers/video/fbdev/valkyriefb.c out_8(&p->valkyrie_regs->mode.r, init->mode | 0x40); mode 213 drivers/video/fbdev/valkyriefb.c out_8(&p->valkyrie_regs->mode.r, 0x66); mode 65 drivers/video/fbdev/valkyriefb.h struct vpreg mode; mode 82 drivers/video/fbdev/valkyriefb.h unsigned char mode; mode 61 drivers/video/fbdev/vga16fb.c int palette_blanked, vesa_blanked, mode, isVGA; mode 120 drivers/video/fbdev/vga16fb.c static inline int setmode(int mode) mode 125 drivers/video/fbdev/vga16fb.c vga_io_w(VGA_GFX_D, mode); mode 196 drivers/video/fbdev/vga16fb.c } else if (par->mode & MODE_TEXT) { mode 322 drivers/video/fbdev/vga16fb.c int mode; mode 332 drivers/video/fbdev/vga16fb.c mode = MODE_SKIP4 | MODE_CFB; mode 337 drivers/video/fbdev/vga16fb.c mode = 0; mode 345 drivers/video/fbdev/vga16fb.c mode = MODE_8BPP | MODE_CFB; mode 348 drivers/video/fbdev/vga16fb.c mode = MODE_SKIP4 | MODE_8BPP | MODE_CFB; mode 450 drivers/video/fbdev/vga16fb.c if ((mode & (MODE_CFB | MODE_8BPP)) == MODE_CFB) mode 480 drivers/video/fbdev/vga16fb.c if (mode & MODE_SKIP4) mode 484 drivers/video/fbdev/vga16fb.c par->crtc[VGA_CRTC_MODE] = rMode | ((mode & MODE_TEXT) ? 0xA3 : 0xE3); mode 496 drivers/video/fbdev/vga16fb.c par->mode = mode; mode 498 drivers/video/fbdev/vga16fb.c if (mode & MODE_8BPP) mode 527 drivers/video/fbdev/vga16fb.c if (par->mode & MODE_TEXT) mode 532 drivers/video/fbdev/vga16fb.c if (par->mode & MODE_TEXT) mode 534 drivers/video/fbdev/vga16fb.c else if (par->mode & MODE_SKIP4) mode 544 drivers/video/fbdev/vga16fb.c if (par->mode & MODE_TEXT) { mode 548 drivers/video/fbdev/vga16fb.c if (par->mode & MODE_CFB) mode 559 drivers/video/fbdev/vga16fb.c if (par->mode & MODE_TEXT) mode 561 drivers/video/fbdev/vga16fb.c else if (par->mode & MODE_8BPP) mode 567 drivers/video/fbdev/vga16fb.c if (par->mode & MODE_8BPP) mode 573 drivers/video/fbdev/vga16fb.c if (par->mode & MODE_TEXT) { mode 700 drivers/video/fbdev/vga16fb.c static void vga_vesa_blank(struct vga16fb_par *par, int mode) mode 734 drivers/video/fbdev/vga16fb.c if (mode & FB_BLANK_VSYNC_SUSPEND) { mode 741 drivers/video/fbdev/vga16fb.c if (mode & FB_BLANK_HSYNC_SUSPEND) { mode 2107 drivers/video/fbdev/via/hw.c const struct fb_videomode *mode) mode 2109 drivers/video/fbdev/via/hw.c var->pixclock = mode->pixclock; mode 2110 drivers/video/fbdev/via/hw.c var->xres = mode->xres; mode 2111 drivers/video/fbdev/via/hw.c var->yres = mode->yres; mode 2112 drivers/video/fbdev/via/hw.c var->left_margin = mode->left_margin; mode 2113 drivers/video/fbdev/via/hw.c var->right_margin = mode->right_margin; mode 2114 drivers/video/fbdev/via/hw.c var->hsync_len = mode->hsync_len; mode 2115 drivers/video/fbdev/via/hw.c var->upper_margin = mode->upper_margin; mode 2116 drivers/video/fbdev/via/hw.c var->lower_margin = mode->lower_margin; mode 2117 drivers/video/fbdev/via/hw.c var->vsync_len = mode->vsync_len; mode 2118 drivers/video/fbdev/via/hw.c var->sync = mode->sync; mode 651 drivers/video/fbdev/via/hw.h const struct fb_videomode *mode); mode 222 drivers/video/fbdev/via/via-gpio.c if (port_cfg[i].mode != VIA_MODE_GPIO) mode 62 drivers/video/fbdev/via/via_aux.c const struct fb_videomode *mode = NULL; mode 69 drivers/video/fbdev/via/via_aux.c mode = pos->get_preferred_mode(pos); mode 72 drivers/video/fbdev/via/via_aux.c return mode; mode 233 drivers/video/fbdev/via/via_i2c.c if (adap_cfg->type == 0 || adap_cfg->mode != VIA_MODE_I2C) mode 1634 drivers/video/fbdev/via/viafbdev.c const struct fb_videomode *mode = NULL; mode 1639 drivers/video/fbdev/via/viafbdev.c mode = via_aux_get_preferred_mode( mode 1642 drivers/video/fbdev/via/viafbdev.c mode = via_aux_get_preferred_mode( mode 1645 drivers/video/fbdev/via/viafbdev.c if (mode) { mode 1646 drivers/video/fbdev/via/viafbdev.c *xres = mode->xres; mode 1647 drivers/video/fbdev/via/viafbdev.c *yres = mode->yres; mode 106 drivers/video/fbdev/vt8623fb.c module_param_named(mode, mode_option, charp, 0); mode 107 drivers/video/fbdev/vt8623fb.c MODULE_PARM_DESC(mode, "Default video mode e.g. '648x480-8@60' (deprecated)"); mode 377 drivers/video/fbdev/vt8623fb.c u32 mode, offset_value, fetch_value, screen_size; mode 466 drivers/video/fbdev/vt8623fb.c mode = svga_match_format(vt8623fb_formats, &(info->var), &(info->fix)); mode 467 drivers/video/fbdev/vt8623fb.c switch (mode) { mode 41 drivers/video/fbdev/w100fb.c static void w100_suspend(u32 mode); mode 441 drivers/video/fbdev/w100fb.c struct w100_mode *mode = NULL; mode 451 drivers/video/fbdev/w100fb.c mode = &modelist[i]; mode 456 drivers/video/fbdev/w100fb.c mode = &modelist[i]; mode 460 drivers/video/fbdev/w100fb.c if (mode && saveval) { mode 465 drivers/video/fbdev/w100fb.c return mode; mode 526 drivers/video/fbdev/w100fb.c par->mode = w100fb_get_mode(par, &par->xres, &par->yres, 0); mode 730 drivers/video/fbdev/w100fb.c par->mode = &inf->modelist[0]; mode 732 drivers/video/fbdev/w100fb.c info->var.xres = par->mode->yres; mode 733 drivers/video/fbdev/w100fb.c info->var.yres = par->mode->xres; mode 736 drivers/video/fbdev/w100fb.c info->var.xres = par->mode->xres; mode 737 drivers/video/fbdev/w100fb.c info->var.yres = par->mode->yres; mode 1282 drivers/video/fbdev/w100fb.c struct w100_mode *mode = par->mode; mode 1284 drivers/video/fbdev/w100fb.c if (mode->pixclk_src == CLK_SRC_PLL || mode->sysclk_src == CLK_SRC_PLL) mode 1285 drivers/video/fbdev/w100fb.c w100_set_pll_freq(par, (par->fastpll_mode && mode->fast_pll_freq) ? mode->fast_pll_freq : mode->pll_freq); mode 1287 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_src_sel = mode->sysclk_src; mode 1288 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_post_div_fast = mode->sysclk_divider; mode 1289 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_post_div_slow = mode->sysclk_divider; mode 1296 drivers/video/fbdev/w100fb.c struct w100_mode *mode = par->mode; mode 1307 drivers/video/fbdev/w100fb.c active_h_disp.f.active_h_start=mode->left_margin; mode 1308 drivers/video/fbdev/w100fb.c active_h_disp.f.active_h_end=mode->left_margin + mode->xres; mode 1312 drivers/video/fbdev/w100fb.c active_v_disp.f.active_v_start=mode->upper_margin; mode 1313 drivers/video/fbdev/w100fb.c active_v_disp.f.active_v_end=mode->upper_margin + mode->yres; mode 1317 drivers/video/fbdev/w100fb.c graphic_h_disp.f.graphic_h_start=mode->left_margin; mode 1318 drivers/video/fbdev/w100fb.c graphic_h_disp.f.graphic_h_end=mode->left_margin + mode->xres; mode 1322 drivers/video/fbdev/w100fb.c graphic_v_disp.f.graphic_v_start=mode->upper_margin; mode 1323 drivers/video/fbdev/w100fb.c graphic_v_disp.f.graphic_v_end=mode->upper_margin + mode->yres; mode 1327 drivers/video/fbdev/w100fb.c crtc_total.f.crtc_h_total=mode->left_margin + mode->xres + mode->right_margin; mode 1328 drivers/video/fbdev/w100fb.c crtc_total.f.crtc_v_total=mode->upper_margin + mode->yres + mode->lower_margin; mode 1331 drivers/video/fbdev/w100fb.c writel(mode->crtc_ss, remapped_regs + mmCRTC_SS); mode 1332 drivers/video/fbdev/w100fb.c writel(mode->crtc_ls, remapped_regs + mmCRTC_LS); mode 1333 drivers/video/fbdev/w100fb.c writel(mode->crtc_gs, remapped_regs + mmCRTC_GS); mode 1334 drivers/video/fbdev/w100fb.c writel(mode->crtc_vpos_gs, remapped_regs + mmCRTC_VPOS_GS); mode 1335 drivers/video/fbdev/w100fb.c writel(mode->crtc_rev, remapped_regs + mmCRTC_REV); mode 1336 drivers/video/fbdev/w100fb.c writel(mode->crtc_dclk, remapped_regs + mmCRTC_DCLK); mode 1337 drivers/video/fbdev/w100fb.c writel(mode->crtc_gclk, remapped_regs + mmCRTC_GCLK); mode 1338 drivers/video/fbdev/w100fb.c writel(mode->crtc_goe, remapped_regs + mmCRTC_GOE); mode 1339 drivers/video/fbdev/w100fb.c writel(mode->crtc_ps1_active, remapped_regs + mmCRTC_PS1_ACTIVE); mode 1419 drivers/video/fbdev/w100fb.c if (par->xres == par->mode->xres) { mode 1424 drivers/video/fbdev/w100fb.c divider = par->mode->pixclk_divider; mode 1433 drivers/video/fbdev/w100fb.c divider = par->mode->pixclk_divider_rotated; mode 1485 drivers/video/fbdev/w100fb.c graphic_ctrl.f_w32xx.total_req_graphic=par->mode->xres >> 1; /* panel xres, not mode */ mode 1491 drivers/video/fbdev/w100fb.c w100_pwr_state.pclk_cntl.f.pclk_src_sel = par->mode->pixclk_src; mode 1508 drivers/video/fbdev/w100fb.c struct w100_mode *mode = par->mode; mode 1511 drivers/video/fbdev/w100fb.c if (mode->pixclk_src == CLK_SRC_XTAL) mode 1514 drivers/video/fbdev/w100fb.c hsync=((par->fastpll_mode && mode->fast_pll_freq) ? mode->fast_pll_freq : mode->pll_freq)*100000; mode 1525 drivers/video/fbdev/w100fb.c static void w100_suspend(u32 mode) mode 1544 drivers/video/fbdev/w100fb.c if (mode == W100_SUSPEND_EXTMEM) { mode 269 drivers/video/fbdev/wm8505fb.c struct fb_videomode mode; mode 311 drivers/video/fbdev/wm8505fb.c ret = of_get_fb_videomode(pdev->dev.of_node, &mode, OF_USE_NATIVE_MODE); mode 319 drivers/video/fbdev/wm8505fb.c fb_videomode_to_var(&fbi->fb.var, &mode); mode 328 drivers/video/fbdev/wm8505fb.c fb_mem_len = mode.xres * mode.yres * 2 * (bpp / 8); mode 336 drivers/video/fbdev/wm8505fb.c fbi->fb.var.xres_virtual = mode.xres; mode 337 drivers/video/fbdev/wm8505fb.c fbi->fb.var.yres_virtual = mode.yres * 2; mode 709 drivers/virtio/virtio_balloon.c struct page *newpage, struct page *page, enum migrate_mode mode) mode 77 drivers/w1/masters/omap_hdq.c int mode; mode 267 drivers/w1/masters/omap_hdq.c hdq_data->mode); mode 431 drivers/w1/masters/omap_hdq.c hdq_data->mode); mode 665 drivers/w1/masters/omap_hdq.c const char *mode; mode 720 drivers/w1/masters/omap_hdq.c ret = of_property_read_string(pdev->dev.of_node, "ti,mode", &mode); mode 721 drivers/w1/masters/omap_hdq.c if (ret < 0 || !strcmp(mode, "hdq")) { mode 722 drivers/w1/masters/omap_hdq.c hdq_data->mode = 0; mode 725 drivers/w1/masters/omap_hdq.c hdq_data->mode = 1; mode 102 drivers/w1/slaves/w1_ds2406.c .mode = S_IRUGO, mode 110 drivers/w1/slaves/w1_ds2406.c .mode = S_IRUGO | S_IWUSR | S_IWGRP, mode 267 drivers/w1/slaves/w1_ds2805.c .mode = S_IRUGO | S_IWUSR, mode 305 drivers/watchdog/alim7101_wdt.c static int wdt_restart_handle(struct notifier_block *this, unsigned long mode, mode 123 drivers/watchdog/armada_37xx_wdt.c static void init_counter(struct armada_37xx_watchdog *dev, int id, u32 mode, mode 134 drivers/watchdog/armada_37xx_wdt.c reg |= mode & CNTR_CTRL_MODE_MASK; mode 64 drivers/watchdog/asm9260_wdt.c enum asm9260_wdt_mode mode; mode 102 drivers/watchdog/asm9260_wdt.c u32 mode = 0; mode 104 drivers/watchdog/asm9260_wdt.c if (priv->mode == HW_RESET) mode 105 drivers/watchdog/asm9260_wdt.c mode = BM_MOD_WDRESET; mode 107 drivers/watchdog/asm9260_wdt.c iowrite32(BM_MOD_WDEN | mode, priv->iobase + HW_WDMOD); mode 162 drivers/watchdog/asm9260_wdt.c if (priv->mode == DEBUG) { mode 267 drivers/watchdog/asm9260_wdt.c priv->mode = HW_RESET; mode 275 drivers/watchdog/asm9260_wdt.c priv->mode = HW_RESET; mode 277 drivers/watchdog/asm9260_wdt.c priv->mode = SW_RESET; mode 279 drivers/watchdog/asm9260_wdt.c priv->mode = DEBUG; mode 330 drivers/watchdog/asm9260_wdt.c if (priv->mode != HW_RESET) mode 355 drivers/watchdog/asm9260_wdt.c wdd->timeout, mode_name[priv->mode]); mode 56 drivers/watchdog/at91rm9200_wdt.c unsigned long mode, void *cmd) mode 396 drivers/watchdog/octeon-wdt-main.c ciu_wdog.s.mode = 3; /* 3 = Interrupt + NMI + Soft-Reset */ mode 474 drivers/watchdog/octeon-wdt-main.c ciu_wdog.s.mode = 3; /* 3 = Interrupt + NMI + Soft-Reset */ mode 126 drivers/watchdog/pnx4008_wdt.c unsigned long mode, void *cmd) mode 138 drivers/watchdog/pnx4008_wdt.c mode = REBOOT_HARD; mode 140 drivers/watchdog/pnx4008_wdt.c mode = REBOOT_SOFT; mode 143 drivers/watchdog/pnx4008_wdt.c if (mode == REBOOT_SOFT) { mode 136 drivers/watchdog/sp805_wdt.c wdt_restart(struct watchdog_device *wdd, unsigned long mode, void *cmd) mode 159 drivers/watchdog/st_lpc_wdt.c uint32_t mode; mode 162 drivers/watchdog/st_lpc_wdt.c ret = of_property_read_u32(np, "st,lpc-mode", &mode); mode 169 drivers/watchdog/st_lpc_wdt.c if (mode != ST_LPC_MODE_WDT) mode 573 drivers/watchdog/watchdog_dev.c umode_t mode = attr->mode; mode 576 drivers/watchdog/watchdog_dev.c mode = 0; mode 579 drivers/watchdog/watchdog_dev.c mode = 0; mode 584 drivers/watchdog/watchdog_dev.c mode = 0; mode 586 drivers/watchdog/watchdog_dev.c return mode; mode 97 drivers/watchdog/wdt.c static void wdt_ctr_mode(int ctr, int mode) mode 101 drivers/watchdog/wdt.c ctr |= (mode << 1); mode 98 drivers/watchdog/wdt_pci.c static void wdtpci_ctr_mode(int ctr, int mode) mode 102 drivers/watchdog/wdt_pci.c ctr |= (mode << 1); mode 85 drivers/xen/balloon.c .mode = 0644, mode 96 drivers/xen/balloon.c .mode = 0555, mode 105 drivers/xen/balloon.c .mode = 0555, mode 149 drivers/xen/pcpu.c return dev->id ? attr->mode : 0; mode 406 drivers/xen/sys-hypervisor.c uint32_t mode; mode 425 drivers/xen/sys-hypervisor.c xp.val = pmu_modes[i].mode; mode 447 drivers/xen/sys-hypervisor.c uint32_t mode; mode 455 drivers/xen/sys-hypervisor.c mode = (uint32_t)xp.val; mode 457 drivers/xen/sys-hypervisor.c if (mode == pmu_modes[i].mode) mode 34 drivers/zorro/gen-devlist.c int mode = 0; mode 52 drivers/zorro/gen-devlist.c switch (mode) { mode 92 drivers/zorro/gen-devlist.c mode = 1; mode 95 drivers/zorro/gen-devlist.c fprintf(stderr, "Line %d: Syntax error in mode %d: %s\n", lino, mode, line); mode 104 drivers/zorro/zorro-sysfs.c .mode = S_IRUGO, mode 190 fs/9p/acl.c umode_t mode = *modep; mode 193 fs/9p/acl.c if (!S_ISLNK(mode)) { mode 198 fs/9p/acl.c mode &= ~current_umask(); mode 201 fs/9p/acl.c if (S_ISDIR(mode)) mode 203 fs/9p/acl.c retval = __posix_acl_create(&acl, GFP_NOFS, &mode); mode 211 fs/9p/acl.c *modep = mode; mode 47 fs/9p/v9fs_vfs.h struct inode *v9fs_get_inode(struct super_block *sb, umode_t mode, dev_t); mode 49 fs/9p/v9fs_vfs.h struct inode *inode, umode_t mode, dev_t); mode 53 fs/9p/vfs_dir.c unsigned long perm = mistat->mode; mode 49 fs/9p/vfs_inode.c static u32 unixmode2p9mode(struct v9fs_session_info *v9ses, umode_t mode) mode 52 fs/9p/vfs_inode.c res = mode & 0777; mode 53 fs/9p/vfs_inode.c if (S_ISDIR(mode)) mode 57 fs/9p/vfs_inode.c if (S_ISSOCK(mode)) mode 59 fs/9p/vfs_inode.c if (S_ISFIFO(mode)) mode 61 fs/9p/vfs_inode.c if (S_ISBLK(mode)) mode 63 fs/9p/vfs_inode.c if (S_ISCHR(mode)) mode 67 fs/9p/vfs_inode.c if ((mode & S_ISUID) == S_ISUID) mode 69 fs/9p/vfs_inode.c if ((mode & S_ISGID) == S_ISGID) mode 71 fs/9p/vfs_inode.c if ((mode & S_ISVTX) == S_ISVTX) mode 87 fs/9p/vfs_inode.c int mode = stat->mode; mode 89 fs/9p/vfs_inode.c res = mode & S_IALLUGO; mode 91 fs/9p/vfs_inode.c if ((mode & P9_DMSETUID) == P9_DMSETUID) mode 94 fs/9p/vfs_inode.c if ((mode & P9_DMSETGID) == P9_DMSETGID) mode 97 fs/9p/vfs_inode.c if ((mode & P9_DMSETVTX) == P9_DMSETVTX) mode 114 fs/9p/vfs_inode.c u32 mode = stat->mode; mode 119 fs/9p/vfs_inode.c if ((mode & P9_DMDIR) == P9_DMDIR) mode 121 fs/9p/vfs_inode.c else if ((mode & P9_DMSYMLINK) && (v9fs_proto_dotu(v9ses))) mode 123 fs/9p/vfs_inode.c else if ((mode & P9_DMSOCKET) && (v9fs_proto_dotu(v9ses)) mode 126 fs/9p/vfs_inode.c else if ((mode & P9_DMNAMEDPIPE) && (v9fs_proto_dotu(v9ses)) mode 129 fs/9p/vfs_inode.c else if ((mode & P9_DMDEVICE) && (v9fs_proto_dotu(v9ses)) mode 205 fs/9p/vfs_inode.c wstat->mode = ~0; mode 251 fs/9p/vfs_inode.c struct inode *inode, umode_t mode, dev_t rdev) mode 255 fs/9p/vfs_inode.c inode_init_owner(inode, NULL, mode); mode 261 fs/9p/vfs_inode.c switch (mode & S_IFMT) { mode 333 fs/9p/vfs_inode.c mode, mode & S_IFMT); mode 349 fs/9p/vfs_inode.c struct inode *v9fs_get_inode(struct super_block *sb, umode_t mode, dev_t rdev) mode 355 fs/9p/vfs_inode.c p9_debug(P9_DEBUG_VFS, "super block: %p mode: %ho\n", sb, mode); mode 363 fs/9p/vfs_inode.c err = v9fs_init_inode(v9ses, inode, mode, rdev); mode 643 fs/9p/vfs_inode.c struct dentry *dentry, char *extension, u32 perm, u8 mode) mode 671 fs/9p/vfs_inode.c err = p9_client_fcreate(ofid, name, perm, mode, extension); mode 724 fs/9p/vfs_inode.c v9fs_vfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 728 fs/9p/vfs_inode.c u32 perm = unixmode2p9mode(v9ses, mode); mode 750 fs/9p/vfs_inode.c static int v9fs_vfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 760 fs/9p/vfs_inode.c perm = unixmode2p9mode(v9ses, mode | S_IFDIR); mode 841 fs/9p/vfs_inode.c struct file *file, unsigned flags, umode_t mode) mode 866 fs/9p/vfs_inode.c perm = unixmode2p9mode(v9ses, mode); mode 1109 fs/9p/vfs_inode.c wstat.mode = unixmode2p9mode(v9ses, iattr->ia_mode); mode 1160 fs/9p/vfs_inode.c umode_t mode; mode 1196 fs/9p/vfs_inode.c mode = p9mode2perm(v9ses, stat); mode 1197 fs/9p/vfs_inode.c mode |= inode->i_mode & ~S_IALLUGO; mode 1198 fs/9p/vfs_inode.c inode->i_mode = mode; mode 1260 fs/9p/vfs_inode.c if (!(st->mode & P9_DMSYMLINK)) { mode 1371 fs/9p/vfs_inode.c v9fs_vfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) mode 1379 fs/9p/vfs_inode.c dir->i_ino, dentry, mode, mode 1383 fs/9p/vfs_inode.c if (S_ISBLK(mode)) mode 1385 fs/9p/vfs_inode.c else if (S_ISCHR(mode)) mode 1390 fs/9p/vfs_inode.c perm = unixmode2p9mode(v9ses, mode); mode 233 fs/9p/vfs_inode_dotl.c umode_t mode; mode 280 fs/9p/vfs_inode_dotl.c mode = omode; mode 282 fs/9p/vfs_inode_dotl.c err = v9fs_acl_mode(dir, &mode, &dacl, &pacl); mode 289 fs/9p/vfs_inode_dotl.c mode, gid, &qid); mode 376 fs/9p/vfs_inode_dotl.c umode_t mode; mode 398 fs/9p/vfs_inode_dotl.c mode = omode; mode 400 fs/9p/vfs_inode_dotl.c err = v9fs_acl_mode(dir, &mode, &dacl, &pacl); mode 407 fs/9p/vfs_inode_dotl.c err = p9_client_mkdir_dotl(dfid, name, mode, gid, &qid); mode 440 fs/9p/vfs_inode_dotl.c inode = v9fs_get_inode(dir->i_sb, mode, 0); mode 554 fs/9p/vfs_inode_dotl.c p9attr.mode = iattr->ia_mode; mode 603 fs/9p/vfs_inode_dotl.c umode_t mode; mode 617 fs/9p/vfs_inode_dotl.c mode = stat->st_mode & S_IALLUGO; mode 618 fs/9p/vfs_inode_dotl.c mode |= inode->i_mode & ~S_IALLUGO; mode 619 fs/9p/vfs_inode_dotl.c inode->i_mode = mode; mode 808 fs/9p/vfs_inode_dotl.c umode_t mode; mode 829 fs/9p/vfs_inode_dotl.c mode = omode; mode 831 fs/9p/vfs_inode_dotl.c err = v9fs_acl_mode(dir, &mode, &dacl, &pacl); mode 839 fs/9p/vfs_inode_dotl.c err = p9_client_mknod_dotl(dfid, name, mode, rdev, gid, &qid); mode 872 fs/9p/vfs_inode_dotl.c inode = v9fs_get_inode(dir->i_sb, mode, rdev); mode 114 fs/9p/vfs_super.c umode_t mode = S_IRWXUGO | S_ISVTX; mode 144 fs/9p/vfs_super.c inode = v9fs_get_inode(sb, S_IFDIR | mode, 0); mode 89 fs/adfs/inode.c umode_t mode, rmask; mode 93 fs/adfs/inode.c mode = S_IRUGO & asb->s_owner_mask; mode 94 fs/adfs/inode.c return S_IFDIR | S_IXUGO | mode; mode 109 fs/adfs/inode.c mode = S_IFREG; mode 112 fs/adfs/inode.c mode |= rmask & asb->s_owner_mask; mode 115 fs/adfs/inode.c mode |= S_IWUGO & asb->s_owner_mask; mode 118 fs/adfs/inode.c mode |= rmask & asb->s_other_mask; mode 121 fs/adfs/inode.c mode |= S_IWUGO & asb->s_other_mask; mode 122 fs/adfs/inode.c return mode; mode 132 fs/adfs/inode.c umode_t mode; mode 145 fs/adfs/inode.c mode = inode->i_mode & asb->s_owner_mask; mode 146 fs/adfs/inode.c if (mode & S_IRUGO) mode 148 fs/adfs/inode.c if (mode & S_IWUGO) mode 151 fs/adfs/inode.c mode = inode->i_mode & asb->s_other_mask; mode 152 fs/adfs/inode.c mode &= ~asb->s_owner_mask; mode 153 fs/adfs/inode.c if (mode & S_IRUGO) mode 155 fs/adfs/inode.c if (mode & S_IWUGO) mode 170 fs/affs/affs.h extern int affs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool); mode 171 fs/affs/affs.h extern int affs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode); mode 393 fs/affs/amigaffs.c umode_t mode = 0; mode 396 fs/affs/amigaffs.c mode |= 0200; mode 398 fs/affs/amigaffs.c mode |= 0400; mode 400 fs/affs/amigaffs.c mode |= 0100; mode 402 fs/affs/amigaffs.c mode |= 0020; mode 404 fs/affs/amigaffs.c mode |= 0040; mode 406 fs/affs/amigaffs.c mode |= 0010; mode 408 fs/affs/amigaffs.c mode |= 0002; mode 410 fs/affs/amigaffs.c mode |= 0004; mode 412 fs/affs/amigaffs.c mode |= 0001; mode 414 fs/affs/amigaffs.c return mode; mode 421 fs/affs/amigaffs.c umode_t mode = inode->i_mode; mode 423 fs/affs/amigaffs.c if (!(mode & 0100)) mode 425 fs/affs/amigaffs.c if (!(mode & 0400)) mode 427 fs/affs/amigaffs.c if (!(mode & 0200)) mode 429 fs/affs/amigaffs.c if (mode & 0010) mode 431 fs/affs/amigaffs.c if (mode & 0040) mode 433 fs/affs/amigaffs.c if (mode & 0020) mode 435 fs/affs/amigaffs.c if (mode & 0001) mode 437 fs/affs/amigaffs.c if (mode & 0004) mode 439 fs/affs/amigaffs.c if (mode & 0002) mode 245 fs/affs/namei.c affs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) mode 252 fs/affs/namei.c __func__, dir->i_ino, dentry, mode); mode 258 fs/affs/namei.c inode->i_mode = mode; mode 276 fs/affs/namei.c affs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 282 fs/affs/namei.c __func__, dir->i_ino, dentry, mode); mode 288 fs/affs/namei.c inode->i_mode = S_IFDIR | mode; mode 190 fs/affs/super.c parse_options(char *options, kuid_t *uid, kgid_t *gid, int *mode, int *reserved, s32 *root, mode 229 fs/affs/super.c *mode = option & 0777; mode 559 fs/affs/super.c int mode; mode 573 fs/affs/super.c if (!parse_options(data, &uid, &gid, &mode, &reserved, &root_block, mode 583 fs/affs/super.c sbi->s_mode = mode; mode 139 fs/afs/afs.h umode_t mode; /* UNIX mode */ mode 31 fs/afs/dir.c static int afs_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 33 fs/afs/dir.c static int afs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode); mode 1271 fs/afs/dir.c static int afs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 1281 fs/afs/dir.c mode |= S_IFDIR; mode 1284 fs/afs/dir.c dvnode->fid.vid, dvnode->fid.vnode, dentry, mode); mode 1304 fs/afs/dir.c afs_fs_create(&fc, dentry->d_name.name, mode, mode 1582 fs/afs/dir.c static int afs_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 1593 fs/afs/dir.c mode |= S_IFREG; mode 1596 fs/afs/dir.c dvnode->fid.vid, dvnode->fid.vnode, dentry, mode); mode 1620 fs/afs/dir.c afs_fs_create(&fc, dentry->d_name.name, mode, mode 424 fs/afs/flock.c enum afs_flock_mode mode, afs_lock_type_t type) mode 467 fs/afs/flock.c enum afs_flock_mode mode = AFS_FS_S(inode->i_sb)->flock_mode; mode 473 fs/afs/flock.c if (mode == afs_flock_mode_unset) mode 474 fs/afs/flock.c mode = afs_flock_mode_openafs; mode 478 fs/afs/flock.c fl->fl_start, fl->fl_end, fl->fl_type, mode); mode 486 fs/afs/flock.c if (mode == afs_flock_mode_write && partial) mode 489 fs/afs/flock.c ret = afs_do_setlk_check(vnode, key, mode, type); mode 503 fs/afs/flock.c if (mode == afs_flock_mode_local || mode 504 fs/afs/flock.c (partial && mode == afs_flock_mode_openafs)) { mode 111 fs/afs/fsclient.c status->mode = ntohl(xdr->mode) & S_IALLUGO; mode 186 fs/afs/fsclient.c u32 mask = 0, mtime = 0, owner = 0, group = 0, mode = 0; mode 206 fs/afs/fsclient.c mode = attr->ia_mode & S_IALLUGO; mode 213 fs/afs/fsclient.c *bp++ = htonl(mode); mode 617 fs/afs/fsclient.c umode_t mode, mode 629 fs/afs/fsclient.c if (S_ISDIR(mode)) mode 630 fs/afs/fsclient.c return yfs_fs_make_dir(fc, name, mode, dvnode_scb, mode 633 fs/afs/fsclient.c return yfs_fs_create_file(fc, name, mode, dvnode_scb, mode 644 fs/afs/fsclient.c net, S_ISDIR(mode) ? &afs_RXFSMakeDir : &afs_RXFSCreateFile, mode 656 fs/afs/fsclient.c *bp++ = htonl(S_ISDIR(mode) ? FSMAKEDIR : FSCREATEFILE); mode 671 fs/afs/fsclient.c *bp++ = htonl(mode & S_IALLUGO); /* unix mode */ mode 41 fs/afs/inode.c vnode->status.mode, mode 86 fs/afs/inode.c status->mode); mode 102 fs/afs/inode.c inode->i_mode = S_IFREG | status->mode; mode 108 fs/afs/inode.c inode->i_mode = S_IFDIR | status->mode; mode 115 fs/afs/inode.c if ((status->mode & 0777) == 0644) { mode 125 fs/afs/inode.c inode->i_mode = S_IFLNK | status->mode; mode 172 fs/afs/inode.c umode_t mode; mode 196 fs/afs/inode.c if (status->mode != vnode->status.mode) { mode 197 fs/afs/inode.c mode = vnode->vfs_inode.i_mode; mode 198 fs/afs/inode.c mode &= ~S_IALLUGO; mode 199 fs/afs/inode.c mode |= status->mode; mode 200 fs/afs/inode.c WRITE_ONCE(vnode->vfs_inode.i_mode, mode); mode 94 fs/afs/protocol_yfs.h __be32 mode; mode 113 fs/afs/protocol_yfs.h __be32 mode; mode 22 fs/afs/xdr_fs.h __be32 mode; mode 88 fs/afs/yfsclient.c static __be32 *xdr_encode_YFSStoreStatus_mode(__be32 *bp, mode_t mode) mode 93 fs/afs/yfsclient.c x->mode = htonl(mode & S_IALLUGO); mode 106 fs/afs/yfsclient.c x->mode = htonl(0); mode 215 fs/afs/yfsclient.c status->mode = ntohl(xdr->mode) & S_IALLUGO; mode 279 fs/afs/yfsclient.c u32 mask = 0, mode = 0; mode 299 fs/afs/yfsclient.c mode = attr->ia_mode & S_IALLUGO; mode 303 fs/afs/yfsclient.c x->mode = htonl(mode); mode 676 fs/afs/yfsclient.c umode_t mode, mode 717 fs/afs/yfsclient.c bp = xdr_encode_YFSStoreStatus_mode(bp, mode); mode 740 fs/afs/yfsclient.c umode_t mode, mode 780 fs/afs/yfsclient.c bp = xdr_encode_YFSStoreStatus_mode(bp, mode); mode 378 fs/aio.c struct page *old, enum migrate_mode mode) mode 390 fs/aio.c if (mode == MIGRATE_SYNC_NO_COPY) mode 1678 fs/aio.c static int aio_poll_wake(struct wait_queue_entry *wait, unsigned mode, int sync, mode 193 fs/attr.c umode_t mode = attr->ia_mode; mode 197 fs/attr.c mode &= ~S_ISGID; mode 198 fs/attr.c inode->i_mode = mode; mode 226 fs/attr.c umode_t mode = inode->i_mode; mode 292 fs/attr.c if (mode & S_ISUID) { mode 298 fs/attr.c if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) { mode 713 fs/autofs/dev-ioctl.c .mode = 0644, mode 360 fs/autofs/inode.c struct inode *autofs_get_inode(struct super_block *sb, umode_t mode) mode 367 fs/autofs/inode.c inode->i_mode = mode; mode 375 fs/autofs/inode.c if (S_ISDIR(mode)) { mode 379 fs/autofs/inode.c } else if (S_ISLNK(mode)) { mode 729 fs/autofs/root.c struct dentry *dentry, umode_t mode) mode 754 fs/autofs/root.c inode = autofs_get_inode(dir->i_sb, S_IFDIR | mode); mode 30 fs/bad_inode.c umode_t mode, bool excl) mode 59 fs/bad_inode.c umode_t mode) mode 70 fs/bad_inode.c umode_t mode, dev_t rdev) mode 143 fs/bad_inode.c umode_t mode) mode 181 fs/befs/befs_fs_types.h fs32 mode; mode 88 fs/befs/debug.c befs_debug(sb, " mode %08x", fs32_to_cpu(sb, inode->mode)); mode 106 fs/befs/debug.c if (S_ISLNK(fs32_to_cpu(sb, inode->mode))) { mode 338 fs/befs/linuxvfs.c inode->i_mode = (umode_t) fs32_to_cpu(sb, raw_inode->mode); mode 78 fs/bfs/dir.c static int bfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 99 fs/bfs/dir.c inode_init_owner(inode, dir, mode); mode 590 fs/binfmt_misc.c static struct inode *bm_get_inode(struct super_block *sb, int mode) mode 596 fs/binfmt_misc.c inode->i_mode = mode; mode 1510 fs/block_dev.c static void __blkdev_put(struct block_device *bdev, fmode_t mode, int for_part); mode 1532 fs/block_dev.c static int __blkdev_get(struct block_device *bdev, fmode_t mode, int for_part) mode 1540 fs/block_dev.c if (mode & FMODE_READ) mode 1542 fs/block_dev.c if (mode & FMODE_WRITE) mode 1579 fs/block_dev.c ret = disk->fops->open(bdev, mode); mode 1620 fs/block_dev.c ret = __blkdev_get(whole, mode, 1); mode 1640 fs/block_dev.c ret = bdev->bd_disk->fops->open(bdev, mode); mode 1665 fs/block_dev.c __blkdev_put(bdev->bd_contains, mode, 1); mode 1696 fs/block_dev.c int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder) mode 1701 fs/block_dev.c WARN_ON_ONCE((mode & FMODE_EXCL) && !holder); mode 1703 fs/block_dev.c if ((mode & FMODE_EXCL) && holder) { mode 1711 fs/block_dev.c res = __blkdev_get(bdev, mode, 0); mode 1729 fs/block_dev.c if (!res && (mode & FMODE_WRITE) && !bdev->bd_write_holder && mode 1760 fs/block_dev.c struct block_device *blkdev_get_by_path(const char *path, fmode_t mode, mode 1770 fs/block_dev.c err = blkdev_get(bdev, mode, holder); mode 1774 fs/block_dev.c if ((mode & FMODE_WRITE) && bdev_read_only(bdev)) { mode 1775 fs/block_dev.c blkdev_put(bdev, mode); mode 1805 fs/block_dev.c struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode, void *holder) mode 1814 fs/block_dev.c err = blkdev_get(bdev, mode, holder); mode 1853 fs/block_dev.c static void __blkdev_put(struct block_device *bdev, fmode_t mode, int for_part) mode 1871 fs/block_dev.c disk->fops->release(disk, mode); mode 1886 fs/block_dev.c __blkdev_put(victim, mode, 1); mode 1889 fs/block_dev.c void blkdev_put(struct block_device *bdev, fmode_t mode) mode 1893 fs/block_dev.c if (mode & FMODE_EXCL) { mode 1933 fs/block_dev.c __blkdev_put(bdev, mode, 0); mode 1947 fs/block_dev.c fmode_t mode = file->f_mode; mode 1954 fs/block_dev.c mode |= FMODE_NDELAY; mode 1956 fs/block_dev.c mode &= ~FMODE_NDELAY; mode 1958 fs/block_dev.c return blkdev_ioctl(bdev, mode, cmd, arg); mode 2056 fs/block_dev.c static long blkdev_fallocate(struct file *file, int mode, loff_t start, mode 2066 fs/block_dev.c if (mode & ~BLKDEV_FALLOC_FL_SUPPORTED) mode 2074 fs/block_dev.c if (mode & FALLOC_FL_KEEP_SIZE) { mode 2091 fs/block_dev.c switch (mode) { mode 1560 fs/btrfs/ctree.h BTRFS_SETGET_FUNCS(inode_mode, struct btrfs_inode_item, mode, 32); mode 1577 fs/btrfs/ctree.h BTRFS_SETGET_STACK_FUNCS(stack_inode_mode, struct btrfs_inode_item, mode, 32); mode 2890 fs/btrfs/ctree.h int btrfs_prealloc_file_range(struct inode *inode, int mode, mode 2894 fs/btrfs/ctree.h struct btrfs_trans_handle *trans, int mode, mode 255 fs/btrfs/dev-replace.c device->mode = FMODE_EXCL; mode 923 fs/btrfs/disk-io.c enum migrate_mode mode) mode 938 fs/btrfs/disk-io.c return migrate_page(mapping, newpage, page, mode); mode 4267 fs/btrfs/extent_io.c int mode) mode 4280 fs/btrfs/extent_io.c .sync_io = mode == WB_SYNC_ALL, mode 4283 fs/btrfs/extent_io.c .sync_mode = mode, mode 410 fs/btrfs/extent_io.h int mode); mode 2937 fs/btrfs/file.c const int mode) mode 2944 fs/btrfs/file.c if (mode & FALLOC_FL_KEEP_SIZE || end <= i_size_read(inode)) mode 2992 fs/btrfs/file.c const int mode) mode 3034 fs/btrfs/file.c mode); mode 3061 fs/btrfs/file.c mode); mode 3070 fs/btrfs/file.c mode); mode 3141 fs/btrfs/file.c ret = btrfs_prealloc_file_range(inode, mode, alloc_start, mode 3153 fs/btrfs/file.c ret = btrfs_fallocate_update_isize(inode, offset + len, mode); mode 3163 fs/btrfs/file.c static long btrfs_fallocate(struct file *file, int mode, mode 3188 fs/btrfs/file.c if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | mode 3192 fs/btrfs/file.c if (mode & FALLOC_FL_PUNCH_HOLE) mode 3200 fs/btrfs/file.c if (!(mode & FALLOC_FL_ZERO_RANGE)) { mode 3209 fs/btrfs/file.c if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + len > inode->i_size) { mode 3247 fs/btrfs/file.c if (mode & FALLOC_FL_ZERO_RANGE) { mode 3248 fs/btrfs/file.c ret = btrfs_zero_range(inode, offset, len, mode); mode 3333 fs/btrfs/file.c ret = btrfs_prealloc_file_range(inode, mode, mode 3351 fs/btrfs/file.c ret = btrfs_fallocate_update_isize(inode, actual_end, mode); mode 3358 fs/btrfs/file.c if (ret != 0 && !(mode & FALLOC_FL_ZERO_RANGE)) mode 6416 fs/btrfs/inode.c umode_t mode, u64 *index) mode 6523 fs/btrfs/inode.c inode_init_owner(inode, dir, mode); mode 6551 fs/btrfs/inode.c if (S_ISREG(mode)) { mode 6685 fs/btrfs/inode.c umode_t mode, dev_t rdev) mode 6710 fs/btrfs/inode.c mode, &index); mode 6749 fs/btrfs/inode.c umode_t mode, bool excl) mode 6774 fs/btrfs/inode.c mode, &index); mode 6900 fs/btrfs/inode.c static int btrfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 6925 fs/btrfs/inode.c S_IFDIR | mode, &index); mode 10468 fs/btrfs/inode.c static int __btrfs_prealloc_file_range(struct inode *inode, int mode, mode 10580 fs/btrfs/inode.c if (!(mode & FALLOC_FL_KEEP_SIZE) && mode 10609 fs/btrfs/inode.c int btrfs_prealloc_file_range(struct inode *inode, int mode, mode 10613 fs/btrfs/inode.c return __btrfs_prealloc_file_range(inode, mode, start, num_bytes, mode 10619 fs/btrfs/inode.c struct btrfs_trans_handle *trans, int mode, mode 10623 fs/btrfs/inode.c return __btrfs_prealloc_file_range(inode, mode, start, num_bytes, mode 10635 fs/btrfs/inode.c umode_t mode = inode->i_mode; mode 10638 fs/btrfs/inode.c (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode))) { mode 10647 fs/btrfs/inode.c static int btrfs_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) mode 10669 fs/btrfs/inode.c btrfs_ino(BTRFS_I(dir)), objectid, mode, &index); mode 825 fs/btrfs/send.c u64 ino, u64 *size, u64 *gen, u64 *mode, u64 *uid, mode 848 fs/btrfs/send.c if (mode) mode 849 fs/btrfs/send.c *mode = btrfs_inode_mode(path->nodes[0], ii); mode 862 fs/btrfs/send.c u64 *mode, u64 *uid, u64 *gid, mode 871 fs/btrfs/send.c ret = __get_inode_info(root, path, ino, size, gen, mode, uid, gid, mode 2461 fs/btrfs/send.c static int send_chmod(struct send_ctx *sctx, u64 ino, u64 gen, u64 mode) mode 2467 fs/btrfs/send.c btrfs_debug(fs_info, "send_chmod %llu mode=%llu", ino, mode); mode 2481 fs/btrfs/send.c TLV_PUT_U64(sctx, BTRFS_SEND_A_MODE, mode & 07777); mode 2593 fs/btrfs/send.c u64 mode; mode 2603 fs/btrfs/send.c ret = get_inode_info(sctx->send_root, ino, NULL, &gen, &mode, mode 2609 fs/btrfs/send.c mode = sctx->cur_inode_mode; mode 2613 fs/btrfs/send.c if (S_ISREG(mode)) { mode 2615 fs/btrfs/send.c } else if (S_ISDIR(mode)) { mode 2617 fs/btrfs/send.c } else if (S_ISLNK(mode)) { mode 2619 fs/btrfs/send.c } else if (S_ISCHR(mode) || S_ISBLK(mode)) { mode 2621 fs/btrfs/send.c } else if (S_ISFIFO(mode)) { mode 2623 fs/btrfs/send.c } else if (S_ISSOCK(mode)) { mode 2627 fs/btrfs/send.c (int)(mode & S_IFMT)); mode 2643 fs/btrfs/send.c if (S_ISLNK(mode)) { mode 2649 fs/btrfs/send.c } else if (S_ISCHR(mode) || S_ISBLK(mode) || mode 2650 fs/btrfs/send.c S_ISFIFO(mode) || S_ISSOCK(mode)) { mode 2652 fs/btrfs/send.c TLV_PUT_U64(sctx, BTRFS_SEND_A_MODE, mode); mode 1485 fs/btrfs/super.c fmode_t mode = FMODE_READ; mode 1489 fs/btrfs/super.c mode |= FMODE_WRITE; mode 1517 fs/btrfs/super.c error = btrfs_parse_device_options(data, mode, fs_type); mode 1523 fs/btrfs/super.c device = btrfs_scan_one_device(device_name, mode, fs_type); mode 1533 fs/btrfs/super.c error = btrfs_open_devices(fs_devices, mode, fs_type); mode 35 fs/btrfs/sysfs.c .attr = { .name = __stringify(_name), .mode = _mode }, \ mode 231 fs/btrfs/sysfs.c umode_t mode = attr->mode; mode 241 fs/btrfs/sysfs.c mode |= S_IWUSR; mode 243 fs/btrfs/sysfs.c mode = 0; mode 246 fs/btrfs/sysfs.c return mode; mode 814 fs/btrfs/sysfs.c fa->kobj_attr.attr.mode = S_IRUGO; mode 750 fs/btrfs/tree-checker.c u32 mode; mode 793 fs/btrfs/tree-checker.c mode = btrfs_inode_mode(leaf, iitem); mode 794 fs/btrfs/tree-checker.c if (mode & ~valid_mask) { mode 797 fs/btrfs/tree-checker.c mode & ~valid_mask); mode 806 fs/btrfs/tree-checker.c if (!is_power_of_2(mode & S_IFMT)) { mode 807 fs/btrfs/tree-checker.c if (!S_ISLNK(mode) && !S_ISBLK(mode) && !S_ISSOCK(mode)) { mode 810 fs/btrfs/tree-checker.c mode & S_IFMT); mode 814 fs/btrfs/tree-checker.c if (S_ISDIR(mode) && btrfs_inode_nlink(leaf, iitem) > 1) { mode 416 fs/btrfs/tree-log.c u32 mode; mode 430 fs/btrfs/tree-log.c mode = btrfs_inode_mode(eb, item); mode 431 fs/btrfs/tree-log.c if (S_ISDIR(mode)) mode 436 fs/btrfs/tree-log.c u32 mode; mode 450 fs/btrfs/tree-log.c mode = btrfs_inode_mode(eb, item); mode 451 fs/btrfs/tree-log.c if (S_ISDIR(mode)) mode 2566 fs/btrfs/tree-log.c u32 mode; mode 2588 fs/btrfs/tree-log.c mode = btrfs_inode_mode(eb, inode_item); mode 2589 fs/btrfs/tree-log.c if (S_ISDIR(mode)) { mode 2608 fs/btrfs/tree-log.c if (S_ISREG(mode)) { mode 835 fs/btrfs/volumes.c device->mode = flags; mode 1250 fs/btrfs/volumes.c blkdev_put(device->bdev, device->mode); mode 1286 fs/btrfs/volumes.c blkdev_put(device->bdev, device->mode); mode 2669 fs/btrfs/volumes.c device->mode = FMODE_EXCL; mode 81 fs/btrfs/volumes.h fmode_t mode; mode 20 fs/cachefiles/rdwr.c static int cachefiles_read_waiter(wait_queue_entry_t *wait, unsigned mode, mode 33 fs/cachefiles/rdwr.c monitor->netfs_page->index, mode, sync, mode 161 fs/ceph/acl.c int ceph_pre_init_acls(struct inode *dir, umode_t *mode, mode 170 fs/ceph/acl.c err = posix_acl_create(dir, mode, &default_acl, &acl); mode 175 fs/ceph/acl.c err = posix_acl_equiv_mode(acl, mode); mode 1126 fs/ceph/caps.c umode_t mode; mode 1187 fs/ceph/caps.c fc->mode = cpu_to_le32(arg->mode); mode 1366 fs/ceph/caps.c arg.mode = inode->i_mode; mode 1436 fs/ceph/caps.c arg.mode = capsnap->mode; mode 3168 fs/ceph/caps.c inode->i_mode = le32_to_cpu(grant->mode); mode 513 fs/ceph/dir.c ftype = le32_to_cpu(rde->inode.in->mode) >> 12; mode 823 fs/ceph/dir.c umode_t mode, dev_t rdev) mode 839 fs/ceph/dir.c err = ceph_pre_init_acls(dir, &mode, &as_ctx); mode 842 fs/ceph/dir.c err = ceph_security_init_secctx(dentry, mode, &as_ctx); mode 847 fs/ceph/dir.c dir, dentry, mode, rdev); mode 857 fs/ceph/dir.c req->r_args.mknod.mode = cpu_to_le32(mode); mode 878 fs/ceph/dir.c static int ceph_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 881 fs/ceph/dir.c return ceph_mknod(dir, dentry, mode, 0); mode 934 fs/ceph/dir.c static int ceph_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 949 fs/ceph/dir.c dout("mkdir dir %p dn %p mode 0%ho\n", dir, dentry, mode); mode 961 fs/ceph/dir.c mode |= S_IFDIR; mode 962 fs/ceph/dir.c err = ceph_pre_init_acls(dir, &mode, &as_ctx); mode 965 fs/ceph/dir.c err = ceph_security_init_secctx(dentry, mode, &as_ctx); mode 979 fs/ceph/dir.c req->r_args.mkdir.mode = cpu_to_le32(mode); mode 197 fs/ceph/file.c req->r_args.open.mode = cpu_to_le32(create_mode); mode 439 fs/ceph/file.c struct file *file, unsigned flags, umode_t mode) mode 451 fs/ceph/file.c d_unhashed(dentry) ? "unhashed" : "hashed", flags, mode); mode 459 fs/ceph/file.c err = ceph_pre_init_acls(dir, &mode, &as_ctx); mode 462 fs/ceph/file.c err = ceph_security_init_secctx(dentry, mode, &as_ctx); mode 471 fs/ceph/file.c req = prepare_open_request(dir->i_sb, flags, mode); mode 1785 fs/ceph/file.c static long ceph_fallocate(struct file *file, int mode, mode 1798 fs/ceph/file.c if (mode != (FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) mode 817 fs/ceph/inode.c inode->i_mode = le32_to_cpu(info->mode); mode 2070 fs/ceph/inode.c req->r_args.setattr.mode = cpu_to_le32(attr->ia_mode); mode 2246 fs/ceph/inode.c int mode; mode 2259 fs/ceph/inode.c mode = (mask & CEPH_STAT_RSTAT) ? USE_AUTH_MDS : USE_ANY_MDS; mode 2260 fs/ceph/inode.c req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_GETATTR, mode); mode 886 fs/ceph/mds_client.c int mode = req->r_direct_mode; mode 903 fs/ceph/mds_client.c if (mode == USE_RANDOM_MDS) mode 940 fs/ceph/mds_client.c if (!inode || mode == USE_AUTH_MDS) { mode 953 fs/ceph/mds_client.c (int)hash, mode); mode 964 fs/ceph/mds_client.c if (mode == USE_ANY_MDS && frag.ndist > 0) { mode 984 fs/ceph/mds_client.c mode = USE_AUTH_MDS; mode 1000 fs/ceph/mds_client.c if (mode == USE_AUTH_MDS) mode 2071 fs/ceph/mds_client.c ceph_mdsc_create_request(struct ceph_mds_client *mdsc, int op, int mode) mode 2097 fs/ceph/mds_client.c req->r_direct_mode = mode; mode 470 fs/ceph/mds_client.h ceph_mdsc_create_request(struct ceph_mds_client *mdsc, int op, int mode); mode 540 fs/ceph/snap.c capsnap->mode = inode->i_mode; mode 199 fs/ceph/super.h umode_t mode; mode 973 fs/ceph/super.h extern int ceph_security_init_secctx(struct dentry *dentry, umode_t mode, mode 980 fs/ceph/super.h static inline int ceph_security_init_secctx(struct dentry *dentry, umode_t mode, mode 997 fs/ceph/super.h int ceph_pre_init_acls(struct inode *dir, umode_t *mode, mode 1012 fs/ceph/super.h static inline int ceph_pre_init_acls(struct inode *dir, umode_t *mode, mode 1082 fs/ceph/super.h extern void __ceph_get_fmode(struct ceph_inode_info *ci, int mode); mode 1083 fs/ceph/super.h extern void ceph_put_fmode(struct ceph_inode_info *ci, int mode); mode 1098 fs/ceph/super.h struct file *file, unsigned flags, umode_t mode); mode 1201 fs/ceph/xattr.c int ceph_security_init_secctx(struct dentry *dentry, umode_t mode, mode 1209 fs/ceph/xattr.c err = security_dentry_init_security(dentry, mode, &dentry->d_name, mode 616 fs/cifs/cifsacl.c static void mode_to_access_flags(umode_t mode, umode_t bits_to_use, mode 623 fs/cifs/cifsacl.c mode &= bits_to_use; mode 628 fs/cifs/cifsacl.c if (mode & S_IRUGO) mode 630 fs/cifs/cifsacl.c if (mode & S_IWUGO) mode 632 fs/cifs/cifsacl.c if (mode & S_IXUGO) mode 636 fs/cifs/cifsacl.c mode, *pace_flags); mode 284 fs/cifs/cifsfs.c static long cifs_fallocate(struct file *file, int mode, loff_t off, loff_t len) mode 291 fs/cifs/cifsfs.c return server->ops->fallocate(file, tcon, mode, off, len); mode 168 fs/cifs/cifsglob.h int mode; mode 331 fs/cifs/cifsglob.h umode_t mode, struct cifs_tcon *tcon, mode 334 fs/cifs/cifsglob.h int (*mkdir)(const unsigned int xid, struct inode *inode, umode_t mode, mode 496 fs/cifs/cifsglob.h umode_t mode, mode 1222 fs/cifs/cifsglob.h umode_t mode; mode 2768 fs/cifs/cifspdu.h __le64 mode; /* list of actual attribute bits on this inode */ mode 180 fs/cifs/cifsproto.h struct super_block *sb, int mode, mode 360 fs/cifs/cifsproto.h __u64 mode; mode 378 fs/cifs/cifsproto.h umode_t mode, struct cifs_tcon *tcon, mode 424 fs/cifs/cifsproto.h u32 posix_flags, __u64 mode, __u16 *netfid, mode 1081 fs/cifs/cifssmb.c CIFSSMBMkDir(const unsigned int xid, struct inode *inode, umode_t mode, mode 1126 fs/cifs/cifssmb.c __u32 posix_flags, __u64 mode, __u16 *netfid, mode 1171 fs/cifs/cifssmb.c pdata->Permissions = cpu_to_le64(mode); mode 3860 fs/cifs/cifssmb.c *pExtAttrBits = le64_to_cpu(pfinfo->mode); mode 6012 fs/cifs/cifssmb.c u64 mode = args->mode; mode 6036 fs/cifs/cifssmb.c data_offset->Permissions = cpu_to_le64(mode); mode 6038 fs/cifs/cifssmb.c if (S_ISREG(mode)) mode 6040 fs/cifs/cifssmb.c else if (S_ISDIR(mode)) mode 6042 fs/cifs/cifssmb.c else if (S_ISLNK(mode)) mode 6044 fs/cifs/cifssmb.c else if (S_ISCHR(mode)) mode 6046 fs/cifs/cifssmb.c else if (S_ISBLK(mode)) mode 6048 fs/cifs/cifssmb.c else if (S_ISFIFO(mode)) mode 6050 fs/cifs/cifssmb.c else if (S_ISSOCK(mode)) mode 227 fs/cifs/dir.c struct tcon_link *tlink, unsigned oflags, umode_t mode, mode 255 fs/cifs/dir.c rc = cifs_posix_open(full_path, &newinode, inode->i_sb, mode, mode 357 fs/cifs/dir.c if (!tcon->unix_ext && (mode & S_IWUGO) == 0) mode 371 fs/cifs/dir.c oparms.mode = mode; mode 384 fs/cifs/dir.c .mode = mode, mode 425 fs/cifs/dir.c newinode->i_mode = mode; mode 467 fs/cifs/dir.c struct file *file, unsigned oflags, umode_t mode) mode 531 fs/cifs/dir.c rc = cifs_do_create(inode, direntry, xid, tlink, oflags, mode, mode 573 fs/cifs/dir.c int cifs_create(struct inode *inode, struct dentry *direntry, umode_t mode, mode 606 fs/cifs/dir.c rc = cifs_do_create(inode, direntry, xid, tlink, oflags, mode, mode 617 fs/cifs/dir.c int cifs_mknod(struct inode *inode, struct dentry *direntry, umode_t mode, mode 646 fs/cifs/dir.c full_path, mode, mode 115 fs/cifs/file.c struct super_block *sb, int mode, unsigned int f_flags, mode 139 fs/cifs/file.c mode &= ~current_umask(); mode 142 fs/cifs/file.c rc = CIFSPOSIXCreate(xid, tcon, posix_flags, mode, pnetfid, presp_data, mode 623 fs/cifs/file.c .mode = inode->i_mode, mode 561 fs/cifs/inode.c __u32 mode; mode 582 fs/cifs/inode.c mode = le32_to_cpu(*((__le32 *)ea_value)); mode 585 fs/cifs/inode.c mode, fattr->cf_mode); mode 586 fs/cifs/inode.c fattr->cf_mode = (mode & SFBITS_MASK) | fattr->cf_mode; mode 587 fs/cifs/inode.c cifs_dbg(FYI, "special mode bits 0%o\n", mode); mode 1445 fs/cifs/inode.c cifs_mkdir_qinfo(struct inode *parent, struct dentry *dentry, umode_t mode, mode 1469 fs/cifs/inode.c mode &= ~current_umask(); mode 1472 fs/cifs/inode.c mode |= S_ISGID; mode 1476 fs/cifs/inode.c .mode = mode, mode 1498 fs/cifs/inode.c (mode & S_IWUGO) == 0 && server->ops->mkdir_setinfo) mode 1502 fs/cifs/inode.c inode->i_mode = (mode | S_IFDIR); mode 1517 fs/cifs/inode.c cifs_posix_mkdir(struct inode *inode, struct dentry *dentry, umode_t mode, mode 1533 fs/cifs/inode.c mode &= ~current_umask(); mode 1534 fs/cifs/inode.c rc = CIFSPOSIXCreate(xid, tcon, SMB_O_DIRECTORY | SMB_O_CREAT, mode, mode 1574 fs/cifs/inode.c rc = cifs_mkdir_qinfo(inode, dentry, mode, full_path, cifs_sb, tcon, mode 1579 fs/cifs/inode.c int cifs_mkdir(struct inode *inode, struct dentry *direntry, umode_t mode) mode 1590 fs/cifs/inode.c mode, inode); mode 1609 fs/cifs/inode.c rc = server->ops->posix_mkdir(xid, inode, mode, tcon, full_path, mode 1617 fs/cifs/inode.c rc = cifs_posix_mkdir(inode, direntry, mode, full_path, cifs_sb, mode 1629 fs/cifs/inode.c rc = server->ops->mkdir(xid, inode, mode, tcon, full_path, cifs_sb); mode 1637 fs/cifs/inode.c rc = cifs_mkdir_qinfo(inode, direntry, mode, full_path, cifs_sb, tcon, mode 1951 fs/cifs/inode.c cifs_wait_bit_killable(struct wait_bit_key *key, int mode) mode 1954 fs/cifs/inode.c if (signal_pending_state(mode, current)) mode 2343 fs/cifs/inode.c args->mode = attrs->ia_mode; mode 2345 fs/cifs/inode.c args->mode = NO_CHANGE_64; mode 2432 fs/cifs/inode.c __u64 mode = NO_CHANGE_64; mode 2522 fs/cifs/inode.c mode = attrs->ia_mode; mode 2526 fs/cifs/inode.c rc = id_mode_to_cifs_acl(inode, full_path, mode, mode 2534 fs/cifs/inode.c if (((mode & S_IWUGO) == 0) && mode 2542 fs/cifs/inode.c } else if ((mode & S_IWUGO) && mode 1029 fs/cifs/smb1ops.c char *full_path, umode_t mode, dev_t dev) mode 1050 fs/cifs/smb1ops.c .mode = mode & ~current_umask(), mode 1084 fs/cifs/smb1ops.c if (!S_ISCHR(mode) && !S_ISBLK(mode)) mode 1127 fs/cifs/smb1ops.c if (S_ISCHR(mode)) { mode 1133 fs/cifs/smb1ops.c } else if (S_ISBLK(mode)) { mode 54 fs/cifs/smb2inode.c __u32 create_options, umode_t mode, void *ptr, int command, mode 106 fs/cifs/smb2inode.c oparms.mode = mode; mode 503 fs/cifs/smb2inode.c smb2_mkdir(const unsigned int xid, struct inode *parent_inode, umode_t mode, mode 509 fs/cifs/smb2inode.c CREATE_NOT_FILE, mode, NULL, SMB2_OP_MKDIR, mode 3302 fs/cifs/smb2ops.c static long smb3_fallocate(struct file *file, struct cifs_tcon *tcon, int mode, mode 3306 fs/cifs/smb2ops.c if (mode & FALLOC_FL_PUNCH_HOLE) mode 3308 fs/cifs/smb2ops.c else if (mode & FALLOC_FL_ZERO_RANGE) { mode 3309 fs/cifs/smb2ops.c if (mode & FALLOC_FL_KEEP_SIZE) mode 3312 fs/cifs/smb2ops.c } else if (mode == FALLOC_FL_KEEP_SIZE) mode 3314 fs/cifs/smb2ops.c else if (mode == 0) mode 4382 fs/cifs/smb2ops.c char *full_path, umode_t mode, dev_t dev) mode 4411 fs/cifs/smb2ops.c if (!S_ISCHR(mode) && !S_ISBLK(mode)) mode 4454 fs/cifs/smb2ops.c if (S_ISCHR(mode)) { mode 4460 fs/cifs/smb2ops.c } else if (S_ISBLK(mode)) { mode 732 fs/cifs/smb2pdu.c create_posix_buf(umode_t mode) mode 765 fs/cifs/smb2pdu.c buf->Mode = cpu_to_le32(mode); mode 766 fs/cifs/smb2pdu.c cifs_dbg(FYI, "mode on posix create 0%o", mode); mode 771 fs/cifs/smb2pdu.c add_posix_context(struct kvec *iov, unsigned int *num_iovec, umode_t mode) mode 776 fs/cifs/smb2pdu.c iov[num].iov_base = create_posix_buf(mode); mode 777 fs/cifs/smb2pdu.c if (mode == ACL_NO_MODE) mode 2263 fs/cifs/smb2pdu.c umode_t mode, struct cifs_tcon *tcon, mode 2369 fs/cifs/smb2pdu.c rc = add_posix_context(iov, &n_iov, mode); mode 2528 fs/cifs/smb2pdu.c rc = add_posix_context(iov, &n_iov, oparms->mode); mode 2548 fs/cifs/smb2pdu.c (oparms->mode != ACL_NO_MODE)) { mode 84 fs/cifs/smb2proto.h umode_t mode, struct cifs_tcon *tcon, mode 88 fs/cifs/smb2proto.h umode_t mode, struct cifs_tcon *tcon, mode 169 fs/coda/coda_linux.c mode = iattr->ia_mode; mode 170 fs/coda/coda_linux.c if ( S_ISDIR(mode) ) { mode 172 fs/coda/coda_linux.c } else if ( S_ISREG(mode) ) { mode 174 fs/coda/coda_linux.c } else if ( S_ISLNK(mode) ) { mode 63 fs/coda/coda_psdev.h const char *name, int length, int excl, int mode, mode 135 fs/coda/dir.c static int coda_create(struct inode *dir, struct dentry *de, umode_t mode, bool excl) mode 148 fs/coda/dir.c 0, mode, &newfid, &attrs); mode 167 fs/coda/dir.c static int coda_mkdir(struct inode *dir, struct dentry *de, umode_t mode) mode 179 fs/coda/dir.c attrs.va_mode = mode; mode 22 fs/coda/sysctl.c .mode = 0644, mode 29 fs/coda/sysctl.c .mode = 0644, mode 36 fs/coda/sysctl.c .mode = 0600, mode 45 fs/coda/sysctl.c .mode = 0555, mode 270 fs/coda/upcall.c const char *name, int length, int excl, int mode, mode 283 fs/coda/upcall.c inp->coda_create.attr.va_mode = mode; mode 285 fs/coda/upcall.c inp->coda_create.mode = mode; mode 68 fs/configfs/configfs_internal.h extern struct inode * configfs_new_inode(umode_t mode, struct configfs_dirent *, struct super_block *); mode 69 fs/configfs/configfs_internal.h extern struct inode *configfs_create(struct dentry *, umode_t mode); mode 238 fs/configfs/dir.c umode_t mode, int type, struct configfs_fragment *frag) mode 246 fs/configfs/dir.c sd->s_mode = mode; mode 279 fs/configfs/dir.c umode_t mode = S_IFDIR| S_IRWXU | S_IRUGO | S_IXUGO; mode 289 fs/configfs/dir.c error = configfs_make_dirent(p->d_fsdata, dentry, item, mode, mode 296 fs/configfs/dir.c inode = configfs_create(dentry, mode); mode 358 fs/configfs/dir.c umode_t mode = S_IFLNK | S_IRWXUGO; mode 362 fs/configfs/dir.c err = configfs_make_dirent(p, dentry, target, mode, CONFIGFS_ITEM_LINK, mode 367 fs/configfs/dir.c inode = configfs_create(dentry, mode); mode 1270 fs/configfs/dir.c static int configfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 525 fs/configfs/file.c umode_t mode = (attr->ca_mode & S_IALLUGO) | S_IFREG; mode 529 fs/configfs/file.c error = configfs_make_dirent(parent_sd, NULL, (void *) attr, mode, mode 547 fs/configfs/file.c umode_t mode = (bin_attr->cb_attr.ca_mode & S_IALLUGO) | S_IFREG; mode 551 fs/configfs/file.c error = configfs_make_dirent(parent_sd, NULL, (void *) bin_attr, mode, mode 85 fs/configfs/inode.c umode_t mode = iattr->ia_mode; mode 88 fs/configfs/inode.c mode &= ~S_ISGID; mode 89 fs/configfs/inode.c sd_iattr->ia_mode = sd->s_mode = mode; mode 95 fs/configfs/inode.c static inline void set_default_inode_attr(struct inode * inode, umode_t mode) mode 97 fs/configfs/inode.c inode->i_mode = mode; mode 112 fs/configfs/inode.c struct inode *configfs_new_inode(umode_t mode, struct configfs_dirent *sd, mode 128 fs/configfs/inode.c set_default_inode_attr(inode, mode); mode 164 fs/configfs/inode.c struct inode *configfs_create(struct dentry *dentry, umode_t mode) mode 177 fs/configfs/inode.c inode = configfs_new_inode(mode, sd, dentry->d_sb); mode 79 fs/cramfs/inode.c switch (cino->mode & S_IFMT) { mode 102 fs/cramfs/inode.c switch (cramfs_inode->mode & S_IFMT) { mode 121 fs/cramfs/inode.c init_special_inode(inode, cramfs_inode->mode, mode 125 fs/cramfs/inode.c inode->i_mode = cramfs_inode->mode; mode 563 fs/cramfs/inode.c if (!S_ISDIR(super->root.mode)) { mode 568 fs/cramfs/inode.c super->root.mode |= 0555; mode 726 fs/cramfs/inode.c umode_t mode; mode 741 fs/cramfs/inode.c mode = de->mode; mode 753 fs/cramfs/inode.c if (!dir_emit(ctx, buf, namelen, ino, mode >> 12)) mode 451 fs/crypto/fscrypt_private.h fscrypt_mode_supports_direct_key(const struct fscrypt_mode *mode) mode 453 fs/crypto/fscrypt_private.h return mode->ivsize >= offsetofend(union fscrypt_iv, nonce); mode 457 fs/crypto/fscrypt_private.h fscrypt_allocate_skcipher(struct fscrypt_mode *mode, const u8 *raw_key, mode 70 fs/crypto/keysetup.c struct crypto_skcipher *fscrypt_allocate_skcipher(struct fscrypt_mode *mode, mode 77 fs/crypto/keysetup.c tfm = crypto_alloc_skcipher(mode->cipher_str, 0, 0); mode 82 fs/crypto/keysetup.c mode->friendly_name, mode->cipher_str); mode 86 fs/crypto/keysetup.c mode->cipher_str, PTR_ERR(tfm)); mode 89 fs/crypto/keysetup.c if (unlikely(!mode->logged_impl_name)) { mode 97 fs/crypto/keysetup.c mode->logged_impl_name = true; mode 99 fs/crypto/keysetup.c mode->friendly_name, mode 103 fs/crypto/keysetup.c err = crypto_skcipher_setkey(tfm, raw_key, mode->keysize); mode 186 fs/crypto/keysetup.c struct fscrypt_mode *mode = ci->ci_mode; mode 190 fs/crypto/keysetup.c ctfm = fscrypt_allocate_skcipher(mode, derived_key, ci->ci_inode); mode 196 fs/crypto/keysetup.c if (mode->needs_essiv) { mode 197 fs/crypto/keysetup.c err = init_essiv_generator(ci, derived_key, mode->keysize); mode 211 fs/crypto/keysetup.c struct fscrypt_mode *mode = ci->ci_mode; mode 212 fs/crypto/keysetup.c u8 mode_num = mode - available_modes; mode 229 fs/crypto/keysetup.c mode_key, mode->keysize); mode 232 fs/crypto/keysetup.c tfm = fscrypt_allocate_skcipher(mode, mode_key, ci->ci_inode); mode 233 fs/crypto/keysetup.c memzero_explicit(mode_key, mode->keysize); mode 425 fs/crypto/keysetup.c struct fscrypt_mode *mode; mode 488 fs/crypto/keysetup.c mode = select_encryption_mode(&crypt_info->ci_policy, inode); mode 489 fs/crypto/keysetup.c if (IS_ERR(mode)) { mode 490 fs/crypto/keysetup.c res = PTR_ERR(mode); mode 493 fs/crypto/keysetup.c WARN_ON(mode->ivsize > FSCRYPT_MAX_IV_SIZE); mode 494 fs/crypto/keysetup.c crypt_info->ci_mode = mode; mode 256 fs/crypto/keysetup_v1.c const struct fscrypt_mode *mode = ci->ci_mode; mode 259 fs/crypto/keysetup_v1.c if (!fscrypt_mode_supports_direct_key(mode)) { mode 262 fs/crypto/keysetup_v1.c mode->friendly_name); mode 274 fs/crypto/keysetup_v1.c if (WARN_ON(mode->needs_essiv)) mode 168 fs/dax.c unsigned int mode, int sync, void *keyp) mode 177 fs/dax.c return autoremove_wake_function(wait, mode, sync, NULL); mode 391 fs/debugfs/file.c static struct dentry *debugfs_create_mode_unsafe(const char *name, umode_t mode, mode 398 fs/debugfs/file.c if (!(mode & S_IWUGO)) mode 399 fs/debugfs/file.c return debugfs_create_file_unsafe(name, mode, parent, value, mode 402 fs/debugfs/file.c if (!(mode & S_IRUGO)) mode 403 fs/debugfs/file.c return debugfs_create_file_unsafe(name, mode, parent, value, mode 406 fs/debugfs/file.c return debugfs_create_file_unsafe(name, mode, parent, value, fops); mode 446 fs/debugfs/file.c struct dentry *debugfs_create_u8(const char *name, umode_t mode, mode 449 fs/debugfs/file.c return debugfs_create_mode_unsafe(name, mode, parent, value, &fops_u8, mode 491 fs/debugfs/file.c struct dentry *debugfs_create_u16(const char *name, umode_t mode, mode 494 fs/debugfs/file.c return debugfs_create_mode_unsafe(name, mode, parent, value, &fops_u16, mode 536 fs/debugfs/file.c struct dentry *debugfs_create_u32(const char *name, umode_t mode, mode 539 fs/debugfs/file.c return debugfs_create_mode_unsafe(name, mode, parent, value, &fops_u32, mode 582 fs/debugfs/file.c struct dentry *debugfs_create_u64(const char *name, umode_t mode, mode 585 fs/debugfs/file.c return debugfs_create_mode_unsafe(name, mode, parent, value, &fops_u64, mode 630 fs/debugfs/file.c struct dentry *debugfs_create_ulong(const char *name, umode_t mode, mode 633 fs/debugfs/file.c return debugfs_create_mode_unsafe(name, mode, parent, value, mode 676 fs/debugfs/file.c struct dentry *debugfs_create_x8(const char *name, umode_t mode, mode 679 fs/debugfs/file.c return debugfs_create_mode_unsafe(name, mode, parent, value, &fops_x8, mode 694 fs/debugfs/file.c struct dentry *debugfs_create_x16(const char *name, umode_t mode, mode 697 fs/debugfs/file.c return debugfs_create_mode_unsafe(name, mode, parent, value, &fops_x16, mode 712 fs/debugfs/file.c struct dentry *debugfs_create_x32(const char *name, umode_t mode, mode 715 fs/debugfs/file.c return debugfs_create_mode_unsafe(name, mode, parent, value, &fops_x32, mode 730 fs/debugfs/file.c struct dentry *debugfs_create_x64(const char *name, umode_t mode, mode 733 fs/debugfs/file.c return debugfs_create_mode_unsafe(name, mode, parent, value, &fops_x64, mode 764 fs/debugfs/file.c struct dentry *debugfs_create_size_t(const char *name, umode_t mode, mode 767 fs/debugfs/file.c return debugfs_create_mode_unsafe(name, mode, parent, value, mode 801 fs/debugfs/file.c struct dentry *debugfs_create_atomic_t(const char *name, umode_t mode, mode 804 fs/debugfs/file.c return debugfs_create_mode_unsafe(name, mode, parent, value, mode 897 fs/debugfs/file.c struct dentry *debugfs_create_bool(const char *name, umode_t mode, mode 900 fs/debugfs/file.c return debugfs_create_mode_unsafe(name, mode, parent, value, &fops_bool, mode 950 fs/debugfs/file.c struct dentry *debugfs_create_blob(const char *name, umode_t mode, mode 954 fs/debugfs/file.c return debugfs_create_file_unsafe(name, mode, parent, blob, &fops_blob); mode 1044 fs/debugfs/file.c void debugfs_create_u32_array(const char *name, umode_t mode, mode 1055 fs/debugfs/file.c debugfs_create_file_unsafe(name, mode, parent, data, &u32_array_fops); mode 1142 fs/debugfs/file.c struct dentry *debugfs_create_regset32(const char *name, umode_t mode, mode 1146 fs/debugfs/file.c return debugfs_create_file(name, mode, parent, regset, &fops_regset32); mode 79 fs/debugfs/inode.c umode_t mode; mode 109 fs/debugfs/inode.c opts->mode = DEBUGFS_DEFAULT_MODE; mode 136 fs/debugfs/inode.c opts->mode = option & S_IALLUGO; mode 155 fs/debugfs/inode.c inode->i_mode |= opts->mode; mode 190 fs/debugfs/inode.c if (opts->mode != DEBUGFS_DEFAULT_MODE) mode 191 fs/debugfs/inode.c seq_printf(m, ",mode=%o", opts->mode); mode 373 fs/debugfs/inode.c static struct dentry *__debugfs_create_file(const char *name, umode_t mode, mode 381 fs/debugfs/inode.c if (!(mode & S_IFMT)) mode 382 fs/debugfs/inode.c mode |= S_IFREG; mode 383 fs/debugfs/inode.c BUG_ON(!S_ISREG(mode)); mode 396 fs/debugfs/inode.c inode->i_mode = mode; mode 436 fs/debugfs/inode.c struct dentry *debugfs_create_file(const char *name, umode_t mode, mode 441 fs/debugfs/inode.c return __debugfs_create_file(name, mode, parent, data, mode 475 fs/debugfs/inode.c struct dentry *debugfs_create_file_unsafe(const char *name, umode_t mode, mode 480 fs/debugfs/inode.c return __debugfs_create_file(name, mode, parent, data, mode 515 fs/debugfs/inode.c struct dentry *debugfs_create_file_size(const char *name, umode_t mode, mode 520 fs/debugfs/inode.c struct dentry *de = debugfs_create_file(name, mode, parent, data, fops); mode 52 fs/devpts/inode.c .mode = 0644, mode 60 fs/devpts/inode.c .mode = 0644, mode 68 fs/devpts/inode.c .mode = 0444, mode 78 fs/devpts/inode.c .mode = 0555, mode 87 fs/devpts/inode.c .mode = 0555, mode 98 fs/devpts/inode.c umode_t mode; mode 256 fs/devpts/inode.c opts->mode = DEVPTS_DEFAULT_MODE; mode 298 fs/devpts/inode.c opts->mode = option & S_IALLUGO; mode 324 fs/devpts/inode.c int mode; mode 361 fs/devpts/inode.c mode = S_IFCHR|opts->ptmxmode; mode 362 fs/devpts/inode.c init_special_inode(inode, mode, MKDEV(TTYAUX_MAJOR, 2)); mode 414 fs/devpts/inode.c seq_printf(seq, ",mode=%03o", opts->mode); mode 437 fs/devpts/inode.c fsi->mount_opts.mode = DEVPTS_DEFAULT_MODE; mode 582 fs/devpts/inode.c init_special_inode(inode, S_IFCHR|opts->mode, MKDEV(UNIX98_PTY_SLAVE_MAJOR, index)); mode 28 fs/dlm/ast.c lkb->lkb_last_bast.mode, mode 36 fs/dlm/ast.c lkb->lkb_last_cast.mode, mode 45 fs/dlm/ast.c lkb->lkb_callbacks[i].mode, mode 51 fs/dlm/ast.c int dlm_add_lkb_callback(struct dlm_lkb *lkb, uint32_t flags, int mode, mode 74 fs/dlm/ast.c prev_mode = lkb->lkb_callbacks[i-1].mode; mode 76 fs/dlm/ast.c if ((prev_mode == mode) || mode 77 fs/dlm/ast.c (prev_mode > mode && prev_mode > DLM_LOCK_PR)) { mode 83 fs/dlm/ast.c mode, mode 93 fs/dlm/ast.c lkb->lkb_callbacks[i].mode = mode; mode 103 fs/dlm/ast.c flags, mode, status, sbflags); mode 144 fs/dlm/ast.c if (dlm_modes_compat(cb->mode, lkb->lkb_last_cast.mode)) { mode 151 fs/dlm/ast.c cb->mode, mode 153 fs/dlm/ast.c lkb->lkb_last_cast.mode); mode 173 fs/dlm/ast.c void dlm_add_cb(struct dlm_lkb *lkb, uint32_t flags, int mode, int status, mode 187 fs/dlm/ast.c dlm_user_add_ast(lkb, flags, mode, status, sbflags, new_seq); mode 194 fs/dlm/ast.c rv = dlm_add_lkb_callback(lkb, flags, mode, status, sbflags, new_seq); mode 218 fs/dlm/ast.c void (*bastfn) (void *astparam, int mode); mode 256 fs/dlm/ast.c bastfn(lkb->lkb_astparam, callbacks[i].mode); mode 15 fs/dlm/ast.h int dlm_add_lkb_callback(struct dlm_lkb *lkb, uint32_t flags, int mode, mode 19 fs/dlm/ast.h void dlm_add_cb(struct dlm_lkb *lkb, uint32_t flags, int mode, int status, mode 27 fs/dlm/debug_fs.c static char *print_lockmode(int mode) mode 29 fs/dlm/debug_fs.c switch (mode) { mode 247 fs/dlm/debug_fs.c lkb->lkb_last_bast.mode, mode 149 fs/dlm/dlm_internal.h void (*bastfn) (void *astparam, int mode); mode 150 fs/dlm/dlm_internal.h int mode; mode 228 fs/dlm/dlm_internal.h int8_t mode; /* rq mode of bast, gr mode of cast */ mode 275 fs/dlm/dlm_internal.h void (*lkb_bastfn) (void *astparam, int mode); mode 81 fs/dlm/lock.c static int send_bast(struct dlm_rsb *r, struct dlm_lkb *lkb, int mode); mode 1299 fs/dlm/lock.c int mode) mode 1304 fs/dlm/lock.c if (lkb->lkb_rqmode < mode) mode 2806 fs/dlm/lock.c static int set_lock_args(int mode, struct dlm_lksb *lksb, uint32_t flags, mode 2810 fs/dlm/lock.c void (*bast) (void *astparam, int mode), mode 2817 fs/dlm/lock.c if (mode < 0 || mode > DLM_LOCK_EX) mode 2844 fs/dlm/lock.c if (flags & DLM_LKF_EXPEDITE && mode != DLM_LOCK_NL) mode 2865 fs/dlm/lock.c args->mode = mode; mode 2896 fs/dlm/lock.c !__quecvt_compat_matrix[lkb->lkb_grmode+1][args->mode+1]) mode 2915 fs/dlm/lock.c lkb->lkb_rqmode = args->mode; mode 3411 fs/dlm/lock.c int mode, mode 3419 fs/dlm/lock.c void (*bast) (void *astarg, int mode)) mode 3440 fs/dlm/lock.c error = set_lock_args(mode, lksb, flags, namelen, 0, ast, mode 3728 fs/dlm/lock.c static int send_bast(struct dlm_rsb *r, struct dlm_lkb *lkb, int mode) mode 3742 fs/dlm/lock.c ms->m_bastmode = mode; mode 3905 fs/dlm/lock.c static void fake_bastfn(void *astparam, int mode) mode 5772 fs/dlm/lock.c int mode, uint32_t flags, void *name, unsigned int namelen, mode 5796 fs/dlm/lock.c error = set_lock_args(mode, &ua->lksb, flags, namelen, timeout_cs, mode 5837 fs/dlm/lock.c int mode, uint32_t flags, uint32_t lkid, char *lvb_in, mode 5873 fs/dlm/lock.c error = set_lock_args(mode, &ua->lksb, flags, 0, timeout_cs, mode 5897 fs/dlm/lock.c int mode, uint32_t flags, void *name, unsigned int namelen, mode 5912 fs/dlm/lock.c if (lkb->lkb_grmode != mode) { mode 44 fs/dlm/lock.h int dlm_user_request(struct dlm_ls *ls, struct dlm_user_args *ua, int mode, mode 48 fs/dlm/lock.h int mode, uint32_t flags, uint32_t lkid, char *lvb_in, mode 51 fs/dlm/lock.h int mode, uint32_t flags, void *name, unsigned int namelen, mode 121 fs/dlm/lockspace.c .attr = {.name = "control", .mode = S_IWUSR}, mode 126 fs/dlm/lockspace.c .attr = {.name = "event_done", .mode = S_IWUSR}, mode 131 fs/dlm/lockspace.c .attr = {.name = "id", .mode = S_IRUGO | S_IWUSR}, mode 137 fs/dlm/lockspace.c .attr = {.name = "nodir", .mode = S_IRUGO | S_IWUSR}, mode 143 fs/dlm/lockspace.c .attr = {.name = "recover_status", .mode = S_IRUGO}, mode 148 fs/dlm/lockspace.c .attr = {.name = "recover_nodeid", .mode = S_IRUGO}, mode 35 fs/dlm/user.c __u8 mode; mode 104 fs/dlm/user.c kb->i.lock.mode = kb32->i.lock.mode; mode 156 fs/dlm/user.c static int lkb_is_endoflife(int mode, int status) mode 165 fs/dlm/user.c if (mode == DLM_LOCK_IV) mode 175 fs/dlm/user.c void dlm_user_add_ast(struct dlm_lkb *lkb, uint32_t flags, int mode, mode 205 fs/dlm/user.c if ((flags & DLM_CB_CAST) && lkb_is_endoflife(mode, status)) mode 210 fs/dlm/user.c rv = dlm_add_lkb_callback(lkb, flags, mode, status, sbflags, seq); mode 266 fs/dlm/user.c params->mode, params->flags, mode 271 fs/dlm/user.c params->mode, params->flags, mode 279 fs/dlm/user.c params->mode, params->flags, mode 687 fs/dlm/user.c uint32_t flags, int mode, int copy_lvb, mode 715 fs/dlm/user.c result.bast_mode = mode; mode 842 fs/dlm/user.c old_mode = lkb->lkb_last_cast.mode; mode 867 fs/dlm/user.c new_mode = cb.mode; mode 879 fs/dlm/user.c cb.flags, cb.mode, copy_lvb, buf, count); mode 9 fs/dlm/user.h void dlm_user_add_ast(struct dlm_lkb *lkb, uint32_t flags, int mode, mode 69 fs/ecryptfs/ecryptfs_kernel.h unsigned int mode; mode 174 fs/ecryptfs/inode.c struct dentry *ecryptfs_dentry, umode_t mode) mode 183 fs/ecryptfs/inode.c rc = vfs_create(d_inode(lower_dir_dentry), lower_dentry, mode, true); mode 258 fs/ecryptfs/inode.c umode_t mode, bool excl) mode 264 fs/ecryptfs/inode.c mode); mode 502 fs/ecryptfs/inode.c static int ecryptfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 510 fs/ecryptfs/inode.c rc = vfs_mkdir(d_inode(lower_dir_dentry), lower_dentry, mode); mode 558 fs/ecryptfs/inode.c ecryptfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) mode 566 fs/ecryptfs/inode.c rc = vfs_mknod(d_inode(lower_dir_dentry), lower_dentry, mode, dev); mode 16 fs/efivarfs/inode.c const struct inode *dir, int mode, mode 23 fs/efivarfs/inode.c inode->i_mode = mode; mode 26 fs/efivarfs/inode.c switch (mode & S_IFMT) { mode 69 fs/efivarfs/inode.c umode_t mode, bool excl) mode 94 fs/efivarfs/inode.c inode = efivarfs_get_inode(dir->i_sb, dir, mode, 0, is_removable); mode 15 fs/efivarfs/internal.h const struct inode *dir, int mode, dev_t dev, mode 139 fs/erofs/zdata.c enum z_erofs_collectmode mode; mode 155 fs/erofs/zdata.c .mode = COLLECT_PRIMARY_FOLLOWED } mode 175 fs/erofs/zdata.c if (clt->mode < COLLECT_PRIMARY_FOLLOWED) mode 207 fs/erofs/zdata.c clt->mode = COLLECT_PRIMARY_FOLLOWED_NOINPLACE; mode 298 fs/erofs/zdata.c if (clt->mode >= COLLECT_PRIMARY && mode 391 fs/erofs/zdata.c clt->mode = try_to_claim_pcluster(pcl, &clt->owned_head); mode 430 fs/erofs/zdata.c clt->mode = COLLECT_PRIMARY_FOLLOWED; mode 489 fs/erofs/zdata.c if (clt->mode <= COLLECT_PRIMARY) /* cannot do in-place I/O */ mode 539 fs/erofs/zdata.c if (clt->mode < COLLECT_PRIMARY_FOLLOWED_NOINPLACE) mode 638 fs/erofs/zdata.c tight &= (clt->mode >= COLLECT_PRIMARY_HOOKED && mode 639 fs/erofs/zdata.c clt->mode != COLLECT_PRIMARY_FOLLOWED_NOINPLACE); mode 654 fs/erofs/zdata.c tight &= (clt->mode >= COLLECT_PRIMARY_FOLLOWED); mode 302 fs/eventpoll.c .mode = 0644, mode 1211 fs/eventpoll.c static int ep_poll_callback(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) mode 1519 fs/exec.c unsigned int mode; mode 1539 fs/exec.c mode = READ_ONCE(inode->i_mode); mode 1540 fs/exec.c if (!(mode & (S_ISUID|S_ISGID))) mode 1547 fs/exec.c mode = inode->i_mode; mode 1557 fs/exec.c if (mode & S_ISUID) { mode 1562 fs/exec.c if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) { mode 223 fs/ext2/acl.c umode_t mode = inode->i_mode; mode 226 fs/ext2/acl.c error = posix_acl_update_mode(inode, &mode, &acl); mode 233 fs/ext2/acl.c inode->i_mode = mode; mode 271 fs/ext2/ext2.h static inline __u32 ext2_mask_flags(umode_t mode, __u32 flags) mode 273 fs/ext2/ext2.h if (S_ISDIR(mode)) mode 275 fs/ext2/ext2.h else if (S_ISREG(mode)) mode 427 fs/ext2/ialloc.c struct inode *ext2_new_inode(struct inode *dir, umode_t mode, mode 450 fs/ext2/ialloc.c if (S_ISDIR(mode)) { mode 532 fs/ext2/ialloc.c if (S_ISDIR(mode)) mode 537 fs/ext2/ialloc.c if (S_ISDIR(mode)) { mode 549 fs/ext2/ialloc.c inode->i_mode = mode; mode 553 fs/ext2/ialloc.c inode_init_owner(inode, dir, mode); mode 560 fs/ext2/ialloc.c ext2_mask_flags(mode, EXT2_I(dir)->i_flags & EXT2_FL_INHERITED); mode 95 fs/ext2/namei.c static int ext2_create (struct inode * dir, struct dentry * dentry, umode_t mode, bool excl) mode 104 fs/ext2/namei.c inode = ext2_new_inode(dir, mode, &dentry->d_name); mode 113 fs/ext2/namei.c static int ext2_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) mode 115 fs/ext2/namei.c struct inode *inode = ext2_new_inode(dir, mode, NULL); mode 126 fs/ext2/namei.c static int ext2_mknod (struct inode * dir, struct dentry *dentry, umode_t mode, dev_t rdev) mode 135 fs/ext2/namei.c inode = ext2_new_inode (dir, mode, &dentry->d_name); mode 222 fs/ext2/namei.c static int ext2_mkdir(struct inode * dir, struct dentry * dentry, umode_t mode) mode 233 fs/ext2/namei.c inode = ext2_new_inode(dir, S_IFDIR | mode, &dentry->d_name); mode 231 fs/ext4/acl.c umode_t mode = inode->i_mode; mode 248 fs/ext4/acl.c error = posix_acl_update_mode(inode, &mode, &acl); mode 251 fs/ext4/acl.c if (mode != inode->i_mode) mode 257 fs/ext4/acl.c inode->i_mode = mode; mode 447 fs/ext4/ext4.h static inline __u32 ext4_mask_flags(umode_t mode, __u32 flags) mode 449 fs/ext4/ext4.h if (S_ISDIR(mode)) mode 451 fs/ext4/ext4.h else if (S_ISREG(mode)) mode 2533 fs/ext4/ext4.h #define ext4_new_inode(handle, dir, mode, qstr, goal, owner, i_flags) \ mode 2534 fs/ext4/ext4.h __ext4_new_inode((handle), (dir), (mode), (qstr), (goal), (owner), \ mode 2536 fs/ext4/ext4.h #define ext4_new_inode_start_handle(dir, mode, qstr, goal, owner, \ mode 2538 fs/ext4/ext4.h __ext4_new_inode(NULL, (dir), (mode), (qstr), (goal), (owner), \ mode 3233 fs/ext4/ext4.h umode_t mode) { mode 3235 fs/ext4/ext4.h de->file_type = ext4_type_by_mode[(mode & S_IFMT)>>S_SHIFT]; mode 3287 fs/ext4/ext4.h extern long ext4_fallocate(struct file *file, int mode, loff_t offset, mode 4696 fs/ext4/extents.c loff_t len, int mode) mode 4710 fs/ext4/extents.c trace_ext4_zero_range(inode, offset, len, mode); mode 4753 fs/ext4/extents.c if (!(mode & FALLOC_FL_KEEP_SIZE) && mode 4763 fs/ext4/extents.c if (mode & FALLOC_FL_KEEP_SIZE) mode 4864 fs/ext4/extents.c long ext4_fallocate(struct file *file, int mode, loff_t offset, loff_t len) mode 4885 fs/ext4/extents.c (mode & (FALLOC_FL_COLLAPSE_RANGE | FALLOC_FL_INSERT_RANGE | mode 4890 fs/ext4/extents.c if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | mode 4895 fs/ext4/extents.c if (mode & FALLOC_FL_PUNCH_HOLE) mode 4902 fs/ext4/extents.c if (mode & FALLOC_FL_COLLAPSE_RANGE) mode 4905 fs/ext4/extents.c if (mode & FALLOC_FL_INSERT_RANGE) mode 4908 fs/ext4/extents.c if (mode & FALLOC_FL_ZERO_RANGE) mode 4909 fs/ext4/extents.c return ext4_zero_range(file, offset, len, mode); mode 4911 fs/ext4/extents.c trace_ext4_fallocate_enter(inode, offset, len, mode); mode 4916 fs/ext4/extents.c if (mode & FALLOC_FL_KEEP_SIZE) mode 4929 fs/ext4/extents.c if (!(mode & FALLOC_FL_KEEP_SIZE) && mode 414 fs/ext4/ialloc.c ext4_group_t *group, umode_t mode, mode 447 fs/ext4/ialloc.c if (S_ISDIR(mode) && mode 562 fs/ext4/ialloc.c ext4_group_t *group, umode_t mode) mode 604 fs/ext4/ialloc.c return find_group_orlov(sb, parent, group, mode, NULL); mode 741 fs/ext4/ialloc.c umode_t mode, const struct qstr *qstr, mode 773 fs/ext4/ialloc.c (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)) && mode 792 fs/ext4/ialloc.c nblocks += (S_ISDIR(mode) ? 2 : 1) * mode 826 fs/ext4/ialloc.c trace_ext4_request_inode(dir, mode); mode 838 fs/ext4/ialloc.c inode->i_mode = mode; mode 842 fs/ext4/ialloc.c inode->i_mode = mode; mode 846 fs/ext4/ialloc.c inode_init_owner(inode, dir, mode); mode 868 fs/ext4/ialloc.c if (S_ISDIR(mode)) mode 869 fs/ext4/ialloc.c ret2 = find_group_orlov(sb, dir, &group, mode, qstr); mode 871 fs/ext4/ialloc.c ret2 = find_group_other(sb, dir, &group, mode); mode 1052 fs/ext4/ialloc.c if (S_ISDIR(mode)) { mode 1076 fs/ext4/ialloc.c if (S_ISDIR(mode)) mode 1097 fs/ext4/ialloc.c ext4_mask_flags(mode, EXT4_I(dir)->i_flags & EXT4_FL_INHERITED); mode 1167 fs/ext4/ialloc.c if (S_ISDIR(mode) || S_ISREG(mode) || S_ISLNK(mode)) { mode 1185 fs/ext4/ialloc.c trace_ext4_allocate_inode(inode, dir, mode); mode 2581 fs/ext4/namei.c static int ext4_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 2595 fs/ext4/namei.c inode = ext4_new_inode_start_handle(dir, mode, &dentry->d_name, 0, mode 2615 fs/ext4/namei.c umode_t mode, dev_t rdev) mode 2628 fs/ext4/namei.c inode = ext4_new_inode_start_handle(dir, mode, &dentry->d_name, 0, mode 2646 fs/ext4/namei.c static int ext4_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) mode 2657 fs/ext4/namei.c inode = ext4_new_inode_start_handle(dir, mode, mode 2755 fs/ext4/namei.c static int ext4_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 2771 fs/ext4/namei.c inode = ext4_new_inode_start_handle(dir, S_IFDIR | mode, mode 139 fs/ext4/sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ mode 149 fs/ext4/sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ mode 165 fs/ext4/sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ mode 210 fs/f2fs/acl.c umode_t mode = inode->i_mode; mode 216 fs/f2fs/acl.c error = posix_acl_update_mode(inode, &mode, &acl); mode 219 fs/f2fs/acl.c set_acl_inode(inode, mode); mode 282 fs/f2fs/acl.c umode_t mode = *mode_p; mode 290 fs/f2fs/acl.c pa->e_perm &= (mode >> 6) | ~S_IRWXO; mode 291 fs/f2fs/acl.c mode &= (pa->e_perm << 6) | ~S_IRWXU; mode 304 fs/f2fs/acl.c pa->e_perm &= mode | ~S_IRWXO; mode 305 fs/f2fs/acl.c mode &= pa->e_perm | ~S_IRWXO; mode 319 fs/f2fs/acl.c mask_obj->e_perm &= (mode >> 3) | ~S_IRWXO; mode 320 fs/f2fs/acl.c mode &= (mask_obj->e_perm << 3) | ~S_IRWXG; mode 324 fs/f2fs/acl.c group_obj->e_perm &= (mode >> 3) | ~S_IRWXO; mode 325 fs/f2fs/acl.c mode &= (group_obj->e_perm << 3) | ~S_IRWXG; mode 328 fs/f2fs/acl.c *mode_p = (*mode_p & ~S_IRWXUGO) | mode; mode 332 fs/f2fs/acl.c static int f2fs_acl_create(struct inode *dir, umode_t *mode, mode 343 fs/f2fs/acl.c if (S_ISLNK(*mode) || !IS_POSIXACL(dir)) mode 348 fs/f2fs/acl.c *mode &= ~current_umask(); mode 360 fs/f2fs/acl.c ret = f2fs_acl_create_masq(clone, mode); mode 369 fs/f2fs/acl.c if (!S_ISDIR(*mode)) mode 524 fs/f2fs/checkpoint.c bool f2fs_exist_written_data(struct f2fs_sb_info *sbi, nid_t ino, int mode) mode 526 fs/f2fs/checkpoint.c struct inode_management *im = &sbi->im[mode]; mode 1146 fs/f2fs/data.c int mode = map->m_may_create ? ALLOC_NODE : LOOKUP_NODE; mode 1189 fs/f2fs/data.c err = f2fs_get_dnode_of_data(&dn, pgofs, mode); mode 2979 fs/f2fs/data.c struct page *newpage, struct page *page, enum migrate_mode mode) mode 2989 fs/f2fs/data.c if (mode != MIGRATE_SYNC) mode 3022 fs/f2fs/data.c if (mode != MIGRATE_SYNC_NO_COPY) mode 61 fs/f2fs/dir.c static void set_de_type(struct f2fs_dir_entry *de, umode_t mode) mode 63 fs/f2fs/dir.c de->file_type = f2fs_type_by_mode[(mode & S_IFMT) >> S_SHIFT]; mode 581 fs/f2fs/dir.c void f2fs_update_dentry(nid_t ino, umode_t mode, struct f2fs_dentry_ptr *d, mode 594 fs/f2fs/dir.c set_de_type(de, mode); mode 605 fs/f2fs/dir.c struct inode *inode, nid_t ino, umode_t mode) mode 679 fs/f2fs/dir.c f2fs_update_dentry(ino, mode, &d, new_name, dentry_hash, bit_pos); mode 704 fs/f2fs/dir.c struct inode *inode, nid_t ino, umode_t mode) mode 714 fs/f2fs/dir.c inode, ino, mode); mode 717 fs/f2fs/dir.c inode, ino, mode); mode 728 fs/f2fs/dir.c struct inode *inode, nid_t ino, umode_t mode) mode 756 fs/f2fs/dir.c err = f2fs_add_dentry(dir, &fname, inode, ino, mode); mode 2393 fs/f2fs/f2fs.h static inline __u32 f2fs_mask_flags(umode_t mode, __u32 flags) mode 2395 fs/f2fs/f2fs.h if (S_ISDIR(mode)) mode 2397 fs/f2fs/f2fs.h else if (S_ISREG(mode)) mode 2481 fs/f2fs/f2fs.h static inline void set_acl_inode(struct inode *inode, umode_t mode) mode 2483 fs/f2fs/f2fs.h F2FS_I(inode)->i_acl_mode = mode; mode 2994 fs/f2fs/f2fs.h void f2fs_update_dentry(nid_t ino, umode_t mode, struct f2fs_dentry_ptr *d, mode 2999 fs/f2fs/f2fs.h struct inode *inode, nid_t ino, umode_t mode); mode 3001 fs/f2fs/f2fs.h struct inode *inode, nid_t ino, umode_t mode); mode 3003 fs/f2fs/f2fs.h struct inode *inode, nid_t ino, umode_t mode); mode 3051 fs/f2fs/f2fs.h int f2fs_get_dnode_of_data(struct dnode_of_data *dn, pgoff_t index, int mode); mode 3174 fs/f2fs/f2fs.h bool f2fs_exist_written_data(struct f2fs_sb_info *sbi, nid_t ino, int mode); mode 3238 fs/f2fs/f2fs.h struct page *page, enum migrate_mode mode); mode 3507 fs/f2fs/f2fs.h struct inode *inode, nid_t ino, umode_t mode); mode 3685 fs/f2fs/f2fs.h umode_t mode = inode->i_mode; mode 3687 fs/f2fs/f2fs.h return (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)); mode 762 fs/f2fs/file.c umode_t mode = attr->ia_mode; mode 765 fs/f2fs/file.c mode &= ~S_ISGID; mode 766 fs/f2fs/file.c set_acl_inode(inode, mode); mode 1333 fs/f2fs/file.c int mode) mode 1432 fs/f2fs/file.c if (mode & FALLOC_FL_KEEP_SIZE) mode 1514 fs/f2fs/file.c loff_t len, int mode) mode 1565 fs/f2fs/file.c if (mode & FALLOC_FL_KEEP_SIZE) mode 1574 fs/f2fs/file.c static long f2fs_fallocate(struct file *file, int mode, mode 1590 fs/f2fs/file.c (mode & (FALLOC_FL_COLLAPSE_RANGE | FALLOC_FL_INSERT_RANGE))) mode 1593 fs/f2fs/file.c if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE | mode 1600 fs/f2fs/file.c if (mode & FALLOC_FL_PUNCH_HOLE) { mode 1605 fs/f2fs/file.c } else if (mode & FALLOC_FL_COLLAPSE_RANGE) { mode 1607 fs/f2fs/file.c } else if (mode & FALLOC_FL_ZERO_RANGE) { mode 1608 fs/f2fs/file.c ret = f2fs_zero_range(inode, offset, len, mode); mode 1609 fs/f2fs/file.c } else if (mode & FALLOC_FL_INSERT_RANGE) { mode 1612 fs/f2fs/file.c ret = expand_inode_data(inode, offset, len, mode); mode 1624 fs/f2fs/file.c trace_f2fs_fallocate(inode, mode, offset, len, ret); mode 544 fs/f2fs/inline.c struct inode *inode, nid_t ino, umode_t mode) mode 585 fs/f2fs/inline.c f2fs_update_dentry(ino, mode, &d, new_name, name_hash, bit_pos); mode 25 fs/f2fs/namei.c static struct inode *f2fs_new_inode(struct inode *dir, umode_t mode) mode 48 fs/f2fs/namei.c inode_init_owner(inode, dir, mode); mode 114 fs/f2fs/namei.c f2fs_mask_flags(mode, F2FS_I(dir)->i_flags & F2FS_FL_INHERITED); mode 265 fs/f2fs/namei.c static int f2fs_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 282 fs/f2fs/namei.c inode = f2fs_new_inode(dir, mode); mode 662 fs/f2fs/namei.c static int f2fs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 675 fs/f2fs/namei.c inode = f2fs_new_inode(dir, S_IFDIR | mode); mode 716 fs/f2fs/namei.c umode_t mode, dev_t rdev) mode 731 fs/f2fs/namei.c inode = f2fs_new_inode(dir, mode); mode 759 fs/f2fs/namei.c umode_t mode, struct inode **whiteout) mode 769 fs/f2fs/namei.c inode = f2fs_new_inode(dir, mode); mode 819 fs/f2fs/namei.c static int f2fs_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) mode 834 fs/f2fs/namei.c return __f2fs_tmpfile(dir, dentry, mode, NULL); mode 722 fs/f2fs/node.c int f2fs_get_dnode_of_data(struct dnode_of_data *dn, pgoff_t index, int mode) mode 763 fs/f2fs/node.c if (!nids[i] && mode == ALLOC_NODE) { mode 781 fs/f2fs/node.c } else if (mode == LOOKUP_NODE_RA && i == level && level > 1) { mode 416 fs/f2fs/sysfs.c .attr = {.name = __stringify(_name), .mode = _mode }, \ mode 433 fs/f2fs/sysfs.c .attr = {.name = __stringify(_name), .mode = 0444 }, \ mode 204 fs/fat/fat.h u8 attrs, umode_t mode) mode 207 fs/fat/fat.h mode &= ~S_IWUGO; mode 210 fs/fat/fat.h return (mode & ~sbi->options.fs_dmask) | S_IFDIR; mode 212 fs/fat/fat.h return (mode & ~sbi->options.fs_fmask) | S_IFREG; mode 21 fs/fat/file.c static long fat_fallocate(struct file *file, int mode, mode 270 fs/fat/file.c static long fat_fallocate(struct file *file, int mode, mode 282 fs/fat/file.c if (mode & ~FALLOC_FL_KEEP_SIZE) mode 290 fs/fat/file.c if (mode & FALLOC_FL_KEEP_SIZE) { mode 264 fs/fat/namei_msdos.c static int msdos_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 342 fs/fat/namei_msdos.c static int msdos_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 759 fs/fat/namei_vfat.c static int vfat_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 849 fs/fat/namei_vfat.c static int vfat_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 259 fs/file_table.c fmode_t mode = file->f_mode; mode 282 fs/file_table.c !(mode & FMODE_PATH))) { mode 287 fs/file_table.c if ((mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) mode 289 fs/file_table.c if (mode & FMODE_WRITER) { mode 294 fs/file_table.c if (unlikely(mode & FMODE_NEED_UNMOUNT)) mode 77 fs/fs_types.c unsigned char fs_umode_to_ftype(umode_t mode) mode 79 fs/fs_types.c return fs_ftype_by_dtype[S_DT(mode)]; mode 101 fs/fs_types.c unsigned char fs_umode_to_dtype(umode_t mode) mode 103 fs/fs_types.c return fs_ftype_to_dtype(fs_umode_to_ftype(mode)); mode 72 fs/fscache/main.c .mode = 0644, mode 80 fs/fscache/main.c .mode = 0644, mode 90 fs/fscache/main.c .mode = 0555, mode 223 fs/fuse/control.c int mode, int nlink, mode 242 fs/fuse/control.c inode->i_mode = mode; mode 252 fs/fuse/dir.c (outarg.attr.mode ^ inode->i_mode) & S_IFMT) mode 325 fs/fuse/dir.c return !fuse_valid_type(attr->mode) || mode 433 fs/fuse/dir.c umode_t mode) mode 447 fs/fuse/dir.c BUG_ON((mode & S_IFMT) != S_IFREG); mode 460 fs/fuse/dir.c mode &= ~current_umask(); mode 466 fs/fuse/dir.c inarg.mode = mode; mode 485 fs/fuse/dir.c if (!S_ISREG(outentry.attr.mode) || invalid_nodeid(outentry.nodeid) || mode 526 fs/fuse/dir.c umode_t mode) mode 550 fs/fuse/dir.c err = fuse_create_open(dir, entry, file, flags, mode); mode 560 fs/fuse/dir.c err = fuse_mknod(dir, entry, mode, 0); mode 572 fs/fuse/dir.c umode_t mode) mode 597 fs/fuse/dir.c if ((outarg.attr.mode ^ mode) & S_IFMT) mode 627 fs/fuse/dir.c static int fuse_mknod(struct inode *dir, struct dentry *entry, umode_t mode, mode 635 fs/fuse/dir.c mode &= ~current_umask(); mode 638 fs/fuse/dir.c inarg.mode = mode; mode 647 fs/fuse/dir.c return create_new_entry(fc, &args, dir, entry, mode); mode 650 fs/fuse/dir.c static int fuse_create(struct inode *dir, struct dentry *entry, umode_t mode, mode 653 fs/fuse/dir.c return fuse_mknod(dir, entry, mode, 0); mode 656 fs/fuse/dir.c static int fuse_mkdir(struct inode *dir, struct dentry *entry, umode_t mode) mode 663 fs/fuse/dir.c mode &= ~current_umask(); mode 666 fs/fuse/dir.c inarg.mode = mode; mode 901 fs/fuse/dir.c stat->mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777); mode 955 fs/fuse/dir.c (inode->i_mode ^ outarg.attr.mode) & S_IFMT) { mode 991 fs/fuse/dir.c stat->mode = fi->orig_i_mode; mode 1366 fs/fuse/dir.c arg->valid |= FATTR_MODE, arg->mode = iattr->ia_mode; mode 1577 fs/fuse/dir.c (inode->i_mode ^ outarg.attr.mode) & S_IFMT) { mode 3168 fs/fuse/file.c static long fuse_file_fallocate(struct file *file, int mode, loff_t offset, mode 3180 fs/fuse/file.c .mode = mode mode 3183 fs/fuse/file.c bool lock_inode = !(mode & FALLOC_FL_KEEP_SIZE) || mode 3184 fs/fuse/file.c (mode & FALLOC_FL_PUNCH_HOLE); mode 3186 fs/fuse/file.c if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) mode 3194 fs/fuse/file.c if (mode & FALLOC_FL_PUNCH_HOLE) { mode 3203 fs/fuse/file.c if (!(mode & FALLOC_FL_KEEP_SIZE) && mode 3210 fs/fuse/file.c if (!(mode & FALLOC_FL_KEEP_SIZE)) mode 3227 fs/fuse/file.c if (!(mode & FALLOC_FL_KEEP_SIZE)) { mode 3234 fs/fuse/file.c if (mode & FALLOC_FL_PUNCH_HOLE) mode 3240 fs/fuse/file.c if (!(mode & FALLOC_FL_KEEP_SIZE)) mode 158 fs/fuse/inode.c inode->i_mode = (inode->i_mode & S_IFMT) | (attr->mode & 07777); mode 247 fs/fuse/inode.c inode->i_mode = attr->mode & S_IFMT; mode 300 fs/fuse/inode.c if (!fc->writeback_cache || !S_ISREG(attr->mode)) mode 305 fs/fuse/inode.c } else if ((inode->i_mode ^ attr->mode) & S_IFMT) { mode 654 fs/fuse/inode.c static struct inode *fuse_get_root_inode(struct super_block *sb, unsigned mode) mode 659 fs/fuse/inode.c attr.mode = mode; mode 205 fs/fuse/readdir.c ((o->attr.mode ^ inode->i_mode) & S_IFMT)) { mode 114 fs/gfs2/acl.c umode_t mode; mode 130 fs/gfs2/acl.c mode = inode->i_mode; mode 132 fs/gfs2/acl.c ret = posix_acl_update_mode(inode, &mode, &acl); mode 138 fs/gfs2/acl.c if (!ret && mode != inode->i_mode) { mode 140 fs/gfs2/acl.c inode->i_mode = mode; mode 911 fs/gfs2/file.c int mode) mode 986 fs/gfs2/file.c static long __gfs2_fallocate(struct file *file, int mode, loff_t offset, loff_t len) mode 1073 fs/gfs2/file.c error = fallocate_chunk(inode, offset, max_bytes, mode); mode 1085 fs/gfs2/file.c if (!(mode & FALLOC_FL_KEEP_SIZE) && (pos + count) > inode->i_size) mode 1102 fs/gfs2/file.c static long gfs2_fallocate(struct file *file, int mode, loff_t offset, loff_t len) mode 1110 fs/gfs2/file.c if (mode & ~(FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE)) mode 1123 fs/gfs2/file.c if (!(mode & FALLOC_FL_KEEP_SIZE) && mode 1134 fs/gfs2/file.c if (mode & FALLOC_FL_PUNCH_HOLE) { mode 1141 fs/gfs2/file.c ret = __gfs2_fallocate(file, mode, offset, len); mode 90 fs/gfs2/glock.c static int glock_wake_function(wait_queue_entry_t *wait, unsigned int mode, mode 102 fs/gfs2/glock.c return autoremove_wake_function(wait, mode, sync, key); mode 80 fs/gfs2/inode.c umode_t mode = inode->i_mode; mode 82 fs/gfs2/inode.c if (S_ISREG(mode)) { mode 88 fs/gfs2/inode.c } else if (S_ISDIR(mode)) { mode 94 fs/gfs2/inode.c } else if (S_ISLNK(mode)) { mode 330 fs/gfs2/inode.c umode_t mode) mode 344 fs/gfs2/inode.c if (S_ISDIR(mode) && dip->i_inode.i_nlink == (u32)-1) mode 579 fs/gfs2/inode.c umode_t mode, dev_t dev, const char *symname, mode 610 fs/gfs2/inode.c error = create_ok(dip, name, mode); mode 614 fs/gfs2/inode.c inode = gfs2_dir_search(dir, &dentry->d_name, !S_ISREG(mode) || excl); mode 645 fs/gfs2/inode.c error = posix_acl_create(dir, &mode, &default_acl, &acl); mode 654 fs/gfs2/inode.c inode->i_mode = mode; mode 655 fs/gfs2/inode.c set_nlink(inode, S_ISDIR(mode) ? 2 : 1); mode 670 fs/gfs2/inode.c switch(mode & S_IFMT) { mode 820 fs/gfs2/inode.c umode_t mode, bool excl) mode 822 fs/gfs2/inode.c return gfs2_create_inode(dir, dentry, NULL, S_IFREG | mode, 0, NULL, 0, excl); mode 1200 fs/gfs2/inode.c static int gfs2_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 1203 fs/gfs2/inode.c return gfs2_create_inode(dir, dentry, NULL, S_IFDIR | mode, 0, NULL, dsize, 0); mode 1215 fs/gfs2/inode.c static int gfs2_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, mode 1218 fs/gfs2/inode.c return gfs2_create_inode(dir, dentry, NULL, mode, dev, NULL, 0, 0); mode 1234 fs/gfs2/inode.c umode_t mode) mode 1260 fs/gfs2/inode.c return gfs2_create_inode(dir, dentry, file, S_IFREG | mode, 0, NULL, 0, excl); mode 163 fs/gfs2/lock_dlm.c static void gdlm_bast(void *arg, int mode) mode 167 fs/gfs2/lock_dlm.c switch (mode) { mode 178 fs/gfs2/lock_dlm.c fs_err(gl->gl_name.ln_sbd, "unknown bast mode %d\n", mode); mode 517 fs/gfs2/lock_dlm.c static int sync_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags, mode 527 fs/gfs2/lock_dlm.c error = dlm_lock(ls->ls_dlm, mode, lksb, flags, mode 532 fs/gfs2/lock_dlm.c name, lksb->sb_lkid, flags, mode, error); mode 542 fs/gfs2/lock_dlm.c name, lksb->sb_lkid, flags, mode, status); mode 554 fs/gfs2/lock_dlm.c static int mounted_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags) mode 557 fs/gfs2/lock_dlm.c return sync_lock(sdp, mode, flags, GFS2_MOUNTED_LOCK, mode 567 fs/gfs2/lock_dlm.c static int control_lock(struct gfs2_sbd *sdp, int mode, uint32_t flags) mode 570 fs/gfs2/lock_dlm.c return sync_lock(sdp, mode, flags, GFS2_CONTROL_LOCK, mode 233 fs/gfs2/sys.c char mode[16]; mode 240 fs/gfs2/sys.c mode); mode 244 fs/gfs2/sys.c if (strcmp(mode, "EX") == 0) mode 246 fs/gfs2/sys.c else if ((strcmp(mode, "CW") == 0) || (strcmp(mode, "DF") == 0)) mode 248 fs/gfs2/sys.c else if ((strcmp(mode, "PR") == 0) || (strcmp(mode, "SH") == 0)) mode 272 fs/gfs2/sys.c #define GFS2_ATTR(name, mode, show, store) \ mode 273 fs/gfs2/sys.c static struct gfs2_attr gfs2_attr_##name = __ATTR(name, mode, show, store) mode 192 fs/hfs/dir.c static int hfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 198 fs/hfs/dir.c inode = hfs_new_inode(dir, &dentry->d_name, mode); mode 222 fs/hfs/dir.c static int hfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 227 fs/hfs/dir.c inode = hfs_new_inode(dir, &dentry->d_name, S_IFDIR | mode); mode 182 fs/hfs/inode.c struct inode *hfs_new_inode(struct inode *dir, const struct qstr *name, umode_t mode) mode 194 fs/hfs/inode.c inode->i_mode = mode; mode 202 fs/hfs/inode.c if (S_ISDIR(mode)) { mode 211 fs/hfs/inode.c } else if (S_ISREG(mode)) { mode 220 fs/hfs/inode.c if (mode & S_IWUSR) mode 93 fs/hfsplus/catalog.c perms->mode = cpu_to_be16(inode->i_mode); mode 225 fs/hfsplus/dir.c u16 mode; mode 234 fs/hfsplus/dir.c mode = be16_to_cpu(entry.file.permissions.mode); mode 235 fs/hfsplus/dir.c if (S_ISREG(mode)) mode 237 fs/hfsplus/dir.c else if (S_ISLNK(mode)) mode 239 fs/hfsplus/dir.c else if (S_ISFIFO(mode)) mode 241 fs/hfsplus/dir.c else if (S_ISCHR(mode)) mode 243 fs/hfsplus/dir.c else if (S_ISBLK(mode)) mode 245 fs/hfsplus/dir.c else if (S_ISSOCK(mode)) mode 480 fs/hfsplus/dir.c umode_t mode, dev_t rdev) mode 487 fs/hfsplus/dir.c inode = hfsplus_new_inode(dir->i_sb, dir, mode); mode 491 fs/hfsplus/dir.c if (S_ISBLK(mode) || S_ISCHR(mode) || S_ISFIFO(mode) || S_ISSOCK(mode)) mode 492 fs/hfsplus/dir.c init_special_inode(inode, mode, rdev); mode 520 fs/hfsplus/dir.c static int hfsplus_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 523 fs/hfsplus/dir.c return hfsplus_mknod(dir, dentry, mode, 0); mode 526 fs/hfsplus/dir.c static int hfsplus_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 528 fs/hfsplus/dir.c return hfsplus_mknod(dir, dentry, mode | S_IFDIR, 0); mode 483 fs/hfsplus/hfsplus_fs.h umode_t mode); mode 80 fs/hfsplus/hfsplus_raw.h __be16 mode; mode 185 fs/hfsplus/inode.c u16 mode; mode 187 fs/hfsplus/inode.c mode = be16_to_cpu(perms->mode); mode 190 fs/hfsplus/inode.c if (!i_uid_read(inode) && !mode) mode 194 fs/hfsplus/inode.c if (!i_gid_read(inode) && !mode) mode 198 fs/hfsplus/inode.c mode = mode ? (mode & S_IALLUGO) : (S_IRWXUGO & ~(sbi->umask)); mode 199 fs/hfsplus/inode.c mode |= S_IFDIR; mode 200 fs/hfsplus/inode.c } else if (!mode) mode 201 fs/hfsplus/inode.c mode = S_IFREG | ((S_IRUGO|S_IWUGO) & ~(sbi->umask)); mode 202 fs/hfsplus/inode.c inode->i_mode = mode; mode 369 fs/hfsplus/inode.c umode_t mode) mode 379 fs/hfsplus/inode.c inode_init_owner(inode, dir, mode); mode 54 fs/hostfs/hostfs.h unsigned int mode; mode 82 fs/hostfs/hostfs.h extern int file_create(char *name, int mode); mode 86 fs/hostfs/hostfs.h extern int do_mkdir(const char *file, int mode); mode 88 fs/hostfs/hostfs.h extern int do_mknod(const char *file, int mode, unsigned int major, mode 25 fs/hostfs/hostfs_kern.c fmode_t mode; mode 230 fs/hostfs/hostfs_kern.c hi->mode = 0; mode 302 fs/hostfs/hostfs_kern.c fmode_t mode; mode 306 fs/hostfs/hostfs_kern.c mode = file->f_mode & (FMODE_READ | FMODE_WRITE); mode 307 fs/hostfs/hostfs_kern.c if ((mode & HOSTFS_I(ino)->mode) == mode) mode 310 fs/hostfs/hostfs_kern.c mode |= HOSTFS_I(ino)->mode; mode 315 fs/hostfs/hostfs_kern.c if (mode & FMODE_READ) mode 317 fs/hostfs/hostfs_kern.c if (mode & FMODE_WRITE) mode 331 fs/hostfs/hostfs_kern.c if ((mode & HOSTFS_I(ino)->mode) == mode) { mode 336 fs/hostfs/hostfs_kern.c if ((mode | HOSTFS_I(ino)->mode) != mode) { mode 337 fs/hostfs/hostfs_kern.c mode |= HOSTFS_I(ino)->mode; mode 352 fs/hostfs/hostfs_kern.c HOSTFS_I(ino)->mode = mode; mode 523 fs/hostfs/hostfs_kern.c switch (st.mode & S_IFMT) { mode 535 fs/hostfs/hostfs_kern.c init_special_inode(ino, st.mode & S_IFMT, rdev); mode 548 fs/hostfs/hostfs_kern.c ino->i_mode = st.mode; mode 560 fs/hostfs/hostfs_kern.c static int hostfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 578 fs/hostfs/hostfs_kern.c fd = file_create(name, mode & 0777); mode 589 fs/hostfs/hostfs_kern.c HOSTFS_I(inode)->mode = FMODE_READ | FMODE_WRITE; mode 672 fs/hostfs/hostfs_kern.c static int hostfs_mkdir(struct inode *ino, struct dentry *dentry, umode_t mode) mode 679 fs/hostfs/hostfs_kern.c err = do_mkdir(file, mode); mode 696 fs/hostfs/hostfs_kern.c static int hostfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) mode 713 fs/hostfs/hostfs_kern.c init_special_inode(inode, mode, dev); mode 714 fs/hostfs/hostfs_kern.c err = do_mknod(name, mode, MAJOR(dev), MINOR(dev)); mode 24 fs/hostfs/hostfs_user.c p->mode = buf->st_mode; mode 57 fs/hostfs/hostfs_user.c int mode = 0; mode 60 fs/hostfs/hostfs_user.c mode = R_OK; mode 62 fs/hostfs/hostfs_user.c mode |= W_OK; mode 64 fs/hostfs/hostfs_user.c mode |= X_OK; mode 65 fs/hostfs/hostfs_user.c if (access(path, mode) != 0) mode 72 fs/hostfs/hostfs_user.c int mode = 0, fd; mode 75 fs/hostfs/hostfs_user.c mode = O_RDONLY; mode 77 fs/hostfs/hostfs_user.c mode = O_WRONLY; mode 79 fs/hostfs/hostfs_user.c mode = O_RDWR; mode 83 fs/hostfs/hostfs_user.c mode |= O_APPEND; mode 84 fs/hostfs/hostfs_user.c fd = open64(path, mode); mode 184 fs/hostfs/hostfs_user.c int file_create(char *name, int mode) mode 188 fs/hostfs/hostfs_user.c fd = open64(name, O_CREAT | O_RDWR, mode); mode 297 fs/hostfs/hostfs_user.c int do_mkdir(const char *file, int mode) mode 301 fs/hostfs/hostfs_user.c err = mkdir(file, mode); mode 317 fs/hostfs/hostfs_user.c int do_mknod(const char *file, int mode, unsigned int major, unsigned int minor) mode 321 fs/hostfs/hostfs_user.c err = mknod(file, mode, os_makedev(major, minor)); mode 91 fs/hpfs/inode.c umode_t mode = hpfs_sb(sb)->sb_mode; mode 93 fs/hpfs/inode.c mode = le16_to_cpu(*(__le16*)ea); mode 97 fs/hpfs/inode.c i->i_mode = mode; mode 98 fs/hpfs/inode.c if (S_ISBLK(mode) || S_ISCHR(mode)) { mode 105 fs/hpfs/inode.c if (S_ISBLK(mode) || S_ISCHR(mode) || S_ISFIFO(mode) || S_ISSOCK(mode)) { mode 110 fs/hpfs/inode.c init_special_inode(i, mode, mode 23 fs/hpfs/namei.c static int hpfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 49 fs/hpfs/namei.c if (!(mode & 0222)) dee.read_only = 1; mode 95 fs/hpfs/namei.c if (!(mode & 0222)) de->read_only = 1; mode 108 fs/hpfs/namei.c result->i_mode != (mode | S_IFDIR)) { mode 111 fs/hpfs/namei.c result->i_mode = mode | S_IFDIR; mode 131 fs/hpfs/namei.c static int hpfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) mode 150 fs/hpfs/namei.c if (!(mode & 0222)) dee.read_only = 1; mode 197 fs/hpfs/namei.c result->i_mode != (mode | S_IFREG)) { mode 200 fs/hpfs/namei.c result->i_mode = mode | S_IFREG; mode 218 fs/hpfs/namei.c static int hpfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) mode 237 fs/hpfs/namei.c if (!(mode & 0222)) dee.read_only = 1; mode 260 fs/hpfs/namei.c init_special_inode(result, mode, rdev); mode 61 fs/hugetlbfs/inode.c umode_t mode; mode 570 fs/hugetlbfs/inode.c static long hugetlbfs_fallocate(struct file *file, int mode, loff_t offset, mode 585 fs/hugetlbfs/inode.c if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) mode 588 fs/hugetlbfs/inode.c if (mode & FALLOC_FL_PUNCH_HOLE) mode 686 fs/hugetlbfs/inode.c if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + len > inode->i_size) mode 736 fs/hugetlbfs/inode.c inode->i_mode = S_IFDIR | ctx->mode; mode 759 fs/hugetlbfs/inode.c umode_t mode, dev_t dev) mode 768 fs/hugetlbfs/inode.c if (S_ISREG(mode) || S_ISLNK(mode)) { mode 779 fs/hugetlbfs/inode.c inode_init_owner(inode, dir, mode); mode 786 fs/hugetlbfs/inode.c switch (mode & S_IFMT) { mode 788 fs/hugetlbfs/inode.c init_special_inode(inode, mode, dev); mode 819 fs/hugetlbfs/inode.c struct dentry *dentry, umode_t mode, dev_t dev) mode 824 fs/hugetlbfs/inode.c inode = hugetlbfs_get_inode(dir->i_sb, dir, mode, dev); mode 834 fs/hugetlbfs/inode.c static int hugetlbfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 836 fs/hugetlbfs/inode.c int retval = hugetlbfs_mknod(dir, dentry, mode | S_IFDIR, 0); mode 842 fs/hugetlbfs/inode.c static int hugetlbfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) mode 844 fs/hugetlbfs/inode.c return hugetlbfs_mknod(dir, dentry, mode | S_IFREG, 0); mode 881 fs/hugetlbfs/inode.c enum migrate_mode mode) mode 900 fs/hugetlbfs/inode.c if (mode != MIGRATE_SYNC_NO_COPY) mode 938 fs/hugetlbfs/inode.c if (sbinfo->mode != 0755) mode 939 fs/hugetlbfs/inode.c seq_printf(m, ",mode=%o", sbinfo->mode); mode 1172 fs/hugetlbfs/inode.c ctx->mode = result.uint_32 & 01777U; mode 1267 fs/hugetlbfs/inode.c sbinfo->mode = ctx->mode; mode 1328 fs/hugetlbfs/inode.c ctx->mode = 0755; mode 1777 fs/inode.c umode_t mode = d_inode(dentry)->i_mode; mode 1781 fs/inode.c if (unlikely(mode & S_ISUID)) mode 1788 fs/inode.c if (unlikely((mode & S_ISGID) && (mode & S_IXGRP))) mode 1791 fs/inode.c if (unlikely(kill && !capable(CAP_FSETID) && S_ISREG(mode))) mode 2026 fs/inode.c void init_special_inode(struct inode *inode, umode_t mode, dev_t rdev) mode 2028 fs/inode.c inode->i_mode = mode; mode 2029 fs/inode.c if (S_ISCHR(mode)) { mode 2032 fs/inode.c } else if (S_ISBLK(mode)) { mode 2035 fs/inode.c } else if (S_ISFIFO(mode)) mode 2037 fs/inode.c else if (S_ISSOCK(mode)) mode 2041 fs/inode.c " inode %s:%lu\n", mode, inode->i_sb->s_id, mode 2053 fs/inode.c umode_t mode) mode 2060 fs/inode.c if (S_ISDIR(mode)) mode 2061 fs/inode.c mode |= S_ISGID; mode 2062 fs/inode.c else if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP) && mode 2065 fs/inode.c mode &= ~S_ISGID; mode 2068 fs/inode.c inode->i_mode = mode; mode 67 fs/internal.h long do_mknodat(int dfd, const char __user *filename, umode_t mode, mode 69 fs/internal.h long do_mkdirat(int dfd, const char __user *pathname, umode_t mode); mode 118 fs/internal.h umode_t mode; mode 129 fs/internal.h long do_faccessat(int dfd, const char __user *filename, int mode); mode 130 fs/internal.h int do_fchmodat(int dfd, const char __user *filename, umode_t mode); mode 1065 fs/io_uring.c umode_t mode = file_inode(file)->i_mode; mode 1067 fs/io_uring.c if (S_ISBLK(mode) || S_ISCHR(mode)) mode 1069 fs/io_uring.c if (S_ISREG(mode) && file->f_op != &io_uring_fops) mode 1826 fs/io_uring.c static int io_poll_wake(struct wait_queue_entry *wait, unsigned mode, int sync, mode 2954 fs/io_uring.c static int io_wake_function(struct wait_queue_entry *curr, unsigned int mode, mode 2963 fs/io_uring.c return autoremove_wake_function(curr, mode, wake_flags, key); mode 488 fs/iomap/buffered-io.c struct page *page, enum migrate_mode mode) mode 505 fs/iomap/buffered-io.c if (mode != MIGRATE_SYNC_NO_COPY) mode 386 fs/isofs/rock.c inode->i_mode = isonum_733(rr->u.PX.mode); mode 33 fs/isofs/rock.h __u8 mode[8]; mode 237 fs/jffs2/acl.c umode_t mode; mode 239 fs/jffs2/acl.c rc = posix_acl_update_mode(inode, &mode, &acl); mode 242 fs/jffs2/acl.c if (inode->i_mode != mode) { mode 246 fs/jffs2/acl.c attr.ia_mode = mode; mode 39 fs/jffs2/acl.h #define jffs2_init_acl_pre(dir_i,inode,mode) (0) mode 153 fs/jffs2/compr.c int mode, compr_ret; mode 160 fs/jffs2/compr.c mode = c->mount_opts.compr; mode 162 fs/jffs2/compr.c mode = jffs2_compression_mode; mode 164 fs/jffs2/compr.c switch (mode) { mode 816 fs/jffs2/debug.c printk(JFFS2_DBG "mode:\t%#08x\n", node.i.mode.m); mode 161 fs/jffs2/dir.c umode_t mode, bool excl) mode 177 fs/jffs2/dir.c inode = jffs2_new_inode(dir_i, mode, ri); mode 441 fs/jffs2/dir.c static int jffs2_mkdir (struct inode *dir_i, struct dentry *dentry, umode_t mode) mode 454 fs/jffs2/dir.c mode |= S_IFDIR; mode 474 fs/jffs2/dir.c inode = jffs2_new_inode(dir_i, mode, ri); mode 608 fs/jffs2/dir.c static int jffs2_mknod (struct inode *dir_i, struct dentry *dentry, umode_t mode, dev_t rdev) mode 629 fs/jffs2/dir.c if (S_ISBLK(mode) || S_ISCHR(mode)) mode 644 fs/jffs2/dir.c inode = jffs2_new_inode(dir_i, mode, ri); mode 719 fs/jffs2/dir.c rd->type = (mode & S_IFMT) >> 12; mode 174 fs/jffs2/file.c ri.mode = cpu_to_jemode(inode->i_mode); mode 282 fs/jffs2/file.c ri->mode = cpu_to_jemode(inode->i_mode); mode 110 fs/jffs2/fs.c ri->mode = cpu_to_jemode(iattr->ia_mode); mode 112 fs/jffs2/fs.c ri->mode = cpu_to_jemode(inode->i_mode); mode 153 fs/jffs2/fs.c inode->i_mode = jemode_to_cpu(ri->mode); mode 280 fs/jffs2/fs.c inode->i_mode = jemode_to_cpu(latest_node.mode); mode 422 fs/jffs2/fs.c struct inode *jffs2_new_inode (struct inode *dir_i, umode_t mode, struct jffs2_raw_inode *ri) mode 431 fs/jffs2/fs.c __func__, dir_i->i_ino, mode); mode 450 fs/jffs2/fs.c if (S_ISDIR(mode)) mode 451 fs/jffs2/fs.c mode |= S_ISGID; mode 458 fs/jffs2/fs.c ret = jffs2_init_acl_pre(dir_i, inode, &mode); mode 465 fs/jffs2/fs.c ret = jffs2_do_new_inode (c, f, mode, ri); mode 474 fs/jffs2/fs.c inode->i_mode = jemode_to_cpu(ri->mode); mode 820 fs/jffs2/gc.c ri.mode = cpu_to_jemode(JFFS2_F_I_MODE(f)); mode 1091 fs/jffs2/gc.c ri.mode = cpu_to_jemode(JFFS2_F_I_MODE(f)); mode 1369 fs/jffs2/gc.c ri.mode = cpu_to_jemode(JFFS2_F_I_MODE(f)); mode 396 fs/jffs2/nodelist.h int jffs2_do_new_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, uint32_t mode, struct jffs2_raw_inode *ri); mode 119 fs/jffs2/os-linux.h int jffs2_check_oob_empty(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb,int mode); mode 172 fs/jffs2/os-linux.h struct inode *jffs2_new_inode (struct inode *dir_i, umode_t mode, mode 1194 fs/jffs2/readinode.c latest_node->mode = cpu_to_jemode(S_IFDIR|S_IRUGO|S_IWUSR|S_IXUGO); mode 1220 fs/jffs2/readinode.c switch(jemode_to_cpu(latest_node->mode) & S_IFMT) { mode 1284 fs/jffs2/readinode.c f->inocache->ino, jemode_to_cpu(latest_node->mode)); mode 1289 fs/jffs2/readinode.c f->inocache->ino, jemode_to_cpu(latest_node->mode)); mode 1295 fs/jffs2/readinode.c f->inocache->ino, jemode_to_cpu(latest_node->mode)); mode 1034 fs/jffs2/wbuf.c struct jffs2_eraseblock *jeb, int mode) mode 1040 fs/jffs2/wbuf.c ops.mode = MTD_OPS_AUTO_OOB; mode 1056 fs/jffs2/wbuf.c if (mode && i < cmlen) mode 1082 fs/jffs2/wbuf.c ops.mode = MTD_OPS_AUTO_OOB; mode 1107 fs/jffs2/wbuf.c ops.mode = MTD_OPS_AUTO_OOB; mode 24 fs/jffs2/write.c uint32_t mode, struct jffs2_raw_inode *ri) mode 48 fs/jffs2/write.c ri->mode = cpu_to_jemode(mode); mode 468 fs/jffs2/write.c jemode_to_cpu(ri->mode)); mode 99 fs/jfs/acl.c umode_t mode = inode->i_mode; mode 104 fs/jfs/acl.c rc = posix_acl_update_mode(inode, &mode, &acl); mode 107 fs/jfs/acl.c if (mode != inode->i_mode) mode 113 fs/jfs/acl.c inode->i_mode = mode; mode 41 fs/jfs/jfs_inode.c struct inode *ialloc(struct inode *parent, umode_t mode) mode 56 fs/jfs/jfs_inode.c rc = diAlloc(parent, S_ISDIR(mode), inode); mode 67 fs/jfs/jfs_inode.c inode_init_owner(inode, parent, mode); mode 88 fs/jfs/jfs_inode.c if (S_ISDIR(mode)) { mode 94 fs/jfs/jfs_inode.c if (S_ISLNK(mode)) mode 62 fs/jfs/namei.c static int jfs_create(struct inode *dip, struct dentry *dentry, umode_t mode, mode 92 fs/jfs/namei.c ip = ialloc(dip, mode); mode 195 fs/jfs/namei.c static int jfs_mkdir(struct inode *dip, struct dentry *dentry, umode_t mode) mode 224 fs/jfs/namei.c ip = ialloc(dip, S_IFDIR | mode); mode 1348 fs/jfs/namei.c umode_t mode, dev_t rdev) mode 1369 fs/jfs/namei.c ip = ialloc(dir, mode); mode 619 fs/kernfs/dir.c const char *name, umode_t mode, mode 658 fs/kernfs/dir.c kn->mode = mode; mode 691 fs/kernfs/dir.c const char *name, umode_t mode, mode 698 fs/kernfs/dir.c name, mode, uid, gid, flags); mode 1014 fs/kernfs/dir.c const char *name, umode_t mode, mode 1022 fs/kernfs/dir.c kn = kernfs_new_node(parent, name, mode | S_IFDIR, mode 1111 fs/kernfs/dir.c umode_t mode) mode 1123 fs/kernfs/dir.c ret = scops->mkdir(parent, dentry->d_name.name, mode); mode 1601 fs/kernfs/dir.c return (kn->mode >> 12) & 15; mode 989 fs/kernfs/file.c umode_t mode, kuid_t uid, kgid_t gid, mode 1001 fs/kernfs/file.c kn = kernfs_new_node(parent, name, (mode & S_IALLUGO) | S_IFREG, mode 92 fs/kernfs/inode.c kn->mode = iattr->ia_mode; mode 151 fs/kernfs/inode.c static inline void set_default_inode_attr(struct inode *inode, umode_t mode) mode 153 fs/kernfs/inode.c inode->i_mode = mode; mode 172 fs/kernfs/inode.c inode->i_mode = kn->mode; mode 206 fs/kernfs/inode.c set_default_inode_attr(inode, kn->mode); mode 109 fs/kernfs/kernfs-internal.h const char *name, umode_t mode, mode 580 fs/libfs.c inode->i_mode = S_IFREG | files->mode; mode 550 fs/lockd/svc.c .mode = 0644, mode 559 fs/lockd/svc.c .mode = 0644, mode 568 fs/lockd/svc.c .mode = 0644, mode 577 fs/lockd/svc.c .mode = 0644, mode 586 fs/lockd/svc.c .mode = 0644, mode 593 fs/lockd/svc.c .mode = 0644, mode 602 fs/lockd/svc.c .mode = 0555, mode 611 fs/lockd/svc.c .mode = 0555, mode 1603 fs/locks.c int __break_lease(struct inode *inode, unsigned int mode, unsigned int type) mode 1609 fs/locks.c int want_write = (mode & O_ACCMODE) != O_RDONLY; mode 1660 fs/locks.c if (mode & O_NONBLOCK) { mode 213 fs/minix/bitmap.c struct inode *minix_new_inode(const struct inode *dir, umode_t mode, int *error) mode 255 fs/minix/bitmap.c inode_init_owner(inode, dir, mode); mode 36 fs/minix/namei.c static int minix_mknod(struct inode * dir, struct dentry *dentry, umode_t mode, dev_t rdev) mode 44 fs/minix/namei.c inode = minix_new_inode(dir, mode, &error); mode 54 fs/minix/namei.c static int minix_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) mode 57 fs/minix/namei.c struct inode *inode = minix_new_inode(dir, mode, &error); mode 66 fs/minix/namei.c static int minix_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 69 fs/minix/namei.c return minix_mknod(dir, dentry, mode, 0); mode 112 fs/minix/namei.c static int minix_mkdir(struct inode * dir, struct dentry *dentry, umode_t mode) mode 119 fs/minix/namei.c inode = minix_new_inode(dir, S_IFDIR | mode, &err); mode 295 fs/namei.c unsigned int mode = inode->i_mode; mode 298 fs/namei.c mode >>= 6; mode 300 fs/namei.c if (IS_POSIXACL(inode) && (mode & S_IRWXG)) { mode 307 fs/namei.c mode >>= 3; mode 313 fs/namei.c if ((mask & ~mode & (MAY_READ | MAY_WRITE | MAY_EXEC)) == 0) mode 405 fs/namei.c umode_t mode = inode->i_mode; mode 408 fs/namei.c if (sb_rdonly(sb) && (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode))) mode 946 fs/namei.c umode_t mode = inode->i_mode; mode 949 fs/namei.c if (!S_ISREG(mode)) mode 953 fs/namei.c if (mode & S_ISUID) mode 957 fs/namei.c if ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP)) mode 2889 fs/namei.c int vfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 2898 fs/namei.c mode &= S_IALLUGO; mode 2899 fs/namei.c mode |= S_IFREG; mode 2900 fs/namei.c error = security_inode_create(dir, dentry, mode); mode 2903 fs/namei.c error = dir->i_op->create(dir, dentry, mode, want_excl); mode 2910 fs/namei.c int vfs_mkobj(struct dentry *dentry, umode_t mode, mode 2919 fs/namei.c mode &= S_IALLUGO; mode 2920 fs/namei.c mode |= S_IFREG; mode 2921 fs/namei.c error = security_inode_create(dir, dentry, mode); mode 2924 fs/namei.c error = f(dentry, mode, arg); mode 3014 fs/namei.c static int may_o_create(const struct path *dir, struct dentry *dentry, umode_t mode) mode 3017 fs/namei.c int error = security_path_mknod(dir, dentry, mode, 0); mode 3030 fs/namei.c return security_inode_create(dir->dentry->d_inode, dentry, mode); mode 3049 fs/namei.c int open_flag, umode_t mode) mode 3064 fs/namei.c open_to_namei_flags(open_flag), mode); mode 3128 fs/namei.c umode_t mode = op->mode; mode 3170 fs/namei.c mode &= ~current_umask(); mode 3178 fs/namei.c create_error = may_o_create(&nd->path, dentry, mode); mode 3196 fs/namei.c mode); mode 3225 fs/namei.c error = dir_inode->i_op->create(dir_inode, dentry, mode, mode 3428 fs/namei.c struct dentry *vfs_tmpfile(struct dentry *dentry, umode_t mode, int open_flag) mode 3446 fs/namei.c error = dir->i_op->tmpfile(dir, child, mode); mode 3479 fs/namei.c child = vfs_tmpfile(path.dentry, op->mode, op->open_flag); mode 3691 fs/namei.c int vfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) mode 3698 fs/namei.c if ((S_ISCHR(mode) || S_ISBLK(mode)) && !capable(CAP_MKNOD)) mode 3704 fs/namei.c error = devcgroup_inode_mknod(mode, dev); mode 3708 fs/namei.c error = security_inode_mknod(dir, dentry, mode, dev); mode 3712 fs/namei.c error = dir->i_op->mknod(dir, dentry, mode, dev); mode 3719 fs/namei.c static int may_mknod(umode_t mode) mode 3721 fs/namei.c switch (mode & S_IFMT) { mode 3736 fs/namei.c long do_mknodat(int dfd, const char __user *filename, umode_t mode, mode 3744 fs/namei.c error = may_mknod(mode); mode 3753 fs/namei.c mode &= ~current_umask(); mode 3754 fs/namei.c error = security_path_mknod(&path, dentry, mode, dev); mode 3757 fs/namei.c switch (mode & S_IFMT) { mode 3759 fs/namei.c error = vfs_create(path.dentry->d_inode,dentry,mode,true); mode 3764 fs/namei.c error = vfs_mknod(path.dentry->d_inode,dentry,mode, mode 3768 fs/namei.c error = vfs_mknod(path.dentry->d_inode,dentry,mode,0); mode 3780 fs/namei.c SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, umode_t, mode, mode 3783 fs/namei.c return do_mknodat(dfd, filename, mode, dev); mode 3786 fs/namei.c SYSCALL_DEFINE3(mknod, const char __user *, filename, umode_t, mode, unsigned, dev) mode 3788 fs/namei.c return do_mknodat(AT_FDCWD, filename, mode, dev); mode 3791 fs/namei.c int vfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 3802 fs/namei.c mode &= (S_IRWXUGO|S_ISVTX); mode 3803 fs/namei.c error = security_inode_mkdir(dir, dentry, mode); mode 3810 fs/namei.c error = dir->i_op->mkdir(dir, dentry, mode); mode 3817 fs/namei.c long do_mkdirat(int dfd, const char __user *pathname, umode_t mode) mode 3830 fs/namei.c mode &= ~current_umask(); mode 3831 fs/namei.c error = security_path_mkdir(&path, dentry, mode); mode 3833 fs/namei.c error = vfs_mkdir(path.dentry->d_inode, dentry, mode); mode 3842 fs/namei.c SYSCALL_DEFINE3(mkdirat, int, dfd, const char __user *, pathname, umode_t, mode) mode 3844 fs/namei.c return do_mkdirat(dfd, pathname, mode); mode 3847 fs/namei.c SYSCALL_DEFINE2(mkdir, const char __user *, pathname, umode_t, mode) mode 3849 fs/namei.c return do_mkdirat(AT_FDCWD, pathname, mode); mode 520 fs/nfs/blocklayout/blocklayout.c u32 mode; /* R or RW */ mode 532 fs/nfs/blocklayout/blocklayout.c if (lv->mode == IOMODE_READ) { mode 672 fs/nfs/blocklayout/blocklayout.c .mode = lgr->range.iomode, mode 1518 fs/nfs/dir.c umode_t mode) mode 1561 fs/nfs/dir.c mode &= ~current_umask(); mode 1564 fs/nfs/dir.c attr.ia_mode = mode; mode 1757 fs/nfs/dir.c umode_t mode, bool excl) mode 1766 fs/nfs/dir.c attr.ia_mode = mode; mode 1785 fs/nfs/dir.c nfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) mode 1793 fs/nfs/dir.c attr.ia_mode = mode; mode 1811 fs/nfs/dir.c int nfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 1820 fs/nfs/dir.c attr.ia_mode = mode | S_IFDIR; mode 89 fs/nfs/export.c fattr->mode = p[FILE_I_TYPE_OFF]; mode 92 fs/nfs/export.c dprintk("%s: fileid %llu mode %d\n", __func__, fattr->fileid, fattr->mode); mode 76 fs/nfs/inode.c static int nfs_wait_killable(int mode) mode 79 fs/nfs/inode.c if (signal_pending_state(mode, current)) mode 84 fs/nfs/inode.c int nfs_wait_bit_killable(struct wait_bit_key *key, int mode) mode 86 fs/nfs/inode.c return nfs_wait_killable(mode); mode 224 fs/nfs/inode.c int mode = inode->i_mode; mode 232 fs/nfs/inode.c if (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)) { mode 313 fs/nfs/inode.c if ((S_IFMT & inode->i_mode) != (S_IFMT & fattr->mode)) mode 329 fs/nfs/inode.c inode->i_mode = fattr->mode; mode 459 fs/nfs/inode.c inode->i_mode = fattr->mode; mode 692 fs/nfs/inode.c int mode = attr->ia_mode & S_IALLUGO; mode 693 fs/nfs/inode.c mode |= inode->i_mode & ~S_IALLUGO; mode 694 fs/nfs/inode.c inode->i_mode = mode; mode 936 fs/nfs/inode.c if (!(ctx->mode & FMODE_WRITE)) mode 974 fs/nfs/inode.c ctx->mode = f_mode; mode 1057 fs/nfs/inode.c struct nfs_open_context *nfs_find_open_context(struct inode *inode, const struct cred *cred, fmode_t mode) mode 1066 fs/nfs/inode.c if ((pos->mode & (FMODE_READ|FMODE_WRITE)) != mode) mode 1418 fs/nfs/inode.c if ((fattr->valid & NFS_ATTR_FATTR_TYPE) && (inode->i_mode & S_IFMT) != (fattr->mode & S_IFMT)) mode 1446 fs/nfs/inode.c if ((fattr->valid & NFS_ATTR_FATTR_MODE) && (inode->i_mode & S_IALLUGO) != (fattr->mode & S_IALLUGO)) mode 1832 fs/nfs/inode.c if ((fattr->valid & NFS_ATTR_FATTR_TYPE) && (inode->i_mode & S_IFMT) != (fattr->mode & S_IFMT)) { mode 1837 fs/nfs/inode.c __func__, inode->i_ino, inode->i_mode, fattr->mode); mode 1958 fs/nfs/inode.c if ((inode->i_mode & S_IALLUGO) != (fattr->mode & S_IALLUGO)) { mode 1960 fs/nfs/inode.c newmode |= fattr->mode & S_IALLUGO; mode 385 fs/nfs/internal.h extern int nfs_wait_bit_killable(struct wait_bit_key *key, int mode); mode 386 fs/nfs/internal.h extern int nfs_wait_atomic_killable(atomic_t *p, unsigned int mode); mode 692 fs/nfs/internal.h unsigned char nfs_umode_to_dtype(umode_t mode) mode 694 fs/nfs/internal.h return (mode >> 12) & 15; mode 279 fs/nfs/nfs2xdr.c fattr->mode = be32_to_cpup(p++); mode 294 fs/nfs/nfs2xdr.c fattr->mode = (fattr->mode & ~S_IFMT) | S_IFIFO; mode 368 fs/nfs/nfs3xdr.c static __be32 *xdr_decode_ftype3(__be32 *p, umode_t *mode) mode 375 fs/nfs/nfs3xdr.c *mode = nfs_type2fmt[type]; mode 636 fs/nfs/nfs3xdr.c fattr->mode = (be32_to_cpup(p++) & ~S_IFMT) | fmode; mode 2008 fs/nfs/nfs3xdr.c entry->d_type = nfs_umode_to_dtype(entry->fattr->mode); mode 175 fs/nfs/nfs4file.c static long nfs42_fallocate(struct file *filep, int mode, loff_t offset, loff_t len) mode 183 fs/nfs/nfs4file.c if ((mode != 0) && (mode != (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE))) mode 190 fs/nfs/nfs4file.c if (mode & FALLOC_FL_PUNCH_HOLE) mode 30 fs/nfs/nfs4getroot.c || !S_ISDIR(fsinfo.fattr->mode)) { mode 1202 fs/nfs/nfs4proc.c return ctx->mode & (FMODE_READ|FMODE_WRITE|FMODE_EXEC); mode 1207 fs/nfs/nfs4proc.c fmode_t ret = ctx->mode & (FMODE_READ|FMODE_WRITE); mode 1209 fs/nfs/nfs4proc.c return (ctx->mode & FMODE_EXEC) ? FMODE_READ | ret : ret; mode 1415 fs/nfs/nfs4proc.c static int can_open_cached(struct nfs4_state *state, fmode_t mode, mode 1429 fs/nfs/nfs4proc.c switch (mode & (FMODE_READ|FMODE_WRITE)) { mode 2021 fs/nfs/nfs4proc.c nfs4_state_find_open_context_mode(struct nfs4_state *state, fmode_t mode) mode 2030 fs/nfs/nfs4proc.c if ((ctx->mode & mode) != mode) mode 2435 fs/nfs/nfs4proc.c switch (data->o_res.f_attr->mode & S_IFMT) { mode 4214 fs/nfs/nfs4proc.c fattr->mode = S_IFDIR | S_IRUGO | S_IXUGO; mode 4926 fs/nfs/nfs4proc.c int mode = sattr->ia_mode; mode 4933 fs/nfs/nfs4proc.c if (S_ISFIFO(mode)) mode 4935 fs/nfs/nfs4proc.c else if (S_ISBLK(mode)) { mode 4940 fs/nfs/nfs4proc.c else if (S_ISCHR(mode)) { mode 4944 fs/nfs/nfs4proc.c } else if (!S_ISSOCK(mode)) { mode 7081 fs/nfs/nfs4proc.c nfs4_wake_lock_waiter(wait_queue_entry_t *wait, unsigned int mode, int flags, void *key) mode 7103 fs/nfs/nfs4proc.c ret = woken_wake_function(wait, mode, flags, key); mode 7391 fs/nfs/nfs4proc.c fattr->mode = S_IFDIR | S_IRUGO | S_IXUGO; mode 25 fs/nfs/nfs4sysctl.c .mode = 0644, mode 34 fs/nfs/nfs4sysctl.c .mode = 0644, mode 43 fs/nfs/nfs4sysctl.c .mode = 0555, mode 52 fs/nfs/nfs4sysctl.c .mode = 0555, mode 317 fs/nfs/nfs4trace.h #define show_fmode_flags(mode) \ mode 318 fs/nfs/nfs4trace.h __print_flags(mode, "|", \ mode 632 fs/nfs/nfs4trace.h __entry->fmode = (__force unsigned int)ctx->mode; mode 3839 fs/nfs/nfs4xdr.c static int decode_attr_mode(struct xdr_stream *xdr, uint32_t *bitmap, umode_t *mode) mode 3845 fs/nfs/nfs4xdr.c *mode = 0; mode 3853 fs/nfs/nfs4xdr.c *mode = tmp & ~S_IFMT; mode 3857 fs/nfs/nfs4xdr.c dprintk("%s: file mode=0%o\n", __func__, (unsigned int)*mode); mode 4558 fs/nfs/nfs4xdr.c fattr->mode = 0; mode 4560 fs/nfs/nfs4xdr.c fattr->mode |= nfs_type2fmt[type]; mode 4606 fs/nfs/nfs4xdr.c fattr->mode |= fmode; mode 7417 fs/nfs/nfs4xdr.c entry->d_type = nfs_umode_to_dtype(entry->fattr->mode); mode 369 fs/nfs/nfstrace.h #define show_fmode_flags(mode) \ mode 370 fs/nfs/nfstrace.h __print_flags(mode, "|", \ mode 396 fs/nfs/nfstrace.h __entry->fmode = (__force unsigned int)ctx->mode; mode 435 fs/nfs/nfstrace.h __entry->fmode = (__force unsigned int)ctx->mode; mode 267 fs/nfs/proc.c umode_t mode; mode 272 fs/nfs/proc.c mode = sattr->ia_mode; mode 273 fs/nfs/proc.c if (S_ISFIFO(mode)) { mode 274 fs/nfs/proc.c sattr->ia_mode = (mode & ~S_IFMT) | S_IFCHR; mode 276 fs/nfs/proc.c } else if (S_ISCHR(mode) || S_ISBLK(mode)) { mode 290 fs/nfs/proc.c if (status == -EINVAL && S_ISFIFO(mode)) { mode 291 fs/nfs/proc.c sattr->ia_mode = mode; mode 22 fs/nfs/sysctl.c .mode = 0644, mode 29 fs/nfs/sysctl.c .mode = 0644, mode 38 fs/nfs/sysctl.c .mode = 0555, mode 47 fs/nfs/sysctl.c .mode = 0555, mode 1506 fs/nfs/write.c umode_t mode = inode->i_mode; mode 1510 fs/nfs/write.c if (unlikely(mode & S_ISUID)) mode 1517 fs/nfs/write.c if (unlikely((mode & S_ISGID) && (mode & S_IXGRP))) mode 1520 fs/nfs/write.c if (unlikely(kill && S_ISREG(mode))) mode 2107 fs/nfs/write.c struct page *page, enum migrate_mode mode) mode 2123 fs/nfs/write.c return migrate_page(mapping, newpage, page, mode); mode 134 fs/nfsd/fault_inject.c umode_t mode = S_IFREG | S_IRUSR | S_IWUSR; mode 140 fs/nfsd/fault_inject.c debugfs_create_file(op->file, mode, debug_dir, op, &fops_nfsd); mode 171 fs/nfsd/nfs3xdr.c *p++ = htonl(nfs3_ftypes[(stat->mode & S_IFMT) >> 12]); mode 172 fs/nfsd/nfs3xdr.c *p++ = htonl((u32) (stat->mode & S_IALLUGO)); mode 176 fs/nfsd/nfs3xdr.c if (S_ISLNK(stat->mode) && stat->size > NFS3_MAXPATHLEN) { mode 109 fs/nfsd/nfs4acl.c low_mode_from_nfs4(u32 perm, unsigned short *mode, unsigned int flags) mode 115 fs/nfsd/nfs4acl.c *mode = 0; mode 117 fs/nfsd/nfs4acl.c *mode |= ACL_READ; mode 119 fs/nfsd/nfs4acl.c *mode |= ACL_WRITE; mode 121 fs/nfsd/nfs4acl.c *mode |= ACL_EXECUTE; mode 200 fs/nfsd/nfs4proc.c umode_t mode = d_inode(fh->fh_dentry)->i_mode; mode 202 fs/nfsd/nfs4proc.c if (S_ISREG(mode)) mode 204 fs/nfsd/nfs4proc.c if (S_ISDIR(mode)) mode 2254 fs/nfsd/nfs4xdr.c static u32 nfs4_file_type(umode_t mode) mode 2256 fs/nfsd/nfs4xdr.c switch (mode & S_IFMT) { mode 2536 fs/nfsd/nfs4xdr.c dummy = nfs4_file_type(stat.mode); mode 2762 fs/nfsd/nfs4xdr.c *p++ = cpu_to_be32(stat.mode & S_IALLUGO); mode 1154 fs/nfsd/nfsctl.c static struct inode *nfsd_get_inode(struct super_block *sb, umode_t mode) mode 1161 fs/nfsd/nfsctl.c inode->i_mode = mode; mode 1163 fs/nfsd/nfsctl.c switch (mode & S_IFMT) { mode 1174 fs/nfsd/nfsctl.c static int __nfsd_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode, struct nfsdfs_client *ncl) mode 1178 fs/nfsd/nfsctl.c inode = nfsd_get_inode(dir->i_sb, mode); mode 1283 fs/nfsd/nfsctl.c S_IFREG | files->mode); mode 66 fs/nfsd/nfsfh.c umode_t mode = d_inode(dentry)->i_mode & S_IFMT; mode 70 fs/nfsd/nfsfh.c if (mode == requested) { mode 71 fs/nfsd/nfsfh.c if (mode == S_IFDIR && !d_can_lookup(dentry)) { mode 81 fs/nfsd/nfsfh.c if (rqstp->rq_vers == 4 && mode == S_IFLNK) mode 85 fs/nfsd/nfsfh.c if (mode == S_IFDIR) mode 249 fs/nfsd/nfsproc.c int type, mode; mode 304 fs/nfsd/nfsproc.c mode = attr->ia_mode & ~S_IFMT; mode 336 fs/nfsd/nfsproc.c mode = inode->i_mode & ~S_IFMT; mode 339 fs/nfsd/nfsproc.c mode = 0; /* ??? */ mode 343 fs/nfsd/nfsproc.c attr->ia_mode = mode; mode 138 fs/nfsd/nfsxdr.c type = (stat->mode & S_IFMT); mode 141 fs/nfsd/nfsxdr.c *p++ = htonl((u32) stat->mode); mode 294 fs/nfsd/trace.h __field(umode_t, mode) mode 300 fs/nfsd/trace.h __entry->mode = inode->i_mode; mode 304 fs/nfsd/trace.h __entry->nlink, __entry->mode, __entry->mask) mode 692 fs/nfsd/vfs.c unsigned int mode; mode 696 fs/nfsd/vfs.c mode = (access & NFSD_MAY_WRITE) ? O_WRONLY : O_RDONLY; mode 697 fs/nfsd/vfs.c return break_lease(inode, mode | O_NONBLOCK); mode 56 fs/nilfs2/btnode.c sector_t pblocknr, int mode, int mode_flags, mode 108 fs/nilfs2/btnode.c submit_bh(mode, mode_flags, bh); mode 562 fs/nilfs2/cpfile.c ssize_t nilfs_cpfile_get_cpinfo(struct inode *cpfile, __u64 *cnop, int mode, mode 565 fs/nilfs2/cpfile.c switch (mode) { mode 906 fs/nilfs2/cpfile.c int nilfs_cpfile_change_cpmode(struct inode *cpfile, __u64 cno, int mode) mode 910 fs/nilfs2/cpfile.c switch (mode) { mode 258 fs/nilfs2/dir.c umode_t mode = inode->i_mode; mode 260 fs/nilfs2/dir.c de->file_type = nilfs_type_by_mode[(mode & S_IFMT)>>S_SHIFT]; mode 331 fs/nilfs2/inode.c struct inode *nilfs_new_inode(struct inode *dir, umode_t mode) mode 359 fs/nilfs2/inode.c inode_init_owner(inode, dir, mode); mode 363 fs/nilfs2/inode.c if (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)) { mode 373 fs/nilfs2/inode.c mode, NILFS_I(dir)->i_flags & NILFS_FL_INHERITED); mode 115 fs/nilfs2/mdt.c int mode, int mode_flags, struct buffer_head **out_bh) mode 151 fs/nilfs2/mdt.c submit_bh(mode, mode_flags, bh); mode 154 fs/nilfs2/mdt.c trace_nilfs2_mdt_submit_block(inode, inode->i_ino, blkoff, mode); mode 75 fs/nilfs2/namei.c static int nilfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 85 fs/nilfs2/namei.c inode = nilfs_new_inode(dir, mode); mode 103 fs/nilfs2/namei.c nilfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) mode 112 fs/nilfs2/namei.c inode = nilfs_new_inode(dir, mode); mode 204 fs/nilfs2/namei.c static int nilfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 216 fs/nilfs2/namei.c inode = nilfs_new_inode(dir, S_IFDIR | mode); mode 220 fs/nilfs2/nilfs.h static inline __u32 nilfs_mask_flags(umode_t mode, __u32 flags) mode 222 fs/nilfs2/nilfs.h if (S_ISDIR(mode)) mode 224 fs/nilfs2/nilfs.h else if (S_ISREG(mode)) mode 340 fs/nilfs2/segbuf.c struct nilfs_write_info *wi, int mode, mode 359 fs/nilfs2/segbuf.c bio_set_op_attrs(bio, mode, mode_flags); mode 414 fs/nilfs2/segbuf.c struct buffer_head *bh, int mode) mode 433 fs/nilfs2/segbuf.c err = nilfs_segbuf_submit_bio(segbuf, wi, mode, 0); mode 1113 fs/nilfs2/segment.c static int nilfs_segctor_collect_blocks(struct nilfs_sc_info *sci, int mode) mode 1129 fs/nilfs2/segment.c if (mode == SC_LSEG_DSYNC) { mode 1137 fs/nilfs2/segment.c if (mode == SC_FLUSH_DAT) { mode 1183 fs/nilfs2/segment.c if (mode == SC_FLUSH_FILE) { mode 1229 fs/nilfs2/segment.c if (mode == SC_FLUSH_DAT) { mode 1235 fs/nilfs2/segment.c if (mode == SC_LSEG_SR) { mode 1480 fs/nilfs2/segment.c struct the_nilfs *nilfs, int mode) mode 1494 fs/nilfs2/segment.c err = nilfs_segctor_collect_blocks(sci, mode); mode 1503 fs/nilfs2/segment.c if (mode != SC_LSEG_SR || mode 1544 fs/nilfs2/segment.c int mode) mode 1577 fs/nilfs2/segment.c if (mode == SC_LSEG_DSYNC) mode 1614 fs/nilfs2/segment.c static int nilfs_segctor_assign(struct nilfs_sc_info *sci, int mode) mode 1620 fs/nilfs2/segment.c err = nilfs_segctor_update_payload_blocknr(sci, segbuf, mode); mode 2008 fs/nilfs2/segment.c static int nilfs_segctor_do_construct(struct nilfs_sc_info *sci, int mode) mode 2036 fs/nilfs2/segment.c err = nilfs_segctor_collect(sci, nilfs, mode); mode 2047 fs/nilfs2/segment.c err = nilfs_segctor_assign(sci, mode); mode 2054 fs/nilfs2/segment.c if (mode == SC_LSEG_SR && mode 2332 fs/nilfs2/segment.c static void nilfs_segctor_notify(struct nilfs_sc_info *sci, int mode, int err) mode 2337 fs/nilfs2/segment.c if (mode == SC_LSEG_SR) { mode 2343 fs/nilfs2/segment.c if (mode == SC_FLUSH_FILE) mode 2345 fs/nilfs2/segment.c else if (mode == SC_FLUSH_DAT) mode 2361 fs/nilfs2/segment.c static int nilfs_segctor_construct(struct nilfs_sc_info *sci, int mode) mode 2370 fs/nilfs2/segment.c mode = SC_LSEG_SR; mode 2372 fs/nilfs2/segment.c err = nilfs_segctor_do_construct(sci, mode); mode 2375 fs/nilfs2/segment.c if (mode != SC_FLUSH_DAT) mode 2392 fs/nilfs2/segment.c nilfs_segctor_notify(sci, mode, err); mode 2475 fs/nilfs2/segment.c static void nilfs_segctor_thread_construct(struct nilfs_sc_info *sci, int mode) mode 2480 fs/nilfs2/segment.c nilfs_segctor_construct(sci, mode); mode 2495 fs/nilfs2/segment.c int mode = 0; mode 2498 fs/nilfs2/segment.c mode = (sci->sc_flush_request & FLUSH_DAT_BIT) ? mode 2502 fs/nilfs2/segment.c if (mode) { mode 2503 fs/nilfs2/segment.c nilfs_segctor_do_construct(sci, mode); mode 2506 fs/nilfs2/segment.c sci->sc_flush_request &= (mode == SC_FLUSH_FILE) ? mode 2550 fs/nilfs2/segment.c int mode; mode 2556 fs/nilfs2/segment.c mode = SC_LSEG_SR; mode 2558 fs/nilfs2/segment.c mode = nilfs_segctor_flush_mode(sci); mode 2563 fs/nilfs2/segment.c nilfs_segctor_thread_construct(sci, mode); mode 1269 fs/nilfs2/super.c fmode_t mode = FMODE_READ | FMODE_EXCL; mode 1274 fs/nilfs2/super.c mode |= FMODE_WRITE; mode 1276 fs/nilfs2/super.c sd.bdev = blkdev_get_by_path(dev_name, mode, fs_type); mode 1310 fs/nilfs2/super.c s->s_mode = mode; mode 1348 fs/nilfs2/super.c blkdev_put(sd.bdev, mode); mode 1357 fs/nilfs2/super.c blkdev_put(sd.bdev, mode); mode 91 fs/nilfs2/sysfs.h #define NILFS_ATTR(type, name, mode, show, store) \ mode 93 fs/nilfs2/sysfs.h __ATTR(name, mode, show, store) mode 54 fs/notify/inotify/inotify_user.c .mode = 0644, mode 62 fs/notify/inotify/inotify_user.c .mode = 0644, mode 70 fs/notify/inotify/inotify_user.c .mode = 0644, mode 2238 fs/ntfs/mft.c ntfs_inode *ntfs_mft_record_alloc(ntfs_volume *vol, const int mode, mode 2260 fs/ntfs/mft.c BUG_ON(mode); mode 2263 fs/ntfs/mft.c if (mode) { mode 2267 fs/ntfs/mft.c if (!S_ISREG(mode) && !S_ISDIR(mode)) mode 2569 fs/ntfs/mft.c if (S_ISDIR(mode)) mode 2650 fs/ntfs/mft.c if (S_ISDIR(mode)) { mode 104 fs/ntfs/mft.h extern ntfs_inode *ntfs_mft_record_alloc(ntfs_volume *vol, const int mode, mode 28 fs/ntfs/sysctl.c .mode = 0644, /* Mode, proc handler. */ mode 38 fs/ntfs/sysctl.c .mode = 0555, mode 273 fs/ocfs2/acl.c umode_t mode; mode 275 fs/ocfs2/acl.c status = posix_acl_update_mode(inode, &mode, &acl); mode 279 fs/ocfs2/acl.c status = ocfs2_acl_set_mode(inode, bh, NULL, mode); mode 356 fs/ocfs2/acl.c umode_t mode; mode 368 fs/ocfs2/acl.c mode = inode->i_mode & ~current_umask(); mode 369 fs/ocfs2/acl.c ret = ocfs2_acl_set_mode(inode, di_bh, handle, mode); mode 384 fs/ocfs2/acl.c mode = inode->i_mode; mode 385 fs/ocfs2/acl.c ret = __posix_acl_create(&acl, GFP_NOFS, &mode); mode 389 fs/ocfs2/acl.c ret2 = ocfs2_acl_set_mode(inode, di_bh, handle, mode); mode 2194 fs/ocfs2/cluster/heartbeat.c CONFIGFS_ATTR(o2hb_heartbeat_group_, mode); mode 97 fs/ocfs2/cluster/masklog.c .mode = S_IRUGO | S_IWUSR, \ mode 161 fs/ocfs2/cluster/masklog.c while (mlog_attrs[i].attr.mode) { mode 494 fs/ocfs2/cluster/netdebug.c umode_t mode = S_IFREG|S_IRUSR; mode 498 fs/ocfs2/cluster/netdebug.c debugfs_create_file(NST_DEBUG_NAME, mode, o2net_dentry, NULL, mode 500 fs/ocfs2/cluster/netdebug.c debugfs_create_file(SC_DEBUG_NAME, mode, o2net_dentry, NULL, mode 502 fs/ocfs2/cluster/netdebug.c debugfs_create_file(STATS_DEBUG_NAME, mode, o2net_dentry, NULL, mode 504 fs/ocfs2/cluster/netdebug.c debugfs_create_file(NODES_DEBUG_NAME, mode, o2net_dentry, NULL, mode 166 fs/ocfs2/dlm/dlmapi.h int mode, mode 1042 fs/ocfs2/dlm/dlmcommon.h static inline const char * dlm_lock_mode_name(int mode) mode 1044 fs/ocfs2/dlm/dlmcommon.h switch (mode) { mode 542 fs/ocfs2/dlm/dlmlock.c enum dlm_status dlmlock(struct dlm_ctxt *dlm, int mode, mode 561 fs/ocfs2/dlm/dlmlock.c if (mode != LKM_EXMODE && mode != LKM_PRMODE && mode != LKM_NLMODE) { mode 622 fs/ocfs2/dlm/dlmlock.c status = dlmconvert_master(dlm, res, lock, flags, mode); mode 624 fs/ocfs2/dlm/dlmlock.c status = dlmconvert_remote(dlm, res, lock, flags, mode); mode 653 fs/ocfs2/dlm/dlmlock.c lock = dlm_new_lock(mode, dlm->node_num, tmpcookie, lksb); mode 670 fs/ocfs2/dlm/dlmlock.c mlog(0, "type=%d, flags = 0x%x\n", mode, flags); mode 684 fs/ocfs2/dlm/dlmlock.c if (mode < LKM_PRMODE) mode 372 fs/ocfs2/dlmfs/dlmfs.c umode_t mode = S_IFDIR | 0755; mode 376 fs/ocfs2/dlmfs/dlmfs.c inode_init_owner(inode, NULL, mode); mode 389 fs/ocfs2/dlmfs/dlmfs.c umode_t mode) mode 399 fs/ocfs2/dlmfs/dlmfs.c inode_init_owner(inode, parent, mode); mode 405 fs/ocfs2/dlmfs/dlmfs.c switch (mode & S_IFMT) { mode 444 fs/ocfs2/dlmfs/dlmfs.c umode_t mode) mode 461 fs/ocfs2/dlmfs/dlmfs.c inode = dlmfs_get_inode(dir, dentry, mode | S_IFDIR); mode 492 fs/ocfs2/dlmfs/dlmfs.c umode_t mode, mode 511 fs/ocfs2/dlmfs/dlmfs.c inode = dlmfs_get_inode(dir, dentry, mode | S_IFREG); mode 86 fs/ocfs2/file.c int mode = file->f_flags; mode 92 fs/ocfs2/file.c file->f_path.dentry->d_name.name, mode); mode 112 fs/ocfs2/file.c if (mode & O_DIRECT) mode 2024 fs/ocfs2/file.c static long ocfs2_fallocate(struct file *file, int mode, loff_t offset, mode 2033 fs/ocfs2/file.c if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) mode 2038 fs/ocfs2/file.c if (mode & FALLOC_FL_KEEP_SIZE) mode 2041 fs/ocfs2/file.c if (mode & FALLOC_FL_PUNCH_HOLE) mode 185 fs/ocfs2/namei.c static struct inode *ocfs2_get_init_inode(struct inode *dir, umode_t mode) mode 199 fs/ocfs2/namei.c if (S_ISDIR(mode)) mode 201 fs/ocfs2/namei.c inode_init_owner(inode, dir, mode); mode 226 fs/ocfs2/namei.c umode_t mode, mode 253 fs/ocfs2/namei.c (unsigned long)dev, mode); mode 271 fs/ocfs2/namei.c if (S_ISDIR(mode) && (dir->i_nlink >= ocfs2_link_max(osb))) { mode 305 fs/ocfs2/namei.c inode = ocfs2_get_init_inode(dir, mode); mode 325 fs/ocfs2/namei.c status = ocfs2_calc_xattr_init(dir, parent_fe_bh, mode, mode 334 fs/ocfs2/namei.c if (S_ISDIR(mode) && !ocfs2_supports_inline_data(osb)) { mode 357 fs/ocfs2/namei.c S_ISDIR(mode), mode 384 fs/ocfs2/namei.c if (S_ISDIR(mode)) { mode 644 fs/ocfs2/namei.c umode_t mode) mode 649 fs/ocfs2/namei.c OCFS2_I(dir)->ip_blkno, mode); mode 650 fs/ocfs2/namei.c ret = ocfs2_mknod(dir, dentry, mode | S_IFDIR, 0); mode 659 fs/ocfs2/namei.c umode_t mode, mode 665 fs/ocfs2/namei.c (unsigned long long)OCFS2_I(dir)->ip_blkno, mode); mode 666 fs/ocfs2/namei.c ret = ocfs2_mknod(dir, dentry, mode | S_IFREG, 0); mode 2482 fs/ocfs2/namei.c int mode, mode 2514 fs/ocfs2/namei.c inode = ocfs2_get_init_inode(dir, mode); mode 29 fs/ocfs2/namei.h int mode, mode 1591 fs/ocfs2/ocfs2_fs.h umode_t mode) mode 1593 fs/ocfs2/ocfs2_fs.h de->file_type = fs_umode_to_ftype(mode); mode 1307 fs/ocfs2/ocfs2_trace.h unsigned long long mode), \ mode 1308 fs/ocfs2/ocfs2_trace.h TP_ARGS(inode, file, dentry, ino, d_len, d_name, mode)) mode 2206 fs/ocfs2/ocfs2_trace.h unsigned long long dir_blkno, unsigned long dev, int mode), mode 2207 fs/ocfs2/ocfs2_trace.h TP_ARGS(dir, dentry, name_len, name, dir_blkno, dev, mode), mode 2215 fs/ocfs2/ocfs2_trace.h __field(int, mode) mode 2224 fs/ocfs2/ocfs2_trace.h __entry->mode = mode; mode 2228 fs/ocfs2/ocfs2_trace.h __entry->dir_blkno, __entry->dev, __entry->mode) mode 55 fs/ocfs2/stack_o2cb.c static inline int mode_to_o2dlm(int mode) mode 57 fs/ocfs2/stack_o2cb.c BUG_ON(mode > LKM_MAXMODE); mode 59 fs/ocfs2/stack_o2cb.c return mode; mode 193 fs/ocfs2/stack_o2cb.c int mode, mode 200 fs/ocfs2/stack_o2cb.c int o2dlm_mode = mode_to_o2dlm(mode); mode 682 fs/ocfs2/stack_user.c int mode, mode 694 fs/ocfs2/stack_user.c ret = dlm_lock(conn->cc_lockspace, mode, &lksb->lksb_fsdlm, mode 845 fs/ocfs2/stack_user.c int mode, uint32_t flags, mode 851 fs/ocfs2/stack_user.c error = dlm_lock(conn->cc_lockspace, mode, lksb, flags, mode 856 fs/ocfs2/stack_user.c name, lksb->sb_lkid, flags, mode, error); mode 866 fs/ocfs2/stack_user.c name, lksb->sb_lkid, flags, mode, status); mode 873 fs/ocfs2/stack_user.c static int version_lock(struct ocfs2_cluster_connection *conn, int mode, mode 877 fs/ocfs2/stack_user.c return sync_lock(conn, mode, flags, mode 234 fs/ocfs2/stackglue.c int mode, mode 244 fs/ocfs2/stackglue.c return active_stack->sp_ops->dlm_lock(conn, mode, lksb, flags, mode 666 fs/ocfs2/stackglue.c .mode = 0644, mode 677 fs/ocfs2/stackglue.c .mode = 0555, mode 688 fs/ocfs2/stackglue.c .mode = 0555, mode 699 fs/ocfs2/stackglue.c .mode = 0555, mode 166 fs/ocfs2/stackglue.h int mode, mode 268 fs/ocfs2/stackglue.h int mode, mode 618 fs/ocfs2/xattr.c umode_t mode, mode 640 fs/ocfs2/xattr.c if (S_ISDIR(mode)) mode 665 fs/ocfs2/xattr.c (S_ISDIR(mode) && ocfs2_supports_inline_data(osb)) || mode 691 fs/ocfs2/xattr.c new_clusters = (S_ISDIR(mode) ? 2 : 1) * mode 258 fs/omfs/dir.c static int omfs_add_node(struct inode *dir, struct dentry *dentry, umode_t mode) mode 261 fs/omfs/dir.c struct inode *inode = omfs_new_inode(dir, mode); mode 282 fs/omfs/dir.c static int omfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 284 fs/omfs/dir.c return omfs_add_node(dir, dentry, mode | S_IFDIR); mode 287 fs/omfs/dir.c static int omfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 290 fs/omfs/dir.c return omfs_add_node(dir, dentry, mode | S_IFREG); mode 33 fs/omfs/inode.c struct inode *omfs_new_inode(struct inode *dir, umode_t mode) mode 51 fs/omfs/inode.c inode_init_owner(inode, NULL, mode); mode 55 fs/omfs/inode.c switch (mode & S_IFMT) { mode 64 fs/omfs/omfs.h extern struct inode *omfs_new_inode(struct inode *dir, umode_t mode); mode 66 fs/omfs/omfs.h extern int omfs_find_empty_block(struct super_block *sb, int mode, ino_t *ino); mode 229 fs/open.c int vfs_fallocate(struct file *file, int mode, loff_t offset, loff_t len) mode 238 fs/open.c if (mode & ~FALLOC_FL_SUPPORTED_MASK) mode 242 fs/open.c if ((mode & (FALLOC_FL_PUNCH_HOLE | FALLOC_FL_ZERO_RANGE)) == mode 247 fs/open.c if ((mode & FALLOC_FL_PUNCH_HOLE) && mode 248 fs/open.c !(mode & FALLOC_FL_KEEP_SIZE)) mode 252 fs/open.c if ((mode & FALLOC_FL_COLLAPSE_RANGE) && mode 253 fs/open.c (mode & ~FALLOC_FL_COLLAPSE_RANGE)) mode 257 fs/open.c if ((mode & FALLOC_FL_INSERT_RANGE) && mode 258 fs/open.c (mode & ~FALLOC_FL_INSERT_RANGE)) mode 262 fs/open.c if ((mode & FALLOC_FL_UNSHARE_RANGE) && mode 263 fs/open.c (mode & ~(FALLOC_FL_UNSHARE_RANGE | FALLOC_FL_KEEP_SIZE))) mode 272 fs/open.c if ((mode & ~FALLOC_FL_KEEP_SIZE) && IS_APPEND(inode)) mode 309 fs/open.c ret = file->f_op->fallocate(file, mode, offset, len); mode 326 fs/open.c int ksys_fallocate(int fd, int mode, loff_t offset, loff_t len) mode 332 fs/open.c error = vfs_fallocate(f.file, mode, offset, len); mode 338 fs/open.c SYSCALL_DEFINE4(fallocate, int, fd, int, mode, loff_t, offset, loff_t, len) mode 340 fs/open.c return ksys_fallocate(fd, mode, offset, len); mode 348 fs/open.c long do_faccessat(int dfd, const char __user *filename, int mode) mode 357 fs/open.c if (mode & ~S_IRWXO) /* where's F_OK, X_OK, W_OK, R_OK? */ mode 404 fs/open.c if ((mode & MAY_EXEC) && S_ISREG(inode->i_mode)) { mode 414 fs/open.c res = inode_permission(inode, mode | MAY_ACCESS); mode 416 fs/open.c if (res || !(mode & S_IWOTH) || special_file(inode->i_mode)) mode 443 fs/open.c SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode) mode 445 fs/open.c return do_faccessat(dfd, filename, mode); mode 448 fs/open.c SYSCALL_DEFINE2(access, const char __user *, filename, int, mode) mode 450 fs/open.c return do_faccessat(AT_FDCWD, filename, mode); mode 544 fs/open.c static int chmod_common(const struct path *path, umode_t mode) mode 556 fs/open.c error = security_path_chmod(path, mode); mode 559 fs/open.c newattrs.ia_mode = (mode & S_IALLUGO) | (inode->i_mode & ~S_IALLUGO); mode 573 fs/open.c int ksys_fchmod(unsigned int fd, umode_t mode) mode 580 fs/open.c err = chmod_common(&f.file->f_path, mode); mode 586 fs/open.c SYSCALL_DEFINE2(fchmod, unsigned int, fd, umode_t, mode) mode 588 fs/open.c return ksys_fchmod(fd, mode); mode 591 fs/open.c int do_fchmodat(int dfd, const char __user *filename, umode_t mode) mode 599 fs/open.c error = chmod_common(&path, mode); mode 610 fs/open.c umode_t, mode) mode 612 fs/open.c return do_fchmodat(dfd, filename, mode); mode 615 fs/open.c SYSCALL_DEFINE2(chmod, const char __user *, filename, umode_t, mode) mode 617 fs/open.c return do_fchmodat(AT_FDCWD, filename, mode); mode 955 fs/open.c static inline int build_open_flags(int flags, umode_t mode, struct open_flags *op) mode 967 fs/open.c op->mode = (mode & S_IALLUGO) | S_IFREG; mode 969 fs/open.c op->mode = 0; mode 1037 fs/open.c struct file *file_open_name(struct filename *name, int flags, umode_t mode) mode 1040 fs/open.c int err = build_open_flags(flags, mode, &op); mode 1055 fs/open.c struct file *filp_open(const char *filename, int flags, umode_t mode) mode 1061 fs/open.c file = file_open_name(name, flags, mode); mode 1069 fs/open.c const char *filename, int flags, umode_t mode) mode 1072 fs/open.c int err = build_open_flags(flags, mode, &op); mode 1079 fs/open.c long do_sys_open(int dfd, const char __user *filename, int flags, umode_t mode) mode 1082 fs/open.c int fd = build_open_flags(flags, mode, &op); mode 1107 fs/open.c SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, umode_t, mode) mode 1112 fs/open.c return do_sys_open(AT_FDCWD, filename, flags, mode); mode 1116 fs/open.c umode_t, mode) mode 1121 fs/open.c return do_sys_open(dfd, filename, flags, mode); mode 1129 fs/open.c COMPAT_SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, umode_t, mode) mode 1131 fs/open.c return do_sys_open(AT_FDCWD, filename, flags, mode); mode 1138 fs/open.c COMPAT_SYSCALL_DEFINE4(openat, int, dfd, const char __user *, filename, int, flags, umode_t, mode) mode 1140 fs/open.c return do_sys_open(dfd, filename, flags, mode); mode 1150 fs/open.c SYSCALL_DEFINE2(creat, const char __user *, pathname, umode_t, mode) mode 1152 fs/open.c return ksys_open(pathname, O_CREAT | O_WRONLY | O_TRUNC, mode); mode 158 fs/orangefs/acl.c umode_t mode = inode->i_mode; mode 162 fs/orangefs/acl.c error = posix_acl_create(dir, &mode, &default_acl, &acl); mode 183 fs/orangefs/acl.c if (mode != inode->i_mode) { mode 185 fs/orangefs/acl.c inode->i_mode = mode; mode 186 fs/orangefs/acl.c iattr.ia_mode = mode; mode 1132 fs/orangefs/inode.c int mode, dev_t dev, struct orangefs_object_kref *ref) mode 1144 fs/orangefs/inode.c mode); mode 20 fs/orangefs/namei.c umode_t mode, mode 41 fs/orangefs/namei.c ORANGEFS_TYPE_METAFILE, mode); mode 62 fs/orangefs/namei.c inode = orangefs_new_inode(dir->i_sb, dir, S_IFREG | mode, 0, &ref); mode 227 fs/orangefs/namei.c int mode = 0755; mode 246 fs/orangefs/namei.c mode); mode 269 fs/orangefs/namei.c inode = orangefs_new_inode(dir->i_sb, dir, S_IFLNK | mode, 0, &ref); mode 306 fs/orangefs/namei.c static int orangefs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 322 fs/orangefs/namei.c ORANGEFS_TYPE_DIRECTORY, mode); mode 343 fs/orangefs/namei.c inode = orangefs_new_inode(dir->i_sb, dir, S_IFDIR | mode, 0, &ref); mode 361 fs/orangefs/orangefs-kernel.h int mode, mode 474 fs/orangefs/orangefs-kernel.h #define fill_default_sys_attrs(sys_attr, type, mode) \ mode 478 fs/orangefs/orangefs-kernel.h sys_attr.perms = ORANGEFS_util_translate_mode(mode); \ mode 537 fs/orangefs/orangefs-utils.c __s32 ORANGEFS_util_translate_mode(int mode) mode 555 fs/orangefs/orangefs-utils.c if (mode & modes[i]) mode 284 fs/orangefs/protocol.h __s32 ORANGEFS_util_translate_mode(int mode); mode 206 fs/overlayfs/copy_up.c if (!S_ISLNK(stat->mode)) { mode 209 fs/overlayfs/copy_up.c .ia_mode = stat->mode, mode 447 fs/overlayfs/copy_up.c if (S_ISREG(c->stat.mode) && !c->metacopy) { mode 536 fs/overlayfs/copy_up.c .mode = c->stat.mode & S_IFMT, mode 560 fs/overlayfs/copy_up.c if (S_ISDIR(c->stat.mode) && c->indexed) { mode 605 fs/overlayfs/copy_up.c temp = ovl_do_tmpfile(c->workdir, c->stat.mode); mode 662 fs/overlayfs/copy_up.c if (S_ISDIR(c->stat.mode)) mode 668 fs/overlayfs/copy_up.c if (S_ISDIR(c->stat.mode) || c->stat.nlink == 1 || to_index) mode 690 fs/overlayfs/copy_up.c if (S_ISREG(c->stat.mode) && ofs->tmpfile) mode 720 fs/overlayfs/copy_up.c static bool ovl_need_meta_copy_up(struct dentry *dentry, umode_t mode, mode 728 fs/overlayfs/copy_up.c if (!S_ISREG(mode)) mode 808 fs/overlayfs/copy_up.c ctx.metacopy = ovl_need_meta_copy_up(dentry, ctx.stat.mode, flags); mode 826 fs/overlayfs/copy_up.c if (S_ISLNK(ctx.stat.mode)) { mode 117 fs/overlayfs/dir.c umode_t mode) mode 122 fs/overlayfs/dir.c err = ovl_do_mkdir(dir, dentry, mode); mode 162 fs/overlayfs/dir.c switch (attr->mode & S_IFMT) { mode 164 fs/overlayfs/dir.c err = ovl_do_create(dir, newdentry, attr->mode); mode 169 fs/overlayfs/dir.c err = ovl_mkdir_real(dir, &newdentry, attr->mode); mode 176 fs/overlayfs/dir.c err = ovl_do_mknod(dir, newdentry, attr->mode, mode 300 fs/overlayfs/dir.c attr->mode &= ~current_umask(); mode 357 fs/overlayfs/dir.c if (!S_ISDIR(stat.mode)) mode 363 fs/overlayfs/dir.c opaquedir = ovl_create_temp(workdir, OVL_CATTR(stat.mode)); mode 447 fs/overlayfs/dir.c &cattr->mode, &default_acl, &acl); mode 475 fs/overlayfs/dir.c !S_ISLNK(cattr->mode) && mode 476 fs/overlayfs/dir.c newdentry->d_inode->i_mode != cattr->mode) { mode 479 fs/overlayfs/dir.c .ia_mode = cattr->mode, mode 499 fs/overlayfs/dir.c if (!hardlink && S_ISDIR(cattr->mode)) { mode 566 fs/overlayfs/dir.c attr->mode, &dentry->d_name, old_cred, mode 586 fs/overlayfs/dir.c static int ovl_create_object(struct dentry *dentry, int mode, dev_t rdev, mode 602 fs/overlayfs/dir.c inode = ovl_new_inode(dentry->d_sb, mode, rdev); mode 610 fs/overlayfs/dir.c inode_init_owner(inode, dentry->d_parent->d_inode, mode); mode 611 fs/overlayfs/dir.c attr.mode = inode->i_mode; mode 624 fs/overlayfs/dir.c static int ovl_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 627 fs/overlayfs/dir.c return ovl_create_object(dentry, (mode & 07777) | S_IFREG, 0, NULL); mode 630 fs/overlayfs/dir.c static int ovl_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 632 fs/overlayfs/dir.c return ovl_create_object(dentry, (mode & 07777) | S_IFDIR, 0, NULL); mode 635 fs/overlayfs/dir.c static int ovl_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, mode 639 fs/overlayfs/dir.c if (S_ISCHR(mode) && rdev == WHITEOUT_DEV) mode 642 fs/overlayfs/dir.c return ovl_create_object(dentry, mode, rdev, NULL); mode 347 fs/overlayfs/file.c static long ovl_fallocate(struct file *file, int mode, loff_t offset, loff_t len) mode 359 fs/overlayfs/file.c ret = vfs_fallocate(real.file, mode, offset, len); mode 554 fs/overlayfs/inode.c static void ovl_fill_inode(struct inode *inode, umode_t mode, dev_t rdev, mode 575 fs/overlayfs/inode.c inode->i_mode = mode; mode 583 fs/overlayfs/inode.c switch (mode & S_IFMT) { mode 601 fs/overlayfs/inode.c init_special_inode(inode, mode, rdev); mode 706 fs/overlayfs/inode.c struct inode *ovl_new_inode(struct super_block *sb, umode_t mode, dev_t rdev) mode 712 fs/overlayfs/inode.c ovl_fill_inode(inode, mode, rdev, 0, 0); mode 114 fs/overlayfs/overlayfs.h umode_t mode) mode 116 fs/overlayfs/overlayfs.h int err = vfs_create(dir, dentry, mode, true); mode 118 fs/overlayfs/overlayfs.h pr_debug("create(%pd2, 0%o) = %i\n", dentry, mode, err); mode 123 fs/overlayfs/overlayfs.h umode_t mode) mode 125 fs/overlayfs/overlayfs.h int err = vfs_mkdir(dir, dentry, mode); mode 126 fs/overlayfs/overlayfs.h pr_debug("mkdir(%pd2, 0%o) = %i\n", dentry, mode, err); mode 131 fs/overlayfs/overlayfs.h umode_t mode, dev_t dev) mode 133 fs/overlayfs/overlayfs.h int err = vfs_mknod(dir, dentry, mode, dev); mode 135 fs/overlayfs/overlayfs.h pr_debug("mknod(%pd2, 0%o, 0%o) = %i\n", dentry, mode, dev, err); mode 186 fs/overlayfs/overlayfs.h static inline struct dentry *ovl_do_tmpfile(struct dentry *dentry, umode_t mode) mode 188 fs/overlayfs/overlayfs.h struct dentry *ret = vfs_tmpfile(dentry, mode, 0); mode 191 fs/overlayfs/overlayfs.h pr_debug("tmpfile(%pd2, 0%o) = %i\n", dentry, mode, err); mode 374 fs/overlayfs/overlayfs.h struct inode *ovl_new_inode(struct super_block *sb, umode_t mode, dev_t rdev); mode 405 fs/overlayfs/overlayfs.h umode_t mode; mode 410 fs/overlayfs/overlayfs.h #define OVL_CATTR(m) (&(struct ovl_cattr) { .mode = (m) }) mode 512 fs/overlayfs/readdir.c WARN_ON_ONCE(S_ISDIR(stat.mode) && mode 450 fs/overlayfs/super.c static int ovl_parse_redirect_mode(struct ovl_config *config, const char *mode) mode 452 fs/overlayfs/super.c if (strcmp(mode, "on") == 0) { mode 459 fs/overlayfs/super.c } else if (strcmp(mode, "follow") == 0) { mode 461 fs/overlayfs/super.c } else if (strcmp(mode, "off") == 0) { mode 464 fs/overlayfs/super.c } else if (strcmp(mode, "nofollow") != 0) { mode 466 fs/overlayfs/super.c mode); mode 282 fs/posix_acl.c umode_t mode = 0; mode 294 fs/posix_acl.c mode |= (pa->e_perm & S_IRWXO) << 6; mode 297 fs/posix_acl.c mode |= (pa->e_perm & S_IRWXO) << 3; mode 300 fs/posix_acl.c mode |= pa->e_perm & S_IRWXO; mode 303 fs/posix_acl.c mode = (mode & ~S_IRWXG) | mode 316 fs/posix_acl.c *mode_p = (*mode_p & ~S_IRWXUGO) | mode; mode 325 fs/posix_acl.c posix_acl_from_mode(umode_t mode, gfp_t flags) mode 332 fs/posix_acl.c acl->a_entries[0].e_perm = (mode & S_IRWXU) >> 6; mode 335 fs/posix_acl.c acl->a_entries[1].e_perm = (mode & S_IRWXG) >> 3; mode 338 fs/posix_acl.c acl->a_entries[2].e_perm = (mode & S_IRWXO); mode 420 fs/posix_acl.c umode_t mode = *mode_p; mode 428 fs/posix_acl.c pa->e_perm &= (mode >> 6) | ~S_IRWXO; mode 429 fs/posix_acl.c mode &= (pa->e_perm << 6) | ~S_IRWXU; mode 442 fs/posix_acl.c pa->e_perm &= mode | ~S_IRWXO; mode 443 fs/posix_acl.c mode &= pa->e_perm | ~S_IRWXO; mode 457 fs/posix_acl.c mask_obj->e_perm &= (mode >> 3) | ~S_IRWXO; mode 458 fs/posix_acl.c mode &= (mask_obj->e_perm << 3) | ~S_IRWXG; mode 462 fs/posix_acl.c group_obj->e_perm &= (mode >> 3) | ~S_IRWXO; mode 463 fs/posix_acl.c mode &= (group_obj->e_perm << 3) | ~S_IRWXG; mode 466 fs/posix_acl.c *mode_p = (*mode_p & ~S_IRWXUGO) | mode; mode 473 fs/posix_acl.c static int __posix_acl_chmod_masq(struct posix_acl *acl, umode_t mode) mode 483 fs/posix_acl.c pa->e_perm = (mode & S_IRWXU) >> 6; mode 499 fs/posix_acl.c pa->e_perm = (mode & S_IRWXO); mode 508 fs/posix_acl.c mask_obj->e_perm = (mode & S_IRWXG) >> 3; mode 512 fs/posix_acl.c group_obj->e_perm = (mode & S_IRWXG) >> 3; mode 537 fs/posix_acl.c __posix_acl_chmod(struct posix_acl **acl, gfp_t gfp, umode_t mode) mode 542 fs/posix_acl.c err = __posix_acl_chmod_masq(clone, mode); mode 555 fs/posix_acl.c posix_acl_chmod(struct inode *inode, umode_t mode) mode 572 fs/posix_acl.c ret = __posix_acl_chmod(&acl, GFP_KERNEL, mode); mode 582 fs/posix_acl.c posix_acl_create(struct inode *dir, umode_t *mode, mode 592 fs/posix_acl.c if (S_ISLNK(*mode) || !IS_POSIXACL(dir)) mode 597 fs/posix_acl.c *mode &= ~current_umask(); mode 608 fs/posix_acl.c ret = posix_acl_create_masq(clone, mode); mode 617 fs/posix_acl.c if (!S_ISDIR(*mode)) mode 647 fs/posix_acl.c umode_t mode = inode->i_mode; mode 650 fs/posix_acl.c error = posix_acl_equiv_mode(*acl, &mode); mode 657 fs/posix_acl.c mode &= ~S_ISGID; mode 658 fs/posix_acl.c *mode_p = mode; mode 344 fs/proc/array.c seq_put_decimal_ull(m, "\nSeccomp:\t", p->seccomp.mode); mode 119 fs/proc/base.c umode_t mode; mode 128 fs/proc/base.c .mode = MODE, \ mode 163 fs/proc/base.c if (S_ISDIR(entries[i].mode)) mode 775 fs/proc/base.c struct mm_struct *proc_mem_open(struct inode *inode, unsigned int mode) mode 781 fs/proc/base.c mm = mm_access(task, mode | PTRACE_MODE_FSCREDS); mode 795 fs/proc/base.c static int __mem_open(struct inode *inode, struct file *file, unsigned int mode) mode 797 fs/proc/base.c struct mm_struct *mm = proc_mem_open(inode, mode); mode 1688 fs/proc/base.c void task_dump_owner(struct task_struct *task, umode_t mode, mode 1719 fs/proc/base.c if (mode != (S_IFDIR|S_IRUGO|S_IXUGO)) { mode 1747 fs/proc/base.c struct task_struct *task, umode_t mode) mode 1760 fs/proc/base.c inode->i_mode = mode; mode 2055 fs/proc/base.c fmode_t mode; mode 2087 fs/proc/base.c fmode_t mode = (fmode_t)(unsigned long)ptr; mode 2092 fs/proc/base.c ((mode & FMODE_READ ) ? S_IRUSR : 0) | mode 2093 fs/proc/base.c ((mode & FMODE_WRITE) ? S_IWUSR : 0)); mode 2226 fs/proc/base.c p->mode = vma->vm_file->f_mode; mode 2241 fs/proc/base.c (void *)(unsigned long)p->mode)) mode 2459 fs/proc/base.c inode = proc_pid_make_inode(dentry->d_sb, task, p->mode); mode 84 fs/proc/fd.c static bool tid_fd_mode(struct task_struct *task, unsigned fd, fmode_t *mode) mode 95 fs/proc/fd.c *mode = file->f_mode; mode 178 fs/proc/fd.c fmode_t mode; mode 200 fs/proc/fd.c tid_fd_update_inode(task, inode, data->mode); mode 218 fs/proc/fd.c if (!tid_fd_mode(task, data.fd, &data.mode)) mode 256 fs/proc/fd.c data.mode = f->f_mode; mode 39 fs/proc/generic.c if (S_ISLNK(pde->mode)) mode 132 fs/proc/generic.c de->mode = inode->i_mode; mode 309 fs/proc/generic.c de->low_ino, de->mode >> 12)) { mode 377 fs/proc/generic.c umode_t mode, mode 425 fs/proc/generic.c ent->mode = mode; mode 462 fs/proc/generic.c struct proc_dir_entry *proc_mkdir_data(const char *name, umode_t mode, mode 467 fs/proc/generic.c if (mode == 0) mode 468 fs/proc/generic.c mode = S_IRUGO | S_IXUGO; mode 470 fs/proc/generic.c ent = __proc_create(&parent, name, S_IFDIR | mode, 2); mode 484 fs/proc/generic.c struct proc_dir_entry *proc_mkdir_mode(const char *name, umode_t mode, mode 487 fs/proc/generic.c return proc_mkdir_data(name, mode, parent, NULL); mode 500 fs/proc/generic.c umode_t mode = S_IFDIR | S_IRUGO | S_IXUGO; mode 503 fs/proc/generic.c ent = __proc_create(&parent, name, mode, 2); mode 517 fs/proc/generic.c struct proc_dir_entry *proc_create_reg(const char *name, umode_t mode, mode 522 fs/proc/generic.c if ((mode & S_IFMT) == 0) mode 523 fs/proc/generic.c mode |= S_IFREG; mode 524 fs/proc/generic.c if ((mode & S_IALLUGO) == 0) mode 525 fs/proc/generic.c mode |= S_IRUGO; mode 526 fs/proc/generic.c if (WARN_ON_ONCE(!S_ISREG(mode))) mode 529 fs/proc/generic.c p = __proc_create(parent, name, mode, 1); mode 537 fs/proc/generic.c struct proc_dir_entry *proc_create_data(const char *name, umode_t mode, mode 545 fs/proc/generic.c p = proc_create_reg(name, mode, &parent, data); mode 553 fs/proc/generic.c struct proc_dir_entry *proc_create(const char *name, umode_t mode, mode 557 fs/proc/generic.c return proc_create_data(name, mode, parent, proc_fops, NULL); mode 586 fs/proc/generic.c struct proc_dir_entry *proc_create_seq_private(const char *name, umode_t mode, mode 592 fs/proc/generic.c p = proc_create_reg(name, mode, &parent, data); mode 616 fs/proc/generic.c struct proc_dir_entry *proc_create_single_data(const char *name, umode_t mode, mode 622 fs/proc/generic.c p = proc_create_reg(name, mode, &parent, data); mode 679 fs/proc/generic.c if (S_ISDIR(de->mode)) mode 721 fs/proc/generic.c if (S_ISDIR(de->mode)) mode 462 fs/proc/inode.c if (de->mode) { mode 463 fs/proc/inode.c inode->i_mode = de->mode; mode 60 fs/proc/internal.h umode_t mode; mode 124 fs/proc/internal.h void task_dump_owner(struct task_struct *task, umode_t mode, mode 174 fs/proc/internal.h struct proc_dir_entry *proc_create_reg(const char *name, umode_t mode, mode 192 fs/proc/internal.h return S_ISDIR(pde->mode) && !pde->proc_iops; mode 288 fs/proc/internal.h struct mm_struct *proc_mem_open(struct inode *inode, unsigned int mode); mode 101 fs/proc/proc_net.c struct proc_dir_entry *proc_create_net_data(const char *name, umode_t mode, mode 107 fs/proc/proc_net.c p = proc_create_reg(name, mode, &parent, data); mode 143 fs/proc/proc_net.c struct proc_dir_entry *proc_create_net_data_write(const char *name, umode_t mode, mode 151 fs/proc/proc_net.c p = proc_create_reg(name, mode, &parent, data); mode 194 fs/proc/proc_net.c struct proc_dir_entry *proc_create_net_single(const char *name, umode_t mode, mode 200 fs/proc/proc_net.c p = proc_create_reg(name, mode, &parent, data); mode 235 fs/proc/proc_net.c struct proc_dir_entry *proc_create_net_single_write(const char *name, umode_t mode, mode 243 fs/proc/proc_net.c p = proc_create_reg(name, mode, &parent, data); mode 63 fs/proc/proc_sysctl.c .mode = S_IFDIR|S_IRUGO|S_IXUGO, mode 439 fs/proc/proc_sysctl.c static int test_perm(int mode, int op) mode 442 fs/proc/proc_sysctl.c mode >>= 6; mode 444 fs/proc/proc_sysctl.c mode >>= 3; mode 445 fs/proc/proc_sysctl.c if ((op & ~mode & (MAY_READ|MAY_WRITE|MAY_EXEC)) == 0) mode 453 fs/proc/proc_sysctl.c int mode; mode 456 fs/proc/proc_sysctl.c mode = root->permissions(head, table); mode 458 fs/proc/proc_sysctl.c mode = table->mode; mode 460 fs/proc/proc_sysctl.c return test_perm(mode, op); mode 491 fs/proc/proc_sysctl.c inode->i_mode = table->mode; mode 492 fs/proc/proc_sysctl.c if (!S_ISDIR(table->mode)) { mode 552 fs/proc/proc_sysctl.c if (S_ISLNK(p->mode)) { mode 767 fs/proc/proc_sysctl.c if (unlikely(S_ISLNK(table->mode))) mode 864 fs/proc/proc_sysctl.c stat->mode = (stat->mode & S_IFMT) | table->mode; mode 959 fs/proc/proc_sysctl.c if (!S_ISDIR(entry->mode)) mode 984 fs/proc/proc_sysctl.c table[0].mode = S_IFDIR|S_IRUGO|S_IXUGO; mode 1155 fs/proc/proc_sysctl.c if ((table->mode & (S_IRUGO|S_IWUGO)) != table->mode) mode 1157 fs/proc/proc_sysctl.c table->mode); mode 1195 fs/proc/proc_sysctl.c link->mode = S_IFLNK|S_IRWXUGO; mode 1217 fs/proc/proc_sysctl.c if (S_ISDIR(link->mode) && S_ISDIR(entry->mode)) mode 1219 fs/proc/proc_sysctl.c if (S_ISLNK(link->mode) && (link->data == link_root)) mode 1635 fs/proc/proc_sysctl.c ((S_ISDIR(link->mode) && S_ISDIR(entry->mode)) || mode 1636 fs/proc/proc_sysctl.c (S_ISLNK(link->mode) && (link->data == root)))) { mode 291 fs/proc/root.c .mode = S_IFDIR | S_IRUGO | S_IXUGO, mode 49 fs/pstore/pmsg.c static char *pmsg_devnode(struct device *dev, umode_t *mode) mode 51 fs/pstore/pmsg.c if (mode) mode 52 fs/pstore/pmsg.c *mode = 0220; mode 2883 fs/quota/dquot.c .mode = 0444, mode 2890 fs/quota/dquot.c .mode = 0444, mode 2897 fs/quota/dquot.c .mode = 0444, mode 2904 fs/quota/dquot.c .mode = 0444, mode 2911 fs/quota/dquot.c .mode = 0444, mode 2918 fs/quota/dquot.c .mode = 0444, mode 2925 fs/quota/dquot.c .mode = 0444, mode 2932 fs/quota/dquot.c .mode = 0444, mode 2940 fs/quota/dquot.c .mode = 0644, mode 2950 fs/quota/dquot.c .mode = 0555, mode 2959 fs/quota/dquot.c .mode = 0555, mode 44 fs/ramfs/inode.c umode_t mode; mode 64 fs/ramfs/inode.c const struct inode *dir, umode_t mode, dev_t dev) mode 70 fs/ramfs/inode.c inode_init_owner(inode, dir, mode); mode 75 fs/ramfs/inode.c switch (mode & S_IFMT) { mode 77 fs/ramfs/inode.c init_special_inode(inode, mode, dev); mode 104 fs/ramfs/inode.c ramfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) mode 106 fs/ramfs/inode.c struct inode * inode = ramfs_get_inode(dir->i_sb, dir, mode, dev); mode 118 fs/ramfs/inode.c static int ramfs_mkdir(struct inode * dir, struct dentry * dentry, umode_t mode) mode 120 fs/ramfs/inode.c int retval = ramfs_mknod(dir, dentry, mode | S_IFDIR, 0); mode 126 fs/ramfs/inode.c static int ramfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl) mode 128 fs/ramfs/inode.c return ramfs_mknod(dir, dentry, mode | S_IFREG, 0); mode 169 fs/ramfs/inode.c if (fsi->mount_opts.mode != RAMFS_DEFAULT_MODE) mode 170 fs/ramfs/inode.c seq_printf(m, ",mode=%o", fsi->mount_opts.mode); mode 215 fs/ramfs/inode.c fsi->mount_opts.mode = result.uint_32 & S_IALLUGO; mode 234 fs/ramfs/inode.c inode = ramfs_get_inode(sb, NULL, S_IFDIR | fsi->mount_opts.mode, 0); mode 266 fs/ramfs/inode.c fsi->mount_opts.mode = RAMFS_DEFAULT_MODE; mode 31 fs/reiserfs/fix_node.c static inline int old_item_num(int new_num, int affected_item_num, int mode) mode 33 fs/reiserfs/fix_node.c if (mode == M_PASTE || mode == M_CUT || new_num < affected_item_num) mode 36 fs/reiserfs/fix_node.c if (mode == M_INSERT) { mode 44 fs/reiserfs/fix_node.c RFALSE(mode != M_DELETE, mode 46 fs/reiserfs/fix_node.c mode); mode 374 fs/reiserfs/fix_node.c static int get_num_ver(int mode, struct tree_balance *tb, int h, mode 417 fs/reiserfs/fix_node.c RFALSE(tb->insert_size[h] < 0 || (mode != M_INSERT && mode != M_PASTE), mode 1273 fs/reiserfs/fix_node.c static inline int can_node_be_removed(int mode, int lfree, int sfree, int rfree, mode 1300 fs/reiserfs/fix_node.c ((mode == M_INSERT) ? 1 : 0); mode 2061 fs/reiserfs/fix_node.c static int check_balance(int mode, mode 2072 fs/reiserfs/fix_node.c vn->vn_mode = mode; mode 2078 fs/reiserfs/fix_node.c RFALSE(mode == M_INSERT && !vn->vn_ins_ih, mode 492 fs/reiserfs/ibalance.c int mode, mode 500 fs/reiserfs/ibalance.c internal_define_dest_src_infos(mode, tb, h, &dest_bi, &src_bi, mode 564 fs/reiserfs/ibalance.c int mode, mode 573 fs/reiserfs/ibalance.c internal_define_dest_src_infos(mode, tb, h, &dest_bi, &src_bi, mode 1927 fs/reiserfs/inode.c struct inode *dir, umode_t mode, const char *symname, mode 1999 fs/reiserfs/inode.c set_nlink(inode, (S_ISDIR(mode) ? 2 : 1)); mode 2007 fs/reiserfs/inode.c REISERFS_I(inode)->i_first_direct_byte = S_ISLNK(mode) ? 1 : mode 2053 fs/reiserfs/inode.c if (old_format_only(sb) || S_ISDIR(mode) || S_ISLNK(mode)) mode 2079 fs/reiserfs/inode.c if (S_ISDIR(mode)) { mode 2085 fs/reiserfs/inode.c if (S_ISLNK(mode)) { mode 431 fs/reiserfs/item_ops.c int pos_in_item, int mode) mode 433 fs/reiserfs/item_ops.c if (mode == M_INSERT || mode == M_DELETE) mode 443 fs/reiserfs/item_ops.c if (mode == M_CUT) mode 446 fs/reiserfs/item_ops.c RFALSE(mode != M_PASTE || virtual_entry_num == 0, mode 448 fs/reiserfs/item_ops.c mode); mode 606 fs/reiserfs/namei.c static int new_inode_init(struct inode *inode, struct inode *dir, umode_t mode) mode 618 fs/reiserfs/namei.c inode_init_owner(inode, dir, mode); mode 622 fs/reiserfs/namei.c static int reiserfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 645 fs/reiserfs/namei.c retval = new_inode_init(inode, dir, mode); mode 667 fs/reiserfs/namei.c reiserfs_new_inode(&th, dir, mode, NULL, 0 /*i_size */ , dentry, mode 701 fs/reiserfs/namei.c static int reiserfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, mode 724 fs/reiserfs/namei.c retval = new_inode_init(inode, dir, mode); mode 746 fs/reiserfs/namei.c reiserfs_new_inode(&th, dir, mode, NULL, 0 /*i_size */ , dentry, mode 784 fs/reiserfs/namei.c static int reiserfs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 810 fs/reiserfs/namei.c mode = S_IFDIR | mode; mode 814 fs/reiserfs/namei.c retval = new_inode_init(inode, dir, mode); mode 841 fs/reiserfs/namei.c retval = reiserfs_new_inode(&th, dir, mode, NULL /*symlink */ , mode 1106 fs/reiserfs/namei.c int mode = S_IFLNK | S_IRWXUGO; mode 1123 fs/reiserfs/namei.c retval = new_inode_init(inode, parent_dir, mode); mode 1162 fs/reiserfs/namei.c reiserfs_new_inode(&th, parent_dir, mode, name, strlen(symname), mode 614 fs/reiserfs/prints.c int mode, first, last; mode 623 fs/reiserfs/prints.c mode = va_arg(args, int); mode 626 fs/reiserfs/prints.c if (print_leaf(bh, mode, first, last)) mode 3090 fs/reiserfs/reiserfs.h struct inode *dir, umode_t mode, mode 1143 fs/reiserfs/stree.c static int calc_deleted_bytes_number(struct tree_balance *tb, char mode) mode 1152 fs/reiserfs/stree.c (mode == mode 1243 fs/reiserfs/stree.c char mode; mode 1257 fs/reiserfs/stree.c mode = mode 1264 fs/reiserfs/stree.c RFALSE(mode != M_DELETE, "PAP-5320: mode must be M_DELETE"); mode 1541 fs/reiserfs/stree.c loff_t new_file_size, char *mode) mode 1558 fs/reiserfs/stree.c *mode = M_SKIP_BALANCING; mode 1567 fs/reiserfs/stree.c new_file_size, mode); mode 1637 fs/reiserfs/stree.c char mode; /* Mode of the balance. */ mode 1660 fs/reiserfs/stree.c mode = mode 1664 fs/reiserfs/stree.c if (mode == M_CONVERT) { mode 1675 fs/reiserfs/stree.c new_file_size, &mode); mode 1676 fs/reiserfs/stree.c if (mode == M_SKIP_BALANCING) mode 1721 fs/reiserfs/stree.c ret_value = fix_nodes(mode, &s_cut_balance, NULL, NULL); mode 1756 fs/reiserfs/stree.c RFALSE(mode == M_PASTE || mode == M_INSERT, "invalid mode"); mode 1760 fs/reiserfs/stree.c (mode == mode 1764 fs/reiserfs/stree.c ret_value = calc_deleted_bytes_number(&s_cut_balance, mode); mode 1774 fs/reiserfs/stree.c if (mode == M_DELETE && mode 1797 fs/reiserfs/stree.c if (mode == M_DELETE && ih_item_len(le_ih) != UNFM_P_SIZE) mode 1803 fs/reiserfs/stree.c if (mode == M_CUT mode 1817 fs/reiserfs/stree.c do_balance(&s_cut_balance, NULL, NULL, mode); mode 1349 fs/reiserfs/super.c static void switch_data_mode(struct super_block *s, unsigned long mode) mode 1354 fs/reiserfs/super.c REISERFS_SB(s)->s_mount_opt |= (1 << mode); mode 209 fs/reiserfs/tail_conversion.c char *mode) mode 223 fs/reiserfs/tail_conversion.c *mode = M_SKIP_BALANCING; mode 311 fs/reiserfs/tail_conversion.c *mode = M_CUT; mode 66 fs/reiserfs/xattr.c static int xattr_create(struct inode *dir, struct dentry *dentry, int mode) mode 69 fs/reiserfs/xattr.c return dir->i_op->create(dir, dentry, mode, true); mode 73 fs/reiserfs/xattr.c static int xattr_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 76 fs/reiserfs/xattr.c return dir->i_op->mkdir(dir, dentry, mode); mode 28 fs/reiserfs/xattr_acl.c umode_t mode = inode->i_mode; mode 43 fs/reiserfs/xattr_acl.c error = posix_acl_update_mode(inode, &mode, &acl); mode 50 fs/reiserfs/xattr_acl.c inode->i_mode = mode; mode 286 fs/romfs/super.c umode_t mode; mode 328 fs/romfs/super.c mode = romfs_modemap[nextfh & ROMFH_TYPE]; mode 336 fs/romfs/super.c mode |= S_IXUGO; mode 342 fs/romfs/super.c mode |= S_IXUGO; mode 348 fs/romfs/super.c mode |= S_IRWXUGO; mode 353 fs/romfs/super.c init_special_inode(i, mode, MKDEV(nextfh >> 16, mode 358 fs/romfs/super.c i->i_mode = mode; mode 184 fs/select.c static int __pollwake(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) mode 207 fs/select.c return default_wake_function(&dummy_wait, mode, sync, key); mode 210 fs/select.c static int pollwake(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) mode 217 fs/select.c return __pollwake(wait, mode, sync, key); mode 65 fs/squashfs/inode.c inode->i_mode = le16_to_cpu(sqsh_ino->mode); mode 270 fs/squashfs/squashfs_fs.h __le16 mode; mode 279 fs/squashfs/squashfs_fs.h __le16 mode; mode 289 fs/squashfs/squashfs_fs.h __le16 mode; mode 300 fs/squashfs/squashfs_fs.h __le16 mode; mode 311 fs/squashfs/squashfs_fs.h __le16 mode; mode 323 fs/squashfs/squashfs_fs.h __le16 mode; mode 335 fs/squashfs/squashfs_fs.h __le16 mode; mode 349 fs/squashfs/squashfs_fs.h __le16 mode; mode 366 fs/squashfs/squashfs_fs.h __le16 mode; mode 380 fs/squashfs/squashfs_fs.h __le16 mode; mode 37 fs/stat.c stat->mode = inode->i_mode; mode 228 fs/stat.c tmp.st_mode = stat->mode; mode 316 fs/stat.c tmp.st_mode = stat->mode; mode 462 fs/stat.c tmp.st_mode = stat->mode; mode 539 fs/stat.c tmp.stx_mode = stat->mode; mode 604 fs/stat.c tmp.st_mode = stat->mode; mode 1283 fs/super.c fmode_t mode = FMODE_READ | FMODE_EXCL; mode 1287 fs/super.c mode |= FMODE_WRITE; mode 1292 fs/super.c bdev = blkdev_get_by_path(fc->source, mode, fc->fs_type); mode 1306 fs/super.c blkdev_put(bdev, mode); mode 1315 fs/super.c blkdev_put(bdev, mode); mode 1324 fs/super.c blkdev_put(bdev, mode); mode 1336 fs/super.c blkdev_put(bdev, mode); mode 1339 fs/super.c s->s_mode = mode; mode 1369 fs/super.c fmode_t mode = FMODE_READ | FMODE_EXCL; mode 1373 fs/super.c mode |= FMODE_WRITE; mode 1375 fs/super.c bdev = blkdev_get_by_path(dev_name, mode, fs_type); mode 1411 fs/super.c blkdev_put(bdev, mode); mode 1414 fs/super.c s->s_mode = mode; mode 1432 fs/super.c blkdev_put(bdev, mode); mode 1441 fs/super.c fmode_t mode = sb->s_mode; mode 1446 fs/super.c WARN_ON_ONCE(!(mode & FMODE_EXCL)); mode 1447 fs/super.c blkdev_put(bdev, mode | FMODE_EXCL); mode 247 fs/sysfs/file.c umode_t mode, kuid_t uid, kgid_t gid, const void *ns) mode 265 fs/sysfs/file.c if (mode & SYSFS_PREALLOC) mode 270 fs/sysfs/file.c if (mode & SYSFS_PREALLOC) mode 275 fs/sysfs/file.c if (mode & SYSFS_PREALLOC) mode 305 fs/sysfs/file.c kn = __kernfs_create_file(parent, attr->name, mode & 0777, uid, gid, mode 331 fs/sysfs/file.c return sysfs_add_file_mode_ns(kobj->sd, attr, false, attr->mode, mode 377 fs/sysfs/file.c attr->mode, uid, gid, NULL); mode 392 fs/sysfs/file.c umode_t mode) mode 402 fs/sysfs/file.c newattrs.ia_mode = (mode & S_IALLUGO) | (kn->mode & ~S_IALLUGO); mode 546 fs/sysfs/file.c attr->attr.mode, uid, gid, NULL); mode 43 fs/sysfs/group.c umode_t mode = (*attr)->mode; mode 53 fs/sysfs/group.c mode = grp->is_visible(kobj, *attr, i); mode 54 fs/sysfs/group.c if (!mode) mode 58 fs/sysfs/group.c WARN(mode & ~(SYSFS_PREALLOC | 0664), mode 60 fs/sysfs/group.c (*attr)->name, mode); mode 62 fs/sysfs/group.c mode &= SYSFS_PREALLOC | 0664; mode 64 fs/sysfs/group.c mode, uid, gid, NULL); mode 76 fs/sysfs/group.c umode_t mode = (*bin_attr)->attr.mode; mode 82 fs/sysfs/group.c mode = grp->is_bin_visible(kobj, *bin_attr, i); mode 83 fs/sysfs/group.c if (!mode) mode 87 fs/sysfs/group.c WARN(mode & ~(SYSFS_PREALLOC | 0664), mode 89 fs/sysfs/group.c (*bin_attr)->attr.name, mode); mode 91 fs/sysfs/group.c mode &= SYSFS_PREALLOC | 0664; mode 94 fs/sysfs/group.c mode, mode 343 fs/sysfs/group.c (*attr)->mode, uid, gid, NULL); mode 136 fs/sysv/ialloc.c struct inode * sysv_new_inode(const struct inode * dir, umode_t mode) mode 166 fs/sysv/ialloc.c inode_init_owner(inode, dir, mode); mode 44 fs/sysv/namei.c static int sysv_mknod(struct inode * dir, struct dentry * dentry, umode_t mode, dev_t rdev) mode 52 fs/sysv/namei.c inode = sysv_new_inode(dir, mode); mode 63 fs/sysv/namei.c static int sysv_create(struct inode * dir, struct dentry * dentry, umode_t mode, bool excl) mode 65 fs/sysv/namei.c return sysv_mknod(dir, dentry, mode, 0); mode 111 fs/sysv/namei.c static int sysv_mkdir(struct inode * dir, struct dentry *dentry, umode_t mode) mode 118 fs/sysv/namei.c inode = sysv_new_inode(dir, S_IFDIR|mode); mode 70 fs/tracefs/inode.c static int tracefs_syscall_mkdir(struct inode *inode, struct dentry *dentry, umode_t mode) mode 141 fs/tracefs/inode.c umode_t mode; mode 171 fs/tracefs/inode.c opts->mode = TRACEFS_DEFAULT_MODE; mode 198 fs/tracefs/inode.c opts->mode = option & S_IALLUGO; mode 217 fs/tracefs/inode.c inode->i_mode |= opts->mode; mode 252 fs/tracefs/inode.c if (opts->mode != TRACEFS_DEFAULT_MODE) mode 253 fs/tracefs/inode.c seq_printf(m, ",mode=%o", opts->mode); mode 387 fs/tracefs/inode.c struct dentry *tracefs_create_file(const char *name, umode_t mode, mode 397 fs/tracefs/inode.c if (!(mode & S_IFMT)) mode 398 fs/tracefs/inode.c mode |= S_IFREG; mode 399 fs/tracefs/inode.c BUG_ON(!S_ISREG(mode)); mode 409 fs/tracefs/inode.c inode->i_mode = mode; mode 431 fs/ubifs/debug.c pr_err("\tmode %u\n", le32_to_cpu(ino->mode)); mode 1759 fs/ubifs/debug.c umode_t mode; mode 1843 fs/ubifs/debug.c fscki->mode = le32_to_cpu(ino->mode); mode 1851 fs/ubifs/debug.c fscki->mode = inode->i_mode; mode 1855 fs/ubifs/debug.c if (S_ISDIR(fscki->mode)) { mode 2154 fs/ubifs/debug.c if (S_ISDIR(fscki->mode)) { mode 47 fs/ubifs/dir.c static int inherit_flags(const struct inode *dir, umode_t mode) mode 60 fs/ubifs/dir.c if (!S_ISDIR(mode)) mode 77 fs/ubifs/dir.c umode_t mode) mode 110 fs/ubifs/dir.c inode_init_owner(inode, dir, mode); mode 115 fs/ubifs/dir.c switch (mode & S_IFMT) { mode 140 fs/ubifs/dir.c ui->flags = inherit_flags(dir, mode); mode 142 fs/ubifs/dir.c if (S_ISREG(mode)) mode 281 fs/ubifs/dir.c static int ubifs_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 298 fs/ubifs/dir.c dentry, mode, dir->i_ino); mode 310 fs/ubifs/dir.c inode = ubifs_new_inode(c, dir, mode); mode 351 fs/ubifs/dir.c umode_t mode, struct inode **whiteout) mode 367 fs/ubifs/dir.c dentry, mode, dir->i_ino); mode 386 fs/ubifs/dir.c inode = ubifs_new_inode(c, dir, mode); mode 443 fs/ubifs/dir.c umode_t mode) mode 445 fs/ubifs/dir.c return do_tmpfile(dir, dentry, mode, NULL); mode 943 fs/ubifs/dir.c static int ubifs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 958 fs/ubifs/dir.c dentry, mode, dir->i_ino); mode 970 fs/ubifs/dir.c inode = ubifs_new_inode(c, dir, S_IFDIR | mode); mode 1015 fs/ubifs/dir.c umode_t mode, dev_t rdev) mode 1035 fs/ubifs/dir.c if (S_ISBLK(mode) || S_ISCHR(mode)) { mode 1057 fs/ubifs/dir.c inode = ubifs_new_inode(c, dir, mode); mode 1090 fs/ubifs/file.c umode_t mode = attr->ia_mode; mode 1093 fs/ubifs/file.c mode &= ~S_ISGID; mode 1094 fs/ubifs/file.c inode->i_mode = mode; mode 1464 fs/ubifs/file.c struct page *newpage, struct page *page, enum migrate_mode mode) mode 1477 fs/ubifs/file.c if (mode != MIGRATE_SYNC_NO_COPY) mode 416 fs/ubifs/journal.c static int get_dent_type(int mode) mode 418 fs/ubifs/journal.c switch (mode & S_IFMT) { mode 463 fs/ubifs/journal.c ino->mode = cpu_to_le32(inode->i_mode); mode 304 fs/ubifs/sb.c ino->mode = cpu_to_le32(S_IFDIR | S_IRUGO | S_IWUSR | S_IXUGO); mode 133 fs/ubifs/super.c inode->i_mode = le32_to_cpu(ino->mode); mode 2037 fs/ubifs/super.c static struct ubi_volume_desc *open_ubi(const char *name, int mode) mode 2047 fs/ubifs/super.c ubi = ubi_open_volume_path(name, mode); mode 2057 fs/ubifs/super.c return ubi_open_volume_nm(0, name + 4, mode); mode 2066 fs/ubifs/super.c return ubi_open_volume(0, dev, mode); mode 2073 fs/ubifs/super.c return ubi_open_volume(dev, vol, mode); mode 2078 fs/ubifs/super.c return ubi_open_volume_nm(dev, ++endptr, mode); mode 529 fs/ubifs/ubifs-media.h __le32 mode; mode 1996 fs/ubifs/ubifs.h umode_t mode); mode 48 fs/udf/ialloc.c struct inode *udf_new_inode(struct inode *dir, umode_t mode) mode 98 fs/udf/ialloc.c if (S_ISDIR(mode)) mode 106 fs/udf/ialloc.c inode_init_owner(inode, dir, mode); mode 122 fs/udf/ialloc.c udf_update_extra_perms(inode, mode); mode 1626 fs/udf/inode.c umode_t mode; mode 1633 fs/udf/inode.c mode = ((permissions) & 0007) | mode 1640 fs/udf/inode.c return mode; mode 1643 fs/udf/inode.c void udf_update_extra_perms(struct inode *inode, umode_t mode) mode 1652 fs/udf/inode.c if (mode & 0200) mode 1654 fs/udf/inode.c if (mode & 0020) mode 1656 fs/udf/inode.c if (mode & 0002) mode 608 fs/udf/namei.c static int udf_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 611 fs/udf/namei.c struct inode *inode = udf_new_inode(dir, mode); mode 627 fs/udf/namei.c static int udf_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) mode 629 fs/udf/namei.c struct inode *inode = udf_new_inode(dir, mode); mode 646 fs/udf/namei.c static int udf_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, mode 654 fs/udf/namei.c inode = udf_new_inode(dir, mode); mode 658 fs/udf/namei.c init_special_inode(inode, mode, rdev); mode 662 fs/udf/namei.c static int udf_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 671 fs/udf/namei.c inode = udf_new_inode(dir, S_IFDIR | mode); mode 173 fs/udf/udfdecl.h extern void udf_update_extra_perms(struct inode *inode, umode_t mode); mode 172 fs/ufs/ialloc.c struct inode *ufs_new_inode(struct inode *dir, umode_t mode) mode 280 fs/ufs/ialloc.c if (S_ISDIR(mode)) { mode 292 fs/ufs/ialloc.c inode_init_owner(inode, dir, mode); mode 564 fs/ufs/inode.c umode_t mode; mode 569 fs/ufs/inode.c inode->i_mode = mode = fs16_to_cpu(sb, ufs_inode->ui_mode); mode 594 fs/ufs/inode.c if (S_ISCHR(mode) || S_ISBLK(mode) || inode->i_blocks) { mode 609 fs/ufs/inode.c umode_t mode; mode 615 fs/ufs/inode.c inode->i_mode = mode = fs16_to_cpu(sb, ufs2_inode->ui_mode); mode 641 fs/ufs/inode.c if (S_ISCHR(mode) || S_ISBLK(mode) || inode->i_blocks) { mode 72 fs/ufs/namei.c static int ufs_create (struct inode * dir, struct dentry * dentry, umode_t mode, mode 77 fs/ufs/namei.c inode = ufs_new_inode(dir, mode); mode 88 fs/ufs/namei.c static int ufs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) mode 96 fs/ufs/namei.c inode = ufs_new_inode(dir, mode); mode 99 fs/ufs/namei.c init_special_inode(inode, mode, rdev); mode 167 fs/ufs/namei.c static int ufs_mkdir(struct inode * dir, struct dentry * dentry, umode_t mode) mode 174 fs/ufs/namei.c inode = ufs_new_inode(dir, S_IFDIR|mode); mode 156 fs/ufs/util.h ufs_set_de_type(struct super_block *sb, struct ufs_dir_entry *de, int mode) mode 164 fs/ufs/util.h switch (mode & S_IFMT) { mode 106 fs/userfaultfd.c static int userfaultfd_wake_function(wait_queue_entry_t *wq, unsigned mode, mode 127 fs/userfaultfd.c ret = wake_up_state(wq->private, mode); mode 1323 fs/userfaultfd.c if (!uffdio_register.mode) mode 1325 fs/userfaultfd.c if (uffdio_register.mode & ~(UFFDIO_REGISTER_MODE_MISSING| mode 1329 fs/userfaultfd.c if (uffdio_register.mode & UFFDIO_REGISTER_MODE_MISSING) mode 1331 fs/userfaultfd.c if (uffdio_register.mode & UFFDIO_REGISTER_MODE_WP) { mode 1732 fs/userfaultfd.c if (uffdio_copy.mode & ~UFFDIO_COPY_MODE_DONTWAKE) mode 1748 fs/userfaultfd.c if (!(uffdio_copy.mode & UFFDIO_COPY_MODE_DONTWAKE)) { mode 1782 fs/userfaultfd.c if (uffdio_zeropage.mode & ~UFFDIO_ZEROPAGE_MODE_DONTWAKE) mode 1800 fs/userfaultfd.c if (!(uffdio_zeropage.mode & UFFDIO_ZEROPAGE_MODE_DONTWAKE)) { mode 109 fs/verity/signature.c .mode = 0644, mode 29 fs/xfs/libxfs/xfs_dir2.c int mode) mode 31 fs/xfs/libxfs/xfs_dir2.c switch (mode & S_IFMT) { mode 27 fs/xfs/libxfs/xfs_dir2.h extern unsigned char xfs_mode_to_ftype(int mode); mode 925 fs/xfs/libxfs/xfs_ialloc.c umode_t mode) /* bits set to indicate file type */ mode 942 fs/xfs/libxfs/xfs_ialloc.c needspace = S_ISDIR(mode) || S_ISREG(mode) || S_ISLNK(mode); mode 945 fs/xfs/libxfs/xfs_ialloc.c if (S_ISDIR(mode)) mode 1680 fs/xfs/libxfs/xfs_ialloc.c umode_t mode, mode 1709 fs/xfs/libxfs/xfs_ialloc.c start_agno = xfs_ialloc_ag_select(tp, parent, mode); mode 61 fs/xfs/libxfs/xfs_ialloc.h umode_t mode, /* mode bits for new inode */ mode 448 fs/xfs/libxfs/xfs_inode_buf.c uint16_t mode; mode 474 fs/xfs/libxfs/xfs_inode_buf.c mode = be16_to_cpu(dip->di_mode); mode 475 fs/xfs/libxfs/xfs_inode_buf.c if (mode && xfs_mode_to_ftype(mode) == XFS_DIR3_FT_UNKNOWN) mode 479 fs/xfs/libxfs/xfs_inode_buf.c if ((S_ISLNK(mode) || S_ISDIR(mode)) && di_size == 0) mode 483 fs/xfs/libxfs/xfs_inode_buf.c if (mode && mode 488 fs/xfs/libxfs/xfs_inode_buf.c if (mode && XFS_DFORK_BOFF(dip) > mp->m_sb.sb_inodesize) mode 493 fs/xfs/libxfs/xfs_inode_buf.c if (mode && (flags & XFS_DIFLAG_REALTIME) && !mp->m_rtdev_targp) mode 502 fs/xfs/libxfs/xfs_inode_buf.c switch (mode & S_IFMT) { mode 548 fs/xfs/libxfs/xfs_inode_buf.c mode, flags); mode 564 fs/xfs/libxfs/xfs_inode_buf.c if ((flags2 & XFS_DIFLAG2_REFLINK) && (mode & S_IFMT) != S_IFREG) mode 577 fs/xfs/libxfs/xfs_inode_buf.c mode, flags, flags2); mode 731 fs/xfs/libxfs/xfs_inode_buf.c uint16_t mode, mode 750 fs/xfs/libxfs/xfs_inode_buf.c if ((hint_flag || inherit_flag) && !(S_ISDIR(mode) || S_ISREG(mode))) mode 753 fs/xfs/libxfs/xfs_inode_buf.c if (hint_flag && !S_ISREG(mode)) mode 756 fs/xfs/libxfs/xfs_inode_buf.c if (inherit_flag && !S_ISDIR(mode)) mode 763 fs/xfs/libxfs/xfs_inode_buf.c if (mode && !(hint_flag || inherit_flag) && extsize != 0) mode 788 fs/xfs/libxfs/xfs_inode_buf.c uint16_t mode, mode 803 fs/xfs/libxfs/xfs_inode_buf.c if (hint_flag && !(S_ISDIR(mode) || S_ISREG(mode))) mode 810 fs/xfs/libxfs/xfs_inode_buf.c if (mode && !hint_flag && cowextsize != 0) mode 76 fs/xfs/libxfs/xfs_inode_buf.h uint32_t extsize, uint16_t mode, uint16_t flags); mode 78 fs/xfs/libxfs/xfs_inode_buf.h uint32_t cowextsize, uint16_t mode, uint16_t flags, mode 73 fs/xfs/scrub/inode.c uint16_t mode, mode 79 fs/xfs/scrub/inode.c mode, flags); mode 95 fs/xfs/scrub/inode.c uint16_t mode, mode 102 fs/xfs/scrub/inode.c be32_to_cpu(dip->di_cowextsize), mode, flags, mode 114 fs/xfs/scrub/inode.c uint16_t mode, mode 137 fs/xfs/scrub/inode.c !S_ISDIR(mode)) mode 142 fs/xfs/scrub/inode.c !S_ISREG(mode)) mode 160 fs/xfs/scrub/inode.c uint16_t mode, mode 178 fs/xfs/scrub/inode.c if ((flags2 & XFS_DIFLAG2_DAX) && !(S_ISREG(mode) || S_ISDIR(mode))) mode 182 fs/xfs/scrub/inode.c if ((flags2 & XFS_DIFLAG2_REFLINK) && !S_ISREG(mode)) mode 211 fs/xfs/scrub/inode.c uint16_t mode; mode 220 fs/xfs/scrub/inode.c mode = be16_to_cpu(dip->di_mode); mode 221 fs/xfs/scrub/inode.c switch (mode & S_IFMT) { mode 273 fs/xfs/scrub/inode.c if (!S_ISCHR(mode) && !S_ISBLK(mode) && mode 274 fs/xfs/scrub/inode.c !S_ISFIFO(mode) && !S_ISSOCK(mode)) mode 278 fs/xfs/scrub/inode.c if (!S_ISDIR(mode) && !S_ISLNK(mode)) mode 282 fs/xfs/scrub/inode.c if (!S_ISREG(mode) && !S_ISDIR(mode) && !S_ISLNK(mode)) mode 286 fs/xfs/scrub/inode.c if (!S_ISREG(mode) && !S_ISDIR(mode)) mode 313 fs/xfs/scrub/inode.c if (!S_ISDIR(mode) && !S_ISREG(mode) && !S_ISLNK(mode) && isize != 0) mode 317 fs/xfs/scrub/inode.c if (S_ISDIR(mode) && (isize == 0 || isize >= XFS_DIR2_SPACE_SIZE)) mode 321 fs/xfs/scrub/inode.c if (S_ISLNK(mode) && (isize == 0 || isize >= XFS_SYMLINK_MAXLEN)) mode 352 fs/xfs/scrub/inode.c xchk_inode_flags(sc, dip, ino, mode, flags); mode 354 fs/xfs/scrub/inode.c xchk_inode_extsize(sc, dip, ino, mode, flags); mode 408 fs/xfs/scrub/inode.c xchk_inode_flags2(sc, dip, ino, mode, flags, flags2); mode 409 fs/xfs/scrub/inode.c xchk_inode_cowextsize(sc, dip, ino, mode, flags, mode 212 fs/xfs/xfs_acl.c xfs_set_mode(struct inode *inode, umode_t mode) mode 216 fs/xfs/xfs_acl.c if (mode != inode->i_mode) { mode 220 fs/xfs/xfs_acl.c iattr.ia_mode = mode; mode 232 fs/xfs/xfs_acl.c umode_t mode; mode 244 fs/xfs/xfs_acl.c error = posix_acl_update_mode(inode, &mode, &acl); mode 261 fs/xfs/xfs_acl.c error = xfs_set_mode(inode, mode); mode 124 fs/xfs/xfs_error.c .mode = VERIFY_OCTAL_PERMISSIONS(S_IWUSR | S_IRUGO) }, \ mode 799 fs/xfs/xfs_file.c int mode, mode 813 fs/xfs/xfs_file.c if (mode & ~XFS_FALLOC_FL_SUPPORTED) mode 821 fs/xfs/xfs_file.c if (mode & FALLOC_FL_PUNCH_HOLE) { mode 825 fs/xfs/xfs_file.c } else if (mode & FALLOC_FL_COLLAPSE_RANGE) { mode 847 fs/xfs/xfs_file.c } else if (mode & FALLOC_FL_INSERT_RANGE) { mode 875 fs/xfs/xfs_file.c if (!(mode & FALLOC_FL_KEEP_SIZE) && mode 883 fs/xfs/xfs_file.c if (mode & FALLOC_FL_ZERO_RANGE) { mode 885 fs/xfs/xfs_file.c } else if (mode & FALLOC_FL_UNSHARE_RANGE) { mode 1049 fs/xfs/xfs_file.c int mode; mode 1060 fs/xfs/xfs_file.c mode = xfs_ilock_data_map_shared(ip); mode 1063 fs/xfs/xfs_file.c xfs_iunlock(ip, mode); mode 290 fs/xfs/xfs_icache.c umode_t mode = inode->i_mode; mode 298 fs/xfs/xfs_icache.c inode->i_mode = mode; mode 1370 fs/xfs/xfs_icache.c int mode) mode 1374 fs/xfs/xfs_icache.c return xfs_reclaim_inodes_ag(mp, mode, &nr_to_scan); mode 54 fs/xfs/xfs_icache.h int xfs_reclaim_inodes(struct xfs_mount *mp, int mode); mode 746 fs/xfs/xfs_inode.c umode_t mode, mode 765 fs/xfs/xfs_inode.c error = xfs_dialloc(tp, pip ? pip->i_ino : 0, mode, mode 807 fs/xfs/xfs_inode.c inode->i_mode = mode; mode 816 fs/xfs/xfs_inode.c if ((VFS_I(pip)->i_mode & S_ISGID) && S_ISDIR(mode)) mode 854 fs/xfs/xfs_inode.c switch (mode & S_IFMT) { mode 868 fs/xfs/xfs_inode.c if (S_ISDIR(mode)) { mode 877 fs/xfs/xfs_inode.c } else if (S_ISREG(mode)) { mode 965 fs/xfs/xfs_inode.c umode_t mode, mode 997 fs/xfs/xfs_inode.c code = xfs_ialloc(tp, dp, mode, nlink, rdev, prid, &ialloc_context, mode 1067 fs/xfs/xfs_inode.c code = xfs_ialloc(tp, dp, mode, nlink, rdev, prid, mode 1129 fs/xfs/xfs_inode.c umode_t mode, mode 1133 fs/xfs/xfs_inode.c int is_dir = S_ISDIR(mode); mode 1202 fs/xfs/xfs_inode.c error = xfs_dir_ialloc(&tp, dp, mode, is_dir ? 2 : 1, rdev, prid, &ip); mode 1285 fs/xfs/xfs_inode.c umode_t mode, mode 1326 fs/xfs/xfs_inode.c error = xfs_dir_ialloc(&tp, dp, mode, 0, 0, prid, &ip); mode 418 fs/xfs/xfs_inode.h umode_t mode, dev_t rdev, struct xfs_inode **ipp); mode 419 fs/xfs/xfs_inode.h int xfs_create_tmpfile(struct xfs_inode *dp, umode_t mode, mode 868 fs/xfs/xfs_iomap.c unsigned mode = XFS_ILOCK_SHARED; mode 882 fs/xfs/xfs_iomap.c mode = XFS_ILOCK_EXCL; mode 893 fs/xfs/xfs_iomap.c mode = XFS_ILOCK_EXCL; mode 898 fs/xfs/xfs_iomap.c if (!xfs_ilock_nowait(ip, mode)) mode 901 fs/xfs/xfs_iomap.c xfs_ilock(ip, mode); mode 909 fs/xfs/xfs_iomap.c if (mode == XFS_ILOCK_SHARED && is_write && xfs_is_cow_inode(ip)) { mode 910 fs/xfs/xfs_iomap.c xfs_iunlock(ip, mode); mode 911 fs/xfs/xfs_iomap.c mode = XFS_ILOCK_EXCL; mode 915 fs/xfs/xfs_iomap.c *lockmode = mode; mode 91 fs/xfs/xfs_iops.c int mode) mode 95 fs/xfs/xfs_iops.c namep->type = xfs_mode_to_ftype(mode); mode 125 fs/xfs/xfs_iops.c umode_t mode, mode 139 fs/xfs/xfs_iops.c if (S_ISCHR(mode) || S_ISBLK(mode)) { mode 146 fs/xfs/xfs_iops.c error = posix_acl_create(dir, &mode, &default_acl, &acl); mode 151 fs/xfs/xfs_iops.c error = xfs_dentry_mode_to_name(&name, dentry, mode); mode 156 fs/xfs/xfs_iops.c error = xfs_create(XFS_I(dir), &name, mode, rdev, &ip); mode 158 fs/xfs/xfs_iops.c error = xfs_create_tmpfile(XFS_I(dir), mode, &ip); mode 219 fs/xfs/xfs_iops.c umode_t mode, mode 222 fs/xfs/xfs_iops.c return xfs_generic_create(dir, dentry, mode, rdev, false); mode 229 fs/xfs/xfs_iops.c umode_t mode, mode 232 fs/xfs/xfs_iops.c return xfs_vn_mknod(dir, dentry, mode, 0); mode 239 fs/xfs/xfs_iops.c umode_t mode) mode 241 fs/xfs/xfs_iops.c return xfs_vn_mknod(dir, dentry, mode|S_IFDIR, 0); mode 366 fs/xfs/xfs_iops.c umode_t mode; mode 368 fs/xfs/xfs_iops.c mode = S_IFLNK | mode 370 fs/xfs/xfs_iops.c error = xfs_dentry_mode_to_name(&name, dentry, mode); mode 374 fs/xfs/xfs_iops.c error = xfs_symlink(XFS_I(dir), &name, symname, mode, &cip); mode 505 fs/xfs/xfs_iops.c stat->mode = inode->i_mode; mode 569 fs/xfs/xfs_iops.c umode_t mode = iattr->ia_mode; mode 574 fs/xfs/xfs_iops.c inode->i_mode |= mode & ~S_IFMT; mode 1128 fs/xfs/xfs_iops.c umode_t mode) mode 1130 fs/xfs/xfs_iops.c return xfs_generic_create(dir, dentry, mode, 0, true); mode 149 fs/xfs/xfs_symlink.c umode_t mode, mode 238 fs/xfs/xfs_symlink.c error = xfs_dir_ialloc(&tp, dp, S_IFLNK | (mode & ~S_IFMT), 1, 0, mode 11 fs/xfs/xfs_symlink.h const char *target_path, umode_t mode, struct xfs_inode **ipp); mode 58 fs/xfs/xfs_sysctl.c .mode = 0644, mode 67 fs/xfs/xfs_sysctl.c .mode = 0644, mode 76 fs/xfs/xfs_sysctl.c .mode = 0644, mode 86 fs/xfs/xfs_sysctl.c .mode = 0644, mode 95 fs/xfs/xfs_sysctl.c .mode = 0644, mode 104 fs/xfs/xfs_sysctl.c .mode = 0644, mode 113 fs/xfs/xfs_sysctl.c .mode = 0644, mode 122 fs/xfs/xfs_sysctl.c .mode = 0644, mode 131 fs/xfs/xfs_sysctl.c .mode = 0644, mode 140 fs/xfs/xfs_sysctl.c .mode = 0644, mode 149 fs/xfs/xfs_sysctl.c .mode = 0644, mode 158 fs/xfs/xfs_sysctl.c .mode = 0644, mode 167 fs/xfs/xfs_sysctl.c .mode = 0644, mode 176 fs/xfs/xfs_sysctl.c .mode = 0644, mode 187 fs/xfs/xfs_sysctl.c .mode = 0644, mode 200 fs/xfs/xfs_sysctl.c .mode = 0555, mode 209 fs/xfs/xfs_sysctl.c .mode = 0555, mode 115 include/drm/bridge/dw_hdmi.h struct drm_display_mode *mode); mode 126 include/drm/bridge/dw_hdmi.h const struct drm_display_mode *mode); mode 27 include/drm/bridge/dw_mipi_dsi.h const struct drm_display_mode *mode, mode 44 include/drm/bridge/dw_mipi_dsi.h const struct drm_display_mode *mode); mode 19 include/drm/drm_agpsupport.h unsigned long mode; mode 43 include/drm/drm_agpsupport.h int drm_agp_enable(struct drm_device *dev, struct drm_agp_mode mode); mode 98 include/drm/drm_agpsupport.h struct drm_agp_mode mode) mode 43 include/drm/drm_atomic_uapi.h const struct drm_display_mode *mode); mode 95 include/drm/drm_bridge.h const struct drm_display_mode *mode); mode 133 include/drm/drm_bridge.h const struct drm_display_mode *mode, mode 199 include/drm/drm_bridge.h const struct drm_display_mode *mode, mode 410 include/drm/drm_bridge.h const struct drm_display_mode *mode, mode 413 include/drm/drm_bridge.h const struct drm_display_mode *mode); mode 417 include/drm/drm_bridge.h const struct drm_display_mode *mode, mode 161 include/drm/drm_client.h int drm_client_modeset_dpms(struct drm_client_dev *client, int mode); mode 513 include/drm/drm_connector.h unsigned int mode; mode 686 include/drm/drm_connector.h int (*dpms)(struct drm_connector *connector, int mode); mode 245 include/drm/drm_crtc.h struct drm_display_mode mode; mode 970 include/drm/drm_crtc.h struct drm_display_mode mode; mode 1132 include/drm/drm_crtc.h struct drm_display_mode *mode; mode 50 include/drm/drm_crtc_helper.h struct drm_display_mode *mode, mode 56 include/drm/drm_crtc_helper.h int drm_helper_connector_dpms(struct drm_connector *connector, int mode); mode 374 include/drm/drm_drv.h const struct drm_display_mode *mode); mode 343 include/drm/drm_edid.h const struct drm_display_mode *mode); mode 360 include/drm/drm_edid.h const struct drm_display_mode *mode); mode 364 include/drm/drm_edid.h const struct drm_display_mode *mode); mode 373 include/drm/drm_edid.h const struct drm_display_mode *mode, mode 488 include/drm/drm_edid.h drm_default_rgb_quant_range(const struct drm_display_mode *mode); mode 53 include/drm/drm_encoder_slave.h void (*dpms)(struct drm_encoder *encoder, int mode); mode 57 include/drm/drm_encoder_slave.h const struct drm_display_mode *mode, mode 60 include/drm/drm_encoder_slave.h struct drm_display_mode *mode); mode 62 include/drm/drm_encoder_slave.h struct drm_display_mode *mode, mode 167 include/drm/drm_encoder_slave.h void drm_i2c_encoder_dpms(struct drm_encoder *encoder, int mode); mode 169 include/drm/drm_encoder_slave.h const struct drm_display_mode *mode, mode 174 include/drm/drm_encoder_slave.h struct drm_display_mode *mode, mode 95 include/drm/drm_mipi_dbi.h struct drm_display_mode mode; mode 138 include/drm/drm_mipi_dbi.h const struct drm_display_mode *mode, mode 142 include/drm/drm_mipi_dbi.h const struct drm_display_mode *mode, unsigned int rotation); mode 263 include/drm/drm_mipi_dsi.h int mipi_dsi_dcs_get_power_mode(struct mipi_dsi_device *dsi, u8 *mode); mode 275 include/drm/drm_mipi_dsi.h enum mipi_dsi_dcs_tear_mode mode); mode 238 include/drm/drm_mm.h enum drm_mm_insert_mode mode; mode 410 include/drm/drm_mm.h enum drm_mm_insert_mode mode); mode 433 include/drm/drm_mm.h enum drm_mm_insert_mode mode) mode 437 include/drm/drm_mm.h 0, U64_MAX, mode); mode 508 include/drm/drm_mm.h enum drm_mm_insert_mode mode); mode 534 include/drm/drm_mm.h enum drm_mm_insert_mode mode) mode 538 include/drm/drm_mm.h 0, U64_MAX, mode); mode 120 include/drm/drm_mode_config.h const struct drm_display_mode *mode); mode 456 include/drm/drm_modes.h static inline bool drm_mode_is_stereo(const struct drm_display_mode *mode) mode 458 include/drm/drm_modes.h return mode->flags & DRM_MODE_FLAG_3D_MASK; mode 465 include/drm/drm_modes.h void drm_mode_destroy(struct drm_device *dev, struct drm_display_mode *mode); mode 471 include/drm/drm_modes.h void drm_mode_probed_add(struct drm_connector *connector, struct drm_display_mode *mode); mode 472 include/drm/drm_modes.h void drm_mode_debug_printmodeline(const struct drm_display_mode *mode); mode 474 include/drm/drm_modes.h const struct drm_display_mode *mode); mode 476 include/drm/drm_modes.h const struct drm_display_mode *mode); mode 478 include/drm/drm_modes.h const struct drm_display_mode *mode); mode 502 include/drm/drm_modes.h void drm_mode_set_name(struct drm_display_mode *mode); mode 503 include/drm/drm_modes.h int drm_mode_hsync(const struct drm_display_mode *mode); mode 504 include/drm/drm_modes.h int drm_mode_vrefresh(const struct drm_display_mode *mode); mode 505 include/drm/drm_modes.h void drm_mode_get_hv_timing(const struct drm_display_mode *mode, mode 513 include/drm/drm_modes.h const struct drm_display_mode *mode); mode 526 include/drm/drm_modes.h const struct drm_display_mode *mode); mode 527 include/drm/drm_modes.h enum drm_mode_status drm_mode_validate_size(const struct drm_display_mode *mode, mode 530 include/drm/drm_modes.h drm_mode_validate_ycbcr420(const struct drm_display_mode *mode, mode 541 include/drm/drm_modes.h struct drm_cmdline_mode *mode); mode 78 include/drm/drm_modeset_helper_vtables.h void (*dpms)(struct drm_crtc *crtc, int mode); mode 142 include/drm/drm_modeset_helper_vtables.h const struct drm_display_mode *mode); mode 188 include/drm/drm_modeset_helper_vtables.h const struct drm_display_mode *mode, mode 206 include/drm/drm_modeset_helper_vtables.h int (*mode_set)(struct drm_crtc *crtc, struct drm_display_mode *mode, mode 489 include/drm/drm_modeset_helper_vtables.h void (*dpms)(struct drm_encoder *encoder, int mode); mode 523 include/drm/drm_modeset_helper_vtables.h const struct drm_display_mode *mode); mode 566 include/drm/drm_modeset_helper_vtables.h const struct drm_display_mode *mode, mode 622 include/drm/drm_modeset_helper_vtables.h struct drm_display_mode *mode, mode 939 include/drm/drm_modeset_helper_vtables.h struct drm_display_mode *mode); mode 53 include/drm/drm_simple_kms_helper.h const struct drm_display_mode *mode); mode 226 include/drm/drm_vblank.h const struct drm_display_mode *mode); mode 33 include/dt-bindings/pinctrl/stm32-pinfunc.h #define STM32_PINMUX(port, line, mode) (((PIN_NO(port, line)) << 8) | (mode)) mode 49 include/linux/agp_backend.h unsigned long mode; mode 44 include/linux/amba/clcd.h struct fb_videomode mode; mode 363 include/linux/audit.h extern void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode); mode 368 include/linux/audit.h extern void __audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr); mode 392 include/linux/audit.h static inline void audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode) mode 395 include/linux/audit.h __audit_ipc_set_perm(qbytes, uid, gid, mode); mode 428 include/linux/audit.h static inline void audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr) mode 431 include/linux/audit.h __audit_mq_open(oflag, mode, attr); mode 579 include/linux/audit.h gid_t gid, umode_t mode) mode 599 include/linux/audit.h static inline void audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr) mode 59 include/linux/balloon_compaction.h struct page *page, enum migrate_mode mode); mode 84 include/linux/balloon_compaction.h isolate_mode_t mode); mode 88 include/linux/balloon_compaction.h struct page *page, enum migrate_mode mode); mode 169 include/linux/balloon_compaction.h struct page *page, enum migrate_mode mode) mode 367 include/linux/blkdev.h extern int blkdev_report_zones_ioctl(struct block_device *bdev, fmode_t mode, mode 369 include/linux/blkdev.h extern int blkdev_reset_zones_ioctl(struct block_device *bdev, fmode_t mode, mode 385 include/linux/blkdev.h fmode_t mode, unsigned int cmd, mode 392 include/linux/blkdev.h fmode_t mode, unsigned int cmd, mode 1252 include/linux/blkdev.h extern int blk_verify_command(unsigned char *cmd, fmode_t mode); mode 13 include/linux/bsg.h fmode_t mode); mode 65 include/linux/can/dev.h int (*do_set_mode)(struct net_device *dev, enum can_mode mode); mode 170 include/linux/ccp.h enum ccp_aes_mode mode; mode 343 include/linux/ccp.h enum ccp_des3_mode mode; mode 99 include/linux/cdrom.h fmode_t mode); mode 100 include/linux/cdrom.h extern void cdrom_release(struct cdrom_device_info *cdi, fmode_t mode); mode 102 include/linux/cdrom.h fmode_t mode, unsigned int cmd, unsigned long arg); mode 392 include/linux/ceph/ceph_fs.h __le32 mode; mode 408 include/linux/ceph/ceph_fs.h __le32 mode; mode 412 include/linux/ceph/ceph_fs.h __le32 mode; mode 416 include/linux/ceph/ceph_fs.h __le32 mode; mode 518 include/linux/ceph/ceph_fs.h __le32 mode, uid, gid; mode 662 include/linux/ceph/ceph_fs.h int ceph_caps_for_mode(int mode); mode 701 include/linux/ceph/ceph_fs.h __le32 uid, gid, mode; mode 197 include/linux/ceph/rados.h #define __CEPH_OSD_OP1(mode, nr) \ mode 198 include/linux/ceph/rados.h (CEPH_OSD_OP_MODE_##mode | (nr)) mode 200 include/linux/ceph/rados.h #define __CEPH_OSD_OP(mode, type, nr) \ mode 201 include/linux/ceph/rados.h (CEPH_OSD_OP_MODE_##mode | CEPH_OSD_OP_TYPE_##type | (nr)) mode 573 include/linux/compat.h int flags, umode_t mode); mode 742 include/linux/compat.h int oflag, compat_mode_t mode, mode 791 include/linux/compat.h compat_ulong_t mode, mode 799 include/linux/compat.h asmlinkage long compat_sys_set_mempolicy(int mode, compat_ulong_t __user *nmask, mode 866 include/linux/compat.h umode_t mode); mode 58 include/linux/console.h void (*con_cursor)(struct vc_data *vc, int mode); mode 183 include/linux/console.h extern void console_flush_on_panic(enum con_flush_mode mode); mode 210 include/linux/coresight.h int (*enable)(struct coresight_device *csdev, u32 mode, void *data); mode 246 include/linux/coresight.h struct perf_event *event, u32 mode); mode 61 include/linux/debugfs.h struct dentry *debugfs_create_file(const char *name, umode_t mode, mode 64 include/linux/debugfs.h struct dentry *debugfs_create_file_unsafe(const char *name, umode_t mode, mode 68 include/linux/debugfs.h struct dentry *debugfs_create_file_size(const char *name, umode_t mode, mode 100 include/linux/debugfs.h struct dentry *debugfs_create_u8(const char *name, umode_t mode, mode 102 include/linux/debugfs.h struct dentry *debugfs_create_u16(const char *name, umode_t mode, mode 104 include/linux/debugfs.h struct dentry *debugfs_create_u32(const char *name, umode_t mode, mode 106 include/linux/debugfs.h struct dentry *debugfs_create_u64(const char *name, umode_t mode, mode 108 include/linux/debugfs.h struct dentry *debugfs_create_ulong(const char *name, umode_t mode, mode 110 include/linux/debugfs.h struct dentry *debugfs_create_x8(const char *name, umode_t mode, mode 112 include/linux/debugfs.h struct dentry *debugfs_create_x16(const char *name, umode_t mode, mode 114 include/linux/debugfs.h struct dentry *debugfs_create_x32(const char *name, umode_t mode, mode 116 include/linux/debugfs.h struct dentry *debugfs_create_x64(const char *name, umode_t mode, mode 118 include/linux/debugfs.h struct dentry *debugfs_create_size_t(const char *name, umode_t mode, mode 120 include/linux/debugfs.h struct dentry *debugfs_create_atomic_t(const char *name, umode_t mode, mode 122 include/linux/debugfs.h struct dentry *debugfs_create_bool(const char *name, umode_t mode, mode 125 include/linux/debugfs.h struct dentry *debugfs_create_blob(const char *name, umode_t mode, mode 129 include/linux/debugfs.h struct dentry *debugfs_create_regset32(const char *name, umode_t mode, mode 136 include/linux/debugfs.h void debugfs_create_u32_array(const char *name, umode_t mode, mode 168 include/linux/debugfs.h static inline struct dentry *debugfs_create_file(const char *name, umode_t mode, mode 176 include/linux/debugfs.h umode_t mode, struct dentry *parent, mode 183 include/linux/debugfs.h static inline struct dentry *debugfs_create_file_size(const char *name, umode_t mode, mode 247 include/linux/debugfs.h static inline struct dentry *debugfs_create_u8(const char *name, umode_t mode, mode 254 include/linux/debugfs.h static inline struct dentry *debugfs_create_u16(const char *name, umode_t mode, mode 261 include/linux/debugfs.h static inline struct dentry *debugfs_create_u32(const char *name, umode_t mode, mode 268 include/linux/debugfs.h static inline struct dentry *debugfs_create_u64(const char *name, umode_t mode, mode 276 include/linux/debugfs.h umode_t mode, mode 283 include/linux/debugfs.h static inline struct dentry *debugfs_create_x8(const char *name, umode_t mode, mode 290 include/linux/debugfs.h static inline struct dentry *debugfs_create_x16(const char *name, umode_t mode, mode 297 include/linux/debugfs.h static inline struct dentry *debugfs_create_x32(const char *name, umode_t mode, mode 304 include/linux/debugfs.h static inline struct dentry *debugfs_create_x64(const char *name, umode_t mode, mode 311 include/linux/debugfs.h static inline struct dentry *debugfs_create_size_t(const char *name, umode_t mode, mode 318 include/linux/debugfs.h static inline struct dentry *debugfs_create_atomic_t(const char *name, umode_t mode, mode 324 include/linux/debugfs.h static inline struct dentry *debugfs_create_bool(const char *name, umode_t mode, mode 331 include/linux/debugfs.h static inline struct dentry *debugfs_create_blob(const char *name, umode_t mode, mode 339 include/linux/debugfs.h umode_t mode, struct dentry *parent, mode 355 include/linux/debugfs.h static inline void debugfs_create_u32_array(const char *name, umode_t mode, mode 150 include/linux/device-mapper.h fmode_t mode; mode 160 include/linux/device-mapper.h int dm_get_device(struct dm_target *ti, const char *path, fmode_t mode, mode 452 include/linux/device-mapper.h int dm_table_create(struct dm_table **result, fmode_t mode, mode 582 include/linux/device.h char *(*devnode)(struct device *dev, umode_t *mode); mode 797 include/linux/device.h char *(*devnode)(struct device *dev, umode_t *mode, mode 1514 include/linux/device.h umode_t *mode, kuid_t *uid, kgid_t *gid, mode 58 include/linux/device_cgroup.h static inline int devcgroup_inode_mknod(int mode, dev_t dev) mode 62 include/linux/device_cgroup.h if (!S_ISBLK(mode) && !S_ISCHR(mode)) mode 65 include/linux/device_cgroup.h if (S_ISBLK(mode)) mode 77 include/linux/device_cgroup.h static inline int devcgroup_inode_mknod(int mode, dev_t dev) mode 101 include/linux/dim.h u8 mode; mode 134 include/linux/dlm.h int mode, mode 142 include/linux/dlm.h void (*bast) (void *astarg, int mode)); mode 69 include/linux/dtlk.h unsigned char mode; /* 0=Character; 1=Phoneme; 2=Text */ mode 1422 include/linux/efi.h u32 mode; mode 1431 include/linux/efi.h u32 mode; mode 1440 include/linux/efi.h u32 mode; mode 1451 include/linux/efi.h u32 mode; mode 1458 include/linux/efi.h u64 mode; mode 1465 include/linux/efi.h struct efi_graphics_output_protocol_mode *mode; mode 133 include/linux/ethtool.h #define ethtool_link_ksettings_add_link_mode(ptr, name, mode) \ mode 134 include/linux/ethtool.h __set_bit(ETHTOOL_LINK_MODE_ ## mode ## _BIT, (ptr)->link_modes.name) mode 144 include/linux/ethtool.h #define ethtool_link_ksettings_del_link_mode(ptr, name, mode) \ mode 145 include/linux/ethtool.h __clear_bit(ETHTOOL_LINK_MODE_ ## mode ## _BIT, (ptr)->link_modes.name) mode 156 include/linux/ethtool.h #define ethtool_link_ksettings_test_link_mode(ptr, name, mode) \ mode 157 include/linux/ethtool.h test_bit(ETHTOOL_LINK_MODE_ ## mode ## _BIT, (ptr)->link_modes.name) mode 349 include/linux/fb.h __u32 mode; /* 0 = erase, 1 = draw */ mode 458 include/linux/fb.h struct fb_videomode *mode; /* current mode */ mode 721 include/linux/fb.h extern int fb_find_mode_cvt(struct fb_videomode *mode, int margins, int rb); mode 734 include/linux/fb.h extern void fb_var_to_videomode(struct fb_videomode *mode, mode 737 include/linux/fb.h const struct fb_videomode *mode); mode 740 include/linux/fb.h extern int fb_add_videomode(const struct fb_videomode *mode, mode 742 include/linux/fb.h extern void fb_delete_videomode(const struct fb_videomode *mode, mode 748 include/linux/fb.h extern const struct fb_videomode *fb_find_nearest_mode(const struct fb_videomode *mode, mode 788 include/linux/fb.h const struct fb_videomode *mode; mode 797 include/linux/fb.h struct fb_videomode mode; mode 13 include/linux/fbcon.h struct fb_videomode *mode); mode 31 include/linux/fbcon.h struct fb_videomode *mode) { return 0; } mode 287 include/linux/firmware/xlnx-zynqmp.h int (*set_suspend_mode)(u32 mode); mode 235 include/linux/freezer.h u64 delta, const enum hrtimer_mode mode) mode 239 include/linux/freezer.h __retval = schedule_hrtimeout_range(expires, delta, mode); mode 294 include/linux/freezer.h #define freezable_schedule_hrtimeout_range(expires, delta, mode) \ mode 295 include/linux/freezer.h schedule_hrtimeout_range(expires, delta, mode) mode 1283 include/linux/fs.h static inline int __break_lease(struct inode *inode, unsigned int mode, unsigned int type) mode 1722 include/linux/fs.h extern struct dentry *vfs_tmpfile(struct dentry *dentry, umode_t mode, mode 1742 include/linux/fs.h umode_t mode); mode 1850 include/linux/fs.h long (*fallocate)(struct file *file, int mode, loff_t offset, mode 2427 include/linux/fs.h static inline int break_lease(struct inode *inode, unsigned int mode) mode 2437 include/linux/fs.h return __break_lease(inode, mode, FL_LEASE); mode 2441 include/linux/fs.h static inline int break_deleg(struct inode *inode, unsigned int mode) mode 2451 include/linux/fs.h return __break_lease(inode, mode, FL_DELEG); mode 2488 include/linux/fs.h static inline int break_lease(struct inode *inode, unsigned int mode) mode 2493 include/linux/fs.h static inline int break_deleg(struct inode *inode, unsigned int mode) mode 2530 include/linux/fs.h extern int vfs_fallocate(struct file *file, int mode, loff_t offset, mode 2533 include/linux/fs.h umode_t mode); mode 2631 include/linux/fs.h extern int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder); mode 2632 include/linux/fs.h extern struct block_device *blkdev_get_by_path(const char *path, fmode_t mode, mode 2634 include/linux/fs.h extern struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode, mode 2642 include/linux/fs.h extern void blkdev_put(struct block_device *bdev, fmode_t mode); mode 3331 include/linux/fs.h struct tree_descr { const char *name; const struct file_operations *ops; int mode; }; mode 3522 include/linux/fs.h static inline bool is_sxid(umode_t mode) mode 3524 include/linux/fs.h return (mode & S_ISUID) || ((mode & S_ISGID) && (mode & S_IXGRP)); mode 30 include/linux/fs_types.h #define S_DT(mode) (((mode) & S_IFMT) >> S_DT_SHIFT) mode 72 include/linux/fs_types.h extern unsigned char fs_umode_to_ftype(umode_t mode); mode 73 include/linux/fs_types.h extern unsigned char fs_umode_to_dtype(umode_t mode); mode 283 include/linux/fsnotify.h fmode_t mode = file->f_mode; mode 284 include/linux/fsnotify.h __u32 mask = (mode & FMODE_WRITE) ? FS_CLOSE_WRITE : FS_CLOSE_NOWRITE; mode 64 include/linux/gameport.h int gameport_open(struct gameport *gameport, struct gameport_driver *drv, int mode); mode 192 include/linux/genhd.h char *(*devnode)(struct gendisk *gd, umode_t *mode); mode 863 include/linux/greybus/greybus_protocols.h __le16 mode; mode 873 include/linux/greybus/greybus_protocols.h __le16 mode; mode 909 include/linux/greybus/greybus_protocols.h __u8 mode; /* of the spi device */ mode 1701 include/linux/greybus/greybus_protocols.h __le32 mode; mode 376 include/linux/hrtimer.h enum hrtimer_mode mode); mode 378 include/linux/hrtimer.h enum hrtimer_mode mode); mode 382 include/linux/hrtimer.h enum hrtimer_mode mode); mode 385 include/linux/hrtimer.h enum hrtimer_mode mode); mode 391 include/linux/hrtimer.h enum hrtimer_mode mode) mode 393 include/linux/hrtimer.h hrtimer_init(timer, which_clock, mode); mode 398 include/linux/hrtimer.h enum hrtimer_mode mode) mode 400 include/linux/hrtimer.h hrtimer_init_sleeper(sl, clock_id, mode); mode 408 include/linux/hrtimer.h u64 range_ns, const enum hrtimer_mode mode); mode 419 include/linux/hrtimer.h const enum hrtimer_mode mode) mode 421 include/linux/hrtimer.h hrtimer_start_range_ns(timer, tim, 0, mode); mode 428 include/linux/hrtimer.h enum hrtimer_mode mode) mode 435 include/linux/hrtimer.h hrtimer_start_range_ns(timer, soft, delta, mode); mode 439 include/linux/hrtimer.h enum hrtimer_mode mode); mode 512 include/linux/hrtimer.h const enum hrtimer_mode mode, mode 516 include/linux/hrtimer.h const enum hrtimer_mode mode); mode 519 include/linux/hrtimer.h const enum hrtimer_mode mode, mode 521 include/linux/hrtimer.h extern int schedule_hrtimeout(ktime_t *expires, const enum hrtimer_mode mode); mode 78 include/linux/hsi/hsi.h unsigned int mode; mode 268 include/linux/hugetlb.h umode_t mode; mode 114 include/linux/hwspinlock.h int mode, unsigned long *flags) mode 120 include/linux/hwspinlock.h int __hwspin_trylock(struct hwspinlock *hwlock, int mode, unsigned long *flags) mode 126 include/linux/hwspinlock.h void __hwspin_unlock(struct hwspinlock *hwlock, int mode, unsigned long *flags) mode 955 include/linux/hyperv.h enum hv_callback_mode mode) mode 957 include/linux/hyperv.h c->callback_mode = mode; mode 158 include/linux/i3c/ccc.h u8 mode; mode 285 include/linux/i3c/ccc.h #define I3C_CCC_HDR_MODE(mode) BIT(mode) mode 336 include/linux/i3c/master.h enum i3c_bus_mode mode; mode 973 include/linux/ide.h umode_t mode; mode 1527 include/linux/ide.h u8 mode; mode 717 include/linux/ieee80211.h u8 mode; mode 728 include/linux/ieee80211.h u8 mode; mode 739 include/linux/ieee80211.h u8 mode; mode 30 include/linux/if_macvlan.h enum macvlan_mode mode; mode 95 include/linux/if_macvlan.h return macvlan->mode == MACVLAN_MODE_PRIVATE || mode 96 include/linux/if_macvlan.h macvlan->mode == MACVLAN_MODE_VEPA || mode 97 include/linux/if_macvlan.h macvlan->mode == MACVLAN_MODE_BRIDGE; mode 208 include/linux/if_team.h const struct team_mode *mode; mode 310 include/linux/if_team.h extern int team_mode_register(const struct team_mode *mode); mode 311 include/linux/if_team.h extern void team_mode_unregister(const struct team_mode *mode); mode 117 include/linux/igmp.h unsigned int mode); mode 24 include/linux/iio/adc/ad_sigma_delta.h unsigned int mode; mode 46 include/linux/iio/adc/ad_sigma_delta.h int (*set_mode)(struct ad_sigma_delta *, enum ad_sigma_delta_mode mode); mode 94 include/linux/iio/adc/ad_sigma_delta.h unsigned int mode) mode 97 include/linux/iio/adc/ad_sigma_delta.h return sd->info->set_mode(sd, mode); mode 41 include/linux/input/cma3000.h uint8_t mode; mode 9 include/linux/input/sh_keysc.h SH_KEYSC_MODE_4, SH_KEYSC_MODE_5, SH_KEYSC_MODE_6 } mode; mode 32 include/linux/intel_th.h void *(*assign)(struct device *dev, int *mode); mode 165 include/linux/iomap.h struct page *page, enum migrate_mode mode); mode 21 include/linux/ipc.h umode_t mode; mode 247 include/linux/ipmi.h int ipmi_set_maintenance_mode(struct ipmi_user *user, int mode); mode 160 include/linux/kernfs.h umode_t mode; mode 175 include/linux/kernfs.h umode_t mode); mode 345 include/linux/kernfs.h const char *name, umode_t mode, mode 351 include/linux/kernfs.h const char *name, umode_t mode, mode 443 include/linux/kernfs.h umode_t mode, kuid_t uid, kgid_t gid, mode 449 include/linux/kernfs.h umode_t mode, kuid_t uid, kgid_t gid, mode 533 include/linux/kernfs.h kernfs_create_dir(struct kernfs_node *parent, const char *name, umode_t mode, mode 536 include/linux/kernfs.h return kernfs_create_dir_ns(parent, name, mode, mode 543 include/linux/kernfs.h umode_t mode, kuid_t uid, kgid_t gid, mode 552 include/linux/kernfs.h return __kernfs_create_file(parent, name, mode, uid, gid, mode 557 include/linux/kernfs.h kernfs_create_file(struct kernfs_node *parent, const char *name, umode_t mode, mode 560 include/linux/kernfs.h return kernfs_create_file_ns(parent, name, mode, mode 271 include/linux/kvm_host.h int mode; mode 334 include/linux/kvm_host.h return cmpxchg(&vcpu->mode, IN_GUEST_MODE, EXITING_GUEST_MODE); mode 1099 include/linux/kvm_host.h int mode; mode 1107 include/linux/kvm_host.h int mode; mode 45 include/linux/lapb.h unsigned int mode; mode 98 include/linux/led-lm3530.h enum lm3530_mode mode; mode 1007 include/linux/libata.h unsigned short mode; /* ATA mode */ mode 1591 include/linux/libata.h enum ata_link_iter_mode mode); mode 1595 include/linux/libata.h enum ata_dev_iter_mode mode); mode 1611 include/linux/libata.h #define ata_for_each_link(link, ap, mode) \ mode 1612 include/linux/libata.h for ((link) = ata_link_next(NULL, (ap), ATA_LITER_##mode); (link); \ mode 1613 include/linux/libata.h (link) = ata_link_next((link), (ap), ATA_LITER_##mode)) mode 1615 include/linux/libata.h #define ata_for_each_dev(dev, link, mode) \ mode 1616 include/linux/libata.h for ((dev) = ata_dev_next(NULL, (link), ATA_DITER_##mode); (dev); \ mode 1617 include/linux/libata.h (dev) = ata_dev_next((dev), (link), ATA_DITER_##mode)) mode 11 include/linux/libgcc.h typedef int word_type __attribute__ ((mode (__word__))); mode 1469 include/linux/lsm_hooks.h unsigned int mode); mode 1518 include/linux/lsm_hooks.h int (*dentry_init_security)(struct dentry *dentry, int mode, mode 1521 include/linux/lsm_hooks.h int (*dentry_create_files_as)(struct dentry *dentry, int mode, mode 1530 include/linux/lsm_hooks.h umode_t mode); mode 1533 include/linux/lsm_hooks.h umode_t mode, unsigned int dev); mode 1542 include/linux/lsm_hooks.h int (*path_chmod)(const struct path *path, umode_t mode); mode 1556 include/linux/lsm_hooks.h umode_t mode); mode 1563 include/linux/lsm_hooks.h umode_t mode); mode 1566 include/linux/lsm_hooks.h umode_t mode, dev_t dev); mode 1670 include/linux/lsm_hooks.h int mode); mode 47 include/linux/mempolicy.h unsigned short mode; /* See MPOL_* above */ mode 135 include/linux/mfd/max8997.h enum max8997_haptic_pulse_mode mode; mode 161 include/linux/mfd/max8997.h enum max8997_led_mode mode[2]; mode 31 include/linux/mfd/mc13xxx.h unsigned int mode, unsigned int channel, mode 160 include/linux/mfd/samsung/core.h unsigned int mode; mode 93 include/linux/mfd/syscon/atmel-smc.h u32 mode; mode 43 include/linux/mfd/tc6393xb.h const struct fb_videomode *mode); mode 128 include/linux/mfd/tmio.h const struct fb_videomode *mode); mode 79 include/linux/mfd/tps6105x.h enum tps6105x_mode mode; mode 147 include/linux/mfd/tps65010.h extern int tps65010_set_led(unsigned led, unsigned mode); mode 157 include/linux/mfd/tps65010.h extern int tps65010_set_low_pwr(unsigned mode); mode 168 include/linux/mfd/tps65010.h extern int tps65013_set_low_pwr(unsigned mode); mode 261 include/linux/mfd/wl1273-core.h unsigned int mode; mode 760 include/linux/mfd/wm8350/pmic.h int wm8350_dcdc25_set_mode(struct wm8350 *wm8350, int dcdc, u16 mode, mode 771 include/linux/mfd/wm8350/pmic.h int wm8350_isink_set_flash(struct wm8350 *wm8350, int isink, u16 mode, mode 67 include/linux/migrate.h enum migrate_mode mode); mode 69 include/linux/migrate.h unsigned long private, enum migrate_mode mode, int reason); mode 70 include/linux/migrate.h extern int isolate_movable_page(struct page *page, isolate_mode_t mode); mode 85 include/linux/migrate.h free_page_t free, unsigned long private, enum migrate_mode mode, mode 88 include/linux/migrate.h static inline int isolate_movable_page(struct page *page, isolate_mode_t mode) mode 75 include/linux/miscdevice.h umode_t mode; mode 1381 include/linux/mlx4/device.h enum mlx4_net_trans_promisc_mode mode); mode 1383 include/linux/mlx4/device.h enum mlx4_net_trans_promisc_mode mode); mode 1388 include/linux/mlx4/device.h int mlx4_SET_MCAST_FLTR(struct mlx4_dev *dev, u8 port, u64 mac, u64 clear, u8 mode); mode 301 include/linux/mlx5/driver.h int mode; mode 8327 include/linux/mlx5/mlx5_ifc.h u8 mode[0x2]; mode 803 include/linux/mod_devicetable.h __u8 mode; mode 259 include/linux/module.h .mode = S_IRUGO, \ mode 64 include/linux/mtd/mtd.h unsigned int mode; mode 389 include/linux/mtd/mtd.h return ops->mode == MTD_OPS_AUTO_OOB ? mtd->oobavail : mtd->oobsize; mode 113 include/linux/mtd/nand.h int mode; mode 632 include/linux/mtd/nand.h iter->req.mode = req->mode; mode 354 include/linux/mtd/rawnand.h nand_ecc_modes_t mode; mode 367 include/linux/mtd/rawnand.h void (*hwctl)(struct nand_chip *chip, int mode); mode 227 include/linux/mtd/ubi.h struct ubi_volume_desc *ubi_open_volume(int ubi_num, int vol_id, int mode); mode 229 include/linux/mtd/ubi.h int mode); mode 230 include/linux/mtd/ubi.h struct ubi_volume_desc *ubi_open_volume_path(const char *pathname, int mode); mode 76 include/linux/nfs_fs.h fmode_t mode; mode 395 include/linux/nfs_fs.h extern struct nfs_open_context *nfs_find_open_context(struct inode *inode, const struct cred *cred, fmode_t mode); mode 47 include/linux/nfs_xdr.h umode_t mode; mode 315 include/linux/omap-dma.h extern void omap_set_dma_write_mode(int lch, enum omap_dma_write_mode mode); mode 316 include/linux/omap-dma.h extern void omap_set_dma_channel_mode(int lch, enum omap_dma_channel_mode mode); mode 183 include/linux/parport.h int mode; mode 424 include/linux/parport.h extern int parport_negotiate (struct parport *, int mode); mode 469 include/linux/parport.h extern int parport_daisy_select (struct parport *port, int daisy, int mode); mode 949 include/linux/phy.h static inline bool phy_interface_mode_is_rgmii(phy_interface_t mode) mode 951 include/linux/phy.h return mode >= PHY_INTERFACE_MODE_RGMII && mode 952 include/linux/phy.h mode <= PHY_INTERFACE_MODE_RGMII_TXID; mode 963 include/linux/phy.h static inline bool phy_interface_mode_is_8023z(phy_interface_t mode) mode 965 include/linux/phy.h return mode == PHY_INTERFACE_MODE_1000BASEX || mode 966 include/linux/phy.h mode == PHY_INTERFACE_MODE_2500BASEX; mode 71 include/linux/phy/omap_control_phy.h enum omap_control_usb_mode mode); mode 80 include/linux/phy/omap_control_phy.h enum omap_control_usb_mode mode) mode 71 include/linux/phy/phy.h int (*set_mode)(struct phy *phy, enum phy_mode mode, int submode); mode 101 include/linux/phy/phy.h int (*validate)(struct phy *phy, enum phy_mode mode, int submode, mode 116 include/linux/phy/phy.h enum phy_mode mode; mode 207 include/linux/phy/phy.h int phy_set_mode_ext(struct phy *phy, enum phy_mode mode, int submode); mode 208 include/linux/phy/phy.h #define phy_set_mode(phy, mode) \ mode 209 include/linux/phy/phy.h phy_set_mode_ext(phy, mode, 0) mode 211 include/linux/phy/phy.h int phy_validate(struct phy *phy, enum phy_mode mode, int submode, mode 216 include/linux/phy/phy.h return phy->attrs.mode; mode 327 include/linux/phy/phy.h static inline int phy_set_mode_ext(struct phy *phy, enum phy_mode mode, mode 335 include/linux/phy/phy.h #define phy_set_mode(phy, mode) \ mode 336 include/linux/phy/phy.h phy_set_mode_ext(phy, mode, 0) mode 366 include/linux/phy/phy.h static inline int phy_validate(struct phy *phy, enum phy_mode mode, int submode, mode 27 include/linux/phylink.h static inline bool phylink_autoneg_inband(unsigned int mode) mode 29 include/linux/phylink.h return mode == MLO_AN_INBAND; mode 89 include/linux/phylink.h void (*mac_config)(struct phylink_config *config, unsigned int mode, mode 92 include/linux/phylink.h void (*mac_link_down)(struct phylink_config *config, unsigned int mode, mode 94 include/linux/phylink.h void (*mac_link_up)(struct phylink_config *config, unsigned int mode, mode 194 include/linux/phylink.h void mac_config(struct phylink_config *config, unsigned int mode, mode 214 include/linux/phylink.h void mac_link_down(struct phylink_config *config, unsigned int mode, mode 230 include/linux/phylink.h void mac_link_up(struct phylink_config *config, unsigned int mode, mode 272 include/linux/phylink.h #define __phylink_do_bit(op, bm, mode) \ mode 273 include/linux/phylink.h op(ETHTOOL_LINK_MODE_ ## mode ## _BIT, bm) mode 275 include/linux/phylink.h #define phylink_set(bm, mode) __phylink_do_bit(__set_bit, bm, mode) mode 276 include/linux/phylink.h #define phylink_clear(bm, mode) __phylink_do_bit(__clear_bit, bm, mode) mode 277 include/linux/phylink.h #define phylink_test(bm, mode) __phylink_do_bit(test_bit, bm, mode) mode 26 include/linux/pl353-smc.h int pl353_smc_set_ecc_mode(enum pl353_smc_ecc_mode mode); mode 91 include/linux/platform_data/ad5755.h enum ad5755_mode mode; mode 48 include/linux/platform_data/ad7266.h enum ad7266_mode mode; mode 2810 include/linux/platform_data/cros_ec_commands.h uint8_t mode:7; mode 3785 include/linux/platform_data/cros_ec_commands.h uint32_t mode; /* enum charge_control_mode */ mode 4293 include/linux/platform_data/cros_ec_commands.h uint8_t mode; mode 5357 include/linux/platform_data/cros_ec_commands.h #define FP_CAPTURE_TYPE(mode) (((mode) & FP_MODE_CAPTURE_TYPE_MASK) \ mode 5361 include/linux/platform_data/cros_ec_commands.h uint32_t mode; /* as defined by FP_MODE_ constants */ mode 5365 include/linux/platform_data/cros_ec_commands.h uint32_t mode; /* as defined by FP_MODE_ constants */ mode 111 include/linux/platform_data/dma-ste-dma40.h enum stedma40_mode mode; mode 13 include/linux/platform_data/irda-pxaficp.h void (*transceiver_mode)(struct device *dev, int mode); mode 23 include/linux/platform_data/irda-pxaficp.h void pxa2xx_transceiver_mode(struct device *dev, int mode); mode 160 include/linux/platform_data/keyboard-spear.h unsigned int mode; mode 19 include/linux/platform_data/leds-kirkwood-ns2.h enum ns2_led_modes mode; mode 90 include/linux/platform_data/mlxreg.h umode_t mode; mode 37 include/linux/platform_data/mv_usb.h unsigned int mode; mode 55 include/linux/platform_data/shmob_drm.h struct drm_mode_modeinfo mode; mode 76 include/linux/platform_data/usb-omap.h u8 mode; mode 81 include/linux/platform_data/usb-omap.h void (*set_mode)(u8 mode); mode 52 include/linux/platform_data/video-imxfb.h struct fb_videomode mode; mode 59 include/linux/platform_data/video-imxfb.h struct imx_fb_videomode *mode; mode 45 include/linux/platform_data/video-mx3fb.h const struct fb_videomode *mode; mode 95 include/linux/posix_acl.h static inline int posix_acl_chmod(struct inode *inode, umode_t mode) mode 110 include/linux/posix_acl.h static inline int posix_acl_create(struct inode *inode, umode_t *mode, mode 41 include/linux/powercap.h int (*set_enable) (struct powercap_control_type *, bool mode); mode 42 include/linux/powercap.h int (*get_enable) (struct powercap_control_type *, bool *mode); mode 104 include/linux/powercap.h int (*set_enable) (struct powercap_zone *, bool mode); mode 105 include/linux/powercap.h int (*get_enable) (struct powercap_zone *, bool *mode); mode 26 include/linux/pps_kernel.h int mode; /* PPS allowed mode */ mode 31 include/linux/proc_fs.h struct proc_dir_entry *proc_create_seq_private(const char *name, umode_t mode, mode 34 include/linux/proc_fs.h #define proc_create_seq_data(name, mode, parent, ops, data) \ mode 35 include/linux/proc_fs.h proc_create_seq_private(name, mode, parent, ops, 0, data) mode 36 include/linux/proc_fs.h #define proc_create_seq(name, mode, parent, ops) \ mode 37 include/linux/proc_fs.h proc_create_seq_private(name, mode, parent, ops, 0, NULL) mode 38 include/linux/proc_fs.h struct proc_dir_entry *proc_create_single_data(const char *name, umode_t mode, mode 41 include/linux/proc_fs.h #define proc_create_single(name, mode, parent, show) \ mode 42 include/linux/proc_fs.h proc_create_single_data(name, mode, parent, show, NULL) mode 49 include/linux/proc_fs.h struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct file_operations *proc_fops); mode 58 include/linux/proc_fs.h struct proc_dir_entry *proc_create_net_data(const char *name, umode_t mode, mode 61 include/linux/proc_fs.h #define proc_create_net(name, mode, parent, state_size, ops) \ mode 62 include/linux/proc_fs.h proc_create_net_data(name, mode, parent, state_size, ops, NULL) mode 63 include/linux/proc_fs.h struct proc_dir_entry *proc_create_net_single(const char *name, umode_t mode, mode 66 include/linux/proc_fs.h struct proc_dir_entry *proc_create_net_data_write(const char *name, umode_t mode, mode 71 include/linux/proc_fs.h struct proc_dir_entry *proc_create_net_single_write(const char *name, umode_t mode, mode 103 include/linux/proc_fs.h umode_t mode, struct proc_dir_entry *parent, void *data) { return NULL; } mode 105 include/linux/proc_fs.h umode_t mode, struct proc_dir_entry *parent) { return NULL; } mode 106 include/linux/proc_fs.h #define proc_create_seq_private(name, mode, parent, ops, size, data) ({NULL;}) mode 107 include/linux/proc_fs.h #define proc_create_seq_data(name, mode, parent, ops, data) ({NULL;}) mode 108 include/linux/proc_fs.h #define proc_create_seq(name, mode, parent, ops) ({NULL;}) mode 109 include/linux/proc_fs.h #define proc_create_single(name, mode, parent, show) ({NULL;}) mode 110 include/linux/proc_fs.h #define proc_create_single_data(name, mode, parent, show, data) ({NULL;}) mode 111 include/linux/proc_fs.h #define proc_create(name, mode, parent, proc_fops) ({NULL;}) mode 112 include/linux/proc_fs.h #define proc_create_data(name, mode, parent, proc_fops, data) ({NULL;}) mode 123 include/linux/proc_fs.h #define proc_create_net_data(name, mode, parent, ops, state_size, data) ({NULL;}) mode 124 include/linux/proc_fs.h #define proc_create_net(name, mode, parent, state_size, ops) ({NULL;}) mode 125 include/linux/proc_fs.h #define proc_create_net_single(name, mode, parent, show, data) ({NULL;}) mode 95 include/linux/ptrace.h extern bool ptrace_may_access(struct task_struct *task, unsigned int mode); mode 395 include/linux/qcom-geni-se.h void geni_se_select_mode(struct geni_se *se, enum geni_se_xfer_mode mode); mode 136 include/linux/qed/qed_chain.h enum qed_chain_mode mode; mode 177 include/linux/qed/qed_chain.h #define UNUSABLE_ELEMS_PER_PAGE(elem_size, mode) \ mode 178 include/linux/qed/qed_chain.h (((mode) == QED_CHAIN_MODE_NEXT_PTR) ? \ mode 182 include/linux/qed/qed_chain.h #define USABLE_ELEMS_PER_PAGE(elem_size, mode) \ mode 184 include/linux/qed/qed_chain.h UNUSABLE_ELEMS_PER_PAGE(elem_size, mode))) mode 186 include/linux/qed/qed_chain.h #define QED_CHAIN_PAGE_CNT(elem_cnt, elem_size, mode) \ mode 187 include/linux/qed/qed_chain.h DIV_ROUND_UP(elem_cnt, USABLE_ELEMS_PER_PAGE(elem_size, mode)) mode 215 include/linux/qed/qed_chain.h if (p_chain->mode == QED_CHAIN_MODE_NEXT_PTR) mode 229 include/linux/qed/qed_chain.h if (p_chain->mode == QED_CHAIN_MODE_NEXT_PTR) mode 273 include/linux/qed/qed_chain.h switch (p_chain->mode) { mode 475 include/linux/qed/qed_chain.h if (p_chain->mode == QED_CHAIN_MODE_PBL) { mode 522 include/linux/qed/qed_chain.h enum qed_chain_mode mode, mode 530 include/linux/qed/qed_chain.h p_chain->mode = mode; mode 534 include/linux/qed/qed_chain.h p_chain->usable_per_page = USABLE_ELEMS_PER_PAGE(elem_size, mode); mode 536 include/linux/qed/qed_chain.h p_chain->elem_unusable = UNUSABLE_ELEMS_PER_PAGE(elem_size, mode); mode 637 include/linux/qed/qed_chain.h switch (p_chain->mode) { mode 672 include/linux/qed/qed_chain.h if (p_chain->mode == QED_CHAIN_MODE_PBL) { mode 719 include/linux/qed/qed_chain.h if (p_chain->mode != QED_CHAIN_MODE_PBL) mode 363 include/linux/qed/qed_eth_if.h enum qed_filter_config_mode mode); mode 979 include/linux/qed/qed_if.h enum qed_chain_mode mode, mode 1035 include/linux/qed/qed_if.h enum qed_led_mode mode); mode 90 include/linux/qnx6_fs.h __u8 mode; mode 6 include/linux/ramfs.h umode_t mode, dev_t dev); mode 255 include/linux/regulator/consumer.h int regulator_set_mode(struct regulator *regulator, unsigned int mode); mode 502 include/linux/regulator/consumer.h unsigned int mode) mode 172 include/linux/regulator/driver.h int (*set_mode) (struct regulator_dev *, unsigned int mode); mode 217 include/linux/regulator/driver.h int (*set_suspend_mode) (struct regulator_dev *, unsigned int mode); mode 392 include/linux/regulator/driver.h unsigned int (*of_map_mode)(unsigned int mode); mode 81 include/linux/regulator/machine.h unsigned int mode; mode 34 include/linux/regulator/max8649.h unsigned mode:2; /* bit[1:0] = VID1,VID0 */ mode 148 include/linux/relay.h umode_t mode, mode 198 include/linux/rmi.h u16 mode; mode 199 include/linux/rtc.h void rtc_handle_legacy_irq(struct rtc_device *rtc, int num, int mode); mode 131 include/linux/rtnetlink.h struct net_device *dev, u16 mode, mode 42 include/linux/scc.h unsigned char mode; /* 'normal' or 'hwctrl' mode (unused) */ mode 119 include/linux/sched/mm.h extern struct mm_struct *mm_access(struct task_struct *task, unsigned int mode); mode 30 include/linux/seccomp.h int mode; mode 51 include/linux/seccomp.h return s->mode; mode 135 include/linux/security.h extern int cap_ptrace_access_check(struct task_struct *child, unsigned int mode); mode 259 include/linux/security.h int security_ptrace_access_check(struct task_struct *child, unsigned int mode); mode 307 include/linux/security.h int security_dentry_init_security(struct dentry *dentry, int mode, mode 310 include/linux/security.h int security_dentry_create_files_as(struct dentry *dentry, int mode, mode 324 include/linux/security.h int security_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode); mode 330 include/linux/security.h int security_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode); mode 332 include/linux/security.h int security_inode_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev); mode 421 include/linux/security.h struct task_struct *target, long type, int mode); mode 509 include/linux/security.h unsigned int mode) mode 511 include/linux/security.h return cap_ptrace_access_check(child, mode); mode 697 include/linux/security.h int mode, mode 706 include/linux/security.h int mode, struct qstr *name, mode 734 include/linux/security.h umode_t mode) mode 761 include/linux/security.h int mode) mode 774 include/linux/security.h int mode, dev_t dev) mode 1158 include/linux/security.h long type, int mode) mode 1659 include/linux/security.h int security_path_mkdir(const struct path *dir, struct dentry *dentry, umode_t mode); mode 1661 include/linux/security.h int security_path_mknod(const struct path *dir, struct dentry *dentry, umode_t mode, mode 1671 include/linux/security.h int security_path_chmod(const struct path *path, umode_t mode); mode 1681 include/linux/security.h umode_t mode) mode 1692 include/linux/security.h umode_t mode, unsigned int dev) mode 1724 include/linux/security.h static inline int security_path_chmod(const struct path *path, umode_t mode) mode 1812 include/linux/security.h extern struct dentry *securityfs_create_file(const char *name, umode_t mode, mode 1831 include/linux/security.h umode_t mode, mode 34 include/linux/shmem_fs.h umode_t mode; /* Mount mode for root directory */ mode 16 include/linux/soc/nxp/lpc32xx-misc.h extern void lpc32xx_set_phy_interface_mode(phy_interface_t mode); mode 25 include/linux/soc/nxp/lpc32xx-misc.h static inline void lpc32xx_set_phy_interface_mode(phy_interface_t mode) mode 6 include/linux/soc/renesas/rcar-rst.h int rcar_rst_read_mode_pins(u32 *mode); mode 8 include/linux/soc/renesas/rcar-rst.h static inline int rcar_rst_read_mode_pins(u32 *mode) { return -ENODEV; } mode 21 include/linux/soc/samsung/exynos-pmu.h extern void exynos_sys_powerdown_conf(enum sys_powerdown mode); mode 276 include/linux/soc/ti/ti_sci_protocol.h u32 addr_lo, u32 addr_hi, u32 count, u8 mode, mode 280 include/linux/soc/ti/ti_sci_protocol.h u32 nav_id, u32 index, u8 *mode, mode 14 include/linux/spi/sh_msiof.h int mode; mode 148 include/linux/spi/spi.h u32 mode; mode 1331 include/linux/spi/spi.h u32 mode; mode 634 include/linux/ssb/ssb_driver_chipcommon.h enum ssb_clkmode mode); mode 26 include/linux/stat.h umode_t mode; mode 477 include/linux/sunrpc/svc.h int mode; /* Note: int not enum to avoid mode 354 include/linux/swap.h extern int __isolate_lru_page(struct page *page, isolate_mode_t mode); mode 20 include/linux/synclink.h compat_ulong_t mode; mode 394 include/linux/syscalls.h asmlinkage long sys_mknodat(int dfd, const char __user * filename, umode_t mode, mode 396 include/linux/syscalls.h asmlinkage long sys_mkdirat(int dfd, const char __user * pathname, umode_t mode); mode 429 include/linux/syscalls.h asmlinkage long sys_fallocate(int fd, int mode, loff_t offset, loff_t len); mode 430 include/linux/syscalls.h asmlinkage long sys_faccessat(int dfd, const char __user *filename, int mode); mode 434 include/linux/syscalls.h asmlinkage long sys_fchmod(unsigned int fd, umode_t mode); mode 436 include/linux/syscalls.h umode_t mode); mode 441 include/linux/syscalls.h umode_t mode); mode 753 include/linux/syscalls.h asmlinkage long sys_mq_open(const char __user *name, int oflag, umode_t mode, struct mq_attr __user *attr); mode 881 include/linux/syscalls.h unsigned long mode, mode 889 include/linux/syscalls.h asmlinkage long sys_set_mempolicy(int mode, const unsigned long __user *nmask, mode 1024 include/linux/syscalls.h unsigned int flags, umode_t mode, int fd); mode 1034 include/linux/syscalls.h int flags, umode_t mode); mode 1038 include/linux/syscalls.h asmlinkage long sys_mknod(const char __user *filename, umode_t mode, mode 1040 include/linux/syscalls.h asmlinkage long sys_chmod(const char __user *filename, umode_t mode); mode 1043 include/linux/syscalls.h asmlinkage long sys_mkdir(const char __user *pathname, umode_t mode); mode 1047 include/linux/syscalls.h asmlinkage long sys_access(const char __user *filename, int mode); mode 1096 include/linux/syscalls.h asmlinkage long sys_creat(const char __user *pathname, umode_t mode); mode 1241 include/linux/syscalls.h int ksys_fchmod(unsigned int fd, umode_t mode); mode 1257 include/linux/syscalls.h int ksys_fallocate(int fd, int mode, loff_t offset, loff_t len); mode 1294 include/linux/syscalls.h extern long do_mkdirat(int dfd, const char __user *pathname, umode_t mode); mode 1296 include/linux/syscalls.h static inline long ksys_mkdir(const char __user *pathname, umode_t mode) mode 1298 include/linux/syscalls.h return do_mkdirat(AT_FDCWD, pathname, mode); mode 1310 include/linux/syscalls.h extern long do_mknodat(int dfd, const char __user *filename, umode_t mode, mode 1313 include/linux/syscalls.h static inline long ksys_mknod(const char __user *filename, umode_t mode, mode 1316 include/linux/syscalls.h return do_mknodat(AT_FDCWD, filename, mode, dev); mode 1328 include/linux/syscalls.h extern int do_fchmodat(int dfd, const char __user *filename, umode_t mode); mode 1330 include/linux/syscalls.h static inline int ksys_chmod(const char __user *filename, umode_t mode) mode 1332 include/linux/syscalls.h return do_fchmodat(AT_FDCWD, filename, mode); mode 1335 include/linux/syscalls.h extern long do_faccessat(int dfd, const char __user *filename, int mode); mode 1337 include/linux/syscalls.h static inline long ksys_access(const char __user *filename, int mode) mode 1339 include/linux/syscalls.h return do_faccessat(AT_FDCWD, filename, mode); mode 1378 include/linux/syscalls.h umode_t mode); mode 1381 include/linux/syscalls.h umode_t mode) mode 1385 include/linux/syscalls.h return do_sys_open(AT_FDCWD, filename, flags, mode); mode 128 include/linux/sysctl.h umode_t mode; mode 32 include/linux/sysfs.h umode_t mode; mode 103 include/linux/sysfs.h .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \ mode 110 include/linux/sysfs.h .mode = SYSFS_PREALLOC | VERIFY_OCTAL_PERMISSIONS(_mode) },\ mode 116 include/linux/sysfs.h .attr = { .name = __stringify(_name), .mode = 0444 }, \ mode 122 include/linux/sysfs.h .mode = VERIFY_OCTAL_PERMISSIONS(_mode) }, \ mode 127 include/linux/sysfs.h .attr = { .name = __stringify(_name), .mode = 0200 }, \ mode 137 include/linux/sysfs.h .attr = {.name = __stringify(_name), .mode = _mode, \ mode 187 include/linux/sysfs.h .attr = { .name = __stringify(_name), .mode = _mode }, \ mode 194 include/linux/sysfs.h .attr = { .name = __stringify(_name), .mode = 0444 }, \ mode 200 include/linux/sysfs.h .attr = { .name = __stringify(_name), .mode = 0200 }, \ mode 248 include/linux/sysfs.h const struct attribute *attr, umode_t mode); mode 362 include/linux/sysfs.h const struct attribute *attr, umode_t mode) mode 66 include/linux/tick.h extern void tick_broadcast_control(enum tick_broadcast_mode mode); mode 68 include/linux/tick.h static inline void tick_broadcast_control(enum tick_broadcast_mode mode) { } mode 24 include/linux/tracefs.h struct dentry *tracefs_create_file(const char *name, umode_t mode, mode 1265 include/linux/usb.h char *(*devnode)(struct device *dev, umode_t *mode); mode 40 include/linux/usb/musb.h enum musb_buf_mode mode; mode 48 include/linux/usb/musb.h .mode = m, \ mode 82 include/linux/usb/musb.h u8 mode; mode 20 include/linux/usb/pd_bdo.h #define BDO_MODE_MASK(mode) ((mode) & 0xf0000000) mode 72 include/linux/usb/tegra_usb_phy.h enum usb_dr_mode mode; mode 104 include/linux/usb/typec.h u8 mode; mode 237 include/linux/usb/typec.h void typec_set_pwr_opmode(struct typec_port *port, enum typec_pwr_opmode mode); mode 242 include/linux/usb/typec.h int typec_set_mode(struct typec_port *port, int mode); mode 27 include/linux/usb/typec_altmode.h int mode; mode 111 include/linux/usb/typec_altmode.h size_t n, u16 svid, u8 mode); mode 114 include/linux/usb/typec_altmode.h typec_altmode_register_notifier(struct device *dev, u16 svid, u8 mode, mode 42 include/linux/via-core.h enum via_port_mode mode; mode 137 include/linux/virtio_vsock.h int virtio_transport_shutdown(struct vsock_sock *vsk, int mode); mode 63 include/linux/vmw_vmci_api.h const void *buf, size_t buf_size, int mode); mode 65 include/linux/vmw_vmci_api.h void *buf, size_t buf_size, int mode); mode 67 include/linux/vmw_vmci_api.h int mode); mode 69 include/linux/vmw_vmci_api.h struct msghdr *msg, size_t iov_size, int mode); mode 71 include/linux/vmw_vmci_api.h struct msghdr *msg, size_t iov_size, int mode); mode 73 include/linux/vmw_vmci_api.h int mode); mode 16 include/linux/wait.h typedef int (*wait_queue_func_t)(struct wait_queue_entry *wq_entry, unsigned mode, int flags, void *key); mode 17 include/linux/wait.h int default_wake_function(struct wait_queue_entry *wq_entry, unsigned mode, int flags, void *key); mode 200 include/linux/wait.h void __wake_up(struct wait_queue_head *wq_head, unsigned int mode, int nr, void *key); mode 201 include/linux/wait.h void __wake_up_locked_key(struct wait_queue_head *wq_head, unsigned int mode, void *key); mode 203 include/linux/wait.h unsigned int mode, void *key, wait_queue_entry_t *bookmark); mode 204 include/linux/wait.h void __wake_up_sync_key(struct wait_queue_head *wq_head, unsigned int mode, int nr, void *key); mode 205 include/linux/wait.h void __wake_up_locked(struct wait_queue_head *wq_head, unsigned int mode, int nr); mode 206 include/linux/wait.h void __wake_up_sync(struct wait_queue_head *wq_head, unsigned int mode, int nr); mode 1127 include/linux/wait.h long wait_woken(struct wait_queue_entry *wq_entry, unsigned mode, long timeout); mode 1128 include/linux/wait.h int woken_wake_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync, void *key); mode 1129 include/linux/wait.h int autoremove_wake_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync, void *key); mode 24 include/linux/wait_bit.h typedef int wait_bit_action_f(struct wait_bit_key *key, int mode); mode 27 include/linux/wait_bit.h int __wait_on_bit(struct wait_queue_head *wq_head, struct wait_bit_queue_entry *wbq_entry, wait_bit_action_f *action, unsigned int mode); mode 28 include/linux/wait_bit.h int __wait_on_bit_lock(struct wait_queue_head *wq_head, struct wait_bit_queue_entry *wbq_entry, wait_bit_action_f *action, unsigned int mode); mode 30 include/linux/wait_bit.h int out_of_line_wait_on_bit(void *word, int, wait_bit_action_f *action, unsigned int mode); mode 31 include/linux/wait_bit.h int out_of_line_wait_on_bit_timeout(void *word, int, wait_bit_action_f *action, unsigned int mode, unsigned long timeout); mode 32 include/linux/wait_bit.h int out_of_line_wait_on_bit_lock(void *word, int, wait_bit_action_f *action, unsigned int mode); mode 36 include/linux/wait_bit.h int wake_bit_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync, void *key); mode 49 include/linux/wait_bit.h extern int bit_wait(struct wait_bit_key *key, int mode); mode 50 include/linux/wait_bit.h extern int bit_wait_io(struct wait_bit_key *key, int mode); mode 51 include/linux/wait_bit.h extern int bit_wait_timeout(struct wait_bit_key *key, int mode); mode 52 include/linux/wait_bit.h extern int bit_wait_io_timeout(struct wait_bit_key *key, int mode); mode 71 include/linux/wait_bit.h wait_on_bit(unsigned long *word, int bit, unsigned mode) mode 78 include/linux/wait_bit.h mode); mode 96 include/linux/wait_bit.h wait_on_bit_io(unsigned long *word, int bit, unsigned mode) mode 103 include/linux/wait_bit.h mode); mode 122 include/linux/wait_bit.h wait_on_bit_timeout(unsigned long *word, int bit, unsigned mode, mode 130 include/linux/wait_bit.h mode, timeout); mode 151 include/linux/wait_bit.h unsigned mode) mode 156 include/linux/wait_bit.h return out_of_line_wait_on_bit(word, bit, action, mode); mode 179 include/linux/wait_bit.h wait_on_bit_lock(unsigned long *word, int bit, unsigned mode) mode 184 include/linux/wait_bit.h return out_of_line_wait_on_bit_lock(word, bit, bit_wait, mode); mode 203 include/linux/wait_bit.h wait_on_bit_lock_io(unsigned long *word, int bit, unsigned mode) mode 208 include/linux/wait_bit.h return out_of_line_wait_on_bit_lock(word, bit, bit_wait_io, mode); mode 230 include/linux/wait_bit.h unsigned mode) mode 235 include/linux/wait_bit.h return out_of_line_wait_on_bit_lock(word, bit, action, mode); mode 325 include/linux/wm97xx.h void wm97xx_set_suspend_mode(struct wm97xx *wm, u16 mode); mode 194 include/linux/xz.h XZ_EXTERN struct xz_dec *xz_dec_init(enum xz_mode mode, uint32_t dict_max); mode 54 include/linux/yam.h unsigned int mode; /* mode 0 (simp), 1(Dupl), 2(Dupl+delay) */ mode 193 include/math-emu/soft-fp.h typedef int SItype __attribute__((mode(SI))); mode 194 include/math-emu/soft-fp.h typedef int DItype __attribute__((mode(DI))); mode 195 include/math-emu/soft-fp.h typedef unsigned int USItype __attribute__((mode(SI))); mode 196 include/math-emu/soft-fp.h typedef unsigned int UDItype __attribute__((mode(DI))); mode 198 include/math-emu/soft-fp.h typedef unsigned int UHWtype __attribute__((mode(HI))); mode 106 include/media/davinci/isif.h __u8 mode; mode 116 include/media/dvb_frontend.h unsigned int mode; mode 145 include/media/i2c/adv7842.h enum adv7842_mode mode; mode 37 include/media/i2c/smiapp.h u8 mode; mode 542 include/media/v4l2-subdev.h enum v4l2_subdev_ir_mode mode; mode 76 include/misc/cxllib.h int cxllib_switch_phb_mode(struct pci_dev *dev, enum cxllib_mode mode, mode 389 include/net/9p/9p.h u32 mode; mode 461 include/net/9p/9p.h u32 mode; mode 149 include/net/9p/client.h int mode; mode 190 include/net/9p/client.h int p9_client_open(struct p9_fid *fid, int mode); mode 191 include/net/9p/client.h int p9_client_fcreate(struct p9_fid *fid, const char *name, u32 perm, int mode, mode 196 include/net/9p/client.h int p9_client_create_dotl(struct p9_fid *ofid, const char *name, u32 flags, u32 mode, mode 214 include/net/9p/client.h int p9_client_mknod_dotl(struct p9_fid *oldfid, const char *name, int mode, mode 216 include/net/9p/client.h int p9_client_mkdir_dotl(struct p9_fid *fid, const char *name, int mode, mode 1054 include/net/bluetooth/hci.h __u8 mode; mode 1059 include/net/bluetooth/hci.h __u8 mode; mode 1082 include/net/bluetooth/hci.h __u8 mode; mode 1853 include/net/bluetooth/hci.h __u8 mode; mode 467 include/net/bluetooth/hci_core.h __u8 mode; mode 78 include/net/bluetooth/l2cap.h __u8 mode; mode 343 include/net/bluetooth/l2cap.h __u8 mode; mode 518 include/net/bluetooth/l2cap.h __u8 mode; mode 50 include/net/bonding.h #define BOND_MODE(bond) ((bond)->params.mode) mode 115 include/net/bonding.h int mode; mode 149 include/net/bonding.h int mode; mode 310 include/net/bonding.h static inline bool bond_mode_uses_arp(int mode) mode 312 include/net/bonding.h return mode != BOND_MODE_8023AD && mode != BOND_MODE_TLB && mode 313 include/net/bonding.h mode != BOND_MODE_ALB; mode 316 include/net/bonding.h static inline bool bond_mode_uses_primary(int mode) mode 318 include/net/bonding.h return mode == BOND_MODE_ACTIVEBACKUP || mode == BOND_MODE_TLB || mode 319 include/net/bonding.h mode == BOND_MODE_ALB; mode 632 include/net/bonding.h const char *bond_mode_name(int mode); mode 24 include/net/cfg80211-wext.h u32 *mode, char *extra); mode 26 include/net/cfg80211-wext.h u32 *mode, char *extra); mode 576 include/net/cfg80211.h enum nl80211_key_mode mode; mode 67 include/net/cfg802154.h struct wpan_dev *wpan_dev, bool mode); mode 146 include/net/cfg802154.h enum nl802154_cca_modes mode; mode 153 include/net/cfg802154.h if (a->mode != b->mode) mode 156 include/net/cfg802154.h if (a->mode == NL802154_CCA_ENERGY_CARRIER) mode 231 include/net/cfg802154.h u8 mode; mode 240 include/net/cfg802154.h u8 mode; mode 695 include/net/devlink.h int (*eswitch_mode_set)(struct devlink *devlink, u16 mode, mode 70 include/net/dn_dev.h int mode; /* Broadcast, Unicast, Mulitpoint */ mode 386 include/net/dsa.h unsigned int mode, mode 390 include/net/dsa.h unsigned int mode, mode 393 include/net/dsa.h unsigned int mode, mode 104 include/net/dst_metadata.h tun_dst->u.tun_info.mode = 0; mode 189 include/net/dst_metadata.h info->mode = IP_TUNNEL_INFO_IPV6; mode 141 include/net/ieee802154_netdev.h if (a1->pan_id != a2->pan_id || a1->mode != a2->mode) mode 144 include/net/ieee802154_netdev.h if ((a1->mode == IEEE802154_ADDR_LONG && mode 146 include/net/ieee802154_netdev.h (a1->mode == IEEE802154_ADDR_SHORT && mode 171 include/net/ieee802154_netdev.h a->mode = sa->addr_type; mode 174 include/net/ieee802154_netdev.h switch (a->mode) { mode 187 include/net/ieee802154_netdev.h sa->addr_type = a->mode; mode 190 include/net/ieee802154_netdev.h switch (a->mode) { mode 75 include/net/ip_tunnels.h u8 mode; mode 216 include/net/ip_tunnels.h return tun_info->mode & IP_TUNNEL_INFO_IPV6 ? AF_INET6 : AF_INET; mode 1161 include/net/ipv6.h const struct in6_addr *addr, unsigned int mode); mode 88 include/net/lapb.h unsigned int mode; mode 3984 include/net/mac80211.h enum ieee80211_chanctx_switch_mode mode); mode 261 include/net/nfc/nci.h __u8 mode; mode 60 include/net/nfc/nfc.h struct nfc_target *target, u8 mode); mode 673 include/net/pkt_cls.h u16 mode; mode 14 include/net/tc_act/tc_ctinfo.h u8 mode; mode 173 include/net/xfrm.h u8 mode; mode 462 include/net/xfrm.h u8 mode; mode 550 include/net/xfrm.h u8 mode; mode 1488 include/net/xfrm.h u8 mode, u8 proto, u32 reqid); mode 1651 include/net/xfrm.h u8 mode, u32 reqid, u32 if_id, u8 proto, mode 23 include/rdma/rdma_counter.h enum rdma_nl_counter_mode mode; mode 29 include/rdma/rdma_counter.h struct rdma_counter_mode mode; mode 40 include/rdma/rdma_counter.h struct rdma_counter_mode mode; mode 62 include/rdma/rdma_counter.h enum rdma_nl_counter_mode *mode, mode 94 include/rdma/uverbs_types.h enum rdma_lookup_mode mode); mode 95 include/rdma/uverbs_types.h void (*lookup_put)(struct ib_uobject *uobj, enum rdma_lookup_mode mode); mode 136 include/rdma/uverbs_types.h enum rdma_lookup_mode mode, mode 139 include/rdma/uverbs_types.h enum rdma_lookup_mode mode); mode 60 include/scsi/fcoe_sysfs.h enum fip_conn_type mode; mode 119 include/scsi/libfcoe.h enum fip_mode mode; mode 39 include/soc/fsl/qe/ucc.h enum comm_dir mode); mode 41 include/soc/fsl/qe/ucc.h enum comm_dir mode); mode 43 include/soc/fsl/qe/ucc.h enum comm_dir mode); mode 170 include/soc/fsl/qe/ucc_fast.h enum ucc_fast_channel_protocol_mode mode; mode 231 include/soc/fsl/qe/ucc_fast.h void ucc_fast_enable(struct ucc_fast_private * uccf, enum comm_dir mode); mode 240 include/soc/fsl/qe/ucc_fast.h void ucc_fast_disable(struct ucc_fast_private * uccf, enum comm_dir mode); mode 176 include/soc/fsl/qe/ucc_slow.h enum ucc_slow_channel_protocol_mode mode; mode 239 include/soc/fsl/qe/ucc_slow.h void ucc_slow_enable(struct ucc_slow_private * uccs, enum comm_dir mode); mode 248 include/soc/fsl/qe/ucc_slow.h void ucc_slow_disable(struct ucc_slow_private * uccs, enum comm_dir mode); mode 568 include/soc/fsl/qman.h u8 mode; /* QMAN_CGR_MODE_FRAME not supported in rev1.0 */ mode 19 include/soc/tegra/pm.h tegra_pm_validate_suspend_mode(enum tegra_suspend_mode mode); mode 25 include/soc/tegra/pm.h tegra_pm_validate_suspend_mode(enum tegra_suspend_mode mode) mode 171 include/soc/tegra/pmc.h void tegra_pmc_set_suspend_mode(enum tegra_suspend_mode mode); mode 172 include/soc/tegra/pmc.h void tegra_pmc_enter_suspend_mode(enum tegra_suspend_mode mode); mode 227 include/soc/tegra/pmc.h static inline void tegra_pmc_set_suspend_mode(enum tegra_suspend_mode mode) mode 231 include/soc/tegra/pmc.h static inline void tegra_pmc_enter_suspend_mode(enum tegra_suspend_mode mode) mode 126 include/sound/ad1816a.h unsigned short mode; mode 271 include/sound/core.h void snd_dma_program(unsigned long dma, unsigned long addr, unsigned int size, unsigned short mode); mode 98 include/sound/emu8000.h void snd_emu8000_dma_chan(struct snd_emu8000 *emu, int ch, int mode); mode 105 include/sound/emu8000.h int snd_emu8000_load_chorus_fx(struct snd_emu8000 *emu, int mode, const void __user *buf, long len); mode 106 include/sound/emu8000.h int snd_emu8000_load_reverb_fx(struct snd_emu8000 *emu, int mode, const void __user *buf, long len); mode 209 include/sound/gus.h int mode; /* operation mode */ mode 263 include/sound/gus.h unsigned char mode; mode 320 include/sound/gus.h unsigned short mode; /* see to SNDRV_GF1_MODE_XXXX */ mode 38 include/sound/info.h unsigned short mode, void **file_private_data); mode 40 include/sound/info.h unsigned short mode, void *file_private_data); mode 62 include/sound/info.h umode_t mode; mode 19 include/sound/l3.h int mode; mode 66 include/sound/mpu401.h unsigned long mode; /* MPU401_MODE_XXXX */ mode 166 include/sound/rawmidi.h int mode, struct snd_rawmidi_file *rfile); mode 65 include/sound/sb.h unsigned int mode; /* current mode of stream */ mode 53 include/sound/sb16_csp.h int mode; /* MODE */ mode 28 include/sound/snd_wavefront.h unsigned int mode[2]; /* MPU401_MODE_XXX */ mode 73 include/sound/wss.h unsigned short mode; /* see to WSS_MODE_XXXX */ mode 913 include/target/iscsi/iscsi_target_core.h int mode) mode 919 include/target/iscsi/iscsi_target_core.h if (mode == 1) { mode 71 include/trace/events/ext4.h #define show_falloc_mode(mode) __print_flags(mode, "|", \ mode 90 include/trace/events/ext4.h __field( __u16, mode ) mode 99 include/trace/events/ext4.h __entry->mode = inode->i_mode; mode 105 include/trace/events/ext4.h (unsigned long) __entry->ino, __entry->mode, mode 120 include/trace/events/ext4.h __field( __u16, mode ) mode 129 include/trace/events/ext4.h __entry->mode = inode->i_mode; mode 134 include/trace/events/ext4.h (unsigned long) __entry->ino, __entry->mode, mode 139 include/trace/events/ext4.h TP_PROTO(struct inode *dir, int mode), mode 141 include/trace/events/ext4.h TP_ARGS(dir, mode), mode 146 include/trace/events/ext4.h __field( __u16, mode ) mode 152 include/trace/events/ext4.h __entry->mode = mode; mode 157 include/trace/events/ext4.h (unsigned long) __entry->dir, __entry->mode) mode 161 include/trace/events/ext4.h TP_PROTO(struct inode *inode, struct inode *dir, int mode), mode 163 include/trace/events/ext4.h TP_ARGS(inode, dir, mode), mode 169 include/trace/events/ext4.h __field( __u16, mode ) mode 176 include/trace/events/ext4.h __entry->mode = mode; mode 182 include/trace/events/ext4.h (unsigned long) __entry->dir, __entry->mode) mode 864 include/trace/events/ext4.h __field( __u16, mode ) mode 873 include/trace/events/ext4.h __entry->mode = inode->i_mode; mode 879 include/trace/events/ext4.h __entry->mode, __entry->block, __entry->count, mode 1148 include/trace/events/ext4.h __field( __u16, mode ) mode 1156 include/trace/events/ext4.h __entry->mode = inode->i_mode; mode 1162 include/trace/events/ext4.h __entry->mode, __entry->is_metadata, __entry->block) mode 1177 include/trace/events/ext4.h __field( __u16, mode ) mode 1188 include/trace/events/ext4.h __entry->mode = inode->i_mode; mode 1195 include/trace/events/ext4.h __entry->mode, __entry->i_blocks, mode 1210 include/trace/events/ext4.h __field( __u16, mode ) mode 1218 include/trace/events/ext4.h __entry->mode = inode->i_mode; mode 1225 include/trace/events/ext4.h __entry->mode, __entry->i_blocks, mode 1240 include/trace/events/ext4.h __field( __u16, mode ) mode 1249 include/trace/events/ext4.h __entry->mode = inode->i_mode; mode 1256 include/trace/events/ext4.h __entry->mode, __entry->i_blocks, mode 1368 include/trace/events/ext4.h TP_PROTO(struct inode *inode, loff_t offset, loff_t len, int mode), mode 1370 include/trace/events/ext4.h TP_ARGS(inode, offset, len, mode), mode 1377 include/trace/events/ext4.h __field( int, mode ) mode 1385 include/trace/events/ext4.h __entry->mode = mode; mode 1392 include/trace/events/ext4.h show_falloc_mode(__entry->mode)) mode 1397 include/trace/events/ext4.h TP_PROTO(struct inode *inode, loff_t offset, loff_t len, int mode), mode 1399 include/trace/events/ext4.h TP_ARGS(inode, offset, len, mode) mode 1404 include/trace/events/ext4.h TP_PROTO(struct inode *inode, loff_t offset, loff_t len, int mode), mode 1406 include/trace/events/ext4.h TP_ARGS(inode, offset, len, mode) mode 1411 include/trace/events/ext4.h TP_PROTO(struct inode *inode, loff_t offset, loff_t len, int mode), mode 1413 include/trace/events/ext4.h TP_ARGS(inode, offset, len, mode) mode 167 include/trace/events/f2fs.h __field(umode_t, mode) mode 178 include/trace/events/f2fs.h __entry->mode = inode->i_mode; mode 189 include/trace/events/f2fs.h __entry->mode, mode 874 include/trace/events/f2fs.h TP_PROTO(struct inode *inode, int mode, mode 877 include/trace/events/f2fs.h TP_ARGS(inode, mode, offset, len, ret), mode 882 include/trace/events/f2fs.h __field(int, mode) mode 893 include/trace/events/f2fs.h __entry->mode = mode; mode 904 include/trace/events/f2fs.h __entry->mode, mode 1691 include/trace/events/f2fs.h TP_PROTO(struct f2fs_sb_info *sbi, unsigned int mode, int ret), mode 1693 include/trace/events/f2fs.h TP_ARGS(sbi, mode, ret), mode 1697 include/trace/events/f2fs.h __field(unsigned int, mode) mode 1703 include/trace/events/f2fs.h __entry->mode = mode; mode 1709 include/trace/events/f2fs.h show_shutdown_mode(__entry->mode), mode 365 include/trace/events/hswadsp.h __field( uint32_t, mode ) mode 372 include/trace/events/hswadsp.h __entry->mode = req->mode; mode 378 include/trace/events/hswadsp.h (uint32_t)__entry->clock_freq, (uint32_t)__entry->mode, mode 49 include/trace/events/migrate.h enum migrate_mode mode, int reason), mode 51 include/trace/events/migrate.h TP_ARGS(succeeded, failed, mode, reason), mode 56 include/trace/events/migrate.h __field( enum migrate_mode, mode) mode 63 include/trace/events/migrate.h __entry->mode = mode; mode 70 include/trace/events/migrate.h __print_symbolic(__entry->mode, MIGRATE_MODE), mode 195 include/trace/events/nilfs2.h int mode), mode 197 include/trace/events/nilfs2.h TP_ARGS(inode, ino, blkoff, mode), mode 203 include/trace/events/nilfs2.h __field(int, mode) mode 210 include/trace/events/nilfs2.h __entry->mode = mode; mode 217 include/trace/events/nilfs2.h __entry->mode) mode 1309 include/trace/events/rxrpc.h __print_symbolic(__entry->sum.mode, rxrpc_congest_modes), mode 150 include/trace/events/timer.h #define decode_hrtimer_mode(mode) \ mode 151 include/trace/events/timer.h __print_symbolic(mode, \ mode 170 include/trace/events/timer.h enum hrtimer_mode mode), mode 172 include/trace/events/timer.h TP_ARGS(hrtimer, clockid, mode), mode 177 include/trace/events/timer.h __field( enum hrtimer_mode, mode ) mode 183 include/trace/events/timer.h __entry->mode = mode; mode 188 include/trace/events/timer.h decode_hrtimer_mode(__entry->mode)) mode 197 include/trace/events/timer.h TP_PROTO(struct hrtimer *hrtimer, enum hrtimer_mode mode), mode 199 include/trace/events/timer.h TP_ARGS(hrtimer, mode), mode 206 include/trace/events/timer.h __field( enum hrtimer_mode, mode ) mode 214 include/trace/events/timer.h __entry->mode = mode; mode 221 include/trace/events/timer.h decode_hrtimer_mode(__entry->mode)) mode 847 include/trace/events/writeback.h __field( __u16, mode ) mode 855 include/trace/events/writeback.h __entry->mode = inode->i_mode; mode 862 include/trace/events/writeback.h show_inode_state(__entry->state), __entry->mode) mode 16 include/trace/events/xen.h TP_PROTO(enum paravirt_lazy_mode mode), mode 17 include/trace/events/xen.h TP_ARGS(mode), mode 19 include/trace/events/xen.h __field(enum paravirt_lazy_mode, mode) mode 21 include/trace/events/xen.h TP_fast_assign(__entry->mode = mode), mode 23 include/trace/events/xen.h (__entry->mode == PARAVIRT_LAZY_MMU) ? "MMU" : mode 24 include/trace/events/xen.h (__entry->mode == PARAVIRT_LAZY_CPU) ? "CPU" : "NONE") mode 28 include/trace/events/xen.h TP_PROTO(enum paravirt_lazy_mode mode), \ mode 29 include/trace/events/xen.h TP_ARGS(mode)) mode 26 include/uapi/asm-generic/ipcbuf.h __kernel_mode_t mode; mode 537 include/uapi/drm/drm.h unsigned long mode; /**< AGP mode */ mode 572 include/uapi/drm/drm.h unsigned long mode; mode 268 include/uapi/drm/drm_mode.h struct drm_mode_modeinfo mode; mode 569 include/uapi/drm/drm_mode.h struct drm_mode_modeinfo mode; mode 553 include/uapi/drm/tegra_drm.h __u32 mode; mode 587 include/uapi/drm/tegra_drm.h __u32 mode; mode 108 include/uapi/linux/atmsap.h unsigned char mode; /* mode of operation (ATM_IMD_xxx), 0 if */ mode 117 include/uapi/linux/atmsap.h unsigned char mode; /* mode of operation (ATM_IMD_xxx), 0 if */ mode 570 include/uapi/linux/btrfs_tree.h __le32 mode; mode 178 include/uapi/linux/coda.h #define IFTOCDT(mode) (((mode) & 0170000) >> 12) mode 444 include/uapi/linux/coda.h int mode; mode 31 include/uapi/linux/cramfs_fs.h __u32 mode:CRAMFS_MODE_WIDTH, uid:CRAMFS_UID_WIDTH; mode 34 include/uapi/linux/dlm_device.h __u8 mode; mode 152 include/uapi/linux/dvb/dmx.h __u8 mode[DMX_FILTER_SIZE]; mode 55 include/uapi/linux/fscrypt.h __u32 mode; mode 228 include/uapi/linux/fuse.h uint32_t mode; mode 535 include/uapi/linux/fuse.h uint32_t mode; mode 542 include/uapi/linux/fuse.h uint32_t mode; mode 572 include/uapi/linux/fuse.h uint32_t mode; mode 586 include/uapi/linux/fuse.h uint32_t mode; mode 782 include/uapi/linux/fuse.h uint32_t mode; mode 53 include/uapi/linux/hsi/hsi_char.h __u32 mode; mode 59 include/uapi/linux/hsi/hsi_char.h __u32 mode; mode 17 include/uapi/linux/ipc.h __kernel_mode_t mode; mode 143 include/uapi/linux/jffs2.h jmode_t mode; /* The file's type or mode. */ mode 15 include/uapi/linux/matroxfb.h __u32 mode; /* which mode */ mode 13 include/uapi/linux/netfilter/xt_CONNSECMARK.h __u8 mode; mode 18 include/uapi/linux/netfilter/xt_SECMARK.h __u8 mode; mode 30 include/uapi/linux/netfilter/xt_bpf.h __u16 mode; mode 29 include/uapi/linux/netfilter/xt_connmark.h __u8 mode; mode 34 include/uapi/linux/netfilter/xt_connmark.h __u8 shift_dir, shift_bits, mode; mode 33 include/uapi/linux/netfilter/xt_hashlimit.h __u32 mode; /* bitmask of XT_HASHLIMIT_HASH_* */ mode 57 include/uapi/linux/netfilter/xt_hashlimit.h __u32 mode; /* bitmask of XT_HASHLIMIT_HASH_* */ mode 73 include/uapi/linux/netfilter/xt_hashlimit.h __u32 mode; /* bitmask of XT_HASHLIMIT_HASH_* */ mode 87 include/uapi/linux/netfilter/xt_hashlimit.h __u32 mode; /* bitmask of XT_HASHLIMIT_HASH_* */ mode 28 include/uapi/linux/netfilter/xt_policy.h mode:1, mode 61 include/uapi/linux/netfilter/xt_policy.h __u8 mode; mode 28 include/uapi/linux/netfilter/xt_rateest.h __u16 mode; mode 22 include/uapi/linux/netfilter/xt_statistic.h __u16 mode; mode 19 include/uapi/linux/netfilter_ipv4/ipt_TTL.h __u8 mode; mode 19 include/uapi/linux/netfilter_ipv4/ipt_ttl.h __u8 mode; mode 20 include/uapi/linux/netfilter_ipv6/ip6t_HL.h __u8 mode; mode 20 include/uapi/linux/netfilter_ipv6/ip6t_hl.h __u8 mode; mode 57 include/uapi/linux/ppp-ioctl.h enum NPmode mode; mode 85 include/uapi/linux/pps.h int mode; /* mode bits */ mode 28 include/uapi/linux/seg6_iptunnel.h int mode; mode 46 include/uapi/linux/seg6_iptunnel.h switch (tuninfo->mode) { mode 222 include/uapi/linux/soundcard.h unsigned int mode; mode 1113 include/uapi/linux/soundcard.h #define SEQ_VOLUME_MODE(dev, mode) {_SEQ_NEEDBUF(8);\ mode 1117 include/uapi/linux/soundcard.h _seqbuf[_seqbufptr+3] = (mode);\ mode 150 include/uapi/linux/synclink.h unsigned long mode; /* Asynchronous or HDLC */ mode 193 include/uapi/linux/userfaultfd.h __u64 mode; mode 213 include/uapi/linux/userfaultfd.h __u64 mode; mode 225 include/uapi/linux/userfaultfd.h __u64 mode; mode 1910 include/uapi/linux/videodev2.h __u32 mode; mode 1925 include/uapi/linux/videodev2.h __u32 mode; mode 20 include/uapi/linux/vt.h char mode; /* vt mode */ mode 82 include/uapi/linux/vt.h struct vt_mode mode; mode 913 include/uapi/linux/wireless.h __u32 mode; /* Operation mode */ mode 241 include/uapi/linux/xfrm.h __u8 mode; mode 376 include/uapi/linux/xfrm.h __u8 mode; /* XFRM_MODE_xxx */ mode 479 include/uapi/linux/xfrm.h __u8 mode; mode 90 include/uapi/mtd/mtd-abi.h __u8 mode; mode 122 include/uapi/sound/sfnt_info.h unsigned short mode; /* sample mode */ mode 201 include/uapi/sound/sfnt_info.h int mode; mode 41 include/video/imx-ipu-v3.h struct videomode mode; mode 303 include/video/imx-ipu-v3.h int ipu_di_adjust_videomode(struct ipu_di *di, struct videomode *mode); mode 490 include/video/imx-ipu-v3.h int ipu_degrees_to_rot_mode(enum ipu_rotate_mode *mode, int degrees, mode 492 include/video/imx-ipu-v3.h int ipu_rot_mode_to_degrees(int *degrees, enum ipu_rotate_mode mode, mode 183 include/video/mmp_disp.h struct mmp_mode *mode); mode 196 include/video/mmp_disp.h void (*set_mode)(struct mmp_path *path, struct mmp_mode *mode); mode 223 include/video/mmp_disp.h struct mmp_mode mode; mode 239 include/video/mmp_disp.h struct mmp_mode *mode) mode 242 include/video/mmp_disp.h path->ops.set_mode(path, mode); mode 300 include/video/mmp_disp.h void (*set_mode)(struct mmp_path *path, struct mmp_mode *mode); mode 186 include/video/neomagic.h int mode; mode 234 include/video/omapfb_dss.h enum omap_dss_dsi_mode mode; mode 142 include/video/w100fb.h struct w100_mode *mode; mode 121 include/xen/interface/hvm/hvm_vcpu.h uint32_t mode; mode 28 init/do_mounts.h if (!S_ISBLK(stat.mode)) mode 50 init/initramfs.c umode_t mode; mode 63 init/initramfs.c umode_t mode, char *name) mode 73 init/initramfs.c if (((*p)->mode ^ mode) & S_IFMT) mode 83 init/initramfs.c q->mode = mode; mode 148 init/initramfs.c static __initdata umode_t mode; mode 166 init/initramfs.c mode = parsed[1]; mode 259 init/initramfs.c if (S_ISLNK(mode)) { mode 268 init/initramfs.c if (S_ISREG(mode) || !body_len) mode 298 init/initramfs.c if (!vfs_lstat(path, &st) && (st.mode ^ fmode) & S_IFMT) { mode 299 init/initramfs.c if (S_ISDIR(st.mode)) mode 309 init/initramfs.c char *old = find_link(major, minor, ino, mode, collected); mode 328 init/initramfs.c clean_path(collected, mode); mode 329 init/initramfs.c if (S_ISREG(mode)) { mode 335 init/initramfs.c wfd = ksys_open(collected, openflags, mode); mode 339 init/initramfs.c ksys_fchmod(wfd, mode); mode 346 init/initramfs.c } else if (S_ISDIR(mode)) { mode 347 init/initramfs.c ksys_mkdir(collected, mode); mode 349 init/initramfs.c ksys_chmod(collected, mode); mode 351 init/initramfs.c } else if (S_ISBLK(mode) || S_ISCHR(mode) || mode 352 init/initramfs.c S_ISFIFO(mode) || S_ISSOCK(mode)) { mode 354 init/initramfs.c ksys_mknod(collected, mode, rdev); mode 356 init/initramfs.c ksys_chmod(collected, mode); mode 596 init/initramfs.c if (S_ISDIR(st.mode)) mode 46 ipc/compat.c to->mode = v.mode; mode 58 ipc/compat.c to->mode = v.mode; mode 69 ipc/compat.c to->mode = from->mode; mode 80 ipc/compat.c to->mode = from->mode; mode 125 ipc/ipc_sysctl.c .mode = 0644, mode 132 ipc/ipc_sysctl.c .mode = 0644, mode 139 ipc/ipc_sysctl.c .mode = 0644, mode 148 ipc/ipc_sysctl.c .mode = 0644, mode 157 ipc/ipc_sysctl.c .mode = 0644, mode 166 ipc/ipc_sysctl.c .mode = 0644, mode 175 ipc/ipc_sysctl.c .mode = 0644, mode 184 ipc/ipc_sysctl.c .mode = 0644, mode 193 ipc/ipc_sysctl.c .mode = 0644, mode 201 ipc/ipc_sysctl.c .mode = 0644, mode 210 ipc/ipc_sysctl.c .mode = 0644, mode 219 ipc/ipc_sysctl.c .mode = 0644, mode 231 ipc/ipc_sysctl.c .mode = 0555, mode 57 ipc/mq_sysctl.c .mode = 0644, mode 64 ipc/mq_sysctl.c .mode = 0644, mode 73 ipc/mq_sysctl.c .mode = 0644, mode 82 ipc/mq_sysctl.c .mode = 0644, mode 91 ipc/mq_sysctl.c .mode = 0644, mode 102 ipc/mq_sysctl.c .mode = 0555, mode 111 ipc/mq_sysctl.c .mode = 0555, mode 233 ipc/mqueue.c struct ipc_namespace *ipc_ns, umode_t mode, mode 245 ipc/mqueue.c inode->i_mode = mode; mode 250 ipc/mqueue.c if (S_ISREG(mode)) { mode 328 ipc/mqueue.c } else if (S_ISDIR(mode)) { mode 493 ipc/mqueue.c static int mqueue_create_attr(struct dentry *dentry, umode_t mode, void *arg) mode 516 ipc/mqueue.c inode = mqueue_get_inode(dir->i_sb, ipc_ns, mode, attr); mode 539 ipc/mqueue.c umode_t mode, bool excl) mode 541 ipc/mqueue.c return mqueue_create_attr(dentry, mode, NULL); mode 789 ipc/mqueue.c umode_t mode, struct filename *name, mode 802 ipc/mqueue.c return vfs_mkobj(dentry, mode & ~current_umask(), mode 815 ipc/mqueue.c static int do_mq_open(const char __user *u_name, int oflag, umode_t mode, mode 825 ipc/mqueue.c audit_mq_open(oflag, mode, attr); mode 842 ipc/mqueue.c error = prepare_open(path.dentry, oflag, ro, mode, name, attr); mode 864 ipc/mqueue.c SYSCALL_DEFINE4(mq_open, const char __user *, u_name, int, oflag, umode_t, mode, mode 871 ipc/mqueue.c return do_mq_open(u_name, oflag, mode, u_attr ? &attr : NULL); mode 1479 ipc/mqueue.c int, oflag, compat_mode_t, mode, mode 1488 ipc/mqueue.c return do_mq_open(u_name, oflag, mode, p); mode 144 ipc/msg.c msq->q_perm.mode = msgflg & S_IRWXUGO; mode 360 ipc/msg.c out->msg_perm.mode = tbuf_old.msg_perm.mode; mode 767 ipc/msg.c static int testmsg(struct msg_msg *msg, long type, int mode) mode 769 ipc/msg.c switch (mode) { mode 1043 ipc/msg.c static struct msg_msg *find_msg(struct msg_queue *msq, long *msgtyp, int mode) mode 1049 ipc/msg.c if (testmsg(msg, *msgtyp, mode) && mode 1051 ipc/msg.c *msgtyp, mode)) { mode 1052 ipc/msg.c if (mode == SEARCH_LESSEQUAL && msg->m_type != 1) { mode 1055 ipc/msg.c } else if (mode == SEARCH_NUMBER) { mode 1070 ipc/msg.c int mode; mode 1088 ipc/msg.c mode = convert_mode(&msgtyp, msgflg); mode 1113 ipc/msg.c msg = find_msg(msq, &msgtyp, mode); mode 1153 ipc/msg.c msr_d.r_mode = mode; mode 1299 ipc/msg.c msq->q_perm.mode, mode 527 ipc/sem.c sma->sem_perm.mode = (semflg & S_IRWXUGO); mode 1569 ipc/sem.c out->sem_perm.mode = tbuf_old.sem_perm.mode; mode 2433 ipc/sem.c sma->sem_perm.mode, mode 120 ipc/shm.c shp->shm_perm.mode |= SHM_DEST; mode 313 ipc/shm.c (shp->shm_perm.mode & SHM_DEST)); mode 534 ipc/shm.c static long shm_fallocate(struct file *file, int mode, loff_t offset, mode 541 ipc/shm.c return sfd->file->f_op->fallocate(file, mode, offset, len); mode 627 ipc/shm.c shp->shm_perm.mode = (shmflg & S_IRWXUGO); mode 793 ipc/shm.c out->shm_perm.mode = tbuf_old.shm_perm.mode; mode 1112 ipc/shm.c if (!err && !(shp->shm_perm.mode & SHM_LOCKED)) { mode 1113 ipc/shm.c shp->shm_perm.mode |= SHM_LOCKED; mode 1120 ipc/shm.c if (!(shp->shm_perm.mode & SHM_LOCKED)) mode 1123 ipc/shm.c shp->shm_perm.mode &= ~SHM_LOCKED; mode 1762 ipc/shm.c shp->shm_perm.mode, mode 526 ipc/util.c granted_mode = ipcp->mode; mode 560 ipc/util.c out->mode = in->mode; mode 579 ipc/util.c out->mode = in->mode; mode 662 ipc/util.c out->mode = (out->mode & ~S_IRWXUGO) mode 663 ipc/util.c | (in->mode & S_IRWXUGO); mode 705 ipc/util.c perm->gid, perm->mode); mode 263 ipc/util.h compat_mode_t mode; mode 76 kernel/audit.h umode_t mode; mode 153 kernel/audit.h umode_t mode; mode 177 kernel/audit.h umode_t mode; mode 179 kernel/auditsc.c umode_t mode = (umode_t)val; mode 186 kernel/auditsc.c ((n->mode & S_IFMT) == mode)) mode 1211 kernel/auditsc.c context->ipc.mode); mode 1241 kernel/auditsc.c context->mq_open.oflag, context->mq_open.mode, mode 1357 kernel/auditsc.c n->mode, mode 1926 kernel/auditsc.c name->mode = inode->i_mode; mode 2193 kernel/auditsc.c void __audit_mq_open(int oflag, umode_t mode, struct mq_attr *attr) mode 2203 kernel/auditsc.c context->mq_open.mode = mode; mode 2278 kernel/auditsc.c context->ipc.mode = ipcp->mode; mode 2293 kernel/auditsc.c void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode) mode 2300 kernel/auditsc.c context->ipc.perm_mode = mode; mode 83 kernel/bpf/inode.c umode_t mode) mode 87 kernel/bpf/inode.c switch (mode & S_IFMT) { mode 105 kernel/bpf/inode.c inode_init_owner(inode, dir, mode); mode 133 kernel/bpf/inode.c static int bpf_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 137 kernel/bpf/inode.c inode = bpf_get_inode(dir->i_sb, dir, mode | S_IFDIR); mode 306 kernel/bpf/inode.c static int bpf_mkobj_ops(struct dentry *dentry, umode_t mode, void *raw, mode 311 kernel/bpf/inode.c struct inode *inode = bpf_get_inode(dir->i_sb, dir, mode); mode 323 kernel/bpf/inode.c static int bpf_mkprog(struct dentry *dentry, umode_t mode, void *arg) mode 325 kernel/bpf/inode.c return bpf_mkobj_ops(dentry, mode, arg, &bpf_prog_iops, mode 329 kernel/bpf/inode.c static int bpf_mkmap(struct dentry *dentry, umode_t mode, void *arg) mode 333 kernel/bpf/inode.c return bpf_mkobj_ops(dentry, mode, arg, &bpf_map_iops, mode 388 kernel/bpf/inode.c umode_t mode; mode 395 kernel/bpf/inode.c mode = S_IFREG | ((S_IRUSR | S_IWUSR) & ~current_umask()); mode 397 kernel/bpf/inode.c ret = security_path_mknod(&path, dentry, mode, 0); mode 409 kernel/bpf/inode.c ret = vfs_mkobj(dentry, mode, bpf_mkprog, raw); mode 412 kernel/bpf/inode.c ret = vfs_mkobj(dentry, mode, bpf_mkmap, raw); mode 559 kernel/bpf/inode.c umode_t mode = d_inode(root)->i_mode & S_IALLUGO & ~S_ISVTX; mode 561 kernel/bpf/inode.c if (mode != S_IRWXUGO) mode 562 kernel/bpf/inode.c seq_printf(m, ",mode=%o", mode); mode 599 kernel/bpf/inode.c umode_t mode; mode 618 kernel/bpf/inode.c opts->mode = result.uint_32 & S_IALLUGO; mode 641 kernel/bpf/inode.c inode->i_mode |= S_ISVTX | opts->mode; mode 673 kernel/bpf/inode.c opts->mode = S_IRWXUGO; mode 361 kernel/bpf/syscall.c fmode_t mode = f.file->f_mode; mode 367 kernel/bpf/syscall.c mode &= ~FMODE_CAN_WRITE; mode 368 kernel/bpf/syscall.c return mode; mode 25 kernel/bpf/sysfs_btf.c .attr = { .name = "vmlinux", .mode = 0444, }, mode 1301 kernel/bpf/verifier.c u8 mode = BPF_MODE(code); mode 1304 kernel/bpf/verifier.c if (mode == BPF_IMM) mode 1452 kernel/bpf/verifier.c u8 mode = BPF_MODE(insn->code); mode 1571 kernel/bpf/verifier.c if (mode == BPF_IND || mode == BPF_ABS) mode 6100 kernel/bpf/verifier.c u8 mode = BPF_MODE(insn->code); mode 6127 kernel/bpf/verifier.c (mode == BPF_ABS && insn->src_reg != BPF_REG_0)) { mode 6158 kernel/bpf/verifier.c if (mode == BPF_IND) { mode 7876 kernel/bpf/verifier.c u8 mode = BPF_MODE(insn->code); mode 7878 kernel/bpf/verifier.c if (mode == BPF_ABS || mode == BPF_IND) { mode 7883 kernel/bpf/verifier.c } else if (mode == BPF_IMM) { mode 241 kernel/cgroup/cgroup-internal.h int cgroup_mkdir(struct kernfs_node *parent_kn, const char *name, umode_t mode); mode 1494 kernel/cgroup/cgroup.c umode_t mode = 0; mode 1497 kernel/cgroup/cgroup.c mode |= S_IRUGO; mode 1501 kernel/cgroup/cgroup.c mode |= S_IWUGO; mode 1503 kernel/cgroup/cgroup.c mode |= S_IWUSR; mode 1506 kernel/cgroup/cgroup.c return mode; mode 5369 kernel/cgroup/cgroup.c int cgroup_mkdir(struct kernfs_node *parent_kn, const char *name, umode_t mode) mode 5395 kernel/cgroup/cgroup.c kn = kernfs_create_dir(parent->kn, name, mode, cgrp); mode 799 kernel/events/core.c static void perf_cgroup_switch(struct task_struct *task, int mode) mode 818 kernel/events/core.c if (mode & PERF_CGROUP_SWOUT) { mode 827 kernel/events/core.c if (mode & PERF_CGROUP_SWIN) { mode 1397 kernel/exit.c static int child_wait_callback(wait_queue_entry_t *wait, unsigned mode, mode 1410 kernel/exit.c return default_wake_function(wait, mode, sync, key); mode 1219 kernel/fork.c struct mm_struct *mm_access(struct task_struct *task, unsigned int mode) mode 1230 kernel/fork.c !ptrace_may_access(task, mode)) { mode 1621 kernel/fork.c if (p->seccomp.mode != SECCOMP_MODE_DISABLED) mode 304 kernel/futex.c umode_t mode = S_IFREG | S_IRUSR | S_IWUSR; mode 312 kernel/futex.c debugfs_create_bool("ignore-private", mode, dir, mode 51 kernel/kcov.c enum kcov_mode mode; mode 62 kernel/kcov.c unsigned int mode; mode 70 kernel/kcov.c mode = READ_ONCE(t->kcov_mode); mode 79 kernel/kcov.c return mode == needed_mode; mode 267 kernel/kcov.c kcov->mode = KCOV_MODE_INIT; mode 286 kernel/kcov.c if (kcov->mode != KCOV_MODE_INIT || vma->vm_pgoff != 0 || mode 315 kernel/kcov.c kcov->mode = KCOV_MODE_DISABLED; mode 355 kernel/kcov.c if (kcov->mode != KCOV_MODE_DISABLED) mode 366 kernel/kcov.c kcov->mode = KCOV_MODE_INIT; mode 376 kernel/kcov.c if (kcov->mode != KCOV_MODE_INIT || !kcov->area) mode 382 kernel/kcov.c kcov->mode = KCOV_MODE_TRACE_PC; mode 385 kernel/kcov.c kcov->mode = KCOV_MODE_TRACE_CMP; mode 397 kernel/kcov.c WRITE_ONCE(t->kcov_mode, kcov->mode); mode 413 kernel/kcov.c kcov->mode = KCOV_MODE_INIT; mode 44 kernel/kheaders.c .mode = 0444, mode 203 kernel/ksysfs.c .mode = S_IRUGO, mode 793 kernel/module.c .attr = { .name = __stringify(field), .mode = 0444 }, \ mode 1578 kernel/module.c sattr->mattr.attr.mode = S_IRUSR; mode 1670 kernel/module.c nattr->attr.mode = S_IRUGO; mode 659 kernel/params.c mk->mp->attrs[mk->mp->num].mattr.attr.mode = kp->perm; mode 298 kernel/pid_namespace.c .mode = 0666, /* permissions are checked in the handler */ mode 1006 kernel/power/hibernate.c int mode = HIBERNATION_INVALID; mode 1018 kernel/power/hibernate.c mode = i; mode 1022 kernel/power/hibernate.c if (mode != HIBERNATION_INVALID) { mode 1023 kernel/power/hibernate.c switch (mode) { mode 1030 kernel/power/hibernate.c hibernation_mode = mode; mode 1034 kernel/power/hibernate.c hibernation_mode = mode; mode 1043 kernel/power/hibernate.c hibernation_modes[mode]); mode 82 kernel/power/power.h .mode = 0644, \ mode 92 kernel/power/power.h .mode = S_IRUGO, \ mode 1553 kernel/power/swap.c void swsusp_close(fmode_t mode) mode 1560 kernel/power/swap.c blkdev_put(hib_resume_bdev, mode); mode 35 kernel/power/user.c int mode; mode 72 kernel/power/user.c data->mode = O_RDONLY; mode 85 kernel/power/user.c data->mode = O_WRONLY; mode 125 kernel/power/user.c pm_notifier_call_chain(data->mode == O_RDONLY ? mode 253 kernel/power/user.c if (data->mode != O_RDONLY || !data->frozen || data->ready) { mode 268 kernel/power/user.c if (data->mode != O_WRONLY || !data->frozen || mode 2581 kernel/printk/printk.c void console_flush_on_panic(enum con_flush_mode mode) mode 2593 kernel/printk/printk.c if (mode == CONSOLE_REPLAY_ALL) { mode 268 kernel/ptrace.c unsigned int mode) mode 272 kernel/ptrace.c if (mode & PTRACE_MODE_NOAUDIT) mode 281 kernel/ptrace.c static int __ptrace_may_access(struct task_struct *task, unsigned int mode) mode 288 kernel/ptrace.c if (!(mode & PTRACE_MODE_FSCREDS) == !(mode & PTRACE_MODE_REALCREDS)) { mode 306 kernel/ptrace.c if (mode & PTRACE_MODE_FSCREDS) { mode 329 kernel/ptrace.c if (ptrace_has_cap(cred, tcred->user_ns, mode)) mode 348 kernel/ptrace.c !ptrace_has_cap(cred, mm->user_ns, mode))) mode 351 kernel/ptrace.c return security_ptrace_access_check(task, mode); mode 354 kernel/ptrace.c bool ptrace_may_access(struct task_struct *task, unsigned int mode) mode 358 kernel/ptrace.c err = __ptrace_may_access(task, mode); mode 524 kernel/reboot.c enum reboot_mode *mode; mode 534 kernel/reboot.c mode = &panic_reboot_mode; mode 537 kernel/reboot.c mode = &reboot_mode; mode 542 kernel/reboot.c *mode = REBOOT_WARM; mode 546 kernel/reboot.c *mode = REBOOT_COLD; mode 550 kernel/reboot.c *mode = REBOOT_HARD; mode 567 kernel/reboot.c *mode = REBOOT_SOFT; mode 571 kernel/reboot.c *mode = REBOOT_GPIO; mode 306 kernel/relay.c umode_t mode, mode 4335 kernel/sched/core.c int default_wake_function(wait_queue_entry_t *curr, unsigned mode, int wake_flags, mode 4338 kernel/sched/core.c return try_to_wake_up(curr->private, mode, wake_flags); mode 193 kernel/sched/debug.c .mode = 0555, mode 201 kernel/sched/debug.c .mode = 0555, mode 225 kernel/sched/debug.c for (entry = *tablep; entry->mode; entry++) { mode 239 kernel/sched/debug.c umode_t mode, proc_handler *proc_handler) mode 244 kernel/sched/debug.c entry->mode = mode; mode 286 kernel/sched/debug.c entry->mode = 0555; mode 349 kernel/sched/debug.c e->mode = 0555; mode 66 kernel/sched/wait.c static int __wake_up_common(struct wait_queue_head *wq_head, unsigned int mode, mode 93 kernel/sched/wait.c ret = curr->func(curr, mode, wake_flags, key); mode 110 kernel/sched/wait.c static void __wake_up_common_lock(struct wait_queue_head *wq_head, unsigned int mode, mode 123 kernel/sched/wait.c nr_exclusive = __wake_up_common(wq_head, mode, nr_exclusive, mode 139 kernel/sched/wait.c void __wake_up(struct wait_queue_head *wq_head, unsigned int mode, mode 142 kernel/sched/wait.c __wake_up_common_lock(wq_head, mode, nr_exclusive, 0, key); mode 149 kernel/sched/wait.c void __wake_up_locked(struct wait_queue_head *wq_head, unsigned int mode, int nr) mode 151 kernel/sched/wait.c __wake_up_common(wq_head, mode, nr, 0, NULL, NULL); mode 155 kernel/sched/wait.c void __wake_up_locked_key(struct wait_queue_head *wq_head, unsigned int mode, void *key) mode 157 kernel/sched/wait.c __wake_up_common(wq_head, mode, 1, 0, key, NULL); mode 162 kernel/sched/wait.c unsigned int mode, void *key, wait_queue_entry_t *bookmark) mode 164 kernel/sched/wait.c __wake_up_common(wq_head, mode, 1, 0, key, bookmark); mode 185 kernel/sched/wait.c void __wake_up_sync_key(struct wait_queue_head *wq_head, unsigned int mode, mode 196 kernel/sched/wait.c __wake_up_common_lock(wq_head, mode, nr_exclusive, wake_flags, key); mode 203 kernel/sched/wait.c void __wake_up_sync(struct wait_queue_head *wq_head, unsigned int mode, int nr_exclusive) mode 205 kernel/sched/wait.c __wake_up_sync_key(wq_head, mode, nr_exclusive, NULL); mode 370 kernel/sched/wait.c int autoremove_wake_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync, void *key) mode 372 kernel/sched/wait.c int ret = default_wake_function(wq_entry, mode, sync, key); mode 406 kernel/sched/wait.c long wait_woken(struct wait_queue_entry *wq_entry, unsigned mode, long timeout) mode 414 kernel/sched/wait.c set_current_state(mode); /* A */ mode 431 kernel/sched/wait.c int woken_wake_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync, void *key) mode 437 kernel/sched/wait.c return default_wake_function(wq_entry, mode, sync, key); mode 21 kernel/sched/wait_bit.c int wake_bit_function(struct wait_queue_entry *wq_entry, unsigned mode, int sync, void *arg) mode 31 kernel/sched/wait_bit.c return autoremove_wake_function(wq_entry, mode, sync, key); mode 42 kernel/sched/wait_bit.c wait_bit_action_f *action, unsigned mode) mode 47 kernel/sched/wait_bit.c prepare_to_wait(wq_head, &wbq_entry->wq_entry, mode); mode 49 kernel/sched/wait_bit.c ret = (*action)(&wbq_entry->key, mode); mode 59 kernel/sched/wait_bit.c wait_bit_action_f *action, unsigned mode) mode 64 kernel/sched/wait_bit.c return __wait_on_bit(wq_head, &wq_entry, action, mode); mode 70 kernel/sched/wait_bit.c unsigned mode, unsigned long timeout) mode 77 kernel/sched/wait_bit.c return __wait_on_bit(wq_head, &wq_entry, action, mode); mode 83 kernel/sched/wait_bit.c wait_bit_action_f *action, unsigned mode) mode 88 kernel/sched/wait_bit.c prepare_to_wait_exclusive(wq_head, &wbq_entry->wq_entry, mode); mode 90 kernel/sched/wait_bit.c ret = action(&wbq_entry->key, mode); mode 112 kernel/sched/wait_bit.c wait_bit_action_f *action, unsigned mode) mode 117 kernel/sched/wait_bit.c return __wait_on_bit_lock(wq_head, &wq_entry, action, mode); mode 160 kernel/sched/wait_bit.c var_wake_function(struct wait_queue_entry *wq_entry, unsigned int mode, mode 171 kernel/sched/wait_bit.c return autoremove_wake_function(wq_entry, mode, sync, key); mode 196 kernel/sched/wait_bit.c __sched int bit_wait(struct wait_bit_key *word, int mode) mode 199 kernel/sched/wait_bit.c if (signal_pending_state(mode, current)) mode 206 kernel/sched/wait_bit.c __sched int bit_wait_io(struct wait_bit_key *word, int mode) mode 209 kernel/sched/wait_bit.c if (signal_pending_state(mode, current)) mode 216 kernel/sched/wait_bit.c __sched int bit_wait_timeout(struct wait_bit_key *word, int mode) mode 223 kernel/sched/wait_bit.c if (signal_pending_state(mode, current)) mode 230 kernel/sched/wait_bit.c __sched int bit_wait_io_timeout(struct wait_bit_key *word, int mode) mode 237 kernel/sched/wait_bit.c if (signal_pending_state(mode, current)) mode 288 kernel/seccomp.c if (current->seccomp.mode && current->seccomp.mode != seccomp_mode) mode 302 kernel/seccomp.c task->seccomp.mode = seccomp_mode; mode 353 kernel/seccomp.c if (thread->seccomp.mode == SECCOMP_MODE_DISABLED || mode 354 kernel/seccomp.c (thread->seccomp.mode == SECCOMP_MODE_FILTER && mode 418 kernel/seccomp.c if (thread->seccomp.mode == SECCOMP_MODE_DISABLED) mode 709 kernel/seccomp.c int mode = current->seccomp.mode; mode 715 kernel/seccomp.c if (mode == SECCOMP_MODE_DISABLED) mode 717 kernel/seccomp.c else if (mode == SECCOMP_MODE_STRICT) mode 922 kernel/seccomp.c int mode = current->seccomp.mode; mode 932 kernel/seccomp.c switch (mode) { mode 946 kernel/seccomp.c return current->seccomp.mode; mode 1466 kernel/seccomp.c if (task->seccomp.mode != SECCOMP_MODE_FILTER) { mode 1508 kernel/seccomp.c current->seccomp.mode != SECCOMP_MODE_DISABLED) { mode 1546 kernel/seccomp.c current->seccomp.mode != SECCOMP_MODE_DISABLED) { mode 1788 kernel/seccomp.c .mode = 0444, mode 1793 kernel/seccomp.c .mode = 0644, mode 277 kernel/sysctl.c .mode = 0555, mode 282 kernel/sysctl.c .mode = 0555, mode 287 kernel/sysctl.c .mode = 0555, mode 292 kernel/sysctl.c .mode = 0555, mode 297 kernel/sysctl.c .mode = 0555, mode 324 kernel/sysctl.c .mode = 0644, mode 332 kernel/sysctl.c .mode = 0644, mode 341 kernel/sysctl.c .mode = 0644, mode 350 kernel/sysctl.c .mode = 0644, mode 360 kernel/sysctl.c .mode = 0644, mode 369 kernel/sysctl.c .mode = 0644, mode 376 kernel/sysctl.c .mode = 0644, mode 384 kernel/sysctl.c .mode = 0644, mode 396 kernel/sysctl.c .mode = 0644, mode 403 kernel/sysctl.c .mode = 0644, mode 410 kernel/sysctl.c .mode = 0644, mode 417 kernel/sysctl.c .mode = 0644, mode 425 kernel/sysctl.c .mode = 0644, mode 436 kernel/sysctl.c .mode = 0644, mode 443 kernel/sysctl.c .mode = 0644, mode 450 kernel/sysctl.c .mode = 0644, mode 458 kernel/sysctl.c .mode = 0644, mode 465 kernel/sysctl.c .mode = 0644, mode 474 kernel/sysctl.c .mode = 0644, mode 485 kernel/sysctl.c .mode = 0644, mode 495 kernel/sysctl.c .mode = 0644, mode 506 kernel/sysctl.c .mode = 0644, mode 515 kernel/sysctl.c .mode = 0644, mode 523 kernel/sysctl.c .mode = 0644, mode 531 kernel/sysctl.c .mode = 0644, mode 538 kernel/sysctl.c .mode = 0644, mode 545 kernel/sysctl.c .mode = 0644, mode 553 kernel/sysctl.c .mode = 0644, mode 560 kernel/sysctl.c .mode = 0644, mode 571 kernel/sysctl.c .mode = 0644, mode 580 kernel/sysctl.c .mode = 0644, mode 588 kernel/sysctl.c .mode = 0644, mode 596 kernel/sysctl.c .mode = 0644, mode 603 kernel/sysctl.c .mode = 0644, mode 610 kernel/sysctl.c .mode = 0644, mode 619 kernel/sysctl.c .mode = 0644, mode 628 kernel/sysctl.c .mode = 0644, mode 637 kernel/sysctl.c .mode = 0644, mode 645 kernel/sysctl.c .mode = 0644, mode 653 kernel/sysctl.c .mode = 0644, mode 662 kernel/sysctl.c .mode = 0644, mode 671 kernel/sysctl.c .mode = 0644, mode 678 kernel/sysctl.c .mode = 0644, mode 685 kernel/sysctl.c .mode = 0644, mode 694 kernel/sysctl.c .mode = 0644, mode 706 kernel/sysctl.c .mode = 0644, mode 713 kernel/sysctl.c .mode = 0644, mode 725 kernel/sysctl.c .mode = 0644, mode 734 kernel/sysctl.c .mode = 0444, mode 743 kernel/sysctl.c .mode = 0644, mode 752 kernel/sysctl.c .mode = 0644, mode 761 kernel/sysctl.c .mode = 0600, mode 769 kernel/sysctl.c .mode = 0644, mode 774 kernel/sysctl.c .mode = 0555, mode 779 kernel/sysctl.c .mode = 0555, mode 785 kernel/sysctl.c .mode = 0555, mode 793 kernel/sysctl.c .mode = 0644, mode 802 kernel/sysctl.c .mode = 0644, mode 813 kernel/sysctl.c .mode = 0644, mode 821 kernel/sysctl.c .mode = 0644, mode 829 kernel/sysctl.c .mode = 0644, mode 838 kernel/sysctl.c .mode = 0644, mode 845 kernel/sysctl.c .mode = 0644, mode 853 kernel/sysctl.c .mode = 0644, mode 860 kernel/sysctl.c .mode = 0644, mode 867 kernel/sysctl.c .mode = 0644, mode 874 kernel/sysctl.c .mode = 0644, mode 883 kernel/sysctl.c .mode = 0644, mode 890 kernel/sysctl.c .mode = 0644, mode 899 kernel/sysctl.c .mode = 0644, mode 909 kernel/sysctl.c .mode = 0444, mode 916 kernel/sysctl.c .mode = 0444, mode 924 kernel/sysctl.c .mode = 0644, mode 933 kernel/sysctl.c .mode = 0644, mode 942 kernel/sysctl.c .mode = NMI_WATCHDOG_SYSCTL_PERM, mode 951 kernel/sysctl.c .mode = 0644, mode 959 kernel/sysctl.c .mode = 0644, mode 968 kernel/sysctl.c .mode = 0644, mode 978 kernel/sysctl.c .mode = 0644, mode 990 kernel/sysctl.c .mode = 0644, mode 1000 kernel/sysctl.c .mode = 0644, mode 1014 kernel/sysctl.c .mode = 0644, mode 1023 kernel/sysctl.c .mode = 0644, mode 1030 kernel/sysctl.c .mode = 0644, mode 1038 kernel/sysctl.c .mode = 0644, mode 1046 kernel/sysctl.c .mode = 0444, mode 1053 kernel/sysctl.c .mode = 0444, mode 1060 kernel/sysctl.c .mode = 0644, mode 1069 kernel/sysctl.c .mode = 0644, mode 1078 kernel/sysctl.c .mode = 0644, mode 1087 kernel/sysctl.c .mode = 0644, mode 1096 kernel/sysctl.c .mode = 0644, mode 1105 kernel/sysctl.c .mode = 0644, mode 1114 kernel/sysctl.c .mode = 0644, mode 1123 kernel/sysctl.c .mode = 0644, mode 1131 kernel/sysctl.c .mode = 0644, mode 1139 kernel/sysctl.c .mode = 0644, mode 1147 kernel/sysctl.c .mode = 0644, mode 1157 kernel/sysctl.c .mode = 0644, mode 1165 kernel/sysctl.c .mode = 0644, mode 1171 kernel/sysctl.c .mode = 0555, mode 1186 kernel/sysctl.c .mode = 0644, mode 1193 kernel/sysctl.c .mode = 0644, mode 1200 kernel/sysctl.c .mode = 0644, mode 1208 kernel/sysctl.c .mode = 0644, mode 1217 kernel/sysctl.c .mode = 0644, mode 1226 kernel/sysctl.c .mode = 0644, mode 1236 kernel/sysctl.c .mode = 0644, mode 1246 kernel/sysctl.c .mode = 0644, mode 1257 kernel/sysctl.c .mode = 0644, mode 1267 kernel/sysctl.c .mode = 0644, mode 1276 kernel/sysctl.c .mode = 0644, mode 1287 kernel/sysctl.c .mode = 0600, mode 1301 kernel/sysctl.c .mode = 0644, mode 1310 kernel/sysctl.c .mode = 0644, mode 1319 kernel/sysctl.c .mode = 0644, mode 1326 kernel/sysctl.c .mode = 0644, mode 1333 kernel/sysctl.c .mode = 0644, mode 1340 kernel/sysctl.c .mode = 0644, mode 1347 kernel/sysctl.c .mode = 0644, mode 1355 kernel/sysctl.c .mode = 0644, mode 1364 kernel/sysctl.c .mode = 0644, mode 1372 kernel/sysctl.c .mode = 0644, mode 1381 kernel/sysctl.c .mode = 0644, mode 1389 kernel/sysctl.c .mode = 0644, mode 1396 kernel/sysctl.c .mode = 0644, mode 1404 kernel/sysctl.c .mode = 0644, mode 1412 kernel/sysctl.c .mode = 0644, mode 1422 kernel/sysctl.c .mode = 0644, mode 1430 kernel/sysctl.c .mode = 0644, mode 1437 kernel/sysctl.c .mode = 0644, mode 1447 kernel/sysctl.c .mode = 0644, mode 1454 kernel/sysctl.c .mode = 0644, mode 1462 kernel/sysctl.c .mode = 0644, mode 1469 kernel/sysctl.c .mode = 0200, mode 1479 kernel/sysctl.c .mode = 0200, mode 1486 kernel/sysctl.c .mode = 0644, mode 1495 kernel/sysctl.c .mode = 0644, mode 1506 kernel/sysctl.c .mode = 0644, mode 1514 kernel/sysctl.c .mode = 0644, mode 1522 kernel/sysctl.c .mode = 0644, mode 1531 kernel/sysctl.c .mode = 0644, mode 1540 kernel/sysctl.c .mode = 0644, mode 1549 kernel/sysctl.c .mode = 0644, mode 1558 kernel/sysctl.c .mode = 0644, mode 1565 kernel/sysctl.c .mode = 0644, mode 1573 kernel/sysctl.c .mode = 0644, mode 1583 kernel/sysctl.c .mode = 0644, mode 1593 kernel/sysctl.c .mode = 0644, mode 1601 kernel/sysctl.c .mode = 0644, mode 1610 kernel/sysctl.c .mode = 0644, mode 1621 kernel/sysctl.c .mode = 0644, mode 1628 kernel/sysctl.c .mode = 0600, mode 1637 kernel/sysctl.c .mode = 0644, mode 1646 kernel/sysctl.c .mode = 0644, mode 1661 kernel/sysctl.c .mode = 0644, mode 1671 kernel/sysctl.c .mode = 0644, mode 1682 kernel/sysctl.c .mode = 0644, mode 1691 kernel/sysctl.c .mode = 0644, mode 1701 kernel/sysctl.c .mode = 0644, mode 1708 kernel/sysctl.c .mode = 0644, mode 1716 kernel/sysctl.c .mode = 0600, mode 1727 kernel/sysctl.c .mode = 0600, mode 1738 kernel/sysctl.c .mode = 0644, mode 1752 kernel/sysctl.c .mode = 0444, mode 1759 kernel/sysctl.c .mode = 0444, mode 1766 kernel/sysctl.c .mode = 0444, mode 1773 kernel/sysctl.c .mode = 0644, mode 1782 kernel/sysctl.c .mode = 0644, mode 1791 kernel/sysctl.c .mode = 0444, mode 1798 kernel/sysctl.c .mode = 0644, mode 1807 kernel/sysctl.c .mode = 0644, mode 1817 kernel/sysctl.c .mode = 0644, mode 1826 kernel/sysctl.c .mode = 0644, mode 1836 kernel/sysctl.c .mode = 0644, mode 1845 kernel/sysctl.c .mode = 0444, mode 1852 kernel/sysctl.c .mode = 0644, mode 1859 kernel/sysctl.c .mode = 0555, mode 1866 kernel/sysctl.c .mode = 0555, mode 1875 kernel/sysctl.c .mode = 0600, mode 1884 kernel/sysctl.c .mode = 0600, mode 1893 kernel/sysctl.c .mode = 0600, mode 1902 kernel/sysctl.c .mode = 0600, mode 1911 kernel/sysctl.c .mode = 0644, mode 1919 kernel/sysctl.c .mode = 0555, mode 1927 kernel/sysctl.c .mode = 0644, mode 1934 kernel/sysctl.c .mode = 0644, mode 1941 kernel/sysctl.c .mode = 0644, mode 1948 kernel/sysctl.c .mode = 0644, mode 1961 kernel/sysctl.c .mode = 0644, mode 1970 kernel/sysctl.c .mode = 0644, mode 3396 kernel/sysctl.c .mode = table->mode, mode 414 kernel/time/hrtimer.c enum hrtimer_mode mode) mode 430 kernel/time/hrtimer.c enum hrtimer_mode mode); mode 433 kernel/time/hrtimer.c enum hrtimer_mode mode) mode 436 kernel/time/hrtimer.c __hrtimer_init(timer, clock_id, mode); mode 441 kernel/time/hrtimer.c clockid_t clock_id, enum hrtimer_mode mode); mode 444 kernel/time/hrtimer.c clockid_t clock_id, enum hrtimer_mode mode) mode 447 kernel/time/hrtimer.c __hrtimer_init_sleeper(sl, clock_id, mode); mode 461 kernel/time/hrtimer.c enum hrtimer_mode mode) { } mode 467 kernel/time/hrtimer.c enum hrtimer_mode mode) mode 470 kernel/time/hrtimer.c trace_hrtimer_init(timer, clockid, mode); mode 474 kernel/time/hrtimer.c enum hrtimer_mode mode) mode 476 kernel/time/hrtimer.c debug_hrtimer_activate(timer, mode); mode 477 kernel/time/hrtimer.c trace_hrtimer_start(timer, mode); mode 963 kernel/time/hrtimer.c enum hrtimer_mode mode) mode 965 kernel/time/hrtimer.c debug_activate(timer, mode); mode 1044 kernel/time/hrtimer.c const enum hrtimer_mode mode) mode 1052 kernel/time/hrtimer.c timer->is_rel = mode & HRTIMER_MODE_REL; mode 1085 kernel/time/hrtimer.c u64 delta_ns, const enum hrtimer_mode mode, mode 1093 kernel/time/hrtimer.c if (mode & HRTIMER_MODE_REL) mode 1096 kernel/time/hrtimer.c tim = hrtimer_update_lowres(timer, tim, mode); mode 1101 kernel/time/hrtimer.c new_base = switch_hrtimer_base(timer, base, mode & HRTIMER_MODE_PINNED); mode 1103 kernel/time/hrtimer.c return enqueue_hrtimer(timer, new_base, mode); mode 1116 kernel/time/hrtimer.c u64 delta_ns, const enum hrtimer_mode mode) mode 1127 kernel/time/hrtimer.c WARN_ON_ONCE(!(mode & HRTIMER_MODE_SOFT) ^ !timer->is_soft); mode 1129 kernel/time/hrtimer.c WARN_ON_ONCE(!(mode & HRTIMER_MODE_HARD) ^ !timer->is_hard); mode 1133 kernel/time/hrtimer.c if (__hrtimer_start_range_ns(timer, tim, delta_ns, mode, base)) mode 1377 kernel/time/hrtimer.c enum hrtimer_mode mode) mode 1379 kernel/time/hrtimer.c bool softtimer = !!(mode & HRTIMER_MODE_SOFT); mode 1389 kernel/time/hrtimer.c if (IS_ENABLED(CONFIG_PREEMPT_RT) && !(mode & HRTIMER_MODE_HARD)) mode 1401 kernel/time/hrtimer.c if (clock_id == CLOCK_REALTIME && mode & HRTIMER_MODE_REL) mode 1425 kernel/time/hrtimer.c enum hrtimer_mode mode) mode 1427 kernel/time/hrtimer.c debug_init(timer, clock_id, mode); mode 1428 kernel/time/hrtimer.c __hrtimer_init(timer, clock_id, mode); mode 1783 kernel/time/hrtimer.c enum hrtimer_mode mode) mode 1793 kernel/time/hrtimer.c mode |= HRTIMER_MODE_HARD; mode 1795 kernel/time/hrtimer.c hrtimer_start_expires(&sl->timer, mode); mode 1800 kernel/time/hrtimer.c clockid_t clock_id, enum hrtimer_mode mode) mode 1822 kernel/time/hrtimer.c if (task_is_realtime(current) && !(mode & HRTIMER_MODE_SOFT)) mode 1823 kernel/time/hrtimer.c mode |= HRTIMER_MODE_HARD; mode 1826 kernel/time/hrtimer.c __hrtimer_init(&sl->timer, clock_id, mode); mode 1838 kernel/time/hrtimer.c enum hrtimer_mode mode) mode 1840 kernel/time/hrtimer.c debug_init(&sl->timer, clock_id, mode); mode 1841 kernel/time/hrtimer.c __hrtimer_init_sleeper(sl, clock_id, mode); mode 1865 kernel/time/hrtimer.c static int __sched do_nanosleep(struct hrtimer_sleeper *t, enum hrtimer_mode mode) mode 1871 kernel/time/hrtimer.c hrtimer_sleeper_start_expires(t, mode); mode 1877 kernel/time/hrtimer.c mode = HRTIMER_MODE_ABS; mode 1914 kernel/time/hrtimer.c const enum hrtimer_mode mode, const clockid_t clockid) mode 1925 kernel/time/hrtimer.c hrtimer_init_sleeper_on_stack(&t, clockid, mode); mode 1927 kernel/time/hrtimer.c ret = do_nanosleep(&t, mode); mode 1932 kernel/time/hrtimer.c if (mode == HRTIMER_MODE_ABS) { mode 2104 kernel/time/hrtimer.c const enum hrtimer_mode mode, clockid_t clock_id) mode 2125 kernel/time/hrtimer.c hrtimer_init_sleeper_on_stack(&t, clock_id, mode); mode 2127 kernel/time/hrtimer.c hrtimer_sleeper_start_expires(&t, mode); mode 2173 kernel/time/hrtimer.c const enum hrtimer_mode mode) mode 2175 kernel/time/hrtimer.c return schedule_hrtimeout_range_clock(expires, delta, mode, mode 2207 kernel/time/hrtimer.c const enum hrtimer_mode mode) mode 2209 kernel/time/hrtimer.c return schedule_hrtimeout_range(expires, 0, mode); mode 777 kernel/time/posix-timers.c enum hrtimer_mode mode; mode 779 kernel/time/posix-timers.c mode = absolute ? HRTIMER_MODE_ABS : HRTIMER_MODE_REL; mode 792 kernel/time/posix-timers.c hrtimer_init(&timr->it.real.timer, timr->it_clock, mode); mode 84 kernel/time/tick-broadcast.c if (tick_broadcast_device.mode == TICKDEV_MODE_ONESHOT && mode 181 kernel/time/tick-broadcast.c if (tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC) mode 203 kernel/time/tick-broadcast.c switch (tick_broadcast_device.mode) { mode 356 kernel/time/tick-broadcast.c void tick_broadcast_control(enum tick_broadcast_mode mode) mode 381 kernel/time/tick-broadcast.c switch (mode) { mode 397 kernel/time/tick-broadcast.c tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC) mode 407 kernel/time/tick-broadcast.c if (tick_broadcast_device.mode == mode 419 kernel/time/tick-broadcast.c if (tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC) mode 446 kernel/time/tick-broadcast.c if (tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC) { mode 491 kernel/time/tick-broadcast.c if (tick_broadcast_device.mode == TICKDEV_MODE_ONESHOT) mode 509 kernel/time/tick-broadcast.c switch (tick_broadcast_device.mode) { mode 594 kernel/time/tick-broadcast.c if (td->mode == TICKDEV_MODE_ONESHOT) { mode 745 kernel/time/tick-broadcast.c if (tick_broadcast_device.mode == TICKDEV_MODE_PERIODIC) { mode 936 kernel/time/tick-broadcast.c tick_broadcast_device.mode = TICKDEV_MODE_ONESHOT; mode 980 kernel/time/tick-broadcast.c return tick_broadcast_device.mode == TICKDEV_MODE_ONESHOT; mode 242 kernel/time/tick-common.c td->mode = TICKDEV_MODE_PERIODIC; mode 268 kernel/time/tick-common.c if (td->mode == TICKDEV_MODE_PERIODIC) mode 432 kernel/time/tick-common.c td->mode = TICKDEV_MODE_PERIODIC; mode 474 kernel/time/tick-common.c if (td->mode == TICKDEV_MODE_PERIODIC) mode 94 kernel/time/tick-oneshot.c td->mode = TICKDEV_MODE_ONESHOT; mode 112 kernel/time/tick-oneshot.c ret = __this_cpu_read(tick_cpu_device.mode) == TICKDEV_MODE_ONESHOT; mode 1212 kernel/time/tick-sched.c static inline void tick_nohz_activate(struct tick_sched *ts, int mode) mode 1216 kernel/time/tick-sched.c ts->nohz_mode = mode; mode 1268 kernel/time/tick-sched.c static inline void tick_nohz_activate(struct tick_sched *ts, int mode) { } mode 14 kernel/time/tick-sched.h enum tick_device_mode mode; mode 2048 kernel/time/timekeeping.c static void timekeeping_advance(enum timekeeping_adv_mode mode) mode 2066 kernel/time/timekeeping.c if (mode != TK_ADV_TICK) mode 2073 kernel/time/timekeeping.c if (offset < real_tk->cycle_interval && mode == TK_ADV_TICK) mode 199 kernel/time/timer_list.c SEQ_printf(m, "Tick Device: mode: %d\n", td->mode); mode 441 kernel/trace/blktrace.c umode_t mode, mode 445 kernel/trace/blktrace.c return debugfs_create_file(filename, mode, parent, buf, mode 7808 kernel/trace/trace.c trace_create_cpu_file(const char *name, umode_t mode, struct dentry *parent, mode 7811 kernel/trace/trace.c struct dentry *ret = trace_create_file(name, mode, parent, data, fops); mode 8011 kernel/trace/trace.c umode_t mode, mode 8018 kernel/trace/trace.c ret = tracefs_create_file(name, mode, parent, data, fops); mode 691 kernel/trace/trace.h umode_t mode, mode 39 kernel/ucount.c int mode; mode 43 kernel/ucount.c mode = (table->mode & S_IRWXU) >> 6; mode 46 kernel/ucount.c mode = table->mode & S_IROTH; mode 47 kernel/ucount.c return (mode << 6) | (mode << 3) | mode; mode 59 kernel/ucount.c .mode = 0644, \ mode 728 kernel/umh.c .mode = 0600, mode 735 kernel/umh.c .mode = 0600, mode 80 kernel/utsname_sysctl.c .mode = 0444, mode 87 kernel/utsname_sysctl.c .mode = 0444, mode 94 kernel/utsname_sysctl.c .mode = 0444, mode 101 kernel/utsname_sysctl.c .mode = 0644, mode 109 kernel/utsname_sysctl.c .mode = 0644, mode 119 kernel/utsname_sysctl.c .mode = 0555, mode 3079 kernel/workqueue.c static int cwt_wakefn(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) mode 3085 kernel/workqueue.c return autoremove_wake_function(wait, mode, sync, key); mode 169 lib/fault-inject.c static void debugfs_create_ul(const char *name, umode_t mode, mode 172 lib/fault-inject.c debugfs_create_file(name, mode, parent, value, &fops_ul); mode 188 lib/fault-inject.c static void debugfs_create_stacktrace_depth(const char *name, umode_t mode, mode 192 lib/fault-inject.c debugfs_create_file(name, mode, parent, value, &fops_stacktrace_depth); mode 200 lib/fault-inject.c umode_t mode = S_IFREG | S_IRUSR | S_IWUSR; mode 207 lib/fault-inject.c debugfs_create_ul("probability", mode, dir, &attr->probability); mode 208 lib/fault-inject.c debugfs_create_ul("interval", mode, dir, &attr->interval); mode 209 lib/fault-inject.c debugfs_create_atomic_t("times", mode, dir, &attr->times); mode 210 lib/fault-inject.c debugfs_create_atomic_t("space", mode, dir, &attr->space); mode 211 lib/fault-inject.c debugfs_create_ul("verbose", mode, dir, &attr->verbose); mode 212 lib/fault-inject.c debugfs_create_u32("verbose_ratelimit_interval_ms", mode, dir, mode 214 lib/fault-inject.c debugfs_create_u32("verbose_ratelimit_burst", mode, dir, mode 216 lib/fault-inject.c debugfs_create_bool("task-filter", mode, dir, &attr->task_filter); mode 219 lib/fault-inject.c debugfs_create_stacktrace_depth("stacktrace-depth", mode, dir, mode 221 lib/fault-inject.c debugfs_create_ul("require-start", mode, dir, &attr->require_start); mode 222 lib/fault-inject.c debugfs_create_ul("require-end", mode, dir, &attr->require_end); mode 223 lib/fault-inject.c debugfs_create_ul("reject-start", mode, dir, &attr->reject_start); mode 224 lib/fault-inject.c debugfs_create_ul("reject-end", mode, dir, &attr->reject_end); mode 675 lib/mpi/longlong.h typedef unsigned int __ll_UTItype __attribute__((mode(TI))); \ mode 164 lib/mpi/mpi-internal.h typedef unsigned int UQItype __attribute__ ((mode(QI))); mode 165 lib/mpi/mpi-internal.h typedef int SItype __attribute__ ((mode(SI))); mode 166 lib/mpi/mpi-internal.h typedef unsigned int USItype __attribute__ ((mode(SI))); mode 167 lib/mpi/mpi-internal.h typedef int DItype __attribute__ ((mode(DI))); mode 168 lib/mpi/mpi-internal.h typedef unsigned int UDItype __attribute__ ((mode(DI))); mode 21 lib/notifier-error-inject.c static struct dentry *debugfs_create_errno(const char *name, umode_t mode, mode 24 lib/notifier-error-inject.c return debugfs_create_file(name, mode, parent, value, &fops_errno); mode 54 lib/notifier-error-inject.c umode_t mode = S_IFREG | S_IRUSR | S_IWUSR; mode 75 lib/notifier-error-inject.c debugfs_create_errno("error", mode, action_dir, &action->error); mode 291 lib/test_bitmap.c char *mode = is_user ? "_user" : ""; mode 314 lib/test_bitmap.c mode, i, ptest.in, err, ptest.errno); mode 321 lib/test_bitmap.c mode, i, ptest.in, bmap[0], mode 328 lib/test_bitmap.c mode, i, ptest.in, time); mode 75 lib/test_sysctl.c .mode = 0644, mode 84 lib/test_sysctl.c .mode = 0644, mode 91 lib/test_sysctl.c .mode = 0644, mode 98 lib/test_sysctl.c .mode = 0644, mode 105 lib/test_sysctl.c .mode = 0644, mode 112 lib/test_sysctl.c .mode = 0644, mode 122 lib/test_sysctl.c .mode = 0555, mode 132 lib/test_sysctl.c .mode = 0555, mode 91 lib/xz/xz_dec_lzma2.c enum xz_mode mode; mode 288 lib/xz/xz_dec_lzma2.c if (DEC_IS_SINGLE(dict->mode)) { mode 396 lib/xz/xz_dec_lzma2.c if (DEC_IS_MULTI(dict->mode)) { mode 420 lib/xz/xz_dec_lzma2.c if (DEC_IS_MULTI(dict->mode)) { mode 1108 lib/xz/xz_dec_lzma2.c XZ_EXTERN struct xz_dec_lzma2 *xz_dec_lzma2_create(enum xz_mode mode, mode 1115 lib/xz/xz_dec_lzma2.c s->dict.mode = mode; mode 1118 lib/xz/xz_dec_lzma2.c if (DEC_IS_PREALLOC(mode)) { mode 1124 lib/xz/xz_dec_lzma2.c } else if (DEC_IS_DYNALLOC(mode)) { mode 1141 lib/xz/xz_dec_lzma2.c if (DEC_IS_MULTI(s->dict.mode)) { mode 1147 lib/xz/xz_dec_lzma2.c if (DEC_IS_DYNALLOC(s->dict.mode)) { mode 1172 lib/xz/xz_dec_lzma2.c if (DEC_IS_MULTI(s->dict.mode)) mode 52 lib/xz/xz_dec_stream.c enum xz_mode mode; mode 756 lib/xz/xz_dec_stream.c if (DEC_IS_SINGLE(s->mode)) mode 763 lib/xz/xz_dec_stream.c if (DEC_IS_SINGLE(s->mode)) { mode 786 lib/xz/xz_dec_stream.c XZ_EXTERN struct xz_dec *xz_dec_init(enum xz_mode mode, uint32_t dict_max) mode 792 lib/xz/xz_dec_stream.c s->mode = mode; mode 795 lib/xz/xz_dec_stream.c s->bcj = xz_dec_bcj_create(DEC_IS_SINGLE(mode)); mode 800 lib/xz/xz_dec_stream.c s->lzma2 = xz_dec_lzma2_create(mode, dict_max); mode 67 lib/xz/xz_private.h # define DEC_IS_SINGLE(mode) ((mode) == XZ_SINGLE) mode 69 lib/xz/xz_private.h # define DEC_IS_SINGLE(mode) (false) mode 73 lib/xz/xz_private.h # define DEC_IS_PREALLOC(mode) ((mode) == XZ_PREALLOC) mode 75 lib/xz/xz_private.h # define DEC_IS_PREALLOC(mode) (false) mode 79 lib/xz/xz_private.h # define DEC_IS_DYNALLOC(mode) ((mode) == XZ_DYNALLOC) mode 81 lib/xz/xz_private.h # define DEC_IS_DYNALLOC(mode) (false) mode 85 lib/xz/xz_private.h # define DEC_IS_MULTI(mode) (true) mode 87 lib/xz/xz_private.h # define DEC_IS_MULTI(mode) ((mode) != XZ_SINGLE) mode 89 lib/xz/xz_private.h # define DEC_IS_MULTI(mode) (false) mode 113 lib/xz/xz_private.h XZ_EXTERN struct xz_dec_lzma2 *xz_dec_lzma2_create(enum xz_mode mode, mode 194 lib/zlib_inflate/inffast.c state->mode = BAD; mode 205 lib/zlib_inflate/inffast.c state->mode = BAD; mode 313 lib/zlib_inflate/inffast.c state->mode = BAD; mode 322 lib/zlib_inflate/inffast.c state->mode = TYPE; mode 327 lib/zlib_inflate/inffast.c state->mode = BAD; mode 32 lib/zlib_inflate/inflate.c state->mode = HEAD; mode 153 lib/zlib_inflate/inflate.c if (state->mode == STORED && state->bits == 0) { mode 154 lib/zlib_inflate/inflate.c state->mode = TYPE; mode 344 lib/zlib_inflate/inflate.c if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */ mode 350 lib/zlib_inflate/inflate.c switch (state->mode) { mode 353 lib/zlib_inflate/inflate.c state->mode = TYPEDO; mode 360 lib/zlib_inflate/inflate.c state->mode = BAD; mode 365 lib/zlib_inflate/inflate.c state->mode = BAD; mode 372 lib/zlib_inflate/inflate.c state->mode = BAD; mode 377 lib/zlib_inflate/inflate.c state->mode = hold & 0x200 ? DICTID : TYPE; mode 384 lib/zlib_inflate/inflate.c state->mode = DICT; mode 392 lib/zlib_inflate/inflate.c state->mode = TYPE; mode 400 lib/zlib_inflate/inflate.c state->mode = CHECK; mode 408 lib/zlib_inflate/inflate.c state->mode = STORED; mode 412 lib/zlib_inflate/inflate.c state->mode = LEN; /* decode codes */ mode 415 lib/zlib_inflate/inflate.c state->mode = TABLE; mode 419 lib/zlib_inflate/inflate.c state->mode = BAD; mode 428 lib/zlib_inflate/inflate.c state->mode = BAD; mode 433 lib/zlib_inflate/inflate.c state->mode = COPY; mode 449 lib/zlib_inflate/inflate.c state->mode = TYPE; mode 462 lib/zlib_inflate/inflate.c state->mode = BAD; mode 467 lib/zlib_inflate/inflate.c state->mode = LENLENS; mode 484 lib/zlib_inflate/inflate.c state->mode = BAD; mode 488 lib/zlib_inflate/inflate.c state->mode = CODELENS; mode 508 lib/zlib_inflate/inflate.c state->mode = BAD; mode 531 lib/zlib_inflate/inflate.c state->mode = BAD; mode 540 lib/zlib_inflate/inflate.c if (state->mode == BAD) break; mode 550 lib/zlib_inflate/inflate.c state->mode = BAD; mode 559 lib/zlib_inflate/inflate.c state->mode = BAD; mode 562 lib/zlib_inflate/inflate.c state->mode = LEN; mode 589 lib/zlib_inflate/inflate.c state->mode = LIT; mode 593 lib/zlib_inflate/inflate.c state->mode = TYPE; mode 598 lib/zlib_inflate/inflate.c state->mode = BAD; mode 602 lib/zlib_inflate/inflate.c state->mode = LENEXT; mode 610 lib/zlib_inflate/inflate.c state->mode = DIST; mode 631 lib/zlib_inflate/inflate.c state->mode = BAD; mode 636 lib/zlib_inflate/inflate.c state->mode = DISTEXT; mode 647 lib/zlib_inflate/inflate.c state->mode = BAD; mode 653 lib/zlib_inflate/inflate.c state->mode = BAD; mode 656 lib/zlib_inflate/inflate.c state->mode = MATCH; mode 681 lib/zlib_inflate/inflate.c if (state->length == 0) state->mode = LEN; mode 687 lib/zlib_inflate/inflate.c state->mode = LEN; mode 702 lib/zlib_inflate/inflate.c state->mode = BAD; mode 707 lib/zlib_inflate/inflate.c state->mode = DONE; mode 729 lib/zlib_inflate/inflate.c if (state->wsize || (state->mode < CHECK && out != strm->avail_out)) mode 742 lib/zlib_inflate/inflate.c (state->mode == TYPE ? 128 : 0); mode 775 lib/zlib_inflate/inflate.c if (state->mode != TYPE && state->mode != HEAD) mode 73 lib/zlib_inflate/inflate.h inflate_mode mode; /* current inflate mode */ mode 206 mm/balloon_compaction.c bool balloon_page_isolate(struct page *page, isolate_mode_t mode) mode 235 mm/balloon_compaction.c enum migrate_mode mode) mode 244 mm/balloon_compaction.c if (mode == MIGRATE_SYNC_NO_COPY) mode 250 mm/balloon_compaction.c return balloon->migratepage(balloon, newpage, page, mode); mode 419 mm/compaction.c if (cc->mode != MIGRATE_ASYNC && mode 486 mm/compaction.c if (cc->mode == MIGRATE_ASYNC && !cc->contended) { mode 803 mm/compaction.c if (cc->mode == MIGRATE_ASYNC) mode 814 mm/compaction.c if (cc->direct_compaction && (cc->mode == MIGRATE_ASYNC)) { mode 1131 mm/compaction.c if ((cc->mode != MIGRATE_ASYNC) || !cc->direct_compaction) mode 1232 mm/compaction.c if (cc->direct_compaction && cc->mode == MIGRATE_ASYNC) mode 1464 mm/compaction.c stride = cc->mode == MIGRATE_ASYNC ? COMPACT_CLUSTER_MAX : 1; mode 1749 mm/compaction.c (cc->mode != MIGRATE_SYNC ? ISOLATE_ASYNC_MIGRATE : 0); mode 1922 mm/compaction.c if (cc->mode == MIGRATE_ASYNC || mode 2078 mm/compaction.c const bool sync = cc->mode != MIGRATE_ASYNC; mode 2198 mm/compaction.c compaction_free, (unsigned long)cc, cc->mode, mode 2221 mm/compaction.c (cc->mode == MIGRATE_ASYNC)) { mode 2299 mm/compaction.c .mode = (prio == COMPACT_PRIO_ASYNC) ? mode 2416 mm/compaction.c .mode = MIGRATE_SYNC, mode 2532 mm/compaction.c .mode = MIGRATE_SYNC_LIGHT, mode 46 mm/failslab.c umode_t mode = S_IFREG | 0600; mode 52 mm/failslab.c debugfs_create_bool("ignore-gfp-wait", mode, dir, mode 54 mm/failslab.c debugfs_create_bool("cache-filter", mode, dir, mode 1028 mm/filemap.c static int wake_page_function(wait_queue_entry_t *wait, unsigned mode, int sync, void *arg) mode 1052 mm/filemap.c return autoremove_wake_function(wait, mode, sync, key); mode 1987 mm/hugetlb.c enum vma_resv_mode mode) mode 1998 mm/hugetlb.c switch (mode) { mode 198 mm/internal.h enum migrate_mode mode; /* Async or sync migration mode */ mode 1855 mm/memcontrol.c unsigned mode, int sync, void *arg) mode 1867 mm/memcontrol.c return autoremove_wake_function(wait, mode, sync, arg); mode 4644 mm/memcontrol.c static int memcg_event_wake(wait_queue_entry_t *wait, unsigned mode, mode 124 mm/mempolicy.c .mode = MPOL_PREFERRED, mode 142 mm/mempolicy.c if (pol->mode) mode 216 mm/mempolicy.c if (pol->mode == MPOL_PREFERRED && nodes_empty(*nodes)) mode 232 mm/mempolicy.c ret = mpol_ops[pol->mode].create(pol, &nsc->mask2); mode 234 mm/mempolicy.c ret = mpol_ops[pol->mode].create(pol, NULL); mode 242 mm/mempolicy.c static struct mempolicy *mpol_new(unsigned short mode, unsigned short flags, mode 248 mm/mempolicy.c mode, flags, nodes ? nodes_addr(*nodes)[0] : NUMA_NO_NODE); mode 250 mm/mempolicy.c if (mode == MPOL_DEFAULT) { mode 262 mm/mempolicy.c if (mode == MPOL_PREFERRED) { mode 268 mm/mempolicy.c } else if (mode == MPOL_LOCAL) { mode 273 mm/mempolicy.c mode = MPOL_PREFERRED; mode 280 mm/mempolicy.c policy->mode = mode; mode 357 mm/mempolicy.c mpol_ops[pol->mode].rebind(pol, newmask); mode 792 mm/mempolicy.c static long do_set_mempolicy(unsigned short mode, unsigned short flags, mode 802 mm/mempolicy.c new = mpol_new(mode, flags, nodes); mode 817 mm/mempolicy.c if (new && new->mode == MPOL_INTERLEAVE) mode 838 mm/mempolicy.c switch (p->mode) { mode 931 mm/mempolicy.c pol->mode == MPOL_INTERLEAVE) { mode 939 mm/mempolicy.c pol->mode; mode 1218 mm/mempolicy.c unsigned short mode, unsigned short mode_flags, mode 1236 mm/mempolicy.c if (mode == MPOL_DEFAULT) mode 1247 mm/mempolicy.c new = mpol_new(mode, mode_flags, nmask); mode 1262 mm/mempolicy.c start, start + len, mode, mode_flags, mode 1405 mm/mempolicy.c unsigned long mode, const unsigned long __user *nmask, mode 1413 mm/mempolicy.c mode_flags = mode & MPOL_MODE_FLAGS; mode 1414 mm/mempolicy.c mode &= ~MPOL_MODE_FLAGS; mode 1415 mm/mempolicy.c if (mode >= MPOL_MAX) mode 1423 mm/mempolicy.c return do_mbind(start, len, mode, mode_flags, &nodes, flags); mode 1427 mm/mempolicy.c unsigned long, mode, const unsigned long __user *, nmask, mode 1430 mm/mempolicy.c return kernel_mbind(start, len, mode, nmask, maxnode, flags); mode 1434 mm/mempolicy.c static long kernel_set_mempolicy(int mode, const unsigned long __user *nmask, mode 1441 mm/mempolicy.c flags = mode & MPOL_MODE_FLAGS; mode 1442 mm/mempolicy.c mode &= ~MPOL_MODE_FLAGS; mode 1443 mm/mempolicy.c if ((unsigned int)mode >= MPOL_MAX) mode 1450 mm/mempolicy.c return do_set_mempolicy(mode, flags, &nodes); mode 1453 mm/mempolicy.c SYSCALL_DEFINE3(set_mempolicy, int, mode, const unsigned long __user *, nmask, mode 1456 mm/mempolicy.c return kernel_set_mempolicy(mode, nmask, maxnode); mode 1624 mm/mempolicy.c COMPAT_SYSCALL_DEFINE3(set_mempolicy, int, mode, compat_ulong_t __user *, nmask, mode 1642 mm/mempolicy.c return kernel_set_mempolicy(mode, nm, nr_bits+1); mode 1646 mm/mempolicy.c compat_ulong_t, mode, compat_ulong_t __user *, nmask, mode 1664 mm/mempolicy.c return kernel_mbind(start, len, mode, nm, nr_bits+1, flags); mode 1799 mm/mempolicy.c if (unlikely(policy->mode == MPOL_BIND) && mode 1811 mm/mempolicy.c if (policy->mode == MPOL_PREFERRED && !(policy->flags & MPOL_F_LOCAL)) mode 1819 mm/mempolicy.c WARN_ON_ONCE(policy->mode == MPOL_BIND && (gfp & __GFP_THISNODE)); mode 1853 mm/mempolicy.c switch (policy->mode) { mode 1950 mm/mempolicy.c if (unlikely((*mpol)->mode == MPOL_INTERLEAVE)) { mode 1955 mm/mempolicy.c if ((*mpol)->mode == MPOL_BIND) mode 1987 mm/mempolicy.c switch (mempolicy->mode) { mode 2034 mm/mempolicy.c switch (mempolicy->mode) { mode 2108 mm/mempolicy.c if (pol->mode == MPOL_INTERLEAVE) { mode 2130 mm/mempolicy.c if (pol->mode == MPOL_PREFERRED && !(pol->flags & MPOL_F_LOCAL)) mode 2189 mm/mempolicy.c if (pol->mode == MPOL_INTERLEAVE) mode 2250 mm/mempolicy.c if (a->mode != b->mode) mode 2258 mm/mempolicy.c switch (a->mode) { mode 2340 mm/mempolicy.c new->policy ? new->policy->mode : 0); mode 2400 mm/mempolicy.c switch (pol->mode) { mode 2595 mm/mempolicy.c new = mpol_new(mpol->mode, mpol->flags, &mpol->w.user_nodemask); mode 2628 mm/mempolicy.c sz, npol ? npol->mode : -1, mode 2726 mm/mempolicy.c .mode = MPOL_PREFERRED, mode 2803 mm/mempolicy.c int err = 1, mode; mode 2818 mm/mempolicy.c mode = match_string(policy_modes, MPOL_MAX, str); mode 2819 mm/mempolicy.c if (mode < 0) mode 2822 mm/mempolicy.c switch (mode) { mode 2852 mm/mempolicy.c mode = MPOL_PREFERRED; mode 2883 mm/mempolicy.c new = mpol_new(mode, mode_flags, &nodes); mode 2891 mm/mempolicy.c if (mode != MPOL_PREFERRED) mode 2932 mm/mempolicy.c unsigned short mode = MPOL_DEFAULT; mode 2936 mm/mempolicy.c mode = pol->mode; mode 2940 mm/mempolicy.c switch (mode) { mode 2945 mm/mempolicy.c mode = MPOL_LOCAL; mode 2959 mm/mempolicy.c p += snprintf(p, maxlen, "%s", policy_modes[mode]); mode 85 mm/migrate.c int isolate_movable_page(struct page *page, isolate_mode_t mode) mode 128 mm/migrate.c if (!mapping->a_ops->isolate_page(page, mode)) mode 678 mm/migrate.c enum migrate_mode mode) mode 689 mm/migrate.c if (mode != MIGRATE_SYNC_NO_COPY) mode 700 mm/migrate.c enum migrate_mode mode) mode 705 mm/migrate.c if (mode != MIGRATE_ASYNC) { mode 737 mm/migrate.c struct page *newpage, struct page *page, enum migrate_mode mode, mode 745 mm/migrate.c return migrate_page(mapping, newpage, page, mode); mode 753 mm/migrate.c if (!buffer_migrate_lock_buffers(head, mode)) mode 802 mm/migrate.c if (mode != MIGRATE_SYNC_NO_COPY) mode 827 mm/migrate.c struct page *newpage, struct page *page, enum migrate_mode mode) mode 829 mm/migrate.c return __buffer_migrate_page(mapping, newpage, page, mode, false); mode 840 mm/migrate.c struct page *newpage, struct page *page, enum migrate_mode mode) mode 842 mm/migrate.c return __buffer_migrate_page(mapping, newpage, page, mode, true); mode 891 mm/migrate.c struct page *newpage, struct page *page, enum migrate_mode mode) mode 895 mm/migrate.c switch (mode) { mode 911 mm/migrate.c return mode == MIGRATE_SYNC ? -EAGAIN : -EBUSY; mode 913 mm/migrate.c return migrate_page(mapping, newpage, page, mode); mode 928 mm/migrate.c enum migrate_mode mode) mode 941 mm/migrate.c rc = migrate_page(mapping, newpage, page, mode); mode 951 mm/migrate.c page, mode); mode 954 mm/migrate.c page, mode); mode 968 mm/migrate.c page, mode); mode 1005 mm/migrate.c int force, enum migrate_mode mode) mode 1013 mm/migrate.c if (!force || mode == MIGRATE_ASYNC) mode 1042 mm/migrate.c switch (mode) { mode 1084 mm/migrate.c rc = move_to_new_page(newpage, page, mode); mode 1116 mm/migrate.c rc = move_to_new_page(newpage, page, mode); mode 1167 mm/migrate.c int force, enum migrate_mode mode, mode 1197 mm/migrate.c rc = __unmap_and_move(page, newpage, force, mode); mode 1283 mm/migrate.c enum migrate_mode mode, int reason) mode 1309 mm/migrate.c switch (mode) { mode 1342 mm/migrate.c rc = move_to_new_page(new_hpage, hpage, mode); mode 1401 mm/migrate.c enum migrate_mode mode, int reason) mode 1425 mm/migrate.c pass > 2, mode, reason); mode 1428 mm/migrate.c private, page, pass > 2, mode, mode 1480 mm/migrate.c trace_mm_migrate_pages(nr_succeeded, nr_failed, mode, reason); mode 3359 mm/page_alloc.c umode_t mode = S_IFREG | 0600; mode 3365 mm/page_alloc.c debugfs_create_bool("ignore-gfp-wait", mode, dir, mode 3367 mm/page_alloc.c debugfs_create_bool("ignore-gfp-highmem", mode, dir, mode 3369 mm/page_alloc.c debugfs_create_u32("min-order", mode, dir, &fail_page_alloc.min_order); mode 8353 mm/page_alloc.c NULL, 0, cc->mode, MR_CONTIG_RANGE); mode 8394 mm/page_alloc.c .mode = MIGRATE_SYNC, mode 117 mm/shmem.c umode_t mode; mode 1402 mm/shmem.c if (!mpol || mpol->mode == MPOL_DEFAULT) mode 1983 mm/shmem.c static int synchronous_wake_function(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) mode 1985 mm/shmem.c int ret = default_wake_function(wait, mode, sync, key); mode 2242 mm/shmem.c umode_t mode, dev_t dev, unsigned long flags) mode 2254 mm/shmem.c inode_init_owner(inode, dir, mode); mode 2269 mm/shmem.c switch (mode & S_IFMT) { mode 2272 mm/shmem.c init_special_inode(inode, mode, dev); mode 2725 mm/shmem.c static long shmem_fallocate(struct file *file, int mode, loff_t offset, mode 2735 mm/shmem.c if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) mode 2740 mm/shmem.c if (mode & FALLOC_FL_PUNCH_HOLE) { mode 2845 mm/shmem.c if (!(mode & FALLOC_FL_KEEP_SIZE) && offset + len > inode->i_size) mode 2882 mm/shmem.c shmem_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) mode 2887 mm/shmem.c inode = shmem_get_inode(dir->i_sb, dir, mode, dev, VM_NORESERVE); mode 2911 mm/shmem.c shmem_tmpfile(struct inode *dir, struct dentry *dentry, umode_t mode) mode 2916 mm/shmem.c inode = shmem_get_inode(dir->i_sb, dir, mode, 0, VM_NORESERVE); mode 2934 mm/shmem.c static int shmem_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 2938 mm/shmem.c if ((error = shmem_mknod(dir, dentry, mode | S_IFDIR, 0))) mode 2944 mm/shmem.c static int shmem_create(struct inode *dir, struct dentry *dentry, umode_t mode, mode 2947 mm/shmem.c return shmem_mknod(dir, dentry, mode | S_IFREG, 0); mode 3451 mm/shmem.c ctx->mode = result.uint_32 & 07777; mode 3604 mm/shmem.c if (sbinfo->mode != (0777 | S_ISVTX)) mode 3605 mm/shmem.c seq_printf(seq, ",mode=%03ho", sbinfo->mode); mode 3671 mm/shmem.c sbinfo->mode = ctx->mode; mode 3696 mm/shmem.c inode = shmem_get_inode(sb, NULL, S_IFDIR | sbinfo->mode, 0, VM_NORESERVE); mode 3880 mm/shmem.c ctx->mode = 0777 | S_ISVTX; mode 4087 mm/shmem.c #define shmem_get_inode(sb, dir, mode, dev, flags) ramfs_get_inode(sb, dir, mode, dev) mode 1791 mm/slub.c int mode, int *objects) mode 1808 mm/slub.c if (mode) { mode 154 mm/vmpressure.c enum vmpressure_modes mode; mode 167 mm/vmpressure.c if (ancestor && ev->mode == VMPRESSURE_LOCAL) mode 169 mm/vmpressure.c if (signalled && ev->mode == VMPRESSURE_NO_PASSTHROUGH) mode 367 mm/vmpressure.c enum vmpressure_modes mode = VMPRESSURE_NO_PASSTHROUGH; mode 392 mm/vmpressure.c mode = ret; mode 403 mm/vmpressure.c ev->mode = mode; mode 1574 mm/vmscan.c int __isolate_lru_page(struct page *page, isolate_mode_t mode) mode 1583 mm/vmscan.c if (PageUnevictable(page) && !(mode & ISOLATE_UNEVICTABLE)) mode 1596 mm/vmscan.c if (mode & ISOLATE_ASYNC_MIGRATE) { mode 1625 mm/vmscan.c if ((mode & ISOLATE_UNMAPPED) && page_mapped(page)) mode 1695 mm/vmscan.c isolate_mode_t mode = (sc->may_unmap ? 0 : ISOLATE_UNMAPPED); mode 1727 mm/vmscan.c switch (__isolate_lru_page(page, mode)) { mode 1765 mm/vmscan.c total_scan, skipped, nr_taken, mode, lru); mode 1337 mm/z3fold.c static bool z3fold_page_isolate(struct page *page, isolate_mode_t mode) mode 1374 mm/z3fold.c struct page *page, enum migrate_mode mode) mode 1915 mm/zsmalloc.c static bool zs_page_isolate(struct page *page, isolate_mode_t mode) mode 1972 mm/zsmalloc.c struct page *page, enum migrate_mode mode) mode 1992 mm/zsmalloc.c if (mode == MIGRATE_SYNC_NO_COPY) mode 163 net/6lowpan/iphc.c switch (addr->mode) { mode 800 net/6lowpan/iphc.c switch (addr->mode) { mode 913 net/6lowpan/iphc.c switch (addr->mode) { mode 899 net/9p/client.c fid->mode = -1; mode 1240 net/9p/client.c int p9_client_open(struct p9_fid *fid, int mode) mode 1250 net/9p/client.c p9_is_proto_dotl(clnt) ? "TLOPEN" : "TOPEN", fid->fid, mode); mode 1253 net/9p/client.c if (fid->mode != -1) mode 1257 net/9p/client.c req = p9_client_rpc(clnt, P9_TLOPEN, "dd", fid->fid, mode); mode 1259 net/9p/client.c req = p9_client_rpc(clnt, P9_TOPEN, "db", fid->fid, mode); mode 1275 net/9p/client.c fid->mode = mode; mode 1285 net/9p/client.c int p9_client_create_dotl(struct p9_fid *ofid, const char *name, u32 flags, u32 mode, mode 1295 net/9p/client.c ofid->fid, name, flags, mode, mode 1299 net/9p/client.c if (ofid->mode != -1) mode 1303 net/9p/client.c mode, gid); mode 1320 net/9p/client.c ofid->mode = mode; mode 1330 net/9p/client.c int p9_client_fcreate(struct p9_fid *fid, const char *name, u32 perm, int mode, mode 1340 net/9p/client.c fid->fid, name, perm, mode); mode 1344 net/9p/client.c if (fid->mode != -1) mode 1348 net/9p/client.c mode, extension); mode 1365 net/9p/client.c fid->mode = mode; mode 1721 net/9p/client.c (unsigned long long)ret->qid.path, ret->qid.version, ret->mode, mode 1843 net/9p/client.c (unsigned long long)wst->qid.path, wst->qid.version, wst->mode, mode 1877 net/9p/client.c p9attr->valid, p9attr->mode, mode 2134 net/9p/client.c int p9_client_mknod_dotl(struct p9_fid *fid, const char *name, int mode, mode 2144 net/9p/client.c "minor %d\n", fid->fid, name, mode, MAJOR(rdev), MINOR(rdev)); mode 2145 net/9p/client.c req = p9_client_rpc(clnt, P9_TMKNOD, "dsdddg", fid->fid, name, mode, mode 2165 net/9p/client.c int p9_client_mkdir_dotl(struct p9_fid *fid, const char *name, int mode, mode 2175 net/9p/client.c fid->fid, name, mode, from_kgid(&init_user_ns, gid)); mode 2176 net/9p/client.c req = p9_client_rpc(clnt, P9_TMKDIR, "dsdg", fid->fid, name, mode, mode 202 net/9p/protocol.c &stbuf->mode, &stbuf->atime, mode 426 net/9p/protocol.c stbuf->mode, stbuf->atime, mode 493 net/9p/protocol.c p9attr->mode, mode 518 net/9p/trans_fd.c static int p9_pollwake(wait_queue_entry_t *wait, unsigned int mode, int sync, void *key) mode 19 net/appletalk/sysctl_net_atalk.c .mode = 0644, mode 26 net/appletalk/sysctl_net_atalk.c .mode = 0644, mode 33 net/appletalk/sysctl_net_atalk.c .mode = 0644, mode 40 net/appletalk/sysctl_net_atalk.c .mode = 0644, mode 319 net/atm/clip.c static int clip_encap(struct atm_vcc *vcc, int mode) mode 324 net/atm/clip.c CLIP_VCC(vcc)->encap = mode; mode 33 net/ax25/sysctl_net_ax25.c .mode = 0644, mode 41 net/ax25/sysctl_net_ax25.c .mode = 0644, mode 49 net/ax25/sysctl_net_ax25.c .mode = 0644, mode 57 net/ax25/sysctl_net_ax25.c .mode = 0644, mode 65 net/ax25/sysctl_net_ax25.c .mode = 0644, mode 73 net/ax25/sysctl_net_ax25.c .mode = 0644, mode 81 net/ax25/sysctl_net_ax25.c .mode = 0644, mode 89 net/ax25/sysctl_net_ax25.c .mode = 0644, mode 97 net/ax25/sysctl_net_ax25.c .mode = 0644, mode 105 net/ax25/sysctl_net_ax25.c .mode = 0644, mode 113 net/ax25/sysctl_net_ax25.c .mode = 0644, mode 121 net/ax25/sysctl_net_ax25.c .mode = 0644, mode 129 net/ax25/sysctl_net_ax25.c .mode = 0644, mode 138 net/ax25/sysctl_net_ax25.c .mode = 0644, mode 202 net/batman-adv/debugfs.c .mode = _mode, \ mode 270 net/batman-adv/debugfs.c .mode = _mode, \ mode 300 net/batman-adv/debugfs.c S_IFREG | ((*bat_debug)->attr).mode, mode 331 net/batman-adv/debugfs.c S_IFREG | ((*bat_debug)->attr).mode, mode 394 net/batman-adv/debugfs.c S_IFREG | ((*bat_debug)->attr).mode, mode 186 net/batman-adv/gateway_client.c if (atomic_read(&bat_priv->gw.mode) != BATADV_GW_MODE_CLIENT) mode 218 net/batman-adv/gateway_client.c if (atomic_read(&bat_priv->gw.mode) != BATADV_GW_MODE_CLIENT) mode 768 net/batman-adv/gateway_client.c switch (atomic_read(&bat_priv->gw.mode)) { mode 140 net/batman-adv/gateway_common.c gw_mode = atomic_read(&bat_priv->gw.mode); mode 246 net/batman-adv/gateway_common.c atomic_read(&bat_priv->gw.mode) == BATADV_GW_MODE_CLIENT) mode 318 net/batman-adv/netlink.c atomic_read(&bat_priv->gw.mode))) mode 540 net/batman-adv/netlink.c atomic_set(&bat_priv->gw.mode, gw_mode); mode 271 net/batman-adv/soft-interface.c gw_mode = atomic_read(&bat_priv->gw.mode); mode 781 net/batman-adv/soft-interface.c atomic_set(&bat_priv->gw.mode, BATADV_GW_MODE_OFF); mode 122 net/batman-adv/sysfs.c .mode = _mode }, \ mode 131 net/batman-adv/sysfs.c .mode = _mode }, \ mode 468 net/batman-adv/sysfs.c switch (atomic_read(&bat_priv->gw.mode)) { mode 526 net/batman-adv/sysfs.c if (atomic_read(&bat_priv->gw.mode) == gw_mode_tmp) mode 529 net/batman-adv/sysfs.c switch (atomic_read(&bat_priv->gw.mode)) { mode 558 net/batman-adv/sysfs.c atomic_set(&bat_priv->gw.mode, (unsigned int)gw_mode_tmp); mode 1128 net/batman-adv/types.h atomic_t mode; mode 647 net/bluetooth/6lowpan.c chan->mode = L2CAP_MODE_LE_FLOWCTL; mode 780 net/bluetooth/a2mp.c chan->mode = L2CAP_MODE_ERTM; mode 433 net/bluetooth/hci_conn.c BT_DBG("hcon %p mode %d", conn, conn->mode); mode 438 net/bluetooth/hci_conn.c if (conn->mode != HCI_CM_ACTIVE || !(conn->link_policy & HCI_LP_SNIFF)) mode 510 net/bluetooth/hci_conn.c conn->mode = HCI_CM_ACTIVE; mode 1467 net/bluetooth/hci_conn.c BT_DBG("hcon %p mode %d", conn, conn->mode); mode 1469 net/bluetooth/hci_conn.c if (conn->mode != HCI_CM_SNIFF) mode 452 net/bluetooth/hci_core.c u8 mode = 0x01; mode 455 net/bluetooth/hci_core.c sizeof(mode), &mode); mode 468 net/bluetooth/hci_core.c u8 mode; mode 474 net/bluetooth/hci_core.c mode = lmp_ext_inq_capable(hdev) ? 0x02 : 0x01; mode 476 net/bluetooth/hci_core.c hci_req_add(req, HCI_OP_WRITE_INQUIRY_MODE, 1, &mode); mode 500 net/bluetooth/hci_event.c if (sent->mode) mode 507 net/bluetooth/hci_event.c mgmt_ssp_enable_complete(hdev, sent->mode, status); mode 509 net/bluetooth/hci_event.c if (sent->mode) mode 704 net/bluetooth/hci_event.c hdev->flow_ctl_mode = rp->mode; mode 1747 net/bluetooth/hci_event.c u8 *mode; mode 1754 net/bluetooth/hci_event.c mode = hci_sent_cmd_data(hdev, HCI_OP_WRITE_SSP_DEBUG_MODE); mode 1755 net/bluetooth/hci_event.c if (mode) mode 1756 net/bluetooth/hci_event.c hdev->ssp_debug_mode = *mode; mode 3783 net/bluetooth/hci_event.c conn->mode = ev->mode; mode 3787 net/bluetooth/hci_event.c if (conn->mode == HCI_CM_ACTIVE) mode 2743 net/bluetooth/hci_request.c u8 mode = 0x01; mode 2745 net/bluetooth/hci_request.c hci_req_add(req, HCI_OP_WRITE_SSP_MODE, sizeof(mode), &mode); mode 1250 net/bluetooth/hidp/core.c unsigned int mode, mode 636 net/bluetooth/l2cap_core.c switch(chan->mode) { mode 1212 net/bluetooth/l2cap_core.c if (chan->mode != L2CAP_MODE_ERTM) mode 1249 net/bluetooth/l2cap_core.c if (chan->mode != L2CAP_MODE_ERTM) mode 1276 net/bluetooth/l2cap_core.c if (chan->mode == L2CAP_MODE_LE_FLOWCTL && !chan->tx_credits) mode 1394 net/bluetooth/l2cap_core.c static inline int l2cap_mode_supported(__u8 mode, __u32 feat_mask) mode 1400 net/bluetooth/l2cap_core.c switch (mode) { mode 1418 net/bluetooth/l2cap_core.c if (chan->mode == L2CAP_MODE_ERTM && chan->state == BT_CONNECTED) { mode 1462 net/bluetooth/l2cap_core.c if (!l2cap_mode_supported(chan->mode, conn->feat_mask) mode 2503 net/bluetooth/l2cap_core.c switch (chan->mode) { mode 2581 net/bluetooth/l2cap_core.c if (chan->mode == L2CAP_MODE_ERTM) mode 2595 net/bluetooth/l2cap_core.c BT_DBG("bad state %1.1x", chan->mode); mode 3059 net/bluetooth/l2cap_core.c switch (chan->mode) { mode 3128 net/bluetooth/l2cap_core.c if (chan->mode != L2CAP_MODE_ERTM) mode 3151 net/bluetooth/l2cap_core.c static inline __u8 l2cap_select_mode(__u8 mode, __u16 remote_feat_mask) mode 3153 net/bluetooth/l2cap_core.c switch (mode) { mode 3156 net/bluetooth/l2cap_core.c if (l2cap_mode_supported(mode, remote_feat_mask)) mode 3157 net/bluetooth/l2cap_core.c return mode; mode 3232 net/bluetooth/l2cap_core.c struct l2cap_conf_rfc rfc = { .mode = chan->mode }; mode 3242 net/bluetooth/l2cap_core.c switch (chan->mode) { mode 3253 net/bluetooth/l2cap_core.c chan->mode = l2cap_select_mode(rfc.mode, chan->conn->feat_mask); mode 3261 net/bluetooth/l2cap_core.c switch (chan->mode) { mode 3270 net/bluetooth/l2cap_core.c rfc.mode = L2CAP_MODE_BASIC; mode 3282 net/bluetooth/l2cap_core.c rfc.mode = L2CAP_MODE_ERTM; mode 3318 net/bluetooth/l2cap_core.c rfc.mode = L2CAP_MODE_STREAMING; mode 3360 net/bluetooth/l2cap_core.c struct l2cap_conf_rfc rfc = { .mode = L2CAP_MODE_BASIC }; mode 3436 net/bluetooth/l2cap_core.c switch (chan->mode) { mode 3440 net/bluetooth/l2cap_core.c chan->mode = l2cap_select_mode(rfc.mode, mode 3452 net/bluetooth/l2cap_core.c if (chan->mode != rfc.mode) mode 3459 net/bluetooth/l2cap_core.c if (chan->mode != rfc.mode) { mode 3461 net/bluetooth/l2cap_core.c rfc.mode = chan->mode; mode 3502 net/bluetooth/l2cap_core.c switch (rfc.mode) { mode 3563 net/bluetooth/l2cap_core.c rfc.mode = chan->mode; mode 3584 net/bluetooth/l2cap_core.c struct l2cap_conf_rfc rfc = { .mode = L2CAP_MODE_BASIC }; mode 3620 net/bluetooth/l2cap_core.c rfc.mode != chan->mode) mode 3658 net/bluetooth/l2cap_core.c if (chan->mode == L2CAP_MODE_BASIC && chan->mode != rfc.mode) mode 3661 net/bluetooth/l2cap_core.c chan->mode = rfc.mode; mode 3664 net/bluetooth/l2cap_core.c switch (rfc.mode) { mode 3764 net/bluetooth/l2cap_core.c .mode = chan->mode, mode 3773 net/bluetooth/l2cap_core.c if ((chan->mode != L2CAP_MODE_ERTM) && (chan->mode != L2CAP_MODE_STREAMING)) mode 3795 net/bluetooth/l2cap_core.c switch (rfc.mode) { mode 4076 net/bluetooth/l2cap_core.c if (chan->mode != L2CAP_MODE_ERTM && chan->mode != L2CAP_MODE_STREAMING) mode 4181 net/bluetooth/l2cap_core.c if (chan->mode == L2CAP_MODE_ERTM || mode 4182 net/bluetooth/l2cap_core.c chan->mode == L2CAP_MODE_STREAMING) mode 4317 net/bluetooth/l2cap_core.c if (chan->mode == L2CAP_MODE_ERTM || mode 4318 net/bluetooth/l2cap_core.c chan->mode == L2CAP_MODE_STREAMING) mode 4995 net/bluetooth/l2cap_core.c (chan->mode != L2CAP_MODE_ERTM && mode 4996 net/bluetooth/l2cap_core.c chan->mode != L2CAP_MODE_STREAMING)) { mode 5999 net/bluetooth/l2cap_core.c if (chan->mode != L2CAP_MODE_ERTM) mode 6699 net/bluetooth/l2cap_core.c if ((chan->mode == L2CAP_MODE_ERTM || mode 6700 net/bluetooth/l2cap_core.c chan->mode == L2CAP_MODE_STREAMING) && sk_filter(chan->data, skb)) mode 6716 net/bluetooth/l2cap_core.c if (chan->mode != L2CAP_MODE_STREAMING) { mode 6732 net/bluetooth/l2cap_core.c if (chan->mode == L2CAP_MODE_STREAMING) mode 6939 net/bluetooth/l2cap_core.c switch (chan->mode) { mode 6967 net/bluetooth/l2cap_core.c BT_DBG("chan %p: bad mode 0x%2.2x", chan, chan->mode); mode 7193 net/bluetooth/l2cap_core.c switch (chan->mode) { mode 7533 net/bluetooth/l2cap_core.c chan->mode != L2CAP_MODE_LE_FLOWCTL) { mode 7701 net/bluetooth/l2cap_core.c c->sec_level, c->mode); mode 165 net/bluetooth/l2cap_sock.c chan->mode = L2CAP_MODE_LE_FLOWCTL; mode 236 net/bluetooth/l2cap_sock.c chan->mode = L2CAP_MODE_LE_FLOWCTL; mode 273 net/bluetooth/l2cap_sock.c switch (chan->mode) { mode 425 net/bluetooth/l2cap_sock.c opts.mode = chan->mode; mode 659 net/bluetooth/l2cap_sock.c opts.mode = chan->mode; mode 680 net/bluetooth/l2cap_sock.c chan->mode = opts.mode; mode 681 net/bluetooth/l2cap_sock.c switch (chan->mode) { mode 897 net/bluetooth/l2cap_sock.c if (chan->mode != L2CAP_MODE_ERTM && mode 898 net/bluetooth/l2cap_sock.c chan->mode != L2CAP_MODE_STREAMING) { mode 1015 net/bluetooth/l2cap_sock.c if (pi->chan->mode != L2CAP_MODE_ERTM) mode 1134 net/bluetooth/l2cap_sock.c if (chan->mode == L2CAP_MODE_ERTM && mode 1277 net/bluetooth/l2cap_sock.c if (chan->mode != L2CAP_MODE_ERTM && mode 1278 net/bluetooth/l2cap_sock.c chan->mode != L2CAP_MODE_STREAMING) { mode 1298 net/bluetooth/l2cap_sock.c if (err < 0 && chan->mode == L2CAP_MODE_ERTM) { mode 1531 net/bluetooth/l2cap_sock.c chan->mode = pchan->mode; mode 1565 net/bluetooth/l2cap_sock.c chan->mode = L2CAP_MODE_ERTM; mode 1568 net/bluetooth/l2cap_sock.c chan->mode = L2CAP_MODE_BASIC; mode 4915 net/bluetooth/mgmt.c u8 mode = (cp->val == 0x02) ? 0x01 : 0x00; mode 4917 net/bluetooth/mgmt.c sizeof(mode), &mode); mode 758 net/bluetooth/rfcomm/core.c l2cap_pi(sk)->chan->mode = L2CAP_MODE_ERTM; mode 3182 net/bluetooth/smp.c chan->mode = pchan->mode; mode 3281 net/bluetooth/smp.c chan->mode = L2CAP_MODE_BASIC; mode 1045 net/bridge/br_netfilter_hooks.c .mode = 0644, mode 1051 net/bridge/br_netfilter_hooks.c .mode = 0644, mode 1057 net/bridge/br_netfilter_hooks.c .mode = 0644, mode 1063 net/bridge/br_netfilter_hooks.c .mode = 0644, mode 1069 net/bridge/br_netfilter_hooks.c .mode = 0644, mode 1075 net/bridge/br_netfilter_hooks.c .mode = 0644, mode 175 net/bridge/br_netlink.c u8 mode = !!(p->flags & BR_HAIRPIN_MODE); mode 182 net/bridge/br_netlink.c nla_put_u8(skb, IFLA_BRPORT_MODE, mode) || mode 939 net/bridge/br_sysfs_br.c .mode = 0444, }, mode 30 net/bridge/br_sysfs_if.c .mode = _mode }, \ mode 38 net/bridge/br_sysfs_if.c .mode = _mode }, \ mode 71 net/bridge/br_vlan_tunnel.c metadata->u.tun_info.mode |= IP_TUNNEL_INFO_TX | IP_TUNNEL_INFO_BRIDGE; mode 112 net/caif/caif_socket.c static void caif_flow_ctrl(struct sock *sk, int mode) mode 117 net/caif/caif_socket.c cf_sk->layer.dn->modemcmd(cf_sk->layer.dn, mode); mode 59 net/ceph/ceph_fs.c int mode; mode 68 net/ceph/ceph_fs.c mode = CEPH_FILE_MODE_WR; mode 71 net/ceph/ceph_fs.c mode = CEPH_FILE_MODE_RD; mode 75 net/ceph/ceph_fs.c mode = CEPH_FILE_MODE_RDWR; mode 80 net/ceph/ceph_fs.c mode |= CEPH_FILE_MODE_LAZY; mode 83 net/ceph/ceph_fs.c return mode; mode 87 net/ceph/ceph_fs.c int ceph_caps_for_mode(int mode) mode 91 net/ceph/ceph_fs.c if (mode & CEPH_FILE_MODE_RD) mode 94 net/ceph/ceph_fs.c if (mode & CEPH_FILE_MODE_WR) mode 99 net/ceph/ceph_fs.c if (mode & CEPH_FILE_MODE_LAZY) mode 75 net/core/datagram.c static int receiver_wake_function(wait_queue_entry_t *wait, unsigned int mode, int sync, mode 83 net/core/datagram.c return autoremove_wake_function(wait, mode, sync, key); mode 633 net/core/dev.c if (unlikely(!(info->mode & IP_TUNNEL_INFO_TX))) mode 1575 net/core/devlink.c u16 mode; mode 1586 net/core/devlink.c err = ops->eswitch_mode_get(devlink, &mode); mode 1589 net/core/devlink.c err = nla_put_u16(msg, DEVLINK_ATTR_ESWITCH_MODE, mode); mode 1651 net/core/devlink.c u16 mode; mode 1656 net/core/devlink.c mode = nla_get_u16(info->attrs[DEVLINK_ATTR_ESWITCH_MODE]); mode 1657 net/core/devlink.c err = ops->eswitch_mode_set(devlink, mode, info->extack); mode 3154 net/core/filter.c u32, mode, u64, flags) mode 3173 net/core/filter.c switch (mode) { mode 3968 net/core/filter.c info->mode = IP_TUNNEL_INFO_TX; mode 3983 net/core/filter.c info->mode |= IP_TUNNEL_INFO_IPV6; mode 3542 net/core/neighbour.c .mode = mval, \ mode 3588 net/core/neighbour.c .mode = 0644, mode 3594 net/core/neighbour.c .mode = 0644, mode 3602 net/core/neighbour.c .mode = 0644, mode 3610 net/core/neighbour.c .mode = 0644, mode 2507 net/core/pktgen.c if ((x->props.mode != XFRM_MODE_TRANSPORT) && (pkt_dev->spi == 0)) mode 2513 net/core/pktgen.c if ((x->props.mode == XFRM_MODE_TUNNEL) && (pkt_dev->spi != 0)) mode 1391 net/core/rtnetlink.c u32 *prog_id, u8 *mode, u8 tgt_mode, u32 attr, mode 1406 net/core/rtnetlink.c if (*mode != XDP_ATTACHED_NONE) mode 1407 net/core/rtnetlink.c *mode = XDP_ATTACHED_MULTI; mode 1409 net/core/rtnetlink.c *mode = tgt_mode; mode 1419 net/core/rtnetlink.c u8 mode; mode 1426 net/core/rtnetlink.c mode = XDP_ATTACHED_NONE; mode 1427 net/core/rtnetlink.c err = rtnl_xdp_report_one(skb, dev, &prog_id, &mode, XDP_ATTACHED_SKB, mode 1431 net/core/rtnetlink.c err = rtnl_xdp_report_one(skb, dev, &prog_id, &mode, XDP_ATTACHED_DRV, mode 1435 net/core/rtnetlink.c err = rtnl_xdp_report_one(skb, dev, &prog_id, &mode, XDP_ATTACHED_HW, mode 1440 net/core/rtnetlink.c err = nla_put_u8(skb, IFLA_XDP_ATTACHED, mode); mode 1444 net/core/rtnetlink.c if (prog_id && mode != XDP_ATTACHED_MULTI) { mode 4291 net/core/rtnetlink.c struct net_device *dev, u16 mode, mode 4339 net/core/rtnetlink.c if (mode != BRIDGE_MODE_UNDEF) { mode 4340 net/core/rtnetlink.c if (nla_put_u16(skb, IFLA_BRIDGE_MODE, mode)) { mode 55 net/core/sysctl_net_core.c .mode = table->mode mode 322 net/core/sysctl_net_core.c .mode = 0644, mode 330 net/core/sysctl_net_core.c .mode = 0644, mode 338 net/core/sysctl_net_core.c .mode = 0644, mode 346 net/core/sysctl_net_core.c .mode = 0644, mode 354 net/core/sysctl_net_core.c .mode = 0644, mode 361 net/core/sysctl_net_core.c .mode = 0644, mode 368 net/core/sysctl_net_core.c .mode = 0644, mode 375 net/core/sysctl_net_core.c .mode = 0644, mode 382 net/core/sysctl_net_core.c .mode = 0444, mode 390 net/core/sysctl_net_core.c .mode = 0644, mode 405 net/core/sysctl_net_core.c .mode = 0600, mode 414 net/core/sysctl_net_core.c .mode = 0600, mode 424 net/core/sysctl_net_core.c .mode = 0600, mode 434 net/core/sysctl_net_core.c .mode = 0644, mode 441 net/core/sysctl_net_core.c .mode = 0644, mode 448 net/core/sysctl_net_core.c .mode = 0644, mode 455 net/core/sysctl_net_core.c .mode = 0644, mode 462 net/core/sysctl_net_core.c .mode = 0644, mode 471 net/core/sysctl_net_core.c .mode = 0644, mode 478 net/core/sysctl_net_core.c .mode = 0644, mode 485 net/core/sysctl_net_core.c .mode = 0644, mode 494 net/core/sysctl_net_core.c .mode = 0644, mode 502 net/core/sysctl_net_core.c .mode = 0644, mode 510 net/core/sysctl_net_core.c .mode = 0644, mode 520 net/core/sysctl_net_core.c .mode = 0644, mode 527 net/core/sysctl_net_core.c .mode = 0644, mode 534 net/core/sysctl_net_core.c .mode = 0644, mode 543 net/core/sysctl_net_core.c .mode = 0644, mode 551 net/core/sysctl_net_core.c .mode = 0644, mode 560 net/core/sysctl_net_core.c .mode = 0644, mode 569 net/core/sysctl_net_core.c .mode = 0644, mode 576 net/core/sysctl_net_core.c .mode = 0644, mode 588 net/core/sysctl_net_core.c .mode = 0644, mode 28 net/dccp/sysctl.c .mode = 0644, mode 37 net/dccp/sysctl.c .mode = 0644, mode 46 net/dccp/sysctl.c .mode = 0644, mode 55 net/dccp/sysctl.c .mode = 0644, mode 64 net/dccp/sysctl.c .mode = 0644, mode 73 net/dccp/sysctl.c .mode = 0644, mode 82 net/dccp/sysctl.c .mode = 0644, mode 90 net/dccp/sysctl.c .mode = 0644, mode 1349 net/decnet/af_decnet.c int mode; mode 1422 net/decnet/af_decnet.c if ((u.mode != ACC_IMMED) && (u.mode != ACC_DEFER)) mode 1425 net/decnet/af_decnet.c scp->accept_mode = (unsigned char)u.mode; mode 89 net/decnet/dn_dev.c .mode = DN_DEV_BCAST, mode 100 net/decnet/dn_dev.c .mode = DN_DEV_BCAST, mode 110 net/decnet/dn_dev.c .mode = DN_DEV_UCAST, mode 121 net/decnet/dn_dev.c .mode = DN_DEV_BCAST, mode 131 net/decnet/dn_dev.c .mode = DN_DEV_UCAST, mode 140 net/decnet/dn_dev.c .mode = DN_DEV_BCAST, mode 175 net/decnet/dn_dev.c .mode = 0644, mode 182 net/decnet/dn_dev.c .mode = 0644, mode 191 net/decnet/dn_dev.c .mode = 0644, mode 200 net/decnet/dn_dev.c .mode = 0644, mode 1367 net/decnet/dn_dev.c dn_type2asc(dn_db->parms.mode), mode 254 net/decnet/sysctl_net_decnet.c .mode = 0644, mode 261 net/decnet/sysctl_net_decnet.c .mode = 0644, mode 267 net/decnet/sysctl_net_decnet.c .mode = 0644, mode 274 net/decnet/sysctl_net_decnet.c .mode = 0644, mode 283 net/decnet/sysctl_net_decnet.c .mode = 0644, mode 292 net/decnet/sysctl_net_decnet.c .mode = 0644, mode 301 net/decnet/sysctl_net_decnet.c .mode = 0644, mode 310 net/decnet/sysctl_net_decnet.c .mode = 0644, mode 319 net/decnet/sysctl_net_decnet.c .mode = 0644, mode 328 net/decnet/sysctl_net_decnet.c .mode = 0644, mode 335 net/decnet/sysctl_net_decnet.c .mode = 0644, mode 342 net/decnet/sysctl_net_decnet.c .mode = 0644, mode 349 net/decnet/sysctl_net_decnet.c .mode = 0644, mode 172 net/dsa/dsa_priv.h unsigned int mode, mode 176 net/dsa/dsa_priv.h unsigned int mode, mode 179 net/dsa/dsa_priv.h unsigned int mode, mode 471 net/dsa/port.c unsigned int mode, mode 480 net/dsa/port.c ds->ops->phylink_mac_config(ds, dp->index, mode, state); mode 497 net/dsa/port.c unsigned int mode, mode 513 net/dsa/port.c ds->ops->phylink_mac_link_down(ds, dp->index, mode, interface); mode 518 net/dsa/port.c unsigned int mode, mode 531 net/dsa/port.c ds->ops->phylink_mac_link_up(ds, dp->index, mode, interface, phydev); mode 588 net/dsa/port.c int mode; mode 601 net/dsa/port.c mode = of_get_phy_mode(dn); mode 602 net/dsa/port.c if (mode < 0) mode 603 net/dsa/port.c mode = PHY_INTERFACE_MODE_NA; mode 604 net/dsa/port.c phydev->interface = mode; mode 620 net/dsa/port.c int mode, err; mode 622 net/dsa/port.c mode = of_get_phy_mode(port_dn); mode 623 net/dsa/port.c if (mode < 0) mode 624 net/dsa/port.c mode = PHY_INTERFACE_MODE_NA; mode 630 net/dsa/port.c mode, &dsa_port_phylink_mac_ops); mode 1295 net/dsa/slave.c int mode, ret; mode 1297 net/dsa/slave.c mode = of_get_phy_mode(port_dn); mode 1298 net/dsa/slave.c if (mode < 0) mode 1299 net/dsa/slave.c mode = PHY_INTERFACE_MODE_NA; mode 1304 net/dsa/slave.c dp->pl = phylink_create(&dp->pl_config, of_fwnode_handle(port_dn), mode, mode 325 net/ieee802154/6lowpan/reassembly.c .mode = 0644, mode 331 net/ieee802154/6lowpan/reassembly.c .mode = 0644, mode 337 net/ieee802154/6lowpan/reassembly.c .mode = 0644, mode 350 net/ieee802154/6lowpan/reassembly.c .mode = 0644, mode 58 net/ieee802154/6lowpan/tx.c info->daddr.mode = IEEE802154_ADDR_SHORT; mode 73 net/ieee802154/6lowpan/tx.c info->daddr.mode = IEEE802154_ADDR_SHORT; mode 75 net/ieee802154/6lowpan/tx.c info->daddr.mode = IEEE802154_ADDR_LONG; mode 86 net/ieee802154/6lowpan/tx.c info->saddr.mode = IEEE802154_ADDR_SHORT; mode 89 net/ieee802154/6lowpan/tx.c info->saddr.mode = IEEE802154_ADDR_LONG; mode 93 net/ieee802154/6lowpan/tx.c info->saddr.mode = IEEE802154_ADDR_LONG; mode 240 net/ieee802154/6lowpan/tx.c if (info.daddr.mode == IEEE802154_ADDR_SHORT && mode 20 net/ieee802154/header_ops.c if (addr->mode == IEEE802154_ADDR_NONE) mode 28 net/ieee802154/header_ops.c switch (addr->mode) { mode 87 net/ieee802154/header_ops.c fc->dest_addr_mode = hdr->dest.mode; mode 94 net/ieee802154/header_ops.c fc->source_addr_mode = hdr->source.mode; mode 97 net/ieee802154/header_ops.c hdr->dest.mode != IEEE802154_ADDR_NONE) mode 124 net/ieee802154/header_ops.c ieee802154_hdr_get_addr(const u8 *buf, int mode, bool omit_pan, mode 129 net/ieee802154/header_ops.c addr->mode = mode; mode 131 net/ieee802154/header_ops.c if (mode == IEEE802154_ADDR_NONE) mode 139 net/ieee802154/header_ops.c if (mode == IEEE802154_ADDR_SHORT) { mode 148 net/ieee802154/header_ops.c static int ieee802154_hdr_addr_len(int mode, bool omit_pan) mode 152 net/ieee802154/header_ops.c switch (mode) { mode 119 net/ieee802154/nl-mac.c params.cca.mode) || mode 194 net/ieee802154/nl-mac.c addr.mode = IEEE802154_ADDR_LONG; mode 198 net/ieee802154/nl-mac.c addr.mode = IEEE802154_ADDR_SHORT; mode 237 net/ieee802154/nl-mac.c addr.mode = IEEE802154_ADDR_LONG; mode 271 net/ieee802154/nl-mac.c addr.mode = IEEE802154_ADDR_LONG; mode 275 net/ieee802154/nl-mac.c addr.mode = IEEE802154_ADDR_SHORT; mode 328 net/ieee802154/nl-mac.c addr.mode = IEEE802154_ADDR_SHORT; mode 512 net/ieee802154/nl-mac.c params.cca.mode = nla_get_u8(info->attrs[IEEE802154_ATTR_CCA_MODE]); mode 551 net/ieee802154/nl-mac.c desc->mode = nla_get_u8(info->attrs[IEEE802154_ATTR_LLSEC_KEY_MODE]); mode 553 net/ieee802154/nl-mac.c if (desc->mode == IEEE802154_SCF_KEY_IMPLICIT) { mode 562 net/ieee802154/nl-mac.c desc->device_addr.mode = IEEE802154_ADDR_SHORT; mode 565 net/ieee802154/nl-mac.c desc->device_addr.mode = IEEE802154_ADDR_LONG; mode 570 net/ieee802154/nl-mac.c if (desc->mode != IEEE802154_SCF_KEY_IMPLICIT && mode 574 net/ieee802154/nl-mac.c if (desc->mode == IEEE802154_SCF_KEY_SHORT_INDEX && mode 578 net/ieee802154/nl-mac.c if (desc->mode == IEEE802154_SCF_KEY_HW_INDEX && mode 582 net/ieee802154/nl-mac.c if (desc->mode != IEEE802154_SCF_KEY_IMPLICIT) mode 585 net/ieee802154/nl-mac.c switch (desc->mode) { mode 605 net/ieee802154/nl-mac.c if (nla_put_u8(msg, IEEE802154_ATTR_LLSEC_KEY_MODE, desc->mode)) mode 608 net/ieee802154/nl-mac.c if (desc->mode == IEEE802154_SCF_KEY_IMPLICIT) { mode 613 net/ieee802154/nl-mac.c if (desc->device_addr.mode == IEEE802154_ADDR_SHORT && mode 618 net/ieee802154/nl-mac.c if (desc->device_addr.mode == IEEE802154_ADDR_LONG && mode 625 net/ieee802154/nl-mac.c if (desc->mode != IEEE802154_SCF_KEY_IMPLICIT && mode 629 net/ieee802154/nl-mac.c if (desc->mode == IEEE802154_SCF_KEY_SHORT_INDEX && mode 634 net/ieee802154/nl-mac.c if (desc->mode == IEEE802154_SCF_KEY_HW_INDEX && mode 479 net/ieee802154/nl802154.c rdev->wpan_phy.cca.mode)) mode 482 net/ieee802154/nl802154.c if (rdev->wpan_phy.cca.mode == NL802154_CCA_ENERGY_CARRIER) { mode 690 net/ieee802154/nl802154.c if (nla_put_u32(msg, NL802154_KEY_ID_ATTR_MODE, desc->mode)) mode 693 net/ieee802154/nl802154.c switch (desc->mode) { mode 703 net/ieee802154/nl802154.c desc->device_addr.mode)) mode 706 net/ieee802154/nl802154.c switch (desc->device_addr.mode) { mode 745 net/ieee802154/nl802154.c if (desc->mode != NL802154_KEY_ID_MODE_IMPLICIT) { mode 996 net/ieee802154/nl802154.c cca.mode = nla_get_u32(info->attrs[NL802154_ATTR_CCA_MODE]); mode 998 net/ieee802154/nl802154.c if (cca.mode < NL802154_CCA_ENERGY || mode 999 net/ieee802154/nl802154.c cca.mode > NL802154_CCA_ATTR_MAX || mode 1000 net/ieee802154/nl802154.c !(rdev->wpan_phy.supported.cca_modes & BIT(cca.mode))) mode 1003 net/ieee802154/nl802154.c if (cca.mode == NL802154_CCA_ENERGY_CARRIER) { mode 1223 net/ieee802154/nl802154.c int mode; mode 1231 net/ieee802154/nl802154.c mode = nla_get_u8(info->attrs[NL802154_ATTR_LBT_MODE]); mode 1233 net/ieee802154/nl802154.c if (mode != 0 && mode != 1) mode 1236 net/ieee802154/nl802154.c if (!wpan_phy_supported_bool(mode, rdev->wpan_phy.supported.lbt)) mode 1239 net/ieee802154/nl802154.c return rdev_set_lbt_mode(rdev, wpan_dev, mode); mode 1319 net/ieee802154/nl802154.c addr->mode = nla_get_u32(attrs[NL802154_DEV_ADDR_ATTR_MODE]); mode 1320 net/ieee802154/nl802154.c switch (addr->mode) { mode 1354 net/ieee802154/nl802154.c desc->mode = nla_get_u32(attrs[NL802154_KEY_ID_ATTR_MODE]); mode 1355 net/ieee802154/nl802154.c switch (desc->mode) { mode 1382 net/ieee802154/nl802154.c if (desc->mode != NL802154_KEY_ID_MODE_IMPLICIT) { mode 189 net/ieee802154/rdev-ops.h struct wpan_dev *wpan_dev, bool mode) mode 193 net/ieee802154/rdev-ops.h trace_802154_rdev_set_lbt_mode(&rdev->wpan_phy, wpan_dev, mode); mode 194 net/ieee802154/rdev-ops.h ret = rdev->ops->set_lbt_mode(&rdev->wpan_phy, wpan_dev, mode); mode 39 net/ieee802154/socket.c switch (addr->mode) { mode 74 net/ieee802154/socket.c addr->mode); mode 778 net/ieee802154/socket.c if (ro->src_addr.mode == IEEE802154_ADDR_LONG && mode 782 net/ieee802154/socket.c if (ro->src_addr.mode == IEEE802154_ADDR_SHORT && mode 32 net/ieee802154/trace.h (__entry->cca_mode) = cca->mode; \ mode 262 net/ieee802154/trace.h bool mode), mode 263 net/ieee802154/trace.h TP_ARGS(wpan_phy, wpan_dev, mode), mode 267 net/ieee802154/trace.h __field(bool, mode) mode 272 net/ieee802154/trace.h __entry->mode = mode; mode 276 net/ieee802154/trace.h WPAN_DEV_PR_ARG, BOOL_TO_STR(__entry->mode)) mode 294 net/ipv4/ah4.c if (x->props.mode == XFRM_MODE_TUNNEL) mode 429 net/ipv4/ah4.c if (x->props.mode == XFRM_MODE_TUNNEL) mode 525 net/ipv4/ah4.c if (x->props.mode == XFRM_MODE_TUNNEL) mode 2487 net/ipv4/devinet.c .mode = mval, \ mode 2636 net/ipv4/devinet.c .mode = 0644, mode 634 net/ipv4/esp4.c if (x->props.mode == XFRM_MODE_TRANSPORT) mode 639 net/ipv4/esp4.c if (x->props.mode == XFRM_MODE_TUNNEL) mode 974 net/ipv4/esp4.c if (x->props.mode == XFRM_MODE_TUNNEL) mode 976 net/ipv4/esp4.c else if (x->props.mode == XFRM_MODE_BEET && x->sel.family != AF_INET6) mode 1423 net/ipv4/igmp.c unsigned int mode, gfp_t gfp) mode 1432 net/ipv4/igmp.c ip_mc_add_src(in_dev, &addr, mode, 0, NULL, 0); mode 1446 net/ipv4/igmp.c im->sfmode = mode; mode 1447 net/ipv4/igmp.c im->sfcount[mode] = 1; mode 2157 net/ipv4/igmp.c unsigned int mode) mode 2198 net/ipv4/igmp.c iml->sfmode = mode; mode 2200 net/ipv4/igmp.c ____ip_mc_inc_group(in_dev, addr, mode, GFP_KERNEL); mode 2217 net/ipv4/igmp.c unsigned int mode) mode 2219 net/ipv4/igmp.c return __ip_mc_join_group(sk, imr, mode); mode 552 net/ipv4/ip_fragment.c .mode = 0644, mode 558 net/ipv4/ip_fragment.c .mode = 0644, mode 564 net/ipv4/ip_fragment.c .mode = 0644, mode 570 net/ipv4/ip_fragment.c .mode = 0644, mode 584 net/ipv4/ip_fragment.c .mode = 0644, mode 462 net/ipv4/ip_gre.c if (unlikely(!tun_info || !(tun_info->mode & IP_TUNNEL_INFO_TX) || mode 505 net/ipv4/ip_gre.c if (unlikely(!tun_info || !(tun_info->mode & IP_TUNNEL_INFO_TX) || mode 558 net/ipv4/ip_tunnel.c if (unlikely(!tun_info || !(tun_info->mode & IP_TUNNEL_INFO_TX) || mode 670 net/ipv4/ip_tunnel.c if (tun_info && (tun_info->mode & IP_TUNNEL_INFO_TX) && mode 128 net/ipv4/ip_tunnel_core.c md->u.tun_info.mode & IP_TUNNEL_INFO_TX) mode 139 net/ipv4/ip_tunnel_core.c if (src->mode & IP_TUNNEL_INFO_IPV6) mode 145 net/ipv4/ip_tunnel_core.c dst->mode = src->mode | IP_TUNNEL_INFO_TX; mode 271 net/ipv4/ip_tunnel_core.c tun_info->mode = IP_TUNNEL_INFO_TX; mode 380 net/ipv4/ip_tunnel_core.c tun_info->mode = IP_TUNNEL_INFO_TX | IP_TUNNEL_INFO_IPV6; mode 186 net/ipv4/ip_vti.c if (!x || x->props.mode != XFRM_MODE_TUNNEL || mode 70 net/ipv4/ipcomp.c t->props.mode = x->props.mode; mode 123 net/ipv4/ipcomp.c switch (x->props.mode) { mode 137 net/ipv4/ipcomp.c if (x->props.mode == XFRM_MODE_TUNNEL) { mode 2061 net/ipv4/route.c if (tun_info && !(tun_info->mode & IP_TUNNEL_INFO_TX)) mode 3246 net/ipv4/route.c .mode = 0644, mode 3253 net/ipv4/route.c .mode = 0644, mode 3262 net/ipv4/route.c .mode = 0644, mode 3269 net/ipv4/route.c .mode = 0644, mode 3276 net/ipv4/route.c .mode = 0644, mode 3283 net/ipv4/route.c .mode = 0644, mode 3290 net/ipv4/route.c .mode = 0644, mode 3297 net/ipv4/route.c .mode = 0644, mode 3304 net/ipv4/route.c .mode = 0644, mode 3311 net/ipv4/route.c .mode = 0644, mode 3318 net/ipv4/route.c .mode = 0644, mode 3325 net/ipv4/route.c .mode = 0644, mode 3332 net/ipv4/route.c .mode = 0644, mode 3339 net/ipv4/route.c .mode = 0644, mode 3347 net/ipv4/route.c .mode = 0644, mode 3359 net/ipv4/route.c .mode = 0200, mode 84 net/ipv4/sysctl_net_ipv4.c .mode = table->mode, mode 120 net/ipv4/sysctl_net_ipv4.c .mode = table->mode, mode 181 net/ipv4/sysctl_net_ipv4.c .mode = table->mode, mode 485 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 492 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 499 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 506 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 513 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 520 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 528 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 535 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 542 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 549 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 556 net/ipv4/sysctl_net_ipv4.c .mode = 0444, mode 562 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 568 net/ipv4/sysctl_net_ipv4.c .mode = 0444, mode 575 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 583 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 591 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 598 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 606 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 612 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 623 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 630 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 637 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 644 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 651 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 658 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 665 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 673 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 683 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 690 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 697 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 704 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 711 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 718 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 725 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 734 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 741 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 748 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 755 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 762 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 771 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 778 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 785 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 793 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 803 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 810 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 817 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 826 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 835 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 842 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 850 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 857 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 864 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 872 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 880 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 888 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 895 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 902 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 909 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 918 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 926 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 934 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 941 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 949 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 956 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 963 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 970 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 977 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 986 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 993 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1000 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1005 net/ipv4/sysctl_net_ipv4.c .mode = 0600, mode 1019 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1028 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1037 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1047 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1055 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1065 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1072 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1079 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1086 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1095 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1102 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1109 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1116 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1123 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1130 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1137 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1144 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1151 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1158 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1165 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1172 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1181 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1188 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1195 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1202 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1209 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1216 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1223 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1230 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1239 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1248 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1257 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1264 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1273 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1282 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1290 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1298 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1305 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1314 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 1322 net/ipv4/sysctl_net_ipv4.c .mode = 0644, mode 95 net/ipv4/tcp_bbr.c u32 mode:3, /* current bbr_mode in state machine */ mode 323 net/ipv4/tcp_bbr.c if (bbr->prev_ca_state < TCP_CA_Recovery && bbr->mode != BBR_PROBE_RTT) mode 341 net/ipv4/tcp_bbr.c if (bbr->mode == BBR_PROBE_BW) mode 343 net/ipv4/tcp_bbr.c else if (bbr->mode == BBR_PROBE_RTT) mode 403 net/ipv4/tcp_bbr.c if (bbr->mode == BBR_PROBE_BW && bbr->cycle_idx == 0) mode 546 net/ipv4/tcp_bbr.c if (bbr->mode == BBR_PROBE_RTT) /* drain queue, refresh min_rtt */ mode 603 net/ipv4/tcp_bbr.c if (bbr->mode == BBR_PROBE_BW && bbr_is_next_cycle_phase(sk, rs)) mode 611 net/ipv4/tcp_bbr.c bbr->mode = BBR_STARTUP; mode 618 net/ipv4/tcp_bbr.c bbr->mode = BBR_PROBE_BW; mode 694 net/ipv4/tcp_bbr.c if (bbr->mode == BBR_PROBE_BW && bbr->round_start && mode 894 net/ipv4/tcp_bbr.c if (bbr->mode == BBR_STARTUP && bbr_full_bw_reached(sk)) { mode 895 net/ipv4/tcp_bbr.c bbr->mode = BBR_DRAIN; /* drain queue we created */ mode 899 net/ipv4/tcp_bbr.c if (bbr->mode == BBR_DRAIN && mode 955 net/ipv4/tcp_bbr.c !bbr->idle_restart && bbr->mode != BBR_PROBE_RTT) { mode 956 net/ipv4/tcp_bbr.c bbr->mode = BBR_PROBE_RTT; /* dip, drain queue */ mode 961 net/ipv4/tcp_bbr.c if (bbr->mode == BBR_PROBE_RTT) { mode 988 net/ipv4/tcp_bbr.c switch (bbr->mode) { mode 1008 net/ipv4/tcp_bbr.c WARN_ONCE(1, "BBR bad mode: %u\n", bbr->mode); mode 165 net/ipv4/xfrm4_policy.c .mode = 0644, mode 29 net/ipv4/xfrm4_tunnel.c if (x->props.mode != XFRM_MODE_TUNNEL) mode 5696 net/ipv6/addrconf.c static int check_addr_gen_mode(int mode) mode 5698 net/ipv6/addrconf.c if (mode != IN6_ADDR_GEN_MODE_EUI64 && mode 5699 net/ipv6/addrconf.c mode != IN6_ADDR_GEN_MODE_NONE && mode 5700 net/ipv6/addrconf.c mode != IN6_ADDR_GEN_MODE_STABLE_PRIVACY && mode 5701 net/ipv6/addrconf.c mode != IN6_ADDR_GEN_MODE_RANDOM) mode 5707 net/ipv6/addrconf.c int mode) mode 5709 net/ipv6/addrconf.c if (mode == IN6_ADDR_GEN_MODE_STABLE_PRIVACY && mode 5738 net/ipv6/addrconf.c u8 mode = nla_get_u8(tb[IFLA_INET6_ADDR_GEN_MODE]); mode 5740 net/ipv6/addrconf.c if (check_addr_gen_mode(mode) < 0) mode 5742 net/ipv6/addrconf.c if (dev && check_stable_privacy(idev, dev_net(dev), mode) < 0) mode 5768 net/ipv6/addrconf.c u8 mode = nla_get_u8(tb[IFLA_INET6_ADDR_GEN_MODE]); mode 5770 net/ipv6/addrconf.c idev->cnf.addr_gen_mode = mode; mode 6234 net/ipv6/addrconf.c .mode = ctl->mode, mode 6486 net/ipv6/addrconf.c .mode = 0644, mode 6493 net/ipv6/addrconf.c .mode = 0644, mode 6502 net/ipv6/addrconf.c .mode = 0644, mode 6509 net/ipv6/addrconf.c .mode = 0644, mode 6516 net/ipv6/addrconf.c .mode = 0644, mode 6523 net/ipv6/addrconf.c .mode = 0644, mode 6530 net/ipv6/addrconf.c .mode = 0644, mode 6537 net/ipv6/addrconf.c .mode = 0644, mode 6545 net/ipv6/addrconf.c .mode = 0644, mode 6552 net/ipv6/addrconf.c .mode = 0644, mode 6559 net/ipv6/addrconf.c .mode = 0644, mode 6566 net/ipv6/addrconf.c .mode = 0644, mode 6574 net/ipv6/addrconf.c .mode = 0644, mode 6582 net/ipv6/addrconf.c .mode = 0644, mode 6589 net/ipv6/addrconf.c .mode = 0644, mode 6596 net/ipv6/addrconf.c .mode = 0644, mode 6603 net/ipv6/addrconf.c .mode = 0644, mode 6610 net/ipv6/addrconf.c .mode = 0644, mode 6617 net/ipv6/addrconf.c .mode = 0644, mode 6624 net/ipv6/addrconf.c .mode = 0644, mode 6631 net/ipv6/addrconf.c .mode = 0644, mode 6638 net/ipv6/addrconf.c .mode = 0644, mode 6645 net/ipv6/addrconf.c .mode = 0644, mode 6653 net/ipv6/addrconf.c .mode = 0644, mode 6660 net/ipv6/addrconf.c .mode = 0644, mode 6668 net/ipv6/addrconf.c .mode = 0644, mode 6675 net/ipv6/addrconf.c .mode = 0644, mode 6684 net/ipv6/addrconf.c .mode = 0644, mode 6691 net/ipv6/addrconf.c .mode = 0644, mode 6699 net/ipv6/addrconf.c .mode = 0644, mode 6706 net/ipv6/addrconf.c .mode = 0644, mode 6715 net/ipv6/addrconf.c .mode = 0444, mode 6723 net/ipv6/addrconf.c .mode = 0644, mode 6730 net/ipv6/addrconf.c .mode = 0644, mode 6737 net/ipv6/addrconf.c .mode = 0644, mode 6744 net/ipv6/addrconf.c .mode = 0644, mode 6751 net/ipv6/addrconf.c .mode = 0644, mode 6758 net/ipv6/addrconf.c .mode = 0644, mode 6765 net/ipv6/addrconf.c .mode = 0644, mode 6772 net/ipv6/addrconf.c .mode = 0600, mode 6779 net/ipv6/addrconf.c .mode = 0644, mode 6786 net/ipv6/addrconf.c .mode = 0644, mode 6793 net/ipv6/addrconf.c .mode = 0644, mode 6800 net/ipv6/addrconf.c .mode = 0644, mode 6807 net/ipv6/addrconf.c .mode = 0644, mode 6815 net/ipv6/addrconf.c .mode = 0644, mode 6823 net/ipv6/addrconf.c .mode = 0644, mode 6831 net/ipv6/addrconf.c .mode = 0644, mode 6838 net/ipv6/addrconf.c .mode = 0644, mode 6845 net/ipv6/addrconf.c .mode = 0644, mode 6852 net/ipv6/addrconf.c .mode = 0644, mode 485 net/ipv6/ah6.c if (x->props.mode == XFRM_MODE_TUNNEL) mode 632 net/ipv6/ah6.c if (x->props.mode == XFRM_MODE_TUNNEL) mode 718 net/ipv6/ah6.c switch (x->props.mode) { mode 539 net/ipv6/esp6.c if (x->props.mode == XFRM_MODE_TUNNEL) mode 872 net/ipv6/esp6.c switch (x->props.mode) { mode 1125 net/ipv6/icmp.c .mode = 0644, mode 1132 net/ipv6/icmp.c .mode = 0644, mode 1139 net/ipv6/icmp.c .mode = 0644, mode 1146 net/ipv6/icmp.c .mode = 0644, mode 1153 net/ipv6/icmp.c .mode = 0644, mode 734 net/ipv6/ip6_gre.c !(tun_info->mode & IP_TUNNEL_INFO_TX) || mode 969 net/ipv6/ip6_gre.c !(tun_info->mode & IP_TUNNEL_INFO_TX) || mode 1253 net/ipv6/ip6_tunnel.c if (unlikely(!tun_info || !(tun_info->mode & IP_TUNNEL_INFO_TX) || mode 1325 net/ipv6/ip6_tunnel.c if (unlikely(!tun_info || !(tun_info->mode & IP_TUNNEL_INFO_TX) || mode 421 net/ipv6/ip6_vti.c if (!x || x->props.mode != XFRM_MODE_TUNNEL || mode 91 net/ipv6/ipcomp6.c t->props.mode = x->props.mode; mode 143 net/ipv6/ipcomp6.c switch (x->props.mode) { mode 157 net/ipv6/ipcomp6.c if (x->props.mode == XFRM_MODE_TUNNEL) { mode 95 net/ipv6/mcast.c const struct in6_addr *addr, unsigned int mode); mode 134 net/ipv6/mcast.c const struct in6_addr *addr, unsigned int mode) mode 181 net/ipv6/mcast.c mc_lst->sfmode = mode; mode 189 net/ipv6/mcast.c err = __ipv6_dev_mc_inc(dev, addr, mode); mode 209 net/ipv6/mcast.c const struct in6_addr *addr, unsigned int mode) mode 211 net/ipv6/mcast.c return __ipv6_sock_mc_join(sk, ifindex, addr, mode); mode 852 net/ipv6/mcast.c unsigned int mode) mode 870 net/ipv6/mcast.c mc->mca_sfmode = mode; mode 871 net/ipv6/mcast.c mc->mca_sfcount[mode] = 1; mode 884 net/ipv6/mcast.c const struct in6_addr *addr, unsigned int mode) mode 908 net/ipv6/mcast.c ip6_mc_add_src(idev, &mc->mca_addr, mode, 0, NULL, 0); mode 914 net/ipv6/mcast.c mc = mca_alloc(idev, addr, mode); mode 304 net/ipv6/mip6.c if (x->props.mode != XFRM_MODE_ROUTEOPTIMIZATION) { mode 306 net/ipv6/mip6.c __func__, XFRM_MODE_ROUTEOPTIMIZATION, x->props.mode); mode 439 net/ipv6/mip6.c if (x->props.mode != XFRM_MODE_ROUTEOPTIMIZATION) { mode 441 net/ipv6/mip6.c __func__, XFRM_MODE_ROUTEOPTIMIZATION, x->props.mode); mode 58 net/ipv6/netfilter/nf_conntrack_reasm.c .mode = 0644, mode 64 net/ipv6/netfilter/nf_conntrack_reasm.c .mode = 0644, mode 70 net/ipv6/netfilter/nf_conntrack_reasm.c .mode = 0644, mode 399 net/ipv6/reassembly.c .mode = 0644, mode 405 net/ipv6/reassembly.c .mode = 0644, mode 411 net/ipv6/reassembly.c .mode = 0644, mode 424 net/ipv6/reassembly.c .mode = 0644, mode 2461 net/ipv6/route.c if (tun_info && !(tun_info->mode & IP_TUNNEL_INFO_TX)) mode 6085 net/ipv6/route.c .mode = 0200, mode 6092 net/ipv6/route.c .mode = 0644, mode 6099 net/ipv6/route.c .mode = 0644, mode 6106 net/ipv6/route.c .mode = 0644, mode 6113 net/ipv6/route.c .mode = 0644, mode 6120 net/ipv6/route.c .mode = 0644, mode 6127 net/ipv6/route.c .mode = 0644, mode 6134 net/ipv6/route.c .mode = 0644, mode 6141 net/ipv6/route.c .mode = 0644, mode 6148 net/ipv6/route.c .mode = 0644, mode 6155 net/ipv6/route.c .mode = 0644, mode 232 net/ipv6/seg6_iptunnel.c switch (tinfo->mode) { mode 414 net/ipv6/seg6_iptunnel.c switch (tuninfo->mode) { mode 449 net/ipv6/seg6_iptunnel.c if (tuninfo->mode != SEG6_IPTUN_MODE_L2ENCAP) mode 49 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 56 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 63 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 70 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 79 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 86 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 93 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 100 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 107 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 114 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 123 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 130 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 137 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 144 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 151 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 160 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 171 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 178 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 187 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 194 net/ipv6/sysctl_net_ipv6.c .mode = 0644, mode 157 net/ipv6/xfrm6_output.c if (x->props.mode != XFRM_MODE_TUNNEL) mode 192 net/ipv6/xfrm6_policy.c .mode = 0644, mode 275 net/ipv6/xfrm6_tunnel.c if (x->props.mode != XFRM_MODE_TUNNEL) mode 705 net/key/af_key.c static inline int pfkey_mode_from_xfrm(int mode) mode 707 net/key/af_key.c switch(mode) { mode 719 net/key/af_key.c static inline int pfkey_mode_to_xfrm(int mode) mode 721 net/key/af_key.c switch(mode) { mode 782 net/key/af_key.c int mode; mode 992 net/key/af_key.c if ((mode = pfkey_mode_from_xfrm(x->props.mode)) < 0) { mode 996 net/key/af_key.c sa2->sadb_x_sa2_mode = mode; mode 1244 net/key/af_key.c int mode = pfkey_mode_to_xfrm(sa2->sadb_x_sa2_mode); mode 1245 net/key/af_key.c if (mode < 0) { mode 1249 net/key/af_key.c x->props.mode = mode; mode 1318 net/key/af_key.c int mode; mode 1335 net/key/af_key.c mode = pfkey_mode_to_xfrm(sa2->sadb_x_sa2_mode); mode 1336 net/key/af_key.c if (mode < 0) mode 1340 net/key/af_key.c mode = 0; mode 1370 net/key/af_key.c x = xfrm_find_acq(net, &dummy_mark, mode, reqid, 0, proto, xdaddr, xsaddr, 1, family); mode 1941 net/key/af_key.c int mode; mode 1952 net/key/af_key.c if ((mode = pfkey_mode_to_xfrm(rq->sadb_x_ipsecrequest_mode)) < 0) mode 1954 net/key/af_key.c t->mode = mode; mode 1966 net/key/af_key.c if (t->mode == XFRM_MODE_TUNNEL) { mode 2150 net/key/af_key.c int mode; mode 2153 net/key/af_key.c if (t->mode == XFRM_MODE_TUNNEL) { mode 2164 net/key/af_key.c if ((mode = pfkey_mode_from_xfrm(t->mode)) < 0) mode 2166 net/key/af_key.c rq->sadb_x_ipsecrequest_mode = mode; mode 2174 net/key/af_key.c if (t->mode == XFRM_MODE_TUNNEL) { mode 2491 net/key/af_key.c int mode; mode 2528 net/key/af_key.c if ((mode = pfkey_mode_to_xfrm(rq1->sadb_x_ipsecrequest_mode)) < 0) mode 2530 net/key/af_key.c m->mode = mode; mode 3494 net/key/af_key.c uint8_t proto, uint8_t mode, int level, mode 3509 net/key/af_key.c rq->sadb_x_ipsecrequest_mode = mode; mode 3607 net/key/af_key.c int mode = pfkey_mode_from_xfrm(mp->mode); mode 3608 net/key/af_key.c if (mode < 0) mode 3610 net/key/af_key.c if (set_ipsecrequest(skb, mp->proto, mode, mode 3617 net/key/af_key.c if (set_ipsecrequest(skb, mp->proto, mode, mode 129 net/lapb/lapb_iface.c lapb->mode = LAPB_DEFAULT_MODE; mode 210 net/lapb/lapb_iface.c parms->mode = lapb->mode; mode 242 net/lapb/lapb_iface.c if (parms->mode & LAPB_EXTENDED) { mode 249 net/lapb/lapb_iface.c lapb->mode = parms->mode; mode 45 net/lapb/lapb_in.c if (lapb->mode & LAPB_EXTENDED) { mode 70 net/lapb/lapb_in.c if (lapb->mode & LAPB_EXTENDED) { mode 116 net/lapb/lapb_in.c if (lapb->mode & LAPB_EXTENDED) { mode 131 net/lapb/lapb_in.c if (lapb->mode & LAPB_EXTENDED) { mode 250 net/lapb/lapb_in.c int modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : mode 256 net/lapb/lapb_in.c if (lapb->mode & LAPB_EXTENDED) { mode 279 net/lapb/lapb_in.c if (lapb->mode & LAPB_EXTENDED) { mode 478 net/lapb/lapb_in.c if (lapb->mode & LAPB_EXTENDED) { mode 503 net/lapb/lapb_in.c if (lapb->mode & LAPB_EXTENDED) { mode 44 net/lapb/lapb_out.c if (lapb->mode & LAPB_EXTENDED) { mode 71 net/lapb/lapb_out.c modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : LAPB_SMODULUS; mode 120 net/lapb/lapb_out.c if (lapb->mode & LAPB_MLP) { mode 121 net/lapb/lapb_out.c if (lapb->mode & LAPB_DCE) { mode 133 net/lapb/lapb_out.c if (lapb->mode & LAPB_DCE) { mode 157 net/lapb/lapb_out.c if (lapb->mode & LAPB_EXTENDED) { mode 51 net/lapb/lapb_subr.c modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : LAPB_SMODULUS; mode 91 net/lapb/lapb_subr.c modulus = (lapb->mode & LAPB_EXTENDED) ? LAPB_EMODULUS : LAPB_SMODULUS; mode 119 net/lapb/lapb_subr.c if (lapb->mode & LAPB_MLP) { mode 120 net/lapb/lapb_subr.c if (lapb->mode & LAPB_DCE) { mode 132 net/lapb/lapb_subr.c if (lapb->mode & LAPB_DCE) { mode 147 net/lapb/lapb_subr.c if (lapb->mode & LAPB_EXTENDED) { mode 232 net/lapb/lapb_subr.c if (lapb->mode & LAPB_EXTENDED) { mode 268 net/lapb/lapb_subr.c if (lapb->mode & LAPB_EXTENDED) { mode 91 net/lapb/lapb_timer.c if (lapb->mode & LAPB_DCE) mode 107 net/lapb/lapb_timer.c if (lapb->mode & LAPB_EXTENDED) { mode 23 net/llc/sysctl_net_llc.c .mode = 0644, mode 30 net/llc/sysctl_net_llc.c .mode = 0644, mode 37 net/llc/sysctl_net_llc.c .mode = 0644, mode 44 net/llc/sysctl_net_llc.c .mode = 0644, mode 399 net/mac80211/cfg.c if (pairwise && params->mode == NL80211_KEY_SET_TX) mode 432 net/mac80211/cfg.c if (params->mode == NL80211_KEY_NO_TX) mode 3371 net/mac80211/cfg.c chanctx->mode, mode 3377 net/mac80211/cfg.c err = ieee80211_check_combinations(sdata, NULL, chanctx->mode, 0); mode 168 net/mac80211/chan.c enum ieee80211_chanctx_mode mode) mode 174 net/mac80211/chan.c if (mode == IEEE80211_CHANCTX_EXCLUSIVE) mode 181 net/mac80211/chan.c if (ctx->mode == IEEE80211_CHANCTX_EXCLUSIVE) mode 365 net/mac80211/chan.c enum ieee80211_chanctx_mode mode) mode 371 net/mac80211/chan.c if (mode == IEEE80211_CHANCTX_EXCLUSIVE) mode 380 net/mac80211/chan.c if (ctx->mode == IEEE80211_CHANCTX_EXCLUSIVE) mode 449 net/mac80211/chan.c enum ieee80211_chanctx_mode mode) mode 464 net/mac80211/chan.c ctx->mode = mode; mode 505 net/mac80211/chan.c enum ieee80211_chanctx_mode mode) mode 513 net/mac80211/chan.c ctx = ieee80211_alloc_chanctx(local, chandef, mode); mode 870 net/mac80211/chan.c enum ieee80211_chanctx_mode mode, mode 882 net/mac80211/chan.c new_ctx = ieee80211_find_reservation_chanctx(local, chandef, mode); mode 885 net/mac80211/chan.c new_ctx = ieee80211_new_chanctx(local, chandef, mode); mode 939 net/mac80211/chan.c new_ctx = ieee80211_alloc_chanctx(local, chandef, mode); mode 1557 net/mac80211/chan.c enum ieee80211_chanctx_mode mode) mode 1580 net/mac80211/chan.c ret = ieee80211_check_combinations(sdata, chandef, mode, mode 1587 net/mac80211/chan.c ctx = ieee80211_find_chanctx(local, chandef, mode); mode 1589 net/mac80211/chan.c ctx = ieee80211_new_chanctx(local, chandef, mode); mode 58 net/mac80211/debugfs.c #define DEBUGFS_ADD_MODE(name, mode) \ mode 59 net/mac80211/debugfs.c debugfs_create_file(#name, mode, phyd, local, &name## _ops); mode 295 net/mac80211/debugfs_netdev.c enum ieee80211_smps_mode mode; mode 297 net/mac80211/debugfs_netdev.c for (mode = 0; mode < IEEE80211_SMPS_NUM_MODES; mode++) { mode 298 net/mac80211/debugfs_netdev.c if (strncmp(buf, smps_modes[mode], buflen) == 0) { mode 299 net/mac80211/debugfs_netdev.c int err = ieee80211_set_smps(sdata, mode); mode 650 net/mac80211/debugfs_netdev.c #define DEBUGFS_ADD_MODE(name, mode) \ mode 651 net/mac80211/debugfs_netdev.c debugfs_create_file(#name, mode, sdata->vif.debugfs_dir, \ mode 272 net/mac80211/driver-ops.c int n_vifs, enum ieee80211_chanctx_switch_mode mode) mode 293 net/mac80211/driver-ops.c WARN_ON_ONCE((mode == CHANCTX_SWMODE_SWAP_CONTEXTS && mode 295 net/mac80211/driver-ops.c (mode == CHANCTX_SWMODE_REASSIGN_VIF && mode 299 net/mac80211/driver-ops.c trace_drv_switch_vif_chanctx(local, vifs, n_vifs, mode); mode 301 net/mac80211/driver-ops.c vifs, n_vifs, mode); mode 304 net/mac80211/driver-ops.c if (!ret && mode == CHANCTX_SWMODE_SWAP_CONTEXTS) { mode 943 net/mac80211/driver-ops.h int n_vifs, enum ieee80211_chanctx_switch_mode mode); mode 895 net/mac80211/ibss.c params.block_tx = !!csa_ie.mode; mode 811 net/mac80211/ieee80211_i.h enum ieee80211_chanctx_mode mode; mode 1449 net/mac80211/ieee80211_i.h u8 mode; mode 2176 net/mac80211/ieee80211_i.h enum ieee80211_chanctx_mode mode); mode 2180 net/mac80211/ieee80211_i.h enum ieee80211_chanctx_mode mode, mode 1131 net/mac80211/mesh.c params.block_tx = csa_ie.mode & WLAN_EID_CHAN_SWITCH_PARAM_TX_RESTRICT; mode 1314 net/mac80211/mlme.c ch_switch.block_tx = csa_ie.mode; mode 1352 net/mac80211/mlme.c (!csa_ie.mode || !beacon)) { mode 1396 net/mac80211/mlme.c chanctx->mode, false); mode 1407 net/mac80211/mlme.c sdata->csa_block_tx = csa_ie.mode; mode 1441 net/mac80211/mlme.c sdata->csa_block_tx = csa_ie.mode; mode 61 net/mac80211/spectmgmt.c csa_ie->mode = elems->ext_chansw_ie->mode; mode 65 net/mac80211/spectmgmt.c csa_ie->mode = elems->ch_switch_ie->mode; mode 74 net/mac80211/spectmgmt.c csa_ie->mode = elems->mesh_chansw_params_ie->mesh_flags; mode 221 net/mac80211/spectmgmt.c msr_report->u.action.u.measurement.msr_elem.mode |= mode 1566 net/mac80211/trace.h int n_vifs, enum ieee80211_chanctx_switch_mode mode), mode 1567 net/mac80211/trace.h TP_ARGS(local, vifs, n_vifs, mode), mode 1572 net/mac80211/trace.h __field(u32, mode) mode 1580 net/mac80211/trace.h __entry->mode = mode; mode 1620 net/mac80211/trace.h LOCAL_PR_ARG, __entry->n_vifs, __entry->mode mode 3894 net/mac80211/util.c if (ctx->mode == IEEE80211_CHANCTX_EXCLUSIVE) { mode 245 net/mac802154/cfg.c bool mode) mode 249 net/mac802154/cfg.c wpan_dev->lbt = mode; mode 106 net/mac802154/driver-ops.h static inline int drv_set_lbt_mode(struct ieee802154_local *local, bool mode) mode 117 net/mac802154/driver-ops.h trace_802154_drv_set_lbt_mode(local, mode); mode 118 net/mac802154/driver-ops.h ret = local->ops->set_lbt(&local->hw, mode); mode 352 net/mac802154/iface.c hdr->sec.key_id_mode = params.out_key.mode; mode 353 net/mac802154/iface.c if (params.out_key.mode == IEEE802154_SCF_KEY_SHORT_INDEX) mode 355 net/mac802154/iface.c else if (params.out_key.mode == IEEE802154_SCF_KEY_HW_INDEX) mode 390 net/mac802154/iface.c hdr.source.mode = IEEE802154_ADDR_LONG; mode 393 net/mac802154/iface.c hdr.source.mode = IEEE802154_ADDR_SHORT; mode 455 net/mac802154/iface.c hdr.dest.mode = IEEE802154_ADDR_LONG; mode 459 net/mac802154/iface.c hdr.source.mode = IEEE802154_ADDR_LONG; mode 489 net/mac802154/iface.c if (hdr.source.mode == IEEE802154_ADDR_LONG) { mode 191 net/mac802154/llsec.c if (a->mode != b->mode) mode 194 net/mac802154/llsec.c if (a->mode == IEEE802154_SCF_KEY_IMPLICIT) mode 200 net/mac802154/llsec.c switch (a->mode) { mode 532 net/mac802154/llsec.c addr->mode = IEEE802154_ADDR_LONG; mode 535 net/mac802154/llsec.c addr->mode = IEEE802154_ADDR_SHORT; mode 553 net/mac802154/llsec.c devaddr.mode == IEEE802154_ADDR_NONE) { mode 556 net/mac802154/llsec.c devaddr.mode = IEEE802154_ADDR_LONG; mode 568 net/mac802154/llsec.c if (id->mode != key_id_mode) mode 780 net/mac802154/llsec.c if (devaddr.mode == IEEE802154_ADDR_NONE && mode 784 net/mac802154/llsec.c if (devaddr.mode == IEEE802154_ADDR_SHORT) { mode 36 net/mac802154/mac_cmd.c BUG_ON(addr->mode != IEEE802154_ADDR_SHORT); mode 45 net/mac802154/rx.c switch (mac_cb(skb)->dest.mode) { mode 47 net/mac802154/rx.c if (mac_cb(skb)->dest.mode != IEEE802154_ADDR_NONE) mode 117 net/mac802154/rx.c if (addr->mode == IEEE802154_ADDR_NONE) mode 121 net/mac802154/rx.c if (addr->mode == IEEE802154_ADDR_SHORT) { mode 26 net/mac802154/trace.h (__entry->cca_mode) = cca->mode; \ mode 142 net/mac802154/trace.h TP_PROTO(struct ieee802154_local *local, bool mode), mode 143 net/mac802154/trace.h TP_ARGS(local, mode), mode 146 net/mac802154/trace.h __field(bool, mode) mode 150 net/mac802154/trace.h __entry->mode = mode; mode 153 net/mac802154/trace.h BOOL_TO_STR(__entry->mode)) mode 1391 net/mpls/af_mpls.c .mode = 0644, mode 2606 net/mpls/af_mpls.c .mode = table->mode, mode 2627 net/mpls/af_mpls.c .mode = 0644, mode 2634 net/mpls/af_mpls.c .mode = 0644, mode 2643 net/mpls/af_mpls.c .mode = 0644, mode 114 net/ncsi/ncsi-cmd.c cmd->mode = htonl(nca->dwords[1]); mode 126 net/ncsi/ncsi-cmd.c cmd->mode = htonl(nca->dwords[0]); mode 153 net/ncsi/ncsi-cmd.c cmd->mode = nca->bytes[3]; mode 181 net/ncsi/ncsi-cmd.c cmd->mode = htonl(nca->dwords[0]); mode 193 net/ncsi/ncsi-cmd.c cmd->mode = htonl(nca->dwords[0]); mode 205 net/ncsi/ncsi-cmd.c cmd->mode = nca->bytes[0]; mode 80 net/ncsi/ncsi-pkt.h __be32 mode; /* AEN working mode */ mode 88 net/ncsi/ncsi-pkt.h __be32 mode; /* Link working mode */ mode 110 net/ncsi/ncsi-pkt.h unsigned char mode; /* VLAN filter mode */ mode 128 net/ncsi/ncsi-pkt.h __be32 mode; /* Filter mode */ mode 136 net/ncsi/ncsi-pkt.h __be32 mode; /* Global MC mode */ mode 145 net/ncsi/ncsi-pkt.h unsigned char mode; /* Flow control mode */ mode 287 net/ncsi/ncsi-rsp.c ncm->data[1] = ntohl(cmd->mode); mode 309 net/ncsi/ncsi-rsp.c ncm->data[0] = ntohl(cmd->mode); mode 406 net/ncsi/ncsi-rsp.c ncm->data[0] = ntohl(cmd->mode); mode 503 net/ncsi/ncsi-rsp.c ncm->data[0] = ntohl(cmd->mode); mode 556 net/ncsi/ncsi-rsp.c ncm->data[0] = ntohl(cmd->mode); mode 609 net/ncsi/ncsi-rsp.c ncm->data[0] = cmd->mode; mode 119 net/netfilter/ipset/ip_set_bitmap_ipmac.c struct bitmap_ipmac *map, int mode) mode 123 net/netfilter/ipset/ip_set_bitmap_ipmac.c if (mode == IPSET_ADD_START_STORED_TIMEOUT) { mode 1743 net/netfilter/ipvs/ip_vs_ctl.c .mode = table->mode, mode 1768 net/netfilter/ipvs/ip_vs_ctl.c .mode = table->mode, mode 1794 net/netfilter/ipvs/ip_vs_ctl.c .mode = table->mode, mode 1817 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1823 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1829 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1835 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1842 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1849 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1855 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1861 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1869 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1875 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1881 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1887 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1893 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1899 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1905 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1911 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1917 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1924 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1930 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1936 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1944 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1950 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1956 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1962 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1968 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1974 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 1982 net/netfilter/ipvs/ip_vs_ctl.c .mode = 0644, mode 98 net/netfilter/ipvs/ip_vs_ftp.c char skip, bool ext, int mode, mode 176 net/netfilter/ipvs/ip_vs_ftp.c if (mode != IP_VS_FTP_EPSV) mode 123 net/netfilter/ipvs/ip_vs_lblc.c .mode = 0644, mode 294 net/netfilter/ipvs/ip_vs_lblcr.c .mode = 0644, mode 1279 net/netfilter/ipvs/ip_vs_sync.c static void set_sock_size(struct sock *sk, int mode, int val) mode 1284 net/netfilter/ipvs/ip_vs_sync.c if (mode) { mode 607 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 614 net/netfilter/nf_conntrack_standalone.c .mode = 0444, mode 621 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 628 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 637 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 646 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 653 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 662 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 672 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 683 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 692 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 698 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 704 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 710 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 716 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 722 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 728 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 734 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 740 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 746 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 752 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 758 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 766 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 774 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 780 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 786 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 792 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 798 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 805 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 811 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 817 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 823 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 829 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 835 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 841 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 847 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 853 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 861 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 867 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 873 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 879 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 885 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 891 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 897 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 903 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 913 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 919 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 931 net/netfilter/nf_conntrack_standalone.c .mode = 0644, mode 1071 net/netfilter/nf_conntrack_standalone.c table[NF_SYSCTL_CT_BUCKETS].mode = 0444; mode 410 net/netfilter/nf_log.c .mode = 0644, mode 485 net/netfilter/nf_log.c nf_log_sysctl_table[i].mode = 0644; mode 244 net/netfilter/nfnetlink_log.c nfulnl_set_mode(struct nfulnl_instance *inst, u_int8_t mode, mode 251 net/netfilter/nfnetlink_log.c switch (mode) { mode 254 net/netfilter/nfnetlink_log.c inst->copy_mode = mode; mode 259 net/netfilter/nfnetlink_log.c inst->copy_mode = mode; mode 871 net/netfilter/nfnetlink_queue.c unsigned char mode, unsigned int range) mode 876 net/netfilter/nfnetlink_queue.c switch (mode) { mode 879 net/netfilter/nfnetlink_queue.c queue->copy_mode = mode; mode 884 net/netfilter/nfnetlink_queue.c queue->copy_mode = mode; mode 18 net/netfilter/nft_tunnel.c enum nft_tunnel_mode mode:8; mode 37 net/netfilter/nft_tunnel.c if (priv->mode == NFT_TUNNEL_MODE_NONE || mode 38 net/netfilter/nft_tunnel.c (priv->mode == NFT_TUNNEL_MODE_RX && mode 39 net/netfilter/nft_tunnel.c !(tun_info->mode & IP_TUNNEL_INFO_TX)) || mode 40 net/netfilter/nft_tunnel.c (priv->mode == NFT_TUNNEL_MODE_TX && mode 41 net/netfilter/nft_tunnel.c (tun_info->mode & IP_TUNNEL_INFO_TX))) mode 51 net/netfilter/nft_tunnel.c if (priv->mode == NFT_TUNNEL_MODE_NONE || mode 52 net/netfilter/nft_tunnel.c (priv->mode == NFT_TUNNEL_MODE_RX && mode 53 net/netfilter/nft_tunnel.c !(tun_info->mode & IP_TUNNEL_INFO_TX)) || mode 54 net/netfilter/nft_tunnel.c (priv->mode == NFT_TUNNEL_MODE_TX && mode 55 net/netfilter/nft_tunnel.c (tun_info->mode & IP_TUNNEL_INFO_TX))) mode 98 net/netfilter/nft_tunnel.c priv->mode = ntohl(nla_get_be32(tb[NFTA_TUNNEL_MODE])); mode 99 net/netfilter/nft_tunnel.c if (priv->mode > NFT_TUNNEL_MODE_MAX) mode 102 net/netfilter/nft_tunnel.c priv->mode = NFT_TUNNEL_MODE_NONE; mode 118 net/netfilter/nft_tunnel.c if (nla_put_be32(skb, NFTA_TUNNEL_MODE, htonl(priv->mode))) mode 219 net/netfilter/nft_tunnel.c info->mode |= IP_TUNNEL_INFO_IPV6; mode 360 net/netfilter/nft_tunnel.c info.mode = IP_TUNNEL_INFO_TX; mode 446 net/netfilter/nft_tunnel.c if (info->mode & IP_TUNNEL_INFO_IPV6) { mode 97 net/netfilter/nft_xfrm.c static bool xfrm_state_addr_ok(enum nft_xfrm_keys k, u8 family, u8 mode) mode 114 net/netfilter/nft_xfrm.c return mode == XFRM_MODE_BEET || mode == XFRM_MODE_TUNNEL; mode 125 net/netfilter/nft_xfrm.c state->props.mode)) { mode 67 net/netfilter/xt_CONNSECMARK.c switch (info->mode) { mode 95 net/netfilter/xt_CONNSECMARK.c switch (info->mode) { mode 101 net/netfilter/xt_CONNSECMARK.c pr_info_ratelimited("invalid mode: %hu\n", info->mode); mode 37 net/netfilter/xt_HL.c switch (info->mode) { mode 77 net/netfilter/xt_HL.c switch (info->mode) { mode 105 net/netfilter/xt_HL.c if (info->mode > IPT_TTL_MAXMODE) mode 107 net/netfilter/xt_HL.c if (info->mode != IPT_TTL_SET && info->ttl == 0) mode 116 net/netfilter/xt_HL.c if (info->mode > IP6T_HL_MAXMODE) mode 118 net/netfilter/xt_HL.c if (info->mode != IP6T_HL_SET && info->hop_limit == 0) mode 134 net/netfilter/xt_IDLETIMER.c info->timer->attr.attr.mode = 0444; mode 26 net/netfilter/xt_SECMARK.c static u8 mode; mode 34 net/netfilter/xt_SECMARK.c switch (mode) { mode 90 net/netfilter/xt_SECMARK.c if (mode && mode != info->mode) { mode 92 net/netfilter/xt_SECMARK.c mode, info->mode); mode 96 net/netfilter/xt_SECMARK.c switch (info->mode) { mode 100 net/netfilter/xt_SECMARK.c pr_info_ratelimited("invalid mode: %hu\n", info->mode); mode 108 net/netfilter/xt_SECMARK.c if (!mode) mode 109 net/netfilter/xt_SECMARK.c mode = info->mode; mode 115 net/netfilter/xt_SECMARK.c switch (mode) { mode 77 net/netfilter/xt_bpf.c if (info->mode == XT_BPF_MODE_BYTECODE) mode 81 net/netfilter/xt_bpf.c else if (info->mode == XT_BPF_MODE_FD_ELF) mode 83 net/netfilter/xt_bpf.c else if (info->mode == XT_BPF_MODE_PATH_PINNED) mode 38 net/netfilter/xt_connmark.c switch (info->mode) { mode 88 net/netfilter/xt_connmark.c .mode = info->mode, mode 144 net/netfilter/xt_hashlimit.c to->mode = cfg->mode; mode 156 net/netfilter/xt_hashlimit.c to->mode = cfg->mode; mode 530 net/netfilter/xt_hashlimit.c u32 mode, int revision) mode 538 net/netfilter/xt_hashlimit.c if (revision >= 3 && mode & XT_HASHLIMIT_RATE_MATCH) { mode 555 net/netfilter/xt_hashlimit.c if (mode & XT_HASHLIMIT_BYTES) { mode 577 net/netfilter/xt_hashlimit.c if (revision >= 3 && hinfo->cfg.mode & XT_HASHLIMIT_RATE_MATCH) { mode 580 net/netfilter/xt_hashlimit.c if (hinfo->cfg.mode & XT_HASHLIMIT_BYTES) { mode 594 net/netfilter/xt_hashlimit.c } else if (hinfo->cfg.mode & XT_HASHLIMIT_BYTES) { mode 649 net/netfilter/xt_hashlimit.c if (hinfo->cfg.mode & XT_HASHLIMIT_HASH_DIP) mode 652 net/netfilter/xt_hashlimit.c if (hinfo->cfg.mode & XT_HASHLIMIT_HASH_SIP) mode 656 net/netfilter/xt_hashlimit.c if (!(hinfo->cfg.mode & mode 666 net/netfilter/xt_hashlimit.c if (hinfo->cfg.mode & XT_HASHLIMIT_HASH_DIP) { mode 671 net/netfilter/xt_hashlimit.c if (hinfo->cfg.mode & XT_HASHLIMIT_HASH_SIP) { mode 677 net/netfilter/xt_hashlimit.c if (!(hinfo->cfg.mode & mode 702 net/netfilter/xt_hashlimit.c if (hinfo->cfg.mode & XT_HASHLIMIT_HASH_SPT) mode 704 net/netfilter/xt_hashlimit.c if (hinfo->cfg.mode & XT_HASHLIMIT_HASH_DPT) mode 748 net/netfilter/xt_hashlimit.c rateinfo_recalc(dh, now, hinfo->cfg.mode, revision); mode 756 net/netfilter/xt_hashlimit.c rateinfo_recalc(dh, now, hinfo->cfg.mode, revision); mode 759 net/netfilter/xt_hashlimit.c if (cfg->mode & XT_HASHLIMIT_RATE_MATCH) { mode 760 net/netfilter/xt_hashlimit.c cost = (cfg->mode & XT_HASHLIMIT_BYTES) ? skb->len : 1; mode 767 net/netfilter/xt_hashlimit.c return !(cfg->mode & XT_HASHLIMIT_INVERT); mode 773 net/netfilter/xt_hashlimit.c if (cfg->mode & XT_HASHLIMIT_BYTES) mode 783 net/netfilter/xt_hashlimit.c return !(cfg->mode & XT_HASHLIMIT_INVERT); mode 790 net/netfilter/xt_hashlimit.c return cfg->mode & XT_HASHLIMIT_INVERT; mode 864 net/netfilter/xt_hashlimit.c if (cfg->mode & ~XT_HASHLIMIT_ALL) { mode 866 net/netfilter/xt_hashlimit.c cfg->mode); mode 871 net/netfilter/xt_hashlimit.c if (revision >= 3 && cfg->mode & XT_HASHLIMIT_RATE_MATCH) { mode 881 net/netfilter/xt_hashlimit.c } else if (cfg->mode & XT_HASHLIMIT_BYTES) { mode 1132 net/netfilter/xt_hashlimit.c rateinfo_recalc(ent, jiffies, ht->cfg.mode, 2); mode 1147 net/netfilter/xt_hashlimit.c rateinfo_recalc(ent, jiffies, ht->cfg.mode, 1); mode 1162 net/netfilter/xt_hashlimit.c rateinfo_recalc(ent, jiffies, ht->cfg.mode, 3); mode 30 net/netfilter/xt_hl.c switch (info->mode) { mode 49 net/netfilter/xt_hl.c switch (info->mode) { mode 46 net/netfilter/xt_policy.c MATCH(mode, x->props.mode) && mode 47 net/netfilter/xt_rateest.c switch (info->mode) { mode 85 net/netfilter/xt_rateest.c switch (info->mode) { mode 35 net/netfilter/xt_statistic.c switch (info->mode) { mode 57 net/netfilter/xt_statistic.c if (info->mode > XT_STATISTIC_MODE_MAX || mode 39 net/netrom/sysctl_net_netrom.c .mode = 0644, mode 48 net/netrom/sysctl_net_netrom.c .mode = 0644, mode 57 net/netrom/sysctl_net_netrom.c .mode = 0644, mode 66 net/netrom/sysctl_net_netrom.c .mode = 0644, mode 75 net/netrom/sysctl_net_netrom.c .mode = 0644, mode 84 net/netrom/sysctl_net_netrom.c .mode = 0644, mode 93 net/netrom/sysctl_net_netrom.c .mode = 0644, mode 102 net/netrom/sysctl_net_netrom.c .mode = 0644, mode 111 net/netrom/sysctl_net_netrom.c .mode = 0644, mode 120 net/netrom/sysctl_net_netrom.c .mode = 0644, mode 129 net/netrom/sysctl_net_netrom.c .mode = 0644, mode 138 net/netrom/sysctl_net_netrom.c .mode = 0644, mode 440 net/nfc/core.c int nfc_deactivate_target(struct nfc_dev *dev, u32 target_idx, u8 mode) mode 467 net/nfc/core.c dev->ops->deactivate_target(dev, dev->active_target, mode); mode 635 net/nfc/digital_core.c u8 mode) mode 693 net/nfc/hci/core.c u8 mode) mode 186 net/nfc/nci/core.c cfg[*num].mode = NCI_DISC_MAP_MODE_POLL | mode 193 net/nfc/nci/core.c cfg[*num].mode = NCI_DISC_MAP_MODE_POLL | mode 915 net/nfc/nci/core.c __u8 mode) mode 929 net/nfc/nci/core.c switch (mode) { mode 142 net/nfc/nfc.h int nfc_deactivate_target(struct nfc_dev *dev, u32 target_idx, u8 mode); mode 860 net/openvswitch/flow_netlink.c unsigned short tun_proto, u8 mode) mode 867 net/openvswitch/flow_netlink.c if (mode & IP_TUNNEL_INFO_BRIDGE) mode 933 net/openvswitch/flow_netlink.c unsigned short tun_proto, u8 mode) mode 943 net/openvswitch/flow_netlink.c tun_proto, mode); mode 957 net/openvswitch/flow_netlink.c ip_tunnel_info_af(tun_info), tun_info->mode); mode 2618 net/openvswitch/flow_netlink.c tun_info->mode = IP_TUNNEL_INFO_TX; mode 2620 net/openvswitch/flow_netlink.c tun_info->mode |= IP_TUNNEL_INFO_IPV6; mode 2622 net/openvswitch/flow_netlink.c tun_info->mode |= IP_TUNNEL_INFO_BRIDGE; mode 3385 net/openvswitch/flow_netlink.c ip_tunnel_info_af(tun_info), tun_info->mode); mode 60 net/phonet/sysctl.c .mode = table->mode, mode 82 net/phonet/sysctl.c .mode = 0644, mode 69 net/rds/ib_sysctl.c .mode = 0644, mode 78 net/rds/ib_sysctl.c .mode = 0644, mode 87 net/rds/ib_sysctl.c .mode = 0644, mode 96 net/rds/ib_sysctl.c .mode = 0644, mode 103 net/rds/ib_sysctl.c .mode = 0644, mode 57 net/rds/sysctl.c .mode = 0644, mode 66 net/rds/sysctl.c .mode = 0644, mode 75 net/rds/sysctl.c .mode = 0644, mode 82 net/rds/sysctl.c .mode = 0644, mode 89 net/rds/sysctl.c .mode = 0644, mode 77 net/rds/tcp.c .mode = 0644, mode 86 net/rds/tcp.c .mode = 0644, mode 29 net/rose/sysctl_net_rose.c .mode = 0644, mode 38 net/rose/sysctl_net_rose.c .mode = 0644, mode 47 net/rose/sysctl_net_rose.c .mode = 0644, mode 56 net/rose/sysctl_net_rose.c .mode = 0644, mode 65 net/rose/sysctl_net_rose.c .mode = 0644, mode 74 net/rose/sysctl_net_rose.c .mode = 0644, mode 83 net/rose/sysctl_net_rose.c .mode = 0644, mode 92 net/rose/sysctl_net_rose.c .mode = 0644, mode 101 net/rose/sysctl_net_rose.c .mode = 0644, mode 110 net/rose/sysctl_net_rose.c .mode = 0644, mode 701 net/rxrpc/ar-internal.h enum rxrpc_congest_mode mode:8; mode 69 net/rxrpc/input.c summary->mode = call->cong_mode; mode 33 net/rxrpc/sysctl.c .mode = 0644, mode 42 net/rxrpc/sysctl.c .mode = 0644, mode 51 net/rxrpc/sysctl.c .mode = 0644, mode 60 net/rxrpc/sysctl.c .mode = 0644, mode 69 net/rxrpc/sysctl.c .mode = 0644, mode 80 net/rxrpc/sysctl.c .mode = 0644, mode 88 net/rxrpc/sysctl.c .mode = 0644, mode 97 net/rxrpc/sysctl.c .mode = 0644, mode 106 net/rxrpc/sysctl.c .mode = 0644, mode 115 net/rxrpc/sysctl.c .mode = 0644, mode 124 net/rxrpc/sysctl.c .mode = 0644, mode 130 net/sched/act_ctinfo.c if (cp->mode & CTINFO_MODE_DSCP) mode 134 net/sched/act_ctinfo.c if (cp->mode & CTINFO_MODE_CPMARK) mode 249 net/sched/act_ctinfo.c cp_new->mode |= CTINFO_MODE_DSCP; mode 255 net/sched/act_ctinfo.c cp_new->mode |= CTINFO_MODE_CPMARK; mode 310 net/sched/act_ctinfo.c if (cp->mode & CTINFO_MODE_DSCP) { mode 319 net/sched/act_ctinfo.c if (cp->mode & CTINFO_MODE_CPMARK) { mode 345 net/sched/act_tunnel_key.c metadata->u.tun_info.mode |= IP_TUNNEL_INFO_TX; mode 48 net/sched/cls_flow.c u32 mode; mode 322 net/sched/cls_flow.c if (f->mode == FLOW_MODE_HASH) mode 401 net/sched/cls_flow.c u32 mode; mode 461 net/sched/cls_flow.c fnew->mode = fold->mode; mode 470 net/sched/cls_flow.c mode = fold->mode; mode 472 net/sched/cls_flow.c mode = nla_get_u32(tb[TCA_FLOW_MODE]); mode 473 net/sched/cls_flow.c if (mode != FLOW_MODE_HASH && nkeys > 1) mode 476 net/sched/cls_flow.c if (mode == FLOW_MODE_HASH) mode 479 net/sched/cls_flow.c if (mode != FLOW_MODE_HASH) mode 490 net/sched/cls_flow.c mode = FLOW_MODE_MAP; mode 492 net/sched/cls_flow.c mode = nla_get_u32(tb[TCA_FLOW_MODE]); mode 493 net/sched/cls_flow.c if (mode != FLOW_MODE_HASH && nkeys > 1) mode 497 net/sched/cls_flow.c if (mode != FLOW_MODE_HASH) mode 525 net/sched/cls_flow.c fnew->mode = mode; mode 634 net/sched/cls_flow.c nla_put_u32(skb, TCA_FLOW_MODE, f->mode)) mode 22 net/sched/sch_mqprio.c u16 mode; mode 47 net/sched/sch_mqprio.c switch (priv->mode) { mode 179 net/sched/sch_mqprio.c priv->mode = *(u16 *)nla_data(tb[TCA_MQPRIO_MODE]); mode 246 net/sched/sch_mqprio.c switch (priv->mode) { mode 254 net/sched/sch_mqprio.c mqprio.mode = priv->mode; mode 441 net/sched/sch_mqprio.c nla_put_u16(skb, TCA_MQPRIO_MODE, priv->mode)) mode 64 net/sctp/sysctl.c .mode = 0644, mode 71 net/sctp/sysctl.c .mode = 0644, mode 78 net/sctp/sysctl.c .mode = 0644, mode 90 net/sctp/sysctl.c .mode = 0644, mode 99 net/sctp/sysctl.c .mode = 0644, mode 108 net/sctp/sysctl.c .mode = 0644, mode 117 net/sctp/sysctl.c .mode = 0644, mode 126 net/sctp/sysctl.c .mode = 0644, mode 135 net/sctp/sysctl.c .mode = 0644, mode 144 net/sctp/sysctl.c .mode = 0644, mode 151 net/sctp/sysctl.c .mode = 0644, mode 158 net/sctp/sysctl.c .mode = 0644, mode 167 net/sctp/sysctl.c .mode = 0644, mode 176 net/sctp/sysctl.c .mode = 0644, mode 185 net/sctp/sysctl.c .mode = 0644, mode 194 net/sctp/sysctl.c .mode = 0644, mode 203 net/sctp/sysctl.c .mode = 0644, mode 212 net/sctp/sysctl.c .mode = 0644, mode 221 net/sctp/sysctl.c .mode = 0644, mode 228 net/sctp/sysctl.c .mode = 0644, mode 235 net/sctp/sysctl.c .mode = 0644, mode 242 net/sctp/sysctl.c .mode = 0644, mode 249 net/sctp/sysctl.c .mode = 0644, mode 256 net/sctp/sysctl.c .mode = 0644, mode 263 net/sctp/sysctl.c .mode = 0644, mode 270 net/sctp/sysctl.c .mode = 0644, mode 277 net/sctp/sysctl.c .mode = 0644, mode 284 net/sctp/sysctl.c .mode = 0644, mode 291 net/sctp/sysctl.c .mode = 0644, mode 300 net/sctp/sysctl.c .mode = 0644, mode 309 net/sctp/sysctl.c .mode = 0644, mode 318 net/sctp/sysctl.c .mode = 0644, mode 464 net/sunrpc/rpc_pipe.c umode_t mode; mode 468 net/sunrpc/rpc_pipe.c rpc_get_inode(struct super_block *sb, umode_t mode) mode 474 net/sunrpc/rpc_pipe.c inode->i_mode = mode; mode 476 net/sunrpc/rpc_pipe.c switch (mode & S_IFMT) { mode 488 net/sunrpc/rpc_pipe.c umode_t mode, mode 495 net/sunrpc/rpc_pipe.c inode = rpc_get_inode(dir->i_sb, mode); mode 513 net/sunrpc/rpc_pipe.c umode_t mode, mode 519 net/sunrpc/rpc_pipe.c err = __rpc_create_common(dir, dentry, S_IFREG | mode, i_fop, private); mode 527 net/sunrpc/rpc_pipe.c umode_t mode, mode 533 net/sunrpc/rpc_pipe.c err = __rpc_create_common(dir, dentry, S_IFDIR | mode, i_fop, private); mode 578 net/sunrpc/rpc_pipe.c umode_t mode, mode 586 net/sunrpc/rpc_pipe.c err = __rpc_create_common(dir, dentry, S_IFIFO | mode, i_fop, private); mode 707 net/sunrpc/rpc_pipe.c switch (files[i].mode & S_IFMT) { mode 712 net/sunrpc/rpc_pipe.c files[i].mode, mode 718 net/sunrpc/rpc_pipe.c files[i].mode, mode 736 net/sunrpc/rpc_pipe.c const char *name, umode_t mode, void *private, mode 747 net/sunrpc/rpc_pipe.c error = __rpc_mkdir(dir, dentry, mode, NULL, private); mode 1021 net/sunrpc/rpc_pipe.c .mode = S_IFREG | 0400, mode 1082 net/sunrpc/rpc_pipe.c .mode = S_IFREG | 0600, mode 1087 net/sunrpc/rpc_pipe.c .mode = S_IFREG | 0400, mode 1092 net/sunrpc/rpc_pipe.c .mode = S_IFREG | 0600, mode 1150 net/sunrpc/rpc_pipe.c .mode = S_IFDIR | 0555, mode 1154 net/sunrpc/rpc_pipe.c .mode = S_IFDIR | 0555, mode 1158 net/sunrpc/rpc_pipe.c .mode = S_IFDIR | 0555, mode 1162 net/sunrpc/rpc_pipe.c .mode = S_IFDIR | 0555, mode 1166 net/sunrpc/rpc_pipe.c .mode = S_IFDIR | 0555, mode 1170 net/sunrpc/rpc_pipe.c .mode = S_IFDIR | 0555, mode 1174 net/sunrpc/rpc_pipe.c .mode = S_IFDIR | 0555, mode 1178 net/sunrpc/rpc_pipe.c .mode = S_IFDIR | 0555, mode 1182 net/sunrpc/rpc_pipe.c .mode = S_IFDIR | 0555, mode 1247 net/sunrpc/rpc_pipe.c .mode = S_IFDIR | 0555, mode 1283 net/sunrpc/rpc_pipe.c .mode = S_IFREG | 0400, mode 286 net/sunrpc/sched.c static int rpc_wait_bit_killable(struct wait_bit_key *key, int mode) mode 289 net/sunrpc/sched.c if (signal_pending_state(mode, current)) mode 47 net/sunrpc/svc.c .mode = SVC_POOL_DEFAULT mode 104 net/sunrpc/svc.c &svc_pool_map.mode, 0644); mode 236 net/sunrpc/svc.c if (m->mode == SVC_POOL_AUTO) mode 237 net/sunrpc/svc.c m->mode = svc_pool_map_choose_mode(); mode 239 net/sunrpc/svc.c switch (m->mode) { mode 251 net/sunrpc/svc.c m->mode = SVC_POOL_GLOBAL; mode 291 net/sunrpc/svc.c if (m->mode == SVC_POOL_PERCPU) mode 293 net/sunrpc/svc.c if (m->mode == SVC_POOL_PERNODE) mode 316 net/sunrpc/svc.c switch (m->mode) { mode 347 net/sunrpc/svc.c switch (m->mode) { mode 145 net/sunrpc/sysctl.c .mode = 0644, mode 152 net/sunrpc/sysctl.c .mode = 0644, mode 159 net/sunrpc/sysctl.c .mode = 0644, mode 166 net/sunrpc/sysctl.c .mode = 0644, mode 172 net/sunrpc/sysctl.c .mode = 0444, mode 181 net/sunrpc/sysctl.c .mode = 0555, mode 120 net/sunrpc/xprtrdma/svc_rdma.c .mode = 0644, mode 129 net/sunrpc/xprtrdma/svc_rdma.c .mode = 0644, mode 138 net/sunrpc/xprtrdma/svc_rdma.c .mode = 0644, mode 148 net/sunrpc/xprtrdma/svc_rdma.c .mode = 0644, mode 155 net/sunrpc/xprtrdma/svc_rdma.c .mode = 0644, mode 162 net/sunrpc/xprtrdma/svc_rdma.c .mode = 0644, mode 169 net/sunrpc/xprtrdma/svc_rdma.c .mode = 0644, mode 176 net/sunrpc/xprtrdma/svc_rdma.c .mode = 0644, mode 183 net/sunrpc/xprtrdma/svc_rdma.c .mode = 0644, mode 190 net/sunrpc/xprtrdma/svc_rdma.c .mode = 0644, mode 197 net/sunrpc/xprtrdma/svc_rdma.c .mode = 0644, mode 204 net/sunrpc/xprtrdma/svc_rdma.c .mode = 0644, mode 213 net/sunrpc/xprtrdma/svc_rdma.c .mode = 0555, mode 222 net/sunrpc/xprtrdma/svc_rdma.c .mode = 0555, mode 95 net/sunrpc/xprtrdma/transport.c .mode = 0644, mode 104 net/sunrpc/xprtrdma/transport.c .mode = 0644, mode 113 net/sunrpc/xprtrdma/transport.c .mode = 0644, mode 122 net/sunrpc/xprtrdma/transport.c .mode = 0644, mode 131 net/sunrpc/xprtrdma/transport.c .mode = 0644, mode 140 net/sunrpc/xprtrdma/transport.c .mode = 0644, mode 149 net/sunrpc/xprtrdma/transport.c .mode = 0555, mode 102 net/sunrpc/xprtsock.c .mode = 0644, mode 111 net/sunrpc/xprtsock.c .mode = 0644, mode 120 net/sunrpc/xprtsock.c .mode = 0644, mode 129 net/sunrpc/xprtsock.c .mode = 0644, mode 138 net/sunrpc/xprtsock.c .mode = 0644, mode 147 net/sunrpc/xprtsock.c .mode = 0644, mode 156 net/sunrpc/xprtsock.c .mode = 0555, mode 49 net/sysctl_net.c int mode = (table->mode >> 6) & 7; mode 50 net/sysctl_net.c return (mode << 6) | (mode << 3) | mode; mode 53 net/sysctl_net.c return table->mode; mode 48 net/tipc/sysctl.c .mode = 0644, mode 56 net/tipc/sysctl.c .mode = 0644, mode 64 net/tipc/sysctl.c .mode = 0644, mode 354 net/unix/af_unix.c static int unix_dgram_peer_wake_relay(wait_queue_entry_t *q, unsigned mode, int flags, mode 966 net/unix/af_unix.c static int unix_mknod(const char *sun_path, umode_t mode, struct path *res) mode 983 net/unix/af_unix.c err = security_path_mknod(&path, dentry, mode, 0); mode 985 net/unix/af_unix.c err = vfs_mknod(d_inode(path.dentry), dentry, mode, 0); mode 1024 net/unix/af_unix.c umode_t mode = S_IFSOCK | mode 1026 net/unix/af_unix.c err = unix_mknod(sun_path, mode, &path); mode 2457 net/unix/af_unix.c static int unix_shutdown(struct socket *sock, int mode) mode 2462 net/unix/af_unix.c if (mode < SHUT_RD || mode > SHUT_RDWR) mode 2469 net/unix/af_unix.c ++mode; mode 2472 net/unix/af_unix.c sk->sk_shutdown |= mode; mode 2484 net/unix/af_unix.c if (mode&RCV_SHUTDOWN) mode 2486 net/unix/af_unix.c if (mode&SEND_SHUTDOWN) mode 19 net/unix/sysctl_net_unix.c .mode = 0644, mode 419 net/vmw_vsock/af_vsock.c static int vsock_send_shutdown(struct sock *sk, int mode) mode 421 net/vmw_vsock/af_vsock.c return transport->shutdown(vsock_sk(sk), mode); mode 788 net/vmw_vsock/af_vsock.c static int vsock_shutdown(struct socket *sock, int mode) mode 799 net/vmw_vsock/af_vsock.c mode++; mode 801 net/vmw_vsock/af_vsock.c if ((mode & ~SHUTDOWN_MASK) || !mode) mode 821 net/vmw_vsock/af_vsock.c mode = mode & (RCV_SHUTDOWN | SEND_SHUTDOWN); mode 822 net/vmw_vsock/af_vsock.c if (mode) { mode 824 net/vmw_vsock/af_vsock.c sk->sk_shutdown |= mode; mode 830 net/vmw_vsock/af_vsock.c vsock_send_shutdown(sk, mode); mode 453 net/vmw_vsock/hyperv_transport.c static void hvs_shutdown_lock_held(struct hvsock *hvs, int mode) mode 465 net/vmw_vsock/hyperv_transport.c static int hvs_shutdown(struct vsock_sock *vsk, int mode) mode 469 net/vmw_vsock/hyperv_transport.c if (!(mode & SEND_SHUTDOWN)) mode 473 net/vmw_vsock/hyperv_transport.c hvs_shutdown_lock_held(vsk->trans, mode); mode 628 net/vmw_vsock/virtio_transport_common.c int virtio_transport_shutdown(struct vsock_sock *vsk, int mode) mode 633 net/vmw_vsock/virtio_transport_common.c .flags = (mode & RCV_SHUTDOWN ? mode 635 net/vmw_vsock/virtio_transport_common.c (mode & SEND_SHUTDOWN ? mode 123 net/vmw_vsock/vmci_transport.c u64 mode, mode 165 net/vmw_vsock/vmci_transport.c pkt->u.mode = mode; mode 196 net/vmw_vsock/vmci_transport.c u64 mode, mode 204 net/vmw_vsock/vmci_transport.c vmci_transport_packet_init(pkt, src, dst, type, size, mode, wait, mode 217 net/vmw_vsock/vmci_transport.c u64 mode, mode 230 net/vmw_vsock/vmci_transport.c size, mode, wait, mode 241 net/vmw_vsock/vmci_transport.c u64 mode, mode 253 net/vmw_vsock/vmci_transport.c size, mode, wait, mode 263 net/vmw_vsock/vmci_transport.c u64 mode, mode 276 net/vmw_vsock/vmci_transport.c mode, wait, proto, handle, mode 287 net/vmw_vsock/vmci_transport.c u64 mode, mode 304 net/vmw_vsock/vmci_transport.c type, size, mode, mode 456 net/vmw_vsock/vmci_transport.c static int vmci_transport_shutdown(struct vsock_sock *vsk, int mode) mode 461 net/vmw_vsock/vmci_transport.c 0, mode, NULL, mode 1534 net/vmw_vsock/vmci_transport.c if (pkt->u.mode) { mode 1537 net/vmw_vsock/vmci_transport.c vsk->peer_shutdown |= pkt->u.mode; mode 70 net/vmw_vsock/vmci_transport.h u64 mode; mode 1090 net/wireless/nl80211.c k->p.mode = nla_get_u8(tb[NL80211_KEY_MODE]); mode 3846 net/wireless/nl80211.c !(key.p.mode == NL80211_KEY_SET_TX)) mode 3892 net/wireless/nl80211.c } else if (key.p.mode == NL80211_KEY_SET_TX && mode 81 net/wireless/rdev-ops.h mac_addr, params->mode); mode 768 net/wireless/scan.c enum bss_compare_mode mode) mode 834 net/wireless/scan.c switch (mode) { mode 994 net/wireless/scan.c enum bss_compare_mode mode) mode 1002 net/wireless/scan.c r = cmp_bss(&res->pub, &bss->pub, mode); mode 2520 net/wireless/scan.c iwe.u.mode = IW_MODE_MESH; mode 2522 net/wireless/scan.c iwe.u.mode = IW_MODE_MASTER; mode 2524 net/wireless/scan.c iwe.u.mode = IW_MODE_ADHOC; mode 447 net/wireless/trace.h bool pairwise, const u8 *mac_addr, u8 mode), mode 448 net/wireless/trace.h TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr, mode), mode 455 net/wireless/trace.h __field(u8, mode) mode 463 net/wireless/trace.h __entry->mode = mode; mode 468 net/wireless/trace.h __entry->mode, BOOL_TO_STR(__entry->pairwise), mode 247 net/wireless/util.c params->mode != NL80211_KEY_RX_TX) mode 261 net/wireless/util.c if ((params->mode == NL80211_KEY_NO_TX && !pairwise) || mode 262 net/wireless/util.c params->mode == NL80211_KEY_SET_TX) mode 36 net/wireless/wext-compat.c u32 *mode, char *extra) mode 45 net/wireless/wext-compat.c switch (*mode) { mode 72 net/wireless/wext-compat.c u32 *mode, char *extra) mode 81 net/wireless/wext-compat.c *mode = IW_MODE_MASTER; mode 84 net/wireless/wext-compat.c *mode = IW_MODE_INFRA; mode 87 net/wireless/wext-compat.c *mode = IW_MODE_ADHOC; mode 90 net/wireless/wext-compat.c *mode = IW_MODE_MONITOR; mode 93 net/wireless/wext-compat.c *mode = IW_MODE_REPEAT; mode 96 net/wireless/wext-compat.c *mode = IW_MODE_SECOND; /* FIXME */ mode 99 net/wireless/wext-compat.c *mode = IW_MODE_AUTO; mode 26 net/x25/sysctl_net_x25.c .mode = 0644, mode 35 net/x25/sysctl_net_x25.c .mode = 0644, mode 44 net/x25/sysctl_net_x25.c .mode = 0644, mode 53 net/x25/sysctl_net_x25.c .mode = 0644, mode 62 net/x25/sysctl_net_x25.c .mode = 0644, mode 71 net/x25/sysctl_net_x25.c .mode = 0644, mode 2374 net/xfrm/xfrm_policy.c if (tmpl->mode == XFRM_MODE_TUNNEL || mode 2375 net/xfrm/xfrm_policy.c tmpl->mode == XFRM_MODE_BEET) { mode 2591 net/xfrm/xfrm_policy.c if (xfrm[i]->props.mode != XFRM_MODE_TRANSPORT) { mode 3142 net/xfrm/xfrm_policy.c dst->xfrm->props.mode == XFRM_MODE_TUNNEL) mode 3225 net/xfrm/xfrm_policy.c x->props.mode == tmpl->mode && mode 3228 net/xfrm/xfrm_policy.c !(x->props.mode != XFRM_MODE_TRANSPORT && mode 3246 net/xfrm/xfrm_policy.c if (tmpl->mode == XFRM_MODE_TRANSPORT) mode 3253 net/xfrm/xfrm_policy.c if (sp->xvec[idx]->props.mode != XFRM_MODE_TRANSPORT) { mode 3493 net/xfrm/xfrm_policy.c if (sp->xvec[k]->props.mode != XFRM_MODE_TRANSPORT) { mode 3873 net/xfrm/xfrm_policy.c if (xfrm->props.mode == XFRM_MODE_TRANSPORT) mode 4288 net/xfrm/xfrm_policy.c if (t->mode == m->mode && t->id.proto == m->proto && mode 4290 net/xfrm/xfrm_policy.c switch (t->mode) { mode 4332 net/xfrm/xfrm_policy.c if (pol->xfrm_vec[i].mode != XFRM_MODE_TUNNEL && mode 4333 net/xfrm/xfrm_policy.c pol->xfrm_vec[i].mode != XFRM_MODE_BEET) mode 4373 net/xfrm/xfrm_policy.c m[i].mode == m[j].mode && mode 451 net/xfrm/xfrm_state.c const struct xfrm_mode *mode; mode 458 net/xfrm/xfrm_state.c mode = &xfrm4_mode_map[encap]; mode 459 net/xfrm/xfrm_state.c if (mode->family == family) mode 460 net/xfrm/xfrm_state.c return mode; mode 463 net/xfrm/xfrm_state.c mode = &xfrm6_mode_map[encap]; mode 464 net/xfrm/xfrm_state.c if (mode->family == family) mode 465 net/xfrm/xfrm_state.c return mode; mode 922 net/xfrm/xfrm_state.c x->props.mode = tmpl->mode; mode 1069 net/xfrm/xfrm_state.c tmpl->mode == x->props.mode && mode 1086 net/xfrm/xfrm_state.c tmpl->mode == x->props.mode && mode 1185 net/xfrm/xfrm_state.c unsigned short family, u8 mode, u8 proto, u32 reqid) mode 1199 net/xfrm/xfrm_state.c mode == x->props.mode && mode 1305 net/xfrm/xfrm_state.c unsigned short family, u8 mode, mode 1317 net/xfrm/xfrm_state.c x->props.mode != mode || mode 1359 net/xfrm/xfrm_state.c x->props.mode = mode; mode 1417 net/xfrm/xfrm_state.c x1 = __find_acq_core(net, &x->mark, family, x->props.mode, mode 1452 net/xfrm/xfrm_state.c x->props.mode = orig->props.mode; mode 1546 net/xfrm/xfrm_state.c if (x->props.mode != m->mode || mode 1563 net/xfrm/xfrm_state.c if (x->props.mode != m->mode || mode 1755 net/xfrm/xfrm_state.c xfrm_find_acq(struct net *net, const struct xfrm_mark *mark, u8 mode, u32 reqid, mode 1762 net/xfrm/xfrm_state.c x = __find_acq_core(net, mark, family, mode, reqid, if_id, proto, daddr, saddr, create); mode 1808 net/xfrm/xfrm_state.c switch (v->props.mode) { mode 1837 net/xfrm/xfrm_state.c switch (v->mode) { mode 2423 net/xfrm/xfrm_state.c switch (x->props.mode) { mode 2457 net/xfrm/xfrm_state.c inner_mode = xfrm_get_mode(x->props.mode, x->sel.family); mode 2470 net/xfrm/xfrm_state.c inner_mode = xfrm_get_mode(x->props.mode, x->props.family); mode 2482 net/xfrm/xfrm_state.c inner_mode_iaf = xfrm_get_mode(x->props.mode, iafamily); mode 2499 net/xfrm/xfrm_state.c outer_mode = xfrm_get_mode(x->props.mode, family); mode 20 net/xfrm/xfrm_sysctl.c .mode = 0644, mode 26 net/xfrm/xfrm_sysctl.c .mode = 0644, mode 32 net/xfrm/xfrm_sysctl.c .mode = 0644, mode 38 net/xfrm/xfrm_sysctl.c .mode = 0644, mode 221 net/xfrm/xfrm_user.c p->mode != XFRM_MODE_TUNNEL) mode 272 net/xfrm/xfrm_user.c switch (p->mode) { mode 499 net/xfrm/xfrm_user.c x->props.mode = p->mode; mode 798 net/xfrm/xfrm_user.c p->mode = x->props.mode; mode 1343 net/xfrm/xfrm_user.c x = xfrm_find_acq(net, &m, p->info.mode, p->info.reqid, mode 1479 net/xfrm/xfrm_user.c t->mode = ut->mode; mode 1512 net/xfrm/xfrm_user.c switch (ut[i].mode) { mode 1521 net/xfrm/xfrm_user.c if (ut[i].mode >= XFRM_MODE_MAX) mode 1707 net/xfrm/xfrm_user.c up->mode = kp->mode; mode 2298 net/xfrm/xfrm_user.c x->props.mode = t->mode; mode 2351 net/xfrm/xfrm_user.c ma->mode = um->mode; mode 2418 net/xfrm/xfrm_user.c um.mode = m->mode; mode 142 samples/bpf/fds_example.c int opt, mode = BPF_M_UNSPEC; mode 158 samples/bpf/fds_example.c mode = BPF_M_MAP; mode 170 samples/bpf/fds_example.c mode = BPF_M_PROG; mode 183 samples/bpf/fds_example.c switch (mode) { mode 12 samples/bpf/syscall_tp_kern.c long mode; mode 151 samples/vfio-mdev/mbochs.c struct mbochs_mode mode; mode 248 samples/vfio-mdev/mbochs.c struct mbochs_mode *mode) mode 259 samples/vfio-mdev/mbochs.c memset(mode, 0, sizeof(*mode)); mode 262 samples/vfio-mdev/mbochs.c mode->drm_format = DRM_FORMAT_XRGB8888; mode 263 samples/vfio-mdev/mbochs.c mode->bytepp = 4; mode 271 samples/vfio-mdev/mbochs.c mode->width = vbe[VBE_DISPI_INDEX_XRES]; mode 272 samples/vfio-mdev/mbochs.c mode->height = vbe[VBE_DISPI_INDEX_YRES]; mode 274 samples/vfio-mdev/mbochs.c if (virt_width < mode->width) mode 275 samples/vfio-mdev/mbochs.c virt_width = mode->width; mode 276 samples/vfio-mdev/mbochs.c mode->stride = virt_width * mode->bytepp; mode 277 samples/vfio-mdev/mbochs.c mode->size = (u64)mode->stride * mode->height; mode 278 samples/vfio-mdev/mbochs.c mode->offset = ((u64)vbe[VBE_DISPI_INDEX_X_OFFSET] * mode->bytepp + mode 279 samples/vfio-mdev/mbochs.c (u64)vbe[VBE_DISPI_INDEX_Y_OFFSET] * mode->stride); mode 281 samples/vfio-mdev/mbochs.c if (mode->width < 64 || mode->height < 64) { mode 283 samples/vfio-mdev/mbochs.c __func__, mode->width, mode->height); mode 286 samples/vfio-mdev/mbochs.c if (mode->offset + mode->size > mdev_state->memsize) { mode 295 samples/vfio-mdev/mbochs.c memset(mode, 0, sizeof(*mode)); mode 822 samples/vfio-mdev/mbochs.c u32 fourcc = dmabuf->mode.drm_format; mode 830 samples/vfio-mdev/mbochs.c dmabuf->mode.width, dmabuf->mode.height, dmabuf->mode.stride, mode 831 samples/vfio-mdev/mbochs.c dmabuf->mode.offset, dmabuf->mode.size, dmabuf->pagecount); mode 847 samples/vfio-mdev/mbochs.c 0, dmabuf->mode.size, GFP_KERNEL) < 0) mode 918 samples/vfio-mdev/mbochs.c struct mbochs_mode *mode) mode 929 samples/vfio-mdev/mbochs.c dmabuf->mode = *mode; mode 931 samples/vfio-mdev/mbochs.c dmabuf->pagecount = DIV_ROUND_UP(mode->size, PAGE_SIZE); mode 937 samples/vfio-mdev/mbochs.c page_offset = dmabuf->mode.offset >> PAGE_SHIFT; mode 962 samples/vfio-mdev/mbochs.c struct mbochs_mode *mode) mode 969 samples/vfio-mdev/mbochs.c if (mbochs_modes_equal(&dmabuf->mode, mode)) mode 998 samples/vfio-mdev/mbochs.c if (!IS_ALIGNED(dmabuf->mode.offset, PAGE_SIZE)) { mode 1005 samples/vfio-mdev/mbochs.c exp_info.size = dmabuf->mode.size; mode 1098 samples/vfio-mdev/mbochs.c struct mbochs_mode mode; mode 1121 samples/vfio-mdev/mbochs.c ret = mbochs_check_framebuffer(mdev_state, &mode); mode 1132 samples/vfio-mdev/mbochs.c dmabuf = mbochs_dmabuf_find_by_mode(mdev_state, &mode); mode 1134 samples/vfio-mdev/mbochs.c mbochs_dmabuf_alloc(mdev_state, &mode); mode 1140 samples/vfio-mdev/mbochs.c plane->drm_format = dmabuf->mode.drm_format; mode 1141 samples/vfio-mdev/mbochs.c plane->width = dmabuf->mode.width; mode 1142 samples/vfio-mdev/mbochs.c plane->height = dmabuf->mode.height; mode 1143 samples/vfio-mdev/mbochs.c plane->stride = dmabuf->mode.stride; mode 1144 samples/vfio-mdev/mbochs.c plane->size = dmabuf->mode.size; mode 33 scripts/dtc/fdtget.c enum display_mode mode; /* display mode that we are using */ mode 198 scripts/dtc/fdtget.c switch (disp->mode) { mode 300 scripts/dtc/fdtget.c disp.mode = MODE_SHOW_VALUE; mode 318 scripts/dtc/fdtget.c disp.mode = MODE_LIST_PROPS; mode 323 scripts/dtc/fdtget.c disp.mode = MODE_LIST_SUBNODES; mode 33 scripts/dtc/include-prefixes/dt-bindings/pinctrl/stm32-pinfunc.h #define STM32_PINMUX(port, line, mode) (((PIN_NO(port, line)) << 8) | (mode)) mode 977 scripts/gcc-plugins/gcc-common.h #define SET_DECL_MODE(decl, mode) DECL_MODE(decl) = (mode) mode 1238 scripts/kconfig/confdata.c bool conf_set_all_new_symbols(enum conf_def_mode mode) mode 1249 scripts/kconfig/confdata.c if (mode == def_random) { mode 1295 scripts/kconfig/confdata.c switch (mode) { mode 1322 scripts/kconfig/confdata.c if (!(sym_is_choice(sym) && mode == def_random)) mode 1342 scripts/kconfig/confdata.c if (mode != def_random) { mode 1355 scripts/kconfig/confdata.c if (mode == def_random) mode 54 scripts/kconfig/lkc.h bool conf_set_all_new_symbols(enum conf_def_mode mode); mode 1005 scripts/kconfig/mconf.c char *mode; mode 1019 scripts/kconfig/mconf.c mode = getenv("MENUCONFIG_MODE"); mode 1020 scripts/kconfig/mconf.c if (mode) { mode 1021 scripts/kconfig/mconf.c if (!strcasecmp(mode, "single_menu")) mode 1477 scripts/kconfig/nconf.c char *mode; mode 1487 scripts/kconfig/nconf.c mode = getenv("NCONFIG_MODE"); mode 1488 scripts/kconfig/nconf.c if (mode) { mode 1489 scripts/kconfig/nconf.c if (!strcasecmp(mode, "single_menu")) mode 125 scripts/kconfig/qconf.cc if (list->mode == singleMode || list->mode == symbolMode) { mode 244 scripts/kconfig/qconf.cc if (list->mode != fullMode) mode 309 scripts/kconfig/qconf.cc showName(false), showRange(false), showData(false), mode(singleMode), optMode(normalOpt), mode 414 scripts/kconfig/qconf.cc if (mode == menuMode && type == P_MENU) mode 423 scripts/kconfig/qconf.cc if (mode != listMode) mode 439 scripts/kconfig/qconf.cc if (rootEntry != &rootmenu && (mode == singleMode || mode 440 scripts/kconfig/qconf.cc (mode == symbolMode && rootEntry->parent != &rootmenu))) { mode 446 scripts/kconfig/qconf.cc if ((mode == singleMode || (mode == symbolMode && !(rootEntry->flags & MENU_ROOT))) && mode 601 scripts/kconfig/qconf.cc switch (mode) { mode 623 scripts/kconfig/qconf.cc if (mode == fullMode || mode == menuMode || type != P_MENU) mode 666 scripts/kconfig/qconf.cc switch (mode) { mode 688 scripts/kconfig/qconf.cc if (mode == fullMode || mode == menuMode || type != P_MENU) mode 714 scripts/kconfig/qconf.cc if (ev->key() == Qt::Key_Escape && mode != fullMode && mode != listMode) { mode 738 scripts/kconfig/qconf.cc mode != fullMode && mode != menuMode) { mode 796 scripts/kconfig/qconf.cc mode != fullMode && mode != menuMode) mode 846 scripts/kconfig/qconf.cc if (ptype == P_MENU && (mode == singleMode || mode == symbolMode)) mode 1268 scripts/kconfig/qconf.cc list->list->mode = listMode; mode 1604 scripts/kconfig/qconf.cc switch (configList->mode) { mode 1649 scripts/kconfig/qconf.cc if (menuList->mode == menuMode) mode 1687 scripts/kconfig/qconf.cc configList->mode = singleMode; mode 1704 scripts/kconfig/qconf.cc configList->mode = symbolMode; mode 1711 scripts/kconfig/qconf.cc menuList->mode = menuMode; mode 1729 scripts/kconfig/qconf.cc configList->mode = fullMode; mode 1802 scripts/kconfig/qconf.cc switch(configList->mode) { mode 115 scripts/kconfig/qconf.h enum listMode mode; mode 226 scripts/mod/devicetable-offsets.c DEVID_FIELD(typec_device_id, mode); mode 1294 scripts/mod/file2alias.c DEF_FIELD(symval, typec_device_id, mode); mode 1297 scripts/mod/file2alias.c ADD(alias, "m", mode != TYPEC_ANY_MODE, mode); mode 182 security/apparmor/apparmorfs.c umode_t mode, void *data, char *link, mode 195 security/apparmor/apparmorfs.c inode->i_mode = mode; mode 198 security/apparmor/apparmorfs.c if (S_ISDIR(mode)) { mode 203 security/apparmor/apparmorfs.c } else if (S_ISLNK(mode)) { mode 231 security/apparmor/apparmorfs.c static struct dentry *aafs_create(const char *name, umode_t mode, mode 243 security/apparmor/apparmorfs.c if (!(mode & S_IFMT)) mode 244 security/apparmor/apparmorfs.c mode = (mode & S_IALLUGO) | S_IFREG; mode 264 security/apparmor/apparmorfs.c error = __aafs_setup_d_inode(dir, dentry, mode, data, link, fops, iops); mode 292 security/apparmor/apparmorfs.c static struct dentry *aafs_create_file(const char *name, umode_t mode, mode 296 security/apparmor/apparmorfs.c return aafs_create(name, mode, parent, data, NULL, fops, NULL); mode 1082 security/apparmor/apparmorfs.c seq_printf(seq, "%s\n", aa_profile_mode_names[profile->mode]); mode 1122 security/apparmor/apparmorfs.c SEQ_PROFILE_FOPS(mode); mode 1690 security/apparmor/apparmorfs.c static int ns_mkdir_op(struct inode *dir, struct dentry *dentry, umode_t mode) mode 1716 security/apparmor/apparmorfs.c error = __aafs_setup_d_inode(dir, dentry, mode | S_IFDIR, NULL, mode 2317 security/apparmor/apparmorfs.c S_IFREG | fs_file->mode, mode 333 security/apparmor/file.c flags |= PATH_DELEGATE_DELETED | (S_ISDIR(cond->mode) ? PATH_IS_DIR : mode 516 security/apparmor/file.c .mode = file_inode(file)->i_mode mode 526 security/apparmor/file.c flags = PATH_DELEGATE_DELETED | (S_ISDIR(cond.mode) ? PATH_IS_DIR : 0); mode 29 security/apparmor/include/apparmorfs.h umode_t mode; mode 43 security/apparmor/include/apparmorfs.h { .name = (_name), .mode = 0444, \ mode 47 security/apparmor/include/apparmorfs.h { .name = (_name), .mode = 0444, \ mode 51 security/apparmor/include/apparmorfs.h { .name = (_name), .mode = 0444, \ mode 56 security/apparmor/include/apparmorfs.h .mode = (_mode), .file_ops = (_fops) } mode 106 security/apparmor/include/file.h umode_t mode; mode 43 security/apparmor/include/policy.h ((_profile)->mode == (_mode))) mode 140 security/apparmor/include/policy.h long mode; mode 201 security/apparmor/include/policy.h #define profile_unconfined(X) ((X)->mode == APPARMOR_UNCONFINED) mode 1510 security/apparmor/label.c const char *modestr = aa_profile_mode_names[profile->mode]; mode 1530 security/apparmor/label.c int mode = -1, count = 0; mode 1534 security/apparmor/label.c if (profile->mode == APPARMOR_UNCONFINED) mode 1541 security/apparmor/label.c if (mode == -1) mode 1542 security/apparmor/label.c mode = profile->mode; mode 1543 security/apparmor/label.c else if (mode != profile->mode) mode 1550 security/apparmor/label.c if (mode == -1) mode 1552 security/apparmor/label.c mode = APPARMOR_UNCONFINED; mode 1554 security/apparmor/label.c return aa_profile_mode_names[mode]; mode 106 security/apparmor/lsm.c unsigned int mode) mode 114 security/apparmor/lsm.c (mode & PTRACE_MODE_READ) ? AA_PTRACE_READ mode 265 security/apparmor/lsm.c cond.mode = inode->i_mode; mode 281 security/apparmor/lsm.c struct dentry *dentry, u32 mask, umode_t mode) mode 283 security/apparmor/lsm.c struct path_cond cond = { current_fsuid(), mode }; mode 297 security/apparmor/lsm.c umode_t mode) mode 309 security/apparmor/lsm.c umode_t mode, unsigned int dev) mode 311 security/apparmor/lsm.c return common_perm_create(OP_MKNOD, dir, dentry, AA_MAY_CREATE, mode); mode 377 security/apparmor/lsm.c static int apparmor_path_chmod(const struct path *path, umode_t mode) mode 1286 security/apparmor/lsm.c module_param_call(mode, param_set_mode, param_get_mode, mode 1594 security/apparmor/lsm.c .mode = 0600, mode 538 security/apparmor/policy.c profile->mode = APPARMOR_COMPLAIN; mode 110 security/apparmor/policy_ns.c ns->unconfined->mode = APPARMOR_UNCONFINED; mode 747 security/apparmor/policy_unpack.c profile->mode = APPARMOR_COMPLAIN; mode 749 security/apparmor/policy_unpack.c profile->mode = APPARMOR_KILL; mode 751 security/apparmor/policy_unpack.c profile->mode = APPARMOR_UNCONFINED; mode 133 security/commoncap.c int cap_ptrace_access_check(struct task_struct *child, unsigned int mode) mode 142 security/commoncap.c if (mode & PTRACE_MODE_FSCREDS) mode 107 security/inode.c static struct dentry *securityfs_create_dentry(const char *name, umode_t mode, mode 116 security/inode.c if (!(mode & S_IFMT)) mode 117 security/inode.c mode = (mode & S_IALLUGO) | S_IFREG; mode 147 security/inode.c inode->i_mode = mode; mode 150 security/inode.c if (S_ISDIR(mode)) { mode 155 security/inode.c } else if (S_ISLNK(mode)) { mode 200 security/inode.c struct dentry *securityfs_create_file(const char *name, umode_t mode, mode 204 security/inode.c return securityfs_create_dentry(name, mode, parent, data, fops, NULL); mode 150 security/integrity/evm/evm_crypto.c umode_t mode; mode 171 security/integrity/evm/evm_crypto.c hmac_misc.mode = inode->i_mode; mode 114 security/integrity/ima/ima_main.c fmode_t mode = file->f_mode; mode 117 security/integrity/ima/ima_main.c if (mode & FMODE_WRITE) { mode 149 security/integrity/ima/ima_main.c fmode_t mode = file->f_mode; mode 152 security/integrity/ima/ima_main.c if (!(mode & FMODE_WRITE)) mode 17 security/keys/sysctl.c .mode = 0644, mode 26 security/keys/sysctl.c .mode = 0644, mode 35 security/keys/sysctl.c .mode = 0644, mode 44 security/keys/sysctl.c .mode = 0644, mode 53 security/keys/sysctl.c .mode = 0644, mode 63 security/keys/sysctl.c .mode = 0644, mode 58 security/loadpin/loadpin.c .mode = 0644, mode 696 security/security.c int security_ptrace_access_check(struct task_struct *child, unsigned int mode) mode 698 security/security.c return call_int_hook(ptrace_access_check, 0, child, mode); mode 951 security/security.c int security_dentry_init_security(struct dentry *dentry, int mode, mode 955 security/security.c return call_int_hook(dentry_init_security, -EOPNOTSUPP, dentry, mode, mode 960 security/security.c int security_dentry_create_files_as(struct dentry *dentry, int mode, mode 964 security/security.c return call_int_hook(dentry_create_files_as, 0, dentry, mode, mode 1016 security/security.c int security_path_mknod(const struct path *dir, struct dentry *dentry, umode_t mode, mode 1021 security/security.c return call_int_hook(path_mknod, 0, dir, dentry, mode, dev); mode 1025 security/security.c int security_path_mkdir(const struct path *dir, struct dentry *dentry, umode_t mode) mode 1029 security/security.c return call_int_hook(path_mkdir, 0, dir, dentry, mode); mode 1091 security/security.c int security_path_chmod(const struct path *path, umode_t mode) mode 1095 security/security.c return call_int_hook(path_chmod, 0, path, mode); mode 1111 security/security.c int security_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode) mode 1115 security/security.c return call_int_hook(inode_create, 0, dir, dentry, mode); mode 1142 security/security.c int security_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) mode 1146 security/security.c return call_int_hook(inode_mkdir, 0, dir, dentry, mode); mode 1157 security/security.c int security_inode_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) mode 1161 security/security.c return call_int_hook(inode_mknod, 0, dir, dentry, mode, dev); mode 1796 security/security.c struct task_struct *target, long type, int mode) mode 1798 security/security.c return call_int_hook(msg_queue_msgrcv, 0, msq, msg, target, type, mode); mode 1146 security/selinux/hooks.c static inline u16 inode_mode_to_security_class(umode_t mode) mode 1148 security/selinux/hooks.c switch (mode & S_IFMT) { mode 1977 security/selinux/hooks.c static inline u32 file_mask_to_av(int mode, int mask) mode 1981 security/selinux/hooks.c if (!S_ISDIR(mode)) { mode 2127 security/selinux/hooks.c unsigned int mode) mode 2132 security/selinux/hooks.c if (mode & PTRACE_MODE_READ) mode 2867 security/selinux/hooks.c static int selinux_dentry_init_security(struct dentry *dentry, int mode, mode 2876 security/selinux/hooks.c inode_mode_to_security_class(mode), mode 2885 security/selinux/hooks.c static int selinux_dentry_create_files_as(struct dentry *dentry, int mode, mode 2896 security/selinux/hooks.c inode_mode_to_security_class(mode), mode 2954 security/selinux/hooks.c static int selinux_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode) mode 2984 security/selinux/hooks.c static int selinux_inode_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev) mode 2986 security/selinux/hooks.c return may_create(dir, dentry, inode_mode_to_security_class(mode)); mode 3495 security/selinux/hooks.c u16 secclass = inode_mode_to_security_class(kn->mode); mode 6063 security/selinux/hooks.c long type, int mode) mode 1157 security/selinux/selinuxfs.c static struct inode *sel_make_inode(struct super_block *sb, int mode) mode 1162 security/selinux/selinuxfs.c ret->i_mode = mode; mode 1592 security/selinux/selinuxfs.c inode = sel_make_inode(dir->d_sb, S_IFREG|files[i].mode); mode 220 security/smack/smack_access.c u32 mode, struct smk_audit_info *a) mode 229 security/smack/smack_access.c rc = smk_access(sbj_known, obj_known, mode, NULL); mode 240 security/smack/smack_access.c if ((mode & may) == mode) mode 255 security/smack/smack_access.c mode, rc, a); mode 272 security/smack/smack_access.c u32 mode, struct smk_audit_info *a) mode 276 security/smack/smack_access.c return smk_tskacc(tsp, obj_known, mode, a); mode 95 security/smack/smack_lsm.c static void smk_bu_mode(int mode, char *s) mode 99 security/smack/smack_lsm.c if (mode & MAY_READ) mode 101 security/smack/smack_lsm.c if (mode & MAY_WRITE) mode 103 security/smack/smack_lsm.c if (mode & MAY_EXEC) mode 105 security/smack/smack_lsm.c if (mode & MAY_APPEND) mode 107 security/smack/smack_lsm.c if (mode & MAY_TRANSMUTE) mode 109 security/smack/smack_lsm.c if (mode & MAY_LOCK) mode 119 security/smack/smack_lsm.c struct smack_known *oskp, int mode, int rc) mode 128 security/smack/smack_lsm.c smk_bu_mode(mode, acc); mode 134 security/smack/smack_lsm.c #define smk_bu_note(note, sskp, oskp, mode, RC) (RC) mode 139 security/smack/smack_lsm.c int mode, int rc) mode 149 security/smack/smack_lsm.c smk_bu_mode(mode, acc); mode 156 security/smack/smack_lsm.c #define smk_bu_current(note, oskp, mode, RC) (RC) mode 160 security/smack/smack_lsm.c static int smk_bu_task(struct task_struct *otp, int mode, int rc) mode 171 security/smack/smack_lsm.c smk_bu_mode(mode, acc); mode 178 security/smack/smack_lsm.c #define smk_bu_task(otp, mode, RC) (RC) mode 182 security/smack/smack_lsm.c static int smk_bu_inode(struct inode *inode, int mode, int rc) mode 197 security/smack/smack_lsm.c (mode & (MAY_WRITE | MAY_APPEND))) mode 200 security/smack/smack_lsm.c smk_bu_mode(mode, acc); mode 208 security/smack/smack_lsm.c #define smk_bu_inode(inode, mode, RC) (RC) mode 212 security/smack/smack_lsm.c static int smk_bu_file(struct file *file, int mode, int rc) mode 229 security/smack/smack_lsm.c smk_bu_mode(mode, acc); mode 237 security/smack/smack_lsm.c #define smk_bu_file(file, mode, RC) (RC) mode 242 security/smack/smack_lsm.c int mode, int rc) mode 259 security/smack/smack_lsm.c smk_bu_mode(mode, acc); mode 267 security/smack/smack_lsm.c #define smk_bu_credfile(cred, file, mode, RC) (RC) mode 398 security/smack/smack_lsm.c static inline unsigned int smk_ptrace_mode(unsigned int mode) mode 400 security/smack/smack_lsm.c if (mode & PTRACE_MODE_ATTACH) mode 402 security/smack/smack_lsm.c if (mode & PTRACE_MODE_READ) mode 419 security/smack/smack_lsm.c unsigned int mode, const char *func) mode 427 security/smack/smack_lsm.c if ((mode & PTRACE_MODE_NOAUDIT) == 0) { mode 438 security/smack/smack_lsm.c if ((mode & PTRACE_MODE_ATTACH) && mode 460 security/smack/smack_lsm.c rc = smk_tskacc(tsp, tracee_known, smk_ptrace_mode(mode), saip); mode 480 security/smack/smack_lsm.c static int smack_ptrace_access_check(struct task_struct *ctp, unsigned int mode) mode 486 security/smack/smack_lsm.c return smk_ptrace_rule_check(current, skp, mode, __func__); mode 3206 security/smack/smack_lsm.c struct task_struct *target, long type, int mode) mode 4536 security/smack/smack_lsm.c static int smack_dentry_create_files_as(struct dentry *dentry, int mode, mode 118 security/tomoyo/audit.c static inline const char *tomoyo_filetype(const umode_t mode) mode 120 security/tomoyo/audit.c switch (mode & S_IFMT) { mode 168 security/tomoyo/audit.c stamp.min, stamp.sec, r->profile, tomoyo_mode[r->mode], mode 188 security/tomoyo/audit.c umode_t mode; mode 194 security/tomoyo/audit.c mode = stat->mode; mode 203 security/tomoyo/audit.c stat->mode & S_IALLUGO); mode 213 security/tomoyo/audit.c mode & S_IALLUGO, tomoyo_filetype(mode)); mode 214 security/tomoyo/audit.c if (S_ISCHR(mode) || S_ISBLK(mode)) { mode 332 security/tomoyo/audit.c u8 mode; mode 345 security/tomoyo/audit.c mode = p->config[index]; mode 346 security/tomoyo/audit.c if (mode == TOMOYO_CONFIG_USE_DEFAULT) mode 347 security/tomoyo/audit.c mode = p->config[category]; mode 348 security/tomoyo/audit.c if (mode == TOMOYO_CONFIG_USE_DEFAULT) mode 349 security/tomoyo/audit.c mode = p->default_config; mode 351 security/tomoyo/audit.c return mode & TOMOYO_CONFIG_WANT_GRANT_LOG; mode 352 security/tomoyo/audit.c return mode & TOMOYO_CONFIG_WANT_REJECT_LOG; mode 632 security/tomoyo/common.c u8 mode; mode 634 security/tomoyo/common.c for (mode = 0; mode < 4; mode++) mode 635 security/tomoyo/common.c if (strstr(value, tomoyo_mode[mode])) mode 640 security/tomoyo/common.c config = (config & ~7) | mode; mode 1498 security/tomoyo/common.c tomoyo_print_number_union(head, &ptr->mode); mode 2078 security/tomoyo/common.c if (r->mode) mode 2079 security/tomoyo/common.c tomoyo_update_stat(r->mode); mode 2080 security/tomoyo/common.c switch (r->mode) { mode 449 security/tomoyo/common.h unsigned int mode; mode 499 security/tomoyo/common.h u8 mode; /* One of tomoyo_mode_index . */ mode 571 security/tomoyo/common.h umode_t mode; mode 732 security/tomoyo/common.h struct tomoyo_number_union mode; mode 983 security/tomoyo/common.h const unsigned int mode, unsigned int dev); mode 745 security/tomoyo/condition.c stat->mode = inode->i_mode; mode 1023 security/tomoyo/condition.c value = stat->mode & S_IFMT; mode 1037 security/tomoyo/condition.c value = stat->mode & S_IALLUGO; mode 631 security/tomoyo/domain.c ee->r.mode = tomoyo_get_mode(r->domain->ns, ee->r.profile, mode 633 security/tomoyo/domain.c if (!r->mode || !envp_count) mode 687 security/tomoyo/domain.c if (r->mode != TOMOYO_CONFIG_ENFORCING) mode 855 security/tomoyo/domain.c } else if (ee->r.mode == TOMOYO_CONFIG_ENFORCING) mode 201 security/tomoyo/file.c r->param.mkdev.mode, r->param.mkdev.major, mode 323 security/tomoyo/file.c tomoyo_compare_number_union(r->param.mkdev.mode, mode 324 security/tomoyo/file.c &acl->mode) && mode 420 security/tomoyo/file.c tomoyo_same_number_union(&p1->mode, &p2->mode) && mode 472 security/tomoyo/file.c !tomoyo_parse_number_union(param, &e.mode) || mode 481 security/tomoyo/file.c tomoyo_put_number_union(&e.mode); mode 579 security/tomoyo/file.c r->mode = tomoyo_get_mode(r->domain->ns, r->profile, r->type); mode 580 security/tomoyo/file.c if (r->mode == TOMOYO_CONFIG_DISABLED) mode 611 security/tomoyo/file.c r->mode = tomoyo_get_mode(r->domain->ns, r->profile, r->type); mode 618 security/tomoyo/file.c if (r->mode != TOMOYO_CONFIG_DISABLED) mode 739 security/tomoyo/file.c if (r.mode != TOMOYO_CONFIG_ENFORCING) mode 766 security/tomoyo/file.c r.mode = TOMOYO_CONFIG_DISABLED; mode 788 security/tomoyo/file.c if (r.mode != TOMOYO_CONFIG_ENFORCING) mode 818 security/tomoyo/file.c is_enforce = (r.mode == TOMOYO_CONFIG_ENFORCING); mode 860 security/tomoyo/file.c const unsigned int mode, unsigned int dev) mode 881 security/tomoyo/file.c r.param.mkdev.mode = mode; mode 889 security/tomoyo/file.c if (r.mode != TOMOYO_CONFIG_ENFORCING) mode 949 security/tomoyo/file.c if (r.mode != TOMOYO_CONFIG_ENFORCING) mode 191 security/tomoyo/gc.c tomoyo_put_number_union(&entry->mode); mode 223 security/tomoyo/securityfs_if.c static void __init tomoyo_create_entry(const char *name, const umode_t mode, mode 226 security/tomoyo/securityfs_if.c securityfs_create_file(name, mode, parent, ((u8 *) NULL) + key, mode 169 security/tomoyo/tomoyo.c umode_t mode) mode 174 security/tomoyo/tomoyo.c mode & S_IALLUGO); mode 220 security/tomoyo/tomoyo.c umode_t mode, unsigned int dev) mode 224 security/tomoyo/tomoyo.c const unsigned int perm = mode & S_IALLUGO; mode 226 security/tomoyo/tomoyo.c switch (mode & S_IFMT) { mode 238 security/tomoyo/tomoyo.c switch (mode & S_IFMT) { mode 346 security/tomoyo/tomoyo.c static int tomoyo_path_chmod(const struct path *path, umode_t mode) mode 349 security/tomoyo/tomoyo.c mode & S_IALLUGO); mode 973 security/tomoyo/util.c u8 mode; mode 979 security/tomoyo/util.c mode = p->config[index]; mode 980 security/tomoyo/util.c if (mode == TOMOYO_CONFIG_USE_DEFAULT) mode 981 security/tomoyo/util.c mode = p->config[tomoyo_index2category[index] mode 983 security/tomoyo/util.c if (mode == TOMOYO_CONFIG_USE_DEFAULT) mode 984 security/tomoyo/util.c mode = p->default_config; mode 985 security/tomoyo/util.c return mode & 3; mode 1009 security/tomoyo/util.c r->mode = tomoyo_get_mode(domain->ns, profile, index); mode 1010 security/tomoyo/util.c return r->mode; mode 1028 security/tomoyo/util.c if (r->mode != TOMOYO_CONFIG_LEARNING) mode 355 security/yama/yama_lsm.c unsigned int mode) mode 360 security/yama/yama_lsm.c if (mode & PTRACE_MODE_ATTACH) { mode 388 security/yama/yama_lsm.c if (rc && (mode & PTRACE_MODE_NOAUDIT) == 0) mode 461 security/yama/yama_lsm.c .mode = 0644, mode 1042 sound/core/compress_offload.c entry->mode = S_IFDIR | 0555; mode 339 sound/core/control.c enum snd_ctl_add_mode mode) mode 353 sound/core/control.c if (mode == CTL_REPLACE) mode 356 sound/core/control.c if (mode == CTL_ADD_EXCLUSIVE) { mode 387 sound/core/control.c enum snd_ctl_add_mode mode) mode 397 sound/core/control.c err = __snd_ctl_add_replace(card, kcontrol, mode); mode 240 sound/core/info.c int mode, err; mode 247 sound/core/info.c mode = file->f_flags & O_ACCMODE; mode 248 sound/core/info.c if (((mode == O_RDONLY || mode == O_RDWR) && !entry->c.ops->read) || mode 249 sound/core/info.c ((mode == O_WRONLY || mode == O_RDWR) && !entry->c.ops->write)) { mode 255 sound/core/info.c err = entry->c.ops->open(entry, mode, &data->file_private_data); mode 442 sound/core/info.c entry->mode = S_IFDIR | 0555; mode 459 sound/core/info.c snd_proc_root->mode = S_IFDIR | 0555; mode 694 sound/core/info.c entry->mode = S_IFREG | 0444; mode 806 sound/core/info.c if (S_ISDIR(entry->mode)) { mode 807 sound/core/info.c p = proc_mkdir_mode(entry->name, entry->mode, root); mode 818 sound/core/info.c p = proc_create_data(entry->name, entry->mode, root, mode 887 sound/core/info.c entry->mode |= 0200; mode 29 sound/core/isadma.c unsigned short mode) mode 36 sound/core/isadma.c set_dma_mode(dma, mode); mode 39 sound/core/isadma.c if (!(mode & DMA_MODE_NO_ENABLE)) mode 1235 sound/core/oss/mixer_oss.c entry->mode = S_IFREG | 0644; mode 3033 sound/core/oss/pcm_oss.c entry->mode = S_IFREG | 0644; mode 288 sound/core/pcm.c static const char *snd_pcm_tstamp_mode_name(int mode) mode 290 sound/core/pcm.c return snd_pcm_tstamp_mode_names[mode]; mode 515 sound/core/pcm.c entry->mode = S_IFDIR | 0555; mode 526 sound/core/pcm.c entry->mode |= 0200; mode 567 sound/core/pcm.c entry->mode = S_IFDIR | 0555; mode 583 sound/core/pcm.c entry->mode = S_IFREG | 0200; mode 180 sound/core/pcm_memory.c entry->mode |= 0200; mode 235 sound/core/rawmidi.c int stream, int mode, mode 253 sound/core/rawmidi.c !(mode & SNDRV_RAWMIDI_LFLG_APPEND) || mode 268 sound/core/rawmidi.c int mode) mode 283 sound/core/rawmidi.c if (mode & SNDRV_RAWMIDI_LFLG_APPEND) mode 296 sound/core/rawmidi.c static int rawmidi_open_priv(struct snd_rawmidi *rmidi, int subdevice, int mode, mode 303 sound/core/rawmidi.c if (mode & SNDRV_RAWMIDI_LFLG_INPUT) { mode 306 sound/core/rawmidi.c mode, &sinput); mode 310 sound/core/rawmidi.c if (mode & SNDRV_RAWMIDI_LFLG_OUTPUT) { mode 313 sound/core/rawmidi.c mode, &soutput); mode 319 sound/core/rawmidi.c err = open_substream(rmidi, sinput, mode); mode 324 sound/core/rawmidi.c err = open_substream(rmidi, soutput, mode); mode 340 sound/core/rawmidi.c int mode, struct snd_rawmidi_file *rfile) mode 359 sound/core/rawmidi.c err = rawmidi_open_priv(rmidi, subdevice, mode, rfile); mode 130 sound/core/seq/oss/seq_oss_device.h #define is_read_mode(mode) ((mode) & SNDRV_SEQ_OSS_FILE_READ) mode 131 sound/core/seq/oss/seq_oss_device.h #define is_write_mode(mode) ((mode) & SNDRV_SEQ_OSS_FILE_WRITE) mode 132 sound/core/seq/oss/seq_oss_device.h #define is_nonblock_mode(mode) ((mode) & SNDRV_SEQ_OSS_FILE_NONBLOCK) mode 422 sound/core/seq/oss/seq_oss_midi.c int mode; mode 427 sound/core/seq/oss/seq_oss_midi.c mode = 0; mode 429 sound/core/seq/oss/seq_oss_midi.c mode |= SNDRV_SEQ_OSS_FILE_WRITE; mode 431 sound/core/seq/oss/seq_oss_midi.c mode |= SNDRV_SEQ_OSS_FILE_READ; mode 434 sound/core/seq/oss/seq_oss_midi.c return mode; mode 322 sound/core/seq/seq_clientmgr.c int c, mode; /* client id */ mode 338 sound/core/seq/seq_clientmgr.c mode = snd_seq_file_flags(file); mode 339 sound/core/seq/seq_clientmgr.c if (mode & SNDRV_SEQ_LFLG_INPUT) mode 341 sound/core/seq/seq_clientmgr.c if (mode & SNDRV_SEQ_LFLG_OUTPUT) mode 348 sound/core/seq/seq_clientmgr.c if (mode & SNDRV_SEQ_LFLG_INPUT) { mode 85 sound/drivers/mpu401/mpu401_uart.c if (test_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode) && mode 86 sound/drivers/mpu401/mpu401_uart.c test_bit(MPU401_MODE_BIT_OUTPUT_TRIGGER, &mpu->mode)) { mode 99 sound/drivers/mpu401/mpu401_uart.c if (test_bit(MPU401_MODE_BIT_INPUT, &mpu->mode)) mode 276 sound/drivers/mpu401/mpu401_uart.c if (! test_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode)) { mode 281 sound/drivers/mpu401/mpu401_uart.c set_bit(MPU401_MODE_BIT_INPUT, &mpu->mode); mode 298 sound/drivers/mpu401/mpu401_uart.c if (! test_bit(MPU401_MODE_BIT_INPUT, &mpu->mode)) { mode 303 sound/drivers/mpu401/mpu401_uart.c set_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode); mode 318 sound/drivers/mpu401/mpu401_uart.c clear_bit(MPU401_MODE_BIT_INPUT, &mpu->mode); mode 320 sound/drivers/mpu401/mpu401_uart.c if (! test_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode)) mode 335 sound/drivers/mpu401/mpu401_uart.c clear_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode); mode 337 sound/drivers/mpu401/mpu401_uart.c if (! test_bit(MPU401_MODE_BIT_INPUT, &mpu->mode)) mode 359 sound/drivers/mpu401/mpu401_uart.c &mpu->mode)) { mode 374 sound/drivers/mpu401/mpu401_uart.c clear_bit(MPU401_MODE_BIT_INPUT_TRIGGER, &mpu->mode); mode 392 sound/drivers/mpu401/mpu401_uart.c if (test_bit(MPU401_MODE_BIT_INPUT_TRIGGER, &mpu->mode)) mode 444 sound/drivers/mpu401/mpu401_uart.c set_bit(MPU401_MODE_BIT_OUTPUT_TRIGGER, &mpu->mode); mode 460 sound/drivers/mpu401/mpu401_uart.c clear_bit(MPU401_MODE_BIT_OUTPUT_TRIGGER, &mpu->mode); mode 117 sound/drivers/mtpav.c u8 mode; mode 344 sound/drivers/mtpav.c portp->mode |= MTPAV_MODE_INPUT_OPENED; mode 362 sound/drivers/mtpav.c portp->mode &= ~MTPAV_MODE_INPUT_OPENED; mode 381 sound/drivers/mtpav.c portp->mode |= MTPAV_MODE_INPUT_TRIGGERED; mode 383 sound/drivers/mtpav.c portp->mode &= ~MTPAV_MODE_INPUT_TRIGGERED; mode 405 sound/drivers/mtpav.c if ((portp->mode & MTPAV_MODE_OUTPUT_TRIGGERED) && portp->output) mode 433 sound/drivers/mtpav.c portp->mode |= MTPAV_MODE_OUTPUT_OPENED; mode 449 sound/drivers/mtpav.c portp->mode &= ~MTPAV_MODE_OUTPUT_OPENED; mode 466 sound/drivers/mtpav.c if (! (portp->mode & MTPAV_MODE_OUTPUT_TRIGGERED)) { mode 469 sound/drivers/mtpav.c portp->mode |= MTPAV_MODE_OUTPUT_TRIGGERED; mode 472 sound/drivers/mtpav.c portp->mode &= ~MTPAV_MODE_OUTPUT_TRIGGERED; mode 494 sound/drivers/mtpav.c if (portp->mode & MTPAV_MODE_INPUT_TRIGGERED) mode 57 sound/drivers/mts64.c u8 mode[MTS64_NUM_INPUT_PORTS]; mode 731 sound/drivers/mts64.c mts->mode[substream->number] |= MTS64_MODE_INPUT_TRIGGERED; mode 733 sound/drivers/mts64.c mts->mode[substream->number] &= ~MTS64_MODE_INPUT_TRIGGERED; mode 830 sound/drivers/mts64.c if (mts->mode[substream->number] & MTS64_MODE_INPUT_TRIGGERED) mode 63 sound/drivers/opl3/opl3_synth.c static int snd_opl3_set_mode(struct snd_opl3 * opl3, int mode); mode 579 sound/drivers/opl3/opl3_synth.c static int snd_opl3_set_mode(struct snd_opl3 * opl3, int mode) mode 581 sound/drivers/opl3/opl3_synth.c if ((mode == SNDRV_DM_FM_MODE_OPL3) && (opl3->hardware < OPL3_HW_OPL3)) mode 584 sound/drivers/opl3/opl3_synth.c opl3->fm_mode = mode; mode 13 sound/drivers/opl4/opl4_proc.c unsigned short mode, void **file_private_data) mode 28 sound/drivers/opl4/opl4_proc.c unsigned short mode, void *file_private_data) mode 94 sound/drivers/opl4/opl4_proc.c entry->mode |= 0200; mode 74 sound/drivers/portman2x4.c int mode[PORTMAN_NUM_INPUT_PORTS]; mode 515 sound/drivers/portman2x4.c pm->mode[substream->number] |= PORTMAN2X4_MODE_INPUT_TRIGGERED; mode 517 sound/drivers/portman2x4.c pm->mode[substream->number] &= ~PORTMAN2X4_MODE_INPUT_TRIGGERED; mode 615 sound/drivers/portman2x4.c if (pm->mode[0] & PORTMAN2X4_MODE_INPUT_TRIGGERED) mode 626 sound/drivers/portman2x4.c if (pm->mode[1] & PORTMAN2X4_MODE_INPUT_TRIGGERED) mode 92 sound/drivers/vx/vx_uer.c static int vx_read_uer_status(struct vx_core *chip, unsigned int *mode) mode 122 sound/drivers/vx/vx_uer.c *mode = vx_read_one_cbit(chip, 0) ? mode 125 sound/drivers/vx/vx_uer.c *mode = VX_UER_MODE_NOT_PRESENT; mode 181 sound/firewire/bebob/bebob_proc.c root->mode = S_IFDIR | 0555; mode 61 sound/firewire/dice/dice-extension.c unsigned int mode, mode 77 sound/firewire/dice/dice-extension.c pcm_channels[i][mode] = be32_to_cpu(reg[0]); mode 89 sound/firewire/dice/dice-extension.c int mode; mode 92 sound/firewire/dice/dice-extension.c for (mode = 0; mode < SND_DICE_RATE_MODE_COUNT; ++mode) { mode 99 sound/firewire/dice/dice-extension.c if (mode == 2) { mode 101 sound/firewire/dice/dice-extension.c } else if (mode == 1) { mode 110 sound/firewire/dice/dice-extension.c base_offset = 0x2000 * mode + 0x1000; mode 121 sound/firewire/dice/dice-extension.c stream_count, mode, mode 131 sound/firewire/dice/dice-extension.c mode, dice->rx_pcm_chs, mode 26 sound/firewire/dice/dice-pcm.c enum snd_dice_rate_mode mode; mode 36 sound/firewire/dice/dice-pcm.c if (snd_dice_stream_get_rate_mode(dice, rate, &mode) < 0) mode 39 sound/firewire/dice/dice-pcm.c if (!snd_interval_test(c, pcm_channels[mode])) mode 64 sound/firewire/dice/dice-pcm.c enum snd_dice_rate_mode mode; mode 74 sound/firewire/dice/dice-pcm.c if (snd_dice_stream_get_rate_mode(dice, rate, &mode) < 0) mode 80 sound/firewire/dice/dice-pcm.c channels.min = min(channels.min, pcm_channels[mode]); mode 81 sound/firewire/dice/dice-pcm.c channels.max = max(channels.max, pcm_channels[mode]); mode 105 sound/firewire/dice/dice-pcm.c enum snd_dice_rate_mode mode; mode 109 sound/firewire/dice/dice-pcm.c if (snd_dice_stream_get_rate_mode(dice, rate, &mode) < 0) mode 113 sound/firewire/dice/dice-pcm.c channels = pcm_channels[mode]; mode 303 sound/firewire/dice/dice-proc.c root->mode = S_IFDIR | 0555; mode 33 sound/firewire/dice/dice-stream.c enum snd_dice_rate_mode *mode) mode 53 sound/firewire/dice/dice-stream.c *mode = modes[i]; mode 214 sound/firewire/dice/dice-stream.c enum snd_dice_rate_mode mode; mode 218 sound/firewire/dice/dice-stream.c err = snd_dice_stream_get_rate_mode(dice, rate, &mode); mode 235 sound/firewire/dice/dice-stream.c pcm_cache = dice->tx_pcm_chs[i][mode]; mode 244 sound/firewire/dice/dice-stream.c pcm_cache = dice->rx_pcm_chs[i][mode]; mode 397 sound/firewire/dice/dice-stream.c enum snd_dice_rate_mode mode; mode 430 sound/firewire/dice/dice-stream.c err = snd_dice_stream_get_rate_mode(dice, rate, &mode); mode 434 sound/firewire/dice/dice-stream.c if (dice->tx_pcm_chs[i][mode] > 0 && mode 437 sound/firewire/dice/dice-stream.c if (dice->rx_pcm_chs[i][mode] > 0 && mode 625 sound/firewire/dice/dice-stream.c enum snd_dice_rate_mode mode; mode 644 sound/firewire/dice/dice-stream.c err = snd_dice_stream_get_rate_mode(dice, rate, &mode); mode 667 sound/firewire/dice/dice-stream.c dice->tx_pcm_chs[i][mode] = be32_to_cpu(reg[0]); mode 677 sound/firewire/dice/dice-stream.c dice->rx_pcm_chs[i][mode] = be32_to_cpu(reg[0]); mode 208 sound/firewire/dice/dice.h enum snd_dice_rate_mode *mode); mode 11 sound/firewire/digi00x/digi00x-proc.c enum snd_dg00x_optical_mode *mode) mode 20 sound/firewire/digi00x/digi00x-proc.c *mode = be32_to_cpu(data) & 0x01; mode 39 sound/firewire/digi00x/digi00x-proc.c enum snd_dg00x_optical_mode mode; mode 44 sound/firewire/digi00x/digi00x-proc.c if (get_optical_iface_mode(dg00x, &mode) < 0) mode 51 sound/firewire/digi00x/digi00x-proc.c snd_iprintf(buf, "Optical mode: %s\n", optical_name[mode]); mode 81 sound/firewire/digi00x/digi00x-proc.c root->mode = S_IFDIR | 0555; mode 24 sound/firewire/fireface/ff-pcm.c enum snd_ff_stream_mode mode; mode 27 sound/firewire/fireface/ff-pcm.c err = snd_ff_stream_get_multiplier_mode(i, &mode); mode 31 sound/firewire/fireface/ff-pcm.c if (!snd_interval_test(c, pcm_channels[mode])) mode 55 sound/firewire/fireface/ff-pcm.c enum snd_ff_stream_mode mode; mode 58 sound/firewire/fireface/ff-pcm.c err = snd_ff_stream_get_multiplier_mode(i, &mode); mode 65 sound/firewire/fireface/ff-pcm.c t.min = min(t.min, pcm_channels[mode]); mode 66 sound/firewire/fireface/ff-pcm.c t.max = max(t.max, pcm_channels[mode]); mode 84 sound/firewire/fireface/ff-pcm.c enum snd_ff_stream_mode mode; mode 87 sound/firewire/fireface/ff-pcm.c err = snd_ff_stream_get_multiplier_mode(i, &mode); mode 91 sound/firewire/fireface/ff-pcm.c channels = pcm_channels[mode]; mode 92 sound/firewire/fireface/ff-pcm.c if (pcm_channels[mode] == 0) mode 59 sound/firewire/fireface/ff-proc.c root->mode = S_IFDIR | 0555; mode 444 sound/firewire/fireface/ff-protocol-former.c enum snd_ff_stream_mode mode; mode 465 sound/firewire/fireface/ff-protocol-former.c err = snd_ff_stream_get_multiplier_mode(i, &mode); mode 102 sound/firewire/fireface/ff-protocol-latter.c enum snd_ff_stream_mode mode; mode 153 sound/firewire/fireface/ff-protocol-latter.c err = snd_ff_stream_get_multiplier_mode(i, &mode); mode 13 sound/firewire/fireface/ff-stream.c enum snd_ff_stream_mode *mode) mode 28 sound/firewire/fireface/ff-stream.c *mode = modes[sfc]; mode 120 sound/firewire/fireface/ff-stream.c enum snd_ff_stream_mode mode; mode 136 sound/firewire/fireface/ff-stream.c err = snd_ff_stream_get_multiplier_mode(i, &mode); mode 141 sound/firewire/fireface/ff-stream.c ff->spec->pcm_capture_channels[mode]); mode 146 sound/firewire/fireface/ff-stream.c ff->spec->pcm_playback_channels[mode]); mode 139 sound/firewire/fireface/ff.h enum snd_ff_stream_mode *mode); mode 198 sound/firewire/fireworks/fireworks.h enum snd_efw_transport_mode mode); mode 224 sound/firewire/fireworks/fireworks.h int snd_efw_get_multiplier_mode(unsigned int sampling_rate, unsigned int *mode); mode 203 sound/firewire/fireworks/fireworks_command.c enum snd_efw_transport_mode mode) mode 205 sound/firewire/fireworks/fireworks_command.c __be32 param = cpu_to_be32(mode); mode 49 sound/firewire/fireworks/fireworks_pcm.c int snd_efw_get_multiplier_mode(unsigned int sampling_rate, unsigned int *mode) mode 55 sound/firewire/fireworks/fireworks_pcm.c *mode = get_multiplier_mode_with_index(i); mode 74 sound/firewire/fireworks/fireworks_pcm.c unsigned int i, mode; mode 77 sound/firewire/fireworks/fireworks_pcm.c mode = get_multiplier_mode_with_index(i); mode 78 sound/firewire/fireworks/fireworks_pcm.c if (!snd_interval_test(c, pcm_channels[mode])) mode 99 sound/firewire/fireworks/fireworks_pcm.c unsigned int i, mode; mode 102 sound/firewire/fireworks/fireworks_pcm.c mode = get_multiplier_mode_with_index(i); mode 106 sound/firewire/fireworks/fireworks_pcm.c t.min = min(t.min, pcm_channels[mode]); mode 107 sound/firewire/fireworks/fireworks_pcm.c t.max = max(t.max, pcm_channels[mode]); mode 116 sound/firewire/fireworks/fireworks_pcm.c unsigned int i, mode; mode 122 sound/firewire/fireworks/fireworks_pcm.c mode = get_multiplier_mode_with_index(i); mode 123 sound/firewire/fireworks/fireworks_pcm.c if (pcm_channels[mode] == 0) mode 126 sound/firewire/fireworks/fireworks_pcm.c hw->channels_min = min(hw->channels_min, pcm_channels[mode]); mode 127 sound/firewire/fireworks/fireworks_pcm.c hw->channels_max = max(hw->channels_max, pcm_channels[mode]); mode 217 sound/firewire/fireworks/fireworks_proc.c root->mode = S_IFDIR | 0555; mode 159 sound/firewire/fireworks/fireworks_stream.c unsigned int rate, unsigned int mode) mode 167 sound/firewire/fireworks/fireworks_stream.c pcm_channels = efw->pcm_capture_channels[mode]; mode 171 sound/firewire/fireworks/fireworks_stream.c pcm_channels = efw->pcm_playback_channels[mode]; mode 212 sound/firewire/fireworks/fireworks_stream.c unsigned int mode; mode 218 sound/firewire/fireworks/fireworks_stream.c err = snd_efw_get_multiplier_mode(rate, &mode); mode 222 sound/firewire/fireworks/fireworks_stream.c err = keep_resources(efw, &efw->tx_stream, rate, mode); mode 226 sound/firewire/fireworks/fireworks_stream.c err = keep_resources(efw, &efw->rx_stream, rate, mode); mode 64 sound/firewire/motu/amdtp-motu.c unsigned int mode; mode 72 sound/firewire/motu/amdtp-motu.c mode = i >> 1; mode 79 sound/firewire/motu/amdtp-motu.c pcm_chunks = formats->fixed_part_pcm_chunks[mode] + mode 80 sound/firewire/motu/amdtp-motu.c formats->differed_part_pcm_chunks[mode]; mode 23 sound/firewire/motu/motu-pcm.c unsigned int i, pcm_channels, rate, mode; mode 27 sound/firewire/motu/motu-pcm.c mode = i / 2; mode 29 sound/firewire/motu/motu-pcm.c pcm_channels = formats->fixed_part_pcm_chunks[mode] + mode 30 sound/firewire/motu/motu-pcm.c formats->differed_part_pcm_chunks[mode]; mode 53 sound/firewire/motu/motu-pcm.c unsigned int i, pcm_channels, rate, mode; mode 57 sound/firewire/motu/motu-pcm.c mode = i / 2; mode 62 sound/firewire/motu/motu-pcm.c pcm_channels = formats->fixed_part_pcm_chunks[mode] + mode 63 sound/firewire/motu/motu-pcm.c formats->differed_part_pcm_chunks[mode]; mode 76 sound/firewire/motu/motu-pcm.c unsigned int i, pcm_channels, rate, mode; mode 83 sound/firewire/motu/motu-pcm.c mode = i / 2; mode 85 sound/firewire/motu/motu-pcm.c pcm_channels = formats->fixed_part_pcm_chunks[mode] + mode 86 sound/firewire/motu/motu-pcm.c formats->differed_part_pcm_chunks[mode]; mode 47 sound/firewire/motu/motu-proc.c unsigned int mode; mode 56 sound/firewire/motu/motu-proc.c mode = i >> 1; mode 63 sound/firewire/motu/motu-proc.c formats->fixed_part_pcm_chunks[mode], mode 64 sound/firewire/motu/motu-proc.c formats->differed_part_pcm_chunks[mode]); mode 69 sound/firewire/motu/motu-proc.c mode = i >> 1; mode 76 sound/firewire/motu/motu-proc.c formats->fixed_part_pcm_chunks[mode], mode 77 sound/firewire/motu/motu-proc.c formats->differed_part_pcm_chunks[mode]); mode 105 sound/firewire/motu/motu-proc.c root->mode = S_IFDIR | 0555; mode 101 sound/firewire/oxfw/oxfw-proc.c root->mode = S_IFDIR | 0555; mode 76 sound/firewire/tascam/tascam-proc.c root->mode = S_IFDIR | 0555; mode 97 sound/isa/ad1816a/ad1816a_lib.c static int snd_ad1816a_open(struct snd_ad1816a *chip, unsigned int mode) mode 103 sound/isa/ad1816a/ad1816a_lib.c if (chip->mode & mode) { mode 108 sound/isa/ad1816a/ad1816a_lib.c switch ((mode &= AD1816A_MODE_OPEN)) { mode 127 sound/isa/ad1816a/ad1816a_lib.c chip->mode |= mode; mode 133 sound/isa/ad1816a/ad1816a_lib.c static void snd_ad1816a_close(struct snd_ad1816a *chip, unsigned int mode) mode 139 sound/isa/ad1816a/ad1816a_lib.c switch ((mode &= AD1816A_MODE_OPEN)) { mode 158 sound/isa/ad1816a/ad1816a_lib.c if (!((chip->mode &= ~mode) & AD1816A_MODE_OPEN)) mode 159 sound/isa/ad1816a/ad1816a_lib.c chip->mode = 0; mode 289 sound/isa/ad1816a/ad1816a_lib.c if (!(chip->mode & AD1816A_MODE_PLAYBACK)) mode 299 sound/isa/ad1816a/ad1816a_lib.c if (!(chip->mode & AD1816A_MODE_CAPTURE)) mode 400 sound/isa/es18xx.c int mode) mode 419 sound/isa/es18xx.c if ((chip->caps & ES18XX_PCM2) && mode == DAC2) { mode 404 sound/isa/galaxy/galaxy.c static int galaxy_set_mode(struct snd_galaxy *galaxy, u8 mode) mode 412 sound/isa/galaxy/galaxy.c err = dsp_command(galaxy->port, mode); mode 432 sound/isa/gus/gus_io.c unsigned char mode; mode 443 sound/isa/gus/gus_io.c mode = snd_gf1_i_read8(gus, 0x15); mode 444 sound/isa/gus/gus_io.c printk(KERN_INFO " -%i- GFA1 mode = 0x%x\n", voice, mode); mode 445 sound/isa/gus/gus_io.c if (mode & 0x01) { /* Effect processor */ mode 451 sound/isa/gus/gus_io.c if (mode & 0x20) { mode 203 sound/isa/msnd/msnd.c if (!(chip->mode & FMODE_WRITE) || !test_bit(F_WRITING, &chip->flags)) mode 218 sound/isa/msnd/msnd.c if ((file ? file->f_mode : chip->mode) & FMODE_READ) { mode 225 sound/isa/msnd/msnd.c chip->mode &= ~FMODE_READ; mode 229 sound/isa/msnd/msnd.c if ((file ? file->f_mode : chip->mode) & FMODE_WRITE) { mode 238 sound/isa/msnd/msnd.c chip->mode &= ~FMODE_WRITE; mode 239 sound/isa/msnd/msnd.h fmode_t mode; mode 31 sound/isa/msnd/msnd_midi.c unsigned long mode; /* MSNDMIDI_MODE_XXXX */ mode 54 sound/isa/msnd/msnd_midi.c set_bit(MSNDMIDI_MODE_BIT_INPUT, &mpu->mode); mode 64 sound/isa/msnd/msnd_midi.c clear_bit(MSNDMIDI_MODE_BIT_INPUT, &mpu->mode); mode 93 sound/isa/msnd/msnd_midi.c &mpu->mode)) mode 96 sound/isa/msnd/msnd_midi.c clear_bit(MSNDMIDI_MODE_BIT_INPUT_TRIGGER, &mpu->mode); mode 119 sound/isa/msnd/msnd_midi.c if (test_bit(MSNDMIDI_MODE_BIT_INPUT_TRIGGER, &mpu->mode)) mode 97 sound/isa/sb/emu8000.c snd_emu8000_dma_chan(struct snd_emu8000 *emu, int ch, int mode) mode 99 sound/isa/sb/emu8000.c unsigned right_bit = (mode & EMU8000_RAM_RIGHT) ? 0x01000000 : 0; mode 100 sound/isa/sb/emu8000.c mode &= EMU8000_RAM_MODE_MASK; mode 101 sound/isa/sb/emu8000.c if (mode == EMU8000_RAM_CLOSE) { mode 113 sound/isa/sb/emu8000.c if (mode == EMU8000_RAM_WRITE) /* DMA write */ mode 651 sound/isa/sb/emu8000.c snd_emu8000_load_chorus_fx(struct snd_emu8000 *emu, int mode, const void __user *buf, long len) mode 654 sound/isa/sb/emu8000.c if (mode < SNDRV_EMU8000_CHORUS_PREDEFINED || mode >= SNDRV_EMU8000_CHORUS_NUMBERS) { mode 655 sound/isa/sb/emu8000.c snd_printk(KERN_WARNING "invalid chorus mode %d for uploading\n", mode); mode 660 sound/isa/sb/emu8000.c chorus_parm[mode] = rec; mode 661 sound/isa/sb/emu8000.c chorus_defined[mode] = 1; mode 778 sound/isa/sb/emu8000.c snd_emu8000_load_reverb_fx(struct snd_emu8000 *emu, int mode, const void __user *buf, long len) mode 782 sound/isa/sb/emu8000.c if (mode < SNDRV_EMU8000_REVERB_PREDEFINED || mode >= SNDRV_EMU8000_REVERB_NUMBERS) { mode 783 sound/isa/sb/emu8000.c snd_printk(KERN_WARNING "invalid reverb mode %d for uploading\n", mode); mode 788 sound/isa/sb/emu8000.c reverb_parm[mode] = rec; mode 789 sound/isa/sb/emu8000.c reverb_defined[mode] = 1; mode 29 sound/isa/sb/emu8000_callback.c static int load_fx(struct snd_emux *emu, int type, int mode, mode 517 sound/isa/sb/emu8000_callback.c load_fx(struct snd_emux *emu, int type, int mode, const void __user *buf, long len) mode 528 sound/isa/sb/emu8000_callback.c return snd_emu8000_load_chorus_fx(hw, mode, buf, len); mode 530 sound/isa/sb/emu8000_callback.c return snd_emu8000_load_reverb_fx(hw, mode, buf, len); mode 74 sound/isa/sb/emu8000_patch.c read_word(const void __user *buf, int offset, int mode) mode 77 sound/isa/sb/emu8000_patch.c if (mode & SNDRV_SFNT_SAMPLE_8BITS) { mode 90 sound/isa/sb/emu8000_patch.c if (mode & SNDRV_SFNT_SAMPLE_UNSIGNED) mode 79 sound/isa/sb/emu8000_pcm.c unsigned int mode = EMU8000_RAM_WRITE; mode 83 sound/isa/sb/emu8000_pcm.c mode |= EMU8000_RAM_RIGHT; mode 85 sound/isa/sb/emu8000_pcm.c snd_emu8000_dma_chan(emu, i, mode); mode 416 sound/isa/sb/emu8000_pcm.c #define GET_VAL(sval, buf, mode) \ mode 418 sound/isa/sb/emu8000_pcm.c switch (mode) { \ mode 435 sound/isa/sb/emu8000_pcm.c #define LOOP_WRITE(rec, offset, _buf, count, mode) \ mode 444 sound/isa/sb/emu8000_pcm.c GET_VAL(sval, buf, mode); \ mode 492 sound/isa/sb/emu8000_pcm.c #define LOOP_WRITE(rec, pos, _buf, count, mode) \ mode 503 sound/isa/sb/emu8000_pcm.c GET_VAL(sval, buf, mode); \ mode 507 sound/isa/sb/emu8000_pcm.c GET_VAL(sval, buf, mode); \ mode 75 sound/isa/sb/sb16_csp.c static int set_mode_register(struct snd_sb *chip, unsigned char mode); mode 204 sound/isa/sb/sb16_csp.c info.csp_mode = p->mode; mode 352 sound/isa/sb/sb16_csp.c if (p->mode == SNDRV_SB_CSP_MODE_QSOUND) { mode 357 sound/isa/sb/sb16_csp.c p->mode = 0; mode 393 sound/isa/sb/sb16_csp.c p->mode = le16_to_cpu(funcdesc_h.flags_play_rec); mode 399 sound/isa/sb/sb16_csp.c p->mode = SNDRV_SB_CSP_MODE_QSOUND; mode 423 sound/isa/sb/sb16_csp.c p->mode = 0; mode 462 sound/isa/sb/sb16_csp.c if (p->mode == SNDRV_SB_CSP_MODE_QSOUND) { mode 467 sound/isa/sb/sb16_csp.c p->mode = 0; mode 531 sound/isa/sb/sb16_csp.c static int set_mode_register(struct snd_sb *chip, unsigned char mode) mode 536 sound/isa/sb/sb16_csp.c dsp_cmd[1] = mode; /* mode */ mode 725 sound/isa/sb/sb16_csp.c if (((1U << (__force int)pcm_sfmt) & p->acc_format) && (play_rec_mode & p->mode)) { mode 732 sound/isa/sb/sb16_csp.c p->mode = SNDRV_SB_CSP_MODE_DSP_READ | SNDRV_SB_CSP_MODE_DSP_WRITE; mode 737 sound/isa/sb/sb16_csp.c p->mode = SNDRV_SB_CSP_MODE_DSP_READ | SNDRV_SB_CSP_MODE_DSP_WRITE; mode 747 sound/isa/sb/sb16_csp.c p->mode = SNDRV_SB_CSP_MODE_DSP_WRITE; mode 751 sound/isa/sb/sb16_csp.c p->mode = SNDRV_SB_CSP_MODE_DSP_READ; mode 771 sound/isa/sb/sb16_csp.c p->mode = 0; mode 841 sound/isa/sb/sb16_csp.c if (p->mode & SNDRV_SB_CSP_MODE_QSOUND) { mode 1142 sound/isa/sb/sb16_csp.c if (p->mode == SNDRV_SB_CSP_MODE_QSOUND) { mode 1152 sound/isa/sb/sb16_csp.c ((p->mode & SNDRV_SB_CSP_MODE_DSP_WRITE) ? "playback" : "-"), mode 1153 sound/isa/sb/sb16_csp.c ((p->mode & SNDRV_SB_CSP_MODE_DSP_READ) ? "capture" : "-")); mode 48 sound/isa/sb/sb16_main.c if ((csp->mode & SNDRV_SB_CSP_MODE_DSP_WRITE) && mode 55 sound/isa/sb/sb16_main.c } else if ((csp->mode & SNDRV_SB_CSP_MODE_QSOUND) && (csp->q_enabled)) { mode 74 sound/isa/sb/sb16_main.c if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_PLAYBACK_16) ? mode 96 sound/isa/sb/sb16_main.c if ((csp->mode & SNDRV_SB_CSP_MODE_DSP_READ) && mode 112 sound/isa/sb/sb16_main.c if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_CAPTURE_16) ? mode 148 sound/isa/sb/sb16_main.c if (csp->mode & SNDRV_SB_CSP_MODE_DSP_WRITE) { mode 179 sound/isa/sb/sb16_main.c if (csp->mode & SNDRV_SB_CSP_MODE_DSP_READ) { mode 219 sound/isa/sb/sb16_main.c if (chip->mode & (channel == SNDRV_PCM_STREAM_PLAYBACK ? SB_MODE_PLAYBACK_16 : SB_MODE_CAPTURE_16)) mode 223 sound/isa/sb/sb16_main.c if (!(chip->mode & SB_RATE_LOCK)) { mode 264 sound/isa/sb/sb16_main.c dma = (chip->mode & SB_MODE_PLAYBACK_8) ? chip->dma8 : chip->dma16; mode 269 sound/isa/sb/sb16_main.c if (chip->mode & SB_MODE_PLAYBACK_16) { mode 299 sound/isa/sb/sb16_main.c chip->mode |= SB_RATE_LOCK_PLAYBACK; mode 300 sound/isa/sb/sb16_main.c snd_sbdsp_command(chip, chip->mode & SB_MODE_PLAYBACK_16 ? SB_DSP_DMA16_ON : SB_DSP_DMA8_ON); mode 304 sound/isa/sb/sb16_main.c snd_sbdsp_command(chip, chip->mode & SB_MODE_PLAYBACK_16 ? SB_DSP_DMA16_OFF : SB_DSP_DMA8_OFF); mode 306 sound/isa/sb/sb16_main.c if (chip->mode & SB_RATE_LOCK_CAPTURE) mode 307 sound/isa/sb/sb16_main.c snd_sbdsp_command(chip, chip->mode & SB_MODE_CAPTURE_16 ? SB_DSP_DMA16_ON : SB_DSP_DMA8_ON); mode 308 sound/isa/sb/sb16_main.c chip->mode &= ~SB_RATE_LOCK_PLAYBACK; mode 333 sound/isa/sb/sb16_main.c dma = (chip->mode & SB_MODE_CAPTURE_8) ? chip->dma8 : chip->dma16; mode 338 sound/isa/sb/sb16_main.c if (chip->mode & SB_MODE_CAPTURE_16) { mode 368 sound/isa/sb/sb16_main.c chip->mode |= SB_RATE_LOCK_CAPTURE; mode 369 sound/isa/sb/sb16_main.c snd_sbdsp_command(chip, chip->mode & SB_MODE_CAPTURE_16 ? SB_DSP_DMA16_ON : SB_DSP_DMA8_ON); mode 373 sound/isa/sb/sb16_main.c snd_sbdsp_command(chip, chip->mode & SB_MODE_CAPTURE_16 ? SB_DSP_DMA16_OFF : SB_DSP_DMA8_OFF); mode 375 sound/isa/sb/sb16_main.c if (chip->mode & SB_RATE_LOCK_PLAYBACK) mode 376 sound/isa/sb/sb16_main.c snd_sbdsp_command(chip, chip->mode & SB_MODE_PLAYBACK_16 ? SB_DSP_DMA16_ON : SB_DSP_DMA8_ON); mode 377 sound/isa/sb/sb16_main.c chip->mode &= ~SB_RATE_LOCK_CAPTURE; mode 399 sound/isa/sb/sb16_main.c if (chip->mode & SB_MODE_PLAYBACK_8) { mode 404 sound/isa/sb/sb16_main.c if (chip->mode & SB_MODE_CAPTURE_8) { mode 416 sound/isa/sb/sb16_main.c if (chip->mode & SB_MODE_PLAYBACK_16) { mode 421 sound/isa/sb/sb16_main.c if (chip->mode & SB_MODE_CAPTURE_16) { mode 444 sound/isa/sb/sb16_main.c dma = (chip->mode & SB_MODE_PLAYBACK_8) ? chip->dma8 : chip->dma16; mode 455 sound/isa/sb/sb16_main.c dma = (chip->mode & SB_MODE_CAPTURE_8) ? chip->dma8 : chip->dma16; mode 511 sound/isa/sb/sb16_main.c if (chip->mode & SB_MODE_PLAYBACK) { mode 521 sound/isa/sb/sb16_main.c if (chip->dma16 >= 0 && !(chip->mode & SB_MODE_CAPTURE_16)) { mode 522 sound/isa/sb/sb16_main.c chip->mode |= SB_MODE_PLAYBACK_16; mode 535 sound/isa/sb/sb16_main.c if (chip->dma8 >= 0 && !(chip->mode & SB_MODE_CAPTURE_8)) { mode 536 sound/isa/sb/sb16_main.c chip->mode |= SB_MODE_PLAYBACK_8; mode 540 sound/isa/sb/sb16_main.c chip->mode |= SB_MODE_PLAYBACK_16; mode 559 sound/isa/sb/sb16_main.c if (chip->mode & SB_RATE_LOCK) mode 574 sound/isa/sb/sb16_main.c chip->mode &= ~SB_MODE_PLAYBACK; mode 586 sound/isa/sb/sb16_main.c if (chip->mode & SB_MODE_CAPTURE) { mode 596 sound/isa/sb/sb16_main.c if (chip->dma16 >= 0 && !(chip->mode & SB_MODE_PLAYBACK_16)) { mode 597 sound/isa/sb/sb16_main.c chip->mode |= SB_MODE_CAPTURE_16; mode 610 sound/isa/sb/sb16_main.c if (chip->dma8 >= 0 && !(chip->mode & SB_MODE_PLAYBACK_8)) { mode 611 sound/isa/sb/sb16_main.c chip->mode |= SB_MODE_CAPTURE_8; mode 615 sound/isa/sb/sb16_main.c chip->mode |= SB_MODE_CAPTURE_16; mode 634 sound/isa/sb/sb16_main.c if (chip->mode & SB_RATE_LOCK) mode 649 sound/isa/sb/sb16_main.c chip->mode &= ~SB_MODE_CAPTURE; mode 104 sound/isa/sb/sb8_main.c if (chip->mode & SB_MODE_CAPTURE_16) mode 107 sound/isa/sb/sb8_main.c chip->mode |= SB_MODE_PLAYBACK_16; mode 135 sound/isa/sb/sb8_main.c if (chip->mode & SB_MODE_PLAYBACK_16) { mode 140 sound/isa/sb/sb8_main.c chip->mode |= SB_MODE_PLAYBACK_8; mode 179 sound/isa/sb/sb8_main.c if (chip->mode & SB_MODE_PLAYBACK_16) mode 254 sound/isa/sb/sb8_main.c if (chip->mode & SB_MODE_PLAYBACK_16) mode 257 sound/isa/sb/sb8_main.c chip->mode |= SB_MODE_CAPTURE_16; mode 286 sound/isa/sb/sb8_main.c if (chip->mode & SB_MODE_CAPTURE_16) { mode 291 sound/isa/sb/sb8_main.c chip->mode |= SB_MODE_CAPTURE_8; mode 316 sound/isa/sb/sb8_main.c if (chip->mode & SB_MODE_PLAYBACK_16) mode 372 sound/isa/sb/sb8_main.c switch (chip->mode) { mode 403 sound/isa/sb/sb8_main.c if (chip->mode & SB_MODE_PLAYBACK_8) mode 405 sound/isa/sb/sb8_main.c else if (chip->mode & SB_MODE_PLAYBACK_16) mode 419 sound/isa/sb/sb8_main.c if (chip->mode & SB_MODE_CAPTURE_8) mode 421 sound/isa/sb/sb8_main.c else if (chip->mode & SB_MODE_CAPTURE_16) mode 547 sound/isa/sb/sb8_main.c chip->mode &= ~SB_MODE_PLAYBACK; mode 549 sound/isa/sb/sb8_main.c chip->mode &= ~SB_MODE_CAPTURE; mode 146 sound/isa/wavefront/wavefront_midi.c if ((midi->mode[midi->output_mpu] & MPU401_MODE_OUTPUT) == 0) { mode 162 sound/isa/wavefront/wavefront_midi.c midi->mode[midi->output_mpu] &= ~MPU401_MODE_OUTPUT_TRIGGER; mode 193 sound/isa/wavefront/wavefront_midi.c if ((midi->mode[mpu] & MPU401_MODE_OUTPUT) == 0) { mode 217 sound/isa/wavefront/wavefront_midi.c midi->mode[mpu] &= ~MPU401_MODE_OUTPUT_TRIGGER; mode 246 sound/isa/wavefront/wavefront_midi.c midi->mode[mpu] |= MPU401_MODE_INPUT; mode 270 sound/isa/wavefront/wavefront_midi.c midi->mode[mpu] |= MPU401_MODE_OUTPUT; mode 294 sound/isa/wavefront/wavefront_midi.c midi->mode[mpu] &= ~MPU401_MODE_INPUT; mode 317 sound/isa/wavefront/wavefront_midi.c midi->mode[mpu] &= ~MPU401_MODE_OUTPUT; mode 342 sound/isa/wavefront/wavefront_midi.c midi->mode[mpu] |= MPU401_MODE_INPUT_TRIGGER; mode 344 sound/isa/wavefront/wavefront_midi.c midi->mode[mpu] &= ~MPU401_MODE_INPUT_TRIGGER; mode 381 sound/isa/wavefront/wavefront_midi.c if ((midi->mode[mpu] & MPU401_MODE_OUTPUT_TRIGGER) == 0) { mode 389 sound/isa/wavefront/wavefront_midi.c midi->mode[mpu] |= MPU401_MODE_OUTPUT_TRIGGER; mode 392 sound/isa/wavefront/wavefront_midi.c midi->mode[mpu] &= ~MPU401_MODE_OUTPUT_TRIGGER; mode 441 sound/isa/wavefront/wavefront_midi.c if (midi->mode[mpu] & MPU401_MODE_INPUT_TRIGGER) { mode 546 sound/isa/wss/wss_lib.c snd_printk(KERN_DEBUG "get_format: 0x%x (mode=0x%x)\n", format, mode); mode 858 sound/isa/wss/wss_lib.c static int snd_wss_open(struct snd_wss *chip, unsigned int mode) mode 863 sound/isa/wss/wss_lib.c if ((chip->mode & mode) || mode 864 sound/isa/wss/wss_lib.c ((chip->mode & WSS_MODE_OPEN) && chip->single_dma)) { mode 868 sound/isa/wss/wss_lib.c if (chip->mode & WSS_MODE_OPEN) { mode 869 sound/isa/wss/wss_lib.c chip->mode |= mode; mode 895 sound/isa/wss/wss_lib.c chip->mode = mode; mode 900 sound/isa/wss/wss_lib.c static void snd_wss_close(struct snd_wss *chip, unsigned int mode) mode 905 sound/isa/wss/wss_lib.c chip->mode &= ~mode; mode 906 sound/isa/wss/wss_lib.c if (chip->mode & WSS_MODE_OPEN) { mode 942 sound/isa/wss/wss_lib.c chip->mode = 0; mode 1105 sound/isa/wss/wss_lib.c if (chip->mode & WSS_MODE_PLAY) { mode 1109 sound/isa/wss/wss_lib.c if (chip->mode & WSS_MODE_RECORD) { mode 147 sound/oss/dmasound/dmasound_atari.c static int AtaSqOpen(fmode_t mode); mode 909 sound/oss/dmasound/dmasound_atari.c int mode, i, idx; mode 933 sound/oss/dmasound/dmasound_atari.c mode = DMASND_MODE_50KHZ; mode 937 sound/oss/dmasound/dmasound_atari.c mode = DMASND_MODE_50KHZ; mode 940 sound/oss/dmasound/dmasound_atari.c mode = DMASND_MODE_25KHZ; mode 943 sound/oss/dmasound/dmasound_atari.c mode = DMASND_MODE_12KHZ; mode 946 sound/oss/dmasound/dmasound_atari.c mode = DMASND_MODE_6KHZ; mode 949 sound/oss/dmasound/dmasound_atari.c tt_dmasnd.mode = (dmasound.hard.stereo ? mode 951 sound/oss/dmasound/dmasound_atari.c DMASND_MODE_8BIT | mode; mode 1023 sound/oss/dmasound/dmasound_atari.c tt_dmasnd.mode = DMASND_MODE_50KHZ | DMASND_MODE_STEREO | DMASND_MODE_8BIT; mode 1103 sound/oss/dmasound/dmasound_atari.c tt_dmasnd.mode = (dmasound.hard.stereo ? mode 1467 sound/oss/dmasound/dmasound_atari.c static int AtaSqOpen(fmode_t mode) mode 702 sound/oss/dmasound/dmasound_core.c fmode_t mode) mode 704 sound/oss/dmasound/dmasound_core.c if (file->f_mode & mode) { mode 711 sound/oss/dmasound/dmasound_core.c static int sq_open2(struct sound_queue *sq, struct file *file, fmode_t mode, mode 716 sound/oss/dmasound/dmasound_core.c if (file->f_mode & mode) { mode 742 sound/oss/dmasound/dmasound_core.c sq_wake_up(sq, file, mode); mode 117 sound/pci/ac97/ac97_patch.c unsigned char mode = ucontrol->value.enumerated.item[0]; mode 119 sound/pci/ac97/ac97_patch.c if (mode >= kcontrol->private_value) mode 122 sound/pci/ac97/ac97_patch.c if (mode != ac97->channel_mode) { mode 123 sound/pci/ac97/ac97_patch.c ac97->channel_mode = mode; mode 435 sound/pci/ac97/ac97_proc.c entry->mode |= 0200; mode 459 sound/pci/ac97/ac97_proc.c entry->mode = S_IFDIR | 0555; mode 176 sound/pci/ali5451/ali5451.c mode :1, mode 930 sound/pci/ali5451/ali5451.c pvoice->mode = rec; mode 1113 sound/pci/ali5451/ali5451.c if (pvoice->mode) mode 1314 sound/pci/ali5451/ali5451.c 0x1000 : snd_ali_convert_rate(runtime->rate, pvoice->mode); mode 276 sound/pci/als4000.c if (!(chip->mode & SB_RATE_LOCK)) { mode 449 sound/pci/als4000.c chip->mode |= SB_RATE_LOCK_CAPTURE; mode 455 sound/pci/als4000.c chip->mode &= ~SB_RATE_LOCK_CAPTURE; mode 476 sound/pci/als4000.c chip->mode |= SB_RATE_LOCK_PLAYBACK; mode 482 sound/pci/als4000.c chip->mode &= ~SB_RATE_LOCK_PLAYBACK; mode 2289 sound/pci/asihpi/asihpi.c u16 mode; mode 2299 sound/pci/asihpi/asihpi.c h_control, i, &mode)) { mode 2300 sound/pci/asihpi/asihpi.c mapped_names[valid_modes] = mode_names[mode]; mode 2314 sound/pci/asihpi/asihpi.c u16 mode; mode 2316 sound/pci/asihpi/asihpi.c if (hpi_channel_mode_get(h_control, &mode)) mode 2317 sound/pci/asihpi/asihpi.c mode = 1; mode 2319 sound/pci/asihpi/asihpi.c ucontrol->value.enumerated.item[0] = mode - 1; mode 1249 sound/pci/asihpi/hpi.h u16 hpi_outstream_ancillary_reset(u32 h_outstream, u16 mode); mode 1300 sound/pci/asihpi/hpi.h u16 mode, u16 alignment, u16 idle_bit); mode 1409 sound/pci/asihpi/hpi.h u16 hpi_channel_mode_set(u32 h_control, u16 mode); mode 1411 sound/pci/asihpi/hpi.h u16 hpi_channel_mode_get(u32 h_control, u16 *mode); mode 1441 sound/pci/asihpi/hpi.h u16 hpi_tuner_set_mode(u32 h_control, u32 mode, u32 value); mode 1443 sound/pci/asihpi/hpi.h u16 hpi_tuner_get_mode(u32 h_control, u32 mode, u32 *pn_value); mode 654 sound/pci/asihpi/hpi_internal.h } mode; mode 706 sound/pci/asihpi/hpi_internal.h } mode; mode 843 sound/pci/asihpi/hpi_internal.h u32 mode; mode 845 sound/pci/asihpi/hpi_internal.h } mode; mode 1277 sound/pci/asihpi/hpi_internal.h u16 mode; mode 1343 sound/pci/asihpi/hpi_internal.h struct hpi_control_cache_channelmode mode; mode 372 sound/pci/asihpi/hpicmn.c phr->u.c.param1 = pC->u.mode.mode; mode 578 sound/pci/asihpi/hpicmn.c pC->u.mode.mode = (u16)phm->u.c.param1; mode 177 sound/pci/asihpi/hpifunc.c hm.u.ax.mode.adapter_mode = adapter_mode; mode 178 sound/pci/asihpi/hpifunc.c hm.u.ax.mode.query_or_set = query_or_set; mode 192 sound/pci/asihpi/hpifunc.c *padapter_mode = hr.u.ax.mode.adapter_mode; mode 656 sound/pci/asihpi/hpifunc.c u16 hpi_outstream_ancillary_reset(u32 h_outstream, u16 mode) mode 665 sound/pci/asihpi/hpifunc.c hm.u.d.u.data.format.channels = mode; mode 1027 sound/pci/asihpi/hpifunc.c u16 mode, u16 alignment, u16 idle_bit) mode 1036 sound/pci/asihpi/hpifunc.c hm.u.d.u.data.format.format = (mode << 8) | (alignment & 0xff); mode 1648 sound/pci/asihpi/hpifunc.c u16 hpi_channel_mode_set(u32 h_control, u16 mode) mode 1650 sound/pci/asihpi/hpifunc.c return hpi_control_param_set(h_control, HPI_CHANNEL_MODE_MODE, mode, mode 1654 sound/pci/asihpi/hpifunc.c u16 hpi_channel_mode_get(u32 h_control, u16 *mode) mode 1659 sound/pci/asihpi/hpifunc.c if (mode) mode 1660 sound/pci/asihpi/hpifunc.c *mode = (u16)mode32; mode 2655 sound/pci/asihpi/hpifunc.c u16 hpi_tuner_set_mode(u32 h_control, u32 mode, u32 value) mode 2657 sound/pci/asihpi/hpifunc.c return hpi_control_param_set(h_control, HPI_TUNER_MODE, mode, value); mode 2660 sound/pci/asihpi/hpifunc.c u16 hpi_tuner_get_mode(u32 h_control, u32 mode, u32 *pn_value) mode 2662 sound/pci/asihpi/hpifunc.c return hpi_control_param_get(h_control, HPI_TUNER_MODE, mode, 0, mode 430 sound/pci/asihpi/hpioctl.c && hr.u.ax.mode.adapter_mode == HPI_ADAPTER_MODE_LOW_LATENCY) mode 555 sound/pci/au88x0/au88x0_a3d.c static int Vort3DRend_Initialize(vortex_t * v, unsigned short mode) mode 557 sound/pci/au88x0/au88x0_a3d.c v->xt_mode = mode; /* this_14 */ mode 59 sound/pci/au88x0/au88x0_game.c static int vortex_game_open(struct gameport *gameport, int mode) mode 63 sound/pci/au88x0/au88x0_game.c switch (mode) { mode 33 sound/pci/au88x0/au88x0_mpu401.c int temp, mode; mode 53 sound/pci/au88x0/au88x0_mpu401.c mode = 1; mode 55 sound/pci/au88x0/au88x0_mpu401.c temp |= (MIDI_CLOCK_DIV << 8) | ((mode >> 24) & 0xff) << 4; mode 519 sound/pci/azt3328.c unsigned short reg, const char *mode) mode 524 sound/pci/azt3328.c mode, reg); mode 1709 sound/pci/azt3328.c snd_azf3328_gameport_open(struct gameport *gameport, int mode) mode 1714 sound/pci/azt3328.c dev_dbg(chip->card->dev, "gameport_open, mode %d\n", mode); mode 1715 sound/pci/azt3328.c switch (mode) { mode 1598 sound/pci/cmipci.c static int open_device_check(struct cmipci *cm, int mode, struct snd_pcm_substream *subs) mode 1600 sound/pci/cmipci.c int ch = mode & CM_OPEN_CH_MASK; mode 1612 sound/pci/cmipci.c cm->opened[ch] = mode; mode 1614 sound/pci/cmipci.c if (! (mode & CM_OPEN_DAC)) { mode 1625 sound/pci/cmipci.c static void close_device_check(struct cmipci *cm, int mode) mode 1627 sound/pci/cmipci.c int ch = mode & CM_OPEN_CH_MASK; mode 1630 sound/pci/cmipci.c if (cm->opened[ch] == mode) { mode 1229 sound/pci/cs4281.c static int snd_cs4281_gameport_open(struct gameport *gameport, int mode) mode 1231 sound/pci/cs4281.c switch (mode) { mode 1656 sound/pci/cs46xx/cs46xx.h unsigned int mode; mode 2753 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_gameport_open(struct gameport *gameport, int mode) mode 2755 sound/pci/cs46xx/cs46xx_lib.c switch (mode) { mode 2840 sound/pci/cs46xx/cs46xx_lib.c entry->mode = S_IFREG | 0400; mode 791 sound/pci/cs46xx/dsp_spos.c entry->mode = S_IFDIR | 0555; mode 259 sound/pci/ctxfi/ctatc.c desc.mode = MEMRD; mode 562 sound/pci/ctxfi/ctatc.c src_dsc.mode = ARCRW; mode 624 sound/pci/ctxfi/ctatc.c src_dsc.mode = MEMWR; mode 803 sound/pci/ctxfi/ctatc.c desc.mode = MEMRD; mode 1413 sound/pci/ctxfi/ctatc.c src_dsc.mode = ARCRW; mode 135 sound/pci/ctxfi/cthardware.h int (*amixer_set_mode)(void *blk, unsigned int mode); mode 600 sound/pci/ctxfi/cthw20k1.c static int amixer_set_mode(void *blk, unsigned int mode) mode 604 sound/pci/ctxfi/cthw20k1.c set_field(&ctl->amoplo, AMOPLO_M, mode); mode 599 sound/pci/ctxfi/cthw20k2.c static int amixer_set_mode(void *blk, unsigned int mode) mode 603 sound/pci/ctxfi/cthw20k2.c set_field(&ctl->amoplo, AMOPLO_M, mode); mode 190 sound/pci/ctxfi/ctsrc.c if (MEMWR == src->mode) mode 215 sound/pci/ctxfi/ctsrc.c src_default_config[src->mode](src); mode 363 sound/pci/ctxfi/ctsrc.c n = (MEMRD == desc->mode) ? desc->multi : 1; mode 372 sound/pci/ctxfi/ctsrc.c p->mode = desc->mode; mode 373 sound/pci/ctxfi/ctsrc.c src_default_config[desc->mode](p); mode 397 sound/pci/ctxfi/ctsrc.c n = (MEMRD == src->mode) ? src->multi : 1; mode 403 sound/pci/ctxfi/ctsrc.c p->mode = NUM_SRCMODES; mode 423 sound/pci/ctxfi/ctsrc.c if (MEMRD == desc->mode) mode 436 sound/pci/ctxfi/ctsrc.c if (MEMRD == desc->mode) mode 458 sound/pci/ctxfi/ctsrc.c if (MEMRD == desc->mode) mode 473 sound/pci/ctxfi/ctsrc.c if (MEMRD == src->mode) mode 50 sound/pci/ctxfi/ctsrc.h unsigned char mode; /* Working mode of this SRC resource */ mode 79 sound/pci/ctxfi/ctsrc.h unsigned char mode; /* Working mode of the requested srcs */ mode 32 sound/pci/echoaudio/echo3g_dsp.c static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode); mode 33 sound/pci/echoaudio/echo3g_dsp.c static int set_digital_mode(struct echoaudio *chip, u8 mode); mode 1412 sound/pci/echoaudio/echoaudio.c int i, mode; mode 1415 sound/pci/echoaudio/echoaudio.c mode = chip->digital_mode; mode 1417 sound/pci/echoaudio/echoaudio.c if (mode == chip->digital_mode_list[i]) { mode 1504 sound/pci/echoaudio/echoaudio.c int mode; mode 1507 sound/pci/echoaudio/echoaudio.c mode = !!ucontrol->value.enumerated.item[0]; mode 1508 sound/pci/echoaudio/echoaudio.c if (mode != chip->professional_spdif) { mode 1510 sound/pci/echoaudio/echoaudio.c set_professional_spdif(chip, mode); mode 102 sound/pci/echoaudio/echoaudio_3g.c static int set_digital_mode(struct echoaudio *chip, u8 mode) mode 111 sound/pci/echoaudio/echoaudio_3g.c if (snd_BUG_ON(!(chip->digital_modes & (1 << mode)))) mode 115 sound/pci/echoaudio/echoaudio_3g.c err = dsp_set_digital_mode(chip, mode); mode 120 sound/pci/echoaudio/echoaudio_3g.c if (err >= 0 && previous_mode != mode && mode 121 sound/pci/echoaudio/echoaudio_3g.c (previous_mode == DIGITAL_MODE_ADAT || mode == DIGITAL_MODE_ADAT)) { mode 377 sound/pci/echoaudio/echoaudio_3g.c static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode) mode 384 sound/pci/echoaudio/echoaudio_3g.c switch (mode) { mode 396 sound/pci/echoaudio/echoaudio_3g.c "Digital mode not supported: %d\n", mode); mode 412 sound/pci/echoaudio/echoaudio_3g.c switch (mode) { mode 429 sound/pci/echoaudio/echoaudio_3g.c chip->digital_mode = mode; mode 109 sound/pci/echoaudio/echoaudio_gml.c static int set_digital_mode(struct echoaudio *chip, u8 mode) mode 121 sound/pci/echoaudio/echoaudio_gml.c if (snd_BUG_ON(!(chip->digital_modes & (1 << mode)))) mode 125 sound/pci/echoaudio/echoaudio_gml.c err = dsp_set_digital_mode(chip, mode); mode 130 sound/pci/echoaudio/echoaudio_gml.c if (err >= 0 && previous_mode != mode && mode 131 sound/pci/echoaudio/echoaudio_gml.c (previous_mode == DIGITAL_MODE_ADAT || mode == DIGITAL_MODE_ADAT)) { mode 35 sound/pci/echoaudio/gina24_dsp.c static int set_digital_mode(struct echoaudio *chip, u8 mode); mode 282 sound/pci/echoaudio/gina24_dsp.c static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode) mode 289 sound/pci/echoaudio/gina24_dsp.c switch (mode) { mode 302 sound/pci/echoaudio/gina24_dsp.c "Digital mode not supported: %d\n", mode); mode 318 sound/pci/echoaudio/gina24_dsp.c switch (mode) { mode 340 sound/pci/echoaudio/gina24_dsp.c chip->digital_mode = mode; mode 34 sound/pci/echoaudio/layla24_dsp.c static int set_digital_mode(struct echoaudio *chip, u8 mode); mode 330 sound/pci/echoaudio/layla24_dsp.c static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode) mode 338 sound/pci/echoaudio/layla24_dsp.c switch (mode) { mode 352 sound/pci/echoaudio/layla24_dsp.c "Digital mode not supported: %d\n", mode); mode 373 sound/pci/echoaudio/layla24_dsp.c switch (mode) { mode 390 sound/pci/echoaudio/layla24_dsp.c chip->digital_mode = mode; mode 392 sound/pci/echoaudio/layla24_dsp.c dev_dbg(chip->card->dev, "set_digital_mode to %d\n", mode); mode 35 sound/pci/echoaudio/mona_dsp.c static int set_digital_mode(struct echoaudio *chip, u8 mode); mode 364 sound/pci/echoaudio/mona_dsp.c static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode) mode 371 sound/pci/echoaudio/mona_dsp.c switch (mode) { mode 383 sound/pci/echoaudio/mona_dsp.c "Digital mode not supported: %d\n", mode); mode 399 sound/pci/echoaudio/mona_dsp.c switch (mode) { mode 422 sound/pci/echoaudio/mona_dsp.c chip->digital_mode = mode; mode 424 sound/pci/echoaudio/mona_dsp.c dev_dbg(chip->card->dev, "set_digital_mode to %d\n", mode); mode 47 sound/pci/emu10k1/emupcm.c if (emu->pcm_capture_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) mode 59 sound/pci/emu10k1/emupcm.c if (emu->pcm_capture_mic_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) mode 71 sound/pci/emu10k1/emupcm.c if (emu->pcm_capture_efx_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) mode 595 sound/pci/emu10k1/emuproc.c entry->mode = S_IFREG | 0444 /*| S_IWUSR*/; mode 602 sound/pci/emu10k1/emuproc.c entry->mode = S_IFREG | 0444 /*| S_IWUSR*/; mode 609 sound/pci/emu10k1/emuproc.c entry->mode = S_IFREG | 0444 /*| S_IWUSR*/; mode 616 sound/pci/emu10k1/emuproc.c entry->mode = S_IFREG | 0444 /*| S_IWUSR*/; mode 381 sound/pci/ens1370.c unsigned int mode; mode 874 sound/pci/ens1370.c unsigned int mode = 0; mode 879 sound/pci/ens1370.c mode |= 0x02; mode 881 sound/pci/ens1370.c mode |= 0x01; mode 896 sound/pci/ens1370.c ensoniq->sctrl |= ES_P1_INT_EN | ES_P1_MODEO(mode); mode 898 sound/pci/ens1370.c outl((ensoniq->p1_period_size >> snd_ensoniq_sample_shift[mode]) - 1, mode 922 sound/pci/ens1370.c unsigned int mode = 0; mode 927 sound/pci/ens1370.c mode |= 0x02; mode 929 sound/pci/ens1370.c mode |= 0x01; mode 938 sound/pci/ens1370.c ensoniq->sctrl |= ES_P2_INT_EN | ES_P2_MODEO(mode) | mode 939 sound/pci/ens1370.c ES_P2_END_INCO(mode & 2 ? 2 : 1) | ES_P2_ST_INCO(0); mode 941 sound/pci/ens1370.c outl((ensoniq->p2_period_size >> snd_ensoniq_sample_shift[mode]) - 1, mode 962 sound/pci/ens1370.c unsigned int mode = 0; mode 967 sound/pci/ens1370.c mode |= 0x02; mode 969 sound/pci/ens1370.c mode |= 0x01; mode 977 sound/pci/ens1370.c ensoniq->sctrl |= ES_R1_INT_EN | ES_R1_MODEO(mode); mode 979 sound/pci/ens1370.c outl((ensoniq->c_period_size >> snd_ensoniq_sample_shift[mode]) - 1, mode 1118 sound/pci/ens1370.c ensoniq->mode |= ES_MODE_PLAY1; mode 1141 sound/pci/ens1370.c ensoniq->mode |= ES_MODE_PLAY2; mode 1164 sound/pci/ens1370.c ensoniq->mode |= ES_MODE_CAPTURE; mode 1183 sound/pci/ens1370.c ensoniq->mode &= ~ES_MODE_PLAY1; mode 1196 sound/pci/ens1370.c ensoniq->mode &= ~ES_MODE_PLAY2; mode 1210 sound/pci/ens1370.c ensoniq->mode &= ~ES_MODE_CAPTURE; mode 447 sound/pci/es1938.c int mode) mode 459 sound/pci/es1938.c if (mode == DAC2) { mode 471 sound/pci/es1968.c int mode; /* playback / capture */ mode 927 sound/pci/es1968.c static inline void snd_es1968_trigger_apu(struct es1968 *esm, int apu, int mode) mode 932 sound/pci/es1968.c (mode << 4)); mode 940 sound/pci/es1968.c if (es->mode == ESM_MODE_CAPTURE) { mode 947 sound/pci/es1968.c if (es->mode == ESM_MODE_CAPTURE) { mode 960 sound/pci/es1968.c if (es->mode == ESM_MODE_CAPTURE) { mode 1094 sound/pci/es1968.c int mode, int route) mode 1098 sound/pci/es1968.c es->apu_mode[channel] = mode; mode 1226 sound/pci/es1968.c switch (es->mode) { mode 1559 sound/pci/es1968.c es->mode = ESM_MODE_PLAY; mode 1606 sound/pci/es1968.c es->mode = ESM_MODE_CAPTURE; mode 2409 sound/pci/es1968.c switch (es->mode) { mode 3977 sound/pci/hda/hda_generic.c unsigned int mode; mode 3979 sound/pci/hda/hda_generic.c mode = ucontrol->value.enumerated.item[0]; mode 3980 sound/pci/hda/hda_generic.c if (mode > MICMUTE_LED_FOLLOW_MUTE) mode 3981 sound/pci/hda/hda_generic.c mode = MICMUTE_LED_FOLLOW_MUTE; mode 3982 sound/pci/hda/hda_generic.c if (mode == spec->micmute_led.led_mode) mode 3984 sound/pci/hda/hda_generic.c spec->micmute_led.led_mode = mode; mode 517 sound/pci/hda/patch_hdmi.c entry->mode |= 0200; mode 116 sound/pci/ice1712/wm8776.c static void snd_wm8776_get_agc(struct snd_wm8776 *wm, u16 *mode, u16 *nothing) mode 118 sound/pci/ice1712/wm8776.c *mode = wm->agc_mode; mode 768 sound/pci/korg1212/korg1212.c enum MonitorModeSelector mode) mode 773 sound/pci/korg1212/korg1212.c switch (mode) { mode 610 sound/pci/oxygen/xonar_wm87x6.c unsigned int value, reg_index, mode; mode 617 sound/pci/oxygen/xonar_wm87x6.c mode = LC_CONTROL_LIMITER; mode 619 sound/pci/oxygen/xonar_wm87x6.c mode = LC_CONTROL_ALC; mode 620 sound/pci/oxygen/xonar_wm87x6.c if (!(ctl->private_value & mode)) mode 871 sound/pci/oxygen/xonar_wm87x6.c struct snd_kcontrol *ctl, unsigned int mode) mode 875 sound/pci/oxygen/xonar_wm87x6.c if (ctl->private_value & mode) mode 890 sound/pci/oxygen/xonar_wm87x6.c unsigned int mode = 0, i; mode 913 sound/pci/oxygen/xonar_wm87x6.c mode = LC_CONTROL_LIMITER; mode 921 sound/pci/oxygen/xonar_wm87x6.c mode = LC_CONTROL_ALC; mode 925 sound/pci/oxygen/xonar_wm87x6.c activate_control(chip, data->lc_controls[i], mode); mode 553 sound/pci/rme32.c static int snd_rme32_setclockmode(struct rme32 * rme32, int mode) mode 555 sound/pci/rme32.c switch (mode) { mode 795 sound/pci/rme96.c int mode) mode 797 sound/pci/rme96.c switch (mode) { mode 1968 sound/pci/rme9652/hdsp.c static int hdsp_set_clock_source(struct hdsp *hdsp, int mode) mode 1971 sound/pci/rme9652/hdsp.c switch (mode) { mode 2109 sound/pci/rme9652/hdsp.c static int hdsp_set_da_gain(struct hdsp *hdsp, int mode) mode 2112 sound/pci/rme9652/hdsp.c switch (mode) { mode 2188 sound/pci/rme9652/hdsp.c static int hdsp_set_ad_gain(struct hdsp *hdsp, int mode) mode 2191 sound/pci/rme9652/hdsp.c switch (mode) { mode 2267 sound/pci/rme9652/hdsp.c static int hdsp_set_phone_gain(struct hdsp *hdsp, int mode) mode 2270 sound/pci/rme9652/hdsp.c switch (mode) { mode 2987 sound/pci/rme9652/hdsp.c static int hdsp_set_rpm_input12(struct hdsp *hdsp, int mode) mode 2990 sound/pci/rme9652/hdsp.c switch (mode) { mode 3072 sound/pci/rme9652/hdsp.c static int hdsp_set_rpm_input34(struct hdsp *hdsp, int mode) mode 3075 sound/pci/rme9652/hdsp.c switch (mode) { mode 2541 sound/pci/rme9652/hdspm.c static void hdspm_set_system_clock_mode(struct hdspm *hdspm, int mode) mode 2546 sound/pci/rme9652/hdspm.c (0 == mode)); mode 2615 sound/pci/rme9652/hdspm.c static int hdspm_set_clock_source(struct hdspm * hdspm, int mode) mode 2618 sound/pci/rme9652/hdspm.c switch (mode) { mode 3407 sound/pci/rme9652/hdspm.c static int hdspm_set_qs_wire(struct hdspm * hdspm, int mode) mode 3410 sound/pci/rme9652/hdspm.c switch (mode) { mode 3480 sound/pci/rme9652/hdspm.c static int hdspm_set_tristate(struct hdspm *hdspm, int mode, u32 regmask) mode 3483 sound/pci/rme9652/hdspm.c hdspm->settings_register |= (regmask * mode); mode 3561 sound/pci/rme9652/hdspm.c static int hdspm_set_madi_speedmode(struct hdspm *hdspm, int mode) mode 3564 sound/pci/rme9652/hdspm.c switch (mode) { mode 1084 sound/pci/rme9652/rme9652.c static int rme9652_set_sync_mode(struct snd_rme9652 *rme9652, int mode) mode 1088 sound/pci/rme9652/rme9652.c switch (mode) { mode 207 sound/pci/sonicvibes.c unsigned int mode; mode 808 sound/pci/sonicvibes.c sonic->mode |= SV_MODE_PLAY; mode 820 sound/pci/sonicvibes.c sonic->mode |= SV_MODE_CAPTURE; mode 833 sound/pci/sonicvibes.c sonic->mode &= ~SV_MODE_PLAY; mode 842 sound/pci/sonicvibes.c sonic->mode &= ~SV_MODE_CAPTURE; mode 241 sound/pci/trident/trident.h int mode; /* operation mode */ mode 3147 sound/pci/trident/trident_main.c static int snd_trident_gameport_open(struct gameport *gameport, int mode) mode 3154 sound/pci/trident/trident_main.c switch (mode) { mode 787 sound/pci/ymfpci/ymfpci_main.c u32 status, nvoice, mode; mode 812 sound/pci/ymfpci/ymfpci_main.c mode = snd_ymfpci_readl(chip, YDSXGR_MODE) | 2; mode 813 sound/pci/ymfpci/ymfpci_main.c snd_ymfpci_writel(chip, YDSXGR_MODE, mode); mode 1643 sound/pci/ymfpci/ymfpci_main.c u16 reg, mode; mode 1652 sound/pci/ymfpci/ymfpci_main.c mode = snd_ymfpci_readw(chip, YDSXGR_GPIOTYPECONFIG); mode 1653 sound/pci/ymfpci/ymfpci_main.c mode &= ~(3 << (pin * 2)); mode 1654 sound/pci/ymfpci/ymfpci_main.c snd_ymfpci_writew(chip, YDSXGR_GPIOTYPECONFIG, mode); mode 1656 sound/pci/ymfpci/ymfpci_main.c mode = snd_ymfpci_readw(chip, YDSXGR_GPIOINSTATUS); mode 1658 sound/pci/ymfpci/ymfpci_main.c return (mode >> pin) & 1; mode 339 sound/soc/bcm/bcm2835-i2s.c unsigned int mode, format; mode 358 sound/soc/bcm/bcm2835-i2s.c mode = 0; mode 534 sound/soc/bcm/bcm2835-i2s.c mode |= BCM2835_I2S_FTXP | BCM2835_I2S_FRXP; mode 537 sound/soc/bcm/bcm2835-i2s.c mode |= BCM2835_I2S_FLEN(frame_length - 1); mode 538 sound/soc/bcm/bcm2835-i2s.c mode |= BCM2835_I2S_FSLEN(framesync_length); mode 542 sound/soc/bcm/bcm2835-i2s.c mode |= BCM2835_I2S_CLKM; mode 546 sound/soc/bcm/bcm2835-i2s.c mode |= BCM2835_I2S_FSM; mode 552 sound/soc/bcm/bcm2835-i2s.c mode |= BCM2835_I2S_CLKI; mode 566 sound/soc/bcm/bcm2835-i2s.c mode |= BCM2835_I2S_FSI; mode 571 sound/soc/bcm/bcm2835-i2s.c mode |= BCM2835_I2S_FSI; mode 577 sound/soc/bcm/bcm2835-i2s.c regmap_write(dev->i2s_regmap, BCM2835_I2S_MODE_A_REG, mode); mode 608 sound/soc/bcm/bcm2835-i2s.c !!(mode & BCM2835_I2S_CLKM), mode 609 sound/soc/bcm/bcm2835-i2s.c !!(mode & BCM2835_I2S_CLKI), mode 610 sound/soc/bcm/bcm2835-i2s.c !!(mode & BCM2835_I2S_FSM), mode 611 sound/soc/bcm/bcm2835-i2s.c !!(mode & BCM2835_I2S_FSI), mode 612 sound/soc/bcm/bcm2835-i2s.c (mode & BCM2835_I2S_FSI) ? "falling" : "rising"); mode 638 sound/soc/bcm/cygnus-ssp.c switch (aio->mode) { mode 868 sound/soc/bcm/cygnus-ssp.c aio->mode = CYGNUS_SSPMODE_I2S; mode 885 sound/soc/bcm/cygnus-ssp.c aio->mode = CYGNUS_SSPMODE_TDM; mode 1235 sound/soc/bcm/cygnus-ssp.c aio->mode = CYGNUS_SSPMODE_UNKNOWN; mode 1246 sound/soc/bcm/cygnus-ssp.c aio->mode = CYGNUS_SSPMODE_I2S; mode 93 sound/soc/bcm/cygnus-ssp.h int mode; mode 491 sound/soc/codecs/adau1761.c enum adau1761_digmic_jackdet_pin_mode mode; mode 496 sound/soc/codecs/adau1761.c mode = pdata->digmic_jackdetect_pin_mode; mode 498 sound/soc/codecs/adau1761.c mode = ADAU1761_DIGMIC_JACKDET_PIN_MODE_NONE; mode 500 sound/soc/codecs/adau1761.c switch (mode) { mode 554 sound/soc/codecs/adau1761.c enum adau1761_output_mode mode; mode 558 sound/soc/codecs/adau1761.c mode = pdata->headphone_mode; mode 560 sound/soc/codecs/adau1761.c mode = ADAU1761_OUTPUT_MODE_HEADPHONE; mode 562 sound/soc/codecs/adau1761.c switch (mode) { mode 581 sound/soc/codecs/adau1761.c if (mode == ADAU1761_OUTPUT_MODE_HEADPHONE_CAPLESS) { mode 273 sound/soc/codecs/ak4104.c spi->mode = SPI_MODE_0; mode 438 sound/soc/codecs/ak4458.c int mode; mode 445 sound/soc/codecs/ak4458.c mode = AK4458_MODE_TDM128; mode 448 sound/soc/codecs/ak4458.c mode = AK4458_MODE_TDM256; mode 451 sound/soc/codecs/ak4458.c mode = AK4458_MODE_TDM512; mode 454 sound/soc/codecs/ak4458.c mode = AK4458_MODE_NORMAL; mode 460 sound/soc/codecs/ak4458.c mode); mode 517 sound/soc/codecs/ak4671.c u8 mode; mode 521 sound/soc/codecs/ak4671.c mode = snd_soc_component_read32(component, AK4671_PLL_MODE_SELECT1); mode 525 sound/soc/codecs/ak4671.c mode |= AK4671_M_S; mode 528 sound/soc/codecs/ak4671.c mode &= ~(AK4671_M_S); mode 555 sound/soc/codecs/ak4671.c snd_soc_component_write(component, AK4671_PLL_MODE_SELECT1, mode); mode 1446 sound/soc/codecs/arizona.c int lrclk, bclk, mode, base; mode 1455 sound/soc/codecs/arizona.c mode = ARIZONA_FMT_DSP_MODE_A; mode 1463 sound/soc/codecs/arizona.c mode = ARIZONA_FMT_DSP_MODE_B; mode 1466 sound/soc/codecs/arizona.c mode = ARIZONA_FMT_I2S_MODE; mode 1474 sound/soc/codecs/arizona.c mode = ARIZONA_FMT_LEFT_JUSTIFIED_MODE; mode 1530 sound/soc/codecs/arizona.c ARIZONA_AIF1_FMT_MASK, mode); mode 2708 sound/soc/codecs/arizona.c static bool arizona_eq_filter_unstable(bool mode, __be16 _a, __be16 _b) mode 2713 sound/soc/codecs/arizona.c if (!mode) { mode 134 sound/soc/codecs/cs4270.c unsigned int mode; /* The mode (I2S or left-justified) */ mode 287 sound/soc/codecs/cs4270.c cs4270->mode = format & SND_SOC_DAIFMT_FORMAT_MASK; mode 375 sound/soc/codecs/cs4270.c switch (cs4270->mode) { mode 375 sound/soc/codecs/cs42l51.c int intf_ctl, power_ctl, fmt, mode; mode 417 sound/soc/codecs/cs42l51.c mode = ratios[i].speed_mode; mode 420 sound/soc/codecs/cs42l51.c mode = CS42L51_DSM_MODE; mode 421 sound/soc/codecs/cs42l51.c power_ctl |= CS42L51_MIC_POWER_CTL_SPEED(mode); mode 84 sound/soc/codecs/cs4341.c unsigned int mode = 0; mode 101 sound/soc/codecs/cs4341.c mode = b24 ? CS4341_MODE2_DIF_I2S_24 : CS4341_MODE2_DIF_I2S_16; mode 104 sound/soc/codecs/cs4341.c mode = CS4341_MODE2_DIF_LJ_24; mode 107 sound/soc/codecs/cs4341.c mode = b24 ? CS4341_MODE2_DIF_RJ_24 : CS4341_MODE2_DIF_RJ_16; mode 116 sound/soc/codecs/cs4341.c CS4341_MODE2_DIF, mode); mode 47 sound/soc/codecs/cs4349.c unsigned int mode; mode 84 sound/soc/codecs/cs4349.c cs4349->mode = format & SND_SOC_DAIFMT_FORMAT_MASK; mode 103 sound/soc/codecs/cs4349.c switch (cs4349->mode) { mode 217 sound/soc/codecs/da7210.c u8 mode; /* 0 = slave, 1 = master */ mode 999 sound/soc/codecs/da7210.c (da7210->master == da7210_pll_div[cnt].mode) && mode 245 sound/soc/codecs/da9055.c u8 mode; /* 0 = slave, 1 = master */ mode 1161 sound/soc/codecs/da9055.c u8 aif_clk_mode, aif_ctrl, mode; mode 1166 sound/soc/codecs/da9055.c mode = 1; mode 1171 sound/soc/codecs/da9055.c mode = 0; mode 1180 sound/soc/codecs/da9055.c (da9055->master != mode)) mode 1183 sound/soc/codecs/da9055.c da9055->master = mode; mode 1298 sound/soc/codecs/da9055.c (da9055->master == da9055_pll_div[cnt].mode) && mode 45 sound/soc/codecs/es7134.c const struct es7134_clock_mode *mode = &priv->chip->modes[i]; mode 47 sound/soc/codecs/es7134.c if (rate < mode->rate_min || rate > mode->rate_max) mode 50 sound/soc/codecs/es7134.c for (j = 0; j < mode->mclk_fs_num; j++) { mode 51 sound/soc/codecs/es7134.c if (mode->mclk_fs[j] == mfs) mode 50 sound/soc/codecs/es7241.c const struct es7241_clock_mode *mode, mode 58 sound/soc/codecs/es7241.c for (j = 0; j < mode->slv_mfs_num; j++) { mode 59 sound/soc/codecs/es7241.c if (mode->slv_mfs[j] == mfs) mode 71 sound/soc/codecs/es7241.c const struct es7241_clock_mode *mode, mode 78 sound/soc/codecs/es7241.c if (mfs && mfs != mode->mst_mfs) mode 81 sound/soc/codecs/es7241.c es7241_set_mode(priv, mode->mst_m0, mode->mst_m1); mode 96 sound/soc/codecs/es7241.c const struct es7241_clock_mode *mode = &priv->chip->modes[i]; mode 98 sound/soc/codecs/es7241.c if (rate < mode->rate_min || rate >= mode->rate_max) mode 102 sound/soc/codecs/es7241.c return es7241_set_slave_mode(priv, mode, mfs); mode 104 sound/soc/codecs/es7241.c return es7241_set_master_mode(priv, mode, mfs); mode 55 sound/soc/codecs/l3.c udelay(adap->mode); mode 68 sound/soc/codecs/l3.c udelay(adap->mode); mode 1145 sound/soc/codecs/lm49453.c int mode = 0; mode 1172 sound/soc/codecs/lm49453.c mode = 1; mode 1177 sound/soc/codecs/lm49453.c mode = 1; mode 1187 sound/soc/codecs/lm49453.c (aif_val | mode | clk_phase)); mode 2722 sound/soc/codecs/madera.c int lrclk, bclk, mode, base; mode 2731 sound/soc/codecs/madera.c mode = MADERA_FMT_DSP_MODE_A; mode 2739 sound/soc/codecs/madera.c mode = MADERA_FMT_DSP_MODE_B; mode 2742 sound/soc/codecs/madera.c mode = MADERA_FMT_I2S_MODE; mode 2750 sound/soc/codecs/madera.c mode = MADERA_FMT_LEFT_JUSTIFIED_MODE; mode 2806 sound/soc/codecs/madera.c MADERA_AIF1_FMT_MASK, mode); mode 4605 sound/soc/codecs/madera.c static bool madera_eq_filter_unstable(bool mode, __be16 _a, __be16 _b) mode 4610 sound/soc/codecs/madera.c if (!mode) { mode 143 sound/soc/codecs/max98927.c unsigned int mode = 0; mode 152 sound/soc/codecs/max98927.c mode = MAX98927_PCM_MASTER_MODE_SLAVE; mode 156 sound/soc/codecs/max98927.c mode = MAX98927_PCM_MASTER_MODE_MASTER; mode 166 sound/soc/codecs/max98927.c mode); mode 402 sound/soc/codecs/ml26124.c unsigned char mode; mode 408 sound/soc/codecs/ml26124.c mode = 1; mode 411 sound/soc/codecs/ml26124.c mode = 0; mode 416 sound/soc/codecs/ml26124.c snd_soc_component_update_bits(component, ML26124_SAI_MODE_SEL, BIT(0), mode); mode 1123 sound/soc/codecs/sta350.c int i, mode = -EINVAL; mode 1127 sound/soc/codecs/sta350.c mode = i; mode 1129 sound/soc/codecs/sta350.c if (mode < 0) mode 1133 sound/soc/codecs/sta350.c pdata->ffx_power_output_mode = mode; mode 269 sound/soc/codecs/sta529.c u8 mode = 0; mode 274 sound/soc/codecs/sta529.c mode = LEFT_J_DATA_FORMAT; mode 277 sound/soc/codecs/sta529.c mode = I2S_DATA_FORMAT; mode 280 sound/soc/codecs/sta529.c mode = RIGHT_J_DATA_FORMAT; mode 286 sound/soc/codecs/sta529.c snd_soc_component_update_bits(component, STA529_S2PCFG0, DATA_FORMAT_MSK, mode); mode 25 sound/soc/codecs/tlv320aic23-spi.c spi->mode = SPI_MODE_0; mode 178 sound/soc/codecs/twl4030.c int mode; mode 184 sound/soc/codecs/twl4030.c mode = twl4030_audio_enable_resource(TWL4030_AUDIO_RES_POWER); mode 186 sound/soc/codecs/twl4030.c mode = twl4030_audio_disable_resource(TWL4030_AUDIO_RES_POWER); mode 188 sound/soc/codecs/twl4030.c if (mode >= 0) mode 1695 sound/soc/codecs/twl4030.c u8 mode, old_mode, format, old_format; mode 1700 sound/soc/codecs/twl4030.c mode = twl4030_read(component, TWL4030_REG_CODEC_MODE); mode 1704 sound/soc/codecs/twl4030.c if ((mode & TWL4030_OPTION_1) && mode 1718 sound/soc/codecs/twl4030.c mode = old_mode & ~TWL4030_APLL_RATE; mode 1722 sound/soc/codecs/twl4030.c mode |= TWL4030_APLL_RATE_8000; mode 1725 sound/soc/codecs/twl4030.c mode |= TWL4030_APLL_RATE_11025; mode 1728 sound/soc/codecs/twl4030.c mode |= TWL4030_APLL_RATE_12000; mode 1731 sound/soc/codecs/twl4030.c mode |= TWL4030_APLL_RATE_16000; mode 1734 sound/soc/codecs/twl4030.c mode |= TWL4030_APLL_RATE_22050; mode 1737 sound/soc/codecs/twl4030.c mode |= TWL4030_APLL_RATE_24000; mode 1740 sound/soc/codecs/twl4030.c mode |= TWL4030_APLL_RATE_32000; mode 1743 sound/soc/codecs/twl4030.c mode |= TWL4030_APLL_RATE_44100; mode 1746 sound/soc/codecs/twl4030.c mode |= TWL4030_APLL_RATE_48000; mode 1749 sound/soc/codecs/twl4030.c mode |= TWL4030_APLL_RATE_96000; mode 1774 sound/soc/codecs/twl4030.c if (format != old_format || mode != old_mode) { mode 1781 sound/soc/codecs/twl4030.c twl4030_write(component, TWL4030_REG_CODEC_MODE, mode); mode 1785 sound/soc/codecs/twl4030.c twl4030_write(component, TWL4030_REG_CODEC_MODE, mode); mode 1927 sound/soc/codecs/twl4030.c u8 mode; mode 1942 sound/soc/codecs/twl4030.c mode = twl4030_read(component, TWL4030_REG_CODEC_MODE) mode 1945 sound/soc/codecs/twl4030.c if (mode != TWL4030_OPTION_2) { mode 1969 sound/soc/codecs/twl4030.c u8 old_mode, mode; mode 1977 sound/soc/codecs/twl4030.c mode = old_mode; mode 1981 sound/soc/codecs/twl4030.c mode &= ~(TWL4030_SEL_16K); mode 1984 sound/soc/codecs/twl4030.c mode |= TWL4030_SEL_16K; mode 1992 sound/soc/codecs/twl4030.c if (mode != old_mode) { mode 1999 sound/soc/codecs/twl4030.c twl4030_write(component, TWL4030_REG_CODEC_MODE, mode); mode 2002 sound/soc/codecs/twl4030.c twl4030_write(component, TWL4030_REG_CODEC_MODE, mode); mode 14 sound/soc/codecs/wcd-clsh-v2.c int mode; mode 127 sound/soc/codecs/wcd-clsh-v2.c int mode) mode 130 sound/soc/codecs/wcd-clsh-v2.c if (mode == CLS_H_HIFI) mode 141 sound/soc/codecs/wcd-clsh-v2.c int mode) mode 144 sound/soc/codecs/wcd-clsh-v2.c if (mode == CLS_H_HIFI) mode 155 sound/soc/codecs/wcd-clsh-v2.c int mode, mode 174 sound/soc/codecs/wcd-clsh-v2.c int mode, mode 195 sound/soc/codecs/wcd-clsh-v2.c static void wcd_clsh_set_gain_path(struct wcd_clsh_ctrl *ctrl, int mode) mode 200 sound/soc/codecs/wcd-clsh-v2.c switch (mode) { mode 223 sound/soc/codecs/wcd-clsh-v2.c int mode) mode 229 sound/soc/codecs/wcd-clsh-v2.c switch (mode) { mode 257 sound/soc/codecs/wcd-clsh-v2.c if (mode != CLS_H_LP) mode 268 sound/soc/codecs/wcd-clsh-v2.c int mode) mode 280 sound/soc/codecs/wcd-clsh-v2.c int mode) mode 282 sound/soc/codecs/wcd-clsh-v2.c if (mode == CLS_AB) mode 293 sound/soc/codecs/wcd-clsh-v2.c bool is_enable, int mode) mode 297 sound/soc/codecs/wcd-clsh-v2.c if (mode != CLS_AB) { mode 299 sound/soc/codecs/wcd-clsh-v2.c __func__, mode); mode 304 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_buck_regulator_mode(comp, mode); mode 305 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_buck_mode(comp, mode); mode 306 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_flyback_mode(comp, mode); mode 307 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_flyback_ctrl(ctrl, mode, true); mode 308 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_flyback_current(comp, mode); mode 309 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_buck_ctrl(ctrl, mode, true); mode 311 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_buck_ctrl(ctrl, mode, false); mode 312 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_flyback_ctrl(ctrl, mode, false); mode 320 sound/soc/codecs/wcd-clsh-v2.c bool is_enable, int mode) mode 324 sound/soc/codecs/wcd-clsh-v2.c if (mode == CLS_H_NORMAL) { mode 331 sound/soc/codecs/wcd-clsh-v2.c if (mode != CLS_AB) { mode 350 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_buck_regulator_mode(comp, mode); mode 351 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_flyback_mode(comp, mode); mode 352 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_flyback_ctrl(ctrl, mode, true); mode 353 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_flyback_current(comp, mode); mode 354 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_buck_mode(comp, mode); mode 355 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_buck_ctrl(ctrl, mode, true); mode 356 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_hph_mode(comp, mode); mode 357 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_gain_path(ctrl, mode); mode 361 sound/soc/codecs/wcd-clsh-v2.c if (mode != CLS_AB) { mode 378 sound/soc/codecs/wcd-clsh-v2.c bool is_enable, int mode) mode 382 sound/soc/codecs/wcd-clsh-v2.c if (mode == CLS_H_NORMAL) { mode 389 sound/soc/codecs/wcd-clsh-v2.c if (mode != CLS_AB) { mode 408 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_buck_regulator_mode(comp, mode); mode 409 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_flyback_mode(comp, mode); mode 410 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_flyback_ctrl(ctrl, mode, true); mode 411 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_flyback_current(comp, mode); mode 412 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_buck_mode(comp, mode); mode 413 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_buck_ctrl(ctrl, mode, true); mode 414 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_hph_mode(comp, mode); mode 415 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_gain_path(ctrl, mode); mode 419 sound/soc/codecs/wcd-clsh-v2.c if (mode != CLS_AB) { mode 436 sound/soc/codecs/wcd-clsh-v2.c bool is_enable, int mode) mode 440 sound/soc/codecs/wcd-clsh-v2.c if (mode != CLS_H_NORMAL) { mode 442 sound/soc/codecs/wcd-clsh-v2.c __func__, mode); mode 452 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_buck_mode(comp, mode); mode 453 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_flyback_mode(comp, mode); mode 454 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_flyback_ctrl(ctrl, mode, true); mode 455 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_set_flyback_current(comp, mode); mode 456 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_buck_ctrl(ctrl, mode, true); mode 463 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_buck_ctrl(ctrl, mode, false); mode 464 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_flyback_ctrl(ctrl, mode, false); mode 471 sound/soc/codecs/wcd-clsh-v2.c bool is_enable, int mode) mode 475 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_state_ear(ctrl, req_state, is_enable, mode); mode 478 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_state_hph_l(ctrl, req_state, is_enable, mode); mode 481 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_state_hph_r(ctrl, req_state, is_enable, mode); mode 485 sound/soc/codecs/wcd-clsh-v2.c wcd_clsh_state_lo(ctrl, req_state, is_enable, mode); mode 526 sound/soc/codecs/wcd-clsh-v2.c enum wcd_clsh_mode mode) mode 540 sound/soc/codecs/wcd-clsh-v2.c _wcd_clsh_ctrl_set_state(ctrl, nstate, CLSH_REQ_ENABLE, mode); mode 543 sound/soc/codecs/wcd-clsh-v2.c _wcd_clsh_ctrl_set_state(ctrl, nstate, CLSH_REQ_DISABLE, mode); mode 548 sound/soc/codecs/wcd-clsh-v2.c ctrl->mode = mode; mode 47 sound/soc/codecs/wcd-clsh-v2.h enum wcd_clsh_mode mode); mode 3518 sound/soc/codecs/wcd9335.c int event, int mode) mode 3520 sound/soc/codecs/wcd9335.c switch (mode) { mode 3625 sound/soc/codecs/wcd9335.c int mode, int event) mode 3631 sound/soc/codecs/wcd9335.c switch (mode) { mode 24 sound/soc/codecs/wl1273.c enum wl1273_mode mode; mode 34 sound/soc/codecs/wl1273.c u16 mode; mode 41 sound/soc/codecs/wl1273.c mode = core->i2s_mode & ~WL1273_IS2_WIDTH & ~WL1273_IS2_RATE; mode 45 sound/soc/codecs/wl1273.c mode |= WL1273_IS2_RATE_48K; mode 48 sound/soc/codecs/wl1273.c mode |= WL1273_IS2_RATE_44_1K; mode 51 sound/soc/codecs/wl1273.c mode |= WL1273_IS2_RATE_32K; mode 54 sound/soc/codecs/wl1273.c mode |= WL1273_IS2_RATE_22_05K; mode 57 sound/soc/codecs/wl1273.c mode |= WL1273_IS2_RATE_16K; mode 60 sound/soc/codecs/wl1273.c mode |= WL1273_IS2_RATE_12K; mode 63 sound/soc/codecs/wl1273.c mode |= WL1273_IS2_RATE_11_025; mode 66 sound/soc/codecs/wl1273.c mode |= WL1273_IS2_RATE_8K; mode 76 sound/soc/codecs/wl1273.c mode |= WL1273_IS2_WIDTH_32; mode 79 sound/soc/codecs/wl1273.c mode |= WL1273_IS2_WIDTH_40; mode 82 sound/soc/codecs/wl1273.c mode |= WL1273_IS2_WIDTH_48; mode 85 sound/soc/codecs/wl1273.c mode |= WL1273_IS2_WIDTH_50; mode 88 sound/soc/codecs/wl1273.c mode |= WL1273_IS2_WIDTH_60; mode 91 sound/soc/codecs/wl1273.c mode |= WL1273_IS2_WIDTH_64; mode 94 sound/soc/codecs/wl1273.c mode |= WL1273_IS2_WIDTH_80; mode 97 sound/soc/codecs/wl1273.c mode |= WL1273_IS2_WIDTH_96; mode 100 sound/soc/codecs/wl1273.c mode |= WL1273_IS2_WIDTH_128; mode 110 sound/soc/codecs/wl1273.c dev_dbg(dev, "mode: 0x%04x\n", mode); mode 112 sound/soc/codecs/wl1273.c if (core->i2s_mode != mode) { mode 113 sound/soc/codecs/wl1273.c r = core->write(core, WL1273_I2S_MODE_CONFIG_SET, mode); mode 117 sound/soc/codecs/wl1273.c core->i2s_mode = mode; mode 142 sound/soc/codecs/wl1273.c if (channel_number == 1 && core->mode == WL1273_MODE_RX) mode 144 sound/soc/codecs/wl1273.c else if (channel_number == 1 && core->mode == WL1273_MODE_TX) mode 146 sound/soc/codecs/wl1273.c else if (channel_number == 2 && core->mode == WL1273_MODE_RX) mode 148 sound/soc/codecs/wl1273.c else if (channel_number == 2 && core->mode == WL1273_MODE_TX) mode 164 sound/soc/codecs/wl1273.c ucontrol->value.enumerated.item[0] = wl1273->mode; mode 182 sound/soc/codecs/wl1273.c if (wl1273->mode == ucontrol->value.enumerated.item[0]) mode 192 sound/soc/codecs/wl1273.c wl1273->mode = ucontrol->value.enumerated.item[0]; mode 293 sound/soc/codecs/wl1273.c switch (wl1273->mode) { mode 337 sound/soc/codecs/wl1273.c if (wl1273->mode == WL1273_MODE_BT) { mode 351 sound/soc/codecs/wl1273.c if (wl1273->mode == WL1273_MODE_FM_TX && mode 357 sound/soc/codecs/wl1273.c if (wl1273->mode == WL1273_MODE_FM_RX && mode 363 sound/soc/codecs/wl1273.c if (wl1273->mode != WL1273_MODE_FM_RX && mode 364 sound/soc/codecs/wl1273.c wl1273->mode != WL1273_MODE_FM_TX) { mode 365 sound/soc/codecs/wl1273.c pr_err("Unexpected mode: %d.\n", wl1273->mode); mode 413 sound/soc/codecs/wl1273.c switch (wl1273->mode) { mode 451 sound/soc/codecs/wl1273.c wl1273->mode = WL1273_MODE_BT; mode 535 sound/soc/codecs/wm2000.c enum wm2000_anc_mode mode) mode 541 sound/soc/codecs/wm2000.c if (wm2000->anc_mode == mode) mode 546 sound/soc/codecs/wm2000.c anc_transitions[i].dest == mode) mode 550 sound/soc/codecs/wm2000.c wm2000->anc_mode, mode); mode 581 sound/soc/codecs/wm2000.c enum wm2000_anc_mode mode; mode 585 sound/soc/codecs/wm2000.c mode = ANC_ACTIVE; mode 587 sound/soc/codecs/wm2000.c mode = ANC_BYPASS; mode 589 sound/soc/codecs/wm2000.c mode = ANC_STANDBY; mode 592 sound/soc/codecs/wm2000.c mode, wm2000->anc_eng_ena, !wm2000->spk_ena, mode 595 sound/soc/codecs/wm2000.c return wm2000_anc_transition(wm2000, mode); mode 1972 sound/soc/codecs/wm5100.c struct wm5100_jack_mode *mode = &wm5100->pdata.jack_modes[the_mode]; mode 1977 sound/soc/codecs/wm5100.c gpio_set_value_cansleep(wm5100->pdata.hp_pol, mode->hp_pol); mode 1981 sound/soc/codecs/wm5100.c (mode->bias << WM5100_ACCDET_BIAS_SRC_SHIFT) | mode 1982 sound/soc/codecs/wm5100.c mode->micd_src << WM5100_ACCDET_SRC_SHIFT); mode 1985 sound/soc/codecs/wm5100.c mode->micd_src << WM5100_HPCOM_SRC_SHIFT); mode 195 sound/soc/codecs/wm8741.c unsigned int iface, mode; mode 241 sound/soc/codecs/wm8741.c mode = 0x40; mode 243 sound/soc/codecs/wm8741.c mode = 0x20; mode 245 sound/soc/codecs/wm8741.c mode = 0x00; mode 253 sound/soc/codecs/wm8741.c mode); mode 1333 sound/soc/codecs/wm8903.c int mode; mode 1537 sound/soc/codecs/wm8903.c clock1 |= clk_sys_ratios[clk_config].mode << WM8903_CLK_SYS_MODE_SHIFT; mode 1541 sound/soc/codecs/wm8903.c clk_sys_ratios[clk_config].mode, mode 744 sound/soc/codecs/wm8994.c static void wm1811_jackdet_set_mode(struct snd_soc_component *component, u16 mode) mode 752 sound/soc/codecs/wm8994.c mode = WM1811_JACKDET_MODE_AUDIO; mode 754 sound/soc/codecs/wm8994.c if (mode == wm8994->jackdet_mode) mode 757 sound/soc/codecs/wm8994.c wm8994->jackdet_mode = mode; mode 760 sound/soc/codecs/wm8994.c if (mode != WM1811_JACKDET_MODE_NONE) mode 761 sound/soc/codecs/wm8994.c mode = WM1811_JACKDET_MODE_AUDIO; mode 764 sound/soc/codecs/wm8994.c WM1811_JACKDET_MODE_MASK, mode); mode 787 sound/soc/codecs/wm8994.c u16 mode; mode 799 sound/soc/codecs/wm8994.c mode = WM1811_JACKDET_MODE_MIC; mode 801 sound/soc/codecs/wm8994.c mode = WM1811_JACKDET_MODE_JACK; mode 803 sound/soc/codecs/wm8994.c wm1811_jackdet_set_mode(component, mode); mode 2558 sound/soc/codecs/wm8994.c int wm8994_vmid_mode(struct snd_soc_component *component, enum wm8994_vmid_mode mode) mode 2563 sound/soc/codecs/wm8994.c switch (mode) { mode 2582 sound/soc/codecs/wm8994.c wm8994->vmid_mode = mode; mode 2603 sound/soc/codecs/wm8994.c wm8994->vmid_mode = mode; mode 49 sound/soc/codecs/wm8994.h int wm8994_vmid_mode(struct snd_soc_component *component, enum wm8994_vmid_mode mode); mode 446 sound/soc/fsl/mpc5200_dma.c out_8(&psc_dma->psc_regs->mode, 0); mode 447 sound/soc/fsl/mpc5200_dma.c out_8(&psc_dma->psc_regs->mode, 0); mode 43 sound/soc/fsl/mpc5200_psc_i2s.c u32 mode; mode 53 sound/soc/fsl/mpc5200_psc_i2s.c mode = MPC52xx_PSC_SICR_SIM_CODEC_8; mode 56 sound/soc/fsl/mpc5200_psc_i2s.c mode = MPC52xx_PSC_SICR_SIM_CODEC_16; mode 59 sound/soc/fsl/mpc5200_psc_i2s.c mode = MPC52xx_PSC_SICR_SIM_CODEC_24; mode 62 sound/soc/fsl/mpc5200_psc_i2s.c mode = MPC52xx_PSC_SICR_SIM_CODEC_32; mode 68 sound/soc/fsl/mpc5200_psc_i2s.c out_be32(&psc_dma->psc_regs->sicr, psc_dma->sicr | mode); mode 830 sound/soc/intel/atom/sst-atom-controls.c unsigned int mode; mode 834 sound/soc/intel/atom/sst-atom-controls.c mode = fmt & SND_SOC_DAIFMT_FORMAT_MASK; mode 836 sound/soc/intel/atom/sst-atom-controls.c switch (mode) { mode 839 sound/soc/intel/atom/sst-atom-controls.c ctx->ssp_cmd.mode = sst_get_ssp_mode(dai, fmt) | (SSP_PCM_MODE_NETWORK << 1); mode 847 sound/soc/intel/atom/sst-atom-controls.c ctx->ssp_cmd.mode = sst_get_ssp_mode(dai, fmt) | (SSP_PCM_MODE_NETWORK << 1); mode 855 sound/soc/intel/atom/sst-atom-controls.c ctx->ssp_cmd.mode = sst_get_ssp_mode(dai, fmt) | (SSP_PCM_MODE_NORMAL << 1); mode 863 sound/soc/intel/atom/sst-atom-controls.c ctx->ssp_cmd.mode = sst_get_ssp_mode(dai, fmt) | (SSP_PCM_MODE_NORMAL << 1); mode 912 sound/soc/intel/atom/sst-atom-controls.c ctx->ssp_cmd.mode = config->ssp_mode | (config->pcm_mode << 1); mode 489 sound/soc/intel/atom/sst-atom-controls.h u16 mode:3; /* 0:Master, 1: Slave */ mode 1383 sound/soc/intel/haswell/sst-haswell-ipc.c enum sst_hsw_device_mode mode, u32 clock_divider) mode 1393 sound/soc/intel/haswell/sst-haswell-ipc.c hsw->dx_mode = config.mode = mode; mode 1395 sound/soc/intel/haswell/sst-haswell-ipc.c if (mode == SST_HSW_DEVICE_TDM_CLOCK_MASTER) mode 325 sound/soc/intel/haswell/sst-haswell-ipc.h u32 mode; mode 483 sound/soc/intel/haswell/sst-haswell-ipc.h enum sst_hsw_device_mode mode, u32 clock_divider); mode 114 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c bool mode = afe_priv->soc->has_one_heart_mode; mode 119 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c return mt2701_afe_enable_mclk(afe, mode ? 1 : i2s_num); mode 150 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c bool mode = afe_priv->soc->has_one_heart_mode; mode 170 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c mt2701_afe_disable_mclk(afe, mode ? 1 : i2s_num); mode 238 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c bool mode = afe_priv->soc->has_one_heart_mode; mode 248 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c ret = mt2701_mclk_configuration(afe, mode ? 1 : i2s_num); mode 271 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c bool mode = afe_priv->soc->has_one_heart_mode; mode 282 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c afe_priv->i2s_path[mode ? 1 : i2s_num].mclk_rate = freq; mode 123 sound/soc/mediatek/mt8183/mt8183-dai-tdm.c static unsigned int get_tdm_ch_per_sdata(unsigned int mode, mode 126 sound/soc/mediatek/mt8183/mt8183-dai-tdm.c if (mode == TDM_OUT_TDM) mode 78 sound/soc/meson/axg-spdifin.c unsigned int stat, mode, rate = 0; mode 81 sound/soc/meson/axg-spdifin.c mode = FIELD_GET(SPDIFIN_STAT0_MODE, stat); mode 89 sound/soc/meson/axg-spdifin.c mode < SPDIFIN_MODE_NUM) mode 90 sound/soc/meson/axg-spdifin.c rate = priv->conf->mode_rates[mode]; mode 143 sound/soc/meson/axg-spdifin.c static void axg_spdifin_write_mode_param(struct regmap *map, int mode, mode 149 sound/soc/meson/axg-spdifin.c uint64_t offset = mode; mode 161 sound/soc/meson/axg-spdifin.c static void axg_spdifin_write_timer(struct regmap *map, int mode, mode 164 sound/soc/meson/axg-spdifin.c axg_spdifin_write_mode_param(map, mode, val, SPDIFIN_TIMER_PER_REG, mode 168 sound/soc/meson/axg-spdifin.c static void axg_spdifin_write_threshold(struct regmap *map, int mode, mode 171 sound/soc/meson/axg-spdifin.c axg_spdifin_write_mode_param(map, mode, val, SPDIFIN_THRES_PER_REG, mode 176 sound/soc/meson/axg-spdifin.c int mode, mode 183 sound/soc/meson/axg-spdifin.c return rate / (128 * priv->conf->mode_rates[mode]); mode 42 sound/soc/qcom/qdsp6/q6adm.c int mode; mode 298 sound/soc/qcom/qdsp6/q6adm.c int mode, int rate, mode 310 sound/soc/qcom/qdsp6/q6adm.c (mode == c->mode) && (rate == c->rate) && mode 416 sound/soc/qcom/qdsp6/q6adm.c copp->mode = perf_mode; mode 73 sound/soc/samsung/i2s.c unsigned mode; mode 228 sound/soc/samsung/i2s.c if (i2s && (i2s->mode & DAI_OPENED)) mode 236 sound/soc/samsung/i2s.c if (is_opened(i2s) && (i2s->mode & DAI_MANAGER)) mode 828 sound/soc/samsung/i2s.c i2s->mode |= DAI_OPENED; mode 831 sound/soc/samsung/i2s.c i2s->mode &= ~DAI_MANAGER; mode 833 sound/soc/samsung/i2s.c i2s->mode |= DAI_MANAGER; mode 853 sound/soc/samsung/i2s.c i2s->mode &= ~DAI_OPENED; mode 854 sound/soc/samsung/i2s.c i2s->mode &= ~DAI_MANAGER; mode 857 sound/soc/samsung/i2s.c other->mode |= DAI_MANAGER; mode 157 sound/soc/sh/rcar/ssiu.c u32 mode = 0; mode 171 sound/soc/sh/rcar/ssiu.c mode = TDM_EXT; mode 173 sound/soc/sh/rcar/ssiu.c mode = TDM_SPLIT; mode 175 sound/soc/sh/rcar/ssiu.c rsnd_mod_write(mod, SSI_MODE, mode); mode 129 sound/soc/soc-core.c return attr->mode; /* always visible */ mode 130 sound/soc/soc-core.c return rtd->num_codecs ? attr->mode : 0; /* enabled only with codec */ mode 378 sound/soc/sof/debug.c const char *name, mode_t mode) mode 405 sound/soc/sof/debug.c debugfs_create_file(name, mode, sdev->debugfs_root, dfse, mode 578 sound/soc/sof/sof-priv.h const char *name, mode_t mode); mode 391 sound/soc/sti/sti_uniperif.c const char *mode; mode 436 sound/soc/sti/sti_uniperif.c if (!of_property_read_string(node, "st,tdm-mode", &mode)) mode 58 sound/soc/sunxi/sun4i-i2s.c #define SUN4I_I2S_FIFO_CTRL_TX_MODE(mode) ((mode) << 2) mode 60 sound/soc/sunxi/sun4i-i2s.c #define SUN4I_I2S_FIFO_CTRL_RX_MODE(mode) (mode) mode 595 sound/soc/sunxi/sun4i-i2s.c u32 mode, val; mode 634 sound/soc/sunxi/sun4i-i2s.c mode = SUN8I_I2S_CTRL_MODE_PCM; mode 639 sound/soc/sunxi/sun4i-i2s.c mode = SUN8I_I2S_CTRL_MODE_PCM; mode 644 sound/soc/sunxi/sun4i-i2s.c mode = SUN8I_I2S_CTRL_MODE_LEFT; mode 649 sound/soc/sunxi/sun4i-i2s.c mode = SUN8I_I2S_CTRL_MODE_LEFT; mode 654 sound/soc/sunxi/sun4i-i2s.c mode = SUN8I_I2S_CTRL_MODE_RIGHT; mode 663 sound/soc/sunxi/sun4i-i2s.c SUN8I_I2S_CTRL_MODE_MASK, mode); mode 178 sound/soc/ti/ams-delta.c unsigned short pins, mode; mode 194 sound/soc/ti/ams-delta.c for (mode = 0; mode < ARRAY_SIZE(ams_delta_audio_mode); mode++) mode 195 sound/soc/ti/ams-delta.c if (pins == ams_delta_audio_mode_pins[mode]) mode 198 sound/soc/ti/ams-delta.c if (mode >= ARRAY_SIZE(ams_delta_audio_mode)) mode 201 sound/soc/ti/ams-delta.c ucontrol->value.enumerated.item[0] = mode; mode 135 sound/soc/ti/davinci-i2s.c int mode; mode 294 sound/soc/ti/davinci-i2s.c dev->mode = MOD_DSP_A; mode 297 sound/soc/ti/davinci-i2s.c dev->mode = MOD_DSP_B; mode 455 sound/soc/ti/davinci-i2s.c if (dev->mode == MOD_DSP_B) { mode 291 sound/soc/uniphier/aio-core.c u32 mode, *slotsel; mode 297 sound/soc/uniphier/aio-core.c mode = OPORTMXTYSLOTCTR_MODE; mode 301 sound/soc/uniphier/aio-core.c mode = 0; mode 310 sound/soc/uniphier/aio-core.c OPORTMXTYSLOTCTR_MODE, mode); mode 47 sound/soc/xilinx/xlnx_spdif.c u32 mode; mode 268 sound/soc/xilinx/xlnx_spdif.c ret = of_property_read_u32(node, "xlnx,spdif-mode", &ctx->mode); mode 273 sound/soc/xilinx/xlnx_spdif.c if (ctx->mode) { mode 33 sound/sound_core.c static char *sound_devnode(struct device *dev, umode_t *mode) mode 242 sound/sound_core.c static int sound_insert_unit(struct sound_unit **list, const struct file_operations *fops, int index, int low, int top, const char *name, umode_t mode, struct device *dev) mode 101 sound/sparc/cs4231.c unsigned short mode; mode 771 sound/sparc/cs4231.c static int snd_cs4231_open(struct snd_cs4231 *chip, unsigned int mode) mode 776 sound/sparc/cs4231.c if ((chip->mode & mode)) { mode 780 sound/sparc/cs4231.c if (chip->mode & CS4231_MODE_OPEN) { mode 781 sound/sparc/cs4231.c chip->mode |= mode; mode 801 sound/sparc/cs4231.c chip->mode = mode; mode 806 sound/sparc/cs4231.c static void snd_cs4231_close(struct snd_cs4231 *chip, unsigned int mode) mode 811 sound/sparc/cs4231.c chip->mode &= ~mode; mode 812 sound/sparc/cs4231.c if (chip->mode & CS4231_MODE_OPEN) { mode 850 sound/sparc/cs4231.c chip->mode = 0; mode 124 sound/synth/emux/emux_effect.c effect_get_offset(struct snd_midi_channel *chan, int lo, int hi, int mode) mode 134 sound/synth/emux/emux_effect.c if (!(mode & SNDRV_SFNT_SAMPLE_8BITS)) mode 145 sound/synth/emux/emux_effect.c int mode; mode 148 sound/synth/emux/emux_effect.c mode = EMUX_FX_FLAG_OFF; mode 150 sound/synth/emux/emux_effect.c mode = EMUX_FX_FLAG_ADD; mode 152 sound/synth/emux/emux_effect.c mode = EMUX_FX_FLAG_SET; mode 155 sound/synth/emux/emux_effect.c snd_emux_send_effect(port, chan, type, val, mode); mode 164 sound/synth/emux/emux_effect.c int type, int val, int mode) mode 181 sound/synth/emux/emux_effect.c fx->flag[type] = mode; mode 58 sound/synth/emux/emux_hwdep.c if (info.mode < 0 || info.mode >= EMUX_MD_END) mode 60 sound/synth/emux/emux_hwdep.c info.mode = array_index_nospec(info.mode, EMUX_MD_END); mode 64 sound/synth/emux/emux_hwdep.c emu->portptrs[i]->ctrls[info.mode] = info.value; mode 68 sound/synth/emux/emux_hwdep.c emu->portptrs[info.port]->ctrls[info.mode] = info.value; mode 41 sound/synth/emux/emux_nrpn.c int type, int val, int mode) mode 48 sound/synth/emux/emux_nrpn.c cval, mode); mode 56 sound/synth/emux/emux_voice.h struct snd_midi_channel *chan, int type, int val, int mode); mode 578 sound/synth/emux/soundfont.c if (tmpzone.v.mode & SNDRV_SFNT_MODE_INIT_PARM) mode 973 sound/synth/emux/soundfont.c if (!(patch.mode & WAVE_16_BITS)) mode 975 sound/synth/emux/soundfont.c if (patch.mode & WAVE_UNSIGNED) mode 978 sound/synth/emux/soundfont.c if (!(patch.mode & (WAVE_LOOPING|WAVE_BIDIR_LOOP|WAVE_LOOP_BACK))) mode 980 sound/synth/emux/soundfont.c if (patch.mode & WAVE_BIDIR_LOOP) mode 982 sound/synth/emux/soundfont.c if (patch.mode & WAVE_LOOP_BACK) mode 985 sound/synth/emux/soundfont.c if (patch.mode & WAVE_16_BITS) { mode 1040 sound/synth/emux/soundfont.c if (patch.mode & WAVE_ENVELOPES) { mode 1077 sound/synth/emux/soundfont.c if (patch.mode & WAVE_FAST_RELEASE) { mode 1082 sound/synth/emux/soundfont.c if (patch.mode & WAVE_TREMOLO) { mode 1087 sound/synth/emux/soundfont.c if (patch.mode & WAVE_VIBRATO) { mode 1095 sound/synth/emux/soundfont.c zone->v.mode = SNDRV_SFNT_MODE_LOOPING; mode 1097 sound/synth/emux/soundfont.c zone->v.mode = 0; mode 140 sound/x86/intel_hdmi_lpe_audio.h u32 mode:2; mode 51 tools/arch/s390/include/uapi/asm/kvm.h __u16 mode; mode 245 tools/arch/x86/include/uapi/asm/kvm.h __u8 mode; mode 15 tools/bpf/bpftool/netlink_dumper.c const char *mode, mode 23 tools/bpf/bpftool/netlink_dumper.c NET_DUMP_STR("mode", " %s", mode); mode 33 tools/bpf/bpftool/netlink_dumper.c unsigned char mode; mode 41 tools/bpf/bpftool/netlink_dumper.c mode = libbpf_nla_getattr_u8(tb[IFLA_XDP_ATTACHED]); mode 42 tools/bpf/bpftool/netlink_dumper.c if (mode == XDP_ATTACHED_NONE) mode 50 tools/bpf/bpftool/netlink_dumper.c if (mode == XDP_ATTACHED_MULTI) { mode 60 tools/bpf/bpftool/netlink_dumper.c } else if (mode == XDP_ATTACHED_DRV) { mode 62 tools/bpf/bpftool/netlink_dumper.c } else if (mode == XDP_ATTACHED_SKB) { mode 64 tools/bpf/bpftool/netlink_dumper.c } else if (mode == XDP_ATTACHED_HW) { mode 415 tools/bpf/bpftool/prog.c enum {DUMP_JITED, DUMP_XLATED} mode; mode 435 tools/bpf/bpftool/prog.c mode = DUMP_JITED; mode 437 tools/bpf/bpftool/prog.c mode = DUMP_XLATED; mode 476 tools/bpf/bpftool/prog.c if (mode == DUMP_JITED) mode 495 tools/bpf/bpftool/prog.c if (mode == DUMP_JITED) { mode 542 tools/bpf/bpftool/prog.c } else if (mode == DUMP_JITED) { mode 216 tools/include/nolibc/nolibc.h #define S_ISDIR(mode) (((mode) & S_IFDIR) == S_IFDIR) mode 217 tools/include/nolibc/nolibc.h #define S_ISCHR(mode) (((mode) & S_IFCHR) == S_IFCHR) mode 218 tools/include/nolibc/nolibc.h #define S_ISBLK(mode) (((mode) & S_IFBLK) == S_IFBLK) mode 219 tools/include/nolibc/nolibc.h #define S_ISREG(mode) (((mode) & S_IFREG) == S_IFREG) mode 220 tools/include/nolibc/nolibc.h #define S_ISFIFO(mode) (((mode) & S_IFIFO) == S_IFIFO) mode 221 tools/include/nolibc/nolibc.h #define S_ISLNK(mode) (((mode) & S_IFLNK) == S_IFLNK) mode 222 tools/include/nolibc/nolibc.h #define S_ISSOCK(mode) (((mode) & S_IFSOCK) == S_IFSOCK) mode 1468 tools/include/nolibc/nolibc.h int sys_chmod(const char *path, mode_t mode) mode 1471 tools/include/nolibc/nolibc.h return my_syscall4(__NR_fchmodat, AT_FDCWD, path, mode, 0); mode 1473 tools/include/nolibc/nolibc.h return my_syscall2(__NR_chmod, path, mode); mode 1582 tools/include/nolibc/nolibc.h int sys_mkdir(const char *path, mode_t mode) mode 1585 tools/include/nolibc/nolibc.h return my_syscall3(__NR_mkdirat, AT_FDCWD, path, mode); mode 1587 tools/include/nolibc/nolibc.h return my_syscall2(__NR_mkdir, path, mode); mode 1592 tools/include/nolibc/nolibc.h long sys_mknod(const char *path, mode_t mode, dev_t dev) mode 1595 tools/include/nolibc/nolibc.h return my_syscall4(__NR_mknodat, AT_FDCWD, path, mode, dev); mode 1597 tools/include/nolibc/nolibc.h return my_syscall3(__NR_mknod, path, mode, dev); mode 1609 tools/include/nolibc/nolibc.h int sys_open(const char *path, int flags, mode_t mode) mode 1612 tools/include/nolibc/nolibc.h return my_syscall4(__NR_openat, AT_FDCWD, path, flags, mode); mode 1614 tools/include/nolibc/nolibc.h return my_syscall3(__NR_open, path, flags, mode); mode 1726 tools/include/nolibc/nolibc.h mode_t sys_umask(mode_t mode) mode 1728 tools/include/nolibc/nolibc.h return my_syscall1(__NR_umask, mode); mode 1808 tools/include/nolibc/nolibc.h int chmod(const char *path, mode_t mode) mode 1810 tools/include/nolibc/nolibc.h int ret = sys_chmod(path, mode); mode 2000 tools/include/nolibc/nolibc.h int mkdir(const char *path, mode_t mode) mode 2002 tools/include/nolibc/nolibc.h int ret = sys_mkdir(path, mode); mode 2012 tools/include/nolibc/nolibc.h int mknod(const char *path, mode_t mode, dev_t dev) mode 2014 tools/include/nolibc/nolibc.h int ret = sys_mknod(path, mode, dev); mode 2038 tools/include/nolibc/nolibc.h int open(const char *path, int flags, mode_t mode) mode 2040 tools/include/nolibc/nolibc.h int ret = sys_open(path, flags, mode); mode 2200 tools/include/nolibc/nolibc.h mode_t umask(mode_t mode) mode 2202 tools/include/nolibc/nolibc.h return sys_umask(mode); mode 537 tools/include/uapi/drm/drm.h unsigned long mode; /**< AGP mode */ mode 572 tools/include/uapi/drm/drm.h unsigned long mode; mode 55 tools/include/uapi/linux/fscrypt.h __u32 mode; mode 205 tools/lib/bpf/netlink.c static unsigned char get_xdp_id_attr(unsigned char mode, __u32 flags) mode 207 tools/lib/bpf/netlink.c if (mode != XDP_ATTACHED_MULTI) mode 224 tools/lib/bpf/netlink.c unsigned char mode, xdp_attr; mode 240 tools/lib/bpf/netlink.c mode = libbpf_nla_getattr_u8(xdp_tb[IFLA_XDP_ATTACHED]); mode 241 tools/lib/bpf/netlink.c if (mode == XDP_ATTACHED_NONE) mode 244 tools/lib/bpf/netlink.c xdp_attr = get_xdp_id_attr(mode, xdp_id->flags); mode 44 tools/lib/traceevent/plugins/plugin_kvm.c int mode; mode 47 tools/lib/traceevent/plugins/plugin_kvm.c mode = 16; mode 49 tools/lib/traceevent/plugins/plugin_kvm.c mode = 16; mode 51 tools/lib/traceevent/plugins/plugin_kvm.c mode = 64; mode 53 tools/lib/traceevent/plugins/plugin_kvm.c mode = 32; mode 55 tools/lib/traceevent/plugins/plugin_kvm.c mode = 16; mode 58 tools/lib/traceevent/plugins/plugin_kvm.c ud_set_mode(&ud, mode); mode 494 tools/perf/builtin-annotate.c .mode = PERF_DATA_MODE_READ, mode 371 tools/perf/builtin-buildid-cache.c .mode = PERF_DATA_MODE_READ, mode 57 tools/perf/builtin-buildid-list.c .mode = PERF_DATA_MODE_READ, mode 2573 tools/perf/builtin-c2c.c callchain->mode = CHAIN_NONE; mode 2583 tools/perf/builtin-c2c.c enum perf_call_graph_mode mode = CALLCHAIN_NONE; mode 2587 tools/perf/builtin-c2c.c mode = CALLCHAIN_DWARF; mode 2590 tools/perf/builtin-c2c.c mode = CALLCHAIN_LBR; mode 2592 tools/perf/builtin-c2c.c mode = CALLCHAIN_FP; mode 2595 tools/perf/builtin-c2c.c callchain_param.mode != CHAIN_NONE && mode 2596 tools/perf/builtin-c2c.c mode != CALLCHAIN_NONE) { mode 2604 tools/perf/builtin-c2c.c callchain_param.record_mode = mode; mode 2723 tools/perf/builtin-c2c.c .mode = PERF_DATA_MODE_READ, mode 1802 tools/perf/builtin-diff.c data->mode = PERF_DATA_MODE_READ, mode 27 tools/perf/builtin-evlist.c .mode = PERF_DATA_MODE_READ, mode 776 tools/perf/builtin-inject.c .mode = PERF_DATA_MODE_WRITE, mode 780 tools/perf/builtin-inject.c .mode = PERF_DATA_MODE_READ, mode 1903 tools/perf/builtin-kmem.c .mode = PERF_DATA_MODE_READ, mode 1091 tools/perf/builtin-kvm.c .mode = PERF_DATA_MODE_READ, mode 1381 tools/perf/builtin-kvm.c .mode = PERF_DATA_MODE_WRITE, mode 871 tools/perf/builtin-lock.c .mode = PERF_DATA_MODE_READ, mode 246 tools/perf/builtin-mem.c .mode = PERF_DATA_MODE_READ, mode 321 tools/perf/builtin-mem.c int mode; mode 325 tools/perf/builtin-mem.c { .name = n, .mode = (m) } mode 338 tools/perf/builtin-mem.c int *mode = (int *)opt->value; mode 354 tools/perf/builtin-mem.c *mode = 0; mode 371 tools/perf/builtin-mem.c *mode |= m->mode; mode 381 tools/perf/builtin-mem.c if (*mode == 0) mode 382 tools/perf/builtin-mem.c *mode = MEM_OPERATION_LOAD; mode 359 tools/perf/builtin-report.c callchain_param.mode != CHAIN_NONE && mode 943 tools/perf/builtin-report.c callchain->mode = CHAIN_NONE; mode 1217 tools/perf/builtin-report.c .mode = PERF_DATA_MODE_READ, mode 1796 tools/perf/builtin-sched.c .mode = PERF_DATA_MODE_READ, mode 2862 tools/perf/builtin-sched.c callchain_param.mode = CHAIN_FOLDED; mode 2967 tools/perf/builtin-sched.c .mode = PERF_DATA_MODE_READ, mode 3088 tools/perf/builtin-script.c .mode = PERF_DATA_MODE_READ, mode 3445 tools/perf/builtin-script.c .mode = PERF_DATA_MODE_READ, mode 1636 tools/perf/builtin-stat.c perf_stat.data.mode = PERF_DATA_MODE_READ; mode 1690 tools/perf/builtin-stat.c const char *mode; mode 1769 tools/perf/builtin-stat.c mode = append_file ? "a" : "w"; mode 1771 tools/perf/builtin-stat.c output = fopen(output_name, mode); mode 1779 tools/perf/builtin-stat.c mode = append_file ? "a" : "w"; mode 1780 tools/perf/builtin-stat.c output = fdopen(output_fd, mode); mode 1597 tools/perf/builtin-timechart.c .mode = PERF_DATA_MODE_READ, mode 1061 tools/perf/builtin-top.c if (callchain->mode != CHAIN_NONE) { mode 588 tools/perf/builtin-trace.c int mode = arg->val; mode 590 tools/perf/builtin-trace.c if (mode == F_OK) /* 0 */ mode 593 tools/perf/builtin-trace.c if (mode & n##_OK) { \ mode 595 tools/perf/builtin-trace.c mode &= ~n##_OK; \ mode 603 tools/perf/builtin-trace.c if (mode) mode 604 tools/perf/builtin-trace.c printed += scnprintf(bf + printed, size - printed, "|%#x", mode); mode 3566 tools/perf/builtin-trace.c .mode = PERF_DATA_MODE_READ, mode 69 tools/perf/examples/bpf/augmented_syscalls.c long mode; mode 79 tools/perf/examples/bpf/augmented_syscalls.c long mode; mode 61 tools/perf/examples/bpf/etcsnoop.c long mode; mode 71 tools/perf/examples/bpf/etcsnoop.c long mode; mode 25 tools/perf/examples/bpf/sys_enter_openat.c long mode; mode 39 tools/perf/tests/topology.c .mode = PERF_DATA_MODE_WRITE, mode 69 tools/perf/tests/topology.c .mode = PERF_DATA_MODE_READ, mode 27 tools/perf/trace/beauty/mode_t.c int printed = 0, mode = arg->val; mode 30 tools/perf/trace/beauty/mode_t.c if ((mode & S_##n) == S_##n) { \ mode 32 tools/perf/trace/beauty/mode_t.c mode &= ~S_##n; \ mode 65 tools/perf/trace/beauty/mode_t.c if (mode) mode 66 tools/perf/trace/beauty/mode_t.c printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", mode); mode 239 tools/perf/ui/browsers/hists.c if (callchain_param.mode == CHAIN_FLAT) mode 241 tools/perf/ui/browsers/hists.c else if (callchain_param.mode == CHAIN_FOLDED) mode 372 tools/perf/ui/browsers/hists.c if (callchain_param.mode == CHAIN_FLAT || mode 373 tools/perf/ui/browsers/hists.c callchain_param.mode == CHAIN_FOLDED) mode 1059 tools/perf/ui/browsers/hists.c if (callchain_param.mode == CHAIN_GRAPH_REL) mode 1128 tools/perf/ui/browsers/hists.c if (callchain_param.mode == CHAIN_FLAT) { mode 1133 tools/perf/ui/browsers/hists.c } else if (callchain_param.mode == CHAIN_FOLDED) { mode 2802 tools/perf/ui/browsers/hists.c if (callchain_param.mode == CHAIN_GRAPH_REL) { mode 259 tools/perf/ui/gtk/hists.c if (callchain_param.mode == CHAIN_GRAPH_REL) mode 273 tools/perf/ui/gtk/hists.c if (callchain_param.mode == CHAIN_FLAT) mode 275 tools/perf/ui/gtk/hists.c else if (callchain_param.mode == CHAIN_FOLDED) mode 389 tools/perf/ui/gtk/hists.c if (callchain_param.mode == CHAIN_GRAPH_REL) mode 486 tools/perf/ui/gtk/hists.c if (callchain_param.mode == CHAIN_GRAPH_REL) mode 71 tools/perf/ui/setup.c const char *mode, int unset __maybe_unused) mode 73 tools/perf/ui/setup.c perf_use_color_default = perf_config_colorbool("color.ui", mode, -1); mode 142 tools/perf/ui/stdio/hist.c if (!next && (callchain_param.mode != CHAIN_GRAPH_REL || !remaining)) mode 159 tools/perf/ui/stdio/hist.c if (callchain_param.mode == CHAIN_GRAPH_REL) mode 173 tools/perf/ui/stdio/hist.c if (callchain_param.mode == CHAIN_GRAPH_REL && mode 268 tools/perf/ui/stdio/hist.c if (callchain_param.mode == CHAIN_GRAPH_REL) mode 389 tools/perf/ui/stdio/hist.c switch (callchain_param.mode) { mode 32 tools/perf/ui/ui.h int stdio__config_color(const struct option *opt, const char *mode, int unset); mode 37 tools/perf/util/callchain.c .mode = CHAIN_GRAPH_ABS, \ mode 70 tools/perf/util/callchain.c callchain_param.mode = CHAIN_GRAPH_ABS; mode 74 tools/perf/util/callchain.c callchain_param.mode = CHAIN_FLAT; mode 78 tools/perf/util/callchain.c callchain_param.mode = CHAIN_GRAPH_REL; mode 82 tools/perf/util/callchain.c callchain_param.mode = CHAIN_FOLDED; mode 184 tools/perf/util/callchain.c callchain_param.mode = CHAIN_NONE; mode 373 tools/perf/util/callchain.c enum chain_mode mode) mode 387 tools/perf/util/callchain.c switch (mode) { mode 503 tools/perf/util/callchain.c switch (param->mode) { mode 1183 tools/perf/util/callchain.c if (callchain_param.mode == CHAIN_FOLDED) { mode 1212 tools/perf/util/callchain.c if (callchain_param.mode == CHAIN_FOLDED) { mode 102 tools/perf/util/callchain.h enum chain_mode mode; mode 73 tools/perf/util/copyfile.c static int copyfile_mode_ns(const char *from, const char *to, mode_t mode, mode 106 tools/perf/util/copyfile.c if (!err && fchmod(tofd, mode)) mode 111 tools/perf/util/copyfile.c if (fchmod(tofd, mode)) mode 138 tools/perf/util/copyfile.c int copyfile_mode(const char *from, const char *to, mode_t mode) mode 140 tools/perf/util/copyfile.c return copyfile_mode_ns(from, to, mode, NULL); mode 12 tools/perf/util/copyfile.h int copyfile_mode(const char *from, const char *to, mode_t mode); mode 432 tools/perf/util/cs-etm.c enum cs_etm_decoder_operation mode) mode 436 tools/perf/util/cs-etm.c if (!(mode < CS_ETM_OPERATION_MAX)) mode 440 tools/perf/util/cs-etm.c d_params->operation = mode; mode 1582 tools/perf/util/data-convert-bt.c .mode = PERF_DATA_MODE_READ, mode 24 tools/perf/util/data.h enum perf_data_mode mode; mode 35 tools/perf/util/data.h return data->mode == PERF_DATA_MODE_READ; mode 40 tools/perf/util/data.h return data->mode == PERF_DATA_MODE_WRITE; mode 45 tools/perf/util/demangle-java.c __demangle_java_sym(const char *str, const char *end, char *buf, int maxlen, int mode) mode 62 tools/perf/util/demangle-java.c if (mode == MODE_PREFIX || mode == MODE_CTYPE) { mode 63 tools/perf/util/demangle-java.c if (mode == MODE_CTYPE) { mode 69 tools/perf/util/demangle-java.c if (mode == MODE_PREFIX) mode 70 tools/perf/util/demangle-java.c mode = MODE_CLASS; mode 82 tools/perf/util/demangle-java.c if (mode == MODE_TYPE) { mode 94 tools/perf/util/demangle-java.c if (mode == MODE_TYPE) { mode 103 tools/perf/util/demangle-java.c if (mode != MODE_TYPE) mode 108 tools/perf/util/demangle-java.c if (mode != MODE_FUNC) mode 111 tools/perf/util/demangle-java.c mode = MODE_TYPE; mode 114 tools/perf/util/demangle-java.c if (mode != MODE_TYPE) mode 120 tools/perf/util/demangle-java.c if (mode != MODE_CLASS && mode != MODE_CTYPE) mode 125 tools/perf/util/demangle-java.c if (mode == MODE_CLASS) mode 126 tools/perf/util/demangle-java.c mode = MODE_FUNC; mode 127 tools/perf/util/demangle-java.c else if (mode == MODE_CTYPE) mode 128 tools/perf/util/demangle-java.c mode = MODE_TYPE; mode 131 tools/perf/util/demangle-java.c if (mode != MODE_CLASS && mode != MODE_CTYPE) mode 235 tools/perf/util/dso.c int mode = cpumode & PERF_RECORD_MISC_CPUMODE_MASK; mode 237 tools/perf/util/dso.c WARN_ONCE(mode != cpumode, mode 241 tools/perf/util/dso.c switch (mode) { mode 1771 tools/perf/util/hist.c if (callchain_param.mode == CHAIN_GRAPH_REL) { mode 1797 tools/perf/util/hist.c if (callchain_param.mode == CHAIN_GRAPH_REL) { mode 10 tools/perf/util/parse-branch-options.c { .name = n, .mode = (m) } mode 16 tools/perf/util/parse-branch-options.c int mode; mode 38 tools/perf/util/parse-branch-options.c int parse_branch_str(const char *str, __u64 *mode) mode 51 tools/perf/util/parse-branch-options.c *mode = PERF_SAMPLE_BRANCH_ANY; mode 76 tools/perf/util/parse-branch-options.c *mode |= br->mode; mode 85 tools/perf/util/parse-branch-options.c if ((*mode & ~ONLY_PLM) == 0) { mode 86 tools/perf/util/parse-branch-options.c *mode = PERF_SAMPLE_BRANCH_ANY; mode 96 tools/perf/util/parse-branch-options.c __u64 *mode = (__u64 *)opt->value; mode 104 tools/perf/util/parse-branch-options.c if (*mode) mode 107 tools/perf/util/parse-branch-options.c return parse_branch_str(str, mode); mode 6 tools/perf/util/parse-branch-options.h int parse_branch_str(const char *str, __u64 *mode); mode 15 tools/perf/util/parse-regs-options.c uint64_t *mode = (uint64_t *)opt->value; mode 27 tools/perf/util/parse-regs-options.c if (*mode) mode 67 tools/perf/util/parse-regs-options.c *mode |= r->mask; mode 78 tools/perf/util/parse-regs-options.c if (*mode == 0) mode 79 tools/perf/util/parse-regs-options.c *mode = mask; mode 73 tools/perf/util/util.c int mkdir_p(char *path, mode_t mode) mode 89 tools/perf/util/util.c err = stat(path, &st) && mkdir(path, mode); mode 96 tools/perf/util/util.c return (stat(path, &st) && mkdir(path, mode)) ? -1 : 0; mode 22 tools/perf/util/util.h int mkdir_p(char *path, mode_t mode); mode 96 tools/power/cpupower/debug/i386/centrino-decode.c unsigned int cpu, mode = 0; mode 103 tools/power/cpupower/debug/i386/centrino-decode.c mode = 1; mode 106 tools/power/cpupower/debug/i386/centrino-decode.c if (mode) mode 38 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c static int mode; mode 360 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c if (mode) mode 362 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c mode = list; mode 366 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c if (mode && mode != show) mode 371 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c if (mode) mode 373 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c mode = show; mode 383 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c if (!mode) mode 384 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c mode = show_all; mode 429 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c if (mode == list) { mode 434 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c if (mode == show) mode 86 tools/power/x86/intel-speed-select/isst-config.c static FILE *fopen_or_exit(const char *path, const char *mode) mode 88 tools/power/x86/intel-speed-select/isst-config.c FILE *filep = fopen(path, mode); mode 577 tools/power/x86/turbostat/turbostat.c unsigned long long bic_lookup(char *name_list, enum show_hide_mode mode) mode 600 tools/power/x86/turbostat/turbostat.c if (mode == SHOW_LIST) { mode 1673 tools/power/x86/turbostat/turbostat.c FILE *fopen_or_die(const char *path, const char *mode) mode 1675 tools/power/x86/turbostat/turbostat.c FILE *filep = fopen(path, mode); mode 1092 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c FILE *fopen_or_die(const char *path, const char *mode) mode 83 tools/spi/spidev_fdx.c __u32 mode, speed; mode 85 tools/spi/spidev_fdx.c if (ioctl(fd, SPI_IOC_RD_MODE32, &mode) < 0) { mode 103 tools/spi/spidev_fdx.c name, mode, bits, lsb ? "(lsb first) " : "", speed); mode 34 tools/spi/spidev_test.c static uint32_t mode; mode 126 tools/spi/spidev_test.c if (mode & SPI_TX_QUAD) mode 128 tools/spi/spidev_test.c else if (mode & SPI_TX_DUAL) mode 130 tools/spi/spidev_test.c if (mode & SPI_RX_QUAD) mode 132 tools/spi/spidev_test.c else if (mode & SPI_RX_DUAL) mode 134 tools/spi/spidev_test.c if (!(mode & SPI_LOOP)) { mode 135 tools/spi/spidev_test.c if (mode & (SPI_TX_QUAD | SPI_TX_DUAL)) mode 137 tools/spi/spidev_test.c else if (mode & (SPI_RX_QUAD | SPI_RX_DUAL)) mode 243 tools/spi/spidev_test.c mode |= SPI_LOOP; mode 246 tools/spi/spidev_test.c mode |= SPI_CPHA; mode 249 tools/spi/spidev_test.c mode |= SPI_CPOL; mode 252 tools/spi/spidev_test.c mode |= SPI_LSB_FIRST; mode 255 tools/spi/spidev_test.c mode |= SPI_CS_HIGH; mode 258 tools/spi/spidev_test.c mode |= SPI_3WIRE; mode 261 tools/spi/spidev_test.c mode |= SPI_NO_CS; mode 267 tools/spi/spidev_test.c mode |= SPI_READY; mode 273 tools/spi/spidev_test.c mode |= SPI_TX_DUAL; mode 276 tools/spi/spidev_test.c mode |= SPI_TX_QUAD; mode 289 tools/spi/spidev_test.c if (mode & SPI_LOOP) { mode 290 tools/spi/spidev_test.c if (mode & SPI_TX_DUAL) mode 291 tools/spi/spidev_test.c mode |= SPI_RX_DUAL; mode 292 tools/spi/spidev_test.c if (mode & SPI_TX_QUAD) mode 293 tools/spi/spidev_test.c mode |= SPI_RX_QUAD; mode 388 tools/spi/spidev_test.c if (mode & SPI_LOOP) { mode 415 tools/spi/spidev_test.c ret = ioctl(fd, SPI_IOC_WR_MODE32, &mode); mode 419 tools/spi/spidev_test.c ret = ioctl(fd, SPI_IOC_RD_MODE32, &mode); mode 445 tools/spi/spidev_test.c printf("spi mode: 0x%x\n", mode); mode 321 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_skb_adjust_room)(void *ctx, __s32 len_diff, __u32 mode, mode 307 tools/testing/selftests/breakpoints/breakpoint_test.c static void launch_watchpoints(char *buf, int mode, int len, mode 313 tools/testing/selftests/breakpoints/breakpoint_test.c if (mode == BP_W) mode 320 tools/testing/selftests/breakpoints/breakpoint_test.c toggle_breakpoint(i, mode, len, local, global, 1); mode 326 tools/testing/selftests/breakpoints/breakpoint_test.c toggle_breakpoint(i, mode, len, local, global, 0); mode 31 tools/testing/selftests/ipc/msgque.c int mode; mode 53 tools/testing/selftests/ipc/msgque.c id = msgget(msgque->key, msgque->mode | IPC_CREAT | IPC_EXCL); mode 158 tools/testing/selftests/ipc/msgque.c msgque->mode = ds.msg_perm.mode; mode 96 tools/testing/selftests/ir/ir_loopback.c unsigned int mode; mode 107 tools/testing/selftests/ir/ir_loopback.c mode = LIRC_MODE_SCANCODE; mode 108 tools/testing/selftests/ir/ir_loopback.c if (ioctl(rlircfd, LIRC_SET_REC_MODE, &mode)) mode 113 tools/testing/selftests/ir/ir_loopback.c if (ioctl(wlircfd, LIRC_SET_SEND_MODE, &mode)) mode 249 tools/testing/selftests/kvm/dirty_log_test.c static struct kvm_vm *create_vm(enum vm_guest_mode mode, uint32_t vcpuid, mode 255 tools/testing/selftests/kvm/dirty_log_test.c vm = _vm_create(mode, DEFAULT_GUEST_PHY_PAGES + extra_pg_pages, O_RDWR); mode 267 tools/testing/selftests/kvm/dirty_log_test.c static void run_test(enum vm_guest_mode mode, unsigned long iterations, mode 282 tools/testing/selftests/kvm/dirty_log_test.c vm = create_vm(mode, VCPU_ID, mode 397 tools/testing/selftests/kvm/dirty_log_test.c #define vm_guest_mode_params_init(mode, supported, enabled) \ mode 399 tools/testing/selftests/kvm/dirty_log_test.c vm_guest_mode_params[mode] = (struct vm_guest_mode_params){ supported, enabled }; \ mode 434 tools/testing/selftests/kvm/dirty_log_test.c unsigned int mode; mode 483 tools/testing/selftests/kvm/dirty_log_test.c mode = strtoul(optarg, NULL, 10); mode 484 tools/testing/selftests/kvm/dirty_log_test.c TEST_ASSERT(mode < NUM_VM_MODES, mode 485 tools/testing/selftests/kvm/dirty_log_test.c "Guest mode ID %d too big", mode); mode 486 tools/testing/selftests/kvm/dirty_log_test.c vm_guest_mode_params[mode].enabled = true; mode 71 tools/testing/selftests/kvm/include/kvm_util.h struct kvm_vm *vm_create(enum vm_guest_mode mode, uint64_t phy_pages, int perm); mode 72 tools/testing/selftests/kvm/include/kvm_util.h struct kvm_vm *_vm_create(enum vm_guest_mode mode, uint64_t phy_pages, int perm); mode 38 tools/testing/selftests/kvm/lib/aarch64/processor.c "Mode %d does not have 4 page table levels", vm->mode); mode 49 tools/testing/selftests/kvm/lib/aarch64/processor.c "Mode %d does not have >= 3 page table levels", vm->mode); mode 263 tools/testing/selftests/kvm/lib/aarch64/processor.c switch (vm->mode) { mode 291 tools/testing/selftests/kvm/lib/aarch64/processor.c TEST_ASSERT(false, "Unknown guest mode, mode: 0x%x", vm->mode); mode 135 tools/testing/selftests/kvm/lib/kvm_util.c struct kvm_vm *_vm_create(enum vm_guest_mode mode, uint64_t phy_pages, int perm) mode 139 tools/testing/selftests/kvm/lib/kvm_util.c DEBUG("Testing guest mode: %s\n", vm_guest_mode_string(mode)); mode 144 tools/testing/selftests/kvm/lib/kvm_util.c vm->mode = mode; mode 148 tools/testing/selftests/kvm/lib/kvm_util.c switch (vm->mode) { mode 207 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(false, "Unknown guest mode, mode: 0x%x", mode); mode 237 tools/testing/selftests/kvm/lib/kvm_util.c struct kvm_vm *vm_create(enum vm_guest_mode mode, uint64_t phy_pages, int perm) mode 239 tools/testing/selftests/kvm/lib/kvm_util.c return _vm_create(mode, phy_pages, perm); mode 1453 tools/testing/selftests/kvm/lib/kvm_util.c fprintf(stream, "%*smode: 0x%x\n", indent, "", vm->mode); mode 45 tools/testing/selftests/kvm/lib/kvm_util_internal.h int mode; mode 231 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(vm->mode == VM_MODE_PXXV48_4K, "Attempt to use " mode 232 tools/testing/selftests/kvm/lib/x86_64/processor.c "unknown or unsupported guest mode, mode: 0x%x", vm->mode); mode 264 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(vm->mode == VM_MODE_PXXV48_4K, "Attempt to use " mode 265 tools/testing/selftests/kvm/lib/x86_64/processor.c "unknown or unsupported guest mode, mode: 0x%x", vm->mode); mode 550 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(vm->mode == VM_MODE_PXXV48_4K, "Attempt to use " mode 551 tools/testing/selftests/kvm/lib/x86_64/processor.c "unknown or unsupported guest mode, mode: 0x%x", vm->mode); mode 623 tools/testing/selftests/kvm/lib/x86_64/processor.c switch (vm->mode) { mode 637 tools/testing/selftests/kvm/lib/x86_64/processor.c TEST_ASSERT(false, "Unknown guest mode, mode: 0x%x", vm->mode); mode 398 tools/testing/selftests/kvm/lib/x86_64/vmx.c TEST_ASSERT(vm->mode == VM_MODE_PXXV48_4K, "Attempt to use " mode 399 tools/testing/selftests/kvm/lib/x86_64/vmx.c "unknown or unsupported guest mode, mode: 0x%x", vm->mode); mode 207 tools/testing/selftests/memfd/memfd_test.c static int mfd_assert_open(int fd, int flags, mode_t mode) mode 213 tools/testing/selftests/memfd/memfd_test.c r = open(buf, flags, mode); mode 222 tools/testing/selftests/memfd/memfd_test.c static void mfd_fail_open(int fd, int flags, mode_t mode) mode 228 tools/testing/selftests/memfd/memfd_test.c r = open(buf, flags, mode); mode 214 tools/testing/selftests/powerpc/ptrace/ptrace-hwbreak.c static void launch_watchpoints(char *buf, int mode, int len, mode 223 tools/testing/selftests/powerpc/ptrace/ptrace-hwbreak.c if (mode == BP_W) { mode 422 tools/testing/selftests/vm/userfaultfd.c uffdio_copy.mode = 0; mode 827 tools/testing/selftests/vm/userfaultfd.c uffdio_zeropage.mode = 0; mode 886 tools/testing/selftests/vm/userfaultfd.c uffdio_register.mode = UFFDIO_REGISTER_MODE_MISSING; mode 931 tools/testing/selftests/vm/userfaultfd.c uffdio_register.mode = UFFDIO_REGISTER_MODE_MISSING; mode 990 tools/testing/selftests/vm/userfaultfd.c uffdio_register.mode = UFFDIO_REGISTER_MODE_MISSING; mode 1121 tools/testing/selftests/vm/userfaultfd.c uffdio_register.mode = UFFDIO_REGISTER_MODE_MISSING; mode 605 tools/testing/vsock/vsock_diag_test.c int mode = TEST_MODE_UNSET; mode 623 tools/testing/vsock/vsock_diag_test.c mode = TEST_MODE_CLIENT; mode 625 tools/testing/vsock/vsock_diag_test.c mode = TEST_MODE_SERVER; mode 645 tools/testing/vsock/vsock_diag_test.c if (mode == TEST_MODE_UNSET) mode 651 tools/testing/vsock/vsock_diag_test.c if (mode != TEST_MODE_SERVER) mode 656 tools/testing/vsock/vsock_diag_test.c control_init(control_host, control_port, mode == TEST_MODE_SERVER); mode 664 tools/testing/vsock/vsock_diag_test.c if (mode == TEST_MODE_CLIENT) mode 363 tools/vm/slabinfo.c static void slab_numa(struct slabinfo *s, int mode) mode 379 tools/vm/slabinfo.c printf("\n%-21s:", mode ? "NUMA nodes" : "Slab"); mode 387 tools/vm/slabinfo.c printf("%-21s ", mode ? "All slabs" : s->name); mode 395 tools/vm/slabinfo.c if (mode) { mode 104 usr/gen_init_cpio.c unsigned int mode, uid_t uid, gid_t gid) mode 114 usr/gen_init_cpio.c S_IFLNK | mode, /* mode */ mode 138 usr/gen_init_cpio.c unsigned int mode; mode 143 usr/gen_init_cpio.c if (5 != sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) "s %o %d %d", name, target, &mode, &uid, &gid)) { mode 147 usr/gen_init_cpio.c rc = cpio_mkslink(name, target, mode, uid, gid); mode 152 usr/gen_init_cpio.c static int cpio_mkgeneric(const char *name, unsigned int mode, mode 163 usr/gen_init_cpio.c mode, /* mode */ mode 188 usr/gen_init_cpio.c mode_t mode; mode 194 usr/gen_init_cpio.c .mode = S_IFDIR mode 198 usr/gen_init_cpio.c .mode = S_IFIFO mode 202 usr/gen_init_cpio.c .mode = S_IFSOCK mode 209 usr/gen_init_cpio.c unsigned int mode; mode 214 usr/gen_init_cpio.c if (4 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d", name, &mode, &uid, &gid)) { mode 219 usr/gen_init_cpio.c mode |= generic_type_table[gt].mode; mode 220 usr/gen_init_cpio.c rc = cpio_mkgeneric(name, mode, uid, gid); mode 240 usr/gen_init_cpio.c static int cpio_mknod(const char *name, unsigned int mode, mode 247 usr/gen_init_cpio.c mode |= S_IFBLK; mode 249 usr/gen_init_cpio.c mode |= S_IFCHR; mode 257 usr/gen_init_cpio.c mode, /* mode */ mode 277 usr/gen_init_cpio.c unsigned int mode; mode 286 usr/gen_init_cpio.c name, &mode, &uid, &gid, &dev_type, &maj, &min)) { mode 290 usr/gen_init_cpio.c rc = cpio_mknod(name, mode, uid, gid, dev_type, maj, min); mode 296 usr/gen_init_cpio.c unsigned int mode, uid_t uid, gid_t gid, mode 309 usr/gen_init_cpio.c mode |= S_IFREG; mode 347 usr/gen_init_cpio.c mode, /* mode */ mode 405 usr/gen_init_cpio.c unsigned int mode; mode 414 usr/gen_init_cpio.c name, location, &mode, &uid, &gid, &end)) { mode 446 usr/gen_init_cpio.c mode, uid, gid, nlinks); mode 74 virt/kvm/arm/aarch32.c static unsigned long get_except32_cpsr(struct kvm_vcpu *vcpu, u32 mode) mode 127 virt/kvm/arm/aarch32.c if (mode != PSR_AA32_MODE_UND && mode != PSR_AA32_MODE_SVC) mode 140 virt/kvm/arm/aarch32.c if (mode == PSR_AA32_MODE_FIQ) mode 149 virt/kvm/arm/aarch32.c new |= mode; mode 154 virt/kvm/arm/aarch32.c static void prepare_fault32(struct kvm_vcpu *vcpu, u32 mode, u32 vect_offset) mode 161 virt/kvm/arm/aarch32.c *vcpu_cpsr(vcpu) = get_except32_cpsr(vcpu, mode); mode 761 virt/kvm/arm/arm.c smp_store_mb(vcpu->mode, IN_GUEST_MODE); mode 765 virt/kvm/arm/arm.c vcpu->mode = OUTSIDE_GUEST_MODE; mode 792 virt/kvm/arm/arm.c vcpu->mode = OUTSIDE_GUEST_MODE; mode 115 virt/kvm/arm/vgic/vgic-mmio-v2.c int mode = (val >> 24) & 0x03; mode 120 virt/kvm/arm/vgic/vgic-mmio-v2.c switch (mode) { mode 185 virt/kvm/eventfd.c irqfd_wakeup(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) mode 217 virt/kvm/kvm_main.c int mode = kvm_vcpu_exiting_guest_mode(vcpu); mode 224 virt/kvm/kvm_main.c return mode != OUTSIDE_GUEST_MODE; mode 229 virt/kvm/kvm_main.c return mode == IN_GUEST_MODE; mode 660 virt/kvm/kvm_main.c stat_data->mode = p->mode ? p->mode : 0644; mode 662 virt/kvm/kvm_main.c debugfs_create_file(p->name, stat_data->mode, kvm->debugfs_dentry, mode 4088 virt/kvm/kvm_main.c stat_data->mode & S_IWUGO ? set : NULL, mode 4337 virt/kvm/kvm_main.c int mode = p->mode ? p->mode : 0644; mode 4338 virt/kvm/kvm_main.c debugfs_create_file(p->name, mode, kvm_debugfs_dir,