Searched refs:efep (Results 1 – 2 of 2) sorted by relevance
/titanic_44/usr/src/uts/common/io/efe/ |
H A D | efe.c | 255 efe_t *efep; in efe_attach() local 263 efep = ddi_get_driver_private(dip); in efe_attach() 264 return (efe_resume(efep)); in efe_attach() 298 efep = kmem_zalloc(sizeof (efe_t), KM_SLEEP); in efe_attach() 299 ddi_set_driver_private(dip, efep); in efe_attach() 301 efep->efe_dip = dip; in efe_attach() 303 if (ddi_regs_map_setup(dip, 1, (caddr_t *)&efep->efe_regs, 0, 0, in efe_attach() 304 &efe_regs_acc_attr, &efep->efe_regs_acch) != DDI_SUCCESS) { in efe_attach() 309 efep->efe_rx_ring = efe_ring_alloc(efep->efe_dip, RXDESCL); in efe_attach() 310 if (efep->efe_rx_ring == NULL) { in efe_attach() [all …]
|
H A D | efe.h | 312 #define GETCSR(efep, reg) \ argument 313 ddi_get32((efep)->efe_regs_acch, \ 314 (efep)->efe_regs + ((reg) / sizeof (uint32_t))) 316 #define PUTCSR(efep, reg, val) \ argument 317 ddi_put32((efep)->efe_regs_acch, \ 318 (efep)->efe_regs + ((reg) / sizeof (uint32_t)), (val)) 320 #define CLRBIT(efep, reg, bit) \ argument 321 PUTCSR(efep, reg, (GETCSR(efep, reg) & ~(bit))) 323 #define SETBIT(efep, reg, bit) \ argument 324 PUTCSR(efep, reg, (GETCSR(efep, reg) | (bit)))
|