Home
last modified time | relevance | path

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

12

/Linux-v5.4/net/dccp/ccids/
Dccid2.c25 static int ccid2_hc_tx_alloc_seq(struct ccid2_hc_tx_sock *hc) in ccid2_hc_tx_alloc_seq() argument
31 if (hc->tx_seqbufc >= (sizeof(hc->tx_seqbuf) / in ccid2_hc_tx_alloc_seq()
49 if (hc->tx_seqbufc == 0) in ccid2_hc_tx_alloc_seq()
50 hc->tx_seqh = hc->tx_seqt = seqp; in ccid2_hc_tx_alloc_seq()
53 hc->tx_seqh->ccid2s_next = seqp; in ccid2_hc_tx_alloc_seq()
54 seqp->ccid2s_prev = hc->tx_seqh; in ccid2_hc_tx_alloc_seq()
56 hc->tx_seqt->ccid2s_prev = &seqp[CCID2_SEQBUF_LEN - 1]; in ccid2_hc_tx_alloc_seq()
57 seqp[CCID2_SEQBUF_LEN - 1].ccid2s_next = hc->tx_seqt; in ccid2_hc_tx_alloc_seq()
61 hc->tx_seqbuf[hc->tx_seqbufc] = seqp; in ccid2_hc_tx_alloc_seq()
62 hc->tx_seqbufc++; in ccid2_hc_tx_alloc_seq()
[all …]
Dccid3.c53 struct ccid3_hc_tx_sock *hc = ccid3_hc_tx_sk(sk); in ccid3_hc_tx_set_state() local
54 enum ccid3_hc_tx_states oldstate = hc->tx_state; in ccid3_hc_tx_set_state()
60 hc->tx_state = state; in ccid3_hc_tx_set_state()
74 const struct ccid3_hc_tx_sock *hc = ccid3_hc_tx_sk(sk); in rfc3390_initial_rate() local
75 const __u32 w_init = clamp_t(__u32, 4380U, 2 * hc->tx_s, 4 * hc->tx_s); in rfc3390_initial_rate()
77 return scaled_div(w_init << 6, hc->tx_rtt); in rfc3390_initial_rate()
84 static void ccid3_update_send_interval(struct ccid3_hc_tx_sock *hc) in ccid3_update_send_interval() argument
86 hc->tx_t_ipi = scaled_div32(((u64)hc->tx_s) << 6, hc->tx_x); in ccid3_update_send_interval()
88 DCCP_BUG_ON(hc->tx_t_ipi == 0); in ccid3_update_send_interval()
89 ccid3_pr_debug("t_ipi=%u, s=%u, X=%u\n", hc->tx_t_ipi, in ccid3_update_send_interval()
[all …]
Dccid2.h90 static inline bool ccid2_cwnd_network_limited(struct ccid2_hc_tx_sock *hc) in ccid2_cwnd_network_limited() argument
92 return hc->tx_pipe >= hc->tx_cwnd; in ccid2_cwnd_network_limited()
/Linux-v5.4/drivers/isdn/hardware/mISDN/
Dhfcmulti.c241 #define HFC_outb(hc, reg, val) \ argument
242 (hc->HFC_outb(hc, reg, val, __func__, __LINE__))
243 #define HFC_outb_nodebug(hc, reg, val) \ argument
244 (hc->HFC_outb_nodebug(hc, reg, val, __func__, __LINE__))
245 #define HFC_inb(hc, reg) \ argument
246 (hc->HFC_inb(hc, reg, __func__, __LINE__))
247 #define HFC_inb_nodebug(hc, reg) \ argument
248 (hc->HFC_inb_nodebug(hc, reg, __func__, __LINE__))
249 #define HFC_inw(hc, reg) \ argument
250 (hc->HFC_inw(hc, reg, __func__, __LINE__))
[all …]
Dhfc_multi_8xx.h19 HFC_outb_embsd(struct hfc_multi *hc, u_char reg, u_char val, in HFC_outb_embsd() argument
22 HFC_outb_embsd(struct hfc_multi *hc, u_char reg, u_char val) in HFC_outb_embsd()
25 hc->immap->im_ioport.iop_padat |= PA_XHFC_A0; in HFC_outb_embsd()
26 writeb(reg, hc->xhfc_memaddr); in HFC_outb_embsd()
27 hc->immap->im_ioport.iop_padat &= ~(PA_XHFC_A0); in HFC_outb_embsd()
28 writeb(val, hc->xhfc_memdata); in HFC_outb_embsd()
32 HFC_inb_embsd(struct hfc_multi *hc, u_char reg, const char *function, int line) in HFC_inb_embsd() argument
34 HFC_inb_embsd(struct hfc_multi *hc, u_char reg) in HFC_inb_embsd()
37 hc->immap->im_ioport.iop_padat |= PA_XHFC_A0; in HFC_inb_embsd()
38 writeb(reg, hc->xhfc_memaddr); in HFC_inb_embsd()
[all …]
Dhfcpci.c139 enable_hwirq(struct hfc_pci *hc) in enable_hwirq() argument
141 hc->hw.int_m2 |= HFCPCI_IRQ_ENABLE; in enable_hwirq()
142 Write_hfc(hc, HFCPCI_INT_M2, hc->hw.int_m2); in enable_hwirq()
146 disable_hwirq(struct hfc_pci *hc) in disable_hwirq() argument
148 hc->hw.int_m2 &= ~((u_char)HFCPCI_IRQ_ENABLE); in disable_hwirq()
149 Write_hfc(hc, HFCPCI_INT_M2, hc->hw.int_m2); in disable_hwirq()
156 release_io_hfcpci(struct hfc_pci *hc) in release_io_hfcpci() argument
159 pci_write_config_word(hc->pdev, PCI_COMMAND, 0); in release_io_hfcpci()
160 del_timer(&hc->hw.timer); in release_io_hfcpci()
161 pci_free_consistent(hc->pdev, 0x8000, hc->hw.fifos, hc->hw.dmahandle); in release_io_hfcpci()
[all …]
Dhfc_multi.h151 void (*HFC_outb)(struct hfc_multi *hc, u_char reg,
153 void (*HFC_outb_nodebug)(struct hfc_multi *hc, u_char reg,
155 u_char (*HFC_inb)(struct hfc_multi *hc, u_char reg,
157 u_char (*HFC_inb_nodebug)(struct hfc_multi *hc, u_char reg,
159 u_short (*HFC_inw)(struct hfc_multi *hc, u_char reg,
161 u_short (*HFC_inw_nodebug)(struct hfc_multi *hc, u_char reg,
163 void (*HFC_wait)(struct hfc_multi *hc,
165 void (*HFC_wait_nodebug)(struct hfc_multi *hc,
168 void (*HFC_outb)(struct hfc_multi *hc, u_char reg,
170 void (*HFC_outb_nodebug)(struct hfc_multi *hc, u_char reg,
[all …]
/Linux-v5.4/drivers/acpi/
Dsbshc.c88 static inline int smb_hc_read(struct acpi_smb_hc *hc, u8 address, u8 *data) in smb_hc_read() argument
90 return ec_read(hc->offset + address, data); in smb_hc_read()
93 static inline int smb_hc_write(struct acpi_smb_hc *hc, u8 address, u8 data) in smb_hc_write() argument
95 return ec_write(hc->offset + address, data); in smb_hc_write()
98 static int wait_transaction_complete(struct acpi_smb_hc *hc, int timeout) in wait_transaction_complete() argument
100 if (wait_event_timeout(hc->wait, hc->done, msecs_to_jiffies(timeout))) in wait_transaction_complete()
105 static int acpi_smbus_transaction(struct acpi_smb_hc *hc, u8 protocol, in acpi_smbus_transaction() argument
111 if (!hc) { in acpi_smbus_transaction()
116 mutex_lock(&hc->lock); in acpi_smbus_transaction()
117 hc->done = false; in acpi_smbus_transaction()
[all …]
Dsbshc.h26 extern int acpi_smbus_read(struct acpi_smb_hc *hc, u8 protocol, u8 address,
28 extern int acpi_smbus_write(struct acpi_smb_hc *hc, u8 protocol, u8 slave_address,
30 extern int acpi_smbus_register_callback(struct acpi_smb_hc *hc,
32 extern int acpi_smbus_unregister_callback(struct acpi_smb_hc *hc);
Dsbs.c91 struct acpi_smb_hc *hc; member
335 result = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_MANAGER, in acpi_manager_get_info()
347 result = acpi_smbus_read(battery->sbs->hc, in acpi_battery_get_info()
368 result = acpi_smbus_read(battery->sbs->hc, in acpi_battery_get_state()
384 return acpi_smbus_read(battery->sbs->hc, SMBUS_READ_WORD, in acpi_battery_get_alarm()
398 ret = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_MANAGER, in acpi_battery_set_alarm()
405 ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD, in acpi_battery_set_alarm()
412 ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD, ACPI_SBS_BATTERY, in acpi_battery_set_alarm()
423 result = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_CHARGER, in acpi_ac_get_present()
483 result = acpi_smbus_read(battery->sbs->hc, SMBUS_READ_WORD, in acpi_battery_read()
[all …]
/Linux-v5.4/drivers/isdn/mISDN/
Dl1oip_core.c264 l1oip_socket_send(struct l1oip *hc, u8 localcodec, u8 channel, u32 chanmask, in l1oip_socket_send() argument
278 if (time_before(hc->keep_tl.expires, jiffies + 5 * HZ)) in l1oip_socket_send()
279 mod_timer(&hc->keep_tl, jiffies + L1OIP_KEEPALIVE * HZ); in l1oip_socket_send()
281 hc->keep_tl.expires = jiffies + L1OIP_KEEPALIVE * HZ; in l1oip_socket_send()
287 if (!hc->sin_remote.sin_addr.s_addr || !hc->sin_remote.sin_port) { in l1oip_socket_send()
296 | (hc->pri ? 0x20 : 0x00) /* type */ in l1oip_socket_send()
297 | (hc->id ? 0x10 : 0x00) /* id */ in l1oip_socket_send()
299 if (hc->id) { in l1oip_socket_send()
300 *p++ = hc->id >> 24; /* id */ in l1oip_socket_send()
301 *p++ = hc->id >> 16; in l1oip_socket_send()
[all …]
/Linux-v5.4/arch/x86/kernel/
Dhpet.c205 struct hpet_channel *hc = hpet_base.channels + i; in hpet_reserve_platform_timers() local
208 hd.hd_irq[i] = hc->irq; in hpet_reserve_platform_timers()
210 switch (hc->mode) { in hpet_reserve_platform_timers()
213 hc->mode = HPET_MODE_DEVICE; in hpet_reserve_platform_timers()
217 hpet_reserve_timer(&hd, hc->num); in hpet_reserve_platform_timers()
230 struct hpet_channel *hc = hpet_base.channels + i; in hpet_select_device_channel() local
233 if (hc->mode == HPET_MODE_UNUSED) { in hpet_select_device_channel()
234 hc->mode = HPET_MODE_DEVICE; in hpet_select_device_channel()
396 static void hpet_init_clockevent(struct hpet_channel *hc, unsigned int rating) in hpet_init_clockevent() argument
398 struct clock_event_device *evt = &hc->evt; in hpet_init_clockevent()
[all …]
/Linux-v5.4/drivers/md/
Ddm-ioctl.c114 struct hash_cell *hc; in __get_name_cell() local
117 list_for_each_entry (hc, _name_buckets + h, name_list) in __get_name_cell()
118 if (!strcmp(hc->name, str)) { in __get_name_cell()
119 dm_get(hc->md); in __get_name_cell()
120 return hc; in __get_name_cell()
128 struct hash_cell *hc; in __get_uuid_cell() local
131 list_for_each_entry (hc, _uuid_buckets + h, uuid_list) in __get_uuid_cell()
132 if (!strcmp(hc->uuid, str)) { in __get_uuid_cell()
133 dm_get(hc->md); in __get_uuid_cell()
134 return hc; in __get_uuid_cell()
[all …]
/Linux-v5.4/drivers/usb/host/
Dohci-mem.c77 dma_to_td (struct ohci_hcd *hc, dma_addr_t td_dma) in dma_to_td() argument
82 td = hc->td_hash [TD_HASH_FUNC(td_dma)]; in dma_to_td()
90 td_alloc (struct ohci_hcd *hc, gfp_t mem_flags) in td_alloc() argument
94 struct usb_hcd *hcd = ohci_to_hcd(hc); in td_alloc()
100 td = dma_pool_zalloc(hc->td_cache, mem_flags, &dma); in td_alloc()
103 td->hwNextTD = cpu_to_hc32 (hc, dma); in td_alloc()
111 td_free (struct ohci_hcd *hc, struct td *td) in td_free() argument
113 struct td **prev = &hc->td_hash [TD_HASH_FUNC (td->td_dma)]; in td_free()
114 struct usb_hcd *hcd = ohci_to_hcd(hc); in td_free()
120 else if ((td->hwINFO & cpu_to_hc32(hc, TD_DONE)) != 0) 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 …]
/Linux-v5.4/drivers/gpu/drm/i915/gt/
Dintel_hangcheck.c132 struct hangcheck *hc) in hangcheck_load_sample() argument
134 hc->acthd = intel_engine_get_active_head(engine); in hangcheck_load_sample()
135 hc->ring = ENGINE_READ(engine, RING_START); in hangcheck_load_sample()
136 hc->head = ENGINE_READ(engine, RING_HEAD); in hangcheck_load_sample()
140 const struct hangcheck *hc) in hangcheck_store_sample() argument
142 engine->hangcheck.acthd = hc->acthd; in hangcheck_store_sample()
143 engine->hangcheck.last_ring = hc->ring; in hangcheck_store_sample()
144 engine->hangcheck.last_head = hc->head; in hangcheck_store_sample()
149 const struct hangcheck *hc) in hangcheck_get_action() argument
154 if (engine->hangcheck.last_ring != hc->ring) in hangcheck_get_action()
[all …]
/Linux-v5.4/net/dccp/
Dtrace.h38 struct ccid3_hc_tx_sock *hc = NULL;
41 hc = ccid3_hc_tx_sk(sk);
53 if (hc) {
54 __entry->tx_s = hc->tx_s;
55 __entry->tx_rtt = hc->tx_rtt;
56 __entry->tx_p = hc->tx_p;
57 __entry->tx_x_calc = hc->tx_x_calc;
58 __entry->tx_x_recv = hc->tx_x_recv >> 6;
59 __entry->tx_x = hc->tx_x >> 6;
60 __entry->tx_t_ipi = hc->tx_t_ipi;
/Linux-v5.4/fs/ocfs2/cluster/
Dheartbeat.h54 void o2hb_setup_callback(struct o2hb_callback_func *hc,
60 struct o2hb_callback_func *hc);
62 struct o2hb_callback_func *hc);
Dheartbeat.c2250 void o2hb_setup_callback(struct o2hb_callback_func *hc, in o2hb_setup_callback() argument
2256 INIT_LIST_HEAD(&hc->hc_item); in o2hb_setup_callback()
2257 hc->hc_func = func; in o2hb_setup_callback()
2258 hc->hc_data = data; in o2hb_setup_callback()
2259 hc->hc_priority = priority; in o2hb_setup_callback()
2260 hc->hc_type = type; in o2hb_setup_callback()
2261 hc->hc_magic = O2HB_CB_MAGIC; in o2hb_setup_callback()
2406 struct o2hb_callback_func *hc) in o2hb_register_callback() argument
2412 BUG_ON(hc->hc_magic != O2HB_CB_MAGIC); in o2hb_register_callback()
2413 BUG_ON(!list_empty(&hc->hc_item)); in o2hb_register_callback()
[all …]
/Linux-v5.4/drivers/scsi/sym53c8xx_2/
Dsym_malloc.c221 int hc = VTOB_HASH_CODE(vaddr); in ___get_dma_mem_cluster() local
222 vbp->next = mp->vtob[hc]; in ___get_dma_mem_cluster()
223 mp->vtob[hc] = vbp; in ___get_dma_mem_cluster()
236 int hc = VTOB_HASH_CODE(m); in ___free_dma_mem_cluster() local
238 vbpp = &mp->vtob[hc]; in ___free_dma_mem_cluster()
348 int hc = VTOB_HASH_CODE(m); in __vtobus() local
356 vp = mp->vtob[hc]; in __vtobus()
/Linux-v5.4/Documentation/admin-guide/device-mapper/
Dpersistent-data.rst34 dm-block-manager.[hc]
45 dm-transaction-manager.[hc]
59 dm-space-map-metadata.[hc]
60 dm-space-map-disk.[hc]
72 dm-btree.[hc]
/Linux-v5.4/fs/gfs2/
Ddir.c343 __be64 *hc; in gfs2_dir_get_hash_table() local
347 hc = ip->i_hash_cache; in gfs2_dir_get_hash_table()
348 if (hc) in gfs2_dir_get_hash_table()
349 return hc; in gfs2_dir_get_hash_table()
358 hc = kmalloc(hsize, GFP_NOFS | __GFP_NOWARN); in gfs2_dir_get_hash_table()
359 if (hc == NULL) in gfs2_dir_get_hash_table()
360 hc = __vmalloc(hsize, GFP_NOFS, PAGE_KERNEL); in gfs2_dir_get_hash_table()
362 if (hc == NULL) in gfs2_dir_get_hash_table()
365 ret = gfs2_dir_read_data(ip, hc, hsize); in gfs2_dir_get_hash_table()
367 kvfree(hc); in gfs2_dir_get_hash_table()
[all …]
/Linux-v5.4/arch/x86/include/asm/
Dhpet.h83 extern void hpet_msi_write(struct hpet_channel *hc, struct msi_msg *msg);
86 struct hpet_channel *hc, int dev_num);
/Linux-v5.4/drivers/staging/wusbcore/host/
DMakefile3 obj-$(CONFIG_USB_HWA_HCD) += hwa-hc.o
/Linux-v5.4/drivers/usb/dwc2/
Dhcd.h604 static inline bool dbg_hc(struct dwc2_host_chan *hc) { return true; } in dbg_hc() argument
609 static inline bool dbg_hc(struct dwc2_host_chan *hc) in dbg_hc() argument
611 return hc->ep_type == USB_ENDPOINT_XFER_BULK || in dbg_hc()
612 hc->ep_type == USB_ENDPOINT_XFER_CONTROL; in dbg_hc()

12