Lines Matching refs:line_assignment
87 struct sam0_eic_line_assignment *line_assignment = in sam0_eic_isr() local
90 &dev_data->ports[line_assignment->port]; in sam0_eic_isr()
92 port_data->cb(BIT(line_assignment->pin), port_data->data); in sam0_eic_isr()
102 struct sam0_eic_line_assignment *line_assignment; in sam0_eic_acquire() local
124 line_assignment = &dev_data->lines[line_index]; in sam0_eic_acquire()
127 if (line_assignment->enabled) { in sam0_eic_acquire()
128 if (line_assignment->port != port || in sam0_eic_acquire()
129 line_assignment->pin != pin) { in sam0_eic_acquire()
138 line_assignment->pin = pin; in sam0_eic_acquire()
139 line_assignment->port = port; in sam0_eic_acquire()
140 line_assignment->enabled = 1; in sam0_eic_acquire()
191 struct sam0_eic_line_assignment *line_assignment = in sam0_eic_check_ownership() local
194 if (!line_assignment->enabled) { in sam0_eic_check_ownership()
198 if (line_assignment->port != port || in sam0_eic_check_ownership()
199 line_assignment->pin != pin) { in sam0_eic_check_ownership()
301 struct sam0_eic_line_assignment *line_assignment; in sam0_eic_interrupt_pending() local
306 line_assignment = &dev_data->lines[line_index]; in sam0_eic_interrupt_pending()
308 if (!line_assignment->enabled) { in sam0_eic_interrupt_pending()
312 if (line_assignment->port != port) { in sam0_eic_interrupt_pending()
320 mask |= BIT(line_assignment->pin); in sam0_eic_interrupt_pending()