Home
last modified time | relevance | path

Searched refs:oct_hw (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/vdpa/octeon_ep/
H A Doctep_vdpa_hw.c51 static inline struct octep_mbox __iomem *octep_get_mbox(struct octep_hw *oct_hw) in octep_get_mbox()
53 return (struct octep_mbox __iomem *)(oct_hw->dev_cfg + MBOX_OFFSET); in octep_get_mbox()
103 static int octep_process_mbox(struct octep_hw *oct_hw, u16 id, u16 qid, void *buffer, in octep_process_mbox()
106 struct octep_mbox __iomem *mbox = octep_get_mbox(oct_hw); in octep_process_mbox()
107 struct pci_dev *pdev = oct_hw->pdev; in octep_process_mbox()
181 u8 octep_hw_get_status(struct octep_hw *oct_hw) in octep_hw_get_status()
183 return ioread8(&oct_hw->common_cfg->device_status); in octep_hw_get_status()
186 void octep_hw_set_status(struct octep_hw *oct_hw, u8 status) in octep_hw_set_status()
188 iowrite8(status, &oct_hw->common_cfg->device_status); in octep_hw_set_status()
191 void octep_hw_reset(struct octep_hw *oct_hw) in octep_hw_reset()
50 octep_get_mbox(struct octep_hw * oct_hw) octep_get_mbox() argument
102 octep_process_mbox(struct octep_hw * oct_hw,u16 id,u16 qid,void * buffer,u32 buf_size,bool write) octep_process_mbox() argument
180 octep_hw_get_status(struct octep_hw * oct_hw) octep_hw_get_status() argument
185 octep_hw_set_status(struct octep_hw * oct_hw,u8 status) octep_hw_set_status() argument
190 octep_hw_reset(struct octep_hw * oct_hw) octep_hw_reset() argument
202 feature_sel_write_with_timeout(struct octep_hw * oct_hw,u32 select,void __iomem * addr) feature_sel_write_with_timeout() argument
215 octep_hw_get_dev_features(struct octep_hw * oct_hw) octep_hw_get_dev_features() argument
232 octep_hw_get_drv_features(struct octep_hw * oct_hw) octep_hw_get_drv_features() argument
249 octep_hw_set_drv_features(struct octep_hw * oct_hw,u64 features) octep_hw_set_drv_features() argument
262 octep_write_queue_select(struct octep_hw * oct_hw,u16 queue_id) octep_write_queue_select() argument
275 octep_notify_queue(struct octep_hw * oct_hw,u16 qid) octep_notify_queue() argument
280 octep_read_dev_config(struct octep_hw * oct_hw,u64 offset,void * dst,int length) octep_read_dev_config() argument
298 octep_set_vq_address(struct octep_hw * oct_hw,u16 qid,u64 desc_area,u64 driver_area,u64 device_area) octep_set_vq_address() argument
314 octep_get_vq_state(struct octep_hw * oct_hw,u16 qid,struct vdpa_vq_state * state) octep_get_vq_state() argument
320 octep_set_vq_state(struct octep_hw * oct_hw,u16 qid,const struct vdpa_vq_state * state) octep_set_vq_state() argument
329 octep_set_vq_num(struct octep_hw * oct_hw,u16 qid,u32 num) octep_set_vq_num() argument
337 octep_set_vq_ready(struct octep_hw * oct_hw,u16 qid,bool ready) octep_set_vq_ready() argument
345 octep_get_vq_ready(struct octep_hw * oct_hw,u16 qid) octep_get_vq_ready() argument
353 octep_get_vq_size(struct octep_hw * oct_hw) octep_get_vq_size() argument
359 octep_get_config_size(struct octep_hw * oct_hw) octep_get_config_size() argument
364 octep_get_cap_addr(struct octep_hw * oct_hw,struct virtio_pci_cap * cap) octep_get_cap_addr() argument
394 octep_pci_caps_read(struct octep_hw * oct_hw,void * buf,size_t len,off_t offset) octep_pci_caps_read() argument
404 octep_pci_signature_verify(struct octep_hw * oct_hw) octep_pci_signature_verify() argument
419 octep_hw_caps_read(struct octep_hw * oct_hw,struct pci_dev * pdev) octep_hw_caps_read() argument
[all...]
H A Doctep_vdpa_main.c24 struct octep_hw *oct_hw; member
30 struct octep_hw oct_hw; member
44 return oct_vdpa->oct_hw; in vdpa_to_octep_hw()
49 struct octep_hw *oct_hw = data; in octep_vdpa_intr_handler() local
63 for (i = irq - oct_hw->irqs[0]; i < oct_hw->nr_vring; i += oct_hw->nb_irqs) { in octep_free_irqs() argument
64 if (ioread8(oct_hw->vqs[i].cb_notify_addr)) { in octep_free_irqs()
66 iowrite8(0, oct_hw->vqs[i].cb_notify_addr); in octep_free_irqs()
68 if (likely(oct_hw in octep_free_irqs()
74 octep_request_irqs(struct octep_hw * oct_hw) octep_request_irqs() argument
109 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_get_device_features() local
116 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_set_driver_features() local
136 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_get_driver_features() local
143 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_get_status() local
150 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_set_status() local
168 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_reset() local
191 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_get_vq_num_max() local
199 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_get_vq_state() local
207 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_set_vq_state() local
214 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_set_vq_cb() local
221 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_set_vq_ready() local
228 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_get_vq_ready() local
235 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_set_vq_num() local
243 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_set_vq_address() local
259 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_kick_vq_with_data() local
267 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_get_generation() local
289 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_get_config_size() local
297 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_get_config() local
310 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_vdpa_set_config_cb() local
319 struct octep_hw *oct_hw = vdpa_to_octep_hw(vdpa_dev); octep_get_vq_notification() local
436 struct octep_hw *oct_hw; octep_vdpa_remove_vf() local
468 struct octep_hw *oct_hw = &mgmt_dev->oct_hw; octep_vdpa_dev_add() local
560 struct octep_hw *oct_hw; octep_vdpa_setup_task() local
[all...]
H A Doctep_vdpa.h94 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);
99 void octep_read_dev_config(struct octep_hw *oct_hw, u64 offset, void *dst, int length);
100 int octep_set_vq_address(struct octep_hw *oct_hw, u16 qid, u64 desc_area, u64 driver_area,
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);
105 int octep_set_vq_state(struct octep_hw *oct_hw, u1
[all...]