Lines Matching refs:chp

85 static int ch_set_config_data(ch_t *chp);
86 void pe_rbuf_pool_free(ch_t *chp);
89 static int pe_change_mtu(ch_t *chp);
109 static int pe_make_fake_arp(ch_t *chp, unsigned char *arpp);
660 rm.chp = sa; in pe_set_promiscuous()
714 rm.chp = sa; in pe_set_mc()
907 pe_attach(ch_t *chp) in pe_attach() argument
913 (void) ch_set_config_data(chp); in pe_attach()
915 bi = pe_sa_init(chp); in pe_attach()
919 if (t1_init_sw_modules(chp, bi) < 0) in pe_attach()
922 if (pe_small_rbuf_pool_init(chp) == 0) in pe_attach()
925 if (pe_big_rbuf_pool_init(chp) == 0) in pe_attach()
936 if (board_info(chp)->caps & SUPPORTED_10000baseT_Full) { in pe_attach()
937 (void) t1_os_pci_read_config_4(chp, A_PCICFG_PCIX_CMD, in pe_attach()
942 if (chp->ch_config.burstsize_set) { in pe_attach()
944 pcix_cmd |= (chp->ch_config.burstsize << 18); in pe_attach()
949 if (chp->ch_config.transaction_cnt_set) { in pe_attach()
951 pcix_cmd |= (chp->ch_config.transaction_cnt << 20); in pe_attach()
957 pcix_cmd |= (chp->ch_config.relaxed_ordering << 17); in pe_attach()
959 (void) t1_os_pci_write_config_4(chp, A_PCICFG_PCIX_CMD, in pe_attach()
968 if (board_info(chp)->caps & SUPPORTED_10000baseT_Full) { in pe_attach()
969 (void) t1_os_pci_write_config_4(chp, 0xc, 0xf800); in pe_attach()
977 update_mtu_tab(chp); in pe_attach()
983 t1_interrupts_clear(chp); in pe_attach()
1003 ch_set_config_data(ch_t *chp) in ch_set_config_data() argument
1005 pe_config_data_t *p_config = (pe_config_data_t *)&chp->config_data; in ch_set_config_data()
1554 pe_dma_handle_init(ch_t *chp, int cnt) in pe_dma_handle_init() argument
1561 dhe = ch_get_dvma_handle(chp); in pe_dma_handle_init()
1564 mutex_enter(&chp->ch_dh_lck); in pe_dma_handle_init()
1565 dhe->dhe_next = chp->ch_vdh; in pe_dma_handle_init()
1566 chp->ch_vdh = dhe; in pe_dma_handle_init()
1567 mutex_exit(&chp->ch_dh_lck); in pe_dma_handle_init()
1573 dhe = ch_get_dma_handle(chp); in pe_dma_handle_init()
1576 mutex_enter(&chp->ch_dh_lck); in pe_dma_handle_init()
1577 dhe->dhe_next = chp->ch_dh; in pe_dma_handle_init()
1578 chp->ch_dh = dhe; in pe_dma_handle_init()
1579 mutex_exit(&chp->ch_dh_lck); in pe_dma_handle_init()
1603 pe_change_mtu(ch_t *chp) in pe_change_mtu() argument
1605 struct cmac *mac = chp->port[0].mac; in pe_change_mtu()
1611 if (chp->ch_mtu < 68) { in pe_change_mtu()
1614 if (ret = mac->ops->set_mtu(mac, chp->ch_mtu)) { in pe_change_mtu()
1642 pe_make_fake_arp(ch_t *chp, unsigned char *arpp) in pe_make_fake_arp() argument
1644 pesge *sge = chp->sge; in pe_make_fake_arp()
1669 chp->ch_ip = fap->fa_src_ip; /* not used yet */ in pe_make_fake_arp()