Lines Matching refs:descriptor
24 struct gve_device_option *gve_get_next_option(struct gve_device_descriptor *descriptor, in gve_get_next_option() argument
30 descriptor_end = (void *)descriptor + be16_to_cpu(descriptor->total_length); in gve_get_next_option()
162 struct gve_device_descriptor *descriptor, in gve_process_device_options() argument
169 const int num_options = be16_to_cpu(descriptor->num_device_options); in gve_process_device_options()
174 dev_opt = (void *)(descriptor + 1); in gve_process_device_options()
178 next_opt = gve_get_next_option(descriptor, dev_opt); in gve_process_device_options()
185 gve_parse_device_option(priv, descriptor, dev_opt, in gve_process_device_options()
697 struct gve_device_descriptor *descriptor) in gve_set_desc_cnt() argument
699 priv->tx_desc_cnt = be16_to_cpu(descriptor->tx_queue_entries); in gve_set_desc_cnt()
705 priv->rx_desc_cnt = be16_to_cpu(descriptor->rx_queue_entries); in gve_set_desc_cnt()
717 const struct gve_device_descriptor *descriptor, in gve_set_desc_cnt_dqo() argument
720 priv->tx_desc_cnt = be16_to_cpu(descriptor->tx_queue_entries); in gve_set_desc_cnt_dqo()
721 priv->rx_desc_cnt = be16_to_cpu(descriptor->rx_queue_entries); in gve_set_desc_cnt_dqo()
772 struct gve_device_descriptor *descriptor; in gve_adminq_describe_device() local
781 descriptor = dma_alloc_coherent(&priv->pdev->dev, PAGE_SIZE, in gve_adminq_describe_device()
783 if (!descriptor) in gve_adminq_describe_device()
796 err = gve_process_device_options(priv, descriptor, &dev_op_gqi_rda, in gve_adminq_describe_device()
835 err = gve_set_desc_cnt(priv, descriptor); in gve_adminq_describe_device()
839 err = gve_set_desc_cnt_dqo(priv, descriptor, dev_op_dqo_rda); in gve_adminq_describe_device()
845 be64_to_cpu(descriptor->max_registered_pages); in gve_adminq_describe_device()
846 mtu = be16_to_cpu(descriptor->mtu); in gve_adminq_describe_device()
853 priv->num_event_counters = be16_to_cpu(descriptor->counters); in gve_adminq_describe_device()
854 eth_hw_addr_set(priv->dev, descriptor->mac); in gve_adminq_describe_device()
855 mac = descriptor->mac; in gve_adminq_describe_device()
857 priv->tx_pages_per_qpl = be16_to_cpu(descriptor->tx_pages_per_qpl); in gve_adminq_describe_device()
858 priv->rx_data_slot_cnt = be16_to_cpu(descriptor->rx_pages_per_qpl); in gve_adminq_describe_device()
865 priv->default_num_queues = be16_to_cpu(descriptor->default_num_queues); in gve_adminq_describe_device()
871 dma_free_coherent(&priv->pdev->dev, PAGE_SIZE, descriptor, in gve_adminq_describe_device()