Home
last modified time | relevance | path

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

123

/linux/drivers/media/mc/
H A 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/drivers/net/ethernet/intel/igb/
H A 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 …]
H A 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/drivers/net/ethernet/intel/e1000e/
H A 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 */
H A 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 …]
H A 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()
H A 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()
1343 /* Auto-MDI/MDIX Off */ in e1000_integrated_phy_loopback()
1345 /* reset to update Auto-MDI/MDIX */ in e1000_integrated_phy_loopback()
H A Ddefines.h720 #define M88E1000_PSCR_MDI_MANUAL_MODE 0x0000 /* MDI Crossover Mode bits 6:5 */
721 /* Manual MDI configuration */
723 /* 1000BASE-T: Auto crossover, 100BASE-TX/10BASE-T: MDI Mode */
732 #define M88E1000_PSSR_MDIX 0x0040 /* 1=MDIX; 0=MDI */
797 /* MDI Control */
H A D80003es2lan.h32 #define GG82563_PSCR_CROSSOVER_MODE_MDI 0x0000 /* 00=Manual MDI */
/linux/tools/testing/selftests/media_tests/
H A 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()
H A 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/drivers/net/ethernet/intel/igc/
H A 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/Documentation/devicetree/bindings/net/pse-pd/
H A Dpse-controller.yaml87 | | (MDI-X) | (MDI) | (X) | (S) |
108 - MDI-X
109 - MDI
H A Dti,tps23881.yaml112 polarity-supported = "MDI", "S";
121 polarity-supported = "MDI";
H A Dmicrochip,pd692x0.yaml179 polarity-supported = "MDI", "S";
187 polarity-supported = "MDI";
/linux/Documentation/networking/pse-pd/
H A 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/Documentation/devicetree/bindings/net/
H A 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
/linux/fs/nilfs2/
H A Dmdt.c479 struct nilfs_mdt_info *mdi = NILFS_MDT(inode); in nilfs_mdt_clear() local
480 struct nilfs_shadow_map *shadow = mdi->mi_shadow; in nilfs_mdt_clear()
482 if (mdi->mi_palloc_cache) in nilfs_mdt_clear()
490 mdi->mi_shadow = NULL; in nilfs_mdt_clear()
500 struct nilfs_mdt_info *mdi = NILFS_MDT(inode); in nilfs_mdt_destroy() local
502 kfree(mdi->mi_bgl); /* kfree(NULL) is safe */ in nilfs_mdt_destroy()
503 kfree(mdi); in nilfs_mdt_destroy()
/linux/arch/sparc/include/uapi/asm/
H A Dfbio.h171 int mdi_ncluts; /* Number of implemented CLUTs in this MDI */
180 /* SparcLinux specific ioctl for the MDI, should be replaced for
/linux/drivers/net/phy/
H A Dsmsc.c165 * To establish a stable link, we must select a fixed MDI mode. in lan87xx_config_aneg()
166 * If the user has not specified a fixed MDI mode (i.e., mdix_ctrl is in lan87xx_config_aneg()
169 * strap were configured for a fixed MDI connection. in lan87xx_config_aneg()
288 /* The LAN87xx PHY's initial MDI-X mode is determined by the AUTOMDIX_EN in lan87xx_phy_config_init()
/linux/drivers/net/ethernet/atheros/atlx/
H A 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/include/uapi/linux/
H A 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
2265 /* MDI or MDI-X status/control - if MDI/MDI_X/AUTO is set then
2269 #define ETH_TP_MDI 0x01 /* status: MDI; control: force MDI */
2270 #define ETH_TP_MDI_X 0x02 /* status: MDI-X; control: force MDI
[all...]
/linux/drivers/net/ethernet/intel/e1000/
H A De1000_param.c721 /* Speed, AutoNeg and MDI/MDI-X must all play nice */ in e1000_check_copper_options()
723 e_dev_info("Speed, AutoNeg and MDI-X specs are incompatible. " in e1000_check_copper_options()
724 "Setting MDI-X to a compatible value.\n"); in e1000_check_copper_options()
H A De1000_hw.h783 #define E1000_MDIC 0x00020 /* MDI Control - RW */
1584 /* MDI Control */
2701 #define M88E1000_PSCR_MDI_MANUAL_MODE 0x0000 /* MDI Crossover Mode bits 6:5 */
2702 /* Manual MDI configuration */
2706 * MDI Mode
2730 #define M88E1000_PSSR_MDIX 0x0040 /* 1=MDIX; 0=MDI */
2811 #define IGP01E1000_PSCR_FORCE_MDI_MDIX 0x2000 /* 0-MDI, 1-MDIX */
2982 #define IFE_PHY_MDIX_CONTROL 0x1C /* MDI/MDI-X Control register */
3001 #define IFE_PMC_AUTO_MDIX 0x0080 /* 1=enable MDI/MDI-X feature, default 0=disabl…
3002 #define IFE_PMC_FORCE_MDIX 0x0040 /* 1=force MDIX-X, 0=force MDI */
[all …]
/linux/arch/m68k/include/asm/
H A Dfbio.h174 int mdi_ncluts; /* Number of implemented CLUTs in this MDI */
183 /* SparcLinux specific ioctl for the MDI, should be replaced for

123