Home
last modified time | relevance | path

Searched refs:attrs (Results 1 – 25 of 1182) sorted by relevance

12345678910>>...48

/linux/drivers/net/ovpn/
H A Dnetlink.c46 ifindex = nla_get_u32(info->attrs[OVPN_A_IFINDEX]); in ovpn_get_dev_from_attrs()
61 NL_SET_BAD_ATTR(info->extack, info->attrs[OVPN_A_IFINDEX]); in ovpn_get_dev_from_attrs()
97 static bool ovpn_nl_attr_sockaddr_remote(struct nlattr **attrs, in ovpn_nl_attr_sockaddr_remote() argument
108 if (attrs[OVPN_A_PEER_REMOTE_PORT]) in ovpn_nl_attr_sockaddr_remote()
109 port = nla_get_be16(attrs[OVPN_A_PEER_REMOTE_PORT]); in ovpn_nl_attr_sockaddr_remote()
111 if (attrs[OVPN_A_PEER_REMOTE_IPV4]) { in ovpn_nl_attr_sockaddr_remote()
113 in = nla_data(attrs[OVPN_A_PEER_REMOTE_IPV4]); in ovpn_nl_attr_sockaddr_remote()
114 } else if (attrs[OVPN_A_PEER_REMOTE_IPV6]) { in ovpn_nl_attr_sockaddr_remote()
116 in6 = nla_data(attrs[OVPN_A_PEER_REMOTE_IPV6]); in ovpn_nl_attr_sockaddr_remote()
147 static u8 *ovpn_nl_attr_local_ip(struct nlattr **attrs) in ovpn_nl_attr_local_ip() argument
[all …]
/linux/include/trace/events/
H A Ddma.h25 #define decode_dma_attrs(attrs) \ argument
26 __print_flags(attrs, "|", \
41 size_t size, enum dma_data_direction dir, unsigned long attrs),
42 TP_ARGS(dev, phys_addr, dma_addr, size, dir, attrs),
50 __field(unsigned long, attrs)
59 __entry->attrs = attrs;
62 TP_printk("%s dir=%s dma_addr=%llx size=%zu phys_addr=%llx attrs=%s",
68 decode_dma_attrs(__entry->attrs))
74 size_t size, enum dma_data_direction dir, unsigned long attrs), \
[all...]
/linux/rust/syn/
H A Dprecedence.rs95 fn prefix_attrs(attrs: &[Attribute]) -> Precedence { in of()
96 for attr in attrs { in of()
108 ReturnType::Type(..) => prefix_attrs(&e.attrs), in of()
127 Expr::Array(ExprArray { attrs, .. }) in of()
128 | Expr::Async(ExprAsync { attrs, .. }) in of()
129 | Expr::Await(ExprAwait { attrs, .. }) in of()
130 | Expr::Block(ExprBlock { attrs, .. }) in of()
131 | Expr::Call(ExprCall { attrs, .. }) in of()
132 | Expr::Const(ExprConst { attrs, .. }) in of()
133 | Expr::Continue(ExprContinue { attrs, .. }) in of()
[all …]
H A Dexpr.rs275 pub attrs: Vec<Attribute>,
285 pub attrs: Vec<Attribute>,
296 pub attrs: Vec<Attribute>,
307 pub attrs: Vec<Attribute>,
318 pub attrs: Vec<Attribute>,
329 pub attrs: Vec<Attribute>,
340 pub attrs: Vec<Attribute>,
351 pub attrs: Vec<Attribute>,
362 pub attrs: Vec<Attribute>,
373 pub attrs: Vec<Attribute>,
[all …]
H A Ditem.rs107 pub attrs: Vec<Attribute>,
124 pub attrs: Vec<Attribute>,
138 pub attrs: Vec<Attribute>,
152 pub attrs: Vec<Attribute>,
163 pub attrs: Vec<Attribute>,
176 pub attrs: Vec<Attribute>,
194 pub attrs: Vec<Attribute>,
206 pub attrs: Vec<Attribute>,
220 pub attrs: Vec<Attribute>,
237 pub attrs: Vec<Attribute>,
[all …]
/linux/drivers/infiniband/core/
H A Duverbs_std_types_cq.c40 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()
68 struct ib_device *ib_dev = attrs->context->device; in UVERBS_HANDLER()
84 ret = uverbs_copy_from(&attr.comp_vector, attrs, in UVERBS_HANDLER()
87 ret = uverbs_copy_from(&attr.cqe, attrs, in UVERBS_HANDLER()
90 ret = uverbs_copy_from(&user_handle, attrs, in UVERBS_HANDLER()
95 ret = uverbs_get_flags32(&attr.flags, attrs, in UVERBS_HANDLER()
102 ev_file_uobj = uverbs_attr_get_uobject(attrs, UVERBS_ATTR_CREATE_CQ_COMP_CHANNEL); in UVERBS_HANDLER()
[all …]
H A Duverbs_cmd.c59 static int uverbs_response(struct uverbs_attr_bundle *attrs, const void *resp, in uverbs_response() argument
64 if (uverbs_attr_is_valid(attrs, UVERBS_ATTR_CORE_OUT)) in uverbs_response()
66 attrs, UVERBS_ATTR_CORE_OUT, resp, resp_len); in uverbs_response()
68 if (copy_to_user(attrs->ucore.outbuf, resp, in uverbs_response()
69 min(attrs->ucore.outlen, resp_len))) in uverbs_response()
72 if (resp_len < attrs->ucore.outlen) { in uverbs_response()
77 ret = clear_user(attrs->ucore.outbuf + resp_len, in uverbs_response()
78 attrs->ucore.outlen - resp_len); in uverbs_response()
92 static int uverbs_request(struct uverbs_attr_bundle *attrs, void *req, in uverbs_request() argument
95 if (copy_from_user(req, attrs->ucore.inbuf, in uverbs_request()
[all …]
H A Duverbs_std_types_wq.c12 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 …]
H A Duverbs_std_types_srq.c12 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 …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec.c67 if (sa_entry->attrs.drop) in mlx5e_ipsec_handle_sw_limits()
72 sa_entry->attrs.drop = true; in mlx5e_ipsec_handle_sw_limits()
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 …]
H A Dipsec_offload.c95 struct mlx5_accel_esp_xfrm_attrs *attrs = &sa_entry->attrs; in mlx5e_ipsec_packet_setup() local
99 if (attrs->replay_esn.trigger) { in mlx5e_ipsec_packet_setup()
102 if (attrs->dir == XFRM_DEV_OFFLOAD_IN) { in mlx5e_ipsec_packet_setup()
104 attrs->replay_esn.replay_window); in mlx5e_ipsec_packet_setup()
109 attrs->replay_esn.esn); in mlx5e_ipsec_packet_setup()
123 if (attrs->dir == XFRM_DEV_OFFLOAD_OUT) { in mlx5e_ipsec_packet_setup()
125 if (!attrs->replay_esn.trigger) in mlx5e_ipsec_packet_setup()
130 if (attrs->lft.hard_packet_limit != XFRM_INF) { in mlx5e_ipsec_packet_setup()
132 attrs->lft.hard_packet_limit); in mlx5e_ipsec_packet_setup()
137 if (attrs->lft.soft_packet_limit != XFRM_INF) { in mlx5e_ipsec_packet_setup()
[all …]
/linux/drivers/soc/aspeed/
H A Daspeed-socinfo.c83 struct soc_device_attribute *attrs; in aspeed_socinfo_init() local
116 attrs = kzalloc_obj(*attrs); in aspeed_socinfo_init()
117 if (!attrs) in aspeed_socinfo_init()
131 attrs->machine = kstrdup(machine, GFP_KERNEL); in aspeed_socinfo_init()
134 attrs->family = siliconid_to_name(siliconid); in aspeed_socinfo_init()
135 attrs->revision = siliconid_to_rev(siliconid); in aspeed_socinfo_init()
136 attrs->soc_id = kasprintf(GFP_KERNEL, "%08x", siliconid); in aspeed_socinfo_init()
139 attrs->serial_number = kasprintf(GFP_KERNEL, "%08x%08x", in aspeed_socinfo_init()
142 soc_dev = soc_device_register(attrs); in aspeed_socinfo_init()
144 kfree(attrs->machine); in aspeed_socinfo_init()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tcp_custom_syncookie.c65 struct bpf_tcp_req_attrs attrs; member
249 ctx->attrs.mss = get_unaligned_be16(mss); in tcp_parse_option()
254 ctx->attrs.wscale_ok = 1; in tcp_parse_option()
255 ctx->attrs.snd_wscale = *wscale; in tcp_parse_option()
262 ctx->attrs.rcv_tsval = get_unaligned_be32(tsval); in tcp_parse_option()
263 ctx->attrs.rcv_tsecr = get_unaligned_be32(tsecr); in tcp_parse_option()
265 if (ctx->tcp->syn && ctx->attrs.rcv_tsecr) in tcp_parse_option()
266 ctx->attrs.tstamp_ok = 0; in tcp_parse_option()
268 ctx->attrs.tstamp_ok = 1; in tcp_parse_option()
273 ctx->attrs in tcp_parse_option()
[all...]
/linux/drivers/gpu/drm/msm/registers/
H A Dgen_header.py302 def __init__(self, attrs, domain, variant, parent, index_type): argument
303 if "name" in attrs:
304 self.local_name = attrs["name"]
315 if "offsets" in attrs:
316 self.offsets = map(lambda i: "0x%08x" % int(i, 0), attrs["offsets"].split(","))
318 elif "doffsets" in attrs:
319 self.offsets = map(lambda s: "(%s)" % s , attrs["doffsets"].split(","))
322 self.offset = int(attrs["offset"], 0)
323 self.stride = int(attrs["stride"], 0)
325 if "index" in attrs:
[all …]
/linux/net/l2tp/
H A Dl2tp_netlink.c55 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()
159 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
161 if (attrs[L2TP_ATTR_UDP_SPORT]) in l2tp_nl_cmd_tunnel_create_get_addr()
162 cfg->local_udp_port = nla_get_u16(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()
[all …]
/linux/kernel/dma/
H A Dmapping.c37 unsigned long attrs; member
45 this->attrs); in dmam_release()
85 * @attrs: Flags in the DMA_ATTR_* namespace.
94 gfp_t gfp, unsigned long attrs) in dmam_alloc_attrs() argument
103 vaddr = dma_alloc_attrs(dev, size, dma_handle, gfp, attrs); in dmam_alloc_attrs()
112 dr->attrs = attrs; in dmam_alloc_attrs()
156 enum dma_data_direction dir, unsigned long attrs) in dma_map_phys() argument
159 bool is_mmio = attrs & DMA_ATTR_MMIO; in dma_map_phys()
167 if (!dev_is_dma_coherent(dev) && (attrs in dma_map_phys()
186 dma_map_page_attrs(struct device * dev,struct page * page,size_t offset,size_t size,enum dma_data_direction dir,unsigned long attrs) dma_map_page_attrs() argument
202 dma_unmap_phys(struct device * dev,dma_addr_t addr,size_t size,enum dma_data_direction dir,unsigned long attrs) dma_unmap_phys() argument
221 dma_unmap_page_attrs(struct device * dev,dma_addr_t addr,size_t size,enum dma_data_direction dir,unsigned long attrs) dma_unmap_page_attrs() argument
231 __dma_map_sg_attrs(struct device * dev,struct scatterlist * sg,int nents,enum dma_data_direction dir,unsigned long attrs) __dma_map_sg_attrs() argument
280 dma_map_sg_attrs(struct device * dev,struct scatterlist * sg,int nents,enum dma_data_direction dir,unsigned long attrs) dma_map_sg_attrs() argument
319 dma_map_sgtable(struct device * dev,struct sg_table * sgt,enum dma_data_direction dir,unsigned long attrs) dma_map_sgtable() argument
333 dma_unmap_sg_attrs(struct device * dev,struct scatterlist * sg,int nents,enum dma_data_direction dir,unsigned long attrs) dma_unmap_sg_attrs() argument
351 dma_map_resource(struct device * dev,phys_addr_t phys_addr,size_t size,enum dma_data_direction dir,unsigned long attrs) dma_map_resource() argument
362 dma_unmap_resource(struct device * dev,dma_addr_t addr,size_t size,enum dma_data_direction dir,unsigned long attrs) dma_unmap_resource() argument
508 dma_get_sgtable_attrs(struct device * dev,struct sg_table * sgt,void * cpu_addr,dma_addr_t dma_addr,size_t size,unsigned long attrs) dma_get_sgtable_attrs() argument
529 dma_pgprot(struct device * dev,pgprot_t prot,unsigned long attrs) dma_pgprot() argument
575 dma_mmap_attrs(struct device * dev,struct vm_area_struct * vma,void * cpu_addr,dma_addr_t dma_addr,size_t size,unsigned long attrs) dma_mmap_attrs() argument
617 dma_alloc_attrs(struct device * dev,size_t size,dma_addr_t * dma_handle,gfp_t flag,unsigned long attrs) dma_alloc_attrs() argument
661 dma_free_attrs(struct device * dev,size_t size,void * cpu_addr,dma_addr_t dma_handle,unsigned long attrs) dma_free_attrs() argument
790 dma_alloc_noncontiguous(struct device * dev,size_t size,enum dma_data_direction dir,gfp_t gfp,unsigned long attrs) dma_alloc_noncontiguous() argument
[all...]
/linux/net/ieee802154/
H A Dnl802154.c39 __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/rust/syn/gen/
H A Dclone.rs34 attrs: self.attrs.clone(), in clone()
94 attrs: self.attrs.clone(), in clone()
105 attrs: self.attrs.clone(), in clone()
161 attrs: self.attrs.clone(), in clone()
231 attrs: self.attrs.clone(), in clone()
318 attrs: self.attrs.clone(), in clone()
329 attrs: self.attrs.clone(), in clone()
341 attrs: self.attrs.clone(), in clone()
353 attrs: self.attrs.clone(), in clone()
365 attrs: self.attrs.clone(), in clone()
[all …]
/linux/fs/kernfs/
H A Dinode.c71 struct kernfs_iattrs *attrs; in __kernfs_setattr() local
74 attrs = kernfs_iattrs(kn); in __kernfs_setattr()
75 if (!attrs) in __kernfs_setattr()
79 attrs->ia_uid = iattr->ia_uid; in __kernfs_setattr()
81 attrs->ia_gid = iattr->ia_gid; in __kernfs_setattr()
83 attrs->ia_atime = iattr->ia_atime; in __kernfs_setattr()
85 attrs->ia_mtime = iattr->ia_mtime; in __kernfs_setattr()
87 attrs->ia_ctime = iattr->ia_ctime; in __kernfs_setattr()
143 struct kernfs_iattrs *attrs; in kernfs_iop_listxattr() local
145 attrs = kernfs_iattrs(kn); in kernfs_iop_listxattr()
[all …]
/linux/net/netlabel/
H A Dnetlabel_mgmt.c91 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()
111 nla_get_u16_default(info->attrs[NLBL_MGMT_A_FAMILY], in netlbl_mgmt_add_common()
115 if (!info->attrs[NLBL_MGMT_A_CV4DOI]) in netlbl_mgmt_add_common()
118 tmp_val = nla_get_u32(info->attrs[NLBL_MGMT_A_CV4DOI]); in netlbl_mgmt_add_common()
127 if (!info->attrs[NLBL_MGMT_A_CLPDOI]) in netlbl_mgmt_add_common()
130 tmp_val = nla_get_u32(info->attrs[NLBL_MGMT_A_CLPDOI]); in netlbl_mgmt_add_common()
142 if ((entry->family == AF_INET && info->attrs[NLBL_MGMT_A_IPV6ADDR]) || in netlbl_mgmt_add_common()
[all …]
/linux/net/tipc/
H A Dnet.c171 struct nlattr *attrs; in __tipc_nl_add_net() local
179 attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_NET); in __tipc_nl_add_net()
180 if (!attrs) in __tipc_nl_add_net()
189 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_net()
195 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_add_net()
229 struct nlattr *attrs[TIPC_NLA_NET_MAX + 1]; in __tipc_nl_net_set() local
234 if (!info->attrs[TIPC_NLA_NET]) in __tipc_nl_net_set()
237 err = nla_parse_nested_deprecated(attrs, TIPC_NLA_NET_MAX, in __tipc_nl_net_set()
238 info->attrs[TIPC_NLA_NET], in __tipc_nl_net_set()
248 if (attrs[TIPC_NLA_NET_ID]) { in __tipc_nl_net_set()
[all …]
/linux/drivers/soc/vt8500/
H A Dwmt-socinfo.c50 struct soc_device_attribute *attrs; in wmt_socinfo_probe() local
62 attrs = devm_kzalloc(&pdev->dev, sizeof(*attrs), GFP_KERNEL); in wmt_socinfo_probe()
63 if (!attrs) in wmt_socinfo_probe()
73 attrs->family = sccid_to_name(sccid); in wmt_socinfo_probe()
79 attrs->revision = devm_kasprintf(&pdev->dev, GFP_KERNEL, in wmt_socinfo_probe()
82 attrs->soc_id = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%08x", sccid); in wmt_socinfo_probe()
84 if (!attrs->revision || !attrs->soc_id) in wmt_socinfo_probe()
87 soc_dev = soc_device_register(attrs); in wmt_socinfo_probe()
93 attrs->family, in wmt_socinfo_probe()
94 attrs->revision, in wmt_socinfo_probe()
[all …]
/linux/net/wireless/
H A Dnl80211.c68 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/drivers/infiniband/sw/siw/
H A Dsiw_qp.c111 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 …]
H A Dsiw_verbs.c143 attr->max_cq = sdev->attrs.max_cq; in siw_query_device()
144 attr->max_cqe = sdev->attrs.max_cqe; in siw_query_device()
146 attr->max_mr = sdev->attrs.max_mr; in siw_query_device()
147 attr->max_mw = sdev->attrs.max_mw; in siw_query_device()
149 attr->max_pd = sdev->attrs.max_pd; in siw_query_device()
150 attr->max_qp = sdev->attrs.max_qp; in siw_query_device()
151 attr->max_qp_init_rd_atom = sdev->attrs.max_ird; in siw_query_device()
152 attr->max_qp_rd_atom = sdev->attrs.max_ord; in siw_query_device()
153 attr->max_qp_wr = sdev->attrs.max_qp_wr; in siw_query_device()
154 attr->max_recv_sge = sdev->attrs.max_sge; in siw_query_device()
[all …]

12345678910>>...48