Searched refs:channel_data (Results 1 - 3 of 3) sorted by relevance
/linux-4.1.27/drivers/hwmon/ |
H A D | ads1015.c | 69 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.1.27/include/linux/i2c/ |
H A D | ads1015.h | 33 struct ads1015_channel_data channel_data[ADS1015_CHANNELS]; member in struct:ads1015_platform_data
|
/linux-4.1.27/drivers/net/wan/ |
H A D | cosa.c | 110 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() 638 struct channel_data *chan = dev_to_chan(dev); cosa_net_open() 678 struct channel_data *chan = dev_to_chan(dev); cosa_net_tx() 689 struct channel_data *chan = dev_to_chan(dev); cosa_net_timeout() 708 struct channel_data *chan = dev_to_chan(dev); cosa_net_close() 729 static char *cosa_net_setup_rx(struct channel_data *chan, int size) cosa_net_setup_rx() 746 static int cosa_net_rx_done(struct channel_data *chan) cosa_net_rx_done() 765 static int cosa_net_tx_done(struct channel_data *chan, int size) cosa_net_tx_done() 788 struct channel_data *chan = file->private_data; cosa_read() 839 static char *chrdev_setup_rx(struct channel_data *chan, int size) chrdev_setup_rx() 846 static int chrdev_rx_done(struct channel_data *chan) chrdev_rx_done() 862 struct channel_data *chan = file->private_data; cosa_write() 917 static int chrdev_tx_done(struct channel_data *chan, int size) chrdev_tx_done() 937 struct channel_data *chan; cosa_open() 980 struct channel_data *channel = file->private_data; cosa_release() 1145 struct channel_data *channel, unsigned int cmd, unsigned long arg) cosa_ioctl_common() 1192 struct channel_data *chan = dev_to_chan(dev); cosa_net_ioctl() 1203 struct channel_data *channel = file->private_data; cosa_chardev_ioctl() 1220 * in the channel_data structure and by using these routines. cosa_enable_rx() 1222 static void cosa_enable_rx(struct channel_data *chan) cosa_enable_rx() 1230 static void cosa_disable_rx(struct channel_data *chan) cosa_disable_rx() 1244 static int cosa_start_tx(struct channel_data *chan, char *buf, int len) cosa_start_tx() 1375 static int cosa_dma_able(struct channel_data *chan, char *buf, int len) cosa_dma_able() 1909 struct channel_data *chan = cosa->chan+cosa->txchan; eot_interrupt()
|
Completed in 119 milliseconds