Home
last modified time | relevance | path

Searched full:rid (Results 1 – 25 of 368) sorted by relevance

12345678910>>...15

/linux/drivers/regulator/
H A Drt5120-regulator.c23 #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
62 unsigned int mask = RT5120_FPWM_MASK(rid), val; in rt5120_buck_set_mode()
69 val = RT5120_FPWM_MASK(rid); in rt5120_buck_set_mode()
81 int ret, rid = rdev_get_id(rdev); in rt5120_buck_get_mode() local
[all …]
H A Dmax8997-regulator.c128 int rid = rdev_get_id(rdev); in max8997_list_voltage_charger_cv() local
130 if (rid != MAX8997_CHARGER_CV) in max8997_list_voltage_charger_cv()
151 int rid = rdev_get_id(rdev); in max8997_list_voltage() local
154 if (rid < 0 || rid >= ARRAY_SIZE(reg_voltage_map)) in max8997_list_voltage()
157 desc = reg_voltage_map[rid]; in max8997_list_voltage()
171 int rid = rdev_get_id(rdev); in max8997_get_enable_register() local
173 switch (rid) { in max8997_get_enable_register()
175 *reg = MAX8997_REG_LDO1CTRL + (rid - MAX8997_LDO1); in max8997_get_enable_register()
216 *mask = 0x01 << (rid - MAX8997_EN32KHZ_AP); in max8997_get_enable_register()
217 *pattern = 0x01 << (rid - MAX8997_EN32KHZ_AP); in max8997_get_enable_register()
[all …]
H A Dtps6507x-regulator.c208 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()
232 shift = TPS6507X_MAX_REG_ID - rid; 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()
245 shift = TPS6507X_MAX_REG_ID - rid; in tps6507x_pmic_disable()
253 int data, rid = rdev_get_id(dev); in tps6507x_pmic_get_voltage_sel() local
[all …]
H A Drt5190a-regulator.c29 #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
83 unsigned int mask = RT5190A_RID_BITMASK(rid), val; in rt5190a_fixed_buck_set_mode()
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()
218 static int rt5190a_of_parse_cb(struct rt5190a_priv *priv, int rid, in rt5190a_of_parse_cb() argument
221 struct regulator_desc *desc = priv->rdesc + rid; in rt5190a_of_parse_cb()
225 unsigned int mask = RT5190A_RID_BITMASK(rid), val; in rt5190a_of_parse_cb()
[all …]
H A Dtps65218-regulator.c71 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()
121 unsigned int rid = rdev_get_id(dev); in tps65218_pmic_set_suspend_enable() local
123 if (rid > TPS65218_LDO_1) in tps65218_pmic_set_suspend_enable()
134 unsigned int rid = rdev_get_id(dev); in tps65218_pmic_set_suspend_disable() local
136 if (rid > TPS65218_LDO_1) in tps65218_pmic_set_suspend_disable()
[all …]
H A Dtps65217-regulator.c67 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 …]
H A Dbd9576-regulator.c736 static int bd9576_renable(struct regulator_irq_data *rid, int reg, int mask) in bd9576_renable() argument
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()
762 static int bd9576_uvd_renable(struct regulator_irq_data *rid) in bd9576_uvd_renable() argument
764 return bd9576_renable(rid, BD957X_REG_INT_UVD_STAT, UVD_IRQ_VALID_MASK); in bd9576_uvd_renable()
767 static int bd9576_ovd_renable(struct regulator_irq_data *rid) in bd9576_ovd_renable() argument
769 return bd9576_renable(rid, BD957X_REG_INT_OVD_STAT, OVD_IRQ_VALID_MASK); in bd9576_ovd_renable()
772 static int bd9576_temp_renable(struct regulator_irq_data *rid) in bd9576_temp_renable() argument
774 return bd9576_renable(rid, BD957X_REG_INT_THERM_STAT, in bd9576_temp_renable()
[all …]
H A Drt4831-regulator.c51 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()
H A Dmt6370-regulator.c77 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()
H A Drn5t618-regulator.c25 #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, \
H A Dmax5970-regulator.c400 static int max597x_irq_handler(int irq, struct regulator_irq_data *rid, in max597x_irq_handler() argument
404 struct max5970_regulator *d = (struct max5970_regulator *)rid->data; in max597x_irq_handler()
413 stat = &rid->states[i]; in max597x_irq_handler()
419 stat = &rid->states[i]; in max597x_irq_handler()
437 stat = &rid->states[i]; in max597x_irq_handler()
455 stat = &rid->states[i]; in max597x_irq_handler()
469 stat = &rid->states[i]; in max597x_irq_handler()
/linux/drivers/gpu/drm/xe/abi/
H A Dguc_relay_communication_abi.h23 * relay message identifier (RID) as additional parameter.
33 * and the relay message identifier (RID) also takes the target VF identifier.
42 * [ ] { rid, msg } [ ] |
45 * [ ] | { VFID, rid, msg } [ ]
49 * [ ] [ ] { VFID, rid, reply } |
52 * | { rid, reply } | |
62 * | [ ] { VFID, rid, msg } [ ]
65 * [ ] { rid, msg } | [ ]
69 * | { rid, reply } [ ] [ ]
72 * | | { VFID, rid, reply } |
/linux/drivers/accel/amdxdna/
H A Daie2_solver.c25 u64 rid; /* Request ID from consumer */ member
145 static struct solver_node *rg_search_node(struct solver_rgroup *rgp, u64 rid) in rg_search_node() argument
150 if (node->rid == rid) in rg_search_node()
273 node->rid = req->rid; in create_solver_node()
294 action->rid = snode->rid; in fill_load_action()
315 if (rg_search_node(&xrs->rgp, req->rid)) { in xrs_allocate_resource()
316 drm_err(xrs->cfg.ddev, "rid %lld is in-use", req->rid); in xrs_allocate_resource()
347 int xrs_release_resource(void *hdl, u64 rid) in xrs_release_resource() argument
352 node = rg_search_node(&xrs->rgp, rid); in xrs_release_resource()
H A Daie2_solver.h54 u64 rid; member
63 u32 rid; member
152 * @rid: The Request ID to identify the requesting context
154 int xrs_release_resource(void *hdl, u64 rid);
/linux/drivers/net/ethernet/sfc/
H A Dtc.c694 struct efx_tc_recirc_id *rid, *old; in efx_tc_get_recirc_id() local
697 rid = kzalloc(sizeof(*rid), GFP_USER); in efx_tc_get_recirc_id()
698 if (!rid) in efx_tc_get_recirc_id()
700 rid->chain_index = chain_index; in efx_tc_get_recirc_id()
705 rid->net_dev = net_dev; in efx_tc_get_recirc_id()
707 &rid->linkage, in efx_tc_get_recirc_id()
711 kfree(rid); in efx_tc_get_recirc_id()
717 rid = old; in efx_tc_get_recirc_id()
722 &rid->linkage, in efx_tc_get_recirc_id()
724 kfree(rid); in efx_tc_get_recirc_id()
[all …]
/linux/arch/x86/hyperv/
H A Dirqdomain.c102 u32 rid; member
108 u8 bus = PCI_BUS_NUM(rd->rid); in get_rid_cb()
112 rd->rid = alias; in get_rid_cb()
123 .rid = PCI_DEVID(dev->bus->number, dev->devfn) in hv_build_pci_dev_id()
132 dev_id.pci.bdf.bus = PCI_BUS_NUM(data.rid); in hv_build_pci_dev_id()
133 dev_id.pci.bdf.device = PCI_SLOT(data.rid); in hv_build_pci_dev_id()
134 dev_id.pci.bdf.function = PCI_FUNC(data.rid); in hv_build_pci_dev_id()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_switch.c2077 rcp_list->recipe_indx = params->rid; in ice_update_recipe_lkup_idx()
2078 status = ice_aq_get_recipe(hw, rcp_list, &num_recps, params->rid, NULL); in ice_update_recipe_lkup_idx()
2081 params->rid, status); in ice_update_recipe_lkup_idx()
2100 params->rid, params->lkup_idx, params->fv_idx, in ice_update_recipe_lkup_idx()
2177 * @rid: recipe ID returned as response to AQ call
2179 int ice_alloc_recipe(struct ice_hw *hw, u16 *rid) in ice_alloc_recipe() argument
2196 *rid = le16_to_cpu(sw_buf->elem[0].e.sw_resp); in ice_alloc_recipe()
2206 * @rid: recipe ID to free
2210 static int ice_free_recipe_res(struct ice_hw *hw, u16 rid) in ice_free_recipe_res() argument
2214 status = ice_free_hw_res(hw, ICE_AQC_RES_TYPE_RECIPE, 1, &rid); in ice_free_recipe_res()
[all …]
H A Dice_vlan_mode.c207 .rid = ICE_SW_LKUP_VLAN,
219 .rid = ICE_SW_LKUP_VLAN,
230 .rid = ICE_SW_LKUP_PROMISC_VLAN,
255 …ice_debug(hw, ICE_DBG_INIT, "Failed to update RID %d lkup_idx %d fv_idx %d mask_valid %s mask 0x%0… in ice_dvm_update_dflt_recipes()
256 params->rid, params->lkup_idx, params->fv_idx, in ice_dvm_update_dflt_recipes()
/linux/drivers/scsi/qla2xxx/
H A Dqla_mid.c700 uint8_t vp_idx, uint16_t rid, int rsp_que, uint8_t qos, bool startqp) in qla25xx_create_req_que() argument
741 req->rid = rid; in qla25xx_create_req_que()
746 "queue_id=%d rid=%d vp_idx=%d qos=%d.\n", in qla25xx_create_req_que()
747 que_id, req->rid, req->vp_idx, req->qos); in qla25xx_create_req_que()
749 "queue_id=%d rid=%d vp_idx=%d qos=%d.\n", in qla25xx_create_req_que()
750 que_id, req->rid, req->vp_idx, req->qos); in qla25xx_create_req_que()
756 if (MSB(req->rid)) in qla25xx_create_req_que()
759 if (LSB(req->rid)) in qla25xx_create_req_que()
828 uint8_t vp_idx, uint16_t rid, struct qla_qpair *qpair, bool startqp) in qla25xx_create_rsp_que() argument
867 rsp->rid = rid; in qla25xx_create_rsp_que()
[all …]
/linux/arch/mips/include/asm/mach-loongson64/
H A Dloongson_regs.h252 int rID = 0; in drdtime() local
257 "parse_r rID,%0\n\t" in drdtime()
261 ".word (0xc8090118 | (rID << 21) | (val << 11))\n\t" in drdtime()
262 :"=r"(rID),"=r"(val) in drdtime()
/linux/drivers/pci/controller/dwc/
H A Dpci-imx6.c1014 static int imx_pcie_add_lut(struct imx_pcie *imx_pcie, u16 rid, u8 sid) in imx_pcie_add_lut() argument
1030 * Iterate through all LUT entries to check for duplicate RID and in imx_pcie_add_lut()
1047 /* Do not add duplicate RID */ in imx_pcie_add_lut()
1048 if (rid == FIELD_GET(IMX95_PE0_LUT_REQID, data2)) { in imx_pcie_add_lut()
1049 dev_warn(dev, "Existing LUT entry available for RID (%d)", rid); in imx_pcie_add_lut()
1067 data2 = IMX95_PE0_LUT_MASK; /* Match all bits of RID */ in imx_pcie_add_lut()
1068 data2 |= FIELD_PREP(IMX95_PE0_LUT_REQID, rid); in imx_pcie_add_lut()
1076 static void imx_pcie_remove_lut(struct imx_pcie *imx_pcie, u16 rid) in imx_pcie_remove_lut() argument
1087 if (FIELD_GET(IMX95_PE0_LUT_REQID, data2) == rid) { in imx_pcie_remove_lut()
1100 static int imx_pcie_add_lut_by_rid(struct imx_pcie *imx_pcie, u32 rid) in imx_pcie_add_lut_by_rid() argument
[all …]
/linux/arch/powerpc/platforms/powernv/
H A Dpci-ioda.c73 (pe->rid & 0xff00) >> 8, in pe_level_printk()
74 PCI_SLOT(pe->rid), PCI_FUNC(pe->rid)); in pe_level_printk()
740 long rid_end, rid; in pnv_ioda_deconfigure_pe() local
767 rid_end = pe->rid + (count << 8); in pnv_ioda_deconfigure_pe()
778 rid_end = pe->rid + 1; in pnv_ioda_deconfigure_pe()
782 for (rid = pe->rid; rid < rid_end; rid++) in pnv_ioda_deconfigure_pe()
783 phb->ioda.pe_rmap[rid] = IODA_INVALID_PE; in pnv_ioda_deconfigure_pe()
792 rc = opal_pci_set_pe(phb->opal_id, pe->pe_number, pe->rid, in pnv_ioda_deconfigure_pe()
809 long rc, rid_end, rid; in pnv_ioda_configure_pe() local
835 rid_end = pe->rid + (count << 8); in pnv_ioda_configure_pe()
[all …]
/linux/Documentation/devicetree/bindings/pci/
H A Dpci-ep.yaml66 However, the EP cannot rely on Requester ID (RID) because the RID is
68 connected to different PCI hosts, the RID can vary between systems and is
/linux/arch/x86/kernel/cpu/resctrl/
H A Dcore.c226 subleaf = (r->rid == RDT_RESOURCE_SMBA) ? 2 : 1; in __rdt_get_mem_config_amd()
943 if (r->rid == RDT_RESOURCE_L3 || in rdt_init_res_defs_intel()
944 r->rid == RDT_RESOURCE_L2) { in rdt_init_res_defs_intel()
947 } else if (r->rid == RDT_RESOURCE_MBA) { in rdt_init_res_defs_intel()
962 if (r->rid == RDT_RESOURCE_L3 || in rdt_init_res_defs_amd()
963 r->rid == RDT_RESOURCE_L2) { in rdt_init_res_defs_amd()
967 } else if (r->rid == RDT_RESOURCE_MBA) { in rdt_init_res_defs_amd()
970 } else if (r->rid == RDT_RESOURCE_SMBA) { in rdt_init_res_defs_amd()
1023 /* for_each_rdt_resource() requires all rid to be initialised. */ in resctrl_arch_late_init()
1025 rdt_resources_all[i].r_resctrl.rid = i; in resctrl_arch_late_init()
/linux/drivers/pci/controller/
H A Dpcie-apple.c645 /* Reset all RID/SID mappings, and check for RAZ/WI registers */ in apple_pcie_setup_port()
652 dev_dbg(pcie->dev, "%pOF: %d RID/SID mapping entries\n", np, i); in apple_pcie_setup_port()
783 u32 sid, rid = pci_dev_id(pdev); in apple_pcie_enable_device() local
794 err = of_map_id(port->pcie->dev->of_node, rid, "iommu-map", in apple_pcie_enable_device()
805 (sid << PORT_RID2SID_SID_SHIFT) | rid); in apple_pcie_enable_device()
807 dev_dbg(&pdev->dev, "mapping RID%x to SID%x (index %d)\n", in apple_pcie_enable_device()
808 rid, sid, idx); in apple_pcie_enable_device()
819 u32 rid = pci_dev_id(pdev); in apple_pcie_disable_device() local
832 if ((val & 0xffff) == rid) { in apple_pcie_disable_device()

12345678910>>...15