/drivers/staging/uwb/ |
D | allocator.c | 15 int col, mas, safe_mas, unsafe_mas; in uwb_rsv_fill_column_alloc() local 20 for (col = ci->csi.start_col; col < UWB_NUM_ZONES; col += ci->csi.interval) { in uwb_rsv_fill_column_alloc() 26 if (bm[col * UWB_MAS_PER_ZONE + mas] == 0) { in uwb_rsv_fill_column_alloc() 37 bm[col * UWB_MAS_PER_ZONE + mas] = c; in uwb_rsv_fill_column_alloc() 45 int mas, col, rows; in uwb_rsv_fill_row_alloc() local 61 for (col = 0; col < UWB_NUM_ZONES; col++) { in uwb_rsv_fill_row_alloc() 62 if (bm[col * UWB_NUM_ZONES + mas] != UWB_RSV_MAS_NOT_AVAIL) { in uwb_rsv_fill_row_alloc() 63 bm[col * UWB_NUM_ZONES + mas] = c; in uwb_rsv_fill_row_alloc() 132 int deep, set, col, start_col_deep, col_start_set; in uwb_rsv_find_best_column_set() local 149 for (col = start_col; col < UWB_NUM_ZONES; col += interval) { in uwb_rsv_find_best_column_set() [all …]
|
/drivers/input/keyboard/ |
D | omap-keypad.c | 71 int col = 0; in omap_kp_scan_keypad() local 78 for (col = 0; col < omap_kp->cols; col++) { in omap_kp_scan_keypad() 79 omap_writew(~(1 << col) & 0xff, in omap_kp_scan_keypad() 84 state[col] = ~omap_readw(OMAP1_MPUIO_BASE + in omap_kp_scan_keypad() 97 int col, row; in omap_kp_tasklet() local 103 for (col = 0; col < omap_kp_data->cols; col++) { in omap_kp_tasklet() 104 changed = new_state[col] ^ keypad_state[col]; in omap_kp_tasklet() 105 key_down |= new_state[col]; in omap_kp_tasklet() 114 printk(KERN_INFO "omap-keypad: key %d-%d %s\n", col, in omap_kp_tasklet() 115 row, (new_state[col] & (1 << row)) ? in omap_kp_tasklet() [all …]
|
D | matrix_keypad.c | 47 int col, bool on) in __activate_col() argument 52 gpio_direction_output(pdata->col_gpios[col], level_on); in __activate_col() 54 gpio_set_value_cansleep(pdata->col_gpios[col], !level_on); in __activate_col() 56 gpio_direction_input(pdata->col_gpios[col]); in __activate_col() 61 int col, bool on) in activate_col() argument 63 __activate_col(pdata, col, on); in activate_col() 72 int col; in activate_all_cols() local 74 for (col = 0; col < pdata->num_col_gpios; col++) in activate_all_cols() 75 __activate_col(pdata, col, on); in activate_all_cols() 122 int row, col, code; in matrix_keypad_scan() local [all …]
|
D | imx_keypad.c | 81 int col; in imx_keypad_scan_matrix() local 84 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_scan_matrix() 85 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_scan_matrix() 113 reg_val &= ~(1 << (8 + col)); in imx_keypad_scan_matrix() 127 matrix_volatile_state[col] = (~reg_val) & keypad->rows_en_mask; in imx_keypad_scan_matrix() 147 int row, col; in imx_keypad_fire_events() local 149 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_fire_events() 153 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_fire_events() 156 bits_changed = keypad->matrix_stable_state[col] ^ in imx_keypad_fire_events() 157 matrix_volatile_state[col]; in imx_keypad_fire_events() [all …]
|
D | twl4030_keypad.c | 150 static inline u16 twl4030_col_xlate(struct twl4030_keypad *kp, u8 col) in twl4030_col_xlate() argument 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() [all …]
|
D | samsung-keypad.c | 82 unsigned int col; in samsung_keypad_scan() local 85 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_scan() 88 val &= ~(1 << col) << 8; in samsung_keypad_scan() 91 val &= ~(1 << col); in samsung_keypad_scan() 98 row_state[col] = ~val & ((1 << keypad->rows) - 1); in samsung_keypad_scan() 113 unsigned int col, row; in samsung_keypad_report() local 115 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_report() 116 changed = row_state[col] ^ keypad->row_state[col]; in samsung_keypad_report() 117 key_down |= row_state[col]; in samsung_keypad_report() 125 pressed = row_state[col] & (1 << row); in samsung_keypad_report() [all …]
|
D | clps711x-keypad.c | 38 int col, row; in clps711x_keypad_poll() local 40 for (col = 0; col < CLPS711X_KEYPAD_COL_COUNT; col++) { in clps711x_keypad_poll() 44 SYSCON1_KBDSCAN(8 + col)); in clps711x_keypad_poll() 58 if (test_bit(col, data->last_state) != state) { in clps711x_keypad_poll() 59 int code = MATRIX_SCAN_CODE(row, col, in clps711x_keypad_poll() 63 set_bit(col, data->last_state); in clps711x_keypad_poll() 67 clear_bit(col, data->last_state); in clps711x_keypad_poll()
|
D | cros_ec_keyb.c | 160 int col, row; in cros_ec_keyb_process() local 174 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_process() 176 int pos = MATRIX_SCAN_CODE(row, col, ckdev->row_shift); in cros_ec_keyb_process() 179 new_state = kb_state[col] & (1 << row); in cros_ec_keyb_process() 180 old_state = ckdev->old_kb_state[col] & (1 << row); in cros_ec_keyb_process() 184 row, col, new_state); in cros_ec_keyb_process() 190 ckdev->old_kb_state[col] = kb_state[col]; in cros_ec_keyb_process() 294 int row, col; in cros_ec_keyb_compute_valid_keys() local 301 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_compute_valid_keys() 303 code = keymap[MATRIX_SCAN_CODE(row, col, row_shift)]; in cros_ec_keyb_compute_valid_keys() [all …]
|
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 124 for (col = 0; col < KB_COLS; col++) { in locomokbd_scankeyboard() 126 locomokbd_activate_col(membase, col); in locomokbd_scankeyboard() 133 scancode = SCANCODE(col, row); in locomokbd_scankeyboard() 159 locomokbd_reset_col(membase, col); in locomokbd_scankeyboard()
|
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()
|
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()
|
D | stmpe-keypad.c | 178 int col = data & STMPE_KPC_DATA_COL; in stmpe_keypad_irq() local 179 int code = MATRIX_SCAN_CODE(row, col, STMPE_KEYPAD_ROW_SHIFT); in stmpe_keypad_irq() 316 int row, col; in stmpe_keypad_fill_used_pins() local 319 for (col = 0; col < used_cols; col++) { in stmpe_keypad_fill_used_pins() 320 int code = MATRIX_SCAN_CODE(row, col, in stmpe_keypad_fill_used_pins() 324 keypad->cols |= 1 << col; in stmpe_keypad_fill_used_pins()
|
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()
|
D | nomadik-ske-keypad.c | 139 static void ske_keypad_report(struct ske_keypad *keypad, u8 status, int col) in ske_keypad_report() argument 154 code = MATRIX_SCAN_CODE(row, col, SKE_KEYPAD_ROW_SHIFT); in ske_keypad_report() 168 int col = 0; in ske_keypad_read_data() local 186 col = i * 2; in ske_keypad_read_data() 187 ske_keypad_report(keypad, status, col); in ske_keypad_read_data() 191 col = (i * 2) + 1; in ske_keypad_read_data() 192 ske_keypad_report(keypad, status, col); in ske_keypad_read_data()
|
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()
|
/drivers/tty/vt/ |
D | vc_screen.c | 250 int attr, uni_mode, row, col, maxcol, viewed; in vcs_read() local 327 col = p % maxcol; in vcs_read() 328 nr = maxcol - col; in vcs_read() 333 row, col, nr); in vcs_read() 337 col = 0; in vcs_read() 342 col = p % maxcol; in vcs_read() 343 p += maxcol - col; in vcs_read() 346 if (++col == maxcol) { in vcs_read() 348 col = 0; in vcs_read() 393 col = p % maxcol; in vcs_read() [all …]
|
/drivers/gpu/drm/mgag200/ |
D | mgag200_cursor.c | 44 unsigned int i, row, col; in mga_crtc_cursor_set() local 181 for (col = 0; col < 64; col++) { in mga_crtc_cursor_set() 182 this_colour = ioread32(src + 4*(col + 64*row)); in mga_crtc_cursor_set() 185 this_row[47 - col/8] |= 0x80>>(col%8); in mga_crtc_cursor_set() 192 if (col % 2) in mga_crtc_cursor_set() 193 this_row[col/2] |= i<<4; in mga_crtc_cursor_set() 195 this_row[col/2] |= i; in mga_crtc_cursor_set()
|
/drivers/gpu/drm/udl/ |
D | udl_fb.c | 40 #define DLO_RGB_GETRED(col) (uint8_t)((col) & 0xFF) argument 43 #define DLO_RGB_GETGRN(col) (uint8_t)(((col) >> 8) & 0xFF) argument 46 #define DLO_RGB_GETBLU(col) (uint8_t)(((col) >> 16) & 0xFF) argument 58 static uint8_t rgb8(uint32_t col) 60 uint8_t red = DLO_RGB_GETRED(col); 61 uint8_t grn = DLO_RGB_GETGRN(col); 62 uint8_t blu = DLO_RGB_GETBLU(col); 67 static uint16_t rgb16(uint32_t col) 69 uint8_t red = DLO_RGB_GETRED(col); 70 uint8_t grn = DLO_RGB_GETGRN(col); [all …]
|
/drivers/gpu/ipu-v3/ |
D | ipu-image-convert.c | 651 unsigned int col, in fill_tile_column() argument 661 tile_idx = in->num_cols * row + col; in fill_tile_column() 689 unsigned int col, tile_idx; in fill_tile_row() local 692 for (col = 0; col < in->num_cols; col++) { in fill_tile_row() 693 tile_idx = in->num_cols * row + col; in fill_tile_row() 722 unsigned int col; in find_seams() local 751 for (col = in->num_cols - 1; col > 0; col--) { in find_seams() 754 bool allow_out_overshoot = (col < in->num_cols - 1) && in find_seams() 764 find_best_seam(ctx, col, in find_seams() 777 fill_tile_column(ctx, col, in, in_left, in_right - in_left, in find_seams() [all …]
|
/drivers/video/fbdev/core/ |
D | fbcon.h | 123 int col; in attr_col_ec() local 137 col = mono_col(info); in attr_col_ec() 141 fg = is_mono01 ? col : 0; in attr_col_ec() 142 bg = is_mono01 ? 0 : col; in attr_col_ec() 145 fg = is_mono01 ? 0 : col; in attr_col_ec() 146 bg = is_mono01 ? col : 0; in attr_col_ec()
|
/drivers/media/usb/pwc/ |
D | pwc-uncompress.c | 26 int n, line, col; in pwc_decompress() local 67 for (col = 0; col < pdev->width; col += 4) { in pwc_decompress()
|
/drivers/auxdisplay/ |
D | ht16k33.c | 251 int row, col, code; in ht16k33_keypad_scan() local 263 for (col = 0; col < keypad->cols; col++) { in ht16k33_keypad_scan() 264 new_state[col] = le16_to_cpu(data[col]); in ht16k33_keypad_scan() 265 if (new_state[col]) in ht16k33_keypad_scan() 267 bits_changed = keypad->last_key_state[col] ^ new_state[col]; in ht16k33_keypad_scan() 270 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in ht16k33_keypad_scan() 273 new_state[col] & BIT(row)); in ht16k33_keypad_scan()
|
/drivers/media/platform/vimc/ |
D | vimc-debayer.c | 49 unsigned int col, unsigned int rgb[3]); 301 unsigned int col, in vimc_deb_set_rgb_mbus_fmt_rgb888_1x24() argument 306 index = VIMC_FRAME_INDEX(lin, col, vdeb->sink_fmt.width, 3); in vimc_deb_set_rgb_mbus_fmt_rgb888_1x24() 378 const unsigned int col, in vimc_deb_calc_rgb_sink() argument 398 vdeb->sd.name, lin, col, vdeb->sink_fmt.height, seek); in vimc_deb_calc_rgb_sink() 416 for (wcol = seek > col ? 0 : col - seek; in vimc_deb_calc_rgb_sink() 417 wcol < col + seek + 1 && wcol < vdeb->sink_fmt.width; in vimc_deb_calc_rgb_sink() 449 vdeb->sd.name, lin, col, i, rgb[i], n_rgb[i]); in vimc_deb_calc_rgb_sink() 456 vdeb->sd.name, lin, col, i, rgb[i]); in vimc_deb_calc_rgb_sink()
|
/drivers/irqchip/ |
D | irq-gic-v3-its.c | 202 static struct its_collection *valid_col(struct its_collection *col) in valid_col() argument 204 if (WARN_ON_ONCE(col->target_address & GENMASK_ULL(15, 0))) in valid_col() 207 return col; in valid_col() 245 struct its_collection *col; member 257 struct its_collection *col; member 267 struct its_collection *col; member 276 struct its_collection *col; member 297 struct its_collection *col; member 369 static void its_encode_collection(struct its_cmd_block *cmd, u16 col) in its_encode_collection() argument 371 its_mask_encode(&cmd->raw_cmd[2], col, 15, 0); in its_encode_collection() [all …]
|
/drivers/input/ |
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()
|