Lines Matching full:keymap

26 	unsigned short *keymap = input_dev->keycode;  in matrix_keypad_map_key()  local
33 "%s: invalid keymap entry 0x%x (row: %d, col: %d, rows: %d, cols: %d)\n", in matrix_keypad_map_key()
38 keymap[MATRIX_SCAN_CODE(row, col, row_shift)] = code; in matrix_keypad_map_key()
82 propname = "linux,keymap"; in matrix_keypad_parse_keymap()
124 * matrix_keypad_build_keymap - convert platform keymap into matrix keymap
125 * @keymap_data: keymap supplied by the platform code
126 * @keymap_name: name of device tree property containing keymap (if device
128 * @rows: number of rows in target keymap array
129 * @cols: number of cols in target keymap array
130 * @keymap: expanded version of keymap that is suitable for use by
132 * @input_dev: input devices for which we are setting up the keymap
134 * This function converts platform keymap (encoded with KEY() macro) into
139 * it will attempt load the keymap from property specified by @keymap_name
140 * argument (or "linux,keymap" if @keymap_name is %NULL).
142 * If @keymap is %NULL the function will automatically allocate managed
143 * block of memory to store the keymap. This memory will be associated with
153 unsigned short *keymap, in matrix_keypad_build_keymap() argument
164 if (!keymap) { in matrix_keypad_build_keymap()
165 keymap = devm_kcalloc(input_dev->dev.parent, in matrix_keypad_build_keymap()
166 max_keys, sizeof(*keymap), in matrix_keypad_build_keymap()
168 if (!keymap) { in matrix_keypad_build_keymap()
170 "Unable to allocate memory for keymap"); in matrix_keypad_build_keymap()
175 input_dev->keycode = keymap; in matrix_keypad_build_keymap()
176 input_dev->keycodesize = sizeof(*keymap); in matrix_keypad_build_keymap()
183 unsigned int key = keymap_data->keymap[i]; in matrix_keypad_build_keymap()