Home
last modified time | relevance | path

Searched refs:last_chan (Results 1 – 11 of 11) sorted by relevance

/openbmc/linux/drivers/i2c/muxes/
H A Di2c-mux-pca954x.c95 u8 last_chan; /* last register value */ member
310 if (data->last_chan != regval) { in pca954x_select_chan()
312 data->last_chan = ret < 0 ? 0 : regval; in pca954x_select_chan()
331 data->last_chan = 0; in pca954x_deselect_mux()
333 data->last_chan); in pca954x_deselect_mux()
377 if (data->last_chan || val != MUX_IDLE_DISCONNECT) in idle_state_store()
469 data->last_chan = pca954x_regval(data, data->idle_state); in pca954x_init()
471 data->last_chan = 0; /* Disconnect multiplexer */ in pca954x_init()
473 ret = i2c_smbus_write_byte(client, data->last_chan); in pca954x_init()
475 data->last_chan = 0; in pca954x_init()
/openbmc/linux/drivers/comedi/drivers/
H A Dpcl816.c144 unsigned int last_chan) in pcl816_ai_set_chan_scan() argument
146 outb(PCL816_MUX_SCAN(first_chan, last_chan), in pcl816_ai_set_chan_scan()
155 unsigned int last_chan; in pcl816_ai_setup_chanlist() local
161 last_chan = CR_CHAN(chanlist[i]); in pcl816_ai_setup_chanlist()
164 pcl816_ai_set_chan_range(dev, last_chan, range); in pcl816_ai_setup_chanlist()
169 pcl816_ai_set_chan_scan(dev, first_chan, last_chan); in pcl816_ai_setup_chanlist()
H A Dpcl818.c333 unsigned int last_chan) in pcl818_ai_set_chan_scan() argument
335 outb(PCL818_MUX_SCAN(first_chan, last_chan), in pcl818_ai_set_chan_scan()
345 unsigned int last_chan; in pcl818_ai_setup_chanlist() local
354 last_chan = CR_CHAN(chanlist[i]); in pcl818_ai_setup_chanlist()
357 devpriv->act_chanlist[i] = last_chan; in pcl818_ai_setup_chanlist()
359 pcl818_ai_set_chan_range(dev, last_chan, range); in pcl818_ai_setup_chanlist()
364 pcl818_ai_set_chan_scan(dev, first_chan, last_chan); in pcl818_ai_setup_chanlist()
H A Ddas16.c534 unsigned int last_chan, in das16_ai_set_mux_range() argument
540 outb(first_chan | (last_chan << 4), dev->iobase + DAS16_MUX_REG); in das16_ai_set_mux_range()
700 unsigned int last_chan = CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]); in das16_cmd_exec() local
715 das16_ai_set_mux_range(dev, first_chan, last_chan, range); in das16_cmd_exec()
H A Ddmm32at.c164 unsigned int last_chan = (chan + nchan - 1) % s->n_chan; in dmm32at_ai_set_chanspec() local
173 outb(last_chan, dev->iobase + DMM32AT_AI_HI_CHAN_REG); in dmm32at_ai_set_chanspec()
H A Dadl_pci9111.c340 unsigned int last_chan = CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]); in pci9111_ai_do_cmd() local
351 outb(last_chan, dev->iobase + PCI9111_AI_CHANNEL_REG); in pci9111_ai_do_cmd()
H A Dadv_pci1710.c254 unsigned int last_chan = CR_CHAN(chanlist[seglen - 1]); in pci1710_ai_setup_chanlist() local
282 PCI171X_MUX_CHANH(last_chan); in pci1710_ai_setup_chanlist()
/openbmc/linux/drivers/iio/adc/
H A Drockchip_saradc.c80 const struct iio_chan_spec *last_chan; member
131 offset = SARADC2_DATA_BASE + info->last_chan->channel * 0x4; in rockchip_saradc_read_v2()
157 info->last_chan = chan; in rockchip_saradc_conversion()
202 info->last_val &= GENMASK(info->last_chan->scan_type.realbits - 1, 0); in rockchip_saradc_isr()
/openbmc/linux/drivers/crypto/
H A Dtalitos.h145 atomic_t last_chan ____cacheline_aligned;
H A Dtalitos.c3057 ctx->ch = atomic_inc_return(&priv->last_chan) & in talitos_init_common()
/openbmc/linux/drivers/net/wireless/realtek/rtw89/
H A Dmac.c4294 u32 last_chan = rtwdev->scan_info.last_chan_idx; in rtw89_mac_c2h_scanofld_rsp() local
4324 last_chan < rtwvif->scan_req->n_channels) { in rtw89_mac_c2h_scanofld_rsp()