Lines Matching refs:keymap
26 unsigned short *keymap = input_dev->keycode;
33 "%s: invalid keymap entry 0x%x (row: %d, col: %d, rows: %d, cols: %d)\n",
38 keymap[MATRIX_SCAN_CODE(row, col, row_shift)] = code;
82 propname = "linux,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,
164 if (!keymap) {
165 keymap = devm_kcalloc(input_dev->dev.parent,
166 max_keys, sizeof(*keymap),
168 if (!keymap) {
170 "Unable to allocate memory for keymap");
175 input_dev->keycode = keymap;
176 input_dev->keycodesize = sizeof(*keymap);
183 unsigned int key = keymap_data->keymap[i];