| /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 | clps711x-keypad.c | 38 int col, row; in clps711x_keypad_poll() local 40 for (col = 0; col < CLPS711X_KEYPAD_COL_COUNT; col++) { in clps711x_keypad_poll() 44 SYSCON1_KBDSCAN(8 + col)); in clps711x_keypad_poll() 58 if (test_bit(col, data->last_state) != state) { in clps711x_keypad_poll() 59 int code = MATRIX_SCAN_CODE(row, col, in clps711x_keypad_poll() 63 set_bit(col, data->last_state); in clps711x_keypad_poll() 67 clear_bit(col, data->last_state); in clps711x_keypad_poll()
|
| 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 | 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 | tca8418_keypad.c | 163 int error, col, row; in tca8418_read_keypad() local 182 col = code % TCA8418_MAX_COLS; in tca8418_read_keypad() 184 row = (col) ? row : row - 1; in tca8418_read_keypad() 185 col = (col) ? col - 1 : TCA8418_MAX_COLS - 1; in tca8418_read_keypad() 187 code = MATRIX_SCAN_CODE(row, col, keypad_data->row_shift); in tca8418_read_keypad()
|
| H A D | pinephone-keyboard.c | 212 int col, crc, ret, row; in ppkb_update() local 230 for (col = 0; col < PPKB_COLS; ++col) { in ppkb_update() 231 u8 old = old_buf[1 + col]; in ppkb_update() 232 u8 new = new_buf[1 + col]; in ppkb_update() 251 fn_state = value ? ppkb->fn_pressed : ppkb->fn_state[col] & mask; in ppkb_update() 253 ppkb->fn_state[col] ^= mask; in ppkb_update() 257 col, row_shift); in ppkb_update()
|
| H A D | adp5585-keys.c | 46 u32 row, col; in adp5585_keys_validate_events() local 58 col = (events[ev] - 1) % kpad->info->max_cols; in adp5585_keys_validate_events() 61 test_bit(col + kpad->info->max_rows, &kpad->keypad)) in adp5585_keys_validate_events() 155 * number of rows/cols as the maximum row/col used plus 1. This in adp5585_keys_parse_fw() 230 unsigned int row, col, code; in adp5585_keys_ev_handle() local 245 col = (key - 1) % (kpad->info->max_cols); in adp5585_keys_ev_handle() 246 code = MATRIX_SCAN_CODE(row, col, kpad->row_shift); in adp5585_keys_ev_handle() 249 key, row, col, kpad->keycode[code]); in adp5585_keys_ev_handle()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | iters.c | 481 int sum, row, col; in iter_nested_iters() local 486 bpf_for( col, 0, ARRAY_SIZE(arr2d[0])) { in iter_nested_iters() 487 arr2d[row][col] = row * col; in iter_nested_iters() 496 bpf_for(col, 0, ARRAY_SIZE(arr2d[0])) { in iter_nested_iters() 497 arr2d_col_sums[col] = 0; in iter_nested_iters() 502 bpf_for(col, 0, ARRAY_SIZE(arr2d[0])) { in iter_nested_iters() 503 sum += arr2d[row][col]; in iter_nested_iters() 504 arr2d_row_sums[row] += arr2d[row][col]; in iter_nested_iters() 505 arr2d_col_sums[col] in iter_nested_iters() 549 int col; fill_inner_dimension() local 558 int sum = 0, col; sum_inner_dimension() local 573 int sum, row, col; iter_subprog_iters() local [all...] |
| /linux/drivers/tty/vt/ |
| H A D | vc_screen.c | 248 unsigned int nr, row, col, maxcol = vc->vc_cols; in vcs_read_buf_uni() local 257 col = pos % maxcol; in vcs_read_buf_uni() 258 nr = maxcol - col; in vcs_read_buf_uni() 262 vc_uniscr_copy_line(vc, con_buf, viewed, row, col, nr); in vcs_read_buf_uni() 266 col = 0; in vcs_read_buf_uni() 277 unsigned int col, maxcol = vc->vc_cols; in vcs_read_buf_noattr() local 280 col = pos % maxcol; in vcs_read_buf_noattr() 281 pos += maxcol - col; in vcs_read_buf_noattr() 285 if (++col == maxcol) { in vcs_read_buf_noattr() 287 col = 0; in vcs_read_buf_noattr() [all …]
|
| /linux/scripts/kconfig/ |
| H A D | gconf.c | 418 GtkTreeViewColumn *col; in on_show_name1_activate() local 421 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NAME); in on_show_name1_activate() 422 if (col) in on_show_name1_activate() 423 gtk_tree_view_column_set_visible(col, show_name); in on_show_name1_activate() 428 GtkTreeViewColumn *col; in on_show_range1_activate() local 431 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NO); in on_show_range1_activate() 432 if (col) in on_show_range1_activate() 433 gtk_tree_view_column_set_visible(col, show_range); in on_show_range1_activate() 434 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_MOD); in on_show_range1_activate() 435 if (col) in on_show_range1_activate() [all …]
|
| /linux/sound/pci/cs46xx/ |
| H A D | dsp_spos.c | 545 int i, j, col; in cs46xx_dsp_proc_task_tree_read() local 553 for (col = 0,j = 0;j < ins->tasks[i].size; j++,col++) { in cs46xx_dsp_proc_task_tree_read() 555 if (col == 4) { in cs46xx_dsp_proc_task_tree_read() 557 col = 0; in cs46xx_dsp_proc_task_tree_read() 604 unsigned int i, col = 0; in cs46xx_dsp_proc_parameter_dump_read() local 608 for (i = 0;i < DSP_PARAMETER_BYTE_SIZE; i += sizeof(u32),col ++) { in cs46xx_dsp_proc_parameter_dump_read() 609 if (col == 4) { in cs46xx_dsp_proc_parameter_dump_read() 611 col = 0; in cs46xx_dsp_proc_parameter_dump_read() 616 col in cs46xx_dsp_proc_parameter_dump_read() 632 int i,col = 0; cs46xx_dsp_proc_sample_dump_read() local [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 | 82 * @col: Column number. 95 u32 col:11; member 333 pinf.col >>= 1; in convert_to_physical() 334 err_addr |= (pinf.col & 1) << col_bit_0; in convert_to_physical() 337 err_addr |= (pinf.col & 1) << cols.col1; in convert_to_physical() 338 pinf.col >>= 1; in convert_to_physical() 339 err_addr |= (pinf.col & 1) << cols.col2; in convert_to_physical() 340 pinf.col >>= 1; in convert_to_physical() 341 err_addr |= (pinf.col & 1) << cols.col3; in convert_to_physical() 342 pinf.col >> in convert_to_physical() [all...] |
| /linux/drivers/gpu/ipu-v3/ |
| H A D | ipu-image-convert.c | 652 unsigned int col, in fill_tile_column() argument 662 tile_idx = in->num_cols * row + col; in fill_tile_column() 690 unsigned int col, tile_idx; in fill_tile_row() local 693 for (col = 0; col < in->num_cols; col++) { in fill_tile_row() 694 tile_idx = in->num_cols * row + col; in fill_tile_row() 723 unsigned int col; in find_seams() local 752 for (col = in->num_cols - 1; col > in find_seams() 858 const unsigned int col = i % image->num_cols; calc_tile_dimensions() local 959 unsigned int row, col, tile = 0; calc_out_tile_map() local 976 unsigned int row, col, tile = 0; calc_tile_offsets_planar() local 1038 unsigned int row, col, tile = 0; calc_tile_offsets_packed() local 1114 unsigned int col, row, tile_idx; calc_tile_resize_coefficients() local 1374 unsigned int col, row; convert_start() local [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 | 100 GtkTreeIter *parent, int col, u64 total) in perf_gtk__add_callchain_flat() 127 gtk_tree_store_set(store, &iter, col, buf, -1); in perf_gtk__add_callchain_flat() 148 gtk_tree_store_set(store, &iter, col, buf, -1); in perf_gtk__add_callchain_flat() 163 GtkTreeIter *parent, int col, u64 total) in perf_gtk__add_callchain_folded() 216 gtk_tree_store_set(store, &iter, col, str, -1); in perf_gtk__add_callchain_folded() 223 GtkTreeIter *parent, int col, u64 total) in perf_gtk__add_callchain_graph() 249 gtk_tree_store_set(store, &iter, col, buf, -1); in perf_gtk__add_callchain_graph() 267 perf_gtk__add_callchain_graph(&node->rb_root, store, &iter, col, in perf_gtk__add_callchain_graph() 273 GtkTreeIter *parent, int col, u64 total) in perf_gtk__add_callchain() 276 perf_gtk__add_callchain_flat(root, store, parent, col, tota in perf_gtk__add_callchain() 98 perf_gtk__add_callchain_flat(struct rb_root * root,GtkTreeStore * store,GtkTreeIter * parent,int col,u64 total) perf_gtk__add_callchain_flat() argument 161 perf_gtk__add_callchain_folded(struct rb_root * root,GtkTreeStore * store,GtkTreeIter * parent,int col,u64 total) perf_gtk__add_callchain_folded() argument 221 perf_gtk__add_callchain_graph(struct rb_root * root,GtkTreeStore * store,GtkTreeIter * parent,int col,u64 total) perf_gtk__add_callchain_graph() argument 271 perf_gtk__add_callchain(struct rb_root * root,GtkTreeStore * store,GtkTreeIter * parent,int col,u64 total) perf_gtk__add_callchain() argument [all...] |
| /linux/drivers/media/test-drivers/vimc/ |
| H A D | vimc-debayer.c | 41 unsigned int lin, unsigned int col, 297 unsigned int col, in vimc_debayer_process_rgb_frame() 304 index = VIMC_FRAME_INDEX(lin, col, vdebayer->hw.size.width, 3); in vimc_debayer_process_rgb_frame() 407 const unsigned int col, in vimc_debayer_calc_rgb_sink() 427 vdebayer->sd.name, lin, col, vdebayer->hw.size.height, seek); in vimc_debayer_calc_rgb_sink() 445 for (wcol = seek > col ? 0 : col - seek; in vimc_debayer_calc_rgb_sink() 446 wcol < col + seek + 1 && wcol < vdebayer->hw.size.width; in vimc_debayer_calc_rgb_sink() 479 vdebayer->sd.name, lin, col, i, rgb[i], n_rgb[i]); in vimc_debayer_calc_rgb_sink() 486 vdebayer->sd.name, lin, col, in vimc_debayer_calc_rgb_sink() 296 vimc_debayer_process_rgb_frame(struct vimc_debayer_device * vdebayer,unsigned int lin,unsigned int col,unsigned int rgb[3]) vimc_debayer_process_rgb_frame() argument 406 vimc_debayer_calc_rgb_sink(struct vimc_debayer_device * vdebayer,const u8 * frame,const unsigned int lin,const unsigned int col,unsigned int rgb[3]) vimc_debayer_calc_rgb_sink() argument [all...] |
| /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() 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() 45 keymap[MATRIX_SCAN_CODE(row, col, row_shift)] = code; 136 * keyboard driver that uses row and col as indices.
|
| /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, keypa in ht16k33_keypad_scan() [all...] |
| /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 | 97 SDW_BLK_GRP_CNT_1, bus->params.col, 0, 0, 1, in sdw_compute_dp0_slave_ports() 98 bus->params.col - 1, SDW_BLK_PKG_PER_PORT, 0x0); in sdw_compute_dp0_slave_ports() 100 sdw_fill_port_params(&p_rt->port_params, p_rt->num, bus->params.col - 1, in sdw_compute_dp0_slave_ports() 113 SDW_BLK_GRP_CNT_1, bus->params.col, 0, 0, 1, in sdw_compute_dp0_master_ports() 114 bus->params.col - 1, SDW_BLK_PKG_PER_PORT, 0x0); in sdw_compute_dp0_master_ports() 116 sdw_fill_port_params(&p_rt->port_params, p_rt->num, bus->params.col - 1, in sdw_compute_dp0_master_ports() 202 hstop = bus->params.col - 1; in _sdw_compute_port_params() 231 int sel_col = bus->params.col; in sdw_compute_group_params() 438 bus->params.col = sdw_cols[c]; in sdw_select_row_col()
|