hwconfig
if ((safexcel_algs[i]->algo_mask & priv->hwconfig.algo_flags) !=
if ((safexcel_algs[j]->algo_mask & priv->hwconfig.algo_flags) !=
if ((safexcel_algs[i]->algo_mask & priv->hwconfig.algo_flags) !=
u32 mask = BIT(priv->hwconfig.hwdataw) - 1;
priv->config.pes = priv->hwconfig.hwnumpes;
priv->config.rings = min_t(u32, priv->hwconfig.hwnumrings, max_rings);
priv->hwconfig.hwnumraic);
priv->hwconfig.hiaver = EIP197_VERSION_MASK(version);
priv->hwconfig.hiaver = EIP197_VERSION_SWAP(version);
priv->hwconfig.hiaver = EIP197_VERSION_MASK(version);
priv->hwconfig.hiaver = EIP197_VERSION_SWAP(version);
priv->hwconfig.hwver = EIP197_VERSION_MASK(version);
priv->hwconfig.ppver = EIP197_VERSION_MASK(version);
priv->hwconfig.pever = EIP197_VERSION_MASK(version);
priv->hwconfig.icever = 0;
priv->hwconfig.ocever = 0;
priv->hwconfig.psever = 0;
priv->hwconfig.hwdataw = (hiaopt >> EIP197_HWDATAW_OFFSET) &
priv->hwconfig.hwcfsize = ((hiaopt >> EIP197_CFSIZE_OFFSET) &
priv->hwconfig.hwrfsize = ((hiaopt >> EIP197_RFSIZE_OFFSET) &
priv->hwconfig.hwnumpes = (hiaopt >> EIP197_N_PES_OFFSET) &
priv->hwconfig.hwnumrings = (hiaopt >> EIP197_N_RINGS_OFFSET) &
priv->hwconfig.icever = EIP197_VERSION_MASK(version);
priv->hwconfig.psever = EIP197_VERSION_MASK(version);
priv->hwconfig.ocever = EIP197_VERSION_MASK(version);
priv->hwconfig.hwdataw = (hiaopt >> EIP197_HWDATAW_OFFSET) &
priv->hwconfig.hwcfsize = (hiaopt >> EIP97_CFSIZE_OFFSET) &
priv->hwconfig.hwrfsize = (hiaopt >> EIP97_RFSIZE_OFFSET) &
priv->hwconfig.hwnumpes = 1; /* by definition */
priv->hwconfig.hwnumrings = (hiaopt >> EIP197_N_RINGS_OFFSET) &
priv->hwconfig.hwnumraic = i;
if (!priv->hwconfig.hwnumraic) {
priv->hwconfig.algo_flags = readl(EIP197_PE(priv) +
peid, priv->hwconfig.hwver, hwctg, priv->hwconfig.hwnumpes,
priv->hwconfig.hwnumrings, priv->hwconfig.hwnumraic,
priv->hwconfig.hiaver, priv->hwconfig.hwdataw,
priv->hwconfig.hwcfsize, priv->hwconfig.hwrfsize,
priv->hwconfig.ppver, priv->hwconfig.pever,
priv->hwconfig.algo_flags, priv->hwconfig.icever,
priv->hwconfig.ocever, priv->hwconfig.psever);
(BIT(priv->hwconfig.hwdataw) - 1)) >>
priv->hwconfig.hwdataw;
cd_fetch_cnt = (1 << priv->hwconfig.hwcfsize) / cd_size_rnd;
cd_fetch_cnt = ((1 << priv->hwconfig.hwcfsize) /
(cd_size_rnd << priv->hwconfig.hwdataw)) << 16) |
(BIT(priv->hwconfig.hwdataw) - 1)) >>
priv->hwconfig.hwdataw;
rd_fetch_cnt = (1 << priv->hwconfig.hwrfsize) / rd_size_rnd;
rd_fetch_cnt = ((1 << priv->hwconfig.hwrfsize) /
(rd_size_rnd << priv->hwconfig.hwdataw)) << 16) |
if (priv->hwconfig.hwnumpes > 4) {
struct safexcel_hwconfig hwconfig;
struct intel_hwconfig hwconfig;
struct intel_hwconfig *hwconfig = >->info.hwconfig;
ret = guc_hwconfig_discover_size(guc, hwconfig);
hwconfig->ptr = kmalloc(hwconfig->size, GFP_KERNEL);
if (!hwconfig->ptr) {
hwconfig->size = 0;
ret = guc_hwconfig_fill_buffer(guc, hwconfig);
struct intel_hwconfig *hwconfig = >->info.hwconfig;
kfree(hwconfig->ptr);
hwconfig->size = 0;
hwconfig->ptr = NULL;
static int guc_hwconfig_discover_size(struct intel_guc *guc, struct intel_hwconfig *hwconfig)
hwconfig->size = ret;
static int guc_hwconfig_fill_buffer(struct intel_guc *guc, struct intel_hwconfig *hwconfig)
GEM_BUG_ON(!hwconfig->size);
ret = intel_guc_allocate_and_map_vma(guc, hwconfig->size, &vma, &vaddr);
ret = __guc_action_get_hwconfig(guc, ggtt_offset, hwconfig->size);
memcpy(hwconfig->ptr, vaddr, hwconfig->size);
struct intel_hwconfig *hwconfig = >->info.hwconfig;
if (!hwconfig->size || !hwconfig->ptr)
return hwconfig->size;
if (query_item->length < hwconfig->size)
hwconfig->ptr, hwconfig->size))
return hwconfig->size;
{ "hwconfig", .show = xe_gt_debugfs_show_with_rpm, .data = hwconfig },
XE_WARN_ON(!guc->hwconfig.bo);
xe_map_memcpy_from(xe, dst, &guc->hwconfig.bo->vmap, 0,
guc->hwconfig.size);
u32 *hwconfig;
hwconfig = kzalloc(size, GFP_KERNEL);
if (!hwconfig) {
xe_guc_hwconfig_copy(guc, hwconfig);
u32 attribute = hwconfig[i++];
u32 len_dw = hwconfig[i++];
drm_printf(p, "[%2u] = %u\n", attribute, hwconfig[i]);
(int)(len_dw * sizeof(u32)), &hwconfig[i]);
kfree(hwconfig);
u32 *hwconfig;
hwconfig = kzalloc(size, GFP_KERNEL);
if (!hwconfig)
xe_guc_hwconfig_copy(guc, hwconfig);
u32 key = hwconfig[i++];
u32 len_dw = hwconfig[i++];
*val = hwconfig[i];
kfree(hwconfig);
int ret = send_get_hwconfig(guc, xe_bo_ggtt_addr(guc->hwconfig.bo),
guc->hwconfig.size);
if (guc->hwconfig.bo)
guc->hwconfig.bo = bo;
guc->hwconfig.size = size;
return !guc->hwconfig.bo ? 0 : guc->hwconfig.size;
} hwconfig;
void *hwconfig;
hwconfig = kzalloc(size, GFP_KERNEL);
if (!hwconfig)
xe_guc_hwconfig_copy(>->uc.guc, hwconfig);
if (copy_to_user(query_ptr, hwconfig, size)) {
kfree(hwconfig);
kfree(hwconfig);
config = drvdata->hwconfig;
mantis->hwconfig = config;
struct mantis_hwconfig *config = mantis->hwconfig;
config = drvdata->hwconfig;
mantis->hwconfig = config;
struct mantis_hwconfig *hwconfig;
struct mantis_hwconfig *hwconfig;
struct mantis_hwconfig *config = mantis->hwconfig;
struct mantis_hwconfig *config = mantis->hwconfig;
if (mantis->hwconfig) {
struct mantis_hwconfig *config = mantis->hwconfig;
struct mantis_hwconfig *config = mantis->hwconfig;
config = mantis->hwconfig;
"Mantis %s IR receiver", mantis->hwconfig->model_name);
struct mantis_hwconfig *config = mantis->hwconfig;
struct mantis_hwconfig *config = mantis->hwconfig;
struct mantis_hwconfig *config = mantis->hwconfig;
struct mantis_hwconfig *config = mantis->hwconfig;
struct hwtstamp_config hwconfig, hwconfig_requested;
hwtstamp.ifr_data = (void *)&hwconfig;
memset(&hwconfig, 0, sizeof(hwconfig));
hwconfig.tx_type =
hwconfig.rx_filter =
hwconfig_requested = hwconfig;
hwconfig_requested.tx_type, hwconfig.tx_type,
hwconfig_requested.rx_filter, hwconfig.rx_filter);