Searched refs:fifo_state (Results 1 - 6 of 6) sorted by relevance
/linux-4.4.14/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_fifo.c | 300 struct vmw_fifo_state *fifo_state = &dev_priv->fifo; vmw_local_fifo_reserve() local 305 uint32_t reserveable = fifo_state->capabilities & SVGA_FIFO_CAP_RESERVE; vmw_local_fifo_reserve() 308 mutex_lock(&fifo_state->fifo_mutex); vmw_local_fifo_reserve() 316 BUG_ON(fifo_state->reserved_size != 0); vmw_local_fifo_reserve() 317 BUG_ON(fifo_state->dynamic_buffer != NULL); vmw_local_fifo_reserve() 319 fifo_state->reserved_size = bytes; vmw_local_fifo_reserve() 353 fifo_state->using_bounce_buffer = false; vmw_local_fifo_reserve() 366 fifo_state->using_bounce_buffer = true; vmw_local_fifo_reserve() 367 if (bytes < fifo_state->static_buffer_size) vmw_local_fifo_reserve() 368 return fifo_state->static_buffer; vmw_local_fifo_reserve() 370 fifo_state->dynamic_buffer = vmalloc(bytes); vmw_local_fifo_reserve() 371 return fifo_state->dynamic_buffer; vmw_local_fifo_reserve() 376 fifo_state->reserved_size = 0; vmw_local_fifo_reserve() 377 mutex_unlock(&fifo_state->fifo_mutex); vmw_local_fifo_reserve() 406 static void vmw_fifo_res_copy(struct vmw_fifo_state *fifo_state, vmw_fifo_res_copy() argument 413 uint32_t *buffer = (fifo_state->dynamic_buffer != NULL) ? vmw_fifo_res_copy() 414 fifo_state->dynamic_buffer : fifo_state->static_buffer; vmw_fifo_res_copy() 427 static void vmw_fifo_slow_copy(struct vmw_fifo_state *fifo_state, vmw_fifo_slow_copy() argument 432 uint32_t *buffer = (fifo_state->dynamic_buffer != NULL) ? vmw_fifo_slow_copy() 433 fifo_state->dynamic_buffer : fifo_state->static_buffer; vmw_fifo_slow_copy() 449 struct vmw_fifo_state *fifo_state = &dev_priv->fifo; vmw_local_fifo_commit() local 454 bool reserveable = fifo_state->capabilities & SVGA_FIFO_CAP_RESERVE; vmw_local_fifo_commit() 456 if (fifo_state->dx) vmw_local_fifo_commit() 459 fifo_state->dx = false; vmw_local_fifo_commit() 461 BUG_ON(bytes > fifo_state->reserved_size); vmw_local_fifo_commit() 463 fifo_state->reserved_size = 0; vmw_local_fifo_commit() 465 if (fifo_state->using_bounce_buffer) { vmw_local_fifo_commit() 467 vmw_fifo_res_copy(fifo_state, fifo_mem, vmw_local_fifo_commit() 470 vmw_fifo_slow_copy(fifo_state, fifo_mem, vmw_local_fifo_commit() 473 if (fifo_state->dynamic_buffer) { vmw_local_fifo_commit() 474 vfree(fifo_state->dynamic_buffer); vmw_local_fifo_commit() 475 fifo_state->dynamic_buffer = NULL; vmw_local_fifo_commit() 480 down_write(&fifo_state->rwsem); vmw_local_fifo_commit() 481 if (fifo_state->using_bounce_buffer || reserveable) { vmw_local_fifo_commit() 492 up_write(&fifo_state->rwsem); vmw_local_fifo_commit() 494 mutex_unlock(&fifo_state->fifo_mutex); vmw_local_fifo_commit() 539 struct vmw_fifo_state *fifo_state = &dev_priv->fifo; vmw_fifo_send_fence() local 558 if (!(fifo_state->capabilities & SVGA_FIFO_CAP_FENCE)) { vmw_fifo_send_fence() 573 (void) vmw_marker_push(&fifo_state->marker_queue, *seqno); vmw_fifo_send_fence() 574 vmw_update_seqno(dev_priv, fifo_state); vmw_fifo_send_fence()
|
H A D | vmwgfx_irq.c | 71 struct vmw_fifo_state *fifo_state) vmw_update_seqno() 78 vmw_marker_pull(&fifo_state->marker_queue, seqno); vmw_update_seqno() 86 struct vmw_fifo_state *fifo_state; vmw_seqno_passed() local 92 fifo_state = &dev_priv->fifo; vmw_seqno_passed() 93 vmw_update_seqno(dev_priv, fifo_state); vmw_seqno_passed() 97 if (!(fifo_state->capabilities & SVGA_FIFO_CAP_FENCE) && vmw_seqno_passed() 119 struct vmw_fifo_state *fifo_state = &dev_priv->fifo; vmw_fallback_wait() local 136 down_read(&fifo_state->rwsem); vmw_fallback_wait() 186 up_read(&fifo_state->rwsem); vmw_fallback_wait() 70 vmw_update_seqno(struct vmw_private *dev_priv, struct vmw_fifo_state *fifo_state) vmw_update_seqno() argument
|
H A D | vmwgfx_drv.h | 861 struct vmw_fifo_state *fifo_state);
|
/linux-4.4.14/drivers/isdn/hardware/mISDN/ |
H A D | hfcpci.c | 337 u_char fifo_state; hfcpci_clear_fifo_rx() local 342 fifo_state = hc->hw.fifo_en & HFCPCI_FIFOEN_B2RX; hfcpci_clear_fifo_rx() 345 fifo_state = hc->hw.fifo_en & HFCPCI_FIFOEN_B1RX; hfcpci_clear_fifo_rx() 347 if (fifo_state) hfcpci_clear_fifo_rx() 348 hc->hw.fifo_en ^= fifo_state; hfcpci_clear_fifo_rx() 356 if (fifo_state) hfcpci_clear_fifo_rx() 357 hc->hw.fifo_en |= fifo_state; hfcpci_clear_fifo_rx() 366 u_char fifo_state; hfcpci_clear_fifo_tx() local 371 fifo_state = hc->hw.fifo_en & HFCPCI_FIFOEN_B2TX; hfcpci_clear_fifo_tx() 374 fifo_state = hc->hw.fifo_en & HFCPCI_FIFOEN_B1TX; hfcpci_clear_fifo_tx() 376 if (fifo_state) hfcpci_clear_fifo_tx() 377 hc->hw.fifo_en ^= fifo_state; hfcpci_clear_fifo_tx() 385 fifo_state); hfcpci_clear_fifo_tx() 390 if (fifo_state) hfcpci_clear_fifo_tx() 391 hc->hw.fifo_en |= fifo_state; hfcpci_clear_fifo_tx()
|
/linux-4.4.14/drivers/isdn/hisax/ |
H A D | hfc_pci.c | 217 { u_char fifo_state; hfcpci_clear_fifo_rx() local 222 fifo_state = cs->hw.hfcpci.fifo_en & HFCPCI_FIFOEN_B2RX; hfcpci_clear_fifo_rx() 225 fifo_state = cs->hw.hfcpci.fifo_en & HFCPCI_FIFOEN_B1RX; hfcpci_clear_fifo_rx() 227 if (fifo_state) hfcpci_clear_fifo_rx() 228 cs->hw.hfcpci.fifo_en ^= fifo_state; hfcpci_clear_fifo_rx() 235 if (fifo_state) hfcpci_clear_fifo_rx() 236 cs->hw.hfcpci.fifo_en |= fifo_state; hfcpci_clear_fifo_rx() 244 { u_char fifo_state; hfcpci_clear_fifo_tx() local 249 fifo_state = cs->hw.hfcpci.fifo_en & HFCPCI_FIFOEN_B2TX; hfcpci_clear_fifo_tx() 252 fifo_state = cs->hw.hfcpci.fifo_en & HFCPCI_FIFOEN_B1TX; hfcpci_clear_fifo_tx() 254 if (fifo_state) hfcpci_clear_fifo_tx() 255 cs->hw.hfcpci.fifo_en ^= fifo_state; hfcpci_clear_fifo_tx() 261 if (fifo_state) hfcpci_clear_fifo_tx() 262 cs->hw.hfcpci.fifo_en |= fifo_state; hfcpci_clear_fifo_tx()
|
/linux-4.4.14/drivers/net/ethernet/cavium/thunder/ |
H A D | nicvf_queues.c | 431 u64 tmp, fifo_state; nicvf_reclaim_rbdr() local 445 fifo_state = nicvf_queue_reg_read(nic, NIC_QSET_RBDR_0_1_STATUS0, qidx); nicvf_reclaim_rbdr() 446 if (((fifo_state >> 62) & 0x03) == 0x3) nicvf_reclaim_rbdr()
|
Completed in 278 milliseconds