Home
last modified time | relevance | path

Searched refs:ep (Results 1 – 25 of 579) sorted by relevance

12345678910>>...24

/NextBSD/sys/dev/cxgbe/iw_cxgbe/
HDcm.c82 static void start_ep_timer(struct c4iw_ep *ep);
83 static void stop_ep_timer(struct c4iw_ep *ep);
84 static int set_tcpinfo(struct c4iw_ep *ep);
94 static void abort_socket(struct c4iw_ep *ep);
95 static void send_mpa_req(struct c4iw_ep *ep);
96 static int send_mpa_reject(struct c4iw_ep *ep, const void *pdata, u8 plen);
97 static int send_mpa_reply(struct c4iw_ep *ep, const void *pdata, u8 plen);
98 static void close_complete_upcall(struct c4iw_ep *ep, int status);
99 static int abort_connection(struct c4iw_ep *ep);
100 static void peer_close_upcall(struct c4iw_ep *ep);
[all …]
/NextBSD/sys/dev/cxgb/ulp/iw_cxgb/
HDiw_cxgb_cm.c142 static void connect_reply_upcall(struct iwch_ep *ep, int status);
155 start_ep_timer(struct iwch_ep *ep) in start_ep_timer() argument
157 CTR2(KTR_IW_CXGB, "%s ep %p", __FUNCTION__, ep); in start_ep_timer()
158 if (callout_pending(&ep->timer)) { in start_ep_timer()
159 CTR2(KTR_IW_CXGB, "%s stopped / restarted timer ep %p", __FUNCTION__, ep); in start_ep_timer()
160 callout_deactivate(&ep->timer); in start_ep_timer()
161 callout_drain(&ep->timer); in start_ep_timer()
166 get_ep(&ep->com); in start_ep_timer()
167 callout_init(&ep->timer, 1); in start_ep_timer()
169 callout_reset(&ep->timer, ep_timeout_secs * hz, ep_timeout, ep); in start_ep_timer()
[all …]
/NextBSD/sbin/restore/
HDsymtab.c85 struct entry *ep; in lookupino() local
89 for (ep = entry[inum % entrytblsize]; ep != NULL; ep = ep->e_next) in lookupino()
90 if (ep->e_ino == inum) in lookupino()
91 return (ep); in lookupino()
144 struct entry *ep; in lookupname() local
149 for (ep = lookupino(ROOTINO); ep != NULL; ep = ep->e_entries) { in lookupname()
156 for ( ; ep != NULL; ep = ep->e_sibling) in lookupname()
157 if (strcmp(ep->e_name, buf) == 0) in lookupname()
159 if (ep == NULL) in lookupname()
162 return (ep); in lookupname()
[all …]
HDrestore.c76 struct entry *ep; in addfile() local
94 ep = lookupino(ino); in addfile()
95 if (ep != NULL) { in addfile()
96 if (strcmp(name, myname(ep)) == 0) { in addfile()
97 ep->e_flags |= NEW; in addfile()
102 ep = addentry(name, ino, type); in addfile()
104 newnode(ep); in addfile()
105 ep->e_flags |= NEW; in addfile()
118 struct entry *ep; in deletefile() local
122 ep = lookupname(name); in deletefile()
[all …]
HDutilities.c61 struct entry *ep; in pathcheck() local
71 ep = lookupname(name); in pathcheck()
72 if (ep == NULL) { in pathcheck()
74 ep = addentry(name, pathsearch(name)->d_ino, NODE); in pathcheck()
75 newnode(ep); in pathcheck()
77 ep->e_flags |= NEW|KEEP; in pathcheck()
86 mktempname(struct entry *ep) in mktempname() argument
90 if (ep->e_flags & TMPNAME) in mktempname()
91 badentry(ep, "mktempname: called with TMPNAME"); in mktempname()
92 ep->e_flags |= TMPNAME; in mktempname()
[all …]
/NextBSD/contrib/nvi/common/
HDlog.c98 EXF *ep) in log_init() argument
108 ep->l_lp = NULL; in log_init()
109 ep->l_len = 0; in log_init()
110 ep->l_cursor.lno = 1; /* XXX Any valid recno. */ in log_init()
111 ep->l_cursor.cno = 0; in log_init()
112 ep->l_high = ep->l_cur = 1; in log_init()
114 ep->log = dbopen(NULL, O_CREAT | O_NONBLOCK | O_RDWR, in log_init()
116 if (ep->log == NULL) { in log_init()
118 F_SET(ep, F_NOLOG); in log_init()
134 EXF *ep) in log_end() argument
[all …]
HDline.c90 EXF *ep; in db_get() local
105 if ((ep = sp->ep) == NULL) { in db_get()
141 if (lno == ep->c_lno) { in db_get()
146 *lenp = ep->c_len; in db_get()
148 *pp = ep->c_lp; in db_get()
151 ep->c_lno = OOBLNO; in db_get()
157 switch (ep->db->get(ep->db, &key, &data, 0)) { in db_get()
181 BINC_GOTOW(sp, ep->c_lp, ep->c_blen, wlen); in db_get()
182 MEMCPY(ep->c_lp, wp, wlen); in db_get()
184 ep->c_lp = data.data; in db_get()
[all …]
HDexf.c130 EXF *ep; in file_init() local
163 CALLOC_RET(sp, ep, EXF *, 1, sizeof(EXF)); in file_init()
164 ep->c_lno = ep->c_nlines = OOBLNO; in file_init()
165 ep->rcv_fd = -1; in file_init()
166 F_SET(ep, F_FIRSTMODIFY); in file_init()
213 ep->mtim = sb.st_mtimespec; in file_init()
228 F_SET(ep, F_DEVSET); in file_init()
229 ep->mdev = sb.st_dev; in file_init()
230 ep->minode = sb.st_ino; in file_init()
232 ep->mtim = sb.st_mtimespec; in file_init()
[all …]
/NextBSD/contrib/mdocml/
HDeqn.c289 struct eqn_node *ep; in eqn_read() local
292 ep = *epp; in eqn_read()
306 mandoc_vmsg(MANDOCERR_ARG_SKIP, ep->parse, in eqn_read()
317 ep->data = mandoc_realloc(ep->data, ep->sz + sz + 1); in eqn_read()
321 if (0 == ep->sz) in eqn_read()
322 *ep->data = '\0'; in eqn_read()
324 ep->sz += sz; in eqn_read()
325 strlcat(ep->data, p + pos, ep->sz + 1); in eqn_read()
326 strlcat(ep->data, " ", ep->sz + 1); in eqn_read()
349 eqn_def_find(struct eqn_node *ep, const char *key, size_t sz) in eqn_def_find() argument
[all …]
/NextBSD/contrib/netbsd-tests/lib/libc/stdlib/
HDt_hsearch.c88 ENTRY e, *ep; in ATF_TC_BODY() local
104 ep = hsearch(e, ENTER); in ATF_TC_BODY()
106 ATF_REQUIRE(ep != NULL); in ATF_TC_BODY()
107 ATF_REQUIRE_STREQ(ep->key, ch); in ATF_TC_BODY()
108 ATF_REQUIRE_EQ((intptr_t)ep->data, i); in ATF_TC_BODY()
118 ep = hsearch(e, FIND); in ATF_TC_BODY()
120 ATF_REQUIRE(ep != NULL); in ATF_TC_BODY()
121 ATF_REQUIRE_STREQ(ep->key, ch); in ATF_TC_BODY()
122 ATF_REQUIRE_EQ((intptr_t)ep->data, i); in ATF_TC_BODY()
139 ENTRY e, *ep; in ATF_TC_BODY() local
[all …]
/NextBSD/sys/netinet/
HDip_encap.c126 struct encaptab *ep, *match; in encap4_input() local
148 LIST_FOREACH(ep, &encaptab, chain) { in encap4_input()
149 if (ep->af != AF_INET) in encap4_input()
151 if (ep->proto >= 0 && ep->proto != proto) in encap4_input()
153 if (ep->func) in encap4_input()
154 prio = (*ep->func)(m, off, proto, ep->arg); in encap4_input()
160 prio = mask_match(ep, (struct sockaddr *)&d, in encap4_input()
186 match = ep; in encap4_input()
218 struct encaptab *ep, *match; in encap6_input() local
238 LIST_FOREACH(ep, &encaptab, chain) { in encap6_input()
[all …]
/NextBSD/crypto/heimdal/appl/telnet/libtelnet/
HDencrypt.c143 Encryptions *ep = encryptions; in findencryption() local
147 while (ep->type && ep->type != type) in findencryption()
148 ++ep; in findencryption()
149 return(ep->type ? ep : 0); in findencryption()
155 Encryptions *ep = encryptions; in finddecryption() local
159 while (ep->type && ep->type != type) in finddecryption()
160 ++ep; in finddecryption()
161 return(ep->type ? ep : 0); in finddecryption()
180 Encryptions *ep = encryptions; in encrypt_init() local
196 while (ep->type) { in encrypt_init()
[all …]
/NextBSD/contrib/telnet/libtelnet/
HDencrypt.c151 Encryptions *ep = encryptions; in findencryption() local
155 while (ep->type && ep->type != type) in findencryption()
156 ++ep; in findencryption()
157 return(ep->type ? ep : 0); in findencryption()
163 Encryptions *ep = encryptions; in finddecryption() local
167 while (ep->type && ep->type != type) in finddecryption()
168 ++ep; in finddecryption()
169 return(ep->type ? ep : 0); in finddecryption()
190 Encryptions *ep = encryptions; in encrypt_init() local
203 while (ep->type) { in encrypt_init()
[all …]
/NextBSD/sys/netgraph/bluetooth/hci/
HDng_hci_evnt.c378 ng_hci_le_advertising_report_ep *ep = NULL; in le_advertizing_report() local
385 NG_HCI_M_PULLUP(event, sizeof(*ep)); in le_advertizing_report()
389 ep = mtod(event, ng_hci_le_advertising_report_ep *); in le_advertizing_report()
390 m_adj(event, sizeof(*ep)); in le_advertizing_report()
392 for (; ep->num_reports > 0; ep->num_reports --) { in le_advertizing_report()
452 ng_hci_le_connection_complete_ep *ep = NULL; in le_connection_complete() local
457 NG_HCI_M_PULLUP(event, sizeof(*ep)); in le_connection_complete()
461 ep = mtod(event, ng_hci_le_connection_complete_ep *); in le_connection_complete()
462 link_type = (ep->address_type)? NG_HCI_LINK_LE_RANDOM : in le_connection_complete()
474 bcmp(&con->bdaddr, &ep->address, sizeof(bdaddr_t)) == 0) in le_connection_complete()
[all …]
HDng_hci_ulpi.c127 ng_hci_lp_con_req_ep *ep = NULL; in ng_hci_lp_acl_con_req() local
133 ep = (ng_hci_lp_con_req_ep *)(NGI_MSG(item)->data); in ng_hci_lp_acl_con_req()
162 con = ng_hci_con_by_bdaddr(unit, &ep->bdaddr, NG_HCI_LINK_ACL); in ng_hci_lp_acl_con_req()
233 bcopy(&ep->bdaddr, &con->bdaddr, sizeof(con->bdaddr)); in ng_hci_lp_acl_con_req()
253 bcopy(&ep->bdaddr, &req->cp.bdaddr, sizeof(req->cp.bdaddr)); in ng_hci_lp_acl_con_req()
279 n = ng_hci_get_neighbor(unit, &ep->bdaddr, NG_HCI_LINK_ACL); in ng_hci_lp_acl_con_req()
327 ng_hci_lp_con_req_ep *ep = NULL; in ng_hci_lp_sco_con_req() local
332 ep = (ng_hci_lp_con_req_ep *)(NGI_MSG(item)->data); in ng_hci_lp_sco_con_req()
344 bcmp(&acl_con->bdaddr, &ep->bdaddr, sizeof(bdaddr_t)) == 0) in ng_hci_lp_sco_con_req()
351 ep->bdaddr.b[5], ep->bdaddr.b[4], ep->bdaddr.b[3], in ng_hci_lp_sco_con_req()
[all …]
/NextBSD/sys/geom/
HDgeom_event.c236 struct g_event *ep; in one_event() local
253 ep = TAILQ_FIRST(&g_events); in one_event()
254 if (ep == NULL) { in one_event()
258 if (ep->flag & EV_INPROGRESS) { in one_event()
262 ep->flag |= EV_INPROGRESS; in one_event()
265 ep->func(ep->arg, 0); in one_event()
268 TAILQ_REMOVE(&g_events, ep, events); in one_event()
269 ep->flag &= ~EV_INPROGRESS; in one_event()
270 if (ep->flag & EV_WAKEUP) { in one_event()
271 ep->flag |= EV_DONE; in one_event()
[all …]
/NextBSD/contrib/groff/src/libs/libgroff/
HDputenv.c54 char **ep; in putenv() local
60 for (ep = environ; *ep != NULL; ++ep) in putenv()
61 if (!strncmp(*ep, string, size) && (*ep)[size] == '=') in putenv()
63 while (ep[1] != NULL) in putenv()
65 ep[0] = ep[1]; in putenv()
66 ++ep; in putenv()
68 *ep = NULL; in putenv()
74 for (ep = environ; *ep != NULL; ++ep) in putenv()
75 if (!strncmp(*ep, string, name_end - string) in putenv()
76 && (*ep)[name_end - string] == '=') in putenv()
[all …]
/NextBSD/contrib/amd/amd/
HDreaddir.c64 static int amfs_readdir_browsable(am_node *mp, nfscookie cookie, nfsdirlist *dp, nfsentry *ep, u_in…
206 amfs_readdir_browsable(am_node *mp, nfscookie cookie, nfsdirlist *dp, nfsentry *ep, u_int count, in… in amfs_readdir_browsable() argument
237 if (count < (2 * (2 * (sizeof(*ep) + sizeof("..") + 4) + sizeof(*dp)))) in amfs_readdir_browsable()
252 dp->dl_entries = ep; in amfs_readdir_browsable()
255 ep[0].ne_fileid = mp->am_gen; in amfs_readdir_browsable()
256 ep[0].ne_name = "."; in amfs_readdir_browsable()
257 ep[0].ne_nextentry = &ep[1]; in amfs_readdir_browsable()
258 (void)memset(ep[0].ne_cookie, 0, sizeof(u_int)); in amfs_readdir_browsable()
262 ep[1].ne_fileid = mp->am_parent->am_gen; in amfs_readdir_browsable()
264 ep[1].ne_fileid = mp->am_gen; in amfs_readdir_browsable()
[all …]
/NextBSD/usr.bin/w/
HDw.c117 } *ep, *ehead = NULL, **nextp = &ehead; variable
228 if ((ep = calloc(1, sizeof(struct entry))) == NULL) in main()
230 *nextp = ep; in main()
231 nextp = &ep->next; in main()
232 memmove(&ep->utmp, utmp, sizeof *utmp); in main()
233 ep->tdev = stp->st_rdev; in main()
238 if (ep->tdev == 0) { in main()
242 (void)sysctlbyname("machdep.consdev", &ep->tdev, &size, NULL, 0); in main()
245 if (touched < ep->utmp.ut_tv.tv_sec) { in main()
247 touched = ep->utmp.ut_tv.tv_sec; in main()
[all …]
/NextBSD/usr.sbin/crunch/crunchgen/
HDcrunched_main.c54 struct stub *ep; in main() local
62 for(ep=entry_points; ep->name != NULL; ep++) in main()
63 if(!strcmp(basename, ep->name)) break; in main()
65 if(ep->name) in main()
66 return ep->f(argc, argv, envp); in main()
78 struct stub *ep; in crunched_here() local
83 for(ep=entry_points; ep->name != NULL; ep++) in crunched_here()
84 if(!strcmp(basename, ep->name)) in crunched_here()
94 struct stub *ep; in crunched_main() local
111 struct stub *ep; in crunched_usage() local
[all …]
/NextBSD/usr.sbin/bluetooth/hccontrol/
HDlink_control.c269 ng_hci_con_compl_ep *ep = (ng_hci_con_compl_ep *)(e + 1); in hci_create_connection() local
271 if (ep->status != 0x00) { in hci_create_connection()
273 hci_status2str(ep->status), ep->status); in hci_create_connection()
277 fprintf(stdout, "BD_ADDR: %s\n", hci_bdaddr2str(&ep->bdaddr)); in hci_create_connection()
279 le16toh(ep->con_handle)); in hci_create_connection()
281 hci_encrypt2str(ep->encryption_mode, 0), in hci_create_connection()
282 ep->encryption_mode); in hci_create_connection()
345 ng_hci_discon_compl_ep *ep = (ng_hci_discon_compl_ep *)(e + 1); in hci_disconnect() local
347 if (ep->status != 0x00) { in hci_disconnect()
349 hci_status2str(ep->status), ep->status); in hci_disconnect()
[all …]
/NextBSD/contrib/ntp/ntpd/
HDntp_io.c295 endpt * ep; member
803 for (ifi.ep = ep_list; ifi.ep != NULL; ifi.ep = ifi.ep->elink) in interface_enumerate()
812 endpt *ep in init_interface() argument
815 ZERO(*ep); in init_interface()
816 ep->fd = INVALID_SOCKET; in init_interface()
817 ep->bfd = INVALID_SOCKET; in init_interface()
818 ep->phase = sys_interphase; in init_interface()
854 endpt *ep in delete_interface() argument
857 free(ep); in delete_interface()
866 endpt * ep in add_interface() argument
[all …]
/NextBSD/contrib/ncurses/ncurses/tinfo/
HDentries.c70 ENTRY *ep; in _nc_free_entry() local
72 if ((ep = _nc_delink_entry(headp, tterm)) != 0) { in _nc_free_entry()
73 free(ep); in _nc_free_entry()
92 ENTRY *ep, *last; in _nc_delink_entry() local
94 for (last = 0, ep = headp; ep != 0; last = ep, ep = ep->next) { in _nc_delink_entry()
95 if (&(ep->tterm) == tterm) { in _nc_delink_entry()
97 last->next = ep->next; in _nc_delink_entry()
99 if (ep->next != 0) { in _nc_delink_entry()
100 ep->next->last = last; in _nc_delink_entry()
102 if (ep == _nc_head) { in _nc_delink_entry()
[all …]
/NextBSD/contrib/gcclibs/libiberty/
HDsetenv.c85 register char **ep = 0; in setenv() local
95 for (ep = __environ; *ep != NULL; ++ep) in setenv()
96 if (!strncmp (*ep, name, namelen) && (*ep)[namelen] == '=') in setenv()
102 if (__environ == NULL || *ep == NULL) in setenv()
141 size_t len = strlen (*ep); in setenv()
151 *ep = new_string; in setenv()
153 memcpy (*ep, name, namelen); in setenv()
154 (*ep)[namelen] = '='; in setenv()
155 memcpy (&(*ep)[namelen + 1], value, vallen); in setenv()
167 char **ep; in unsetenv() local
[all …]
/NextBSD/contrib/binutils/libiberty/
HDsetenv.c85 register char **ep = 0; in setenv() local
95 for (ep = __environ; *ep != NULL; ++ep) in setenv()
96 if (!strncmp (*ep, name, namelen) && (*ep)[namelen] == '=') in setenv()
102 if (__environ == NULL || *ep == NULL) in setenv()
141 size_t len = strlen (*ep); in setenv()
151 *ep = new_string; in setenv()
153 memcpy (*ep, name, namelen); in setenv()
154 (*ep)[namelen] = '='; in setenv()
155 memcpy (&(*ep)[namelen + 1], value, vallen); in setenv()
167 char **ep; in unsetenv() local
[all …]

12345678910>>...24