/linux-4.19.296/include/sound/ |
D | emu8000_reg.h | 38 #define EMU8000_CMD(reg, chan) ((reg)<<5 | (chan)) argument 44 #define EMU8000_CPF_READ(emu, chan) \ argument 45 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(0, (chan))) 46 #define EMU8000_PTRX_READ(emu, chan) \ argument 47 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(1, (chan))) 48 #define EMU8000_CVCF_READ(emu, chan) \ argument 49 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(2, (chan))) 50 #define EMU8000_VTFT_READ(emu, chan) \ argument 51 snd_emu8000_peek_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(3, (chan))) 52 #define EMU8000_PSST_READ(emu, chan) \ argument [all …]
|
/linux-4.19.296/drivers/pwm/ |
D | pwm-bcm-kona.c | 49 #define PWM_CONTROL_SMOOTH_SHIFT(chan) (24 + (chan)) argument 50 #define PWM_CONTROL_TYPE_SHIFT(chan) (16 + (chan)) argument 51 #define PWM_CONTROL_POLARITY_SHIFT(chan) (8 + (chan)) argument 52 #define PWM_CONTROL_TRIGGER_SHIFT(chan) (chan) argument 55 #define PRESCALE_SHIFT(chan) ((chan) << 2) argument 56 #define PRESCALE_MASK(chan) (0x7 << PRESCALE_SHIFT(chan)) argument 60 #define PERIOD_COUNT_OFFSET(chan) (0x00000008 + ((chan) << 3)) argument 64 #define DUTY_CYCLE_HIGH_OFFSET(chan) (0x0000000c + ((chan) << 3)) argument 83 unsigned int chan) in kona_pwmc_prepare_for_settings() argument 87 value |= 1 << PWM_CONTROL_SMOOTH_SHIFT(chan); in kona_pwmc_prepare_for_settings() [all …]
|
D | pwm-samsung.c | 36 #define REG_TCNTB(chan) (0x0c + ((chan) * 0xc)) argument 37 #define REG_TCMPB(chan) (0x10 + ((chan) * 0xc)) argument 43 #define TCFG1_SHIFT(chan) (4 * (chan)) argument 53 #define TCON_START(chan) BIT(4 * (chan) + 0) argument 54 #define TCON_MANUALUPDATE(chan) BIT(4 * (chan) + 1) argument 55 #define TCON_INVERT(chan) BIT(4 * (chan) + 2) argument 56 #define _TCON_AUTORELOAD(chan) BIT(4 * (chan) + 3) argument 57 #define _TCON_AUTORELOAD4(chan) BIT(4 * (chan) + 2) argument 58 #define TCON_AUTORELOAD(chan) \ argument 59 ((chan < 5) ? _TCON_AUTORELOAD(chan) : _TCON_AUTORELOAD4(chan)) [all …]
|
/linux-4.19.296/include/linux/ |
D | dmaengine.h | 294 struct dma_chan *chan; member 438 static inline const char *dma_chan_name(struct dma_chan *chan) in dma_chan_name() argument 440 return dev_name(&chan->dev->device); in dma_chan_name() 456 typedef bool (*dma_filter_fn)(struct dma_chan *chan, void *filter_param); 512 struct dma_chan *chan; member 762 int (*device_alloc_chan_resources)(struct dma_chan *chan); 763 void (*device_free_chan_resources)(struct dma_chan *chan); 766 struct dma_chan *chan, dma_addr_t dst, dma_addr_t src, 769 struct dma_chan *chan, dma_addr_t dst, dma_addr_t *src, 772 struct dma_chan *chan, dma_addr_t *src, unsigned int src_cnt, [all …]
|
D | relay.h | 41 struct rchan *chan; /* associated channel */ member 175 extern int relay_late_setup_files(struct rchan *chan, 178 extern void relay_close(struct rchan *chan); 179 extern void relay_flush(struct rchan *chan); 180 extern void relay_subbufs_consumed(struct rchan *chan, 183 extern void relay_reset(struct rchan *chan); 202 static inline void relay_write(struct rchan *chan, in relay_write() argument 210 buf = *this_cpu_ptr(chan->buf); in relay_write() 211 if (unlikely(buf->offset + length > chan->subbuf_size)) in relay_write() 230 static inline void __relay_write(struct rchan *chan, in __relay_write() argument [all …]
|
D | mailbox_controller.h | 48 int (*send_data)(struct mbox_chan *chan, void *data); 49 int (*startup)(struct mbox_chan *chan); 50 void (*shutdown)(struct mbox_chan *chan); 51 bool (*last_tx_done)(struct mbox_chan *chan); 52 bool (*peek_data)(struct mbox_chan *chan); 132 void mbox_chan_received_data(struct mbox_chan *chan, void *data); /* atomic */ 133 void mbox_chan_txdone(struct mbox_chan *chan, int r); /* atomic */
|
/linux-4.19.296/drivers/iio/ |
D | inkern.c | 83 const struct iio_chan_spec *chan = NULL; in iio_chan_spec_from_name() local 88 chan = &indio_dev->channels[i]; in iio_chan_spec_from_name() 91 return chan; in iio_chan_spec_from_name() 191 struct iio_channel *chan = NULL; in of_iio_channel_get_by_name() local 206 chan = of_iio_channel_get(np, index); in of_iio_channel_get_by_name() 207 if (!IS_ERR(chan) || PTR_ERR(chan) == -EPROBE_DEFER) in of_iio_channel_get_by_name() 225 return chan; in of_iio_channel_get_by_name() 484 struct iio_channel *chan = &channels[0]; in iio_channel_release_all() local 486 while (chan->indio_dev) { in iio_channel_release_all() 487 iio_device_put(chan->indio_dev); in iio_channel_release_all() [all …]
|
/linux-4.19.296/drivers/iio/counter/ |
D | 104-quad-8.c | 92 struct iio_chan_spec const *chan, int *val, int *val2, long mask) in quad8_read_raw() argument 95 const int base_offset = priv->base + 2 * chan->channel; in quad8_read_raw() 100 if (chan->type == IIO_INDEX) { in quad8_read_raw() 102 & BIT(chan->channel)); in quad8_read_raw() 117 *val = priv->ab_enable[chan->channel]; in quad8_read_raw() 121 *val2 = priv->quadrature_scale[chan->channel]; in quad8_read_raw() 129 struct iio_chan_spec const *chan, int val, int val2, long mask) in quad8_write_raw() argument 132 const int base_offset = priv->base + 2 * chan->channel; in quad8_write_raw() 138 if (chan->type == IIO_INDEX) in quad8_write_raw() 159 val = priv->preset[chan->channel]; in quad8_write_raw() [all …]
|
/linux-4.19.296/include/linux/iio/ |
D | consumer.h | 49 void iio_channel_release(struct iio_channel *chan); 76 void devm_iio_channel_release(struct device *dev, struct iio_channel *chan); 93 void iio_channel_release_all(struct iio_channel *chan); 119 void devm_iio_channel_release_all(struct device *dev, struct iio_channel *chan); 198 int iio_read_channel_raw(struct iio_channel *chan, 212 int iio_read_channel_average_raw(struct iio_channel *chan, int *val); 227 int iio_read_channel_processed(struct iio_channel *chan, int *val); 238 int iio_write_channel_attribute(struct iio_channel *chan, int val, 252 int iio_read_channel_attribute(struct iio_channel *chan, int *val, 263 int iio_write_channel_raw(struct iio_channel *chan, int val); [all …]
|
D | iio.h | 82 uintptr_t priv, const struct iio_chan_spec *chan, char *buf); 84 uintptr_t priv, const struct iio_chan_spec *chan, char *buf); 86 uintptr_t priv, const struct iio_chan_spec *chan, const char *buf, 132 const struct iio_chan_spec *chan, char *buf); 138 const struct iio_chan_spec *chan); 281 static inline bool iio_channel_has_info(const struct iio_chan_spec *chan, in iio_channel_has_info() argument 284 return (chan->info_mask_separate & BIT(type)) | in iio_channel_has_info() 285 (chan->info_mask_shared_by_type & BIT(type)) | in iio_channel_has_info() 286 (chan->info_mask_shared_by_dir & BIT(type)) | in iio_channel_has_info() 287 (chan->info_mask_shared_by_all & BIT(type)); in iio_channel_has_info() [all …]
|
/linux-4.19.296/drivers/iio/adc/ |
D | xilinx-xadc-events.c | 33 const struct iio_chan_spec *chan; in xadc_handle_event() local 39 chan = xadc_event_to_channel(indio_dev, event); in xadc_handle_event() 41 if (chan->type == IIO_TEMP) { in xadc_handle_event() 47 IIO_UNMOD_EVENT_CODE(chan->type, chan->channel, in xadc_handle_event() 57 IIO_UNMOD_EVENT_CODE(chan->type, chan->channel, in xadc_handle_event() 71 static unsigned int xadc_get_threshold_offset(const struct iio_chan_spec *chan, in xadc_get_threshold_offset() argument 76 if (chan->type == IIO_TEMP) { in xadc_get_threshold_offset() 79 if (chan->channel < 2) in xadc_get_threshold_offset() 80 offset = chan->channel + 1; in xadc_get_threshold_offset() 82 offset = chan->channel + 6; in xadc_get_threshold_offset() [all …]
|
D | ti_am335x_adc.c | 40 struct dma_chan *chan; member 83 struct iio_chan_spec const *chan) in get_adc_chan_step_mask() argument 88 if (chan->channel == adc_dev->channel_line[i]) { in get_adc_chan_step_mask() 100 static u32 get_adc_step_bit(struct tiadc_device *adc_dev, int chan) in get_adc_step_bit() argument 102 return 1 << adc_dev->channel_step[chan]; in get_adc_step_bit() 124 int chan; in tiadc_step_config() local 126 chan = adc_dev->channel_line[i]; in tiadc_step_config() 130 chan, STEPCONFIG_AVG_16); in tiadc_step_config() 145 stepconfig | STEPCONFIG_INP(chan)); in tiadc_step_config() 149 chan); in tiadc_step_config() [all …]
|
D | ti-ads1015.c | 258 static void ads1015_event_channel_enable(struct ads1015_data *data, int chan, in ads1015_event_channel_enable() argument 263 data->event_channel = chan; in ads1015_event_channel_enable() 267 static void ads1015_event_channel_disable(struct ads1015_data *data, int chan) in ads1015_event_channel_disable() argument 343 int ads1015_get_adc_result(struct ads1015_data *data, int chan, int *val) in ads1015_get_adc_result() argument 348 if (chan < 0 || chan >= ADS1015_CHANNELS) in ads1015_get_adc_result() 355 pga = data->channel_data[chan].pga; in ads1015_get_adc_result() 356 dr = data->channel_data[chan].data_rate; in ads1015_get_adc_result() 359 cfg = chan << ADS1015_CFG_MUX_SHIFT | pga << ADS1015_CFG_PGA_SHIFT | in ads1015_get_adc_result() 364 cfg |= data->thresh_data[chan].comp_queue << in ads1015_get_adc_result() 396 s16 chan; in ads1015_trigger_handler() member [all …]
|
D | axp20x_adc.c | 231 struct iio_chan_spec const *chan, int *val) in axp20x_adc_raw() argument 241 if (chan->type == IIO_CURRENT && chan->channel == AXP20X_BATT_DISCHRG_I) in axp20x_adc_raw() 246 *val = axp20x_read_variable_width(info->regmap, chan->address, size); in axp20x_adc_raw() 254 struct iio_chan_spec const *chan, int *val) in axp22x_adc_raw() argument 258 *val = axp20x_read_variable_width(info->regmap, chan->address, 12); in axp22x_adc_raw() 266 struct iio_chan_spec const *chan, int *val) in axp813_adc_raw() argument 270 *val = axp20x_read_variable_width(info->regmap, chan->address, 12); in axp813_adc_raw() 349 static int axp20x_adc_scale(struct iio_chan_spec const *chan, int *val, in axp20x_adc_scale() argument 352 switch (chan->type) { in axp20x_adc_scale() 354 return axp20x_adc_scale_voltage(chan->channel, val, val2); in axp20x_adc_scale() [all …]
|
/linux-4.19.296/include/net/bluetooth/ |
D | l2cap.h | 606 struct l2cap_chan *(*new_connection) (struct l2cap_chan *chan); 607 int (*recv) (struct l2cap_chan * chan, 609 void (*teardown) (struct l2cap_chan *chan, int err); 610 void (*close) (struct l2cap_chan *chan); 611 void (*state_change) (struct l2cap_chan *chan, 613 void (*ready) (struct l2cap_chan *chan); 614 void (*defer) (struct l2cap_chan *chan); 615 void (*resume) (struct l2cap_chan *chan); 616 void (*suspend) (struct l2cap_chan *chan); 617 void (*set_shutdown) (struct l2cap_chan *chan); [all …]
|
/linux-4.19.296/crypto/async_tx/ |
D | async_tx.c | 63 dma_has_cap(tx_type, depend_tx->chan->device->cap_mask)) in __async_tx_find_channel() 64 return depend_tx->chan; in __async_tx_find_channel() 81 struct dma_chan *chan = depend_tx->chan; in async_tx_channel_switch() local 82 struct dma_device *device = chan->device; in async_tx_channel_switch() 87 if (txd_parent(depend_tx) && depend_tx->chan == tx->chan) { in async_tx_channel_switch() 95 device->device_issue_pending(chan); in async_tx_channel_switch() 103 intr_tx = device->device_prep_dma_interrupt(chan, 0); in async_tx_channel_switch() 129 device->device_issue_pending(chan); in async_tx_channel_switch() 156 async_tx_submit(struct dma_chan *chan, struct dma_async_tx_descriptor *tx, in async_tx_submit() argument 185 if (depend_tx->chan == chan) { in async_tx_submit() [all …]
|
/linux-4.19.296/drivers/iio/multiplexer/ |
D | iio-mux.c | 36 struct iio_chan_spec *chan; member 44 struct iio_chan_spec const *chan = &mux->chan[idx]; in iio_mux_select() local 48 ret = mux_control_select(mux->control, chan->channel); in iio_mux_select() 54 if (mux->cached_state == chan->channel) in iio_mux_select() 57 if (chan->ext_info) { in iio_mux_select() 58 for (i = 0; chan->ext_info[i].name; ++i) { in iio_mux_select() 59 const char *attr = chan->ext_info[i].name; in iio_mux_select() 78 mux->cached_state = chan->channel; in iio_mux_select() 89 struct iio_chan_spec const *chan, in mux_read_raw() argument 93 int idx = chan - mux->chan; in mux_read_raw() [all …]
|
/linux-4.19.296/drivers/misc/ |
D | aspeed-lpc-snoop.c | 76 struct aspeed_lpc_snoop_channel chan[NUM_SNOOP_CHANNELS]; member 89 struct aspeed_lpc_snoop_channel *chan = snoop_file_to_chan(file); in snoop_file_read() local 93 if (kfifo_is_empty(&chan->fifo)) { in snoop_file_read() 96 ret = wait_event_interruptible(chan->wq, in snoop_file_read() 97 !kfifo_is_empty(&chan->fifo)); in snoop_file_read() 101 ret = kfifo_to_user(&chan->fifo, buffer, count, &copied); in snoop_file_read() 111 struct aspeed_lpc_snoop_channel *chan = snoop_file_to_chan(file); in snoop_file_poll() local 113 poll_wait(file, &chan->wq, pt); in snoop_file_poll() 114 return !kfifo_is_empty(&chan->fifo) ? EPOLLIN : 0; in snoop_file_poll() 125 static void put_fifo_with_discard(struct aspeed_lpc_snoop_channel *chan, u8 val) in put_fifo_with_discard() argument [all …]
|
/linux-4.19.296/drivers/iio/dac/ |
D | ad7303.c | 52 static int ad7303_write(struct ad7303_state *st, unsigned int chan, in ad7303_write() argument 56 (chan << AD7303_CFG_ADDR_OFFSET) | in ad7303_write() 63 uintptr_t private, const struct iio_chan_spec *chan, char *buf) in ad7303_read_dac_powerdown() argument 68 AD7303_CFG_POWER_DOWN(chan->channel))); in ad7303_read_dac_powerdown() 72 uintptr_t private, const struct iio_chan_spec *chan, const char *buf, in ad7303_write_dac_powerdown() argument 86 st->config |= AD7303_CFG_POWER_DOWN(chan->channel); in ad7303_write_dac_powerdown() 88 st->config &= ~AD7303_CFG_POWER_DOWN(chan->channel); in ad7303_write_dac_powerdown() 92 ad7303_write(st, chan->channel, st->dac_cache[chan->channel]); in ad7303_write_dac_powerdown() 99 struct iio_chan_spec const *chan) in ad7303_get_vref() argument 113 struct iio_chan_spec const *chan, int *val, int *val2, long info) in ad7303_read_raw() argument [all …]
|
D | ad5755.c | 26 #define AD5755_WRITE_REG_DATA(chan) (chan) argument 27 #define AD5755_WRITE_REG_GAIN(chan) (0x08 | (chan)) argument 28 #define AD5755_WRITE_REG_OFFSET(chan) (0x10 | (chan)) argument 29 #define AD5755_WRITE_REG_CTRL(chan) (0x1c | (chan)) argument 31 #define AD5755_READ_REG_DATA(chan) (chan) argument 32 #define AD5755_READ_REG_CTRL(chan) (0x4 | (chan)) argument 33 #define AD5755_READ_REG_GAIN(chan) (0x8 | (chan)) argument 34 #define AD5755_READ_REG_OFFSET(chan) (0xc | (chan)) argument 35 #define AD5755_READ_REG_CLEAR(chan) (0x10 | (chan)) argument 36 #define AD5755_READ_REG_SLEW(chan) (0x14 | (chan)) argument [all …]
|
D | max517.c | 80 struct iio_chan_spec const *chan, in max517_read_raw() argument 90 *val = data->vref_mv[chan->channel]; in max517_read_raw() 100 struct iio_chan_spec const *chan, int val, int val2, long mask) in max517_write_raw() argument 106 ret = max517_set_value(indio_dev, val, chan->channel); in max517_write_raw() 142 #define MAX517_CHANNEL(chan) { \ argument 146 .channel = (chan), \ 168 int chan; in max517_probe() local 203 for (chan = 0; chan < indio_dev->num_channels; chan++) { in max517_probe() 205 data->vref_mv[chan] = 5000; /* mV */ in max517_probe() 207 data->vref_mv[chan] = platform_data->vref_mv[chan]; in max517_probe()
|
D | ti-dac082s085.c | 63 #define WRITE_NOT_UPDATE(chan) (0x00 | (chan) << 6) argument 64 #define WRITE_AND_UPDATE(chan) (0x10 | (chan) << 6) argument 82 const struct iio_chan_spec *chan) in ti_dac_get_powerdown_mode() argument 90 const struct iio_chan_spec *chan, in ti_dac_set_powerdown_mode() argument 121 const struct iio_chan_spec *chan, in ti_dac_read_powerdown() argument 131 const struct iio_chan_spec *chan, in ti_dac_write_powerdown() argument 169 #define TI_DAC_CHANNEL(chan) { \ argument 171 .channel = (chan), \ 172 .address = (chan), \ 175 .datasheet_name = (const char[]){ 'A' + (chan), 0 }, \ [all …]
|
D | max5821.c | 58 const struct iio_chan_spec *chan) in max5821_get_powerdown_mode() argument 62 return st->powerdown_mode[chan->channel]; in max5821_get_powerdown_mode() 66 const struct iio_chan_spec *chan, in max5821_set_powerdown_mode() argument 71 st->powerdown_mode[chan->channel] = mode; in max5821_set_powerdown_mode() 85 const struct iio_chan_spec *chan, in max5821_read_dac_powerdown() argument 90 return sprintf(buf, "%d\n", st->powerdown[chan->channel]); in max5821_read_dac_powerdown() 94 const struct iio_chan_spec *chan) in max5821_sync_powerdown_mode() argument 100 if (chan->channel == 0) in max5821_sync_powerdown_mode() 105 if (data->powerdown[chan->channel]) in max5821_sync_powerdown_mode() 106 outbuf[1] |= data->powerdown_mode[chan->channel] + 1; in max5821_sync_powerdown_mode() [all …]
|
/linux-4.19.296/drivers/iio/buffer/ |
D | industrialio-buffer-dmaengine.c | 34 struct dma_chan *chan; member 70 desc = dmaengine_prep_slave_single(dmaengine_buffer->chan, in iio_dmaengine_buffer_submit_block() 87 dma_async_issue_pending(dmaengine_buffer->chan); in iio_dmaengine_buffer_submit_block() 97 dmaengine_terminate_sync(dmaengine_buffer->chan); in iio_dmaengine_buffer_abort() 147 struct dma_chan *chan; in iio_dmaengine_buffer_alloc() local 154 chan = dma_request_slave_channel_reason(dev, channel); in iio_dmaengine_buffer_alloc() 155 if (IS_ERR(chan)) { in iio_dmaengine_buffer_alloc() 156 ret = PTR_ERR(chan); in iio_dmaengine_buffer_alloc() 160 ret = dma_get_slave_caps(chan, &caps); in iio_dmaengine_buffer_alloc() 176 dmaengine_buffer->chan = chan; in iio_dmaengine_buffer_alloc() [all …]
|
/linux-4.19.296/drivers/isdn/hysdn/ |
D | hysdn_sched.c | 32 unsigned short chan) in hysdn_sched_rx() argument 35 switch (chan) { in hysdn_sched_rx() 57 printk(KERN_INFO "irq message channel %d len %d unhandled \n", chan, len); in hysdn_sched_rx() 75 unsigned short volatile *len, unsigned short volatile *chan, in hysdn_sched_tx() argument 89 *chan = card->async_channel; in hysdn_sched_tx() 99 *chan = CHAN_ERRLOG; /* and channel */ in hysdn_sched_tx() 107 *chan = CHAN_ERRLOG; /* and channel */ in hysdn_sched_tx() 119 *chan = CHAN_NDIS_DATA; in hysdn_sched_tx() 132 *chan = CHAN_CAPI; in hysdn_sched_tx() 150 hysdn_tx_cfgline(hysdn_card *card, unsigned char *line, unsigned short chan) in hysdn_tx_cfgline() argument [all …]
|