| /freebsd/sys/contrib/dev/iwlwifi/ |
| H A D | iwl-trans.c | 12 #include "iwl-trans.h" 101 static void iwl_trans_schedule_reprobe(struct iwl_trans *trans, in iwl_trans_schedule_reprobe() argument 112 IWL_ERR(trans, "Module is being unloaded - abort\n"); in iwl_trans_schedule_reprobe() 121 reprobe->dev = get_device(trans->dev); in iwl_trans_schedule_reprobe() 129 iwl_trans_determine_restart_mode(struct iwl_trans *trans) in iwl_trans_determine_restart_mode() argument 157 if (trans->restart.mode.type == IWL_ERR_TYPE_TOP_RESET_FAILED) in iwl_trans_determine_restart_mode() 160 if (trans->request_top_reset) { in iwl_trans_determine_restart_mode() 161 trans->request_top_reset = 0; in iwl_trans_determine_restart_mode() 162 if (trans->mac_cfg->device_family >= IWL_DEVICE_FAMILY_SC) in iwl_trans_determine_restart_mode() 167 if (trans->mac_cfg->device_family >= IWL_DEVICE_FAMILY_SC) { in iwl_trans_determine_restart_mode() [all …]
|
| H A D | iwl-io.c | 17 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val) in iwl_write8() argument 19 trace_iwlwifi_dev_iowrite8(trans->dev, ofs, val); in iwl_write8() 20 iwl_trans_write8(trans, ofs, val); in iwl_write8() 24 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val) in iwl_write32() argument 26 trace_iwlwifi_dev_iowrite32(trans->dev, ofs, val); in iwl_write32() 27 iwl_trans_write32(trans, ofs, val); in iwl_write32() 31 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val) in iwl_write64() argument 33 trace_iwlwifi_dev_iowrite64(trans->dev, ofs, val); in iwl_write64() 34 iwl_trans_write32(trans, ofs, lower_32_bits(val)); in iwl_write64() 35 iwl_trans_write32(trans, ofs + 4, upper_32_bits(val)); in iwl_write64() [all …]
|
| H A D | iwl-io.h | 9 #include "iwl-trans.h" 11 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val); 12 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val); 13 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val); 14 u32 iwl_read32(struct iwl_trans *trans, u32 ofs); 16 static inline void iwl_set_bit(struct iwl_trans *trans, u32 reg, u32 mask) in iwl_set_bit() argument 18 iwl_trans_set_bits_mask(trans, reg, mask, mask); in iwl_set_bit() 21 static inline void iwl_clear_bit(struct iwl_trans *trans, u32 reg, u32 mask) in iwl_clear_bit() argument 23 iwl_trans_set_bits_mask(trans, reg, mask, 0); in iwl_clear_bit() 26 int iwl_poll_bits_mask(struct iwl_trans *trans, u32 addr, [all …]
|
| H A D | iwl-eeprom-read.c | |
| H A D | iwl-trans.h | 65 #define IWL_TRANS_FW_DBG_DOMAIN(trans) IWL_FW_INI_DOMAIN_ALWAYS_ON argument 309 * @STATUS_TRANS_DEAD: trans is dead - avoid any read/write operation 771 * @trans: pointer back to transport (for timer) 816 struct iwl_trans *trans; member 873 * @mac_cfg: the trans-specific configuration part 951 /* pointer to trans specific struct */ 956 const char *iwl_get_cmd_string(struct iwl_trans *trans, u32 id); 958 void iwl_trans_op_mode_enter(struct iwl_trans *trans, 961 int iwl_trans_start_hw(struct iwl_trans *trans); 963 void iwl_trans_op_mode_leave(struct iwl_trans *trans); [all …]
|
| H A D | iwl-dbg-tlv.c | 7 #include "iwl-trans.h" 99 static int iwl_dbg_tlv_alloc_debug_info(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_debug_info() argument 113 IWL_DEBUG_FW(trans, "WRT: Loading debug cfg: %s\n", in iwl_dbg_tlv_alloc_debug_info() 116 if (!iwl_dbg_tlv_add(tlv, &trans->dbg.debug_info_tlv_list)) in iwl_dbg_tlv_alloc_debug_info() 121 static int iwl_dbg_tlv_alloc_buf_alloc(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_buf_alloc() argument 152 IWL_ERR(trans, "WRT: Invalid DRAM buffer allocation requested size (0)\n"); in iwl_dbg_tlv_alloc_buf_alloc() 156 trans->dbg.fw_mon_cfg[alloc_id] = *alloc; in iwl_dbg_tlv_alloc_buf_alloc() 160 IWL_ERR(trans, in iwl_dbg_tlv_alloc_buf_alloc() 166 static int iwl_dbg_tlv_alloc_hcmd(struct iwl_trans *trans, in iwl_dbg_tlv_alloc_hcmd() argument 181 IWL_ERR(trans, in iwl_dbg_tlv_alloc_hcmd() [all …]
|
| H A D | iwl-scd.h | 8 #include "iwl-trans.h" 13 static inline void iwl_scd_txq_set_chain(struct iwl_trans *trans, in iwl_scd_txq_set_chain() argument 16 iwl_set_bits_prph(trans, SCD_QUEUECHAIN_SEL, BIT(txq_id)); in iwl_scd_txq_set_chain() 19 static inline void iwl_scd_txq_enable_agg(struct iwl_trans *trans, in iwl_scd_txq_enable_agg() argument 22 iwl_set_bits_prph(trans, SCD_AGGR_SEL, BIT(txq_id)); in iwl_scd_txq_enable_agg() 25 static inline void iwl_scd_txq_disable_agg(struct iwl_trans *trans, in iwl_scd_txq_disable_agg() argument 28 iwl_clear_bits_prph(trans, SCD_AGGR_SEL, BIT(txq_id)); in iwl_scd_txq_disable_agg() 31 static inline void iwl_scd_disable_agg(struct iwl_trans *trans) in iwl_scd_disable_agg() argument 33 iwl_set_bits_prph(trans, SCD_AGGR_SEL, 0); in iwl_scd_disable_agg() 36 static inline void iwl_scd_activate_fifos(struct iwl_trans *trans) in iwl_scd_activate_fifos() argument [all …]
|
| H A D | iwl-nvm-parse.c | 404 static int iwl_init_channel_map(struct iwl_trans *trans, in iwl_init_channel_map() argument 410 const struct iwl_rf_cfg *cfg = trans->cfg; in iwl_init_channel_map() 411 struct device *dev = trans->dev; in iwl_init_channel_map() 506 static void iwl_init_vht_hw_capab(struct iwl_trans *trans, in iwl_init_vht_hw_capab() argument 511 const struct iwl_rf_cfg *cfg = trans->cfg; in iwl_init_vht_hw_capab() 524 if (!trans->cfg->ht_params.stbc) in iwl_init_vht_hw_capab() 542 if (trans->cfg->ht_params.stbc && num_tx_ants > 1) in iwl_init_vht_hw_capab() 555 if (trans->mac_cfg->mq_rx_supported && !fips_enabled) in iwl_init_vht_hw_capab() 562 if (trans->mac_cfg->mq_rx_supported && !fips_enabled) in iwl_init_vht_hw_capab() 860 static void iwl_init_he_6ghz_capa(struct iwl_trans *trans, in iwl_init_he_6ghz_capa() argument [all …]
|
| /freebsd/sys/contrib/dev/iwlwifi/pcie/gen1_2/ |
| H A D | trans-gen2.c | 9 #include "iwl-trans.h" 23 int iwl_pcie_gen2_apm_init(struct iwl_trans *trans) in iwl_pcie_gen2_apm_init() argument 27 IWL_DEBUG_INFO(trans, "Init card's basic functions\n"); in iwl_pcie_gen2_apm_init() 38 iwl_set_bit(trans, CSR_GIO_CHICKEN_BITS, in iwl_pcie_gen2_apm_init() 42 iwl_set_bit(trans, CSR_DBG_HPET_MEM_REG, CSR_DBG_HPET_MEM_REG_VAL); in iwl_pcie_gen2_apm_init() 48 iwl_set_bit(trans, CSR_HW_IF_CONFIG_REG, in iwl_pcie_gen2_apm_init() 51 iwl_pcie_apm_config(trans); in iwl_pcie_gen2_apm_init() 53 ret = iwl_finish_nic_init(trans); in iwl_pcie_gen2_apm_init() 57 set_bit(STATUS_DEVICE_ENABLED, &trans->status); in iwl_pcie_gen2_apm_init() 62 static void iwl_pcie_gen2_apm_stop(struct iwl_trans *trans, bool op_mode_leave) in iwl_pcie_gen2_apm_stop() argument [all …]
|
| H A D | trans.c | 23 #include "iwl-trans.h" 43 int iwl_trans_pcie_sw_reset(struct iwl_trans *trans, bool retake_ownership) in iwl_trans_pcie_sw_reset() argument 46 if (trans->mac_cfg->device_family >= IWL_DEVICE_FAMILY_BZ) { in iwl_trans_pcie_sw_reset() 47 iwl_set_bit(trans, CSR_GP_CNTRL, in iwl_trans_pcie_sw_reset() 51 iwl_set_bit(trans, CSR_RESET, in iwl_trans_pcie_sw_reset() 57 return iwl_pcie_prepare_card_hw(trans); in iwl_trans_pcie_sw_reset() 62 static void iwl_pcie_free_fw_monitor(struct iwl_trans *trans) in iwl_pcie_free_fw_monitor() argument 64 struct iwl_dram_data *fw_mon = &trans->dbg.fw_mon; in iwl_pcie_free_fw_monitor() 69 dma_free_coherent(trans->dev, fw_mon->size, fw_mon->block, in iwl_pcie_free_fw_monitor() 77 static void iwl_pcie_alloc_fw_monitor_block(struct iwl_trans *trans, in iwl_pcie_alloc_fw_monitor_block() argument [all …]
|
| H A D | tx.c | 59 int iwl_pcie_alloc_dma_ptr(struct iwl_trans *trans, in iwl_pcie_alloc_dma_ptr() argument 65 ptr->addr = dma_alloc_coherent(trans->dev, size, in iwl_pcie_alloc_dma_ptr() 73 void iwl_pcie_free_dma_ptr(struct iwl_trans *trans, struct iwl_dma_ptr *ptr) in iwl_pcie_free_dma_ptr() argument 78 dma_free_coherent(trans->dev, ptr->size, ptr->addr, ptr->dma); in iwl_pcie_free_dma_ptr() 85 static void iwl_pcie_txq_inc_wr_ptr(struct iwl_trans *trans, in iwl_pcie_txq_inc_wr_ptr() argument 99 if (!trans->mac_cfg->base->shadow_reg_enable && in iwl_pcie_txq_inc_wr_ptr() 100 txq_id != trans->conf.cmd_queue && in iwl_pcie_txq_inc_wr_ptr() 101 test_bit(STATUS_TPOWER_PMI, &trans->status)) { in iwl_pcie_txq_inc_wr_ptr() 107 reg = iwl_read32(trans, CSR_UCODE_DRV_GP1); in iwl_pcie_txq_inc_wr_ptr() 110 IWL_DEBUG_INFO(trans, "Tx queue %d requesting wakeup, GP1 = 0x%x\n", in iwl_pcie_txq_inc_wr_ptr() [all …]
|
| H A D | internal.h | 20 #include "iwl-trans.h" 191 * @trans: transport pointer (for configuration) 195 static inline u16 iwl_get_closed_rb_stts(struct iwl_trans *trans, in iwl_get_closed_rb_stts() argument 198 if (trans->mac_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { in iwl_get_closed_rb_stts() 340 * @trans: pointer to the generic transport area 421 struct iwl_trans *trans; member 512 IWL_TRANS_GET_PCIE_TRANS(struct iwl_trans *trans) in IWL_TRANS_GET_PCIE_TRANS() argument 514 return (void *)trans->trans_specific; in IWL_TRANS_GET_PCIE_TRANS() 517 static inline void iwl_pcie_clear_irq(struct iwl_trans *trans, int queue) in iwl_pcie_clear_irq() argument 527 iwl_write32(trans, CSR_MSIX_AUTOMASK_ST_AD, BIT(queue)); in iwl_pcie_clear_irq() [all …]
|
| H A D | rx.c | 145 int iwl_pcie_rx_stop(struct iwl_trans *trans) in iwl_pcie_rx_stop() argument 147 if (trans->mac_cfg->device_family >= IWL_DEVICE_FAMILY_AX210) { in iwl_pcie_rx_stop() 149 iwl_write_umac_prph(trans, RFH_RXF_DMA_CFG_AX210, 0); in iwl_pcie_rx_stop() 150 return iwl_poll_umac_prph_bit(trans, RFH_GEN_STATUS_AX210, in iwl_pcie_rx_stop() 152 } else if (trans->mac_cfg->mq_rx_supported) { in iwl_pcie_rx_stop() 153 iwl_write_prph(trans, RFH_RXF_DMA_CFG, 0); in iwl_pcie_rx_stop() 154 return iwl_poll_prph_bit(trans, RFH_GEN_STATUS, in iwl_pcie_rx_stop() 157 iwl_write_direct32(trans, FH_MEM_RCSR_CHNL0_CONFIG_REG, 0); in iwl_pcie_rx_stop() 158 return iwl_poll_direct_bit(trans, FH_MEM_RSSR_RX_STATUS_REG, in iwl_pcie_rx_stop() 167 static void iwl_pcie_rxq_inc_wr_ptr(struct iwl_trans *trans, in iwl_pcie_rxq_inc_wr_ptr() argument [all …]
|
| H A D | tx-gen2.c | 20 static struct page *get_workaround_page(struct iwl_trans *trans, in get_workaround_page() argument 28 page_ptr = (void *)((u8 *)skb->cb + trans->conf.cb_data_offs); in get_workaround_page() 37 phys = dma_map_page_attrs(trans->dev, ret, 0, PAGE_SIZE, in get_workaround_page() 39 if (unlikely(dma_mapping_error(trans->dev, phys))) { in get_workaround_page() 61 static int iwl_txq_gen2_set_tb_with_wa(struct iwl_trans *trans, in iwl_txq_gen2_set_tb_with_wa() argument 72 if (unlikely(dma_mapping_error(trans->dev, phys))) in iwl_txq_gen2_set_tb_with_wa() 76 ret = iwl_txq_gen2_set_tb(trans, tfd, phys, len); in iwl_txq_gen2_set_tb_with_wa() 102 page = get_workaround_page(trans, skb); in iwl_txq_gen2_set_tb_with_wa() 121 phys = dma_map_single(trans->dev, page_address(page), len, in iwl_txq_gen2_set_tb_with_wa() 123 if (unlikely(dma_mapping_error(trans->dev, phys))) in iwl_txq_gen2_set_tb_with_wa() [all …]
|
| /freebsd/sys/contrib/dev/iwlwifi/pcie/ |
| H A D | ctxt-info-v2.c | 6 #include "iwl-trans.h" 33 iwl_pcie_ctxt_info_dbg_enable(struct iwl_trans *trans, in iwl_pcie_ctxt_info_dbg_enable() argument 41 if (!iwl_trans_dbg_ini_valid(trans)) { in iwl_pcie_ctxt_info_dbg_enable() 42 struct iwl_dram_data *fw_mon = &trans->dbg.fw_mon; in iwl_pcie_ctxt_info_dbg_enable() 44 iwl_pcie_alloc_fw_monitor(trans, 0); in iwl_pcie_ctxt_info_dbg_enable() 49 IWL_DEBUG_FW(trans, in iwl_pcie_ctxt_info_dbg_enable() 59 fw_mon_cfg = &trans->dbg.fw_mon_cfg[alloc_id]; in iwl_pcie_ctxt_info_dbg_enable() 64 IWL_DEBUG_FW(trans, in iwl_pcie_ctxt_info_dbg_enable() 70 IWL_DEBUG_FW(trans, in iwl_pcie_ctxt_info_dbg_enable() 75 if (trans->dbg.fw_mon_ini[alloc_id].num_frags) { in iwl_pcie_ctxt_info_dbg_enable() [all …]
|
| H A D | ctxt-info.c | 6 #include "iwl-trans.h" 12 static void *_iwl_pcie_ctxt_info_dma_alloc_coherent(struct iwl_trans *trans, in _iwl_pcie_ctxt_info_dma_alloc_coherent() argument 23 result = dma_alloc_coherent(trans->dev, size, phys, GFP_KERNEL); in _iwl_pcie_ctxt_info_dma_alloc_coherent() 32 result = _iwl_pcie_ctxt_info_dma_alloc_coherent(trans, size, in _iwl_pcie_ctxt_info_dma_alloc_coherent() 35 dma_free_coherent(trans->dev, size, old, oldphys); in _iwl_pcie_ctxt_info_dma_alloc_coherent() 41 void *iwl_pcie_ctxt_info_dma_alloc_coherent(struct iwl_trans *trans, in iwl_pcie_ctxt_info_dma_alloc_coherent() argument 45 return _iwl_pcie_ctxt_info_dma_alloc_coherent(trans, size, phys, 0); in iwl_pcie_ctxt_info_dma_alloc_coherent() 48 int iwl_pcie_ctxt_info_alloc_dma(struct iwl_trans *trans, in iwl_pcie_ctxt_info_alloc_dma() argument 52 dram->block = iwl_pcie_ctxt_info_dma_alloc_coherent(trans, len, in iwl_pcie_ctxt_info_alloc_dma() 63 void iwl_pcie_ctxt_info_free_paging(struct iwl_trans *trans) in iwl_pcie_ctxt_info_free_paging() argument [all …]
|
| /freebsd/sys/contrib/dev/iwlwifi/queue/ |
| H A D | tx.c | |
| H A D | tx.h | |
| /freebsd/sys/contrib/dev/iwlwifi/fw/ |
| H A D | pnvm.c | 26 struct iwl_trans *trans = (struct iwl_trans *)data; in iwl_pnvm_complete_fn() local 29 IWL_DEBUG_FW(trans, in iwl_pnvm_complete_fn() 36 static int iwl_pnvm_handle_section(struct iwl_trans *trans, const u8 *data, in iwl_pnvm_handle_section() argument 45 IWL_DEBUG_FW(trans, "Handling PNVM section\n"); in iwl_pnvm_handle_section() 59 IWL_ERR(trans, "invalid TLV len: %zd/%u\n", in iwl_pnvm_handle_section() 69 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section() 77 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section() 84 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section() 96 IWL_DEBUG_FW(trans, in iwl_pnvm_handle_section() 100 if (mac_type == CSR_HW_REV_TYPE(trans->info.hw_rev) && in iwl_pnvm_handle_section() [all …]
|
| H A D | dump.c | 119 struct iwl_trans *trans = fwrt->trans; in iwl_fwrt_dump_umac_error_log() local 121 u32 base = fwrt->trans->dbg.umac_error_event_table; in iwl_fwrt_dump_umac_error_log() 125 !(fwrt->trans->dbg.error_event_table_tlv_status & in iwl_fwrt_dump_umac_error_log() 129 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_umac_error_log() 135 !fwrt->trans->dbg.dump_file_name_ext_valid) { in iwl_fwrt_dump_umac_error_log() 136 fwrt->trans->dbg.dump_file_name_ext_valid = true; in iwl_fwrt_dump_umac_error_log() 137 snprintf(fwrt->trans->dbg.dump_file_name_ext, IWL_FW_INI_MAX_NAME, in iwl_fwrt_dump_umac_error_log() 142 IWL_ERR(trans, "Start IWL Error Log Dump:\n"); in iwl_fwrt_dump_umac_error_log() 143 IWL_ERR(trans, "Transport status: 0x%08lX, valid: %d\n", in iwl_fwrt_dump_umac_error_log() 144 fwrt->trans->status, table.valid); in iwl_fwrt_dump_umac_error_log() [all …]
|
| H A D | uefi.c | 60 void *iwl_uefi_get_pnvm(struct iwl_trans *trans, size_t *len) in iwl_uefi_get_pnvm() argument 70 IWL_DEBUG_FW(trans, in iwl_uefi_get_pnvm() 76 IWL_DEBUG_FW(trans, "Read PNVM from UEFI with size %lu\n", package_size); in iwl_uefi_get_pnvm() 83 iwl_uefi_get_verified_variable_guid(struct iwl_trans *trans, in iwl_uefi_get_verified_variable_guid() argument 96 IWL_DEBUG_RADIO(trans, in iwl_uefi_get_verified_variable_guid() 103 IWL_DEBUG_RADIO(trans, in iwl_uefi_get_verified_variable_guid() 110 IWL_DEBUG_RADIO(trans, "%s from UEFI with size %lu\n", var_name, in iwl_uefi_get_verified_variable_guid() 119 iwl_uefi_get_verified_variable(struct iwl_trans *trans, in iwl_uefi_get_verified_variable() argument 125 return iwl_uefi_get_verified_variable_guid(trans, &IWL_EFI_WIFI_GUID, in iwl_uefi_get_verified_variable() 130 int iwl_uefi_handle_tlv_mem_desc(struct iwl_trans *trans, const u8 *data, in iwl_uefi_handle_tlv_mem_desc() argument [all …]
|
| H A D | dbg.c | 42 if (!iwl_trans_grab_nic_access(fwrt->trans)) in iwl_read_radio_regs() 52 iwl_write_prph_no_grab(fwrt->trans, RSP_RADIO_CMD, rd_cmd); in iwl_read_radio_regs() 53 *pos = (u8)iwl_read_prph_no_grab(fwrt->trans, RSP_RADIO_RDDAT); in iwl_read_radio_regs() 60 iwl_trans_release_nic_access(fwrt->trans); in iwl_read_radio_regs() 86 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf() 89 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf() 92 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf() 95 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf() 98 cpu_to_le32(iwl_trans_read_prph(fwrt->trans, in iwl_fwrt_dump_rxf() 102 iwl_trans_write_prph(fwrt->trans, RXF_SET_FENCE_MODE + offset, 0x1); in iwl_fwrt_dump_rxf() [all …]
|
| H A D | init.c | 16 void iwl_fw_runtime_init(struct iwl_fw_runtime *fwrt, struct iwl_trans *trans, in iwl_fw_runtime_init() argument 26 fwrt->trans = trans; in iwl_fw_runtime_init() 28 fwrt->dev = trans->dev; in iwl_fw_runtime_init() 75 if (!fwrt->trans->mac_cfg->integrated) in iwl_set_soc_latency() 87 if (fwrt->trans->mac_cfg->ltr_delay != IWL_CFG_TRANS_LTR_DELAY_NONE && in iwl_set_soc_latency() 88 !WARN_ON(!fwrt->trans->mac_cfg->integrated)) in iwl_set_soc_latency() 89 cmd.flags |= le32_encode_bits(fwrt->trans->mac_cfg->ltr_delay, in iwl_set_soc_latency() 94 fwrt->trans->mac_cfg->low_latency_xtal) in iwl_set_soc_latency() 97 cmd.latency = cpu_to_le32(fwrt->trans->mac_cfg->xtal_latency); in iwl_set_soc_latency() 99 ret = iwl_trans_send_cmd(fwrt->trans, &hcmd); in iwl_set_soc_latency() [all …]
|
| /freebsd/contrib/bsnmp/tests/ |
| H A D | snmp_parse_server.cc | 29 REQUIRE(sc.trans == SNMP_TRANS_UDP); 43 REQUIRE(sc.trans == SNMP_TRANS_UDP); 52 REQUIRE(sc.trans == SNMP_TRANS_UDP); 61 REQUIRE(sc.trans == SNMP_TRANS_UDP); 70 REQUIRE(sc.trans == SNMP_TRANS_LOC_DGRAM); 79 REQUIRE(sc.trans == SNMP_TRANS_LOC_DGRAM); 95 REQUIRE(sc.trans == SNMP_TRANS_UDP6); 105 REQUIRE(sc.trans == SNMP_TRANS_UDP6); 115 REQUIRE(sc.trans == SNMP_TRANS_UDP6); 156 REQUIRE(sc.trans == SNMP_TRANS_UDP); [all …]
|
| /freebsd/sys/dev/mlx5/mlx5_fpga/ |
| H A D | mlx5fpga_trans.c | 33 #include <dev/mlx5/mlx5_fpga/trans.h> 66 return &fdev->trans->transactions[tid]; in find_tid() 74 spin_lock_irqsave(&fdev->trans->lock, flags); in alloc_tid() 76 if (list_empty(&fdev->trans->free_queue)) { in alloc_tid() 82 ret = list_first_entry(&fdev->trans->free_queue, in alloc_tid() 88 spin_unlock_irqrestore(&fdev->trans->lock, flags); in alloc_tid() 97 spin_lock_irqsave(&fdev->trans->lock, flags); in free_tid() 98 list_add_tail(&trans_priv->list_item, &fdev->trans->free_queue); in free_tid() 99 spin_unlock_irqrestore(&fdev->trans->lock, flags); in free_tid() 111 spin_lock_irqsave(&fdev->trans->lock, flags); in trans_complete() [all …]
|