Home
last modified time | relevance | path

Searched refs:sch (Results 1 – 25 of 30) sorted by relevance

12

/linux-4.19.296/drivers/gpio/
Dgpio-sch.c43 static unsigned sch_gpio_offset(struct sch_gpio *sch, unsigned gpio, in sch_gpio_offset() argument
48 if (gpio >= sch->resume_base) { in sch_gpio_offset()
49 gpio -= sch->resume_base; in sch_gpio_offset()
56 static unsigned sch_gpio_bit(struct sch_gpio *sch, unsigned gpio) in sch_gpio_bit() argument
58 if (gpio >= sch->resume_base) in sch_gpio_bit()
59 gpio -= sch->resume_base; in sch_gpio_bit()
63 static int sch_gpio_reg_get(struct sch_gpio *sch, unsigned gpio, unsigned reg) in sch_gpio_reg_get() argument
68 offset = sch_gpio_offset(sch, gpio, reg); in sch_gpio_reg_get()
69 bit = sch_gpio_bit(sch, gpio); in sch_gpio_reg_get()
71 reg_val = !!(inb(sch->iobase + offset) & BIT(bit)); in sch_gpio_reg_get()
[all …]
/linux-4.19.296/drivers/s390/cio/
Dcio.c88 int cio_set_options(struct subchannel *sch, int flags) in cio_set_options() argument
90 struct io_subchannel_private *priv = to_io_private(sch); in cio_set_options()
99 cio_start_handle_notoper(struct subchannel *sch, __u8 lpm) in cio_start_handle_notoper() argument
104 sch->lpm &= ~lpm; in cio_start_handle_notoper()
106 sch->lpm = 0; in cio_start_handle_notoper()
109 "subchannel 0.%x.%04x!\n", sch->schid.ssid, in cio_start_handle_notoper()
110 sch->schid.sch_no); in cio_start_handle_notoper()
112 if (cio_update_schib(sch)) in cio_start_handle_notoper()
115 sprintf(dbf_text, "no%s", dev_name(&sch->dev)); in cio_start_handle_notoper()
117 CIO_HEX_EVENT(0, &sch->schib, sizeof (struct schib)); in cio_start_handle_notoper()
[all …]
Deadm_sch.c59 static int eadm_subchannel_start(struct subchannel *sch, struct aob *aob) in eadm_subchannel_start() argument
61 union orb *orb = &get_eadm_private(sch)->orb; in eadm_subchannel_start()
66 orb->eadm.intparm = (u32)(addr_t)sch; in eadm_subchannel_start()
70 EADM_LOG_HEX(6, &sch->schid, sizeof(sch->schid)); in eadm_subchannel_start()
72 cc = ssch(sch->schid, orb); in eadm_subchannel_start()
75 sch->schib.scsw.eadm.actl |= SCSW_ACTL_START_PEND; in eadm_subchannel_start()
86 static int eadm_subchannel_clear(struct subchannel *sch) in eadm_subchannel_clear() argument
90 cc = csch(sch->schid); in eadm_subchannel_clear()
94 sch->schib.scsw.eadm.actl |= SCSW_ACTL_CLEAR_PEND; in eadm_subchannel_clear()
101 struct subchannel *sch = private->sch; in eadm_subchannel_timeout() local
[all …]
Dcss.c70 struct subchannel *sch = to_subchannel(dev); in call_fn_known_sch() local
75 idset_sch_del(cb->set, sch->schid); in call_fn_known_sch()
77 rc = cb->fn_known_sch(sch, cb->data); in call_fn_known_sch()
94 struct subchannel *sch; in call_fn_all_sch() local
97 sch = get_subchannel_by_schid(schid); in call_fn_all_sch()
98 if (sch) { in call_fn_all_sch()
100 rc = cb->fn_known_sch(sch, cb->data); in call_fn_all_sch()
101 put_device(&sch->dev); in call_fn_all_sch()
150 static int css_sch_create_locks(struct subchannel *sch) in css_sch_create_locks() argument
152 sch->lock = kmalloc(sizeof(*sch->lock), GFP_KERNEL); in css_sch_create_locks()
[all …]
Dvfio_ccw_drv.c30 int vfio_ccw_sch_quiesce(struct subchannel *sch) in vfio_ccw_sch_quiesce() argument
32 struct vfio_ccw_private *private = dev_get_drvdata(&sch->dev); in vfio_ccw_sch_quiesce()
36 spin_lock_irq(sch->lock); in vfio_ccw_sch_quiesce()
37 if (!sch->schib.pmcw.ena) in vfio_ccw_sch_quiesce()
39 ret = cio_disable_subchannel(sch); in vfio_ccw_sch_quiesce()
46 ret = cio_cancel_halt_clear(sch, &iretry); in vfio_ccw_sch_quiesce()
50 sch->schid.ssid, sch->schid.sch_no); in vfio_ccw_sch_quiesce()
59 spin_unlock_irq(sch->lock); in vfio_ccw_sch_quiesce()
66 spin_lock_irq(sch->lock); in vfio_ccw_sch_quiesce()
67 ret = cio_disable_subchannel(sch); in vfio_ccw_sch_quiesce()
[all …]
Ddevice.c151 static int io_subchannel_prepare(struct subchannel *sch) in io_subchannel_prepare() argument
158 cdev = sch_get_cdev(sch); in io_subchannel_prepare()
286 struct subchannel *sch; in ccw_device_set_offline() local
300 sch = to_subchannel(cdev->dev.parent); in ccw_device_set_offline()
321 io_subchannel_quiesce(sch); in ccw_device_set_offline()
553 struct subchannel *sch; in available_show() local
563 sch = to_subchannel(dev->parent); in available_show()
564 if (!sch->lpm) in available_show()
578 struct subchannel *sch = to_subchannel(dev); in initiate_logging() local
581 rc = chsc_siosl(sch->schid); in initiate_logging()
[all …]
Ddevice_ops.c141 struct subchannel *sch; in ccw_device_clear() local
146 sch = to_subchannel(cdev->dev.parent); in ccw_device_clear()
147 if (!sch->schib.pmcw.ena) in ccw_device_clear()
155 ret = cio_clear(sch); in ccw_device_clear()
194 struct subchannel *sch; in ccw_device_start_timeout_key() local
199 sch = to_subchannel(cdev->dev.parent); in ccw_device_start_timeout_key()
200 if (!sch->schib.pmcw.ena) in ccw_device_start_timeout_key()
215 ((sch->schib.scsw.cmd.stctl & SCSW_STCTL_PRIM_STATUS) && in ccw_device_start_timeout_key()
216 !(sch->schib.scsw.cmd.stctl & SCSW_STCTL_SEC_STATUS)) || in ccw_device_start_timeout_key()
219 ret = cio_set_options (sch, flags); in ccw_device_start_timeout_key()
[all …]
Ddevice_fsm.c40 struct subchannel *sch; in ccw_timeout_log() local
45 sch = to_subchannel(cdev->dev.parent); in ccw_timeout_log()
46 private = to_io_private(sch); in ccw_timeout_log()
48 cc = stsch(sch->schid, &schib); in ccw_timeout_log()
58 dev_name(&sch->dev)); in ccw_timeout_log()
60 "vpm: %02x\n", sch->lpm, sch->opm, sch->vpm); in ccw_timeout_log()
129 struct subchannel *sch; in ccw_device_cancel_halt_clear() local
132 sch = to_subchannel(cdev->dev.parent); in ccw_device_cancel_halt_clear()
133 ret = cio_cancel_halt_clear(sch, &cdev->private->iretry); in ccw_device_cancel_halt_clear()
166 __recover_lost_chpids(struct subchannel *sch, int old_lpm) in __recover_lost_chpids() argument
[all …]
Dvfio_ccw_fsm.c21 struct subchannel *sch; in fsm_io_helper() local
28 sch = private->sch; in fsm_io_helper()
30 spin_lock_irqsave(sch->lock, flags); in fsm_io_helper()
33 orb = cp_get_orb(&private->cp, (u32)(addr_t)sch, sch->lpm); in fsm_io_helper()
36 ccode = ssch(sch->schid, orb); in fsm_io_helper()
43 sch->schib.scsw.cmd.actl |= SCSW_ACTL_START_PEND; in fsm_io_helper()
54 sch->lpm &= ~lpm; in fsm_io_helper()
56 sch->lpm = 0; in fsm_io_helper()
58 if (cio_update_schib(sch)) in fsm_io_helper()
61 ret = sch->lpm ? -EACCES : -ENODEV; in fsm_io_helper()
[all …]
Ddevice_pgid.c35 struct subchannel *sch = to_subchannel(cdev->dev.parent); in verify_done() local
43 if (sch->config.mp != mpath) { in verify_done()
44 sch->config.mp = mpath; in verify_done()
45 rc = cio_commit_config(sch); in verify_done()
50 sch->vpm); in verify_done()
74 struct subchannel *sch = to_subchannel(cdev->dev.parent); in nop_do() local
77 req->lpm = lpm_adjust(req->lpm, sch->schib.pmcw.pam & sch->opm & in nop_do()
86 verify_done(cdev, sch->vpm ? 0 : -EACCES); in nop_do()
106 struct subchannel *sch = to_subchannel(cdev->dev.parent); in nop_callback() local
111 sch->vpm |= req->lpm; in nop_callback()
[all …]
Dchsc_sch.c53 static void chsc_subchannel_irq(struct subchannel *sch) in chsc_subchannel_irq() argument
55 struct chsc_private *private = dev_get_drvdata(&sch->dev); in chsc_subchannel_irq()
66 sch->schid.ssid, sch->schid.sch_no); in chsc_subchannel_irq()
71 cio_update_schib(sch); in chsc_subchannel_irq()
73 put_device(&sch->dev); in chsc_subchannel_irq()
76 static int chsc_subchannel_probe(struct subchannel *sch) in chsc_subchannel_probe() argument
82 sch->schid.ssid, sch->schid.sch_no); in chsc_subchannel_probe()
83 sch->isc = CHSC_SCH_ISC; in chsc_subchannel_probe()
87 dev_set_drvdata(&sch->dev, private); in chsc_subchannel_probe()
88 ret = cio_enable_subchannel(sch, (u32)(unsigned long)sch); in chsc_subchannel_probe()
[all …]
Dccwreq.c78 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccwreq_do() local
90 rc = cio_start(sch, cp, (u8) req->mask); in ccwreq_do()
106 rc = cio_clear(sch); in ccwreq_do()
153 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_request_cancel() local
160 rc = cio_clear(sch); in ccw_request_cancel()
328 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_request_timeout() local
332 if (cio_update_schib(sch)) in ccw_request_timeout()
336 if ((0x80 >> chp) & sch->schib.pmcw.lpum) in ccw_request_timeout()
339 scsw_cstat(&sch->schib.scsw), in ccw_request_timeout()
340 scsw_dstat(&sch->schib.scsw), in ccw_request_timeout()
[all …]
Ddevice_status.c30 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_msg_control_check() local
41 cdev->private->dev_id.devno, sch->schid.ssid, in ccw_device_msg_control_check()
42 sch->schid.sch_no, in ccw_device_msg_control_check()
44 sprintf(dbf_text, "chk%x", sch->schid.sch_no); in ccw_device_msg_control_check()
55 struct subchannel *sch; in ccw_device_path_notoper() local
57 sch = to_subchannel(cdev->dev.parent); in ccw_device_path_notoper()
58 if (cio_update_schib(sch)) in ccw_device_path_notoper()
63 sch->schid.ssid, sch->schid.sch_no, in ccw_device_path_notoper()
64 sch->schib.pmcw.pnom); in ccw_device_path_notoper()
66 sch->lpm &= ~sch->schib.pmcw.pnom; in ccw_device_path_notoper()
[all …]
Dvfio_ccw_private.h38 struct subchannel *sch; member
54 extern int vfio_ccw_mdev_reg(struct subchannel *sch);
55 extern void vfio_ccw_mdev_unreg(struct subchannel *sch);
57 extern int vfio_ccw_sch_quiesce(struct subchannel *sch);
Dvfio_ccw_ops.c19 struct subchannel *sch; in vfio_ccw_mdev_reset() local
23 sch = private->sch; in vfio_ccw_mdev_reset()
32 ret = vfio_ccw_sch_quiesce(sch); in vfio_ccw_mdev_reset()
36 ret = cio_enable_subchannel(sch, (u32)(unsigned long)sch); in vfio_ccw_mdev_reset()
133 if (!vfio_ccw_sch_quiesce(private->sch)) in vfio_ccw_mdev_remove()
427 int vfio_ccw_mdev_reg(struct subchannel *sch) in vfio_ccw_mdev_reg() argument
429 return mdev_register_device(&sch->dev, &vfio_ccw_mdev_ops); in vfio_ccw_mdev_reg()
432 void vfio_ccw_mdev_unreg(struct subchannel *sch) in vfio_ccw_mdev_unreg() argument
434 mdev_unregister_device(&sch->dev); in vfio_ccw_mdev_unreg()
Dchsc.c91 u16 sch; /* subchannel */ member
212 static int s390_subchannel_remove_chpid(struct subchannel *sch, void *data) in s390_subchannel_remove_chpid() argument
214 spin_lock_irq(sch->lock); in s390_subchannel_remove_chpid()
215 if (sch->driver && sch->driver->chp_event) in s390_subchannel_remove_chpid()
216 if (sch->driver->chp_event(sch, data, CHP_OFFLINE) != 0) in s390_subchannel_remove_chpid()
218 spin_unlock_irq(sch->lock); in s390_subchannel_remove_chpid()
222 sch->lpm = 0; in s390_subchannel_remove_chpid()
223 spin_unlock_irq(sch->lock); in s390_subchannel_remove_chpid()
224 css_schedule_eval(sch->schid); in s390_subchannel_remove_chpid()
251 static int __s390_process_res_acc(struct subchannel *sch, void *data) in __s390_process_res_acc() argument
[all …]
Dio_sch.h27 static inline struct ccw_device *sch_get_cdev(struct subchannel *sch) in sch_get_cdev() argument
29 struct io_subchannel_private *priv = to_io_private(sch); in sch_get_cdev()
33 static inline void sch_set_cdev(struct subchannel *sch, in sch_set_cdev() argument
36 struct io_subchannel_private *priv = to_io_private(sch); in sch_set_cdev()
120 struct subchannel *sch; member
Dcio.h132 extern int cio_update_schib(struct subchannel *sch);
133 extern int cio_commit_config(struct subchannel *sch);
135 int cio_tm_start_key(struct subchannel *sch, struct tcw *tcw, u8 lpm, u8 key);
136 int cio_tm_intrg(struct subchannel *sch);
143 extern void cio_tsch(struct subchannel *sch);
Ddevice_id.c201 struct subchannel *sch = to_subchannel(cdev->dev.parent); in ccw_device_sense_id_start() local
219 req->lpm = sch->schib.pmcw.pam & sch->opm; in ccw_device_sense_id_start()
Dcmf.c178 struct subchannel *sch = to_subchannel(cdev->dev.parent); in set_schib() local
181 sch->config.mme = mme; in set_schib()
182 sch->config.mbfc = mbfc; in set_schib()
185 sch->config.mba = address; in set_schib()
187 sch->config.mbi = address; in set_schib()
189 ret = cio_commit_config(sch); in set_schib()
271 struct subchannel *sch = to_subchannel(cdev->dev.parent); in cmf_copy_block() local
275 if (cio_update_schib(sch)) in cmf_copy_block()
278 if (scsw_fctl(&sch->schib.scsw) & SCSW_FCTL_START_FUNC) { in cmf_copy_block()
280 if ((!(scsw_actl(&sch->schib.scsw) & SCSW_ACTL_SUSPENDED)) && in cmf_copy_block()
[all …]
Dcss.h115 void css_update_ssd_info(struct subchannel *sch);
156 void css_sched_sch_todo(struct subchannel *sch, enum sch_todo todo);
Deadm_sch.h15 struct subchannel *sch; member
Dchp.h63 u8 chp_get_sch_opm(struct subchannel *sch);
Ddevice.h88 void io_subchannel_init_config(struct subchannel *sch);
/linux-4.19.296/include/net/
Dsch_generic.h59 struct Qdisc *sch,
61 struct sk_buff * (*dequeue)(struct Qdisc *sch);
197 struct tcf_block * (*tcf_block)(struct Qdisc *sch,
219 struct Qdisc *sch,
224 int (*init)(struct Qdisc *sch, struct nlattr *arg,
228 int (*change)(struct Qdisc *sch,
231 void (*attach)(struct Qdisc *sch);
233 void (*change_real_num_tx)(struct Qdisc *sch,
239 void (*ingress_block_set)(struct Qdisc *sch,
241 void (*egress_block_set)(struct Qdisc *sch,
[all …]

12