Home
last modified time | relevance | path

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

12

/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 …]
H A Dpci-ide.h106 void pci_ide_set_nr_streams(struct pci_host_bridge *hb, u16 nr);
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_heartbeat_dbgfs.c198 struct adf_heartbeat *hb = accel_dev->heartbeat; in adf_heartbeat_dbgfs_add() local
200 if (!hb) in adf_heartbeat_dbgfs_add()
203 hb->dbgfs.base_dir = debugfs_create_dir("heartbeat", accel_dev->debugfs_dir); in adf_heartbeat_dbgfs_add()
204 hb->dbgfs.status = debugfs_create_file("status", 0400, hb->dbgfs.base_dir, in adf_heartbeat_dbgfs_add()
206 hb->dbgfs.sent = debugfs_create_file("queries_sent", 0400, hb->dbgfs.base_dir, in adf_heartbeat_dbgfs_add()
207 &hb->hb_sent_counter, &adf_hb_stats_fops); in adf_heartbeat_dbgfs_add()
208 hb->dbgfs.failed = debugfs_create_file("queries_failed", 0400, hb->dbgfs.base_dir, in adf_heartbeat_dbgfs_add()
209 &hb->hb_failed_counter, &adf_hb_stats_fops); in adf_heartbeat_dbgfs_add()
210 hb->dbgfs.cfg = debugfs_create_file("config", 0600, hb->dbgfs.base_dir, in adf_heartbeat_dbgfs_add()
217 hb->dbgfs.base_dir, accel_dev, in adf_heartbeat_dbgfs_add()
[all …]
H A Dadf_heartbeat.c224 struct adf_heartbeat *hb; in adf_heartbeat_status() local
237 hb = accel_dev->heartbeat; in adf_heartbeat_status()
238 hb->hb_sent_counter++; in adf_heartbeat_status()
244 hb->hb_failed_counter++; in adf_heartbeat_status()
282 struct adf_heartbeat *hb; in adf_heartbeat_init() local
284 hb = kzalloc(sizeof(*hb), GFP_KERNEL); in adf_heartbeat_init()
285 if (!hb) in adf_heartbeat_init()
288 hb->dma.virt_addr = dma_alloc_coherent(&GET_DEV(accel_dev), PAGE_SIZE, in adf_heartbeat_init()
289 &hb->dma.phy_addr, GFP_KERNEL); in adf_heartbeat_init()
290 if (!hb->dma.virt_addr) in adf_heartbeat_init()
[all …]
/linux/drivers/pci/
H A Dide.c46 static bool reserve_stream_id(struct pci_host_bridge *hb, u8 id) in reserve_stream_id() argument
50 ret = ida_alloc_range(&hb->ide_stream_ids_ida, id, id, GFP_KERNEL); in reserve_stream_id()
54 static bool claim_stream(struct pci_host_bridge *hb, u8 stream_id, in claim_stream() argument
57 dev_info(&hb->dev, "Stream ID %d active at init\n", stream_id); in claim_stream()
58 if (!reserve_stream_id(hb, stream_id)) { in claim_stream()
59 dev_info(&hb->dev, "Failed to claim %s Stream ID %d\n", in claim_stream()
81 struct pci_host_bridge *hb = pci_find_host_bridge(pdev->bus); in pci_ide_init() local
152 !claim_stream(hb, id, pdev, i)) in pci_ide_init()
164 !claim_stream(hb, id, NULL, -1)) in pci_ide_init()
249 struct pci_host_bridge *hb; in pci_ide_stream_alloc() local
[all …]
/linux/kernel/power/
H A Dswap.c226 static void hib_init_batch(struct hib_bio_batch *hb) in hib_init_batch() argument
228 atomic_set(&hb->count, 0); in hib_init_batch()
229 init_waitqueue_head(&hb->wait); in hib_init_batch()
230 hb->error = BLK_STS_OK; in hib_init_batch()
231 blk_start_plug(&hb->plug); in hib_init_batch()
234 static void hib_finish_batch(struct hib_bio_batch *hb) in hib_finish_batch() argument
236 blk_finish_plug(&hb->plug); in hib_finish_batch()
241 struct hib_bio_batch *hb = bio->bi_private; in hib_end_io() local
256 if (bio->bi_status && !hb->error) in hib_end_io()
257 hb->error = bio->bi_status; in hib_end_io()
[all …]
/linux/kernel/futex/
H A Dwaitwake.c172 CLASS(hb, hb)(&key); in futex_wake()
175 if (!futex_hb_waiters_pending(hb)) in futex_wake()
178 spin_lock(&hb->lock); in futex_wake()
180 plist_for_each_entry_safe(this, next, &hb->chain, list) { in futex_wake()
197 spin_unlock(&hb->lock); in futex_wake()
269 CLASS(hb, hb1)(&key1); in futex_wake_op()
270 CLASS(hb, hb2)(&key2); in futex_wake_op()
449 CLASS(hb, hb)(&q->key); in futex_wait_multiple_setup()
451 futex_q_lock(q, hb); in futex_wait_multiple_setup()
460 futex_queue(q, hb, current); in futex_wait_multiple_setup()
[all …]
H A Drequeue.c231 struct futex_hash_bucket *hb) in requeue_pi_wake_futex() argument
244 futex_hash_get(hb); in requeue_pi_wake_futex()
246 q->lock_ptr = &hb->lock; in requeue_pi_wake_futex()
459 CLASS(hb, hb1)(&key1); in futex_requeue()
460 CLASS(hb, hb2)(&key2); in futex_requeue()
708 int handle_early_requeue_pi_wakeup(struct futex_hash_bucket *hb, in handle_early_requeue_pi_wakeup() argument
721 WARN_ON_ONCE(&hb->lock != q->lock_ptr); in handle_early_requeue_pi_wakeup()
727 plist_del(&q->list, &hb->chain); in handle_early_requeue_pi_wakeup()
728 futex_hb_waiters_dec(hb); in handle_early_requeue_pi_wakeup()
830 CLASS(hb, hb)(&q.key); in futex_wait_requeue_pi()
[all …]
H A Dcore.c163 void futex_hash_get(struct futex_hash_bucket *hb) in futex_hash_get() argument
165 struct futex_private_hash *fph = hb->priv; in futex_hash_get()
172 void futex_hash_put(struct futex_hash_bucket *hb) in futex_hash_put() argument
174 struct futex_private_hash *fph = hb->priv; in futex_hash_put()
305 struct futex_hash_bucket *hb; in futex_hash() local
309 hb = __futex_hash(key, NULL); in futex_hash()
310 fph = hb->priv; in futex_hash()
313 return hb; in futex_hash()
421 struct futex_hash_bucket *hb; in __futex_hash() local
423 hb = __futex_hash_private(key, fph); in __futex_hash()
[all …]
H A Dpi.c166 * hb->lock:
168 * hb -> futex_q, relation
171 * (cannot be raw because hb can contain arbitrary amount
192 * hb->lock
218 * We get here with hb->lock held, and having found a in attach_to_pi_state()
220 * has dropped the hb->lock in between futex_queue() and futex_unqueue_pi(), in attach_to_pi_state()
383 * This creates pi_state, we have hb->lock held, this means nothing can in __attach_to_pi_owner()
494 * @hb: the pi futex hash bucket
495 * @key: the futex key associated with uaddr and hb
509 * The hb
515 futex_lock_pi_atomic(u32 __user * uaddr,struct futex_hash_bucket * hb,union futex_key * key,struct futex_pi_state ** ps,struct task_struct * task,struct task_struct ** exiting,int set_waiters) futex_lock_pi_atomic() argument
923 struct futex_hash_bucket *hb; futex_lock_pi() local
1117 struct futex_hash_bucket *hb; futex_unlock_pi() local
[all...]
/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 …]
H A Dhighbank.dts108 compatible = "calxeda,hb-ddr-ctrl";
150 compatible = "calxeda,hb-sregs-l2-ecc";
/linux/tools/perf/ui/browsers/
H A Dhists.c52 static void hist_browser__update_nr_entries(struct hist_browser *hb);
57 static bool hist_browser__has_filter(struct hist_browser *hb) in hist_browser__has_filter() argument
59 return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter || hb->c2c_filter; in hist_browser__has_filter()
80 static void hist_browser__set_title_space(struct hist_browser *hb) in hist_browser__set_title_space() argument
82 struct ui_browser *browser = &hb->b; in hist_browser__set_title_space()
83 struct hists *hists = hb->hists; in hist_browser__set_title_space()
86 browser->extra_title_lines = hb->show_headers ? hpp_list->nr_header_lines : 0; in hist_browser__set_title_space()
89 static u32 hist_browser__nr_entries(struct hist_browser *hb) in hist_browser__nr_entries() argument
94 nr_entries = hb->nr_hierarchy_entries; in hist_browser__nr_entries()
95 else if (hist_browser__has_filter(hb)) in hist_browser__nr_entries()
[all …]
/linux/Documentation/driver-api/cxl/platform/
H A Dexample-configs.rst10 example-configurations/one-dev-per-hb.rst
11 example-configurations/multi-dev-per-hb.rst
12 example-configurations/hb-interleave.rst
/linux/drivers/cxl/
H A Dacpi.c602 static int cxl_get_chbs(struct device *dev, struct acpi_device *hb, in cxl_get_chbs() argument
608 rc = acpi_evaluate_integer(hb->handle, METHOD_NAME__UID, NULL, &uid); in cxl_get_chbs()
638 struct acpi_device *hb = to_cxl_host_bridge(NULL, dev); in get_genport_coordinates() local
641 if (kstrtou32(acpi_device_uid(hb), 0, &uid)) in get_genport_coordinates()
657 struct acpi_device *hb = to_cxl_host_bridge(host, match); in add_host_bridge_dport() local
659 if (!hb) in add_host_bridge_dport()
662 rc = cxl_get_chbs(match, hb, &ctx); in add_host_bridge_dport()
678 pci_root = acpi_pci_find_root(hb->handle); in add_host_bridge_dport()
714 struct acpi_device *hb = to_cxl_host_bridge(host, match); in add_host_bridge_uport() local
723 if (!hb) in add_host_bridge_uport()
[all …]
/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 …]
/linux/drivers/atm/
H A Dnicstar.c203 struct sk_buff *hb; in nicstar_remove_one() local
228 while ((hb = skb_dequeue(&card->hbpool.queue)) != NULL) { in nicstar_remove_one()
229 dev_kfree_skb_any(hb); in nicstar_remove_one()
658 struct sk_buff *hb; in ns_init_card() local
659 hb = __dev_alloc_skb(NS_HBUFSIZE, GFP_KERNEL); in ns_init_card()
660 if (hb == NULL) { in ns_init_card()
668 NS_PRV_BUFTYPE(hb) = BUF_NONE; in ns_init_card()
669 skb_queue_tail(&card->hbpool.queue, hb); in ns_init_card()
838 struct sk_buff *hb; in ns_init_card_error() local
839 while ((hb = skb_dequeue(&card->hbpool.queue)) != NULL) in ns_init_card_error()
[all …]
/linux/tools/memory-model/
H A Dlinux-kernel.cat109 let hb = [Marked] ; (ppo | rfe | ((prop \ id) & int)) ; [Marked]
110 acyclic hb as happens-before
117 let pb = prop ; strong-fence ; hb* ; [Marked]
144 let rcu-link = po? ; hb* ; pb* ; prop ; po
169 let rb = prop ; rcu-fence ; hb* ; pb* ; [Marked]
178 * let xb = hb | pb | rb
192 let xbstar = (hb | pb | rb)*
H A Dlinux-kernel.cfg18 edgeattr hb,color,indigo
/linux/drivers/scsi/
H A Dconstants.c411 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()
/linux/io_uring/
H A Dpoll.c736 struct io_hash_bucket *hb = &ctx->cancel_table.hbs[i]; in io_poll_remove_all() local
738 hlist_for_each_entry_safe(req, tmp, &hb->list, hash_node) { in io_poll_remove_all()
754 struct io_hash_bucket *hb = &ctx->cancel_table.hbs[index]; in io_poll_find() local
756 hlist_for_each_entry(req, &hb->list, hash_node) { in io_poll_find()
778 struct io_hash_bucket *hb = &ctx->cancel_table.hbs[i]; in io_poll_file_find() local
780 hlist_for_each_entry(req, &hb->list, hash_node) { in io_poll_file_find()
H A Dfdinfo.c226 struct io_hash_bucket *hb = &ctx->cancel_table.hbs[i]; in __io_uring_show_fdinfo() local
229 hlist_for_each_entry(req, &hb->list, hash_node) in __io_uring_show_fdinfo()
/linux/drivers/hwmon/
H A Dw83773g.c56 static inline long temp_of_remote(s8 hb, u8 lb) in temp_of_remote() argument
58 return (hb << 3 | lb >> 5) * 125; in temp_of_remote()
/linux/drivers/comedi/drivers/
H A Ddt2801.c248 int hb = 0; in dt2801_readdata2() local
254 ret = dt2801_readdata(dev, &hb); in dt2801_readdata2()
258 *data = (hb << 8) + lb; in dt2801_readdata2()
/linux/drivers/staging/nvec/
H A DREADME13 [1] e.g. https://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git;a=tree;f=arch/arm/mach-tegra/nvec;hb=a…

12