chpid              16 arch/s390/include/asm/chpid.h 	u8 chpid;
chpid              23 arch/s390/include/asm/chpid.h static inline void chp_id_init(struct chp_id *chpid)
chpid              25 arch/s390/include/asm/chpid.h 	memset(chpid, 0, sizeof(struct chp_id));
chpid              33 arch/s390/include/asm/chpid.h static inline void chp_id_next(struct chp_id *chpid)
chpid              35 arch/s390/include/asm/chpid.h 	if (chpid->id < __MAX_CHPID)
chpid              36 arch/s390/include/asm/chpid.h 		chpid->id++;
chpid              38 arch/s390/include/asm/chpid.h 		chpid->id = 0;
chpid              39 arch/s390/include/asm/chpid.h 		chpid->cssid++;
chpid              43 arch/s390/include/asm/chpid.h static inline int chp_id_is_valid(struct chp_id *chpid)
chpid              45 arch/s390/include/asm/chpid.h 	return (chpid->cssid <= __MAX_CSSID);
chpid             127 arch/s390/include/asm/sclp.h int sclp_chp_configure(struct chp_id chpid);
chpid             128 arch/s390/include/asm/sclp.h int sclp_chp_deconfigure(struct chp_id chpid);
chpid              51 arch/s390/include/uapi/asm/chsc.h 	struct chp_id chpid;
chpid             103 arch/s390/include/uapi/asm/chsc.h 		struct ccl_parm_chpid chpid;
chpid             121 arch/s390/include/uapi/asm/chsc.h 	struct chp_id chpid;
chpid            2220 drivers/s390/block/dasd_3990_erp.c 			device->path[pos].cssid, device->path[pos].chpid, lpum);
chpid            2228 drivers/s390/block/dasd_3990_erp.c 			device->path[pos].cssid, device->path[pos].chpid, lpum);
chpid            2234 drivers/s390/block/dasd_3990_erp.c 		device->path[pos].cssid, device->path[pos].chpid, lpum);
chpid            1015 drivers/s390/block/dasd_eckd.c 		device->path[i].chpid = 0;
chpid            1076 drivers/s390/block/dasd_eckd.c 				device->path[pos].chpid = chp_desc->chpid;
chpid            1142 drivers/s390/block/dasd_eckd.c 				device->path[pos].chpid = chp_desc->chpid;
chpid            6134 drivers/s390/block/dasd_eckd.c 	psf_cuir->chpid = device->path[pos].chpid;
chpid            6261 drivers/s390/block/dasd_eckd.c 				device->path[pos].chpid);
chpid            6265 drivers/s390/block/dasd_eckd.c 				device->path[pos].chpid);
chpid             490 drivers/s390/block/dasd_eckd.h 	__u8 chpid;
chpid             433 drivers/s390/block/dasd_int.h 	u8 chpid;
chpid             602 drivers/s390/char/sclp_cmd.c int sclp_chp_configure(struct chp_id chpid)
chpid             604 drivers/s390/char/sclp_cmd.c 	return do_chp_configure(SCLP_CMDW_CONFIGURE_CHPATH | chpid.id << 8);
chpid             614 drivers/s390/char/sclp_cmd.c int sclp_chp_deconfigure(struct chp_id chpid)
chpid             616 drivers/s390/char/sclp_cmd.c 	return do_chp_configure(SCLP_CMDW_DECONFIGURE_CHPATH | chpid.id << 8);
chpid             343 drivers/s390/cio/ccwreq.c 				sch->schib.pmcw.chpid[chp]);
chpid              56 drivers/s390/cio/chp.c static void set_chp_logically_online(struct chp_id chpid, int onoff)
chpid              58 drivers/s390/cio/chp.c 	chpid_to_chp(chpid)->state = onoff;
chpid              63 drivers/s390/cio/chp.c int chp_get_status(struct chp_id chpid)
chpid              65 drivers/s390/cio/chp.c 	return (chpid_to_chp(chpid) ? chpid_to_chp(chpid)->state : -ENODEV);
chpid              77 drivers/s390/cio/chp.c 	struct chp_id chpid;
chpid              82 drivers/s390/cio/chp.c 	chp_id_init(&chpid);
chpid              85 drivers/s390/cio/chp.c 		chpid.id = sch->schib.pmcw.chpid[i];
chpid              86 drivers/s390/cio/chp.c 		if (chp_get_status(chpid) != 0)
chpid             100 drivers/s390/cio/chp.c int chp_is_registered(struct chp_id chpid)
chpid             102 drivers/s390/cio/chp.c 	return chpid_to_chp(chpid) != NULL;
chpid             109 drivers/s390/cio/chp.c static int s390_vary_chpid(struct chp_id chpid, int on)
chpid             114 drivers/s390/cio/chp.c 	sprintf(dbf_text, on?"varyon%x.%02x":"varyoff%x.%02x", chpid.cssid,
chpid             115 drivers/s390/cio/chp.c 		chpid.id);
chpid             118 drivers/s390/cio/chp.c 	status = chp_get_status(chpid);
chpid             122 drivers/s390/cio/chp.c 	set_chp_logically_online(chpid, on);
chpid             123 drivers/s390/cio/chp.c 	chsc_chp_vary(chpid, on);
chpid             158 drivers/s390/cio/chp.c 				       struct chp_id chpid)
chpid             164 drivers/s390/cio/chp.c 	if (chpid.id < 128) {
chpid             166 drivers/s390/cio/chp.c 		idx = chpid.id;
chpid             169 drivers/s390/cio/chp.c 		idx = chpid.id - 128;
chpid             196 drivers/s390/cio/chp.c 	chp_measurement_copy_block((struct cmg_entry *)buf, css, chp->chpid);
chpid             260 drivers/s390/cio/chp.c 		error = s390_vary_chpid(cp->chpid, 1);
chpid             264 drivers/s390/cio/chp.c 		error = s390_vary_chpid(cp->chpid, 0);
chpid             281 drivers/s390/cio/chp.c 	status = chp_info_get_status(cp->chpid);
chpid             303 drivers/s390/cio/chp.c 	chp_cfg_schedule(cp->chpid, val);
chpid             448 drivers/s390/cio/chp.c 	rc = chsc_determine_fmt0_channel_path_desc(chp->chpid, &chp->desc);
chpid             456 drivers/s390/cio/chp.c 	chsc_determine_fmt1_channel_path_desc(chp->chpid, &chp->desc_fmt1);
chpid             457 drivers/s390/cio/chp.c 	chsc_determine_fmt3_channel_path_desc(chp->chpid, &chp->desc_fmt3);
chpid             470 drivers/s390/cio/chp.c int chp_new(struct chp_id chpid)
chpid             472 drivers/s390/cio/chp.c 	struct channel_subsystem *css = css_by_id(chpid.cssid);
chpid             477 drivers/s390/cio/chp.c 	if (chp_is_registered(chpid))
chpid             486 drivers/s390/cio/chp.c 	chp->chpid = chpid;
chpid             501 drivers/s390/cio/chp.c 	dev_set_name(&chp->dev, "chp%x.%02x", chpid.cssid, chpid.id);
chpid             507 drivers/s390/cio/chp.c 			      chpid.cssid, chpid.id, ret);
chpid             519 drivers/s390/cio/chp.c 	css->chps[chpid.id] = chp;
chpid             535 drivers/s390/cio/chp.c struct channel_path_desc_fmt0 *chp_get_chp_desc(struct chp_id chpid)
chpid             540 drivers/s390/cio/chp.c 	chp = chpid_to_chp(chpid);
chpid             565 drivers/s390/cio/chp.c 	struct chp_id chpid;
chpid             585 drivers/s390/cio/chp.c 	chp_id_init(&chpid);
chpid             586 drivers/s390/cio/chp.c 	chpid.id = crw0->rsid;
chpid             590 drivers/s390/cio/chp.c 		chp_new(chpid);
chpid             591 drivers/s390/cio/chp.c 		chsc_chp_online(chpid);
chpid             595 drivers/s390/cio/chp.c 		chsc_chp_offline(chpid);
chpid             612 drivers/s390/cio/chp.c 		if (!chp_id_is_equal(&ssd->chpid[i], &link->chpid))
chpid             660 drivers/s390/cio/chp.c int chp_info_get_status(struct chp_id chpid)
chpid             669 drivers/s390/cio/chp.c 	bit = info_bit_num(chpid);
chpid             685 drivers/s390/cio/chp.c static enum cfg_task_t cfg_get_task(struct chp_id chpid)
chpid             687 drivers/s390/cio/chp.c 	return chp_cfg_task[chpid.cssid][chpid.id];
chpid             691 drivers/s390/cio/chp.c static void cfg_set_task(struct chp_id chpid, enum cfg_task_t cfg)
chpid             693 drivers/s390/cio/chp.c 	chp_cfg_task[chpid.cssid][chpid.id] = cfg;
chpid             697 drivers/s390/cio/chp.c static enum cfg_task_t chp_cfg_fetch_task(struct chp_id *chpid)
chpid             701 drivers/s390/cio/chp.c 	chp_id_for_each(chpid) {
chpid             702 drivers/s390/cio/chp.c 		t = cfg_get_task(*chpid);
chpid             714 drivers/s390/cio/chp.c 	struct chp_id chpid;
chpid             719 drivers/s390/cio/chp.c 	t = chp_cfg_fetch_task(&chpid);
chpid             724 drivers/s390/cio/chp.c 		rc = sclp_chp_configure(chpid);
chpid             727 drivers/s390/cio/chp.c 				      "%d\n", chpid.cssid, chpid.id, rc);
chpid             730 drivers/s390/cio/chp.c 			chsc_chp_online(chpid);
chpid             734 drivers/s390/cio/chp.c 		rc = sclp_chp_deconfigure(chpid);
chpid             737 drivers/s390/cio/chp.c 				      "%d\n", chpid.cssid, chpid.id, rc);
chpid             740 drivers/s390/cio/chp.c 			chsc_chp_offline(chpid);
chpid             750 drivers/s390/cio/chp.c 	if (t == cfg_get_task(chpid))
chpid             751 drivers/s390/cio/chp.c 		cfg_set_task(chpid, cfg_none);
chpid             763 drivers/s390/cio/chp.c void chp_cfg_schedule(struct chp_id chpid, int configure)
chpid             765 drivers/s390/cio/chp.c 	CIO_MSG_EVENT(2, "chp_cfg_sched%x.%02x=%d\n", chpid.cssid, chpid.id,
chpid             768 drivers/s390/cio/chp.c 	cfg_set_task(chpid, configure ? cfg_configure : cfg_deconfigure);
chpid             780 drivers/s390/cio/chp.c void chp_cfg_cancel_deconfigure(struct chp_id chpid)
chpid             782 drivers/s390/cio/chp.c 	CIO_MSG_EVENT(2, "chp_cfg_cancel:%x.%02x\n", chpid.cssid, chpid.id);
chpid             784 drivers/s390/cio/chp.c 	if (cfg_get_task(chpid) == cfg_deconfigure)
chpid             785 drivers/s390/cio/chp.c 		cfg_set_task(chpid, cfg_none);
chpid             791 drivers/s390/cio/chp.c 	struct chp_id chpid;
chpid             795 drivers/s390/cio/chp.c 	t = chp_cfg_fetch_task(&chpid);
chpid             810 drivers/s390/cio/chp.c 	struct chp_id chpid;
chpid             821 drivers/s390/cio/chp.c 	chp_id_for_each(&chpid) {
chpid             822 drivers/s390/cio/chp.c 		state = chp_info_get_status(chpid);
chpid             825 drivers/s390/cio/chp.c 			chp_new(chpid);
chpid              28 drivers/s390/cio/chp.h 	struct chp_id chpid;
chpid              44 drivers/s390/cio/chp.h 	struct chp_id chpid;
chpid              57 drivers/s390/cio/chp.h static inline struct channel_path *chpid_to_chp(struct chp_id chpid)
chpid              59 drivers/s390/cio/chp.h 	return css_by_id(chpid.cssid)->chps[chpid.id];
chpid              62 drivers/s390/cio/chp.h int chp_get_status(struct chp_id chpid);
chpid              64 drivers/s390/cio/chp.h int chp_is_registered(struct chp_id chpid);
chpid              65 drivers/s390/cio/chp.h struct channel_path_desc_fmt0 *chp_get_chp_desc(struct chp_id chpid);
chpid              69 drivers/s390/cio/chp.h int chp_new(struct chp_id chpid);
chpid              70 drivers/s390/cio/chp.h void chp_cfg_schedule(struct chp_id chpid, int configure);
chpid              71 drivers/s390/cio/chp.h void chp_cfg_cancel_deconfigure(struct chp_id chpid);
chpid              72 drivers/s390/cio/chp.h int chp_info_get_status(struct chp_id chpid);
chpid              93 drivers/s390/cio/chsc.c 	u8 chpid[8];	  /* chpids 0-7 */
chpid             143 drivers/s390/cio/chsc.c 			chp_id_init(&ssd->chpid[i]);
chpid             144 drivers/s390/cio/chsc.c 			ssd->chpid[i].id = ssd_area->chpid[i];
chpid             229 drivers/s390/cio/chsc.c void chsc_chp_offline(struct chp_id chpid)
chpid             231 drivers/s390/cio/chsc.c 	struct channel_path *chp = chpid_to_chp(chpid);
chpid             235 drivers/s390/cio/chsc.c 	sprintf(dbf_txt, "chpr%x.%02x", chpid.cssid, chpid.id);
chpid             238 drivers/s390/cio/chsc.c 	if (chp_get_status(chpid) <= 0)
chpid             241 drivers/s390/cio/chsc.c 	link.chpid = chpid;
chpid             266 drivers/s390/cio/chsc.c 	sprintf(dbf_txt, "accpr%x.%02x", link->chpid.cssid,
chpid             267 drivers/s390/cio/chsc.c 		link->chpid.id);
chpid             428 drivers/s390/cio/chsc.c 	struct chp_id chpid;
chpid             435 drivers/s390/cio/chsc.c 	chp_id_init(&chpid);
chpid             436 drivers/s390/cio/chsc.c 	chpid.id = sei_area->rsid;
chpid             438 drivers/s390/cio/chsc.c 	status = chp_get_status(chpid);
chpid             443 drivers/s390/cio/chsc.c 		chp_new(chpid);
chpid             445 drivers/s390/cio/chsc.c 		chp = chpid_to_chp(chpid);
chpid             451 drivers/s390/cio/chsc.c 	link.chpid = chpid;
chpid             467 drivers/s390/cio/chsc.c 	struct chp_id chpid;
chpid             475 drivers/s390/cio/chsc.c 	chp_id_init(&chpid);
chpid             479 drivers/s390/cio/chsc.c 		chpid.id = num;
chpid             482 drivers/s390/cio/chsc.c 			      "%x.%02x\n", chpid.cssid, chpid.id);
chpid             483 drivers/s390/cio/chsc.c 		chp = chpid_to_chp(chpid);
chpid             485 drivers/s390/cio/chsc.c 			chp_new(chpid);
chpid             503 drivers/s390/cio/chsc.c 	struct chp_id chpid;
chpid             511 drivers/s390/cio/chsc.c 	chp_id_init(&chpid);
chpid             515 drivers/s390/cio/chsc.c 		chpid.id = num;
chpid             517 drivers/s390/cio/chsc.c 			  events[data->op], chpid.cssid, chpid.id);
chpid             520 drivers/s390/cio/chsc.c 			chp_cfg_schedule(chpid, 1);
chpid             523 drivers/s390/cio/chsc.c 			chp_cfg_schedule(chpid, 0);
chpid             526 drivers/s390/cio/chsc.c 			chp_cfg_cancel_deconfigure(chpid);
chpid             691 drivers/s390/cio/chsc.c void chsc_chp_online(struct chp_id chpid)
chpid             693 drivers/s390/cio/chsc.c 	struct channel_path *chp = chpid_to_chp(chpid);
chpid             697 drivers/s390/cio/chsc.c 	sprintf(dbf_txt, "cadd%x.%02x", chpid.cssid, chpid.id);
chpid             700 drivers/s390/cio/chsc.c 	if (chp_get_status(chpid) != 0) {
chpid             702 drivers/s390/cio/chsc.c 		link.chpid = chpid;
chpid             717 drivers/s390/cio/chsc.c 					 struct chp_id chpid, int on)
chpid             723 drivers/s390/cio/chsc.c 	link.chpid = chpid;
chpid             733 drivers/s390/cio/chsc.c 	struct chp_id *chpid = data;
chpid             735 drivers/s390/cio/chsc.c 	__s390_subchannel_vary_chpid(sch, *chpid, 0);
chpid             741 drivers/s390/cio/chsc.c 	struct chp_id *chpid = data;
chpid             743 drivers/s390/cio/chsc.c 	__s390_subchannel_vary_chpid(sch, *chpid, 1);
chpid             752 drivers/s390/cio/chsc.c int chsc_chp_vary(struct chp_id chpid, int on)
chpid             754 drivers/s390/cio/chsc.c 	struct channel_path *chp = chpid_to_chp(chpid);
chpid             765 drivers/s390/cio/chsc.c 					   NULL, &chpid);
chpid             769 drivers/s390/cio/chsc.c 					   NULL, &chpid);
chpid             898 drivers/s390/cio/chsc.c int chsc_determine_channel_path_desc(struct chp_id chpid, int fmt, int rfmt,
chpid             916 drivers/s390/cio/chsc.c 	scpd_area->cssid = chpid.cssid;
chpid             917 drivers/s390/cio/chsc.c 	scpd_area->first_chpid = chpid.id;
chpid             918 drivers/s390/cio/chsc.c 	scpd_area->last_chpid = chpid.id;
chpid             938 drivers/s390/cio/chsc.c 	struct chp_id chpid, struct channel_path_desc_fmt##FMT *desc)	\
chpid             946 drivers/s390/cio/chsc.c 	ret = chsc_determine_channel_path_desc(chpid, 0, FMT, c, 0,	\
chpid             993 drivers/s390/cio/chsc.c 		u32 chpid : 8;
chpid            1013 drivers/s390/cio/chsc.c 	scmc_area->first_chpid = chp->chpid.id;
chpid            1014 drivers/s390/cio/chsc.c 	scmc_area->last_chpid = chp->chpid.id;
chpid              29 drivers/s390/cio/chsc.h 	u8 chpid;
chpid              69 drivers/s390/cio/chsc.h 	struct chp_id chpid[8];
chpid             152 drivers/s390/cio/chsc.h int chsc_chp_vary(struct chp_id chpid, int on);
chpid             153 drivers/s390/cio/chsc.h int chsc_determine_channel_path_desc(struct chp_id chpid, int fmt, int rfmt,
chpid             155 drivers/s390/cio/chsc.h int chsc_determine_fmt0_channel_path_desc(struct chp_id chpid,
chpid             157 drivers/s390/cio/chsc.h int chsc_determine_fmt1_channel_path_desc(struct chp_id chpid,
chpid             159 drivers/s390/cio/chsc.h int chsc_determine_fmt3_channel_path_desc(struct chp_id chpid,
chpid             161 drivers/s390/cio/chsc.h void chsc_chp_online(struct chp_id chpid);
chpid             162 drivers/s390/cio/chsc.h void chsc_chp_offline(struct chp_id chpid);
chpid             492 drivers/s390/cio/chsc_sch.c 	scpcd_area->cssid = cd->chpid.cssid;
chpid             493 drivers/s390/cio/chsc_sch.c 	scpcd_area->first_chpid = cd->chpid.id;
chpid             494 drivers/s390/cio/chsc_sch.c 	scpcd_area->last_chpid = cd->chpid.id;
chpid             725 drivers/s390/cio/chsc_sch.c 		u32 chpid : 8;
chpid             754 drivers/s390/cio/chsc_sch.c 		chpid_parm->m = ccl->req.chpid.m;
chpid             755 drivers/s390/cio/chsc_sch.c 		chpid_parm->cssid = ccl->req.chpid.chp.cssid;
chpid             756 drivers/s390/cio/chsc_sch.c 		chpid_parm->chpid = ccl->req.chpid.chp.id;
chpid             803 drivers/s390/cio/chsc_sch.c 	ret = chsc_determine_channel_path_desc(chpd->chpid, chpd->fmt,
chpid              37 drivers/s390/cio/cio.h 	u8  chpid[8];		/* CHPID 0-7 (if available) */
chpid             283 drivers/s390/cio/css.c 			chp_id_init(&ssd->chpid[i]);
chpid             284 drivers/s390/cio/css.c 			ssd->chpid[i].id = pmcw->chpid[i];
chpid             297 drivers/s390/cio/css.c 			chp_new(ssd->chpid[i]);
chpid             408 drivers/s390/cio/css.c 			ret += sprintf(buf + ret, "%02x ", ssd->chpid[chp].id);
chpid            1351 drivers/s390/cio/css.c 	struct chp_id chpid;
chpid            1354 drivers/s390/cio/css.c 	chp_id_for_each(&chpid) {
chpid            1355 drivers/s390/cio/css.c 		chp = chpid_to_chp(chpid);
chpid             175 drivers/s390/cio/device_fsm.c 	struct chp_id chpid;
chpid             177 drivers/s390/cio/device_fsm.c 	chp_id_init(&chpid);
chpid             184 drivers/s390/cio/device_fsm.c 		chpid.id = sch->schib.pmcw.chpid[i];
chpid             185 drivers/s390/cio/device_fsm.c 		if (!chp_is_registered(chpid))
chpid             478 drivers/s390/cio/device_ops.c 	struct chp_id chpid;
chpid             481 drivers/s390/cio/device_ops.c 	chp_id_init(&chpid);
chpid             482 drivers/s390/cio/device_ops.c 	chpid.id = sch->schib.pmcw.chpid[chp_idx];
chpid             483 drivers/s390/cio/device_ops.c 	return chp_get_chp_desc(chpid);
chpid             498 drivers/s390/cio/device_ops.c 	struct chp_id chpid;
chpid             501 drivers/s390/cio/device_ops.c 	chp_id_init(&chpid);
chpid             502 drivers/s390/cio/device_ops.c 	chpid.id = sch->schib.pmcw.chpid[chp_idx];
chpid             503 drivers/s390/cio/device_ops.c 	chp = chpid_to_chp(chpid);
chpid             644 drivers/s390/cio/device_ops.c 	struct chp_id chpid;
chpid             653 drivers/s390/cio/device_ops.c 	chp_id_init(&chpid);
chpid             657 drivers/s390/cio/device_ops.c 		chpid.id = sch->schib.pmcw.chpid[i];
chpid             658 drivers/s390/cio/device_ops.c 		chp = chpid_to_chp(chpid);
chpid              62 drivers/s390/cio/trace.h 		memcpy(&__entry->pmcw_chpid, &schib->pmcw.chpid, 8);
chpid             705 drivers/s390/net/qeth_core.h 	u8 chpid;
chpid             861 drivers/s390/net/qeth_core.h 	__u8 chpid;
chpid             607 drivers/s390/net/qeth_core_main.c 				 QETH_CARD_IFNAME(card), card->info.chpid);
chpid             615 drivers/s390/net/qeth_core_main.c 			 QETH_CARD_IFNAME(card), card->info.chpid);
chpid            1840 drivers/s390/net/qeth_core_main.c 	card->info.chpid = tag[0];
chpid            3041 drivers/s390/net/qeth_core_main.c 	tid->chpid = card->info.chpid;
chpid             669 drivers/s390/net/qeth_core_mpc.h 	__u8 chpid;
chpid              51 drivers/s390/net/qeth_core_sys.c 	return sprintf(buf, "%02X\n", card->info.chpid);
chpid              54 drivers/s390/net/qeth_core_sys.c static DEVICE_ATTR(chpid, 0444, qeth_dev_chpid_show, NULL);
chpid            1131 drivers/s390/net/qeth_l2_main.c 				token->chpid);
chpid             177 drivers/s390/scsi/zfcp_fsf.h 	u8  chpid;