Home
last modified time | relevance | path

Searched refs:col_size (Results 1 – 11 of 11) sorted by relevance

/Zephyr-latest/subsys/input/
Dinput_keymap.c23 uint8_t col_size; member
57 data->col >= cfg->col_size) { in keymap_cb()
62 offset = (data->row * cfg->col_size) + data->col; in keymap_cb()
86 #define KEYMAP_ENTRY_OFFSET(keymap_entry, col_size) \ argument
87 (MATRIX_ROW(keymap_entry) * col_size + MATRIX_COL(keymap_entry))
95 DT_PROP(node_id, col_size), "invalid col");
98 [KEYMAP_ENTRY_OFFSET(DT_PROP_BY_IDX(node_id, prop, idx), DT_PROP(node_id, col_size))] = \
116 .col_size = DT_INST_PROP(inst, col_size), \
Dinput_utils.c143 for (int i = 0; i < cfg->col_size; i++) { in kbd_matrix_state_log_entry()
144 char *sep = (i + 1) < cfg->col_size ? " " : ""; in kbd_matrix_state_log_entry()
202 if (col > (cfg->col_size - 1)) { in kbd_matrix_state_log()
/Zephyr-latest/include/zephyr/input/
Dinput_kbd_matrix.h114 uint8_t col_size; member
161 node_id, DT_PROP(node_id, row_size), DT_PROP(node_id, col_size))
171 #define INPUT_KBD_MATRIX_DT_INST_DEFINE_ROW_COL(inst, row_size, col_size) \ argument
172 INPUT_KBD_MATRIX_DT_DEFINE_ROW_COL(DT_DRV_INST(inst), row_size, col_size)
194 .col_size = _col_size, \
223 node_id, api, DT_PROP(node_id, row_size), DT_PROP(node_id, col_size))
234 #define INPUT_KBD_MATRIX_DT_INST_COMMON_CONFIG_INIT_ROW_COL(inst, api, row_size, col_size) \ argument
235 INPUT_KBD_MATRIX_DT_COMMON_CONFIG_INIT_ROW_COL(DT_DRV_INST(inst), api, row_size, col_size)
/Zephyr-latest/drivers/input/
Dinput_ite_it8xxx2_kbd.c64 const uint32_t kso_mask = BIT_MASK(common->col_size) & ~config->kso_ignore_mask; in it8xxx2_kbd_drive_column()
91 if (common->col_size > 16) { in it8xxx2_kbd_drive_column()
155 const uint32_t kso_mask = BIT_MASK(common->col_size) & ~config->kso_ignore_mask; in it8xxx2_kbd_init()
163 if (common->col_size > 16) { in it8xxx2_kbd_init()
193 if (common->col_size > 16) { in it8xxx2_kbd_init()
268 BUILD_ASSERT(IN_RANGE(DT_INST_PROP(0, col_size), 1, 18), "invalid col-size");
Dinput_kbd_matrix.c48 for (int c = 0; c < cfg->col_size; c++) { in input_kbd_matrix_ghosting()
53 for (int c_next = c + 1; c_next < cfg->col_size; c_next++) { in input_kbd_matrix_ghosting()
104 for (int col = 0; col < cfg->col_size; col++) { in input_kbd_matrix_scan()
152 for (int c = 0; c < cfg->col_size; c++) { in input_kbd_matrix_update_state()
176 for (int c = 0; c < cfg->col_size; c++) { in input_kbd_matrix_update_state()
238 for (int c = 0; c < cfg->col_size; c++) { in input_kbd_matrix_check_key_events()
271 for (uint8_t c = 0; c < cfg->col_size; c++) { in input_kbd_matrix_is_unstable()
407 if (row >= cfg->row_size || col >= cfg->col_size) { in input_kbd_matrix_actual_key_mask_set()
Dinput_npcx_kbd.c80 if (col >= common->col_size) { in npcx_kbd_drive_column()
90 mask = ~BIT_MASK(common->col_size); in npcx_kbd_drive_column()
242 BUILD_ASSERT(IN_RANGE(DT_INST_PROP(0, col_size), 1, 18), "invalid col-size");
Dinput_gpio_kbd_matrix.c55 state = BIT_MASK(common->col_size); in gpio_kbd_matrix_drive_column()
65 gpio_mask = BIT_MASK(common->col_size) << gpio0->pin; in gpio_kbd_matrix_drive_column()
73 for (int i = 0; i < common->col_size; i++) { in gpio_kbd_matrix_drive_column()
196 for (i = 0; i < common->col_size; i++) { in gpio_kbd_matrix_init()
255 cfg->col_gpio, common->col_size); in gpio_kbd_matrix_init()
Dinput_ite_it8801_kbd.c36 uint8_t kso_mapping[DT_INST_PROP(0, col_size)];
226 BUILD_ASSERT(IN_RANGE(DT_INST_PROP(inst, col_size), 1, 19), "invalid col-size");
Dinput_xec_kbd.c254 BUILD_ASSERT(IN_RANGE(DT_INST_PROP(0, col_size), 1, 18), "invalid col-size");
/Zephyr-latest/tests/subsys/input/kbd_matrix_state_dump/src/
Dmain.c16 .col_size = 4,
/Zephyr-latest/tests/drivers/input/kbd_matrix/src/
Dmain.c67 BUILD_ASSERT(DT_PROP(TEST_KBD_SCAN_NODE, col_size) == 3);
384 .col_size = 4, in ZTEST()