Home
last modified time | relevance | path

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

123456

/linux/drivers/input/keyboard/
A Domap-keypad.c71 int col = 0; in omap_kp_scan_keypad() local
78 for (col = 0; col < omap_kp->cols; col++) { in omap_kp_scan_keypad()
79 omap_writew(~(1 << col) & 0xff, in omap_kp_scan_keypad()
84 state[col] = ~omap_readw(OMAP1_MPUIO_BASE + in omap_kp_scan_keypad()
97 int col, row; in omap_kp_tasklet() local
103 for (col = 0; col < omap_kp_data->cols; col++) { in omap_kp_tasklet()
104 changed = new_state[col] ^ keypad_state[col]; in omap_kp_tasklet()
105 key_down |= new_state[col]; in omap_kp_tasklet()
114 printk(KERN_INFO "omap-keypad: key %d-%d %s\n", col, in omap_kp_tasklet()
115 row, (new_state[col] & (1 << row)) ? in omap_kp_tasklet()
[all …]
A Dmatrix_keypad.c47 int col, bool on) in __activate_col() argument
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
130 for (col = 0; col < pdata->num_col_gpios; col++) { in matrix_keypad_scan()
135 new_state[col] |= in matrix_keypad_scan()
141 for (col = 0; col < pdata->num_col_gpios; col++) { in matrix_keypad_scan()
[all …]
A 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()
113 reg_val &= ~(1 << (8 + col)); 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()
157 matrix_volatile_state[col]; in imx_keypad_fire_events()
171 matrix_volatile_state[col] & (1 << row)); in imx_keypad_fire_events()
174 matrix_volatile_state[col] & (1 << row)); in imx_keypad_fire_events()
421 int irq, error, i, row, col; in imx_keypad_probe() local
474 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_probe()
[all …]
A Dtwl4030_keypad.c158 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()
228 (new_state[row] & (1 << col)) ? in twl4030_kp_scan()
[all …]
A 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()
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()
287 u32 row, col, key_code; in samsung_keypad_parse_dt() local
[all …]
A Dcros_ec_keyb.c169 int col, row; in cros_ec_keyb_process() local
183 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_process()
188 new_state = kb_state[col] & (1 << row); in cros_ec_keyb_process()
193 row, col, new_state); in cros_ec_keyb_process()
200 ckdev->old_kb_state[col] = kb_state[col]; in cros_ec_keyb_process()
302 int row, col; in cros_ec_keyb_compute_valid_keys() local
309 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_compute_valid_keys()
313 ckdev->valid_keys[col] |= 1 << row; in cros_ec_keyb_compute_valid_keys()
316 col, ckdev->valid_keys[col]); in cros_ec_keyb_compute_valid_keys()
542 int row, col; in cros_ec_keyb_register_matrix() local
[all …]
A 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()
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
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()
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()
A 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()
A 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()
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()
/linux/arch/mips/loongson64/
A 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/drivers/tty/vt/
A Dvc_screen.c260 col = pos % maxcol; in vcs_read_buf_uni()
261 nr = maxcol - col; in vcs_read_buf_uni()
269 col = 0; in vcs_read_buf_uni()
283 col = pos % maxcol; in vcs_read_buf_noattr()
290 col = 0; in vcs_read_buf_noattr()
339 col = pos % maxcol; in vcs_read_buf()
356 col = 0; in vcs_read_buf()
485 col = pos % maxcol; in vcs_write_buf_noattr()
497 col = 0; in vcs_write_buf_noattr()
556 col = 0; in vcs_write_buf()
[all …]
/linux/sound/pci/cs46xx/
A Ddsp_spos.c617 col = 0; in cs46xx_dsp_proc_parameter_dump_read()
622 col = 0; in cs46xx_dsp_proc_parameter_dump_read()
645 col = 0; in cs46xx_dsp_proc_sample_dump_read()
657 col = 0; in cs46xx_dsp_proc_sample_dump_read()
672 col = 0; in cs46xx_dsp_proc_sample_dump_read()
688 col = 0; in cs46xx_dsp_proc_sample_dump_read()
703 col = 0; in cs46xx_dsp_proc_sample_dump_read()
720 col = 0; in cs46xx_dsp_proc_sample_dump_read()
735 col = 0; in cs46xx_dsp_proc_sample_dump_read()
750 col = 0; in cs46xx_dsp_proc_sample_dump_read()
[all …]
/linux/arch/mips/sgi-ip27/
A 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/scripts/kconfig/
A Dgconf.c574 if (col) in on_show_name1_activate()
585 if (col) in on_show_range1_activate()
588 if (col) in on_show_range1_activate()
591 if (col) in on_show_range1_activate()
603 if (col) in on_show_data1_activate()
884 gint col; in on_treeview2_button_press_event() local
921 } else if (col == COL_NO || col == COL_MOD in on_treeview2_button_press_event()
941 gint col; in on_treeview2_key_press_event() local
963 col = COL_NO; in on_treeview2_key_press_event()
965 col = COL_MOD; in on_treeview2_key_press_event()
[all …]
/linux/arch/x86/boot/
A 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/include/linux/input/
A 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/drivers/gpu/ipu-v3/
A Dipu-image-convert.c708 for (col = 0; col < in->num_cols; 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()
897 row, col, in calc_tile_dimensions()
977 for (col = 0; col < s_image->num_cols; col++) { in calc_out_tile_map()
1013 for (col = 0; col < image->num_cols; col++) { in calc_tile_offsets_planar()
1067 for (col = 0; col < image->num_cols; col++) { in calc_tile_offsets_packed()
1135 for (col = 0; col < ctx->in.num_cols; col++) { in calc_tile_resize_coefficients()
1142 tile_idx = col; in calc_tile_resize_coefficients()
1233 for (col = 0; col < ctx->in.num_cols; col++) { in calc_tile_resize_coefficients()
[all …]
/linux/drivers/video/fbdev/core/
A Dfbcon.h120 int col; in attr_col_ec() local
134 col = mono_col(info); in attr_col_ec()
138 fg = is_mono01 ? col : 0; in attr_col_ec()
139 bg = is_mono01 ? 0 : col; in attr_col_ec()
142 fg = is_mono01 ? 0 : col; in attr_col_ec()
143 bg = is_mono01 ? col : 0; in attr_col_ec()
/linux/Documentation/userspace-api/media/v4l/
A 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/drivers/media/usb/pwc/
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/
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()
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()
278 perf_gtk__add_callchain_graph(root, store, parent, col, total); in perf_gtk__add_callchain()
[all …]
/linux/drivers/media/test-drivers/vimc/
A Dvimc-debayer.c36 unsigned int col, unsigned int rgb[3]);
318 unsigned int col, in vimc_deb_process_rgb_frame() argument
325 index = VIMC_FRAME_INDEX(lin, col, vdeb->sink_fmt.width, 3); in vimc_deb_process_rgb_frame()
412 const unsigned int col, in vimc_deb_calc_rgb_sink() argument
432 vdeb->sd.name, lin, col, vdeb->sink_fmt.height, seek); in vimc_deb_calc_rgb_sink()
450 for (wcol = seek > col ? 0 : col - seek; in vimc_deb_calc_rgb_sink()
451 wcol < col + seek + 1 && wcol < vdeb->sink_fmt.width; in vimc_deb_calc_rgb_sink()
483 vdeb->sd.name, lin, col, i, rgb[i], n_rgb[i]); in vimc_deb_calc_rgb_sink()
490 vdeb->sd.name, lin, col, i, rgb[i]); in vimc_deb_calc_rgb_sink()

Completed in 720 milliseconds

123456