Home
last modified time | relevance | path

Searched refs:wsm (Results 1 – 15 of 15) sorted by relevance

/kernel/linux/linux-5.10/fs/btrfs/
Dzstd.c85 static struct zstd_workspace_manager wsm; variable
108 spin_lock_bh(&wsm.lock); in zstd_reclaim_timer_fn()
110 if (list_empty(&wsm.lru_list)) { in zstd_reclaim_timer_fn()
111 spin_unlock_bh(&wsm.lock); in zstd_reclaim_timer_fn()
115 list_for_each_prev_safe(pos, next, &wsm.lru_list) { in zstd_reclaim_timer_fn()
132 if (list_empty(&wsm.idle_ws[level - 1])) in zstd_reclaim_timer_fn()
133 clear_bit(level - 1, &wsm.active_map); in zstd_reclaim_timer_fn()
137 if (!list_empty(&wsm.lru_list)) in zstd_reclaim_timer_fn()
138 mod_timer(&wsm.timer, jiffies + ZSTD_BTRFS_RECLAIM_JIFFIES); in zstd_reclaim_timer_fn()
140 spin_unlock_bh(&wsm.lock); in zstd_reclaim_timer_fn()
[all …]
Dcompression.c920 struct workspace_manager *wsm; in btrfs_init_workspace_manager() local
923 wsm = btrfs_compress_op[type]->workspace_manager; in btrfs_init_workspace_manager()
924 INIT_LIST_HEAD(&wsm->idle_ws); in btrfs_init_workspace_manager()
925 spin_lock_init(&wsm->ws_lock); in btrfs_init_workspace_manager()
926 atomic_set(&wsm->total_ws, 0); in btrfs_init_workspace_manager()
927 init_waitqueue_head(&wsm->ws_wait); in btrfs_init_workspace_manager()
938 atomic_set(&wsm->total_ws, 1); in btrfs_init_workspace_manager()
939 wsm->free_ws = 1; in btrfs_init_workspace_manager()
940 list_add(workspace, &wsm->idle_ws); in btrfs_init_workspace_manager()
966 struct workspace_manager *wsm; in btrfs_get_workspace() local
[all …]
Dlzo.c64 static struct workspace_manager wsm; variable
486 .workspace_manager = &wsm,
Dzlib.c34 static struct workspace_manager wsm; variable
467 .workspace_manager = &wsm,
/kernel/linux/linux-5.10/arch/alpha/kernel/
Dcore_tsunami.c34 unsigned long wsm[4]; member
295 saved_config[index].wsm[0] = pchip->wsm[0].csr; in tsunami_init_one_pchip()
299 saved_config[index].wsm[1] = pchip->wsm[1].csr; in tsunami_init_one_pchip()
303 saved_config[index].wsm[2] = pchip->wsm[2].csr; in tsunami_init_one_pchip()
307 saved_config[index].wsm[3] = pchip->wsm[3].csr; in tsunami_init_one_pchip()
336 pchip->wsm[0].csr = (hose->sg_isa->size - 1) & 0xfff00000; in tsunami_init_one_pchip()
340 pchip->wsm[1].csr = (hose->sg_pci->size - 1) & 0xfff00000; in tsunami_init_one_pchip()
344 pchip->wsm[2].csr = (0x80000000 - 1) & 0xfff00000; in tsunami_init_one_pchip()
428 pchip->wsm[0].csr = saved_config[index].wsm[0]; in tsunami_kill_one_pchip()
432 pchip->wsm[1].csr = saved_config[index].wsm[1]; in tsunami_kill_one_pchip()
[all …]
Dcore_titan.c34 unsigned long wsm[4]; member
294 saved_config[index].wsm[0] = port->wsm[0].csr; in titan_init_one_pachip_port()
298 saved_config[index].wsm[1] = port->wsm[1].csr; in titan_init_one_pachip_port()
302 saved_config[index].wsm[2] = port->wsm[2].csr; in titan_init_one_pachip_port()
306 saved_config[index].wsm[3] = port->wsm[3].csr; in titan_init_one_pachip_port()
327 port->wsm[0].csr = (hose->sg_isa->size - 1) & 0xfff00000; in titan_init_one_pachip_port()
331 port->wsm[1].csr = (__direct_map_size - 1) & 0xfff00000; in titan_init_one_pachip_port()
335 port->wsm[2].csr = (hose->sg_pci->size - 1) & 0xfff00000; in titan_init_one_pachip_port()
408 port->wsm[0].csr = saved_config[index].wsm[0]; in titan_kill_one_pachip_port()
412 port->wsm[1].csr = saved_config[index].wsm[1]; in titan_kill_one_pachip_port()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/st/cw1200/
Dbh.c243 struct wsm_hdr *wsm; in cw1200_bh_rx_helper() local
296 wsm = (struct wsm_hdr *)data; in cw1200_bh_rx_helper()
297 wsm_len = __le16_to_cpu(wsm->len); in cw1200_bh_rx_helper()
306 wsm_id = __le16_to_cpu(wsm->id) & 0xFFF; in cw1200_bh_rx_helper()
307 wsm_seq = (__le16_to_cpu(wsm->id) >> 13) & 7; in cw1200_bh_rx_helper()
313 &data[sizeof(*wsm)], in cw1200_bh_rx_helper()
314 wsm_len - sizeof(*wsm)); in cw1200_bh_rx_helper()
332 if (WARN_ON(wsm_handle_rx(priv, wsm_id, wsm, &skb_rx))) in cw1200_bh_rx_helper()
357 struct wsm_hdr *wsm; in cw1200_bh_tx_helper() local
381 wsm = (struct wsm_hdr *)data; in cw1200_bh_tx_helper()
[all …]
Dtxrx.c565 struct wsm_tx *wsm; in cw1200_tx_h_wsm() local
574 wsm = skb_push(t->skb, sizeof(struct wsm_tx)); in cw1200_tx_h_wsm()
576 memset(wsm, 0, sizeof(*wsm)); in cw1200_tx_h_wsm()
577 wsm->hdr.len = __cpu_to_le16(t->skb->len); in cw1200_tx_h_wsm()
578 wsm->hdr.id = __cpu_to_le16(0x0004); in cw1200_tx_h_wsm()
579 wsm->queue_id = wsm_queue_id_to_wsm(t->queue); in cw1200_tx_h_wsm()
580 return wsm; in cw1200_tx_h_wsm()
587 struct wsm_tx *wsm) in cw1200_tx_h_bt() argument
624 else if (wsm->queue_id == WSM_QUEUE_VOICE) in cw1200_tx_h_bt()
626 else if (wsm->queue_id == WSM_QUEUE_VIDEO) in cw1200_tx_h_bt()
[all …]
Dwsm.c1296 struct wsm_hdr *wsm, struct sk_buff **skb_p) in wsm_handle_rx() argument
1305 wsm_buf.begin = (u8 *)&wsm[0]; in wsm_handle_rx()
1306 wsm_buf.data = (u8 *)&wsm[1]; in wsm_handle_rx()
1307 wsm_buf.end = &wsm_buf.begin[__le16_to_cpu(wsm->len)]; in wsm_handle_rx()
1454 struct wsm_tx *wsm, in wsm_handle_tx_data() argument
1461 (struct ieee80211_hdr *)&((u8 *)wsm)[txpriv->offset]; in wsm_handle_tx_data()
1486 if (cw1200_queue_get_generation(wsm->packet_id) > in wsm_handle_tx_data()
1516 priv->bss_loss_confirm_id = wsm->packet_id; in wsm_handle_tx_data()
1517 wsm->queue_id = WSM_QUEUE_VOICE; in wsm_handle_tx_data()
1546 priv->pending_frame_id = wsm->packet_id; in wsm_handle_tx_data()
[all …]
DMakefile9 wsm.o \
Dscan.c359 struct wsm_tx *wsm; in cw1200_probe_work() local
402 wsm = (struct wsm_tx *)frame.skb->data; in cw1200_probe_work()
403 scan.max_tx_rate = wsm->max_tx_rate; in cw1200_probe_work()
Dwsm.h1811 int wsm_handle_rx(struct cw1200_common *priv, u16 id, struct wsm_hdr *wsm,
/kernel/linux/linux-5.10/net/ceph/
Dosdmap.c998 static void init_workspace_manager(struct workspace_manager *wsm) in init_workspace_manager() argument
1000 INIT_LIST_HEAD(&wsm->idle_ws); in init_workspace_manager()
1001 spin_lock_init(&wsm->ws_lock); in init_workspace_manager()
1002 atomic_set(&wsm->total_ws, 0); in init_workspace_manager()
1003 wsm->free_ws = 0; in init_workspace_manager()
1004 init_waitqueue_head(&wsm->ws_wait); in init_workspace_manager()
1007 static void add_initial_workspace(struct workspace_manager *wsm, in add_initial_workspace() argument
1010 WARN_ON(!list_empty(&wsm->idle_ws)); in add_initial_workspace()
1012 list_add(&work->item, &wsm->idle_ws); in add_initial_workspace()
1013 atomic_set(&wsm->total_ws, 1); in add_initial_workspace()
[all …]
/kernel/linux/linux-5.10/arch/alpha/include/asm/
Dcore_tsunami.h75 tsunami_64 wsm[4]; member
Dcore_titan.h83 titan_64 wsm[4]; member