Home
last modified time | relevance | path

Searched refs:ap (Results 1 – 25 of 1322) sorted by relevance

12345678910>>...53

/freebsd/contrib/tcpdump/
H A Dprint-arp.c77 #define ar_sha(ap) (((const u_char *)((ap)+1))+ 0) argument
78 #define ar_spa(ap) (((const u_char *)((ap)+1))+ GET_U_1((ap)->ar_hln)) argument
79 #define ar_tha(ap) (((const u_char *)((ap)+1))+ GET_U_1((ap)->ar_hln)+GET_U_1((ap)->ar_pln)) argument
80 #define ar_tpa(ap) (((const u_char *)((ap)+1))+2*GET_U_1((ap)->ar_hln)+GET_U_1((ap)->ar_pln)) argument
85 #define HRD(ap) GET_BE_U_2((ap)->ar_hrd) argument
86 #define HRD_LEN(ap) GET_U_1((ap)->ar_hln) argument
87 #define PROTO_LEN(ap) GET_U_1((ap)->ar_pln) argument
88 #define OP(ap) GET_BE_U_2((ap)->ar_op) argument
89 #define PRO(ap) GET_BE_U_2((ap)->ar_pro) argument
90 #define SHA(ap) (ar_sha(ap)) argument
[all …]
H A Dprint-aodv.c212 const struct aodv_rreq *ap = (const struct aodv_rreq *)dat; in aodv_rreq() local
214 ND_TCHECK_SIZE(ap); in aodv_rreq()
215 if (length < sizeof(*ap)) in aodv_rreq()
219 GET_U_1(ap->rreq_type) & RREQ_JOIN ? "[J]" : "", in aodv_rreq()
220 GET_U_1(ap->rreq_type) & RREQ_REPAIR ? "[R]" : "", in aodv_rreq()
221 GET_U_1(ap->rreq_type) & RREQ_GRAT ? "[G]" : "", in aodv_rreq()
222 GET_U_1(ap->rreq_type) & RREQ_DEST ? "[D]" : "", in aodv_rreq()
223 GET_U_1(ap->rreq_type) & RREQ_UNKNOWN ? "[U] " : " ", in aodv_rreq()
224 GET_U_1(ap->rreq_hops), in aodv_rreq()
225 GET_BE_U_4(ap->rreq_id), in aodv_rreq()
[all …]
/freebsd/sys/security/audit/
H A Daudit_pipe.c179 #define AUDIT_PIPE_LOCK(ap) mtx_lock(&(ap)->ap_mtx) argument
180 #define AUDIT_PIPE_LOCK_ASSERT(ap) mtx_assert(&(ap)->ap_mtx, MA_OWNED) argument
181 #define AUDIT_PIPE_LOCK_DESTROY(ap) mtx_destroy(&(ap)->ap_mtx) argument
182 #define AUDIT_PIPE_LOCK_INIT(ap) mtx_init(&(ap)->ap_mtx, \ argument
184 #define AUDIT_PIPE_UNLOCK(ap) mtx_unlock(&(ap)->ap_mtx) argument
185 #define AUDIT_PIPE_MTX(ap) (&(ap)->ap_mtx) argument
187 #define AUDIT_PIPE_SX_LOCK_DESTROY(ap) sx_destroy(&(ap)->ap_sx) argument
188 #define AUDIT_PIPE_SX_LOCK_INIT(ap) sx_init(&(ap)->ap_sx, "audit_pipe_sx") argument
189 #define AUDIT_PIPE_SX_XLOCK_ASSERT(ap) sx_assert(&(ap)->ap_sx, SA_XLOCKED) argument
190 #define AUDIT_PIPE_SX_XLOCK_SIG(ap) sx_xlock_sig(&(ap)->ap_sx) argument
[all …]
/freebsd/contrib/wpa/src/ap/
H A Dap_list.c31 static int ap_list_beacon_olbc(struct hostapd_iface *iface, struct ap_info *ap) in ap_list_beacon_olbc() argument
37 iface->conf->channel != ap->channel) in ap_list_beacon_olbc()
40 if (ap->erp != -1 && (ap->erp & ERP_INFO_NON_ERP_PRESENT)) in ap_list_beacon_olbc()
44 int rate = (ap->supported_rates[i] & 0x7f) * 5; in ap_list_beacon_olbc()
53 static struct ap_info * ap_get_ap(struct hostapd_iface *iface, const u8 *ap) in ap_get_ap() argument
57 s = iface->ap_hash[STA_HASH(ap)]; in ap_get_ap()
58 while (s != NULL && !ether_addr_equal(s->addr, ap)) in ap_get_ap()
64 static void ap_ap_list_add(struct hostapd_iface *iface, struct ap_info *ap) in ap_ap_list_add() argument
67 ap->prev = iface->ap_list->prev; in ap_ap_list_add()
68 iface->ap_list->prev = ap; in ap_ap_list_add()
[all …]
/freebsd/contrib/wpa/src/wps/
H A Dwps_er.c28 static void wps_er_ap_process(struct wps_er_ap *ap, struct wpabuf *msg);
29 static int wps_er_send_get_device_info(struct wps_er_ap *ap,
30 void (*m1_handler)(struct wps_er_ap *ap,
59 static struct wps_er_sta * wps_er_sta_get(struct wps_er_ap *ap, const u8 *addr, in wps_er_sta_get() argument
63 dl_list_for_each(sta, &ap->sta, struct wps_er_sta, list) { in wps_er_sta_get()
76 wps_er_sta_event(sta->ap->er->wps, sta, WPS_EV_ER_ENROLLEE_REMOVE); in wps_er_sta_free()
91 static void wps_er_sta_remove_all(struct wps_er_ap *ap) in wps_er_sta_remove_all() argument
94 dl_list_for_each_safe(sta, prev, &ap->sta, struct wps_er_sta, list) in wps_er_sta_remove_all()
103 struct wps_er_ap *ap; in wps_er_ap_get() local
104 dl_list_for_each(ap, &er->ap, struct wps_er_ap, list) { in wps_er_ap_get()
[all …]
/freebsd/sys/kern/
H A Dvfs_default.c76 static int vop_stdis_text(struct vop_is_text_args *ap);
77 static int vop_stdunset_text(struct vop_unset_text_args *ap);
78 static int vop_stdadd_writecount(struct vop_add_writecount_args *ap);
79 static int vop_stdcopy_file_range(struct vop_copy_file_range_args *ap);
80 static int vop_stdfdatasync(struct vop_fdatasync_args *ap);
81 static int vop_stdgetpages_async(struct vop_getpages_async_args *ap);
82 static int vop_stdread_pgcache(struct vop_read_pgcache_args *ap);
83 static int vop_stdstat(struct vop_stat_args *ap);
84 static int vop_stdvput_pair(struct vop_vput_pair_args *ap);
85 static int vop_stdgetlowvnode(struct vop_getlowvnode_args *ap);
[all …]
/freebsd/sys/ufs/ufs/
H A Dufs_acl.c207 ufs_getacl_nfs4(struct vop_getacl_args *ap) in ufs_getacl_nfs4() argument
211 if ((ap->a_vp->v_mount->mnt_flag & MNT_NFS4ACLS) == 0) in ufs_getacl_nfs4()
214 error = VOP_ACCESSX(ap->a_vp, VREAD_ACL, ap->a_td->td_ucred, ap->a_td); in ufs_getacl_nfs4()
218 error = ufs_getacl_nfs4_internal(ap->a_vp, ap->a_aclp, ap->a_td); in ufs_getacl_nfs4()
281 ufs_getacl_posix1e(struct vop_getacl_args *ap) in ufs_getacl_posix1e() argument
283 struct inode *ip = VTOI(ap->a_vp); in ufs_getacl_posix1e()
291 if ((ap->a_vp->v_mount->mnt_flag & MNT_ACLS) == 0) in ufs_getacl_posix1e()
299 error = ufs_get_oldacl(ap->a_type, old, ap->a_vp, ap->a_td); in ufs_getacl_posix1e()
306 switch (ap->a_type) { in ufs_getacl_posix1e()
340 error = acl_copy_oldacl_into_acl(old, ap->a_aclp); in ufs_getacl_posix1e()
[all …]
/freebsd/usr.sbin/bluetooth/sdpd/
H A Dlog.c52 va_list ap; in log_emerg() local
54 va_start(ap, message); in log_emerg()
55 vsyslog(LOG_EMERG, message, ap); in log_emerg()
56 va_end(ap); in log_emerg()
62 va_list ap; in log_alert() local
64 va_start(ap, message); in log_alert()
65 vsyslog(LOG_ALERT, message, ap); in log_alert()
66 va_end(ap); in log_alert()
72 va_list ap; in log_crit() local
74 va_start(ap, message); in log_crit()
[all …]
/freebsd/bin/sh/
H A Dalias.c56 struct alias *ap, **app; in setalias() local
61 ap = ckmalloc(sizeof (struct alias)); in setalias()
62 ap->name = savestr(name); in setalias()
63 ap->val = savestr(val); in setalias()
64 ap->flag = 0; in setalias()
65 ap->next = *app; in setalias()
66 *app = ap; in setalias()
72 freealias(struct alias *ap) in freealias() argument
74 ckfree(ap->name); in freealias()
75 ckfree(ap->val); in freealias()
[all …]
/freebsd/contrib/unifdef/FreeBSD/
H A Derr.c35 va_list ap; in err() local
36 va_start(ap, fmt); in err()
37 verrc(eval, errno, fmt, ap); in err()
38 va_end(ap); in err()
42 verr(int eval, const char *fmt, va_list ap) in verr() argument
44 verrc(eval, errno, fmt, ap); in verr()
50 va_list ap; in errc() local
51 va_start(ap, fmt); in errc()
52 verrc(eval, code, fmt, ap); in errc()
53 va_end(ap); in errc()
[all …]
/freebsd/sys/contrib/openzfs/lib/libuutil/
H A Duu_avl.c211 uu_avl_t *ap, *next, *prev; in uu_avl_create() local
218 ap = uu_zalloc(sizeof (*ap)); in uu_avl_create()
219 if (ap == NULL) { in uu_avl_create()
224 ap->ua_pool = pp; in uu_avl_create()
225 ap->ua_parent = parent; in uu_avl_create()
226 ap->ua_debug = pp->uap_debug || (flags & UU_AVL_DEBUG); in uu_avl_create()
227 ap->ua_index = (pp->uap_last_index = INDEX_NEXT(pp->uap_last_index)); in uu_avl_create()
229 avl_create(&ap->ua_tree, &uu_avl_node_compare, pp->uap_objsize, in uu_avl_create()
232 ap->ua_null_walk.uaw_next = &ap->ua_null_walk; in uu_avl_create()
233 ap->ua_null_walk.uaw_prev = &ap->ua_null_walk; in uu_avl_create()
[all …]
/freebsd/sys/fs/unionfs/
H A Dunion_vnops.c80 unionfs_lookup(struct vop_cachedlookup_args *ap) in unionfs_lookup() argument
95 cnp = ap->a_cnp; in unionfs_lookup()
98 dvp = ap->a_dvp; in unionfs_lookup()
104 *(ap->a_vpp) = NULLVP; in unionfs_lookup()
178 *(ap->a_vpp) = dtmpvp; in unionfs_lookup()
184 *(ap->a_vpp) = NULLVP; in unionfs_lookup()
234 *(ap->a_vpp) = dvp; in unionfs_lookup()
273 *(ap->a_vpp) = dvp; in unionfs_lookup()
385 *(ap->a_vpp) = vp; in unionfs_lookup()
409 unionfs_create(struct vop_create_args *ap) in unionfs_create() argument
[all …]
/freebsd/lib/libc/gen/
H A Derr.c71 va_list ap; in _err() local
72 va_start(ap, fmt); in _err()
73 verrc(eval, errno, fmt, ap); in _err()
74 va_end(ap); in _err()
78 verr(int eval, const char *fmt, va_list ap) in verr() argument
80 verrc(eval, errno, fmt, ap); in verr()
86 va_list ap; in errc() local
87 va_start(ap, fmt); in errc()
88 verrc(eval, code, fmt, ap); in errc()
89 va_end(ap); in errc()
[all …]
/freebsd/sys/fs/ext2fs/
H A Dext2_acl.c212 ext2_getacl_posix1e(struct vop_getacl_args *ap) in ext2_getacl_posix1e() argument
220 switch (ap->a_type) { in ext2_getacl_posix1e()
233 len = sizeof(*ap->a_aclp) + sizeof(struct ext2_acl_header); in ext2_getacl_posix1e()
236 error = vn_extattr_get(ap->a_vp, IO_NODELOCKED, attrnamespace, attrname, in ext2_getacl_posix1e()
237 &len, value, ap->a_td); in ext2_getacl_posix1e()
239 switch (ap->a_type) { in ext2_getacl_posix1e()
241 ap->a_aclp->acl_cnt = 3; in ext2_getacl_posix1e()
242 ap->a_aclp->acl_entry[0].ae_tag = ACL_USER_OBJ; in ext2_getacl_posix1e()
243 ap->a_aclp->acl_entry[0].ae_id = ACL_UNDEFINED_ID; in ext2_getacl_posix1e()
244 ap->a_aclp->acl_entry[0].ae_perm = ACL_PERM_NONE; in ext2_getacl_posix1e()
[all …]
/freebsd/sbin/ipf/libipf/
H A Dprintaps.c20 ap_session_t ap; in printaps() local
25 if (kmemcpy((char *)&ap, (long)aps, sizeof(ap))) in printaps()
27 if (kmemcpy((char *)&apr, (long)ap.aps_apr, sizeof(apr))) in printaps()
33 (unsigned long long)ap.aps_bytes, in printaps()
34 (unsigned long long)ap.aps_pkts); in printaps()
36 PRINTF("\tbytes %lu pkts %lu", ap.aps_bytes, ap.aps_pkts); in printaps()
38 PRINTF(" data %s\n", ap.aps_data ? "YES" : "NO"); in printaps()
41 ap.aps_state[0], ap.aps_state[1], in printaps()
42 ap.aps_sel[0], ap.aps_sel[1]); in printaps()
46 ap.aps_seqoff[0], ap.aps_seqoff[1], in printaps()
[all …]
/freebsd/contrib/telnet/libtelnet/
H A Dauth.c186 Authenticator *ap = authenticators; in findauthenticator() local
188 while (ap->type && (ap->type != type || ap->way != way)) in findauthenticator()
189 ++ap; in findauthenticator()
190 return(ap->type ? ap : 0); in findauthenticator()
196 Authenticator *ap = authenticators; in auth_init() local
204 while (ap->type) { in auth_init()
205 if (!ap->init || (*ap->init)(ap, server)) { in auth_init()
206 i_support |= typemask(ap->type); in auth_init()
210 ap->type, ap->way); in auth_init()
214 Name, ap->type, ap->way); in auth_init()
[all …]
/freebsd/crypto/heimdal/appl/telnet/libtelnet/
H A Dauth.c180 Authenticator *ap = authenticators; in findauthenticator() local
182 while (ap->type && (ap->type != type || ap->way != way)) in findauthenticator()
183 ++ap; in findauthenticator()
184 return(ap->type ? ap : 0); in findauthenticator()
190 Authenticator *ap = authenticators; in auth_init() local
198 while (ap->type) { in auth_init()
199 if (!ap->init || (*ap->init)(ap, server)) { in auth_init()
200 i_support |= typemask(ap->type); in auth_init()
204 ap->type, ap->way); in auth_init()
208 Name, ap->type, ap->way); in auth_init()
[all …]
/freebsd/contrib/ntp/sntp/libevent/
H A Dlog.c104 va_list ap; in event_err() local
106 va_start(ap, fmt); in event_err()
107 event_logv_(EVENT_LOG_ERR, strerror(errno), fmt, ap); in event_err()
108 va_end(ap); in event_err()
115 va_list ap; in event_warn() local
117 va_start(ap, fmt); in event_warn()
118 event_logv_(EVENT_LOG_WARN, strerror(errno), fmt, ap); in event_warn()
119 va_end(ap); in event_warn()
125 va_list ap; in event_sock_err() local
128 va_start(ap, fmt); in event_sock_err()
[all …]
/freebsd/contrib/libevent/
H A Dlog.c104 va_list ap; in event_err() local
106 va_start(ap, fmt); in event_err()
107 event_logv_(EVENT_LOG_ERR, strerror(errno), fmt, ap); in event_err()
108 va_end(ap); in event_err()
115 va_list ap; in event_warn() local
117 va_start(ap, fmt); in event_warn()
118 event_logv_(EVENT_LOG_WARN, strerror(errno), fmt, ap); in event_warn()
119 va_end(ap); in event_warn()
125 va_list ap; in event_sock_err() local
128 va_start(ap, fmt); in event_sock_err()
[all …]
/freebsd/sys/fs/nullfs/
H A Dnull_vnops.c217 null_bypass(struct vop_generic_args *ap) in null_bypass() argument
224 struct vnodeop_desc *descp = ap->a_desc; in null_bypass()
249 descp->vdesc_vp_offsets[i], ap); in null_bypass()
289 error = VCALL(ap); in null_bypass()
349 descp->vdesc_vpp_offset, ap); in null_bypass()
359 null_add_writecount(struct vop_add_writecount_args *ap) in null_add_writecount() argument
364 vp = ap->a_vp; in null_add_writecount()
369 VNASSERT(vp->v_writecount + ap->a_inc >= 0, vp, in null_add_writecount()
370 ("wrong writecount inc %d", ap->a_inc)); in null_add_writecount()
371 error = VOP_ADD_WRITECOUNT(lvp, ap in null_add_writecount()
384 null_lookup(struct vop_lookup_args * ap) null_lookup() argument
474 null_open(struct vop_open_args * ap) null_open() argument
498 null_setattr(struct vop_setattr_args * ap) null_setattr() argument
538 null_stat(struct vop_stat_args * ap) null_stat() argument
550 null_getattr(struct vop_getattr_args * ap) null_getattr() argument
565 null_access(struct vop_access_args * ap) null_access() argument
591 null_accessx(struct vop_accessx_args * ap) null_accessx() argument
625 null_remove(struct vop_remove_args * ap) null_remove() argument
650 null_rename(struct vop_rename_args * ap) null_rename() argument
728 null_rmdir(struct vop_rmdir_args * ap) null_rmdir() argument
741 null_lock(struct vop_lock1_args * ap) null_lock() argument
814 null_unlock(struct vop_unlock_args * ap) null_unlock() argument
865 null_inactive(struct vop_inactive_args * ap) null_inactive() argument
878 null_need_inactive(struct vop_need_inactive_args * ap) null_need_inactive() argument
889 null_reclaim(struct vop_reclaim_args * ap) null_reclaim() argument
935 null_print(struct vop_print_args * ap) null_print() argument
945 null_getwritemount(struct vop_getwritemount_args * ap) null_getwritemount() argument
967 null_vptofh(struct vop_vptofh_args * ap) null_vptofh() argument
976 null_vptocnp(struct vop_vptocnp_args * ap) null_vptocnp() argument
1022 null_read_pgcache(struct vop_read_pgcache_args * ap) null_read_pgcache() argument
1044 null_advlock(struct vop_advlock_args * ap) null_advlock() argument
1070 null_vput_pair(struct vop_vput_pair_args * ap) null_vput_pair() argument
1131 null_getlowvnode(struct vop_getlowvnode_args * ap) null_getlowvnode() argument
[all...]
/freebsd/contrib/pf/libevent/
H A Dlog.c67 va_list ap);
93 va_list ap; in event_snprintf() local
95 va_start(ap, format); in event_snprintf()
96 r = event_vsnprintf(str, size, format, ap); in event_snprintf()
97 va_end(ap); in event_snprintf()
104 va_list ap; in event_err() local
106 va_start(ap, fmt); in event_err()
107 _warn_helper(_EVENT_LOG_ERR, errno, fmt, ap); in event_err()
108 va_end(ap); in event_err()
115 va_list ap; in event_warn() local
[all …]
/freebsd/lib/libc/net/
H A Dnss_compat.c81 int __nss_compat_getgrnam_r(void *retval, void *mdata, va_list ap);
82 int __nss_compat_getgrgid_r(void *retval, void *mdata, va_list ap);
83 int __nss_compat_getgrent_r(void *retval, void *mdata, va_list ap);
84 int __nss_compat_setgrent(void *retval, void *mdata, va_list ap);
85 int __nss_compat_endgrent(void *retval, void *mdata, va_list ap);
86 int __nss_compat_getpwnam_r(void *retval, void *mdata, va_list ap);
87 int __nss_compat_getpwuid_r(void *retval, void *mdata, va_list ap);
88 int __nss_compat_getpwent_r(void *retval, void *mdata, va_list ap);
89 int __nss_compat_setpwent(void *retval, void *mdata, va_list ap);
90 int __nss_compat_endpwent(void *retval, void *mdata, va_list ap);
[all …]
/freebsd/lib/libgeom/
H A Dgeom_ctl.c58 struct gctl_req_arg *ap; in gctl_dump() local
70 ap = &req->arg[i]; in gctl_dump()
71 fprintf(f, " param:\t\"%s\" (%d)", ap->name, ap->nlen); in gctl_dump()
73 ap->flag & GCTL_PARAM_RD ? "R" : "", in gctl_dump()
74 ap->flag & GCTL_PARAM_WR ? "W" : ""); in gctl_dump()
76 if (ap->flag & GCTL_PARAM_ASCII) in gctl_dump()
77 fprintf(f, "%d] = \"%s\"", ap->len, (char *)ap->value); in gctl_dump()
78 else if (ap->len > 0) { in gctl_dump()
79 fprintf(f, "%d] = ", ap->len); in gctl_dump()
81 for (j = 0; j < ap->len; j++) { in gctl_dump()
[all …]
/freebsd/stand/libsa/
H A Dprintf.c57 static int kvprintf(char const *fmt, kvprintf_fn_t *func, void *arg, int radix, va_list ap);
69 va_list ap; in printf() local
72 va_start(ap, fmt); in printf()
73 retval = kvprintf(fmt, putchar_wrapper, NULL, 10, ap); in printf()
74 va_end(ap); in printf()
79 vprintf(const char *fmt, va_list ap) in vprintf() argument
82 return (kvprintf(fmt, putchar_wrapper, NULL, 10, ap)); in vprintf()
89 va_list ap; in sprintf() local
91 va_start(ap, cfmt); in sprintf()
92 retval = kvprintf(cfmt, NULL, (void *)buf, 10, ap); in sprintf()
[all …]
/freebsd/usr.sbin/ypldap/
H A Dlog.c58 va_list ap; in logit() local
60 va_start(ap, fmt); in logit()
61 vlog(pri, fmt, ap); in logit()
62 va_end(ap); in logit()
66 vlog(int pri, const char *fmt, va_list ap) in vlog() argument
73 vfprintf(stderr, fmt, ap); in vlog()
76 vfprintf(stderr, nfmt, ap); in vlog()
81 vsyslog(pri, fmt, ap); in vlog()
89 va_list ap; in log_warn() local
95 va_start(ap, emsg); in log_warn()
[all …]

12345678910>>...53