/kernel/linux/linux-5.10/drivers/acpi/acpica/ |
H A D | hwpci.c | 4 * Module Name: hwpci - Obtain PCI bus, device, and function numbers 23 acpi_handle device; member 52 * root_pci_device - A handle to a PCI device object. This 60 * DESCRIPTION: This function derives a full PCI ID for a PCI device, 81 * temporary device list. 104 /* Walk the list, updating the PCI device/function/bus numbers */ in acpi_hw_derive_pci_id() 120 * PARAMETERS: root_pci_device - A handle to a PCI device object. This 126 * return_list_head - Where the PCI device list is returned 131 * Root PCI device for this namespace subtree. 147 * a list of device node in acpi_hw_build_pci_list() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_sysfs.c | 12 #include <linux/device.h> 17 static ssize_t ixgbe_hwmon_show_location(struct device *dev, in ixgbe_hwmon_show_location() 27 static ssize_t ixgbe_hwmon_show_temp(struct device *dev, in ixgbe_hwmon_show_temp() 46 static ssize_t ixgbe_hwmon_show_cautionthresh(struct device *dev, in ixgbe_hwmon_show_cautionthresh() 60 static ssize_t ixgbe_hwmon_show_maxopthresh(struct device *dev, in ixgbe_hwmon_show_maxopthresh() 149 struct device *hwmon_dev; in ixgbe_sysfs_init()
|
/kernel/linux/linux-5.10/drivers/mfd/ |
H A D | mcp-core.c | 14 #include <linux/device.h> 23 static int mcp_bus_match(struct device *dev, struct device_driver *drv) in mcp_bus_match() 28 static int mcp_bus_probe(struct device *dev) in mcp_bus_probe() 36 static int mcp_bus_remove(struct device *dev) in mcp_bus_remove() 88 * mcp_reg_write - write a device register 93 * Write a device register. The MCP interface must be enabled 107 * mcp_reg_read - read a device register 111 * Read a device register and return its value. The MCP interface 164 static void mcp_release(struct device *dev) in mcp_release() 171 struct mcp *mcp_host_alloc(struct device *paren [all...] |
/kernel/linux/linux-5.10/drivers/leds/trigger/ |
H A D | ledtrig-gpio.c | 48 static ssize_t gpio_trig_brightness_show(struct device *dev, in gpio_trig_brightness_show() 56 static ssize_t gpio_trig_brightness_store(struct device *dev, in gpio_trig_brightness_store() 76 static ssize_t gpio_trig_inverted_show(struct device *dev, in gpio_trig_inverted_show() 84 static ssize_t gpio_trig_inverted_store(struct device *dev, in gpio_trig_inverted_store() 110 static ssize_t gpio_trig_gpio_show(struct device *dev, in gpio_trig_gpio_show() 118 static ssize_t gpio_trig_gpio_store(struct device *dev, in gpio_trig_gpio_store()
|
/kernel/linux/linux-5.10/drivers/leds/ |
H A D | leds-lp55xx-common.h | 39 static ssize_t show_engine##nr##_mode(struct device *dev, \ 47 static ssize_t store_engine##nr##_mode(struct device *dev, \ 55 static ssize_t show_engine##nr##_leds(struct device *dev, \ 63 static ssize_t store_engine##nr##_leds(struct device *dev, \ 71 static ssize_t store_engine##nr##_load(struct device *dev, \ 109 /* define if the device has specific initialization process */ 127 /* additional device specific attributes */ 149 * @engines : Engine structure for the device attribute R/W interface 167 * @cdev : LED class device 168 * @mc_cdev : Multi color class device [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
H A D | gk20a.c | 147 gk20a_volt_ctor(struct nvkm_device *device, int index, in gk20a_volt_ctor() argument 151 struct nvkm_device_tegra *tdev = device->func->tegra(device); in gk20a_volt_ctor() 154 nvkm_volt_ctor(&gk20a_volt, device, index, &volt->base); in gk20a_volt_ctor() 175 gk20a_volt_new(struct nvkm_device *device, int index, struct nvkm_volt **pvolt) in gk20a_volt_new() argument 184 return gk20a_volt_ctor(device, index, gk20a_cvb_coef, in gk20a_volt_new()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
H A D | chain_mode.c | 36 des2 = dma_map_single(priv->device, skb->data, in jumbo_frm() 39 if (dma_mapping_error(priv->device, des2)) in jumbo_frm() 53 des2 = dma_map_single(priv->device, in jumbo_frm() 57 if (dma_mapping_error(priv->device, des2)) in jumbo_frm() 66 des2 = dma_map_single(priv->device, in jumbo_frm() 70 if (dma_mapping_error(priv->device, des2)) in jumbo_frm()
|
H A D | ring_mode.c | 40 des2 = dma_map_single(priv->device, skb->data, bmax, in jumbo_frm() 43 if (dma_mapping_error(priv->device, des2)) in jumbo_frm() 61 des2 = dma_map_single(priv->device, skb->data + bmax, len, in jumbo_frm() 64 if (dma_mapping_error(priv->device, des2)) in jumbo_frm() 75 des2 = dma_map_single(priv->device, skb->data, in jumbo_frm() 78 if (dma_mapping_error(priv->device, des2)) in jumbo_frm()
|
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | hih6130.c | 21 #include <linux/device.h> 26 * struct hih6130 - HIH-6130 device specific data 27 * @client: pointer to I2C client device 76 * hih6130_update_measurements() - get updated measurements from device 77 * @dev: device 81 static int hih6130_update_measurements(struct device *dev) in hih6130_update_measurements() 154 * @dev: device 155 * @attr: device attribute 161 static ssize_t hih6130_temperature_show(struct device *dev, in hih6130_temperature_show() 176 * @dev: device [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
H A D | lag.c | 10 static struct sk_buff *rdma_build_skb(struct ib_device *device, in rdma_build_skb() argument 81 static struct net_device *rdma_get_xmit_slave_udp(struct ib_device *device, in rdma_get_xmit_slave_udp() argument 89 skb = rdma_build_skb(device, master, ah_attr, flags); in rdma_get_xmit_slave_udp() 95 !!(device->lag_flags & in rdma_get_xmit_slave_udp() 110 struct net_device *rdma_lag_get_ah_roce_slave(struct ib_device *device, in rdma_lag_get_ah_roce_slave() argument 134 slave = rdma_get_xmit_slave_udp(device, master, ah_attr, flags); in rdma_lag_get_ah_roce_slave()
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43legacy/ |
H A D | sysfs.c | 64 static ssize_t b43legacy_attr_interfmode_show(struct device *dev, in b43legacy_attr_interfmode_show() 98 static ssize_t b43legacy_attr_interfmode_store(struct device *dev, in b43legacy_attr_interfmode_store() 134 "supported by device\n"); in b43legacy_attr_interfmode_store() 145 static ssize_t b43legacy_attr_preamble_show(struct device *dev, in b43legacy_attr_preamble_show() 169 static ssize_t b43legacy_attr_preamble_store(struct device *dev, in b43legacy_attr_preamble_store() 200 struct device *dev = wldev->dev->dev; in b43legacy_sysfs_register() 222 struct device *dev = wldev->dev->dev; in b43legacy_sysfs_unregister()
|
/kernel/linux/linux-5.10/drivers/sh/superhyway/ |
H A D | superhyway.c | 13 #include <linux/device.h> 24 static struct device superhyway_bus_device = { 28 static void superhyway_device_release(struct device *dev) in superhyway_device_release() 39 * @sdev: SuperHyway device to add, or NULL to allocate a new one. 85 sprintf(dev->name, "SuperHyway device %04x", dev->id.id); in superhyway_add_device() 137 static int superhyway_device_probe(struct device *dev) in superhyway_device_probe() 153 static int superhyway_device_remove(struct device *dev) in superhyway_device_remove() 194 static int superhyway_bus_match(struct device *dev, struct device_driver *drv) in superhyway_bus_match()
|
/kernel/linux/linux-5.10/drivers/soundwire/ |
H A D | master.c | 4 #include <linux/device.h> 15 * the master device will only suspend when all its children are no 38 static ssize_t field##_show(struct device *dev, \ 56 static ssize_t clock_frequencies_show(struct device *dev, in clock_frequencies_show() 72 static ssize_t clock_gears_show(struct device *dev, in clock_gears_show() 103 static void sdw_master_device_release(struct device *dev) in sdw_master_device_release() 124 * @parent: parent device 127 int sdw_master_device_add(struct sdw_bus *bus, struct device *parent, in sdw_master_device_add()
|
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-pcap.c | 40 static int pcap_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in pcap_rtc_read_alarm() 59 static int pcap_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in pcap_rtc_set_alarm() 74 static int pcap_rtc_read_time(struct device *dev, struct rtc_time *tm) in pcap_rtc_read_time() 91 static int pcap_rtc_set_time(struct device *dev, struct rtc_time *tm) in pcap_rtc_set_time() 106 static int pcap_rtc_irq_enable(struct device *dev, int pirq, unsigned int en) in pcap_rtc_irq_enable() 118 static int pcap_rtc_alarm_irq_enable(struct device *dev, unsigned int en) in pcap_rtc_alarm_irq_enable()
|
/kernel/linux/linux-5.10/drivers/usb/dwc3/ |
H A D | dwc3-of-simple.c | 26 struct device *dev; 36 struct device *dev = &pdev->dev; in dwc3_of_simple_probe() 59 dev_err(dev, "failed to get device resets, err=%d\n", ret); in dwc3_of_simple_probe() 131 static int __maybe_unused dwc3_of_simple_runtime_suspend(struct device *dev) in dwc3_of_simple_runtime_suspend() 140 static int __maybe_unused dwc3_of_simple_runtime_resume(struct device *dev) in dwc3_of_simple_runtime_resume() 147 static int __maybe_unused dwc3_of_simple_suspend(struct device *dev) in dwc3_of_simple_suspend() 157 static int __maybe_unused dwc3_of_simple_resume(struct device *dev) in dwc3_of_simple_resume()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | spmi.h | 8 #include <linux/device.h> 34 * struct spmi_device - Basic representation of an SPMI device 35 * @dev: Driver model representation of the device. 36 * @ctrl: SPMI controller managing the bus hosting this device. 40 struct device dev; 45 static inline struct spmi_device *to_spmi_device(struct device *d) in to_spmi_device() 74 * @dev: Driver model representation of the device. 81 struct device dev; 90 static inline struct spmi_controller *to_spmi_controller(struct device *d) in to_spmi_controller() 107 struct spmi_controller *spmi_controller_alloc(struct device *paren [all...] |
/kernel/linux/linux-5.10/sound/firewire/ |
H A D | iso-resources.c | 8 #include <linux/device.h> 21 * @unit: the device unit for which the resources will be needed 23 * If the device does not support all channel numbers, change @r->channels_mask 140 dev_err(&r->unit->device, in fw_iso_resources_allocate() 143 dev_err(&r->unit->device, in fw_iso_resources_allocate() 192 dev_err(&r->unit->device, in fw_iso_resources_update() 195 dev_err(&r->unit->device, in fw_iso_resources_update() 228 dev_err(&r->unit->device, in fw_iso_resources_free()
|
/kernel/linux/linux-5.10/sound/ppc/ |
H A D | powermac.c | 35 static struct platform_device *device; variable 135 static int snd_pmac_driver_suspend(struct device *dev) in snd_pmac_driver_suspend() 142 static int snd_pmac_driver_resume(struct device *dev) in snd_pmac_driver_resume() 172 device = platform_device_register_simple(SND_PMAC_DRIVER, -1, NULL, 0); in alsa_card_pmac_init() 179 if (!IS_ERR(device)) in alsa_card_pmac_exit() 180 platform_device_unregister(device); in alsa_card_pmac_exit()
|
/kernel/linux/linux-5.10/tools/leds/ |
H A D | get_led_device_info.sh | 37 bus=`readlink $led_cdev_path/device/subsystem | sed s'/.*\///'` 39 ls "$led_cdev_path/device/of_node/compatible" > /dev/null 2>&1 43 input_node=`readlink $led_cdev_path/device | sed s'/.*\///'` 62 product=`cat device/name` 63 driver=`cat device/device/driver/description` 66 compatible=`cat device/of_node/compatible` 76 echo "Unknown device type." 81 printf "# LED class device hardware details #\n" 111 printf "# LED class device nam [all...] |
/kernel/linux/linux-5.10/include/rdma/ |
H A D | uverbs_std_types.h | 22 uapi_get_object((_attrs)->ufile->device->uapi, _object) 107 *ib_dev = attrs->context->device; in __uobj_alloc() 120 action->device = ib_dev; in uverbs_flow_action_fill_action() 147 struct ib_qp *qp, struct ib_device *device, in ib_set_flow() 160 ibflow->device = device; in ib_set_flow() 146 ib_set_flow(struct ib_uobject *uobj, struct ib_flow *ibflow, struct ib_qp *qp, struct ib_device *device, struct ib_uflow_resources *uflow_res) ib_set_flow() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ast/ |
H A D | ast_drv.c | 79 .device = id, \ 176 static int ast_pm_suspend(struct device *dev) in ast_pm_suspend() 191 static int ast_pm_resume(struct device *dev) in ast_pm_resume() 198 static int ast_pm_freeze(struct device *dev) in ast_pm_freeze() 205 static int ast_pm_thaw(struct device *dev) in ast_pm_thaw() 212 static int ast_pm_poweroff(struct device *dev) in ast_pm_poweroff()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
H A D | intel_dsi_dcs_backlight.c | 56 dsi_device = intel_dsi->dsi_hosts[port]->device; in dcs_get_backlight() 74 dsi_device = intel_dsi->dsi_hosts[port]->device; in dcs_set_backlight() 91 dsi_device = intel_dsi->dsi_hosts[port]->device; in dcs_disable_backlight() 99 dsi_device = intel_dsi->dsi_hosts[port]->device; in dcs_disable_backlight() 124 dsi_device = intel_dsi->dsi_hosts[port]->device; in dcs_enable_backlight() 140 dsi_device = intel_dsi->dsi_hosts[port]->device; in dcs_enable_backlight()
|
/kernel/linux/linux-5.10/drivers/platform/x86/intel_speed_select_if/ |
H A D | isst_if_mmio.c | 57 * Ensure that operation is complete on a PCI device to avoid read in isst_if_mmio_rd_wr() 58 * write race by using per PCI device mutex. in isst_if_mmio_rd_wr() 134 static int __maybe_unused isst_if_suspend(struct device *device) in isst_if_suspend() argument 136 struct isst_if_device *punit_dev = dev_get_drvdata(device); in isst_if_suspend() 149 static int __maybe_unused isst_if_resume(struct device *device) in isst_if_resume() argument 151 struct isst_if_device *punit_dev = dev_get_drvdata(device); in isst_if_resume()
|
/kernel/linux/linux-5.10/include/linux/mfd/ |
H A D | adp5520.h | 287 extern int adp5520_read(struct device *dev, int reg, uint8_t *val); 288 extern int adp5520_write(struct device *dev, int reg, u8 val); 289 extern int adp5520_clr_bits(struct device *dev, int reg, uint8_t bit_mask); 290 extern int adp5520_set_bits(struct device *dev, int reg, uint8_t bit_mask); 292 extern int adp5520_register_notifier(struct device *dev, 295 extern int adp5520_unregister_notifier(struct device *dev,
|
/kernel/linux/linux-5.10/drivers/s390/crypto/ |
H A D | zcrypt_card.c | 8 * Hotplug & misc device support: Jochen Roehrig (roehrig@de.ibm.com) 39 static ssize_t type_show(struct device *dev, in type_show() 49 static ssize_t online_show(struct device *dev, in online_show() 60 static ssize_t online_store(struct device *dev, in online_store() 89 static ssize_t load_show(struct device *dev, in load_show() 151 * zcrypt_card_register() - Register a crypto card device. 152 * @zc: Pointer to a crypto card device 154 * Register a crypto card device. Returns 0 if successful. 168 rc = sysfs_create_group(&zc->card->ap_dev.device.kobj, in zcrypt_card_register() 181 * zcrypt_card_unregister(): Unregister a crypto card device [all...] |