Home
last modified time | relevance | path

Searched refs:chpid (Results 1 – 22 of 22) sorted by relevance

/linux-2.6.39/drivers/s390/cio/
Dchp.c58 static void set_chp_logically_online(struct chp_id chpid, int onoff) in set_chp_logically_online() argument
60 chpid_to_chp(chpid)->state = onoff; in set_chp_logically_online()
65 int chp_get_status(struct chp_id chpid) in chp_get_status() argument
67 return (chpid_to_chp(chpid) ? chpid_to_chp(chpid)->state : -ENODEV); in chp_get_status()
79 struct chp_id chpid; in chp_get_sch_opm() local
84 chp_id_init(&chpid); in chp_get_sch_opm()
87 chpid.id = sch->schib.pmcw.chpid[i]; in chp_get_sch_opm()
88 if (chp_get_status(chpid) != 0) in chp_get_sch_opm()
102 int chp_is_registered(struct chp_id chpid) in chp_is_registered() argument
104 return chpid_to_chp(chpid) != NULL; in chp_is_registered()
[all …]
Dchp.h29 struct chp_id chpid; member
45 struct chp_id chpid; member
56 static inline struct channel_path *chpid_to_chp(struct chp_id chpid) in chpid_to_chp() argument
58 return channel_subsystems[chpid.cssid]->chps[chpid.id]; in chpid_to_chp()
61 int chp_get_status(struct chp_id chpid);
63 int chp_is_registered(struct chp_id chpid);
64 void *chp_get_chp_desc(struct chp_id chpid);
67 int chp_new(struct chp_id chpid);
68 void chp_cfg_schedule(struct chp_id chpid, int configure);
69 void chp_cfg_cancel_deconfigure(struct chp_id chpid);
[all …]
Dchsc.c82 u8 chpid[8]; /* chpids 0-7 */ member
131 chp_id_init(&ssd->chpid[i]); in chsc_get_ssd_info()
132 ssd->chpid[i].id = ssd_area->chpid[i]; in chsc_get_ssd_info()
158 void chsc_chp_offline(struct chp_id chpid) in chsc_chp_offline() argument
163 sprintf(dbf_txt, "chpr%x.%02x", chpid.cssid, chpid.id); in chsc_chp_offline()
166 if (chp_get_status(chpid) <= 0) in chsc_chp_offline()
169 link.chpid = chpid; in chsc_chp_offline()
209 sprintf(dbf_txt, "accpr%x.%02x", link->chpid.cssid, in s390_process_res_acc()
210 link->chpid.id); in s390_process_res_acc()
280 struct chp_id chpid; in chsc_process_sei_link_incident() local
[all …]
Dchsc.h31 u8 chpid; member
42 u8 chpid; member
73 struct chp_id chpid[8]; member
106 int chsc_chp_vary(struct chp_id chpid, int on);
107 int chsc_determine_channel_path_desc(struct chp_id chpid, int fmt, int rfmt,
109 int chsc_determine_base_channel_path_desc(struct chp_id chpid,
111 int chsc_determine_fmt1_channel_path_desc(struct chp_id chpid,
113 void chsc_chp_online(struct chp_id chpid);
114 void chsc_chp_offline(struct chp_id chpid);
Ddevice_ops.c572 struct chp_id chpid; in ccw_device_get_chp_desc() local
575 chp_id_init(&chpid); in ccw_device_get_chp_desc()
576 chpid.id = sch->schib.pmcw.chpid[chp_no]; in ccw_device_get_chp_desc()
577 return chp_get_chp_desc(chpid); in ccw_device_get_chp_desc()
701 struct chp_id chpid; in ccw_device_get_mdc() local
710 chp_id_init(&chpid); in ccw_device_get_mdc()
714 chpid.id = sch->schib.pmcw.chpid[i]; in ccw_device_get_mdc()
715 ret = chsc_determine_fmt1_channel_path_desc(chpid, &desc); in ccw_device_get_mdc()
Dioasm.h153 static inline int rchp(struct chp_id chpid) in rchp() argument
155 register struct chp_id reg1 asm ("1") = chpid; in rchp()
Dchsc_sch.c397 scpcd_area->cssid = cd->chpid.cssid; in chsc_ioctl_info_channel_path()
398 scpcd_area->first_chpid = cd->chpid.id; in chsc_ioctl_info_channel_path()
399 scpcd_area->last_chpid = cd->chpid.id; in chsc_ioctl_info_channel_path()
630 u32 chpid : 8; in chsc_ioctl_conf_comp_list() member
659 chpid_parm->m = ccl->req.chpid.m; in chsc_ioctl_conf_comp_list()
660 chpid_parm->cssid = ccl->req.chpid.chp.cssid; in chsc_ioctl_conf_comp_list()
661 chpid_parm->chpid = ccl->req.chpid.chp.id; in chsc_ioctl_conf_comp_list()
708 ret = chsc_determine_channel_path_desc(chpd->chpid, chpd->fmt, in chsc_ioctl_chpd()
Dcss.c253 chp_id_init(&ssd->chpid[i]); in ssd_from_pmcw()
254 ssd->chpid[i].id = pmcw->chpid[i]; in ssd_from_pmcw()
267 if (!chp_is_registered(ssd->chpid[i])) in ssd_register_chpids()
268 chp_new(ssd->chpid[i]); in ssd_register_chpids()
1043 struct chp_id chpid; in channel_subsystem_reinit() local
1046 chp_id_for_each(&chpid) { in channel_subsystem_reinit()
1047 chp = chpid_to_chp(chpid); in channel_subsystem_reinit()
1050 chsc_determine_base_channel_path_desc(chpid, &chp->desc); in channel_subsystem_reinit()
Ddevice_fsm.c209 struct chp_id chpid; in __recover_lost_chpids() local
211 chp_id_init(&chpid); in __recover_lost_chpids()
218 chpid.id = sch->schib.pmcw.chpid[i]; in __recover_lost_chpids()
219 if (!chp_is_registered(chpid)) in __recover_lost_chpids()
Dcio.h36 u8 chpid[8]; /* CHPID 0-7 (if available) */ member
Dcio.c966 struct chp_id chpid; in css_reset() local
976 chp_id_init(&chpid); in css_reset()
978 chpid.id = i; in css_reset()
979 ret = rchp(chpid); in css_reset()
Ddevice.c231 ret += sprintf(buf + ret, "%02x ", ssd->chpid[chp].id); in chpids_show()
/linux-2.6.39/arch/s390/include/asm/
Dchpid.h26 static inline void chp_id_init(struct chp_id *chpid) in chp_id_init() argument
28 memset(chpid, 0, sizeof(struct chp_id)); in chp_id_init()
36 static inline void chp_id_next(struct chp_id *chpid) in chp_id_next() argument
38 if (chpid->id < __MAX_CHPID) in chp_id_next()
39 chpid->id++; in chp_id_next()
41 chpid->id = 0; in chp_id_next()
42 chpid->cssid++; in chp_id_next()
46 static inline int chp_id_is_valid(struct chp_id *chpid) in chp_id_is_valid() argument
48 return (chpid->cssid <= __MAX_CSSID); in chp_id_is_valid()
Dchsc.h38 struct chp_id chpid; member
90 struct ccl_parm_chpid chpid; member
108 struct chp_id chpid; member
Dsclp.h53 int sclp_chp_configure(struct chp_id chpid);
54 int sclp_chp_deconfigure(struct chp_id chpid);
DKbuild3 header-y += chpid.h
/linux-2.6.39/drivers/s390/char/
Dsclp_cmd.c699 int sclp_chp_configure(struct chp_id chpid) in sclp_chp_configure() argument
701 return do_chp_configure(SCLP_CMDW_CONFIGURE_CHPATH | chpid.id << 8); in sclp_chp_configure()
711 int sclp_chp_deconfigure(struct chp_id chpid) in sclp_chp_deconfigure() argument
713 return do_chp_configure(SCLP_CMDW_DECONFIGURE_CHPATH | chpid.id << 8); in sclp_chp_deconfigure()
/linux-2.6.39/Documentation/s390/
Ddriver-model.txt234 and are called 'chp0.<chpid>'. They have no driver and do not belong to any bus.
241 Piping 'on' or 'off' sets the chpid logically online/offline.
242 Piping 'on' to an online chpid triggers path reprobing for all devices
243 the chpid connects to. This can be used to force the kernel to re-use
/linux-2.6.39/drivers/s390/net/
Dqeth_core_sys.c55 return sprintf(buf, "%02X\n", card->info.chpid); in qeth_dev_chpid_show()
58 static DEVICE_ATTR(chpid, 0444, qeth_dev_chpid_show, NULL);
Dqeth_core.h621 unsigned short chpid; member
Dqeth_core_main.c339 card->info.chpid); in qeth_check_ipa_data()
349 card->info.chpid); in qeth_check_ipa_data()
981 u8 chpid; in qeth_get_channel_path_desc() member
1366 card->info.chpid = prcd[30]; in qeth_configure_unitaddr()
/linux-2.6.39/drivers/s390/scsi/
Dzfcp_fsf.h201 u8 chpid; member