Home
last modified time | relevance | path

Searched refs:hb (Results 1 – 25 of 78) sorted by relevance

1234

/openbmc/qemu/util/
H A Dhbitmap.c110 const HBitmap *hb = hbi->hb; in hbitmap_iter_skip_words() local
117 cur = hbi->cur[i] & hb->levels[i][pos]; in hbitmap_iter_skip_words()
139 cur = hb->levels[i + 1][pos]; in hbitmap_iter_skip_words()
143 trace_hbitmap_iter_skip_words(hbi->hb, hbi, pos, cur); in hbitmap_iter_skip_words()
152 hbi->hb->levels[HBITMAP_LEVELS - 1][hbi->pos]; in hbitmap_iter_next()
169 void hbitmap_iter_init(HBitmapIter *hbi, const HBitmap *hb, uint64_t first) in hbitmap_iter_init() argument
174 hbi->hb = hb; in hbitmap_iter_init()
175 pos = first >> hb->granularity; in hbitmap_iter_init()
176 assert(pos < hb->size); in hbitmap_iter_init()
178 hbi->granularity = hb->granularity; in hbitmap_iter_init()
[all …]
/openbmc/qemu/include/qemu/
H A Dhbitmap.h37 const HBitmap *hb; member
72 void hbitmap_truncate(HBitmap *hb, uint64_t size);
89 bool hbitmap_empty(const HBitmap *hb);
97 int hbitmap_granularity(const HBitmap *hb);
105 uint64_t hbitmap_count(const HBitmap *hb);
115 void hbitmap_set(HBitmap *hb, uint64_t start, uint64_t count);
130 void hbitmap_reset(HBitmap *hb, uint64_t start, uint64_t count);
138 void hbitmap_reset_all(HBitmap *hb);
147 bool hbitmap_get(const HBitmap *hb, uint64_t item);
160 bool hbitmap_is_serializable(const HBitmap *hb);
[all …]
/openbmc/linux/include/linux/
H A Dhdlcdrv.h158 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 …]
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_heartbeat_dbgfs.c159 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 …]
H A Dadf_heartbeat.c216 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 …]
/openbmc/qemu/tests/unit/
H A Dtest-hbitmap.c24 HBitmap *hb; member
44 hbitmap_iter_init(&hbi, data->hb, first); in hbitmap_test_check()
72 g_assert_cmpint(count << data->granularity, ==, hbitmap_count(data->hb)); in hbitmap_test_check()
82 data->hb = hbitmap_alloc(size, granularity); in hbitmap_test_init()
131 hbitmap_truncate(data->hb, size); in hbitmap_test_truncate_impl()
137 if (data->hb) { in hbitmap_test_teardown()
138 hbitmap_free(data->hb); in hbitmap_test_teardown()
139 data->hb = NULL; in hbitmap_test_teardown()
151 hbitmap_set(data->hb, first, count); in hbitmap_test_set()
170 hbitmap_reset(data->hb, first, count); in hbitmap_test_reset()
[all …]
/openbmc/linux/kernel/futex/
H A Dfutex.h144 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 …]
H A Dwaitwake.c145 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 …]
H A Dcore.c439 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 …]
H A Drequeue.c224 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 …]
H A Dpi.c514 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 …]
/openbmc/linux/kernel/power/
H A Dswap.c234 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 …]
/openbmc/linux/arch/arm/boot/dts/calxeda/
H A Decx-common.dtsi26 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 …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/libsdl/libsdl2-ttf/
H A D0001-freetype-Fix-function-signatures-to-match-without-ca.patch14 ../src/hb-ft.cc:1011:34: error: cast from 'void (*)(FT_Face)' (aka 'void (*)(FT_FaceRec_ *)') to 'F…
20 src/hb-ft.cc | 10 ++++++----
23 diff --git a/src/hb-ft.cc b/src/hb-ft.cc
25 --- a/src/hb-ft.cc
26 +++ b/src/hb-ft.cc
/openbmc/openbmc-tools/altitude/
H A Daltitude14 hb = 0 variable
22 return Pb * exp((-g0 * M * (h - hb)) / (Rstar * Tb))
26 return (h - hb) * Lb + Tb
30 return (log(p / Pb) * (Rstar * Tb)) / (-g0 * M) + hb
34 return ((t - Tb) / Lb) + hb
/openbmc/qemu/hw/cxl/
H A Dcxl-host.c158 PCIHostState *hb; in cxl_cfmws_find_device() local
170 hb = PCI_HOST_BRIDGE(fw->target_hbs[rb_index]->cxl_host_bridge); in cxl_cfmws_find_device()
171 if (!hb || !hb->bus || !pci_bus_is_cxl(hb->bus)) { in cxl_cfmws_find_device()
175 if (cxl_get_hb_passthrough(hb)) { in cxl_cfmws_find_device()
176 rp = pcie_find_port_first(hb->bus); in cxl_cfmws_find_device()
181 hb_cstate = cxl_get_hb_cstate(hb); in cxl_cfmws_find_device()
193 rp = pcie_find_port_by_pn(hb->bus, target); in cxl_cfmws_find_device()
/openbmc/linux/tools/perf/ui/browsers/
H A Dhists.c51 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 …]
/openbmc/linux/io_uring/
H A Dpoll.c123 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()
764 struct io_hash_bucket *hb = &table->hbs[i]; in io_poll_remove_all_table() local
766 spin_lock(&hb->lock); in io_poll_remove_all_table()
767 hlist_for_each_entry_safe(req, tmp, &hb->list, hash_node) { in io_poll_remove_all_table()
774 spin_unlock(&hb->lock); in io_poll_remove_all_table()
800 struct io_hash_bucket *hb = &table->hbs[index]; in io_poll_find() local
804 spin_lock(&hb->lock); in io_poll_find()
[all …]
H A Dfdinfo.c181 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()
/openbmc/qemu/include/hw/fsi/
H A Dfsi.h16 #define BE_GENMASK(hb, lb) MAKE_64BIT_MASK((lb), ((hb) - (lb) + 1)) argument
/openbmc/linux/drivers/cxl/
H A Dacpi.c374 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()
/openbmc/linux/drivers/misc/bcm-vk/
H A Dbcm_vk_msg.c143 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 …]
/openbmc/linux/drivers/atm/
H A Dnicstar.c202 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 …]
/openbmc/qemu/hw/pci-bridge/
H A Dpci_expander_bridge.c59 CXLComponentState *cxl_get_hb_cstate(PCIHostState *hb)
61 CXLHost *host = PXB_CXL_HOST(hb);
66 bool cxl_get_hb_passthrough(PCIHostState *hb) in cxl_get_hb_passthrough() argument
68 CXLHost *host = PXB_CXL_HOST(hb); in cxl_get_hb_passthrough()
300 PCIHostState *hb = PCI_HOST_BRIDGE(cxl); in pxb_cxl_dev_reset() local
311 dsp_count = pcie_count_ds_ports(hb->bus); in pxb_cxl_dev_reset()
/openbmc/linux/tools/memory-model/
H A Dlinux-kernel.cat99 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)*

1234