Lines Matching refs:phy_index

1307 static int nes_init_1g_phy(struct nes_device *nesdev, u8 phy_type, u8 phy_index)  in nes_init_1g_phy()  argument
1313 nes_read_1G_phy_reg(nesdev, 1, phy_index, &phy_data); in nes_init_1g_phy()
1314 nes_write_1G_phy_reg(nesdev, 23, phy_index, 0xb000); in nes_init_1g_phy()
1317 nes_write_1G_phy_reg(nesdev, 0, phy_index, 0x8000); in nes_init_1g_phy()
1321 nes_read_1G_phy_reg(nesdev, 0, phy_index, &phy_data); in nes_init_1g_phy()
1331 nes_write_1G_phy_reg(nesdev, 0, phy_index, phy_data); in nes_init_1g_phy()
1332 nes_read_1G_phy_reg(nesdev, 0, phy_index, &phy_data); in nes_init_1g_phy()
1333 nes_read_1G_phy_reg(nesdev, 0x17, phy_index, &phy_data); in nes_init_1g_phy()
1334 nes_read_1G_phy_reg(nesdev, 0x1e, phy_index, &phy_data); in nes_init_1g_phy()
1337 nes_read_1G_phy_reg(nesdev, 0x19, phy_index, &phy_data); in nes_init_1g_phy()
1338 nes_write_1G_phy_reg(nesdev, 0x19, phy_index, 0xffee); in nes_init_1g_phy()
1339 nes_read_1G_phy_reg(nesdev, 0x19, phy_index, &phy_data); in nes_init_1g_phy()
1342 nes_read_1G_phy_reg(nesdev, 4, phy_index, &phy_data); in nes_init_1g_phy()
1343 nes_write_1G_phy_reg(nesdev, 4, phy_index, (phy_data & ~(0x03E0)) | 0xc00); in nes_init_1g_phy()
1344 nes_read_1G_phy_reg(nesdev, 4, phy_index, &phy_data); in nes_init_1g_phy()
1347 nes_read_1G_phy_reg(nesdev, 9, phy_index, &phy_data); in nes_init_1g_phy()
1348 nes_write_1G_phy_reg(nesdev, 9, phy_index, phy_data & ~(0x0100)); in nes_init_1g_phy()
1349 nes_read_1G_phy_reg(nesdev, 9, phy_index, &phy_data); in nes_init_1g_phy()
1351 nes_read_1G_phy_reg(nesdev, 0, phy_index, &phy_data); in nes_init_1g_phy()
1352 nes_write_1G_phy_reg(nesdev, 0, phy_index, phy_data | 0x0300); in nes_init_1g_phy()
1361 static int nes_init_2025_phy(struct nes_device *nesdev, u8 phy_type, u8 phy_index) in nes_init_2025_phy() argument
1372 nes_read_10G_phy_reg(nesdev, phy_index, 0x3, 0xd7ee); in nes_init_2025_phy()
1375 nes_read_10G_phy_reg(nesdev, phy_index, 0x3, 0xd7ee); in nes_init_2025_phy()
1379 nes_read_10G_phy_reg(nesdev, phy_index, 0x3, 0xd7fd); in nes_init_2025_phy()
1387 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0x0000, 0x8000); in nes_init_2025_phy()
1388 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc300, 0x0000); in nes_init_2025_phy()
1389 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc316, 0x000A); in nes_init_2025_phy()
1390 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc318, 0x0052); in nes_init_2025_phy()
1394 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc316, 0x000A); in nes_init_2025_phy()
1395 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc318, 0x0052); in nes_init_2025_phy()
1396 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc302, 0x000C); in nes_init_2025_phy()
1397 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc319, 0x0008); in nes_init_2025_phy()
1398 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0x0027, 0x0001); in nes_init_2025_phy()
1399 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc31a, 0x0098); in nes_init_2025_phy()
1400 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0x0026, 0x0E00); in nes_init_2025_phy()
1403 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd006, 0x0007); in nes_init_2025_phy()
1404 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd007, 0x000A); in nes_init_2025_phy()
1405 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd008, 0x0009); in nes_init_2025_phy()
1409 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc316, 0x000A); in nes_init_2025_phy()
1410 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc318, 0x0052); in nes_init_2025_phy()
1411 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc302, 0x0004); in nes_init_2025_phy()
1412 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc319, 0x0038); in nes_init_2025_phy()
1413 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0x0027, 0x0013); in nes_init_2025_phy()
1414 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc31a, 0x0098); in nes_init_2025_phy()
1415 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0x0026, 0x0E00); in nes_init_2025_phy()
1418 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd006, 0x0007); in nes_init_2025_phy()
1419 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd007, 0x000A); in nes_init_2025_phy()
1420 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd008, 0x0009); in nes_init_2025_phy()
1424 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc316, 0x000A); in nes_init_2025_phy()
1425 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc318, 0x0052); in nes_init_2025_phy()
1426 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc302, 0x000C); in nes_init_2025_phy()
1427 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc319, 0x0010); in nes_init_2025_phy()
1428 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0x0027, 0x0013); in nes_init_2025_phy()
1429 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc31a, 0x0080); in nes_init_2025_phy()
1430 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0x0026, 0x0E00); in nes_init_2025_phy()
1433 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd006, 0x000B); in nes_init_2025_phy()
1434 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd007, 0x0003); in nes_init_2025_phy()
1435 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd008, 0x0004); in nes_init_2025_phy()
1437 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0x0022, 0x406D); in nes_init_2025_phy()
1438 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0x0023, 0x0020); in nes_init_2025_phy()
1442 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0x0028, 0xA528); in nes_init_2025_phy()
1445 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc300, 0x0002); in nes_init_2025_phy()
1450 nes_read_10G_phy_reg(nesdev, phy_index, 0x3, 0xd7ee); in nes_init_2025_phy()
1458 nes_read_10G_phy_reg(nesdev, phy_index, 0x3, 0xd7ee); in nes_init_2025_phy()
1465 nes_read_10G_phy_reg(nesdev, phy_index, 0x3, 0xd7fd); in nes_init_2025_phy()
1472 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0xe854, 0x00c0); in nes_init_2025_phy()
1473 nes_write_10G_phy_reg(nesdev, phy_index, 0x3, 0xe854, 0x0040); in nes_init_2025_phy()
1484 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xd003, 0x0000); in nes_init_2025_phy()
1485 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xF00D, 0x00FE); in nes_init_2025_phy()
1486 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xF00E, 0x0032); in nes_init_2025_phy()
1488 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xF00F, 0x000C); in nes_init_2025_phy()
1490 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xF00F, 0x0002); in nes_init_2025_phy()
1491 nes_write_10G_phy_reg(nesdev, phy_index, 0x1, 0xc314, 0x0063); in nes_init_2025_phy()
1520 u8 phy_index = nesadapter->phy_index[mac_index]; in nes_init_phy() local
1539 ret = nes_init_1g_phy(nesdev, phy_type, phy_index); in nes_init_phy()
1544 ret = nes_init_2025_phy(nesdev, phy_type, phy_index); in nes_init_phy()
2502 nesadapter->phy_index[mac_index], &phy_data); in nes_process_mac_intr()
2504 nesadapter->phy_index[mac_index], phy_data); in nes_process_mac_intr()
2510 nesadapter->phy_index[mac_index], &phy_data); in nes_process_mac_intr()
2512 nesadapter->phy_index[mac_index], phy_data); in nes_process_mac_intr()
2519 nesadapter->phy_index[mac_index], &phy_data); in nes_process_mac_intr()
2521 nesadapter->phy_index[mac_index], phy_data); in nes_process_mac_intr()
2524 nesadapter->phy_index[mac_index], &phy_data); in nes_process_mac_intr()
2526 nesadapter->phy_index[mac_index], phy_data); in nes_process_mac_intr()
2576 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 4, 0x0008); in nes_process_mac_intr()
2577 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 4, 0xc001); in nes_process_mac_intr()
2578 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 4, 0xc002); in nes_process_mac_intr()
2579 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 4, 0xc005); in nes_process_mac_intr()
2580 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 4, 0xc006); in nes_process_mac_intr()
2581 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 1, 0x9003); in nes_process_mac_intr()
2582 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 1, 0x9004); in nes_process_mac_intr()
2583 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 1, 0x9005); in nes_process_mac_intr()
2585 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 1, 0x9003); in nes_process_mac_intr()
2588 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 3, 0x0021); in nes_process_mac_intr()
2590 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 3, 0x0021); in nes_process_mac_intr()
2705 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 1, 0x9003); in nes_recheck_link_status()
2708 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 3, 0x0021); in nes_recheck_link_status()
2710 nes_read_10G_phy_reg(nesdev, nesadapter->phy_index[mac_index], 3, 0x0021); in nes_recheck_link_status()