Searched defs:idm (Results 1 - 7 of 7) sorted by relevance

/freebsd-head/contrib/ofed/librdmacm/
H A Dindexer.c123 static int idm_grow(struct index_map *idm, int index) argument
125 idm->array[idx_array_index(index)] = calloc(IDX_ENTRY_SIZE, sizeof(void *));
126 if (!idm->array[idx_array_index(index)])
136 int idm_set(struct index_map *idm, int index, void *item) argument
145 if (!idm->array[idx_array_index(index)]) {
146 if (idm_grow(idm, index) < 0)
150 entry = idm->array[idx_array_index(index)];
155 void *idm_clear(struct index_map *idm, int index) argument
160 entry = idm->array[idx_array_index(index)];
H A Dindexer.h88 int idm_set(struct index_map *idm, int index, void *item);
89 void *idm_clear(struct index_map *idm, int index);
91 static inline void *idm_at(struct index_map *idm, int index) argument
94 entry = idm->array[idx_array_index(index)];
98 static inline void *idm_lookup(struct index_map *idm, int index) argument
100 return ((index <= IDX_MAX_INDEX) && idm->array[idx_array_index(index)]) ?
101 idm_at(idm, index) : NULL;
H A Dpreload.c96 static struct index_map idm; variable in typeref:struct:index_map
271 ret = idm_set(&idm, index, fdi);
289 fdi = idm_at(&idm, index);
299 fdi = idm_lookup(&idm, index);
314 fdi = idm_lookup(&idm, index);
322 fdi = idm_lookup(&idm, index);
330 fdi = idm_lookup(&idm, index);
339 fdi = idm_lookup(&idm, index);
341 idm_clear(&idm, index);
750 fdi = idm_lookup(&idm, inde
[all...]
H A Drsocket.c67 static struct index_map idm; variable in typeref:struct:index_map
577 rs->index = idm_set(&idm, index, rs);
585 idm_clear(&idm, rs->index);
1177 rs = idm_lookup(&idm, socket);
1200 rs = idm_lookup(&idm, socket);
1233 rs = idm_lookup(&idm, socket);
1621 rs = idm_lookup(&idm, socket);
2422 rs = idm_at(&idm, socket);
2490 rs = idm_at(&idm, socket);
2693 rs = idm_at(&idm, socke
[all...]
/freebsd-head/usr.sbin/ypldap/
H A Dldapclient.c52 int client_build_req(struct idm *, struct idm_req *, struct aldap_message *,
54 int client_search_idm(struct env *, struct idm *, struct aldap *,
56 int client_try_idm(struct env *, struct idm *);
57 int client_addr_init(struct idm *);
58 int client_addr_free(struct idm *);
96 client_addr_init(struct idm *idm) argument
102 TAILQ_FOREACH(h, &idm->idm_addr, next) {
108 idm->idm_state = STATE_DNS_DONE;
114 idm
126 client_addr_free(struct idm *idm) argument
160 struct idm *idm; local
304 struct idm *idm; local
434 client_build_req(struct idm *idm, struct idm_req *ir, struct aldap_message *m, int min_attr, int max_attr) argument
503 client_search_idm(struct env *env, struct idm *idm, struct aldap *al, char **attrs, char *filter, int min_attr, int max_attr, enum imsg_type type) argument
569 client_try_idm(struct env *env, struct idm *idm) argument
648 struct idm *idm; local
674 struct idm *idm; local
[all...]
H A Dypldap.c468 struct idm *idm; local
472 TAILQ_FOREACH(idm, &env->sc_idms, idm_entry) {
474 idm, sizeof(*idm));
490 struct idm *idm; local
492 while ((idm = TAILQ_FIRST(&env->sc_idms)) != NULL) {
493 TAILQ_REMOVE(&env->sc_idms, idm, idm_entry);
494 free(idm);
[all...]
H A Dypldap.h84 struct idm { struct
85 TAILQ_ENTRY(idm) idm_entry;
164 TAILQ_HEAD(idm_list, idm) sc_idms;

Completed in 116 milliseconds