Home
last modified time | relevance | path

Searched refs:rid (Results 1 – 25 of 78) sorted by relevance

1234

/drivers/regulator/
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 …]
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 …]
Dirq_helpers.c53 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()
160 struct regulator_irq_data *rid; in regulator_notifier_isr() local
166 rid = &h->rdata; in regulator_notifier_isr()
167 num_rdevs = rid->num_states; in regulator_notifier_isr()
[all …]
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 …]
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 …]
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 …]
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 …]
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 …]
Drtq6752-regulator.c54 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()
Dmax597x-regulator.c273 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()
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()
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, \
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()
Dbd71815-regulator.c297 int rid = rdev_get_id(rdev); in bd7181x_buck12_get_voltage_sel() local
300 regh = BD71815_REG_BUCK1_VOLT_H + rid * 0x2; in bd7181x_buck12_get_voltage_sel()
301 regl = BD71815_REG_BUCK1_VOLT_L + rid * 0x2; in bd7181x_buck12_get_voltage_sel()
329 int rid = rdev_get_id(rdev); in bd7181x_buck12_set_voltage_sel() local
332 regh = BD71815_REG_BUCK1_VOLT_H + rid*0x2; in bd7181x_buck12_set_voltage_sel()
333 regl = BD71815_REG_BUCK1_VOLT_L + rid*0x2; in bd7181x_buck12_set_voltage_sel()
Drtq2134-regulator.c168 int rid = rdev_get_id(rdev); in rtq2134_buck_get_error_flags() local
179 ret = regmap_read(rdev->regmap, RTQ2134_REG_FLT_RECORDBUCK(rid), in rtq2134_buck_get_error_flags()
240 int rid = desc->id; in rtq2134_buck_of_parse_cb() local
262 return regmap_update_bits(cfg->regmap, RTQ2134_REG_FLT_BUCKCTRL(rid), in rtq2134_buck_of_parse_cb()
/drivers/net/wireless/intersil/orinoco/
Dhermes.h387 int (*read_ltv)(struct hermes *hw, int bap, u16 rid, unsigned buflen,
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
498 (hw->ops->read_ltv((hw), (bap), (rid), sizeof(*buf), NULL, (buf)))
499 #define HERMES_READ_RECORD_PR(hw, bap, rid, buf) \ argument
500 (hw->ops->read_ltv_pr((hw), (bap), (rid), sizeof(*buf), NULL, (buf)))
501 #define HERMES_WRITE_RECORD(hw, bap, rid, buf) \ argument
[all …]
Dhermes.c480 static int hermes_read_ltv(struct hermes *hw, int bap, u16 rid, in hermes_read_ltv() argument
491 err = hermes_docmd_wait(hw, HERMES_CMD_ACCESS, rid, NULL); in hermes_read_ltv()
495 err = hermes_bap_seek(hw, bap, rid, 0); in hermes_read_ltv()
509 if (rtype != rid) in hermes_read_ltv()
512 hw->iobase, __func__, rid, rtype); in hermes_read_ltv()
517 HERMES_RECLEN_TO_BYTES(rlength), bufsize, rid, rlength); in hermes_read_ltv()
525 static int hermes_write_ltv(struct hermes *hw, int bap, u16 rid, in hermes_write_ltv() argument
535 err = hermes_bap_seek(hw, bap, rid, 0); in hermes_write_ltv()
540 hermes_write_reg(hw, dreg, rid); in hermes_write_ltv()
547 rid, NULL); in hermes_write_ltv()
Dorinoco_usb.c737 static int ezusb_fill_req(struct ezusb_packet *req, u16 length, u16 rid, in ezusb_fill_req() argument
751 req->hermes_rid = cpu_to_le16(rid); in ezusb_fill_req()
971 static int __ezusb_write_ltv(struct hermes *hw, int bap, u16 rid, in __ezusb_write_ltv() argument
989 ctx = ezusb_alloc_ctx(upriv, rid, EZUSB_RID_ACK); in __ezusb_write_ltv()
993 if (rid == EZUSB_RID_TX) in __ezusb_write_ltv()
1002 static int ezusb_write_ltv(struct hermes *hw, int bap, u16 rid, in ezusb_write_ltv() argument
1005 return __ezusb_write_ltv(hw, bap, rid, length, data, in ezusb_write_ltv()
1009 static int __ezusb_read_ltv(struct hermes *hw, int bap, u16 rid, in __ezusb_read_ltv() argument
1020 ctx = ezusb_alloc_ctx(upriv, rid, rid); in __ezusb_read_ltv()
1028 static int ezusb_read_ltv(struct hermes *hw, int bap, u16 rid, in ezusb_read_ltv() argument
[all …]
/drivers/pci/msi/
Dirqdomain.c228 u32 rid = pci_dev_id(pdev); in pci_msi_domain_get_msi_rid() local
230 pci_for_each_dma_alias(pdev, get_msi_id_cb, &rid); in pci_msi_domain_get_msi_rid()
233 rid = of_node ? of_msi_map_id(&pdev->dev, of_node, rid) : in pci_msi_domain_get_msi_rid()
234 iort_msi_map_id(&pdev->dev, rid); in pci_msi_domain_get_msi_rid()
236 return rid; in pci_msi_domain_get_msi_rid()
251 u32 rid = pci_dev_id(pdev); in pci_msi_get_device_domain() local
253 pci_for_each_dma_alias(pdev, get_msi_id_cb, &rid); in pci_msi_get_device_domain()
254 dom = of_msi_map_get_device_domain(&pdev->dev, rid, DOMAIN_BUS_PCI_MSI); in pci_msi_get_device_domain()
256 dom = iort_get_device_domain(&pdev->dev, rid, in pci_msi_get_device_domain()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu.h699 #define ASICID_IS_P20(did, rid) (((did == 0x67DF) && \ argument
700 ((rid == 0xE3) || \
701 (rid == 0xE4) || \
702 (rid == 0xE5) || \
703 (rid == 0xE7) || \
704 (rid == 0xEF))) || \
706 ((rid == 0xE7) || \
707 (rid == 0xEF) || \
708 (rid == 0xFF))))
710 #define ASICID_IS_P30(did, rid) ((did == 0x67DF) && \ argument
[all …]
/drivers/net/ethernet/intel/ice/
Dice_switch.c2008 rcp_list->recipe_indx = params->rid; in ice_update_recipe_lkup_idx()
2009 status = ice_aq_get_recipe(hw, rcp_list, &num_recps, params->rid, NULL); in ice_update_recipe_lkup_idx()
2012 params->rid, status); in ice_update_recipe_lkup_idx()
2031 params->rid, params->lkup_idx, params->fv_idx, in ice_update_recipe_lkup_idx()
2098 static int ice_alloc_recipe(struct ice_hw *hw, u16 *rid) in ice_alloc_recipe() argument
2116 *rid = le16_to_cpu(sw_buf->elem[0].e.sw_resp); in ice_alloc_recipe()
2175 ice_get_recp_frm_fw(struct ice_hw *hw, struct ice_sw_recipe *recps, u8 rid, in ice_get_recp_frm_fw() argument
2193 tmp[0].recipe_indx = rid; in ice_get_recp_frm_fw()
2194 status = ice_aq_get_recipe(hw, tmp, &num_recps, rid, NULL); in ice_get_recp_frm_fw()
2216 lkup_exts = &recps[rid].lkup_exts; in ice_get_recp_frm_fw()
[all …]
Dice_vlan_mode.c207 .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()
/drivers/staging/wlan-ng/
Dhfa384x.h803 __le16 rid; member
810 __le16 rid; member
854 __le16 rid; member
1131 u16 rid; member
1369 int hfa384x_drvr_getconfig(struct hfa384x *hw, u16 rid, void *buf, u16 len);
1374 int hfa384x_drvr_setconfig(struct hfa384x *hw, u16 rid, void *buf, u16 len);
1377 hfa384x_drvr_getconfig16(struct hfa384x *hw, u16 rid, void *val) in hfa384x_drvr_getconfig16() argument
1381 result = hfa384x_drvr_getconfig(hw, rid, val, sizeof(u16)); in hfa384x_drvr_getconfig16()
1387 static inline int hfa384x_drvr_setconfig16(struct hfa384x *hw, u16 rid, u16 val) in hfa384x_drvr_setconfig16() argument
1391 return hfa384x_drvr_setconfig(hw, rid, &value, sizeof(value)); in hfa384x_drvr_setconfig16()
[all …]
Dhfa384x_usb.c236 u16 rid,
244 u16 rid,
634 result->rid = le16_to_cpu(rridresp->rid); in usbctlx_get_rridresult()
696 rridresult.rid, in usbctlx_rrid_completor_fn()
1284 u16 rid, in hfa384x_dorrid() argument
1301 cpu_to_le16(sizeof(ctlx->outbuf.rridreq.rid)); in hfa384x_dorrid()
1302 ctlx->outbuf.rridreq.rid = cpu_to_le16(rid); in hfa384x_dorrid()
1366 u16 rid, in hfa384x_dowrid() argument
1383 (ctlx->outbuf.wridreq.rid) + in hfa384x_dowrid()
1385 ctlx->outbuf.wridreq.rid = cpu_to_le16(rid); in hfa384x_dowrid()
[all …]
/drivers/scsi/qla2xxx/
Dqla_mid.c708 uint8_t vp_idx, uint16_t rid, int rsp_que, uint8_t qos, bool startqp) in qla25xx_create_req_que() argument
749 req->rid = rid; in qla25xx_create_req_que()
755 que_id, req->rid, req->vp_idx, req->qos); in qla25xx_create_req_que()
758 que_id, req->rid, req->vp_idx, req->qos); in qla25xx_create_req_que()
764 if (MSB(req->rid)) in qla25xx_create_req_que()
767 if (LSB(req->rid)) in qla25xx_create_req_que()
836 uint8_t vp_idx, uint16_t rid, struct qla_qpair *qpair, bool startqp) in qla25xx_create_rsp_que() argument
875 rsp->rid = rid; in qla25xx_create_rsp_que()
880 que_id, rsp->rid, rsp->vp_idx, rsp->hw); in qla25xx_create_rsp_que()
882 if (MSB(rsp->rid)) in qla25xx_create_rsp_que()
[all …]

1234