Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/staging/vt6655/
Dmac.c255 unsigned short ww; in MACbSoftwareReset() local
260 for (ww = 0; ww < W_MAX_TIMEOUT; ww++) { in MACbSoftwareReset()
264 if (ww == W_MAX_TIMEOUT) in MACbSoftwareReset()
318 unsigned short ww; in MACbSafeRxOff() local
325 for (ww = 0; ww < W_MAX_TIMEOUT; ww++) { in MACbSafeRxOff()
329 if (ww == W_MAX_TIMEOUT) { in MACbSafeRxOff()
333 for (ww = 0; ww < W_MAX_TIMEOUT; ww++) { in MACbSafeRxOff()
337 if (ww == W_MAX_TIMEOUT) { in MACbSafeRxOff()
345 for (ww = 0; ww < W_MAX_TIMEOUT; ww++) { in MACbSafeRxOff()
349 if (ww == W_MAX_TIMEOUT) { in MACbSafeRxOff()
[all …]
Dbaseband.c1911 unsigned short ww; in bb_read_embedded() local
1920 for (ww = 0; ww < W_MAX_TIMEOUT; ww++) { in bb_read_embedded()
1929 if (ww == W_MAX_TIMEOUT) { in bb_read_embedded()
1954 unsigned short ww; in bb_write_embedded() local
1965 for (ww = 0; ww < W_MAX_TIMEOUT; ww++) { in bb_write_embedded()
1971 if (ww == W_MAX_TIMEOUT) { in bb_write_embedded()
Dcard.c801 unsigned short ww; in CARDbGetCurrentTSF() local
805 for (ww = 0; ww < W_MAX_TIMEOUT; ww++) { in CARDbGetCurrentTSF()
810 if (ww == W_MAX_TIMEOUT) in CARDbGetCurrentTSF()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dintel_context.c103 static int __context_pin_state(struct i915_vma *vma, struct i915_gem_ww_ctx *ww) in __context_pin_state() argument
108 err = i915_ggtt_pin(vma, ww, 0, bias | PIN_HIGH); in __context_pin_state()
138 struct i915_gem_ww_ctx *ww) in __ring_active() argument
142 err = intel_ring_pin(ring, ww); in __ring_active()
164 struct i915_gem_ww_ctx *ww) in intel_context_pre_pin() argument
170 err = __ring_active(ce->ring, ww); in intel_context_pre_pin()
174 err = intel_timeline_pin(ce->timeline, ww); in intel_context_pre_pin()
181 err = __context_pin_state(ce->state, ww); in intel_context_pre_pin()
205 struct i915_gem_ww_ctx *ww) in __intel_context_do_pin_ww() argument
223 err = i915_gem_object_lock(ce->timeline->hwsp_ggtt->obj, ww); in __intel_context_do_pin_ww()
[all …]
Dintel_renderstate.c185 i915_gem_ww_ctx_init(&so->ww, true); in intel_renderstate_init()
187 err = intel_context_pin_ww(ce, &so->ww); in intel_renderstate_init()
195 err = i915_gem_object_lock(so->vma->obj, &so->ww); in intel_renderstate_init()
215 err = i915_gem_ww_ctx_backoff(&so->ww); in intel_renderstate_init()
219 i915_gem_ww_ctx_fini(&so->ww); in intel_renderstate_init()
268 i915_gem_ww_ctx_fini(&so->ww); in intel_renderstate_fini()
Dintel_context.h87 struct i915_gem_ww_ctx *ww);
103 struct i915_gem_ww_ctx *ww) in intel_context_pin_ww() argument
108 return __intel_context_do_pin_ww(ce, ww); in intel_context_pin_ww()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
Di915_gem_object_blt.c17 struct i915_gem_ww_ctx *ww, in intel_emit_vma_fill_blt() argument
43 err = i915_gem_object_lock(pool->obj, ww); in intel_emit_vma_fill_blt()
53 err = i915_vma_pin_ww(batch, ww, 0, 0, PIN_USER); in intel_emit_vma_fill_blt()
149 struct i915_gem_ww_ctx ww; in i915_gem_object_fill_blt() local
159 i915_gem_ww_ctx_init(&ww, true); in i915_gem_object_fill_blt()
162 err = i915_gem_object_lock(obj, &ww); in i915_gem_object_fill_blt()
166 err = intel_context_pin_ww(ce, &ww); in i915_gem_object_fill_blt()
170 err = i915_vma_pin_ww(vma, &ww, 0, 0, PIN_USER); in i915_gem_object_fill_blt()
174 batch = intel_emit_vma_fill_blt(ce, vma, &ww, value); in i915_gem_object_fill_blt()
217 err = i915_gem_ww_ctx_backoff(&ww); in i915_gem_object_fill_blt()
[all …]
Di915_gem_object.h114 struct i915_gem_ww_ctx *ww, in __i915_gem_object_lock() argument
120 ret = dma_resv_lock_interruptible(obj->base.resv, ww ? &ww->ctx : NULL); in __i915_gem_object_lock()
122 ret = dma_resv_lock(obj->base.resv, ww ? &ww->ctx : NULL); in __i915_gem_object_lock()
124 if (!ret && ww) in __i915_gem_object_lock()
125 list_add_tail(&obj->obj_link, &ww->obj_list); in __i915_gem_object_lock()
130 ww->contended = obj; in __i915_gem_object_lock()
136 struct i915_gem_ww_ctx *ww) in i915_gem_object_lock() argument
138 return __i915_gem_object_lock(obj, ww, ww && ww->intr); in i915_gem_object_lock()
142 struct i915_gem_ww_ctx *ww) in i915_gem_object_lock_interruptible() argument
144 WARN_ON(ww && !ww->intr); in i915_gem_object_lock_interruptible()
[all …]
Di915_gem_client_blt.c161 struct i915_gem_ww_ctx ww; in clear_pages_worker() local
177 i915_gem_ww_ctx_init(&ww, false); in clear_pages_worker()
180 err = intel_context_pin_ww(w->ce, &ww); in clear_pages_worker()
184 batch = intel_emit_vma_fill_blt(w->ce, vma, &ww, w->value); in clear_pages_worker()
236 err = i915_gem_ww_ctx_backoff(&ww); in clear_pages_worker()
240 i915_gem_ww_ctx_fini(&ww); in clear_pages_worker()
256 struct i915_gem_ww_ctx ww; in pin_wait_clear_pages_work() local
259 i915_gem_ww_ctx_init(&ww, false); in pin_wait_clear_pages_work()
261 err = i915_gem_object_lock(vma->obj, &ww); in pin_wait_clear_pages_work()
265 err = i915_vma_pin_ww(vma, &ww, 0, 0, PIN_USER); in pin_wait_clear_pages_work()
[all …]
Di915_gem_domain.c321 struct i915_gem_ww_ctx ww; in i915_gem_object_pin_to_display_plane() local
329 i915_gem_ww_ctx_init(&ww, true); in i915_gem_object_pin_to_display_plane()
331 ret = i915_gem_object_lock(obj, &ww); in i915_gem_object_pin_to_display_plane()
361 vma = i915_gem_object_ggtt_pin_ww(obj, &ww, view, 0, alignment, in i915_gem_object_pin_to_display_plane()
365 vma = i915_gem_object_ggtt_pin_ww(obj, &ww, view, 0, in i915_gem_object_pin_to_display_plane()
378 ret = i915_gem_ww_ctx_backoff(&ww); in i915_gem_object_pin_to_display_plane()
382 i915_gem_ww_ctx_fini(&ww); in i915_gem_object_pin_to_display_plane()
Di915_gem_object_blt.h20 struct i915_gem_ww_ctx *ww,
24 struct i915_gem_ww_ctx *ww,
Di915_gem_mman.c286 struct i915_gem_ww_ctx ww; in vm_fault_gtt() local
300 i915_gem_ww_ctx_init(&ww, true); in vm_fault_gtt()
302 ret = i915_gem_object_lock(obj, &ww); in vm_fault_gtt()
321 vma = i915_gem_object_ggtt_pin_ww(obj, &ww, NULL, 0, 0, in vm_fault_gtt()
340 vma = i915_gem_object_ggtt_pin_ww(obj, &ww, &view, 0, 0, flags); in vm_fault_gtt()
344 vma = i915_gem_object_ggtt_pin_ww(obj, &ww, &view, 0, 0, flags); in vm_fault_gtt()
405 ret = i915_gem_ww_ctx_backoff(&ww); in vm_fault_gtt()
409 i915_gem_ww_ctx_fini(&ww); in vm_fault_gtt()
Di915_gem_execbuffer.c260 struct i915_gem_ww_ctx ww; member
439 if (unlikely(i915_vma_pin_ww(vma, &eb->ww, 0, 0, pin_flags))) { in eb_pin_vma()
444 if (unlikely(i915_vma_pin_ww(vma, &eb->ww, in eb_pin_vma()
604 err = i915_vma_pin_ww(vma, &eb->ww, in eb_reserve_vma()
897 err = i915_gem_object_lock(vma->obj, &eb->ww); in eb_validate_vmas()
1164 vma = i915_gem_object_ggtt_pin_ww(obj, &eb->ww, NULL, 0, 0, in reloc_iomap()
1285 err = i915_gem_object_lock(pool->obj, &eb->ww); in __reloc_gpu_alloc()
1306 err = i915_vma_pin_ww(batch, &eb->ww, 0, 0, PIN_USER | PIN_NONBLOCK); in __reloc_gpu_alloc()
1327 err = intel_context_pin_ww(ce, &eb->ww); in __reloc_gpu_alloc()
1917 i915_gem_ww_ctx_fini(&eb->ww); in eb_relocate_parse_slow()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
Di915_gem.c206 struct i915_gem_ww_ctx ww; in igt_gem_ww_ctx() local
219 i915_gem_ww_ctx_init(&ww, true); in igt_gem_ww_ctx()
222 err = i915_gem_object_lock(obj, &ww); in igt_gem_ww_ctx()
224 err = i915_gem_object_lock_interruptible(obj, &ww); in igt_gem_ww_ctx()
226 err = i915_gem_object_lock_interruptible(obj2, &ww); in igt_gem_ww_ctx()
228 err = i915_gem_object_lock(obj2, &ww); in igt_gem_ww_ctx()
231 err = i915_gem_ww_ctx_backoff(&ww); in igt_gem_ww_ctx()
235 i915_gem_ww_ctx_fini(&ww); in igt_gem_ww_ctx()
/kernel/linux/linux-5.10/kernel/locking/
Dmutex.c316 ww_mutex_lock_acquired(struct ww_mutex *ww, struct ww_acquire_ctx *ww_ctx) in ww_mutex_lock_acquired() argument
325 DEBUG_LOCKS_WARN_ON(ww->ctx); in ww_mutex_lock_acquired()
337 DEBUG_LOCKS_WARN_ON(ww_ctx->contending_lock != ww); in ww_mutex_lock_acquired()
350 DEBUG_LOCKS_WARN_ON(ww_ctx->ww_class != ww->ww_class); in ww_mutex_lock_acquired()
353 ww->ctx = ww_ctx; in ww_mutex_lock_acquired()
515 struct ww_mutex *ww; in ww_mutex_spin_on_owner() local
517 ww = container_of(lock, struct ww_mutex, base); in ww_mutex_spin_on_owner()
530 if (ww_ctx->acquired > 0 && READ_ONCE(ww->ctx)) in ww_mutex_spin_on_owner()
790 struct ww_mutex *ww; in __ww_mutex_kill() local
792 ww = container_of(lock, struct ww_mutex, base); in __ww_mutex_kill()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_gem.c946 struct i915_gem_ww_ctx *ww, in i915_gem_object_ggtt_pin_ww() argument
1014 ret = i915_vma_pin_ww(vma, ww, size, alignment, flags | PIN_GLOBAL); in i915_gem_object_ggtt_pin_ww()
1324 void i915_gem_ww_ctx_init(struct i915_gem_ww_ctx *ww, bool intr) in i915_gem_ww_ctx_init() argument
1326 ww_acquire_init(&ww->ctx, &reservation_ww_class); in i915_gem_ww_ctx_init()
1327 INIT_LIST_HEAD(&ww->obj_list); in i915_gem_ww_ctx_init()
1328 ww->intr = intr; in i915_gem_ww_ctx_init()
1329 ww->contended = NULL; in i915_gem_ww_ctx_init()
1332 static void i915_gem_ww_ctx_unlock_all(struct i915_gem_ww_ctx *ww) in i915_gem_ww_ctx_unlock_all() argument
1336 while ((obj = list_first_entry_or_null(&ww->obj_list, struct drm_i915_gem_object, obj_link))) { in i915_gem_ww_ctx_unlock_all()
1348 void i915_gem_ww_ctx_fini(struct i915_gem_ww_ctx *ww) in i915_gem_ww_ctx_fini() argument
[all …]
/kernel/linux/linux-5.10/arch/x86/crypto/
Dcamellia_glue.c980 u64 kl, kr, ww; in camellia_setup128() local
1043 CAMELLIA_F(kl, CAMELLIA_SIGMA1L, CAMELLIA_SIGMA1R, ww); in camellia_setup128()
1044 kr ^= ww; in camellia_setup128()
1049 kr ^= ww; in camellia_setup128()
1050 CAMELLIA_F(kr, CAMELLIA_SIGMA4L, CAMELLIA_SIGMA4R, ww); in camellia_setup128()
1051 kl ^= ww; in camellia_setup128()
1088 u64 ww; /* temporary variables */ in camellia_setup256() local
1152 CAMELLIA_F(kl, CAMELLIA_SIGMA1L, CAMELLIA_SIGMA1R, ww); in camellia_setup256()
1153 kr ^= ww; in camellia_setup256()
1157 kr ^= ww ^ krr; in camellia_setup256()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_execbuffer.c35 err = i915_gem_object_lock(obj, &eb->ww); in __igt_gpu_reloc()
39 err = i915_vma_pin_ww(vma, &eb->ww, 0, 0, PIN_USER | PIN_HIGH); in __igt_gpu_reloc()
140 i915_gem_ww_ctx_init(&eb.ww, false); in igt_gpu_reloc()
142 err = intel_context_pin_ww(eb.context, &eb.ww); in igt_gpu_reloc()
149 err = i915_gem_ww_ctx_backoff(&eb.ww); in igt_gpu_reloc()
153 i915_gem_ww_ctx_fini(&eb.ww); in igt_gpu_reloc()
Di915_gem_mman.c531 struct i915_gem_ww_ctx ww; in make_obj_busy() local
538 i915_gem_ww_ctx_init(&ww, false); in make_obj_busy()
540 err = i915_gem_object_lock(obj, &ww); in make_obj_busy()
542 err = i915_vma_pin_ww(vma, &ww, 0, 0, PIN_USER); in make_obj_busy()
562 err = i915_gem_ww_ctx_backoff(&ww); in make_obj_busy()
566 i915_gem_ww_ctx_fini(&ww); in make_obj_busy()
1137 struct i915_gem_ww_ctx ww; in __igt_mmap_gpu() local
1145 i915_gem_ww_ctx_init(&ww, false); in __igt_mmap_gpu()
1147 err = i915_gem_object_lock(obj, &ww); in __igt_mmap_gpu()
1149 err = i915_vma_pin_ww(vma, &ww, 0, 0, PIN_USER); in __igt_mmap_gpu()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/aic94xx/
Daic94xx_reg.c108 #define ASD_READ_SW(ww, type, ord) \ argument
109 static type asd_read_##ww##_##ord(struct asd_ha_struct *asd_ha, \
113 u32 map_offs = (reg - io_handle->ww##_base) + asd_mem_offs_##ww();\
117 #define ASD_WRITE_SW(ww, type, ord) \ argument
118 static void asd_write_##ww##_##ord(struct asd_ha_struct *asd_ha, \
122 u32 map_offs = (reg - io_handle->ww##_base) + asd_mem_offs_##ww();\
/kernel/linux/linux-5.10/tools/memory-model/
Dlinux-kernel.cat182 let ww-vis = fence | (strong-fence ; xbstar ; w-pre-bounded) |
194 let ww-incoh = pre-race & co & ww-vis^-1
195 empty (wr-incoh | rw-incoh | ww-incoh) as plain-coherence
198 let ww-nonrace = ww-vis & ((Marked * W) | rw-xbstar) & ((W * Marked) | wr-vis)
199 let ww-race = (pre-race & co) \ ww-nonrace
203 flag ~empty (ww-race | wr-race | rw-race) as data-race
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-sis96x.c245 u16 ww = 0; in sis96x_probe() local
253 pci_read_config_word(dev, PCI_CLASS_DEVICE, &ww); in sis96x_probe()
254 if (PCI_CLASS_SERIAL_SMBUS != ww) { in sis96x_probe()
255 dev_err(&dev->dev, "Unsupported device class 0x%04x!\n", ww); in sis96x_probe()
/kernel/linux/linux-5.10/drivers/video/fbdev/
Dcg3.c265 int ww, hh; in cg3_rdi_maybe_fixup_var() local
269 ww = simple_strtoul(params, &p, 10); in cg3_rdi_maybe_fixup_var()
270 if (ww && *p == 'x') { in cg3_rdi_maybe_fixup_var()
273 if (var->xres != ww || in cg3_rdi_maybe_fixup_var()
275 var->xres = var->xres_virtual = ww; in cg3_rdi_maybe_fixup_var()
/kernel/linux/linux-5.10/drivers/isdn/mISDN/
Ddsp_cmx.c1862 u_int w, ww; local
1871 ww = dsp->tx_R;
1874 space = (ww - w - 1) & CMX_BUFF_MASK;
1878 ww = (ww - 1) & CMX_BUFF_MASK; /* end one byte prior tx_R */
1882 skb->len, w, ww);
1885 ww = (w + skb->len) & CMX_BUFF_MASK;
1886 dsp->tx_W = ww;
1891 (u_long)dsp, (ww - w) & CMX_BUFF_MASK, w, ww, dsp->name);
1896 sprintf(debugbuf, "TX getting (%04x-%04x)%p: ", w, ww, p);
1898 while (w != ww) {
/kernel/linux/linux-5.10/Documentation/locking/
Dindex.rst19 ww-mutex-design

12