Home
last modified time | relevance | path

Searched refs:row (Results 1 – 25 of 138) sorted by relevance

123456

/drivers/input/keyboard/
Dtwl4030_keypad.c167 int row; in twl4030_read_kp_matrix_state() local
171 for (row = 0; row < kp->n_rows; row++) in twl4030_read_kp_matrix_state()
172 state[row] = twl4030_col_xlate(kp, new_state[row]); in twl4030_read_kp_matrix_state()
198 int col, row; in twl4030_kp_scan() local
214 for (row = 0; row < kp->n_rows; row++) { in twl4030_kp_scan()
215 int changed = new_state[row] ^ kp->kp_state[row]; in twl4030_kp_scan()
227 dev_dbg(kp->dbg_dev, "key [%d:%d] %s\n", row, col, in twl4030_kp_scan()
228 (new_state[row] & (1 << col)) ? in twl4030_kp_scan()
231 code = MATRIX_SCAN_CODE(row, col, TWL4030_ROW_SHIFT); in twl4030_kp_scan()
234 new_state[row] & (1 << col)); in twl4030_kp_scan()
[all …]
Dpmic8xxx-keypad.c157 int rc, row; in pmic8xxx_kp_read_data() local
160 for (row = 0; row < read_rows; row++) { in pmic8xxx_kp_read_data()
164 dev_dbg(kp->dev, "%d = %d\n", row, val); in pmic8xxx_kp_read_data()
165 state[row] = pmic8xxx_col_state(kp, val); in pmic8xxx_kp_read_data()
222 int row, col, code; in __pmic8xxx_kp_scan_matrix() local
224 for (row = 0; row < kp->num_rows; row++) { in __pmic8xxx_kp_scan_matrix()
225 int bits_changed = new_state[row] ^ old_state[row]; in __pmic8xxx_kp_scan_matrix()
234 dev_dbg(kp->dev, "key [%d:%d] %s\n", row, col, in __pmic8xxx_kp_scan_matrix()
235 !(new_state[row] & (1 << col)) ? in __pmic8xxx_kp_scan_matrix()
238 code = MATRIX_SCAN_CODE(row, col, PM8XXX_ROW_SHIFT); in __pmic8xxx_kp_scan_matrix()
[all …]
Dimx_keypad.c148 int row, col; in imx_keypad_fire_events() local
163 for (row = 0; row < MAX_MATRIX_KEY_ROWS; row++) { in imx_keypad_fire_events()
164 if ((keypad->rows_en_mask & (1 << row)) == 0) in imx_keypad_fire_events()
166 if ((bits_changed & (1 << row)) == 0) in imx_keypad_fire_events()
169 code = MATRIX_SCAN_CODE(row, col, MATRIX_ROW_SHIFT); in imx_keypad_fire_events()
172 matrix_volatile_state[col] & (1 << row)); in imx_keypad_fire_events()
175 matrix_volatile_state[col] & (1 << row)); in imx_keypad_fire_events()
422 int irq, error, i, row, col; in imx_keypad_probe() local
474 for (row = 0; row < MAX_MATRIX_KEY_ROWS; row++) { in imx_keypad_probe()
476 i = MATRIX_SCAN_CODE(row, col, MATRIX_ROW_SHIFT); in imx_keypad_probe()
[all …]
Dcros_ec_keyb.c166 int col, row; in cros_ec_keyb_process() local
181 for (row = 0; row < ckdev->rows; row++) { in cros_ec_keyb_process()
182 int pos = MATRIX_SCAN_CODE(row, col, ckdev->row_shift); in cros_ec_keyb_process()
185 new_state = kb_state[col] & (1 << row); in cros_ec_keyb_process()
186 old_state = ckdev->old_kb_state[col] & (1 << row); in cros_ec_keyb_process()
190 row, col, new_state); in cros_ec_keyb_process()
299 int row, col; in cros_ec_keyb_compute_valid_keys() local
307 for (row = 0; row < ckdev->rows; row++) { in cros_ec_keyb_compute_valid_keys()
308 code = keymap[MATRIX_SCAN_CODE(row, col, row_shift)]; in cros_ec_keyb_compute_valid_keys()
310 ckdev->valid_keys[col] |= 1 << row; in cros_ec_keyb_compute_valid_keys()
[all …]
Domap-keypad.c98 int col, row; in omap_kp_tasklet() local
110 for (row = 0; row < omap_kp_data->rows; row++) { in omap_kp_tasklet()
112 if (!(changed & (1 << row))) in omap_kp_tasklet()
116 row, (new_state[col] & (1 << row)) ? in omap_kp_tasklet()
119 key = keycodes[MATRIX_SCAN_CODE(row, col, row_shift)]; in omap_kp_tasklet()
127 new_state[col] & (1 << row)); in omap_kp_tasklet()
Dmatrix_keypad.c80 int row) in row_asserted() argument
82 return gpio_get_value_cansleep(pdata->row_gpios[row]) ? in row_asserted()
123 int row, col, code; in matrix_keypad_scan() local
135 for (row = 0; row < pdata->num_row_gpios; row++) in matrix_keypad_scan()
137 row_asserted(pdata, row) ? (1 << row) : 0; in matrix_keypad_scan()
149 for (row = 0; row < pdata->num_row_gpios; row++) { in matrix_keypad_scan()
150 if ((bits_changed & (1 << row)) == 0) in matrix_keypad_scan()
153 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in matrix_keypad_scan()
157 new_state[col] & (1 << row)); in matrix_keypad_scan()
Dnspire-keypad.c56 int row, col; in nspire_keypad_irq() local
67 for (row = 0; row < KEYPAD_BITMASK_ROWS; row++) { in nspire_keypad_irq()
68 bits = state[row]; in nspire_keypad_irq()
72 changed = bits ^ keypad->state[row]; in nspire_keypad_irq()
76 keypad->state[row] = bits; in nspire_keypad_irq()
82 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in nspire_keypad_irq()
Dmt6779-keypad.c37 unsigned int *row, unsigned int *col);
55 unsigned int row, col; in mt6779_keypad_irq_handler() local
74 keypad->calc_row_col(key, &row, &col); in mt6779_keypad_irq_handler()
76 scancode = MATRIX_SCAN_CODE(row, col, row_shift); in mt6779_keypad_irq_handler()
101 unsigned int *row, in mt6779_keypad_calc_row_col_single() argument
104 *row = key / 9; in mt6779_keypad_calc_row_col_single()
109 unsigned int *row, in mt6779_keypad_calc_row_col_double() argument
112 *row = key / 13; in mt6779_keypad_calc_row_col_double()
Dclps711x-keypad.c39 int col, row; in clps711x_keypad_poll() local
48 for (row = 0; row < priv->row_count; row++) { in clps711x_keypad_poll()
49 struct clps711x_gpio_data *data = &priv->gpio_data[row]; in clps711x_keypad_poll()
60 int code = MATRIX_SCAN_CODE(row, col, in clps711x_keypad_poll()
/drivers/tty/vt/
Dconsolemap.c203 #define UNI(dir, row, glyph) (FIELD_PREP(UNI_DIR_BITS, (dir)) | \ argument
204 FIELD_PREP(UNI_ROW_BITS, (row)) | \
275 u16 *row = dir[r]; in set_inverse_trans_unicode() local
276 if (!row) in set_inverse_trans_unicode()
279 u16 glyph = row[g]; in set_inverse_trans_unicode()
511 u16 **dir, *row; in con_insert_unipair() local
524 row = dir[n]; in con_insert_unipair()
525 if (!row) { in con_insert_unipair()
526 row = dir[n] = kmalloc_array(UNI_ROW_GLYPHS, sizeof(*row), in con_insert_unipair()
528 if (!row) in con_insert_unipair()
[all …]
/drivers/edac/
Dedac_mc.c181 int i, chn, row; in mci_release() local
190 for (row = 0; row < mci->nr_csrows; row++) { in mci_release()
191 csr = mci->csrows[row]; in mci_release()
213 unsigned int row, chn; in edac_mc_alloc_csrows() local
222 for (row = 0; row < tot_csrows; row++) { in edac_mc_alloc_csrows()
229 mci->csrows[row] = csr; in edac_mc_alloc_csrows()
230 csr->csrow_idx = row; in edac_mc_alloc_csrows()
257 unsigned int row, chn, idx; in edac_mc_alloc_dimms() local
269 row = 0; in edac_mc_alloc_dimms()
276 chan = mci->csrows[row]->channels[chn]; in edac_mc_alloc_dimms()
[all …]
Dppc4xx_edac.c304 unsigned int row, rows; in ppc4xx_edac_generate_bank_message() local
315 for (rows = 0, row = 0; row < mci->nr_csrows; row++) { in ppc4xx_edac_generate_bank_message()
316 if (ppc4xx_edac_check_bank_error(status, row)) { in ppc4xx_edac_generate_bank_message()
318 (rows++ ? ", " : ""), row); in ppc4xx_edac_generate_bank_message()
705 int row; in ppc4xx_edac_handle_ce() local
710 for (row = 0; row < mci->nr_csrows; row++) in ppc4xx_edac_handle_ce()
711 if (ppc4xx_edac_check_bank_error(status, row)) in ppc4xx_edac_handle_ce()
714 row, 0, -1, in ppc4xx_edac_handle_ce()
736 int row; in ppc4xx_edac_handle_ue() local
741 for (row = 0; row < mci->nr_csrows; row++) in ppc4xx_edac_handle_ue()
[all …]
Di82975x_edac.c280 int row, chan; in i82975x_process_error_info() local
300 row = edac_mc_find_csrow_by_page(mci, page); in i82975x_process_error_info()
302 if (row == -1) { in i82975x_process_error_info()
310 chan = (mci->csrows[row]->nr_channels == 1) ? 0 : info->eap & 1; in i82975x_process_error_info()
313 (1 << mci->csrows[row]->channels[chan]->dimm->grain)); in i82975x_process_error_info()
318 row, -1, -1, in i82975x_process_error_info()
323 row, chan ? chan : 0, -1, in i82975x_process_error_info()
349 int row; in dual_channel_active() local
352 for (dualch = 1, row = 0; dualch && (row < 4); row++) { in dual_channel_active()
353 drb[row][0] = readb(mch_window + I82975X_DRB + row); in dual_channel_active()
[all …]
De752x_edac.c331 int row; in do_process_ce() local
344 row = ((page >> 1) & 3); in do_process_ce()
346 "Test row %d Table %d %d %d %d %d %d %d %d\n", row, in do_process_ce()
353 if (pvt->map[i] == row) in do_process_ce()
360 row = i; in do_process_ce()
364 row); in do_process_ce()
366 row = edac_mc_find_csrow_by_page(mci, page); in do_process_ce()
374 row, channel, -1, in do_process_ce()
392 int row; in do_process_ue() local
403 row = pvt->mc_symmetric ? in do_process_ue()
[all …]
Damd76x_edac.c135 u32 row; in amd76x_process_error_info() local
146 row = (info->ecc_mode_status >> 4) & 0xf; in amd76x_process_error_info()
148 mci->csrows[row]->first_page, 0, 0, in amd76x_process_error_info()
149 row, 0, -1, in amd76x_process_error_info()
161 row = info->ecc_mode_status & 0xf; in amd76x_process_error_info()
163 mci->csrows[row]->first_page, 0, 0, in amd76x_process_error_info()
164 row, 0, -1, in amd76x_process_error_info()
/drivers/staging/media/deprecated/saa7146/av7110/
Dvideo-fopen.rst29 - .. row 1
35 - .. row 2
41 - .. row 3
46 - .. row 4
51 - .. row 5
56 - .. row 6
89 - .. row 1
95 - .. row 2
101 - .. row 3
107 - .. row 4
Daudio-fopen.rst29 - .. row 1
35 - .. row 2
41 - .. row 3
46 - .. row 4
51 - .. row 5
56 - .. row 6
87 - .. row 1
93 - .. row 2
99 - .. row 3
Daudio-fwrite.rst29 - .. row 1
35 - .. row 2
41 - .. row 3
63 - .. row 1
69 - .. row 2
75 - .. row 3
Dvideo-fwrite.rst29 - .. row 1
35 - .. row 2
41 - .. row 3
63 - .. row 1
69 - .. row 2
75 - .. row 3
Dvideo-stop.rst31 - .. row 1
37 - .. row 2
43 - .. row 3
49 - .. row 4
54 - .. row 5
Dvideo-set-blank.rst31 - .. row 1
37 - .. row 2
43 - .. row 3
49 - .. row 4
/drivers/media/usb/gspca/
Dsn9c20x.c983 u8 row[8]; in i2c_w1() local
989 row[0] = sd->i2c_intf | (2 << 4); in i2c_w1()
990 row[1] = sd->i2c_addr; in i2c_w1()
991 row[2] = reg; in i2c_w1()
992 row[3] = val; in i2c_w1()
993 row[4] = 0x00; in i2c_w1()
994 row[5] = 0x00; in i2c_w1()
995 row[6] = 0x00; in i2c_w1()
996 row[7] = 0x10; in i2c_w1()
998 i2c_w(gspca_dev, row); in i2c_w1()
[all …]
/drivers/media/platform/nvidia/tegra-vde/
Dtrace.h41 TP_PROTO(unsigned int table, unsigned int row, u32 value, u32 aux_addr),
42 TP_ARGS(table, row, value, aux_addr),
45 __field(unsigned int, row)
51 __entry->row = row;
56 __entry->table, __entry->row, __entry->value,
/drivers/mtd/nand/raw/
Dnandsim.c199 (((ns)->regs.row * (ns)->geom.pgszoob) + (ns)->regs.column)
337 uint row; /* the page number */ member
1145 ns->regs.row |= (byte << 8 * (ns->regs.count - in ns_accept_addr_byte()
1169 ns->regs.row = 0; in ns_switch_to_ready_state()
1380 return &(ns->pages[ns->regs.row]); in NS_GET_PAGE()
1393 unsigned int page_no = ns->regs.row; in ns_do_read_error()
1414 pos, ns->regs.row, NS_PAGE_BYTE_SHIFT(ns), in ns_do_bit_flips()
1428 if (!test_bit(ns->regs.row, ns->pages_written)) { in ns_read_page()
1429 NS_DBG("read_page: page %d not written\n", ns->regs.row); in ns_read_page()
1436 ns->regs.row, NS_PAGE_BYTE_SHIFT(ns)); in ns_read_page()
[all …]
/drivers/gpu/ipu-v3/
Dipu-image-convert.c673 unsigned int row, tile_idx; in fill_tile_column() local
676 for (row = 0; row < in->num_rows; row++) { in fill_tile_column()
677 tile_idx = in->num_cols * row + col; in fill_tile_column()
699 static void fill_tile_row(struct ipu_image_convert_ctx *ctx, unsigned int row, in fill_tile_row() argument
709 tile_idx = in->num_cols * row + col; in fill_tile_row()
739 unsigned int row; in find_seams() local
813 for (row = in->num_rows - 1; row > 0; row--) { in find_seams()
814 bool allow_overshoot = row < in->num_rows - 1; in find_seams()
818 find_best_seam(ctx, row, in find_seams()
831 fill_tile_row(ctx, row, in, in_top, in_bottom - in_top, in find_seams()
[all …]

123456