Searched refs:context (Results 1 – 3 of 3) sorted by relevance
228 struct spi_context *context = &spi_contexts[spi_device]; in lld_spi_default_config() local229 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() local322 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 …]
363 static void dw_i2c_abort(struct i2c_context *context) in dw_i2c_abort() argument365 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() local425 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 …]
118 gpio_context_t *context = &(gpio_context[gpio_device]); in gpio_write_pin_port() local133 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() local182 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() local240 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 …]