Home
last modified time | relevance | path

Searched refs:vk (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/drivers/misc/bcm-vk/
Dbcm_vk_dev.c140 struct bcm_vk *vk = dev_id; in bcm_vk_notf_irqhandler() local
142 if (!bcm_vk_drv_access_ok(vk)) { in bcm_vk_notf_irqhandler()
143 dev_err(&vk->pdev->dev, in bcm_vk_notf_irqhandler()
149 if (test_and_set_bit(BCM_VK_WQ_NOTF_PEND, vk->wq_offload) == 0) in bcm_vk_notf_irqhandler()
150 queue_work(vk->wq_thread, &vk->wq_work); in bcm_vk_notf_irqhandler()
156 static int bcm_vk_intf_ver_chk(struct bcm_vk *vk) in bcm_vk_intf_ver_chk() argument
158 struct device *dev = &vk->pdev->dev; in bcm_vk_intf_ver_chk()
164 reg = vkread32(vk, BAR_0, BAR_INTF_VER); in bcm_vk_intf_ver_chk()
179 bcm_vk_set_host_alert(vk, ERR_LOG_HOST_INTF_V_FAIL); in bcm_vk_intf_ver_chk()
189 static void bcm_vk_log_notf(struct bcm_vk *vk, in bcm_vk_log_notf() argument
[all …]
Dbcm_vk_tty.c46 struct bcm_vk *vk = from_timer(vk, t, serial_timer); in bcm_vk_tty_poll() local
48 queue_work(vk->tty_wq_thread, &vk->tty_wq_work); in bcm_vk_tty_poll()
49 mod_timer(&vk->serial_timer, jiffies + SERIAL_TIMER_VALUE); in bcm_vk_tty_poll()
54 struct bcm_vk *vk = dev_id; in bcm_vk_tty_irqhandler() local
56 queue_work(vk->tty_wq_thread, &vk->tty_wq_work); in bcm_vk_tty_irqhandler()
63 struct bcm_vk *vk = container_of(work, struct bcm_vk, tty_wq_work); in bcm_vk_tty_wq_handler() local
71 card_status = vkread32(vk, BAR_0, BAR_CARD_STATUS); in bcm_vk_tty_wq_handler()
81 vktty = &vk->tty[i]; in bcm_vk_tty_wq_handler()
88 wr = vkread32(vk, BAR_1, VK_BAR_CHAN_WR(vktty, from)); in bcm_vk_tty_wq_handler()
95 dev_err(&vk->pdev->dev, in bcm_vk_tty_wq_handler()
[all …]
Dbcm_vk_msg.c109 bool bcm_vk_drv_access_ok(struct bcm_vk *vk) in bcm_vk_drv_access_ok() argument
111 return (!!atomic_read(&vk->msgq_inited)); in bcm_vk_drv_access_ok()
114 void bcm_vk_set_host_alert(struct bcm_vk *vk, u32 bit_mask) in bcm_vk_set_host_alert() argument
116 struct bcm_vk_alert *alert = &vk->host_alert; in bcm_vk_set_host_alert()
120 spin_lock_irqsave(&vk->host_alert_lock, flags); in bcm_vk_set_host_alert()
122 spin_unlock_irqrestore(&vk->host_alert_lock, flags); in bcm_vk_set_host_alert()
124 if (test_and_set_bit(BCM_VK_WQ_NOTF_PEND, vk->wq_offload) == 0) in bcm_vk_set_host_alert()
125 queue_work(vk->wq_thread, &vk->wq_work); in bcm_vk_set_host_alert()
145 struct bcm_vk *vk = container_of(hb, struct bcm_vk, hb_ctrl); in bcm_vk_hb_poll() local
147 if (bcm_vk_drv_access_ok(vk) && hb_mon_is_on()) { in bcm_vk_hb_poll()
[all …]
Dbcm_vk.h450 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()
[all …]
DKconfig15 accelerators via /dev/bcm-vk.N devices.
27 Device node will in the form /dev/bcm-vk.x_ttyVKy where:
/linux-6.6.21/drivers/gpu/drm/ci/
Dcontainer.yml27 debian/x86_64_test-vk:
/linux-6.6.21/drivers/misc/
DMakefile56 obj-$(CONFIG_BCM_VK) += bcm-vk/
DKconfig577 source "drivers/misc/bcm-vk/Kconfig"
/linux-6.6.21/
DMAINTAINERS4352 F: drivers/misc/bcm-vk/