Home
last modified time | relevance | path

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

123456

/Linux-v5.4/drivers/staging/uwb/
Dallocator.c15 int col, mas, safe_mas, unsafe_mas; in uwb_rsv_fill_column_alloc() local
20 for (col = ci->csi.start_col; col < UWB_NUM_ZONES; col += ci->csi.interval) { in uwb_rsv_fill_column_alloc()
26 if (bm[col * UWB_MAS_PER_ZONE + mas] == 0) { in uwb_rsv_fill_column_alloc()
37 bm[col * UWB_MAS_PER_ZONE + mas] = c; in uwb_rsv_fill_column_alloc()
45 int mas, col, rows; in uwb_rsv_fill_row_alloc() local
61 for (col = 0; col < UWB_NUM_ZONES; col++) { in uwb_rsv_fill_row_alloc()
62 if (bm[col * UWB_NUM_ZONES + mas] != UWB_RSV_MAS_NOT_AVAIL) { in uwb_rsv_fill_row_alloc()
63 bm[col * UWB_NUM_ZONES + mas] = c; in uwb_rsv_fill_row_alloc()
132 int deep, set, col, start_col_deep, col_start_set; in uwb_rsv_find_best_column_set() local
149 for (col = start_col; col < UWB_NUM_ZONES; col += interval) { in uwb_rsv_find_best_column_set()
[all …]
/Linux-v5.4/drivers/input/keyboard/
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 …]
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.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()
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.c160 int col, row; in cros_ec_keyb_process() local
174 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_process()
176 int pos = MATRIX_SCAN_CODE(row, col, ckdev->row_shift); in cros_ec_keyb_process()
179 new_state = kb_state[col] & (1 << row); in cros_ec_keyb_process()
180 old_state = ckdev->old_kb_state[col] & (1 << row); in cros_ec_keyb_process()
184 row, col, new_state); in cros_ec_keyb_process()
190 ckdev->old_kb_state[col] = kb_state[col]; in cros_ec_keyb_process()
294 int row, col; in cros_ec_keyb_compute_valid_keys() local
301 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_compute_valid_keys()
303 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()
/Linux-v5.4/drivers/tty/vt/
Dvc_screen.c250 int attr, uni_mode, row, col, maxcol, viewed; in vcs_read() local
327 col = p % maxcol; in vcs_read()
328 nr = maxcol - col; in vcs_read()
333 row, col, nr); in vcs_read()
337 col = 0; in vcs_read()
342 col = p % maxcol; in vcs_read()
343 p += maxcol - col; in vcs_read()
346 if (++col == maxcol) { in vcs_read()
348 col = 0; in vcs_read()
393 col = p % maxcol; in vcs_read()
[all …]
/Linux-v5.4/arch/mips/loongson64/loongson-3/
Dnuma.c67 static int __init compute_node_distance(int row, int col) in compute_node_distance() argument
71 int package_col = col * loongson_sysconf.cores_per_node / in compute_node_distance()
74 if (col == row) in compute_node_distance()
84 int row, col; in init_topology_matrix() local
87 for (col = 0; col < MAX_NUMNODES; col++) in init_topology_matrix()
88 __node_distances[row][col] = -1; in init_topology_matrix()
91 for_each_online_node(col) { in init_topology_matrix()
92 __node_distances[row][col] = in init_topology_matrix()
93 compute_node_distance(row, col); in init_topology_matrix()
/Linux-v5.4/arch/mips/sgi-ip27/
Dip27-memory.c180 cnodeid_t row, col; in init_topology_matrix() local
183 for (col = 0; col < MAX_COMPACT_NODES; col++) in init_topology_matrix()
184 __node_distances[row][col] = -1; in init_topology_matrix()
188 for_each_online_node(col) { in init_topology_matrix()
189 nasid2 = COMPACT_TO_NASID_NODEID(col); in init_topology_matrix()
190 __node_distances[row][col] = in init_topology_matrix()
204 cnodeid_t row, col; in dump_topology() local
209 for_each_online_node(col) in dump_topology()
210 pr_cont("%02d ", col); in dump_topology()
214 for_each_online_node(col) in dump_topology()
[all …]
/Linux-v5.4/drivers/gpu/drm/mgag200/
Dmgag200_cursor.c44 unsigned int i, row, col; in mga_crtc_cursor_set() local
181 for (col = 0; col < 64; col++) { in mga_crtc_cursor_set()
182 this_colour = ioread32(src + 4*(col + 64*row)); in mga_crtc_cursor_set()
185 this_row[47 - col/8] |= 0x80>>(col%8); in mga_crtc_cursor_set()
192 if (col % 2) in mga_crtc_cursor_set()
193 this_row[col/2] |= i<<4; in mga_crtc_cursor_set()
195 this_row[col/2] |= i; in mga_crtc_cursor_set()
/Linux-v5.4/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()
621 col = 0; in cs46xx_dsp_proc_parameter_dump_read()
625 if (col == 0) { in cs46xx_dsp_proc_parameter_dump_read()
[all …]
/Linux-v5.4/scripts/kconfig/
Dgconf.c573 GtkTreeViewColumn *col; in on_show_name1_activate() local
576 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NAME); in on_show_name1_activate()
577 if (col) in on_show_name1_activate()
578 gtk_tree_view_column_set_visible(col, show_name); in on_show_name1_activate()
584 GtkTreeViewColumn *col; in on_show_range1_activate() local
587 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NO); in on_show_range1_activate()
588 if (col) in on_show_range1_activate()
589 gtk_tree_view_column_set_visible(col, show_range); in on_show_range1_activate()
590 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_MOD); in on_show_range1_activate()
591 if (col) in on_show_range1_activate()
[all …]
/Linux-v5.4/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-v5.4/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-v5.4/drivers/gpu/drm/udl/
Dudl_fb.c40 #define DLO_RGB_GETRED(col) (uint8_t)((col) & 0xFF) argument
43 #define DLO_RGB_GETGRN(col) (uint8_t)(((col) >> 8) & 0xFF) argument
46 #define DLO_RGB_GETBLU(col) (uint8_t)(((col) >> 16) & 0xFF) argument
58 static uint8_t rgb8(uint32_t col)
60 uint8_t red = DLO_RGB_GETRED(col);
61 uint8_t grn = DLO_RGB_GETGRN(col);
62 uint8_t blu = DLO_RGB_GETBLU(col);
67 static uint16_t rgb16(uint32_t col)
69 uint8_t red = DLO_RGB_GETRED(col);
70 uint8_t grn = DLO_RGB_GETGRN(col);
[all …]
/Linux-v5.4/drivers/media/usb/pwc/
Dpwc-uncompress.c26 int n, line, col; in pwc_decompress() local
67 for (col = 0; col < pdev->width; col += 4) { in pwc_decompress()
/Linux-v5.4/arch/s390/boot/
Dpgm_check_info.c31 int row, col; in print_pgm_check_info() local
83 for (col = 0; col < 4; col++) { in print_pgm_check_info()
85 p = add_val_as_hex(p, S390_lowcore.gpregs_save_area[row * 4 + col]); in print_pgm_check_info()
/Linux-v5.4/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-v5.4/drivers/gpu/ipu-v3/
Dipu-image-convert.c651 unsigned int col, in fill_tile_column() argument
661 tile_idx = in->num_cols * row + col; in fill_tile_column()
689 unsigned int col, tile_idx; in fill_tile_row() local
692 for (col = 0; col < in->num_cols; col++) { in fill_tile_row()
693 tile_idx = in->num_cols * row + col; in fill_tile_row()
722 unsigned int col; in find_seams() local
751 for (col = in->num_cols - 1; col > 0; col--) { in find_seams()
754 bool allow_out_overshoot = (col < in->num_cols - 1) && in find_seams()
764 find_best_seam(ctx, col, in find_seams()
777 fill_tile_column(ctx, col, in, in_left, in_right - in_left, in find_seams()
[all …]
/Linux-v5.4/Documentation/media/uapi/v4l/
Dcolorspaces-defs.rst56 - See :ref:`col-smpte-170m`.
58 - See :ref:`col-rec709`.
60 - See :ref:`col-srgb`.
62 - See :ref:`col-oprgb`.
64 - See :ref:`col-bt2020`.
66 - See :ref:`col-dcip3`.
68 - See :ref:`col-smpte-240m`.
70 - See :ref:`col-sysm`.
72 - See :ref:`col-sysbg`.
74 - See :ref:`col-jpeg`.

123456