Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 199) sorted by relevance

12345678

/dpdk/drivers/net/sfc/
H A Dsfc_switch.c129 rte_spinlock_t lock; member
135 .lock = RTE_SPINLOCK_INITIALIZER,
167 rte_spinlock_lock(&sfc_mae_switch.lock); in sfc_mae_switch_ports_iterate()
208 rte_spinlock_lock(&sfc_mae_switch.lock); in sfc_mae_assign_switch_domain()
269 rte_spinlock_lock(&sfc_mae_switch.lock); in sfc_mae_switch_domain_controllers()
291 rte_spinlock_lock(&sfc_mae_switch.lock); in sfc_mae_switch_domain_map_controllers()
429 rte_spinlock_lock(&sfc_mae_switch.lock); in sfc_mae_assign_switch_port()
493 rte_spinlock_lock(&sfc_mae_switch.lock); in sfc_mae_clear_switch_port()
547 rte_spinlock_lock(&sfc_mae_switch.lock); in sfc_mae_switch_get_ethdev_mport()
578 rte_spinlock_lock(&sfc_mae_switch.lock); in sfc_mae_switch_get_entity_mport()
[all …]
/dpdk/drivers/raw/ifpga/base/
H A Difpga_port.c102 spinlock_lock(&port->lock); in port_get_ap1_event()
119 spinlock_lock(&port->lock); in port_set_ap1_event()
136 spinlock_lock(&port->lock); in port_get_ap2_event()
153 spinlock_lock(&port->lock); in port_set_ap2_event()
170 spinlock_lock(&port->lock); in port_get_power_state()
186 spinlock_lock(&port->lock); in port_get_userclk_freqcmd()
200 spinlock_lock(&port->lock); in port_set_userclk_freqcmd()
214 spinlock_lock(&port->lock); in port_get_userclk_freqcntrcmd()
228 spinlock_lock(&port->lock); in port_set_userclk_freqcntrcmd()
242 spinlock_lock(&port->lock); in port_get_userclk_freqsts()
[all …]
H A Difpga_fme_iperf.c55 spinlock_lock(&fme->lock); in fme_iperf_set_cache_freeze()
61 spinlock_unlock(&fme->lock); in fme_iperf_set_cache_freeze()
76 spinlock_lock(&fme->lock); in read_cache_counter()
92 spinlock_unlock(&fme->lock); in read_cache_counter()
99 spinlock_unlock(&fme->lock); in read_cache_counter()
146 spinlock_lock(&fme->lock); in fme_iperf_set_vtd_freeze()
165 spinlock_lock(&fme->lock); in read_iommu_sip_counter()
218 spinlock_lock(&fme->lock); in read_iommu_counter()
277 spinlock_lock(&fme->lock); in read_fabric_counter()
360 spinlock_lock(&fme->lock); in fme_iperf_set_fab_port_enable()
[all …]
H A Dopae_ifpga_hw_api.c44 spinlock_lock(&fme->lock); in opae_manager_ifpga_get_info()
46 spinlock_unlock(&fme->lock); in opae_manager_ifpga_get_info()
103 spinlock_lock(&port->lock); in opae_bridge_ifpga_get_info()
106 spinlock_unlock(&port->lock); in opae_bridge_ifpga_get_info()
125 spinlock_lock(&port->lock); in opae_bridge_ifpga_get_region_info()
128 spinlock_unlock(&port->lock); in opae_bridge_ifpga_get_region_info()
H A Difpga_fme_error.c52 spinlock_lock(&fme->lock); in fme_err_set_clear()
56 spinlock_unlock(&fme->lock); in fme_err_set_clear()
95 spinlock_lock(&fme->lock); in fme_err_set_pcie0_errors()
106 spinlock_unlock(&fme->lock); in fme_err_set_pcie0_errors()
132 spinlock_lock(&fme->lock); in fme_err_set_pcie1_errors()
143 spinlock_unlock(&fme->lock); in fme_err_set_pcie1_errors()
194 spinlock_lock(&fme->lock); in fme_err_set_inject_errors()
200 spinlock_unlock(&fme->lock); in fme_err_set_inject_errors()
205 spinlock_unlock(&fme->lock); in fme_err_set_inject_errors()
398 spinlock_lock(&fme->lock); in fme_global_err_set_irq()
[all …]
H A Difpga_port_error.c80 spinlock_lock(&port->lock); in port_err_set_clear()
82 spinlock_unlock(&port->lock); in port_err_set_clear()
93 spinlock_lock(&port->lock); in port_error_init()
97 spinlock_unlock(&port->lock); in port_error_init()
150 spinlock_lock(&port->lock); in port_error_set_irq()
152 spinlock_unlock(&port->lock); in port_error_set_irq()
/dpdk/drivers/net/cxgbe/
H A Dmps_tcam.c76 t4_os_write_lock(&mpstcam->lock); in cxgbe_mpstcam_alloc()
107 t4_os_write_unlock(&mpstcam->lock); in cxgbe_mpstcam_alloc()
119 t4_os_write_lock(&mpstcam->lock); in cxgbe_mpstcam_modify()
186 t4_os_write_lock(&t->lock); in cxgbe_mpstcam_remove()
189 t4_os_write_unlock(&t->lock); in cxgbe_mpstcam_remove()
206 t4_os_write_unlock(&t->lock); in cxgbe_mpstcam_remove()
222 t4_os_write_lock(&t->lock); in cxgbe_mpstcam_rawf_enable()
237 t4_os_write_unlock(&t->lock); in cxgbe_mpstcam_rawf_enable()
253 t4_os_write_lock(&t->lock); in cxgbe_mpstcam_rawf_disable()
268 t4_os_write_unlock(&t->lock); in cxgbe_mpstcam_rawf_disable()
[all …]
H A Dclip_tbl.c57 t4_os_lock(&ce->lock); in cxgbe_clip_release()
63 t4_os_unlock(&ce->lock); in cxgbe_clip_release()
113 t4_os_write_lock(&ctbl->lock); in t4_clip_alloc()
116 t4_os_lock(&ce->lock); in t4_clip_alloc()
134 t4_os_unlock(&ce->lock); in t4_clip_alloc()
136 t4_os_write_unlock(&ctbl->lock); in t4_clip_alloc()
177 t4_os_rwlock_init(&ctbl->lock); in t4_init_clip_tbl()
180 t4_os_lock_init(&ctbl->cl_list[i].lock); in t4_init_clip_tbl()
H A Dsmt.c21 t4_os_lock(&e->lock); in cxgbe_do_smt_write_rpl()
23 t4_os_unlock(&e->lock); in cxgbe_do_smt_write_rpl()
155 t4_os_write_lock(&s->lock); in t4_smt_alloc_switching()
158 t4_os_lock(&e->lock); in t4_smt_alloc_switching()
166 t4_os_unlock(&e->lock); in t4_smt_alloc_switching()
175 t4_os_unlock(&e->lock); in t4_smt_alloc_switching()
179 t4_os_write_unlock(&s->lock); in t4_smt_alloc_switching()
216 t4_os_rwlock_init(&s->lock); in t4_init_smt()
223 t4_os_lock_init(&s->smtab[i].lock); in t4_init_smt()
H A Dl2t.c42 t4_os_lock(&e->lock); in cxgbe_do_l2t_write_rpl()
45 t4_os_unlock(&e->lock); in cxgbe_do_l2t_write_rpl()
150 t4_os_write_lock(&d->lock); in t4_l2t_alloc_switching()
153 t4_os_lock(&e->lock); in t4_l2t_alloc_switching()
167 t4_os_unlock(&e->lock); in t4_l2t_alloc_switching()
169 t4_os_write_unlock(&d->lock); in t4_l2t_alloc_switching()
210 t4_os_rwlock_init(&d->lock); in t4_init_l2t()
215 t4_os_lock_init(&d->l2tab[i].lock); in t4_init_l2t()
/dpdk/lib/metrics/
H A Drte_metrics.c53 rte_spinlock_t lock; member
76 rte_spinlock_init(&stats->lock); in rte_metrics_init()
135 rte_spinlock_lock(&stats->lock); in rte_metrics_reg_names()
152 rte_spinlock_unlock(&stats->lock); in rte_metrics_reg_names()
188 rte_spinlock_lock(&stats->lock); in rte_metrics_update_values()
191 rte_spinlock_unlock(&stats->lock); in rte_metrics_update_values()
221 rte_spinlock_unlock(&stats->lock); in rte_metrics_update_values()
239 rte_spinlock_lock(&stats->lock); in rte_metrics_get_names()
252 rte_spinlock_unlock(&stats->lock); in rte_metrics_get_names()
276 rte_spinlock_lock(&stats->lock); in rte_metrics_get_values()
[all …]
/dpdk/drivers/net/cxgbe/base/
H A Dadapter.h356 rte_rwlock_init(lock); in t4_os_rwlock_init()
683 rte_spinlock_init(lock); in t4_os_lock_init()
692 rte_spinlock_lock(lock); in t4_os_lock()
701 rte_spinlock_unlock(lock); in t4_os_unlock()
735 rte_spinlock_t *lock) in t4_os_atomic_add_tail() argument
737 t4_os_lock(lock); in t4_os_atomic_add_tail()
739 t4_os_unlock(lock); in t4_os_atomic_add_tail()
751 t4_os_lock(lock); in t4_os_atomic_list_del()
753 t4_os_unlock(lock); in t4_os_atomic_list_del()
772 t4_os_lock(&c->lock); in t4_complete()
[all …]
/dpdk/examples/bond/
H A Dmain.c347 rte_spinlock_t lock; member
376 rte_spinlock_lock(&global_flag_stru_p->lock); in lcore_main()
459 rte_spinlock_lock(&global_flag_stru_p->lock); in lcore_main()
461 rte_spinlock_unlock(&global_flag_stru_p->lock); in lcore_main()
574 rte_spinlock_lock(&global_flag_stru_p->lock); in cmd_start_parsed()
594 rte_spinlock_lock(&global_flag_stru_p->lock); in cmd_start_parsed()
596 rte_spinlock_unlock(&global_flag_stru_p->lock); in cmd_start_parsed()
662 rte_spinlock_lock(&global_flag_stru_p->lock); in cmd_stop_parsed()
703 rte_spinlock_lock(&global_flag_stru_p->lock); in cmd_quit_parsed()
765 rte_spinlock_lock(&global_flag_stru_p->lock); in cmd_show_parsed()
[all …]
/dpdk/drivers/net/cnxk/
H A Dcn9k_ethdev_sec.c125 rte_spinlock_init(&inb_priv->ar.lock); in ar_window_init()
150 rte_spinlock_t *lock; in cn9k_eth_sec_session_create() local
180 lock = inbound ? &dev->inb.lock : &dev->outb.lock; in cn9k_eth_sec_session_create()
181 rte_spinlock_lock(lock); in cn9k_eth_sec_session_create()
316 rte_spinlock_unlock(lock); in cn9k_eth_sec_session_create()
328 rte_spinlock_unlock(lock); in cn9k_eth_sec_session_create()
344 rte_spinlock_t *lock; in cn9k_eth_sec_session_destroy() local
350 lock = eth_sec->inb ? &dev->inb.lock : &dev->outb.lock; in cn9k_eth_sec_session_destroy()
351 rte_spinlock_lock(lock); in cn9k_eth_sec_session_destroy()
374 rte_spinlock_unlock(lock); in cn9k_eth_sec_session_destroy()
/dpdk/lib/stack/
H A Drte_stack_std.h30 rte_spinlock_lock(&stack->lock); in __rte_stack_std_push()
35 rte_spinlock_unlock(&stack->lock); in __rte_stack_std_push()
45 rte_spinlock_unlock(&stack->lock); in __rte_stack_std_push()
68 rte_spinlock_lock(&stack->lock); in __rte_stack_std_pop()
71 rte_spinlock_unlock(&stack->lock); in __rte_stack_std_pop()
82 rte_spinlock_unlock(&stack->lock); in __rte_stack_std_pop()
/dpdk/drivers/net/nfp/nfpcore/
H A Dnfp_cpp_pcie_ops.c102 int lock; member
113 int lock; member
327 bar->lock = 0; in nfp_enable_bars()
352 if (!bar->lock) { in nfp_alloc_bar()
353 bar->lock = 1; in nfp_alloc_bar()
378 bar->lock = 0; in nfp_disable_bars()
643 struct flock lock; in nfp_acquire_process_lock() local
646 memset(&lock, 0, sizeof(lock)); in nfp_acquire_process_lock()
657 rc = fcntl(desc->lock, F_SETLKW, &lock); in nfp_acquire_process_lock()
673 struct flock lock; in nfp_acquire_secondary_process_lock() local
[all …]
/dpdk/lib/eal/x86/
H A Drte_power_intrinsics.c16 rte_spinlock_t lock; member
103 rte_spinlock_lock(&s->lock); in rte_power_monitor()
117 rte_spinlock_unlock(&s->lock); in rte_power_monitor()
133 rte_spinlock_lock(&s->lock); in rte_power_monitor()
135 rte_spinlock_unlock(&s->lock); in rte_power_monitor()
215 rte_spinlock_lock(&s->lock); in rte_power_monitor_wakeup()
218 rte_spinlock_unlock(&s->lock); in rte_power_monitor_wakeup()
256 rte_spinlock_is_locked(&s->lock); in rte_power_monitor_multi()
/dpdk/drivers/common/cpt/
H A Dcpt_fpm_tables.c1080 static rte_spinlock_t lock = RTE_SPINLOCK_INITIALIZER; variable
1092 rte_spinlock_lock(&lock); in cpt_fpm_init()
1105 rte_spinlock_unlock(&lock); in cpt_fpm_init()
1123 rte_spinlock_unlock(&lock); in cpt_fpm_init()
1130 rte_spinlock_lock(&lock); in cpt_fpm_clear()
1137 rte_spinlock_unlock(&lock); in cpt_fpm_clear()
/dpdk/drivers/raw/cnxk_gpio/
H A Dcnxk_gpio_irq.c41 pthread_mutex_t lock; member
141 pthread_mutex_init(&irqchip->lock, NULL); in cnxk_gpio_irq_init()
166 pthread_mutex_lock(&irqchip->lock); in cnxk_gpio_irq_request()
186 pthread_mutex_unlock(&irqchip->lock); in cnxk_gpio_irq_request()
193 pthread_mutex_unlock(&irqchip->lock); in cnxk_gpio_irq_request()
203 pthread_mutex_lock(&irqchip->lock); in cnxk_gpio_irq_free()
207 pthread_mutex_unlock(&irqchip->lock); in cnxk_gpio_irq_free()
213 pthread_mutex_unlock(&irqchip->lock); in cnxk_gpio_irq_free()
/dpdk/drivers/vdpa/sfc/
H A Dsfc_vdpa.h52 rte_spinlock_t lock; member
128 rte_spinlock_init(&sva->lock); in sfc_vdpa_adapter_lock_init()
134 return rte_spinlock_is_locked(&sva->lock); in sfc_vdpa_adapter_is_locked()
140 rte_spinlock_lock(&sva->lock); in sfc_vdpa_adapter_lock()
146 return rte_spinlock_trylock(&sva->lock); in sfc_vdpa_adapter_trylock()
152 rte_spinlock_unlock(&sva->lock); in sfc_vdpa_adapter_unlock()
/dpdk/drivers/net/qede/base/
H A Dbcm_osal.h157 #define OSAL_MUTEX_RELEASE(lock) pthread_mutex_unlock(lock) argument
158 #define OSAL_MUTEX_INIT(lock) pthread_mutex_init(lock, NULL) argument
159 #define OSAL_MUTEX_ACQUIRE(lock) pthread_mutex_lock(lock) argument
160 #define OSAL_MUTEX_ALLOC(hwfn, lock) nothing argument
161 #define OSAL_MUTEX_DEALLOC(lock) nothing argument
165 #define OSAL_SPIN_LOCK_INIT(lock) rte_spinlock_init(lock) argument
166 #define OSAL_SPIN_LOCK(lock) rte_spinlock_lock(lock) argument
167 #define OSAL_SPIN_UNLOCK(lock) rte_spinlock_unlock(lock) argument
168 #define OSAL_SPIN_LOCK_IRQSAVE(lock, flags) \ argument
170 UNUSED(lock); \
[all …]
/dpdk/app/test/
H A Dtest_pflock.c97 int lock = 0; in test_pflock_perf() local
103 load_loop_fn(&lock); in test_pflock_perf()
109 lock = 1; in test_pflock_perf()
111 load_loop_fn(&lock); in test_pflock_perf()
120 if (rte_eal_mp_remote_launch(load_loop_fn, &lock, SKIP_MAIN) < 0) in test_pflock_perf()
125 load_loop_fn(&lock); in test_pflock_perf()
H A Dtest_mcslock.c99 int lock = 0; in test_mcslock_perf() local
104 load_loop_fn(&lock); in test_mcslock_perf()
111 lock = 1; in test_mcslock_perf()
112 load_loop_fn(&lock); in test_mcslock_perf()
120 rte_eal_mp_remote_launch(load_loop_fn, &lock, SKIP_MAIN); in test_mcslock_perf()
124 load_loop_fn(&lock); in test_mcslock_perf()
/dpdk/drivers/net/bonding/
H A Drte_eth_bond_alb.c43 rte_spinlock_init(&internals->mode6.lock); in bond_mode_alb_enable()
101 rte_spinlock_lock(&internals->mode6.lock); in bond_mode_alb_arp_recv()
124 rte_spinlock_unlock(&internals->mode6.lock); in bond_mode_alb_arp_recv()
157 rte_spinlock_lock(&internals->mode6.lock); in bond_mode_alb_arp_xmit()
175 rte_spinlock_unlock(&internals->mode6.lock); in bond_mode_alb_arp_xmit()
194 rte_spinlock_unlock(&internals->mode6.lock); in bond_mode_alb_arp_xmit()
199 rte_spinlock_unlock(&internals->mode6.lock); in bond_mode_alb_arp_xmit()
213 rte_spinlock_lock(&internals->mode6.lock); in bond_mode_alb_arp_upd()
242 rte_spinlock_unlock(&internals->mode6.lock); in bond_mode_alb_arp_upd()
259 rte_spinlock_lock(&internals->mode6.lock); in bond_mode_alb_client_list_upd()
[all …]
/dpdk/doc/guides/prog_guide/
H A Dstack_lib.rst13 user-specified socket, with either standard (lock-based) or lock-free
28 The library supports two types of stacks: standard (lock-based) and lock-free.
36 The lock-based stack consists of a contiguous array of pointers, a current
45 The lock-free stack consists of a linked list of elements, each containing a
47 lock-free property means that multiple threads can push and pop simultaneously,
51 The lock-free push operation enqueues a linked list of pointers by pointing the
57 The lock-free pop operation first reserves one or more list elements by
63 The linked list elements themselves are maintained in a lock-free LIFO, and are
67 The lock-free behavior is selected by passing the *RTE_STACK_F_LF* flag to

12345678