Home
last modified time | relevance | path

Searched refs:dln2 (Results 1 – 16 of 16) sorted by relevance

/openbmc/linux/drivers/iio/adc/
H A Ddln2-adc.c83 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 …]
H A DMakefile43 obj-$(CONFIG_DLN2_ADC) += dln2-adc.o
/openbmc/linux/drivers/mfd/
H A Ddln2.c123 struct dln2_dev *dln2 = dev_get_drvdata(pdev->dev.parent); in dln2_register_event_cb() local
136 spin_lock_irqsave(&dln2->event_cb_lock, flags); in dln2_register_event_cb()
138 list_for_each_entry(i, &dln2->event_cb_list, list) { in dln2_register_event_cb()
146 list_add_rcu(&entry->list, &dln2->event_cb_list); in dln2_register_event_cb()
148 spin_unlock_irqrestore(&dln2->event_cb_lock, flags); in dln2_register_event_cb()
159 struct dln2_dev *dln2 = dev_get_drvdata(pdev->dev.parent); in dln2_unregister_event_cb() local
164 spin_lock_irqsave(&dln2->event_cb_lock, flags); in dln2_unregister_event_cb()
166 list_for_each_entry(i, &dln2->event_cb_list, list) { in dln2_unregister_event_cb()
174 spin_unlock_irqrestore(&dln2->event_cb_lock, flags); in dln2_unregister_event_cb()
188 static bool dln2_transfer_complete(struct dln2_dev *dln2, struct urb *urb, in dln2_transfer_complete() argument
[all …]
H A DMakefile242 obj-$(CONFIG_MFD_DLN2) += dln2.o
/openbmc/linux/drivers/gpio/
H A Dgpio-dln2.c88 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 …]
H A DMakefile54 obj-$(CONFIG_GPIO_DLN2) += gpio-dln2.o
H A DKconfig1282 will be called gpio-dln2.
/openbmc/linux/drivers/spi/
H A Dspi-dln2.c102 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 …]
H A DMakefile45 obj-$(CONFIG_SPI_DLN2) += spi-dln2.o
H A DKconfig354 will be called spi-dln2.
/openbmc/linux/drivers/i2c/busses/
H A Di2c-dln2.c53 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 …]
H A DMakefile133 obj-$(CONFIG_I2C_DLN2) += i2c-dln2.o
H A DKconfig1268 will be called i2c-dln2.
/openbmc/linux/
H A Dopengrok2.0.log[all...]
H A Dopengrok1.0.log[all...]
H A Dopengrok0.0.log[all...]