Home
last modified time | relevance | path

Searched full:mdi (Results 1 – 25 of 83) sorted by relevance

1234

/linux-6.14.4/drivers/media/mc/
Dmc-dev-allocator.c44 struct media_device_instance *mdi = in media_device_instance_release() local
47 dev_dbg(mdi->mdev.dev, "%s: releasing Media Device\n", __func__); in media_device_instance_release()
51 media_device_unregister(&mdi->mdev); in media_device_instance_release()
52 media_device_cleanup(&mdi->mdev); in media_device_instance_release()
54 list_del(&mdi->list); in media_device_instance_release()
57 kfree(mdi); in media_device_instance_release()
65 struct media_device_instance *mdi; in __media_device_get() local
67 list_for_each_entry(mdi, &media_device_list, list) { in __media_device_get()
68 if (mdi->mdev.dev != dev) in __media_device_get()
71 kref_get(&mdi->refcount); in __media_device_get()
[all …]
/linux-6.14.4/include/linux/
Dmicrel_phy.h55 /* 1 = HP Auto MDI/MDI-X mode, 0 = Microchip Auto MDI/MDI-X mode */
57 /* 1 = Force MDI (transmit on RXP/RXM pins), 0 = Normal operation
61 /* 1 = Disable auto MDI-X */
/linux-6.14.4/tools/testing/selftests/media_tests/
Dmedia_device_open.c44 struct media_device_info mdi; in main() local
76 ret = ioctl(fd, MEDIA_IOC_DEVICE_INFO, &mdi); in main()
81 mdi.model, mdi.driver); in main()
Dmedia_device_test.c49 struct media_device_info mdi; in main() local
94 ret = ioctl(fd, MEDIA_IOC_DEVICE_INFO, &mdi); in main()
99 mdi.model, mdi.driver, count); in main()
/linux-6.14.4/drivers/net/ethernet/intel/igb/
De1000_phy.c105 * igb_read_phy_reg_mdic - Read MDI control register
110 * Reads the MDI control register in the PHY at offset and stores the
125 /* Set up Op-code, Phy Address, and register offset in the MDI in igb_read_phy_reg_mdic()
135 /* Poll the ready bit to see if the MDI read completed in igb_read_phy_reg_mdic()
146 hw_dbg("MDI Read did not complete\n"); in igb_read_phy_reg_mdic()
151 hw_dbg("MDI Error\n"); in igb_read_phy_reg_mdic()
162 * igb_write_phy_reg_mdic - Write MDI control register
167 * Writes data to MDI control register in the PHY at offset.
181 /* Set up Op-code, Phy Address, and register offset in the MDI in igb_write_phy_reg_mdic()
192 /* Poll the ready bit to see if the MDI read completed in igb_write_phy_reg_mdic()
[all …]
De1000_defines.h611 #define E1000_MDICNFG_EXT_MDIO 0x80000000 /* MDI ext/int destination */
612 #define E1000_MDICNFG_COM_MDIO 0x40000000 /* MDI shared w/ lan 0 */
901 #define M88E1000_PSCR_MDI_MANUAL_MODE 0x0000 /* MDI Crossover Mode bits 6:5 */
902 /* Manual MDI configuration */
904 /* 1000BASE-T: Auto crossover, 100BASE-TX/10BASE-T: MDI Mode */
917 #define M88E1000_PSSR_MDIX 0x0040 /* 1=MDIX; 0=MDI */
983 /* MDI Control */
/linux-6.14.4/drivers/net/ethernet/intel/e1000e/
Dphy.h158 #define IGP01E1000_PSCR_FORCE_MDI_MDIX 0x2000 /* 0=MDI, 1=MDIX */
201 #define IFE_PHY_MDIX_CONTROL 0x1C /* MDI/MDI-X Control */
216 #define IFE_PMC_MDIX_STATUS 0x0020 /* 1=MDI-X, 0=MDI */
217 #define IFE_PMC_FORCE_MDIX 0x0040 /* 1=force MDI-X, 0=force MDI */
Dphy.c121 * e1000e_read_phy_reg_mdic - Read MDI control register
126 * Reads the MDI control register in the PHY at offset and stores the
142 /* Set up Op-code, Phy Address, and register offset in the MDI in e1000e_read_phy_reg_mdic()
155 /* Poll the ready bit to see if the MDI read completed in e1000e_read_phy_reg_mdic()
166 e_dbg("MDI Read PHY Reg Address %d did not complete\n", in e1000e_read_phy_reg_mdic()
171 e_dbg("MDI Read PHY Reg Address %d Error\n", offset); in e1000e_read_phy_reg_mdic()
175 e_dbg("MDI Read offset error - requested %d, returned %d\n", in e1000e_read_phy_reg_mdic()
201 * e1000e_write_phy_reg_mdic - Write MDI control register
206 * Writes data to MDI control register in the PHY at offset.
221 /* Set up Op-code, Phy Address, and register offset in the MDI in e1000e_write_phy_reg_mdic()
[all …]
D80003es2lan.c369 * before the device has completed the "Page Select" MDI in e1000_read_phy_reg_gg82563_80003es2lan()
370 * transaction. So we wait 200us after each MDI command... in e1000_read_phy_reg_gg82563_80003es2lan()
438 * before the device has completed the "Page Select" MDI in e1000_write_phy_reg_gg82563_80003es2lan()
439 * transaction. So we wait 200us after each MDI command... in e1000_write_phy_reg_gg82563_80003es2lan()
526 /* Clear Auto-Crossover to force MDI manually. M88E1000 requires MDI in e1000_phy_force_speed_duplex_80003es2lan()
899 * MDI/MDI-X = 0 (default) in e1000_copper_link_setup_gg82563_80003es2lan()
901 * 1 - MDI mode in e1000_copper_link_setup_gg82563_80003es2lan()
902 * 2 - MDI-X mode in e1000_copper_link_setup_gg82563_80003es2lan()
903 * 3 - Auto for 1000Base-T only (MDI-X for 10/100Base-T modes) in e1000_copper_link_setup_gg82563_80003es2lan()
Dethtool.c181 /* MDI-X => 2; MDI =>1; Invalid =>0 */ in e1000_get_link_ksettings()
256 /* clear MDI, MDI(-X) override is only allowed when autoneg enabled */ in e1000_set_spd_dplx()
286 /* MDI setting is only allowed when autoneg enabled because in e1000_set_link_ksettings()
287 * some hardware doesn't allow MDI setting when speed or in e1000_set_link_ksettings()
296 e_err("forcing MDI/MDI-X state is not supported when link speed and/or duplex are forced\n"); in e1000_set_link_ksettings()
317 /* calling this overrides forced MDI setting */ in e1000_set_link_ksettings()
324 /* MDI-X => 2; MDI => 1; Auto => 3 */ in e1000_set_link_ksettings()
1339 /* Auto-MDI/MDIX Off */ in e1000_integrated_phy_loopback()
1341 /* reset to update Auto-MDI/MDIX */ in e1000_integrated_phy_loopback()
Ddefines.h717 #define M88E1000_PSCR_MDI_MANUAL_MODE 0x0000 /* MDI Crossover Mode bits 6:5 */
718 /* Manual MDI configuration */
720 /* 1000BASE-T: Auto crossover, 100BASE-TX/10BASE-T: MDI Mode */
729 #define M88E1000_PSSR_MDIX 0x0040 /* 1=MDIX; 0=MDI */
794 /* MDI Control */
/linux-6.14.4/drivers/net/phy/
Dvitesse.c236 /* Set Auto MDI-X by default */ in vsc73xx_config_init()
352 /* When MDI-X auto configuration is disabled, is possible in vsc73xx_mdix_set()
353 * to force only MDI mode. Let's use autoconfig for forced in vsc73xx_mdix_set()
504 /* vsc82x4_config_autocross_enable - Enable auto MDI/MDI-X for forced links
507 * Enable auto MDI/MDI-X when in 10/100 forced link speeds by writing
540 * MDI/MDI-X feature
546 /* Enable auto MDI/MDI-X when in 10/100 forced link speeds by in vsc82x4_config_aneg()
/linux-6.14.4/drivers/net/ethernet/intel/igc/
Digc_phy.c524 * igc_read_phy_reg_mdic - Read MDI control register
529 * Reads the MDI control register in the PHY at offset and stores the
544 /* Set up Op-code, Phy Address, and register offset in the MDI in igc_read_phy_reg_mdic()
554 /* Poll the ready bit to see if the MDI read completed in igc_read_phy_reg_mdic()
565 hw_dbg("MDI Read did not complete\n"); in igc_read_phy_reg_mdic()
570 hw_dbg("MDI Error\n"); in igc_read_phy_reg_mdic()
581 * igc_write_phy_reg_mdic - Write MDI control register
586 * Writes data to MDI control register in the PHY at offset.
600 /* Set up Op-code, Phy Address, and register offset in the MDI in igc_write_phy_reg_mdic()
611 /* Poll the ready bit to see if the MDI read completed in igc_write_phy_reg_mdic()
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/net/pse-pd/
Dpse-controller.yaml87 | | (MDI-X) | (MDI) | (X) | (S) |
108 - MDI-X
109 - MDI
Dti,tps23881.yaml102 polarity-supported = "MDI", "S";
111 polarity-supported = "MDI";
Dmicrochip,pd692x0.yaml163 polarity-supported = "MDI", "S";
171 polarity-supported = "MDI";
/linux-6.14.4/Documentation/networking/pse-pd/
Dpse-pi.rst51 The power delivery's polarity in this alternative can vary based on the MDI
52 (Medium Dependent Interface) or MDI-X (Medium Dependent Interface Crossover)
70 | | (MDI-X) | (MDI) | (X) | (S) |
161 for either MDI or MDI-X configurations, albeit supporting one variation at a
188 compatibility with both MDI and MDI-X configurations.
/linux-6.14.4/Documentation/devicetree/bindings/net/
Dqcom,qca807x.yaml75 Set Analog MDI driver amplitude to FULL.
87 Set Analog MDI driver bias current to FULL.
98 Set Analog MDI driver bias current to disable tweak
Dmarvell,aquantia.yaml51 marvell,mdi-cfg-order:
55 force normal (0) or reverse (1) order of MDI pairs, overriding MDI_CFG bootstrap pin.
/linux-6.14.4/fs/nilfs2/
Dmdt.c481 struct nilfs_mdt_info *mdi = NILFS_MDT(inode); in nilfs_mdt_clear() local
482 struct nilfs_shadow_map *shadow = mdi->mi_shadow; in nilfs_mdt_clear()
484 if (mdi->mi_palloc_cache) in nilfs_mdt_clear()
492 mdi->mi_shadow = NULL; in nilfs_mdt_clear()
502 struct nilfs_mdt_info *mdi = NILFS_MDT(inode); in nilfs_mdt_destroy() local
504 kfree(mdi->mi_bgl); /* kfree(NULL) is safe */ in nilfs_mdt_destroy()
505 kfree(mdi); in nilfs_mdt_destroy()
/linux-6.14.4/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c143 /* MDI-X => 1; MDI => 0 */ in e1000_get_link_ksettings()
174 /* MDI setting is only allowed when autoneg enabled because in e1000_set_link_ksettings()
175 * some hardware doesn't allow MDI setting when speed or in e1000_set_link_ksettings()
184 … e_err(drv, "forcing MDI/MDI-X state is not supported when link speed and/or duplex are forced\n"); in e1000_set_link_ksettings()
204 /* calling this overrides forced MDI setting */ in e1000_set_link_ksettings()
211 /* MDI-X => 2; MDI => 1; Auto => 3 */ in e1000_set_link_ksettings()
1213 /* Auto-MDI/MDIX Off */ in e1000_integrated_phy_loopback()
1216 /* reset to update Auto-MDI/MDIX */ in e1000_integrated_phy_loopback()
De1000_hw.c1094 /* Configure mdi-mdix settings */ in e1000_copper_link_igp_setup()
1101 /* Force MDI for earlier revs of the IGP PHY */ in e1000_copper_link_igp_setup()
1219 * MDI/MDI-X = 0 (default) in e1000_copper_link_mgp_setup()
1221 * 1 - MDI mode in e1000_copper_link_mgp_setup()
1222 * 2 - MDI-X mode in e1000_copper_link_mgp_setup()
1223 * 3 - Auto for 1000Base-T only (MDI-X for 10/100Base-T modes) in e1000_copper_link_mgp_setup()
1721 /* Clear Auto-Crossover to force MDI manually. M88E1000 requires in e1000_phy_force_speed_duplex()
1722 * MDI forced whenever speed are duplex are forced. in e1000_phy_force_speed_duplex()
1735 /* Disable MDI-X support for 10/100 */ in e1000_phy_force_speed_duplex()
1737 /* Clear Auto-Crossover to force MDI manually. IGP requires MDI in e1000_phy_force_speed_duplex()
[all …]
/linux-6.14.4/arch/sparc/include/uapi/asm/
Dfbio.h171 int mdi_ncluts; /* Number of implemented CLUTs in this MDI */
180 /* SparcLinux specific ioctl for the MDI, should be replaced for
/linux-6.14.4/drivers/net/ethernet/atheros/atlx/
Datlx.h407 #define MII_ATLX_PSCR_MDI_MANUAL_MODE 0x0000 /* MDI Crossover Mode bits 6:5,
408 * Manual MDI configuration
412 * 100BASE-TX/10BASE-T: MDI
/linux-6.14.4/include/uapi/linux/
Dethtool.h66 * @eth_tp_mdix: Ethernet twisted-pair MDI(-X) status; one of
69 * @eth_tp_mdix_ctrl: Ethernet twisted pair MDI(-X) control; one of
70 * %ETH_TP_MDI_*. If MDI(-X) control is not implemented, reads
2247 /* MDI or MDI-X status/control - if MDI/MDI_X/AUTO is set then
2251 #define ETH_TP_MDI 0x01 /* status: MDI; control: force MDI */
2252 #define ETH_TP_MDI_X 0x02 /* status: MDI-X; control: force MDI-X */
2438 * @eth_tp_mdix: Ethernet twisted-pair MDI(-X) status; one of
2441 * @eth_tp_mdix_ctrl: Ethernet twisted pair MDI(-X) control; one of
2442 * %ETH_TP_MDI_*. If MDI(-X) control is not implemented, reads

1234