Home
last modified time | relevance | path

Searched refs:lpm (Results 1 - 25 of 105) sorted by relevance

12345

/kernel/linux/linux-5.10/drivers/s390/cio/
H A Ddevice_pgid.c77 req->lpm = lpm_adjust(req->lpm, sch->schib.pmcw.pam & sch->opm & in nop_do()
79 if (!req->lpm) in nop_do()
111 sch->vpm |= req->lpm; in nop_callback()
114 cdev->private->path_noirq_mask |= req->lpm; in nop_callback()
117 cdev->private->path_notoper_mask |= req->lpm; in nop_callback()
123 req->lpm >>= 1; in nop_callback()
138 int i = pathmask_to_pos(req->lpm); in spid_build_cp()
182 req->lpm = sch->schib.pmcw.pam; in pgid_wipeout_start()
201 req->lpm in spid_do()
305 int lpm; pgid_analyze() local
337 int lpm; pgid_to_donepm() local
[all...]
H A Ddevice_ops.c166 * @lpm: defines the channel path to be used for a specific I/O request. A
186 * -%EACCES, if no path specified in @lpm is operational;
192 unsigned long intparm, __u8 lpm, __u8 key, in ccw_device_start_timeout_key()
224 if (lpm) { in ccw_device_start_timeout_key()
225 lpm &= sch->lpm; in ccw_device_start_timeout_key()
226 if (lpm == 0) in ccw_device_start_timeout_key()
229 ret = cio_start_key (sch, cpa, lpm, key); in ccw_device_start_timeout_key()
251 * @lpm: defines the channel path to be used for a specific I/O request. A
266 * -%EACCES, if no path specified in @lpm i
191 ccw_device_start_timeout_key(struct ccw_device *cdev, struct ccw1 *cpa, unsigned long intparm, __u8 lpm, __u8 key, unsigned long flags, int expires) ccw_device_start_timeout_key() argument
271 ccw_device_start_key(struct ccw_device *cdev, struct ccw1 *cpa, unsigned long intparm, __u8 lpm, __u8 key, unsigned long flags) ccw_device_start_key() argument
305 ccw_device_start(struct ccw_device *cdev, struct ccw1 *cpa, unsigned long intparm, __u8 lpm, unsigned long flags) ccw_device_start() argument
343 ccw_device_start_timeout(struct ccw_device *cdev, struct ccw1 *cpa, unsigned long intparm, __u8 lpm, unsigned long flags, int expires) ccw_device_start_timeout() argument
539 ccw_device_tm_start_timeout_key(struct ccw_device *cdev, struct tcw *tcw, unsigned long intparm, u8 lpm, u8 key, int expires) ccw_device_tm_start_timeout_key() argument
588 ccw_device_tm_start_key(struct ccw_device *cdev, struct tcw *tcw, unsigned long intparm, u8 lpm, u8 key) ccw_device_tm_start_key() argument
605 ccw_device_tm_start(struct ccw_device *cdev, struct tcw *tcw, unsigned long intparm, u8 lpm) ccw_device_tm_start() argument
624 ccw_device_tm_start_timeout(struct ccw_device *cdev, struct tcw *tcw, unsigned long intparm, u8 lpm, int expires) ccw_device_tm_start_timeout() argument
[all...]
H A Dcio.c99 cio_start_handle_notoper(struct subchannel *sch, __u8 lpm) in cio_start_handle_notoper() argument
103 if (lpm != 0) in cio_start_handle_notoper()
104 sch->lpm &= ~lpm; in cio_start_handle_notoper()
106 sch->lpm = 0; in cio_start_handle_notoper()
119 return (sch->lpm ? -EACCES : -ENODEV); in cio_start_handle_notoper()
125 __u8 lpm, /* logical path mask */ in cio_start_key()
143 orb->cmd.lpm = (lpm != 0) ? lpm in cio_start_key()
123 cio_start_key(struct subchannel *sch, struct ccw1 * cpa, __u8 lpm, __u8 key) cio_start_key() argument
176 cio_start(struct subchannel *sch, struct ccw1 *cpa, __u8 lpm) cio_start() argument
710 cio_tm_start_key(struct subchannel *sch, struct tcw *tcw, u8 lpm, u8 key) cio_tm_start_key() argument
[all...]
H A Dccwreq.c24 * @lpm: path mask to adjust
27 * Shift @lpm right until @lpm and @mask have at least one bit in common or
28 * until @lpm is zero. Return the resulting lpm.
30 int lpm_adjust(int lpm, int mask) in lpm_adjust() argument
32 while (lpm && ((lpm & mask) == 0)) in lpm_adjust()
33 lpm >>= 1; in lpm_adjust()
34 return lpm; in lpm_adjust()
238 u8 lpm; ccwreq_log_status() member
[all...]
H A Dvfio_ccw_fsm.c23 __u8 lpm; in fsm_io_helper() local
31 orb = cp_get_orb(&private->cp, (u32)(addr_t)sch, sch->lpm); in fsm_io_helper()
60 lpm = orb->cmd.lpm; in fsm_io_helper()
61 if (lpm != 0) in fsm_io_helper()
62 sch->lpm &= ~lpm; in fsm_io_helper()
64 sch->lpm = 0; in fsm_io_helper()
69 ret = sch->lpm ? -EACCES : -ENODEV; in fsm_io_helper()
H A Dcio.h30 u8 lpm; /* logical path mask */ member
106 __u8 lpm; /* logical path mask */ member
137 int cio_tm_start_key(struct subchannel *sch, struct tcw *tcw, u8 lpm, u8 key);
H A Dorb.h33 u32 lpm:8; /* logical path mask */ member
49 u32 lpm:8; member
/kernel/linux/linux-6.6/drivers/s390/cio/
H A Ddevice_pgid.c78 req->lpm = lpm_adjust(req->lpm, sch->schib.pmcw.pam & sch->opm & in nop_do()
80 if (!req->lpm) in nop_do()
112 sch->vpm |= req->lpm; in nop_callback()
115 cdev->private->path_noirq_mask |= req->lpm; in nop_callback()
118 cdev->private->path_notoper_mask |= req->lpm; in nop_callback()
124 req->lpm >>= 1; in nop_callback()
139 int i = pathmask_to_pos(req->lpm); in spid_build_cp()
183 req->lpm = sch->schib.pmcw.pam; in pgid_wipeout_start()
202 req->lpm in spid_do()
306 int lpm; pgid_analyze() local
338 int lpm; pgid_to_donepm() local
[all...]
H A Ddevice_ops.c166 * @lpm: defines the channel path to be used for a specific I/O request. A
186 * -%EACCES, if no path specified in @lpm is operational;
192 unsigned long intparm, __u8 lpm, __u8 key, in ccw_device_start_timeout_key()
224 if (lpm) { in ccw_device_start_timeout_key()
225 lpm &= sch->lpm; in ccw_device_start_timeout_key()
226 if (lpm == 0) in ccw_device_start_timeout_key()
229 ret = cio_start_key (sch, cpa, lpm, key); in ccw_device_start_timeout_key()
251 * @lpm: defines the channel path to be used for a specific I/O request. A
266 * -%EACCES, if no path specified in @lpm i
191 ccw_device_start_timeout_key(struct ccw_device *cdev, struct ccw1 *cpa, unsigned long intparm, __u8 lpm, __u8 key, unsigned long flags, int expires) ccw_device_start_timeout_key() argument
271 ccw_device_start_key(struct ccw_device *cdev, struct ccw1 *cpa, unsigned long intparm, __u8 lpm, __u8 key, unsigned long flags) ccw_device_start_key() argument
305 ccw_device_start(struct ccw_device *cdev, struct ccw1 *cpa, unsigned long intparm, __u8 lpm, unsigned long flags) ccw_device_start() argument
343 ccw_device_start_timeout(struct ccw_device *cdev, struct ccw1 *cpa, unsigned long intparm, __u8 lpm, unsigned long flags, int expires) ccw_device_start_timeout() argument
539 ccw_device_tm_start_timeout_key(struct ccw_device *cdev, struct tcw *tcw, unsigned long intparm, u8 lpm, u8 key, int expires) ccw_device_tm_start_timeout_key() argument
588 ccw_device_tm_start_key(struct ccw_device *cdev, struct tcw *tcw, unsigned long intparm, u8 lpm, u8 key) ccw_device_tm_start_key() argument
605 ccw_device_tm_start(struct ccw_device *cdev, struct tcw *tcw, unsigned long intparm, u8 lpm) ccw_device_tm_start() argument
624 ccw_device_tm_start_timeout(struct ccw_device *cdev, struct tcw *tcw, unsigned long intparm, u8 lpm, int expires) ccw_device_tm_start_timeout() argument
[all...]
H A Dcio.c99 cio_start_handle_notoper(struct subchannel *sch, __u8 lpm) in cio_start_handle_notoper() argument
103 if (lpm != 0) in cio_start_handle_notoper()
104 sch->lpm &= ~lpm; in cio_start_handle_notoper()
106 sch->lpm = 0; in cio_start_handle_notoper()
119 return (sch->lpm ? -EACCES : -ENODEV); in cio_start_handle_notoper()
125 __u8 lpm, /* logical path mask */ in cio_start_key()
143 orb->cmd.lpm = (lpm != 0) ? lpm in cio_start_key()
123 cio_start_key(struct subchannel *sch, struct ccw1 * cpa, __u8 lpm, __u8 key) cio_start_key() argument
176 cio_start(struct subchannel *sch, struct ccw1 *cpa, __u8 lpm) cio_start() argument
710 cio_tm_start_key(struct subchannel *sch, struct tcw *tcw, u8 lpm, u8 key) cio_tm_start_key() argument
[all...]
H A Dccwreq.c24 * @lpm: path mask to adjust
27 * Shift @lpm right until @lpm and @mask have at least one bit in common or
28 * until @lpm is zero. Return the resulting lpm.
30 int lpm_adjust(int lpm, int mask) in lpm_adjust() argument
32 while (lpm && ((lpm & mask) == 0)) in lpm_adjust()
33 lpm >>= 1; in lpm_adjust()
34 return lpm; in lpm_adjust()
238 u8 lpm; ccwreq_log_status() member
[all...]
H A Dvfio_ccw_fsm.c24 __u8 lpm; in fsm_io_helper() local
59 lpm = orb->cmd.lpm; in fsm_io_helper()
60 if (lpm != 0) in fsm_io_helper()
61 sch->lpm &= ~lpm; in fsm_io_helper()
63 sch->lpm = 0; in fsm_io_helper()
68 ret = sch->lpm ? -EACCES : -ENODEV; in fsm_io_helper()
H A Dcio.h31 u8 lpm; /* logical path mask */ member
95 __u8 lpm; /* logical path mask */ member
130 int cio_tm_start_key(struct subchannel *sch, struct tcw *tcw, u8 lpm, u8 key);
H A Dorb.h33 u32 lpm:8; /* logical path mask */ member
49 u32 lpm:8; member
/kernel/linux/linux-5.10/drivers/regulator/
H A Dmcp16502.c43 * state by setting the GPIO lpm pin high/low.
119 * @lpm: LPM GPIO descriptor
122 struct gpio_desc *lpm; member
134 gpiod_set_value(mcp->lpm, 0); in mcp16502_gpio_set_mode()
138 gpiod_set_value(mcp->lpm, 1); in mcp16502_gpio_set_mode()
458 mcp->lpm = devm_gpiod_get(dev, "lpm", GPIOD_OUT_LOW); in mcp16502_probe()
459 if (IS_ERR(mcp->lpm)) { in mcp16502_probe()
460 dev_err(dev, "failed to get lpm pin: %ld\n", PTR_ERR(mcp->lpm)); in mcp16502_probe()
[all...]
/kernel/linux/linux-5.10/drivers/usb/chipidea/
H A Dcore.c200 enum ci_hw_regs reg = ci->hw_bank.lpm ? OP_DEVLC : OP_PORTSC; in ci_hdrc_enter_lpm()
201 bool lpm = !!(hw_read(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm))); in ci_hdrc_enter_lpm() local
203 if (enable && !lpm) in ci_hdrc_enter_lpm()
204 hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm), in ci_hdrc_enter_lpm()
205 PORTSC_PHCD(ci->hw_bank.lpm)); in ci_hdrc_enter_lpm()
206 else if (!enable && lpm) in ci_hdrc_enter_lpm()
207 hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm), in ci_hdrc_enter_lpm()
225 ci->hw_bank.lpm = reg; in hw_device_init()
250 "revision: %d, lpm in hw_device_init()
264 u32 portsc, lpm, sts = 0; hw_phymode_configure() local
[all...]
/kernel/linux/linux-6.6/drivers/usb/chipidea/
H A Dcore.c202 enum ci_hw_regs reg = ci->hw_bank.lpm ? OP_DEVLC : OP_PORTSC; in ci_hdrc_enter_lpm_common()
203 bool lpm = !!(hw_read(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm))); in ci_hdrc_enter_lpm_common() local
205 if (enable && !lpm) in ci_hdrc_enter_lpm_common()
206 hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm), in ci_hdrc_enter_lpm_common()
207 PORTSC_PHCD(ci->hw_bank.lpm)); in ci_hdrc_enter_lpm_common()
208 else if (!enable && lpm) in ci_hdrc_enter_lpm_common()
209 hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm), in ci_hdrc_enter_lpm_common()
232 ci->hw_bank.lpm = reg; in hw_device_init()
257 "revision: %d, lpm in hw_device_init()
271 u32 portsc, lpm, sts = 0; hw_phymode_configure() local
[all...]
/kernel/linux/linux-5.10/arch/arm/plat-pxa/
H A Dmfp.c171 int pin, af, drv, lpm, edge, pull; in mfp_config() local
179 lpm = MFP_LPM_STATE(c); in mfp_config()
190 p->mfpr_run = tmp | mfpr_lpm[lpm] | mfpr_edge[edge]; in mfp_config()
193 p->mfpr_lpm = tmp | mfpr_lpm[lpm] | mfpr_edge[edge]; in mfp_config()
/kernel/linux/linux-6.6/drivers/soc/pxa/
H A Dmfp.c171 int pin, af, drv, lpm, edge, pull; in mfp_config() local
179 lpm = MFP_LPM_STATE(c); in mfp_config()
190 p->mfpr_run = tmp | mfpr_lpm[lpm] | mfpr_edge[edge]; in mfp_config()
193 p->mfpr_lpm = tmp | mfpr_lpm[lpm] | mfpr_edge[edge]; in mfp_config()
/kernel/linux/linux-6.6/drivers/ufs/host/
H A Dufs-mediatek.c1071 static int ufs_mtk_unipro_set_lpm(struct ufs_hba *hba, bool lpm) in ufs_mtk_unipro_set_lpm() argument
1078 lpm ? 1 : 0); in ufs_mtk_unipro_set_lpm()
1079 if (!ret || !lpm) { in ufs_mtk_unipro_set_lpm()
1085 host->unipro_lpm = lpm; in ufs_mtk_unipro_set_lpm()
1252 static void ufs_mtk_vccqx_set_lpm(struct ufs_hba *hba, bool lpm) in ufs_mtk_vccqx_set_lpm() argument
1262 lpm ? REGULATOR_MODE_IDLE : REGULATOR_MODE_NORMAL); in ufs_mtk_vccqx_set_lpm()
1265 static void ufs_mtk_vsx_set_lpm(struct ufs_hba *hba, bool lpm) in ufs_mtk_vsx_set_lpm() argument
1269 ufs_mtk_device_pwr_ctrl(!lpm, in ufs_mtk_vsx_set_lpm()
1274 static void ufs_mtk_dev_vreg_set_lpm(struct ufs_hba *hba, bool lpm) in ufs_mtk_dev_vreg_set_lpm() argument
1284 if (lpm in ufs_mtk_dev_vreg_set_lpm()
[all...]
/kernel/linux/linux-6.6/drivers/regulator/
H A Dmcp16502.c43 * state by setting the GPIO lpm pin high/low.
146 * @lpm: LPM GPIO descriptor
149 struct gpio_desc *lpm; member
161 gpiod_set_value(mcp->lpm, 0); in mcp16502_gpio_set_mode()
165 gpiod_set_value(mcp->lpm, 1); in mcp16502_gpio_set_mode()
530 mcp->lpm = devm_gpiod_get_optional(dev, "lpm", GPIOD_OUT_LOW); in mcp16502_probe()
531 if (IS_ERR(mcp->lpm)) { in mcp16502_probe()
532 dev_err(dev, "failed to get lpm pin: %ld\n", PTR_ERR(mcp->lpm)); in mcp16502_probe()
[all...]
/kernel/linux/linux-6.6/drivers/usb/dwc2/
H A Dparams.c129 p->lpm = false; in dwc2_set_rk_params()
171 p->lpm = false; in dwc2_set_amlogic_g12a_params()
190 p->lpm = false; in dwc2_set_amlogic_a1_params()
263 p->lpm = false; in dwc2_set_stm32mp15_hsotg_params()
443 p->lpm = hsotg->hw_params.lpm_mode; in dwc2_set_param_lpm()
444 if (p->lpm) { in dwc2_set_param_lpm()
773 CHECK_BOOL(lpm, (hsotg->hw_params.snpsid >= DWC2_CORE_REV_2_80a)); in dwc2_check_params()
774 CHECK_BOOL(lpm, hw->lpm_mode); in dwc2_check_params()
775 CHECK_BOOL(lpm_clock_gating, hsotg->params.lpm); in dwc2_check_params()
776 CHECK_BOOL(besl, hsotg->params.lpm); in dwc2_check_params()
[all...]
/kernel/linux/linux-5.10/drivers/scsi/ufs/
H A Dufs-mediatek.c643 static int ufs_mtk_unipro_set_pm(struct ufs_hba *hba, bool lpm) in ufs_mtk_unipro_set_pm() argument
650 lpm); in ufs_mtk_unipro_set_pm()
651 if (!ret || !lpm) { in ufs_mtk_unipro_set_pm()
657 host->unipro_lpm = lpm; in ufs_mtk_unipro_set_pm()
811 static void ufs_mtk_vreg_set_lpm(struct ufs_hba *hba, bool lpm) in ufs_mtk_vreg_set_lpm() argument
816 if (lpm && !hba->vreg_info.vcc->enabled) in ufs_mtk_vreg_set_lpm()
819 else if (!lpm) in ufs_mtk_vreg_set_lpm()
/kernel/linux/linux-5.10/arch/arm/plat-pxa/include/plat/
H A Dmfp.h415 #define MFP_CFG_LPM(pin, af, lpm) \
417 (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_LPM_##lpm))
419 #define MFP_CFG_X(pin, af, drv, lpm) \
421 (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_##drv | MFP_LPM_##lpm))
/kernel/linux/linux-6.6/include/linux/soc/pxa/
H A Dmfp.h413 #define MFP_CFG_LPM(pin, af, lpm) \
415 (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_LPM_##lpm))
417 #define MFP_CFG_X(pin, af, drv, lpm) \
419 (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_##drv | MFP_LPM_##lpm))

Completed in 28 milliseconds

12345