/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/ |
H A D | vktOpaqueTypeIndexingTests.cpp | 87 Move<VkBuffer> createBuffer (const DeviceInterface& vkd, VkDevice device, VkDeviceSize size, VkBufferUsageFlags usageFlags) in createBuffer() argument 100 return createBuffer(vkd, device, &createInfo); in createBuffer() 103 MovePtr<Allocation> allocateAndBindMemory (const DeviceInterface& vkd, VkDevice device, Allocator& allocator, VkBuffer buffer) in allocateAndBindMemory() argument 105 MovePtr<Allocation> alloc (allocator.allocate(getBufferMemoryRequirements(vkd, device, buffer), MemoryRequirement::HostVisible)); in allocateAndBindMemory() 107 VK_CHECK(vkd.bindBufferMemory(device, buffer, alloc->getMemory(), alloc->getOffset())); in allocateAndBindMemory() 506 Move<VkImage> createTestImage (const DeviceInterface& vkd, VkDevice device, TextureType texType, tcu::TextureFormat format) in createTestImage() argument 527 return createImage(vkd, device, &createInfo); in createTestImage() 530 de::MovePtr<Allocation> allocateAndBindMemory (const DeviceInterface& vkd, VkDevice device, Allocator& allocator, VkImage image) in allocateAndBindMemory() argument 532 de::MovePtr<Allocation> alloc = allocator.allocate(getImageMemoryRequirements(vkd, device, image), MemoryRequirement::Any); in allocateAndBindMemory() 534 VK_CHECK(vkd.bindImageMemory(device, imag in allocateAndBindMemory() 539 createTestImageView(const DeviceInterface& vkd, VkDevice device, VkImage image, TextureType texType, tcu::TextureFormat format) createTestImageView() argument 574 const VkDevice device = context.getDevice(); TestImage() local 705 const VkDevice device = m_context.getDevice(); iterate() local 1205 const VkDevice device = m_context.getDevice(); iterate() local 1587 const VkDevice device = m_context.getDevice(); iterate() local [all...] |
/third_party/vulkan-loader/tests/ |
H A D | loader_unknown_ext_tests.cpp | 46 vkNotRealFuncTEST. The test then calls the function to verify that the unknown physical device function dispatching is 66 the function pointer to use. A real layer would store the function pointer in a dedicated structure per-instance/device, but 157 // Add device interception functions to a layer. Need to call `add_custom_device_interception_function` since the layer has 170 // Add physical device interception functions to a layer. Need to call `add_custom_device_interception_function` since the 421 ASSERT_DEATH(returned_func_i(phys_dev_to_use, 0), "Function vkNotIntRealFuncTEST_0 not supported for this physical device"); in TEST() 1075 using device = UnknownFunctionInfo<Function<VkDevice>, VkDevice>; 1184 Functions::one::device::add_to_driver(unknown_funcs.at(6), physical_device); in TEST() 1186 Functions::two::device::add_to_driver(unknown_funcs.at(7), physical_device); in TEST() 1187 Functions::two::device::add_to_layer(unknown_funcs.at(7), layer_0, D<6>{}); in TEST() 1189 Functions::three::device in TEST() [all...] |
/drivers/external_device_manager/services/zidl/src/ |
H A D | driver_ext_mgr_types.cpp | 108 std::shared_ptr<DeviceData> device;
in UnMarshalling() local 111 device = USBDevice::UnMarshalling(parcel);
in UnMarshalling() 118 if (device != nullptr) {
in UnMarshalling() 119 device->busType = busType;
in UnMarshalling() 121 return device;
in UnMarshalling() 136 std::shared_ptr<USBDevice> device = std::make_shared<USBDevice>();
in UnMarshalling() local 137 if (!parcel.ReadUint64(device->deviceId)) {
in UnMarshalling() 142 if (!parcel.ReadString(device->descripton)) {
in UnMarshalling() 147 if (!parcel.ReadUint16(device->productId)) {
in UnMarshalling() 152 if (!parcel.ReadUint16(device in UnMarshalling() [all...] |
/drivers/hdf_core/framework/model/sensor/driver/als/ |
H A D | sensor_als_driver.c | 355 int32_t AlsBindDriver(struct HdfDeviceObject *device) in AlsBindDriver() argument 357 CHECK_NULL_PTR_RETURN_VALUE(device, HDF_ERR_INVALID_PARAM); in AlsBindDriver() 366 drvData->device = device; in AlsBindDriver() 367 device->service = &drvData->ioService; in AlsBindDriver() 403 HDF_LOGE("%s: Add als device failed", __func__); in InitAlsAfterDetected() 452 HDF_LOGI("%s: Als sensor detect device no exist", __func__); in AlsCreateCfgData() 459 HDF_LOGE("%s: Als sensor detect device no exist", __func__); in AlsCreateCfgData() 490 int32_t AlsInitDriver(struct HdfDeviceObject *device) in AlsInitDriver() argument 492 CHECK_NULL_PTR_RETURN_VALUE(device, HDF_ERR_INVALID_PARA in AlsInitDriver() 513 AlsReleaseDriver(struct HdfDeviceObject *device) AlsReleaseDriver() argument [all...] |
/drivers/hdf_core/framework/model/sensor/driver/hall/ |
H A D | sensor_hall_driver.c | 298 int32_t HallBindDriver(struct HdfDeviceObject *device) in HallBindDriver() argument 300 CHECK_NULL_PTR_RETURN_VALUE(device, HDF_ERR_INVALID_PARAM); in HallBindDriver() 309 drvData->device = device; in HallBindDriver() 310 device->service = &drvData->ioService; in HallBindDriver() 346 HDF_LOGE("%s: Add hall device failed", __func__); in InitHallAfterDetected() 410 HDF_LOGI("%s: Hall sensor detect device no exist", __func__); in HallCreateCfgData() 417 HDF_LOGE("%s: Hall sensor detect device no exist", __func__); in HallCreateCfgData() 441 int32_t HallInitDriver(struct HdfDeviceObject *device) in HallInitDriver() argument 443 CHECK_NULL_PTR_RETURN_VALUE(device, HDF_ERR_INVALID_PARA in HallInitDriver() 463 HallReleaseDriver(struct HdfDeviceObject *device) HallReleaseDriver() argument [all...] |
/kernel/linux/linux-5.10/drivers/char/agp/ |
H A D | uninorth-agp.c | 286 * but directly by the video driver through function pointers in the device 294 struct pci_dev *device = NULL; in agp_uninorth_suspend() local 305 for_each_pci_dev(device) { in agp_uninorth_suspend() 306 /* Don't touch the bridge yet, device first */ in agp_uninorth_suspend() 307 if (device == pdev) in agp_uninorth_suspend() 313 * device in agp_uninorth_suspend() 315 if (device->bus != pdev->bus) in agp_uninorth_suspend() 317 agp = pci_find_capability(device, PCI_CAP_ID_AGP); in agp_uninorth_suspend() 320 pci_read_config_dword(device, agp + PCI_AGP_COMMAND, &cmd); in agp_uninorth_suspend() 323 dev_info(&pdev->dev, "disabling AGP on device in agp_uninorth_suspend() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/altera/ |
H A D | altera_sgdma.c | 69 priv->rxdescphys = dma_map_single(priv->device, in sgdma_initialize() 73 if (dma_mapping_error(priv->device, priv->rxdescphys)) { in sgdma_initialize() 79 priv->txdescphys = dma_map_single(priv->device, in sgdma_initialize() 83 if (dma_mapping_error(priv->device, priv->txdescphys)) { in sgdma_initialize() 93 dma_sync_single_for_device(priv->device, priv->txdescphys, in sgdma_initialize() 96 dma_sync_single_for_device(priv->device, priv->rxdescphys, in sgdma_initialize() 105 dma_unmap_single(priv->device, priv->rxdescphys, in sgdma_uninitialize() 109 dma_unmap_single(priv->device, priv->txdescphys, in sgdma_uninitialize() 242 dma_sync_single_for_cpu(priv->device, in sgdma_rx_status() 362 dma_sync_single_for_device(priv->device, in sgdma_async_read() [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_main.c | 79 static enum rdma_link_layer ocrdma_link_layer(struct ib_device *device, in ocrdma_link_layer() argument 108 static void get_dev_fw_str(struct ib_device *device, char *str) in get_dev_fw_str() argument 110 struct ocrdma_dev *dev = get_ocrdma_dev(device); in get_dev_fw_str() 116 static ssize_t hw_rev_show(struct device *device, in hw_rev_show() argument 120 rdma_device_to_drv_device(device, struct ocrdma_dev, ibdev); in hw_rev_show() 126 static ssize_t hca_type_show(struct device *device, in hca_type_show() argument 130 rdma_device_to_drv_device(device, struct ocrdma_dev, ibdev); in hca_type_show() 314 pr_err("Unable to allocate ib device\ in ocrdma_add() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
H A D | vmmnv50.c | 184 struct nvkm_device *device = subdev->device; in nv50_vmm_flush() local 193 if (i == NVKM_ENGINE_GR && device->gr) { in nv50_vmm_flush() 194 int ret = nvkm_gr_tlb_flush(device->gr); in nv50_vmm_flush() 215 nvkm_wr32(device, 0x100c80, (id << 16) | 1); in nv50_vmm_flush() 216 if (nvkm_msec(device, 2000, in nv50_vmm_flush() 217 if (!(nvkm_rd32(device, 0x100c80) & 0x00000001)) in nv50_vmm_flush() 235 struct nvkm_device *device = vmm->mmu->subdev.device; in nv50_vmm_valid() local 236 struct nvkm_ram *ram = device in nv50_vmm_valid() [all...] |
/kernel/linux/linux-5.10/drivers/misc/ |
H A D | isl29003.c | 184 static ssize_t isl29003_show_range(struct device *dev, in isl29003_show_range() 192 static ssize_t isl29003_store_range(struct device *dev, in isl29003_store_range() 219 static ssize_t isl29003_show_resolution(struct device *dev, in isl29003_show_resolution() 228 static ssize_t isl29003_store_resolution(struct device *dev, in isl29003_store_resolution() 254 static ssize_t isl29003_show_mode(struct device *dev, in isl29003_show_mode() 262 static ssize_t isl29003_store_mode(struct device *dev, in isl29003_store_mode() 288 static ssize_t isl29003_show_power_state(struct device *dev, in isl29003_show_power_state() 297 static ssize_t isl29003_store_power_state(struct device *dev, in isl29003_store_power_state() 321 static ssize_t isl29003_show_lux(struct device *dev, in isl29003_show_lux() 422 static int isl29003_suspend(struct device *de [all...] |
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | ina2xx.c | 207 static int ina2xx_read_reg(struct device *dev, int reg, unsigned int *regval) in ina2xx_read_reg() 301 static ssize_t ina2xx_value_show(struct device *dev, in ina2xx_value_show() 368 static ssize_t ina226_alert_show(struct device *dev, in ina226_alert_show() 395 static ssize_t ina226_alert_store(struct device *dev, in ina226_alert_store() 438 static ssize_t ina226_alarm_show(struct device *dev, in ina226_alarm_show() 479 static ssize_t ina2xx_shunt_show(struct device *dev, in ina2xx_shunt_show() 487 static ssize_t ina2xx_shunt_store(struct device *dev, in ina2xx_shunt_store() 505 static ssize_t ina226_interval_store(struct device *dev, in ina226_interval_store() 529 static ssize_t ina226_interval_show(struct device *dev, in ina226_interval_show() 584 /* pointers to created device attribute [all...] |
/kernel/linux/linux-5.10/drivers/iio/ |
H A D | industrialio-trigger.c | 10 #include <linux/device.h> 40 * @dev: device associated with the iio_trigger 48 static ssize_t iio_trigger_read_name(struct device *dev, in iio_trigger_read_name() 237 * triggering device. 276 * this is the case if the IIO device and the trigger device share the in iio_trigger_attach_poll_func() 277 * same parent device. in iio_trigger_attach_poll_func() 362 * @dev: device associated with an industrial I/O device 368 * used by the device t 473 iio_trig_release(struct device *device) iio_trig_release() argument [all...] |
/kernel/linux/linux-5.10/drivers/s390/cio/ |
H A D | ccwgroup.c | 14 #include <linux/device.h> 23 #include "device.h" 27 /* In Linux 2.4, we had a channel device layer called "chandev" 49 * Remove references from ccw devices to ccw group device and from 50 * ccw group device to ccw devices. 70 * ccwgroup_set_online() - enable a ccwgroup device 71 * @gdev: target ccwgroup device 73 * This function attempts to put the ccwgroup device into the online state. 99 * ccwgroup_set_offline() - disable a ccwgroup device 100 * @gdev: target ccwgroup device [all...] |
/kernel/linux/linux-5.10/drivers/slimbus/ |
H A D | core.c | 33 static int slim_device_match(struct device *dev, struct device_driver *drv) in slim_device_match() 62 static int slim_device_probe(struct device *dev) in slim_device_probe() 84 static int slim_device_remove(struct device *dev) in slim_device_remove() 98 static int slim_device_uevent(struct device *dev, struct kobj_uevent_env *env) in slim_device_uevent() 117 * @drv:Client driver to be associated with client-device. 147 static void slim_dev_release(struct device *dev) in slim_dev_release() 200 struct device *dev = ctrl->dev; in of_register_slim_devices() 289 static int slim_ctrl_remove_device(struct device *dev, void *null) in slim_ctrl_remove_device() 311 * slim_report_absent() - Controller calls this function when a device 312 * reports absent, OR when the device canno [all...] |
/kernel/linux/linux-5.10/drivers/usb/core/ |
H A D | port.c | 3 * usb port device code 19 static ssize_t location_show(struct device *dev, in location_show() 28 static ssize_t connect_type_show(struct device *dev, in connect_type_show() 53 static ssize_t over_current_count_show(struct device *dev, in over_current_count_show() 62 static ssize_t quirks_show(struct device *dev, in quirks_show() 70 static ssize_t quirks_store(struct device *dev, struct device_attribute *attr, in quirks_store() 84 static ssize_t usb3_lpm_permit_show(struct device *dev, in usb3_lpm_permit_show() 105 static ssize_t usb3_lpm_permit_store(struct device *dev, in usb3_lpm_permit_store() 131 /* If device is connected to the port, disable or enable lpm in usb3_lpm_permit_store() 182 static void usb_port_device_release(struct device *de [all...] |
/kernel/linux/linux-5.10/drivers/video/backlight/ |
H A D | pwm_bl.c | 24 struct device *dev; 34 int (*notify)(struct device *, 36 void (*notify_after)(struct device *, 38 int (*check_fb)(struct device *, struct fb_info *); 39 void (*exit)(struct device *); 193 int pwm_backlight_brightness_default(struct device *dev, in pwm_backlight_brightness_default() 229 static int pwm_backlight_parse_dt(struct device *dev, in pwm_backlight_parse_dt() 377 static int pwm_backlight_parse_dt(struct device *dev, in pwm_backlight_parse_dt() 384 int pwm_backlight_brightness_default(struct device *dev, in pwm_backlight_brightness_default() 448 /* Not booted with device tre in pwm_backlight_initial_power_state() [all...] |
/kernel/linux/linux-5.10/sound/pci/ctxfi/ |
H A D | ctpcm.c | 8 * This file contains the definition of the pcm device functions. 128 if (IEC958 == substream->pcm->device) { in ct_pcm_playback_open() 133 if (FRONT == substream->pcm->device) in ct_pcm_playback_open() 168 if (IEC958 == substream->pcm->device) in ct_pcm_playback_close() 205 if (IEC958 == substream->pcm->device) in ct_pcm_playback_prepare() 412 /* Create ALSA pcm device */ 414 enum CTALSADEVS device, in ct_alsa_pcm_create() 423 playback_count = (IEC958 == device) ? 1 : 256; in ct_alsa_pcm_create() 424 capture_count = (FRONT == device) ? 1 : 0; in ct_alsa_pcm_create() 425 err = snd_pcm_new(atc->card, "ctxfi", device, in ct_alsa_pcm_create() 413 ct_alsa_pcm_create(struct ct_atc *atc, enum CTALSADEVS device, const char *device_name) ct_alsa_pcm_create() argument [all...] |
/kernel/linux/linux-5.10/sound/firewire/dice/ |
H A D | dice-pcm.c | 16 unsigned int index = substream->pcm->device; in dice_rate_constraint() 54 unsigned int index = substream->pcm->device; in dice_channels_constraint() 130 unsigned int index = substream->pcm->device; in init_hw_info() 309 struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; in capture_prepare() 323 struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device]; in playback_prepare() 338 struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; in capture_trigger() 356 struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device]; in playback_trigger() 375 struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; in capture_pointer() 382 struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device]; in playback_pointer() 390 struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device]; in capture_ack() [all...] |
/kernel/linux/linux-5.10/tools/testing/nvdimm/test/ |
H A D | iomap.c | 76 void __iomem *__wrap_devm_ioremap(struct device *dev, in __wrap_devm_ioremap() 88 void *__wrap_devm_memremap(struct device *dev, resource_size_t offset, in __wrap_devm_memremap() 126 void *__wrap_devm_memremap_pages(struct device *dev, struct dev_pagemap *pgmap) in __wrap_devm_memremap_pages() 180 void __wrap_devm_memunmap(struct device *dev, void *addr) in __wrap_devm_memunmap() 221 static bool nfit_test_release_region(struct device *dev, 225 static void nfit_devres_release(struct device *dev, void *data) in nfit_devres_release() 233 static int match(struct device *dev, void *__res, void *match_data) in match() 241 static bool nfit_test_release_region(struct device *dev, in nfit_test_release_region() 278 static struct resource *nfit_test_request_region(struct device *dev, in nfit_test_request_region() 371 struct resource *__wrap___devm_request_region(struct device *de [all...] |
/kernel/linux/linux-5.10/kernel/irq/ |
H A D | msi.c | 12 #include <linux/device.h> 22 * @dev: Pointer to the device for which this is allocated 29 struct msi_desc *alloc_msi_entry(struct device *dev, int nvec, in alloc_msi_entry() 196 static int msi_domain_ops_prepare(struct irq_domain *domain, struct device *dev, in msi_domain_ops_prepare() 226 struct device *dev) in msi_domain_ops_check() 310 int msi_domain_prepare_irqs(struct irq_domain *domain, struct device *dev, in msi_domain_prepare_irqs() 324 int msi_domain_populate_irqs(struct irq_domain *domain, struct device *dev, in msi_domain_populate_irqs() 366 * Carefully check whether the device can use reservation mode. If 368 * dummy vector to the device. If the PCI/MSI device doe [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
H A D | mcdi_mon.c | 20 EFX_HWMON_COOL, /* cooling device, probably a heatsink */ 161 static int efx_mcdi_mon_get_entry(struct device *dev, unsigned int index, in efx_mcdi_mon_get_entry() 186 static ssize_t efx_mcdi_mon_show_value(struct device *dev, in efx_mcdi_mon_show_value() 223 static ssize_t efx_mcdi_mon_show_limit(struct device *dev, in efx_mcdi_mon_show_limit() 250 static ssize_t efx_mcdi_mon_show_alarm(struct device *dev, in efx_mcdi_mon_show_alarm() 268 static ssize_t efx_mcdi_mon_show_label(struct device *dev, in efx_mcdi_mon_show_label() 280 ssize_t (*reader)(struct device *, in efx_mcdi_mon_add_attr() 334 /* Don't create a device if there are none */ in efx_mcdi_mon_probe() 505 hwmon->device = hwmon_device_register_with_groups(&efx->pci_dev->dev, in efx_mcdi_mon_probe() 508 if (IS_ERR(hwmon->device)) { in efx_mcdi_mon_probe() [all...] |
/kernel/linux/linux-5.10/drivers/nvdimm/ |
H A D | security.c | 5 #include <linux/device.h> 55 struct device *dev = &nvdimm->dev; in nvdimm_request_key() 96 struct device *dev = &nvdimm->dev; in nvdimm_lookup_user_key() 167 struct device *dev = &nvdimm->dev; in __nvdimm_security_unlock() 213 int nvdimm_security_unlock(struct device *dev) in nvdimm_security_unlock() 226 struct device *dev = &nvdimm->dev; in check_security_state() 244 struct device *dev = &nvdimm->dev; in security_disable() 279 struct device *dev = &nvdimm->dev; in security_update() 328 struct device *dev = &nvdimm->dev; in security_erase() 369 struct device *de in security_overwrite() [all...] |
/kernel/linux/linux-5.10/drivers/platform/x86/ |
H A D | hdaps.c | 10 * accelerometer and other data, such as the device's temperature. 33 #define HDAPS_PORT_STATE 0x1611 /* device state */ 36 #define HDAPS_PORT_TEMP1 0x1616 /* device temperature, in Celsius */ 39 #define HDAPS_PORT_TEMP2 0x161b /* device temperature (again?) */ 50 #define INIT_TIMEOUT_MSECS 4000 /* wait up to 4s for device init ... */ 266 /* a read of the device helps push it into action */ in hdaps_device_init() 292 pr_info("device successfully initialized\n"); in hdaps_probe() 297 static int hdaps_resume(struct device *dev) in hdaps_resume() 341 static ssize_t hdaps_position_show(struct device *dev, in hdaps_position_show() 353 static ssize_t hdaps_variance_show(struct device *de [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-bd70528.c | 55 struct device *dev; 232 static int bd71828_set_alarm(struct device *dev, struct rtc_wkalrm *a) in bd71828_set_alarm() 262 static int bd70528_set_alarm(struct device *dev, struct rtc_wkalrm *a) in bd70528_set_alarm() 310 static int bd71828_read_alarm(struct device *dev, struct rtc_wkalrm *a) in bd71828_read_alarm() 334 static int bd70528_read_alarm(struct device *dev, struct rtc_wkalrm *a) in bd70528_read_alarm() 358 static int bd70528_set_time_locked(struct device *dev, struct rtc_time *t) in bd70528_set_time_locked() 394 static int bd71828_set_time(struct device *dev, struct rtc_time *t) in bd71828_set_time() 399 static int bd70528_set_time(struct device *dev, struct rtc_time *t) in bd70528_set_time() 410 static int bd70528_get_time(struct device *dev, struct rtc_time *t) in bd70528_get_time() 431 static int bd70528_alm_enable(struct device *de [all...] |
H A D | rtc-ds1343.c | 14 #include <linux/device.h> 83 static ssize_t ds1343_show_glitchfilter(struct device *dev, in ds1343_show_glitchfilter() 102 static ssize_t ds1343_store_glitchfilter(struct device *dev, in ds1343_store_glitchfilter() 142 static ssize_t ds1343_show_tricklecharger(struct device *dev, in ds1343_show_tricklecharger() 198 static int ds1343_read_time(struct device *dev, struct rtc_time *dt) in ds1343_read_time() 219 static int ds1343_set_time(struct device *dev, struct rtc_time *dt) in ds1343_set_time() 236 static int ds1343_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) in ds1343_read_alarm() 269 static int ds1343_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) in ds1343_set_alarm() 298 static int ds1343_alarm_irq_enable(struct device *dev, unsigned int enabled) in ds1343_alarm_irq_enable() 447 static int ds1343_suspend(struct device *de [all...] |