| /drivers/input/keyboard/ |
| A D | matrix_keypad.c | 69 __activate_col(keypad, col, on); in activate_col() 77 int col; in activate_all_cols() local 79 for (col = 0; col < keypad->num_col_gpios; col++) in activate_all_cols() 80 __activate_col(keypad, col, on); in activate_all_cols() 127 int row, col, code; in matrix_keypad_scan() local 142 for (col = 0; col < keypad->num_col_gpios; col++) { in matrix_keypad_scan() 144 activate_col(keypad, col, true); in matrix_keypad_scan() 148 activate_col(keypad, col, false); in matrix_keypad_scan() 151 for (col = 0; col < keypad->num_col_gpios; col++) { in matrix_keypad_scan() 154 bits_changed = keypad->last_key_state[col] ^ new_state[col]; in matrix_keypad_scan() [all …]
|
| A D | omap-keypad.c | 68 int col = 0; in omap_kp_scan_keypad() local 75 for (col = 0; col < omap_kp->cols; col++) { in omap_kp_scan_keypad() 76 omap_writew(~(1 << col) & 0xff, in omap_kp_scan_keypad() 81 state[col] = ~omap_readw(OMAP1_MPUIO_BASE + in omap_kp_scan_keypad() 94 int col, row; in omap_kp_tasklet() local 100 for (col = 0; col < omap_kp_data->cols; col++) { in omap_kp_tasklet() 101 changed = new_state[col] ^ keypad_state[col]; in omap_kp_tasklet() 102 key_down |= new_state[col]; in omap_kp_tasklet() 111 printk(KERN_INFO "omap-keypad: key %d-%d %s\n", col, in omap_kp_tasklet() 112 row, (new_state[col] & (1 << row)) ? in omap_kp_tasklet() [all …]
|
| A D | imx_keypad.c | 82 int col; in imx_keypad_scan_matrix() local 85 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_scan_matrix() 114 reg_val &= ~(1 << (8 + col)); in imx_keypad_scan_matrix() 148 int row, col; in imx_keypad_fire_events() local 150 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_fire_events() 158 matrix_volatile_state[col]; 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() 423 int irq, error, i, row, col; in imx_keypad_probe() local 476 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_probe() [all …]
|
| A D | twl4030_keypad.c | 158 if (col == 0xFF) in twl4030_col_xlate() 161 return col & ((1 << kp->n_cols) - 1); in twl4030_col_xlate() 183 u16 col = key_state[i]; in twl4030_is_in_ghost_state() local 185 if ((col & check) && hweight16(col) > 1) in twl4030_is_in_ghost_state() 188 check |= col; in twl4030_is_in_ghost_state() 198 int col, row; in twl4030_kp_scan() local 221 for (col = 0; col < kp->n_cols + 1; col++) { in twl4030_kp_scan() 224 if (!(changed & (1 << col))) 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() [all …]
|
| A D | samsung-keypad.c | 81 unsigned int col; in samsung_keypad_scan() local 84 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_scan() 85 val = SAMSUNG_KEYIFCOL_MASK & ~BIT(col); in samsung_keypad_scan() 107 unsigned int col, row; in samsung_keypad_report() local 109 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_report() 110 changed = row_state[col] ^ keypad->row_state[col]; in samsung_keypad_report() 111 key_down |= row_state[col]; in samsung_keypad_report() 119 pressed = row_state[col] & BIT(row); in samsung_keypad_report() 123 pressed ? "pressed" : "released", row, col); in samsung_keypad_report() 281 u32 row, col, key_code; in samsung_keypad_parse_dt() local [all …]
|
| A D | cros_ec_keyb.c | 179 int col, row; in cros_ec_keyb_process() local 193 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_process() 198 new_state = kb_state[col] & (1 << row); in cros_ec_keyb_process() 203 row, col, new_state); in cros_ec_keyb_process() 210 ckdev->old_kb_state[col] = kb_state[col]; in cros_ec_keyb_process() 312 int row, col; in cros_ec_keyb_compute_valid_keys() local 319 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_compute_valid_keys() 323 ckdev->valid_keys[col] |= 1 << row; in cros_ec_keyb_compute_valid_keys() 326 col, ckdev->valid_keys[col]); in cros_ec_keyb_compute_valid_keys() 538 unsigned int row, col, scancode; in cros_ec_keyb_parse_vivaldi_physmap() local [all …]
|
| A D | clps711x-keypad.c | 39 int col, row; in clps711x_keypad_poll() local 41 for (col = 0; col < CLPS711X_KEYPAD_COL_COUNT; col++) { in clps711x_keypad_poll() 45 SYSCON1_KBDSCAN(8 + col)); in clps711x_keypad_poll() 59 if (test_bit(col, data->last_state) != state) { in clps711x_keypad_poll() 60 int code = MATRIX_SCAN_CODE(row, col, in clps711x_keypad_poll() 64 set_bit(col, data->last_state); in clps711x_keypad_poll() 68 clear_bit(col, data->last_state); in clps711x_keypad_poll()
|
| A D | locomokbd.c | 87 static inline void locomokbd_activate_col(unsigned long membase, int col) in locomokbd_activate_col() argument 92 nset = 0xFF & ~(1 << col); in locomokbd_activate_col() 97 static inline void locomokbd_reset_col(unsigned long membase, int col) in locomokbd_reset_col() argument 101 nbset = ((0xFF & ~(1 << col)) << 8) + 0xFF; in locomokbd_reset_col() 114 unsigned int row, col, rowd; in locomokbd_scankeyboard() local 123 for (col = 0; col < KB_COLS; col++) { in locomokbd_scankeyboard() 125 locomokbd_activate_col(membase, col); in locomokbd_scankeyboard() 132 scancode = SCANCODE(col, row); in locomokbd_scankeyboard() 158 locomokbd_reset_col(membase, col); in locomokbd_scankeyboard()
|
| A D | mt6779-keypad.c | 37 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() 97 unsigned int *col) in mt6779_keypad_calc_row_col_single() argument 100 *col = key % 9; in mt6779_keypad_calc_row_col_single() 105 unsigned int *col) in mt6779_keypad_calc_row_col_double() argument 108 *col = (key % 13) / 2; in mt6779_keypad_calc_row_col_double()
|
| A D | pmic8xxx-keypad.c | 108 static u8 pmic8xxx_col_state(struct pmic8xxx_kp *kp, u8 col) in pmic8xxx_col_state() argument 111 if (col == 0x00) in pmic8xxx_col_state() 114 return col & ((1 << kp->num_cols) - 1); in pmic8xxx_col_state() 222 int row, col, code; in __pmic8xxx_kp_scan_matrix() local 230 for (col = 0; col < kp->num_cols; col++) { in __pmic8xxx_kp_scan_matrix() 231 if (!(bits_changed & (1 << col))) 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() 243 !(new_state[row] & (1 << col))); in __pmic8xxx_kp_scan_matrix()
|
| A D | nspire-keypad.c | 56 int row, col; in nspire_keypad_irq() local 78 for (col = 0; col < KEYPAD_BITMASK_COLS; col++) { in nspire_keypad_irq() 79 if (!(changed & (1U << col))) in nspire_keypad_irq() 82 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in nspire_keypad_irq() 85 bits & (1U << col)); in nspire_keypad_irq()
|
| A D | stmpe-keypad.c | 179 int col = data & STMPE_KPC_DATA_COL; in stmpe_keypad_irq() local 180 int code = MATRIX_SCAN_CODE(row, col, STMPE_KEYPAD_ROW_SHIFT); in stmpe_keypad_irq() 317 int row, col; in stmpe_keypad_fill_used_pins() local 320 for (col = 0; col < used_cols; col++) { in stmpe_keypad_fill_used_pins() 321 int code = MATRIX_SCAN_CODE(row, col, in stmpe_keypad_fill_used_pins() 325 keypad->cols |= 1 << col; in stmpe_keypad_fill_used_pins()
|
| A D | tca8418_keypad.c | 163 int error, col, row; in tca8418_read_keypad() local 182 col = code % TCA8418_MAX_COLS; in tca8418_read_keypad() 184 row = (col) ? row : row - 1; in tca8418_read_keypad() 185 col = (col) ? col - 1 : TCA8418_MAX_COLS - 1; in tca8418_read_keypad() 187 code = MATRIX_SCAN_CODE(row, col, keypad_data->row_shift); in tca8418_read_keypad()
|
| A D | pinephone-keyboard.c | 213 int col, crc, ret, row; in ppkb_update() local 231 for (col = 0; col < PPKB_COLS; ++col) { in ppkb_update() 232 u8 old = old_buf[1 + col]; in ppkb_update() 233 u8 new = new_buf[1 + col]; in ppkb_update() 252 fn_state = value ? ppkb->fn_pressed : ppkb->fn_state[col] & mask; in ppkb_update() 254 ppkb->fn_state[col] ^= mask; in ppkb_update() 258 col, row_shift); in ppkb_update()
|
| A D | adp5585-keys.c | 47 u32 row, col; in adp5585_keys_validate_events() local 59 col = (events[ev] - 1) % kpad->info->max_cols; in adp5585_keys_validate_events() 62 test_bit(col + kpad->info->max_rows, &kpad->keypad)) in adp5585_keys_validate_events() 231 unsigned int row, col, code; in adp5585_keys_ev_handle() local 246 col = (key - 1) % (kpad->info->max_cols); in adp5585_keys_ev_handle() 247 code = MATRIX_SCAN_CODE(row, col, kpad->row_shift); in adp5585_keys_ev_handle() 250 key, row, col, kpad->keycode[code]); in adp5585_keys_ev_handle()
|
| A D | pxa27x_keypad.c | 412 int row, col, num_keys_pressed = 0; in pxa27x_keypad_scan_matrix() local 424 col = KPAS_CP(kpas); in pxa27x_keypad_scan_matrix() 428 if (col >= pdata->matrix_key_cols || in pxa27x_keypad_scan_matrix() 432 new_state[col] = (1 << row); in pxa27x_keypad_scan_matrix() 452 for (col = 0; col < pdata->matrix_key_cols; col++) { in pxa27x_keypad_scan_matrix() 456 bits_changed = keypad->matrix_key_state[col] ^ new_state[col]; in pxa27x_keypad_scan_matrix() 464 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in pxa27x_keypad_scan_matrix() 468 new_state[col] & (1 << row)); in pxa27x_keypad_scan_matrix()
|
| A D | lpc32xx-keys.c | 71 static void lpc32xx_mod_states(struct lpc32xx_kscan_drv *kscandat, int col) in lpc32xx_mod_states() argument 77 key = readl(LPC32XX_KS_DATA(kscandat->kscan_base, col)); in lpc32xx_mod_states() 78 changed = key ^ kscandat->lastkeystates[col]; in lpc32xx_mod_states() 79 kscandat->lastkeystates[col] = key; in lpc32xx_mod_states() 84 scancode = MATRIX_SCAN_CODE(row, col, in lpc32xx_mod_states()
|
| /drivers/tty/vt/ |
| A D | vc_screen.c | 260 col = pos % maxcol; in vcs_read_buf_uni() 261 nr = maxcol - col; in vcs_read_buf_uni() 269 col = 0; in vcs_read_buf_uni() 283 col = pos % maxcol; in vcs_read_buf_noattr() 290 col = 0; in vcs_read_buf_noattr() 339 col = pos % maxcol; in vcs_read_buf() 356 col = 0; in vcs_read_buf() 485 col = pos % maxcol; in vcs_write_buf_noattr() 497 col = 0; in vcs_write_buf_noattr() 556 col = 0; in vcs_write_buf() [all …]
|
| /drivers/ras/amd/atl/ |
| A D | umc.c | 87 u8 col[NUM_COL_BITS]; member 199 bit_shifts.col[0] = 2 + FIELD_GET(COL_SEL_LO_COL0, temp); in get_umc_info_mi300() 200 bit_shifts.col[1] = 2 + FIELD_GET(COL_SEL_LO_COL1, temp); in get_umc_info_mi300() 239 u16 i, col, row, bank, pc, sid; in convert_dram_to_norm_addr_mi300() local 242 col = FIELD_GET(MI300_UMC_MCA_COL, addr); in convert_dram_to_norm_addr_mi300() 260 temp = bitwise_xor_bits(col & addr_hash.pc.col_xor); in convert_dram_to_norm_addr_mi300() 272 temp = (col >> i) & 0x1; in convert_dram_to_norm_addr_mi300() 273 addr |= temp << bit_shifts.col[i]; in convert_dram_to_norm_addr_mi300() 326 u8 col; in _retire_row_mi300() local 328 for (col = 0; col < MI300_NUM_COL; col++) { in _retire_row_mi300() [all …]
|
| /drivers/gpu/ipu-v3/ |
| A D | ipu-image-convert.c | 693 for (col = 0; col < in->num_cols; col++) { in fill_tile_row() 723 unsigned int col; in find_seams() local 752 for (col = in->num_cols - 1; col > 0; col--) { in find_seams() 882 row, col, in calc_tile_dimensions() 962 for (col = 0; col < s_image->num_cols; col++) { in calc_out_tile_map() 998 for (col = 0; col < image->num_cols; col++) { in calc_tile_offsets_planar() 1049 for (col = 0; col < image->num_cols; col++) { in calc_tile_offsets_packed() 1117 for (col = 0; col < ctx->in.num_cols; col++) { in calc_tile_resize_coefficients() 1124 tile_idx = col; in calc_tile_resize_coefficients() 1215 for (col = 0; col < ctx->in.num_cols; col++) { in calc_tile_resize_coefficients() [all …]
|
| /drivers/media/usb/pwc/ |
| A D | pwc-uncompress.c | 23 int n, line, col; in pwc_decompress() local 64 for (col = 0; col < pdev->width; col += 4) { in pwc_decompress()
|
| /drivers/media/test-drivers/vimc/ |
| A D | vimc-debayer.c | 41 unsigned int lin, unsigned int col, 296 unsigned int col, in vimc_debayer_process_rgb_frame() argument 303 index = VIMC_FRAME_INDEX(lin, col, vdebayer->hw.size.width, 3); in vimc_debayer_process_rgb_frame() 406 const unsigned int col, in vimc_debayer_calc_rgb_sink() argument 426 vdebayer->sd.name, lin, col, vdebayer->hw.size.height, seek); in vimc_debayer_calc_rgb_sink() 444 for (wcol = seek > col ? 0 : col - seek; in vimc_debayer_calc_rgb_sink() 445 wcol < col + seek + 1 && wcol < vdebayer->hw.size.width; in vimc_debayer_calc_rgb_sink() 478 vdebayer->sd.name, lin, col, i, rgb[i], n_rgb[i]); in vimc_debayer_calc_rgb_sink() 485 vdebayer->sd.name, lin, col, i, rgb[i]); in vimc_debayer_calc_rgb_sink()
|
| /drivers/input/ |
| A D | matrix-keymap.c | 28 unsigned int col = KEY_COL(key); in matrix_keypad_map_key() local 31 if (row >= rows || col >= cols) { in matrix_keypad_map_key() 34 __func__, key, row, col, rows, cols); in matrix_keypad_map_key() 38 keymap[MATRIX_SCAN_CODE(row, col, row_shift)] = code; in matrix_keypad_map_key()
|
| /drivers/auxdisplay/ |
| A D | ht16k33.c | 334 int row, col, code; in ht16k33_keypad_scan() local 346 for (col = 0; col < keypad->cols; col++) { in ht16k33_keypad_scan() 347 new_state[col] = le16_to_cpu(data[col]); in ht16k33_keypad_scan() 348 if (new_state[col]) in ht16k33_keypad_scan() 350 bits_changed = keypad->last_key_state[col] ^ new_state[col]; in ht16k33_keypad_scan() 353 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in ht16k33_keypad_scan() 356 new_state[col] & BIT(row)); in ht16k33_keypad_scan()
|
| /drivers/soundwire/ |
| A D | generic_bandwidth_allocation.c | 98 SDW_BLK_GRP_CNT_1, bus->params.col, 0, 0, 1, in sdw_compute_dp0_slave_ports() 99 bus->params.col - 1, SDW_BLK_PKG_PER_PORT, 0x0); in sdw_compute_dp0_slave_ports() 101 sdw_fill_port_params(&p_rt->port_params, p_rt->num, bus->params.col - 1, in sdw_compute_dp0_slave_ports() 114 SDW_BLK_GRP_CNT_1, bus->params.col, 0, 0, 1, in sdw_compute_dp0_master_ports() 115 bus->params.col - 1, SDW_BLK_PKG_PER_PORT, 0x0); in sdw_compute_dp0_master_ports() 117 sdw_fill_port_params(&p_rt->port_params, p_rt->num, bus->params.col - 1, in sdw_compute_dp0_master_ports() 200 hstop = bus->params.col - 1; in _sdw_compute_port_params() 229 int sel_col = bus->params.col; in sdw_compute_group_params() 440 bus->params.col = sdw_cols[c]; in sdw_select_row_col()
|