Searched refs:enp (Results 1 - 25 of 37) sorted by relevance

12

/freebsd-9.3-release/sys/dev/sfxge/common/
H A Defx_nvram.c75 __in efx_nic_t *enp)
80 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
81 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE);
82 EFSYS_ASSERT(!(enp->en_mod_flags & EFX_MOD_NVRAM));
84 switch (enp->en_family) {
103 enp->en_envop = envop;
104 enp->en_mod_flags |= EFX_MOD_NVRAM;
118 __in efx_nic_t *enp)
120 efx_nvram_ops_t *envop = enp->en_envop;
123 EFSYS_ASSERT3U(enp
74 efx_nvram_init( __in efx_nic_t *enp) argument
117 efx_nvram_test( __in efx_nic_t *enp) argument
140 efx_nvram_size( __in efx_nic_t *enp, __in efx_nvram_type_t type, __out size_t *sizep) argument
165 efx_nvram_get_version( __in efx_nic_t *enp, __in efx_nvram_type_t type, __out uint32_t *subtypep, __out_ecount(4) uint16_t version[4]) argument
192 efx_nvram_rw_start( __in efx_nic_t *enp, __in efx_nvram_type_t type, __out_opt size_t *chunk_sizep) argument
222 efx_nvram_read_chunk( __in efx_nic_t *enp, __in efx_nvram_type_t type, __in unsigned int offset, __out_bcount(size) caddr_t data, __in size_t size) argument
252 efx_nvram_erase( __in efx_nic_t *enp, __in efx_nvram_type_t type) argument
279 efx_nvram_write_chunk( __in efx_nic_t *enp, __in efx_nvram_type_t type, __in unsigned int offset, __in_bcount(size) caddr_t data, __in size_t size) argument
309 efx_nvram_rw_finish( __in efx_nic_t *enp, __in efx_nvram_type_t type) argument
329 efx_nvram_set_version( __in efx_nic_t *enp, __in efx_nvram_type_t type, __out uint16_t version[4]) argument
362 efx_nvram_fini( __in efx_nic_t *enp) argument
[all...]
H A Defx_port.c36 __in efx_nic_t *enp)
38 efx_port_t *epp = &(enp->en_port);
42 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
43 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE);
44 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_NIC);
46 if (enp->en_mod_flags & EFX_MOD_PORT) {
51 enp->en_mod_flags |= EFX_MOD_PORT;
59 if ((rc = efx_mac_select(enp)) != 0)
62 epp->ep_emop->emo_reconfigure(enp);
69 if ((rc = epop->epo_power(enp, B_TRU
35 efx_port_init( __in efx_nic_t *enp) argument
97 efx_port_poll( __in efx_nic_t *enp, __out efx_link_mode_t *link_modep) argument
129 efx_port_loopback_set( __in efx_nic_t *enp, __in efx_link_mode_t link_mode, __in efx_loopback_type_t loopback_type) argument
190 efx_loopback_type_name( __in efx_nic_t *enp, __in efx_loopback_type_t type) argument
206 efx_port_fini( __in efx_nic_t *enp) argument
[all...]
H A Defx_intr.c37 __in efx_nic_t *enp,
41 efx_intr_t *eip = &(enp->en_intr);
45 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
46 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_NIC);
48 if (enp->en_mod_flags & EFX_MOD_INTR) {
53 enp->en_mod_flags |= EFX_MOD_INTR;
65 if (enp->en_family == EFX_FAMILY_SIENA &&
76 if (enp->en_family >= EFX_FAMILY_SIENA)
78 EFX_BAR_WRITEO(enp, FR_AZ_FATAL_INTR_REG_KER, &oword);
85 EFX_BAR_WRITEO(enp, FR_AZ_INT_ADR_REG_KE
36 efx_intr_init( __in efx_nic_t *enp, __in efx_intr_type_t type, __in efsys_mem_t *esmp) argument
96 efx_intr_enable( __in efx_nic_t *enp) argument
113 efx_intr_disable( __in efx_nic_t *enp) argument
129 efx_intr_disable_unlocked( __in efx_nic_t *enp) argument
145 efx_intr_trigger( __in efx_nic_t *enp, __in unsigned int level) argument
216 efx_intr_check_fatal( __in efx_nic_t *enp) argument
240 efx_intr_status_line( __in efx_nic_t *enp, __out boolean_t *fatalp, __out uint32_t *qmaskp) argument
267 efx_intr_status_message( __in efx_nic_t *enp, __in unsigned int message, __out boolean_t *fatalp) argument
284 efx_intr_fatal( __in efx_nic_t *enp) argument
343 efx_intr_fini( __in efx_nic_t *enp) argument
[all...]
H A Dsiena_impl.h55 __in efx_nic_t *enp);
61 __in efx_nic_t *enp);
67 __in efx_nic_t *enp);
71 __in efx_nic_t *enp);
77 __in efx_nic_t *enp);
83 __in efx_nic_t *enp);
87 __in efx_nic_t *enp);
93 __in efx_nic_t *enp);
99 __in efx_nic_t *enp,
109 __in efx_nic_t *enp,
[all...]
H A Dsiena_sram.c37 __in efx_nic_t *enp)
39 efx_nic_cfg_t *encp = &(enp->en_nic_cfg);
43 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
44 EFSYS_ASSERT(enp->en_family == EFX_FAMILY_SIENA);
51 EFX_BAR_WRITEO(enp, FR_AZ_SRM_TX_DC_CFG_REG, &oword);
54 EFX_BAR_WRITEO(enp, FR_AZ_TX_DC_CFG_REG, &oword);
58 EFX_BAR_WRITEO(enp, FR_AZ_SRM_RX_DC_CFG_REG, &oword);
61 EFX_BAR_WRITEO(enp, FR_AZ_RX_DC_CFG_REG, &oword);
65 EFX_BAR_WRITEO(enp, FR_AZ_RX_DC_PF_WM_REG, &oword);
69 EFX_BAR_WRITEO(enp, FR_AZ_SRM_UPD_EVQ_RE
36 siena_sram_init( __in efx_nic_t *enp) argument
75 siena_sram_test( __in efx_nic_t *enp, __in efx_sram_pattern_fn_t func) argument
[all...]
H A Defx_mon.c59 __in efx_nic_t *enp)
61 efx_nic_cfg_t *encp = &(enp->en_nic_cfg);
63 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
139 __in efx_nic_t *enp)
141 efx_nic_cfg_t *encp = &(enp->en_nic_cfg);
142 efx_mon_t *emp = &(enp->en_mon);
146 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
147 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE);
149 if (enp->en_mod_flags & EFX_MOD_MON) {
154 enp
58 efx_mon_name( __in efx_nic_t *enp) argument
138 efx_mon_init( __in efx_nic_t *enp) argument
221 efx_mon_stat_name( __in efx_nic_t *enp, __in efx_mon_stat_t id) argument
235 efx_mon_stats_update( __in efx_nic_t *enp, __in efsys_mem_t *esmp, __out_ecount(EFX_MON_NSTATS) efx_mon_stat_value_t *values) argument
252 efx_mon_fini( __in efx_nic_t *enp) argument
[all...]
H A Defx_nic.c119 __in efx_nic_t *enp)
131 EFX_BAR_TBL_WRITEO(enp, FR_AZ_DRIVER_REG, 0, &oword);
134 EFX_BAR_TBL_WRITEO(enp, FR_AZ_DRIVER_REG, 1, &oword);
136 EFX_BAR_TBL_READO(enp, FR_AZ_DRIVER_REG, 0, &oword);
142 EFX_BAR_TBL_READO(enp, FR_AZ_DRIVER_REG, 1, &oword);
154 EFX_BAR_TBL_WRITEO(enp, FR_AZ_DRIVER_REG, 0, &oword);
157 EFX_BAR_TBL_WRITEO(enp, FR_AZ_DRIVER_REG, 1, &oword);
159 EFX_BAR_TBL_READO(enp, FR_AZ_DRIVER_REG, 0, &oword);
165 EFX_BAR_TBL_READO(enp, FR_AZ_DRIVER_REG, 1, &oword);
225 efx_nic_t *enp; local
118 efx_nic_biu_test( __in efx_nic_t *enp) argument
289 efx_nic_probe( __in efx_nic_t *enp) argument
341 efx_nic_pcie_tune( __in efx_nic_t *enp, unsigned int nlanes) argument
357 efx_nic_pcie_extended_sync( __in efx_nic_t *enp) argument
375 efx_nic_init( __in efx_nic_t *enp) argument
405 efx_nic_fini( __in efx_nic_t *enp) argument
424 efx_nic_unprobe( __in efx_nic_t *enp) argument
448 efx_nic_destroy( __in efx_nic_t *enp) argument
470 efx_nic_reset( __in efx_nic_t *enp) argument
512 efx_nic_cfg_get( __in efx_nic_t *enp) argument
523 efx_nic_register_test( __in efx_nic_t *enp) argument
545 efx_nic_test_registers( __in efx_nic_t *enp, __in efx_register_set_t *rsp, __in size_t count) argument
622 efx_nic_test_tables( __in efx_nic_t *enp, __in efx_register_set_t *rsp, __in efx_pattern_type_t pattern, __in size_t count) argument
[all...]
H A Defx_phy.c261 __in efx_nic_t *enp)
263 efx_port_t *epp = &(enp->en_port);
264 efx_nic_cfg_t *encp = &(enp->en_nic_cfg);
268 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
274 switch (enp->en_family) {
340 __in efx_nic_t *enp)
342 efx_port_t *epp = &(enp->en_port);
345 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
346 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PORT);
348 return (epop->epo_verify(enp));
260 efx_phy_probe( __in efx_nic_t *enp) argument
339 efx_phy_verify( __in efx_nic_t *enp) argument
354 efx_phy_led_set( __in efx_nic_t *enp, __in efx_phy_led_mode_t mode) argument
397 efx_phy_adv_cap_get( __in efx_nic_t *enp, __in uint32_t flag, __out uint32_t *maskp) argument
424 efx_phy_adv_cap_set( __in efx_nic_t *enp, __in uint32_t mask) argument
460 efx_phy_lp_cap_get( __in efx_nic_t *enp, __out uint32_t *maskp) argument
473 efx_phy_oui_get( __in efx_nic_t *enp, __out uint32_t *ouip) argument
487 efx_phy_media_type_get( __in efx_nic_t *enp, __out efx_phy_media_type_t *typep) argument
559 efx_phy_stat_name( __in efx_nic_t *enp, __in efx_phy_stat_t type) argument
573 efx_phy_stats_update( __in efx_nic_t *enp, __in efsys_mem_t *esmp, __out_ecount(EFX_PHY_NSTATS) uint32_t *stat) argument
593 efx_phy_prop_name( __in efx_nic_t *enp, __in unsigned int id) argument
608 efx_phy_prop_get( __in efx_nic_t *enp, __in unsigned int id, __in uint32_t flags, __out uint32_t *valp) argument
624 efx_phy_prop_set( __in efx_nic_t *enp, __in unsigned int id, __in uint32_t val) argument
642 efx_phy_bist_start( __in efx_nic_t *enp, __in efx_phy_bist_type_t type) argument
678 efx_phy_bist_poll( __in efx_nic_t *enp, __in efx_phy_bist_type_t type, __out efx_phy_bist_result_t *resultp, __out_opt uint32_t *value_maskp, __out_ecount_opt(count) unsigned long *valuesp, __in size_t count) argument
718 efx_phy_bist_stop( __in efx_nic_t *enp, __in efx_phy_bist_type_t type) argument
742 efx_phy_unprobe( __in efx_nic_t *enp) argument
[all...]
H A Defx_mac.c114 __in efx_nic_t *enp,
117 efx_port_t *epp = &(enp->en_port);
122 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
123 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PORT);
138 if ((rc = emop->emo_reconfigure(enp)) != 0)
158 __in efx_nic_t *enp,
161 efx_port_t *epp = &(enp->en_port);
167 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
168 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PORT);
183 if ((rc = emop->emo_reconfigure(enp)) !
113 efx_mac_pdu_set( __in efx_nic_t *enp, __in size_t pdu) argument
157 efx_mac_addr_set( __in efx_nic_t *enp, __in uint8_t *addr) argument
202 efx_mac_filter_set( __in efx_nic_t *enp, __in boolean_t unicst, __in boolean_t brdcst) argument
237 efx_mac_drain( __in efx_nic_t *enp, __in boolean_t enabled) argument
276 efx_mac_up( __in efx_nic_t *enp, __out boolean_t *mac_upp) argument
299 efx_mac_fcntl_set( __in efx_nic_t *enp, __in unsigned int fcntl, __in boolean_t autoneg) argument
374 efx_mac_fcntl_get( __in efx_nic_t *enp, __out unsigned int *fcntl_wantedp, __out unsigned int *fcntl_linkp) argument
404 efx_mac_hash_set( __in efx_nic_t *enp, __in_ecount(EFX_MAC_HASH_BITS) unsigned int const *bucket) argument
507 efx_mac_stat_name( __in efx_nic_t *enp, __in unsigned int id) argument
521 efx_mac_stats_upload( __in efx_nic_t *enp, __in efsys_mem_t *esmp) argument
552 efx_mac_stats_periodic( __in efx_nic_t *enp, __in efsys_mem_t *esmp, __in uint16_t period_ms, __in boolean_t events) argument
587 efx_mac_stats_update( __in efx_nic_t *enp, __in efsys_mem_t *esmp, __inout_ecount(EFX_MAC_NSTATS) efsys_stat_t *essp, __in uint32_t *generationp) argument
611 efx_mac_select( __in efx_nic_t *enp) argument
[all...]
H A Dsiena_vpd.c41 __in efx_nic_t *enp,
61 if ((rc = siena_nvram_partn_size(enp, partn, &size)) != 0)
64 EFSYS_KMEM_ALLOC(enp->en_esip, size, scfg);
70 if ((rc = siena_nvram_partn_read(enp, partn, 0,
98 if ((rc = siena_nvram_partn_read(enp, partn, SIENA_NVRAM_CHUNK,
117 EFSYS_KMEM_ALLOC(enp->en_esip, vpd_length, svpd);
125 EFSYS_KMEM_FREE(enp->en_esip, size, scfg);
147 EFSYS_KMEM_FREE(enp->en_esip, size, scfg);
157 __in efx_nic_t *enp)
159 efx_mcdi_iface_t *emip = &(enp
40 siena_vpd_get_static( __in efx_nic_t *enp, __in unsigned int partn, __deref_out_bcount_opt(*sizep) caddr_t *svpdp, __out size_t *sizep) argument
156 siena_vpd_init( __in efx_nic_t *enp) argument
200 siena_vpd_size( __in efx_nic_t *enp, __out size_t *sizep) argument
234 siena_vpd_read( __in efx_nic_t *enp, __out_bcount(size) caddr_t data, __in size_t size) argument
286 siena_vpd_verify( __in efx_nic_t *enp, __in_bcount(size) caddr_t data, __in size_t size) argument
361 siena_vpd_reinit( __in efx_nic_t *enp, __in_bcount(size) caddr_t data, __in size_t size) argument
403 siena_vpd_get( __in efx_nic_t *enp, __in_bcount(size) caddr_t data, __in size_t size, __inout efx_vpd_value_t *evvp) argument
447 siena_vpd_set( __in efx_nic_t *enp, __in_bcount(size) caddr_t data, __in size_t size, __in efx_vpd_value_t *evvp) argument
484 siena_vpd_next( __in efx_nic_t *enp, __in_bcount(size) caddr_t data, __in size_t size, __out efx_vpd_value_t *evvp, __inout unsigned int *contp) argument
497 siena_vpd_write( __in efx_nic_t *enp, __in_bcount(size) caddr_t data, __in size_t size) argument
590 siena_vpd_fini( __in efx_nic_t *enp) argument
[all...]
H A Defx_mcdi.c55 __in efx_nic_t *enp,
59 efx_mcdi_iface_t *emip = &(enp->en_u.siena.enu_mip);
68 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
69 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_MCDI);
70 EFSYS_ASSERT3U(enp->en_features, &, EFX_FEATURE_MCDI);
98 EFSYS_LOCK(enp->en_eslp, state);
104 EFSYS_UNLOCK(enp->en_eslp, state);
118 EFX_BAR_TBL_WRITED(enp, FR_CZ_MC_TREG_SMEM, pdur, &dword, B_TRUE);
123 EFX_BAR_TBL_WRITED(enp, FR_CZ_MC_TREG_SMEM,
129 EFX_BAR_TBL_WRITED(enp, FR_CZ_MC_TREG_SME
54 efx_mcdi_request_start( __in efx_nic_t *enp, __in efx_mcdi_req_t *emrp, __in boolean_t ev_cpl) argument
133 efx_mcdi_request_copyout( __in efx_nic_t *enp, __in efx_mcdi_req_t *emrp) argument
192 efx_mcdi_raise_exception( __in efx_nic_t *enp, __in_opt efx_mcdi_req_t *emrp, __in int rc) argument
219 efx_mcdi_poll_reboot( __in efx_nic_t *enp) argument
248 efx_mcdi_request_poll( __in efx_nic_t *enp) argument
361 efx_mcdi_execute( __in efx_nic_t *enp, __in efx_mcdi_req_t *emrp) argument
376 efx_mcdi_ev_cpl( __in efx_nic_t *enp, __in unsigned int seq, __in unsigned int outlen, __in int errcode) argument
428 efx_mcdi_ev_death( __in efx_nic_t *enp, __in int rc) argument
479 efx_mcdi_version( __in efx_nic_t *enp, __out_ecount_opt(4) uint16_t versionp[4], __out_opt uint32_t *buildp, __out_opt efx_mcdi_boot_t *statusp) argument
586 efx_mcdi_init( __in efx_nic_t *enp, __in const efx_mcdi_transport_t *mtp) argument
636 efx_mcdi_reboot( __in efx_nic_t *enp) argument
677 efx_mcdi_request_abort( __in efx_nic_t *enp) argument
720 efx_mcdi_fini( __in efx_nic_t *enp) argument
[all...]
H A Defx_rx.c37 __in efx_nic_t *enp)
43 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
44 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_NIC);
46 if (!(enp->en_mod_flags & EFX_MOD_EV)) {
51 if (enp->en_mod_flags & EFX_MOD_RX) {
56 EFX_BAR_READO(enp, FR_AZ_RX_CFG_REG, &oword);
64 EFX_BAR_WRITEO(enp, FR_AZ_RX_CFG_REG, &oword);
70 EFX_BAR_TBL_WRITEO(enp, FR_BZ_RX_INDIRECTION_TBL,
74 enp->en_mod_flags |= EFX_MOD_RX;
88 __in efx_nic_t *enp,
36 efx_rx_init( __in efx_nic_t *enp) argument
87 efx_rx_hdr_split_enable( __in efx_nic_t *enp, __in unsigned int hdr_buf_size, __in unsigned int pld_buf_size) argument
146 efx_rx_scatter_enable( __in efx_nic_t *enp, __in unsigned int buf_size) argument
260 efx_rx_scale_mode_set( __in efx_nic_t *enp, __in efx_rx_hash_alg_t alg, __in efx_rx_hash_type_t type, __in boolean_t insert) argument
311 efx_rx_scale_toeplitz_ipv4_key_set( __in efx_nic_t *enp, __in_ecount(n) uint8_t *key, __in size_t n) argument
359 efx_rx_scale_toeplitz_ipv6_key_set( __in efx_nic_t *enp, __in_ecount(n) uint8_t *key, __in size_t n) argument
457 efx_rx_scale_tbl_set( __in efx_nic_t *enp, __in_ecount(n) unsigned int *table, __in size_t n) argument
593 efx_nic_t *enp = erp->er_enp; local
619 efx_nic_t *enp = erp->er_enp; local
637 efx_nic_t *enp = erp->er_enp; local
654 efx_rx_qcreate( __in efx_nic_t *enp, __in unsigned int index, __in unsigned int label, __in efx_rxq_type_t type, __in efsys_mem_t *esmp, __in size_t n, __in uint32_t id, __in efx_evq_t *eep, __deref_out efx_rxq_t **erpp) argument
791 efx_nic_t *enp = erp->er_enp; local
810 efx_rx_fini( __in efx_nic_t *enp) argument
[all...]
H A Defx_bootcfg.c48 __in efx_nic_t *enp,
52 _NOTE(ARGUNUSED(enp))
64 __in efx_nic_t *enp,
108 if (efx_bootcfg_csum(enp, data, size) != 0) {
130 __in efx_nic_t *enp,
139 rc = efx_nvram_size(enp, EFX_NVRAM_BOOTROM_CFG, &sector_length);
152 EFSYS_KMEM_ALLOC(enp->en_esip, sector_length, payload);
160 if ((rc = efx_nvram_rw_start(enp, EFX_NVRAM_BOOTROM_CFG, NULL)) != 0)
163 rc = efx_nvram_read_chunk(enp, EFX_NVRAM_BOOTROM_CFG, 0,
166 efx_nvram_rw_finish(enp, EFX_NVRAM_BOOTROM_CF
47 efx_bootcfg_csum( __in efx_nic_t *enp, __in_bcount(size) caddr_t data, __in size_t size) argument
63 efx_bootcfg_verify( __in efx_nic_t *enp, __in_bcount(size) caddr_t data, __in size_t size, __out size_t *usedp) argument
129 efx_bootcfg_read( __in efx_nic_t *enp, __out_bcount(size) caddr_t data, __in size_t size) argument
242 efx_bootcfg_write( __in efx_nic_t *enp, __in_bcount(size) caddr_t data, __in size_t size) argument
[all...]
H A Defx_wol.c38 __in efx_nic_t *enp)
40 efx_nic_cfg_t *encp = &(enp->en_nic_cfg);
43 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
44 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE);
45 EFSYS_ASSERT(!(enp->en_mod_flags & EFX_MOD_WOL));
53 EFSYS_ASSERT3U(enp->en_family, ==, EFX_FAMILY_SIENA);
55 enp->en_mod_flags |= EFX_MOD_WOL;
67 __in efx_nic_t *enp)
73 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
74 EFSYS_ASSERT3U(enp
37 efx_wol_init( __in efx_nic_t *enp) argument
66 efx_wol_filter_clear( __in efx_nic_t *enp) argument
102 efx_wol_filter_add( __in efx_nic_t *enp, __in efx_wol_type_t type, __in efx_wol_param_t *paramp, __out uint32_t *filter_idp) argument
224 efx_wol_filter_remove( __in efx_nic_t *enp, __in uint32_t filter_id) argument
261 efx_lightsout_offload_add( __in efx_nic_t *enp, __in efx_lightsout_offload_type_t type, __in efx_lightsout_offload_param_t *paramp, __out uint32_t *filter_idp) argument
337 efx_lightsout_offload_remove( __in efx_nic_t *enp, __in efx_lightsout_offload_type_t type, __in uint32_t filter_id) argument
389 efx_wol_fini( __in efx_nic_t *enp) argument
[all...]
H A Defx_tx.c47 __in efx_nic_t *enp)
52 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
53 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_NIC);
55 if (!(enp->en_mod_flags & EFX_MOD_EV)) {
60 if (enp->en_mod_flags & EFX_MOD_TX) {
65 EFSYS_ASSERT3U(enp->en_tx_qcount, ==, 0);
72 EFX_BAR_READO(enp, FR_AZ_TX_RESERVED_REG, &oword);
86 EFX_BAR_WRITEO(enp, FR_AZ_TX_RESERVED_REG, &oword);
92 EFX_BAR_READO(enp, FR_AZ_TX_CFG_REG, &oword);
94 EFX_BAR_WRITEO(enp, FR_AZ_TX_CFG_RE
46 efx_tx_init( __in efx_nic_t *enp) argument
205 efx_nic_t *enp = etp->et_enp; local
231 efx_nic_t *enp = etp->et_enp; local
249 efx_nic_t *enp = etp->et_enp; local
272 efx_tx_qcreate( __in efx_nic_t *enp, __in unsigned int index, __in unsigned int label, __in efsys_mem_t *esmp, __in size_t n, __in uint32_t id, __in uint16_t flags, __in efx_evq_t *eep, __deref_out efx_txq_t **etpp) argument
370 efx_tx_qstat_name( __in efx_nic_t *enp, __in unsigned int id) argument
405 efx_nic_t *enp = etp->et_enp; local
424 efx_tx_fini( __in efx_nic_t *enp) argument
[all...]
H A Defx.h103 __in efx_nic_t *enp);
109 __in efx_nic_t *enp,
114 __in efx_nic_t *enp);
120 __in efx_nic_t *enp);
124 __in efx_nic_t *enp);
130 __in efx_nic_t *enp);
136 __in efx_nic_t *enp);
140 __in efx_nic_t *enp);
144 __in efx_nic_t *enp);
164 __in efx_nic_t *enp,
[all...]
H A Defx_sram.c37 __in efx_nic_t *enp,
50 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
51 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_NIC);
69 EFX_BAR_TBL_WRITEQ(enp, FR_AZ_BUF_FULL_TBL,
80 EFX_BAR_WRITEO(enp, FR_AZ_BUF_TBL_UPD_REG, &oword);
93 EFX_BAR_TBL_READQ(enp, FR_AZ_BUF_FULL_TBL,
113 EFX_BAR_TBL_READQ(enp, FR_AZ_BUF_FULL_TBL,
138 EFX_BAR_WRITEO(enp, FR_AZ_BUF_TBL_UPD_REG, &oword);
148 __in efx_nic_t *enp,
156 EFSYS_ASSERT3U(enp
36 efx_sram_buf_tbl_set( __in efx_nic_t *enp, __in uint32_t id, __in efsys_mem_t *esmp, __in size_t n) argument
147 efx_sram_buf_tbl_clear( __in efx_nic_t *enp, __in uint32_t id, __in size_t n) argument
275 efx_sram_test( __in efx_nic_t *enp, __in efx_pattern_type_t type) argument
[all...]
H A Dsiena_nic.c37 __in efx_nic_t *enp,
51 efx_mcdi_execute(enp, &req);
77 __in efx_nic_t *enp)
93 efx_mcdi_execute(enp, &req);
110 __in efx_nic_t *enp)
142 efx_mcdi_execute(enp, &req);
196 __in efx_nic_t *enp,
212 efx_mcdi_execute(enp, &req);
238 __in efx_nic_t *enp)
244 EFSYS_ASSERT3U(enp
36 siena_nic_get_partn_mask( __in efx_nic_t *enp, __out unsigned int *maskp) argument
76 siena_nic_exit_assertion_handler( __in efx_nic_t *enp) argument
109 siena_nic_read_assertion( __in efx_nic_t *enp) argument
195 siena_nic_attach( __in efx_nic_t *enp, __in boolean_t attach) argument
237 siena_nic_pcie_extended_sync( __in efx_nic_t *enp) argument
274 siena_board_cfg( __in efx_nic_t *enp) argument
365 siena_phy_cfg( __in efx_nic_t *enp) argument
475 siena_loopback_cfg( __in efx_nic_t *enp) argument
536 siena_monitor_cfg( __in efx_nic_t *enp) argument
583 siena_nic_probe( __in efx_nic_t *enp) argument
684 siena_nic_reset( __in efx_nic_t *enp) argument
726 siena_nic_logging( __in efx_nic_t *enp) argument
760 siena_nic_rx_cfg( __in efx_nic_t *enp) argument
780 siena_nic_usrev_dis( __in efx_nic_t *enp) argument
790 siena_nic_init( __in efx_nic_t *enp) argument
823 siena_nic_fini( __in efx_nic_t *enp) argument
830 siena_nic_unprobe( __in efx_nic_t *enp) argument
897 siena_nic_register_test( __in efx_nic_t *enp) argument
[all...]
H A Defx_filter.c196 __in efx_nic_t *enp)
198 efx_filter_t *efp = &enp->en_filter;
201 EFX_BAR_READO(enp, FR_AZ_RX_FILTER_CTL_REG, &oword);
229 EFX_BAR_WRITEO(enp, FR_AZ_RX_FILTER_CTL_REG, &oword);
234 __in efx_nic_t *enp)
236 efx_filter_t *efp = &enp->en_filter;
242 EFX_BAR_READO(enp, FR_AZ_TX_CFG_REG, &oword);
257 EFX_BAR_WRITEO(enp, FR_AZ_TX_CFG_REG, &oword);
341 __inout efx_nic_t *enp,
354 EFX_BAR_TBL_WRITEO(enp, FR_AZ_RX_FILTER_TBL
195 efx_filter_push_rx_limits( __in efx_nic_t *enp) argument
233 efx_filter_push_tx_limits( __in efx_nic_t *enp) argument
340 efx_filter_push_entry( __inout efx_nic_t *enp, __in efx_filter_type_t type, __in int index, __in efx_oword_t *eop) argument
447 efx_filter_insert_filter( __in efx_nic_t *enp, __in efx_filter_spec_t *spec, __in boolean_t replace) argument
503 efx_filter_clear_entry( __in efx_nic_t *enp, __in efx_filter_tbl_t *eftp, __in int index) argument
522 efx_filter_remove_filter( __in efx_nic_t *enp, __in efx_filter_spec_t *spec) argument
558 efx_filter_remove_index( __inout efx_nic_t *enp, __in efx_filter_type_t type, __in int index) argument
581 efx_filter_tbl_clear( __inout efx_nic_t *enp, __in efx_filter_tbl_id_t tbl_id) argument
604 efx_filter_restore( __in efx_nic_t *enp) argument
637 efx_filter_redirect_index( __inout efx_nic_t *enp, __in efx_filter_type_t type, __in int filter_index, __in int rxq_index) argument
662 efx_filter_init( __in efx_nic_t *enp) argument
742 efx_filter_fini( __in efx_nic_t *enp) argument
[all...]
H A Dsiena_mon.c37 __in efx_nic_t *enp)
39 _NOTE(ARGUNUSED(enp))
40 EFSYS_ASSERT(enp->en_family == EFX_FAMILY_SIENA);
47 __in efx_nic_t *enp)
49 _NOTE(ARGUNUSED(enp))
50 EFSYS_ASSERT(enp->en_family == EFX_FAMILY_SIENA);
97 __in efx_nic_t *enp,
103 efx_mcdi_iface_t *emip = &(enp->en_u.siena.enu_mip);
157 __in efx_nic_t *enp,
162 efx_mcdi_iface_t *emip = &(enp
36 siena_mon_reset( __in efx_nic_t *enp) argument
46 siena_mon_reconfigure( __in efx_nic_t *enp) argument
96 siena_mon_decode_stats( __in efx_nic_t *enp, __in uint32_t dmask, __in_opt efsys_mem_t *esmp, __out_opt uint32_t *vmaskp, __out_ecount_opt(EFX_MON_NSTATS) efx_mon_stat_value_t *value) argument
156 siena_mon_ev( __in efx_nic_t *enp, __in efx_qword_t *eqp, __out efx_mon_stat_t *idp, __out efx_mon_stat_value_t *valuep) argument
206 siena_mon_stats_update( __in efx_nic_t *enp, __in efsys_mem_t *esmp, __out_ecount(EFX_MON_NSTATS) efx_mon_stat_value_t *values) argument
[all...]
H A Dsiena_nvram.c41 __in efx_nic_t *enp,
50 if ((1 << partn) & ~enp->en_u.siena.enu_partn_mask) {
63 efx_mcdi_execute(enp, &req);
91 __in efx_nic_t *enp,
107 efx_mcdi_execute(enp, &req);
124 __in efx_nic_t *enp,
150 efx_mcdi_execute(enp, &req);
184 __in efx_nic_t *enp,
204 efx_mcdi_execute(enp, &req);
221 __in efx_nic_t *enp,
40 siena_nvram_partn_size( __in efx_nic_t *enp, __in unsigned int partn, __out size_t *sizep) argument
90 siena_nvram_partn_lock( __in efx_nic_t *enp, __in unsigned int partn) argument
123 siena_nvram_partn_read( __in efx_nic_t *enp, __in unsigned int partn, __in unsigned int offset, __out_bcount(size) caddr_t data, __in size_t size) argument
183 siena_nvram_partn_erase( __in efx_nic_t *enp, __in unsigned int partn, __in unsigned int offset, __in size_t size) argument
220 siena_nvram_partn_write( __in efx_nic_t *enp, __in unsigned int partn, __in unsigned int offset, __out_bcount(size) caddr_t data, __in size_t size) argument
270 siena_nvram_partn_unlock( __in efx_nic_t *enp, __in unsigned int partn) argument
337 siena_parttbl_entry( __in efx_nic_t *enp, __in efx_nvram_type_t type) argument
357 siena_nvram_test( __in efx_nic_t *enp) argument
422 siena_nvram_size( __in efx_nic_t *enp, __in efx_nvram_type_t type, __out size_t *sizep) argument
455 siena_nvram_get_dynamic_cfg( __in efx_nic_t *enp, __in unsigned int partn, __in boolean_t vpd, __out siena_mc_dynamic_config_hdr_t **dcfgp, __out size_t *sizep) argument
584 siena_nvram_get_subtype( __in efx_nic_t *enp, __in unsigned int partn, __out uint32_t *subtypep) argument
628 siena_nvram_get_version( __in efx_nic_t *enp, __in efx_nvram_type_t type, __out uint32_t *subtypep, __out_ecount(4) uint16_t version[4]) argument
719 siena_nvram_rw_start( __in efx_nic_t *enp, __in efx_nvram_type_t type, __out size_t *chunk_sizep) argument
749 siena_nvram_read_chunk( __in efx_nic_t *enp, __in efx_nvram_type_t type, __in unsigned int offset, __out_bcount(size) caddr_t data, __in size_t size) argument
779 siena_nvram_erase( __in efx_nic_t *enp, __in efx_nvram_type_t type) argument
811 siena_nvram_write_chunk( __in efx_nic_t *enp, __in efx_nvram_type_t type, __in unsigned int offset, __in_bcount(size) caddr_t data, __in size_t size) argument
841 siena_nvram_rw_finish( __in efx_nic_t *enp, __in efx_nvram_type_t type) argument
852 siena_nvram_set_version( __in efx_nic_t *enp, __in efx_nvram_type_t type, __out uint16_t version[4]) argument
[all...]
H A Defx_ev.c47 __in efx_nic_t *enp)
52 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
53 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_INTR);
55 if (enp->en_mod_flags & EFX_MOD_EV) {
60 EFSYS_ASSERT3U(enp->en_ev_qcount, ==, 0);
66 EFX_BAR_READO(enp, FR_AZ_DP_CTRL_REG, &oword);
68 EFX_BAR_WRITEO(enp, FR_AZ_DP_CTRL_REG, &oword);
70 enp->en_mod_flags |= EFX_MOD_EV;
174 efx_nic_t *enp = eep->ee_enp; local
204 is_v6 = (enp
46 efx_ev_init( __in efx_nic_t *enp) argument
377 efx_nic_t *enp = eep->ee_enp; local
559 efx_nic_t *enp = eep->ee_enp; local
656 efx_nic_t *enp = eep->ee_enp; local
823 efx_nic_t *enp = eep->ee_enp; local
844 efx_nic_t *enp = eep->ee_enp; local
901 efx_ev_qcreate( __in efx_nic_t *enp, __in unsigned int index, __in efsys_mem_t *esmp, __in size_t n, __in uint32_t id, __deref_out efx_evq_t **eepp) argument
1045 efx_ev_qstat_name( __in efx_nic_t *enp, __in unsigned int id) argument
1079 efx_nic_t *enp = eep->ee_enp; local
1104 efx_ev_fini( __in efx_nic_t *enp) argument
[all...]
H A Defx_vpd.c91 __in efx_nic_t *enp)
96 EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
97 EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PROBE);
98 EFSYS_ASSERT(!(enp->en_mod_flags & EFX_MOD_VPD));
100 switch (enp->en_family) {
120 if ((rc = evpdop->evpdo_init(enp)) != 0)
124 enp->en_evpdop = evpdop;
125 enp->en_mod_flags |= EFX_MOD_VPD;
139 __in efx_nic_t *enp,
142 efx_vpd_ops_t *evpdop = enp
90 efx_vpd_init( __in efx_nic_t *enp) argument
138 efx_vpd_size( __in efx_nic_t *enp, __out size_t *sizep) argument
160 efx_vpd_read( __in efx_nic_t *enp, __out_bcount(size) caddr_t data, __in size_t size) argument
183 efx_vpd_verify( __in efx_nic_t *enp, __in_bcount(size) caddr_t data, __in size_t size) argument
206 efx_vpd_reinit( __in efx_nic_t *enp, __in_bcount(size) caddr_t data, __in size_t size) argument
236 efx_vpd_get( __in efx_nic_t *enp, __in_bcount(size) caddr_t data, __in size_t size, __inout efx_vpd_value_t *evvp) argument
260 efx_vpd_set( __in efx_nic_t *enp, __inout_bcount(size) caddr_t data, __in size_t size, __in efx_vpd_value_t *evvp) argument
284 efx_vpd_next( __in efx_nic_t *enp, __inout_bcount(size) caddr_t data, __in size_t size, __out efx_vpd_value_t *evvp, __inout unsigned int *contp) argument
309 efx_vpd_write( __in efx_nic_t *enp, __in_bcount(size) caddr_t data, __in size_t size) argument
986 efx_vpd_fini( __in efx_nic_t *enp) argument
[all...]
/freebsd-9.3-release/sys/dev/sfxge/
H A Dsfxge_mcdi.c98 efx_nic_t *enp; local
105 enp = sc->enp;
108 if (efx_mcdi_request_poll(enp)) {
114 aborted = efx_mcdi_request_abort(enp);
148 efx_mcdi_request_start(sc->enp, emrp, B_FALSE);
194 efx_nic_t *enp; local
199 enp = sc->enp;
217 if ((rc = efx_mcdi_init(enp, emt
232 efx_nic_t *enp; local
[all...]
H A Dsfxge_port.c76 if ((rc = efx_mac_stats_update(sc->enp, esmp,
116 name = efx_mac_stat_name(sc->enp, id);
143 efx_mac_fcntl_get(sc->enp, &wanted_fc, &link_fc);
187 error = efx_mac_fcntl_set(sc->enp, port->wanted_fc, B_TRUE);
212 efx_mac_fcntl_get(sc->enp, &wanted_fc, &link_fc);
257 efx_nic_t *enp; local
262 enp = sc->enp;
271 (void)efx_port_poll(enp, &mode);
285 efx_nic_t *enp local
335 efx_nic_t *enp; local
368 efx_nic_t *enp; local
[all...]

Completed in 100 milliseconds

12