Home
last modified time | relevance | path

Searched refs:if_mode (Results 1 – 25 of 28) sorted by relevance

12

/OK3568_Linux_fs/u-boot/drivers/net/fm/
H A Dmemac.c74 u32 if_mode, if_status; in memac_set_interface_mode() local
77 if_mode = in_be32(&regs->if_mode); in memac_set_interface_mode()
83 if_mode &= ~IF_MODE_MASK; in memac_set_interface_mode()
84 if_mode |= IF_MODE_GMII; in memac_set_interface_mode()
88 if_mode |= (IF_MODE_GMII | IF_MODE_RG); in memac_set_interface_mode()
91 if_mode |= (IF_MODE_GMII | IF_MODE_RM); in memac_set_interface_mode()
96 if_mode &= ~IF_MODE_MASK; in memac_set_interface_mode()
97 if_mode |= (IF_MODE_GMII); in memac_set_interface_mode()
100 if_mode &= ~IF_MODE_MASK; in memac_set_interface_mode()
101 if_mode |= IF_MODE_XGMII; in memac_set_interface_mode()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-mac.c10 static int phy_mode(enum dpmac_eth_if eth_if, phy_interface_t *if_mode) in phy_mode() argument
12 *if_mode = PHY_INTERFACE_MODE_NA; in phy_mode()
16 *if_mode = PHY_INTERFACE_MODE_RGMII; in phy_mode()
19 *if_mode = PHY_INTERFACE_MODE_USXGMII; in phy_mode()
22 *if_mode = PHY_INTERFACE_MODE_QSGMII; in phy_mode()
25 *if_mode = PHY_INTERFACE_MODE_SGMII; in phy_mode()
28 *if_mode = PHY_INTERFACE_MODE_10GBASER; in phy_mode()
64 phy_interface_t if_mode; in dpaa2_mac_get_if_mode() local
67 err = of_get_phy_mode(node, &if_mode); in dpaa2_mac_get_if_mode()
69 return if_mode; in dpaa2_mac_get_if_mode()
[all …]
H A Ddpaa2-mac.h23 phy_interface_t if_mode; member
/OK3568_Linux_fs/kernel/drivers/net/pcs/
H A Dpcs-lynx.c116 u16 if_mode; in lynx_pcs_config_sgmii() local
119 if_mode = IF_MODE_SGMII_EN; in lynx_pcs_config_sgmii()
123 if_mode |= IF_MODE_USE_SGMII_AN; in lynx_pcs_config_sgmii()
132 if_mode); in lynx_pcs_config_sgmii()
192 u16 if_mode = 0, sgmii_speed; in lynx_pcs_link_up_sgmii() local
202 if_mode |= IF_MODE_HALF_DUPLEX; in lynx_pcs_link_up_sgmii()
221 if_mode |= IF_MODE_SPEED(sgmii_speed); in lynx_pcs_link_up_sgmii()
225 if_mode); in lynx_pcs_link_up_sgmii()
250 u16 if_mode = 0; in lynx_pcs_link_up_2500basex() local
258 if_mode |= IF_MODE_HALF_DUPLEX; in lynx_pcs_link_up_2500basex()
[all …]
/OK3568_Linux_fs/kernel/drivers/phy/mscc/
H A Dphy-ocelot-serdes.c66 u32 if_mode; in serdes_init_s6g() local
77 if_mode = 3; in serdes_init_s6g()
85 if_mode = 1; in serdes_init_s6g()
211 HSIO_S6G_COMMON_CFG_IF_MODE(if_mode)); in serdes_init_s6g()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_init_ops.h291 op->if_mode.mode_bit_map) != in bnx2x_init_block()
292 op->if_mode.mode_bit_map) in bnx2x_init_block()
293 op_idx += op->if_mode.cmd_offset; in bnx2x_init_block()
300 op->if_mode.mode_bit_map) == 0) in bnx2x_init_block()
301 op_idx += op->if_mode.cmd_offset; in bnx2x_init_block()
H A Dbnx2x_init.h97 struct op_if_mode if_mode; member
/OK3568_Linux_fs/kernel/drivers/tty/
H A Dsynclink_gt.c274 unsigned int if_mode; member
464 static int get_interface(struct slgt_info *info, int __user *if_mode);
465 static int set_interface(struct slgt_info *info, int if_mode);
469 static int get_xsync(struct slgt_info *info, int __user *if_mode);
470 static int set_xsync(struct slgt_info *info, int if_mode);
471 static int get_xctrl(struct slgt_info *info, int __user *if_mode);
472 static int set_xctrl(struct slgt_info *info, int if_mode);
2777 static int get_interface(struct slgt_info *info, int __user *if_mode) in get_interface() argument
2779 DBGINFO(("%s get_interface=%x\n", info->device_name, info->if_mode)); in get_interface()
2780 if (put_user(info->if_mode, if_mode)) in get_interface()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/freescale/enetc/
H A Denetc_pf.h51 phy_interface_t if_mode; member
H A Denetc_pf.c868 return (pf->if_mode == PHY_INTERFACE_MODE_SGMII || in enetc_port_has_pcs()
869 pf->if_mode == PHY_INTERFACE_MODE_2500BASEX || in enetc_port_has_pcs()
870 pf->if_mode == PHY_INTERFACE_MODE_USXGMII); in enetc_port_has_pcs()
1034 pf->if_mode, &enetc_mac_phylink_ops); in enetc_phylink_create()
1197 if (!of_get_phy_mode(node, &pf->if_mode)) { in enetc_pf_probe()
/OK3568_Linux_fs/kernel/drivers/media/tuners/
H A Dmxl5005s.h97 u8 if_mode; member
/OK3568_Linux_fs/kernel/drivers/net/ethernet/freescale/fman/
H A Dfman_memac.c305 u32 if_mode; /* 0x300 Interface Mode Control */ member
453 iowrite32be(tmp, &regs->if_mode); in init()
776 tmp = ioread32be(&regs->if_mode); in memac_adjust_link()
803 iowrite32be(tmp, &regs->if_mode); in memac_adjust_link()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/cavium/liquidio/
H A Dliquidio_common.h695 u64 if_mode:5; member
705 u64 if_mode:5;
H A Dlio_ethtool.c242 if (linfo->link.s.if_mode == INTERFACE_MODE_XAUI || in lio_get_link_ksettings()
243 linfo->link.s.if_mode == INTERFACE_MODE_RXAUI || in lio_get_link_ksettings()
244 linfo->link.s.if_mode == INTERFACE_MODE_XLAUI || in lio_get_link_ksettings()
245 linfo->link.s.if_mode == INTERFACE_MODE_XFI) { in lio_get_link_ksettings()
250 linfo->link.s.if_mode); in lio_get_link_ksettings()
/OK3568_Linux_fs/u-boot/include/
H A Dfsl_memac.h140 u32 if_mode; /* interface mode control */ member
/OK3568_Linux_fs/kernel/include/linux/
H A Dmemstick.h48 unsigned char if_mode; member
/OK3568_Linux_fs/kernel/drivers/char/pcmcia/
H A Dsynclink_cs.c197 int if_mode; /* serial interface selection (RS-232, v.35 etc) */ member
1854 static int get_interface(MGSLPC_INFO * info, int __user *if_mode) in get_interface() argument
1858 printk("get_interface(%s)=%d\n", info->device_name, info->if_mode); in get_interface()
1859 COPY_TO_USER(err,if_mode, &info->if_mode, sizeof(int)); in get_interface()
1865 static int set_interface(MGSLPC_INFO * info, int if_mode) in set_interface() argument
1870 printk("set_interface(%s,%d)\n", info->device_name, if_mode); in set_interface()
1872 info->if_mode = if_mode; in set_interface()
1875 switch (info->if_mode) in set_interface()
/OK3568_Linux_fs/kernel/drivers/media/usb/dvb-usb-v2/
H A Dce6230.c192 .if_mode = MXL_ZERO_IF,
H A Dec168.c285 .if_mode = MXL_ZERO_IF,
H A Daf9015.c961 .if_mode = MXL_ZERO_IF,
978 .if_mode = MXL_ZERO_IF,
/OK3568_Linux_fs/u-boot/drivers/qe/
H A Duec.c309 phy_interface_t if_mode, int speed) in uec_set_mac_if_mode() argument
322 enet_if_mode = if_mode; in uec_set_mac_if_mode()
/OK3568_Linux_fs/kernel/drivers/media/pci/cx18/
H A Dcx18-dvb.c53 .if_mode = MXL_ZERO_IF,
/OK3568_Linux_fs/kernel/drivers/net/ethernet/qlogic/qed/
H A Dqed_init_ops.c562 cmd_num += qed_init_cmd_mode(p_hwfn, &cmd->if_mode, in qed_init_run()
/OK3568_Linux_fs/kernel/drivers/memstick/core/
H A Dmemstick.c341 dev_dbg(&card->dev, "if_mode = %02x\n", id_reg.if_mode); in h_memstick_read_dev_id()
/OK3568_Linux_fs/kernel/drivers/media/usb/dvb-usb/
H A Dcxusb.c670 .if_mode = MXL_ZERO_IF,
688 .if_mode = MXL_ZERO_IF,

12