/drivers/staging/greybus/ |
D | hd.c | 25 int gb_hd_output(struct gb_host_device *hd, void *req, u16 size, u8 cmd, in gb_hd_output() argument 28 if (!hd || !hd->driver || !hd->driver->output) in gb_hd_output() 30 return hd->driver->output(hd, req, size, cmd, async); in gb_hd_output() 37 struct gb_host_device *hd = to_gb_host_device(dev); in bus_id_show() local 39 return sprintf(buf, "%d\n", hd->bus_id); in bus_id_show() 49 int gb_hd_cport_reserve(struct gb_host_device *hd, u16 cport_id) in gb_hd_cport_reserve() argument 51 struct ida *id_map = &hd->cport_id_map; in gb_hd_cport_reserve() 56 dev_err(&hd->dev, "failed to reserve cport %u\n", cport_id); in gb_hd_cport_reserve() 64 void gb_hd_cport_release_reserved(struct gb_host_device *hd, u16 cport_id) in gb_hd_cport_release_reserved() argument 66 struct ida *id_map = &hd->cport_id_map; in gb_hd_cport_release_reserved() [all …]
|
D | connection.c | 29 struct gb_host_device *hd = intf->hd; in gb_connection_cport_in_use() local 32 list_for_each_entry(connection, &hd->connections, hd_links) { in gb_connection_cport_in_use() 59 gb_connection_hd_find(struct gb_host_device *hd, u16 cport_id) in gb_connection_hd_find() argument 65 list_for_each_entry(connection, &hd->connections, hd_links) in gb_connection_hd_find() 81 void greybus_data_rcvd(struct gb_host_device *hd, u16 cport_id, in greybus_data_rcvd() argument 86 trace_gb_hd_in(hd); in greybus_data_rcvd() 88 connection = gb_connection_hd_find(hd, cport_id); in greybus_data_rcvd() 90 dev_err(&hd->dev, in greybus_data_rcvd() 149 _gb_connection_create(struct gb_host_device *hd, int hd_cport_id, in _gb_connection_create() argument 166 ret = gb_hd_cport_allocate(hd, hd_cport_id, flags); in _gb_connection_create() [all …]
|
D | hd.h | 19 int (*cport_allocate)(struct gb_host_device *hd, int cport_id, 21 void (*cport_release)(struct gb_host_device *hd, u16 cport_id); 22 int (*cport_enable)(struct gb_host_device *hd, u16 cport_id, 24 int (*cport_disable)(struct gb_host_device *hd, u16 cport_id); 25 int (*cport_connected)(struct gb_host_device *hd, u16 cport_id); 26 int (*cport_flush)(struct gb_host_device *hd, u16 cport_id); 27 int (*cport_shutdown)(struct gb_host_device *hd, u16 cport_id, 29 int (*cport_quiesce)(struct gb_host_device *hd, u16 cport_id, 31 int (*cport_clear)(struct gb_host_device *hd, u16 cport_id); 33 int (*message_send)(struct gb_host_device *hd, u16 dest_cport_id, [all …]
|
D | es2.c | 105 struct gb_host_device *hd; member 138 static inline struct es2_ap_dev *hd_to_es2(struct gb_host_device *hd) in hd_to_es2() argument 140 return (struct es2_ap_dev *)&hd->hd_priv; in hd_to_es2() 219 static int output(struct gb_host_device *hd, void *req, u16 size, u8 cmd, in output() argument 222 struct es2_ap_dev *es2 = hd_to_es2(hd); in output() 392 static int message_send(struct gb_host_device *hd, u16 cport_id, in message_send() argument 395 struct es2_ap_dev *es2 = hd_to_es2(hd); in message_send() 407 if (!cport_id_valid(hd, cport_id)) { in message_send() 457 struct gb_host_device *hd = message->operation->connection->hd; in message_cancel() local 458 struct es2_ap_dev *es2 = hd_to_es2(hd); in message_cancel() [all …]
|
D | core.c | 84 struct gb_host_device *hd; in greybus_uevent() local 92 hd = to_gb_host_device(dev); in greybus_uevent() 95 hd = module->hd; in greybus_uevent() 99 hd = intf->hd; in greybus_uevent() 104 hd = intf->hd; in greybus_uevent() 109 hd = intf->hd; in greybus_uevent() 112 hd = svc->hd; in greybus_uevent() 118 if (add_uevent_var(env, "BUS=%u", hd->bus_id)) in greybus_uevent() 152 struct gb_host_device *hd; in greybus_shutdown() local 154 hd = to_gb_host_device(dev); in greybus_shutdown() [all …]
|
D | operation.c | 221 return connection->hd->driver->message_send(connection->hd, in gb_message_send() 232 struct gb_host_device *hd = message->operation->connection->hd; in gb_message_cancel() local 234 hd->driver->message_cancel(message); in gb_message_cancel() 246 dev_err(&connection->hd->dev, in gb_operation_request_handle() 255 dev_err(&connection->hd->dev, in gb_operation_request_handle() 310 static void gb_operation_message_init(struct gb_host_device *hd, in gb_operation_message_init() argument 361 gb_operation_message_alloc(struct gb_host_device *hd, u8 type, in gb_operation_message_alloc() argument 368 if (message_size > hd->buffer_size_max) { in gb_operation_message_alloc() 369 dev_warn(&hd->dev, "requested message size too big (%zu > %zu)\n", in gb_operation_message_alloc() 370 message_size, hd->buffer_size_max); in gb_operation_message_alloc() [all …]
|
D | audio_apbridgea.c | 26 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_set_config() 47 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_register_cport() 64 ret = gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_unregister_cport() 82 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_set_tx_data_size() 95 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_prepare_tx() 109 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_start_tx() 121 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_stop_tx() 134 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_shutdown_tx() 148 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_set_rx_data_size() 161 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_prepare_rx() [all …]
|
D | module.c | 43 ret = gb_svc_intf_eject(module->hd->svc, module->module_id); in eject_store() 91 struct gb_module *gb_module_create(struct gb_host_device *hd, u8 module_id, in gb_module_create() argument 103 module->hd = hd; in gb_module_create() 107 module->dev.parent = &hd->dev; in gb_module_create() 111 module->dev.dma_mask = hd->dev.dma_mask; in gb_module_create() 113 dev_set_name(&module->dev, "%d-%u", hd->bus_id, module_id); in gb_module_create()
|
D | greybus_trace.h | 180 __entry->hd_bus_id = connection->hd->bus_id; 389 __entry->hd_bus_id = module->hd->bus_id; 432 TP_PROTO(struct gb_host_device *hd), 434 TP_ARGS(hd), 443 __entry->bus_id = hd->bus_id; 444 __entry->num_cports = hd->num_cports; 445 __entry->buffer_size_max = hd->buffer_size_max; 455 TP_PROTO(struct gb_host_device *hd), \ 456 TP_ARGS(hd))
|
D | interface.c | 52 return gb_svc_dme_peer_get(intf->hd->svc, intf->interface_id, in gb_interface_dme_attr_get() 129 struct gb_svc *svc = intf->hd->svc; in gb_interface_route_create() 176 struct gb_svc *svc = intf->hd->svc; in gb_interface_route_destroy() 364 struct gb_host_device *hd = intf->hd; in gb_interface_read_and_clear_init_status() local 382 ret = gb_svc_dme_peer_get(hd->svc, intf->interface_id, attr, in gb_interface_read_and_clear_init_status() 436 return gb_svc_dme_peer_set(hd->svc, intf->interface_id, attr, in gb_interface_read_and_clear_init_status() 465 ret = gb_svc_pwrmon_intf_sample_get(intf->hd->svc, intf->interface_id, in voltage_now_show() 484 ret = gb_svc_pwrmon_intf_sample_get(intf->hd->svc, intf->interface_id, in current_now_show() 503 ret = gb_svc_pwrmon_intf_sample_get(intf->hd->svc, intf->interface_id, in power_now_show() 737 struct gb_svc *svc = intf->hd->svc; in gb_interface_resume() [all …]
|
D | svc.c | 883 struct gb_host_device *hd = svc->hd; in gb_svc_interface_lookup() local 888 list_for_each_entry(module, &hd->modules, hd_node) { in gb_svc_interface_lookup() 903 struct gb_host_device *hd = svc->hd; in gb_svc_module_lookup() local 906 list_for_each_entry(module, &hd->modules, hd_node) { in gb_svc_module_lookup() 951 struct gb_host_device *hd = svc->hd; in gb_svc_process_module_inserted() local 979 module = gb_module_create(hd, module_id, num_interfaces); in gb_svc_process_module_inserted() 991 list_add(&module->hd_node, &hd->modules); in gb_svc_process_module_inserted() 1308 struct gb_svc *gb_svc_create(struct gb_host_device *hd) in gb_svc_create() argument 1316 svc->wq = alloc_workqueue("%s:svc", WQ_UNBOUND, 1, dev_name(&hd->dev)); in gb_svc_create() 1322 svc->dev.parent = &hd->dev; in gb_svc_create() [all …]
|
D | connection.h | 37 struct gb_host_device *hd; member 65 struct gb_connection *gb_connection_create_static(struct gb_host_device *hd, 91 void greybus_data_rcvd(struct gb_host_device *hd, u16 cport_id,
|
D | module.h | 15 struct gb_host_device *hd; member 28 struct gb_module *gb_module_create(struct gb_host_device *hd, u8 module_id,
|
/drivers/auxdisplay/ |
D | hd44780.c | 46 struct hd44780 *hd = lcd->drvdata; in hd44780_backlight() local 48 if (hd->pins[PIN_CTRL_BL]) in hd44780_backlight() 49 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_BL], on); in hd44780_backlight() 52 static void hd44780_strobe_gpio(struct hd44780 *hd) in hd44780_strobe_gpio() argument 57 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_E], 1); in hd44780_strobe_gpio() 62 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_E], 0); in hd44780_strobe_gpio() 66 static void hd44780_write_gpio8(struct hd44780 *hd, u8 val, unsigned int rs) in hd44780_write_gpio8() argument 75 if (hd->pins[PIN_CTRL_RW]) { in hd44780_write_gpio8() 81 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA0], values); in hd44780_write_gpio8() 83 hd44780_strobe_gpio(hd); in hd44780_write_gpio8() [all …]
|
/drivers/gpu/drm/omapdrm/dss/ |
D | hdmi5.c | 344 static void hdmi_start_audio_stream(struct omap_hdmi *hd) in hdmi_start_audio_stream() argument 347 hdmi_wp_audio_enable(&hd->wp, true); in hdmi_start_audio_stream() 348 hdmi_wp_audio_core_req_enable(&hd->wp, true); in hdmi_start_audio_stream() 351 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument 353 hdmi_wp_audio_core_req_enable(&hd->wp, false); in hdmi_stop_audio_stream() 354 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream() 355 REG_FLD_MOD(hd->wp.base, HDMI_WP_SYSCONFIG, hd->wp_idlemode, 3, 2); in hdmi_stop_audio_stream() 595 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local 598 mutex_lock(&hd->lock); in hdmi_audio_startup() 600 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_startup() [all …]
|
D | hdmi4.c | 320 static void hdmi_start_audio_stream(struct omap_hdmi *hd) in hdmi_start_audio_stream() argument 322 hdmi_wp_audio_enable(&hd->wp, true); in hdmi_start_audio_stream() 323 hdmi4_audio_start(&hd->core, &hd->wp); in hdmi_start_audio_stream() 326 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument 328 hdmi4_audio_stop(&hd->core, &hd->wp); in hdmi_stop_audio_stream() 329 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream() 569 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local 572 mutex_lock(&hd->lock); in hdmi_audio_startup() 574 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_startup() 579 hd->audio_abort_cb = abort_cb; in hdmi_audio_startup() [all …]
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | hdmi4.c | 314 static void hdmi_start_audio_stream(struct omap_hdmi *hd) in hdmi_start_audio_stream() argument 316 hdmi_wp_audio_enable(&hd->wp, true); in hdmi_start_audio_stream() 317 hdmi4_audio_start(&hd->core, &hd->wp); in hdmi_start_audio_stream() 320 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument 322 hdmi4_audio_stop(&hd->core, &hd->wp); in hdmi_stop_audio_stream() 323 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream() 566 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local 569 mutex_lock(&hd->lock); in hdmi_audio_startup() 571 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_startup() 576 hd->audio_abort_cb = abort_cb; in hdmi_audio_startup() [all …]
|
D | hdmi5.c | 342 static void hdmi_start_audio_stream(struct omap_hdmi *hd) in hdmi_start_audio_stream() argument 345 hdmi_wp_audio_enable(&hd->wp, true); in hdmi_start_audio_stream() 346 hdmi_wp_audio_core_req_enable(&hd->wp, true); in hdmi_start_audio_stream() 349 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument 351 hdmi_wp_audio_core_req_enable(&hd->wp, false); in hdmi_stop_audio_stream() 352 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream() 353 REG_FLD_MOD(hd->wp.base, HDMI_WP_SYSCONFIG, hd->wp_idlemode, 3, 2); in hdmi_stop_audio_stream() 596 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local 599 mutex_lock(&hd->lock); in hdmi_audio_startup() 601 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_startup() [all …]
|
/drivers/message/fusion/ |
D | mptspi.c | 108 mptspi_setTargetNegoParms(MPT_SCSI_HOST *hd, VirtTarget *target, in mptspi_setTargetNegoParms() argument 111 MPT_ADAPTER *ioc = hd->ioc; in mptspi_setTargetNegoParms() 254 mptspi_writeIOCPage4(MPT_SCSI_HOST *hd, u8 channel , u8 id) in mptspi_writeIOCPage4() argument 256 MPT_ADAPTER *ioc = hd->ioc; in mptspi_writeIOCPage4() 333 mptspi_initTarget(MPT_SCSI_HOST *hd, VirtTarget *vtarget, in mptspi_initTarget() argument 348 if ((sdev->type == TYPE_PROCESSOR) && (hd->ioc->spi_data.Saf_Te)) { in mptspi_initTarget() 352 mptspi_writeIOCPage4(hd, vtarget->channel, vtarget->id); in mptspi_initTarget() 363 mptspi_writeIOCPage4(hd, vtarget->channel, vtarget->id); in mptspi_initTarget() 367 mptspi_setTargetNegoParms(hd, vtarget, sdev); in mptspi_initTarget() 381 mptspi_is_raid(struct _MPT_SCSI_HOST *hd, u32 id) in mptspi_is_raid() argument [all …]
|
D | mptscsih.c | 95 static void mptscsih_copy_sense_data(struct scsi_cmnd *sc, MPT_SCSI_HOST *hd, MPT_FRAME_HDR *mf, SC… 97 int mptscsih_IssueTaskMgmt(MPT_SCSI_HOST *hd, u8 type, u8 channel, u8 id, 108 static int mptscsih_do_cmd(MPT_SCSI_HOST *hd, INTERNAL_CMD *iocmd); 109 static void mptscsih_synchronize_cache(MPT_SCSI_HOST *hd, VirtDevice *vdevice); 591 MPT_SCSI_HOST *hd; in mptscsih_io_done() local 598 hd = shost_priv(ioc->sh); in mptscsih_io_done() 688 mptscsih_copy_sense_data(sc, hd, mf, pScsiReply); in mptscsih_io_done() 726 if (hd->sel_timeout[pScsiReq->TargetID] < 0xFFFF) in mptscsih_io_done() 727 hd->sel_timeout[pScsiReq->TargetID]++; in mptscsih_io_done() 1030 mptscsih_flush_running_cmds(MPT_SCSI_HOST *hd) in mptscsih_flush_running_cmds() argument [all …]
|
/drivers/scsi/ |
D | eata_pio.c | 115 hostdata *hd = SD(sh); in eata_pio_release() local 125 if (hd->pdev) in eata_pio_release() 126 pci_dev_put(hd->pdev); in eata_pio_release() 162 hostdata *hd; in eata_pio_int_handler() local 181 hd = SD(sh); in eata_pio_int_handler() 183 cp = &hd->ccb[0]; in eata_pio_int_handler() 246 while ((stat & HA_SDRQ) || ((stat & HA_SMORE) && hd->moresupport)); in eata_pio_int_handler() 259 hd->devflags |= (1 << cp->cp_id); in eata_pio_int_handler() 260 } else if (hd->devflags & (1 << cp->cp_id)) in eata_pio_int_handler() 308 hostdata *hd; in eata_pio_queue_lck() local [all …]
|
D | wd33c93.c | 1926 static inline void set_resync ( struct WD33C93_hostdata *hd, int mask ) in set_resync() argument 1931 hd->sync_stat[i] = SS_UNSET; in set_resync() 2064 struct WD33C93_hostdata *hd; in wd33c93_write_info() local 2067 hd = (struct WD33C93_hostdata *) instance->hostdata; in wd33c93_write_info() 2088 hd->args = simple_strtoul(bp+6, &bp, 0) & DB_MASK; in wd33c93_write_info() 2093 hd->disconnect = x; in wd33c93_write_info() 2096 hd->default_sx_per = in wd33c93_write_info() 2097 hd->sx_table[round_period((unsigned int) x, in wd33c93_write_info() 2098 hd->sx_table)].period_ns; in wd33c93_write_info() 2100 set_resync(hd, (int)simple_strtoul(bp+7, &bp, 0)); in wd33c93_write_info() [all …]
|
D | sgiwd93.c | 66 void fill_hpc_entries(struct ip22_hostdata *hd, struct scsi_cmnd *cmd, int din) in fill_hpc_entries() argument 74 physaddr = dma_map_single(hd->dev, addr, len, DMA_DIR(din)); in fill_hpc_entries() 76 hcp = hd->cpu; in fill_hpc_entries() 98 dma_cache_sync(hd->dev, hd->cpu, in fill_hpc_entries() 99 (unsigned long)(hcp + 1) - (unsigned long)hd->cpu, in fill_hpc_entries()
|
/drivers/gpu/drm/radeon/ |
D | radeon_uvd.c | 852 unsigned *sd, unsigned *hd) in radeon_uvd_count_handles() argument 857 *hd = 0; in radeon_uvd_count_handles() 864 ++(*hd); in radeon_uvd_count_handles() 878 &rdev->pm.dpm.hd); in radeon_uvd_idle_work_handler() 897 unsigned hd = 0, sd = 0; in radeon_uvd_note_usage() local 898 radeon_uvd_count_handles(rdev, &sd, &hd); in radeon_uvd_note_usage() 900 (rdev->pm.dpm.hd != hd)) { in radeon_uvd_note_usage() 902 rdev->pm.dpm.hd = hd; in radeon_uvd_note_usage()
|
/drivers/video/fbdev/matrox/ |
D | matroxfb_misc.c | 191 unsigned int hd, hs, he, hbe, ht; in matroxfb_vgaHWinit() local 239 hd = m->HDisplay >> 3; in matroxfb_vgaHWinit() 248 hd >>= 1; in matroxfb_vgaHWinit() 257 hd <<= 1; in matroxfb_vgaHWinit() 263 hd = hd - 1; in matroxfb_vgaHWinit() 289 ((hd & 0x100) >> 7) | /* blanking */ in matroxfb_vgaHWinit() 304 hw->CRTC[1] = hd; in matroxfb_vgaHWinit() 305 hw->CRTC[2] = hd; in matroxfb_vgaHWinit()
|