/kernel/linux/linux-5.10/drivers/soc/sunxi/ |
H A D | sunxi_sram.c | 105 static struct device *sram_dev; 221 int sunxi_sram_claim(struct device *dev) in sunxi_sram_claim() 225 unsigned int device; in sunxi_sram_claim() local 237 sram_data = sunxi_sram_of_parse(dev->of_node, &device); in sunxi_sram_claim() 254 writel(val | ((device << sram_data->offset) & mask), in sunxi_sram_claim() 264 int sunxi_sram_release(struct device *dev) in sunxi_sram_release() 303 static bool sunxi_sram_regmap_accessible_reg(struct device *dev, in sunxi_sram_regmap_accessible_reg() 326 struct device *dev = &pdev->dev; in sunxi_sram_probe()
|
/kernel/linux/linux-5.10/drivers/tty/serial/8250/ |
H A D | 8250_dma.c | 22 dma_sync_single_for_cpu(dma->txchan->device->dev, dma->tx_addr, in __dma_tx_complete() 124 dma_sync_single_for_device(dma->txchan->device->dev, dma->tx_addr, in serial8250_tx_dma() 241 dma->rx_buf = dma_alloc_coherent(dma->rxchan->device->dev, dma->rx_size, in serial8250_request_dma() 249 dma->tx_addr = dma_map_single(dma->txchan->device->dev, in serial8250_request_dma() 253 if (dma_mapping_error(dma->txchan->device->dev, dma->tx_addr)) { in serial8250_request_dma() 254 dma_free_coherent(dma->rxchan->device->dev, dma->rx_size, in serial8250_request_dma() 280 dma_free_coherent(dma->rxchan->device->dev, dma->rx_size, dma->rx_buf, in serial8250_release_dma() 287 dma_unmap_single(dma->txchan->device->dev, dma->tx_addr, in serial8250_release_dma()
|
/kernel/linux/linux-5.10/drivers/usb/misc/ |
H A D | usb3503.c | 46 struct device *dev; 72 struct device *dev = hub->dev; in usb3503_connect() 128 struct device *dev = hub->dev; in usb3503_switch_mode() 159 struct device *dev = hub->dev; in usb3503_probe() 341 static int __maybe_unused usb3503_i2c_suspend(struct device *dev) in usb3503_i2c_suspend() 348 static int __maybe_unused usb3503_i2c_resume(struct device *dev) in usb3503_i2c_resume() 355 static int __maybe_unused usb3503_platform_suspend(struct device *dev) in usb3503_platform_suspend() 360 static int __maybe_unused usb3503_platform_resume(struct device *dev) in usb3503_platform_resume()
|
H A D | cytherm.c | 31 /* Structure to hold all of our device specific stuff */ 33 struct usb_device *udev; /* save off the usb device pointer */ 34 struct usb_interface *interface; /* the interface for this device */ 49 /* Send a vendor command to device */ 67 static ssize_t brightness_show(struct device *dev, struct device_attribute *attr, char *buf) in brightness_show() 75 static ssize_t brightness_store(struct device *dev, struct device_attribute *attr, const char *buf, in brightness_store() 116 static ssize_t temp_show(struct device *dev, struct device_attribute *attr, char *buf) in temp_show() 153 static ssize_t button_show(struct device *dev, struct device_attribute *attr, char *buf) in button_show() 183 static ssize_t port0_show(struct device *dev, struct device_attribute *attr, char *buf) in port0_show() 207 static ssize_t port0_store(struct device *de [all...] |
/kernel/linux/linux-5.10/net/wimax/ |
H A D | op-rfkill.c | 14 * A non-polled generic rfkill device is embedded into the WiMAX 15 * subsystem's representation of a device. 20 * All device drivers have to do is after wimax_dev_init(), call 62 * @wimax_dev: WiMAX device descriptor 67 * When the device detects a change in the state of thehardware RF 75 * If the device doesn't have a hardware kill switch, just report 82 struct device *dev = wimax_dev_to_dev(wimax_dev); in wimax_report_rfkill_hw() 118 * @wimax_dev: WiMAX device descriptor 126 * device for its current software radio kill switch state and feed it 129 * On the side, the device doe [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | remoteproc.h | 102 * @RSC_VDEV: declare support for a virtio device, and serve as its 130 * @da: device address 150 * the expected device address of this memory region. If @da is set to 154 * We will always use @da to negotiate the device addresses, even if it 182 * @da: device address 197 * @da should specify the required device address, @pa should specify 220 * @da: device address 228 * @da specifies the device address of the buffer, @len specifies 243 * @da: device address 254 * Note that @da should either contain the device addres [all...] |
H A D | scmi_protocol.h | 11 #include <linux/device.h> 92 * @device_domain_id: gets the scmi domain id for a given device 93 * @transition_latency_get: gets the DVFS transition latency for a given device 94 * @device_opps_add: adds all the OPPs for a given device 95 * @freq_set: sets the frequency for a given device using sustained frequency 97 * @freq_get: gets the frequency for a given device using sustained frequency 111 int (*device_domain_id)(struct device *dev); 113 struct device *dev); 115 struct device *dev); 123 struct device *de [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/ |
H A D | exynos_dp.c | 40 struct device *dev; 152 static int exynos_dp_bind(struct device *dev, struct device *master, void *data) in exynos_dp_bind() 184 static void exynos_dp_unbind(struct device *dev, struct device *master, in exynos_dp_unbind() 200 struct device *dev = &pdev->dev; in exynos_dp_probe() 266 static int exynos_dp_suspend(struct device *dev) in exynos_dp_suspend() 273 static int exynos_dp_resume(struct device *dev) in exynos_dp_resume()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | gpfifogv100.c | 41 struct nvkm_device *device = subdev->device; in gv100_fifo_gpfifo_engine_valid() local 48 nvkm_mask(device, 0x002630, BIT(chan->runl), BIT(chan->runl)); in gv100_fifo_gpfifo_engine_valid() 60 nvkm_mask(device, 0x002630, BIT(chan->runl), 0); in gv100_fifo_gpfifo_engine_valid() 129 struct nvkm_device *device = fifo->base.engine.subdev.device; in gv100_fifo_gpfifo_new_() local 188 size = nvkm_rd32(device, 0x104028); /* NV_PCE_PCE_MAP */ in gv100_fifo_gpfifo_new_() 192 ret = nvkm_memory_new(device, NVKM_MEM_TARGET_INST, size, 0x1000, true, in gv100_fifo_gpfifo_new_()
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
H A D | gpio-charger.c | 7 #include <linux/device.h> 26 struct device *dev; 138 static enum power_supply_type gpio_charger_get_type(struct device *dev) in gpio_charger_get_type() 165 static int gpio_charger_get_irq(struct device *dev, void *dev_id, in gpio_charger_get_irq() 185 static int init_charge_current_limit(struct device *dev, in init_charge_current_limit() 253 struct device *dev = &pdev->dev; in gpio_charger_probe() 274 * This will fetch a GPIO descriptor from device tree, ACPI or in gpio_charger_probe() 354 static int gpio_charger_suspend(struct device *dev) in gpio_charger_suspend() 365 static int gpio_charger_resume(struct device *dev) in gpio_charger_resume()
|
/kernel/linux/linux-5.10/drivers/opp/ |
H A D | ti-opp-supply.c | 13 #include <linux/device.h> 49 * struct ti_opp_supply_of_data - device tree match data 65 * @dev: ti opp supply device for which we need to store info 66 * @data: data specific to the device 68 * Picks up efuse based optimized voltages for VDD unique per device and 73 static int _store_optimized_voltages(struct device *dev, in _store_optimized_voltages() 171 * @dev: device for which we need to free info 172 * @data: data specific to the device 174 static void _free_optimized_voltages(struct device *dev, in _free_optimized_voltages() 184 * @dev: device fo [all...] |
/kernel/linux/linux-5.10/drivers/pci/endpoint/ |
H A D | pci-epf-core.c | 9 #include <linux/device.h> 25 * EPF device and EPC device has been lost 26 * @epf: the EPF device which has lost the binding with the EPC device 28 * Invoke to notify the function driver that the binding between the EPF device 29 * and EPC device has been lost. 34 dev_WARN(&epf->dev, "epf device not bound to driver\n"); in pci_epf_unbind() 46 * pci_epf_bind() - Notify the function driver that the EPF device has been 47 * bound to a EPC device [all...] |
/kernel/linux/linux-5.10/drivers/pci/controller/ |
H A D | pcie-hisi-error.c | 62 struct device *dev; 111 struct device *dev = &pdev->dev; in hisi_pcie_port_reset() 146 struct device *device = &dev->dev; in hisi_pcie_port_do_recovery() local 147 acpi_handle root_handle = ACPI_HANDLE(device); in hisi_pcie_port_do_recovery() 166 dev_info(device, "Fail to get root port %04x:%02x:%02x.%d device\n", in hisi_pcie_port_do_recovery() 197 struct device *dev = &pdev->dev; in hisi_pcie_handle_error() 255 struct device *dev; in hisi_pcie_notify_error()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/ |
H A D | sun8i_tcon_top.c | 7 #include <linux/device.h> 28 int sun8i_tcon_top_set_hdmi_src(struct device *dev, int tcon) in sun8i_tcon_top_set_hdmi_src() 57 int sun8i_tcon_top_de_config(struct device *dev, int mixer, int tcon) in sun8i_tcon_top_de_config() 97 static struct clk_hw *sun8i_tcon_top_register_gate(struct device *dev, in sun8i_tcon_top_register_gate() 124 static int sun8i_tcon_top_bind(struct device *dev, struct device *master, in sun8i_tcon_top_bind() 239 static void sun8i_tcon_top_unbind(struct device *dev, struct device *master, in sun8i_tcon_top_unbind() 281 /* sun4i_drv uses this list to check if a device node is a TCON TOP */
|
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-88pm80x.c | 42 struct device *dev; 59 static int pm80x_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) in pm80x_rtc_alarm_irq_enable() 99 static int pm80x_rtc_read_time(struct device *dev, struct rtc_time *tm) in pm80x_rtc_read_time() 120 static int pm80x_rtc_set_time(struct device *dev, struct rtc_time *tm) in pm80x_rtc_set_time() 144 static int pm80x_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in pm80x_rtc_read_alarm() 170 static int pm80x_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in pm80x_rtc_set_alarm() 226 static int pm80x_rtc_suspend(struct device *dev) in pm80x_rtc_suspend() 231 static int pm80x_rtc_resume(struct device *dev) in pm80x_rtc_resume()
|
H A D | rtc-cros-ec.c | 20 * @cros_ec: Pointer to EC device 21 * @rtc: Pointer to RTC device 85 static int cros_ec_rtc_read_time(struct device *dev, struct rtc_time *tm) in cros_ec_rtc_read_time() 104 static int cros_ec_rtc_set_time(struct device *dev, struct rtc_time *tm) in cros_ec_rtc_set_time() 121 static int cros_ec_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in cros_ec_rtc_read_alarm() 151 static int cros_ec_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in cros_ec_rtc_set_alarm() 200 static int cros_ec_rtc_alarm_irq_enable(struct device *dev, in cros_ec_rtc_alarm_irq_enable() 291 static int cros_ec_rtc_suspend(struct device *dev) in cros_ec_rtc_suspend() 302 static int cros_ec_rtc_resume(struct device *dev) in cros_ec_rtc_resume() 372 struct device *de in cros_ec_rtc_remove() [all...] |
H A D | rtc-da9055.c | 125 static int da9055_rtc_read_time(struct device *dev, struct rtc_time *rtc_tm) in da9055_rtc_read_time() 159 static int da9055_rtc_set_time(struct device *dev, struct rtc_time *tm) in da9055_rtc_set_time() 176 static int da9055_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in da9055_rtc_read_alarm() 192 static int da9055_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in da9055_rtc_set_alarm() 211 static int da9055_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) in da9055_rtc_alarm_irq_enable() 318 static int da9055_rtc_suspend(struct device *dev) in da9055_rtc_suspend() 337 static int da9055_rtc_resume(struct device *dev) in da9055_rtc_resume() 356 static int da9055_rtc_freeze(struct device *dev) in da9055_rtc_freeze()
|
H A D | rtc-ds2404.c | 83 static void ds2404_reset(struct device *dev) in ds2404_reset() 93 static void ds2404_write_byte(struct device *dev, u8 byte) in ds2404_write_byte() 108 static u8 ds2404_read_byte(struct device *dev) in ds2404_read_byte() 126 static void ds2404_read_memory(struct device *dev, u16 offset, in ds2404_read_memory() 137 static void ds2404_write_memory(struct device *dev, u16 offset, in ds2404_write_memory() 176 static void ds2404_enable_osc(struct device *dev) in ds2404_enable_osc() 182 static int ds2404_read_time(struct device *dev, struct rtc_time *dt) in ds2404_read_time() 194 static int ds2404_set_time(struct device *dev, struct rtc_time *dt) in ds2404_set_time()
|
H A D | rtc-jz4740.c | 62 static struct device *dev_for_power_off; 140 static int jz4740_rtc_read_time(struct device *dev, struct rtc_time *time) in jz4740_rtc_read_time() 169 static int jz4740_rtc_set_time(struct device *dev, struct rtc_time *time) in jz4740_rtc_set_time() 181 static int jz4740_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in jz4740_rtc_read_alarm() 199 static int jz4740_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in jz4740_rtc_set_alarm() 213 static int jz4740_rtc_alarm_irq_enable(struct device *dev, unsigned int enable) in jz4740_rtc_alarm_irq_enable() 248 static void jz4740_rtc_poweroff(struct device *dev) in jz4740_rtc_poweroff() 311 struct device *dev = &pdev->dev; in jz4740_rtc_probe() 365 dev_err(dev, "Failed to allocate rtc device: %d\n", ret); in jz4740_rtc_probe()
|
H A D | rtc-stmp3xxx.c | 66 * @dev: the parent device of the watchdog (= the RTC) 72 * platform_device for the watchdog driver as a child of the RTC device. 78 static void stmp3xxx_wdt_set_timeout(struct device *dev, u32 timeout) in stmp3xxx_wdt_set_timeout() 146 static int stmp3xxx_rtc_gettime(struct device *dev, struct rtc_time *rtc_tm) in stmp3xxx_rtc_gettime() 159 static int stmp3xxx_rtc_settime(struct device *dev, struct rtc_time *rtc_tm) in stmp3xxx_rtc_settime() 183 static int stmp3xxx_alarm_irq_enable(struct device *dev, unsigned int enabled) in stmp3xxx_alarm_irq_enable() 205 static int stmp3xxx_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) in stmp3xxx_rtc_read_alarm() 213 static int stmp3xxx_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) in stmp3xxx_rtc_set_alarm() 275 dev_err(&pdev->dev, "no device onboard\n"); in stmp3xxx_rtc_probe() 306 * frequency can be overridden in the device tre in stmp3xxx_rtc_probe() [all...] |
H A D | rtc-rc5t583.c | 38 static int rc5t583_rtc_alarm_irq_enable(struct device *dev, unsigned enabled) in rc5t583_rtc_alarm_irq_enable() 59 static int rc5t583_rtc_read_time(struct device *dev, struct rtc_time *tm) in rc5t583_rtc_read_time() 83 static int rc5t583_rtc_set_time(struct device *dev, struct rtc_time *tm) in rc5t583_rtc_set_time() 107 static int rc5t583_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) in rc5t583_rtc_read_alarm() 139 static int rc5t583_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) in rc5t583_rtc_set_alarm() 170 struct device *dev = rtc; in rc5t583_rtc_interrupt() 254 dev_err(&pdev->dev, "RTC device register: err %d\n", ret); in rc5t583_rtc_probe() 274 static int rc5t583_rtc_suspend(struct device *dev) in rc5t583_rtc_suspend() 286 static int rc5t583_rtc_resume(struct device *dev) in rc5t583_rtc_resume()
|
H A D | rtc-wm831x.c | 118 static int wm831x_rtc_readtime(struct device *dev, struct rtc_time *tm) in wm831x_rtc_readtime() 168 static int wm831x_rtc_settime(struct device *dev, struct rtc_time *tm) in wm831x_rtc_settime() 230 static int wm831x_rtc_readalarm(struct device *dev, struct rtc_wkalrm *alrm) in wm831x_rtc_readalarm() 278 static int wm831x_rtc_setalarm(struct device *dev, struct rtc_wkalrm *alrm) in wm831x_rtc_setalarm() 317 static int wm831x_rtc_alarm_irq_enable(struct device *dev, in wm831x_rtc_alarm_irq_enable() 347 static int wm831x_rtc_suspend(struct device *dev) in wm831x_rtc_suspend() 368 static int wm831x_rtc_resume(struct device *dev) in wm831x_rtc_resume() 383 static int wm831x_rtc_freeze(struct device *dev) in wm831x_rtc_freeze()
|
/kernel/linux/linux-5.10/drivers/staging/fbtft/ |
H A D | fb_watterott.c | 48 par->info->device, u8, par->buf, in write_reg8_bus8() 53 dev_err(par->info->device, in write_reg8_bus8() 161 dev_err(par->info->device, in init_display() 173 dev_err(par->info->device, "Could not restore SPI mode\n"); in init_display() 218 dev_err(par->info->device, "Missing 'reset' gpio. Aborting.\n"); in verify_gpios() 260 bd = backlight_device_register(dev_driver_string(par->info->device), in register_chip_backlight() 261 par->info->device, par, &bl_ops, in register_chip_backlight() 264 dev_err(par->info->device, in register_chip_backlight() 265 "cannot register backlight device (%ld)\n", in register_chip_backlight()
|
/kernel/linux/linux-5.10/drivers/staging/fieldbus/anybuss/ |
H A D | arcx-anybus.c | 40 struct device *class_dev; 88 static void export_reset_0(struct device *dev, bool assert) in export_reset_0() 95 static void export_reset_1(struct device *dev, bool assert) in export_reset_1() 131 struct device *dev = &pdev->dev; in create_parallel_regmap() 164 static ssize_t version_show(struct device *dev, in version_show() 173 static ssize_t design_number_show(struct device *dev, in design_number_show() 197 static void controller_device_release(struct device *dev) in controller_device_release() 227 struct device *dev = &pdev->dev; in controller_probe()
|
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
H A D | gbphy.c | 15 #include <linux/device.h> 29 static ssize_t protocol_id_show(struct device *dev, in protocol_id_show() 45 static void gbphy_dev_release(struct device *dev) in gbphy_dev_release() 54 static int gb_gbphy_idle(struct device *dev) in gb_gbphy_idle() 74 static int gbphy_dev_uevent(struct device *dev, struct kobj_uevent_env *env) in gbphy_dev_uevent() 120 static int gbphy_dev_match(struct device *dev, struct device_driver *drv) in gbphy_dev_match() 133 static int gbphy_dev_probe(struct device *dev) in gbphy_dev_probe() 172 static int gbphy_dev_remove(struct device *dev) in gbphy_dev_remove()
|