| /linux/drivers/greybus/ |
| H A D | hd.c | 24 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 …]
|
| H A D | connection.c | 24 struct gb_host_device *hd = intf->hd; in gb_connection_cport_in_use() local 27 list_for_each_entry(connection, &hd->connections, hd_links) { in gb_connection_cport_in_use() 54 gb_connection_hd_find(struct gb_host_device *hd, u16 cport_id) in gb_connection_hd_find() argument 60 list_for_each_entry(connection, &hd->connections, hd_links) in gb_connection_hd_find() 76 void greybus_data_rcvd(struct gb_host_device *hd, u16 cport_id, in greybus_data_rcvd() argument 81 trace_gb_hd_in(hd); in greybus_data_rcvd() 83 connection = gb_connection_hd_find(hd, cport_id); in greybus_data_rcvd() 85 dev_err(&hd->dev, in greybus_data_rcvd() 144 _gb_connection_create(struct gb_host_device *hd, int hd_cport_id, in _gb_connection_create() argument 161 ret = gb_hd_cport_allocate(hd, hd_cport_id, flags); in _gb_connection_create() [all …]
|
| H A D | es2.c | 103 struct gb_host_device *hd; member 136 static inline struct es2_ap_dev *hd_to_es2(struct gb_host_device *hd) in hd_to_es2() argument 138 return (struct es2_ap_dev *)&hd->hd_priv; in hd_to_es2() 217 static int output(struct gb_host_device *hd, void *req, u16 size, u8 cmd, in output() argument 220 struct es2_ap_dev *es2 = hd_to_es2(hd); in output() 390 static int message_send(struct gb_host_device *hd, u16 cport_id, in message_send() argument 393 struct es2_ap_dev *es2 = hd_to_es2(hd); in message_send() 405 if (!cport_id_valid(hd, cport_id)) { in message_send() 455 struct gb_host_device *hd = message->operation->connection->hd; in message_cancel() local 456 struct es2_ap_dev *es2 = hd_to_es2(hd); in message_cancel() [all …]
|
| H A D | core.c | 113 const struct gb_host_device *hd; in greybus_uevent() local 121 hd = to_gb_host_device(dev); in greybus_uevent() 124 hd = module->hd; in greybus_uevent() 128 hd = intf->hd; in greybus_uevent() 133 hd = intf->hd; in greybus_uevent() 138 hd = intf->hd; in greybus_uevent() 141 hd = svc->hd; in greybus_uevent() 147 if (add_uevent_var(env, "BUS=%u", hd->bus_id)) in greybus_uevent() 181 struct gb_host_device *hd; in greybus_shutdown() local 183 hd = to_gb_host_device(dev); in greybus_shutdown() [all …]
|
| H A D | operation.c | 220 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() 310 static void gb_operation_message_init(struct gb_host_device *hd, in gb_operation_message_init() argument 362 gb_operation_message_alloc(struct gb_host_device *hd, u8 type, in gb_operation_message_alloc() argument 369 if (message_size > hd->buffer_size_max) { in gb_operation_message_alloc() 370 dev_warn(&hd->dev, "requested message size too big (%zu > %zu)\n", in gb_operation_message_alloc() 371 message_size, hd->buffer_size_max); in gb_operation_message_alloc() [all …]
|
| H A D | module.c | 41 ret = gb_svc_intf_eject(module->hd->svc, module->module_id); in eject_store() 89 struct gb_module *gb_module_create(struct gb_host_device *hd, u8 module_id, in gb_module_create() argument 101 module->hd = hd; in gb_module_create() 105 module->dev.parent = &hd->dev; in gb_module_create() 109 module->dev.dma_mask = hd->dev.dma_mask; in gb_module_create() 111 dev_set_name(&module->dev, "%d-%u", hd->bus_id, module_id); in gb_module_create()
|
| H A D | greybus_trace.h | 179 __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))
|
| /linux/arch/sh/drivers/ |
| H A D | heartbeat.c | 32 static inline void heartbeat_toggle_bit(struct heartbeat_data *hd, in heartbeat_toggle_bit() argument 37 new = (1 << hd->bit_pos[bit]); in heartbeat_toggle_bit() 41 new &= hd->mask; in heartbeat_toggle_bit() 43 switch (hd->regsize) { in heartbeat_toggle_bit() 45 new |= ioread32(hd->base) & ~hd->mask; in heartbeat_toggle_bit() 46 iowrite32(new, hd->base); in heartbeat_toggle_bit() 49 new |= ioread16(hd->base) & ~hd->mask; in heartbeat_toggle_bit() 50 iowrite16(new, hd->base); in heartbeat_toggle_bit() 53 new |= ioread8(hd->base) & ~hd->mask; in heartbeat_toggle_bit() 54 iowrite8(new, hd->base); in heartbeat_toggle_bit() [all …]
|
| /linux/drivers/clk/qcom/ |
| H A D | clk-hfpll.c | 23 struct hfpll_data const *hd = h->d; in __clk_hfpll_init_once() local 30 if (hd->config_val) in __clk_hfpll_init_once() 31 regmap_write(regmap, hd->config_reg, hd->config_val); in __clk_hfpll_init_once() 32 regmap_write(regmap, hd->m_reg, 0); in __clk_hfpll_init_once() 33 regmap_write(regmap, hd->n_reg, 1); in __clk_hfpll_init_once() 35 if (hd->user_reg) { in __clk_hfpll_init_once() 36 u32 regval = hd->user_val; in __clk_hfpll_init_once() 42 if (hd->user_vco_mask && rate > hd->low_vco_max_rate) in __clk_hfpll_init_once() 43 regval |= hd->user_vco_mask; in __clk_hfpll_init_once() 44 regmap_write(regmap, hd->user_reg, regval); in __clk_hfpll_init_once() [all …]
|
| /linux/include/linux/greybus/ |
| H A D | hd.h | 21 int (*cport_allocate)(struct gb_host_device *hd, int cport_id, 23 void (*cport_release)(struct gb_host_device *hd, u16 cport_id); 24 int (*cport_enable)(struct gb_host_device *hd, u16 cport_id, 26 int (*cport_disable)(struct gb_host_device *hd, u16 cport_id); 27 int (*cport_connected)(struct gb_host_device *hd, u16 cport_id); 28 int (*cport_flush)(struct gb_host_device *hd, u16 cport_id); 29 int (*cport_shutdown)(struct gb_host_device *hd, u16 cport_id, 31 int (*cport_quiesce)(struct gb_host_device *hd, u16 cport_id, 33 int (*cport_clear)(struct gb_host_device *hd, u16 cport_id); 35 int (*message_send)(struct gb_host_device *hd, u16 dest_cport_id, [all …]
|
| H A D | connection.h | 39 struct gb_host_device *hd; member 67 struct gb_connection *gb_connection_create_static(struct gb_host_device *hd, 93 void greybus_data_rcvd(struct gb_host_device *hd, u16 cport_id,
|
| H A D | module.h | 17 struct gb_host_device *hd; member 30 struct gb_module *gb_module_create(struct gb_host_device *hd, u8 module_id,
|
| H A D | svc.h | 42 struct gb_host_device *hd; member 62 struct gb_svc *gb_svc_create(struct gb_host_device *hd);
|
| /linux/drivers/video/fbdev/omap2/omapfb/dss/ |
| H A D | hdmi4.c | 303 static void hdmi_start_audio_stream(struct omap_hdmi *hd) in hdmi_start_audio_stream() argument 305 hdmi_wp_audio_enable(&hd->wp, true); in hdmi_start_audio_stream() 306 hdmi4_audio_start(&hd->core, &hd->wp); in hdmi_start_audio_stream() 309 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument 311 hdmi4_audio_stop(&hd->core, &hd->wp); in hdmi_stop_audio_stream() 312 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream() 553 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local 556 mutex_lock(&hd->lock); in hdmi_audio_startup() 558 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_startup() 563 hd->audio_abort_cb = abort_cb; in hdmi_audio_startup() [all …]
|
| H A D | hdmi5.c | 331 static void hdmi_start_audio_stream(struct omap_hdmi *hd) in hdmi_start_audio_stream() argument 334 hdmi_wp_audio_enable(&hd->wp, true); in hdmi_start_audio_stream() 335 hdmi_wp_audio_core_req_enable(&hd->wp, true); in hdmi_start_audio_stream() 338 static void hdmi_stop_audio_stream(struct omap_hdmi *hd) in hdmi_stop_audio_stream() argument 340 hdmi_wp_audio_core_req_enable(&hd->wp, false); in hdmi_stop_audio_stream() 341 hdmi_wp_audio_enable(&hd->wp, false); in hdmi_stop_audio_stream() 342 REG_FLD_MOD(hd->wp.base, HDMI_WP_SYSCONFIG, hd->wp_idlemode, 3, 2); in hdmi_stop_audio_stream() 585 struct omap_hdmi *hd = dev_get_drvdata(dev); in hdmi_audio_startup() local 588 mutex_lock(&hd->lock); in hdmi_audio_startup() 590 if (!hdmi_mode_has_audio(&hd->cfg) || !hd->display_enabled) { in hdmi_audio_startup() [all …]
|
| /linux/drivers/message/fusion/ |
| H A 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() 328 mptspi_initTarget(MPT_SCSI_HOST *hd, VirtTarget *vtarget, in mptspi_initTarget() argument 343 if ((sdev->type == TYPE_PROCESSOR) && (hd->ioc->spi_data.Saf_Te)) { in mptspi_initTarget() 347 mptspi_writeIOCPage4(hd, vtarget->channel, vtarget->id); in mptspi_initTarget() 358 mptspi_writeIOCPage4(hd, vtarget->channel, vtarget->id); in mptspi_initTarget() 362 mptspi_setTargetNegoParms(hd, vtarget, sdev); in mptspi_initTarget() 376 mptspi_is_raid(struct _MPT_SCSI_HOST *hd, u32 id) in mptspi_is_raid() argument [all …]
|
| H A D | mptfc.c | 189 MPT_SCSI_HOST *hd; in mptfc_block_error_handler() local 196 hd = shost_priv(shost); in mptfc_block_error_handler() 197 ioc = hd->ioc; in mptfc_block_error_handler() 229 MPT_SCSI_HOST __maybe_unused *hd = shost_priv(shost); in mptfc_abort() local 234 dfcprintk (hd->ioc, printk(MYIOC_s_DEBUG_FMT in mptfc_abort() 236 hd->ioc->name, shost->host_no, in mptfc_abort() 248 MPT_SCSI_HOST __maybe_unused *hd = shost_priv(shost); in mptfc_dev_reset() local 253 dfcprintk (hd->ioc, printk(MYIOC_s_DEBUG_FMT in mptfc_dev_reset() 255 hd->ioc->name, shost->host_no, in mptfc_dev_reset() 266 MPT_SCSI_HOST __maybe_unused *hd = shost_priv(shost); in mptfc_bus_reset() local [all …]
|
| /linux/arch/mips/sgi-ip30/ |
| H A D | ip30-irq.c | 146 struct heart_irq_data *hd = irq_data_get_irq_chip_data(d); in ip30_mask_heart_irq() local 147 unsigned long *mask = &per_cpu(irq_enable_mask, hd->cpu); in ip30_mask_heart_irq() 150 heart_write(*mask, &heart_regs->imr[hd->cpu]); in ip30_mask_heart_irq() 155 struct heart_irq_data *hd = irq_data_get_irq_chip_data(d); in ip30_mask_and_ack_heart_irq() local 156 unsigned long *mask = &per_cpu(irq_enable_mask, hd->cpu); in ip30_mask_and_ack_heart_irq() 159 heart_write(*mask, &heart_regs->imr[hd->cpu]); in ip30_mask_and_ack_heart_irq() 165 struct heart_irq_data *hd = irq_data_get_irq_chip_data(d); in ip30_unmask_heart_irq() local 166 unsigned long *mask = &per_cpu(irq_enable_mask, hd->cpu); in ip30_unmask_heart_irq() 169 heart_write(*mask, &heart_regs->imr[hd->cpu]); in ip30_unmask_heart_irq() 175 struct heart_irq_data *hd = irq_data_get_irq_chip_data(d); in ip30_set_heart_irq_affinity() local [all …]
|
| /linux/drivers/staging/greybus/ |
| H A D | audio_apbridgea.c | 24 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_set_config() 45 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_register_cport() 62 ret = gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_unregister_cport() 80 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_set_tx_data_size() 93 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_prepare_tx() 107 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_start_tx() 119 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_stop_tx() 132 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_shutdown_tx() 146 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_set_rx_data_size() 159 return gb_hd_output(connection->hd, &req, sizeof(req), in gb_audio_apbridgea_prepare_rx() [all …]
|
| /linux/include/drm/ |
| H A D | drm_modes.h | 134 #define DRM_MODE(nm, t, c, hd, hss, hse, ht, hsk, vd, vss, vse, vt, vs, f) \ argument 136 .hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \ 149 #define __DRM_MODE_INIT(pix, hd, vd, hd_mm, vd_mm) \ argument 151 .hdisplay = (hd), .hsync_start = (hd), .hsync_end = (hd), \ 152 .htotal = (hd), .vdisplay = (vd), .vsync_start = (vd), \ 167 #define DRM_MODE_INIT(hz, hd, vd, hd_mm, vd_mm) \ argument 168 __DRM_MODE_INIT((hd) * (vd) * (hz) / 1000 /* kHz */, hd, vd, hd_mm, vd_mm) 180 #define DRM_SIMPLE_MODE(hd, vd, hd_mm, vd_mm) \ argument 181 __DRM_MODE_INIT(1 /* pass validation */, hd, vd, hd_mm, vd_mm)
|
| /linux/drivers/scsi/ |
| H A D | wd33c93.c | 1862 static inline void set_resync ( struct WD33C93_hostdata *hd, int mask ) in set_resync() argument 1867 hd->sync_stat[i] = SS_UNSET; in set_resync() 2000 struct WD33C93_hostdata *hd; in wd33c93_write_info() local 2003 hd = (struct WD33C93_hostdata *) instance->hostdata; in wd33c93_write_info() 2024 hd->args = simple_strtoul(bp+6, &bp, 0) & DB_MASK; in wd33c93_write_info() 2029 hd->disconnect = x; in wd33c93_write_info() 2032 hd->default_sx_per = in wd33c93_write_info() 2033 hd->sx_table[round_period((unsigned int) x, in wd33c93_write_info() 2034 hd->sx_table)].period_ns; in wd33c93_write_info() 2036 set_resync(hd, (int)simple_strtoul(bp+7, &bp, 0)); in wd33c93_write_info() [all …]
|
| /linux/scripts/coccinelle/api/ |
| H A D | check_bq27xxx_data.cocci | 19 let p = List.hd p in 89 i1regs i2regs (List.hd p2).line in 125 i1dmregs i2dmregs (List.hd p2).line in 161 i1props i2props (List.hd p2).line in
|
| /linux/include/linux/ |
| H A D | hpet.h | 103 static inline void hpet_reserve_timer(struct hpet_data *hd, int timer) in hpet_reserve_timer() argument 105 hd->hd_state |= (1 << timer); in hpet_reserve_timer()
|
| H A D | greybus.h | 116 static inline bool cport_id_valid(struct gb_host_device *hd, u16 cport_id) in cport_id_valid() argument 118 return cport_id != CPORT_ID_BAD && cport_id < hd->num_cports; in cport_id_valid()
|
| /linux/drivers/scsi/aacraid/ |
| H A D | aachba.c | 115 } __attribute__((packed)) hd; member 133 } __attribute__((packed)) hd; member 3049 mpd.hd.data_length = sizeof(mpd.hd) - 1; in aac_scsi_cmd() 3051 mpd.hd.med_type = 0; in aac_scsi_cmd() 3055 mpd.hd.dev_par = 0; in aac_scsi_cmd() 3058 mpd.hd.dev_par = 0x10; in aac_scsi_cmd() 3060 mpd.hd.bd_length = 0; /* Block descriptor length */ in aac_scsi_cmd() 3062 mpd.hd.bd_length = sizeof(mpd.bd); in aac_scsi_cmd() 3063 mpd.hd.data_length += mpd.hd.bd_length; in aac_scsi_cmd() 3076 mpd.hd.data_length = 23; in aac_scsi_cmd() [all …]
|