Searched refs:parent_dev (Results 1 - 30 of 30) sorted by relevance

/linux-4.4.14/drivers/of/
H A Dirq.c589 struct device *parent_dev; __of_msi_map_rid() local
602 for (parent_dev = dev; parent_dev; parent_dev = parent_dev->parent) { __of_msi_map_rid()
603 if (!parent_dev->of_node) __of_msi_map_rid()
606 msi_map = of_get_property(parent_dev->of_node, __of_msi_map_rid()
612 dev_err(parent_dev, "Error: Bad msi-map length: %d\n", __of_msi_map_rid()
616 /* We have a good parent_dev and msi_map, let's use them. */ __of_msi_map_rid()
629 of_property_read_u32(parent_dev->of_node, "msi-map-mask", &map_mask); __of_msi_map_rid()
640 dev_err(parent_dev, __of_msi_map_rid()
668 dev_name(parent_dev), map_mask, rid_base, msi_base, __of_msi_map_rid()
/linux-4.4.14/drivers/staging/fsl-mc/bus/
H A Dmc-bus.c325 struct device *parent_dev = mc_dev->dev.parent; fsl_mc_device_get_mmio_regions() local
357 dev_err(parent_dev, fsl_mc_device_get_mmio_regions()
367 dev_err(parent_dev, fsl_mc_device_get_mmio_regions()
392 struct device *parent_dev, fsl_mc_device_add()
400 if (parent_dev->bus == &fsl_mc_bus_type) fsl_mc_device_add()
401 parent_mc_dev = to_fsl_mc_device(parent_dev); fsl_mc_device_add()
409 mc_bus = devm_kzalloc(parent_dev, sizeof(*mc_bus), GFP_KERNEL); fsl_mc_device_add()
426 mc_dev->dev.parent = parent_dev; fsl_mc_device_add()
495 dev_err(parent_dev, fsl_mc_device_add()
502 dev_dbg(parent_dev, "Added MC object device %s\n", fsl_mc_device_add()
511 devm_kfree(parent_dev, mc_bus); fsl_mc_device_add()
390 fsl_mc_device_add(struct dprc_obj_desc *obj_desc, struct fsl_mc_io *mc_io, struct device *parent_dev, struct fsl_mc_device **new_mc_dev) fsl_mc_device_add() argument
/linux-4.4.14/drivers/uwb/
H A Dlc-rc.c337 * @parent_dev is our real device, the one that provides the actual UWB device
339 int uwb_rc_add(struct uwb_rc *rc, struct device *parent_dev, void *priv) uwb_rc_add() argument
368 result = uwb_dev_add(&rc->uwb_dev, parent_dev, rc); uwb_rc_add()
374 dev_err(parent_dev, "cannot register UWB radio controller " uwb_rc_add()
383 macbuf, devbuf, parent_dev->bus->name, dev_name(parent_dev)); uwb_rc_add()
H A Dlc-dev.c260 static int __uwb_dev_sys_add(struct uwb_dev *uwb_dev, struct device *parent_dev) __uwb_dev_sys_add() argument
265 dev->parent = parent_dev; __uwb_dev_sys_add()
292 int uwb_dev_add(struct uwb_dev *uwb_dev, struct device *parent_dev, uwb_dev_add() argument
299 BUG_ON(parent_dev == NULL); uwb_dev_add()
305 result = __uwb_dev_sys_add(uwb_dev, parent_dev); uwb_dev_add()
H A Duwb-internal.h41 extern int uwb_dev_add(struct uwb_dev *uwb_dev, struct device *parent_dev,
/linux-4.4.14/drivers/staging/fsl-mc/include/
H A Dmc-private.h95 struct device *parent_dev,
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
H A Dwmi.c242 if (WARN_ON(skb == NULL || (if_idx > wmi->parent_dev->vif_max - 1))) ath6kl_wmi_data_hdr_add()
510 struct ath6kl *ar = wmi->parent_dev; ath6kl_wmi_remain_on_chnl_event_rx()
543 struct ath6kl *ar = wmi->parent_dev; ath6kl_wmi_cancel_remain_on_chnl_event_rx()
748 ath6kl_ready_event(wmi->parent_dev, ev->mac_addr, ath6kl_wmi_ready_event_rx()
1011 if (country && wmi->parent_dev->wiphy_registered) { ath6kl_wmi_regdomain_event()
1015 regulatory_hint(wmi->parent_dev->wiphy, alpha2); ath6kl_wmi_regdomain_event()
1094 struct ath6kl *ar = wmi->parent_dev; ath6kl_wmi_bssinfo_event_rx()
1194 ath6kl_indicate_tx_activity(wmi->parent_dev, ev->traffic_class, false); ath6kl_wmi_pstream_timeout_event_rx()
1223 ath6kl_wakeup_event(wmi->parent_dev); ath6kl_wmi_bitrate_reply_rx()
1230 ath6kl_tm_rx_event(wmi->parent_dev, datap, len); ath6kl_wmi_test_rx()
1240 ath6kl_wakeup_event(wmi->parent_dev); ath6kl_wmi_ratemask_reply_rx()
1250 ath6kl_wakeup_event(wmi->parent_dev); ath6kl_wmi_ch_list_reply_rx()
1263 ath6kl_txpwr_rx_evt(wmi->parent_dev, reply->dbM); ath6kl_wmi_tx_pwr_reply_rx()
1273 ath6kl_wakeup_event(wmi->parent_dev); ath6kl_wmi_keepalive_reply_rx()
1569 ath6kl_indicate_tx_activity(wmi->parent_dev, reply->ac, ath6kl_wmi_cac_event_rx()
1787 (if_idx > (wmi->parent_dev->vif_max - 1)))) { ath6kl_wmi_cmd_send()
1826 ep_id = ath6kl_ac2_endpoint_id(wmi->parent_dev, WMM_AC_BE); ath6kl_wmi_cmd_send()
1829 ath6kl_control_tx(wmi->parent_dev, skb, ep_id); ath6kl_wmi_cmd_send()
2009 struct ath6kl *ar = wmi->parent_dev; ath6kl_wmi_beginscan_cmd()
2293 ath6kl_debug_set_disconnect_timeout(wmi->parent_dev, timeout); ath6kl_wmi_disctimeout_cmd()
2437 ret = ath6kl_control_tx(wmi->parent_dev, skb, ep_id); ath6kl_wmi_data_sync_send()
2506 ep_id = ath6kl_ac2_endpoint_id(wmi->parent_dev, ath6kl_wmi_sync_point()
2618 ath6kl_indicate_tx_activity(wmi->parent_dev, ath6kl_wmi_create_pstream_cmd()
2676 ath6kl_indicate_tx_activity(wmi->parent_dev, ath6kl_wmi_delete_pstream_cmd()
2745 ath6kl_indicate_tx_activity(wmi->parent_dev, ath6kl_wmi_relinquish_implicit_pstream_credits()
2862 struct ath6kl *ar = wmi->parent_dev; ath6kl_wmi_set_bitrate_mask()
2907 struct ath6kl *ar = wmi->parent_dev; ath6kl_wmi_host_sleep_mode_cmd_prcd_evt_rx()
3166 ath6kl_debug_set_keepalive(wmi->parent_dev, keep_alive_intvl); ath6kl_wmi_set_keepalive_cmd()
3308 struct ath6kl *ar = wmi->parent_dev; ath6kl_wmi_get_rate()
3717 struct ath6kl *ar = wmi->parent_dev; ath6kl_wmi_send_mgmt_cmd()
3833 ath6kl_recovery_hb_event(wmi->parent_dev, ath6kl_wmi_hb_challenge_resp_event()
3865 ath6kl_debug_fwlog_event(wmi->parent_dev, datap, len); ath6kl_wmi_control_rx_xtnd()
3878 return ath6kl_debug_roam_tbl_event(wmi->parent_dev, datap, len); ath6kl_wmi_roam_tbl_event_rx()
3887 vif = ath6kl_get_vif_by_index(wmi->parent_dev, if_idx); ath6kl_wmi_proc_events_vif()
4150 wmi->parent_dev = dev; ath6kl_wmi_init()
H A Dwmi.h114 struct ath6kl *parent_dev; member in struct:wmi
/linux-4.4.14/drivers/gpu/drm/exynos/
H A Dexynos_drm_ipp.h142 * @parent_dev: parent device information.
160 struct device *parent_dev; member in struct:exynos_drm_ippdrv
H A Dexynos_drm_ipp.c1617 ippdrv->parent_dev = dev; ipp_subdrv_probe()
/linux-4.4.14/net/batman-adv/
H A Dhard-interface.c92 struct net_device *parent_dev; batadv_is_on_batman_iface() local
105 parent_dev = __dev_get_by_index(&init_net, dev_get_iflink(net_dev)); batadv_is_on_batman_iface()
106 /* if we got a NULL parent_dev there is something broken.. */ batadv_is_on_batman_iface()
107 if (WARN(!parent_dev, "Cannot find parent device")) batadv_is_on_batman_iface()
110 ret = batadv_is_on_batman_iface(parent_dev); batadv_is_on_batman_iface()
/linux-4.4.14/drivers/scsi/pm8001/
H A Dpm8001_sas.c589 struct domain_device *parent_dev = dev->parent; pm8001_dev_found_notify() local
605 if (parent_dev && DEV_IS_EXPANDER(parent_dev->dev_type)) { pm8001_dev_found_notify()
608 for (phy_id = 0; phy_id < parent_dev->ex_dev.num_phys; pm8001_dev_found_notify()
610 phy = &parent_dev->ex_dev.ex_phy[phy_id]; pm8001_dev_found_notify()
617 if (phy_id == parent_dev->ex_dev.num_phys) { pm8001_dev_found_notify()
621 SAS_ADDR(parent_dev->sas_addr))); pm8001_dev_found_notify()
H A Dpm8001_hwi.c4528 struct domain_device *parent_dev = dev->parent; pm8001_chip_reg_dev_req() local
4549 if (parent_dev && DEV_IS_EXPANDER(parent_dev->dev_type)) pm8001_chip_reg_dev_req()
4550 phy_id = parent_dev->ex_dev.ex_phy->phy_id; pm8001_chip_reg_dev_req()
H A Dpm80xx_hwi.c4437 struct domain_device *parent_dev = dev->parent; pm80xx_chip_reg_dev_req() local
4459 if (parent_dev && DEV_IS_EXPANDER(parent_dev->dev_type)) pm80xx_chip_reg_dev_req()
4460 phy_id = parent_dev->ex_dev.ex_phy->phy_id; pm80xx_chip_reg_dev_req()
/linux-4.4.14/drivers/scsi/cxlflash/
H A Dcommon.h109 struct pci_dev *parent_dev; member in struct:cxlflash_cfg
H A Dmain.c1375 struct pci_dev *dev = cfg->parent_dev; read_vpd()
2433 cfg->parent_dev = to_pci_dev(phys_dev); cxlflash_probe()
/linux-4.4.14/sound/oss/
H A Ddev_table.h220 int parent_dev; /* 0 -> no parent, 1 to n -> parent=parent_dev+1 */ member in struct:audio_operations
H A Ddmabuf.c1173 if (adev->parent_dev) { /* Use DMA map of the parent dev */ DMAbuf_init()
1174 int parent = adev->parent_dev - 1; DMAbuf_init()
/linux-4.4.14/arch/powerpc/platforms/powernv/
H A Dpci.h39 struct pci_dev *parent_dev; member in struct:pnv_ioda_pe
H A Dpci-ioda.c79 pci_domain_nr(pe->parent_dev->bus), pe_level_printk()
625 pdev = pe->parent_dev; pnv_ioda_set_peltv()
680 parent = pe->parent_dev; pnv_ioda_deconfigure_pe()
719 pe->parent_dev = NULL; pnv_ioda_deconfigure_pe()
760 parent = pe->parent_dev; pnv_ioda_configure_pe()
1332 if (pe->parent_dev != pdev) pnv_ioda_release_vf_PE()
1410 pe->parent_dev = pdev; pnv_ioda_setup_vf_PE()
/linux-4.4.14/drivers/scsi/mpt3sas/
H A Dmpt3sas_transport.c708 port = sas_port_alloc_num(sas_node->parent_dev); mpt3sas_transport_port_add()
859 * @parent_dev: parent device class object
865 *mpt3sas_phy, Mpi2SasPhyPage0_t phy_pg0, struct device *parent_dev) mpt3sas_transport_add_host_phy()
872 phy = sas_phy_alloc(parent_dev, phy_index); mpt3sas_transport_add_host_phy()
927 * @parent_dev: parent device class object
934 struct device *parent_dev) mpt3sas_transport_add_expander_phy()
940 phy = sas_phy_alloc(parent_dev, phy_index); mpt3sas_transport_add_expander_phy()
864 mpt3sas_transport_add_host_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_phy *mpt3sas_phy, Mpi2SasPhyPage0_t phy_pg0, struct device *parent_dev) mpt3sas_transport_add_host_phy() argument
932 mpt3sas_transport_add_expander_phy(struct MPT3SAS_ADAPTER *ioc, struct _sas_phy *mpt3sas_phy, Mpi2ExpanderPage1_t expander_pg1, struct device *parent_dev) mpt3sas_transport_add_expander_phy() argument
H A Dmpt3sas_base.h592 * @parent_dev: parent device class
605 struct device *parent_dev; member in struct:_sas_node
1384 *mpt3sas_phy, Mpi2SasPhyPage0_t phy_pg0, struct device *parent_dev);
1387 struct device *parent_dev);
H A Dmpt3sas_scsih.c4773 ioc->sas_hba.parent_dev = &ioc->shost->shost_gendev; _scsih_sas_host_add()
4802 phy_pg0, ioc->sas_hba.parent_dev); _scsih_sas_host_add()
4946 sas_expander->parent_dev = &mpt3sas_port->rphy->dev; _scsih_expander_add()
4961 sas_expander->parent_dev))) { _scsih_expander_add()
/linux-4.4.14/drivers/scsi/mvsas/
H A Dmv_sas.c1190 struct domain_device *parent_dev = dev->parent; mvs_dev_found_notify() local
1208 if (parent_dev && DEV_IS_EXPANDER(parent_dev->dev_type)) { mvs_dev_found_notify()
1210 u8 phy_num = parent_dev->ex_dev.num_phys; mvs_dev_found_notify()
1213 phy = &parent_dev->ex_dev.ex_phy[phy_id]; mvs_dev_found_notify()
1225 SAS_ADDR(parent_dev->sas_addr)); mvs_dev_found_notify()
/linux-4.4.14/drivers/scsi/
H A Dhpsa.h38 struct device *parent_dev; member in struct:hpsa_sas_node
H A Dhpsa.c9238 phy = sas_phy_alloc(hpsa_sas_port->parent_node->parent_dev, hpsa_alloc_sas_phy()
9326 port = sas_port_alloc_num(hpsa_sas_node->parent_dev); hpsa_alloc_sas_port()
9363 static struct hpsa_sas_node *hpsa_alloc_sas_node(struct device *parent_dev) hpsa_alloc_sas_node() argument
9369 hpsa_sas_node->parent_dev = parent_dev; hpsa_alloc_sas_node()
9412 struct device *parent_dev; hpsa_add_sas_host() local
9417 parent_dev = &h->scsi_host->shost_gendev; hpsa_add_sas_host()
9419 hpsa_sas_node = hpsa_alloc_sas_node(parent_dev); hpsa_add_sas_host()
/linux-4.4.14/drivers/block/mtip32xx/
H A Dmtip32xx.c4357 struct pci_dev *parent_dev = pdev->bus->self; mtip_fix_ero_nosnoop() local
4358 if (parent_dev->bus && mtip_fix_ero_nosnoop()
4359 parent_dev->bus->parent && mtip_fix_ero_nosnoop()
4360 parent_dev->bus->parent->self && mtip_fix_ero_nosnoop()
4361 parent_dev->bus->parent->self->vendor == mtip_fix_ero_nosnoop()
4363 (parent_dev->bus->parent->self->device & mtip_fix_ero_nosnoop()
4366 parent_dev->bus->parent->self); mtip_fix_ero_nosnoop()
/linux-4.4.14/drivers/usb/core/
H A Dhcd.c1054 struct device *parent_dev = hcd->self.controller; register_root_hub() local
1072 dev_dbg (parent_dev, "can't read %s device descriptor %d\n", register_root_hub()
1083 dev_dbg(parent_dev, "can't read %s bos descriptor %d\n", register_root_hub()
1091 dev_err (parent_dev, "can't register root hub for %s, %d\n", register_root_hub()
/linux-4.4.14/drivers/message/fusion/
H A Dmptsas.c3362 struct device *parent_dev; mptsas_expander_refresh() local
3401 for (i = 0, parent_dev = NULL; i < parent->num_phys && !parent_dev; mptsas_expander_refresh()
3405 parent_dev = &rphy->dev; mptsas_expander_refresh()
3412 mptsas_probe_one_phy(parent_dev, &port_info->phy_info[i], mptsas_expander_refresh()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_main.c183 struct pci_dev *parent_dev; ixgbe_read_pci_cfg_word_parent() local
190 parent_dev = parent_bus->self; ixgbe_read_pci_cfg_word_parent()
191 if (!parent_dev) ixgbe_read_pci_cfg_word_parent()
194 if (!pci_is_pcie(parent_dev)) ixgbe_read_pci_cfg_word_parent()
197 pcie_capability_read_word(parent_dev, reg, value); ixgbe_read_pci_cfg_word_parent()
199 ixgbe_check_cfg_remove(&adapter->hw, parent_dev)) ixgbe_read_pci_cfg_word_parent()

Completed in 1791 milliseconds