Home
last modified time | relevance | path

Searched refs:write_reg (Results 1 – 25 of 75) sorted by relevance

123

/linux-2.6.39/arch/sh/boards/mach-kfr2r09/
Dlcd_wqvga.c68 static void write_reg(void *sohandle, in write_reg() function
85 write_reg(sohandle, so, 1, data[i]); in write_data()
94 write_reg(sohandle, so, 0, 0xb0); in read_device_code()
95 write_reg(sohandle, so, 1, 0x00); in read_device_code()
98 write_reg(sohandle, so, 0, 0xb1); in read_device_code()
99 write_reg(sohandle, so, 1, 0x00); in read_device_code()
102 write_reg(sohandle, so, 0, 0xbf); in read_device_code()
120 write_reg(sohandle, so, 0, 0x2c); in write_memory_start()
133 write_reg(sohandle, so, 1, 0x00); in clear_memory()
140 write_reg(sohandle, so, 0, 0xb0); in display_on()
[all …]
/linux-2.6.39/drivers/media/video/ivtv/
Divtv-yuv.c179 write_reg(read_dec(i), 0x02804); in ivtv_yuv_filter()
180 write_reg(read_dec(i), 0x0281c); in ivtv_yuv_filter()
182 write_reg(read_dec(i), 0x02808); in ivtv_yuv_filter()
183 write_reg(read_dec(i), 0x02820); in ivtv_yuv_filter()
185 write_reg(read_dec(i), 0x0280c); in ivtv_yuv_filter()
186 write_reg(read_dec(i), 0x02824); in ivtv_yuv_filter()
188 write_reg(read_dec(i), 0x02810); in ivtv_yuv_filter()
189 write_reg(read_dec(i), 0x02828); in ivtv_yuv_filter()
191 write_reg(read_dec(i), 0x02814); in ivtv_yuv_filter()
192 write_reg(read_dec(i), 0x0282c); in ivtv_yuv_filter()
[all …]
Divtv-firmware.c100 write_reg(IVTV_CMD_VDM_STOP, IVTV_REG_VDM); in ivtv_halt_firmware()
103 write_reg(IVTV_CMD_AO_STOP, IVTV_REG_AO); in ivtv_halt_firmware()
106 write_reg(IVTV_CMD_APU_PING, IVTV_REG_APU); in ivtv_halt_firmware()
110 write_reg(IVTV_CMD_VPU_STOP16, IVTV_REG_VPU); in ivtv_halt_firmware()
112 write_reg(IVTV_CMD_VPU_STOP15, IVTV_REG_VPU); in ivtv_halt_firmware()
115 write_reg(IVTV_CMD_HW_BLOCKS_RST, IVTV_REG_HW_BLOCKS); in ivtv_halt_firmware()
118 write_reg(IVTV_CMD_SPU_STOP, IVTV_REG_SPU); in ivtv_halt_firmware()
123 write_reg(IVTV_CMD_SDRAM_PRECHARGE_INIT, IVTV_REG_ENC_SDRAM_PRECHARGE); in ivtv_halt_firmware()
126 write_reg(IVTV_CMD_SDRAM_REFRESH_INIT, IVTV_REG_ENC_SDRAM_REFRESH); in ivtv_halt_firmware()
130 write_reg(IVTV_CMD_SDRAM_PRECHARGE_INIT, IVTV_REG_DEC_SDRAM_PRECHARGE); in ivtv_halt_firmware()
[all …]
Divtv-gpio.c116 write_reg(curdir, IVTV_REG_GPIO_DIR); in ivtv_reset_ir_gpio()
118 write_reg(curout, IVTV_REG_GPIO_OUT); in ivtv_reset_ir_gpio()
122 write_reg(curout, IVTV_REG_GPIO_OUT); in ivtv_reset_ir_gpio()
124 write_reg(curdir, IVTV_REG_GPIO_DIR); in ivtv_reset_ir_gpio()
139 write_reg(curout, IVTV_REG_GPIO_OUT); in ivtv_reset_tuner_gpio()
143 write_reg(curout, IVTV_REG_GPIO_OUT); in ivtv_reset_tuner_gpio()
177 write_reg((read_reg(IVTV_REG_GPIO_OUT) & ~mask) | (data & mask), IVTV_REG_GPIO_OUT); in subdev_s_clock_freq()
218 write_reg((read_reg(IVTV_REG_GPIO_OUT) & ~mask) | (data & mask), IVTV_REG_GPIO_OUT); in subdev_s_tuner()
230 write_reg((read_reg(IVTV_REG_GPIO_OUT) & ~mask) | (data & mask), IVTV_REG_GPIO_OUT); in subdev_s_radio()
256 write_reg((read_reg(IVTV_REG_GPIO_OUT) & ~mask) | (data & mask), IVTV_REG_GPIO_OUT); in subdev_s_audio_routing()
[all …]
/linux-2.6.39/drivers/staging/cxd2099/
Dcxd2099.c204 static int write_reg(struct cxd *ci, u8 reg, u8 val) in write_reg() function
277 CHK_ERROR(write_reg(ci, 0x00, 0x00)); in init()
278 CHK_ERROR(write_reg(ci, 0x01, 0x00)); in init()
279 CHK_ERROR(write_reg(ci, 0x02, 0x10)); in init()
280 CHK_ERROR(write_reg(ci, 0x03, 0x00)); in init()
281 CHK_ERROR(write_reg(ci, 0x05, 0xFF)); in init()
282 CHK_ERROR(write_reg(ci, 0x06, 0x1F)); in init()
283 CHK_ERROR(write_reg(ci, 0x07, 0x1F)); in init()
284 CHK_ERROR(write_reg(ci, 0x08, 0x28)); in init()
285 CHK_ERROR(write_reg(ci, 0x14, 0x20)); in init()
[all …]
/linux-2.6.39/drivers/net/can/sja1000/
Dsja1000.c95 priv->write_reg(priv, REG_CMR, val); in sja1000_write_cmdreg()
119 priv->write_reg(priv, REG_IER, IRQ_OFF); in set_reset_mode()
128 priv->write_reg(priv, REG_MOD, MOD_RM); /* reset chip */ in set_reset_mode()
148 priv->write_reg(priv, REG_IER, IRQ_ALL); in set_normal_mode()
150 priv->write_reg(priv, REG_IER, in set_normal_mode()
156 priv->write_reg(priv, REG_MOD, 0x00); in set_normal_mode()
173 priv->write_reg(priv, REG_TXERR, 0x0); in sja1000_start()
174 priv->write_reg(priv, REG_RXERR, 0x0); in sja1000_start()
217 priv->write_reg(priv, REG_BTR0, btr0); in sja1000_set_bittiming()
218 priv->write_reg(priv, REG_BTR1, btr1); in sja1000_set_bittiming()
[all …]
/linux-2.6.39/drivers/net/igb/
De1000_phy.c117 if (!(hw->phy.ops.write_reg)) in igb_phy_reset_dsp()
120 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in igb_phy_reset_dsp()
124 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0); in igb_phy_reset_dsp()
459 ret_val = phy->ops.write_reg(hw, I82580_CFG_REG, phy_data); in igb_copper_link_setup_82580()
527 ret_val = phy->ops.write_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data); in igb_copper_link_setup_m88()
555 ret_val = phy->ops.write_reg(hw, M88E1000_EXT_PHY_SPEC_CTRL, in igb_copper_link_setup_m88()
640 ret_val = phy->ops.write_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data); in igb_copper_link_setup_m88_gen2()
724 ret_val = phy->ops.write_reg(hw, IGP01E1000_PHY_PORT_CTRL, data); in igb_copper_link_setup_igp()
744 ret_val = phy->ops.write_reg(hw, in igb_copper_link_setup_igp()
756 ret_val = phy->ops.write_reg(hw, PHY_1000T_CTRL, data); in igb_copper_link_setup_igp()
[all …]
/linux-2.6.39/arch/arm/mach-omap2/
Dvoltage.c206 vdd->write_reg(vpconfig, prm_mod_offs, vdd->vp_data->vpconfig); in vp_latch_vsel()
209 vdd->write_reg((vpconfig | vdd->vp_data->vp_common->vpconfig_initvdd), in vp_latch_vsel()
213 vdd->write_reg(vpconfig, prm_mod_offs, vdd->vp_data->vpconfig); in vp_latch_vsel()
221 if (!vdd->read_reg || !vdd->write_reg) { in vp_init()
231 vdd->write_reg(vp_val, prm_mod_offs, vdd->vp_data->vpconfig); in vp_init()
237 vdd->write_reg(vp_val, prm_mod_offs, vdd->vp_data->vstepmin); in vp_init()
243 vdd->write_reg(vp_val, prm_mod_offs, vdd->vp_data->vstepmax); in vp_init()
251 vdd->write_reg(vp_val, prm_mod_offs, vdd->vp_data->vlimitto); in vp_init()
328 if (!vdd->read_reg || !vdd->write_reg) { in _pre_volt_scale()
346 vdd->write_reg(vc_cmdval, prm_mod_offs, vdd->vc_data->cmdval_reg); in _pre_volt_scale()
[all …]
/linux-2.6.39/drivers/staging/go7007/
Dwis-saa7113.c105 static int write_reg(struct i2c_client *client, u8 reg, u8 value) in write_reg() function
140 write_reg(client, 0x0e, 0x01); in wis_saa7113_command()
141 write_reg(client, 0x10, 0x40); in wis_saa7113_command()
143 write_reg(client, 0x0e, 0x01); in wis_saa7113_command()
144 write_reg(client, 0x10, 0x48); in wis_saa7113_command()
146 write_reg(client, 0x0e, 0x50); in wis_saa7113_command()
147 write_reg(client, 0x10, 0x48); in wis_saa7113_command()
207 write_reg(client, 0x0a, dec->brightness); in wis_saa7113_command()
216 write_reg(client, 0x0b, dec->contrast); in wis_saa7113_command()
225 write_reg(client, 0x0c, dec->saturation); in wis_saa7113_command()
[all …]
Dwis-uda1342.c27 static int write_reg(struct i2c_client *client, int reg, int value) in write_reg() function
44 write_reg(client, 0x00, 0x1441); /* select input 2 */ in wis_uda1342_command()
47 write_reg(client, 0x00, 0x1241); /* select input 1 */ in wis_uda1342_command()
74 write_reg(client, 0x00, 0x8000); /* reset registers */ in wis_uda1342_probe()
75 write_reg(client, 0x00, 0x1241); /* select input 1 */ in wis_uda1342_probe()
Dwis-tw2804.c108 static int write_reg(struct i2c_client *client, u8 reg, u8 value, int channel) in write_reg() function
237 write_reg(client, 0x12, dec->brightness, dec->channel); in wis_tw2804_command()
246 write_reg(client, 0x11, dec->contrast, dec->channel); in wis_tw2804_command()
255 write_reg(client, 0x10, dec->saturation, dec->channel); in wis_tw2804_command()
264 write_reg(client, 0x0f, dec->hue, dec->channel); in wis_tw2804_command()
Dwis-saa7115.c185 static int write_reg(struct i2c_client *client, u8 reg, u8 value) in write_reg() function
340 write_reg(client, 0x0a, dec->brightness); in wis_saa7115_command()
349 write_reg(client, 0x0b, dec->contrast); in wis_saa7115_command()
358 write_reg(client, 0x0c, dec->saturation); in wis_saa7115_command()
367 write_reg(client, 0x0d, dec->hue); in wis_saa7115_command()
Dwis-tw9903.c87 static int write_reg(struct i2c_client *client, u8 reg, u8 value) in write_reg() function
210 write_reg(client, 0x10, dec->brightness); in wis_tw9903_command()
219 write_reg(client, 0x11, dec->contrast); in wis_tw9903_command()
239 write_reg(client, 0x15, dec->hue); in wis_tw9903_command()
/linux-2.6.39/drivers/net/can/c_can/
Dc_can.c232 priv->write_reg(priv, &priv->regs->control, cntrl_save); in c_can_enable_all_interrupts()
263 priv->write_reg(priv, &priv->regs->ifregs[iface].com_mask, in c_can_object_get()
265 priv->write_reg(priv, &priv->regs->ifregs[iface].com_req, in c_can_object_get()
283 priv->write_reg(priv, &priv->regs->ifregs[iface].com_mask, in c_can_object_put()
285 priv->write_reg(priv, &priv->regs->ifregs[iface].com_req, in c_can_object_put()
311 priv->write_reg(priv, &priv->regs->ifregs[iface].arb1, in c_can_write_msg_object()
313 priv->write_reg(priv, &priv->regs->ifregs[iface].arb2, flags | in c_can_write_msg_object()
317 priv->write_reg(priv, &priv->regs->ifregs[iface].data[i / 2], in c_can_write_msg_object()
322 priv->write_reg(priv, &priv->regs->ifregs[iface].msg_cntrl, in c_can_write_msg_object()
334 priv->write_reg(priv, &priv->regs->ifregs[iface].msg_cntrl, in c_can_mark_rx_msg_obj()
[all …]
/linux-2.6.39/drivers/rtc/
Drtc-r9701.c43 static int write_reg(struct device *dev, int address, unsigned char data) in write_reg() function
106 ret = write_reg(dev, RHRCNT, bin2bcd(dt->tm_hour)); in r9701_set_datetime()
107 ret = ret ? ret : write_reg(dev, RMINCNT, bin2bcd(dt->tm_min)); in r9701_set_datetime()
108 ret = ret ? ret : write_reg(dev, RSECCNT, bin2bcd(dt->tm_sec)); in r9701_set_datetime()
109 ret = ret ? ret : write_reg(dev, RDAYCNT, bin2bcd(dt->tm_mday)); in r9701_set_datetime()
110 ret = ret ? ret : write_reg(dev, RMONCNT, bin2bcd(dt->tm_mon + 1)); in r9701_set_datetime()
111 ret = ret ? ret : write_reg(dev, RYRCNT, bin2bcd(dt->tm_year - 100)); in r9701_set_datetime()
112 ret = ret ? ret : write_reg(dev, RWKCNT, 1 << dt->tm_wday); in r9701_set_datetime()
/linux-2.6.39/drivers/macintosh/
Dtherm_windtunnel.c121 write_reg( struct i2c_client *cl, int reg, int data, int len ) in write_reg() function
159 write_reg( x.fan, 0x25, val, 1 ); in tune_fan()
160 write_reg( x.fan, 0x20, 0, 1 ); in tune_fan()
225 if( write_reg( x.thermostat, 1, val, 1 ) ) in setup_hardware()
229 write_reg( x.fan, 0x01, 0x01, 1 ); in setup_hardware()
231 write_reg( x.fan, 0x23, 0x91, 1 ); in setup_hardware()
233 write_reg( x.fan, 0x00, 0x95, 1 ); in setup_hardware()
243 write_reg( x.thermostat, 2, x.overheat_hyst, 2 ); in setup_hardware()
244 write_reg( x.thermostat, 3, x.overheat_temp, 2 ); in setup_hardware()
269 write_reg( x.fan, 0x01, x.r1, 1 ); in restore_regs()
[all …]
/linux-2.6.39/drivers/tty/
Dsynclinkmp.c624 static void write_reg(SLMP_INFO *info, unsigned char addr, unsigned char val);
1536 write_reg(info, CTL, RegValue); in set_break()
2081 write_reg(info, IER2, 0); in isr_timer()
2093 write_reg(info, (unsigned char)(timer + TMCS), 0); in isr_timer()
2111 write_reg(info, SR1, status); in isr_rxint()
2114 write_reg(info, SR2, status2); in isr_rxint()
2237 write_reg(info, TXDMA + DIR, 0x00); /* disable Tx DMA IRQs */ in isr_txeom()
2238 write_reg(info, TXDMA + DSR, 0xc0); /* clear IRQs and disable DMA */ in isr_txeom()
2239 write_reg(info, TXDMA + DCMD, SWABORT); /* reset/init DMA channel */ in isr_txeom()
2242 write_reg(info, CMD, TXRESET); in isr_txeom()
[all …]
/linux-2.6.39/drivers/ide/
Dopti621.c38 static void write_reg(u8 value, int reg) in write_reg() function
113 write_reg(drive->dn & 1, MISC_REG); in opti621_set_pio_mode()
115 write_reg(tim, READ_REG); in opti621_set_pio_mode()
117 write_reg(tim, WRITE_REG); in opti621_set_pio_mode()
121 write_reg(0x85, CNTRL_REG); in opti621_set_pio_mode()
125 write_reg(misc, MISC_REG); in opti621_set_pio_mode()
/linux-2.6.39/drivers/net/
Datp.c275 write_reg(ioaddr, MODSEL, 0x00); in atp_probe1()
323 write_reg(ioaddr, CMR2, CMR2_NULL); in atp_probe1()
377 write_reg(ioaddr, CMR2, CMR2_EEPROM); /* Point to the EEPROM control registers. */ in get_node_ID()
388 write_reg(ioaddr, CMR2, CMR2_NULL); in get_node_ID()
478 write_reg(ioaddr, CMR2, CMR2_IRQOUT); in hardware_init()
485 write_reg(ioaddr, IMR, ISR_RxOK | ISR_TxErr | ISR_TxOK); in hardware_init()
496 write_reg(ioaddr, TxCNT1, length >> 8); in trigger_send()
497 write_reg(ioaddr, CMR1, CMR1_Xmit); in trigger_send()
571 write_reg(ioaddr, IMR, 0); in atp_send_packet()
586 write_reg(ioaddr, IMR, ISR_RxOK | ISR_TxErr | ISR_TxOK); in atp_send_packet()
[all …]
/linux-2.6.39/drivers/video/mbx/
Dmbxfb.c39 #define write_reg(val, reg) do { writel((val), (reg)); } while(0) macro
449 write_reg(vsctrl, VSCTRL); in mbxfb_setupOverlay()
450 write_reg(vscadr, VSCADR); in mbxfb_setupOverlay()
451 write_reg(vubase, VUBASE); in mbxfb_setupOverlay()
452 write_reg(vvbase, VVBASE); in mbxfb_setupOverlay()
453 write_reg(vsadr, VSADR); in mbxfb_setupOverlay()
456 write_reg(sssize, SSSIZE); in mbxfb_setupOverlay()
457 write_reg(spoctrl, SPOCTRL); in mbxfb_setupOverlay()
458 write_reg(shctrl, SHCTRL); in mbxfb_setupOverlay()
466 write_reg(vovrclk, VOVRCLK); in mbxfb_setupOverlay()
[all …]
/linux-2.6.39/drivers/isdn/hardware/mISDN/
Dhfcsusb.c91 static int write_reg(struct hfcsusb *hw, __u8 reg, __u8 val) in write_reg() function
205 write_reg(hw, HFCUSB_P_DATA, hw->led_state); in handle_led()
673 write_reg(hw, HFCUSB_STATES, 2 | HFCUSB_NT_G2_G3); in ph_state_nt()
752 write_reg(hw, HFCUSB_FIFO, (bch->nr == 1) ? 0 : 2); in hfcsusb_setup_bch()
753 write_reg(hw, HFCUSB_CON_HDLC, conhdlc); in hfcsusb_setup_bch()
754 write_reg(hw, HFCUSB_INC_RES_F, 2); in hfcsusb_setup_bch()
755 write_reg(hw, HFCUSB_FIFO, (bch->nr == 1) ? 1 : 3); in hfcsusb_setup_bch()
756 write_reg(hw, HFCUSB_CON_HDLC, conhdlc); in hfcsusb_setup_bch()
757 write_reg(hw, HFCUSB_INC_RES_F, 2); in hfcsusb_setup_bch()
769 write_reg(hw, HFCUSB_SCTRL, sctrl); in hfcsusb_setup_bch()
[all …]
DmISDNisar.c74 isar->write_reg(isar->hw, ISAR_CTRL_H, creg); in send_mbox()
75 isar->write_reg(isar->hw, ISAR_CTRL_L, len); in send_mbox()
76 isar->write_reg(isar->hw, ISAR_WADR, 0); in send_mbox()
93 isar->write_reg(isar->hw, ISAR_HIS, his); in send_mbox()
107 isar->write_reg(isar->hw, ISAR_RADR, 0); in rcv_mbox()
122 isar->write_reg(isar->hw, ISAR_IIA, 0); in rcv_mbox()
166 isar->write_reg(isar->hw, ISAR_IRQBIT, 0); in ISARVersion()
213 isar->write_reg(isar->hw, ISAR_IRQBIT, 0); in load_firmware()
322 isar->write_reg(isar->hw, ISAR_IRQBIT, ISAR_IRQSTA); in load_firmware()
408 isar->write_reg(isar->hw, ISAR_IRQBIT, 0); in load_firmware()
[all …]
/linux-2.6.39/sound/ppc/
Dsnd_ps3.c72 static inline void write_reg(unsigned int reg, u32 val) in write_reg() function
79 write_reg(reg, newval); in update_reg()
84 write_reg(reg, newval); in update_mask_reg()
270 write_reg(PS3_AUDIO_SOURCE(dma_ch), in snd_ps3_program_dma()
276 write_reg(PS3_AUDIO_DEST(dma_ch), in snd_ps3_program_dma()
280 write_reg(PS3_AUDIO_DEST(dma_ch), in snd_ps3_program_dma()
285 write_reg(PS3_AUDIO_DMASIZE(dma_ch), 0); in snd_ps3_program_dma()
294 write_reg(PS3_AUDIO_KICK(dma_ch), in snd_ps3_program_dma()
297 write_reg(PS3_AUDIO_KICK(dma_ch), in snd_ps3_program_dma()
332 write_reg(PS3_AUDIO_AX_IS, PS3_AUDIO_AX_IE_ASOBEIE(0)); in snd_ps3_interrupt()
[all …]
/linux-2.6.39/drivers/gpio/
Dit8761e_gpio.c53 static void write_reg(u8 data, u8 addr, u8 port) in write_reg() function
75 write_reg(0x2, 0x7, port); in enter_gpio_mode()
105 write_reg(curr_dirs & ~(1 << bit), io_reg, port); in it8761e_gpio_direction_in()
151 write_reg(curr_dirs | (1 << bit), io_reg, port); in it8761e_gpio_direction_out()
/linux-2.6.39/drivers/char/pcmcia/
Dsynclink_cs.c323 #define write_reg(info, reg, val) outb((val),(info)->io_base + (reg)) macro
330 write_reg(info, (reg), \
333 write_reg(info, (reg), \
360 { info->pim_value |= (mask); write_reg(info, PIM, info->pim_value); }
363 { info->pim_value &= ~(mask); write_reg(info, PIM, info->pim_value); }
694 write_reg(info, (unsigned char) (channel + CMDR), cmd); in issue_command()
1019 write_reg(info, CHA + TXFIFO, *(info->tx_buf + info->tx_get)); in tx_ready()
1884 write_reg(info, PVR, val); in set_interface()
2905 write_reg(info, (unsigned char) (channel + BGR), in mgslpc_set_rate()
2909 write_reg(info, (unsigned char) (channel + CCR2), val); in mgslpc_set_rate()
[all …]

123