Home
last modified time | relevance | path

Searched refs:bus_id (Results 1 – 25 of 68) sorted by relevance

123

/drivers/i2c/busses/
Di2c-amd-mp2-pci.c25 privdata->c2p_lock_busid = i2c_common->bus_id; in amd_mp2_c2p_mutex_lock()
32 if (unlikely(privdata->c2p_lock_busid != i2c_common->bus_id)) { in amd_mp2_c2p_mutex_unlock()
35 i2c_common->bus_id, privdata->c2p_lock_busid); in amd_mp2_c2p_mutex_unlock()
50 reg = privdata->mmio + ((i2c_cmd_base.s.bus_id == 1) ? in amd_mp2_cmd()
62 pci_dbg(privdata->pci_dev, "id: %d\n", i2c_common->bus_id); in amd_mp2_bus_enable_set()
66 i2c_cmd_base.s.bus_id = i2c_common->bus_id; in amd_mp2_bus_enable_set()
80 i2c_cmd_base->s.bus_id = i2c_common->bus_id; in amd_mp2_cmd_rw_fill()
190 i2c_common->bus_id); in amd_mp2_process_event()
207 unsigned int bus_id; in amd_mp2_irq_isr() local
211 for (bus_id = 0; bus_id < 2; bus_id++) { in amd_mp2_irq_isr()
[all …]
Di2c-amd-mp2.h82 u8 bus_id : 4; member
130 u8 bus_id : 4; member
159 u8 bus_id; member
Di2c-amd-mp2-plat.c285 i2c_dev->common.bus_id = 0; in i2c_amd_probe()
287 i2c_dev->common.bus_id = 1; in i2c_amd_probe()
292 dev_dbg(&pdev->dev, "bus id is %u\n", i2c_dev->common.bus_id); in i2c_amd_probe()
315 "AMD MP2 i2c bus %u", i2c_dev->common.bus_id); in i2c_amd_probe()
/drivers/clk/at91/
Dclk-i2s-mux.c22 u8 bus_id; member
34 return (val & BIT(mux->bus_id)) >> mux->bus_id; in clk_i2s_mux_get_parent()
42 BIT(mux->bus_id), index << mux->bus_id); in clk_i2s_mux_set_parent()
54 unsigned int num_parents, u8 bus_id) in at91_clk_i2s_mux_register() argument
70 i2s_ck->bus_id = bus_id; in at91_clk_i2s_mux_register()
/drivers/acpi/
Devent.c32 strcpy(event.bus_id, dev->pnp.bus_id); in acpi_notifier_call_chain()
56 char bus_id[15]; member
95 const char *bus_id, in acpi_bus_generate_netlink_event() argument
134 strscpy(event->bus_id, bus_id, sizeof(event->bus_id)); in acpi_bus_generate_netlink_event()
154 const char *bus_id, in acpi_bus_generate_netlink_event() argument
Dscan.c477 if (!strcmp(acpi_device_bus_id->bus_id, in acpi_device_del()
482 kfree_const(acpi_device_bus_id->bus_id); in acpi_device_del()
618 if (!strcmp(acpi_device_bus_id->bus_id, dev_id)) in acpi_device_bus_id_match()
635 dev_set_name(&device->dev, "%s:%02x", acpi_device_bus_id->bus_id, result); in acpi_device_set_name()
688 acpi_device_bus_id->bus_id = in __acpi_device_add()
690 if (!acpi_device_bus_id->bus_id) { in __acpi_device_add()
700 kfree_const(acpi_device_bus_id->bus_id); in __acpi_device_add()
1091 char bus_id[5] = { '?', 0 }; in acpi_device_get_busid() local
1092 struct acpi_buffer buffer = { sizeof(bus_id), bus_id }; in acpi_device_get_busid()
1102 strcpy(device->pnp.bus_id, "ACPI"); in acpi_device_get_busid()
[all …]
Dproc.c34 dev->pnp.bus_id, in acpi_system_wakeup_device_seq_show()
112 if (!strncmp(dev->pnp.bus_id, str, 4)) { in acpi_system_write_wakeup_device()
/drivers/net/mdio/
Dmdio-gpio.c111 int bus_id) in mdio_gpio_bus_init() argument
125 if (bus_id != -1) in mdio_gpio_bus_init()
126 snprintf(new_bus->id, MII_BUS_ID_SIZE, "gpio-%x", bus_id); in mdio_gpio_bus_init()
166 int ret, bus_id; in mdio_gpio_probe() local
177 bus_id = of_alias_get_id(pdev->dev.of_node, "mdio-gpio"); in mdio_gpio_probe()
178 if (bus_id < 0) { in mdio_gpio_probe()
180 bus_id = 0; in mdio_gpio_probe()
183 bus_id = pdev->id; in mdio_gpio_probe()
186 new_bus = mdio_gpio_bus_init(&pdev->dev, bitbang, bus_id); in mdio_gpio_probe()
Dmdio-mux-bcm-iproc.c164 u32 param, bus_id; in mdio_mux_iproc_switch_fn() local
169 bus_id = bus_dir ? desired_child : (desired_child - EXT_BUS_START_ADDR); in mdio_mux_iproc_switch_fn()
172 param |= (bus_id << MDIO_PARAM_BUS_ID); in mdio_mux_iproc_switch_fn()
/drivers/of/
Dplatform.c107 const char *bus_id, in of_device_alloc() argument
146 if (bus_id) in of_device_alloc()
147 dev_set_name(&dev->dev, "%s", bus_id); in of_device_alloc()
167 const char *bus_id, in of_platform_device_create_pdata() argument
177 dev = of_device_alloc(np, bus_id, parent); in of_platform_device_create_pdata()
210 const char *bus_id, in of_platform_device_create() argument
213 return of_platform_device_create_pdata(np, bus_id, NULL, parent); in of_platform_device_create()
219 const char *bus_id, in of_amba_device_create() argument
246 if (bus_id) in of_amba_device_create()
247 dev_set_name(&dev->dev, "%s", bus_id); in of_amba_device_create()
[all …]
/drivers/net/ethernet/toshiba/
Dps3_gelic_net.c53 status = lv1_net_set_interrupt_mask(bus_id(card), dev_id(card), in gelic_card_set_irq_mask()
78 lv1_net_control(bus_id(card), dev_id(card), in gelic_card_get_ether_port_status()
109 status = lv1_net_control(bus_id(card), dev_id(card), in gelic_card_set_link_mode()
134 status = lv1_net_stop_tx_dma(bus_id(card), dev_id(card)); in gelic_card_disable_txdmac()
162 status = lv1_net_start_rx_dma(bus_id(card), dev_id(card), in gelic_card_enable_rxdmac()
181 status = lv1_net_stop_rx_dma(bus_id(card), dev_id(card)); in gelic_card_disable_rxdmac()
604 status = lv1_net_remove_multicast_address(bus_id(card), dev_id(card), in gelic_net_set_multi()
611 status = lv1_net_add_multicast_address(bus_id(card), dev_id(card), in gelic_net_set_multi()
620 status = lv1_net_add_multicast_address(bus_id(card), in gelic_net_set_multi()
638 status = lv1_net_add_multicast_address(bus_id(card), in gelic_net_set_multi()
[all …]
Dps3_gelic_net.h335 static inline u64 bus_id(struct gelic_card *card) in bus_id() function
337 return card->dev->bus_id; in bus_id()
/drivers/mmc/host/
Dcavium.c185 static void set_bus_id(u64 *reg, int bus_id) in set_bus_id() argument
188 *reg |= FIELD_PREP(GENMASK(61, 60), bus_id); in set_bus_id()
204 int bus_id; in do_switch() local
210 bus_id = get_bus_id(emm_switch); in do_switch()
214 set_bus_id(&emm_switch, bus_id); in do_switch()
258 set_bus_id(&emm_switch, slot->bus_id); in cvm_mmc_reset_bus()
277 if (slot->bus_id == host->last_slot) in cvm_mmc_switch_to()
288 set_bus_id(&emm_switch, slot->bus_id); in cvm_mmc_switch_to()
295 host->last_slot = slot->bus_id; in cvm_mmc_switch_to()
637 set_bus_id(&emm_dma, slot->bus_id); in prepare_ext_dma()
[all …]
/drivers/greybus/
Dhd.c38 return sprintf(buf, "%d\n", hd->bus_id); in bus_id_show()
40 static DEVICE_ATTR_RO(bus_id);
114 ida_simple_remove(&gb_hd_bus_id_map, hd->bus_id); in gb_hd_release()
170 hd->bus_id = ret; in gb_hd_create()
185 dev_set_name(&hd->dev, "greybus%d", hd->bus_id); in gb_hd_create()
Dgreybus_trace.h179 __entry->hd_bus_id = connection->hd->bus_id;
388 __entry->hd_bus_id = module->hd->bus_id;
436 __field(int, bus_id)
442 __entry->bus_id = hd->bus_id;
448 __entry->bus_id, __entry->num_cports,
/drivers/s390/block/
Ddasd_devmap.c49 char bus_id[DASD_BUS_ID_SIZE]; member
98 dasd_hash_busid(const char *bus_id) in dasd_hash_busid() argument
103 for (i = 0; (i < DASD_BUS_ID_SIZE) && *bus_id; i++, bus_id++) in dasd_hash_busid()
104 hash += *bus_id; in dasd_hash_busid()
315 char bus_id[DASD_BUS_ID_SIZE + 1]; in dasd_parse_range() local
359 sprintf(bus_id, "%01x.%01x.%04x", from_id0, from_id1, from++); in dasd_parse_range()
360 devmap = dasd_add_busid(bus_id, features); in dasd_parse_range()
410 dasd_add_busid(const char *bus_id, int features) in dasd_add_busid() argument
420 hash = dasd_hash_busid(bus_id); in dasd_add_busid()
422 if (strncmp(tmp->bus_id, bus_id, DASD_BUS_ID_SIZE) == 0) { in dasd_add_busid()
[all …]
/drivers/xen/xenbus/
Dxenbus_probe_frontend.c35 static int frontend_bus_id(char bus_id[XEN_BUS_ID_SIZE], const char *nodename) in frontend_bus_id()
43 strlcpy(bus_id, nodename + 1, XEN_BUS_ID_SIZE); in frontend_bus_id()
44 if (!strchr(bus_id, '/')) { in frontend_bus_id()
45 pr_warn("bus_id %s no slash\n", bus_id); in frontend_bus_id()
48 *strchr(bus_id, '/') = '-'; in frontend_bus_id()
Dxenbus_probe_backend.c59 static int backend_bus_id(char bus_id[XEN_BUS_ID_SIZE], const char *nodename) in backend_bus_id()
89 if (snprintf(bus_id, XEN_BUS_ID_SIZE, "%.*s-%i-%s", in backend_bus_id()
/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-loongson.c101 plat->bus_id = of_alias_get_id(np, "ethernet"); in loongson_dwmac_probe()
102 if (plat->bus_id < 0) in loongson_dwmac_probe()
103 plat->bus_id = pci_dev_id(pdev); in loongson_dwmac_probe()
Ddwmac-intel.c621 plat->bus_id = 1; in ehl_sgmii_data()
639 plat->bus_id = 1; in ehl_rgmii_data()
657 plat->bus_id = 2; in ehl_pse0_common_data()
698 plat->bus_id = 3; in ehl_pse1_common_data()
757 plat->bus_id = 1; in tgl_sgmii_phy0_data()
771 plat->bus_id = 2; in tgl_sgmii_phy1_data()
785 plat->bus_id = 1; in adls_sgmii_phy0_data()
800 plat->bus_id = 2; in adls_sgmii_phy1_data()
898 plat->bus_id = pci_dev_id(pdev); in quark_default_data()
Dstmmac_pci.c57 plat->bus_id = 1; in stmmac_default_data()
113 plat->bus_id = 1; in snps_gmac5_default_data()
/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_platform.c41 plat->bus_id = of_alias_get_id(np, "ethernet"); in sxgbe_probe_config_dt()
42 if (plat->bus_id < 0) in sxgbe_probe_config_dt()
43 plat->bus_id = 0; in sxgbe_probe_config_dt()
/drivers/net/phy/
Dphy_device.c367 int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask, in phy_register_fixup() argument
375 strlcpy(fixup->bus_id, bus_id, sizeof(fixup->bus_id)); in phy_register_fixup()
397 int phy_register_fixup_for_id(const char *bus_id, in phy_register_fixup_for_id() argument
400 return phy_register_fixup(bus_id, PHY_ANY_UID, 0xffffffff, run); in phy_register_fixup_for_id()
410 int phy_unregister_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask) in phy_unregister_fixup() argument
422 if ((!strcmp(fixup->bus_id, bus_id)) && in phy_unregister_fixup()
445 int phy_unregister_fixup_for_id(const char *bus_id) in phy_unregister_fixup_for_id() argument
447 return phy_unregister_fixup(bus_id, PHY_ANY_UID, 0xffffffff); in phy_unregister_fixup_for_id()
456 if (strcmp(fixup->bus_id, phydev_name(phydev)) != 0) in phy_needs_fixup()
457 if (strcmp(fixup->bus_id, PHY_ANY_ID) != 0) in phy_needs_fixup()
[all …]
/drivers/net/ethernet/broadcom/
Dbgmac-bcma.c87 char bus_id[MII_BUS_ID_SIZE + 3]; in bcma_phy_connect() local
90 snprintf(bus_id, sizeof(bus_id), PHY_ID_FMT, bgmac->mii_bus->id, in bcma_phy_connect()
92 phy_dev = phy_connect(bgmac->net_dev, bus_id, bgmac_adjust_link, in bcma_phy_connect()
/drivers/net/dsa/
Ddsa_loop_bdinfo.c23 .bus_id = "fixed-0",

123