Home
last modified time | relevance | path

Searched refs:sp (Results 1 – 25 of 707) sorted by relevance

12345678910>>...29

/dragonfly/sys/dev/disk/iscsi/initiator/
HDisc_sm.c69 _async(isc_session_t *sp, pduq_t *pq) in _async() argument
73 iscsi_async(sp, pq); in _async()
75 pdu_free(sp->isc, pq); in _async()
79 _reject(isc_session_t *sp, pduq_t *pq) in _reject() argument
91 opq = i_search_hld(sp, itt, 0); in _reject()
93 iscsi_reject(sp, opq, pq); in _reject()
101 sp->sid, ntohl(pq->pdu.ipdu.bhs.itt)); in _reject()
104 pdu_free(sp->isc, pq); in _reject()
108 _r2t(isc_session_t *sp, pduq_t *pq) in _r2t() argument
113 opq = i_search_hld(sp, pq->pdu.ipdu.bhs.itt, 1); in _r2t()
[all …]
HDiscsivar.h43 kprintf("%d] %s: " fmt "\n", sp->sid, __func__ , ##args);} while(0)
229 void isc_start_receiver(isc_session_t *sp);
230 void isc_stop_receiver(isc_session_t *sp);
232 int isc_sendPDU(isc_session_t *sp, pduq_t *pq);
233 int isc_qout(isc_session_t *sp, pduq_t *pq);
234 int i_prepPDU(isc_session_t *sp, pduq_t *pq);
239 int i_setopt(isc_session_t *sp, isc_opt_t *opt);
245 void ic_lost_target(isc_session_t *sp, int target);
246 int ic_getCamVals(isc_session_t *sp, iscsi_cam_t *cp);
248 void ism_recv(isc_session_t *sp, pduq_t *pq);
[all …]
/dragonfly/contrib/nvi2/vi/
HDvs_refresh.c41 SCR *sp, in vs_repaint() argument
49 if (vs_line(sp, smp, NULL, NULL)) in vs_repaint()
63 SCR *sp, in vs_refresh() argument
71 gp = sp->gp; in vs_refresh()
79 if (F_ISSET(sp, SC_SCR_REDRAW)) in vs_refresh()
81 if (tsp != sp) in vs_refresh()
95 if (O_ISSET(sp, O_NUMBER)) in vs_refresh()
98 if (tsp != sp && !F_ISSET(tsp, SC_EXIT | SC_EXIT_FORCE) && in vs_refresh()
104 F_SET(VIP(sp), VIP_CUR_INVALID); in vs_refresh()
114 if (vs_paint(sp, UPDATE_CURSOR | (!forcepaint && in vs_refresh()
[all …]
HDvs_split.c29 static void vs_insert(SCR *sp, GS *gp);
40 SCR *sp, in vs_split() argument
49 gp = sp->gp; in vs_split()
53 if (sp->rows < 4) { in vs_split()
54 msgq(sp, M_ERR, in vs_split()
60 vs_resolve(sp, NULL, 1); in vs_split()
63 CALLOC(sp, _HMAP(new), SIZE_HMAP(sp), sizeof(SMAP)); in vs_split()
66 _HMAP(new)->lno = sp->lno; in vs_split()
71 half = sp->rows / 2; in vs_split()
79 issmallscreen = IS_SMALL(sp); in vs_split()
[all …]
HDvs_msg.c55 vs_busy(SCR *sp, const char *msg, busy_t btype) in vs_busy() argument
66 if (F_ISSET(sp, SC_EX | SC_SCR_EXWROTE)) in vs_busy()
69 gp = sp->gp; in vs_busy()
70 vip = VIP(sp); in vs_busy()
89 (void)gp->scr_cursor(sp, &vip->busy_oldy, &vip->busy_oldx); in vs_busy()
92 p = msg_cat(sp, msg, &len); in vs_busy()
93 (void)gp->scr_move(sp, LASTLINE(sp), 0); in vs_busy()
94 (void)gp->scr_addstr(sp, p, len); in vs_busy()
95 (void)gp->scr_cursor(sp, &notused, &vip->busy_fx); in vs_busy()
96 (void)gp->scr_clrtoeol(sp); in vs_busy()
[all …]
HDv_ex.c39 v_again(SCR *sp, VICMD *vp) in v_again() argument
43 ex_cinit(sp, &cmd, C_SUBAGAIN, 2, vp->m_start.lno, vp->m_start.lno, 1); in v_again()
44 argv_exp0(sp, &cmd, L(""), 1); in v_again()
45 return (v_exec_ex(sp, vp, &cmd)); in v_again()
55 v_exmode(SCR *sp, VICMD *vp) in v_exmode() argument
59 gp = sp->gp; in v_exmode()
62 if (gp->scr_screen(sp, SC_EX)) { in v_exmode()
63 msgq(sp, M_ERR, in v_exmode()
67 (void)gp->scr_attr(sp, SA_ALTERNATE, 0); in v_exmode()
70 sp->frp->lno = sp->lno; in v_exmode()
[all …]
HDvs_smap.c41 vs_change(SCR *sp, recno_t lno, lnop_t op) in vs_change() argument
47 vip = VIP(sp); in vs_change()
62 !db_exist(sp, 2)) { in vs_change()
88 for (p = HMAP, cnt = sp->t_rows; cnt--; ++p) in vs_change()
90 if (sp->lno >= lno) in vs_change()
91 --sp->lno; in vs_change()
95 for (p = HMAP, cnt = sp->t_rows; cnt--; ++p) in vs_change()
97 if (sp->lno >= lno) in vs_change()
98 ++sp->lno; in vs_change()
114 if (sp->lno == lno) in vs_change()
[all …]
HDvi.c50 #define DOT (&VIP(sp)->sdot)
51 #define DOTMOTION (&VIP(sp)->sdotmotion)
64 SCR *next, *sp; in vi() local
70 sp = *spp; in vi()
71 gp = sp->gp; in vi()
80 if (v_init(sp)) in vi()
84 (void)sp->gp->scr_rename(sp, sp->frp->name, 1); in vi()
86 for (vip = VIP(sp), rval = 0;;) { in vi()
88 if (!MAPPED_KEYS_WAITING(sp) && vs_resolve(sp, NULL, 0)) in vi()
98 sp->showmode = SM_COMMAND; in vi()
[all …]
HDv_itxt.c52 if (!MAPPED_KEYS_WAITING(sp)) \
53 (void)log_cursor(sp); \
65 v_iA(SCR *sp, VICMD *vp) in v_iA() argument
69 if (!db_get(sp, vp->m_start.lno, 0, NULL, &len)) in v_iA()
70 sp->cno = len == 0 ? 0 : len - 1; in v_iA()
74 return (v_ia(sp, vp)); in v_iA()
85 v_ia(SCR *sp, VICMD *vp) in v_ia() argument
92 flags = set_txt_std(sp, vp, 0); in v_ia()
93 sp->showmode = SM_APPEND; in v_ia()
94 sp->lno = vp->m_start.lno; in v_ia()
[all …]
/dragonfly/games/sail/
HDdr_3.c55 struct ship *sp, *sq; in moveall() local
64 foreachship(sp) { in moveall()
69 if (sp->file->captain[0] || sp->file->dir == 0) in moveall()
71 if (!sp->file->struck && windspeed && !snagged(sp) in moveall()
72 && sp->specs->crew3) { in moveall()
73 ta = maxturns(sp, &af); in moveall()
74 ma = maxmove(sp, sp->file->dir, 0); in moveall()
75 closest = closestenemy(sp, 0, 0); in moveall()
77 *sp->file->movebuf = '\0'; in moveall()
79 closeon(sp, closest, sp->file->movebuf, in moveall()
[all …]
/dragonfly/sys/net/sppp/
HDif_spppsubr.c205 void (*Up)(struct sppp *sp);
206 void (*Down)(struct sppp *sp);
207 void (*Open)(struct sppp *sp);
208 void (*Close)(struct sppp *sp);
209 void (*TO)(void *sp);
210 int (*RCR)(struct sppp *sp, struct lcp_header *h, int len);
211 void (*RCN_rej)(struct sppp *sp, struct lcp_header *h, int len);
212 void (*RCN_nak)(struct sppp *sp, struct lcp_header *h, int len);
214 void (*tlu)(struct sppp *sp);
215 void (*tld)(struct sppp *sp);
[all …]
/dragonfly/contrib/ncurses/ncurses/base/
HDlib_set_term.c53 #define MaxColors InfoOf(sp).maxcolors
54 #define NumLabels InfoOf(sp).numlabels
111 delink_screen(SCREEN *sp) in delink_screen() argument
118 if (temp == sp) { in delink_screen()
120 last->_next_screen = sp->_next_screen; in delink_screen()
122 _nc_screen_chain = sp->_next_screen; in delink_screen()
135 delscreen(SCREEN *sp) in delscreen() argument
138 T((T_CALLED("delscreen(%p)"), (void *) sp)); in delscreen()
141 if (delink_screen(sp)) { in delscreen()
156 (void) _nc_freewin(CurScreen(sp)); in delscreen()
[all …]
HDlib_mouse.c172 #define GET_DLSYM(name) (my_##name = (TYPE_##name) dlsym(sp->_dlopen_gpm, #name))
182 #define FirstEV(sp) ((sp)->_mouse_events) argument
183 #define LastEV(sp) ((sp)->_mouse_events + EV_MAX - 1) argument
195 #define IndexEV(sp, ep) (ep - FirstEV(sp)) argument
197 #define RunParams(sp, eventp, runp) \ argument
198 (long) IndexEV(sp, runp), \
199 (long) (IndexEV(sp, eventp) + (EV_MAX - 1)) % EV_MAX
203 _trace_slot(SCREEN *sp, const char *tag) in _trace_slot() argument
209 for (ep = FirstEV(sp); ep <= LastEV(sp); ep++) in _trace_slot()
211 (long) IndexEV(sp, ep), in _trace_slot()
[all …]
HDlib_getch.c51 #define GetEscdelay(sp) *_nc_ptr_Escdelay(sp) argument
59 _nc_ptr_Escdelay(SCREEN *sp) in _nc_ptr_Escdelay() argument
61 return ptrEscdelay(sp); in _nc_ptr_Escdelay()
64 #define GetEscdelay(sp) ESCDELAY
132 SCREEN *sp = _nc_screen_of(win); in _nc_use_meta() local
133 return (sp ? sp->_use_meta : 0); in _nc_use_meta()
151 check_mouse_activity(SCREEN *sp, int delay EVENTLIST_2nd(_nc_eventlist * evl)) in check_mouse_activity() argument
156 TERMINAL_CONTROL_BLOCK *TCB = TCBOf(sp); in check_mouse_activity()
157 rc = TCBOf(sp)->drv->td_testmouse(TCBOf(sp), delay EVENTLIST_2nd(evl)); in check_mouse_activity()
160 if (IsTermInfoOnConsole(sp)) { in check_mouse_activity()
[all …]
/dragonfly/contrib/nvi2/common/
HDscreen.c36 SCR *sp; in screen_init() local
40 CALLOC_RET(orig, sp, 1, sizeof(SCR)); in screen_init()
41 *spp = sp; in screen_init()
44 sp->id = ++gp->id; in screen_init()
45 sp->refcnt = 1; in screen_init()
47 sp->gp = gp; /* All ref the GS structure. */ in screen_init()
49 sp->ccnt = 2; /* Anything > 1 */ in screen_init()
57 TAILQ_INIT(sp->tiq); in screen_init()
61 sp->searchdir = NOTSET; in screen_init()
65 (sp->alt_name = strdup(orig->alt_name)) == NULL) in screen_init()
[all …]
HDoptions_f.c31 f_altwerase(SCR *sp, OPTION *op, char *str, u_long *valp) in f_altwerase() argument
34 O_CLR(sp, O_TTYWERASE); in f_altwerase()
42 f_columns(SCR *sp, OPTION *op, char *str, u_long *valp) in f_columns() argument
46 msgq(sp, M_ERR, "040|Screen columns too small, less than %d", in f_columns()
61 msgq(sp, M_ERR, "041|Screen columns too large, greater than %d", in f_columns()
72 f_lines(SCR *sp, OPTION *op, char *str, u_long *valp) in f_lines() argument
76 msgq(sp, M_ERR, "042|Screen lines too small, less than %d", in f_lines()
91 msgq(sp, M_ERR, "043|Screen lines too large, greater than %d", in f_lines()
100 o_set(sp, O_LINES, 0, NULL, *valp); in f_lines()
102 sp->defscroll = 1; in f_lines()
[all …]
/dragonfly/contrib/nvi2/ex/
HDex_subst.c47 ex_s(SCR *sp, EXCMD *cmdp) in ex_s() argument
74 subagain: return (ex_subagain(sp, cmdp)); in ex_s()
78 return (s(sp, cmdp, p, &sp->subre_c, SUB_MUSTSETR)); in ex_s()
85 sp->c_suffix = sp->g_suffix = 0; in ex_s()
131 if (sp->re == NULL) { in ex_s()
132 ex_emsg(sp, NULL, EXM_NOPREVRE); in ex_s()
137 if (!F_ISSET(sp, SC_RE_SEARCH) && in ex_s()
138 re_compile(sp, sp->re, sp->re_len, in ex_s()
139 NULL, NULL, &sp->re_c, RE_C_SEARCH)) in ex_s()
150 if (re_compile(sp, ptrn, t - ptrn, &sp->re, in ex_s()
[all …]
HDex_args.c41 ex_next(SCR *sp, EXCMD *cmdp) in ex_next() argument
53 if (cmdp->argc == 0 && (sp->cargv == NULL || sp->cargv[1] == NULL)) { in ex_next()
54 msgq(sp, M_ERR, "111|No more files to edit"); in ex_next()
61 CHAR2INT(sp, sp->cargv[1], strlen(sp->cargv[1]) + 1, in ex_next()
63 if (argv_exp0(sp, cmdp, wp, wlen - 1)) in ex_next()
65 return (ex_edit(sp, cmdp)); in ex_next()
67 return (ex_N_next(sp, cmdp)); in ex_next()
71 if (file_m1(sp, in ex_next()
78 if (!F_ISSET(sp, SC_ARGNOFREE) && sp->argv != NULL) { in ex_next()
79 for (ap = sp->argv; *ap != NULL; ++ap) in ex_next()
[all …]
/dragonfly/games/atc/
HDgrammar.y82 if (sp->num_exits + sp->num_airports < 2)
103 if (sp->update_secs != 0)
108 sp->update_secs = $3;
115 if (sp->newplane_time != 0)
120 sp->newplane_time = $3;
127 if (sp->height != 0)
132 sp->height = $3;
139 if (sp->height != 0)
144 sp->width = $3;
176 if (sp->num_beacons % REALLOC == 0) {
[all …]
/dragonfly/usr.sbin/installer/libinstaller/
HDdiskutil.c85 struct subpartition *sp; in storage_get_tmpfs_status() local
86 sp = NULL; in storage_get_tmpfs_status()
87 for (sp = slice_subpartition_first(s->selected_slice); in storage_get_tmpfs_status()
88 sp != NULL; sp = subpartition_next(sp)) { in storage_get_tmpfs_status()
89 if(strcmp(subpartition_get_mountpoint(sp), mountpoint) == 0) { in storage_get_tmpfs_status()
90 if(subpartition_is_tmpfsbacked(sp) == 1) { in storage_get_tmpfs_status()
515 struct subpartition *sp; in subpartition_new_hammer() local
518 AURA_MALLOC(sp, subpartition); in subpartition_new_hammer()
520 sp->parent = s; in subpartition_new_hammer()
523 sp->letter = 'a'; in subpartition_new_hammer()
[all …]
/dragonfly/contrib/binutils-2.34/libiberty/
HDsplay-tree.c55 splay_tree_delete_helper (splay_tree sp, splay_tree_node node) in splay_tree_delete_helper() argument
63 #define KDEL(x) if (sp->delete_key) (*sp->delete_key)(x); in splay_tree_delete_helper()
64 #define VDEL(x) if (sp->delete_value) (*sp->delete_value)(x); in splay_tree_delete_helper()
105 (*sp->deallocate) ((char*) temp, sp->allocate_data); in splay_tree_delete_helper()
141 splay_tree_splay (splay_tree sp, splay_tree_key key) in splay_tree_splay() argument
143 if (sp->root == 0) in splay_tree_splay()
150 n = sp->root; in splay_tree_splay()
151 cmp1 = (*sp->comp) (key, n->key); in splay_tree_splay()
167 cmp2 = (*sp->comp) (key, c->key); in splay_tree_splay()
173 rotate_left (&sp->root, n, c); in splay_tree_splay()
[all …]
/dragonfly/contrib/binutils-2.27/libiberty/
HDsplay-tree.c53 splay_tree_delete_helper (splay_tree sp, splay_tree_node node) in splay_tree_delete_helper() argument
61 #define KDEL(x) if (sp->delete_key) (*sp->delete_key)(x); in splay_tree_delete_helper()
62 #define VDEL(x) if (sp->delete_value) (*sp->delete_value)(x); in splay_tree_delete_helper()
103 (*sp->deallocate) ((char*) temp, sp->allocate_data); in splay_tree_delete_helper()
139 splay_tree_splay (splay_tree sp, splay_tree_key key) in splay_tree_splay() argument
141 if (sp->root == 0) in splay_tree_splay()
148 n = sp->root; in splay_tree_splay()
149 cmp1 = (*sp->comp) (key, n->key); in splay_tree_splay()
165 cmp2 = (*sp->comp) (key, c->key); in splay_tree_splay()
171 rotate_left (&sp->root, n, c); in splay_tree_splay()
[all …]
/dragonfly/contrib/gdb-7/libiberty/
HDsplay-tree.c53 splay_tree_delete_helper (splay_tree sp, splay_tree_node node) in splay_tree_delete_helper() argument
61 #define KDEL(x) if (sp->delete_key) (*sp->delete_key)(x); in splay_tree_delete_helper()
62 #define VDEL(x) if (sp->delete_value) (*sp->delete_value)(x); in splay_tree_delete_helper()
103 (*sp->deallocate) ((char*) temp, sp->allocate_data); in splay_tree_delete_helper()
139 splay_tree_splay (splay_tree sp, splay_tree_key key) in splay_tree_splay() argument
141 if (sp->root == 0) in splay_tree_splay()
148 n = sp->root; in splay_tree_splay()
149 cmp1 = (*sp->comp) (key, n->key); in splay_tree_splay()
165 cmp2 = (*sp->comp) (key, c->key); in splay_tree_splay()
171 rotate_left (&sp->root, n, c); in splay_tree_splay()
[all …]
/dragonfly/contrib/gcc-4.7/libiberty/
HDsplay-tree.c53 splay_tree_delete_helper (splay_tree sp, splay_tree_node node) in splay_tree_delete_helper() argument
61 #define KDEL(x) if (sp->delete_key) (*sp->delete_key)(x); in splay_tree_delete_helper()
62 #define VDEL(x) if (sp->delete_value) (*sp->delete_value)(x); in splay_tree_delete_helper()
103 (*sp->deallocate) ((char*) temp, sp->allocate_data); in splay_tree_delete_helper()
139 splay_tree_splay (splay_tree sp, splay_tree_key key) in splay_tree_splay() argument
141 if (sp->root == 0) in splay_tree_splay()
148 n = sp->root; in splay_tree_splay()
149 cmp1 = (*sp->comp) (key, n->key); in splay_tree_splay()
165 cmp2 = (*sp->comp) (key, c->key); in splay_tree_splay()
171 rotate_left (&sp->root, n, c); in splay_tree_splay()
[all …]
/dragonfly/contrib/gcc-8.0/libiberty/
HDsplay-tree.c52 splay_tree_delete_helper (splay_tree sp, splay_tree_node node) in splay_tree_delete_helper() argument
60 #define KDEL(x) if (sp->delete_key) (*sp->delete_key)(x); in splay_tree_delete_helper()
61 #define VDEL(x) if (sp->delete_value) (*sp->delete_value)(x); in splay_tree_delete_helper()
102 (*sp->deallocate) ((char*) temp, sp->allocate_data); in splay_tree_delete_helper()
138 splay_tree_splay (splay_tree sp, splay_tree_key key) in splay_tree_splay() argument
140 if (sp->root == 0) in splay_tree_splay()
147 n = sp->root; in splay_tree_splay()
148 cmp1 = (*sp->comp) (key, n->key); in splay_tree_splay()
164 cmp2 = (*sp->comp) (key, c->key); in splay_tree_splay()
170 rotate_left (&sp->root, n, c); in splay_tree_splay()
[all …]

12345678910>>...29