Home
last modified time | relevance | path

Searched refs:thc_device (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/hid/intel-thc-hid/intel-thc/
H A Dintel-thc-dev.h72 struct thc_device { struct
99 struct thc_device *thc_dev_init(struct device *device, void __iomem *mem_addr); argument
100 int thc_tic_pio_read(struct thc_device *dev, const u32 address,
102 int thc_tic_pio_write(struct thc_device *dev, const u32 address,
104 int thc_tic_pio_write_and_read(struct thc_device *dev, const u32 address,
107 void thc_interrupt_config(struct thc_device *dev);
108 void thc_int_trigger_type_select(struct thc_device *dev, bool edge_trigger);
109 void thc_interrupt_enable(struct thc_device *dev, bool int_enable);
110 void thc_set_pio_interrupt_support(struct thc_device *dev, bool supported);
111 int thc_interrupt_quiesce(const struct thc_device *dev, bool int_quiesce);
[all …]
H A Dintel-thc-dma.h139 struct thc_device;
141 int thc_dma_set_max_packet_sizes(struct thc_device *dev,
144 int thc_dma_allocate(struct thc_device *dev);
145 int thc_dma_configure(struct thc_device *dev);
146 void thc_dma_unconfigure(struct thc_device *dev);
147 void thc_dma_release(struct thc_device *dev);
148 int thc_rxdma_read(struct thc_device *dev, enum thc_dma_channel dma_channel,
150 int thc_swdma_read(struct thc_device *dev, void *write_buff, size_t write_len,
152 int thc_dma_write(struct thc_device *dev, void *buffer, size_t buf_len);
154 struct thc_dma_context *thc_dma_init(struct thc_device *dev);
H A Dintel-thc-dma.c14 static void dma_set_prd_base_addr(struct thc_device *dev, u64 physical_addr, in dma_set_prd_base_addr()
29 static void dma_set_start_bit(struct thc_device *dev, in dma_set_start_bit()
97 static void dma_set_prd_control(struct thc_device *dev, u8 entry_count, u8 cb_depth, in dma_set_prd_control()
117 static void dma_clear_prd_control(struct thc_device *dev, in dma_clear_prd_control()
133 static u8 dma_get_read_pointer(struct thc_device *dev, in dma_get_read_pointer()
147 static u8 dma_get_write_pointer(struct thc_device *dev, in dma_get_write_pointer()
161 static void dma_set_write_pointer(struct thc_device *dev, u8 value, in dma_set_write_pointer()
171 static size_t dma_get_max_packet_size(struct thc_device *dev, in dma_get_max_packet_size()
177 static void dma_set_max_packet_size(struct thc_device *dev, size_t size, in dma_set_max_packet_size()
186 static void thc_copy_one_sgl_to_prd(struct thc_device *dev, in thc_copy_one_sgl_to_prd()
[all …]
H A Dintel-thc-dev.c15 struct thc_device *thc_ctx = context; in thc_regmap_read()
25 struct thc_device *thc_ctx = context; in thc_regmap_write()
62 static void thc_clear_state(const struct thc_device *dev) in thc_clear_state()
195 struct thc_device *thc_dev_init(struct device *device, void __iomem *mem_addr) in thc_dev_init()
197 struct thc_device *thc_dev; in thc_dev_init()
229 static int prepare_pio(const struct thc_device *dev, const u8 pio_op, in prepare_pio()
267 static void pio_start(const struct thc_device *dev, in pio_start()
281 static int pio_complete(const struct thc_device *dev, in pio_complete()
305 static int pio_wait(const struct thc_device *dev) in pio_wait()
331 int thc_tic_pio_read(struct thc_device *dev, const u32 address, in thc_tic_pio_read()
[all …]
H A Dintel-thc-wot.h21 struct thc_device;
23 void thc_wot_config(struct thc_device *thc_dev, const struct acpi_gpio_mapping *gpio_map);
24 void thc_wot_unconfig(struct thc_device *thc_dev);
H A Dintel-thc-wot.c22 void thc_wot_config(struct thc_device *thc_dev, const struct acpi_gpio_mapping *gpio_map) in thc_wot_config()
75 void thc_wot_unconfig(struct thc_device *thc_dev) in thc_wot_unconfig()
/linux/drivers/hid/intel-thc-hid/intel-quickspi/
H A Dquickspi-dev.h81 struct thc_device;
131 struct thc_device *thc_hw;
/linux/drivers/hid/intel-thc-hid/intel-quicki2c/
H A Dquicki2c-dev.h158 struct thc_device;
194 struct thc_device *thc_hw;