Home
last modified time | relevance | path

Searched refs:col (Results 1 – 25 of 123) sorted by relevance

12345

/linux/drivers/input/keyboard/
H A Domap-keypad.c68 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 Dclps711x-keypad.c38 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 Dlocomokbd.c87 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 Dmt6779-keypad.c37 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 Dnspire-keypad.c56 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 Dstmpe-keypad.c179 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 Dtca8418_keypad.c163 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 Dpinephone-keyboard.c212 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 Dadp5585-keys.c46 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()
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()
H A Dlpc32xx-keys.c71 static void lpc32xx_mod_states(struct lpc32xx_kscan_drv *kscandat, int col) in lpc32xx_mod_states() argument
77 key = readl(LPC32XX_KS_DATA(kscandat->kscan_base, col)); in lpc32xx_mod_states()
78 changed = key ^ kscandat->lastkeystates[col]; in lpc32xx_mod_states()
79 kscandat->lastkeystates[col] = key; in lpc32xx_mod_states()
84 scancode = MATRIX_SCAN_CODE(row, col, in lpc32xx_mod_states()
/linux/tools/testing/selftests/bpf/progs/
H A Diters.c481 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] += arr2d[row][col]; in iter_nested_iters()
513 bpf_for(col, 0, ARRAY_SIZE(arr2d[0])) { in iter_nested_iters()
[all …]
/linux/scripts/kconfig/
H A Dgconf.c418 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 Ddsp_spos.c545 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 = 0; in cs46xx_dsp_proc_parameter_dump_read()
620 if (col == 0) { in cs46xx_dsp_proc_parameter_dump_read()
[all …]
/linux/include/linux/input/
H A Dmatrix_keypad.h13 #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 Dversalnet_edac.c82 * @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 Dipu-image-convert.c652 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 > 0; col--) { in find_seams()
755 bool allow_out_overshoot = (col < in->num_cols - 1) && in find_seams()
765 find_best_seam(ctx, col, in find_seams()
778 fill_tile_column(ctx, col, in, in_left, in_right - in_left, in find_seams()
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A Dcolorspaces-defs.rst49 - 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 Dpwc-uncompress.c23 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 Dhists.c98 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/drivers/input/
H A Dmatrix-keymap.c28 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/media/test-drivers/vimc/
H A Dvimc-debayer.c41 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/include/dt-bindings/input/
H A Dinput.h15 #define MATRIX_KEY(row, col, code) \ argument
16 ((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF))
/linux/drivers/auxdisplay/
H A Dht16k33.c334 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/arch/powerpc/boot/
H A D4xx.c204 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 Dgeneric_bandwidth_allocation.c97 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()

12345