Lines Matching refs:thc_device
14 struct thc_device *thc_ctx = context; in thc_regmap_read()
24 struct thc_device *thc_ctx = context; in thc_regmap_write()
61 static void thc_clear_state(const struct thc_device *dev) in thc_clear_state()
194 struct thc_device *thc_dev_init(struct device *device, void __iomem *mem_addr) in thc_dev_init()
196 struct thc_device *thc_dev; in thc_dev_init()
228 static int prepare_pio(const struct thc_device *dev, const u8 pio_op, in prepare_pio()
266 static void pio_start(const struct thc_device *dev, in pio_start()
280 static int pio_complete(const struct thc_device *dev, in pio_complete()
304 static int pio_wait(const struct thc_device *dev) in pio_wait()
330 int thc_tic_pio_read(struct thc_device *dev, const u32 address, in thc_tic_pio_read()
376 int thc_tic_pio_write(struct thc_device *dev, const u32 address, in thc_tic_pio_write()
425 int thc_tic_pio_write_and_read(struct thc_device *dev, const u32 address, in thc_tic_pio_write_and_read()
474 void thc_interrupt_config(struct thc_device *dev) in thc_interrupt_config()
609 void thc_int_trigger_type_select(struct thc_device *dev, bool edge_trigger) in thc_int_trigger_type_select()
623 void thc_interrupt_enable(struct thc_device *dev, bool int_enable) in thc_interrupt_enable()
639 int thc_interrupt_quiesce(const struct thc_device *dev, bool int_quiesce) in thc_interrupt_quiesce()
686 void thc_set_pio_interrupt_support(struct thc_device *dev, bool supported) in thc_set_pio_interrupt_support()
699 void thc_ltr_config(struct thc_device *dev, u32 active_ltr_us, u32 lp_ltr_us) in thc_ltr_config()
766 void thc_change_ltr_mode(struct thc_device *dev, u32 ltr_mode) in thc_change_ltr_mode()
790 void thc_ltr_unconfig(struct thc_device *dev) in thc_ltr_unconfig()
813 u32 thc_int_cause_read(struct thc_device *dev) in thc_int_cause_read()
824 static void thc_print_txn_error_cause(const struct thc_device *dev) in thc_print_txn_error_cause()
871 int thc_interrupt_handler(struct thc_device *dev) in thc_interrupt_handler()
1073 int thc_port_select(struct thc_device *dev, enum thc_port_type port_type) in thc_port_select()
1123 static u8 thc_get_spi_freq_div_val(struct thc_device *dev, u32 spi_freq_val) in thc_get_spi_freq_div_val()
1178 int thc_spi_read_config(struct thc_device *dev, u32 spi_freq_val, in thc_spi_read_config()
1230 int thc_spi_write_config(struct thc_device *dev, u32 spi_freq_val, in thc_spi_write_config()
1280 void thc_spi_input_output_address_config(struct thc_device *dev, u32 input_hdr_addr, in thc_spi_input_output_address_config()
1294 static int thc_i2c_subip_pio_read(struct thc_device *dev, const u32 address, in thc_i2c_subip_pio_read()
1332 static int thc_i2c_subip_pio_write(struct thc_device *dev, const u32 address, in thc_i2c_subip_pio_write()
1377 static int thc_i2c_subip_set_speed(struct thc_device *dev, const u32 speed, in thc_i2c_subip_set_speed()
1452 int thc_i2c_subip_init(struct thc_device *dev, const u32 target_address, in thc_i2c_subip_init()
1536 int thc_i2c_subip_regs_save(struct thc_device *dev) in thc_i2c_subip_regs_save()
1559 int thc_i2c_subip_regs_restore(struct thc_device *dev) in thc_i2c_subip_regs_restore()
1584 int thc_i2c_set_rx_max_size(struct thc_device *dev, u32 max_rx_size) in thc_i2c_set_rx_max_size()
1622 int thc_i2c_rx_max_size_enable(struct thc_device *dev, bool enable) in thc_i2c_rx_max_size_enable()
1653 int thc_i2c_set_rx_int_delay(struct thc_device *dev, u32 delay_us) in thc_i2c_set_rx_int_delay()
1692 int thc_i2c_rx_int_delay_enable(struct thc_device *dev, bool enable) in thc_i2c_rx_int_delay_enable()