| /dpdk/drivers/net/sfc/ |
| H A D | sfc_switch.c | 129 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 D | ifpga_port.c | 102 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 D | ifpga_fme_iperf.c | 55 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 D | opae_ifpga_hw_api.c | 44 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 D | ifpga_fme_error.c | 52 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 D | ifpga_port_error.c | 80 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 D | mps_tcam.c | 76 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 D | clip_tbl.c | 57 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 D | smt.c | 21 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 D | l2t.c | 42 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 D | rte_metrics.c | 53 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 D | adapter.h | 356 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 D | main.c | 347 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 D | cn9k_ethdev_sec.c | 125 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 D | rte_stack_std.h | 30 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 D | nfp_cpp_pcie_ops.c | 102 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 D | rte_power_intrinsics.c | 16 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 D | cpt_fpm_tables.c | 1080 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 D | cnxk_gpio_irq.c | 41 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 D | sfc_vdpa.h | 52 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 D | bcm_osal.h | 157 #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 D | test_pflock.c | 97 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 D | test_mcslock.c | 99 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 D | rte_eth_bond_alb.c | 43 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 D | stack_lib.rst | 13 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
|