Home
last modified time | relevance | path

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

/linux-4.4.14/net/dccp/ccids/
Dccid2.c38 static int ccid2_hc_tx_alloc_seq(struct ccid2_hc_tx_sock *hc) in ccid2_hc_tx_alloc_seq() argument
44 if (hc->tx_seqbufc >= (sizeof(hc->tx_seqbuf) / in ccid2_hc_tx_alloc_seq()
61 if (hc->tx_seqbufc == 0) in ccid2_hc_tx_alloc_seq()
62 hc->tx_seqh = hc->tx_seqt = seqp; in ccid2_hc_tx_alloc_seq()
65 hc->tx_seqh->ccid2s_next = seqp; in ccid2_hc_tx_alloc_seq()
66 seqp->ccid2s_prev = hc->tx_seqh; in ccid2_hc_tx_alloc_seq()
68 hc->tx_seqt->ccid2s_prev = &seqp[CCID2_SEQBUF_LEN - 1]; in ccid2_hc_tx_alloc_seq()
69 seqp[CCID2_SEQBUF_LEN - 1].ccid2s_next = hc->tx_seqt; in ccid2_hc_tx_alloc_seq()
73 hc->tx_seqbuf[hc->tx_seqbufc] = seqp; in ccid2_hc_tx_alloc_seq()
74 hc->tx_seqbufc++; in ccid2_hc_tx_alloc_seq()
[all …]
Dccid3.c66 struct ccid3_hc_tx_sock *hc = ccid3_hc_tx_sk(sk); in ccid3_hc_tx_set_state() local
67 enum ccid3_hc_tx_states oldstate = hc->tx_state; in ccid3_hc_tx_set_state()
73 hc->tx_state = state; in ccid3_hc_tx_set_state()
87 const struct ccid3_hc_tx_sock *hc = ccid3_hc_tx_sk(sk); in rfc3390_initial_rate() local
88 const __u32 w_init = clamp_t(__u32, 4380U, 2 * hc->tx_s, 4 * hc->tx_s); in rfc3390_initial_rate()
90 return scaled_div(w_init << 6, hc->tx_rtt); in rfc3390_initial_rate()
97 static void ccid3_update_send_interval(struct ccid3_hc_tx_sock *hc) in ccid3_update_send_interval() argument
99 hc->tx_t_ipi = scaled_div32(((u64)hc->tx_s) << 6, hc->tx_x); in ccid3_update_send_interval()
101 DCCP_BUG_ON(hc->tx_t_ipi == 0); in ccid3_update_send_interval()
102 ccid3_pr_debug("t_ipi=%u, s=%u, X=%u\n", hc->tx_t_ipi, in ccid3_update_send_interval()
[all …]
Dccid2.h102 static inline bool ccid2_cwnd_network_limited(struct ccid2_hc_tx_sock *hc) in ccid2_cwnd_network_limited() argument
104 return hc->tx_pipe >= hc->tx_cwnd; in ccid2_cwnd_network_limited()
/linux-4.4.14/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()
/linux-4.4.14/drivers/acpi/
Dsbshc.c91 static inline int smb_hc_read(struct acpi_smb_hc *hc, u8 address, u8 *data) in smb_hc_read() argument
93 return ec_read(hc->offset + address, data); in smb_hc_read()
96 static inline int smb_hc_write(struct acpi_smb_hc *hc, u8 address, u8 data) in smb_hc_write() argument
98 return ec_write(hc->offset + address, data); in smb_hc_write()
101 static int wait_transaction_complete(struct acpi_smb_hc *hc, int timeout) in wait_transaction_complete() argument
103 if (wait_event_timeout(hc->wait, hc->done, msecs_to_jiffies(timeout))) in wait_transaction_complete()
108 static int acpi_smbus_transaction(struct acpi_smb_hc *hc, u8 protocol, in acpi_smbus_transaction() argument
114 if (!hc) { in acpi_smbus_transaction()
119 mutex_lock(&hc->lock); in acpi_smbus_transaction()
120 hc->done = false; in acpi_smbus_transaction()
[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.c106 struct acpi_smb_hc *hc; member
350 result = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_MANAGER, in acpi_manager_get_info()
362 result = acpi_smbus_read(battery->sbs->hc, in acpi_battery_get_info()
383 result = acpi_smbus_read(battery->sbs->hc, in acpi_battery_get_state()
399 return acpi_smbus_read(battery->sbs->hc, SMBUS_READ_WORD, in acpi_battery_get_alarm()
413 ret = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_MANAGER, in acpi_battery_set_alarm()
420 ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD, in acpi_battery_set_alarm()
427 ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD, ACPI_SBS_BATTERY, in acpi_battery_set_alarm()
438 result = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_CHARGER, in acpi_ac_get_present()
494 result = acpi_smbus_read(battery->sbs->hc, SMBUS_READ_WORD, in acpi_battery_read()
[all …]
/linux-4.4.14/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 …]
/linux-4.4.14/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 …]
/linux-4.4.14/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.h708 #define read_roothub(hc, register, mask) ({ \ argument
709 u32 temp = ohci_readl (hc, &hc->regs->roothub.register); \
711 hc->rh_state = OHCI_RH_HALTED; \
712 else if (hc->flags & OHCI_QUIRK_AMD756) \
714 temp = ohci_readl (hc, &hc->regs->roothub.register); \
717 static inline u32 roothub_a (struct ohci_hcd *hc) in roothub_a() argument
718 { return read_roothub (hc, a, 0xfc0fe000); } in roothub_a()
719 static inline u32 roothub_b (struct ohci_hcd *hc) in roothub_b() argument
720 { return ohci_readl (hc, &hc->regs->roothub.b); } in roothub_b()
721 static inline u32 roothub_status (struct ohci_hcd *hc) in roothub_status() argument
[all …]
DMakefile71 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()
DKconfig736 will be called "hwa-hc".
/linux-4.4.14/net/dccp/
Dprobe.c79 struct ccid3_hc_tx_sock *hc = NULL; in jdccp_sendmsg() local
82 hc = ccid3_hc_tx_sk(sk); in jdccp_sendmsg()
86 if (hc) in jdccp_sendmsg()
90 hc->tx_s, hc->tx_rtt, hc->tx_p, in jdccp_sendmsg()
91 hc->tx_x_calc, hc->tx_x_recv >> 6, in jdccp_sendmsg()
92 hc->tx_x >> 6, hc->tx_t_ipi); in jdccp_sendmsg()
/linux-4.4.14/fs/ocfs2/cluster/
Dheartbeat.h69 void o2hb_setup_callback(struct o2hb_callback_func *hc,
75 struct o2hb_callback_func *hc);
77 struct o2hb_callback_func *hc);
Dheartbeat.c2185 void o2hb_setup_callback(struct o2hb_callback_func *hc, in o2hb_setup_callback() argument
2191 INIT_LIST_HEAD(&hc->hc_item); in o2hb_setup_callback()
2192 hc->hc_func = func; in o2hb_setup_callback()
2193 hc->hc_data = data; in o2hb_setup_callback()
2194 hc->hc_priority = priority; in o2hb_setup_callback()
2195 hc->hc_type = type; in o2hb_setup_callback()
2196 hc->hc_magic = O2HB_CB_MAGIC; in o2hb_setup_callback()
2341 struct o2hb_callback_func *hc) in o2hb_register_callback() argument
2347 BUG_ON(hc->hc_magic != O2HB_CB_MAGIC); in o2hb_register_callback()
2348 BUG_ON(!list_empty(&hc->hc_item)); in o2hb_register_callback()
[all …]
/linux-4.4.14/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()
/linux-4.4.14/Documentation/device-mapper/
Dpersistent-data.txt30 dm-block-manager.[hc]
41 dm-transaction-manager.[hc]
55 dm-space-map-metadata.[hc]
56 dm-space-map-disk.[hc]
68 dm-btree.[hc]
/linux-4.4.14/fs/gfs2/
Ddir.c344 __be64 *hc; in gfs2_dir_get_hash_table() local
348 hc = ip->i_hash_cache; in gfs2_dir_get_hash_table()
349 if (hc) in gfs2_dir_get_hash_table()
350 return hc; in gfs2_dir_get_hash_table()
359 hc = kmalloc(hsize, GFP_NOFS | __GFP_NOWARN); in gfs2_dir_get_hash_table()
360 if (hc == NULL) in gfs2_dir_get_hash_table()
361 hc = __vmalloc(hsize, GFP_NOFS, PAGE_KERNEL); in gfs2_dir_get_hash_table()
363 if (hc == NULL) in gfs2_dir_get_hash_table()
366 ret = gfs2_dir_read_data(ip, hc, hsize); in gfs2_dir_get_hash_table()
368 kvfree(hc); in gfs2_dir_get_hash_table()
[all …]
/linux-4.4.14/drivers/usb/dwc2/
Dhcd.h505 static inline bool dbg_hc(struct dwc2_host_chan *hc) { return true; } in dbg_hc() argument
510 static inline bool dbg_hc(struct dwc2_host_chan *hc) in dbg_hc() argument
512 return hc->ep_type == USB_ENDPOINT_XFER_BULK || in dbg_hc()
513 hc->ep_type == USB_ENDPOINT_XFER_CONTROL; in dbg_hc()
/linux-4.4.14/drivers/usb/wusbcore/
DMakefile22 wa-hc.o \
/linux-4.4.14/drivers/ata/
Dsata_mv.c903 static inline void __iomem *mv_hc_base(void __iomem *base, unsigned int hc) in mv_hc_base() argument
905 return (base + SATAHC0_REG_BASE + (hc * MV_SATAHC_REG_SZ)); in mv_hc_base()
1300 int start_port, num_ports, p, start_hc, num_hcs, hc; in mv_dump_all_regs() local
1323 for (hc = start_hc; hc < start_hc + num_hcs; hc++) { in mv_dump_all_regs()
1324 hc_base = mv_hc_base(mmio_base, hc); in mv_dump_all_regs()
1325 DPRINTK("HC regs (HC %i):\n", hc); in mv_dump_all_regs()
3198 unsigned int hc) in mv5_reset_one_hc() argument
3200 void __iomem *hc_mmio = mv_hc_base(mmio, hc); in mv5_reset_one_hc()
3218 unsigned int hc, port; in mv5_reset_hc() local
3220 for (hc = 0; hc < n_hc; hc++) { in mv5_reset_hc()
[all …]
/linux-4.4.14/drivers/staging/speakup/
Dmain.c1626 int hc, d; in speak_highlight() local
1631 hc = get_highlight_color(vc); in speak_highlight()
1632 if (hc != -1) { in speak_highlight()
1635 if (speakup_console[vc_num]->ht.ry[hc] != vc->vc_y) in speak_highlight()
1639 spkup_write(speakup_console[vc_num]->ht.highbuf[hc], in speak_highlight()
1640 speakup_console[vc_num]->ht.highsize[hc]); in speak_highlight()
1641 spk_pos = spk_cp = speakup_console[vc_num]->ht.rpos[hc]; in speak_highlight()
1642 spk_x = spk_cx = speakup_console[vc_num]->ht.rx[hc]; in speak_highlight()
1643 spk_y = spk_cy = speakup_console[vc_num]->ht.ry[hc]; in speak_highlight()
/linux-4.4.14/arch/powerpc/include/asm/
Dkvm_book3s.h145 extern int kvmppc_book3s_hcall_implemented(struct kvm *kvm, unsigned long hc);
/linux-4.4.14/Documentation/DocBook/
Dusb.xml.db121 API-usb-hc-died
/linux-4.4.14/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()
/linux-4.4.14/kernel/rcu/
Dtree.c3957 bool hc = false; in rcu_cpu_has_callbacks() local
3965 hc = true; in rcu_cpu_has_callbacks()
3973 return hc; in rcu_cpu_has_callbacks()
/linux-4.4.14/
DMAINTAINERS2706 F: drivers/usb/host/hwa-hc.c