Home
last modified time | relevance | path

Searched full:col (Results 1 – 25 of 238) sorted by relevance

12345678910

/linux-6.12.1/drivers/input/keyboard/
Dmatrix_keypad.c56 static void __activate_col(struct matrix_keypad *keypad, int col, bool on) in __activate_col() argument
59 gpiod_direction_output(keypad->col_gpios[col], 1); in __activate_col()
61 gpiod_set_value_cansleep(keypad->col_gpios[col], 0); in __activate_col()
63 gpiod_direction_input(keypad->col_gpios[col]); in __activate_col()
67 static void activate_col(struct matrix_keypad *keypad, int col, bool on) in activate_col() argument
69 __activate_col(keypad, col, on); in activate_col()
77 int col; in activate_all_cols() local
79 for (col = 0; col < keypad->num_col_gpios; col++) in activate_all_cols()
80 __activate_col(keypad, col, on); in activate_all_cols()
114 int row, col, code; in matrix_keypad_scan() local
[all …]
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 …]
Dimx_keypad.c82 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()
124 * 1s in matrix_volatile_state[col] means key pressures 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()
[all …]
Dsamsung-keypad.c82 unsigned int col; in samsung_keypad_scan() local
85 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_scan()
88 val &= ~(1 << col) << 8; in samsung_keypad_scan()
91 val &= ~(1 << col); in samsung_keypad_scan()
98 row_state[col] = ~val & ((1 << keypad->rows) - 1); in samsung_keypad_scan()
113 unsigned int col, row; in samsung_keypad_report() local
115 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_report()
116 changed = row_state[col] ^ keypad->row_state[col]; in samsung_keypad_report()
117 key_down |= row_state[col]; in samsung_keypad_report()
125 pressed = row_state[col] & (1 << row); in samsung_keypad_report()
[all …]
Dclps711x-keypad.c39 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()
Dtwl4030_keypad.c150 static inline u16 twl4030_col_xlate(struct twl4030_keypad *kp, u8 col) in twl4030_col_xlate() argument
158 if (col == 0xFF) in twl4030_col_xlate()
161 return col & ((1 << kp->n_cols) - 1); in twl4030_col_xlate()
183 u16 col = key_state[i]; in twl4030_is_in_ghost_state() local
185 if ((col & check) && hweight16(col) > 1) in twl4030_is_in_ghost_state()
188 check |= col; in twl4030_is_in_ghost_state()
198 int col, row; in twl4030_kp_scan() local
221 for (col = 0; col < kp->n_cols + 1; col++) { in twl4030_kp_scan()
224 if (!(changed & (1 << col))) in twl4030_kp_scan()
227 dev_dbg(kp->dbg_dev, "key [%d:%d] %s\n", row, col, in twl4030_kp_scan()
[all …]
Dcros_ec_keyb.c179 int col, row; in cros_ec_keyb_process() local
193 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_process()
195 int pos = MATRIX_SCAN_CODE(row, col, ckdev->row_shift); in cros_ec_keyb_process()
198 new_state = kb_state[col] & (1 << row); in cros_ec_keyb_process()
199 old_state = ckdev->old_kb_state[col] & (1 << row); in cros_ec_keyb_process()
203 row, col, new_state); in cros_ec_keyb_process()
210 ckdev->old_kb_state[col] = kb_state[col]; in cros_ec_keyb_process()
312 int row, col; in cros_ec_keyb_compute_valid_keys() local
319 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_compute_valid_keys()
321 code = keymap[MATRIX_SCAN_CODE(row, col, row_shift)]; in cros_ec_keyb_compute_valid_keys()
[all …]
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
124 for (col = 0; col < KB_COLS; col++) { in locomokbd_scankeyboard()
126 locomokbd_activate_col(membase, col); in locomokbd_scankeyboard()
133 scancode = SCANCODE(col, row); in locomokbd_scankeyboard()
159 locomokbd_reset_col(membase, col); in locomokbd_scankeyboard()
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()
/linux-6.12.1/arch/mips/loongson64/
Dnuma.c51 static int __init compute_node_distance(int row, int col) in compute_node_distance() argument
55 int package_col = col * loongson_sysconf.cores_per_node / in compute_node_distance()
58 if (col == row) in compute_node_distance()
68 int row, col; in init_topology_matrix() local
71 for (col = 0; col < MAX_NUMNODES; col++) in init_topology_matrix()
72 __node_distances[row][col] = -1; in init_topology_matrix()
75 for_each_online_node(col) { in init_topology_matrix()
76 __node_distances[row][col] = in init_topology_matrix()
77 compute_node_distance(row, col); in init_topology_matrix()
/linux-6.12.1/drivers/tty/vt/
Dvc_screen.c251 unsigned int nr, row, col, maxcol = vc->vc_cols; in vcs_read_buf_uni() local
260 col = pos % maxcol; in vcs_read_buf_uni()
261 nr = maxcol - col; in vcs_read_buf_uni()
265 vc_uniscr_copy_line(vc, con_buf, viewed, row, col, nr); in vcs_read_buf_uni()
269 col = 0; in vcs_read_buf_uni()
280 unsigned int col, maxcol = vc->vc_cols; in vcs_read_buf_noattr() local
283 col = pos % maxcol; in vcs_read_buf_noattr()
284 pos += maxcol - col; in vcs_read_buf_noattr()
288 if (++col == maxcol) { in vcs_read_buf_noattr()
290 col = 0; in vcs_read_buf_noattr()
[all …]
/linux-6.12.1/drivers/ras/amd/atl/
Dumc.c87 u8 col[NUM_COL_BITS]; member
199 bit_shifts.col[0] = 2 + FIELD_GET(COL_SEL_LO_COL0, temp); in get_umc_info_mi300()
200 bit_shifts.col[1] = 2 + FIELD_GET(COL_SEL_LO_COL1, temp); in get_umc_info_mi300()
201 bit_shifts.col[2] = 2 + FIELD_GET(COL_SEL_LO_COL2, temp); in get_umc_info_mi300()
202 bit_shifts.col[3] = 2 + FIELD_GET(COL_SEL_LO_COL3, temp); in get_umc_info_mi300()
203 bit_shifts.col[4] = 2 + FIELD_GET(COL_SEL_LO_COL4, temp); in get_umc_info_mi300()
240 u16 i, col, row, bank, pc, sid; in convert_dram_to_norm_addr_mi300() local
243 col = FIELD_GET(MI300_UMC_MCA_COL, addr); in convert_dram_to_norm_addr_mi300()
254 temp = bitwise_xor_bits(col & addr_hash.bank[i].col_xor); in convert_dram_to_norm_addr_mi300()
261 temp = bitwise_xor_bits(col & addr_hash.pc.col_xor); in convert_dram_to_norm_addr_mi300()
[all …]
/linux-6.12.1/Documentation/userspace-api/media/v4l/
Dcolorspaces-defs.rst48 - See :ref:`col-smpte-170m`.
50 - See :ref:`col-rec709`.
52 - See :ref:`col-srgb`.
54 - See :ref:`col-oprgb`.
56 - See :ref:`col-bt2020`.
58 - See :ref:`col-dcip3`.
60 - See :ref:`col-smpte-240m`.
62 - See :ref:`col-sysm`.
64 - See :ref:`col-sysbg`.
66 - See :ref:`col-jpeg`.
/linux-6.12.1/scripts/kconfig/
Dgconf.c538 GtkTreeViewColumn *col; in on_show_name1_activate() local
541 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NAME); in on_show_name1_activate()
542 if (col) in on_show_name1_activate()
543 gtk_tree_view_column_set_visible(col, show_name); in on_show_name1_activate()
549 GtkTreeViewColumn *col; in on_show_range1_activate() local
552 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NO); in on_show_range1_activate()
553 if (col) in on_show_range1_activate()
554 gtk_tree_view_column_set_visible(col, show_range); in on_show_range1_activate()
555 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_MOD); in on_show_range1_activate()
556 if (col) in on_show_range1_activate()
[all …]
/linux-6.12.1/sound/pci/cs46xx/
Ddsp_spos.c549 int i, j, col; in cs46xx_dsp_proc_task_tree_read() local
557 for (col = 0,j = 0;j < ins->tasks[i].size; j++,col++) { in cs46xx_dsp_proc_task_tree_read()
559 if (col == 4) { in cs46xx_dsp_proc_task_tree_read()
561 col = 0; in cs46xx_dsp_proc_task_tree_read()
610 unsigned int i, col = 0; in cs46xx_dsp_proc_parameter_dump_read() local
614 for (i = 0;i < DSP_PARAMETER_BYTE_SIZE; i += sizeof(u32),col ++) { in cs46xx_dsp_proc_parameter_dump_read()
615 if (col == 4) { in cs46xx_dsp_proc_parameter_dump_read()
617 col = 0; in cs46xx_dsp_proc_parameter_dump_read()
622 col = 0; in cs46xx_dsp_proc_parameter_dump_read()
626 if (col == 0) { in cs46xx_dsp_proc_parameter_dump_read()
[all …]
/linux-6.12.1/arch/mips/sgi-ip27/
Dip27-memory.c161 nasid_t row, col; in init_topology_matrix() local
164 for (col = 0; col < MAX_NUMNODES; col++) in init_topology_matrix()
165 __node_distances[row][col] = -1; in init_topology_matrix()
168 for_each_online_node(col) { in init_topology_matrix()
169 __node_distances[row][col] = in init_topology_matrix()
170 compute_node_distance(row, col); in init_topology_matrix()
182 nasid_t row, col; in dump_topology() local
187 for_each_online_node(col) in dump_topology()
188 pr_cont("%02d ", col); in dump_topology()
192 for_each_online_node(col) in dump_topology()
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Diters.c398 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-6.12.1/include/linux/input/
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-6.12.1/drivers/hid/
Dhid-picolcd_core.c33 KEY_BACK, /* col 4 + row 1 */
34 KEY_HOMEPAGE, /* col 3 + row 1 */
35 KEY_RESERVED, /* col 2 + row 1 */
36 KEY_RESERVED, /* col 1 + row 1 */
37 KEY_SCROLLUP, /* col 4 + row 2 */
38 KEY_OK, /* col 3 + row 2 */
39 KEY_SCROLLDOWN, /* col 2 + row 2 */
40 KEY_RESERVED, /* col 1 + row 2 */
41 KEY_RESERVED, /* col 4 + row 3 */
42 KEY_RESERVED, /* col 3 + row 3 */
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Dumc_v12_0.c180 uint32_t col, row, row_xor, bank, channel_index; in umc_v12_0_convert_error_address() local
197 col = (err_addr >> 1) & 0x1fULL; in umc_v12_0_convert_error_address()
210 col &= 0x3; in umc_v12_0_convert_error_address()
211 col |= (column << 2); in umc_v12_0_convert_error_address()
213 "Error Address(PA):0x%-10llx Row:0x%-4x Col:0x%-2x Bank:0x%x Channel:0x%x\n", in umc_v12_0_convert_error_address()
214 retired_page, row, col, bank, channel_index); in umc_v12_0_convert_error_address()
221 "Error Address(PA):0x%-10llx Row:0x%-4x Col:0x%-2x Bank:0x%x Channel:0x%x\n", in umc_v12_0_convert_error_address()
222 retired_page, row_xor, col, bank, channel_index); in umc_v12_0_convert_error_address()
232 uint32_t col, row, row_xor, bank, channel_index; in umc_v12_0_dump_addr_info() local
239 col = (err_addr >> 1) & 0x1fULL; in umc_v12_0_dump_addr_info()
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/input/
Dgpio-matrix-keypad.txt14 - col-gpios: List of gpios used as column lines. The gpio specifier
25 - col-scan-delay-us: delay, measured in microseconds, that is needed
34 col-scan-delay-us = <2>;
40 col-gpios = <&gpio2 21 0
/linux-6.12.1/drivers/gpu/ipu-v3/
Dipu-image-convert.c666 unsigned int col, in fill_tile_column() argument
676 tile_idx = in->num_cols * row + col; in fill_tile_column()
704 unsigned int col, tile_idx; in fill_tile_row() local
707 for (col = 0; col < in->num_cols; col++) { in fill_tile_row()
708 tile_idx = in->num_cols * row + col; in fill_tile_row()
737 unsigned int col; in find_seams() local
766 for (col = in->num_cols - 1; col > 0; col--) { in find_seams()
769 bool allow_out_overshoot = (col < in->num_cols - 1) && in find_seams()
779 find_best_seam(ctx, col, in find_seams()
792 fill_tile_column(ctx, col, in, in_left, in_right - in_left, in find_seams()
[all …]
/linux-6.12.1/arch/x86/boot/
Dvideo.c145 int col; in display_menu() local
155 for (col = 0; col < modes_per_line; col++) in display_menu()
159 col = 0; in display_menu()
179 col++; in display_menu()
180 if (col >= modes_per_line) { in display_menu()
182 col = 0; in display_menu()
193 if (col) in display_menu()
/linux-6.12.1/include/linux/mtd/
Dndfc.h35 #define NDFC_CCR_ARAC0 0x00000000 /* 3 Addr, 1 Col 2 Row 512b page */
36 #define NDFC_CCR_ARAC1 0x00001000 /* 4 Addr, 1 Col 3 Row 512b page */
37 #define NDFC_CCR_ARAC2 0x00002000 /* 4 Addr, 2 Col 2 Row 2K page */
38 #define NDFC_CCR_ARAC3 0x00003000 /* 5 Addr, 2 Col 3 Row 2K page */
/linux-6.12.1/arch/arm/boot/dts/nxp/mxs/
Dimx28-tx28.dts155 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 …]

12345678910