/linux-6.3-rc2/drivers/regulator/ |
A D | rt5120-regulator.c | 23 #define RT5120_OUTPG_MASK(rid) BIT(rid + 1) argument 24 #define RT5120_OUTUV_MASK(rid) BIT(rid + 9) argument 25 #define RT5120_OUTOV_MASK(rid) BIT(rid + 16) argument 27 #define RT5120_RIDEN_MASK(rid) BIT(rid + 1) argument 28 #define RT5120_RADEN_MASK(rid) BIT(rid) argument 29 #define RT5120_FPWM_MASK(rid) BIT(rid + 1) argument 61 int rid = rdev_get_id(rdev); in rt5120_buck_set_mode() local 224 desc->name = name[rid]; in rt5120_fillin_regulator_desc() 228 desc->id = rid; in rt5120_fillin_regulator_desc() 238 if (rid >= RT5120_REGULATOR_BUCK1 && rid <= RT5120_REGULATOR_BUCK4) in rt5120_fillin_regulator_desc() [all …]
|
A D | irq_helpers.c | 53 struct regulator_irq_data *rid; in regulator_notifier_isr_work() local 61 rid = &h->rdata; in regulator_notifier_isr_work() 62 num_rdevs = rid->num_states; in regulator_notifier_isr_work() 69 ret = d->die(rid); in regulator_notifier_isr_work() 86 ret = d->renable(rid); in regulator_notifier_isr_work() 107 stat = &rid->states[i]; in regulator_notifier_isr_work() 132 stat = &rid->states[i]; in regulator_notifier_isr_work() 166 rid = &h->rdata; in regulator_notifier_isr() 167 num_rdevs = rid->num_states; in regulator_notifier_isr() 240 stat = &rid->states[i]; in regulator_notifier_isr() [all …]
|
A D | max8997-regulator.c | 154 if (rid < 0 || rid >= ARRAY_SIZE(reg_voltage_map)) in max8997_list_voltage() 173 switch (rid) { in max8997_get_enable_register() 293 switch (rid) { in max8997_get_voltage_register() 457 switch (rid) { in max8997_set_voltage_ldobuck() 503 switch (rid) { in max8997_set_voltage_buck_time_sel() 518 switch (rid) { in max8997_set_voltage_buck_time_sel() 553 rid = 0; in max8997_assess_side_effect() 556 rid = 1; in max8997_assess_side_effect() 559 rid = 2; in max8997_assess_side_effect() 624 if (rid < MAX8997_BUCK1 || rid > MAX8997_BUCK7) in max8997_set_voltage_buck() [all …]
|
A D | tps6507x-regulator.c | 208 int data, rid = rdev_get_id(dev); in tps6507x_pmic_is_enabled() local 211 if (rid < TPS6507X_DCDC_1 || rid > TPS6507X_LDO_2) in tps6507x_pmic_is_enabled() 214 shift = TPS6507X_MAX_REG_ID - rid; in tps6507x_pmic_is_enabled() 226 int rid = rdev_get_id(dev); in tps6507x_pmic_enable() local 229 if (rid < TPS6507X_DCDC_1 || rid > TPS6507X_LDO_2) in tps6507x_pmic_enable() 239 int rid = rdev_get_id(dev); in tps6507x_pmic_disable() local 242 if (rid < TPS6507X_DCDC_1 || rid > TPS6507X_LDO_2) in tps6507x_pmic_disable() 253 int data, rid = rdev_get_id(dev); in tps6507x_pmic_get_voltage_sel() local 256 switch (rid) { in tps6507x_pmic_get_voltage_sel() 299 int data, rid = rdev_get_id(dev); in tps6507x_pmic_set_voltage_sel() local [all …]
|
A D | tps65218-regulator.c | 71 unsigned int rid = rdev_get_id(dev); in tps65218_pmic_set_voltage_sel() local 78 switch (rid) { in tps65218_pmic_set_voltage_sel() 94 int rid = rdev_get_id(dev); in tps65218_pmic_enable() local 96 if (rid < TPS65218_DCDC_1 || rid > TPS65218_LDO_1) in tps65218_pmic_enable() 108 int rid = rdev_get_id(dev); in tps65218_pmic_disable() local 110 if (rid < TPS65218_DCDC_1 || rid > TPS65218_LDO_1) in tps65218_pmic_disable() 123 if (rid > TPS65218_LDO_1) in tps65218_pmic_set_suspend_enable() 136 if (rid > TPS65218_LDO_1) in tps65218_pmic_set_suspend_disable() 147 if (!tps->strobes[rid]) { in tps65218_pmic_set_suspend_disable() 148 if (rid == TPS65218_DCDC_3) in tps65218_pmic_set_suspend_disable() [all …]
|
A D | tps65217-regulator.c | 67 int rid = rdev_get_id(dev); in tps65217_pmic_enable() local 69 if (rid < TPS65217_DCDC_1 || rid > TPS65217_LDO_4) in tps65217_pmic_enable() 81 int rid = rdev_get_id(dev); in tps65217_pmic_disable() local 83 if (rid < TPS65217_DCDC_1 || rid > TPS65217_LDO_4) in tps65217_pmic_disable() 96 unsigned int rid = rdev_get_id(dev); in tps65217_pmic_set_voltage_sel() local 103 switch (rid) { in tps65217_pmic_set_voltage_sel() 117 unsigned int rid = rdev_get_id(dev); in tps65217_pmic_set_suspend_enable() local 119 if (rid > TPS65217_LDO_4) in tps65217_pmic_set_suspend_enable() 130 unsigned int rid = rdev_get_id(dev); in tps65217_pmic_set_suspend_disable() local 132 if (rid > TPS65217_LDO_4) in tps65217_pmic_set_suspend_disable() [all …]
|
A D | rt5190a-regulator.c | 29 #define RT5190A_RID_BITMASK(rid) BIT(rid + 1) argument 62 int rid = rdev_get_id(rdev); in rt5190a_get_error_flags() local 70 if (!(pgood_stat & RT5190A_RID_BITMASK(rid))) in rt5190a_get_error_flags() 82 int rid = rdev_get_id(rdev); in rt5190a_fixed_buck_set_mode() local 102 int rid = rdev_get_id(rdev); in rt5190a_fixed_buck_get_mode() local 112 if (val & RT5190A_RID_BITMASK(rid)) in rt5190a_fixed_buck_get_mode() 230 switch (rid) { in rt5190a_of_parse_cb() 265 desc->name = regu_name[rid]; in rt5190a_fillin_regulator_desc() 266 desc->supply_name = supply[rid]; in rt5190a_fillin_regulator_desc() 269 desc->id = rid; in rt5190a_fillin_regulator_desc() [all …]
|
A D | bd9576-regulator.c | 739 struct bd957x_data *d = (struct bd957x_data *)rid->data; in bd9576_renable() 745 if (rid->opaque && rid->opaque == (val & mask)) { in bd9576_renable() 754 rid->opaque = 0; in bd9576_renable() 774 return bd9576_renable(rid, BD957X_REG_INT_THERM_STAT, in bd9576_temp_renable() 782 struct bd957x_data *d = (struct bd957x_data *)rid->data; in bd9576_uvd_handler() 790 rid->opaque = val & UVD_IRQ_VALID_MASK; in bd9576_uvd_handler() 810 stat = &rid->states[i]; in bd9576_uvd_handler() 826 struct bd957x_data *d = (struct bd957x_data *)rid->data; in bd9576_ovd_handler() 832 rid->opaque = val & OVD_IRQ_VALID_MASK; in bd9576_ovd_handler() 847 stat = &rid->states[i]; in bd9576_ovd_handler() [all …]
|
A D | rtq6752-regulator.c | 54 int rid = rdev_get_id(rdev), ret; in rtq6752_set_vdd_enable() local 73 priv->enable_flag |= BIT(rid); in rtq6752_set_vdd_enable() 82 int rid = rdev_get_id(rdev), ret; in rtq6752_set_vdd_disable() local 89 priv->enable_flag &= ~BIT(rid); in rtq6752_set_vdd_disable() 110 int rid = rdev_get_id(rdev), ret; in rtq6752_get_error_flags() local 116 if (val & fault_mask[rid]) in rtq6752_get_error_flags()
|
A D | rt4831-regulator.c | 51 int rid = rdev_get_id(rdev); in rt4831_get_error_flags() local 62 if (rid == DSV_OUT_VLCM && (val & RT4831_LCMOVP_MASK)) in rt4831_get_error_flags() 65 if (rid == DSV_OUT_VPOS && (val & RT4831_VPOSSCP_MASK)) in rt4831_get_error_flags() 68 if (rid == DSV_OUT_VNEG && (val & RT4831_VNEGSCP_MASK)) in rt4831_get_error_flags()
|
A D | rn5t618-regulator.c | 25 #define REG(rid, ereg, emask, vreg, vmask, min, max, step) \ argument 27 .name = #rid, \ 28 .of_match = of_match_ptr(#rid), \ 30 .id = RN5T618_##rid, \
|
A D | max597x-regulator.c | 273 static int max597x_irq_handler(int irq, struct regulator_irq_data *rid, in max597x_irq_handler() argument 277 struct max597x_regulator *d = (struct max597x_regulator *)rid->data; in max597x_irq_handler() 286 stat = &rid->states[i]; in max597x_irq_handler() 292 stat = &rid->states[i]; in max597x_irq_handler() 310 stat = &rid->states[i]; in max597x_irq_handler() 328 stat = &rid->states[i]; in max597x_irq_handler() 342 stat = &rid->states[i]; in max597x_irq_handler()
|
A D | mt6370-regulator.c | 77 int rid = rdev_get_id(rdev), ret; in mt6370_get_error_flags() local 79 if (rid == MT6370_IDX_VIBLDO) in mt6370_get_error_flags() 88 switch (rid) { in mt6370_get_error_flags() 292 int rid; in mt6370_regulator_irq_register() member 308 rdev = priv->rdev[mt6370_irqs[i].rid]; in mt6370_regulator_irq_register()
|
/linux-6.3-rc2/drivers/net/wireless/intersil/orinoco/ |
A D | hermes.h | 389 int (*read_ltv_pr)(struct hermes *hw, int bap, u16 rid, 391 int (*write_ltv)(struct hermes *hw, int bap, u16 rid, 461 static inline int hermes_inquire(struct hermes *hw, u16 rid) in hermes_inquire() argument 463 return hw->ops->cmd_wait(hw, HERMES_CMD_INQUIRE, rid, NULL); in hermes_inquire() 497 #define HERMES_READ_RECORD(hw, bap, rid, buf) \ argument 499 #define HERMES_READ_RECORD_PR(hw, bap, rid, buf) \ argument 501 #define HERMES_WRITE_RECORD(hw, bap, rid, buf) \ argument 502 (hw->ops->write_ltv((hw), (bap), (rid), \ 511 err = HERMES_READ_RECORD(hw, bap, rid, &rec); in hermes_read_wordrec() 522 err = HERMES_READ_RECORD_PR(hw, bap, rid, &rec); in hermes_read_wordrec_pr() [all …]
|
A D | hermes.c | 481 static int hermes_read_ltv(struct hermes *hw, int bap, u16 rid, in hermes_read_ltv() argument 492 err = hermes_docmd_wait(hw, HERMES_CMD_ACCESS, rid, NULL); in hermes_read_ltv() 496 err = hermes_bap_seek(hw, bap, rid, 0); in hermes_read_ltv() 510 if (rtype != rid) in hermes_read_ltv() 513 hw->iobase, __func__, rid, rtype); in hermes_read_ltv() 518 HERMES_RECLEN_TO_BYTES(rlength), bufsize, rid, rlength); in hermes_read_ltv() 526 static int hermes_write_ltv(struct hermes *hw, int bap, u16 rid, in hermes_write_ltv() argument 536 err = hermes_bap_seek(hw, bap, rid, 0); in hermes_write_ltv() 541 hermes_write_reg(hw, dreg, rid); in hermes_write_ltv() 548 rid, NULL); in hermes_write_ltv()
|
/linux-6.3-rc2/drivers/pci/msi/ |
A D | irqdomain.c | 454 u32 rid = pci_dev_id(pdev); in pci_msi_domain_get_msi_rid() local 456 pci_for_each_dma_alias(pdev, get_msi_id_cb, &rid); in pci_msi_domain_get_msi_rid() 459 rid = of_node ? of_msi_map_id(&pdev->dev, of_node, rid) : in pci_msi_domain_get_msi_rid() 460 iort_msi_map_id(&pdev->dev, rid); in pci_msi_domain_get_msi_rid() 462 return rid; in pci_msi_domain_get_msi_rid() 477 u32 rid = pci_dev_id(pdev); in pci_msi_get_device_domain() local 479 pci_for_each_dma_alias(pdev, get_msi_id_cb, &rid); in pci_msi_get_device_domain() 480 dom = of_msi_map_get_device_domain(&pdev->dev, rid, DOMAIN_BUS_PCI_MSI); in pci_msi_get_device_domain() 482 dom = iort_get_device_domain(&pdev->dev, rid, in pci_msi_get_device_domain()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu.h | 697 ((rid == 0xE3) || \ 698 (rid == 0xE4) || \ 699 (rid == 0xE5) || \ 700 (rid == 0xE7) || \ 703 ((rid == 0xE7) || \ 705 (rid == 0xFF)))) 708 ((rid == 0xE1) || \ 709 (rid == 0xF7))) 718 (rid == 0xFF)))) 721 ((rid == 0xE2))) [all …]
|
/linux-6.3-rc2/arch/x86/hyperv/ |
A D | irqdomain.c | 97 u32 rid; member 103 u8 bus = PCI_BUS_NUM(rd->rid); in get_rid_cb() 107 rd->rid = alias; in get_rid_cb() 118 .rid = PCI_DEVID(dev->bus->number, dev->devfn) in hv_build_pci_dev_id() 127 dev_id.pci.bdf.bus = PCI_BUS_NUM(data.rid); in hv_build_pci_dev_id() 128 dev_id.pci.bdf.device = PCI_SLOT(data.rid); in hv_build_pci_dev_id() 129 dev_id.pci.bdf.function = PCI_FUNC(data.rid); in hv_build_pci_dev_id()
|
/linux-6.3-rc2/arch/x86/kernel/cpu/resctrl/ |
A D | core.c | 66 .rid = RDT_RESOURCE_L3, 80 .rid = RDT_RESOURCE_L2, 94 .rid = RDT_RESOURCE_MBA, 106 .rid = RDT_RESOURCE_SMBA, 169 if (r->rid != RDT_RESOURCE_MBA) in is_mba_sc() 873 if (r->rid == RDT_RESOURCE_L3 || in rdt_init_res_defs_intel() 874 r->rid == RDT_RESOURCE_L2) { in rdt_init_res_defs_intel() 878 } else if (r->rid == RDT_RESOURCE_MBA) { in rdt_init_res_defs_intel() 893 if (r->rid == RDT_RESOURCE_L3 || in rdt_init_res_defs_amd() 894 r->rid == RDT_RESOURCE_L2) { in rdt_init_res_defs_amd() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/intel/ice/ |
A D | ice_switch.c | 1994 params->rid, status); in ice_update_recipe_lkup_idx() 2287 recps[rid].n_grp_count * sizeof(*recps[rid].root_buf), in ice_get_recp_frm_fw() 5073 u16 rid, i; in ice_add_sw_recipe() local 5083 buf[recps].content.rid = (u8)rid; in ice_add_sw_recipe() 5095 last_chain_entry->rid = rid; in ice_add_sw_recipe() 5496 *rid = rm->root_rid; in ice_add_adv_recipe() 6125 added_entry->rid = rid; in ice_add_adv_rule() 6246 added_entry->rid = rid; in ice_add_adv_rule() 6439 u16 i, rid, vsi_handle; in ice_rem_adv_rule() local 6572 u8 rid; in ice_rem_adv_rule_for_vsi() local [all …]
|
A D | ice_vlan_mode.c | 207 .rid = ICE_SW_LKUP_VLAN, 219 .rid = ICE_SW_LKUP_VLAN, 230 .rid = ICE_SW_LKUP_PROMISC_VLAN, 256 params->rid, params->lkup_idx, params->fv_idx, in ice_dvm_update_dflt_recipes()
|
/linux-6.3-rc2/drivers/staging/wlan-ng/ |
A D | hfa384x.h | 803 __le16 rid; member 810 __le16 rid; member 854 __le16 rid; member 960 u16 rid; member 1198 int hfa384x_drvr_getconfig(struct hfa384x *hw, u16 rid, void *buf, u16 len); 1206 hfa384x_drvr_getconfig16(struct hfa384x *hw, u16 rid, void *val) in hfa384x_drvr_getconfig16() argument 1210 result = hfa384x_drvr_getconfig(hw, rid, val, sizeof(u16)); in hfa384x_drvr_getconfig16() 1220 return hfa384x_drvr_setconfig(hw, rid, &value, sizeof(value)); in hfa384x_drvr_setconfig16() 1225 u16 rid, 1230 hfa384x_drvr_setconfig16_async(struct hfa384x *hw, u16 rid, u16 val) in hfa384x_drvr_setconfig16_async() argument [all …]
|
/linux-6.3-rc2/arch/ia64/include/asm/ |
A D | mmu_context.h | 125 unsigned long rid; in reload_context() local 133 rid = context << 3; /* make space for encoding the region number */ in reload_context() 137 rr0 = (rid << 8) | (PAGE_SHIFT << 2) | 1; in reload_context()
|
/linux-6.3-rc2/Documentation/devicetree/bindings/pci/ |
A D | pci-msi.txt | 34 (rid-base,msi-controller,msi-base,length), where: 36 * rid-base is a single cell describing the first RID matched by the entry. 44 following the rid-base. 46 Any RID r in the interval [rid-base, rid-base + length) is associated with 47 the listed msi-controller, with the msi-specifier (r - rid-base + msi-base).
|
A D | pci-iommu.txt | 39 (rid-base,iommu,iommu-base,length). 41 Any RID r in the interval [rid-base, rid-base + length) is associated with 42 the listed IOMMU, with the IOMMU specifier (r - rid-base + iommu-base).
|