/kernel/linux/linux-6.6/drivers/usb/cdns3/ |
H A D | cdns3-plat.c | 48 * cdns3_plat_probe - probe for cdns3 core device 49 * @pdev: Pointer to cdns3 core platform device 55 struct device *dev = &pdev->dev; in cdns3_plat_probe() 175 * @pdev: Pointer to Linux platform device 182 struct device *dev = cdns->dev; in cdns3_plat_remove() 195 static int cdns3_set_platform_suspend(struct device *dev, in cdns3_set_platform_suspend() 207 static int cdns3_controller_suspend(struct device *dev, pm_message_t msg) in cdns3_controller_suspend() 231 static int cdns3_controller_resume(struct device *dev, pm_message_t msg) in cdns3_controller_resume() 272 static int cdns3_plat_runtime_suspend(struct device *dev) in cdns3_plat_runtime_suspend() 277 static int cdns3_plat_runtime_resume(struct device *de [all...] |
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-ab8500.c | 61 static int ab8500_rtc_read_time(struct device *dev, struct rtc_time *tm) in ab8500_rtc_read_time() 107 static int ab8500_rtc_set_time(struct device *dev, struct rtc_time *tm) in ab8500_rtc_set_time() 140 static int ab8500_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) in ab8500_rtc_read_alarm() 176 static int ab8500_rtc_irq_enable(struct device *dev, unsigned int enabled) in ab8500_rtc_irq_enable() 183 static int ab8500_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) in ab8500_rtc_set_alarm() 206 static int ab8500_rtc_set_calibration(struct device *dev, int calibration) in ab8500_rtc_set_calibration() 239 static int ab8500_rtc_get_calibration(struct device *dev, int *calibration) in ab8500_rtc_get_calibration() 261 static ssize_t ab8500_sysfs_store_rtc_calibration(struct device *dev, in ab8500_sysfs_store_rtc_calibration() 278 static ssize_t ab8500_sysfs_show_rtc_calibration(struct device *dev, in ab8500_sysfs_show_rtc_calibration()
|
H A D | rtc-isl12022.c | 71 static int isl12022_hwmon_read_temp(struct device *dev, long *mC) in isl12022_hwmon_read_temp() 92 static int isl12022_hwmon_read(struct device *dev, in isl12022_hwmon_read() 117 static void isl12022_hwmon_register(struct device *dev) in isl12022_hwmon_register() 120 struct device *hwmon; in isl12022_hwmon_register() 137 dev_warn(dev, "unable to register hwmon device: %pe\n", hwmon); in isl12022_hwmon_register() 144 static int isl12022_rtc_read_time(struct device *dev, struct rtc_time *tm) in isl12022_rtc_read_time() 179 static int isl12022_rtc_set_time(struct device *dev, struct rtc_time *tm) in isl12022_rtc_set_time() 211 static int isl12022_rtc_ioctl(struct device *dev, unsigned int cmd, unsigned long arg) in isl12022_rtc_ioctl() 249 static int isl12022_register_clock(struct device *dev) in isl12022_register_clock() 289 static void isl12022_set_trip_levels(struct device *de [all...] |
H A D | rtc-lpc32xx.c | 55 static int lpc32xx_rtc_read_time(struct device *dev, struct rtc_time *time) in lpc32xx_rtc_read_time() 66 static int lpc32xx_rtc_set_time(struct device *dev, struct rtc_time *time) in lpc32xx_rtc_set_time() 86 static int lpc32xx_rtc_read_alarm(struct device *dev, in lpc32xx_rtc_read_alarm() 99 static int lpc32xx_rtc_set_alarm(struct device *dev, in lpc32xx_rtc_set_alarm() 129 static int lpc32xx_rtc_alarm_irq_enable(struct device *dev, in lpc32xx_rtc_alarm_irq_enable() 247 * IRQ is enabled after device registration in case alarm IRQ in lpc32xx_rtc_probe() 268 static int lpc32xx_rtc_suspend(struct device *dev) in lpc32xx_rtc_suspend() 282 static int lpc32xx_rtc_resume(struct device *dev) in lpc32xx_rtc_resume() 293 static int lpc32xx_rtc_freeze(struct device *dev) in lpc32xx_rtc_freeze() 308 static int lpc32xx_rtc_thaw(struct device *de [all...] |
H A D | rtc-zynqmp.c | 59 static int xlnx_rtc_set_time(struct device *dev, struct rtc_time *tm) in xlnx_rtc_set_time() 86 static int xlnx_rtc_read_time(struct device *dev, struct rtc_time *tm) in xlnx_rtc_read_time() 115 static int xlnx_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in xlnx_rtc_read_alarm() 125 static int xlnx_rtc_alarm_irq_enable(struct device *dev, u32 enabled) in xlnx_rtc_alarm_irq_enable() 154 static int xlnx_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in xlnx_rtc_set_alarm() 178 static int xlnx_rtc_read_offset(struct device *dev, long *offset) in xlnx_rtc_read_offset() 201 static int xlnx_rtc_set_offset(struct device *dev, long offset) in xlnx_rtc_set_offset() 351 static int __maybe_unused xlnx_rtc_suspend(struct device *dev) in xlnx_rtc_suspend() 363 static int __maybe_unused xlnx_rtc_resume(struct device *dev) in xlnx_rtc_resume()
|
/kernel/linux/linux-6.6/drivers/pnp/ |
H A D | driver.c | 3 * driver.c - device id matching, driver model, etc. 82 static int pnp_device_probe(struct device *dev) in pnp_device_probe() 126 static void pnp_device_remove(struct device *dev) in pnp_device_remove() 144 static void pnp_device_shutdown(struct device *dev) in pnp_device_shutdown() 153 static int pnp_bus_match(struct device *dev, struct device_driver *drv) in pnp_bus_match() 163 static int __pnp_bus_suspend(struct device *dev, pm_message_t state) in __pnp_bus_suspend() 185 /* can_write is necessary to be able to re-start the device on resume */ in __pnp_bus_suspend() 197 static int pnp_bus_suspend(struct device *dev) in pnp_bus_suspend() 202 static int pnp_bus_freeze(struct device *dev) in pnp_bus_freeze() 207 static int pnp_bus_poweroff(struct device *de [all...] |
/kernel/linux/linux-6.6/drivers/usb/common/ |
H A D | ulpi.c | 37 static int ulpi_match(struct device *dev, struct device_driver *driver) in ulpi_match() 58 static int ulpi_uevent(const struct device *dev, struct kobj_uevent_env *env) in ulpi_uevent() 73 static int ulpi_probe(struct device *dev) in ulpi_probe() 85 static void ulpi_remove(struct device *dev) in ulpi_remove() 103 static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, in modalias_show() 132 static void ulpi_dev_release(struct device *dev) in ulpi_dev_release() 182 struct device *parent; in ulpi_of_register() 276 static int ulpi_register(struct device *dev, struct ulpi *ulpi) in ulpi_register() 314 * ulpi_register_interface - instantiate new ULPI device 315 * @dev: USB controller's device interfac [all...] |
/kernel/linux/linux-6.6/drivers/usb/typec/ |
H A D | mux.c | 10 #include <linux/device.h> 27 static int switch_fwnode_match(struct device *dev, const void *fwnode) in switch_fwnode_match() 38 struct device *dev; in typec_switch_match() 42 * device type or the device class of the remote port parent that @fwnode in typec_switch_match() 44 * an additional device property is needed. With typec switches the in typec_switch_match() 45 * property is named "orientation-switch" (@id). The value of the device in typec_switch_match() 64 * @fwnode: The caller device node 144 static void typec_switch_release(struct device *dev) in typec_switch_release() 156 * @parent: Parent device [all...] |
/kernel/linux/linux-6.6/drivers/base/regmap/ |
H A D | internal.h | 13 #include <linux/device.h> 68 struct device *dev; /* Device we do I/O on */ 96 bool (*writeable_reg)(struct device *dev, unsigned int reg); 97 bool (*readable_reg)(struct device *dev, unsigned int reg); 98 bool (*volatile_reg)(struct device *dev, unsigned int reg); 99 bool (*precious_reg)(struct device *dev, unsigned int reg); 100 bool (*writeable_noinc_reg)(struct device *dev, unsigned int reg); 101 bool (*readable_noinc_reg)(struct device *dev, unsigned int reg); 166 /* if set, the device supports multi write mode */ 285 enum regmap_endian regmap_get_val_endian(struct device *de [all...] |
/kernel/linux/linux-6.6/drivers/bcma/ |
H A D | driver_pci.c | 58 static u16 bcma_pcie_mdio_read(struct bcma_drv_pci *pc, u16 device, u8 address) in bcma_pcie_mdio_read() argument 72 bcma_pcie_mdio_set_phy(pc, device); in bcma_pcie_mdio_read() 77 v = (device << BCMA_CORE_PCI_MDIODATA_DEVADDR_SHF_OLD); in bcma_pcie_mdio_read() 86 /* Wait for the device to complete the transaction */ in bcma_pcie_mdio_read() 101 static void bcma_pcie_mdio_write(struct bcma_drv_pci *pc, u16 device, in bcma_pcie_mdio_write() argument 115 bcma_pcie_mdio_set_phy(pc, device); in bcma_pcie_mdio_write() 120 v = (device << BCMA_CORE_PCI_MDIODATA_DEVADDR_SHF_OLD); in bcma_pcie_mdio_write() 129 /* Wait for the device to complete the transaction */ in bcma_pcie_mdio_write() 140 static u16 bcma_pcie_mdio_writeread(struct bcma_drv_pci *pc, u16 device, in bcma_pcie_mdio_writeread() argument 143 bcma_pcie_mdio_write(pc, device, addres in bcma_pcie_mdio_writeread() [all...] |
/kernel/linux/linux-6.6/drivers/dma/idxd/ |
H A D | dma.c | 7 #include <linux/device.h> 138 struct device *dev = &wq->idxd->pdev->dev; in idxd_dma_alloc_chan_resources() 149 struct device *dev = &wq->idxd->pdev->dev; in idxd_dma_free_chan_resources() 190 static void idxd_dma_release(struct dma_device *device) in idxd_dma_release() argument 192 struct idxd_dma_dev *idxd_dma = container_of(device, struct idxd_dma_dev, dma); in idxd_dma_release() 201 struct device *dev = &idxd->pdev->dev; in idxd_register_dma_device() 252 struct device *dev = &idxd->pdev->dev; in idxd_register_dma_channel() 262 chan->device = dma; in idxd_register_dma_channel() 300 struct device *dev = &idxd_dev->conf_dev; in idxd_dmaengine_drv_probe()
|
/kernel/linux/linux-6.6/drivers/media/firewire/ |
H A D | firedtv-dvb.c | 10 #include <linux/device.h> 60 dev_err(fdtv->device, "can't start dmx feed: invalid type %u\n", in fdtv_start_feed() 78 dev_err(fdtv->device, in fdtv_start_feed() 89 dev_err(fdtv->device, "can't start dmx feed: busy\n"); in fdtv_start_feed() 102 dev_err(fdtv->device, "can't get TS\n"); in fdtv_start_feed() 109 dev_err(fdtv->device, "can't set PIDs\n"); in fdtv_start_feed() 165 THIS_MODULE, fdtv->device, adapter_nr); in fdtv_dvb_register() 213 dev_info(fdtv->device, in fdtv_dvb_register() 230 dev_err(fdtv->device, "DVB initialization failed\n"); in fdtv_dvb_register()
|
/kernel/linux/linux-6.6/block/ |
H A D | blk-integrity.c | 215 static inline struct blk_integrity *dev_to_bi(struct device *dev) in dev_to_bi() 220 static ssize_t format_show(struct device *dev, struct device_attribute *attr, in format_show() 230 static ssize_t tag_size_show(struct device *dev, struct device_attribute *attr, in tag_size_show() 238 static ssize_t protection_interval_bytes_show(struct device *dev, in protection_interval_bytes_show() 248 static ssize_t read_verify_store(struct device *dev, in read_verify_store() 264 static ssize_t read_verify_show(struct device *dev, in read_verify_show() 272 static ssize_t write_generate_store(struct device *dev, in write_generate_store() 289 static ssize_t write_generate_show(struct device *dev, in write_generate_show() 297 static ssize_t device_is_integrity_capable_show(struct device *dev, in device_is_integrity_capable_show() 356 * Description: When a device need [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | uverbs_std_types_mr.c | 53 struct ib_device *ib_dev = pd->device; in UVERBS_METHOD_ADVISE_MR() 93 struct ib_device *ib_dev = pd->device; in UVERBS_METHOD_DM_MR_REG() 127 mr = pd->device->ops.reg_dm_mr(pd, dm, &attr, attrs); in UVERBS_METHOD_DM_MR_REG() 131 mr->device = pd->device; in UVERBS_METHOD_DM_MR_REG() 193 struct ib_device *ib_dev = pd->device; in UVERBS_METHOD_REG_DMABUF_MR() 240 mr = pd->device->ops.reg_user_mr_dmabuf(pd, offset, length, iova, fd, in UVERBS_METHOD_REG_DMABUF_MR() 246 mr->device = pd->device; in UVERBS_METHOD_REG_DMABUF_MR()
|
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | ltc4245.c | 76 static void ltc4245_update_gpios(struct device *dev) in ltc4245_update_gpios() 128 static struct ltc4245_data *ltc4245_update_device(struct device *dev) in ltc4245_update_device() 170 static int ltc4245_get_voltage(struct device *dev, u8 reg) in ltc4245_get_voltage() 206 static unsigned int ltc4245_get_current(struct device *dev, u8 reg) in ltc4245_get_current() 268 static int ltc4245_read_curr(struct device *dev, u32 attr, int channel, in ltc4245_read_curr() 285 static int ltc4245_read_in(struct device *dev, u32 attr, int channel, long *val) in ltc4245_read_in() 314 static int ltc4245_read_power(struct device *dev, u32 attr, int channel, in ltc4245_read_power() 332 static int ltc4245_read(struct device *dev, enum hwmon_sensor_types type, in ltc4245_read() 447 struct device *hwmon_dev; in ltc4245_probe()
|
H A D | lm92.c | 113 static struct lm92_data *lm92_update_device(struct device *dev) in lm92_update_device() 137 static ssize_t temp_show(struct device *dev, struct device_attribute *devattr, in temp_show() 146 static ssize_t temp_store(struct device *dev, in temp_store() 168 static ssize_t temp_hyst_show(struct device *dev, in temp_hyst_show() 178 static ssize_t temp1_min_hyst_show(struct device *dev, in temp1_min_hyst_show() 187 static ssize_t temp_hyst_store(struct device *dev, in temp_hyst_store() 211 static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, in alarms_show() 219 static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, in alarm_show() 297 struct device *hwmon_dev; in lm92_probe()
|
H A D | max6621.c | 167 static int max6621_verify_reg_data(struct device *dev, int regval) in max6621_verify_reg_data() 201 max6621_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, in max6621_read() 310 max6621_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, in max6621_write() 349 max6621_read_string(struct device *dev, enum hwmon_sensor_types type, u32 attr, in max6621_read_string() 369 static bool max6621_writeable_reg(struct device *dev, unsigned int reg) in max6621_writeable_reg() 386 static bool max6621_readable_reg(struct device *dev, unsigned int reg) in max6621_readable_reg() 412 static bool max6621_volatile_reg(struct device *dev, unsigned int reg) in max6621_volatile_reg() 482 struct device *dev = &client->dev; in max6621_probe() 484 struct device *hwmon_dev; in max6621_probe()
|
H A D | ds1621.c | 10 * The DS1621 device is a digital temperature/thermometer with 9-bit 15 * and similar in operation, with slight variations as noted in the device 17 * device information). 114 enum chips kind; /* device type */ 185 static struct ds1621_data *ds1621_update_client(struct device *dev) in ds1621_update_client() 224 static ssize_t temp_show(struct device *dev, struct device_attribute *da, in temp_show() 233 static ssize_t temp_store(struct device *dev, struct device_attribute *da, in temp_store() 253 static ssize_t alarms_show(struct device *dev, struct device_attribute *da, in alarms_show() 260 static ssize_t alarm_show(struct device *dev, struct device_attribute *da, in alarm_show() 268 static ssize_t update_interval_show(struct device *de [all...] |
H A D | tmp108.c | 8 #include <linux/device.h> 91 static int tmp108_read(struct device *dev, enum hwmon_sensor_types type, in tmp108_read() 190 static int tmp108_write(struct device *dev, enum hwmon_sensor_types type, in tmp108_write() 303 static bool tmp108_is_writeable_reg(struct device *dev, unsigned int reg) in tmp108_is_writeable_reg() 308 static bool tmp108_is_volatile_reg(struct device *dev, unsigned int reg) in tmp108_is_volatile_reg() 328 struct device *dev = &client->dev; in tmp108_probe() 329 struct device *hwmon_dev; in tmp108_probe() 393 static int tmp108_suspend(struct device *dev) in tmp108_suspend() 401 static int tmp108_resume(struct device *dev) in tmp108_resume()
|
/kernel/linux/linux-6.6/drivers/input/misc/ |
H A D | axp20x-pek.c | 88 static ssize_t axp20x_show_attr(struct device *dev, in axp20x_show_attr() 110 static ssize_t axp20x_show_attr_startup(struct device *dev, in axp20x_show_attr_startup() 120 static ssize_t axp20x_show_attr_shutdown(struct device *dev, in axp20x_show_attr_shutdown() 130 static ssize_t axp20x_store_attr(struct device *dev, in axp20x_store_attr() 175 static ssize_t axp20x_store_attr_startup(struct device *dev, in axp20x_store_attr_startup() 185 static ssize_t axp20x_store_attr_shutdown(struct device *dev, in axp20x_store_attr_shutdown() 279 dev_err(&pdev->dev, "Can't register input device: %d\n", in axp20x_pek_probe_input_device() 295 * input device if there is an "INTCFD9" or "ACPI0011" gpio in axp20x_pek_should_register_input() 296 * button ACPI device, as that handles the power button too, in axp20x_pek_should_register_input() 339 static int axp20x_pek_suspend(struct device *de [all...] |
/kernel/linux/linux-6.6/drivers/media/cec/platform/cros-ec/ |
H A D | cros-ec-cec.c | 27 * @cros_ec: Pointer to EC device 177 static int cros_ec_cec_suspend(struct device *dev) in cros_ec_cec_suspend() 188 static int cros_ec_cec_resume(struct device *dev) in cros_ec_cec_resume() 207 * connector we specify along with the DRM device name handling the HDMI output 236 static struct device *cros_ec_cec_find_hdmi_dev(struct device *dev, in cros_ec_cec_find_hdmi_dev() 246 struct device *d; in cros_ec_cec_find_hdmi_dev() 248 /* Find the device, bail out if not yet registered */ in cros_ec_cec_find_hdmi_dev() 267 static struct device *cros_ec_cec_find_hdmi_dev(struct device *de [all...] |
/kernel/linux/linux-6.6/sound/soc/codecs/ |
H A D | ts3a227e.c | 24 struct device *dev; 122 static bool ts3a227e_readable_reg(struct device *dev, unsigned int reg) in ts3a227e_readable_reg() 132 static bool ts3a227e_writeable_reg(struct device *dev, unsigned int reg) in ts3a227e_writeable_reg() 143 static bool ts3a227e_volatile_reg(struct device *dev, unsigned int reg) in ts3a227e_volatile_reg() 200 struct device *dev = ts3a227e->dev; in ts3a227e_interrupt() 296 struct device *dev) in ts3a227e_parse_device_property() 355 struct device *dev = &i2c->dev; in ts3a227e_i2c_probe() 373 dev_err(dev, "Failed to parse device property: %d\n", ret); in ts3a227e_i2c_probe() 404 static int ts3a227e_suspend(struct device *dev) in ts3a227e_suspend() 414 static int ts3a227e_resume(struct device *de [all...] |
/test/xts/hats/ai/nnrt/hdi/v1_0/common/ |
H A D | hdi_nnrt_test_utils.cpp | 144 V1_0::IOTensor HDICommon::CreateIOTensor(OHOS::sptr<V1_0::INnrtDevice> &device) in CreateIOTensor() argument 147 int ret = device->AllocateBuffer(ADDEND_BUFFER_LENGTH, buffer); in CreateIOTensor() 159 V1_0::IOTensor HDICommon::CreateInputIOTensor(OHOS::sptr<V1_0::INnrtDevice> &device, size_t length, float* data) in CreateInputIOTensor() argument 166 auto ret = device->AllocateBuffer(length, buffer); in CreateInputIOTensor() 187 V1_0::IOTensor HDICommon::CreateOutputIOTensor(OHOS::sptr<V1_0::INnrtDevice> &device, size_t length) in CreateOutputIOTensor() argument 194 int ret = device->AllocateBuffer(length, buffer); in CreateOutputIOTensor() 240 void HDICommon::ReleaseBufferOfTensors(OHOS::sptr<V1_0::INnrtDevice> &device, std::vector<V1_0::IOTensor> &tensors) in ReleaseBufferOfTensors() argument 242 if (device == nullptr) { in ReleaseBufferOfTensors() 243 printf("[NNRtTest] [ReleaseBufferOfTensors] device is nullptr.\n"); in ReleaseBufferOfTensors() 248 auto ret = device in ReleaseBufferOfTensors() [all...] |
/test/xts/hats/ai/nnrt/hdi/v2_0/common/ |
H A D | hdi_nnrt_test_utils.cpp | 144 V2_0::IOTensor HDICommon::CreateIOTensor(OHOS::sptr<V2_0::INnrtDevice> &device) in CreateIOTensor() argument 147 int ret = device->AllocateBuffer(ADDEND_BUFFER_LENGTH, buffer); in CreateIOTensor() 159 V2_0::IOTensor HDICommon::CreateInputIOTensor(OHOS::sptr<V2_0::INnrtDevice> &device, size_t length, float* data) in CreateInputIOTensor() argument 166 auto ret = device->AllocateBuffer(length, buffer); in CreateInputIOTensor() 187 V2_0::IOTensor HDICommon::CreateOutputIOTensor(OHOS::sptr<V2_0::INnrtDevice> &device, size_t length) in CreateOutputIOTensor() argument 194 int ret = device->AllocateBuffer(length, buffer); in CreateOutputIOTensor() 240 void HDICommon::ReleaseBufferOfTensors(OHOS::sptr<V2_0::INnrtDevice> &device, std::vector<V2_0::IOTensor> &tensors) in ReleaseBufferOfTensors() argument 242 if (device == nullptr) { in ReleaseBufferOfTensors() 243 printf("[NNRtTest] [ReleaseBufferOfTensors] device is nullptr.\n"); in ReleaseBufferOfTensors() 248 auto ret = device in ReleaseBufferOfTensors() [all...] |
/third_party/ltp/testcases/kernel/device-drivers/base/tbase/ |
H A D | tbase.c | 37 #include <linux/device.h> 98 struct device test_device; 100 static int test_device_match(struct device *dev, struct device_driver *drv) in test_device_match() 104 // printk("tbase: device is %s\n", dev->name); in test_device_match() 122 int test_dev_probe(struct device *dev) in test_dev_probe() 128 int test_dev_remove(struct device *dev) in test_dev_remove() 141 /* my device stuff */ 142 struct device test_device = { 167 /* my class device stuff */ 195 printk("tbase: Entered test resume for sys device\ in test_resume() [all...] |