/kernel/linux/linux-6.6/include/linux/ |
H A D | pwm.h | 31 * device. These arguments are usually retrieved from the PWM lookup table or 32 * device tree. 35 * configuration that users want to use on this PWM device rather than the 69 * @label: name of the PWM device 70 * @flags: flags associated with the PWM device 71 * @hwpwm: per-chip relative index of the PWM device 72 * @pwm: global index of the PWM device 73 * @chip: PWM chip providing this PWM device 74 * @chip_data: chip-private data associated with the PWM device 94 * @pwm: PWM device [all...] |
H A D | libnvdimm.h | 34 /* tracking whether or not there is a pending device reference */ 40 * to activation of a region that includes this device 141 struct device; 142 void *devm_nvdimm_memremap(struct device *dev, resource_size_t offset, 144 static inline void __iomem *devm_nvdimm_ioremap(struct device *dev, in devm_nvdimm_ioremap() 247 struct nvdimm_bus *nvdimm_bus_register(struct device *parent, 250 struct nvdimm_bus *to_nvdimm_bus(struct device *dev); 252 struct nvdimm *to_nvdimm(struct device *dev); 253 struct nd_region *to_nd_region(struct device *dev); 254 struct device *nd_region_de [all...] |
H A D | vdpa.h | 6 #include <linux/device.h> 48 * @last_avail_counter: last driver ring wrap counter observed by device 49 * @last_avail_idx: device available index 50 * @last_used_counter: device ring wrap counter 70 * struct vdpa_device - representation of a vDPA device 71 * @dev: underlying device 72 * @dma_dev: the actual device that is performing DMA 76 * @config: the configuration ops for this device. 78 * @index: device index 82 * @use_va: indicate whether virtual address must be used by this device 561 struct device *device; global() member [all...] |
/kernel/linux/linux-6.6/include/linux/iio/ |
H A D | iio.h | 10 #include <linux/device.h> 133 int iio_read_mount_matrix(struct device *dev, struct iio_mount_matrix *matrix); 395 * struct iio_info - constant information about device 397 * @attrs: general purpose device attributes 398 * @read_raw: function to request a value from the device. 401 * type of value returned by the device. val and val2 will 403 * @read_raw_multi: function to return values from the device. 406 * type of value returned by the device. vals pointer 411 * @read_avail: function to return the available values from the device. 419 * @write_raw: function to write a value to the device [all...] |
/kernel/linux/linux-6.6/include/scsi/ |
H A D | scsi_host.h | 5 #include <linux/device.h> 71 * SCSI_MLQUEUE_DEVICE_BUSY: Block this device temporarily, but 81 * this device/host completes, or a period of time determined by 159 * Before the mid layer attempts to scan for a new device where none 165 * "is this a new device" checks in their queuecommand routine, 173 * device will be used for however long it is kept around, then when 174 * the device is removed from the system (or * possibly at reboot 177 * However, if you allocate memory and hang it off the device struct, 180 * each time a device is tore down. 187 * Once the device ha [all...] |
/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...] |