/kernel/linux/linux-5.10/drivers/s390/cio/ |
H A D | scm.c | 9 #include <linux/device.h> 18 static struct device *scm_root; 23 static int scmdev_probe(struct device *dev) in scmdev_probe() 31 static int scmdev_remove(struct device *dev) in scmdev_remove() 39 static int scmdev_uevent(struct device *dev, struct kobj_uevent_env *env) in scmdev_uevent() 86 static ssize_t show_##name(struct device *dev, \ 126 static void scmdev_release(struct device *dev) in scmdev_release() 177 static int check_address(struct device *dev, const void *data) in check_address() 187 struct device *dev; in scmdev_find() 256 static int scm_dev_avail(struct device *de [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ufs/ |
H A D | ufshcd-pltfrm.c | 26 struct device *dev = hba->dev; in ufshcd_parse_clock_info() 122 static int ufshcd_populate_vreg(struct device *dev, const char *name, in ufshcd_populate_vreg() 181 * ufshcd_parse_regulator_info - get regulator info from device tree 184 * Get regulator info from device tree for vcc, vccq, vccq2 power supplies. 192 struct device *dev = hba->dev; in ufshcd_parse_regulator_info() 215 * @dev: pointer to device handle 220 int ufshcd_pltfrm_suspend(struct device *dev) in ufshcd_pltfrm_suspend() 228 * @dev: pointer to device handle 233 int ufshcd_pltfrm_resume(struct device *dev) in ufshcd_pltfrm_resume() 239 int ufshcd_pltfrm_runtime_suspend(struct device *de [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-palmas.c | 41 struct device *dev; 48 static int palmas_rtc_read_time(struct device *dev, struct rtc_time *tm) in palmas_rtc_read_time() 79 static int palmas_rtc_set_time(struct device *dev, struct rtc_time *tm) in palmas_rtc_set_time() 115 static int palmas_rtc_alarm_irq_enable(struct device *dev, unsigned enabled) in palmas_rtc_alarm_irq_enable() 125 static int palmas_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) in palmas_rtc_read_alarm() 159 static int palmas_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) in palmas_rtc_set_alarm() 190 static int palmas_clear_interrupts(struct device *dev) in palmas_clear_interrupts() 215 struct device *dev = palmas_rtc->dev; in palmas_rtc_interrupt() 331 static int palmas_rtc_suspend(struct device *dev) in palmas_rtc_suspend() 340 static int palmas_rtc_resume(struct device *de [all...] |
H A D | rtc-bq32k.c | 52 static int bq32k_read(struct device *dev, void *data, uint8_t off, uint8_t len) in bq32k_read() 75 static int bq32k_write(struct device *dev, void *data, uint8_t off, uint8_t len) in bq32k_write() 89 static int bq32k_rtc_read_time(struct device *dev, struct rtc_time *tm) in bq32k_rtc_read_time() 117 static int bq32k_rtc_set_time(struct device *dev, struct rtc_time *tm) in bq32k_rtc_set_time() 142 static int trickle_charger_of_init(struct device *dev, struct device_node *node) in trickle_charger_of_init() 193 static ssize_t bq32k_sysfs_show_tricklecharge_bypass(struct device *dev, in bq32k_sysfs_show_tricklecharge_bypass() 206 static ssize_t bq32k_sysfs_store_tricklecharge_bypass(struct device *dev, in bq32k_sysfs_store_tricklecharge_bypass() 242 static int bq32k_sysfs_register(struct device *dev) in bq32k_sysfs_register() 247 static void bq32k_sysfs_unregister(struct device *dev) in bq32k_sysfs_unregister() 255 struct device *de in bq32k_probe() [all...] |
H A D | rtc-tegra.c | 78 static int tegra_rtc_wait_while_busy(struct device *dev) in tegra_rtc_wait_while_busy() 102 static int tegra_rtc_read_time(struct device *dev, struct rtc_time *tm) in tegra_rtc_read_time() 126 static int tegra_rtc_set_time(struct device *dev, struct rtc_time *tm) in tegra_rtc_set_time() 148 static int tegra_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) in tegra_rtc_read_alarm() 170 static int tegra_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) in tegra_rtc_alarm_irq_enable() 193 static int tegra_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) in tegra_rtc_set_alarm() 221 static int tegra_rtc_proc(struct device *dev, struct seq_file *seq) in tegra_rtc_proc() 233 struct device *dev = data; in tegra_rtc_irq_handler() 355 static int tegra_rtc_suspend(struct device *dev) in tegra_rtc_suspend() 379 static int tegra_rtc_resume(struct device *de [all...] |
/kernel/linux/linux-5.10/drivers/usb/cdns3/ |
H A D | cdns3-imx.c | 90 struct device *dev; 119 struct device *dev = data->dev; in cdns_imx_noncore_init() 150 static int cdns_imx_platform_suspend(struct device *dev, 166 struct device *dev = &pdev->dev; in cdns_imx_probe() 223 struct device *dev = &pdev->dev; in cdns_imx_remove() 245 static int cdns_imx_platform_suspend(struct device *dev, in cdns_imx_platform_suspend() 249 struct device *parent = dev->parent; in cdns_imx_platform_suspend() 344 static int cdns_imx_resume(struct device *dev) in cdns_imx_resume() 351 static int cdns_imx_suspend(struct device *dev) in cdns_imx_suspend() 360 static int cdns_imx_platform_suspend(struct device *de [all...] |
/kernel/linux/linux-5.10/drivers/usb/typec/ |
H A D | mux.c | 10 #include <linux/device.h> 20 static bool dev_name_ends_with(struct device *dev, const char *suffix) in dev_name_ends_with() 32 static int switch_fwnode_match(struct device *dev, const void *fwnode) in switch_fwnode_match() 40 struct device *dev; in typec_switch_match() 53 * @fwnode: The caller device node 88 static void typec_switch_release(struct device *dev) in typec_switch_release() 100 * @parent: Parent device 109 typec_switch_register(struct device *parent, in typec_switch_register() 184 static int mux_fwnode_match(struct device *dev, const void *fwnode) in mux_fwnode_match() 193 struct device *de in typec_mux_match() [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | thunderbolt.h | 14 #include <linux/device.h> 59 * @dev: Domain device 73 struct device dev; 172 * @dev: XDomain device 178 * @device: Device ID of the demote domain 181 * @device_name: Name of the device (or %NULL if not known) 216 struct device dev; 222 u16 device; member 290 static inline bool tb_is_xdomain(const struct device *dev) in tb_is_xdomain() 295 static inline struct tb_xdomain *tb_to_xdomain(struct device *de [all...] |
/kernel/linux/linux-5.10/sound/firewire/dice/ |
H A D | dice.c | 32 struct fw_device *device = fw_parent_device(unit); in check_dice_category() local 61 if (device->config_rom[3] != ((vendor << 8) | category) || in check_dice_category() 62 device->config_rom[4] >> 22 != model) in check_dice_category() 82 /* this should be supported by any device */ in check_clock_caps() 122 dev_name(&dice->unit->device), 100 << dev->max_speed); in dice_card_strings() 143 err = snd_card_new(&dice->unit->device, -1, NULL, THIS_MODULE, 0, in do_registration() 191 dev_info(&dice->unit->device, in do_registration() 208 dice = devm_kzalloc(&unit->device, sizeof(struct snd_dice), GFP_KERNEL); in dice_probe() 212 dev_set_drvdata(&unit->device, dice); in dice_probe() 235 struct snd_dice *dice = dev_get_drvdata(&unit->device); in dice_remove() [all...] |
/kernel/linux/linux-5.10/sound/core/ |
H A D | jack.c | 32 static int snd_jack_dev_disconnect(struct snd_device *device) in snd_jack_dev_disconnect() argument 35 struct snd_jack *jack = device->device_data; in snd_jack_dev_disconnect() 43 /* If the input device is registered with the input subsystem in snd_jack_dev_disconnect() 55 static int snd_jack_dev_free(struct snd_device *device) in snd_jack_dev_free() argument 57 struct snd_jack *jack = device->device_data; in snd_jack_dev_free() 58 struct snd_card *card = device->card; in snd_jack_dev_free() 71 snd_jack_dev_disconnect(device); in snd_jack_dev_free() 80 static int snd_jack_dev_register(struct snd_device *device) in snd_jack_dev_register() argument 82 struct snd_jack *jack = device->device_data; in snd_jack_dev_register() 83 struct snd_card *card = device in snd_jack_dev_register() [all...] |
/kernel/linux/linux-5.10/include/scsi/ |
H A D | scsi_host.h | 5 #include <linux/device.h> 86 * SCSI_MLQUEUE_DEVICE_BUSY: Block this device temporarily, but 96 * this device/host completes, or a period of time determined by 139 * Before the mid layer attempts to scan for a new device where none 145 * "is this a new device" checks in their queuecommand routine, 153 * device will be used for however long it is kept around, then when 154 * the device is removed from the system (or * possibly at reboot 157 * However, if you allocate memory and hang it off the device struct, 160 * each time a device is tore down. 167 * Once the device ha [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/ |
H A D | mtk_cec.c | 54 void (*hpd_event)(bool hpd, struct device *dev); 55 struct device *hdmi_dev; 90 void mtk_cec_set_hpd_event(struct device *dev, in mtk_cec_set_hpd_event() 91 void (*hpd_event)(bool hpd, struct device *dev), in mtk_cec_set_hpd_event() 92 struct device *hdmi_dev) in mtk_cec_set_hpd_event() 103 bool mtk_cec_hpd_high(struct device *dev) in mtk_cec_hpd_high() 150 void (*hpd_event)(bool hpd, struct device *dev); in mtk_cec_hpd_event() 151 struct device *hdmi_dev; in mtk_cec_hpd_event() 165 struct device *dev = arg; in mtk_cec_htplg_isr_thread() 183 struct device *de in mtk_cec_probe() [all...] |
/kernel/linux/linux-5.10/drivers/mfd/ |
H A D | adp5520.c | 34 struct device *dev; 91 int adp5520_write(struct device *dev, int reg, uint8_t val) in adp5520_write() 97 int adp5520_read(struct device *dev, int reg, uint8_t *val) in adp5520_read() 103 int adp5520_set_bits(struct device *dev, int reg, uint8_t bit_mask) in adp5520_set_bits() 123 int adp5520_clr_bits(struct device *dev, int reg, uint8_t bit_mask) in adp5520_clr_bits() 143 int adp5520_register_notifier(struct device *dev, struct notifier_block *nb, in adp5520_register_notifier() 161 int adp5520_unregister_notifier(struct device *dev, struct notifier_block *nb, in adp5520_unregister_notifier() 196 static int __remove_subdev(struct device *dev, void *unused) in __remove_subdev() 309 static int adp5520_suspend(struct device *dev) in adp5520_suspend() 321 static int adp5520_resume(struct device *de [all...] |
/kernel/linux/linux-6.6/drivers/misc/ |
H A D | tifm_core.c | 41 static int tifm_bus_match(struct device *dev, struct device_driver *drv) in tifm_bus_match() 58 static int tifm_uevent(const struct device *dev, struct kobj_uevent_env *env) in tifm_uevent() 68 static int tifm_device_probe(struct device *dev) in tifm_device_probe() 90 static void tifm_device_remove(struct device *dev) in tifm_device_remove() 108 static int tifm_device_suspend(struct device *dev, pm_message_t state) in tifm_device_suspend() 119 static int tifm_device_resume(struct device *dev) in tifm_device_resume() 137 static ssize_t type_show(struct device *dev, struct device_attribute *attr, in type_show() 162 static void tifm_free(struct device *dev) in tifm_free() 175 struct device *dev) in tifm_alloc_adapter() 240 void tifm_free_device(struct device *de [all...] |
/kernel/linux/linux-6.6/drivers/mfd/ |
H A D | adp5520.c | 34 struct device *dev; 91 int adp5520_write(struct device *dev, int reg, uint8_t val) in adp5520_write() 97 int adp5520_read(struct device *dev, int reg, uint8_t *val) in adp5520_read() 103 int adp5520_set_bits(struct device *dev, int reg, uint8_t bit_mask) in adp5520_set_bits() 123 int adp5520_clr_bits(struct device *dev, int reg, uint8_t bit_mask) in adp5520_clr_bits() 143 int adp5520_register_notifier(struct device *dev, struct notifier_block *nb, in adp5520_register_notifier() 161 int adp5520_unregister_notifier(struct device *dev, struct notifier_block *nb, in adp5520_unregister_notifier() 196 static int __remove_subdev(struct device *dev, void *unused) in __remove_subdev() 308 static int adp5520_suspend(struct device *dev) in adp5520_suspend() 320 static int adp5520_resume(struct device *de [all...] |
/kernel/linux/linux-6.6/drivers/base/firmware_loader/ |
H A D | sysfs.c | 36 * @class: device class pointer 37 * @attr: device attribute pointer 79 static int firmware_uevent(const struct device *dev, struct kobj_uevent_env *env) in firmware_uevent() 92 static void fw_dev_release(struct device *dev) in fw_dev_release() 126 static ssize_t firmware_loading_show(struct device *dev, in firmware_loading_show() 142 * @dev: device pointer 143 * @attr: device attribute pointer 153 static ssize_t firmware_loading_store(struct device *dev, in firmware_loading_store() 265 struct device *dev = kobj_to_dev(kobj); in firmware_data_read() 309 * @kobj: kobject for the device 396 fw_create_instance(struct firmware *firmware, const char *fw_name, struct device *device, u32 opt_flags) fw_create_instance() argument [all...] |
H A D | sysfs_upload.c | 10 * Support for user-space to initiate a firmware upload to a device. 26 [FW_UPLOAD_ERR_BUSY] = "device-busy", 32 static const char *fw_upload_progress(struct device *dev, in fw_upload_progress() 45 static const char *fw_upload_error(struct device *dev, in fw_upload_error() 60 status_show(struct device *dev, struct device_attribute *attr, char *buf) in status_show() 69 error_show(struct device *dev, struct device_attribute *attr, char *buf) in error_show() 91 static ssize_t cancel_store(struct device *dev, struct device_attribute *attr, in cancel_store() 112 static ssize_t remaining_size_show(struct device *dev, in remaining_size_show() 164 struct device *fw_dev; in fw_upload_main() 228 struct device *fw_de in fw_upload_start() [all...] |
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-bq32k.c | 53 static int bq32k_read(struct device *dev, void *data, uint8_t off, uint8_t len) in bq32k_read() 76 static int bq32k_write(struct device *dev, void *data, uint8_t off, uint8_t len) in bq32k_write() 90 static int bq32k_rtc_read_time(struct device *dev, struct rtc_time *tm) in bq32k_rtc_read_time() 118 static int bq32k_rtc_set_time(struct device *dev, struct rtc_time *tm) in bq32k_rtc_set_time() 143 static int trickle_charger_of_init(struct device *dev, struct device_node *node) in trickle_charger_of_init() 194 static ssize_t bq32k_sysfs_show_tricklecharge_bypass(struct device *dev, in bq32k_sysfs_show_tricklecharge_bypass() 207 static ssize_t bq32k_sysfs_store_tricklecharge_bypass(struct device *dev, in bq32k_sysfs_store_tricklecharge_bypass() 243 static int bq32k_sysfs_register(struct device *dev) in bq32k_sysfs_register() 248 static void bq32k_sysfs_unregister(struct device *dev) in bq32k_sysfs_unregister() 255 struct device *de in bq32k_probe() [all...] |
H A D | rtc-palmas.c | 28 struct device *dev; 35 static int palmas_rtc_read_time(struct device *dev, struct rtc_time *tm) in palmas_rtc_read_time() 66 static int palmas_rtc_set_time(struct device *dev, struct rtc_time *tm) in palmas_rtc_set_time() 102 static int palmas_rtc_alarm_irq_enable(struct device *dev, unsigned enabled) in palmas_rtc_alarm_irq_enable() 112 static int palmas_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) in palmas_rtc_read_alarm() 146 static int palmas_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) in palmas_rtc_set_alarm() 177 static int palmas_clear_interrupts(struct device *dev) in palmas_clear_interrupts() 202 struct device *dev = palmas_rtc->dev; in palmas_rtc_interrupt() 317 static int palmas_rtc_suspend(struct device *dev) in palmas_rtc_suspend() 326 static int palmas_rtc_resume(struct device *de [all...] |
H A D | rtc-tegra.c | 78 static int tegra_rtc_wait_while_busy(struct device *dev) in tegra_rtc_wait_while_busy() 102 static int tegra_rtc_read_time(struct device *dev, struct rtc_time *tm) in tegra_rtc_read_time() 126 static int tegra_rtc_set_time(struct device *dev, struct rtc_time *tm) in tegra_rtc_set_time() 148 static int tegra_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) in tegra_rtc_read_alarm() 170 static int tegra_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) in tegra_rtc_alarm_irq_enable() 193 static int tegra_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) in tegra_rtc_set_alarm() 221 static int tegra_rtc_proc(struct device *dev, struct seq_file *seq) in tegra_rtc_proc() 233 struct device *dev = data; in tegra_rtc_irq_handler() 353 static int tegra_rtc_suspend(struct device *dev) in tegra_rtc_suspend() 377 static int tegra_rtc_resume(struct device *de [all...] |
H A D | rtc-sunplus.c | 65 static void sp_get_seconds(struct device *dev, unsigned long *secs) in sp_get_seconds() 72 static void sp_set_seconds(struct device *dev, unsigned long secs) in sp_set_seconds() 79 static int sp_rtc_read_time(struct device *dev, struct rtc_time *tm) in sp_rtc_read_time() 89 static int sp_rtc_set_time(struct device *dev, struct rtc_time *tm) in sp_rtc_set_time() 100 static int sp_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in sp_rtc_set_alarm() 112 static int sp_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in sp_rtc_read_alarm() 130 static int sp_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) in sp_rtc_alarm_irq_enable() 180 static void sp_rtc_set_trickle_charger(struct device dev) in sp_rtc_set_trickle_charger() 316 static int sp_rtc_suspend(struct device *dev) in sp_rtc_suspend() 326 static int sp_rtc_resume(struct device *de [all...] |
/kernel/linux/linux-6.6/drivers/staging/fieldbus/ |
H A D | dev_core.c | 9 #include <linux/device.h> 26 static ssize_t online_show(struct device *dev, struct device_attribute *attr, in online_show() 35 static ssize_t enabled_show(struct device *dev, struct device_attribute *attr, in enabled_show() 45 static ssize_t enabled_store(struct device *dev, struct device_attribute *attr, in enabled_store() 64 static ssize_t card_name_show(struct device *dev, struct device_attribute *attr, in card_name_show() 74 static ssize_t read_area_size_show(struct device *dev, in read_area_size_show() 83 static ssize_t write_area_size_show(struct device *dev, in write_area_size_show() 92 static ssize_t fieldbus_id_show(struct device *dev, in fieldbus_id_show() 101 static ssize_t fieldbus_type_show(struct device *dev, in fieldbus_type_show() 134 struct device *de in fieldbus_is_visible() [all...] |
/kernel/linux/linux-6.6/drivers/platform/x86/intel/pmt/ |
H A D | class.c | 25 bool intel_pmt_is_early_client_hw(struct device *dev) in intel_pmt_is_early_client_hw() 99 struct device *dev = kobj_to_dev(kobj); in intel_pmt_mmap() 122 guid_show(struct device *dev, struct device_attribute *attr, char *buf) in guid_show() 130 static ssize_t size_show(struct device *dev, struct device_attribute *attr, in size_show() 140 offset_show(struct device *dev, struct device_attribute *attr, char *buf) in offset_show() 163 struct device *dev, in intel_pmt_populate_entry() 221 * address from the parent PCI device and add offset. in intel_pmt_populate_entry() 240 struct device *parent) in intel_pmt_dev_register() 243 struct device *dev; in intel_pmt_dev_register() 254 dev_err(parent, "Could not create %s%d device nod in intel_pmt_dev_register() [all...] |
/kernel/linux/linux-6.6/drivers/usb/dwc3/ |
H A D | dwc3-xilinx.c | 47 struct device *dev; 74 struct device *dev = priv_data->dev; in dwc3_xlnx_init_versal() 101 struct device *dev = priv_data->dev; in dwc3_xlnx_init_zynqmp() 121 * in use but the usb3-phy entry is missing from the device tree. in dwc3_xlnx_init_zynqmp() 252 struct device *dev = &pdev->dev; in dwc3_xlnx_probe() 311 struct device *dev = &pdev->dev; in dwc3_xlnx_remove() 323 static int __maybe_unused dwc3_xlnx_runtime_suspend(struct device *dev) in dwc3_xlnx_runtime_suspend() 332 static int __maybe_unused dwc3_xlnx_runtime_resume(struct device *dev) in dwc3_xlnx_runtime_resume() 339 static int __maybe_unused dwc3_xlnx_runtime_idle(struct device *dev) in dwc3_xlnx_runtime_idle() 347 static int __maybe_unused dwc3_xlnx_suspend(struct device *de [all...] |
/kernel/linux/linux-6.6/drivers/thunderbolt/ |
H A D | usb4_port.c | 3 * USB4 port device 15 static int connector_bind(struct device *dev, struct device *connector, void *data) in connector_bind() 30 static void connector_unbind(struct device *dev, struct device *connector, void *data) in connector_unbind() 41 static ssize_t link_show(struct device *dev, struct device_attribute *attr, in link_show() 108 static ssize_t offline_show(struct device *dev, in offline_show() 116 static ssize_t offline_store(struct device *dev, in offline_store() 167 static ssize_t rescan_store(struct device *dev, in rescan_store() 218 struct device *de in service_attr_is_visible() [all...] |