Lines Matching defs:col
108 static inline void corgikbd_activate_col(int col)
110 /* STROBE col -> High, not col -> HiZ */
111 GPSR2 = CORGI_GPIO_STROBE_BIT(col);
112 GPDR2 = (GPDR2 & ~CORGI_GPIO_ALL_STROBE_BIT) | CORGI_GPIO_STROBE_BIT(col);
115 static inline void corgikbd_reset_col(int col)
117 /* STROBE col -> Low */
118 GPCR2 = CORGI_GPIO_STROBE_BIT(col);
119 /* STROBE col -> out, not col -> HiZ */
120 GPDR2 = (GPDR2 & ~CORGI_GPIO_ALL_STROBE_BIT) | CORGI_GPIO_STROBE_BIT(col);
134 unsigned int row, col, rowd;
144 for (col = 0; col < KB_COLS; col++) {
153 corgikbd_activate_col(col);
156 rowd = GET_ROWS_STATUS(col);
160 scancode = SCANCODE(row, col);
174 corgikbd_reset_col(col);