Home
last modified time | relevance | path

Searched refs:hw_data (Results 1 – 12 of 12) sorted by relevance

/drivers/crypto/qat/qat_dh895xcc/
Dadf_dh895xcc_hw_data.c185 void adf_init_hw_data_dh895xcc(struct adf_hw_device_data *hw_data) in adf_init_hw_data_dh895xcc() argument
187 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 …]
Dadf_isr.c66 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_enable_msix() local
67 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() local
114 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() local
154 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() local
168 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 …]
Dadf_drv.c219 struct adf_hw_device_data *hw_data; in adf_probe() local
258 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 …]
Dadf_drv.h52 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);
/drivers/video/backlight/
Dapple_bl.c34 struct hw_data { struct
43 static const struct hw_data *hw_data; variable
84 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 …]
/drivers/crypto/qat/qat_common/
Dadf_ctl_drv.c375 struct adf_hw_device_data *hw_data; in adf_ctl_ioctl_get_status() local
390 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()
Dadf_transport.c183 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_init_ring() local
204 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() local
421 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() local
487 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 …]
Dadf_accel_engine.c98 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_ae_start() local
102 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() local
119 if (hw_data->ae_mask & (1 << ae)) { in adf_ae_stop()
Dadf_init.c124 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in adf_dev_start() local
145 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() local
330 hw_data->free_irq(accel_dev); in adf_dev_stop()
Dqat_hal.c681 struct adf_hw_device_data *hw_data = accel_dev->hw_device; in qat_hal_init() local
700 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()
/drivers/net/ethernet/ti/
Dcpmac.c181 u32 hw_data; member
395 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()
/drivers/net/wireless/ipw2x00/
Dipw2100.c3567 } hw_data[] = { variable
3809 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()