Searched +full:num +full:- +full:cols (Results 1 – 25 of 28) sorted by relevance
12
1 // SPDX-License-Identifier: GPL-2.0-only3 * Copyright (C) ST-Ericsson SA 20105 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson61 * struct stmpe_keypad_variant - model-specific attributes63 * auto-increments on multiple read64 * @set_pullup: whether the pins need to have their pull-ups set90 .col_gpios = 0x000ff, /* GPIO 0 - 7 */91 .row_gpios = 0x0ff00, /* GPIO 8 - 15 */100 .col_gpios = 0x0000ff, /* GPIO 0 - 7*/101 .row_gpios = 0x1f7f00, /* GPIO 8-14, 16-20 */[all …]
1 // SPDX-License-Identifier: GPL-2.0-or-later23 #include <linux/input/samsung-keypad.h>74 unsigned int cols; member85 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_scan()86 if (keypad->type == KEYPAD_TYPE_S5PV210) { in samsung_keypad_scan()94 writel(val, keypad->base + SAMSUNG_KEYIFCOL); in samsung_keypad_scan()97 val = readl(keypad->base + SAMSUNG_KEYIFROW); in samsung_keypad_scan()98 row_state[col] = ~val & ((1 << keypad->rows) - 1); in samsung_keypad_scan()102 writel(0, keypad->base + SAMSUNG_KEYIFCOL); in samsung_keypad_scan()108 struct input_dev *input_dev = keypad->input_dev; in samsung_keypad_report()[all …]
1 // SPDX-License-Identifier: GPL-2.0-only3 * Copyright (C) ST-Ericsson SA 201073 * struct tc3589x_keypad_platform_data - platform specific keypad data95 * struct tc_keypad - data structure used by keypad driver117 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_init_key_hardware()118 const struct tc3589x_keypad_platform_data *board = keypad->board; in tc3589x_keypad_init_key_hardware()121 if (board->kcol > TC3589x_MAX_KPCOL || board->krow > TC3589x_MAX_KPROW) in tc3589x_keypad_init_key_hardware()122 return -EINVAL; in tc3589x_keypad_init_key_hardware()124 /* configure KBDSIZE 4 LSbits for cols and 4 MSbits for rows */ in tc3589x_keypad_init_key_hardware()126 (board->krow << KP_ROW_SHIFT) | board->kcol); in tc3589x_keypad_init_key_hardware()[all …]
1 // SPDX-License-Identifier: GPL-2.0-or-later6 * Copyright (c) 2009-2011, NVIDIA Corporation.80 unsigned char num; member156 val = readl(kbc->mmio + KBC_KP_ENT0_0 + i); in tegra_kbc_report_keys()165 keycodes[num_down] = kbc->keycode[scancode]; in tegra_kbc_report_keys()167 if ((keycodes[num_down] == KEY_FN) && kbc->use_fn_map) in tegra_kbc_report_keys()178 * Ghosting occurs if there are 3 keys such that - in tegra_kbc_report_keys()182 if (kbc->use_ghost_filter && num_down >= 3) { in tegra_kbc_report_keys()190 * and the other is in the same column as the i-th key. in tegra_kbc_report_keys()210 scancodes[i] += kbc->max_keys; in tegra_kbc_report_keys()[all …]
1 // SPDX-License-Identifier: GPL-2.0-only23 unsigned int rows, unsigned int cols, in matrix_keypad_map_key() argument26 unsigned short *keymap = input_dev->keycode; in matrix_keypad_map_key()31 if (row >= rows || col >= cols) { in matrix_keypad_map_key()32 dev_err(input_dev->dev.parent, in matrix_keypad_map_key()33 "%s: invalid keymap entry 0x%x (row: %d, col: %d, rows: %d, cols: %d)\n", in matrix_keypad_map_key()34 __func__, key, row, col, rows, cols); in matrix_keypad_map_key()39 __set_bit(code, input_dev->keybit); in matrix_keypad_map_key()45 * matrix_keypad_parse_properties() - Read properties of matrix keypad49 * @cols: Returns number of matrix columns[all …]
22 * PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.90 return (-1); in ipmi_tsol_command()106 rsp = intf->sendrecv(intf, &req); in ipmi_tsol_command()109 return (-1); in ipmi_tsol_command()111 if (rsp->ccode > 0) { in ipmi_tsol_command()113 val2str(rsp->ccode, completion_code_vals)); in ipmi_tsol_command()114 return (-1); in ipmi_tsol_command()150 rsp = intf->sendrecv(intf, &req); in ipmi_tsol_send_keystroke()154 return -1; in ipmi_tsol_send_keystroke()156 if (rsp->ccode > 0) { in ipmi_tsol_send_keystroke()[all …]
1 // SPDX-License-Identifier: GPL-2.0+84 * @num: number of return values expected86 * @return: non-zero indicates error88 static int term_read_reply(int *n, int num, char end_char) in term_read_reply() argument94 return -1; in term_read_reply()97 return -1; in term_read_reply()104 if (i >= num) in term_read_reply()105 return -1; in term_read_reply()111 return -1; in term_read_reply()116 n[i] += c - '0'; in term_read_reply()[all …]
1 // SPDX-License-Identifier: GPL-2.03 * IBM/3270 Driver - tty functions.8 * -- Copyright IBM Corp. 200337 #define TTY3270_SCREEN_PAGES 8 /* has to be power-of-two */38 #define TTY3270_RECALL_SIZE 16 /* has to be power-of-two */129 /* tty3270->update_flags. See tty3270_update for details. */142 mod_timer(&tp->timer, jiffies + expires); in tty3270_set_timer()147 return tp->view.rows - TTY3270_INPUT_AREA_ROWS; in tty3270_tty_rows()153 raw3270_buffer_address(tp->view.dev, cp, x, y); in tty3270_add_ba()188 return (line + incr) & (tp->allocated_lines - 1); in tty3270_line_increment()[all …]
1 = How to convert to -device & friends =7 -device parameter bus.10 where this address can be configured, devices provide a bus-specific16 SCSI scsi-id %u19 virtio-serial-bus nr %u20 ccid-bus slot %u23 Example: device i440FX-pcihost is on the root bus, and provides a PCI24 bus named pci.0. To put a FOO device into its slot 4, use -device25 FOO,bus=/i440FX-pcihost/pci.0,addr=4. The abbreviated form bus=pci.046 -drive, and guest device(s) with -device.[all …]
1 // SPDX-License-Identifier: GPL-2.05 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.12 /dts-v1/;14 #include "exynos-mfc-reserved-memory.dtsi"31 stdout-path = "serial1:115200n8";34 fixed-rate-clocks {36 compatible = "samsung,clock-xxti";37 clock-frequency = <0>;41 compatible = "samsung,clock-xusbxti";42 clock-frequency = <24000000>;[all …]
1 // SPDX-License-Identifier: GPL-2.05 * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.7 * Copyright (c) 2010-2011 Linaro Ltd.14 /dts-v1/;16 #include <dt-bindings/gpio/gpio.h>17 #include "exynos-mfc-reserved-memory.dtsi"34 stdout-path = "serial1:115200n8";37 fixed-rate-clocks {39 compatible = "samsung,clock-xxti";40 clock-frequency = <12000000>;[all …]
1 // SPDX-License-Identifier: GPL-2.05 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.12 /dts-v1/;14 #include <dt-bindings/clock/samsung,s2mps11.h>15 #include <dt-bindings/gpio/gpio.h>16 #include <dt-bindings/input/input.h>17 #include "exynos-mfc-reserved-memory.dtsi"34 stdout-path = "serial2:115200n8";38 compatible = "samsung,secure-firmware";42 mmc_reg: regulator-0 {[all …]
1 // SPDX-License-Identifier: GPL-2.0+4 * (C) Copyright 2001-20155 * DENX Software Engineering -- wd@denx.de6 * Compulab Ltd - http://compulab.co.il/7 * Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com35 if (!ops->putc_xy) in vidconsole_putc_xy()36 return -ENOSYS; in vidconsole_putc_xy()37 return ops->putc_xy(dev, x, y, ch); in vidconsole_putc_xy()45 if (!ops->move_rows) in vidconsole_move_rows()46 return -ENOSYS; in vidconsole_move_rows()[all …]
1 // SPDX-License-Identifier: GPL-2.017 * Code to check for different video-cards mostly by Galen Hunt,18 * <g-hunt@ee.utah.edu>20 * Rudimentary ISO 10646/Unicode/UTF-8 character set support by21 * Markus Kuhn, <mskuhn@immd4.informatik.uni-erlangen.de>.26 * Code for xterm like mouse click reporting by Peter Orbaek 20-Jul-9429 * User-defined bell sound, new setterm control sequences and printk30 * redirection by Martin Mares <mj@k332.feld.cvut.cz> 19-Nov-9535 * <geert@linux-m68k.org>, Jan 1997.39 * - Arno Griffioen <arno@usn.nl>[all …]
1 // SPDX-License-Identifier: GPL-2.05 * Dynamic diacritical handling - aeb@cwi.nl - Dec 19936 * Dynamic keymap and string allocation - aeb@cwi.nl - May 19947 * Restrict VT switching via ioctl() - grif@cs.ucr.edu - Dec 19958 * Some code moved for less code duplication - Andi Kleen - Mar 19979 * Check put/get_user, cleanups - acme@conectiva.com.br - Jun 200150 * while we're checking whether it's in-use. in vt_in_use()54 return vc && kref_read(&vc->port.kref) > 1; in vt_in_use()77 * ttys 0..MAX_NR_CONSOLES-1). Explicitly naming VT 0 is illegal, but using123 if (!(ve->event.event & event)) in vt_event_post()[all …]
1 // SPDX-License-Identifier: GPL-2.0-only3 * linux/arch/arm/mach-omap1/board-sx1.c5 * Modified from board-generic.c9 * Original version : Vladimir Ananiev (Vovan888-at-gmail com)29 #include <linux/platform_data/keypad-omap.h>30 #include <linux/omap-dma.h>33 #include <asm/mach-types.h>39 #include "board-sx1.h"54 return -ENODEV; in sx1_i2c_write_byte()55 msg->addr = devaddr; /* I2C address of chip */ in sx1_i2c_write_byte()[all …]
1 // SPDX-License-Identifier: GPL-2.0-only2 /* Intel Sandy Bridge -EN/-EP/-EX Memory Controller kernel module24 #include <asm/intel-family.h>68 0x60, 0x68, 0x70, 0x78, 0x80, /* 0-4 */69 0x88, 0x90, 0x98, 0xa0, 0xa8, /* 5-9 */70 0xb0, 0xb8, 0xc0, 0xc8, 0xd0, /* 10-14 */71 0xd8, 0xe0, 0xe8, 0xf0, 0xf8, /* 15-19 */72 0x100, 0x108, 0x110, 0x118, /* 20-23 */105 0x64, 0x6c, 0x74, 0x7c, 0x84, /* 0-4 */106 0x8c, 0x94, 0x9c, 0xa4, 0xac, /* 5-9 */[all …]
1 // SPDX-License-Identifier: GPL-2.0101 #define SWRM_DP_PORT_CTRL_BANK(n, m) (0x1124 + 0x100 * (n - 1) + 0x40 * m)102 #define SWRM_DP_PORT_CTRL_2_BANK(n, m) (0x1128 + 0x100 * (n - 1) + 0x40 * m)103 #define SWRM_DP_BLOCK_CTRL_1(n) (0x112C + 0x100 * (n - 1))104 #define SWRM_DP_BLOCK_CTRL2_BANK(n, m) (0x1130 + 0x100 * (n - 1) + 0x40 * m)105 #define SWRM_DP_PORT_HCTRL_BANK(n, m) (0x1134 + 0x100 * (n - 1) + 0x40 * m)106 #define SWRM_DP_BLOCK_CTRL3_BANK(n, m) (0x1138 + 0x100 * (n - 1) + 0x40 * m)107 #define SWRM_DP_SAMPLECTRL2_BANK(n, m) (0x113C + 0x100 * (n - 1) + 0x40 * m)108 #define SWRM_DIN_DPn_PCM_PORT_CTRL(n) (0x1054 + 0x100 * (n - 1))204 /* Port numbers are 1 - 14 */[all …]
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)3 ---5 $schema: http://devicetree.org/meta-schemas/core.yaml#10 - Jeff LaBundy <jeff@labundy.com>21 - azoteq,iqs7222a22 - azoteq,iqs7222b23 - azoteq,iqs7222c24 - azoteq,iqs7222d29 irq-gpios:32 Specifies the GPIO connected to the device's active-low RDY output.[all …]
1 /* SPDX-License-Identifier: GPL-2.0-or-later */3 * twl4030.h - header for TWL4030 PM and audio CODEC device5 * Copyright (C) 2005-2006 Texas Instruments, Inc.91 * Offset from TWL6030_IRQ_BASE / pdata->irq_base169 * Read and write several 8-bit registers at once.175 * Read and write single 8-bit registers226 return -EIO; in twl6030_mmc_card_detect()229 /*----------------------------------------------------------------------*/235 * a driver-private file, unless some of the registers in a block244 /*----------------------------------------------------------------------*/[all …]
2 # SPDX-License-Identifier: GPL-2.0-only21 # https://01.org/pm-graph23 # git@github.com:intel/pm-graph51 # ----------------- LIBRARIES --------------------73 print('[%09.3f] %s' % (time.time()-mystarttime, msg))81 # ----------------- CLASSES --------------------85 # A global, single-instance container used to107 cgtest = -1182 tmstart = 'SUSPEND START %Y%m%d-%H:%M:%S.%f'183 tmend = 'RESUME COMPLETE %Y%m%d-%H:%M:%S.%f'[all …]
2 * ©2008-2023 SpryMedia Ltd - datatables.net/license4 …-1!==this.indexOf(t,e=e===H?0:e)}var p,e,t,w=function(t,v){if(w.factory(t,v))return w;if(this inst… method in AnonymousClasscadf2a3e16b01
2 * Use of this source code is governed by a BSD-style license that can be18 * - CMD is the command code. (defined by EC_CMD_ constants)19 * - ERR is the error code. (defined by EC_RES_ constants)20 * - Px is the optional payload.23 * - S is the checksum which is the sum of all payload bytes.59 /* The actual block is 0x800-0x8ff, but some BIOSes think it's 0x880-0x8ff79 #define EC_MEMMAP_TEMP_SENSOR 0x00 /* Temp sensors 0x00 - 0x0f */80 #define EC_MEMMAP_FAN 0x10 /* Fan speeds 0x10 - 0x17 */81 #define EC_MEMMAP_TEMP_SENSOR_B 0x18 /* More temp sensors 0x18 - 0x1f */83 #define EC_MEMMAP_ID_VERSION 0x22 /* Version of data in 0x20 - 0x2f */[all …]
14 "-h or -help display this help and exit\n", QEMU_ARCH_ALL)16 ``-h``21 "-version display version information and exit\n", QEMU_ARCH_ALL)23 ``-version``28 "-machine [type=]name[,prop[=value][,...]]\n"29 " selects emulated machine ('-machine help' for list)\n"33 " dump-guest-core=on|off include guest memory in a core dump (default=on)\n"34 " mem-merge=on|off controls memory merge support (default: on)\n"35 " aes-key-wrap=on|off controls support for AES key wrapping (default=on)\n"36 " dea-key-wrap=on|off controls support for DEA key wrapping (default=on)\n"[all …]
1 /* SPDX-License-Identifier: GPL-2.0-only */7 * NOTE: This file is auto-generated from ChromeOS EC Open Source code from52 * The actual block is 0x800-0x8ff, but some BIOSes think it's 0x880-0x8ff77 #define EC_MEMMAP_TEMP_SENSOR 0x00 /* Temp sensors 0x00 - 0x0f */78 #define EC_MEMMAP_FAN 0x10 /* Fan speeds 0x10 - 0x17 */79 #define EC_MEMMAP_TEMP_SENSOR_B 0x18 /* More temp sensors 0x18 - 0x1f */81 #define EC_MEMMAP_ID_VERSION 0x22 /* Version of data in 0x20 - 0x2f */82 #define EC_MEMMAP_THERMAL_VERSION 0x23 /* Version of data in 0x00 - 0x1f */83 #define EC_MEMMAP_BATTERY_VERSION 0x24 /* Version of data in 0x40 - 0x7f */84 #define EC_MEMMAP_SWITCHES_VERSION 0x25 /* Version of data in 0x30 - 0x33 */[all …]