/openbmc/u-boot/test/env/ |
H A D | attr.c | 15 char attrs[32]; in env_test_attrs_lookup() local 18 ut_asserteq_str("bar", attrs); in env_test_attrs_lookup() 21 ut_asserteq_str("bar", attrs); in env_test_attrs_lookup() 24 ut_asserteq_str("bar", attrs); in env_test_attrs_lookup() 27 ut_asserteq_str("bar", attrs); in env_test_attrs_lookup() 30 ut_asserteq_str("bar", attrs); in env_test_attrs_lookup() 33 ut_asserteq_str("bar", attrs); in env_test_attrs_lookup() 36 ut_asserteq_str("bar", attrs); in env_test_attrs_lookup() 39 ut_asserteq_str("bar", attrs); in env_test_attrs_lookup() 46 ut_asserteq_str("baz", attrs); in env_test_attrs_lookup() [all …]
|
/openbmc/linux/tools/lib/thermal/ |
H A D | events.c | 25 struct nlattr *attrs[THERMAL_GENL_ATTR_MAX + 1]; in handle_thermal_event() local 29 genlmsg_parse(nlh, 0, attrs, THERMAL_GENL_ATTR_MAX, NULL); in handle_thermal_event() 43 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg); in handle_thermal_event() 56 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_ID]), in handle_thermal_event() 57 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_TYPE]), in handle_thermal_event() 58 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_TEMP]), in handle_thermal_event() 63 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_ID]), in handle_thermal_event() 64 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_TYPE]), in handle_thermal_event() 74 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_ID]), in handle_thermal_event() 79 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_ID]), in handle_thermal_event() [all …]
|
/openbmc/linux/net/ieee802154/ |
H A D | nl-mac.c | 149 if (info->attrs[IEEE802154_ATTR_DEV_NAME]) { in ieee802154_nl_get_dev() 180 if (!info->attrs[IEEE802154_ATTR_CHANNEL] || in ieee802154_associate_req() 205 if (info->attrs[IEEE802154_ATTR_PAGE]) in ieee802154_associate_req() 226 if (!info->attrs[IEEE802154_ATTR_STATUS] || in ieee802154_associate_resp() 261 !info->attrs[IEEE802154_ATTR_REASON]) in ieee802154_disassociate_req() 309 !info->attrs[IEEE802154_ATTR_SF_ORD] || in ieee802154_start_req() 341 if (info->attrs[IEEE802154_ATTR_PAGE]) in ieee802154_start_req() 391 if (info->attrs[IEEE802154_ATTR_PAGE]) in ieee802154_scan_req() 505 if (info->attrs[IEEE802154_ATTR_TXPOWER]) in ieee802154_set_macparams() 511 if (info->attrs[IEEE802154_ATTR_CCA_MODE]) in ieee802154_set_macparams() [all …]
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | uverbs_std_types_device.c | 21 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() 36 uverbs_fill_udata(attrs, &attrs->ucore, UVERBS_ATTR_CORE_IN, in UVERBS_HANDLER() 43 attrs->uobject = NULL; in UVERBS_HANDLER() 44 rc = method_elm->handler(attrs); in UVERBS_HANDLER() 45 if (attrs->uobject) in UVERBS_HANDLER() 47 !rc, attrs); in UVERBS_HANDLER() 123 handles = gather_objects_handle(attrs->ufile, uapi_object, attrs, in UVERBS_HANDLER() 233 kfree(attrs->context); in UVERBS_HANDLER() 234 attrs->context = NULL; in UVERBS_HANDLER() 282 ret = uverbs_copy_to(attrs, in copy_gid_entries_to_user() [all …]
|
H A D | uverbs_std_types_mr.c | 41 struct uverbs_attr_bundle *attrs) in uverbs_free_mr() argument 44 &attrs->driver_udata); in uverbs_free_mr() 48 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() 80 attrs); in UVERBS_HANDLER() 84 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() 157 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() 187 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() 203 ret = uverbs_copy_from(&offset, attrs, in UVERBS_HANDLER() 213 ret = uverbs_copy_from(&iova, attrs, in UVERBS_HANDLER() 221 ret = uverbs_copy_from(&fd, attrs, in UVERBS_HANDLER() [all …]
|
H A D | uverbs_std_types_qp.c | 13 struct uverbs_attr_bundle *attrs) in uverbs_free_qp() argument 83 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() 115 if (uverbs_attr_is_valid(attrs, in UVERBS_HANDLER() 117 uverbs_attr_is_valid(attrs, in UVERBS_HANDLER() 119 uverbs_attr_is_valid(attrs, in UVERBS_HANDLER() 121 uverbs_attr_is_valid(attrs, in UVERBS_HANDLER() 144 if (uverbs_attr_is_valid(attrs, in UVERBS_HANDLER() 146 (uverbs_attr_is_valid(attrs, in UVERBS_HANDLER() 151 pd = uverbs_attr_get_obj(attrs, in UVERBS_HANDLER() 208 if (uverbs_attr_is_valid(attrs, in UVERBS_HANDLER() [all …]
|
H A D | uverbs_std_types_wq.c | 12 struct uverbs_attr_bundle *attrs) in uverbs_free_wq() argument 19 ret = ib_destroy_wq_user(wq, &attrs->driver_udata); in uverbs_free_wq() 28 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() 42 ret = uverbs_get_flags32(&wq_init_attr.create_flags, attrs, in UVERBS_HANDLER() 49 ret = uverbs_copy_from(&wq_init_attr.max_sge, attrs, in UVERBS_HANDLER() 52 ret = uverbs_copy_from(&wq_init_attr.max_wr, attrs, in UVERBS_HANDLER() 55 ret = uverbs_copy_from(&user_handle, attrs, in UVERBS_HANDLER() 58 ret = uverbs_get_const(&wq_init_attr.wq_type, attrs, in UVERBS_HANDLER() 66 obj->uevent.event_file = ib_uverbs_get_async_event(attrs, in UVERBS_HANDLER() 71 wq_init_attr.wq_context = attrs->ufile; in UVERBS_HANDLER() [all …]
|
H A D | rdma_core.c | 139 attrs); in uverbs_destroy_uobject() 233 ret = uobj_destroy(uobj, attrs); in __uobj_get_destroy() 265 if (!attrs->context) { in alloc_uobj() 271 attrs->context = ucontext; in alloc_uobj() 282 uobj->context = attrs->context; in alloc_uobj() 413 if (attrs) in rdma_lookup_get_uobject() 414 attrs->context = uobj->context; in rdma_lookup_get_uobject() 430 uobj = alloc_uobj(attrs, obj); in alloc_begin_idr_uobject() 461 uobj = alloc_uobj(attrs, obj); in alloc_begin_fd_uobject() 706 uobj, RDMA_REMOVE_ABORT, attrs); in rdma_alloc_abort_uobject() [all …]
|
H A D | uverbs_cmd.c | 142 iter->end = attrs->ucore.inbuf + attrs->ucore.inlen; in uverbs_request_start() 192 fd, attrs); in _ib_uverbs_lookup_comp_file() 811 attrs); in ib_uverbs_rereg_mr() 1342 attrs); in create_qp() 1388 attrs); in create_qp() 1763 attrs); in modify_qp() 2667 attrs); in kern_spec_to_ib_spec_action() 2685 attrs); in kern_spec_to_ib_spec_action() 3381 attrs); in __uverbs_create_xsrq() 3488 return __uverbs_create_xsrq(attrs, &xcmd, &attrs->driver_udata); in ib_uverbs_create_srq() [all …]
|
H A D | uverbs_std_types_srq.c | 12 struct uverbs_attr_bundle *attrs) in uverbs_free_srq() argument 37 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() 50 ret = uverbs_copy_from(&attr.attr.max_sge, attrs, in UVERBS_HANDLER() 53 ret = uverbs_copy_from(&attr.attr.max_wr, attrs, in UVERBS_HANDLER() 59 ret = uverbs_copy_from(&user_handle, attrs, in UVERBS_HANDLER() 62 ret = uverbs_get_const(&attr.srq_type, attrs, in UVERBS_HANDLER() 68 attr.ext.cq = uverbs_attr_get_obj(attrs, in UVERBS_HANDLER() 76 xrcd_uobj = uverbs_attr_get_uobject(attrs, in UVERBS_HANDLER() 90 attrs, in UVERBS_HANDLER() 129 ret = uverbs_copy_to(attrs, in UVERBS_HANDLER() [all …]
|
H A D | uverbs_std_types_cq.c | 40 struct uverbs_attr_bundle *attrs) in uverbs_free_cq() argument 48 ret = ib_destroy_cq_user(cq, &attrs->driver_udata); in uverbs_free_cq() 62 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() 65 uverbs_attr_get_uobject(attrs, UVERBS_ATTR_CREATE_CQ_HANDLE), in UVERBS_HANDLER() 67 struct ib_device *ib_dev = attrs->context->device; in UVERBS_HANDLER() 78 ret = uverbs_copy_from(&attr.comp_vector, attrs, in UVERBS_HANDLER() 81 ret = uverbs_copy_from(&attr.cqe, attrs, in UVERBS_HANDLER() 84 ret = uverbs_copy_from(&user_handle, attrs, in UVERBS_HANDLER() 89 ret = uverbs_get_flags32(&attr.flags, attrs, in UVERBS_HANDLER() 105 attrs, UVERBS_ATTR_CREATE_CQ_EVENT_FD); in UVERBS_HANDLER() [all …]
|
/openbmc/qemu/hw/intc/ |
H A D | arm_gicv3_dist.c | 581 r = gicd_read_irouter(s, attrs, irq); in gicd_readl() 624 if (attrs.secure) { in gicd_writel() 801 r = gicd_read_irouter(s, attrs, irq); in gicd_writel() 803 gicd_write_irouter(s, attrs, irq, r); in gicd_writel() 859 r = gicd_readb(s, offset, data, attrs); in gicv3_dist_read() 862 r = gicd_readw(s, offset, data, attrs); in gicv3_dist_read() 865 r = gicd_readl(s, offset, data, attrs); in gicv3_dist_read() 868 r = gicd_readq(s, offset, data, attrs); in gicv3_dist_read() 900 r = gicd_writeb(s, offset, data, attrs); in gicv3_dist_write() 903 r = gicd_writew(s, offset, data, attrs); in gicv3_dist_write() [all …]
|
H A D | arm_gic.c | 665 MemTxAttrs attrs) in gic_dist_set_priority() argument 667 if (s->security_extn && !attrs.secure) { in gic_dist_set_priority() 700 if (gic_cpu_ns_access(s, cpu, attrs)) { in gic_set_priority_mask() 716 if (gic_cpu_ns_access(s, cpu, attrs)) { in gic_get_priority_mask() 732 if (gic_cpu_ns_access(s, cpu, attrs)) { in gic_get_cpu_control() 748 if (gic_cpu_ns_access(s, cpu, attrs)) { in gic_set_cpu_control() 779 if (gic_cpu_ns_access(s, cpu, attrs)) { in gic_get_running_priority() 803 if (gic_cpu_ns_access(s, cpu, attrs)) { in gic_eoi_split() 826 if (!gic_eoi_split(s, cpu, attrs)) { in gic_deactivate_irq() 938 if (!gic_eoi_split(s, cpu, attrs)) { in gic_complete_irq() [all …]
|
/openbmc/linux/drivers/soc/aspeed/ |
H A D | aspeed-socinfo.c | 79 struct soc_device_attribute *attrs; in aspeed_socinfo_init() local 112 attrs = kzalloc(sizeof(*attrs), GFP_KERNEL); in aspeed_socinfo_init() 113 if (!attrs) in aspeed_socinfo_init() 138 soc_dev = soc_device_register(attrs); in aspeed_socinfo_init() 140 kfree(attrs->machine); in aspeed_socinfo_init() 141 kfree(attrs->soc_id); in aspeed_socinfo_init() 142 kfree(attrs->serial_number); in aspeed_socinfo_init() 143 kfree(attrs); in aspeed_socinfo_init() 148 attrs->family, in aspeed_socinfo_init() 149 attrs->revision, in aspeed_socinfo_init() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ipsec.c | 285 src = attrs->dmac; in mlx5e_ipsec_init_macs() 323 memset(attrs, 0, sizeof(*attrs)); in mlx5e_ipsec_build_accel_xfrm_attrs() 384 memcpy(&attrs->saddr, x->props.saddr.a6, sizeof(attrs->saddr)); in mlx5e_ipsec_build_accel_xfrm_attrs() 385 memcpy(&attrs->daddr, x->id.daddr.a6, sizeof(attrs->daddr)); in mlx5e_ipsec_build_accel_xfrm_attrs() 561 attrs = &((struct mlx5e_ipsec_sa_entry *)work->data)->attrs; in mlx5e_ipsec_modify_state() 590 attrs = &sa_entry->attrs; in mlx5e_ipsec_handle_netdev_event() 795 struct mlx5_accel_esp_xfrm_attrs *attrs = &sa_entry->attrs; in mlx5e_xfrm_del_state() local 854 attrs = &sa_entry->attrs; in mlx5e_ipsec_netevent_event() 1074 memset(attrs, 0, sizeof(*attrs)); in mlx5e_ipsec_build_accel_pol_attrs() 1076 memcpy(&attrs->saddr, sel->saddr.a6, sizeof(attrs->saddr)); in mlx5e_ipsec_build_accel_pol_attrs() [all …]
|
/openbmc/linux/net/devlink/ |
H A D | port.c | 206 struct devlink_port_attrs *attrs = &devlink_port->attrs; in devlink_nl_port_attrs_put() local 210 if (attrs->lanes) { in devlink_nl_port_attrs_put() 251 if (!attrs->split) in devlink_nl_port_attrs_put() 1278 struct devlink_port_attrs *attrs = &devlink_port->attrs; in __devlink_port_attrs_set() local 1305 devlink_port->attrs = *attrs; in devlink_port_attrs_set() 1309 WARN_ON(attrs->splittable && attrs->split); in devlink_port_attrs_set() 1324 struct devlink_port_attrs *attrs = &devlink_port->attrs; in devlink_port_attrs_pci_pf_set() local 1351 struct devlink_port_attrs *attrs = &devlink_port->attrs; in devlink_port_attrs_pci_vf_set() local 1379 struct devlink_port_attrs *attrs = &devlink_port->attrs; in devlink_port_attrs_pci_sf_set() local 1413 struct devlink_port_attrs *attrs = &devlink_port->attrs; in __devlink_port_phys_port_name_get() local [all …]
|
/openbmc/linux/drivers/net/wireguard/ |
H A D | netlink.c | 57 if (!attrs[WGDEVICE_A_IFINDEX] == !attrs[WGDEVICE_A_IFNAME]) in lookup_interface() 59 if (attrs[WGDEVICE_A_IFINDEX]) in lookup_interface() 62 else if (attrs[WGDEVICE_A_IFNAME]) in lookup_interface() 335 if (!attrs[WGALLOWEDIP_A_FAMILY] || !attrs[WGALLOWEDIP_A_IPADDR] || in set_allowedip() 365 if (attrs[WGPEER_A_PUBLIC_KEY] && in set_peer() 374 if (attrs[WGPEER_A_FLAGS]) in set_peer() 436 if (attrs[WGPEER_A_ENDPOINT]) { in set_peer() 454 if (attrs[WGPEER_A_ALLOWEDIPS]) { in set_peer() 487 if (attrs[WGPEER_A_PRESHARED_KEY]) in set_peer() 507 if (info->attrs[WGDEVICE_A_FLAGS]) in wg_set_device() [all …]
|
/openbmc/qemu/system/ |
H A D | memory_ldst.c.inc | 24 hwaddr addr, MemTxAttrs attrs, MemTxResult *result, 36 mr = TRANSLATE(addr, &addr1, &l, false, attrs); 105 mr = TRANSLATE(addr, &addr1, &l, false, attrs); 172 mr = TRANSLATE(addr, &addr1, &l, false, attrs); 209 mr = TRANSLATE(addr, &addr1, &l, false, attrs); 279 mr = TRANSLATE(addr, &addr1, &l, true, attrs); 305 hwaddr addr, uint32_t val, MemTxAttrs attrs, 316 mr = TRANSLATE(addr, &addr1, &l, true, attrs); 379 mr = TRANSLATE(addr, &addr1, &l, true, attrs); 401 hwaddr addr, uint16_t val, MemTxAttrs attrs, [all …]
|
/openbmc/qemu/docs/sphinx/ |
H A D | dbusparser.py | 220 anno = Annotation(attrs["name"], attrs["value"]) 227 if "name" in attrs and self.doc_comment_last_symbol == attrs["name"]: 250 prop = Property(attrs["name"], attrs["type"], attrs["access"]) 255 anno = Annotation(attrs["name"], attrs["value"]) 284 anno = Annotation(attrs["name"], attrs["value"]) 292 if "name" in attrs and attrs["name"] in self.doc_comment_params: 312 anno = Annotation(attrs["name"], attrs["value"]) 320 if "name" in attrs and attrs["name"] in self.doc_comment_params: 332 anno = Annotation(attrs["name"], attrs["value"]) 341 anno = Annotation(attrs["name"], attrs["value"]) [all …]
|
/openbmc/linux/net/l2tp/ |
H A D | l2tp_netlink.c | 55 if (info->attrs[L2TP_ATTR_IFNAME]) { in l2tp_nl_session_get() 59 (info->attrs[L2TP_ATTR_CONN_ID])) { in l2tp_nl_session_get() 160 if (attrs[L2TP_ATTR_UDP_SPORT]) in l2tp_nl_cmd_tunnel_create_get_addr() 162 if (attrs[L2TP_ATTR_UDP_DPORT]) in l2tp_nl_cmd_tunnel_create_get_addr() 168 if (attrs[L2TP_ATTR_IP6_SADDR] && attrs[L2TP_ATTR_IP6_DADDR]) { in l2tp_nl_cmd_tunnel_create_get_addr() 176 if (attrs[L2TP_ATTR_IP_SADDR] && attrs[L2TP_ATTR_IP_DADDR]) { in l2tp_nl_cmd_tunnel_create_get_addr() 194 struct nlattr **attrs = info->attrs; in l2tp_nl_cmd_tunnel_create() local 196 if (!attrs[L2TP_ATTR_CONN_ID]) { in l2tp_nl_cmd_tunnel_create() 214 if (!attrs[L2TP_ATTR_ENCAP_TYPE]) { in l2tp_nl_cmd_tunnel_create() 224 if (attrs[L2TP_ATTR_FD]) { in l2tp_nl_cmd_tunnel_create() [all …]
|
/openbmc/qemu/include/exec/ |
H A D | memory_ldst.h.inc | 24 hwaddr addr, MemTxAttrs attrs, MemTxResult *result); 26 hwaddr addr, MemTxAttrs attrs, MemTxResult *result); 28 hwaddr addr, MemTxAttrs attrs, MemTxResult *result); 30 hwaddr addr, uint32_t val, MemTxAttrs attrs, MemTxResult *result); 39 hwaddr addr, MemTxAttrs attrs, MemTxResult *result); 41 hwaddr addr, MemTxAttrs attrs, MemTxResult *result); 43 hwaddr addr, MemTxAttrs attrs, MemTxResult *result); 45 hwaddr addr, MemTxAttrs attrs, MemTxResult *result); 47 hwaddr addr, MemTxAttrs attrs, MemTxResult *result); 49 hwaddr addr, MemTxAttrs attrs, MemTxResult *result); [all …]
|
/openbmc/linux/net/tipc/ |
H A D | net.c | 169 struct nlattr *attrs; in __tipc_nl_add_net() local 178 if (!attrs) in __tipc_nl_add_net() 187 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_net() 193 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_add_net() 232 if (!info->attrs[TIPC_NLA_NET]) in __tipc_nl_net_set() 236 info->attrs[TIPC_NLA_NET], in __tipc_nl_net_set() 246 if (attrs[TIPC_NLA_NET_ID]) { in __tipc_nl_net_set() 256 if (attrs[TIPC_NLA_NET_ADDR]) { in __tipc_nl_net_set() 294 struct nlattr *attrs; in __tipc_nl_addr_legacy_get() local 303 if (!attrs) in __tipc_nl_addr_legacy_get() [all …]
|
/openbmc/qemu/include/sysemu/ |
H A D | dma.h | 78 attrs); in dma_memory_valid() 87 return address_space_rw(as, addr, attrs, in dma_memory_rw_relaxed() 148 MemTxAttrs attrs) in dma_memory_read() argument 151 DMA_DIRECTION_TO_DEVICE, attrs); in dma_memory_read() 169 MemTxAttrs attrs) in dma_memory_write() argument 172 DMA_DIRECTION_FROM_DEVICE, attrs); in dma_memory_write() 213 attrs); in dma_memory_map() 262 return dma_memory_read(as, addr, val, 1, attrs); in ldub_dma() 268 return dma_memory_write(as, addr, &val, 1, attrs); in stb_dma() 305 QEMUSGList *sg, MemTxAttrs attrs); [all …]
|
/openbmc/linux/drivers/infiniband/hw/erdma/ |
H A D | erdma_qp.c | 18 switch (qp->attrs.state) { in erdma_qp_llp_close() 27 qp->attrs.state = ERDMA_QP_STATE_IDLE; in erdma_qp_llp_close() 52 struct erdma_qp_attrs *attrs, in erdma_modify_qp_state_to_rts() argument 76 qp->attrs.state = ERDMA_QP_STATE_RTS; in erdma_modify_qp_state_to_rts() 103 struct erdma_qp_attrs *attrs, in erdma_modify_qp_state_to_stop() argument 109 qp->attrs.state = attrs->state; in erdma_modify_qp_state_to_stop() 132 switch (qp->attrs.state) { in erdma_modify_qp_internal() 168 qp->attrs.state = ERDMA_QP_STATE_IDLE; in erdma_modify_qp_internal() 301 u32 attrs; in erdma_push_one_sqe() local 421 regmr_sge->attrs = cpu_to_le32(attrs); in erdma_push_one_sqe() [all …]
|
/openbmc/linux/fs/kernfs/ |
H A D | inode.c | 70 struct kernfs_iattrs *attrs; in __kernfs_setattr() local 73 attrs = kernfs_iattrs(kn); in __kernfs_setattr() 74 if (!attrs) in __kernfs_setattr() 142 struct kernfs_iattrs *attrs; in kernfs_iop_listxattr() local 144 attrs = kernfs_iattrs(kn); in kernfs_iop_listxattr() 145 if (!attrs) in kernfs_iop_listxattr() 172 if (attrs) in kernfs_refresh_inode() 299 if (!attrs) in kernfs_xattr_get() 310 if (!attrs) in kernfs_xattr_set() 417 attrs = kernfs_iattrs(kn); in kernfs_vfs_user_xattr_set() [all …]
|