Home
last modified time | relevance | path

Searched refs:window (Results 1 – 25 of 49) sorted by relevance

12

/linux-4.19.296/drivers/misc/mic/scif/
Dscif_rma.c151 struct scif_window *window; in scif_create_window() local
154 window = scif_zalloc(sizeof(*window)); in scif_create_window()
155 if (!window) in scif_create_window()
158 window->dma_addr = scif_zalloc(nr_pages * sizeof(*window->dma_addr)); in scif_create_window()
159 if (!window->dma_addr) in scif_create_window()
162 window->num_pages = scif_zalloc(nr_pages * sizeof(*window->num_pages)); in scif_create_window()
163 if (!window->num_pages) in scif_create_window()
166 window->offset = offset; in scif_create_window()
167 window->ep = (u64)ep; in scif_create_window()
168 window->magic = SCIFEP_MAGIC; in scif_create_window()
[all …]
Dscif_rma_list.c28 void scif_insert_tcw(struct scif_window *window, struct list_head *head) in scif_insert_tcw() argument
34 INIT_LIST_HEAD(&window->list); in scif_insert_tcw()
38 if (curr->va_for_temp < window->va_for_temp) { in scif_insert_tcw()
39 list_add_tail(&window->list, head); in scif_insert_tcw()
45 if (curr->va_for_temp > window->va_for_temp) in scif_insert_tcw()
49 list_add(&window->list, &prev->list); in scif_insert_tcw()
58 void scif_insert_window(struct scif_window *window, struct list_head *head) in scif_insert_window() argument
63 INIT_LIST_HEAD(&window->list); in scif_insert_window()
66 if (curr->offset > window->offset) in scif_insert_window()
71 list_add(&window->list, head); in scif_insert_window()
[all …]
Dscif_debugfs.c65 static void scif_display_window(struct scif_window *window, struct seq_file *s) in scif_display_window() argument
69 scif_pinned_pages_t pin = window->pinned_pages; in scif_display_window()
72 window, window->type, window->temp, window->offset); in scif_display_window()
74 window->nr_pages, window->nr_contig_chunks, window->prot); in scif_display_window()
76 window->ref_count, window->magic, window->peer_window); in scif_display_window()
78 window->unreg_state, window->va_for_temp); in scif_display_window()
80 for (j = 0; j < window->nr_contig_chunks; j++) in scif_display_window()
82 window->dma_addr[j], window->num_pages[j]); in scif_display_window()
84 if (window->type == SCIF_WINDOW_SELF && pin) in scif_display_window()
85 for (j = 0; j < window->nr_pages; j++) in scif_display_window()
[all …]
Dscif_mmap.c34 struct scif_window *window = NULL; in scif_recv_munmap() local
40 req.out_window = &window; in scif_recv_munmap()
57 scif_put_window(window, window->nr_pages); in scif_recv_munmap()
59 if (!window->ref_count) { in scif_recv_munmap()
62 list_del_init(&window->list); in scif_recv_munmap()
63 scif_free_window_offset(ep, window, window->offset); in scif_recv_munmap()
67 if (window && !window->ref_count) in scif_recv_munmap()
68 scif_queue_for_cleanup(window, &scif_info.rma); in scif_recv_munmap()
134 struct scif_window *window; in __scif_cleanup_rma_for_zombies() local
137 window = list_entry(pos, struct scif_window, list); in __scif_cleanup_rma_for_zombies()
[all …]
Dscif_rma.h313 struct scif_window *window, s64 offset);
318 int scif_destroy_window(struct scif_endpt *ep, struct scif_window *window);
319 void scif_unmap_window(struct scif_dev *remote_dev, struct scif_window *window);
322 struct scif_window *window);
324 int scif_unregister_window(struct scif_window *window);
327 scif_destroy_remote_window(struct scif_window *window);
369 scif_init_window_iter(struct scif_window *window, struct scif_window_iter *iter) in scif_init_window_iter() argument
371 iter->offset = window->offset; in scif_init_window_iter()
375 dma_addr_t scif_off_to_dma_addr(struct scif_window *window, s64 off,
379 dma_addr_t __scif_off_to_dma_addr(struct scif_window *window, s64 off) in __scif_off_to_dma_addr() argument
[all …]
Dscif_dma.c121 struct scif_window *window; in __scif_rma_destroy_tcw() local
129 window = list_entry(item, struct scif_window, list); in __scif_rma_destroy_tcw()
132 start_va = window->va_for_temp; in __scif_rma_destroy_tcw()
133 end_va = start_va + (window->nr_pages << PAGE_SHIFT); in __scif_rma_destroy_tcw()
138 __scif_rma_destroy_tcw_helper(window); in __scif_rma_destroy_tcw()
584 struct scif_window *window; in scif_rma_destroy_windows() local
592 window = list_entry(item, struct scif_window, in scif_rma_destroy_windows()
594 ep = (struct scif_endpt *)window->ep; in scif_rma_destroy_windows()
597 list_del_init(&window->list); in scif_rma_destroy_windows()
603 window->unreg_state = OP_COMPLETED; in scif_rma_destroy_windows()
[all …]
Dscif_rma_list.h45 void scif_insert_window(struct scif_window *window, struct list_head *head);
46 void scif_insert_tcw(struct scif_window *window,
55 int scif_rma_list_unregister(struct scif_window *window, s64 offset,
Dscif_fence.c187 static inline void *scif_get_local_va(off_t off, struct scif_window *window) in scif_get_local_va() argument
189 struct page **pages = window->pinned_pages->pages; in scif_get_local_va()
190 int page_nr = (off - window->offset) >> PAGE_SHIFT; in scif_get_local_va()
294 struct scif_window *window = NULL; in scif_prog_signal() local
300 req.out_window = &window; in scif_prog_signal()
321 dst_virt = scif_get_local_va(offset, window); in scif_prog_signal()
325 window->peer_window); in scif_prog_signal()
328 dst_dma_addr = __scif_off_to_dma_addr(window, offset); in scif_prog_signal()
/linux-4.19.296/drivers/pci/
Dhost-bridge.c54 struct resource_entry *window; in pcibios_resource_to_bus() local
57 resource_list_for_each_entry(window, &bridge->windows) { in pcibios_resource_to_bus()
58 if (resource_contains(window->res, res)) { in pcibios_resource_to_bus()
59 offset = window->offset; in pcibios_resource_to_bus()
79 struct resource_entry *window; in pcibios_bus_to_resource() local
82 resource_list_for_each_entry(window, &bridge->windows) { in pcibios_bus_to_resource()
85 if (resource_type(res) != resource_type(window->res)) in pcibios_bus_to_resource()
88 bus_region.start = window->res->start - window->offset; in pcibios_bus_to_resource()
89 bus_region.end = window->res->end - window->offset; in pcibios_bus_to_resource()
92 offset = window->offset; in pcibios_bus_to_resource()
/linux-4.19.296/drivers/edac/
Di3200_edac.c100 void __iomem *window; member
185 void __iomem *window = priv->window; in i3200_get_and_clear_error_info() local
198 info->eccerrlog[0] = readq(window + I3200_C0ECCERRLOG); in i3200_get_and_clear_error_info()
200 info->eccerrlog[1] = readq(window + I3200_C1ECCERRLOG); in i3200_get_and_clear_error_info()
211 info->eccerrlog[0] = readq(window + I3200_C0ECCERRLOG); in i3200_get_and_clear_error_info()
213 info->eccerrlog[1] = readq(window + I3200_C1ECCERRLOG); in i3200_get_and_clear_error_info()
270 void __iomem *window; in i3200_map_mchbar() local
283 window = ioremap_nocache(u.mchbar, I3200_MMR_WINDOW_SIZE); in i3200_map_mchbar()
284 if (!window) in i3200_map_mchbar()
288 return window; in i3200_map_mchbar()
[all …]
Dx38_edac.c168 void __iomem *window = mci->pvt_info; in x38_get_and_clear_error_info() local
181 info->eccerrlog[0] = lo_hi_readq(window + X38_C0ECCERRLOG); in x38_get_and_clear_error_info()
183 info->eccerrlog[1] = lo_hi_readq(window + X38_C1ECCERRLOG); in x38_get_and_clear_error_info()
194 info->eccerrlog[0] = lo_hi_readq(window + X38_C0ECCERRLOG); in x38_get_and_clear_error_info()
197 lo_hi_readq(window + X38_C1ECCERRLOG); in x38_get_and_clear_error_info()
255 void __iomem *window; in x38_map_mchbar() local
269 window = ioremap_nocache(u.mchbar, X38_MMR_WINDOW_SIZE); in x38_map_mchbar()
270 if (!window) in x38_map_mchbar()
274 return window; in x38_map_mchbar()
278 static void x38_get_drbs(void __iomem *window, in x38_get_drbs() argument
[all …]
Die31200_edac.c154 void __iomem *window; member
327 void __iomem *window; in ie31200_map_mchbar() local
339 window = ioremap_nocache(u.mchbar, IE31200_MMR_WINDOW_SIZE); in ie31200_map_mchbar()
340 if (!window) in ie31200_map_mchbar()
344 return window; in ie31200_map_mchbar()
380 void __iomem *window; in ie31200_probe1() local
409 window = ie31200_map_mchbar(pdev); in ie31200_probe1()
410 if (!window) { in ie31200_probe1()
429 priv->window = window; in ie31200_probe1()
431 priv->c0errlog = window + IE31200_C0ECCERRLOG_SKL; in ie31200_probe1()
[all …]
Di3000_edac.c321 void __iomem *window; in i3000_probe1() local
327 window = ioremap_nocache(mchbar, I3000_MMR_WINDOW_SIZE); in i3000_probe1()
328 if (!window) { in i3000_probe1()
334 c0dra[0] = readb(window + I3000_C0DRA + 0); /* ranks 0,1 */ in i3000_probe1()
335 c0dra[1] = readb(window + I3000_C0DRA + 1); /* ranks 2,3 */ in i3000_probe1()
336 c1dra[0] = readb(window + I3000_C1DRA + 0); /* ranks 0,1 */ in i3000_probe1()
337 c1dra[1] = readb(window + I3000_C1DRA + 1); /* ranks 2,3 */ in i3000_probe1()
340 c0drb[i] = readb(window + I3000_C0DRB + i); in i3000_probe1()
341 c1drb[i] = readb(window + I3000_C1DRB + i); in i3000_probe1()
344 iounmap(window); in i3000_probe1()
Di82875p_edac.c276 void __iomem *window; in i82875p_setup_overfl_dev() local
313 window = pci_ioremap_bar(dev, 0); in i82875p_setup_overfl_dev()
314 if (window == NULL) { in i82875p_setup_overfl_dev()
320 *ovrfl_window = window; in i82875p_setup_overfl_dev()
/linux-4.19.296/drivers/sh/intc/
Daccess.c16 struct intc_window *window; in intc_phys_to_virt() local
21 window = d->window + k; in intc_phys_to_virt()
23 if (address < window->phys) in intc_phys_to_virt()
26 if (address >= (window->phys + window->size)) in intc_phys_to_virt()
29 address -= window->phys; in intc_phys_to_virt()
30 address += (unsigned long)window->virt; in intc_phys_to_virt()
Dcore.c206 d->window = kcalloc(d->nr_windows, sizeof(*d->window), in register_intc_controller()
208 if (!d->window) in register_intc_controller()
214 d->window[k].phys = res->start; in register_intc_controller()
215 d->window[k].size = resource_size(res); in register_intc_controller()
216 d->window[k].virt = ioremap_nocache(res->start, in register_intc_controller()
218 if (!d->window[k].virt) in register_intc_controller()
396 if (d->window[k].virt) in register_intc_controller()
397 iounmap(d->window[k].virt); in register_intc_controller()
399 kfree(d->window); in register_intc_controller()
/linux-4.19.296/lib/zlib_deflate/
Ddeflate.c154 (UPDATE_HASH(s, s->ins_h, s->window[(str) + (MIN_MATCH-1)]), \
232 s->window = (Byte *) mem->window_memory; in zlib_deflateInit2()
560 register Byte *scan = s->window + s->strstart; /* current string */ in longest_match()
577 register Byte *strend = s->window + s->strstart + MAX_MATCH - 1; in longest_match()
581 register Byte *strend = s->window + s->strstart + MAX_MATCH; in longest_match()
604 match = s->window + cur_match; in longest_match()
636 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan"); in longest_match()
668 Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan"); in longest_match()
705 if (memcmp((char *)s->window + match, in check_match()
706 (char *)s->window + start, length) != EQUAL) { in check_match()
[all …]
/linux-4.19.296/include/trace/events/
Dwbt.h92 int step, unsigned long window, unsigned int bg,
95 TP_ARGS(bdi, msg, step, window, bg, normal, max),
101 __field(unsigned long, window)
112 __entry->window = div_u64(window, 1000);
119 __entry->name, __entry->msg, __entry->step, __entry->window,
/linux-4.19.296/include/linux/ssb/
Dssb_driver_mips.h20 u32 window; member
27 u32 window; member
/linux-4.19.296/lib/zlib_inflate/
Dinffast.c81 unsigned char *window; /* allocated sliding window, if wsize != 0 */ in inflate_fast() local
108 window = state->window; in inflate_fast()
187 from = window; in inflate_fast()
206 from = window; in inflate_fast()
Dinflate.c69 state->window = &WS(strm)->working_window[0]; in zlib_inflateInit2()
111 memcpy(state->window, strm->next_out - state->wsize, state->wsize); in zlib_updatewindow()
118 memcpy(state->window + state->write, strm->next_out - copy, dist); in zlib_updatewindow()
121 memcpy(state->window, strm->next_out - copy, copy); in zlib_updatewindow()
654 from = state->window + (state->wsize - copy); in zlib_inflate()
657 from = state->window + (state->write - copy); in zlib_inflate()
Dinflate.h87 unsigned char *window; /* allocated sliding window, if needed */ member
/linux-4.19.296/include/uapi/linux/
Datmsap.h110 unsigned char window; /* window size (k), 1-127 (0 to omit) */ member
121 unsigned char window;/* packet window size, 1-127 (0 to omit) */ member
/linux-4.19.296/drivers/pci/controller/
Dpci-xgene.c412 struct resource_entry *window; in xgene_pcie_map_ranges() local
416 resource_list_for_each_entry(window, res) { in xgene_pcie_map_ranges()
417 struct resource *res = window->res; in xgene_pcie_map_ranges()
425 res->start - window->offset); in xgene_pcie_map_ranges()
435 window->offset); in xgene_pcie_map_ranges()
440 window->offset); in xgene_pcie_map_ranges()
/linux-4.19.296/drivers/uwb/
Drsv.c214 bow->window = UWB_DRP_BACKOFF_WIN_MIN >> 1; in uwb_rsv_backoff_win_timer()
228 dev_dbg(dev, "backoff_win_increment: window=%d\n", bow->window); in uwb_rsv_backoff_win_increment()
232 if((bow->window << 1) == UWB_DRP_BACKOFF_WIN_MAX) in uwb_rsv_backoff_win_increment()
235 bow->window <<= 1; in uwb_rsv_backoff_win_increment()
236 bow->n = prandom_u32() & (bow->window - 1); in uwb_rsv_backoff_win_increment()
237 dev_dbg(dev, "new_window=%d, n=%d\n", bow->window, bow->n); in uwb_rsv_backoff_win_increment()
989 rc->bow.window = UWB_DRP_BACKOFF_WIN_MIN >> 1; in uwb_rsv_init()

12