Lines Matching refs:uint
23 void pio_sm_claim(PIO pio, uint sm) { in pio_sm_claim()
25 uint which = pio_get_index(pio); in pio_sm_claim()
33 void pio_claim_sm_mask(PIO pio, uint sm_mask) { in pio_claim_sm_mask()
34 for(uint i = 0; sm_mask; i++, sm_mask >>= 1u) { in pio_claim_sm_mask()
39 void pio_sm_unclaim(PIO pio, uint sm) { in pio_sm_unclaim()
41 uint which = pio_get_index(pio); in pio_sm_unclaim()
47 uint which = pio_get_index(pio); in pio_claim_unused_sm()
48 uint base = which * NUM_PIO_STATE_MACHINES; in pio_claim_unused_sm()
54 bool pio_sm_is_claimed(PIO pio, uint sm) { in pio_sm_is_claimed()
56 uint which = pio_get_index(pio); in pio_sm_is_claimed()
73 if (!(used_mask & (program_mask << (uint) i))) { in _pio_find_offset_for_program()
88 static bool _pio_can_add_program_at_offset(PIO pio, const pio_program_t *program, uint offset) { in _pio_can_add_program_at_offset()
91 if (program->origin >= 0 && (uint)program->origin != offset) return false; in _pio_can_add_program_at_offset()
97 bool pio_can_add_program_at_offset(PIO pio, const pio_program_t *program, uint offset) { in pio_can_add_program_at_offset()
104 static void _pio_add_program_at_offset(PIO pio, const pio_program_t *program, uint offset) { in _pio_add_program_at_offset()
108 for (uint i = 0; i < program->length; ++i) { in _pio_add_program_at_offset()
117 uint pio_add_program(PIO pio, const pio_program_t *program) { in pio_add_program()
123 _pio_add_program_at_offset(pio, program, (uint)offset); in pio_add_program()
125 return (uint)offset; in pio_add_program()
128 void pio_add_program_at_offset(PIO pio, const pio_program_t *program, uint offset) { in pio_add_program_at_offset()
134 void pio_remove_program(PIO pio, const pio_program_t *program, uint loaded_offset) { in pio_remove_program()
146 for(uint i=0;i<PIO_INSTRUCTION_COUNT;i++) { in pio_clear_instruction_memory()
156 void pio_sm_set_pins(PIO pio, uint sm, uint32_t pins) { in pio_sm_set_pins()
162 uint remaining = 32; in pio_sm_set_pins()
163 uint base = 0; in pio_sm_set_pins()
165 uint decrement = remaining > 5 ? 5 : remaining; in pio_sm_set_pins()
178 void pio_sm_set_pins_with_mask(PIO pio, uint sm, uint32_t pinvals, uint32_t pin_mask) { in pio_sm_set_pins_with_mask()
185 uint base = (uint)__builtin_ctz(pin_mask); in pio_sm_set_pins_with_mask()
196 void pio_sm_set_pindirs_with_mask(PIO pio, uint sm, uint32_t pindirs, uint32_t pin_mask) { in pio_sm_set_pindirs_with_mask()
203 uint base = (uint)__builtin_ctz(pin_mask); in pio_sm_set_pindirs_with_mask()
214 void pio_sm_set_consecutive_pindirs(PIO pio, uint sm, uint pin, uint count, bool is_out) { in pio_sm_set_consecutive_pindirs()
221 uint pindir_val = is_out ? 0x1f : 0; in pio_sm_set_consecutive_pindirs()
234 void pio_sm_init(PIO pio, uint sm, uint initial_pc, const pio_sm_config *config) { in pio_sm_init()
262 void pio_sm_drain_tx_fifo(PIO pio, uint sm) { in pio_sm_drain_tx_fifo()
263 …uint instr = (pio->sm[sm].shiftctrl & PIO_SM0_SHIFTCTRL_AUTOPULL_BITS) ? pio_encode_out(pio_null, … in pio_sm_drain_tx_fifo()