Symbol: hbus
drivers/clk/mxs/clk-imx23.c
127
clks[hbus] = mxs_clk_div("hbus", "cpu", HBUS, 0, 5, 29);
drivers/clk/mxs/clk-imx23.c
94
cpu, hbus, xbus, emi, uart,
drivers/clk/mxs/clk-imx28.c
149
cpu, hbus, xbus, emi, uart,
drivers/clk/mxs/clk-imx28.c
192
clks[hbus] = mxs_clk_div("hbus", "cpu", HBUS, 0, 5, 31);
drivers/pci/controller/pci-hyperv.c
1027
static struct hv_pci_dev *get_pcichild_wslot(struct hv_pcibus_device *hbus,
drivers/pci/controller/pci-hyperv.c
1178
struct hv_pcibus_device *hbus = hpdev->hbus;
drivers/pci/controller/pci-hyperv.c
1179
struct device *dev = &hbus->hdev->device;
drivers/pci/controller/pci-hyperv.c
1210
spin_lock_irqsave(&hbus->config_lock, flags);
drivers/pci/controller/pci-hyperv.c
1211
if (hbus->use_calls) {
drivers/pci/controller/pci-hyperv.c
1212
phys_addr_t addr = hbus->mem_config->start + offset;
drivers/pci/controller/pci-hyperv.c
1214
hv_pci_write_mmio(dev, hbus->mem_config->start, 4,
drivers/pci/controller/pci-hyperv.c
1218
void __iomem *addr = hbus->cfg_addr + offset;
drivers/pci/controller/pci-hyperv.c
1221
writel(hpdev->desc.win_slot.slot, hbus->cfg_addr);
drivers/pci/controller/pci-hyperv.c
1242
spin_unlock_irqrestore(&hbus->config_lock, flags);
drivers/pci/controller/pci-hyperv.c
1250
struct hv_pcibus_device *hbus = hpdev->hbus;
drivers/pci/controller/pci-hyperv.c
1251
struct device *dev = &hbus->hdev->device;
drivers/pci/controller/pci-hyperv.c
1256
spin_lock_irqsave(&hbus->config_lock, flags);
drivers/pci/controller/pci-hyperv.c
1258
if (hbus->use_calls) {
drivers/pci/controller/pci-hyperv.c
1259
phys_addr_t addr = hbus->mem_config->start +
drivers/pci/controller/pci-hyperv.c
1262
hv_pci_write_mmio(dev, hbus->mem_config->start, 4,
drivers/pci/controller/pci-hyperv.c
1267
void __iomem *addr = hbus->cfg_addr + CFG_PAGE_OFFSET +
drivers/pci/controller/pci-hyperv.c
1270
writel(hpdev->desc.win_slot.slot, hbus->cfg_addr);
drivers/pci/controller/pci-hyperv.c
1281
spin_unlock_irqrestore(&hbus->config_lock, flags);
drivers/pci/controller/pci-hyperv.c
1296
struct hv_pcibus_device *hbus = hpdev->hbus;
drivers/pci/controller/pci-hyperv.c
1297
struct device *dev = &hbus->hdev->device;
drivers/pci/controller/pci-hyperv.c
1305
spin_lock_irqsave(&hbus->config_lock, flags);
drivers/pci/controller/pci-hyperv.c
1307
if (hbus->use_calls) {
drivers/pci/controller/pci-hyperv.c
1308
phys_addr_t addr = hbus->mem_config->start + offset;
drivers/pci/controller/pci-hyperv.c
1310
hv_pci_write_mmio(dev, hbus->mem_config->start, 4,
drivers/pci/controller/pci-hyperv.c
1314
void __iomem *addr = hbus->cfg_addr + offset;
drivers/pci/controller/pci-hyperv.c
1317
writel(hpdev->desc.win_slot.slot, hbus->cfg_addr);
drivers/pci/controller/pci-hyperv.c
1338
spin_unlock_irqrestore(&hbus->config_lock, flags);
drivers/pci/controller/pci-hyperv.c
1358
struct hv_pcibus_device *hbus =
drivers/pci/controller/pci-hyperv.c
1362
hpdev = get_pcichild_wslot(hbus, devfn_to_wslot(devfn));
drivers/pci/controller/pci-hyperv.c
1386
struct hv_pcibus_device *hbus =
drivers/pci/controller/pci-hyperv.c
1390
hpdev = get_pcichild_wslot(hbus, devfn_to_wslot(devfn));
drivers/pci/controller/pci-hyperv.c
1487
struct hv_pcibus_device *hbus =
drivers/pci/controller/pci-hyperv.c
1514
ret = vmbus_sendpacket(hbus->hdev->channel, read_blk,
drivers/pci/controller/pci-hyperv.c
1521
ret = wait_for_response(hbus->hdev, &comp_pkt.comp_pkt.host_event);
drivers/pci/controller/pci-hyperv.c
1527
dev_err(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
1567
struct hv_pcibus_device *hbus =
drivers/pci/controller/pci-hyperv.c
1604
ret = vmbus_sendpacket(hbus->hdev->channel, write_blk, pkt_size,
drivers/pci/controller/pci-hyperv.c
1610
ret = wait_for_response(hbus->hdev, &comp_pkt.host_event);
drivers/pci/controller/pci-hyperv.c
1615
dev_err(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
1637
struct hv_pcibus_device *hbus =
drivers/pci/controller/pci-hyperv.c
1642
hpdev = get_pcichild_wslot(hbus, devfn_to_wslot(pdev->devfn));
drivers/pci/controller/pci-hyperv.c
1674
vmbus_sendpacket(hpdev->hbus->hdev->channel, int_pkt, sizeof(*int_pkt),
drivers/pci/controller/pci-hyperv.c
1691
struct hv_pcibus_device *hbus;
drivers/pci/controller/pci-hyperv.c
1699
hbus = domain->host_data;
drivers/pci/controller/pci-hyperv.c
1705
hpdev = get_pcichild_wslot(hbus, devfn_to_wslot(pdev->devfn));
drivers/pci/controller/pci-hyperv.c
1877
struct hv_pcibus_device *hbus;
drivers/pci/controller/pci-hyperv.c
1922
hbus = container_of(pbus->sysdata, struct hv_pcibus_device, sysdata);
drivers/pci/controller/pci-hyperv.c
1923
channel = hbus->hdev->channel;
drivers/pci/controller/pci-hyperv.c
1924
hpdev = get_pcichild_wslot(hbus, devfn_to_wslot(pdev->devfn));
drivers/pci/controller/pci-hyperv.c
1981
switch (hbus->protocol_version) {
drivers/pci/controller/pci-hyperv.c
2011
dev_err(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
2016
ret = vmbus_sendpacket_getid(hpdev->hbus->hdev->channel, &ctxt.int_pkts,
drivers/pci/controller/pci-hyperv.c
2021
dev_err(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
2042
dev_err_once(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
2059
hv_pci_onchannelcallback(hbus);
drivers/pci/controller/pci-hyperv.c
2068
dev_err(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
2205
static int hv_pcie_init_irq_domain(struct hv_pcibus_device *hbus)
drivers/pci/controller/pci-hyperv.c
2208
.fwnode = hbus->fwnode,
drivers/pci/controller/pci-hyperv.c
2210
.host_data = hbus,
drivers/pci/controller/pci-hyperv.c
2214
hbus->irq_domain = msi_create_parent_irq_domain(&info, &hv_pcie_msi_parent_ops);
drivers/pci/controller/pci-hyperv.c
2215
if (!hbus->irq_domain) {
drivers/pci/controller/pci-hyperv.c
2216
dev_err(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
2221
dev_set_msi_domain(&hbus->bridge->dev, hbus->irq_domain);
drivers/pci/controller/pci-hyperv.c
2250
static void survey_child_resources(struct hv_pcibus_device *hbus)
drivers/pci/controller/pci-hyperv.c
2260
event = xchg(&hbus->survey_event, NULL);
drivers/pci/controller/pci-hyperv.c
2265
if (hbus->low_mmio_space || hbus->high_mmio_space) {
drivers/pci/controller/pci-hyperv.c
2270
spin_lock_irqsave(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2277
list_for_each_entry(hpdev, &hbus->children, list_entry) {
drivers/pci/controller/pci-hyperv.c
2280
dev_err(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
2299
hbus->high_mmio_space += bar_size;
drivers/pci/controller/pci-hyperv.c
2301
hbus->low_mmio_space += bar_size;
drivers/pci/controller/pci-hyperv.c
2306
spin_unlock_irqrestore(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2322
static void prepopulate_bars(struct hv_pcibus_device *hbus)
drivers/pci/controller/pci-hyperv.c
2336
if (hbus->low_mmio_space) {
drivers/pci/controller/pci-hyperv.c
2337
low_size = 1ULL << (63 - __builtin_clzll(hbus->low_mmio_space));
drivers/pci/controller/pci-hyperv.c
2338
low_base = hbus->low_mmio_res->start;
drivers/pci/controller/pci-hyperv.c
2341
if (hbus->high_mmio_space) {
drivers/pci/controller/pci-hyperv.c
2343
(63 - __builtin_clzll(hbus->high_mmio_space));
drivers/pci/controller/pci-hyperv.c
2344
high_base = hbus->high_mmio_res->start;
drivers/pci/controller/pci-hyperv.c
2347
spin_lock_irqsave(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2360
list_for_each_entry(hpdev, &hbus->children, list_entry) {
drivers/pci/controller/pci-hyperv.c
2368
list_for_each_entry(hpdev, &hbus->children, list_entry) {
drivers/pci/controller/pci-hyperv.c
2426
spin_unlock_irqrestore(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2438
static void hv_pci_assign_slots(struct hv_pcibus_device *hbus)
drivers/pci/controller/pci-hyperv.c
2444
list_for_each_entry(hpdev, &hbus->children, list_entry) {
drivers/pci/controller/pci-hyperv.c
2450
hpdev->pci_slot = pci_create_slot(hbus->bridge->bus, slot_nr,
drivers/pci/controller/pci-hyperv.c
2462
static void hv_pci_remove_slots(struct hv_pcibus_device *hbus)
drivers/pci/controller/pci-hyperv.c
2466
list_for_each_entry(hpdev, &hbus->children, list_entry) {
drivers/pci/controller/pci-hyperv.c
2477
static void hv_pci_assign_numa_node(struct hv_pcibus_device *hbus)
drivers/pci/controller/pci-hyperv.c
2480
struct pci_bus *bus = hbus->bridge->bus;
drivers/pci/controller/pci-hyperv.c
2484
hv_dev = get_pcichild_wslot(hbus, devfn_to_wslot(dev->devfn));
drivers/pci/controller/pci-hyperv.c
2518
static int create_root_hv_pci_bus(struct hv_pcibus_device *hbus)
drivers/pci/controller/pci-hyperv.c
2521
struct pci_host_bridge *bridge = hbus->bridge;
drivers/pci/controller/pci-hyperv.c
2523
bridge->dev.parent = &hbus->hdev->device;
drivers/pci/controller/pci-hyperv.c
2524
bridge->sysdata = &hbus->sysdata;
drivers/pci/controller/pci-hyperv.c
2532
hv_pci_assign_numa_node(hbus);
drivers/pci/controller/pci-hyperv.c
2534
hv_pci_assign_slots(hbus);
drivers/pci/controller/pci-hyperv.c
2537
hbus->state = hv_pcibus_installed;
drivers/pci/controller/pci-hyperv.c
2566
dev_err(&completion->hpdev->hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
2590
static struct hv_pci_dev *new_pcichild_device(struct hv_pcibus_device *hbus,
drivers/pci/controller/pci-hyperv.c
2607
hpdev->hbus = hbus;
drivers/pci/controller/pci-hyperv.c
2618
ret = vmbus_sendpacket(hbus->hdev->channel, res_req,
drivers/pci/controller/pci-hyperv.c
2626
if (wait_for_response(hbus->hdev, &comp_pkt.host_event))
drivers/pci/controller/pci-hyperv.c
2632
spin_lock_irqsave(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2634
list_add_tail(&hpdev->list_entry, &hbus->children);
drivers/pci/controller/pci-hyperv.c
2635
spin_unlock_irqrestore(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2656
static struct hv_pci_dev *get_pcichild_wslot(struct hv_pcibus_device *hbus,
drivers/pci/controller/pci-hyperv.c
2662
spin_lock_irqsave(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2663
list_for_each_entry(iter, &hbus->children, list_entry) {
drivers/pci/controller/pci-hyperv.c
2670
spin_unlock_irqrestore(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2704
struct hv_pcibus_device *hbus;
drivers/pci/controller/pci-hyperv.c
2711
hbus = dr_wrk->bus;
drivers/pci/controller/pci-hyperv.c
2717
spin_lock_irqsave(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2718
while (!list_empty(&hbus->dr_list)) {
drivers/pci/controller/pci-hyperv.c
2719
dr = list_first_entry(&hbus->dr_list, struct hv_dr_state,
drivers/pci/controller/pci-hyperv.c
2724
if (!list_empty(&hbus->dr_list)) {
drivers/pci/controller/pci-hyperv.c
2729
spin_unlock_irqrestore(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2734
mutex_lock(&hbus->state_lock);
drivers/pci/controller/pci-hyperv.c
2737
spin_lock_irqsave(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2738
list_for_each_entry(hpdev, &hbus->children, list_entry) {
drivers/pci/controller/pci-hyperv.c
2741
spin_unlock_irqrestore(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2748
spin_lock_irqsave(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2749
list_for_each_entry(hpdev, &hbus->children, list_entry) {
drivers/pci/controller/pci-hyperv.c
2758
spin_unlock_irqrestore(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2761
hpdev = new_pcichild_device(hbus, new_desc);
drivers/pci/controller/pci-hyperv.c
2763
dev_err(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
2769
spin_lock_irqsave(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2772
list_for_each_entry(hpdev, &hbus->children, list_entry) {
drivers/pci/controller/pci-hyperv.c
2781
spin_unlock_irqrestore(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2795
switch (hbus->state) {
drivers/pci/controller/pci-hyperv.c
2802
pci_scan_child_bus(hbus->bridge->bus);
drivers/pci/controller/pci-hyperv.c
2803
hv_pci_assign_numa_node(hbus);
drivers/pci/controller/pci-hyperv.c
2804
hv_pci_assign_slots(hbus);
drivers/pci/controller/pci-hyperv.c
2810
survey_child_resources(hbus);
drivers/pci/controller/pci-hyperv.c
2817
mutex_unlock(&hbus->state_lock);
drivers/pci/controller/pci-hyperv.c
2829
static int hv_pci_start_relations_work(struct hv_pcibus_device *hbus,
drivers/pci/controller/pci-hyperv.c
2836
if (hbus->state == hv_pcibus_removing) {
drivers/pci/controller/pci-hyperv.c
2837
dev_info(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
2847
dr_wrk->bus = hbus;
drivers/pci/controller/pci-hyperv.c
2849
spin_lock_irqsave(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2855
pending_dr = !list_empty(&hbus->dr_list);
drivers/pci/controller/pci-hyperv.c
2856
list_add_tail(&dr->list_entry, &hbus->dr_list);
drivers/pci/controller/pci-hyperv.c
2857
spin_unlock_irqrestore(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2862
queue_work(hbus->wq, &dr_wrk->wrk);
drivers/pci/controller/pci-hyperv.c
2876
static void hv_pci_devices_present(struct hv_pcibus_device *hbus,
drivers/pci/controller/pci-hyperv.c
2899
if (hv_pci_start_relations_work(hbus, dr))
drivers/pci/controller/pci-hyperv.c
2910
static void hv_pci_devices_present2(struct hv_pcibus_device *hbus,
drivers/pci/controller/pci-hyperv.c
2936
if (hv_pci_start_relations_work(hbus, dr))
drivers/pci/controller/pci-hyperv.c
2952
struct hv_pcibus_device *hbus;
drivers/pci/controller/pci-hyperv.c
2963
hbus = hpdev->hbus;
drivers/pci/controller/pci-hyperv.c
2965
mutex_lock(&hbus->state_lock);
drivers/pci/controller/pci-hyperv.c
2974
pdev = pci_get_domain_bus_and_slot(hbus->bridge->domain_nr, 0, wslot);
drivers/pci/controller/pci-hyperv.c
2982
spin_lock_irqsave(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2984
spin_unlock_irqrestore(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
2993
vmbus_sendpacket(hbus->hdev->channel, ejct_pkt,
drivers/pci/controller/pci-hyperv.c
3004
mutex_unlock(&hbus->state_lock);
drivers/pci/controller/pci-hyperv.c
3017
struct hv_pcibus_device *hbus = hpdev->hbus;
drivers/pci/controller/pci-hyperv.c
3018
struct hv_device *hdev = hbus->hdev;
drivers/pci/controller/pci-hyperv.c
3020
if (hbus->state == hv_pcibus_removing) {
drivers/pci/controller/pci-hyperv.c
3027
queue_work(hbus->wq, &hpdev->wrk);
drivers/pci/controller/pci-hyperv.c
3041
struct hv_pcibus_device *hbus = context;
drivers/pci/controller/pci-hyperv.c
3042
struct vmbus_channel *chan = hbus->hdev->channel;
drivers/pci/controller/pci-hyperv.c
3096
dev_err(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
3127
dev_err(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
3132
hv_pci_devices_present(hbus, bus_rel);
drivers/pci/controller/pci-hyperv.c
3142
dev_err(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
3147
hv_pci_devices_present2(hbus, bus_rel2);
drivers/pci/controller/pci-hyperv.c
3154
dev_err(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
3158
hpdev = get_pcichild_wslot(hbus,
drivers/pci/controller/pci-hyperv.c
3170
dev_err(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
3174
hpdev = get_pcichild_wslot(hbus,
drivers/pci/controller/pci-hyperv.c
3187
dev_warn(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
3195
dev_err(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
3228
struct hv_pcibus_device *hbus = hv_get_drvdata(hdev);
drivers/pci/controller/pci-hyperv.c
3268
hbus->protocol_version = version[i];
drivers/pci/controller/pci-hyperv.c
3271
hbus->protocol_version);
drivers/pci/controller/pci-hyperv.c
3300
static void hv_pci_free_bridge_windows(struct hv_pcibus_device *hbus)
drivers/pci/controller/pci-hyperv.c
3307
if (hbus->low_mmio_space && hbus->low_mmio_res) {
drivers/pci/controller/pci-hyperv.c
3308
hbus->low_mmio_res->flags |= IORESOURCE_BUSY;
drivers/pci/controller/pci-hyperv.c
3309
vmbus_free_mmio(hbus->low_mmio_res->start,
drivers/pci/controller/pci-hyperv.c
3310
resource_size(hbus->low_mmio_res));
drivers/pci/controller/pci-hyperv.c
3313
if (hbus->high_mmio_space && hbus->high_mmio_res) {
drivers/pci/controller/pci-hyperv.c
3314
hbus->high_mmio_res->flags |= IORESOURCE_BUSY;
drivers/pci/controller/pci-hyperv.c
3315
vmbus_free_mmio(hbus->high_mmio_res->start,
drivers/pci/controller/pci-hyperv.c
3316
resource_size(hbus->high_mmio_res));
drivers/pci/controller/pci-hyperv.c
3345
static int hv_pci_allocate_bridge_windows(struct hv_pcibus_device *hbus)
drivers/pci/controller/pci-hyperv.c
3350
if (hbus->low_mmio_space) {
drivers/pci/controller/pci-hyperv.c
3351
align = 1ULL << (63 - __builtin_clzll(hbus->low_mmio_space));
drivers/pci/controller/pci-hyperv.c
3352
ret = vmbus_allocate_mmio(&hbus->low_mmio_res, hbus->hdev, 0,
drivers/pci/controller/pci-hyperv.c
3354
hbus->low_mmio_space,
drivers/pci/controller/pci-hyperv.c
3357
dev_err(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
3359
hbus->low_mmio_space);
drivers/pci/controller/pci-hyperv.c
3364
hbus->low_mmio_res->flags |= IORESOURCE_WINDOW;
drivers/pci/controller/pci-hyperv.c
3365
hbus->low_mmio_res->flags &= ~IORESOURCE_BUSY;
drivers/pci/controller/pci-hyperv.c
3366
pci_add_resource(&hbus->bridge->windows, hbus->low_mmio_res);
drivers/pci/controller/pci-hyperv.c
3369
if (hbus->high_mmio_space) {
drivers/pci/controller/pci-hyperv.c
3370
align = 1ULL << (63 - __builtin_clzll(hbus->high_mmio_space));
drivers/pci/controller/pci-hyperv.c
3371
ret = vmbus_allocate_mmio(&hbus->high_mmio_res, hbus->hdev,
drivers/pci/controller/pci-hyperv.c
3373
hbus->high_mmio_space, align,
drivers/pci/controller/pci-hyperv.c
3376
dev_err(&hbus->hdev->device,
drivers/pci/controller/pci-hyperv.c
3378
hbus->high_mmio_space);
drivers/pci/controller/pci-hyperv.c
3383
hbus->high_mmio_res->flags |= IORESOURCE_WINDOW;
drivers/pci/controller/pci-hyperv.c
3384
hbus->high_mmio_res->flags &= ~IORESOURCE_BUSY;
drivers/pci/controller/pci-hyperv.c
3385
pci_add_resource(&hbus->bridge->windows, hbus->high_mmio_res);
drivers/pci/controller/pci-hyperv.c
3391
if (hbus->low_mmio_res) {
drivers/pci/controller/pci-hyperv.c
3392
vmbus_free_mmio(hbus->low_mmio_res->start,
drivers/pci/controller/pci-hyperv.c
3393
resource_size(hbus->low_mmio_res));
drivers/pci/controller/pci-hyperv.c
3408
static int hv_allocate_config_window(struct hv_pcibus_device *hbus)
drivers/pci/controller/pci-hyperv.c
3416
ret = vmbus_allocate_mmio(&hbus->mem_config, hbus->hdev, 0, -1,
drivers/pci/controller/pci-hyperv.c
3429
hbus->mem_config->flags |= IORESOURCE_BUSY;
drivers/pci/controller/pci-hyperv.c
3434
static void hv_free_config_window(struct hv_pcibus_device *hbus)
drivers/pci/controller/pci-hyperv.c
3436
vmbus_free_mmio(hbus->mem_config->start, PCI_CONFIG_MMIO_LENGTH);
drivers/pci/controller/pci-hyperv.c
3449
struct hv_pcibus_device *hbus = hv_get_drvdata(hdev);
drivers/pci/controller/pci-hyperv.c
3472
d0_entry->mmio_base = hbus->mem_config->start;
drivers/pci/controller/pci-hyperv.c
3503
hbus->wslot_res_allocated = 255;
drivers/pci/controller/pci-hyperv.c
3539
struct hv_pcibus_device *hbus = hv_get_drvdata(hdev);
drivers/pci/controller/pci-hyperv.c
3546
if (cmpxchg(&hbus->survey_event, NULL, &comp))
drivers/pci/controller/pci-hyperv.c
3573
flush_workqueue(hbus->wq);
drivers/pci/controller/pci-hyperv.c
3597
struct hv_pcibus_device *hbus = hv_get_drvdata(hdev);
drivers/pci/controller/pci-hyperv.c
3607
size_res = (hbus->protocol_version < PCI_PROTOCOL_VERSION_1_2)
drivers/pci/controller/pci-hyperv.c
3617
hpdev = get_pcichild_wslot(hbus, wslot);
drivers/pci/controller/pci-hyperv.c
3626
if (hbus->protocol_version < PCI_PROTOCOL_VERSION_1_2) {
drivers/pci/controller/pci-hyperv.c
3658
hbus->wslot_res_allocated = wslot;
drivers/pci/controller/pci-hyperv.c
3674
struct hv_pcibus_device *hbus = hv_get_drvdata(hdev);
drivers/pci/controller/pci-hyperv.c
3680
for (wslot = hbus->wslot_res_allocated; wslot >= 0; wslot--) {
drivers/pci/controller/pci-hyperv.c
3681
hpdev = get_pcichild_wslot(hbus, wslot);
drivers/pci/controller/pci-hyperv.c
3696
hbus->wslot_res_allocated = wslot - 1;
drivers/pci/controller/pci-hyperv.c
3699
hbus->wslot_res_allocated = -1;
drivers/pci/controller/pci-hyperv.c
3715
struct hv_pcibus_device *hbus;
drivers/pci/controller/pci-hyperv.c
3724
hbus = kzalloc_obj(*hbus);
drivers/pci/controller/pci-hyperv.c
3725
if (!hbus)
drivers/pci/controller/pci-hyperv.c
3728
hbus->bridge = bridge;
drivers/pci/controller/pci-hyperv.c
3729
mutex_init(&hbus->state_lock);
drivers/pci/controller/pci-hyperv.c
3730
hbus->state = hv_pcibus_init;
drivers/pci/controller/pci-hyperv.c
3731
hbus->wslot_res_allocated = -1;
drivers/pci/controller/pci-hyperv.c
3764
hbus->bridge->domain_nr = dom;
drivers/pci/controller/pci-hyperv.c
3766
hbus->sysdata.domain = dom;
drivers/pci/controller/pci-hyperv.c
3767
hbus->use_calls = !!(ms_hyperv.hints & HV_X64_USE_MMIO_HYPERCALLS);
drivers/pci/controller/pci-hyperv.c
3776
hbus->sysdata.parent = hdev->device.parent;
drivers/pci/controller/pci-hyperv.c
3777
hbus->use_calls = false;
drivers/pci/controller/pci-hyperv.c
3780
hbus->hdev = hdev;
drivers/pci/controller/pci-hyperv.c
3781
INIT_LIST_HEAD(&hbus->children);
drivers/pci/controller/pci-hyperv.c
3782
INIT_LIST_HEAD(&hbus->dr_list);
drivers/pci/controller/pci-hyperv.c
3783
spin_lock_init(&hbus->config_lock);
drivers/pci/controller/pci-hyperv.c
3784
spin_lock_init(&hbus->device_list_lock);
drivers/pci/controller/pci-hyperv.c
3785
hbus->wq = alloc_ordered_workqueue("hv_pci_%x", 0,
drivers/pci/controller/pci-hyperv.c
3786
hbus->bridge->domain_nr);
drivers/pci/controller/pci-hyperv.c
3787
if (!hbus->wq) {
drivers/pci/controller/pci-hyperv.c
3797
hv_pci_onchannelcallback, hbus);
drivers/pci/controller/pci-hyperv.c
3801
hv_set_drvdata(hdev, hbus);
drivers/pci/controller/pci-hyperv.c
3808
ret = hv_allocate_config_window(hbus);
drivers/pci/controller/pci-hyperv.c
3812
hbus->cfg_addr = ioremap(hbus->mem_config->start,
drivers/pci/controller/pci-hyperv.c
3814
if (!hbus->cfg_addr) {
drivers/pci/controller/pci-hyperv.c
3827
hbus->fwnode = irq_domain_alloc_named_fwnode(name);
drivers/pci/controller/pci-hyperv.c
3829
if (!hbus->fwnode) {
drivers/pci/controller/pci-hyperv.c
3834
ret = hv_pcie_init_irq_domain(hbus);
drivers/pci/controller/pci-hyperv.c
3842
mutex_lock(&hbus->state_lock);
drivers/pci/controller/pci-hyperv.c
3848
ret = hv_pci_allocate_bridge_windows(hbus);
drivers/pci/controller/pci-hyperv.c
3856
prepopulate_bars(hbus);
drivers/pci/controller/pci-hyperv.c
3858
hbus->state = hv_pcibus_probed;
drivers/pci/controller/pci-hyperv.c
3860
ret = create_root_hv_pci_bus(hbus);
drivers/pci/controller/pci-hyperv.c
3864
mutex_unlock(&hbus->state_lock);
drivers/pci/controller/pci-hyperv.c
3868
hv_pci_free_bridge_windows(hbus);
drivers/pci/controller/pci-hyperv.c
3872
mutex_unlock(&hbus->state_lock);
drivers/pci/controller/pci-hyperv.c
3874
irq_domain_remove(hbus->irq_domain);
drivers/pci/controller/pci-hyperv.c
3876
irq_domain_free_fwnode(hbus->fwnode);
drivers/pci/controller/pci-hyperv.c
3878
iounmap(hbus->cfg_addr);
drivers/pci/controller/pci-hyperv.c
3880
hv_free_config_window(hbus);
drivers/pci/controller/pci-hyperv.c
3884
destroy_workqueue(hbus->wq);
drivers/pci/controller/pci-hyperv.c
3886
kfree(hbus);
drivers/pci/controller/pci-hyperv.c
3892
struct hv_pcibus_device *hbus = hv_get_drvdata(hdev);
drivers/pci/controller/pci-hyperv.c
3917
spin_lock_irqsave(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
3918
list_for_each_entry_safe(hpdev, tmp, &hbus->children, list_entry)
drivers/pci/controller/pci-hyperv.c
3920
spin_unlock_irqrestore(&hbus->device_list_lock, flags);
drivers/pci/controller/pci-hyperv.c
3976
struct hv_pcibus_device *hbus;
drivers/pci/controller/pci-hyperv.c
3978
hbus = hv_get_drvdata(hdev);
drivers/pci/controller/pci-hyperv.c
3979
if (hbus->state == hv_pcibus_installed) {
drivers/pci/controller/pci-hyperv.c
3981
hbus->state = hv_pcibus_removing;
drivers/pci/controller/pci-hyperv.c
3983
destroy_workqueue(hbus->wq);
drivers/pci/controller/pci-hyperv.c
3984
hbus->wq = NULL;
drivers/pci/controller/pci-hyperv.c
3993
pci_stop_root_bus(hbus->bridge->bus);
drivers/pci/controller/pci-hyperv.c
3994
hv_pci_remove_slots(hbus);
drivers/pci/controller/pci-hyperv.c
3995
pci_remove_root_bus(hbus->bridge->bus);
drivers/pci/controller/pci-hyperv.c
4003
iounmap(hbus->cfg_addr);
drivers/pci/controller/pci-hyperv.c
4004
hv_free_config_window(hbus);
drivers/pci/controller/pci-hyperv.c
4005
hv_pci_free_bridge_windows(hbus);
drivers/pci/controller/pci-hyperv.c
4006
irq_domain_remove(hbus->irq_domain);
drivers/pci/controller/pci-hyperv.c
4007
irq_domain_free_fwnode(hbus->fwnode);
drivers/pci/controller/pci-hyperv.c
4009
kfree(hbus);
drivers/pci/controller/pci-hyperv.c
4014
struct hv_pcibus_device *hbus = hv_get_drvdata(hdev);
drivers/pci/controller/pci-hyperv.c
4039
old_state = hbus->state;
drivers/pci/controller/pci-hyperv.c
4040
if (hbus->state == hv_pcibus_installed)
drivers/pci/controller/pci-hyperv.c
4041
hbus->state = hv_pcibus_removing;
drivers/pci/controller/pci-hyperv.c
4048
flush_workqueue(hbus->wq);
drivers/pci/controller/pci-hyperv.c
4084
static void hv_pci_restore_msi_state(struct hv_pcibus_device *hbus)
drivers/pci/controller/pci-hyperv.c
4086
pci_walk_bus(hbus->bridge->bus, hv_pci_restore_msi_msg, NULL);
drivers/pci/controller/pci-hyperv.c
4091
struct hv_pcibus_device *hbus = hv_get_drvdata(hdev);
drivers/pci/controller/pci-hyperv.c
4095
hbus->state = hv_pcibus_init;
drivers/pci/controller/pci-hyperv.c
4102
hv_pci_onchannelcallback, hbus);
drivers/pci/controller/pci-hyperv.c
4107
version[0] = hbus->protocol_version;
drivers/pci/controller/pci-hyperv.c
4116
mutex_lock(&hbus->state_lock);
drivers/pci/controller/pci-hyperv.c
4126
prepopulate_bars(hbus);
drivers/pci/controller/pci-hyperv.c
4128
hv_pci_restore_msi_state(hbus);
drivers/pci/controller/pci-hyperv.c
4130
hbus->state = hv_pcibus_installed;
drivers/pci/controller/pci-hyperv.c
4131
mutex_unlock(&hbus->state_lock);
drivers/pci/controller/pci-hyperv.c
4135
mutex_unlock(&hbus->state_lock);
drivers/pci/controller/pci-hyperv.c
557
struct hv_pcibus_device *hbus;
drivers/pci/controller/pci-hyperv.c
615
struct hv_pcibus_device *hbus;
drivers/pci/controller/pci-hyperv.c
628
hbus = container_of(pbus->sysdata, struct hv_pcibus_device, sysdata);
drivers/pci/controller/pci-hyperv.c
631
dev_warn(&hbus->hdev->device, "%s() can not unmask irq %u\n",
drivers/pci/controller/pci-hyperv.c
644
params->device_id = (hbus->hdev->dev_instance.b[5] << 24) |
drivers/pci/controller/pci-hyperv.c
645
(hbus->hdev->dev_instance.b[4] << 16) |
drivers/pci/controller/pci-hyperv.c
646
(hbus->hdev->dev_instance.b[7] << 8) |
drivers/pci/controller/pci-hyperv.c
647
(hbus->hdev->dev_instance.b[6] & 0xf8) |
drivers/pci/controller/pci-hyperv.c
651
if (hbus->protocol_version >= PCI_PROTOCOL_VERSION_1_2) {
drivers/pci/controller/pci-hyperv.c
711
if (!hv_result_success(res) && hbus->state != hv_pcibus_removing)
drivers/pci/controller/pci-hyperv.c
712
dev_err(&hbus->hdev->device,
drivers/soundwire/intel.h
50
struct hdac_bus *hbus;
drivers/soundwire/intel_ace2x.c
1085
ret = hdac_bus_eml_sdw_set_lsdiid(sdw->link_res->hbus, sdw->instance, dev_num);
drivers/soundwire/intel_ace2x.c
1095
ret = hdac_bus_eml_get_count(sdw->link_res->hbus, true, AZX_REG_ML_LEPTR_ID_SDW);
drivers/soundwire/intel_ace2x.c
484
ret = hdac_bus_eml_sdw_get_lsdiid_unlocked(sdw->link_res->hbus, sdw->instance, &lsdiid);
drivers/soundwire/intel_ace2x.c
488
wake_en = snd_hdac_chip_readw(sdw->link_res->hbus, WAKEEN);
drivers/soundwire/intel_ace2x.c
494
snd_hdac_chip_writew(sdw->link_res->hbus, WAKEEN, wake_en);
drivers/soundwire/intel_ace2x.c
498
snd_hdac_chip_writew(sdw->link_res->hbus, WAKEEN, wake_en);
drivers/soundwire/intel_ace2x.c
501
wake_sts = snd_hdac_chip_readw(sdw->link_res->hbus, STATESTS);
drivers/soundwire/intel_ace2x.c
503
snd_hdac_chip_writew(sdw->link_res->hbus, STATESTS, wake_sts);
drivers/soundwire/intel_ace2x.c
534
ret = hdac_bus_eml_sdw_power_up_unlocked(sdw->link_res->hbus, link_id);
drivers/soundwire/intel_ace2x.c
547
ret = hdac_bus_eml_sdw_set_syncprd_unlocked(sdw->link_res->hbus, syncprd);
drivers/soundwire/intel_ace2x.c
555
ret = hdac_bus_eml_sdw_wait_syncpu_unlocked(sdw->link_res->hbus);
drivers/soundwire/intel_ace2x.c
562
hdac_bus_eml_enable_interrupt_unlocked(sdw->link_res->hbus, true,
drivers/soundwire/intel_ace2x.c
591
hdac_bus_eml_enable_interrupt_unlocked(sdw->link_res->hbus, true,
drivers/soundwire/intel_ace2x.c
594
ret = hdac_bus_eml_sdw_power_down_unlocked(sdw->link_res->hbus, link_id);
drivers/soundwire/intel_ace2x.c
616
hdac_bus_eml_sdw_sync_arm_unlocked(sdw->link_res->hbus, link_id);
drivers/soundwire/intel_ace2x.c
625
ret = hdac_bus_eml_sdw_sync_go_unlocked(sdw->link_res->hbus);
drivers/soundwire/intel_ace2x.c
647
return hdac_bus_eml_sdw_check_cmdsync_unlocked(sdw->link_res->hbus);
drivers/soundwire/intel_init.c
90
link->hbus = res->hbus;
include/linux/soundwire/sdw_intel.h
357
struct hdac_bus *hbus;
sound/hda/common/controller.c
765
struct hda_bus *hbus = &chip->bus;
sound/hda/common/controller.c
773
if (hbus->no_response_fallback)
sound/hda/common/controller.c
809
if (hbus->allow_bus_reset && !hbus->response_reset && !hbus->in_reset) {
sound/hda/common/controller.c
810
hbus->response_reset = 1;
sound/hda/common/controller.c
821
hbus->response_reset = 0;
sound/soc/sof/intel/hda-codec.c
109
struct hda_bus *hbus = sof_to_hbus(sdev);
sound/soc/sof/intel/hda-codec.c
116
list_for_each_codec(codec, hbus)
sound/soc/sof/intel/hda-codec.c
152
struct hda_bus *hbus = sof_to_hbus(sdev);
sound/soc/sof/intel/hda-codec.c
160
mutex_lock(&hbus->core.cmd_mutex);
sound/soc/sof/intel/hda-codec.c
161
snd_hdac_bus_send_cmd(&hbus->core, hda_cmd);
sound/soc/sof/intel/hda-codec.c
162
snd_hdac_bus_get_response(&hbus->core, address, &resp);
sound/soc/sof/intel/hda-codec.c
163
mutex_unlock(&hbus->core.cmd_mutex);
sound/soc/sof/intel/hda-codec.c
175
codec = hda_codec_device_init(&hbus->core, address, HDA_DEV_LEGACY);
sound/soc/sof/intel/hda-codec.c
185
if (!hbus->core.audio_component) {
sound/soc/sof/intel/hda-codec.c
194
if (is_generic_config(hbus))
sound/soc/sof/intel/hda-codec.c
78
struct hda_bus *hbus = sof_to_hbus(sdev);
sound/soc/sof/intel/hda-codec.c
89
list_for_each_codec(codec, hbus) {
sound/soc/sof/intel/hda-codec.c
96
list_for_each_codec(codec, hbus) {
sound/soc/sof/intel/hda-dsp.c
1173
struct hdac_bus *bus = &hdev->hbus.core;
sound/soc/sof/intel/hda-dsp.c
972
struct hdac_bus *hbus = sof_to_bus(sdev);
sound/soc/sof/intel/hda-dsp.c
974
if (hbus->codec_powered) {
sound/soc/sof/intel/hda-dsp.c
976
(unsigned int)hbus->codec_powered);
sound/soc/sof/intel/hda.c
207
res.hbus = sof_to_bus(sdev);
sound/soc/sof/intel/hda.c
491
struct hda_bus *hbus;
sound/soc/sof/intel/hda.c
496
hbus = sof_to_hbus(sdev);
sound/soc/sof/intel/hda.c
509
mutex_init(&hbus->prepare_mutex);
sound/soc/sof/intel/hda.c
510
hbus->pci = pci;
sound/soc/sof/intel/hda.c
511
hbus->mixer_assigned = -1;
sound/soc/sof/intel/hda.c
512
hbus->modelname = hda_model;
sound/soc/sof/intel/hda.h
512
struct hda_bus hbus;
sound/soc/sof/intel/hda.h
566
return &hda->hbus.core;
sound/soc/sof/intel/hda.h
573
return &hda->hbus;
sound/soc/sof/intel/hda.h
589
container_of(bus, struct sof_intel_hda_dev, hbus.core)
sound/soc/sof/intel/ptl.c
35
struct hdac_bus *bus = &hdev->hbus.core;