Home
last modified time | relevance | path

Searched refs:col (Results 1 – 25 of 64) sorted by relevance

123

/drivers/uwb/
Dallocator.c26 int col, mas, safe_mas, unsafe_mas; in uwb_rsv_fill_column_alloc() local
31 for (col = ci->csi.start_col; col < UWB_NUM_ZONES; col += ci->csi.interval) { in uwb_rsv_fill_column_alloc()
37 if (bm[col * UWB_MAS_PER_ZONE + mas] == 0) { in uwb_rsv_fill_column_alloc()
48 bm[col * UWB_MAS_PER_ZONE + mas] = c; in uwb_rsv_fill_column_alloc()
56 int mas, col, rows; in uwb_rsv_fill_row_alloc() local
72 for (col = 0; col < UWB_NUM_ZONES; col++) { in uwb_rsv_fill_row_alloc()
73 if (bm[col * UWB_NUM_ZONES + mas] != UWB_RSV_MAS_NOT_AVAIL) { in uwb_rsv_fill_row_alloc()
74 bm[col * UWB_NUM_ZONES + mas] = c; in uwb_rsv_fill_row_alloc()
143 int deep, set, col, start_col_deep, col_start_set; in uwb_rsv_find_best_column_set() local
160 for (col = start_col; col < UWB_NUM_ZONES; col += interval) { in uwb_rsv_find_best_column_set()
[all …]
/drivers/input/keyboard/
Domap-keypad.c70 int col; in set_col_gpio_val() local
72 for (col = 0; col < omap_kp->cols; col++) in set_col_gpio_val()
73 gpio_set_value(col_gpios[col], value & (1 << col)); in set_col_gpio_val()
109 int col = 0; in omap_kp_scan_keypad() local
116 for (col = 0; col < omap_kp->cols; col++) { in omap_kp_scan_keypad()
117 omap_writew(~(1 << col) & 0xff, in omap_kp_scan_keypad()
122 state[col] = ~omap_readw(OMAP1_MPUIO_BASE + in omap_kp_scan_keypad()
135 int col, row; in omap_kp_tasklet() local
142 for (col = 0; col < omap_kp_data->cols; col++) { in omap_kp_tasklet()
143 changed = new_state[col] ^ keypad_state[col]; in omap_kp_tasklet()
[all …]
Dmatrix_keypad.c50 int col, bool on) in __activate_col() argument
55 gpio_direction_output(pdata->col_gpios[col], level_on); in __activate_col()
57 gpio_set_value_cansleep(pdata->col_gpios[col], !level_on); in __activate_col()
58 gpio_direction_input(pdata->col_gpios[col]); in __activate_col()
63 int col, bool on) in activate_col() argument
65 __activate_col(pdata, col, on); in activate_col()
74 int col; in activate_all_cols() local
76 for (col = 0; col < pdata->num_col_gpios; col++) in activate_all_cols()
77 __activate_col(pdata, col, on); in activate_all_cols()
124 int row, col, code; in matrix_keypad_scan() local
[all …]
Dcros_ec_keyb.c111 int col, row; in cros_ec_keyb_process() local
128 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_process()
130 int pos = MATRIX_SCAN_CODE(row, col, ckdev->row_shift); in cros_ec_keyb_process()
133 new_state = kb_state[col] & (1 << row); in cros_ec_keyb_process()
134 old_state = ckdev->old_kb_state[col] & (1 << row); in cros_ec_keyb_process()
138 row, col, new_state); in cros_ec_keyb_process()
145 ckdev->old_kb_state[col] = kb_state[col]; in cros_ec_keyb_process()
219 int row, col; in cros_ec_keyb_compute_valid_keys() local
226 for (col = 0; col < ckdev->cols; col++) { in cros_ec_keyb_compute_valid_keys()
228 code = keymap[MATRIX_SCAN_CODE(row, col, row_shift)]; in cros_ec_keyb_compute_valid_keys()
[all …]
Dimx_keypad.c85 int col; in imx_keypad_scan_matrix() local
88 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_scan_matrix()
89 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_scan_matrix()
117 reg_val &= ~(1 << (8 + col)); in imx_keypad_scan_matrix()
131 matrix_volatile_state[col] = (~reg_val) & keypad->rows_en_mask; in imx_keypad_scan_matrix()
151 int row, col; in imx_keypad_fire_events() local
153 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_fire_events()
157 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_fire_events()
160 bits_changed = keypad->matrix_stable_state[col] ^ in imx_keypad_fire_events()
161 matrix_volatile_state[col]; in imx_keypad_fire_events()
[all …]
Dtwl4030_keypad.c163 static inline u16 twl4030_col_xlate(struct twl4030_keypad *kp, u8 col) in twl4030_col_xlate() argument
170 if (col == 0xFF) in twl4030_col_xlate()
173 return col & ((1 << kp->n_cols) - 1); in twl4030_col_xlate()
195 u16 col = key_state[i]; in twl4030_is_in_ghost_state() local
197 if ((col & check) && hweight16(col) > 1) in twl4030_is_in_ghost_state()
200 check |= col; in twl4030_is_in_ghost_state()
210 int col, row; in twl4030_kp_scan() local
233 for (col = 0; col < kp->n_cols + 1; col++) { in twl4030_kp_scan()
236 if (!(changed & (1 << col))) in twl4030_kp_scan()
239 dev_dbg(kp->dbg_dev, "key [%d:%d] %s\n", row, col, in twl4030_kp_scan()
[all …]
Dsamsung-keypad.c86 unsigned int col; in samsung_keypad_scan() local
89 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_scan()
92 val &= ~(1 << col) << 8; in samsung_keypad_scan()
95 val &= ~(1 << col); in samsung_keypad_scan()
102 row_state[col] = ~val & ((1 << keypad->rows) - 1); in samsung_keypad_scan()
117 unsigned int col, row; in samsung_keypad_report() local
119 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_report()
120 changed = row_state[col] ^ keypad->row_state[col]; in samsung_keypad_report()
121 key_down |= row_state[col]; in samsung_keypad_report()
129 pressed = row_state[col] & (1 << row); in samsung_keypad_report()
[all …]
Dclps711x-keypad.c42 int col, row; in clps711x_keypad_poll() local
44 for (col = 0; col < CLPS711X_KEYPAD_COL_COUNT; col++) { in clps711x_keypad_poll()
48 SYSCON1_KBDSCAN(8 + col)); in clps711x_keypad_poll()
62 if (test_bit(col, data->last_state) != state) { in clps711x_keypad_poll()
63 int code = MATRIX_SCAN_CODE(row, col, in clps711x_keypad_poll()
67 set_bit(col, data->last_state); in clps711x_keypad_poll()
71 clear_bit(col, data->last_state); in clps711x_keypad_poll()
Dlocomokbd.c102 static inline void locomokbd_activate_col(unsigned long membase, int col) in locomokbd_activate_col() argument
107 nset = 0xFF & ~(1 << col); in locomokbd_activate_col()
112 static inline void locomokbd_reset_col(unsigned long membase, int col) in locomokbd_reset_col() argument
116 nbset = ((0xFF & ~(1 << col)) << 8) + 0xFF; in locomokbd_reset_col()
129 unsigned int row, col, rowd; in locomokbd_scankeyboard() local
139 for (col = 0; col < KB_COLS; col++) { in locomokbd_scankeyboard()
141 locomokbd_activate_col(membase, col); in locomokbd_scankeyboard()
148 scancode = SCANCODE(col, row); in locomokbd_scankeyboard()
174 locomokbd_reset_col(membase, col); in locomokbd_scankeyboard()
Dnspire-keypad.c59 int row, col; in nspire_keypad_irq() local
81 for (col = 0; col < KEYPAD_BITMASK_COLS; col++) { in nspire_keypad_irq()
82 if (!(changed & (1U << col))) in nspire_keypad_irq()
85 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in nspire_keypad_irq()
88 bits & (1U << col)); in nspire_keypad_irq()
Dpmic8xxx-keypad.c116 static u8 pmic8xxx_col_state(struct pmic8xxx_kp *kp, u8 col) in pmic8xxx_col_state() argument
119 if (col == 0x00) in pmic8xxx_col_state()
122 return col & ((1 << kp->num_cols) - 1); in pmic8xxx_col_state()
230 int row, col, code; in __pmic8xxx_kp_scan_matrix() local
238 for (col = 0; col < kp->num_cols; col++) { in __pmic8xxx_kp_scan_matrix()
239 if (!(bits_changed & (1 << col))) in __pmic8xxx_kp_scan_matrix()
242 dev_dbg(kp->dev, "key [%d:%d] %s\n", row, col, in __pmic8xxx_kp_scan_matrix()
243 !(new_state[row] & (1 << col)) ? in __pmic8xxx_kp_scan_matrix()
246 code = MATRIX_SCAN_CODE(row, col, PM8XXX_ROW_SHIFT); in __pmic8xxx_kp_scan_matrix()
251 !(new_state[row] & (1 << col))); in __pmic8xxx_kp_scan_matrix()
Dstmpe-keypad.c170 int col = data & STMPE_KPC_DATA_COL; in stmpe_keypad_irq() local
171 int code = MATRIX_SCAN_CODE(row, col, STMPE_KEYPAD_ROW_SHIFT); in stmpe_keypad_irq()
308 int row, col; in stmpe_keypad_fill_used_pins() local
311 for (col = 0; col < used_cols; col++) { in stmpe_keypad_fill_used_pins()
312 int code = MATRIX_SCAN_CODE(row, col, in stmpe_keypad_fill_used_pins()
316 keypad->cols |= 1 << col; in stmpe_keypad_fill_used_pins()
Dtca8418_keypad.c164 int error, col, row; in tca8418_read_keypad() local
183 col = code % TCA8418_MAX_COLS; in tca8418_read_keypad()
185 row = (col) ? row : row - 1; in tca8418_read_keypad()
186 col = (col) ? col - 1 : TCA8418_MAX_COLS - 1; in tca8418_read_keypad()
188 code = MATRIX_SCAN_CODE(row, col, keypad_data->row_shift); in tca8418_read_keypad()
Dnomadik-ske-keypad.c140 static void ske_keypad_report(struct ske_keypad *keypad, u8 status, int col) in ske_keypad_report() argument
155 code = MATRIX_SCAN_CODE(row, col, SKE_KEYPAD_ROW_SHIFT); in ske_keypad_report()
169 int col = 0; in ske_keypad_read_data() local
187 col = i * 2; in ske_keypad_read_data()
188 ske_keypad_report(keypad, status, col); in ske_keypad_read_data()
192 col = (i * 2) + 1; in ske_keypad_read_data()
193 ske_keypad_report(keypad, status, col); in ske_keypad_read_data()
Dpxa27x_keypad.c415 int row, col, num_keys_pressed = 0; in pxa27x_keypad_scan_matrix() local
427 col = KPAS_CP(kpas); in pxa27x_keypad_scan_matrix()
431 if (col >= pdata->matrix_key_cols || in pxa27x_keypad_scan_matrix()
435 new_state[col] = (1 << row); in pxa27x_keypad_scan_matrix()
455 for (col = 0; col < pdata->matrix_key_cols; col++) { in pxa27x_keypad_scan_matrix()
459 bits_changed = keypad->matrix_key_state[col] ^ new_state[col]; in pxa27x_keypad_scan_matrix()
467 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in pxa27x_keypad_scan_matrix()
471 new_state[col] & (1 << row)); in pxa27x_keypad_scan_matrix()
Domap4-keypad.c140 unsigned int col, row, code, changed; in omap4_keypad_irq_thread_fn() local
151 for (col = 0; col < keypad_data->cols; col++) { in omap4_keypad_irq_thread_fn()
152 if (changed & (1 << col)) { in omap4_keypad_irq_thread_fn()
153 code = MATRIX_SCAN_CODE(row, col, in omap4_keypad_irq_thread_fn()
158 key_state[row] & (1 << col)); in omap4_keypad_irq_thread_fn()
Dlpc32xx-keys.c82 static void lpc32xx_mod_states(struct lpc32xx_kscan_drv *kscandat, int col) in lpc32xx_mod_states() argument
88 key = readl(LPC32XX_KS_DATA(kscandat->kscan_base, col)); in lpc32xx_mod_states()
89 changed = key ^ kscandat->lastkeystates[col]; in lpc32xx_mod_states()
90 kscandat->lastkeystates[col] = key; in lpc32xx_mod_states()
95 scancode = MATRIX_SCAN_CODE(row, col, in lpc32xx_mod_states()
/drivers/tty/vt/
Dvc_screen.c204 int col, maxcol, viewed; in vcs_read() local
270 col = p % maxcol; in vcs_read()
271 p += maxcol - col; in vcs_read()
274 if (++col == maxcol) { in vcs_read()
276 col = 0; in vcs_read()
320 col = p % maxcol; in vcs_read()
323 p += maxcol - col; in vcs_read()
334 if (++col == maxcol) { in vcs_read()
336 col = 0; in vcs_read()
382 int col, maxcol, viewed; in vcs_write() local
[all …]
/drivers/gpu/drm/mgag200/
Dmgag200_cursor.c46 unsigned int i, row, col; in mga_crtc_cursor_set() local
194 for (col = 0; col < 64; col++) { in mga_crtc_cursor_set()
195 this_colour = ioread32(bo->kmap.virtual + 4*(col + 64*row)); in mga_crtc_cursor_set()
198 this_row[47 - col/8] |= 0x80>>(col%8); in mga_crtc_cursor_set()
205 if (col % 2) in mga_crtc_cursor_set()
206 this_row[col/2] |= i<<4; in mga_crtc_cursor_set()
208 this_row[col/2] |= i; in mga_crtc_cursor_set()
/drivers/irqchip/
Dirq-gic-v3-its.c144 struct its_collection *col; member
156 struct its_collection *col; member
166 struct its_collection *col; member
232 static void its_encode_collection(struct its_cmd_block *cmd, u16 col) in its_encode_collection() argument
235 cmd->raw_cmd[2] |= col; in its_encode_collection()
271 its_encode_collection(cmd, desc->its_mapc_cmd.col->col_id); in its_build_mapc_cmd()
272 its_encode_target(cmd, desc->its_mapc_cmd.col->target_address); in its_build_mapc_cmd()
277 return desc->its_mapc_cmd.col; in its_build_mapc_cmd()
283 struct its_collection *col; in its_build_mapvi_cmd() local
285 col = dev_event_to_col(desc->its_mapvi_cmd.dev, in its_build_mapvi_cmd()
[all …]
/drivers/video/console/
Dfbcon.h122 int col; in attr_col_ec() local
136 col = mono_col(info); in attr_col_ec()
140 fg = is_mono01 ? col : 0; in attr_col_ec()
141 bg = is_mono01 ? 0 : col; in attr_col_ec()
144 fg = is_mono01 ? 0 : col; in attr_col_ec()
145 bg = is_mono01 ? col : 0; in attr_col_ec()
/drivers/media/usb/pwc/
Dpwc-uncompress.c38 int n, line, col; in pwc_decompress() local
79 for (col = 0; col < pdev->width; col += 4) { in pwc_decompress()
/drivers/gpu/drm/udl/
Dudl_fb.c44 #define DLO_RGB_GETRED(col) (uint8_t)((col) & 0xFF) argument
47 #define DLO_RGB_GETGRN(col) (uint8_t)(((col) >> 8) & 0xFF) argument
50 #define DLO_RGB_GETBLU(col) (uint8_t)(((col) >> 16) & 0xFF) argument
62 static uint8_t rgb8(uint32_t col)
64 uint8_t red = DLO_RGB_GETRED(col);
65 uint8_t grn = DLO_RGB_GETGRN(col);
66 uint8_t blu = DLO_RGB_GETBLU(col);
71 static uint16_t rgb16(uint32_t col)
73 uint8_t red = DLO_RGB_GETRED(col);
74 uint8_t grn = DLO_RGB_GETGRN(col);
[all …]
/drivers/input/
Dmatrix-keymap.c36 unsigned int col = KEY_COL(key); in matrix_keypad_map_key() local
39 if (row >= rows || col >= cols) { in matrix_keypad_map_key()
42 __func__, key, row, col, rows, cols); in matrix_keypad_map_key()
46 keymap[MATRIX_SCAN_CODE(row, col, row_shift)] = code; in matrix_keypad_map_key()
/drivers/video/fbdev/
Dtridentfb.c619 int col; in tridentfb_fillrect() local
626 col = fr->color; in tridentfb_fillrect()
627 col |= col << 8; in tridentfb_fillrect()
628 col |= col << 16; in tridentfb_fillrect()
630 col = ((u32 *)(info->pseudo_palette))[fr->color]; in tridentfb_fillrect()
634 fr->height, col, fr->rop); in tridentfb_fillrect()
641 int col, bgcol; in tridentfb_imageblit() local
648 col = img->fg_color; in tridentfb_imageblit()
649 col |= col << 8; in tridentfb_imageblit()
650 col |= col << 16; in tridentfb_imageblit()
[all …]

123