Home
last modified time | relevance | path

Searched refs:srcu_idx (Results 1 – 25 of 44) sorted by relevance

12

/linux/kernel/rcu/
A Dsrcutiny.c36 ssp->srcu_idx = 0; in init_srcu_struct_fields()
88 WARN_ON(ssp->srcu_idx != ssp->srcu_idx_max); in cleanup_srcu_struct()
89 WARN_ON(ssp->srcu_idx & 0x1); in cleanup_srcu_struct()
120 if (ssp->srcu_gp_running || USHORT_CMP_GE(ssp->srcu_idx, READ_ONCE(ssp->srcu_idx_max))) in srcu_drive_gp()
130 idx = (ssp->srcu_idx & 0x2) / 2; in srcu_drive_gp()
131 WRITE_ONCE(ssp->srcu_idx, ssp->srcu_idx + 1); in srcu_drive_gp()
135 WRITE_ONCE(ssp->srcu_idx, ssp->srcu_idx + 1); in srcu_drive_gp()
153 if (USHORT_CMP_LT(ssp->srcu_idx, READ_ONCE(ssp->srcu_idx_max))) in srcu_drive_gp()
216 ret = (READ_ONCE(ssp->srcu_idx) + 3) & ~0x1; in get_state_synchronize_srcu()
243 bool ret = USHORT_CMP_GE(READ_ONCE(ssp->srcu_idx), cookie); in poll_state_synchronize_srcu()
A Dsrcutree.c167 ssp->srcu_idx = 0; in init_srcu_struct_fields()
404 idx = READ_ONCE(ssp->srcu_idx) & 0x1; in __srcu_read_lock()
723 WRITE_ONCE(ssp->srcu_idx, ssp->srcu_idx + 1); in srcu_flip()
1164 return READ_ONCE(ssp->srcu_idx); in srcu_batches_completed()
1209 idx = 1 ^ (ssp->srcu_idx & 1); in srcu_advance_state()
1226 idx = 1 ^ (ssp->srcu_idx & 1); in srcu_advance_state()
1346 idx = ssp->srcu_idx & 0x1; in srcu_torture_stats_print()
/linux/drivers/net/wireless/microchip/wilc1000/
A Dnetdev.c129 int srcu_idx; in wilc_wlan_get_num_conn_ifcs() local
133 srcu_idx = srcu_read_lock(&wilc->srcu); in wilc_wlan_get_num_conn_ifcs()
138 srcu_read_unlock(&wilc->srcu, srcu_idx); in wilc_wlan_get_num_conn_ifcs()
162 int srcu_idx; in wilc_txq_task() local
165 srcu_idx = srcu_read_lock(&wl->srcu); in wilc_txq_task()
642 int srcu_idx; in wilc_set_mac_addr() local
753 int srcu_idx; in wilc_mac_xmit() local
839 int srcu_idx; in wilc_wfi_mgmt_rx() local
870 int srcu_idx, ifc_cnt = 0; in wilc_netdev_cleanup() local
918 int srcu_idx; in wilc_get_available_idx() local
[all …]
A Dcfg80211.c240 int srcu_idx; in set_channel() local
242 srcu_idx = srcu_read_lock(&wl->srcu); in set_channel()
245 srcu_read_unlock(&wl->srcu, srcu_idx); in set_channel()
256 srcu_read_unlock(&wl->srcu, srcu_idx); in set_channel()
797 int srcu_idx; in set_wiphy_params() local
799 srcu_idx = srcu_read_lock(&wl->srcu); in set_wiphy_params()
1477 int srcu_idx; in add_virtual_intf() local
1577 int srcu_idx; in wilc_set_wakeup() local
1579 srcu_idx = srcu_read_lock(&wl->srcu); in wilc_set_wakeup()
1595 int srcu_idx; in set_tx_power() local
[all …]
/linux/drivers/md/
A Ddm.c449 int r, srcu_idx; in dm_blk_ioctl() local
1010 int srcu_idx; in dm_dax_direct_access() local
1036 int srcu_idx; in dm_dax_supported() local
1057 int srcu_idx; in dm_dax_copy_from_iter() local
1081 int srcu_idx; in dm_dax_copy_to_iter() local
1105 int srcu_idx; in dm_dax_zero_page_range() local
1576 int srcu_idx; in dm_submit_bio() local
2146 int srcu_idx; in __dm_destroy() local
2936 int r, srcu_idx; in dm_pr_reserve() local
2956 int r, srcu_idx; in dm_pr_release() local
[all …]
A Ddm-ioctl.c295 int srcu_idx; in __hash_remove() local
416 int srcu_idx; in dm_hash_rename() local
770 dm_get_live_table(md, srcu_idx); in dm_get_inactive_table()
789 int *srcu_idx) in dm_get_live_or_inactive_table() argument
792 dm_get_inactive_table(md, srcu_idx) : dm_get_live_table(md, srcu_idx); in dm_get_live_or_inactive_table()
803 int srcu_idx; in __dev_status() local
842 int srcu_idx; in __dev_status() local
1305 int srcu_idx; in dev_wait() local
1587 int srcu_idx; in table_deps() local
1613 int srcu_idx; in table_status() local
[all …]
A Ddm-zone.c60 int srcu_idx, ret; in dm_blk_report_zones() local
65 map = dm_get_live_table(md, &srcu_idx); in dm_blk_report_zones()
71 dm_put_live_table(md, srcu_idx); in dm_blk_report_zones()
341 int srcu_idx, ret; in dm_update_zone_wp_offset() local
343 t = dm_get_live_table(md, &srcu_idx); in dm_update_zone_wp_offset()
356 dm_put_live_table(md, srcu_idx); in dm_update_zone_wp_offset()
A Ddm-rq.c501 int srcu_idx; in dm_mq_queue_rq() local
502 struct dm_table *map = dm_get_live_table(md, &srcu_idx); in dm_mq_queue_rq()
505 dm_put_live_table(md, srcu_idx); in dm_mq_queue_rq()
/linux/arch/powerpc/kvm/
A Dbook3s_hv_uvmem.c462 int srcu_idx; in kvmppc_h_svm_init_start() local
477 srcu_idx = srcu_read_lock(&kvm->srcu); in kvmppc_h_svm_init_start()
650 int srcu_idx; in kvmppc_h_svm_init_abort() local
663 srcu_idx = srcu_read_lock(&kvm->srcu); in kvmppc_h_svm_init_abort()
824 int srcu_idx; in kvmppc_h_svm_init_done() local
831 srcu_idx = srcu_read_lock(&kvm->srcu); in kvmppc_h_svm_init_done()
876 int srcu_idx; in kvmppc_share_page() local
879 srcu_idx = srcu_read_lock(&kvm->srcu); in kvmppc_share_page()
932 int srcu_idx; in kvmppc_h_svm_page_in() local
949 srcu_idx = srcu_read_lock(&kvm->srcu); in kvmppc_h_svm_page_in()
[all …]
A Dbook3s_hv_nested.c309 vcpu->srcu_idx = srcu_read_lock(&vcpu->kvm->srcu); in kvmhv_enter_nested_guest()
312 srcu_read_unlock(&vcpu->kvm->srcu, vcpu->srcu_idx); in kvmhv_enter_nested_guest()
415 vcpu->srcu_idx = srcu_read_lock(&vcpu->kvm->srcu); in kvmhv_enter_nested_guest()
540 int srcu_idx; in kvmhv_set_partition_table() local
543 srcu_idx = srcu_read_lock(&kvm->srcu); in kvmhv_set_partition_table()
551 srcu_read_unlock(&kvm->srcu, srcu_idx); in kvmhv_set_partition_table()
650 int srcu_idx = srcu_read_lock(&kvm->srcu); in kvmhv_update_ptbl_cache() local
653 srcu_read_unlock(&kvm->srcu, srcu_idx); in kvmhv_update_ptbl_cache()
752 int srcu_idx; in kvmhv_release_all_nested() local
772 srcu_idx = srcu_read_lock(&kvm->srcu); in kvmhv_release_all_nested()
[all …]
A Dbook3s_xive_native.c576 int srcu_idx; in kvmppc_xive_native_set_queue_config() local
647 srcu_idx = srcu_read_lock(&kvm->srcu); in kvmppc_xive_native_set_queue_config()
652 srcu_read_unlock(&kvm->srcu, srcu_idx); in kvmppc_xive_native_set_queue_config()
659 srcu_read_unlock(&kvm->srcu, srcu_idx); in kvmppc_xive_native_set_queue_config()
665 srcu_read_unlock(&kvm->srcu, srcu_idx); in kvmppc_xive_native_set_queue_config()
896 int srcu_idx; in kvmppc_xive_native_vcpu_eq_sync() local
908 srcu_idx = srcu_read_lock(&vcpu->kvm->srcu); in kvmppc_xive_native_vcpu_eq_sync()
910 srcu_read_unlock(&vcpu->kvm->srcu, srcu_idx); in kvmppc_xive_native_vcpu_eq_sync()
A Dbook3s_64_mmu_hv.c737 int srcu_idx; in kvmppc_rmap_reset() local
739 srcu_idx = srcu_read_lock(&kvm->srcu); in kvmppc_rmap_reset()
752 srcu_read_unlock(&kvm->srcu, srcu_idx); in kvmppc_rmap_reset()
1141 int srcu_idx; in kvmppc_pin_guest_page() local
1143 srcu_idx = srcu_read_lock(&kvm->srcu); in kvmppc_pin_guest_page()
1152 srcu_read_unlock(&kvm->srcu, srcu_idx); in kvmppc_pin_guest_page()
1160 srcu_read_unlock(&kvm->srcu, srcu_idx); in kvmppc_pin_guest_page()
1170 int srcu_idx; in kvmppc_unpin_guest_page() local
1179 srcu_idx = srcu_read_lock(&kvm->srcu); in kvmppc_unpin_guest_page()
1183 srcu_read_unlock(&kvm->srcu, srcu_idx); in kvmppc_unpin_guest_page()
[all …]
A Dbook3s.c927 int srcu_idx; in kvmppc_h_logical_ci_load() local
933 srcu_idx = srcu_read_lock(&vcpu->kvm->srcu); in kvmppc_h_logical_ci_load()
935 srcu_read_unlock(&vcpu->kvm->srcu, srcu_idx); in kvmppc_h_logical_ci_load()
970 int srcu_idx; in kvmppc_h_logical_ci_store() local
994 srcu_idx = srcu_read_lock(&vcpu->kvm->srcu); in kvmppc_h_logical_ci_store()
996 srcu_read_unlock(&vcpu->kvm->srcu, srcu_idx); in kvmppc_h_logical_ci_store()
A Dbook3s_rtas.c232 vcpu->srcu_idx = srcu_read_lock(&vcpu->kvm->srcu); in kvmppc_rtas_hcall()
234 srcu_read_unlock(&vcpu->kvm->srcu, vcpu->srcu_idx); in kvmppc_rtas_hcall()
A Dbook3s_hv.c1736 int srcu_idx; in kvmppc_handle_nested_exit() local
3457 int srcu_idx; in kvmppc_run_core() local
4422 int srcu_idx; in kvmhv_run_single_vcpu() local
4506 srcu_idx = srcu_read_lock(&kvm->srcu); in kvmhv_run_single_vcpu()
4520 srcu_read_unlock(&kvm->srcu, srcu_idx); in kvmhv_run_single_vcpu()
4608 int srcu_idx; in kvmppc_vcpu_run_hv() local
4992 int srcu_idx; in kvmppc_hv_setup_htab_rma() local
5015 srcu_idx = srcu_read_lock(&kvm->srcu); in kvmppc_hv_setup_htab_rma()
5060 srcu_read_unlock(&kvm->srcu, srcu_idx); in kvmppc_hv_setup_htab_rma()
5862 int srcu_idx; in kvmhv_svm_off() local
[all …]
/linux/drivers/nvme/host/
A Dioctl.c374 void __user *argp, struct nvme_ns_head *head, int srcu_idx) in nvme_ns_head_ctrl_ioctl() argument
381 srcu_read_unlock(&head->srcu, srcu_idx); in nvme_ns_head_ctrl_ioctl()
394 int srcu_idx, ret = -EWOULDBLOCK; in nvme_ns_head_ioctl() local
396 srcu_idx = srcu_read_lock(&head->srcu); in nvme_ns_head_ioctl()
407 return nvme_ns_head_ctrl_ioctl(ns, cmd, argp, head, srcu_idx); in nvme_ns_head_ioctl()
411 srcu_read_unlock(&head->srcu, srcu_idx); in nvme_ns_head_ioctl()
423 int srcu_idx, ret = -EWOULDBLOCK; in nvme_ns_head_chr_ioctl() local
425 srcu_idx = srcu_read_lock(&head->srcu); in nvme_ns_head_chr_ioctl()
431 return nvme_ns_head_ctrl_ioctl(ns, cmd, argp, head, srcu_idx); in nvme_ns_head_chr_ioctl()
435 srcu_read_unlock(&head->srcu, srcu_idx); in nvme_ns_head_chr_ioctl()
A Dmultipath.c327 int srcu_idx; in nvme_ns_head_submit_bio() local
336 srcu_idx = srcu_read_lock(&head->srcu); in nvme_ns_head_submit_bio()
357 srcu_read_unlock(&head->srcu, srcu_idx); in nvme_ns_head_submit_bio()
378 int srcu_idx, ret = -EWOULDBLOCK; in nvme_ns_head_report_zones() local
380 srcu_idx = srcu_read_lock(&head->srcu); in nvme_ns_head_report_zones()
384 srcu_read_unlock(&head->srcu, srcu_idx); in nvme_ns_head_report_zones()
533 int node, srcu_idx; in nvme_mpath_set_live() local
535 srcu_idx = srcu_read_lock(&head->srcu); in nvme_mpath_set_live()
538 srcu_read_unlock(&head->srcu, srcu_idx); in nvme_mpath_set_live()
/linux/include/linux/
A Dsrcutiny.h18 unsigned short srcu_idx; /* Current reader array element in bit 0x2. */ member
63 idx = ((READ_ONCE(ssp->srcu_idx) + 1) & 0x2) >> 1; in __srcu_read_lock()
84 idx = ((data_race(READ_ONCE(ssp->srcu_idx)) + 1) & 0x2) >> 1; in srcu_torture_stats_print()
A Dsrcutree.h71 unsigned int srcu_idx; /* Current rdr array element. */ member
A Ddevice-mapper.h548 struct dm_table *dm_get_live_table(struct mapped_device *md, int *srcu_idx);
549 void dm_put_live_table(struct mapped_device *md, int srcu_idx);
/linux/arch/arm64/include/asm/
A Dkvm_mmu.h234 int srcu_idx = srcu_read_lock(&kvm->srcu);
237 srcu_read_unlock(&kvm->srcu, srcu_idx);
245 int srcu_idx = srcu_read_lock(&kvm->srcu);
248 srcu_read_unlock(&kvm->srcu, srcu_idx);
/linux/arch/riscv/kvm/
A Dvcpu.c687 vcpu->arch.srcu_idx = srcu_read_lock(&vcpu->kvm->srcu); in kvm_arch_vcpu_ioctl_run()
693 srcu_read_unlock(&vcpu->kvm->srcu, vcpu->arch.srcu_idx); in kvm_arch_vcpu_ioctl_run()
702 srcu_read_unlock(&vcpu->kvm->srcu, vcpu->arch.srcu_idx); in kvm_arch_vcpu_ioctl_run()
708 srcu_read_unlock(&vcpu->kvm->srcu, vcpu->arch.srcu_idx); in kvm_arch_vcpu_ioctl_run()
747 srcu_read_unlock(&vcpu->kvm->srcu, vcpu->arch.srcu_idx); in kvm_arch_vcpu_ioctl_run()
765 vcpu->arch.srcu_idx = srcu_read_lock(&vcpu->kvm->srcu); in kvm_arch_vcpu_ioctl_run()
813 vcpu->arch.srcu_idx = srcu_read_lock(&vcpu->kvm->srcu); in kvm_arch_vcpu_ioctl_run()
822 srcu_read_unlock(&vcpu->kvm->srcu, vcpu->arch.srcu_idx); in kvm_arch_vcpu_ioctl_run()
/linux/mm/kasan/
A Dquarantine.c229 int srcu_idx; in kasan_quarantine_reduce() local
245 srcu_idx = srcu_read_lock(&remove_cache_srcu); in kasan_quarantine_reduce()
273 srcu_read_unlock(&remove_cache_srcu, srcu_idx); in kasan_quarantine_reduce()
/linux/block/
A Dblk-mq.c1013 *srcu_idx = 0; in hctx_lock()
1774 int srcu_idx; in __blk_mq_run_hw_queue() local
1784 hctx_lock(hctx, &srcu_idx); in __blk_mq_run_hw_queue()
1786 hctx_unlock(hctx, srcu_idx); in __blk_mq_run_hw_queue()
1898 int srcu_idx; in blk_mq_run_hw_queue() local
1909 hctx_lock(hctx, &srcu_idx); in blk_mq_run_hw_queue()
1912 hctx_unlock(hctx, srcu_idx); in blk_mq_run_hw_queue()
2408 int srcu_idx; in blk_mq_try_issue_directly() local
2412 hctx_lock(hctx, &srcu_idx); in blk_mq_try_issue_directly()
2426 int srcu_idx; in blk_mq_request_issue_directly() local
[all …]
/linux/arch/mips/kvm/
A Dmmu.c594 int srcu_idx, err; in kvm_mips_map_page() local
602 srcu_idx = srcu_read_lock(&kvm->srcu); in kvm_mips_map_page()
681 srcu_read_unlock(&kvm->srcu, srcu_idx); in kvm_mips_map_page()

Completed in 93 milliseconds

12