/linux-master/include/dt-bindings/input/ |
H A D | input.h | 15 #define MATRIX_KEY(row, col, code) \ 16 ((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF))
|
/linux-master/scripts/dtc/include-prefixes/dt-bindings/input/ |
H A D | input.h | 15 #define MATRIX_KEY(row, col, code) \ 16 ((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF))
|
/linux-master/include/linux/input/ |
H A D | matrix_keypad.h | 13 #define KEY(row, col, val) ((((row) & (MATRIX_MAX_ROWS - 1)) << 24) |\ 14 (((col) & (MATRIX_MAX_COLS - 1)) << 16) |\ 21 #define MATRIX_SCAN_CODE(row, col, row_shift) (((row) << (row_shift)) + (col)) 43 * @num_col_gpios: actual number of col gpios used by device
|
/linux-master/arch/mips/loongson64/ |
H A D | numa.c | 53 static int __init compute_node_distance(int row, int col) argument 57 int package_col = col * loongson_sysconf.cores_per_node / 60 if (col == row) 70 int row, col; local 73 for (col = 0; col < MAX_NUMNODES; col++) 74 __node_distances[row][col] = -1; 77 for_each_online_node(col) { 78 __node_distances[row][col] [all...] |
/linux-master/drivers/input/keyboard/ |
H A D | omap-keypad.c | 68 int col = 0; local 75 for (col = 0; col < omap_kp->cols; col++) { 76 omap_writew(~(1 << col) & 0xff, 81 state[col] = ~omap_readw(OMAP1_MPUIO_BASE + 94 int col, row; local 100 for (col = 0; col < omap_kp_data->cols; col [all...] |
H A D | matrix_keypad.c | 50 int col, bool on) 55 gpio_direction_output(pdata->col_gpios[col], level_on); 57 gpio_set_value_cansleep(pdata->col_gpios[col], !level_on); 59 gpio_direction_input(pdata->col_gpios[col]); 64 int col, bool on) 66 __activate_col(pdata, col, on); 75 int col; local 77 for (col = 0; col < pdata->num_col_gpios; col 49 __activate_col(const struct matrix_keypad_platform_data *pdata, int col, bool on) argument 63 activate_col(const struct matrix_keypad_platform_data *pdata, int col, bool on) argument 115 int row, col, code; local [all...] |
H A D | clps711x-keypad.c | 39 int col, row; local 41 for (col = 0; col < CLPS711X_KEYPAD_COL_COUNT; col++) { 45 SYSCON1_KBDSCAN(8 + col)); 59 if (test_bit(col, data->last_state) != state) { 60 int code = MATRIX_SCAN_CODE(row, col, 64 set_bit(col, data->last_state); 68 clear_bit(col, data->last_state);
|
H A D | imx_keypad.c | 82 int col; local 85 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { 86 if ((keypad->cols_en_mask & (1 << col)) == 0) 114 reg_val &= ~(1 << (8 + col)); 124 * 1s in matrix_volatile_state[col] means key pressures 128 matrix_volatile_state[col] = (~reg_val) & keypad->rows_en_mask; 148 int row, col; local 150 for (col 422 int irq, error, i, row, col; local [all...] |
H A D | twl4030_keypad.c | 150 static inline u16 twl4030_col_xlate(struct twl4030_keypad *kp, u8 col) argument 158 if (col == 0xFF) 161 return col & ((1 << kp->n_cols) - 1); 183 u16 col = key_state[i]; local 185 if ((col & check) && hweight16(col) > 1) 188 check |= col; 198 int col, row; local 221 for (col = 0; col < k [all...] |
H A D | locomokbd.c | 87 static inline void locomokbd_activate_col(unsigned long membase, int col) argument 92 nset = 0xFF & ~(1 << col); 97 static inline void locomokbd_reset_col(unsigned long membase, int col) argument 101 nbset = ((0xFF & ~(1 << col)) << 8) + 0xFF; 114 unsigned int row, col, rowd; local 124 for (col = 0; col < KB_COLS; col++) { 126 locomokbd_activate_col(membase, col); 133 scancode = SCANCODE(col, ro [all...] |
H A D | cros_ec_keyb.c | 181 int col, row; local 195 for (col = 0; col < ckdev->cols; col++) { 197 int pos = MATRIX_SCAN_CODE(row, col, ckdev->row_shift); 200 new_state = kb_state[col] & (1 << row); 201 old_state = ckdev->old_kb_state[col] & (1 << row); 205 row, col, new_state); 212 ckdev->old_kb_state[col] = kb_state[col]; 314 int row, col; local 540 unsigned int row, col, scancode; local [all...] |
H A D | mt6779-keypad.c | 37 unsigned int *row, unsigned int *col); 55 unsigned int row, col; local 74 keypad->calc_row_col(key, &row, &col); 76 scancode = MATRIX_SCAN_CODE(row, col, row_shift); 102 unsigned int *col) 105 *col = key % 9; 110 unsigned int *col) 113 *col = (key % 13) / 2; 100 mt6779_keypad_calc_row_col_single(unsigned int key, unsigned int *row, unsigned int *col) argument 108 mt6779_keypad_calc_row_col_double(unsigned int key, unsigned int *row, unsigned int *col) argument
|
H A D | samsung-keypad.c | 82 unsigned int col; local 85 for (col = 0; col < keypad->cols; col++) { 88 val &= ~(1 << col) << 8; 91 val &= ~(1 << col); 98 row_state[col] = ~val & ((1 << keypad->rows) - 1); 113 unsigned int col, row; local 115 for (col = 0; col < keypa 287 u32 row, col, key_code; local [all...] |
H A D | nspire-keypad.c | 56 int row, col; local 78 for (col = 0; col < KEYPAD_BITMASK_COLS; col++) { 79 if (!(changed & (1U << col))) 82 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); 85 bits & (1U << col));
|
H A D | stmpe-keypad.c | 179 int col = data & STMPE_KPC_DATA_COL; local 180 int code = MATRIX_SCAN_CODE(row, col, STMPE_KEYPAD_ROW_SHIFT); 317 int row, col; local 320 for (col = 0; col < used_cols; col++) { 321 int code = MATRIX_SCAN_CODE(row, col, 325 keypad->cols |= 1 << col;
|
/linux-master/drivers/media/usb/pwc/ |
H A D | pwc-uncompress.c | 23 int n, line, col; local 64 for (col = 0; col < pdev->width; col += 4) {
|
/linux-master/drivers/ras/amd/atl/ |
H A D | umc.c | 172 u16 i, col, row, bank, pc, sid, temp; local 174 col = FIELD_GET(MI300_UMC_MCA_COL, addr); 185 temp = bitwise_xor_bits(col & addr_hash.bank[i].col_xor); 195 temp = bitwise_xor_bits(col & addr_hash.pc.col_xor); 208 temp = col & 0x3; 215 temp = (col >> 2) & 0x3; 227 temp = (col >> 4) & 0x1; 237 pr_debug("Bank=%u Row=%u Column=%u PC=%u SID=%u", bank, row, col, pc, sid); 259 u8 col; local 261 for (col [all...] |
/linux-master/drivers/soc/samsung/ |
H A D | exynos-asv.h | 54 unsigned int row, unsigned int col) 56 return table->buf[row * (table->num_cols) + col]; 53 __asv_get_table_entry(const struct exynos_asv_table *table, unsigned int row, unsigned int col) argument
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | iters.c | 400 int sum, row, col; local 405 bpf_for( col, 0, ARRAY_SIZE(arr2d[0])) { 406 arr2d[row][col] = row * col; 415 bpf_for(col, 0, ARRAY_SIZE(arr2d[0])) { 416 arr2d_col_sums[col] = 0; 421 bpf_for(col, 0, ARRAY_SIZE(arr2d[0])) { 422 sum += arr2d[row][col]; 423 arr2d_row_sums[row] += arr2d[row][col]; 424 arr2d_col_sums[col] 468 int col; local 477 int sum = 0, col; local 492 int sum, row, col; local [all...] |
/linux-master/drivers/tty/vt/ |
H A D | vc_screen.c | 251 unsigned int nr, row, col, maxcol = vc->vc_cols; local 260 col = pos % maxcol; 261 nr = maxcol - col; 265 vc_uniscr_copy_line(vc, con_buf, viewed, row, col, nr); 269 col = 0; 280 unsigned int col, maxcol = vc->vc_cols; local 283 col = pos % maxcol; 284 pos += maxcol - col; 288 if (++col == maxcol) { 290 col 301 unsigned int col, maxcol = vc->vc_cols; local 482 unsigned int col, maxcol = vc->vc_cols; local 522 unsigned int col, maxcol = vc->vc_cols; local [all...] |
/linux-master/arch/mips/sgi-ip27/ |
H A D | ip27-memory.c | 162 nasid_t row, col; local 165 for (col = 0; col < MAX_NUMNODES; col++) 166 __node_distances[row][col] = -1; 169 for_each_online_node(col) { 170 __node_distances[row][col] = 171 compute_node_distance(row, col); 183 nasid_t row, col; local 188 for_each_online_node(col) [all...] |
/linux-master/arch/x86/boot/ |
H A D | video.c | 145 int col; local 155 for (col = 0; col < modes_per_line; col++) 159 col = 0; 179 col++; 180 if (col >= modes_per_line) { 182 col = 0; 193 if (col)
|
/linux-master/sound/pci/cs46xx/ |
H A D | dsp_spos.c | 549 int i, j, col; local 557 for (col = 0,j = 0;j < ins->tasks[i].size; j++,col++) { 559 if (col == 4) { 561 col = 0; 610 unsigned int i, col = 0; local 614 for (i = 0;i < DSP_PARAMETER_BYTE_SIZE; i += sizeof(u32),col ++) { 615 if (col == 4) { 617 col = 0; 622 col 638 int i,col = 0; local [all...] |
/linux-master/scripts/kconfig/ |
H A D | gconf.c | 570 GtkTreeViewColumn *col; local 573 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NAME); 574 if (col) 575 gtk_tree_view_column_set_visible(col, show_name); 581 GtkTreeViewColumn *col; local 584 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NO); 585 if (col) 586 gtk_tree_view_column_set_visible(col, show_range); 587 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_MOD); 588 if (col) 599 GtkTreeViewColumn *col; local 799 change_sym_value(struct menu *menu, gint col) argument 860 GtkTreeViewColumn *col; local 881 gint col; local 938 gint col; local [all...] |
/linux-master/drivers/input/ |
H A D | matrix-keymap.c | 28 unsigned int col = KEY_COL(key); local 31 if (row >= rows || col >= cols) { 33 "%s: invalid keymap entry 0x%x (row: %d, col: %d, rows: %d, cols: %d)\n", 34 __func__, key, row, col, rows, cols); 38 keymap[MATRIX_SCAN_CODE(row, col, row_shift)] = code; 136 * keyboard driver that uses row and col as indices.
|