Home
last modified time | relevance | path

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

123456

/linux-5.19.10/drivers/input/keyboard/
Domap-keypad.c72 int col = 0; in omap_kp_scan_keypad() local
79 for (col = 0; col < omap_kp->cols; col++) { in omap_kp_scan_keypad()
80 omap_writew(~(1 << col) & 0xff, in omap_kp_scan_keypad()
85 state[col] = ~omap_readw(OMAP1_MPUIO_BASE + in omap_kp_scan_keypad()
98 int col, row; in omap_kp_tasklet() local
104 for (col = 0; col < omap_kp_data->cols; col++) { in omap_kp_tasklet()
105 changed = new_state[col] ^ keypad_state[col]; in omap_kp_tasklet()
106 key_down |= new_state[col]; in omap_kp_tasklet()
115 printk(KERN_INFO "omap-keypad: key %d-%d %s\n", col, in omap_kp_tasklet()
116 row, (new_state[col] & (1 << row)) ? in omap_kp_tasklet()
[all …]
Dmatrix_keypad.c47 int col, bool on) in __activate_col() argument
52 gpio_direction_output(pdata->col_gpios[col], level_on); in __activate_col()
54 gpio_set_value_cansleep(pdata->col_gpios[col], !level_on); in __activate_col()
56 gpio_direction_input(pdata->col_gpios[col]); in __activate_col()
61 int col, bool on) in activate_col() argument
63 __activate_col(pdata, col, on); in activate_col()
72 int col; in activate_all_cols() local
74 for (col = 0; col < pdata->num_col_gpios; col++) in activate_all_cols()
75 __activate_col(pdata, col, on); in activate_all_cols()
122 int row, col, code; in matrix_keypad_scan() local
[all …]
Dimx_keypad.c81 int col; in imx_keypad_scan_matrix() local
84 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_scan_matrix()
85 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_scan_matrix()
113 reg_val &= ~(1 << (8 + col)); in imx_keypad_scan_matrix()
127 matrix_volatile_state[col] = (~reg_val) & keypad->rows_en_mask; in imx_keypad_scan_matrix()
147 int row, col; in imx_keypad_fire_events() local
149 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_fire_events()
153 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_fire_events()
156 bits_changed = keypad->matrix_stable_state[col] ^ in imx_keypad_fire_events()
157 matrix_volatile_state[col]; in imx_keypad_fire_events()
[all …]
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 …]
Dclps711x-keypad.c37 int col, row; in clps711x_keypad_poll() local
39 for (col = 0; col < CLPS711X_KEYPAD_COL_COUNT; col++) { in clps711x_keypad_poll()
43 SYSCON1_KBDSCAN(8 + col)); in clps711x_keypad_poll()
57 if (test_bit(col, data->last_state) != state) { in clps711x_keypad_poll()
58 int code = MATRIX_SCAN_CODE(row, col, in clps711x_keypad_poll()
62 set_bit(col, data->last_state); in clps711x_keypad_poll()
66 clear_bit(col, data->last_state); in clps711x_keypad_poll()
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 …]
Dcros_ec_keyb.c165 int col, row; in cros_ec_keyb_process() local
179 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_process()
181 int pos = MATRIX_SCAN_CODE(row, col, ckdev->row_shift); in cros_ec_keyb_process()
184 new_state = kb_state[col] & (1 << row); in cros_ec_keyb_process()
185 old_state = ckdev->old_kb_state[col] & (1 << row); in cros_ec_keyb_process()
189 row, col, new_state); in cros_ec_keyb_process()
196 ckdev->old_kb_state[col] = kb_state[col]; in cros_ec_keyb_process()
298 int row, col; in cros_ec_keyb_compute_valid_keys() local
305 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_compute_valid_keys()
307 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()
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()
Dstmpe-keypad.c178 int col = data & STMPE_KPC_DATA_COL; in stmpe_keypad_irq() local
179 int code = MATRIX_SCAN_CODE(row, col, STMPE_KEYPAD_ROW_SHIFT); in stmpe_keypad_irq()
316 int row, col; in stmpe_keypad_fill_used_pins() local
319 for (col = 0; col < used_cols; col++) { in stmpe_keypad_fill_used_pins()
320 int code = MATRIX_SCAN_CODE(row, col, in stmpe_keypad_fill_used_pins()
324 keypad->cols |= 1 << col; in stmpe_keypad_fill_used_pins()
Dpmic8xxx-keypad.c108 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()
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()
/linux-5.19.10/arch/mips/loongson64/
Dnuma.c53 static int __init compute_node_distance(int row, int col) in compute_node_distance() argument
57 int package_col = col * loongson_sysconf.cores_per_node / in compute_node_distance()
60 if (col == row) in compute_node_distance()
70 int row, col; in init_topology_matrix() local
73 for (col = 0; col < MAX_NUMNODES; col++) in init_topology_matrix()
74 __node_distances[row][col] = -1; in init_topology_matrix()
77 for_each_online_node(col) { in init_topology_matrix()
78 __node_distances[row][col] = in init_topology_matrix()
79 compute_node_distance(row, col); in init_topology_matrix()
/linux-5.19.10/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-5.19.10/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-5.19.10/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-5.19.10/scripts/kconfig/
Dgconf.c570 GtkTreeViewColumn *col; in on_show_name1_activate() local
573 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NAME); in on_show_name1_activate()
574 if (col) in on_show_name1_activate()
575 gtk_tree_view_column_set_visible(col, show_name); in on_show_name1_activate()
581 GtkTreeViewColumn *col; in on_show_range1_activate() local
584 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NO); in on_show_range1_activate()
585 if (col) in on_show_range1_activate()
586 gtk_tree_view_column_set_visible(col, show_range); in on_show_range1_activate()
587 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_MOD); in on_show_range1_activate()
588 if (col) in on_show_range1_activate()
[all …]
/linux-5.19.10/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-5.19.10/include/linux/input/
Dmatrix_keypad.h12 #define KEY(row, col, val) ((((row) & (MATRIX_MAX_ROWS - 1)) << 24) |\ argument
13 (((col) & (MATRIX_MAX_COLS - 1)) << 16) |\
20 #define MATRIX_SCAN_CODE(row, col, row_shift) (((row) << (row_shift)) + (col)) argument
/linux-5.19.10/drivers/media/usb/pwc/
Dpwc-uncompress.c23 int n, line, col; in pwc_decompress() local
64 for (col = 0; col < pdev->width; col += 4) { in pwc_decompress()
/linux-5.19.10/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-5.19.10/drivers/video/fbdev/core/
Dfbcon.h123 int col; in attr_col_ec() local
137 col = mono_col(info); in attr_col_ec()
141 fg = is_mono01 ? col : 0; in attr_col_ec()
142 bg = is_mono01 ? 0 : col; in attr_col_ec()
145 fg = is_mono01 ? 0 : col; in attr_col_ec()
146 bg = is_mono01 ? col : 0; in attr_col_ec()
/linux-5.19.10/drivers/gpu/ipu-v3/
Dipu-image-convert.c667 unsigned int col, in fill_tile_column() argument
677 tile_idx = in->num_cols * row + col; in fill_tile_column()
705 unsigned int col, tile_idx; in fill_tile_row() local
708 for (col = 0; col < in->num_cols; col++) { in fill_tile_row()
709 tile_idx = in->num_cols * row + col; in fill_tile_row()
738 unsigned int col; in find_seams() local
767 for (col = in->num_cols - 1; col > 0; col--) { in find_seams()
770 bool allow_out_overshoot = (col < in->num_cols - 1) && in find_seams()
780 find_best_seam(ctx, col, in find_seams()
793 fill_tile_column(ctx, col, in, in_left, in_right - in_left, in find_seams()
[all …]
/linux-5.19.10/tools/perf/ui/gtk/
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-5.19.10/drivers/input/
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()

123456