/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H A D | base.c | 109 struct nvkm_timer *tmr = subdev->device->timer; in nvkm_therm_update() 188 struct nvkm_device *device = subdev->device; in nvkm_therm_fan_mode() local 197 (mode != NVKM_THERM_CTRL_NONE && nvkm_pmu_fan_controlled(device))) in nvkm_therm_fan_mode() 424 nvkm_therm_ctor(struct nvkm_therm *therm, struct nvkm_device *device, enum nvkm_subdev_type type, in nvkm_therm_ctor() argument 427 nvkm_subdev_ctor(&nvkm_therm, device, type, inst, &therm->subdev); in nvkm_therm_ctor() 440 therm->clkgating_enabled = nvkm_boolopt(device->cfgopt, in nvkm_therm_ctor() 445 nvkm_therm_new_(const struct nvkm_therm_func *func, struct nvkm_device *device, in nvkm_therm_new_() argument 453 nvkm_therm_ctor(therm, device, type, inst, func); in nvkm_therm_new_()
|
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | lm95241.c | 100 static struct lm95241_data *lm95241_update_device(struct device *dev) in lm95241_update_device() 129 static int lm95241_read_chip(struct device *dev, u32 attr, int channel, in lm95241_read_chip() 143 static int lm95241_read_temp(struct device *dev, u32 attr, int channel, in lm95241_read_temp() 186 static int lm95241_read(struct device *dev, enum hwmon_sensor_types type, in lm95241_read() 199 static int lm95241_write_chip(struct device *dev, u32 attr, int channel, in lm95241_write_chip() 238 static int lm95241_write_temp(struct device *dev, u32 attr, int channel, in lm95241_write_temp() 322 static int lm95241_write(struct device *dev, enum hwmon_sensor_types type, in lm95241_write() 437 struct device *dev = &client->dev; in lm95241_probe() 439 struct device *hwmon_dev; in lm95241_probe()
|
H A D | jc42.c | 235 static int jc42_read(struct device *dev, enum hwmon_sensor_types type, in jc42_read() 326 static int jc42_write(struct device *dev, enum hwmon_sensor_types type, in jc42_write() 475 static bool jc42_readable_reg(struct device *dev, unsigned int reg) in jc42_readable_reg() 481 static bool jc42_writable_reg(struct device *dev, unsigned int reg) in jc42_writable_reg() 487 static bool jc42_volatile_reg(struct device *dev, unsigned int reg) in jc42_volatile_reg() 505 struct device *dev = &client->dev; in jc42_probe() 506 struct device *hwmon_dev; in jc42_probe() 575 static int jc42_suspend(struct device *dev) in jc42_suspend() 588 static int jc42_resume(struct device *dev) in jc42_resume()
|
H A D | max31790.c | 70 static struct max31790_data *max31790_update_device(struct device *dev) in max31790_update_device() 165 static int max31790_read_fan(struct device *dev, u32 attr, int channel, in max31790_read_fan() 213 static int max31790_write_fan(struct device *dev, u32 attr, int channel, in max31790_write_fan() 302 static int max31790_read_pwm(struct device *dev, u32 attr, int channel, in max31790_read_pwm() 330 static int max31790_write_pwm(struct device *dev, u32 attr, int channel, in max31790_write_pwm() 408 static int max31790_read(struct device *dev, enum hwmon_sensor_types type, in max31790_read() 421 static int max31790_write(struct device *dev, enum hwmon_sensor_types type, in max31790_write() 508 struct device *dev = &client->dev; in max31790_probe() 510 struct device *hwmon_dev; in max31790_probe()
|
H A D | adc128d818.c | 79 static struct adc128_data *adc128_update_device(struct device *dev) in adc128_update_device() 147 static ssize_t adc128_in_show(struct device *dev, in adc128_in_show() 162 static ssize_t adc128_in_store(struct device *dev, in adc128_in_store() 188 static ssize_t adc128_temp_show(struct device *dev, in adc128_temp_show() 202 static ssize_t adc128_temp_store(struct device *dev, in adc128_temp_store() 228 static ssize_t adc128_alarm_show(struct device *dev, in adc128_alarm_show() 251 struct device *dev = kobj_to_dev(kobj); in adc128_is_visible() 432 struct device *dev = &client->dev; in adc128_probe() 434 struct device *hwmon_dev; in adc128_probe()
|
H A D | pwm-fan.c | 39 struct device *dev; 292 static int pwm_fan_write(struct device *dev, enum hwmon_sensor_types type, in pwm_fan_write() 321 static int pwm_fan_read(struct device *dev, enum hwmon_sensor_types type, in pwm_fan_read() 368 /* thermal cooling device callbacks */ 409 dev_err(&cdev->device, "Cannot set pwm!\n"); in pwm_fan_set_cur_state() 424 static int pwm_fan_of_get_cooling_data(struct device *dev, in pwm_fan_of_get_cooling_data() 478 struct device *dev = &pdev->dev; in pwm_fan_probe() 480 struct device *hwmon; in pwm_fan_probe() 621 dev_err(dev, "Failed to register hwmon device\n"); in pwm_fan_probe() 636 "Failed to register pwm-fan as cooling device in pwm_fan_probe() [all...] |
/kernel/linux/linux-6.6/drivers/hid/ |
H A D | hid-roccat-arvo.c | 16 #include <linux/device.h> 26 static ssize_t arvo_sysfs_show_mode_key(struct device *dev, in arvo_sysfs_show_mode_key() 46 static ssize_t arvo_sysfs_set_mode_key(struct device *dev, in arvo_sysfs_set_mode_key() 76 static ssize_t arvo_sysfs_show_key_mask(struct device *dev, in arvo_sysfs_show_key_mask() 96 static ssize_t arvo_sysfs_set_key_mask(struct device *dev, in arvo_sysfs_set_key_mask() 141 static ssize_t arvo_sysfs_show_actual_profile(struct device *dev, in arvo_sysfs_show_actual_profile() 150 static ssize_t arvo_sysfs_set_actual_profile(struct device *dev, in arvo_sysfs_set_actual_profile() 189 struct device *dev = kobj_to_dev(kobj)->parent->parent; in arvo_sysfs_write() 208 struct device *dev = kobj_to_dev(kobj)->parent->parent; in arvo_sysfs_read() 304 hid_err(hdev, "can't alloc device descripto in arvo_init_specials() [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/ulp/iser/ |
H A D | iser_memory.c | 80 dev = iser_task->iser_conn->ib_conn.device->ib_device; in iser_dma_map_task_data() 113 dev = iser_task->iser_conn->ib_conn.device->ib_device; in iser_dma_unmap_task_data() 123 static int iser_reg_dma(struct iser_device *device, struct iser_data_buf *mem, in iser_reg_dma() argument 128 reg->sge.lkey = device->pd->local_dma_lkey; in iser_reg_dma() 134 if (device->pd->flags & IB_PD_UNSAFE_GLOBAL_RKEY) in iser_reg_dma() 135 reg->rkey = device->pd->unsafe_global_rkey; in iser_reg_dma() 357 struct iser_device *device = ib_conn->device; in iser_reg_mem_fastreg() local 367 return iser_reg_dma(device, mem, reg); in iser_reg_mem_fastreg()
|
/kernel/linux/linux-6.6/drivers/input/touchscreen/ |
H A D | tsc200x-core.c | 76 struct device *dev; 110 int (*tsc200x_cmd)(struct device *dev, u8 cmd); 256 static ssize_t tsc200x_selftest_show(struct device *dev, in tsc200x_selftest_show() 342 struct device *dev = kobj_to_dev(kobj); in tsc200x_attr_is_visible() 441 int tsc200x_probe(struct device *dev, int irq, const struct input_id *tsc_id, in tsc200x_probe() 443 int (*tsc200x_cmd)(struct device *dev, u8 cmd)) in tsc200x_probe() 566 "Failed to register input device, err: %d\n", error); in tsc200x_probe() 581 void tsc200x_remove(struct device *dev) in tsc200x_remove() 591 static int tsc200x_suspend(struct device *dev) in tsc200x_suspend() 607 static int tsc200x_resume(struct device *de [all...] |
/kernel/linux/linux-6.6/sound/soc/rockchip/ |
H A D | rockchip_pdm.c | 32 struct device *dev; 411 static int rockchip_pdm_runtime_suspend(struct device *dev) in rockchip_pdm_runtime_suspend() 421 static int rockchip_pdm_runtime_resume(struct device *dev) in rockchip_pdm_runtime_resume() 442 static bool rockchip_pdm_wr_reg(struct device *dev, unsigned int reg) in rockchip_pdm_wr_reg() 461 static bool rockchip_pdm_rd_reg(struct device *dev, unsigned int reg) in rockchip_pdm_rd_reg() 483 static bool rockchip_pdm_volatile_reg(struct device *dev, unsigned int reg) in rockchip_pdm_volatile_reg() 497 static bool rockchip_pdm_precious_reg(struct device *dev, unsigned int reg) in rockchip_pdm_precious_reg() 677 static int rockchip_pdm_suspend(struct device *dev) in rockchip_pdm_suspend() 686 static int rockchip_pdm_resume(struct device *dev) in rockchip_pdm_resume()
|
/kernel/linux/linux-6.6/sound/core/ |
H A D | control_led.c | 31 struct device dev; 37 struct device dev; 377 static void snd_ctl_led_card_release(struct device *dev) in snd_ctl_led_card_release() 384 static void snd_ctl_led_release(struct device *dev) in snd_ctl_led_release() 388 static void snd_ctl_led_dev_release(struct device *dev) in snd_ctl_led_dev_release() 396 static ssize_t mode_show(struct device *dev, in mode_show() 411 static ssize_t mode_store(struct device *dev, in mode_store() 441 static ssize_t brightness_show(struct device *dev, in brightness_show() 527 * [iface=MIXER,][device=UINT,][subdevice=UINT,]name=STR[,index=UINT] 547 } else if (!strncasecmp(s, "device in set_led_id() [all...] |
/kernel/linux/linux-6.6/sound/drivers/ |
H A D | portman2x4.c | 22 * - added checks for opened input device in interrupt handler 627 struct platform_device *device; in snd_portman_attach() local 629 device = platform_device_alloc(PLATFORM_DRIVER, device_count); in snd_portman_attach() 630 if (!device) in snd_portman_attach() 634 platform_set_drvdata(device, p); in snd_portman_attach() 636 if (platform_device_add(device) < 0) { in snd_portman_attach() 637 platform_device_put(device); in snd_portman_attach() 642 * We need to check if device probing succeeded or not */ in snd_portman_attach() 643 if (!platform_get_drvdata(device)) { in snd_portman_attach() 644 platform_device_unregister(device); in snd_portman_attach() [all...] |
/kernel/linux/linux-6.6/sound/pci/hda/ |
H A D | hda_tegra.c | 79 struct device *dev; 128 static int __maybe_unused hda_tegra_suspend(struct device *dev) in hda_tegra_suspend() 141 static int __maybe_unused hda_tegra_resume(struct device *dev) in hda_tegra_resume() 154 static int __maybe_unused hda_tegra_runtime_suspend(struct device *dev) in hda_tegra_runtime_suspend() 173 static int __maybe_unused hda_tegra_runtime_resume(struct device *dev) in hda_tegra_runtime_resume() 213 static int hda_tegra_dev_disconnect(struct snd_device *device) in hda_tegra_dev_disconnect() argument 215 struct azx *chip = device->device_data; in hda_tegra_dev_disconnect() 224 static int hda_tegra_dev_free(struct snd_device *device) in hda_tegra_dev_free() argument 226 struct azx *chip = device->device_data; in hda_tegra_dev_free() 282 "unable to request IRQ %d, disabling device\ in hda_tegra_first_init() [all...] |
/kernel/linux/linux-6.6/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 * ccwgroup_set_online() - enable a ccwgroup device 50 * @gdev: target ccwgroup device 52 * This function attempts to put the ccwgroup device into the online state. 78 * ccwgroup_set_offline() - disable a ccwgroup device 79 * @gdev: target ccwgroup device 82 * This function attempts to put the ccwgroup device into the offline state. 112 static ssize_t ccwgroup_online_store(struct device *de [all...] |
/kernel/linux/linux-6.6/kernel/time/ |
H A D | clockevents.c | 15 #include <linux/device.h> 54 * from nsec to device ticks will be correct. in cev_delta2ns() 56 * For mult > (1 << shift), i.e. device frequency is > 1GHz we in cev_delta2ns() 58 * which when converted back to device ticks can be larger in cev_delta2ns() 61 * above the minimum device ticks limit. For the upper limit in cev_delta2ns() 63 * limit of the device, so we omit the add to stay below the in cev_delta2ns() 64 * device upper boundary. in cev_delta2ns() 79 * clockevent_delta2ns - Convert a latch value (device ticks) to nanoseconds 81 * @evt: pointer to clock event device descriptor 100 /* The clockevent device i in __clockevents_switch_state() [all...] |
/kernel/linux/linux-6.6/sound/soc/tegra/ |
H A D | tegra210_amx.c | 8 #include <linux/device.h> 102 static int __maybe_unused tegra210_amx_runtime_suspend(struct device *dev) in tegra210_amx_runtime_suspend() 112 static int __maybe_unused tegra210_amx_runtime_resume(struct device *dev) in tegra210_amx_runtime_resume() 426 static bool tegra210_amx_wr_reg(struct device *dev, unsigned int reg) in tegra210_amx_wr_reg() 439 static bool tegra194_amx_wr_reg(struct device *dev, unsigned int reg) in tegra194_amx_wr_reg() 449 static bool tegra210_amx_rd_reg(struct device *dev, unsigned int reg) in tegra210_amx_rd_reg() 459 static bool tegra194_amx_rd_reg(struct device *dev, unsigned int reg) in tegra194_amx_rd_reg() 469 static bool tegra210_amx_volatile_reg(struct device *dev, unsigned int reg) in tegra210_amx_volatile_reg() 535 struct device *dev = &pdev->dev; in tegra210_amx_platform_probe()
|
/kernel/linux/linux-6.6/sound/soc/sh/ |
H A D | siu_pcm.c | 109 struct device *dev = substream->pcm->card->dev; in siu_pcm_wr_set() 157 struct device *dev = substream->pcm->card->dev; in siu_pcm_rd_set() 206 struct device *dev = substream->pcm->card->dev; in siu_io_work() 263 struct device *dev = siu_stream->substream->pcm->card->dev; in siu_pcm_stmread_stop() 300 struct device *dev = ss->pcm->card->dev; in siu_pcm_open() 337 struct device *dev = ss->pcm->card->dev; in siu_pcm_close() 361 struct device *dev = ss->pcm->card->dev; in siu_pcm_prepare() 407 struct device *dev = ss->pcm->card->dev; in siu_pcm_trigger() 450 struct device *dev = ss->pcm->card->dev; in siu_pcm_pointer_dma()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | st.c | 178 /* Construct the minor number from the device (d), mode (m), and non-rewind (n) data */ 202 static int st_probe(struct device *); 203 static int st_remove(struct device *); 255 if (!STp->device) in scsi_tape_get() 258 if (scsi_device_get(STp->device)) in scsi_tape_get() 274 struct scsi_device *sdev = STp->device; in scsi_tape_put() 294 /* If the device signature is on the list of incompatible drives, the 320 sdev_prefix_printk(prefix, (t)->device, tape_name(t), fmt, ##a) 389 __scsi_print_sense(STp->device, name, in st_chk_result() 406 __scsi_print_sense(STp->device, nam in st_chk_result() [all...] |
/kernel/linux/linux-5.10/drivers/dma/dw/ |
H A D | core.c | 46 static struct device *chan2dev(struct dma_chan *chan) in chan2dev() 48 return &chan->dev->device; in chan2dev() 82 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_desc_get() 101 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_desc_put() 119 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_initialize() 154 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_do_single_block() 176 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_dostart() 293 struct dw_dma *dw = to_dw_dma(dwc->chan.device); in dwc_get_sent() 544 struct dw_dma *dw = to_dw_dma(chan->device); in dwc_prep_dma_memcpy() 622 struct dw_dma *dw = to_dw_dma(chan->device); in dwc_prep_slave_sg() [all...] |
/kernel/linux/linux-5.10/drivers/fsi/ |
H A D | fsi-core.c | 14 #include <linux/device.h> 85 struct device dev; 120 * FSI endpoint-device support 125 * dev: Structure passed to FSI client device drivers on probe(). 126 * addr: FSI address of given device. Client should pass in its base address 161 static void fsi_device_release(struct device *_device) in fsi_device_release() 163 struct fsi_device *device = to_fsi_dev(_device); in fsi_device_release() local 165 of_node_put(device->dev.of_node); in fsi_device_release() 166 kfree(device); in fsi_device_release() 415 static bool fsi_device_node_matches(struct device *de [all...] |
/kernel/linux/linux-5.10/drivers/crypto/caam/ |
H A D | caampkc.c | 43 static void rsa_io_unmap(struct device *dev, struct rsa_edesc *edesc, in rsa_io_unmap() 56 static void rsa_pub_unmap(struct device *dev, struct rsa_edesc *edesc, in rsa_pub_unmap() 68 static void rsa_priv_f1_unmap(struct device *dev, struct rsa_edesc *edesc, in rsa_priv_f1_unmap() 80 static void rsa_priv_f2_unmap(struct device *dev, struct rsa_edesc *edesc, in rsa_priv_f2_unmap() 97 static void rsa_priv_f3_unmap(struct device *dev, struct rsa_edesc *edesc, in rsa_priv_f3_unmap() 117 static void rsa_pub_done(struct device *dev, u32 *desc, u32 err, void *context) in rsa_pub_done() 146 static void rsa_priv_f_done(struct device *dev, u32 *desc, u32 err, in rsa_priv_f_done() 247 struct device *dev = ctx->dev; in rsa_edesc_alloc() 376 struct device *jrdev = ctx->dev; in akcipher_do_one_req() 402 struct device *de in set_rsa_pub_pdb() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/3com/ |
H A D | 3c509.c | 85 #include <linux/device.h> 200 static int el3_suspend(struct device *, pm_message_t); 201 static int el3_resume(struct device *); 208 /* generic device remove for all device types */ 209 static int el3_device_remove (struct device *device); 280 static int el3_isa_match(struct device *pdev, unsigned int ndev) in el3_isa_match() 338 static int el3_isa_remove(struct device *pdev, in el3_isa_remove() 347 static int el3_isa_suspend(struct device *de 558 el3_eisa_probe(struct device *device) el3_eisa_probe() argument 612 el3_device_remove(struct device *device) el3_device_remove() argument [all...] |
/kernel/linux/linux-5.10/drivers/scsi/bfa/ |
H A D | bfad_im.c | 80 if (cmnd->device->host != NULL) in bfa_cb_ioim_done() 86 itnim_data = cmnd->device->hostdata; in bfa_cb_ioim_done() 90 (bfa_lun_queue_depth > cmnd->device->queue_depth)) { in bfa_cb_ioim_done() 92 bfad_ramp_up_qdepth(itnim, cmnd->device); in bfa_cb_ioim_done() 95 bfad_handle_qfull(itnim, cmnd->device); in bfa_cb_ioim_done() 112 if (cmnd->device->host != NULL) in bfa_cb_ioim_good_comp() 118 if (bfa_lun_queue_depth > cmnd->device->queue_depth) { in bfa_cb_ioim_good_comp() 119 itnim_data = cmnd->device->hostdata; in bfa_cb_ioim_good_comp() 123 bfad_ramp_up_qdepth(itnim, cmnd->device); in bfa_cb_ioim_good_comp() 139 if (cmnd->device in bfa_cb_ioim_abort() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/3com/ |
H A D | 3c509.c | 85 #include <linux/device.h> 200 static int el3_suspend(struct device *, pm_message_t); 201 static int el3_resume(struct device *); 208 /* generic device remove for all device types */ 209 static int el3_device_remove (struct device *device); 280 static int el3_isa_match(struct device *pdev, unsigned int ndev) in el3_isa_match() 337 static void el3_isa_remove(struct device *pdev, in el3_isa_remove() 345 static int el3_isa_suspend(struct device *de 557 el3_eisa_probe(struct device *device) el3_eisa_probe() argument 610 el3_device_remove(struct device *device) el3_device_remove() argument [all...] |
/kernel/linux/linux-6.6/drivers/video/fbdev/ |
H A D | ps3fb.c | 2 * linux/drivers/video/ps3fb.c -- PS3 GPU frame buffer device 9 * linux/drivers/video/vfb.c -- Virtual frame buffer device 441 static void ps3fb_sync_image(struct device *dev, u64 frame_offset, in ps3fb_sync_image() 487 dev_dbg(info->device, "%s: invalid frame number (%u)\n", in ps3fb_sync() 496 ps3fb_sync_image(info->device, ddr_base + par->full_offset, in ps3fb_sync() 544 dev_dbg(info->device, in ps3fb_check_var() 551 dev_dbg(info->device, "panning out-of-range\n"); in ps3fb_check_var() 563 dev_dbg(info->device, "We support ARGB8888 only\n"); in ps3fb_check_var() 583 dev_dbg(info->device, "Rotation is not supported\n"); in ps3fb_check_var() 589 dev_dbg(info->device, "No in ps3fb_check_var() [all...] |