/linux-5.19.10/drivers/iio/adc/ |
D | dln2-adc.c | 83 static void dln2_adc_add_demux(struct dln2_adc *dln2, in dln2_adc_add_demux() argument 87 struct dln2_adc_demux_table *p = dln2->demux_count ? in dln2_adc_add_demux() 88 &dln2->demux[dln2->demux_count - 1] : NULL; in dln2_adc_add_demux() 93 } else if (dln2->demux_count < DLN2_ADC_MAX_CHANNELS) { in dln2_adc_add_demux() 94 p = &dln2->demux[dln2->demux_count++]; in dln2_adc_add_demux() 101 static void dln2_adc_update_demux(struct dln2_adc *dln2) in dln2_adc_update_demux() argument 105 struct iio_dev *indio_dev = platform_get_drvdata(dln2->pdev); in dln2_adc_update_demux() 108 dln2->demux_count = 0; in dln2_adc_update_demux() 113 dln2_adc_add_demux(dln2, 0, 0, 16); in dln2_adc_update_demux() 114 dln2->ts_pad_offset = 0; in dln2_adc_update_demux() [all …]
|
D | Makefile | 42 obj-$(CONFIG_DLN2_ADC) += dln2-adc.o
|
/linux-5.19.10/drivers/gpio/ |
D | gpio-dln2.c | 88 static int dln2_gpio_pin_cmd(struct dln2_gpio *dln2, int cmd, unsigned pin) in dln2_gpio_pin_cmd() argument 94 return dln2_transfer_tx(dln2->pdev, cmd, &req, sizeof(req)); in dln2_gpio_pin_cmd() 97 static int dln2_gpio_pin_val(struct dln2_gpio *dln2, int cmd, unsigned int pin) in dln2_gpio_pin_val() argument 106 ret = dln2_transfer(dln2->pdev, cmd, &req, sizeof(req), &rsp, &len); in dln2_gpio_pin_val() 115 static int dln2_gpio_pin_get_in_val(struct dln2_gpio *dln2, unsigned int pin) in dln2_gpio_pin_get_in_val() argument 119 ret = dln2_gpio_pin_val(dln2, DLN2_GPIO_PIN_GET_VAL, pin); in dln2_gpio_pin_get_in_val() 125 static int dln2_gpio_pin_get_out_val(struct dln2_gpio *dln2, unsigned int pin) in dln2_gpio_pin_get_out_val() argument 129 ret = dln2_gpio_pin_val(dln2, DLN2_GPIO_PIN_GET_OUT_VAL, pin); in dln2_gpio_pin_get_out_val() 135 static int dln2_gpio_pin_set_out_val(struct dln2_gpio *dln2, in dln2_gpio_pin_set_out_val() argument 143 return dln2_transfer_tx(dln2->pdev, DLN2_GPIO_PIN_SET_OUT_VAL, &req, in dln2_gpio_pin_set_out_val() [all …]
|
D | Makefile | 54 obj-$(CONFIG_GPIO_DLN2) += gpio-dln2.o
|
D | Kconfig | 1229 will be called gpio-dln2.
|
/linux-5.19.10/drivers/mfd/ |
D | dln2.c | 129 struct dln2_dev *dln2 = dev_get_drvdata(pdev->dev.parent); in dln2_register_event_cb() local 142 spin_lock_irqsave(&dln2->event_cb_lock, flags); in dln2_register_event_cb() 144 list_for_each_entry(i, &dln2->event_cb_list, list) { in dln2_register_event_cb() 152 list_add_rcu(&entry->list, &dln2->event_cb_list); in dln2_register_event_cb() 154 spin_unlock_irqrestore(&dln2->event_cb_lock, flags); in dln2_register_event_cb() 165 struct dln2_dev *dln2 = dev_get_drvdata(pdev->dev.parent); in dln2_unregister_event_cb() local 170 spin_lock_irqsave(&dln2->event_cb_lock, flags); in dln2_unregister_event_cb() 172 list_for_each_entry(i, &dln2->event_cb_list, list) { in dln2_unregister_event_cb() 180 spin_unlock_irqrestore(&dln2->event_cb_lock, flags); in dln2_unregister_event_cb() 194 static bool dln2_transfer_complete(struct dln2_dev *dln2, struct urb *urb, in dln2_transfer_complete() argument [all …]
|
D | Makefile | 234 obj-$(CONFIG_MFD_DLN2) += dln2.o
|
/linux-5.19.10/drivers/spi/ |
D | spi-dln2.c | 102 static int dln2_spi_enable(struct dln2_spi *dln2, bool enable) in dln2_spi_enable() argument 111 tx.port = dln2->port; in dln2_spi_enable() 121 return dln2_transfer_tx(dln2->pdev, cmd, &tx, len); in dln2_spi_enable() 132 static int dln2_spi_cs_set(struct dln2_spi *dln2, u8 cs_mask) in dln2_spi_cs_set() argument 139 tx.port = dln2->port; in dln2_spi_cs_set() 148 return dln2_transfer_tx(dln2->pdev, DLN2_SPI_SET_SS, &tx, sizeof(tx)); in dln2_spi_cs_set() 154 static int dln2_spi_cs_set_one(struct dln2_spi *dln2, u8 cs) in dln2_spi_cs_set_one() argument 156 return dln2_spi_cs_set(dln2, BIT(cs)); in dln2_spi_cs_set_one() 162 static int dln2_spi_cs_enable(struct dln2_spi *dln2, u8 cs_mask, bool enable) in dln2_spi_cs_enable() argument 170 tx.port = dln2->port; in dln2_spi_cs_enable() [all …]
|
D | Makefile | 42 obj-$(CONFIG_SPI_DLN2) += spi-dln2.o
|
D | Kconfig | 332 will be called spi-dln2.
|
/linux-5.19.10/drivers/i2c/busses/ |
D | i2c-dln2.c | 53 static int dln2_i2c_enable(struct dln2_i2c *dln2, bool enable) in dln2_i2c_enable() argument 60 tx.port = dln2->port; in dln2_i2c_enable() 67 return dln2_transfer_tx(dln2->pdev, cmd, &tx, sizeof(tx)); in dln2_i2c_enable() 70 static int dln2_i2c_write(struct dln2_i2c *dln2, u8 addr, in dln2_i2c_write() argument 81 } __packed *tx = dln2->buf; in dln2_i2c_write() 86 tx->port = dln2->port; in dln2_i2c_write() 94 ret = dln2_transfer_tx(dln2->pdev, DLN2_I2C_WRITE, tx, len); in dln2_i2c_write() 101 static int dln2_i2c_read(struct dln2_i2c *dln2, u16 addr, u8 *data, in dln2_i2c_read() argument 115 } __packed *rx = dln2->buf; in dln2_i2c_read() 120 tx.port = dln2->port; in dln2_i2c_read() [all …]
|
D | Makefile | 131 obj-$(CONFIG_I2C_DLN2) += i2c-dln2.o
|
D | Kconfig | 1220 will be called i2c-dln2.
|