/linux-6.6.21/include/linux/ |
D | hdlcdrv.h | 158 static inline int hdlcdrv_hbuf_full(struct hdlcdrv_hdlcbuffer *hb) in hdlcdrv_hbuf_full() argument 163 spin_lock_irqsave(&hb->lock, flags); in hdlcdrv_hbuf_full() 164 ret = !((HDLCDRV_HDLCBUFFER - 1 + hb->rd - hb->wr) % HDLCDRV_HDLCBUFFER); in hdlcdrv_hbuf_full() 165 spin_unlock_irqrestore(&hb->lock, flags); in hdlcdrv_hbuf_full() 171 static inline int hdlcdrv_hbuf_empty(struct hdlcdrv_hdlcbuffer *hb) in hdlcdrv_hbuf_empty() argument 176 spin_lock_irqsave(&hb->lock, flags); in hdlcdrv_hbuf_empty() 177 ret = (hb->rd == hb->wr); in hdlcdrv_hbuf_empty() 178 spin_unlock_irqrestore(&hb->lock, flags); in hdlcdrv_hbuf_empty() 184 static inline unsigned short hdlcdrv_hbuf_get(struct hdlcdrv_hdlcbuffer *hb) in hdlcdrv_hbuf_get() argument 190 spin_lock_irqsave(&hb->lock, flags); in hdlcdrv_hbuf_get() [all …]
|
/linux-6.6.21/drivers/crypto/intel/qat/qat_common/ |
D | adf_heartbeat_dbgfs.c | 159 struct adf_heartbeat *hb = accel_dev->heartbeat; in adf_heartbeat_dbgfs_add() local 161 if (!hb) in adf_heartbeat_dbgfs_add() 164 hb->dbgfs.base_dir = debugfs_create_dir("heartbeat", accel_dev->debugfs_dir); in adf_heartbeat_dbgfs_add() 165 hb->dbgfs.status = debugfs_create_file("status", 0400, hb->dbgfs.base_dir, in adf_heartbeat_dbgfs_add() 167 hb->dbgfs.sent = debugfs_create_file("queries_sent", 0400, hb->dbgfs.base_dir, in adf_heartbeat_dbgfs_add() 168 &hb->hb_sent_counter, &adf_hb_stats_fops); in adf_heartbeat_dbgfs_add() 169 hb->dbgfs.failed = debugfs_create_file("queries_failed", 0400, hb->dbgfs.base_dir, in adf_heartbeat_dbgfs_add() 170 &hb->hb_failed_counter, &adf_hb_stats_fops); in adf_heartbeat_dbgfs_add() 171 hb->dbgfs.cfg = debugfs_create_file("config", 0600, hb->dbgfs.base_dir, in adf_heartbeat_dbgfs_add() 178 struct adf_heartbeat *hb = accel_dev->heartbeat; in adf_heartbeat_dbgfs_rm() local [all …]
|
D | adf_heartbeat.c | 216 struct adf_heartbeat *hb; in adf_heartbeat_status() local 229 hb = accel_dev->heartbeat; in adf_heartbeat_status() 230 hb->hb_sent_counter++; in adf_heartbeat_status() 236 hb->hb_failed_counter++; in adf_heartbeat_status() 273 struct adf_heartbeat *hb; in adf_heartbeat_init() local 275 hb = kzalloc(sizeof(*hb), GFP_KERNEL); in adf_heartbeat_init() 276 if (!hb) in adf_heartbeat_init() 279 hb->dma.virt_addr = dma_alloc_coherent(&GET_DEV(accel_dev), PAGE_SIZE, in adf_heartbeat_init() 280 &hb->dma.phy_addr, GFP_KERNEL); in adf_heartbeat_init() 281 if (!hb->dma.virt_addr) in adf_heartbeat_init() [all …]
|
/linux-6.6.21/kernel/futex/ |
D | futex.h | 144 struct futex_q *q, struct futex_hash_bucket **hb); 145 extern void futex_wait_queue(struct futex_hash_bucket *hb, struct futex_q *q, 152 extern struct futex_q *futex_top_waiter(struct futex_hash_bucket *hb, union futex_key *key); 155 extern void __futex_queue(struct futex_q *q, struct futex_hash_bucket *hb); 170 static inline void futex_queue(struct futex_q *q, struct futex_hash_bucket *hb) in futex_queue() argument 171 __releases(&hb->lock) in futex_queue() 173 __futex_queue(q, hb); in futex_queue() 174 spin_unlock(&hb->lock); in futex_queue() 184 static inline void futex_hb_waiters_inc(struct futex_hash_bucket *hb) in futex_hb_waiters_inc() argument 187 atomic_inc(&hb->waiters); in futex_hb_waiters_inc() [all …]
|
D | waitwake.c | 145 struct futex_hash_bucket *hb; in futex_wake() local 158 hb = futex_hash(&key); in futex_wake() 161 if (!futex_hb_waiters_pending(hb)) in futex_wake() 164 spin_lock(&hb->lock); in futex_wake() 166 plist_for_each_entry_safe(this, next, &hb->chain, list) { in futex_wake() 183 spin_unlock(&hb->lock); in futex_wake() 328 void futex_wait_queue(struct futex_hash_bucket *hb, struct futex_q *q, in futex_wait_queue() argument 338 futex_queue(q, hb); in futex_wait_queue() 401 struct futex_hash_bucket *hb; in futex_wait_multiple_setup() local 440 hb = futex_q_lock(q); in futex_wait_multiple_setup() [all …]
|
D | core.c | 439 struct futex_q *futex_top_waiter(struct futex_hash_bucket *hb, union futex_key *key) in futex_top_waiter() argument 443 plist_for_each_entry(this, &hb->chain, list) { in futex_top_waiter() 511 struct futex_hash_bucket *hb; in __futex_unqueue() local 517 hb = container_of(q->lock_ptr, struct futex_hash_bucket, lock); in __futex_unqueue() 518 plist_del(&q->list, &hb->chain); in __futex_unqueue() 519 futex_hb_waiters_dec(hb); in __futex_unqueue() 524 __acquires(&hb->lock) in futex_q_lock() 526 struct futex_hash_bucket *hb; in futex_q_lock() local 528 hb = futex_hash(&q->key); in futex_q_lock() 538 futex_hb_waiters_inc(hb); /* implies smp_mb(); (A) */ in futex_q_lock() [all …]
|
D | requeue.c | 224 struct futex_hash_bucket *hb) in requeue_pi_wake_futex() argument 233 q->lock_ptr = &hb->lock; in requeue_pi_wake_futex() 691 int handle_early_requeue_pi_wakeup(struct futex_hash_bucket *hb, in handle_early_requeue_pi_wakeup() argument 704 WARN_ON_ONCE(&hb->lock != q->lock_ptr); in handle_early_requeue_pi_wakeup() 710 plist_del(&q->list, &hb->chain); in handle_early_requeue_pi_wakeup() 711 futex_hb_waiters_dec(hb); in handle_early_requeue_pi_wakeup() 768 struct futex_hash_bucket *hb; in futex_wait_requeue_pi() local 804 ret = futex_wait_setup(uaddr, val, flags, &q, &hb); in futex_wait_requeue_pi() 813 futex_q_unlock(hb); in futex_wait_requeue_pi() 819 futex_wait_queue(hb, &q, to); in futex_wait_requeue_pi() [all …]
|
D | pi.c | 514 int futex_lock_pi_atomic(u32 __user *uaddr, struct futex_hash_bucket *hb, in futex_lock_pi_atomic() argument 548 top_waiter = futex_top_waiter(hb, key); in futex_lock_pi_atomic() 935 struct futex_hash_bucket *hb; in futex_lock_pi() local 953 hb = futex_q_lock(&q); in futex_lock_pi() 955 ret = futex_lock_pi_atomic(uaddr, hb, &q.key, &q.pi_state, current, in futex_lock_pi() 977 futex_q_unlock(hb); in futex_lock_pi() 996 __futex_queue(&q, hb); in futex_lock_pi() 1073 futex_q_unlock(hb); in futex_lock_pi() 1083 futex_q_unlock(hb); in futex_lock_pi() 1104 struct futex_hash_bucket *hb; in futex_unlock_pi() local [all …]
|
/linux-6.6.21/kernel/power/ |
D | swap.c | 234 static void hib_init_batch(struct hib_bio_batch *hb) in hib_init_batch() argument 236 atomic_set(&hb->count, 0); in hib_init_batch() 237 init_waitqueue_head(&hb->wait); in hib_init_batch() 238 hb->error = BLK_STS_OK; in hib_init_batch() 239 blk_start_plug(&hb->plug); in hib_init_batch() 242 static void hib_finish_batch(struct hib_bio_batch *hb) in hib_finish_batch() argument 244 blk_finish_plug(&hb->plug); in hib_finish_batch() 249 struct hib_bio_batch *hb = bio->bi_private; in hib_end_io() local 264 if (bio->bi_status && !hb->error) in hib_end_io() 265 hb->error = bio->bi_status; in hib_end_io() [all …]
|
/linux-6.6.21/Documentation/devicetree/bindings/clock/ |
D | calxeda.yaml | 13 "hb-sregs" node. 24 - calxeda,hb-pll-clock 25 - calxeda,hb-a9periph-clock 26 - calxeda,hb-a9bus-clock 27 - calxeda,hb-emmc-clock 46 compatible = "calxeda,hb-sregs"; 61 compatible = "calxeda,hb-pll-clock"; 68 compatible = "calxeda,hb-pll-clock"; 75 compatible = "calxeda,hb-a9periph-clock";
|
/linux-6.6.21/arch/arm/boot/dts/calxeda/ |
D | ecx-common.dtsi | 26 compatible = "calxeda,hb-ahci"; 39 compatible = "calxeda,hb-sdhci"; 132 compatible = "calxeda,hb-sregs"; 147 compatible = "calxeda,hb-pll-clock"; 154 compatible = "calxeda,hb-pll-clock"; 161 compatible = "calxeda,hb-a9periph-clock"; 168 compatible = "calxeda,hb-a9bus-clock"; 175 compatible = "calxeda,hb-pll-clock"; 182 compatible = "calxeda,hb-emmc-clock"; 204 compatible = "calxeda,hb-xgmac"; [all …]
|
/linux-6.6.21/tools/perf/ui/browsers/ |
D | hists.c | 51 static void hist_browser__update_nr_entries(struct hist_browser *hb); 56 static bool hist_browser__has_filter(struct hist_browser *hb) in hist_browser__has_filter() argument 58 return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter || hb->c2c_filter; in hist_browser__has_filter() 79 static void hist_browser__set_title_space(struct hist_browser *hb) in hist_browser__set_title_space() argument 81 struct ui_browser *browser = &hb->b; in hist_browser__set_title_space() 82 struct hists *hists = hb->hists; in hist_browser__set_title_space() 85 browser->extra_title_lines = hb->show_headers ? hpp_list->nr_header_lines : 0; in hist_browser__set_title_space() 88 static u32 hist_browser__nr_entries(struct hist_browser *hb) in hist_browser__nr_entries() argument 93 nr_entries = hb->nr_hierarchy_entries; in hist_browser__nr_entries() 94 else if (hist_browser__has_filter(hb)) in hist_browser__nr_entries() [all …]
|
/linux-6.6.21/io_uring/ |
D | poll.c | 123 struct io_hash_bucket *hb = &table->hbs[index]; in io_poll_req_insert() local 125 spin_lock(&hb->lock); in io_poll_req_insert() 126 hlist_add_head(&req->hash_node, &hb->list); in io_poll_req_insert() 127 spin_unlock(&hb->lock); in io_poll_req_insert() 760 struct io_hash_bucket *hb = &table->hbs[i]; in io_poll_remove_all_table() local 762 spin_lock(&hb->lock); in io_poll_remove_all_table() 763 hlist_for_each_entry_safe(req, tmp, &hb->list, hash_node) { in io_poll_remove_all_table() 770 spin_unlock(&hb->lock); in io_poll_remove_all_table() 796 struct io_hash_bucket *hb = &table->hbs[index]; in io_poll_find() local 800 spin_lock(&hb->lock); in io_poll_find() [all …]
|
D | fdinfo.c | 181 struct io_hash_bucket *hb = &ctx->cancel_table.hbs[i]; in io_uring_show_fdinfo() local 185 spin_lock(&hb->lock); in io_uring_show_fdinfo() 186 hlist_for_each_entry(req, &hb->list, hash_node) in io_uring_show_fdinfo() 189 spin_unlock(&hb->lock); in io_uring_show_fdinfo()
|
/linux-6.6.21/Documentation/devicetree/bindings/arm/calxeda/ |
D | hb-sregs.yaml | 4 $id: http://devicetree.org/schemas/arm/calxeda/hb-sregs.yaml# 19 const: calxeda,hb-sregs 36 compatible = "calxeda,hb-sregs";
|
D | l2ecc.yaml | 19 const: "calxeda,hb-sregs-l2-ecc" 39 compatible = "calxeda,hb-sregs-l2-ecc";
|
/linux-6.6.21/drivers/cxl/ |
D | acpi.c | 374 static int cxl_get_chbs(struct device *dev, struct acpi_device *hb, in cxl_get_chbs() argument 380 rc = acpi_evaluate_integer(hb->handle, METHOD_NAME__UID, NULL, &uid); in cxl_get_chbs() 408 struct acpi_device *hb = to_cxl_host_bridge(host, match); in add_host_bridge_dport() local 410 if (!hb) in add_host_bridge_dport() 413 rc = cxl_get_chbs(match, hb, &ctx); in add_host_bridge_dport() 429 pci_root = acpi_pci_find_root(hb->handle); in add_host_bridge_dport() 461 struct acpi_device *hb = to_cxl_host_bridge(host, match); in add_host_bridge_uport() local 470 if (!hb) in add_host_bridge_uport() 473 pci_root = acpi_pci_find_root(hb->handle); in add_host_bridge_uport() 486 rc = cxl_get_chbs(match, hb, &ctx); in add_host_bridge_uport()
|
/linux-6.6.21/drivers/misc/bcm-vk/ |
D | bcm_vk_msg.c | 143 struct bcm_vk_hb_ctrl *hb = container_of(to_delayed_work(work), struct bcm_vk_hb_ctrl, in bcm_vk_hb_poll() local 145 struct bcm_vk *vk = container_of(hb, struct bcm_vk, hb_ctrl); in bcm_vk_hb_poll() 151 if (uptime_s == hb->last_uptime) in bcm_vk_hb_poll() 152 hb->lost_cnt++; in bcm_vk_hb_poll() 154 hb->lost_cnt = 0; in bcm_vk_hb_poll() 157 hb->last_uptime, uptime_s, hb->lost_cnt); in bcm_vk_hb_poll() 164 hb->last_uptime = uptime_s; in bcm_vk_hb_poll() 167 hb->lost_cnt = 0; in bcm_vk_hb_poll() 171 if (hb->lost_cnt > BCM_VK_HB_LOST_MAX) { in bcm_vk_hb_poll() 180 schedule_delayed_work(&hb->work, BCM_VK_HB_TIMER_VALUE); in bcm_vk_hb_poll() [all …]
|
/linux-6.6.21/drivers/atm/ |
D | nicstar.c | 202 struct sk_buff *hb; in nicstar_remove_one() local 227 while ((hb = skb_dequeue(&card->hbpool.queue)) != NULL) { in nicstar_remove_one() 228 dev_kfree_skb_any(hb); in nicstar_remove_one() 657 struct sk_buff *hb; in ns_init_card() local 658 hb = __dev_alloc_skb(NS_HBUFSIZE, GFP_KERNEL); in ns_init_card() 659 if (hb == NULL) { in ns_init_card() 667 NS_PRV_BUFTYPE(hb) = BUF_NONE; in ns_init_card() 668 skb_queue_tail(&card->hbpool.queue, hb); in ns_init_card() 837 struct sk_buff *hb; in ns_init_card_error() local 838 while ((hb = skb_dequeue(&card->hbpool.queue)) != NULL) in ns_init_card_error() [all …]
|
/linux-6.6.21/Documentation/devicetree/bindings/memory-controllers/ |
D | calxeda-ddr-ctrlr.yaml | 20 - calxeda,hb-ddr-ctrl 39 compatible = "calxeda,hb-ddr-ctrl";
|
/linux-6.6.21/Documentation/devicetree/bindings/phy/ |
D | calxeda-combophy.yaml | 22 const: calxeda,hb-combophy 46 compatible = "calxeda,hb-combophy";
|
/linux-6.6.21/tools/memory-model/ |
D | linux-kernel.cat | 99 let hb = [Marked] ; (ppo | rfe | ((prop \ id) & int)) ; [Marked] 100 acyclic hb as happens-before 107 let pb = prop ; strong-fence ; hb* ; [Marked] 134 let rcu-link = po? ; hb* ; pb* ; prop ; po 159 let rb = prop ; rcu-fence ; hb* ; pb* ; [Marked] 168 * let xb = hb | pb | rb 182 let xbstar = (hb | pb | rb)*
|
/linux-6.6.21/drivers/net/phy/ |
D | bcm-phy-ptp.c | 180 u16 hb[4]; in bcm_ptp_get_framesync_ts() local 184 hb[0] = bcm_phy_read_exp(phydev, HB_REG_0); in bcm_ptp_get_framesync_ts() 185 hb[1] = bcm_phy_read_exp(phydev, HB_REG_1); in bcm_ptp_get_framesync_ts() 186 hb[2] = bcm_phy_read_exp(phydev, HB_REG_2); in bcm_ptp_get_framesync_ts() 187 hb[3] = bcm_phy_read_exp(phydev, HB_REG_3); in bcm_ptp_get_framesync_ts() 192 ts->tv_sec = (hb[3] << 16) | hb[2]; in bcm_ptp_get_framesync_ts() 193 ts->tv_nsec = (hb[1] << 16) | hb[0]; in bcm_ptp_get_framesync_ts()
|
/linux-6.6.21/Documentation/devicetree/bindings/net/ |
D | calxeda-xgmac.yaml | 21 const: calxeda,hb-xgmac 46 compatible = "calxeda,hb-xgmac";
|
/linux-6.6.21/drivers/scsi/ |
D | constants.c | 411 enum scsi_host_status hb = host_byte(result); in scsi_hostbyte_string() local 414 if (hb < ARRAY_SIZE(hostbyte_table)) in scsi_hostbyte_string() 415 hb_string = hostbyte_table[hb]; in scsi_hostbyte_string()
|