/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | mlx5_core.h | 48 dev_dbg((__dev)->device, "%s:%d:(pid %d): " format, \ 53 dev_dbg_once((__dev)->device, \ 65 dev_err((__dev)->device, "%s:%d:(pid %d): " format, \ 70 dev_err_ratelimited((__dev)->device, \ 76 dev_warn((__dev)->device, "%s:%d:(pid %d): " format, \ 81 dev_warn_once((__dev)->device, "%s:%d:(pid %d): " format, \ 86 dev_warn_ratelimited((__dev)->device, \ 92 dev_info((__dev)->device, format, ##__VA_ARGS__) 95 dev_info_ratelimited((__dev)->device, \ 100 static inline struct device *mlx5_core_dma_de [all...] |
/kernel/linux/linux-5.10/drivers/hwmon/ |
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...] |
/kernel/linux/linux-5.10/drivers/hwtracing/intel_th/ |
H A D | pti.c | 12 #include <linux/device.h> 49 static ssize_t mode_show(struct device *dev, struct device_attribute *attr, in mode_show() 57 static ssize_t mode_store(struct device *dev, struct device_attribute *attr, in mode_store() 80 freerunning_clock_show(struct device *dev, struct device_attribute *attr, in freerunning_clock_show() 89 freerunning_clock_store(struct device *dev, struct device_attribute *attr, in freerunning_clock_store() 108 clock_divider_show(struct device *dev, struct device_attribute *attr, in clock_divider_show() 117 clock_divider_store(struct device *dev, struct device_attribute *attr, in clock_divider_store() 203 struct device *dev = &thdev->dev; in intel_th_pti_probe() 248 static ssize_t lpp_dest_show(struct device *dev, struct device_attribute *attr, in lpp_dest_show() 271 static ssize_t lpp_dest_store(struct device *de [all...] |
/kernel/linux/linux-5.10/drivers/net/netdevsim/ |
H A D | bus.c | 6 #include <linux/device.h> 22 static struct nsim_bus_dev *to_nsim_bus_dev(struct device *dev) in to_nsim_bus_dev() 48 nsim_bus_dev_numvfs_store(struct device *dev, struct device_attribute *attr, in nsim_bus_dev_numvfs_store() 83 nsim_bus_dev_numvfs_show(struct device *dev, in nsim_bus_dev_numvfs_show() 96 new_port_store(struct device *dev, struct device_attribute *attr, in new_port_store() 125 del_port_store(struct device *dev, struct device_attribute *attr, in del_port_store() 169 static void nsim_bus_dev_release(struct device *dev) in nsim_bus_dev_release() 204 pr_err("Format for adding new device is \"id port_count\" (uint uint).\n"); in new_device_store() 252 pr_err("Format for deleting device is \"id\" (uint).\n"); in del_device_store() 283 static int nsim_bus_probe(struct device *de [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-tps80031.c | 27 #include <linux/device.h> 67 static int tps80031_rtc_read_time(struct device *dev, struct rtc_time *tm) in tps80031_rtc_read_time() 89 static int tps80031_rtc_set_time(struct device *dev, struct rtc_time *tm) in tps80031_rtc_set_time() 125 static int tps80031_rtc_alarm_irq_enable(struct device *dev, in tps80031_rtc_alarm_irq_enable() 143 static int tps80031_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in tps80031_rtc_set_alarm() 164 static int tps80031_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in tps80031_rtc_read_alarm() 187 static int clear_alarm_int_status(struct device *dev, struct tps80031_rtc *rtc) in clear_alarm_int_status() 216 struct device *dev = data; in tps80031_rtc_irq() 302 static int tps80031_rtc_suspend(struct device *dev) in tps80031_rtc_suspend() 311 static int tps80031_rtc_resume(struct device *de [all...] |
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/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/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...] |
/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...] |