Searched refs:hw_data (Results 1 – 12 of 12) sorted by relevance
185 void adf_init_hw_data_dh895xcc(struct adf_hw_device_data *hw_data) in adf_init_hw_data_dh895xcc() argument187 hw_data->dev_class = &dh895xcc_class; in adf_init_hw_data_dh895xcc()188 hw_data->instance_id = dh895xcc_class.instances++; in adf_init_hw_data_dh895xcc()189 hw_data->num_banks = ADF_DH895XCC_ETR_MAX_BANKS; in adf_init_hw_data_dh895xcc()190 hw_data->num_accel = ADF_DH895XCC_MAX_ACCELERATORS; in adf_init_hw_data_dh895xcc()191 hw_data->pci_dev_id = ADF_DH895XCC_PCI_DEVICE_ID; in adf_init_hw_data_dh895xcc()192 hw_data->num_logical_accel = 1; in adf_init_hw_data_dh895xcc()193 hw_data->num_engines = ADF_DH895XCC_MAX_ACCELENGINES; in adf_init_hw_data_dh895xcc()194 hw_data->tx_rx_gap = ADF_DH895XCC_RX_RINGS_OFFSET; in adf_init_hw_data_dh895xcc()195 hw_data->tx_rings_mask = ADF_DH895XCC_TX_RINGS_MASK; in adf_init_hw_data_dh895xcc()[all …]
66 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_enable_msix() local67 uint32_t msix_num_entries = hw_data->num_banks + 1; in adf_enable_msix()107 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_request_irqs() local114 for (i = 0; i < hw_data->num_banks; i++) { in adf_request_irqs()129 cpu = ((accel_dev->accel_id * hw_data->num_banks) + i) % cpus; in adf_request_irqs()149 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_free_irqs() local154 for (i = 0; i < hw_data->num_banks; i++) { in adf_free_irqs()167 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_isr_alloc_msix_entry_table() local168 uint32_t msix_num_entries = hw_data->num_banks + 1; in adf_isr_alloc_msix_entry_table()200 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_isr_free_msix_entry_table() local[all …]
219 struct adf_hw_device_data *hw_data; in adf_probe() local258 hw_data = kzalloc_node(sizeof(*hw_data), GFP_KERNEL, in adf_probe()260 if (!hw_data) { in adf_probe()265 accel_dev->hw_device = hw_data; in adf_probe()276 &hw_data->fuses); in adf_probe()279 hw_data->accel_mask = hw_data->get_accel_mask(hw_data->fuses); in adf_probe()280 hw_data->ae_mask = hw_data->get_ae_mask(hw_data->fuses); in adf_probe()281 accel_pci_dev->sku = hw_data->get_sku(hw_data); in adf_probe()284 if (!hw_data->accel_mask || !hw_data->ae_mask || in adf_probe()285 ((~hw_data->ae_mask) & 0x01)) { in adf_probe()[all …]
52 void adf_init_hw_data_dh895xcc(struct adf_hw_device_data *hw_data);53 void adf_clean_hw_data_dh895xcc(struct adf_hw_device_data *hw_data);
34 struct hw_data { struct43 static const struct hw_data *hw_data; variable84 static const struct hw_data intel_chipset_data = {129 static const struct hw_data nvidia_chipset_data = {154 hw_data = &intel_chipset_data; in apple_bl_add()156 hw_data = &nvidia_chipset_data; in apple_bl_add()160 if (!hw_data) { in apple_bl_add()167 intensity = hw_data->backlight_ops.get_brightness(NULL); in apple_bl_add()170 hw_data->set_brightness(1); in apple_bl_add()171 if (!hw_data->backlight_ops.get_brightness(NULL)) in apple_bl_add()[all …]
375 struct adf_hw_device_data *hw_data; in adf_ctl_ioctl_get_status() local390 hw_data = accel_dev->hw_device; in adf_ctl_ioctl_get_status()392 dev_info.num_ae = hw_data->get_num_aes(hw_data); in adf_ctl_ioctl_get_status()393 dev_info.num_accel = hw_data->get_num_accels(hw_data); in adf_ctl_ioctl_get_status()394 dev_info.num_logical_accel = hw_data->num_logical_accel; in adf_ctl_ioctl_get_status()395 dev_info.banks_per_accel = hw_data->num_banks in adf_ctl_ioctl_get_status()396 / hw_data->num_logical_accel; in adf_ctl_ioctl_get_status()397 strlcpy(dev_info.name, hw_data->dev_class->name, sizeof(dev_info.name)); in adf_ctl_ioctl_get_status()398 dev_info.instance_id = hw_data->instance_id; in adf_ctl_ioctl_get_status()399 dev_info.type = hw_data->dev_class->type; in adf_ctl_ioctl_get_status()
183 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_init_ring() local204 if (hw_data->tx_rings_mask & (1 << ring->ring_number)) in adf_init_ring()396 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_init_bank() local421 if (hw_data->tx_rings_mask & (1 << i)) { in adf_init_bank()429 if (i < hw_data->tx_rx_gap) { in adf_init_bank()433 tx_ring = &bank->rings[i - hw_data->tx_rx_gap]; in adf_init_bank()447 if (hw_data->tx_rings_mask & (1 << i) && ring->inflights) in adf_init_bank()466 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_init_etr_data() local487 i = hw_data->get_etr_bar_id(hw_data); in adf_init_etr_data()525 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in cleanup_bank() local[all …]
98 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_ae_start() local102 if (hw_data->ae_mask & (1 << ae)) { in adf_ae_start()115 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_ae_stop() local119 if (hw_data->ae_mask & (1 << ae)) { in adf_ae_stop()
124 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_dev_start() local145 if (hw_data->alloc_irq(accel_dev)) { in adf_dev_start()179 hw_data->enable_error_correction(accel_dev); in adf_dev_start()235 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_dev_stop() local330 hw_data->free_irq(accel_dev); in adf_dev_stop()
681 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in qat_hal_init() local700 handle->hal_handle->ae_mask = hw_data->ae_mask; in qat_hal_init()701 handle->hal_handle->slice_mask = hw_data->accel_mask; in qat_hal_init()706 if (!(hw_data->ae_mask & (1 << ae))) in qat_hal_init()729 if (!(hw_data->ae_mask & (1 << ae))) in qat_hal_init()
181 u32 hw_data; member395 desc->hw_data = (u32)desc->data_mapping; in cpmac_rx_one()579 desc->hw_data = (u32)desc->data_mapping; in cpmac_start_xmit()998 desc->hw_data = (u32)desc->data_mapping; in cpmac_open()
3567 } hw_data[] = { variable3809 for (i = 0; i < ARRAY_SIZE(hw_data); i++) { in show_registers()3810 read_register(dev, hw_data[i].addr, &val); in show_registers()3812 hw_data[i].name, hw_data[i].addr, val); in show_registers()