Lines Matching refs:a0

444 	u64 *a0, u64 *a1, int wait)  in vnic_dev_cmd_proxy()  argument
453 vdev->args[2] = *a0; in vnic_dev_cmd_proxy()
470 *a0 = vdev->args[1]; in vnic_dev_cmd_proxy()
477 enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait) in vnic_dev_cmd_no_proxy() argument
481 vdev->args[0] = *a0; in vnic_dev_cmd_no_proxy()
486 *a0 = vdev->args[0]; in vnic_dev_cmd_no_proxy()
505 u64 *a0, u64 *a1, int wait) in vnic_dev_cmd() argument
512 a0, a1, wait); in vnic_dev_cmd()
515 a0, a1, wait); in vnic_dev_cmd()
518 return vnic_dev_cmd_no_proxy(vdev, cmd, a0, a1, wait); in vnic_dev_cmd()
524 u64 a0 = (u32)cmd, a1 = 0; in vnic_dev_capable() local
528 err = vnic_dev_cmd(vdev, CMD_CAPABILITY, &a0, &a1, wait); in vnic_dev_capable()
530 return !(err || a0); in vnic_dev_capable()
536 u64 a0, a1 = 0; in vnic_dev_fw_info() local
547 a0 = vdev->fw_info_pa; in vnic_dev_fw_info()
553 &a0, &a1, wait); in vnic_dev_fw_info()
556 &a0, &a1, wait); in vnic_dev_fw_info()
567 u64 a0, a1; in vnic_dev_spec() local
571 a0 = offset; in vnic_dev_spec()
574 err = vnic_dev_cmd(vdev, CMD_DEV_SPEC, &a0, &a1, wait); in vnic_dev_spec()
577 case 1: *(u8 *)value = (u8)a0; break; in vnic_dev_spec()
578 case 2: *(u16 *)value = (u16)a0; break; in vnic_dev_spec()
579 case 4: *(u32 *)value = (u32)a0; break; in vnic_dev_spec()
580 case 8: *(u64 *)value = a0; break; in vnic_dev_spec()
589 u64 a0, a1; in vnic_dev_stats_dump() local
601 a0 = vdev->stats_pa; in vnic_dev_stats_dump()
604 return vnic_dev_cmd(vdev, CMD_STATS_DUMP, &a0, &a1, wait); in vnic_dev_stats_dump()
609 u64 a0 = 0, a1 = 0; in vnic_dev_close() local
611 return vnic_dev_cmd(vdev, CMD_CLOSE, &a0, &a1, wait); in vnic_dev_close()
616 u64 a0 = 0, a1 = 0; in vnic_dev_enable_wait() local
620 return vnic_dev_cmd(vdev, CMD_ENABLE_WAIT, &a0, &a1, wait); in vnic_dev_enable_wait()
622 return vnic_dev_cmd(vdev, CMD_ENABLE, &a0, &a1, wait); in vnic_dev_enable_wait()
627 u64 a0 = 0, a1 = 0; in vnic_dev_disable() local
629 return vnic_dev_cmd(vdev, CMD_DISABLE, &a0, &a1, wait); in vnic_dev_disable()
634 u64 a0 = (u32)arg, a1 = 0; in vnic_dev_open() local
636 return vnic_dev_cmd(vdev, CMD_OPEN, &a0, &a1, wait); in vnic_dev_open()
641 u64 a0 = 0, a1 = 0; in vnic_dev_open_done() local
647 err = vnic_dev_cmd(vdev, CMD_OPEN_STATUS, &a0, &a1, wait); in vnic_dev_open_done()
651 *done = (a0 == 0); in vnic_dev_open_done()
658 u64 a0 = (u32)arg, a1 = 0; in vnic_dev_soft_reset() local
660 return vnic_dev_cmd(vdev, CMD_SOFT_RESET, &a0, &a1, wait); in vnic_dev_soft_reset()
665 u64 a0 = 0, a1 = 0; in vnic_dev_soft_reset_done() local
671 err = vnic_dev_cmd(vdev, CMD_SOFT_RESET_STATUS, &a0, &a1, wait); in vnic_dev_soft_reset_done()
675 *done = (a0 == 0); in vnic_dev_soft_reset_done()
682 u64 a0 = (u32)arg, a1 = 0; in vnic_dev_hang_reset() local
688 &a0, &a1, wait); in vnic_dev_hang_reset()
699 u64 a0 = 0, a1 = 0; in vnic_dev_hang_reset_done() local
707 &a0, &a1, wait); in vnic_dev_hang_reset_done()
714 *done = (a0 == 0); in vnic_dev_hang_reset_done()
721 u64 a0, a1; in vnic_dev_hang_notify() local
723 return vnic_dev_cmd(vdev, CMD_HANG_NOTIFY, &a0, &a1, wait); in vnic_dev_hang_notify()
728 u64 a0, a1; in vnic_dev_get_mac_addr() local
735 err = vnic_dev_cmd(vdev, CMD_GET_MAC_ADDR, &a0, &a1, wait); in vnic_dev_get_mac_addr()
740 mac_addr[i] = ((u8 *)&a0)[i]; in vnic_dev_get_mac_addr()
748 u64 a0, a1 = 0; in vnic_dev_packet_filter() local
752 a0 = (directed ? CMD_PFILTER_DIRECTED : 0) | in vnic_dev_packet_filter()
758 err = vnic_dev_cmd(vdev, CMD_PACKET_FILTER, &a0, &a1, wait); in vnic_dev_packet_filter()
767 u64 a0 = 0, a1 = 0; in vnic_dev_add_addr() local
773 ((u8 *)&a0)[i] = addr[i]; in vnic_dev_add_addr()
775 err = vnic_dev_cmd(vdev, CMD_ADDR_ADD, &a0, &a1, wait); in vnic_dev_add_addr()
784 u64 a0 = 0, a1 = 0; in vnic_dev_del_addr() local
790 ((u8 *)&a0)[i] = addr[i]; in vnic_dev_del_addr()
792 err = vnic_dev_cmd(vdev, CMD_ADDR_DEL, &a0, &a1, wait); in vnic_dev_del_addr()
802 u64 a0 = ig_vlan_rewrite_mode, a1 = 0; in vnic_dev_set_ig_vlan_rewrite_mode() local
807 &a0, &a1, wait); in vnic_dev_set_ig_vlan_rewrite_mode()
815 u64 a0, a1; in vnic_dev_notify_setcmd() local
823 a0 = (u64)notify_pa; in vnic_dev_notify_setcmd()
827 r = vnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); in vnic_dev_notify_setcmd()
854 u64 a0, a1; in vnic_dev_notify_unsetcmd() local
858 a0 = 0; /* paddr = 0 to unset notify buffer */ in vnic_dev_notify_unsetcmd()
862 err = vnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); in vnic_dev_notify_unsetcmd()
904 u64 a0 = (u32)arg, a1 = 0; in vnic_dev_init() local
909 r = vnic_dev_cmd(vdev, CMD_INIT, &a0, &a1, wait); in vnic_dev_init()
911 vnic_dev_cmd(vdev, CMD_INIT_v1, &a0, &a1, wait); in vnic_dev_init()
912 if (a0 & CMD_INITF_DEFAULT_MAC) { in vnic_dev_init()
916 vnic_dev_cmd(vdev, CMD_GET_MAC_ADDR, &a0, &a1, wait); in vnic_dev_init()
917 vnic_dev_cmd(vdev, CMD_ADDR_ADD, &a0, &a1, wait); in vnic_dev_init()
925 u64 a0 = 0, a1 = 0; in vnic_dev_deinit() local
928 return vnic_dev_cmd(vdev, CMD_DEINIT, &a0, &a1, wait); in vnic_dev_deinit()
1110 u64 a0, a1 = len; in vnic_dev_init_prov2() local
1122 a0 = prov_pa; in vnic_dev_init_prov2()
1124 ret = vnic_dev_cmd(vdev, CMD_INIT_PROV_INFO2, &a0, &a1, wait); in vnic_dev_init_prov2()
1133 u64 a0, a1 = 0; in vnic_dev_enable2() local
1136 a0 = (active ? CMD_ENABLE2_ACTIVE : 0); in vnic_dev_enable2()
1138 return vnic_dev_cmd(vdev, CMD_ENABLE2, &a0, &a1, wait); in vnic_dev_enable2()
1144 u64 a0 = cmd, a1 = 0; in vnic_dev_cmd_status() local
1148 ret = vnic_dev_cmd(vdev, CMD_STATUS, &a0, &a1, wait); in vnic_dev_cmd_status()
1150 *status = (int)a0; in vnic_dev_cmd_status()
1167 u64 a0, a1; in vnic_dev_set_mac_addr() local
1172 ((u8 *)&a0)[i] = mac_addr[i]; in vnic_dev_set_mac_addr()
1174 return vnic_dev_cmd(vdev, CMD_SET_MAC_ADDR, &a0, &a1, wait); in vnic_dev_set_mac_addr()
1194 u64 a0, a1; in vnic_dev_classifier() local
1211 a0 = tlv_pa; in vnic_dev_classifier()
1228 ret = vnic_dev_cmd(vdev, CMD_ADD_FILTER, &a0, &a1, wait); in vnic_dev_classifier()
1229 *entry = (u16)a0; in vnic_dev_classifier()
1232 a0 = *entry; in vnic_dev_classifier()
1233 ret = vnic_dev_cmd(vdev, CMD_DEL_FILTER, &a0, &a1, wait); in vnic_dev_classifier()
1241 u64 a0 = overlay; in vnic_dev_overlay_offload_ctrl() local
1245 return vnic_dev_cmd(vdev, CMD_OVERLAY_OFFLOAD_CTRL, &a0, &a1, wait); in vnic_dev_overlay_offload_ctrl()
1252 u64 a0 = overlay; in vnic_dev_overlay_offload_cfg() local
1255 return vnic_dev_cmd(vdev, CMD_OVERLAY_OFFLOAD_CFG, &a0, &a1, wait); in vnic_dev_overlay_offload_cfg()
1261 u64 a0 = feature; in vnic_dev_get_supported_feature_ver() local
1265 ret = vnic_dev_cmd(vdev, CMD_GET_SUPP_FEATURE_VER, &a0, a1, wait); in vnic_dev_get_supported_feature_ver()
1267 *supported_versions = a0; in vnic_dev_get_supported_feature_ver()
1274 u64 a0 = CMD_NIC_CFG, a1 = 0; in vnic_dev_capable_rss_hash_type() local
1278 err = vnic_dev_cmd(vdev, CMD_CAPABILITY, &a0, &a1, wait); in vnic_dev_capable_rss_hash_type()
1282 if (err || (a0 != 1)) in vnic_dev_capable_rss_hash_type()