Home
last modified time | relevance | path

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

12345

/openbmc/linux/drivers/isdn/hardware/mISDN/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
/openbmc/linux/net/dccp/ccids/
H A 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 …]
H A 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()
86 static void ccid3_update_send_interval(struct ccid3_hc_tx_sock *hc) in ccid3_update_send_interval() argument
88 hc->tx_t_ipi = scaled_div32(((u64)hc->tx_s) << 6, hc->tx_x); in ccid3_update_send_interval()
90 DCCP_BUG_ON(hc->tx_t_ipi == 0); in ccid3_update_send_interval()
91 ccid3_pr_debug("t_ipi=%u, s=%u, X=%u\n", hc->tx_t_ipi, in ccid3_update_send_interval()
[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/mISDN/
H A 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 …]
/openbmc/linux/drivers/acpi/
H A 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 …]
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.c87 struct acpi_smb_hc *hc; member
331 result = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_MANAGER, in acpi_manager_get_info()
343 result = acpi_smbus_read(battery->sbs->hc, in acpi_battery_get_info()
364 result = acpi_smbus_read(battery->sbs->hc, in acpi_battery_get_state()
380 return acpi_smbus_read(battery->sbs->hc, SMBUS_READ_WORD, in acpi_battery_get_alarm()
394 ret = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_MANAGER, in acpi_battery_set_alarm()
401 ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD, in acpi_battery_set_alarm()
408 ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD, ACPI_SBS_BATTERY, in acpi_battery_set_alarm()
419 result = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_CHARGER, in acpi_ac_get_present()
485 result = acpi_smbus_read(battery->sbs->hc, SMBUS_READ_WORD, in acpi_battery_read()
[all …]
/openbmc/linux/arch/x86/kernel/
H A Dhpet.c207 struct hpet_channel *hc = hpet_base.channels + i; in hpet_reserve_platform_timers() local
210 hd.hd_irq[i] = hc->irq; in hpet_reserve_platform_timers()
212 switch (hc->mode) { in hpet_reserve_platform_timers()
215 hc->mode = HPET_MODE_DEVICE; in hpet_reserve_platform_timers()
219 hpet_reserve_timer(&hd, hc->num); in hpet_reserve_platform_timers()
232 struct hpet_channel *hc = hpet_base.channels + i; in hpet_select_device_channel() local
235 if (hc->mode == HPET_MODE_UNUSED) { in hpet_select_device_channel()
236 hc->mode = HPET_MODE_DEVICE; in hpet_select_device_channel()
398 static void hpet_init_clockevent(struct hpet_channel *hc, unsigned int rating) in hpet_init_clockevent() argument
400 struct clock_event_device *evt = &hc->evt; in hpet_init_clockevent()
[all …]
/openbmc/linux/drivers/md/
H A Ddm-ioctl.c94 struct hash_cell *hc = container_of(n, struct hash_cell, name_node); in __get_name_cell() local
97 c = strcmp(hc->name, str); in __get_name_cell()
99 dm_get(hc->md); in __get_name_cell()
100 return hc; in __get_name_cell()
113 struct hash_cell *hc = container_of(n, struct hash_cell, uuid_node); in __get_uuid_cell() local
116 c = strcmp(hc->uuid, str); in __get_uuid_cell()
118 dm_get(hc->md); in __get_uuid_cell()
119 return hc; in __get_uuid_cell()
127 static void __unlink_name(struct hash_cell *hc) in __unlink_name() argument
129 if (hc->name_set) { in __unlink_name()
[all …]
/openbmc/linux/drivers/usb/host/
H A 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 …]
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.c1832 static int kvm_hv_get_hc_data(struct kvm *kvm, struct kvm_hv_hcall *hc, in kvm_hv_get_hc_data() argument
1843 if (hc->fast) { in kvm_hv_get_hc_data()
1848 if (orig_cnt > 2 * HV_HYPERCALL_MAX_XMM_REGISTERS - hc->consumed_xmm_halves) in kvm_hv_get_hc_data()
1852 j = i + hc->consumed_xmm_halves; in kvm_hv_get_hc_data()
1854 data[i] = sse128_hi(hc->xmm[j / 2]); in kvm_hv_get_hc_data()
1856 data[i] = sse128_lo(hc->xmm[j / 2]); in kvm_hv_get_hc_data()
1861 return kvm_read_guest(kvm, hc->ingpa + hc->data_offset, data, in kvm_hv_get_hc_data()
1865 static u64 kvm_get_sparse_vp_set(struct kvm *kvm, struct kvm_hv_hcall *hc, in kvm_get_sparse_vp_set() argument
1868 if (hc->var_cnt > HV_MAX_SPARSE_VCPU_BANKS) in kvm_get_sparse_vp_set()
1872 return kvm_hv_get_hc_data(kvm, hc, hc->var_cnt, KVM_HV_MAX_SPARSE_VCPU_SET_BITS, in kvm_get_sparse_vp_set()
[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.c219 HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(oc); in pcie_slot_class_init() local
222 hc->pre_plug = pcie_cap_slot_pre_plug_cb; in pcie_slot_class_init()
223 hc->plug = pcie_cap_slot_plug_cb; in pcie_slot_class_init()
224 hc->unplug = pcie_cap_slot_unplug_cb; in pcie_slot_class_init()
225 hc->unplug_request = pcie_cap_slot_unplug_request_cb; in pcie_slot_class_init()
226 hc->is_hotpluggable_bus = pcie_slot_is_hotpluggbale_bus; in pcie_slot_class_init()
/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/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/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()
465 struct vpu_dec_ctrl *hc = shared->priv; in vpu_malone_set_system_cfg() local
[all …]

12345