/linux/drivers/media/tuners/ |
H A D | tda18271-maps.c | 19 u8 val; member 190 { .rfmax = 62000, .val = 0x00 }, 191 { .rfmax = 84000, .val = 0x01 }, 192 { .rfmax = 100000, .val = 0x02 }, 193 { .rfmax = 140000, .val = 0x03 }, 194 { .rfmax = 170000, .val = 0x04 }, 195 { .rfmax = 180000, .val = 0x05 }, 196 { .rfmax = 865000, .val = 0x06 }, 197 { .rfmax = 0, .val = 0x00 }, /* end */ 201 { .rfmax = 61100, .val = 0x74 }, [all …]
|
/linux/drivers/hwtracing/coresight/ |
H A D | coresight-etm-cp14.c | 15 int etm_readl_cp14(u32 reg, unsigned int *val) in etm_readl_cp14() argument 19 *val = etm_read(ETMCR); in etm_readl_cp14() 22 *val = etm_read(ETMCCR); in etm_readl_cp14() 25 *val = etm_read(ETMTRIGGER); in etm_readl_cp14() 28 *val = etm_read(ETMSR); in etm_readl_cp14() 31 *val = etm_read(ETMSCR); in etm_readl_cp14() 34 *val = etm_read(ETMTSSCR); in etm_readl_cp14() 37 *val = etm_read(ETMTEEVR); in etm_readl_cp14() 40 *val = etm_read(ETMTECR1); in etm_readl_cp14() 43 *val = etm_read(ETMFFLR); in etm_readl_cp14() [all …]
|
/linux/arch/arm/include/asm/hardware/ |
H A D | cp14.h | 12 #define dbg_write(val, reg) WCP14_##reg(val) argument 14 #define etm_write(val, reg) WCP14_##reg(val) argument 19 u32 val; \ 20 asm volatile("mrc p14, "#op1", %0, "#crn", "#crm", "#op2 : "=r" (val)); \ 21 val; \ 24 #define MCR14(val, op1, crn, crm, op2) \ argument 26 asm volatile("mcr p14, "#op1", %0, "#crn", "#crm", "#op2 : : "r" (val));\ 152 #define WCP14_DBGDTRTXint(val) MCR14(val, 0, c0, c5, 0) argument 153 #define WCP14_DBGWFAR(val) MCR14(val, 0, c0, c6, 0) argument 154 #define WCP14_DBGVCR(val) MCR14(val, 0, c0, c7, 0) argument [all …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | types.h | 133 #define CONF_HAS(config, val) ((config) & (1 << (val))) argument 138 #define CONF_IS(config, val) ((config) == (1 << (val))) argument 139 #define CONF_GE(config, val) ((config) & (0-(1 << (val)))) argument 140 #define CONF_GT(config, val) ((config) & (0-2*(1 << (val)))) argument 141 #define CONF_LT(config, val) ((config) & ((1 << (val))-1)) argument 142 #define CONF_LE(config, val) ((config) & (2*(1 << (val))-1)) argument 146 #define NCONF_HAS(val) CONF_HAS(NCONF, val) argument 148 #define NCONF_IS(val) CONF_IS(NCONF, val) argument 149 #define NCONF_GE(val) CONF_GE(NCONF, val) argument 150 #define NCONF_GT(val) CONF_GT(NCONF, val) argument [all …]
|
/linux/arch/loongarch/include/asm/ |
H A D | kvm_csr.h | 19 : [val] "=r" (__v) \ 30 : [val] "+r" (__v) \ 41 : [val] "+r" (__v) \ 49 #define write_gcsr_crmd(val) gcsr_write(val, LOONGARCH_CSR_CRMD) argument 51 #define write_gcsr_prmd(val) gcsr_write(val, LOONGARCH_CSR_PRMD) argument 53 #define write_gcsr_euen(val) gcsr_write(val, LOONGARCH_CSR_EUEN) argument 55 #define write_gcsr_misc(val) gcsr_write(val, LOONGARCH_CSR_MISC) argument 57 #define write_gcsr_ecfg(val) gcsr_write(val, LOONGARCH_CSR_ECFG) argument 59 #define write_gcsr_estat(val) gcsr_write(val, LOONGARCH_CSR_ESTAT) argument 61 #define write_gcsr_era(val) gcsr_write(val, LOONGARCH_CSR_ERA) argument [all …]
|
H A D | percpu.h | 41 unsigned long val, int size) \ 50 : [val] "r" (val)); \ 56 : [val] "r" (val)); \ 63 return ret c_op val; \ 71 static __always_inline unsigned long __percpu_xchg(void *ptr, unsigned long val, int size) in __percpu_xchg() argument 76 return __xchg_small((volatile void *)ptr, val, size); in __percpu_xchg() 79 return __xchg_asm("amswap.w", (volatile u32 *)ptr, (u32)val); in __percpu_xchg() 82 return __xchg_asm("amswap.d", (volatile u64 *)ptr, (u64)val); in __percpu_xchg() 114 : [val] "r"(_val), [ptr] "r"(&(_pcp)) \ 128 #define _pcp_protect(operation, pcp, val) \ argument [all …]
|
/linux/drivers/phy/ |
H A D | phy-xgene.c | 555 u32 val; in sds_wr() local 565 val = readl(csr_base + indirect_cmd_reg); in sds_wr() 566 } while (!(val & CFG_IND_CMD_DONE_MASK) && in sds_wr() 568 if (!(val & CFG_IND_CMD_DONE_MASK)) in sds_wr() 577 u32 val; in sds_rd() local 585 val = readl(csr_base + indirect_cmd_reg); in sds_rd() 586 } while (!(val & CFG_IND_CMD_DONE_MASK) && in sds_rd() 589 if (!(val & CFG_IND_CMD_DONE_MASK)) in sds_rd() 598 u32 val; in cmu_wr() local 607 SATA_ENET_SDS_IND_RDATA_REG, reg, &val); in cmu_wr() [all …]
|
/linux/arch/mips/include/asm/ |
H A D | mipsregs.h | 1540 #define write_r10k_perf_cntr(counter,val) \ argument 1545 : "r" (val), "i" (counter)); \ 1559 #define write_r10k_perf_cntl(counter,val) \ argument 1564 : "r" (val), "i" (counter)); \ 1666 #define __write_ulong_c0_register(reg, sel, val) \ argument 1669 __write_32bit_c0_register(reg, sel, val); \ 1671 __write_64bit_c0_register(reg, sel, val); \ 1725 #define __write_64bit_c0_split(source, sel, val) \ argument 1727 unsigned long long __tmp = (val); \ 1812 #define write_c0_index(val) __write_32bit_c0_registe argument 1815 write_c0_random(val) global() argument 1818 write_c0_entrylo0(val) global() argument 1821 writex_c0_entrylo0(val) global() argument 1824 write_c0_entrylo1(val) global() argument 1827 writex_c0_entrylo1(val) global() argument 1830 write_c0_conf(val) global() argument 1835 write_c0_context(val) global() argument 1838 write_c0_contextconfig(val) global() argument 1841 write_c0_userlocal(val) global() argument 1844 write_c0_xcontextconfig(val) global() argument 1847 write_c0_memorymapid(val) global() argument 1850 write_c0_pagemask(val) global() argument 1853 write_c0_pagegrain(val) global() argument 1856 write_c0_wired(val) global() argument 1861 write_c0_cache(val) global() argument 1864 write_c0_badvaddr(val) global() argument 1870 write_c0_count(val) global() argument 1873 write_c0_entryhi(val) global() argument 1876 write_c0_guestctl1(val) global() argument 1879 write_c0_guestctl2(val) global() argument 1882 write_c0_guestctl3(val) global() argument 1885 write_c0_compare(val) global() argument 1888 write_c0_guestctl0ext(val) global() argument 1892 write_c0_status(val) global() argument 1895 write_c0_guestctl0(val) global() argument 1898 write_c0_gtoffset(val) global() argument 1901 write_c0_cause(val) global() argument 1904 write_c0_epc(val) global() argument 1918 write_c0_config(val) global() argument 1919 write_c0_config1(val) global() argument 1920 write_c0_config2(val) global() argument 1921 write_c0_config3(val) global() argument 1922 write_c0_config4(val) global() argument 1923 write_c0_config5(val) global() argument 1924 write_c0_config6(val) global() argument 1925 write_c0_config7(val) global() argument 1928 write_c0_lladdr(val) global() argument 1930 write_c0_maar(val) global() argument 1932 writex_c0_maar(val) global() argument 1934 write_c0_maari(val) global() argument 1947 write_c0_watchlo0(val) global() argument 1948 write_c0_watchlo1(val) global() argument 1949 write_c0_watchlo2(val) global() argument 1950 write_c0_watchlo3(val) global() argument 1951 write_c0_watchlo4(val) global() argument 1952 write_c0_watchlo5(val) global() argument 1953 write_c0_watchlo6(val) global() argument 1954 write_c0_watchlo7(val) global() argument 1968 write_c0_watchhi0(val) global() argument 1969 write_c0_watchhi1(val) global() argument 1970 write_c0_watchhi2(val) global() argument 1971 write_c0_watchhi3(val) global() argument 1972 write_c0_watchhi4(val) global() argument 1973 write_c0_watchhi5(val) global() argument 1974 write_c0_watchhi6(val) global() argument 1975 write_c0_watchhi7(val) global() argument 1978 write_c0_xcontext(val) global() argument 1981 write_c0_intcontrol(val) global() argument 1984 write_c0_framemask(val) global() argument 1987 write_c0_diag(val) global() argument 1991 write_c0_r10k_diag(val) global() argument 1994 write_c0_diag1(val) global() argument 1997 write_c0_diag2(val) global() argument 2000 write_c0_diag3(val) global() argument 2003 write_c0_diag4(val) global() argument 2006 write_c0_diag5(val) global() argument 2009 write_c0_debug(val) global() argument 2012 write_c0_depc(val) global() argument 2018 write_c0_perfctrl0(val) global() argument 2020 write_c0_perfcntr0(val) global() argument 2022 write_c0_perfcntr0_64(val) global() argument 2024 write_c0_perfctrl1(val) global() argument 2026 write_c0_perfcntr1(val) global() argument 2028 write_c0_perfcntr1_64(val) global() argument 2030 write_c0_perfctrl2(val) global() argument 2032 write_c0_perfcntr2(val) global() argument 2034 write_c0_perfcntr2_64(val) global() argument 2036 write_c0_perfctrl3(val) global() argument 2038 write_c0_perfcntr3(val) global() argument 2040 write_c0_perfcntr3_64(val) global() argument 2043 write_c0_ecc(val) global() argument 2046 write_c0_derraddr0(val) global() argument 2051 write_c0_derraddr1(val) global() argument 2054 write_c0_taglo(val) global() argument 2057 write_c0_dtaglo(val) global() argument 2060 write_c0_ddatalo(val) global() argument 2063 write_c0_staglo(val) global() argument 2066 write_c0_taghi(val) global() argument 2069 write_c0_errorepc(val) global() argument 2073 write_c0_hwrena(val) global() argument 2076 write_c0_intctl(val) global() argument 2079 write_c0_srsctl(val) global() argument 2082 write_c0_srsmap(val) global() argument 2085 write_c0_ebase(val) global() argument 2088 write_c0_ebase_64(val) global() argument 2091 write_c0_cdmmbase(val) global() argument 2095 write_c0_segctl0(val) global() argument 2098 write_c0_segctl1(val) global() argument 2101 write_c0_segctl2(val) global() argument 2105 write_c0_pwbase(val) global() argument 2108 write_c0_pwfield(val) global() argument 2111 write_c0_pwsize(val) global() argument 2114 write_c0_pwctl(val) global() argument 2117 write_c0_pgd(val) global() argument 2120 write_c0_kpgd(val) global() argument 2124 write_c0_cvmcount(val) global() argument 2127 write_c0_cvmctl(val) global() argument 2130 write_c0_cvmmemctl(val) global() argument 2133 write_c0_cvmmemctl2(val) global() argument 2136 write_c0_cvmvmconfig(val) global() argument 2143 write_octeon_c0_icacheerr(val) global() argument 2146 write_octeon_c0_dcacheerr(val) global() argument 2150 write_c0_brcm_config_0(val) global() argument 2153 write_c0_brcm_bus_pll(val) global() argument 2156 write_c0_brcm_reset(val) global() argument 2160 write_c0_brcm_cmt_intr(val) global() argument 2163 write_c0_brcm_cmt_ctrl(val) global() argument 2166 write_c0_brcm_cmt_local(val) global() argument 2169 write_c0_brcm_config_1(val) global() argument 2172 write_c0_brcm_cbr(val) global() argument 2176 write_c0_brcm_config(val) global() argument 2179 write_c0_brcm_mode(val) global() argument 2182 write_c0_brcm_action(val) global() argument 2185 write_c0_brcm_edsp(val) global() argument 2188 write_c0_brcm_bootvec(val) global() argument 2191 write_c0_brcm_sleepcount(val) global() argument 2194 write_c0_page_ctrl(val) global() argument 2317 __write_ulong_gc0_register(reg,sel,val) global() argument 2326 write_gc0_index(val) global() argument 2329 write_gc0_entrylo0(val) global() argument 2332 write_gc0_entrylo1(val) global() argument 2335 write_gc0_context(val) global() argument 2338 write_gc0_contextconfig(val) global() argument 2341 write_gc0_userlocal(val) global() argument 2344 write_gc0_xcontextconfig(val) global() argument 2347 write_gc0_pagemask(val) global() argument 2350 write_gc0_pagegrain(val) global() argument 2353 write_gc0_segctl0(val) global() argument 2356 write_gc0_segctl1(val) global() argument 2359 write_gc0_segctl2(val) global() argument 2362 write_gc0_pwbase(val) global() argument 2365 write_gc0_pwfield(val) global() argument 2368 write_gc0_pwsize(val) global() argument 2371 write_gc0_wired(val) global() argument 2374 write_gc0_pwctl(val) global() argument 2377 write_gc0_hwrena(val) global() argument 2380 write_gc0_badvaddr(val) global() argument 2383 write_gc0_badinstr(val) global() argument 2386 write_gc0_badinstrp(val) global() argument 2391 write_gc0_entryhi(val) global() argument 2394 write_gc0_compare(val) global() argument 2397 write_gc0_status(val) global() argument 2400 write_gc0_intctl(val) global() argument 2403 write_gc0_cause(val) global() argument 2406 write_gc0_epc(val) global() argument 2411 write_gc0_ebase(val) global() argument 2414 write_gc0_ebase_64(val) global() argument 2424 write_gc0_config(val) global() argument 2425 write_gc0_config1(val) global() argument 2426 write_gc0_config2(val) global() argument 2427 write_gc0_config3(val) global() argument 2428 write_gc0_config4(val) global() argument 2429 write_gc0_config5(val) global() argument 2430 write_gc0_config6(val) global() argument 2431 write_gc0_config7(val) global() argument 2434 write_gc0_lladdr(val) global() argument 2444 write_gc0_watchlo0(val) global() argument 2445 write_gc0_watchlo1(val) global() argument 2446 write_gc0_watchlo2(val) global() argument 2447 write_gc0_watchlo3(val) global() argument 2448 write_gc0_watchlo4(val) global() argument 2449 write_gc0_watchlo5(val) global() argument 2450 write_gc0_watchlo6(val) global() argument 2451 write_gc0_watchlo7(val) global() argument 2461 write_gc0_watchhi0(val) global() argument 2462 write_gc0_watchhi1(val) global() argument 2463 write_gc0_watchhi2(val) global() argument 2464 write_gc0_watchhi3(val) global() argument 2465 write_gc0_watchhi4(val) global() argument 2466 write_gc0_watchhi5(val) global() argument 2467 write_gc0_watchhi6(val) global() argument 2468 write_gc0_watchhi7(val) global() argument 2471 write_gc0_xcontext(val) global() argument 2474 write_gc0_perfctrl0(val) global() argument 2476 write_gc0_perfcntr0(val) global() argument 2478 write_gc0_perfcntr0_64(val) global() argument 2480 write_gc0_perfctrl1(val) global() argument 2482 write_gc0_perfcntr1(val) global() argument 2484 write_gc0_perfcntr1_64(val) global() argument 2486 write_gc0_perfctrl2(val) global() argument 2488 write_gc0_perfcntr2(val) global() argument 2490 write_gc0_perfcntr2_64(val) global() argument 2492 write_gc0_perfctrl3(val) global() argument 2494 write_gc0_perfcntr3(val) global() argument 2496 write_gc0_perfcntr3_64(val) global() argument 2499 write_gc0_errorepc(val) global() argument 2507 write_gc0_kscratch1(val) global() argument 2508 write_gc0_kscratch2(val) global() argument 2509 write_gc0_kscratch3(val) global() argument 2510 write_gc0_kscratch4(val) global() argument 2511 write_gc0_kscratch5(val) global() argument 2512 write_gc0_kscratch6(val) global() argument 2516 write_gc0_cvmcount(val) global() argument 2519 write_gc0_cvmctl(val) global() argument 2522 write_gc0_cvmmemctl(val) global() argument 2525 write_gc0_cvmmemctl2(val) global() argument 2547 write_32bit_cp1_register(dest,val) global() argument 2574 wrdsp(val,mask) global() argument 2806 wrdsp(val,mask) global() argument 2836 _dsp_mtxxx(val,ins) global() argument 2854 _dsp_mtlo(val,reg) global() argument 2855 _dsp_mthi(val,reg) global() argument 2862 _dsp_mtlo(val,reg) global() argument 2863 _dsp_mthi(val,reg) global() argument [all...] |
/linux/tools/perf/util/ |
H A D | expr.y | 40 double val; 76 static bool is_const(double val) 78 return isfinite(val); 84 .val = BOTTOM, 102 result.val = NAN; 104 result.val = source_count 115 result.val = BOTTOM; 131 if (!compute_ids || (is_const(LHS.val) && is_const(RHS.val))) { \ 134 if (isnan(LHS.val) || isnan(RHS.val)) { \ 135 RESULT.val = NAN; \ [all …]
|
/linux/arch/mips/pci/ |
H A D | pci-bcm63xx.c | 109 static void bcm63xx_int_cfg_writel(u32 val, u32 reg) in bcm63xx_int_cfg_writel() argument 116 bcm_mpi_writel(val, MPI_PCICFGDATA_REG); in bcm63xx_int_cfg_writel() 123 u32 val; in bcm63xx_reset_pcie() local 132 val = bcm_misc_readl(reg); in bcm63xx_reset_pcie() 133 val |= SERDES_PCIE_EN | SERDES_PCIE_EXD_EN; in bcm63xx_reset_pcie() 134 bcm_misc_writel(val, reg); in bcm63xx_reset_pcie() 152 u32 val; in bcm63xx_register_pcie() local 164 val = bcm_pcie_readl(PCIE_BRIDGE_OPT1_REG); in bcm63xx_register_pcie() 165 val |= OPT1_RD_BE_OPT_EN; in bcm63xx_register_pcie() 166 val |= OPT1_RD_REPLY_BE_FIX_EN; in bcm63xx_register_pcie() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_tc_u32_parse.h | 41 int (*val)(struct ch_filter_specification *f, __be32 val, __be32 mask); member 46 __be32 val, __be32 mask) in cxgb4_fill_ipv4_tos() argument 48 f->val.tos = (ntohl(val) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_tos() 55 __be32 val, __be32 mask) in cxgb4_fill_ipv4_frag() argument 60 frag_val = (ntohl(val) >> 13) & 0x00000007; in cxgb4_fill_ipv4_frag() 64 f->val.frag = 1; in cxgb4_fill_ipv4_frag() 67 f->val.frag = 0; in cxgb4_fill_ipv4_frag() 77 __be32 val, __be32 mask) in cxgb4_fill_ipv4_proto() argument 79 f->val.proto = (ntohl(val) >> 16) & 0x000000FF; in cxgb4_fill_ipv4_proto() 86 __be32 val, __be32 mask) in cxgb4_fill_ipv4_src_ip() argument [all …]
|
/linux/sound/pci/ac97/ |
H A D | ac97_proc.c | 95 unsigned short val, tmp, ext, mext; in snd_ac97_proc_read_main() local 115 val = snd_ac97_read(ac97, AC97_INT_PAGING); in snd_ac97_proc_read_main() 126 AC97_PAGE_MASK, val & AC97_PAGE_MASK); in snd_ac97_proc_read_main() 129 // val = snd_ac97_read(ac97, AC97_RESET); in snd_ac97_proc_read_main() 130 val = ac97->caps; in snd_ac97_proc_read_main() 132 val & AC97_BC_DEDICATED_MIC ? " -dedicated MIC PCM IN channel-" : "", in snd_ac97_proc_read_main() 133 val & AC97_BC_RESERVED1 ? " -reserved1-" : "", in snd_ac97_proc_read_main() 134 val & AC97_BC_BASS_TREBLE ? " -bass & treble-" : "", in snd_ac97_proc_read_main() 135 val & AC97_BC_SIM_STEREO ? " -simulated stereo-" : "", in snd_ac97_proc_read_main() 136 val in snd_ac97_proc_read_main() 367 unsigned int reg, val; snd_ac97_proc_regs_write() local 382 int reg, val; snd_ac97_proc_regs_read_main() local [all...] |
/linux/drivers/net/wireless/ath/ath5k/ |
H A D | eeprom.c | 43 u16 val; in ath5k_eeprom_bin2freq() local 50 val = (5 * bin) + 4800; in ath5k_eeprom_bin2freq() 52 val = bin > 62 ? (10 * 62) + (5 * (bin - 62)) + 5100 : in ath5k_eeprom_bin2freq() 56 val = bin + 2300; in ath5k_eeprom_bin2freq() 58 val = bin + 2400; in ath5k_eeprom_bin2freq() 61 return val; in ath5k_eeprom_bin2freq() 76 u16 val; in ath5k_eeprom_init_header() local 96 AR5K_EEPROM_READ(AR5K_EEPROM_SIZE_UPPER, val); in ath5k_eeprom_init_header() 97 if (val) { in ath5k_eeprom_init_header() 98 eep_max = (val & AR5K_EEPROM_SIZE_UPPER_MASK) << in ath5k_eeprom_init_header() [all …]
|
/linux/drivers/gpu/drm/mcde/ |
H A D | mcde_dsi.c | 70 u32 val; in mcde_dsi_irq() local 77 val = readl(d->regs + DSI_DIRECT_CMD_STS_FLAG); in mcde_dsi_irq() 78 if (val) in mcde_dsi_irq() 79 dev_dbg(d->dev, "DSI_DIRECT_CMD_STS_FLAG = %08x\n", val); in mcde_dsi_irq() 80 if (val & DSI_DIRECT_CMD_STS_WRITE_COMPLETED) in mcde_dsi_irq() 82 if (val & DSI_DIRECT_CMD_STS_TE_RECEIVED) { in mcde_dsi_irq() 86 if (val & DSI_DIRECT_CMD_STS_ACKNOWLEDGE_WITH_ERR_RECEIVED) in mcde_dsi_irq() 88 if (val & DSI_DIRECT_CMD_STS_READ_COMPLETED_WITH_ERR) in mcde_dsi_irq() 91 writel(val, d->regs + DSI_DIRECT_CMD_STS_CLR); in mcde_dsi_irq() 93 val = readl(d->regs + DSI_CMD_MODE_STS_FLAG); in mcde_dsi_irq() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_fixed.h | 15 u32 val; member 18 #define FP_16_16_MAX ((uint_fixed_16_16_t){ .val = UINT_MAX }) 20 static inline bool is_fixed16_zero(uint_fixed_16_16_t val) in is_fixed16_zero() argument 22 return val.val == 0; in is_fixed16_zero() 25 static inline uint_fixed_16_16_t u32_to_fixed16(u32 val) in u32_to_fixed16() argument 27 uint_fixed_16_16_t fp = { .val = val << 16 }; in u32_to_fixed16() 29 WARN_ON(val > U16_MAX); in u32_to_fixed16() 36 return DIV_ROUND_UP(fp.val, 1 << 16); in fixed16_to_u32_round_up() 41 return fp.val >> 16; in fixed16_to_u32() 47 uint_fixed_16_16_t min = { .val = min(min1.val, min2.val) }; in min_fixed16() [all …]
|
/linux/drivers/hwmon/ |
H A D | hwmon-vid.c | 69 int vid_from_reg(int val, u8 vrm) in vid_from_reg() argument 77 val &= 0x3f; in vid_from_reg() 78 if ((val & 0x1f) == 0x1f) in vid_from_reg() 80 if ((val & 0x1f) <= 0x09 || val == 0x0a) in vid_from_reg() 81 vid = 1087500 - (val & 0x1f) * 25000; in vid_from_reg() 83 vid = 1862500 - (val & 0x1f) * 25000; in vid_from_reg() 84 if (val & 0x20) in vid_from_reg() 90 val &= 0xff; in vid_from_reg() 91 if (val < 0x02 || val > 0xb2) in vid_from_reg() 93 return (1600000 - (val - 2) * 6250 + 500) / 1000; in vid_from_reg() [all …]
|
/linux/arch/powerpc/lib/ |
H A D | qspinlock.c | 105 static inline int decode_tail_cpu(u32 val) in decode_tail_cpu() argument 107 return (val >> _Q_TAIL_CPU_OFFSET) - 1; in decode_tail_cpu() 110 static inline int get_owner_cpu(u32 val) in get_owner_cpu() argument 112 return (val & _Q_OWNER_CPU_MASK) >> _Q_OWNER_CPU_OFFSET; in get_owner_cpu() 145 : "r" (&lock->val), "r"(tail), "r" (newval), in trylock_clean_tail() 175 : "r" (&lock->val), "r" (tail), "r"(_Q_TAIL_CPU_MASK) in publish_tail_cpu() 191 : "r" (&lock->val), "r" (_Q_MUST_Q_VAL) in set_mustq() 207 : "r" (&lock->val), "r" (_Q_MUST_Q_VAL) in clear_mustq() 229 : "r" (&lock->val), "r"(old), "r" (new) in try_set_sleepy() 235 static __always_inline void seen_sleepy_owner(struct qspinlock *lock, u32 val) in seen_sleepy_owner() argument [all …]
|
/linux/drivers/phy/marvell/ |
H A D | phy-mvebu-cp110-comphy.c | 340 u32 val; in mvebu_comphy_ethernet_init_reset() local 342 regmap_read(priv->regmap, MVEBU_COMPHY_CONF1(lane->id), &val); in mvebu_comphy_ethernet_init_reset() 343 val &= ~MVEBU_COMPHY_CONF1_USB_PCIE; in mvebu_comphy_ethernet_init_reset() 344 val |= MVEBU_COMPHY_CONF1_PWRUP; in mvebu_comphy_ethernet_init_reset() 345 regmap_write(priv->regmap, MVEBU_COMPHY_CONF1(lane->id), val); in mvebu_comphy_ethernet_init_reset() 348 val = readl(priv->base + MVEBU_COMPHY_SERDES_CFG0(lane->id)); in mvebu_comphy_ethernet_init_reset() 349 val &= ~(MVEBU_COMPHY_SERDES_CFG0_PU_PLL | in mvebu_comphy_ethernet_init_reset() 359 val |= MVEBU_COMPHY_SERDES_CFG0_GEN_RX(0xe) | in mvebu_comphy_ethernet_init_reset() 363 val |= MVEBU_COMPHY_SERDES_CFG0_GEN_RX(0xb) | in mvebu_comphy_ethernet_init_reset() 368 val | in mvebu_comphy_ethernet_init_reset() 456 u32 val; mvebu_comphy_init_plls() local 498 u32 val; mvebu_comphy_set_mode_sgmii() local 531 u32 val; mvebu_comphy_set_mode_rxaui() local 584 u32 val; mvebu_comphy_set_mode_10gbaser() local 727 u32 val; mvebu_comphy_power_on_legacy() local 878 u32 val; mvebu_comphy_power_off_legacy() local 1039 u32 val; mvebu_comphy_probe() local [all...] |
/linux/drivers/gpu/drm/sprd/ |
H A D | megacores_pll.c | 127 static void dphy_set_timing_reg(struct regmap *regmap, int type, u8 val[]) in dphy_set_timing_reg() argument 131 regmap_write(regmap, 0x31, val[CLK]); in dphy_set_timing_reg() 132 regmap_write(regmap, 0x41, val[DATA]); in dphy_set_timing_reg() 133 regmap_write(regmap, 0x51, val[DATA]); in dphy_set_timing_reg() 134 regmap_write(regmap, 0x61, val[DATA]); in dphy_set_timing_reg() 135 regmap_write(regmap, 0x71, val[DATA]); in dphy_set_timing_reg() 137 regmap_write(regmap, 0x90, val[CLK]); in dphy_set_timing_reg() 138 regmap_write(regmap, 0xa0, val[DATA]); in dphy_set_timing_reg() 139 regmap_write(regmap, 0xb0, val[DATA]); in dphy_set_timing_reg() 140 regmap_write(regmap, 0xc0, val[DATA]); in dphy_set_timing_reg() [all …]
|
/linux/drivers/media/platform/qcom/camss/ |
H A D | camss-csid-gen2.c | 183 int val; in __csid_configure_rx() local 188 val = (lane_cnt - 1) << CSI2_RX_CFG0_NUM_ACTIVE_LANES; in __csid_configure_rx() 189 val |= phy->lane_assign << CSI2_RX_CFG0_DL0_INPUT_SEL; in __csid_configure_rx() 190 val |= phy->csiphy_id << CSI2_RX_CFG0_PHY_NUM_SEL; in __csid_configure_rx() 191 writel_relaxed(val, csid->base + CSID_CSI2_RX_CFG0); in __csid_configure_rx() 193 val = 1 << CSI2_RX_CFG1_PACKET_ECC_CORRECTION_EN; in __csid_configure_rx() 195 val |= 1 << CSI2_RX_CFG1_VC_MODE; in __csid_configure_rx() 196 val |= 1 << CSI2_RX_CFG1_MISR_EN; in __csid_configure_rx() 197 writel_relaxed(val, csid->base + CSID_CSI2_RX_CFG1); in __csid_configure_rx() 202 int val; in __csid_ctrl_rdi() local [all …]
|
/linux/sound/synth/emux/ |
H A D | emux_nrpn.c | 19 int (*convert)(int val); 41 int type, int val, int mode) in send_converted_effect() argument 46 cval = table[i].convert(val); in send_converted_effect() 86 static int fx_delay(int val); 87 static int fx_attack(int val); 88 static int fx_hold(int val); 89 static int fx_decay(int val); 90 static int fx_the_value(int val); 91 static int fx_twice_value(int val); 92 static int fx_conv_pitch(int val); [all …]
|
/linux/sound/soc/hisilicon/ |
H A D | hi6210-i2s.c | 80 static inline void hi6210_write_reg(struct hi6210_i2s *i2s, int reg, u32 val) in hi6210_write_reg() argument 82 writel(val, i2s->base + reg); in hi6210_write_reg() 95 u32 val; in hi6210_i2s_startup() local 98 regmap_read(i2s->sysctrl, SC_PERIPH_RSTSTAT2, &val); in hi6210_i2s_startup() 99 if (val & BIT(4)) in hi6210_i2s_startup() 126 val = hi6210_read_reg(i2s, HII2S_CODEC_IRQ_MASK); in hi6210_i2s_startup() 127 val |= 0x3f; in hi6210_i2s_startup() 128 hi6210_write_reg(i2s, HII2S_CODEC_IRQ_MASK, val); in hi6210_i2s_startup() 132 val = hi6210_read_reg(i2s, HII2S_APB_AFIFO_CFG_1); in hi6210_i2s_startup() 133 val |= (BIT(5) | BIT(4)); in hi6210_i2s_startup() [all …]
|
/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | tsc_msrs_test.c |
|
/linux/arch/s390/include/asm/ |
H A D | percpu.h | 28 #define arch_this_cpu_to_op_simple(pcp, val, op) \ argument 38 new__ = old__ op (val); \ 45 #define this_cpu_add_1(pcp, val) arch_this_cpu_to_op_simple(pcp, val, +) argument 46 #define this_cpu_add_2(pcp, val) arch_this_cpu_to_op_simple(pcp, val, +) argument 47 #define this_cpu_add_return_1(pcp, val) arch_this_cpu_to_op_simple(pcp, val, +) argument 48 #define this_cpu_add_return_2(pcp, val) arch_this_cpu_to_op_simple(pcp, val, +) argument 49 #define this_cpu_and_1(pcp, val) arch_this_cpu_to_op_simple(pcp, val, &) argument 50 #define this_cpu_and_2(pcp, val) arch_this_cpu_to_op_simple(pcp, val, &) argument 51 #define this_cpu_or_1(pcp, val) arch_this_cpu_to_op_simple(pcp, val, |) argument 52 #define this_cpu_or_2(pcp, val) arch_this_cpu_to_op_simple(pcp, val, |) argument [all …]
|
/linux/include/sound/ |
H A D | emu8000_reg.h | 108 #define EMU8000_CPF_WRITE(emu, chan, val) \ argument 109 snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(0, (chan)), (val)) 110 #define EMU8000_PTRX_WRITE(emu, chan, val) \ argument 111 snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(1, (chan)), (val)) 112 #define EMU8000_CVCF_WRITE(emu, chan, val) \ argument 113 snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(2, (chan)), (val)) 114 #define EMU8000_VTFT_WRITE(emu, chan, val) \ argument 115 snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(3, (chan)), (val)) 116 #define EMU8000_PSST_WRITE(emu, chan, val) \ argument 117 snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(6, (chan)), (val)) [all …]
|