Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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 dma_free_coherent(&hc->pdev->dev, 0x8000, hc->hw.fifos, 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 …]
/kernel/linux/linux-5.10/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.c88 struct acpi_smb_hc *hc; member
332 result = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_MANAGER, in acpi_manager_get_info()
344 result = acpi_smbus_read(battery->sbs->hc, in acpi_battery_get_info()
365 result = acpi_smbus_read(battery->sbs->hc, in acpi_battery_get_state()
381 return acpi_smbus_read(battery->sbs->hc, SMBUS_READ_WORD, in acpi_battery_get_alarm()
395 ret = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_MANAGER, in acpi_battery_set_alarm()
402 ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD, in acpi_battery_set_alarm()
409 ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD, ACPI_SBS_BATTERY, in acpi_battery_set_alarm()
420 result = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_CHARGER, in acpi_ac_get_present()
480 result = acpi_smbus_read(battery->sbs->hc, SMBUS_READ_WORD, in acpi_battery_read()
[all …]
/kernel/linux/linux-5.10/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) && !hc->shutdown) 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 …]
/kernel/linux/linux-5.10/arch/x86/kernel/
Dhpet.c206 struct hpet_channel *hc = hpet_base.channels + i; in hpet_reserve_platform_timers() local
209 hd.hd_irq[i] = hc->irq; in hpet_reserve_platform_timers()
211 switch (hc->mode) { in hpet_reserve_platform_timers()
214 hc->mode = HPET_MODE_DEVICE; in hpet_reserve_platform_timers()
218 hpet_reserve_timer(&hd, hc->num); in hpet_reserve_platform_timers()
231 struct hpet_channel *hc = hpet_base.channels + i; in hpet_select_device_channel() local
234 if (hc->mode == HPET_MODE_UNUSED) { in hpet_select_device_channel()
235 hc->mode = HPET_MODE_DEVICE; in hpet_select_device_channel()
397 static void hpet_init_clockevent(struct hpet_channel *hc, unsigned int rating) in hpet_init_clockevent() argument
399 struct clock_event_device *evt = &hc->evt; in hpet_init_clockevent()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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;
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/x86_64/
Dkvm_pv_test.c107 #define TEST_HCALL(hc) { .nr = hc, .name = #hc } argument
109 #define PR_HCALL(hc) ucall(UCALL_PR_HCALL, 1, hc) argument
121 static void test_hcall(struct hcall_data *hc) in test_hcall() argument
125 PR_HCALL(hc); in test_hcall()
126 r = kvm_hypercall(hc->nr, 0, 0, 0, 0); in test_hcall()
163 struct hcall_data *hc = (struct hcall_data *)uc->args[0]; in pr_hcall() local
165 pr_info("testing hcall: %s (%lu)\n", hc->name, hc->nr); in pr_hcall()
/kernel/linux/linux-5.10/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.c2246 void o2hb_setup_callback(struct o2hb_callback_func *hc, in o2hb_setup_callback() argument
2252 INIT_LIST_HEAD(&hc->hc_item); in o2hb_setup_callback()
2253 hc->hc_func = func; in o2hb_setup_callback()
2254 hc->hc_data = data; in o2hb_setup_callback()
2255 hc->hc_priority = priority; in o2hb_setup_callback()
2256 hc->hc_type = type; in o2hb_setup_callback()
2257 hc->hc_magic = O2HB_CB_MAGIC; in o2hb_setup_callback()
2402 struct o2hb_callback_func *hc) in o2hb_register_callback() argument
2408 BUG_ON(hc->hc_magic != O2HB_CB_MAGIC); in o2hb_register_callback()
2409 BUG_ON(!list_empty(&hc->hc_item)); in o2hb_register_callback()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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]
/kernel/linux/linux-5.10/fs/gfs2/
Ddir.c340 __be64 *hc; in gfs2_dir_get_hash_table() local
344 hc = ip->i_hash_cache; in gfs2_dir_get_hash_table()
345 if (hc) in gfs2_dir_get_hash_table()
346 return hc; in gfs2_dir_get_hash_table()
355 hc = kmalloc(hsize, GFP_NOFS | __GFP_NOWARN); in gfs2_dir_get_hash_table()
356 if (hc == NULL) in gfs2_dir_get_hash_table()
357 hc = __vmalloc(hsize, GFP_NOFS); in gfs2_dir_get_hash_table()
359 if (hc == NULL) in gfs2_dir_get_hash_table()
362 ret = gfs2_dir_read_data(ip, hc, hsize); in gfs2_dir_get_hash_table()
364 kvfree(hc); in gfs2_dir_get_hash_table()
[all …]
/kernel/linux/linux-5.10/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);
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/ata/
Dsata_mv.c890 static inline void __iomem *mv_hc_base(void __iomem *base, unsigned int hc) in mv_hc_base() argument
892 return (base + SATAHC0_REG_BASE + (hc * MV_SATAHC_REG_SZ)); in mv_hc_base()
1287 int start_port, num_ports, p, start_hc, num_hcs, hc; in mv_dump_all_regs() local
1310 for (hc = start_hc; hc < start_hc + num_hcs; hc++) { in mv_dump_all_regs()
1311 hc_base = mv_hc_base(mmio_base, hc); in mv_dump_all_regs()
1312 DPRINTK("HC regs (HC %i):\n", hc); in mv_dump_all_regs()
3183 unsigned int hc) in mv5_reset_one_hc() argument
3185 void __iomem *hc_mmio = mv_hc_base(mmio, hc); in mv5_reset_one_hc()
3203 unsigned int hc, port; in mv5_reset_hc() local
3205 for (hc = 0; hc < n_hc; hc++) { in mv5_reset_hc()
[all …]

12