Home
last modified time | relevance | path

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

123

/linux-3.4.99/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 …]
/linux-3.4.99/drivers/input/keyboard/
Domap-keypad.c74 int col; in set_col_gpio_val() local
76 for (col = 0; col < omap_kp->cols; col++) in set_col_gpio_val()
77 gpio_set_value(col_gpios[col], value & (1 << col)); in set_col_gpio_val()
133 int col = 0; in omap_kp_scan_keypad() local
138 for (col = 0; col < omap_kp->cols; col++) { in omap_kp_scan_keypad()
139 set_col_gpio_val(omap_kp, ~(1 << col)); in omap_kp_scan_keypad()
140 state[col] = ~(get_row_gpio_val(omap_kp)) & 0xff; in omap_kp_scan_keypad()
150 for (col = 0; col < omap_kp->cols; col++) { in omap_kp_scan_keypad()
151 omap_writew(~(1 << col) & 0xff, in omap_kp_scan_keypad()
156 state[col] = ~omap_readw(OMAP1_MPUIO_BASE + in omap_kp_scan_keypad()
[all …]
Dmatrix_keypad.c49 int col, bool on) in __activate_col() argument
54 gpio_direction_output(pdata->col_gpios[col], level_on); in __activate_col()
56 gpio_set_value_cansleep(pdata->col_gpios[col], !level_on); in __activate_col()
57 gpio_direction_input(pdata->col_gpios[col]); in __activate_col()
62 int col, bool on) in activate_col() argument
64 __activate_col(pdata, col, on); in activate_col()
73 int col; in activate_all_cols() local
75 for (col = 0; col < pdata->num_col_gpios; col++) in activate_all_cols()
76 __activate_col(pdata, col, on); in activate_all_cols()
122 int row, col, code; in matrix_keypad_scan() local
[all …]
Dsamsung-keypad.c92 unsigned int col; in samsung_keypad_scan() local
95 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_scan()
98 val &= ~(1 << col) << 8; in samsung_keypad_scan()
101 val &= ~(1 << col); in samsung_keypad_scan()
108 row_state[col] = ~val & ((1 << keypad->rows) - 1); in samsung_keypad_scan()
123 unsigned int col, row; in samsung_keypad_report() local
125 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_report()
126 changed = row_state[col] ^ keypad->row_state[col]; in samsung_keypad_report()
127 key_down |= row_state[col]; in samsung_keypad_report()
135 pressed = row_state[col] & (1 << row); in samsung_keypad_report()
[all …]
Dtwl4030_keypad.c162 static inline u16 twl4030_col_xlate(struct twl4030_keypad *kp, u8 col) in twl4030_col_xlate() argument
169 if (col == 0xFF) in twl4030_col_xlate()
172 return col & ((1 << kp->n_cols) - 1); in twl4030_col_xlate()
194 u16 col = key_state[i]; in twl4030_is_in_ghost_state() local
196 if ((col & check) && hweight16(col) > 1) in twl4030_is_in_ghost_state()
199 check |= col; in twl4030_is_in_ghost_state()
209 int col, row; in twl4030_kp_scan() local
232 for (col = 0; col < kp->n_cols + 1; col++) { in twl4030_kp_scan()
235 if (!(changed & (1 << col))) in twl4030_kp_scan()
238 dev_dbg(kp->dbg_dev, "key [%d:%d] %s\n", row, col, in twl4030_kp_scan()
[all …]
Dimx_keypad.c87 int col; in imx_keypad_scan_matrix() local
90 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_scan_matrix()
91 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_scan_matrix()
119 reg_val &= ~(1 << (8 + col)); in imx_keypad_scan_matrix()
133 matrix_volatile_state[col] = (~reg_val) & keypad->rows_en_mask; in imx_keypad_scan_matrix()
153 int row, col; in imx_keypad_fire_events() local
155 for (col = 0; col < MAX_MATRIX_KEY_COLS; col++) { in imx_keypad_fire_events()
159 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_fire_events()
162 bits_changed = keypad->matrix_stable_state[col] ^ in imx_keypad_fire_events()
163 matrix_volatile_state[col]; in imx_keypad_fire_events()
[all …]
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()
Dpxa27x_keypad.c131 unsigned int col = KEY_COL(key); in pxa27x_keypad_build_keycode() local
132 unsigned int scancode = MATRIX_SCAN_CODE(row, col, in pxa27x_keypad_build_keycode()
187 int row, col, num_keys_pressed = 0; in pxa27x_keypad_scan_matrix() local
199 col = KPAS_CP(kpas); in pxa27x_keypad_scan_matrix()
203 if (col >= pdata->matrix_key_cols || in pxa27x_keypad_scan_matrix()
207 new_state[col] = (1 << row); in pxa27x_keypad_scan_matrix()
227 for (col = 0; col < pdata->matrix_key_cols; col++) { in pxa27x_keypad_scan_matrix()
231 bits_changed = keypad->matrix_key_state[col] ^ new_state[col]; in pxa27x_keypad_scan_matrix()
239 code = MATRIX_SCAN_CODE(row, col, MATRIX_ROW_SHIFT); in pxa27x_keypad_scan_matrix()
242 new_state[col] & (1 << row)); in pxa27x_keypad_scan_matrix()
Domap4-keypad.c90 unsigned int col, row, code, changed; in omap4_keypad_interrupt() local
106 for (col = 0; col < keypad_data->cols; col++) { in omap4_keypad_interrupt()
107 if (changed & (1 << col)) { in omap4_keypad_interrupt()
108 code = MATRIX_SCAN_CODE(row, col, in omap4_keypad_interrupt()
113 key_state[row] & (1 << col)); in omap4_keypad_interrupt()
Dmax7359_keypad.c96 unsigned int col = KEY_COL(key); in max7359_build_keycode() local
97 unsigned int scancode = MATRIX_SCAN_CODE(row, col, in max7359_build_keycode()
112 int val, row, col, release, code; in max7359_interrupt() local
116 col = (val >> 3) & 0x7; in max7359_interrupt()
119 code = MATRIX_SCAN_CODE(row, col, MAX7359_ROW_SHIFT); in max7359_interrupt()
122 "key[%d:%d] %s\n", row, col, release ? "release" : "press"); in max7359_interrupt()
Dpmic8xxx-keypad.c140 static u8 pmic8xxx_col_state(struct pmic8xxx_kp *kp, u8 col) in pmic8xxx_col_state() argument
143 if (col == 0x00) in pmic8xxx_col_state()
146 return col & ((1 << kp->pdata->num_cols) - 1); in pmic8xxx_col_state()
256 int row, col, code; in __pmic8xxx_kp_scan_matrix() local
264 for (col = 0; col < kp->pdata->num_cols; col++) { in __pmic8xxx_kp_scan_matrix()
265 if (!(bits_changed & (1 << col))) in __pmic8xxx_kp_scan_matrix()
268 dev_dbg(kp->dev, "key [%d:%d] %s\n", row, col, in __pmic8xxx_kp_scan_matrix()
269 !(new_state[row] & (1 << col)) ? in __pmic8xxx_kp_scan_matrix()
272 code = MATRIX_SCAN_CODE(row, col, PM8XXX_ROW_SHIFT); in __pmic8xxx_kp_scan_matrix()
277 !(new_state[row] & (1 << col))); in __pmic8xxx_kp_scan_matrix()
Dtca8418_keypad.c175 int error, col, row; in tca8418_read_keypad() local
187 col = code % TCA8418_MAX_COLS; in tca8418_read_keypad()
189 row = (col) ? row : row - 1; in tca8418_read_keypad()
190 col = (col) ? col - 1 : TCA8418_MAX_COLS - 1; in tca8418_read_keypad()
192 code = MATRIX_SCAN_CODE(row, col, keypad_data->row_shift); in tca8418_read_keypad()
/linux-3.4.99/include/linux/input/
Dmatrix_keypad.h11 #define KEY(row, col, val) ((((row) & (MATRIX_MAX_ROWS - 1)) << 24) |\ argument
12 (((col) & (MATRIX_MAX_COLS - 1)) << 16) |\
19 #define MATRIX_SCAN_CODE(row, col, row_shift) (((row) << (row_shift)) + (col)) argument
101 unsigned int col = KEY_COL(key); in matrix_keypad_build_keymap() local
104 keymap[MATRIX_SCAN_CODE(row, col, row_shift)] = code; in matrix_keypad_build_keymap()
/linux-3.4.99/drivers/tty/vt/
Dvc_screen.c219 int col, maxcol, viewed; in vcs_read() local
285 col = p % maxcol; in vcs_read()
286 p += maxcol - col; in vcs_read()
289 if (++col == maxcol) { in vcs_read()
291 col = 0; in vcs_read()
335 col = p % maxcol; in vcs_read()
338 p += maxcol - col; in vcs_read()
349 if (++col == maxcol) { in vcs_read()
351 col = 0; in vcs_read()
397 int col, maxcol, viewed; in vcs_write() local
[all …]
/linux-3.4.99/sound/pci/cs46xx/
Ddsp_spos.c537 int i, j, col; in cs46xx_dsp_proc_task_tree_read() local
545 for (col = 0,j = 0;j < ins->tasks[i].size; j++,col++) { in cs46xx_dsp_proc_task_tree_read()
547 if (col == 4) { in cs46xx_dsp_proc_task_tree_read()
549 col = 0; in cs46xx_dsp_proc_task_tree_read()
598 unsigned int i, col = 0; in cs46xx_dsp_proc_parameter_dump_read() local
602 for (i = 0;i < DSP_PARAMETER_BYTE_SIZE; i += sizeof(u32),col ++) { in cs46xx_dsp_proc_parameter_dump_read()
603 if (col == 4) { in cs46xx_dsp_proc_parameter_dump_read()
605 col = 0; in cs46xx_dsp_proc_parameter_dump_read()
609 col = 0; in cs46xx_dsp_proc_parameter_dump_read()
613 if (col == 0) { in cs46xx_dsp_proc_parameter_dump_read()
[all …]
/linux-3.4.99/arch/mips/sgi-ip27/
Dip27-memory.c181 cnodeid_t row, col; in init_topology_matrix() local
184 for (col = 0; col < MAX_COMPACT_NODES; col++) in init_topology_matrix()
185 __node_distances[row][col] = -1; in init_topology_matrix()
189 for_each_online_node(col) { in init_topology_matrix()
190 nasid2 = COMPACT_TO_NASID_NODEID(col); in init_topology_matrix()
191 __node_distances[row][col] = in init_topology_matrix()
205 cnodeid_t row, col; in dump_topology() local
210 for_each_online_node(col) in dump_topology()
211 printk("%02d ", col); in dump_topology()
215 for_each_online_node(col) in dump_topology()
[all …]
/linux-3.4.99/scripts/kconfig/
Dgconf.c598 GtkTreeViewColumn *col; in on_show_name1_activate() local
601 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NAME); in on_show_name1_activate()
602 if (col) in on_show_name1_activate()
603 gtk_tree_view_column_set_visible(col, show_name); in on_show_name1_activate()
609 GtkTreeViewColumn *col; in on_show_range1_activate() local
612 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_NO); in on_show_range1_activate()
613 if (col) in on_show_range1_activate()
614 gtk_tree_view_column_set_visible(col, show_range); in on_show_range1_activate()
615 col = gtk_tree_view_get_column(GTK_TREE_VIEW(tree2_w), COL_MOD); in on_show_range1_activate()
616 if (col) in on_show_range1_activate()
[all …]
Dqconf.h110 int col = colMap[idx]; in removeColumn() local
111 if (col >= 0) { in removeColumn()
112 Parent::removeColumn(col); in removeColumn()
113 colRevMap[col] = colMap[idx] = -1; in removeColumn()
163 void okRename(int col);
/linux-3.4.99/arch/x86/boot/
Dvideo.c143 int col; in display_menu() local
153 for (col = 0; col < modes_per_line; col++) in display_menu()
157 col = 0; in display_menu()
177 col++; in display_menu()
178 if (col >= modes_per_line) { in display_menu()
180 col = 0; in display_menu()
191 if (col) in display_menu()
/linux-3.4.99/drivers/media/video/pwc/
Dpwc-uncompress.c38 int n, line, col; in pwc_decompress() local
79 for (col = 0; col < pdev->width; col += 4) { in pwc_decompress()
/linux-3.4.99/drivers/video/console/
Dfbcon.h121 int col; in attr_col_ec() local
135 col = mono_col(info); in attr_col_ec()
139 fg = is_mono01 ? col : 0; in attr_col_ec()
140 bg = is_mono01 ? 0 : col; in attr_col_ec()
143 fg = is_mono01 ? 0 : col; in attr_col_ec()
144 bg = is_mono01 ? col : 0; in attr_col_ec()
/linux-3.4.99/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 …]
/linux-3.4.99/drivers/input/
Dof_keymap.c68 int key_code, row, col; in matrix_keyboard_of_fill_keymap() local
71 col = (tmp >> 16) & 0xff; in matrix_keyboard_of_fill_keymap()
73 keymap[i] = KEY(row, col, key_code); in matrix_keyboard_of_fill_keymap()
/linux-3.4.99/arch/blackfin/mach-bf548/include/mach/
Dbf54x_keys.h21 #define KEYVAL(col, row, val) (((1 << col) << 24) | ((1 << row) << 16) | (val)) argument
/linux-3.4.99/drivers/video/
Dtridentfb.c498 int col; in tridentfb_fillrect() local
505 col = fr->color; in tridentfb_fillrect()
506 col |= col << 8; in tridentfb_fillrect()
507 col |= col << 16; in tridentfb_fillrect()
509 col = ((u32 *)(info->pseudo_palette))[fr->color]; in tridentfb_fillrect()
513 fr->height, col, fr->rop); in tridentfb_fillrect()
520 int col, bgcol; in tridentfb_imageblit() local
527 col = img->fg_color; in tridentfb_imageblit()
528 col |= col << 8; in tridentfb_imageblit()
529 col |= col << 16; in tridentfb_imageblit()
[all …]

123