Lines Matching full:rows
23 unsigned int rows, unsigned int cols, in matrix_keypad_map_key() argument
31 if (row >= rows || col >= cols) { in matrix_keypad_map_key()
33 "%s: invalid keymap entry 0x%x (row: %d, col: %d, rows: %d, cols: %d)\n", in matrix_keypad_map_key()
34 __func__, key, row, col, rows, cols); in matrix_keypad_map_key()
48 * @rows: Returns number of matrix rows
53 unsigned int *rows, unsigned int *cols) in matrix_keypad_parse_properties() argument
55 *rows = *cols = 0; in matrix_keypad_parse_properties()
57 device_property_read_u32(dev, "keypad,num-rows", rows); in matrix_keypad_parse_properties()
60 if (!*rows || !*cols) { in matrix_keypad_parse_properties()
61 dev_err(dev, "number of keypad rows/columns not specified\n"); in matrix_keypad_parse_properties()
70 unsigned int rows, unsigned int cols, in matrix_keypad_parse_keymap() argument
75 unsigned int max_keys = rows << row_shift; in matrix_keypad_parse_keymap()
109 if (!matrix_keypad_map_key(input_dev, rows, cols, in matrix_keypad_parse_keymap()
128 * @rows: number of rows in target keymap array
152 unsigned int rows, unsigned int cols, in matrix_keypad_build_keymap() argument
157 size_t max_keys = rows << row_shift; in matrix_keypad_build_keymap()
185 if (!matrix_keypad_map_key(input_dev, rows, cols, in matrix_keypad_build_keymap()
190 error = matrix_keypad_parse_keymap(keymap_name, rows, cols, in matrix_keypad_build_keymap()