/src/sys/external/gpl2/dts/dist/include/dt-bindings/input/ |
input.h | 17 #define MATRIX_KEY(row, col, code) \ 18 ((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF))
|
/src/games/rogue/ |
throw.c | 68 short dir, row, col; local in function:throw 95 row = rogue.row; col = rogue.col; 106 monster = get_thrown_at_monster(weapon, d, &row, &col); 107 mvaddch(rogue.row, rogue.col, rogue.fchar); 110 if (rogue_can_see(row, col) && ((row != rogue.row) || (col != rogue.col))){ 111 mvaddch(row, col, get_dungeon_char(row, col)) 267 static short row, col; local in function:rand_around [all...] |
trap.c | 78 trap_at(int row, int col) 83 if ((traps[i].trap_row == row) && (traps[i].trap_col == col)) { 91 trap_player(short row, short col) 95 if ((t = trap_at(row, col)) == NO_TRAP) { 98 dungeon[row][col] &= (~HIDDEN); 113 mvaddch(rogue.row, rogue.col, '^'); 146 short row, col; local in function:add_traps 168 row = get_rand((rooms[party_room].top_row+1), 173 } while (((dungeon[row][col] & (OBJECT|STAIRS|TRAP|TUNNEL)) || 174 (dungeon[row][col] == NOTHING)) && (tries < 15)) 190 short dir, row, col, d, t; local in function:id_trap 232 short s, i, j, row, col, t; local in function:search [all...] |
zap.c | 71 short dir, d, row, col; local in function:zapp 102 row = rogue.row; col = rogue.col; 104 bounce((short)wand->which_kind, d, row, col, 0); 106 monster = get_zapped_monster(d, &row, &col); 121 get_zapped_monster(short dir, short *row, short *col) 126 orow = *row; ocol = *col; 127 get_dir_rc(dir, row, col, 0); 128 if (((*row == orow) && (*col == ocol)) || 129 (dungeon[*row][*col] & (HORWALL | VERTWALL)) | 144 short row, col; local in function:zap_monster 210 short row, col; local in function:tele_away [all...] |
monster.c | 150 short row, col; local in function:put_mons 159 gr_row_col(&row, &col, (FLOOR | TUNNEL | STAIRS | OBJECT)); 160 put_m_at(row, col, monster); 205 mv_1_monster(monster, rogue.row, rogue.col); 221 !mon_can_go(monster, rogue.row, rogue.col)) { 223 mv_1_monster(monster, rogue.row, rogue.col); 228 if (!(flew && mon_can_go(monster, rogue.row, rogue.col))) { 229 mv_1_monster(monster, rogue.row, rogue.col); 249 short row, col; local in function:party_monsters 253 row = col = 0 631 short row, col, i; local in function:wanderer 685 short row, col; local in function:create_monster 765 short i, row, col; local in function:move_confused 795 short i, row, col; local in function:flit [all...] |
move.c | 72 short row, col; local in function:one_move_rogue 77 row = rogue.row; 84 get_dir_rc(d, &row, &col, 1); 86 if (!can_move(rogue.row, rogue.col, row, col)) { 90 if (!(dungeon[row][col] & MONSTER)) { 106 if (dungeon[row][col] & MONSTER) { 107 rogue_hit(object_at(&level_monsters, row, col), 0); 111 if (dungeon[row][col] & DOOR) 183 short row, col; local in function:multiple_move_rogue 244 short i, j, i_end, j_end, row, col; local in function:next_to_something [all...] |
spec_hit.c | 231 short row, col; local in function:disappear 233 row = monster->row; 236 dungeon[row][col] &= ~MONSTER; 237 if (rogue_can_see(row, col)) { 238 mvaddch(row, col, get_dungeon_char(row, col)); 249 short row, col, i, n; local in function:cough_up 265 row = monster->row; 484 short row, col, dir; local in function:flame_broil [all...] |
hit.c | 305 short row, col; local in function:mon_damage 310 row = monster->row; 312 dungeon[row][col] &= ~MONSTER; 313 mvaddch(row, col, get_dungeon_char(row, col)); 336 short row, col; local in function:fight 353 row = rogue.row; col = rogue.col; 354 get_dir_rc(d, &row, &col, 0) [all...] |
room.c | 120 dungeon[monster->row][monster->col] &= (~MONSTER); 122 get_dungeon_char(monster->row, monster->col); 123 dungeon[monster->row][monster->col] |= MONSTER; 129 mvaddch(rogue.row, rogue.col, rogue.fchar); 134 light_passage(int row, int col) 141 i_end = (row < (DROWS-2)) ? 1 : 0; 144 for (i = ((row > MIN_ROW) ? -1 : 0); i <= i_end; i++) { 146 if (can_move(row, col, row+i, col+j)) { 147 mvaddch(row+i, col+j, get_dungeon_char(row+i, col+j)) 289 short n, N, row, col; local in function:party_objects [all...] |
message.c | 134 move(rogue.row, rogue.col); 247 int row = DROWS - 1; local in function:print_stats 253 mvaddstr(row, 0, "Level: "); 256 mvprintw(row, 7, "%-2d", cur_level); 260 mvaddstr(row, 10, "Gold: "); 265 mvprintw(row, 16, "%-6ld", rogue.gold); 269 mvaddstr(row, 23, "Hp: "); 277 mvprintw(row, 27, "%-8s", buf); 281 mvaddstr(row, 36, "Str: "); 289 mvprintw(row, 41, "%-6s", buf) [all...] |
object.c | 78 0, 0, /* row, col */ 203 short row,col; local in function:put_gold 215 row = get_rand(rooms[i].top_row+1, 219 if ((dungeon[row][col] == FLOOR) || 220 (dungeon[row][col] == TUNNEL)) { 221 plant_gold(row, col, is_maze); 230 plant_gold(short row, short col, boolean is_maze) 235 obj->row = row; obj->col = col; 241 dungeon[row][col] |= OBJECT 616 short row, col; local in function:put_stairs 677 short mc, rc, row, col; local in function:show_objects 725 short row, col; local in function:rand_place [all...] |
/src/usr.bin/systat/ |
iostat.c | 103 int row; local in function:labeliostat 109 row = 0; 110 wmove(wnd, row, 0); wclrtobot(wnd); 111 mvwaddstr(wnd, row++, INSET, 113 mvwaddstr(wnd, row++, 0, " CPU user|"); 114 mvwaddstr(wnd, row++, 0, " nice|"); 115 mvwaddstr(wnd, row++, 0, " system|"); 116 mvwaddstr(wnd, row++, 0, " interrupt|"); 117 mvwaddstr(wnd, row++, 0, " idle|"); 119 row = numlabels(row + 1) 204 int row, col; local in function:showiostat [all...] |
icmp.c | 49 #define LHD(row, str) mvwprintw(wnd, row, 10, str) 50 #define RHD(row, str) mvwprintw(wnd, row, 45, str); 51 #define BD(row, str) LHD(row, str); RHD(row, str) 52 #define SHOW(stat, row, col) \ 53 mvwprintw(wnd, row, col, "%9llu", (unsigned long long)curstat[stat]) 54 #define SHOW2(type, row) SHOW(ICMP_STAT_INHIST + type, row, 0); [all...] |
/src/lib/libform/ |
internals.c | 85 /* used in add_char for initial memory allocation for string in row */ 97 _formi_hscroll_back(FIELD *field, _FORMI_FIELD_LINES *row, unsigned int amt); 99 _formi_hscroll_fwd(FIELD *field, _FORMI_FIELD_LINES *row, unsigned int amt); 114 add_tab(FORM *form, _FORMI_FIELD_LINES *row, unsigned int i, char c); 116 tab_size(_FORMI_FIELD_LINES *row, unsigned int i); 118 tab_fit_len(_FORMI_FIELD_LINES *row, unsigned int len); 126 copy_row(_FORMI_FIELD_LINES *row); 131 * Calculate the cursor y position to make the given row appear on the 167 * Delete the given row and add it to the free list of the given field. 213 * Duplicate the given row, return the pointer to the new copy o 470 _FORMI_FIELD_LINES *temp, *row; local in function:destroy_row_list 506 _FORMI_FIELD_LINES *saved_row, *row, *row_backup, *saved_cur_line; local in function:_formi_wrap_field 711 _FORMI_FIELD_LINES *row = *rowp; local in function:_formi_join_line 887 _FORMI_FIELD_LINES *row = *rowp; local in function:split_line 1050 _FORMI_FIELD_LINES *row, *last = NULL; local in function:field_skip_blanks 1143 _FORMI_FIELD_LINES *row; local in function:find_eow 1218 _FORMI_FIELD_LINES *row; local in function:find_sow 1507 _FORMI_FIELD_LINES *row; local in function:_formi_redraw_field 1753 _FORMI_FIELD_LINES *row, *temp, *next_temp; local in function:_formi_add_char 2062 _FORMI_FIELD_LINES *row, *rs; local in function:_formi_manipulate_field [all...] |
/src/sys/arch/bebox/stand/boot/ |
video.c | 43 #define ROW (VRAM_WIDTH / FONT_WIDTH) 62 int row; member in struct:screen 77 d->row = 0; 88 (d->col * VRAM_WIDTH * FONT_HEIGHT) + (d->row * FONT_WIDTH); 100 d->row++; 110 (d->col * VRAM_WIDTH * FONT_HEIGHT) + (d->row * FONT_WIDTH); 148 } while (d->row % 8); 152 d->row--; 153 if (d->row < 0) { 156 d->row += ROW; /* prev column * [all...] |
vga.c | 40 #define ROW 25 68 int row; /* current column */ member in struct:screen 128 d->row++; \ 172 } while (d->row % 8); 178 d->row--; 179 if (d->row < 0) 180 d->row += COL; /* prev column */ 187 d->cp -= d->row; 188 d->row = 0; 200 if (d->row >= COL [all...] |
/src/lib/libc/citrus/modules/ |
citrus_mskanji.c | 330 _index_t row, col; local in function:_citrus_MSKanji_stdenc_wctocs 377 row = ((_wc_t)wc >> 8) & 0xFF; 379 if (!_mskanji1(row) || !_mskanji2(col)) 381 if ((ei->mode & MODE_JIS2004) == 0 || row < 0xF0) { 393 row -= offset; 394 if (row >= 0x5F) 395 row -= 0x40; 396 row = row * 2 + 0x21; 401 row += 1 416 u_int32_t row, col; local in function:_citrus_MSKanji_stdenc_cstowc [all...] |
/src/games/battlestar/ |
fly.c | 49 static int row, column; variable in typeref:typename:int 89 row = rnd(LINES - 3) + 1; 154 if (row == MIDR && column < MIDC + 2 && 256 oldr = row; 259 if (row + dr <= LINES - 3 && row + dr > 0) 260 row += dr; 268 d = (double) ((row - MIDR) * (row - MIDR) + (column - MIDC) * 271 row += (rnd(9) - 4) % (4 - abs(row - MIDR)) [all...] |
/src/games/gomoku/ |
bdisp.c | 107 for (int row = BSZ; row >= 1; row--) { local in function:bdisp_init 108 mvprintw(scr_y(row), 0, "%2d", row); 109 mvprintw(scr_y(row), scr_x(BSZ) + 2, "%d", row); 172 for (int row = BSZ + 1; --row > 0; ) { local in function:bdisp 174 sp = &board[PT(col, row)]; 211 for (int row = BSZ + 1; --row > 0; ) { local in function:bdump [all...] |
/src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/ |
exynos4412-smdk4412.dts | 75 keypad,row = <1>; 81 keypad,row = <1>; 87 keypad,row = <1>; 93 keypad,row = <1>; 99 keypad,row = <1>; 105 keypad,row = <2>; 111 keypad,row = <2>; 117 keypad,row = <0>; 123 keypad,row = <2>; 129 keypad,row = <0> [all...] |
/src/games/hunt/hunt/ |
otto.c | 138 STATIC int row, col; variable in typeref:typename:STATIC int 187 row = y; col = x; 188 been_there[row][col] |= 1 << facing; 314 if (been_there[row - 1][col] & NORTH) 316 for (r = row - 1; r >= 0; r--) 319 if (stop_look(itemp, ch, row - r, c - col)) 329 for (r = row - 1; r > row - itemp->distance; r--) 335 if (been_there[row + 1][col] & SOUTH) 337 for (r = row + 1; r < HEIGHT; r++ [all...] |
/src/sys/dev/hpc/ |
hpcfb.c | 917 hpcfb_cursor(void *cookie, int on, int row, int col) 923 dc->dc_cury = row; 929 hpcfb_cursor_raw(cookie, on, row, col); 933 hpcfb_cursor_raw(void *cookie, int on, int row, int col) 957 yoff = row * ri->ri_font->fontheight; 963 rasops_emul.cursor(ri, on, row, col); 983 hpcfb_tv_putchar(struct hpcfb_devconfig *dc, int row, int col, u_int uc, 987 struct hpcfb_vchar *vc = &vscn[row].col[col]; 995 if (row < dc->dc_min_row) 996 dc->dc_min_row = row; [all...] |
/src/sys/arch/luna68k/stand/boot/ |
bmd.c | 248 int col = 0, row = 0; 261 row = (row * 10) + (*p - 0x30); 267 bp->bc_row = row + bp->bc_ymin; 478 bmd_draw_char(uint8_t *raddr, uint8_t *waddr, int col, int row, int c) 490 p = (uint16_t *)(raddr + ((row * FB_HEIGHT) << 8) 492 q = (uint16_t *)(waddr + ((row * FB_HEIGHT) << 8) 503 lp = (uint32_t *)(raddr + ((row * FB_HEIGHT) << 8) 505 lq = (uint32_t *)(waddr + ((row * FB_HEIGHT) << 8) 517 lp = (uint32_t *)(raddr + ((row * FB_HEIGHT) << 8 [all...] |
/src/sys/arch/prep/stand/boot/ |
vga.c | 41 #define ROW 25 70 int row; /* current column */ member in struct:screen 130 d->row++; \ 174 } while (d->row % 8); 180 d->row--; 181 if (d->row < 0) 182 d->row += COL; /* prev column */ 189 d->cp -= d->row; 190 d->row = 0; 202 if (d->row >= COL [all...] |
/src/games/boggle/boggle/ |
mach.c | 125 int col, row; local in function:results 135 getyx(stdscr, row, col); 136 move(row + 1, col); 139 move(row + 2, col); 174 int row, col; local in function:get_line 194 getyx(stdscr, row, col); 195 move(row, col - 1); 203 getyx(stdscr, row, col); 204 move(row, col - (int) (p - q)); 373 int col, row; local in function:showword 401 int c, col, found, i, r, row; local in function:findword 488 int ch, col, done, i, row; local in function:getword [all...] |