| /OK3568_Linux_fs/kernel/drivers/media/usb/em28xx/ |
| H A D | em28xx-core.c | 76 int em28xx_read_reg_req_len(struct em28xx *dev, u8 req, u16 reg, in em28xx_read_reg_req_len() 122 int em28xx_read_reg_req(struct em28xx *dev, u8 req, u16 reg) in em28xx_read_reg_req() 134 int em28xx_read_reg(struct em28xx *dev, u16 reg) in em28xx_read_reg() 144 int em28xx_write_regs_req(struct em28xx *dev, u8 req, u16 reg, char *buf, in em28xx_write_regs_req() 187 int em28xx_write_regs(struct em28xx *dev, u16 reg, char *buf, int len) in em28xx_write_regs() 194 int em28xx_write_reg(struct em28xx *dev, u16 reg, u8 val) in em28xx_write_reg() 205 int em28xx_write_reg_bits(struct em28xx *dev, u16 reg, u8 val, in em28xx_write_reg_bits() 225 int em28xx_toggle_reg_bits(struct em28xx *dev, u16 reg, u8 bitmask) in em28xx_toggle_reg_bits() 269 int em28xx_read_ac97(struct em28xx *dev, u8 reg) in em28xx_read_ac97() 296 int em28xx_write_ac97(struct em28xx *dev, u8 reg, u16 val) in em28xx_write_ac97() [all …]
|
| /OK3568_Linux_fs/kernel/sound/isa/ad1816a/ |
| H A D | ad1816a_lib.c | 32 static inline unsigned char snd_ad1816a_in(struct snd_ad1816a *chip, unsigned char reg) in snd_ad1816a_in() 38 static inline void snd_ad1816a_out(struct snd_ad1816a *chip, unsigned char reg, in snd_ad1816a_out() 45 static inline void snd_ad1816a_out_mask(struct snd_ad1816a *chip, unsigned char reg, in snd_ad1816a_out_mask() 52 static unsigned short snd_ad1816a_read(struct snd_ad1816a *chip, unsigned char reg) in snd_ad1816a_read() 59 static void snd_ad1816a_write(struct snd_ad1816a *chip, unsigned char reg, in snd_ad1816a_write() 67 static void snd_ad1816a_write_mask(struct snd_ad1816a *chip, unsigned char reg, in snd_ad1816a_write_mask() 495 int reg; in snd_ad1816a_suspend() local 506 int reg; in snd_ad1816a_resume() local 741 #define AD1816A_SINGLE_TLV(xname, reg, shift, mask, invert, xtlv) \ argument 748 #define AD1816A_SINGLE(xname, reg, shift, mask, invert) \ argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/dsa/ |
| H A D | qca8k.c | 143 qca8k_read(struct qca8k_priv *priv, u32 reg) in qca8k_read() 161 qca8k_write(struct qca8k_priv *priv, u32 reg, u32 val) in qca8k_write() 176 qca8k_rmw(struct qca8k_priv *priv, u32 reg, u32 mask, u32 val) in qca8k_rmw() 197 qca8k_reg_set(struct qca8k_priv *priv, u32 reg, u32 val) in qca8k_reg_set() 203 qca8k_reg_clear(struct qca8k_priv *priv, u32 reg, u32 val) in qca8k_reg_clear() 209 qca8k_regmap_read(void *ctx, uint32_t reg, uint32_t *val) in qca8k_regmap_read() 219 qca8k_regmap_write(void *ctx, uint32_t reg, uint32_t val) in qca8k_regmap_write() 263 qca8k_busy_wait(struct qca8k_priv *priv, u32 reg, u32 mask) in qca8k_busy_wait() 285 u32 reg[4]; in qca8k_fdb_read() local 311 u32 reg[3] = { 0 }; in qca8k_fdb_write() local [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/net/ |
| H A D | enc28j60.c | 66 static void enc_bset(enc_dev_t *enc, const u8 reg, const u8 data) in enc_bset() 76 static void enc_bclr(enc_dev_t *enc, const u8 reg, const u8 data) in enc_bclr() 94 static void enc_set_bank(enc_dev_t *enc, const u16 reg) in enc_set_bank() 141 static int enc_reg2nbytes(const u16 reg) in enc_reg2nbytes() 152 static u8 enc_r8(enc_dev_t *enc, const u16 reg) in enc_r8() 169 static u16 enc_r16(enc_dev_t *enc, const u16 reg) in enc_r16() 191 static void enc_w8(enc_dev_t *enc, const u16 reg, const u8 data) in enc_w8() 206 static void enc_w16(enc_dev_t *enc, const u16 reg, const u16 data) in enc_w16() 224 static void enc_w8_retry(enc_dev_t *enc, const u16 reg, const u8 data, const int c) in enc_w8_retry() 728 int enc_miiphy_read(struct mii_dev *bus, int phy_adr, int devad, int reg) in enc_miiphy_read() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mmc/host/ |
| H A D | sdhci-iproc.c | 41 #define REG_OFFSET_IN_BITS(reg) ((reg) << 3 & 0x18) argument 43 static inline u32 sdhci_iproc_readl(struct sdhci_host *host, int reg) in sdhci_iproc_readl() 52 static u16 sdhci_iproc_readw(struct sdhci_host *host, int reg) in sdhci_iproc_readw() 73 static u8 sdhci_iproc_readb(struct sdhci_host *host, int reg) in sdhci_iproc_readb() 80 static inline void sdhci_iproc_writel(struct sdhci_host *host, u32 val, int reg) in sdhci_iproc_writel() 115 static void sdhci_iproc_writew(struct sdhci_host *host, u16 val, int reg) in sdhci_iproc_writew() 156 static void sdhci_iproc_writeb(struct sdhci_host *host, u8 val, int reg) in sdhci_iproc_writeb()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_common.h | 144 static inline void ixgbe_write_reg(struct ixgbe_hw *hw, u32 reg, u32 value) in ixgbe_write_reg() 152 #define IXGBE_WRITE_REG(a, reg, value) ixgbe_write_reg((a), (reg), (value)) argument 163 static inline void ixgbe_write_reg64(struct ixgbe_hw *hw, u32 reg, u64 value) in ixgbe_write_reg64() 171 #define IXGBE_WRITE_REG64(a, reg, value) ixgbe_write_reg64((a), (reg), (value)) argument 174 #define IXGBE_READ_REG(a, reg) ixgbe_read_reg((a), (reg)) argument 176 #define IXGBE_WRITE_REG_ARRAY(a, reg, offset, value) \ argument 179 #define IXGBE_READ_REG_ARRAY(a, reg, offset) \ argument
|
| /OK3568_Linux_fs/kernel/drivers/video/fbdev/ |
| H A D | sm712.h | 27 #define smtc_mmiowb(dat, reg) writeb(dat, smtc_regbaseaddress + reg) argument 29 #define smtc_mmiorb(reg) readb(smtc_regbaseaddress + reg) argument 42 static inline void smtc_crtcw(int reg, int val) in smtc_crtcw() 48 static inline void smtc_grphw(int reg, int val) in smtc_grphw() 54 static inline void smtc_attrw(int reg, int val) in smtc_attrw() 62 static inline void smtc_seqw(int reg, int val) in smtc_seqw() 68 static inline unsigned int smtc_seqr(int reg) in smtc_seqr()
|
| /OK3568_Linux_fs/u-boot/drivers/pinctrl/rockchip/ |
| H A D | pinctrl-rk3588.c | 19 int reg, ret, mask; in rk3588_set_mux() local 191 int *reg, u8 *bit) in rk3588_calc_pull_reg_and_bit() 217 int *reg, u8 *bit) in rk3588_calc_drv_reg_and_bit() 243 int *reg, u8 *bit) in rk3588_calc_schmitt_reg_and_bit() 270 int reg; in rk3588_set_pull() local 287 int reg; in rk3588_set_drive() local 304 int reg; in rk3588_set_schmitt() local
|
| H A D | pinctrl-rk3308.c | 458 int reg, ret, mask, mux_type; in rk3308_set_mux() local 499 int *reg, u8 *bit) in rk3308_calc_pull_reg_and_bit() 519 int *reg, u8 *bit) in rk3308_calc_drv_reg_and_bit() 539 int *reg, u8 *bit) in rk3308_calc_schmitt_reg_and_bit() 557 int reg, ret; in rk3308_set_pull() local 585 int reg; in rk3308_set_drive() local 602 int reg; in rk3308_set_schmitt() local
|
| /OK3568_Linux_fs/kernel/drivers/mfd/ |
| H A D | adp5520.c | 43 int reg, uint8_t *val) in __adp5520_read() 58 int reg, uint8_t val) in __adp5520_write() 71 static int __adp5520_ack_bits(struct i2c_client *client, int reg, in __adp5520_ack_bits() 91 int adp5520_write(struct device *dev, int reg, uint8_t val) in adp5520_write() 97 int adp5520_read(struct device *dev, int reg, uint8_t *val) in adp5520_read() 103 int adp5520_set_bits(struct device *dev, int reg, uint8_t bit_mask) in adp5520_set_bits() 123 int adp5520_clr_bits(struct device *dev, int reg, uint8_t bit_mask) in adp5520_clr_bits()
|
| /OK3568_Linux_fs/kernel/arch/c6x/include/asm/ |
| H A D | special_insns.h | 12 #define get_creg(reg) \ argument 16 #define set_creg(reg, v) \ argument 21 #define or_creg(reg, n) \ argument 30 #define and_creg(reg, n) \ argument
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/ |
| H A D | cs3308.c | 23 static inline int cs3308_write(struct v4l2_subdev *sd, u8 reg, u8 value) in cs3308_write() 30 static inline int cs3308_read(struct v4l2_subdev *sd, u8 reg) in cs3308_read() 38 static int cs3308_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg) in cs3308_g_register() 45 static int cs3308_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg) in cs3308_s_register()
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-sunxi/ |
| H A D | pmic_bus.c | 62 int pmic_bus_read(u8 reg, u8 *data) in pmic_bus_read() 79 int pmic_bus_write(u8 reg, u8 data) in pmic_bus_write() 96 int pmic_bus_setbits(u8 reg, u8 bits) in pmic_bus_setbits() 109 int pmic_bus_clrbits(u8 reg, u8 bits) in pmic_bus_clrbits()
|
| /OK3568_Linux_fs/kernel/drivers/acpi/pmic/ |
| H A D | intel_pmic_bxtwc.c | 273 static int intel_bxtwc_pmic_get_power(struct regmap *regmap, int reg, in intel_bxtwc_pmic_get_power() 285 static int intel_bxtwc_pmic_update_power(struct regmap *regmap, int reg, in intel_bxtwc_pmic_update_power() 298 static int intel_bxtwc_pmic_get_raw_temp(struct regmap *regmap, int reg) in intel_bxtwc_pmic_get_raw_temp() 324 intel_bxtwc_pmic_update_aux(struct regmap *regmap, int reg, int raw) in intel_bxtwc_pmic_update_aux() 351 intel_bxtwc_pmic_get_policy(struct regmap *regmap, int reg, int bit, u64 *value) in intel_bxtwc_pmic_get_policy() 365 int reg, int bit, int enable) in intel_bxtwc_pmic_update_policy()
|
| H A D | tps68470_pmic.c | 20 u32 reg; /* corresponding register */ member 199 const unsigned int table_size, int *reg, in pmic_get_reg_bit() 217 static int tps68470_pmic_get_power(struct regmap *regmap, int reg, in tps68470_pmic_get_power() 229 static int tps68470_pmic_get_vr_val(struct regmap *regmap, int reg, in tps68470_pmic_get_vr_val() 241 static int tps68470_pmic_get_clk(struct regmap *regmap, int reg, in tps68470_pmic_get_clk() 253 static int tps68470_pmic_get_clk_freq(struct regmap *regmap, int reg, in tps68470_pmic_get_clk_freq() 265 static int ti_tps68470_regmap_update_bits(struct regmap *regmap, int reg, in ti_tps68470_regmap_update_bits() 284 int reg, ret, bitmask; in tps68470_pmic_common_handler() local
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/ |
| H A D | pinctrl-stmfx.c | 106 u32 reg = STMFX_REG_GPIO_STATE + get_reg(offset); in stmfx_gpio_get() local 119 u32 reg = value ? STMFX_REG_GPO_SET : STMFX_REG_GPO_CLR; in stmfx_gpio_set() local 129 u32 reg = STMFX_REG_GPIO_DIR + get_reg(offset); in stmfx_gpio_get_direction() local 150 u32 reg = STMFX_REG_GPIO_DIR + get_reg(offset); in stmfx_gpio_direction_input() local 160 u32 reg = STMFX_REG_GPIO_DIR + get_reg(offset); in stmfx_gpio_direction_output() local 171 u32 reg = STMFX_REG_GPIO_PUPD + get_reg(offset); in stmfx_pinconf_get_pupd() local 185 u32 reg = STMFX_REG_GPIO_PUPD + get_reg(offset); in stmfx_pinconf_set_pupd() local 194 u32 reg = STMFX_REG_GPIO_TYPE + get_reg(offset); in stmfx_pinconf_get_type() local 208 u32 reg = STMFX_REG_GPIO_TYPE + get_reg(offset); in stmfx_pinconf_set_type() local 424 u32 reg = get_reg(data->hwirq); in stmfx_pinctrl_irq_mask() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/samsung/ |
| H A D | pinctrl-s3c64xx.c | 96 #define PIN_BANK_4BIT(pins, reg, id) \ argument 105 #define PIN_BANK_4BIT_EINTG(pins, reg, id, eoffs) \ argument 117 #define PIN_BANK_4BIT_EINTW(pins, reg, id, eoffs, emask) \ argument 129 #define PIN_BANK_4BIT2_EINTG(pins, reg, id, eoffs) \ argument 141 #define PIN_BANK_4BIT2_EINTW(pins, reg, id, eoffs, emask) \ argument 153 #define PIN_BANK_4BIT2_ALIVE(pins, reg, id) \ argument 162 #define PIN_BANK_2BIT(pins, reg, id) \ argument 171 #define PIN_BANK_2BIT_EINTG(pins, reg, id, eoffs, emask) \ argument 183 #define PIN_BANK_2BIT_EINTW(pins, reg, id, eoffs) \ argument 272 void __iomem *reg; in s3c64xx_irq_set_function() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/dsa/mv88e6xxx/ |
| H A D | global1.c | 16 int mv88e6xxx_g1_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) in mv88e6xxx_g1_read() 23 int mv88e6xxx_g1_write(struct mv88e6xxx_chip *chip, int reg, u16 val) in mv88e6xxx_g1_write() 30 int mv88e6xxx_g1_wait_bit(struct mv88e6xxx_chip *chip, int reg, int in mv88e6xxx_g1_wait_bit() 37 int mv88e6xxx_g1_wait_mask(struct mv88e6xxx_chip *chip, int reg, in mv88e6xxx_g1_wait_mask() 115 u16 reg; in mv88e6xxx_g1_set_switch_mac() local 321 u16 reg; in mv88e6095_g1_set_egress_port() local 358 u16 reg; in mv88e6095_g1_set_cpu_port() local 374 u16 reg; in mv88e6390_g1_monitor_write() local 458 u16 reg; in mv88e6xxx_g1_ctl2_mask() local 578 u16 reg; in mv88e6xxx_g1_stats_read() local
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/tw68/ |
| H A D | tw68.h | 167 #define tw_readl(reg) readl(dev->lmmio + ((reg) >> 2)) argument 168 #define tw_readb(reg) readb(dev->bmmio + (reg)) argument 169 #define tw_writel(reg, value) writel((value), dev->lmmio + ((reg) >> 2)) argument 170 #define tw_writeb(reg, value) writeb((value), dev->bmmio + (reg)) argument 172 #define tw_andorl(reg, mask, value) \ argument 175 #define tw_andorb(reg, mask, value) \ argument 178 #define tw_setl(reg, bit) tw_andorl((reg), (bit), (bit)) argument 179 #define tw_setb(reg, bit) tw_andorb((reg), (bit), (bit)) argument 180 #define tw_clearl(reg, bit) \ argument 183 #define tw_clearb(reg, bit) \ argument
|
| /OK3568_Linux_fs/kernel/drivers/iio/adc/ |
| H A D | hi8435.c | 55 static int hi8435_readb(struct hi8435_priv *priv, u8 reg, u8 *val) in hi8435_readb() 61 static int hi8435_readw(struct hi8435_priv *priv, u8 reg, u16 *val) in hi8435_readw() 73 static int hi8435_readl(struct hi8435_priv *priv, u8 reg, u32 *val) in hi8435_readl() 85 static int hi8435_writeb(struct hi8435_priv *priv, u8 reg, u8 val) in hi8435_writeb() 93 static int hi8435_writew(struct hi8435_priv *priv, u8 reg, u16 val) in hi8435_writew() 167 u16 reg; in hi8435_read_event_value() local 199 u16 reg; in hi8435_write_event_value() local 266 unsigned reg, unsigned writeval, in hi8435_debugfs_reg_access() 305 u8 reg; in hi8435_get_sensing_mode() local 320 u8 reg; in hi8435_set_sensing_mode() local
|
| /OK3568_Linux_fs/kernel/drivers/misc/ |
| H A D | ad525x_dpot-i2c.c | 19 static int write_r8d8(void *client, u8 reg, u8 val) in write_r8d8() 24 static int write_r8d16(void *client, u8 reg, u16 val) in write_r8d16() 34 static int read_r8d8(void *client, u8 reg) in read_r8d8() 39 static int read_r8d16(void *client, u8 reg) in read_r8d16()
|
| /OK3568_Linux_fs/kernel/drivers/gpio/ |
| H A D | gpio-it87.c | 105 static inline int superio_inb(int reg) in superio_inb() 111 static inline void superio_outb(int val, int reg) in superio_outb() 117 static inline int superio_inw(int reg) in superio_inw() 128 static inline void superio_outw(int val, int reg) in superio_outw() 136 static inline void superio_set_mask(int mask, int reg) in superio_set_mask() 145 static inline void superio_clear_mask(int mask, int reg) in superio_clear_mask() 189 u16 reg; in it87_gpio_get() local 228 u16 reg; in it87_gpio_set() local
|
| /OK3568_Linux_fs/kernel/drivers/regulator/ |
| H A D | tps6507x-regulator.c | 121 static inline int tps6507x_pmic_read(struct tps6507x_pmic *tps, u8 reg) in tps6507x_pmic_read() 134 static inline int tps6507x_pmic_write(struct tps6507x_pmic *tps, u8 reg, u8 val) in tps6507x_pmic_write() 139 static int tps6507x_pmic_set_bits(struct tps6507x_pmic *tps, u8 reg, u8 mask) in tps6507x_pmic_set_bits() 162 static int tps6507x_pmic_clear_bits(struct tps6507x_pmic *tps, u8 reg, u8 mask) in tps6507x_pmic_clear_bits() 185 static int tps6507x_pmic_reg_read(struct tps6507x_pmic *tps, u8 reg) in tps6507x_pmic_reg_read() 199 static int tps6507x_pmic_reg_write(struct tps6507x_pmic *tps, u8 reg, u8 val) in tps6507x_pmic_reg_write() 262 u8 reg, mask; in tps6507x_pmic_get_voltage_sel() local 308 u8 reg, mask; in tps6507x_pmic_set_voltage_sel() local
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | sym53c8xx.h | 388 #define SCR_SFBR_REG(reg,op,data) \ argument 391 #define SCR_REG_SFBR(reg,op,data) \ argument 394 #define SCR_REG_REG(reg,op,data) \ argument 426 #define SCR_FROM_REG(reg) \ argument 429 #define SCR_TO_REG(reg) \ argument 432 #define SCR_LOAD_REG(reg,data) \ argument 460 #define SCR_LOAD_R(reg, how, n) \ argument 463 #define SCR_STORE_R(reg, how, n) \ argument 466 #define SCR_LOAD_ABS(reg, n) SCR_LOAD_R(reg, SCR_NO_FLUSH2, n) argument 467 #define SCR_LOAD_REL(reg, n) SCR_LOAD_R(reg, SCR_NO_FLUSH2|SCR_DSA_REL2, n) argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/clk/sunxi-ng/ |
| H A D | ccu_frac.c | 26 u32 reg; in ccu_frac_helper_enable() local 41 u32 reg; in ccu_frac_helper_disable() local 65 u32 reg; in ccu_frac_helper_read_rate() local 88 u32 reg, sel; in ccu_frac_helper_set_rate() local
|