/drivers/input/ |
D | matrix-keymap.c | 31 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() 54 unsigned int *rows, unsigned int *cols) in matrix_keypad_parse_of_params() argument 63 of_property_read_u32(np, "keypad,num-columns", cols); in matrix_keypad_parse_of_params() 64 if (!*rows || !*cols) { in matrix_keypad_parse_of_params() 74 unsigned int rows, unsigned int cols, in matrix_keypad_parse_of_keymap() argument 79 unsigned int row_shift = get_count_order(cols); in matrix_keypad_parse_of_keymap() 112 if (!matrix_keypad_map_key(input_dev, rows, cols, in matrix_keypad_parse_of_keymap() 121 unsigned int rows, unsigned int cols, in matrix_keypad_parse_of_keymap() argument [all …]
|
/drivers/input/keyboard/ |
D | cros_ec_keyb.c | 52 unsigned int cols; member 89 for (col1 = 0; col1 < ckdev->cols; col1++) { in cros_ec_keyb_has_ghosting() 91 for (col2 = col1 + 1; col2 < ckdev->cols; col2++) { in cros_ec_keyb_has_ghosting() 131 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_process() 182 if (ckdev->ec->event_size != ckdev->cols) { in cros_ec_keyb_work() 205 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_compute_valid_keys() 232 err = matrix_keypad_parse_of_params(dev, &ckdev->rows, &ckdev->cols); in cros_ec_keyb_probe() 236 ckdev->valid_keys = devm_kzalloc(dev, ckdev->cols, GFP_KERNEL); in cros_ec_keyb_probe() 240 ckdev->old_kb_state = devm_kzalloc(dev, ckdev->cols, GFP_KERNEL); in cros_ec_keyb_probe() 267 err = matrix_keypad_build_keymap(NULL, NULL, ckdev->rows, ckdev->cols, in cros_ec_keyb_probe() [all …]
|
D | tca8418_keypad.c | 236 u32 rows, u32 cols) in tca8418_configure() argument 249 reg += (~(~0 << cols)) << 8; in tca8418_configure() 273 u32 rows = 0, cols = 0; in tca8418_keypad_probe() local 287 cols = pdata->cols; in tca8418_keypad_probe() 294 err = matrix_keypad_parse_of_params(dev, &rows, &cols); in tca8418_keypad_probe() 305 if (!cols || cols > TCA8418_MAX_COLS) { in tca8418_keypad_probe() 317 row_shift = get_count_order(cols); in tca8418_keypad_probe() 329 error = tca8418_configure(keypad_data, rows, cols); in tca8418_keypad_probe() 346 error = matrix_keypad_build_keymap(keymap_data, NULL, rows, cols, in tca8418_keypad_probe()
|
D | omap-keypad.c | 56 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()
|
D | stmpe-keypad.c | 128 unsigned int cols; member 212 if (keypad->cols & (1 << i)) { in stmpe_keypad_altfunc_init() 276 ret = stmpe_reg_write(stmpe, STMPE_KPC_COL, keypad->cols); in stmpe_keypad_chip_init() 316 keypad->cols |= 1 << col; in stmpe_keypad_fill_used_pins() 329 u32 cols; in stmpe_keypad_probe() local 357 error = matrix_keypad_parse_of_params(&pdev->dev, &rows, &cols); in stmpe_keypad_probe() 361 error = matrix_keypad_build_keymap(NULL, NULL, rows, cols, in stmpe_keypad_probe() 370 stmpe_keypad_fill_used_pins(keypad, rows, cols); in stmpe_keypad_probe()
|
D | samsung-keypad.c | 78 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()
|
D | bf54x-keys.c | 186 if (!pdata->rows || !pdata->cols || !pdata->keymap) { in bfin_kpad_probe() 192 pdata->keymapsize > (pdata->rows * pdata->cols)) { in bfin_kpad_probe() 238 if (peripheral_request_list((u16 *)&per_cols[MAX_RC - pdata->cols], in bfin_kpad_probe() 307 bfin_write_KPAD_CTL((((pdata->cols - 1) << 13) & KPAD_COLEN) | in bfin_kpad_probe() 322 peripheral_free_list((u16 *)&per_cols[MAX_RC - pdata->cols]); in bfin_kpad_probe() 344 peripheral_free_list((u16 *)&per_cols[MAX_RC - pdata->cols]); in bfin_kpad_remove()
|
D | omap4-keypad.c | 79 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() 349 keypad_data->rows, keypad_data->cols, in omap4_keypad_probe()
|
D | pmic8xxx-keypad.c | 511 unsigned int rows, cols; in pmic8xxx_kp_probe() local 518 rc = matrix_keypad_parse_of_params(&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()
|
D | adp5588-keys.c | 169 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()
|
D | tc3589x-keypad.c | 327 u32 cols, rows; in tc3589x_keypad_of_probe() local 338 of_property_read_u32(np, "keypad,num-columns", &cols); in tc3589x_keypad_of_probe() 340 plat->kcol = (u8) cols; in tc3589x_keypad_of_probe()
|
D | pxa27x_keypad.c | 126 u32 rows, cols; in pxa27x_keypad_matrix_key_parse_dt() local 129 error = matrix_keypad_parse_of_params(dev, &rows, &cols); in pxa27x_keypad_matrix_key_parse_dt() 133 if (rows > MAX_MATRIX_KEY_ROWS || cols > MAX_MATRIX_KEY_COLS) { in pxa27x_keypad_matrix_key_parse_dt() 139 pdata->matrix_key_cols = cols; in pxa27x_keypad_matrix_key_parse_dt()
|
D | twl4030_keypad.c | 367 if (!pdata->rows || !pdata->cols || !pdata->keymap_data) { in twl4030_kp_probe() 373 kp->n_cols = pdata->cols; in twl4030_kp_probe()
|
/drivers/s390/char/ |
D | tty3270.c | 146 if (count > tp->view.cols * 2 - 11) in tty3270_update_prompt() 147 count = tp->view.cols * 2 - 11; in tty3270_update_prompt() 151 if (count < tp->view.cols * 2 - 11) { in tty3270_update_prompt() 154 off = tp->view.cols * tp->view.rows - 9; in tty3270_update_prompt() 173 sizeof(blueprint) + tp->view.cols * 2 - 9); in tty3270_create_prompt() 180 offset = tp->view.cols * (tp->view.rows - 2); in tty3270_create_prompt() 182 offset = tp->view.cols * tp->view.rows - 9; in tty3270_create_prompt() 186 tp->input = alloc_string(&tp->freemem, tp->view.cols * 2 - 9 + 6); in tty3270_create_prompt() 219 offset = tp->view.cols * tp->view.rows - 9; in tty3270_create_status() 233 tp->view.cols * nr); in tty3270_update_string() [all …]
|
D | raw3270.c | 39 short model, rows, cols; member 446 rp->cols = 80; in raw3270_size_device_vm() 451 rp->cols = 80; in raw3270_size_device_vm() 456 rp->cols = 80; in raw3270_size_device_vm() 461 rp->cols = 132; in raw3270_size_device_vm() 479 rp->cols = 80; in raw3270_size_device() 484 rp->cols = uap->uab.w; in raw3270_size_device() 492 rp->cols = uap->aua.wauai; in raw3270_size_device() 496 if (rp->rows == 24 && rp->cols == 80) in raw3270_size_device() 498 if (rp->rows == 32 && rp->cols == 80) in raw3270_size_device() [all …]
|
D | con3270.c | 113 cp->view.cols * (cp->view.rows - 1)); in con3270_create_status() 115 cp->view.cols * cp->view.rows - 8); in con3270_create_status() 135 cp->view.cols * (nr + 1)); in con3270_update_string() 259 cp->view.cols * cp->line_nr); in con3270_update() 464 size = (cp->cline->len < cp->view.cols - 5) ? in con3270_cline_end() 465 cp->cline->len + 4 : cp->view.cols; in con3270_cline_end() 468 if (cp->cline->len < cp->view.cols - 5) { in con3270_cline_end() 503 if (c == '\n' || cp->cline->len >= cp->view.cols) in con3270_write() 638 condev->cline = alloc_string(&condev->freemem, condev->view.cols); in con3270_init()
|
/drivers/usb/misc/sisusbvga/ |
D | sisusb_con.c | 210 int cols, rows; in sisusbcon_init() local 245 cols = 80; in sisusbcon_init() 265 c->vc_cols = cols; in sisusbcon_init() 268 vc_resize(c, cols, rows); in sisusbcon_init() 432 int i, length, cols; in sisusbcon_clear() local 450 cols = sisusb->sisusb_num_columns; in sisusbcon_clear() 452 if (width > cols) in sisusbcon_clear() 453 width = cols; in sisusbcon_clear() 457 sisusbcon_memsetw(dest, eattr, height * cols * 2); in sisusbcon_clear() 461 for (i = height; i > 0; i--, dest += cols) in sisusbcon_clear() [all …]
|
/drivers/video/console/ |
D | newport_con.c | 203 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()
|
D | fbcon.c | 556 int cols, int rows, int new_cols, int new_rows) in fbcon_prepare_logo() argument 562 int cols, int rows, int new_cols, int new_rows) in fbcon_prepare_logo() argument 585 step = logo_lines * cols; in fbcon_prepare_logo() 586 for (r = q - logo_lines * cols; r < q; r++) in fbcon_prepare_logo() 592 int i = cols < new_cols ? cols : new_cols; in fbcon_prepare_logo() 602 r = q - step - cols; in fbcon_prepare_logo() 605 r -= cols; in fbcon_prepare_logo() 926 int rows, cols; in fbcon_startup() local 1004 cols = FBCON_SWAP(ops->rotate, info->var.xres, info->var.yres); in fbcon_startup() 1006 cols /= vc->vc_font.width; in fbcon_startup() [all …]
|
/drivers/char/ |
D | virtio_console.c | 1363 static void set_console_size(struct port *port, u16 rows, u16 cols) in set_console_size() argument 1369 port->cons.ws.ws_col = cols; in set_console_size() 1688 __u16 cols; in handle_control_message() member 1696 set_console_size(port, size.rows, size.cols); in handle_control_message() 1877 u16 rows, cols; in config_work_handler() local 1880 virtio_cread(vdev, struct virtio_console_config, cols, &cols); in config_work_handler() 1884 set_console_size(port, rows, cols); in config_work_handler()
|
/drivers/edac/ |
D | skx_edac.c | 347 int banks = 16, ranks, rows, cols, npages; in get_dimm_info() local 354 cols = numcol(mtr); in get_dimm_info() 359 size = ((1ull << (rows + cols + ranks)) * banks) >> (20 - 3); in get_dimm_info() 364 banks, ranks, rows, cols); in get_dimm_info() 370 imc->chan[chan].dimms[dimmno].colbits = cols; in get_dimm_info()
|
D | sb_edac.c | 701 int cols = (COL_WIDTH_BITS(mtr) + 10); in numcol() local 703 if (cols > 12) { in numcol() 705 cols, (unsigned int)COL_WIDTH_BITS(mtr), mtr); in numcol() 709 return 1 << cols; in numcol() 1612 unsigned i, j, banks, ranks, rows, cols, npages; in get_dimm_config() local 1726 cols = 1 << 10; in get_dimm_config() 1728 ((u64) cols * ranks * banks * 8); in get_dimm_config() 1731 cols = numcol(mtr); in get_dimm_config() 1734 size = ((u64)rows * cols * banks * ranks) >> (20 - 3); in get_dimm_config() 1740 banks, ranks, rows, cols); in get_dimm_config()
|
/drivers/input/touchscreen/ |
D | elants_i2c.c | 417 u16 phy_x, phy_y, rows, cols, osr; in elants_i2c_query_ts_info() local 443 cols = resp[3] + resp[7] + resp[11]; in elants_i2c_query_ts_info() 483 if (rows == 0 || cols == 0 || osr == 0) { in elants_i2c_query_ts_info() 486 rows, cols, osr); in elants_i2c_query_ts_info() 491 ts->y_max = ELAN_TS_RESOLUTION(cols, osr); in elants_i2c_query_ts_info()
|
/drivers/media/pci/saa7134/ |
D | saa7134-video.c | 656 int cols = 0, rows = 0, i; in setup_clipping() local 662 col[cols].position = clip_range(clips[i].c.left); in setup_clipping() 663 col[cols].enable = (1 << i); in setup_clipping() 664 cols++; in setup_clipping() 665 col[cols].position = clip_range(clips[i].c.left+clips[i].c.width); in setup_clipping() 666 col[cols].disable = (1 << i); in setup_clipping() 667 cols++; in setup_clipping() 676 sort(col, cols, sizeof col[0], cliplist_cmp, NULL); in setup_clipping() 678 set_cliplist(dev,0x380,col,cols,"cols"); in setup_clipping()
|
/drivers/tty/vt/ |
D | vt.c | 149 unsigned int cols, int do_clear); 845 unsigned int cols, unsigned int lines) in vc_do_resize() argument 862 if (cols > VC_RESIZE_MAXCOL || lines > VC_RESIZE_MAXROW) in vc_do_resize() 865 new_cols = (cols ? cols : vc->vc_cols); in vc_do_resize() 974 int vc_resize(struct vc_data *vc, unsigned int cols, unsigned int rows) in vc_resize() argument 976 return vc_do_resize(vc->port.tty, vc, cols, rows); in vc_resize() 2943 unsigned int cols, int do_clear) in vc_init() argument 2947 vc->vc_cols = cols; in vc_init() 2949 vc->vc_size_row = cols << 1; in vc_init() 3530 char cols[4]; in con_debug_enter() local [all …]
|