/linux/arch/x86/pci/ |
A D | ce4100.c | 66 static void reg_write(struct sim_dev_reg *reg, u32 value) in reg_write() function 105 DEFINE_REG(2, 0, 0x14, (256), reg_init, reg_read, reg_write) 113 DEFINE_REG(8, 0, 0x10, (1*MB), reg_init, reg_read, reg_write) 118 DEFINE_REG(10, 0, 0x10, (256), reg_init, reg_read, reg_write) 120 DEFINE_REG(11, 0, 0x10, (256), reg_init, reg_read, reg_write) 121 DEFINE_REG(11, 0, 0x14, (256), reg_init, reg_read, reg_write) 139 DEFINE_REG(14, 0, 0x10, 0, reg_init, reg_read, reg_write) 140 DEFINE_REG(14, 0, 0x14, 0, reg_init, reg_read, reg_write) 141 DEFINE_REG(14, 0, 0x18, 0, reg_init, reg_read, reg_write) 142 DEFINE_REG(14, 0, 0x1C, 0, reg_init, reg_read, reg_write) [all …]
|
/linux/drivers/firewire/ |
A D | init_ohci1394_dma.c | 114 reg_write(ohci, OHCI1394_BusOptions, bus_options); in init_ohci1394_initialize() 117 reg_write(ohci, OHCI1394_NodeID, 0x0000ffc0); in init_ohci1394_initialize() 120 reg_write(ohci, OHCI1394_HCControlSet, in init_ohci1394_initialize() 124 reg_write(ohci, OHCI1394_LinkControlClear, 0xffffffff); in init_ohci1394_initialize() 127 reg_write(ohci, OHCI1394_LinkControlSet, in init_ohci1394_initialize() 143 reg_write(ohci, OHCI1394_ATRetries, in init_ohci1394_initialize() 149 reg_write(ohci, OHCI1394_HCControlClear, in init_ohci1394_initialize() 185 reg_write(ohci, OHCI1394_IntEventClear, in init_ohci1394_wait_for_busresets() 199 reg_write(ohci, OHCI1394_PhyUpperBound, 0xffff0000); in init_ohci1394_enable_physical_dma() 215 reg_write(ohci, OHCI1394_IntEventClear, 0xffffffff); in init_ohci1394_reset_and_init_dma() [all …]
|
A D | ohci.c | 580 reg_write(ohci, OHCI1394_PhyControl, in write_phy_reg() 1210 reg_write(ohci, COMMAND_PTR(ctx->regs), in context_run() 2032 reg_write(ohci, OHCI1394_BusOptions, in bus_reset_work() 2035 reg_write(ohci, OHCI1394_ConfigROMhdr, in bus_reset_work() 2073 reg_write(ohci, OHCI1394_IntEventClear, in irq_handler() 2122 reg_write(ohci, OHCI1394_IntEventClear, in irq_handler() 2287 reg_write(ohci, OHCI1394_HCControlSet, in ohci_enable() 2321 reg_write(ohci, OHCI1394_ATRetries, in ohci_enable() 2400 reg_write(ohci, OHCI1394_BusOptions, in ohci_enable() 2420 reg_write(ohci, OHCI1394_HCControlSet, in ohci_enable() [all …]
|
A D | nosy.c | 214 reg_write(struct pcilynx *lynx, int offset, u32 data) in reg_write() function 240 reg_write(lynx, DMA0_CHAN_CTRL + dmachan * 0x20, in run_pcl() 257 reg_write(lynx, LINK_PHY, LINK_PHY_WRITE | in set_phy_reg() 475 reg_write(lynx, LINK_INT_STATUS, link_int_status); in irq_handler() 485 reg_write(lynx, PCI_INT_STATUS, pci_int_status); in irq_handler() 506 reg_write(lynx, PCI_INT_ENABLE, 0); in remove_card() 603 reg_write(lynx, DMA0_CHAN_CTRL, 0); in add_card() 604 reg_write(lynx, DMA_GLOBAL_REGISTER, 0x00 << 24); in add_card() 621 reg_write(lynx, FIFO_SIZES, 255); in add_card() 625 reg_write(lynx, LINK_INT_ENABLE, in add_card() [all …]
|
/linux/drivers/media/i2c/ |
A D | rj54n1cb0c.c | 481 ret = reg_write(client, rv->reg, rv->val); in reg_write_multiple() 515 ret = reg_write(client, reg_xy, in rj54n1_set_rect() 785 ret = reg_write(client, RJ54N1_PEAK_H, in rj54n1_sensor_scale() 838 ret = reg_write(client, RJ54N1_RATIO_TG, in rj54n1_set_clock() 841 ret = reg_write(client, RJ54N1_RATIO_T, in rj54n1_set_clock() 844 ret = reg_write(client, RJ54N1_RATIO_R, in rj54n1_set_clock() 857 ret = reg_write(client, RJ54N1_RATIO_OP, in rj54n1_set_clock() 860 ret = reg_write(client, RJ54N1_RATIO_O, in rj54n1_set_clock() 877 ret = reg_write(client, RJ54N1_PLL_EN, 1); in rj54n1_set_clock() 884 ret = reg_write(client, RJ54N1_CLK_RST, 1); in rj54n1_set_clock() [all …]
|
A D | ak881x.c | 40 static int reg_write(struct i2c_client *client, const u8 reg, in reg_write() function 52 return reg_write(client, reg, (ret & ~mask) | (data & mask)); in reg_set() 86 if (reg_write(client, reg->reg, reg->val) < 0) in ak881x_s_register() 191 reg_write(client, AK881X_DAC_MODE, dac); in ak881x_s_stream() 196 reg_write(client, AK881X_DAC_MODE, 0); in ak881x_s_stream() 288 reg_write(client, AK881X_INTERFACE_MODE, ifmode | (20 << 3)); in ak881x_probe()
|
A D | mt9m001.c | 120 static int reg_write(struct i2c_client *client, const u8 reg, in reg_write() function 134 return reg_write(client, reg, ret | data); in reg_set() 145 return reg_write(client, reg, ret & ~data); in reg_clear() 159 int ret = reg_write(client, regs[i].reg, regs[i].data); in multi_reg_write() 233 ret = reg_write(client, MT9M001_OUTPUT_CONTROL, 2); in mt9m001_s_stream() 238 reg_write(client, MT9M001_OUTPUT_CONTROL, 0); in mt9m001_s_stream() 444 if (reg_write(client, reg->reg, reg->val) < 0) in mt9m001_s_register() 533 ret = reg_write(client, MT9M001_GLOBAL_GAIN, data); in mt9m001_s_ctrl() 550 ret = reg_write(client, MT9M001_GLOBAL_GAIN, data); in mt9m001_s_ctrl() 567 ret = reg_write(client, MT9M001_SHUTTER_WIDTH, in mt9m001_s_ctrl() [all …]
|
/linux/drivers/media/tuners/ |
A D | qm1d1c0042.c | 107 return reg_write(state, 0x03, state->regs[0x03]); in qm1d1c0042_set_srch_mode() 117 ret = reg_write(state, 0x01, state->regs[0x01]); in qm1d1c0042_wakeup() 205 ret = reg_write(state, 0x02, val); in qm1d1c0042_set_params() 230 ret = reg_write(state, 0x08, val); in qm1d1c0042_set_params() 269 ret = reg_write(state, 0x0c, val); in qm1d1c0042_set_params() 274 ret = reg_write(state, 0x0c, val); in qm1d1c0042_set_params() 287 ret = reg_write(state, 0x08, 0x09); in qm1d1c0042_set_params() 325 reg_write(state, 0x01, 0x0c); in qm1d1c0042_init() 326 reg_write(state, 0x01, 0x0c); in qm1d1c0042_init() 361 ret = reg_write(state, i, state->regs[i]); in qm1d1c0042_init() [all …]
|
/linux/drivers/media/usb/gspca/ |
A D | spca505.c | 533 static int reg_write(struct gspca_dev *gspca_dev, in reg_write() function 651 ret = reg_write(gspca_dev, 0x06, 0x16, 0x0a); in sd_start() 654 reg_write(gspca_dev, 0x05, 0xc2, 0x12); in sd_start() 659 reg_write(gspca_dev, 0x02, 0x00, 0x00); in sd_start() 666 return reg_write(gspca_dev, SPCA50X_REG_USB, in sd_start() 674 reg_write(gspca_dev, 0x02, 0x00, 0x00); in sd_stopN() 684 reg_write(gspca_dev, 0x03, 0x03, 0x20); in sd_stop0() 685 reg_write(gspca_dev, 0x03, 0x01, 0x00); in sd_stop0() 686 reg_write(gspca_dev, 0x03, 0x00, 0x01); in sd_stop0() 687 reg_write(gspca_dev, 0x05, 0x10, 0x01); in sd_stop0() [all …]
|
A D | spca508.c | 1278 ret = reg_write(gspca_dev, 0x8802, reg >> 8); in ssi_w() 1290 ret = reg_write(gspca_dev, 0x8800, val); in ssi_w() 1325 ret = reg_write(gspca_dev, (*data)[1], in write_vector() 1393 reg_write(gspca_dev, 0x8500, mode); in sd_start() 1397 reg_write(gspca_dev, 0x8700, 0x28); /* clock */ in sd_start() 1405 reg_write(gspca_dev, 0x8112, 0x10 | 0x20); in sd_start() 1412 reg_write(gspca_dev, 0x8112, 0x20); in sd_stopN() 1439 reg_write(gspca_dev, 0x8651, brightness); in setbrightness() 1440 reg_write(gspca_dev, 0x8652, brightness); in setbrightness() 1441 reg_write(gspca_dev, 0x8653, brightness); in setbrightness() [all …]
|
A D | spca501.c | 1745 static int reg_write(struct gspca_dev *gspca_dev, in reg_write() function 1769 ret = reg_write(gspca_dev, data[i][0], data[i][2], in write_vector() 1783 reg_write(gspca_dev, SPCA501_REG_CCDSP, 0x12, val); in setbrightness() 1788 reg_write(gspca_dev, 0x00, 0x00, (val >> 8) & 0xff); in setcontrast() 1789 reg_write(gspca_dev, 0x00, 0x01, val & 0xff); in setcontrast() 1794 reg_write(gspca_dev, SPCA501_REG_CCDSP, 0x0c, val); in setcolors() 1799 reg_write(gspca_dev, SPCA501_REG_CCDSP, 0x11, val); in setblue_balance() 1804 reg_write(gspca_dev, SPCA501_REG_CCDSP, 0x13, val); in setred_balance() 1880 reg_write(gspca_dev, SPCA50X_REG_USB, 0x6, 0x94); in sd_start() 1893 reg_write(gspca_dev, SPCA501_REG_CTLRL, 0x01, 0x02); in sd_start() [all …]
|
/linux/drivers/gpu/drm/i2c/ |
A D | tda998x_drv.c | 694 reg_write(priv, reg, old_val | val); in reg_set() 713 reg_write(priv, REG_SOFTRESET, 0); in tda998x_reset() 1024 reg_write(priv, REG_AUDIO_DIV, adiv); in tda998x_configure_audio() 1130 reg_write(priv, REG_ENA_AP, 0); in tda998x_audio_shutdown() 1227 reg_write(priv, REG_DDC_ADDR, 0xa0); in read_edid_block() 1234 reg_write(priv, REG_EDID_CTRL, 0x1); in read_edid_block() 1237 reg_write(priv, REG_EDID_CTRL, 0x0); in read_edid_block() 1404 reg_write(priv, REG_ENA_VP_0, 0xff); in tda998x_bridge_enable() 1562 reg_write(priv, REG_SERIALIZER, 0); in tda998x_bridge_mode_set() 1647 reg_write(priv, REG_TBG_CNTRL_0, 0); in tda998x_bridge_mode_set() [all …]
|
/linux/drivers/net/dsa/ |
A D | mv88e6060.c | 63 ret = reg_write(priv, REG_PORT(i), PORT_CONTROL, in mv88e6060_switch_reset() 73 ret = reg_write(priv, REG_GLOBAL, GLOBAL_ATU_CONTROL, in mv88e6060_switch_reset() 105 ret = reg_write(priv, REG_GLOBAL, GLOBAL_CONTROL, in mv88e6060_setup_global() 112 return reg_write(priv, REG_GLOBAL, GLOBAL_ATU_CONTROL, in mv88e6060_setup_global() 126 ret = reg_write(priv, addr, PORT_CONTROL, in mv88e6060_setup_port() 140 ret = reg_write(priv, addr, PORT_VLAN_MAP, in mv88e6060_setup_port() 153 return reg_write(priv, addr, PORT_ASSOC_VECTOR, BIT(p)); in mv88e6060_setup_port() 171 ret = reg_write(priv, REG_GLOBAL, GLOBAL_MAC_01, val); in mv88e6060_setup_addr() 175 ret = reg_write(priv, REG_GLOBAL, GLOBAL_MAC_23, in mv88e6060_setup_addr() 180 return reg_write(priv, REG_GLOBAL, GLOBAL_MAC_45, in mv88e6060_setup_addr() [all …]
|
/linux/drivers/base/regmap/ |
A D | regmap-mmio.c | 24 void (*reg_write)(struct regmap_mmio_context *ctx, member 155 ctx->reg_write(ctx, reg, val); in regmap_mmio_write() 258 .reg_write = regmap_mmio_write, 306 ctx->reg_write = regmap_mmio_write8_relaxed; in regmap_mmio_gen_context() 309 ctx->reg_write = regmap_mmio_write8; in regmap_mmio_gen_context() 318 ctx->reg_write = regmap_mmio_write16le; in regmap_mmio_gen_context() 327 ctx->reg_write = regmap_mmio_write32le; in regmap_mmio_gen_context() 337 ctx->reg_write = regmap_mmio_write64le; in regmap_mmio_gen_context() 353 ctx->reg_write = regmap_mmio_write8; in regmap_mmio_gen_context() 357 ctx->reg_write = regmap_mmio_write16be; in regmap_mmio_gen_context() [all …]
|
/linux/drivers/media/pci/tw686x/ |
A D | tw686x-core.c | 108 reg_write(dev, DMA_CHANNEL_ENABLE, dma_en); in tw686x_disable_channel() 109 reg_write(dev, DMA_CMD, dma_cmd); in tw686x_disable_channel() 134 reg_write(dev, DMA_CMD, dev->pending_dma_cmd); in tw686x_dma_delay() 162 reg_write(dev, DMA_CMD, dma_cmd & ~ch_mask); in tw686x_reset_channels() 300 reg_write(dev, SYS_SOFT_RST, 0x0f); in tw686x_probe() 303 reg_write(dev, SRST[0], 0x3f); in tw686x_probe() 305 reg_write(dev, SRST[1], 0x3f); in tw686x_probe() 308 reg_write(dev, DMA_CMD, 0); in tw686x_probe() 309 reg_write(dev, DMA_CHANNEL_ENABLE, 0); in tw686x_probe() 312 reg_write(dev, DMA_CONFIG, 0xffffff04); in tw686x_probe() [all …]
|
A D | tw686x-video.c | 168 reg_write(vc->dev, reg, phys); in tw686x_contig_buf_refill() 288 reg_write(dev, reg, desc->phys); in tw686x_sg_dma_alloc() 847 reg_write(dev, SDT[vc->ch], 0x7); in tw686x_querystd() 1217 reg_write(dev, VIDEO_SIZE[ch], 0); in tw686x_video_init() 1293 reg_write(dev, PHASE_REF, val); in tw686x_video_init() 1295 reg_write(dev, MISC2[0], 0xe7); in tw686x_video_init() 1296 reg_write(dev, VCTRL1[0], 0xcc); in tw686x_video_init() 1297 reg_write(dev, LOOP[0], 0xa5); in tw686x_video_init() 1299 reg_write(dev, VCTRL1[1], 0xcc); in tw686x_video_init() 1300 reg_write(dev, LOOP[1], 0xa5); in tw686x_video_init() [all …]
|
A D | tw686x-audio.c | 74 reg_write(dev, reg, next->dma); in tw686x_audio_irq() 159 reg_write(dev, AUDIO_CONTROL2, reg); in tw686x_pcm_prepare() 170 reg_write(dev, AUDIO_CONTROL1, reg); in tw686x_pcm_prepare() 198 reg_write(dev, ADMA_P_ADDR[ac->ch], p_buf->dma); in tw686x_pcm_prepare() 199 reg_write(dev, ADMA_B_ADDR[ac->ch], b_buf->dma); in tw686x_pcm_prepare() 338 reg_write(dev, reg, ac->dma_descs[pb].phys); in tw686x_audio_dma_alloc() 352 reg_write(dev, DMA_CMD, dma_cmd & ~0xff00); in tw686x_audio_free() 353 reg_write(dev, DMA_CHANNEL_ENABLE, dma_ch_mask & ~0xff00); in tw686x_audio_free() 369 reg_write(dev, AUDIO_CONTROL1, BIT(0)); in tw686x_audio_init()
|
/linux/drivers/media/pci/sta2x11/ |
A D | sta2x11_vip.c | 355 reg_write(vip, DVP_ITM, 0); in stop_streaming() 684 reg_write(vip, DVP_TFO, 0); in vidioc_s_fmt_vid_cap() 686 reg_write(vip, DVP_BFO, 0); in vidioc_s_fmt_vid_cap() 688 reg_write(vip, DVP_TFS, t_stop); in vidioc_s_fmt_vid_cap() 690 reg_write(vip, DVP_BFS, b_stop); in vidioc_s_fmt_vid_cap() 692 reg_write(vip, DVP_VMP, pitch); in vidioc_s_fmt_vid_cap() 821 reg_write(vip, DVP_CTL, DVP_CTL_RST); in sta2x11_vip_init_register() 823 reg_write(vip, DVP_CTL, 0); in sta2x11_vip_init_register() 830 reg_write(vip, DVP_ITM, 0); in sta2x11_vip_clear_register() 834 reg_write(vip, DVP_CTL, 0); in sta2x11_vip_clear_register() [all …]
|
/linux/drivers/iio/dac/ |
A D | ad5592r-base.c | 56 st->ops->reg_write(st, AD5592R_REG_GPIO_SET, st->gpio_val); in ad5592r_gpio_set() 99 ret = st->ops->reg_write(st, AD5592R_REG_GPIO_SET, st->gpio_val); in ad5592r_gpio_direction_output() 170 st->ops->reg_write(st, AD5592R_REG_RESET, 0xdac); in ad5592r_reset() 249 ret = ops->reg_write(st, AD5592R_REG_PULLDOWN, pulldown); in ad5592r_set_channel_modes() 253 ret = ops->reg_write(st, AD5592R_REG_TRISTATE, tristate); in ad5592r_set_channel_modes() 258 ret = ops->reg_write(st, AD5592R_REG_DAC_EN, dac); in ad5592r_set_channel_modes() 262 ret = ops->reg_write(st, AD5592R_REG_ADC_EN, adc); in ad5592r_set_channel_modes() 266 ret = ops->reg_write(st, AD5592R_REG_GPIO_SET, st->gpio_val); in ad5592r_set_channel_modes() 274 ret = ops->reg_write(st, AD5592R_REG_GPIO_IN_EN, st->gpio_in); in ad5592r_set_channel_modes() 357 ret = st->ops->reg_write(st, AD5592R_REG_CTRL, in ad5592r_write_raw() [all …]
|
/linux/drivers/soundwire/ |
A D | qcom.c | 374 swrm->reg_write(swrm, SWRM_CMD_FIFO_CMD, in qcom_swrm_cmd_fifo_rd_cmd() 573 swrm->reg_write(swrm, in qcom_swrm_irq_handler() 582 swrm->reg_write(swrm, in qcom_swrm_irq_handler() 646 ctrl->reg_write(ctrl, SWRM_COMP_CFG_ADDR, in qcom_swrm_init() 708 return ctrl->reg_write(ctrl, reg, val); in qcom_swrm_pre_bank_switch() 738 ret = ctrl->reg_write(ctrl, reg, value); in qcom_swrm_transport_params() 745 ret = ctrl->reg_write(ctrl, reg, value); in qcom_swrm_transport_params() 753 ret = ctrl->reg_write(ctrl, reg, value); in qcom_swrm_transport_params() 762 ret = ctrl->reg_write(ctrl, reg, value); in qcom_swrm_transport_params() 766 ret = ctrl->reg_write(ctrl, reg, value); in qcom_swrm_transport_params() [all …]
|
/linux/drivers/watchdog/ |
A D | stm32_iwdg.c | 82 static inline void reg_write(void __iomem *base, u32 reg, u32 val) in reg_write() function 106 reg_write(wdt->regs, IWDG_KR, KR_KEY_EWA); in stm32_iwdg_start() 109 reg_write(wdt->regs, IWDG_PR, iwdg_pr); in stm32_iwdg_start() 110 reg_write(wdt->regs, IWDG_RLR, iwdg_rlr); in stm32_iwdg_start() 111 reg_write(wdt->regs, IWDG_KR, KR_KEY_ENABLE); in stm32_iwdg_start() 123 reg_write(wdt->regs, IWDG_KR, KR_KEY_RELOAD); in stm32_iwdg_start() 135 reg_write(wdt->regs, IWDG_KR, KR_KEY_RELOAD); in stm32_iwdg_ping()
|
/linux/drivers/i3c/master/mipi-i3c-hci/ |
A D | core.c | 31 #define reg_write(r, v) writel(v, hci->base_regs + (r)) macro 32 #define reg_set(r, v) reg_write(r, reg_read(r) | (v)) 33 #define reg_clear(r, v) reg_write(r, reg_read(r) & ~(v)) 143 reg_write(MASTER_DEVICE_ADDR, in i3c_hci_bus_init() 176 reg_write(HC_CONTROL, reg_read(HC_CONTROL)); in mipi_i3c_hci_resume() 553 reg_write(INTR_STATUS, val); in i3c_hci_irq_handler() 653 reg_write(RESET_CONTROL, SOFT_RST); in i3c_hci_init() 660 reg_write(INTR_SIGNAL_ENABLE, 0x0); in i3c_hci_init() 661 reg_write(INTR_STATUS_ENABLE, 0xffffffff); in i3c_hci_init() 668 reg_write(HC_CONTROL, regval); in i3c_hci_init() [all …]
|
/linux/drivers/i2c/busses/ |
A D | i2c-pasemi-core.c | 44 static inline void reg_write(struct pasemi_smbus *smbus, int reg, int val) in reg_write() function 58 #define TXFIFO_WR(smbus, reg) reg_write((smbus), REG_MTXFIFO, (reg)) 68 reg_write(smbus, REG_CTL, val); in pasemi_reset() 76 reg_write(smbus, REG_SMSTA, status); in pasemi_smb_clear() 97 reg_write(smbus, REG_SMSTA, status); in pasemi_smb_waitready() 102 reg_write(smbus, REG_SMSTA, SMSTA_XEN); in pasemi_smb_waitready()
|
/linux/sound/i2c/other/ |
A D | ak4114.c | 27 static void reg_write(struct ak4114 *ak4114, unsigned char reg, unsigned char val) in reg_write() function 117 reg_write(chip, reg, (chip->regmap[reg] & ~mask) | val); in snd_ak4114_reg_write() 119 reg_write(chip, reg, in snd_ak4114_reg_write() 129 reg_write(chip, AK4114_REG_PWRDN, old & ~(AK4114_RST|AK4114_PWN)); in ak4114_init_regs() 132 reg_write(chip, AK4114_REG_PWRDN, (old | AK4114_RST) & ~AK4114_PWN); in ak4114_init_regs() 135 reg_write(chip, reg, chip->regmap[reg]); in ak4114_init_regs() 137 reg_write(chip, reg + AK4114_REG_TXCSB0, chip->txcsb[reg]); in ak4114_init_regs() 139 reg_write(chip, AK4114_REG_PWRDN, old | AK4114_RST | AK4114_PWN); in ak4114_init_regs() 261 reg_write(chip, AK4114_REG_TXCSB0 + i, ucontrol->value.iec958.status[i]); in snd_ak4114_spdif_playback_put()
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
A D | btcoex.c | 108 } reg_write; in brcmf_btcoex_params_write() local 110 reg_write.addr = cpu_to_le32(addr); in brcmf_btcoex_params_write() 111 reg_write.data = cpu_to_le32(data); in brcmf_btcoex_params_write() 113 ®_write, sizeof(reg_write)); in brcmf_btcoex_params_write()
|