/openbmc/linux/drivers/crypto/intel/qat/qat_common/ |
H A D | qat_hal.c | 36 #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 …]
|
H A D | qat_uclo.c | 124 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 …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-kernel/trace-cmd/files/ |
H A D | 0001-Replace-LFS64-interfaces-off64_t-and-lseek64.patch | 33 @@ -106,7 +106,7 @@ const char *tracecmd_get_trace_clock(struct tracecmd_input *handle); 34 const char *tracecmd_get_cpustats(struct tracecmd_input *handle); 35 const char *tracecmd_get_uname(struct tracecmd_input *handle); 36 const char *tracecmd_get_version(struct tracecmd_input *handle); 37 -off64_t tracecmd_get_cpu_file_size(struct tracecmd_input *handle, int cpu); 38 +off_t tracecmd_get_cpu_file_size(struct tracecmd_input *handle, int cpu); 42 @@ -336,7 +336,7 @@ int tracecmd_write_buffer_info(struct tracecmd_output *handle); 44 int tracecmd_write_cpus(struct tracecmd_output *handle, int cpus); 45 int tracecmd_write_cmdlines(struct tracecmd_output *handle); 46 -int tracecmd_prepare_options(struct tracecmd_output *handle, off64_t offset, int whence); [all …]
|
/openbmc/linux/drivers/staging/media/atomisp/pci/runtime/rmgr/src/ |
H A D | rmgr_vbuf.c | 65 * @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 …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_ae_adapt.c | 16 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() 138 static void hns_ae_put_handle(struct hnae_handle *handle) in hns_ae_put_handle() argument 140 struct hnae_vf_cb *vf_cb = hns_ae_get_vf_cb(handle); in hns_ae_put_handle() 143 for (i = 0; i < handle->q_num; i++) in hns_ae_put_handle() 144 hns_ae_get_ring_pair(handle->qs[i])->used_by_vf = 0; in hns_ae_put_handle() 149 static int hns_ae_wait_flow_down(struct hnae_handle *handle) in hns_ae_wait_flow_down() argument 157 for (i = 0; i < handle->q_num; i++) { in hns_ae_wait_flow_down() [all …]
|
/openbmc/linux/fs/ext4/ |
H A D | ext4_jbd2.c | 32 /* 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 …]
|
H A D | ext4_jbd2.h | 68 /* 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 …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | sch_offload.sh | 19 local handle=$1; shift 23 h=$(qdisc_stats_get $h1 "$handle" .handle) 24 [[ $h == '"'$handle'"' ]] 25 check_err $? "Qdisc with handle $handle does not exist" 27 offloaded=$(qdisc_stats_get $h1 "$handle" .offloaded) 29 check_fail $? "Qdisc with handle $handle offloaded, but should not be" 34 local handle=$1; shift 36 if [[ ! -z $handle ]]; then 37 local offloaded=$(qdisc_stats_get $h1 "$handle" .offloaded) 39 check_err $? "Qdisc with handle $handle not offloaded" [all …]
|
H A D | tc_restrictions.sh | 47 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/tools/testing/selftests/tc-testing/tc-tests/filters/ |
H A D | fw.json | 15 "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 …]
|
H A D | matchall.json | 13 …"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 …]
|
H A D | basic.json | 15 …"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 …]
|
H A D | flow.json | 15 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… 17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 1 flow", 18 …"matchPattern": "filter parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys dst … 37 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… 39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 1 flow", 40 …"matchPattern": "filter parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys dst.… 59 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… 61 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 1 flow", 62 …"matchPattern": "filter parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys dst … 81 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… [all …]
|
/openbmc/u-boot/drivers/firmware/ |
H A D | ti_sci.c | 50 * @handle: Instance of TI SCI handle to send to clients. 62 struct ti_sci_handle handle; member 73 #define handle_to_ti_sci_info(h) container_of(h, struct ti_sci_info, handle) 163 dev_err(info->dev, "%s: Unable to handle %zu xfer (max %d)\n", in ti_sci_get_response() 216 * @handle: pointer to TI SCI handle 222 static int ti_sci_cmd_get_revision(struct ti_sci_handle *handle) in ti_sci_cmd_get_revision() argument 231 if (IS_ERR(handle)) in ti_sci_cmd_get_revision() 232 return PTR_ERR(handle); in ti_sci_cmd_get_revision() 233 if (!handle) in ti_sci_cmd_get_revision() 236 info = handle_to_ti_sci_info(handle); in ti_sci_cmd_get_revision() [all …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hnae3.h | 8 * ae handle (handle): 194 struct hnae3_handle *handle; member 195 int tqp_index; /* index in a handle */ 389 int (*init_instance)(struct hnae3_handle *handle); 390 void (*uninit_instance)(struct hnae3_handle *handle, bool reset); 391 void (*link_status_change)(struct hnae3_handle *handle, bool state); 392 int (*reset_notify)(struct hnae3_handle *handle, 394 void (*process_hw_error)(struct hnae3_handle *handle, 420 /* This struct defines the operation on the handle. 439 * Get the carrier state of the back channel of the handle, 1 for ok, 0 for [all …]
|
/openbmc/linux/fs/ |
H A D | fhandle.c | 24 struct file_handle *handle = NULL; in do_sys_name_to_handle() local 28 * the file handle if decodeable file handle was requested. in do_sys_name_to_handle() 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() 48 /* convert handle size to multiple of sizeof(u32) */ in do_sys_name_to_handle() 51 /* we ask for a non connectable maybe decodeable file 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() 56 /* convert handle size to bytes */ in do_sys_name_to_handle() 58 handle->handle_bytes = handle_bytes; in do_sys_name_to_handle() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/ |
H A D | amd_powerplay.c | 78 static int pp_early_init(void *handle) in pp_early_init() argument 81 struct amdgpu_device *adev = handle; in pp_early_init() 134 static int pp_sw_init(void *handle) in pp_sw_init() argument 136 struct amdgpu_device *adev = handle; in pp_sw_init() 151 static int pp_sw_fini(void *handle) in pp_sw_fini() argument 153 struct amdgpu_device *adev = handle; in pp_sw_fini() 163 static int pp_hw_init(void *handle) in pp_hw_init() argument 166 struct amdgpu_device *adev = handle; in pp_hw_init() 177 static int pp_hw_fini(void *handle) in pp_hw_fini() argument 179 struct amdgpu_device *adev = handle; in pp_hw_fini() [all …]
|
/openbmc/linux/drivers/net/ethernet/qualcomm/ |
H A D | qca_7k_common.c | 77 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 …]
|
/openbmc/openbmc/meta-openembedded/meta-gnome/recipes-gnome/gvfs/gvfs/ |
H A D | 0001-nfs-Support-libnfs-6-backport-to-1.56.patch | 93 CopyHandle *handle = private_data; 97 + nfs_read_async (ctx, handle->srcfh, handle->buffer, COPY_BLKSIZE, copy_read_cb, handle); 99 nfs_read_async (ctx, handle->srcfh, COPY_BLKSIZE, copy_read_cb, handle); 102 copy_handle_complete (ctx, handle, FALSE); 108 CopyHandle *handle = private_data; 111 copy_handle_complete (ctx, handle, TRUE); 114 + nfs_write_async (ctx, handle->destfh, handle->buffer, err, copy_write_cb, handle); 116 nfs_write_async (ctx, handle->destfh, err, data, copy_write_cb, handle); 119 copy_handle_complete (ctx, handle, FALSE); 127 CopyHandle *handle = private_data; [all …]
|
/openbmc/linux/drivers/pci/hotplug/ |
H A D | acpi_pcihp.c | 36 * @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 …]
|
/openbmc/linux/drivers/firmware/ |
H A D | ti_sci.c | 92 * @handle: Instance of TI SCI handle to send to clients. 109 struct ti_sci_handle handle; member 121 #define handle_to_ti_sci_info(h) container_of(h, struct ti_sci_info, handle) 254 dev_err(dev, "Unable to handle %zu xfer(max %d)\n", in ti_sci_rx_callback() 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() 498 * @handle: pointer to TI SCI handle 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() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/include/ |
H A D | kgd_pp_interface.h | 314 int (*pre_set_power_state)(void *handle); 315 int (*set_power_state)(void *handle); 316 void (*post_set_power_state)(void *handle); 317 void (*display_configuration_changed)(void *handle); 318 void (*print_power_state)(void *handle, void *ps); 319 bool (*vblank_too_short)(void *handle); 320 void (*enable_bapm)(void *handle, bool enable); 321 int (*check_state_equal)(void *handle, 326 int (*set_fan_control_mode)(void *handle, u32 mode); 327 int (*get_fan_control_mode)(void *handle, u32 *fan_mode); [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A D | post_act.c | 81 struct mlx5e_post_act_handle *handle) in mlx5e_tc_post_act_offload() argument 94 mlx5e_tc_match_to_reg_match(spec, FTEID_TO_REG, handle->id, MLX5_POST_ACTION_MASK); in mlx5e_tc_post_act_offload() 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() 98 err = PTR_ERR(handle->rule); in mlx5e_tc_post_act_offload() 114 struct mlx5e_post_act_handle *handle; in mlx5e_tc_post_act_add() local 120 handle = kzalloc(sizeof(*handle), GFP_KERNEL); in mlx5e_tc_post_act_add() 121 if (!handle) in mlx5e_tc_post_act_add() 132 handle->ns_type = post_act->ns_type; in mlx5e_tc_post_act_add() 134 if (handle->ns_type == MLX5_FLOW_NAMESPACE_FDB) in mlx5e_tc_post_act_add() [all …]
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | tc_flower.sh | 44 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 D | vmci_resource.c | 30 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 …]
|