Home
last modified time | relevance | path

Searched refs:pattr (Results 1 – 11 of 11) sorted by relevance

/freebsd/lib/libthr/thread/
H A Dthr_attr.c324 pthread_attr_t pattr; in _thr_attr_init() local
328 if ((pattr = malloc(sizeof(*pattr))) == NULL) in _thr_attr_init()
331 memcpy(pattr, &_pthread_attr_default, sizeof(*pattr)); in _thr_attr_init()
332 *attr = pattr; in _thr_attr_init()
531 _pthread_attr_setaffinity_np(pthread_attr_t *pattr, size_t cpusetsize, in _pthread_attr_setaffinity_np() argument
537 if (pattr == NULL || (attr = (*pattr)) == NULL) in _pthread_attr_setaffinity_np()
574 _pthread_attr_getaffinity_np(const pthread_attr_t *pattr, size_t cpusetsize, in _pthread_attr_getaffinity_np() argument
579 if (pattr == NULL || (attr = (*pattr)) == NULL) in _pthread_attr_getaffinity_np()
H A Dthr_condattr.c51 pthread_condattr_t pattr; in _pthread_condattr_init() local
54 if ((pattr = (pthread_condattr_t) in _pthread_condattr_init()
58 memcpy(pattr, &_pthread_condattr_default, in _pthread_condattr_init()
60 *attr = pattr; in _pthread_condattr_init()
H A Dthr_create.c46 static int create_stack(struct pthread_attr *pattr);
235 create_stack(struct pthread_attr *pattr) in create_stack() argument
240 if ((pattr->stackaddr_attr) != NULL) { in create_stack()
241 pattr->guardsize_attr = 0; in create_stack()
242 pattr->flags |= THR_STACK_USER; in create_stack()
246 ret = _thr_stack_alloc(pattr); in create_stack()
H A Dthr_mutexattr.c98 pthread_mutexattr_t pattr; in _thr_mutexattr_init() local
100 if ((pattr = (pthread_mutexattr_t) in _thr_mutexattr_init()
104 memcpy(pattr, &_pthread_mutexattr_default, in _thr_mutexattr_init()
106 *attr = pattr; in _thr_mutexattr_init()
/freebsd/tools/test/stress2/misc/
H A Dpthread7.sh236 pthread_mutexattr_t attr, *pattr = NULL;
248 pattr = &attr;
249 if ((rc = pthread_mutex_init(&newfiles.mtx, pattr)) != 0)
H A Dpthread4.sh247 pthread_mutexattr_t attr, *pattr = NULL;
259 pattr = &attr;
260 if ((rc = pthread_mutex_init(&newfiles.mtx, pattr)) != 0)
H A Dpthread6.sh239 pthread_mutexattr_t attr, *pattr = NULL;
252 pattr = &attr;
253 if ((rc = pthread_mutex_init(&newfiles.mtx, pattr)) != 0)
/freebsd/sys/dev/mthca/
H A Dmthca_mad.c209 struct ib_port_attr pattr; in mthca_process_mad() local
257 !ib_query_port(ibdev, port_num, &pattr)) in mthca_process_mad()
258 prev_lid = pattr.lid; in mthca_process_mad()
/freebsd/sys/dev/dpaa2/
H A Ddpaa2_rc.c859 } *pattr; in dpaa2_rc_get_attributes() local
868 pattr = (struct dpaa2_rc_attr *) &cmd->params[0]; in dpaa2_rc_get_attributes()
869 attr->cont_id = pattr->cont_id; in dpaa2_rc_get_attributes()
870 attr->portal_id = pattr->portal_id; in dpaa2_rc_get_attributes()
871 attr->options = pattr->options; in dpaa2_rc_get_attributes()
872 attr->icid = pattr->icid; in dpaa2_rc_get_attributes()
2026 } *pattr; in dpaa2_rc_io_get_attributes() local
2035 pattr = (struct dpaa2_io_attr *) &cmd->params[0]; in dpaa2_rc_io_get_attributes()
2037 attr->swp_ce_paddr = pattr->swp_ce_paddr; in dpaa2_rc_io_get_attributes()
2038 attr->swp_ci_paddr = pattr->swp_ci_paddr; in dpaa2_rc_io_get_attributes()
[all …]
/freebsd/sys/cddl/contrib/opensolaris/uts/common/dtrace/
H A Dfasttrap.c1608 const dtrace_pattr_t *pattr) in fasttrap_provider_lookup() argument
1617 ASSERT(pattr != NULL); in fasttrap_provider_lookup()
1701 dtrace_register(provname, pattr, in fasttrap_provider_lookup()
1703 pattr == &pid_attr ? &pid_pops : &usdt_pops, new_fp, in fasttrap_provider_lookup()
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_mad.c770 struct ib_port_attr pattr; in ib_process_mad() local
824 !ib_query_port(ibdev, port_num, &pattr)) in ib_process_mad()
825 prev_lid = pattr.lid; in ib_process_mad()