/freebsd/contrib/wpa/src/wps/ |
H A D | wps_validate.c | 1030 struct wps_parse_attr attr; in wps_validate_cred() local 1036 if (wps_parse_msg(&buf, &attr) < 0) { in wps_validate_cred() 1041 if (wps_validate_network_idx(attr.network_idx, 1) || in wps_validate_cred() 1042 wps_validate_ssid(attr.ssid, attr.ssid_len, 1) || in wps_validate_cred() 1043 wps_validate_auth_type(attr.auth_type, 1) || in wps_validate_cred() 1044 wps_validate_encr_type(attr.encr_type, 1) || in wps_validate_cred() 1045 wps_validate_network_key_index(attr.network_key_idx, 0) || in wps_validate_cred() 1046 wps_validate_network_key(attr.network_key, attr.network_key_len, in wps_validate_cred() 1047 attr.encr_type, 1) || in wps_validate_cred() 1048 wps_validate_mac_addr(attr.mac_addr, 1) || in wps_validate_cred() [all …]
|
H A D | wps_attr_parse.c | 20 static int wps_set_vendor_ext_wfa_subelem(struct wps_parse_attr *attr, in wps_set_vendor_ext_wfa_subelem() argument 32 attr->version2 = pos; in wps_set_vendor_ext_wfa_subelem() 35 attr->authorized_macs = pos; in wps_set_vendor_ext_wfa_subelem() 36 attr->authorized_macs_len = len; in wps_set_vendor_ext_wfa_subelem() 44 attr->network_key_shareable = pos; in wps_set_vendor_ext_wfa_subelem() 52 attr->request_to_enroll = pos; in wps_set_vendor_ext_wfa_subelem() 60 attr->settings_delay_time = pos; in wps_set_vendor_ext_wfa_subelem() 68 attr->registrar_configuration_methods = pos; in wps_set_vendor_ext_wfa_subelem() 77 attr->multi_ap_ext = *pos; in wps_set_vendor_ext_wfa_subelem() 79 attr->multi_ap_ext); in wps_set_vendor_ext_wfa_subelem() [all …]
|
H A D | wps.c | 105 struct wps_parse_attr attr; in wps_init() local 108 if (wps_parse_msg(cfg->assoc_wps_ie, &attr) < 0) { in wps_init() 111 } else if (attr.request_type == NULL) { in wps_init() 117 *attr.request_type); in wps_init() 118 data->request_type = *attr.request_type; in wps_init() 238 struct wps_parse_attr attr; in wps_is_selected_pbc_registrar() local 247 if (wps_parse_msg(msg, &attr) < 0 || in wps_is_selected_pbc_registrar() 248 !attr.selected_registrar || *attr.selected_registrar == 0 || in wps_is_selected_pbc_registrar() 249 !attr.dev_password_id || in wps_is_selected_pbc_registrar() 250 WPA_GET_BE16(attr.dev_password_id) != DEV_PW_PUSHBUTTON) in wps_is_selected_pbc_registrar() [all …]
|
H A D | wps_enrollee.c | 707 struct wps_parse_attr attr; in wps_process_cred_e() local 714 if (wps_parse_msg(&msg, &attr) < 0 || in wps_process_cred_e() 715 wps_process_cred(&attr, &wps->cred)) in wps_process_cred_e() 802 struct wps_parse_attr *attr, in wps_process_ap_settings_e() argument 811 if (wps_process_ap_settings(attr, &cred) < 0) in wps_process_ap_settings_e() 961 struct wps_parse_attr *attr) in wps_process_m2() argument 972 if (wps_process_registrar_nonce(wps, attr->registrar_nonce) || in wps_process_m2() 973 wps_process_enrollee_nonce(wps, attr->enrollee_nonce) || in wps_process_m2() 974 wps_process_uuid_r(wps, attr->uuid_r) || in wps_process_m2() 975 wps_process_dev_pw_id(wps, attr->dev_password_id)) { in wps_process_m2() [all …]
|
H A D | wps_module_tests.c | 266 struct wps_parse_attr attr; in wps_attr_parse_tests() local 286 if (wps_parse_msg(buf, &attr) != test->result) { in wps_attr_parse_tests() 293 if (!attr.network_key || !attr.ap_setup_locked) in wps_attr_parse_tests() 297 if (attr.num_cred != MAX_CRED_COUNT) in wps_attr_parse_tests() 301 if (!attr.network_key_idx) in wps_attr_parse_tests() 305 if (attr.num_req_dev_type != MAX_REQ_DEV_TYPE_COUNT) in wps_attr_parse_tests() 309 if (attr.num_vendor_ext != MAX_WPS_PARSE_VENDOR_EXT) in wps_attr_parse_tests() 313 if (!attr.version2 || in wps_attr_parse_tests() 314 !attr.authorized_macs || in wps_attr_parse_tests() 315 !attr.network_key_shareable || in wps_attr_parse_tests() [all …]
|
/freebsd/lib/libthr/thread/ |
H A D | thr_attr.c | 113 _thr_attr_destroy(pthread_attr_t *attr) in _thr_attr_destroy() argument 116 if (attr == NULL || *attr == NULL) in _thr_attr_destroy() 119 free((*attr)->cpuset); in _thr_attr_destroy() 120 free(*attr); in _thr_attr_destroy() 121 *attr = NULL; in _thr_attr_destroy() 164 *dst = pthread->attr; in _thr_attr_get_np() 184 _thr_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate) in _thr_attr_getdetachstate() argument 187 if (attr == NULL || *attr == NULL || detachstate == NULL) in _thr_attr_getdetachstate() 190 if (((*attr)->flags & PTHREAD_DETACHED) != 0) in _thr_attr_getdetachstate() 201 _thr_attr_getguardsize(const pthread_attr_t * __restrict attr, in _thr_attr_getguardsize() argument [all …]
|
H A D | thr_condattr.c | 49 _pthread_condattr_init(pthread_condattr_t *attr) in _pthread_condattr_init() argument 60 *attr = pattr; in _pthread_condattr_init() 67 _pthread_condattr_destroy(pthread_condattr_t *attr) in _pthread_condattr_destroy() argument 71 if (attr == NULL || *attr == NULL) { in _pthread_condattr_destroy() 74 free(*attr); in _pthread_condattr_destroy() 75 *attr = NULL; in _pthread_condattr_destroy() 82 _pthread_condattr_getclock(const pthread_condattr_t * __restrict attr, in _pthread_condattr_getclock() argument 85 if (attr == NULL || *attr == NULL) in _pthread_condattr_getclock() 87 *clock_id = (*attr)->c_clockid; in _pthread_condattr_getclock() 92 _pthread_condattr_setclock(pthread_condattr_t *attr, clockid_t clock_id) in _pthread_condattr_setclock() argument [all …]
|
H A D | thr_mutexattr.c | 95 _thr_mutexattr_init(pthread_mutexattr_t *attr) in _thr_mutexattr_init() argument 106 *attr = pattr; in _thr_mutexattr_init() 113 _pthread_mutexattr_setkind_np(pthread_mutexattr_t *attr, int kind) in _pthread_mutexattr_setkind_np() argument 116 if (attr == NULL || *attr == NULL) { in _pthread_mutexattr_setkind_np() 120 (*attr)->m_type = kind; in _pthread_mutexattr_setkind_np() 127 _pthread_mutexattr_getkind_np(pthread_mutexattr_t attr) in _pthread_mutexattr_getkind_np() argument 131 if (attr == NULL) { in _pthread_mutexattr_getkind_np() 135 ret = attr->m_type; in _pthread_mutexattr_getkind_np() 141 _thr_mutexattr_settype(pthread_mutexattr_t *attr, int type) in _thr_mutexattr_settype() argument 145 if (attr == NULL || *attr == NULL || type >= PTHREAD_MUTEX_TYPE_MAX) { in _thr_mutexattr_settype() [all …]
|
H A D | thr_barrierattr.c | 47 _pthread_barrierattr_destroy(pthread_barrierattr_t *attr) in _pthread_barrierattr_destroy() argument 50 if (attr == NULL || *attr == NULL) in _pthread_barrierattr_destroy() 53 free(*attr); in _pthread_barrierattr_destroy() 58 _pthread_barrierattr_getpshared(const pthread_barrierattr_t * __restrict attr, in _pthread_barrierattr_getpshared() argument 62 if (attr == NULL || *attr == NULL) in _pthread_barrierattr_getpshared() 65 *pshared = (*attr)->pshared; in _pthread_barrierattr_getpshared() 70 _pthread_barrierattr_init(pthread_barrierattr_t *attr) in _pthread_barrierattr_init() argument 73 if (attr == NULL) in _pthread_barrierattr_init() 76 if ((*attr = malloc(sizeof(struct pthread_barrierattr))) == NULL) in _pthread_barrierattr_init() 79 (*attr)->pshared = PTHREAD_PROCESS_PRIVATE; in _pthread_barrierattr_init() [all …]
|
H A D | thr_create.c | 53 const pthread_attr_t * __restrict attr, void *(*start_routine) (void *), in _pthread_create() argument 82 if (attr == NULL || *attr == NULL) in _pthread_create() 84 new_thread->attr = _pthread_attr_default; in _pthread_create() 86 new_thread->attr = *(*attr); in _pthread_create() 87 cpusetp = new_thread->attr.cpuset; in _pthread_create() 88 cpusetsize = new_thread->attr.cpusetsize; in _pthread_create() 89 new_thread->attr.cpuset = NULL; in _pthread_create() 90 new_thread->attr.cpusetsize = 0; in _pthread_create() 92 if (new_thread->attr.sched_inherit == PTHREAD_INHERIT_SCHED) { in _pthread_create() 94 if (curthread->attr.flags & PTHREAD_SCOPE_SYSTEM) in _pthread_create() [all …]
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | getattr.cc | 51 out.body.entry.attr.mode = mode; in expect_lookup() 53 out.body.entry.attr.nlink = 1; in expect_lookup() 56 out.body.entry.attr.size = size; in expect_lookup() 84 out.body.entry.attr.mode = S_IFREG | 0644; in TEST_F() 95 SET_OUT_HEADER_LEN(out, attr); in TEST_F() 96 out.body.attr.attr_valid = UINT64_MAX; in TEST_F() 97 out.body.attr.attr.ino = ino; // Must match nodeid in TEST_F() 98 out.body.attr.attr.mode = S_IFREG | 0644; in TEST_F() 126 SET_OUT_HEADER_LEN(out, attr); in TEST_F() 127 out.body.attr.attr_valid_nsec = NAP_NS / 2; in TEST_F() [all …]
|
H A D | setattr.cc | 91 out.body.entry.attr.mode = S_IFREG | 0644; in TEST_F() 103 SET_OUT_HEADER_LEN(out, attr); in TEST_F() 104 out.body.attr.attr.ino = ino; // Must match nodeid in TEST_F() 105 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_F() 106 out.body.attr.attr_valid = UINT64_MAX; in TEST_F() 135 out.body.entry.attr.mode = S_IFREG | oldmode; in TEST_F() 149 SET_OUT_HEADER_LEN(out, attr); in TEST_F() 150 out.body.attr.attr.ino = ino; // Must match nodeid in TEST_F() 151 out.body.attr.attr.mode = S_IFREG | newmode; in TEST_F() 174 out.body.entry.attr.mode = S_IFREG | oldmode; in TEST_F() [all …]
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_sysfs.c | 71 struct attribute attr; member 84 struct port_attribute attr; member 91 struct attribute attr; member 93 struct attribute *attr, char *buf); 95 struct attribute *attr, 103 struct attribute *attr, char *buf) in port_attr_show() argument 106 container_of(attr, struct port_attribute, attr); in port_attr_show() 116 struct attribute *attr, in port_attr_store() argument 120 container_of(attr, struct port_attribute, attr); in port_attr_store() 134 struct attribute *attr, char *buf) in gid_attr_show() argument [all …]
|
/freebsd/crypto/openssl/crypto/x509/ |
H A D | x509_att.c | 75 X509_ATTRIBUTE *attr) in STACK_OF() 92 if ((new_attr = X509_ATTRIBUTE_dup(attr)) == NULL) in STACK_OF() 109 X509_ATTRIBUTE *attr) in STACK_OF() 111 if (x == NULL || attr == NULL) { in STACK_OF() 115 if (*x != NULL && X509at_get_attr_by_OBJ(*x, attr->object, -1) != -1) { in STACK_OF() 120 return ossl_x509at_add1_attr(x, attr); in STACK_OF() 129 X509_ATTRIBUTE *attr; in STACK_OF() local 132 attr = X509_ATTRIBUTE_create_by_OBJ(NULL, obj, type, bytes, len); in STACK_OF() 133 if (attr == NULL) in STACK_OF() 135 ret = ossl_x509at_add1_attr(x, attr); in STACK_OF() [all …]
|
/freebsd/usr.sbin/makefs/cd9660/ |
H A D | iso9660_rrip.c | 156 t->attr.su_entry.CE.ca_sector); in cd9660_susp_finalize_node() 161 t->attr.su_entry.CE.ca_sector); in cd9660_susp_finalize_node() 163 t->attr.su_entry.CE.offset); in cd9660_susp_finalize_node() 165 t->attr.su_entry.CE.length); in cd9660_susp_finalize_node() 186 t->attr.rr_entry.CL.dir_loc); in cd9660_rrip_finalize_node() 196 t->attr.rr_entry.PL.dir_loc); in cd9660_rrip_finalize_node() 328 struct ISO_SUSP_ATTRIBUTES *attr; in cd9660_rrip_initialize_inode() local 338 attr = cd9660node_susp_create_node(SUSP_TYPE_RRIP, in cd9660_rrip_initialize_inode() 340 cd9660node_rrip_px(attr, node->node); in cd9660_rrip_initialize_inode() 342 TAILQ_INSERT_TAIL(&node->head, attr, rr_ll); in cd9660_rrip_initialize_inode() [all …]
|
/freebsd/contrib/ofed/libmlx4/ |
H A D | verbs.c | 46 int mlx4_query_device(struct ibv_context *context, struct ibv_device_attr *attr) in mlx4_query_device() argument 53 ret = ibv_cmd_query_device(context, attr, &raw_fw_ver, &cmd, sizeof cmd); in mlx4_query_device() 61 snprintf(attr->fw_ver, sizeof attr->fw_ver, in mlx4_query_device() 69 struct ibv_device_attr_ex *attr, in mlx4_query_device_ex() argument 81 err = ibv_cmd_query_device_ex(context, input, attr, attr_size, in mlx4_query_device_ex() 98 snprintf(attr->orig_attr.fw_ver, sizeof attr->orig_attr.fw_ver, in mlx4_query_device_ex() 151 struct ibv_port_attr *attr) in mlx4_query_port() argument 156 err = ibv_cmd_query_port(context, port, attr, &cmd, sizeof(cmd)); in mlx4_query_port() 161 attr->link_layer; in mlx4_query_port() 163 attr->port_cap_flags; in mlx4_query_port() [all …]
|
/freebsd/contrib/wpa/src/radius/ |
H A D | radius.c | 319 const struct radius_attr_type *attr; in radius_msg_dump_attr() local 339 attr = radius_get_attr_type((ext->type << 8) | ext->ext_type); in radius_msg_dump_attr() 342 attr ? attr->name : "?Unknown?", ext->length); in radius_msg_dump_attr() 346 attr = radius_get_attr_type(hdr->type); in radius_msg_dump_attr() 348 hdr->type, attr ? attr->name : "?Unknown?", in radius_msg_dump_attr() 354 if (!attr) in radius_msg_dump_attr() 357 switch (attr->data_type) { in radius_msg_dump_attr() 420 struct radius_attr_hdr *attr = radius_get_attr_hdr(msg, i); in radius_msg_dump() local 421 radius_msg_dump_attr(attr); in radius_msg_dump() 429 struct radius_attr_hdr *attr; in radius_msg_add_msg_auth() local [all …]
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | pem.h | 221 # define DECLARE_PEM_read_fp_attr(attr, name, type) /**/ argument 222 # define DECLARE_PEM_read_fp_ex_attr(attr, name, type) /**/ argument 223 # define DECLARE_PEM_write_fp_attr(attr, name, type) /**/ argument 224 # define DECLARE_PEM_write_fp_ex_attr(attr, name, type) /**/ argument 226 # define DECLARE_PEM_write_fp_const_attr(attr, name, type) /**/ argument 228 # define DECLARE_PEM_write_cb_fp_attr(attr, name, type) /**/ argument 229 # define DECLARE_PEM_write_cb_fp_ex_attr(attr, name, type) /**/ argument 233 # define DECLARE_PEM_read_fp_attr(attr, name, type) \ 234 attr PEM_read_cb_fnsig(name, type, FILE, read); 235 # define DECLARE_PEM_read_fp_ex_attr(attr, name, type) \ [all …]
|
/freebsd/contrib/ofed/libibverbs/ |
H A D | cmd.c | 135 struct ibv_device_attr_ex *attr, size_t attr_size, in ibv_cmd_query_device_ex() argument 150 sizeof(attr->comp_mask)) in ibv_cmd_query_device_ex() 163 memset(attr->orig_attr.fw_ver, 0, sizeof(attr->orig_attr.fw_ver)); in ibv_cmd_query_device_ex() 164 memset(&attr->comp_mask, 0, attr_size - sizeof(attr->orig_attr)); in ibv_cmd_query_device_ex() 170 copy_query_dev_fields(&attr->orig_attr, &resp->base, raw_fw_ver); in ibv_cmd_query_device_ex() 173 attr->comp_mask = resp->comp_mask & 0; in ibv_cmd_query_device_ex() 175 sizeof(attr->odp_caps)) { in ibv_cmd_query_device_ex() 179 attr->odp_caps.general_caps = resp->odp_caps.general_caps; in ibv_cmd_query_device_ex() 180 attr->odp_caps.per_transport_caps.rc_odp_caps = in ibv_cmd_query_device_ex() 182 attr->odp_caps.per_transport_caps.uc_odp_caps = in ibv_cmd_query_device_ex() [all …]
|
/freebsd/contrib/ofed/libmlx5/ |
H A D | verbs.c | 58 int mlx5_query_device(struct ibv_context *context, struct ibv_device_attr *attr) in mlx5_query_device() argument 65 ret = ibv_cmd_query_device(context, attr, &raw_fw_ver, &cmd, sizeof cmd); in mlx5_query_device() 73 snprintf(attr->fw_ver, sizeof attr->fw_ver, in mlx5_query_device() 126 struct ibv_port_attr *attr) in mlx5_query_port() argument 130 return ibv_cmd_query_port(context, port, attr, &cmd, sizeof cmd); in mlx5_query_port() 626 struct ibv_srq_init_attr *attr) in mlx5_create_srq() argument 650 if (attr->attr.max_wr > ctx->max_srq_recv_wr) { in mlx5_create_srq() 652 attr in mlx5_create_srq() 733 mlx5_modify_srq(struct ibv_srq * srq,struct ibv_srq_attr * attr,int attr_mask) mlx5_modify_srq() argument 742 mlx5_query_srq(struct ibv_srq * srq,struct ibv_srq_attr * attr) mlx5_query_srq() argument 823 mlx5_calc_send_wqe(struct mlx5_context * ctx,struct ibv_qp_init_attr_ex * attr,struct mlx5_qp * qp) mlx5_calc_send_wqe() argument 860 mlx5_calc_rcv_wqe(struct mlx5_context * ctx,struct ibv_qp_init_attr_ex * attr,struct mlx5_qp * qp) mlx5_calc_rcv_wqe() argument 883 mlx5_calc_sq_size(struct mlx5_context * ctx,struct ibv_qp_init_attr_ex * attr,struct mlx5_qp * qp) mlx5_calc_sq_size() argument 933 mlx5_calc_rwq_size(struct mlx5_context * ctx,struct mlx5_rwq * rwq,struct ibv_wq_init_attr * attr) mlx5_calc_rwq_size() argument 966 mlx5_calc_rq_size(struct mlx5_context * ctx,struct ibv_qp_init_attr_ex * attr,struct mlx5_qp * qp) mlx5_calc_rq_size() argument 1007 mlx5_calc_wq_size(struct mlx5_context * ctx,struct ibv_qp_init_attr_ex * attr,struct mlx5_qp * qp) mlx5_calc_wq_size() argument 1050 mlx5_alloc_qp_buf(struct ibv_context * context,struct ibv_qp_init_attr_ex * attr,struct mlx5_qp * qp,int size) mlx5_alloc_qp_buf() argument 1171 mlx5_cmd_create_rss_qp(struct ibv_context * context,struct ibv_qp_init_attr_ex * attr,struct mlx5_qp * qp) mlx5_cmd_create_rss_qp() argument 1202 mlx5_cmd_create_qp_ex(struct ibv_context * context,struct ibv_qp_init_attr_ex * attr,struct mlx5_create_qp * cmd,struct mlx5_qp * qp,struct mlx5_create_qp_resp_ex * resp) mlx5_cmd_create_qp_ex() argument 1246 create_qp(struct ibv_context * context,struct ibv_qp_init_attr_ex * attr) create_qp() argument 1435 mlx5_create_qp(struct ibv_pd * pd,struct ibv_qp_init_attr * attr) mlx5_create_qp() argument 1546 mlx5_query_qp(struct ibv_qp * ibqp,struct ibv_qp_attr * attr,int attr_mask,struct ibv_qp_init_attr * init_attr) mlx5_query_qp() argument 1573 mlx5_modify_qp(struct ibv_qp * qp,struct ibv_qp_attr * attr,int attr_mask) mlx5_modify_qp() argument 1659 mlx5_create_ah(struct ibv_pd * pd,struct ibv_ah_attr * attr) mlx5_create_ah() argument 1770 mlx5_create_qp_ex(struct ibv_context * context,struct ibv_qp_init_attr_ex * attr) mlx5_create_qp_ex() argument 1821 mlx5_create_xrc_srq(struct ibv_context * context,struct ibv_srq_init_attr_ex * attr) mlx5_create_xrc_srq() argument 1951 mlx5_create_srq_ex(struct ibv_context * context,struct ibv_srq_init_attr_ex * attr) mlx5_create_srq_ex() argument 1965 mlx5_query_device_ex(struct ibv_context * context,const struct ibv_query_device_ex_input * input,struct ibv_device_attr_ex * attr,size_t attr_size) mlx5_query_device_ex() argument 2059 mlx5_create_wq(struct ibv_context * context,struct ibv_wq_init_attr * attr) mlx5_create_wq() argument 2151 mlx5_modify_wq(struct ibv_wq * wq,struct ibv_wq_attr * attr) mlx5_modify_wq() argument [all...] |
/freebsd/sys/ofed/include/rdma/ |
H A D | uverbs_ioctl.h | 323 struct uverbs_attr_spec attr; member 521 .attr = { .type = UVERBS_ATTR_TYPE_IDRS_ARRAY, \ 537 .attr = { .type = UVERBS_ATTR_TYPE_IDR, \ 547 .attr = { .type = UVERBS_ATTR_TYPE_FD, \ 555 .attr = { .type = UVERBS_ATTR_TYPE_PTR_IN, \ 562 .attr = { .type = UVERBS_ATTR_TYPE_PTR_OUT, \ 570 .attr = { .type = UVERBS_ATTR_TYPE_ENUM_IN, \ 698 const struct uverbs_attr *attr = uverbs_attr_get(attrs_bundle, idx); in uverbs_attr_get_enum_id() local 700 if (IS_ERR(attr)) in uverbs_attr_get_enum_id() 701 return PTR_ERR(attr); in uverbs_attr_get_enum_id() [all …]
|
/freebsd/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_sysfs.c | 47 struct device_attribute *attr, char *buf) in show_admin_alias_guid() argument 50 container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry); in show_admin_alias_guid() 69 struct device_attribute *attr, in store_admin_alias_guid() argument 75 container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry); in store_admin_alias_guid() 112 struct device_attribute *attr, in show_port_gid() argument 116 container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry); in show_port_gid() 139 struct device_attribute *attr, in show_phys_port_pkey() argument 143 container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry); in show_phys_port_pkey() 159 sysfs_remove_file((_dentry)->kobj, &(_dentry)->dentry.attr); \ 165 struct device_attribute *attr, in create_sysfs_entry() argument [all …]
|
/freebsd/sys/sys/ |
H A D | tree.h | 412 #define RB_PROTOTYPE_INTERNAL(name, type, field, cmp, attr) \ argument 413 RB_PROTOTYPE_RANK(name, type, attr) \ 414 RB_PROTOTYPE_INSERT_COLOR(name, type, attr); \ 415 RB_PROTOTYPE_REMOVE_COLOR(name, type, attr); \ 416 RB_PROTOTYPE_INSERT_FINISH(name, type, attr); \ 417 RB_PROTOTYPE_INSERT(name, type, attr); \ 418 RB_PROTOTYPE_REMOVE(name, type, attr); \ 419 RB_PROTOTYPE_FIND(name, type, attr); \ 420 RB_PROTOTYPE_NFIND(name, type, attr); \ 421 RB_PROTOTYPE_NEXT(name, type, attr); \ [all …]
|
/freebsd/contrib/ofed/librdmacm/examples/ |
H A D | rdma_xserver.c | 52 struct ibv_srq_init_attr attr; in create_srq() local 56 attr.attr.max_wr = 1; in create_srq() 57 attr.attr.max_sge = 1; in create_srq() 58 attr.attr.srq_limit = 0; in create_srq() 59 attr.srq_context = id; in create_srq() 61 ret = rdma_create_srq(id, NULL, &attr); in create_srq() 75 struct ibv_qp_init_attr attr; in test() local 86 memset(&attr, 0, sizeof attr); in test() 87 attr.cap.max_send_wr = attr.cap.max_recv_wr = 1; in test() 88 attr.cap.max_send_sge = attr.cap.max_recv_sge = 1; in test() [all …]
|
/freebsd/sys/dev/cxgbe/iw_cxgbe/ |
H A D | mem.c | 364 mhp->attr.state = 1; in finish_mem_reg() 365 mhp->attr.stag = stag; in finish_mem_reg() 378 ret = write_tpt_entry(&rhp->rdev, 0, &stag, 1, mhp->attr.pdid, in register_mem() 379 FW_RI_STAG_NSMR, mhp->attr.len ? mhp->attr.perms : 0, in register_mem() 380 mhp->attr.mw_bind_enable, mhp->attr.zbva, in register_mem() 381 mhp->attr.va_fbo, mhp->attr.len ? mhp->attr.len : -1, shift - 12, in register_mem() 382 mhp->attr.pbl_size, mhp->attr.pbl_addr); in register_mem() 388 dereg_mem(&rhp->rdev, mhp->attr.stag, mhp->attr.pbl_size, in register_mem() 389 mhp->attr.pbl_addr); in register_mem() 395 mhp->attr.pbl_addr = c4iw_pblpool_alloc(&mhp->rhp->rdev, in alloc_pbl() [all …]
|