/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/ |
H A D | xgehal-device.c | 108 xge_os_pio_mem_write32(pdev, regh, val, in __hal_pio_mem_write32_lower() 2081 hldev->pdev, in __hal_device_rth_spdm_configure() 2457 hldev->pdev, hldev->regh0, in __hal_device_handle_link_up_ind() 2557 hldev->pdev, hldev->regh0, in __hal_device_handle_link_down_ind() 4141 hldev->pdev, in xge_hal_device_enable() 4153 hldev->pdev, in xge_hal_device_enable() 5184 hldev->pdev = attr->pdev; in xge_hal_device_initialize() 5204 xge_assert(hldev->pdev); in xge_hal_device_initialize() 5517 xge_os_free(hldev->pdev, in xge_hal_device_terminate() 5521 xge_os_free(hldev->pdev, in xge_hal_device_terminate() [all …]
|
H A D | xgehal-mm.c | 89 xge_os_dma_free(mempool->pdev, in __hal_mempool_grow() 105 dma_object->addr = xge_os_dma_map(mempool->pdev, in __hal_mempool_grow() 120 xge_os_dma_free(mempool->pdev, in __hal_mempool_grow() 169 xge_os_free(mempool->pdev, in __hal_mempool_grow() 173 xge_os_dma_unmap(mempool->pdev, in __hal_mempool_grow() 178 xge_os_dma_free(mempool->pdev, in __hal_mempool_grow() 243 xge_os_malloc(pdev, sizeof(xge_hal_mempool_t)); in __hal_mempool_create() 250 mempool->pdev = pdev; in __hal_mempool_create() 384 xge_os_dma_unmap(mempool->pdev, in __hal_mempool_destroy() 402 xge_os_free(mempool->pdev, mempool->shadow_items_arr, in __hal_mempool_destroy() [all …]
|
H A D | xgehal-ring.c | 105 xge_os_dma_sync(ring->channel.pdev, in __hal_ring_rxdblock_link() 290 hldev->pdev, in __hal_ring_open() 353 xge_assert(ring->channel.pdev); in __hal_ring_close() 362 xge_os_free(ring->channel.pdev, in __hal_ring_close() 394 xge_assert(ring->channel.pdev); in __hal_ring_prc_enable() 416 val64 = xge_os_pio_mem_read64(ring->channel.pdev, in __hal_ring_prc_enable() 444 val64 = xge_os_pio_mem_read64(ring->channel.pdev, in __hal_ring_prc_enable() 467 xge_assert(ring->channel.pdev); in __hal_ring_prc_disable() 471 val64 = xge_os_pio_mem_read64(ring->channel.pdev, in __hal_ring_prc_disable() 645 xge_os_pio_mem_write64(hldev->pdev, hldev->regh0, in __hal_ring_mtu_set() [all …]
|
H A D | xgehal-mgmt.c | 59 xge_os_pci_read16(hldev->pdev, hldev->cfgh, in xge_hal_mgmt_about() 63 xge_os_pci_read16(hldev->pdev, hldev->cfgh, in xge_hal_mgmt_about() 67 xge_os_pci_read16(hldev->pdev, hldev->cfgh, in xge_hal_mgmt_about() 71 xge_os_pci_read16(hldev->pdev, hldev->cfgh, in xge_hal_mgmt_about() 75 xge_os_pci_read8(hldev->pdev, hldev->cfgh, in xge_hal_mgmt_about() 592 xge_os_pci_read16(hldev->pdev, hldev->cfgh, offset, in xge_hal_mgmt_pcireg_read() 704 xge_os_pci_read32(hldev->pdev, hldev->cfgh, i*4, in xge_hal_mgmt_pci_config() 821 xge_os_pio_mem_write64(hldev->pdev, hldev->regh0, in xge_hal_restore_link_led() 1102 val64 = xge_os_pio_mem_read64(hldev->pdev, in xge_hal_rldram_test() 1122 val64 = xge_os_pio_mem_read64(hldev->pdev, in xge_hal_rldram_test() [all …]
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ |
H A D | ecore_sp_verbs.h | 142 int (*wait_comp)(struct _lm_device_t *pdev, 389 int (*check_add)(struct _lm_device_t *pdev, 399 (*check_del)(struct _lm_device_t *pdev, 447 int (*delete_all)(struct _lm_device_t *pdev, 467 int (*restore)(struct _lm_device_t *pdev, 556 int (*wait_comp)(struct _lm_device_t *pdev, 685 int (*validate)(struct _lm_device_t *pdev, 692 void (*revert)(struct _lm_device_t *pdev, 1140 int (*send_cmd)(struct _lm_device_t *pdev, 1369 int (*init_fw)(struct _lm_device_t *pdev); [all …]
|
H A D | ecore_init.h | 210 REG_WR(pdev, mcp_attn_ctl_regs[i].addr, reg_val); in ecore_set_mcp_parity() 216 if (CHIP_IS_E1(pdev)) in ecore_parity_reg_mask() 218 else if (CHIP_IS_E1H(pdev)) in ecore_parity_reg_mask() 220 else if (CHIP_IS_E2(pdev)) in ecore_parity_reg_mask() 231 u32 dis_mask = ecore_parity_reg_mask(pdev, i); in ecore_disable_blocks_parity() 236 DbgMessage(pdev, WARNi, "Setting parity mask " in ecore_disable_blocks_parity() 243 ecore_set_mcp_parity(pdev, FALSE); in ecore_disable_blocks_parity() 265 u32 reg_mask = ecore_parity_reg_mask(pdev, i); in ecore_clear_blocks_parity() 271 DbgMessage(pdev, WARNi, in ecore_clear_blocks_parity() 300 u32 reg_mask = ecore_parity_reg_mask(pdev, i); in ecore_enable_blocks_parity() [all …]
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/ |
H A D | lm_dmae.c | 112 mm_init_lock(pdev, &policy->spinlock); in lm_dmae_locking_policy_create() 244 lm_dmae_opcode( struct _lm_device_t* pdev, in lm_dmae_opcode() argument 411 if( CHIP_IS_E1(pdev) ) in lm_dmae_initialize_sgl_loader_command() 549 mm_wait(pdev, 20); in lm_dmae_operation_wait() 552 DbgMessage(pdev, in lm_dmae_operation_wait() 561 if (lm_reset_is_inprogress(pdev)) in lm_dmae_operation_wait() 741 lm_dmae_context_release(pdev,context); in lm_dmae_context_execute() 778 DbgBreakIf(IS_VFDEV(pdev)); in lm_dmae_post_command() 790 DbgMessage(pdev, in lm_dmae_post_command() 808 REG_WR( pdev, in lm_dmae_post_command() [all …]
|
H A D | hw_debug.h | 97 val = REG_RD(pdev, MISC_REG_CHIP_NUM); \ 98 chip_rev = REG_RD(pdev, MISC_REG_CHIP_REV); \ 99 chip_metal = REG_RD(pdev, MISC_REG_CHIP_METAL); \ 120 val = REG_RD(pdev, offset); \ 132 val = REG_RD(pdev, offset + i*(inc)); \ 144 val1 = REG_RD(pdev, offset1); \ 145 val2 = REG_RD(pdev, offset2); \ 170 val = REG_RD(pdev, offset);\ 182 val1 = REG_RD(pdev, offset + i*(inc)); \ 206 val = REG_RD(pdev, offset2 + i*4); \ [all …]
|
H A D | lm_send.c | 102 IN lm_device_t *pdev, in lm_pre_process_lso_packet() argument 155 if (CHIP_IS_E1x(pdev)) in lm_process_lso_packet() 267 IN lm_device_t *pdev, in lm_get_coalesce_buffer() argument 473 lm_device_t *pdev, in lm_get_pri_from_send_packet_param() argument 576 lm_device_t *pdev, in lm_send_packet() argument 749 if (IS_VFDEV(pdev)) { in lm_send_packet() 781 if (CHIP_IS_E1x(pdev)) in lm_send_packet() 809 if (IS_PFDEV(pdev) && (tx_chain->idx == FWD_CID(pdev))) in lm_send_packet() 819 if (IS_PFDEV(pdev) && (tx_chain->idx == FWD_CID(pdev))) in lm_send_packet() 944 ((!CHIP_IS_E1x(pdev) || IS_VFDEV(pdev)))) in lm_send_packet() [all …]
|
H A D | lm_dmae.h | 106 #define DMAE_MAX_RW_SIZE(pdev) (CHIP_IS_E1(pdev) ? DMAE_MAX_RW_SIZE_E1 : DMAE_MAX_RW_SIZE_NEW) argument 354 lm_status_t lm_dmae_locking_policy_create( struct _lm_device_t* pdev, 373 lm_status_t lm_dmae_locking_policy_lock(struct _lm_device_t* pdev, lm_dmae_locking_policy_t* lockin… 410 lm_dmae_context_t* lm_dmae_context_create( struct _lm_device_t* pdev, 430 lm_dmae_context_t* lm_dmae_context_create_sgl( struct _lm_device_t* pdev, 465 lm_status_t lm_dmae_context_acquire(struct _lm_device_t* pdev, lm_dmae_context_t *context); 484 lm_status_t lm_dmae_context_release(struct _lm_device_t* pdev, lm_dmae_context_t *context); 549 lm_status_t lm_dmae_operation_create( struct _lm_device_t* pdev, 571 lm_dmae_operation_t* lm_dmae_operation_create_sgl( struct _lm_device_t* pdev, 588 lm_status_t lm_dmae_operation_add_sge( struct _lm_device_t* pdev, [all …]
|
H A D | bnxe_hw_debug.c | 70 val = REG_RD(pdev, MISC_REG_CHIP_NUM); in lm_disable_timer() 128 val = REG_RD(pdev, MISC_REG_CHIP_NUM); in lm_enable_timer() 134 REG_WR(pdev, TM_REG_EN_LINEAR0_TIMER,1); in lm_enable_timer() 142 struct _lm_device_t *pdev) in lm_get_doorbell_info() argument 147 val = REG_RD(pdev,DORQ_REG_DQ_FILL_LVLF); in lm_get_doorbell_info() 155 val = REG_RD(pdev,DORQ_REG_DB_DIS_CNTR0); in lm_get_doorbell_info() 192 chip_num = REG_RD(pdev,MISC_REG_CHIP_NUM); in _vq_hoq() 208 REG_WR(pdev,PXP2_REG_RQ_HOQ_RAM_RD_REQ,vq); in _vq_hoq() 331 u32_t lm_idle_chk(struct _lm_device_t *pdev) { in lm_idle_chk() argument 1290 lm_enable_timer(pdev,0); in lm_idle_chk() [all …]
|
H A D | lm_sp_req_mgr.h | 22 struct _lm_device_t *pdev, 44 IN struct _lm_device_t *pdev, 52 IN struct _lm_device_t *pdev, 58 IN struct _lm_device_t *pdev, 64 IN struct _lm_device_t *pdev, 71 IN struct _lm_device_t *pdev, 79 IN struct _lm_device_t *pdev, 85 IN struct _lm_device_t *pdev,
|
/illumos-gate/usr/src/uts/common/io/bnx/570x/driver/common/lmdev/ |
H A D | bnx_lm_recv.c | 85 lm_device_t *pdev, in lm_post_buffers() argument 162 pdev, in lm_post_buffers() 168 pdev, in lm_post_buffers() 186 struct _lm_device_t *pdev, in get_packets_rcvd() argument 216 pdev, in get_packets_rcvd() 437 lm_device_t *pdev, in lm_service_rx_int() argument 512 lm_device_t *pdev, in lm_post_buffers() argument 617 lm_device_t *pdev, in lm_post_rx_bd() argument 622 pdev, in lm_post_rx_bd() 628 pdev, in lm_post_rx_bd() [all …]
|
H A D | bnx_lm_send.c | 26 lm_device_t *pdev, in lm_send_packet() argument 49 pdev, in lm_send_packet() 55 pdev, in lm_send_packet() 308 pdev, in lm_send_packet() 314 pdev, in lm_send_packet() 355 pdev, in lm_send_packet() 364 pdev, in lm_send_packet() 371 pdev, in lm_send_packet() 626 pdev, in lm_send_packet() 635 pdev, in lm_send_packet() [all …]
|
H A D | bnx_hw_cpu.c | 111 lm_device_t *pdev, in load_rv2p_fw() argument 160 lm_device_t *pdev, in load_cpu_fw() argument 176 pdev, in load_cpu_fw() 186 pdev, in load_cpu_fw() 196 pdev, in load_cpu_fw() 206 pdev, in load_cpu_fw() 216 pdev, in load_cpu_fw() 242 lm_device_t *pdev, in init_5706_cpus() argument 502 lm_device_t *pdev, in init_5709_cpus() argument 813 pdev, in lm_init_cpus() [all …]
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/include/ |
H A D | mm_solaris.h | 147 #define MM_ACQUIRE_PF_LOCK_IMP(pdev) argument 148 #define MM_RELEASE_PF_LOCK_IMP(pdev) argument 150 #define MM_ACQUIRE_VFS_STATS_LOCK_IMP(pdev) argument 151 #define MM_RELEASE_VFS_STATS_LOCK_IMP(pdev) argument 152 #define MM_ACQUIRE_VFS_STATS_LOCK_DPC_IMP(pdev) argument 153 #define MM_RELEASE_VFS_STATS_LOCK_DPC_IMP(pdev) argument 158 #define mm_er_initiate_recovery_imp(pdev) \ argument 166 #define mm_dbus_start_if_enabled_imp(pdev) argument 167 #define mm_dbus_stop_if_started_imp(pdev) argument 199 lm_get_bar_size_direct(pdev, bar_num, val_p) [all …]
|
H A D | mm_linux.h | 135 #define MM_ACQUIRE_IND_REG_LOCK_IMP(pdev) argument 136 #define MM_RELEASE_IND_REG_LOCK_IMP(pdev) argument 155 void MM_ACQUIRE_PF_LOCK_IMP(struct _lm_device_t *pdev); 156 void MM_RELEASE_PF_LOCK_IMP(struct _lm_device_t *pdev); 166 #define mm_er_initiate_recovery_imp(pdev) \ argument 189 struct _lm_device_t * pdev, 316 u32_t mm_get_feature_flags(struct _lm_device_t* pdev); 318 u32_t mm_get_vmq_cnt(struct _lm_device_t* pdev); 320 lm_status_t mm_i2c_update(struct _lm_device_t *pdev); 326 u32_t mm_get_cap_offset(struct _lm_device_t *pdev, [all …]
|
H A D | mm_vbd.h | 67 lm_get_bar_offset_direct(pdev, bar_num, bar_addr) 69 #define mm_get_bar_size_imp(pdev, bar_num, val_p) \ argument 70 lm_get_bar_size_direct(pdev, bar_num, val_p) 103 if (IS_PFDEV(pdev)) \ 127 #define MM_ACQUIRE_REQUEST_LOCK_DPC_IMP(pdev) argument 128 #define MM_RELEASE_REQUEST_LOCK_DPC_IMP(pdev) argument 178 struct _lm_device_t *pdev, 282 u32_t mm_get_wol_flags(struct _lm_device_t* pdev); 285 u32_t mm_get_vmq_cnt(struct _lm_device_t* pdev); 294 IN struct _lm_device_t *pdev, [all …]
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/include/l5/ |
H A D | mm_l5if.h | 28 IN struct _lm_device_t *pdev, 35 IN struct _lm_device_t *pdev, 41 IN struct _lm_device_t *pdev, 47 IN lm_device_t *pdev, 56 IN lm_device_t *pdev, 61 IN lm_device_t *pdev, 68 IN lm_device_t *pdev, 73 IN lm_device_t *pdev, 79 IN lm_device_t *pdev, 85 IN lm_device_t *pdev, [all …]
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/ |
H A D | lm_l4sp.h | 10 IN struct _lm_device_t * pdev); 13 IN struct _lm_device_t * pdev, 20 IN struct _lm_device_t * pdev, 24 IN struct _lm_device_t * pdev, 29 IN struct _lm_device_t * pdev, 34 IN struct _lm_device_t * pdev, 39 IN struct _lm_device_t * pdev, 44 IN struct _lm_device_t * pdev, 62 u8_t lm_tcp_rx_fill_grq(struct _lm_device_t * pdev, u8_t sb_idx, d_list_t * bypass_gen_pool_list, u… 63 void lm_tcp_update_isles_cnts(struct _lm_device_t * pdev, s16_t number_of_isles, s32_t number_of_ge… [all …]
|
H A D | lm_l4fp.h | 15 struct _lm_device_t *pdev, 21 struct _lm_device_t *pdev, 34 struct _lm_device_t * pdev, /* device handle */ 73 lm_device_t * pdev, 83 lm_device_t * pdev, 89 lm_device_t * pdev, 95 lm_device_t * pdev, 106 lm_device_t * pdev,
|
/illumos-gate/usr/src/uts/common/io/xge/drv/ |
H A D | xge_osdep.h | 244 #define xge_os_malloc(pdev, size) \ argument 245 __xge_os_malloc(pdev, size, __FILE__, __LINE__) 257 ret = ddi_dma_alloc_handle(pdev, p_hal_dma_attr, in __xge_os_dma_malloc() 298 #define xge_os_pci_read8(pdev, cfgh, where, val) \ argument 301 #define xge_os_pci_write8(pdev, cfgh, where, val) \ argument 304 #define xge_os_pci_read16(pdev, cfgh, where, val) \ argument 310 #define xge_os_pci_read32(pdev, cfgh, where, val) \ argument 318 #define xge_os_pio_mem_read8(pdev, regh, addr) \ argument 324 #define xge_os_pio_mem_read16(pdev, regh, addr) \ argument 330 #define xge_os_pio_mem_read32(pdev, regh, addr) \ argument [all …]
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/ |
H A D | bnxe_fw_funcs.c | 51 if (INIT_MODE_FLAGS(pdev) & MODE_PORT4) { in ecore_map_q_cos() 53 if (PORT_ID(pdev)) { in ecore_map_q_cos() 70 reg_bit_map = REG_RD(pdev, reg_addr); in ecore_map_q_cos() 75 reg_bit_map = REG_RD(pdev, reg_addr); in ecore_map_q_cos() 82 reg_bit_map = REG_RD(pdev, reg_addr); in ecore_map_q_cos() 87 REG_WR(pdev, reg_addr, reg_bit_map); in ecore_map_q_cos() 97 ecore_map_q_cos(pdev, ECORE_FCOE_Q, in ecore_dcb_config_qm() 99 ecore_map_q_cos(pdev, ECORE_ISCSI_Q, in ecore_dcb_config_qm() 105 ecore_map_q_cos(pdev, ECORE_ETH_Q, in ecore_dcb_config_qm() 107 ecore_map_q_cos(pdev, ECORE_TOE_Q, in ecore_dcb_config_qm() [all …]
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l5/include/ |
H A D | lm_l5st.h | 119 …#define LM_SC_EQ_BASE_CHAIN_INDEX(pdev) ((pdev)->iscsi_info.run_time.l5_eq_base_chain_id… argument 120 #define LM_SC_EQ_CHAIN_CNT(pdev) ((pdev)->iscsi_info.run_time.l5_eq_chain_cnt) argument 121 …#define LM_SC_MAX_CHAIN_CNT(pdev) ((pdev)->iscsi_info.run_time.l5_eq_max_chain_cn… argument 125 #define LM_SC_FOREACH_EQ_IDX(pdev, eq_idx) \ argument 126 … ((eq_idx) = (pdev)->iscsi_info.run_time.l5_eq_base_chain_idx; (eq_idx) < (u32_t)((pdev)->iscsi_in… 135 struct _lm_device_t *pdev; member 284 #define LM_FC_FOREACH_EQ_IDX(pdev, eq_idx) \ argument 285 …r ((eq_idx) = (pdev)->fcoe_info.run_time.fc_eq_base_chain_idx; (eq_idx) < (u32_t)((pdev)->fcoe_inf… 292 struct _lm_device_t *pdev; member
|
/illumos-gate/usr/src/uts/common/io/bnx/ |
H A D | bnx_mm.c | 79 FLUSHPOSTEDWRITES(pdev); in mm_wait() 208 mm_get_user_config(lm_device_t *pdev) in mm_get_user_config() argument 223 offset = pdev->hw_info.shmem_base; in mm_get_user_config() 226 REG_RD_IND(pdev, offset, &val); in mm_get_user_config() 235 offset = pdev->hw_info.shmem_base; in mm_get_user_config() 237 REG_RD_IND(pdev, offset, &val); in mm_get_user_config() 243 offset = pdev->hw_info.shmem_base; in mm_get_user_config() 281 umdevice = (um_device_t *)pdev; in mm_alloc_mem() 344 udevp = (um_device_t *)pdev; in mm_alloc_phys_mem() 836 umdevice = (um_device_t *)pdev; in mm_acquire_ind_reg_lock() [all …]
|