Home
last modified time | relevance | path

Searched refs:cols (Results 1 – 25 of 77) sorted by relevance

1234

/Linux-v4.19/drivers/input/
Dmatrix-keymap.c31 unsigned int rows, unsigned int cols, in matrix_keypad_map_key() argument
39 if (row >= rows || col >= cols) { in matrix_keypad_map_key()
42 __func__, key, row, col, rows, cols); in matrix_keypad_map_key()
61 unsigned int *rows, unsigned int *cols) in matrix_keypad_parse_properties() argument
63 *rows = *cols = 0; in matrix_keypad_parse_properties()
66 device_property_read_u32(dev, "keypad,num-columns", cols); in matrix_keypad_parse_properties()
68 if (!*rows || !*cols) { in matrix_keypad_parse_properties()
78 unsigned int rows, unsigned int cols, in matrix_keypad_parse_keymap() argument
82 unsigned int row_shift = get_count_order(cols); in matrix_keypad_parse_keymap()
117 if (!matrix_keypad_map_key(input_dev, rows, cols, in matrix_keypad_parse_keymap()
[all …]
/Linux-v4.19/arch/x86/boot/compressed/
Dmisc.c54 static int lines, cols; variable
88 memmove(vidmem, vidmem + cols * 2, (lines - 1) * cols * 2); in scroll()
89 for (i = (lines - 1) * cols * 2; i < lines * cols * 2; i += 2) in scroll()
121 if (lines == 0 || cols == 0) in __putstr()
135 vidmem[(x + cols * y) * 2] = c; in __putstr()
136 if (++x >= cols) { in __putstr()
149 pos = (x + cols * y) * 2; /* Update cursor position */ in __putstr()
365 cols = boot_params->screen_info.orig_video_cols; in extract_kernel()
/Linux-v4.19/sound/pci/asihpi/
Dhpidebug.c64 int cols = 8; in hpi_debug_data() local
66 lines = (len + cols - 1) / cols; in hpi_debug_data()
73 for (k = 0; k < cols && i < len; i++, k++) in hpi_debug_data()
/Linux-v4.19/arch/mips/jz4740/
Dsetup.c38 u32 ctrl, bus, bank, rows, cols; in jz4740_detect_mem() local
45 cols = 8 + ((ctrl >> 26) & 7); in jz4740_detect_mem()
49 bus, bank, rows, cols); in jz4740_detect_mem()
52 size = 1 << (bus + bank + cols + rows); in jz4740_detect_mem()
/Linux-v4.19/drivers/input/keyboard/
Domap-keypad.c56 unsigned int cols; member
91 for (col = 0; col < omap_kp->cols; col++) { in omap_kp_scan_keypad()
108 unsigned int row_shift = get_count_order(omap_kp_data->cols); in omap_kp_tasklet()
116 for (col = 0; col < omap_kp_data->cols; col++) { in omap_kp_tasklet()
198 if (!pdata->rows || !pdata->cols || !pdata->keymap_data) { in omap_kp_probe()
203 row_shift = get_count_order(pdata->cols); in omap_kp_probe()
231 omap_kp->cols = pdata->cols; in omap_kp_probe()
260 pdata->rows, pdata->cols, in omap_kp_probe()
Dtca8418_keypad.c235 u32 rows, u32 cols) in tca8418_configure() argument
241 reg += (~(~0 << cols)) << 8; in tca8418_configure()
268 u32 rows = 0, cols = 0; in tca8418_keypad_probe() local
279 error = matrix_keypad_parse_properties(dev, &rows, &cols); in tca8418_keypad_probe()
288 if (!cols || cols > TCA8418_MAX_COLS) { in tca8418_keypad_probe()
293 row_shift = get_count_order(cols); in tca8418_keypad_probe()
322 error = matrix_keypad_build_keymap(NULL, NULL, rows, cols, NULL, input); in tca8418_keypad_probe()
344 error = tca8418_configure(keypad_data, rows, cols); in tca8418_keypad_probe()
Dstmpe-keypad.c136 unsigned int cols; member
220 if (keypad->cols & (1 << i)) { in stmpe_keypad_altfunc_init()
284 ret = stmpe_reg_write(stmpe, STMPE_KPC_COL, keypad->cols); in stmpe_keypad_chip_init()
324 keypad->cols |= 1 << col; in stmpe_keypad_fill_used_pins()
337 u32 cols; in stmpe_keypad_probe() local
365 error = matrix_keypad_parse_properties(&pdev->dev, &rows, &cols); in stmpe_keypad_probe()
369 error = matrix_keypad_build_keymap(NULL, NULL, rows, cols, in stmpe_keypad_probe()
378 stmpe_keypad_fill_used_pins(keypad, rows, cols); in stmpe_keypad_probe()
Dcros_ec_keyb.c46 unsigned int cols; member
135 for (col1 = 0; col1 < ckdev->cols; col1++) { in cros_ec_keyb_has_ghosting()
137 for (col2 = col1 + 1; col2 < ckdev->cols; col2++) { in cros_ec_keyb_has_ghosting()
174 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_process()
244 if (ckdev->ec->event_size != ckdev->cols) { in cros_ec_keyb_work()
299 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_compute_valid_keys()
532 err = matrix_keypad_parse_properties(dev, &ckdev->rows, &ckdev->cols); in cros_ec_keyb_register_matrix()
536 ckdev->valid_keys = devm_kzalloc(dev, ckdev->cols, GFP_KERNEL); in cros_ec_keyb_register_matrix()
540 ckdev->old_kb_state = devm_kzalloc(dev, ckdev->cols, GFP_KERNEL); in cros_ec_keyb_register_matrix()
568 err = matrix_keypad_build_keymap(NULL, NULL, ckdev->rows, ckdev->cols, in cros_ec_keyb_register_matrix()
[all …]
Dsamsung-keypad.c78 unsigned int cols; member
89 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_scan()
119 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_report()
273 pdata->cols = num_cols; in samsung_keypad_parse_dt()
346 if (!pdata->cols || pdata->cols > SAMSUNG_MAX_COLS) in samsung_keypad_probe()
351 pdata->cfg_gpio(pdata->rows, pdata->cols); in samsung_keypad_probe()
353 row_shift = get_count_order(pdata->cols); in samsung_keypad_probe()
386 keypad->cols = pdata->cols; in samsung_keypad_probe()
404 pdata->rows, pdata->cols, in samsung_keypad_probe()
Domap4-keypad.c79 unsigned int cols; member
145 for (col = 0; col < keypad_data->cols; col++) { in omap4_keypad_irq_thread_fn()
227 &keypad_data->cols); in omap4_keypad_parse_dt()
338 keypad_data->row_shift = get_count_order(keypad_data->cols); in omap4_keypad_probe()
350 keypad_data->rows, keypad_data->cols, in omap4_keypad_probe()
Dpmic8xxx-keypad.c511 unsigned int rows, cols; in pmic8xxx_kp_probe() local
518 rc = matrix_keypad_parse_properties(&pdev->dev, &rows, &cols); in pmic8xxx_kp_probe()
522 if (cols > PM8XXX_MAX_COLS || rows > PM8XXX_MAX_ROWS || in pmic8xxx_kp_probe()
523 cols < PM8XXX_MIN_COLS) { in pmic8xxx_kp_probe()
545 kp->num_cols = cols; in pmic8xxx_kp_probe()
/Linux-v4.19/drivers/auxdisplay/
Dht16k33.c53 uint32_t cols; member
263 for (col = 0; col < keypad->cols; col++) { in ht16k33_keypad_scan()
277 memcpy(keypad->last_key_state, new_state, sizeof(u16) * keypad->cols); in ht16k33_keypad_scan()
322 u32 cols = HT16K33_MATRIX_KEYPAD_MAX_COLS; in ht16k33_keypad_probe() local
349 err = matrix_keypad_parse_of_params(&client->dev, &rows, &cols); in ht16k33_keypad_probe()
353 cols > HT16K33_MATRIX_KEYPAD_MAX_COLS) { in ht16k33_keypad_probe()
355 rows, cols); in ht16k33_keypad_probe()
360 keypad->cols = cols; in ht16k33_keypad_probe()
361 keypad->row_shift = get_count_order(cols); in ht16k33_keypad_probe()
363 err = matrix_keypad_build_keymap(NULL, NULL, rows, cols, NULL, in ht16k33_keypad_probe()
/Linux-v4.19/drivers/s390/char/
Dtty3270.c147 if (count > tp->view.cols * 2 - 11) in tty3270_update_prompt()
148 count = tp->view.cols * 2 - 11; in tty3270_update_prompt()
152 if (count < tp->view.cols * 2 - 11) { in tty3270_update_prompt()
155 off = tp->view.cols * tp->view.rows - 9; in tty3270_update_prompt()
174 sizeof(blueprint) + tp->view.cols * 2 - 9); in tty3270_create_prompt()
181 offset = tp->view.cols * (tp->view.rows - 2); in tty3270_create_prompt()
183 offset = tp->view.cols * tp->view.rows - 9; in tty3270_create_prompt()
187 tp->input = alloc_string(&tp->freemem, tp->view.cols * 2 - 9 + 6); in tty3270_create_prompt()
220 offset = tp->view.cols * tp->view.rows - 9; in tty3270_create_status()
234 tp->view.cols * nr); in tty3270_update_string()
[all …]
Draw3270.c40 short model, rows, cols; member
447 rp->cols = 80; in raw3270_size_device_vm()
452 rp->cols = 80; in raw3270_size_device_vm()
457 rp->cols = 80; in raw3270_size_device_vm()
462 rp->cols = 132; in raw3270_size_device_vm()
480 rp->cols = 80; in raw3270_size_device()
485 rp->cols = uap->uab.w; in raw3270_size_device()
493 rp->cols = uap->aua.wauai; in raw3270_size_device()
497 if (rp->rows == 24 && rp->cols == 80) in raw3270_size_device()
499 if (rp->rows == 32 && rp->cols == 80) in raw3270_size_device()
[all …]
Dcon3270.c114 cp->view.cols * (cp->view.rows - 1)); in con3270_create_status()
116 cp->view.cols * cp->view.rows - 8); in con3270_create_status()
136 cp->view.cols * (nr + 1)); in con3270_update_string()
261 cp->view.cols * cp->line_nr); in con3270_update()
466 size = (cp->cline->len < cp->view.cols - 5) ? in con3270_cline_end()
467 cp->cline->len + 4 : cp->view.cols; in con3270_cline_end()
470 if (cp->cline->len < cp->view.cols - 5) { in con3270_cline_end()
505 if (c == '\n' || cp->cline->len >= cp->view.cols) in con3270_write()
639 condev->cline = alloc_string(&condev->freemem, condev->view.cols); in con3270_init()
/Linux-v4.19/arch/mips/bcm63xx/
Dcpu.c258 unsigned int cols = 0, rows = 0, is_32bits = 0, banks = 0; in detect_memory_size() local
272 cols = (val & SDRAM_CFG_COL_MASK) >> SDRAM_CFG_COL_SHIFT; in detect_memory_size()
280 cols = (val & MEMC_CFG_COL_MASK) >> MEMC_CFG_COL_SHIFT; in detect_memory_size()
289 cols += 8; in detect_memory_size()
291 return 1 << (cols + rows + (is_32bits + 1) + banks); in detect_memory_size()
/Linux-v4.19/arch/arm/mach-s3c64xx/
Dsetup-keypad.c13 void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols) in samsung_keypad_cfg_gpio() argument
19 s3c_gpio_cfgrange_nopull(S3C64XX_GPL(0), cols, S3C_GPIO_SFN(3)); in samsung_keypad_cfg_gpio()
/Linux-v4.19/include/linux/input/
Dsamsung-keypad.h36 unsigned int cols; member
40 void (*cfg_gpio)(unsigned int rows, unsigned int cols);
Dmatrix_keypad.h84 unsigned int rows, unsigned int cols,
88 unsigned int *rows, unsigned int *cols);
/Linux-v4.19/tools/lib/subcmd/
Dhelp.c106 int cols = 1, rows; in pretty_print_string_list() local
116 cols = max_cols / space; in pretty_print_string_list()
117 rows = (cmds->cnt + cols - 1) / cols; in pretty_print_string_list()
122 for (j = 0; j < cols; j++) { in pretty_print_string_list()
128 if (j == cols-1 || n + rows >= cmds->cnt) in pretty_print_string_list()
/Linux-v4.19/drivers/usb/misc/sisusbvga/
Dsisusb_con.c211 int cols, rows; in sisusbcon_init() local
246 cols = 80; in sisusbcon_init()
266 c->vc_cols = cols; in sisusbcon_init()
269 vc_resize(c, cols, rows); in sisusbcon_init()
433 int i, length, cols; in sisusbcon_clear() local
451 cols = sisusb->sisusb_num_columns; in sisusbcon_clear()
453 if (width > cols) in sisusbcon_clear()
454 width = cols; in sisusbcon_clear()
458 sisusbcon_memsetw(dest, eattr, height * cols * 2); in sisusbcon_clear()
462 for (i = height; i > 0; i--, dest += cols) in sisusbcon_clear()
[all …]
/Linux-v4.19/drivers/video/console/
Dnewport_con.c203 int i, cols; in newport_get_screensize() local
218 cols = 0; in newport_get_screensize()
226 cols += (treg >> 7) & 0xfe; in newport_get_screensize()
232 if (cols) { in newport_get_screensize()
233 if (cols > newport_xsize) in newport_get_screensize()
234 newport_xsize = cols; in newport_get_screensize()
330 int cols, rows; in newport_init() local
332 cols = newport_xsize / 8; in newport_init()
336 vc->vc_cols = cols; in newport_init()
339 vc_resize(vc, cols, rows); in newport_init()
/Linux-v4.19/arch/arm/plat-samsung/include/plat/
Dkeypad.h25 extern void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols);
/Linux-v4.19/drivers/video/fbdev/core/
Dfbcon.c572 int cols, int rows, int new_cols, int new_rows) in fbcon_prepare_logo() argument
578 int cols, int rows, int new_cols, int new_rows) in fbcon_prepare_logo() argument
601 step = logo_lines * cols; in fbcon_prepare_logo()
602 for (r = q - logo_lines * cols; r < q; r++) in fbcon_prepare_logo()
609 int i = cols < new_cols ? cols : new_cols; in fbcon_prepare_logo()
619 r = q - step - cols; in fbcon_prepare_logo()
622 r -= cols; in fbcon_prepare_logo()
946 int rows, cols; in fbcon_startup() local
1031 cols = FBCON_SWAP(ops->rotate, info->var.xres, info->var.yres); in fbcon_startup()
1033 cols /= vc->vc_font.width; in fbcon_startup()
[all …]
/Linux-v4.19/include/uapi/linux/
Dvirtio_console.h48 __u16 cols; member

1234