Lines Matching refs:phy_index

1293 static int nes_init_1g_phy(struct nes_device *nesdev, u8 phy_type, u8 phy_index)  in nes_init_1g_phy()  argument
1299 nes_read_1G_phy_reg(nesdev, 1, phy_index, &phy_data); in nes_init_1g_phy()
1300 nes_write_1G_phy_reg(nesdev, 23, phy_index, 0xb000); in nes_init_1g_phy()
1303 nes_write_1G_phy_reg(nesdev, 0, phy_index, 0x8000); in nes_init_1g_phy()
1307 nes_read_1G_phy_reg(nesdev, 0, phy_index, &phy_data); in nes_init_1g_phy()
1317 nes_write_1G_phy_reg(nesdev, 0, phy_index, phy_data); in nes_init_1g_phy()
1318 nes_read_1G_phy_reg(nesdev, 0, phy_index, &phy_data); in nes_init_1g_phy()
1319 nes_read_1G_phy_reg(nesdev, 0x17, phy_index, &phy_data); in nes_init_1g_phy()
1320 nes_read_1G_phy_reg(nesdev, 0x1e, phy_index, &phy_data); in nes_init_1g_phy()
1323 nes_read_1G_phy_reg(nesdev, 0x19, phy_index, &phy_data); in nes_init_1g_phy()
1324 nes_write_1G_phy_reg(nesdev, 0x19, phy_index, 0xffee); in nes_init_1g_phy()
1325 nes_read_1G_phy_reg(nesdev, 0x19, phy_index, &phy_data); in nes_init_1g_phy()
1328 nes_read_1G_phy_reg(nesdev, 4, phy_index, &phy_data); in nes_init_1g_phy()
1329 nes_write_1G_phy_reg(nesdev, 4, phy_index, (phy_data & ~(0x03E0)) | 0xc00); in nes_init_1g_phy()
1330 nes_read_1G_phy_reg(nesdev, 4, phy_index, &phy_data); in nes_init_1g_phy()
1333 nes_read_1G_phy_reg(nesdev, 9, phy_index, &phy_data); in nes_init_1g_phy()
1334 nes_write_1G_phy_reg(nesdev, 9, phy_index, phy_data & ~(0x0100)); in nes_init_1g_phy()
1335 nes_read_1G_phy_reg(nesdev, 9, phy_index, &phy_data); in nes_init_1g_phy()
1337 nes_read_1G_phy_reg(nesdev, 0, phy_index, &phy_data); in nes_init_1g_phy()
1338 nes_write_1G_phy_reg(nesdev, 0, phy_index, phy_data | 0x0300); in nes_init_1g_phy()
1347 static int nes_init_2025_phy(struct nes_device *nesdev, u8 phy_type, u8 phy_index) in nes_init_2025_phy() argument
1358 nes_read_10G_phy_reg(nesdev, phy_index, 0x3, 0xd7ee); in nes_init_2025_phy()
1361 nes_read_10G_phy_reg(nesdev, phy_index, 0x3, 0xd7ee); in nes_init_2025_phy()
1365 nes_read_10G_phy_reg(nesdev, phy_index, 0x3, 0xd7fd); in nes_init_2025_phy()
1373 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0x0000, 0x8000); in nes_init_2025_phy()
1374 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc300, 0x0000); in nes_init_2025_phy()
1375 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc316, 0x000A); in nes_init_2025_phy()
1376 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc318, 0x0052); in nes_init_2025_phy()
1380 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc316, 0x000A); in nes_init_2025_phy()
1381 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc318, 0x0052); in nes_init_2025_phy()
1382 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc302, 0x000C); in nes_init_2025_phy()
1383 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc319, 0x0008); in nes_init_2025_phy()
1384 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0x0027, 0x0001); in nes_init_2025_phy()
1385 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc31a, 0x0098); in nes_init_2025_phy()
1386 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0x0026, 0x0E00); in nes_init_2025_phy()
1389 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd006, 0x0007); in nes_init_2025_phy()
1390 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd007, 0x000A); in nes_init_2025_phy()
1391 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd008, 0x0009); in nes_init_2025_phy()
1395 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc316, 0x000A); in nes_init_2025_phy()
1396 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc318, 0x0052); in nes_init_2025_phy()
1397 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc302, 0x0004); in nes_init_2025_phy()
1398 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc319, 0x0038); in nes_init_2025_phy()
1399 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0x0027, 0x0013); in nes_init_2025_phy()
1400 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc31a, 0x0098); in nes_init_2025_phy()
1401 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0x0026, 0x0E00); in nes_init_2025_phy()
1404 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd006, 0x0007); in nes_init_2025_phy()
1405 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd007, 0x000A); in nes_init_2025_phy()
1406 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd008, 0x0009); in nes_init_2025_phy()
1410 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc316, 0x000A); in nes_init_2025_phy()
1411 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc318, 0x0052); in nes_init_2025_phy()
1412 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc302, 0x000C); in nes_init_2025_phy()
1413 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc319, 0x0010); in nes_init_2025_phy()
1414 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0x0027, 0x0013); in nes_init_2025_phy()
1415 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc31a, 0x0080); in nes_init_2025_phy()
1416 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0x0026, 0x0E00); in nes_init_2025_phy()
1419 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd006, 0x000B); in nes_init_2025_phy()
1420 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd007, 0x0003); in nes_init_2025_phy()
1421 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd008, 0x0004); in nes_init_2025_phy()
1423 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0x0022, 0x406D); in nes_init_2025_phy()
1424 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0x0023, 0x0020); in nes_init_2025_phy()
1428 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0x0028, 0xA528); in nes_init_2025_phy()
1431 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc300, 0x0002); in nes_init_2025_phy()
1436 nes_read_10G_phy_reg(nesdev, phy_index, 0x3, 0xd7ee); in nes_init_2025_phy()
1444 nes_read_10G_phy_reg(nesdev, phy_index, 0x3, 0xd7ee); in nes_init_2025_phy()
1451 nes_read_10G_phy_reg(nesdev, phy_index, 0x3, 0xd7fd); in nes_init_2025_phy()
1458 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0xe854, 0x00c0); in nes_init_2025_phy()
1459 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0xe854, 0x0040); in nes_init_2025_phy()
1470 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd003, 0x0000); in nes_init_2025_phy()
1471 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xF00D, 0x00FE); in nes_init_2025_phy()
1472 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xF00E, 0x0032); in nes_init_2025_phy()
1474 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xF00F, 0x000C); in nes_init_2025_phy()
1476 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xF00F, 0x0002); in nes_init_2025_phy()
1477 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc314, 0x0063); in nes_init_2025_phy()
1506 u8 phy_index = nesadapter->phy_index[mac_index]; in nes_init_phy() local
1525 ret = nes_init_1g_phy(nesdev, phy_type, phy_index); in nes_init_phy()
1530 ret = nes_init_2025_phy(nesdev, phy_type, phy_index); in nes_init_phy()
2460 nesadapter->phy_index[mac_index], &phy_data); in nes_process_mac_intr()
2462 nesadapter->phy_index[mac_index], phy_data); in nes_process_mac_intr()
2468 nesadapter->phy_index[mac_index], &phy_data); in nes_process_mac_intr()
2470 nesadapter->phy_index[mac_index], phy_data); in nes_process_mac_intr()
2477 nesadapter->phy_index[mac_index], &phy_data); in nes_process_mac_intr()
2479 nesadapter->phy_index[mac_index], phy_data); in nes_process_mac_intr()
2482 nesadapter->phy_index[mac_index], &phy_data); in nes_process_mac_intr()
2484 nesadapter->phy_index[mac_index], phy_data); in nes_process_mac_intr()
2534 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 4, 0x0008); in nes_process_mac_intr()
2535 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 4, 0xc001); in nes_process_mac_intr()
2536 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 4, 0xc002); in nes_process_mac_intr()
2537 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 4, 0xc005); in nes_process_mac_intr()
2538 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 4, 0xc006); in nes_process_mac_intr()
2539 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 1, 0x9003); in nes_process_mac_intr()
2540 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 1, 0x9004); in nes_process_mac_intr()
2541 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 1, 0x9005); in nes_process_mac_intr()
2543 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 1, 0x9003); in nes_process_mac_intr()
2546 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 3, 0x0021); in nes_process_mac_intr()
2548 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 3, 0x0021); in nes_process_mac_intr()
2663 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 1, 0x9003); in nes_recheck_link_status()
2666 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 3, 0x0021); in nes_recheck_link_status()
2668 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 3, 0x0021); in nes_recheck_link_status()