/linux-6.6.21/tools/lib/thermal/ |
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() 42 return ops->tz_create(nla_get_string(attrs[THERMAL_GENL_ATTR_TZ_NAME]), in handle_thermal_event() 43 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg); in handle_thermal_event() 46 return ops->tz_delete(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg); in handle_thermal_event() 49 return ops->tz_enable(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg); in handle_thermal_event() 52 return ops->tz_disable(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg); in handle_thermal_event() 55 return ops->trip_change(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), 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() [all …]
|
/linux-6.6.21/net/ieee802154/ |
D | nl-mac.c | 149 if (info->attrs[IEEE802154_ATTR_DEV_NAME]) { in ieee802154_nl_get_dev() 152 nla_strscpy(name, info->attrs[IEEE802154_ATTR_DEV_NAME], in ieee802154_nl_get_dev() 155 } else if (info->attrs[IEEE802154_ATTR_DEV_INDEX]) { in ieee802154_nl_get_dev() 157 nla_get_u32(info->attrs[IEEE802154_ATTR_DEV_INDEX])); in ieee802154_nl_get_dev() 180 if (!info->attrs[IEEE802154_ATTR_CHANNEL] || in ieee802154_associate_req() 181 !info->attrs[IEEE802154_ATTR_COORD_PAN_ID] || in ieee802154_associate_req() 182 (!info->attrs[IEEE802154_ATTR_COORD_HW_ADDR] && in ieee802154_associate_req() 183 !info->attrs[IEEE802154_ATTR_COORD_SHORT_ADDR]) || in ieee802154_associate_req() 184 !info->attrs[IEEE802154_ATTR_CAPABILITY]) in ieee802154_associate_req() 193 if (info->attrs[IEEE802154_ATTR_COORD_HW_ADDR]) { in ieee802154_associate_req() [all …]
|
D | nl802154.c | 39 __cfg802154_wpan_dev_from_attrs(struct net *netns, struct nlattr **attrs) in __cfg802154_wpan_dev_from_attrs() argument 43 bool have_ifidx = attrs[NL802154_ATTR_IFINDEX]; in __cfg802154_wpan_dev_from_attrs() 44 bool have_wpan_dev_id = attrs[NL802154_ATTR_WPAN_DEV]; in __cfg802154_wpan_dev_from_attrs() 55 ifidx = nla_get_u32(attrs[NL802154_ATTR_IFINDEX]); in __cfg802154_wpan_dev_from_attrs() 57 wpan_dev_id = nla_get_u64(attrs[NL802154_ATTR_WPAN_DEV]); in __cfg802154_wpan_dev_from_attrs() 94 __cfg802154_rdev_from_attrs(struct net *netns, struct nlattr **attrs) in __cfg802154_rdev_from_attrs() argument 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() [all …]
|
/linux-6.6.21/drivers/infiniband/core/ |
D | uverbs_std_types_device.c | 21 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() 23 struct uverbs_api *uapi = attrs->ufile->device->uapi; in UVERBS_HANDLER() 28 rc = uverbs_get_const(&cmd, attrs, UVERBS_ATTR_WRITE_CMD); in UVERBS_HANDLER() 36 uverbs_fill_udata(attrs, &attrs->ucore, UVERBS_ATTR_CORE_IN, in UVERBS_HANDLER() 39 if (attrs->ucore.inlen < method_elm->req_size || in UVERBS_HANDLER() 40 attrs->ucore.outlen < method_elm->resp_size) 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() 46 uverbs_finalize_object(attrs->uobject, UVERBS_ACCESS_NEW, true, in UVERBS_HANDLER() [all …]
|
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() 51 uverbs_attr_get_obj(attrs, UVERBS_ATTR_ADVISE_MR_PD_HANDLE); in UVERBS_HANDLER() 63 ret = uverbs_get_const(&advice, attrs, UVERBS_ATTR_ADVISE_MR_ADVICE); in UVERBS_HANDLER() 67 ret = uverbs_get_flags32(&flags, attrs, UVERBS_ATTR_ADVISE_MR_FLAGS, in UVERBS_HANDLER() 73 attrs, UVERBS_ATTR_ADVISE_MR_SGE_LIST, sizeof(struct ib_sge)); in UVERBS_HANDLER() 77 sg_list = uverbs_attr_get_alloced_ptr(attrs, in UVERBS_HANDLER() 80 attrs); in UVERBS_HANDLER() 84 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() [all …]
|
D | uverbs_std_types_qp.c | 13 struct uverbs_attr_bundle *attrs) in uverbs_free_qp() argument 34 ret = ib_destroy_qp_user(qp, &attrs->driver_udata); in uverbs_free_qp() 83 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() 86 uverbs_attr_get_uobject(attrs, UVERBS_ATTR_CREATE_QP_HANDLE), in UVERBS_HANDLER() 102 ret = uverbs_copy_from_or_zero(&cap, attrs, in UVERBS_HANDLER() 105 ret = uverbs_copy_from(&user_handle, attrs, in UVERBS_HANDLER() 108 ret = uverbs_get_const(&attr.qp_type, 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() [all …]
|
D | uverbs_cmd.c | 58 static int uverbs_response(struct uverbs_attr_bundle *attrs, const void *resp, in uverbs_response() argument 63 if (uverbs_attr_is_valid(attrs, UVERBS_ATTR_CORE_OUT)) in uverbs_response() 65 attrs, UVERBS_ATTR_CORE_OUT, resp, resp_len); in uverbs_response() 67 if (copy_to_user(attrs->ucore.outbuf, resp, in uverbs_response() 68 min(attrs->ucore.outlen, resp_len))) in uverbs_response() 71 if (resp_len < attrs->ucore.outlen) { in uverbs_response() 76 ret = clear_user(attrs->ucore.outbuf + resp_len, in uverbs_response() 77 attrs->ucore.outlen - resp_len); in uverbs_response() 91 static int uverbs_request(struct uverbs_attr_bundle *attrs, void *req, in uverbs_request() argument 94 if (copy_from_user(req, attrs->ucore.inbuf, in uverbs_request() [all …]
|
D | rdma_core.c | 124 struct uverbs_attr_bundle *attrs) in uverbs_destroy_uobject() argument 126 struct ib_uverbs_file *ufile = attrs->ufile; in uverbs_destroy_uobject() 139 attrs); in uverbs_destroy_uobject() 188 int uobj_destroy(struct ib_uobject *uobj, struct uverbs_attr_bundle *attrs) in uobj_destroy() argument 190 struct ib_uverbs_file *ufile = attrs->ufile; in uobj_destroy() 206 ret = uverbs_destroy_uobject(uobj, RDMA_REMOVE_DESTROY, attrs); in uobj_destroy() 223 u32 id, struct uverbs_attr_bundle *attrs) in __uobj_get_destroy() argument 228 uobj = rdma_lookup_get_uobject(obj, attrs->ufile, id, in __uobj_get_destroy() 229 UVERBS_LOOKUP_DESTROY, attrs); in __uobj_get_destroy() 233 ret = uobj_destroy(uobj, attrs); in __uobj_get_destroy() [all …]
|
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() 31 uverbs_attr_get_uobject(attrs, UVERBS_ATTR_CREATE_WQ_HANDLE), in UVERBS_HANDLER() 34 uverbs_attr_get_obj(attrs, UVERBS_ATTR_CREATE_WQ_PD_HANDLE); in UVERBS_HANDLER() 36 uverbs_attr_get_obj(attrs, UVERBS_ATTR_CREATE_WQ_CQ_HANDLE); 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() [all …]
|
D | uverbs_std_types_srq.c | 12 struct uverbs_attr_bundle *attrs) in uverbs_free_srq() argument 20 ret = ib_destroy_srq_user(srq, &attrs->driver_udata); in uverbs_free_srq() 37 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER() 40 uverbs_attr_get_uobject(attrs, UVERBS_ATTR_CREATE_SRQ_HANDLE), in UVERBS_HANDLER() 43 uverbs_attr_get_obj(attrs, UVERBS_ATTR_CREATE_SRQ_PD_HANDLE); 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() 56 ret = uverbs_copy_from(&attr.attr.srq_limit, 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() [all …]
|
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() 96 ev_file_uobj = uverbs_attr_get_uobject(attrs, UVERBS_ATTR_CREATE_CQ_COMP_CHANNEL); in UVERBS_HANDLER() [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec.c | 66 if (sa_entry->attrs.drop) in mlx5e_ipsec_handle_tx_limit() 72 sa_entry->attrs.drop = true; in mlx5e_ipsec_handle_tx_limit() 147 struct mlx5_accel_esp_xfrm_attrs *attrs) in mlx5e_ipsec_init_limits() argument 152 attrs->lft.hard_packet_limit = x->lft.hard_packet_limit; in mlx5e_ipsec_init_limits() 153 attrs->lft.soft_packet_limit = x->lft.soft_packet_limit; in mlx5e_ipsec_init_limits() 187 n = attrs->lft.hard_packet_limit / BIT_ULL(31); in mlx5e_ipsec_init_limits() 188 start_value = attrs->lft.hard_packet_limit - n * BIT_ULL(31); in mlx5e_ipsec_init_limits() 195 start_value = attrs->lft.hard_packet_limit - n * BIT_ULL(31); in mlx5e_ipsec_init_limits() 200 attrs->lft.hard_packet_limit = lower_32_bits(start_value); in mlx5e_ipsec_init_limits() 201 attrs->lft.numb_rounds_hard = (u64)n; in mlx5e_ipsec_init_limits() [all …]
|
D | ipsec_offload.c | 92 struct mlx5_accel_esp_xfrm_attrs *attrs) in mlx5e_ipsec_packet_setup() argument 97 if (attrs->replay_esn.trigger) { in mlx5e_ipsec_packet_setup() 100 if (attrs->dir == XFRM_DEV_OFFLOAD_IN) { in mlx5e_ipsec_packet_setup() 102 attrs->replay_esn.replay_window); in mlx5e_ipsec_packet_setup() 107 attrs->replay_esn.esn); in mlx5e_ipsec_packet_setup() 121 if (attrs->dir == XFRM_DEV_OFFLOAD_OUT) in mlx5e_ipsec_packet_setup() 124 if (attrs->lft.hard_packet_limit != XFRM_INF) { in mlx5e_ipsec_packet_setup() 126 attrs->lft.hard_packet_limit); in mlx5e_ipsec_packet_setup() 130 if (attrs->lft.soft_packet_limit != XFRM_INF) { in mlx5e_ipsec_packet_setup() 132 attrs->lft.soft_packet_limit); in mlx5e_ipsec_packet_setup() [all …]
|
/linux-6.6.21/drivers/soc/aspeed/ |
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() 127 attrs->machine = kstrdup(machine, GFP_KERNEL); in aspeed_socinfo_init() 130 attrs->family = siliconid_to_name(siliconid); in aspeed_socinfo_init() 131 attrs->revision = siliconid_to_rev(siliconid); in aspeed_socinfo_init() 132 attrs->soc_id = kasprintf(GFP_KERNEL, "%08x", siliconid); in aspeed_socinfo_init() 135 attrs->serial_number = kasprintf(GFP_KERNEL, "%08x%08x", in aspeed_socinfo_init() 138 soc_dev = soc_device_register(attrs); in aspeed_socinfo_init() 140 kfree(attrs->machine); in aspeed_socinfo_init() [all …]
|
/linux-6.6.21/net/devlink/ |
D | port.c | 33 struct nlattr **attrs) in devlink_port_get_from_attrs() argument 35 if (attrs[DEVLINK_ATTR_PORT_INDEX]) { in devlink_port_get_from_attrs() 36 u32 port_index = nla_get_u32(attrs[DEVLINK_ATTR_PORT_INDEX]); in devlink_port_get_from_attrs() 50 return devlink_port_get_from_attrs(devlink, info->attrs); in devlink_port_get_from_info() 91 devlink_port->attrs.flavour != DEVLINK_PORT_FLAVOUR_PCI_VF) in devlink_port_fn_migratable_fill() 114 devlink_port->attrs.flavour != DEVLINK_PORT_FLAVOUR_PCI_VF) in devlink_port_fn_ipsec_crypto_fill() 136 devlink_port->attrs.flavour != DEVLINK_PORT_FLAVOUR_PCI_VF) in devlink_port_fn_ipsec_packet_fill() 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() 211 if (nla_put_u32(msg, DEVLINK_ATTR_PORT_LANES, attrs->lanes)) in devlink_nl_port_attrs_put() [all …]
|
/linux-6.6.21/drivers/net/wireguard/ |
D | netlink.c | 52 static struct wg_device *lookup_interface(struct nlattr **attrs, in lookup_interface() argument 57 if (!attrs[WGDEVICE_A_IFINDEX] == !attrs[WGDEVICE_A_IFNAME]) in lookup_interface() 59 if (attrs[WGDEVICE_A_IFINDEX]) in lookup_interface() 61 nla_get_u32(attrs[WGDEVICE_A_IFINDEX])); in lookup_interface() 62 else if (attrs[WGDEVICE_A_IFNAME]) in lookup_interface() 64 nla_data(attrs[WGDEVICE_A_IFNAME])); in lookup_interface() 203 wg = lookup_interface(genl_info_dump(cb)->attrs, cb->skb); in wg_get_device_start() 329 static int set_allowedip(struct wg_peer *peer, struct nlattr **attrs) in set_allowedip() argument 335 if (!attrs[WGALLOWEDIP_A_FAMILY] || !attrs[WGALLOWEDIP_A_IPADDR] || in set_allowedip() 336 !attrs[WGALLOWEDIP_A_CIDR_MASK]) in set_allowedip() [all …]
|
/linux-6.6.21/net/l2tp/ |
D | l2tp_netlink.c | 55 if (info->attrs[L2TP_ATTR_IFNAME]) { in l2tp_nl_session_get() 56 ifname = nla_data(info->attrs[L2TP_ATTR_IFNAME]); in l2tp_nl_session_get() 58 } else if ((info->attrs[L2TP_ATTR_SESSION_ID]) && in l2tp_nl_session_get() 59 (info->attrs[L2TP_ATTR_CONN_ID])) { in l2tp_nl_session_get() 60 tunnel_id = nla_get_u32(info->attrs[L2TP_ATTR_CONN_ID]); in l2tp_nl_session_get() 61 session_id = nla_get_u32(info->attrs[L2TP_ATTR_SESSION_ID]); in l2tp_nl_session_get() 158 static int l2tp_nl_cmd_tunnel_create_get_addr(struct nlattr **attrs, struct l2tp_tunnel_cfg *cfg) in l2tp_nl_cmd_tunnel_create_get_addr() argument 160 if (attrs[L2TP_ATTR_UDP_SPORT]) in l2tp_nl_cmd_tunnel_create_get_addr() 161 cfg->local_udp_port = nla_get_u16(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() [all …]
|
/linux-6.6.21/drivers/infiniband/hw/erdma/ |
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() 83 req.cfg = FIELD_PREP(ERDMA_CMD_MODIFY_QP_STATE_MASK, qp->attrs.state) | in erdma_modify_qp_state_to_rts() 84 FIELD_PREP(ERDMA_CMD_MODIFY_QP_CC_MASK, qp->attrs.cc) | in erdma_modify_qp_state_to_rts() 95 if (qp->attrs.qp_type == ERDMA_QP_PASSIVE) in erdma_modify_qp_state_to_rts() 96 req.send_nxt += MPA_DEFAULT_HDR_LEN + qp->attrs.pd_len; 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() [all …]
|
/linux-6.6.21/net/tipc/ |
D | net.c | 169 struct nlattr *attrs; in __tipc_nl_add_net() local 177 attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_NET); in __tipc_nl_add_net() 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() 227 struct nlattr *attrs[TIPC_NLA_NET_MAX + 1]; in __tipc_nl_net_set() local 232 if (!info->attrs[TIPC_NLA_NET]) in __tipc_nl_net_set() 235 err = nla_parse_nested_deprecated(attrs, TIPC_NLA_NET_MAX, 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() [all …]
|
/linux-6.6.21/fs/kernfs/ |
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() 78 attrs->ia_uid = iattr->ia_uid; in __kernfs_setattr() 80 attrs->ia_gid = iattr->ia_gid; in __kernfs_setattr() 82 attrs->ia_atime = iattr->ia_atime; in __kernfs_setattr() 84 attrs->ia_mtime = iattr->ia_mtime; in __kernfs_setattr() 86 attrs->ia_ctime = iattr->ia_ctime; in __kernfs_setattr() 142 struct kernfs_iattrs *attrs; in kernfs_iop_listxattr() local 144 attrs = kernfs_iattrs(kn); in kernfs_iop_listxattr() [all …]
|
/linux-6.6.21/net/netlabel/ |
D | netlabel_mgmt.c | 91 entry->def.type = nla_get_u32(info->attrs[NLBL_MGMT_A_PROTOCOL]); in netlbl_mgmt_add_common() 92 if (info->attrs[NLBL_MGMT_A_DOMAIN]) { in netlbl_mgmt_add_common() 93 size_t tmp_size = nla_len(info->attrs[NLBL_MGMT_A_DOMAIN]); in netlbl_mgmt_add_common() 100 info->attrs[NLBL_MGMT_A_DOMAIN], tmp_size); in netlbl_mgmt_add_common() 110 if (info->attrs[NLBL_MGMT_A_FAMILY]) in netlbl_mgmt_add_common() 112 nla_get_u16(info->attrs[NLBL_MGMT_A_FAMILY]); in netlbl_mgmt_add_common() 117 if (!info->attrs[NLBL_MGMT_A_CV4DOI]) in netlbl_mgmt_add_common() 120 tmp_val = nla_get_u32(info->attrs[NLBL_MGMT_A_CV4DOI]); in netlbl_mgmt_add_common() 129 if (!info->attrs[NLBL_MGMT_A_CLPDOI]) in netlbl_mgmt_add_common() 132 tmp_val = nla_get_u32(info->attrs[NLBL_MGMT_A_CLPDOI]); in netlbl_mgmt_add_common() [all …]
|
/linux-6.6.21/net/wireless/ |
D | nl80211.c | 68 struct net *netns, struct nlattr **attrs) in __cfg80211_wdev_from_attrs() argument 71 bool have_ifidx = attrs[NL80211_ATTR_IFINDEX]; in __cfg80211_wdev_from_attrs() 72 bool have_wdev_id = attrs[NL80211_ATTR_WDEV]; in __cfg80211_wdev_from_attrs() 81 ifidx = nla_get_u32(attrs[NL80211_ATTR_IFINDEX]); in __cfg80211_wdev_from_attrs() 83 wdev_id = nla_get_u64(attrs[NL80211_ATTR_WDEV]); in __cfg80211_wdev_from_attrs() 140 __cfg80211_rdev_from_attrs(struct net *netns, struct nlattr **attrs) in __cfg80211_rdev_from_attrs() argument 147 if (!attrs[NL80211_ATTR_WIPHY] && in __cfg80211_rdev_from_attrs() 148 !attrs[NL80211_ATTR_IFINDEX] && in __cfg80211_rdev_from_attrs() 149 !attrs[NL80211_ATTR_WDEV]) in __cfg80211_rdev_from_attrs() 152 if (attrs[NL80211_ATTR_WIPHY]) in __cfg80211_rdev_from_attrs() [all …]
|
/linux-6.6.21/drivers/infiniband/sw/siw/ |
D | siw_qp.c | 111 if (likely(qp->attrs.state == SIW_QP_STATE_RTS)) in siw_qp_llp_data_ready() 132 siw_qp_state_to_string[qp->attrs.state]); in siw_qp_llp_close() 138 qp->attrs.sk = NULL; in siw_qp_llp_close() 140 switch (qp->attrs.state) { in siw_qp_llp_close() 145 qp->attrs.state = SIW_QP_STATE_ERROR; in siw_qp_llp_close() 155 qp->attrs.state = SIW_QP_STATE_ERROR; in siw_qp_llp_close() 157 qp->attrs.state = SIW_QP_STATE_IDLE; in siw_qp_llp_close() 162 siw_qp_state_to_string[qp->attrs.state]); in siw_qp_llp_close() 179 siw_qp_state_to_string[qp->attrs.state]); in siw_qp_llp_close() 209 qp->attrs.irq_size = 0; in siw_qp_readq_init() [all …]
|
D | siw_verbs.c | 137 attr->max_cq = sdev->attrs.max_cq; in siw_query_device() 138 attr->max_cqe = sdev->attrs.max_cqe; in siw_query_device() 140 attr->max_mr = sdev->attrs.max_mr; in siw_query_device() 141 attr->max_mw = sdev->attrs.max_mw; in siw_query_device() 143 attr->max_pd = sdev->attrs.max_pd; in siw_query_device() 144 attr->max_qp = sdev->attrs.max_qp; in siw_query_device() 145 attr->max_qp_init_rd_atom = sdev->attrs.max_ird; in siw_query_device() 146 attr->max_qp_rd_atom = sdev->attrs.max_ord; in siw_query_device() 147 attr->max_qp_wr = sdev->attrs.max_qp_wr; in siw_query_device() 148 attr->max_recv_sge = sdev->attrs.max_sge; in siw_query_device() [all …]
|
/linux-6.6.21/fs/hostfs/ |
D | hostfs_user.c | 195 int set_attr(const char *file, struct hostfs_iattr *attrs, int fd) in set_attr() argument 201 if (attrs->ia_valid & HOSTFS_ATTR_MODE) { in set_attr() 203 if (fchmod(fd, attrs->ia_mode) != 0) in set_attr() 205 } else if (chmod(file, attrs->ia_mode) != 0) { in set_attr() 209 if (attrs->ia_valid & HOSTFS_ATTR_UID) { in set_attr() 211 if (fchown(fd, attrs->ia_uid, -1)) in set_attr() 213 } else if (chown(file, attrs->ia_uid, -1)) { in set_attr() 217 if (attrs->ia_valid & HOSTFS_ATTR_GID) { in set_attr() 219 if (fchown(fd, -1, attrs->ia_gid)) in set_attr() 221 } else if (chown(file, -1, attrs->ia_gid)) { in set_attr() [all …]
|