| /drivers/crypto/intel/qat/qat_common/ |
| A D | qat_hal.c | 36 #define AE(handle, ae) ((handle)->hal_handle->aes[ae]) argument 835 handle = kzalloc(sizeof(*handle), GFP_KERNEL); in qat_hal_init() 836 if (!handle) in qat_hal_init() 839 handle->hal_handle = kzalloc(sizeof(*handle->hal_handle), GFP_KERNEL); in qat_hal_init() 845 handle->chip_info = kzalloc(sizeof(*handle->chip_info), GFP_KERNEL); in qat_hal_init() 846 if (!handle->chip_info) { in qat_hal_init() 875 kfree(handle->chip_info); in qat_hal_init() 879 kfree(handle); in qat_hal_init() 885 if (!handle) in qat_hal_deinit() 887 kfree(handle->chip_info); in qat_hal_deinit() [all …]
|
| A D | qat_uclo.c | 1021 if (qat_uclo_map_ae(handle, handle->hal_handle->ae_max_num)) { in qat_uclo_parse_uof_obj() 1165 kfree(handle->sobj_handle); in qat_uclo_del_suof() 1166 handle->sobj_handle = NULL; in qat_uclo_del_suof() 1500 ICP_QAT_CSS_FWSK_EXPONENT_LEN(handle), ICP_QAT_CSS_SIGNATURE_LEN(handle)); in qat_uclo_build_auth_desc_RSA() 1736 qat_uclo_del_suof(handle); in qat_uclo_map_suof_obj() 1796 handle->obj_handle = NULL; in qat_uclo_map_uof_obj() 2077 if (handle->mobj_handle) in qat_uclo_del_obj() 2078 qat_uclo_del_mof(handle); in qat_uclo_del_obj() 2079 if (handle->sobj_handle) in qat_uclo_del_obj() 2094 handle->obj_handle = NULL; in qat_uclo_del_obj() [all …]
|
| A D | icp_qat_hal.h | 125 #define SET_CAP_CSR(handle, csr, val) \ argument 127 #define GET_CAP_CSR(handle, csr) \ argument 129 #define AE_CSR(handle, ae) \ argument 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 135 #define AE_XFER(handle, ae) \ argument 137 #define AE_XFER_ADDR(handle, ae, reg) (AE_XFER(handle, ae) + \ argument 139 #define SET_AE_XFER(handle, ae, reg, val) \ argument [all …]
|
| /drivers/staging/media/atomisp/pci/runtime/rmgr/src/ |
| A D | rmgr_vbuf.c | 65 if ((!handle) || (!*handle)) { in ia_css_rmgr_refcount_retain_vbuf() 71 h = *handle; in ia_css_rmgr_refcount_retain_vbuf() 72 *handle = NULL; in ia_css_rmgr_refcount_retain_vbuf() 82 if (!*handle) { in ia_css_rmgr_refcount_retain_vbuf() 100 if ((!handle) || ((*handle) == NULL) || (((*handle)->count) == 0)) { in ia_css_rmgr_refcount_release_vbuf() 110 *handle = NULL; in ia_css_rmgr_refcount_release_vbuf() 197 assert(handle); in rmgr_push_handle() 224 assert(handle); in rmgr_pop_handle() 248 if ((!pool) || (!handle) || (!*handle)) { in ia_css_rmgr_acq_vbuf() 304 if ((!pool) || (!handle) || (!*handle)) { in ia_css_rmgr_rel_vbuf() [all …]
|
| /drivers/net/ethernet/hisilicon/hns/ |
| A D | hns_ae_adapt.c | 186 int q_num = handle->q_num; in hns_ae_ring_enable_all() 316 q = handle->qs[i]; in hns_ae_set_mtu() 363 hns_rcb_wait_fbd_clean(handle->qs, handle->q_num, RCB_INT_FLAG_TX); in hns_ae_stop() 374 hns_rcb_wait_fbd_clean(handle->qs, handle->q_num, RCB_INT_FLAG_RX); in hns_ae_stop() 595 assert(handle); in hns_ae_get_coalesce_range() 640 queue = handle->qs[idx]; in hns_ae_update_stats() 709 if (!handle || !data) { in hns_ae_get_stats() 743 assert(handle); in hns_ae_get_strings() 766 assert(handle); in hns_ae_get_sset_count() 810 assert(handle); in hns_ae_update_led_status() [all …]
|
| A D | hnae.h | 358 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); 473 int (*get_status)(struct hnae_handle *handle); 474 int (*get_info)(struct hnae_handle *handle, 480 int (*set_loopback)(struct hnae_handle *handle, 503 int (*add_uc_addr)(struct hnae_handle *handle, 505 int (*rm_uc_addr)(struct hnae_handle *handle, [all …]
|
| /drivers/net/ethernet/hisilicon/hns3/ |
| A D | hnae3.h | 202 struct hnae3_handle *handle; member 441 struct hnae3_handle *handle; member 615 int (*start)(struct hnae3_handle *handle); 616 void (*stop)(struct hnae3_handle *handle); 670 int (*do_ioctl)(struct hnae3_handle *handle, 674 int (*rm_uc_addr)(struct hnae3_handle *handle, 679 int (*rm_mc_addr)(struct hnae3_handle *handle, 740 int (*set_led_id)(struct hnae3_handle *handle, 800 void (*get_wol)(struct hnae3_handle *handle, 802 int (*set_wol)(struct hnae3_handle *handle, [all …]
|
| /drivers/net/ethernet/qualcomm/ |
| A D | qca_7k_common.c | 73 handle->state--; in qcafrm_fsm_decode() 77 handle->state = handle->init; in qcafrm_fsm_decode() 82 handle->state--; in qcafrm_fsm_decode() 91 handle->state = handle->init; in qcafrm_fsm_decode() 93 handle->state--; in qcafrm_fsm_decode() 103 handle->offset = handle->offset | (recv_byte << 8); in qcafrm_fsm_decode() 113 handle->state = handle->init; in qcafrm_fsm_decode() 124 handle->state--; in qcafrm_fsm_decode() 129 handle->state = handle->init; in qcafrm_fsm_decode() 137 handle->state = handle->init; in qcafrm_fsm_decode() [all …]
|
| /drivers/gpu/drm/amd/pm/powerplay/ |
| A D | amd_powerplay.c | 313 struct pp_hwmgr *hwmgr = handle; in pp_dpm_load_fw() 333 struct pp_hwmgr *hwmgr = handle; in pp_set_clockgating_by_smu() 373 struct pp_hwmgr *hwmgr = handle; in pp_dpm_force_performance_level() 389 void *handle) in pp_dpm_get_performance_level() argument 391 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_performance_level() 401 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_sclk() 415 struct pp_hwmgr *hwmgr = handle; in pp_dpm_get_mclk() 429 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_vce() 443 struct pp_hwmgr *hwmgr = handle; in pp_dpm_powergate_uvd() 458 struct pp_hwmgr *hwmgr = handle; in pp_dpm_dispatch_tasks() [all …]
|
| /drivers/pci/hotplug/ |
| A D | acpi_pcihp.c | 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() 114 if (handle) in acpi_get_hp_hw_control_from_firmware() 119 while (handle) { in acpi_get_hp_hw_control_from_firmware() 123 status = acpi_run_oshp(handle); in acpi_get_hp_hw_control_from_firmware() 126 if (acpi_is_root_bridge(handle)) in acpi_get_hp_hw_control_from_firmware() 128 chandle = handle; in acpi_get_hp_hw_control_from_firmware() 177 return pcihp_is_ejectable(handle); in acpi_pci_check_ejectable() 185 if (pcihp_is_ejectable(handle)) { in check_hotplug() [all …]
|
| /drivers/acpi/ |
| A D | scan.c | 202 acpi_handle handle = device->handle; in acpi_scan_try_to_offline() local 321 acpi_handle handle = device->handle; in acpi_scan_hot_remove() local 708 acpi_handle handle = adev->handle; in acpi_tie_acpi_dev() local 711 if (!handle) in acpi_tie_acpi_dev() 874 if (!handle) in acpi_find_parent_acpi_dev() 880 status = acpi_get_parent(handle, &handle); in acpi_find_parent_acpi_dev() 917 acpi_handle handle = dev->handle; in acpi_bus_extract_wakeup_device_power_package() local 1255 acpi_handle handle = adev->handle; in is_ejectable_bay() local 1385 tmp == handle) in acpi_object_is_system_bus() 1388 tmp == handle) in acpi_object_is_system_bus() [all …]
|
| A D | pci_link.c | 88 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() 157 acpi_handle handle = link->device->handle; in acpi_pci_link_get_possible() local 230 acpi_handle handle = link->device->handle; in acpi_pci_link_get_current() local 284 acpi_handle handle = link->device->handle; in acpi_pci_link_set() local 530 acpi_handle handle = link->device->handle; in acpi_pci_link_allocate() local 578 acpi_handle_err(handle, in acpi_pci_link_allocate() 585 acpi_handle_err(handle, in acpi_pci_link_allocate() [all …]
|
| /drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
| A D | post_act.c | 96 handle->rule = mlx5e_tc_rule_offload(post_act->priv, spec, handle->attr); in mlx5e_tc_post_act_offload() 97 if (IS_ERR(handle->rule)) { in mlx5e_tc_post_act_offload() 120 handle = kzalloc(sizeof(*handle), GFP_KERNEL); in mlx5e_tc_post_act_add() 121 if (!handle) in mlx5e_tc_post_act_add() 142 handle->attr = post_attr; in mlx5e_tc_post_act_add() 144 return handle; in mlx5e_tc_post_act_add() 147 kfree(handle); in mlx5e_tc_post_act_add() 155 mlx5e_tc_rule_unoffload(post_act->priv, handle->rule, handle->attr); in mlx5e_tc_post_act_unoffload() 156 handle->rule = NULL; in mlx5e_tc_post_act_unoffload() 165 kfree(handle); in mlx5e_tc_post_act_del() [all …]
|
| A D | act_stats.c | 39 handle = kvzalloc(sizeof(*handle), GFP_KERNEL); in mlx5e_tc_act_stats_create() 40 if (!handle) 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() 56 rhashtable_destroy(&handle->ht); in mlx5e_tc_act_stats_free() 57 kvfree(handle); in mlx5e_tc_act_stats_free() 66 struct rhashtable *ht = &handle->ht; in mlx5e_tc_act_stats_add() 117 spin_lock(&handle->ht_lock); in mlx5e_tc_act_stats_del_flow() 126 spin_unlock(&handle->ht_lock); in mlx5e_tc_act_stats_del_flow() [all …]
|
| /drivers/firmware/ |
| A D | ti_sci.c | 454 struct ti_sci_handle *handle = &info->handle; in ti_sci_cmd_get_revision() local 523 if (!handle) in ti_sci_set_device_state() 581 if (!handle) in ti_sci_get_device_state() 886 if (!handle) in ti_sci_cmd_set_device_resets() 961 if (!handle) in ti_sci_set_clock_state() 1026 if (!handle) in ti_sci_cmd_get_clock_state() 1260 if (!handle) in ti_sci_cmd_clk_set_parent() 1553 if (!handle) in ti_sci_cmd_clk_set_freq() 3264 handle = &info->handle; in ti_sci_get_handle() 3385 handle = &info->handle; in ti_sci_get_by_phandle() [all …]
|
| /drivers/misc/vmw_vmci/ |
| A D | vmci_resource.c | 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() 81 struct vmci_handle handle; in vmci_resource_find_id() local 101 struct vmci_handle handle) in vmci_resource_add() argument 109 if (handle.resource == VMCI_INVALID_ID) { in vmci_resource_add() 110 handle.resource = vmci_resource_find_id(handle.context, in vmci_resource_add() 121 resource->handle = handle; in vmci_resource_add() 139 struct vmci_handle handle = resource->handle; in vmci_resource_remove() local 147 if (vmci_handle_is_equal(r->handle, resource->handle) && in vmci_resource_remove() [all …]
|
| A D | vmci_doorbell.c | 237 link_msg.handle = handle; in dbell_link() 255 unlink_msg.handle = handle; in dbell_unlink() 282 handle.context, handle.resource); in vmci_dbell_host_context_notify() 290 handle.context, handle.resource); in vmci_dbell_host_context_notify() 440 handle->context, handle->resource); in vmci_doorbell_create() 445 new_handle = *handle; in vmci_doorbell_create() 476 *handle = new_handle; in vmci_doorbell_create() 501 if (vmci_handle_is_invalid(handle)) in vmci_doorbell_destroy() 508 handle.context, handle.resource); in vmci_doorbell_destroy() 519 result = dbell_unlink(handle); in vmci_doorbell_destroy() [all …]
|
| /drivers/hwtracing/coresight/ |
| A D | coresight-trbe.c | 431 trbe_pad_buf(handle, delta); in __trbe_normal_offset() 444 if (!handle->size) in __trbe_normal_offset() 448 tail = PERF_IDX2OFF(handle->head + handle->size, buf); in __trbe_normal_offset() 512 if (handle->wakeup < (handle->head + handle->size) && head <= wakeup) in __trbe_normal_offset() 546 trbe_pad_buf(handle, handle->size); in __trbe_normal_offset() 867 handle->head += size; in arm_trbe_update_buffer() 1005 *this_cpu_ptr(buf->cpudata->drvdata->handle) = handle; in __arm_trbe_enable() 1074 handle->head += size; in trbe_handle_overflow() 1155 if (WARN_ON_ONCE(!handle) || !perf_get_aux(handle)) in arm_trbe_irq_handler() 1158 if (!is_perf_trbe(handle)) in arm_trbe_irq_handler() [all …]
|
| /drivers/acpi/riscv/ |
| A D | irq.c | 14 acpi_handle handle; member 26 acpi_handle handle; member 64 ext_intc_element->handle = handle; in riscv_acpi_update_gsi_handle() 138 if (!acpi_has_method(handle, "_GSB")) { in riscv_acpi_create_gsi_map() 197 return ext_intc_element->handle; in riscv_acpi_get_gsi_handle() 247 *gsi_handle = ctx.handle; in riscv_acpi_irq_get_dep() 323 count += acpi_scan_add_dep(handle, &dep_devices); in riscv_acpi_add_irq_dep() 329 u32 arch_acpi_add_auto_dep(acpi_handle handle) in arch_acpi_add_auto_dep() argument 331 if (acpi_has_method(handle, "_PRT")) in arch_acpi_add_auto_dep() 332 return riscv_acpi_add_prt_dep(handle); in arch_acpi_add_auto_dep() [all …]
|
| /drivers/staging/media/atomisp/pci/runtime/isys/src/ |
| A D | ibuf_ctrl_rmgr.c | 18 ibuf_handle_t *handle = NULL; in getHandle() local 22 return handle; in getHandle() 44 ibuf_handle_t *handle = NULL; in ia_css_isys_ibuf_rmgr_acquire() local 57 handle = getHandle(i); in ia_css_isys_ibuf_rmgr_acquire() 58 if (!handle->active) { in ia_css_isys_ibuf_rmgr_acquire() 60 handle->active = true; in ia_css_isys_ibuf_rmgr_acquire() 78 handle->active = true; in ia_css_isys_ibuf_rmgr_acquire() 101 ibuf_handle_t *handle = NULL; in ia_css_isys_ibuf_rmgr_release() local 106 handle = getHandle(i); in ia_css_isys_ibuf_rmgr_release() 107 if (handle->active && handle->start_addr == *start_addr) { in ia_css_isys_ibuf_rmgr_release() [all …]
|
| /drivers/gpu/drm/amd/amdgpu/ |
| A D | amdgpu_aca.c | 216 return bank_ops->aca_bank_is_valid(handle, bank, type, handle->data); in aca_bank_is_valid() 318 handle->data); in aca_bank_parser() 582 if (!handle->mask || !list_empty(&handle->node)) in aca_handle_is_valid() 648 memset(handle, 0, sizeof(*handle)); in add_aca_handle() 650 handle->adev = adev; in add_aca_handle() 651 handle->mgr = mgr; in add_aca_handle() 652 handle->name = name; in add_aca_handle() 656 handle->data = data; in add_aca_handle() 673 return amdgpu_ras_aca_sysfs_read(dev, attr, handle, buf, handle->data); in aca_sysfs_read() 680 snprintf(handle->attr_name, sizeof(handle->attr_name) - 1, "aca_%s", handle->name); in add_aca_sysfs() [all …]
|
| /drivers/sh/intc/ |
| A D | chip.c | 28 addr = INTC_REG(d, _INTC_ADDR_E(handle), cpu); in _intc_enable() 29 intc_enable_fns[_INTC_MODE(handle)](addr, handle, intc_reg_fns\ in _intc_enable() 30 [_INTC_FN(handle)], irq); in _intc_enable() 57 intc_disable_fns[_INTC_MODE(handle)](addr, handle,intc_reg_fns\ in intc_disable() 58 [_INTC_FN(handle)], irq); in intc_disable() 91 if (handle) { in intc_mask_ack() 97 switch (_INTC_FN(handle)) { in intc_mask_ack() 124 key.handle = 0; in intc_find_irq() 150 if (_INTC_FN(ihp->handle) != REG_FN_ERR) in intc_set_priority() 151 _intc_enable(data, ihp->handle); in intc_set_priority() [all …]
|
| /drivers/gpu/drm/amd/include/ |
| A D | kgd_pp_interface.h | 400 int (*set_power_state)(void *handle); 404 bool (*vblank_too_short)(void *handle); 406 int (*check_state_equal)(void *handle, 419 int (*get_sclk_od)(void *handle); 421 int (*get_mclk_od)(void *handle); 440 int (*load_firmware)(void *handle); 460 u32 (*get_sclk)(void *handle, bool low); 461 u32 (*get_mclk)(void *handle, bool low); 466 int (*get_current_clocks)(void *handle, 468 int (*get_clock_by_type)(void *handle, [all …]
|
| /drivers/input/ |
| A D | apm-power.c | 52 struct input_handle *handle; in apmpower_connect() local 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() 67 kfree(handle); in apmpower_connect() 74 input_unregister_handle(handle); in apmpower_connect() 75 kfree(handle); in apmpower_connect() 84 input_close_device(handle); in apmpower_disconnect() 85 input_unregister_handle(handle); in apmpower_disconnect() [all …]
|
| /drivers/perf/ |
| A D | arm_spe_pmu.c | 455 if (!handle->size) in __arm_spe_pmu_next_off() 459 tail = PERF_IDX2OFF(handle->head + handle->size, buf); in __arm_spe_pmu_next_off() 480 if (handle->wakeup < (handle->head + handle->size) && head <= wakeup) in __arm_spe_pmu_next_off() 486 arm_spe_pmu_pad_buf(handle, handle->size); in __arm_spe_pmu_next_off() 558 handle->head = offset; in arm_spe_perf_aux_output_end() 654 if (!perf_get_aux(handle)) in arm_spe_pmu_irq_handler() 782 struct perf_output_handle *handle = this_cpu_ptr(spe_pmu->handle); in arm_spe_pmu_start() local 820 struct perf_output_handle *handle = this_cpu_ptr(spe_pmu->handle); in arm_spe_pmu_stop() local 1187 spe_pmu->handle); in arm_spe_pmu_dev_init() 1264 spe_pmu->handle = alloc_percpu(typeof(*spe_pmu->handle)); in arm_spe_pmu_device_probe() [all …]
|