/linux-master/drivers/s390/cio/ |
H A D | device_pgid.c | 78 req->lpm = lpm_adjust(req->lpm, sch->schib.pmcw.pam & sch->opm & 80 if (!req->lpm) 112 sch->vpm |= req->lpm; 115 cdev->private->path_noirq_mask |= req->lpm; 118 cdev->private->path_notoper_mask |= req->lpm; 124 req->lpm >>= 1; 139 int i = pathmask_to_pos(req->lpm); 183 req->lpm = sch->schib.pmcw.pam; 202 req->lpm 306 int lpm; local 338 int lpm; local [all...] |
H A D | device_ops.c | 166 * @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, 228 if (lpm) { 229 lpm &= sch->lpm; 230 if (lpm == 0) 233 ret = cio_start_key (sch, cpa, lpm, key); 255 * @lpm: defines the channel path to be used for a specific I/O request. A 270 * -%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) argument 275 ccw_device_start_key(struct ccw_device *cdev, struct ccw1 *cpa, unsigned long intparm, __u8 lpm, __u8 key, unsigned long flags) argument 309 ccw_device_start(struct ccw_device *cdev, struct ccw1 *cpa, unsigned long intparm, __u8 lpm, unsigned long flags) argument 347 ccw_device_start_timeout(struct ccw_device *cdev, struct ccw1 *cpa, unsigned long intparm, __u8 lpm, unsigned long flags, int expires) argument 543 ccw_device_tm_start_timeout_key(struct ccw_device *cdev, struct tcw *tcw, unsigned long intparm, u8 lpm, u8 key, int expires) argument 596 ccw_device_tm_start_key(struct ccw_device *cdev, struct tcw *tcw, unsigned long intparm, u8 lpm, u8 key) argument 613 ccw_device_tm_start(struct ccw_device *cdev, struct tcw *tcw, unsigned long intparm, u8 lpm) argument 632 ccw_device_tm_start_timeout(struct ccw_device *cdev, struct tcw *tcw, unsigned long intparm, u8 lpm, int expires) argument [all...] |
H A D | ccwreq.c | 24 * @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) argument 32 while (lpm && ((lpm & mask) == 0)) 33 lpm >>= 1; 34 return lpm; 238 u8 lpm; member in struct:__anon205 [all...] |
H A D | orb.h | 36 u32 lpm:8; /* logical path mask */ member in struct:cmd_orb 52 u32 lpm:8; member in struct:tm_orb
|
H A D | cio.c | 99 cio_start_handle_notoper(struct subchannel *sch, __u8 lpm) argument 103 if (lpm != 0) 104 sch->lpm &= ~lpm; 106 sch->lpm = 0; 119 return (sch->lpm ? -EACCES : -ENODEV); 125 __u8 lpm, /* logical path mask */ 143 orb->cmd.lpm = (lpm != 0) ? lpm 123 cio_start_key(struct subchannel *sch, struct ccw1 * cpa, __u8 lpm, __u8 key) argument 176 cio_start(struct subchannel *sch, struct ccw1 *cpa, __u8 lpm) argument 710 cio_tm_start_key(struct subchannel *sch, struct tcw *tcw, u8 lpm, u8 key) argument [all...] |
H A D | cio.h | 31 u8 lpm; /* logical path mask */ member in struct:pmcw 95 __u8 lpm; /* logical path mask */ member in struct:subchannel 130 int cio_tm_start_key(struct subchannel *sch, struct tcw *tcw, u8 lpm, u8 key);
|
H A D | vfio_ccw_fsm.c | 24 __u8 lpm; local 59 lpm = orb->cmd.lpm; 60 if (lpm != 0) 61 sch->lpm &= ~lpm; 63 sch->lpm = 0; 68 ret = sch->lpm ? -EACCES : -ENODEV;
|
H A D | device.h | 110 int lpm_adjust(int lpm, int mask);
|
H A D | io_sch.h | 65 * @lpm: mask of paths to use 70 * @singlepath: if set, use only one path from @lpm per start I/O 81 u8 lpm; member in struct:ccw_request
|
H A D | device_fsm.c | 60 printk(KERN_WARNING "cio: subchannel lpm: %02x, opm: %02x, " 61 "vpm: %02x\n", sch->lpm, sch->opm, sch->vpm); 175 if (!(sch->lpm & mask)) 202 old_lpm = sch->lpm; 208 sch->lpm = sch->schib.pmcw.pam & sch->opm; 213 if (sch->lpm != old_lpm) 494 /* Update lpm with verified path mask. */ 495 sch->lpm = sch->vpm; 953 sch->lpm = sch->schib.pmcw.pam & sch->opm;
|
H A D | vfio_ccw_drv.c | 323 sch->lpm &= ~mask; 337 sch->lpm |= mask; 341 sch->lpm |= mask & sch->opm;
|
H A D | vfio_ccw_cp.c | 877 if (orb->cmd.lpm == 0) 878 orb->cmd.lpm = sch->lpm;
|
/linux-master/drivers/ps3/ |
H A D | Makefile | 8 obj-$(CONFIG_PS3_LPM) += ps3-lpm.o
|
/linux-master/include/linux/soc/pxa/ |
H A D | mfp.h | 413 #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))
|
/linux-master/drivers/soc/pxa/ |
H A D | mfp.c | 171 int pin, af, drv, lpm, edge, pull; local 179 lpm = MFP_LPM_STATE(c); 190 p->mfpr_run = tmp | mfpr_lpm[lpm] | mfpr_edge[edge]; 193 p->mfpr_lpm = tmp | mfpr_lpm[lpm] | mfpr_edge[edge];
|
/linux-master/drivers/regulator/ |
H A D | mcp16502.c | 43 * state by setting the GPIO lpm pin high/low. 146 * @lpm: LPM GPIO descriptor 149 struct gpio_desc *lpm; member in struct:mcp16502 161 gpiod_set_value(mcp->lpm, 0); 165 gpiod_set_value(mcp->lpm, 1); 530 mcp->lpm = devm_gpiod_get_optional(dev, "lpm", GPIOD_OUT_LOW); 531 if (IS_ERR(mcp->lpm)) { 532 dev_err(dev, "failed to get lpm pin: %ld\n", PTR_ERR(mcp->lpm)); [all...] |
/linux-master/drivers/usb/chipidea/ |
H A D | core.c | 202 enum ci_hw_regs reg = ci->hw_bank.lpm ? OP_DEVLC : OP_PORTSC; 203 bool lpm = !!(hw_read(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm))); local 205 if (enable && !lpm) 206 hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm), 207 PORTSC_PHCD(ci->hw_bank.lpm)); 208 else if (!enable && lpm) 209 hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm), 232 ci->hw_bank.lpm = reg; 257 "revision: %d, lpm 271 u32 portsc, lpm, sts = 0; local [all...] |
/linux-master/drivers/ufs/host/ |
H A D | ufs-mediatek.c | 1097 static int ufs_mtk_unipro_set_lpm(struct ufs_hba *hba, bool lpm) argument 1104 lpm ? 1 : 0); 1105 if (!ret || !lpm) { 1111 host->unipro_lpm = lpm; 1282 static void ufs_mtk_vccqx_set_lpm(struct ufs_hba *hba, bool lpm) argument 1292 lpm ? REGULATOR_MODE_IDLE : REGULATOR_MODE_NORMAL); 1295 static void ufs_mtk_vsx_set_lpm(struct ufs_hba *hba, bool lpm) argument 1299 ufs_mtk_device_pwr_ctrl(!lpm, 1304 static void ufs_mtk_dev_vreg_set_lpm(struct ufs_hba *hba, bool lpm) argument 1314 if (lpm [all...] |
/linux-master/drivers/usb/dwc2/ |
H A D | params.c | 129 p->lpm = false; 172 p->lpm = false; 191 p->lpm = false; 264 p->lpm = false; 444 p->lpm = hsotg->hw_params.lpm_mode; 445 if (p->lpm) { 774 CHECK_BOOL(lpm, (hsotg->hw_params.snpsid >= DWC2_CORE_REV_2_80a)); 775 CHECK_BOOL(lpm, hw->lpm_mode); 776 CHECK_BOOL(lpm_clock_gating, hsotg->params.lpm); 777 CHECK_BOOL(besl, hsotg->params.lpm); [all...] |
/linux-master/drivers/s390/block/ |
H A D | dasd_eckd.c | 813 __u8 lpm) 836 cqr->lpm = lpm; 870 __u8 lpm) 882 dasd_eckd_fill_rcd_cqr(device, cqr, rcd_buffer, lpm); 893 int *rcd_buffer_size, __u8 lpm) 923 dasd_eckd_fill_rcd_cqr(device, cqr, rcd_buf, lpm); 1079 void *conf_data, __u8 lpm) 1095 lpm, print_path_uid, print_device_uid); 1107 __u8 lpm, op local 810 dasd_eckd_fill_rcd_cqr(struct dasd_device *device, struct dasd_ccw_req *cqr, __u8 *rcd_buffer, __u8 lpm) argument 867 dasd_eckd_read_conf_immediately(struct dasd_device *device, struct dasd_ccw_req *cqr, __u8 *rcd_buffer, __u8 lpm) argument 891 dasd_eckd_read_conf_lpm(struct dasd_device *device, void **rcd_buffer, int *rcd_buffer_size, __u8 lpm) argument 1078 dasd_eckd_check_cabling(struct dasd_device *device, void *conf_data, __u8 lpm) argument 1208 verify_fcx_max_data(struct dasd_device *device, __u8 lpm) argument 1240 __u8 lpm, opm = dasd_path_get_opm(device); local 1279 __u8 lpm, opm, npm, ppm, epm, hpfpm, cablepm; local [all...] |
H A D | dasd_erp.c | 95 cqr->lpm = dasd_path_get_opm(device);
|
H A D | dasd_3990_erp.c | 151 if (erp->lpm == 0) 152 erp->lpm = dasd_path_get_opm(device) & 155 erp->lpm &= ~(erp->irb.esw.esw0.sublog.lpum); 157 if ((erp->lpm & opm) != 0x00) { 160 "try alternate lpm=%x (lpum=%x / opm=%x)", 161 erp->lpm, erp->irb.esw.esw0.sublog.lpum, opm); 273 erp->lpm = dasd_path_get_opm(erp->startdev); 1911 /* reset the lpm and the status to be able to 1913 erp->lpm = dasd_path_get_opm(erp->startdev); 2794 if (test_bit(DASD_CQR_VERIFY_PATH, &erp->flags) && cqr->lpm) { [all...] |
/linux-master/arch/powerpc/platforms/ps3/ |
H A D | device-init.c | 40 /* The current lpm driver only supports a single BE processor. */ 42 result = ps3_repository_read_be_node_id(0, &dev->lpm.node_id); 50 result = ps3_repository_read_lpm_privileges(dev->lpm.node_id, &tmp1, 51 &dev->lpm.rights); 68 if (!(dev->lpm.rights & PS3_LPM_RIGHTS_USE_LPM)) { 69 pr_debug("%s:%d: don't have rights to use lpm\n", 76 __func__, __LINE__, dev->lpm.pu_id, dev->lpm.rights, 77 dev->lpm.rights); 79 result = ps3_repository_read_pu_id(0, &dev->lpm [all...] |
/linux-master/arch/arm/mach-pxa/ |
H A D | mfp-pxa2xx.c | 154 void pxa2xx_mfp_set_lpm(int mfp, unsigned long lpm) argument 166 c = (c & ~MFP_LPM_STATE_MASK) | lpm;
|
/linux-master/drivers/bluetooth/ |
H A D | hci_intel.c | 317 * transactions (lpm suspend/resume) from PM callbacks. 922 struct hci_lpm_pkt *lpm = (void *)skb->data; local 926 switch (lpm->opcode) { 928 if (lpm->dlen < 1) { 932 intel_recv_lpm_notify(hdev, lpm->data[0]); 945 bt_dev_err(hdev, "Unknown LPM opcode (%02x)", lpm->opcode);
|