Lines Matching refs:vk

24 #define DRV_MODULE_NAME		"bcm-vk"
307 * buffer is for logmsg that comes from vk
392 atomic_t msgq_inited; /* indicate if info has been synced with vk */
450 static inline u32 vkread32(struct bcm_vk *vk, enum pci_barno bar, u64 offset)
452 return readl(vk->bar[bar] + offset);
455 static inline void vkwrite32(struct bcm_vk *vk,
460 writel(value, vk->bar[bar] + offset);
463 static inline u8 vkread8(struct bcm_vk *vk, enum pci_barno bar, u64 offset)
465 return readb(vk->bar[bar] + offset);
468 static inline void vkwrite8(struct bcm_vk *vk,
473 writeb(value, vk->bar[bar] + offset);
476 static inline bool bcm_vk_msgq_marker_valid(struct bcm_vk *vk)
481 fw_status = vkread32(vk, BAR_0, VK_BAR_FWSTS);
484 rdy_marker = vkread32(vk, BAR_1, VK_BAR1_MSGQ_DEF_RDY);
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)
524 vk->tty[index].irq_enabled = true;
527 static inline int bcm_vk_tty_init(struct bcm_vk *vk, char *name)
532 static inline void bcm_vk_tty_exit(struct bcm_vk *vk)
536 static inline void bcm_vk_tty_terminate_tty_user(struct bcm_vk *vk)
540 static inline void bcm_vk_tty_wq_exit(struct bcm_vk *vk)
544 static inline void bcm_vk_tty_set_irq_enabled(struct bcm_vk *vk, int index)