Home
last modified time | relevance | path

Searched refs:mpsse_context (Results 1 – 5 of 5) sorted by relevance

/system/tpm/trunks/ftdi/
Dmpsse.h152 struct mpsse_context { struct
178 struct mpsse_context* MPSSE(enum modes mode, int freq, int endianess); argument
179 struct mpsse_context* Open(int vid,
187 struct mpsse_context* OpenIndex(int vid,
196 void Close(struct mpsse_context* mpsse);
197 const char* ErrorString(struct mpsse_context* mpsse);
198 int SetMode(struct mpsse_context* mpsse, int endianess);
199 void EnableBitmode(struct mpsse_context* mpsse, int tf);
200 int SetClock(struct mpsse_context* mpsse, uint32_t freq);
201 int GetClock(struct mpsse_context* mpsse);
[all …]
Dsupport.h27 int raw_write(struct mpsse_context* mpsse, uint8_t* buf, int size);
28 int raw_read(struct mpsse_context* mpsse, uint8_t* buf, int size);
29 void set_timeouts(struct mpsse_context* mpsse, int timeout);
32 uint8_t* build_block_buffer(struct mpsse_context* mpsse,
37 int set_bits_high(struct mpsse_context* mpsse, int port);
38 int set_bits_low(struct mpsse_context* mpsse, int port);
39 int gpio_write(struct mpsse_context* mpsse, int pin, int direction);
40 int is_valid_context(struct mpsse_context* mpsse);
Dmpsse.c58 struct mpsse_context* MPSSE(enum modes mode, int freq, int endianess) { in MPSSE()
60 struct mpsse_context* mpsse = NULL; in MPSSE()
88 struct mpsse_context* Open(int vid, in Open()
117 struct mpsse_context* OpenIndex(int vid, in OpenIndex()
127 struct mpsse_context* mpsse = NULL; in OpenIndex()
129 mpsse = malloc(sizeof(struct mpsse_context)); in OpenIndex()
133 memset(mpsse, 0, sizeof(struct mpsse_context)); in OpenIndex()
216 void Close(struct mpsse_context* mpsse) { in Close()
234 void EnableBitmode(struct mpsse_context* mpsse, int tf) { in EnableBitmode()
258 int SetMode(struct mpsse_context* mpsse, int endianess) { in SetMode()
[all …]
Dsupport.c31 int raw_write(struct mpsse_context* mpsse, uint8_t* buf, int size) {
44 int raw_read(struct mpsse_context* mpsse, uint8_t* buf, int size) { in raw_read()
71 void set_timeouts(struct mpsse_context* mpsse, int timeout) { in set_timeouts()
91 uint8_t* build_block_buffer(struct mpsse_context* mpsse, in build_block_buffer()
205 int set_bits_low(struct mpsse_context* mpsse, int port) { in set_bits_low()
216 int set_bits_high(struct mpsse_context* mpsse, int port) { in set_bits_high()
227 int gpio_write(struct mpsse_context* mpsse, int pin, int direction) { in gpio_write()
276 int is_valid_context(struct mpsse_context* mpsse) { in is_valid_context()
/system/tpm/trunks/
Dtrunks_ftdi_spi.h47 struct mpsse_context* mpsse_;