/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_register($0, 0, val) 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() 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 & AC97_BC_HEADPHONE ? " -headphone out-" : "", in snd_ac97_proc_read_main() 137 val & AC97_BC_LOUDNESS ? " -loudness-" : ""); in snd_ac97_proc_read_main() [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/net/phy/ |
H A D | phy-c45.c | 19 int val; in genphy_c45_baset1_able() local 22 val = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_EXTABLE); in genphy_c45_baset1_able() 23 if (val < 0) in genphy_c45_baset1_able() 26 phydev->pma_extable = val; in genphy_c45_baset1_able() 399 int val; in genphy_c45_aneg_done() local 404 val = phy_read_mmd(phydev, MDIO_MMD_AN, reg); in genphy_c45_aneg_done() 406 return val < 0 ? val : val & MDIO_AN_STAT1_COMPLETE ? 1 : 0; in genphy_c45_aneg_done() 421 int val, devad; in genphy_c45_read_link() local 425 val = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_CTRL1); in genphy_c45_read_link() 426 if (val < 0) in genphy_c45_read_link() [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 |= MVEBU_COMPHY_SERDES_CFG0_GEN_RX(0x8) | in mvebu_comphy_ethernet_init_reset() [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/tools/testing/selftests/kvm/x86_64/ |
H A D | tsc_msrs_test.c | 21 u64 val = 0; in guest_code() local 23 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC), val); in guest_code() 24 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC_ADJUST), val); in guest_code() 27 val = 1ull * GUEST_STEP; in guest_code() 28 wrmsr(MSR_IA32_TSC, val); in guest_code() 29 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC), val); in guest_code() 30 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC_ADJUST), val); in guest_code() 34 val = 2ull * GUEST_STEP; in guest_code() 35 wrmsr(MSR_IA32_TSC_ADJUST, val); in guest_code() 36 GUEST_ASSERT_EQ(rounded_rdmsr(MSR_IA32_TSC), val); in guest_code() [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/arch/arm64/boot/dts/ti/ |
H A D | k3-pinctrl.h | 44 #define AM62AX_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 45 #define AM62AX_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 47 #define AM62PX_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 48 #define AM62PX_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 50 #define AM62X_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 51 #define AM62X_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 53 #define AM64X_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 54 #define AM64X_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 56 #define AM65X_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument 57 #define AM65X_WKUP_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument [all …]
|