/titanic_50/usr/src/uts/common/io/xge/hal/xgehal/ |
H A D | xgehal-device.c | 127 __hal_device_register_poll(xge_hal_device_t *hldev, u64 *reg, in __hal_device_register_poll() argument 137 val64 = xge_os_pio_mem_read64(hldev->pdev, hldev->regh0, reg); in __hal_device_register_poll() 146 val64 = xge_os_pio_mem_read64(hldev->pdev, hldev->regh0, reg); in __hal_device_register_poll() 165 __hal_device_wait_quiescent(xge_hal_device_t *hldev, u64 *hw_status) in __hal_device_wait_quiescent() argument 167 xge_hal_pci_bar0_t *bar0 = (xge_hal_pci_bar0_t *)(void *)hldev->bar0; in __hal_device_wait_quiescent() 171 (void) __hal_device_register_poll(hldev, &bar0->adapter_status, 1, in __hal_device_wait_quiescent() 182 (void) __hal_device_register_poll(hldev, &bar0->adapter_status, 1, in __hal_device_wait_quiescent() 195 return xge_hal_device_status(hldev, hw_status); in __hal_device_wait_quiescent() 210 xge_hal_device_t *hldev = (xge_hal_device_t *)devh; in xge_hal_device_is_slot_freeze() local 211 xge_hal_pci_bar0_t *bar0 = (xge_hal_pci_bar0_t *)(void *)hldev->bar0; in xge_hal_device_is_slot_freeze() [all …]
|
H A D | xgehal-stats.c | 40 xge_hal_device_t *hldev = (xge_hal_device_t*)devh; in __hal_stats_initialize() local 50 if (xge_hal_device_check_id(hldev) != XGE_HAL_CARD_TITAN) { in __hal_stats_initialize() 53 hldev->pdev, in __hal_stats_initialize() 72 stats->dma_addr = xge_os_dma_map(hldev->pdev, in __hal_stats_initialize() 88 xge_os_dma_free(hldev->pdev, in __hal_stats_initialize() 99 hldev->pdev, sizeof(xge_hal_stats_pcim_info_t)); in __hal_stats_initialize() 107 hldev->pdev, sizeof(xge_hal_stats_pcim_info_t)); in __hal_stats_initialize() 109 xge_os_free(hldev->pdev, stats->pcim_info_saved, in __hal_stats_initialize() 117 hldev->pdev, in __hal_stats_initialize() 124 xge_os_free(hldev->pdev, stats->pcim_info_saved, in __hal_stats_initialize() [all …]
|
H A D | xgehal-mgmt.c | 49 xge_hal_device_t *hldev = (xge_hal_device_t*)devh; in xge_hal_mgmt_about() local 51 if ((hldev == NULL) || (hldev->magic != XGE_HAL_MAGIC)) { in xge_hal_mgmt_about() 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() 138 xge_hal_device_t *hldev = (xge_hal_device_t*)devh; in xge_hal_mgmt_reg_read() local 140 if ((hldev == NULL) || (hldev->magic != XGE_HAL_MAGIC)) { in xge_hal_mgmt_reg_read() 148 *value = xge_os_pio_mem_read64(hldev->pdev, hldev->regh0, in xge_hal_mgmt_reg_read() [all …]
|
H A D | xgehal-device-fp.c | 43 xge_hal_device_bar0(xge_hal_device_t *hldev) in xge_hal_device_bar0() argument 45 return hldev->bar0; in xge_hal_device_bar0() 55 xge_hal_device_isrbar0(xge_hal_device_t *hldev) in xge_hal_device_isrbar0() argument 57 return hldev->isrbar0; in xge_hal_device_isrbar0() 67 xge_hal_device_bar1(xge_hal_device_t *hldev) in xge_hal_device_bar1() argument 69 return hldev->bar1; in xge_hal_device_bar1() 79 xge_hal_device_bar0_set(xge_hal_device_t *hldev, char *bar0) in xge_hal_device_bar0_set() argument 82 hldev->bar0 = bar0; in xge_hal_device_bar0_set() 92 xge_hal_device_isrbar0_set(xge_hal_device_t *hldev, char *isrbar0) in xge_hal_device_isrbar0_set() argument 95 hldev->isrbar0 = isrbar0; in xge_hal_device_isrbar0_set() [all …]
|
H A D | xgehal-ring.c | 243 xge_hal_device_t *hldev; in __hal_ring_open() local 251 hldev = (xge_hal_device_t *)ring->channel.devh; in __hal_ring_open() 252 ring->config = &hldev->config.ring; in __hal_ring_open() 260 xge_os_spin_lock_init(&ring->channel.reserve_lock, hldev->pdev); in __hal_ring_open() 262 xge_os_spin_lock_init_irq(&ring->channel.reserve_lock, hldev->irqh); in __hal_ring_open() 265 xge_os_spin_lock_init(&ring->channel.post_lock, hldev->pdev); in __hal_ring_open() 267 xge_os_spin_lock_init_irq(&ring->channel.post_lock, hldev->irqh); in __hal_ring_open() 290 hldev->pdev, in __hal_ring_open() 350 xge_hal_device_t *hldev = (xge_hal_device_t *)ring->channel.devh; in __hal_ring_close() local 370 xge_os_spin_lock_destroy(&ring->channel.reserve_lock, hldev->pdev); in __hal_ring_close() [all …]
|
H A D | xgehal-fifo.c | 152 xge_hal_device_t *hldev; in __hal_fifo_open() local 159 hldev = (xge_hal_device_t *)fifo->channel.devh; in __hal_fifo_open() 160 fifo->config = &hldev->config.fifo; in __hal_fifo_open() 164 xge_os_spin_lock_init(&fifo->channel.reserve_lock, hldev->pdev); in __hal_fifo_open() 166 xge_os_spin_lock_init_irq(&fifo->channel.reserve_lock, hldev->irqh); in __hal_fifo_open() 169 if (xge_hal_device_check_id(hldev) == XGE_HAL_CARD_XENA) { in __hal_fifo_open() 170 fifo->post_lock_ptr = &hldev->xena_post_lock; in __hal_fifo_open() 172 xge_os_spin_lock_init(&fifo->channel.post_lock, hldev->pdev); in __hal_fifo_open() 176 if (xge_hal_device_check_id(hldev) == XGE_HAL_CARD_XENA) { in __hal_fifo_open() 177 fifo->post_lock_ptr = &hldev->xena_post_lock; in __hal_fifo_open() [all …]
|
H A D | xgehal-channel.c | 99 xge_hal_device_t *hldev = (xge_hal_device_t*)devh; in __hal_channel_allocate() local 122 channel = (xge_hal_channel_t *) xge_os_malloc(hldev->pdev, size); in __hal_channel_allocate() 128 channel->pdev = hldev->pdev; in __hal_channel_allocate() 129 channel->regh0 = hldev->regh0; in __hal_channel_allocate() 130 channel->regh1 = hldev->regh1; in __hal_channel_allocate() 172 xge_hal_device_t *hldev; in __hal_channel_initialize() local 174 hldev = (xge_hal_device_t *)channel->devh; in __hal_channel_initialize() 189 channel->saved_arr = (void **) xge_os_malloc(hldev->pdev, in __hal_channel_initialize() 197 channel->work_arr = (void **) xge_os_malloc(hldev->pdev, in __hal_channel_initialize() 208 channel->orig_arr = (void **) xge_os_malloc(hldev->pdev, in __hal_channel_initialize() [all …]
|
H A D | xgehal-mgmtaux.c | 250 xge_hal_device_t *hldev = (xge_hal_device_t*)devh; in xge_hal_aux_stats_tmac_read() local 254 if (xge_hal_device_check_id(hldev) != XGE_HAL_CARD_TITAN) { in xge_hal_aux_stats_tmac_read() 391 xge_hal_device_t *hldev = (xge_hal_device_t*)devh; in xge_hal_aux_stats_rmac_read() local 395 if (xge_hal_device_check_id(hldev) != XGE_HAL_CARD_TITAN) { in xge_hal_aux_stats_rmac_read() 693 xge_hal_device_t *hldev = (xge_hal_device_t*)devh; in xge_hal_aux_stats_herc_enchanced() local 697 if (xge_hal_device_check_id(hldev) == XGE_HAL_CARD_TITAN) { in xge_hal_aux_stats_herc_enchanced() 819 xge_hal_device_t *hldev = (xge_hal_device_t*)devh; in xge_hal_aux_stats_pci_read() local 823 if (xge_hal_device_check_id(hldev) == XGE_HAL_CARD_TITAN) { in xge_hal_aux_stats_pci_read() 883 xge_hal_device_t *hldev = (xge_hal_device_t*)devh; in xge_hal_aux_stats_hal_read() local 893 status = xge_hal_mgmt_device_stats(hldev, &devstat, in xge_hal_aux_stats_hal_read() [all …]
|
/titanic_50/usr/src/uts/common/io/xge/hal/include/ |
H A D | xgehal-device.h | 405 __hal_device_set_swapper(xge_hal_device_t *hldev); 408 __hal_device_rth_it_configure(xge_hal_device_t *hldev); 411 __hal_device_rth_spdm_configure(xge_hal_device_t *hldev); 414 __hal_verify_pcc_idle(xge_hal_device_t *hldev, u64 adp_status); 417 __hal_device_handle_pic(xge_hal_device_t *hldev, u64 reason); 420 __hal_read_spdm_entry_line(xge_hal_device_t *hldev, u8 spdm_line, 428 void __hal_device_get_vpd_data(xge_hal_device_t *hldev); 431 __hal_device_handle_txpic(xge_hal_device_t *hldev, u64 reason); 434 __hal_device_handle_txdma(xge_hal_device_t *hldev, u64 reason); 437 __hal_device_handle_txmac(xge_hal_device_t *hldev, u64 reason); [all …]
|
H A D | xgehal-mgmt.h | 181 __hal_updt_stats_xpak(xge_hal_device_t *hldev); 184 __hal_chk_xpak_counter(xge_hal_device_t *hldev, int type, u32 value);
|
H A D | xgehal-channel.h | 479 xge_hal_channel_open(xge_hal_device_h hldev, xge_hal_channel_attr_t *attr,
|
H A D | xgehal-fifo.h | 262 void __hal_fifo_hw_initialize(xge_hal_device_h hldev);
|
/titanic_50/usr/src/uts/common/io/xge/drv/ |
H A D | xgell.c | 43 #define XGELL_MAX_FRAME_SIZE(hldev) ((hldev)->config.mtu + \ argument 311 xge_hal_device_t *hldev; in xgell_rx_buffer_alloc() local 322 hldev = (xge_hal_device_t *)lldev->devh; in xgell_rx_buffer_alloc() 324 if (ddi_dma_alloc_handle(hldev->pdev, p_hal_dma_attr, DDI_DMA_SLEEP, in xgell_rx_buffer_alloc() 478 xge_hal_device_t *hldev; in xgell_rx_create_buffer_pool() local 485 hldev = (xge_hal_device_t *)lldev->devh; in xgell_rx_create_buffer_pool() 488 bf_pool->size = XGELL_MAX_FRAME_SIZE(hldev); in xgell_rx_create_buffer_pool() 499 DDI_INTR_PRI(hldev->irqh)); in xgell_rx_create_buffer_pool() 501 DDI_INTR_PRI(hldev->irqh)); in xgell_rx_create_buffer_pool() 947 xge_hal_device_t *hldev = lldev->devh; in xgell_ring_tx() local [all …]
|
H A D | xge.c | 216 xge_hal_device_t *hldev = (xge_hal_device_t *)arg0; in xge_isr() local 217 xgelldev_t *lldev = xge_hal_device_private(hldev); in xge_isr() 223 status = xge_hal_device_handle_irq(hldev); in xge_isr() 879 xge_hal_device_t *hldev = lldev->devh; in xge_add_intrs() local 880 xge_hal_device_config_t *hal_conf = &hldev->config; in xge_add_intrs() 893 (caddr_t)hldev, 0); in xge_add_intrs() 903 xge_list_for_each(item, &hldev->free_channels) { in xge_add_intrs() 926 intr_arg = (caddr_t)hldev; in xge_add_intrs() 1080 xge_hal_device_t *hldev; in xge_attach() local 1144 hldev = kmem_zalloc(sizeof (xge_hal_device_t), KM_SLEEP); in xge_attach() [all …]
|