Searched refs:oct_hw (Results 1 – 3 of 3) sorted by relevance
| /drivers/vdpa/octeon_ep/ |
| A D | octep_vdpa_hw.c | 477 oct_hw->common_cfg = octep_get_cap_addr(oct_hw, &cap); in octep_hw_caps_read() 489 oct_hw->dev_cfg = octep_get_cap_addr(oct_hw, &cap); in octep_hw_caps_read() 492 oct_hw->isr = octep_get_cap_addr(oct_hw, &cap); in octep_hw_caps_read() 507 if (!oct_hw->common_cfg || !oct_hw->notify_base || in octep_hw_caps_read() 508 !oct_hw->dev_cfg || !oct_hw->isr) { in octep_hw_caps_read() 516 oct_hw->notify_base, oct_hw->notify_off_multiplier); in octep_hw_caps_read() 518 oct_hw->config_size = octep_get_config_size(oct_hw); in octep_hw_caps_read() 519 oct_hw->features = octep_hw_get_dev_features(oct_hw); in octep_hw_caps_read() 528 oct_hw->vqs = devm_kcalloc(&pdev->dev, oct_hw->nr_vring, sizeof(*oct_hw->vqs), GFP_KERNEL); in octep_hw_caps_read() 538 oct_hw->vqs[i].notify_addr = oct_hw->notify_base + in octep_hw_caps_read() [all …]
|
| A D | octep_vdpa_main.c | 63 for (i = irq - oct_hw->irqs[0]; i < oct_hw->nr_vring; i += oct_hw->nb_irqs) { in octep_vdpa_intr_handler() 69 oct_hw->vqs[i].cb.callback(oct_hw->vqs[i].cb.private); in octep_vdpa_intr_handler() 75 if (unlikely(irq == oct_hw->irqs[0] && ioread8(oct_hw->isr))) { in octep_vdpa_intr_handler() 79 oct_hw->config_cb.callback(oct_hw->config_cb.private); in octep_vdpa_intr_handler() 90 if (!oct_hw->irqs) in octep_free_irqs() 97 devm_free_irq(&pdev->dev, oct_hw->irqs[irq], oct_hw); in octep_free_irqs() 111 if (!oct_hw->irqs) in octep_request_irqs() 475 oct_hw = &mgmt_dev->oct_hw; in octep_vdpa_remove_vf() 504 struct octep_hw *oct_hw = &mgmt_dev->oct_hw; in octep_vdpa_dev_add() local 521 oct_vdpa->oct_hw = oct_hw; in octep_vdpa_dev_add() [all …]
|
| A D | octep_vdpa.h | 94 u8 octep_hw_get_status(struct octep_hw *oct_hw); 96 void octep_hw_reset(struct octep_hw *oct_hw); 97 void octep_write_queue_select(struct octep_hw *oct_hw, u16 queue_id); 98 void octep_notify_queue(struct octep_hw *oct_hw, u16 qid); 102 void octep_set_vq_num(struct octep_hw *oct_hw, u16 qid, u32 num); 103 void octep_set_vq_ready(struct octep_hw *oct_hw, u16 qid, bool ready); 104 bool octep_get_vq_ready(struct octep_hw *oct_hw, u16 qid); 107 u16 octep_get_vq_size(struct octep_hw *oct_hw); 108 int octep_hw_caps_read(struct octep_hw *oct_hw, struct pci_dev *pdev); 109 u64 octep_hw_get_dev_features(struct octep_hw *oct_hw); [all …]
|
Completed in 11 milliseconds