Home
last modified time | relevance | path

Searched refs:xa_load (Results 1 – 25 of 143) sorted by relevance

123456

/linux/lib/
H A Dtest_xarray.c63 XA_BUG_ON(xa, xa_load(xa, index) != NULL); in xa_erase_index()
153 void *entry = xa_load(xa, j); in check_xa_load()
164 void *entry = xa_load(xa, j); in check_xa_load()
344 XA_BUG_ON(xa, xa_load(xa, 1) != NULL); in check_xa_shrink()
349 XA_BUG_ON(xa, xa_load(xa, 0) != xa_mk_value(0)); in check_xa_shrink()
356 XA_BUG_ON(xa, xa_load(xa, max) != xa_mk_value(0)); in check_xa_shrink()
357 XA_BUG_ON(xa, xa_load(xa, max + 1) != NULL); in check_xa_shrink()
366 XA_BUG_ON(xa, xa_load(xa, max + 1) != NULL); in check_xa_shrink()
379 XA_BUG_ON(xa, xa_load(xa, i - 1) != NULL); in check_insert()
380 XA_BUG_ON(xa, xa_load(xa, i + 1) != NULL); in check_insert()
[all …]
H A Dref_tracker.c388 if (!xa_load(&debugfs_dentries, index) || in ref_tracker_debugfs_show()
432 dentry = xa_load(&debugfs_dentries, (unsigned long)dir); in ref_tracker_dir_debugfs()
465 symlink = xa_load(&debugfs_symlinks, (unsigned long)dir); in ref_tracker_dir_symlink()
466 dentry = xa_load(&debugfs_dentries, (unsigned long)dir); in ref_tracker_dir_symlink()
/linux/drivers/gpu/drm/imagination/
H A Dpvr_free_list.h143 free_list = pvr_free_list_get(xa_load(&pvr_file->free_list_handles, handle)); in pvr_free_list_lookup()
172 free_list = xa_load(&pvr_dev->free_list_ids, id); in pvr_free_list_lookup_id()
H A Dpvr_hwrt.h105 hwrt = xa_load(&pvr_file->hwrt_handles, handle); in pvr_hwrt_dataset_lookup()
/linux/Documentation/translations/zh_CN/core-api/
H A Dxarray.rst63 然后你可以用xa_store()来设置条目,用xa_load()来获取条目。xa_store将用新的条目覆盖任
153 * xa_load()
195 如果你想利用锁来保护你存储在XArray中的数据结构,你可以在调用xa_load()之前调用xa_lock(),然后在
/linux/virt/lib/
H A Dirqbypass.c111 consumer = xa_load(&consumers, index); in irq_bypass_register_producer()
177 producer = xa_load(&producers, index); in irq_bypass_register_consumer()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_eswitch.c183 repr = xa_load(&pf->eswitch.reprs, *repr_id); in ice_eswitch_update_repr()
585 struct ice_repr *repr = xa_load(&pf->eswitch.reprs, vf->repr_id); in ice_eswitch_detach_vf()
603 struct ice_repr *repr = xa_load(&pf->eswitch.reprs, sf->repr_id); in ice_eswitch_detach_sf()
627 repr = xa_load(&eswitch->reprs, le16_to_cpu(desc->src_vsi)); in ice_eswitch_get_target()
H A Dice_eswitch_br.c312 port = xa_load(&bridge->ports, vsi_idx); in ice_esw_br_port_vlan_lookup()
318 vlan = xa_load(&port->vlans, vid); in ice_esw_br_port_vlan_lookup()
742 port = xa_load(&bridge->ports, vsi_idx); in ice_eswitch_br_port_vlan_add()
753 vlan = xa_load(&port->vlans, vid); in ice_eswitch_br_port_vlan_add()
777 port = xa_load(&bridge->ports, vsi_idx); in ice_eswitch_br_port_vlan_del()
781 vlan = xa_load(&port->vlans, vid); in ice_eswitch_br_port_vlan_del()
/linux/drivers/iommu/iommufd/
H A Ddevice.c121 igroup = xa_load(&ictx->groups, id); in iommufd_get_group()
428 attach = xa_load(&igroup->pasid_attach, pasid); in iommufd_group_device_num()
475 return !xa_load(&igroup->pasid_attach, pasid); in iommufd_group_first_attach()
511 attach = xa_load(&idev->igroup->pasid_attach, pasid); in iommufd_device_is_attached()
512 return xa_load(&attach->device_array, idev->obj.id); in iommufd_device_is_attached()
536 attach = xa_load(&igroup->pasid_attach, IOMMU_NO_PASID); in iommufd_hwpt_pasid_compat()
771 attach = xa_load(&igroup->pasid_attach, pasid); in iommufd_hw_pagetable_detach()
818 attach = xa_load(&igroup->pasid_attach, IOMMU_NO_PASID); in iommufd_group_remove_reserved_iova()
835 attach = xa_load(&igroup->pasid_attach, IOMMU_NO_PASID); in iommufd_group_do_replace_reserved_iova()
872 attach = xa_load(&igroup->pasid_attach, pasid); in iommufd_device_do_replace()
/linux/drivers/gpu/drm/tegra/
H A Duapi.c173 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_close()
203 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_map()
284 context = xa_load(&fpriv->contexts, args->context); in tegra_drm_ioctl_channel_unmap()
/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_bond.c52 struct hns_roce_die_info *die_info = xa_load(&roce_bond_xa, bus_num); in hns_roce_get_bond_grp()
281 struct hns_roce_die_info *die_info = xa_load(&roce_bond_xa, bus_num); in alloc_bond_id()
306 struct hns_roce_die_info *die_info = xa_load(&roce_bond_xa, bus_num); in remove_bond_id()
854 if (xa_load(&roce_bond_xa, bus_num)) in hns_roce_alloc_bond_grp()
956 die_info = xa_load(&roce_bond_xa, bus_num); in hns_roce_bond_suspend()
989 die_info = xa_load(&roce_bond_xa, bus_num); in hns_roce_bond_resume()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_domain.c81 recalc_cs_ft = xa_load(&dmn->csum_fts_xa, vport_num); in mlx5dr_domain_get_recalc_cs_ft_addr()
329 vport_caps = xa_load(&caps->vports.vports_caps_xa, vport); in mlx5dr_domain_get_vport_cap()
546 peer = xa_load(&dmn->peer_dmn_xa, peer_vhca_id); in mlx5dr_domain_set_peer()
552 peer = xa_load(&dmn->peer_dmn_xa, peer_vhca_id); in mlx5dr_domain_set_peer()
/linux/drivers/infiniband/hw/cxgb4/
H A Dev.c127 qhp = xa_load(&dev->qps, CQE_QPID(err_cqe)); in c4iw_ev_dispatch()
228 chp = xa_load(&dev->cqs, qid); in c4iw_ev_handler()
/linux/drivers/gpu/drm/xe/
H A Dxe_tlb_inval_job.c212 xe_assert(gt_to_xe(job->q->gt), !xa_load(&job->dep.drm.dependencies, 0)); in xe_tlb_inval_job_alloc_dep()
249 xa_load(&job->dep.drm.dependencies, 0) == in xe_tlb_inval_job_push()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dmapping.c118 mi = xa_load(&ctx->xarray, index); in mapping_remove()
141 mi = xa_load(&ctx->xarray, index); in mapping_find()
/linux/drivers/cxl/core/
H A Dcdat.c154 dent = xa_load(dsmas_xa, dslbis->handle); in cdat_dslbis_handler()
669 perf_ctx = xa_load(usp_xa, index); in cxl_endpoint_gather_bandwidth()
795 us_ctx = xa_load(res_xa, us_index); in DEFINE_FREE()
879 hb_ctx = xa_load(hb_xa, hb_index); in cxl_rp_gather_bandwidth()
928 mw_ctx = xa_load(mw_xa, mw_index); in cxl_hb_gather_bandwidth()
/linux/drivers/base/
H A Dauxiliary_sysfs.c102 struct auxiliary_irq_info *info __free(kfree) = xa_load(&auxdev->sysfs.irqs, irq); in auxiliary_device_sysfs_irq_remove()
/linux/block/
H A Dblk-mq-sched.c462 ctx = xa_load(elv_tbl, q->id); in blk_mq_free_sched_res_batch()
587 ctx = xa_load(elv_tbl, q->id); in blk_mq_alloc_sched_res_batch()
604 ctx = xa_load(elv_tbl, q->id); in blk_mq_alloc_sched_res_batch()
/linux/drivers/accel/amdxdna/
H A Damdxdna_ctx.c395 hwctx = xa_load(&client->hwctx_xa, args->handle); in amdxdna_drm_config_hwctx_ioctl()
437 hwctx = xa_load(&client->hwctx_xa, abo->assigned_hwctx); in amdxdna_hwctx_sync_debug_bo()
636 hwctx = xa_load(&client->hwctx_xa, hwctx_hdl); in amdxdna_cmd_submit()
770 hwctx = xa_load(&client->hwctx_xa, args->hwctx); in amdxdna_drm_wait_cmd_ioctl()
/linux/drivers/gpu/drm/lima/
H A Dlima_ctx.c73 ctx = xa_load(&mgr->handles, id); in lima_ctx_get()
/linux/mm/
H A Dreadahead.c270 struct folio *folio = xa_load(&mapping->i_pages, index + i); in page_cache_ra_unbounded()
806 struct folio *folio = xa_load(&mapping->i_pages, index); in readahead_expand()
835 struct folio *folio = xa_load(&mapping->i_pages, index); in readahead_expand()
/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/
H A Ddev.c179 sf_dev = xa_load(&table->devices, sf_index); in mlx5_sf_dev_state_change_handler()
234 if (!xa_load(&work_ctx->table->devices, work_ctx->sf_index)) in mlx5_sf_dev_add_active_work()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dfs_hws.c387 return xa_load(&fs_ctx->hws_pool.table_dests, dst->dest_attr.ft->id); in mlx5_fs_get_dest_action_ft()
396 return xa_load(&fs_ctx->hws_pool.table_dests, table_num); in mlx5_fs_get_dest_action_table_num()
436 dest = xa_load(dests_xa, idx); in mlx5_fs_get_dest_action_vport()
479 fs_hws_data = xa_load(cache_xa, index); in mlx5_fs_get_cached_hws_data()
530 meter_hws_data = xa_load(meters_xa, exe_aso->base_id); in mlx5_fs_put_action_aso_meter()
565 sampler_hws_data = xa_load(sampler_xa, sampler_id); in mlx5_fs_put_dest_action_sampler()
1235 pr_pool = xa_load(pr_pools, index); in mlx5_fs_get_pr_encap_pool()
/linux/drivers/tty/serial/
H A Dliteuart.c380 uart = (struct liteuart_port *)xa_load(&liteuart_array, co->index); in liteuart_console_write()
397 uart = (struct liteuart_port *)xa_load(&liteuart_array, co->index); in liteuart_console_setup()
/linux/drivers/accel/ivpu/
H A Divpu_job.c362 cmdq = xa_load(&file_priv->cmdq_xa, cmdq_id); in ivpu_cmdq_acquire()
605 struct ivpu_job *job = xa_load(&vdev->submitted_jobs_xa, job_id); in ivpu_job_handle_engine_error()
642 job = xa_load(&vdev->submitted_jobs_xa, job_id); in ivpu_job_signal()
1110 cmdq = xa_load(&file_priv->cmdq_xa, args->cmdq_id); in ivpu_cmdq_destroy_ioctl()
1199 struct ivpu_file_priv *file_priv = xa_load(&vdev->context_xa, ssid); in reset_engine_and_mark_faulty_contexts()

123456