Lines Matching refs:port

74 /* Multi-port constants */
86 * SB800 port is selected by bits 2:1 of the smb_en register (0x2c)
88 * Hudson-2/Bolton port is always selected by bits 2:1 of register 0x2f.
158 " port 0", " port 2", " port 3", " port 4"
160 static const char *piix4_aux_port_name_sb800 = " port 1";
173 u8 port; /* Port number, shifted */
233 * cd6h/cd7h port I/O accesses can be disabled on AMD processors
459 /* Find which register is used for port selection */
492 "Using register 0x%02x for SMBus port selection\n",
766 static int piix4_sb800_port_sel(u8 port, struct sb800_mmio_cfg *mmio_cfg)
772 val = (smba_en_lo & ~piix4_port_mask_sb800) | port;
782 val = (smba_en_lo & ~piix4_port_mask_sb800) | port;
791 * The port is selected by bits 2:1 of the smb_en register (0x2c).
794 * Note: The selected port must be returned to the initial selection to avoid
865 prev_port = piix4_sb800_port_sel(adapdata->port, &adapdata->mmio_cfg);
931 bool sb800_main, u8 port, bool notify_imc,
960 adapdata->port = port << piix4_port_shift_sb800;
993 int port;
1004 for (port = 0; port < piix4_adapter_count; port++) {
1005 u8 hw_port_nr = port == 0 ? 0 : port + 1;
1007 retval = piix4_add_adapter(dev, smba, true, port, notify_imc,
1009 piix4_main_port_names_sb800[port],
1010 &piix4_main_adapters[port]);
1020 while (--port >= 0) {
1021 adapdata = i2c_get_adapdata(piix4_main_adapters[port]);
1023 i2c_del_adapter(piix4_main_adapters[port]);
1025 kfree(piix4_main_adapters[port]);
1026 piix4_main_adapters[port] = NULL;
1122 if (adapdata->port == (0 << piix4_port_shift_sb800))
1131 int port = piix4_adapter_count;
1133 while (--port >= 0) {
1134 if (piix4_main_adapters[port]) {
1135 piix4_adap_remove(piix4_main_adapters[port]);
1136 piix4_main_adapters[port] = NULL;