Home
last modified time | relevance | path

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

/linux-4.4.14/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()
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 …]
/linux-4.4.14/drivers/input/keyboard/
Dcros_ec_keyb.c50 unsigned int cols; member
86 for (col1 = 0; col1 < ckdev->cols; col1++) { in cros_ec_keyb_has_ghosting()
88 for (col2 = col1 + 1; col2 < ckdev->cols; col2++) { in cros_ec_keyb_has_ghosting()
128 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_process()
154 msg = kmalloc(sizeof(*msg) + ckdev->cols, GFP_KERNEL); in cros_ec_keyb_get_state()
160 msg->insize = ckdev->cols; in cros_ec_keyb_get_state()
169 memcpy(kb_state, msg->data, ckdev->cols); in cros_ec_keyb_get_state()
180 uint8_t kb_state[ckdev->cols]; in cros_ec_keyb_irq()
225 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_compute_valid_keys()
253 &ckdev->cols); in cros_ec_keyb_probe()
[all …]
Dtca8418_keypad.c235 u32 rows, u32 cols) in tca8418_configure() argument
248 reg += (~(~0 << cols)) << 8; in tca8418_configure()
272 u32 rows = 0, cols = 0; in tca8418_keypad_probe() local
286 cols = pdata->cols; in tca8418_keypad_probe()
293 err = matrix_keypad_parse_of_params(dev, &rows, &cols); in tca8418_keypad_probe()
304 if (!cols || cols > TCA8418_MAX_COLS) { in tca8418_keypad_probe()
316 row_shift = get_count_order(cols); in tca8418_keypad_probe()
328 error = tca8418_configure(keypad_data, rows, cols); in tca8418_keypad_probe()
345 error = matrix_keypad_build_keymap(keymap_data, NULL, rows, cols, in tca8418_keypad_probe()
Domap-keypad.c56 unsigned int cols; member
72 for (col = 0; col < omap_kp->cols; col++) in set_col_gpio_val()
116 for (col = 0; col < omap_kp->cols; col++) { in omap_kp_scan_keypad()
133 unsigned int row_shift = get_count_order(omap_kp_data->cols); in omap_kp_tasklet()
142 for (col = 0; col < omap_kp_data->cols; col++) { in omap_kp_tasklet()
254 if (!pdata->rows || !pdata->cols || !pdata->keymap_data) { in omap_kp_probe()
259 row_shift = get_count_order(pdata->cols); in omap_kp_probe()
287 omap_kp->cols = pdata->cols; in omap_kp_probe()
316 pdata->rows, pdata->cols, in omap_kp_probe()
Dstmpe-keypad.c128 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()
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()
Dbf54x-keys.c186 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()
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()
349 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_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()
Dtc3589x-keypad.c327 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()
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()
Dpxa27x_keypad.c126 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()
Dtwl4030_keypad.c363 if (!pdata->rows || !pdata->cols || !pdata->keymap_data) { in twl4030_kp_probe()
369 kp->n_cols = pdata->cols; in twl4030_kp_probe()
/linux-4.4.14/arch/x86/boot/compressed/
Dmisc.c124 static int lines, cols; variable
154 memcpy(vidmem, vidmem + cols * 2, (lines - 1) * cols * 2); in scroll()
155 for (i = (lines - 1) * cols * 2; i < lines * cols * 2; i += 2) in scroll()
188 lines == 0 && cols == 0) in __putstr()
202 vidmem[(x + cols * y) * 2] = c; in __putstr()
203 if (++x >= cols) { in __putstr()
216 pos = (x + cols * y) * 2; /* Update cursor position */ in __putstr()
411 cols = real_mode->screen_info.orig_video_cols; in decompress_kernel()
/linux-4.4.14/arch/mips/jz4740/
Dsetup.c39 u32 ctrl, bus, bank, rows, cols; in jz4740_detect_mem() local
46 cols = 8 + ((ctrl >> 26) & 7); in jz4740_detect_mem()
50 bus, bank, rows, cols); in jz4740_detect_mem()
53 size = 1 << (bus + bank + cols + rows); in jz4740_detect_mem()
/linux-4.4.14/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-4.4.14/include/linux/input/
Dmatrix_keypad.h80 unsigned int rows, unsigned int cols,
94 unsigned int *rows, unsigned int *cols);
97 unsigned int *rows, unsigned int *cols) in matrix_keypad_parse_of_params() argument
Dsamsung-keypad.h36 unsigned int cols; member
40 void (*cfg_gpio)(unsigned int rows, unsigned int cols);
Dtca8418_keypad.h39 unsigned cols; member
/linux-4.4.14/drivers/usb/misc/sisusbvga/
Dsisusb_con.c210 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()
435 int i, length, cols; in sisusbcon_clear() local
453 cols = sisusb->sisusb_num_columns; in sisusbcon_clear()
455 if (width > cols) in sisusbcon_clear()
456 width = cols; in sisusbcon_clear()
460 sisusbcon_memsetw(dest, eattr, height * cols * 2); in sisusbcon_clear()
464 for (i = height; i > 0; i--, dest += cols) in sisusbcon_clear()
[all …]
/linux-4.4.14/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-4.4.14/arch/arm/mach-s3c64xx/
Dsetup-keypad.c18 void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols) in samsung_keypad_cfg_gpio() argument
24 s3c_gpio_cfgrange_nopull(S3C64XX_GPL(0), cols, S3C_GPIO_SFN(3)); in samsung_keypad_cfg_gpio()
Dmach-smdk6410.c262 .cols = 8,
Dmach-crag6410.c211 .cols = 6,
/linux-4.4.14/drivers/s390/char/
Dtty3270.c145 if (count > tp->view.cols * 2 - 11) in tty3270_update_prompt()
146 count = tp->view.cols * 2 - 11; in tty3270_update_prompt()
150 if (count < tp->view.cols * 2 - 11) { in tty3270_update_prompt()
153 off = tp->view.cols * tp->view.rows - 9; in tty3270_update_prompt()
172 sizeof(blueprint) + tp->view.cols * 2 - 9); in tty3270_create_prompt()
179 offset = tp->view.cols * (tp->view.rows - 2); in tty3270_create_prompt()
181 offset = tp->view.cols * tp->view.rows - 9; in tty3270_create_prompt()
185 tp->input = alloc_string(&tp->freemem, tp->view.cols * 2 - 9 + 6); in tty3270_create_prompt()
218 offset = tp->view.cols * tp->view.rows - 9; in tty3270_create_status()
232 tp->view.cols * nr); in tty3270_update_string()
[all …]
Dcon3270.c113 cp->view.cols * (cp->view.rows - 1)); in con3270_create_status()
115 cp->view.cols * cp->view.rows - 8); in con3270_create_status()
127 if (s->len >= cp->view.cols - 5) in con3270_update_string()
130 cp->view.cols * (nr + 1)); in con3270_update_string()
254 cp->view.cols * cp->line_nr); in con3270_update()
460 size = (cp->cline->len < cp->view.cols - 5) ? in con3270_cline_end()
461 cp->cline->len + 4 : cp->view.cols; in con3270_cline_end()
464 if (s->len < cp->view.cols - 5) { in con3270_cline_end()
499 if (c == '\n' || cp->cline->len >= cp->view.cols) in con3270_write()
632 condev->cline = alloc_string(&condev->freemem, condev->view.cols); in con3270_init()
Draw3270.c39 short model, rows, cols; member
493 rp->cols = 80; in raw3270_size_device_vm()
498 rp->cols = 80; in raw3270_size_device_vm()
503 rp->cols = 80; in raw3270_size_device_vm()
508 rp->cols = 132; in raw3270_size_device_vm()
526 rp->cols = 80; in raw3270_size_device()
531 rp->cols = uap->uab.w; in raw3270_size_device()
539 rp->cols = uap->aua.wauai; in raw3270_size_device()
543 if (rp->rows == 24 && rp->cols == 80) in raw3270_size_device()
545 if (rp->rows == 32 && rp->cols == 80) in raw3270_size_device()
[all …]
Dfs3270.c358 iocb.col_cnt = fp->view.cols; in fs3270_ioctl()
473 ib = idal_buffer_alloc(2*fp->view.rows*fp->view.cols + 5, 0); in fs3270_open()
Draw3270.h162 unsigned int rows, cols; /* # of rows & colums of the view */ member
/linux-4.4.14/arch/mn10300/boot/compressed/
Dmisc.c168 static int lines, cols; variable
177 memcpy(vidmem, vidmem + cols * 2, (lines - 1) * cols * 2); in scroll()
178 for (i = (lines - 1) * cols * 2; i < lines * cols * 2; i += 2) in scroll()
/linux-4.4.14/tools/perf/util/
Dhelp.c76 int cols = 1, rows; in pretty_print_string_list() local
86 cols = max_cols / space; in pretty_print_string_list()
87 rows = (cmds->cnt + cols - 1) / cols; in pretty_print_string_list()
92 for (j = 0; j < cols; j++) { in pretty_print_string_list()
98 if (j == cols-1 || n + rows >= cmds->cnt) in pretty_print_string_list()
/linux-4.4.14/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()
Dfbcon.c557 int cols, int rows, int new_cols, int new_rows) in fbcon_prepare_logo() argument
563 int cols, int rows, int new_cols, int new_rows) in fbcon_prepare_logo() argument
586 step = logo_lines * cols; in fbcon_prepare_logo()
587 for (r = q - logo_lines * cols; r < q; r++) in fbcon_prepare_logo()
593 int i = cols < new_cols ? cols : new_cols; in fbcon_prepare_logo()
603 r = q - step - cols; in fbcon_prepare_logo()
606 r -= cols; in fbcon_prepare_logo()
927 int rows, cols; in fbcon_startup() local
1005 cols = FBCON_SWAP(ops->rotate, info->var.xres, info->var.yres); in fbcon_startup()
1007 cols /= vc->vc_font.width; in fbcon_startup()
[all …]
/linux-4.4.14/arch/arm/plat-samsung/include/plat/
Dkeypad.h29 extern void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols);
/linux-4.4.14/arch/blackfin/mach-bf548/include/mach/
Dbf54x_keys.h12 int cols; member
/linux-4.4.14/include/uapi/linux/
Dvirtio_console.h48 __u16 cols; member
/linux-4.4.14/include/linux/platform_data/
Dkeypad-omap.h20 int cols; member
/linux-4.4.14/include/linux/i2c/
Dadp5588.h144 int cols; /* Number of columns */ member
Dtwl.h624 unsigned cols; member
/linux-4.4.14/Documentation/fb/
Dgxfb.txt12 * It provides a nice large console (128 cols + 48 lines with 1024x768)
Dlxfb.txt12 * It provides a nice large console (128 cols + 48 lines with 1024x768)
Dpvr2fb.txt11 * It provides a nice large console (128 cols + 48 lines with 1024x768)
Daty128fb.txt11 * It provides a nice large console (128 cols + 48 lines with 1024x768)
Dvesafb.txt18 * It provides a nice large console (128 cols + 48 lines with 1024x768)
Dmatroxfb.txt11 * It provides a nice large console (128 cols + 48 lines with 1024x768)
/linux-4.4.14/tools/thermal/tmon/
Dtui.c288 int rows, cols; in show_dialogue() local
294 getmaxyx(w, rows, cols); in show_dialogue()
297 (void)cols; in show_dialogue()
/linux-4.4.14/drivers/char/
Dvirtio_console.c1349 static void set_console_size(struct port *port, u16 rows, u16 cols) in set_console_size() argument
1355 port->cons.ws.ws_col = cols; in set_console_size()
1664 __u16 cols; in handle_control_message() member
1672 set_console_size(port, size.rows, size.cols); in handle_control_message()
1853 u16 rows, cols; in config_work_handler() local
1856 virtio_cread(vdev, struct virtio_console_config, cols, &cols); in config_work_handler()
1860 set_console_size(port, rows, cols); in config_work_handler()
/linux-4.4.14/arch/arm/mach-omap1/
Dboard-palmte.c83 .cols = 8,
Dboard-palmtt.c146 .cols = 3,
Dboard-palmz71.c81 .cols = 8,
Dboard-nokia770.c74 .cols = 8,
Dboard-perseus2.c205 .cols = 8,
Dboard-fsample.c247 .cols = 8,
Dboard-innovator.c137 .cols = 8,
Dboard-h2.c260 .cols = 8,
Dboard-sx1.c214 .cols = 6,
Dboard-h3.c297 .cols = 8,
Dboard-osk.c348 .cols = 8,
Dboard-htcherald.c239 .cols = 7,
Dboard-ams-delta.c341 .cols = 8,
/linux-4.4.14/drivers/input/touchscreen/
Delants_i2c.c412 u16 phy_x, phy_y, rows, cols, osr; in elants_i2c_query_ts_info() local
438 cols = resp[3] + resp[7] + resp[11]; in elants_i2c_query_ts_info()
478 if (rows == 0 || cols == 0 || osr == 0) { in elants_i2c_query_ts_info()
481 rows, cols, osr); in elants_i2c_query_ts_info()
486 ts->y_max = ELAN_TS_RESOLUTION(cols, osr); in elants_i2c_query_ts_info()
/linux-4.4.14/drivers/edac/
Dsb_edac.c628 int cols = (COL_WIDTH_BITS(mtr) + 10); in numcol() local
630 if (cols > 12) { in numcol()
632 cols, (unsigned int)COL_WIDTH_BITS(mtr), mtr); in numcol()
636 return 1 << cols; in numcol()
932 unsigned i, j, banks, ranks, rows, cols, npages; in get_dimm_config() local
1007 cols = numcol(mtr); in get_dimm_config()
1009 size = ((u64)rows * cols * banks * ranks) >> (20 - 3); in get_dimm_config()
1015 banks, ranks, rows, cols); in get_dimm_config()
Di7core_edac.c447 static const int cols[] = { in numcol() local
450 return cols[col & 0x3]; in numcol()
594 u32 banks, ranks, rows, cols; in get_dimm_config() local
605 cols = numcol(MC_DOD_NUMCOL(dimm_dod[j])); in get_dimm_config()
608 size = (rows * cols * banks * ranks) >> (20 - 3); in get_dimm_config()
613 banks, ranks, rows, cols); in get_dimm_config()
/linux-4.4.14/arch/arm/boot/dts/
Dexynos4412-smdk4412.dts132 keypad_cols: keypad-cols {
Dexynos4210-smdkv310.dts153 keypad_cols: keypad-cols {
Dexynos4412-origen.dts501 keypad_cols: keypad-cols {
/linux-4.4.14/drivers/media/pci/saa7134/
Dsaa7134-video.c656 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()
/linux-4.4.14/drivers/tty/vt/
Dvt.c149 unsigned int cols, int do_clear);
846 unsigned int cols, unsigned int lines) in vc_do_resize() argument
863 if (cols > VC_RESIZE_MAXCOL || lines > VC_RESIZE_MAXROW) in vc_do_resize()
866 new_cols = (cols ? cols : vc->vc_cols); in vc_do_resize()
970 int vc_resize(struct vc_data *vc, unsigned int cols, unsigned int rows) in vc_resize() argument
972 return vc_do_resize(vc->port.tty, vc, cols, rows); in vc_resize()
2930 unsigned int cols, int do_clear) in vc_init() argument
2934 vc->vc_cols = cols; in vc_init()
2936 vc->vc_size_row = cols << 1; in vc_init()
3517 char cols[4]; in con_debug_enter() local
[all …]
/linux-4.4.14/include/linux/
Dvt_kern.h38 int vc_resize(struct vc_data *vc, unsigned int cols, unsigned int lines);
/linux-4.4.14/arch/arm/mach-omap2/
Dboard-ldp.c85 .cols = 6,
Dboard-rx51-peripherals.c447 .cols = 8,
/linux-4.4.14/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_main.c3025 u8 dw, rows, cols, banks, ranks; in netxen_sysfs_read_dimm() local
3044 cols = NETXEN_DIMM_NUMCOLS(val); in netxen_sysfs_read_dimm()
3087 if (!cols) { in netxen_sysfs_read_dimm()
3088 netdev_err(netdev, "Invalid no of columns %x\n", cols); in netxen_sysfs_read_dimm()
3129 dimm.size = ((1 << rows) * (1 << cols) * dw * banks * ranks) / 8; in netxen_sysfs_read_dimm()
/linux-4.4.14/arch/um/drivers/
Dchan_kern.c58 unsigned short *cols) in not_configged_window_size() argument
/linux-4.4.14/drivers/video/fbdev/sis/
Dsis_main.h160 u16 cols; member
/linux-4.4.14/Documentation/networking/
Dbatman-adv.txt11 cols won't be affected by any changes within the network. You can
/linux-4.4.14/arch/blackfin/mach-bf548/boards/
Dcm_bf548.c94 .cols = 4,
Dezkit.c133 .cols = 4,
/linux-4.4.14/include/linux/mfd/
Dcros_ec_commands.h1646 uint32_t cols; member
/linux-4.4.14/arch/blackfin/mach-bf537/boards/
Dstamp.c1872 .cols = 10,