Lines Matching refs:a1
457 u64 *a0, u64 *a1, int wait) in vnic_dev_cmd_proxy() argument
467 vdev->args[3] = *a1; in vnic_dev_cmd_proxy()
484 *a1 = vdev->args[2]; in vnic_dev_cmd_proxy()
490 enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait) in vnic_dev_cmd_no_proxy() argument
495 vdev->args[1] = *a1; in vnic_dev_cmd_no_proxy()
500 *a1 = vdev->args[1]; in vnic_dev_cmd_no_proxy()
518 u64 *a0, u64 *a1, int wait) in vnic_dev_cmd() argument
525 a0, a1, wait); in vnic_dev_cmd()
528 a0, a1, wait); in vnic_dev_cmd()
531 return vnic_dev_cmd_no_proxy(vdev, cmd, a0, a1, wait); in vnic_dev_cmd()
537 u64 a0 = (u32)cmd, a1 = 0; in vnic_dev_capable() local
541 err = vnic_dev_cmd(vdev, CMD_CAPABILITY, &a0, &a1, wait); in vnic_dev_capable()
549 u64 a0, a1 = 0; in vnic_dev_fw_info() local
561 a1 = sizeof(struct vnic_devcmd_fw_info); in vnic_dev_fw_info()
566 &a0, &a1, wait); in vnic_dev_fw_info()
569 &a0, &a1, wait); in vnic_dev_fw_info()
580 u64 a0, a1; in vnic_dev_spec() local
585 a1 = size; in vnic_dev_spec()
587 err = vnic_dev_cmd(vdev, CMD_DEV_SPEC, &a0, &a1, wait); in vnic_dev_spec()
602 u64 a0, a1; in vnic_dev_stats_dump() local
615 a1 = sizeof(struct vnic_stats); in vnic_dev_stats_dump()
617 return vnic_dev_cmd(vdev, CMD_STATS_DUMP, &a0, &a1, wait); in vnic_dev_stats_dump()
622 u64 a0 = 0, a1 = 0; in vnic_dev_close() local
624 return vnic_dev_cmd(vdev, CMD_CLOSE, &a0, &a1, wait); in vnic_dev_close()
629 u64 a0 = 0, a1 = 0; in vnic_dev_enable_wait() local
633 return vnic_dev_cmd(vdev, CMD_ENABLE_WAIT, &a0, &a1, wait); in vnic_dev_enable_wait()
635 return vnic_dev_cmd(vdev, CMD_ENABLE, &a0, &a1, wait); in vnic_dev_enable_wait()
640 u64 a0 = 0, a1 = 0; in vnic_dev_disable() local
642 return vnic_dev_cmd(vdev, CMD_DISABLE, &a0, &a1, wait); in vnic_dev_disable()
647 u64 a0 = (u32)arg, a1 = 0; in vnic_dev_open() local
649 return vnic_dev_cmd(vdev, CMD_OPEN, &a0, &a1, wait); in vnic_dev_open()
654 u64 a0 = 0, a1 = 0; in vnic_dev_open_done() local
660 err = vnic_dev_cmd(vdev, CMD_OPEN_STATUS, &a0, &a1, wait); in vnic_dev_open_done()
671 u64 a0 = (u32)arg, a1 = 0; in vnic_dev_soft_reset() local
673 return vnic_dev_cmd(vdev, CMD_SOFT_RESET, &a0, &a1, wait); in vnic_dev_soft_reset()
678 u64 a0 = 0, a1 = 0; in vnic_dev_soft_reset_done() local
684 err = vnic_dev_cmd(vdev, CMD_SOFT_RESET_STATUS, &a0, &a1, wait); in vnic_dev_soft_reset_done()
695 u64 a0 = (u32)arg, a1 = 0; in vnic_dev_hang_reset() local
701 &a0, &a1, wait); in vnic_dev_hang_reset()
712 u64 a0 = 0, a1 = 0; in vnic_dev_hang_reset_done() local
720 &a0, &a1, wait); in vnic_dev_hang_reset_done()
734 u64 a0, a1; in vnic_dev_hang_notify() local
736 return vnic_dev_cmd(vdev, CMD_HANG_NOTIFY, &a0, &a1, wait); in vnic_dev_hang_notify()
741 u64 a0, a1; in vnic_dev_get_mac_addr() local
748 err = vnic_dev_cmd(vdev, CMD_GET_MAC_ADDR, &a0, &a1, wait); in vnic_dev_get_mac_addr()
761 u64 a0, a1 = 0; in vnic_dev_packet_filter() local
771 err = vnic_dev_cmd(vdev, CMD_PACKET_FILTER, &a0, &a1, wait); in vnic_dev_packet_filter()
780 u64 a0 = 0, a1 = 0; in vnic_dev_add_addr() local
788 err = vnic_dev_cmd(vdev, CMD_ADDR_ADD, &a0, &a1, wait); in vnic_dev_add_addr()
797 u64 a0 = 0, a1 = 0; in vnic_dev_del_addr() local
805 err = vnic_dev_cmd(vdev, CMD_ADDR_DEL, &a0, &a1, wait); in vnic_dev_del_addr()
815 u64 a0 = ig_vlan_rewrite_mode, a1 = 0; in vnic_dev_set_ig_vlan_rewrite_mode() local
820 &a0, &a1, wait); in vnic_dev_set_ig_vlan_rewrite_mode()
828 u64 a0, a1; in vnic_dev_notify_setcmd() local
837 a1 = ((u64)intr << 32) & 0x0000ffff00000000ULL; in vnic_dev_notify_setcmd()
838 a1 += sizeof(struct vnic_devcmd_notify); in vnic_dev_notify_setcmd()
840 r = vnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); in vnic_dev_notify_setcmd()
841 vdev->notify_sz = (r == 0) ? (u32)a1 : 0; in vnic_dev_notify_setcmd()
867 u64 a0, a1; in vnic_dev_notify_unsetcmd() local
872 a1 = 0x0000ffff00000000ULL; /* intr num = -1 to unreg for intr */ in vnic_dev_notify_unsetcmd()
873 a1 += sizeof(struct vnic_devcmd_notify); in vnic_dev_notify_unsetcmd()
875 err = vnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); in vnic_dev_notify_unsetcmd()
917 u64 a0 = (u32)arg, a1 = 0; in vnic_dev_init() local
922 r = vnic_dev_cmd(vdev, CMD_INIT, &a0, &a1, wait); in vnic_dev_init()
924 vnic_dev_cmd(vdev, CMD_INIT_v1, &a0, &a1, wait); in vnic_dev_init()
929 vnic_dev_cmd(vdev, CMD_GET_MAC_ADDR, &a0, &a1, wait); in vnic_dev_init()
930 vnic_dev_cmd(vdev, CMD_ADDR_ADD, &a0, &a1, wait); in vnic_dev_init()
938 u64 a0 = 0, a1 = 0; in vnic_dev_deinit() local
941 return vnic_dev_cmd(vdev, CMD_DEINIT, &a0, &a1, wait); in vnic_dev_deinit()
1123 u64 a0, a1 = len; in vnic_dev_init_prov2() local
1137 ret = vnic_dev_cmd(vdev, CMD_INIT_PROV_INFO2, &a0, &a1, wait); in vnic_dev_init_prov2()
1146 u64 a0, a1 = 0; in vnic_dev_enable2() local
1151 return vnic_dev_cmd(vdev, CMD_ENABLE2, &a0, &a1, wait); in vnic_dev_enable2()
1157 u64 a0 = cmd, a1 = 0; in vnic_dev_cmd_status() local
1161 ret = vnic_dev_cmd(vdev, CMD_STATUS, &a0, &a1, wait); in vnic_dev_cmd_status()
1180 u64 a0, a1; in vnic_dev_set_mac_addr() local
1187 return vnic_dev_cmd(vdev, CMD_SET_MAC_ADDR, &a0, &a1, wait); in vnic_dev_set_mac_addr()
1207 u64 a0, a1; in vnic_dev_classifier() local
1225 a1 = tlv_size; in vnic_dev_classifier()
1241 ret = vnic_dev_cmd(vdev, CMD_ADD_FILTER, &a0, &a1, wait); in vnic_dev_classifier()
1246 ret = vnic_dev_cmd(vdev, CMD_DEL_FILTER, &a0, &a1, wait); in vnic_dev_classifier()
1255 u64 a1 = config; in vnic_dev_overlay_offload_ctrl() local
1258 return vnic_dev_cmd(vdev, CMD_OVERLAY_OFFLOAD_CTRL, &a0, &a1, wait); in vnic_dev_overlay_offload_ctrl()
1264 u64 a1 = vxlan_udp_port_number; in vnic_dev_overlay_offload_cfg() local
1268 return vnic_dev_cmd(vdev, CMD_OVERLAY_OFFLOAD_CFG, &a0, &a1, wait); in vnic_dev_overlay_offload_cfg()
1272 u64 *supported_versions, u64 *a1) in vnic_dev_get_supported_feature_ver() argument
1278 ret = vnic_dev_cmd(vdev, CMD_GET_SUPP_FEATURE_VER, &a0, a1, wait); in vnic_dev_get_supported_feature_ver()
1287 u64 a0 = CMD_NIC_CFG, a1 = 0; in vnic_dev_capable_rss_hash_type() local
1291 err = vnic_dev_cmd(vdev, CMD_CAPABILITY, &a0, &a1, wait); in vnic_dev_capable_rss_hash_type()
1298 a1 = (a1 >> NIC_CFG_RSS_HASH_TYPE_SHIFT) & in vnic_dev_capable_rss_hash_type()
1301 *rss_hash_type = (u8)a1; in vnic_dev_capable_rss_hash_type()