/Linux-v4.19/net/dccp/ccids/ |
D | ccid2.c | 38 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() 62 if (hc->tx_seqbufc == 0) in ccid2_hc_tx_alloc_seq() 63 hc->tx_seqh = hc->tx_seqt = seqp; in ccid2_hc_tx_alloc_seq() 66 hc->tx_seqh->ccid2s_next = seqp; in ccid2_hc_tx_alloc_seq() 67 seqp->ccid2s_prev = hc->tx_seqh; in ccid2_hc_tx_alloc_seq() 69 hc->tx_seqt->ccid2s_prev = &seqp[CCID2_SEQBUF_LEN - 1]; in ccid2_hc_tx_alloc_seq() 70 seqp[CCID2_SEQBUF_LEN - 1].ccid2s_next = hc->tx_seqt; in ccid2_hc_tx_alloc_seq() 74 hc->tx_seqbuf[hc->tx_seqbufc] = seqp; in ccid2_hc_tx_alloc_seq() 75 hc->tx_seqbufc++; in ccid2_hc_tx_alloc_seq() [all …]
|
D | ccid3.c | 66 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 …]
|
D | ccid2.h | 103 static inline bool ccid2_cwnd_network_limited(struct ccid2_hc_tx_sock *hc) in ccid2_cwnd_network_limited() argument 105 return hc->tx_pipe >= hc->tx_cwnd; in ccid2_cwnd_network_limited()
|
/Linux-v4.19/drivers/isdn/hardware/mISDN/ |
D | hfcmulti.c | 255 #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 …]
|
D | hfc_multi_8xx.h | 19 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 …]
|
D | hfcpci.c | 153 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 …]
|
D | hfc_multi.h | 151 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-v4.19/drivers/acpi/ |
D | sbshc.c | 91 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 …]
|
D | sbshc.h | 28 extern int acpi_smbus_read(struct acpi_smb_hc *hc, u8 protocol, u8 address, 30 extern int acpi_smbus_write(struct acpi_smb_hc *hc, u8 protocol, u8 slave_address, 32 extern int acpi_smbus_register_callback(struct acpi_smb_hc *hc, 34 extern int acpi_smbus_unregister_callback(struct acpi_smb_hc *hc);
|
D | sbs.c | 104 struct acpi_smb_hc *hc; member 348 result = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_MANAGER, in acpi_manager_get_info() 360 result = acpi_smbus_read(battery->sbs->hc, in acpi_battery_get_info() 381 result = acpi_smbus_read(battery->sbs->hc, in acpi_battery_get_state() 397 return acpi_smbus_read(battery->sbs->hc, SMBUS_READ_WORD, in acpi_battery_get_alarm() 411 ret = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_MANAGER, in acpi_battery_set_alarm() 418 ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD, in acpi_battery_set_alarm() 425 ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD, ACPI_SBS_BATTERY, in acpi_battery_set_alarm() 436 result = acpi_smbus_read(sbs->hc, SMBUS_READ_WORD, ACPI_SBS_CHARGER, in acpi_ac_get_present() 492 result = acpi_smbus_read(battery->sbs->hc, SMBUS_READ_WORD, in acpi_battery_read() [all …]
|
/Linux-v4.19/drivers/isdn/mISDN/ |
D | l1oip_core.c | 278 l1oip_socket_send(struct l1oip *hc, u8 localcodec, u8 channel, u32 chanmask, in l1oip_socket_send() argument 292 if (time_before(hc->keep_tl.expires, jiffies + 5 * HZ)) in l1oip_socket_send() 293 mod_timer(&hc->keep_tl, jiffies + L1OIP_KEEPALIVE * HZ); in l1oip_socket_send() 295 hc->keep_tl.expires = jiffies + L1OIP_KEEPALIVE * HZ; in l1oip_socket_send() 301 if (!hc->sin_remote.sin_addr.s_addr || !hc->sin_remote.sin_port) { in l1oip_socket_send() 310 | (hc->pri ? 0x20 : 0x00) /* type */ in l1oip_socket_send() 311 | (hc->id ? 0x10 : 0x00) /* id */ in l1oip_socket_send() 313 if (hc->id) { in l1oip_socket_send() 314 *p++ = hc->id >> 24; /* id */ in l1oip_socket_send() 315 *p++ = hc->id >> 16; in l1oip_socket_send() [all …]
|
/Linux-v4.19/drivers/md/ |
D | dm-ioctl.c | 114 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-v4.19/drivers/usb/host/ |
D | ohci-mem.c | 74 dma_to_td (struct ohci_hcd *hc, dma_addr_t td_dma) in dma_to_td() argument 79 td = hc->td_hash [TD_HASH_FUNC(td_dma)]; in dma_to_td() 87 td_alloc (struct ohci_hcd *hc, gfp_t mem_flags) in td_alloc() argument 92 td = dma_pool_zalloc (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 …]
|
D | ohci.h | 707 #define read_roothub(hc, register, mask) ({ \ argument 708 u32 temp = ohci_readl (hc, &hc->regs->roothub.register); \ 710 hc->rh_state = OHCI_RH_HALTED; \ 711 else if (hc->flags & OHCI_QUIRK_AMD756) \ 713 temp = ohci_readl (hc, &hc->regs->roothub.register); \ 716 static inline u32 roothub_a (struct ohci_hcd *hc) in roothub_a() argument 717 { return read_roothub (hc, a, 0xfc0fe000); } in roothub_a() 718 static inline u32 roothub_b (struct ohci_hcd *hc) in roothub_b() argument 719 { return ohci_readl (hc, &hc->regs->roothub.b); } in roothub_b() 720 static inline u32 roothub_status (struct ohci_hcd *hc) in roothub_status() argument [all …]
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
D | intel_hangcheck.c | 274 struct intel_engine_hangcheck *hc) in hangcheck_load_sample() argument 286 hc->acthd = intel_engine_get_active_head(engine); in hangcheck_load_sample() 287 hc->seqno = intel_engine_get_seqno(engine); in hangcheck_load_sample() 291 const struct intel_engine_hangcheck *hc) in hangcheck_store_sample() argument 293 engine->hangcheck.acthd = hc->acthd; in hangcheck_store_sample() 294 engine->hangcheck.seqno = hc->seqno; in hangcheck_store_sample() 295 engine->hangcheck.action = hc->action; in hangcheck_store_sample() 296 engine->hangcheck.stalled = hc->stalled; in hangcheck_store_sample() 297 engine->hangcheck.wedged = hc->wedged; in hangcheck_store_sample() 302 const struct intel_engine_hangcheck *hc) in hangcheck_get_action() argument [all …]
|
/Linux-v4.19/net/dccp/ |
D | trace.h | 38 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-v4.19/fs/ocfs2/cluster/ |
D | heartbeat.h | 69 void o2hb_setup_callback(struct o2hb_callback_func *hc, 75 struct o2hb_callback_func *hc); 77 struct o2hb_callback_func *hc);
|
D | heartbeat.c | 2356 void o2hb_setup_callback(struct o2hb_callback_func *hc, in o2hb_setup_callback() argument 2362 INIT_LIST_HEAD(&hc->hc_item); in o2hb_setup_callback() 2363 hc->hc_func = func; in o2hb_setup_callback() 2364 hc->hc_data = data; in o2hb_setup_callback() 2365 hc->hc_priority = priority; in o2hb_setup_callback() 2366 hc->hc_type = type; in o2hb_setup_callback() 2367 hc->hc_magic = O2HB_CB_MAGIC; in o2hb_setup_callback() 2512 struct o2hb_callback_func *hc) in o2hb_register_callback() argument 2518 BUG_ON(hc->hc_magic != O2HB_CB_MAGIC); in o2hb_register_callback() 2519 BUG_ON(!list_empty(&hc->hc_item)); in o2hb_register_callback() [all …]
|
/Linux-v4.19/drivers/scsi/sym53c8xx_2/ |
D | sym_malloc.c | 234 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-v4.19/Documentation/device-mapper/ |
D | persistent-data.txt | 30 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-v4.19/fs/gfs2/ |
D | dir.c | 346 __be64 *hc; in gfs2_dir_get_hash_table() local 350 hc = ip->i_hash_cache; in gfs2_dir_get_hash_table() 351 if (hc) in gfs2_dir_get_hash_table() 352 return hc; in gfs2_dir_get_hash_table() 361 hc = kmalloc(hsize, GFP_NOFS | __GFP_NOWARN); in gfs2_dir_get_hash_table() 362 if (hc == NULL) in gfs2_dir_get_hash_table() 363 hc = __vmalloc(hsize, GFP_NOFS, PAGE_KERNEL); in gfs2_dir_get_hash_table() 365 if (hc == NULL) in gfs2_dir_get_hash_table() 368 ret = gfs2_dir_read_data(ip, hc, hsize); in gfs2_dir_get_hash_table() 370 kvfree(hc); in gfs2_dir_get_hash_table() [all …]
|
/Linux-v4.19/drivers/usb/dwc2/ |
D | hcd.h | 597 static inline bool dbg_hc(struct dwc2_host_chan *hc) { return true; } in dbg_hc() argument 602 static inline bool dbg_hc(struct dwc2_host_chan *hc) in dbg_hc() argument 604 return hc->ep_type == USB_ENDPOINT_XFER_BULK || in dbg_hc() 605 hc->ep_type == USB_ENDPOINT_XFER_CONTROL; in dbg_hc()
|
/Linux-v4.19/drivers/usb/wusbcore/ |
D | Makefile | 23 wa-hc.o \
|
/Linux-v4.19/drivers/ata/ |
D | sata_mv.c | 903 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() 3194 unsigned int hc) in mv5_reset_one_hc() argument 3196 void __iomem *hc_mmio = mv_hc_base(mmio, hc); in mv5_reset_one_hc() 3214 unsigned int hc, port; in mv5_reset_hc() local 3216 for (hc = 0; hc < n_hc; hc++) { in mv5_reset_hc() [all …]
|
/Linux-v4.19/drivers/staging/speakup/ |
D | main.c | 1657 int hc, d; in speak_highlight() local 1662 hc = get_highlight_color(vc); in speak_highlight() 1663 if (hc != -1) { in speak_highlight() 1666 if (speakup_console[vc_num]->ht.ry[hc] != vc->vc_y) in speak_highlight() 1670 spkup_write(speakup_console[vc_num]->ht.highbuf[hc], in speak_highlight() 1671 speakup_console[vc_num]->ht.highsize[hc]); in speak_highlight() 1672 spk_pos = spk_cp = speakup_console[vc_num]->ht.rpos[hc]; in speak_highlight() 1673 spk_x = spk_cx = speakup_console[vc_num]->ht.rx[hc]; in speak_highlight() 1674 spk_y = spk_cy = speakup_console[vc_num]->ht.ry[hc]; in speak_highlight()
|