Searched refs:attrs (Results 1 - 25 of 1383) sorted by relevance

1234567891011>>

/linux-master/tools/lib/thermal/
H A Devents.c25 struct nlattr *attrs[THERMAL_GENL_ATTR_MAX + 1]; local
29 genlmsg_parse(nlh, 0, attrs, THERMAL_GENL_ATTR_MAX, NULL);
42 return ops->tz_create(nla_get_string(attrs[THERMAL_GENL_ATTR_TZ_NAME]),
43 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg);
46 return ops->tz_delete(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg);
49 return ops->tz_enable(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg);
52 return ops->tz_disable(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg);
55 return ops->trip_change(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]),
56 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_ID]),
57 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_TYP
[all...]
/linux-master/drivers/soc/aspeed/
H A Daspeed-socinfo.c79 struct soc_device_attribute *attrs; local
112 attrs = kzalloc(sizeof(*attrs), GFP_KERNEL);
113 if (!attrs)
127 attrs->machine = kstrdup(machine, GFP_KERNEL);
130 attrs->family = siliconid_to_name(siliconid);
131 attrs->revision = siliconid_to_rev(siliconid);
132 attrs->soc_id = kasprintf(GFP_KERNEL, "%08x", siliconid);
135 attrs->serial_number = kasprintf(GFP_KERNEL, "%08x%08x",
138 soc_dev = soc_device_register(attrs);
[all...]
/linux-master/drivers/infiniband/core/
H A Duverbs_std_types_device.c21 struct uverbs_attr_bundle *attrs)
23 struct uverbs_api *uapi = attrs->ufile->device->uapi;
28 rc = uverbs_get_const(&cmd, attrs, UVERBS_ATTR_WRITE_CMD);
36 uverbs_fill_udata(attrs, &attrs->ucore, UVERBS_ATTR_CORE_IN,
39 if (attrs->ucore.inlen < method_elm->req_size ||
40 attrs->ucore.outlen < method_elm->resp_size)
43 attrs->uobject = NULL;
44 rc = method_elm->handler(attrs);
45 if (attrs
20 UVERBS_METHOD_INVOKE_WRITE( struct uverbs_attr_bundle *attrs) argument
64 gather_objects_handle(struct ib_uverbs_file *ufile, const struct uverbs_api_object *uapi_object, struct uverbs_attr_bundle *attrs, ssize_t out_len, u64 *total) argument
101 UVERBS_METHOD_INFO_HANDLES( struct uverbs_attr_bundle *attrs) argument
176 UVERBS_METHOD_QUERY_PORT( struct uverbs_attr_bundle *attrs) argument
212 UVERBS_METHOD_GET_CONTEXT( struct uverbs_attr_bundle *attrs) argument
241 UVERBS_METHOD_QUERY_CONTEXT( struct uverbs_attr_bundle *attrs) argument
272 copy_gid_entries_to_user(struct uverbs_attr_bundle *attrs, struct ib_uverbs_gid_entry *entries, size_t num_entries, size_t user_entry_size) argument
313 UVERBS_METHOD_QUERY_GID_TABLE( struct uverbs_attr_bundle *attrs) argument
368 UVERBS_METHOD_QUERY_GID_ENTRY( struct uverbs_attr_bundle *attrs) argument
[all...]
H A Duverbs_std_types_mr.c41 struct uverbs_attr_bundle *attrs)
44 &attrs->driver_udata);
48 struct uverbs_attr_bundle *attrs)
51 uverbs_attr_get_obj(attrs, UVERBS_ATTR_ADVISE_MR_PD_HANDLE);
63 ret = uverbs_get_const(&advice, attrs, UVERBS_ATTR_ADVISE_MR_ADVICE);
67 ret = uverbs_get_flags32(&flags, attrs, UVERBS_ATTR_ADVISE_MR_FLAGS,
73 attrs, UVERBS_ATTR_ADVISE_MR_SGE_LIST, sizeof(struct ib_sge));
77 sg_list = uverbs_attr_get_alloced_ptr(attrs,
80 attrs);
84 struct uverbs_attr_bundle *attrs)
39 uverbs_free_mr(struct ib_uobject *uobject, enum rdma_remove_reason why, struct uverbs_attr_bundle *attrs) argument
47 UVERBS_METHOD_ADVISE_MR( struct uverbs_attr_bundle *attrs) argument
83 UVERBS_METHOD_DM_MR_REG( struct uverbs_attr_bundle *attrs) argument
156 UVERBS_METHOD_QUERY_MR( struct uverbs_attr_bundle *attrs) argument
186 UVERBS_METHOD_REG_DMABUF_MR( struct uverbs_attr_bundle *attrs) argument
[all...]
H A Duverbs_std_types_dm.c39 struct uverbs_attr_bundle *attrs)
46 return dm->device->ops.dealloc_dm(dm, attrs);
50 struct uverbs_attr_bundle *attrs)
54 uverbs_attr_get(attrs, UVERBS_ATTR_ALLOC_DM_HANDLE)
56 struct ib_device *ib_dev = attrs->context->device;
63 ret = uverbs_copy_from(&attr.length, attrs,
68 ret = uverbs_copy_from(&attr.alignment, attrs,
73 dm = ib_dev->ops.alloc_dm(ib_dev, attrs->context, &attr, attrs);
37 uverbs_free_dm(struct ib_uobject *uobject, enum rdma_remove_reason why, struct uverbs_attr_bundle *attrs) argument
49 UVERBS_METHOD_DM_ALLOC( struct uverbs_attr_bundle *attrs) argument
H A Duverbs_std_types_counters.c40 struct uverbs_attr_bundle *attrs)
56 struct uverbs_attr_bundle *attrs)
59 attrs, UVERBS_ATTR_CREATE_COUNTERS_HANDLE);
60 struct ib_device *ib_dev = attrs->context->device;
81 ret = ib_dev->ops.create_counters(counters, attrs);
89 struct uverbs_attr_bundle *attrs)
94 uverbs_attr_get_obj(attrs, UVERBS_ATTR_READ_COUNTERS_HANDLE);
103 ret = uverbs_get_flags32(&read_attr.flags, attrs,
109 uattr = uverbs_attr_get(attrs, UVERBS_ATTR_READ_COUNTERS_BUFF);
114 attrs, array_siz
38 uverbs_free_counters(struct ib_uobject *uobject, enum rdma_remove_reason why, struct uverbs_attr_bundle *attrs) argument
55 UVERBS_METHOD_COUNTERS_CREATE( struct uverbs_attr_bundle *attrs) argument
88 UVERBS_METHOD_COUNTERS_READ( struct uverbs_attr_bundle *attrs) argument
[all...]
H A Duverbs_std_types_qp.c13 struct uverbs_attr_bundle *attrs)
34 ret = ib_destroy_qp_user(qp, &attrs->driver_udata);
83 struct uverbs_attr_bundle *attrs)
86 uverbs_attr_get_uobject(attrs, UVERBS_ATTR_CREATE_QP_HANDLE),
102 ret = uverbs_copy_from_or_zero(&cap, attrs,
105 ret = uverbs_copy_from(&user_handle, attrs,
108 ret = uverbs_get_const(&attr.qp_type, attrs,
115 if (uverbs_attr_is_valid(attrs,
117 uverbs_attr_is_valid(attrs,
119 uverbs_attr_is_valid(attrs,
11 uverbs_free_qp(struct ib_uobject *uobject, enum rdma_remove_reason why, struct uverbs_attr_bundle *attrs) argument
82 UVERBS_METHOD_QP_CREATE( struct uverbs_attr_bundle *attrs) argument
345 UVERBS_METHOD_QP_DESTROY( struct uverbs_attr_bundle *attrs) argument
[all...]
H A Duverbs_std_types_srq.c12 struct uverbs_attr_bundle *attrs)
20 ret = ib_destroy_srq_user(srq, &attrs->driver_udata);
37 struct uverbs_attr_bundle *attrs)
40 uverbs_attr_get_uobject(attrs, UVERBS_ATTR_CREATE_SRQ_HANDLE),
43 uverbs_attr_get_obj(attrs, UVERBS_ATTR_CREATE_SRQ_PD_HANDLE);
50 ret = uverbs_copy_from(&attr.attr.max_sge, attrs,
53 ret = uverbs_copy_from(&attr.attr.max_wr, attrs,
56 ret = uverbs_copy_from(&attr.attr.srq_limit, attrs,
59 ret = uverbs_copy_from(&user_handle, attrs,
62 ret = uverbs_get_const(&attr.srq_type, attrs,
10 uverbs_free_srq(struct ib_uobject *uobject, enum rdma_remove_reason why, struct uverbs_attr_bundle *attrs) argument
36 UVERBS_METHOD_SRQ_CREATE( struct uverbs_attr_bundle *attrs) argument
197 UVERBS_METHOD_SRQ_DESTROY( struct uverbs_attr_bundle *attrs) argument
[all...]
H A Drdma_core.c124 struct uverbs_attr_bundle *attrs)
126 struct ib_uverbs_file *ufile = attrs->ufile;
139 attrs);
188 int uobj_destroy(struct ib_uobject *uobj, struct uverbs_attr_bundle *attrs) argument
190 struct ib_uverbs_file *ufile = attrs->ufile;
206 ret = uverbs_destroy_uobject(uobj, RDMA_REMOVE_DESTROY, attrs);
223 u32 id, struct uverbs_attr_bundle *attrs)
228 uobj = rdma_lookup_get_uobject(obj, attrs->ufile, id,
229 UVERBS_LOOKUP_DESTROY, attrs);
233 ret = uobj_destroy(uobj, attrs);
122 uverbs_destroy_uobject(struct ib_uobject *uobj, enum rdma_remove_reason reason, struct uverbs_attr_bundle *attrs) argument
222 __uobj_get_destroy(const struct uverbs_api_object *obj, u32 id, struct uverbs_attr_bundle *attrs) argument
246 __uobj_perform_destroy(const struct uverbs_api_object *obj, u32 id, struct uverbs_attr_bundle *attrs) argument
259 alloc_uobj(struct uverbs_attr_bundle *attrs, const struct uverbs_api_object *obj) argument
372 rdma_lookup_get_uobject(const struct uverbs_api_object *obj, struct ib_uverbs_file *ufile, s64 id, enum rdma_lookup_mode mode, struct uverbs_attr_bundle *attrs) argument
424 alloc_begin_idr_uobject(const struct uverbs_api_object *obj, struct uverbs_attr_bundle *attrs) argument
453 alloc_begin_fd_uobject(const struct uverbs_api_object *obj, struct uverbs_attr_bundle *attrs) argument
498 rdma_alloc_begin_uobject(const struct uverbs_api_object *obj, struct uverbs_attr_bundle *attrs) argument
531 destroy_hw_idr_uobject(struct ib_uobject *uobj, enum rdma_remove_reason why, struct uverbs_attr_bundle *attrs) argument
567 destroy_hw_fd_uobject(struct ib_uobject *uobj, enum rdma_remove_reason why, struct uverbs_attr_bundle *attrs) argument
643 rdma_alloc_commit_uobject(struct ib_uobject *uobj, struct uverbs_attr_bundle *attrs) argument
675 rdma_assign_uobject(struct ib_uobject *to_uobj, struct ib_uobject *new_uobj, struct uverbs_attr_bundle *attrs) argument
697 rdma_alloc_abort_uobject(struct ib_uobject *uobj, struct uverbs_attr_bundle *attrs, bool hw_obj_valid) argument
822 struct uverbs_attr_bundle attrs = { local
885 struct uverbs_attr_bundle attrs = { .ufile = ufile }; local
960 uverbs_get_uobject_from_file(u16 object_id, enum uverbs_obj_access access, s64 id, struct uverbs_attr_bundle *attrs) argument
985 uverbs_finalize_object(struct ib_uobject *uobj, enum uverbs_obj_access access, bool hw_obj_valid, bool commit, struct uverbs_attr_bundle *attrs) argument
[all...]
H A Duverbs_std_types_wq.c12 struct uverbs_attr_bundle *attrs)
19 ret = ib_destroy_wq_user(wq, &attrs->driver_udata);
28 struct uverbs_attr_bundle *attrs)
31 uverbs_attr_get_uobject(attrs, UVERBS_ATTR_CREATE_WQ_HANDLE),
34 uverbs_attr_get_obj(attrs, UVERBS_ATTR_CREATE_WQ_PD_HANDLE);
36 uverbs_attr_get_obj(attrs, UVERBS_ATTR_CREATE_WQ_CQ_HANDLE);
42 ret = uverbs_get_flags32(&wq_init_attr.create_flags, attrs,
49 ret = uverbs_copy_from(&wq_init_attr.max_sge, attrs,
52 ret = uverbs_copy_from(&wq_init_attr.max_wr, attrs,
55 ret = uverbs_copy_from(&user_handle, attrs,
10 uverbs_free_wq(struct ib_uobject *uobject, enum rdma_remove_reason why, struct uverbs_attr_bundle *attrs) argument
27 UVERBS_METHOD_WQ_CREATE( struct uverbs_attr_bundle *attrs) argument
159 UVERBS_METHOD_WQ_DESTROY( struct uverbs_attr_bundle *attrs) argument
[all...]
H A Duverbs_cmd.c58 static int uverbs_response(struct uverbs_attr_bundle *attrs, const void *resp, argument
63 if (uverbs_attr_is_valid(attrs, UVERBS_ATTR_CORE_OUT))
65 attrs, UVERBS_ATTR_CORE_OUT, resp, resp_len);
67 if (copy_to_user(attrs->ucore.outbuf, resp,
68 min(attrs->ucore.outlen, resp_len)))
71 if (resp_len < attrs->ucore.outlen) {
76 ret = clear_user(attrs->ucore.outbuf + resp_len,
77 attrs->ucore.outlen - resp_len);
91 static int uverbs_request(struct uverbs_attr_bundle *attrs, void *req, argument
94 if (copy_from_user(req, attrs
115 uverbs_response_length(struct uverbs_attr_bundle *attrs, size_t resp_len) argument
130 uverbs_request_start(struct uverbs_attr_bundle *attrs, struct uverbs_req_iter *iter, void *req, size_t req_len) argument
182 uverbs_get_cleared_udata(struct uverbs_attr_bundle *attrs) argument
189 _ib_uverbs_lookup_comp_file(s32 fd, struct uverbs_attr_bundle *attrs) argument
206 ib_alloc_ucontext(struct uverbs_attr_bundle *attrs) argument
231 ib_init_ucontext(struct uverbs_attr_bundle *attrs) argument
276 ib_uverbs_get_context(struct uverbs_attr_bundle *attrs) argument
370 ib_uverbs_query_device(struct uverbs_attr_bundle *attrs) argument
391 ib_uverbs_query_port(struct uverbs_attr_bundle *attrs) argument
419 ib_uverbs_alloc_pd(struct uverbs_attr_bundle *attrs) argument
468 ib_uverbs_dealloc_pd(struct uverbs_attr_bundle *attrs) argument
565 ib_uverbs_open_xrcd(struct uverbs_attr_bundle *attrs) argument
659 ib_uverbs_close_xrcd(struct uverbs_attr_bundle *attrs) argument
671 ib_uverbs_dealloc_xrcd(struct ib_uobject *uobject, struct ib_xrcd *xrcd, enum rdma_remove_reason why, struct uverbs_attr_bundle *attrs) argument
695 ib_uverbs_reg_mr(struct uverbs_attr_bundle *attrs) argument
764 ib_uverbs_rereg_mr(struct uverbs_attr_bundle *attrs) argument
891 ib_uverbs_dereg_mr(struct uverbs_attr_bundle *attrs) argument
903 ib_uverbs_alloc_mw(struct uverbs_attr_bundle *attrs) argument
966 ib_uverbs_dealloc_mw(struct uverbs_attr_bundle *attrs) argument
978 ib_uverbs_create_comp_channel(struct uverbs_attr_bundle *attrs) argument
1004 create_cq(struct uverbs_attr_bundle *attrs, struct ib_uverbs_ex_create_cq *cmd) argument
1081 ib_uverbs_create_cq(struct uverbs_attr_bundle *attrs) argument
1100 ib_uverbs_ex_create_cq(struct uverbs_attr_bundle *attrs) argument
1118 ib_uverbs_resize_cq(struct uverbs_attr_bundle *attrs) argument
1177 ib_uverbs_poll_cq(struct uverbs_attr_bundle *attrs) argument
1230 ib_uverbs_req_notify_cq(struct uverbs_attr_bundle *attrs) argument
1252 ib_uverbs_destroy_cq(struct uverbs_attr_bundle *attrs) argument
1278 create_qp(struct uverbs_attr_bundle *attrs, struct ib_uverbs_ex_create_qp *cmd) argument
1503 ib_uverbs_create_qp(struct uverbs_attr_bundle *attrs) argument
1531 ib_uverbs_ex_create_qp(struct uverbs_attr_bundle *attrs) argument
1549 ib_uverbs_open_qp(struct uverbs_attr_bundle *attrs) argument
1637 ib_uverbs_query_qp(struct uverbs_attr_bundle *attrs) argument
1751 modify_qp(struct uverbs_attr_bundle *attrs, struct ib_uverbs_ex_modify_qp *cmd) argument
1917 ib_uverbs_modify_qp(struct uverbs_attr_bundle *attrs) argument
1932 ib_uverbs_ex_modify_qp(struct uverbs_attr_bundle *attrs) argument
1958 ib_uverbs_destroy_qp(struct uverbs_attr_bundle *attrs) argument
1994 ib_uverbs_post_send(struct uverbs_attr_bundle *attrs) argument
2286 ib_uverbs_post_recv(struct uverbs_attr_bundle *attrs) argument
2337 ib_uverbs_post_srq_recv(struct uverbs_attr_bundle *attrs) argument
2389 ib_uverbs_create_ah(struct uverbs_attr_bundle *attrs) argument
2459 ib_uverbs_destroy_ah(struct uverbs_attr_bundle *attrs) argument
2471 ib_uverbs_attach_mcast(struct uverbs_attr_bundle *attrs) argument
2520 ib_uverbs_detach_mcast(struct uverbs_attr_bundle *attrs) argument
2639 kern_spec_to_ib_spec_action(struct uverbs_attr_bundle *attrs, struct ib_uverbs_flow_spec *kern_spec, union ib_flow_spec *ib_spec, struct ib_uflow_resources *uflow_res) argument
2866 kern_spec_to_ib_spec(struct uverbs_attr_bundle *attrs, struct ib_uverbs_flow_spec *kern_spec, union ib_flow_spec *ib_spec, struct ib_uflow_resources *uflow_res) argument
2881 ib_uverbs_ex_create_wq(struct uverbs_attr_bundle *attrs) argument
2968 ib_uverbs_ex_destroy_wq(struct uverbs_attr_bundle *attrs) argument
2996 ib_uverbs_ex_modify_wq(struct uverbs_attr_bundle *attrs) argument
3047 ib_uverbs_ex_create_rwq_ind_table(struct uverbs_attr_bundle *attrs) argument
3161 ib_uverbs_ex_destroy_rwq_ind_table(struct uverbs_attr_bundle *attrs) argument
3177 ib_uverbs_ex_create_flow(struct uverbs_attr_bundle *attrs) argument
3344 ib_uverbs_ex_destroy_flow(struct uverbs_attr_bundle *attrs) argument
3359 __uverbs_create_xsrq(struct uverbs_attr_bundle *attrs, struct ib_uverbs_create_xsrq *cmd, struct ib_udata *udata) argument
3470 ib_uverbs_create_srq(struct uverbs_attr_bundle *attrs) argument
3492 ib_uverbs_create_xsrq(struct uverbs_attr_bundle *attrs) argument
3504 ib_uverbs_modify_srq(struct uverbs_attr_bundle *attrs) argument
3531 ib_uverbs_query_srq(struct uverbs_attr_bundle *attrs) argument
3564 ib_uverbs_destroy_srq(struct uverbs_attr_bundle *attrs) argument
3589 ib_uverbs_ex_query_device(struct uverbs_attr_bundle *attrs) argument
3653 ib_uverbs_ex_modify_cq(struct uverbs_attr_bundle *attrs) argument
[all...]
/linux-master/include/crypto/internal/
H A Dcryptouser.h8 int crypto_reportstat(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, struct nlattr **attrs);
12 struct nlattr **attrs)
10 crypto_reportstat(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, struct nlattr **attrs) argument
/linux-master/kernel/dma/
H A Ddummy.c9 unsigned long attrs)
16 unsigned long attrs)
23 unsigned long attrs)
7 dma_dummy_mmap(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs) argument
14 dma_dummy_map_page(struct device *dev, struct page *page, unsigned long offset, size_t size, enum dma_data_direction dir, unsigned long attrs) argument
21 dma_dummy_map_sg(struct device *dev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir, unsigned long attrs) argument
/linux-master/net/ieee802154/
H A Dnl-mac.c149 if (info->attrs[IEEE802154_ATTR_DEV_NAME]) {
152 nla_strscpy(name, info->attrs[IEEE802154_ATTR_DEV_NAME],
155 } else if (info->attrs[IEEE802154_ATTR_DEV_INDEX]) {
157 nla_get_u32(info->attrs[IEEE802154_ATTR_DEV_INDEX]));
180 if (!info->attrs[IEEE802154_ATTR_CHANNEL] ||
181 !info->attrs[IEEE802154_ATTR_COORD_PAN_ID] ||
182 (!info->attrs[IEEE802154_ATTR_COORD_HW_ADDR] &&
183 !info->attrs[IEEE802154_ATTR_COORD_SHORT_ADDR]) ||
184 !info->attrs[IEEE802154_ATTR_CAPABILITY])
193 if (info->attrs[IEEE802154_ATTR_COORD_HW_ADD
[all...]
/linux-master/tools/testing/selftests/efivarfs/
H A Defivarfs.sh55 local attrs='\x07\x00\x00\x00'
58 printf "$attrs\x00" > $file
100 local attrs='\x07\x00\x00\x00'
103 printf "$attrs\x00" > $file
123 local attrs='\x07\x00\x00\x00'
126 printf "$attrs\x00" > $file
134 printf "$attrs" > $file
151 local attrs='\x07\x00\x00\x00'
158 printf "$attrs\x00" > $file
173 local attrs
[all...]
/linux-master/tools/perf/arch/x86/util/
H A Devlist.c12 struct perf_event_attr *attrs,
19 event_attr_init(attrs + i);
22 return evlist__add_attrs(evlist, attrs, nr_attrs);
27 if (attrs[i].type == PERF_TYPE_SOFTWARE) {
28 struct evsel *evsel = evsel__new(attrs + i);
40 evsel = evsel__new(attrs + i);
67 struct perf_event_attr *attrs,
73 return ___evlist__add_default_attrs(evlist, attrs, nr_attrs);
11 ___evlist__add_default_attrs(struct evlist *evlist, struct perf_event_attr *attrs, size_t nr_attrs) argument
66 arch_evlist__add_default_attrs(struct evlist *evlist, struct perf_event_attr *attrs, size_t nr_attrs) argument
/linux-master/arch/mips/include/asm/
H A Dmaar.h34 * @attrs: The accessibility attributes to program, eg. MIPS_MAAR_S. The
38 * specified by attrs to the range of addresses from lower to higher.
41 phys_addr_t upper, unsigned attrs)
49 attrs |= MIPS_MAAR_VL;
57 write_c0_maar(((upper >> 4) & MIPS_MAAR_ADDR) | attrs);
68 write_c0_maar((lower >> 4) | attrs);
92 * @attrs: The accessibility attributes to program, eg. MIPS_MAAR_S. The
96 * Registers - applying attributes from attrs to the range of physical
102 unsigned attrs; member in struct:maar_config
122 write_maar_pair(i, cfg[i].lower, cfg[i].upper, cfg[i].attrs);
40 write_maar_pair(unsigned idx, phys_addr_t lower, phys_addr_t upper, unsigned attrs) argument
[all...]
/linux-master/drivers/net/wireguard/
H A Dnetlink.c52 static struct wg_device *lookup_interface(struct nlattr **attrs, argument
57 if (!attrs[WGDEVICE_A_IFINDEX] == !attrs[WGDEVICE_A_IFNAME])
59 if (attrs[WGDEVICE_A_IFINDEX])
61 nla_get_u32(attrs[WGDEVICE_A_IFINDEX]));
62 else if (attrs[WGDEVICE_A_IFNAME])
64 nla_data(attrs[WGDEVICE_A_IFNAME]));
203 wg = lookup_interface(genl_info_dump(cb)->attrs, cb->skb);
329 static int set_allowedip(struct wg_peer *peer, struct nlattr **attrs) argument
335 if (!attrs[WGALLOWEDIP_A_FAMIL
357 set_peer(struct wg_device *wg, struct nlattr **attrs) argument
[all...]
/linux-master/net/tipc/
H A Dnet.c169 struct nlattr *attrs; local
177 attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_NET);
178 if (!attrs)
187 nla_nest_end(msg->skb, attrs);
193 nla_nest_cancel(msg->skb, attrs);
227 struct nlattr *attrs[TIPC_NLA_NET_MAX + 1]; local
232 if (!info->attrs[TIPC_NLA_NET])
235 err = nla_parse_nested_deprecated(attrs, TIPC_NLA_NET_MAX,
236 info->attrs[TIPC_NLA_NET],
246 if (attrs[TIPC_NLA_NET_I
294 struct nlattr *attrs; local
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Ddevlink.c54 struct devlink_port_attrs attrs = {}; local
59 attrs.flavour = DEVLINK_PORT_FLAVOUR_PHYSICAL;
60 attrs.phys.port_number = mlx5_get_dev_index(mdev);
63 memcpy(attrs.switch_id.id, ppid.id, ppid.id_len);
64 attrs.switch_id.id_len = ppid.id_len;
69 attrs.flavour = DEVLINK_PORT_FLAVOUR_VIRTUAL;
73 devlink_port_attrs_set(&mlx5e_dev->dl_port, &attrs);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec.c66 if (sa_entry->attrs.drop)
72 sa_entry->attrs.drop = true;
147 struct mlx5_accel_esp_xfrm_attrs *attrs)
152 attrs->lft.hard_packet_limit = x->lft.hard_packet_limit;
153 attrs->lft.soft_packet_limit = x->lft.soft_packet_limit;
187 n = attrs->lft.hard_packet_limit / BIT_ULL(31);
188 start_value = attrs->lft.hard_packet_limit - n * BIT_ULL(31);
195 start_value = attrs->lft.hard_packet_limit - n * BIT_ULL(31);
200 attrs->lft.hard_packet_limit = lower_32_bits(start_value);
201 attrs
146 mlx5e_ipsec_init_limits(struct mlx5e_ipsec_sa_entry *sa_entry, struct mlx5_accel_esp_xfrm_attrs *attrs) argument
259 mlx5e_ipsec_init_macs(struct mlx5e_ipsec_sa_entry *sa_entry, struct mlx5_accel_esp_xfrm_attrs *attrs) argument
307 mlx5e_ipsec_build_accel_xfrm_attrs(struct mlx5e_ipsec_sa_entry *sa_entry, struct mlx5_accel_esp_xfrm_attrs *attrs) argument
559 struct mlx5_accel_esp_xfrm_attrs *attrs; local
588 struct mlx5_accel_esp_xfrm_attrs *attrs; local
794 struct mlx5_accel_esp_xfrm_attrs *attrs = &sa_entry->attrs; local
839 struct mlx5_accel_esp_xfrm_attrs *attrs; local
1087 mlx5e_ipsec_build_accel_pol_attrs(struct mlx5e_ipsec_pol_entry *pol_entry, struct mlx5_accel_pol_xfrm_attrs *attrs) argument
[all...]
/linux-master/drivers/infiniband/hw/mlx5/
H A Dqos.c25 struct uverbs_attr_bundle *attrs)
28 struct ib_uobject *uobj = uverbs_attr_get_uobject(attrs,
39 c = to_mucontext(ib_uverbs_get_ucontext(attrs));
52 in_ctx = uverbs_attr_get_alloced_ptr(attrs,
54 inlen = uverbs_attr_get_len(attrs,
57 err = uverbs_get_flags32(&flags, attrs,
74 uverbs_finalize_uobj_create(attrs, MLX5_IB_ATTR_PP_OBJ_ALLOC_HANDLE);
76 err = uverbs_copy_to(attrs, MLX5_IB_ATTR_PP_OBJ_ALLOC_INDEX,
87 struct uverbs_attr_bundle *attrs)
24 MLX5_IB_METHOD_PP_OBJ_ALLOC( struct uverbs_attr_bundle *attrs) argument
85 pp_obj_cleanup(struct ib_uobject *uobject, enum rdma_remove_reason why, struct uverbs_attr_bundle *attrs) argument
/linux-master/drivers/media/platform/st/sti/delta/
H A Ddelta-mem.c16 unsigned long attrs = DMA_ATTR_WRITE_COMBINE; local
19 GFP_KERNEL | __GFP_NOWARN, attrs);
32 buf->attrs = attrs;
50 buf->vaddr, buf->paddr, buf->attrs);
/linux-master/mm/damon/
H A Dmodules-common.h10 #define DEFINE_DAMON_MODULES_MON_ATTRS_PARAMS(attrs) \
11 module_param_named(sample_interval, attrs.sample_interval, \
13 module_param_named(aggr_interval, attrs.aggr_interval, ulong, \
15 module_param_named(min_nr_regions, attrs.min_nr_regions, ulong, \
17 module_param_named(max_nr_regions, attrs.max_nr_regions, ulong, \
/linux-master/net/devlink/
H A Dnetlink.c45 struct nlattr **attrs = info->attrs; local
51 if (attrs[DEVLINK_ATTR_BUS_NAME])
53 nla_len(attrs[DEVLINK_ATTR_BUS_NAME]) + 1);
54 if (attrs[DEVLINK_ATTR_DEV_NAME])
56 nla_len(attrs[DEVLINK_ATTR_DEV_NAME]) + 1);
63 if (attrs[DEVLINK_ATTR_BUS_NAME]) {
65 attrs[DEVLINK_ATTR_BUS_NAME],
70 if (attrs[DEVLINK_ATTR_DEV_NAME]) {
71 nla_strscpy(pos, attrs[DEVLINK_ATTR_DEV_NAM
181 devlink_get_from_attrs_lock(struct net *net, struct nlattr **attrs, bool dev_lock) argument
292 devlink_nl_inst_single_dumpit(struct sk_buff *msg, struct netlink_callback *cb, int flags, devlink_nl_dump_one_func_t *dump_one, struct nlattr **attrs) argument
351 struct nlattr **attrs = info->attrs; local
[all...]

Completed in 282 milliseconds

1234567891011>>