MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / msix_update_ctrl

Function msix_update_ctrl

components/drivers/pci/msi/msi.c:58–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static void msix_update_ctrl(struct rt_pci_device *pdev,
59 rt_uint16_t clear, rt_uint16_t set)
60{
61 rt_uint16_t msgctl;
62
63 rt_pci_read_config_u16(pdev, pdev->msix_cap + PCIR_MSIX_CTRL, &msgctl);
64 msgctl &= ~clear;
65 msgctl |= set;
66 rt_pci_write_config_u16(pdev, pdev->msix_cap + PCIR_MSIX_CTRL, msgctl);
67}
68
69rt_inline void msix_unmask(struct rt_pci_msix_conf *msix)
70{

Callers 2

rt_pci_msix_shutdownFunction · 0.85
msix_capability_initFunction · 0.85

Calls 2

rt_pci_read_config_u16Function · 0.85
rt_pci_write_config_u16Function · 0.85

Tested by

no test coverage detected