| /f-stack/dpdk/lib/librte_mempool/ |
| H A D | rte_mempool_ops.c | 26 struct rte_mempool_ops *ops; in rte_mempool_register_ops() local 56 ops = &rte_mempool_ops_table.ops[ops_index]; in rte_mempool_register_ops() 57 strlcpy(ops->name, h->name, sizeof(ops->name)); in rte_mempool_register_ops() 58 ops->alloc = h->alloc; in rte_mempool_register_ops() 59 ops->free = h->free; in rte_mempool_register_ops() 60 ops->enqueue = h->enqueue; in rte_mempool_register_ops() 81 return ops->alloc(mp); in rte_mempool_ops_alloc() 92 if (ops->free == NULL) in rte_mempool_ops_free() 94 ops->free(mp); in rte_mempool_ops_free() 177 ops = &rte_mempool_ops_table.ops[i]; in rte_mempool_set_ops_byname() [all …]
|
| /f-stack/dpdk/app/test-eventdev/ |
| H A D | evt_main.c | 36 if (test->ops.ethdev_destroy) in signal_handler() 41 if (test->ops.test_result) in signal_handler() 52 if (test->ops.mempool_destroy) in signal_handler() 55 if (test->ops.test_destroy) in signal_handler() 69 if (test->ops.opt_dump) in evt_options_dump_all() 70 test->ops.opt_dump(opts); in evt_options_dump_all() 119 if (test->ops.opt_check) { in main() 128 if (test->ops.cap_check) { in main() 142 if (test->ops.test_setup) { in main() 159 if (test->ops.ethdev_setup) { in main() [all …]
|
| /f-stack/dpdk/drivers/net/e1000/base/ |
| H A D | e1000_api.c | 18 if (hw->mac.ops.init_params) { in e1000_init_mac_params() 646 if (hw->mac.ops.init_hw) in e1000_init_hw() 757 if (hw->mac.ops.led_on) in e1000_led_on() 772 if (hw->mac.ops.led_off) in e1000_led_off() 838 if (hw->mac.ops.rar_set) in e1000_rar_set() 1092 if (hw->phy.ops.reset) in e1000_phy_hw_reset() 1107 if (hw->phy.ops.commit) in e1000_phy_commit() 1243 if (hw->nvm.ops.update) in e1000_update_nvm_checksum() 1258 if (hw->nvm.ops.reload) in e1000_reload_nvm() 1274 if (hw->nvm.ops.read) in e1000_read_nvm() [all …]
|
| H A D | e1000_82541.c | 351 ret_val = mac->ops.id_led_init(hw); in e1000_init_hw_82541() 365 mac->ops.clear_vfta(hw); in e1000_init_hw_82541() 384 ret_val = mac->ops.setup_link(hw); in e1000_init_hw_82541() 672 ret_val = phy->ops.read_reg(hw, in e1000_config_dsp_after_link_change_82541() 746 ret_val = phy->ops.read_reg(hw, in e1000_config_dsp_after_link_change_82541() 947 ret_val = phy->ops.read_reg(hw, in e1000_set_d3_lplu_state_82541() 954 ret_val = phy->ops.write_reg(hw, in e1000_set_d3_lplu_state_82541() 960 ret_val = phy->ops.read_reg(hw, in e1000_set_d3_lplu_state_82541() 967 ret_val = phy->ops.write_reg(hw, in e1000_set_d3_lplu_state_82541() 1150 hw->phy.ops.write_reg(hw, in e1000_phy_init_script_82541() [all …]
|
| H A D | e1000_82540.c | 52 phy->ops.read_reg = e1000_read_phy_reg_m88; in e1000_init_phy_params_82540() 55 phy->ops.get_info = e1000_get_phy_info_m88; in e1000_init_phy_params_82540() 114 nvm->ops.read = e1000_read_nvm_microwire; in e1000_init_nvm_params_82540() 164 mac->ops.reset_hw = e1000_reset_hw_82540; in e1000_init_mac_params_82540() 166 mac->ops.init_hw = e1000_init_hw_82540; in e1000_init_mac_params_82540() 170 mac->ops.setup_physical_interface = in e1000_init_mac_params_82540() 191 mac->ops.get_link_up_info = in e1000_init_mac_params_82540() 210 mac->ops.led_on = e1000_led_on_generic; in e1000_init_mac_params_82540() 308 ret_val = mac->ops.id_led_init(hw); in e1000_init_hw_82540() 319 mac->ops.clear_vfta(hw); in e1000_init_hw_82540() [all …]
|
| H A D | e1000_phy.c | 210 if (!phy->ops.read_reg) in e1000_get_phy_id() 248 if (!hw->phy.ops.write_reg) in e1000_phy_reset_dsp_generic() 637 if (!hw->phy.ops.acquire) in e1000_read_phy_reg_m88() 647 hw->phy.ops.release(hw); in e1000_read_phy_reg_m88() 667 if (!hw->phy.ops.acquire) in e1000_write_phy_reg_m88() 677 hw->phy.ops.release(hw); in e1000_write_phy_reg_m88() 738 hw->phy.ops.release(hw); in __e1000_read_phy_reg_igp() 807 hw->phy.ops.release(hw); in __e1000_write_phy_reg_igp() 880 hw->phy.ops.release(hw); in __e1000_read_kmrn_reg() 952 hw->phy.ops.release(hw); in __e1000_write_kmrn_reg() [all …]
|
| H A D | e1000_82571.c | 243 nvm->ops.read = e1000_read_nvm_eerd; in e1000_init_nvm_params_82571() 274 mac->ops.get_link_up_info = in e1000_init_mac_params_82571() 285 mac->ops.get_link_up_info = in e1000_init_mac_params_82571() 293 mac->ops.get_link_up_info = in e1000_init_mac_params_82571() 964 if (!(phy->ops.read_reg)) in e1000_set_d0_lplu_state_82571() 998 ret_val = phy->ops.read_reg(hw, in e1000_set_d0_lplu_state_82571() 1011 ret_val = phy->ops.read_reg(hw, in e1000_set_d0_lplu_state_82571() 1179 mac->ops.clear_vfta(hw); in e1000_init_hw_82571() 1905 ret_val = nvm->ops.update(hw); in e1000_fix_nvm_checksum_82571() 1950 if (!phy->ops.check_reset_block) in e1000_power_down_phy_copper_82571() [all …]
|
| H A D | e1000_80003es2lan.c | 152 nvm->ops.read = e1000_read_nvm_eerd; in e1000_init_nvm_params_80003es2lan() 177 mac->ops.setup_physical_interface = in e1000_init_mac_params_80003es2lan() 183 mac->ops.setup_physical_interface = in e1000_init_mac_params_80003es2lan() 239 hw->mac.ops.set_lan_id(hw); in e1000_init_mac_params_80003es2lan() 640 if (!(hw->phy.ops.read_reg)) in e1000_phy_force_speed_duplex_80003es2lan() 735 if (!(hw->phy.ops.read_reg)) in e1000_get_cable_length_80003es2lan() 773 hw->phy.ops.cfg_on_link_up(hw); in e1000_get_link_up_info_80003es2lan() 867 ret_val = mac->ops.id_led_init(hw); in e1000_init_hw_80003es2lan() 874 mac->ops.clear_vfta(hw); in e1000_init_hw_80003es2lan() 885 ret_val = mac->ops.setup_link(hw); in e1000_init_hw_80003es2lan() [all …]
|
| H A D | e1000_82575.c | 234 phy->ops.force_speed_duplex = in e1000_init_phy_params_82575() 272 hw->mac.ops.check_for_link = in e1000_init_phy_params_82575() 383 mac->ops.validate_mdi_setting = in e1000_init_mac_params_82575() 410 hw->mac.ops.set_lan_id(hw); in e1000_init_mac_params_82575() 541 hw->phy.ops.release(hw); in e1000_read_phy_reg_sgmii_82575() 574 hw->phy.ops.release(hw); in e1000_write_phy_reg_sgmii_82575() 703 if (!(hw->phy.ops.write_reg)) in e1000_phy_hw_reset_sgmii_82575() 745 if (!(hw->phy.ops.read_reg)) in e1000_set_d0_lplu_state_82575() 1433 mac->ops.clear_vfta(hw); in e1000_init_hw_82575() 2199 hw->phy.ops.release(hw); in e1000_read_phy_reg_82580() [all …]
|
| H A D | e1000_ich8lan.c | 3455 nvm->ops.acquire(hw); in e1000_read_nvm_spt() 3511 nvm->ops.release(hw); in e1000_read_nvm_spt() 3548 nvm->ops.acquire(hw); in e1000_read_nvm_ich8lan() 3573 nvm->ops.release(hw); in e1000_read_nvm_ich8lan() 3964 nvm->ops.acquire(hw); in e1000_write_nvm_ich8lan() 3971 nvm->ops.release(hw); in e1000_write_nvm_ich8lan() 4004 nvm->ops.acquire(hw); in e1000_update_nvm_checksum_spt() 4121 nvm->ops.release(hw); in e1000_update_nvm_checksum_spt() 4127 nvm->ops.reload(hw); in e1000_update_nvm_checksum_spt() 4166 nvm->ops.acquire(hw); in e1000_update_nvm_checksum_ich8lan() [all …]
|
| /f-stack/dpdk/drivers/net/ixgbe/base/ |
| H A D | ixgbe_api.c | 39 if (hw->mac.ops.get_rtrup2tc) in ixgbe_dcb_get_rtrup2tc() 40 hw->mac.ops.get_rtrup2tc(hw, map); in ixgbe_dcb_get_rtrup2tc() 1290 if (hw->mac.ops.disable_mdd) in ixgbe_disable_mdd() 1291 hw->mac.ops.disable_mdd(hw); in ixgbe_disable_mdd() 1301 if (hw->mac.ops.enable_mdd) in ixgbe_enable_mdd() 1302 hw->mac.ops.enable_mdd(hw); in ixgbe_enable_mdd() 1313 if (hw->mac.ops.mdd_event) in ixgbe_mdd_event() 1667 if (hw->mac.ops.disable_rx) in ixgbe_disable_rx() 1668 hw->mac.ops.disable_rx(hw); in ixgbe_disable_rx() 1673 if (hw->mac.ops.enable_rx) in ixgbe_enable_rx() [all …]
|
| H A D | ixgbe_x540.c | 44 eeprom->ops.read = ixgbe_read_eerd_X540; in ixgbe_init_ops_X540() 46 eeprom->ops.write = ixgbe_write_eewr_X540; in ixgbe_init_ops_X540() 54 phy->ops.reset = NULL; in ixgbe_init_ops_X540() 58 mac->ops.reset_hw = ixgbe_reset_hw_X540; in ixgbe_init_ops_X540() 61 mac->ops.get_supported_physical_layer = in ixgbe_init_ops_X540() 63 mac->ops.read_analog_reg8 = NULL; in ixgbe_init_ops_X540() 64 mac->ops.write_analog_reg8 = NULL; in ixgbe_init_ops_X540() 65 mac->ops.start_hw = ixgbe_start_hw_X540; in ixgbe_init_ops_X540() 91 mac->ops.get_link_capabilities = in ixgbe_init_ops_X540() 187 status = hw->mac.ops.stop_adapter(hw); in ixgbe_reset_hw_X540() [all …]
|
| H A D | ixgbe_x550.c | 36 mac->ops.setup_eee = NULL; in ixgbe_init_ops_X550() 62 hw->mac.ops.led_on = NULL; in ixgbe_init_ops_X550() 63 hw->mac.ops.led_off = NULL; in ixgbe_init_ops_X550() 318 hw->mac.ops.set_lan_id(hw); in ixgbe_identify_phy_x550em() 633 mac->ops.setup_fc = NULL; in ixgbe_init_ops_X550EM() 639 mac->ops.setup_fc = NULL; in ixgbe_init_ops_X550EM() 1593 hw->phy.ops.reset = NULL; in ixgbe_setup_sfp_modules_X550em() 1824 mac->ops.check_link = in ixgbe_init_mac_link_ops_X550em() 1827 mac->ops.setup_link = in ixgbe_init_mac_link_ops_X550em() 2309 phy->ops.reset = NULL; in ixgbe_init_phy_ops_X550em() [all …]
|
| /f-stack/freebsd/netgraph/ |
| H A D | ng_patch.c | 240 switch (conf->ops[i].length) in ng_patch_rcvmsg() 243 conf->ops[i].val.v8 = conf->ops[i].val.v1; in ng_patch_rcvmsg() 246 conf->ops[i].val.v8 = conf->ops[i].val.v2; in ng_patch_rcvmsg() 249 conf->ops[i].val.v8 = conf->ops[i].val.v4; in ng_patch_rcvmsg() 266 switch (conf->ops[i].length) in ng_patch_rcvmsg() 269 conf->ops[i].val.v1 = (uint8_t) conf->ops[i].val.v8; in ng_patch_rcvmsg() 272 conf->ops[i].val.v2 = (uint16_t) conf->ops[i].val.v8; in ng_patch_rcvmsg() 275 conf->ops[i].val.v4 = (uint32_t) conf->ops[i].val.v8; in ng_patch_rcvmsg() 369 switch (privp->conf->ops[i].length) in do_patch() 372 switch (privp->conf->ops[i].mode) in do_patch() [all …]
|
| /f-stack/freebsd/amd64/vmm/io/ |
| H A D | iommu.c | 62 static struct iommu_ops *ops; variable 69 if (ops != NULL) in IOMMU_INIT() 70 return ((*ops->init)()); in IOMMU_INIT() 79 (*ops->cleanup)(); in IOMMU_CLEANUP() 97 (*ops->destroy_domain)(dom); in IOMMU_DESTROY_DOMAIN() 149 (*ops->enable)(); in IOMMU_ENABLE() 157 (*ops->disable)(); in IOMMU_DISABLE() 187 ops = &iommu_ops_intel; in iommu_init() 189 ops = &iommu_ops_amd; in iommu_init() 191 ops = NULL; in iommu_init() [all …]
|
| /f-stack/dpdk/drivers/net/igc/base/ |
| H A D | igc_api.c | 1127 if (hw->mac.ops.init_hw) in igc_init_hw() 1238 if (hw->mac.ops.led_on) in igc_led_on() 1253 if (hw->mac.ops.led_off) in igc_led_off() 1319 if (hw->mac.ops.rar_set) in igc_rar_set() 1471 if (hw->phy.ops.release) in igc_release_phy() 1573 if (hw->phy.ops.reset) in igc_phy_hw_reset() 1588 if (hw->phy.ops.commit) in igc_phy_commit() 1724 if (hw->nvm.ops.update) in igc_update_nvm_checksum() 1739 if (hw->nvm.ops.reload) in igc_reload_nvm() 1755 if (hw->nvm.ops.read) in igc_read_nvm() [all …]
|
| H A D | igc_phy.c | 209 if (!phy->ops.read_reg) in igc_get_phy_id() 247 if (!hw->phy.ops.write_reg) in igc_phy_reset_dsp_generic() 636 if (!hw->phy.ops.acquire) in igc_read_phy_reg_m88() 646 hw->phy.ops.release(hw); in igc_read_phy_reg_m88() 666 if (!hw->phy.ops.acquire) in igc_write_phy_reg_m88() 676 hw->phy.ops.release(hw); in igc_write_phy_reg_m88() 737 hw->phy.ops.release(hw); in __igc_read_phy_reg_igp() 806 hw->phy.ops.release(hw); in __igc_write_phy_reg_igp() 879 hw->phy.ops.release(hw); in __igc_read_kmrn_reg() 951 hw->phy.ops.release(hw); in __igc_write_kmrn_reg() [all …]
|
| /f-stack/freebsd/kern/ |
| H A D | subr_kobj.c | 109 if (cls->ops) in kobj_class_compile_common() 125 ops->cls = cls; in kobj_class_compile_common() 126 cls->ops = ops; in kobj_class_compile_common() 132 kobj_ops_t ops; in kobj_class_compile1() local 137 if (ops == NULL) in kobj_class_compile1() 146 if (cls->ops) { in kobj_class_compile1() 235 void* ops = NULL; in kobj_class_free() local 253 ops = cls->ops; in kobj_class_free() 259 if (ops) in kobj_class_free() 267 obj->ops = cls->ops; in kobj_init_common() [all …]
|
| /f-stack/dpdk/drivers/crypto/scheduler/ |
| H A D | scheduler_pkt_size_distr.c | 57 rte_prefetch0(ops[i]->sym); in schedule_enqueue() 62 rte_prefetch0(ops[i + 4]->sym); in schedule_enqueue() 64 rte_prefetch0(ops[i + 5]->sym); in schedule_enqueue() 66 rte_prefetch0(ops[i + 6]->sym); in schedule_enqueue() 68 rte_prefetch0(ops[i + 7]->sym); in schedule_enqueue() 76 ops[i]->sym->auth.data.length; in schedule_enqueue() 94 ops[i+1]->sym->auth.data.length; in schedule_enqueue() 108 ops[i+2]->sym->auth.data.length; in schedule_enqueue() 138 ops[i]->sym->auth.data.length; in schedule_enqueue() 201 worker->qp_id, ops, nb_ops); in schedule_dequeue() [all …]
|
| /f-stack/dpdk/drivers/raw/ifpga/base/ |
| H A D | opae_hw_api.c | 32 br->ops = ops; in opae_bridge_alloc() 51 if (br->ops && br->ops->reset) in opae_bridge_reset() 79 acc->ops = ops; in opae_accelerator_alloc() 103 if (acc->ops && acc->ops->read) in opae_acc_reg_read() 125 if (acc->ops && acc->ops->write) in opae_acc_reg_write() 143 if (acc->ops && acc->ops->get_info) in opae_acc_get_info() 162 if (acc->ops && acc->ops->get_region_info) in opae_acc_get_region_info() 186 if (acc->ops && acc->ops->set_irq) in opae_acc_set_irq() 205 if (acc->ops && acc->ops->get_uuid) in opae_acc_get_uuid() 232 mgr->ops = ops; in opae_manager_alloc() [all …]
|
| /f-stack/dpdk/drivers/net/ixgbe/ |
| H A D | ixgbe_bypass.c | 60 FUNC_PTR_OR_RET(adapter->bps.ops.bypass_set); in ixgbe_bypass_set_time() 94 adapter->bps.ops.bypass_rw = &ixgbe_bypass_rw_generic; in ixgbe_bypass_init() 96 adapter->bps.ops.bypass_set = &ixgbe_bypass_set_generic; in ixgbe_bypass_init() 103 hw->mac.ops.disable_tx_laser = NULL; in ixgbe_bypass_init() 104 hw->mac.ops.enable_tx_laser = NULL; in ixgbe_bypass_init() 105 hw->mac.ops.flap_tx_laser = NULL; in ixgbe_bypass_init() 121 ret_val = adapter->bps.ops.bypass_rw(hw, cmd, &by_ctl); in ixgbe_bypass_state_show() 172 ret_val = adapter->bps.ops.bypass_rw(hw, cmd, &by_ctl); in ixgbe_bypass_event_show() 293 ret_val = adapter->bps.ops.bypass_rw(hw, cmd, &status); in ixgbe_bypass_ver_show() 302 ret_val = adapter->bps.ops.bypass_rw(hw, cmd, &status); in ixgbe_bypass_ver_show() [all …]
|
| /f-stack/dpdk/drivers/crypto/zuc/ |
| H A D | rte_zuc_pmd.c | 188 || ((ops[i]->sym->cipher.data.offset in process_zuc_cipher_op() 199 (ops[i]->sym->m_dst != NULL && in process_zuc_cipher_op() 201 ops[i]->sym->m_dst))) { in process_zuc_cipher_op() 211 (ops[i]->sym->cipher.data.offset >> 3); in process_zuc_cipher_op() 212 dst[i] = ops[i]->sym->m_dst ? in process_zuc_cipher_op() 261 (ops[i]->sym->auth.data.offset >> 3); in process_zuc_hash_op() 341 memset(ops[i]->sym->session, 0, in process_ops() 343 ops[i]->sym->session)); in process_ops() 346 ops[i]->sym->session = NULL; in process_ops() 351 (void **)ops, processed_ops, NULL); in process_ops() [all …]
|
| /f-stack/dpdk/lib/librte_security/ |
| H A D | rte_security.c | 58 if (instance->ops->session_create(instance->device, conf, in rte_security_session_create() 73 RTE_PTR_CHAIN3_OR_ERR_RET(instance, ops, session_update, -EINVAL, in rte_security_session_update() 84 RTE_PTR_CHAIN3_OR_ERR_RET(instance, ops, session_get_size, 0, 0); in rte_security_session_get_size() 86 return instance->ops->session_get_size(instance->device); in rte_security_session_get_size() 112 ret = instance->ops->session_destroy(instance->device, sess); in rte_security_session_destroy() 132 RTE_PTR_OR_ERR_RET(instance->ops, -EINVAL); in rte_security_set_pkt_metadata() 135 return instance->ops->set_pkt_metadata(instance->device, in rte_security_set_pkt_metadata() 146 RTE_PTR_OR_ERR_RET(instance->ops, NULL); in rte_security_get_userdata() 148 RTE_FUNC_PTR_OR_ERR_RET(*instance->ops->get_userdata, NULL); in rte_security_get_userdata() 149 if (instance->ops->get_userdata(instance->device, md, &userdata)) in rte_security_get_userdata() [all …]
|
| /f-stack/dpdk/drivers/crypto/aesni_gcm/ |
| H A D | aesni_gcm_pmd.c | 22 s->ops.pre = gcm_ops->pre; in set_func_ops() 23 s->ops.init = gcm_ops->init; in set_func_ops() 27 s->ops.cipher = gcm_ops->enc; in set_func_ops() 28 s->ops.update = gcm_ops->update_enc; in set_func_ops() 29 s->ops.finalize = gcm_ops->finalize_enc; in set_func_ops() 32 s->ops.cipher = gcm_ops->dec; in set_func_ops() 33 s->ops.update = gcm_ops->update_dec; in set_func_ops() 34 s->ops.finalize = gcm_ops->finalize_dec; in set_func_ops() 38 s->ops.finalize = gcm_ops->finalize_enc; in set_func_ops() 736 (void **)ops, nb_ops, NULL); in aesni_gcm_pmd_dequeue_burst() [all …]
|
| /f-stack/dpdk/lib/librte_vhost/ |
| H A D | vdpa.c | 73 struct rte_vdpa_dev_ops *ops) in rte_vdpa_register_device() argument 77 if (ops == NULL) in rte_vdpa_register_device() 81 if (!ops->get_queue_num || !ops->get_features || in rte_vdpa_register_device() 82 !ops->get_protocol_features || !ops->dev_conf || in rte_vdpa_register_device() 83 !ops->dev_close || !ops->set_vring_state || in rte_vdpa_register_device() 84 !ops->set_features) { in rte_vdpa_register_device() 103 dev->ops = ops; in rte_vdpa_register_device() 237 if (dev == NULL || dev->ops == NULL || dev->ops->get_queue_num == NULL) in rte_vdpa_get_queue_num() 246 if (dev == NULL || dev->ops == NULL || dev->ops->get_features == NULL) in rte_vdpa_get_features() 255 if (dev == NULL || dev->ops == NULL || in rte_vdpa_get_protocol_features() [all …]
|