Home
last modified time | relevance | path

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

12345

/kernel/linux/linux-5.10/drivers/input/
H A Dmatrix-keymap.c23 unsigned int rows, unsigned int cols, in matrix_keypad_map_key()
31 if (row >= rows || col >= cols) { 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()
49 * @cols: Returns number of matrix columns
53 unsigned int *rows, unsigned int *cols) in matrix_keypad_parse_properties()
55 *rows = *cols = 0; in matrix_keypad_parse_properties()
58 device_property_read_u32(dev, "keypad,num-columns", cols); 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()
22 matrix_keypad_map_key(struct input_dev *input_dev, unsigned int rows, unsigned int cols, unsigned int row_shift, unsigned int key) matrix_keypad_map_key() argument
52 matrix_keypad_parse_properties(struct device *dev, unsigned int *rows, unsigned int *cols) matrix_keypad_parse_properties() argument
69 matrix_keypad_parse_keymap(const char *propname, unsigned int rows, unsigned int cols, struct input_dev *input_dev) matrix_keypad_parse_keymap() 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) matrix_keypad_build_keymap() argument
[all...]
/kernel/linux/linux-6.6/drivers/input/
H A Dmatrix-keymap.c23 unsigned int rows, unsigned int cols, in matrix_keypad_map_key()
31 if (row >= rows || col >= cols) { 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()
49 * @cols: Returns number of matrix columns
53 unsigned int *rows, unsigned int *cols) in matrix_keypad_parse_properties()
55 *rows = *cols = 0; in matrix_keypad_parse_properties()
58 device_property_read_u32(dev, "keypad,num-columns", cols); 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()
22 matrix_keypad_map_key(struct input_dev *input_dev, unsigned int rows, unsigned int cols, unsigned int row_shift, unsigned int key) matrix_keypad_map_key() argument
52 matrix_keypad_parse_properties(struct device *dev, unsigned int *rows, unsigned int *cols) matrix_keypad_parse_properties() argument
69 matrix_keypad_parse_keymap(const char *propname, unsigned int rows, unsigned int cols, struct input_dev *input_dev) matrix_keypad_parse_keymap() 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) matrix_keypad_build_keymap() argument
[all...]
/kernel/linux/linux-5.10/sound/pci/asihpi/
H A Dhpidebug.c53 int cols = 8; in hpi_debug_data() local
55 lines = (len + cols - 1) / cols; in hpi_debug_data()
62 for (k = 0; k < cols && i < len; i++, k++) in hpi_debug_data()
/kernel/linux/linux-5.10/arch/x86/boot/compressed/
H A Dmisc.c52 static int lines, cols; variable
90 memmove(vidmem, vidmem + cols * 2, (lines - 1) * cols * 2); in scroll()
91 for (i = (lines - 1) * cols * 2; i < lines * cols * 2; i += 2) in scroll()
123 if (lines == 0 || cols == 0) in __putstr()
137 vidmem[(x + cols * y) * 2] = c; in __putstr()
138 if (++x >= cols) { in __putstr()
151 pos = (x + cols * y) * 2; /* Update cursor position */ in __putstr()
368 cols in extract_kernel()
[all...]
/kernel/linux/linux-6.6/arch/x86/boot/compressed/
H A Dmisc.c61 static int cols __section(".data");
99 memmove(vidmem, vidmem + cols * 2, (lines - 1) * cols * 2); in scroll()
100 for (i = (lines - 1) * cols * 2; i < lines * cols * 2; i += 2) in scroll()
132 if (lines == 0 || cols == 0) in __putstr()
146 vidmem[(x + cols * y) * 2] = c; in __putstr()
147 if (++x >= cols) { in __putstr()
160 pos = (x + cols * y) * 2; /* Update cursor position */ in __putstr()
401 cols in extract_kernel()
[all...]
/kernel/linux/linux-5.10/drivers/input/keyboard/
H A Dtca8418_keypad.c235 u32 rows, u32 cols) in tca8418_configure()
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()
234 tca8418_configure(struct tca8418_keypad *keypad_data, u32 rows, u32 cols) tca8418_configure() argument
H A Domap-keypad.c43 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()
186 printk(KERN_ERR "No rows, cols or keymap_data from pdata\n"); in omap_kp_probe()
190 row_shift = get_count_order(pdata->cols); in omap_kp_probe()
218 omap_kp->cols = pdata->cols; in omap_kp_probe()
247 pdata->rows, pdata->cols, in omap_kp_probe()
[all...]
H A Dstmpe-keypad.c125 * @cols: bitmask for the columns
136 unsigned int cols; member
210 * {cols,rows}_gpios are bitmasks of which pins on the chip can be used in stmpe_keypad_altfunc_init()
213 * keypad->{cols,rows} are a bitmask of which pins (of the ones useable in stmpe_keypad_altfunc_init()
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()
[all...]
H A Dsamsung-keypad.c74 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()
269 pdata->cols = num_cols; in samsung_keypad_parse_dt()
342 if (!pdata->cols || pdata->cols > SAMSUNG_MAX_COLS) in samsung_keypad_probe()
347 pdata->cfg_gpio(pdata->rows, pdata->cols); in samsung_keypad_probe()
349 row_shift = get_count_order(pdata->cols); in samsung_keypad_probe()
382 keypad->cols = pdata->cols; in samsung_keypad_probe()
[all...]
H A Dcros_ec_keyb.c32 * @cols: Number of columns in the keypad
46 unsigned int cols; member
135 for (col1 = 0; col1 < ckdev->cols; col1++) { in cros_ec_keyb_has_ghosting()
137 for (col2 = col1 + 1; col2 < ckdev->cols; col2++) { in cros_ec_keyb_has_ghosting()
174 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_process()
245 if (ckdev->ec->event_size != ckdev->cols) { in cros_ec_keyb_work()
300 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_compute_valid_keys()
530 err = matrix_keypad_parse_properties(dev, &ckdev->rows, &ckdev->cols); in cros_ec_keyb_register_matrix()
534 ckdev->valid_keys = devm_kzalloc(dev, ckdev->cols, GFP_KERNEL); in cros_ec_keyb_register_matrix()
538 ckdev->old_kb_state = devm_kzalloc(dev, ckdev->cols, GFP_KERNE in cros_ec_keyb_register_matrix()
[all...]
/kernel/linux/linux-6.6/drivers/input/keyboard/
H A Domap-keypad.c44 unsigned int cols; member
79 for (col = 0; col < omap_kp->cols; col++) { in omap_kp_scan_keypad()
96 unsigned int row_shift = get_count_order(omap_kp_data->cols); in omap_kp_tasklet()
104 for (col = 0; col < omap_kp_data->cols; col++) { in omap_kp_tasklet()
186 if (!pdata->rows || !pdata->cols || !pdata->keymap_data) { in omap_kp_probe()
187 printk(KERN_ERR "No rows, cols or keymap_data from pdata\n"); in omap_kp_probe()
191 row_shift = get_count_order(pdata->cols); in omap_kp_probe()
218 omap_kp->cols = pdata->cols; in omap_kp_probe()
247 pdata->rows, pdata->cols, in omap_kp_probe()
[all...]
H A Dtca8418_keypad.c235 u32 rows, u32 cols) in tca8418_configure()
241 reg += (~(~0 << cols)) << 8; in tca8418_configure()
267 u32 rows = 0, cols = 0; in tca8418_keypad_probe() local
278 error = matrix_keypad_parse_properties(dev, &rows, &cols); in tca8418_keypad_probe()
287 if (!cols || cols > TCA8418_MAX_COLS) { in tca8418_keypad_probe()
292 row_shift = get_count_order(cols); in tca8418_keypad_probe()
320 error = matrix_keypad_build_keymap(NULL, NULL, rows, cols, NULL, input); in tca8418_keypad_probe()
342 error = tca8418_configure(keypad_data, rows, cols); in tca8418_keypad_probe()
234 tca8418_configure(struct tca8418_keypad *keypad_data, u32 rows, u32 cols) tca8418_configure() argument
H A Dstmpe-keypad.c126 * @cols: bitmask for the columns
137 unsigned int cols; member
211 * {cols,rows}_gpios are bitmasks of which pins on the chip can be used in stmpe_keypad_altfunc_init()
214 * keypad->{cols,rows} are a bitmask of which pins (of the ones useable in stmpe_keypad_altfunc_init()
221 if (keypad->cols & (1 << i)) { in stmpe_keypad_altfunc_init()
285 ret = stmpe_reg_write(stmpe, STMPE_KPC_COL, keypad->cols); in stmpe_keypad_chip_init()
325 keypad->cols |= 1 << col; in stmpe_keypad_fill_used_pins()
338 u32 cols; in stmpe_keypad_probe() local
366 error = matrix_keypad_parse_properties(&pdev->dev, &rows, &cols); in stmpe_keypad_probe()
370 error = matrix_keypad_build_keymap(NULL, NULL, rows, cols, in stmpe_keypad_probe()
[all...]
H A Dsamsung-keypad.c74 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()
340 if (!pdata->cols || pdata->cols > SAMSUNG_MAX_COLS) in samsung_keypad_probe()
345 pdata->cfg_gpio(pdata->rows, pdata->cols); in samsung_keypad_probe()
347 row_shift = get_count_order(pdata->cols); in samsung_keypad_probe()
380 keypad->cols = pdata->cols; in samsung_keypad_probe()
[all...]
/kernel/linux/linux-6.6/sound/pci/asihpi/
H A Dhpidebug.c53 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()
/kernel/linux/linux-5.10/drivers/auxdisplay/
H A Dht16k33.c53 uint32_t cols; member
272 for (col = 0; col < keypad->cols; col++) { in ht16k33_keypad_scan()
286 memcpy(keypad->last_key_state, new_state, sizeof(u16) * keypad->cols); in ht16k33_keypad_scan()
331 u32 cols = HT16K33_MATRIX_KEYPAD_MAX_COLS; in ht16k33_keypad_probe() local
358 err = matrix_keypad_parse_of_params(&client->dev, &rows, &cols); in ht16k33_keypad_probe()
362 cols > HT16K33_MATRIX_KEYPAD_MAX_COLS) { in ht16k33_keypad_probe()
363 dev_err(&client->dev, "%u rows or %u cols out of range in DT\n", in ht16k33_keypad_probe()
364 rows, cols); in ht16k33_keypad_probe()
369 keypad->cols = cols; in ht16k33_keypad_probe()
[all...]
/kernel/linux/linux-6.6/drivers/s390/char/
H A Draw3270.c41 int model, rows, cols; member
123 x = max_t(int, 0, rp->view->cols + x); in raw3270_buffer_address()
126 addr = (y * rp->view->cols) + x; in raw3270_buffer_address()
456 rp->cols = diag8c_data.width; in raw3270_size_device_vm()
473 rp->cols = 80; in raw3270_size_device_vm()
478 rp->cols = 80; in raw3270_size_device_vm()
483 rp->cols = 80; in raw3270_size_device_vm()
488 rp->cols = 132; in raw3270_size_device_vm()
504 rp->cols = 80; in raw3270_size_device()
509 rp->cols in raw3270_size_device()
[all...]
H A Dcon3270.c201 static int tty3270_input_size(int cols) in tty3270_input_size() argument
203 return cols * 2 - 11; in tty3270_input_size()
228 tp->view.cols * 2 - TTY3270_STATUS_AREA_SIZE - 2); in tty3270_add_prompt()
236 if (count < tp->view.cols * 2 - 11) in tty3270_add_prompt()
347 if (line->len < tp->view.cols) in tty3270_required_length()
362 if (line->len < tp->view.cols) in tty3270_add_reset_attributes()
690 len = tty3270_input_size(tp->view.cols) - 6 - rrq->rescnt; in tty3270_read_tasklet()
756 raw3270_request_set_data(rrq, tp->input, tty3270_input_size(tp->view.cols)); in tty3270_issue_read()
891 unsigned int cols, int *allocated_out) in tty3270_alloc_screen()
901 screen[lines].cells = kcalloc(cols, sizeo in tty3270_alloc_screen()
890 tty3270_alloc_screen(struct tty3270 *tp, unsigned int rows, unsigned int cols, int *allocated_out) tty3270_alloc_screen() argument
915 tty3270_alloc_recall(int cols) tty3270_alloc_recall() argument
[all...]
/kernel/linux/linux-5.10/drivers/s390/char/
H A Dtty3270.c147 if (count > tp->view.cols * 2 - 11) in tty3270_update_prompt()
148 count = tp->view.cols * 2 - 11; in tty3270_update_prompt()
152 if (count < tp->view.cols * 2 - 11) { in tty3270_update_prompt()
155 off = tp->view.cols * tp->view.rows - 9; in tty3270_update_prompt()
174 sizeof(blueprint) + tp->view.cols * 2 - 9); in tty3270_create_prompt()
181 offset = tp->view.cols * (tp->view.rows - 2); in tty3270_create_prompt()
183 offset = tp->view.cols * tp->view.rows - 9; in tty3270_create_prompt()
187 tp->input = alloc_string(&tp->freemem, tp->view.cols * 2 - 9 + 6); in tty3270_create_prompt()
220 offset = tp->view.cols * tp->view.rows - 9; in tty3270_create_status()
234 tp->view.cols * n in tty3270_update_string()
805 tty3270_alloc_screen(unsigned int rows, unsigned int cols) tty3270_alloc_screen() argument
887 tty3270_resize(struct raw3270_view *view, int model, int rows, int cols) tty3270_resize() argument
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-s3c/
H A Dsetup-keypad-s3c64xx.c13 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()
/kernel/linux/linux-6.6/arch/arm/mach-s3c/
H A Dsetup-keypad-s3c64xx.c13 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()
/kernel/linux/linux-5.10/include/linux/input/
H A Dsamsung-keypad.h21 * @cols: number of keypad col supported.
32 unsigned int cols; member
36 void (*cfg_gpio)(unsigned int rows, unsigned int cols);
/kernel/linux/linux-6.6/include/linux/input/
H A Dsamsung-keypad.h21 * @cols: number of keypad col supported.
32 unsigned int cols; member
36 void (*cfg_gpio)(unsigned int rows, unsigned int cols);
/kernel/linux/linux-5.10/arch/mips/bcm63xx/
H A 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()
/kernel/linux/linux-6.6/arch/mips/bcm63xx/
H A 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()

Completed in 16 milliseconds

12345