Home
last modified time | relevance | path

Searched refs:hc (Results 1 – 23 of 23) sorted by relevance

/drivers/isdn/hardware/mISDN/
Dhfcmulti.c255 #define HFC_outb(hc, reg, val) \ argument
256 (hc->HFC_outb(hc, reg, val, __func__, __LINE__))
257 #define HFC_outb_nodebug(hc, reg, val) \ argument
258 (hc->HFC_outb_nodebug(hc, reg, val, __func__, __LINE__))
259 #define HFC_inb(hc, reg) \ argument
260 (hc->HFC_inb(hc, reg, __func__, __LINE__))
261 #define HFC_inb_nodebug(hc, reg) \ argument
262 (hc->HFC_inb_nodebug(hc, reg, __func__, __LINE__))
263 #define HFC_inw(hc, reg) \ argument
264 (hc->HFC_inw(hc, reg, __func__, __LINE__))
[all …]
Dhfc_multi_8xx.h18 HFC_outb_embsd(struct hfc_multi *hc, u_char reg, u_char val, in HFC_outb_embsd() argument
21 HFC_outb_embsd(struct hfc_multi *hc, u_char reg, u_char val) in HFC_outb_embsd()
24 hc->immap->im_ioport.iop_padat |= PA_XHFC_A0; in HFC_outb_embsd()
25 writeb(reg, hc->xhfc_memaddr); in HFC_outb_embsd()
26 hc->immap->im_ioport.iop_padat &= ~(PA_XHFC_A0); in HFC_outb_embsd()
27 writeb(val, hc->xhfc_memdata); in HFC_outb_embsd()
31 HFC_inb_embsd(struct hfc_multi *hc, u_char reg, const char *function, int line) in HFC_inb_embsd() argument
33 HFC_inb_embsd(struct hfc_multi *hc, u_char reg) in HFC_inb_embsd()
36 hc->immap->im_ioport.iop_padat |= PA_XHFC_A0; in HFC_inb_embsd()
37 writeb(reg, hc->xhfc_memaddr); in HFC_inb_embsd()
[all …]
Dhfcpci.c153 enable_hwirq(struct hfc_pci *hc) in enable_hwirq() argument
155 hc->hw.int_m2 |= HFCPCI_IRQ_ENABLE; in enable_hwirq()
156 Write_hfc(hc, HFCPCI_INT_M2, hc->hw.int_m2); in enable_hwirq()
160 disable_hwirq(struct hfc_pci *hc) in disable_hwirq() argument
162 hc->hw.int_m2 &= ~((u_char)HFCPCI_IRQ_ENABLE); in disable_hwirq()
163 Write_hfc(hc, HFCPCI_INT_M2, hc->hw.int_m2); in disable_hwirq()
170 release_io_hfcpci(struct hfc_pci *hc) in release_io_hfcpci() argument
173 pci_write_config_word(hc->pdev, PCI_COMMAND, 0); in release_io_hfcpci()
174 del_timer(&hc->hw.timer); in release_io_hfcpci()
175 pci_free_consistent(hc->pdev, 0x8000, hc->hw.fifos, hc->hw.dmahandle); in release_io_hfcpci()
[all …]
Dhfc_multi.h150 void (*HFC_outb)(struct hfc_multi *hc, u_char reg,
152 void (*HFC_outb_nodebug)(struct hfc_multi *hc, u_char reg,
154 u_char (*HFC_inb)(struct hfc_multi *hc, u_char reg,
156 u_char (*HFC_inb_nodebug)(struct hfc_multi *hc, u_char reg,
158 u_short (*HFC_inw)(struct hfc_multi *hc, u_char reg,
160 u_short (*HFC_inw_nodebug)(struct hfc_multi *hc, u_char reg,
162 void (*HFC_wait)(struct hfc_multi *hc,
164 void (*HFC_wait_nodebug)(struct hfc_multi *hc,
167 void (*HFC_outb)(struct hfc_multi *hc, u_char reg,
169 void (*HFC_outb_nodebug)(struct hfc_multi *hc, u_char reg,
[all …]
Dhfcsusb.c356 dchannel_sched_event(&hc->dch, D_CLEARBUSY); in hfcusb_l2l1D()
/drivers/isdn/mISDN/
Dl1oip_core.c276 l1oip_socket_send(struct l1oip *hc, u8 localcodec, u8 channel, u32 chanmask, in l1oip_socket_send() argument
290 if (time_before(hc->keep_tl.expires, jiffies + 5 * HZ)) in l1oip_socket_send()
291 mod_timer(&hc->keep_tl, jiffies + L1OIP_KEEPALIVE * HZ); in l1oip_socket_send()
293 hc->keep_tl.expires = jiffies + L1OIP_KEEPALIVE * HZ; in l1oip_socket_send()
299 if (!hc->sin_remote.sin_addr.s_addr || !hc->sin_remote.sin_port) { in l1oip_socket_send()
308 | (hc->pri ? 0x20 : 0x00) /* type */ in l1oip_socket_send()
309 | (hc->id ? 0x10 : 0x00) /* id */ in l1oip_socket_send()
311 if (hc->id) { in l1oip_socket_send()
312 *p++ = hc->id >> 24; /* id */ in l1oip_socket_send()
313 *p++ = hc->id >> 16; in l1oip_socket_send()
[all …]
/drivers/acpi/
Dsbshc.c93 static inline int smb_hc_read(struct acpi_smb_hc *hc, u8 address, u8 *data) in smb_hc_read() argument
95 return ec_read(hc->offset + address, data); in smb_hc_read()
98 static inline int smb_hc_write(struct acpi_smb_hc *hc, u8 address, u8 data) in smb_hc_write() argument
100 return ec_write(hc->offset + address, data); in smb_hc_write()
103 static inline int smb_check_done(struct acpi_smb_hc *hc) in smb_check_done() argument
106 smb_hc_read(hc, ACPI_SMB_STATUS, &status.raw); in smb_check_done()
110 static int wait_transaction_complete(struct acpi_smb_hc *hc, int timeout) in wait_transaction_complete() argument
112 if (wait_event_timeout(hc->wait, smb_check_done(hc), in wait_transaction_complete()
120 if (smb_check_done(hc)) in wait_transaction_complete()
126 static int acpi_smbus_transaction(struct acpi_smb_hc *hc, u8 protocol, in acpi_smbus_transaction() argument
[all …]
Dsbshc.h27 extern int acpi_smbus_read(struct acpi_smb_hc *hc, u8 protocol, u8 address,
29 extern int acpi_smbus_write(struct acpi_smb_hc *hc, u8 protocol, u8 slave_address,
31 extern int acpi_smbus_register_callback(struct acpi_smb_hc *hc,
33 extern int acpi_smbus_unregister_callback(struct acpi_smb_hc *hc);
Dsbs.c109 struct acpi_smb_hc *hc; member
346 result = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_MANAGER, in acpi_manager_get_info()
358 result = acpi_smbus_read(battery->sbs->hc, in acpi_battery_get_info()
379 result = acpi_smbus_read(battery->sbs->hc, in acpi_battery_get_state()
395 return acpi_smbus_read(battery->sbs->hc, SMBUS_READ_WORD, in acpi_battery_get_alarm()
409 ret = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_MANAGER, in acpi_battery_set_alarm()
416 ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD, in acpi_battery_set_alarm()
423 ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD, ACPI_SBS_BATTERY, in acpi_battery_set_alarm()
434 result = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_CHARGER, in acpi_ac_get_present()
490 result = acpi_smbus_read(battery->sbs->hc, SMBUS_READ_WORD, in acpi_battery_read()
[all …]
/drivers/md/
Ddm-ioctl.c113 struct hash_cell *hc; in __get_name_cell() local
116 list_for_each_entry (hc, _name_buckets + h, name_list) in __get_name_cell()
117 if (!strcmp(hc->name, str)) { in __get_name_cell()
118 dm_get(hc->md); in __get_name_cell()
119 return hc; in __get_name_cell()
127 struct hash_cell *hc; in __get_uuid_cell() local
130 list_for_each_entry (hc, _uuid_buckets + h, uuid_list) in __get_uuid_cell()
131 if (!strcmp(hc->uuid, str)) { in __get_uuid_cell()
132 dm_get(hc->md); in __get_uuid_cell()
133 return hc; in __get_uuid_cell()
[all …]
/drivers/usb/host/
Dohci-mem.c73 dma_to_td (struct ohci_hcd *hc, dma_addr_t td_dma) in dma_to_td() argument
78 td = hc->td_hash [TD_HASH_FUNC(td_dma)]; in dma_to_td()
86 td_alloc (struct ohci_hcd *hc, gfp_t mem_flags) in td_alloc() argument
91 td = dma_pool_alloc (hc->td_cache, mem_flags, &dma); in td_alloc()
95 td->hwNextTD = cpu_to_hc32 (hc, dma); in td_alloc()
103 td_free (struct ohci_hcd *hc, struct td *td) in td_free() argument
105 struct td **prev = &hc->td_hash [TD_HASH_FUNC (td->td_dma)]; in td_free()
111 else if ((td->hwINFO & cpu_to_hc32(hc, TD_DONE)) != 0) in td_free()
112 ohci_dbg (hc, "no hash for td %p\n", td); in td_free()
113 dma_pool_free (hc->td_cache, td, td->td_dma); in td_free()
[all …]
Dohci.h709 #define read_roothub(hc, register, mask) ({ \ argument
710 u32 temp = ohci_readl (hc, &hc->regs->roothub.register); \
712 hc->rh_state = OHCI_RH_HALTED; \
713 else if (hc->flags & OHCI_QUIRK_AMD756) \
715 temp = ohci_readl (hc, &hc->regs->roothub.register); \
718 static inline u32 roothub_a (struct ohci_hcd *hc) in roothub_a() argument
719 { return read_roothub (hc, a, 0xfc0fe000); } in roothub_a()
720 static inline u32 roothub_b (struct ohci_hcd *hc) in roothub_b() argument
721 { return ohci_readl (hc, &hc->regs->roothub.b); } in roothub_b()
722 static inline u32 roothub_status (struct ohci_hcd *hc) in roothub_status() argument
[all …]
DMakefile73 obj-$(CONFIG_USB_HWA_HCD) += hwa-hc.o
Dohci-hub.c16 #define dbg_port(hc,label,num,value) \ argument
17 ohci_dbg (hc, \
Dohci-dbg.c167 #define dbg_port_sw(hc,num,value,next,size) \ argument
168 ohci_dbg_sw (hc, next, size, \
Dohci-q.c13 static void urb_free_priv (struct ohci_hcd *hc, urb_priv_t *urb_priv) in urb_free_priv() argument
24 td_free (hc, td); in urb_free_priv()
DKconfig745 will be called "hwa-hc".
/drivers/scsi/sym53c8xx_2/
Dsym_malloc.c234 int hc = VTOB_HASH_CODE(vaddr); in ___get_dma_mem_cluster() local
235 vbp->next = mp->vtob[hc]; in ___get_dma_mem_cluster()
236 mp->vtob[hc] = vbp; in ___get_dma_mem_cluster()
249 int hc = VTOB_HASH_CODE(m); in ___free_dma_mem_cluster() local
251 vbpp = &mp->vtob[hc]; in ___free_dma_mem_cluster()
361 int hc = VTOB_HASH_CODE(m); in __vtobus() local
369 vp = mp->vtob[hc]; in __vtobus()
/drivers/usb/dwc2/
Dhcd.h507 static inline bool dbg_hc(struct dwc2_host_chan *hc) { return true; } in dbg_hc() argument
512 static inline bool dbg_hc(struct dwc2_host_chan *hc) in dbg_hc() argument
514 return hc->ep_type == USB_ENDPOINT_XFER_BULK || in dbg_hc()
515 hc->ep_type == USB_ENDPOINT_XFER_CONTROL; in dbg_hc()
/drivers/ata/
Dsata_mv.c898 static inline void __iomem *mv_hc_base(void __iomem *base, unsigned int hc) in mv_hc_base() argument
900 return (base + SATAHC0_REG_BASE + (hc * MV_SATAHC_REG_SZ)); in mv_hc_base()
1295 int start_port, num_ports, p, start_hc, num_hcs, hc; in mv_dump_all_regs() local
1318 for (hc = start_hc; hc < start_hc + num_hcs; hc++) { in mv_dump_all_regs()
1319 hc_base = mv_hc_base(mmio_base, hc); in mv_dump_all_regs()
1320 DPRINTK("HC regs (HC %i):\n", hc); in mv_dump_all_regs()
3186 unsigned int hc) in mv5_reset_one_hc() argument
3188 void __iomem *hc_mmio = mv_hc_base(mmio, hc); in mv5_reset_one_hc()
3206 unsigned int hc, port; in mv5_reset_hc() local
3208 for (hc = 0; hc < n_hc; hc++) { in mv5_reset_hc()
[all …]
/drivers/usb/wusbcore/
DMakefile22 wa-hc.o \
/drivers/staging/speakup/
Dmain.c1622 int hc, d; in speak_highlight() local
1627 hc = get_highlight_color(vc); in speak_highlight()
1628 if (hc != -1) { in speak_highlight()
1631 if (speakup_console[vc_num]->ht.ry[hc] != vc->vc_y) in speak_highlight()
1635 spkup_write(speakup_console[vc_num]->ht.highbuf[hc], in speak_highlight()
1636 speakup_console[vc_num]->ht.highsize[hc]); in speak_highlight()
1637 spk_pos = spk_cp = speakup_console[vc_num]->ht.rpos[hc]; in speak_highlight()
1638 spk_x = spk_cx = speakup_console[vc_num]->ht.rx[hc]; in speak_highlight()
1639 spk_y = spk_cy = speakup_console[vc_num]->ht.ry[hc]; in speak_highlight()
/drivers/scsi/
Dncr53c8xx.c395 int hc = VTOB_HASH_CODE(vp); in ___dma_getp() local
398 vbp->next = mp->vtob[hc]; in ___dma_getp()
399 mp->vtob[hc] = vbp; in ___dma_getp()
412 int hc = VTOB_HASH_CODE(m); in ___dma_freep() local
414 vbpp = &mp->vtob[hc]; in ___dma_freep()
498 int hc = VTOB_HASH_CODE(m); in __vtobus() local
505 vp = mp->vtob[hc]; in __vtobus()