| /linux/tools/lib/thermal/ |
| 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 …]
|
| /linux/net/ieee802154/ |
| 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 …]
|
| A D | nl802154.c | 101 if (!attrs[NL802154_ATTR_WPAN_PHY] && in __cfg802154_rdev_from_attrs() 102 !attrs[NL802154_ATTR_IFINDEX] && in __cfg802154_rdev_from_attrs() 103 !attrs[NL802154_ATTR_WPAN_DEV]) in __cfg802154_rdev_from_attrs() 106 if (attrs[NL802154_ATTR_WPAN_PHY]) in __cfg802154_rdev_from_attrs() 110 if (attrs[NL802154_ATTR_WPAN_DEV]) { in __cfg802154_rdev_from_attrs() 134 if (attrs[NL802154_ATTR_IFINDEX]) { in __cfg802154_rdev_from_attrs() 266 info->info.attrs); in nl802154_prepare_wpan_dev_dump() 1441 if (info->attrs[NL802154_ATTR_PAGE]) in nl802154_trigger_scan() 1837 if (!attrs[NL802154_DEV_ADDR_ATTR_PAN_ID] || !attrs[NL802154_DEV_ADDR_ATTR_MODE]) in ieee802154_llsec_parse_dev_addr() 2105 !attrs[NL802154_KEY_ATTR_BYTES]) in nl802154_add_llsec_key() [all …]
|
| /linux/drivers/infiniband/core/ |
| 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() 234 kfree(attrs->context); in UVERBS_HANDLER() 235 attrs->context = NULL; in UVERBS_HANDLER() 283 ret = uverbs_copy_to(attrs, in copy_gid_entries_to_user() [all …]
|
| 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 …]
|
| 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() 2668 attrs); in kern_spec_to_ib_spec_action() 2686 attrs); in kern_spec_to_ib_spec_action() 3382 attrs); in __uverbs_create_xsrq() 3489 return __uverbs_create_xsrq(attrs, &xcmd, &attrs->driver_udata); in ib_uverbs_create_srq() [all …]
|
| 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 …]
|
| 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 …]
|
| 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 …]
|
| 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 …]
|
| 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() 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() 131 ret = ib_dev->ops.create_cq(cq, &attr, attrs); in UVERBS_HANDLER() [all …]
|
| /linux/include/trace/events/ |
| A D | dma.h | 25 #define decode_dma_attrs(attrs) \ argument 26 __print_flags(attrs, "|", \ 47 __field(unsigned long, attrs) 56 __entry->attrs = attrs; 88 __field(unsigned long, attrs) 96 __entry->attrs = attrs; 128 __field(unsigned long, attrs) 137 __entry->attrs = attrs; 167 __entry->attrs = attrs; 206 __entry->attrs = attrs; [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| 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() 567 attrs = &((struct mlx5e_ipsec_sa_entry *)work->data)->attrs; in mlx5e_ipsec_modify_state() 596 attrs = &sa_entry->attrs; in mlx5e_ipsec_handle_netdev_event() 800 struct mlx5_accel_esp_xfrm_attrs *attrs = &sa_entry->attrs; in mlx5e_xfrm_del_state() local 859 attrs = &sa_entry->attrs; in mlx5e_ipsec_netevent_event() 1122 memset(attrs, 0, sizeof(*attrs)); in mlx5e_ipsec_build_accel_pol_attrs() 1124 memcpy(&attrs->saddr, sel->saddr.a6, sizeof(attrs->saddr)); in mlx5e_ipsec_build_accel_pol_attrs() [all …]
|
| /linux/drivers/soc/aspeed/ |
| 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 …]
|
| /linux/drivers/net/wireguard/ |
| 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 …]
|
| /linux/net/devlink/ |
| A D | port.c | 231 struct devlink_port_attrs *attrs = &devlink_port->attrs; in devlink_nl_port_attrs_put() local 235 if (attrs->lanes) { in devlink_nl_port_attrs_put() 276 if (!attrs->split) in devlink_nl_port_attrs_put() 1339 struct devlink_port_attrs *attrs = &devlink_port->attrs; in __devlink_port_attrs_set() local 1366 devlink_port->attrs = *attrs; in devlink_port_attrs_set() 1370 WARN_ON(attrs->splittable && attrs->split); in devlink_port_attrs_set() 1385 struct devlink_port_attrs *attrs = &devlink_port->attrs; in devlink_port_attrs_pci_pf_set() local 1412 struct devlink_port_attrs *attrs = &devlink_port->attrs; in devlink_port_attrs_pci_vf_set() local 1440 struct devlink_port_attrs *attrs = &devlink_port->attrs; in devlink_port_attrs_pci_sf_set() local 1518 struct devlink_port_attrs *attrs = &devlink_port->attrs; in __devlink_port_phys_port_name_get() local [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| A D | test_tcp_custom_syncookie.c | 273 ctx->attrs.sack_ok = 1; in tcp_parse_option() 297 if (!ctx->attrs.wscale_ok || ctx->attrs.snd_wscale != 7) in tcp_validate_sysctl() 303 if (!ctx->attrs.sack_ok) in tcp_validate_sysctl() 352 if (ctx->attrs.wscale_ok) in tcp_prepare_cookie() 355 if (ctx->attrs.sack_ok) in tcp_prepare_cookie() 369 ctx->attrs.mss); in tcp_write_options() 371 if (ctx->attrs.wscale_ok) in tcp_write_options() 378 if (ctx->attrs.sack_ok) in tcp_write_options() 495 ctx->attrs.rcv_wscale = ctx->attrs.snd_wscale; in tcp_validate_cookie() 496 ctx->attrs.wscale_ok = ctx->attrs.snd_wscale == BPF_SYNCOOKIE_WSCALE_MASK; in tcp_validate_cookie() [all …]
|
| /linux/Documentation/netlink/specs/ |
| A D | nftables.yaml | 231 name: empty-attrs 237 name: batch-attrs 244 name: table-attrs 272 name: chain-attrs 378 name: rule-attrs 433 name: expr-attrs 457 name: set-attrs 652 name: gen-attrs 667 name: obj-attrs 707 name: quota-attrs [all …]
|
| /linux/drivers/gpu/drm/msm/registers/ |
| A D | gen_header.py | 281 if "name" in attrs: 302 if "index" in attrs: 307 if "usage" in attrs: 466 if "pos" in attrs: 468 elif "high" in attrs and "low" in attrs: 480 if "shr" in attrs: 603 if "type" in attrs and attrs["type"] in self.bitsets: 673 index_type = self.enums[attrs["index"]] if "index" in attrs else None 679 if "inline" in attrs and attrs["inline"] == "yes": 685 self.parse_field(attrs["name"], attrs) [all …]
|
| /linux/net/l2tp/ |
| 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() 161 if (attrs[L2TP_ATTR_UDP_SPORT]) in l2tp_nl_cmd_tunnel_create_get_addr() 163 if (attrs[L2TP_ATTR_UDP_DPORT]) in l2tp_nl_cmd_tunnel_create_get_addr() 169 if (attrs[L2TP_ATTR_IP6_SADDR] && attrs[L2TP_ATTR_IP6_DADDR]) { in l2tp_nl_cmd_tunnel_create_get_addr() 177 if (attrs[L2TP_ATTR_IP_SADDR] && attrs[L2TP_ATTR_IP_DADDR]) { in l2tp_nl_cmd_tunnel_create_get_addr() 195 struct nlattr **attrs = info->attrs; in l2tp_nl_cmd_tunnel_create() local 197 if (!attrs[L2TP_ATTR_CONN_ID]) { in l2tp_nl_cmd_tunnel_create() 215 if (!attrs[L2TP_ATTR_ENCAP_TYPE]) { in l2tp_nl_cmd_tunnel_create() 225 if (attrs[L2TP_ATTR_FD]) { in l2tp_nl_cmd_tunnel_create() [all …]
|
| /linux/kernel/dma/ |
| A D | mapping.c | 37 unsigned long attrs; member 45 this->attrs); in dmam_release() 112 dr->attrs = attrs; in dmam_alloc_attrs() 157 unsigned long attrs) in dma_map_page_attrs() argument 176 attrs); in dma_map_page_attrs() 483 unsigned long attrs) in dma_get_sgtable_attrs() argument 489 size, attrs); in dma_get_sgtable_attrs() 492 size, attrs); in dma_get_sgtable_attrs() 550 unsigned long attrs) in dma_mmap_attrs() argument 556 attrs); in dma_mmap_attrs() [all …]
|
| /linux/drivers/infiniband/hw/erdma/ |
| 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 …]
|
| /linux/net/tipc/ |
| 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 …]
|
| /linux/fs/kernfs/ |
| 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 …]
|
| /linux/net/wireless/ |
| A D | nl80211.c | 3333 struct nlattr **attrs = info->attrs; in _nl80211_parse_chandef() local 3617 info->attrs); in nl80211_set_wiphy() 5301 if (!attrs[attr]) in nl80211_parse_tx_bitrate_mask() 9143 if (!attrs[NL80211_ATTR_MAC] && !attrs[NL80211_ATTR_MAC_MASK]) { in nl80211_parse_random_mac() 9153 if (!attrs[NL80211_ATTR_MAC] || !attrs[NL80211_ATTR_MAC_MASK]) in nl80211_parse_random_mac() 10010 info->attrs, in nl80211_start_sched_scan() 11083 if (!attrs[NL80211_ATTR_MAC] || !attrs[NL80211_ATTR_WIPHY_FREQ]) in nl80211_assoc_bss() 11268 if (!attrs) in nl80211_associate() 11353 kfree(attrs); in nl80211_associate() 11354 attrs = NULL; in nl80211_associate() [all …]
|