Home
last modified time | relevance | path

Searched refs:context (Results 1 – 3 of 3) sorted by relevance

/hal_intel-3.6.0/bsp_sedi/drivers/spi/
Dsedi_spi_dw_apb.c228 struct spi_context *context = &spi_contexts[spi_device]; in lld_spi_default_config() local
229 sedi_spi_regs_t *spi = context->base; in lld_spi_default_config()
259 context->tx_watermark = watermark + 1U; in lld_spi_default_config()
260 context->rx_watermark = watermark + 1U; in lld_spi_default_config()
261 context->prescale = prescale; in lld_spi_default_config()
262 context->frame_size = 1U; in lld_spi_default_config()
263 context->is_lsb = false; in lld_spi_default_config()
321 struct spi_context *context = &spi_contexts[spi_device]; in lld_spi_set_transfer_mode() local
322 sedi_spi_regs_t *spi = context->base; in lld_spi_set_transfer_mode()
327 context->transfer_mode = SEDI_RBFV(SPI, CTRLR0, TMOD, RX_ONLY); in lld_spi_set_transfer_mode()
[all …]
/hal_intel-3.6.0/bsp_sedi/drivers/i2c/
Dsedi_i2c_dw_apb_200a.c363 static void dw_i2c_abort(struct i2c_context *context) in dw_i2c_abort() argument
365 sedi_i2c_regs_t *i2c = (void *)context->base; in dw_i2c_abort()
386 dw_i2c_irq_config(context->base, 0); in dw_i2c_abort()
388 dw_i2c_config_txfifo(context->base, 0); in dw_i2c_abort()
389 dw_i2c_config_rxfifo(context->base, 0); in dw_i2c_abort()
392 dw_i2c_clear_interrupt(context->base); in dw_i2c_abort()
424 struct i2c_context *context = &contexts[i2c_device]; in i2c_ask_data() local
425 sedi_i2c_regs_t *i2c = (sedi_i2c_regs_t *)(context->base); in i2c_ask_data()
428 uint32_t rx_pending = context->rx_cmd_index - context->buf_index; in i2c_ask_data()
429 uint32_t size = context->buf_size - context->rx_cmd_index; in i2c_ask_data()
[all …]
/hal_intel-3.6.0/bsp_sedi/drivers/gpio/
Dsedi_gpio.c118 gpio_context_t *context = &(gpio_context[gpio_device]); in gpio_write_pin_port() local
133 context->outpin_state[port] |= pin_bit; in gpio_write_pin_port()
136 context->outpin_state[port] &= (~pin_bit); in gpio_write_pin_port()
168 gpio_context_t *context = &(gpio_context[gpio_device]); in gpio_isr() local
182 if ((context->cb_event) && (gisr != 0)) { in gpio_isr()
183 (context->cb_event)(gisr, i, context->callback_param); in gpio_isr()
236 gpio_context_t *context = &(gpio_context[gpio_device]); in sedi_gpio_uninit() local
240 context->cb_event = NULL; in sedi_gpio_uninit()
241 context->callback_param = NULL; in sedi_gpio_uninit()
242 context->flag = 0; in sedi_gpio_uninit()
[all …]