Lines Matching full:a0

302 	u64 *a0, u64 *a1, int wait)  in vnic_dev_cmd()  argument
307 args[0] = *a0; in vnic_dev_cmd()
327 *a0 = args[0]; in vnic_dev_cmd()
361 u64 a0 = CMD_ADD_ADV_FILTER, a1 = 0; in vnic_dev_capable_adv_filters() local
365 err = vnic_dev_cmd(vdev, CMD_CAPABILITY, &a0, &a1, wait); in vnic_dev_capable_adv_filters()
428 u64 a0 = CMD_NIC_CFG, a1 = 0; in vnic_dev_capable_udp_rss_weak() local
434 err = vnic_dev_cmd(vdev, CMD_CAPABILITY, &a0, &a1, wait); in vnic_dev_capable_udp_rss_weak()
435 if (err == 0 && a0 != 0 && a1 != 0) { in vnic_dev_capable_udp_rss_weak()
443 u64 a0 = (u32)cmd, a1 = 0; in vnic_dev_capable() local
447 err = vnic_dev_cmd(vdev, CMD_CAPABILITY, &a0, &a1, wait); in vnic_dev_capable()
449 return !(err || a0); in vnic_dev_capable()
455 u64 a0, a1; in vnic_dev_spec() local
459 a0 = offset; in vnic_dev_spec()
462 err = vnic_dev_cmd(vdev, CMD_DEV_SPEC, &a0, &a1, wait); in vnic_dev_spec()
466 *(u8 *)value = (u8)a0; in vnic_dev_spec()
469 *(u16 *)value = (u16)a0; in vnic_dev_spec()
472 *(u32 *)value = (u32)a0; in vnic_dev_spec()
475 *(u64 *)value = a0; in vnic_dev_spec()
487 u64 a0 = 0, a1 = 0; in vnic_dev_stats_clear() local
490 return vnic_dev_cmd(vdev, CMD_STATS_CLEAR, &a0, &a1, wait); in vnic_dev_stats_clear()
495 u64 a0, a1; in vnic_dev_stats_dump() local
503 a0 = vdev->stats_res.idi_paddr; in vnic_dev_stats_dump()
509 rc = vnic_dev_cmd(vdev, CMD_STATS_DUMP, &a0, &a1, wait); in vnic_dev_stats_dump()
553 u64 a0 = 0, a1 = 0; in vnic_dev_close() local
556 return vnic_dev_cmd(vdev, CMD_CLOSE, &a0, &a1, wait); in vnic_dev_close()
561 u64 a0 = 0, a1 = 0; in vnic_dev_enable_wait() local
565 return vnic_dev_cmd(vdev, CMD_ENABLE_WAIT, &a0, &a1, wait); in vnic_dev_enable_wait()
567 return vnic_dev_cmd(vdev, CMD_ENABLE, &a0, &a1, wait); in vnic_dev_enable_wait()
572 u64 a0 = 0, a1 = 0; in vnic_dev_disable() local
575 return vnic_dev_cmd(vdev, CMD_DISABLE, &a0, &a1, wait); in vnic_dev_disable()
580 u64 a0 = (u32)arg, a1 = 0; in vnic_dev_open() local
583 return vnic_dev_cmd(vdev, CMD_OPEN, &a0, &a1, wait); in vnic_dev_open()
588 u64 a0 = 0, a1 = 0; in vnic_dev_open_done() local
594 err = vnic_dev_cmd(vdev, CMD_OPEN_STATUS, &a0, &a1, wait); in vnic_dev_open_done()
598 *done = (a0 == 0); in vnic_dev_open_done()
605 u64 a0 = 0, a1 = 0; in vnic_dev_get_mac_addr() local
612 err = vnic_dev_cmd(vdev, CMD_GET_MAC_ADDR, &a0, &a1, wait); in vnic_dev_get_mac_addr()
617 mac_addr[i] = ((u8 *)&a0)[i]; in vnic_dev_get_mac_addr()
625 u64 a0, a1 = 0; in vnic_dev_packet_filter() local
629 a0 = (directed ? CMD_PFILTER_DIRECTED : 0) | in vnic_dev_packet_filter()
635 err = vnic_dev_cmd(vdev, CMD_PACKET_FILTER, &a0, &a1, wait); in vnic_dev_packet_filter()
644 u64 a0 = 0, a1 = 0; in vnic_dev_add_addr() local
650 ((u8 *)&a0)[i] = addr[i]; in vnic_dev_add_addr()
652 err = vnic_dev_cmd(vdev, CMD_ADDR_ADD, &a0, &a1, wait); in vnic_dev_add_addr()
663 u64 a0 = 0, a1 = 0; in vnic_dev_del_addr() local
669 ((u8 *)&a0)[i] = addr[i]; in vnic_dev_del_addr()
671 err = vnic_dev_cmd(vdev, CMD_ADDR_DEL, &a0, &a1, wait); in vnic_dev_del_addr()
683 u64 a0 = ig_vlan_rewrite_mode, a1 = 0; in vnic_dev_set_ig_vlan_rewrite_mode() local
688 &a0, &a1, wait); in vnic_dev_set_ig_vlan_rewrite_mode()
706 u64 a0, a1; in vnic_dev_notify_setcmd() local
722 a0 = (u64)notify_pa; in vnic_dev_notify_setcmd()
726 r = vnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); in vnic_dev_notify_setcmd()
759 u64 a0, a1; in vnic_dev_notify_unsetcmd() local
763 a0 = 0; /* paddr = 0 to unset notify buffer */ in vnic_dev_notify_unsetcmd()
767 err = vnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); in vnic_dev_notify_unsetcmd()
815 u64 a0 = (u32)arg, a1 = 0; in vnic_dev_init() local
820 r = vnic_dev_cmd(vdev, CMD_INIT, &a0, &a1, wait); in vnic_dev_init()
822 vnic_dev_cmd(vdev, CMD_INIT_v1, &a0, &a1, wait); in vnic_dev_init()
823 if (a0 & CMD_INITF_DEFAULT_MAC) { in vnic_dev_init()
825 * didn't pass a0 so no CMD_INITF_*. in vnic_dev_init()
827 vnic_dev_cmd(vdev, CMD_GET_MAC_ADDR, &a0, &a1, wait); in vnic_dev_init()
828 vnic_dev_cmd(vdev, CMD_ADDR_ADD, &a0, &a1, wait); in vnic_dev_init()
963 u64 a0 = overlay; in vnic_dev_overlay_offload_ctrl() local
967 return vnic_dev_cmd(vdev, CMD_OVERLAY_OFFLOAD_CTRL, &a0, &a1, wait); in vnic_dev_overlay_offload_ctrl()
974 u64 a0 = overlay; in vnic_dev_overlay_offload_cfg() local
977 return vnic_dev_cmd(vdev, CMD_OVERLAY_OFFLOAD_CFG, &a0, &a1, wait); in vnic_dev_overlay_offload_cfg()
982 u64 a0 = VIC_FEATURE_VXLAN; in vnic_dev_capable_vxlan() local
987 ret = vnic_dev_cmd(vdev, CMD_GET_SUPP_FEATURE_VER, &a0, &a1, wait); in vnic_dev_capable_vxlan()
996 u64 a0 = 0; in vnic_dev_counter_alloc() local
1000 if (vnic_dev_cmd(vdev, CMD_COUNTER_ALLOC, &a0, &a1, wait)) in vnic_dev_counter_alloc()
1002 *idx = (uint32_t)a0; in vnic_dev_counter_alloc()
1008 u64 a0 = idx; in vnic_dev_counter_free() local
1012 return vnic_dev_cmd(vdev, CMD_COUNTER_FREE, &a0, &a1, in vnic_dev_counter_free()
1019 u64 a0 = idx; in vnic_dev_counter_query() local
1025 if (vnic_dev_cmd(vdev, CMD_COUNTER_QUERY, &a0, &a1, wait)) in vnic_dev_counter_query()
1027 *packets = a0; in vnic_dev_counter_query()