Home
last modified time | relevance | path

Searched refs:rows (Results 1 – 25 of 56) sorted by relevance

123

/drivers/input/
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()
57 device_property_read_u32(dev, "keypad,num-rows", rows); 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
75 unsigned int max_keys = rows << row_shift; in matrix_keypad_parse_keymap()
109 if (!matrix_keypad_map_key(input_dev, rows, cols, in matrix_keypad_parse_keymap()
[all …]
/drivers/video/fbdev/
Datafb_mfb.c28 u_int rows; in atafb_mfb_copyarea() local
37 for (rows = height; rows--;) { in atafb_mfb_copyarea()
45 for (rows = height; rows--;) { in atafb_mfb_copyarea()
57 u_int rows; in atafb_mfb_fillrect() local
67 for (rows = height; rows--; dest += next_line) { in atafb_mfb_fillrect()
81 u_int rows; in atafb_mfb_linefill() local
85 for (rows = width / 8; rows--; /* check margins */ ) { in atafb_mfb_linefill()
Datafb_iplan2p2.c196 int rows, i; in atafb_iplan2p2_fillrect() local
214 rows = width >> 4; in atafb_iplan2p2_fillrect()
215 if (rows) { in atafb_iplan2p2_fillrect()
217 u32 off = next_line - rows * BPL * 2; in atafb_iplan2p2_fillrect()
219 d = fill16_col(d, rows, cval); in atafb_iplan2p2_fillrect()
222 dest += rows * BPL / 2; in atafb_iplan2p2_fillrect()
244 int rows; in atafb_iplan2p2_linefill() local
258 for (rows = width / 16; rows; rows--) { in atafb_iplan2p2_linefill()
Datafb_iplan2p4.c210 int rows, i; in atafb_iplan2p4_fillrect() local
228 rows = width >> 4; in atafb_iplan2p4_fillrect()
229 if (rows) { in atafb_iplan2p4_fillrect()
231 u32 off = next_line - rows * BPL * 2; in atafb_iplan2p4_fillrect()
233 d = fill16_col(d, rows, cval); in atafb_iplan2p4_fillrect()
236 dest += rows * BPL / 2; in atafb_iplan2p4_fillrect()
258 int rows; in atafb_iplan2p4_linefill() local
272 for (rows = width / 16; rows; rows--) { in atafb_iplan2p4_linefill()
Datafb_iplan2p8.c245 int rows, i; in atafb_iplan2p8_fillrect() local
263 rows = width >> 4; in atafb_iplan2p8_fillrect()
264 if (rows) { in atafb_iplan2p8_fillrect()
266 u32 off = next_line - rows * BPL * 2; in atafb_iplan2p8_fillrect()
268 d = fill16_col(d, rows, cval); in atafb_iplan2p8_fillrect()
271 dest += rows * BPL / 2; in atafb_iplan2p8_fillrect()
293 int rows; in atafb_iplan2p8_linefill() local
307 for (rows = width / 16; rows; rows--) { in atafb_iplan2p8_linefill()
Dhgafb.c460 u_int rows, y; in hgafb_fillrect() local
465 for (rows = rect->height; rows--; y++) { in hgafb_fillrect()
480 u_int rows, y1, y2; in hgafb_copyarea() local
488 for (rows = area->height; rows--; ) { in hgafb_copyarea()
499 for (rows = area->height; rows--;) { in hgafb_copyarea()
513 u_int rows, y = image->dy; in hgafb_imageblit() local
517 for (rows = image->height; rows--; y++) { in hgafb_imageblit()
Datafb_utils.h359 static inline u32 *fill16_col(u32 *dst, int rows, u32 m[]) in fill16_col() argument
361 while (rows) { in fill16_col()
370 rows--; in fill16_col()
/drivers/cpufreq/
Dsa1110-cpufreq.c34 u_char rows; /* bits */ member
52 .rows = 12,
61 .rows = 12,
70 .rows = 14,
79 .rows = 12,
87 .rows = 13,
96 .rows = 16,
105 .rows = 12,
215 u_int ns_row = (sdram->refresh * 1000) >> sdram->rows; in sdram_update_refresh()
/drivers/s390/char/
Dtty3270.c155 off = tp->view.cols * tp->view.rows - 9; in tty3270_update_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()
220 offset = tp->view.cols * tp->view.rows - 9; in tty3270_create_status()
256 line = tp->view.rows - 3; in tty3270_rebuild_update()
284 BUG_ON(tp->nr_lines <= tp->view.rows - 2); in tty3270_alloc_string()
295 tp->nr_up + tp->view.rows - 2 >= tp->nr_lines) { in tty3270_alloc_string()
296 tp->nr_up = tp->nr_lines - tp->view.rows + 2; in tty3270_alloc_string()
332 for (i = 0; i < tp->view.rows - 2; i++) in tty3270_blank_screen()
521 nr_up = tp->nr_up - tp->view.rows + 2; in tty3270_scroll_forward()
[all …]
Draw3270.c40 short model, rows, cols; member
446 rp->rows = 24; in raw3270_size_device_vm()
451 rp->rows = 32; in raw3270_size_device_vm()
456 rp->rows = 43; in raw3270_size_device_vm()
461 rp->rows = 27; in raw3270_size_device_vm()
479 rp->rows = 24; in raw3270_size_device()
484 rp->rows = uap->uab.h; in raw3270_size_device()
492 rp->rows = uap->aua.hauai; in raw3270_size_device()
497 if (rp->rows == 24 && rp->cols == 80) in raw3270_size_device()
499 if (rp->rows == 32 && rp->cols == 80) in raw3270_size_device()
[all …]
Dcon3270.c114 cp->view.cols * (cp->view.rows - 1)); in con3270_create_status()
116 cp->view.cols * cp->view.rows - 8); in con3270_create_status()
154 nr = cp->view.rows - 2 + cp->nr_up; in con3270_rebuild_update()
156 if (nr < cp->view.rows - 1) in con3270_rebuild_update()
186 if (cp->nr_up != 0 && cp->nr_up + cp->view.rows > cp->nr_lines) { in con3270_alloc_string()
187 cp->nr_up = cp->nr_lines - cp->view.rows + 1; in con3270_alloc_string()
318 nr_up += cp->view.rows - 2; in con3270_read_tasklet()
319 if (nr_up + cp->view.rows - 1 > cp->nr_lines) { in con3270_read_tasklet()
320 nr_up = cp->nr_lines - cp->view.rows + 1; in con3270_read_tasklet()
326 nr_up -= cp->view.rows - 2; in con3270_read_tasklet()
/drivers/input/keyboard/
Dstmpe-keypad.c135 unsigned int rows; member
231 if (keypad->rows & (1 << i)) in stmpe_keypad_altfunc_init()
288 ret = stmpe_reg_write(stmpe, STMPE_KPC_ROW_LSB, keypad->rows); in stmpe_keypad_chip_init()
295 keypad->rows >> 8); in stmpe_keypad_chip_init()
323 keypad->rows |= 1 << row; in stmpe_keypad_fill_used_pins()
336 u32 rows; 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()
378 stmpe_keypad_fill_used_pins(keypad, rows, cols); in stmpe_keypad_probe()
Dtca8418_keypad.c235 u32 rows, u32 cols) in tca8418_configure() argument
240 reg = ~(~0 << rows); 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()
283 if (!rows || rows > TCA8418_MAX_ROWS) { 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()
Domap-keypad.c42 unsigned int rows; member
109 for (row = 0; row < omap_kp_data->rows; row++) { in omap_kp_tasklet()
185 if (!pdata->rows || !pdata->cols || !pdata->keymap_data) { in omap_kp_probe()
191 keycodemax = pdata->rows << row_shift; in omap_kp_probe()
217 omap_kp->rows = pdata->rows; in omap_kp_probe()
247 pdata->rows, pdata->cols, in omap_kp_probe()
Dsamsung-keypad.c73 unsigned int rows; member
98 row_state[col] = ~val & ((1 << keypad->rows) - 1); in samsung_keypad_scan()
121 for (row = 0; row < keypad->rows; row++) { in samsung_keypad_report()
268 pdata->rows = num_rows; in samsung_keypad_parse_dt()
339 if (!pdata->rows || pdata->rows > SAMSUNG_MAX_ROWS) in samsung_keypad_probe()
347 pdata->cfg_gpio(pdata->rows, pdata->cols); in samsung_keypad_probe()
350 keymap_size = (pdata->rows << row_shift) * sizeof(keypad->keycodes[0]); in samsung_keypad_probe()
381 keypad->rows = pdata->rows; in samsung_keypad_probe()
400 pdata->rows, pdata->cols, in samsung_keypad_probe()
Domap4-keypad.c75 unsigned int rows; member
133 for (row = 0; row < keypad_data->rows; row++) { in omap4_keypad_irq_thread_fn()
215 err = matrix_keypad_parse_properties(dev, &keypad_data->rows, in omap4_keypad_parse_dt()
328 max_keys = keypad_data->rows << keypad_data->row_shift; in omap4_keypad_probe()
339 keypad_data->rows, keypad_data->cols, in omap4_keypad_probe()
Dlpc32xx-keys.c135 u32 rows = 0, columns = 0; in lpc32xx_parse_dt() local
138 err = matrix_keypad_parse_properties(dev, &rows, &columns); in lpc32xx_parse_dt()
141 if (rows != columns) { in lpc32xx_parse_dt()
146 kscandat->matrix_sz = rows; in lpc32xx_parse_dt()
/drivers/auxdisplay/
Dht16k33.c54 uint32_t rows; member
321 u32 rows = HT16K33_MATRIX_KEYPAD_MAX_ROWS; in ht16k33_keypad_probe() local
349 err = matrix_keypad_parse_of_params(&client->dev, &rows, &cols); in ht16k33_keypad_probe()
352 if (rows > HT16K33_MATRIX_KEYPAD_MAX_ROWS || in ht16k33_keypad_probe()
355 rows, cols); in ht16k33_keypad_probe()
359 keypad->rows = rows; in ht16k33_keypad_probe()
363 err = matrix_keypad_build_keymap(NULL, NULL, rows, cols, NULL, in ht16k33_keypad_probe()
/drivers/staging/uwb/
Dallocator.c45 int mas, col, rows; in uwb_rsv_fill_row_alloc() local
50 rows = 1; in uwb_rsv_fill_row_alloc()
55 if (rows > ri->used_rows) { in uwb_rsv_fill_row_alloc()
57 } else if (rows > 7) { in uwb_rsv_fill_row_alloc()
70 rows++; in uwb_rsv_fill_row_alloc()
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_debugfs.h49 unsigned int rows; /* # of entries */ member
60 struct seq_tab *seq_open_tab(struct file *f, unsigned int rows,
/drivers/gpu/drm/gma500/
Dmmu.c504 uint32_t rows = 1; in psb_mmu_flush_ptes() local
518 rows = num_pages / desired_tile_stride; in psb_mmu_flush_ptes()
525 for (i = 0; i < rows; ++i) { in psb_mmu_flush_ptes()
599 uint32_t rows = 1; in psb_mmu_remove_pages() local
609 rows = num_pages / desired_tile_stride; in psb_mmu_remove_pages()
620 for (i = 0; i < rows; ++i) { in psb_mmu_remove_pages()
702 uint32_t rows = 1; in psb_mmu_insert_pages() local
716 rows = num_pages / desired_tile_stride; in psb_mmu_insert_pages()
726 for (i = 0; i < rows; ++i) { in psb_mmu_insert_pages()
/drivers/video/console/
Dvgacon.c174 int rows; member
204 int rows = size / pitch; in vgacon_scrollback_init() local
213 vgacon_scrollback_cur->rows = rows - 1; in vgacon_scrollback_init()
214 vgacon_scrollback_cur->size = rows * pitch; in vgacon_scrollback_init()
265 if (vgacon_scrollback_cur->cnt > vgacon_scrollback_cur->rows) in vgacon_scrollback_update()
266 vgacon_scrollback_cur->cnt = vgacon_scrollback_cur->rows; in vgacon_scrollback_update()
841 int rows = screen_info.orig_video_lines * vga_default_font_height/ in vgacon_switch() local
862 vga_video_num_lines <= rows)) in vgacon_switch()
1227 int rows, maxscan, i; in vgacon_adjust_height() local
1229 rows = vc->vc_scan_lines / fontheight; /* Number of video rows we end up with */ in vgacon_adjust_height()
[all …]
/drivers/video/fbdev/core/
Dfbcon.h230 int rows = p->vrows; in real_y() local
233 return ypos < rows ? ypos : ypos - rows; in real_y()
/drivers/staging/comedi/drivers/ni_routing/tools/
Dconvert_py_to_csv.py41 rows = [
49 dR.writerows(rows)
/drivers/pinctrl/ti/
Dpinctrl-ti-iodelay.c492 int rows, *pins, error = -EINVAL, i; in ti_iodelay_dt_node_to_map() local
498 rows = pinctrl_count_index_with_args(np, name); in ti_iodelay_dt_node_to_map()
499 if (rows < 0) in ti_iodelay_dt_node_to_map()
500 return rows; in ti_iodelay_dt_node_to_map()
513 pins = devm_kcalloc(iod->dev, rows, sizeof(*pins), GFP_KERNEL); in ti_iodelay_dt_node_to_map()
517 cfg = devm_kcalloc(iod->dev, rows, sizeof(*cfg), GFP_KERNEL); in ti_iodelay_dt_node_to_map()
523 for (i = 0; i < rows; i++) { in ti_iodelay_dt_node_to_map()

123