Lines Matching refs:vk

450 static inline u32 vkread32(struct bcm_vk *vk, enum pci_barno bar, u64 offset)  in vkread32()  argument
452 return readl(vk->bar[bar] + offset); in vkread32()
455 static inline void vkwrite32(struct bcm_vk *vk, in vkwrite32() argument
460 writel(value, vk->bar[bar] + offset); in vkwrite32()
463 static inline u8 vkread8(struct bcm_vk *vk, enum pci_barno bar, u64 offset) in vkread8() argument
465 return readb(vk->bar[bar] + offset); in vkread8()
468 static inline void vkwrite8(struct bcm_vk *vk, in vkwrite8() argument
473 writeb(value, vk->bar[bar] + offset); in vkwrite8()
476 static inline bool bcm_vk_msgq_marker_valid(struct bcm_vk *vk) in bcm_vk_msgq_marker_valid() argument
481 fw_status = vkread32(vk, BAR_0, VK_BAR_FWSTS); in bcm_vk_msgq_marker_valid()
484 rdy_marker = vkread32(vk, BAR_1, VK_BAR1_MSGQ_DEF_RDY); in bcm_vk_msgq_marker_valid()
500 int bcm_vk_msg_init(struct bcm_vk *vk);
501 void bcm_vk_msg_remove(struct bcm_vk *vk);
502 void bcm_vk_drain_msg_on_reset(struct bcm_vk *vk);
503 int bcm_vk_sync_msgq(struct bcm_vk *vk, bool force_sync);
504 void bcm_vk_blk_drv_access(struct bcm_vk *vk);
505 s32 bcm_to_h_msg_dequeue(struct bcm_vk *vk);
506 int bcm_vk_send_shutdown_msg(struct bcm_vk *vk, u32 shut_type,
508 void bcm_to_v_q_doorbell(struct bcm_vk *vk, u32 q_num, u32 db_val);
509 int bcm_vk_auto_load_all_images(struct bcm_vk *vk);
510 void bcm_vk_hb_init(struct bcm_vk *vk);
511 void bcm_vk_hb_deinit(struct bcm_vk *vk);
512 void bcm_vk_handle_notf(struct bcm_vk *vk);
513 bool bcm_vk_drv_access_ok(struct bcm_vk *vk);
514 void bcm_vk_set_host_alert(struct bcm_vk *vk, u32 bit_mask);
517 int bcm_vk_tty_init(struct bcm_vk *vk, char *name);
518 void bcm_vk_tty_exit(struct bcm_vk *vk);
519 void bcm_vk_tty_terminate_tty_user(struct bcm_vk *vk);
520 void bcm_vk_tty_wq_exit(struct bcm_vk *vk);
522 static inline void bcm_vk_tty_set_irq_enabled(struct bcm_vk *vk, int index) in bcm_vk_tty_set_irq_enabled() argument
524 vk->tty[index].irq_enabled = true; in bcm_vk_tty_set_irq_enabled()
527 static inline int bcm_vk_tty_init(struct bcm_vk *vk, char *name) in bcm_vk_tty_init() argument
532 static inline void bcm_vk_tty_exit(struct bcm_vk *vk) in bcm_vk_tty_exit() argument
536 static inline void bcm_vk_tty_terminate_tty_user(struct bcm_vk *vk) in bcm_vk_tty_terminate_tty_user() argument
540 static inline void bcm_vk_tty_wq_exit(struct bcm_vk *vk) in bcm_vk_tty_wq_exit() argument
544 static inline void bcm_vk_tty_set_irq_enabled(struct bcm_vk *vk, int index) in bcm_vk_tty_set_irq_enabled() argument