/linux/drivers/input/ |
A D | matrix-keymap.c | 23 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() 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() 152 unsigned int rows, unsigned int cols, in matrix_keypad_build_keymap() argument [all …]
|
/linux/arch/x86/boot/compressed/ |
A D | misc.c | 55 static int lines, cols; variable 93 memmove(vidmem, vidmem + cols * 2, (lines - 1) * cols * 2); in scroll() 94 for (i = (lines - 1) * cols * 2; i < lines * cols * 2; i += 2) in scroll() 126 if (lines == 0 || cols == 0) in __putstr() 140 vidmem[(x + cols * y) * 2] = c; in __putstr() 141 if (++x >= cols) { in __putstr() 154 pos = (x + cols * y) * 2; /* Update cursor position */ in __putstr() 371 cols = boot_params->screen_info.orig_video_cols; in extract_kernel()
|
/linux/drivers/input/keyboard/ |
A D | omap-keypad.c | 43 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() 217 omap_kp->cols = pdata->cols; in omap_kp_probe() 246 pdata->rows, pdata->cols, in omap_kp_probe()
|
A D | tca8418_keypad.c | 235 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()
|
A D | stmpe-keypad.c | 136 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()
|
A D | samsung-keypad.c | 74 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() 268 pdata->cols = num_cols; in samsung_keypad_parse_dt() 341 if (!pdata->cols || pdata->cols > SAMSUNG_MAX_COLS) in samsung_keypad_probe() 346 pdata->cfg_gpio(pdata->rows, pdata->cols); in samsung_keypad_probe() 348 row_shift = get_count_order(pdata->cols); in samsung_keypad_probe() 381 keypad->cols = pdata->cols; in samsung_keypad_probe() 399 pdata->rows, pdata->cols, in samsung_keypad_probe()
|
A D | cros_ec_keyb.c | 53 unsigned int cols; member 144 for (col1 = 0; col1 < ckdev->cols; col1++) { in cros_ec_keyb_has_ghosting() 146 for (col2 = col1 + 1; col2 < ckdev->cols; col2++) { in cros_ec_keyb_has_ghosting() 183 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_process() 254 if (ckdev->ec->event_size != ckdev->cols) { in cros_ec_keyb_work() 309 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_compute_valid_keys() 544 err = matrix_keypad_parse_properties(dev, &ckdev->rows, &ckdev->cols); in cros_ec_keyb_register_matrix() 548 ckdev->valid_keys = devm_kzalloc(dev, ckdev->cols, GFP_KERNEL); in cros_ec_keyb_register_matrix() 552 ckdev->old_kb_state = devm_kzalloc(dev, ckdev->cols, GFP_KERNEL); in cros_ec_keyb_register_matrix() 580 err = matrix_keypad_build_keymap(NULL, NULL, ckdev->rows, ckdev->cols, in cros_ec_keyb_register_matrix() [all …]
|
A D | omap4-keypad.c | 79 unsigned int cols; member 276 &keypad_data->cols); in omap4_keypad_parse_dt() 433 keypad_data->row_shift = get_count_order(keypad_data->cols); in omap4_keypad_probe() 445 keypad_data->rows, keypad_data->cols, in omap4_keypad_probe()
|
A D | pmic8xxx-keypad.c | 503 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()
|
A 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()
|
A D | tc3589x-keypad.c | 326 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()
|
/linux/drivers/s390/char/ |
A D | tty3270.c | 147 if (count > tp->view.cols * 2 - 11) in tty3270_update_prompt() 148 count = tp->view.cols * 2 - 11; in tty3270_update_prompt() 234 tp->view.cols * nr); in tty3270_update_string() 866 tp->view.cols = tp->n_cols; in tty3270_resize_work() 883 ws.ws_col = tp->view.cols; in tty3270_resize_work() 897 tp->n_cols = cols; in tty3270_resize() 1140 if (line->len < tp->view.cols) in tty3270_convert_line() 1271 if (n > tp->view.cols - tp->cx) in tty3270_insert_characters() 1272 n = tp->view.cols - tp->cx; in tty3270_insert_characters() 1277 if (line->len > tp->view.cols) in tty3270_insert_characters() [all …]
|
A D | raw3270.c | 40 short model, rows, cols; member 443 rp->cols = 80; in raw3270_size_device_vm() 448 rp->cols = 80; in raw3270_size_device_vm() 453 rp->cols = 80; in raw3270_size_device_vm() 458 rp->cols = 132; in raw3270_size_device_vm() 476 rp->cols = 80; in raw3270_size_device() 481 rp->cols = uap->uab.w; in raw3270_size_device() 489 rp->cols = uap->aua.wauai; in raw3270_size_device() 493 if (rp->rows == 24 && rp->cols == 80) in raw3270_size_device() 707 rp->cols = 80; in raw3270_setup_device() [all …]
|
A D | con3270.c | 115 cp->view.cols * (cp->view.rows - 1)); in con3270_create_status() 117 cp->view.cols * cp->view.rows - 8); in con3270_create_status() 137 cp->view.cols * (nr + 1)); in con3270_update_string() 262 cp->view.cols * cp->line_nr); in con3270_update() 469 size = (cp->cline->len < cp->view.cols - 5) ? in con3270_cline_end() 470 cp->cline->len + 4 : cp->view.cols; in con3270_cline_end() 473 if (cp->cline->len < cp->view.cols - 5) { in con3270_cline_end() 508 if (c == '\n' || cp->cline->len >= cp->view.cols) in con3270_write() 640 condev->cline = alloc_string(&condev->freemem, condev->view.cols); in con3270_init()
|
/linux/drivers/usb/misc/sisusbvga/ |
A D | sisusb_con.c | 202 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() 424 int i, length, cols; in sisusbcon_clear() local 442 cols = sisusb->sisusb_num_columns; in sisusbcon_clear() 444 if (width > cols) in sisusbcon_clear() 445 width = cols; in sisusbcon_clear() 463 length = ((height * cols) - x - (cols - width - x)) * 2; in sisusbcon_clear() 789 eattr, lines * cols * 2); in sisusbcon_scroll_area() [all …]
|
/linux/arch/mips/bcm63xx/ |
A D | cpu.c | 258 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/sound/pci/asihpi/ |
A D | hpidebug.c | 53 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/tools/lib/subcmd/ |
A D | help.c | 108 int cols = 1, rows; in pretty_print_string_list() local 118 cols = max_cols / space; in pretty_print_string_list() 119 rows = (cmds->cnt + cols - 1) / cols; in pretty_print_string_list() 124 for (j = 0; j < cols; j++) { in pretty_print_string_list() 130 if (j == cols-1 || n + rows >= cmds->cnt) in pretty_print_string_list()
|
/linux/drivers/auxdisplay/ |
A D | ht16k33.c | 71 uint32_t cols; member 390 for (col = 0; col < keypad->cols; col++) { in ht16k33_keypad_scan() 404 memcpy(keypad->last_key_state, new_state, sizeof(u16) * keypad->cols); in ht16k33_keypad_scan() 521 u32 cols = HT16K33_MATRIX_KEYPAD_MAX_COLS; in ht16k33_keypad_probe() local 548 err = matrix_keypad_parse_properties(dev, &rows, &cols); in ht16k33_keypad_probe() 552 cols > HT16K33_MATRIX_KEYPAD_MAX_COLS) { in ht16k33_keypad_probe() 554 cols); in ht16k33_keypad_probe() 559 keypad->cols = cols; in ht16k33_keypad_probe() 560 keypad->row_shift = get_count_order(cols); in ht16k33_keypad_probe() 562 err = matrix_keypad_build_keymap(NULL, NULL, rows, cols, NULL, in ht16k33_keypad_probe()
|
/linux/arch/arm/mach-s3c/ |
A D | setup-keypad-s3c64xx.c | 13 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/include/linux/input/ |
A D | samsung-keypad.h | 32 unsigned int cols; member 36 void (*cfg_gpio)(unsigned int rows, unsigned int cols);
|
A D | matrix_keypad.h | 84 unsigned int rows, unsigned int cols, 88 unsigned int *rows, unsigned int *cols);
|
/linux/drivers/video/fbdev/core/ |
A D | fbcon.c | 587 step = logo_lines * cols; in fbcon_prepare_logo() 595 int i = cols < new_cols ? cols : new_cols; in fbcon_prepare_logo() 605 r = q - step - cols; in fbcon_prepare_logo() 608 r -= cols; in fbcon_prepare_logo() 934 int rows, cols; in fbcon_startup() local 996 cols /= vc->vc_font.width; in fbcon_startup() 1098 cols = vc->vc_cols; in fbcon_init() 1335 int rows, cols; in fbcon_set_disp() local 1922 int cols, rows; in fbcon_do_set_font() local 1926 cols /= w; in fbcon_do_set_font() [all …]
|
/linux/drivers/video/console/ |
A D | newport_con.c | 202 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, rows); in newport_init()
|
/linux/drivers/edac/ |
A D | skx_common.c | 340 int banks, ranks, rows, cols, npages; in skx_get_dimm_info() local 346 cols = imc->hbm_mc ? 6 : numcol(mtr); in skx_get_dimm_info() 362 size = ((1ull << (rows + cols + ranks)) * banks) >> (20 - 3); in skx_get_dimm_info() 367 banks, 1 << ranks, rows, cols); in skx_get_dimm_info() 373 imc->chan[chan].dimms[dimmno].colbits = cols; in skx_get_dimm_info()
|