/dragonfly/sys/dev/disk/iscsi/initiator/ |
H A D | isc_sm.c | 293 if(sp->opt.maxBurstLength && (len > sp->opt.maxBurstLength)) { in i_prepPDU() 295 sp->sid, len, sp->opt.maxBurstLength); in i_prepPDU() 372 ism_restart(sp); in ism_fullfeature() 604 wakeup(sp); in ism_proc() 606 debug(3, "terminated sp=%p sp->sid=%d", sp, sp->sid); in ism_proc() 638 sc = sp->isc; in isc_dump_stats() 650 sp->cws, sp->sn.cmd, sp->sn.expCmd, sp->sn.maxCmd, sp->sn.stat, sp->sn.itt); in isc_dump_stats() 681 sdebug(6, "sid=%d %s", sp->sid, sp->dev->si_name); in isc_add_sysctls() 684 sp->oid = SYSCTL_ADD_NODE(&sp->clist, in isc_add_sysctls() 752 ic_lost_target(sp, sp->sid); in ism_stop() [all …]
|
H A D | iscsivar.h | 347 if(++sp->stats.nrsp > sp->stats.max_rsp) in i_nqueue_rsp() 348 sp->stats.max_rsp = sp->stats.nrsp; in i_nqueue_rsp() 372 if(++sp->stats.nrsv > sp->stats.max_rsv) in i_nqueue_rsv() 373 sp->stats.max_rsv = sp->stats.nrsv; in i_nqueue_rsv() 397 if(++sp->stats.ncsnd > sp->stats.max_csnd) in i_nqueue_csnd() 398 sp->stats.max_csnd = sp->stats.ncsnd; in i_nqueue_csnd() 422 if(++sp->stats.nisnd > sp->stats.max_isnd) in i_nqueue_isnd() 423 sp->stats.max_isnd = sp->stats.nisnd; in i_nqueue_isnd() 448 sp->stats.max_wsnd = sp->stats.nwsnd; in i_nqueue_wsnd() 512 if(++sp->stats.nhld > sp->stats.max_hld) in i_nqueue_hld() [all …]
|
/dragonfly/contrib/nvi2/vi/ |
H A D | vs_refresh.c | 41 SCR *sp, in vs_repaint() argument 63 SCR *sp, in vs_refresh() argument 160 SCR *sp, in vs_paint() argument 248 for (; lcnt && sp->t_rows != sp->t_maxrows; in vs_paint() 259 for (; lcnt && sp->t_rows != sp->t_maxrows; in vs_paint() 270 for (; sp->t_rows > sp->t_minrows; in vs_paint() 736 (void)vs_column(sp, &sp->rcm); in vs_paint() 791 (void)gp->scr_move(sp, LASTLINE(sp), 0); in vs_modeline() 799 CHAR2INT(sp, sp->frp->name, strlen(sp->frp->name) + 1, wp, l); in vs_modeline() 822 KEY_NAME(sp, ' '), KEY_LEN(sp, ' ')); in vs_modeline() [all …]
|
H A D | vs_split.c | 116 sp->t_maxrows = IS_ONELINE(sp) ? 1 : sp->rows - 1; in vs_split() 132 if (sp->t_rows > sp->t_maxrows) in vs_split() 133 sp->t_rows = sp->t_maxrows; in vs_split() 135 sp->t_minrows = sp->t_maxrows; in vs_split() 144 sp->t_minrows = sp->t_rows = IS_ONELINE(sp) ? 1 : sp->rows - 1; in vs_split() 159 _TMAP(sp) = IS_ONELINE(sp) ? in vs_split() 160 _HMAP(sp) : _HMAP(sp) + (sp->t_rows - 1); in vs_split() 349 sp->frp->lno = sp->lno; in vs_discard() 350 sp->frp->cno = sp->cno; in vs_discard() 720 sp->frp->lno = sp->lno; in vs_swap() [all …]
|
H A D | vs_msg.c | 93 (void)gp->scr_move(sp, LASTLINE(sp), 0); in vs_busy() 109 (void)gp->scr_move(sp, LASTLINE(sp), 0); in vs_busy() 146 (void)sp->gp->scr_move(sp, LASTLINE(sp), 0); in vs_home() 147 (void)sp->gp->scr_refresh(sp, 0); in vs_home() 189 (void)gp->scr_move(sp, LASTLINE(sp), 0); in vs_update() 276 if (sp->gp->scr_screen(sp, SC_EX)) in vs_msg() 292 (void)sp->gp->scr_screen(sp, SC_VI); in vs_msg() 441 (void)gp->scr_move(sp, LASTLINE(sp), 0); in vs_output() 546 if (sp->gp->scr_screen(sp, SC_VI)) in vs_ex_resolve() 665 msgq_status(sp, sp->lno, MSTAT_TRUNCATE); in vs_resolve() [all …]
|
H A D | v_ex.c | 59 gp = sp->gp; in v_exmode() 70 sp->frp->lno = sp->lno; in v_exmode() 71 sp->frp->cno = sp->cno; in v_exmode() 206 argv_exp0(sp, &cmd, VIP(sp)->keyw, STRLEN(VIP(sp)->keyw) + 1); in v_tagpush() 289 vs_home(sp); in v_filter() 372 if (O_STR(sp, O_CEDIT) != NULL && v_ecl_log(sp, tp)) in v_ex() 467 if (db_eget(sp, sp->lno, NULL, &len, NULL)) { in v_ex_done() 522 sp->ccl_parent = sp; in v_ecl() 550 if (db_get(sp, sp->lno, 0, &p, &len) && sp->lno == 1) { in v_ecl_exec() 564 sp->nextdisp = sp->ccl_parent; in v_ecl_exec() [all …]
|
H A D | vs_smap.c | 129 (void)sp->gp->scr_cursor(sp, &oldy, &oldx); in vs_change() 154 (void)sp->gp->scr_move(sp, oldy, oldx); in vs_change() 326 (void)sp->gp->scr_move(sp, p - HMAP, 0); in vs_sm_delete() 381 (void)sp->gp->scr_move(sp, p - HMAP, 0); in vs_sm_insert() 632 sp->t_rows != sp->t_maxrows; --count, ++sp->t_rows) { in vs_sm_up() 702 sp->rcm % sp->cols); in vs_sm_up() 753 (void)sp->gp->scr_move(sp, 0, 0); in vs_sm_1up() 852 sp->t_rows != sp->t_maxrows; --count, ++sp->t_rows) { in vs_sm_down() 937 sp->rcm % sp->cols); in vs_sm_down() 966 for (; sp->t_rows > sp->t_minrows; --sp->t_rows, --TMAP) { in vs_sm_erase() [all …]
|
H A D | vi.c | 84 (void)sp->gp->scr_rename(sp, sp->frp->name, 1); in vi() 106 (void)vs_column(sp, &sp->rcm); in vi() 259 (void)sp->gp->scr_rename(sp, sp->frp->name, 1); in vi() 377 sp = sp->nextdisp; in vi() 379 (void)sp->gp->scr_rename(sp, sp->frp->name, 1); in vi() 392 (void)sp->gp->scr_rename(sp, sp->frp->name, 1); in vi() 701 (void)sp->gp->scr_bell(sp); in v_cmd() 955 sp->t_rows = sp->t_minrows = O_VAL(sp, O_WINDOW); in v_init() 958 sp->t_minrows = sp->t_rows = sp->rows - 1; in v_init() 966 sp->roff = sp->coff = 0; in v_init() [all …]
|
H A D | v_itxt.c | 97 if (db_eget(sp, sp->lno, &p, &len, &isempty)) { in v_ia() 107 ++sp->cno; in v_ia() 124 sp->cno = 0; in v_iI() 125 if (nonblank(sp, vp->m_start.lno, &sp->cno)) in v_iI() 152 if (db_eget(sp, sp->lno, &p, &len, &isempty)) { in v_ii() 216 if (db_insert(sp, sp->lno, p, 0)) in io() 218 if (db_get(sp, sp->lno, DBG_FATAL, &p, &len)) in io() 222 if (db_append(sp, 1, sp->lno, p, 0)) in io() 224 if (db_get(sp, ++sp->lno, DBG_FATAL, &p, &len)) in io() 304 if (cut(sp, in v_change() [all …]
|
/dragonfly/games/sail/ |
H A D | dr_3.c | 74 ma = maxmove(sp, sp->file->dir, 0); in moveall() 79 closeon(sp, closest, sp->file->movebuf, in moveall() 127 if (sp->file->dir == 0 || is_isolated(sp)) in moveall() 141 if (!range(sp, sq) && !fouled2(sp, sq)) { in moveall() 178 send_row(sp, sp->file->row); in moveall() 180 send_col(sp, sp->file->col); in moveall() 182 send_dir(sp, sp->file->dir); in moveall() 184 send_drift(sp, sp->file->drift); in moveall() 207 if (ship != sp && range(ship, sp) <= 10) in is_isolated() 247 sp->file->row -= dr[sp->file->dir] * dist; in step() [all …]
|
/dragonfly/sys/net/sppp/ |
H A D | if_spppsubr.c | 1124 (sp->pp_tlf)(sp); in sppp_ioctl() 1140 (sp->pp_tls)(sp); in sppp_ioctl() 2044 sp->lcp.timeout, cp->TO, sp); in sppp_cp_change_state() 2632 sp->pp_chg(sp, (int)sp->pp_phase); in sppp_lcp_tlu() 2678 (sp->pp_tls)(sp); in sppp_lcp_tls() 2680 (sp->pp_up)(sp); in sppp_lcp_tls() 2695 (sp->pp_tlf)(sp); in sppp_lcp_tlf() 2697 (sp->pp_down)(sp); in sppp_lcp_tlf() 3219 sp->pp_con(sp); in sppp_ipcp_tlu() 3674 sp->pp_con(sp); in sppp_ipv6cp_tlu() [all …]
|
/dragonfly/contrib/ncurses/ncurses/base/ |
H A D | lib_set_term.c | 200 free(sp); in delscreen() 310 sp = *spp; in NCURSES_SP_NAME() 312 if (!sp) { in NCURSES_SP_NAME() 315 *spp = sp; in NCURSES_SP_NAME() 317 if (!sp in NCURSES_SP_NAME() 353 TCBOf(sp)->csp = sp; in NCURSES_SP_NAME() 354 _nc_get_screensize(sp, sp->_term, &slines, &scolumns); in NCURSES_SP_NAME() 403 if ((sp->out_buffer = malloc(sp->out_limit)) == 0) in NCURSES_SP_NAME() 475 sp->_default_fg, sp->_default_bg)); in NCURSES_SP_NAME() 533 sp->_xmc_triggers = sp->_ok_attributes & XMC_CONFLICT; in NCURSES_SP_NAME() [all …]
|
H A D | lib_mouse.c | 182 #define FirstEV(sp) ((sp)->_mouse_events) argument 195 #define IndexEV(sp, ep) (ep - FirstEV(sp)) argument 209 for (ep = FirstEV(sp); ep <= LastEV(sp); ep++) in _trace_slot() 221 # define M_FD(sp) sp->_mouse_fd argument 321 if (sp->_sysmouse_head > sp->_sysmouse_tail) { in sysmouse_server() 325 work = &(sp->_sysmouse_fifo[sp->_sysmouse_tail]); in sysmouse_server() 745 sp->_mouse_eventp = FirstEV(sp); in _nc_mouse_init() 843 if (sp->_sysmouse_head < sp->_sysmouse_tail) { in _nc_mouse_event() 1048 (M_FD(sp) >= 0) ? M_FD(sp) : sp->_ifd, in decode_xterm_X10() 1103 (M_FD(sp) >= 0) ? M_FD(sp) : sp->_ifd, in decode_xterm_1005() [all …]
|
H A D | lib_getch.c | 51 #define GetEscdelay(sp) *_nc_ptr_Escdelay(sp) argument 133 return (sp ? sp->_use_meta : 0); in _nc_use_meta() 259 sp->_mouse_event(sp); in fifo_push() 267 sp->_mouse_event(sp); in fifo_push() 272 sp->_mouse_event(sp); in fifo_push() 280 sp->_mouse_event(sp); in fifo_push() 286 if (NC_ISATTY(sp->_ifd) && sp->_cbreak) { in fifo_push() 296 if (NC_ISATTY(sp->_ifd) && IsTermInfoOnConsole(sp) && sp->_cbreak) in fifo_push() 344 memset(sp->_fifo, 0, sizeof(sp->_fifo)); in fifo_clear() 529 if (sp->_mouse_inline(sp)) in _nc_wgetch() [all …]
|
/dragonfly/contrib/nvi2/common/ |
H A D | screen.c | 36 SCR *sp; in screen_init() local 41 *spp = sp; in screen_init() 45 sp->refcnt = 1; in screen_init() 90 MALLOC(sp, sp->newl, len); in screen_init() 113 *spp = sp; in screen_init() 143 TAILQ_REMOVE(sp->gp->dq, sp, q); in screen_end() 156 if (!F_ISSET(sp, SC_ARGNOFREE) && sp->argv != NULL) { in screen_end() 171 free(sp->re); in screen_end() 181 conv_end(sp); in screen_end() 187 free(sp); in screen_end() [all …]
|
H A D | options_f.c | 34 O_CLR(sp, O_TTYWERASE); in f_altwerase() 102 sp->defscroll = 1; in f_lines() 104 if (O_VAL(sp, O_WINDOW) == O_D_VAL(sp, O_WINDOW) || in f_lines() 112 if (O_VAL(sp, O_WINDOW) == O_D_VAL(sp, O_WINDOW) || in f_lines() 152 O_SET(sp, offset); in f_print() 154 O_CLR(sp, offset); in f_print() 159 v_key_ilookup(sp); in f_print() 190 regfree(&sp->re_c); in f_recompile() 230 if (sp->gp->scr_baud(sp, &v)) in f_w300() 247 if (sp->gp->scr_baud(sp, &v)) in f_w1200() [all …]
|
/dragonfly/contrib/nvi2/ex/ |
H A D | ex_subst.c | 85 sp->c_suffix = sp->g_suffix = 0; in ex_s() 138 re_compile(sp, sp->re, sp->re_len, in ex_s() 219 MEMCPY(t, sp->repl, sp->repl_len); in ex_s() 257 re_compile(sp, sp->subre, sp->subre_len, in ex_subagain() 279 if (!F_ISSET(sp, SC_RE_SEARCH) && re_compile(sp, sp->re, in ex_subtilde() 367 sp->c_suffix = sp->g_suffix = 0; in s() 431 sp->c_suffix = !sp->c_suffix; in s() 438 sp->g_suffix = !sp->g_suffix; in s() 628 vs_update(sp, msg_cat(sp, in s() 843 if (!sp->c_suffix && (sp->lno != slno || sp->cno != scno)) { in s() [all …]
|
H A D | ex_args.c | 61 CHAR2INT(sp, sp->cargv[1], strlen(sp->cargv[1]) + 1, in ex_next() 78 if (!F_ISSET(sp, SC_ARGNOFREE) && sp->argv != NULL) { in ex_next() 97 sp->cargv = sp->argv; in ex_next() 98 if ((frp = file_add(sp, *sp->cargv)) == NULL) in ex_next() 105 if ((frp = file_add(sp, sp->cargv[1])) == NULL) in ex_next() 135 if (screen_init(sp->gp, sp, &new)) in ex_N_next() 178 if (sp->cargv == sp->argv) { in ex_prev() 184 CHAR2INT(sp, sp->cargv[-1], strlen(sp->cargv[-1]) + 1, in ex_prev() 195 if ((frp = file_add(sp, sp->cargv[-1])) == NULL) in ex_prev() 239 sp->cargv = sp->argv; in ex_rew() [all …]
|
/dragonfly/games/atc/ |
H A D | grammar.y | 181 sp->beacon = realloc(sp->beacon, 187 sp->beacon[sp->num_beacons].x = $2; 188 sp->beacon[sp->num_beacons].y = $3; 211 sp->exit = realloc(sp->exit, (sp->num_exits + 217 sp->exit[sp->num_exits].x = $2; 218 sp->exit[sp->num_exits].y = $3; 219 sp->exit[sp->num_exits].dir = dir; 273 sp->line = realloc(sp->line, (sp->num_lines + 278 sp->line[sp->num_lines].p1.x = $3; 279 sp->line[sp->num_lines].p1.y = $4; [all …]
|
/dragonfly/usr.sbin/installer/libinstaller/ |
H A D | diskutil.c | 86 sp = NULL; in storage_get_tmpfs_status() 88 sp != NULL; sp = subpartition_next(sp)) { in storage_get_tmpfs_status() 571 return(sp); in subpartition_new_hammer() 634 return(sp); in subpartition_new_hammer2() 736 return(sp); in subpartition_new_ufs() 759 sp = sp->next; in subpartition_find() 792 sp = sp->next; in subpartition_of() 807 sp = sp->next; in subpartition_find_capacity() 838 sp->parent->parent->serno, sp->parent->number, sp->letter); in subpartition_get_device_name() 841 sp->parent->parent->device, sp->parent->number, sp->letter); in subpartition_get_device_name() [all …]
|
/dragonfly/contrib/binutils-2.34/libiberty/ |
H A D | splay-tree.c | 359 splay_tree_delete_helper (sp, sp->root); in splay_tree_delete() 360 (*sp->deallocate) ((char*) sp, sp->allocate_data); in splay_tree_delete() 382 (*sp->delete_key) (sp->root->key); in splay_tree_insert() 384 (*sp->delete_value)(sp->root->value); in splay_tree_insert() 427 if (sp->root && (*sp->comp) (sp->root->key, key) == 0) in splay_tree_remove() 436 (*sp->delete_key) (sp->root->key); in splay_tree_remove() 438 (*sp->delete_value) (sp->root->value); in splay_tree_remove() 439 (*sp->deallocate) (sp->root, sp->allocate_data); in splay_tree_remove() 469 if (sp->root && (*sp->comp)(sp->root->key, key) == 0) in splay_tree_lookup() 523 comparison = (*sp->comp)(sp->root->key, key); in splay_tree_predecessor() [all …]
|
/dragonfly/contrib/binutils-2.27/libiberty/ |
H A D | splay-tree.c | 103 (*sp->deallocate) ((char*) temp, sp->allocate_data); in splay_tree_delete_helper() 353 splay_tree_delete_helper (sp, sp->root); in splay_tree_delete() 354 (*sp->deallocate) ((char*) sp, sp->allocate_data); in splay_tree_delete() 369 comparison = (*sp->comp)(sp->root->key, key); in splay_tree_insert() 376 (*sp->delete_value)(sp->root->value); in splay_tree_insert() 418 if (sp->root && (*sp->comp) (sp->root->key, key) == 0) in splay_tree_remove() 427 (*sp->delete_value) (sp->root->value); in splay_tree_remove() 428 (*sp->deallocate) (sp->root, sp->allocate_data); in splay_tree_remove() 458 if (sp->root && (*sp->comp)(sp->root->key, key) == 0) in splay_tree_lookup() 512 comparison = (*sp->comp)(sp->root->key, key); in splay_tree_predecessor() [all …]
|
/dragonfly/contrib/gdb-7/libiberty/ |
H A D | splay-tree.c | 103 (*sp->deallocate) ((char*) temp, sp->allocate_data); in splay_tree_delete_helper() 353 splay_tree_delete_helper (sp, sp->root); in splay_tree_delete() 354 (*sp->deallocate) ((char*) sp, sp->allocate_data); in splay_tree_delete() 369 comparison = (*sp->comp)(sp->root->key, key); in splay_tree_insert() 376 (*sp->delete_value)(sp->root->value); in splay_tree_insert() 418 if (sp->root && (*sp->comp) (sp->root->key, key) == 0) in splay_tree_remove() 427 (*sp->delete_value) (sp->root->value); in splay_tree_remove() 428 (*sp->deallocate) (sp->root, sp->allocate_data); in splay_tree_remove() 458 if (sp->root && (*sp->comp)(sp->root->key, key) == 0) in splay_tree_lookup() 512 comparison = (*sp->comp)(sp->root->key, key); in splay_tree_predecessor() [all …]
|
/dragonfly/contrib/gcc-4.7/libiberty/ |
H A D | splay-tree.c | 103 (*sp->deallocate) ((char*) temp, sp->allocate_data); in splay_tree_delete_helper() 353 splay_tree_delete_helper (sp, sp->root); in splay_tree_delete() 354 (*sp->deallocate) ((char*) sp, sp->allocate_data); in splay_tree_delete() 369 comparison = (*sp->comp)(sp->root->key, key); in splay_tree_insert() 376 (*sp->delete_value)(sp->root->value); in splay_tree_insert() 418 if (sp->root && (*sp->comp) (sp->root->key, key) == 0) in splay_tree_remove() 427 (*sp->delete_value) (sp->root->value); in splay_tree_remove() 428 (*sp->deallocate) (sp->root, sp->allocate_data); in splay_tree_remove() 458 if (sp->root && (*sp->comp)(sp->root->key, key) == 0) in splay_tree_lookup() 512 comparison = (*sp->comp)(sp->root->key, key); in splay_tree_predecessor() [all …]
|
/dragonfly/contrib/gcc-8.0/libiberty/ |
H A D | splay-tree.c | 102 (*sp->deallocate) ((char*) temp, sp->allocate_data); in splay_tree_delete_helper() 352 splay_tree_delete_helper (sp, sp->root); in splay_tree_delete() 353 (*sp->deallocate) ((char*) sp, sp->allocate_data); in splay_tree_delete() 368 comparison = (*sp->comp)(sp->root->key, key); in splay_tree_insert() 375 (*sp->delete_value)(sp->root->value); in splay_tree_insert() 417 if (sp->root && (*sp->comp) (sp->root->key, key) == 0) in splay_tree_remove() 426 (*sp->delete_value) (sp->root->value); in splay_tree_remove() 427 (*sp->deallocate) (sp->root, sp->allocate_data); in splay_tree_remove() 457 if (sp->root && (*sp->comp)(sp->root->key, key) == 0) in splay_tree_lookup() 511 comparison = (*sp->comp)(sp->root->key, key); in splay_tree_predecessor() [all …]
|