Home
last modified time | relevance | path

Searched refs:hd (Results 1 – 25 of 95) sorted by relevance

1234

/Linux-v4.19/drivers/staging/greybus/
Dhd.c24 int gb_hd_output(struct gb_host_device *hd, void *req, u16 size, u8 cmd, in gb_hd_output() argument
27 if (!hd || !hd->driver || !hd->driver->output) in gb_hd_output()
29 return hd->driver->output(hd, req, size, cmd, async); in gb_hd_output()
36 struct gb_host_device *hd = to_gb_host_device(dev); in bus_id_show() local
38 return sprintf(buf, "%d\n", hd->bus_id); in bus_id_show()
48 int gb_hd_cport_reserve(struct gb_host_device *hd, u16 cport_id) in gb_hd_cport_reserve() argument
50 struct ida *id_map = &hd->cport_id_map; in gb_hd_cport_reserve()
55 dev_err(&hd->dev, "failed to reserve cport %u\n", cport_id); in gb_hd_cport_reserve()
63 void gb_hd_cport_release_reserved(struct gb_host_device *hd, u16 cport_id) in gb_hd_cport_release_reserved() argument
65 struct ida *id_map = &hd->cport_id_map; in gb_hd_cport_release_reserved()
[all …]
Dconnection.c28 struct gb_host_device *hd = intf->hd; in gb_connection_cport_in_use() local
31 list_for_each_entry(connection, &hd->connections, hd_links) { in gb_connection_cport_in_use()
58 gb_connection_hd_find(struct gb_host_device *hd, u16 cport_id) in gb_connection_hd_find() argument
64 list_for_each_entry(connection, &hd->connections, hd_links) in gb_connection_hd_find()
80 void greybus_data_rcvd(struct gb_host_device *hd, u16 cport_id, in greybus_data_rcvd() argument
85 trace_gb_hd_in(hd); in greybus_data_rcvd()
87 connection = gb_connection_hd_find(hd, cport_id); in greybus_data_rcvd()
89 dev_err(&hd->dev, in greybus_data_rcvd()
148 _gb_connection_create(struct gb_host_device *hd, int hd_cport_id, in _gb_connection_create() argument
165 ret = gb_hd_cport_allocate(hd, hd_cport_id, flags); in _gb_connection_create()
[all …]
Dhd.h18 int (*cport_allocate)(struct gb_host_device *hd, int cport_id,
20 void (*cport_release)(struct gb_host_device *hd, u16 cport_id);
21 int (*cport_enable)(struct gb_host_device *hd, u16 cport_id,
23 int (*cport_disable)(struct gb_host_device *hd, u16 cport_id);
24 int (*cport_connected)(struct gb_host_device *hd, u16 cport_id);
25 int (*cport_flush)(struct gb_host_device *hd, u16 cport_id);
26 int (*cport_shutdown)(struct gb_host_device *hd, u16 cport_id,
28 int (*cport_quiesce)(struct gb_host_device *hd, u16 cport_id,
30 int (*cport_clear)(struct gb_host_device *hd, u16 cport_id);
32 int (*message_send)(struct gb_host_device *hd, u16 dest_cport_id,
[all …]
Des2.c104 struct gb_host_device *hd; member
137 static inline struct es2_ap_dev *hd_to_es2(struct gb_host_device *hd) in hd_to_es2() argument
139 return (struct es2_ap_dev *)&hd->hd_priv; in hd_to_es2()
218 static int output(struct gb_host_device *hd, void *req, u16 size, u8 cmd, in output() argument
221 struct es2_ap_dev *es2 = hd_to_es2(hd); in output()
391 static int message_send(struct gb_host_device *hd, u16 cport_id, in message_send() argument
394 struct es2_ap_dev *es2 = hd_to_es2(hd); in message_send()
406 if (!cport_id_valid(hd, cport_id)) { in message_send()
456 struct gb_host_device *hd = message->operation->connection->hd; in message_cancel() local
457 struct es2_ap_dev *es2 = hd_to_es2(hd); in message_cancel()
[all …]
Dcore.c83 struct gb_host_device *hd; in greybus_uevent() local
91 hd = to_gb_host_device(dev); in greybus_uevent()
94 hd = module->hd; in greybus_uevent()
98 hd = intf->hd; in greybus_uevent()
103 hd = intf->hd; in greybus_uevent()
108 hd = intf->hd; in greybus_uevent()
111 hd = svc->hd; in greybus_uevent()
117 if (add_uevent_var(env, "BUS=%u", hd->bus_id)) in greybus_uevent()
151 struct gb_host_device *hd; in greybus_shutdown() local
153 hd = to_gb_host_device(dev); in greybus_shutdown()
[all …]
Daudio_apbridgea.c25 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_set_config()
46 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_register_cport()
63 ret = gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_unregister_cport()
81 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_set_tx_data_size()
94 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_prepare_tx()
108 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_start_tx()
120 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_stop_tx()
133 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_shutdown_tx()
147 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_set_rx_data_size()
160 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_prepare_rx()
[all …]
Doperation.c220 return connection->hd->driver->message_send(connection->hd, in gb_message_send()
231 struct gb_host_device *hd = message->operation->connection->hd; in gb_message_cancel() local
233 hd->driver->message_cancel(message); in gb_message_cancel()
245 dev_err(&connection->hd->dev, in gb_operation_request_handle()
254 dev_err(&connection->hd->dev, in gb_operation_request_handle()
309 static void gb_operation_message_init(struct gb_host_device *hd, in gb_operation_message_init() argument
360 gb_operation_message_alloc(struct gb_host_device *hd, u8 type, in gb_operation_message_alloc() argument
367 if (message_size > hd->buffer_size_max) { in gb_operation_message_alloc()
368 dev_warn(&hd->dev, "requested message size too big (%zu > %zu)\n", in gb_operation_message_alloc()
369 message_size, hd->buffer_size_max); in gb_operation_message_alloc()
[all …]
Dmodule.c42 ret = gb_svc_intf_eject(module->hd->svc, module->module_id); in eject_store()
90 struct gb_module *gb_module_create(struct gb_host_device *hd, u8 module_id, in gb_module_create() argument
102 module->hd = hd; in gb_module_create()
106 module->dev.parent = &hd->dev; in gb_module_create()
110 module->dev.dma_mask = hd->dev.dma_mask; in gb_module_create()
112 dev_set_name(&module->dev, "%d-%u", hd->bus_id, module_id); in gb_module_create()
Dgreybus_trace.h179 __entry->hd_bus_id = connection->hd->bus_id;
388 __entry->hd_bus_id = module->hd->bus_id;
431 TP_PROTO(struct gb_host_device *hd),
433 TP_ARGS(hd),
442 __entry->bus_id = hd->bus_id;
443 __entry->num_cports = hd->num_cports;
444 __entry->buffer_size_max = hd->buffer_size_max;
454 TP_PROTO(struct gb_host_device *hd), \
455 TP_ARGS(hd))
Dinterface.c51 return gb_svc_dme_peer_get(intf->hd->svc, intf->interface_id, in gb_interface_dme_attr_get()
128 struct gb_svc *svc = intf->hd->svc; in gb_interface_route_create()
175 struct gb_svc *svc = intf->hd->svc; in gb_interface_route_destroy()
363 struct gb_host_device *hd = intf->hd; in gb_interface_read_and_clear_init_status() local
381 ret = gb_svc_dme_peer_get(hd->svc, intf->interface_id, attr, in gb_interface_read_and_clear_init_status()
435 return gb_svc_dme_peer_set(hd->svc, intf->interface_id, attr, in gb_interface_read_and_clear_init_status()
464 ret = gb_svc_pwrmon_intf_sample_get(intf->hd->svc, intf->interface_id, in voltage_now_show()
483 ret = gb_svc_pwrmon_intf_sample_get(intf->hd->svc, intf->interface_id, in current_now_show()
502 ret = gb_svc_pwrmon_intf_sample_get(intf->hd->svc, intf->interface_id, in power_now_show()
736 struct gb_svc *svc = intf->hd->svc; in gb_interface_resume()
[all …]
/Linux-v4.19/arch/sh/drivers/
Dheartbeat.c35 static inline void heartbeat_toggle_bit(struct heartbeat_data *hd, in heartbeat_toggle_bit() argument
40 new = (1 << hd->bit_pos[bit]); in heartbeat_toggle_bit()
44 new &= hd->mask; in heartbeat_toggle_bit()
46 switch (hd->regsize) { in heartbeat_toggle_bit()
48 new |= ioread32(hd->base) & ~hd->mask; in heartbeat_toggle_bit()
49 iowrite32(new, hd->base); in heartbeat_toggle_bit()
52 new |= ioread16(hd->base) & ~hd->mask; in heartbeat_toggle_bit()
53 iowrite16(new, hd->base); in heartbeat_toggle_bit()
56 new |= ioread8(hd->base) & ~hd->mask; in heartbeat_toggle_bit()
57 iowrite8(new, hd->base); in heartbeat_toggle_bit()
[all …]
/Linux-v4.19/drivers/auxdisplay/
Dhd44780.c43 struct hd44780 *hd = lcd->drvdata; in hd44780_backlight() local
45 if (hd->pins[PIN_CTRL_BL]) in hd44780_backlight()
46 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_BL], on); in hd44780_backlight()
49 static void hd44780_strobe_gpio(struct hd44780 *hd) in hd44780_strobe_gpio() argument
54 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_E], 1); in hd44780_strobe_gpio()
59 gpiod_set_value_cansleep(hd->pins[PIN_CTRL_E], 0); in hd44780_strobe_gpio()
63 static void hd44780_write_gpio8(struct hd44780 *hd, u8 val, unsigned int rs) in hd44780_write_gpio8() argument
72 if (hd->pins[PIN_CTRL_RW]) { in hd44780_write_gpio8()
78 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA0], values); in hd44780_write_gpio8()
80 hd44780_strobe_gpio(hd); in hd44780_write_gpio8()
[all …]
/Linux-v4.19/drivers/video/fbdev/omap2/omapfb/dss/
Dhdmi4.c314 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 …]
Dhdmi5.c342 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 …]
/Linux-v4.19/drivers/message/fusion/
Dmptspi.c108 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 …]
Dmptscsih.c95 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 …]
/Linux-v4.19/fs/dlm/
Dutil.c25 static void header_out(struct dlm_header *hd) in header_out() argument
27 hd->h_version = cpu_to_le32(hd->h_version); in header_out()
28 hd->h_lockspace = cpu_to_le32(hd->h_lockspace); in header_out()
29 hd->h_nodeid = cpu_to_le32(hd->h_nodeid); in header_out()
30 hd->h_length = cpu_to_le16(hd->h_length); in header_out()
33 static void header_in(struct dlm_header *hd) in header_in() argument
35 hd->h_version = le32_to_cpu(hd->h_version); in header_in()
36 hd->h_lockspace = le32_to_cpu(hd->h_lockspace); in header_in()
37 hd->h_nodeid = le32_to_cpu(hd->h_nodeid); in header_in()
38 hd->h_length = le16_to_cpu(hd->h_length); in header_in()
/Linux-v4.19/net/smc/
Dsmc_llc.c39 struct smc_llc_hdr hd; member
55 struct smc_llc_hdr hd; member
70 struct smc_llc_hdr hd; member
77 struct smc_llc_hdr hd; member
96 struct smc_llc_hdr hd; member
102 struct smc_llc_hdr hd; member
111 struct smc_llc_hdr hd; member
199 confllc->hd.common.type = SMC_LLC_CONFIRM_LINK; in smc_llc_send_confirm_link()
200 confllc->hd.length = sizeof(struct smc_llc_msg_confirm_link); in smc_llc_send_confirm_link()
201 confllc->hd.flags |= SMC_LLC_FLAG_NO_RMBE_EYEC; in smc_llc_send_confirm_link()
[all …]
/Linux-v4.19/drivers/gpu/drm/omapdrm/dss/
Dhdmi5.c349 static void hdmi_start_audio_stream(struct omap_hdmi *hd) in hdmi_start_audio_stream() argument
351 REG_FLD_MOD(hd->wp.base, HDMI_WP_SYSCONFIG, 1, 3, 2); in hdmi_start_audio_stream()
352 hdmi_wp_audio_enable(&hd->wp, true); in hdmi_start_audio_stream()
353 hdmi_wp_audio_core_req_enable(&hd->wp, true); in hdmi_start_audio_stream()
356 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument
358 hdmi_wp_audio_core_req_enable(&hd->wp, false); in hdmi_stop_audio_stream()
359 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream()
360 REG_FLD_MOD(hd->wp.base, HDMI_WP_SYSCONFIG, hd->wp_idlemode, 3, 2); in hdmi_stop_audio_stream()
608 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local
610 mutex_lock(&hd->lock); in hdmi_audio_startup()
[all …]
Dhdmi4.c345 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 hdmi4_audio_start(&hd->core, &hd->wp); in hdmi_start_audio_stream()
351 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument
353 hdmi4_audio_stop(&hd->core, &hd->wp); in hdmi_stop_audio_stream()
354 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream()
617 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local
619 mutex_lock(&hd->lock); in hdmi_audio_startup()
621 WARN_ON(hd->audio_abort_cb != NULL); in hdmi_audio_startup()
623 hd->audio_abort_cb = abort_cb; in hdmi_audio_startup()
[all …]
/Linux-v4.19/include/drm/tinydrm/
Dtinydrm.h86 #define TINYDRM_MODE(hd, vd, hd_mm, vd_mm) \ argument
87 .hdisplay = (hd), \
88 .hsync_start = (hd), \
89 .hsync_end = (hd), \
90 .htotal = (hd), \
/Linux-v4.19/drivers/scsi/
Dwd33c93.c1926 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 …]
Dsgiwd93.c66 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()
/Linux-v4.19/block/partitions/
Dcheck.c115 static struct parsed_partitions *allocate_partitions(struct gendisk *hd) in allocate_partitions() argument
124 nr = disk_max_parts(hd); in allocate_partitions()
143 check_partition(struct gendisk *hd, struct block_device *bdev) in check_partition() argument
148 state = allocate_partitions(hd); in check_partition()
159 disk_name(hd, 0, state->name); in check_partition()
/Linux-v4.19/arch/x86/kernel/
Dhpet.c183 static void hpet_reserve_msi_timers(struct hpet_data *hd);
190 struct hpet_data hd; in hpet_reserve_platform_timers() local
194 memset(&hd, 0, sizeof(hd)); in hpet_reserve_platform_timers()
195 hd.hd_phys_address = hpet_address; in hpet_reserve_platform_timers()
196 hd.hd_address = hpet; in hpet_reserve_platform_timers()
197 hd.hd_nirqs = nrtimers; in hpet_reserve_platform_timers()
198 hpet_reserve_timer(&hd, 0); in hpet_reserve_platform_timers()
201 hpet_reserve_timer(&hd, 1); in hpet_reserve_platform_timers()
209 hd.hd_irq[0] = HPET_LEGACY_8254; in hpet_reserve_platform_timers()
210 hd.hd_irq[1] = HPET_LEGACY_RTC; in hpet_reserve_platform_timers()
[all …]

1234