Home
last modified time | relevance | path

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

123

/linux/drivers/input/
H A Dmatrix-keymap.c23 unsigned int rows, unsigned int cols, in matrix_keypad_map_key() argument
31 if (row >= rows || col >= cols) { in matrix_keypad_map_key()
33 "%s: invalid keymap entry 0x%x (row: %d, col: %d, rows: %d, cols: %d)\n", in matrix_keypad_map_key()
34 __func__, key, row, col, rows, cols); in matrix_keypad_map_key()
49 * @cols: Returns number of matrix columns
53 unsigned int *rows, unsigned int *cols) in matrix_keypad_parse_properties() argument
55 *rows = *cols = 0; in matrix_keypad_parse_properties()
58 device_property_read_u32(dev, "keypad,num-columns", cols); in matrix_keypad_parse_properties()
60 if (!*rows || !*cols) { in matrix_keypad_parse_properties()
70 unsigned int rows, unsigned int cols, in matrix_keypad_parse_keymap() argument
145 matrix_keypad_build_keymap(const struct matrix_keymap_data * keymap_data,const char * keymap_name,unsigned int rows,unsigned int cols,unsigned short * keymap,struct input_dev * input_dev) matrix_keypad_build_keymap() argument
[all...]
/linux/arch/x86/boot/compressed/
H A Dmisc.c61 static int cols __section(".data");
99 memmove(vidmem, vidmem + cols * 2, (lines - 1) * cols * 2); in scroll()
100 for (i = (lines - 1) * cols * 2; i < lines * cols * 2; i += 2) in scroll()
132 if (lines == 0 || cols == 0) in __putstr()
146 vidmem[(x + cols * y) * 2] = c; in __putstr()
147 if (++x >= cols) { in __putstr()
160 pos = (x + cols * y) * 2; /* Update cursor position */ in __putstr()
385 lines = cols in early_sev_detect()
[all...]
/linux/drivers/input/keyboard/
H A Domap-keypad.c43 unsigned int cols; member
75 for (col = 0; col < omap_kp->cols; col++) { in omap_kp_scan_keypad()
92 unsigned int row_shift = get_count_order(omap_kp_data->cols); in omap_kp_tasklet()
100 for (col = 0; col < omap_kp_data->cols; col++) { in omap_kp_tasklet()
188 if (!pdata->rows || !pdata->cols || !pdata->keymap_data) { in omap_kp_probe()
189 printk(KERN_ERR "No rows, cols or keymap_data from pdata\n"); in omap_kp_probe()
193 row_shift = get_count_order(pdata->cols); in omap_kp_probe()
215 omap_kp->cols = pdata->cols; in omap_kp_probe()
237 pdata->rows, pdata->cols, in omap_kp_probe()
[all...]
H A Dtca8418_keypad.c235 u32 rows, u32 cols) in tca8418_configure() argument
241 reg += (~(~0 << cols)) << 8; in tca8418_configure()
267 u32 rows = 0, cols = 0; in tca8418_keypad_probe() local
278 error = matrix_keypad_parse_properties(dev, &rows, &cols); in tca8418_keypad_probe()
287 if (!cols || cols > TCA8418_MAX_COLS) { in tca8418_keypad_probe()
292 row_shift = get_count_order(cols); in tca8418_keypad_probe()
320 error = matrix_keypad_build_keymap(NULL, NULL, rows, cols, NULL, input); in tca8418_keypad_probe()
342 error = tca8418_configure(keypad_data, rows, cols); in tca8418_keypad_probe()
H A Dstmpe-keypad.c126 * @cols: bitmask for the columns
137 unsigned int cols; member
211 * {cols,rows}_gpios are bitmasks of which pins on the chip can be used in stmpe_keypad_altfunc_init()
214 * keypad->{cols,rows} are a bitmask of which pins (of the ones useable in stmpe_keypad_altfunc_init()
221 if (keypad->cols & (1 << i)) { in stmpe_keypad_altfunc_init()
285 ret = stmpe_reg_write(stmpe, STMPE_KPC_COL, keypad->cols); in stmpe_keypad_chip_init()
325 keypad->cols |= 1 << col; in stmpe_keypad_fill_used_pins()
338 u32 cols; in stmpe_keypad_probe() local
366 error = matrix_keypad_parse_properties(&pdev->dev, &rows, &cols); in stmpe_keypad_probe()
370 error = matrix_keypad_build_keymap(NULL, NULL, rows, cols, in stmpe_keypad_probe()
[all...]
H A Dsamsung-keypad.c73 unsigned int cols; member
84 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_scan()
109 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_report()
262 pdata->cols = num_cols; in samsung_keypad_parse_dt()
334 if (!pdata->cols || pdata->cols > SAMSUNG_MAX_COLS) in samsung_keypad_probe()
339 pdata->cfg_gpio(pdata->rows, pdata->cols); in samsung_keypad_probe()
341 row_shift = get_count_order(pdata->cols); in samsung_keypad_probe()
372 keypad->cols = pdata->cols; in samsung_keypad_probe()
[all...]
H A Dadp5585-keys.c106 u32 cols = 0, rows = 0, pin; in adp5585_keys_parse_fw() local
156 * number of rows/cols as the maximum row/col used plus 1. This in adp5585_keys_parse_fw()
165 cols = find_last_bit(&kpad->keypad, kpad->info->max_cols + kpad->info->max_rows); in adp5585_keys_parse_fw()
166 if (cols < kpad->info->max_rows) in adp5585_keys_parse_fw()
170 cols = cols + 1 - kpad->info->max_rows; in adp5585_keys_parse_fw()
172 error = matrix_keypad_build_keymap(NULL, NULL, rows, cols, in adp5585_keys_parse_fw()
177 kpad->row_shift = get_count_order(cols); in adp5585_keys_parse_fw()
H A Dcros_ec_keyb.c36 * @cols: Number of columns in the keypad
50 unsigned int cols; member
154 for (col1 = 0; col1 < ckdev->cols; col1++) { in cros_ec_keyb_has_ghosting()
156 for (col2 = col1 + 1; col2 < ckdev->cols; col2++) { in cros_ec_keyb_has_ghosting()
193 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_process()
264 if (ckdev->ec->event_size != ckdev->cols) { in cros_ec_keyb_work()
319 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_compute_valid_keys()
596 err = matrix_keypad_parse_properties(dev, &ckdev->rows, &ckdev->cols); in cros_ec_keyb_register_matrix()
600 ckdev->valid_keys = devm_kzalloc(dev, ckdev->cols, GFP_KERNEL); in cros_ec_keyb_register_matrix()
604 ckdev->old_kb_state = devm_kzalloc(dev, ckdev->cols, GFP_KERNE in cros_ec_keyb_register_matrix()
[all...]
H A Dadp5588-keys.c127 * 10cols * 8rows are used.
188 u32 cols; member
335 for (i = 0; i < kpad->cols; i++) in adp5588_build_gpiomap()
602 ret = adp5588_write(client, KP_GPIO2, KP_SEL(kpad->cols) & 0xFF); in adp5588_setup()
606 ret = adp5588_write(client, KP_GPIO3, KP_SEL(kpad->cols) >> 8); in adp5588_setup()
657 &kpad->cols); in adp5588_fw_parse()
661 if (kpad->rows > ADP5588_ROWS_MAX || kpad->cols > ADP5588_COLS_MAX) { in adp5588_fw_parse()
662 dev_err(&client->dev, "Invalid nr of rows(%u) or cols(%u)\n", in adp5588_fw_parse()
663 kpad->rows, kpad->cols); in adp5588_fw_parse()
667 ret = matrix_keypad_build_keymap(NULL, NULL, kpad->rows, kpad->cols, in adp5588_fw_parse()
[all...]
H A Domap4-keypad.c80 unsigned int cols; member
279 &keypad_data->cols); in omap4_keypad_parse_dt()
432 keypad_data->row_shift = get_count_order(keypad_data->cols); in omap4_keypad_probe()
444 keypad_data->rows, keypad_data->cols, in omap4_keypad_probe()
H A Dpmic8xxx-keypad.c503 unsigned int rows, cols; in pmic8xxx_kp_probe() local
510 rc = matrix_keypad_parse_properties(&pdev->dev, &rows, &cols); in pmic8xxx_kp_probe()
514 if (cols > PM8XXX_MAX_COLS || rows > PM8XXX_MAX_ROWS || in pmic8xxx_kp_probe()
515 cols < PM8XXX_MIN_COLS) { in pmic8xxx_kp_probe()
537 kp->num_cols = cols; in pmic8xxx_kp_probe()
/linux/sound/pci/asihpi/
H A Dhpidebug.c53 int cols = 8; in hpi_debug_data() local
55 lines = DIV_ROUND_UP(len, cols); in hpi_debug_data()
62 for (k = 0; k < cols && i < len; i++, k++) in hpi_debug_data()
/linux/drivers/s390/char/
H A Draw3270.c45 int model, rows, cols; member
127 x = max_t(int, 0, rp->view->cols + x); in raw3270_buffer_address()
130 addr = (y * rp->view->cols) + x; in raw3270_buffer_address()
462 rp->cols = diag8c_data.width; in raw3270_size_device_vm()
479 rp->cols = 80; in raw3270_size_device_vm()
484 rp->cols = 80; in raw3270_size_device_vm()
489 rp->cols = 80; in raw3270_size_device_vm()
494 rp->cols = 132; in raw3270_size_device_vm()
510 rp->cols = 80; in raw3270_size_device()
515 rp->cols in raw3270_size_device()
[all...]
H A Dcon3270.c203 static int tty3270_input_size(int cols) in tty3270_input_size() argument
205 return cols * 2 - 11; in tty3270_input_size()
230 tp->view.cols * 2 - TTY3270_STATUS_AREA_SIZE - 2); in tty3270_add_prompt()
238 if (count < tp->view.cols * 2 - 11) in tty3270_add_prompt()
349 if (line->len < tp->view.cols) in tty3270_required_length()
364 if (line->len < tp->view.cols) in tty3270_add_reset_attributes()
692 len = tty3270_input_size(tp->view.cols) - 6 - rrq->rescnt; in tty3270_read_tasklet()
758 raw3270_request_set_data(rrq, tp->input, tty3270_input_size(tp->view.cols)); in tty3270_issue_read()
893 unsigned int cols, int *allocated_out) in tty3270_alloc_screen() argument
903 screen[lines].cells = kcalloc(cols, sizeo in tty3270_alloc_screen()
917 tty3270_alloc_recall(int cols) tty3270_alloc_recall() argument
[all...]
/linux/arch/mips/bcm63xx/
H A 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/arch/arm/mach-s3c/
H A Dsetup-keypad-s3c64xx.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()
H A Dkeypad.h25 extern void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols);
/linux/include/linux/input/
H A Dsamsung-keypad.h21 * @cols: number of keypad col supported.
32 unsigned int cols; member
36 void (*cfg_gpio)(unsigned int rows, unsigned int cols);
H A Dmatrix_keypad.h39 unsigned int rows, unsigned int cols,
43 unsigned int *rows, unsigned int *cols);
/linux/tools/lib/subcmd/
H A Dhelp.c132 int cols = 1, rows; in pretty_print_string_list() local
142 cols = max_cols / space; in pretty_print_string_list()
143 rows = (cmds->cnt + cols - 1) / cols; in pretty_print_string_list()
148 for (j = 0; j < cols; j++) { in pretty_print_string_list()
154 if (j == cols-1 || n + rows >= cmds->cnt) in pretty_print_string_list()
/linux/drivers/auxdisplay/
H A Dht16k33.c72 uint32_t cols; member
346 for (col = 0; col < keypad->cols; col++) { in ht16k33_keypad_scan()
360 memcpy(keypad->last_key_state, new_state, sizeof(u16) * keypad->cols); in ht16k33_keypad_scan()
498 u32 cols = HT16K33_MATRIX_KEYPAD_MAX_COLS; in ht16k33_keypad_probe() local
525 err = matrix_keypad_parse_properties(dev, &rows, &cols); in ht16k33_keypad_probe()
529 cols > HT16K33_MATRIX_KEYPAD_MAX_COLS) { in ht16k33_keypad_probe()
530 dev_err(dev, "%u rows or %u cols out of range in DT\n", rows, in ht16k33_keypad_probe()
531 cols); in ht16k33_keypad_probe()
536 keypad->cols = cols; in ht16k33_keypad_probe()
[all...]
/linux/drivers/video/console/
H A Dnewport_con.c202 int i, cols; in newport_get_screensize() local
217 cols = 0; in newport_get_screensize()
225 cols += (treg >> 7) & 0xfe; in newport_get_screensize()
231 if (cols) { in newport_get_screensize()
232 if (cols > newport_xsize) in newport_get_screensize()
233 newport_xsize = cols; in newport_get_screensize()
329 int cols, rows; in newport_init() local
331 cols = newport_xsize / 8; in newport_init()
335 vc->vc_cols = cols; in newport_init()
338 vc_resize(vc, cols, row in newport_init()
[all...]
/linux/include/linux/
H A Dvt_kern.h28 int __vc_resize(struct vc_data *vc, unsigned int cols, unsigned int lines,
46 static inline int vc_resize(struct vc_data *vc, unsigned int cols, in vc_resize() argument
49 return __vc_resize(vc, cols, lines, false); in vc_resize()
/linux/drivers/edac/
H A Dversal_edac.c974 union edac_info cols; in setup_column_address_map() local
980 cols.i = regval; in setup_column_address_map()
981 priv->col_bit[1] = cols.col1; in setup_column_address_map()
982 priv->col_bit[2] = cols.col2; in setup_column_address_map()
983 priv->col_bit[3] = cols.col3; in setup_column_address_map()
984 priv->col_bit[4] = cols.col4; in setup_column_address_map()
985 priv->col_bit[5] = cols.col5; in setup_column_address_map()
988 cols.i = regval; in setup_column_address_map()
989 priv->col_bit[6] = cols.col1; in setup_column_address_map()
990 priv->col_bit[7] = cols in setup_column_address_map()
[all...]
/linux/drivers/video/fbdev/core/
H A Dfbcon.c581 int cols, int rows, int new_cols, int new_rows) in fbcon_prepare_logo() argument
587 int cols, int rows, int new_cols, int new_rows) in fbcon_prepare_logo() argument
610 step = logo_lines * cols; in fbcon_prepare_logo()
611 for (r = q - logo_lines * cols; r < q; r++) in fbcon_prepare_logo()
618 int i = min(cols, new_cols); in fbcon_prepare_logo()
628 r = q - step - cols; in fbcon_prepare_logo()
631 r -= cols; in fbcon_prepare_logo()
965 int rows, cols; in fbcon_startup() local
1010 cols = FBCON_SWAP(ops->rotate, info->var.xres, info->var.yres); in fbcon_startup()
1012 cols / in fbcon_startup()
1033 int logo = 1, new_rows, new_cols, rows, cols; fbcon_init() local
1378 int rows, cols; fbcon_set_disp() local
2459 int cols, rows; fbcon_do_set_font() local
2681 int rows, cols; fbcon_modechanged() local
2719 int i, rows, cols, fg = -1; fbcon_set_all_vcs() local
[all...]

123