| /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 …]
|
| /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 | 59 const pthread_attr_t * __restrict attr, void *(*start_routine) (void *), in _pthread_create() argument 88 if (attr == NULL || *attr == NULL) in _pthread_create() 90 new_thread->attr = _pthread_attr_default; in _pthread_create() 92 new_thread->attr = *(*attr); in _pthread_create() 93 cpusetp = new_thread->attr.cpuset; in _pthread_create() 94 cpusetsize = new_thread->attr.cpusetsize; in _pthread_create() 95 new_thread->attr.cpuset = NULL; in _pthread_create() 96 new_thread->attr.cpusetsize = 0; in _pthread_create() 98 if (new_thread->attr.sched_inherit == PTHREAD_INHERIT_SCHED) { in _pthread_create() 100 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 | 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 …]
|
| /freebsd/contrib/smart/ |
| H A D | libsmart.c | 210 smart_map_t *tm = sm->attr[i].thresh; in smart_free() 216 if (sm->attr[i].flags & SMART_ATTR_F_ALLOC) { in smart_free() 217 free((void *)(uintptr_t)sm->attr[i].description); in smart_free() 328 *((uint16_t *)tm->attr[0].raw), in __smart_print_thresh() 329 *((uint8_t *)tm->attr[1].raw), in __smart_print_thresh() 330 *((uint8_t *)tm->attr[2].raw)); in __smart_print_thresh() 335 __smart_attr_match(smart_matches_t *match, smart_attr_t *attr) in __smart_attr_match() argument 339 assert((match != NULL) && (attr != NULL)); in __smart_attr_match() 342 if ((match->m[i].page != -1) && ((uint32_t)match->m[i].page != attr->page)) in __smart_attr_match() 345 if ((uint32_t)match->m[i].id == attr->id) in __smart_attr_match() [all …]
|
| /freebsd/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 …]
|
| /freebsd/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 …]
|
| /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 | 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 …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | Attr.h | 46 LLVM_PREFERRED_TYPE(attr::Kind) 84 attr::Kind AK, bool IsLateParsed) in Attr() 90 attr::Kind getKind() const { return static_cast<attr::Kind>(AttrKind); } in getKind() 117 static StringRef getDocumentation(attr::Kind); 123 attr::Kind AK, bool IsLateParsed) in TypeAttr() 128 return A->getKind() >= attr::FirstTypeAttr && in classof() 129 A->getKind() <= attr::LastTypeAttr; in classof() 136 attr::Kind AK, bool IsLateParsed) in StmtAttr() 141 return A->getKind() >= attr::FirstStmtAttr && in classof() 142 A->getKind() <= attr::LastStmtAttr; in classof() [all …]
|
| /freebsd/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 …]
|
| /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/contrib/xz/src/common/ |
| H A D | my_landlock.h | 36 my_landlock_ruleset_attr_forbid_all(struct landlock_ruleset_attr *attr) in my_landlock_ruleset_attr_forbid_all() argument 38 memzero(attr, sizeof(*attr)); in my_landlock_ruleset_attr_forbid_all() 76 attr->handled_access_fs in my_landlock_ruleset_attr_forbid_all() 103 attr->handled_access_net in my_landlock_ruleset_attr_forbid_all() 110 attr->scoped in my_landlock_ruleset_attr_forbid_all() 119 attr->handled_access_fs &= ~LANDLOCK_ACCESS_FS_REFER; in my_landlock_ruleset_attr_forbid_all() 125 attr->handled_access_fs &= ~LANDLOCK_ACCESS_FS_TRUNCATE; in my_landlock_ruleset_attr_forbid_all() 131 attr->handled_access_net = 0; in my_landlock_ruleset_attr_forbid_all() 137 attr->handled_access_fs &= ~LANDLOCK_ACCESS_FS_IOCTL_DEV; in my_landlock_ruleset_attr_forbid_all() 143 attr->scoped = 0; in my_landlock_ruleset_attr_forbid_all() [all …]
|