Searched refs:channel_data (Results 1 - 6 of 6) sorted by relevance

/linux-4.4.14/drivers/hwmon/
H A Dads1015.c69 struct ads1015_channel_data channel_data[ADS1015_CHANNELS]; member in struct:ads1015_data
77 unsigned int pga = data->channel_data[channel].pga; ads1015_read_adc()
78 unsigned int data_rate = data->channel_data[channel].data_rate; ads1015_read_adc()
127 unsigned int pga = data->channel_data[channel].pga; ads1015_reg_to_mv()
225 data->channel_data[channel].enabled = true; ads1015_get_channels_config_of()
226 data->channel_data[channel].pga = pga; ads1015_get_channels_config_of()
227 data->channel_data[channel].data_rate = data_rate; ads1015_get_channels_config_of()
242 memcpy(data->channel_data, pdata->channel_data, ads1015_get_channels_config()
243 sizeof(data->channel_data)); ads1015_get_channels_config()
254 data->channel_data[k].enabled = true; ads1015_get_channels_config()
255 data->channel_data[k].pga = ADS1015_DEFAULT_PGA; ads1015_get_channels_config()
256 data->channel_data[k].data_rate = ADS1015_DEFAULT_DATA_RATE; ads1015_get_channels_config()
278 if (!data->channel_data[k].enabled) ads1015_probe()
/linux-4.4.14/include/linux/i2c/
H A Dads1015.h33 struct ads1015_channel_data channel_data[ADS1015_CHANNELS]; member in struct:ads1015_platform_data
/linux-4.4.14/drivers/net/wan/
H A Dcosa.c110 struct channel_data { struct
120 char *(*setup_rx)(struct channel_data *channel, int size);
122 int (*rx_done)(struct channel_data *channel);
124 int (*tx_done)(struct channel_data *channel, int size);
159 struct channel_data *rxchan;
162 struct channel_data *chan;
273 static void cosa_enable_rx(struct channel_data *chan);
274 static void cosa_disable_rx(struct channel_data *chan);
275 static int cosa_start_tx(struct channel_data *channel, char *buf, int size);
277 static int cosa_dma_able(struct channel_data *chan, char *buf, int data);
286 static char *cosa_net_setup_rx(struct channel_data *channel, int size);
287 static int cosa_net_rx_done(struct channel_data *channel);
288 static int cosa_net_tx_done(struct channel_data *channel, int size);
292 static char *chrdev_setup_rx(struct channel_data *channel, int size);
293 static int chrdev_rx_done(struct channel_data *channel);
294 static int chrdev_tx_done(struct channel_data *channel, int size);
353 static inline struct channel_data* dev_to_chan(struct net_device *dev) dev_to_chan()
355 return (struct channel_data *)dev_to_hdlc(dev)->priv; dev_to_chan()
562 cosa->chan = kcalloc(cosa->nchannels, sizeof(struct channel_data), GFP_KERNEL); cosa_probe()
569 struct channel_data *chan = &cosa->chan[i]; cosa_probe()
639 struct channel_data *chan = dev_to_chan(dev); cosa_net_open()
679 struct channel_data *chan = dev_to_chan(dev); cosa_net_tx()
690 struct channel_data *chan = dev_to_chan(dev); cosa_net_timeout()
709 struct channel_data *chan = dev_to_chan(dev); cosa_net_close()
730 static char *cosa_net_setup_rx(struct channel_data *chan, int size) cosa_net_setup_rx()
747 static int cosa_net_rx_done(struct channel_data *chan) cosa_net_rx_done()
766 static int cosa_net_tx_done(struct channel_data *chan, int size) cosa_net_tx_done()
789 struct channel_data *chan = file->private_data; cosa_read()
840 static char *chrdev_setup_rx(struct channel_data *chan, int size) chrdev_setup_rx()
847 static int chrdev_rx_done(struct channel_data *chan) chrdev_rx_done()
863 struct channel_data *chan = file->private_data; cosa_write()
918 static int chrdev_tx_done(struct channel_data *chan, int size) chrdev_tx_done()
938 struct channel_data *chan; cosa_open()
981 struct channel_data *channel = file->private_data; cosa_release()
1146 struct channel_data *channel, unsigned int cmd, unsigned long arg) cosa_ioctl_common()
1193 struct channel_data *chan = dev_to_chan(dev); cosa_net_ioctl()
1204 struct channel_data *channel = file->private_data; cosa_chardev_ioctl()
1221 * in the channel_data structure and by using these routines. cosa_enable_rx()
1223 static void cosa_enable_rx(struct channel_data *chan) cosa_enable_rx()
1231 static void cosa_disable_rx(struct channel_data *chan) cosa_disable_rx()
1245 static int cosa_start_tx(struct channel_data *chan, char *buf, int len) cosa_start_tx()
1376 static int cosa_dma_able(struct channel_data *chan, char *buf, int len) cosa_dma_able()
1910 struct channel_data *chan = cosa->chan+cosa->txchan; eot_interrupt()
/linux-4.4.14/drivers/media/platform/sti/c8sectpfe/
H A Dc8sectpfe-core.c72 channel = fei->channel_data[chan_num]; c8sectpfe_timer_interrupt()
178 channel = fei->channel_data[stdemux->tsin_index]; c8sectpfe_start_feed()
274 channel = fei->channel_data[stdemux->tsin_index]; c8sectpfe_stop_feed()
294 channel = fei->channel_data[stdemux->tsin_index]; c8sectpfe_stop_feed()
366 if (!fei->channel_data[i]) find_channel()
369 if (fei->channel_data[i]->tsin_id == tsin_num) find_channel()
370 return fei->channel_data[i]; find_channel()
767 fei->channel_data[index] = devm_kzalloc(dev, for_each_child_of_node()
771 if (!fei->channel_data[index]) { for_each_child_of_node()
776 tsin = fei->channel_data[index]; for_each_child_of_node()
840 , fei->channel_data[index]->tsin_id); for_each_child_of_node()
857 fei->channel_data[index], index, for_each_child_of_node()
914 channel = fei->channel_data[i]; c8sectpfe_remove()
950 tsin = fei->channel_data[index]; for_each_child_of_node()
953 fei->channel_data[index]); for_each_child_of_node()
967 tsin = fei->channel_data[index];
H A Dc8sectpfe-common.c210 tsin = fei->channel_data[n]; c8sectpfe_tuner_unregister_frontend()
244 tsin = fei->channel_data[n]; c8sectpfe_tuner_register_frontend()
H A Dc8sectpfe-core.h99 struct channel_info *channel_data[C8SECTPFE_MAX_TSIN_CHAN]; member in struct:c8sectpfei

Completed in 3538 milliseconds