/freebsd/sys/dev/cxgbe/iw_cxgbe/ |
H A D | cm.c | 88 static void start_ep_timer(struct c4iw_ep *ep); 89 static int stop_ep_timer(struct c4iw_ep *ep); 90 static int set_tcpinfo(struct c4iw_ep *ep); 91 static void process_timeout(struct c4iw_ep *ep); 95 static int 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 send_abort(struct c4iw_ep *ep); 100 static void peer_close_upcall(struct c4iw_ep *ep); [all …]
|
/freebsd/contrib/mandoc/ |
H A D | eqn.c | 308 struct eqn_node *ep; in eqn_alloc() local 310 ep = mandoc_calloc(1, sizeof(*ep)); in eqn_alloc() 311 ep->gsize = EQN_DEFSIZE; in eqn_alloc() 312 return ep; in eqn_alloc() 316 eqn_reset(struct eqn_node *ep) in eqn_reset() argument 318 free(ep->data); in eqn_reset() 319 ep->data = ep->start = ep->end = NULL; in eqn_reset() 320 ep->sz = ep->toksz = 0; in eqn_reset() 324 eqn_read(struct eqn_node *ep, const char *p) in eqn_read() argument 328 if (ep->data == NULL) { in eqn_read() [all …]
|
/freebsd/sbin/restore/ |
H A D | symtab.c | 79 struct entry *ep; in lookupino() local 83 for (ep = entry[inum % entrytblsize]; ep != NULL; ep = ep->e_next) in lookupino() 84 if (ep->e_ino == inum) in lookupino() 85 return (ep); in lookupino() 138 struct entry *ep; in lookupname() local 143 for (ep = lookupino(UFS_ROOTINO); ep != NULL; ep = ep->e_entries) { in lookupname() 150 for ( ; ep != NULL; ep = ep->e_sibling) in lookupname() 151 if (strcmp(ep->e_name, buf) == 0) in lookupname() 153 if (ep == NULL) in lookupname() 156 return (ep); in lookupname() [all …]
|
H A D | restore.c | 69 struct entry *ep; in addfile() local 87 ep = lookupino(ino); in addfile() 88 if (ep != NULL) { in addfile() 89 if (strcmp(name, myname(ep)) == 0) { in addfile() 90 ep->e_flags |= NEW; in addfile() 95 ep = addentry(name, ino, type); in addfile() 97 newnode(ep); in addfile() 98 ep->e_flags |= NEW; in addfile() 111 struct entry *ep; in deletefile() local 115 ep = lookupname(name); in deletefile() [all …]
|
H A D | utilities.c | 55 struct entry *ep; in pathcheck() local 65 ep = lookupname(name); in pathcheck() 66 if (ep == NULL) { in pathcheck() 68 ep = addentry(name, pathsearch(name)->d_ino, NODE); in pathcheck() 69 newnode(ep); in pathcheck() 71 ep->e_flags |= NEW|KEEP; in pathcheck() 80 mktempname(struct entry *ep) in mktempname() argument 84 if (ep->e_flags & TMPNAME) in mktempname() 85 badentry(ep, "mktempname: called with TMPNAME"); in mktempname() 86 ep->e_flags |= TMPNAME; in mktempname() [all …]
|
/freebsd/contrib/nvi/common/ |
H A D | log.c | 93 log_init(SCR *sp, EXF *ep) in log_init() argument 103 ep->l_lp = NULL; in log_init() 104 ep->l_len = 0; in log_init() 105 ep->l_cursor.lno = 1; /* XXX Any valid recno. */ in log_init() 106 ep->l_cursor.cno = 0; in log_init() 107 ep->l_high = ep->l_cur = 1; in log_init() 109 ep->log = dbopen(NULL, O_CREAT | O_NONBLOCK | O_RDWR, in log_init() 111 if (ep->log == NULL) { in log_init() 113 F_SET(ep, F_NOLOG); in log_init() 127 log_end(SCR *sp, EXF *ep) in log_end() argument [all …]
|
H A D | line.c | 84 EXF *ep; in db_get() local 99 if ((ep = sp->ep) == NULL) { in db_get() 135 if (lno == ep->c_lno) { in db_get() 140 *lenp = ep->c_len; in db_get() 142 *pp = ep->c_lp; in db_get() 145 ep->c_lno = OOBLNO; in db_get() 151 switch (ep->db->get(ep->db, &key, &data, 0)) { in db_get() 175 BINC_GOTOW(sp, ep->c_lp, ep->c_blen, wlen); in db_get() 176 MEMCPY(ep->c_lp, wp, wlen); in db_get() 178 ep->c_lp = data.data; in db_get() [all …]
|
H A D | exf.c | 119 EXF *ep; in file_init() local 152 CALLOC_RET(sp, ep, 1, sizeof(EXF)); in file_init() 153 ep->c_lno = ep->c_nlines = OOBLNO; in file_init() 154 ep->rcv_fd = -1; in file_init() 155 F_SET(ep, F_FIRSTMODIFY); in file_init() 203 ep->mtim = sb.st_mtimespec; in file_init() 205 ep->mtim = sb.st_mtim; in file_init() 207 ep->mtim.tv_sec = sb.st_mtime; in file_init() 208 ep->mtim.tv_nsec = 0; in file_init() 224 F_SET(ep, F_DEVSET); in file_init() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/stdlib/ |
H A D | t_hsearch.c | 87 ENTRY e, *ep; in ATF_TC_BODY() local 103 ep = hsearch(e, ENTER); in ATF_TC_BODY() 105 ATF_REQUIRE(ep != NULL); in ATF_TC_BODY() 106 ATF_REQUIRE_STREQ(ep->key, ch); in ATF_TC_BODY() 107 ATF_REQUIRE_EQ((intptr_t)ep->data, i); in ATF_TC_BODY() 117 ep = hsearch(e, FIND); in ATF_TC_BODY() 119 ATF_REQUIRE(ep != NULL); in ATF_TC_BODY() 120 ATF_REQUIRE_STREQ(ep->key, ch); in ATF_TC_BODY() 121 ATF_REQUIRE_EQ((intptr_t)ep->data, i); in ATF_TC_BODY() 141 ENTRY e, *ep; in ATF_TC_BODY() local [all …]
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | htc.c | 53 void ath10k_htc_notify_tx_completion(struct ath10k_htc_ep *ep, in ath10k_htc_notify_tx_completion() argument 56 struct ath10k *ar = ep->htc->ar; in ath10k_htc_notify_tx_completion() 60 ep->eid, skb); in ath10k_htc_notify_tx_completion() 68 ep->ul_pipe_id == 3) in ath10k_htc_notify_tx_completion() 72 ath10k_htc_restore_tx_skb(ep->htc, skb); in ath10k_htc_notify_tx_completion() 74 if (!ep->ep_ops.ep_tx_complete) { in ath10k_htc_notify_tx_completion() 75 ath10k_warn(ar, "no tx handler for eid %d\n", ep->eid); in ath10k_htc_notify_tx_completion() 85 ep->ep_ops.ep_tx_complete(ep->htc->ar, skb); in ath10k_htc_notify_tx_completion() 89 static void ath10k_htc_prepare_tx_skb(struct ath10k_htc_ep *ep, in ath10k_htc_prepare_tx_skb() argument 97 hdr->eid = ep->eid; in ath10k_htc_prepare_tx_skb() [all …]
|
/freebsd/contrib/telnet/libtelnet/ |
H A D | encrypt.c | 143 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() 182 Encryptions *ep = encryptions; in encrypt_init() local 195 while (ep->type) { in encrypt_init() [all …]
|
/freebsd/crypto/heimdal/appl/telnet/libtelnet/ |
H A D | encrypt.c | 143 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 …]
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore_iwarp.c | 562 struct ecore_iwarp_ep *ep, in ecore_iwarp_destroy_ep() argument 566 ep->ep_buffer_virt, in ecore_iwarp_destroy_ep() 567 ep->ep_buffer_phys, in ecore_iwarp_destroy_ep() 568 sizeof(*ep->ep_buffer_virt)); in ecore_iwarp_destroy_ep() 573 OSAL_LIST_REMOVE_ENTRY(&ep->list_entry, in ecore_iwarp_destroy_ep() 579 if (ep->qp) in ecore_iwarp_destroy_ep() 580 ep->qp->ep = OSAL_NULL; in ecore_iwarp_destroy_ep() 582 OSAL_FREE(p_hwfn->p_dev, ep); in ecore_iwarp_destroy_ep() 590 struct ecore_iwarp_ep *ep = qp->ep; in ecore_iwarp_destroy_qp() local 610 if (ep) { in ecore_iwarp_destroy_qp() [all …]
|
/freebsd/sys/netgraph/bluetooth/hci/ |
H A D | ng_hci_evnt.c | 379 ng_hci_le_advertising_report_ep *ep = NULL; in le_advertizing_report() local 386 NG_HCI_M_PULLUP(event, sizeof(*ep)); in le_advertizing_report() 390 ep = mtod(event, ng_hci_le_advertising_report_ep *); in le_advertizing_report() 391 num_reports = ep->num_reports; in le_advertizing_report() 392 m_adj(event, sizeof(*ep)); in le_advertizing_report() 393 ep = NULL; in le_advertizing_report() 473 ng_hci_le_connection_complete_ep *ep = NULL; in le_connection_complete() local 478 NG_HCI_M_PULLUP(event, sizeof(*ep)); in le_connection_complete() 482 ep = mtod(event, ng_hci_le_connection_complete_ep *); in le_connection_complete() 483 link_type = (ep->address_type)? NG_HCI_LINK_LE_RANDOM : in le_connection_complete() [all …]
|
H A D | ng_hci_ulpi.c | 128 ng_hci_lp_con_req_ep *ep = NULL; in ng_hci_lp_acl_con_req() local 134 ep = (ng_hci_lp_con_req_ep *)(NGI_MSG(item)->data); in ng_hci_lp_acl_con_req() 163 con = ng_hci_con_by_bdaddr(unit, &ep->bdaddr, NG_HCI_LINK_ACL); in ng_hci_lp_acl_con_req() 234 bcopy(&ep->bdaddr, &con->bdaddr, sizeof(con->bdaddr)); in ng_hci_lp_acl_con_req() 254 bcopy(&ep->bdaddr, &req->cp.bdaddr, sizeof(req->cp.bdaddr)); in ng_hci_lp_acl_con_req() 280 n = ng_hci_get_neighbor(unit, &ep->bdaddr, NG_HCI_LINK_ACL); in ng_hci_lp_acl_con_req() 328 ng_hci_lp_con_req_ep *ep = NULL; in ng_hci_lp_sco_con_req() local 333 ep = (ng_hci_lp_con_req_ep *)(NGI_MSG(item)->data); in ng_hci_lp_sco_con_req() 345 bcmp(&acl_con->bdaddr, &ep->bdaddr, sizeof(bdaddr_t)) == 0) in ng_hci_lp_sco_con_req() 352 ep->bdaddr.b[5], ep->bdaddr.b[4], ep->bdaddr.b[3], in ng_hci_lp_sco_con_req() [all …]
|
/freebsd/sys/geom/ |
H A D | geom_event.c | 236 struct g_event *ep; in one_event() local 250 ep = TAILQ_FIRST(&g_events); in one_event() 251 if (ep == NULL) { in one_event() 255 ep->flag |= EV_INPROGRESS; in one_event() 258 ep->func(ep->arg, 0); in one_event() 262 TAILQ_REMOVE(&g_events, ep, events); in one_event() 263 ep->flag &= ~EV_INPROGRESS; in one_event() 264 if (ep->flag & EV_WAKEUP) { in one_event() 265 ep->flag |= EV_DONE; in one_event() 266 wakeup(ep); in one_event() [all …]
|
/freebsd/contrib/ntp/ntpd/ |
H A D | ntp_io.c | 299 endpt * ep; 722 for (ifi.ep = ep_list; ifi.ep != NULL; ifi.ep = ifi.ep->elink) in addr_samesubnet() 731 endpt *ep in interface_enumerate() 734 ZERO(*ep); in interface_enumerate() 735 ep->fd = INVALID_SOCKET; in interface_enumerate() 736 ep->bfd = INVALID_SOCKET; in interface_enumerate() 737 ep in interface_enumerate() 297 endpt * ep; global() member 748 init_interface(endpt * ep) init_interface() argument 796 delete_interface(endpt * ep) delete_interface() argument 811 add_interface(endpt * ep) add_interface() argument 984 remove_interface(endpt * ep) remove_interface() argument 1052 log_listen_address(endpt * ep) log_listen_address() argument 1760 endpt * ep; update_interfaces() local 2235 endpt *ep; set_reuseaddr() local 2606 endpt * ep; io_setbclient() local 2714 endpt *ep; io_unsetbclient() local 2747 endpt * ep; global() local 3133 sendpkt(sockaddr_u * dest,struct interface * ep,int ttl,struct pkt * pkt,int len) global() argument 3799 endpt * ep; global() local 3930 endpt *ep; global() local 4128 endpt * ep; global() local 4573 add_addr_to_list(sockaddr_u * addr,endpt * ep) global() argument [all...] |
/freebsd/usr.bin/w/ |
H A D | w.c | 107 } *ep, *ehead = NULL, **nextp = &ehead; variable 230 if ((ep = calloc(1, sizeof(struct entry))) == NULL) in main() 232 *nextp = ep; in main() 233 nextp = &ep->next; in main() 234 memmove(&ep->utmp, utmp, sizeof *utmp); in main() 235 ep->tdev = stp->st_rdev; in main() 240 if (ep->tdev == 0) { in main() 244 (void)sysctlbyname("machdep.consdev", &ep->tdev, &size, NULL, 0); in main() 247 if (touched < ep->utmp.ut_tv.tv_sec) { in main() 249 touched = ep->utmp.ut_tv.tv_sec; in main() [all …]
|
/freebsd/usr.sbin/crunch/crunchgen/ |
H A D | crunched_main.c | 96 struct stub *ep = &entry_points[i]; in find_entry_point() 97 if (!strcmp(basename, ep->name)) in find_entry_point() 98 return (ep); in find_entry_point() 113 struct stub *ep = NULL; in main() 123 ep = find_entry_point(basename); in main() 133 if (ep == NULL) { in main() 135 ep = find_entry_point(basename); in main() 142 if (ep == NULL) { in main() 155 ep = find_entry_point(basename); in main() 165 if (ep ! in main() 93 struct stub *ep = NULL; find_entry_point() local 112 struct stub *ep = NULL; main() local 186 struct stub *ep; crunched_usage() local [all...] |
/freebsd/usr.sbin/bluetooth/hccontrol/ |
H A D | link_control.c | 270 ng_hci_con_compl_ep *ep = (ng_hci_con_compl_ep *)(e + 1); in hci_create_connection() local 272 if (ep->status != 0x00) { in hci_create_connection() 274 hci_status2str(ep->status), ep->status); in hci_create_connection() 278 fprintf(stdout, "BD_ADDR: %s\n", hci_bdaddr2str(&ep->bdaddr)); in hci_create_connection() 280 le16toh(ep->con_handle)); in hci_create_connection() 282 hci_encrypt2str(ep->encryption_mode, 0), in hci_create_connection() 283 ep->encryption_mode); in hci_create_connection() 346 ng_hci_discon_compl_ep *ep = (ng_hci_discon_compl_ep *)(e + 1); in hci_disconnect() local 348 if (ep->status != 0x00) { in hci_disconnect() 350 hci_status2str(ep->status), ep->status); in hci_disconnect() [all …]
|
/freebsd/sys/netinet/ |
H A D | ip_encap.c | 237 struct encaptab *ep, *tmp; in encap_attach() local 245 ep = malloc(sizeof(*ep), M_NETADDR, mflags); in encap_attach() 246 if (ep == NULL) in encap_attach() 249 ep->proto = cfg->proto; in encap_attach() 250 ep->min_length = cfg->min_length; in encap_attach() 251 ep->exact_match = cfg->exact_match; in encap_attach() 252 ep->arg = arg; in encap_attach() 253 ep->lookup = cfg->exact_match == ENCAP_DRV_LOOKUP ? cfg->lookup: NULL; in encap_attach() 254 ep->check = cfg->exact_match != ENCAP_DRV_LOOKUP ? cfg->check: NULL; in encap_attach() 255 ep->input = cfg->input; in encap_attach() [all …]
|
/freebsd/lib/libc/db/btree/ |
H A D | bt_seq.c | 132 * ep: storage for returned key 143 __bt_seqset(BTREE *t, EPG *ep, DBT *key, int flags) in __bt_seqset() argument 164 return (__bt_first(t, key, ep, &exact)); in __bt_seqset() 183 ep->page = h; in __bt_seqset() 184 ep->index = 0; in __bt_seqset() 205 ep->page = h; in __bt_seqset() 206 ep->index = NEXTINDEX(h) - 1; in __bt_seqset() 227 __bt_seqadv(BTREE *t, EPG *ep, int flags) in __bt_seqadv() argument 250 return (__bt_first(t, &c->key, ep, &exact)); in __bt_seqadv() 288 ep in __bt_seqadv() 329 EPG *ep, save; __bt_first() local [all...] |
/freebsd/crypto/openssl/apps/ |
H A D | rehash.c | 127 HENTRY *ep, *found = NULL; in add_entry() local 142 for (ep = bp->first_entry; ep; ep = ep->next) { in add_entry() 143 if (digest && memcmp(digest, ep->digest, evpmdsize) == 0) { in add_entry() 150 if (strcmp(filename, ep->filename) == 0) { in add_entry() 151 found = ep; in add_entry() 156 ep = found; in add_entry() 157 if (ep == NULL) { in add_entry() 164 ep = app_malloc(sizeof(*ep), "collision bucket"); in add_entry() 165 *ep = nilhentry; in add_entry() 166 ep->old_id = ~0; in add_entry() [all …]
|
/freebsd/contrib/ncurses/ncurses/tinfo/ |
H A D | entries.c | 71 ENTRY *ep, *last; in _nc_delink_entry() local 73 for (last = 0, ep = headp; ep != 0; last = ep, ep = ep->next) { in _nc_delink_entry() 74 if (&(ep->tterm) == tterm) { in _nc_delink_entry() 76 last->next = ep->next; in _nc_delink_entry() 78 if (ep->next != 0) { in _nc_delink_entry() 79 ep->next->last = last; in _nc_delink_entry() 81 if (ep == _nc_head) { in _nc_delink_entry() 82 _nc_head = ep->next; in _nc_delink_entry() 84 if (ep == _nc_tail) { in _nc_delink_entry() 90 return ep; in _nc_delink_entry() [all …]
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | htc.c | 53 static void ath12k_htc_prepare_tx_skb(struct ath12k_htc_ep *ep, in ath12k_htc_prepare_tx_skb() argument 61 hdr->htc_info = le32_encode_bits(ep->eid, HTC_HDR_ENDPOINTID) | in ath12k_htc_prepare_tx_skb() 65 if (ep->tx_credit_flow_enabled) in ath12k_htc_prepare_tx_skb() 69 spin_lock_bh(&ep->htc->tx_lock); in ath12k_htc_prepare_tx_skb() 70 hdr->ctrl_info = le32_encode_bits(ep->seq_no++, HTC_HDR_CONTROLBYTES1); in ath12k_htc_prepare_tx_skb() 71 spin_unlock_bh(&ep->htc->tx_lock); in ath12k_htc_prepare_tx_skb() 78 struct ath12k_htc_ep *ep = &htc->endpoint[eid]; in ath12k_htc_send() local 92 if (ep->tx_credit_flow_enabled) { in ath12k_htc_send() 95 if (ep->tx_credits < credits) { in ath12k_htc_send() 98 eid, credits, ep->tx_credits); in ath12k_htc_send() [all …]
|