Lines Matching refs:index
158 u32 index; member
168 val &= ~(1 << mac->instance->index); in disable_port()
359 u32 index = mac->instance->index; in enable_port() local
371 val |= (1 << index); in enable_port()
383 val |= (1 << index); in enable_port()
386 index <<= 2; in enable_port()
389 if (index) index <<= 2; in enable_port()
390 (void) t1_tpi_write(adapter, RX_FIFO_HIGH_WATERMARK_BASE + index, 0x740); in enable_port()
391 (void) t1_tpi_write(adapter, RX_FIFO_LOW_WATERMARK_BASE + index, 0x730); in enable_port()
392 (void) t1_tpi_write(adapter, TX_FIFO_HIGH_WATERMARK_BASE + index, 0x600); in enable_port()
393 (void) t1_tpi_write(adapter, TX_FIFO_LOW_WATERMARK_BASE + index, 0x1d0); in enable_port()
394 (void) t1_tpi_write(adapter, TX_FIFO_XFER_THRES_BASE + index, 0x1100); in enable_port()
401 TX_FIFO_XFER_THRES_BASE + mac->instance->index * 4, 0x400); in enable_port()
508 static struct cmac *ixf1010_mac_create(adapter_t *adapter, int index) in ixf1010_mac_create() argument
513 if (index > 9) return NULL; in ixf1010_mac_create()
521 mac->instance->mac_base = MACREG_BASE + (index * 0x200); in ixf1010_mac_create()
522 mac->instance->index = index; in ixf1010_mac_create()