Home
last modified time | relevance | path

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

12345

/openbmc/linux/net/dccp/ccids/
H A Dccid2.c50 hc->tx_seqh = hc->tx_seqt = seqp; in ccid2_hc_tx_alloc_seq()
61 hc->tx_seqbuf[hc->tx_seqbufc] = seqp; in ccid2_hc_tx_alloc_seq()
150 hc->tx_ssthresh = hc->tx_cwnd / 2; in ccid2_hc_tx_rto_expire()
157 hc->tx_seqt = hc->tx_seqh; in ccid2_hc_tx_rto_expire()
259 if (hc->tx_pipe > hc->tx_cwnd_used) in ccid2_hc_tx_packet_sent()
260 hc->tx_cwnd_used = hc->tx_pipe; in ccid2_hc_tx_packet_sent()
375 hc->tx_rttvar = hc->tx_mdev_max; in ccid2_rtt_estimator()
400 hc->tx_mdev_max = hc->tx_mdev; in ccid2_rtt_estimator()
428 hc->tx_rto = (hc->tx_srtt >> 3) + hc->tx_rttvar; in ccid2_rtt_estimator()
564 if (hc->tx_seqh == hc->tx_seqt) in ccid2_hc_tx_packet_recv()
[all …]
H A Dccid3.c88 hc->tx_t_ipi = scaled_div32(((u64)hc->tx_s) << 6, hc->tx_x); in ccid3_update_send_interval()
135 hc->tx_x = max(hc->tx_x, (((__u64)hc->tx_s) << 6) / TFRC_T_MBI); in ccid3_hc_tx_update_x()
140 hc->tx_x = max(hc->tx_x, in ccid3_hc_tx_update_x()
166 hc->tx_s = tfrc_ewma(hc->tx_s, len, 9); in ccid3_hc_tx_update_s()
220 hc->tx_x = max(hc->tx_x / 2, in ccid3_hc_tx_no_feedback_timer()
239 hc->tx_x_recv = hc->tx_x_calc; in ccid3_hc_tx_no_feedback_timer()
316 hc->tx_x = hc->tx_s; in ccid3_hc_tx_send_packet()
345 hc->tx_t_nom = ktime_add_us(hc->tx_t_nom, hc->tx_t_ipi); in ccid3_hc_tx_send_packet()
416 hc->tx_x_calc = tfrc_calc_x(hc->tx_s, hc->tx_rtt, hc->tx_p); in ccid3_hc_tx_packet_recv()
423 hc->tx_s, hc->tx_p, hc->tx_x_calc, in ccid3_hc_tx_packet_recv()
[all …]
H A 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()
/openbmc/linux/drivers/isdn/hardware/mISDN/
H A Dhfcmulti.c258 #define HFC_outb(hc, reg, val) (hc->HFC_outb(hc, reg, val)) argument
260 #define HFC_inb(hc, reg) (hc->HFC_inb(hc, reg)) argument
261 #define HFC_inb_nodebug(hc, reg) (hc->HFC_inb_nodebug(hc, reg)) argument
262 #define HFC_inw(hc, reg) (hc->HFC_inw(hc, reg)) argument
263 #define HFC_inw_nodebug(hc, reg) (hc->HFC_inw_nodebug(hc, reg)) argument
264 #define HFC_wait(hc) (hc->HFC_wait(hc)) argument
265 #define HFC_wait_nodebug(hc) (hc->HFC_wait_nodebug(hc)) argument
1157 hc->max_trans = hc->Zlen; in init_chip()
2053 hc->write_fifo(hc, hc->silence_data, poll >> 1); in hfcmulti_tx()
4301 free_irq(hc->irq, hc); in init_card()
[all …]
H A Dhfc_multi_8xx.h103 hc->pci_dev = NULL; in setup_embedded()
130 hc->xhfc_origmembase = XHFC_MEMBASE + XHFC_OFFSET * hc->id; in setup_embedded()
131 hc->xhfc_membase = (u_char *)ioremap(hc->xhfc_origmembase, in setup_embedded()
139 hc->xhfc_memaddr = (u_long *)(hc->xhfc_membase + 4); in setup_embedded()
140 hc->xhfc_memdata = (u_long *)(hc->xhfc_membase); in setup_embedded()
144 (u_long)hc->xhfc_membase, hc->xhfc_origmembase, in setup_embedded()
145 (u_long)hc->xhfc_memaddr, (u_long)hc->xhfc_memdata); in setup_embedded()
159 hc->pb_irqmsk = (PB_XHFC_IRQ1 << hc->id); in setup_embedded()
160 hc->immap->im_cpm.cp_pbpar &= ~(hc->pb_irqmsk); in setup_embedded()
161 hc->immap->im_cpm.cp_pbodr &= ~(hc->pb_irqmsk); in setup_embedded()
[all …]
H A Dhfcpci.c142 Write_hfc(hc, HFCPCI_INT_M2, hc->hw.int_m2); in enable_hwirq()
149 Write_hfc(hc, HFCPCI_INT_M2, hc->hw.int_m2); in disable_hwirq()
181 Write_hfc(hc, HFCPCI_CLKDEL, hc->hw.clkdel); in hfcpci_setmode()
185 Write_hfc(hc, HFCPCI_SCTRL, hc->hw.sctrl); in hfcpci_setmode()
210 Write_hfc(hc, HFCPCI_CIRM, hc->hw.cirm); in reset_hfcpci()
214 Write_hfc(hc, HFCPCI_CIRM, hc->hw.cirm); in reset_hfcpci()
240 Write_hfc(hc, HFCPCI_TRM, hc->hw.trm); in reset_hfcpci()
242 Write_hfc(hc, HFCPCI_CTMT, hc->hw.ctmt); in reset_hfcpci()
1750 hc->irq, hc->irqcnt); in init_card()
1775 free_irq(hc->irq, hc); in init_card()
[all …]
H A Dhfc_multi.h151 void (*HFC_outb)(struct hfc_multi *hc, u_char reg,
155 u_char (*HFC_inb)(struct hfc_multi *hc, u_char reg,
159 u_short (*HFC_inw)(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,
172 u_char (*HFC_inb)(struct hfc_multi *hc, u_char reg);
174 u_short (*HFC_inw)(struct hfc_multi *hc, u_char reg);
176 void (*HFC_wait)(struct hfc_multi *hc);
177 void (*HFC_wait_nodebug)(struct hfc_multi *hc);
[all …]
/openbmc/linux/drivers/acpi/
H A Dsbshc.c100 if (wait_event_timeout(hc->wait, hc->done, msecs_to_jiffies(timeout))) in wait_transaction_complete()
111 if (!hc) { in acpi_smbus_transaction()
117 hc->done = false; in acpi_smbus_transaction()
205 if (hc->callback) in acpi_smbus_callback()
206 hc->callback(hc->context); in acpi_smbus_callback()
218 hc->done = true; in smbus_alarm()
264 if (!hc) in acpi_smbus_hc_add()
274 acpi_ec_add_query_handler(hc->ec, hc->query_bit, NULL, smbus_alarm, hc); in acpi_smbus_hc_add()
276 hc->offset, hc->query_bit); in acpi_smbus_hc_add()
291 acpi_ec_remove_query_handler(hc->ec, hc->query_bit); in acpi_smbus_hc_remove()
[all …]
H A 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);
H A Dsbs.c88 struct acpi_smb_hc *hc; member
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()
480 result = acpi_smbus_read(battery->sbs->hc, SMBUS_READ_WORD, in acpi_battery_read()
492 acpi_smbus_write(battery->sbs->hc, SMBUS_WRITE_WORD, in acpi_battery_read()
644 sbs->hc = acpi_driver_data(acpi_dev_parent(device)); in acpi_sbs_add()
669 acpi_smbus_register_callback(sbs->hc, acpi_sbs_callback, sbs); in acpi_sbs_add()
[all …]
/openbmc/linux/drivers/isdn/mISDN/
H A Dl1oip_core.c452 struct dchannel *dch = hc->chan[hc->d_idx].dch; in l1oip_socket_parse()
694 hc->sendmsg.msg_name = &hc->sin_remote; in l1oip_socket_thread()
824 struct l1oip *hc = from_timer(hc, t, keep_tl); in l1oip_keepalive() local
832 struct l1oip *hc = from_timer(hc, t, in l1oip_timeout() local
948 hc->remoteport = hc->localport; in channel_dctrl()
1247 if (hc->registered && hc->chan[hc->d_idx].dch) in release_card()
1330 if (hc->ondemand && !hc->id) { in init_card()
1363 hc->remoteport = hc->localport; in init_card()
1367 hc->localport, hc->remoteip >> 24, in init_card()
1370 hc->remoteport, hc->ondemand); in init_card()
[all …]
/openbmc/linux/arch/x86/kernel/
H A Dhpet.c424 strscpy(hc->name, "hpet", sizeof(hc->name)); in hpet_legacy_clockevent_register()
640 hc->name, hc)) in hpet_setup_msi_irq()
644 irq_set_affinity(hc->irq, cpumask_of(hc->cpu)); in hpet_setup_msi_irq()
647 pr_debug("%s irq %u for MSI\n", hc->name, hc->irq); in hpet_setup_msi_irq()
675 if (hc->mode != HPET_MODE_CLOCKEVT || hc->in_use) in hpet_get_unused_clockevent()
687 if (hc) in hpet_cpuhp_online()
696 if (!hc) in hpet_cpuhp_dead()
698 free_irq(hc->irq, hc); in hpet_cpuhp_dead()
733 irq = hpet_assign_irq(hpet_domain, hc, hc->num); in hpet_select_clockevents()
1050 hc = kcalloc(channels, sizeof(*hc), GFP_KERNEL); in hpet_enable()
[all …]
/openbmc/linux/drivers/md/
H A Ddm-ioctl.c203 if (!hc) { in __get_dev_cell()
208 return hc; in __get_dev_cell()
221 hc = kmalloc(sizeof(*hc), GFP_KERNEL); in alloc_cell()
222 if (!hc) in alloc_cell()
243 hc->name_set = hc->uuid_set = false; in alloc_cell()
246 return hc; in alloc_cell()
251 if (hc) { in free_cell()
278 if (hc) { in dm_hash_insert()
453 if (hc) { in dm_hash_rename()
580 val = hc->uuid ? hc->uuid : ""; in filter_device()
[all …]
/openbmc/linux/drivers/usb/host/
H A Dohci-mem.c82 td = hc->td_hash [TD_HASH_FUNC(td_dma)]; in dma_to_td()
94 struct usb_hcd *hcd = ohci_to_hcd(hc); 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
114 struct usb_hcd *hcd = ohci_to_hcd(hc); in td_free()
121 ohci_dbg (hc, "no hash for td %p\n", td); in td_free()
127 dma_pool_free(hc->td_cache, td, td->td_dma); in td_free()
138 struct usb_hcd *hcd = ohci_to_hcd(hc); in ed_alloc()
153 ed_free (struct ohci_hcd *hc, struct ed *ed) in ed_free() argument
155 struct usb_hcd *hcd = ohci_to_hcd(hc); in ed_free()
[all …]
H A 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 …]
/openbmc/qemu/tests/qtest/libqos/
H A Dusb.c19 void qusb_pci_init_one(QPCIBus *pcibus, struct qhc *hc, uint32_t devfn, int bar) in qusb_pci_init_one() argument
21 hc->dev = qpci_device_find(pcibus, devfn); in qusb_pci_init_one()
22 g_assert(hc->dev != NULL); in qusb_pci_init_one()
23 qpci_device_enable(hc->dev); in qusb_pci_init_one()
24 hc->bar = qpci_iomap(hc->dev, bar, NULL); in qusb_pci_init_one()
27 void uhci_deinit(struct qhc *hc) in uhci_deinit() argument
29 g_free(hc->dev); in uhci_deinit()
32 void uhci_port_test(struct qhc *hc, int port, uint16_t expect) in uhci_port_test() argument
34 uint16_t value = qpci_io_readw(hc->dev, hc->bar, 0x10 + 2 * port); in uhci_port_test()
H A Dusb.h11 void qusb_pci_init_one(QPCIBus *pcibus, struct qhc *hc,
13 void uhci_port_test(struct qhc *hc, int port, uint16_t expect);
14 void uhci_deinit(struct qhc *hc);
/openbmc/linux/arch/x86/kvm/
H A Dhyperv.c1878 return kvm_hv_get_hc_data(kvm, hc, hc->rep_cnt, hc->rep_cnt, entries); in kvm_hv_get_tlb_flush_entries()
2028 &hc->xmm[0], sizeof(hc->xmm[0])); in kvm_hv_flush_tlb()
2065 hc->consumed_xmm_halves += hc->var_cnt; in kvm_hv_flush_tlb()
2368 &hc->ingpa, sizeof(hc->ingpa)); in kvm_hvcall_signal_event()
2500 hc.code = hc.param & 0xffff; in kvm_hv_hypercall()
2505 hc.rep = !!(hc.rep_cnt || hc.rep_idx); in kvm_hv_hypercall()
2507 trace_kvm_hv_hypercall(hc.code, hc.fast, hc.var_cnt, hc.rep_cnt, in kvm_hv_hypercall()
2508 hc.rep_idx, hc.ingpa, hc.outgpa); in kvm_hv_hypercall()
2533 if (unlikely(hc.rep || hc.var_cnt)) { in kvm_hv_hypercall()
2540 if (unlikely(hc.rep || hc.var_cnt)) { in kvm_hv_hypercall()
[all …]
/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A Dkvm_pv_test.c60 #define TEST_HCALL(hc) { .nr = hc, .name = #hc } argument
62 #define PR_HCALL(hc) ucall(UCALL_PR_HCALL, 1, hc) argument
74 static void test_hcall(struct hcall_data *hc) in test_hcall() argument
78 PR_HCALL(hc); in test_hcall()
79 r = kvm_hypercall(hc->nr, 0, 0, 0, 0); in test_hcall()
107 struct hcall_data *hc = (struct hcall_data *)uc->args[0]; in pr_hcall() local
109 pr_info("testing hcall: %s (%lu)\n", hc->name, hc->nr); in pr_hcall()
/openbmc/linux/net/dccp/
H A 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;
/openbmc/qemu/tests/qtest/
H A Dusb-hcd-ehci-test.c26 static void uhci_port_update(struct qhc *hc, int port,
29 void *addr = hc->base + 0x10 + 2 * port;
32 value = qpci_io_readw(hc->dev, addr);
35 qpci_io_writew(hc->dev, addr, value);
39 static void ehci_port_test(struct qhc *hc, int port, uint32_t expect) in ehci_port_test() argument
41 uint32_t value = qpci_io_readl(hc->dev, hc->bar, 0x64 + 4 * port); in ehci_port_test()
/openbmc/qemu/hw/pci/
H A Dpcie_port.c229 HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(oc); in pcie_slot_class_init() local
232 hc->pre_plug = pcie_cap_slot_pre_plug_cb; in pcie_slot_class_init()
233 hc->plug = pcie_cap_slot_plug_cb; in pcie_slot_class_init()
234 hc->unplug = pcie_cap_slot_unplug_cb; in pcie_slot_class_init()
235 hc->unplug_request = pcie_cap_slot_unplug_request_cb; in pcie_slot_class_init()
236 hc->is_hotpluggable_bus = pcie_slot_is_hotpluggbale_bus; in pcie_slot_class_init()
/openbmc/linux/fs/ocfs2/cluster/
H A Dheartbeat.h52 void o2hb_setup_callback(struct o2hb_callback_func *hc,
58 struct o2hb_callback_func *hc);
60 struct o2hb_callback_func *hc);
/openbmc/linux/drivers/scsi/sym53c8xx_2/
H A 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()
/openbmc/linux/drivers/media/platform/amphion/
H A Dvpu_malone.c349 struct vpu_dec_ctrl *hc; in vpu_malone_init_rpc() local
360 hc = shared->priv; in vpu_malone_init_rpc()
390 hc->codec_param = rpc->virt + offset; in vpu_malone_init_rpc()
395 hc->jpg = rpc->virt + offset; in vpu_malone_init_rpc()
400 hc->seq_mem = rpc->virt + offset; in vpu_malone_init_rpc()
405 hc->pic_mem = rpc->virt + offset; in vpu_malone_init_rpc()
410 hc->gop_mem = rpc->virt + offset; in vpu_malone_init_rpc()
415 hc->qmeter_mem = rpc->virt + offset; in vpu_malone_init_rpc()
421 hc->dbglog_mem = rpc->virt + offset; in vpu_malone_init_rpc()
472 hc->buf_addr[i] = regs_base + offset; in vpu_malone_set_system_cfg()
[all …]

12345