Symbol: handle
cddl/usr.sbin/zfsd/tests/libmocks.c
54
int zpool_iter(libzfs_handle_t* handle, zpool_iter_f iter, void* arg) {
crypto/heimdal/appl/gssmask/gssmask.c
1042
#define S(a) { e##a, #a, handle##a }
crypto/heimdal/appl/gssmask/gssmask.c
106
struct handle *h;
crypto/heimdal/appl/gssmask/gssmask.c
120
del_handle(struct handle **h, int32_t idx)
crypto/heimdal/appl/gssmask/gssmask.c
129
struct handle *p = *h;
crypto/heimdal/appl/gssmask/gssmask.c
150
find_handle(struct handle *h, int32_t idx, enum handle_type type)
crypto/heimdal/appl/gssmask/gssmask.c
203
int32_t *handle)
crypto/heimdal/appl/gssmask/gssmask.c
211
*handle = 0;
crypto/heimdal/appl/gssmask/gssmask.c
259
*handle = add_handle(c, handle_cred, gcred);
crypto/heimdal/appl/gssmask/gssmask.c
270
handle##h(enum gssMaggotOp op, struct client *c)
crypto/heimdal/appl/gssmask/gssmask.c
286
struct handle *h = c->handles;
crypto/heimdal/appl/gssmask/gssmask.c
47
struct handle *next;
crypto/heimdal/appl/gssmask/gssmask.c
506
int32_t handle;
crypto/heimdal/appl/gssmask/gssmask.c
508
ret32(c, handle);
crypto/heimdal/appl/gssmask/gssmask.c
509
logmessage(c, __FILE__, __LINE__, 0, "toasting %d", handle);
crypto/heimdal/appl/gssmask/gssmask.c
510
del_handle(&c->handles, handle);
crypto/heimdal/appl/gssmask/gssmask.c
520
int32_t gsm_error, flags, handle = 0;
crypto/heimdal/appl/gssmask/gssmask.c
544
gsm_error = acquire_cred(c, principal, opt, &handle);
crypto/heimdal/appl/gssmask/gssmask.c
548
"AcquireCreds handle: %d return code: %d", handle, gsm_error);
crypto/heimdal/appl/gssmask/gssmask.c
55
struct handle *handles;
crypto/heimdal/appl/gssmask/gssmask.c
558
put32(c, handle);
crypto/heimdal/kadmin/rpc.c
1015
krb5_data_free(&gcred.handle);
crypto/heimdal/kadmin/rpc.c
108
krb5_data handle;
crypto/heimdal/kadmin/rpc.c
311
CHECK(ret_data_xdr(sp, &gcred->handle));
crypto/heimdal/kadmin/rpc.c
319
store_gss_init_res(krb5_storage *sp, krb5_data handle,
crypto/heimdal/kadmin/rpc.c
329
ret = store_data_xdr(sp, handle);
crypto/heimdal/kadmin/rpc.c
740
krb5_data handle;
crypto/heimdal/kadmin/rpc.c
886
INSIST(krb5_data_cmp(&gcred.handle, &gctx.handle) == 0);
crypto/heimdal/kadmin/rpc.c
999
CHECK(store_gss_init_res(dreply, gctx.handle,
crypto/heimdal/lib/gssapi/krb5/accept_sec_context.c
203
gsskrb5_cred handle;
crypto/heimdal/lib/gssapi/krb5/accept_sec_context.c
213
handle = (gsskrb5_cred) *delegated_cred_handle;
crypto/heimdal/lib/gssapi/krb5/accept_sec_context.c
215
handle->cred_flags |= GSS_CF_DESTROY_CRED_ON_RELEASE;
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
113
gsskrb5_cred handle
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
142
if (handle->principal) {
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
144
handle->principal,
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
163
} else if (handle->principal == NULL) {
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
164
kret = krb5_copy_principal(context, def_princ, &handle->principal);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
167
} else if (handle->principal != NULL &&
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
168
krb5_principal_compare(context, handle->principal,
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
179
if (handle->principal == NULL) {
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
180
kret = krb5_get_default_principal(context, &handle->principal);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
194
handle->principal,
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
204
handle->principal, keytab,
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
224
handle->lifetime = cred.times.endtime;
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
225
handle->cred_flags |= GSS_CF_DESTROY_CRED_ON_RELEASE;
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
231
handle->principal,
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
232
&handle->lifetime);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
240
handle->ccache = ccache;
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
264
gsskrb5_cred handle
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
277
kret = get_keytab(context, &handle->keytab);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
282
if (handle->principal) {
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
285
kret = krb5_kt_get_entry(context, handle->keytab,
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
286
handle->principal, 0, 0, &entry);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
299
kret = krb5_kt_start_seq_get (context, handle->keytab, &c);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
302
if (krb5_kt_next_entry(context, handle->keytab, &tmp, &c) == 0) {
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
306
krb5_kt_end_seq_get (context, handle->keytab, &c);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
310
if (handle->keytab != NULL)
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
311
krb5_kt_close(context, handle->keytab);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
379
gsskrb5_cred handle;
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
393
handle = calloc(1, sizeof(*handle));
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
394
if (handle == NULL) {
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
399
HEIMDAL_MUTEX_init(&handle->cred_id_mutex);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
403
desired_name, &handle->principal);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
405
HEIMDAL_MUTEX_destroy(&handle->cred_id_mutex);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
406
free(handle);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
414
desired_mech, cred_usage, handle);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
416
HEIMDAL_MUTEX_destroy(&handle->cred_id_mutex);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
417
krb5_free_principal(context, handle->principal);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
418
free(handle);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
426
desired_mech, cred_usage, handle);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
428
HEIMDAL_MUTEX_destroy(&handle->cred_id_mutex);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
429
krb5_free_principal(context, handle->principal);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
430
free(handle);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
434
ret = gss_create_empty_oid_set(minor_status, &handle->mechanisms);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
437
&handle->mechanisms);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
439
if (handle->mechanisms != NULL)
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
440
gss_release_oid_set(NULL, &handle->mechanisms);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
441
HEIMDAL_MUTEX_destroy(&handle->cred_id_mutex);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
442
krb5_free_principal(context, handle->principal);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
443
free(handle);
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
446
handle->usage = cred_usage;
crypto/heimdal/lib/gssapi/krb5/acquire_cred.c
448
*output_cred_handle = (gss_cred_id_t)handle;
crypto/heimdal/lib/gssapi/krb5/add_cred.c
100
if (handle == NULL) {
crypto/heimdal/lib/gssapi/krb5/add_cred.c
106
handle->usage = cred_usage;
crypto/heimdal/lib/gssapi/krb5/add_cred.c
107
handle->lifetime = cred->lifetime;
crypto/heimdal/lib/gssapi/krb5/add_cred.c
108
handle->principal = NULL;
crypto/heimdal/lib/gssapi/krb5/add_cred.c
109
handle->keytab = NULL;
crypto/heimdal/lib/gssapi/krb5/add_cred.c
110
handle->ccache = NULL;
crypto/heimdal/lib/gssapi/krb5/add_cred.c
111
handle->mechanisms = NULL;
crypto/heimdal/lib/gssapi/krb5/add_cred.c
112
HEIMDAL_MUTEX_init(&handle->cred_id_mutex);
crypto/heimdal/lib/gssapi/krb5/add_cred.c
117
&handle->principal);
crypto/heimdal/lib/gssapi/krb5/add_cred.c
120
free(handle);
crypto/heimdal/lib/gssapi/krb5/add_cred.c
137
&handle->keytab);
crypto/heimdal/lib/gssapi/krb5/add_cred.c
159
NULL, &handle->ccache);
crypto/heimdal/lib/gssapi/krb5/add_cred.c
166
handle->ccache);
crypto/heimdal/lib/gssapi/krb5/add_cred.c
186
&handle->ccache);
crypto/heimdal/lib/gssapi/krb5/add_cred.c
194
ret = gss_create_empty_oid_set(minor_status, &handle->mechanisms);
crypto/heimdal/lib/gssapi/krb5/add_cred.c
199
&handle->mechanisms);
crypto/heimdal/lib/gssapi/krb5/add_cred.c
217
*output_cred_handle = (gss_cred_id_t)handle;
crypto/heimdal/lib/gssapi/krb5/add_cred.c
225
if (handle) {
crypto/heimdal/lib/gssapi/krb5/add_cred.c
226
if (handle->principal)
crypto/heimdal/lib/gssapi/krb5/add_cred.c
227
krb5_free_principal(context, handle->principal);
crypto/heimdal/lib/gssapi/krb5/add_cred.c
228
if (handle->keytab)
crypto/heimdal/lib/gssapi/krb5/add_cred.c
229
krb5_kt_close(context, handle->keytab);
crypto/heimdal/lib/gssapi/krb5/add_cred.c
230
if (handle->ccache)
crypto/heimdal/lib/gssapi/krb5/add_cred.c
231
krb5_cc_destroy(context, handle->ccache);
crypto/heimdal/lib/gssapi/krb5/add_cred.c
232
if (handle->mechanisms)
crypto/heimdal/lib/gssapi/krb5/add_cred.c
233
gss_release_oid_set(NULL, &handle->mechanisms);
crypto/heimdal/lib/gssapi/krb5/add_cred.c
234
free(handle);
crypto/heimdal/lib/gssapi/krb5/add_cred.c
51
gsskrb5_cred cred, handle;
crypto/heimdal/lib/gssapi/krb5/add_cred.c
54
handle = NULL;
crypto/heimdal/lib/gssapi/krb5/add_cred.c
99
handle = calloc(1, sizeof(*handle));
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
108
handle->principal,
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
111
krb5_free_principal(context, handle->principal);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
112
free(handle);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
122
handle->principal,
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
123
&handle->lifetime);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
125
krb5_free_principal(context, handle->principal);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
126
free(handle);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
135
kret = krb5_cc_resolve(context, str, &handle->ccache);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
145
handle->usage |= GSS_C_ACCEPT;
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
147
if (keytab_principal && handle->principal == NULL) {
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
150
&handle->principal);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
159
kret = krb5_kt_resolve(context, str, &handle->keytab);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
167
ret = gss_create_empty_oid_set(minor_status, &handle->mechanisms);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
170
&handle->mechanisms);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
178
*cred = (gss_cred_id_t)handle;
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
182
gss_release_oid_set(minor_status, &handle->mechanisms);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
183
if (handle->ccache)
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
184
krb5_cc_close(context, handle->ccache);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
185
if (handle->keytab)
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
186
krb5_kt_close(context, handle->keytab);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
187
if (handle->principal)
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
188
krb5_free_principal(context, handle->principal);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
189
HEIMDAL_MUTEX_destroy(&handle->cred_id_mutex);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
190
free(handle);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
74
gsskrb5_cred handle;
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
81
handle = calloc(1, sizeof(*handle));
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
82
if (handle == NULL) {
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
87
HEIMDAL_MUTEX_init(&handle->cred_id_mutex);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
89
handle->usage = 0;
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
94
handle->usage |= GSS_C_INITIATE;
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
97
&handle->principal);
crypto/heimdal/lib/gssapi/krb5/copy_ccache.c
99
free(handle);
crypto/heimdal/lib/gssapi/krb5/creds.c
164
gsskrb5_cred handle;
crypto/heimdal/lib/gssapi/krb5/creds.c
240
handle = calloc(1, sizeof(*handle));
crypto/heimdal/lib/gssapi/krb5/creds.c
241
if (handle == NULL) {
crypto/heimdal/lib/gssapi/krb5/creds.c
247
handle->usage = GSS_C_INITIATE;
crypto/heimdal/lib/gssapi/krb5/creds.c
248
krb5_cc_get_principal(context, id, &handle->principal);
crypto/heimdal/lib/gssapi/krb5/creds.c
249
handle->ccache = id;
crypto/heimdal/lib/gssapi/krb5/creds.c
250
handle->cred_flags = flags;
crypto/heimdal/lib/gssapi/krb5/creds.c
252
*cred_handle = (gss_cred_id_t)handle;
crypto/heimdal/lib/gssapi/krb5/creds.c
41
gsskrb5_cred handle = (gsskrb5_cred)cred_handle;
crypto/heimdal/lib/gssapi/krb5/creds.c
51
if (handle->usage != GSS_C_INITIATE && handle->usage != GSS_C_BOTH) {
crypto/heimdal/lib/gssapi/krb5/creds.c
62
type = krb5_cc_get_type(context, handle->ccache);
crypto/heimdal/lib/gssapi/krb5/creds.c
72
ret = _krb5_get_krbtgt(context, handle->ccache,
crypto/heimdal/lib/gssapi/krb5/creds.c
73
handle->principal->realm,
crypto/heimdal/lib/gssapi/krb5/creds.c
97
ret = krb5_cc_get_full_name(context, handle->ccache, &str);
crypto/heimdal/lib/hx509/ks_keychain.c
170
CSSM_CC_HANDLE handle = 0;
crypto/heimdal/lib/hx509/ks_keychain.c
195
&handle);
crypto/heimdal/lib/hx509/ks_keychain.c
207
cret = CSSM_DecryptData(handle, &in, 1, &out, 1, &outlen, &rem);
crypto/heimdal/lib/hx509/ks_keychain.c
214
if(handle)
crypto/heimdal/lib/hx509/ks_keychain.c
215
CSSM_DeleteContext(handle);
crypto/heimdal/lib/hx509/softp11.c
183
object_handle_to_object(CK_OBJECT_HANDLE handle,
crypto/heimdal/lib/hx509/softp11.c
186
int i = HANDLE_OBJECT_ID(handle);
crypto/heimdal/lib/hx509/softp11.c
193
if (soft_token.object.objs[i]->object_handle != handle)
crypto/heimdal/lib/kadm5/init_c.c
548
_kadm5_connect(void *handle)
crypto/heimdal/lib/kadm5/init_c.c
550
kadm5_client_context *ctx = handle;
crypto/heimdal/lib/kadm5/password_quality.c
261
void *handle;
crypto/heimdal/lib/kadm5/password_quality.c
287
handle = dlopen(check_library, RTLD_NOW);
crypto/heimdal/lib/kadm5/password_quality.c
288
if(handle == NULL) {
crypto/heimdal/lib/kadm5/password_quality.c
292
version = (int *) dlsym(handle, "version");
crypto/heimdal/lib/kadm5/password_quality.c
296
dlclose(handle);
crypto/heimdal/lib/kadm5/password_quality.c
303
dlclose(handle);
crypto/heimdal/lib/kadm5/password_quality.c
306
sym = dlsym(handle, check_function);
crypto/heimdal/lib/kadm5/password_quality.c
311
dlclose(handle);
crypto/heimdal/lib/kadm5/password_quality.c
324
void *handle;
crypto/heimdal/lib/kadm5/password_quality.c
327
handle = dlopen(check_library, RTLD_NOW);
crypto/heimdal/lib/kadm5/password_quality.c
328
if(handle == NULL) {
crypto/heimdal/lib/kadm5/password_quality.c
332
v = (struct kadm5_pw_policy_verifier *) dlsym(handle, "kadm5_password_verifier");
crypto/heimdal/lib/kadm5/password_quality.c
337
dlclose(handle);
crypto/heimdal/lib/kadm5/password_quality.c
344
dlclose(handle);
crypto/heimdal/lib/kadm5/password_quality.c
354
dlclose(handle);
crypto/heimdal/lib/kadm5/password_quality.c
361
dlclose(handle);
crypto/heimdal/lib/krb5/changepw.c
516
krb5_krbhst_handle handle = NULL;
crypto/heimdal/lib/krb5/changepw.c
535
ret = krb5_krbhst_init (context, realm, KRB5_KRBHST_CHANGEPW, &handle);
crypto/heimdal/lib/krb5/changepw.c
539
while (!done && (ret = krb5_krbhst_next(context, handle, &hi)) == 0) {
crypto/heimdal/lib/krb5/changepw.c
646
krb5_krbhst_free (context, handle);
crypto/heimdal/lib/krb5/krbhst-test.c
87
krb5_krbhst_handle handle;
crypto/heimdal/lib/krb5/krbhst-test.c
93
krb5_krbhst_init(context, argv[i], types[j], &handle);
crypto/heimdal/lib/krb5/krbhst-test.c
94
while(krb5_krbhst_next_as_string(context, handle,
crypto/heimdal/lib/krb5/krbhst-test.c
97
krb5_krbhst_reset(context, handle);
crypto/heimdal/lib/krb5/krbhst.c
1000
handle->index = &handle->hosts;
crypto/heimdal/lib/krb5/krbhst.c
1004
krb5_krbhst_free(krb5_context context, krb5_krbhst_handle handle)
crypto/heimdal/lib/krb5/krbhst.c
1008
if (handle == NULL)
crypto/heimdal/lib/krb5/krbhst.c
1011
for (h = handle->hosts; h != NULL; h = next) {
crypto/heimdal/lib/krb5/krbhst.c
1016
free(handle->realm);
crypto/heimdal/lib/krb5/krbhst.c
1017
free(handle);
crypto/heimdal/lib/krb5/krbhst.c
1028
krb5_krbhst_handle handle;
crypto/heimdal/lib/krb5/krbhst.c
1032
ret = krb5_krbhst_init(context, realm, type, &handle);
crypto/heimdal/lib/krb5/krbhst.c
1036
while(krb5_krbhst_next(context, handle, &hostinfo) == 0)
crypto/heimdal/lib/krb5/krbhst.c
1045
krb5_krbhst_free(context, handle);
crypto/heimdal/lib/krb5/krbhst.c
1049
krb5_krbhst_reset(context, handle);
crypto/heimdal/lib/krb5/krbhst.c
1051
while(krb5_krbhst_next_as_string(context, handle,
crypto/heimdal/lib/krb5/krbhst.c
1055
krb5_krbhst_free(context, handle);
crypto/heimdal/lib/krb5/krbhst.c
1060
krb5_krbhst_free(context, handle);
crypto/heimdal/lib/krb5/krbhst.c
193
_krb5_krbhst_get_realm(krb5_krbhst_handle handle)
crypto/heimdal/lib/krb5/krbhst.c
195
return handle->realm;
crypto/heimdal/lib/krb5/krbhst.c
908
krb5_krbhst_handle *handle)
crypto/heimdal/lib/krb5/krbhst.c
910
return krb5_krbhst_init_flags(context, realm, type, 0, handle);
crypto/heimdal/lib/krb5/krbhst.c
918
krb5_krbhst_handle *handle)
crypto/heimdal/lib/krb5/krbhst.c
958
*handle = kd;
crypto/heimdal/lib/krb5/krbhst.c
968
krb5_krbhst_handle handle,
crypto/heimdal/lib/krb5/krbhst.c
971
if(get_next(handle, host))
crypto/heimdal/lib/krb5/krbhst.c
974
return (*handle->get_next)(context, handle, host);
crypto/heimdal/lib/krb5/krbhst.c
984
krb5_krbhst_handle handle,
crypto/heimdal/lib/krb5/krbhst.c
990
ret = krb5_krbhst_next(context, handle, &host);
crypto/heimdal/lib/krb5/krbhst.c
998
krb5_krbhst_reset(krb5_context context, krb5_krbhst_handle handle)
crypto/heimdal/lib/krb5/send_to_kdc.c
369
krb5_krbhst_handle handle,
crypto/heimdal/lib/krb5/send_to_kdc.c
381
while (krb5_krbhst_next(context, handle, &hi) == 0) {
crypto/heimdal/lib/krb5/send_to_kdc.c
386
hi->hostname, _krb5_krbhst_get_realm(handle));
crypto/heimdal/lib/krb5/send_to_kdc.c
445
krb5_krbhst_reset(context, handle);
crypto/heimdal/lib/krb5/send_to_kdc.c
452
_krb5_krbhst_get_realm(handle), ret);
crypto/heimdal/lib/krb5/send_to_kdc.c
584
krb5_krbhst_handle handle = NULL;
crypto/heimdal/lib/krb5/send_to_kdc.c
615
if (handle == NULL) {
crypto/heimdal/lib/krb5/send_to_kdc.c
617
ctx->flags, &handle);
crypto/heimdal/lib/krb5/send_to_kdc.c
625
ret = krb5_sendto(context, send_data, handle, receive);
crypto/heimdal/lib/krb5/send_to_kdc.c
634
krb5_krbhst_free(context, handle);
crypto/heimdal/lib/krb5/send_to_kdc.c
635
handle = NULL;
crypto/heimdal/lib/krb5/send_to_kdc.c
638
if (handle)
crypto/heimdal/lib/krb5/send_to_kdc.c
639
krb5_krbhst_free(context, handle);
crypto/heimdal/lib/krb5/test_plugin.c
109
&handle);
crypto/heimdal/lib/krb5/test_plugin.c
114
while(krb5_krbhst_next_as_string(context, handle, host, sizeof(host)) == 0){
crypto/heimdal/lib/krb5/test_plugin.c
122
krb5_krbhst_free(context, handle);
crypto/heimdal/lib/krb5/test_plugin.c
89
krb5_krbhst_handle handle;
crypto/heimdal/lib/roken/resolve.c
530
dns_handle_t handle;
crypto/heimdal/lib/roken/resolve.c
532
handle = dns_open(NULL);
crypto/heimdal/lib/roken/resolve.c
533
if (handle == NULL)
crypto/heimdal/lib/roken/resolve.c
537
struct __res_state *handle = &state;
crypto/heimdal/lib/roken/resolve.c
540
if(res_ninit(handle))
crypto/heimdal/lib/roken/resolve.c
552
dns_set_debug(handle, 1);
crypto/heimdal/lib/roken/resolve.c
561
resolve_free_handle(handle);
crypto/heimdal/lib/roken/resolve.c
565
size = resolve_search(handle, domain, rr_class, rr_type, reply, len);
crypto/heimdal/lib/roken/resolve.c
583
resolve_free_handle(handle);
crypto/heimdal/lib/roken/resolve.c
593
resolve_free_handle(handle);
crypto/krb5/src/appl/gss-sample/gss-client.c
827
uintptr_t handle = _beginthread(worker_bee, 0, (void *) 0);
crypto/krb5/src/appl/gss-sample/gss-client.c
828
if (handle == (uintptr_t) - 1) {
crypto/krb5/src/appl/gss-sample/gss-server.c
794
uintptr_t handle =
crypto/krb5/src/appl/gss-sample/gss-server.c
796
if (handle == (uintptr_t) - 1) {
crypto/krb5/src/include/k5-tls.h
73
(*k5_tls_write_fn)(krb5_context context, k5_tls_handle handle,
crypto/krb5/src/include/k5-tls.h
88
(*k5_tls_read_fn)(krb5_context context, k5_tls_handle handle, void *data,
crypto/krb5/src/include/k5-tls.h
93
(*k5_tls_free_handle_fn)(krb5_context context, k5_tls_handle handle);
crypto/krb5/src/include/krb5/kdcauthdata_plugin.h
125
krb5_kdcauthdata_handle_fn handle;
crypto/krb5/src/include/net-server.h
64
krb5_error_code loop_setup_network(verto_ctx *ctx, void *handle,
crypto/krb5/src/include/net-server.h
67
krb5_error_code loop_setup_signals(verto_ctx *ctx, void *handle,
crypto/krb5/src/include/net-server.h
84
void dispatch(void *handle, const struct sockaddr *local_addr,
crypto/krb5/src/include/net-server.h
87
krb5_error_code make_toolong_error (void *handle, krb5_data **);
crypto/krb5/src/include/net-server.h
95
krb5_context get_context(void *handle);
crypto/krb5/src/kadmin/cli/kadmin.c
1339
retval = randkey_princ(handle, princ.principal, FALSE, n_ks_tuple,
crypto/krb5/src/kadmin/cli/kadmin.c
1348
retval = kadm5_modify_principal(handle, &princ, mask);
crypto/krb5/src/kadmin/cli/kadmin.c
1395
retval = kadm5_get_principal(handle, kprinc, &oldprinc,
crypto/krb5/src/kadmin/cli/kadmin.c
1402
kadm5_free_principal_ent(handle, &oldprinc);
crypto/krb5/src/kadmin/cli/kadmin.c
1421
retval = kadm5_modify_principal(handle, &princ, mask);
crypto/krb5/src/kadmin/cli/kadmin.c
1465
retval = kadm5_get_principal(handle, princ, &dprinc,
crypto/krb5/src/kadmin/cli/kadmin.c
1567
kadm5_free_principal_ent(handle, &dprinc);
crypto/krb5/src/kadmin/cli/kadmin.c
1585
retval = kadm5_get_principals(handle, expr, &names, &count);
crypto/krb5/src/kadmin/cli/kadmin.c
1592
kadm5_free_name_list(handle, names, count);
crypto/krb5/src/kadmin/cli/kadmin.c
1724
retval = kadm5_create_policy(handle, &policy, mask);
crypto/krb5/src/kadmin/cli/kadmin.c
1745
retval = kadm5_modify_policy(handle, &policy, mask);
crypto/krb5/src/kadmin/cli/kadmin.c
1771
retval = kadm5_delete_policy(handle, argv[argc - 1]);
crypto/krb5/src/kadmin/cli/kadmin.c
1788
retval = kadm5_get_policy(handle, argv[argc - 1], &policy);
crypto/krb5/src/kadmin/cli/kadmin.c
1821
kadm5_free_policy_ent(handle, &policy);
crypto/krb5/src/kadmin/cli/kadmin.c
1836
retval = kadm5_get_policies(handle, expr, &names, &count);
crypto/krb5/src/kadmin/cli/kadmin.c
1843
kadm5_free_name_list(handle, names, count);
crypto/krb5/src/kadmin/cli/kadmin.c
1858
retval = kadm5_get_privs(handle, &plist);
crypto/krb5/src/kadmin/cli/kadmin.c
1906
retval = kadm5_purgekeys(handle, princ, keepkvno);
crypto/krb5/src/kadmin/cli/kadmin.c
1950
retval = kadm5_get_strings(handle, princ, &strings, &count);
crypto/krb5/src/kadmin/cli/kadmin.c
1961
kadm5_free_strings(handle, strings, count);
crypto/krb5/src/kadmin/cli/kadmin.c
1996
retval = kadm5_set_string(handle, princ, key, value);
crypto/krb5/src/kadmin/cli/kadmin.c
2036
retval = kadm5_set_string(handle, princ, key, NULL);
crypto/krb5/src/kadmin/cli/kadmin.c
250
return kadm5_create_principal_3(handle, princ, mask, n_ks, ks, pass);
crypto/krb5/src/kadmin/cli/kadmin.c
252
return kadm5_create_principal(handle, princ, mask, pass);
crypto/krb5/src/kadmin/cli/kadmin.c
281
if (kadm5_get_policy(handle, (char *)name, &pol) != 0)
crypto/krb5/src/kadmin/cli/kadmin.c
283
kadm5_free_policy_ent(handle, &pol);
crypto/krb5/src/kadmin/cli/kadmin.c
54
void *handle = NULL;
crypto/krb5/src/kadmin/cli/kadmin.c
553
KADM5_API_VERSION_4, db_args, &handle);
crypto/krb5/src/kadmin/cli/kadmin.c
559
KADM5_API_VERSION_4, db_args, &handle);
crypto/krb5/src/kadmin/cli/kadmin.c
570
KADM5_API_VERSION_4, db_args, &handle);
crypto/krb5/src/kadmin/cli/kadmin.c
577
&handle);
crypto/krb5/src/kadmin/cli/kadmin.c
599
retval = kadm5_init_iprop(handle, 0);
crypto/krb5/src/kadmin/cli/kadmin.c
615
retval = kadm5_unlock(handle);
crypto/krb5/src/kadmin/cli/kadmin.c
623
kadm5_destroy(handle);
crypto/krb5/src/kadmin/cli/kadmin.c
642
retval = kadm5_lock(handle);
crypto/krb5/src/kadmin/cli/kadmin.c
657
retval = kadm5_unlock(handle);
crypto/krb5/src/kadmin/cli/kadmin.c
698
retval = kadm5_delete_principal(handle, princ);
crypto/krb5/src/kadmin/cli/kadmin.c
759
retval = kadm5_rename_principal(handle, oprinc, nprinc);
crypto/krb5/src/kadmin/cli/kadmin.c
810
retval = kadm5_create_alias(handle, alias, target);
crypto/krb5/src/kadmin/cli/kadmin.c
919
retval = kadm5_chpass_principal_3(handle, princ, keepold,
crypto/krb5/src/kadmin/cli/kadmin.c
922
retval = kadm5_chpass_principal(handle, princ, pwarg);
crypto/krb5/src/kadmin/cli/kadmin.c
931
retval = randkey_princ(handle, princ, keepold, n_ks_tuple, ks_tuple,
crypto/krb5/src/kadmin/cli/kadmin.c
954
retval = kadm5_chpass_principal_3(handle, princ, keepold,
crypto/krb5/src/kadmin/cli/kadmin.c
958
retval = kadm5_chpass_principal(handle, princ, newpw);
crypto/krb5/src/kadmin/cli/kadmin.h
96
extern void *handle;
crypto/krb5/src/kadmin/cli/keytab.c
179
code = kadm5_get_principals(handle, *argv, &princs, &num);
crypto/krb5/src/kadmin/cli/keytab.c
188
add_principal(handle, keytab_str, keytab, keepold,
crypto/krb5/src/kadmin/cli/keytab.c
190
kadm5_free_name_list(handle, princs, num);
crypto/krb5/src/kadmin/cli/keytab.c
192
add_principal(handle, keytab_str, keytab, keepold,
crypto/krb5/src/kadmin/cli/keytab.c
320
code = kadm5_get_principal_keys(handle, princ, 0, &key_data, &nkeys);
crypto/krb5/src/kadmin/cli/keytab.c
322
code = fetch_new_keys(handle, princ, keepold, n_ks_tuple, ks_tuple,
crypto/krb5/src/kadmin/dbutil/kadm5_create.c
104
&handle))) {
crypto/krb5/src/kadmin/dbutil/kadm5_create.c
110
retval = add_admin_princs(handle, context, params->realm);
crypto/krb5/src/kadmin/dbutil/kadm5_create.c
112
kadm5_destroy(handle);
crypto/krb5/src/kadmin/dbutil/kadm5_create.c
139
static int add_admin_princs(void *handle, krb5_context context, char *realm)
crypto/krb5/src/kadmin/dbutil/kadm5_create.c
143
if ((ret = add_admin_princ(handle, context,
crypto/krb5/src/kadmin/dbutil/kadm5_create.c
150
return add_admin_princ(handle, context, KADM5_CHANGEPW_SERVICE, realm,
crypto/krb5/src/kadmin/dbutil/kadm5_create.c
185
int add_admin_princ(void *handle, krb5_context context,
crypto/krb5/src/kadmin/dbutil/kadm5_create.c
213
ret = kadm5_create_principal(handle, &ent, flags, NULL);
crypto/krb5/src/kadmin/dbutil/kadm5_create.c
47
static int add_admin_princ(void *handle, krb5_context context,
crypto/krb5/src/kadmin/dbutil/kadm5_create.c
49
static int add_admin_princs(void *handle, krb5_context context, char *realm);
crypto/krb5/src/kadmin/dbutil/kadm5_create.c
95
void *handle;
crypto/krb5/src/kadmin/server/ipropd_svc.c
152
kadm5_server_handle_t handle = global_server_handle;
crypto/krb5/src/kadmin/server/ipropd_svc.c
162
if (!handle) {
crypto/krb5/src/kadmin/server/ipropd_svc.c
191
if (!iprop_acl_check(handle->context, client_name)) {
crypto/krb5/src/kadmin/server/ipropd_svc.c
203
kret = ulog_get_entries(handle->context, arg, &ret);
crypto/krb5/src/kadmin/server/ipropd_svc.c
265
kadm5_server_handle_t handle = global_server_handle;
crypto/krb5/src/kadmin/server/ipropd_svc.c
279
if (!handle) {
crypto/krb5/src/kadmin/server/ipropd_svc.c
312
if (!iprop_acl_check(handle->context, client_name)) {
crypto/krb5/src/kadmin/server/ipropd_svc.c
344
handle->params.realm, vers, dump_file) < 0) {
crypto/krb5/src/kadmin/server/ipropd_svc.c
400
whoami, handle->params.realm, dump_file, kprop_port,
crypto/krb5/src/kadmin/server/ipropd_svc.c
402
pret = execl(kprop, "kprop", "-r", handle->params.realm, "-f",
crypto/krb5/src/kadmin/server/ipropd_svc.c
406
whoami, handle->params.realm, dump_file, clhost);
crypto/krb5/src/kadmin/server/ipropd_svc.c
407
pret = execl(kprop, "kprop", "-r", handle->params.realm, "-f",
crypto/krb5/src/kadmin/server/ipropd_svc.c
474
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/ipropd_svc.c
479
handle = (kadm5_server_handle_t)global_server_handle;
crypto/krb5/src/kadmin/server/ipropd_svc.c
496
kctx = handle->context;
crypto/krb5/src/kadmin/server/ipropd_svc.c
513
if (strncmp(handle->params.realm, realm->data, realm->length) == 0
crypto/krb5/src/kadmin/server/kadm_rpc_svc.c
291
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/kadm_rpc_svc.c
296
handle = (kadm5_server_handle_t)global_server_handle;
crypto/krb5/src/kadmin/server/kadm_rpc_svc.c
312
kctx = handle->context;
crypto/krb5/src/kadmin/server/kadm_rpc_svc.c
330
success = data_eq_string(*realm, handle->params.realm) &&
crypto/krb5/src/kadmin/server/misc.c
109
(void) kadm5_free_policy_ent(handle->lhandle, &pol);
crypto/krb5/src/kadmin/server/misc.c
110
(void) kadm5_free_principal_ent(handle->lhandle, &princ);
crypto/krb5/src/kadmin/server/misc.c
114
ret = kadm5_free_policy_ent(handle->lhandle, &pol);
crypto/krb5/src/kadmin/server/misc.c
116
(void) kadm5_free_principal_ent(handle->lhandle, &princ);
crypto/krb5/src/kadmin/server/misc.c
121
return kadm5_free_principal_ent(handle->lhandle, &princ);
crypto/krb5/src/kadmin/server/misc.c
134
make_toolong_error (void *handle, krb5_data **out)
crypto/krb5/src/kadmin/server/misc.c
139
kadm5_server_handle_t server_handle = *(void **)handle;
crypto/krb5/src/kadmin/server/misc.c
171
krb5_context get_context(void *handle)
crypto/krb5/src/kadmin/server/misc.c
173
kadm5_server_handle_t server_handle = *(void **)handle;
crypto/krb5/src/kadmin/server/misc.c
22
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/kadmin/server/misc.c
33
if (krb5_principal_compare(handle->context, client, target)) {
crypto/krb5/src/kadmin/server/misc.c
45
if (auth(handle->context, OP_CPW, client, target,
crypto/krb5/src/kadmin/server/misc.c
67
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/kadmin/server/misc.c
72
ret = krb5_timeofday(handle->context, &now);
crypto/krb5/src/kadmin/server/misc.c
76
ret = kadm5_get_principal(handle->lhandle, principal,
crypto/krb5/src/kadmin/server/misc.c
83
if((ret=kadm5_get_policy(handle->lhandle,
crypto/krb5/src/kadmin/server/misc.c
85
(void) kadm5_free_principal_ent(handle->lhandle, &princ);
crypto/krb5/src/kadmin/server/schpw.c
401
dispatch(void *handle, const struct sockaddr *local_addr,
crypto/krb5/src/kadmin/server/schpw.c
407
kadm5_server_handle_t server_handle = *(void **)handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1009
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1012
ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
1026
stub_auth(handle, OP_SETKEY, rec.principal, NULL, NULL, NULL)) {
crypto/krb5/src/kadmin/server/server_stubs.c
1027
keepold = clamp_self_keepold(handle, rec.principal, arg->keepold);
crypto/krb5/src/kadmin/server/server_stubs.c
1028
ret->code = kadm5_setkey_principal_3(handle, rec.principal, keepold,
crypto/krb5/src/kadmin/server/server_stubs.c
1039
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
1045
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
1049
kadm5_free_principal_ent(handle, &rec);
crypto/krb5/src/kadmin/server/server_stubs.c
1050
stub_cleanup(handle, prime_arg, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
1063
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1066
ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
1080
stub_auth(handle, OP_SETKEY, rec.principal, NULL, NULL, NULL)) {
crypto/krb5/src/kadmin/server/server_stubs.c
1081
keepold = clamp_self_keepold(handle, rec.principal, arg->keepold);
crypto/krb5/src/kadmin/server/server_stubs.c
1082
ret->code = kadm5_setkey_principal_4(handle, rec.principal, keepold,
crypto/krb5/src/kadmin/server/server_stubs.c
1092
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
1098
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
1102
kadm5_free_principal_ent(handle, &rec);
crypto/krb5/src/kadmin/server/server_stubs.c
1103
stub_cleanup(handle, prime_arg, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
1110
chrand_check_lockdown(kadm5_server_handle_t handle, kadm5_principal_ent_t rec,
crypto/krb5/src/kadmin/server/server_stubs.c
1121
krb5_free_keyblock_contents(handle->context, &((*keys)[i]));
crypto/krb5/src/kadmin/server/server_stubs.c
113
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1137
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1140
ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
1148
if (changepw_not_self(handle, rqstp, rec.principal) ||
crypto/krb5/src/kadmin/server/server_stubs.c
1149
!stub_auth(handle, OP_CHRAND, rec.principal, NULL, NULL, NULL)) {
crypto/krb5/src/kadmin/server/server_stubs.c
1154
ret->code = check_self_keychange(handle, rqstp, rec.principal);
crypto/krb5/src/kadmin/server/server_stubs.c
1156
ret->code = kadm5_randkey_principal(handle, rec.principal,
crypto/krb5/src/kadmin/server/server_stubs.c
1162
ret->code = chrand_check_lockdown(handle, &rec, &k, &nkeys);
crypto/krb5/src/kadmin/server/server_stubs.c
117
if (! (handle = (kadm5_server_handle_t)
crypto/krb5/src/kadmin/server/server_stubs.c
1171
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
1177
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
118
malloc(sizeof(*handle))))
crypto/krb5/src/kadmin/server/server_stubs.c
1181
kadm5_free_principal_ent(handle, &rec);
crypto/krb5/src/kadmin/server/server_stubs.c
1182
stub_cleanup(handle, prime_arg, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
1197
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1200
ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
1208
if (changepw_not_self(handle, rqstp, rec.principal) ||
crypto/krb5/src/kadmin/server/server_stubs.c
1209
!stub_auth(handle, OP_CHRAND, rec.principal, NULL, NULL, NULL)) {
crypto/krb5/src/kadmin/server/server_stubs.c
121
*handle = *(kadm5_server_handle_t)global_server_handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1214
ret->code = check_self_keychange(handle, rqstp, rec.principal);
crypto/krb5/src/kadmin/server/server_stubs.c
1216
keepold = clamp_self_keepold(handle, rec.principal, arg->keepold);
crypto/krb5/src/kadmin/server/server_stubs.c
1217
ret->code = kadm5_randkey_principal_3(handle, rec.principal,
crypto/krb5/src/kadmin/server/server_stubs.c
122
handle->api_version = api_version;
crypto/krb5/src/kadmin/server/server_stubs.c
1224
ret->code = chrand_check_lockdown(handle, &rec, &k, &nkeys);
crypto/krb5/src/kadmin/server/server_stubs.c
1233
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
1239
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
124
if (! gss_to_krb5_name(handle, rqst2name(rqstp),
crypto/krb5/src/kadmin/server/server_stubs.c
1243
kadm5_free_principal_ent(handle, &rec);
crypto/krb5/src/kadmin/server/server_stubs.c
1244
stub_cleanup(handle, prime_arg, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
125
&handle->current_caller)) {
crypto/krb5/src/kadmin/server/server_stubs.c
1254
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1257
ret->code = stub_setup(arg->api_version, rqstp, NULL, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
126
free(handle);
crypto/krb5/src/kadmin/server/server_stubs.c
1266
!stub_auth_pol(handle, OP_ADDPOL, arg->rec.policy,
crypto/krb5/src/kadmin/server/server_stubs.c
1273
ret->code = kadm5_create_policy(handle, &arg->rec, arg->mask);
crypto/krb5/src/kadmin/server/server_stubs.c
1275
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
1282
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
1286
stub_cleanup(handle, NULL, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
1296
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1299
ret->code = stub_setup(arg->api_version, rqstp, NULL, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
130
*out_handle = handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1308
!stub_auth(handle, OP_DELPOL, NULL, NULL, arg->name, NULL)) {
crypto/krb5/src/kadmin/server/server_stubs.c
1313
ret->code = kadm5_delete_policy(handle, arg->name);
crypto/krb5/src/kadmin/server/server_stubs.c
1315
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
1322
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
1326
stub_cleanup(handle, NULL, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
1336
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1339
ret->code = stub_setup(arg->api_version, rqstp, NULL, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
1348
!stub_auth_pol(handle, OP_MODPOL, arg->rec.policy,
crypto/krb5/src/kadmin/server/server_stubs.c
1354
ret->code = kadm5_modify_policy(handle, &arg->rec, arg->mask);
crypto/krb5/src/kadmin/server/server_stubs.c
1356
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
1363
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
1367
stub_cleanup(handle, NULL, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
1379
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1384
ret->code = stub_setup(arg->api_version, rqstp, NULL, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
1395
ret2 = kadm5_get_principal(handle->lhandle, handle->current_caller,
crypto/krb5/src/kadmin/server/server_stubs.c
1403
!stub_auth(handle, OP_GETPOL, NULL, NULL, arg->name, cpolicy)) {
crypto/krb5/src/kadmin/server/server_stubs.c
1407
ret->code = kadm5_get_policy(handle, arg->name, &ret->rec);
crypto/krb5/src/kadmin/server/server_stubs.c
1409
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
1415
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
1419
(void)kadm5_free_principal_ent(handle->lhandle, &caller_ent);
crypto/krb5/src/kadmin/server/server_stubs.c
142
static void free_server_handle(kadm5_server_handle_t handle)
crypto/krb5/src/kadmin/server/server_stubs.c
1420
stub_cleanup(handle, NULL, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
1430
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1433
ret->code = stub_setup(arg->api_version, rqstp, NULL, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
144
if (!handle)
crypto/krb5/src/kadmin/server/server_stubs.c
1444
!stub_auth(handle, OP_LISTPOLS, NULL, NULL, NULL, NULL)) {
crypto/krb5/src/kadmin/server/server_stubs.c
1449
ret->code = kadm5_get_policies(handle, arg->exp, &ret->pols,
crypto/krb5/src/kadmin/server/server_stubs.c
1452
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
1458
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
146
krb5_free_principal(handle->context, handle->current_caller);
crypto/krb5/src/kadmin/server/server_stubs.c
1462
stub_cleanup(handle, NULL, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
147
free(handle);
crypto/krb5/src/kadmin/server/server_stubs.c
1471
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1474
ret->code = stub_setup(*arg, rqstp, NULL, &handle, &ret->api_version,
crypto/krb5/src/kadmin/server/server_stubs.c
1479
ret->code = kadm5_get_privs(handle, &ret->privs);
crypto/krb5/src/kadmin/server/server_stubs.c
1481
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
1487
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
1490
stub_cleanup(handle, NULL, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
1501
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1505
ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
1514
!stub_auth(handle, OP_PURGEKEYS, rec.principal, NULL, NULL, NULL)) {
crypto/krb5/src/kadmin/server/server_stubs.c
1518
ret->code = kadm5_purgekeys(handle, rec.principal, arg->keepkvno);
crypto/krb5/src/kadmin/server/server_stubs.c
1520
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
1526
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
1530
kadm5_free_principal_ent(handle, &rec);
crypto/krb5/src/kadmin/server/server_stubs.c
1531
stub_cleanup(handle, prime_arg, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
1542
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1545
ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
1552
!stub_auth(handle, OP_GETSTRS, rec.principal, NULL, NULL, NULL)) {
crypto/krb5/src/kadmin/server/server_stubs.c
1557
ret->code = kadm5_get_strings(handle, rec.principal, &ret->strings,
crypto/krb5/src/kadmin/server/server_stubs.c
1560
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
1566
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
1570
kadm5_free_principal_ent(handle, &rec);
crypto/krb5/src/kadmin/server/server_stubs.c
1571
stub_cleanup(handle, prime_arg, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
1582
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1585
ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
1592
!stub_auth(handle, OP_SETSTR, rec.principal, NULL,
crypto/krb5/src/kadmin/server/server_stubs.c
1598
ret->code = kadm5_set_string(handle, rec.principal,
crypto/krb5/src/kadmin/server/server_stubs.c
1601
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
1607
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
1611
kadm5_free_principal_ent(handle, &rec);
crypto/krb5/src/kadmin/server/server_stubs.c
1612
stub_cleanup(handle, prime_arg, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
1621
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1626
ret->code = stub_setup(*arg, rqstp, NULL, &handle, &ret->api_version,
crypto/krb5/src/kadmin/server/server_stubs.c
1632
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
1650
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
1653
stub_cleanup(handle, NULL, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
1675
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1678
ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
1685
stub_auth(handle, OP_EXTRACT, rec.principal, NULL, NULL, NULL)) {
crypto/krb5/src/kadmin/server/server_stubs.c
1686
ret->code = kadm5_get_principal_keys(handle, rec.principal, arg->kvno,
crypto/krb5/src/kadmin/server/server_stubs.c
1697
kadm5_free_kadm5_key_data(handle->context, ret->n_key_data,
crypto/krb5/src/kadmin/server/server_stubs.c
1711
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
1717
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
1721
kadm5_free_principal_ent(handle, &rec);
crypto/krb5/src/kadmin/server/server_stubs.c
1722
stub_cleanup(handle, prime_arg, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
1732
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
1735
ret->code = stub_setup(arg->api_version, rqstp, arg->alias, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
1742
!stub_auth(handle, OP_ADDALIAS, arg->alias, arg->target, NULL, NULL)) {
crypto/krb5/src/kadmin/server/server_stubs.c
1747
ret->code = kadm5_create_alias(handle, arg->alias, arg->target);
crypto/krb5/src/kadmin/server/server_stubs.c
1749
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
1753
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
1757
stub_cleanup(handle, prime_arg, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
219
static int gss_to_krb5_name(kadm5_server_handle_t handle,
crypto/krb5/src/kadmin/server/server_stubs.c
235
success = (krb5_parse_name(handle->context, s, princ) == 0);
crypto/krb5/src/kadmin/server/server_stubs.c
308
stub_cleanup(kadm5_server_handle_t handle, char *princ_str,
crypto/krb5/src/kadmin/server/server_stubs.c
313
auth_end(handle->context);
crypto/krb5/src/kadmin/server/server_stubs.c
314
free_server_handle(handle);
crypto/krb5/src/kadmin/server/server_stubs.c
321
stub_auth(kadm5_server_handle_t handle, int opcode, krb5_const_principal p1,
crypto/krb5/src/kadmin/server/server_stubs.c
324
return auth(handle->context, opcode, handle->current_caller, p1, p2,
crypto/krb5/src/kadmin/server/server_stubs.c
329
stub_auth_pol(kadm5_server_handle_t handle, int opcode, const char *policy,
crypto/krb5/src/kadmin/server/server_stubs.c
332
return auth(handle->context, opcode, handle->current_caller, NULL, NULL,
crypto/krb5/src/kadmin/server/server_stubs.c
337
stub_auth_restrict(kadm5_server_handle_t handle, int opcode,
crypto/krb5/src/kadmin/server/server_stubs.c
341
return auth_restrict(handle->context, opcode, handle->current_caller,
crypto/krb5/src/kadmin/server/server_stubs.c
348
changepw_not_self(kadm5_server_handle_t handle, struct svc_req *rqstp,
crypto/krb5/src/kadmin/server/server_stubs.c
35
static int gss_to_krb5_name(kadm5_server_handle_t handle,
crypto/krb5/src/kadmin/server/server_stubs.c
352
!krb5_principal_compare(handle->context, handle->current_caller,
crypto/krb5/src/kadmin/server/server_stubs.c
371
check_self_keychange(kadm5_server_handle_t handle, struct svc_req *rqstp,
crypto/krb5/src/kadmin/server/server_stubs.c
374
if (!krb5_principal_compare(handle->context, handle->current_caller,
crypto/krb5/src/kadmin/server/server_stubs.c
381
return check_min_life(handle, princ, NULL, 0);
crypto/krb5/src/kadmin/server/server_stubs.c
392
clamp_self_keepold(kadm5_server_handle_t handle, krb5_principal princ,
crypto/krb5/src/kadmin/server/server_stubs.c
397
if (krb5_principal_compare(handle->context, handle->current_caller, princ))
crypto/krb5/src/kadmin/server/server_stubs.c
468
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
472
&handle, &ret->api_version, &client_name,
crypto/krb5/src/kadmin/server/server_stubs.c
478
!stub_auth_restrict(handle, OP_ADDPRINC, arg->rec.principal,
crypto/krb5/src/kadmin/server/server_stubs.c
484
ret->code = kadm5_create_principal(handle, &arg->rec, arg->mask,
crypto/krb5/src/kadmin/server/server_stubs.c
488
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
494
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
498
stub_cleanup(handle, prime_arg, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
509
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
513
&handle, &ret->api_version, &client_name,
crypto/krb5/src/kadmin/server/server_stubs.c
519
!stub_auth_restrict(handle, OP_ADDPRINC, arg->rec.principal, &arg->rec,
crypto/krb5/src/kadmin/server/server_stubs.c
525
ret->code = kadm5_create_principal_3(handle, &arg->rec, arg->mask,
crypto/krb5/src/kadmin/server/server_stubs.c
529
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
535
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
539
stub_cleanup(handle, prime_arg, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
551
check_lockdown_by_princ(kadm5_server_handle_t handle, krb5_principal princ)
crypto/krb5/src/kadmin/server/server_stubs.c
556
ret = kadm5_get_principal(handle, princ, &rec, KADM5_ATTRIBUTES);
crypto/krb5/src/kadmin/server/server_stubs.c
560
kadm5_free_principal_ent(handle, &rec);
crypto/krb5/src/kadmin/server/server_stubs.c
571
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
574
ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
581
!stub_auth(handle, OP_DELPRINC, arg->princ, NULL, NULL, NULL)) {
crypto/krb5/src/kadmin/server/server_stubs.c
586
ret->code = check_lockdown_by_princ(handle, arg->princ);
crypto/krb5/src/kadmin/server/server_stubs.c
595
ret->code = kadm5_delete_principal(handle, arg->princ);
crypto/krb5/src/kadmin/server/server_stubs.c
598
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
604
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
609
stub_cleanup(handle, prime_arg, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
621
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
625
&handle, &ret->api_version, &client_name,
crypto/krb5/src/kadmin/server/server_stubs.c
631
!stub_auth_restrict(handle, OP_MODPRINC, rec.principal, &arg->rec,
crypto/krb5/src/kadmin/server/server_stubs.c
651
ret->code = kadm5_modify_principal(handle, &rec_copy, arg->mask);
crypto/krb5/src/kadmin/server/server_stubs.c
653
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
659
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
663
kadm5_free_principal_ent(handle, &rec);
crypto/krb5/src/kadmin/server/server_stubs.c
664
stub_cleanup(handle, prime_arg, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
675
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
680
ret->code = stub_setup(arg->api_version, rqstp, NULL, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
686
if (krb5_unparse_name(handle->context, arg->src, &prime_arg1) ||
crypto/krb5/src/kadmin/server/server_stubs.c
687
krb5_unparse_name(handle->context, arg->dest, &prime_arg2)) {
crypto/krb5/src/kadmin/server/server_stubs.c
701
!stub_auth(handle, OP_RENPRINC, arg->src, arg->dest, NULL, NULL)) {
crypto/krb5/src/kadmin/server/server_stubs.c
706
ret->code = check_lockdown_by_princ(handle, arg->src);
crypto/krb5/src/kadmin/server/server_stubs.c
725
ret->code = kadm5_rename_principal(handle, arg->src, arg->dest);
crypto/krb5/src/kadmin/server/server_stubs.c
727
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
742
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
748
stub_cleanup(handle, NULL, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
759
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
762
ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
770
if (changepw_not_self(handle, rqstp, rec.principal) ||
crypto/krb5/src/kadmin/server/server_stubs.c
771
!stub_auth(handle, OP_GETPRINC, rec.principal, NULL, NULL, NULL)) {
crypto/krb5/src/kadmin/server/server_stubs.c
776
ret->code = kadm5_get_principal(handle, rec.principal, &ret->rec,
crypto/krb5/src/kadmin/server/server_stubs.c
78
static int check_handle(void *handle)
crypto/krb5/src/kadmin/server/server_stubs.c
780
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
786
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
790
kadm5_free_principal_ent(handle, &rec);
crypto/krb5/src/kadmin/server/server_stubs.c
791
stub_cleanup(handle, prime_arg, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
80
CHECK_HANDLE(handle);
crypto/krb5/src/kadmin/server/server_stubs.c
801
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
804
ret->code = stub_setup(arg->api_version, rqstp, NULL, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
815
!stub_auth(handle, OP_LISTPRINCS, NULL, NULL, NULL, NULL)) {
crypto/krb5/src/kadmin/server/server_stubs.c
820
ret->code = kadm5_get_principals(handle, arg->exp, &ret->princs,
crypto/krb5/src/kadmin/server/server_stubs.c
823
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
829
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
834
stub_cleanup(handle, NULL, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
846
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
849
ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
862
} else if (changepw_not_self(handle, rqstp, rec.principal) ||
crypto/krb5/src/kadmin/server/server_stubs.c
863
!stub_auth(handle, OP_CPW, rec.principal, NULL, NULL, NULL)) {
crypto/krb5/src/kadmin/server/server_stubs.c
868
ret->code = check_self_keychange(handle, rqstp, rec.principal);
crypto/krb5/src/kadmin/server/server_stubs.c
870
ret->code = kadm5_chpass_principal(handle, rec.principal,
crypto/krb5/src/kadmin/server/server_stubs.c
877
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
883
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
887
kadm5_free_principal_ent(handle, &rec);
crypto/krb5/src/kadmin/server/server_stubs.c
888
stub_cleanup(handle, prime_arg, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
901
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
904
ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
917
} else if (changepw_not_self(handle, rqstp, rec.principal) ||
crypto/krb5/src/kadmin/server/server_stubs.c
918
!stub_auth(handle, OP_CPW, rec.principal, NULL, NULL, NULL)) {
crypto/krb5/src/kadmin/server/server_stubs.c
923
ret->code = check_self_keychange(handle, rqstp, rec.principal);
crypto/krb5/src/kadmin/server/server_stubs.c
925
keepold = clamp_self_keepold(handle, rec.principal, arg->keepold);
crypto/krb5/src/kadmin/server/server_stubs.c
926
ret->code = kadm5_chpass_principal_3(handle, rec.principal,
crypto/krb5/src/kadmin/server/server_stubs.c
934
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
940
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
944
kadm5_free_principal_ent(handle, &rec);
crypto/krb5/src/kadmin/server/server_stubs.c
945
stub_cleanup(handle, prime_arg, &client_name, &service_name);
crypto/krb5/src/kadmin/server/server_stubs.c
957
kadm5_server_handle_t handle;
crypto/krb5/src/kadmin/server/server_stubs.c
960
ret->code = stub_setup(arg->api_version, rqstp, arg->princ, &handle,
crypto/krb5/src/kadmin/server/server_stubs.c
974
stub_auth(handle, OP_SETKEY, rec.principal, NULL, NULL, NULL)) {
crypto/krb5/src/kadmin/server/server_stubs.c
975
ret->code = kadm5_setkey_principal(handle, rec.principal,
crypto/krb5/src/kadmin/server/server_stubs.c
985
errmsg = krb5_get_error_message(handle->context, ret->code);
crypto/krb5/src/kadmin/server/server_stubs.c
991
krb5_free_error_message(handle->context, errmsg);
crypto/krb5/src/kadmin/server/server_stubs.c
995
kadm5_free_principal_ent(handle, &rec);
crypto/krb5/src/kadmin/server/server_stubs.c
996
stub_cleanup(handle, prime_arg, &client_name, &service_name);
crypto/krb5/src/kdc/dispatch.c
154
state->active_realm = setup_server_realm(handle, req->server);
crypto/krb5/src/kdc/dispatch.c
211
krb5_context get_context(void *handle)
crypto/krb5/src/kdc/dispatch.c
213
struct server_handle *sh = handle;
crypto/krb5/src/kdc/dispatch.c
98
struct server_handle *handle = cb;
crypto/krb5/src/kdc/dispatch.c
99
krb5_context kdc_err_context = handle->kdc_err_context;
crypto/krb5/src/kdc/kdc_authdata.c
606
ret = h->vt.handle(context, h->data, flags, client, server,
crypto/krb5/src/kdc/kdc_preauth.c
168
get_realm_names(struct server_handle *handle, const char ***list_out)
crypto/krb5/src/kdc/kdc_preauth.c
173
list = calloc(handle->kdc_numrealms + 1, sizeof(*list));
crypto/krb5/src/kdc/kdc_preauth.c
176
for (i = 0; i < handle->kdc_numrealms; i++)
crypto/krb5/src/kdc/kdc_preauth.c
177
list[i] = handle->kdc_realmlist[i]->realm_name;
crypto/krb5/src/kdc/kdc_preauth.c
184
load_preauth_plugins(struct server_handle *handle, krb5_context context,
crypto/krb5/src/kdc/kdc_preauth.c
202
if (get_realm_names(handle, &realm_names))
crypto/krb5/src/kdc/kdc_util.c
1882
make_toolong_error (void *handle, krb5_data **out)
crypto/krb5/src/kdc/kdc_util.c
1887
struct server_handle *h = handle;
crypto/krb5/src/kdc/kdc_util.h
190
load_preauth_plugins(struct server_handle * handle, krb5_context context,
crypto/krb5/src/kdc/main.c
103
find_realm_data(struct server_handle *handle, char *rname, krb5_ui_4 rsize)
crypto/krb5/src/kdc/main.c
106
kdc_realm_t **kdc_realmlist = handle->kdc_realmlist;
crypto/krb5/src/kdc/main.c
107
int kdc_numrealms = handle->kdc_numrealms;
crypto/krb5/src/kdc/main.c
118
setup_server_realm(struct server_handle *handle, krb5_principal sprinc)
crypto/krb5/src/kdc/main.c
121
kdc_realm_t **kdc_realmlist = handle->kdc_realmlist;
crypto/krb5/src/kdc/main.c
122
int kdc_numrealms = handle->kdc_numrealms;
crypto/krb5/src/kdc/main.c
128
newrealm = find_realm_data(handle, sprinc->realm.data,
crypto/krb5/src/kdc/rtest.c
113
find_realm_data(struct server_handle *handle,
crypto/krb5/src/kprop/kpropd.c
648
kadm5_iprop_handle_t handle;
crypto/krb5/src/kprop/kpropd.c
707
handle = NULL;
crypto/krb5/src/kprop/kpropd.c
754
handle = server_handle;
crypto/krb5/src/kprop/kpropd.c
784
incr_ret = iprop_get_updates_1(&mylast, handle->clnt);
crypto/krb5/src/kprop/kpropd.c
786
clnt_perror(handle->clnt,
crypto/krb5/src/kprop/kpropd.c
791
handle = (kadm5_iprop_handle_t)NULL;
crypto/krb5/src/kprop/kpropd.c
822
full_ret = full_resync(handle->clnt);
crypto/krb5/src/kprop/kpropd.c
824
clnt_perror(handle->clnt,
crypto/krb5/src/kprop/kpropd.c
828
handle = NULL;
crypto/krb5/src/lib/apputils/net-server.c
1021
ret = setup_socket(&addr, ai->ai_addr, &sockacts, handle, prog,
crypto/krb5/src/lib/apputils/net-server.c
1052
loop_setup_network(verto_ctx *ctx, void *handle, const char *prog,
crypto/krb5/src/lib/apputils/net-server.c
1069
ret = setup_addresses(ctx, handle, prog, listen_backlog);
crypto/krb5/src/lib/apputils/net-server.c
1085
void *handle;
crypto/krb5/src/lib/apputils/net-server.c
1128
krb5_free_data(get_context(state->handle), response);
crypto/krb5/src/lib/apputils/net-server.c
1148
state->handle = conn->handle;
crypto/krb5/src/lib/apputils/net-server.c
1187
dispatch(state->handle, ss2sa(&state->daddr), ss2sa(&state->saddr),
crypto/krb5/src/lib/apputils/net-server.c
1192
kill_lru_stream_connection(void *handle, verto_ev *newev)
crypto/krb5/src/lib/apputils/net-server.c
1256
if (add_fd(s, ctype, flags, conn->handle, conn->prog, ctx,
crypto/krb5/src/lib/apputils/net-server.c
1283
kill_lru_stream_connection(conn->handle, newev);
crypto/krb5/src/lib/apputils/net-server.c
1399
err = make_toolong_error (conn->handle,
crypto/krb5/src/lib/apputils/net-server.c
1410
krb5_free_data(get_context(conn->handle), response);
crypto/krb5/src/lib/apputils/net-server.c
143
void *handle;
crypto/krb5/src/lib/apputils/net-server.c
1445
dispatch(state->conn->handle, ss2sa(&state->local_saddr),
crypto/krb5/src/lib/apputils/net-server.c
1553
if (add_fd(s, CONN_RPC, flags, conn->handle, conn->prog, ctx,
crypto/krb5/src/lib/apputils/net-server.c
1572
kill_lru_stream_connection(newconn->handle, newev);
crypto/krb5/src/lib/apputils/net-server.c
241
void *handle;
crypto/krb5/src/lib/apputils/net-server.c
251
krb5_klog_reopen(get_context(sc->handle));
crypto/krb5/src/lib/apputils/net-server.c
253
sc->reset(sc->handle);
crypto/krb5/src/lib/apputils/net-server.c
263
loop_setup_signals(verto_ctx *ctx, void *handle, void (*reset)(void *))
crypto/krb5/src/lib/apputils/net-server.c
282
sc->handle = handle;
crypto/krb5/src/lib/apputils/net-server.c
482
krb5_free_data(get_context(conn->handle), conn->response);
crypto/krb5/src/lib/apputils/net-server.c
573
add_fd(int sock, enum conn_type conntype, verto_ev_flag flags, void *handle,
crypto/krb5/src/lib/apputils/net-server.c
594
newconn->handle = handle;
crypto/krb5/src/lib/apputils/net-server.c
802
struct sockact_list *sockacts, void *handle, const char *prog,
crypto/krb5/src/lib/apputils/net-server.c
880
ret = add_fd(sock, ctype, flags, handle, prog, ctx, vcb, &ev);
crypto/krb5/src/lib/apputils/net-server.c
927
setup_addresses(verto_ctx *ctx, void *handle, const char *prog,
crypto/krb5/src/lib/apputils/net-server.c
980
handle, prog, ctx, listen_backlog,
crypto/krb5/src/lib/kadm5/admin_internal.h
30
#define GENERIC_CHECK_HANDLE(handle, old_api_err, new_api_err) \
crypto/krb5/src/lib/kadm5/admin_internal.h
32
kadm5_server_handle_t srvr = handle; \
crypto/krb5/src/lib/kadm5/admin_internal.h
60
#define _KADM5_CHECK_HANDLE(handle) \
crypto/krb5/src/lib/kadm5/admin_internal.h
61
{ int ecode; if ((ecode = _kadm5_check_handle((void *)handle))) return ecode;}
crypto/krb5/src/lib/kadm5/admin_internal.h
63
int _kadm5_check_handle(void *handle);
crypto/krb5/src/lib/kadm5/clnt/client_handle.c
6
int _kadm5_check_handle(void *handle)
crypto/krb5/src/lib/kadm5/clnt/client_handle.c
8
CHECK_HANDLE(handle);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
142
free_handle(kadm5_server_handle_t handle)
crypto/krb5/src/lib/kadm5/clnt/client_init.c
148
if (handle == NULL)
crypto/krb5/src/lib/kadm5/clnt/client_init.c
151
if (handle->destroy_cache && handle->cache_name != NULL) {
crypto/krb5/src/lib/kadm5/clnt/client_init.c
152
ret = krb5_cc_resolve(handle->context, handle->cache_name, &ccache);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
154
ret = krb5_cc_destroy(handle->context, ccache);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
156
free(handle->cache_name);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
157
(void)gss_release_cred(&minor_stat, &handle->cred);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
158
if (handle->clnt != NULL && handle->clnt->cl_auth != NULL)
crypto/krb5/src/lib/kadm5/clnt/client_init.c
159
AUTH_DESTROY(handle->clnt->cl_auth);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
160
if (handle->clnt != NULL)
crypto/krb5/src/lib/kadm5/clnt/client_init.c
161
clnt_destroy(handle->clnt);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
162
if (handle->client_socket != -1)
crypto/krb5/src/lib/kadm5/clnt/client_init.c
163
close(handle->client_socket);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
164
free(handle->lhandle);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
165
kadm5_free_config_params(handle->context, &handle->params);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
166
free(handle);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
185
kadm5_server_handle_t handle = NULL;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
200
handle = k5alloc(sizeof(*handle), &code);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
201
if (handle == NULL)
crypto/krb5/src/lib/kadm5/clnt/client_init.c
203
handle->lhandle = k5alloc(sizeof(*handle), &code);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
204
if (handle->lhandle == NULL)
crypto/krb5/src/lib/kadm5/clnt/client_init.c
207
handle->magic_number = KADM5_SERVER_HANDLE_MAGIC;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
208
handle->struct_version = struct_version;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
209
handle->api_version = api_version;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
210
handle->clnt = 0;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
211
handle->client_socket = -1;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
212
handle->cache_name = 0;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
213
handle->destroy_cache = 0;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
214
handle->context = 0;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
215
handle->cred = GSS_C_NO_CREDENTIAL;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
216
*handle->lhandle = *handle;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
217
handle->lhandle->api_version = KADM5_API_VERSION_4;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
218
handle->lhandle->struct_version = KADM5_STRUCT_VERSION;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
219
handle->lhandle->lhandle = handle->lhandle;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
221
handle->context = context;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
225
code = kadm5_get_config_params(handle->context, 0, params_in,
crypto/krb5/src/lib/kadm5/clnt/client_init.c
226
&handle->params);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
234
if ((handle->params.mask & REQUIRED_PARAMS) != REQUIRED_PARAMS) {
crypto/krb5/src/lib/kadm5/clnt/client_init.c
246
code = krb5_parse_name(handle->context, client_name, &client);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
258
code = get_init_creds(handle, client, init_type, pass, ccache_in,
crypto/krb5/src/lib/kadm5/clnt/client_init.c
259
service_name, handle->params.realm, &server);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
269
port = handle->params.iprop_port;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
273
port = handle->params.kadmind_port;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
278
code = connect_to_server(handle->params.admin_server, port, &fd);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
282
handle->clnt = clnttcp_create(NULL, rpc_prog, rpc_vers, &fd, 0, 0);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
283
if (handle->clnt == NULL) {
crypto/krb5/src/lib/kadm5/clnt/client_init.c
294
(void)clnt_control(handle->clnt, CLSET_TIMEOUT, &timeout);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
296
handle->client_socket = fd;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
297
handle->lhandle->clnt = handle->clnt;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
298
handle->lhandle->client_socket = fd;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
304
code = setup_gss(handle, params_in,
crypto/krb5/src/lib/kadm5/clnt/client_init.c
315
*server_handle = handle;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
316
handle = NULL;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
320
if (init_2(&handle->api_version, &r, handle->clnt)) {
crypto/krb5/src/lib/kadm5/clnt/client_init.c
323
clnt_perror(handle->clnt, "init_2 null resp");
crypto/krb5/src/lib/kadm5/clnt/client_init.c
329
handle->api_version == KADM5_API_VERSION_4) {
crypto/krb5/src/lib/kadm5/clnt/client_init.c
330
handle->api_version = KADM5_API_VERSION_3;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
332
if (init_2(&handle->api_version, &r, handle->clnt)) {
crypto/krb5/src/lib/kadm5/clnt/client_init.c
339
handle->api_version == KADM5_API_VERSION_3) {
crypto/krb5/src/lib/kadm5/clnt/client_init.c
340
handle->api_version = KADM5_API_VERSION_2;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
342
if (init_2(&handle->api_version, &r, handle->clnt)) {
crypto/krb5/src/lib/kadm5/clnt/client_init.c
352
*server_handle = handle;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
353
handle = NULL;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
358
(void)free_handle(handle);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
366
get_init_creds(kadm5_server_handle_t handle, krb5_principal client,
crypto/krb5/src/lib/kadm5/clnt/client_init.c
383
if (asprintf(&handle->cache_name, "%s:%s",
crypto/krb5/src/lib/kadm5/clnt/client_init.c
384
krb5_cc_get_type(handle->context, ccache),
crypto/krb5/src/lib/kadm5/clnt/client_init.c
385
krb5_cc_get_name(handle->context, ccache)) < 0) {
crypto/krb5/src/lib/kadm5/clnt/client_init.c
386
handle->cache_name = NULL;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
393
if (asprintf(&handle->cache_name, "MEMORY:kadm5_%u", counter++) < 0) {
crypto/krb5/src/lib/kadm5/clnt/client_init.c
394
handle->cache_name = NULL;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
398
code = krb5_cc_resolve(handle->context, handle->cache_name,
crypto/krb5/src/lib/kadm5/clnt/client_init.c
403
code = krb5_cc_initialize (handle->context, ccache, client);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
407
handle->destroy_cache = 1;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
409
handle->lhandle->cache_name = handle->cache_name;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
412
code = gic_iter(handle, init_type, ccache, client, pass, svcname, realm,
crypto/krb5/src/lib/kadm5/clnt/client_init.c
417
code = kadm5_get_admin_service_name(handle->context,
crypto/krb5/src/lib/kadm5/clnt/client_init.c
418
handle->params.realm,
crypto/krb5/src/lib/kadm5/clnt/client_init.c
422
code = gic_iter(handle, init_type, ccache, client, pass, svcbuf, realm,
crypto/krb5/src/lib/kadm5/clnt/client_init.c
432
krb5_cc_close(handle->context, ccache);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
439
gic_iter(kadm5_server_handle_t handle, enum init_type init_type,
crypto/krb5/src/lib/kadm5/clnt/client_init.c
450
ctx = handle->context;
crypto/krb5/src/lib/kadm5/clnt/client_init.c
565
setup_gss(kadm5_server_handle_t handle, kadm5_config_params *params_in,
crypto/krb5/src/lib/kadm5/clnt/client_init.c
579
gssstat = gss_krb5_ccache_name(&minor_stat, handle->cache_name,
crypto/krb5/src/lib/kadm5/clnt/client_init.c
607
&handle->cred, NULL, NULL);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
615
rpc_auth(handle, params_in, handle->cred, gss_target);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
63
get_init_creds(kadm5_server_handle_t handle, krb5_principal client,
crypto/krb5/src/lib/kadm5/clnt/client_init.c
637
if (handle->clnt->cl_auth == NULL) {
crypto/krb5/src/lib/kadm5/clnt/client_init.c
645
rpc_auth(kadm5_server_handle_t handle, kadm5_config_params *params_in,
crypto/krb5/src/lib/kadm5/clnt/client_init.c
664
handle->clnt->cl_auth = authgss_create(handle->clnt,
crypto/krb5/src/lib/kadm5/clnt/client_init.c
666
if (handle->clnt->cl_auth != NULL)
crypto/krb5/src/lib/kadm5/clnt/client_init.c
674
handle->clnt->cl_auth = auth_gssapi_create(handle->clnt,
crypto/krb5/src/lib/kadm5/clnt/client_init.c
68
gic_iter(kadm5_server_handle_t handle, enum init_type init_type,
crypto/krb5/src/lib/kadm5/clnt/client_init.c
708
int _kadm5_check_handle(void *handle)
crypto/krb5/src/lib/kadm5/clnt/client_init.c
710
CHECK_HANDLE(handle);
crypto/krb5/src/lib/kadm5/clnt/client_init.c
724
kadm5_init_iprop(void *handle, char **db_args)
crypto/krb5/src/lib/kadm5/clnt/client_init.c
76
setup_gss(kadm5_server_handle_t handle, kadm5_config_params *params_in,
crypto/krb5/src/lib/kadm5/clnt/client_init.c
80
rpc_auth(kadm5_server_handle_t handle, kadm5_config_params *params_in,
crypto/krb5/src/lib/kadm5/clnt/client_internal.h
82
#define CLIENT_CHECK_HANDLE(handle) \
crypto/krb5/src/lib/kadm5/clnt/client_internal.h
85
(kadm5_server_handle_t) handle; \
crypto/krb5/src/lib/kadm5/clnt/client_internal.h
95
#define CHECK_HANDLE(handle) \
crypto/krb5/src/lib/kadm5/clnt/client_internal.h
96
GENERIC_CHECK_HANDLE(handle, KADM5_OLD_LIB_API_VERSION, \
crypto/krb5/src/lib/kadm5/clnt/client_internal.h
98
CLIENT_CHECK_HANDLE(handle)
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
109
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
116
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
117
if (delete_principal_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
128
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
134
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
151
if (modify_principal_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
163
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
171
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
173
if (get_principal_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
187
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
19
#define eret() do { clnt_perror(handle->clnt, "null ret"); return KADM5_RPC_ERROR; } while (0)
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
194
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
196
if (get_princs_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
215
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
221
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
224
if (rename_principal_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
235
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
241
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
245
if (chpass_principal_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
258
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
264
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
271
if (chpass_principal3_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
284
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
291
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
295
if (setkey_principal_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
31
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
310
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
317
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
324
if (setkey_principal3_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
338
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
342
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
350
if (setkey_principal4_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
364
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
370
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
378
if (chrand_principal3_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
38
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
386
krb5_free_keyblock_contents(handle->context, &r.keys[i]);
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
399
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
405
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
410
if (chrand_principal_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
418
krb5_free_keyblock_contents(handle->context, &r.keys[i]);
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
441
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
447
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
451
if (purgekeys_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
462
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
471
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
473
if (get_strings_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
488
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
497
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
498
if (set_string_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
510
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
514
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
521
if (get_principal_keys_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
536
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
542
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
545
if (create_alias_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
57
if (create_principal_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
71
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
78
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/client_principal.c
99
if (create_principal3_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/clnt_chpass_util.c
12
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/clnt_chpass_util.c
15
return _kadm5_chpass_principal_util(handle, handle->lhandle, princ,
crypto/krb5/src/lib/kadm5/clnt/clnt_policy.c
110
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/clnt_policy.c
117
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/clnt_policy.c
119
if (get_pols_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/clnt_policy.c
22
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/clnt_policy.c
30
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/clnt_policy.c
32
if (create_policy_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/clnt_policy.c
42
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/clnt_policy.c
50
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/clnt_policy.c
52
if (delete_policy_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/clnt_policy.c
63
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/clnt_policy.c
71
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/clnt_policy.c
74
if (modify_policy_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/clnt_policy.c
84
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/clnt_policy.c
91
arg.api_version = handle->api_version;
crypto/krb5/src/lib/kadm5/clnt/clnt_policy.c
97
if (get_policy_2(&arg, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/clnt/clnt_privs.c
19
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/clnt/clnt_privs.c
22
if (get_privs_2(&handle->api_version, &r, handle->clnt))
crypto/krb5/src/lib/kadm5/misc_free.c
59
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/misc_free.c
68
krb5_free_key_data_contents(handle->context, &key_data[i]);
crypto/krb5/src/lib/kadm5/misc_free.c
76
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/misc_free.c
85
krb5_free_principal(handle->context, val->principal);
crypto/krb5/src/lib/kadm5/misc_free.c
86
krb5_free_principal(handle->context, val->mod_name);
crypto/krb5/src/lib/kadm5/misc_free.c
90
krb5_free_key_data_contents(handle->context, &val->key_data[i]);
crypto/krb5/src/lib/kadm5/server_internal.h
103
kadm5_ret_t init_pwqual(kadm5_server_handle_t handle);
crypto/krb5/src/lib/kadm5/server_internal.h
104
void destroy_pwqual(kadm5_server_handle_t handle);
crypto/krb5/src/lib/kadm5/server_internal.h
146
#define SERVER_CHECK_HANDLE(handle) \
crypto/krb5/src/lib/kadm5/server_internal.h
149
(kadm5_server_handle_t) handle; \
crypto/krb5/src/lib/kadm5/server_internal.h
157
#define CHECK_HANDLE(handle) \
crypto/krb5/src/lib/kadm5/server_internal.h
158
GENERIC_CHECK_HANDLE(handle, KADM5_OLD_SERVER_API_VERSION, \
crypto/krb5/src/lib/kadm5/server_internal.h
160
SERVER_CHECK_HANDLE(handle)
crypto/krb5/src/lib/kadm5/server_internal.h
182
k5_pwqual_name(krb5_context context, pwqual_handle handle);
crypto/krb5/src/lib/kadm5/server_internal.h
186
k5_pwqual_check(krb5_context context, pwqual_handle handle,
crypto/krb5/src/lib/kadm5/server_internal.h
73
kadm5_ret_t passwd_check(kadm5_server_handle_t handle,
crypto/krb5/src/lib/kadm5/server_internal.h
77
krb5_error_code kdb_init_master(kadm5_server_handle_t handle,
crypto/krb5/src/lib/kadm5/server_internal.h
79
krb5_error_code kdb_get_active_mkey(kadm5_server_handle_t handle,
crypto/krb5/src/lib/kadm5/server_internal.h
82
krb5_error_code kdb_init_hist(kadm5_server_handle_t handle,
crypto/krb5/src/lib/kadm5/server_internal.h
84
krb5_error_code kdb_get_hist_key(kadm5_server_handle_t handle,
crypto/krb5/src/lib/kadm5/server_internal.h
87
void kdb_free_keyblocks(kadm5_server_handle_t handle,
crypto/krb5/src/lib/kadm5/server_internal.h
89
krb5_error_code kdb_get_entry(kadm5_server_handle_t handle,
crypto/krb5/src/lib/kadm5/server_internal.h
92
krb5_error_code kdb_free_entry(kadm5_server_handle_t handle,
crypto/krb5/src/lib/kadm5/server_internal.h
94
krb5_error_code kdb_put_entry(kadm5_server_handle_t handle,
crypto/krb5/src/lib/kadm5/server_internal.h
96
krb5_error_code kdb_delete_entry(kadm5_server_handle_t handle,
crypto/krb5/src/lib/kadm5/server_internal.h
98
krb5_error_code kdb_iter_entry(kadm5_server_handle_t handle,
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
104
handle = *hp;
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
105
if (handle->vt.fini != NULL)
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
106
handle->vt.fini(context, handle->data);
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
107
free(handle);
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
46
kadm5_hook_handle *list = NULL, handle = NULL;
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
64
handle = k5alloc(sizeof(*handle), &ret);
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
65
if (handle == NULL)
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
67
ret = (*mod)(context, 1, 3, (krb5_plugin_vtable)&handle->vt);
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
69
free(handle);
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
70
handle = NULL;
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
73
handle->data = NULL;
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
74
if (handle->vt.init != NULL) {
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
75
ret = handle->vt.init(context, &handle->data);
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
79
list[count++] = handle;
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
81
handle = NULL;
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
90
free(handle);
crypto/krb5/src/lib/kadm5/srv/kadm5_hook.c
99
kadm5_hook_handle *hp, handle;
crypto/krb5/src/lib/kadm5/srv/pwqual.c
101
pwqual_handle *hp, handle;
crypto/krb5/src/lib/kadm5/srv/pwqual.c
106
handle = *hp;
crypto/krb5/src/lib/kadm5/srv/pwqual.c
107
if (handle->vt.close != NULL)
crypto/krb5/src/lib/kadm5/srv/pwqual.c
108
handle->vt.close(context, handle->data);
crypto/krb5/src/lib/kadm5/srv/pwqual.c
109
free(handle);
crypto/krb5/src/lib/kadm5/srv/pwqual.c
115
k5_pwqual_name(krb5_context context, pwqual_handle handle)
crypto/krb5/src/lib/kadm5/srv/pwqual.c
117
return handle->vt.name;
crypto/krb5/src/lib/kadm5/srv/pwqual.c
121
k5_pwqual_check(krb5_context context, pwqual_handle handle,
crypto/krb5/src/lib/kadm5/srv/pwqual.c
125
return handle->vt.check(context, handle->data, password, policy_name,
crypto/krb5/src/lib/kadm5/srv/pwqual.c
48
pwqual_handle *list = NULL, handle = NULL;
crypto/krb5/src/lib/kadm5/srv/pwqual.c
66
handle = k5alloc(sizeof(*handle), &ret);
crypto/krb5/src/lib/kadm5/srv/pwqual.c
67
if (handle == NULL)
crypto/krb5/src/lib/kadm5/srv/pwqual.c
69
ret = (*mod)(context, 1, 1, (krb5_plugin_vtable)&handle->vt);
crypto/krb5/src/lib/kadm5/srv/pwqual.c
71
free(handle);
crypto/krb5/src/lib/kadm5/srv/pwqual.c
72
handle = NULL;
crypto/krb5/src/lib/kadm5/srv/pwqual.c
75
handle->data = NULL;
crypto/krb5/src/lib/kadm5/srv/pwqual.c
76
if (handle->vt.open != NULL) {
crypto/krb5/src/lib/kadm5/srv/pwqual.c
77
ret = handle->vt.open(context, dict_file, &handle->data);
crypto/krb5/src/lib/kadm5/srv/pwqual.c
81
list[count++] = handle;
crypto/krb5/src/lib/kadm5/srv/pwqual.c
83
handle = NULL;
crypto/krb5/src/lib/kadm5/srv/pwqual.c
92
free(handle);
crypto/krb5/src/lib/kadm5/srv/pwqual_hesiod.c
109
n = krb5_princ_size(handle->context, princ);
crypto/krb5/src/lib/kadm5/srv/pwqual_princ.c
46
n = krb5_princ_size(handle->context, princ);
crypto/krb5/src/lib/kadm5/srv/pwqual_princ.c
47
cp = krb5_princ_realm(handle->context, princ)->data;
crypto/krb5/src/lib/kadm5/srv/pwqual_princ.c
51
cp = krb5_princ_component(handle->context, princ, i)->data;
crypto/krb5/src/lib/kadm5/srv/server_handle.c
6
int _kadm5_check_handle(void *handle)
crypto/krb5/src/lib/kadm5/srv/server_handle.c
8
CHECK_HANDLE(handle);
crypto/krb5/src/lib/kadm5/srv/server_init.c
167
kadm5_server_handle_t handle = NULL;
crypto/krb5/src/lib/kadm5/srv/server_init.c
179
handle = k5alloc(sizeof(*handle), &ret);
crypto/krb5/src/lib/kadm5/srv/server_init.c
180
if (handle == NULL)
crypto/krb5/src/lib/kadm5/srv/server_init.c
182
handle->context = context;
crypto/krb5/src/lib/kadm5/srv/server_init.c
184
ret = dup_db_args(handle, db_args);
crypto/krb5/src/lib/kadm5/srv/server_init.c
191
handle->magic_number = KADM5_SERVER_HANDLE_MAGIC;
crypto/krb5/src/lib/kadm5/srv/server_init.c
192
handle->struct_version = struct_version;
crypto/krb5/src/lib/kadm5/srv/server_init.c
193
handle->api_version = api_version;
crypto/krb5/src/lib/kadm5/srv/server_init.c
202
ret = kadm5_get_config_params(handle->context, 1, params_in,
crypto/krb5/src/lib/kadm5/srv/server_init.c
203
&handle->params);
crypto/krb5/src/lib/kadm5/srv/server_init.c
218
if ((handle->params.mask & REQUIRED_PARAMS) != REQUIRED_PARAMS) {
crypto/krb5/src/lib/kadm5/srv/server_init.c
22
static int dup_db_args(kadm5_server_handle_t handle, char **db_args)
crypto/krb5/src/lib/kadm5/srv/server_init.c
222
if ((handle->params.mask & KADM5_CONFIG_IPROP_ENABLED) == KADM5_CONFIG_IPROP_ENABLED
crypto/krb5/src/lib/kadm5/srv/server_init.c
223
&& handle->params.iprop_enabled) {
crypto/krb5/src/lib/kadm5/srv/server_init.c
224
if ((handle->params.mask & IPROP_REQUIRED_PARAMS) != IPROP_REQUIRED_PARAMS) {
crypto/krb5/src/lib/kadm5/srv/server_init.c
230
ret = krb5_set_default_realm(handle->context, handle->params.realm);
crypto/krb5/src/lib/kadm5/srv/server_init.c
234
ret = krb5_db_open(handle->context, db_args,
crypto/krb5/src/lib/kadm5/srv/server_init.c
239
ret = krb5_parse_name(handle->context, client_name,
crypto/krb5/src/lib/kadm5/srv/server_init.c
240
&handle->current_caller);
crypto/krb5/src/lib/kadm5/srv/server_init.c
244
handle->lhandle = k5alloc(sizeof(*handle), &ret);
crypto/krb5/src/lib/kadm5/srv/server_init.c
245
if (handle->lhandle == NULL)
crypto/krb5/src/lib/kadm5/srv/server_init.c
247
*handle->lhandle = *handle;
crypto/krb5/src/lib/kadm5/srv/server_init.c
248
handle->lhandle->api_version = KADM5_API_VERSION_4;
crypto/krb5/src/lib/kadm5/srv/server_init.c
249
handle->lhandle->struct_version = KADM5_STRUCT_VERSION;
crypto/krb5/src/lib/kadm5/srv/server_init.c
250
handle->lhandle->lhandle = handle->lhandle;
crypto/krb5/src/lib/kadm5/srv/server_init.c
252
ret = kdb_init_master(handle, handle->params.realm,
crypto/krb5/src/lib/kadm5/srv/server_init.c
253
(handle->params.mask & KADM5_CONFIG_MKEY_FROM_KBD)
crypto/krb5/src/lib/kadm5/srv/server_init.c
254
&& handle->params.mkey_from_kbd);
crypto/krb5/src/lib/kadm5/srv/server_init.c
258
ret = kdb_init_hist(handle, handle->params.realm);
crypto/krb5/src/lib/kadm5/srv/server_init.c
262
ret = k5_kadm5_hook_load(context,&handle->hook_handles);
crypto/krb5/src/lib/kadm5/srv/server_init.c
266
ret = init_pwqual(handle);
crypto/krb5/src/lib/kadm5/srv/server_init.c
270
*server_handle = handle;
crypto/krb5/src/lib/kadm5/srv/server_init.c
271
handle = NULL;
crypto/krb5/src/lib/kadm5/srv/server_init.c
274
free_handle(handle);
crypto/krb5/src/lib/kadm5/srv/server_init.c
287
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/server_init.c
29
handle->db_args = NULL;
crypto/krb5/src/lib/kadm5/srv/server_init.c
291
ret = krb5_db_lock(handle->context, KRB5_DB_LOCKMODE_EXCLUSIVE);
crypto/krb5/src/lib/kadm5/srv/server_init.c
300
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/server_init.c
304
ret = krb5_db_unlock(handle->context);
crypto/krb5/src/lib/kadm5/srv/server_init.c
313
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/server_init.c
318
if ((ret = krb5_db_fini(handle->context)) ||
crypto/krb5/src/lib/kadm5/srv/server_init.c
319
(ret = krb5_db_open(handle->context, handle->db_args,
crypto/krb5/src/lib/kadm5/srv/server_init.c
327
int _kadm5_check_handle(void *handle)
crypto/krb5/src/lib/kadm5/srv/server_init.c
329
CHECK_HANDLE(handle);
crypto/krb5/src/lib/kadm5/srv/server_init.c
33
handle->db_args = calloc(sizeof(char*), count+1);
crypto/krb5/src/lib/kadm5/srv/server_init.c
34
if (handle->db_args == NULL) {
crypto/krb5/src/lib/kadm5/srv/server_init.c
348
kadm5_init_iprop(void *handle, char **db_args)
crypto/krb5/src/lib/kadm5/srv/server_init.c
353
iprop_h = handle;
crypto/krb5/src/lib/kadm5/srv/server_init.c
40
handle->db_args[count] = strdup(db_args[count]);
crypto/krb5/src/lib/kadm5/srv/server_init.c
41
if (handle->db_args[count] == NULL) {
crypto/krb5/src/lib/kadm5/srv/server_init.c
48
if (ret && handle->db_args) {
crypto/krb5/src/lib/kadm5/srv/server_init.c
49
for (count=0; handle->db_args[count]; count++)
crypto/krb5/src/lib/kadm5/srv/server_init.c
50
free(handle->db_args[count]);
crypto/krb5/src/lib/kadm5/srv/server_init.c
52
free(handle->db_args), handle->db_args = NULL;
crypto/krb5/src/lib/kadm5/srv/server_init.c
58
static void free_db_args(kadm5_server_handle_t handle)
crypto/krb5/src/lib/kadm5/srv/server_init.c
62
if (handle->db_args) {
crypto/krb5/src/lib/kadm5/srv/server_init.c
63
for (count=0; handle->db_args[count]; count++)
crypto/krb5/src/lib/kadm5/srv/server_init.c
64
free(handle->db_args[count]);
crypto/krb5/src/lib/kadm5/srv/server_init.c
66
free(handle->db_args), handle->db_args = NULL;
crypto/krb5/src/lib/kadm5/srv/server_init.c
71
free_handle(kadm5_server_handle_t handle)
crypto/krb5/src/lib/kadm5/srv/server_init.c
73
if (handle == NULL)
crypto/krb5/src/lib/kadm5/srv/server_init.c
76
destroy_pwqual(handle);
crypto/krb5/src/lib/kadm5/srv/server_init.c
77
k5_kadm5_hook_free_handles(handle->context, handle->hook_handles);
crypto/krb5/src/lib/kadm5/srv/server_init.c
78
ulog_fini(handle->context);
crypto/krb5/src/lib/kadm5/srv/server_init.c
79
krb5_db_fini(handle->context);
crypto/krb5/src/lib/kadm5/srv/server_init.c
80
krb5_free_principal(handle->context, handle->current_caller);
crypto/krb5/src/lib/kadm5/srv/server_init.c
81
kadm5_free_config_params(handle->context, &handle->params);
crypto/krb5/src/lib/kadm5/srv/server_init.c
82
free(handle->lhandle);
crypto/krb5/src/lib/kadm5/srv/server_init.c
83
free_db_args(handle);
crypto/krb5/src/lib/kadm5/srv/server_init.c
84
free(handle);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
112
krb5_error_code kdb_init_hist(kadm5_server_handle_t handle, char *r)
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
118
if ((ret = krb5_get_default_realm(handle->context, &realm)))
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
129
krb5_free_principal(handle->context, hist_princ);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
131
if ((ret = krb5_parse_name(handle->context, hist_name, &hist_princ)))
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
142
create_hist(kadm5_server_handle_t handle)
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
154
ks[0].ks_enctype = handle->params.enctype;
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
156
ret = kadm5_create_principal_3(handle, &ent, mask, 1, ks, NULL);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
162
return kadm5_randkey_principal_3(handle, ent.principal, 0, 1, ks,
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
174
kdb_get_hist_key(kadm5_server_handle_t handle, krb5_keyblock **keyblocks_out,
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
183
ret = kdb_get_entry(handle, hist_princ, &kdb, NULL);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
185
ret = create_hist(handle);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
188
ret = kdb_get_entry(handle, hist_princ, &kdb, NULL);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
195
k5_setmsg(handle->context, ret,
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
200
ret = krb5_dbe_find_mkey(handle->context, kdb, &mkey);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
208
ret = krb5_dbe_decrypt_key_data(handle->context, mkey,
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
220
kdb_free_entry(handle, kdb, NULL);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
221
kdb_free_keyblocks(handle, kblist);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
227
kdb_free_keyblocks(kadm5_server_handle_t handle, krb5_keyblock *keyblocks)
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
234
krb5_free_keyblock_contents(handle->context, kb);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
257
kdb_get_entry(kadm5_server_handle_t handle,
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
26
krb5_error_code kdb_init_master(kadm5_server_handle_t handle,
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
268
ret = krb5_db_get_principal(handle->context, principal, 0, &kdb);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
283
if ((ret = krb5_dbe_lookup_tl_data(handle->context, kdb, &tl_data))
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
301
krb5_db_free_principal(handle->context, kdb);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
327
kdb_free_entry(kadm5_server_handle_t handle,
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
334
krb5_db_free_principal(handle->context, kdb);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
364
kdb_put_entry(kadm5_server_handle_t handle,
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
372
ret = krb5_timeofday(handle->context, &now);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
376
ret = krb5_dbe_update_mod_princ_data(handle->context, kdb, now,
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
377
handle->current_caller);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
38
if ((ret = krb5_get_default_realm(handle->context, &realm)))
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
390
ret = krb5_dbe_update_tl_data(handle->context, kdb, &tl_data);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
400
ret = krb5_db_put_principal(handle->context, kdb);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
408
kdb_delete_entry(kadm5_server_handle_t handle, krb5_principal name)
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
412
ret = krb5_db_delete_principal(handle->context, name);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
432
kdb_iter_entry(kadm5_server_handle_t handle, char *match_entry,
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
44
krb5_free_principal(handle->context, master_princ);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
441
ret = krb5_db_iterate(handle->context, match_entry, kdb_iter_func, &id, 0);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
46
if ((ret = krb5_db_setup_mkey_name(handle->context,
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
47
handle->params.mkey_name,
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
51
krb5_free_keyblock_contents(handle->context, &master_keyblock);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
52
master_keyblock.enctype = handle->params.enctype;
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
59
ret = krb5_db_fetch_mkey(handle->context, master_princ,
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
62
handle->params.stash_file,
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
70
ret = krb5_db_fetch_mkey_list(handle->context, master_princ,
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
73
krb5_db_fini(handle->context);
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
84
kdb_get_active_mkey(kadm5_server_handle_t handle, krb5_kvno *act_kvno_out,
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
90
ret = krb5_dbe_fetch_act_key_list(handle->context, master_princ,
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
94
ret = krb5_dbe_find_act_mkey(handle->context, active_mkey_list,
crypto/krb5/src/lib/kadm5/srv/server_kdb.c
96
krb5_dbe_free_actkvno_list(handle->context, active_mkey_list);
crypto/krb5/src/lib/kadm5/srv/server_misc.c
107
passwd_check(kadm5_server_handle_t handle, const char *password,
crypto/krb5/src/lib/kadm5/srv/server_misc.c
115
ret = check_against_policy(handle, password, policy);
crypto/krb5/src/lib/kadm5/srv/server_misc.c
119
for (h = handle->qual_handles; *h != NULL; h++) {
crypto/krb5/src/lib/kadm5/srv/server_misc.c
120
ret = k5_pwqual_check(handle->context, *h, password, polname, princ);
crypto/krb5/src/lib/kadm5/srv/server_misc.c
122
const char *e = krb5_get_error_message(handle->context, ret);
crypto/krb5/src/lib/kadm5/srv/server_misc.c
123
const char *modname = k5_pwqual_name(handle->context, *h);
crypto/krb5/src/lib/kadm5/srv/server_misc.c
125
if (krb5_unparse_name(handle->context, princ, &princname) != 0)
crypto/krb5/src/lib/kadm5/srv/server_misc.c
131
krb5_free_error_message(handle->context, e);
crypto/krb5/src/lib/kadm5/srv/server_misc.c
140
destroy_pwqual(kadm5_server_handle_t handle)
crypto/krb5/src/lib/kadm5/srv/server_misc.c
142
k5_pwqual_free_handles(handle->context, handle->qual_handles);
crypto/krb5/src/lib/kadm5/srv/server_misc.c
143
handle->qual_handles = NULL;
crypto/krb5/src/lib/kadm5/srv/server_misc.c
38
init_pwqual(kadm5_server_handle_t handle)
crypto/krb5/src/lib/kadm5/srv/server_misc.c
45
ret = k5_plugin_register(handle->context, PLUGIN_INTERFACE_PWQUAL,
crypto/krb5/src/lib/kadm5/srv/server_misc.c
49
ret = k5_plugin_register(handle->context, PLUGIN_INTERFACE_PWQUAL,
crypto/krb5/src/lib/kadm5/srv/server_misc.c
53
ret = k5_plugin_register(handle->context, PLUGIN_INTERFACE_PWQUAL,
crypto/krb5/src/lib/kadm5/srv/server_misc.c
57
ret = k5_plugin_register(handle->context, PLUGIN_INTERFACE_PWQUAL,
crypto/krb5/src/lib/kadm5/srv/server_misc.c
63
if (handle->params.mask & KADM5_CONFIG_DICT_FILE)
crypto/krb5/src/lib/kadm5/srv/server_misc.c
64
dict_file = handle->params.dict_file;
crypto/krb5/src/lib/kadm5/srv/server_misc.c
65
ret = k5_pwqual_load(handle->context, dict_file, &list);
crypto/krb5/src/lib/kadm5/srv/server_misc.c
69
handle->qual_handles = list;
crypto/krb5/src/lib/kadm5/srv/server_misc.c
75
check_against_policy(kadm5_server_handle_t handle, const char *password,
crypto/krb5/src/lib/kadm5/srv/svr_chpass_util.c
12
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_chpass_util.c
15
return _kadm5_chpass_principal_util(handle, handle->lhandle, princ,
crypto/krb5/src/lib/kadm5/srv/svr_iters.c
162
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_iters.c
171
if ((ret = glob_to_regexp(exp, princ ? handle->params.realm : NULL,
crypto/krb5/src/lib/kadm5/srv/svr_iters.c
191
data.context = handle->context;
crypto/krb5/src/lib/kadm5/srv/svr_iters.c
192
ret = kdb_iter_entry(handle, exp, get_princs_iter, (void *) &data);
crypto/krb5/src/lib/kadm5/srv/svr_iters.c
194
ret = krb5_db_iter_policy(handle->context, exp, get_pols_iter, (void *)&data);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
136
if (handle->api_version >= KADM5_API_VERSION_4) {
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
161
if (handle->api_version >= KADM5_API_VERSION_3) {
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
176
if ((ret = krb5_db_create_policy(handle->context, &pent)))
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
185
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
191
krb5_clear_error_message(handle->context);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
197
ret = krb5_db_get_policy(handle->context, name, &entry);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
203
krb5_db_free_policy(handle->context, entry);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
204
ret = krb5_db_delete_policy(handle->context, name);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
256
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
263
krb5_clear_error_message(handle->context);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
286
ret = krb5_db_get_policy(handle->context, entry->policy, &p);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
296
krb5_db_free_policy(handle->context, p);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
303
krb5_db_free_policy(handle->context, p);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
311
krb5_db_free_policy(handle->context, p);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
318
krb5_db_free_policy(handle->context, p);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
323
if (handle->api_version >= KADM5_API_VERSION_3) {
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
331
if (handle->api_version >= KADM5_API_VERSION_4) {
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
351
ret = krb5_db_update_tl_data(handle->context, &p->n_tl_data,
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
358
ret = krb5_db_put_policy(handle->context, p);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
361
krb5_db_free_policy(handle->context, p);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
371
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
377
krb5_clear_error_message(handle->context);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
383
ret = krb5_db_get_policy(handle->context, name, &t);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
398
if (handle->api_version >= KADM5_API_VERSION_3) {
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
403
if (handle->api_version >= KADM5_API_VERSION_4) {
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
424
kadm5_free_policy_ent(handle, entry);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
425
krb5_db_free_policy(handle->context, t);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
61
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
68
krb5_clear_error_message(handle->context);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
83
ret = krb5_db_get_policy(handle->context, entry->policy, &check_pol);
crypto/krb5/src/lib/kadm5/srv/svr_policy.c
85
krb5_db_free_policy(handle->context, check_pol);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
106
get_policy(kadm5_server_handle_t handle, const char *name,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
114
ret = kadm5_get_policy(handle->lhandle, (char *)name, policy_out);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1231
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1240
krb5_clear_error_message(handle->context);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1247
if ((krb5_principal_compare(handle->context,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1251
if ((ret = kdb_get_entry(handle, principal, &kdb, &adb)))
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1259
ret = apply_keysalt_policy(handle, adb.policy, n_ks_tuple, ks_tuple,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1265
ret = get_policy(handle, adb.policy, &pol, &have_pol);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1271
ret = kdb_get_hist_key(handle, &hist_keyblocks, &hist_kvno);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1274
ret = create_history_entry(handle->context, &hist_keyblocks[0],
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
128
apply_keysalt_policy(kadm5_server_handle_t handle, const char *policy,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1282
if ((ret = passwd_check(handle, password, have_pol ? &pol : NULL,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1286
ret = kdb_get_active_mkey(handle, &act_kvno, &act_mkey);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1290
ret = krb5_dbe_cpw(handle->context, act_mkey, new_ks_tuple, new_n_ks_tuple,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1296
ret = krb5_dbe_update_mkvno(handle->context, kdb, act_kvno);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1302
ret = krb5_timeofday(handle->context, &now);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1308
ret = check_pw_reuse(handle->context, hist_keyblocks,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1318
ret = check_pw_reuse(handle->context, hist_keyblocks,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1327
ret = add_to_history(handle->context, hist_kvno, &adb, &pol,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1339
ret = krb5_dbe_update_last_pwd_change(handle->context, kdb, now);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1349
ret = k5_kadm5_hook_chpass(handle->context, handle->hook_handles,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1355
if ((ret = kdb_put_entry(handle, kdb, &adb)))
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1358
(void) k5_kadm5_hook_chpass(handle->context, handle->hook_handles,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1365
free_history_entry(handle->context, &hist);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1366
kdb_free_entry(handle, kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1367
kdb_free_keyblocks(handle, hist_keyblocks);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1369
if (have_pol && (ret2 = kadm5_free_policy_ent(handle->lhandle, &pol))
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1401
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1412
krb5_clear_error_message(handle->context);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1417
if ((ret = kdb_get_entry(handle, principal, &kdb, &adb)))
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1425
ret = apply_keysalt_policy(handle, adb.policy, n_ks_tuple, ks_tuple,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1430
if (krb5_principal_compare(handle->context, principal, hist_princ)) {
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1440
ret = kdb_get_active_mkey(handle, &act_kvno, &act_mkey);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1444
ret = krb5_dbe_crk(handle->context, act_mkey, new_ks_tuple, new_n_ks_tuple,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1449
ret = krb5_dbe_update_mkvno(handle->context, kdb, act_kvno);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1455
ret = krb5_timeofday(handle->context, &now);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1460
ret = get_policy(handle, adb.policy, &pol, &have_pol);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1469
ret = krb5_dbe_update_last_pwd_change(handle->context, kdb, now);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1479
ret = decrypt_key_data(handle->context, n_new_keys, kdb->key_data,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
148
ret = get_policy(handle, policy, &polent, &have_polent);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1485
ret = k5_kadm5_hook_chpass(handle->context, handle->hook_handles,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1490
if ((ret = kdb_put_entry(handle, kdb, &adb)))
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1493
(void) k5_kadm5_hook_chpass(handle->context, handle->hook_handles,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1499
kdb_free_entry(handle, kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1501
kadm5_free_policy_ent(handle->lhandle, &pol);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
156
n_ks_tuple = handle->params.num_keysalts;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
157
ks_tuple = handle->params.keysalts;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1593
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1599
krb5_clear_error_message(handle->context);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1606
krb5_principal_compare(handle->context, principal, hist_princ))
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1616
ret = kdb_get_entry(handle, principal, &kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1642
ret = make_ks_from_key_data(handle->context, key_data, n_key_data,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1647
ret = apply_keysalt_policy(handle, adb.policy, n_key_data, ks_from_keys,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1655
ret = krb5_c_enctype_compare(handle->context,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1681
ret = kdb_get_active_mkey(handle, NULL, &act_mkey);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1685
ret = krb5_dbe_encrypt_key_data(handle->context, act_mkey,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1709
cleanup_key_data(handle->context, kdb->n_key_data, kdb->key_data);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1717
ret = krb5_timeofday(handle->context, &now);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1722
ret = get_policy(handle, adb.policy, &pol, &have_pol);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1731
ret = krb5_dbe_update_last_pwd_change(handle->context, kdb, now);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1738
ret = kdb_put_entry(handle, kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1745
cleanup_key_data(handle->context, n_new_key_data, new_key_data);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1746
kdb_free_entry(handle, kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1748
kadm5_free_policy_ent(handle->lhandle, &pol);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1766
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1775
if ((ret = kdb_get_entry(handle, principal, &kdb, &adb)))
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1789
ret = krb5_dbe_decrypt_key_data(handle->context, NULL,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1805
kdb_free_entry(handle, kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1806
kadm5_free_kadm5_key_data(handle->context, nkeys, key_data);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1884
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1898
if ((ret = krb5_dbe_find_enctype(handle->context, &dbent, ktype,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1904
if ((ret = krb5_dbe_find_mkey(handle->context, &dbent, &mkey_ptr))) {
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1907
if (krb5_db_fetch_mkey_list(handle->context, master_princ,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1909
if ((ret = krb5_dbe_find_mkey(handle->context, &dbent,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1918
if ((ret = krb5_dbe_decrypt_key_data(handle->context, NULL, key_data,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1941
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1954
ret = kdb_get_entry(handle, principal, &kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1959
keepkvno = krb5_db_get_key_data_kvno(handle->context, kdb->n_key_data,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1986
cleanup_key_data(handle->context, n_old_keydata, old_keydata);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1989
ret = kdb_put_entry(handle, kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
1994
kdb_free_entry(handle, kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2002
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2012
ret = kdb_get_entry(handle, principal, &kdb, NULL);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2016
ret = krb5_dbe_get_strings(handle->context, kdb, strings_out, count_out);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2017
kdb_free_entry(handle, kdb, NULL);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2025
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2034
ret = kdb_get_entry(handle, principal, &kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2038
ret = krb5_dbe_set_string(handle->context, kdb, key, value);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2043
ret = kdb_put_entry(handle, kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2046
kdb_free_entry(handle, kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2057
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2062
if (!krb5_realm_compare(handle->context, alias, target))
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2065
ret = kdb_get_entry(handle, alias, &kdb, NULL);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2067
kdb_free_entry(handle, kdb, NULL);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2071
ret = k5_kadm5_hook_alias(handle->context, handle->hook_handles,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2076
ret = krb5_dbe_make_alias_entry(handle->context, alias, target, &kdb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2079
ret = kdb_put_entry(handle, kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2080
krb5_db_free_principal(handle->context, kdb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
2084
(void) k5_kadm5_hook_alias(handle->context, handle->hook_handles,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
221
kadm5_free_policy_ent(handle->lhandle, &polent);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
296
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
304
krb5_clear_error_message(handle->context);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
338
ret = kdb_get_entry(handle, entry->principal, &kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
344
kdb_free_entry(handle, kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
365
ret = get_policy(handle, entry->policy, &polent, &have_polent);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
370
ret = passwd_check(handle, password, have_polent ? &polent : NULL,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
380
if ((ret = krb5_timeofday(handle->context, &now)))
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
389
kdb->attributes = handle->params.flags;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
394
kdb->max_life = handle->params.max_life;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
399
kdb->max_renewable_life = handle->params.max_rlife;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
404
kdb->expiration = handle->params.expiration;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
422
ret = krb5_copy_principal(handle->context, entry->principal, &kdb->princ);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
426
if ((ret = krb5_dbe_update_last_pwd_change(handle->context, kdb, now)))
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
434
ret = krb5_dbe_update_tl_data(handle->context, kdb, tl_data_tail);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
445
ret = apply_keysalt_policy(handle, entry->policy, n_ks_tuple, ks_tuple,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
452
ret = kdb_get_active_mkey(handle, &act_kvno, &act_mkey);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
460
ret = krb5_dbe_cpw(handle->context, act_mkey, new_ks_tuple,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
466
ret = krb5_dbe_crk(handle->context, &master_keyblock,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
477
ret = krb5_dbe_update_mkvno(handle->context, kdb, act_kvno);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
481
ret = k5_kadm5_hook_create(handle->context, handle->hook_handles,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
504
ret = kdb_put_entry(handle, kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
506
(void) k5_kadm5_hook_create(handle->context, handle->hook_handles,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
512
krb5_db_free_principal(handle->context, kdb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
514
(void) kadm5_free_policy_ent(handle->lhandle, &polent);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
523
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
527
krb5_clear_error_message(handle->context);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
533
if (krb5_principal_compare(handle->context, principal, master_princ))
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
536
ret = k5_kadm5_hook_remove(handle->context, handle->hook_handles,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
541
ret = kdb_delete_entry(handle, principal);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
544
(void) k5_kadm5_hook_remove(handle->context,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
545
handle->hook_handles,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
561
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
565
krb5_clear_error_message(handle->context);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
590
ret = kdb_get_entry(handle, entry->principal, &kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
602
ret = get_policy(handle, entry->policy, &pol, &have_pol);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
619
ret = krb5_dbe_lookup_last_pwd_change(handle->context, kdb,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
658
ret = krb5_dbe_update_tl_data(handle->context, kdb, tl);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
680
ret = k5_kadm5_hook_modify(handle->context, handle->hook_handles,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
685
ret = kdb_put_entry(handle, kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
687
(void) k5_kadm5_hook_modify(handle->context, handle->hook_handles,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
693
ret2 = kadm5_free_policy_ent(handle->lhandle, &pol);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
696
kdb_free_entry(handle, kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
707
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
711
krb5_clear_error_message(handle->context);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
716
if ((ret = kdb_get_entry(handle, target, &kdb, &adb)) == 0) {
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
717
kdb_free_entry(handle, kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
721
ret = k5_kadm5_hook_rename(handle->context, handle->hook_handles,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
726
ret = krb5_db_rename_principal(handle->context, source, target);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
731
ret = kdb_get_entry(handle, target, &kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
735
ret = kdb_put_entry(handle, kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
736
kdb_free_entry(handle, kdb, &adb);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
740
(void) k5_kadm5_hook_rename(handle->context, handle->hook_handles,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
755
kadm5_server_handle_t handle = server_handle;
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
759
krb5_clear_error_message(handle->context);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
773
if ((ret = kdb_get_entry(handle, principal, &kdb, &adb)))
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
788
(ret = krb5_copy_principal(handle->context, kdb->princ,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
797
(ret = krb5_dbe_lookup_last_pwd_change(handle->context, kdb,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
810
ret = krb5_dbe_lookup_mod_princ_data(handle->context, kdb,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
820
krb5_free_principal(handle->context, entry->mod_name);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
834
ret = krb5_dbe_get_mkvno(handle->context, kdb, &entry->mkvno);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
878
ret = krb5_copy_key_data_contents(handle->context,
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
889
krb5_free_principal(handle->context, entry->principal);
crypto/krb5/src/lib/kadm5/srv/svr_principal.c
892
kdb_free_entry(handle, kdb, &adb);
crypto/krb5/src/lib/kadm5/t_kadm5.c
1008
void *handle = get_handle(user);
crypto/krb5/src/lib/kadm5/t_kadm5.c
1010
check_fail(kadm5_modify_policy(handle, ent, mask), code);
crypto/krb5/src/lib/kadm5/t_kadm5.c
1011
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
1015
mpol_test_compare(void *handle, kadm5_policy_ent_t ent, uint32_t mask)
crypto/krb5/src/lib/kadm5/t_kadm5.c
1017
mpol_test_fail(handle, ent, mask, 0);
crypto/krb5/src/lib/kadm5/t_kadm5.c
1098
void *handle = get_handle(user);
crypto/krb5/src/lib/kadm5/t_kadm5.c
1100
check_fail(kadm5_modify_principal(handle, ent, mask), code);
crypto/krb5/src/lib/kadm5/t_kadm5.c
1101
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
111
void *handle = get_handle("admin");
crypto/krb5/src/lib/kadm5/t_kadm5.c
1114
void *handle;
crypto/krb5/src/lib/kadm5/t_kadm5.c
116
check(kadm5_create_policy(handle, &ent, KADM5_POLICY));
crypto/krb5/src/lib/kadm5/t_kadm5.c
117
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
1195
handle = get_handle("admin");
crypto/krb5/src/lib/kadm5/t_kadm5.c
1198
check(kadm5_modify_principal(handle, &ent,
crypto/krb5/src/lib/kadm5/t_kadm5.c
1201
check(kadm5_get_principal(handle, princ, &ent,
crypto/krb5/src/lib/kadm5/t_kadm5.c
1209
check(kadm5_free_principal_ent(handle, &ent));
crypto/krb5/src/lib/kadm5/t_kadm5.c
1210
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
1223
void *handle = get_handle(user);
crypto/krb5/src/lib/kadm5/t_kadm5.c
1225
check_fail(kadm5_randkey_principal(handle, princ, NULL, NULL), code);
crypto/krb5/src/lib/kadm5/t_kadm5.c
1226
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
123
void *handle = get_handle("admin");
crypto/krb5/src/lib/kadm5/t_kadm5.c
1238
void *handle;
crypto/krb5/src/lib/kadm5/t_kadm5.c
1249
handle = get_handle("admin");
crypto/krb5/src/lib/kadm5/t_kadm5.c
125
check(kadm5_delete_policy(handle, name));
crypto/krb5/src/lib/kadm5/t_kadm5.c
1250
check(kadm5_randkey_principal(handle, princ, &keys, &n_keys));
crypto/krb5/src/lib/kadm5/t_kadm5.c
1251
check(kadm5_get_principal(handle, princ, &ent, KADM5_KEY_DATA));
crypto/krb5/src/lib/kadm5/t_kadm5.c
1258
check(kadm5_free_principal_ent(handle, &ent));
crypto/krb5/src/lib/kadm5/t_kadm5.c
1259
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
126
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
1282
handle = get_handle("$admin");
crypto/krb5/src/lib/kadm5/t_kadm5.c
1283
check(kadm5_randkey_principal(handle, admin_princ, NULL, NULL));
crypto/krb5/src/lib/kadm5/t_kadm5.c
1284
check(kadm5_chpass_principal(handle, admin_princ, ADMIN_PASSWORD));
crypto/krb5/src/lib/kadm5/t_kadm5.c
1285
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
133
void *handle = get_handle("admin");
crypto/krb5/src/lib/kadm5/t_kadm5.c
135
check(kadm5_get_policy(handle, x->policy, &g));
crypto/krb5/src/lib/kadm5/t_kadm5.c
155
check(kadm5_free_policy_ent(handle, &g));
crypto/krb5/src/lib/kadm5/t_kadm5.c
156
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
162
void *handle = get_handle("admin");
crypto/krb5/src/lib/kadm5/t_kadm5.c
171
check(kadm5_create_principal(handle, &ent, mask, "pw"));
crypto/krb5/src/lib/kadm5/t_kadm5.c
172
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
178
void *handle = get_handle("admin");
crypto/krb5/src/lib/kadm5/t_kadm5.c
180
check(kadm5_delete_principal(handle, princ));
crypto/krb5/src/lib/kadm5/t_kadm5.c
181
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
199
void *handle = get_handle("admin");
crypto/krb5/src/lib/kadm5/t_kadm5.c
203
check(kadm5_get_principal(handle, x->principal, &g,
crypto/krb5/src/lib/kadm5/t_kadm5.c
225
kadm5_get_policy(handle, g.policy, &pol) == 0) {
crypto/krb5/src/lib/kadm5/t_kadm5.c
233
check(kadm5_free_policy_ent(handle, &pol));
crypto/krb5/src/lib/kadm5/t_kadm5.c
242
check(kadm5_free_principal_ent(handle, &g));
crypto/krb5/src/lib/kadm5/t_kadm5.c
243
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
266
void *handle = get_handle(user);
crypto/krb5/src/lib/kadm5/t_kadm5.c
268
check_fail(kadm5_chpass_principal(handle, princ, pass), code);
crypto/krb5/src/lib/kadm5/t_kadm5.c
269
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
284
void *handle;
crypto/krb5/src/lib/kadm5/t_kadm5.c
290
handle = get_handle("admin");
crypto/krb5/src/lib/kadm5/t_kadm5.c
291
check(kadm5_chpass_principal(handle, princ, "newpassword"));
crypto/krb5/src/lib/kadm5/t_kadm5.c
292
check(kadm5_get_principal(handle, princ, &ent, KADM5_KEY_DATA));
crypto/krb5/src/lib/kadm5/t_kadm5.c
295
check(kadm5_free_principal_ent(handle, &ent));
crypto/krb5/src/lib/kadm5/t_kadm5.c
296
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
322
void *handle = get_handle(user);
crypto/krb5/src/lib/kadm5/t_kadm5.c
324
check_fail(kadm5_create_policy(handle, ent, mask | KADM5_POLICY), code);
crypto/krb5/src/lib/kadm5/t_kadm5.c
325
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
339
void *handle;
crypto/krb5/src/lib/kadm5/t_kadm5.c
349
handle = get_handle("admin");
crypto/krb5/src/lib/kadm5/t_kadm5.c
350
check_fail(kadm5_create_policy(handle, &ent, 0), KADM5_BAD_MASK);
crypto/krb5/src/lib/kadm5/t_kadm5.c
351
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
426
void *handle = get_handle(user);
crypto/krb5/src/lib/kadm5/t_kadm5.c
428
check_fail(kadm5_create_principal(handle, ent, mask | KADM5_PRINCIPAL,
crypto/krb5/src/lib/kadm5/t_kadm5.c
430
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
445
void *handle;
crypto/krb5/src/lib/kadm5/t_kadm5.c
464
handle = get_handle("admin");
crypto/krb5/src/lib/kadm5/t_kadm5.c
465
check_fail(kadm5_create_principal(handle, &ent, 0, "pw"), KADM5_BAD_MASK);
crypto/krb5/src/lib/kadm5/t_kadm5.c
466
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
525
void *handle = get_handle(user);
crypto/krb5/src/lib/kadm5/t_kadm5.c
527
check_fail(kadm5_delete_policy(handle, name), code);
crypto/krb5/src/lib/kadm5/t_kadm5.c
528
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
577
void *handle = get_handle(user);
crypto/krb5/src/lib/kadm5/t_kadm5.c
579
check_fail(kadm5_delete_principal(handle, princ), code);
crypto/krb5/src/lib/kadm5/t_kadm5.c
580
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
621
void *handle = get_handle(user);
crypto/krb5/src/lib/kadm5/t_kadm5.c
624
check(kadm5_get_policy(handle, name, &ent));
crypto/krb5/src/lib/kadm5/t_kadm5.c
626
check(kadm5_free_policy_ent(handle, &ent));
crypto/krb5/src/lib/kadm5/t_kadm5.c
627
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
633
void *handle = get_handle(user);
crypto/krb5/src/lib/kadm5/t_kadm5.c
636
check_fail(kadm5_get_policy(handle, name, &ent), code);
crypto/krb5/src/lib/kadm5/t_kadm5.c
637
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
665
void *handle = get_handle(user);
crypto/krb5/src/lib/kadm5/t_kadm5.c
668
check(kadm5_get_principal(handle, princ, &ent,
crypto/krb5/src/lib/kadm5/t_kadm5.c
671
check(kadm5_free_principal_ent(handle, &ent));
crypto/krb5/src/lib/kadm5/t_kadm5.c
672
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
678
void *handle = get_handle(user);
crypto/krb5/src/lib/kadm5/t_kadm5.c
681
check_fail(kadm5_get_principal(handle, princ, &ent,
crypto/krb5/src/lib/kadm5/t_kadm5.c
683
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
689
void *handle;
crypto/krb5/src/lib/kadm5/t_kadm5.c
718
handle = get_handle("admin");
crypto/krb5/src/lib/kadm5/t_kadm5.c
719
check(kadm5_get_principal(handle, princ, &ent,
crypto/krb5/src/lib/kadm5/t_kadm5.c
724
check(kadm5_free_principal_ent(handle, &ent));
crypto/krb5/src/lib/kadm5/t_kadm5.c
727
check(kadm5_get_principal(handle, princ, &ent,
crypto/krb5/src/lib/kadm5/t_kadm5.c
73
void *handle;
crypto/krb5/src/lib/kadm5/t_kadm5.c
732
check(kadm5_free_principal_ent(handle, &ent));
crypto/krb5/src/lib/kadm5/t_kadm5.c
733
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
754
void *handle;
crypto/krb5/src/lib/kadm5/t_kadm5.c
770
0x65432101, api, NULL, &handle),
crypto/krb5/src/lib/kadm5/t_kadm5.c
773
1, api, NULL, &handle), KADM5_BAD_STRUCT_VERSION);
crypto/krb5/src/lib/kadm5/t_kadm5.c
777
KADM5_STRUCT_VERSION_MASK, api, NULL, &handle),
crypto/krb5/src/lib/kadm5/t_kadm5.c
781
&handle), KADM5_NEW_STRUCT_VERSION);
crypto/krb5/src/lib/kadm5/t_kadm5.c
785
KADM5_STRUCT_VERSION, 0x65432100, NULL, &handle),
crypto/krb5/src/lib/kadm5/t_kadm5.c
788
KADM5_STRUCT_VERSION, 4, NULL, &handle),
crypto/krb5/src/lib/kadm5/t_kadm5.c
794
&handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
799
&handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
805
api, KADM5_STRUCT_VERSION, NULL, &handle),
crypto/krb5/src/lib/kadm5/t_kadm5.c
810
handle = get_handle("admin");
crypto/krb5/src/lib/kadm5/t_kadm5.c
811
check(kadm5_create_principal(handle, &ent, KADM5_PRINCIPAL, "pw"));
crypto/krb5/src/lib/kadm5/t_kadm5.c
812
check(kadm5_get_principal(handle, princ, &gent,
crypto/krb5/src/lib/kadm5/t_kadm5.c
815
check(kadm5_delete_principal(handle, princ));
crypto/krb5/src/lib/kadm5/t_kadm5.c
816
check(kadm5_free_principal_ent(handle, &gent));
crypto/krb5/src/lib/kadm5/t_kadm5.c
817
free_handle(handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
825
KADM5_STRUCT_VERSION, api, NULL, &handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
832
KADM5_STRUCT_VERSION, api, NULL, &handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
839
KADM5_STRUCT_VERSION, api, NULL, &handle);
crypto/krb5/src/lib/kadm5/t_kadm5.c
847
&params, KADM5_STRUCT_VERSION, api, NULL, &handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
848
check(kadm5_destroy(handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
854
NULL, &handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
855
check(kadm5_destroy(handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
866
&params, KADM5_STRUCT_VERSION, api, NULL, &handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
867
check(kadm5_destroy(handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
873
&handle), KADM5_RPC_ERROR);
crypto/krb5/src/lib/kadm5/t_kadm5.c
88
KADM5_STRUCT_VERSION, api, NULL, &handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
880
&handle), KADM5_CANT_RESOLVE);
crypto/krb5/src/lib/kadm5/t_kadm5.c
886
&handle), KRB5_FCC_NOFILE);
crypto/krb5/src/lib/kadm5/t_kadm5.c
89
return handle;
crypto/krb5/src/lib/kadm5/t_kadm5.c
892
&handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
893
check(kadm5_destroy(handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
899
KADM5_STRUCT_VERSION, api, NULL, &handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
900
check(kadm5_destroy(handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
907
&handle), KRB5_CC_NOTFOUND);
crypto/krb5/src/lib/kadm5/t_kadm5.c
911
KADM5_STRUCT_VERSION, api, NULL, &handle),
crypto/krb5/src/lib/kadm5/t_kadm5.c
916
KADM5_STRUCT_VERSION, api, NULL, &handle),
crypto/krb5/src/lib/kadm5/t_kadm5.c
921
KADM5_STRUCT_VERSION, api, NULL, &handle),
crypto/krb5/src/lib/kadm5/t_kadm5.c
926
NULL, KADM5_STRUCT_VERSION, api, NULL, &handle),
crypto/krb5/src/lib/kadm5/t_kadm5.c
93
free_handle(void *handle)
crypto/krb5/src/lib/kadm5/t_kadm5.c
931
NULL, KADM5_STRUCT_VERSION, api, NULL, &handle),
crypto/krb5/src/lib/kadm5/t_kadm5.c
936
NULL, KADM5_STRUCT_VERSION, api, NULL, &handle),
crypto/krb5/src/lib/kadm5/t_kadm5.c
942
api, NULL, &handle),
crypto/krb5/src/lib/kadm5/t_kadm5.c
948
api, NULL, &handle), KRB5_REALM_UNKNOWN);
crypto/krb5/src/lib/kadm5/t_kadm5.c
95
if (handle != NULL)
crypto/krb5/src/lib/kadm5/t_kadm5.c
953
api, NULL, &handle), KRB5_REALM_UNKNOWN);
crypto/krb5/src/lib/kadm5/t_kadm5.c
96
check(kadm5_destroy(handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
962
&handle), KRB5_KDB_CANTREAD_STORED);
crypto/krb5/src/lib/kadm5/t_kadm5.c
972
&params, KADM5_STRUCT_VERSION, api, NULL, &handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
973
check(kadm5_create_principal(handle, &ent, KADM5_PRINCIPAL, "pw"));
crypto/krb5/src/lib/kadm5/t_kadm5.c
974
check(kadm5_get_principal(handle, princ, &gent,
crypto/krb5/src/lib/kadm5/t_kadm5.c
981
check(kadm5_delete_principal(handle, princ));
crypto/krb5/src/lib/kadm5/t_kadm5.c
982
check(kadm5_free_principal_ent(handle, &gent));
crypto/krb5/src/lib/kadm5/t_kadm5.c
983
check(kadm5_destroy(handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
987
KADM5_STRUCT_VERSION, api, NULL, &handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
988
check(kadm5_destroy(handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
992
KADM5_STRUCT_VERSION, api, NULL, &handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
993
check(kadm5_destroy(handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
997
KADM5_STRUCT_VERSION, api, NULL, &handle));
crypto/krb5/src/lib/kadm5/t_kadm5.c
998
check(kadm5_destroy(handle));
crypto/krb5/src/lib/krb5/ccache/ccselect.c
101
handle->data = NULL;
crypto/krb5/src/lib/krb5/ccache/ccselect.c
102
ret = handle->vt.init(context, &handle->data, &handle->priority);
crypto/krb5/src/lib/krb5/ccache/ccselect.c
104
TRACE_CCSELECT_INIT_FAIL(context, handle->vt.name, ret);
crypto/krb5/src/lib/krb5/ccache/ccselect.c
105
free(handle);
crypto/krb5/src/lib/krb5/ccache/ccselect.c
108
list[count++] = handle;
crypto/krb5/src/lib/krb5/ccache/ccselect.c
58
struct ccselect_module_handle **list = NULL, *handle;
crypto/krb5/src/lib/krb5/ccache/ccselect.c
92
handle = k5alloc(sizeof(*handle), &ret);
crypto/krb5/src/lib/krb5/ccache/ccselect.c
93
if (handle == NULL)
crypto/krb5/src/lib/krb5/ccache/ccselect.c
95
ret = (*mod)(context, 1, 1, (krb5_plugin_vtable)&handle->vt);
crypto/krb5/src/lib/krb5/ccache/ccselect.c
98
free(handle);
crypto/krb5/src/lib/krb5/krb/plugin.c
357
struct plugin_file_handle *handle = NULL;
crypto/krb5/src/lib/krb5/krb/plugin.c
365
ret = krb5int_open_plugin(map->dyn_path, &handle, &context->err);
crypto/krb5/src/lib/krb5/krb/plugin.c
371
ret = krb5int_get_plugin_func(handle, symname, &initvt_fn, &context->err);
crypto/krb5/src/lib/krb5/krb/plugin.c
378
map->dyn_handle = handle;
crypto/krb5/src/lib/krb5/krb/plugin.c
384
if (handle != NULL)
crypto/krb5/src/lib/krb5/krb/plugin.c
385
krb5int_close_plugin(handle);
crypto/krb5/src/lib/krb5/os/hostrealm.c
101
struct hostrealm_module_handle **list = NULL, *handle;
crypto/krb5/src/lib/krb5/os/hostrealm.c
118
handle = k5alloc(sizeof(*handle), &ret);
crypto/krb5/src/lib/krb5/os/hostrealm.c
119
if (handle == NULL)
crypto/krb5/src/lib/krb5/os/hostrealm.c
121
ret = (*mod)(context, 1, 1, (krb5_plugin_vtable)&handle->vt);
crypto/krb5/src/lib/krb5/os/hostrealm.c
124
free(handle);
crypto/krb5/src/lib/krb5/os/hostrealm.c
128
handle->data = NULL;
crypto/krb5/src/lib/krb5/os/hostrealm.c
129
if (handle->vt.init != NULL) {
crypto/krb5/src/lib/krb5/os/hostrealm.c
130
ret = handle->vt.init(context, &handle->data);
crypto/krb5/src/lib/krb5/os/hostrealm.c
132
TRACE_HOSTREALM_INIT_FAIL(context, handle->vt.name, ret);
crypto/krb5/src/lib/krb5/os/hostrealm.c
133
free(handle);
crypto/krb5/src/lib/krb5/os/hostrealm.c
137
list[count++] = handle;
crypto/krb5/src/lib/krb5/os/localauth.c
148
struct localauth_module_handle **list = NULL, *handle;
crypto/krb5/src/lib/krb5/os/localauth.c
165
handle = k5alloc(sizeof(*handle), &ret);
crypto/krb5/src/lib/krb5/os/localauth.c
166
if (handle == NULL)
crypto/krb5/src/lib/krb5/os/localauth.c
168
ret = (*mod)(context, 1, 1, (krb5_plugin_vtable)&handle->vt);
crypto/krb5/src/lib/krb5/os/localauth.c
171
free(handle);
crypto/krb5/src/lib/krb5/os/localauth.c
175
if (check_conflict(context, list, handle))
crypto/krb5/src/lib/krb5/os/localauth.c
178
handle->data = NULL;
crypto/krb5/src/lib/krb5/os/localauth.c
179
if (handle->vt.init != NULL) {
crypto/krb5/src/lib/krb5/os/localauth.c
180
ret = handle->vt.init(context, &handle->data);
crypto/krb5/src/lib/krb5/os/localauth.c
182
TRACE_LOCALAUTH_INIT_FAIL(context, handle->vt.name, ret);
crypto/krb5/src/lib/krb5/os/localauth.c
183
free(handle);
crypto/krb5/src/lib/krb5/os/localauth.c
187
list[count++] = handle;
crypto/krb5/src/lib/krb5/os/localauth.c
87
struct localauth_module_handle *handle)
crypto/krb5/src/lib/krb5/os/localauth.c
92
for (tp = handle->vt.an2ln_types; tp != NULL && *tp != NULL; tp++) {
crypto/krb5/src/lib/krb5/os/localauth.c
95
TRACE_LOCALAUTH_INIT_CONFLICT(context, *tp, handle->vt.name,
crypto/krb5/src/lib/krb5/os/prompter.c
223
HANDLE handle;
crypto/krb5/src/lib/krb5/os/prompter.c
230
handle = GetStdHandle(STD_INPUT_HANDLE);
crypto/krb5/src/lib/krb5/os/prompter.c
231
if (handle == INVALID_HANDLE_VALUE)
crypto/krb5/src/lib/krb5/os/prompter.c
233
if (!GetConsoleMode(handle, &old_mode))
crypto/krb5/src/lib/krb5/os/prompter.c
240
if (!SetConsoleMode(handle, new_mode))
crypto/krb5/src/lib/krb5/os/prompter.c
243
if (!SetConsoleMode(handle, old_mode))
crypto/krb5/src/lib/krb5/os/prompter.c
258
if (!SetConsoleMode(handle, new_mode)) {
crypto/krb5/src/lib/krb5/os/prompter.c
290
if (!SetConsoleMode(handle, old_mode)) {
crypto/krb5/src/lib/krb5/os/read_pwd.c
123
HANDLE handle;
crypto/krb5/src/lib/krb5/os/read_pwd.c
130
handle = GetStdHandle(STD_INPUT_HANDLE);
crypto/krb5/src/lib/krb5/os/read_pwd.c
131
if (handle == INVALID_HANDLE_VALUE)
crypto/krb5/src/lib/krb5/os/read_pwd.c
133
if (!GetConsoleMode(handle, &old_mode))
crypto/krb5/src/lib/krb5/os/read_pwd.c
140
if (!SetConsoleMode(handle, new_mode))
crypto/krb5/src/lib/krb5/os/read_pwd.c
189
(void) SetConsoleMode(handle, old_mode);
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
786
uint32_t handle;
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
788
memcpy(&handle, client_handle->value, 4);
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
790
L_PRINTF(2, ("get_client: looking for client %d\n", handle));
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
794
if (c->client->key == handle)
crypto/krb5/src/plugins/authdata/greet_server/greet_auth.c
138
vt->handle = greet_authdata;
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c
302
krb5_ldap_server_handle *handle = *ldap_server_handle;
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c
304
ldap_unbind_ext_s(handle->ldap_handle, NULL, NULL);
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c
305
if (ldap_initialize(&handle->ldap_handle,
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c
306
handle->server_info->server_name) != LDAP_SUCCESS ||
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c
307
authenticate(ldap_context, handle) != 0) {
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
3401
struct plugin_file_handle *handle = NULL;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
3409
err = krb5int_open_plugin(modname, &handle, &einfo);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
3415
err = krb5int_get_plugin_func(handle, "C_GetFunctionList", &sym, &einfo);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
3428
*handle_out = handle;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
3440
if (handle != NULL)
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
3441
krb5int_close_plugin(handle);
crypto/krb5/src/plugins/preauth/securid_sam2/securid2.c
430
trackp->handle = ntohl(trackp->handle);
crypto/krb5/src/plugins/preauth/securid_sam2/securid2.c
441
retval = SD_Pin(trackp->handle, passcode);
crypto/krb5/src/plugins/preauth/securid_sam2/securid2.c
442
SD_Close(trackp->handle);
crypto/krb5/src/plugins/preauth/securid_sam2/securid2.c
482
sid_track_data.handle = trackp->handle;
crypto/krb5/src/plugins/preauth/securid_sam2/securid2.c
515
trackp->handle = ntohl(trackp->handle);
crypto/krb5/src/plugins/preauth/securid_sam2/securid2.c
516
retval = SD_Next(trackp->handle, passcode);
crypto/krb5/src/plugins/preauth/securid_sam2/securid2.c
517
SD_Close(trackp->handle);
crypto/krb5/src/plugins/preauth/securid_sam2/securid2.c
52
SDI_HANDLE handle;
crypto/krb5/src/plugins/preauth/securid_sam2/securid2.c
617
sid_track_data.handle = htonl(sd_handle);
crypto/krb5/src/plugins/tls/k5tls/openssl.c
296
k5_tls_handle handle;
crypto/krb5/src/plugins/tls/k5tls/openssl.c
303
handle = SSL_get_ex_data(ssl, ex_handle_id);
crypto/krb5/src/plugins/tls/k5tls/openssl.c
304
assert(context != NULL && handle != NULL);
crypto/krb5/src/plugins/tls/k5tls/openssl.c
332
expected_name = handle->servername;
crypto/krb5/src/plugins/tls/k5tls/openssl.c
439
k5_tls_handle handle = NULL;
crypto/krb5/src/plugins/tls/k5tls/openssl.c
484
handle = malloc(sizeof(*handle));
crypto/krb5/src/plugins/tls/k5tls/openssl.c
485
if (handle == NULL || !SSL_set_ex_data(ssl, ex_handle_id, handle))
crypto/krb5/src/plugins/tls/k5tls/openssl.c
488
handle->ssl = ssl;
crypto/krb5/src/plugins/tls/k5tls/openssl.c
489
handle->servername = strdup(servername);
crypto/krb5/src/plugins/tls/k5tls/openssl.c
490
if (handle->servername == NULL)
crypto/krb5/src/plugins/tls/k5tls/openssl.c
492
*handle_out = handle;
crypto/krb5/src/plugins/tls/k5tls/openssl.c
498
free(handle);
crypto/krb5/src/plugins/tls/k5tls/openssl.c
505
write_tls(krb5_context context, k5_tls_handle handle, const void *data,
crypto/krb5/src/plugins/tls/k5tls/openssl.c
511
if (!SSL_set_ex_data(handle->ssl, ex_context_id, context))
crypto/krb5/src/plugins/tls/k5tls/openssl.c
513
nwritten = SSL_write(handle->ssl, data, len);
crypto/krb5/src/plugins/tls/k5tls/openssl.c
514
(void)SSL_set_ex_data(handle->ssl, ex_context_id, NULL);
crypto/krb5/src/plugins/tls/k5tls/openssl.c
518
e = SSL_get_error(handle->ssl, nwritten);
crypto/krb5/src/plugins/tls/k5tls/openssl.c
528
read_tls(krb5_context context, k5_tls_handle handle, void *data,
crypto/krb5/src/plugins/tls/k5tls/openssl.c
537
if (!SSL_set_ex_data(handle->ssl, ex_context_id, context))
crypto/krb5/src/plugins/tls/k5tls/openssl.c
539
nread = SSL_read(handle->ssl, data, data_size);
crypto/krb5/src/plugins/tls/k5tls/openssl.c
540
(void)SSL_set_ex_data(handle->ssl, ex_context_id, NULL);
crypto/krb5/src/plugins/tls/k5tls/openssl.c
546
e = SSL_get_error(handle->ssl, nread);
crypto/krb5/src/plugins/tls/k5tls/openssl.c
560
free_handle(krb5_context context, k5_tls_handle handle)
crypto/krb5/src/plugins/tls/k5tls/openssl.c
562
SSL_free(handle->ssl);
crypto/krb5/src/plugins/tls/k5tls/openssl.c
563
free(handle->servername);
crypto/krb5/src/plugins/tls/k5tls/openssl.c
564
free(handle);
crypto/krb5/src/util/profile/prof_init.c
20
prf_lib_handle_t handle, profile_t *ret_profile)
crypto/krb5/src/util/profile/prof_init.c
51
profile->lib_handle = handle;
crypto/krb5/src/util/support/dir_filenames.c
76
HANDLE handle;
crypto/krb5/src/util/support/dir_filenames.c
84
handle = FindFirstFile(wildcard, &ffd);
crypto/krb5/src/util/support/dir_filenames.c
86
if (handle == INVALID_HANDLE_VALUE)
crypto/krb5/src/util/support/dir_filenames.c
92
FindClose(handle);
crypto/krb5/src/util/support/dir_filenames.c
95
} while (FindNextFile(handle, &ffd) != 0);
crypto/krb5/src/util/support/dir_filenames.c
97
FindClose(handle);
crypto/krb5/src/util/support/plugins.c
403
struct plugin_file_handle *handle = NULL;
crypto/krb5/src/util/support/plugins.c
409
if (!err && krb5int_open_plugin(filepath, &handle, ep) == 0) {
crypto/krb5/src/util/support/plugins.c
410
err = krb5int_plugin_file_handle_array_add (&h, &count, handle);
crypto/krb5/src/util/support/plugins.c
412
handle = NULL; /* h takes ownership */
crypto/krb5/src/util/support/plugins.c
416
if (handle != NULL) { krb5int_close_plugin (handle); }
crypto/krb5/src/util/support/plugins.c
425
struct plugin_file_handle *handle = NULL;
crypto/krb5/src/util/support/plugins.c
433
if (!err && krb5int_open_plugin(filepath, &handle, ep) == 0) {
crypto/krb5/src/util/support/plugins.c
435
handle);
crypto/krb5/src/util/support/plugins.c
437
handle = NULL; /* h takes ownership */
crypto/krb5/src/util/support/plugins.c
441
if (handle != NULL)
crypto/krb5/src/util/support/plugins.c
442
krb5int_close_plugin(handle);
crypto/krb5/src/util/verto/ev.c
1574
# define EV_WIN32_HANDLE_TO_FD(handle) _open_osfhandle (handle, 0)
crypto/krb5/src/util/verto/ev.c
1777
SOCKET handle;
crypto/krb5/src/util/verto/ev.c
2085
SOCKET handle = EV_FD_TO_WIN32_HANDLE (fd);
crypto/krb5/src/util/verto/ev.c
2087
if (handle != anfd->handle)
crypto/krb5/src/util/verto/ev.c
2091
assert (("libev: only socket fds supported in this configuration", ioctlsocket (handle, FIONREAD, &arg) == 0));
crypto/krb5/src/util/verto/ev.c
2096
anfd->handle = handle;
crypto/krb5/src/util/verto/ev_select.c
102
FD_SET (handle, (fd_set *)vec_wi);
crypto/krb5/src/util/verto/ev_select.c
104
FD_CLR (handle, (fd_set *)vec_wi);
crypto/krb5/src/util/verto/ev_select.c
228
SOCKET handle = anfds [fd].handle;
crypto/krb5/src/util/verto/ev_select.c
230
int handle = fd;
crypto/krb5/src/util/verto/ev_select.c
233
if (FD_ISSET (handle, (fd_set *)vec_ro)) events |= EV_READ;
crypto/krb5/src/util/verto/ev_select.c
234
if (FD_ISSET (handle, (fd_set *)vec_wo)) events |= EV_WRITE;
crypto/krb5/src/util/verto/ev_select.c
236
if (FD_ISSET (handle, (fd_set *)vec_eo)) events |= EV_WRITE;
crypto/krb5/src/util/verto/ev_select.c
80
SOCKET handle = anfds [fd].handle;
crypto/krb5/src/util/verto/ev_select.c
82
int handle = fd;
crypto/krb5/src/util/verto/ev_select.c
94
FD_SET (handle, (fd_set *)vec_ri);
crypto/krb5/src/util/verto/ev_select.c
96
FD_CLR (handle, (fd_set *)vec_ri);
crypto/openssh/audit-bsm.c
181
scf_handle_t *handle = NULL;
crypto/openssh/audit-bsm.c
192
handle = scf_handle_create(SCF_VERSION);
crypto/openssh/audit-bsm.c
193
if (handle == NULL)
crypto/openssh/audit-bsm.c
196
ret = scf_handle_bind(handle);
crypto/openssh/audit-bsm.c
200
property = scf_property_create(handle);
crypto/openssh/audit-bsm.c
204
ret = scf_handle_decode_fmri(handle,
crypto/openssh/audit-bsm.c
210
value = scf_value_create(handle);
crypto/openssh/audit-bsm.c
224
scf_handle_destroy(handle);
crypto/openssh/misc.h
39
int handle; /* Handle for dynamic listen ports */
crypto/openssh/mux.c
641
channel_update_permission(ssh, rfwd->handle,
crypto/openssh/mux.c
649
channel_update_permission(ssh, rfwd->handle, -1);
crypto/openssh/mux.c
819
fwd.handle = channel_request_remote_forwarding(ssh, &fwd);
crypto/openssh/mux.c
820
if (fwd.handle < 0)
crypto/openssh/readconf.c
431
fwd->handle = newfwd->handle;
crypto/openssh/sftp-client.c
1337
sftp_fsync(struct sftp_conn *conn, u_char *handle, u_int handle_len)
crypto/openssh/sftp-client.c
1355
(r = sshbuf_put_string(msg, handle, handle_len)) != 0)
crypto/openssh/sftp-client.c
1459
sftp_fstatvfs(struct sftp_conn *conn, const u_char *handle, u_int handle_len,
crypto/openssh/sftp-client.c
1479
(r = sshbuf_put_string(msg, handle, handle_len)) != 0)
crypto/openssh/sftp-client.c
1523
u_int len, const u_char *handle, u_int handle_len)
crypto/openssh/sftp-client.c
1532
(r = sshbuf_put_string(msg, handle, handle_len)) != 0 ||
crypto/openssh/sftp-client.c
1545
u_char *handle;
crypto/openssh/sftp-client.c
1574
if ((handle = get_handle(conn, id, &handle_len,
crypto/openssh/sftp-client.c
1578
*handlep = handle;
crypto/openssh/sftp-client.c
1602
u_char *handle;
crypto/openssh/sftp-client.c
1647
&handle, &handle_len) != 0)
crypto/openssh/sftp-client.c
1670
sftp_close(conn, handle, handle_len);
crypto/openssh/sftp-client.c
1671
free(handle);
crypto/openssh/sftp-client.c
1717
req->len, handle, handle_len);
crypto/openssh/sftp-client.c
1791
req->offset, req->len, handle, handle_len);
crypto/openssh/sftp-client.c
1845
sftp_close(conn, handle, handle_len);
crypto/openssh/sftp-client.c
1850
sftp_close(conn, handle, handle_len);
crypto/openssh/sftp-client.c
1852
if (sftp_close(conn, handle, handle_len) != 0 || interrupted)
crypto/openssh/sftp-client.c
1885
free(handle);
crypto/openssh/sftp-client.c
2039
u_char type, *handle, *data;
crypto/openssh/sftp-client.c
2105
&handle, &handle_len) != 0) {
crypto/openssh/sftp-client.c
2147
(r = sshbuf_put_string(msg, handle,
crypto/openssh/sftp-client.c
2227
sftp_fsetstat(conn, handle, handle_len, &t);
crypto/openssh/sftp-client.c
2237
sftp_fsetstat(conn, handle, handle_len, &a);
crypto/openssh/sftp-client.c
2240
(void)sftp_fsync(conn, handle, handle_len);
crypto/openssh/sftp-client.c
2242
if (sftp_close(conn, handle, handle_len) != 0)
crypto/openssh/sftp-client.c
2245
free(handle);
crypto/openssh/sftp-client.c
307
u_char *handle;
crypto/openssh/sftp-client.c
338
if ((r = sshbuf_get_string(msg, &handle, len)) != 0)
crypto/openssh/sftp-client.c
342
return handle;
crypto/openssh/sftp-client.c
675
sftp_close(struct sftp_conn *conn, const u_char *handle, u_int handle_len)
crypto/openssh/sftp-client.c
687
(r = sshbuf_put_string(msg, handle, handle_len)) != 0)
crypto/openssh/sftp-client.c
709
u_char type, *handle;
crypto/openssh/sftp-client.c
726
handle = get_handle(conn, id, &handle_len,
crypto/openssh/sftp-client.c
728
if (handle == NULL) {
crypto/openssh/sftp-client.c
747
(r = sshbuf_put_string(msg, handle, handle_len)) != 0)
crypto/openssh/sftp-client.c
828
sftp_close(conn, handle, handle_len);
crypto/openssh/sftp-client.c
829
free(handle);
crypto/openssh/sftp-client.c
952
sftp_fstat(struct sftp_conn *conn, const u_char *handle, u_int handle_len,
crypto/openssh/sftp-client.c
960
send_string_request(conn, id, SSH2_FXP_FSTAT, handle,
crypto/openssh/sftp-client.c
986
sftp_fsetstat(struct sftp_conn *conn, const u_char *handle, u_int handle_len,
crypto/openssh/sftp-client.c
994
send_string_attrs_request(conn, id, SSH2_FXP_FSETSTAT, handle,
crypto/openssh/sftp-server.c
1037
int handle, fd, r;
crypto/openssh/sftp-server.c
1040
if ((r = get_handle(iqueue, &handle)) != 0 ||
crypto/openssh/sftp-server.c
1044
debug("request %u: fsetstat handle %d", id, handle);
crypto/openssh/sftp-server.c
1045
fd = handle_to_fd(handle);
crypto/openssh/sftp-server.c
1049
char *name = handle_to_name(handle);
crypto/openssh/sftp-server.c
1103
int r, handle, status = SSH2_FX_FAILURE;
crypto/openssh/sftp-server.c
1114
handle = handle_new(HANDLE_DIR, path, 0, 0, dirp);
crypto/openssh/sftp-server.c
1115
if (handle < 0) {
crypto/openssh/sftp-server.c
1118
send_handle(id, handle);
crypto/openssh/sftp-server.c
1134
int r, handle;
crypto/openssh/sftp-server.c
1136
if ((r = get_handle(iqueue, &handle)) != 0)
crypto/openssh/sftp-server.c
1140
handle_to_name(handle), handle);
crypto/openssh/sftp-server.c
1141
dirp = handle_to_dir(handle);
crypto/openssh/sftp-server.c
1142
path = handle_to_name(handle);
crypto/openssh/sftp-server.c
1413
int r, handle, fd;
crypto/openssh/sftp-server.c
1416
if ((r = get_handle(iqueue, &handle)) != 0)
crypto/openssh/sftp-server.c
1419
id, handle_to_name(handle), handle);
crypto/openssh/sftp-server.c
1420
if ((fd = handle_to_fd(handle)) < 0) {
crypto/openssh/sftp-server.c
1452
int handle, fd, r, status = SSH2_FX_OP_UNSUPPORTED;
crypto/openssh/sftp-server.c
1454
if ((r = get_handle(iqueue, &handle)) != 0)
crypto/openssh/sftp-server.c
1456
debug3("request %u: fsync (handle %u)", id, handle);
crypto/openssh/sftp-server.c
1457
verbose("fsync \"%s\"", handle_to_name(handle));
crypto/openssh/sftp-server.c
1458
if ((fd = handle_to_fd(handle)) < 0)
crypto/openssh/sftp-server.c
1460
else if (handle_is_ok(handle, HANDLE_FILE)) {
crypto/openssh/sftp-server.c
370
handle_to_string(int handle, u_char **stringp, int *hlenp)
crypto/openssh/sftp-server.c
375
put_u32(*stringp, handle);
crypto/openssh/sftp-server.c
381
handle_from_string(const u_char *handle, u_int hlen)
crypto/openssh/sftp-server.c
387
val = get_u32(handle);
crypto/openssh/sftp-server.c
395
handle_to_name(int handle)
crypto/openssh/sftp-server.c
397
if (handle_is_ok(handle, HANDLE_DIR)||
crypto/openssh/sftp-server.c
398
handle_is_ok(handle, HANDLE_FILE))
crypto/openssh/sftp-server.c
399
return handles[handle].name;
crypto/openssh/sftp-server.c
404
handle_to_dir(int handle)
crypto/openssh/sftp-server.c
406
if (handle_is_ok(handle, HANDLE_DIR))
crypto/openssh/sftp-server.c
407
return handles[handle].dirp;
crypto/openssh/sftp-server.c
412
handle_to_fd(int handle)
crypto/openssh/sftp-server.c
414
if (handle_is_ok(handle, HANDLE_FILE))
crypto/openssh/sftp-server.c
415
return handles[handle].fd;
crypto/openssh/sftp-server.c
420
handle_to_flags(int handle)
crypto/openssh/sftp-server.c
422
if (handle_is_ok(handle, HANDLE_FILE))
crypto/openssh/sftp-server.c
423
return handles[handle].flags;
crypto/openssh/sftp-server.c
428
handle_update_read(int handle, ssize_t bytes)
crypto/openssh/sftp-server.c
430
if (handle_is_ok(handle, HANDLE_FILE) && bytes > 0)
crypto/openssh/sftp-server.c
431
handles[handle].bytes_read += bytes;
crypto/openssh/sftp-server.c
435
handle_update_write(int handle, ssize_t bytes)
crypto/openssh/sftp-server.c
437
if (handle_is_ok(handle, HANDLE_FILE) && bytes > 0)
crypto/openssh/sftp-server.c
438
handles[handle].bytes_write += bytes;
crypto/openssh/sftp-server.c
442
handle_bytes_read(int handle)
crypto/openssh/sftp-server.c
444
if (handle_is_ok(handle, HANDLE_FILE))
crypto/openssh/sftp-server.c
445
return (handles[handle].bytes_read);
crypto/openssh/sftp-server.c
450
handle_bytes_write(int handle)
crypto/openssh/sftp-server.c
452
if (handle_is_ok(handle, HANDLE_FILE))
crypto/openssh/sftp-server.c
453
return (handles[handle].bytes_write);
crypto/openssh/sftp-server.c
458
handle_close(int handle)
crypto/openssh/sftp-server.c
462
if (handle_is_ok(handle, HANDLE_FILE)) {
crypto/openssh/sftp-server.c
463
ret = close(handles[handle].fd);
crypto/openssh/sftp-server.c
464
free(handles[handle].name);
crypto/openssh/sftp-server.c
465
handle_unused(handle);
crypto/openssh/sftp-server.c
466
} else if (handle_is_ok(handle, HANDLE_DIR)) {
crypto/openssh/sftp-server.c
467
ret = closedir(handles[handle].dirp);
crypto/openssh/sftp-server.c
468
free(handles[handle].name);
crypto/openssh/sftp-server.c
469
handle_unused(handle);
crypto/openssh/sftp-server.c
477
handle_log_close(int handle, char *emsg)
crypto/openssh/sftp-server.c
479
if (handle_is_ok(handle, HANDLE_FILE)) {
crypto/openssh/sftp-server.c
482
handle_to_name(handle),
crypto/openssh/sftp-server.c
483
(unsigned long long)handle_bytes_read(handle),
crypto/openssh/sftp-server.c
484
(unsigned long long)handle_bytes_write(handle));
crypto/openssh/sftp-server.c
488
handle_to_name(handle));
crypto/openssh/sftp-server.c
505
u_char *handle;
crypto/openssh/sftp-server.c
510
if ((r = sshbuf_get_string(queue, &handle, &hlen)) != 0)
crypto/openssh/sftp-server.c
513
*hp = handle_from_string(handle, hlen);
crypto/openssh/sftp-server.c
514
free(handle);
crypto/openssh/sftp-server.c
604
send_handle(u_int32_t id, int handle)
crypto/openssh/sftp-server.c
609
handle_to_string(handle, &string, &hlen);
crypto/openssh/sftp-server.c
610
debug("request %u: sent handle %d", id, handle);
crypto/openssh/sftp-server.c
747
int r, handle, fd, flags, mode, status = SSH2_FX_FAILURE;
crypto/openssh/sftp-server.c
769
handle = handle_new(HANDLE_FILE, name, fd, flags, NULL);
crypto/openssh/sftp-server.c
770
if (handle < 0) {
crypto/openssh/sftp-server.c
773
send_handle(id, handle);
crypto/openssh/sftp-server.c
786
int r, handle, ret, status = SSH2_FX_FAILURE;
crypto/openssh/sftp-server.c
788
if ((r = get_handle(iqueue, &handle)) != 0)
crypto/openssh/sftp-server.c
791
debug3("request %u: close handle %u", id, handle);
crypto/openssh/sftp-server.c
792
handle_log_close(handle, NULL);
crypto/openssh/sftp-server.c
793
ret = handle_close(handle);
crypto/openssh/sftp-server.c
804
int r, handle, fd, ret, status = SSH2_FX_FAILURE;
crypto/openssh/sftp-server.c
807
if ((r = get_handle(iqueue, &handle)) != 0 ||
crypto/openssh/sftp-server.c
813
id, handle_to_name(handle), handle, (unsigned long long)off, len);
crypto/openssh/sftp-server.c
814
if ((fd = handle_to_fd(handle)) == -1)
crypto/openssh/sftp-server.c
828
error_f("seek \"%.100s\": %s", handle_to_name(handle),
crypto/openssh/sftp-server.c
837
error_f("read \"%.100s\": %s", handle_to_name(handle),
crypto/openssh/sftp-server.c
845
handle_update_read(handle, ret);
crypto/openssh/sftp-server.c
858
int r, handle, fd, ret, status;
crypto/openssh/sftp-server.c
861
if ((r = get_handle(iqueue, &handle)) != 0 ||
crypto/openssh/sftp-server.c
867
id, handle_to_name(handle), handle, (unsigned long long)off, len);
crypto/openssh/sftp-server.c
868
fd = handle_to_fd(handle);
crypto/openssh/sftp-server.c
873
if (!(handle_to_flags(handle) & O_APPEND) &&
crypto/openssh/sftp-server.c
876
error_f("seek \"%.100s\": %s", handle_to_name(handle),
crypto/openssh/sftp-server.c
884
handle_to_name(handle), strerror(errno));
crypto/openssh/sftp-server.c
887
handle_update_write(handle, ret);
crypto/openssh/sftp-server.c
941
int fd, r, handle, status = SSH2_FX_FAILURE;
crypto/openssh/sftp-server.c
943
if ((r = get_handle(iqueue, &handle)) != 0)
crypto/openssh/sftp-server.c
946
id, handle_to_name(handle), handle);
crypto/openssh/sftp-server.c
947
fd = handle_to_fd(handle);
crypto/openssh/ssh-pkcs11.c
128
dlclose(p->handle);
crypto/openssh/ssh-pkcs11.c
1547
void *handle = NULL;
crypto/openssh/ssh-pkcs11.c
1572
if ((handle = dlopen(provider_id, RTLD_NOW)) == NULL) {
crypto/openssh/ssh-pkcs11.c
1576
if ((getfunctionlist = dlsym(handle, "C_GetFunctionList")) == NULL)
crypto/openssh/ssh-pkcs11.c
1580
p->handle = handle;
crypto/openssh/ssh-pkcs11.c
1689
if (handle)
crypto/openssh/ssh-pkcs11.c
1690
dlclose(handle);
crypto/openssh/ssh-pkcs11.c
60
void *handle;
crypto/openssh/ssh.c
1980
rfwd->handle, -1);
crypto/openssh/ssh.c
1989
rfwd->handle, rfwd->allocated_port);
crypto/openssh/ssh.c
1992
channel_update_permission(ssh, rfwd->handle, -1);
crypto/openssh/ssh.c
2149
if ((options.remote_forwards[i].handle =
crypto/openssl/crypto/LPdir_win.c
153
(*ctx)->handle = FindFirstFile(wdir, &(*ctx)->ctx);
crypto/openssl/crypto/LPdir_win.c
167
(*ctx)->handle = FindFirstFile((TCHAR *)directory, &(*ctx)->ctx);
crypto/openssl/crypto/LPdir_win.c
170
if ((*ctx)->handle == INVALID_HANDLE_VALUE) {
crypto/openssl/crypto/LPdir_win.c
177
if (FindNextFile((*ctx)->handle, &(*ctx)->ctx) == FALSE) {
crypto/openssl/crypto/LPdir_win.c
208
FindClose((*ctx)->handle);
crypto/openssl/crypto/LPdir_win.c
70
HANDLE handle;
crypto/openssl/crypto/context.c
456
OSSL_LIB_CTX *OSSL_LIB_CTX_new_from_dispatch(const OSSL_CORE_HANDLE *handle,
crypto/openssl/crypto/context.c
472
OSSL_LIB_CTX *OSSL_LIB_CTX_new_child(const OSSL_CORE_HANDLE *handle,
crypto/openssl/crypto/context.c
475
OSSL_LIB_CTX *ctx = OSSL_LIB_CTX_new_from_dispatch(handle, in);
crypto/openssl/crypto/context.c
480
if (!ossl_provider_init_as_child(ctx, handle, in)) {
crypto/openssl/crypto/dso/dso_dlfcn.c
436
void *ret = NULL, *handle = dlopen(NULL, RTLD_LAZY);
crypto/openssl/crypto/dso/dso_dlfcn.c
438
if (handle) {
crypto/openssl/crypto/dso/dso_dlfcn.c
439
ret = dlsym(handle, name);
crypto/openssl/crypto/dso/dso_dlfcn.c
440
dlclose(handle);
crypto/openssl/crypto/init.c
140
HMODULE handle = NULL;
crypto/openssl/crypto/init.c
146
(void *)&base_inited, &handle);
crypto/openssl/crypto/init.c
704
HMODULE handle = NULL;
crypto/openssl/crypto/init.c
719
handlersym.sym, &handle);
crypto/openssl/crypto/provider_child.c
193
const OSSL_CORE_HANDLE *handle,
crypto/openssl/crypto/provider_child.c
205
gbl->handle = handle;
crypto/openssl/crypto/provider_child.c
24
const OSSL_CORE_HANDLE *handle;
crypto/openssl/crypto/provider_child.c
255
if (!gbl->c_provider_register_child_cb(gbl->handle,
crypto/openssl/crypto/provider_child.c
272
gbl->c_provider_deregister_child_cb(gbl->handle);
crypto/openssl/crypto/provider_child.c
298
if (parent_handle == gbl->handle)
crypto/openssl/crypto/provider_child.c
314
if (parent_handle == gbl->handle)
crypto/openssl/crypto/provider_child.c
52
static int ossl_child_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/crypto/provider_child.c
80
ctx = (OSSL_LIB_CTX *)c_get_libctx(handle);
crypto/openssl/crypto/provider_core.c
192
const OSSL_CORE_HANDLE *handle;
crypto/openssl/crypto/provider_core.c
2075
return prov->handle;
crypto/openssl/crypto/provider_core.c
2083
int ossl_provider_set_child(OSSL_PROVIDER *prov, const OSSL_CORE_HANDLE *handle)
crypto/openssl/crypto/provider_core.c
2085
prov->handle = handle;
crypto/openssl/crypto/provider_core.c
2115
static int ossl_provider_register_child_cb(const OSSL_CORE_HANDLE *handle,
crypto/openssl/crypto/provider_core.c
2131
OSSL_PROVIDER *thisprov = (OSSL_PROVIDER *)handle;
crypto/openssl/crypto/provider_core.c
2201
static void ossl_provider_deregister_child_cb(const OSSL_CORE_HANDLE *handle)
crypto/openssl/crypto/provider_core.c
2207
OSSL_PROVIDER *thisprov = (OSSL_PROVIDER *)handle;
crypto/openssl/crypto/provider_core.c
2316
static const OSSL_PARAM *core_gettable_params(const OSSL_CORE_HANDLE *handle)
crypto/openssl/crypto/provider_core.c
2321
static int core_get_params(const OSSL_CORE_HANDLE *handle, OSSL_PARAM params[])
crypto/openssl/crypto/provider_core.c
2328
OSSL_PROVIDER *prov = (OSSL_PROVIDER *)handle;
crypto/openssl/crypto/provider_core.c
2345
static OPENSSL_CORE_CTX *core_get_libctx(const OSSL_CORE_HANDLE *handle)
crypto/openssl/crypto/provider_core.c
2351
OSSL_PROVIDER *prov = (OSSL_PROVIDER *)handle;
crypto/openssl/crypto/provider_core.c
2363
static int core_thread_start(const OSSL_CORE_HANDLE *handle,
crypto/openssl/crypto/provider_core.c
2371
OSSL_PROVIDER *prov = (OSSL_PROVIDER *)handle;
crypto/openssl/crypto/provider_core.c
2389
static void core_new_error(const OSSL_CORE_HANDLE *handle)
crypto/openssl/crypto/provider_core.c
2394
static void core_set_error_debug(const OSSL_CORE_HANDLE *handle,
crypto/openssl/crypto/provider_core.c
2400
static void core_vset_error(const OSSL_CORE_HANDLE *handle,
crypto/openssl/crypto/provider_core.c
2407
OSSL_PROVIDER *prov = (OSSL_PROVIDER *)handle;
crypto/openssl/crypto/provider_core.c
2421
static int core_set_error_mark(const OSSL_CORE_HANDLE *handle)
crypto/openssl/crypto/provider_core.c
2426
static int core_clear_last_error_mark(const OSSL_CORE_HANDLE *handle)
crypto/openssl/crypto/provider_core.c
2431
static int core_pop_error_to_mark(const OSSL_CORE_HANDLE *handle)
crypto/openssl/crypto/provider_core.c
2436
static int core_count_to_mark(const OSSL_CORE_HANDLE *handle)
crypto/openssl/crypto/provider_core.c
2454
static size_t rand_get_entropy(const OSSL_CORE_HANDLE *handle,
crypto/openssl/crypto/provider_core.c
2458
return ossl_rand_get_entropy((OSSL_LIB_CTX *)core_get_libctx(handle),
crypto/openssl/crypto/provider_core.c
2479
static size_t rand_get_entropy(const OSSL_CORE_HANDLE *handle,
crypto/openssl/crypto/provider_core.c
2487
static size_t rand_get_user_entropy(const OSSL_CORE_HANDLE *handle,
crypto/openssl/crypto/provider_core.c
2491
return ossl_rand_get_user_entropy((OSSL_LIB_CTX *)core_get_libctx(handle),
crypto/openssl/crypto/provider_core.c
2495
static void rand_cleanup_entropy(const OSSL_CORE_HANDLE *handle,
crypto/openssl/crypto/provider_core.c
2498
ossl_rand_cleanup_entropy((OSSL_LIB_CTX *)core_get_libctx(handle),
crypto/openssl/crypto/provider_core.c
2502
static void rand_cleanup_user_entropy(const OSSL_CORE_HANDLE *handle,
crypto/openssl/crypto/provider_core.c
2505
ossl_rand_cleanup_user_entropy((OSSL_LIB_CTX *)core_get_libctx(handle),
crypto/openssl/crypto/provider_core.c
2509
static size_t rand_get_nonce(const OSSL_CORE_HANDLE *handle,
crypto/openssl/crypto/provider_core.c
2514
return ossl_rand_get_nonce((OSSL_LIB_CTX *)core_get_libctx(handle),
crypto/openssl/crypto/provider_core.c
2518
static size_t rand_get_user_nonce(const OSSL_CORE_HANDLE *handle,
crypto/openssl/crypto/provider_core.c
2523
return ossl_rand_get_user_nonce((OSSL_LIB_CTX *)core_get_libctx(handle),
crypto/openssl/crypto/provider_core.c
2527
static void rand_cleanup_nonce(const OSSL_CORE_HANDLE *handle,
crypto/openssl/crypto/provider_core.c
2530
ossl_rand_cleanup_nonce((OSSL_LIB_CTX *)core_get_libctx(handle),
crypto/openssl/crypto/provider_core.c
2534
static void rand_cleanup_user_nonce(const OSSL_CORE_HANDLE *handle,
crypto/openssl/crypto/provider_core.c
2537
ossl_rand_cleanup_user_nonce((OSSL_LIB_CTX *)core_get_libctx(handle),
crypto/openssl/crypto/thread/arch.c
106
int ossl_crypto_thread_native_clean(CRYPTO_THREAD *handle)
crypto/openssl/crypto/thread/arch.c
110
if (handle == NULL)
crypto/openssl/crypto/thread/arch.c
117
ossl_crypto_mutex_lock(handle->statelock);
crypto/openssl/crypto/thread/arch.c
118
if (CRYPTO_THREAD_GET_STATE(handle, req_state_mask) == 0) {
crypto/openssl/crypto/thread/arch.c
119
ossl_crypto_mutex_unlock(handle->statelock);
crypto/openssl/crypto/thread/arch.c
122
ossl_crypto_mutex_unlock(handle->statelock);
crypto/openssl/crypto/thread/arch.c
124
ossl_crypto_mutex_free(&handle->lock);
crypto/openssl/crypto/thread/arch.c
125
ossl_crypto_mutex_free(&handle->statelock);
crypto/openssl/crypto/thread/arch.c
126
ossl_crypto_condvar_free(&handle->condvar);
crypto/openssl/crypto/thread/arch.c
128
OPENSSL_free(handle->handle);
crypto/openssl/crypto/thread/arch.c
129
OPENSSL_free(handle);
crypto/openssl/crypto/thread/arch.c
16
CRYPTO_THREAD *handle;
crypto/openssl/crypto/thread/arch.c
21
handle = OPENSSL_zalloc(sizeof(*handle));
crypto/openssl/crypto/thread/arch.c
22
if (handle == NULL)
crypto/openssl/crypto/thread/arch.c
25
if ((handle->lock = ossl_crypto_mutex_new()) == NULL)
crypto/openssl/crypto/thread/arch.c
27
if ((handle->statelock = ossl_crypto_mutex_new()) == NULL)
crypto/openssl/crypto/thread/arch.c
29
if ((handle->condvar = ossl_crypto_condvar_new()) == NULL)
crypto/openssl/crypto/thread/arch.c
32
handle->data = data;
crypto/openssl/crypto/thread/arch.c
33
handle->routine = routine;
crypto/openssl/crypto/thread/arch.c
34
handle->joinable = joinable;
crypto/openssl/crypto/thread/arch.c
36
if (ossl_crypto_thread_native_spawn(handle) == 1)
crypto/openssl/crypto/thread/arch.c
37
return handle;
crypto/openssl/crypto/thread/arch.c
40
ossl_crypto_condvar_free(&handle->condvar);
crypto/openssl/crypto/thread/arch.c
41
ossl_crypto_mutex_free(&handle->statelock);
crypto/openssl/crypto/thread/arch.c
42
ossl_crypto_mutex_free(&handle->lock);
crypto/openssl/crypto/thread/arch.c
43
OPENSSL_free(handle);
crypto/openssl/crypto/thread/arch/thread_posix.c
39
pthread_t *handle;
crypto/openssl/crypto/thread/arch/thread_posix.c
41
handle = OPENSSL_zalloc(sizeof(*handle));
crypto/openssl/crypto/thread/arch/thread_posix.c
42
if (handle == NULL)
crypto/openssl/crypto/thread/arch/thread_posix.c
48
ret = pthread_create(handle, &attr, thread_start_thunk, thread);
crypto/openssl/crypto/thread/arch/thread_posix.c
54
thread->handle = handle;
crypto/openssl/crypto/thread/arch/thread_posix.c
58
thread->handle = NULL;
crypto/openssl/crypto/thread/arch/thread_posix.c
59
OPENSSL_free(handle);
crypto/openssl/crypto/thread/arch/thread_posix.c
66
pthread_t *handle;
crypto/openssl/crypto/thread/arch/thread_posix.c
68
if (thread == NULL || thread->handle == NULL)
crypto/openssl/crypto/thread/arch/thread_posix.c
71
handle = (pthread_t *)thread->handle;
crypto/openssl/crypto/thread/arch/thread_posix.c
72
if (pthread_join(*handle, &thread_retval) != 0)
crypto/openssl/crypto/thread/arch/thread_posix.c
93
return pthread_equal(*(pthread_t *)thread->handle, pthread_self());
crypto/openssl/crypto/thread/arch/thread_win.c
37
HANDLE *handle;
crypto/openssl/crypto/thread/arch/thread_win.c
39
handle = OPENSSL_zalloc(sizeof(*handle));
crypto/openssl/crypto/thread/arch/thread_win.c
40
if (handle == NULL)
crypto/openssl/crypto/thread/arch/thread_win.c
43
*handle = (HANDLE)_beginthreadex(NULL, 0, &thread_start_thunk, thread, 0, NULL);
crypto/openssl/crypto/thread/arch/thread_win.c
44
if (*handle == NULL)
crypto/openssl/crypto/thread/arch/thread_win.c
47
thread->handle = handle;
crypto/openssl/crypto/thread/arch/thread_win.c
51
thread->handle = NULL;
crypto/openssl/crypto/thread/arch/thread_win.c
52
OPENSSL_free(handle);
crypto/openssl/crypto/thread/arch/thread_win.c
59
HANDLE *handle;
crypto/openssl/crypto/thread/arch/thread_win.c
61
if (thread == NULL || thread->handle == NULL)
crypto/openssl/crypto/thread/arch/thread_win.c
64
handle = (HANDLE *)thread->handle;
crypto/openssl/crypto/thread/arch/thread_win.c
65
if (WaitForSingleObject(*handle, INFINITE) != WAIT_OBJECT_0)
crypto/openssl/crypto/thread/arch/thread_win.c
68
if (GetExitCodeThread(*handle, &thread_retval) == 0)
crypto/openssl/crypto/thread/arch/thread_win.c
80
if (CloseHandle(*handle) == 0)
crypto/openssl/crypto/thread/internal.c
75
CRYPTO_THREAD *handle = vhandle;
crypto/openssl/crypto/thread/internal.c
81
tdata = OSSL_LIB_CTX_GET_THREADS(handle->ctx);
crypto/openssl/crypto/thread/internal.c
85
if (ossl_crypto_thread_native_join(handle, retval) == 0)
crypto/openssl/crypto/thread/internal.c
97
CRYPTO_THREAD *handle = vhandle;
crypto/openssl/crypto/thread/internal.c
99
return ossl_crypto_thread_native_clean(handle);
crypto/openssl/doc/designs/ddd/ddd-06-mem-uv.c
22
static void net_connect_fail_close_done(uv_handle_t *handle);
crypto/openssl/doc/designs/ddd/ddd-06-mem-uv.c
282
static void net_read_alloc(uv_handle_t *handle,
crypto/openssl/doc/designs/ddd/ddd-06-mem-uv.c
29
static void teardown_continued(uv_handle_t *handle);
crypto/openssl/doc/designs/ddd/ddd-06-mem-uv.c
567
static void net_connect_fail_close_done(uv_handle_t *handle)
crypto/openssl/doc/designs/ddd/ddd-06-mem-uv.c
569
APP_CONN *conn = (APP_CONN *)handle->data;
crypto/openssl/doc/designs/ddd/ddd-06-mem-uv.c
649
static void teardown_continued(uv_handle_t *handle)
crypto/openssl/doc/designs/ddd/ddd-06-mem-uv.c
651
APP_CONN *conn = (APP_CONN *)handle->data;
crypto/openssl/fuzz/fuzz_rand.c
144
static int fuzz_rand_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/include/internal/provider.h
113
const OSSL_CORE_HANDLE *handle,
crypto/openssl/include/internal/provider.h
43
int ossl_provider_set_child(OSSL_PROVIDER *prov, const OSSL_CORE_HANDLE *handle);
crypto/openssl/include/internal/thread_arch.h
75
void *handle;
crypto/openssl/include/openssl/core.h
192
typedef int(OSSL_provider_init_fn)(const OSSL_CORE_HANDLE *handle,
crypto/openssl/include/openssl/core_dispatch.h
192
OSSL_CORE_MAKE_FUNC(size_t, get_entropy, (const OSSL_CORE_HANDLE *handle, unsigned char **pout, int entropy, size_t min_len, size_t max_len))
crypto/openssl/include/openssl/core_dispatch.h
193
OSSL_CORE_MAKE_FUNC(size_t, get_user_entropy, (const OSSL_CORE_HANDLE *handle, unsigned char **pout, int entropy, size_t min_len, size_t max_len))
crypto/openssl/include/openssl/core_dispatch.h
194
OSSL_CORE_MAKE_FUNC(void, cleanup_entropy, (const OSSL_CORE_HANDLE *handle, unsigned char *buf, size_t len))
crypto/openssl/include/openssl/core_dispatch.h
195
OSSL_CORE_MAKE_FUNC(void, cleanup_user_entropy, (const OSSL_CORE_HANDLE *handle, unsigned char *buf, size_t len))
crypto/openssl/include/openssl/core_dispatch.h
196
OSSL_CORE_MAKE_FUNC(size_t, get_nonce, (const OSSL_CORE_HANDLE *handle, unsigned char **pout, size_t min_len, size_t max_len, const void *salt, size_t salt_len))
crypto/openssl/include/openssl/core_dispatch.h
197
OSSL_CORE_MAKE_FUNC(size_t, get_user_nonce, (const OSSL_CORE_HANDLE *handle, unsigned char **pout, size_t min_len, size_t max_len, const void *salt, size_t salt_len))
crypto/openssl/include/openssl/core_dispatch.h
198
OSSL_CORE_MAKE_FUNC(void, cleanup_nonce, (const OSSL_CORE_HANDLE *handle, unsigned char *buf, size_t len))
crypto/openssl/include/openssl/core_dispatch.h
199
OSSL_CORE_MAKE_FUNC(void, cleanup_user_nonce, (const OSSL_CORE_HANDLE *handle, unsigned char *buf, size_t len))
crypto/openssl/include/openssl/core_dispatch.h
211
(const OSSL_CORE_HANDLE *handle,
crypto/openssl/include/openssl/core_dispatch.h
217
(const OSSL_CORE_HANDLE *handle))
crypto/openssl/include/openssl/crypto.h
570
OSSL_LIB_CTX *OSSL_LIB_CTX_new_from_dispatch(const OSSL_CORE_HANDLE *handle,
crypto/openssl/include/openssl/crypto.h
572
OSSL_LIB_CTX *OSSL_LIB_CTX_new_child(const OSSL_CORE_HANDLE *handle,
crypto/openssl/providers/baseprov.c
137
int ossl_base_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/providers/baseprov.c
181
(OSSL_LIB_CTX *)c_get_libctx(handle));
crypto/openssl/providers/baseprov.c
182
ossl_prov_ctx_set0_handle(*provctx, handle);
crypto/openssl/providers/common/include/prov/provider_ctx.h
20
const OSSL_CORE_HANDLE *handle;
crypto/openssl/providers/common/include/prov/provider_ctx.h
36
void ossl_prov_ctx_set0_handle(PROV_CTX *ctx, const OSSL_CORE_HANDLE *handle);
crypto/openssl/providers/common/provider_ctx.c
31
void ossl_prov_ctx_set0_handle(PROV_CTX *ctx, const OSSL_CORE_HANDLE *handle)
crypto/openssl/providers/common/provider_ctx.c
34
ctx->handle = handle;
crypto/openssl/providers/common/provider_ctx.c
61
return ctx->handle;
crypto/openssl/providers/common/provider_ctx.c
85
|| ctx->handle == NULL
crypto/openssl/providers/common/provider_ctx.c
96
if (ctx->core_get_params(ctx->handle, param)
crypto/openssl/providers/common/provider_seeding.c
102
const OSSL_CORE_HANDLE *handle = CORE_HANDLE(prov_ctx);
crypto/openssl/providers/common/provider_seeding.c
105
c_cleanup_user_entropy(handle, buf, len);
crypto/openssl/providers/common/provider_seeding.c
107
c_cleanup_entropy(handle, buf, len);
crypto/openssl/providers/common/provider_seeding.c
114
const OSSL_CORE_HANDLE *handle = CORE_HANDLE(prov_ctx);
crypto/openssl/providers/common/provider_seeding.c
117
return c_get_user_nonce(handle, pout, min_len, max_len, salt, salt_len);
crypto/openssl/providers/common/provider_seeding.c
119
return c_get_nonce(handle, pout, min_len, max_len, salt, salt_len);
crypto/openssl/providers/common/provider_seeding.c
125
const OSSL_CORE_HANDLE *handle = CORE_HANDLE(prov_ctx);
crypto/openssl/providers/common/provider_seeding.c
128
c_cleanup_user_nonce(handle, buf, len);
crypto/openssl/providers/common/provider_seeding.c
130
c_cleanup_nonce(handle, buf, len);
crypto/openssl/providers/common/provider_seeding.c
90
const OSSL_CORE_HANDLE *handle = CORE_HANDLE(prov_ctx);
crypto/openssl/providers/common/provider_seeding.c
93
return c_get_user_entropy(handle, pout, entropy, min_len, max_len);
crypto/openssl/providers/common/provider_seeding.c
95
return c_get_entropy(handle, pout, entropy, min_len, max_len);
crypto/openssl/providers/defltprov.c
722
int ossl_default_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/providers/defltprov.c
768
(OSSL_LIB_CTX *)c_get_libctx(handle));
crypto/openssl/providers/defltprov.c
769
ossl_prov_ctx_set0_handle(*provctx, handle);
crypto/openssl/providers/fips/fips_entry.c
13
int OSSL_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/providers/fips/fips_entry.c
18
return OSSL_provider_init_int(handle, in, out, provctx);
crypto/openssl/providers/fips/fipsprov.c
1063
return fgbl->handle;
crypto/openssl/providers/fips/fipsprov.c
170
if (!c_get_params(fgbl->handle, core_params)) {
crypto/openssl/providers/fips/fipsprov.c
228
const OSSL_CORE_HANDLE *handle = FIPS_get_core_handle(fgbl->selftest_params.libctx);
crypto/openssl/providers/fips/fipsprov.c
231
c_stcbfn(c_get_libctx(handle), &fgbl->selftest_params.cb,
crypto/openssl/providers/fips/fipsprov.c
746
int OSSL_provider_init_int(const OSSL_CORE_HANDLE *handle,
crypto/openssl/providers/fips/fipsprov.c
884
fgbl->handle = handle;
crypto/openssl/providers/fips/fipsprov.c
91
const OSSL_CORE_HANDLE *handle;
crypto/openssl/providers/fips/fipsprov.c
949
ossl_prov_ctx_set0_handle(*provctx, handle);
crypto/openssl/providers/fips/fipsprov.c
968
int ossl_fips_intern_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/providers/fips/fipsprov.c
997
(OSSL_LIB_CTX *)c_internal_get_libctx(handle));
crypto/openssl/providers/fips/fipsprov.c
998
ossl_prov_ctx_set0_handle(*provctx, handle);
crypto/openssl/providers/legacyprov.c
200
int OSSL_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/providers/legacyprov.c
250
|| (libctx = OSSL_LIB_CTX_new_child(handle, in)) == NULL) {
crypto/openssl/providers/legacyprov.c
257
ossl_prov_ctx_set0_handle(*provctx, handle);
crypto/openssl/providers/nullprov.c
70
int ossl_null_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/providers/nullprov.c
78
*provctx = (void *)handle;
crypto/openssl/test/evp_extra_test2.c
34
int tls_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/test/fake_cipherprov.c
296
static int fake_cipher_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/test/fake_pipelineprov.c
319
static int fake_pipeline_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/test/fake_rsaprov.c
1236
static int fake_rsa_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/test/fake_rsaprov.c
1243
if (!TEST_ptr(libctx = OSSL_LIB_CTX_new_from_dispatch(handle, in)))
crypto/openssl/test/filterprov.c
138
int filter_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/test/filterprov.c
185
ossl_prov_ctx_set0_libctx(*provctx, (OSSL_LIB_CTX *)c_get_libctx(handle));
crypto/openssl/test/filterprov.c
186
ossl_prov_ctx_set0_handle(*provctx, handle);
crypto/openssl/test/p_minimal.c
18
int OSSL_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/test/p_test.c
251
int OSSL_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/test/p_test.c
300
ctx->handle = handle;
crypto/openssl/test/p_test.c
303
ctx->libctx = OSSL_LIB_CTX_new_child(handle, oin);
crypto/openssl/test/p_test.c
42
const OSSL_CORE_HANDLE *handle;
crypto/openssl/test/p_test.c
97
const OSSL_CORE_HANDLE *hand = ctx->handle;
crypto/openssl/test/provfetchtest.c
201
static int dummy_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/test/provfetchtest.c
206
OSSL_LIB_CTX *libctx = OSSL_LIB_CTX_new_child(handle, in);
crypto/openssl/test/rand_test.c
176
const OSSL_CORE_HANDLE *handle;
crypto/openssl/test/rand_test.c
200
static int r_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/test/rand_test.c
210
ctx->handle = handle;
crypto/openssl/test/sslapitest.c
60
int tls_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/test/testutil/fake_random.c
164
static int fake_rand_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/test/tls-provider.c
3192
int tls_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/test/tls-provider.c
3197
OSSL_LIB_CTX *libctx = OSSL_LIB_CTX_new_from_dispatch(handle, in);
crypto/openssl/test/tls-provider.c
3236
if (!c_obj_create(handle, XORSIGALG_OID, XORSIGALG_NAME, XORSIGALG_NAME)) {
crypto/openssl/test/tls-provider.c
3241
if (!c_obj_add_sigid(handle, XORSIGALG_OID, "", XORSIGALG_OID)) {
crypto/openssl/test/tls-provider.c
3245
if (!c_obj_create(handle, XORSIGALG_HASH_OID, XORSIGALG_HASH_NAME, NULL)) {
crypto/openssl/test/tls-provider.c
3250
if (!c_obj_add_sigid(handle, XORSIGALG_HASH_OID, XORSIGALG_HASH, XORSIGALG_HASH_OID)) {
crypto/openssl/test/tls-provider.c
55
int tls_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/test/upcallstest.c
49
static int obj_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/test/upcallstest.c
54
*provctx = (void *)handle;
crypto/openssl/test/upcallstest.c
72
if (!c_obj_create(handle, DIGEST_OID, DIGEST_SN, DIGEST_LN)
crypto/openssl/test/upcallstest.c
73
|| !c_obj_create(handle, SIG_OID, SIG_SN, SIG_LN)
crypto/openssl/test/upcallstest.c
74
|| !c_obj_create(handle, SIGALG_OID, SIGALG_SN, SIGALG_LN))
crypto/openssl/test/upcallstest.c
77
if (!c_obj_create(handle, NODIG_SIG_OID, NODIG_SIG_SN, NODIG_SIG_LN)
crypto/openssl/test/upcallstest.c
78
|| !c_obj_create(handle, NODIG_SIGALG_OID, NODIG_SIGALG_SN, NODIG_SIGALG_LN))
crypto/openssl/test/upcallstest.c
81
if (!c_obj_add_sigid(handle, SIGALG_OID, DIGEST_SN, SIG_LN))
crypto/openssl/test/upcallstest.c
85
if (!c_obj_add_sigid(handle, NODIG_SIGALG_OID, "", NODIG_SIG_LN))
crypto/openssl/test/upcallstest.c
88
if (c_obj_add_sigid(handle, NODIG_SIGALG_OID, "NonsenseAlg", NODIG_SIG_LN))
crypto/openssl/test/user_property_test.c
69
static int testprov_provider_init(const OSSL_CORE_HANDLE *handle,
crypto/openssl/test/user_property_test.c
74
*provctx = (void *)handle;
include/arpa/nameser.h
141
#define ns_msg_id(handle) ((handle)._id + 0)
include/arpa/nameser.h
142
#define ns_msg_base(handle) ((handle)._msg + 0)
include/arpa/nameser.h
143
#define ns_msg_end(handle) ((handle)._eom + 0)
include/arpa/nameser.h
144
#define ns_msg_size(handle) ((handle)._eom - (handle)._msg)
include/arpa/nameser.h
145
#define ns_msg_count(handle, section) ((handle)._counts[section] + 0)
include/nsswitch.h
217
void *handle; /* handle from dlopen */
include/rpc/rpcsec_gss.h
148
int rpc_gss_max_data_length(AUTH *handle, int max_tp_unit_len);
lib/libc/gen/dlfcn.c
123
dlsym(void * __restrict handle __unused, const char * __restrict name __unused)
lib/libc/gen/dlfcn.c
132
dlfunc(void * __restrict handle __unused, const char * __restrict name __unused)
lib/libc/gen/dlfcn.c
141
dlvsym(void * __restrict handle __unused, const char * __restrict name __unused,
lib/libc/gen/dlfcn.c
151
dlinfo(void * __restrict handle __unused, int request __unused,
lib/libc/gen/dlfcn.c
82
dlclose(void *handle __unused)
lib/libc/iconv/bsd_iconv.c
101
_citrus_iconv_close((struct _citrus_iconv *)(void *)handle);
lib/libc/iconv/bsd_iconv.c
107
__bsd_iconv(iconv_t handle, char **in, size_t *szin, char **out, size_t *szout)
lib/libc/iconv/bsd_iconv.c
112
if (ISBADF(handle)) {
lib/libc/iconv/bsd_iconv.c
117
err = _citrus_iconv_convert((struct _citrus_iconv *)(void *)handle,
lib/libc/iconv/bsd_iconv.c
128
__bsd___iconv(iconv_t handle, char **in, size_t *szin, char **out,
lib/libc/iconv/bsd_iconv.c
134
if (ISBADF(handle)) {
lib/libc/iconv/bsd_iconv.c
139
err = _citrus_iconv_convert((struct _citrus_iconv *)(void *)handle,
lib/libc/iconv/bsd_iconv.c
55
__bsd___iconv_open(const char *out, const char *in, struct _citrus_iconv *handle)
lib/libc/iconv/bsd_iconv.c
65
ret = _citrus_iconv_open(&handle, in, out);
lib/libc/iconv/bsd_iconv.c
71
handle->cv_shared->ci_discard_ilseq = strcasestr(out, "//IGNORE");
lib/libc/iconv/bsd_iconv.c
73
return ((iconv_t)(void *)handle);
lib/libc/iconv/bsd_iconv.c
86
struct _citrus_iconv *handle;
lib/libc/iconv/bsd_iconv.c
88
handle = (struct _citrus_iconv *)ptr;
lib/libc/iconv/bsd_iconv.c
89
return ((__bsd___iconv_open(out, in, handle) == (iconv_t)-1) ? -1 : 0);
lib/libc/iconv/bsd_iconv.c
93
__bsd_iconv_close(iconv_t handle)
lib/libc/iconv/bsd_iconv.c
96
if (ISBADF(handle)) {
lib/libc/iconv/citrus_module.c
262
_citrus_find_getops(_citrus_module_t handle, const char *modname,
lib/libc/iconv/citrus_module.c
270
p = dlsym((void *)handle, name);
lib/libc/iconv/citrus_module.c
279
void *handle;
lib/libc/iconv/citrus_module.c
298
handle = libc_dlopen(p, RTLD_LAZY);
lib/libc/iconv/citrus_module.c
299
if (!handle) {
lib/libc/iconv/citrus_module.c
304
*rhandle = (_citrus_module_t)handle;
lib/libc/iconv/citrus_module.c
310
_citrus_unload_module(_citrus_module_t handle)
lib/libc/iconv/citrus_module.c
313
if (handle)
lib/libc/iconv/citrus_module.c
314
dlclose((void *)handle);
lib/libc/iconv/citrus_stdenc.c
56
_citrus_module_t handle;
lib/libc/iconv/citrus_stdenc.c
74
ret = _citrus_load_module(&handle, encname);
lib/libc/iconv/citrus_stdenc.c
78
ce->ce_module = handle;
lib/libc/locale/cXXrtomb_iconv.h
58
struct _citrus_iconv *handle;
lib/libc/locale/cXXrtomb_iconv.h
67
handle = &cs->iconv;
lib/libc/locale/cXXrtomb_iconv.h
71
if (_citrus_iconv_open(&handle, UTF_XX_INTERNAL,
lib/libc/locale/cXXrtomb_iconv.h
91
err = _citrus_iconv_convert(handle, &src, &srcleft, &dst, &dstleft,
lib/libc/locale/mbrtocXX_iconv.h
109
err = _citrus_iconv_convert(handle, &src, &srcleft,
lib/libc/locale/mbrtocXX_iconv.h
62
struct _citrus_iconv *handle;
lib/libc/locale/mbrtocXX_iconv.h
70
handle = &cs->iconv;
lib/libc/locale/mbrtocXX_iconv.h
74
if (_citrus_iconv_open(&handle,
lib/libc/nameser/ns_parse.c
102
ns_initparse(const u_char *msg, int msglen, ns_msg *handle) {
lib/libc/nameser/ns_parse.c
106
handle->_msg = msg;
lib/libc/nameser/ns_parse.c
107
handle->_eom = eom;
lib/libc/nameser/ns_parse.c
110
NS_GET16(handle->_id, msg);
lib/libc/nameser/ns_parse.c
113
NS_GET16(handle->_flags, msg);
lib/libc/nameser/ns_parse.c
117
NS_GET16(handle->_counts[i], msg);
lib/libc/nameser/ns_parse.c
120
if (handle->_counts[i] == 0)
lib/libc/nameser/ns_parse.c
121
handle->_sections[i] = NULL;
lib/libc/nameser/ns_parse.c
124
handle->_counts[i]);
lib/libc/nameser/ns_parse.c
128
handle->_sections[i] = msg;
lib/libc/nameser/ns_parse.c
133
setsection(handle, ns_s_max);
lib/libc/nameser/ns_parse.c
138
ns_parserr(ns_msg *handle, ns_sect section, int rrnum, ns_rr *rr) {
lib/libc/nameser/ns_parse.c
146
if (section != handle->_sect)
lib/libc/nameser/ns_parse.c
147
setsection(handle, section);
lib/libc/nameser/ns_parse.c
151
rrnum = handle->_rrnum;
lib/libc/nameser/ns_parse.c
152
if (rrnum < 0 || rrnum >= handle->_counts[(int)section])
lib/libc/nameser/ns_parse.c
154
if (rrnum < handle->_rrnum)
lib/libc/nameser/ns_parse.c
155
setsection(handle, section);
lib/libc/nameser/ns_parse.c
156
if (rrnum > handle->_rrnum) {
lib/libc/nameser/ns_parse.c
157
b = ns_skiprr(handle->_msg_ptr, handle->_eom, section,
lib/libc/nameser/ns_parse.c
158
rrnum - handle->_rrnum);
lib/libc/nameser/ns_parse.c
162
handle->_msg_ptr += b;
lib/libc/nameser/ns_parse.c
163
handle->_rrnum = rrnum;
lib/libc/nameser/ns_parse.c
167
b = dn_expand(handle->_msg, handle->_eom,
lib/libc/nameser/ns_parse.c
168
handle->_msg_ptr, rr->name, NS_MAXDNAME);
lib/libc/nameser/ns_parse.c
171
handle->_msg_ptr += b;
lib/libc/nameser/ns_parse.c
172
if (handle->_msg_ptr + NS_INT16SZ + NS_INT16SZ > handle->_eom)
lib/libc/nameser/ns_parse.c
174
NS_GET16(rr->type, handle->_msg_ptr);
lib/libc/nameser/ns_parse.c
175
NS_GET16(rr->rr_class, handle->_msg_ptr);
lib/libc/nameser/ns_parse.c
181
if (handle->_msg_ptr + NS_INT32SZ + NS_INT16SZ > handle->_eom)
lib/libc/nameser/ns_parse.c
183
NS_GET32(rr->ttl, handle->_msg_ptr);
lib/libc/nameser/ns_parse.c
184
NS_GET16(rr->rdlength, handle->_msg_ptr);
lib/libc/nameser/ns_parse.c
185
if (handle->_msg_ptr + rr->rdlength > handle->_eom)
lib/libc/nameser/ns_parse.c
187
rr->rdata = handle->_msg_ptr;
lib/libc/nameser/ns_parse.c
188
handle->_msg_ptr += rr->rdlength;
lib/libc/nameser/ns_parse.c
190
if (++handle->_rrnum > handle->_counts[(int)section])
lib/libc/nameser/ns_parse.c
191
setsection(handle, (ns_sect)((int)section + 1));
lib/libc/nameser/ns_parse.c
201
ns_parserr2(ns_msg *handle, ns_sect section, int rrnum, ns_rr2 *rr) {
lib/libc/nameser/ns_parse.c
208
if (section != handle->_sect)
lib/libc/nameser/ns_parse.c
209
setsection(handle, section);
lib/libc/nameser/ns_parse.c
213
rrnum = handle->_rrnum;
lib/libc/nameser/ns_parse.c
214
if (rrnum < 0 || rrnum >= handle->_counts[(int)section])
lib/libc/nameser/ns_parse.c
216
if (rrnum < handle->_rrnum)
lib/libc/nameser/ns_parse.c
217
setsection(handle, section);
lib/libc/nameser/ns_parse.c
218
if (rrnum > handle->_rrnum) {
lib/libc/nameser/ns_parse.c
219
b = ns_skiprr(handle->_msg_ptr, handle->_eom, section,
lib/libc/nameser/ns_parse.c
220
rrnum - handle->_rrnum);
lib/libc/nameser/ns_parse.c
224
handle->_msg_ptr += b;
lib/libc/nameser/ns_parse.c
225
handle->_rrnum = rrnum;
lib/libc/nameser/ns_parse.c
229
b = ns_name_unpack2(handle->_msg, handle->_eom, handle->_msg_ptr,
lib/libc/nameser/ns_parse.c
233
handle->_msg_ptr += b;
lib/libc/nameser/ns_parse.c
234
if (handle->_msg_ptr + NS_INT16SZ + NS_INT16SZ > handle->_eom)
lib/libc/nameser/ns_parse.c
236
NS_GET16(rr->type, handle->_msg_ptr);
lib/libc/nameser/ns_parse.c
237
NS_GET16(rr->rr_class, handle->_msg_ptr);
lib/libc/nameser/ns_parse.c
243
if (handle->_msg_ptr + NS_INT32SZ + NS_INT16SZ > handle->_eom)
lib/libc/nameser/ns_parse.c
245
NS_GET32(rr->ttl, handle->_msg_ptr);
lib/libc/nameser/ns_parse.c
246
NS_GET16(rr->rdlength, handle->_msg_ptr);
lib/libc/nameser/ns_parse.c
247
if (handle->_msg_ptr + rr->rdlength > handle->_eom)
lib/libc/nameser/ns_parse.c
249
rr->rdata = handle->_msg_ptr;
lib/libc/nameser/ns_parse.c
250
handle->_msg_ptr += rr->rdlength;
lib/libc/nameser/ns_parse.c
252
if (++handle->_rrnum > handle->_counts[(int)section])
lib/libc/nameser/ns_parse.c
253
setsection(handle, (ns_sect)((int)section + 1));
lib/libc/nameser/ns_parse.c
73
int ns_msg_getflag(ns_msg handle, int flag) {
lib/libc/nameser/ns_parse.c
74
return(((handle)._flags & _ns_flagdata[flag].mask) >> _ns_flagdata[flag].shift);
lib/libc/nameser/ns_print.c
85
ns_sprintrr(const ns_msg *handle, const ns_rr *rr,
lib/libc/nameser/ns_print.c
91
n = ns_sprintrrf(ns_msg_base(*handle), ns_msg_size(*handle),
lib/libc/net/nsdispatch.c
342
void *handle;
lib/libc/net/nsdispatch.c
395
handle = libc_dlopen(NULL, RTLD_LAZY | RTLD_GLOBAL);
lib/libc/net/nsdispatch.c
396
if (handle != NULL) {
lib/libc/net/nsdispatch.c
397
nss_cache_cycle_prevention_func = dlsym(handle,
lib/libc/net/nsdispatch.c
399
dlclose(handle);
lib/libc/net/nsdispatch.c
497
mod.handle = nss_builtin_handle;
lib/libc/net/nsdispatch.c
515
mod.handle = libc_dlopen(buf, RTLD_LOCAL|RTLD_LAZY);
lib/libc/net/nsdispatch.c
516
if (mod.handle == NULL) {
lib/libc/net/nsdispatch.c
525
fn = (nss_module_register_fn)dlfunc(mod.handle,
lib/libc/net/nsdispatch.c
528
(void)dlclose(mod.handle);
lib/libc/net/nsdispatch.c
529
mod.handle = NULL;
lib/libc/net/nsdispatch.c
536
if (mod.handle != nss_builtin_handle)
lib/libc/net/nsdispatch.c
537
(void)dlclose(mod.handle);
lib/libc/net/nsdispatch.c
538
mod.handle = NULL;
lib/libc/net/nsdispatch.c
557
if (mod->handle == NULL)
lib/libc/net/nsdispatch.c
561
if (mod->handle != nss_builtin_handle && !exiting)
lib/libc/net/nsdispatch.c
562
(void)dlclose(mod->handle);
lib/libc/net/nsdispatch.c
604
if (mod != NULL && mod->handle != NULL) {
lib/libc/resolv/res_debug.c
141
ns_msg *handle, ns_sect section,
lib/libc/resolv/res_debug.c
163
opcode = (ns_opcode) ns_msg_getflag(*handle, ns_f_opcode);
lib/libc/resolv/res_debug.c
166
if (ns_parserr(handle, section, rrnum, &rr)) {
lib/libc/resolv/res_debug.c
235
n = ns_sprintrr(handle, &rr, NULL, NULL,
lib/libc/resolv/res_debug.c
270
ns_msg handle;
lib/libc/resolv/res_debug.c
274
if (ns_initparse(msg, len, &handle) < 0) {
lib/libc/resolv/res_debug.c
278
opcode = ns_msg_getflag(handle, ns_f_opcode);
lib/libc/resolv/res_debug.c
279
rcode = ns_msg_getflag(handle, ns_f_rcode);
lib/libc/resolv/res_debug.c
280
id = ns_msg_id(handle);
lib/libc/resolv/res_debug.c
281
qdcount = ns_msg_count(handle, ns_s_qd);
lib/libc/resolv/res_debug.c
282
ancount = ns_msg_count(handle, ns_s_an);
lib/libc/resolv/res_debug.c
283
nscount = ns_msg_count(handle, ns_s_ns);
lib/libc/resolv/res_debug.c
284
arcount = ns_msg_count(handle, ns_s_ar);
lib/libc/resolv/res_debug.c
297
if (ns_msg_getflag(handle, ns_f_qr))
lib/libc/resolv/res_debug.c
299
if (ns_msg_getflag(handle, ns_f_aa))
lib/libc/resolv/res_debug.c
301
if (ns_msg_getflag(handle, ns_f_tc))
lib/libc/resolv/res_debug.c
303
if (ns_msg_getflag(handle, ns_f_rd))
lib/libc/resolv/res_debug.c
305
if (ns_msg_getflag(handle, ns_f_ra))
lib/libc/resolv/res_debug.c
307
if (ns_msg_getflag(handle, ns_f_z))
lib/libc/resolv/res_debug.c
309
if (ns_msg_getflag(handle, ns_f_ad))
lib/libc/resolv/res_debug.c
311
if (ns_msg_getflag(handle, ns_f_cd))
lib/libc/resolv/res_debug.c
331
do_section(statp, &handle, ns_s_qd, RES_PRF_QUES, file);
lib/libc/resolv/res_debug.c
332
do_section(statp, &handle, ns_s_an, RES_PRF_ANS, file);
lib/libc/resolv/res_debug.c
333
do_section(statp, &handle, ns_s_ns, RES_PRF_AUTH, file);
lib/libc/resolv/res_debug.c
334
do_section(statp, &handle, ns_s_ar, RES_PRF_ADD, file);
lib/libc/rpc/clnt_bcast.c
254
void *handle;
lib/libc/rpc/clnt_bcast.c
301
if ((handle = __rpc_setconf(nettype)) == NULL) {
lib/libc/rpc/clnt_bcast.c
305
while ((nconf = __rpc_getconf(handle)) != NULL) {
lib/libc/rpc/clnt_bcast.c
644
(void) __rpc_endconf(handle);
lib/libc/rpc/clnt_generic.c
178
void *handle;
lib/libc/rpc/clnt_generic.c
195
if ((handle = __rpc_setconf((char *)nettype)) == NULL) {
lib/libc/rpc/clnt_generic.c
201
if ((nconf = __rpc_getconf(handle)) == NULL) {
lib/libc/rpc/clnt_generic.c
246
__rpc_endconf(handle);
lib/libc/rpc/rpc_generic.c
285
struct handle *handle;
lib/libc/rpc/rpc_generic.c
287
handle = (struct handle *) malloc(sizeof (struct handle));
lib/libc/rpc/rpc_generic.c
288
if (handle == NULL) {
lib/libc/rpc/rpc_generic.c
291
switch (handle->nettype = getnettype(nettype)) {
lib/libc/rpc/rpc_generic.c
295
if (!(handle->nhandle = setnetpath()))
lib/libc/rpc/rpc_generic.c
297
handle->nflag = TRUE;
lib/libc/rpc/rpc_generic.c
304
if (!(handle->nhandle = setnetconfig())) {
lib/libc/rpc/rpc_generic.c
308
handle->nflag = FALSE;
lib/libc/rpc/rpc_generic.c
314
return (handle);
lib/libc/rpc/rpc_generic.c
317
free(handle);
lib/libc/rpc/rpc_generic.c
328
struct handle *handle;
lib/libc/rpc/rpc_generic.c
331
handle = (struct handle *)vhandle;
lib/libc/rpc/rpc_generic.c
332
if (handle == NULL) {
lib/libc/rpc/rpc_generic.c
336
if (handle->nflag)
lib/libc/rpc/rpc_generic.c
337
nconf = getnetpath(handle->nhandle);
lib/libc/rpc/rpc_generic.c
339
nconf = getnetconfig(handle->nhandle);
lib/libc/rpc/rpc_generic.c
346
switch (handle->nettype) {
lib/libc/rpc/rpc_generic.c
404
struct handle *handle;
lib/libc/rpc/rpc_generic.c
406
handle = (struct handle *) vhandle;
lib/libc/rpc/rpc_generic.c
407
if (handle == NULL) {
lib/libc/rpc/rpc_generic.c
410
if (handle->nflag) {
lib/libc/rpc/rpc_generic.c
411
endnetpath(handle->nhandle);
lib/libc/rpc/rpc_generic.c
413
endnetconfig(handle->nhandle);
lib/libc/rpc/rpc_generic.c
415
free(handle);
lib/libc/rpc/rpcb_clnt.c
1185
void *handle;
lib/libc/rpc/rpcb_clnt.c
1196
if ((handle = __rpc_setconf("netpath")) == NULL) {
lib/libc/rpc/rpcb_clnt.c
1202
if ((nconf = __rpc_getconf(handle)) == NULL) {
lib/libc/rpc/rpcb_clnt.c
1211
__rpc_endconf(handle);
lib/libc/rpc/rpcb_clnt.c
845
void *handle;
lib/libc/rpc/rpcb_clnt.c
851
if ((handle = __rpc_setconf("datagram_v")) != NULL) {
lib/libc/rpc/rpcb_clnt.c
852
while ((nconf_clts = __rpc_getconf(handle))
lib/libc/rpc/rpcb_clnt.c
862
__rpc_endconf(handle);
lib/libc/rpc/svc_generic.c
132
__rpc_endconf(handle);
lib/libc/rpc/svc_generic.c
87
void *handle;
lib/libc/rpc/svc_generic.c
91
if ((handle = __rpc_setconf(nettype)) == NULL) {
lib/libc/rpc/svc_generic.c
95
while ((nconf = __rpc_getconf(handle)) != NULL) {
lib/libc/rpc/svc_simple.c
108
void *handle;
lib/libc/rpc/svc_simple.c
119
if ((handle = __rpc_setconf(nettype)) == NULL) {
lib/libc/rpc/svc_simple.c
125
while ((nconf = __rpc_getconf(handle)) != NULL) {
lib/libc/rpc/svc_simple.c
226
__rpc_endconf(handle);
lib/libcuse/cuse_lib.c
615
cuse_dev_set_per_file_handle(struct cuse_dev *cdev, void *handle)
lib/libcuse/cuse_lib.c
623
pe->per_file_handle = handle;
lib/libcuse/cuse_lib.c
624
ioctl(f_cuse, CUSE_IOCTL_SET_PFH, &handle);
lib/libdevinfo/devinfo.c
414
devinfo_handle_to_device(devinfo_handle_t handle)
lib/libdevinfo/devinfo.c
421
if (handle == DEVINFO_ROOT_DEVICE) {
lib/libdevinfo/devinfo.c
432
if (dd->dd_dev.dd_handle == handle)
lib/libdevinfo/devinfo.c
441
devinfo_handle_to_resource(devinfo_handle_t handle)
lib/libdevinfo/devinfo.c
446
if (dr->dr_res.dr_handle == handle)
lib/libdevinfo/devinfo.c
455
devinfo_handle_to_rman(devinfo_handle_t handle)
lib/libdevinfo/devinfo.c
460
if (dm->dm_rman.dm_handle == handle)
lib/libdevinfo/devinfo.h
94
*devinfo_handle_to_device(devinfo_handle_t handle);
lib/libdevinfo/devinfo.h
96
*devinfo_handle_to_resource(devinfo_handle_t handle);
lib/libdevinfo/devinfo.h
98
*devinfo_handle_to_rman(devinfo_handle_t handle);
lib/libgpio/gpio.c
103
gpio_pin_config(gpio_handle_t handle, gpio_config_t *cfg)
lib/libgpio/gpio.c
110
if (ioctl(handle, GPIOGETCONFIG, &gppin) < 0)
lib/libgpio/gpio.c
120
gpio_pin_set_name(gpio_handle_t handle, gpio_pin_t pin, char *name)
lib/libgpio/gpio.c
129
if (ioctl(handle, GPIOSETNAME, &gppin) < 0)
lib/libgpio/gpio.c
136
gpio_pin_set_flags(gpio_handle_t handle, gpio_config_t *cfg)
lib/libgpio/gpio.c
144
if (ioctl(handle, GPIOSETCONFIG, &gppin) < 0)
lib/libgpio/gpio.c
151
gpio_pin_get(gpio_handle_t handle, gpio_pin_t pin)
lib/libgpio/gpio.c
157
if (ioctl(handle, GPIOGET, &gpreq) < 0)
lib/libgpio/gpio.c
164
gpio_pin_set(gpio_handle_t handle, gpio_pin_t pin, gpio_value_t value)
lib/libgpio/gpio.c
173
if (ioctl(handle, GPIOSET, &gpreq) < 0)
lib/libgpio/gpio.c
180
gpio_pin_toggle(gpio_handle_t handle, gpio_pin_t pin)
lib/libgpio/gpio.c
186
if (ioctl(handle, GPIOTOGGLE, &gpreq) < 0)
lib/libgpio/gpio.c
193
gpio_pin_low(gpio_handle_t handle, gpio_pin_t pin)
lib/libgpio/gpio.c
195
return (gpio_pin_set(handle, pin, GPIO_VALUE_LOW));
lib/libgpio/gpio.c
199
gpio_pin_high(gpio_handle_t handle, gpio_pin_t pin)
lib/libgpio/gpio.c
201
return (gpio_pin_set(handle, pin, GPIO_VALUE_HIGH));
lib/libgpio/gpio.c
205
gpio_pin_set_flag(gpio_handle_t handle, gpio_pin_t pin, uint32_t flag)
lib/libgpio/gpio.c
211
if (gpio_pin_config(handle, &cfg) < 0)
lib/libgpio/gpio.c
215
return (gpio_pin_set_flags(handle, &cfg));
lib/libgpio/gpio.c
219
gpio_pin_input(gpio_handle_t handle, gpio_pin_t pin)
lib/libgpio/gpio.c
221
return (gpio_pin_set_flag(handle, pin, GPIO_PIN_INPUT));
lib/libgpio/gpio.c
225
gpio_pin_output(gpio_handle_t handle, gpio_pin_t pin)
lib/libgpio/gpio.c
227
return (gpio_pin_set_flag(handle, pin, GPIO_PIN_OUTPUT));
lib/libgpio/gpio.c
231
gpio_pin_opendrain(gpio_handle_t handle, gpio_pin_t pin)
lib/libgpio/gpio.c
233
return (gpio_pin_set_flag(handle, pin, GPIO_PIN_OPENDRAIN));
lib/libgpio/gpio.c
237
gpio_pin_pushpull(gpio_handle_t handle, gpio_pin_t pin)
lib/libgpio/gpio.c
239
return (gpio_pin_set_flag(handle, pin, GPIO_PIN_PUSHPULL));
lib/libgpio/gpio.c
243
gpio_pin_tristate(gpio_handle_t handle, gpio_pin_t pin)
lib/libgpio/gpio.c
245
return (gpio_pin_set_flag(handle, pin, GPIO_PIN_TRISTATE));
lib/libgpio/gpio.c
249
gpio_pin_pullup(gpio_handle_t handle, gpio_pin_t pin)
lib/libgpio/gpio.c
251
return (gpio_pin_set_flag(handle, pin, GPIO_PIN_PULLUP));
lib/libgpio/gpio.c
255
gpio_pin_pulldown(gpio_handle_t handle, gpio_pin_t pin)
lib/libgpio/gpio.c
257
return (gpio_pin_set_flag(handle, pin, GPIO_PIN_PULLDOWN));
lib/libgpio/gpio.c
261
gpio_pin_invin(gpio_handle_t handle, gpio_pin_t pin)
lib/libgpio/gpio.c
263
return (gpio_pin_set_flag(handle, pin, GPIO_PIN_INVIN));
lib/libgpio/gpio.c
267
gpio_pin_invout(gpio_handle_t handle, gpio_pin_t pin)
lib/libgpio/gpio.c
269
return (gpio_pin_set_flag(handle, pin, GPIO_PIN_INVOUT));
lib/libgpio/gpio.c
273
gpio_pin_pulsate(gpio_handle_t handle, gpio_pin_t pin)
lib/libgpio/gpio.c
275
return (gpio_pin_set_flag(handle, pin, GPIO_PIN_PULSATE));
lib/libgpio/gpio.c
279
gpio_configure_events(gpio_handle_t handle, uint32_t report_type,
lib/libgpio/gpio.c
286
if (ioctl(handle, GPIOCONFIGEVENTS, &gpevent_config) < 0)
lib/libgpio/gpio.c
293
gpio_fileno(gpio_handle_t handle)
lib/libgpio/gpio.c
295
return (handle);
lib/libgpio/gpio.c
71
gpio_close(gpio_handle_t handle)
lib/libgpio/gpio.c
73
close(handle);
lib/libgpio/gpio.c
77
gpio_pin_list(gpio_handle_t handle, gpio_config_t **pcfgs)
lib/libgpio/gpio.c
83
if (ioctl(handle, GPIOMAXPIN, &maxpins) < 0)
lib/libgpio/gpio.c
95
gpio_pin_config(handle, &cfgs[i]);
lib/libomp/omp-tools.h
1264
ompd_address_space_handle_t **handle);
lib/libomp/omp-tools.h
1272
ompd_rc_t ompd_rel_address_space_handle(ompd_address_space_handle_t *handle);
lib/libomp/omp-tools.h
1285
ompd_rc_t ompd_get_thread_handle(ompd_address_space_handle_t *handle,
lib/libomp/omp-tools.h
1362
ompd_rc_t ompd_enumerate_icvs(ompd_address_space_handle_t *handle,
lib/libomp/omp-tools.h
1367
ompd_rc_t ompd_get_icv_from_scope(void *handle, ompd_scope_t scope,
lib/libomp/omp-tools.h
1370
ompd_rc_t ompd_get_icv_string_from_scope(void *handle, ompd_scope_t scope,
lib/libomp/omp-tools.h
1374
ompd_rc_t ompd_get_tool_data(void *handle, ompd_scope_t scope,
lib/libprocstat/libprocstat.c
688
entry = filestat_new_entry(object.handle,
lib/libsdp/sdp.h
706
uint32_t datalen, uint32_t *handle);
lib/libsdp/sdp.h
707
int32_t sdp_unregister_service (void *xss, uint32_t handle);
lib/libsdp/sdp.h
708
int32_t sdp_change_service (void *xss, uint32_t handle,
lib/libsdp/service.c
103
if (handle != NULL) {
lib/libsdp/service.c
104
*handle = (uint32_t) ss->rsp[--len];
lib/libsdp/service.c
105
*handle |= (uint32_t) ss->rsp[--len] << 8;
lib/libsdp/service.c
106
*handle |= (uint32_t) ss->rsp[--len] << 16;
lib/libsdp/service.c
107
*handle |= (uint32_t) ss->rsp[--len] << 24;
lib/libsdp/service.c
114
sdp_unregister_service(void *xss, uint32_t handle)
lib/libsdp/service.c
127
if (sizeof(pdu) + sizeof(handle) > SDP_LOCAL_MTU) {
lib/libsdp/service.c
134
pdu.len = htons(sizeof(handle));
lib/libsdp/service.c
136
handle = htonl(handle);
lib/libsdp/service.c
141
iov[1].iov_base = (void *) &handle;
lib/libsdp/service.c
142
iov[1].iov_len = sizeof(handle);
lib/libsdp/service.c
157
sdp_change_service(void *xss, uint32_t handle,
lib/libsdp/service.c
171
if (sizeof(pdu) + sizeof(handle) + datalen > SDP_LOCAL_MTU) {
lib/libsdp/service.c
178
pdu.len = htons(sizeof(handle) + datalen);
lib/libsdp/service.c
180
handle = htons(handle);
lib/libsdp/service.c
185
iov[1].iov_base = (void *) &handle;
lib/libsdp/service.c
186
iov[1].iov_len = sizeof(handle);
lib/libsdp/service.c
49
uint8_t const *data, uint32_t datalen, uint32_t *handle)
lib/libsysdecode/utrace.c
104
ut->handle, ut->name, ut->refcnt);
lib/libsysdecode/utrace.c
110
fprintf(fp, "RTLD: init %p for %p (%s)", ut->mapbase, ut->handle,
lib/libsysdecode/utrace.c
114
fprintf(fp, "RTLD: fini %p for %p (%s)", ut->mapbase, ut->handle,
lib/libsysdecode/utrace.c
118
fprintf(fp, "RTLD: dlsym(%p, %s)", ut->handle, ut->name);
lib/libsysdecode/utrace.c
121
fprintf(fp, "RTLD: %p = dlsym(%p, %s)", ut->mapbase, ut->handle,
lib/libsysdecode/utrace.c
191
ur.handle = (void *)(uintptr_t)pr->handle;
lib/libsysdecode/utrace.c
42
uint32_t handle;
lib/libsysdecode/utrace.c
81
fprintf(fp, "%p = dlopen(%s) ref %d", ut->handle, ut->name,
lib/libsysdecode/utrace.c
85
fprintf(fp, "dlclose(%p) (%s, %d)", ut->handle, ut->name,
lib/libsysdecode/utrace.c
89
fprintf(fp, "dlclose(%p) finished", ut->handle);
lib/libsysdecode/utrace.c
92
fprintf(fp, "RTLD: loaded %p @ %p - %p (%s)", ut->handle,
lib/libsysdecode/utrace.c
97
fprintf(fp, "RTLD: unloaded %p @ %p - %p (%s)", ut->handle,
lib/libthr/thread/thr_exit.c
74
void *handle;
lib/libthr/thread/thr_exit.c
79
handle = RTLD_DEFAULT;
lib/libthr/thread/thr_exit.c
80
if ((forcedunwind = dlsym(handle, "_Unwind_ForcedUnwind")) != NULL) {
lib/libthr/thread/thr_exit.c
86
if ((handle = dlopen(dli.dli_fname, RTLD_LAZY)) != NULL) {
lib/libthr/thread/thr_exit.c
87
forcedunwind = dlsym(handle, "_Unwind_ForcedUnwind");
lib/libthr/thread/thr_exit.c
88
getcfa = dlsym(handle, "_Unwind_GetCFA");
lib/libthr/thread/thr_exit.c
94
dlclose(handle);
lib/libthread_db/libthr_db.c
367
static td_thrhandle_t handle;
lib/libthread_db/libthr_db.c
401
handle.th_ta = ta;
lib/libthread_db/libthr_db.c
402
handle.th_tid = lwp;
lib/libthread_db/libthr_db.c
403
handle.th_thread = pt;
lib/libthread_db/libthr_db.c
404
msg->th_p = (uintptr_t)&handle;
lib/libthread_db/libthr_db.c
672
static td_thrhandle_t handle;
lib/libthread_db/libthr_db.c
705
handle.th_ta = ta;
lib/libthread_db/libthr_db.c
706
handle.th_tid = lwp;
lib/libthread_db/libthr_db.c
707
handle.th_thread = pt;
lib/libthread_db/libthr_db.c
708
msg->th_p = (uintptr_t)&handle;
lib/libusb/libusb.h
561
int libusb_get_bos_descriptor(libusb_device_handle *handle, struct libusb_bos_descriptor **bos);
lib/libusb/libusb.h
627
int libusb_hotplug_register_callback(libusb_context *ctx, libusb_hotplug_event events, libusb_hotplug_flag flags, int vendor_id, int product_id, int dev_class, libusb_hotplug_callback_fn cb_fn, void *user_data, libusb_hotplug_callback_handle *handle);
lib/libusb/libusb.h
628
void libusb_hotplug_deregister_callback(libusb_context *ctx, libusb_hotplug_callback_handle handle);
lib/libusb/libusb10_desc.c
568
libusb_get_bos_descriptor(libusb_device_handle *handle,
lib/libusb/libusb10_desc.c
576
err = libusb_get_descriptor(handle, LIBUSB_DT_BOS, 0,
lib/libusb/libusb10_desc.c
589
err = libusb_get_descriptor(handle, LIBUSB_DT_BOS, 0,
lib/libusb/libusb10_hotplug.c
346
libusb_hotplug_callback_handle handle;
lib/libusb/libusb10_hotplug.c
364
handle = malloc(sizeof(*handle));
lib/libusb/libusb10_hotplug.c
365
if (handle == NULL)
lib/libusb/libusb10_hotplug.c
376
handle->events = events;
lib/libusb/libusb10_hotplug.c
377
handle->vendor = vendor_id;
lib/libusb/libusb10_hotplug.c
378
handle->product = product_id;
lib/libusb/libusb10_hotplug.c
379
handle->devclass = dev_class;
lib/libusb/libusb10_hotplug.c
380
handle->fn = cb_fn;
lib/libusb/libusb10_hotplug.c
381
handle->user_data = user_data;
lib/libusb/libusb10_hotplug.c
385
if (libusb_hotplug_filter(ctx, handle, adev,
lib/libusb/libusb10_hotplug.c
388
free(handle);
lib/libusb/libusb10_hotplug.c
389
handle = NULL;
lib/libusb/libusb10_hotplug.c
393
if (handle != NULL)
lib/libusb/libusb10_hotplug.c
394
TAILQ_INSERT_TAIL(&ctx->hotplug_cbh, handle, entry);
lib/libusb/libusb10_hotplug.c
398
*phandle = handle;
lib/libusb/libusb10_hotplug.c
403
libusb_hotplug_callback_handle handle)
lib/libusb/libusb10_hotplug.c
407
if (ctx == NULL || handle == NULL)
lib/libusb/libusb10_hotplug.c
411
TAILQ_REMOVE(&ctx->hotplug_cbh, handle, entry);
lib/libusb/libusb10_hotplug.c
415
free(handle);
lib/libusb/libusb10_hotplug.c
422
libusb_hotplug_callback_handle handle;
lib/libusb/libusb10_hotplug.c
427
TAILQ_FOREACH(handle, &ctx->hotplug_cbh, entry) {
lib/libusb/libusb10_hotplug.c
428
if (handle == callback_handle)
lib/libusb/libusb10_hotplug.c
433
if (handle != NULL)
lib/libusb/libusb10_hotplug.c
434
return (handle->user_data);
lib/virtual_oss/bt/avdtp.c
527
if (cfg->handle.sbc_enc) {
lib/virtual_oss/bt/avdtp.c
528
free(cfg->handle.sbc_enc);
lib/virtual_oss/bt/avdtp.c
529
cfg->handle.sbc_enc = NULL;
lib/virtual_oss/bt/avdtp.c
657
if (cfg->handle.sbc_enc == NULL) {
lib/virtual_oss/bt/avdtp.c
658
cfg->handle.sbc_enc = malloc(sizeof(*cfg->handle.sbc_enc));
lib/virtual_oss/bt/avdtp.c
659
if (cfg->handle.sbc_enc == NULL)
lib/virtual_oss/bt/avdtp.c
662
memset(cfg->handle.sbc_enc, 0, sizeof(*cfg->handle.sbc_enc));
lib/virtual_oss/bt/bt.c
185
if (cfg->handle.sbc_enc == NULL)
lib/virtual_oss/bt/bt.c
187
free(cfg->handle.sbc_enc);
lib/virtual_oss/bt/bt.c
188
cfg->handle.sbc_enc = NULL;
lib/virtual_oss/bt/bt.c
192
if (cfg->handle.av.context == NULL)
lib/virtual_oss/bt/bt.c
195
av_frame_free(&cfg->handle.av.frame);
lib/virtual_oss/bt/bt.c
196
avcodec_close(cfg->handle.av.context);
lib/virtual_oss/bt/bt.c
197
avformat_free_context(cfg->handle.av.format);
lib/virtual_oss/bt/bt.c
198
cfg->handle.av.context = NULL;
lib/virtual_oss/bt/bt.c
63
struct sbc_encode *sbc = cfg->handle.sbc_enc;
lib/virtual_oss/bt/bt.c
648
cfg->handle.sbc_enc =
lib/virtual_oss/bt/bt.c
649
malloc(sizeof(*cfg->handle.sbc_enc));
lib/virtual_oss/bt/bt.c
650
if (cfg->handle.sbc_enc == NULL)
lib/virtual_oss/bt/bt.c
652
memset(cfg->handle.sbc_enc, 0, sizeof(*cfg->handle.sbc_enc));
lib/virtual_oss/bt/bt.c
656
cfg->handle.av.codec = __DECONST(AVCodec *,
lib/virtual_oss/bt/bt.c
658
if (cfg->handle.av.codec == NULL) {
lib/virtual_oss/bt/bt.c
662
cfg->handle.av.format = avformat_alloc_context();
lib/virtual_oss/bt/bt.c
663
if (cfg->handle.av.format == NULL) {
lib/virtual_oss/bt/bt.c
667
cfg->handle.av.format->oformat =
lib/virtual_oss/bt/bt.c
669
if (cfg->handle.av.format->oformat == NULL) {
lib/virtual_oss/bt/bt.c
673
cfg->handle.av.stream = avformat_new_stream(
lib/virtual_oss/bt/bt.c
674
cfg->handle.av.format, cfg->handle.av.codec);
lib/virtual_oss/bt/bt.c
676
if (cfg->handle.av.stream == NULL) {
lib/virtual_oss/bt/bt.c
680
cfg->handle.av.context = avcodec_alloc_context3(cfg->handle.av.codec);
lib/virtual_oss/bt/bt.c
681
if (cfg->handle.av.context == NULL) {
lib/virtual_oss/bt/bt.c
688
cfg->handle.av.context->bit_rate = 128000;
lib/virtual_oss/bt/bt.c
689
cfg->handle.av.context->sample_fmt = AV_SAMPLE_FMT_FLTP;
lib/virtual_oss/bt/bt.c
690
cfg->handle.av.context->sample_rate = samplerate;
lib/virtual_oss/bt/bt.c
693
cfg->handle.av.context->ch_layout = *(AVChannelLayout *)AV_CH_LAYOUT_MONO;
lib/virtual_oss/bt/bt.c
696
cfg->handle.av.context->ch_layout = *(AVChannelLayout *)AV_CH_LAYOUT_STEREO;
lib/virtual_oss/bt/bt.c
700
cfg->handle.av.context->profile = FF_PROFILE_AAC_LOW;
lib/virtual_oss/bt/bt.c
707
if (avcodec_open2(cfg->handle.av.context,
lib/virtual_oss/bt/bt.c
708
cfg->handle.av.codec, &opts) < 0) {
lib/virtual_oss/bt/bt.c
716
cfg->handle.av.frame = av_frame_alloc();
lib/virtual_oss/bt/bt.c
717
if (cfg->handle.av.frame == NULL) {
lib/virtual_oss/bt/bt.c
721
cfg->handle.av.frame->nb_samples = cfg->handle.av.context->frame_size;
lib/virtual_oss/bt/bt.c
722
cfg->handle.av.frame->format = cfg->handle.av.context->sample_fmt;
lib/virtual_oss/bt/bt.c
723
cfg->handle.av.frame->ch_layout = cfg->handle.av.context->ch_layout;
lib/virtual_oss/bt/bt.c
725
cfg->handle.av.context->ch_layout.nb_channels,
lib/virtual_oss/bt/bt.c
726
cfg->handle.av.context->frame_size,
lib/virtual_oss/bt/bt.c
727
cfg->handle.av.context->sample_fmt, 0);
lib/virtual_oss/bt/bt.c
735
retval = avcodec_fill_audio_frame(cfg->handle.av.frame,
lib/virtual_oss/bt/bt.c
736
cfg->handle.av.context->ch_layout.nb_channels,
lib/virtual_oss/bt/bt.c
737
cfg->handle.av.context->sample_fmt,
lib/virtual_oss/bt/bt.c
747
av_frame_free(&cfg->handle.av.frame);
lib/virtual_oss/bt/bt.c
749
avcodec_close(cfg->handle.av.context);
lib/virtual_oss/bt/bt.c
751
avformat_free_context(cfg->handle.av.format);
lib/virtual_oss/bt/bt.c
752
cfg->handle.av.context = NULL;
lib/virtual_oss/bt/bt.c
774
struct sbc_encode *sbc = cfg->handle.sbc_enc;
lib/virtual_oss/bt/bt.c
939
err = avcodec_send_frame(cfg->handle.av.context,
lib/virtual_oss/bt/bt.c
940
cfg->handle.av.frame);
lib/virtual_oss/bt/bt.c
972
if (avio_open_dyn_buf(&cfg->handle.av.format->pb) == 0) {
lib/virtual_oss/bt/bt.c
976
(void)avformat_write_header(cfg->handle.av.format, NULL);
lib/virtual_oss/bt/bt.c
977
av_write_frame(cfg->handle.av.format, pkt);
lib/virtual_oss/bt/bt.c
979
pkt_len = avio_close_dyn_buf(cfg->handle.av.format->pb, &pkt_buf);
lib/virtual_oss/bt/bt.h
82
} handle;
lib/virtual_oss/bt/sbc_encode.c
149
struct sbc_encode *sbc = cfg->handle.sbc_enc;
lib/virtual_oss/bt/sbc_encode.c
302
struct sbc_encode *sbc = cfg->handle.sbc_enc;
lib/virtual_oss/bt/sbc_encode.c
419
struct sbc_encode *sbc = cfg->handle.sbc_enc;
lib/virtual_oss/bt/sbc_encode.c
552
struct sbc_encode *sbc = cfg->handle.sbc_enc;
lib/virtual_oss/bt/sbc_encode.c
631
struct sbc_encode *sbc = cfg->handle.sbc_enc;
libexec/rtld-elf/rtld.c
1807
dlcheck(void *handle)
libexec/rtld-elf/rtld.c
1812
if (obj == (Obj_Entry *)handle)
libexec/rtld-elf/rtld.c
1817
_rtld_error("Invalid shared object handle %p", handle);
libexec/rtld-elf/rtld.c
362
ld_utrace_log(int event, void *handle, void *mapbase, size_t mapsize,
libexec/rtld-elf/rtld.c
372
ut.handle = handle;
libexec/rtld-elf/rtld.c
3806
dlclose(void *handle)
libexec/rtld-elf/rtld.c
3812
error = dlclose_locked(handle, &lockstate);
libexec/rtld-elf/rtld.c
3818
dlclose_locked(void *handle, RtldLockState *lockstate)
libexec/rtld-elf/rtld.c
3822
root = dlcheck(handle);
libexec/rtld-elf/rtld.c
3825
LD_UTRACE(UTRACE_DLCLOSE_START, handle, NULL, 0, root->dl_refcount,
libexec/rtld-elf/rtld.c
3847
LD_UTRACE(UTRACE_DLCLOSE_STOP, handle, NULL, 0, 0, NULL);
libexec/rtld-elf/rtld.c
4078
do_dlsym(void *handle, const char *name, void *retaddr, const Ver_Entry *ve,
libexec/rtld-elf/rtld.c
4097
LD_UTRACE(UTRACE_DLSYM_START, handle, NULL, 0, 0, name);
libexec/rtld-elf/rtld.c
4101
if (handle == NULL || handle == RTLD_NEXT || handle == RTLD_DEFAULT ||
libexec/rtld-elf/rtld.c
4102
handle == RTLD_SELF) {
libexec/rtld-elf/rtld.c
4106
LD_UTRACE(UTRACE_DLSYM_STOP, handle, NULL, 0, 0, name);
libexec/rtld-elf/rtld.c
4109
if (handle == NULL) { /* Just the caller's shared object. */
libexec/rtld-elf/rtld.c
4115
} else if (handle == RTLD_NEXT || /* Objects after caller's */
libexec/rtld-elf/rtld.c
4116
handle == RTLD_SELF) { /* ... caller included */
libexec/rtld-elf/rtld.c
4117
if (handle == RTLD_NEXT)
libexec/rtld-elf/rtld.c
4155
assert(handle == RTLD_DEFAULT);
libexec/rtld-elf/rtld.c
4163
if ((obj = dlcheck(handle)) == NULL) {
libexec/rtld-elf/rtld.c
4165
LD_UTRACE(UTRACE_DLSYM_STOP, handle, NULL, 0, 0, name);
libexec/rtld-elf/rtld.c
4220
LD_UTRACE(UTRACE_DLSYM_STOP, handle, sym, 0, 0, name);
libexec/rtld-elf/rtld.c
4227
LD_UTRACE(UTRACE_DLSYM_STOP, handle, NULL, 0, 0, name);
libexec/rtld-elf/rtld.c
4232
dlsym(void *handle, const char *name)
libexec/rtld-elf/rtld.c
4234
return (do_dlsym(handle, name, __builtin_return_address(0), NULL,
libexec/rtld-elf/rtld.c
4239
dlfunc(void *handle, const char *name)
libexec/rtld-elf/rtld.c
4246
rv.d = do_dlsym(handle, name, __builtin_return_address(0), NULL,
libexec/rtld-elf/rtld.c
4252
dlvsym(void *handle, const char *name, const char *version)
libexec/rtld-elf/rtld.c
4260
return (do_dlsym(handle, name, __builtin_return_address(0), &ventry,
libexec/rtld-elf/rtld.c
4339
dlinfo(void *handle, int request, void *p)
libexec/rtld-elf/rtld.c
4347
if (handle == NULL || handle == RTLD_SELF) {
libexec/rtld-elf/rtld.c
4354
obj = dlcheck(handle);
libexec/rtld-elf/rtld_lock.c
239
void *handle;
libexec/rtld-elf/rtld_lock.c
259
lockinfo.rlock_acquire(lock->handle);
libexec/rtld-elf/rtld_lock.c
275
lockinfo.wlock_acquire(lock->handle);
libexec/rtld-elf/rtld_lock.c
292
lockinfo.lock_release(lock->handle);
libexec/rtld-elf/rtld_lock.c
363
rtld_locks[i].handle = NULL;
libexec/rtld-elf/rtld_lock.c
430
if (rtld_locks[i].handle == NULL)
libexec/rtld-elf/rtld_lock.c
433
lockinfo.lock_release(rtld_locks[i].handle);
libexec/rtld-elf/rtld_lock.c
434
lockinfo.lock_destroy(rtld_locks[i].handle);
libexec/rtld-elf/rtld_lock.c
438
rtld_locks[i].handle = locks[i];
libexec/rtld-elf/rtld_lock.c
440
pli->wlock_acquire(rtld_locks[i].handle);
libexec/rtld-elf/rtld_utrace.h
54
void *handle;
libexec/rtld-elf/tests/dlopen_hash_test.c
21
void *handle;
libexec/rtld-elf/tests/dlopen_hash_test.c
26
handle = dlopen("libpythagoras.so.0", RTLD_LAZY);
libexec/rtld-elf/tests/dlopen_hash_test.c
27
ATF_REQUIRE(handle == NULL);
libexec/rtld-elf/tests/dlopen_hash_test.c
37
handle = dlopen(name, RTLD_LAZY);
libexec/rtld-elf/tests/dlopen_hash_test.c
38
ATF_REQUIRE(handle != NULL);
libexec/rtld-elf/tests/set_var_test.c
16
void *handle;
libexec/rtld-elf/tests/set_var_test.c
20
handle = dlopen("libpythagoras.so.0", RTLD_LAZY);
libexec/rtld-elf/tests/set_var_test.c
21
ATF_REQUIRE(handle == NULL);
libexec/rtld-elf/tests/set_var_test.c
30
handle = dlopen("libpythagoras.so.0", RTLD_LAZY);
libexec/rtld-elf/tests/set_var_test.c
31
ATF_REQUIRE(handle != NULL);
sbin/fsck_ffs/main.c
713
cmd.handle = fsreadfd;
sbin/init/init.c
298
handle(disaster, SIGABRT, SIGFPE, SIGILL, SIGSEGV, SIGBUS, SIGSYS,
sbin/init/init.c
300
handle(transition_handler, SIGHUP, SIGINT, SIGEMT, SIGTERM, SIGTSTP,
sbin/init/init.c
302
handle(alrm_handler, SIGALRM, 0);
sbin/init/init.c
90
static void handle(sig_t, ...);
stand/efi/libefi/devpath.c
44
efi_lookup_image_devpath(EFI_HANDLE handle)
stand/efi/libefi/devpath.c
49
status = OpenProtocolByHandle(handle, &ImageDevicePathGUID,
stand/efi/libefi/devpath.c
57
efi_lookup_devpath(EFI_HANDLE handle)
stand/efi/libefi/devpath.c
62
status = OpenProtocolByHandle(handle, &DevicePathGUID,
stand/efi/libefi/devpath.c
70
efi_close_devpath(EFI_HANDLE handle)
stand/efi/libefi/devpath.c
74
status = BS->CloseProtocol(handle, &DevicePathGUID, IH, NULL);
stand/efi/libefi/eficom.c
164
EFI_HANDLE *handles, handle;
stand/efi/libefi/eficom.c
193
handle = NULL;
stand/efi/libefi/eficom.c
194
for (index = 0; handle == NULL && index < nhandles; index++) {
stand/efi/libefi/eficom.c
197
handle = (handles[index]);
stand/efi/libefi/eficom.c
205
if (port < nhandles && handle == NULL)
stand/efi/libefi/eficom.c
206
handle = handles[port];
stand/efi/libefi/eficom.c
209
return (handle);
stand/efi/libefi/eficom.c
215
EFI_HANDLE handle;
stand/efi/libefi/eficom.c
238
status = BS->LocateDevicePath(&serial, &node, &handle);
stand/efi/libefi/eficom.c
241
return (handle);
stand/efi/libefi/eficom.c
264
EFI_HANDLE handle;
stand/efi/libefi/eficom.c
294
handle = NULL;
stand/efi/libefi/eficom.c
305
handle = comc_get_con_serial_handle("ConOut");
stand/efi/libefi/eficom.c
306
comc_port->condev = handle;
stand/efi/libefi/eficom.c
309
handle = efi_serial_get_handle(comc_port->ioaddr, handle);
stand/efi/libefi/eficom.c
310
if (handle != NULL) {
stand/efi/libefi/eficom.c
311
comc_port->currdev = handle;
stand/efi/libefi/eficom.c
312
status = BS->OpenProtocol(handle, &serial,
stand/efi/libefi/eficom.c
495
EFI_HANDLE handle;
stand/efi/libefi/eficom.c
504
handle = efi_serial_get_handle(port, NULL);
stand/efi/libefi/eficom.c
505
if (handle == NULL) {
stand/efi/libefi/eficom.c
510
status = BS->OpenProtocol(handle, &serial,
stand/efi/libefi/eficom.c
518
comc_port->currdev = handle;
stand/efi/libefi/efihttp.c
115
setup_ipv4_config2(EFI_HANDLE handle, MAC_ADDR_DEVICE_PATH *mac,
stand/efi/libefi/efihttp.c
121
status = BS->OpenProtocol(handle, &ip4config2_guid,
stand/efi/libefi/efihttp.c
183
EFI_HANDLE handle;
stand/efi/libefi/efihttp.c
205
status = BS->LocateDevicePath(&httpsb_guid, &imgpath, &handle);
stand/efi/libefi/efihttp.c
209
err = efi_register_handles(&efihttp_dev, &handle, NULL, 1);
stand/efi/libefi/efihttp.c
238
EFI_HANDLE handle;
stand/efi/libefi/efihttp.c
249
status = BS->LocateDevicePath(&httpsb_guid, &devpath, &handle);
stand/efi/libefi/efihttp.c
281
err = setup_ipv4_config2(handle, mac, ipv4, dns);
stand/efi/libefi/efihttp.c
288
oh->dev_handle = handle;
stand/efi/libefi/efihttp.c
292
status = BS->OpenProtocol(handle, &httpsb_guid, (void **)&sb, IH, NULL,
stand/efi/libefi/efizfs.c
63
efizfs_get_guid_by_handle(EFI_HANDLE handle, uint64_t *guid)
stand/efi/libefi/efizfs.c
70
if (zi->zi_handle == handle) {
stand/efi/libefi/efizfs.c
79
insert_zfs(EFI_HANDLE handle, uint64_t guid, bool head)
stand/efi/libefi/efizfs.c
85
zi->zi_handle = handle;
stand/efi/libefi/handles.c
107
if (entry[idx].handle != h)
stand/efi/libefi/handles.c
31
EFI_HANDLE handle;
stand/efi/libefi/handles.c
55
entry[idx].handle = handles[unit];
stand/efi/libefi/handles.c
76
return (entry[idx].handle);
stand/efi/libefi/handles.c
87
if (entry[idx].handle != h && entry[idx].alias != h)
stand/efi/libefi/libefi.c
52
OpenProtocolByHandle(EFI_HANDLE handle, EFI_GUID *protocol, void **interface)
stand/efi/libefi/libefi.c
54
return (BS->OpenProtocol(handle, protocol, interface, IH, NULL,
stand/efi/loader/main.c
1766
lsefi_print_handle_info(EFI_HANDLE handle)
stand/efi/loader/main.c
1772
imagepath = efi_lookup_image_devpath(handle);
stand/efi/loader/main.c
1779
devpath = efi_lookup_devpath(handle);
stand/efi/loader/main.c
1786
printf("Handle %p", handle);
stand/efi/loader/main.c
1794
EFI_HANDLE handle;
stand/efi/loader/main.c
1823
handle = buffer[i];
stand/efi/loader/main.c
1824
lsefi_print_handle_info(handle);
stand/efi/loader/main.c
1829
status = BS->ProtocolsPerHandle(handle, &protocols, &nproto);
stand/kshim/bsd_kernel.h
515
void bus_space_read_region_1(bus_space_tag_t space, bus_space_handle_t handle, bus_size_t offset, uint8_t *datap, bus_size_t count);
stand/kshim/bsd_kernel.h
516
void bus_space_write_region_1(bus_space_tag_t space, bus_space_handle_t handle, bus_size_t offset, uint8_t *datap, bus_size_t count);
stand/kshim/bsd_kernel.h
517
void bus_space_read_region_4(bus_space_tag_t space, bus_space_handle_t handle, bus_size_t offset, uint32_t *datap, bus_size_t count);
stand/kshim/bsd_kernel.h
518
void bus_space_write_region_4(bus_space_tag_t space, bus_space_handle_t handle, bus_size_t offset, uint32_t *datap, bus_size_t count);
stand/kshim/bsd_kernel.h
520
void bus_space_barrier(bus_space_tag_t space, bus_space_handle_t handle, bus_size_t offset, bus_size_t length, int flags);
stand/libofw/devicename.c
69
phandle_t handle;
stand/libofw/devicename.c
80
if ((handle = OF_finddevice(name)) == -1)
stand/libofw/devicename.c
82
if (OF_getprop(handle, "device_type", type, sizeof(type)) == -1)
stand/libofw/devicename.c
86
return (handle);
stand/uboot/glue.c
293
ub_dev_open(int handle)
stand/uboot/glue.c
298
if (handle < 0 || handle >= UB_MAX_DEV)
stand/uboot/glue.c
301
di = &devices[handle];
stand/uboot/glue.c
309
ub_dev_close(int handle)
stand/uboot/glue.c
313
if (handle < 0 || handle >= UB_MAX_DEV)
stand/uboot/glue.c
316
di = &devices[handle];
stand/uboot/glue.c
332
dev_valid(int handle)
stand/uboot/glue.c
335
if (handle < 0 || handle >= UB_MAX_DEV)
stand/uboot/glue.c
338
if (devices[handle].state != DEV_STA_OPEN)
stand/uboot/glue.c
345
dev_stor_valid(int handle)
stand/uboot/glue.c
348
if (!dev_valid(handle))
stand/uboot/glue.c
351
if (!(devices[handle].type & DEV_TYP_STOR))
stand/uboot/glue.c
358
ub_dev_read(int handle, void *buf, lbasize_t len, lbastart_t start,
stand/uboot/glue.c
365
if (!dev_stor_valid(handle))
stand/uboot/glue.c
368
di = &devices[handle];
stand/uboot/glue.c
379
dev_net_valid(int handle)
stand/uboot/glue.c
382
if (!dev_valid(handle))
stand/uboot/glue.c
385
if (devices[handle].type != DEV_TYP_NET)
stand/uboot/glue.c
392
ub_dev_recv(int handle, void *buf, int len, int *rlen)
stand/uboot/glue.c
397
if (!dev_net_valid(handle))
stand/uboot/glue.c
400
di = &devices[handle];
stand/uboot/glue.c
411
ub_dev_send(int handle, void *buf, int len)
stand/uboot/glue.c
416
if (!dev_net_valid(handle))
stand/uboot/glue.c
419
di = &devices[handle];
stand/uboot/glue.c
465
ub_dump_di(int handle)
stand/uboot/glue.c
467
struct device_info *di = ub_dev_get(handle);
stand/uboot/glue.c
470
printf("device info (%d):\n", handle);
stand/uboot/uboot_disk.c
114
stor_info[stor_info_no].handle = i;
stand/uboot/uboot_disk.c
141
ub_dev_close(stor_info[i].handle);
stand/uboot/uboot_disk.c
197
err = ub_dev_open(SI(dev).handle);
stand/uboot/uboot_disk.c
200
"handle=%d\n", err, SI(dev).handle);
stand/uboot/uboot_disk.c
226
err = ub_dev_read(SI(dev).handle, buf, size, blk, &real_size);
stand/uboot/uboot_disk.c
60
int handle; /* storage device handle */
sys/amd64/linux/linux_proto.h
1165
char handle_l_[PADL_(struct l_file_handle *)]; struct l_file_handle * handle; char handle_r_[PADR_(struct l_file_handle *)];
sys/amd64/linux/linux_proto.h
1171
char handle_l_[PADL_(struct l_file_handle *)]; struct l_file_handle * handle; char handle_r_[PADR_(struct l_file_handle *)];
sys/amd64/linux/linux_systrace_args.c
2346
uarg[a++] = (intptr_t)p->handle; /* struct l_file_handle * */
sys/amd64/linux/linux_systrace_args.c
2356
uarg[a++] = (intptr_t)p->handle; /* struct l_file_handle * */
sys/amd64/linux32/linux32_proto.h
1237
char handle_l_[PADL_(struct l_file_handle *)]; struct l_file_handle * handle; char handle_r_[PADR_(struct l_file_handle *)];
sys/amd64/linux32/linux32_proto.h
1243
char handle_l_[PADL_(struct l_file_handle *)]; struct l_file_handle * handle; char handle_r_[PADR_(struct l_file_handle *)];
sys/amd64/linux32/linux32_systrace_args.c
2467
uarg[a++] = (intptr_t)p->handle; /* struct l_file_handle * */
sys/amd64/linux32/linux32_systrace_args.c
2477
uarg[a++] = (intptr_t)p->handle; /* struct l_file_handle * */
sys/amd64/sgx/sgx.c
275
if (object == NULL || object->handle == NULL) {
sys/amd64/sgx/sgx.c
309
vmh = object->handle;
sys/amd64/sgx/sgx.c
546
sgx_pg_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/amd64/sgx/sgx.c
551
vmh = handle;
sys/amd64/sgx/sgx.c
564
sgx_pg_dtor(void *handle)
sys/amd64/sgx/sgx.c
569
vmh = handle;
sys/amd64/sgx/sgx.c
609
sgx_pg_path(void *handle, char *path, size_t len)
sys/amd64/sgx/sgx.c
677
vmh = object->handle;
sys/amd64/sgx/sgx.c
814
vmh = object->handle;
sys/arm/arm/ofw_machdep.c
38
bus_space_handle_t *handle, bus_size_t *sz)
sys/arm/arm/ofw_machdep.c
70
return (bus_space_map(*tag, addr, size, flags, handle));
sys/arm/nvidia/drm2/tegra_bo.c
238
size_t size, uint32_t *handle, struct tegra_bo **res_bo)
sys/arm/nvidia/drm2/tegra_bo.c
247
rv = drm_gem_handle_create(file, &bo->gem_obj, handle);
sys/arm/nvidia/drm2/tegra_bo.c
274
&args->handle, &bo);
sys/arm/nvidia/drm2/tegra_bo.c
281
struct drm_device *drm_dev, uint32_t handle, uint64_t *offset)
sys/arm/nvidia/drm2/tegra_bo.c
287
gem_obj = drm_gem_object_lookup(drm_dev, file_priv, handle);
sys/arm/nvidia/drm2/tegra_bo.c
312
unsigned int handle)
sys/arm/nvidia/drm2/tegra_bo.c
316
rv = drm_gem_handle_delete(file_priv, handle);
sys/arm/nvidia/drm2/tegra_bo.c
337
tegra_gem_pager_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/arm/nvidia/drm2/tegra_bo.c
347
tegra_gem_pager_dtor(void *handle)
sys/arm/nvidia/drm2/tegra_dc.c
1004
if (handle != 0) {
sys/arm/nvidia/drm2/tegra_dc.c
1005
gem = drm_gem_object_lookup(drm_crtc->dev, file, handle);
sys/arm/nvidia/drm2/tegra_dc.c
969
uint32_t handle, uint32_t width, uint32_t height)
sys/arm/nvidia/drm2/tegra_fb.c
62
unsigned int *handle)
sys/arm/nvidia/drm2/tegra_fb.c
68
rv = drm_gem_handle_create(file, &fb->planes[0]->gem_obj, handle);
sys/arm64/acpica/acpi_machdep.c
214
bus_space_handle_t *handle, bus_size_t size)
sys/arm64/acpica/acpi_machdep.c
225
return (bus_space_map(*tag, phys, size, 0, handle));
sys/arm64/arm64/ofw_machdep.c
39
bus_space_handle_t *handle, bus_size_t *sz)
sys/arm64/arm64/ofw_machdep.c
60
return (bus_space_map(*tag, addr, size, flags, handle));
sys/arm64/arm64/undefined.c
294
remove_undef_handler(void *handle)
sys/arm64/arm64/undefined.c
298
uh = handle;
sys/arm64/arm64/undefined.c
300
free(handle, M_UNDEF);
sys/arm64/cavium/thunder_pcie_pem.c
480
bus_space_handle_t handle = 0;
sys/arm64/cavium/thunder_pcie_pem.c
485
handle = sli0_s2m_regx_base;
sys/arm64/cavium/thunder_pcie_pem.c
487
handle = sli1_s2m_regx_base;
sys/arm64/cavium/thunder_pcie_pem.c
491
if (handle) {
sys/arm64/cavium/thunder_pcie_pem.c
493
regval = bus_space_read_8(sc->reg_bst, handle,
sys/arm64/cavium/thunder_pcie_pem.c
496
bus_space_write_8(sc->reg_bst, handle,
sys/arm64/coresight/coresight_acpi.c
254
ACPI_HANDLE handle;
sys/arm64/coresight/coresight_acpi.c
268
handle = fields[2].Reference.Handle;
sys/arm64/coresight/coresight_acpi.c
278
endp->their_handle = handle;
sys/arm64/coresight/coresight_acpi.c
328
ACPI_HANDLE handle, parent;
sys/arm64/coresight/coresight_acpi.c
332
handle = acpi_get_handle(dev);
sys/arm64/coresight/coresight_acpi.c
334
status = AcpiGetParent(handle, &parent);
sys/arm64/linux/linux_proto.h
984
char handle_l_[PADL_(struct l_file_handle *)]; struct l_file_handle * handle; char handle_r_[PADR_(struct l_file_handle *)];
sys/arm64/linux/linux_proto.h
990
char handle_l_[PADL_(struct l_file_handle *)]; struct l_file_handle * handle; char handle_r_[PADR_(struct l_file_handle *)];
sys/arm64/linux/linux_systrace_args.c
1983
uarg[a++] = (intptr_t)p->handle; /* struct l_file_handle * */
sys/arm64/linux/linux_systrace_args.c
1993
uarg[a++] = (intptr_t)p->handle; /* struct l_file_handle * */
sys/arm64/rockchip/rk3399_emmcphy.c
277
pcell_t handle;
sys/arm64/rockchip/rk3399_emmcphy.c
283
if (OF_getencprop(node, "clocks", (void *)&handle,
sys/arm64/rockchip/rk3399_emmcphy.c
284
sizeof(handle)) <= 0) {
sys/arm64/rockchip/rk3399_emmcphy.c
288
xnode = OF_node_from_xref(handle);
sys/arm64/vmm/vmm_nvhe.c
90
vmm_hyp_enter(uint64_t handle, uint64_t x1, uint64_t x2, uint64_t x3,
sys/arm64/vmm/vmm_nvhe.c
93
switch (handle) {
sys/compat/linux/linux_file.c
266
error = copyin(&args->handle->handle_bytes, &fh_bytes,
sys/compat/linux/linux_file.c
272
error = copyout(&fh_size, &args->handle->handle_bytes,
sys/compat/linux/linux_file.c
285
error = copyout(&mount_id, &args->handle->handle_type,
sys/compat/linux/linux_file.c
290
error = copyout(&fh, &args->handle->f_handle,
sys/compat/linux/linux_file.c
302
error = copyin(&args->handle->handle_bytes, &fh_bytes,
sys/compat/linux/linux_file.c
311
return (kern_fhopen(td, (void *)&args->handle->f_handle, bsd_flags));
sys/compat/linuxkpi/common/include/acpi/acpi.h
93
acpi_handle handle;
sys/compat/linuxkpi/common/include/acpi/acpi_bus.h
48
bool acpi_check_dsm(ACPI_HANDLE handle, const guid_t *uuid, int rev,
sys/compat/linuxkpi/common/include/acpi/acpi_bus.h
50
ACPI_OBJECT * acpi_evaluate_dsm_typed(ACPI_HANDLE handle, const guid_t *uuid,
sys/compat/linuxkpi/common/include/linux/acpi.h
45
#define acpi_handle_debug(handle, fmt, ...)
sys/compat/linuxkpi/common/include/linux/dmapool.h
44
dma_addr_t *handle);
sys/compat/linuxkpi/common/include/linux/dmapool.h
83
dma_pool_alloc(struct dma_pool *pool, gfp_t mem_flags, dma_addr_t *handle)
sys/compat/linuxkpi/common/include/linux/dmapool.h
86
return (linux_dma_pool_alloc(pool, mem_flags, handle));
sys/compat/linuxkpi/common/include/linux/dmapool.h
90
dma_pool_zalloc(struct dma_pool *pool, gfp_t mem_flags, dma_addr_t *handle)
sys/compat/linuxkpi/common/include/linux/dmapool.h
93
return (dma_pool_alloc(pool, mem_flags | __GFP_ZERO, handle));
sys/compat/linuxkpi/common/include/linux/dmi.h
38
uint16_t handle;
sys/compat/linuxkpi/common/include/linux/soc/qcom/qmi.h
110
qmi_handle_init(struct qmi_handle *handle, size_t resp_len_max,
sys/compat/linuxkpi/common/include/linux/soc/qcom/qmi.h
114
handle->handler = handler;
sys/compat/linuxkpi/common/include/linux/soc/qcom/qmi.h
116
handle->ops = *ops;
sys/compat/linuxkpi/common/include/linux/soc/qcom/qmi.h
125
qmi_add_lookup(struct qmi_handle *handle, uint32_t service, uint32_t version,
sys/compat/linuxkpi/common/include/linux/soc/qcom/qmi.h
134
qmi_handle_release(struct qmi_handle *handle)
sys/compat/linuxkpi/common/include/linux/soc/qcom/qmi.h
141
qmi_send_request(struct qmi_handle *handle, void *x, struct qmi_txn *txn,
sys/compat/linuxkpi/common/include/linux/soc/qcom/qmi.h
157
qmi_txn_init(struct qmi_handle *handle, struct qmi_txn *txn,
sys/compat/linuxkpi/common/src/linux_acpi.c
103
status = acpi_EvaluateDSMTyped(handle, (const uint8_t *)uuid, rev, func,
sys/compat/linuxkpi/common/src/linux_acpi.c
218
acpi_dev_present_cb(ACPI_HANDLE handle, UINT32 level, void *context,
sys/compat/linuxkpi/common/src/linux_acpi.c
228
if (handle == NULL)
sys/compat/linuxkpi/common/src/linux_acpi.c
231
if (!ACPI_FAILURE(acpi_GetInteger(handle, "_STA", &sta)) &&
sys/compat/linuxkpi/common/src/linux_acpi.c
235
if (ACPI_FAILURE(AcpiGetObjectInfo(handle, &devinfo)))
sys/compat/linuxkpi/common/src/linux_acpi.c
260
if (ACPI_FAILURE(acpi_GetInteger(handle, "_HRV", &hrv)))
sys/compat/linuxkpi/common/src/linux_acpi.c
266
dev = acpi_get_device(handle);
sys/compat/linuxkpi/common/src/linux_acpi.c
345
acpi_check_dsm(ACPI_HANDLE handle, const guid_t *uuid, int rev, uint64_t funcs)
sys/compat/linuxkpi/common/src/linux_acpi.c
351
acpi_evaluate_dsm_typed(ACPI_HANDLE handle, const guid_t *uuid, int rev,
sys/compat/linuxkpi/common/src/linux_acpi.c
76
acpi_check_dsm(ACPI_HANDLE handle, const guid_t *uuid, int rev, uint64_t funcs)
sys/compat/linuxkpi/common/src/linux_acpi.c
92
ret = acpi_DSMQuery(handle, (const uint8_t *)uuid, rev);
sys/compat/linuxkpi/common/src/linux_acpi.c
97
acpi_evaluate_dsm_typed(ACPI_HANDLE handle, const guid_t *uuid, int rev,
sys/compat/linuxkpi/common/src/linux_compat.c
149
static struct vm_area_struct *linux_cdev_handle_find(void *handle);
sys/compat/linuxkpi/common/src/linux_compat.c
453
vmap = linux_cdev_handle_find(vm_obj->handle);
sys/compat/linuxkpi/common/src/linux_compat.c
456
MPASS(vmap->vm_private_data == vm_obj->handle);
sys/compat/linuxkpi/common/src/linux_compat.c
497
vmap = linux_cdev_handle_find(vm_obj->handle);
sys/compat/linuxkpi/common/src/linux_compat.c
499
MPASS(vmap->vm_private_data == vm_obj->handle);
sys/compat/linuxkpi/common/src/linux_compat.c
584
linux_cdev_handle_find(void *handle)
sys/compat/linuxkpi/common/src/linux_compat.c
590
if (vmap->vm_private_data == handle)
sys/compat/linuxkpi/common/src/linux_compat.c
598
linux_cdev_pager_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/compat/linuxkpi/common/src/linux_compat.c
602
MPASS(linux_cdev_handle_find(handle) != NULL);
sys/compat/linuxkpi/common/src/linux_compat.c
608
linux_cdev_pager_dtor(void *handle)
sys/compat/linuxkpi/common/src/linux_compat.c
613
vmap = linux_cdev_handle_find(handle);
sys/compat/linuxkpi/common/src/linux_pci.c
1802
dma_addr_t *handle;
sys/compat/linuxkpi/common/src/linux_pci.c
1812
dma_free_coherent(dev, dr->size, dr->mem, *dr->handle);
sys/compat/linuxkpi/common/src/linux_pci.c
1825
if (a->size != b->size || a->handle != b->handle)
sys/compat/linuxkpi/common/src/linux_pci.c
1828
(uintmax_t)a->handle, (uintmax_t)b->handle);
sys/compat/linuxkpi/common/src/linux_pci.c
1838
.handle = &dma_handle,
sys/compat/linuxkpi/common/src/linux_pci.c
1865
dr->handle = dma_handle;
sys/compat/linuxkpi/common/src/linux_pci.c
2138
dma_addr_t *handle)
sys/compat/linuxkpi/common/src/linux_pci.c
2154
*handle = obj->dma_addr;
sys/dev/aacraid/aacraid.c
871
u_int32_t bellbits, bellbits_shifted, index, handle;
sys/dev/aacraid/aacraid.c
947
handle = (le32toh(sc->aac_common->ac_host_rrq[index]) &
sys/dev/aacraid/aacraid.c
950
if (handle & 0x40000000)
sys/dev/aacraid/aacraid.c
953
else if (handle & 0x00800000)
sys/dev/aacraid/aacraid.c
955
handle &= 0x0000ffff;
sys/dev/aacraid/aacraid.c
956
if (handle == 0)
sys/dev/aacraid/aacraid.c
959
cm = sc->aac_commands + (handle - 1);
sys/dev/acpi_support/acpi_asus.c
1007
status = acpi_SetInteger(sc->handle,
sys/dev/acpi_support/acpi_asus.c
1011
status = AcpiEvaluateObject(sc->handle,
sys/dev/acpi_support/acpi_asus.c
1026
status = acpi_SetInteger(sc->handle,
sys/dev/acpi_support/acpi_asus.c
1038
status = AcpiEvaluateObject(sc->handle,
sys/dev/acpi_support/acpi_asus.c
1041
status = acpi_SetInteger(sc->handle,
sys/dev/acpi_support/acpi_asus.c
1052
status = AcpiEvaluateObject(sc->handle,
sys/dev/acpi_support/acpi_asus.c
1062
status = AcpiEvaluateObject(sc->handle,
sys/dev/acpi_support/acpi_asus.c
1072
status = AcpiEvaluateObject(sc->handle,
sys/dev/acpi_support/acpi_asus.c
1092
status = acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_asus.c
1098
status = AcpiEvaluateObject(sc->handle,
sys/dev/acpi_support/acpi_asus.c
1103
status = AcpiEvaluateObject(sc->handle,
sys/dev/acpi_support/acpi_asus.c
1113
status = acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_asus.c
1138
status = AcpiEvaluateObject(sc->handle,
sys/dev/acpi_support/acpi_asus.c
1146
status = acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_asus.c
1155
status = acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_asus.c
1163
status = acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_asus.c
117
ACPI_HANDLE handle;
sys/dev/acpi_support/acpi_asus.c
1171
status = acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_asus.c
555
sc->handle = acpi_get_handle(dev);
sys/dev/acpi_support/acpi_asus.c
566
AcpiEvaluateObject(sc->handle, "INIT", &Args, &Buf);
sys/dev/acpi_support/acpi_asus.c
789
AcpiEvaluateObject(sc->handle, "BSTS", NULL, NULL);
sys/dev/acpi_support/acpi_asus.c
795
AcpiInstallNotifyHandler(sc->handle, ACPI_SYSTEM_NOTIFY,
sys/dev/acpi_support/acpi_asus.c
804
NULL : sc->handle), sc->model->lcdd, &(sc->lcdd_handle));
sys/dev/acpi_support/acpi_asus.c
846
AcpiRemoveNotifyHandler(sc->handle, ACPI_SYSTEM_NOTIFY,
sys/dev/acpi_support/acpi_asus.c
904
acpi_SetInteger(sc->handle, method, state);
sys/dev/acpi_support/acpi_fujitsu.c
107
ACPI_HANDLE handle;
sys/dev/acpi_support/acpi_fujitsu.c
244
sc->handle = acpi_get_handle(dev);
sys/dev/acpi_support/acpi_fujitsu.c
247
AcpiInstallNotifyHandler(sc->handle, ACPI_DEVICE_NOTIFY,
sys/dev/acpi_support/acpi_fujitsu.c
285
status = acpi_SetInteger(sc->handle, "SMOU", 1);
sys/dev/acpi_support/acpi_fujitsu.c
339
AcpiRemoveNotifyHandler(sc->handle, ACPI_DEVICE_NOTIFY,
sys/dev/acpi_support/acpi_fujitsu.c
497
status = acpi_GetInteger(sc->handle, nv.name, &nv.value);
sys/dev/acpi_support/acpi_fujitsu.c
560
status = acpi_SetInteger(sc->handle, control, value);
sys/dev/acpi_support/acpi_fujitsu.c
581
if (ACPI_FAILURE(acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_fujitsu.c
590
if (ACPI_FAILURE(acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_fujitsu.c
597
if (ACPI_FAILURE(acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_fujitsu.c
605
if (sc->gbls.exists || ACPI_FAILURE(acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_fujitsu.c
612
if (ACPI_FAILURE(acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_fujitsu.c
619
if (ACPI_FAILURE(acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_fujitsu.c
626
if (ACPI_FAILURE(acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_fujitsu.c
633
if (ACPI_FAILURE(acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_fujitsu.c
664
if (ACPI_FAILURE(acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_fujitsu.c
678
acpi_UserNotify("FUJITSU", sc->handle, FN_MUTE);
sys/dev/acpi_support/acpi_fujitsu.c
684
acpi_UserNotify("FUJITSU", sc->handle, FN_VOLUME);
sys/dev/acpi_support/acpi_fujitsu.c
690
if (ACPI_FAILURE(acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_fujitsu.c
705
acpi_UserNotify("FUJITSU", sc->handle, FN_POINTER_ENABLE);
sys/dev/acpi_support/acpi_fujitsu.c
714
if (ACPI_FAILURE(acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_fujitsu.c
728
acpi_UserNotify("FUJITSU", sc->handle, FN_LCD_BRIGHTNESS);
sys/dev/acpi_support/acpi_fujitsu.c
737
if (ACPI_FAILURE(acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_fujitsu.c
749
acpi_UserNotify("FUJITSU", sc->handle, FN_LCD_BRIGHTNESS);
sys/dev/acpi_support/acpi_ibm.c
1005
if (ACPI_SUCCESS(AcpiGetHandle(sc->handle, "MMTS", &sc->mic_led_handle)))
sys/dev/acpi_support/acpi_ibm.c
1019
if ((ACPI_SUCCESS(AcpiGetHandle(sc->handle, "\\UCMS", &sc->light_handle)) ||
sys/dev/acpi_support/acpi_ibm.c
1020
ACPI_SUCCESS(AcpiGetHandle(sc->handle, "\\CMOS", &sc->light_handle)) ||
sys/dev/acpi_support/acpi_ibm.c
1021
ACPI_SUCCESS(AcpiGetHandle(sc->handle, "\\CMS", &sc->light_handle))) &&
sys/dev/acpi_support/acpi_ibm.c
1028
else if (ACPI_SUCCESS(AcpiGetHandle(sc->handle, "\\LGHT", &sc->light_handle))) {
sys/dev/acpi_support/acpi_ibm.c
1049
if (ACPI_SUCCESS(acpi_GetInteger(sc->handle, IBM_NAME_WLAN_BT_GET, &dummy)))
sys/dev/acpi_support/acpi_ibm.c
1059
(ACPI_SUCCESS(AcpiGetHandle(sc->handle, "GFAN", &sc->fan_handle)) ||
sys/dev/acpi_support/acpi_ibm.c
1060
ACPI_SUCCESS(AcpiGetHandle(sc->handle, "\\FSPD", &sc->fan_handle)));
sys/dev/acpi_support/acpi_ibm.c
1270
return acpi_SetInteger(sc->handle, IBM_NAME_WLAN_BT_SET, val);
sys/dev/acpi_support/acpi_ibm.c
1322
status = AcpiEvaluateObject(sc->handle,
sys/dev/acpi_support/acpi_ibm.c
165
ACPI_HANDLE handle;
sys/dev/acpi_support/acpi_ibm.c
441
status = AcpiEvaluateObject(sc->handle, "MMTS", &input, NULL);
sys/dev/acpi_support/acpi_ibm.c
482
sc->handle = acpi_get_handle(dev);
sys/dev/acpi_support/acpi_ibm.c
516
sc->events_mask_supported = ACPI_SUCCESS(acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_ibm.c
525
if (ACPI_SUCCESS (acpi_GetInteger(sc->handle, "MHKV", &hkey))) {
sys/dev/acpi_support/acpi_ibm.c
530
if (ACPI_FAILURE(acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_ibm.c
545
if (ACPI_SUCCESS(AcpiEvaluateObject (sc->handle,
sys/dev/acpi_support/acpi_ibm.c
602
AcpiInstallNotifyHandler(sc->handle, ACPI_DEVICE_NOTIFY,
sys/dev/acpi_support/acpi_ibm.c
651
AcpiRemoveNotifyHandler(sc->handle, ACPI_DEVICE_NOTIFY, acpi_ibm_notify);
sys/dev/acpi_support/acpi_ibm.c
707
status = AcpiEvaluateObject(sc->handle,
sys/dev/acpi_support/acpi_ibm.c
759
acpi_GetInteger(sc->handle, IBM_NAME_EVENTS_STATUS_GET, &val);
sys/dev/acpi_support/acpi_ibm.c
764
acpi_GetInteger(sc->handle, IBM_NAME_EVENTS_MASK_GET, &val);
sys/dev/acpi_support/acpi_ibm.c
827
acpi_GetInteger(sc->handle, IBM_NAME_WLAN_BT_GET, &val);
sys/dev/acpi_support/acpi_ibm.c
833
acpi_GetInteger(sc->handle, IBM_NAME_WLAN_BT_GET, &val);
sys/dev/acpi_support/acpi_ibm.c
905
status = acpi_SetInteger(sc->handle, IBM_NAME_EVENTS_STATUS_SET, arg);
sys/dev/acpi_support/acpi_panasonic.c
161
sc->handle = acpi_get_handle(dev);
sys/dev/acpi_support/acpi_panasonic.c
182
status = AcpiEvaluateObject(sc->handle, "", NULL, NULL);
sys/dev/acpi_support/acpi_panasonic.c
191
status = AcpiInstallNotifyHandler(sc->handle, ACPI_DEVICE_NOTIFY,
sys/dev/acpi_support/acpi_panasonic.c
202
acpi_panasonic_power_profile, sc->handle, 0);
sys/dev/acpi_support/acpi_panasonic.c
218
AcpiRemoveNotifyHandler(sc->handle, ACPI_DEVICE_NOTIFY,
sys/dev/acpi_support/acpi_panasonic.c
236
hkey_sound_mute(sc->handle, HKEY_SET, &mute);
sys/dev/acpi_support/acpi_panasonic.c
285
error = handler(sc->handle, HKEY_GET, &arg);
sys/dev/acpi_support/acpi_panasonic.c
295
error = handler(sc->handle, HKEY_SET, &arg);
sys/dev/acpi_support/acpi_panasonic.c
543
ACPI_HANDLE handle;
sys/dev/acpi_support/acpi_panasonic.c
546
handle = (ACPI_HANDLE)arg;
sys/dev/acpi_support/acpi_panasonic.c
550
hkey_lcd_brightness(handle, HKEY_GET, &brightness);
sys/dev/acpi_support/acpi_panasonic.c
551
hkey_lcd_brightness(handle, HKEY_SET, &brightness);
sys/dev/acpi_support/acpi_panasonic.c
68
ACPI_HANDLE handle;
sys/dev/acpi_support/acpi_system76.c
250
status = AcpiEvaluateObject(sc->handle,
sys/dev/acpi_support/acpi_system76.c
253
status = AcpiEvaluateObject(sc->handle,
sys/dev/acpi_support/acpi_system76.c
263
status = acpi_SetInteger(sc->handle, s76_sysctl_table[method].set_method,
sys/dev/acpi_support/acpi_system76.c
266
status = acpi_GetInteger(sc->handle, s76_sysctl_table[method].get_method,
sys/dev/acpi_support/acpi_system76.c
324
if (ACPI_FAILURE(acpi_GetInteger(sc->handle,
sys/dev/acpi_support/acpi_system76.c
337
acpi_system76_notify_handler(ACPI_HANDLE handle, uint32_t notify, void *ctx)
sys/dev/acpi_support/acpi_system76.c
508
sc->handle = acpi_get_handle(dev);
sys/dev/acpi_support/acpi_system76.c
510
AcpiInstallNotifyHandler(sc->handle, ACPI_DEVICE_NOTIFY,
sys/dev/acpi_support/acpi_system76.c
529
AcpiRemoveNotifyHandler(sc->handle, ACPI_SYSTEM_NOTIFY,
sys/dev/acpi_support/acpi_system76.c
58
ACPI_HANDLE handle;
sys/dev/acpi_support/acpi_toshiba.c
126
ACPI_HANDLE handle;
sys/dev/acpi_support/acpi_toshiba.c
238
sc->handle = acpi_get_handle(dev);
sys/dev/acpi_support/acpi_toshiba.c
255
status = AcpiEvaluateObject(sc->handle, METHOD_HCI_ENABLE,
sys/dev/acpi_support/acpi_toshiba.c
262
AcpiInstallNotifyHandler(sc->handle, ACPI_DEVICE_NOTIFY,
sys/dev/acpi_support/acpi_toshiba.c
276
AcpiRemoveNotifyHandler(sc->handle, ACPI_DEVICE_NOTIFY,
sys/dev/acpi_support/acpi_toshiba.c
298
error = handler(sc->handle, HCI_GET, &arg);
sys/dev/acpi_support/acpi_toshiba.c
308
error = handler(sc->handle, HCI_SET, &arg);
sys/dev/acpica/acpi.c
1037
acpi_pnpinfo(ACPI_HANDLE handle, struct sbuf *sb)
sys/dev/acpica/acpi.c
1041
if (ACPI_FAILURE(AcpiGetObjectInfo(handle, &adinfo))) {
sys/dev/acpica/acpi.c
1076
ACPI_HANDLE *handle = acpi_get_handle(child);
sys/dev/acpica/acpi.c
1078
if (handle != NULL)
sys/dev/acpica/acpi.c
1079
sbuf_printf(sb, "%s", acpi_name(handle));
sys/dev/acpica/acpi.c
1386
ACPI_HANDLE handle;
sys/dev/acpica/acpi.c
1390
handle = acpi_get_handle(dev);
sys/dev/acpica/acpi.c
1391
if (handle == NULL)
sys/dev/acpica/acpi.c
1393
status = acpi_GetInteger(handle, "_PXM", &pxm);
sys/dev/acpica/acpi.c
174
static void acpi_probe_order(ACPI_HANDLE handle, int *order);
sys/dev/acpica/acpi.c
175
static ACPI_STATUS acpi_probe_child(ACPI_HANDLE handle, UINT32 level,
sys/dev/acpica/acpi.c
184
static int acpi_wake_sleep_prep(struct acpi_softc *sc, ACPI_HANDLE handle,
sys/dev/acpica/acpi.c
186
static int acpi_wake_run_prep(struct acpi_softc *sc, ACPI_HANDLE handle,
sys/dev/acpica/acpi.c
2135
acpi_device_pwr_for_sleep_sxd(device_t dev, ACPI_HANDLE handle, int state,
sys/dev/acpica/acpi.c
2143
status = acpi_GetInteger(handle, sxd, dstate);
sys/dev/acpica/acpi.c
2146
acpi_name(handle), AcpiFormatException(status));
sys/dev/acpica/acpi.c
2165
ACPI_HANDLE handle = acpi_get_handle(dev);
sys/dev/acpica/acpi.c
2177
if (handle == NULL ||
sys/dev/acpica/acpi.c
2178
acpi_MatchHid(handle, "PNP0500") ||
sys/dev/acpica/acpi.c
2179
acpi_MatchHid(handle, "PNP0501") ||
sys/dev/acpica/acpi.c
2180
acpi_MatchHid(handle, "PNP0502") ||
sys/dev/acpica/acpi.c
2181
acpi_MatchHid(handle, "PNP0510") ||
sys/dev/acpica/acpi.c
2182
acpi_MatchHid(handle, "PNP0511"))
sys/dev/acpica/acpi.c
2191
return (acpi_device_pwr_for_sleep_sxd(bus, handle, state, dstate));
sys/dev/acpica/acpi.c
2450
acpi_probe_order(ACPI_HANDLE handle, int *order)
sys/dev/acpica/acpi.c
2461
AcpiGetType(handle, &type);
sys/dev/acpica/acpi.c
2464
else if (acpi_MatchHid(handle, "PNP0C01") ||
sys/dev/acpica/acpi.c
2465
acpi_MatchHid(handle, "PNP0C02"))
sys/dev/acpica/acpi.c
2467
else if (acpi_MatchHid(handle, "PNP0100") ||
sys/dev/acpica/acpi.c
2468
acpi_MatchHid(handle, "PNP0103") ||
sys/dev/acpica/acpi.c
2469
acpi_MatchHid(handle, "PNP0B00"))
sys/dev/acpica/acpi.c
2471
else if (acpi_MatchHid(handle, "PNP0C09"))
sys/dev/acpica/acpi.c
2473
else if (acpi_MatchHid(handle, "PNP0C0F"))
sys/dev/acpica/acpi.c
2482
acpi_probe_child(ACPI_HANDLE handle, UINT32 level, void *context, void **status)
sys/dev/acpica/acpi.c
2499
if (acpi_avoid(handle))
sys/dev/acpica/acpi.c
2503
if (ACPI_SUCCESS(AcpiGetType(handle, &type))) {
sys/dev/acpica/acpi.c
2504
handle_str = acpi_name(handle);
sys/dev/acpica/acpi.c
2516
if (acpi_parse_prw(handle, &prw) == 0)
sys/dev/acpica/acpi.c
2517
AcpiSetupGpeForWake(handle, prw.gpe_handle, prw.gpe_bit);
sys/dev/acpica/acpi.c
2523
if (!acpi_has_hid(handle))
sys/dev/acpica/acpi.c
2538
acpi_probe_order(handle, &order);
sys/dev/acpica/acpi.c
2544
acpi_set_handle(child, handle);
sys/dev/acpica/acpi.c
2545
AcpiAttachData(handle, acpi_fake_objhandler, child);
sys/dev/acpica/acpi.c
2558
if (acpi_MatchHid(handle, "PNP0C0F"))
sys/dev/acpica/acpi.c
2566
if (acpi_MatchHid(handle, "PNP0B00"))
sys/dev/acpica/acpi.c
2573
if (ACPI_SUCCESS(AcpiGetHandle(handle, "_DCK", &h)))
sys/dev/acpica/acpi.c
2587
acpi_parse_resources(child, handle, &acpi_res_parse_set, NULL);
sys/dev/acpica/acpi.c
2591
if (ACPI_SUCCESS(AcpiGetObjectInfo(handle, &devinfo))) {
sys/dev/acpica/acpi.c
2891
acpi_SetInteger(ACPI_HANDLE handle, char *path, UINT32 number)
sys/dev/acpica/acpi.c
2901
return (AcpiEvaluateObject(handle, path, &args, NULL));
sys/dev/acpica/acpi.c
2908
acpi_GetInteger(ACPI_HANDLE handle, char *path, UINT32 *number)
sys/dev/acpica/acpi.c
2914
if (handle == NULL)
sys/dev/acpica/acpi.c
2915
handle = ACPI_ROOT_OBJECT;
sys/dev/acpica/acpi.c
2923
status = AcpiEvaluateObject(handle, path, NULL, &buf);
sys/dev/acpica/acpi.c
2943
status = AcpiEvaluateObject(handle, path, NULL, &buf);
sys/dev/acpica/acpi.c
3160
acpi_EvaluateDSM(ACPI_HANDLE handle, const uint8_t *uuid, int revision,
sys/dev/acpica/acpi.c
3163
return (acpi_EvaluateDSMTyped(handle, uuid, revision, function,
sys/dev/acpica/acpi.c
3168
acpi_EvaluateDSMTyped(ACPI_HANDLE handle, const uint8_t *uuid, int revision,
sys/dev/acpica/acpi.c
3199
status = AcpiEvaluateObjectTyped(handle, "_DSM", &arglist, &buf, type);
sys/dev/acpica/acpi.c
3210
acpi_EvaluateOSC(ACPI_HANDLE handle, uint8_t *uuid, int revision, int count,
sys/dev/acpica/acpi.c
3233
status = AcpiEvaluateObjectTyped(handle, "_OSC", &arglist, &buf,
sys/dev/acpica/acpi.c
3850
acpi_wake_sleep_prep(struct acpi_softc *sc, ACPI_HANDLE handle,
sys/dev/acpica/acpi.c
3858
if (acpi_parse_prw(handle, &prw) != 0)
sys/dev/acpica/acpi.c
3860
dev = acpi_get_device(handle);
sys/dev/acpica/acpi.c
3875
acpi_name(handle), power_stype_to_name(stype));
sys/dev/acpica/acpi.c
3877
acpi_pwr_wake_enable(handle, 1);
sys/dev/acpica/acpi.c
3878
acpi_SetInteger(handle, "_PSW", 1);
sys/dev/acpica/acpi.c
3881
acpi_name(handle), power_stype_to_name(stype));
sys/dev/acpica/acpi.c
3888
acpi_wake_run_prep(struct acpi_softc *sc, ACPI_HANDLE handle,
sys/dev/acpica/acpi.c
3899
if (acpi_parse_prw(handle, &prw) != 0)
sys/dev/acpica/acpi.c
3901
dev = acpi_get_device(handle);
sys/dev/acpica/acpi.c
3915
device_printf(dev, "run_prep re-enabled %s\n", acpi_name(handle));
sys/dev/acpica/acpi.c
3917
acpi_SetInteger(handle, "_PSW", 0);
sys/dev/acpica/acpi.c
3918
acpi_pwr_wake_enable(handle, 0);
sys/dev/acpica/acpi.c
3921
acpi_name(handle));
sys/dev/acpica/acpi.c
3928
acpi_wake_prep(ACPI_HANDLE handle, UINT32 level, void *context, void **status)
sys/dev/acpica/acpi.c
3934
acpi_wake_sleep_prep(ctx->sc, handle, ctx->stype);
sys/dev/acpica/acpi.c
3936
acpi_wake_run_prep(ctx->sc, handle, ctx->stype);
sys/dev/acpica/acpi.c
4229
acpi_name(ACPI_HANDLE handle)
sys/dev/acpica/acpi.c
4237
if (handle && ACPI_SUCCESS(AcpiGetName(handle, ACPI_FULL_PATHNAME, &buf)))
sys/dev/acpica/acpi.c
4247
acpi_avoid(ACPI_HANDLE handle)
sys/dev/acpica/acpi.c
4252
np = acpi_name(handle);
sys/dev/acpica/acpi.c
4319
ACPI_HANDLE handle;
sys/dev/acpica/acpi.c
4336
&handle)))
sys/dev/acpica/acpi.c
4338
*dev = acpi_get_device(handle);
sys/dev/acpica/acpi_acad.c
159
ACPI_HANDLE handle;
sys/dev/acpica/acpi_acad.c
163
handle = acpi_get_handle(dev);
sys/dev/acpica/acpi_acad.c
184
AcpiInstallNotifyHandler(handle, ACPI_ALL_NOTIFY,
sys/dev/acpica/acpi_apei.c
583
apei_find(ACPI_HANDLE handle, UINT32 level, void *context,
sys/dev/acpica/acpi_apei.c
590
if (acpi_MatchHid(handle, *ids)) {
sys/dev/acpica/acpi_cmbat.c
131
ACPI_HANDLE handle;
sys/dev/acpica/acpi_cmbat.c
135
handle = acpi_get_handle(dev);
sys/dev/acpica/acpi_cmbat.c
150
AcpiInstallNotifyHandler(handle, ACPI_ALL_NOTIFY,
sys/dev/acpica/acpi_cmbat.c
161
ACPI_HANDLE handle;
sys/dev/acpica/acpi_cmbat.c
163
handle = acpi_get_handle(dev);
sys/dev/acpica/acpi_cmbat.c
164
AcpiRemoveNotifyHandler(handle, ACPI_ALL_NOTIFY, acpi_cmbat_notify_handler);
sys/dev/acpica/acpi_cpu.c
237
ACPI_HANDLE handle;
sys/dev/acpica/acpi_cpu.c
251
handle = acpi_get_handle(dev);
sys/dev/acpica/acpi_cpu.c
260
status = AcpiEvaluateObject(handle, NULL, NULL, &buf);
sys/dev/acpica/acpi_cpu.c
282
status = acpi_GetInteger(handle, "_UID", &acpi_id);
sys/dev/acpica/acpi_dock.c
154
acpi_dock_is_ejd_device(ACPI_HANDLE dock_handle, ACPI_HANDLE handle)
sys/dev/acpica/acpi_dock.c
165
ret_status = AcpiEvaluateObject(handle, "_EJD", NULL, &ejd_buffer);
sys/dev/acpica/acpi_dock.c
200
acpi_dock_insert_child(ACPI_HANDLE handle, UINT32 level, void *context,
sys/dev/acpica/acpi_dock.c
209
if (!acpi_dock_is_ejd_device(dock_handle, handle))
sys/dev/acpica/acpi_dock.c
213
"inserting device for %s\n", acpi_name(handle));
sys/dev/acpica/acpi_dock.c
226
AcpiNsWalkNamespace(ACPI_TYPE_ANY, handle,
sys/dev/acpica/acpi_dock.c
230
dev = acpi_get_device(handle);
sys/dev/acpica/acpi_dock.c
233
acpi_name(handle));
sys/dev/acpica/acpi_dock.c
290
acpi_dock_eject_child(ACPI_HANDLE handle, UINT32 level, void *context,
sys/dev/acpica/acpi_dock.c
299
if (!acpi_dock_is_ejd_device(dock_handle, handle))
sys/dev/acpica/acpi_dock.c
303
"ejecting device for %s\n", acpi_name(handle));
sys/dev/acpica/acpi_dock.c
305
dev = acpi_get_device(handle);
sys/dev/acpica/acpi_dock.c
312
acpi_SetInteger(handle, "_EJ0", 0);
sys/dev/acpica/acpi_hpet.c
346
hpet_find(ACPI_HANDLE handle, UINT32 level, void *context,
sys/dev/acpica/acpi_hpet.c
354
if (acpi_MatchHid(handle, *ids))
sys/dev/acpica/acpi_hpet.c
359
if (ACPI_FAILURE(acpi_GetInteger(handle, "_UID", &uid)) ||
sys/dev/acpica/acpi_hpet.c
361
*status = acpi_get_device(handle);
sys/dev/acpica/acpi_hpet.c
486
sc->handle = acpi_get_handle(dev);
sys/dev/acpica/acpi_hpet.c
817
acpi_GetInteger(sc->handle, "_UID", &sc->acpi_uid);
sys/dev/acpica/acpi_hpet.c
86
ACPI_HANDLE handle;
sys/dev/acpica/acpi_pci.c
282
acpi_pci_update_device(ACPI_HANDLE handle, device_t pci_child)
sys/dev/acpica/acpi_pci.c
294
child = acpi_get_device(handle);
sys/dev/acpica/acpi_pci.c
299
acpi_name(handle)));
sys/dev/acpica/acpi_pci.c
306
status = AcpiAttachData(handle, acpi_fake_objhandler, pci_child);
sys/dev/acpica/acpi_pci.c
309
acpi_name(handle), AcpiFormatException(status));
sys/dev/acpica/acpi_pci.c
313
acpi_pci_save_handle(ACPI_HANDLE handle, UINT32 level, void *context,
sys/dev/acpica/acpi_pci.c
324
if (ACPI_FAILURE(acpi_GetInteger(handle, "_ADR", &address)))
sys/dev/acpica/acpi_pci.c
331
dinfo->ap_handle = handle;
sys/dev/acpica/acpi_pci.c
332
acpi_pci_update_device(handle, child);
sys/dev/acpica/acpi_pci.c
440
acpi_pci_install_device_notify_handler(ACPI_HANDLE handle, UINT32 level,
sys/dev/acpica/acpi_pci.c
447
if (ACPI_FAILURE(AcpiGetHandle(handle, "_EJ0", &h)))
sys/dev/acpica/acpi_pci.c
450
AcpiInstallNotifyHandler(handle, ACPI_SYSTEM_NOTIFY,
sys/dev/acpica/acpi_pci.c
472
acpi_pci_remove_notify_handler(ACPI_HANDLE handle, UINT32 level, void *context,
sys/dev/acpica/acpi_pci.c
479
if (ACPI_FAILURE(AcpiGetHandle(handle, "_EJ0", &h)))
sys/dev/acpica/acpi_pci.c
482
AcpiRemoveNotifyHandler(handle, ACPI_SYSTEM_NOTIFY,
sys/dev/acpica/acpi_pci.c
87
static ACPI_STATUS acpi_pci_save_handle(ACPI_HANDLE handle, UINT32 level,
sys/dev/acpica/acpi_pci.c
91
static void acpi_pci_update_device(ACPI_HANDLE handle, device_t pci_child);
sys/dev/acpica/acpi_pci_link.c
134
acpi_short_name(ACPI_HANDLE handle, char *buffer, size_t buflen)
sys/dev/acpica/acpi_pci_link.c
140
return (AcpiGetName(handle, ACPI_SINGLE_NAME, &buf));
sys/dev/acpica/acpi_pcib.c
109
if (ACPI_FAILURE(AcpiGetHandle(ACPI_ROOT_OBJECT, entry->Source, &handle)))
sys/dev/acpica/acpi_pcib.c
111
child = acpi_get_device(handle);
sys/dev/acpica/acpi_pcib.c
119
acpi_name(handle));
sys/dev/acpica/acpi_pcib.c
286
ACPI_HANDLE handle;
sys/dev/acpica/acpi_pcib.c
312
handle = acpi_get_handle(pcib);
sys/dev/acpica/acpi_pcib.c
313
status = acpi_EvaluateOSC(handle, pci_host_bridge_uuid, 1,
sys/dev/acpica/acpi_pcib.c
92
ACPI_HANDLE handle;
sys/dev/acpica/acpi_pcib_pci.c
62
ACPI_HANDLE handle;
sys/dev/acpica/acpi_perf.c
141
ACPI_HANDLE handle;
sys/dev/acpica/acpi_perf.c
149
handle = acpi_get_handle(parent);
sys/dev/acpica/acpi_perf.c
150
if (handle == NULL)
sys/dev/acpica/acpi_perf.c
152
if (ACPI_FAILURE(AcpiEvaluateObject(handle, "_PSS", NULL, NULL)))
sys/dev/acpica/acpi_perf.c
171
ACPI_HANDLE handle;
sys/dev/acpica/acpi_perf.c
186
handle = acpi_get_handle(dev);
sys/dev/acpica/acpi_perf.c
189
if (ACPI_FAILURE(AcpiEvaluateObject(handle, "_PCT", NULL, &buf)))
sys/dev/acpica/acpi_perf.c
219
sc->handle = acpi_get_handle(dev);
sys/dev/acpica/acpi_perf.c
255
status = AcpiEvaluateObject(sc->handle, "_PSS", NULL, &buf);
sys/dev/acpica/acpi_perf.c
318
status = AcpiEvaluateObject(sc->handle, "_PCT", NULL, &buf);
sys/dev/acpica/acpi_perf.c
359
AcpiInstallNotifyHandler(sc->handle, ACPI_DEVICE_NOTIFY,
sys/dev/acpica/acpi_perf.c
426
status = acpi_GetInteger(sc->handle, "_PPC", &sc->px_max_avail);
sys/dev/acpica/acpi_perf.c
73
ACPI_HANDLE handle;
sys/dev/acpica/acpi_resource.c
194
acpi_map_intr(device_t dev, u_int irq, ACPI_HANDLE handle)
sys/dev/acpica/acpi_resource.c
201
if (handle != NULL) {
sys/dev/acpica/acpi_resource.c
208
AcpiWalkResources(handle, "_CRS", acpi_lookup_irq_handler, &req);
sys/dev/acpica/acpi_resource.c
507
acpi_parse_resources(device_t dev, ACPI_HANDLE handle,
sys/dev/acpica/acpi_resource.c
524
if (acpi_MatchHid(handle, "ARMH0011") != ACPI_MATCHHID_NOMATCH)
sys/dev/acpica/acpi_resource.c
531
if (acpi_MatchHid(handle, "ARMHC500") != ACPI_MATCHHID_NOMATCH ||
sys/dev/acpica/acpi_resource.c
532
acpi_MatchHid(handle, "ARMHC502") != ACPI_MATCHHID_NOMATCH ||
sys/dev/acpica/acpi_resource.c
533
acpi_MatchHid(handle, "ARMHC600") != ACPI_MATCHHID_NOMATCH ||
sys/dev/acpica/acpi_resource.c
534
acpi_MatchHid(handle, "ARMHC979") != ACPI_MATCHHID_NOMATCH ||
sys/dev/acpica/acpi_resource.c
535
acpi_MatchHid(handle, "ARMHC97C") != ACPI_MATCHHID_NOMATCH ||
sys/dev/acpica/acpi_resource.c
536
acpi_MatchHid(handle, "ARMHC98D") != ACPI_MATCHHID_NOMATCH ||
sys/dev/acpica/acpi_resource.c
537
acpi_MatchHid(handle, "ARMHC9FF") != ACPI_MATCHHID_NOMATCH ||
sys/dev/acpica/acpi_resource.c
538
acpi_MatchHid(handle, "ARMHD620") != ACPI_MATCHHID_NOMATCH)
sys/dev/acpica/acpi_resource.c
545
if (acpi_MatchHid(handle, "APMC0D0F") != ACPI_MATCHHID_NOMATCH)
sys/dev/acpica/acpi_resource.c
548
status = AcpiWalkResources(handle, "_CRS", acpi_parse_resource, &arc);
sys/dev/acpica/acpi_resource.c
551
acpi_name(handle), AcpiFormatException(status));
sys/dev/acpica/acpi_spmc.c
151
ACPI_HANDLE handle;
sys/dev/acpica/acpi_spmc.c
163
ACPI_HANDLE handle;
sys/dev/acpica/acpi_spmc.c
176
ACPI_HANDLE handle, struct dsm_set *dsm_set);
sys/dev/acpica/acpi_spmc.c
187
ACPI_HANDLE handle;
sys/dev/acpica/acpi_spmc.c
202
handle = acpi_get_handle(dev);
sys/dev/acpica/acpi_spmc.c
203
if (handle == NULL)
sys/dev/acpica/acpi_spmc.c
211
acpi_spmc_check_dsm_set(sc, handle, &intel_dsm_set);
sys/dev/acpica/acpi_spmc.c
212
acpi_spmc_check_dsm_set(sc, handle, &ms_dsm_set);
sys/dev/acpica/acpi_spmc.c
213
acpi_spmc_check_dsm_set(sc, handle, &amd_dsm_set);
sys/dev/acpica/acpi_spmc.c
231
sc->handle = acpi_get_handle(dev);
sys/dev/acpica/acpi_spmc.c
232
if (sc->handle == NULL)
sys/dev/acpica/acpi_spmc.c
263
acpi_spmc_check_dsm_set(struct acpi_spmc_softc *sc, ACPI_HANDLE handle,
sys/dev/acpica/acpi_spmc.c
266
uint64_t dsms_supported = acpi_DSMQuery(handle,
sys/dev/acpica/acpi_spmc.c
456
status = acpi_EvaluateDSMTyped(sc->handle, (uint8_t *)&dsm_set->uuid,
sys/dev/acpica/acpi_spmc.c
478
status = acpi_GetHandleInScope(sc->handle,
sys/dev/acpica/acpi_spmc.c
479
__DECONST(char *, constraint->name), &constraint->handle);
sys/dev/acpica/acpi_spmc.c
483
constraint->handle = NULL;
sys/dev/acpica/acpi_spmc.c
500
if (constraint->handle == NULL)
sys/dev/acpica/acpi_spmc.c
503
ACPI_STATUS status = acpi_GetHandleInScope(sc->handle,
sys/dev/acpica/acpi_spmc.c
504
__DECONST(char *, constraint->name), &constraint->handle);
sys/dev/acpica/acpi_spmc.c
508
constraint->handle = NULL;
sys/dev/acpica/acpi_spmc.c
510
if (constraint->handle == NULL)
sys/dev/acpica/acpi_spmc.c
515
if (ACPI_FAILURE(acpi_pwr_get_state(constraint->handle, &d_state)))
sys/dev/acpica/acpi_spmc.c
542
status = acpi_EvaluateDSMTyped(sc->handle, (uint8_t *)&dsm_set->uuid,
sys/dev/acpica/acpi_throttle.c
130
ACPI_HANDLE handle;
sys/dev/acpica/acpi_throttle.c
138
handle = acpi_get_handle(parent);
sys/dev/acpica/acpi_throttle.c
139
if (handle == NULL)
sys/dev/acpica/acpi_throttle.c
151
if (ACPI_FAILURE(AcpiEvaluateObject(handle, NULL, NULL, &buf)))
sys/dev/acpica/acpi_throttle.c
155
ACPI_SUCCESS(AcpiEvaluateObject(handle, "_PTC", NULL, NULL))) {
sys/dev/acpica/acpi_video.c
1002
acpi_name(handle), AcpiFormatException(status));
sys/dev/acpica/acpi_video.c
1013
vid_enum_outputs_subr(ACPI_HANDLE handle, UINT32 level __unused,
sys/dev/acpica/acpi_video.c
1023
status = acpi_GetInteger(handle, "_ADR", &adr);
sys/dev/acpica/acpi_video.c
1031
argset->callback(handle, val, argset->context);
sys/dev/acpica/acpi_video.c
1040
vid_enum_outputs(ACPI_HANDLE handle,
sys/dev/acpica/acpi_video.c
1051
status = AcpiEvaluateObject(handle, "_DOD", NULL, &dod_buf);
sys/dev/acpica/acpi_video.c
1055
acpi_name(handle), AcpiFormatException(status));
sys/dev/acpica/acpi_video.c
1062
acpi_name(handle));
sys/dev/acpica/acpi_video.c
1074
status = AcpiWalkNamespace(ACPI_TYPE_DEVICE, handle, 1,
sys/dev/acpica/acpi_video.c
1078
acpi_name(handle), AcpiFormatException(status));
sys/dev/acpica/acpi_video.c
1086
vo_get_brightness_levels(ACPI_HANDLE handle, int **levelp)
sys/dev/acpica/acpi_video.c
1095
status = AcpiEvaluateObject(handle, "_BCL", NULL, &bcl_buf);
sys/dev/acpica/acpi_video.c
1099
acpi_name(handle), AcpiFormatException(status));
sys/dev/acpica/acpi_video.c
1105
acpi_name(handle));
sys/dev/acpica/acpi_video.c
1138
status = acpi_GetInteger(vo->handle, "_BQC", level);
sys/dev/acpica/acpi_video.c
1163
printf("can't evaluate %s._BQC - %s\n", acpi_name(vo->handle),
sys/dev/acpica/acpi_video.c
1180
status = acpi_SetInteger(vo->handle, "_BCM", level);
sys/dev/acpica/acpi_video.c
1183
acpi_name(vo->handle), AcpiFormatException(status));
sys/dev/acpica/acpi_video.c
1192
vo_get_device_status(ACPI_HANDLE handle)
sys/dev/acpica/acpi_video.c
1199
status = acpi_GetInteger(handle, "_DCS", &dcs);
sys/dev/acpica/acpi_video.c
1207
acpi_name(handle), AcpiFormatException(status));
sys/dev/acpica/acpi_video.c
1217
vo_get_graphics_state(ACPI_HANDLE handle)
sys/dev/acpica/acpi_video.c
1223
status = acpi_GetInteger(handle, "_DGS", &dgs);
sys/dev/acpica/acpi_video.c
1231
acpi_name(handle), AcpiFormatException(status));
sys/dev/acpica/acpi_video.c
1241
vo_set_device_state(ACPI_HANDLE handle, UINT32 state)
sys/dev/acpica/acpi_video.c
1246
status = acpi_SetInteger(handle, "_DSS", state);
sys/dev/acpica/acpi_video.c
1249
acpi_name(handle), AcpiFormatException(status));
sys/dev/acpica/acpi_video.c
338
sc->handle = acpi_get_handle(dev);
sys/dev/acpica/acpi_video.c
341
AcpiInstallNotifyHandler(sc->handle, ACPI_DEVICE_NOTIFY,
sys/dev/acpica/acpi_video.c
354
vid_set_switch_policy(sc->handle, DOS_SWITCH_BY_OSPM |
sys/dev/acpica/acpi_video.c
370
vid_set_switch_policy(sc->handle, DOS_SWITCH_BY_BIOS);
sys/dev/acpica/acpi_video.c
372
AcpiRemoveNotifyHandler(sc->handle, ACPI_DEVICE_NOTIFY,
sys/dev/acpica/acpi_video.c
405
if ((vo_get_device_status(vo->handle) & DCS_ACTIVE) == 0)
sys/dev/acpica/acpi_video.c
424
vid_set_switch_policy(sc->handle, DOS_SWITCH_BY_BIOS);
sys/dev/acpica/acpi_video.c
436
acpi_video_notify_handler(ACPI_HANDLE handle, UINT32 notify, void *context)
sys/dev/acpica/acpi_video.c
452
dss = vo_get_graphics_state(vo->handle);
sys/dev/acpica/acpi_video.c
453
dcs = vo_get_device_status(vo->handle);
sys/dev/acpica/acpi_video.c
461
lasthand = vo->handle;
sys/dev/acpica/acpi_video.c
472
vo->handle = NULL;
sys/dev/acpica/acpi_video.c
475
if (vo->handle == NULL) {
sys/dev/acpica/acpi_video.c
526
acpi_video_bind_outputs_subr(ACPI_HANDLE handle, UINT32 adr, void *context)
sys/dev/acpica/acpi_video.c
53
ACPI_HANDLE handle;
sys/dev/acpica/acpi_video.c
536
acpi_video_vo_bind(vo, handle);
sys/dev/acpica/acpi_video.c
545
acpi_video_vo_bind(vo, handle);
sys/dev/acpica/acpi_video.c
555
vid_enum_outputs(sc->handle, acpi_video_bind_outputs_subr, sc);
sys/dev/acpica/acpi_video.c
616
vo->handle = NULL;
sys/dev/acpica/acpi_video.c
698
acpi_video_vo_bind(struct acpi_video_output *vo, ACPI_HANDLE handle)
sys/dev/acpica/acpi_video.c
703
AcpiRemoveNotifyHandler(vo->handle, ACPI_DEVICE_NOTIFY,
sys/dev/acpica/acpi_video.c
708
vo->handle = handle;
sys/dev/acpica/acpi_video.c
709
vo->vo_numlevels = vo_get_brightness_levels(handle, &vo->vo_levels);
sys/dev/acpica/acpi_video.c
721
AcpiInstallNotifyHandler(handle, ACPI_DEVICE_NOTIFY,
sys/dev/acpica/acpi_video.c
738
AcpiRemoveNotifyHandler(vo->handle, ACPI_DEVICE_NOTIFY,
sys/dev/acpica/acpi_video.c
78
ACPI_HANDLE handle;
sys/dev/acpica/acpi_video.c
781
acpi_video_vo_notify_handler(ACPI_HANDLE handle, UINT32 notify, void *context)
sys/dev/acpica/acpi_video.c
788
if (vo->handle != handle)
sys/dev/acpica/acpi_video.c
808
notify, acpi_name(handle));
sys/dev/acpica/acpi_video.c
845
acpi_pwr_switch_consumer(handle, ACPI_STATE_D3);
sys/dev/acpica/acpi_video.c
871
if (vo->handle == NULL)
sys/dev/acpica/acpi_video.c
874
state = (vo_get_device_status(vo->handle) & DCS_ACTIVE) ? 1 : 0;
sys/dev/acpica/acpi_video.c
878
vo_set_device_state(vo->handle,
sys/dev/acpica/acpi_video.c
894
if (vo->handle == NULL) {
sys/dev/acpica/acpi_video.c
935
if (vo->handle == NULL) {
sys/dev/acpica/acpi_video.c
995
vid_set_switch_policy(ACPI_HANDLE handle, UINT32 policy)
sys/dev/acpica/acpi_video.c
999
status = acpi_SetInteger(handle, "_DOS", policy);
sys/dev/acpica/acpivar.h
292
__BUS_ACCESSOR_DEFAULT(acpi, handle, ACPI, HANDLE, ACPI_HANDLE, NULL)
sys/dev/acpica/acpivar.h
299
acpi_get_device(ACPI_HANDLE handle)
sys/dev/acpica/acpivar.h
302
AcpiGetData(handle, acpi_fake_objhandler, &dev);
sys/dev/acpica/acpivar.h
372
ACPI_STATUS acpi_GetInteger(ACPI_HANDLE handle, char *path,
sys/dev/acpica/acpivar.h
374
ACPI_STATUS acpi_SetInteger(ACPI_HANDLE handle, char *path,
sys/dev/acpica/acpivar.h
384
ACPI_STATUS acpi_EvaluateDSM(ACPI_HANDLE handle, const uint8_t *uuid,
sys/dev/acpica/acpivar.h
387
ACPI_STATUS acpi_EvaluateDSMTyped(ACPI_HANDLE handle,
sys/dev/acpica/acpivar.h
391
ACPI_STATUS acpi_EvaluateOSC(ACPI_HANDLE handle, uint8_t *uuid,
sys/dev/acpica/acpivar.h
409
BOOLEAN acpi_has_hid(ACPI_HANDLE handle);
sys/dev/acpica/acpivar.h
449
int acpi_map_intr(device_t dev, u_int irq, ACPI_HANDLE handle);
sys/dev/acpica/acpivar.h
453
ACPI_STATUS acpi_parse_resources(device_t dev, ACPI_HANDLE handle,
sys/dev/acpica/acpivar.h
521
char *acpi_name(ACPI_HANDLE handle);
sys/dev/acpica/acpivar.h
522
int acpi_avoid(ACPI_HANDLE handle);
sys/dev/acpica/acpivar.h
533
int acpi_pnpinfo(ACPI_HANDLE handle, struct sbuf *sb);
sys/dev/adb/adb_kbd.c
286
phandle_t handle;
sys/dev/adb/adb_kbd.c
338
handle = OF_finddevice("mac-io/via-pmu/adb/keyboard");
sys/dev/adb/adb_kbd.c
339
if (handle != -1 && OF_getprop(handle, "AAPL,has-embedded-fn-keys",
sys/dev/adb/adb_kbd.c
353
if (OF_getprop(handle, key_names[i], &keyval,
sys/dev/agp/agp.c
976
void agp_free_memory(device_t dev, void *handle)
sys/dev/agp/agp.c
978
struct agp_memory *mem = (struct agp_memory *) handle;
sys/dev/agp/agp.c
982
int agp_bind_memory(device_t dev, void *handle, vm_offset_t offset)
sys/dev/agp/agp.c
984
struct agp_memory *mem = (struct agp_memory *) handle;
sys/dev/agp/agp.c
988
int agp_unbind_memory(device_t dev, void *handle)
sys/dev/agp/agp.c
990
struct agp_memory *mem = (struct agp_memory *) handle;
sys/dev/agp/agp.c
994
void agp_memory_info(device_t dev, void *handle, struct
sys/dev/agp/agp.c
997
struct agp_memory *mem = (struct agp_memory *) handle;
sys/dev/agp/agpvar.h
104
void agp_free_memory(device_t dev, void *handle);
sys/dev/agp/agpvar.h
111
int agp_bind_memory(device_t dev, void *handle, vm_offset_t offset);
sys/dev/agp/agpvar.h
117
int agp_unbind_memory(device_t dev, void *handle);
sys/dev/agp/agpvar.h
123
void agp_memory_info(device_t dev, void *handle, struct agp_memory_info *mi);
sys/dev/ahci/ahci.c
405
ctlr->irqs[i].handle);
sys/dev/ahci/ahci.c
479
&ctlr->irqs[i], &ctlr->irqs[i].handle))) {
sys/dev/ahci/ahci.c
486
ctlr->irqs[i].handle,
sys/dev/ahci/ahci.h
509
void *handle;
sys/dev/al_eth/al_eth.c
473
al_eth_fpga_read_pci_config(void *handle, int where, uint32_t *val)
sys/dev/al_eth/al_eth.c
477
*val = al_reg_read32((void*)((u_long)handle + where));
sys/dev/al_eth/al_eth.c
483
al_eth_fpga_write_pci_config(void *handle, int where, uint32_t val)
sys/dev/al_eth/al_eth.c
487
al_reg_write32((void*)((u_long)handle + where), val);
sys/dev/al_eth/al_eth.c
492
al_eth_read_pci_config(void *handle, int where, uint32_t *val)
sys/dev/al_eth/al_eth.c
496
*val = pci_read_config((device_t)handle, where, sizeof(*val));
sys/dev/al_eth/al_eth.c
501
al_eth_write_pci_config(void *handle, int where, uint32_t val)
sys/dev/al_eth/al_eth.c
505
pci_write_config((device_t)handle, where, val, sizeof(val));
sys/dev/al_eth/al_init_eth_lm.h
173
int (*i2c_read)(void *handle, uint8_t bus_id, uint8_t i2c_addr,
sys/dev/al_eth/al_init_eth_lm.h
175
int (*i2c_write)(void *handle, uint8_t bus_id, uint8_t i2c_addr,
sys/dev/al_eth/al_init_eth_lm.h
193
bool (*lm_pause)(void *handle);
sys/dev/al_eth/al_init_eth_lm.h
195
void (*led_config)(void *handle, struct al_eth_lm_led_config_data *data);
sys/dev/al_eth/al_init_eth_lm.h
251
int (*i2c_read)(void *handle, uint8_t bus_id, uint8_t i2c_addr,
sys/dev/al_eth/al_init_eth_lm.h
253
int (*i2c_write)(void *handle, uint8_t bus_id, uint8_t i2c_addr,
sys/dev/al_eth/al_init_eth_lm.h
273
bool (*lm_pause)(void *handle);
sys/dev/al_eth/al_init_eth_lm.h
276
void (*led_config)(void *handle, struct al_eth_lm_led_config_data *data);
sys/dev/ata/ata-pci.c
148
bus_teardown_intr(dev, ctlr->r_irq, ctlr->handle);
sys/dev/ata/ata-pci.c
822
intr_func, ctlr, &ctlr->handle))) {
sys/dev/ata/ata-pci.h
52
void *handle;
sys/dev/ata/chipsets/ata-promise.c
258
if (bus_teardown_intr(dev, ctlr->r_irq, ctlr->handle) ||
sys/dev/ata/chipsets/ata-promise.c
260
ata_promise_sx4_intr, ctlr, &ctlr->handle)) {
sys/dev/ata/chipsets/ata-promise.c
296
if (bus_teardown_intr(dev, ctlr->r_irq, ctlr->handle) ||
sys/dev/ata/chipsets/ata-promise.c
298
ata_promise_mio_intr, ctlr, &ctlr->handle)) {
sys/dev/atopcase/atopcase_acpi.c
101
if (ACPI_FAILURE(acpi_GetInteger(handle, "_STA", &sta)) ||
sys/dev/atopcase/atopcase_acpi.c
130
atopcase_acpi_test_comm_enabled(ACPI_HANDLE handle, char *prop, int *enabled)
sys/dev/atopcase/atopcase_acpi.c
132
if (ACPI_FAILURE(acpi_GetInteger(handle, prop, enabled)))
sys/dev/atopcase/atopcase_acpi.c
194
ACPI_HANDLE handle;
sys/dev/atopcase/atopcase_acpi.c
200
handle = acpi_get_handle(dev);
sys/dev/atopcase/atopcase_acpi.c
201
if (handle == NULL)
sys/dev/atopcase/atopcase_acpi.c
204
if (!acpi_is_atopcase(handle))
sys/dev/atopcase/atopcase_acpi.c
208
if (atopcase_acpi_test_comm_enabled(handle, "UIST", &usb_enabled) == 0
sys/dev/atopcase/atopcase_acpi.c
85
acpi_is_atopcase(ACPI_HANDLE handle)
sys/dev/atopcase/atopcase_acpi.c
91
if (acpi_MatchHid(handle, *ids))
sys/dev/bnxt/bnxt_en/bnxt.h
382
bus_space_handle_t handle;
sys/dev/bnxt/bnxt_en/bnxt_hwrm.c
199
softc->hwrm_bar.handle,
sys/dev/bnxt/bnxt_en/bnxt_hwrm.c
206
bus_space_write_4(softc->hwrm_bar.tag, softc->hwrm_bar.handle,
sys/dev/bnxt/bnxt_en/bnxt_hwrm.c
211
softc->hwrm_bar.handle,
sys/dev/bnxt/bnxt_en/bnxt_hwrm.c
3046
bnxt_hwrm_get_wol_fltrs(struct bnxt_softc *softc, uint16_t handle)
sys/dev/bnxt/bnxt_en/bnxt_hwrm.c
3056
req.handle = htole16(handle);
sys/dev/bnxt/bnxt_en/bnxt_hwrm.h
124
uint16_t bnxt_hwrm_get_wol_fltrs(struct bnxt_softc *softc, uint16_t handle);
sys/dev/bnxt/bnxt_en/bnxt_ulp.c
244
ops->ulp_stop(ulp->handle);
sys/dev/bnxt/bnxt_en/bnxt_ulp.c
269
ops->ulp_start(ulp->handle);
sys/dev/bnxt/bnxt_en/bnxt_ulp.c
293
ops->ulp_sriov_config(ulp->handle, num_vfs);
sys/dev/bnxt/bnxt_en/bnxt_ulp.c
313
ops->ulp_shutdown(ulp->handle);
sys/dev/bnxt/bnxt_en/bnxt_ulp.c
334
ops->ulp_irq_stop(ulp->handle);
sys/dev/bnxt/bnxt_en/bnxt_ulp.c
365
ops->ulp_async_notifier(ulp->handle, cmpl);
sys/dev/bnxt/bnxt_en/bnxt_ulp.c
55
struct bnxt_ulp_ops *ulp_ops, void *handle)
sys/dev/bnxt/bnxt_en/bnxt_ulp.c
74
ulp->handle = handle;
sys/dev/bnxt/bnxt_en/bnxt_ulp.h
71
void *handle;
sys/dev/bnxt/bnxt_en/hsi_struct_def.h
64655
uint16_t handle;
sys/dev/bnxt/bnxt_en/hsi_struct_def.h
65304
uint32_t handle;
sys/dev/bnxt/bnxt_en/if_bnxt.c
1319
bus_space_barrier(db_bar->tag, db_bar->handle, ring->doorbell, 4,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1321
bus_space_write_4(db_bar->tag, db_bar->handle, ring->doorbell,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1330
bus_space_barrier(db_bar->tag, db_bar->handle, ring->doorbell, 4,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1332
bus_space_write_4(db_bar->tag, db_bar->handle, ring->doorbell,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1341
bus_space_barrier(db_bar->tag, db_bar->handle, cpr->ring.doorbell, 4,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1343
bus_space_write_4(db_bar->tag, db_bar->handle, cpr->ring.doorbell,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1348
bus_space_barrier(db_bar->tag, db_bar->handle, 0, db_bar->size,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1357
bus_space_barrier(db_bar->tag, db_bar->handle, ring->doorbell, 8,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1359
bus_space_write_8(db_bar->tag, db_bar->handle, ring->doorbell,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1369
bus_space_barrier(db_bar->tag, db_bar->handle, ring->doorbell, 8,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1371
bus_space_write_8(db_bar->tag, db_bar->handle, ring->doorbell,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1394
bus_space_barrier(db_bar->tag, db_bar->handle, cpr->ring.doorbell, 8,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1396
bus_space_write_8(db_bar->tag, db_bar->handle, cpr->ring.doorbell,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1398
bus_space_barrier(db_bar->tag, db_bar->handle, 0, db_bar->size,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1415
bus_space_barrier(db_bar->tag, db_bar->handle, cpr->ring.doorbell, 8,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1417
bus_space_write_8(db_bar->tag, db_bar->handle, cpr->ring.doorbell,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1419
bus_space_barrier(db_bar->tag, db_bar->handle, 0, db_bar->size,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1436
bus_space_barrier(db_bar->tag, db_bar->handle, cpr->ring.doorbell, 8,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1438
bus_space_write_8(db_bar->tag, db_bar->handle, cpr->ring.doorbell,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1440
bus_space_barrier(db_bar->tag, db_bar->handle, 0, db_bar->size,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1462
bus_space_barrier(db_bar->tag, db_bar->handle, ring->doorbell, 8,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1464
bus_space_write_8(db_bar->tag, db_bar->handle, ring->doorbell,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1486
bus_space_barrier(db_bar->tag, db_bar->handle, ring->doorbell, 8,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1488
bus_space_write_8(db_bar->tag, db_bar->handle, ring->doorbell,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1515
bus_space_barrier(db_bar->tag, db_bar->handle, cpr->ring.doorbell, 8,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1517
bus_space_write_8(db_bar->tag, db_bar->handle, cpr->ring.doorbell,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1519
bus_space_barrier(db_bar->tag, db_bar->handle, 0, db_bar->size,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1543
bus_space_barrier(db_bar->tag, db_bar->handle, cpr->ring.doorbell, 8,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1545
bus_space_write_8(db_bar->tag, db_bar->handle, cpr->ring.doorbell,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1547
bus_space_barrier(db_bar->tag, db_bar->handle, 0, db_bar->size,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1571
bus_space_barrier(db_bar->tag, db_bar->handle, cpr->ring.doorbell, 8,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1573
bus_space_write_8(db_bar->tag, db_bar->handle, cpr->ring.doorbell,
sys/dev/bnxt/bnxt_en/if_bnxt.c
1575
bus_space_barrier(db_bar->tag, db_bar->handle, 0, db_bar->size,
sys/dev/bnxt/bnxt_en/if_bnxt.c
294
return bus_space_read_4(bp->doorbell_bar.tag, bp->doorbell_bar.handle, reg_off);
sys/dev/bnxt/bnxt_en/if_bnxt.c
296
return bus_space_read_4(bp->hwrm_bar.tag, bp->hwrm_bar.handle, reg_off);
sys/dev/bnxt/bnxt_en/if_bnxt.c
303
bus_space_write_4(bp->doorbell_bar.tag, bp->doorbell_bar.handle, reg_off, htole32(val));
sys/dev/bnxt/bnxt_en/if_bnxt.c
305
bus_space_write_4(bp->hwrm_bar.tag, bp->hwrm_bar.handle, reg_off, htole32(val));
sys/dev/bnxt/bnxt_en/if_bnxt.c
4699
bar->handle = rman_get_bushandle(bar->res);
sys/dev/bnxt/bnxt_re/main.c
1132
static void bnxt_re_stop(void *handle)
sys/dev/bnxt/bnxt_re/main.c
1134
struct bnxt_re_en_dev_info *en_info = auxiliary_get_drvdata(handle);
sys/dev/bnxt/bnxt_re/main.c
1205
static void bnxt_re_start(void *handle)
sys/dev/bnxt/bnxt_re/main.c
1209
if (bnxt_re_handle_start((struct auxiliary_device *)handle))
sys/dev/bnxt/bnxt_re/main.c
1241
static void bnxt_re_stop_irq(void *handle)
sys/dev/bnxt/bnxt_re/main.c
1243
struct bnxt_re_en_dev_info *en_info = auxiliary_get_drvdata(handle);
sys/dev/bnxt/bnxt_re/main.c
1270
static void bnxt_re_start_irq(void *handle, struct bnxt_msix_entry *ent)
sys/dev/bnxt/bnxt_re/main.c
1272
struct bnxt_re_en_dev_info *en_info = auxiliary_get_drvdata(handle);
sys/dev/bnxt/bnxt_re/main.c
162
return bus_space_read_8(bp->doorbell_bar.tag, bp->doorbell_bar.handle, reg_off);
sys/dev/bnxt/bnxt_re/main.c
164
return bus_space_read_8(bp->hwrm_bar.tag, bp->hwrm_bar.handle, reg_off);
sys/dev/bnxt/bnxt_re/main.c
170
bus_space_write_8(bp->doorbell_bar.tag, bp->doorbell_bar.handle, reg_off, htole32(val));
sys/dev/bnxt/bnxt_re/main.c
172
bus_space_write_8(bp->hwrm_bar.tag, bp->hwrm_bar.handle, reg_off, htole32(val));
sys/dev/bnxt/bnxt_re/main.c
2446
struct bnxt_qplib_srq *handle, u8 event)
sys/dev/bnxt/bnxt_re/main.c
2448
struct bnxt_re_srq *srq = to_bnxt_re(handle, struct bnxt_re_srq,
sys/dev/bnxt/bnxt_re/main.c
2473
struct bnxt_qplib_cq *handle)
sys/dev/bnxt/bnxt_re/main.c
2475
struct bnxt_re_cq *cq = to_bnxt_re(handle, struct bnxt_re_cq,
sys/dev/bnxt/bnxt_re/main.c
2485
if (handle->destroyed || !atomic_read(&cq->ibcq.usecnt)) {
sys/dev/bnxt/bnxt_re/main.c
2486
if (!handle->destroyed)
sys/dev/bnxt/bnxt_re/main.c
716
static void bnxt_re_async_notifier(void *handle, struct hwrm_async_event_cmpl *cmpl)
sys/dev/bnxt/bnxt_re/main.c
718
struct bnxt_re_en_dev_info *en_info = auxiliary_get_drvdata(handle);
sys/dev/bnxt/bnxt_re/qplib_fp.c
1031
tbl->rec[tbl->max].handle = qp;
sys/dev/bnxt/bnxt_re/qplib_fp.c
1282
tbl->rec[qp_idx].handle = qp;
sys/dev/bnxt/bnxt_re/qplib_fp.c
1656
tbl->rec[qp_idx].handle = NULL;
sys/dev/bnxt/bnxt_re/qplib_fp.c
1663
tbl->rec[qp_idx].handle = qp;
sys/dev/bnxt/bnxt_re/qplib_fp.c
2476
tbl->rec[GET_TBL_INDEX(cq->id, tbl)].handle = cq;
sys/dev/bnxt/bnxt_re/qplib_fp.c
2616
tbl->rec[GET_TBL_INDEX(cq->id, tbl)].handle = NULL;
sys/dev/bnxt/bnxt_re/qplib_rcfw.c
704
qp = tbl->rec[qp_idx].handle;
sys/dev/bnxt/bnxt_re/qplib_rcfw.c
727
cq = tbl->rec[GET_TBL_INDEX(xid, tbl)].handle;
sys/dev/bnxt/bnxt_re/qplib_res.h
377
void *handle;
sys/dev/bxe/bxe.c
13085
sc->bar[i].handle = rman_get_bushandle(sc->bar[i].resource);
sys/dev/bxe/bxe.c
16527
bus_space_barrier(sc->bar[BAR0].tag, sc->bar[BAR0].handle, 0, 0,
sys/dev/bxe/bxe.c
16535
bus_space_barrier(sc->bar[BAR0].tag, sc->bar[BAR0].handle, 0, 0,
sys/dev/bxe/bxe.c
2349
bus_space_barrier(sc->bar[BAR0].tag, sc->bar[BAR0].handle, 0, 0,
sys/dev/bxe/bxe.c
5509
bus_space_barrier(sc->bar[BAR0].tag, sc->bar[BAR0].handle,
sys/dev/bxe/bxe.c
5513
bus_space_barrier(sc->bar[BAR2].tag, sc->bar[BAR2].handle,
sys/dev/bxe/bxe.h
1831
sc->bar[BAR0].handle, \
sys/dev/bxe/bxe.h
1836
sc->bar[BAR0].handle, \
sys/dev/bxe/bxe.h
1841
sc->bar[BAR0].handle, \
sys/dev/bxe/bxe.h
1846
sc->bar[BAR0].handle, \
sys/dev/bxe/bxe.h
1851
sc->bar[BAR0].handle, \
sys/dev/bxe/bxe.h
1856
sc->bar[BAR0].handle, \
sys/dev/bxe/bxe.h
1909
bus_space_write_4(sc->bar[BAR1].tag, sc->bar[BAR1].handle, \
sys/dev/bxe/bxe.h
2317
bus_space_barrier(sc->bar[0].tag, sc->bar[0].handle, 0, 0,
sys/dev/bxe/bxe.h
2344
bus_space_barrier(sc->bar[0].tag, sc->bar[0].handle, 0, 0,
sys/dev/bxe/bxe.h
449
bus_space_handle_t handle;
sys/dev/bxe/bxe_debug.c
104
sc->bar[BAR0].handle,
sys/dev/bxe/bxe_debug.c
121
sc->bar[BAR0].handle,
sys/dev/bxe/bxe_debug.c
48
sc->bar[BAR0].handle,
sys/dev/bxe/bxe_debug.c
62
sc->bar[BAR0].handle,
sys/dev/bxe/bxe_debug.c
76
sc->bar[BAR0].handle,
sys/dev/bxe/bxe_debug.c
87
sc->bar[BAR0].handle,
sys/dev/cfe/cfe_api.c
101
xiocb.xiocb_handle = handle;
sys/dev/cfe/cfe_api.c
393
cfe_inpstat(int handle)
sys/dev/cfe/cfe_api.c
399
xiocb.xiocb_handle = handle;
sys/dev/cfe/cfe_api.c
415
cfe_ioctl(int handle, unsigned int ioctlnum, unsigned char *buffer, int length,
sys/dev/cfe/cfe_api.c
422
xiocb.xiocb_handle = handle;
sys/dev/cfe/cfe_api.c
463
cfe_read(int handle, unsigned char *buffer, int length)
sys/dev/cfe/cfe_api.c
465
return cfe_readblk(handle, 0, buffer, length);
sys/dev/cfe/cfe_api.c
471
cfe_readblk(int handle, cfe_xint_t offset, unsigned char *buffer, int length)
sys/dev/cfe/cfe_api.c
477
xiocb.xiocb_handle = handle;
sys/dev/cfe/cfe_api.c
531
cfe_write(int handle, unsigned char *buffer, int length)
sys/dev/cfe/cfe_api.c
533
return cfe_writeblk(handle, 0, buffer, length);
sys/dev/cfe/cfe_api.c
539
cfe_writeblk(int handle, cfe_xint_t offset, unsigned char *buffer, int length)
sys/dev/cfe/cfe_api.c
545
xiocb.xiocb_handle = handle;
sys/dev/cfe/cfe_api.c
74
static int (*cfe_dispfunc)(intptr_t handle, intptr_t xiocb) = 0;
sys/dev/cfe/cfe_api.c
78
cfe_init(cfe_xuint_t handle, cfe_xuint_t ept)
sys/dev/cfe/cfe_api.c
81
cfe_handle = handle;
sys/dev/cfe/cfe_api.c
95
cfe_close(int handle)
sys/dev/cfe/cfe_api.h
174
int cfe_close(int handle);
sys/dev/cfe/cfe_api.h
187
int cfe_init(uint64_t handle,uint64_t ept);
sys/dev/cfe/cfe_api.h
188
int cfe_inpstat(int handle);
sys/dev/cfe/cfe_api.h
189
int cfe_ioctl(int handle, unsigned int ioctlnum, unsigned char *buffer,
sys/dev/cfe/cfe_api.h
192
int cfe_read(int handle, unsigned char *buffer, int length);
sys/dev/cfe/cfe_api.h
193
int cfe_readblk(int handle, int64_t offset, unsigned char *buffer, int length);
sys/dev/cfe/cfe_api.h
195
int cfe_write(int handle, unsigned char *buffer, int length);
sys/dev/cfe/cfe_api.h
196
int cfe_writeblk(int handle, int64_t offset, unsigned char *buffer,
sys/dev/cxgbe/cudbg/cudbg.h
423
static inline struct cudbg_init *cudbg_get_init(void *handle)
sys/dev/cxgbe/cudbg/cudbg.h
425
return (handle);
sys/dev/cxgbe/cudbg/cudbg.h
441
int cudbg_collect(void *handle, void *outbuf, u32 *outbuf_size);
sys/dev/cxgbe/cudbg/cudbg.h
449
void cudbg_free_handle(IN void *handle);
sys/dev/cxgbe/cudbg/cudbg.h
460
int cudbg_read_flash_details(void *handle, struct cudbg_flash_hdr *data);
sys/dev/cxgbe/cudbg/cudbg.h
470
int cudbg_read_flash_data(void *handle, void *data_buf, u32 data_buf_size);
sys/dev/cxgbe/cudbg/cudbg_common.c
80
struct cudbg_private *handle;
sys/dev/cxgbe/cudbg/cudbg_common.c
82
handle = malloc(sizeof(*handle), M_CXGBE, M_ZERO | M_WAITOK);
sys/dev/cxgbe/cudbg/cudbg_common.c
83
init_cudbg_hdr(&handle->dbg_init.header);
sys/dev/cxgbe/cudbg/cudbg_common.c
85
return (handle);
sys/dev/cxgbe/cudbg/cudbg_common.c
89
cudbg_free_handle(void *handle)
sys/dev/cxgbe/cudbg/cudbg_common.c
92
free(handle, M_CXGBE);
sys/dev/cxgbe/cudbg/cudbg_flash_utils.c
142
int cudbg_write_flash(void *handle, u64 timestamp, void *data,
sys/dev/cxgbe/cudbg/cudbg_flash_utils.c
147
struct cudbg_private *priv = handle;
sys/dev/cxgbe/cudbg/cudbg_flash_utils.c
177
update_headers(handle, dbg_buff, timestamp,
sys/dev/cxgbe/cudbg/cudbg_flash_utils.c
280
int cudbg_read_flash_details(void *handle, struct cudbg_flash_hdr *data)
sys/dev/cxgbe/cudbg/cudbg_flash_utils.c
283
rc = cudbg_read_flash(handle, (void *)data,
sys/dev/cxgbe/cudbg/cudbg_flash_utils.c
289
int cudbg_read_flash_data(void *handle, void *buf, u32 buf_size)
sys/dev/cxgbe/cudbg/cudbg_flash_utils.c
301
rc = cudbg_read_flash(handle, buf, total_hdr_size, 0);
sys/dev/cxgbe/cudbg/cudbg_flash_utils.c
308
rc = cudbg_read_flash(handle, payload, payload_size, 1);
sys/dev/cxgbe/cudbg/cudbg_flash_utils.c
316
int cudbg_read_flash(void *handle, void *data, u32 size, int data_flag)
sys/dev/cxgbe/cudbg/cudbg_flash_utils.c
318
struct cudbg_private *priv = handle;
sys/dev/cxgbe/cudbg/cudbg_flash_utils.c
80
static void update_headers(void *handle, struct cudbg_buffer *dbg_buff,
sys/dev/cxgbe/cudbg/cudbg_flash_utils.c
84
struct cudbg_private *priv = handle;
sys/dev/cxgbe/cudbg/cudbg_lib.c
144
static int wr_entity_to_flash(void *handle, struct cudbg_buffer *dbg_buff,
sys/dev/cxgbe/cudbg/cudbg_lib.c
149
struct cudbg_private *priv = handle;
sys/dev/cxgbe/cudbg/cudbg_lib.c
189
rc = cudbg_write_flash(handle, timestamp, dbg_buff,
sys/dev/cxgbe/cudbg/cudbg_lib.c
202
int cudbg_collect(void *handle, void *outbuf, u32 *outbuf_size)
sys/dev/cxgbe/cudbg/cudbg_lib.c
211
u8 *dbg_bitmap = ((struct cudbg_private *)handle)->dbg_init.dbg_bitmap;
sys/dev/cxgbe/cudbg/cudbg_lib.c
213
&(((struct cudbg_private *)handle)->dbg_init);
sys/dev/cxgbe/cudbg/cudbg_lib.c
391
wr_entity_to_flash(handle,
sys/dev/cxgbe/cudbg/cudbg_lib.c
401
wr_entity_to_flash(handle,
sys/dev/cxgbe/cudbg/cudbg_lib.c
492
wr_entity_to_flash(handle,
sys/dev/cxgbe/cudbg/cudbg_lib.c
500
wr_entity_to_flash(handle,
sys/dev/cxgbe/cudbg/cudbg_lib_common.h
162
int cudbg_read_flash(void *handle, void *data, u32 size, int data_flag);
sys/dev/cxgbe/cudbg/cudbg_lib_common.h
163
int cudbg_write_flash(void *handle, u64 timestamp, void *data,
sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
304
void *handle, u32 id, int lock)
sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
314
ret = idr_get_new_above(idr, handle, id, &newid);
sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
324
void *handle, u32 id)
sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
326
return _insert_handle(rhp, idr, handle, id, 1);
sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
330
void *handle, u32 id)
sys/dev/cxgbe/iw_cxgbe/iw_cxgbe.h
332
return _insert_handle(rhp, idr, handle, id, 0);
sys/dev/cxgbe/t4_main.c
12717
void *handle, *buf;
sys/dev/cxgbe/t4_main.c
12724
handle = cudbg_alloc_handle();
sys/dev/cxgbe/t4_main.c
12725
if (handle == NULL) {
sys/dev/cxgbe/t4_main.c
12730
cudbg = cudbg_get_init(handle);
sys/dev/cxgbe/t4_main.c
12744
rc = cudbg_collect(handle, buf, &dump->len);
sys/dev/cxgbe/t4_main.c
12750
cudbg_free_handle(handle);
sys/dev/dpaa2/dpaa2_mc_fdt.c
76
pcs-handle = <0x15>;
sys/dev/dpaa2/dpaa2_mc_fdt.c
84
phy-handle = <0x18>;
sys/dev/dpaa2/dpaa2_mc_fdt.c
87
pcs-handle = <0x19>;
sys/dev/drm2/drm.h
205
void *handle; /**< Handle of map */
sys/dev/drm2/drm.h
219
void *handle; /**< User-space: "Handle" to pass to mmap() */
sys/dev/drm2/drm.h
413
drm_context_t handle;
sys/dev/drm2/drm.h
429
drm_drawable_t handle;
sys/dev/drm2/drm.h
440
drm_drawable_t handle;
sys/dev/drm2/drm.h
534
unsigned long handle; /**< Used for binding / unbinding */
sys/dev/drm2/drm.h
545
unsigned long handle; /**< From drm_agp_buffer */
sys/dev/drm2/drm.h
575
unsigned long handle; /**< Used for mapping / unmapping */
sys/dev/drm2/drm.h
591
__u32 handle;
sys/dev/drm2/drm.h
598
__u32 handle;
sys/dev/drm2/drm.h
610
__u32 handle;
sys/dev/drm2/drm.h
624
__u32 handle;
sys/dev/drm2/drmP.h
1166
int drm_mtrr_del(int handle, unsigned long offset, unsigned long size, unsigned int flags);
sys/dev/drm2/drmP.h
1179
static inline int drm_mtrr_del(int handle, unsigned long offset,
sys/dev/drm2/drmP.h
1379
struct drm_file *file_priv, uint32_t handle, uint32_t flags,
sys/dev/drm2/drmP.h
1382
struct drm_file *file_priv, int prime_fd, uint32_t *handle);
sys/dev/drm2/drmP.h
1397
int drm_prime_add_imported_buf_handle(struct drm_prime_file_private *prime_fpriv, struct dma_buf *dma_buf, uint32_t handle);
sys/dev/drm2/drmP.h
1398
int drm_prime_lookup_imported_buf_handle(struct drm_prime_file_private *prime_fpriv, struct dma_buf *dma_buf, uint32_t *handle);
sys/dev/drm2/drmP.h
1475
int drm_gem_handle_delete(struct drm_file *filp, u32 handle);
sys/dev/drm2/drmP.h
1527
u32 handle);
sys/dev/drm2/drmP.h
1785
extern void drm_free_agp(DRM_AGP_MEM * handle, int pages);
sys/dev/drm2/drmP.h
1786
extern int drm_bind_agp(DRM_AGP_MEM * handle, unsigned int start);
sys/dev/drm2/drmP.h
1794
extern int drm_unbind_agp(DRM_AGP_MEM * handle);
sys/dev/drm2/drmP.h
1825
static inline void drm_free_agp(DRM_AGP_MEM * handle, int pages)
sys/dev/drm2/drmP.h
1829
static inline int drm_bind_agp(DRM_AGP_MEM * handle, unsigned int start)
sys/dev/drm2/drmP.h
1834
static inline int drm_unbind_agp(DRM_AGP_MEM * handle)
sys/dev/drm2/drmP.h
470
unsigned long handle; /**< handle */
sys/dev/drm2/drmP.h
519
void *handle; /**< User-space: "Handle" to pass to mmap() */
sys/dev/drm2/drmP.h
546
drm_context_t handle; /**< context handle */
sys/dev/drm2/drmP.h
872
uint32_t handle, uint32_t flags, int *prime_fd);
sys/dev/drm2/drmP.h
875
int prime_fd, uint32_t *handle);
sys/dev/drm2/drmP.h
889
struct drm_device *dev, uint32_t handle,
sys/dev/drm2/drmP.h
893
uint32_t handle);
sys/dev/drm2/drm_agpsupport.c
221
entry->handle = (unsigned long)memory;
sys/dev/drm2/drm_agpsupport.c
229
request->handle = entry->handle;
sys/dev/drm2/drm_agpsupport.c
255
unsigned long handle)
sys/dev/drm2/drm_agpsupport.c
260
if (entry->handle == handle)
sys/dev/drm2/drm_agpsupport.c
285
if (!(entry = drm_agp_lookup_entry(dev, request->handle)))
sys/dev/drm2/drm_agpsupport.c
326
if (!(entry = drm_agp_lookup_entry(dev, request->handle)))
sys/dev/drm2/drm_agpsupport.c
369
if (!(entry = drm_agp_lookup_entry(dev, request->handle)))
sys/dev/drm2/drm_bufs.c
253
map->handle = NULL;
sys/dev/drm2/drm_bufs.c
297
if (!map->handle) {
sys/dev/drm2/drm_bufs.c
318
map->handle = malloc(map->size, DRM_MEM_MAPS, M_NOWAIT);
sys/dev/drm2/drm_bufs.c
320
map->size, drm_order(map->size), map->handle);
sys/dev/drm2/drm_bufs.c
321
if (!map->handle) {
sys/dev/drm2/drm_bufs.c
325
map->offset = (unsigned long)map->handle;
sys/dev/drm2/drm_bufs.c
329
free(map->handle, DRM_MEM_MAPS);
sys/dev/drm2/drm_bufs.c
333
dev->sigdata.lock = dev->primary->master->lock.hw_lock = map->handle; /* Pointer to lock */
sys/dev/drm2/drm_bufs.c
392
map->handle = (char *)dev->sg->vaddr + offset;
sys/dev/drm2/drm_bufs.c
408
map->handle = dmah->vaddr;
sys/dev/drm2/drm_bufs.c
431
user_token = (map->type == _DRM_SHM) ? (unsigned long)map->handle :
sys/dev/drm2/drm_bufs.c
496
map->handle = (void *)(unsigned long)maplist->user_token;
sys/dev/drm2/drm_bufs.c
545
free(map->handle, DRM_MEM_MAPS);
sys/dev/drm2/drm_bufs.c
608
r_list->user_token == (unsigned long)request->handle &&
sys/dev/drm2/drm_context.c
203
request->handle = (void *)map->handle;
sys/dev/drm2/drm_context.c
230
&& r_list->user_token == (unsigned long) request->handle) {
sys/dev/drm2/drm_context.c
328
ctx.handle = i;
sys/dev/drm2/drm_context.c
355
ctx->handle = drm_ctxbitmap_next(dev);
sys/dev/drm2/drm_context.c
356
if (ctx->handle == DRM_KERNEL_CONTEXT) {
sys/dev/drm2/drm_context.c
358
ctx->handle = drm_ctxbitmap_next(dev);
sys/dev/drm2/drm_context.c
360
DRM_DEBUG("%d\n", ctx->handle);
sys/dev/drm2/drm_context.c
361
if (ctx->handle == -1) {
sys/dev/drm2/drm_context.c
374
ctx_entry->handle = ctx->handle;
sys/dev/drm2/drm_context.c
426
DRM_DEBUG("%d\n", ctx->handle);
sys/dev/drm2/drm_context.c
427
return drm_context_switch(dev, dev->last_context, ctx->handle);
sys/dev/drm2/drm_context.c
446
DRM_DEBUG("%d\n", ctx->handle);
sys/dev/drm2/drm_context.c
447
drm_context_switch_complete(dev, file_priv, ctx->handle);
sys/dev/drm2/drm_context.c
468
DRM_DEBUG("%d\n", ctx->handle);
sys/dev/drm2/drm_context.c
469
if (ctx->handle != DRM_KERNEL_CONTEXT) {
sys/dev/drm2/drm_context.c
471
dev->driver->context_dtor(dev, ctx->handle);
sys/dev/drm2/drm_context.c
472
drm_ctxbitmap_free(dev, ctx->handle);
sys/dev/drm2/drm_context.c
480
if (pos->handle == ctx->handle) {
sys/dev/drm2/drm_crtc.c
2058
ret = crtc->funcs->cursor_set(crtc, file_priv, req->handle,
sys/dev/drm2/drm_crtc.c
2143
r.handles[0] = or->handle;
sys/dev/drm2/drm_crtc.c
2455
r->handle = 0;
sys/dev/drm2/drm_crtc.c
2456
fb->funcs->create_handle(fb, file_priv, &r->handle);
sys/dev/drm2/drm_crtc.c
3664
return dev->driver->dumb_map_offset(file_priv, dev, args->handle, &args->offset);
sys/dev/drm2/drm_crtc.c
3675
return dev->driver->dumb_destroy(file_priv, dev, args->handle);
sys/dev/drm2/drm_crtc.h
221
unsigned int *handle);
sys/dev/drm2/drm_crtc.h
331
uint32_t handle, uint32_t width, uint32_t height);
sys/dev/drm2/drm_crtc.h
935
unsigned long handle);
sys/dev/drm2/drm_fops.c
381
pos->handle != DRM_KERNEL_CONTEXT) {
sys/dev/drm2/drm_fops.c
384
pos->handle);
sys/dev/drm2/drm_fops.c
386
drm_ctxbitmap_free(dev, pos->handle);
sys/dev/drm2/drm_gem.c
188
drm_gem_handle_delete(struct drm_file *filp, u32 handle)
sys/dev/drm2/drm_gem.c
193
obj = drm_gem_names_remove(&filp->object_names, handle);
sys/dev/drm2/drm_gem.c
285
u32 handle)
sys/dev/drm2/drm_gem.c
289
obj = drm_gem_name_ref(&filp->object_names, handle,
sys/dev/drm2/drm_gem.c
306
ret = drm_gem_handle_delete(file_priv, args->handle);
sys/dev/drm2/drm_gem.c
322
obj = drm_gem_object_lookup(dev, file_priv, args->handle);
sys/dev/drm2/drm_gem.c
344
u32 handle;
sys/dev/drm2/drm_gem.c
354
ret = drm_gem_handle_create(file_priv, obj, &handle);
sys/dev/drm2/drm_gem.c
359
args->handle = handle;
sys/dev/drm2/drm_gem.c
483
drm_gem_pager_dtr(void *handle)
sys/dev/drm2/drm_gem.c
488
obj = handle;
sys/dev/drm2/drm_ioc32.c
148
u32 handle; /**< User-space: "Handle" to pass to mmap() */
sys/dev/drm2/drm_ioc32.c
158
void *handle;
sys/dev/drm2/drm_ioc32.c
170
handle = map.handle;
sys/dev/drm2/drm_ioc32.c
173
m32->handle = (unsigned long)handle;
sys/dev/drm2/drm_ioc32.c
185
void *handle;
sys/dev/drm2/drm_ioc32.c
198
handle = map.handle;
sys/dev/drm2/drm_ioc32.c
200
m32->handle = (unsigned long)handle;
sys/dev/drm2/drm_ioc32.c
201
if (m32->handle != (unsigned long)handle)
sys/dev/drm2/drm_ioc32.c
204
handle, m32->type, m32->offset);
sys/dev/drm2/drm_ioc32.c
215
map.handle = (void *)(unsigned long)m32->handle;
sys/dev/drm2/drm_ioc32.c
455
u32 handle; /**< Handle of map */
sys/dev/drm2/drm_ioc32.c
465
request.handle = (void *)(unsigned long)req32->handle;
sys/dev/drm2/drm_ioc32.c
483
req32->handle = (unsigned long)request.handle;
sys/dev/drm2/drm_ioc32.c
612
u32 handle; /**< Used for binding / unbinding */
sys/dev/drm2/drm_ioc32.c
631
req32->handle = request.handle;
sys/dev/drm2/drm_ioc32.c
643
request.handle = req32->handle;
sys/dev/drm2/drm_ioc32.c
649
u32 handle; /**< From drm_agp_buffer */
sys/dev/drm2/drm_ioc32.c
659
request.handle = req32->handle;
sys/dev/drm2/drm_ioc32.c
671
request.handle = req32->handle;
sys/dev/drm2/drm_ioc32.c
679
u32 handle; /**< Used for mapping / unmapping */
sys/dev/drm2/drm_ioc32.c
696
req32->handle = (unsigned long)request.handle >> PAGE_SHIFT;
sys/dev/drm2/drm_ioc32.c
707
request.handle = (unsigned long)req32->handle << PAGE_SHIFT;
sys/dev/drm2/drm_ioc32.c
714
drm_drawable_t handle;
sys/dev/drm2/drm_ioctl.c
179
map->handle = (void *)(unsigned long) r_list->user_token;
sys/dev/drm2/drm_memory.c
104
map->handle = agp_remap(map->offset, map->size, dev);
sys/dev/drm2/drm_memory.c
106
map->handle = pmap_mapdev(map->offset, map->size);
sys/dev/drm2/drm_memory.c
114
map->handle = agp_remap(map->offset, map->size, dev);
sys/dev/drm2/drm_memory.c
116
map->handle = pmap_mapdev_attr(map->offset, map->size,
sys/dev/drm2/drm_memory.c
123
if (!map->handle || !map->size)
sys/dev/drm2/drm_memory.c
128
vunmap(map->handle);
sys/dev/drm2/drm_memory.c
130
pmap_unmapdev(map->handle, map->size);
sys/dev/drm2/drm_memory.c
39
#define vunmap(handle)
sys/dev/drm2/drm_memory.c
54
void drm_free_agp(DRM_AGP_MEM * handle, int pages)
sys/dev/drm2/drm_memory.c
59
if (!agpdev || !handle)
sys/dev/drm2/drm_memory.c
62
agp_free_memory(agpdev, handle);
sys/dev/drm2/drm_memory.c
67
int drm_bind_agp(DRM_AGP_MEM * handle, unsigned int start)
sys/dev/drm2/drm_memory.c
72
if (!agpdev || !handle)
sys/dev/drm2/drm_memory.c
75
return -agp_bind_memory(agpdev, handle, start * PAGE_SIZE);
sys/dev/drm2/drm_memory.c
79
int drm_unbind_agp(DRM_AGP_MEM * handle)
sys/dev/drm2/drm_memory.c
84
if (!agpdev || !handle)
sys/dev/drm2/drm_memory.c
87
return -agp_unbind_memory(agpdev, handle);
sys/dev/drm2/drm_mode.h
286
__u32 handle;
sys/dev/drm2/drm_mode.h
388
__u32 handle;
sys/dev/drm2/drm_mode.h
441
uint32_t handle;
sys/dev/drm2/drm_mode.h
449
__u32 handle;
sys/dev/drm2/drm_mode.h
460
uint32_t handle;
sys/dev/drm2/drm_os_freebsd.c
365
drm_mtrr_del(int handle __unused, unsigned long offset, unsigned long size,
sys/dev/drm2/drm_os_freebsd.h
131
*(volatile u_int8_t *)(((vm_offset_t)(map)->handle) + \
sys/dev/drm2/drm_os_freebsd.h
134
le16toh(*(volatile u_int16_t *)(((vm_offset_t)(map)->handle) + \
sys/dev/drm2/drm_os_freebsd.h
137
le32toh(*(volatile u_int32_t *)(((vm_offset_t)(map)->handle) + \
sys/dev/drm2/drm_os_freebsd.h
140
le64toh(*(volatile u_int64_t *)(((vm_offset_t)(map)->handle) + \
sys/dev/drm2/drm_os_freebsd.h
143
*(volatile u_int8_t *)(((vm_offset_t)(map)->handle) + \
sys/dev/drm2/drm_os_freebsd.h
146
*(volatile u_int16_t *)(((vm_offset_t)(map)->handle) + \
sys/dev/drm2/drm_os_freebsd.h
149
*(volatile u_int32_t *)(((vm_offset_t)(map)->handle) + \
sys/dev/drm2/drm_os_freebsd.h
152
*(volatile u_int64_t *)(((vm_offset_t)(map)->handle) + \
sys/dev/drm2/drm_scatter.c
126
if (!entry || (uintptr_t)entry->vaddr != request->handle)
sys/dev/drm2/drm_scatter.c
95
request->handle = (uintptr_t)entry->vaddr;
sys/dev/drm2/drm_sysctl.c
260
map->flags, (unsigned long)map->handle, yesno);
sys/dev/drm2/drm_vm.c
107
map->offset, (unsigned long)map->handle);
sys/dev/drm2/drm_vm.c
99
(unsigned long)map->handle >> DRM_MAP_HANDLE_SHIFT)
sys/dev/drm2/ttm/ttm_bo_vm.c
106
struct ttm_buffer_object *bo = vm_obj->handle;
sys/dev/drm2/ttm/ttm_bo_vm.c
284
ttm_bo_vm_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/dev/drm2/ttm/ttm_bo_vm.c
306
ttm_bo_vm_dtor(void *handle)
sys/dev/drm2/ttm/ttm_bo_vm.c
308
struct ttm_buffer_object *bo = handle;
sys/dev/enic/enic.h
29
bus_space_handle_t handle;
sys/dev/enic/enic.h
36
bus_space_write_8(res->bar.tag, res->bar.handle, \
sys/dev/enic/enic.h
39
bus_space_write_4(res->bar.tag, res->bar.handle, \
sys/dev/enic/enic.h
42
bus_space_write_region_4(res->bar.tag, res->bar.handle, \
sys/dev/enic/enic.h
46
bus_space_read_8(res->bar.tag, res->bar.handle, \
sys/dev/enic/enic.h
49
bus_space_read_4(res->bar.tag, res->bar.handle, \
sys/dev/enic/enic.h
52
bus_space_read_region_4(res->type.tag, res->type.handle, \
sys/dev/enic/if_enic.c
1608
bar->handle = rman_get_bushandle(bar->res);
sys/dev/gpio/acpi_gpiobus.c
117
ACPI_HANDLE handle;
sys/dev/gpio/acpi_gpiobus.c
124
gpio_res->ResourceSource.StringPtr, &handle)) ||
sys/dev/gpio/acpi_gpiobus.c
125
handle != ctx->dev_handle)
sys/dev/gpio/acpi_gpiobus.c
175
acpi_gpiobus_enumerate(ACPI_HANDLE handle, UINT32 depth, void *context,
sys/dev/gpio/acpi_gpiobus.c
184
if (!ACPI_FAILURE(acpi_GetInteger(handle, "_STA", &sta)) &&
sys/dev/gpio/acpi_gpiobus.c
188
if (!acpi_has_hid(handle))
sys/dev/gpio/acpi_gpiobus.c
192
AcpiWalkResources(handle, "_CRS", acpi_gpiobus_enumerate_res, context);
sys/dev/gpio/acpi_gpiobus.c
254
acpi_gpiobus_attach_aei(struct acpi_gpiobus_softc *sc, ACPI_HANDLE handle)
sys/dev/gpio/acpi_gpiobus.c
263
status = AcpiGetHandle(handle, "_AEI", &aei_handle);
sys/dev/gpio/acpi_gpiobus.c
272
status = AcpiWalkResources(handle, "_AEI",
sys/dev/gpio/acpi_gpiobus.c
292
devi->handle = aei_handle;
sys/dev/gpio/acpi_gpiobus.c
340
ACPI_HANDLE handle;
sys/dev/gpio/acpi_gpiobus.c
348
handle = acpi_get_handle(sc->super_sc.sc_dev);
sys/dev/gpio/acpi_gpiobus.c
349
if (handle == NULL) {
sys/dev/gpio/acpi_gpiobus.c
354
status = AcpiInstallAddressSpaceHandler(handle, ACPI_ADR_SPACE_GPIO,
sys/dev/gpio/acpi_gpiobus.c
364
ctx.dev_handle = handle;
sys/dev/gpio/acpi_gpiobus.c
374
acpi_gpiobus_attach_aei(sc, handle);
sys/dev/gpio/acpi_gpiobus.c
405
*result = (uintptr_t)devi->handle;
sys/dev/gpio/acpi_gpiobus.c
432
sbuf_printf(sb, " handle=%s", acpi_name(devi->handle));
sys/dev/gpio/acpi_gpiobus.c
441
if (acpi_get_device(devi->handle) == child)
sys/dev/gpio/acpi_gpiobus.c
442
AcpiDetachData(devi->handle, acpi_fake_objhandler);
sys/dev/gpio/acpi_gpiobus.c
57
ACPI_HANDLE handle;
sys/dev/gpio/gpioaei.c
131
&ctx->handle)))
sys/dev/gpio/gpioaei.c
137
&ctx->handle)))
sys/dev/gpio/gpioaei.c
205
ACPI_HANDLE handle;
sys/dev/gpio/gpioaei.c
211
handle = acpi_get_handle(dev);
sys/dev/gpio/gpioaei.c
212
status = AcpiGetParent(handle, &sc->dev_handle);
sys/dev/gpio/gpioaei.c
215
acpi_name(handle));
sys/dev/gpio/gpioaei.c
52
ACPI_HANDLE handle;
sys/dev/gpio/gpioaei.c
80
acpi_SetInteger(ctx->handle, NULL, ctx->pin);
sys/dev/gpio/gpioaei.c
82
AcpiEvaluateObject(ctx->handle, NULL, NULL, NULL);
sys/dev/hpt27xx/ldm.h
139
void * handle;
sys/dev/hpt27xx/ldm.h
140
HPT_UINT (*shrink)(void *handle, HPT_UINT npages);
sys/dev/hpt27xx/ldm.h
141
int (*resume)(void *handle);
sys/dev/hpt27xx/osm.h
180
void os_del_timer(void *handle);
sys/dev/hpt27xx/wj.h
42
void wj_del_entry(PVBUS vbus, void *handle);
sys/dev/hpt27xx/wj.h
50
#define wj_del_entry(vbus, handle) 0
sys/dev/hptmv/raid5n.h
44
#define dataxfer_add_item(handle, host, cache, bytes, tocache) \
sys/dev/hptmv/raid5n.h
47
#define dataxfer_exec(handle, done, tag) done(_VBUS_P tag, 0)
sys/dev/hptmv/raid5n.h
62
#define xor_add_item(handle, dest, src, nsrc, bytes) \
sys/dev/hptmv/raid5n.h
69
#define xor_exec(handle, done, tag) done(_VBUS_P tag, 0)
sys/dev/hptnr/ldm.h
139
void * handle;
sys/dev/hptnr/ldm.h
140
HPT_UINT (*shrink)(void *handle, HPT_UINT npages);
sys/dev/hptnr/ldm.h
141
int (*resume)(void *handle);
sys/dev/hptnr/osm.h
178
void os_del_timer(void *handle);
sys/dev/hptnr/wj.h
43
void wj_del_entry(PVBUS vbus, void *handle);
sys/dev/hptnr/wj.h
51
#define wj_del_entry(vbus, handle) 0
sys/dev/hptrr/ldm.h
138
void * handle;
sys/dev/hptrr/ldm.h
139
HPT_UINT (*shrink)(void *handle, HPT_UINT npages);
sys/dev/hptrr/ldm.h
140
int (*resume)(void *handle);
sys/dev/hptrr/osm.h
145
void os_del_timer(void *handle);
sys/dev/hwpmc/hwpmc_logging.c
316
pmclog_proc_ignite(void *handle, struct pmc_owner *po)
sys/dev/hwpmc/hwpmc_logging.c
320
ia = handle;
sys/dev/hwt/hwt_vm.c
86
hwt_vm_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/dev/hwt/hwt_vm.c
96
hwt_vm_dtor(void *handle)
sys/dev/hyperv/vmbus/vmbus.c
1447
ACPI_HANDLE handle;
sys/dev/hyperv/vmbus/vmbus.c
1470
handle = acpi_get_handle(dev_res);
sys/dev/hyperv/vmbus/vmbus.c
1472
if (ACPI_FAILURE(acpi_GetInteger(handle, "_CCA", &coherent)))
sys/dev/ice/ice_adminq_cmd.h
1976
__le16 handle;
sys/dev/ice/ice_common.c
3062
LE16_TO_CPU(desc.params.get_link_topo.addr.handle);
sys/dev/ice/ice_lib.c
294
bar->handle = rman_get_bushandle(bar->res);
sys/dev/ice/ice_lib.h
137
bus_space_handle_t handle;
sys/dev/ice/ice_osdep.c
195
return bus_space_read_4(sc->bar0.tag, sc->bar0.handle, reg);
sys/dev/ice/ice_osdep.c
215
data = bus_space_read_8(sc->bar0.tag, sc->bar0.handle, reg);
sys/dev/ice/ice_osdep.c
221
data = bus_space_read_4(sc->bar0.tag, sc->bar0.handle, reg);
sys/dev/ice/ice_osdep.c
222
data |= ((uint64_t)bus_space_read_4(sc->bar0.tag, sc->bar0.handle, reg + 4)) << 32;
sys/dev/ice/ice_osdep.c
241
bus_space_write_4(sc->bar0.tag, sc->bar0.handle, reg, val);
sys/dev/ice/ice_osdep.c
261
bus_space_write_8(sc->bar0.tag, sc->bar0.handle, reg, val);
sys/dev/ice/ice_osdep.c
271
bus_space_write_4(sc->bar0.tag, sc->bar0.handle, reg, lo_val);
sys/dev/ice/ice_osdep.c
272
bus_space_write_4(sc->bar0.tag, sc->bar0.handle, reg + 4, hi_val);
sys/dev/ichiic/ig4_iic.c
796
ig4iic_acpi_params(ACPI_HANDLE handle, char *method,
sys/dev/ichiic/ig4_iic.c
806
status = AcpiEvaluateObject(handle, method, NULL, &buf);
sys/dev/ichiic/ig4_iic.c
832
ACPI_HANDLE handle;
sys/dev/ichiic/ig4_iic.c
890
if (ig4_timings == 0 && (handle = acpi_get_handle(sc->dev)) != NULL) {
sys/dev/ichiic/ig4_iic.c
891
ig4iic_acpi_params(handle, "SSCN", &sc->cfg.ss_scl_hcnt,
sys/dev/ichiic/ig4_iic.c
893
ig4iic_acpi_params(handle, "FMCN", &sc->cfg.fs_scl_hcnt,
sys/dev/iicbus/acpi_iicbus.c
327
ACPI_HANDLE handle;
sys/dev/iicbus/acpi_iicbus.c
330
handle = acpi_get_handle(device_get_parent(sc->super_sc.dev));
sys/dev/iicbus/acpi_iicbus.c
331
s = AcpiInstallAddressSpaceHandler(handle, ACPI_ADR_SPACE_GSBUS,
sys/dev/iicbus/acpi_iicbus.c
345
ACPI_HANDLE handle;
sys/dev/iicbus/acpi_iicbus.c
348
handle = acpi_get_handle(device_get_parent(sc->super_sc.dev));
sys/dev/iicbus/acpi_iicbus.c
349
s = AcpiRemoveAddressSpaceHandler(handle, ACPI_ADR_SPACE_GSBUS,
sys/dev/iicbus/acpi_iicbus.c
365
ACPI_HANDLE handle;
sys/dev/iicbus/acpi_iicbus.c
369
res->Data.I2cSerialBus.ResourceSource.StringPtr, &handle);
sys/dev/iicbus/acpi_iicbus.c
378
sb->ResourceSource_Handle = handle;
sys/dev/iicbus/acpi_iicbus.c
387
acpi_iicbus_get_i2cres(ACPI_HANDLE handle, ACPI_RESOURCE_I2C_SERIALBUS *sb)
sys/dev/iicbus/acpi_iicbus.c
390
return (AcpiWalkResources(handle, "_CRS",
sys/dev/iicbus/acpi_iicbus.c
430
acpi_iicbus_parse_resources(ACPI_HANDLE handle, device_t dev)
sys/dev/iicbus/acpi_iicbus.c
433
return (AcpiWalkResources(handle, "_CRS",
sys/dev/iicbus/acpi_iicbus.c
460
acpi_iicbus_enumerate_child(ACPI_HANDLE handle, UINT32 level,
sys/dev/iicbus/acpi_iicbus.c
476
if (!ACPI_FAILURE(acpi_GetInteger(handle, "_STA", &sta)) &&
sys/dev/iicbus/acpi_iicbus.c
480
if (!acpi_has_hid(handle))
sys/dev/iicbus/acpi_iicbus.c
488
if (ACPI_FAILURE(acpi_iicbus_get_i2cres(handle, &sb)) ||
sys/dev/iicbus/acpi_iicbus.c
502
acpi_child = acpi_get_device(handle);
sys/dev/iicbus/acpi_iicbus.c
522
acpi_set_handle(child, handle);
sys/dev/iicbus/acpi_iicbus.c
523
(void)acpi_iicbus_parse_resources(handle, child);
sys/dev/iicbus/acpi_iicbus.c
528
status = AcpiAttachData(handle, acpi_fake_objhandler, child);
sys/dev/iicbus/acpi_iicbus.c
531
acpi_name(handle), AcpiFormatException(status));
sys/dev/iicbus/acpi_iicbus.c
563
ACPI_HANDLE handle;
sys/dev/iicbus/acpi_iicbus.c
573
handle = acpi_get_handle(controller);
sys/dev/iicbus/acpi_iicbus.c
574
if (handle == NULL)
sys/dev/iicbus/acpi_iicbus.c
673
if (acpi_get_device(devi->handle) == child)
sys/dev/iicbus/acpi_iicbus.c
674
AcpiDetachData(devi->handle, acpi_fake_objhandler);
sys/dev/iicbus/acpi_iicbus.c
684
*res = (uintptr_t)devi->handle;
sys/dev/iicbus/acpi_iicbus.c
700
if (devi->handle != NULL)
sys/dev/iicbus/acpi_iicbus.c
702
devi->handle = (ACPI_HANDLE)val;
sys/dev/iicbus/acpi_iicbus.c
724
if (devi->handle != NULL)
sys/dev/iicbus/acpi_iicbus.c
725
sbuf_printf(sb, " handle=%s", acpi_name(devi->handle));
sys/dev/iicbus/acpi_iicbus.c
742
if (devi->handle == NULL)
sys/dev/iicbus/acpi_iicbus.c
745
error = acpi_pnpinfo(devi->handle, sb);
sys/dev/iicbus/acpi_iicbus.c
75
ACPI_HANDLE handle;
sys/dev/iicbus/iichid.c
1020
iichid_fill_device_info(struct i2c_hid_desc *desc, ACPI_HANDLE handle,
sys/dev/iicbus/iichid.c
1031
if (ACPI_FAILURE(AcpiGetObjectInfo(handle, &device_info)))
sys/dev/iicbus/iichid.c
1058
ACPI_HANDLE handle;
sys/dev/iicbus/iichid.c
1077
handle = acpi_get_handle(dev);
sys/dev/iicbus/iichid.c
1078
if (handle == NULL)
sys/dev/iicbus/iichid.c
1081
reg = acpi_is_iichid(handle);
sys/dev/iicbus/iichid.c
1086
if (ACPI_FAILURE(iichid_get_config_reg(handle, &config_reg)))
sys/dev/iicbus/iichid.c
1109
if (iichid_fill_device_info(&sc->desc, handle, &sc->hw) != 0) {
sys/dev/iicbus/iichid.c
214
acpi_is_iichid(ACPI_HANDLE handle)
sys/dev/iicbus/iichid.c
221
if (acpi_MatchHid(handle, ids->id)) {
sys/dev/iicbus/iichid.c
233
if (ACPI_FAILURE(acpi_GetInteger(handle, "_STA", &sta)) ||
sys/dev/iicbus/iichid.c
241
iichid_get_config_reg(ACPI_HANDLE handle, uint16_t *config_reg)
sys/dev/iicbus/iichid.c
257
status = acpi_EvaluateDSMTyped(handle, dsm_guid, 1, 1, NULL, &acpi_buf,
sys/dev/iicbus/pwm/adm1030.c
119
phandle_t handle;
sys/dev/iicbus/pwm/adm1030.c
124
handle = ofw_bus_get_node(dev);
sys/dev/iicbus/pwm/adm1030.c
133
if (OF_getprop(handle, "platform-getTemp", &thermostat, sizeof(thermostat)) < 0)
sys/dev/ioat/ioat_internal.h
54
bus_space_handle_t handle, bus_size_t offset)
sys/dev/ioat/ioat_internal.h
56
return (bus_space_read_4(tag, handle, offset) |
sys/dev/ioat/ioat_internal.h
57
((uint64_t)bus_space_read_4(tag, handle, offset + 4)) << 32);
sys/dev/ioat/ioat_internal.h
62
bus_space_handle_t handle, bus_size_t offset, uint64_t val)
sys/dev/ioat/ioat_internal.h
64
bus_space_write_4(tag, handle, offset, val);
sys/dev/ioat/ioat_internal.h
65
bus_space_write_4(tag, handle, offset + 4, val >> 32);
sys/dev/ioat/ioat_internal.h
72
#define ioat_bus_space_read_8(tag, handle, offset) \
sys/dev/ioat/ioat_internal.h
73
bus_space_read_8((tag), (handle), (offset))
sys/dev/ioat/ioat_internal.h
74
#define ioat_bus_space_write_8(tag, handle, offset, val) \
sys/dev/ioat/ioat_internal.h
75
bus_space_write_8((tag), (handle), (offset), (val))
sys/dev/ipmi/ipmi_smbios.c
56
uint16_t handle;
sys/dev/isci/isci.h
153
SCI_CONTROLLER_HANDLE_T handle;
sys/dev/isci/isci_controller.c
283
scic_sgpio_update_led_state(phy->handle, 1 << phy->index,
sys/dev/isci/isci_controller.c
293
scic_sgpio_update_led_state(phy->handle, 1 << phy->index,
sys/dev/isci/isci_controller.c
389
controller->phys[i].handle = scic_controller_handle;
sys/dev/isci/scil/scic_sds_port.c
1000
SCIC_SDS_PORT_T * this_port = (SCIC_SDS_PORT_T *)handle;
sys/dev/isci/scil/scic_sds_port.c
1006
handle, reset_timeout
sys/dev/isci/scil/scic_sds_port.c
905
SCI_PORT_HANDLE_T handle,
sys/dev/isci/scil/scic_sds_port.c
910
SCIC_SDS_PORT_T *this_port = (SCIC_SDS_PORT_T *)handle;
sys/dev/isci/scil/scic_sds_port.c
917
handle, phy
sys/dev/isci/scil/scic_sds_port.c
934
SCI_PORT_HANDLE_T handle,
sys/dev/isci/scil/scic_sds_port.c
939
SCIC_SDS_PORT_T *this_port = (SCIC_SDS_PORT_T *)handle;
sys/dev/isci/scil/scic_sds_port.c
946
handle, phy
sys/dev/isci/scil/scic_sds_port.c
996
SCI_PORT_HANDLE_T handle,
sys/dev/isci/scil/scic_task_request.h
169
#define scic_task_request_construct(controller, dev, tag, task, mem, handle) \
sys/dev/isci/scil/scif_sas_remote_device_ready_substates.c
205
SCI_TASK_REQUEST_HANDLE_T handle;
sys/dev/isci/scil/scif_sas_remote_device_ready_substates.c
233
&handle,
sys/dev/isp/isp.c
1399
isp_plogx(ispsoftc_t *isp, int chan, uint16_t handle, uint32_t portid, int flags)
sys/dev/isp/isp.c
1409
"Login":"Logout", portid, handle);
sys/dev/isp/isp.c
1414
pl.plogx_nphdl = handle;
sys/dev/isp/isp.c
1504
chan, portid, handle, msg);
sys/dev/isp/isp.c
1534
pdb->handle = un.bill.pdb_handle;
sys/dev/isp/isp.c
1839
(void) isp_plogx(isp, chan, lp->handle,
sys/dev/isp/isp.c
1899
chan, lp->portid, lp->handle,
sys/dev/isp/isp.c
1909
lp->handle == pdb->handle &&
sys/dev/isp/isp.c
1917
chan, pdb->portid, pdb->handle);
sys/dev/isp/isp.c
1923
lp->handle = pdb->handle;
sys/dev/isp/isp.c
1929
chan, pdb->portid, pdb->handle);
sys/dev/isp/isp.c
1945
lp->handle = pdb->handle;
sys/dev/isp/isp.c
1949
chan, pdb->portid, pdb->handle);
sys/dev/isp/isp.c
1962
uint16_t handle;
sys/dev/isp/isp.c
1997
handle = handles[idx];
sys/dev/isp/isp.c
2002
if (handle >= NPH_RESERVED)
sys/dev/isp/isp.c
2008
r = isp_getpdb(isp, chan, handle, &pdb);
sys/dev/isp/isp.c
2018
chan, handle, r);
sys/dev/isp/isp.c
2397
chan, lp->portid, lp->handle,
sys/dev/isp/isp.c
2421
r = isp_getpdb(isp, chan, lp->handle, &pdb);
sys/dev/isp/isp.c
2428
chan, portid, lp->handle, r);
sys/dev/isp/isp.c
2481
uint16_t handle;
sys/dev/isp/isp.c
2483
handle = isp_next_handle(isp, ohp);
sys/dev/isp/isp.c
2489
r = isp_getpdb(isp, chan, handle, p);
sys/dev/isp/isp.c
2493
handle = isp_next_handle(isp, ohp);
sys/dev/isp/isp.c
2504
r = isp_plogx(isp, chan, handle, portid, PLOGX_FLG_CMD_PLOGI);
sys/dev/isp/isp.c
2518
r = isp_plogx(isp, chan, handle, portid, PLOGX_FLG_CMD_PLOGI);
sys/dev/isp/isp.c
2524
handle = isp_next_handle(isp, ohp);
sys/dev/isp/isp.c
2542
r = isp_getpdb(isp, chan, handle, p);
sys/dev/isp/isp.c
2544
isp_prt(isp, ISP_LOGERR, "Chan %d new device 0x%06x@0x%x disappeared", chan, portid, handle);
sys/dev/isp/isp.c
2548
if (p->handle != handle || p->portid != portid) {
sys/dev/isp/isp.c
2550
chan, portid, handle, p->portid, p->handle);
sys/dev/isp/isp.c
2784
uint16_t handle;
sys/dev/isp/isp.c
2786
handle = *ohp;
sys/dev/isp/isp.c
2790
if (handle == NIL_HANDLE) {
sys/dev/isp/isp.c
2791
handle = 0;
sys/dev/isp/isp.c
2793
handle++;
sys/dev/isp/isp.c
2794
if (handle > NPH_RESERVED - 1) {
sys/dev/isp/isp.c
2799
handle = 0;
sys/dev/isp/isp.c
2808
fcp->portdb[i].handle == handle)
sys/dev/isp/isp.c
2812
*ohp = handle;
sys/dev/isp/isp.c
2813
return (handle);
sys/dev/isp/isp.c
2935
reqp->req_nphdl = lp->handle;
sys/dev/isp/isp.c
3003
uint32_t handle;
sys/dev/isp/isp.c
3040
tmf->tmf_nphdl = lp->handle;
sys/dev/isp/isp.c
3048
isp_prt(isp, ISP_LOGALL, "Chan %d Reset N-Port Handle 0x%04x @ Port 0x%06x", chan, lp->handle, lp->portid);
sys/dev/isp/isp.c
3070
handle = isp_find_handle(isp, xs);
sys/dev/isp/isp.c
3071
if (handle == 0) {
sys/dev/isp/isp.c
3086
isp_prt(isp, ISP_LOGALL, "Chan %d Abort Cmd for N-Port 0x%04x @ Port 0x%06x", chan, lp->handle, lp->portid);
sys/dev/isp/isp.c
3090
ab->abrt_handle = lp->handle;
sys/dev/isp/isp.c
3091
ab->abrt_cmd_handle = handle;
sys/dev/isp/isp.c
3193
if ((p->flags & PLOGX_FLG_CMD_MASK) != PLOGX_FLG_CMD_PLOGI || (p->handle != NIL_HANDLE)) {
sys/dev/isp/isp.c
3194
return (isp_plogx(isp, p->channel, p->handle, p->portid, p->flags));
sys/dev/isp/isp.c
3197
isp_next_handle(isp, &p->handle);
sys/dev/isp/isp.c
3198
r = isp_plogx(isp, p->channel, p->handle, p->portid, p->flags);
sys/dev/isp/isp.c
3200
p->handle = r >> 16;
sys/dev/isp/isp.c
3586
if (ISP_H2HT(hdp->handle) != ISP_HANDLE_INITIATOR) {
sys/dev/isp/isp_freebsd.c
1233
handle = isp_allocate_handle(isp, ccb, ISP_HANDLE_TARGET);
sys/dev/isp/isp_freebsd.c
1234
if (handle == 0) {
sys/dev/isp/isp_freebsd.c
1251
cto->ct_syshandle = handle;
sys/dev/isp/isp_freebsd.c
1254
isp_destroy_handle(isp, handle);
sys/dev/isp/isp_freebsd.c
1345
nphdl = lp->handle;
sys/dev/isp/isp_freebsd.c
1608
uint32_t handle, data_requested, resid;
sys/dev/isp/isp_freebsd.c
1610
handle = ct->ct_syshandle;
sys/dev/isp/isp_freebsd.c
1611
ccb = isp_find_xs(isp, handle);
sys/dev/isp/isp_freebsd.c
1616
isp_destroy_handle(isp, handle);
sys/dev/isp/isp_freebsd.c
1725
nphdl = lp->handle;
sys/dev/isp/isp_freebsd.c
1924
uint32_t ohandle = ISP_HANDLE_FREE, handle;
sys/dev/isp/isp_freebsd.c
1928
handle = isp_find_handle(isp, xs);
sys/dev/isp/isp_freebsd.c
1933
if (handle != ISP_HANDLE_FREE) {
sys/dev/isp/isp_freebsd.c
1935
ohandle = handle;
sys/dev/isp/isp_freebsd.c
1936
handle = isp_find_handle(isp, xs);
sys/dev/isp/isp_freebsd.c
1938
if (handle != ISP_HANDLE_FREE) {
sys/dev/isp/isp_freebsd.c
1955
xs = isp_find_xs(isp, handle);
sys/dev/isp/isp_freebsd.c
1969
isp_destroy_handle(isp, handle);
sys/dev/isp/isp_freebsd.c
1970
isp_prt(isp, ISP_LOGERR, "%s: timeout for handle 0x%x", __func__, handle);
sys/dev/isp/isp_freebsd.c
2145
if (ISP_H2HT(isp->isp_xflist[i].handle) != ISP_HANDLE_INITIATOR) {
sys/dev/isp/isp_freebsd.c
2155
isp->isp_xflist[i].handle, chan, XS_TGT(xs),
sys/dev/isp/isp_freebsd.c
2168
isp_destroy_handle(isp, isp->isp_xflist[i].handle);
sys/dev/isp/isp_freebsd.c
2170
isp->isp_xflist[i].handle, chan, XS_TGT(xs),
sys/dev/isp/isp_freebsd.c
2907
isp_prt(isp, ISP_LOGCONFIG, prom, bus, tgt, lp->port_wwn, lp->portid, lp->handle, buf, "arrived");
sys/dev/isp/isp_freebsd.c
2940
isp_prt(isp, ISP_LOGCONFIG, prom, bus, tgt, lp->port_wwn, lp->new_portid, lp->handle, buf, "changed");
sys/dev/isp/isp_freebsd.c
2942
isp_prt(isp, ISP_LOGCONFIG, prom, bus, tgt, lp->port_wwn, lp->portid, lp->handle, buf, "stayed");
sys/dev/isp/isp_freebsd.c
2996
isp_prt(isp, ISP_LOGCONFIG, prom, bus, tgt, lp->port_wwn, lp->portid, lp->handle, buf, "gone zombie");
sys/dev/isp/isp_freebsd.c
3003
isp_prt(isp, ISP_LOGCONFIG, prom, bus, tgt, lp->port_wwn, lp->portid, lp->handle, buf, "gone");
sys/dev/isp/isp_freebsd.c
463
ifc->loopid = lp->handle;
sys/dev/isp/isp_freebsd.c
521
if (lp->handle == nphdl) {
sys/dev/isp/isp_freebsd.c
533
tmf.tmf_nphdl = lp->handle;
sys/dev/isp/isp_freebsd.c
945
uint32_t dmaresult, handle, xfrlen, sense_length, tmp;
sys/dev/isp/isp_library.c
1413
isp_find_pdb_by_handle(ispsoftc_t *isp, int chan, uint16_t handle,
sys/dev/isp/isp_library.c
1424
if (lp->handle == handle) {
sys/dev/isp/isp_library.c
1565
lp->portid, lp->handle, buf);
sys/dev/isp/isp_library.c
1569
if (lp->handle != nphdl) {
sys/dev/isp/isp_library.c
1574
lp->portid, lp->handle, nphdl);
sys/dev/isp/isp_library.c
1575
lp->handle = nphdl;
sys/dev/isp/isp_library.c
1588
lp->portid, lp->handle);
sys/dev/isp/isp_library.c
1612
lp->handle = nphdl;
sys/dev/isp/isp_library.c
172
hdp->handle = (hdp - isp->isp_xflist);
sys/dev/isp/isp_library.c
173
hdp->handle |= (type << ISP_HANDLE_USAGE_SHIFT);
sys/dev/isp/isp_library.c
174
hdp->handle |= (isp->isp_seqno++ << ISP_HANDLE_SEQ_SHIFT);
sys/dev/isp/isp_library.c
175
return (hdp->handle);
sys/dev/isp/isp_library.c
179
isp_find_xs(ispsoftc_t *isp, uint32_t handle)
sys/dev/isp/isp_library.c
181
if (!ISP_VALID_HANDLE(isp, handle)) {
sys/dev/isp/isp_library.c
182
isp_prt(isp, ISP_LOGERR, "%s: bad handle 0x%x", __func__, handle);
sys/dev/isp/isp_library.c
185
return (isp->isp_xflist[(handle & ISP_HANDLE_CMD_MASK)].cmd);
sys/dev/isp/isp_library.c
198
foundhdl = isp->isp_xflist[i].handle;
sys/dev/isp/isp_library.c
206
isp_destroy_handle(ispsoftc_t *isp, uint32_t handle)
sys/dev/isp/isp_library.c
208
if (!ISP_VALID_HANDLE(isp, handle)) {
sys/dev/isp/isp_library.c
209
isp_prt(isp, ISP_LOGERR, "%s: bad handle 0x%x", __func__, handle);
sys/dev/isp/isp_library.c
211
isp->isp_xflist[(handle & ISP_HANDLE_CMD_MASK)].handle = ISP_HANDLE_FREE;
sys/dev/isp/isp_library.c
212
isp->isp_xflist[(handle & ISP_HANDLE_CMD_MASK)].cmd = isp->isp_xffree;
sys/dev/isp/isp_library.c
213
isp->isp_xffree = &isp->isp_xflist[(handle & ISP_HANDLE_CMD_MASK)];
sys/dev/isp/isp_library.c
332
chan, i, lp->handle, dbs[lp->state], buf1, lp->portid, buf2, lp->new_portid,
sys/dev/isp/isp_library.c
468
switch (ISP_H2HT(hdp->handle)) {
sys/dev/isp/isp_library.c
472
isp_destroy_handle(isp, hdp->handle);
sys/dev/isp/isp_library.c
484
ctio.ct_syshandle = hdp->handle;
sys/dev/isp/isp_library.c
494
isp_destroy_handle(isp, hdp->handle);
sys/dev/isp/isp_target.c
385
notify.nt_nphdl = lp->handle;
sys/dev/isp/ispmbox.h
911
uint16_t handle;
sys/dev/isp/ispmbox.h
967
uint16_t handle;
sys/dev/isp/ispvar.h
221
uint32_t handle; /* handle associated with this command */
sys/dev/isp/ispvar.h
243
(hdl) == ((isp)->isp_xflist[(hdl) & ISP_HANDLE_CMD_MASK].handle))
sys/dev/isp/ispvar.h
293
uint16_t handle;
sys/dev/ixgbe/ixgbe_e610.c
1722
IXGBE_LE16_TO_CPU(desc.params.get_link_topo.addr.handle);
sys/dev/ixgbe/ixgbe_type_e610.h
1144
__le16 handle;
sys/dev/ixl/ixl_iw.c
161
pf_info->handle = (void *)pf;
sys/dev/ixl/ixl_iw.h
53
void *handle;
sys/dev/liquidio/base/lio_device.h
174
bus_space_handle_t handle;
sys/dev/liquidio/base/lio_device.h
828
oct->mem_bus_space[0].handle, reg));
sys/dev/liquidio/base/lio_device.h
836
oct->mem_bus_space[0].handle, reg, val);
sys/dev/liquidio/base/lio_device.h
844
oct->mem_bus_space[0].handle, reg));
sys/dev/liquidio/base/lio_device.h
852
oct->mem_bus_space[0].handle, reg, val);
sys/dev/liquidio/base/lio_device.h
860
oct->mem_bus_space[0].handle, reg));
sys/dev/liquidio/base/lio_device.h
868
oct->mem_bus_space[0].handle, reg, val);
sys/dev/liquidio/base/lio_device.h
880
oct->mem_bus_space[0].handle, reg));
sys/dev/liquidio/base/lio_device.h
893
oct->mem_bus_space[0].handle, reg, val);
sys/dev/liquidio/base/lio_mem_ops.c
107
oct->mem_bus_space[1].handle, reg, val);
sys/dev/liquidio/base/lio_mem_ops.c
141
oct->mem_bus_space[1].handle, reg));
sys/dev/liquidio/base/lio_mem_ops.c
64
oct->mem_bus_space[1].handle, reg, val);
sys/dev/liquidio/base/lio_mem_ops.c
73
oct->mem_bus_space[1].handle, reg));
sys/dev/liquidio/base/lio_mem_ops.c
81
oct->mem_bus_space[1].handle, reg, val);
sys/dev/liquidio/base/lio_mem_ops.c
94
oct->mem_bus_space[1].handle, reg));
sys/dev/liquidio/lio_main.h
102
oct->mem_bus_space[baridx].handle =
sys/dev/liquidio/lio_main.h
107
LIO_CAST64(oct->mem_bus_space[baridx].handle));
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1018
int mlx5_modify_rule_destination(struct mlx5_flow_handle *handle,
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1025
if (handle->num_rules != 1)
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1027
return _mlx5_modify_rule_destination(handle->rule[0],
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1031
for (i = 0; i < handle->num_rules; i++) {
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1032
if (mlx5_flow_dests_cmp(new_dest, &handle->rule[i]->dest_attr))
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1033
return _mlx5_modify_rule_destination(handle->rule[i],
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1329
struct mlx5_flow_handle *handle;
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1331
handle = kzalloc(struct_size(handle, rule, num_rules), GFP_KERNEL);
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1332
if (!handle)
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1335
handle->num_rules = num_rules;
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1337
return handle;
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1341
struct mlx5_flow_handle *handle,
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1346
if (refcount_dec_and_test(&handle->rule[i]->node.refcount)) {
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1348
list_del(&handle->rule[i]->node.list);
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1349
kfree(handle->rule[i]);
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1352
kfree(handle);
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1362
struct mlx5_flow_handle *handle;
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1369
handle = alloc_handle((dest_num) ? dest_num : 1);
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1370
if (!handle)
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1407
handle->rule[i] = rule;
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1410
return handle;
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1413
destroy_flow_handle(fte, handle, dest, i);
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1426
struct mlx5_flow_handle *handle;
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1432
handle = create_flow_handle(fte, dest, dest_num, &modify_mask,
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1434
if (IS_ERR(handle) || !new_rule)
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1454
return handle;
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1457
destroy_flow_handle(fte, handle, dest, handle->num_rules);
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1675
struct mlx5_flow_handle *handle;
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1686
handle = add_rule_fte(fte, fg, dest, dest_num,
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1688
if (IS_ERR(handle)) {
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1690
return handle;
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1693
for (i = 0; i < handle->num_rules; i++) {
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1694
if (refcount_read(&handle->rule[i]->node.refcount) == 1) {
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1695
tree_add_node(&handle->rule[i]->node, &fte->node);
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
1698
return handle;
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
2068
struct mlx5_flow_handle *handle = NULL;
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
2084
handle = ERR_PTR(-EOPNOTSUPP);
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
2091
handle = ERR_PTR(-ENOMEM);
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
2104
handle = _mlx5_add_flow_rules(ft, spec, flow_act, dest, num_dest);
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
2105
if (IS_ERR(handle))
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
2108
if (list_empty(&handle->rule[num_dest - 1]->next_ft)) {
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
2110
list_add(&handle->rule[num_dest - 1]->next_ft,
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
2113
handle->rule[num_dest - 1]->sw_action = sw_action;
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
2114
handle->rule[num_dest - 1]->ft = ft;
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
2119
return handle;
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
2125
struct mlx5_flow_handle *handle;
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
2129
handle = *pp;
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
2131
if (IS_ERR_OR_NULL(handle))
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
2146
fs_get_obj(fte, handle->rule[0]->node.parent);
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
2148
for (i = handle->num_rules - 1; i >= 0; i--)
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
2149
tree_remove_node(&handle->rule[i]->node, true);
sys/dev/mlx5/mlx5_core/mlx5_fs_core.c
2163
kfree(handle);
sys/dev/mpi3mr/mpi3mr.c
3497
uint16_t handle)
sys/dev/mpi3mr/mpi3mr.c
3503
if (target->dev_handle == handle)
sys/dev/mpi3mr/mpi3mr.c
3731
drv_cmd->dev_handle = delayed_dev_rmhs->handle;
sys/dev/mpi3mr/mpi3mr.c
3821
static void mpi3mr_dev_rmhs_send_tm(struct mpi3mr_softc *sc, U16 handle,
sys/dev/mpi3mr/mpi3mr.c
3849
delayed_dev_rmhs->handle = handle;
sys/dev/mpi3mr/mpi3mr.c
3853
__func__, handle);
sys/dev/mpi3mr/mpi3mr.c
3864
__func__, handle, cmd_idx);
sys/dev/mpi3mr/mpi3mr.c
3874
drv_cmd->dev_handle = handle;
sys/dev/mpi3mr/mpi3mr.c
3876
tm_req.DevHandle = htole16(handle);
sys/dev/mpi3mr/mpi3mr.c
3882
mpi3mr_set_bit(handle, sc->removepend_bitmap);
sys/dev/mpi3mr/mpi3mr.c
4038
U16 handle;
sys/dev/mpi3mr/mpi3mr.c
4043
handle = le16toh(topo_evt->PortEntry[i].AttachedDevHandle);
sys/dev/mpi3mr/mpi3mr.c
4044
if (!handle)
sys/dev/mpi3mr/mpi3mr.c
4047
tgtdev = mpi3mr_find_target_by_dev_handle(sc->cam_sc, handle);
sys/dev/mpi3mr/mpi3mr.c
4055
mpi3mr_dev_rmhs_send_tm(sc, handle, NULL,
sys/dev/mpi3mr/mpi3mr.c
4097
U16 handle;
sys/dev/mpi3mr/mpi3mr.c
4102
handle = le16toh(topo_evt->PhyEntry[i].AttachedDevHandle);
sys/dev/mpi3mr/mpi3mr.c
4103
if (!handle)
sys/dev/mpi3mr/mpi3mr.c
4107
tgtdev = mpi3mr_find_target_by_dev_handle(sc->cam_sc, handle);
sys/dev/mpi3mr/mpi3mr.c
4115
mpi3mr_dev_rmhs_send_tm(sc, handle, NULL,
sys/dev/mpi3mr/mpi3mr.c
87
static void mpi3mr_dev_rmhs_send_tm(struct mpi3mr_softc *sc, U16 handle,
sys/dev/mpi3mr/mpi3mr.h
518
U16 handle;
sys/dev/mpi3mr/mpi3mr.h
992
int mpi3mr_remove_device(struct mpi3mr_softc *sc, U16 handle);
sys/dev/mpi3mr/mpi3mr.h
997
int mpi3mr_remove_device_from_os(struct mpi3mr_softc *sc, U16 handle);
sys/dev/mpi3mr/mpi3mr_app.c
1927
devmap_info[i].handle = tgtdev->dev_handle;
sys/dev/mpi3mr/mpi3mr_app.h
174
U16 handle;
sys/dev/mpi3mr/mpi3mr_cam.c
1563
U16 handle;
sys/dev/mpi3mr/mpi3mr_cam.c
1595
handle = (event_data->PhyEntry[i].AttachedDevHandle);
sys/dev/mpi3mr/mpi3mr_cam.c
1596
if (!handle)
sys/dev/mpi3mr/mpi3mr_cam.c
1622
phy_number, handle, status_str, link_rate, prev_link_rate);
sys/dev/mpi3mr/mpi3mr_cam.c
1633
U16 handle;
sys/dev/mpi3mr/mpi3mr_cam.c
1641
handle = le16toh(event_data->PhyEntry[i].AttachedDevHandle);
sys/dev/mpi3mr/mpi3mr_cam.c
1644
if (!handle)
sys/dev/mpi3mr/mpi3mr_cam.c
1646
target = mpi3mr_find_target_by_dev_handle(sc->cam_sc, handle);
sys/dev/mpi3mr/mpi3mr_cam.c
1682
U16 handle;
sys/dev/mpi3mr/mpi3mr_cam.c
1714
handle =
sys/dev/mpi3mr/mpi3mr_cam.c
1716
if (!handle)
sys/dev/mpi3mr/mpi3mr_cam.c
1743
port_number, handle, status_str, link_rate, prev_link_rate);
sys/dev/mpi3mr/mpi3mr_cam.c
1753
U16 handle;
sys/dev/mpi3mr/mpi3mr_cam.c
1761
handle =
sys/dev/mpi3mr/mpi3mr_cam.c
1763
if (!handle)
sys/dev/mpi3mr/mpi3mr_cam.c
1765
target = mpi3mr_find_target_by_dev_handle(sc->cam_sc, handle);
sys/dev/mpi3mr/mpi3mr_cam.c
1831
int mpi3mr_remove_device_from_os(struct mpi3mr_softc *sc, U16 handle)
sys/dev/mpi3mr/mpi3mr_cam.c
1838
"Removing Device (dev_handle: %d)\n", handle);
sys/dev/mpi3mr/mpi3mr_cam.c
1840
target = mpi3mr_find_target_by_dev_handle(sc->cam_sc, handle);
sys/dev/mpi3mr/mpi3mr_cam.c
1845
target->per_id, handle);
sys/dev/mpi3mr/mpi3mr_cam.c
1869
"Removed device(persistent_id: %d dev_handle: %d)\n", target->per_id, handle);
sys/dev/mpi3mr/mpi3mr_cam.h
108
uint16_t handle;
sys/dev/mpr/mpr.c
2739
mpr_evt_callback_t *cb, void *data, struct mpr_event_handle **handle)
sys/dev/mpr/mpr.c
2750
*handle = eh;
sys/dev/mpr/mpr.c
2756
mpr_update_events(struct mpr_softc *sc, struct mpr_event_handle *handle,
sys/dev/mpr/mpr.c
2767
if ((mask != NULL) && (handle != NULL))
sys/dev/mpr/mpr.c
2768
bcopy(mask, &handle->mask[0], 16);
sys/dev/mpr/mpr.c
2861
mpr_deregister_events(struct mpr_softc *sc, struct mpr_event_handle *handle)
sys/dev/mpr/mpr.c
2864
TAILQ_REMOVE(&sc->event_list, handle, eh_list);
sys/dev/mpr/mpr.c
2865
free(handle, M_MPR);
sys/dev/mpr/mpr_config.c
1011
request->PageAddress = htole32(form | handle);
sys/dev/mpr/mpr_config.c
1074
*mpi_reply, Mpi26PCIeDevicePage2_t *config_page, u32 form, u16 handle)
sys/dev/mpr/mpr_config.c
1148
request->PageAddress = htole32(form | handle);
sys/dev/mpr/mpr_config.c
1472
*mpi_reply, Mpi2RaidVolPage1_t *config_page, u32 form, u16 handle)
sys/dev/mpr/mpr_config.c
1544
request->PageAddress = htole32(form | handle);
sys/dev/mpr/mpr_config.c
800
*mpi_reply, Mpi2SasDevicePage0_t *config_page, u32 form, u16 handle)
sys/dev/mpr/mpr_config.c
874
request->PageAddress = htole32(form | handle);
sys/dev/mpr/mpr_config.c
937
*mpi_reply, Mpi26PCIeDevicePage0_t *config_page, u32 form, u16 handle)
sys/dev/mpr/mpr_mapping.c
2668
mpr_mapping_get_tid(struct mpr_softc *sc, uint64_t sas_address, u16 handle)
sys/dev/mpr/mpr_mapping.c
2675
if (mt_entry->dev_handle == handle && mt_entry->physical_id ==
sys/dev/mpr/mpr_mapping.c
2693
mpr_mapping_get_tid_from_handle(struct mpr_softc *sc, u16 handle)
sys/dev/mpr/mpr_mapping.c
2695
return (_mapping_get_mt_idx_from_handle(sc, handle));
sys/dev/mpr/mpr_mapping.c
291
_mapping_get_enc_idx_from_handle(struct mpr_softc *sc, u16 handle)
sys/dev/mpr/mpr_mapping.c
300
if (et_entry->enc_handle == handle)
sys/dev/mpr/mpr_mapping.c
447
_mapping_get_mt_idx_from_handle(struct mpr_softc *sc, u16 handle)
sys/dev/mpr/mpr_mapping.c
454
if (mt_entry->dev_handle == handle)
sys/dev/mpr/mpr_mapping.h
119
u64 *sas_address, u16 handle, u32 device_info, u8 *is_SATA_SSD);
sys/dev/mpr/mpr_sas.c
1024
if (targ->handle == 0x0) {
sys/dev/mpr/mpr_sas.c
1200
sc->sassc->targets[i].handle = 0x0;
sys/dev/mpr/mpr_sas.c
1410
if (target->handle == 0) {
sys/dev/mpr/mpr_sas.c
1417
req->DevHandle = htole16(target->handle);
sys/dev/mpr/mpr_sas.c
146
uint16_t handle)
sys/dev/mpr/mpr_sas.c
153
if (target->handle == handle)
sys/dev/mpr/mpr_sas.c
1569
if (targ->handle == 0) {
sys/dev/mpr/mpr_sas.c
1580
req->DevHandle = htole16(targ->handle);
sys/dev/mpr/mpr_sas.c
1656
targ->tid, targ->handle, ccb->ccb_h.timeout,
sys/dev/mpr/mpr_sas.c
1789
req->DevHandle = htole16(targ->handle);
sys/dev/mpr/mpr_sas.c
1867
if (targ->handle == 0x0) {
sys/dev/mpr/mpr_sas.c
1974
req->DevHandle = htole16(targ->handle);
sys/dev/mpr/mpr_sas.c
2136
htole16(targ->handle);
sys/dev/mpr/mpr_sas.c
2142
cm->cm_desc.SCSIIO.DevHandle = htole16(targ->handle);
sys/dev/mpr/mpr_sas.c
2851
cm->cm_targ->tid, cm->cm_targ->handle);
sys/dev/mpr/mpr_sas.c
3107
if (targ->handle == 0x0) {
sys/dev/mpr/mpr_sas.c
3157
"a valid parent handle!\n", __func__, targ->handle);
sys/dev/mpr/mpr_sas.c
3167
"a valid parent target!\n", __func__, targ->handle);
sys/dev/mpr/mpr_sas.c
3176
targ->handle, parent_target->handle);
sys/dev/mpr/mpr_sas.c
3187
targ->handle, targ->parent_handle);
sys/dev/mpr/mpr_sas.c
3194
targ->handle, targ->parent_handle);
sys/dev/mpr/mpr_sas.c
3205
"handle %d\n", __func__, targ->handle);
sys/dev/mpr/mpr_sas.c
3243
req->DevHandle = htole16(targ->handle);
sys/dev/mpr/mpr_sas.c
3370
if (target->handle == 0)
sys/dev/mpr/mpr_sas.c
352
uint16_t handle;
sys/dev/mpr/mpr_sas.c
357
handle = (uint16_t)(uintptr_t)tm->cm_complete_data;
sys/dev/mpr/mpr_sas.c
363
"0x%04x\n", __func__, handle);
sys/dev/mpr/mpr_sas.c
371
"device 0x%x\n", le16toh(reply->IOCStatus), handle);
sys/dev/mpr/mpr_sas.c
380
targ->tid, handle);
sys/dev/mpr/mpr_sas.c
391
targ->handle = 0x0;
sys/dev/mpr/mpr_sas.c
432
mprsas_prepare_volume_remove(sassc, target->handle);
sys/dev/mpr/mpr_sas.c
434
mprsas_prepare_remove(sassc, target->handle);
sys/dev/mpr/mpr_sas.c
444
mprsas_prepare_volume_remove(struct mprsas_softc *sassc, uint16_t handle)
sys/dev/mpr/mpr_sas.c
454
targ = mprsas_find_target_by_handle(sassc, 0, handle);
sys/dev/mpr/mpr_sas.c
459
"%s %d : invalid handle 0x%x \n", __func__,__LINE__, handle);
sys/dev/mpr/mpr_sas.c
475
req->DevHandle = targ->handle;
sys/dev/mpr/mpr_sas.c
490
cm->cm_complete_data = (void *)(uintptr_t)handle;
sys/dev/mpr/mpr_sas.c
509
mprsas_prepare_remove(struct mprsas_softc *sassc, uint16_t handle)
sys/dev/mpr/mpr_sas.c
520
targ = mprsas_find_target_by_handle(sassc, 0, handle);
sys/dev/mpr/mpr_sas.c
525
__func__, handle);
sys/dev/mpr/mpr_sas.c
541
req->DevHandle = htole16(targ->handle);
sys/dev/mpr/mpr_sas.c
550
tm->cm_complete_data = (void *)(uintptr_t)handle;
sys/dev/mpr/mpr_sas.c
565
uint16_t handle;
sys/dev/mpr/mpr_sas.c
570
handle = (uint16_t)(uintptr_t)tm->cm_complete_data;
sys/dev/mpr/mpr_sas.c
581
tm->cm_flags, handle);
sys/dev/mpr/mpr_sas.c
587
"0x%04x\n", __func__, handle);
sys/dev/mpr/mpr_sas.c
595
"device 0x%x\n", le16toh(reply->IOCStatus), handle);
sys/dev/mpr/mpr_sas.c
608
req->DevHandle = htole16(handle);
sys/dev/mpr/mpr_sas.c
612
tm->cm_complete_data = (void *)(uintptr_t)handle;
sys/dev/mpr/mpr_sas.c
622
targ->tid, handle);
sys/dev/mpr/mpr_sas.c
630
targ->tid, handle);
sys/dev/mpr/mpr_sas.c
642
uint16_t handle;
sys/dev/mpr/mpr_sas.c
649
handle = (uint16_t)(uintptr_t)tm->cm_complete_data;
sys/dev/mpr/mpr_sas.c
668
tm->cm_flags, handle);
sys/dev/mpr/mpr_sas.c
676
"0x%04x\n", __func__, handle);
sys/dev/mpr/mpr_sas.c
682
__func__, handle, le16toh(reply->IOCStatus));
sys/dev/mpr/mpr_sas.c
692
targ->handle = 0x0;
sys/dev/mpr/mpr_sas.h
41
uint16_t handle;
sys/dev/mpr/mpr_sas_lsi.c
1037
u64 *sas_address, u16 handle, u32 device_info, u8 *is_SATA_SSD)
sys/dev/mpr/mpr_sas_lsi.c
1052
rc = mprsas_get_sata_identify(sc, handle, &mpi_reply,
sys/dev/mpr/mpr_sas_lsi.c
1080
__func__, handle, try_count);
sys/dev/mpr/mpr_sas_lsi.c
1083
__func__, handle);
sys/dev/mpr/mpr_sas_lsi.c
1131
mprsas_get_sata_identify(struct mpr_softc *sc, u16 handle,
sys/dev/mpr/mpr_sas_lsi.c
1152
mpi_request->DevHandle = htole16(handle);
sys/dev/mpr/mpr_sas_lsi.c
118
static int mprsas_add_device(struct mpr_softc *sc, u16 handle, u8 linkrate);
sys/dev/mpr/mpr_sas_lsi.c
119
static int mprsas_add_pcie_device(struct mpr_softc *sc, u16 handle,
sys/dev/mpr/mpr_sas_lsi.c
1199
handle, reply->IOCStatus);
sys/dev/mpr/mpr_sas_lsi.c
121
static int mprsas_get_sata_identify(struct mpr_softc *sc, u16 handle,
sys/dev/mpr/mpr_sas_lsi.c
1255
mprsas_add_pcie_device(struct mpr_softc *sc, u16 handle, u8 linkrate)
sys/dev/mpr/mpr_sas_lsi.c
127
u64 *sas_address, u16 handle, u32 device_info, u8 *is_SATA_SSD);
sys/dev/mpr/mpr_sas_lsi.c
1272
MPI26_PCIE_DEVICE_PGAD_FORM_HANDLE, handle))) {
sys/dev/mpr/mpr_sas_lsi.c
129
u16 handle);
sys/dev/mpr/mpr_sas_lsi.c
1304
MPI26_PCIE_DEVICE_PGAD_FORM_HANDLE, handle))) {
sys/dev/mpr/mpr_sas_lsi.c
1310
id = mpr_mapping_get_tid(sc, pcie_wwid, handle);
sys/dev/mpr/mpr_sas_lsi.c
1314
__FILE__, __LINE__, __func__, handle);
sys/dev/mpr/mpr_sas_lsi.c
1348
targ->handle = handle;
sys/dev/mpr/mpr_sas_lsi.c
1376
targ->handle, targ->encl_handle, targ->encl_slot);
sys/dev/mpr/mpr_sas_lsi.c
1391
mprsas_volume_add(struct mpr_softc *sc, u16 handle)
sys/dev/mpr/mpr_sas_lsi.c
1403
mpr_config_get_volume_wwid(sc, handle, &wwid);
sys/dev/mpr/mpr_sas_lsi.c
1411
id = mpr_mapping_get_raid_tid(sc, wwid, handle);
sys/dev/mpr/mpr_sas_lsi.c
1414
"WWID 0x%016llx\n", __func__, handle,
sys/dev/mpr/mpr_sas_lsi.c
1422
targ->handle = handle;
sys/dev/mpr/mpr_sas_lsi.c
1472
if (target->handle == 0x0) {
sys/dev/mpr/mpr_sas_lsi.c
1500
"handle %d\n", path_str, target->handle);
sys/dev/mpr/mpr_sas_lsi.c
1664
if (target->handle == 0x0) {
sys/dev/mpr/mpr_sas_lsi.c
402
targ->handle = 0x0;
sys/dev/mpr/mpr_sas_lsi.c
739
uint16_t handle;
sys/dev/mpr/mpr_sas_lsi.c
749
handle = le16toh(port_entry->AttachedDevHandle);
sys/dev/mpr/mpr_sas_lsi.c
759
__func__, handle);
sys/dev/mpr/mpr_sas_lsi.c
762
if (mprsas_add_pcie_device(sc, handle,
sys/dev/mpr/mpr_sas_lsi.c
766
"0x%x\n", __func__, handle);
sys/dev/mpr/mpr_sas_lsi.c
767
mprsas_prepare_remove(sassc, handle);
sys/dev/mpr/mpr_sas_lsi.c
771
mprsas_prepare_remove(sassc, handle);
sys/dev/mpr/mpr_sas_lsi.c
816
mprsas_add_device(struct mpr_softc *sc, u16 handle, u8 linkrate)
sys/dev/mpr/mpr_sas_lsi.c
834
MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle) != 0) {
sys/dev/mpr/mpr_sas_lsi.c
837
handle, mpi_reply.IOCStatus);
sys/dev/mpr/mpr_sas_lsi.c
867
"page0 = %jx\n", handle, sas_address);
sys/dev/mpr/mpr_sas_lsi.c
876
handle, device_info, &is_SATA_SSD);
sys/dev/mpr/mpr_sas_lsi.c
881
__func__, handle);
sys/dev/mpr/mpr_sas_lsi.c
884
"from SATA device = %jx\n", handle, sas_address);
sys/dev/mpr/mpr_sas_lsi.c
903
id = mpr_mapping_get_tid(sc, sas_address, handle);
sys/dev/mpr/mpr_sas_lsi.c
909
__FILE__, __LINE__, __func__, handle);
sys/dev/mpr/mpr_sas_lsi.c
933
if (targ->handle != 0x0) {
sys/dev/mpr/mpr_sas_lsi.c
935
"target id %d handle 0x%04x\n", id, targ->handle);
sys/dev/mpr/mpr_sas_lsi.c
952
targ->handle = handle;
sys/dev/mpr/mpr_sas_lsi.c
987
targ->handle, targ->encl_handle, targ->encl_slot);
sys/dev/mpr/mprvar.h
861
*mpi_reply, Mpi26PCIeDevicePage0_t *config_page, u32 form, u16 handle);
sys/dev/mpr/mprvar.h
863
*mpi_reply, Mpi26PCIeDevicePage2_t *config_page, u32 form, u16 handle);
sys/dev/mpr/mprvar.h
868
u16 handle);
sys/dev/mpr/mprvar.h
896
u16 handle);
sys/dev/mpr/mprvar.h
908
void mprsas_prepare_remove(struct mprsas_softc *sassc, uint16_t handle);
sys/dev/mpr/mprvar.h
909
void mprsas_prepare_volume_remove(struct mprsas_softc *sassc, uint16_t handle);
sys/dev/mps/mps.c
2582
mps_evt_callback_t *cb, void *data, struct mps_event_handle **handle)
sys/dev/mps/mps.c
2593
*handle = eh;
sys/dev/mps/mps.c
2599
mps_update_events(struct mps_softc *sc, struct mps_event_handle *handle,
sys/dev/mps/mps.c
2609
if ((mask != NULL) && (handle != NULL))
sys/dev/mps/mps.c
2610
bcopy(mask, &handle->mask[0], sizeof(u32) *
sys/dev/mps/mps.c
2617
sc->event_mask[i] &= ~handle->mask[i];
sys/dev/mps/mps.c
2707
mps_deregister_events(struct mps_softc *sc, struct mps_event_handle *handle)
sys/dev/mps/mps.c
2710
TAILQ_REMOVE(&sc->event_list, handle, eh_list);
sys/dev/mps/mps.c
2711
free(handle, M_MPT2);
sys/dev/mps/mps_config.c
1238
*mpi_reply, Mpi2RaidVolPage1_t *config_page, u32 form, u16 handle)
sys/dev/mps/mps_config.c
1310
request->PageAddress = htole32(form | handle);
sys/dev/mps/mps_config.c
840
*mpi_reply, Mpi2SasDevicePage0_t *config_page, u32 form, u16 handle)
sys/dev/mps/mps_config.c
914
request->PageAddress = htole32(form | handle);
sys/dev/mps/mps_mapping.c
2198
mps_mapping_get_tid(struct mps_softc *sc, uint64_t sas_address, u16 handle)
sys/dev/mps/mps_mapping.c
2205
if (mt_entry->dev_handle == handle && mt_entry->physical_id ==
sys/dev/mps/mps_mapping.c
2223
mps_mapping_get_tid_from_handle(struct mps_softc *sc, u16 handle)
sys/dev/mps/mps_mapping.c
2225
return (_mapping_get_mt_idx_from_handle(sc, handle));
sys/dev/mps/mps_mapping.c
292
_mapping_get_enc_idx_from_handle(struct mps_softc *sc, u16 handle)
sys/dev/mps/mps_mapping.c
301
if (et_entry->enc_handle == handle)
sys/dev/mps/mps_mapping.c
448
_mapping_get_mt_idx_from_handle(struct mps_softc *sc, u16 handle)
sys/dev/mps/mps_mapping.c
455
if (mt_entry->dev_handle == handle)
sys/dev/mps/mps_mapping.h
72
u64 *sas_address, u16 handle, u32 device_info, u8 *is_SATA_SSD);
sys/dev/mps/mps_sas.c
1141
sc->sassc->targets[i].handle = 0x0;
sys/dev/mps/mps_sas.c
1349
if (target->handle == 0) {
sys/dev/mps/mps_sas.c
1356
req->DevHandle = htole16(target->handle);
sys/dev/mps/mps_sas.c
141
mpssas_find_target_by_handle(struct mpssas_softc *sassc, int start, uint16_t handle)
sys/dev/mps/mps_sas.c
148
if (target->handle == handle)
sys/dev/mps/mps_sas.c
1491
if (targ->handle == 0) {
sys/dev/mps/mps_sas.c
1502
req->DevHandle = htole16(targ->handle);
sys/dev/mps/mps_sas.c
1573
targ->tid, targ->handle, ccb->ccb_h.timeout,
sys/dev/mps/mps_sas.c
1638
if (targ->handle == 0x0) {
sys/dev/mps/mps_sas.c
1727
req->DevHandle = htole16(targ->handle);
sys/dev/mps/mps_sas.c
1864
cm->cm_desc.SCSIIO.DevHandle = htole16(targ->handle);
sys/dev/mps/mps_sas.c
2390
cm->cm_targ->tid, cm->cm_targ->handle);
sys/dev/mps/mps_sas.c
2919
if (targ->handle == 0x0) {
sys/dev/mps/mps_sas.c
2971
"parent handle!\n", __func__, targ->handle);
sys/dev/mps/mps_sas.c
2982
"parent target!\n", __func__, targ->handle);
sys/dev/mps/mps_sas.c
2992
targ->handle, parent_target->handle);
sys/dev/mps/mps_sas.c
3004
targ->handle, targ->parent_handle);
sys/dev/mps/mps_sas.c
3012
__func__, targ->handle, targ->parent_handle);
sys/dev/mps/mps_sas.c
3024
__func__, targ->handle);
sys/dev/mps/mps_sas.c
3063
req->DevHandle = htole16(targ->handle);
sys/dev/mps/mps_sas.c
3182
if (target->handle == 0)
sys/dev/mps/mps_sas.c
344
uint16_t handle;
sys/dev/mps/mps_sas.c
349
handle = (uint16_t)(uintptr_t)tm->cm_complete_data;
sys/dev/mps/mps_sas.c
356
handle);
sys/dev/mps/mps_sas.c
365
le16toh(reply->IOCStatus), handle);
sys/dev/mps/mps_sas.c
374
"clearing target %u handle 0x%04x\n", targ->tid, handle);
sys/dev/mps/mps_sas.c
385
targ->handle = 0x0;
sys/dev/mps/mps_sas.c
403
mpssas_prepare_volume_remove(struct mpssas_softc *sassc, uint16_t handle)
sys/dev/mps/mps_sas.c
425
targ = mpssas_find_target_by_handle(sassc, 0, handle);
sys/dev/mps/mps_sas.c
430
"%s %d : invalid handle 0x%x \n", __func__,__LINE__, handle);
sys/dev/mps/mps_sas.c
446
req->DevHandle = targ->handle;
sys/dev/mps/mps_sas.c
455
tm->cm_complete_data = (void *)(uintptr_t)handle;
sys/dev/mps/mps_sas.c
474
mpssas_prepare_remove(struct mpssas_softc *sassc, uint16_t handle)
sys/dev/mps/mps_sas.c
485
targ = mpssas_find_target_by_handle(sassc, 0, handle);
sys/dev/mps/mps_sas.c
490
"%s : invalid handle 0x%x \n", __func__, handle);
sys/dev/mps/mps_sas.c
506
req->DevHandle = htole16(targ->handle);
sys/dev/mps/mps_sas.c
515
cm->cm_complete_data = (void *)(uintptr_t)handle;
sys/dev/mps/mps_sas.c
530
uint16_t handle;
sys/dev/mps/mps_sas.c
535
handle = (uint16_t)(uintptr_t)tm->cm_complete_data;
sys/dev/mps/mps_sas.c
547
handle);
sys/dev/mps/mps_sas.c
554
handle);
sys/dev/mps/mps_sas.c
563
le16toh(reply->IOCStatus), handle);
sys/dev/mps/mps_sas.c
576
req->DevHandle = htole16(handle);
sys/dev/mps/mps_sas.c
580
tm->cm_complete_data = (void *)(uintptr_t)handle;
sys/dev/mps/mps_sas.c
590
targ->tid, handle);
sys/dev/mps/mps_sas.c
598
targ->tid, handle);
sys/dev/mps/mps_sas.c
605
uint16_t handle;
sys/dev/mps/mps_sas.c
612
handle = (uint16_t)(uintptr_t)tm->cm_complete_data;
sys/dev/mps/mps_sas.c
631
handle);
sys/dev/mps/mps_sas.c
639
"%s NULL reply removing device 0x%04x\n", __func__, handle);
sys/dev/mps/mps_sas.c
646
handle, le16toh(reply->IOCStatus));
sys/dev/mps/mps_sas.c
656
targ->handle = 0x0;
sys/dev/mps/mps_sas.c
967
if (targ->handle == 0x0) {
sys/dev/mps/mps_sas.h
42
uint16_t handle;
sys/dev/mps/mps_sas_lsi.c
1029
mpssas_volume_add(struct mps_softc *sc, u16 handle)
sys/dev/mps/mps_sas_lsi.c
1041
mps_config_get_volume_wwid(sc, handle, &wwid);
sys/dev/mps/mps_sas_lsi.c
1049
id = mps_mapping_get_raid_tid(sc, wwid, handle);
sys/dev/mps/mps_sas_lsi.c
1052
"WWID 0x%016llx\n", __func__, handle,
sys/dev/mps/mps_sas_lsi.c
1060
targ->handle = handle;
sys/dev/mps/mps_sas_lsi.c
1108
if (target->handle == 0x0) {
sys/dev/mps/mps_sas_lsi.c
1136
"handle %d\n", path_str, target->handle);
sys/dev/mps/mps_sas_lsi.c
118
static int mpssas_add_device(struct mps_softc *sc, u16 handle, u8 linkrate);
sys/dev/mps/mps_sas_lsi.c
119
static int mpssas_get_sata_identify(struct mps_softc *sc, u16 handle,
sys/dev/mps/mps_sas_lsi.c
125
u64 *sas_address, u16 handle, u32 device_info, u8 *is_SATA_SSD);
sys/dev/mps/mps_sas_lsi.c
127
u16 handle);
sys/dev/mps/mps_sas_lsi.c
1299
if (target->handle == 0x0) {
sys/dev/mps/mps_sas_lsi.c
320
targ->handle = 0x0;
sys/dev/mps/mps_sas_lsi.c
611
mpssas_add_device(struct mps_softc *sc, u16 handle, u8 linkrate){
sys/dev/mps/mps_sas_lsi.c
629
MPI2_SAS_DEVICE_PGAD_FORM_HANDLE, handle) != 0) {
sys/dev/mps/mps_sas_lsi.c
632
handle, mpi_reply.IOCStatus);
sys/dev/mps/mps_sas_lsi.c
663
"page0 = %jx\n", handle, sas_address);
sys/dev/mps/mps_sas_lsi.c
672
handle, device_info, &is_SATA_SSD);
sys/dev/mps/mps_sas_lsi.c
677
__func__, handle);
sys/dev/mps/mps_sas_lsi.c
680
"from SATA device = %jx\n", handle, sas_address);
sys/dev/mps/mps_sas_lsi.c
699
id = mps_mapping_get_tid(sc, sas_address, handle);
sys/dev/mps/mps_sas_lsi.c
705
__FILE__, __LINE__, __func__, handle);
sys/dev/mps/mps_sas_lsi.c
729
if (targ->handle != 0x0) {
sys/dev/mps/mps_sas_lsi.c
731
"target id %d handle 0x%04x\n", id, targ->handle);
sys/dev/mps/mps_sas_lsi.c
743
targ->handle = handle;
sys/dev/mps/mps_sas_lsi.c
766
targ->handle, targ->encl_handle, targ->encl_slot);
sys/dev/mps/mps_sas_lsi.c
812
u64 *sas_address, u16 handle, u32 device_info, u8 *is_SATA_SSD)
sys/dev/mps/mps_sas_lsi.c
826
rc = mpssas_get_sata_identify(sc, handle, &mpi_reply,
sys/dev/mps/mps_sas_lsi.c
855
__func__, handle, try_count);
sys/dev/mps/mps_sas_lsi.c
858
__func__, handle);
sys/dev/mps/mps_sas_lsi.c
906
mpssas_get_sata_identify(struct mps_softc *sc, u16 handle,
sys/dev/mps/mps_sas_lsi.c
927
mpi_request->DevHandle = htole16(handle);
sys/dev/mps/mps_sas_lsi.c
974
handle, reply->IOCStatus);
sys/dev/mps/mpsvar.h
780
u16 handle);
sys/dev/mps/mpsvar.h
805
u16 handle);
sys/dev/mps/mpsvar.h
819
void mpssas_prepare_remove(struct mpssas_softc *sassc, uint16_t handle);
sys/dev/mps/mpsvar.h
820
void mpssas_prepare_volume_remove(struct mpssas_softc *sassc, uint16_t handle);
sys/dev/mpt/mpt.h
514
uint16_t handle;
sys/dev/mpt/mpt.h
838
#define MPT_CBI(handle) (handle >> MPT_CONTEXT_CB_SHIFT)
sys/dev/mpt/mpt_cam.c
651
phyinfo->handle =
sys/dev/mpt/mpt_cam.c
783
phyinfo->handle);
sys/dev/mvs/mvs.h
597
void *handle;
sys/dev/mvs/mvs_pci.c
189
ctlr->irq.handle);
sys/dev/mvs/mvs_pci.c
316
mvs_intr, ctlr, &ctlr->irq.handle))) {
sys/dev/mvs/mvs_soc.c
188
ctlr->irq.handle);
sys/dev/mvs/mvs_soc.c
280
mvs_intr, ctlr, &ctlr->irq.handle))) {
sys/dev/netmap/netmap_freebsd.c
1030
netmap_dev_pager_path(void *handle, char *path, size_t len)
sys/dev/netmap/netmap_freebsd.c
1032
struct netmap_vm_handle_t *vmh = handle;
sys/dev/netmap/netmap_freebsd.c
959
netmap_dev_pager_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/dev/netmap/netmap_freebsd.c
962
struct netmap_vm_handle_t *vmh = handle;
sys/dev/netmap/netmap_freebsd.c
966
handle, (intmax_t)size, prot, (intmax_t)foff);
sys/dev/netmap/netmap_freebsd.c
975
netmap_dev_pager_dtor(void *handle)
sys/dev/netmap/netmap_freebsd.c
977
struct netmap_vm_handle_t *vmh = handle;
sys/dev/netmap/netmap_freebsd.c
982
nm_prinf("handle %p", handle);
sys/dev/netmap/netmap_freebsd.c
993
struct netmap_vm_handle_t *vmh = object->handle;
sys/dev/ntb/ntb_hw/ntb_hw_amd.c
135
bus_space_read_8(bus_space_tag_t tag, bus_space_handle_t handle,
sys/dev/ntb/ntb_hw/ntb_hw_amd.c
139
return (bus_space_read_4(tag, handle, offset) |
sys/dev/ntb/ntb_hw/ntb_hw_amd.c
140
((uint64_t)bus_space_read_4(tag, handle, offset + 4)) << 32);
sys/dev/ntb/ntb_hw/ntb_hw_amd.c
144
bus_space_write_8(bus_space_tag_t tag, bus_space_handle_t handle,
sys/dev/ntb/ntb_hw/ntb_hw_amd.c
148
bus_space_write_4(tag, handle, offset, val);
sys/dev/ntb/ntb_hw/ntb_hw_amd.c
149
bus_space_write_4(tag, handle, offset + 4, val >> 32);
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
277
bus_space_read_8(bus_space_tag_t tag, bus_space_handle_t handle,
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
281
return (bus_space_read_4(tag, handle, offset) |
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
282
((uint64_t)bus_space_read_4(tag, handle, offset + 4)) << 32);
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
286
bus_space_write_8(bus_space_tag_t tag, bus_space_handle_t handle,
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
290
bus_space_write_4(tag, handle, offset, val);
sys/dev/ntb/ntb_hw/ntb_hw_intel.c
291
bus_space_write_4(tag, handle, offset + 4, val >> 32);
sys/dev/nvdimm/nvdimm.c
106
ACPI_HANDLE handle;
sys/dev/nvdimm/nvdimm.c
114
handle = nvdimm_root_get_acpi_handle(nv->nv_dev);
sys/dev/nvdimm/nvdimm.c
117
handle == NULL)
sys/dev/nvdimm/nvdimm.c
131
status = acpi_EvaluateDSM(handle,
sys/dev/nvdimm/nvdimm.c
70
ACPI_HANDLE handle;
sys/dev/nvdimm/nvdimm.c
76
handle = nvdimm_root_get_acpi_handle(nv->nv_dev);
sys/dev/nvdimm/nvdimm.c
77
if (handle == NULL)
sys/dev/nvdimm/nvdimm.c
81
status = acpi_EvaluateDSM(handle, (uint8_t *)&intel_nvdimm_dsm_uuid,
sys/dev/nvdimm/nvdimm_acpi.c
245
ACPI_HANDLE handle;
sys/dev/nvdimm/nvdimm_acpi.c
247
handle = nvdimm_root_get_acpi_handle(child);
sys/dev/nvdimm/nvdimm_acpi.c
248
if (handle != NULL)
sys/dev/nvdimm/nvdimm_acpi.c
249
sbuf_printf(sb, "handle=%s", acpi_name(handle));
sys/dev/nvdimm/nvdimm_acpi.c
62
find_dimm(ACPI_HANDLE handle, UINT32 nesting_level, void *context,
sys/dev/nvdimm/nvdimm_acpi.c
69
status = AcpiGetObjectInfo(handle, &device_info);
sys/dev/nvdimm/nvdimm_acpi.c
73
*(ACPI_HANDLE *)return_value = handle;
sys/dev/pci/controller/pci_n1sdp.c
197
ACPI_HANDLE handle;
sys/dev/pci/controller/pci_n1sdp.c
206
handle = acpi_get_handle(dev);
sys/dev/pci/controller/pci_n1sdp.c
209
status = acpi_GetInteger(handle, "_SEG", &sc->acpi.segment);
sys/dev/pci/pci_host_generic_acpi.c
226
ACPI_HANDLE handle;
sys/dev/pci/pci_host_generic_acpi.c
232
handle = acpi_get_handle(dev);
sys/dev/pci/pci_host_generic_acpi.c
261
status = acpi_GetInteger(handle, "_CBA", &val);
sys/dev/pci/pci_host_generic_acpi.c
284
ACPI_HANDLE handle;
sys/dev/pci/pci_host_generic_acpi.c
289
handle = acpi_get_handle(dev);
sys/dev/pci/pci_host_generic_acpi.c
294
status = acpi_GetInteger(handle, "_BBN", &sc->base.bus_start);
sys/dev/pci/pci_host_generic_acpi.c
302
status = acpi_GetInteger(handle, "_SEG", &sc->base.ecam);
sys/dev/pci/pci_host_generic_acpi.c
309
status = AcpiWalkResources(handle, "_CRS",
sys/dev/pci/pci_host_generic_acpi.c
315
if (ACPI_FAILURE(acpi_GetInteger(handle, "_CCA", &sc->base.coherent)))
sys/dev/pci/pci_host_generic_acpi.c
350
ACPI_HANDLE handle;
sys/dev/pci/pci_host_generic_acpi.c
354
handle = acpi_get_handle(dev);
sys/dev/pci/pci_host_generic_acpi.c
355
*result = (uintptr_t)handle;
sys/dev/pms/RefTisa/sallsdk/api/sa.h
3311
void *handle;
sys/dev/pms/RefTisa/sallsdk/spc/sampirsp.c
7081
agEvent.handle = (void *) ((bitptr) (flags >> 24));
sys/dev/pms/RefTisa/sallsdk/spc/sampirsp.c
7097
agEvent.handle = (void *) ((bitptr) (flags >> 24));
sys/dev/pms/RefTisa/sallsdk/spc/sampirsp.c
7112
agEvent.handle = (void *) ((bitptr) (flags >> 24));
sys/dev/pms/RefTisa/sallsdk/spc/sampirsp.c
7128
agEvent.handle = (void *) ((bitptr) (flags >> 24));
sys/dev/pms/RefTisa/sallsdk/spc/sampirsp.c
7227
agEvent.handle = (void *) ((bitptr) (flags >> 24));
sys/dev/pms/RefTisa/sallsdk/spc/sampirsp.c
7411
agEvent.handle = agNULL;
sys/dev/pms/RefTisa/tisa/sassata/common/ossacmnapi.c
3200
encryptEventData.pData = pEncryptCBData->handle;
sys/dev/pst/pst-iop.c
161
NULL, iop_intr, sc, &sc->handle);
sys/dev/pst/pst-iop.h
55
void *handle;
sys/dev/pst/pst-pci.c
110
bus_teardown_intr(dev, sc->r_irq, sc->handle);
sys/dev/qat/include/common/adf_common_drv.h
208
void qat_hal_deinit(struct icp_qat_fw_loader_handle *handle);
sys/dev/qat/include/common/adf_common_drv.h
209
int qat_hal_start(struct icp_qat_fw_loader_handle *handle);
sys/dev/qat/include/common/adf_common_drv.h
210
void qat_hal_stop(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
213
void qat_hal_reset(struct icp_qat_fw_loader_handle *handle);
sys/dev/qat/include/common/adf_common_drv.h
214
int qat_hal_clr_reset(struct icp_qat_fw_loader_handle *handle);
sys/dev/qat/include/common/adf_common_drv.h
215
void qat_hal_set_live_ctx(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
218
int qat_hal_check_ae_active(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
220
int qat_hal_set_ae_lm_mode(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
224
void qat_hal_set_ae_tindex_mode(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
227
void qat_hal_set_ae_scs_mode(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
230
int qat_hal_set_ae_ctx_mode(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
233
int qat_hal_set_ae_nn_mode(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
236
void qat_hal_set_pc(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
240
void qat_hal_wr_uwords(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
245
void qat_hal_wr_coalesce_uwords(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
251
void qat_hal_wr_umem(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
257
int qat_hal_batch_wr_lm(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
260
int qat_hal_init_gpr(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
266
int qat_hal_init_wr_xfer(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
272
int qat_hal_init_rd_xfer(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
278
int qat_hal_init_nn(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
283
int qat_hal_wr_lm(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
287
int qat_uclo_wr_all_uimage(struct icp_qat_fw_loader_handle *handle);
sys/dev/qat/include/common/adf_common_drv.h
288
void qat_uclo_del_obj(struct icp_qat_fw_loader_handle *handle);
sys/dev/qat/include/common/adf_common_drv.h
289
void qat_uclo_del_mof(struct icp_qat_fw_loader_handle *handle);
sys/dev/qat/include/common/adf_common_drv.h
290
int qat_uclo_wr_mimage(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
293
int qat_uclo_map_obj(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/adf_common_drv.h
299
int qat_uclo_set_cfg_ae_mask(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/include/common/icp_qat_hal.h
144
#define CAP_CSR_ADDR(csr) (csr + handle->hal_cap_g_ctl_csr_addr_v)
sys/dev/qat/include/common/icp_qat_hal.h
145
#define SET_CAP_CSR(handle, csr, val) \
sys/dev/qat/include/common/icp_qat_hal.h
146
ADF_CSR_WR(handle->hal_misc_addr_v, CAP_CSR_ADDR(csr), val)
sys/dev/qat/include/common/icp_qat_hal.h
147
#define GET_CAP_CSR(handle, csr) \
sys/dev/qat/include/common/icp_qat_hal.h
148
ADF_CSR_RD(handle->hal_misc_addr_v, CAP_CSR_ADDR(csr))
sys/dev/qat/include/common/icp_qat_hal.h
149
#define SET_GLB_CSR(handle, csr, val) \
sys/dev/qat/include/common/icp_qat_hal.h
151
u32 dev_id = pci_get_device(GET_DEV((handle)->accel_dev)); \
sys/dev/qat/include/common/icp_qat_hal.h
153
SET_CAP_CSR((handle), (csr), (val)) : \
sys/dev/qat/include/common/icp_qat_hal.h
154
SET_CAP_CSR((handle), (csr) + GLOBAL_CSR, val); \
sys/dev/qat/include/common/icp_qat_hal.h
156
#define GET_GLB_CSR(handle, csr) \
sys/dev/qat/include/common/icp_qat_hal.h
158
u32 dev_id = pci_get_device(GET_DEV((handle)->accel_dev)); \
sys/dev/qat/include/common/icp_qat_hal.h
160
GET_CAP_CSR((handle), (csr)) : \
sys/dev/qat/include/common/icp_qat_hal.h
161
GET_CAP_CSR((handle), (csr) + GLOBAL_CSR); \
sys/dev/qat/include/common/icp_qat_hal.h
163
#define SET_FCU_CSR(handle, csr, val) \
sys/dev/qat/include/common/icp_qat_hal.h
165
typeof(handle) handle_ = (handle); \
sys/dev/qat/include/common/icp_qat_hal.h
179
#define GET_FCU_CSR(handle, csr) \
sys/dev/qat/include/common/icp_qat_hal.h
181
typeof(handle) handle_ = (handle); \
sys/dev/qat/include/common/icp_qat_hal.h
190
#define AE_CSR(handle, ae) \
sys/dev/qat/include/common/icp_qat_hal.h
191
((handle)->hal_cap_ae_local_csr_addr_v + ((ae) << 12))
sys/dev/qat/include/common/icp_qat_hal.h
192
#define AE_CSR_ADDR(handle, ae, csr) (AE_CSR(handle, ae) + (0x3ff & (csr)))
sys/dev/qat/include/common/icp_qat_hal.h
193
#define SET_AE_CSR(handle, ae, csr, val) \
sys/dev/qat/include/common/icp_qat_hal.h
194
ADF_CSR_WR(handle->hal_misc_addr_v, AE_CSR_ADDR(handle, ae, csr), val)
sys/dev/qat/include/common/icp_qat_hal.h
195
#define GET_AE_CSR(handle, ae, csr) \
sys/dev/qat/include/common/icp_qat_hal.h
196
ADF_CSR_RD(handle->hal_misc_addr_v, AE_CSR_ADDR(handle, ae, csr))
sys/dev/qat/include/common/icp_qat_hal.h
197
#define AE_XFER(handle, ae) \
sys/dev/qat/include/common/icp_qat_hal.h
198
((handle)->hal_cap_ae_xfer_csr_addr_v + ((ae) << 12))
sys/dev/qat/include/common/icp_qat_hal.h
199
#define AE_XFER_ADDR(handle, ae, reg) \
sys/dev/qat/include/common/icp_qat_hal.h
200
(AE_XFER(handle, ae) + (((reg)&0xff) << 2))
sys/dev/qat/include/common/icp_qat_hal.h
201
#define SET_AE_XFER(handle, ae, reg, val) \
sys/dev/qat/include/common/icp_qat_hal.h
202
ADF_CSR_WR(handle->hal_misc_addr_v, AE_XFER_ADDR(handle, ae, reg), val)
sys/dev/qat/include/common/icp_qat_hal.h
203
#define SRAM_WRITE(handle, addr, val) \
sys/dev/qat/include/common/icp_qat_hal.h
204
ADF_CSR_WR((handle)->hal_sram_addr_v, addr, val)
sys/dev/qat/qat_api/qat_direct/include/icp_adf_init.h
112
CpaStatus icp_adf_subsystemUnregister(subservice_registation_handle_t *handle);
sys/dev/qat/qat_api/qat_direct/include/icp_adf_init.h
97
CpaStatus icp_adf_subsystemRegister(subservice_registation_handle_t *handle);
sys/dev/qat/qat_common/adf_freebsd_uio.c
110
struct adf_uio_open_bundle *handle = NULL;
sys/dev/qat/qat_common/adf_freebsd_uio.c
115
error = devfs_get_cdevpriv((void **)&handle);
sys/dev/qat/qat_common/adf_freebsd_uio.c
130
old_count = handle->num_mem_files;
sys/dev/qat/qat_common/adf_freebsd_uio.c
136
if (old_count == handle->num_mem_files) {
sys/dev/qat/qat_common/adf_freebsd_uio.c
139
handle->mem_files,
sys/dev/qat/qat_common/adf_freebsd_uio.c
141
free(handle->mem_files, M_QAT);
sys/dev/qat/qat_common/adf_freebsd_uio.c
143
handle->mem_files = new_files;
sys/dev/qat/qat_common/adf_freebsd_uio.c
145
handle->num_mem_files++;
sys/dev/qat/qat_common/adf_freebsd_uio.c
192
struct adf_uio_open_bundle *handle = NULL;
sys/dev/qat/qat_common/adf_freebsd_uio.c
201
handle = malloc(sizeof(*handle), M_QAT, M_WAITOK | M_ZERO);
sys/dev/qat/qat_common/adf_freebsd_uio.c
202
handle->accel = accel;
sys/dev/qat/qat_common/adf_freebsd_uio.c
203
handle->bundle = bundle_nr;
sys/dev/qat/qat_common/adf_freebsd_uio.c
210
error = devfs_set_cdevpriv(handle, adf_release_bundle);
sys/dev/qat/qat_common/adf_freebsd_uio.c
212
adf_release_bundle(handle);
sys/dev/qat/qat_common/adf_freebsd_uio.c
263
struct adf_uio_open_bundle *handle = NULL;
sys/dev/qat/qat_common/adf_freebsd_uio.c
269
error = devfs_get_cdevpriv((void **)&handle);
sys/dev/qat/qat_common/adf_freebsd_uio.c
273
if (!handle->accel) {
sys/dev/qat/qat_common/adf_freebsd_uio.c
277
accel = handle->accel;
sys/dev/qat/qat_common/adf_freebsd_uio.c
284
bundle = &accel->bundle[handle->bundle];
sys/dev/qat/qat_common/adf_freebsd_uio.c
56
struct adf_uio_open_bundle *handle = NULL;
sys/dev/qat/qat_common/adf_freebsd_uio.c
61
handle = arg;
sys/dev/qat/qat_common/adf_freebsd_uio.c
62
accel = handle->accel;
sys/dev/qat/qat_common/adf_freebsd_uio.c
63
bundle = &accel->bundle[handle->bundle];
sys/dev/qat/qat_common/adf_freebsd_uio.c
69
for (i = 0; i < handle->num_mem_files; i++) {
sys/dev/qat/qat_common/adf_freebsd_uio.c
78
fdrop(handle->mem_files[i], NULL);
sys/dev/qat/qat_common/adf_freebsd_uio.c
80
free(handle->mem_files, M_QAT);
sys/dev/qat/qat_common/adf_freebsd_uio.c
97
free(handle, M_QAT);
sys/dev/qat/qat_common/qat_hal.c
1006
if ((reg_val & 0x2) && GET_FCU_CSR(handle, FCU_RAMBASE_ADDR_LO))
sys/dev/qat/qat_common/qat_hal.c
101
qat_hal_set_live_ctx(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
1021
struct icp_qat_fw_loader_handle *handle;
sys/dev/qat/qat_common/qat_hal.c
1031
handle = malloc(sizeof(*handle), M_QAT, M_WAITOK | M_ZERO);
sys/dev/qat/qat_common/qat_hal.c
1033
handle->hal_misc_addr_v = misc_bar->virt_addr;
sys/dev/qat/qat_common/qat_hal.c
1034
handle->accel_dev = accel_dev;
sys/dev/qat/qat_common/qat_hal.c
1035
if (pci_get_device(GET_DEV(handle->accel_dev)) ==
sys/dev/qat/qat_common/qat_hal.c
1037
IS_QAT_GEN3(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_hal.c
1040
if (IS_QAT_GEN3(pci_get_device(GET_DEV(handle->accel_dev))))
sys/dev/qat/qat_common/qat_hal.c
1043
handle->hal_sram_addr_v = sram_bar->virt_addr;
sys/dev/qat/qat_common/qat_hal.c
1044
handle->hal_sram_offset = sram_offset;
sys/dev/qat/qat_common/qat_hal.c
1045
handle->hal_sram_size = sram_bar->size;
sys/dev/qat/qat_common/qat_hal.c
1047
GET_CSR_OFFSET(pci_get_device(GET_DEV(handle->accel_dev)),
sys/dev/qat/qat_common/qat_hal.c
105
AE(handle, ae).live_ctx_mask = ctx_mask;
sys/dev/qat/qat_common/qat_hal.c
1051
handle->hal_cap_g_ctl_csr_addr_v = cap_offset;
sys/dev/qat/qat_common/qat_hal.c
1052
handle->hal_cap_ae_xfer_csr_addr_v = ae_offset;
sys/dev/qat/qat_common/qat_hal.c
1053
handle->hal_ep_csr_addr_v = ep_offset;
sys/dev/qat/qat_common/qat_hal.c
1054
handle->hal_cap_ae_local_csr_addr_v =
sys/dev/qat/qat_common/qat_hal.c
1055
((uintptr_t)handle->hal_cap_ae_xfer_csr_addr_v + LOCAL_TO_XFER_REG_OFFSET);
sys/dev/qat/qat_common/qat_hal.c
1056
handle->fw_auth = (pci_get_device(GET_DEV(handle->accel_dev)) ==
sys/dev/qat/qat_common/qat_hal.c
1060
if (handle->fw_auth && qat_hal_check_imr(handle)) {
sys/dev/qat/qat_common/qat_hal.c
1066
handle->hal_handle =
sys/dev/qat/qat_common/qat_hal.c
1067
malloc(sizeof(*handle->hal_handle), M_QAT, M_WAITOK | M_ZERO);
sys/dev/qat/qat_common/qat_hal.c
1068
handle->hal_handle->revision_id = accel_dev->accel_pci_dev.revid;
sys/dev/qat/qat_common/qat_hal.c
1069
handle->hal_handle->ae_mask = hw_data->ae_mask;
sys/dev/qat/qat_common/qat_hal.c
1070
handle->hal_handle->admin_ae_mask = hw_data->admin_ae_mask;
sys/dev/qat/qat_common/qat_hal.c
1071
handle->hal_handle->slice_mask = hw_data->accel_mask;
sys/dev/qat/qat_common/qat_hal.c
1072
handle->cfg_ae_mask = 0xFFFFFFFF;
sys/dev/qat/qat_common/qat_hal.c
1074
if (IS_QAT_GEN3(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_hal.c
1075
handle->hal_handle->upc_mask = 0xffff;
sys/dev/qat/qat_common/qat_hal.c
1076
handle->hal_handle->max_ustore = 0x2000;
sys/dev/qat/qat_common/qat_hal.c
1078
handle->hal_handle->upc_mask = 0x1ffff;
sys/dev/qat/qat_common/qat_hal.c
1079
handle->hal_handle->max_ustore = 0x4000;
sys/dev/qat/qat_common/qat_hal.c
1086
handle->hal_handle->aes[ae].free_addr = 0;
sys/dev/qat/qat_common/qat_hal.c
1087
handle->hal_handle->aes[ae].free_size =
sys/dev/qat/qat_common/qat_hal.c
1088
handle->hal_handle->max_ustore;
sys/dev/qat/qat_common/qat_hal.c
1089
handle->hal_handle->aes[ae].ustore_size =
sys/dev/qat/qat_common/qat_hal.c
1090
handle->hal_handle->max_ustore;
sys/dev/qat/qat_common/qat_hal.c
1091
handle->hal_handle->aes[ae].live_ctx_mask =
sys/dev/qat/qat_common/qat_hal.c
1095
handle->hal_handle->ae_max_num = max_en_ae_id + 1;
sys/dev/qat/qat_common/qat_hal.c
1097
if (qat_hal_clr_reset(handle)) {
sys/dev/qat/qat_common/qat_hal.c
110
qat_hal_rd_ae_csr(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
1102
qat_hal_clear_xfer(handle);
sys/dev/qat/qat_common/qat_hal.c
1103
if (!handle->fw_auth) {
sys/dev/qat/qat_common/qat_hal.c
1104
if (qat_hal_clear_gpr(handle)) {
sys/dev/qat/qat_common/qat_hal.c
1111
for_each_set_bit(ae, &ae_mask, handle->hal_handle->ae_max_num)
sys/dev/qat/qat_common/qat_hal.c
1115
qat_hal_rd_ae_csr(handle, ae, SIGNATURE_ENABLE, &csr_val);
sys/dev/qat/qat_common/qat_hal.c
1117
qat_hal_wr_ae_csr(handle, ae, SIGNATURE_ENABLE, csr_val);
sys/dev/qat/qat_common/qat_hal.c
1119
accel_dev->fw_loader->fw_loader = handle;
sys/dev/qat/qat_common/qat_hal.c
1123
free(handle->hal_handle, M_QAT);
sys/dev/qat/qat_common/qat_hal.c
1125
free(handle, M_QAT);
sys/dev/qat/qat_common/qat_hal.c
1130
qat_hal_deinit(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_hal.c
1132
if (!handle)
sys/dev/qat/qat_common/qat_hal.c
1134
free(handle->hal_handle, M_QAT);
sys/dev/qat/qat_common/qat_hal.c
1135
free(handle, M_QAT);
sys/dev/qat/qat_common/qat_hal.c
1139
qat_hal_start(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_hal.c
1145
unsigned long ae_mask = handle->hal_handle->ae_mask;
sys/dev/qat/qat_common/qat_hal.c
1148
if (handle->fw_auth) {
sys/dev/qat/qat_common/qat_hal.c
1149
for_each_set_bit(ae, &ae_mask, handle->hal_handle->ae_max_num)
sys/dev/qat/qat_common/qat_hal.c
1154
pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_hal.c
1162
SET_FCU_CSR(handle, fcu_ctl_csr, FCU_CTRL_CMD_START);
sys/dev/qat/qat_common/qat_hal.c
1165
fcu_sts = GET_FCU_CSR(handle, fcu_sts_csr);
sys/dev/qat/qat_common/qat_hal.c
1174
for_each_set_bit(ae, &ae_mask, handle->hal_handle->ae_max_num)
sys/dev/qat/qat_common/qat_hal.c
1176
qat_hal_put_wakeup_event(handle,
sys/dev/qat/qat_common/qat_hal.c
118
*value = GET_AE_CSR(handle, ae, csr);
sys/dev/qat/qat_common/qat_hal.c
1181
handle->accel_dev))) ?
sys/dev/qat/qat_common/qat_hal.c
1184
qat_hal_enable_ctx(handle, ae, ICP_QAT_UCLO_AE_ALL_CTX);
sys/dev/qat/qat_common/qat_hal.c
119
if (!(GET_AE_CSR(handle, ae, LOCAL_CSR_STATUS) & LCS_STATUS))
sys/dev/qat/qat_common/qat_hal.c
1192
qat_hal_stop(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
1196
if (!handle->fw_auth)
sys/dev/qat/qat_common/qat_hal.c
1197
qat_hal_disable_ctx(handle, ae, ctx_mask);
sys/dev/qat/qat_common/qat_hal.c
1201
qat_hal_set_pc(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
1206
qat_hal_wr_indr_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
1210
handle->hal_handle->upc_mask & upc);
sys/dev/qat/qat_common/qat_hal.c
1214
qat_hal_get_uwords(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
1224
qat_hal_rd_ae_csr(handle, ae, AE_MISC_CONTROL, &misc_control);
sys/dev/qat/qat_common/qat_hal.c
1227
qat_hal_wr_ae_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
1231
qat_hal_rd_ae_csr(handle, ae, USTORE_ADDRESS, &ustore_addr);
sys/dev/qat/qat_common/qat_hal.c
1234
qat_hal_wr_ae_csr(handle, ae, USTORE_ADDRESS, uaddr);
sys/dev/qat/qat_common/qat_hal.c
1236
qat_hal_rd_ae_csr(handle, ae, USTORE_DATA_LOWER, &uwrd_lo);
sys/dev/qat/qat_common/qat_hal.c
1237
qat_hal_rd_ae_csr(handle, ae, USTORE_DATA_UPPER, &uwrd_hi);
sys/dev/qat/qat_common/qat_hal.c
1243
qat_hal_wr_ae_csr(handle, ae, AE_MISC_CONTROL, misc_control);
sys/dev/qat/qat_common/qat_hal.c
1244
qat_hal_wr_ae_csr(handle, ae, USTORE_ADDRESS, ustore_addr);
sys/dev/qat/qat_common/qat_hal.c
1248
qat_hal_wr_umem(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
1256
qat_hal_rd_ae_csr(handle, ae, USTORE_ADDRESS, &ustore_addr);
sys/dev/qat/qat_common/qat_hal.c
1258
qat_hal_wr_ae_csr(handle, ae, USTORE_ADDRESS, uaddr);
sys/dev/qat/qat_common/qat_hal.c
1268
qat_hal_wr_ae_csr(handle, ae, USTORE_DATA_LOWER, uwrd_lo);
sys/dev/qat/qat_common/qat_hal.c
1269
qat_hal_wr_ae_csr(handle, ae, USTORE_DATA_UPPER, uwrd_hi);
sys/dev/qat/qat_common/qat_hal.c
1271
qat_hal_wr_ae_csr(handle, ae, USTORE_ADDRESS, ustore_addr);
sys/dev/qat/qat_common/qat_hal.c
1276
qat_hal_exec_micro_inst(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
128
qat_hal_wr_ae_csr(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
1298
if (inst_num > handle->hal_handle->max_ustore || !micro_inst) {
sys/dev/qat/qat_common/qat_hal.c
1308
qat_hal_rd_indr_csr(handle, ae, ctx, LM_ADDR_0_INDIRECT, &ind_lm_addr0);
sys/dev/qat/qat_common/qat_hal.c
1309
qat_hal_rd_indr_csr(handle, ae, ctx, LM_ADDR_1_INDIRECT, &ind_lm_addr1);
sys/dev/qat/qat_common/qat_hal.c
1311
handle, ae, ctx, INDIRECT_LM_ADDR_0_BYTE_INDEX, &ind_lm_addr_byte0);
sys/dev/qat/qat_common/qat_hal.c
1313
handle, ae, ctx, INDIRECT_LM_ADDR_1_BYTE_INDEX, &ind_lm_addr_byte1);
sys/dev/qat/qat_common/qat_hal.c
1314
if (IS_QAT_GEN3_OR_GEN4(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_hal.c
1316
handle, ae, ctx, LM_ADDR_2_INDIRECT, &ind_lm_addr2);
sys/dev/qat/qat_common/qat_hal.c
1318
handle, ae, ctx, LM_ADDR_3_INDIRECT, &ind_lm_addr3);
sys/dev/qat/qat_common/qat_hal.c
1319
qat_hal_rd_indr_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
1324
qat_hal_rd_indr_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
1330
handle, ae, ctx, INDIRECT_T_INDEX, &ind_t_index);
sys/dev/qat/qat_common/qat_hal.c
1331
qat_hal_rd_indr_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
1337
qat_hal_rd_ae_csr(handle, ae, AE_MISC_CONTROL, &csr_val);
sys/dev/qat/qat_common/qat_hal.c
1340
qat_hal_wr_ae_csr(handle, ae, AE_MISC_CONTROL, newcsr_val);
sys/dev/qat/qat_common/qat_hal.c
1342
qat_hal_get_uwords(handle, ae, 0, inst_num, savuwords);
sys/dev/qat/qat_common/qat_hal.c
1343
qat_hal_get_wakeup_event(handle, ae, ctx, &wakeup_events);
sys/dev/qat/qat_common/qat_hal.c
1344
qat_hal_rd_indr_csr(handle, ae, ctx, CTX_STS_INDIRECT, &savpc);
sys/dev/qat/qat_common/qat_hal.c
1345
savpc = (savpc & handle->hal_handle->upc_mask) >> 0;
sys/dev/qat/qat_common/qat_hal.c
1346
qat_hal_rd_ae_csr(handle, ae, CTX_ENABLES, &ctx_enables);
sys/dev/qat/qat_common/qat_hal.c
1348
qat_hal_rd_ae_csr(handle, ae, CC_ENABLE, &savcc);
sys/dev/qat/qat_common/qat_hal.c
1349
qat_hal_rd_ae_csr(handle, ae, ACTIVE_CTX_STATUS, &savctx);
sys/dev/qat/qat_common/qat_hal.c
1350
qat_hal_rd_ae_csr(handle, ae, CTX_ARB_CNTL, &ctxarb_ctl);
sys/dev/qat/qat_common/qat_hal.c
1352
handle, ae, ctx, FUTURE_COUNT_SIGNAL_INDIRECT, &ind_cnt_sig);
sys/dev/qat/qat_common/qat_hal.c
1353
qat_hal_rd_indr_csr(handle, ae, ctx, CTX_SIG_EVENTS_INDIRECT, &ind_sig);
sys/dev/qat/qat_common/qat_hal.c
1354
qat_hal_rd_ae_csr(handle, ae, CTX_SIG_EVENTS_ACTIVE, &act_sig);
sys/dev/qat/qat_common/qat_hal.c
1356
qat_hal_wr_ae_csr(handle, ae, CTX_ENABLES, ctx_enables);
sys/dev/qat/qat_common/qat_hal.c
1357
qat_hal_wr_uwords(handle, ae, 0, inst_num, micro_inst);
sys/dev/qat/qat_common/qat_hal.c
1358
qat_hal_wr_indr_csr(handle, ae, (1 << ctx), CTX_STS_INDIRECT, 0);
sys/dev/qat/qat_common/qat_hal.c
1359
qat_hal_wr_ae_csr(handle, ae, ACTIVE_CTX_STATUS, ctx & ACS_ACNO);
sys/dev/qat/qat_common/qat_hal.c
136
SET_AE_CSR(handle, ae, csr, value);
sys/dev/qat/qat_common/qat_hal.c
1361
qat_hal_wr_ae_csr(handle, ae, CC_ENABLE, savcc & 0xffffdfff);
sys/dev/qat/qat_common/qat_hal.c
1362
qat_hal_put_wakeup_event(handle, ae, (1 << ctx), XCWE_VOLUNTARY);
sys/dev/qat/qat_common/qat_hal.c
1363
qat_hal_wr_indr_csr(handle, ae, (1 << ctx), CTX_SIG_EVENTS_INDIRECT, 0);
sys/dev/qat/qat_common/qat_hal.c
1364
qat_hal_wr_ae_csr(handle, ae, CTX_SIG_EVENTS_ACTIVE, 0);
sys/dev/qat/qat_common/qat_hal.c
1365
qat_hal_enable_ctx(handle, ae, (1 << ctx));
sys/dev/qat/qat_common/qat_hal.c
1367
if (qat_hal_wait_cycles(handle, ae, max_cycle, 1) != 0) {
sys/dev/qat/qat_common/qat_hal.c
137
if (!(GET_AE_CSR(handle, ae, LOCAL_CSR_STATUS) & LCS_STATUS))
sys/dev/qat/qat_common/qat_hal.c
1375
handle, ae, ctx, CTX_STS_INDIRECT, &ctx_status);
sys/dev/qat/qat_common/qat_hal.c
1376
*endpc = ctx_status & handle->hal_handle->upc_mask;
sys/dev/qat/qat_common/qat_hal.c
1379
qat_hal_disable_ctx(handle, ae, (1 << ctx));
sys/dev/qat/qat_common/qat_hal.c
1381
qat_hal_wr_uwords(handle, ae, 0, inst_num, savuwords);
sys/dev/qat/qat_common/qat_hal.c
1382
qat_hal_put_wakeup_event(handle, ae, (1 << ctx), wakeup_events);
sys/dev/qat/qat_common/qat_hal.c
1383
qat_hal_wr_indr_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
1387
handle->hal_handle->upc_mask & savpc);
sys/dev/qat/qat_common/qat_hal.c
1388
qat_hal_rd_ae_csr(handle, ae, AE_MISC_CONTROL, &csr_val);
sys/dev/qat/qat_common/qat_hal.c
1391
qat_hal_wr_ae_csr(handle, ae, AE_MISC_CONTROL, newcsr_val);
sys/dev/qat/qat_common/qat_hal.c
1392
qat_hal_wr_ae_csr(handle, ae, CC_ENABLE, savcc);
sys/dev/qat/qat_common/qat_hal.c
1393
qat_hal_wr_ae_csr(handle, ae, ACTIVE_CTX_STATUS, savctx & ACS_ACNO);
sys/dev/qat/qat_common/qat_hal.c
1394
qat_hal_wr_ae_csr(handle, ae, CTX_ARB_CNTL, ctxarb_ctl);
sys/dev/qat/qat_common/qat_hal.c
1396
handle, ae, (1 << ctx), LM_ADDR_0_INDIRECT, ind_lm_addr0);
sys/dev/qat/qat_common/qat_hal.c
1398
handle, ae, (1 << ctx), LM_ADDR_1_INDIRECT, ind_lm_addr1);
sys/dev/qat/qat_common/qat_hal.c
1399
qat_hal_wr_indr_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
1404
qat_hal_wr_indr_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
1409
if (IS_QAT_GEN3_OR_GEN4(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_hal.c
1411
handle, ae, (1 << ctx), LM_ADDR_2_INDIRECT, ind_lm_addr2);
sys/dev/qat/qat_common/qat_hal.c
1413
handle, ae, (1 << ctx), LM_ADDR_3_INDIRECT, ind_lm_addr3);
sys/dev/qat/qat_common/qat_hal.c
1414
qat_hal_wr_indr_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
1419
qat_hal_wr_indr_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
1425
handle, ae, (1 << ctx), INDIRECT_T_INDEX, ind_t_index);
sys/dev/qat/qat_common/qat_hal.c
1426
qat_hal_wr_indr_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
1433
handle, ae, (1 << ctx), FUTURE_COUNT_SIGNAL_INDIRECT, ind_cnt_sig);
sys/dev/qat/qat_common/qat_hal.c
1435
handle, ae, (1 << ctx), CTX_SIG_EVENTS_INDIRECT, ind_sig);
sys/dev/qat/qat_common/qat_hal.c
1436
qat_hal_wr_ae_csr(handle, ae, CTX_SIG_EVENTS_ACTIVE, act_sig);
sys/dev/qat/qat_common/qat_hal.c
1437
qat_hal_wr_ae_csr(handle, ae, CTX_ENABLES, ctx_enables);
sys/dev/qat/qat_common/qat_hal.c
1444
qat_hal_rd_rel_reg(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
146
qat_hal_get_wakeup_event(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
1472
qat_hal_rd_ae_csr(handle, ae, AE_MISC_CONTROL, &csr_val);
sys/dev/qat/qat_common/qat_hal.c
1475
qat_hal_wr_ae_csr(handle, ae, AE_MISC_CONTROL, newcsr_val);
sys/dev/qat/qat_common/qat_hal.c
1476
qat_hal_rd_ae_csr(handle, ae, ACTIVE_CTX_STATUS, &savctx);
sys/dev/qat/qat_common/qat_hal.c
1477
qat_hal_rd_ae_csr(handle, ae, CTX_ARB_CNTL, &ctxarb_cntl);
sys/dev/qat/qat_common/qat_hal.c
1478
qat_hal_rd_ae_csr(handle, ae, CTX_ENABLES, &ctx_enables);
sys/dev/qat/qat_common/qat_hal.c
1481
qat_hal_wr_ae_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
1485
qat_hal_get_uwords(handle, ae, 0, 1, &savuword);
sys/dev/qat/qat_common/qat_hal.c
1486
qat_hal_wr_ae_csr(handle, ae, CTX_ENABLES, ctx_enables);
sys/dev/qat/qat_common/qat_hal.c
1487
qat_hal_rd_ae_csr(handle, ae, USTORE_ADDRESS, &ustore_addr);
sys/dev/qat/qat_common/qat_hal.c
1489
qat_hal_wr_ae_csr(handle, ae, USTORE_ADDRESS, uaddr);
sys/dev/qat/qat_common/qat_hal.c
1493
qat_hal_wr_ae_csr(handle, ae, USTORE_DATA_LOWER, uwrd_lo);
sys/dev/qat/qat_common/qat_hal.c
1494
qat_hal_wr_ae_csr(handle, ae, USTORE_DATA_UPPER, uwrd_hi);
sys/dev/qat/qat_common/qat_hal.c
1495
qat_hal_wr_ae_csr(handle, ae, USTORE_ADDRESS, uaddr);
sys/dev/qat/qat_common/qat_hal.c
1497
qat_hal_wait_cycles(handle, ae, 0x8, 0);
sys/dev/qat/qat_common/qat_hal.c
1503
qat_hal_rd_ae_csr(handle, ae, ALU_OUT, data);
sys/dev/qat/qat_common/qat_hal.c
1504
qat_hal_wr_ae_csr(handle, ae, USTORE_ADDRESS, ustore_addr);
sys/dev/qat/qat_common/qat_hal.c
1505
qat_hal_wr_uwords(handle, ae, 0, 1, &savuword);
sys/dev/qat/qat_common/qat_hal.c
1507
qat_hal_wr_ae_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
1511
qat_hal_wr_ae_csr(handle, ae, CTX_ARB_CNTL, ctxarb_cntl);
sys/dev/qat/qat_common/qat_hal.c
1512
qat_hal_rd_ae_csr(handle, ae, AE_MISC_CONTROL, &csr_val);
sys/dev/qat/qat_common/qat_hal.c
1515
qat_hal_wr_ae_csr(handle, ae, AE_MISC_CONTROL, newcsr_val);
sys/dev/qat/qat_common/qat_hal.c
1516
qat_hal_wr_ae_csr(handle, ae, CTX_ENABLES, ctx_enables);
sys/dev/qat/qat_common/qat_hal.c
1522
qat_hal_wr_rel_reg(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
153
qat_hal_rd_ae_csr(handle, ae, CSR_CTX_POINTER, &cur_ctx);
sys/dev/qat/qat_common/qat_hal.c
154
qat_hal_wr_ae_csr(handle, ae, CSR_CTX_POINTER, ctx);
sys/dev/qat/qat_common/qat_hal.c
155
qat_hal_rd_ae_csr(handle, ae, CTX_WAKEUP_EVENTS_INDIRECT, events);
sys/dev/qat/qat_common/qat_hal.c
156
qat_hal_wr_ae_csr(handle, ae, CSR_CTX_POINTER, cur_ctx);
sys/dev/qat/qat_common/qat_hal.c
1566
handle, ae, ctx, insts, num_inst, code_off, num_inst * 0x5, NULL);
sys/dev/qat/qat_common/qat_hal.c
160
qat_hal_wait_cycles(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
1611
qat_hal_exec_micro_init_lm(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
1623
qat_hal_rd_rel_reg(handle, ae, ctx, ICP_GPA_REL, 0, &gpra0);
sys/dev/qat/qat_common/qat_hal.c
1624
qat_hal_rd_rel_reg(handle, ae, ctx, ICP_GPA_REL, 0x1, &gpra1);
sys/dev/qat/qat_common/qat_hal.c
1625
qat_hal_rd_rel_reg(handle, ae, ctx, ICP_GPA_REL, 0x2, &gpra2);
sys/dev/qat/qat_common/qat_hal.c
1626
qat_hal_rd_rel_reg(handle, ae, ctx, ICP_GPB_REL, 0, &gprb0);
sys/dev/qat/qat_common/qat_hal.c
1627
qat_hal_rd_rel_reg(handle, ae, ctx, ICP_GPB_REL, 0x1, &gprb1);
sys/dev/qat/qat_common/qat_hal.c
1631
handle, ae, ctx, micro_inst, inst_num, 1, inst_num * 0x5, NULL);
sys/dev/qat/qat_common/qat_hal.c
1634
qat_hal_wr_rel_reg(handle, ae, ctx, ICP_GPA_REL, 0, gpra0);
sys/dev/qat/qat_common/qat_hal.c
1635
qat_hal_wr_rel_reg(handle, ae, ctx, ICP_GPA_REL, 0x1, gpra1);
sys/dev/qat/qat_common/qat_hal.c
1636
qat_hal_wr_rel_reg(handle, ae, ctx, ICP_GPA_REL, 0x2, gpra2);
sys/dev/qat/qat_common/qat_hal.c
1637
qat_hal_wr_rel_reg(handle, ae, ctx, ICP_GPB_REL, 0, gprb0);
sys/dev/qat/qat_common/qat_hal.c
1638
qat_hal_wr_rel_reg(handle, ae, ctx, ICP_GPB_REL, 0x1, gprb1);
sys/dev/qat/qat_common/qat_hal.c
1644
qat_hal_batch_wr_lm(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
1659
if ((unsigned int)alloc_inst_size > handle->hal_handle->max_ustore)
sys/dev/qat/qat_common/qat_hal.c
1660
alloc_inst_size = handle->hal_handle->max_ustore;
sys/dev/qat/qat_common/qat_hal.c
1679
stat = qat_hal_exec_micro_init_lm(handle,
sys/dev/qat/qat_common/qat_hal.c
1691
qat_hal_put_rel_rd_xfer(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
170
qat_hal_rd_ae_csr(handle, ae, PROFILE_COUNT, &base_cnt);
sys/dev/qat/qat_common/qat_hal.c
1704
status = qat_hal_rd_ae_csr(handle, ae, CTX_ENABLES, &ctx_enables);
sys/dev/qat/qat_common/qat_hal.c
1721
SET_AE_XFER(handle, ae, reg_addr, val);
sys/dev/qat/qat_common/qat_hal.c
1725
SET_AE_XFER(handle, ae, (reg_addr + dr_offset), val);
sys/dev/qat/qat_common/qat_hal.c
1735
qat_hal_put_rel_wr_xfer(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
174
qat_hal_rd_ae_csr(handle, ae, ACTIVE_CTX_STATUS, &csr);
sys/dev/qat/qat_common/qat_hal.c
1755
qat_hal_rd_ae_csr(handle, ae, CTX_ENABLES, &ctx_enables);
sys/dev/qat/qat_common/qat_hal.c
176
qat_hal_rd_ae_csr(handle, ae, PROFILE_COUNT, &cur_cnt);
sys/dev/qat/qat_common/qat_hal.c
1772
qat_hal_rd_rel_reg(handle, ae, ctx, ICP_GPB_REL, gprnum, &gprval);
sys/dev/qat/qat_common/qat_hal.c
1787
handle, ae, ctx, micro_inst, num_inst, code_off, dly, NULL);
sys/dev/qat/qat_common/qat_hal.c
1788
qat_hal_wr_rel_reg(handle, ae, ctx, ICP_GPB_REL, gprnum, gprval);
sys/dev/qat/qat_common/qat_hal.c
1793
qat_hal_put_rel_nn(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
1802
qat_hal_rd_ae_csr(handle, ae, CTX_ENABLES, &ctx_enables);
sys/dev/qat/qat_common/qat_hal.c
1804
qat_hal_wr_ae_csr(handle, ae, CTX_ENABLES, ctx_enables | CE_NN_MODE);
sys/dev/qat/qat_common/qat_hal.c
1806
stat = qat_hal_put_rel_wr_xfer(handle, ae, ctx, ICP_NEIGH_REL, nn, val);
sys/dev/qat/qat_common/qat_hal.c
1807
qat_hal_wr_ae_csr(handle, ae, CTX_ENABLES, ctx_enables);
sys/dev/qat/qat_common/qat_hal.c
1812
qat_hal_convert_abs_to_rel(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
1820
qat_hal_rd_ae_csr(handle, ae, CTX_ENABLES, &ctx_enables);
sys/dev/qat/qat_common/qat_hal.c
1834
qat_hal_init_gpr(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
1852
handle, ae, reg_num, &reg, &ctx);
sys/dev/qat/qat_common/qat_hal.c
1860
stat = qat_hal_wr_rel_reg(handle, ae, ctx, type, reg, regdata);
sys/dev/qat/qat_common/qat_hal.c
1871
qat_hal_init_wr_xfer(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
1889
handle, ae, reg_num, &reg, &ctx);
sys/dev/qat/qat_common/qat_hal.c
1898
handle, ae, ctx, type, reg, regdata);
sys/dev/qat/qat_common/qat_hal.c
1909
qat_hal_init_rd_xfer(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
1927
handle, ae, reg_num, &reg, &ctx);
sys/dev/qat/qat_common/qat_hal.c
1936
handle, ae, ctx, type, reg, regdata);
sys/dev/qat/qat_common/qat_hal.c
1947
qat_hal_init_nn(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
1956
if (IS_QAT_GEN4(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_hal.c
1966
stat = qat_hal_put_rel_nn(handle, ae, ctx, reg_num, regdata);
sys/dev/qat/qat_common/qat_hal.c
204
qat_hal_set_ae_ctx_mode(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
216
qat_hal_rd_ae_csr(handle, ae, CTX_ENABLES, &csr);
sys/dev/qat/qat_common/qat_hal.c
220
qat_hal_wr_ae_csr(handle, ae, CTX_ENABLES, new_csr);
sys/dev/qat/qat_common/qat_hal.c
225
qat_hal_set_ae_nn_mode(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
231
if (IS_QAT_GEN4(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_hal.c
236
qat_hal_rd_ae_csr(handle, ae, CTX_ENABLES, &csr);
sys/dev/qat/qat_common/qat_hal.c
243
qat_hal_wr_ae_csr(handle, ae, CTX_ENABLES, new_csr);
sys/dev/qat/qat_common/qat_hal.c
249
qat_hal_set_ae_lm_mode(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
256
qat_hal_rd_ae_csr(handle, ae, CTX_ENABLES, &csr);
sys/dev/qat/qat_common/qat_hal.c
281
qat_hal_wr_ae_csr(handle, ae, CTX_ENABLES, new_csr);
sys/dev/qat/qat_common/qat_hal.c
286
qat_hal_set_ae_tindex_mode(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
292
qat_hal_rd_ae_csr(handle, ae, CTX_ENABLES, &csr);
sys/dev/qat/qat_common/qat_hal.c
297
qat_hal_wr_ae_csr(handle, ae, CTX_ENABLES, new_csr);
sys/dev/qat/qat_common/qat_hal.c
301
qat_hal_set_ae_scs_mode(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
307
qat_hal_rd_ae_csr(handle, ae, AE_MISC_CONTROL, &csr);
sys/dev/qat/qat_common/qat_hal.c
311
qat_hal_wr_ae_csr(handle, ae, AE_MISC_CONTROL, new_csr);
sys/dev/qat/qat_common/qat_hal.c
370
qat_hal_get_ae_mask_gen4(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_hal.c
375
for (ae = 0; ae < handle->hal_handle->ae_max_num; ae++) {
sys/dev/qat/qat_common/qat_hal.c
376
if (handle->hal_handle->ae_mask & (1 << ae)) {
sys/dev/qat/qat_common/qat_hal.c
385
qat_hal_reset(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_hal.c
393
if (IS_QAT_GEN3(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_hal.c
396
if (handle->hal_handle->ae_mask > 0xffff)
sys/dev/qat/qat_common/qat_hal.c
398
} else if (IS_QAT_GEN4(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_hal.c
407
pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_hal.c
409
qat_hal_get_ae_mask_gen4(handle);
sys/dev/qat/qat_common/qat_hal.c
411
handle->hal_handle->slice_mask;
sys/dev/qat/qat_common/qat_hal.c
414
handle->hal_handle->ae_mask & 0xFFFF;
sys/dev/qat/qat_common/qat_hal.c
416
handle->hal_handle->slice_mask & 0x3F;
sys/dev/qat/qat_common/qat_hal.c
420
(handle->hal_handle->ae_mask >> AES_PER_CPP) &
sys/dev/qat/qat_common/qat_hal.c
423
(handle->hal_handle->slice_mask >> SLICES_PER_CPP) &
sys/dev/qat/qat_common/qat_hal.c
427
ae_reset_val[i] = GET_GLB_CSR(handle, ae_reset_csr[i]);
sys/dev/qat/qat_common/qat_hal.c
430
SET_GLB_CSR(handle, ae_reset_csr[i], ae_reset_val[i]);
sys/dev/qat/qat_common/qat_hal.c
435
qat_hal_wr_indr_csr(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
44
#define AE(handle, ae) ((handle)->hal_handle->aes[ae])
sys/dev/qat/qat_common/qat_hal.c
443
qat_hal_rd_ae_csr(handle, ae, CSR_CTX_POINTER, &cur_ctx);
sys/dev/qat/qat_common/qat_hal.c
448
qat_hal_wr_ae_csr(handle, ae, CSR_CTX_POINTER, ctx);
sys/dev/qat/qat_common/qat_hal.c
449
qat_hal_wr_ae_csr(handle, ae, ae_csr, csr_val);
sys/dev/qat/qat_common/qat_hal.c
452
qat_hal_wr_ae_csr(handle, ae, CSR_CTX_POINTER, cur_ctx);
sys/dev/qat/qat_common/qat_hal.c
456
qat_hal_rd_indr_csr(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
464
qat_hal_rd_ae_csr(handle, ae, CSR_CTX_POINTER, &cur_ctx);
sys/dev/qat/qat_common/qat_hal.c
465
qat_hal_wr_ae_csr(handle, ae, CSR_CTX_POINTER, ctx);
sys/dev/qat/qat_common/qat_hal.c
466
qat_hal_rd_ae_csr(handle, ae, ae_csr, csr_val);
sys/dev/qat/qat_common/qat_hal.c
467
qat_hal_wr_ae_csr(handle, ae, CSR_CTX_POINTER, cur_ctx);
sys/dev/qat/qat_common/qat_hal.c
471
qat_hal_put_sig_event(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
478
qat_hal_rd_ae_csr(handle, ae, CSR_CTX_POINTER, &cur_ctx);
sys/dev/qat/qat_common/qat_hal.c
482
qat_hal_wr_ae_csr(handle, ae, CSR_CTX_POINTER, ctx);
sys/dev/qat/qat_common/qat_hal.c
483
qat_hal_wr_ae_csr(handle, ae, CTX_SIG_EVENTS_INDIRECT, events);
sys/dev/qat/qat_common/qat_hal.c
485
qat_hal_wr_ae_csr(handle, ae, CSR_CTX_POINTER, cur_ctx);
sys/dev/qat/qat_common/qat_hal.c
489
qat_hal_put_wakeup_event(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
496
qat_hal_rd_ae_csr(handle, ae, CSR_CTX_POINTER, &cur_ctx);
sys/dev/qat/qat_common/qat_hal.c
500
qat_hal_wr_ae_csr(handle, ae, CSR_CTX_POINTER, ctx);
sys/dev/qat/qat_common/qat_hal.c
501
qat_hal_wr_ae_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
506
qat_hal_wr_ae_csr(handle, ae, CSR_CTX_POINTER, cur_ctx);
sys/dev/qat/qat_common/qat_hal.c
510
qat_hal_check_ae_alive(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_hal.c
514
unsigned long ae_mask = handle->hal_handle->ae_mask;
sys/dev/qat/qat_common/qat_hal.c
517
for_each_set_bit(ae, &ae_mask, handle->hal_handle->ae_max_num)
sys/dev/qat/qat_common/qat_hal.c
519
qat_hal_rd_ae_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
526
qat_hal_rd_ae_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
543
qat_hal_check_ae_active(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
548
qat_hal_rd_ae_csr(handle, ae, CTX_ENABLES, &enable);
sys/dev/qat/qat_common/qat_hal.c
549
qat_hal_rd_ae_csr(handle, ae, ACTIVE_CTX_STATUS, &active);
sys/dev/qat/qat_common/qat_hal.c
558
qat_hal_reset_timestamp(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_hal.c
562
unsigned long ae_mask = handle->hal_handle->ae_mask;
sys/dev/qat/qat_common/qat_hal.c
565
(IS_QAT_GEN3_OR_GEN4(pci_get_device(GET_DEV(handle->accel_dev)))) ?
sys/dev/qat/qat_common/qat_hal.c
569
misc_ctl = GET_GLB_CSR(handle, misc_ctl_csr);
sys/dev/qat/qat_common/qat_hal.c
571
SET_GLB_CSR(handle,
sys/dev/qat/qat_common/qat_hal.c
575
for_each_set_bit(ae, &ae_mask, handle->hal_handle->ae_max_num)
sys/dev/qat/qat_common/qat_hal.c
577
qat_hal_wr_ae_csr(handle, ae, TIMESTAMP_LOW, 0);
sys/dev/qat/qat_common/qat_hal.c
578
qat_hal_wr_ae_csr(handle, ae, TIMESTAMP_HIGH, 0);
sys/dev/qat/qat_common/qat_hal.c
581
SET_GLB_CSR(handle, misc_ctl_csr, misc_ctl | MC_TIMESTAMP_ENABLE);
sys/dev/qat/qat_common/qat_hal.c
590
qat_hal_init_esram(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_hal.c
593
((uintptr_t)handle->hal_ep_csr_addr_v + ESRAM_AUTO_INIT_CSR_OFFSET);
sys/dev/qat/qat_common/qat_hal.c
597
if (pci_get_device(GET_DEV(handle->accel_dev)) !=
sys/dev/qat/qat_common/qat_hal.c
601
csr_val = ADF_CSR_RD(handle->hal_misc_addr_v, csr_addr);
sys/dev/qat/qat_common/qat_hal.c
604
csr_val = ADF_CSR_RD(handle->hal_misc_addr_v, csr_addr);
sys/dev/qat/qat_common/qat_hal.c
607
ADF_CSR_WR(handle->hal_misc_addr_v, csr_addr, csr_val);
sys/dev/qat/qat_common/qat_hal.c
609
qat_hal_wait_cycles(handle, 0, ESRAM_AUTO_INIT_USED_CYCLES, 0);
sys/dev/qat/qat_common/qat_hal.c
610
csr_val = ADF_CSR_RD(handle->hal_misc_addr_v, csr_addr);
sys/dev/qat/qat_common/qat_hal.c
622
qat_hal_clr_reset(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_hal.c
633
unsigned long ae_mask = handle->hal_handle->ae_mask;
sys/dev/qat/qat_common/qat_hal.c
635
if (IS_QAT_GEN3(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_hal.c
640
if (handle->hal_handle->ae_mask > 0xffff)
sys/dev/qat/qat_common/qat_hal.c
642
} else if (IS_QAT_GEN4(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_hal.c
653
pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_hal.c
655
qat_hal_get_ae_mask_gen4(handle);
sys/dev/qat/qat_common/qat_hal.c
657
handle->hal_handle->slice_mask;
sys/dev/qat/qat_common/qat_hal.c
660
handle->hal_handle->ae_mask & 0xFFFF;
sys/dev/qat/qat_common/qat_hal.c
662
handle->hal_handle->slice_mask & 0x3F;
sys/dev/qat/qat_common/qat_hal.c
666
(handle->hal_handle->ae_mask >> AES_PER_CPP) &
sys/dev/qat/qat_common/qat_hal.c
669
(handle->hal_handle->slice_mask >> SLICES_PER_CPP) &
sys/dev/qat/qat_common/qat_hal.c
673
ae_reset_val[i] = GET_GLB_CSR(handle, ae_reset_csr[i]);
sys/dev/qat/qat_common/qat_hal.c
677
SET_GLB_CSR(handle, ae_reset_csr[i], ae_reset_val[i]);
sys/dev/qat/qat_common/qat_hal.c
680
ae_reset_val[i] = GET_GLB_CSR(handle, ae_reset_csr[i]);
sys/dev/qat/qat_common/qat_hal.c
685
clk_val[i] = GET_GLB_CSR(handle, clk_csr[i]);
sys/dev/qat/qat_common/qat_hal.c
688
SET_GLB_CSR(handle, clk_csr[i], clk_val[i]);
sys/dev/qat/qat_common/qat_hal.c
690
if (qat_hal_check_ae_alive(handle))
sys/dev/qat/qat_common/qat_hal.c
694
for_each_set_bit(ae, &ae_mask, handle->hal_handle->ae_max_num)
sys/dev/qat/qat_common/qat_hal.c
696
qat_hal_wr_ae_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
700
qat_hal_wr_indr_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
704
handle->hal_handle->upc_mask &
sys/dev/qat/qat_common/qat_hal.c
706
qat_hal_wr_ae_csr(handle, ae, CTX_ARB_CNTL, INIT_CTX_ARB_VALUE);
sys/dev/qat/qat_common/qat_hal.c
707
qat_hal_wr_ae_csr(handle, ae, CC_ENABLE, INIT_CCENABLE_VALUE);
sys/dev/qat/qat_common/qat_hal.c
708
qat_hal_put_wakeup_event(handle,
sys/dev/qat/qat_common/qat_hal.c
712
qat_hal_put_sig_event(handle,
sys/dev/qat/qat_common/qat_hal.c
717
if (qat_hal_init_esram(handle))
sys/dev/qat/qat_common/qat_hal.c
719
if (qat_hal_wait_cycles(handle, 0, SHRAM_INIT_CYCLES, 0))
sys/dev/qat/qat_common/qat_hal.c
721
qat_hal_reset_timestamp(handle);
sys/dev/qat/qat_common/qat_hal.c
730
qat_hal_disable_ctx(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
736
qat_hal_rd_ae_csr(handle, ae, CTX_ENABLES, &ctx);
sys/dev/qat/qat_common/qat_hal.c
739
qat_hal_wr_ae_csr(handle, ae, CTX_ENABLES, ctx);
sys/dev/qat/qat_common/qat_hal.c
775
qat_hal_wr_uwords(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
784
if (IS_QAT_GEN4(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_hal.c
790
if (ae_in_group + i >= handle->hal_handle->ae_max_num)
sys/dev/qat/qat_common/qat_hal.c
792
if (qat_hal_check_ae_active(handle, ae_in_group + i)) {
sys/dev/qat/qat_common/qat_hal.c
801
qat_hal_rd_ae_csr(handle, ae, USTORE_ADDRESS, &ustore_addr);
sys/dev/qat/qat_common/qat_hal.c
803
qat_hal_wr_ae_csr(handle, ae, USTORE_ADDRESS, uaddr);
sys/dev/qat/qat_common/qat_hal.c
811
qat_hal_wr_ae_csr(handle, ae, USTORE_DATA_LOWER, uwrd_lo);
sys/dev/qat/qat_common/qat_hal.c
812
qat_hal_wr_ae_csr(handle, ae, USTORE_DATA_UPPER, uwrd_hi);
sys/dev/qat/qat_common/qat_hal.c
814
qat_hal_wr_ae_csr(handle, ae, USTORE_ADDRESS, ustore_addr);
sys/dev/qat/qat_common/qat_hal.c
818
qat_hal_wr_coalesce_uwords(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
847
qat_hal_wr_uwords(handle,
sys/dev/qat/qat_common/qat_hal.c
854
handle, odd_ae, uaddr / 2, odd_cpy_cnt, odd_uwords);
sys/dev/qat/qat_common/qat_hal.c
860
qat_hal_enable_ctx(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_hal.c
866
qat_hal_rd_ae_csr(handle, ae, CTX_ENABLES, &ctx);
sys/dev/qat/qat_common/qat_hal.c
870
qat_hal_wr_ae_csr(handle, ae, CTX_ENABLES, ctx);
sys/dev/qat/qat_common/qat_hal.c
874
qat_hal_clear_xfer(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_hal.c
878
unsigned long ae_mask = handle->hal_handle->ae_mask;
sys/dev/qat/qat_common/qat_hal.c
880
for_each_set_bit(ae, &ae_mask, handle->hal_handle->ae_max_num)
sys/dev/qat/qat_common/qat_hal.c
884
handle, ae, 0, ICP_SR_RD_ABS, reg, 0);
sys/dev/qat/qat_common/qat_hal.c
886
handle, ae, 0, ICP_DR_RD_ABS, reg, 0);
sys/dev/qat/qat_common/qat_hal.c
892
qat_hal_clear_gpr(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_hal.c
900
unsigned long ae_mask = handle->hal_handle->ae_mask;
sys/dev/qat/qat_common/qat_hal.c
903
for_each_set_bit(ae, &ae_mask, handle->hal_handle->ae_max_num)
sys/dev/qat/qat_common/qat_hal.c
905
qat_hal_rd_ae_csr(handle, ae, AE_MISC_CONTROL, &csr_val);
sys/dev/qat/qat_common/qat_hal.c
908
qat_hal_wr_ae_csr(handle, ae, AE_MISC_CONTROL, csr_val);
sys/dev/qat/qat_common/qat_hal.c
909
qat_hal_rd_ae_csr(handle, ae, CTX_ENABLES, &csr_val);
sys/dev/qat/qat_common/qat_hal.c
911
if (!IS_QAT_GEN4(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_hal.c
914
qat_hal_wr_ae_csr(handle, ae, CTX_ENABLES, csr_val);
sys/dev/qat/qat_common/qat_hal.c
916
if (IS_QAT_GEN4(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_hal.c
918
qat_hal_wr_uwords(handle,
sys/dev/qat/qat_common/qat_hal.c
924
qat_hal_wr_uwords(handle,
sys/dev/qat/qat_common/qat_hal.c
930
qat_hal_wr_indr_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
934
handle->hal_handle->upc_mask &
sys/dev/qat/qat_common/qat_hal.c
936
qat_hal_rd_ae_csr(handle, ae, ACTIVE_CTX_STATUS, &savctx);
sys/dev/qat/qat_common/qat_hal.c
937
qat_hal_wr_ae_csr(handle, ae, ACTIVE_CTX_STATUS, 0);
sys/dev/qat/qat_common/qat_hal.c
938
qat_hal_put_wakeup_event(handle, ae, ctx_mask, XCWE_VOLUNTARY);
sys/dev/qat/qat_common/qat_hal.c
940
handle, ae, ctx_mask, CTX_SIG_EVENTS_INDIRECT, 0);
sys/dev/qat/qat_common/qat_hal.c
941
qat_hal_wr_ae_csr(handle, ae, CTX_SIG_EVENTS_ACTIVE, 0);
sys/dev/qat/qat_common/qat_hal.c
942
qat_hal_enable_ctx(handle, ae, ctx_mask);
sys/dev/qat/qat_common/qat_hal.c
945
for_each_set_bit(ae, &ae_mask, handle->hal_handle->ae_max_num)
sys/dev/qat/qat_common/qat_hal.c
949
ret = qat_hal_wait_cycles(handle, ae, 20, 1);
sys/dev/qat/qat_common/qat_hal.c
956
qat_hal_disable_ctx(handle, ae, ctx_mask);
sys/dev/qat/qat_common/qat_hal.c
957
qat_hal_rd_ae_csr(handle, ae, AE_MISC_CONTROL, &csr_val);
sys/dev/qat/qat_common/qat_hal.c
960
qat_hal_wr_ae_csr(handle, ae, AE_MISC_CONTROL, csr_val);
sys/dev/qat/qat_common/qat_hal.c
961
qat_hal_wr_ae_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
965
qat_hal_wr_ae_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
969
qat_hal_wr_indr_csr(handle,
sys/dev/qat/qat_common/qat_hal.c
973
handle->hal_handle->upc_mask &
sys/dev/qat/qat_common/qat_hal.c
975
qat_hal_wr_ae_csr(handle, ae, CTX_ARB_CNTL, INIT_CTX_ARB_VALUE);
sys/dev/qat/qat_common/qat_hal.c
976
qat_hal_wr_ae_csr(handle, ae, CC_ENABLE, INIT_CCENABLE_VALUE);
sys/dev/qat/qat_common/qat_hal.c
977
qat_hal_put_wakeup_event(handle,
sys/dev/qat/qat_common/qat_hal.c
981
qat_hal_put_sig_event(handle,
sys/dev/qat/qat_common/qat_hal.c
990
qat_hal_check_imr(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_hal.c
992
device_t dev = accel_to_pci_dev(handle->accel_dev);
sys/dev/qat/qat_common/qat_hal.c
995
if (pci_get_device(GET_DEV(handle->accel_dev)) !=
sys/dev/qat/qat_common/qat_hal.c
997
pci_get_device(GET_DEV(handle->accel_dev)) !=
sys/dev/qat/qat_common/qat_uclo.c
1011
handle,
sys/dev/qat/qat_common/qat_uclo.c
1032
qat_uclo_init_globals(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_uclo.c
1034
struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle;
sys/dev/qat/qat_common/qat_uclo.c
1038
unsigned long ae_mask = handle->hal_handle->ae_mask;
sys/dev/qat/qat_common/qat_uclo.c
1043
if (qat_uclo_init_memory(handle)) {
sys/dev/qat/qat_common/qat_uclo.c
1049
for_each_set_bit(ae, &ae_mask, handle->hal_handle->ae_max_num)
sys/dev/qat/qat_common/qat_uclo.c
1056
handle, ae, aed->ae_slices[s].encap_image))
sys/dev/qat/qat_common/qat_uclo.c
1065
qat_hal_set_modes(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
1074
if (qat_hal_set_ae_ctx_mode(handle, ae, ae_mode)) {
sys/dev/qat/qat_common/qat_uclo.c
1080
qat_hal_set_ae_scs_mode(handle, ae, ae_mode);
sys/dev/qat/qat_common/qat_uclo.c
1081
if (!IS_QAT_GEN4(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_uclo.c
1084
if (qat_hal_set_ae_nn_mode(handle, ae, nn_mode)) {
sys/dev/qat/qat_common/qat_uclo.c
1090
if (qat_hal_set_ae_lm_mode(handle, ae, ICP_LMEM0, ae_mode)) {
sys/dev/qat/qat_common/qat_uclo.c
1095
if (qat_hal_set_ae_lm_mode(handle, ae, ICP_LMEM1, ae_mode)) {
sys/dev/qat/qat_common/qat_uclo.c
1099
if (IS_QAT_GEN3_OR_GEN4(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_uclo.c
1101
if (qat_hal_set_ae_lm_mode(handle, ae, ICP_LMEM2, ae_mode)) {
sys/dev/qat/qat_common/qat_uclo.c
1106
if (qat_hal_set_ae_lm_mode(handle, ae, ICP_LMEM3, ae_mode)) {
sys/dev/qat/qat_common/qat_uclo.c
1111
qat_hal_set_ae_tindex_mode(handle, ae, ae_mode);
sys/dev/qat/qat_common/qat_uclo.c
1117
qat_uclo_set_ae_mode(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_uclo.c
1124
struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle;
sys/dev/qat/qat_common/qat_uclo.c
1125
unsigned long ae_mask = handle->hal_handle->ae_mask;
sys/dev/qat/qat_common/qat_uclo.c
1127
for_each_set_bit(ae, &ae_mask, handle->hal_handle->ae_max_num)
sys/dev/qat/qat_common/qat_uclo.c
1129
unsigned long cfg_ae_mask = handle->cfg_ae_mask;
sys/dev/qat/qat_common/qat_uclo.c
1142
error = qat_hal_set_modes(handle,
sys/dev/qat/qat_common/qat_uclo.c
1154
qat_uclo_init_uword_num(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_uclo.c
1156
struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle;
sys/dev/qat/qat_common/qat_uclo.c
1168
qat_uclo_parse_uof_obj(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_uclo.c
1170
struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle;
sys/dev/qat/qat_common/qat_uclo.c
1177
obj_handle->prod_type = qat_uclo_get_dev_type(handle);
sys/dev/qat/qat_common/qat_uclo.c
1179
PID_MAJOR_REV | (PID_MINOR_REV & handle->hal_handle->revision_id);
sys/dev/qat/qat_common/qat_uclo.c
1203
if (qat_uclo_map_ae(handle, handle->hal_handle->ae_max_num)) {
sys/dev/qat/qat_common/qat_uclo.c
1207
qat_uclo_init_uword_num(handle);
sys/dev/qat/qat_common/qat_uclo.c
1210
if (qat_uclo_set_ae_mode(handle))
sys/dev/qat/qat_common/qat_uclo.c
1223
qat_uclo_map_suof_file_hdr(const struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
1229
struct icp_qat_suof_handle *suof_handle = handle->sobj_handle;
sys/dev/qat/qat_common/qat_uclo.c
1250
qat_uclo_map_simg(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
1254
struct icp_qat_suof_handle *suof_handle = handle->sobj_handle;
sys/dev/qat/qat_common/qat_uclo.c
1257
unsigned int device_id = pci_get_device(GET_DEV(handle->accel_dev));
sys/dev/qat/qat_common/qat_uclo.c
1299
qat_uclo_check_simg_compat(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
1305
prod_type = qat_uclo_get_dev_type(handle);
sys/dev/qat/qat_common/qat_uclo.c
1308
PID_MAJOR_REV | (PID_MINOR_REV & handle->hal_handle->revision_id);
sys/dev/qat/qat_common/qat_uclo.c
1324
qat_uclo_del_suof(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_uclo.c
1326
struct icp_qat_suof_handle *sobj_handle = handle->sobj_handle;
sys/dev/qat/qat_common/qat_uclo.c
1330
free(handle->sobj_handle, M_QAT);
sys/dev/qat/qat_common/qat_uclo.c
1331
handle->sobj_handle = NULL;
sys/dev/qat/qat_common/qat_uclo.c
1355
qat_uclo_map_suof(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
1359
struct icp_qat_suof_handle *suof_handle = handle->sobj_handle;
sys/dev/qat/qat_common/qat_uclo.c
1373
ret = qat_uclo_map_suof_file_hdr(handle, suof_ptr, suof_size);
sys/dev/qat/qat_common/qat_uclo.c
1391
qat_uclo_map_simg(handle,
sys/dev/qat/qat_common/qat_uclo.c
1394
ret = qat_uclo_check_simg_compat(handle, &suof_img_hdr[i]);
sys/dev/qat/qat_common/qat_uclo.c
1397
suof_img_hdr[i].ae_mask &= handle->cfg_ae_mask;
sys/dev/qat/qat_common/qat_uclo.c
1402
if (!IS_QAT_GEN4(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_uclo.c
1414
(0x1 << (handle->hal_handle->ae_max_num - 1))) !=
sys/dev/qat/qat_common/qat_uclo.c
1431
qat_uclo_auth_fw(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
144
qat_uclo_wr_sram_by_words(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
1441
if (IS_QAT_GEN3_OR_GEN4(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_uclo.c
1452
SET_FCU_CSR(handle, fcu_dram_hi_csr, (bus_addr >> BITS_IN_DWORD));
sys/dev/qat/qat_common/qat_uclo.c
1453
SET_FCU_CSR(handle, fcu_dram_lo_csr, bus_addr);
sys/dev/qat/qat_common/qat_uclo.c
1454
SET_FCU_CSR(handle, fcu_ctl_csr, FCU_CTRL_CMD_AUTH);
sys/dev/qat/qat_common/qat_uclo.c
1458
fcu_sts = GET_FCU_CSR(handle, fcu_sts_csr);
sys/dev/qat/qat_common/qat_uclo.c
1469
if (IS_QAT_GEN3(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_uclo.c
1471
(GET_FCU_CSR(handle, FCU_STATUS1_C4XXX) & MEM_CFG_ERR_BIT);
sys/dev/qat/qat_common/qat_uclo.c
1479
qat_uclo_is_broadcast(struct icp_qat_fw_loader_handle *handle, int imgid)
sys/dev/qat/qat_common/qat_uclo.c
1483
if (!IS_QAT_GEN4(pci_get_device(GET_DEV(handle->accel_dev))))
sys/dev/qat/qat_common/qat_uclo.c
1486
sobj_handle = (struct icp_qat_suof_handle *)handle->sobj_handle;
sys/dev/qat/qat_common/qat_uclo.c
1487
if (handle->hal_handle->admin_ae_mask &
sys/dev/qat/qat_common/qat_uclo.c
1495
qat_uclo_broadcast_load_fw(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
1504
unsigned int device_id = pci_get_device(GET_DEV(handle->accel_dev));
sys/dev/qat/qat_common/qat_uclo.c
1515
if (!test_bit(i, (unsigned long *)&handle->hal_handle->ae_mask))
sys/dev/qat/qat_common/qat_uclo.c
1518
if (qat_hal_check_ae_active(handle, (unsigned char)i)) {
sys/dev/qat/qat_common/qat_uclo.c
152
if (num_in_bytes > handle->hal_sram_size) {
sys/dev/qat/qat_common/qat_uclo.c
1531
SET_FCU_CSR(handle,
sys/dev/qat/qat_common/qat_uclo.c
1534
SET_FCU_CSR(handle, fcuCtlCsr, FCU_CTRL_CMD_LOAD);
sys/dev/qat/qat_common/qat_uclo.c
1537
fcuSts = GET_FCU_CSR(handle, fcuStsCsr);
sys/dev/qat/qat_common/qat_uclo.c
1548
GET_FCU_CSR(handle,
sys/dev/qat/qat_common/qat_uclo.c
1559
SET_FCU_CSR(handle,
sys/dev/qat/qat_common/qat_uclo.c
1576
qat_uclo_simg_alloc(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
158
SRAM_WRITE(handle, addr, outval);
sys/dev/qat/qat_common/qat_uclo.c
1583
handle->accel_dev->dma_tag,
sys/dev/qat/qat_common/qat_uclo.c
1597
qat_uclo_simg_free(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
1600
if (handle && dram_desc && dram_desc->dram_base_addr_v)
sys/dev/qat/qat_common/qat_uclo.c
1608
qat_uclo_map_auth_fw(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
1620
unsigned int device_id = pci_get_device(GET_DEV(handle->accel_dev));
sys/dev/qat/qat_common/qat_uclo.c
1636
if (qat_uclo_simg_alloc(handle, img_desc, length)) {
sys/dev/qat/qat_common/qat_uclo.c
167
qat_uclo_wr_umem_by_words(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
1722
handle->cfg_ae_mask;
sys/dev/qat/qat_common/qat_uclo.c
1732
qat_uclo_load_fw(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
1739
unsigned long ae_mask = handle->hal_handle->ae_mask;
sys/dev/qat/qat_common/qat_uclo.c
1741
if (IS_QAT_GEN3_OR_GEN4(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_uclo.c
1750
for_each_set_bit(i, &ae_mask, handle->hal_handle->ae_max_num)
sys/dev/qat/qat_common/qat_uclo.c
1756
if (qat_hal_check_ae_active(handle, i)) {
sys/dev/qat/qat_common/qat_uclo.c
1760
SET_FCU_CSR(handle,
sys/dev/qat/qat_common/qat_uclo.c
1764
pci_get_device(GET_DEV(handle->accel_dev))) ?
sys/dev/qat/qat_common/qat_uclo.c
1771
fcu_sts = GET_FCU_CSR(handle, fcu_sts_csr);
sys/dev/qat/qat_common/qat_uclo.c
1775
GET_DEV(handle->accel_dev))) ?
sys/dev/qat/qat_common/qat_uclo.c
1776
GET_FCU_CSR(handle, FCU_AE_LOADED_C4XXX) :
sys/dev/qat/qat_common/qat_uclo.c
1791
qat_uclo_map_suof_obj(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
1798
handle->sobj_handle = suof_handle;
sys/dev/qat/qat_common/qat_uclo.c
1799
if (qat_uclo_map_suof(handle, addr_ptr, mem_size)) {
sys/dev/qat/qat_common/qat_uclo.c
180
qat_hal_wr_umem(handle, ae, addr++, 1, &outval);
sys/dev/qat/qat_common/qat_uclo.c
1800
qat_uclo_del_suof(handle);
sys/dev/qat/qat_common/qat_uclo.c
1808
qat_uclo_wr_mimage(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
1816
if (handle->fw_auth) {
sys/dev/qat/qat_common/qat_uclo.c
1818
handle, addr_ptr, mem_size, &img_desc, &desc);
sys/dev/qat/qat_common/qat_uclo.c
1820
status = qat_uclo_auth_fw(handle, desc);
sys/dev/qat/qat_common/qat_uclo.c
1822
qat_uclo_simg_free(handle, &img_desc);
sys/dev/qat/qat_common/qat_uclo.c
1824
if (IS_QAT_GEN4(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_uclo.c
1831
GET_DEV(handle->accel_dev)));
sys/dev/qat/qat_common/qat_uclo.c
1834
status = qat_uclo_wr_sram_by_words(handle,
sys/dev/qat/qat_common/qat_uclo.c
1835
handle->hal_sram_offset,
sys/dev/qat/qat_common/qat_uclo.c
1843
qat_uclo_map_uof_obj(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
1863
handle->obj_handle = objhdl;
sys/dev/qat/qat_common/qat_uclo.c
1864
if (qat_uclo_parse_uof_obj(handle))
sys/dev/qat/qat_common/qat_uclo.c
1869
handle->obj_handle = NULL;
sys/dev/qat/qat_common/qat_uclo.c
187
qat_uclo_batch_wr_umem(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
1878
qat_uclo_map_mof_file_hdr(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
1884
struct icp_qat_mof_handle *mobj_handle = handle->mobj_handle;
sys/dev/qat/qat_common/qat_uclo.c
1905
qat_uclo_del_mof(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_uclo.c
1907
struct icp_qat_mof_handle *mobj_handle = handle->mobj_handle;
sys/dev/qat/qat_common/qat_uclo.c
1911
free(handle->mobj_handle, M_QAT);
sys/dev/qat/qat_common/qat_uclo.c
1912
handle->mobj_handle = NULL;
sys/dev/qat/qat_common/qat_uclo.c
203
qat_uclo_wr_umem_by_words(handle, ae, addr, value, size);
sys/dev/qat/qat_common/qat_uclo.c
2089
qat_uclo_map_mof_obj(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
209
qat_uclo_cleanup_batch_init_list(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
2113
handle->mobj_handle = mobj_handle;
sys/dev/qat/qat_common/qat_uclo.c
2114
ret = qat_uclo_map_mof_file_hdr(handle, mof_ptr, mof_size);
sys/dev/qat/qat_common/qat_uclo.c
2141
qat_uclo_map_obj(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
2151
(sizeof(handle->hal_handle->ae_mask) * 8));
sys/dev/qat/qat_common/qat_uclo.c
2153
if (!handle || !addr_ptr || mem_size < 24)
sys/dev/qat/qat_common/qat_uclo.c
2158
handle, addr_ptr, mem_size, obj_name, &obj_addr, &obj_size);
sys/dev/qat/qat_common/qat_uclo.c
2166
return (handle->fw_auth) ?
sys/dev/qat/qat_common/qat_uclo.c
2167
qat_uclo_map_suof_obj(handle, obj_addr, obj_size) :
sys/dev/qat/qat_common/qat_uclo.c
2168
qat_uclo_map_uof_obj(handle, obj_addr, obj_size);
sys/dev/qat/qat_common/qat_uclo.c
2172
qat_uclo_del_obj(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_uclo.c
2174
struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle;
sys/dev/qat/qat_common/qat_uclo.c
2176
unsigned long ae_mask = handle->hal_handle->ae_mask;
sys/dev/qat/qat_common/qat_uclo.c
2178
if (handle->mobj_handle)
sys/dev/qat/qat_common/qat_uclo.c
2179
qat_uclo_del_mof(handle);
sys/dev/qat/qat_common/qat_uclo.c
2180
if (handle->sobj_handle)
sys/dev/qat/qat_common/qat_uclo.c
2181
qat_uclo_del_suof(handle);
sys/dev/qat/qat_common/qat_uclo.c
2189
for_each_set_bit(a, &ae_mask, handle->hal_handle->ae_max_num)
sys/dev/qat/qat_common/qat_uclo.c
2197
handle->obj_handle = NULL;
sys/dev/qat/qat_common/qat_uclo.c
2236
qat_uclo_wr_uimage_raw_page(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
2241
struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle;
sys/dev/qat/qat_common/qat_uclo.c
2268
!IS_QAT_GEN4(pci_get_device(GET_DEV(handle->accel_dev))))
sys/dev/qat/qat_common/qat_uclo.c
2270
qat_hal_wr_coalesce_uwords(handle,
sys/dev/qat/qat_common/qat_uclo.c
2277
qat_hal_wr_uwords(handle,
sys/dev/qat/qat_common/qat_uclo.c
2289
qat_uclo_wr_uimage_page(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
2292
struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle;
sys/dev/qat/qat_common/qat_uclo.c
2298
unsigned long ae_mask = handle->hal_handle->ae_mask;
sys/dev/qat/qat_common/qat_uclo.c
2307
for_each_set_bit(ae, &ae_mask, handle->hal_handle->ae_max_num)
sys/dev/qat/qat_common/qat_uclo.c
2309
unsigned long cfg_ae_mask = handle->cfg_ae_mask;
sys/dev/qat/qat_common/qat_uclo.c
2330
qat_uclo_wr_uimage_raw_page(handle, page->encap_page, ae);
sys/dev/qat/qat_common/qat_uclo.c
2336
qat_hal_set_live_ctx(handle,
sys/dev/qat/qat_common/qat_uclo.c
2339
qat_hal_set_pc(handle,
sys/dev/qat/qat_common/qat_uclo.c
2347
qat_uclo_wr_suof_img(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_uclo.c
2352
struct icp_qat_suof_handle *sobj_handle = handle->sobj_handle;
sys/dev/qat/qat_common/qat_uclo.c
2356
if (qat_uclo_map_auth_fw(handle,
sys/dev/qat/qat_common/qat_uclo.c
2362
if (qat_uclo_auth_fw(handle, desc))
sys/dev/qat/qat_common/qat_uclo.c
2364
if (qat_uclo_is_broadcast(handle, i)) {
sys/dev/qat/qat_common/qat_uclo.c
2365
if (qat_uclo_broadcast_load_fw(handle, desc))
sys/dev/qat/qat_common/qat_uclo.c
2368
if (qat_uclo_load_fw(handle, desc))
sys/dev/qat/qat_common/qat_uclo.c
2371
qat_uclo_simg_free(handle, &img_desc);
sys/dev/qat/qat_common/qat_uclo.c
2376
qat_uclo_simg_free(handle, &img_desc);
sys/dev/qat/qat_common/qat_uclo.c
2381
qat_uclo_wr_uof_img(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_uclo.c
2383
struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle;
sys/dev/qat/qat_common/qat_uclo.c
2386
if (qat_uclo_init_globals(handle))
sys/dev/qat/qat_common/qat_uclo.c
2391
if (qat_uclo_init_ustore(handle, &obj_handle->ae_uimage[i]))
sys/dev/qat/qat_common/qat_uclo.c
2393
qat_uclo_wr_uimage_page(handle,
sys/dev/qat/qat_common/qat_uclo.c
2400
qat_uclo_wr_all_uimage(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_uclo.c
2402
return (handle->fw_auth) ? qat_uclo_wr_suof_img(handle) :
sys/dev/qat/qat_common/qat_uclo.c
2403
qat_uclo_wr_uof_img(handle);
sys/dev/qat/qat_common/qat_uclo.c
2407
qat_uclo_set_cfg_ae_mask(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
2413
handle->cfg_ae_mask = cfg_ae_mask;
sys/dev/qat/qat_common/qat_uclo.c
250
qat_uclo_fetch_initmem_ae(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
255
struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle;
sys/dev/qat/qat_common/qat_uclo.c
283
qat_uclo_create_batch_init_list(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
325
qat_uclo_init_lmem_seg(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
328
struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle;
sys/dev/qat/qat_common/qat_uclo.c
332
lmem = IS_QAT_GEN4(pci_get_device(GET_DEV(handle->accel_dev))) ?
sys/dev/qat/qat_common/qat_uclo.c
336
if (qat_uclo_fetch_initmem_ae(handle, init_mem, lmem, &ae))
sys/dev/qat/qat_common/qat_uclo.c
339
handle, init_mem, ae, &obj_handle->lm_init_tab[ae]))
sys/dev/qat/qat_common/qat_uclo.c
345
qat_uclo_init_umem_seg(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
348
struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle;
sys/dev/qat/qat_common/qat_uclo.c
353
if (qat_uclo_fetch_initmem_ae(handle, init_mem, ustore_size, &ae))
sys/dev/qat/qat_common/qat_uclo.c
356
handle, init_mem, ae, &obj_handle->umem_init_tab[ae]))
sys/dev/qat/qat_common/qat_uclo.c
370
qat_uclo_init_ae_memory(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
375
if (qat_uclo_init_lmem_seg(handle, init_mem))
sys/dev/qat/qat_common/qat_uclo.c
379
if (qat_uclo_init_umem_seg(handle, init_mem))
sys/dev/qat/qat_common/qat_uclo.c
391
qat_uclo_init_ustore(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
401
struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle;
sys/dev/qat/qat_common/qat_uclo.c
404
unsigned long ae_mask = handle->hal_handle->ae_mask;
sys/dev/qat/qat_common/qat_uclo.c
417
for_each_set_bit(ae, &ae_mask, handle->hal_handle->ae_max_num)
sys/dev/qat/qat_common/qat_uclo.c
419
unsigned long cfg_ae_mask = handle->cfg_ae_mask;
sys/dev/qat/qat_common/qat_uclo.c
422
IS_QAT_GEN4(pci_get_device(GET_DEV(handle->accel_dev)));
sys/dev/qat/qat_common/qat_uclo.c
443
qat_hal_wr_coalesce_uwords(handle,
sys/dev/qat/qat_common/qat_uclo.c
450
handle,
sys/dev/qat/qat_common/qat_uclo.c
461
qat_hal_wr_uwords(handle,
sys/dev/qat/qat_common/qat_uclo.c
466
qat_hal_wr_uwords(handle,
sys/dev/qat/qat_common/qat_uclo.c
478
qat_uclo_init_memory(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_uclo.c
482
struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle;
sys/dev/qat/qat_common/qat_uclo.c
484
unsigned long ae_mask = handle->hal_handle->ae_mask;
sys/dev/qat/qat_common/qat_uclo.c
488
if (qat_uclo_init_ae_memory(handle, initmem))
sys/dev/qat/qat_common/qat_uclo.c
499
for_each_set_bit(ae, &ae_mask, handle->hal_handle->ae_max_num)
sys/dev/qat/qat_common/qat_uclo.c
501
if (qat_hal_batch_wr_lm(handle,
sys/dev/qat/qat_common/qat_uclo.c
507
qat_uclo_cleanup_batch_init_list(handle,
sys/dev/qat/qat_common/qat_uclo.c
509
qat_uclo_batch_wr_umem(handle,
sys/dev/qat/qat_common/qat_uclo.c
513
handle, &obj_handle->umem_init_tab[ae]);
sys/dev/qat/qat_common/qat_uclo.c
744
UcLo_checkTGroupList2X(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_uclo.c
750
struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle;
sys/dev/qat/qat_common/qat_uclo.c
768
if (!qat_hal_check_ae_active(handle, swAe)) {
sys/dev/qat/qat_common/qat_uclo.c
799
qat_uclo_map_ae(struct icp_qat_fw_loader_handle *handle, int max_ae)
sys/dev/qat/qat_common/qat_uclo.c
803
unsigned long ae_mask = handle->hal_handle->ae_mask;
sys/dev/qat/qat_common/qat_uclo.c
804
unsigned long cfg_ae_mask = handle->cfg_ae_mask;
sys/dev/qat/qat_common/qat_uclo.c
806
struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle;
sys/dev/qat/qat_common/qat_uclo.c
823
if (IS_QAT_GEN4(pci_get_device(GET_DEV(handle->accel_dev)))) {
sys/dev/qat/qat_common/qat_uclo.c
824
if (UcLo_checkTGroupList2X(handle)) {
sys/dev/qat/qat_common/qat_uclo.c
880
qat_uclo_get_dev_type(struct icp_qat_fw_loader_handle *handle)
sys/dev/qat/qat_common/qat_uclo.c
882
switch (pci_get_device(GET_DEV(handle->accel_dev))) {
sys/dev/qat/qat_common/qat_uclo.c
899
pci_get_device(GET_DEV(handle->accel_dev)));
sys/dev/qat/qat_common/qat_uclo.c
925
qat_uclo_init_reg(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
937
handle, ae, ctx_mask, reg_type, reg_addr, value);
sys/dev/qat/qat_common/qat_uclo.c
941
handle, ae, ctx_mask, reg_type, reg_addr, value);
sys/dev/qat/qat_common/qat_uclo.c
948
handle, ae, ctx_mask, reg_type, reg_addr, value);
sys/dev/qat/qat_common/qat_uclo.c
954
handle, ae, ctx_mask, reg_type, reg_addr, value);
sys/dev/qat/qat_common/qat_uclo.c
959
handle, ae, ctx_mask, reg_type, reg_addr, value);
sys/dev/qat/qat_common/qat_uclo.c
963
handle, ae, ctx_mask, reg_type, reg_addr, value);
sys/dev/qat/qat_common/qat_uclo.c
965
return qat_hal_init_nn(handle, ae, ctx_mask, reg_addr, value);
sys/dev/qat/qat_common/qat_uclo.c
974
qat_uclo_init_reg_sym(struct icp_qat_fw_loader_handle *handle,
sys/dev/qat/qat_common/qat_uclo.c
995
qat_uclo_init_reg(handle,
sys/dev/qlnx/qlnxe/ecore_dev_api.h
785
void *handle);
sys/dev/qlnx/qlnxe/ecore_iwarp.c
1897
u8 handle)
sys/dev/qlnx/qlnxe/ecore_iwarp.c
1903
handle,
sys/dev/qlnx/qlnxe/ecore_iwarp.c
1911
rc, handle);
sys/dev/qlnx/qlnxe/ecore_iwarp.c
3722
oparams->handle = listener;
sys/dev/qlnx/qlnxe/ecore_iwarp.c
3858
ecore_iwarp_pause_listen(void *rdma_cxt, void *handle,
sys/dev/qlnx/qlnxe/ecore_iwarp.c
3863
(struct ecore_iwarp_listener *)handle;
sys/dev/qlnx/qlnxe/ecore_iwarp.c
3883
ecore_iwarp_destroy_listen(void *rdma_cxt, void *handle)
sys/dev/qlnx/qlnxe/ecore_iwarp.c
3887
(struct ecore_iwarp_listener *)handle;
sys/dev/qlnx/qlnxe/ecore_iwarp.c
3891
DP_VERBOSE(p_hwfn, ECORE_MSG_RDMA, "handle=%p\n", handle);
sys/dev/qlnx/qlnxe/ecore_l2.c
2318
void *handle)
sys/dev/qlnx/qlnxe/ecore_l2.c
2320
struct ecore_queue_cid *p_cid = (struct ecore_queue_cid *)handle;
sys/dev/qlnx/qlnxe/ecore_ll2.h
43
u8 handle)
sys/dev/qlnx/qlnxe/ecore_ll2.h
45
return p_hwfn->hw_info.resc_start[ECORE_LL2_QUEUE] + handle;
sys/dev/qlnx/qlnxe/ecore_rdma_api.h
909
void *handle; /* to be sent to destroy */
sys/dev/qlnx/qlnxe/ecore_rdma_api.h
958
ecore_iwarp_destroy_listen(void *rdma_cxt, void *handle);
sys/dev/qlnx/qlnxe/ecore_rdma_api.h
964
ecore_iwarp_pause_listen(void *rdma_cxt, void *handle, bool pause, bool comp);
sys/dev/qlnx/qlnxe/ecore_roce_api.h
803
void *handle; /* to be sent to destroy */
sys/dev/qlnx/qlnxe/ecore_roce_api.h
850
ecore_iwarp_destroy_listen(void *rdma_cxt, void *handle);
sys/dev/qlnx/qlnxe/qlnx_def.h
116
void *handle;
sys/dev/qlnx/qlnxe/qlnx_def.h
155
void *handle;
sys/dev/qlnx/qlnxe/qlnx_def.h
43
void *handle;
sys/dev/qlnx/qlnxe/qlnx_os.c
1312
if (ha->irq_vec[i].handle) {
sys/dev/qlnx/qlnxe/qlnx_os.c
1314
ha->irq_vec[i].handle);
sys/dev/qlnx/qlnxe/qlnx_os.c
1428
if (fp->txq[0]->handle != NULL) {
sys/dev/qlnx/qlnxe/qlnx_os.c
1430
(uint16_t)usecs, fp->txq[0]->handle);
sys/dev/qlnx/qlnxe/qlnx_os.c
1463
if (fp->rxq->handle != NULL) {
sys/dev/qlnx/qlnxe/qlnx_os.c
1465
0, fp->rxq->handle);
sys/dev/qlnx/qlnxe/qlnx_os.c
6381
rss->rss_ind_table[j] = fp->rxq->handle;
sys/dev/qlnx/qlnxe/qlnx_os.c
6573
fp->rxq->handle = rx_ret_params.p_handle;
sys/dev/qlnx/qlnxe/qlnx_os.c
6608
txq->handle = tx_ret_params.p_handle;
sys/dev/qlnx/qlnxe/qlnx_os.c
6637
rss_params->rss_ind_table[i] = fp->rxq->handle;
sys/dev/qlnx/qlnxe/qlnx_os.c
6775
fp->txq[tc]->handle);
sys/dev/qlnx/qlnxe/qlnx_os.c
6785
rc = ecore_eth_rx_queue_stop(p_hwfn, fp->rxq->handle, false,
sys/dev/qlnx/qlnxe/qlnx_os.c
7086
&ha->irq_vec[i].handle))) {
sys/dev/qlnx/qlnxe/qlnx_os.c
7094
ha->irq_vec[i].irq, ha->irq_vec[i].handle);
sys/dev/qlnx/qlnxe/qlnx_os.c
7182
if (ha->irq_vec[i].handle) {
sys/dev/qlnx/qlnxe/qlnx_os.c
7185
ha->irq_vec[i].handle);
sys/dev/qlnx/qlnxe/qlnx_os.c
7186
ha->irq_vec[i].handle = NULL;
sys/dev/qlnx/qlnxr/qlnxr_os.c
295
qlnxr_intr(void *handle)
sys/dev/qlnx/qlnxr/qlnxr_os.c
297
struct qlnxr_cnq *cnq = handle;
sys/dev/qlnx/qlnxr/qlnxr_os.c
305
QL_DPRINT12(ha, "enter cnq = %p\n", handle);
sys/dev/qlnx/qlnxr/qlnxr_os.c
317
handle, hw_comp_cons, sw_comp_cons);
sys/dev/qlnx/qlnxr/qlnxr_os.c
355
QL_DPRINT12(ha, "exit cnq = %p\n", handle);
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
6234
listener->ecore_handle = oparams.handle;
sys/dev/qlxgb/qla_def.h
75
uint32_t handle;
sys/dev/qlxgb/qla_def.h
96
void *handle;
sys/dev/qlxgb/qla_hw.h
301
uint16_t handle;
sys/dev/qlxgb/qla_hw.h
654
uint32_t handle;
sys/dev/qlxgb/qla_inline.h
174
uint32_t handle, bus_addr_t paddr, uint32_t buf_size)
sys/dev/qlxgb/qla_inline.h
182
rcv_desc->handle = (uint16_t)handle;
sys/dev/qlxgb/qla_isr.c
181
ha->hw.rxj_in, rxb->handle, rxb->paddr,
sys/dev/qlxgb/qla_isr.c
192
__func__, ha->hw.rxj_in, rxb->handle);
sys/dev/qlxgb/qla_isr.c
232
ha->hw.rx_in, rxb->handle, rxb->paddr,
sys/dev/qlxgb/qla_isr.c
243
__func__, ha->hw.rx_in, rxb->handle);
sys/dev/qlxgb/qla_os.c
1260
rxb->handle = i;
sys/dev/qlxgb/qla_os.c
1268
rxb->handle, rxb->paddr,
sys/dev/qlxgb/qla_os.c
1300
rxb->handle = i;
sys/dev/qlxgb/qla_os.c
1308
rxb->handle, rxb->paddr,
sys/dev/qlxgb/qla_os.c
320
&ha->irq_vec[i].handle)) {
sys/dev/qlxgb/qla_os.c
486
if (ha->irq_vec[i].handle)
sys/dev/qlxgb/qla_os.c
488
ha->irq_vec[i].handle);
sys/dev/qlxgbe/ql_def.h
102
void *handle;
sys/dev/qlxgbe/ql_def.h
75
uint32_t handle;
sys/dev/qlxgbe/ql_hw.h
1361
uint16_t handle;
sys/dev/qlxgbe/ql_hw.h
1497
uint16_t handle[Q8_MAX_HANDLES_NON_LRO];
sys/dev/qlxgbe/ql_hw.h
1512
uint16_t handle[Q8_MAX_HANDLES_LRO];
sys/dev/qlxgbe/ql_inline.h
127
uint32_t handle, bus_addr_t paddr, uint32_t buf_size)
sys/dev/qlxgbe/ql_inline.h
135
rcv_desc->handle = (uint16_t)handle;
sys/dev/qlxgbe/ql_isr.c
118
__func__, sds_idx, i, sgc->handle[i]);
sys/dev/qlxgbe/ql_isr.c
225
rxb = &rx_ring->rx_buf[sgc->handle[i] & 0x7FFF];
sys/dev/qlxgbe/ql_isr.c
235
__func__, sds_idx, i, sgc->handle[i]);
sys/dev/qlxgbe/ql_isr.c
259
__func__, sds_idx, i, sgc->handle[i]);
sys/dev/qlxgbe/ql_isr.c
355
uint32_t dcount, uint16_t *handle, uint16_t *nhandles)
sys/dev/qlxgbe/ql_isr.c
392
*handle++ = Q8_SGL_STAT_DESC_HANDLE1((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
396
*handle++ = Q8_SGL_STAT_DESC_HANDLE1((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
397
*handle++ = Q8_SGL_STAT_DESC_HANDLE2((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
401
*handle++ = Q8_SGL_STAT_DESC_HANDLE1((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
402
*handle++ = Q8_SGL_STAT_DESC_HANDLE2((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
403
*handle++ = Q8_SGL_STAT_DESC_HANDLE3((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
407
*handle++ = Q8_SGL_STAT_DESC_HANDLE1((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
408
*handle++ = Q8_SGL_STAT_DESC_HANDLE2((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
409
*handle++ = Q8_SGL_STAT_DESC_HANDLE3((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
410
*handle++ = Q8_SGL_STAT_DESC_HANDLE4((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
414
*handle++ = Q8_SGL_STAT_DESC_HANDLE1((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
415
*handle++ = Q8_SGL_STAT_DESC_HANDLE2((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
416
*handle++ = Q8_SGL_STAT_DESC_HANDLE3((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
417
*handle++ = Q8_SGL_STAT_DESC_HANDLE4((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
418
*handle++ = Q8_SGL_STAT_DESC_HANDLE5((sdesc->data[1]));
sys/dev/qlxgbe/ql_isr.c
422
*handle++ = Q8_SGL_STAT_DESC_HANDLE1((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
423
*handle++ = Q8_SGL_STAT_DESC_HANDLE2((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
424
*handle++ = Q8_SGL_STAT_DESC_HANDLE3((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
425
*handle++ = Q8_SGL_STAT_DESC_HANDLE4((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
426
*handle++ = Q8_SGL_STAT_DESC_HANDLE5((sdesc->data[1]));
sys/dev/qlxgbe/ql_isr.c
427
*handle++ = Q8_SGL_STAT_DESC_HANDLE6((sdesc->data[1]));
sys/dev/qlxgbe/ql_isr.c
431
*handle++ = Q8_SGL_STAT_DESC_HANDLE1((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
432
*handle++ = Q8_SGL_STAT_DESC_HANDLE2((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
433
*handle++ = Q8_SGL_STAT_DESC_HANDLE3((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
434
*handle++ = Q8_SGL_STAT_DESC_HANDLE4((sdesc->data[0]));
sys/dev/qlxgbe/ql_isr.c
435
*handle++ = Q8_SGL_STAT_DESC_HANDLE5((sdesc->data[1]));
sys/dev/qlxgbe/ql_isr.c
436
*handle++ = Q8_SGL_STAT_DESC_HANDLE6((sdesc->data[1]));
sys/dev/qlxgbe/ql_isr.c
437
*handle++ = Q8_SGL_STAT_DESC_HANDLE7((sdesc->data[1]));
sys/dev/qlxgbe/ql_isr.c
512
sgc.rcv.handle[0] =
sys/dev/qlxgbe/ql_isr.c
569
sgc.rcv.handle[0] =
sys/dev/qlxgbe/ql_isr.c
573
&sgc.rcv.handle[1], &nhandles)) {
sys/dev/qlxgbe/ql_isr.c
617
sgc.lro.handle[0] =
sys/dev/qlxgbe/ql_isr.c
644
desc_count, &sgc.lro.handle[1], &nhandles)) {
sys/dev/qlxgbe/ql_isr.c
84
rxb = &rx_ring->rx_buf[sgc->handle[i] & 0x7FFF];
sys/dev/qlxgbe/ql_isr.c
912
rxb->handle,
sys/dev/qlxgbe/ql_isr.c
923
__func__, r_idx, rdesc->rx_in, rxb->handle);
sys/dev/qlxgbe/ql_isr.c
94
__func__, sds_idx, i, sgc->handle[i]);
sys/dev/qlxgbe/ql_os.c
1827
rxb->handle = i;
sys/dev/qlxgbe/ql_os.c
1834
qla_set_hw_rcv_desc(ha, r, i, rxb->handle,
sys/dev/qlxgbe/ql_os.c
467
&ha->irq_vec[i].handle)) {
sys/dev/qlxgbe/ql_os.c
677
if (ha->irq_vec[i].handle) {
sys/dev/qlxgbe/ql_os.c
679
ha->irq_vec[i].handle);
sys/dev/qlxge/qls_def.h
58
void *handle;
sys/dev/qlxge/qls_os.c
413
&ha->irq_vec[i], &ha->irq_vec[i].handle)) {
sys/dev/qlxge/qls_os.c
544
if (ha->irq_vec[i].handle) {
sys/dev/qlxge/qls_os.c
546
ha->irq_vec[i].handle);
sys/dev/safexcel/safexcel.c
1040
&sc->sc_ih[i], &sc->sc_ih[i].handle)) {
sys/dev/safexcel/safexcel.c
1057
sc->sc_ih[j].handle);
sys/dev/safexcel/safexcel.c
1069
sc->sc_ih[i].handle);
sys/dev/safexcel/safexcel_var.h
398
void *handle;
sys/dev/sdhci/sdhci_acpi.c
243
ACPI_HANDLE handle;
sys/dev/sdhci/sdhci_acpi.c
251
handle = acpi_get_handle(dev);
sys/dev/sdhci/sdhci_acpi.c
252
status = acpi_GetInteger(handle, "_UID", &uid);
sys/dev/sfxge/common/ef10_filter.c
197
__inout ef10_filter_handle_t *handle)
sys/dev/sfxge/common/ef10_filter.c
220
handle->efh_lo);
sys/dev/sfxge/common/ef10_filter.c
222
handle->efh_hi);
sys/dev/sfxge/common/ef10_filter.c
376
handle->efh_lo = MCDI_OUT_DWORD(req, FILTER_OP_EXT_OUT_HANDLE_LO);
sys/dev/sfxge/common/ef10_filter.c
377
handle->efh_hi = MCDI_OUT_DWORD(req, FILTER_OP_EXT_OUT_HANDLE_HI);
sys/dev/sfxge/common/ef10_filter.c
400
__inout ef10_filter_handle_t *handle)
sys/dev/sfxge/common/ef10_filter.c
428
MCDI_IN_SET_DWORD(req, FILTER_OP_EXT_IN_HANDLE_LO, handle->efh_lo);
sys/dev/sfxge/common/ef10_filter.c
429
MCDI_IN_SET_DWORD(req, FILTER_OP_EXT_IN_HANDLE_HI, handle->efh_hi);
sys/dev/sfxge/common/ef10_impl.h
863
__in efx_piobuf_handle_t handle);
sys/dev/sfxge/common/ef10_nic.c
1004
__in efx_piobuf_handle_t handle)
sys/dev/sfxge/common/ef10_nic.c
1006
return (efx_mcdi_link_piobuf(enp, vi_index, handle));
sys/dev/sfxge/common/ef10_nic.c
752
__in efx_piobuf_handle_t handle)
sys/dev/sfxge/common/ef10_nic.c
765
MCDI_IN_SET_DWORD(req, FREE_PIOBUF_IN_PIOBUF_HANDLE, handle);
sys/dev/sfxge/common/ef10_nic.c
786
__in efx_piobuf_handle_t handle)
sys/dev/sfxge/common/ef10_nic.c
799
MCDI_IN_SET_DWORD(req, LINK_PIOBUF_IN_PIOBUF_HANDLE, handle);
sys/dev/sfxge/common/ef10_tx.c
262
efx_piobuf_handle_t handle;
sys/dev/sfxge/common/ef10_tx.c
273
&handle,
sys/dev/sfxge/common/ef10_tx.c
282
if ((rc = ef10_nic_pio_link(enp, etp->et_index, handle)) != 0) {
sys/dev/sfxge/common/efx_mcdi.c
850
__in unsigned int handle,
sys/dev/sfxge/common/efx_mcdi.c
865
emtp->emt_ev_proxy_response(emtp->emt_context, handle, rc);
sys/dev/sfxge/common/efx_mcdi.h
112
__in unsigned int handle,
sys/dev/siis/siis.c
216
ctlr->irq.handle);
sys/dev/siis/siis.c
283
siis_intr, ctlr, &ctlr->irq.handle))) {
sys/dev/siis/siis.h
405
void *handle;
sys/dev/smbios/smbios.h
77
uint16_t handle;
sys/dev/spibus/acpi_spibus.c
239
acpi_spibus_delete_acpi_child(ACPI_HANDLE handle)
sys/dev/spibus/acpi_spibus.c
244
acpi_child = acpi_get_device(handle);
sys/dev/spibus/acpi_spibus.c
268
acpi_spibus_enumerate_child(ACPI_HANDLE handle, UINT32 level,
sys/dev/spibus/acpi_spibus.c
283
if (!ACPI_FAILURE(acpi_GetInteger(handle, "_STA", &sta)) &&
sys/dev/spibus/acpi_spibus.c
287
if (!acpi_has_hid(handle))
sys/dev/spibus/acpi_spibus.c
291
if (acpi_spibus_get_acpi_res(spibus, handle, &res) == 0)
sys/dev/spibus/acpi_spibus.c
295
acpi_spibus_get_apple_res(spibus, handle, &res) == 0)
sys/dev/spibus/acpi_spibus.c
302
if (acpi_spibus_delete_acpi_child(handle) != 0)
sys/dev/spibus/acpi_spibus.c
315
acpi_set_handle(child, handle);
sys/dev/spibus/acpi_spibus.c
316
acpi_parse_resources(child, handle, &acpi_res_parse_set, NULL);
sys/dev/spibus/acpi_spibus.c
321
status = AcpiAttachData(handle, acpi_fake_objhandler, child);
sys/dev/spibus/acpi_spibus.c
324
acpi_name(handle), AcpiFormatException(status));
sys/dev/spibus/acpi_spibus.c
355
ACPI_HANDLE handle;
sys/dev/spibus/acpi_spibus.c
365
handle = acpi_get_handle(controller);
sys/dev/spibus/acpi_spibus.c
366
if (handle == NULL)
sys/dev/spibus/acpi_spibus.c
484
if (acpi_get_device(devi->handle) == child)
sys/dev/spibus/acpi_spibus.c
485
AcpiDetachData(devi->handle, acpi_fake_objhandler);
sys/dev/spibus/acpi_spibus.c
495
*res = (uintptr_t)devi->handle;
sys/dev/spibus/acpi_spibus.c
511
if (devi->handle != NULL)
sys/dev/spibus/acpi_spibus.c
513
devi->handle = (ACPI_HANDLE)val;
sys/dev/spibus/acpi_spibus.c
535
if (devi->handle != NULL)
sys/dev/spibus/acpi_spibus.c
536
sbuf_printf(sb, " handle=%s", acpi_name(devi->handle));
sys/dev/spibus/acpi_spibus.c
548
devi->handle == NULL ? ENOTSUP : acpi_pnpinfo(devi->handle, sb));
sys/dev/spibus/acpi_spibus.c
65
ACPI_HANDLE handle;
sys/dev/spibus/acpi_spibus.c
80
ACPI_HANDLE handle;
sys/dev/spibus/acpi_spibus.c
84
res->Data.SpiSerialBus.ResourceSource.StringPtr, &handle);
sys/dev/spibus/acpi_spibus.c
93
sb->ResourceSource_Handle = handle;
sys/dev/tpm/tpm_crb.c
250
ACPI_HANDLE handle;
sys/dev/tpm/tpm_crb.c
256
handle = acpi_get_handle(dev);
sys/dev/tpm/tpm_crb.c
306
status = AcpiWalkResources(handle, "_CRS", tpmcrb_fix_buff_offsets,
sys/dev/usb/usb_hub_acpi.c
184
sbuf_printf(&sb, "Handle %s\n", acpi_name(port->handle));
sys/dev/usb/usb_hub_acpi.c
388
sc->port[devinfo->Address - 1].handle = ah;
sys/dev/usb/usb_hub_acpi.c
535
(ah = sc->port[hres.portno - 1].handle)) {
sys/dev/usb/usb_hub_acpi.c
85
ACPI_HANDLE handle;
sys/dev/virtio/p9fs/virtio_p9fs.c
141
vt9p_request(void *handle, struct p9_req_t *req)
sys/dev/virtio/p9fs/virtio_p9fs.c
149
chan = handle;
sys/dev/virtio/p9fs/virtio_p9fs.c
434
vt9p_close(void *handle)
sys/dev/virtio/p9fs/virtio_p9fs.c
436
struct vt9p_softc *chan = handle;
sys/dev/virtio/p9fs/virtio_p9fs.c
91
vt9p_cancel(void *handle, struct p9_req_t *req)
sys/dev/vmgenc/vmgenc_acpi.c
155
vmgenc_acpi_getname(ACPI_HANDLE handle, char data[static 256])
sys/dev/vmgenc/vmgenc_acpi.c
162
if (ACPI_SUCCESS(AcpiGetName(handle, ACPI_FULL_PATHNAME, &buf)))
sys/dev/vmgenc/vmgenc_acpi.c
168
acpi_GetPackedUINT64(device_t dev, ACPI_HANDLE handle, char *path,
sys/dev/vmgenc/vmgenc_acpi.c
178
status = AcpiEvaluateObject(handle, path, NULL, &buf);
sys/dev/vmgenc/vmgenc_acpi.c
181
vmgenc_acpi_getname(handle, hpath), path,
sys/dev/vmgenc/vmgenc_acpi.c
187
vmgenc_acpi_getname(handle, hpath), path,
sys/dev/vmgenc/vmgenc_acpi.c
193
__func__, vmgenc_acpi_getname(handle, hpath), path,
sys/dev/vmgenc/vmgenc_acpi.c
200
__func__, vmgenc_acpi_getname(handle, hpath), path,
sys/dev/vmware/vmci/vmci_call_defs.h
107
struct vmci_handle handle;
sys/dev/vmware/vmci/vmci_call_defs.h
116
struct vmci_handle handle;
sys/dev/vmware/vmci/vmci_call_defs.h
160
struct vmci_handle handle;
sys/dev/vmware/vmci/vmci_call_defs.h
228
struct vmci_handle handle;
sys/dev/vmware/vmci/vmci_call_defs.h
239
struct vmci_handle handle;
sys/dev/vmware/vmci/vmci_call_defs.h
97
struct vmci_handle handle;
sys/dev/vmware/vmci/vmci_datagram.c
132
struct vmci_handle handle;
sys/dev/vmware/vmci/vmci_datagram.c
157
handle = VMCI_MAKE_HANDLE(context_id, resource_id);
sys/dev/vmware/vmci/vmci_datagram.c
185
VMCI_RESOURCE_TYPE_DATAGRAM, handle, datagram_free_cb, entry);
sys/dev/vmware/vmci/vmci_datagram.c
188
"(handle=0x%x:0x%x).\n", handle.context, handle.resource);
sys/dev/vmware/vmci/vmci_datagram.c
193
*out_handle = handle;
sys/dev/vmware/vmci/vmci_datagram.c
291
vmci_datagram_destroy_handle(struct vmci_handle handle)
sys/dev/vmware/vmci/vmci_datagram.c
296
resource = vmci_resource_get(handle,
sys/dev/vmware/vmci/vmci_datagram.c
300
"(handle=0x%x:0x%x).\n", handle.context, handle.resource);
sys/dev/vmware/vmci/vmci_datagram.c
305
vmci_resource_remove(handle, VMCI_RESOURCE_TYPE_DATAGRAM);
sys/dev/vmware/vmci/vmci_datagram.c
341
vmci_datagram_get_priv_flags_int(vmci_id context_id, struct vmci_handle handle,
sys/dev/vmware/vmci/vmci_datagram.c
352
resource = vmci_resource_get(handle,
sys/dev/vmware/vmci/vmci_datagram.c
388
vmci_datagram_get_priv_flags(struct vmci_handle handle,
sys/dev/vmware/vmci/vmci_datagram.c
392
if (priv_flags == NULL || handle.context == VMCI_INVALID_ID)
sys/dev/vmware/vmci/vmci_datagram.c
395
return (vmci_datagram_get_priv_flags_int(handle.context, handle,
sys/dev/vmware/vmci/vmci_datagram.c
40
struct vmci_handle handle,
sys/dev/vmware/vmci/vmci_datagram.h
17
int vmci_datagram_get_priv_flags(struct vmci_handle handle,
sys/dev/vmware/vmci/vmci_defs.h
382
struct vmci_handle handle; /* Identifier. */
sys/dev/vmware/vmci/vmci_defs.h
627
const struct vmci_handle handle)
sys/dev/vmware/vmci/vmci_defs.h
630
q_header->handle = handle;
sys/dev/vmware/vmci/vmci_doorbell.c
203
vmci_doorbell_get_priv_flags(struct vmci_handle handle,
sys/dev/vmware/vmci/vmci_doorbell.c
207
if (priv_flags == NULL || handle.context == VMCI_INVALID_ID)
sys/dev/vmware/vmci/vmci_doorbell.c
210
if (handle.context == VMCI_HOST_CONTEXT_ID) {
sys/dev/vmware/vmci/vmci_doorbell.c
214
resource = vmci_resource_get(handle,
sys/dev/vmware/vmci/vmci_doorbell.c
222
} else if (handle.context == VMCI_HYPERVISOR_CONTEXT_ID) {
sys/dev/vmware/vmci/vmci_doorbell.c
404
vmci_doorbell_link(struct vmci_handle handle, bool is_doorbell,
sys/dev/vmware/vmci/vmci_doorbell.c
410
ASSERT(!VMCI_HANDLE_INVALID(handle));
sys/dev/vmware/vmci/vmci_doorbell.c
423
link_msg.handle = handle;
sys/dev/vmware/vmci/vmci_doorbell.c
447
vmci_doorbell_unlink(struct vmci_handle handle, bool is_doorbell)
sys/dev/vmware/vmci/vmci_doorbell.c
452
ASSERT(!VMCI_HANDLE_INVALID(handle));
sys/dev/vmware/vmci/vmci_doorbell.c
465
unlink_msg.handle = handle;
sys/dev/vmware/vmci/vmci_doorbell.c
493
vmci_doorbell_create(struct vmci_handle *handle, uint32_t flags,
sys/dev/vmware/vmci/vmci_doorbell.c
500
if (!handle || !notify_cb || flags & ~VMCI_FLAG_DELAYED_CB ||
sys/dev/vmware/vmci/vmci_doorbell.c
517
if (VMCI_HANDLE_INVALID(*handle)) {
sys/dev/vmware/vmci/vmci_doorbell.c
528
if (VMCI_INVALID_ID == handle->resource) {
sys/dev/vmware/vmci/vmci_doorbell.c
530
"(handle=0x%x:0x%x).\n", handle->context,
sys/dev/vmware/vmci/vmci_doorbell.c
531
handle->resource);
sys/dev/vmware/vmci/vmci_doorbell.c
535
new_handle = *handle;
sys/dev/vmware/vmci/vmci_doorbell.c
566
if (VMCI_HANDLE_INVALID(*handle))
sys/dev/vmware/vmci/vmci_doorbell.c
567
*handle = new_handle;
sys/dev/vmware/vmci/vmci_doorbell.c
599
vmci_doorbell_destroy(struct vmci_handle handle)
sys/dev/vmware/vmci/vmci_doorbell.c
605
if (VMCI_HANDLE_INVALID(handle))
sys/dev/vmware/vmci/vmci_doorbell.c
608
resource = vmci_resource_get(handle, VMCI_RESOURCE_TYPE_DOORBELL);
sys/dev/vmware/vmci/vmci_doorbell.c
611
"(handle=0x%x:0x%x).\n", handle.context, handle.resource);
sys/dev/vmware/vmci/vmci_doorbell.c
619
result = vmci_doorbell_unlink(handle, entry->is_doorbell);
sys/dev/vmware/vmci/vmci_doorbell.c
635
handle.context, handle.resource, result);
sys/dev/vmware/vmci/vmci_doorbell.c
643
vmci_resource_remove(handle, VMCI_RESOURCE_TYPE_DOORBELL);
sys/dev/vmware/vmci/vmci_doorbell.c
682
vmci_doorbell_notify_as_guest(struct vmci_handle handle,
sys/dev/vmware/vmci/vmci_doorbell.c
691
notify_msg.handle = handle;
sys/dev/vmware/vmci/vmci_doorbell.h
20
struct vmci_handle handle);
sys/dev/vmware/vmci/vmci_doorbell.h
21
int vmci_doorbell_get_priv_flags(struct vmci_handle handle,
sys/dev/vmware/vmci/vmci_hashtable.c
122
struct vmci_handle handle)
sys/dev/vmware/vmci/vmci_hashtable.c
126
entry->handle = handle;
sys/dev/vmware/vmci/vmci_hashtable.c
157
if (vmci_hashtable_entry_exists_locked(table, entry->handle)) {
sys/dev/vmware/vmci/vmci_hashtable.c
159
"exists.\n", entry->handle.context,
sys/dev/vmware/vmci/vmci_hashtable.c
160
entry->handle.resource);
sys/dev/vmware/vmci/vmci_hashtable.c
165
idx = VMCI_HASHTABLE_HASH(entry->handle, table->size);
sys/dev/vmware/vmci/vmci_hashtable.c
24
struct vmci_handle handle);
sys/dev/vmware/vmci/vmci_hashtable.c
243
struct vmci_handle handle)
sys/dev/vmware/vmci/vmci_hashtable.c
248
ASSERT(!VMCI_HANDLE_EQUAL(handle, VMCI_INVALID_HANDLE));
sys/dev/vmware/vmci/vmci_hashtable.c
251
idx = VMCI_HASHTABLE_HASH(handle, table->size);
sys/dev/vmware/vmci/vmci_hashtable.c
258
if (VMCI_HANDLE_TO_RESOURCE_ID(cur->handle) ==
sys/dev/vmware/vmci/vmci_hashtable.c
259
VMCI_HANDLE_TO_RESOURCE_ID(handle)) {
sys/dev/vmware/vmci/vmci_hashtable.c
260
if ((VMCI_HANDLE_TO_CONTEXT_ID(cur->handle) ==
sys/dev/vmware/vmci/vmci_hashtable.c
261
VMCI_HANDLE_TO_CONTEXT_ID(handle)) ||
sys/dev/vmware/vmci/vmci_hashtable.c
262
(VMCI_INVALID_ID == VMCI_HANDLE_TO_CONTEXT_ID(cur->handle))) {
sys/dev/vmware/vmci/vmci_hashtable.c
291
struct vmci_handle handle)
sys/dev/vmware/vmci/vmci_hashtable.c
295
if (VMCI_HANDLE_EQUAL(handle, VMCI_INVALID_HANDLE))
sys/dev/vmware/vmci/vmci_hashtable.c
301
entry = vmci_hashtable_get_entry_locked(table, handle);
sys/dev/vmware/vmci/vmci_hashtable.c
434
struct vmci_handle handle)
sys/dev/vmware/vmci/vmci_hashtable.c
441
exists = vmci_hashtable_entry_exists_locked(table, handle);
sys/dev/vmware/vmci/vmci_hashtable.c
465
struct vmci_handle handle)
sys/dev/vmware/vmci/vmci_hashtable.c
473
idx = VMCI_HASHTABLE_HASH(handle, table->size);
sys/dev/vmware/vmci/vmci_hashtable.c
477
if (VMCI_HANDLE_TO_RESOURCE_ID(entry->handle) ==
sys/dev/vmware/vmci/vmci_hashtable.c
478
VMCI_HANDLE_TO_RESOURCE_ID(handle))
sys/dev/vmware/vmci/vmci_hashtable.c
479
if ((VMCI_HANDLE_TO_CONTEXT_ID(entry->handle) ==
sys/dev/vmware/vmci/vmci_hashtable.c
480
VMCI_HANDLE_TO_CONTEXT_ID(handle)) ||
sys/dev/vmware/vmci/vmci_hashtable.c
481
(VMCI_INVALID_ID == VMCI_HANDLE_TO_CONTEXT_ID(handle)) ||
sys/dev/vmware/vmci/vmci_hashtable.c
482
(VMCI_INVALID_ID == VMCI_HANDLE_TO_CONTEXT_ID(entry->handle)))
sys/dev/vmware/vmci/vmci_hashtable.c
514
idx = VMCI_HASHTABLE_HASH(entry->handle, table->size);
sys/dev/vmware/vmci/vmci_hashtable.c
523
if (VMCI_HANDLE_EQUAL(cur->handle, entry->handle)) {
sys/dev/vmware/vmci/vmci_hashtable.h
16
struct vmci_handle handle;
sys/dev/vmware/vmci/vmci_hashtable.h
31
struct vmci_handle handle);
sys/dev/vmware/vmci/vmci_hashtable.h
37
struct vmci_handle handle);
sys/dev/vmware/vmci/vmci_hashtable.h
43
struct vmci_handle handle);
sys/dev/vmware/vmci/vmci_kernel_api_1.h
27
int vmci_datagram_destroy_handle(struct vmci_handle handle);
sys/dev/vmware/vmci/vmci_kernel_api_1.h
44
int vmci_qpair_alloc(struct vmci_qpair **qpair, struct vmci_handle *handle,
sys/dev/vmware/vmci/vmci_kernel_api_2.h
25
int vmci_doorbell_create(struct vmci_handle *handle, uint32_t flags,
sys/dev/vmware/vmci/vmci_kernel_api_2.h
28
int vmci_doorbell_destroy(struct vmci_handle handle);
sys/dev/vmware/vmci/vmci_kernel_api_2.h
29
int vmci_doorbell_notify(struct vmci_handle handle,
sys/dev/vmware/vmci/vmci_kernel_if.c
1107
vmci_read_port_bytes(vmci_io_handle handle, vmci_io_port port, uint8_t *buffer,
sys/dev/vmware/vmci/vmci_kernel_if.h
39
void vmci_read_port_bytes(vmci_io_handle handle, vmci_io_port port,
sys/dev/vmware/vmci/vmci_qpair.c
144
vmci_qpair_alloc(struct vmci_qpair **qpair, struct vmci_handle *handle,
sys/dev/vmware/vmci/vmci_qpair.c
181
retval = vmci_queue_pair_alloc(handle, &my_qpair->produce_q,
sys/dev/vmware/vmci/vmci_qpair.c
192
my_qpair->handle = *handle;
sys/dev/vmware/vmci/vmci_qpair.c
225
result = vmci_queue_pair_detach(old_qpair->handle);
sys/dev/vmware/vmci/vmci_qpair.c
26
struct vmci_handle handle;
sys/dev/vmware/vmci/vmci_queue_pair.c
102
return (vmci_queue_pair_alloc_guest_work(handle, produce_q,
sys/dev/vmware/vmci/vmci_queue_pair.c
124
vmci_queue_pair_detach(struct vmci_handle handle)
sys/dev/vmware/vmci/vmci_queue_pair.c
127
if (VMCI_HANDLE_INVALID(handle))
sys/dev/vmware/vmci/vmci_queue_pair.c
130
return (vmci_queue_pair_detach_guest_work(handle));
sys/dev/vmware/vmci/vmci_queue_pair.c
203
struct vmci_handle handle)
sys/dev/vmware/vmci/vmci_queue_pair.c
207
if (VMCI_HANDLE_INVALID(handle))
sys/dev/vmware/vmci/vmci_queue_pair.c
21
struct vmci_handle handle;
sys/dev/vmware/vmci/vmci_queue_pair.c
211
if (VMCI_HANDLE_EQUAL(next->handle, handle))
sys/dev/vmware/vmci/vmci_queue_pair.c
351
vmci_queue_pair_detach_hypercall(entry->qp.handle);
sys/dev/vmware/vmci/vmci_queue_pair.c
410
qp_guest_endpoint_create(struct vmci_handle handle, vmci_id peer,
sys/dev/vmware/vmci/vmci_queue_pair.c
424
if (VMCI_HANDLE_INVALID(handle)) {
sys/dev/vmware/vmci/vmci_queue_pair.c
434
handle = VMCI_MAKE_HANDLE(context_id, queue_pair_rid);
sys/dev/vmware/vmci/vmci_queue_pair.c
438
handle);
sys/dev/vmware/vmci/vmci_queue_pair.c
458
ASSERT(!VMCI_HANDLE_INVALID(handle) &&
sys/dev/vmware/vmci/vmci_queue_pair.c
459
queue_pair_list_find_entry(&qp_guest_endpoints, handle) == NULL);
sys/dev/vmware/vmci/vmci_queue_pair.c
462
entry->qp.handle = handle;
sys/dev/vmware/vmci/vmci_queue_pair.c
51
struct queue_pair_list *qp_list, struct vmci_handle handle);
sys/dev/vmware/vmci/vmci_queue_pair.c
542
alloc_msg->handle = entry->qp.handle;
sys/dev/vmware/vmci/vmci_queue_pair.c
576
vmci_queue_pair_alloc_guest_work(struct vmci_handle *handle,
sys/dev/vmware/vmci/vmci_queue_pair.c
588
ASSERT(handle && produce_q && consume_q &&
sys/dev/vmware/vmci/vmci_queue_pair.c
59
struct vmci_handle handle);
sys/dev/vmware/vmci/vmci_queue_pair.c
61
struct vmci_handle handle, vmci_id peer, uint32_t flags,
sys/dev/vmware/vmci/vmci_queue_pair.c
611
&qp_guest_endpoints, *handle)) != NULL) {
sys/dev/vmware/vmci/vmci_queue_pair.c
635
result = queue_pair_notify_peer_local(true, *handle);
sys/dev/vmware/vmci/vmci_queue_pair.c
662
queue_pair_entry = qp_guest_endpoint_create(*handle, peer, flags,
sys/dev/vmware/vmci/vmci_queue_pair.c
67
static int vmci_queue_pair_alloc_guest_work(struct vmci_handle *handle,
sys/dev/vmware/vmci/vmci_queue_pair.c
694
if (queue_pair_entry->qp.handle.context != context_id ||
sys/dev/vmware/vmci/vmci_queue_pair.c
719
*handle = queue_pair_entry->qp.handle;
sys/dev/vmware/vmci/vmci_queue_pair.c
72
static int vmci_queue_pair_detach_guest_work(struct vmci_handle handle);
sys/dev/vmware/vmci/vmci_queue_pair.c
73
static int vmci_queue_pair_detach_hypercall(struct vmci_handle handle);
sys/dev/vmware/vmci/vmci_queue_pair.c
730
vmci_queue_header_init((*produce_q)->q_header, *handle);
sys/dev/vmware/vmci/vmci_queue_pair.c
731
vmci_queue_header_init((*consume_q)->q_header, *handle);
sys/dev/vmware/vmci/vmci_queue_pair.c
776
vmci_queue_pair_detach_hypercall(struct vmci_handle handle)
sys/dev/vmware/vmci/vmci_queue_pair.c
783
detach_msg.hdr.payload_size = sizeof(handle);
sys/dev/vmware/vmci/vmci_queue_pair.c
784
detach_msg.handle = handle;
sys/dev/vmware/vmci/vmci_queue_pair.c
807
vmci_queue_pair_detach_guest_work(struct vmci_handle handle)
sys/dev/vmware/vmci/vmci_queue_pair.c
813
ASSERT(!VMCI_HANDLE_INVALID(handle));
sys/dev/vmware/vmci/vmci_queue_pair.c
818
&qp_guest_endpoints, handle);
sys/dev/vmware/vmci/vmci_queue_pair.c
830
result = queue_pair_notify_peer_local(false, handle);
sys/dev/vmware/vmci/vmci_queue_pair.c
839
result = vmci_queue_pair_detach_hypercall(handle);
sys/dev/vmware/vmci/vmci_queue_pair.c
914
queue_pair_notify_peer_local(bool attach, struct vmci_handle handle)
sys/dev/vmware/vmci/vmci_queue_pair.c
93
vmci_queue_pair_alloc(struct vmci_handle *handle, struct vmci_queue **produce_q,
sys/dev/vmware/vmci/vmci_queue_pair.c
934
e_payload->handle = handle;
sys/dev/vmware/vmci/vmci_queue_pair.c
98
if (!handle || !produce_q || !consume_q ||
sys/dev/vmware/vmci/vmci_queue_pair.h
20
int vmci_queue_pair_alloc(struct vmci_handle *handle,
sys/dev/vmware/vmci/vmci_queue_pair.h
24
int vmci_queue_pair_detach(struct vmci_handle handle);
sys/dev/vmware/vmci/vmci_resource.c
125
struct vmci_handle handle;
sys/dev/vmware/vmci/vmci_resource.c
129
handle = VMCI_MAKE_HANDLE(context_id, current_rid);
sys/dev/vmware/vmci/vmci_resource.c
137
handle);
sys/dev/vmware/vmci/vmci_resource.c
371
return (resource->hash_entry.handle);
sys/dev/vnic/nic.h
149
void * handle;
sys/dev/vnic/nic_main.c
1080
if (nic->msix_entries[irq].handle != NULL) {
sys/dev/vnic/nic_main.c
1083
nic->msix_entries[irq].handle);
sys/dev/vnic/nic_main.c
1113
&nic->msix_entries[irq].handle);
sys/dev/vnic/nic_main.c
1127
&nic->msix_entries[irq].handle);
sys/dev/vnic/nicvf_main.c
1245
if (nic->msix_entries[irq].handle != NULL) {
sys/dev/vnic/nicvf_main.c
1248
nic->msix_entries[irq].handle);
sys/dev/vnic/nicvf_main.c
1251
nic->msix_entries[irq].handle = NULL;
sys/dev/vnic/nicvf_main.c
1294
&nic->msix_entries[irq].handle);
sys/dev/vnic/nicvf_main.c
1334
if (nic->msix_entries[irq].handle != NULL) {
sys/dev/vnic/nicvf_main.c
1337
nic->msix_entries[irq].handle);
sys/dev/vnic/nicvf_main.c
1356
if (nic->msix_entries[irq].handle != NULL) {
sys/dev/vnic/nicvf_main.c
1359
nic->msix_entries[irq].handle);
sys/dev/vnic/nicvf_main.c
1377
if (nic->msix_entries[irq].handle != NULL) {
sys/dev/vnic/nicvf_main.c
1380
nic->msix_entries[irq].handle);
sys/dev/vnic/nicvf_main.c
1428
NULL, &nic->qs->cq[qidx], &nic->msix_entries[irq].handle);
sys/dev/vnic/nicvf_main.c
1470
&nic->msix_entries[irq].handle);
sys/dev/vnic/nicvf_main.c
1494
nic, &nic->msix_entries[irq].handle);
sys/dev/xen/blkback/blkback.c
1023
unmap[invcount].handle = reqlist->gnt_handles[i];
sys/dev/xen/blkback/blkback.c
1661
reqlist->gnt_handles[seg_idx] = map->handle;
sys/dev/xen/blkback/blkback.c
2648
op->handle = xbb->ring_config.handle[ring_idx];
sys/dev/xen/blkback/blkback.c
2749
unmap[j++].handle = gnts[i].handle;
sys/dev/xen/blkback/blkback.c
2760
xbb->ring_config.handle[ring_idx] = gnt->handle;
sys/dev/xen/blkback/blkback.c
348
grant_handle_t handle[XBB_MAX_RING_PAGES];
sys/dev/xen/blkfront/blkfront.c
239
ring_req->handle = (blkif_vdev_t)(uintptr_t)sc->xbd_disk;
sys/dev/xen/blkfront/blkfront.c
258
ring_req->handle = (blkif_vdev_t)(uintptr_t)sc->xbd_disk;
sys/dev/xen/bus/xen_intr.c
1015
xen_intr_signal(xen_intr_handle_t handle)
sys/dev/xen/bus/xen_intr.c
1019
isrc = xen_intr_isrc_from_handle(handle);
sys/dev/xen/bus/xen_intr.c
1030
xen_intr_port(xen_intr_handle_t handle)
sys/dev/xen/bus/xen_intr.c
1034
isrc = xen_intr_isrc_from_handle(handle);
sys/dev/xen/bus/xen_intr.c
1044
xen_intr_handle_t handle)
sys/dev/xen/bus/xen_intr.c
1049
isrc = xen_intr_isrc_from_handle(handle);
sys/dev/xen/bus/xen_intr.c
145
xen_intr_isrc_from_handle(xen_intr_handle_t handle)
sys/dev/xen/bus/xen_intr.c
147
return ((struct xenisrc *)handle);
sys/dev/xen/evtchn/evtchn_dev.c
222
xen_intr_unbind(&evtchn->handle);
sys/dev/xen/evtchn/evtchn_dev.c
365
evtchn->port = xen_intr_port(evtchn->handle);
sys/dev/xen/evtchn/evtchn_dev.c
373
INTR_TYPE_MISC | INTR_MPSAFE, evtchn->handle);
sys/dev/xen/evtchn/evtchn_dev.c
375
xen_intr_unbind(&evtchn->handle);
sys/dev/xen/evtchn/evtchn_dev.c
405
NULL, NULL, NULL, 0, &evtchn->handle);
sys/dev/xen/evtchn/evtchn_dev.c
427
NULL, NULL, 0, &evtchn->handle);
sys/dev/xen/evtchn/evtchn_dev.c
448
bind->remote_domain, NULL, NULL, NULL, 0, &evtchn->handle);
sys/dev/xen/evtchn/evtchn_dev.c
475
xen_intr_unbind(&evtchn->handle);
sys/dev/xen/evtchn/evtchn_dev.c
494
xen_intr_signal(evtchn->handle);
sys/dev/xen/evtchn/evtchn_dev.c
90
xen_intr_handle_t handle;
sys/dev/xen/gntdev/gntdev.c
186
static int gntdev_gmap_pg_ctor(void *handle, vm_ooffset_t size,
sys/dev/xen/gntdev/gntdev.c
188
static void gntdev_gmap_pg_dtor(void *handle);
sys/dev/xen/gntdev/gntdev.c
574
if (gmap->grant_map_ops[i].handle != -1) {
sys/dev/xen/gntdev/gntdev.c
575
unmap_ops[count].handle = gmap->grant_map_ops[i].handle;
sys/dev/xen/gntdev/gntdev.c
601
gmap->grant_map_ops[i].handle = -1;
sys/dev/xen/gntdev/gntdev.c
655
gmap->grant_map_ops[i].handle = -1;
sys/dev/xen/gntdev/gntdev.c
751
gmap = mem->handle;
sys/dev/xen/gntdev/gntdev.c
770
gntdev_gmap_pg_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/dev/xen/gntdev/gntdev.c
778
gntdev_gmap_pg_dtor(void *handle)
sys/dev/xen/gntdev/gntdev.c
781
notify_unmap_cleanup((struct gntdev_gmap *)handle);
sys/dev/xen/gntdev/gntdev.c
788
struct gntdev_gmap *gmap = object->handle;
sys/dev/xen/netback/netback.c
1184
uint32_t handle;
sys/dev/xen/netback/netback.c
1216
"%" PRIu32, &handle);
sys/dev/xen/netback/netback.c
1220
xenbus_get_otherend_id(dev), handle);
sys/dev/xen/netback/netback.c
340
grant_handle_t handle;
sys/dev/xen/netback/netback.c
429
long handle;
sys/dev/xen/netback/netback.c
668
gnts[i].handle = xnb->ring_configs[i].handle;
sys/dev/xen/netback/netback.c
725
ring->handle = gnt.handle;
sys/dev/xen/netback/netback.c
868
err = xs_scanf(XST_NIL, our_path, "handle", NULL, "%li", &xnb->handle);
sys/dev/xen/privcmd/privcmd.c
109
privcmd_pg_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/dev/xen/privcmd/privcmd.c
117
privcmd_pg_dtor(void *handle)
sys/dev/xen/privcmd/privcmd.c
120
struct privcmd_map *map = handle;
sys/dev/xen/privcmd/privcmd.c
148
struct privcmd_map *map = object->handle;
sys/dev/xen/privcmd/privcmd.c
240
umap = mem->handle;
sys/dev/xen/privcmd/privcmd.c
89
static int privcmd_pg_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/dev/xen/privcmd/privcmd.c
91
static void privcmd_pg_dtor(void *handle);
sys/dev/xen/xenstore/xenstore.c
133
struct xs_watch *handle;
sys/dev/xen/xenstore/xenstore.c
1627
if (msg->u.watch.handle != watch)
sys/dev/xen/xenstore/xenstore.c
652
msg->u.watch.handle = find_watch(
sys/dev/xen/xenstore/xenstore.c
655
if (msg->u.watch.handle != NULL &&
sys/dev/xen/xenstore/xenstore.c
656
(!msg->u.watch.handle->max_pending ||
sys/dev/xen/xenstore/xenstore.c
657
msg->u.watch.handle->pending <
sys/dev/xen/xenstore/xenstore.c
658
msg->u.watch.handle->max_pending)) {
sys/dev/xen/xenstore/xenstore.c
659
msg->u.watch.handle->pending++;
sys/dev/xen/xenstore/xenstore.c
984
msg->u.watch.handle->pending--;
sys/dev/xen/xenstore/xenstore.c
995
if (msg->u.watch.handle->callback != NULL)
sys/dev/xen/xenstore/xenstore.c
996
msg->u.watch.handle->callback(
sys/dev/xen/xenstore/xenstore.c
997
msg->u.watch.handle,
sys/dev/xen/xenstore/xenstore_dev.c
221
if (trans->handle.id == tx_id)
sys/dev/xen/xenstore/xenstore_dev.c
305
trans->handle.id = strtoul(reply, NULL, 0);
sys/dev/xen/xenstore/xenstore_dev.c
426
xs_transaction_end(trans->handle, 1);
sys/dev/xen/xenstore/xenstore_dev.c
57
struct xs_transaction handle;
sys/fs/cd9660/cd9660_util.c
102
int flags, void *handle, void *lhandle)
sys/fs/cd9660/cd9660_util.c
113
isofn += isochar(isofn, isoend, joliet_level, &c, NULL, flags, handle);
sys/fs/cd9660/cd9660_util.c
125
NULL, flags, handle);
sys/fs/cd9660/cd9660_util.c
141
isofn += isochar(isofn, isoend, joliet_level, &c, NULL, flags, handle);
sys/fs/cd9660/cd9660_util.c
148
NULL, flags, handle);
sys/fs/cd9660/cd9660_util.c
165
int original, int assoc, int joliet_level, int flags, void *handle)
sys/fs/cd9660/cd9660_util.c
175
infn += isochar(infn, infnend, joliet_level, &c, &clen, flags, handle);
sys/fs/cd9660/cd9660_util.c
195
void *handle)
sys/fs/cd9660/cd9660_util.c
206
cd9660_iconv->convchr(handle, (const char **)&string,
sys/fs/cd9660/cd9660_util.c
56
int flags, void *handle)
sys/fs/cd9660/cd9660_util.c
74
cd9660_iconv->convchr(handle, __DECONST(const char **, &inp), &i,
sys/fs/msdosfs/msdosfs_conv.c
64
static int mbsadjpos(const char **, size_t, size_t, int, int, void *handle);
sys/fs/msdosfs/msdosfs_conv.c
779
mbsadjpos(const char **instr, size_t inlen, size_t outlen, int weight, int flag, void *handle)
sys/fs/msdosfs/msdosfs_conv.c
786
msdosfs_iconv->conv(handle, instr, &inlen, &outp, &outlen);
sys/fs/p9fs/p9_client.c
359
*error = c->ops->request(c->handle, req);
sys/fs/p9fs/p9_client.c
564
*error = clnt->ops->create(mount_tag, &clnt->handle);
sys/fs/p9fs/p9_client.c
589
clnt->ops->close(clnt->handle);
sys/fs/p9fs/p9_client.h
83
void *handle; /* module-specific client handle */
sys/fs/p9fs/p9_transport.h
42
void (*close) (void *handle);
sys/fs/p9fs/p9_transport.h
44
int (*request) (void *handle, struct p9_req_t *req);
sys/fs/p9fs/p9_transport.h
46
int (*cancel) (void *handle, struct p9_req_t *req);
sys/fs/tmpfs/tmpfs_subr.c
88
tmpfs_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/fs/tmpfs/tmpfs_subr.c
93
MPASS(handle == NULL);
sys/i386/i386/bios.c
528
u_int8_t handle;
sys/i386/i386/bios.c
664
isa_set_pnpbios_handle(dev, pd->handle);
sys/i386/i386/bios.c
686
printf("pnpbios: node %d compat ID 0x%08x\n", pd->handle, *compid);
sys/i386/i386/bios.c
701
pd->handle, pnp_eisaformat(*devid), *devid);
sys/i386/i386/pmap_base.c
553
pmap_bios16_leave(void *handle)
sys/i386/i386/pmap_base.c
556
pmap_methods_ptr->pm_bios16_leave(handle);
sys/i386/include/pmap.h
219
void pmap_bios16_leave(void *handle);
sys/i386/include/pmap_base.h
59
void (*pm_bios16_leave)(void *handle);
sys/i386/linux/linux_proto.h
1231
char handle_l_[PADL_(struct l_file_handle *)]; struct l_file_handle * handle; char handle_r_[PADR_(struct l_file_handle *)];
sys/i386/linux/linux_proto.h
1237
char handle_l_[PADL_(struct l_file_handle *)]; struct l_file_handle * handle; char handle_r_[PADR_(struct l_file_handle *)];
sys/i386/linux/linux_systrace_args.c
2498
uarg[a++] = (intptr_t)p->handle; /* struct l_file_handle * */
sys/i386/linux/linux_systrace_args.c
2508
uarg[a++] = (intptr_t)p->handle; /* struct l_file_handle * */
sys/kern/kern_clocksource.c
115
u_int handle; /* Immediate handle resuests. */
sys/kern/kern_clocksource.c
452
state->handle = 0;
sys/kern/kern_clocksource.c
459
state->handle = 0;
sys/kern/kern_clocksource.c
463
if (atomic_readandclear_int(&state->handle) && !busy) {
sys/kern/kern_clocksource.c
873
state->handle = 1;
sys/kern/kern_clocksource.c
965
c, st->action, st->handle, st->ipi, st->idle,
sys/kern/subr_unit.c
321
next_iter_unr(void *handle)
sys/kern/subr_unit.c
326
iter = handle;
sys/kern/subr_unit.c
337
free_iter_unr(void *handle)
sys/kern/subr_unit.c
339
Free(handle);
sys/kern/vfs_subr.c
1314
(vp->v_object != NULL && vp->v_object->handle == vp &&
sys/kern/vfs_subr.c
2442
if (vp->v_object != NULL && vp->v_object->handle != vp)
sys/kern/vfs_subr.c
4483
object->handle == vp)
sys/kgssapi/gss_accept_sec_context.c
113
ctx->handle = res.ctx;
sys/kgssapi/gss_accept_sec_context.c
115
name->handle = res.src_name;
sys/kgssapi/gss_accept_sec_context.c
130
cred->handle = res.delegated_cred_handle;
sys/kgssapi/gss_accept_sec_context.c
194
args.ctx = ctx->handle;
sys/kgssapi/gss_accept_sec_context.c
198
args.cred = acceptor_cred_handle->handle;
sys/kgssapi/gss_accept_sec_context.c
231
ctx->handle = res.ctx;
sys/kgssapi/gss_accept_sec_context.c
233
name->handle = res.src_name;
sys/kgssapi/gss_accept_sec_context.c
248
cred->handle = res.delegated_cred_handle;
sys/kgssapi/gss_accept_sec_context.c
76
args.ctx = ctx->handle;
sys/kgssapi/gss_accept_sec_context.c
80
args.cred = acceptor_cred_handle->handle;
sys/kgssapi/gss_acquire_cred.c
68
args.desired_name = desired_name->handle;
sys/kgssapi/gss_acquire_cred.c
89
cred->handle = res.output_cred;
sys/kgssapi/gss_canonicalize_name.c
59
args.input_name = input_name->handle;
sys/kgssapi/gss_canonicalize_name.c
76
name->handle = res.output_name;
sys/kgssapi/gss_delete_sec_context.c
70
if (ctx->handle) {
sys/kgssapi/gss_delete_sec_context.c
71
args.ctx = ctx->handle;
sys/kgssapi/gss_export_name.c
56
args.input_name = input_name->handle;
sys/kgssapi/gss_impl.c
206
ctx->handle = 0;
sys/kgssapi/gss_impl.c
216
args.ctx = ctx->handle;
sys/kgssapi/gss_impl.c
225
ctx->handle = 0;
sys/kgssapi/gss_import_name.c
78
name->handle = res.output_name;
sys/kgssapi/gss_init_sec_context.c
124
ctx->handle = res.ctx;
sys/kgssapi/gss_init_sec_context.c
213
args.cred = initiator_cred_handle->handle;
sys/kgssapi/gss_init_sec_context.c
217
args.ctx = ctx->handle;
sys/kgssapi/gss_init_sec_context.c
220
args.name = target_name->handle;
sys/kgssapi/gss_init_sec_context.c
258
ctx->handle = res.ctx;
sys/kgssapi/gss_init_sec_context.c
79
args.cred = initiator_cred_handle->handle;
sys/kgssapi/gss_init_sec_context.c
83
args.ctx = ctx->handle;
sys/kgssapi/gss_init_sec_context.c
86
args.name = target_name->handle;
sys/kgssapi/gss_pname_to_uid.c
101
args.pname = pname->handle;
sys/kgssapi/gss_pname_to_uid.c
60
args.pname = pname->handle;
sys/kgssapi/gss_release_cred.c
61
args.cred = (*cred_handle)->handle;
sys/kgssapi/gss_release_name.c
63
args.input_name = name->handle;
sys/kgssapi/gss_set_cred_option.c
60
args.cred = (*cred)->handle;
sys/kgssapi/gssapi_impl.h
36
gssd_ctx_id_t handle;
sys/kgssapi/gssapi_impl.h
40
gssd_cred_id_t handle;
sys/kgssapi/gssapi_impl.h
44
gssd_name_t handle;
sys/libkern/iconv.c
237
iconv_open(const char *to, const char *from, void **handle)
sys/libkern/iconv.c
249
return ICONV_CONVERTER_OPEN(csp->cp_dcp, csp, NULL, handle);
sys/libkern/iconv.c
268
return ICONV_CONVERTER_OPEN(dcp, cspto, cspfrom, handle);
sys/libkern/iconv.c
274
iconv_close(void *handle)
sys/libkern/iconv.c
276
return ICONV_CONVERTER_CLOSE(handle);
sys/libkern/iconv.c
280
iconv_conv(void *handle, const char **inbuf,
sys/libkern/iconv.c
283
return ICONV_CONVERTER_CONV(handle, inbuf, inbytesleft, outbuf, outbytesleft, 0, 0);
sys/libkern/iconv.c
287
iconv_conv_case(void *handle, const char **inbuf,
sys/libkern/iconv.c
290
return ICONV_CONVERTER_CONV(handle, inbuf, inbytesleft, outbuf, outbytesleft, 0, casetype);
sys/libkern/iconv.c
294
iconv_convchr(void *handle, const char **inbuf,
sys/libkern/iconv.c
297
return ICONV_CONVERTER_CONV(handle, inbuf, inbytesleft, outbuf, outbytesleft, 1, 0);
sys/libkern/iconv.c
301
iconv_convchr_case(void *handle, const char **inbuf,
sys/libkern/iconv.c
304
return ICONV_CONVERTER_CONV(handle, inbuf, inbytesleft, outbuf, outbytesleft, 1, casetype);
sys/libkern/iconv.c
308
towlower(int c, void *handle)
sys/libkern/iconv.c
310
return ICONV_CONVERTER_TOLOWER(handle, c);
sys/libkern/iconv.c
314
towupper(int c, void *handle)
sys/libkern/iconv.c
316
return ICONV_CONVERTER_TOUPPER(handle, c);
sys/libkern/iconv.c
472
iconv_converter_tolowerstub(int c, void *handle)
sys/libkern/iconv.c
512
iconv_convstr(void *handle, char *dst, const char *src)
sys/libkern/iconv.c
518
if (handle == NULL) {
sys/libkern/iconv.c
523
error = iconv_conv(handle, NULL, NULL, &p, &outlen);
sys/libkern/iconv.c
526
error = iconv_conv(handle, &src, &inlen, &p, &outlen);
sys/libkern/iconv.c
534
iconv_convmem(void *handle, void *dst, const void *src, int size)
sys/libkern/iconv.c
543
if (handle == NULL) {
sys/libkern/iconv.c
548
error = iconv_conv(handle, NULL, NULL, &d, &outlen);
sys/libkern/iconv.c
551
error = iconv_conv(handle, &s, &inlen, &d, &outlen);
sys/net/altq/altq_cbq.c
115
cl->stats_.handle == chandle)
sys/net/altq/altq_cbq.c
119
cl->stats_.handle == chandle)
sys/net/altq/altq_cbq.c
370
cl->stats_.handle = a->qid;
sys/net/altq/altq_cbq.h
79
u_int32_t handle;
sys/net/altq/altq_rmclass.c
1338
CBQTRACE(rmc_update_class_util, 'milo', cl->stats_.handle);
sys/net/altq/altq_rmclass.c
1484
CBQTRACE(rmc_delay_action, 'yled', cl->stats_.handle);
sys/net/altq/altq_rmclass.c
1561
CBQTRACE(rmc_restart, 'trts', cl->stats_.handle);
sys/net/altq/altq_rmclass.c
795
CBQTRACE(rmc_queue_packet, 'ytpe', cl->stats_.handle);
sys/net/altq/altq_rmclass.h
122
u_int handle;
sys/net/altq/altq_subr.c
1430
acc_delete_filter(classifier, handle)
sys/net/altq/altq_subr.c
1432
u_long handle;
sys/net/altq/altq_subr.c
1437
if ((afp = filth_to_filtp(classifier, handle)) == NULL)
sys/net/altq/altq_subr.c
1715
u_long handle;
sys/net/altq/altq_subr.c
1719
handle = handle_number++ & 0x000fffff;
sys/net/altq/altq_subr.c
1725
if ((afp->f_handle & 0x000fffff) == handle)
sys/net/altq/altq_subr.c
1732
return ((i << 20) | handle);
sys/net/altq/altq_subr.c
1737
filth_to_filtp(classifier, handle)
sys/net/altq/altq_subr.c
1739
u_long handle;
sys/net/altq/altq_subr.c
1744
i = ACC_GET_HINDEX(handle);
sys/net/altq/altq_subr.c
1747
if (afp->f_handle == handle)
sys/net/altq/altq_var.h
64
#define ACC_GET_HINDEX(handle) ((handle) >> 20)
sys/netgraph/bluetooth/hci/ng_hci_evnt.c
546
con->con_handle = NG_HCI_CON_HANDLE(le16toh(ep->handle));
sys/netgraph/bluetooth/include/ng_hci.h
2115
u_int16_t handle;
sys/netgraph/ng_cisco.c
100
struct callout handle;
sys/netgraph/ng_cisco.c
191
ng_callout_init(&sc->handle);
sys/netgraph/ng_cisco.c
217
ng_callout(&sc->handle, node, NULL, (hz * KEEPALIVE_SECS),
sys/netgraph/ng_cisco.c
423
ng_uncallout(&sc->handle, NG_HOOK_NODE(hook));
sys/netgraph/ng_cisco.c
584
ng_callout(&sc->handle, node, NULL, (hz * KEEPALIVE_SECS),
sys/netgraph/ng_lmi.c
1075
ng_uncallout(&sc->handle, sc->node);
sys/netgraph/ng_lmi.c
123
struct callout handle; /* see timeout(9) */
sys/netgraph/ng_lmi.c
191
ng_callout_init(&sc->handle);
sys/netgraph/ng_lmi.c
266
ng_callout(&sc->handle, node, NULL, NG_LMI_POLL_RATE * hz,
sys/netgraph/ng_lmi.c
275
ng_callout(&sc->handle, node, NULL, sc->liv_rate * hz,
sys/netgraph/ng_lmi.c
305
ng_callout(&sc->handle, sc->node, NULL, hz, LMI_ticker, NULL, 0);
sys/netgraph/ng_pppoe.c
1305
ng_callout(&neg->handle, node, hook, PPPOE_INITIAL_TIMEOUT * hz,
sys/netgraph/ng_pppoe.c
1504
ng_uncallout(&neg->handle, node);
sys/netgraph/ng_pppoe.c
1549
ng_callout(&neg->handle, node, hook, PPPOE_OFFER_TIMEOUT * hz,
sys/netgraph/ng_pppoe.c
1738
ng_uncallout(&neg->handle, node);
sys/netgraph/ng_pppoe.c
1766
ng_callout(&neg->handle, node, sp->hook,
sys/netgraph/ng_pppoe.c
1805
ng_uncallout(&neg->handle, node);
sys/netgraph/ng_pppoe.c
1876
ng_uncallout(&neg->handle, node);
sys/netgraph/ng_pppoe.c
1958
ng_uncallout(&sp->neg->handle, node);
sys/netgraph/ng_pppoe.c
2101
ng_uncallout(&sp->neg->handle, node);
sys/netgraph/ng_pppoe.c
2140
ng_callout(&neg->handle, node, hook, neg->timeout * hz,
sys/netgraph/ng_pppoe.c
252
struct callout handle; /* see timeout(9) */
sys/netgraph/ng_pppoe.c
900
ng_callout_init(&neg->handle);
sys/netinet/libalias/alias.c
1728
void *handle;
sys/netinet/libalias/alias.c
1733
handle = dlopen (path, RTLD_LAZY);
sys/netinet/libalias/alias.c
1734
if (!handle) {
sys/netinet/libalias/alias.c
1739
p = dlsym(handle, "alias_mod");
sys/netinet/libalias/alias.c
1749
t->handle = handle;
sys/netinet/libalias/alias.c
1756
m = dlsym(t->handle, "handlers");
sys/netinet/libalias/alias.c
1777
dlclose(t->handle);
sys/netinet/libalias/alias_mod.h
108
void *handle; /*
sys/nlm/nlm.h
129
extern void nlm_deregister_wait_lock(void *handle);
sys/nlm/nlm.h
139
extern int nlm_wait_lock(void *handle, int timo);
sys/nlm/nlm_prot_impl.c
1349
nlm_deregister_wait_lock(void *handle)
sys/nlm/nlm_prot_impl.c
1351
struct nlm_waiting_lock *nw = handle;
sys/nlm/nlm_prot_impl.c
1361
nlm_wait_lock(void *handle, int timo)
sys/nlm/nlm_prot_impl.c
1363
struct nlm_waiting_lock *nw = handle;
sys/ofed/drivers/infiniband/core/ib_uverbs_cmd.c
2684
kern_spec->action.handle,
sys/ofed/drivers/infiniband/core/ib_uverbs_cmd.c
2702
kern_spec->flow_count.handle,
sys/ofed/include/rdma/ib_verbs.h
3727
dma_addr_t handle;
sys/ofed/include/rdma/ib_verbs.h
3730
ret = dma_alloc_coherent(dev->dma_device, size, &handle, flag);
sys/ofed/include/rdma/ib_verbs.h
3731
*dma_handle = handle;
sys/ofed/include/uapi/rdma/ib_user_verbs.h
1032
__u32 handle;
sys/ofed/include/uapi/rdma/ib_user_verbs.h
1045
__u32 handle;
sys/powerpc/ofw/ofw_machdep.c
849
bus_space_handle_t *handle, bus_size_t *sz)
sys/powerpc/ofw/ofw_machdep.c
872
return (bus_space_map(*tag, addr, size, flags, handle));
sys/powerpc/powermac/atibl.c
116
phandle_t handle;
sys/powerpc/powermac/atibl.c
118
handle = OF_finddevice("mac-io/backlight");
sys/powerpc/powermac/atibl.c
120
if (handle == -1)
sys/powerpc/powermac/atibl.c
123
if (OF_getprop(handle, "backlight-control", &control, sizeof(control)) < 0)
sys/powerpc/powermac/nvbl.c
101
if (OF_getprop(handle, "backlight-control", &control, sizeof(control)) < 0)
sys/powerpc/powermac/nvbl.c
94
phandle_t handle;
sys/powerpc/powermac/nvbl.c
96
handle = OF_finddevice("mac-io/backlight");
sys/powerpc/powermac/nvbl.c
98
if (handle == -1)
sys/powerpc/ps3/ps3-hvcall.h
123
int lv1_gpu_memory_allocate(uint64_t ddr_size, uint64_t zero1, uint64_t zero2, uint64_t zero3, uint64_t zero4, uint64_t *handle, uint64_t *ddr_lpar);
sys/powerpc/ps3/ps3-hvcall.h
124
int lv1_gpu_memory_free(uint64_t handle);
sys/powerpc/ps3/ps3-hvcall.h
125
int lv1_gpu_context_allocate(uint64_t handle, uint64_t flags, uint64_t *chandle, uint64_t *lpar_dma_control, uint64_t *lpar_driver_info, uint64_t *lpar_reports, uint64_t *lpar_reports_size);
sys/powerpc/pseries/phyp_llan.c
386
rx = (struct llan_xfer *)sc->rx_buf[sc->rx_dma_slot].handle;
sys/powerpc/pseries/phyp_llan.c
79
uint64_t handle;
sys/riscv/riscv/ofw_machdep.c
39
bus_space_handle_t *handle, bus_size_t *sz)
sys/riscv/riscv/ofw_machdep.c
54
return (bus_space_map(*tag, addr, size, 0, handle));
sys/rpc/getnetconfig.c
131
endnetconfig(void * handle)
sys/rpc/getnetconfig.c
133
struct netconfig **nconfp = (struct netconfig **) handle;
sys/rpc/getnetconfig.c
97
getnetconfig(void *handle)
sys/rpc/getnetconfig.c
99
struct netconfig **nconfp = (struct netconfig **) handle;
sys/rpc/rpc_generic.c
565
struct handle *handle;
sys/rpc/rpc_generic.c
567
handle = (struct handle *) malloc(sizeof (struct handle),
sys/rpc/rpc_generic.c
569
switch (handle->nettype = getnettype(nettype)) {
sys/rpc/rpc_generic.c
573
if (!(handle->nhandle = setnetconfig()))
sys/rpc/rpc_generic.c
575
handle->nflag = TRUE;
sys/rpc/rpc_generic.c
582
if (!(handle->nhandle = setnetconfig())) {
sys/rpc/rpc_generic.c
586
handle->nflag = FALSE;
sys/rpc/rpc_generic.c
592
return (handle);
sys/rpc/rpc_generic.c
595
free(handle, M_RPC);
sys/rpc/rpc_generic.c
606
struct handle *handle;
sys/rpc/rpc_generic.c
609
handle = (struct handle *)vhandle;
sys/rpc/rpc_generic.c
610
if (handle == NULL) {
sys/rpc/rpc_generic.c
614
if (handle->nflag) {
sys/rpc/rpc_generic.c
615
nconf = getnetconfig(handle->nhandle);
sys/rpc/rpc_generic.c
619
nconf = getnetconfig(handle->nhandle);
sys/rpc/rpc_generic.c
627
switch (handle->nettype) {
sys/rpc/rpc_generic.c
685
struct handle *handle;
sys/rpc/rpc_generic.c
687
handle = (struct handle *) vhandle;
sys/rpc/rpc_generic.c
688
if (handle == NULL) {
sys/rpc/rpc_generic.c
691
endnetconfig(handle->nhandle);
sys/rpc/rpc_generic.c
692
free(handle, M_RPC);
sys/rpc/rpcsec_gss.h
162
typedef int rpc_gss_max_data_length_ftype(AUTH *handle,
sys/rpc/rpcsec_gss.h
264
rpc_gss_max_data_length_call(AUTH *handle, int max_tp_unit_len)
sys/rpc/rpcsec_gss.h
269
ret = (*rpc_gss_entries.rpc_gss_max_data_length)(handle,
sys/rpc/rpcsec_gss.h
452
int rpc_gss_max_data_length(AUTH *handle, int max_tp_unit_len);
sys/security/mac/mac_process.c
301
vp = (struct vnode *)object->handle;
sys/sys/iconv.h
155
int iconv_open(const char *to, const char *from, void **handle);
sys/sys/iconv.h
156
int iconv_close(void *handle);
sys/sys/iconv.h
157
int iconv_conv(void *handle, const char **inbuf,
sys/sys/iconv.h
159
int iconv_conv_case(void *handle, const char **inbuf,
sys/sys/iconv.h
161
int iconv_convchr(void *handle, const char **inbuf,
sys/sys/iconv.h
163
int iconv_convchr_case(void *handle, const char **inbuf,
sys/sys/iconv.h
166
char* iconv_convstr(void *handle, char *dst, const char *src);
sys/sys/iconv.h
167
void* iconv_convmem(void *handle, void *dst, const void *src, int size);
sys/sys/iconv.h
170
int towlower(int c, void *handle);
sys/sys/iconv.h
171
int towupper(int c, void *handle);
sys/sys/iconv.h
177
int (*open)(const char *to, const char *from, void **handle);
sys/sys/iconv.h
178
int (*close)(void *handle);
sys/sys/iconv.h
179
int (*conv)(void *handle, const char **inbuf, size_t *inbytesleft,
sys/sys/iconv.h
181
int (*conv_case)(void *handle, const char **inbuf, size_t *inbytesleft,
sys/sys/iconv.h
183
int (*convchr)(void *handle, const char **inbuf, size_t *inbytesleft,
sys/sys/iconv.h
185
int (*convchr_case)(void *handle, const char **inbuf, size_t *inbytesleft,
sys/sys/iconv.h
239
int iconv_converter_tolowerstub(int c, void *handle);
sys/sys/pmclog.h
318
void pmclog_proc_ignite(void *handle, struct pmc_owner *po);
sys/sys/soundcard.h
1901
char handle[32];
sys/sys/soundcard.h
1923
char handle[32];
sys/sys/soundcard.h
1967
char handle[32];
sys/sys/systm.h
531
int next_iter_unr(void *handle);
sys/sys/systm.h
532
void free_iter_unr(void *handle);
sys/sys/timepps.h
177
time_pps_create(int filedes, pps_handle_t *handle)
sys/sys/timepps.h
181
*handle = -1;
sys/sys/timepps.h
185
*handle = filedes;
sys/sys/timepps.h
190
time_pps_destroy(pps_handle_t handle)
sys/sys/timepps.h
192
return (ioctl(handle, PPS_IOC_DESTROY, 0));
sys/sys/timepps.h
196
time_pps_setparams(pps_handle_t handle, const pps_params_t *ppsparams)
sys/sys/timepps.h
198
return (ioctl(handle, PPS_IOC_SETPARAMS, ppsparams));
sys/sys/timepps.h
202
time_pps_getparams(pps_handle_t handle, pps_params_t *ppsparams)
sys/sys/timepps.h
204
return (ioctl(handle, PPS_IOC_GETPARAMS, ppsparams));
sys/sys/timepps.h
208
time_pps_getcap(pps_handle_t handle, int *mode)
sys/sys/timepps.h
210
return (ioctl(handle, PPS_IOC_GETCAP, mode));
sys/sys/timepps.h
214
time_pps_fetch(pps_handle_t handle, const int tsformat,
sys/sys/timepps.h
226
error = ioctl(handle, PPS_IOC_FETCH, &arg);
sys/sys/timepps.h
232
time_pps_fetch_ffc(pps_handle_t handle, const int tsformat,
sys/sys/timepps.h
245
error = ioctl(handle, PPS_IOC_FETCH_FFCOUNTER, &arg);
sys/sys/timepps.h
251
time_pps_kcbind(pps_handle_t handle, const int kernel_consumer,
sys/sys/timepps.h
259
return (ioctl(handle, PPS_IOC_KCBIND, &arg));
sys/ufs/ffs/ffs_alloc.c
3302
if ((error = getvnode(td, cmd.handle,
sys/ufs/ffs/fs.h
272
int32_t handle; /* reference to filesystem to be changed */
sys/vm/device_pager.c
100
static void old_dev_pager_path(void *handle, char *path, size_t len);
sys/vm/device_pager.c
118
cdev_pager_lookup(void *handle)
sys/vm/device_pager.c
124
object = vm_pager_object_lookup(&dev_pager_object_list, handle);
sys/vm/device_pager.c
125
if (object != NULL && object->un_pager.devp.handle == NULL) {
sys/vm/device_pager.c
126
msleep(&object->un_pager.devp.handle, &dev_pager_mtx,
sys/vm/device_pager.c
136
cdev_pager_allocate(void *handle, enum obj_type tp,
sys/vm/device_pager.c
143
KASSERT(handle != NULL, ("device pager with NULL handle"));
sys/vm/device_pager.c
175
object = vm_pager_object_lookup(&dev_pager_object_list, handle);
sys/vm/device_pager.c
187
object = vm_pager_object_lookup(&dev_pager_object_list, handle);
sys/vm/device_pager.c
192
if (object->un_pager.devp.handle == NULL) {
sys/vm/device_pager.c
193
msleep(&object->un_pager.devp.handle,
sys/vm/device_pager.c
214
object->handle = handle;
sys/vm/device_pager.c
222
if (ops->cdev_pg_ctor(handle, size, prot, foff,
sys/vm/device_pager.c
227
wakeup(&object->un_pager.devp.handle);
sys/vm/device_pager.c
237
object->un_pager.devp.handle = handle;
sys/vm/device_pager.c
238
wakeup(&object->un_pager.devp.handle);
sys/vm/device_pager.c
243
if (object->un_pager.devp.handle == NULL) {
sys/vm/device_pager.c
244
msleep(&object->un_pager.devp.handle,
sys/vm/device_pager.c
259
dev_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/vm/device_pager.c
263
return (cdev_pager_allocate(handle, OBJT_DEVICE, &old_dev_pager_ops,
sys/vm/device_pager.c
272
object->un_pager.devp.handle, path, sz);
sys/vm/device_pager.c
338
object->un_pager.devp.ops->cdev_pg_dtor(object->un_pager.devp.handle);
sys/vm/device_pager.c
357
object->handle = NULL;
sys/vm/device_pager.c
426
dev = object->handle;
sys/vm/device_pager.c
503
old_dev_pager_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/vm/device_pager.c
517
dev = handle;
sys/vm/device_pager.c
544
old_dev_pager_dtor(void *handle)
sys/vm/device_pager.c
547
dev_rel(handle);
sys/vm/device_pager.c
551
old_dev_pager_path(void *handle, char *path, size_t len)
sys/vm/device_pager.c
553
struct cdev *cdev = handle;
sys/vm/device_pager.c
95
static int old_dev_pager_ctor(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/vm/device_pager.c
97
static void old_dev_pager_dtor(void *handle);
sys/vm/phys_pager.c
107
handle);
sys/vm/phys_pager.c
119
object->handle = handle;
sys/vm/phys_pager.c
147
phys_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/vm/phys_pager.c
150
return (phys_pager_allocate(handle, &default_phys_pg_ops, NULL,
sys/vm/phys_pager.c
158
if (object->handle != NULL) {
sys/vm/phys_pager.c
168
object->handle = NULL;
sys/vm/phys_pager.c
76
phys_pager_allocate(void *handle, const struct phys_pager_ops *ops, void *data,
sys/vm/phys_pager.c
92
if (handle != NULL) {
sys/vm/phys_pager.c
98
object = vm_pager_object_lookup(&phys_pager_object_list, handle);
sys/vm/sg_pager.c
118
object->handle = sglist_hold(sg);
sys/vm/sg_pager.c
139
sg = object->handle;
sys/vm/sg_pager.c
141
object->handle = NULL;
sys/vm/sg_pager.c
160
sg = object->handle;
sys/vm/sg_pager.c
72
sg_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/vm/sg_pager.c
91
sg = handle;
sys/vm/swap_pager.c
1174
srcobject->handle != NULL) {
sys/vm/swap_pager.c
1178
TAILQ_REMOVE(NOBJLIST(srcobject->handle), srcobject,
sys/vm/swap_pager.c
1471
if (VM_OBJECT_SLEEP(object, &object->handle, PSWP,
sys/vm/swap_pager.c
1757
wakeup(&object->handle);
sys/vm/swap_pager.c
1948
VM_OBJECT_SLEEP(object, &object->handle, PSWP,
sys/vm/swap_pager.c
421
#define NOBJLIST(handle) \
sys/vm/swap_pager.c
422
(&swap_pager_object_list[((int)(intptr_t)handle >> 4) & (NOBJLISTS-1)])
sys/vm/swap_pager.c
436
swap_pager_alloc(void *handle, vm_ooffset_t size,
sys/vm/swap_pager.c
776
swap_pager_init_object(vm_object_t object, void *handle, struct ucred *cred,
sys/vm/swap_pager.c
786
object->handle = handle;
sys/vm/swap_pager.c
792
swap_pager_alloc_init(objtype_t otype, void *handle, struct ucred *cred,
sys/vm/swap_pager.c
805
if (!swap_pager_init_object(object, handle, cred, size, offset)) {
sys/vm/swap_pager.c
824
swap_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/vm/swap_pager.c
829
if (handle != NULL) {
sys/vm/swap_pager.c
837
object = vm_pager_object_lookup(NOBJLIST(handle), handle);
sys/vm/swap_pager.c
839
object = swap_pager_alloc_init(OBJT_SWAP, handle, cred,
sys/vm/swap_pager.c
842
TAILQ_INSERT_TAIL(NOBJLIST(object->handle),
sys/vm/swap_pager.c
848
object = swap_pager_alloc_init(OBJT_SWAP, handle, cred,
sys/vm/swap_pager.c
875
if ((object->flags & OBJ_ANON) == 0 && object->handle != NULL) {
sys/vm/swap_pager.c
878
TAILQ_REMOVE(NOBJLIST(object->handle), object,
sys/vm/swap_pager.c
893
object->handle = NULL;
sys/vm/swap_pager.h
89
bool swap_pager_init_object(vm_object_t object, void *handle,
sys/vm/vm_fault.c
1044
fs->object->handle == NULL && (fs->object->flags & OBJ_ANON) != 0);
sys/vm/vm_fault.c
845
vp = fs->object->handle;
sys/vm/vm_map.c
4472
handle)->v_writecount > 0,
sys/vm/vm_map.c
548
object = object->handle;
sys/vm/vm_mmap.c
1329
if (obj->type == OBJT_VNODE && obj->handle != vp) {
sys/vm/vm_mmap.c
1331
vp = (struct vnode *)obj->handle;
sys/vm/vm_mmap.c
1474
objtype_t handle_type, void *handle,
sys/vm/vm_mmap.c
1496
cdev = handle;
sys/vm/vm_mmap.c
1507
handle, &foff, &object, &writecounted);
sys/vm/vm_object.c
1194
((vp = object->handle)->v_vflag & VV_NOSYNC) == 0) {
sys/vm/vm_object.c
231
vm_object_t object, void *handle)
sys/vm/vm_object.c
257
object->handle = handle;
sys/vm/vm_object.c
456
vm_object_t handle, object;
sys/vm/vm_object.c
459
handle = NULL;
sys/vm/vm_object.c
461
handle = backing_object->handle;
sys/vm/vm_object.c
463
handle = backing_object;
sys/vm/vm_object.c
466
OBJ_ANON | OBJ_ONEMAPPING | OBJ_SWAP, object, handle);
sys/vm/vm_object.c
484
vref(object->handle);
sys/vm/vm_object.c
524
vref(object->handle);
sys/vm/vm_object.c
535
struct vnode *vp = (struct vnode *) object->handle;
sys/vm/vm_object.c
918
vdrop(object->handle);
sys/vm/vm_object.h
119
void *handle;
sys/vm/vm_object.h
139
void *handle;
sys/vm/vm_page.c
1586
vhold(object->handle);
sys/vm/vm_page.c
1632
vdrop(object->handle);
sys/vm/vm_pageout.c
628
vp = object->handle;
sys/vm/vm_pager.c
111
dead_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/vm/vm_pager.c
254
vm_pager_allocate(objtype_t type, void *handle, vm_ooffset_t size,
sys/vm/vm_pager.c
261
object = (*pagertab[type]->pgo_alloc)(handle, size, prot, off, cred);
sys/vm/vm_pager.c
380
vm_pager_object_lookup(struct pagerlst *pg_list, void *handle)
sys/vm/vm_pager.c
385
if (object->handle == handle) {
sys/vm/vm_pager.h
293
int (*cdev_pg_ctor)(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/vm/vm_pager.h
295
void (*cdev_pg_dtor)(void *handle);
sys/vm/vm_pager.h
296
void (*cdev_pg_path)(void *handle, char *path, size_t len);
sys/vm/vm_pager.h
299
vm_object_t cdev_pager_allocate(void *handle, enum obj_type tp,
sys/vm/vm_pager.h
302
vm_object_t cdev_pager_lookup(void *handle);
sys/vm/vm_pager.h
321
vm_object_t phys_pager_allocate(void *handle, const struct phys_pager_ops *ops,
sys/vm/vnode_pager.c
1281
vp = object->handle;
sys/vm/vnode_pager.c
1584
vp = object->handle;
sys/vm/vnode_pager.c
1629
vp = object->handle;
sys/vm/vnode_pager.c
1652
*vpp = object->handle;
sys/vm/vnode_pager.c
213
if (obj == NULL || obj->handle != vp)
sys/vm/vnode_pager.c
253
vnode_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot,
sys/vm/vnode_pager.c
262
if (handle == NULL)
sys/vm/vnode_pager.c
265
vp = (struct vnode *)handle;
sys/vm/vnode_pager.c
281
object->handle = handle;
sys/vm/vnode_pager.c
327
vp = object->handle;
sys/vm/vnode_pager.c
335
object->handle = NULL;
sys/vm/vnode_pager.c
367
struct vnode *vp = object->handle;
sys/vm/vnode_pager.c
679
vp = object->handle;
sys/vm/vnode_pager.c
780
vp = object->handle;
sys/vm/vnode_pager.c
839
vp = object->handle;
sys/vm/vnode_pager.c
853
vp = object->handle;
sys/x86/include/bus.h
196
bus_space_handle_t handle,
sys/x86/include/bus.h
200
bus_space_handle_t handle,
sys/x86/include/bus.h
204
bus_space_handle_t handle,
sys/x86/include/bus.h
209
bus_space_handle_t handle,
sys/x86/include/bus.h
214
bus_space_read_1(bus_space_tag_t tag, bus_space_handle_t handle,
sys/x86/include/bus.h
219
return (inb(handle + offset));
sys/x86/include/bus.h
220
return (*(volatile u_int8_t *)(handle + offset));
sys/x86/include/bus.h
224
bus_space_read_2(bus_space_tag_t tag, bus_space_handle_t handle,
sys/x86/include/bus.h
229
return (inw(handle + offset));
sys/x86/include/bus.h
230
return (*(volatile u_int16_t *)(handle + offset));
sys/x86/include/bus.h
234
bus_space_read_4(bus_space_tag_t tag, bus_space_handle_t handle,
sys/x86/include/bus.h
239
return (inl(handle + offset));
sys/x86/include/bus.h
240
return (*(volatile u_int32_t *)(handle + offset));
sys/x86/include/bus.h
245
bus_space_read_8(bus_space_tag_t tag, bus_space_handle_t handle,
sys/x86/include/bus.h
251
return (*(volatile uint64_t *)(handle + offset));
sys/xen/blkif.h
118
dst->handle = src->handle;
sys/xen/blkif.h
133
dst->handle = src->handle;
sys/xen/blkif.h
44
blkif_vdev_t handle; /* only for read/write requests */
sys/xen/blkif.h
62
blkif_vdev_t handle; /* only for read/write requests */
sys/xen/xen_intr.h
170
void xen_intr_unbind(xen_intr_handle_t *handle);
sys/xen/xen_intr.h
197
void xen_intr_signal(xen_intr_handle_t handle);
sys/xen/xen_intr.h
208
evtchn_port_t xen_intr_port(xen_intr_handle_t handle);
sys/xen/xen_intr.h
227
xen_intr_handle_t handle);
tools/regression/tls/ttls3/tls-test.c
32
void *handle;
tools/regression/tls/ttls3/tls-test.c
36
handle = dlopen("libtls-test.so.1", RTLD_NOW);
tools/regression/tls/ttls3/tls-test.c
37
if (!handle) {
tools/regression/tls/ttls3/tls-test.c
44
__gl_tls_test = dlsym(handle, "__gl_tls_test");
tools/regression/tls/ttls3/tls-test.c
48
dlclose(handle);
tools/regression/tls/ttls3/tls-test.c
54
dlclose(handle);
tools/test/gpioevents/gpioevents.c
209
run_read(bool loop, int handle, const char *file, u_int delayus)
tools/test/gpioevents/gpioevents.c
231
res = read(handle, buffer.data, sizeof(buffer));
tools/test/gpioevents/gpioevents.c
254
run_poll(bool loop, int handle, const char *file, int timeout, u_int delayus)
tools/test/gpioevents/gpioevents.c
259
fds.fd = handle;
tools/test/gpioevents/gpioevents.c
284
run_read(false, handle, file, 0);
tools/test/gpioevents/gpioevents.c
290
run_select(bool loop, int handle, const char *file, int timeout, u_int delayus)
tools/test/gpioevents/gpioevents.c
298
FD_SET(handle, &readfds);
tools/test/gpioevents/gpioevents.c
322
run_read(false, handle, file, 0);
tools/test/gpioevents/gpioevents.c
328
run_kqueue(bool loop, int handle, const char *file, int timeout, u_int delayus)
tools/test/gpioevents/gpioevents.c
349
EV_SET(&event[0], handle, EVFILT_READ, EV_ADD, 0, 0, NULL);
tools/test/gpioevents/gpioevents.c
373
run_read(false, handle, file, 0);
tools/test/gpioevents/gpioevents.c
379
run_aio_read(bool loop, int handle, const char *file, u_int delayus)
tools/test/gpioevents/gpioevents.c
400
iocb.aio_fildes = handle;
tools/test/gpioevents/gpioevents.c
435
run_sigio(bool loop, int handle, const char *file)
tools/test/gpioevents/gpioevents.c
446
flags = fcntl(handle, F_GETFL);
tools/test/gpioevents/gpioevents.c
448
res = fcntl(handle, F_SETFL, flags);
tools/test/gpioevents/gpioevents.c
452
res = fcntl(handle, F_SETOWN, pid);
tools/test/gpioevents/gpioevents.c
461
run_read(false, handle, file, 0);
tools/test/gpioevents/gpioevents.c
478
int handle;
tools/test/gpioevents/gpioevents.c
558
handle = gpio_open_device(file);
tools/test/gpioevents/gpioevents.c
559
if (handle == GPIO_INVALID_HANDLE)
tools/test/gpioevents/gpioevents.c
566
res = ioctl(handle, GPIOCONFIGEVENTS, &cfg);
tools/test/gpioevents/gpioevents.c
572
flags = fcntl(handle, F_GETFL);
tools/test/gpioevents/gpioevents.c
574
res = fcntl(handle, F_SETFL, flags);
tools/test/gpioevents/gpioevents.c
642
res = gpio_pin_set_flags(handle, &pin_config);
tools/test/gpioevents/gpioevents.c
651
run_read(loop, handle, file, delayus);
tools/test/gpioevents/gpioevents.c
654
run_poll(loop, handle, file, timeout, delayus);
tools/test/gpioevents/gpioevents.c
657
run_select(loop, handle, file, timeout, delayus);
tools/test/gpioevents/gpioevents.c
660
run_kqueue(loop, handle, file, timeout, delayus);
tools/test/gpioevents/gpioevents.c
663
run_aio_read(loop, handle, file, delayus);
tools/test/gpioevents/gpioevents.c
666
run_sigio(loop, handle, file);
usr.bin/bintrans/uudecode.c
190
void *handle;
usr.bin/bintrans/uudecode.c
222
handle = setmode(p);
usr.bin/bintrans/uudecode.c
223
if (handle == NULL) {
usr.bin/bintrans/uudecode.c
227
mode = getmode(handle, 0) & 0666;
usr.bin/bintrans/uudecode.c
228
free(handle);
usr.bin/posixmqcontrol/posixmqcontrol.c
440
mqd_t handle = mq_open(queue, flags);
usr.bin/posixmqcontrol/posixmqcontrol.c
441
q_creation.exists = handle != fail;
usr.bin/posixmqcontrol/posixmqcontrol.c
452
handle = mq_open(queue, flags, q_creation.mode, &stuff);
usr.bin/posixmqcontrol/posixmqcontrol.c
456
if (handle == fail) {
usr.bin/posixmqcontrol/posixmqcontrol.c
468
int fd = mq_getfd_np(handle);
usr.bin/posixmqcontrol/posixmqcontrol.c
474
mq_close(handle);
usr.bin/posixmqcontrol/posixmqcontrol.c
483
mq_close(handle);
usr.bin/posixmqcontrol/posixmqcontrol.c
498
mq_close(handle);
usr.bin/posixmqcontrol/posixmqcontrol.c
511
mq_close(handle);
usr.bin/posixmqcontrol/posixmqcontrol.c
517
return (mq_close(handle));
usr.bin/posixmqcontrol/posixmqcontrol.c
560
mqd_t handle = mq_open(queue, O_RDONLY);
usr.bin/posixmqcontrol/posixmqcontrol.c
562
if (handle == fail) {
usr.bin/posixmqcontrol/posixmqcontrol.c
571
int result = mq_getattr(handle, &actual);
usr.bin/posixmqcontrol/posixmqcontrol.c
586
int fd = mq_getfd_np(handle);
usr.bin/posixmqcontrol/posixmqcontrol.c
610
return (mq_close(handle));
usr.bin/posixmqcontrol/posixmqcontrol.c
617
mqd_t handle = mq_open(queue, O_RDONLY);
usr.bin/posixmqcontrol/posixmqcontrol.c
619
if (handle == fail) {
usr.bin/posixmqcontrol/posixmqcontrol.c
628
int result = mq_getattr(handle, &actual);
usr.bin/posixmqcontrol/posixmqcontrol.c
634
mq_close(handle);
usr.bin/posixmqcontrol/posixmqcontrol.c
642
result = mq_receive(handle, text, actual.mq_msgsize, &q_priority);
usr.bin/posixmqcontrol/posixmqcontrol.c
647
mq_close(handle);
usr.bin/posixmqcontrol/posixmqcontrol.c
652
return (mq_close(handle));
usr.bin/posixmqcontrol/posixmqcontrol.c
663
mqd_t handle = mq_open(queue, O_WRONLY);
usr.bin/posixmqcontrol/posixmqcontrol.c
665
if (handle == fail) {
usr.bin/posixmqcontrol/posixmqcontrol.c
674
int result = mq_getattr(handle, &actual);
usr.bin/posixmqcontrol/posixmqcontrol.c
680
mq_close(handle);
usr.bin/posixmqcontrol/posixmqcontrol.c
691
result = mq_send(handle, text, size, q_priority);
usr.bin/posixmqcontrol/posixmqcontrol.c
697
mq_close(handle);
usr.bin/posixmqcontrol/posixmqcontrol.c
701
return (mq_close(handle));
usr.bin/rpcinfo/rpcinfo.c
1545
void *handle;
usr.bin/rpcinfo/rpcinfo.c
1549
if ((handle = __rpc_setconf(tlist[i])) == NULL)
usr.bin/rpcinfo/rpcinfo.c
1552
if ((nconf = __rpc_getconf(handle)) == NULL) {
usr.bin/rpcinfo/rpcinfo.c
1562
__rpc_endconf(handle);
usr.bin/top/machine.c
1045
format_next_process(struct handle * xhandle, char *(*get_userid)(int), int flags)
usr.bin/top/machine.c
814
static struct handle handle;
usr.bin/top/machine.c
973
handle.next_proc = pref;
usr.bin/top/machine.c
974
handle.remaining = active_procs;
usr.bin/top/machine.c
975
return (&handle);
usr.bin/top/machine.h
82
struct handle;
usr.bin/top/machine.h
85
char *format_next_process(struct handle* handle, char *(*get_userid)(int),
usr.sbin/bhyve/slirp/slirp-helper.c
428
void *handle;
usr.sbin/bhyve/slirp/slirp-helper.c
430
handle = dlopen("libslirp.so.0", RTLD_LAZY);
usr.sbin/bhyve/slirp/slirp-helper.c
431
if (handle == NULL)
usr.sbin/bhyve/slirp/slirp-helper.c
435
sym##_p = (sym##_p_t)dlsym(handle, #sym); \
usr.sbin/bhyve/smbiostbl.c
615
entry->handle = *n + 1;
usr.sbin/bhyve/smbiostbl.c
73
uint16_t handle;
usr.sbin/bluetooth/hccontrol/le.c
1060
fprintf(stdout, "Handle: %d\n", le16toh(conn_event->handle));
usr.sbin/bluetooth/sdpd/profile.c
117
SDP_PUT32(((provider_p) data)->handle, buf);
usr.sbin/bluetooth/sdpd/provider.c
105
if (++ handle <= 1)
usr.sbin/bluetooth/sdpd/provider.c
106
handle = 2;
usr.sbin/bluetooth/sdpd/provider.c
108
provider->handle = handle;
usr.sbin/bluetooth/sdpd/provider.c
162
provider_by_handle(uint32_t handle)
usr.sbin/bluetooth/sdpd/provider.c
167
if (provider->handle == handle)
usr.sbin/bluetooth/sdpd/provider.c
43
static uint32_t handle = 0;
usr.sbin/bluetooth/sdpd/provider.c
70
bgd->handle = 0;
usr.sbin/bluetooth/sdpd/provider.c
75
bgd->handle = 1;
usr.sbin/bluetooth/sdpd/provider.h
46
uint32_t handle; /* record handle */
usr.sbin/bluetooth/sdpd/provider.h
71
provider_p provider_by_handle (uint32_t handle);
usr.sbin/bluetooth/sdpd/sar.c
154
uint32_t handle;
usr.sbin/bluetooth/sdpd/sar.c
171
SDP_GET32(handle, req);
usr.sbin/bluetooth/sdpd/sar.c
217
if ((provider = provider_by_handle(handle)) == NULL)
usr.sbin/bluetooth/sdpd/scr.c
55
uint32_t handle;
usr.sbin/bluetooth/sdpd/scr.c
68
SDP_GET32(handle, req);
usr.sbin/bluetooth/sdpd/scr.c
71
provider = provider_by_handle(handle);
usr.sbin/bluetooth/sdpd/srr.c
99
SDP_PUT32(provider->handle, rsp);
usr.sbin/bluetooth/sdpd/ssr.c
197
SDP_PUT32(provider->handle, ptr);
usr.sbin/bluetooth/sdpd/sur.c
55
uint32_t handle;
usr.sbin/bluetooth/sdpd/sur.c
68
SDP_GET32(handle, req);
usr.sbin/bluetooth/sdpd/sur.c
71
provider = provider_by_handle(handle);
usr.sbin/ctld/iscsi.cc
507
conn.handle();
usr.sbin/ctld/iscsi.hh
43
void handle();
usr.sbin/gpioctl/gpioctl.c
146
dump_pins(gpio_handle_t handle, int verbose)
usr.sbin/gpioctl/gpioctl.c
152
maxpin = gpio_pin_list(handle, &cfgs);
usr.sbin/gpioctl/gpioctl.c
160
pinv = gpio_pin_get(handle, pin->g_pin);
usr.sbin/gpioctl/gpioctl.c
176
get_pinnum_by_name(gpio_handle_t handle, const char *name) {
usr.sbin/gpioctl/gpioctl.c
182
maxpin = gpio_pin_list(handle, &cfgs);
usr.sbin/gpioctl/gpioctl.c
190
gpio_pin_get(handle, pin->g_pin);
usr.sbin/gpioctl/gpioctl.c
217
gpio_handle_t handle;
usr.sbin/gpioctl/gpioctl.c
259
handle = gpio_open(0);
usr.sbin/gpioctl/gpioctl.c
261
handle = gpio_open_device(ctlfile);
usr.sbin/gpioctl/gpioctl.c
262
if (handle == GPIO_INVALID_HANDLE) {
usr.sbin/gpioctl/gpioctl.c
268
dump_pins(handle, verbose);
usr.sbin/gpioctl/gpioctl.c
269
gpio_close(handle);
usr.sbin/gpioctl/gpioctl.c
283
if (get_pinnum_by_name(handle, argv[0]) != -1)
usr.sbin/gpioctl/gpioctl.c
287
if ((pinn = get_pinnum_by_name(handle, argv[0])) == -1)
usr.sbin/gpioctl/gpioctl.c
297
if ((pinn = get_pinnum_by_name(handle, argv[0])) == -1)
usr.sbin/gpioctl/gpioctl.c
306
if (gpio_pin_set_name(handle, pinn, argv[1]) < 0) {
usr.sbin/gpioctl/gpioctl.c
319
if (gpio_pin_toggle(handle, pinn) < 0) {
usr.sbin/gpioctl/gpioctl.c
323
gpio_close(handle);
usr.sbin/gpioctl/gpioctl.c
339
if (gpio_pin_set_flags(handle, &pin) < 0) {
usr.sbin/gpioctl/gpioctl.c
356
pinv = gpio_pin_get(handle, pinn);
usr.sbin/gpioctl/gpioctl.c
373
if (gpio_pin_set(handle, pinn, pinv) < 0) {
usr.sbin/gpioctl/gpioctl.c
378
gpio_close(handle);
usr.sbin/mpsutil/mps_cmd.c
282
mps_set_slot_status(int fd, U16 handle, U16 slot, U32 status)
usr.sbin/mpsutil/mps_cmd.c
291
req.EnclosureHandle = handle;
usr.sbin/mpsutil/mps_show.c
515
uint16_t IOCStatus, handle, bus, target;
usr.sbin/mpsutil/mps_show.c
540
handle = 0xffff;
usr.sbin/mpsutil/mps_show.c
545
MPI2_SAS_DEVICE_PGAD_FORM_GET_NEXT_HANDLE | handle,
usr.sbin/mpsutil/mps_show.c
555
handle = le16toh(device->DevHandle);
usr.sbin/mpsutil/mps_show.c
564
error = mps_map_btdh(fd, &handle, &bus, &target);
usr.sbin/mpsutil/mps_show.c
638
uint16_t IOCStatus, handle;
usr.sbin/mpsutil/mps_show.c
649
handle = 0xffff;
usr.sbin/mpsutil/mps_show.c
654
MPI2_SAS_ENCLOS_PGAD_FORM_GET_NEXT_HANDLE | handle,
usr.sbin/mpsutil/mps_show.c
673
handle = le16toh(enc->EnclosureHandle);
usr.sbin/mpsutil/mps_show.c
687
uint16_t IOCStatus, handle;
usr.sbin/mpsutil/mps_show.c
700
handle = 0xffff;
usr.sbin/mpsutil/mps_show.c
705
MPI2_SAS_EXPAND_PGAD_FORM_GET_NEXT_HNDL | handle,
usr.sbin/mpsutil/mps_show.c
717
handle = le16toh(exp0->DevHandle);
usr.sbin/mpsutil/mps_slot.c
101
if (mps_set_slot_status(fd, htole16(handle), htole16(slot),
usr.sbin/mpsutil/mps_slot.c
56
U16 handle;
usr.sbin/mpsutil/mps_slot.c
76
handle = x;
usr.sbin/mpsutil/mpsutil.h
129
int mps_set_slot_status(int fd, U16 handle, U16 slot, U32 status);