Home
last modified time | relevance | path

Searched refs:regidx (Results 1 – 23 of 23) sorted by relevance

/openbmc/linux/sound/usb/6fire/
H A Dchip.c87 int regidx = -1; /* index in module parameter array */ in usb6fire_chip_probe() local
99 } else if (!devices[i] && regidx < 0) in usb6fire_chip_probe()
100 regidx = i; in usb6fire_chip_probe()
102 if (regidx < 0) { in usb6fire_chip_probe()
107 devices[regidx] = device; in usb6fire_chip_probe()
122 ret = snd_card_new(&intf->dev, index[regidx], id[regidx], in usb6fire_chip_probe()
134 chips[regidx] = chip; in usb6fire_chip_probe()
136 chip->regidx = regidx; in usb6fire_chip_probe()
178 devices[chip->regidx] = NULL; in usb6fire_chip_disconnect()
179 chips[chip->regidx] = NULL; in usb6fire_chip_disconnect()
H A Dchip.h18 int regidx; /* index in module parameter arrays */ member
/openbmc/qemu/target/arm/
H A Dkvm.c781 switch (regidx & KVM_REG_ARM_COPROC_MASK) { in kvm_arm_reg_syncs_via_cpreg_list()
850 uint64_t regidx = rlp->reg[i]; in kvm_arm_init_cpreg_list() local
854 cpu->cpreg_indexes[arraylen] = regidx; in kvm_arm_init_cpreg_list()
880 static int kvm_arm_cpreg_level(uint64_t regidx) in kvm_arm_cpreg_level() argument
887 switch (regidx) { in kvm_arm_cpreg_level()
902 uint64_t regidx = cpu->cpreg_indexes[i]; in write_kvmstate_to_list() local
906 switch (regidx & KVM_REG_SIZE_MASK) { in write_kvmstate_to_list()
908 ret = kvm_get_one_reg(cs, regidx, &v32); in write_kvmstate_to_list()
933 uint64_t regidx = cpu->cpreg_indexes[i]; in write_list_to_kvmstate() local
937 if (kvm_arm_cpreg_level(regidx) > level) { in write_list_to_kvmstate()
[all …]
H A Dhelper.c127 uint32_t regidx = kvm_to_cpreg_id(cpu->cpreg_indexes[i]); in write_cpustate_to_list() local
131 ri = get_arm_cp_reginfo(cpu->cp_regs, regidx); in write_cpustate_to_list()
172 uint32_t regidx = kvm_to_cpreg_id(cpu->cpreg_indexes[i]); in write_list_to_cpustate() local
176 ri = get_arm_cp_reginfo(cpu->cp_regs, regidx); in write_list_to_cpustate()
200 uint32_t regidx = (uintptr_t)key; in add_cpreg_to_list() local
201 const ARMCPRegInfo *ri = get_arm_cp_reginfo(cpu->cp_regs, regidx); in add_cpreg_to_list()
204 cpu->cpreg_indexes[cpu->cpreg_array_len] = cpreg_to_kvm_id(regidx); in add_cpreg_to_list()
/openbmc/linux/drivers/video/fbdev/matrox/
H A Dg450_pll.c210 unsigned int regidx) in g450_isplllocked() argument
215 if (matroxfb_DAC_in(minfo, regidx) & 0x40) { in g450_isplllocked()
220 r += matroxfb_DAC_in(minfo, regidx) & 0x40; in g450_isplllocked()
/openbmc/linux/drivers/net/ethernet/intel/igb/
H A De1000_mac.c178 u32 regidx, vfta_delta, vfta, bits; in igb_vfta_set() local
195 regidx = vlan / 32; in igb_vfta_set()
197 vfta = adapter->shadow_vfta[regidx]; in igb_vfta_set()
240 hw->mac.ops.write_vfta(hw, regidx, vfta); in igb_vfta_set()
271 hw->mac.ops.write_vfta(hw, regidx, vfta); in igb_vfta_set()
/openbmc/linux/drivers/net/wireless/ath/ath9k/
H A Ddebug.c860 len = sprintf(buf, "0x%08x\n", sc->debug.regidx); in read_file_regidx()
868 unsigned long regidx; in write_file_regidx() local
871 ret = kstrtoul_from_user(user_buf, count, 0, &regidx); in write_file_regidx()
875 sc->debug.regidx = regidx; in write_file_regidx()
897 regval = REG_READ_D(ah, sc->debug.regidx); in read_file_regval()
916 REG_WRITE_D(ah, sc->debug.regidx, regval); in write_file_regval()
H A Ddebug.h251 u32 regidx; member
/openbmc/linux/drivers/net/ethernet/broadcom/
H A Dsb1250-mac.c309 static int sbmac_mii_read(struct mii_bus *bus, int phyaddr, int regidx);
310 static int sbmac_mii_write(struct mii_bus *bus, int phyaddr, int regidx,
421 static int sbmac_mii_read(struct mii_bus *bus, int phyaddr, int regidx) in sbmac_mii_read() argument
446 sbmac_mii_senddata(sbm_mdio, regidx, 5); in sbmac_mii_read()
514 static int sbmac_mii_write(struct mii_bus *bus, int phyaddr, int regidx, in sbmac_mii_write() argument
526 sbmac_mii_senddata(sbm_mdio, regidx, 5); in sbmac_mii_write()
H A Dbnx2.c3606 u32 regidx; in bnx2_set_rx_mode() local
3615 regidx = (bit & 0xe0) >> 5; in bnx2_set_rx_mode()
3617 mc_filter[regidx] |= (1 << bit); in bnx2_set_rx_mode()
H A Dtg3.c9772 u32 regidx; in __tg3_set_rx_mode() local
9779 regidx = (bit & 0x60) >> 5; in __tg3_set_rx_mode()
9781 mc_filter[regidx] |= (1 << bit); in __tg3_set_rx_mode()
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_llh_internal.h450 #define HW_ATL_GEN_INTR_MAP_ADR(regidx) (0x00002180u + (regidx) * 0x4) argument
H A Dhw_atl_llh.c481 u32 regidx) in hw_atl_reg_gen_irq_map_set() argument
483 aq_hw_write_reg(aq_hw, HW_ATL_GEN_INTR_MAP_ADR(regidx), gen_intr_map); in hw_atl_reg_gen_irq_map_set()
H A Dhw_atl_llh.h227 u32 regidx);
/openbmc/linux/drivers/net/ethernet/smsc/
H A Dsmsc9420.c103 static int smsc9420_mii_read(struct mii_bus *bus, int phyaddr, int regidx) in smsc9420_mii_read() argument
119 addr = ((phyaddr & 0x1F) << 11) | ((regidx & 0x1F) << 6) | in smsc9420_mii_read()
140 static int smsc9420_mii_write(struct mii_bus *bus, int phyaddr, int regidx, in smsc9420_mii_write() argument
160 addr = ((phyaddr & 0x1F) << 11) | ((regidx & 0x1F) << 6) | in smsc9420_mii_write()
H A Dsmsc911x.c552 static int smsc911x_mii_read(struct mii_bus *bus, int phyaddr, int regidx) in smsc911x_mii_read() argument
570 addr = ((phyaddr & 0x1F) << 11) | ((regidx & 0x1F) << 6); in smsc911x_mii_read()
590 static int smsc911x_mii_write(struct mii_bus *bus, int phyaddr, int regidx, in smsc911x_mii_write() argument
612 addr = ((phyaddr & 0x1F) << 11) | ((regidx & 0x1F) << 6) | in smsc911x_mii_write()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmt7996.h396 int mt7996_mcu_rf_regval(struct mt7996_dev *dev, u32 regidx, u32 *val, bool set);
H A Dmcu.c3718 int mt7996_mcu_rf_regval(struct mt7996_dev *dev, u32 regidx, u32 *val, bool set) in mt7996_mcu_rf_regval() argument
3733 .idx = cpu_to_le16(u32_get_bits(regidx, GENMASK(31, 24))), in mt7996_mcu_rf_regval()
3734 .ofs = cpu_to_le32(u32_get_bits(regidx, GENMASK(23, 0))), in mt7996_mcu_rf_regval()
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_common.c3121 u32 regidx, vfta_delta, vfta, bits; in ixgbe_set_vfta_generic() local
3139 regidx = vlan / 32; in ixgbe_set_vfta_generic()
3141 vfta = IXGBE_READ_REG(hw, IXGBE_VFTA(regidx)); in ixgbe_set_vfta_generic()
3185 IXGBE_WRITE_REG(hw, IXGBE_VFTA(regidx), vfta); in ixgbe_set_vfta_generic()
3218 IXGBE_WRITE_REG(hw, IXGBE_VFTA(regidx), vfta); in ixgbe_set_vfta_generic()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dmt7915.h502 int mt7915_mcu_rf_regval(struct mt7915_dev *dev, u32 regidx, u32 *val, bool set);
H A Dmcu.c3856 int mt7915_mcu_rf_regval(struct mt7915_dev *dev, u32 regidx, u32 *val, bool set) in mt7915_mcu_rf_regval() argument
3863 .idx = cpu_to_le32(u32_get_bits(regidx, GENMASK(31, 24))), in mt7915_mcu_rf_regval()
3864 .ofs = cpu_to_le32(u32_get_bits(regidx, GENMASK(23, 0))), in mt7915_mcu_rf_regval()
/openbmc/linux/drivers/infiniband/hw/hfi1/
H A Dchip.c14393 unsigned idx, regoff, regidx; in init_qos() local
14398 regidx = idx / 8; in init_qos()
14400 reg = rmt->map[regidx]; in init_qos()
14404 rmt->map[regidx] = reg; in init_qos()
14443 int i, idx, regoff, regidx, start; in init_fecn_handling() local
14477 regidx = idx / 8; in init_fecn_handling()
14478 reg = rmt->map[regidx]; in init_fecn_handling()
14481 rmt->map[regidx] = reg; in init_fecn_handling()
/openbmc/linux/drivers/infiniband/hw/qib/
H A Dqib_iba7322.c7319 int regidx; in set_txdds() local
7322 regidx = KREG_IBPORT_IDX(IBSD_DDS_MAP_TABLE) + ridx; in set_txdds()
7329 regidx += (dd->palign / sizeof(u64)); in set_txdds()
7335 qib_write_kreg(dd, regidx, pack_ent); in set_txdds()