Home
last modified time | relevance | path

Searched refs:handle (Results 26 – 50 of 3861) sorted by relevance

12345678910>>...155

/openbmc/linux/drivers/hwtracing/coresight/
H A Dcoresight-trbe.c139 struct perf_output_handle * __percpu *handle; member
262 static void trbe_report_wrap_event(struct perf_output_handle *handle) in trbe_report_wrap_event() argument
278 perf_aux_output_flag(handle, PERF_AUX_FLAG_COLLISION); in trbe_report_wrap_event()
281 static void trbe_stop_and_truncate_event(struct perf_output_handle *handle) in trbe_stop_and_truncate_event() argument
283 struct trbe_buf *buf = etm_perf_sink_config(handle); in trbe_stop_and_truncate_event()
293 perf_aux_output_flag(handle, PERF_AUX_FLAG_TRUNCATED); in trbe_stop_and_truncate_event()
294 perf_aux_output_end(handle, 0); in trbe_stop_and_truncate_event()
295 *this_cpu_ptr(buf->cpudata->drvdata->handle) = NULL; in trbe_stop_and_truncate_event()
346 static void trbe_pad_buf(struct perf_output_handle *handle, int len) in trbe_pad_buf() argument
348 struct trbe_buf *buf = etm_perf_sink_config(handle); in trbe_pad_buf()
[all …]
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dicp_qat_hal.h125 #define SET_CAP_CSR(handle, csr, val) \ argument
126 ADF_CSR_WR((handle)->hal_cap_g_ctl_csr_addr_v, csr, val)
127 #define GET_CAP_CSR(handle, csr) \ argument
128 ADF_CSR_RD((handle)->hal_cap_g_ctl_csr_addr_v, csr)
129 #define AE_CSR(handle, ae) \ argument
130 ((char __iomem *)(handle)->hal_cap_ae_local_csr_addr_v + ((ae) << 12))
131 #define AE_CSR_ADDR(handle, ae, csr) (AE_CSR(handle, ae) + (0x3ff & (csr))) argument
132 #define SET_AE_CSR(handle, ae, csr, val) \ argument
133 ADF_CSR_WR(AE_CSR_ADDR(handle, ae, csr), 0, val)
134 #define GET_AE_CSR(handle, ae, csr) ADF_CSR_RD(AE_CSR_ADDR(handle, ae, csr), 0) argument
[all …]
/openbmc/linux/drivers/gpu/drm/amd/include/
H A Damd_shared.h290 int (*early_init)(void *handle);
291 int (*late_init)(void *handle);
292 int (*sw_init)(void *handle);
293 int (*sw_fini)(void *handle);
294 int (*early_fini)(void *handle);
295 int (*hw_init)(void *handle);
296 int (*hw_fini)(void *handle);
297 void (*late_fini)(void *handle);
298 int (*prepare_suspend)(void *handle);
299 int (*suspend)(void *handle);
[all …]
/openbmc/linux/fs/
H A Dfhandle.c24 struct file_handle *handle = NULL; in do_sys_name_to_handle() local
43 handle = kzalloc(struct_size(handle, f_handle, f_handle.handle_bytes), in do_sys_name_to_handle()
45 if (!handle) in do_sys_name_to_handle()
53 (struct fid *)handle->f_handle, in do_sys_name_to_handle()
55 handle->handle_type = retval; in do_sys_name_to_handle()
58 handle->handle_bytes = handle_bytes; in do_sys_name_to_handle()
59 if ((handle->handle_bytes > f_handle.handle_bytes) || in do_sys_name_to_handle()
77 copy_to_user(ufh, handle, in do_sys_name_to_handle()
78 struct_size(handle, f_handle, handle_bytes))) in do_sys_name_to_handle()
80 kfree(handle); in do_sys_name_to_handle()
[all …]
/openbmc/linux/drivers/acpi/
H A Dscan.c134 static acpi_status acpi_bus_offline(acpi_handle handle, u32 lvl, void *data, in acpi_bus_offline() argument
137 struct acpi_device *device = acpi_fetch_acpi_dev(handle); in acpi_bus_offline()
179 static acpi_status acpi_bus_online(acpi_handle handle, u32 lvl, void *data, in acpi_bus_online() argument
182 struct acpi_device *device = acpi_fetch_acpi_dev(handle); in acpi_bus_online()
203 acpi_handle handle = device->handle; in acpi_scan_try_to_offline() local
216 status = acpi_walk_namespace(ACPI_TYPE_ANY, handle, ACPI_UINT32_MAX, in acpi_scan_try_to_offline()
221 acpi_walk_namespace(ACPI_TYPE_ANY, handle, ACPI_UINT32_MAX, in acpi_scan_try_to_offline()
225 acpi_bus_offline(handle, 0, (void *)false, (void **)&errdev); in acpi_scan_try_to_offline()
228 acpi_walk_namespace(ACPI_TYPE_ANY, handle, ACPI_UINT32_MAX, in acpi_scan_try_to_offline()
232 acpi_bus_offline(handle, 0, (void *)true, in acpi_scan_try_to_offline()
[all …]
H A Dpci_link.c88 acpi_handle handle = link->device->handle; in acpi_pci_link_check_possible() local
99 acpi_handle_debug(handle, in acpi_pci_link_check_possible()
107 acpi_handle_debug(handle, in acpi_pci_link_check_possible()
125 acpi_handle_debug(handle, in acpi_pci_link_check_possible()
133 acpi_handle_debug(handle, in acpi_pci_link_check_possible()
147 acpi_handle_debug(handle, "_PRS resource type 0x%x is not IRQ\n", in acpi_pci_link_check_possible()
157 acpi_handle handle = link->device->handle; in acpi_pci_link_get_possible() local
160 status = acpi_walk_resources(handle, METHOD_NAME__PRS, in acpi_pci_link_get_possible()
163 acpi_handle_debug(handle, "_PRS not present or invalid"); in acpi_pci_link_get_possible()
167 acpi_handle_debug(handle, "Found %d possible IRQs\n", in acpi_pci_link_get_possible()
[all …]
H A Dutils.c225 (void *)element->reference.handle; in acpi_extract_package()
247 acpi_evaluate_integer(acpi_handle handle, in acpi_evaluate_integer() argument
260 status = acpi_evaluate_object(handle, pathname, arguments, &buffer); in acpi_evaluate_integer()
262 acpi_util_eval_error(handle, pathname, status); in acpi_evaluate_integer()
267 acpi_util_eval_error(handle, pathname, AE_BAD_DATA); in acpi_evaluate_integer()
273 acpi_handle_debug(handle, "Return value [%llu]\n", *data); in acpi_evaluate_integer()
280 int acpi_get_local_address(acpi_handle handle, u32 *addr) in acpi_get_local_address() argument
285 status = acpi_evaluate_integer(handle, METHOD_NAME__ADR, NULL, &adr); in acpi_get_local_address()
296 const char *acpi_get_subsystem_id(acpi_handle handle) in acpi_get_subsystem_id() argument
304 status = acpi_evaluate_object(handle, METHOD_NAME__SUB, NULL, &buffer); in acpi_get_subsystem_id()
[all …]
H A Dioapic.c31 acpi_handle handle; member
68 static bool acpi_is_ioapic(acpi_handle handle, char **type) in acpi_is_ioapic() argument
75 if (!acpi_has_method(handle, "_GSB")) in acpi_is_ioapic()
78 status = acpi_get_object_info(handle, &info); in acpi_is_ioapic()
97 static acpi_status handle_ioapic_add(acpi_handle handle, u32 lvl, in handle_ioapic_add() argument
107 if (!acpi_is_ioapic(handle, &type)) in handle_ioapic_add()
112 if (ioapic->handle == handle) { in handle_ioapic_add()
117 status = acpi_evaluate_integer(handle, "_GSB", NULL, &gsi_base); in handle_ioapic_add()
119 acpi_handle_warn(handle, "failed to evaluate _GSB method\n"); in handle_ioapic_add()
129 ioapic->handle = handle; in handle_ioapic_add()
[all …]
/openbmc/linux/drivers/input/
H A Dapm-power.c31 static void apmpower_event(struct input_handle *handle, unsigned int type, in apmpower_event() argument
52 struct input_handle *handle; in apmpower_connect() local
55 handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL); in apmpower_connect()
56 if (!handle) in apmpower_connect()
59 handle->dev = dev; in apmpower_connect()
60 handle->handler = handler; in apmpower_connect()
61 handle->name = "apm-power"; in apmpower_connect()
63 error = input_register_handle(handle); in apmpower_connect()
67 kfree(handle); in apmpower_connect()
71 error = input_open_device(handle); in apmpower_connect()
[all …]
/openbmc/linux/drivers/firmware/
H A Dti_sci.c109 struct ti_sci_handle handle; member
121 #define handle_to_ti_sci_info(h) container_of(h, struct ti_sci_info, handle)
448 struct ti_sci_handle *handle = &info->handle; in ti_sci_cmd_get_revision() local
449 struct ti_sci_version_info *ver = &handle->version; in ti_sci_cmd_get_revision()
505 static int ti_sci_set_device_state(const struct ti_sci_handle *handle, in ti_sci_set_device_state() argument
515 if (IS_ERR(handle)) in ti_sci_set_device_state()
516 return PTR_ERR(handle); in ti_sci_set_device_state()
517 if (!handle) in ti_sci_set_device_state()
520 info = handle_to_ti_sci_info(handle); in ti_sci_set_device_state()
562 static int ti_sci_get_device_state(const struct ti_sci_handle *handle, in ti_sci_get_device_state() argument
[all …]
/openbmc/linux/kernel/power/
H A Dswap.c315 static int mark_swapfiles(struct swap_map_handle *handle, unsigned int flags) in mark_swapfiles() argument
324 swsusp_header->image = handle->first_sector; in mark_swapfiles()
331 swsusp_header->crc32 = handle->crc32; in mark_swapfiles()
412 static void release_swap_writer(struct swap_map_handle *handle) in release_swap_writer() argument
414 if (handle->cur) in release_swap_writer()
415 free_page((unsigned long)handle->cur); in release_swap_writer()
416 handle->cur = NULL; in release_swap_writer()
419 static int get_swap_writer(struct swap_map_handle *handle) in get_swap_writer() argument
429 handle->cur = (struct swap_map_page *)get_zeroed_page(GFP_KERNEL); in get_swap_writer()
430 if (!handle->cur) { in get_swap_writer()
[all …]
/openbmc/linux/tools/testing/selftests/net/forwarding/
H A 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 …]
/openbmc/linux/drivers/misc/vmw_vmci/
H A Dvmci_doorbell.c85 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()
229 static int dbell_link(struct vmci_handle handle, u32 notify_idx) in dbell_link() argument
237 link_msg.handle = handle; in dbell_link()
247 static int dbell_unlink(struct vmci_handle handle) in dbell_unlink() argument
255 unlink_msg.handle = handle; in dbell_unlink()
[all …]
/openbmc/u-boot/examples/api/
H A Dglue.c211 int ub_dev_open(int handle) in ub_dev_open() argument
216 if (handle < 0 || handle >= UB_MAX_DEV) in ub_dev_open()
219 di = &devices[handle]; in ub_dev_open()
227 int ub_dev_close(int handle) in ub_dev_close() argument
231 if (handle < 0 || handle >= UB_MAX_DEV) in ub_dev_close()
234 di = &devices[handle]; in ub_dev_close()
250 static int dev_valid(int handle) in dev_valid() argument
252 if (handle < 0 || handle >= UB_MAX_DEV) in dev_valid()
255 if (devices[handle].state != DEV_STA_OPEN) in dev_valid()
261 static int dev_stor_valid(int handle) in dev_stor_valid() argument
[all …]
/openbmc/qemu/audio/
H A Dalsaaudio.c40 snd_pcm_t *handle; member
49 snd_pcm_t *handle; member
56 snd_pcm_t *handle; member
117 hlp->handle = NULL; in alsa_fini_poll()
135 static int alsa_recover (snd_pcm_t *handle) in alsa_recover() argument
137 int err = snd_pcm_prepare (handle); in alsa_recover()
139 alsa_logerr (err, "Failed to prepare handle %p\n", handle); in alsa_recover()
145 static int alsa_resume (snd_pcm_t *handle) in alsa_resume() argument
147 int err = snd_pcm_resume (handle); in alsa_resume()
149 alsa_logerr (err, "Failed to resume handle %p\n", handle); in alsa_resume()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dact_stats.c36 struct mlx5e_tc_act_stats_handle *handle; in mlx5e_tc_act_stats_create() local
39 handle = kvzalloc(sizeof(*handle), GFP_KERNEL); in mlx5e_tc_act_stats_create()
40 if (!handle) in mlx5e_tc_act_stats_create()
43 err = rhashtable_init(&handle->ht, &act_counters_ht_params); in mlx5e_tc_act_stats_create()
47 spin_lock_init(&handle->ht_lock); in mlx5e_tc_act_stats_create()
48 return handle; in mlx5e_tc_act_stats_create()
50 kvfree(handle); in mlx5e_tc_act_stats_create()
54 void mlx5e_tc_act_stats_free(struct mlx5e_tc_act_stats_handle *handle) in mlx5e_tc_act_stats_free() argument
56 rhashtable_destroy(&handle->ht); in mlx5e_tc_act_stats_free()
57 kvfree(handle); in mlx5e_tc_act_stats_free()
[all …]
/openbmc/linux/tools/testing/selftests/alsa/
H A Dtest-pcmtest-driver.c83 static int setup_handle(snd_pcm_t **handle, snd_pcm_sw_params_t *swparams, in setup_handle() argument
91 err = snd_pcm_open(handle, pcm_name, stream, 0); in setup_handle()
94 snd_pcm_hw_params_any(*handle, hwparams); in setup_handle()
95 snd_pcm_hw_params_set_rate_resample(*handle, hwparams, 0); in setup_handle()
96 snd_pcm_hw_params_set_access(*handle, hwparams, params->access); in setup_handle()
97 snd_pcm_hw_params_set_format(*handle, hwparams, params->format); in setup_handle()
98 snd_pcm_hw_params_set_channels(*handle, hwparams, params->channels); in setup_handle()
99 snd_pcm_hw_params_set_rate_near(*handle, hwparams, &params->rate, 0); in setup_handle()
100 snd_pcm_hw_params_set_period_size_near(*handle, hwparams, &params->period_size, 0); in setup_handle()
101 snd_pcm_hw_params_set_buffer_size_near(*handle, hwparams, &params->buffer_size); in setup_handle()
[all …]
/openbmc/linux/drivers/media/usb/uvc/
H A Duvc_v4l2.c578 static int uvc_acquire_privileges(struct uvc_fh *handle) in uvc_acquire_privileges() argument
581 if (handle->state == UVC_HANDLE_ACTIVE) in uvc_acquire_privileges()
585 if (atomic_inc_return(&handle->stream->active) != 1) { in uvc_acquire_privileges()
586 atomic_dec(&handle->stream->active); in uvc_acquire_privileges()
590 handle->state = UVC_HANDLE_ACTIVE; in uvc_acquire_privileges()
594 static void uvc_dismiss_privileges(struct uvc_fh *handle) in uvc_dismiss_privileges() argument
596 if (handle->state == UVC_HANDLE_ACTIVE) in uvc_dismiss_privileges()
597 atomic_dec(&handle->stream->active); in uvc_dismiss_privileges()
599 handle->state = UVC_HANDLE_PASSIVE; in uvc_dismiss_privileges()
602 static int uvc_has_privileges(struct uvc_fh *handle) in uvc_has_privileges() argument
[all …]
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dtc_restrictions.sh47 tc filter add block 22 protocol ip pref 1 handle 101 flower \
59 tc filter del block 22 protocol ip pref 1 handle 101 flower
64 tc filter add block 22 protocol ip pref 1 handle 101 flower \
73 tc filter add block 22 protocol ip pref 1 handle 101 flower \
77 tc filter del block 22 protocol ip pref 1 handle 101 flower
95 tc filter add block 22 protocol ip pref 1 handle 101 flower \
108 tc filter del block 22 protocol ip pref 1 handle 101 flower
113 tc filter add block 22 protocol ip pref 1 handle 101 flower \
123 tc filter add block 22 protocol ip pref 1 handle 101 flower \
130 tc filter add block 22 protocol ip pref 1 handle 101 flower \
[all …]
/openbmc/linux/drivers/platform/x86/
H A Dideapad-laptop.h44 static inline int eval_int_with_arg(acpi_handle handle, const char *name, unsigned long arg, unsign… in eval_int_with_arg() argument
56 status = acpi_evaluate_integer(handle, (char *)name, &params, &result); in eval_int_with_arg()
66 static inline int eval_vpcr(acpi_handle handle, unsigned long cmd, unsigned long *res) in eval_vpcr() argument
68 return eval_int_with_arg(handle, "VPCR", cmd, res); in eval_vpcr()
71 static inline int eval_vpcw(acpi_handle handle, unsigned long cmd, unsigned long data) in eval_vpcw() argument
84 status = acpi_evaluate_object(handle, "VPCW", &params, NULL); in eval_vpcw()
93 static inline int read_ec_data(acpi_handle handle, unsigned long cmd, unsigned long *data) in read_ec_data() argument
98 err = eval_vpcw(handle, 1, cmd); in read_ec_data()
107 err = eval_vpcr(handle, 1, &val); in read_ec_data()
112 return eval_vpcr(handle, 0, data); in read_ec_data()
[all …]
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/
H A Dhnae.h358 struct hnae_handle *handle; member
465 void (*put_handle)(struct hnae_handle *handle);
468 int (*start)(struct hnae_handle *handle);
469 void (*stop)(struct hnae_handle *handle);
470 void (*reset)(struct hnae_handle *handle);
471 int (*set_opts)(struct hnae_handle *handle, int type, void *opts);
472 int (*get_opts)(struct hnae_handle *handle, int type, void **opts);
473 int (*get_status)(struct hnae_handle *handle);
474 int (*get_info)(struct hnae_handle *handle,
477 void (*adjust_link)(struct hnae_handle *handle, int speed, int duplex);
[all …]
/openbmc/u-boot/lib/efi_selftest/
H A Defi_selftest_hii.c33 static int setup(const efi_handle_t handle, in setup() argument
76 efi_hii_handle_t handle; in test_hii_database_new_package_list() local
82 NULL, &handle); in test_hii_database_new_package_list()
83 if (ret != EFI_SUCCESS || !handle) { in test_hii_database_new_package_list()
90 handle); in test_hii_database_new_package_list()
110 efi_hii_handle_t handle = NULL; in test_hii_database_update_package_list() local
117 NULL, &handle); in test_hii_database_update_package_list()
118 if (ret != EFI_SUCCESS || !handle) { in test_hii_database_update_package_list()
125 handle, in test_hii_database_update_package_list()
127 if (ret != EFI_SUCCESS || !handle) { in test_hii_database_update_package_list()
[all …]
/openbmc/linux/mm/
H A Dzbud.c157 unsigned long handle; in encode_handle() local
165 handle = (unsigned long)zhdr; in encode_handle()
168 handle += ZHDR_SIZE_ALIGNED; in encode_handle()
170 handle += PAGE_SIZE - (zhdr->last_chunks << CHUNK_SHIFT); in encode_handle()
171 return handle; in encode_handle()
175 static struct zbud_header *handle_to_zbud_header(unsigned long handle) in handle_to_zbud_header() argument
177 return (struct zbud_header *)(handle & PAGE_MASK); in handle_to_zbud_header()
247 unsigned long *handle) in zbud_alloc() argument
300 *handle = encode_handle(zhdr, bud); in zbud_alloc()
311 static void zbud_free(struct zbud_pool *pool, unsigned long handle) in zbud_free() argument
[all …]
/openbmc/linux/fs/smb/server/
H A Dtransport_ipc.c62 unsigned int handle; member
244 static void ipc_msg_handle_free(int handle) in ipc_msg_handle_free() argument
246 if (handle >= 0) in ipc_msg_handle_free()
247 ksmbd_release_id(&ipc_ida, handle); in ipc_msg_handle_free()
252 unsigned int handle = *(unsigned int *)payload; in handle_response() local
258 hash_for_each_possible(ipc_msg_table, entry, ipc_table_hlist, handle) { in handle_response()
259 if (handle != entry->handle) in handle_response()
490 static void *ipc_msg_send_request(struct ksmbd_ipc_msg *msg, unsigned int handle) in ipc_msg_send_request() argument
495 if ((int)handle < 0) in ipc_msg_send_request()
503 entry.handle = handle; in ipc_msg_send_request()
[all …]
/openbmc/linux/include/trace/events/
H A Dnbd.h12 TP_PROTO(struct request *req, u64 handle),
14 TP_ARGS(req, handle),
18 __field(u64, handle)
23 __entry->handle = handle;
29 __entry->handle
35 TP_PROTO(struct request *req, u64 handle),
37 TP_ARGS(req, handle)
42 TP_PROTO(struct request *req, u64 handle),
44 TP_ARGS(req, handle)
49 TP_PROTO(struct request *req, u64 handle),
[all …]

12345678910>>...155