rail 87 arch/mips/include/asm/mips-cpc.h CPC_ACCESSOR_RW(32, 0x010, rail) rail 19 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/iccsense.h struct pwr_rail_t *rail; rail 76 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c iccsense->rail = kmalloc_array(cnt, sizeof(struct pwr_rail_t), rail 78 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c if (!iccsense->rail) rail 83 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c struct pwr_rail_t *rail = &iccsense->rail[i]; rail 92 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->mode = 1; rail 94 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->mode = 0; rail 95 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->extdev_id = nvbios_rd08(bios, entry + 0x2); rail 99 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->mode = nvbios_rd08(bios, entry); rail 100 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->extdev_id = nvbios_rd08(bios, entry + 0x1); rail 105 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c if (nvbios_extdev_parse(bios, rail->extdev_id, &extdev)) rail 111 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->resistor_count = 1; rail 114 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->resistor_count = 3; rail 117 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->resistor_count = 0; rail 121 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c for (r = 0; r < rail->resistor_count; ++r) { rail 122 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->resistors[r].mohm = nvbios_rd08(bios, entry + res_start + r * 2); rail 123 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->resistors[r].enabled = !(nvbios_rd08(bios, entry + res_start + r * 2 + 1) & 0x40); rail 125 drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c rail->config = nvbios_rd16(bios, entry + res_start + rail->resistor_count * 2); rail 67 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c struct nvkm_iccsense_rail *rail, rail 70 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c return nvkm_iccsense_poll_lane(rail->sensor->i2c, rail->sensor->addr, rail 71 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c shunt_reg, 0, bus_reg, 3, rail->mohm, rail 77 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c struct nvkm_iccsense_rail *rail) rail 79 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c return nvkm_iccsense_ina2x9_read(iccsense, rail, 3, 4); rail 84 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c struct nvkm_iccsense_rail *rail) rail 86 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c return nvkm_iccsense_ina2x9_read(iccsense, rail, 1, 2); rail 91 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c struct nvkm_iccsense_rail *rail) rail 93 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c return nvkm_iccsense_poll_lane(rail->sensor->i2c, rail->sensor->addr, rail 94 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c 1 + (rail->idx * 2), 3, rail 95 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c 2 + (rail->idx * 2), 3, rail->mohm, rail 112 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c struct nvkm_iccsense_rail *rail; rail 117 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c list_for_each_entry(rail, &iccsense->rails, head) { rail 119 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c if (!rail->read) rail 122 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c res = rail->read(iccsense, rail); rail 135 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c struct nvkm_iccsense_rail *rail, *tmpr; rail 141 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c list_for_each_entry_safe(rail, tmpr, &iccsense->rails, head) { rail 142 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c list_del(&rail->head); rail 143 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c kfree(rail); rail 243 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c struct pwr_rail_t *pwr_rail = &stbl.rail[i]; rail 260 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c struct nvkm_iccsense_rail *rail; rail 282 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c rail = kmalloc(sizeof(*rail), GFP_KERNEL); rail 283 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c if (!rail) rail 286 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c rail->read = read; rail 287 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c rail->sensor = sensor; rail 288 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c rail->idx = r; rail 289 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c rail->mohm = res->mohm; rail 290 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c nvkm_debug(subdev, "create rail for extdev %i: { idx: %i, mohm: %i }\n", pwr_rail->extdev_id, r, rail->mohm); rail 291 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c list_add_tail(&rail->head, &iccsense->rails); rail 793 drivers/greybus/svc.c struct svc_debugfs_pwrmon_rail *rail = &svc->pwrmon_rails[i]; rail 799 drivers/greybus/svc.c rail->id = i; rail 800 drivers/greybus/svc.c rail->svc = svc; rail 803 drivers/greybus/svc.c debugfs_create_file("voltage_now", 0444, dir, rail, rail 805 drivers/greybus/svc.c debugfs_create_file("current_now", 0444, dir, rail, rail 807 drivers/greybus/svc.c debugfs_create_file("power_now", 0444, dir, rail, rail 1656 drivers/net/wireless/broadcom/b43/phy_n.c enum n_rail_type rail, rail 1668 drivers/net/wireless/broadcom/b43/phy_n.c if (core1or5 && rail == N_RAIL_I) rail 1670 drivers/net/wireless/broadcom/b43/phy_n.c if (core1or5 && rail == N_RAIL_Q) rail 1672 drivers/net/wireless/broadcom/b43/phy_n.c if (core2or5 && rail == N_RAIL_I) rail 1674 drivers/net/wireless/broadcom/b43/phy_n.c if (core2or5 && rail == N_RAIL_Q) rail 1678 drivers/net/wireless/broadcom/b43/phy_n.c if (core1or5 && rail == N_RAIL_I) rail 1680 drivers/net/wireless/broadcom/b43/phy_n.c if (core1or5 && rail == N_RAIL_Q) rail 1682 drivers/net/wireless/broadcom/b43/phy_n.c if (core2or5 && rail == N_RAIL_I) rail 1684 drivers/net/wireless/broadcom/b43/phy_n.c if (core2or5 && rail == N_RAIL_Q) rail 1688 drivers/net/wireless/broadcom/b43/phy_n.c if (core1or5 && rail == N_RAIL_I) rail 1690 drivers/net/wireless/broadcom/b43/phy_n.c if (core1or5 && rail == N_RAIL_Q) rail 1692 drivers/net/wireless/broadcom/b43/phy_n.c if (core2or5 && rail == N_RAIL_I) rail 1694 drivers/net/wireless/broadcom/b43/phy_n.c if (core2or5 && rail == N_RAIL_Q) rail 1698 drivers/net/wireless/broadcom/b43/phy_n.c if (core1or5 && rail == N_RAIL_I) rail 1700 drivers/net/wireless/broadcom/b43/phy_n.c if (core1or5 && rail == N_RAIL_Q) rail 1702 drivers/net/wireless/broadcom/b43/phy_n.c if (core2or5 && rail == N_RAIL_I) rail 1704 drivers/net/wireless/broadcom/b43/phy_n.c if (core2or5 && rail == N_RAIL_Q) rail 1708 drivers/net/wireless/broadcom/b43/phy_n.c if (core1or5 && rail == N_RAIL_I) rail 1710 drivers/net/wireless/broadcom/b43/phy_n.c if (core1or5 && rail == N_RAIL_Q) rail 1712 drivers/net/wireless/broadcom/b43/phy_n.c if (core2or5 && rail == N_RAIL_I) rail 1714 drivers/net/wireless/broadcom/b43/phy_n.c if (core2or5 && rail == N_RAIL_Q) rail 2302 drivers/net/wireless/broadcom/b43/phy_n.c u8 rail; rail 2404 drivers/net/wireless/broadcom/b43/phy_n.c rail = (i % 2) ? N_RAIL_Q : N_RAIL_I; rail 2406 drivers/net/wireless/broadcom/b43/phy_n.c b43_nphy_scale_offset_rssi(dev, 0, offset[i], core, rail, rail 21478 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c u8 coresel, u8 rail, u8 rssi_type) rail 21491 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_I) && (rssi_type == NPHY_RSSI_SEL_NB)) rail 21496 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_Q) && (rssi_type == NPHY_RSSI_SEL_NB)) rail 21501 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_I) && (rssi_type == NPHY_RSSI_SEL_NB)) rail 21506 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_Q) && (rssi_type == NPHY_RSSI_SEL_NB)) rail 21511 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_I) && (rssi_type == NPHY_RSSI_SEL_W1)) rail 21516 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_Q) && (rssi_type == NPHY_RSSI_SEL_W1)) rail 21521 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_I) && (rssi_type == NPHY_RSSI_SEL_W1)) rail 21526 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_Q) && (rssi_type == NPHY_RSSI_SEL_W1)) rail 21531 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_I) && (rssi_type == NPHY_RSSI_SEL_W2)) rail 21535 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_Q) && (rssi_type == NPHY_RSSI_SEL_W2)) rail 21540 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_I) && (rssi_type == NPHY_RSSI_SEL_W2)) rail 21545 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_Q) && (rssi_type == NPHY_RSSI_SEL_W2)) rail 21550 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_I) && (rssi_type == NPHY_RSSI_SEL_TBD)) rail 21554 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_Q) && (rssi_type == NPHY_RSSI_SEL_TBD)) rail 21558 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_I) && (rssi_type == NPHY_RSSI_SEL_TBD)) rail 21562 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_Q) && (rssi_type == NPHY_RSSI_SEL_TBD)) rail 21567 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_I) && (rssi_type == NPHY_RSSI_SEL_IQ)) rail 21572 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_Q) && (rssi_type == NPHY_RSSI_SEL_IQ)) rail 21577 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_I) && (rssi_type == NPHY_RSSI_SEL_IQ)) rail 21582 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c (rail == NPHY_RAIL_Q) && (rssi_type == NPHY_RSSI_SEL_IQ))