| /src/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 241 * In theory, this could also verify that attr.sel_reg_config_methods in wps_is_selected_pbc_registrar() 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() [all …]
|
| /src/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 …]
|
| /src/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 …]
|
| /src/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 …]
|
| /src/crypto/openssl/crypto/x509/ |
| H A D | x509_att.c | 83 const X509_ATTRIBUTE *attr) in STACK_OF() 88 if (x == NULL || attr == NULL) { in STACK_OF() 102 if ((new_attr = X509_ATTRIBUTE_dup(attr)) == NULL) in STACK_OF() 119 X509_ATTRIBUTE *attr) in STACK_OF() 121 if (x == NULL || attr == NULL) { in STACK_OF() 125 if (*x != NULL && X509at_get_attr_by_OBJ(*x, attr->object, -1) != -1) { in STACK_OF() 127 "name=%s", OBJ_nid2sn(OBJ_obj2nid(attr->object))); in STACK_OF() 131 return ossl_x509at_add1_attr(x, attr); in STACK_OF() 140 X509_ATTRIBUTE *attr; in STACK_OF() local 143 attr = X509_ATTRIBUTE_create_by_OBJ(NULL, obj, type, bytes, len); in STACK_OF() [all …]
|
| /src/share/man/man3/ |
| H A D | pthread_attr.3 | 57 .Fn pthread_attr_init "pthread_attr_t *attr" 59 .Fn pthread_attr_destroy "pthread_attr_t *attr" 61 .Fn pthread_attr_setstack "pthread_attr_t *attr" " void *stackaddr" "size_t stacksize" 63 .Fn pthread_attr_getstack "const pthread_attr_t * restrict attr" "void ** restrict stackaddr" "size… 65 .Fn pthread_attr_setstacksize "pthread_attr_t *attr" "size_t stacksize" 67 .Fn pthread_attr_getstacksize "const pthread_attr_t *restrict attr" "size_t *restrict stacksize" 69 .Fn pthread_attr_setguardsize "pthread_attr_t *attr" "size_t guardsize" 71 .Fn pthread_attr_getguardsize "const pthread_attr_t * restrict attr" "size_t * restrict guardsize" 73 .Fn pthread_attr_setstackaddr "pthread_attr_t *attr" "void *stackaddr" 75 .Fn pthread_attr_getstackaddr "const pthread_attr_t *attr" "void **stackaddr" [all …]
|
| H A D | pthread.3 | 77 .Fa "pthread_t *thread" "const pthread_attr_t *attr" 147 .Fn pthread_attr_destroy "pthread_attr_t *attr" 153 .Fa "const pthread_attr_t *attr" "int *inheritsched" 160 .Fa "const pthread_attr_t *attr" "struct sched_param *param" 166 .Fn pthread_attr_getschedpolicy "const pthread_attr_t *attr" "int *policy" 171 .Fn pthread_attr_getscope "const pthread_attr_t *attr" "int *contentionscope" 176 .Fn pthread_attr_getstacksize "const pthread_attr_t *attr" "size_t *stacksize" 181 .Fn pthread_attr_getstackaddr "const pthread_attr_t *attr" "void **stackaddr" 186 .Fn pthread_attr_getdetachstate "const pthread_attr_t *attr" "int *detachstate" 191 .Fn pthread_attr_init "pthread_attr_t *attr" [all …]
|
| H A D | pthread_mutexattr.3 | 54 .Fn pthread_mutexattr_init "pthread_mutexattr_t *attr" 56 .Fn pthread_mutexattr_destroy "pthread_mutexattr_t *attr" 59 .Fa "pthread_mutexattr_t *attr" "int prioceiling" 63 .Fa "const pthread_mutexattr_t *attr" "int *prioceiling" 66 .Fn pthread_mutexattr_setprotocol "pthread_mutexattr_t *attr" "int protocol" 69 .Fa "const pthread_mutexattr_t *restrict attr" "int *restrict protocol" 73 .Fa "pthread_mutexattr_t *attr" "int shared" 77 .Fa "const pthread_mutexattr_t *attr" "int *shared" 80 .Fn pthread_mutexattr_setrobust "pthread_mutexattr_t *attr" "int robust" 82 .Fn pthread_mutexattr_getrobust "pthread_mutexattr_t *attr" "int *robust" [all …]
|
| /src/crypto/openssl/include/openssl/ |
| H A D | pem.h | 227 #define DECLARE_PEM_read_fp_attr(attr, name, type) /**/ argument 228 #define DECLARE_PEM_read_fp_ex_attr(attr, name, type) /**/ argument 229 #define DECLARE_PEM_write_fp_attr(attr, name, type) /**/ argument 230 #define DECLARE_PEM_write_fp_ex_attr(attr, name, type) /**/ argument 232 #define DECLARE_PEM_write_fp_const_attr(attr, name, type) /**/ argument 234 #define DECLARE_PEM_write_cb_fp_attr(attr, name, type) /**/ argument 235 #define DECLARE_PEM_write_cb_fp_ex_attr(attr, name, type) /**/ argument 239 #define DECLARE_PEM_read_fp_attr(attr, name, type) \ 240 attr PEM_read_cb_fnsig(name, type, FILE, read); 241 #define DECLARE_PEM_read_fp_ex_attr(attr, name, type) \ [all …]
|
| /src/usr.sbin/makefs/cd9660/ |
| H A D | iso9660_rrip.c | 172 t->attr.su_entry.CE.ca_sector); in cd9660_susp_finalize_node() 177 t->attr.su_entry.CE.ca_sector); in cd9660_susp_finalize_node() 179 t->attr.su_entry.CE.offset); in cd9660_susp_finalize_node() 181 t->attr.su_entry.CE.length); in cd9660_susp_finalize_node() 202 t->attr.rr_entry.CL.dir_loc); in cd9660_rrip_finalize_node() 212 t->attr.rr_entry.PL.dir_loc); in cd9660_rrip_finalize_node() 344 struct ISO_SUSP_ATTRIBUTES *attr; in cd9660_rrip_initialize_inode() local 354 attr = cd9660node_susp_create_node(SUSP_TYPE_RRIP, in cd9660_rrip_initialize_inode() 356 cd9660node_rrip_px(diskStructure, attr, node->node); in cd9660_rrip_initialize_inode() 358 TAILQ_INSERT_TAIL(&node->head, attr, rr_ll); in cd9660_rrip_initialize_inode() [all …]
|
| /src/contrib/ofed/libibverbs/ |
| H A D | cmd.c | 134 struct ibv_device_attr_ex *attr, size_t attr_size, in ibv_cmd_query_device_ex() argument 149 sizeof(attr->comp_mask)) in ibv_cmd_query_device_ex() 162 memset(attr->orig_attr.fw_ver, 0, sizeof(attr->orig_attr.fw_ver)); in ibv_cmd_query_device_ex() 163 memset(&attr->comp_mask, 0, attr_size - sizeof(attr->orig_attr)); in ibv_cmd_query_device_ex() 169 copy_query_dev_fields(&attr->orig_attr, &resp->base, raw_fw_ver); in ibv_cmd_query_device_ex() 172 attr->comp_mask = resp->comp_mask & 0; in ibv_cmd_query_device_ex() 174 sizeof(attr->odp_caps)) { in ibv_cmd_query_device_ex() 178 attr->odp_caps.general_caps = resp->odp_caps.general_caps; in ibv_cmd_query_device_ex() 179 attr->odp_caps.per_transport_caps.rc_odp_caps = in ibv_cmd_query_device_ex() 181 attr->odp_caps.per_transport_caps.uc_odp_caps = in ibv_cmd_query_device_ex() [all …]
|
| /src/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 …]
|
| /src/sys/compat/linuxkpi/common/include/linux/ |
| H A D | sysfs.h | 47 struct attribute attr; member 64 .attr = { .name = __stringify(_name), .mode = _mode }, \ 68 .attr = { .name = __stringify(_name), .mode = 0444 }, \ 73 #define __ATTR_NULL { .attr = { .name = NULL } } 86 .attr = { .name = __stringify(_name), .mode = _mode }, \ 90 .attr = { .name = __stringify(_name), .mode = 0444 }, \ 94 .attr = { .name = __stringify(_name), .mode = 0200 }, \ 98 .attr = { .name = __stringify(_name), .mode = 0644 }, \ 129 struct attribute *attr; in sysctl_handle_attr() local 136 attr = (struct attribute *)(intptr_t)arg2; in sysctl_handle_attr() [all …]
|
| /src/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | Attr.h | 1 //===--- Attr.h - Classes for representing attributes ----------*- C++ -*-===// 9 // This file defines the Attr interface and subclasses. 41 /// Attr - This represents one attribute. 42 class Attr : public AttributeCommonInfo { 44 LLVM_PREFERRED_TYPE(attr::Kind) 49 /// attribute defined in Attr.td file. 81 Attr(ASTContext &Context, const AttributeCommonInfo &CommonInfo, in Attr() function 82 attr::Kind AK, bool IsLateParsed) in Attr() 88 attr::Kind getKind() const { return static_cast<attr::Kind>(AttrKind); } in getKind() 108 Attr *clone(ASTContext &C) const; [all …]
|
| /src/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->attr.max_wr, ctx->max_srq_recv_wr); in mlx5_create_srq() 663 if (attr->attr.max_sge > max_sge) { in mlx5_create_srq() 665 attr->attr.max_wr, ctx->max_srq_recv_wr); in mlx5_create_srq() [all …]
|
| /src/crypto/openssh/contrib/suse/ |
| H A D | openssh.spec | 198 %attr(0755,root,root) %dir %{_sysconfdir}/ssh 199 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ssh/ssh_config 200 %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/sshd_config 201 %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/moduli 202 %attr(0644,root,root) %config(noreplace) /etc/pam.d/sshd 203 %attr(0755,root,root) %config /etc/init.d/sshd 204 %attr(0755,root,root) %{_bindir}/ssh-keygen 205 %attr(0755,root,root) %{_bindir}/scp 206 %attr(0755,root,root) %{_bindir}/ssh 207 %attr(0755,root,root) %{_bindir}/ssh-agent [all …]
|
| /src/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 …]
|
| /src/sys/dev/cxgbe/iw_cxgbe/ |
| H A D | mem.c | 303 mhp->attr.state = 1; in finish_mem_reg() 304 mhp->attr.stag = stag; in finish_mem_reg() 317 ret = write_tpt_entry(&rhp->rdev, 0, &stag, 1, mhp->attr.pdid, in register_mem() 318 FW_RI_STAG_NSMR, mhp->attr.len ? mhp->attr.perms : 0, in register_mem() 319 mhp->attr.mw_bind_enable, mhp->attr.zbva, in register_mem() 320 mhp->attr.va_fbo, mhp->attr.len ? mhp->attr.len : -1, shift - 12, in register_mem() 321 mhp->attr.pbl_size, mhp->attr.pbl_addr); in register_mem() 327 dereg_mem(&rhp->rdev, mhp->attr.stag, mhp->attr.pbl_size, in register_mem() 328 mhp->attr.pbl_addr); in register_mem() 334 mhp->attr.pbl_addr = c4iw_pblpool_alloc(&mhp->rhp->rdev, in alloc_pbl() [all …]
|
| /src/sys/sys/ |
| H A D | arb.h | 239 #define ARB_PROTOTYPE_INTERNAL(name, type, field, cmp, attr) \ argument 240 ARB_PROTOTYPE_INSERT_COLOR(name, type, attr); \ 241 ARB_PROTOTYPE_REMOVE_COLOR(name, type, attr); \ 242 ARB_PROTOTYPE_INSERT(name, type, attr); \ 243 ARB_PROTOTYPE_REMOVE(name, type, attr); \ 244 ARB_PROTOTYPE_CFIND(name, type, attr); \ 245 ARB_PROTOTYPE_FIND(name, type, attr); \ 246 ARB_PROTOTYPE_NFIND(name, type, attr); \ 247 ARB_PROTOTYPE_CNEXT(name, type, attr); \ 248 ARB_PROTOTYPE_NEXT(name, type, attr); \ [all …]
|
| /src/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 …]
|