Home
last modified time | relevance | path

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

12345

/openbmc/linux/drivers/input/
H A Dmatrix-keymap.c23 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()
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() 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()
[all …]
/openbmc/u-boot/arch/arm/mach-sunxi/
H A Ddram_sun50i_h6.c52 u8 cols; member
341 u8 cols = para->cols; in mctl_set_addrmap() local
347 mctl_ctl->addrmap[0] = rows + cols - 3; in mctl_set_addrmap()
352 mctl_ctl->addrmap[1] = (cols - 2) | (cols - 2) << 8 | (cols - 2) << 16; in mctl_set_addrmap()
356 switch (cols) { in mctl_set_addrmap()
382 mctl_ctl->addrmap[5] = (cols - 3) | ((cols - 3) << 8) | ((cols - 3) << 16) | ((cols - 3) << 24); in mctl_set_addrmap()
385 mctl_ctl->addrmap[6] = (cols - 3) | 0x0F0F0F00; in mctl_set_addrmap()
389 mctl_ctl->addrmap[6] = (cols - 3) | ((cols - 3) << 8) | 0x0F0F0000; in mctl_set_addrmap()
393 mctl_ctl->addrmap[6] = (cols - 3) | ((cols - 3) << 8) | ((cols - 3) << 16) | 0x0F000000; in mctl_set_addrmap()
397 mctl_ctl->addrmap[6] = (cols - 3) | ((cols - 3) << 8) | ((cols - 3) << 16) | ((cols - 3) << 24); in mctl_set_addrmap()
[all …]
/openbmc/u-boot/tools/
H A Drkmux.py26 def __init__(self, cols=None): argument
27 if cols:
29 [x.strip() for x in cols])
37 def Setup(self, cols): argument
38 self.bits, self.attr, self.reset_val = cols[0:3]
39 if len(cols) > 3:
40 self.desc.append(cols[3])
148 cols = re.split(' *', line, 3)
149 if leading > 15 or (len(cols) > 3 and is_field_start(cols[3])):
154 if cols[0] == 'Bit' or len(cols) < 3:
[all …]
/openbmc/qemu/hw/display/
H A Dnext-fb.c42 uint32_t cols; member
57 for (i = 0; i < nfbstate->cols / 4; i++) { in nextfb_draw_line()
79 src_width = s->cols / 4 + 8; in nextfb_update()
80 dest_width = s->cols * 4; in nextfb_update()
84 s->cols, src_width); in nextfb_update()
88 framebuffer_update_display(surface, &s->fbsection, s->cols, s->rows, in nextfb_update()
92 dpy_gfx_update(s->con, 0, 0, s->cols, s->rows); in nextfb_update()
115 s->cols = 1120; in nextfb_realize()
119 qemu_console_resize(s->con, s->cols, s->rows); in nextfb_realize()
H A Dpl110.c71 int cols; member
97 VMSTATE_INT32(cols, PL110State),
268 src_width = s->cols; in pl110_update_display()
299 s->cols, s->rows, in pl110_update_display()
300 src_width, s->cols * 4, 0, in pl110_update_display()
306 dpy_gfx_update(s->con, 0, first, s->cols, last - first + 1); in pl110_update_display()
316 qemu_console_resize(s->con, s->cols, s->rows); in pl110_invalidate_display()
358 if (width != s->cols || height != s->rows) { in pl110_resize()
363 s->cols = width; in pl110_resize()
465 pl110_resize(s, s->cols, n); in pl110_write()
[all …]
H A Dframebuffer.c58 int cols, /* Width in pixels. */ in framebuffer_update_display() argument
91 dest -= dest_col_pitch * (cols - 1); in framebuffer_update_display()
107 fn(opaque, dest, src, cols, dest_col_pitch); in framebuffer_update_display()
/openbmc/u-boot/drivers/ram/
H A Dbmips_ram.c65 static ulong bmips_dram_size(unsigned int cols, unsigned int rows, in bmips_dram_size() argument
69 cols += 8; /* 0 => 8 address bits ... 2 => 10 address bits */ in bmips_dram_size()
72 return 1 << (cols + rows + is_32b + banks); in bmips_dram_size()
77 unsigned int cols = 0, rows = 0, is_32b = 0, banks = 0; in bcm6338_get_ram_size() local
82 cols = (val & SDRAM_CFG_COL_MASK) >> SDRAM_CFG_COL_SHIFT; in bcm6338_get_ram_size()
86 return bmips_dram_size(cols, rows, is_32b, banks); in bcm6338_get_ram_size()
91 unsigned int cols = 0, rows = 0, is_32b = 0; in bcm6358_get_ram_size() local
96 cols = (val & MEMC_CFG_COL_MASK) >> MEMC_CFG_COL_SHIFT; in bcm6358_get_ram_size()
99 return bmips_dram_size(cols, rows, is_32b, 2); in bcm6358_get_ram_size()
/openbmc/linux/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()
417 cols = boot_params->screen_info.orig_video_cols; in extract_kernel()
/openbmc/linux/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()
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()
H A Dtca8418_keypad.c235 u32 rows, u32 cols) in tca8418_configure() argument
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()
H A Dstmpe-keypad.c137 unsigned int cols; member
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()
379 stmpe_keypad_fill_used_pins(keypad, rows, cols); in stmpe_keypad_probe()
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()
398 pdata->rows, pdata->cols, in samsung_keypad_probe()
H A Dcros_ec_keyb.c51 unsigned int cols; member
156 for (col1 = 0; col1 < ckdev->cols; col1++) { in cros_ec_keyb_has_ghosting()
158 for (col2 = col1 + 1; col2 < ckdev->cols; col2++) { in cros_ec_keyb_has_ghosting()
195 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_process()
266 if (ckdev->ec->event_size != ckdev->cols) { in cros_ec_keyb_work()
321 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_compute_valid_keys()
598 err = matrix_keypad_parse_properties(dev, &ckdev->rows, &ckdev->cols); in cros_ec_keyb_register_matrix()
602 ckdev->valid_keys = devm_kzalloc(dev, ckdev->cols, GFP_KERNEL); in cros_ec_keyb_register_matrix()
606 ckdev->old_kb_state = devm_kzalloc(dev, ckdev->cols, GFP_KERNEL); in cros_ec_keyb_register_matrix()
634 err = matrix_keypad_build_keymap(NULL, NULL, ckdev->rows, ckdev->cols, in cros_ec_keyb_register_matrix()
[all …]
H A Dadp5588-keys.c188 u32 cols; member
348 for (i = 0; i < kpad->cols; i++) in adp5588_build_gpiomap()
608 ret = adp5588_write(client, KP_GPIO2, KP_SEL(kpad->cols) & 0xFF); in adp5588_setup()
612 ret = adp5588_write(client, KP_GPIO3, KP_SEL(kpad->cols) >> 8); in adp5588_setup()
651 &kpad->cols); in adp5588_fw_parse()
655 if (kpad->rows > ADP5588_ROWS_MAX || kpad->cols > ADP5588_COLS_MAX) { in adp5588_fw_parse()
657 kpad->rows, kpad->cols); in adp5588_fw_parse()
661 ret = matrix_keypad_build_keymap(NULL, NULL, kpad->rows, kpad->cols, in adp5588_fw_parse()
666 kpad->row_shift = get_count_order(kpad->cols); in adp5588_fw_parse()
700 if (kpad->unlock_keys[i] >= kpad->cols * kpad->rows) { in adp5588_fw_parse()
/openbmc/u-boot/common/
H A Dlcd_console.c30 cons.curr_col = min_t(short, col, cons.cols - 1); in lcd_position_cursor()
41 return cons.cols; in lcd_get_screen_columns()
93 cons.curr_col = cons.cols - 1; in console_back()
124 pcons->cols = sizex / VIDEO_FONT_WIDTH; in console_calc_rowcol()
155 cons.cols, cons.rows, cons.lcdsizex, cons.lcdsizey, vl_rot); in lcd_init_console()
178 if (cons.curr_col >= cons.cols) in lcd_putc()
190 if (++cons.curr_col >= cons.cols) in lcd_putc()
/openbmc/linux/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()
/openbmc/linux/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 = uap->uab.w; 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() argument
901 screen[lines].cells = kcalloc(cols, sizeof(struct tty3270_cell), GFP_KERNEL); in tty3270_alloc_screen()
[all …]
/openbmc/u-boot/lib/efi_loader/
H A Defi_console.c197 static bool cout_mode_matches(struct cout_mode *mode, int rows, int cols) in cout_mode_matches() argument
202 return (mode->rows == rows) && (mode->columns == cols); in cout_mode_matches()
212 static int query_console_serial(int *rows, int *cols) in query_console_serial() argument
241 *cols = n[1]; in query_console_serial()
258 int rows = 25, cols = 80; in query_console_size() local
268 cols = priv->cols; in query_console_size()
269 } else if (query_console_serial(&rows, &cols)) { in query_console_size()
274 if (cols >= 80 && rows >= 50) { in query_console_size()
283 if (!cout_mode_matches(&efi_cout_modes[0], rows, cols) && in query_console_size()
284 !cout_mode_matches(&efi_cout_modes[1], rows, cols)) { in query_console_size()
[all …]
/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/linux/include/linux/input/
H A Dsamsung-keypad.h32 unsigned int cols; member
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);
/openbmc/linux/tools/lib/subcmd/
H A Dhelp.c130 int cols = 1, rows; in pretty_print_string_list() local
140 cols = max_cols / space; in pretty_print_string_list()
141 rows = (cmds->cnt + cols - 1) / cols; in pretty_print_string_list()
146 for (j = 0; j < cols; j++) { in pretty_print_string_list()
152 if (j == cols-1 || n + rows >= cmds->cnt) in pretty_print_string_list()
/openbmc/linux/drivers/auxdisplay/
H A Dht16k33.c71 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()
522 u32 cols = HT16K33_MATRIX_KEYPAD_MAX_COLS; in ht16k33_keypad_probe() local
549 err = matrix_keypad_parse_properties(dev, &rows, &cols); in ht16k33_keypad_probe()
553 cols > HT16K33_MATRIX_KEYPAD_MAX_COLS) { in ht16k33_keypad_probe()
555 cols); in ht16k33_keypad_probe()
560 keypad->cols = cols; in ht16k33_keypad_probe()
561 keypad->row_shift = get_count_order(cols); in ht16k33_keypad_probe()
563 err = matrix_keypad_build_keymap(NULL, NULL, rows, cols, NULL, in ht16k33_keypad_probe()

12345