pkg               171 arch/x86/events/amd/power.c EVENT_ATTR_STR(power-pkg, power_pkg, "event=0x01");
pkg               173 arch/x86/events/amd/power.c EVENT_ATTR_STR(power-pkg.unit, power_pkg_unit, "mWatts");
pkg               176 arch/x86/events/amd/power.c EVENT_ATTR_STR(power-pkg.scale, power_pkg_scale, "1.000000e-3");
pkg               399 arch/x86/events/intel/rapl.c RAPL_EVENT_ATTR_STR(energy-pkg  ,   rapl_pkg, "event=0x02");
pkg               405 arch/x86/events/intel/rapl.c RAPL_EVENT_ATTR_STR(energy-pkg.unit  ,   rapl_pkg_unit, "Joules");
pkg               414 arch/x86/events/intel/rapl.c RAPL_EVENT_ATTR_STR(energy-pkg.scale,     rapl_pkg_scale, "2.3283064365386962890625e-10");
pkg              2755 arch/x86/events/intel/uncore_snbep.c 	int pkg = boot_cpu_data.logical_proc_id;
pkg              2761 arch/x86/events/intel/uncore_snbep.c 	if (uncore_extra_pci_dev[pkg].dev[HSWEP_PCI_PCU_3]) {
pkg              2764 arch/x86/events/intel/uncore_snbep.c 		pci_read_config_dword(uncore_extra_pci_dev[pkg].dev[HSWEP_PCI_PCU_3],
pkg              3129 arch/x86/events/intel/uncore_snbep.c 	int pkg = topology_phys_to_logical_pkg(boot_cpu_data.phys_proc_id);
pkg              3139 arch/x86/events/intel/uncore_snbep.c 	} else if (uncore_extra_pci_dev[pkg].dev[HSWEP_PCI_PCU_3]) {
pkg              3143 arch/x86/events/intel/uncore_snbep.c 		pdev = uncore_extra_pci_dev[pkg].dev[HSWEP_PCI_PCU_3];
pkg              4365 arch/x86/events/intel/uncore_snbep.c 	int phys_id, pkg;
pkg              4374 arch/x86/events/intel/uncore_snbep.c 		pkg = topology_phys_to_logical_pkg(phys_id);
pkg              4375 arch/x86/events/intel/uncore_snbep.c 		if (pkg < 0)
pkg              4377 arch/x86/events/intel/uncore_snbep.c 		else if (pkg == id)
pkg               137 arch/x86/include/asm/topology.h int topology_phys_to_logical_pkg(unsigned int pkg);
pkg               147 arch/x86/include/asm/topology.h static inline int topology_phys_to_logical_pkg(unsigned int pkg) { return 0; }
pkg               336 arch/x86/kernel/smpboot.c int topology_update_package_map(unsigned int pkg, unsigned int cpu)
pkg               341 arch/x86/kernel/smpboot.c 	new = topology_phys_to_logical_pkg(pkg);
pkg               346 arch/x86/kernel/smpboot.c 	if (new != pkg) {
pkg               348 arch/x86/kernel/smpboot.c 			cpu, pkg, new);
pkg               662 drivers/acpi/acpica/aclocal.h 	struct acpi_pkg_state pkg;
pkg               350 drivers/acpi/acpica/dspkginit.c 		element_ptr = state->pkg.this_target_obj;
pkg               225 drivers/acpi/acpica/utcopy.c 	this_index = state->pkg.index;
pkg               227 drivers/acpi/acpica/utcopy.c 					       (state->pkg.dest_object))->
pkg               256 drivers/acpi/acpica/utcopy.c 		state->pkg.this_target_obj = target_object;
pkg               803 drivers/acpi/acpica/utcopy.c 	this_index = state->pkg.index;
pkg               805 drivers/acpi/acpica/utcopy.c 	    &state->pkg.dest_object->package.elements[this_index];
pkg               853 drivers/acpi/acpica/utcopy.c 		state->pkg.this_target_obj = target_object;
pkg               218 drivers/acpi/acpica/utmisc.c 		this_index = state->pkg.index;
pkg               220 drivers/acpi/acpica/utmisc.c 		    state->pkg.source_object->package.elements[this_index];
pkg               221 drivers/acpi/acpica/utmisc.c 		state->pkg.this_target_obj =
pkg               222 drivers/acpi/acpica/utmisc.c 		    &state->pkg.source_object->package.elements[this_index];
pkg               243 drivers/acpi/acpica/utmisc.c 			state->pkg.index++;
pkg               244 drivers/acpi/acpica/utmisc.c 			while (state->pkg.index >=
pkg               245 drivers/acpi/acpica/utmisc.c 			       state->pkg.source_object->package.count) {
pkg               271 drivers/acpi/acpica/utmisc.c 				state->pkg.index++;
pkg               290 drivers/acpi/acpica/utmisc.c 						     state->pkg.this_target_obj,
pkg               584 drivers/acpi/acpica/utobject.c 		state->pkg.this_target_obj = NULL;
pkg               209 drivers/acpi/acpica/utstate.c 	state->pkg.source_object = (union acpi_operand_object *)internal_object;
pkg               210 drivers/acpi/acpica/utstate.c 	state->pkg.dest_object = external_object;
pkg               211 drivers/acpi/acpica/utstate.c 	state->pkg.index = index;
pkg               212 drivers/acpi/acpica/utstate.c 	state->pkg.num_packages = 1;
pkg               220 drivers/acpi/nfit/core.c static union acpi_object *pkg_to_buf(union acpi_object *pkg)
pkg               227 drivers/acpi/nfit/core.c 	if (pkg->type != ACPI_TYPE_PACKAGE) {
pkg               229 drivers/acpi/nfit/core.c 				pkg->type);
pkg               233 drivers/acpi/nfit/core.c 	for (i = 0; i < pkg->package.count; i++) {
pkg               234 drivers/acpi/nfit/core.c 		union acpi_object *obj = &pkg->package.elements[i];
pkg               255 drivers/acpi/nfit/core.c 	for (i = 0; i < pkg->package.count; i++) {
pkg               256 drivers/acpi/nfit/core.c 		union acpi_object *obj = &pkg->package.elements[i];
pkg               267 drivers/acpi/nfit/core.c 	ACPI_FREE(pkg);
pkg                16 drivers/acpi/nfit/intel.c 		struct nd_cmd_pkg pkg;
pkg                19 drivers/acpi/nfit/intel.c 		.pkg = {
pkg                81 drivers/acpi/nfit/intel.c 		struct nd_cmd_pkg pkg;
pkg                84 drivers/acpi/nfit/intel.c 		.pkg = {
pkg               114 drivers/acpi/nfit/intel.c 		struct nd_cmd_pkg pkg;
pkg               117 drivers/acpi/nfit/intel.c 		.pkg = {
pkg               158 drivers/acpi/nfit/intel.c 		struct nd_cmd_pkg pkg;
pkg               161 drivers/acpi/nfit/intel.c 		.pkg = {
pkg               200 drivers/acpi/nfit/intel.c 		struct nd_cmd_pkg pkg;
pkg               203 drivers/acpi/nfit/intel.c 		.pkg = {
pkg               243 drivers/acpi/nfit/intel.c 		struct nd_cmd_pkg pkg;
pkg               246 drivers/acpi/nfit/intel.c 		.pkg = {
pkg               288 drivers/acpi/nfit/intel.c 		struct nd_cmd_pkg pkg;
pkg               291 drivers/acpi/nfit/intel.c 		.pkg = {
pkg               326 drivers/acpi/nfit/intel.c 		struct nd_cmd_pkg pkg;
pkg               329 drivers/acpi/nfit/intel.c 		.pkg = {
pkg               218 drivers/bcma/driver_chipcommon_pmu.c 		if (bus->chipinfo.pkg == 9 || bus->chipinfo.pkg == 11)
pkg                45 drivers/bcma/driver_mips.c 	       dev->bus->chipinfo.pkg == 11 &&
pkg               454 drivers/bcma/scan.c 	chipinfo->pkg = (tmp & BCMA_CC_ID_PKG) >> BCMA_CC_ID_PKG_SHIFT;
pkg               459 drivers/bcma/scan.c 		  chip_id, chipinfo->rev, chipinfo->pkg);
pkg              1084 drivers/edac/sb_edac.c static inline u8 sad_pkg_socket(u8 pkg)
pkg              1087 drivers/edac/sb_edac.c 	return ((pkg >> 3) << 2) | (pkg & 0x3);
pkg              1090 drivers/edac/sb_edac.c static inline u8 sad_pkg_ha(u8 pkg)
pkg              1092 drivers/edac/sb_edac.c 	return (pkg >> 2) & 0x1;
pkg              1348 drivers/edac/sb_edac.c 	u32 first_pkg, pkg;
pkg              1442 drivers/edac/sb_edac.c 			pkg = sad_pkg(pvt->info.interleave_pkg,
pkg              1445 drivers/edac/sb_edac.c 			if ((pkg & 0x8) == 0) {
pkg              1451 drivers/edac/sb_edac.c 					pkg);
pkg              1455 drivers/edac/sb_edac.c 			if (pkg == first_pkg)
pkg              1817 drivers/edac/sb_edac.c 			u32 pkg = sad_pkg(pvt->info.interleave_pkg, reg, j);
pkg              1818 drivers/edac/sb_edac.c 			if (j > 0 && sad_interl == pkg)
pkg              1822 drivers/edac/sb_edac.c 				 n_sads, j, pkg);
pkg              1942 drivers/edac/sb_edac.c 	u8			ch_way, sck_way, pkg, sad_ha = 0;
pkg              1998 drivers/edac/sb_edac.c 			u32 pkg = sad_pkg(pvt->info.interleave_pkg, reg, sad_way);
pkg              1999 drivers/edac/sb_edac.c 			if (sad_way > 0 && sad_interl == pkg)
pkg              2001 drivers/edac/sb_edac.c 			sad_interleave[sad_way] = pkg;
pkg              2052 drivers/edac/sb_edac.c 		pkg = sad_pkg(pvt->info.interleave_pkg, reg, idx);
pkg              2053 drivers/edac/sb_edac.c 		*socket = sad_pkg_socket(pkg);
pkg              2054 drivers/edac/sb_edac.c 		sad_ha = sad_pkg_ha(pkg);
pkg              2067 drivers/edac/sb_edac.c 		pkg = sad_pkg(pvt->info.interleave_pkg, reg, idx);
pkg              2068 drivers/edac/sb_edac.c 		*socket = sad_pkg_socket(pkg);
pkg              2069 drivers/edac/sb_edac.c 		sad_ha = sad_pkg_ha(pkg);
pkg                76 drivers/gpu/drm/i915/display/intel_acpi.c 	union acpi_object *pkg, *connector_count;
pkg                78 drivers/gpu/drm/i915/display/intel_acpi.c 	pkg = acpi_evaluate_dsm_typed(dhandle, &intel_dsm_guid,
pkg                81 drivers/gpu/drm/i915/display/intel_acpi.c 	if (!pkg) {
pkg                86 drivers/gpu/drm/i915/display/intel_acpi.c 	connector_count = &pkg->package.elements[0];
pkg                89 drivers/gpu/drm/i915/display/intel_acpi.c 	for (i = 1; i < pkg->package.count; i++) {
pkg                90 drivers/gpu/drm/i915/display/intel_acpi.c 		union acpi_object *obj = &pkg->package.elements[i];
pkg               105 drivers/gpu/drm/i915/display/intel_acpi.c 	ACPI_FREE(pkg);
pkg                93 drivers/i2c/busses/i2c-scmi.c 	union acpi_object *pkg;
pkg               188 drivers/i2c/busses/i2c-scmi.c 	pkg = buffer.pointer;
pkg               189 drivers/i2c/busses/i2c-scmi.c 	if (pkg && pkg->type == ACPI_TYPE_PACKAGE)
pkg               190 drivers/i2c/busses/i2c-scmi.c 		obj = pkg->package.elements;
pkg               227 drivers/i2c/busses/i2c-scmi.c 	obj = pkg->package.elements + 1;
pkg               235 drivers/i2c/busses/i2c-scmi.c 	obj = pkg->package.elements + 2;
pkg               720 drivers/md/dm-log-userspace-base.c 	} pkg;
pkg               725 drivers/md/dm-log-userspace-base.c 	rdata_size = sizeof(pkg);
pkg               727 drivers/md/dm-log-userspace-base.c 				 NULL, 0, (char *)&pkg, &rdata_size);
pkg               729 drivers/md/dm-log-userspace-base.c 	*region = pkg.r;
pkg               730 drivers/md/dm-log-userspace-base.c 	return (r) ? r : (int)pkg.i;
pkg               746 drivers/md/dm-log-userspace-base.c 	} pkg;
pkg               748 drivers/md/dm-log-userspace-base.c 	pkg.r = region;
pkg               749 drivers/md/dm-log-userspace-base.c 	pkg.i = (int64_t)in_sync;
pkg               752 drivers/md/dm-log-userspace-base.c 				    (char *)&pkg, sizeof(pkg), NULL, NULL);
pkg               842 drivers/md/dm-log-userspace-base.c 	} pkg;
pkg               843 drivers/md/dm-log-userspace-base.c 	size_t rdata_size = sizeof(pkg);
pkg               860 drivers/md/dm-log-userspace-base.c 				 (char *)&pkg, &rdata_size);
pkg               864 drivers/md/dm-log-userspace-base.c 	lc->in_sync_hint = pkg.in_sync_hint;
pkg               866 drivers/md/dm-log-userspace-base.c 	return (int)pkg.is_recovering;
pkg                85 drivers/md/dm-log-userspace-transfer.c 	struct receiving_pkg *pkg;
pkg                97 drivers/md/dm-log-userspace-transfer.c 	list_for_each_entry(pkg, &receiving_list, list) {
pkg                98 drivers/md/dm-log-userspace-transfer.c 		if (rtn_seq != pkg->seq)
pkg               102 drivers/md/dm-log-userspace-transfer.c 			pkg->error = -msg->ack;
pkg               108 drivers/md/dm-log-userspace-transfer.c 			if (pkg->error != -EAGAIN)
pkg               109 drivers/md/dm-log-userspace-transfer.c 				*(pkg->data_size) = 0;
pkg               110 drivers/md/dm-log-userspace-transfer.c 		} else if (tfr->data_size > *(pkg->data_size)) {
pkg               113 drivers/md/dm-log-userspace-transfer.c 			      tfr->data_size, *(pkg->data_size));
pkg               115 drivers/md/dm-log-userspace-transfer.c 			*(pkg->data_size) = 0;
pkg               116 drivers/md/dm-log-userspace-transfer.c 			pkg->error = -ENOSPC;
pkg               118 drivers/md/dm-log-userspace-transfer.c 			pkg->error = tfr->error;
pkg               119 drivers/md/dm-log-userspace-transfer.c 			memcpy(pkg->data, tfr->data, tfr->data_size);
pkg               120 drivers/md/dm-log-userspace-transfer.c 			*(pkg->data_size) = tfr->data_size;
pkg               122 drivers/md/dm-log-userspace-transfer.c 		complete(&pkg->complete);
pkg               179 drivers/md/dm-log-userspace-transfer.c 	struct receiving_pkg pkg;
pkg               217 drivers/md/dm-log-userspace-transfer.c 	memset(&pkg, 0, sizeof(pkg));
pkg               218 drivers/md/dm-log-userspace-transfer.c 	init_completion(&pkg.complete);
pkg               219 drivers/md/dm-log-userspace-transfer.c 	pkg.seq = tfr->seq;
pkg               220 drivers/md/dm-log-userspace-transfer.c 	pkg.data_size = rdata_size;
pkg               221 drivers/md/dm-log-userspace-transfer.c 	pkg.data = rdata;
pkg               223 drivers/md/dm-log-userspace-transfer.c 	list_add(&(pkg.list), &receiving_list);
pkg               234 drivers/md/dm-log-userspace-transfer.c 		list_del_init(&(pkg.list));
pkg               240 drivers/md/dm-log-userspace-transfer.c 	tmo = wait_for_completion_timeout(&(pkg.complete), DM_ULOG_RETRY_TIMEOUT);
pkg               242 drivers/md/dm-log-userspace-transfer.c 	list_del_init(&(pkg.list));
pkg               248 drivers/md/dm-log-userspace-transfer.c 		       request_type, pkg.seq);
pkg               252 drivers/md/dm-log-userspace-transfer.c 	r = pkg.error;
pkg               149 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	if ((ci->id == BCMA_CHIP_ID_BCM5357 && ci->pkg != 10) ||
pkg               150 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	    (ci->id == BCMA_CHIP_ID_BCM4749 && ci->pkg != 10) ||
pkg               151 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c 	    (ci->id == BCMA_CHIP_ID_BCM53572 && ci->pkg != 9)) {
pkg               231 drivers/net/ethernet/broadcom/bgmac-bcma.c 		if (ci->pkg == BCMA_PKG_ID_BCM47188 ||
pkg               232 drivers/net/ethernet/broadcom/bgmac-bcma.c 		    ci->pkg == BCMA_PKG_ID_BCM47186) {
pkg               236 drivers/net/ethernet/broadcom/bgmac-bcma.c 		if (ci->pkg == BCMA_PKG_ID_BCM5358)
pkg               242 drivers/net/ethernet/broadcom/bgmac-bcma.c 		if (ci->pkg == BCMA_PKG_ID_BCM47189)
pkg               246 drivers/net/ethernet/broadcom/bgmac-bcma.c 			if (ci->pkg == BCMA_PKG_ID_BCM47189)
pkg               259 drivers/net/ethernet/broadcom/bgmac-bcma.c 		if (ci->pkg == 10) {
pkg               538 drivers/net/ethernet/intel/ice/ice_flex_pipe.c static enum ice_status ice_verify_pkg(struct ice_pkg_hdr *pkg, u32 len)
pkg               543 drivers/net/ethernet/intel/ice/ice_flex_pipe.c 	if (len < sizeof(*pkg))
pkg               546 drivers/net/ethernet/intel/ice/ice_flex_pipe.c 	if (pkg->format_ver.major != ICE_PKG_FMT_VER_MAJ ||
pkg               547 drivers/net/ethernet/intel/ice/ice_flex_pipe.c 	    pkg->format_ver.minor != ICE_PKG_FMT_VER_MNR ||
pkg               548 drivers/net/ethernet/intel/ice/ice_flex_pipe.c 	    pkg->format_ver.update != ICE_PKG_FMT_VER_UPD ||
pkg               549 drivers/net/ethernet/intel/ice/ice_flex_pipe.c 	    pkg->format_ver.draft != ICE_PKG_FMT_VER_DFT)
pkg               553 drivers/net/ethernet/intel/ice/ice_flex_pipe.c 	seg_count = le32_to_cpu(pkg->seg_count);
pkg               558 drivers/net/ethernet/intel/ice/ice_flex_pipe.c 	if (len < sizeof(*pkg) + ((seg_count - 1) * sizeof(pkg->seg_offset)))
pkg               563 drivers/net/ethernet/intel/ice/ice_flex_pipe.c 		u32 off = le32_to_cpu(pkg->seg_offset[i]);
pkg               570 drivers/net/ethernet/intel/ice/ice_flex_pipe.c 		seg = (struct ice_generic_seg_hdr *)((u8 *)pkg + off);
pkg               657 drivers/net/ethernet/intel/ice/ice_flex_pipe.c 	struct ice_pkg_hdr *pkg;
pkg               664 drivers/net/ethernet/intel/ice/ice_flex_pipe.c 	pkg = (struct ice_pkg_hdr *)buf;
pkg               665 drivers/net/ethernet/intel/ice/ice_flex_pipe.c 	status = ice_verify_pkg(pkg, len);
pkg               673 drivers/net/ethernet/intel/ice/ice_flex_pipe.c 	status = ice_init_pkg_info(hw, pkg);
pkg               685 drivers/net/ethernet/intel/ice/ice_flex_pipe.c 	seg = (struct ice_seg *)ice_find_seg_in_pkg(hw, SEGMENT_TYPE_ICE, pkg);
pkg               393 drivers/net/thunderbolt.c 	const struct thunderbolt_ip_login *pkg = buf;
pkg               403 drivers/net/thunderbolt.c 	if (!uuid_equal(&pkg->hdr.initiator_uuid, net->xd->remote_uuid))
pkg               405 drivers/net/thunderbolt.c 	if (!uuid_equal(&pkg->hdr.target_uuid, net->xd->local_uuid))
pkg               408 drivers/net/thunderbolt.c 	route = ((u64)pkg->hdr.route_hi << 32) | pkg->hdr.route_lo;
pkg               413 drivers/net/thunderbolt.c 	sequence = pkg->hdr.length_sn & TBIP_HDR_SN_MASK;
pkg               415 drivers/net/thunderbolt.c 	command_id = pkg->hdr.command_id;
pkg               417 drivers/net/thunderbolt.c 	switch (pkg->hdr.type) {
pkg               423 drivers/net/thunderbolt.c 					   pkg->hdr.command_id);
pkg               427 drivers/net/thunderbolt.c 			net->transmit_path = pkg->transmit_path;
pkg               113 drivers/net/wireless/broadcom/b43/bus.c 	dev->chip_pkg = core->bus->chipinfo.pkg;
pkg               483 drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.c 	sih->chippkg = pbus->chipinfo.pkg;
pkg                88 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c 		   bus->chipinfo.id, bus->chipinfo.rev, bus->chipinfo.pkg,
pkg              1212 drivers/net/wireless/realtek/rtw88/main.h 	u32 pkg:4;
pkg              1226 drivers/net/wireless/realtek/rtw88/main.h 	u32 pkg:4;
pkg               772 drivers/net/wireless/realtek/rtw88/phy.c void rtw_phy_setup_phy_cond(struct rtw_dev *rtwdev, u32 pkg)
pkg               779 drivers/net/wireless/realtek/rtw88/phy.c 	cond.pkg = pkg ? pkg : 15;
pkg               809 drivers/net/wireless/realtek/rtw88/phy.c 	if (cond.pkg && cond.pkg != drv_cond.pkg)
pkg                30 drivers/net/wireless/realtek/rtw88/phy.h void rtw_phy_setup_phy_cond(struct rtw_dev *rtwdev, u32 pkg);
pkg               836 drivers/nvdimm/bus.c 		struct nd_cmd_pkg *pkg = buf;
pkg               838 drivers/nvdimm/bus.c 		return pkg->nd_size_in;
pkg               877 drivers/nvdimm/bus.c 		struct nd_cmd_pkg *pkg = (struct nd_cmd_pkg *) in_field;
pkg               879 drivers/nvdimm/bus.c 		return pkg->nd_size_out;
pkg               991 drivers/nvdimm/bus.c 	struct nd_cmd_pkg pkg;
pkg              1009 drivers/nvdimm/bus.c 		if (copy_from_user(&pkg, p, sizeof(pkg)))
pkg              1061 drivers/nvdimm/bus.c 		func = pkg.nd_command;
pkg              1063 drivers/nvdimm/bus.c 				dimm_name, pkg.nd_command,
pkg               113 drivers/pinctrl/stm32/pinctrl-stm32.c 	u32 pkg;
pkg              1335 drivers/pinctrl/stm32/pinctrl-stm32.c 		if (pctl->pkg && !(pctl->pkg & p->pkg))
pkg              1351 drivers/pinctrl/stm32/pinctrl-stm32.c 	if (of_property_read_u32(np, "st,package", &pctl->pkg)) {
pkg              1352 drivers/pinctrl/stm32/pinctrl-stm32.c 		pctl->pkg = 0;
pkg              1355 drivers/pinctrl/stm32/pinctrl-stm32.c 		dev_dbg(pctl->dev, "package detected: %x\n", pctl->pkg);
pkg                35 drivers/pinctrl/stm32/pinctrl-stm32.h 	const unsigned int pkg;
pkg                48 drivers/pinctrl/stm32/pinctrl-stm32.h 		.pkg  = _pkg,				\
pkg               942 drivers/staging/rts5208/rtsx_chip.h #define CHECK_BARO_PKG(chip, pkg)	((chip)->baro_pkg == (pkg))
pkg               147 drivers/thunderbolt/ctl.c tb_cfg_request_find(struct tb_ctl *ctl, struct ctl_pkg *pkg)
pkg               152 drivers/thunderbolt/ctl.c 	mutex_lock(&pkg->ctl->request_queue_lock);
pkg               153 drivers/thunderbolt/ctl.c 	list_for_each_entry(req, &pkg->ctl->request_queue, list) {
pkg               155 drivers/thunderbolt/ctl.c 		if (req->match(req, pkg)) {
pkg               161 drivers/thunderbolt/ctl.c 	mutex_unlock(&pkg->ctl->request_queue_lock);
pkg               169 drivers/thunderbolt/ctl.c static int check_header(const struct ctl_pkg *pkg, u32 len,
pkg               172 drivers/thunderbolt/ctl.c 	struct tb_cfg_header *header = pkg->buffer;
pkg               175 drivers/thunderbolt/ctl.c 	if (WARN(len != pkg->frame.size,
pkg               177 drivers/thunderbolt/ctl.c 			len, pkg->frame.size))
pkg               179 drivers/thunderbolt/ctl.c 	if (WARN(type != pkg->frame.eof, "wrong eof (expected %#x, got %#x)\n",
pkg               180 drivers/thunderbolt/ctl.c 			type, pkg->frame.eof))
pkg               182 drivers/thunderbolt/ctl.c 	if (WARN(pkg->frame.sof, "wrong sof (expected 0x0, got %#x)\n",
pkg               183 drivers/thunderbolt/ctl.c 			pkg->frame.sof))
pkg               221 drivers/thunderbolt/ctl.c 	struct cfg_error_pkg *pkg = response->buffer;
pkg               223 drivers/thunderbolt/ctl.c 	res.response_route = tb_cfg_get_route(&pkg->header);
pkg               225 drivers/thunderbolt/ctl.c 	res.err = check_header(response, sizeof(*pkg), TB_CFG_PKG_ERROR,
pkg               226 drivers/thunderbolt/ctl.c 			       tb_cfg_get_route(&pkg->header));
pkg               230 drivers/thunderbolt/ctl.c 	WARN(pkg->zero1, "pkg->zero1 is %#x\n", pkg->zero1);
pkg               231 drivers/thunderbolt/ctl.c 	WARN(pkg->zero2, "pkg->zero1 is %#x\n", pkg->zero1);
pkg               232 drivers/thunderbolt/ctl.c 	WARN(pkg->zero3, "pkg->zero1 is %#x\n", pkg->zero1);
pkg               234 drivers/thunderbolt/ctl.c 	res.tb_error = pkg->error;
pkg               235 drivers/thunderbolt/ctl.c 	res.response_port = pkg->port;
pkg               240 drivers/thunderbolt/ctl.c static struct tb_cfg_result parse_header(const struct ctl_pkg *pkg, u32 len,
pkg               243 drivers/thunderbolt/ctl.c 	struct tb_cfg_header *header = pkg->buffer;
pkg               246 drivers/thunderbolt/ctl.c 	if (pkg->frame.eof == TB_CFG_PKG_ERROR)
pkg               247 drivers/thunderbolt/ctl.c 		return decode_error(pkg);
pkg               251 drivers/thunderbolt/ctl.c 	res.err = check_header(pkg, len, type, route);
pkg               299 drivers/thunderbolt/ctl.c static void tb_ctl_pkg_free(struct ctl_pkg *pkg)
pkg               301 drivers/thunderbolt/ctl.c 	if (pkg) {
pkg               302 drivers/thunderbolt/ctl.c 		dma_pool_free(pkg->ctl->frame_pool,
pkg               303 drivers/thunderbolt/ctl.c 			      pkg->buffer, pkg->frame.buffer_phy);
pkg               304 drivers/thunderbolt/ctl.c 		kfree(pkg);
pkg               310 drivers/thunderbolt/ctl.c 	struct ctl_pkg *pkg = kzalloc(sizeof(*pkg), GFP_KERNEL);
pkg               311 drivers/thunderbolt/ctl.c 	if (!pkg)
pkg               313 drivers/thunderbolt/ctl.c 	pkg->ctl = ctl;
pkg               314 drivers/thunderbolt/ctl.c 	pkg->buffer = dma_pool_alloc(ctl->frame_pool, GFP_KERNEL,
pkg               315 drivers/thunderbolt/ctl.c 				     &pkg->frame.buffer_phy);
pkg               316 drivers/thunderbolt/ctl.c 	if (!pkg->buffer) {
pkg               317 drivers/thunderbolt/ctl.c 		kfree(pkg);
pkg               320 drivers/thunderbolt/ctl.c 	return pkg;
pkg               329 drivers/thunderbolt/ctl.c 	struct ctl_pkg *pkg = container_of(frame, typeof(*pkg), frame);
pkg               330 drivers/thunderbolt/ctl.c 	tb_ctl_pkg_free(pkg);
pkg               344 drivers/thunderbolt/ctl.c 	struct ctl_pkg *pkg;
pkg               354 drivers/thunderbolt/ctl.c 	pkg = tb_ctl_pkg_alloc(ctl);
pkg               355 drivers/thunderbolt/ctl.c 	if (!pkg)
pkg               357 drivers/thunderbolt/ctl.c 	pkg->frame.callback = tb_ctl_tx_callback;
pkg               358 drivers/thunderbolt/ctl.c 	pkg->frame.size = len + 4;
pkg               359 drivers/thunderbolt/ctl.c 	pkg->frame.sof = type;
pkg               360 drivers/thunderbolt/ctl.c 	pkg->frame.eof = type;
pkg               361 drivers/thunderbolt/ctl.c 	cpu_to_be32_array(pkg->buffer, data, len / 4);
pkg               362 drivers/thunderbolt/ctl.c 	*(__be32 *) (pkg->buffer + len) = tb_crc(pkg->buffer, len);
pkg               364 drivers/thunderbolt/ctl.c 	res = tb_ring_tx(ctl->tx, &pkg->frame);
pkg               366 drivers/thunderbolt/ctl.c 		tb_ctl_pkg_free(pkg);
pkg               374 drivers/thunderbolt/ctl.c 				struct ctl_pkg *pkg, size_t size)
pkg               376 drivers/thunderbolt/ctl.c 	return ctl->callback(ctl->callback_data, type, pkg->buffer, size);
pkg               379 drivers/thunderbolt/ctl.c static void tb_ctl_rx_submit(struct ctl_pkg *pkg)
pkg               381 drivers/thunderbolt/ctl.c 	tb_ring_rx(pkg->ctl->rx, &pkg->frame); /*
pkg               389 drivers/thunderbolt/ctl.c static int tb_async_error(const struct ctl_pkg *pkg)
pkg               391 drivers/thunderbolt/ctl.c 	const struct cfg_error_pkg *error = (const struct cfg_error_pkg *)pkg;
pkg               393 drivers/thunderbolt/ctl.c 	if (pkg->frame.eof != TB_CFG_PKG_ERROR)
pkg               410 drivers/thunderbolt/ctl.c 	struct ctl_pkg *pkg = container_of(frame, typeof(*pkg), frame);
pkg               421 drivers/thunderbolt/ctl.c 		tb_ctl_err(pkg->ctl, "RX: invalid size %#x, dropping packet\n",
pkg               427 drivers/thunderbolt/ctl.c 	crc32 = tb_crc(pkg->buffer, frame->size);
pkg               428 drivers/thunderbolt/ctl.c 	be32_to_cpu_array(pkg->buffer, pkg->buffer, frame->size / 4);
pkg               436 drivers/thunderbolt/ctl.c 		if (*(__be32 *)(pkg->buffer + frame->size) != crc32) {
pkg               437 drivers/thunderbolt/ctl.c 			tb_ctl_err(pkg->ctl,
pkg               441 drivers/thunderbolt/ctl.c 		if (tb_async_error(pkg)) {
pkg               442 drivers/thunderbolt/ctl.c 			tb_ctl_handle_event(pkg->ctl, frame->eof,
pkg               443 drivers/thunderbolt/ctl.c 					    pkg, frame->size);
pkg               451 drivers/thunderbolt/ctl.c 		if (*(__be32 *)(pkg->buffer + frame->size) != crc32) {
pkg               452 drivers/thunderbolt/ctl.c 			tb_ctl_err(pkg->ctl,
pkg               458 drivers/thunderbolt/ctl.c 		if (tb_ctl_handle_event(pkg->ctl, frame->eof, pkg, frame->size))
pkg               472 drivers/thunderbolt/ctl.c 	req = tb_cfg_request_find(pkg->ctl, pkg);
pkg               474 drivers/thunderbolt/ctl.c 		if (req->copy(req, pkg))
pkg               480 drivers/thunderbolt/ctl.c 	tb_ctl_rx_submit(pkg);
pkg               718 drivers/thunderbolt/ctl.c 	struct cfg_error_pkg pkg = {
pkg               724 drivers/thunderbolt/ctl.c 	return tb_ctl_tx(ctl, &pkg, sizeof(pkg), TB_CFG_PKG_ERROR);
pkg               728 drivers/thunderbolt/ctl.c 			 const struct ctl_pkg *pkg)
pkg               730 drivers/thunderbolt/ctl.c 	u64 route = tb_cfg_get_route(pkg->buffer) & ~BIT_ULL(63);
pkg               732 drivers/thunderbolt/ctl.c 	if (pkg->frame.eof == TB_CFG_PKG_ERROR)
pkg               735 drivers/thunderbolt/ctl.c 	if (pkg->frame.eof != req->response_type)
pkg               739 drivers/thunderbolt/ctl.c 	if (pkg->frame.size != req->response_size)
pkg               742 drivers/thunderbolt/ctl.c 	if (pkg->frame.eof == TB_CFG_PKG_READ ||
pkg               743 drivers/thunderbolt/ctl.c 	    pkg->frame.eof == TB_CFG_PKG_WRITE) {
pkg               745 drivers/thunderbolt/ctl.c 		const struct cfg_read_pkg *res_hdr = pkg->buffer;
pkg               754 drivers/thunderbolt/ctl.c static bool tb_cfg_copy(struct tb_cfg_request *req, const struct ctl_pkg *pkg)
pkg               759 drivers/thunderbolt/ctl.c 	res = parse_header(pkg, req->response_size, req->response_type,
pkg               762 drivers/thunderbolt/ctl.c 		memcpy(req->response, pkg->buffer, req->response_size);
pkg                88 drivers/thunderbolt/ctl.h 		      const struct ctl_pkg *pkg);
pkg                89 drivers/thunderbolt/ctl.h 	bool (*copy)(struct tb_cfg_request *req, const struct ctl_pkg *pkg);
pkg                66 drivers/thunderbolt/dma_port.c 			   const struct ctl_pkg *pkg)
pkg                68 drivers/thunderbolt/dma_port.c 	u64 route = tb_cfg_get_route(pkg->buffer) & ~BIT_ULL(63);
pkg                70 drivers/thunderbolt/dma_port.c 	if (pkg->frame.eof == TB_CFG_PKG_ERROR)
pkg                72 drivers/thunderbolt/dma_port.c 	if (pkg->frame.eof != req->response_type)
pkg                76 drivers/thunderbolt/dma_port.c 	if (pkg->frame.size != req->response_size)
pkg                82 drivers/thunderbolt/dma_port.c static bool dma_port_copy(struct tb_cfg_request *req, const struct ctl_pkg *pkg)
pkg                84 drivers/thunderbolt/dma_port.c 	memcpy(req->response, pkg->buffer, req->response_size);
pkg               105 drivers/thunderbolt/icm.c 	struct icm_pkg_header *pkg;
pkg               239 drivers/thunderbolt/icm.c 		      const struct ctl_pkg *pkg)
pkg               241 drivers/thunderbolt/icm.c 	const struct icm_pkg_header *res_hdr = pkg->buffer;
pkg               244 drivers/thunderbolt/icm.c 	if (pkg->frame.eof != req->response_type)
pkg               252 drivers/thunderbolt/icm.c static bool icm_copy(struct tb_cfg_request *req, const struct ctl_pkg *pkg)
pkg               254 drivers/thunderbolt/icm.c 	const struct icm_pkg_header *hdr = pkg->buffer;
pkg               259 drivers/thunderbolt/icm.c 		memcpy(req->response + offset, pkg->buffer, req->response_size);
pkg               696 drivers/thunderbolt/icm.c 	const struct icm_fr_event_device_connected *pkg =
pkg               710 drivers/thunderbolt/icm.c 	link = pkg->link_info & ICM_LINK_INFO_LINK_MASK;
pkg               711 drivers/thunderbolt/icm.c 	depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >>
pkg               713 drivers/thunderbolt/icm.c 	authorized = pkg->link_info & ICM_LINK_INFO_APPROVED;
pkg               714 drivers/thunderbolt/icm.c 	security_level = (pkg->hdr.flags & ICM_FLAGS_SLEVEL_MASK) >>
pkg               716 drivers/thunderbolt/icm.c 	boot = pkg->link_info & ICM_LINK_INFO_BOOT;
pkg               718 drivers/thunderbolt/icm.c 	if (pkg->link_info & ICM_LINK_INFO_REJECTED) {
pkg               724 drivers/thunderbolt/icm.c 	sw = tb_switch_find_by_uuid(tb, &pkg->ep_uuid);
pkg               758 drivers/thunderbolt/icm.c 			update_switch(parent_sw, sw, route, pkg->connection_id,
pkg               759 drivers/thunderbolt/icm.c 				      pkg->connection_key, link, depth, boot);
pkg               814 drivers/thunderbolt/icm.c 	add_switch(parent_sw, route, &pkg->ep_uuid, (const u8 *)pkg->ep_name,
pkg               815 drivers/thunderbolt/icm.c 		   sizeof(pkg->ep_name), pkg->connection_id,
pkg               816 drivers/thunderbolt/icm.c 		   pkg->connection_key, link, depth, security_level,
pkg               825 drivers/thunderbolt/icm.c 	const struct icm_fr_event_device_disconnected *pkg =
pkg               830 drivers/thunderbolt/icm.c 	link = pkg->link_info & ICM_LINK_INFO_LINK_MASK;
pkg               831 drivers/thunderbolt/icm.c 	depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >>
pkg               853 drivers/thunderbolt/icm.c 	const struct icm_fr_event_xdomain_connected *pkg =
pkg               860 drivers/thunderbolt/icm.c 	link = pkg->link_info & ICM_LINK_INFO_LINK_MASK;
pkg               861 drivers/thunderbolt/icm.c 	depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >>
pkg               869 drivers/thunderbolt/icm.c 	route = get_route(pkg->local_route_hi, pkg->local_route_lo);
pkg               871 drivers/thunderbolt/icm.c 	xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid);
pkg               931 drivers/thunderbolt/icm.c 	add_xdomain(sw, route, &pkg->local_uuid, &pkg->remote_uuid, link,
pkg               939 drivers/thunderbolt/icm.c 	const struct icm_fr_event_xdomain_disconnected *pkg =
pkg               948 drivers/thunderbolt/icm.c 	xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid);
pkg              1143 drivers/thunderbolt/icm.c 	const struct icm_tr_event_device_connected *pkg =
pkg              1158 drivers/thunderbolt/icm.c 	if (pkg->hdr.packet_id)
pkg              1161 drivers/thunderbolt/icm.c 	route = get_route(pkg->route_hi, pkg->route_lo);
pkg              1162 drivers/thunderbolt/icm.c 	authorized = pkg->link_info & ICM_LINK_INFO_APPROVED;
pkg              1163 drivers/thunderbolt/icm.c 	security_level = (pkg->hdr.flags & ICM_FLAGS_SLEVEL_MASK) >>
pkg              1165 drivers/thunderbolt/icm.c 	boot = pkg->link_info & ICM_LINK_INFO_BOOT;
pkg              1167 drivers/thunderbolt/icm.c 	if (pkg->link_info & ICM_LINK_INFO_REJECTED) {
pkg              1173 drivers/thunderbolt/icm.c 	sw = tb_switch_find_by_uuid(tb, &pkg->ep_uuid);
pkg              1178 drivers/thunderbolt/icm.c 			update_switch(parent_sw, sw, route, pkg->connection_id,
pkg              1208 drivers/thunderbolt/icm.c 	sw = add_switch(parent_sw, route, &pkg->ep_uuid, (const u8 *)pkg->ep_name,
pkg              1209 drivers/thunderbolt/icm.c 			sizeof(pkg->ep_name), pkg->connection_id, 0, 0, 0,
pkg              1226 drivers/thunderbolt/icm.c 	const struct icm_tr_event_device_disconnected *pkg =
pkg              1231 drivers/thunderbolt/icm.c 	route = get_route(pkg->route_hi, pkg->route_lo);
pkg              1246 drivers/thunderbolt/icm.c 	const struct icm_tr_event_xdomain_connected *pkg =
pkg              1255 drivers/thunderbolt/icm.c 	route = get_route(pkg->local_route_hi, pkg->local_route_lo);
pkg              1257 drivers/thunderbolt/icm.c 	xd = tb_xdomain_find_by_uuid(tb, &pkg->remote_uuid);
pkg              1293 drivers/thunderbolt/icm.c 	add_xdomain(sw, route, &pkg->local_uuid, &pkg->remote_uuid, 0, 0);
pkg              1300 drivers/thunderbolt/icm.c 	const struct icm_tr_event_xdomain_disconnected *pkg =
pkg              1305 drivers/thunderbolt/icm.c 	route = get_route(pkg->route_hi, pkg->route_lo);
pkg              1577 drivers/thunderbolt/icm.c 	const struct icm_icl_event_rtd3_veto *pkg =
pkg              1580 drivers/thunderbolt/icm.c 	tb_dbg(tb, "ICM rtd3 veto=0x%08x\n", pkg->veto_reason);
pkg              1582 drivers/thunderbolt/icm.c 	if (pkg->veto_reason)
pkg              1602 drivers/thunderbolt/icm.c 		switch (n->pkg->code) {
pkg              1604 drivers/thunderbolt/icm.c 			icm->device_connected(tb, n->pkg);
pkg              1607 drivers/thunderbolt/icm.c 			icm->device_disconnected(tb, n->pkg);
pkg              1610 drivers/thunderbolt/icm.c 			icm->xdomain_connected(tb, n->pkg);
pkg              1613 drivers/thunderbolt/icm.c 			icm->xdomain_disconnected(tb, n->pkg);
pkg              1616 drivers/thunderbolt/icm.c 			icm->rtd3_veto(tb, n->pkg);
pkg              1623 drivers/thunderbolt/icm.c 	kfree(n->pkg);
pkg              1637 drivers/thunderbolt/icm.c 	n->pkg = kmemdup(buf, size, GFP_KERNEL);
pkg               590 drivers/thunderbolt/tb.c 	const struct cfg_event_pkg *pkg = buf;
pkg               598 drivers/thunderbolt/tb.c 	route = tb_cfg_get_route(&pkg->header);
pkg               600 drivers/thunderbolt/tb.c 	if (tb_cfg_error(tb->ctl, route, pkg->port,
pkg               603 drivers/thunderbolt/tb.c 			pkg->port);
pkg               606 drivers/thunderbolt/tb.c 	tb_queue_hotplug(tb, route, pkg->port, pkg->unplug);
pkg                27 drivers/thunderbolt/xdomain.c 	struct tb_xdp_header *pkg;
pkg                49 drivers/thunderbolt/xdomain.c 			     const struct ctl_pkg *pkg)
pkg                51 drivers/thunderbolt/xdomain.c 	switch (pkg->frame.eof) {
pkg                56 drivers/thunderbolt/xdomain.c 		const struct tb_xdp_header *res_hdr = pkg->buffer;
pkg                59 drivers/thunderbolt/xdomain.c 		if (pkg->frame.size < req->response_size / 4)
pkg                82 drivers/thunderbolt/xdomain.c 			    const struct ctl_pkg *pkg)
pkg                84 drivers/thunderbolt/xdomain.c 	memcpy(req->response, pkg->buffer, req->response_size);
pkg               507 drivers/thunderbolt/xdomain.c 	const struct tb_xdp_header *pkg = xw->pkg;
pkg               508 drivers/thunderbolt/xdomain.c 	const struct tb_xdomain_header *xhdr = &pkg->xd_hdr;
pkg               532 drivers/thunderbolt/xdomain.c 	switch (pkg->type) {
pkg               535 drivers/thunderbolt/xdomain.c 			(const struct tb_xdp_properties *)pkg);
pkg               540 drivers/thunderbolt/xdomain.c 			(const struct tb_xdp_properties_changed *)pkg;
pkg               573 drivers/thunderbolt/xdomain.c 			pkg->type);
pkg               577 drivers/thunderbolt/xdomain.c 	kfree(xw->pkg);
pkg               594 drivers/thunderbolt/xdomain.c 	xw->pkg = kmemdup(hdr, size, GFP_KERNEL);
pkg               595 drivers/thunderbolt/xdomain.c 	if (!xw->pkg) {
pkg                30 include/linux/bcma/bcma.h 	u8 pkg;
pkg                37 include/linux/rtsx_usb.h #define CHECK_PKG(ucr, pkg)	((ucr)->package == (pkg))
pkg               109 tools/power/cpupower/lib/cpupower.c 	if (top1->pkg < top2->pkg)
pkg               111 tools/power/cpupower/lib/cpupower.c 	else if (top1->pkg > top2->pkg)
pkg               145 tools/power/cpupower/lib/cpupower.c 			&(cpu_top->core_info[cpu].pkg)) < 0) {
pkg               146 tools/power/cpupower/lib/cpupower.c 			cpu_top->core_info[cpu].pkg = -1;
pkg               154 tools/power/cpupower/lib/cpupower.c 			cpu_top->core_info[cpu].pkg = -1;
pkg               166 tools/power/cpupower/lib/cpupower.c 	last_pkg = cpu_top->core_info[0].pkg;
pkg               168 tools/power/cpupower/lib/cpupower.c 		if (cpu_top->core_info[cpu].pkg != last_pkg &&
pkg               169 tools/power/cpupower/lib/cpupower.c 				cpu_top->core_info[cpu].pkg != -1) {
pkg               171 tools/power/cpupower/lib/cpupower.c 			last_pkg = cpu_top->core_info[cpu].pkg;
pkg               175 tools/power/cpupower/lib/cpupower.c 	if (!(cpu_top->core_info[0].pkg == -1))
pkg                16 tools/power/cpupower/lib/cpupower.h 	int pkg;
pkg               152 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 	    cpu_top.core_info[cpu].pkg == -1)
pkg               156 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 		printf("%4d|", cpu_top.core_info[cpu].pkg);
pkg               203 tools/power/cpupower/utils/idle_monitor/cpupower-monitor.c 	    cpu_top.core_info[cpu].pkg != -1) {
pkg              2573 tools/power/x86/turbostat/turbostat.c 	int pkg, node, lnode, cpu, cpux;
pkg              2581 tools/power/x86/turbostat/turbostat.c 	for (pkg = 0; pkg < topo.num_packages; pkg++) {
pkg              2584 tools/power/x86/turbostat/turbostat.c 			if (cpus[cpu].physical_package_id != pkg)
pkg              2597 tools/power/x86/turbostat/turbostat.c 				if ((cpus[cpux].physical_package_id == pkg) &&
pkg               459 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 	int pkg = 0;
pkg               482 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 			while (pkg <= end_pkg) {
pkg               483 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 				if (pkg > max_pkg_num)
pkg               484 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 					errx(1, "Requested pkg%d exceeds max pkg%d", pkg, max_pkg_num);
pkg               485 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 				pkg_selected_set |= 1 << pkg;
pkg               486 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 				pkg++;
pkg               497 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 		pkg = strtol(startp, &endp, 10);
pkg               498 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 		if (pkg > max_pkg_num)
pkg               499 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 			errx(1, "Requested pkg%d Exceeds max pkg%d", pkg, max_pkg_num);
pkg               500 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 		pkg_selected_set |= 1 << pkg;
pkg               703 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c void print_hwp_request_pkg(int pkg, struct msr_hwp_request *h, char *str)
pkg               705 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 	printf("pkg%d: ", pkg);
pkg               772 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c int print_pkg_msrs(int pkg)
pkg               780 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 	read_hwp_request(first_cpu_in_pkg[pkg], &req, MSR_HWP_REQUEST_PKG);
pkg               781 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 	print_hwp_request_pkg(pkg, &req, "");
pkg               784 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 		get_msr(first_cpu_in_pkg[pkg], MSR_HWP_INTERRUPT, &msr);
pkg               787 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 		pkg, msr,
pkg               791 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 	get_msr(first_cpu_in_pkg[pkg], MSR_HWP_STATUS, &msr);
pkg               794 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 		pkg, msr,
pkg               980 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c int update_hwp_request_pkg(int pkg)
pkg               984 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 	int cpu = first_cpu_in_pkg[pkg];
pkg               990 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 		print_hwp_request_pkg(pkg, &req, "old: ");
pkg              1020 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 		print_hwp_request_pkg(pkg, &req, "new: ");
pkg              1105 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 	unsigned int pkg;
pkg              1111 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 	retval = fscanf(fp, "%d\n", &pkg);
pkg              1114 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 	return pkg;
pkg              1119 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 	unsigned int pkg;
pkg              1124 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 	pkg = get_pkg_num(cpu);
pkg              1126 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 	if (pkg >= MAX_PACKAGES)
pkg              1127 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 		errx(1, "cpu%d: %d >= MAX_PACKAGES (%d)", cpu, pkg, MAX_PACKAGES);
pkg              1129 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 	if (pkg > max_pkg_num)
pkg              1130 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 		max_pkg_num = pkg;
pkg              1132 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 	if ((pkg_present_set & (1ULL << pkg)) == 0) {
pkg              1133 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 		pkg_present_set |= (1ULL << pkg);
pkg              1134 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c 		first_cpu_in_pkg[pkg] = cpu;