Home
last modified time | relevance | path

Searched full:handle (Results 1 – 25 of 5789) sorted by relevance

12345678910>>...232

/Linux-v5.15/drivers/crypto/qat/qat_common/
Dqat_hal.c36 #define AE(handle, ae) ((handle)->hal_handle->aes[ae]) argument
69 void qat_hal_set_live_ctx(struct icp_qat_fw_loader_handle *handle, in qat_hal_set_live_ctx() argument
72 AE(handle, ae).live_ctx_mask = ctx_mask; in qat_hal_set_live_ctx()
76 static int qat_hal_rd_ae_csr(struct icp_qat_fw_loader_handle *handle, in qat_hal_rd_ae_csr() argument
83 value = GET_AE_CSR(handle, ae, csr); in qat_hal_rd_ae_csr()
84 if (!(GET_AE_CSR(handle, ae, LOCAL_CSR_STATUS) & LCS_STATUS)) in qat_hal_rd_ae_csr()
92 static int qat_hal_wr_ae_csr(struct icp_qat_fw_loader_handle *handle, in qat_hal_wr_ae_csr() argument
99 SET_AE_CSR(handle, ae, csr, value); in qat_hal_wr_ae_csr()
100 if (!(GET_AE_CSR(handle, ae, LOCAL_CSR_STATUS) & LCS_STATUS)) in qat_hal_wr_ae_csr()
108 static void qat_hal_get_wakeup_event(struct icp_qat_fw_loader_handle *handle, in qat_hal_get_wakeup_event() argument
[all …]
Dqat_uclo.c124 static void qat_uclo_wr_sram_by_words(struct icp_qat_fw_loader_handle *handle, in qat_uclo_wr_sram_by_words() argument
133 SRAM_WRITE(handle, addr, outval); in qat_uclo_wr_sram_by_words()
140 static void qat_uclo_wr_umem_by_words(struct icp_qat_fw_loader_handle *handle, in qat_uclo_wr_umem_by_words() argument
152 qat_hal_wr_umem(handle, ae, addr++, 1, &outval); in qat_uclo_wr_umem_by_words()
158 static void qat_uclo_batch_wr_umem(struct icp_qat_fw_loader_handle *handle, in qat_uclo_batch_wr_umem() argument
175 qat_uclo_wr_umem_by_words(handle, ae, addr, value, size); in qat_uclo_batch_wr_umem()
181 qat_uclo_cleanup_batch_init_list(struct icp_qat_fw_loader_handle *handle, in qat_uclo_cleanup_batch_init_list() argument
217 static int qat_uclo_fetch_initmem_ae(struct icp_qat_fw_loader_handle *handle, in qat_uclo_fetch_initmem_ae() argument
221 struct icp_qat_uclo_objhandle *obj_handle = handle->obj_handle; in qat_uclo_fetch_initmem_ae()
249 *handle, struct icp_qat_uof_initmem in qat_uclo_create_batch_init_list()
[all …]
/Linux-v5.15/drivers/staging/media/atomisp/pci/runtime/rmgr/src/
Drmgr_vbuf.c65 * @brief Retain the reference count for a handle (host, vbuf)
67 * @param handle The pointer to the handle
69 void ia_css_rmgr_refcount_retain_vbuf(struct ia_css_rmgr_vbuf_handle **handle) in ia_css_rmgr_refcount_retain_vbuf() argument
74 if ((!handle) || (!*handle)) { in ia_css_rmgr_refcount_retain_vbuf()
79 if ((*handle)->count == 0) { in ia_css_rmgr_refcount_retain_vbuf()
80 h = *handle; in ia_css_rmgr_refcount_retain_vbuf()
81 *handle = NULL; in ia_css_rmgr_refcount_retain_vbuf()
84 *handle = &handle_table[i]; in ia_css_rmgr_refcount_retain_vbuf()
88 /* if the loop dus not break and *handle == NULL in ia_css_rmgr_refcount_retain_vbuf()
89 * this is an error handle and report it. in ia_css_rmgr_refcount_retain_vbuf()
[all …]
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns/
Dhns_ae_adapt.c16 static struct hns_mac_cb *hns_get_mac_cb(struct hnae_handle *handle) in hns_get_mac_cb() argument
18 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle); in hns_get_mac_cb()
28 static struct hns_ppe_cb *hns_get_ppe_cb(struct hnae_handle *handle) in hns_get_ppe_cb() argument
32 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle); in hns_get_ppe_cb()
139 static void hns_ae_put_handle(struct hnae_handle *handle) in hns_ae_put_handle() argument
141 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle); in hns_ae_put_handle()
144 for (i = 0; i < handle->q_num; i++) in hns_ae_put_handle()
145 hns_ae_get_ring_pair(handle->qs[i])->used_by_vf = 0; in hns_ae_put_handle()
150 static int hns_ae_wait_flow_down(struct hnae_handle *handle) in hns_ae_wait_flow_down() argument
158 for (i = 0; i < handle->q_num; i++) { in hns_ae_wait_flow_down()
[all …]
/Linux-v5.15/fs/ext4/
Dext4_jbd2.c32 /* Just increment the non-pointer handle value */
35 handle_t *handle = current->journal_info; in ext4_get_nojournal() local
36 unsigned long ref_cnt = (unsigned long)handle; in ext4_get_nojournal()
41 handle = (handle_t *)ref_cnt; in ext4_get_nojournal()
43 current->journal_info = handle; in ext4_get_nojournal()
44 return handle; in ext4_get_nojournal()
48 /* Decrement the non-pointer handle value */
49 static void ext4_put_nojournal(handle_t *handle) in ext4_put_nojournal() argument
51 unsigned long ref_cnt = (unsigned long)handle; in ext4_put_nojournal()
56 handle = (handle_t *)ref_cnt; in ext4_put_nojournal()
[all …]
Dext4_jbd2.h68 /* We break up a large truncate or write transaction once the handle's
109 * Ext4 handle operation types -- for logging purposes
134 /* list information for other callbacks attached to the same handle */
146 * @handle: active journal transaction handle to register callback on
154 * after the transaction for which the handle was created has completed.
165 static inline void _ext4_journal_callback_add(handle_t *handle, in _ext4_journal_callback_add() argument
169 list_add_tail(&jce->jce_list, &handle->h_transaction->t_private_list); in _ext4_journal_callback_add()
172 static inline void ext4_journal_callback_add(handle_t *handle, in ext4_journal_callback_add() argument
179 EXT4_SB(handle->h_transaction->t_journal->j_private); in ext4_journal_callback_add()
184 _ext4_journal_callback_add(handle, jce); in ext4_journal_callback_add()
[all …]
/Linux-v5.15/tools/testing/selftests/tc-testing/tc-tests/filters/
Dfw.json15 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 65535 fw action ok",
17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 65535 protocol all fw",
18 "matchPattern": "pref 65535 fw.*handle 0x1.*gact action pass",
37 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 65536 fw action ok",
39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 65536 protocol all fw",
40 "matchPattern": "pref 65536 fw.*handle 0x1.*gact action pass",
164 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action ok",
166 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol all fw",
167 "matchPattern": "handle 0x1.*gact action pass",
186 … "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action gact index 1",
[all …]
Dmatchall.json13 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act…
15 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall",
16 …"matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*gact action pass.*r…
32 "$TC qdisc add dev $DUMMY root handle 1: prio"
34 …"cmdUnderTest": "$TC filter add dev $DUMMY parent 1: handle 0x1 prio 1 protocol ip matchall action…
36 "verifyCmd": "$TC filter get dev $DUMMY parent 1: handle 1 prio 1 protocol ip matchall",
37 …"matchPattern": "^filter parent 1: protocol ip pref 1 matchall.*handle 0x1.*gact action pass.*ref …
40 "$TC qdisc del dev $DUMMY root handle 1: prio",
55 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ipv6 matchall a…
57 … "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ipv6 matchall",
[all …]
Dbasic.json15 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'cm…
17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic",
18 …"matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1 flowid 1:1.*cmp\\(u8 at…
37 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'cm…
39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic",
40 …"matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1 flowid 1:1.*cmp\\(u8 at…
59 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'cm…
61 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic",
62 …"matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1.*cmp\\(u16 at 0 layer 0…
81 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'cm…
[all …]
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/
Dhnae3.h8 * ae handle (handle):
167 struct hnae3_handle *handle; member
168 int tqp_index; /* index in a handle */
347 int (*init_instance)(struct hnae3_handle *handle);
348 void (*uninit_instance)(struct hnae3_handle *handle, bool reset);
349 void (*link_status_change)(struct hnae3_handle *handle, bool state);
350 int (*reset_notify)(struct hnae3_handle *handle,
352 void (*process_hw_error)(struct hnae3_handle *handle,
378 /* This struct defines the operation on the handle.
397 * Get the carrier state of the back channel of the handle, 1 for ok, 0 for
[all …]
/Linux-v5.15/fs/
Dfhandle.c24 struct file_handle *handle = NULL; in do_sys_name_to_handle() local
28 * support decoding of the file handle in do_sys_name_to_handle()
40 handle = kmalloc(sizeof(struct file_handle) + f_handle.handle_bytes, in do_sys_name_to_handle()
42 if (!handle) in do_sys_name_to_handle()
45 /* convert handle size to multiple of sizeof(u32) */ in do_sys_name_to_handle()
48 /* we ask for a non connected handle */ in do_sys_name_to_handle()
50 (struct fid *)handle->f_handle, in do_sys_name_to_handle()
52 handle->handle_type = retval; in do_sys_name_to_handle()
53 /* convert handle size to bytes */ in do_sys_name_to_handle()
55 handle->handle_bytes = handle_bytes; in do_sys_name_to_handle()
[all …]
/Linux-v5.15/drivers/net/ethernet/qualcomm/
Dqca_7k_common.c77 qcafrm_fsm_decode(struct qcafrm_handle *handle, u8 *buf, u16 buf_len, u8 recv_byte) in qcafrm_fsm_decode() argument
82 switch (handle->state) { in qcafrm_fsm_decode()
86 handle->state--; in qcafrm_fsm_decode()
90 handle->state = handle->init; in qcafrm_fsm_decode()
95 handle->state--; in qcafrm_fsm_decode()
104 handle->state = handle->init; in qcafrm_fsm_decode()
106 handle->state--; in qcafrm_fsm_decode()
112 handle->offset = recv_byte; in qcafrm_fsm_decode()
113 handle->state = QCAFRM_WAIT_LEN_BYTE1; in qcafrm_fsm_decode()
116 handle->offset = handle->offset | (recv_byte << 8); in qcafrm_fsm_decode()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/pm/powerplay/
Damd_powerplay.c77 static int pp_early_init(void *handle) in pp_early_init() argument
80 struct amdgpu_device *adev = handle; in pp_early_init()
94 static int pp_sw_init(void *handle) in pp_sw_init() argument
96 struct amdgpu_device *adev = handle; in pp_sw_init()
107 static int pp_sw_fini(void *handle) in pp_sw_fini() argument
109 struct amdgpu_device *adev = handle; in pp_sw_fini()
120 static int pp_hw_init(void *handle) in pp_hw_init() argument
123 struct amdgpu_device *adev = handle; in pp_hw_init()
134 static int pp_hw_fini(void *handle) in pp_hw_fini() argument
136 struct amdgpu_device *adev = handle; in pp_hw_fini()
[all …]
/Linux-v5.15/drivers/pci/hotplug/
Dacpi_pcihp.c36 * @handle - the handle of the hotplug controller.
38 static acpi_status acpi_run_oshp(acpi_handle handle) in acpi_run_oshp() argument
43 acpi_get_name(handle, ACPI_FULL_PATHNAME, &string); in acpi_run_oshp()
46 status = acpi_evaluate_object(handle, METHOD_NAME_OSHP, NULL, NULL); in acpi_run_oshp()
73 acpi_handle chandle, handle; in acpi_get_hp_hw_control_from_firmware() local
105 handle = ACPI_HANDLE(&pdev->dev); in acpi_get_hp_hw_control_from_firmware()
106 if (!handle) { in acpi_get_hp_hw_control_from_firmware()
109 * space at all. Try to get ACPI handle of parent PCI bus. in acpi_get_hp_hw_control_from_firmware()
113 handle = acpi_pci_get_bridge_handle(pbus); in acpi_get_hp_hw_control_from_firmware()
114 if (handle) in acpi_get_hp_hw_control_from_firmware()
[all …]
/Linux-v5.15/drivers/firmware/
Dti_sci.c91 * @handle: Instance of TI SCI handle to send to clients.
108 struct ti_sci_handle handle; member
121 #define handle_to_ti_sci_info(h) container_of(h, struct ti_sci_info, handle)
267 dev_err(dev, "Unable to handle %zu xfer(max %d)\n", in ti_sci_rx_callback()
445 struct ti_sci_handle *handle = &info->handle; in ti_sci_cmd_get_revision() local
446 struct ti_sci_version_info *ver = &handle->version; in ti_sci_cmd_get_revision()
495 * @handle: pointer to TI SCI handle
502 static int ti_sci_set_device_state(const struct ti_sci_handle *handle, in ti_sci_set_device_state() argument
512 if (IS_ERR(handle)) in ti_sci_set_device_state()
513 return PTR_ERR(handle); in ti_sci_set_device_state()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/include/
Dkgd_pp_interface.h295 int (*pre_set_power_state)(void *handle);
296 int (*set_power_state)(void *handle);
297 void (*post_set_power_state)(void *handle);
298 void (*display_configuration_changed)(void *handle);
299 void (*print_power_state)(void *handle, void *ps);
300 bool (*vblank_too_short)(void *handle);
301 void (*enable_bapm)(void *handle, bool enable);
302 int (*check_state_equal)(void *handle,
307 void (*set_fan_control_mode)(void *handle, u32 mode);
308 u32 (*get_fan_control_mode)(void *handle);
[all …]
/Linux-v5.15/tools/testing/selftests/drivers/net/mlxsw/
Dtc_restrictions.sh46 tc filter add block 22 protocol ip pref 1 handle 101 flower \
58 tc filter del block 22 protocol ip pref 1 handle 101 flower
63 tc filter add block 22 protocol ip pref 1 handle 101 flower \
72 tc filter add block 22 protocol ip pref 1 handle 101 flower \
76 tc filter del block 22 protocol ip pref 1 handle 101 flower
94 tc filter add block 22 protocol ip pref 1 handle 101 flower \
107 tc filter del block 22 protocol ip pref 1 handle 101 flower
112 tc filter add block 22 protocol ip pref 1 handle 101 flower \
122 tc filter add block 22 protocol ip pref 1 handle 101 flower \
129 tc filter add block 22 protocol ip pref 1 handle 101 flower \
[all …]
/Linux-v5.15/tools/testing/selftests/net/forwarding/
Dtc_flower.sh44 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
46 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
58 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
59 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
70 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
72 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
84 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
85 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
94 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
96 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
[all …]
/Linux-v5.15/drivers/media/pci/cx18/
Dcx23418.h21 OUT[0] - Task handle. This handle is passed along with commands to
27 IN[0] - Task handle. Hanlde of the task to destroy
65 IN[0] - Task handle. Handle of the task
83 IN[0] - Task handle. Handle of the task to start
88 IN[0] - Task handle. Handle of the task to stop
94 IN[0] - Task handle. Handle of the task to pause
99 IN[0] - Task handle. Handle of the task to resume
115 IN[0] - Task handle. Handle of the task to start
121 IN[0] - task handle. Handle of the task to start
127 IN[0] - task handle
[all …]
/Linux-v5.15/drivers/misc/vmw_vmci/
Dvmci_resource.c30 static unsigned int vmci_resource_hash(struct vmci_handle handle) in vmci_resource_hash() argument
32 return hash_32(handle.resource, VMCI_RESOURCE_HASH_BITS); in vmci_resource_hash()
36 * Gets a resource (if one exists) matching given handle from the hash table.
38 static struct vmci_resource *vmci_resource_lookup(struct vmci_handle handle, in vmci_resource_lookup() argument
42 unsigned int idx = vmci_resource_hash(handle); in vmci_resource_lookup()
47 u32 cid = r->handle.context; in vmci_resource_lookup()
48 u32 rid = r->handle.resource; in vmci_resource_lookup()
51 rid == handle.resource && in vmci_resource_lookup()
52 (cid == handle.context || cid == VMCI_INVALID_ID || in vmci_resource_lookup()
53 handle.context == VMCI_INVALID_ID)) { in vmci_resource_lookup()
[all …]
Dvmci_doorbell.c30 * DoorbellEntry describes the a doorbell notification handle allocated by the
80 * with a given doorbell handle. For guest endpoints, the
83 * handle. Hypervisor endpoints are not yet supported.
85 int vmci_dbell_get_priv_flags(struct vmci_handle handle, u32 *priv_flags) in vmci_dbell_get_priv_flags() argument
87 if (priv_flags == NULL || handle.context == VMCI_INVALID_ID) in vmci_dbell_get_priv_flags()
90 if (handle.context == VMCI_HOST_CONTEXT_ID) { in vmci_dbell_get_priv_flags()
94 resource = vmci_resource_by_handle(handle, in vmci_dbell_get_priv_flags()
102 } else if (handle.context == VMCI_HYPERVISOR_CONTEXT_ID) { in vmci_dbell_get_priv_flags()
109 *priv_flags = vmci_context_get_priv_flags(handle.context); in vmci_dbell_get_priv_flags()
225 * Creates a link between the given doorbell handle and the given
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dpost_act.c83 struct mlx5e_post_act_handle *handle = NULL; in mlx5e_tc_post_act_add() local
88 handle = kzalloc(sizeof(*handle), GFP_KERNEL); in mlx5e_tc_post_act_add()
91 if (!handle || !spec || !post_attr) { in mlx5e_tc_post_act_add()
94 kfree(handle); in mlx5e_tc_post_act_add()
106 handle->ns_type = post_act->ns_type; in mlx5e_tc_post_act_add()
108 if (handle->ns_type == MLX5_FLOW_NAMESPACE_FDB) in mlx5e_tc_post_act_add()
111 err = xa_alloc(&post_act->ids, &handle->id, post_attr, in mlx5e_tc_post_act_add()
120 handle->id, MLX5_POST_ACTION_MASK); in mlx5e_tc_post_act_add()
122 handle->rule = mlx5_tc_rule_insert(post_act->priv, spec, post_attr); in mlx5e_tc_post_act_add()
123 if (IS_ERR(handle->rule)) { in mlx5e_tc_post_act_add()
[all …]
/Linux-v5.15/include/linux/
Dpsp-sev.h174 * @handle: handle of the VM to decommission
177 u32 handle; /* In */ member
183 * @handle: handle of the VM to activate
187 u32 handle; /* In */ member
194 * @handle: handle of the VM to deactivate
197 u32 handle; /* In */ member
203 * @handle: handle of the VM to retrieve status
209 u32 handle; /* In */ member
218 * @handle: handle assigned to the VM
226 u32 handle; /* In/Out */ member
[all …]
/Linux-v5.15/drivers/staging/media/atomisp/pci/runtime/isys/src/
Dibuf_ctrl_rmgr.c27 ibuf_handle_t *handle = NULL; in getHandle() local
30 handle = &ibuf_rsrc.handles[index]; in getHandle()
31 return handle; in getHandle()
53 ibuf_handle_t *handle = NULL; in ia_css_isys_ibuf_rmgr_acquire() local
61 /* Check if there is an available un-used handle with the size in ia_css_isys_ibuf_rmgr_acquire()
66 handle = getHandle(i); in ia_css_isys_ibuf_rmgr_acquire()
67 if (!handle->active) { in ia_css_isys_ibuf_rmgr_acquire()
68 if (handle->size >= aligned_size) { in ia_css_isys_ibuf_rmgr_acquire()
69 handle->active = true; in ia_css_isys_ibuf_rmgr_acquire()
80 * request. Allocate a new handle with the requested size. in ia_css_isys_ibuf_rmgr_acquire()
[all …]
/Linux-v5.15/drivers/media/usb/uvc/
Duvc_v4l2.c510 static int uvc_acquire_privileges(struct uvc_fh *handle) in uvc_acquire_privileges() argument
512 /* Always succeed if the handle is already privileged. */ in uvc_acquire_privileges()
513 if (handle->state == UVC_HANDLE_ACTIVE) in uvc_acquire_privileges()
516 /* Check if the device already has a privileged handle. */ in uvc_acquire_privileges()
517 if (atomic_inc_return(&handle->stream->active) != 1) { in uvc_acquire_privileges()
518 atomic_dec(&handle->stream->active); in uvc_acquire_privileges()
522 handle->state = UVC_HANDLE_ACTIVE; in uvc_acquire_privileges()
526 static void uvc_dismiss_privileges(struct uvc_fh *handle) in uvc_dismiss_privileges() argument
528 if (handle->state == UVC_HANDLE_ACTIVE) in uvc_dismiss_privileges()
529 atomic_dec(&handle->stream->active); in uvc_dismiss_privileges()
[all …]

12345678910>>...232