Searched refs:cols (Results 1 - 25 of 56) sorted by relevance

123

/linux-master/arch/arm/mach-s3c/
H A Dsetup-keypad-s3c64xx.c13 void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols) argument
19 s3c_gpio_cfgrange_nopull(S3C64XX_GPL(0), cols, S3C_GPIO_SFN(3));
H A Dkeypad.h25 extern void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols);
/linux-master/include/linux/input/
H A Dsamsung-keypad.h21 * @cols: number of keypad col supported.
32 unsigned int cols; member in struct:samsung_keypad_platdata
36 void (*cfg_gpio)(unsigned int rows, unsigned int cols);
H A Dmatrix_keypad.h85 unsigned int rows, unsigned int cols,
89 unsigned int *rows, unsigned int *cols);
/linux-master/drivers/input/
H A Dmatrix-keymap.c23 unsigned int rows, unsigned int cols,
31 if (row >= rows || col >= cols) {
33 "%s: invalid keymap entry 0x%x (row: %d, col: %d, rows: %d, cols: %d)\n",
34 __func__, key, row, col, rows, cols);
49 * @cols: Returns number of matrix columns
53 unsigned int *rows, unsigned int *cols)
55 *rows = *cols = 0;
58 device_property_read_u32(dev, "keypad,num-columns", cols);
60 if (!*rows || !*cols) {
70 unsigned int rows, unsigned int cols,
22 matrix_keypad_map_key(struct input_dev *input_dev, unsigned int rows, unsigned int cols, unsigned int row_shift, unsigned int key) argument
52 matrix_keypad_parse_properties(struct device *dev, unsigned int *rows, unsigned int *cols) argument
69 matrix_keypad_parse_keymap(const char *propname, unsigned int rows, unsigned int cols, struct input_dev *input_dev) argument
150 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) argument
[all...]
/linux-master/sound/pci/asihpi/
H A Dhpidebug.c53 int cols = 8; local
55 lines = DIV_ROUND_UP(len, cols);
62 for (k = 0; k < cols && i < len; i++, k++)
/linux-master/include/uapi/linux/
H A Dvirtio_console.h48 __virtio16 cols; member in struct:virtio_console_config
/linux-master/include/linux/platform_data/
H A Dkeypad-omap.h17 int cols; member in struct:omap_kp_platform_data
/linux-master/drivers/input/keyboard/
H A Domap-keypad.c43 unsigned int cols; member in struct:omap_kp
75 for (col = 0; col < omap_kp->cols; col++) {
92 unsigned int row_shift = get_count_order(omap_kp_data->cols);
100 for (col = 0; col < omap_kp_data->cols; col++) {
182 if (!pdata->rows || !pdata->cols || !pdata->keymap_data) {
183 printk(KERN_ERR "No rows, cols or keymap_data from pdata\n");
187 row_shift = get_count_order(pdata->cols);
209 omap_kp->cols = pdata->cols;
235 pdata->rows, pdata->cols,
[all...]
H A Dtca8418_keypad.c235 u32 rows, u32 cols)
241 reg += (~(~0 << cols)) << 8;
267 u32 rows = 0, cols = 0; local
278 error = matrix_keypad_parse_properties(dev, &rows, &cols);
287 if (!cols || cols > TCA8418_MAX_COLS) {
292 row_shift = get_count_order(cols);
320 error = matrix_keypad_build_keymap(NULL, NULL, rows, cols, NULL, input);
342 error = tca8418_configure(keypad_data, rows, cols);
234 tca8418_configure(struct tca8418_keypad *keypad_data, u32 rows, u32 cols) argument
H A Dstmpe-keypad.c126 * @cols: bitmask for the columns
137 unsigned int cols; member in struct:stmpe_keypad
211 * {cols,rows}_gpios are bitmasks of which pins on the chip can be used
214 * keypad->{cols,rows} are a bitmask of which pins (of the ones useable
221 if (keypad->cols & (1 << i)) {
285 ret = stmpe_reg_write(stmpe, STMPE_KPC_COL, keypad->cols);
325 keypad->cols |= 1 << col;
338 u32 cols; local
366 error = matrix_keypad_parse_properties(&pdev->dev, &rows, &cols);
370 error = matrix_keypad_build_keymap(NULL, NULL, rows, cols,
[all...]
H A Dcros_ec_keyb.c36 * @cols: Number of columns in the keypad
51 unsigned int cols; member in struct:cros_ec_keyb
156 for (col1 = 0; col1 < ckdev->cols; col1++) {
158 for (col2 = col1 + 1; col2 < ckdev->cols; col2++) {
195 for (col = 0; col < ckdev->cols; col++) {
266 if (ckdev->ec->event_size != ckdev->cols) {
321 for (col = 0; col < ckdev->cols; col++) {
598 err = matrix_keypad_parse_properties(dev, &ckdev->rows, &ckdev->cols);
602 ckdev->valid_keys = devm_kzalloc(dev, ckdev->cols, GFP_KERNEL);
606 ckdev->old_kb_state = devm_kzalloc(dev, ckdev->cols, GFP_KERNE
[all...]
H A Dsamsung-keypad.c74 unsigned int cols; member in struct:samsung_keypad
85 for (col = 0; col < keypad->cols; col++) {
115 for (col = 0; col < keypad->cols; col++) {
268 pdata->cols = num_cols;
340 if (!pdata->cols || pdata->cols > SAMSUNG_MAX_COLS)
345 pdata->cfg_gpio(pdata->rows, pdata->cols);
347 row_shift = get_count_order(pdata->cols);
380 keypad->cols = pdata->cols;
[all...]
H A Dadp5588-keys.c127 * 10cols * 8rows are used.
188 u32 cols; member in struct:adp5588_kpad
348 for (i = 0; i < kpad->cols; i++)
608 ret = adp5588_write(client, KP_GPIO2, KP_SEL(kpad->cols) & 0xFF);
612 ret = adp5588_write(client, KP_GPIO3, KP_SEL(kpad->cols) >> 8);
651 &kpad->cols);
655 if (kpad->rows > ADP5588_ROWS_MAX || kpad->cols > ADP5588_COLS_MAX) {
656 dev_err(&client->dev, "Invalid nr of rows(%u) or cols(%u)\n",
657 kpad->rows, kpad->cols);
661 ret = matrix_keypad_build_keymap(NULL, NULL, kpad->rows, kpad->cols,
[all...]
H A Domap4-keypad.c80 unsigned int cols; member in struct:omap4_keypad
281 &keypad_data->cols);
434 keypad_data->row_shift = get_count_order(keypad_data->cols);
446 keypad_data->rows, keypad_data->cols,
/linux-master/arch/x86/boot/compressed/
H A Dmisc.c62 static int cols __section(".data");
100 memmove(vidmem, vidmem + cols * 2, (lines - 1) * cols * 2);
101 for (i = (lines - 1) * cols * 2; i < lines * cols * 2; i += 2)
133 if (lines == 0 || cols == 0)
147 vidmem[(x + cols * y) * 2] = c;
148 if (++x >= cols) {
161 pos = (x + cols * y) * 2; /* Update cursor position */
431 cols
[all...]
/linux-master/arch/mips/bcm63xx/
H A Dcpu.c258 unsigned int cols = 0, rows = 0, is_32bits = 0, banks = 0; local
272 cols = (val & SDRAM_CFG_COL_MASK) >> SDRAM_CFG_COL_SHIFT;
280 cols = (val & MEMC_CFG_COL_MASK) >> MEMC_CFG_COL_SHIFT;
289 cols += 8;
291 return 1 << (cols + rows + (is_32bits + 1) + banks);
/linux-master/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, argument
49 return __vc_resize(vc, cols, lines, false);
/linux-master/tools/lib/subcmd/
H A Dhelp.c130 int cols = 1, rows; local
140 cols = max_cols / space;
141 rows = (cmds->cnt + cols - 1) / cols;
146 for (j = 0; j < cols; j++) {
152 if (j == cols-1 || n + rows >= cmds->cnt)
/linux-master/drivers/s390/char/
H A Dcon3270.c201 static int tty3270_input_size(int cols) argument
203 return cols * 2 - 11;
228 tp->view.cols * 2 - TTY3270_STATUS_AREA_SIZE - 2);
236 if (count < tp->view.cols * 2 - 11)
347 if (line->len < tp->view.cols)
362 if (line->len < tp->view.cols)
690 len = tty3270_input_size(tp->view.cols) - 6 - rrq->rescnt;
756 raw3270_request_set_data(rrq, tp->input, tty3270_input_size(tp->view.cols));
891 unsigned int cols, int *allocated_out)
901 screen[lines].cells = kcalloc(cols, sizeo
890 tty3270_alloc_screen(struct tty3270 *tp, unsigned int rows, unsigned int cols, int *allocated_out) argument
915 tty3270_alloc_recall(int cols) argument
[all...]
H A Draw3270.c43 int model, rows, cols; member in struct:raw3270
125 x = max_t(int, 0, rp->view->cols + x);
128 addr = (y * rp->view->cols) + x;
458 rp->cols = diag8c_data.width;
475 rp->cols = 80;
480 rp->cols = 80;
485 rp->cols = 80;
490 rp->cols = 132;
506 rp->cols = 80;
511 rp->cols
[all...]
H A Draw3270.h82 unsigned int rows, cols; /* # of rows & colums of the view */ member in struct:raw3270_view
/linux-master/drivers/auxdisplay/
H A Dht16k33.c72 uint32_t cols; member in struct:ht16k33_keypad
359 for (col = 0; col < keypad->cols; col++) {
373 memcpy(keypad->last_key_state, new_state, sizeof(u16) * keypad->cols);
510 u32 cols = HT16K33_MATRIX_KEYPAD_MAX_COLS; local
537 err = matrix_keypad_parse_properties(dev, &rows, &cols);
541 cols > HT16K33_MATRIX_KEYPAD_MAX_COLS) {
542 dev_err(dev, "%u rows or %u cols out of range in DT\n", rows,
543 cols);
548 keypad->cols = cols;
[all...]
/linux-master/drivers/edac/
H A Dversal_edac.c971 union edac_info cols; local
977 cols.i = regval;
978 priv->col_bit[1] = cols.col1;
979 priv->col_bit[2] = cols.col2;
980 priv->col_bit[3] = cols.col3;
981 priv->col_bit[4] = cols.col4;
982 priv->col_bit[5] = cols.col5;
985 cols.i = regval;
986 priv->col_bit[6] = cols.col1;
987 priv->col_bit[7] = cols
[all...]
/linux-master/drivers/video/console/
H A Dnewport_con.c202 int i, cols; local
217 cols = 0;
225 cols += (treg >> 7) & 0xfe;
231 if (cols) {
232 if (cols > newport_xsize)
233 newport_xsize = cols;
329 int cols, rows; local
331 cols = newport_xsize / 8;
335 vc->vc_cols = cols;
338 vc_resize(vc, cols, row
[all...]

Completed in 185 milliseconds

123