Home
last modified time | relevance | path

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

12

/drivers/input/
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()
34 __func__, key, row, col, rows, cols); in matrix_keypad_map_key()
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
74 unsigned int row_shift = get_count_order(cols); in matrix_keypad_parse_keymap()
109 if (!matrix_keypad_map_key(input_dev, rows, cols, in matrix_keypad_parse_keymap()
[all …]
/drivers/input/keyboard/
Domap-keypad.c43 unsigned int cols; member
78 for (col = 0; col < omap_kp->cols; col++) { in omap_kp_scan_keypad()
95 unsigned int row_shift = get_count_order(omap_kp_data->cols); in omap_kp_tasklet()
103 for (col = 0; col < omap_kp_data->cols; col++) { in omap_kp_tasklet()
185 if (!pdata->rows || !pdata->cols || !pdata->keymap_data) { in omap_kp_probe()
190 row_shift = get_count_order(pdata->cols); in omap_kp_probe()
218 omap_kp->cols = pdata->cols; in omap_kp_probe()
247 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()
321 error = matrix_keypad_build_keymap(NULL, NULL, rows, cols, NULL, input); in tca8418_keypad_probe()
343 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()
246 if (ckdev->ec->event_size != ckdev->cols) { in cros_ec_keyb_work()
301 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_compute_valid_keys()
535 err = matrix_keypad_parse_properties(dev, &ckdev->rows, &ckdev->cols); in cros_ec_keyb_register_matrix()
539 ckdev->valid_keys = devm_kzalloc(dev, ckdev->cols, GFP_KERNEL); in cros_ec_keyb_register_matrix()
543 ckdev->old_kb_state = devm_kzalloc(dev, ckdev->cols, GFP_KERNEL); in cros_ec_keyb_register_matrix()
571 err = matrix_keypad_build_keymap(NULL, NULL, ckdev->rows, ckdev->cols, in cros_ec_keyb_register_matrix()
[all …]
Dsamsung-keypad.c74 unsigned int cols; member
85 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_scan()
115 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_report()
269 pdata->cols = num_cols; in samsung_keypad_parse_dt()
342 if (!pdata->cols || pdata->cols > SAMSUNG_MAX_COLS) in samsung_keypad_probe()
347 pdata->cfg_gpio(pdata->rows, pdata->cols); in samsung_keypad_probe()
349 row_shift = get_count_order(pdata->cols); in samsung_keypad_probe()
382 keypad->cols = pdata->cols; in samsung_keypad_probe()
400 pdata->rows, pdata->cols, in samsung_keypad_probe()
Domap4-keypad.c76 unsigned int cols; member
138 for (col = 0; col < keypad_data->cols; col++) { in omap4_keypad_irq_thread_fn()
216 &keypad_data->cols); in omap4_keypad_parse_dt()
327 keypad_data->row_shift = get_count_order(keypad_data->cols); in omap4_keypad_probe()
339 keypad_data->rows, keypad_data->cols, in omap4_keypad_probe()
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()
Dadp5588-keys.c169 for (i = 0; i < pdata->cols; i++) in adp5588_build_gpiomap()
338 ret |= adp5588_write(client, KP_GPIO2, KP_SEL(pdata->cols) & 0xFF); in adp5588_setup()
339 ret |= adp5588_write(client, KP_GPIO3, KP_SEL(pdata->cols) >> 8); in adp5588_setup()
453 if (!pdata->rows || !pdata->cols || !pdata->keymap) { in adp5588_probe()
487 if (pin - GPI_PIN_COL_BASE + 1 <= pdata->cols) { in adp5588_probe()
Dtc3589x-keypad.c326 u32 cols, rows; in tc3589x_keypad_of_probe() local
337 of_property_read_u32(np, "keypad,num-columns", &cols); in tc3589x_keypad_of_probe()
339 plat->kcol = (u8) cols; in tc3589x_keypad_of_probe()
Dpxa27x_keypad.c123 u32 rows, cols; in pxa27x_keypad_matrix_key_parse_dt() local
126 error = matrix_keypad_parse_properties(dev, &rows, &cols); in pxa27x_keypad_matrix_key_parse_dt()
130 if (rows > MAX_MATRIX_KEY_ROWS || cols > MAX_MATRIX_KEY_COLS) { in pxa27x_keypad_matrix_key_parse_dt()
136 pdata->matrix_key_cols = cols; in pxa27x_keypad_matrix_key_parse_dt()
Dtwl4030_keypad.c354 if (!pdata->rows || !pdata->cols || !pdata->keymap_data) { in twl4030_kp_probe()
360 kp->n_cols = pdata->cols; in twl4030_kp_probe()
/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()
/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()
/drivers/usb/misc/sisusbvga/
Dsisusb_con.c202 int cols, rows; in sisusbcon_init() local
237 cols = 80; in sisusbcon_init()
257 c->vc_cols = cols; in sisusbcon_init()
260 vc_resize(c, cols, rows); in sisusbcon_init()
423 int i, length, cols; in sisusbcon_clear() local
441 cols = sisusb->sisusb_num_columns; in sisusbcon_clear()
443 if (width > cols) in sisusbcon_clear()
444 width = cols; in sisusbcon_clear()
448 sisusbcon_memsetw(dest, eattr, height * cols * 2); in sisusbcon_clear()
452 for (i = height; i > 0; i--, dest += cols) in sisusbcon_clear()
[all …]
/drivers/video/console/
Dnewport_con.c204 int i, cols; in newport_get_screensize() local
219 cols = 0; in newport_get_screensize()
227 cols += (treg >> 7) & 0xfe; in newport_get_screensize()
233 if (cols) { in newport_get_screensize()
234 if (cols > newport_xsize) in newport_get_screensize()
235 newport_xsize = cols; in newport_get_screensize()
331 int cols, rows; in newport_init() local
333 cols = newport_xsize / 8; in newport_init()
337 vc->vc_cols = cols; in newport_init()
340 vc_resize(vc, cols, rows); in newport_init()
/drivers/video/fbdev/core/
Dfbcon.c597 int cols, int rows, int new_cols, int new_rows) in fbcon_prepare_logo() argument
603 int cols, int rows, int new_cols, int new_rows) in fbcon_prepare_logo() argument
626 step = logo_lines * cols; in fbcon_prepare_logo()
627 for (r = q - logo_lines * cols; r < q; r++) in fbcon_prepare_logo()
634 int i = cols < new_cols ? cols : new_cols; in fbcon_prepare_logo()
644 r = q - step - cols; in fbcon_prepare_logo()
647 r -= cols; in fbcon_prepare_logo()
974 int rows, cols; in fbcon_startup() local
1059 cols = FBCON_SWAP(ops->rotate, info->var.xres, info->var.yres); in fbcon_startup()
1061 cols /= vc->vc_font.width; in fbcon_startup()
[all …]
/drivers/edac/
Dskx_common.c289 int banks = 16, ranks, rows, cols, npages; in skx_get_dimm_info() local
294 cols = numcol(mtr); in skx_get_dimm_info()
299 size = ((1ull << (rows + cols + ranks)) * banks) >> (20 - 3); in skx_get_dimm_info()
304 banks, 1 << ranks, rows, cols); in skx_get_dimm_info()
310 imc->chan[chan].dimms[dimmno].colbits = cols; in skx_get_dimm_info()
Dsb_edac.c721 int cols = (COL_WIDTH_BITS(mtr) + 10); in numcol() local
723 if (cols > 12) { in numcol()
725 cols, (unsigned int)COL_WIDTH_BITS(mtr), mtr); in numcol()
729 return 1 << cols; in numcol()
1589 unsigned int i, j, banks, ranks, rows, cols, npages; in __populate_dimms() local
1645 cols = 1 << 10; in __populate_dimms()
1647 ((u64) cols * ranks * banks * 8); in __populate_dimms()
1650 cols = numcol(mtr); in __populate_dimms()
1653 size = ((u64)rows * cols * banks * ranks) >> (20 - 3); in __populate_dimms()
1659 banks, ranks, rows, cols); in __populate_dimms()
/drivers/tty/vt/
Dvt.c152 unsigned int cols, int do_clear);
344 static struct uni_screen *vc_uniscr_alloc(unsigned int cols, unsigned int rows) in vc_uniscr_alloc() argument
351 memsize = cols * rows * sizeof(char32_t); in vc_uniscr_alloc()
362 p += cols * sizeof(char32_t); in vc_uniscr_alloc()
387 unsigned int x = vc->vc_x, cols = vc->vc_cols; in vc_uniscr_insert() local
389 memmove(&ln[x + nr], &ln[x], (cols - x - nr) * sizeof(*ln)); in vc_uniscr_insert()
400 unsigned int x = vc->vc_x, cols = vc->vc_cols; in vc_uniscr_delete() local
402 memcpy(&ln[x], &ln[x + nr], (cols - x - nr) * sizeof(*ln)); in vc_uniscr_delete()
403 memset32(&ln[cols - nr], ' ', nr); in vc_uniscr_delete()
425 unsigned int cols = vc->vc_cols; in vc_uniscr_clear_lines() local
[all …]
/drivers/char/
Dvirtio_console.c1319 static void set_console_size(struct port *port, u16 rows, u16 cols) in set_console_size() argument
1325 port->cons.ws.ws_col = cols; in set_console_size()
1623 __u16 cols; in handle_control_message() member
1631 set_console_size(port, size.rows, size.cols); in handle_control_message()
1825 u16 rows, cols; in config_work_handler() local
1828 virtio_cread(vdev, struct virtio_console_config, cols, &cols); in config_work_handler()
1832 set_console_size(port, rows, cols); in config_work_handler()
/drivers/input/touchscreen/
Delants_i2c.c413 u16 phy_x, phy_y, rows, cols, osr; in elants_i2c_query_ts_info() local
439 cols = resp[3] + resp[7] + resp[11]; in elants_i2c_query_ts_info()
479 if (rows == 0 || cols == 0 || osr == 0) { in elants_i2c_query_ts_info()
482 rows, cols, osr); in elants_i2c_query_ts_info()
487 ts->y_max = ELAN_TS_RESOLUTION(cols, osr); in elants_i2c_query_ts_info()
/drivers/media/pci/saa7134/
Dsaa7134-video.c629 int cols = 0, rows = 0, i; in setup_clipping() local
635 col[cols].position = clip_range(clips[i].c.left); in setup_clipping()
636 col[cols].enable = (1 << i); in setup_clipping()
637 cols++; in setup_clipping()
638 col[cols].position = clip_range(clips[i].c.left+clips[i].c.width); in setup_clipping()
639 col[cols].disable = (1 << i); in setup_clipping()
640 cols++; in setup_clipping()
649 sort(col, cols, sizeof col[0], cliplist_cmp, NULL); in setup_clipping()
651 set_cliplist(dev,0x380,col,cols,"cols"); in setup_clipping()

12