/kernel/linux/linux-5.10/drivers/mfd/ |
H A D | da903x.c | 59 struct device *dev; 126 int da903x_register_notifier(struct device *dev, struct notifier_block *nb, in da903x_register_notifier() 136 int da903x_unregister_notifier(struct device *dev, struct notifier_block *nb, in da903x_unregister_notifier() 146 int da903x_write(struct device *dev, int reg, uint8_t val) in da903x_write() 152 int da903x_writes(struct device *dev, int reg, int len, uint8_t *val) in da903x_writes() 158 int da903x_read(struct device *dev, int reg, uint8_t *val) in da903x_read() 164 int da903x_reads(struct device *dev, int reg, int len, uint8_t *val) in da903x_reads() 170 int da903x_set_bits(struct device *dev, int reg, uint8_t bit_mask) in da903x_set_bits() 192 int da903x_clr_bits(struct device *dev, int reg, uint8_t bit_mask) in da903x_clr_bits() 214 int da903x_update(struct device *de [all...] |
/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-rx8025.c | 103 static int rx8025_check_validity(struct device *dev) in rx8025_check_validity() 178 static int rx8025_get_time(struct device *dev, struct rtc_time *dt) in rx8025_get_time() 212 static int rx8025_set_time(struct device *dev, struct rtc_time *dt) in rx8025_set_time() 282 static int rx8025_read_alarm(struct device *dev, struct rtc_wkalrm *t) in rx8025_read_alarm() 319 static int rx8025_set_alarm(struct device *dev, struct rtc_wkalrm *t) in rx8025_set_alarm() 371 static int rx8025_alarm_irq_enable(struct device *dev, unsigned int enabled) in rx8025_alarm_irq_enable() 419 static int rx8025_get_clock_adjust(struct device *dev, int *adj) in rx8025_get_clock_adjust() 436 static int rx8025_set_clock_adjust(struct device *dev, int adj) in rx8025_set_clock_adjust() 462 static ssize_t rx8025_sysfs_show_clock_adjust(struct device *dev, in rx8025_sysfs_show_clock_adjust() 475 static ssize_t rx8025_sysfs_store_clock_adjust(struct device *de [all...] |
H A D | rtc-pxa.c | 168 static int pxa_rtc_open(struct device *dev) in pxa_rtc_open() 196 static void pxa_rtc_release(struct device *dev) in pxa_rtc_release() 208 static int pxa_alarm_irq_enable(struct device *dev, unsigned int enabled) in pxa_alarm_irq_enable() 223 static int pxa_rtc_read_time(struct device *dev, struct rtc_time *tm) in pxa_rtc_read_time() 235 static int pxa_rtc_set_time(struct device *dev, struct rtc_time *tm) in pxa_rtc_set_time() 245 static int pxa_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in pxa_rtc_read_alarm() 260 static int pxa_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in pxa_rtc_set_alarm() 282 static int pxa_rtc_proc(struct device *dev, struct seq_file *seq) in pxa_rtc_proc() 307 struct device *dev = &pdev->dev; in pxa_rtc_probe() 352 dev_err(dev, "Unable to init SA1100 RTC sub-device\ in pxa_rtc_probe() [all...] |
/kernel/linux/linux-6.6/drivers/mfd/ |
H A D | da903x.c | 59 struct device *dev; 126 int da903x_register_notifier(struct device *dev, struct notifier_block *nb, in da903x_register_notifier() 136 int da903x_unregister_notifier(struct device *dev, struct notifier_block *nb, in da903x_unregister_notifier() 146 int da903x_write(struct device *dev, int reg, uint8_t val) in da903x_write() 152 int da903x_writes(struct device *dev, int reg, int len, uint8_t *val) in da903x_writes() 158 int da903x_read(struct device *dev, int reg, uint8_t *val) in da903x_read() 164 int da903x_reads(struct device *dev, int reg, int len, uint8_t *val) in da903x_reads() 170 int da903x_set_bits(struct device *dev, int reg, uint8_t bit_mask) in da903x_set_bits() 192 int da903x_clr_bits(struct device *dev, int reg, uint8_t bit_mask) in da903x_clr_bits() 214 int da903x_update(struct device *de [all...] |
/kernel/linux/linux-6.6/include/linux/usb/ |
H A D | gadget.h | 5 * We call the USB code inside a Linux-based peripheral device a "gadget" 19 #include <linux/device.h> 71 * Code "-ESHUTDOWN" indicates completion caused by device disconnect, 78 * reside in a device-side FIFO when the request is reported as 132 * note that device side usb controllers commonly differ in how many 195 * struct usb_ep - device side representation of USB endpoint 307 /* the rest of the api to the controller hardware: device operations, 337 * struct usb_gadget - represents a usb device 343 * @ep_list: List of other endpoints supported by the device. 354 * @dev: Driver model state for this abstract device [all...] |
/kernel/linux/linux-6.6/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, 167 struct device *dev = &pdev->dev; in cdns_imx_probe() 223 struct device *dev = &pdev->dev; in cdns_imx_remove() 248 static int cdns_imx_platform_suspend(struct device *dev, in cdns_imx_platform_suspend() 252 struct device *parent = dev->parent; in cdns_imx_platform_suspend() 347 static int cdns_imx_resume(struct device *dev) in cdns_imx_resume() 354 static int cdns_imx_suspend(struct device *dev) in cdns_imx_suspend() 376 static int __maybe_unused cdns_imx_system_suspend(struct device *de [all...] |
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-ab-eoz9.c | 97 struct device *hwmon_dev; 100 static int abeoz9_check_validity(struct device *dev) in abeoz9_check_validity() 143 static int abeoz9_rtc_get_time(struct device *dev, struct rtc_time *tm) in abeoz9_rtc_get_time() 181 static int abeoz9_rtc_set_time(struct device *dev, struct rtc_time *tm) in abeoz9_rtc_set_time() 208 static int abeoz9_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) in abeoz9_rtc_read_alarm() 242 static int abeoz9_rtc_alarm_irq_enable(struct device *dev, u32 enable) in abeoz9_rtc_alarm_irq_enable() 251 static int abeoz9_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) in abeoz9_rtc_set_alarm() 321 static int abeoz9_rtc_setup(struct device *dev, struct device_node *node) in abeoz9_rtc_setup() 386 static int abeoz9z3_temp_read(struct device *dev, in abeoz9z3_temp_read() 474 static void abeoz9_hwmon_register(struct device *de [all...] |
H A D | rtc-brcmstb-waketimer.c | 9 #include <linux/device.h> 28 struct device *dev; 150 struct device *dev = timer->dev; in brcmstb_waketmr_prepare_suspend() 187 static int brcmstb_waketmr_gettime(struct device *dev, in brcmstb_waketmr_gettime() 200 static int brcmstb_waketmr_settime(struct device *dev, in brcmstb_waketmr_settime() 213 static int brcmstb_waketmr_getalarm(struct device *dev, in brcmstb_waketmr_getalarm() 226 static int brcmstb_waketmr_alarm_enable(struct device *dev, in brcmstb_waketmr_alarm_enable() 254 static int brcmstb_waketmr_setalarm(struct device *dev, in brcmstb_waketmr_setalarm() 276 struct device *dev = &pdev->dev; in brcmstb_waketmr_probe() 367 static int brcmstb_waketmr_suspend(struct device *de [all...] |
H A D | rtc-mcp795.c | 15 #include <linux/device.h> 60 static int mcp795_rtcc_read(struct device *dev, u8 addr, u8 *buf, u8 count) in mcp795_rtcc_read() 77 static int mcp795_rtcc_write(struct device *dev, u8 addr, u8 *data, u8 count) in mcp795_rtcc_write() 96 static int mcp795_rtcc_set_bits(struct device *dev, u8 addr, u8 mask, u8 state) in mcp795_rtcc_set_bits() 113 static int mcp795_stop_oscillator(struct device *dev, bool *extosc) in mcp795_stop_oscillator() 144 static int mcp795_start_oscillator(struct device *dev, bool *extosc) in mcp795_start_oscillator() 160 static int mcp795_update_alarm(struct device *dev, bool enable) in mcp795_update_alarm() 183 static int mcp795_set_time(struct device *dev, struct rtc_time *tim) in mcp795_set_time() 237 static int mcp795_read_time(struct device *dev, struct rtc_time *tim) in mcp795_read_time() 260 static int mcp795_set_alarm(struct device *de [all...] |
H A D | rtc-pxa.c | 165 static int pxa_rtc_open(struct device *dev) in pxa_rtc_open() 193 static void pxa_rtc_release(struct device *dev) in pxa_rtc_release() 205 static int pxa_alarm_irq_enable(struct device *dev, unsigned int enabled) in pxa_alarm_irq_enable() 220 static int pxa_rtc_read_time(struct device *dev, struct rtc_time *tm) in pxa_rtc_read_time() 232 static int pxa_rtc_set_time(struct device *dev, struct rtc_time *tm) in pxa_rtc_set_time() 242 static int pxa_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) in pxa_rtc_read_alarm() 257 static int pxa_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) in pxa_rtc_set_alarm() 279 static int pxa_rtc_proc(struct device *dev, struct seq_file *seq) in pxa_rtc_proc() 304 struct device *dev = &pdev->dev; in pxa_rtc_probe() 349 dev_err(dev, "Unable to init SA1100 RTC sub-device\ in pxa_rtc_probe() [all...] |
H A D | rtc-tps65910.c | 47 static int tps65910_rtc_alarm_irq_enable(struct device *dev, in tps65910_rtc_alarm_irq_enable() 68 static int tps65910_rtc_read_time(struct device *dev, struct rtc_time *tm) in tps65910_rtc_read_time() 99 static int tps65910_rtc_set_time(struct device *dev, struct rtc_time *tm) in tps65910_rtc_set_time() 140 static int tps65910_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) in tps65910_rtc_read_alarm() 171 static int tps65910_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) in tps65910_rtc_set_alarm() 202 static int tps65910_rtc_set_calibration(struct device *dev, int calibration) in tps65910_rtc_set_calibration() 247 static int tps65910_rtc_get_calibration(struct device *dev, int *calibration) in tps65910_rtc_get_calibration() 279 static int tps65910_read_offset(struct device *dev, long *offset) in tps65910_read_offset() 303 static int tps65910_set_offset(struct device *dev, long offset) in tps65910_set_offset() 331 struct device *de in tps65910_rtc_interrupt() [all...] |
/kernel/linux/linux-6.6/drivers/usb/musb/ |
H A D | omap2430.c | 32 struct device *dev; 36 struct device *control_otghs; 85 * HDRC controls CPEN, but beware current surges during device connect. 193 struct device *dev = musb->controller; in omap2430_musb_init() 254 struct device *dev = musb->controller; in omap2430_musb_enable() 264 struct device *dev = musb->controller; in omap2430_musb_disable() 274 struct device *dev = musb->controller; in omap2430_musb_exit() 325 dev_err(&pdev->dev, "failed to allocate musb device\n"); in omap2430_probe() 381 dev_err(&pdev->dev, "Failed to get control device\n"); in omap2430_probe() 458 dev_err(&pdev->dev, "failed to register musb device\ in omap2430_probe() [all...] |
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | scsi.h | 178 __entry->host_no = cmd->device->host->host_no; 179 __entry->channel = cmd->device->channel; 180 __entry->id = cmd->device->id; 181 __entry->lun = cmd->device->lun; 225 __entry->host_no = cmd->device->host->host_no; 226 __entry->channel = cmd->device->channel; 227 __entry->id = cmd->device->id; 228 __entry->lun = cmd->device->lun; 280 __entry->host_no = cmd->device->host->host_no; 281 __entry->channel = cmd->device [all...] |
/kernel/linux/linux-6.6/drivers/crypto/ccree/ |
H A D | cc_request_mgr.c | 89 struct device *dev = drvdata_to_dev(drvdata); in cc_req_mgr_fini() 116 struct device *dev = drvdata_to_dev(drvdata); in cc_req_mgr_init() 189 struct device *dev = drvdata_to_dev(drvdata); in enqueue_seq() 216 static void request_mgr_complete(struct device *dev, void *dx_compl_h, in request_mgr_complete() 229 struct device *dev = drvdata_to_dev(drvdata); in cc_queues_status() 271 * @drvdata: Associated device driver context 286 struct device *dev = drvdata_to_dev(drvdata); in cc_do_send_request() 334 struct device *dev = drvdata_to_dev(drvdata); in cc_enqueue_backlog() 350 struct device *dev = drvdata_to_dev(drvdata); in cc_proc_backlog() 407 struct device *de in cc_send_request() [all...] |
/kernel/linux/linux-6.6/drivers/firmware/arm_scmi/ |
H A D | bus.c | 16 #include <linux/device.h> 38 * scmi_protocol_device_request - Helper to request a device 40 * @id_table: A protocol/name pair descriptor for the device to be created. 45 * The requested device name MUST NOT be already existent for any protocol; 47 * @scmi_requested_devices and then the requested device is advertised to any 59 pr_debug("Requesting SCMI device (%s) for protocol %x\n", in scmi_protocol_device_request() 71 * of any existent equally named device...fails if any duplicate found. in scmi_protocol_device_request() 96 * requested device entry for this new valid request. in scmi_protocol_device_request() 106 * Append the new requested device table descriptor to the head of the in scmi_protocol_device_request() 123 pr_err("Failed to save SCMI device in scmi_protocol_device_request() [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/mlx5/ |
H A D | gsi.c | 91 struct mlx5_ib_dev *dev = to_mdev(pd->device); in mlx5_ib_create_gsi() 101 num_qps = pd->device->attrs.max_pkeys; in mlx5_ib_create_gsi() 131 gsi->cq = ib_alloc_cq(pd->device, gsi, attr->cap.max_send_wr, 0, in mlx5_ib_create_gsi() 170 struct mlx5_ib_dev *dev = to_mdev(mqp->ibqp.device); in mlx5_ib_destroy_gsi() 222 struct mlx5_ib_dev *dev = to_mdev(qp->device); in modify_to_rts() 261 struct ib_device *device = gsi->rx_qp->device; in setup_qp() local 262 struct mlx5_ib_dev *dev = to_mdev(device); in setup_qp() 273 ret = ib_query_pkey(device, gsi->port_num, pkey_index, &pkey); in setup_qp() 323 struct mlx5_ib_dev *dev = to_mdev(qp->device); in mlx5_ib_gsi_modify_qp() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/rockchip/ |
H A D | rockchip_drm_drv.c | 48 * Attach a (component) device to the shared drm dma mapping from master drm 49 * device. This is used by the VOPs to map GEM buffers to a common DMA 53 struct device *dev) in rockchip_drm_dma_attach_device() 72 DRM_DEV_ERROR(dev, "Failed to attach iommu device\n"); in rockchip_drm_dma_attach_device() 80 struct device *dev) in rockchip_drm_dma_detach_device() 91 struct device *dev) in rockchip_drm_dma_init_device() 137 static int rockchip_drm_bind(struct device *dev) in rockchip_drm_bind() 208 static void rockchip_drm_unbind(struct device *dev) in rockchip_drm_unbind() 238 static int rockchip_drm_sys_suspend(struct device *dev) in rockchip_drm_sys_suspend() 245 static int rockchip_drm_sys_resume(struct device *de [all...] |
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | max31760.c | 54 static bool max31760_volatile_reg(struct device *dev, unsigned int reg) in max31760_volatile_reg() 77 static int max31760_read(struct device *dev, enum hwmon_sensor_types type, in max31760_read() 236 static int max31760_write(struct device *dev, enum hwmon_sensor_types type, in max31760_write() 382 static int max31760_read_string(struct device *dev, in max31760_read_string() 411 static ssize_t lut_show(struct device *dev, in lut_show() 426 static ssize_t lut_store(struct device *dev, in lut_store() 446 static ssize_t pwm1_auto_point_temp_hyst_show(struct device *dev, in pwm1_auto_point_temp_hyst_show() 461 static ssize_t pwm1_auto_point_temp_hyst_store(struct device *dev, in pwm1_auto_point_temp_hyst_store() 519 struct device *dev = &client->dev; in max31760_probe() 521 struct device *hwmon_de in max31760_probe() [all...] |
H A D | adm1021.c | 76 char low_power; /* !=0 if device in low power mode */ 91 static struct adm1021_data *adm1021_update_device(struct device *dev) in adm1021_update_device() 146 static ssize_t temp_show(struct device *dev, struct device_attribute *devattr, in temp_show() 155 static ssize_t temp_max_show(struct device *dev, in temp_max_show() 164 static ssize_t temp_min_show(struct device *dev, in temp_min_show() 173 static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, in alarm_show() 181 static ssize_t alarms_show(struct device *dev, in alarms_show() 189 static ssize_t temp_max_store(struct device *dev, in temp_max_store() 215 static ssize_t temp_min_store(struct device *dev, in temp_min_store() 241 static ssize_t low_power_show(struct device *de [all...] |
/kernel/linux/linux-6.6/drivers/hwspinlock/ |
H A D | hwspinlock_core.c | 131 /* try to take the hwspinlock device */ in __hwspin_trylock() 307 * @bank: the hwspinlock device bank 308 * @hwlock_spec: hwlock specifier as found in the device tree 327 * @np: device node from which to request the specific hwlock 332 * hwspinlock device, so that it can be requested using the normal 336 * device is not yet registered, -EINVAL on invalid args specifier value or an 358 /* Find the hwspinlock device: we need its base_id */ in of_hwspin_lock_get_id() 394 * @np: device node from which to request the specific hwlock 399 * the hwspinlock device, so that it can be requested using the normal 403 * device i [all...] |
/kernel/linux/linux-6.6/drivers/leds/trigger/ |
H A D | ledtrig-netdev.c | 7 // Toggles the LED to reflect the link and traffic state of a named net device 15 #include <linux/device.h> 34 * device_name - network device name to monitor 141 struct device *dev = led_cdev->hw_control_get_device(led_cdev); in validate_net_dev() 208 static ssize_t device_name_show(struct device *dev, in device_name_show() 265 static ssize_t device_name_store(struct device *dev, in device_name_store() 281 static ssize_t netdev_led_attr_show(struct device *dev, char *buf, in netdev_led_attr_show() 305 static ssize_t netdev_led_attr_store(struct device *dev, const char *buf, in netdev_led_attr_store() 354 static ssize_t trigger_name##_show(struct device *dev, \ 359 static ssize_t trigger_name##_store(struct device *de [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/filesystems/binderfs/ |
H A D | binderfs_test.c | 61 struct binderfs_device device = { 0 }; in __do_binderfs_test() local 88 memcpy(device.name, "my-binder", strlen("my-binder")); in __do_binderfs_test() 93 TH_LOG("%s - Failed to open binder-control device", in __do_binderfs_test() 98 ret = ioctl(fd, BINDER_CTL_ADD, &device); in __do_binderfs_test() 103 TH_LOG("%s - Failed to allocate new binder device", in __do_binderfs_test() 108 TH_LOG("Allocated new binder device with major %d, minor %d, and name %s", in __do_binderfs_test() 109 device.major, device.minor, device.name); in __do_binderfs_test() 111 /* success: binder device allocatio in __do_binderfs_test() 386 struct binderfs_device device = { 0 }; TEST() local [all...] |
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/ |
H A D | qla_attr.c | 24 struct device, kobj))); in qla2x00_sysfs_read_fw_dump() 65 struct device, kobj))); in qla2x00_sysfs_write_fw_dump() 187 struct device, kobj))); in qla2x00_sysfs_read_nvram() 227 struct device, kobj))); in qla2x00_sysfs_write_nvram() 301 struct device, kobj))); in qla2x00_sysfs_read_optrom() 325 struct device, kobj))); in qla2x00_sysfs_write_optrom() 363 struct device, kobj))); in qla2x00_sysfs_write_optrom_ctl() 547 struct device, kobj))); in qla2x00_sysfs_read_vpd() 594 struct device, kobj))); in qla2x00_sysfs_write_vpd() 661 struct device, kob in qla2x00_sysfs_read_sfp() [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | dpt_i2o.c | 200 if(pDev->device == PCI_DPT_DEVICE_ID || in adpt_detect() 201 pDev->device == PCI_DPT_RAPTOR_DEVICE_ID){ in adpt_detect() 203 PERROR("Could not Init an I2O RAID device\n"); in adpt_detect() 280 struct device *dev = device_create(adpt_sysfs_class, in adpt_detect() 285 "create device in dpt_i2o class\n", in adpt_detect() 291 // Register our control device node in adpt_detect() 408 static int adpt_slave_configure(struct scsi_device * device) in adpt_slave_configure() argument 410 struct Scsi_Host *host = device->host; in adpt_slave_configure() 412 if (host->can_queue && device->tagged_supported) { in adpt_slave_configure() 413 scsi_change_queue_depth(device, in adpt_slave_configure() [all...] |
/kernel/linux/linux-6.6/drivers/cxl/core/ |
H A D | region.c | 5 #include <linux/device.h> 31 static struct cxl_region *to_cxl_region(struct device *dev); 33 static ssize_t uuid_show(struct device *dev, struct device_attribute *attr, in uuid_show() 52 static int is_dup(struct device *match, void *data) in is_dup() 73 static ssize_t uuid_store(struct device *dev, struct device_attribute *attr, in uuid_store() 257 static ssize_t commit_store(struct device *dev, struct device_attribute *attr, in commit_store() 329 static ssize_t commit_show(struct device *dev, struct device_attribute *attr, in commit_show() 349 struct device *dev = kobj_to_dev(kobj); in cxl_region_visible() 361 static ssize_t interleave_ways_show(struct device *dev, in interleave_ways_show() 379 static ssize_t interleave_ways_store(struct device *de [all...] |