| /linux/drivers/input/keyboard/ |
| H A D | omap-keypad.c | 68 int col = 0; in omap_kp_scan_keypad() local 75 for (col = 0; col < omap_kp->cols; col++) { in omap_kp_scan_keypad() 76 omap_writew(~(1 << col) & 0xff, in omap_kp_scan_keypad() 81 state[col] = ~omap_readw(OMAP1_MPUIO_BASE + in omap_kp_scan_keypad() 94 int col, row; in omap_kp_tasklet() local 100 for (col = 0; col < omap_kp_data->cols; col++) { in omap_kp_tasklet() 101 changed = new_state[col] ^ keypad_state[col]; in omap_kp_tasklet() 102 key_down |= new_state[col]; in omap_kp_tasklet() 111 printk(KERN_INFO "omap-keypad: key %d-%d %s\n", col, in omap_kp_tasklet() 112 row, (new_state[col] & (1 << row)) ? in omap_kp_tasklet() [all …]
|
| H A D | imx_keypad.c | 82 int col; in imx_keypad_scan_matrix() local 85 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_scan_matrix() 86 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_scan_matrix() 114 reg_val &= ~(1 << (8 + col)); in imx_keypad_scan_matrix() 128 matrix_volatile_state[col] = (~reg_val) & keypad->rows_en_mask; in imx_keypad_scan_matrix() 148 int row, col; in imx_keypad_fire_events() local 150 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_fire_events() 154 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_fire_events() 157 bits_changed = keypad->matrix_stable_state[col] ^ in imx_keypad_fire_events() 158 matrix_volatile_state[col]; in imx_keypad_fire_events() [all …]
|
| H A D | clps711x-keypad.c | 39 int col, row; in clps711x_keypad_poll() local 41 for (col = 0; col < CLPS711X_KEYPAD_COL_COUNT; col++) { in clps711x_keypad_poll() 45 SYSCON1_KBDSCAN(8 + col)); in clps711x_keypad_poll() 59 if (test_bit(col, data->last_state) != state) { in clps711x_keypad_poll() 60 int code = MATRIX_SCAN_CODE(row, col, in clps711x_keypad_poll() 64 set_bit(col, data->last_state); in clps711x_keypad_poll() 68 clear_bit(col, data->last_state); in clps711x_keypad_poll()
|
| H A D | samsung-keypad.c | 81 unsigned int col; in samsung_keypad_scan() local 84 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_scan() 85 val = SAMSUNG_KEYIFCOL_MASK & ~BIT(col); in samsung_keypad_scan() 92 row_state[col] = ~val & GENMASK(keypad->rows - 1, 0); in samsung_keypad_scan() 107 unsigned int col, row; in samsung_keypad_report() local 109 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_report() 110 changed = row_state[col] ^ keypad->row_state[col]; in samsung_keypad_report() 111 key_down |= row_state[col]; in samsung_keypad_report() 119 pressed = row_state[col] & BIT(row); in samsung_keypad_report() 123 pressed ? "pressed" : "released", row, col); in samsung_keypad_report() [all …]
|
| H A D | locomokbd.c | 87 static inline void locomokbd_activate_col(unsigned long membase, int col) in locomokbd_activate_col() argument 92 nset = 0xFF & ~(1 << col); in locomokbd_activate_col() 97 static inline void locomokbd_reset_col(unsigned long membase, int col) in locomokbd_reset_col() argument 101 nbset = ((0xFF & ~(1 << col)) << 8) + 0xFF; in locomokbd_reset_col() 114 unsigned int row, col, rowd; in locomokbd_scankeyboard() local 123 for (col = 0; col < KB_COLS; col++) { in locomokbd_scankeyboard() 125 locomokbd_activate_col(membase, col); in locomokbd_scankeyboard() 132 scancode = SCANCODE(col, row); in locomokbd_scankeyboard() 158 locomokbd_reset_col(membase, col); in locomokbd_scankeyboard()
|
| H A D | mt6779-keypad.c | 37 unsigned int *row, unsigned int *col); 55 unsigned int row, col; in mt6779_keypad_irq_handler() local 74 keypad->calc_row_col(key, &row, &col); in mt6779_keypad_irq_handler() 76 scancode = MATRIX_SCAN_CODE(row, col, row_shift); in mt6779_keypad_irq_handler() 97 unsigned int *col) in mt6779_keypad_calc_row_col_single() argument 100 *col = key % 9; in mt6779_keypad_calc_row_col_single() 105 unsigned int *col) in mt6779_keypad_calc_row_col_double() argument 108 *col = (key % 13) / 2; in mt6779_keypad_calc_row_col_double()
|
| H A D | nspire-keypad.c | 56 int row, col; in nspire_keypad_irq() local 78 for (col = 0; col < KEYPAD_BITMASK_COLS; col++) { in nspire_keypad_irq() 79 if (!(changed & (1U << col))) in nspire_keypad_irq() 82 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in nspire_keypad_irq() 85 bits & (1U << col)); in nspire_keypad_irq()
|
| H A D | pmic8xxx-keypad.c | 108 static u8 pmic8xxx_col_state(struct pmic8xxx_kp *kp, u8 col) in pmic8xxx_col_state() argument 111 if (col == 0x00) in pmic8xxx_col_state() 114 return col & ((1 << kp->num_cols) - 1); in pmic8xxx_col_state() 222 int row, col, code; in __pmic8xxx_kp_scan_matrix() local 230 for (col = 0; col < kp->num_cols; col++) { in __pmic8xxx_kp_scan_matrix() 231 if (!(bits_changed & (1 << col))) in __pmic8xxx_kp_scan_matrix() 234 dev_dbg(kp->dev, "key [%d:%d] %s\n", row, col, in __pmic8xxx_kp_scan_matrix() 235 !(new_state[row] & (1 << col)) ? in __pmic8xxx_kp_scan_matrix() 238 code = MATRIX_SCAN_CODE(row, col, PM8XXX_ROW_SHIFT); in __pmic8xxx_kp_scan_matrix() 243 !(new_state[row] & (1 << col))); in __pmic8xxx_kp_scan_matrix()
|
| H A D | stmpe-keypad.c | 179 int col = data & STMPE_KPC_DATA_COL; in stmpe_keypad_irq() local 180 int code = MATRIX_SCAN_CODE(row, col, STMPE_KEYPAD_ROW_SHIFT); in stmpe_keypad_irq() 317 int row, col; in stmpe_keypad_fill_used_pins() local 320 for (col = 0; col < used_cols; col++) { in stmpe_keypad_fill_used_pins() 321 int code = MATRIX_SCAN_CODE(row, col, in stmpe_keypad_fill_used_pins() 325 keypad->cols |= 1 << col; in stmpe_keypad_fill_used_pins()
|
| H A D | pinephone-keyboard.c | 213 int col, crc, ret, row; in ppkb_update() local 231 for (col = 0; col < PPKB_COLS; ++col) { in ppkb_update() 232 u8 old = old_buf[1 + col]; in ppkb_update() 233 u8 new = new_buf[1 + col]; in ppkb_update() 252 fn_state = value ? ppkb->fn_pressed : ppkb->fn_state[col] & mask; in ppkb_update() 254 ppkb->fn_state[col] ^= mask; in ppkb_update() 258 col, row_shift); in ppkb_update()
|
| H A D | adp5585-keys.c | 47 u32 row, col; in adp5585_keys_validate_events() local 59 col = (events[ev] - 1) % kpad->info->max_cols; in adp5585_keys_validate_events() 62 test_bit(col + kpad->info->max_rows, &kpad->keypad)) in adp5585_keys_validate_events() 231 unsigned int row, col, code; in adp5585_keys_ev_handle() local 246 col = (key - 1) % (kpad->info->max_cols); in adp5585_keys_ev_handle() 247 code = MATRIX_SCAN_CODE(row, col, kpad->row_shift); in adp5585_keys_ev_handle() 250 key, row, col, kpad->keycode[code]); in adp5585_keys_ev_handle()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | iters.c | 398 int sum, row, col; in iter_nested_iters() local 403 bpf_for( col, 0, ARRAY_SIZE(arr2d[0])) { in iter_nested_iters() 404 arr2d[row][col] = row * col; in iter_nested_iters() 413 bpf_for(col, 0, ARRAY_SIZE(arr2d[0])) { in iter_nested_iters() 414 arr2d_col_sums[col] = 0; in iter_nested_iters() 419 bpf_for(col, 0, ARRAY_SIZE(arr2d[0])) { in iter_nested_iters() 420 sum += arr2d[row][col]; in iter_nested_iters() 421 arr2d_row_sums[row] += arr2d[row][col]; in iter_nested_iters() 422 arr2d_col_sums[col] += arr2d[row][col]; in iter_nested_iters() 430 bpf_for(col, 0, ARRAY_SIZE(arr2d[0])) { in iter_nested_iters() [all …]
|
| /linux/scripts/kconfig/ |
| H A D | gconf.c | 419 GtkTreeViewColumn *col; in on_show_name1_activate() local 422 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NAME); in on_show_name1_activate() 423 if (col) in on_show_name1_activate() 424 gtk_tree_view_column_set_visible(col, show_name); in on_show_name1_activate() 429 GtkTreeViewColumn *col; in on_show_range1_activate() local 432 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NO); in on_show_range1_activate() 433 if (col) in on_show_range1_activate() 434 gtk_tree_view_column_set_visible(col, show_range); in on_show_range1_activate() 435 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_MOD); in on_show_range1_activate() 436 if (col) in on_show_range1_activate() [all …]
|
| /linux/include/linux/input/ |
| H A D | matrix_keypad.h | 13 #define KEY(row, col, val) ((((row) & (MATRIX_MAX_ROWS - 1)) << 24) |\ argument 14 (((col) & (MATRIX_MAX_COLS - 1)) << 16) |\ 21 #define MATRIX_SCAN_CODE(row, col, row_shift) (((row) << (row_shift)) + (col)) argument
|
| /linux/drivers/edac/ |
| H A D | versalnet_edac.c | 93 u32 col:11; member 331 pinf.col >>= 1; in convert_to_physical() 332 err_addr |= (pinf.col & 1) << col_bit_0; in convert_to_physical() 335 err_addr |= (pinf.col & 1) << cols.col1; in convert_to_physical() 336 pinf.col >>= 1; in convert_to_physical() 337 err_addr |= (pinf.col & 1) << cols.col2; in convert_to_physical() 338 pinf.col >>= 1; in convert_to_physical() 339 err_addr |= (pinf.col & 1) << cols.col3; in convert_to_physical() 340 pinf.col >>= 1; in convert_to_physical() 341 err_addr |= (pinf.col & 1) << cols.col4; in convert_to_physical() [all …]
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | colorspaces-defs.rst | 49 - See :ref:`col-smpte-170m`. 51 - See :ref:`col-rec709`. 53 - See :ref:`col-srgb`. 55 - See :ref:`col-oprgb`. 57 - See :ref:`col-bt2020`. 59 - See :ref:`col-dcip3`. 61 - See :ref:`col-smpte-240m`. 63 - See :ref:`col-sysm`. 65 - See :ref:`col-sysbg`. 67 - See :ref:`col-jpeg`.
|
| /linux/drivers/media/usb/pwc/ |
| H A D | pwc-uncompress.c | 23 int n, line, col; in pwc_decompress() local 64 for (col = 0; col < pdev->width; col += 4) { in pwc_decompress()
|
| /linux/tools/perf/ui/gtk/ |
| H A D | hists.c | 98 GtkTreeIter *parent, int col, u64 total) in perf_gtk__add_callchain_flat() argument 125 gtk_tree_store_set(store, &iter, col, buf, -1); in perf_gtk__add_callchain_flat() 146 gtk_tree_store_set(store, &iter, col, buf, -1); in perf_gtk__add_callchain_flat() 161 GtkTreeIter *parent, int col, u64 total) in perf_gtk__add_callchain_folded() argument 214 gtk_tree_store_set(store, &iter, col, str, -1); in perf_gtk__add_callchain_folded() 221 GtkTreeIter *parent, int col, u64 total) in perf_gtk__add_callchain_graph() argument 247 gtk_tree_store_set(store, &iter, col, buf, -1); in perf_gtk__add_callchain_graph() 265 perf_gtk__add_callchain_graph(&node->rb_root, store, &iter, col, in perf_gtk__add_callchain_graph() 271 GtkTreeIter *parent, int col, u64 total) in perf_gtk__add_callchain() argument 274 perf_gtk__add_callchain_flat(root, store, parent, col, total); in perf_gtk__add_callchain() [all …]
|
| /linux/arch/arm/boot/dts/nxp/mxs/ |
| H A D | imx28-tx28.dts | 155 col-gpios = < 169 0x00000074 /* row 0, col 0, KEY_POWER */ 170 0x00010052 /* row 0, col 1, KEY_KP0 */ 171 0x0002004f /* row 0, col 2, KEY_KP1 */ 172 0x00030050 /* row 0, col 3, KEY_KP2 */ 173 0x01000051 /* row 1, col 0, KEY_KP3 */ 174 0x0101004b /* row 1, col 1, KEY_KP4 */ 175 0x0102004c /* row 1, col 2, KEY_KP5 */ 176 0x0103004d /* row 1, col 3, KEY_KP6 */ 177 0x02000047 /* row 2, col 0, KEY_KP7 */ [all …]
|
| /linux/drivers/media/test-drivers/vimc/ |
| H A D | vimc-debayer.c | 41 unsigned int lin, unsigned int col, 296 unsigned int col, in vimc_debayer_process_rgb_frame() argument 303 index = VIMC_FRAME_INDEX(lin, col, vdebayer->hw.size.width, 3); in vimc_debayer_process_rgb_frame() 406 const unsigned int col, in vimc_debayer_calc_rgb_sink() argument 426 vdebayer->sd.name, lin, col, vdebayer->hw.size.height, seek); in vimc_debayer_calc_rgb_sink() 444 for (wcol = seek > col ? 0 : col - seek; in vimc_debayer_calc_rgb_sink() 445 wcol < col + seek + 1 && wcol < vdebayer->hw.size.width; in vimc_debayer_calc_rgb_sink() 478 vdebayer->sd.name, lin, col, i, rgb[i], n_rgb[i]); in vimc_debayer_calc_rgb_sink() 485 vdebayer->sd.name, lin, col, i, rgb[i]); in vimc_debayer_calc_rgb_sink()
|
| /linux/drivers/input/ |
| H A D | matrix-keymap.c | 28 unsigned int col = KEY_COL(key); in matrix_keypad_map_key() local 31 if (row >= rows || col >= cols) { in matrix_keypad_map_key() 34 __func__, key, row, col, rows, cols); in matrix_keypad_map_key() 38 keymap[MATRIX_SCAN_CODE(row, col, row_shift)] = code; in matrix_keypad_map_key()
|
| /linux/drivers/auxdisplay/ |
| H A D | ht16k33.c | 334 int row, col, code; in ht16k33_keypad_scan() local 346 for (col = 0; col < keypad->cols; col++) { in ht16k33_keypad_scan() 347 new_state[col] = le16_to_cpu(data[col]); in ht16k33_keypad_scan() 348 if (new_state[col]) in ht16k33_keypad_scan() 350 bits_changed = keypad->last_key_state[col] ^ new_state[col]; in ht16k33_keypad_scan() 353 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in ht16k33_keypad_scan() 356 new_state[col] & BIT(row)); in ht16k33_keypad_scan()
|
| /linux/include/dt-bindings/input/ |
| H A D | input.h | 15 #define MATRIX_KEY(row, col, code) \ argument 16 ((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF))
|
| /linux/arch/powerpc/boot/ |
| H A D | 4xx.c | 204 u32 cs, col, row, bank, dpath; in ibm4xx_denali_fixup_memsize() local 241 col = DDR_GET_VAL(val, DDR_COL_SZ, DDR_COL_SZ_SHIFT); in ibm4xx_denali_fixup_memsize() 242 if (col > max_col) in ibm4xx_denali_fixup_memsize() 244 col = max_col - col; in ibm4xx_denali_fixup_memsize() 251 memsize = cs * (1 << (col+row)) * bank * dpath; in ibm4xx_denali_fixup_memsize()
|
| /linux/drivers/soundwire/ |
| H A D | generic_bandwidth_allocation.c | 98 SDW_BLK_GRP_CNT_1, bus->params.col, 0, 0, 1, in sdw_compute_dp0_slave_ports() 99 bus->params.col - 1, SDW_BLK_PKG_PER_PORT, 0x0); in sdw_compute_dp0_slave_ports() 101 sdw_fill_port_params(&p_rt->port_params, p_rt->num, bus->params.col - 1, in sdw_compute_dp0_slave_ports() 114 SDW_BLK_GRP_CNT_1, bus->params.col, 0, 0, 1, in sdw_compute_dp0_master_ports() 115 bus->params.col - 1, SDW_BLK_PKG_PER_PORT, 0x0); in sdw_compute_dp0_master_ports() 117 sdw_fill_port_params(&p_rt->port_params, p_rt->num, bus->params.col - 1, in sdw_compute_dp0_master_ports() 200 hstop = bus->params.col - 1; in _sdw_compute_port_params() 229 int sel_col = bus->params.col; in sdw_compute_group_params() 440 bus->params.col = sdw_cols[c]; in sdw_select_row_col()
|