Home
last modified time | relevance | path

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

12345678910>>...36

/drivers/infiniband/core/
Duverbs_std_types_device.c21 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 …]
Duverbs_std_types_mr.c41 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 …]
Duverbs_cmd.c58 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 …]
Drdma_core.c124 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 …]
Duverbs_std_types_qp.c13 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 …]
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 …]
Duverbs_std_types_flow_action.c39 struct uverbs_attr_bundle *attrs) in uverbs_free_flow_action() argument
49 static u64 esp_flags_uverbs_to_verbs(struct uverbs_attr_bundle *attrs, in esp_flags_uverbs_to_verbs() argument
54 if (uverbs_attr_is_valid(attrs, UVERBS_ATTR_FLOW_ACTION_ESP_ESN)) in esp_flags_uverbs_to_verbs()
57 if (is_modify && uverbs_attr_is_valid(attrs, in esp_flags_uverbs_to_verbs()
192 struct uverbs_attr_bundle *attrs) in flow_action_esp_get_encap() argument
197 ret = uverbs_copy_from(&uverbs_encap, attrs, in flow_action_esp_get_encap()
226 struct uverbs_attr_bundle *attrs, in parse_flow_action_esp() argument
234 ret = uverbs_copy_from(&esp_attr->hdr.esn, attrs, in parse_flow_action_esp()
242 if (uverbs_attr_is_valid(attrs, UVERBS_ATTR_FLOW_ACTION_ESP_ATTRS)) { in parse_flow_action_esp()
243 ret = uverbs_copy_from_or_zero(&uverbs_esp, attrs, in parse_flow_action_esp()
[all …]
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 …]
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()
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 …]
Duverbs_std_types_counters.c40 struct uverbs_attr_bundle *attrs) in uverbs_free_counters() argument
56 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER()
59 attrs, UVERBS_ATTR_CREATE_COUNTERS_HANDLE); in UVERBS_HANDLER()
60 struct ib_device *ib_dev = attrs->context->device; in UVERBS_HANDLER()
81 ret = ib_dev->ops.create_counters(counters, attrs); in UVERBS_HANDLER()
89 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER()
94 uverbs_attr_get_obj(attrs, UVERBS_ATTR_READ_COUNTERS_HANDLE); in UVERBS_HANDLER()
103 ret = uverbs_get_flags32(&read_attr.flags, attrs, in UVERBS_HANDLER()
109 uattr = uverbs_attr_get(attrs, UVERBS_ATTR_READ_COUNTERS_BUFF); in UVERBS_HANDLER()
114 attrs, array_size(read_attr.ncounters, sizeof(u64))); in UVERBS_HANDLER()
[all …]
Duverbs_std_types_dm.c39 struct uverbs_attr_bundle *attrs) in uverbs_free_dm() argument
46 return dm->device->ops.dealloc_dm(dm, attrs); in uverbs_free_dm()
50 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER()
54 uverbs_attr_get(attrs, UVERBS_ATTR_ALLOC_DM_HANDLE) in UVERBS_HANDLER()
56 struct ib_device *ib_dev = attrs->context->device; in UVERBS_HANDLER()
63 ret = uverbs_copy_from(&attr.length, attrs, in UVERBS_HANDLER()
68 ret = uverbs_copy_from(&attr.alignment, attrs, in UVERBS_HANDLER()
73 dm = ib_dev->ops.alloc_dm(ib_dev, attrs->context, &attr, attrs); in UVERBS_HANDLER()
Duverbs_std_types.c44 struct uverbs_attr_bundle *attrs) in uverbs_free_ah() argument
48 &attrs->driver_udata); in uverbs_free_ah()
53 struct uverbs_attr_bundle *attrs) in uverbs_free_flow() argument
73 struct uverbs_attr_bundle *attrs) in uverbs_free_mw() argument
80 struct uverbs_attr_bundle *attrs) in uverbs_free_rwq_ind_tbl() argument
104 struct uverbs_attr_bundle *attrs) in uverbs_free_xrcd() argument
114 mutex_lock(&attrs->ufile->device->xrcd_tree_mutex); in uverbs_free_xrcd()
115 ret = ib_uverbs_dealloc_xrcd(uobject, xrcd, why, attrs); in uverbs_free_xrcd()
116 mutex_unlock(&attrs->ufile->device->xrcd_tree_mutex); in uverbs_free_xrcd()
123 struct uverbs_attr_bundle *attrs) in uverbs_free_pd() argument
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/accel/
Dipsec_offload.c58 const struct mlx5_accel_esp_xfrm_attrs *attrs) in mlx5_ipsec_offload_esp_validate_xfrm_attrs() argument
60 if (attrs->replay_type != MLX5_ACCEL_ESP_REPLAY_NONE) { in mlx5_ipsec_offload_esp_validate_xfrm_attrs()
62 attrs->replay_type); in mlx5_ipsec_offload_esp_validate_xfrm_attrs()
66 if (attrs->keymat_type != MLX5_ACCEL_ESP_KEYMAT_AES_GCM) { in mlx5_ipsec_offload_esp_validate_xfrm_attrs()
68 attrs->keymat_type); in mlx5_ipsec_offload_esp_validate_xfrm_attrs()
72 if (attrs->keymat.aes_gcm.iv_algo != in mlx5_ipsec_offload_esp_validate_xfrm_attrs()
75 attrs->keymat.aes_gcm.iv_algo); in mlx5_ipsec_offload_esp_validate_xfrm_attrs()
79 if (attrs->keymat.aes_gcm.key_len != 128 && in mlx5_ipsec_offload_esp_validate_xfrm_attrs()
80 attrs->keymat.aes_gcm.key_len != 256) { in mlx5_ipsec_offload_esp_validate_xfrm_attrs()
82 attrs->keymat.aes_gcm.key_len); in mlx5_ipsec_offload_esp_validate_xfrm_attrs()
[all …]
Dipsec.c116 if (!xfrm->attrs.is_ipv6) { in mlx5_accel_esp_create_hw_context()
117 saddr[3] = xfrm->attrs.saddr.a4; in mlx5_accel_esp_create_hw_context()
118 daddr[3] = xfrm->attrs.daddr.a4; in mlx5_accel_esp_create_hw_context()
120 memcpy(saddr, xfrm->attrs.saddr.a6, sizeof(saddr)); in mlx5_accel_esp_create_hw_context()
121 memcpy(daddr, xfrm->attrs.daddr.a6, sizeof(daddr)); in mlx5_accel_esp_create_hw_context()
124 return ipsec_ops->create_hw_context(mdev, xfrm, saddr, daddr, xfrm->attrs.spi, in mlx5_accel_esp_create_hw_context()
125 xfrm->attrs.is_ipv6, sa_handle); in mlx5_accel_esp_create_hw_context()
140 const struct mlx5_accel_esp_xfrm_attrs *attrs, in mlx5_accel_esp_create_xfrm() argument
149 xfrm = ipsec_ops->esp_create_xfrm(mdev, attrs, flags); in mlx5_accel_esp_create_xfrm()
170 const struct mlx5_accel_esp_xfrm_attrs *attrs) in mlx5_accel_esp_modify_xfrm() argument
[all …]
/drivers/net/wireguard/
Dnetlink.c52 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_dumpit_info(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 …]
/drivers/soc/aspeed/
Daspeed-socinfo.c79 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 …]
/drivers/infiniband/sw/siw/
Dsiw_qp.c108 if (likely(qp->attrs.state == SIW_QP_STATE_RTS)) in siw_qp_llp_data_ready()
129 siw_qp_state_to_string[qp->attrs.state]); in siw_qp_llp_close()
135 qp->attrs.sk = NULL; in siw_qp_llp_close()
137 switch (qp->attrs.state) { in siw_qp_llp_close()
142 qp->attrs.state = SIW_QP_STATE_ERROR; in siw_qp_llp_close()
152 qp->attrs.state = SIW_QP_STATE_ERROR; in siw_qp_llp_close()
154 qp->attrs.state = SIW_QP_STATE_IDLE; in siw_qp_llp_close()
159 siw_qp_state_to_string[qp->attrs.state]); in siw_qp_llp_close()
176 siw_qp_state_to_string[qp->attrs.state]); in siw_qp_llp_close()
206 qp->attrs.irq_size = 0; in siw_qp_readq_init()
[all …]
Dsiw_verbs.c136 attr->max_cq = sdev->attrs.max_cq; in siw_query_device()
137 attr->max_cqe = sdev->attrs.max_cqe; in siw_query_device()
139 attr->max_mr = sdev->attrs.max_mr; in siw_query_device()
140 attr->max_mw = sdev->attrs.max_mw; in siw_query_device()
142 attr->max_pd = sdev->attrs.max_pd; in siw_query_device()
143 attr->max_qp = sdev->attrs.max_qp; in siw_query_device()
144 attr->max_qp_init_rd_atom = sdev->attrs.max_ird; in siw_query_device()
145 attr->max_qp_rd_atom = sdev->attrs.max_ord; in siw_query_device()
146 attr->max_qp_wr = sdev->attrs.max_qp_wr; in siw_query_device()
147 attr->max_recv_sge = sdev->attrs.max_sge; in siw_query_device()
[all …]
/drivers/hwmon/
Ds3c-hwmon.c45 struct s3c_hwmon_attr attrs[8]; member
120 .attrs = s3c_hwmon_attrs,
209 struct s3c_hwmon_attr *attrs, in s3c_hwmon_create_attr() argument
215 snprintf(attrs->in_name, sizeof(attrs->in_name), "in%d_input", channel); in s3c_hwmon_create_attr()
217 attr = &attrs->in; in s3c_hwmon_create_attr()
220 attr->dev_attr.attr.name = attrs->in_name; in s3c_hwmon_create_attr()
232 snprintf(attrs->label_name, sizeof(attrs->label_name), in s3c_hwmon_create_attr()
235 attr = &attrs->label; in s3c_hwmon_create_attr()
238 attr->dev_attr.attr.name = attrs->label_name; in s3c_hwmon_create_attr()
244 device_remove_file(dev, &attrs->in.dev_attr); in s3c_hwmon_create_attr()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec.c146 struct mlx5_accel_esp_xfrm_attrs *attrs) in mlx5e_ipsec_build_accel_xfrm_attrs() argument
149 struct aes_gcm_keymat *aes_gcm = &attrs->keymat.aes_gcm; in mlx5e_ipsec_build_accel_xfrm_attrs()
155 memset(attrs, 0, sizeof(*attrs)); in mlx5e_ipsec_build_accel_xfrm_attrs()
177 attrs->flags |= MLX5_ACCEL_ESP_FLAGS_ESN_TRIGGERED; in mlx5e_ipsec_build_accel_xfrm_attrs()
178 attrs->esn = sa_entry->esn_state.esn; in mlx5e_ipsec_build_accel_xfrm_attrs()
180 attrs->flags |= MLX5_ACCEL_ESP_FLAGS_ESN_STATE_OVERLAP; in mlx5e_ipsec_build_accel_xfrm_attrs()
184 attrs->sa_handle = sa_entry->handle; in mlx5e_ipsec_build_accel_xfrm_attrs()
187 attrs->keymat_type = MLX5_ACCEL_ESP_KEYMAT_AES_GCM; in mlx5e_ipsec_build_accel_xfrm_attrs()
190 attrs->action = (!(x->xso.flags & XFRM_OFFLOAD_INBOUND)) ? in mlx5e_ipsec_build_accel_xfrm_attrs()
194 attrs->flags |= (x->props.mode == XFRM_MODE_TRANSPORT) ? in mlx5e_ipsec_build_accel_xfrm_attrs()
[all …]
/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_qp.c586 cmd->attrs.qp_state = ib_qp_state_to_pvrdma(attr->qp_state); in pvrdma_modify_qp()
587 cmd->attrs.cur_qp_state = in pvrdma_modify_qp()
589 cmd->attrs.path_mtu = ib_mtu_to_pvrdma(attr->path_mtu); in pvrdma_modify_qp()
590 cmd->attrs.path_mig_state = in pvrdma_modify_qp()
592 cmd->attrs.qkey = attr->qkey; in pvrdma_modify_qp()
593 cmd->attrs.rq_psn = attr->rq_psn; in pvrdma_modify_qp()
594 cmd->attrs.sq_psn = attr->sq_psn; in pvrdma_modify_qp()
595 cmd->attrs.dest_qp_num = attr->dest_qp_num; in pvrdma_modify_qp()
596 cmd->attrs.qp_access_flags = in pvrdma_modify_qp()
598 cmd->attrs.pkey_index = attr->pkey_index; in pvrdma_modify_qp()
[all …]
/drivers/infiniband/hw/mlx5/
Ddm.c174 struct uverbs_attr_bundle *attrs) in copy_op_to_user() argument
182 err = uverbs_copy_to(attrs, MLX5_IB_ATTR_DM_MAP_OP_ADDR_RESP_PAGE_INDEX, in copy_op_to_user()
187 return uverbs_copy_to(attrs, in copy_op_to_user()
193 struct uverbs_attr_bundle *attrs) in map_existing_op() argument
201 return copy_op_to_user(op_entry, attrs); in map_existing_op()
205 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER()
208 attrs, MLX5_IB_ATTR_DM_MAP_OP_ADDR_REQ_HANDLE); in UVERBS_HANDLER()
216 err = uverbs_copy_from(&op, attrs, MLX5_IB_ATTR_DM_MAP_OP_ADDR_REQ_OP); in UVERBS_HANDLER()
227 err = map_existing_op(dm, op, attrs); in UVERBS_HANDLER()
255 err = copy_op_to_user(op_entry, attrs); in UVERBS_HANDLER()
[all …]
Dqos.c25 struct uverbs_attr_bundle *attrs) in UVERBS_HANDLER()
28 struct ib_uobject *uobj = uverbs_attr_get_uobject(attrs, in UVERBS_HANDLER()
39 c = to_mucontext(ib_uverbs_get_ucontext(attrs)); in UVERBS_HANDLER()
52 in_ctx = uverbs_attr_get_alloced_ptr(attrs, in UVERBS_HANDLER()
54 inlen = uverbs_attr_get_len(attrs, in UVERBS_HANDLER()
57 err = uverbs_get_flags32(&flags, attrs, in UVERBS_HANDLER()
74 uverbs_finalize_uobj_create(attrs, MLX5_IB_ATTR_PP_OBJ_ALLOC_HANDLE); in UVERBS_HANDLER()
76 err = uverbs_copy_to(attrs, MLX5_IB_ATTR_PP_OBJ_ALLOC_INDEX, in UVERBS_HANDLER()
87 struct uverbs_attr_bundle *attrs) in pp_obj_cleanup() argument
/drivers/iommu/
Ddma-iommu.c455 unsigned long attrs) in dma_info_to_prot() argument
459 if (attrs & DMA_ATTR_PRIVILEGED) in dma_info_to_prot()
461 if (attrs & DMA_ATTR_SYS_CACHE_ONLY) in dma_info_to_prot()
463 if (attrs & DMA_ATTR_SYS_CACHE_ONLY_NWA) in dma_info_to_prot()
657 unsigned long attrs) in __iommu_dma_alloc_noncontiguous() argument
663 int ioprot = dma_info_to_prot(DMA_BIDIRECTIONAL, coherent, attrs); in __iommu_dma_alloc_noncontiguous()
680 if (attrs & DMA_ATTR_ALLOC_SINGLE_PAGES) in __iommu_dma_alloc_noncontiguous()
724 unsigned long attrs) in iommu_dma_alloc_remap() argument
731 attrs); in iommu_dma_alloc_remap()
751 unsigned long attrs) in iommu_dma_alloc_noncontiguous() argument
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/esw/
Ddevlink_port.c27 struct devlink_port_attrs attrs = {}; in mlx5_esw_dl_port_alloc() local
45 attrs.flavour = DEVLINK_PORT_FLAVOUR_PHYSICAL; in mlx5_esw_dl_port_alloc()
46 attrs.phys.port_number = pfnum; in mlx5_esw_dl_port_alloc()
47 memcpy(attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc()
48 attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc()
49 devlink_port_attrs_set(dl_port, &attrs); in mlx5_esw_dl_port_alloc()
51 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc()
52 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc()
55 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc()
56 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc()
[all …]

12345678910>>...36