Lines Matching refs:phandle

93 regmap_byphandle(uint32_t phandle)  in regmap_byphandle()  argument
97 if (phandle == 0) in regmap_byphandle()
101 if (rm->rm_phandle == phandle) in regmap_byphandle()
151 if_byphandle(uint32_t phandle) in if_byphandle() argument
155 if (phandle == 0) in if_byphandle()
159 if (ifd->if_phandle == phandle) in if_byphandle()
217 uint32_t phandle = cells[0]; in phy_enable_cells() local
221 if (pd->pd_phandle == phandle) in phy_enable_cells()
228 node = OF_getnodebyphandle(phandle); in phy_enable_cells()
241 uint32_t phandle = cells[0]; in phy_next_phy() local
244 node = OF_getnodebyphandle(phandle); in phy_next_phy()
330 i2c_byphandle(uint32_t phandle) in i2c_byphandle() argument
334 if (phandle == 0) in i2c_byphandle()
338 if (ib->ib_phandle == phandle) in i2c_byphandle()
363 sfp_do_enable(uint32_t phandle, int enable) in sfp_do_enable() argument
367 if (phandle == 0) in sfp_do_enable()
371 if (sd->sd_phandle == phandle) in sfp_do_enable()
379 sfp_enable(uint32_t phandle) in sfp_enable() argument
381 return sfp_do_enable(phandle, 1); in sfp_enable()
385 sfp_disable(uint32_t phandle) in sfp_disable() argument
387 return sfp_do_enable(phandle, 0); in sfp_disable()
391 sfp_get_sffpage(uint32_t phandle, struct if_sffpage *sff) in sfp_get_sffpage() argument
395 if (phandle == 0) in sfp_get_sffpage()
399 if (sd->sd_phandle == phandle) in sfp_get_sffpage()
421 sfp_add_media(uint32_t phandle, struct mii_data *mii) in sfp_add_media() argument
430 error = sfp_get_sffpage(phandle, &sff); in sfp_add_media()
572 uint32_t phandle; in nvmem_register_child() local
575 phandle = OF_getpropint(node, "phandle", 0); in nvmem_register_child()
576 if (phandle == 0) in nvmem_register_child()
585 nc->nc_phandle = phandle; in nvmem_register_child()
608 nvmem_read(uint32_t phandle, bus_addr_t addr, void *data, bus_size_t size) in nvmem_read() argument
612 if (phandle == 0) in nvmem_read()
616 if (nd->nd_phandle == phandle) in nvmem_read()
630 uint32_t phandle, *phandles; in nvmem_read_cell() local
644 phandle = phandles[id]; in nvmem_read_cell()
648 if (nc->nc_phandle == phandle) in nvmem_read_cell()
705 uint32_t phandle, *phandles; in nvmem_write_cell() local
719 phandle = phandles[id]; in nvmem_write_cell()
723 if (nc->nc_phandle == phandle) in nvmem_write_cell()
838 device_ports_byphandle(uint32_t phandle) in device_ports_byphandle() argument
842 if (phandle == 0) in device_ports_byphandle()
846 if (ep->ep_port->dp_phandle == phandle) in device_ports_byphandle()
854 endpoint_byphandle(uint32_t phandle) in endpoint_byphandle() argument
858 if (phandle == 0) in endpoint_byphandle()
862 if (ep->ep_phandle == phandle) in endpoint_byphandle()
892 int phandle; in endpoint_remote() local
894 phandle = OF_getpropint(ep->ep_node, "remote-endpoint", 0); in endpoint_remote()
895 if (phandle == 0) in endpoint_remote()
899 if (rep->ep_phandle == phandle) in endpoint_remote()
921 device_port_activate(uint32_t phandle, void *arg) in device_port_activate() argument
928 if (phandle == 0) in device_port_activate()
932 if (ep->ep_port->dp_phandle == phandle) { in device_port_activate()
983 dai_byphandle(uint32_t phandle) in dai_byphandle() argument
987 if (phandle == 0) in dai_byphandle()
991 if (dd->dd_phandle == phandle) in dai_byphandle()
1023 mii_byphandle(uint32_t phandle) in mii_byphandle() argument
1027 if (phandle == 0) in mii_byphandle()
1030 node = OF_getnodebyphandle(phandle); in mii_byphandle()
1057 iommu_device_do_map(uint32_t phandle, uint32_t *cells, bus_dma_tag_t dmat) in iommu_device_do_map() argument
1061 if (phandle == 0) in iommu_device_do_map()
1065 if (id->id_phandle == phandle) in iommu_device_do_map()
1073 iommu_device_lookup(int node, uint32_t *phandle, uint32_t *cells) in iommu_device_lookup() argument
1101 *phandle = cell[0]; in iommu_device_lookup()
1118 iommu_device_lookup_pci(int node, uint32_t rid, uint32_t *phandle, in iommu_device_lookup_pci() argument
1156 *phandle = cell[1]; in iommu_device_lookup_pci()
1174 uint32_t phandle, cells[2] = {0}; in iommu_device_map() local
1176 if (iommu_device_lookup(node, &phandle, &cells[0])) in iommu_device_map()
1179 return iommu_device_do_map(phandle, &cells[0], dmat); in iommu_device_map()
1185 uint32_t phandle, cells[2] = {0}; in iommu_device_map_pci() local
1187 if (iommu_device_lookup_pci(node, rid, &phandle, &cells[0])) in iommu_device_map_pci()
1190 return iommu_device_do_map(phandle, &cells[0], dmat); in iommu_device_map_pci()
1194 iommu_device_do_reserve(uint32_t phandle, uint32_t *cells, bus_addr_t addr, in iommu_device_do_reserve() argument
1199 if (phandle == 0) in iommu_device_do_reserve()
1203 if (id->id_phandle == phandle) { in iommu_device_do_reserve()
1214 uint32_t phandle, cells[2] = {0}; in iommu_reserve_region_pci() local
1216 if (iommu_device_lookup_pci(node, rid, &phandle, &cells[0])) in iommu_reserve_region_pci()
1219 return iommu_device_do_reserve(phandle, &cells[0], addr, size); in iommu_reserve_region_pci()
1250 uint32_t phandle = cells[0]; in mbox_channel_cells() local
1254 if (md->md_phandle == phandle) in mbox_channel_cells()
1274 uint32_t phandle = cells[0]; in mbox_next_mbox() local
1277 node = OF_getnodebyphandle(phandle); in mbox_next_mbox()
1368 uint32_t phandle = cells[0]; in hwlock_lock_cells() local
1371 if (hd->hd_phandle == phandle) in hwlock_lock_cells()
1384 uint32_t phandle = cells[0]; in hwlock_next_hwlock() local
1387 node = OF_getnodebyphandle(phandle); in hwlock_next_hwlock()