Searched refs:channel_offset (Results 1 - 7 of 7) sorted by relevance

/linux-4.1.27/drivers/staging/comedi/drivers/
H A Dunioxx5.c111 int chan_a, chan_b, conf, channel_offset; __unioxx5_analog_config() local
113 channel_offset = __unioxx5_define_chan_offset(channel); __unioxx5_analog_config()
114 conf = usp->usp_prev_cn_val[channel_offset - 1]; __unioxx5_analog_config()
130 outb(conf, usp->usp_iobase + channel_offset); __unioxx5_analog_config()
133 usp->usp_prev_cn_val[channel_offset - 1] = conf; __unioxx5_analog_config()
141 int channel_offset, mask = 1 << (channel & 0x07); __unioxx5_digital_read() local
143 channel_offset = __unioxx5_define_chan_offset(channel); __unioxx5_digital_read()
144 if (channel_offset < 0) { __unioxx5_digital_read()
151 *data = inb(usp->usp_iobase + channel_offset); __unioxx5_digital_read()
155 if (channel_offset > 1) __unioxx5_digital_read()
156 channel -= 2 << channel_offset; __unioxx5_digital_read()
209 int channel_offset, val; __unioxx5_digital_write() local
212 channel_offset = __unioxx5_define_chan_offset(channel); __unioxx5_digital_write()
213 if (channel_offset < 0) { __unioxx5_digital_write()
221 val = usp->usp_prev_wr_val[channel_offset - 1]; __unioxx5_digital_write()
228 outb(val, usp->usp_iobase + channel_offset); __unioxx5_digital_write()
230 usp->usp_prev_wr_val[channel_offset - 1] = val; __unioxx5_digital_write()
323 int channel_offset, flags, channel = CR_CHAN(insn->chanspec), type; unioxx5_insn_config() local
335 channel_offset = __unioxx5_define_chan_offset(channel); unioxx5_insn_config()
336 if (channel_offset < 0) { unioxx5_insn_config()
344 flags = usp->usp_prev_cn_val[channel_offset - 1]; unioxx5_insn_config()
364 outb(flags, usp->usp_iobase + channel_offset); unioxx5_insn_config()
368 usp->usp_prev_cn_val[channel_offset - 1] = flags; unioxx5_insn_config()
/linux-4.1.27/drivers/ide/
H A Dtriflex.c42 u8 channel_offset = hwif->channel ? 0x74 : 0x70, unit = drive->dn & 1; triflex_set_mode() local
44 pci_read_config_dword(dev, channel_offset, &triflex_timings); triflex_set_mode()
81 pci_write_config_dword(dev, channel_offset, triflex_timings); triflex_set_mode()
/linux-4.1.27/drivers/ata/
H A Dpata_triflex.c90 int channel_offset = ap->port_no ? 0x74: 0x70; triflex_load_timing() local
94 pci_read_config_dword(pdev, channel_offset, &old_triflex_timing); triflex_load_timing()
126 pci_write_config_dword(pdev, channel_offset, triflex_timing); triflex_load_timing()
/linux-4.1.27/drivers/staging/rtl8188eu/core/
H A Drtw_wlan_util.c334 unsigned char channel_offset) SetBWMode()
338 rtw_set_oper_choffset(padapter, channel_offset); SetBWMode()
340 rtw_hal_set_bwmode(padapter, (enum ht_channel_width)bwmode, channel_offset); SetBWMode()
343 void set_channel_bwmode(struct adapter *padapter, unsigned char channel, unsigned char channel_offset, unsigned short bwmode) set_channel_bwmode() argument
348 DBG_88E("[%s] ch = %d, offset = %d, bwmode = %d\n", __func__, channel, channel_offset, bwmode); set_channel_bwmode()
351 (channel_offset == HAL_PRIME_CHNL_OFFSET_DONT_CARE)) { set_channel_bwmode()
356 if (channel_offset == HAL_PRIME_CHNL_OFFSET_LOWER) { set_channel_bwmode()
369 rtw_set_oper_choffset(padapter, channel_offset); set_channel_bwmode()
372 SetBWMode(padapter, bwmode, channel_offset); set_channel_bwmode()
333 SetBWMode(struct adapter *padapter, unsigned short bwmode, unsigned char channel_offset) SetBWMode() argument
/linux-4.1.27/drivers/staging/rtl8723au/core/
H A Drtw_wlan_util.c340 unsigned char channel_offset) set_bwmode()
346 rtw_set_oper_ch23aoffset23a(padapter, channel_offset); set_bwmode()
349 channel_offset); set_bwmode()
355 unsigned char channel_offset, unsigned short bwmode) set_channel_bwmode23a()
360 channel_offset == HAL_PRIME_CHNL_OFFSET_DONT_CARE) { set_channel_bwmode23a()
365 if (channel_offset == HAL_PRIME_CHNL_OFFSET_LOWER) { set_channel_bwmode23a()
380 rtw_set_oper_ch23aoffset23a(padapter, channel_offset); set_channel_bwmode23a()
386 set_bwmode(padapter, bwmode, channel_offset); set_channel_bwmode23a()
339 set_bwmode(struct rtw_adapter *padapter, unsigned short bwmode, unsigned char channel_offset) set_bwmode() argument
354 set_channel_bwmode23a(struct rtw_adapter *padapter, unsigned char channel, unsigned char channel_offset, unsigned short bwmode) set_channel_bwmode23a() argument
/linux-4.1.27/drivers/staging/rtl8188eu/include/
H A Drtw_mlme_ext.h476 unsigned char channel_offset, unsigned short bwmode);
479 unsigned char channel_offset);
/linux-4.1.27/drivers/staging/rtl8723au/include/
H A Drtw_mlme_ext.h470 unsigned char channel_offset, unsigned short bwmode);

Completed in 284 milliseconds