Lines Matching +full:0 +full:x1a20

33 	if (unlikely(ret < 0))  in aqc111_read_cmd_nopm()
35 "Failed to read(0x%x) reg index 0x%04x: %d\n", in aqc111_read_cmd_nopm()
49 if (unlikely(ret < 0)) in aqc111_read_cmd()
51 "Failed to read(0x%x) reg index 0x%04x: %d\n", in aqc111_read_cmd()
60 int ret = 0; in aqc111_read16_cmd_nopm()
71 int ret = 0; in aqc111_read16_cmd()
95 err = usb_control_msg(dev->udev, usb_sndctrlpipe(dev->udev, 0), in __aqc111_write_cmd()
100 if (unlikely(err < 0)) in __aqc111_write_cmd()
102 "Failed to write(0x%x) reg index 0x%04x: %d\n", in __aqc111_write_cmd()
126 if (usb_autopm_get_interface(dev->intf) < 0) in aqc111_write_cmd()
209 info->eedump_len = 0x00; in aqc111_get_drvinfo()
210 info->regdump_len = 0x00; in aqc111_get_drvinfo()
220 wolinfo->wolopts = 0; in aqc111_get_wol()
235 aqc111_data->wol_flags = 0; in aqc111_set_wol()
239 return 0; in aqc111_set_wol()
290 elk->base.mdio_support = 0x00; /*Not supported*/ in aqc111_get_link_ksettings()
317 return 0; in aqc111_get_link_ksettings()
364 aqc111_write32_cmd(dev, AQ_PHY_OPS, 0, 0, &aqc111_data->phy_cfg); in aqc111_set_phy_speed()
407 return 0; in aqc111_set_link_ksettings()
424 u16 reg16 = 0; in aqc111_change_mtu()
449 reg16 = 0x0810; in aqc111_change_mtu()
451 reg16 = 0x1020; in aqc111_change_mtu()
453 reg16 = 0x1420; in aqc111_change_mtu()
455 reg16 = 0x1A20; in aqc111_change_mtu()
460 return 0; in aqc111_change_mtu()
466 int ret = 0; in aqc111_set_mac_addr()
469 if (ret < 0) in aqc111_set_mac_addr()
481 u8 vlan_ctrl = 0; in aqc111_vlan_rx_kill_vid()
482 u16 reg16 = 0; in aqc111_vlan_rx_kill_vid()
483 u8 reg8 = 0; in aqc111_vlan_rx_kill_vid()
500 return 0; in aqc111_vlan_rx_kill_vid()
506 u8 vlan_ctrl = 0; in aqc111_vlan_rx_add_vid()
507 u16 reg16 = 0; in aqc111_vlan_rx_add_vid()
508 u8 reg8 = 0; in aqc111_vlan_rx_add_vid()
525 return 0; in aqc111_vlan_rx_add_vid()
532 int mc_count = 0; in aqc111_set_rx_mode()
544 u8 m_filter[AQ_MCAST_FILTER_SIZE] = { 0 }; in aqc111_set_rx_mode()
546 u32 crc_bits = 0; in aqc111_set_rx_mode()
571 u16 reg16 = 0; in aqc111_set_features()
572 u8 reg8 = 0; in aqc111_set_features()
595 aqc111_data->rx_checksum = 0; in aqc111_set_features()
605 u16 i = 0; in aqc111_set_features()
607 for (i = 0; i < 256; i++) { in aqc111_set_features()
636 return 0; in aqc111_set_features()
659 ret = aqc111_read_cmd(dev, AQ_FLASH_PARAMETERS, 0, 0, ETH_ALEN, buf); in aqc111_read_perm_mac()
660 if (ret < 0) in aqc111_read_perm_mac()
665 return 0; in aqc111_read_perm_mac()
680 if (aqc111_data->fw_ver.major & 0x80) in aqc111_read_fw_version()
681 aqc111_data->fw_ver.major &= ~0x80; in aqc111_read_fw_version()
700 if (ret < 0) { in aqc111_bind()
745 return 0; in aqc111_bind()
761 reg16 = 0; in aqc111_unbind()
769 aqc111_write32_cmd_nopm(dev, AQ_PHY_OPS, 0, 0, in aqc111_unbind()
779 int link = 0; in aqc111_status()
790 link = 0; in aqc111_status()
804 u16 link_speed = 0, usb_host = 0; in aqc111_configure_rx()
805 u8 buf[5] = { 0 }; in aqc111_configure_rx()
806 u8 queue_num = 0; in aqc111_configure_rx()
807 u16 reg16 = 0; in aqc111_configure_rx()
808 u8 reg8 = 0; in aqc111_configure_rx()
810 buf[0] = 0x00; in aqc111_configure_rx()
811 buf[1] = 0xF8; in aqc111_configure_rx()
812 buf[2] = 0x07; in aqc111_configure_rx()
816 reg8 = 0x05; in aqc111_configure_rx()
817 reg16 = 0x001F; in aqc111_configure_rx()
821 reg16 = 0x003F; in aqc111_configure_rx()
825 reg16 = 0x009F; in aqc111_configure_rx()
830 reg16 = 0x063F; in aqc111_configure_rx()
831 buf[1] = 0xFB; in aqc111_configure_rx()
832 buf[2] = 0x4; in aqc111_configure_rx()
851 queue_num = 0; in aqc111_configure_rx()
854 usb_host = 0; in aqc111_configure_rx()
867 reg16 = 0x0810; in aqc111_configure_rx()
869 reg16 = 0x1020; in aqc111_configure_rx()
871 reg16 = 0x1420; in aqc111_configure_rx()
873 reg16 = 0x1A20; in aqc111_configure_rx()
882 u8 reg8 = 0; in aqc111_configure_csum_offload()
890 reg8 = 0; in aqc111_configure_csum_offload()
903 u16 reg16 = 0; in aqc111_link_reset()
904 u8 reg8 = 0; in aqc111_link_reset()
917 reg8 = 0x0; in aqc111_link_reset()
938 reg16 = 0; in aqc111_link_reset()
986 return 0; in aqc111_link_reset()
992 u8 reg8 = 0; in aqc111_reset()
1005 aqc111_write32_cmd(dev, AQ_PHY_OPS, 0, 0, in aqc111_reset()
1012 reg8 = 0xFF; in aqc111_reset()
1015 reg8 = 0x0; in aqc111_reset()
1030 return 0; in aqc111_reset()
1036 u16 reg16 = 0; in aqc111_stop()
1043 reg16 = 0; in aqc111_stop()
1048 aqc111_write32_cmd(dev, AQ_PHY_OPS, 0, 0, in aqc111_stop()
1053 return 0; in aqc111_stop()
1058 u32 pkt_type = 0; in aqc111_rx_checksum()
1075 u32 pkt_total_offset = 0; in aqc111_rx_fixup()
1077 u32 start_of_descs = 0; in aqc111_rx_fixup()
1078 u32 desc_offset = 0; /*RX Header Offset*/ in aqc111_rx_fixup()
1079 u16 pkt_count = 0; in aqc111_rx_fixup()
1080 u64 desc_hdr = 0; in aqc111_rx_fixup()
1081 u16 vlan_tag = 0; in aqc111_rx_fixup()
1114 if (pkt_count == 0) in aqc111_rx_fixup()
1122 u32 pkt_len_with_padd = 0; in aqc111_rx_fixup()
1123 u32 pkt_len = 0; in aqc111_rx_fixup()
1127 pkt_len_with_padd = ((pkt_len + 7) & 0x7FFF8); in aqc111_rx_fixup()
1131 (pkt_count == 0 && pkt_total_offset != desc_offset)) { in aqc111_rx_fixup()
1163 if (pkt_count == 0) in aqc111_rx_fixup()
1177 return 0; in aqc111_rx_fixup()
1186 int padding_size = 0; in aqc111_tx_fixup()
1187 int headroom = 0; in aqc111_tx_fixup()
1188 int tailroom = 0; in aqc111_tx_fixup()
1189 u64 tx_desc = 0; in aqc111_tx_fixup()
1190 u16 tci = 0; in aqc111_tx_fixup()
1200 if (headroom != 0) in aqc111_tx_fixup()
1203 if (((skb->len + sizeof(tx_desc) + padding_size) % frame_size) == 0) { in aqc111_tx_fixup()
1209 if (vlan_get_tag(skb, &tci) >= 0) { in aqc111_tx_fixup()
1230 if (padding_size != 0) in aqc111_tx_fixup()
1236 usbnet_set_skb_tx_stats(skb, 1, 0); in aqc111_tx_fixup()
1325 u16 temp_rx_ctrl = 0x00; in aqc111_suspend()
1352 reg8 = 0x00; in aqc111_suspend()
1359 memset(&wol_cfg, 0, sizeof(struct aqc111_wol_cfg)); in aqc111_suspend()
1368 reg8 = 0x00; in aqc111_suspend()
1377 reg8 = 0x07; in aqc111_suspend()
1380 reg8 = 0x00; in aqc111_suspend()
1385 reg8 = 0xFF; in aqc111_suspend()
1397 aqc111_write_cmd(dev, AQ_WOL_CFG, 0, 0, in aqc111_suspend()
1399 aqc111_write32_cmd(dev, AQ_PHY_OPS, 0, 0, in aqc111_suspend()
1403 aqc111_write32_cmd(dev, AQ_PHY_OPS, 0, 0, in aqc111_suspend()
1414 return 0; in aqc111_suspend()
1431 reg8 = 0xFF; in aqc111_resume()
1453 reg8 = 0x0; in aqc111_resume()
1471 {AQC111_USB_ETH_DEV(0x2eca, 0xc101, aqc111_info)},
1472 {AQC111_USB_ETH_DEV(0x0b95, 0x2790, asix111_info)},
1473 {AQC111_USB_ETH_DEV(0x0b95, 0x2791, asix112_info)},
1474 {AQC111_USB_ETH_DEV(0x20f4, 0xe05a, trendnet_info)},
1475 {AQC111_USB_ETH_DEV(0x1c04, 0x0015, qnap_info)},