Searched refs:reg_state (Results 1 - 36 of 36) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/i915/
H A Dintel_lrc.c193 #define ASSIGN_CTX_PDP(ppgtt, reg_state, n) { \
195 reg_state[CTX_PDP ## n ## _UDW+1] = upper_32_bits(_addr); \
196 reg_state[CTX_PDP ## n ## _LDW+1] = lower_32_bits(_addr); \
199 #define ASSIGN_CTX_PML4(ppgtt, reg_state) { \
200 reg_state[CTX_PDP0_UDW + 1] = upper_32_bits(px_dma(&ppgtt->pml4)); \
201 reg_state[CTX_PDP0_LDW + 1] = lower_32_bits(px_dma(&ppgtt->pml4)); \
364 uint32_t *reg_state; execlists_update_context() local
371 reg_state = kmap_atomic(page); execlists_update_context()
373 reg_state[CTX_RING_TAIL+1] = rq->tail; execlists_update_context()
374 reg_state[CTX_RING_BUFFER_START+1] = i915_gem_obj_ggtt_offset(rb_obj); execlists_update_context()
382 ASSIGN_CTX_PDP(ppgtt, reg_state, 3); execlists_update_context()
383 ASSIGN_CTX_PDP(ppgtt, reg_state, 2); execlists_update_context()
384 ASSIGN_CTX_PDP(ppgtt, reg_state, 1); execlists_update_context()
385 ASSIGN_CTX_PDP(ppgtt, reg_state, 0); execlists_update_context()
388 kunmap_atomic(reg_state); execlists_update_context()
2237 uint32_t *reg_state; populate_lr_context() local
2260 reg_state = kmap_atomic(page); populate_lr_context()
2268 reg_state[CTX_LRI_HEADER_0] = MI_LOAD_REGISTER_IMM(14); populate_lr_context()
2270 reg_state[CTX_LRI_HEADER_0] = MI_LOAD_REGISTER_IMM(11); populate_lr_context()
2271 reg_state[CTX_LRI_HEADER_0] |= MI_LRI_FORCE_POSTED; populate_lr_context()
2272 reg_state[CTX_CONTEXT_CONTROL] = RING_CONTEXT_CONTROL(ring); populate_lr_context()
2273 reg_state[CTX_CONTEXT_CONTROL+1] = populate_lr_context()
2277 reg_state[CTX_RING_HEAD] = RING_HEAD(ring->mmio_base); populate_lr_context()
2278 reg_state[CTX_RING_HEAD+1] = 0; populate_lr_context()
2279 reg_state[CTX_RING_TAIL] = RING_TAIL(ring->mmio_base); populate_lr_context()
2280 reg_state[CTX_RING_TAIL+1] = 0; populate_lr_context()
2281 reg_state[CTX_RING_BUFFER_START] = RING_START(ring->mmio_base); populate_lr_context()
2285 reg_state[CTX_RING_BUFFER_CONTROL] = RING_CTL(ring->mmio_base); populate_lr_context()
2286 reg_state[CTX_RING_BUFFER_CONTROL+1] = populate_lr_context()
2288 reg_state[CTX_BB_HEAD_U] = ring->mmio_base + 0x168; populate_lr_context()
2289 reg_state[CTX_BB_HEAD_U+1] = 0; populate_lr_context()
2290 reg_state[CTX_BB_HEAD_L] = ring->mmio_base + 0x140; populate_lr_context()
2291 reg_state[CTX_BB_HEAD_L+1] = 0; populate_lr_context()
2292 reg_state[CTX_BB_STATE] = ring->mmio_base + 0x110; populate_lr_context()
2293 reg_state[CTX_BB_STATE+1] = (1<<5); populate_lr_context()
2294 reg_state[CTX_SECOND_BB_HEAD_U] = ring->mmio_base + 0x11c; populate_lr_context()
2295 reg_state[CTX_SECOND_BB_HEAD_U+1] = 0; populate_lr_context()
2296 reg_state[CTX_SECOND_BB_HEAD_L] = ring->mmio_base + 0x114; populate_lr_context()
2297 reg_state[CTX_SECOND_BB_HEAD_L+1] = 0; populate_lr_context()
2298 reg_state[CTX_SECOND_BB_STATE] = ring->mmio_base + 0x118; populate_lr_context()
2299 reg_state[CTX_SECOND_BB_STATE+1] = 0; populate_lr_context()
2301 reg_state[CTX_BB_PER_CTX_PTR] = ring->mmio_base + 0x1c0; populate_lr_context()
2302 reg_state[CTX_BB_PER_CTX_PTR+1] = 0; populate_lr_context()
2303 reg_state[CTX_RCS_INDIRECT_CTX] = ring->mmio_base + 0x1c4; populate_lr_context()
2304 reg_state[CTX_RCS_INDIRECT_CTX+1] = 0; populate_lr_context()
2305 reg_state[CTX_RCS_INDIRECT_CTX_OFFSET] = ring->mmio_base + 0x1c8; populate_lr_context()
2306 reg_state[CTX_RCS_INDIRECT_CTX_OFFSET+1] = 0; populate_lr_context()
2311 reg_state[CTX_RCS_INDIRECT_CTX+1] = populate_lr_context()
2315 reg_state[CTX_RCS_INDIRECT_CTX_OFFSET+1] = populate_lr_context()
2318 reg_state[CTX_BB_PER_CTX_PTR+1] = populate_lr_context()
2323 reg_state[CTX_LRI_HEADER_1] = MI_LOAD_REGISTER_IMM(9); populate_lr_context()
2324 reg_state[CTX_LRI_HEADER_1] |= MI_LRI_FORCE_POSTED; populate_lr_context()
2325 reg_state[CTX_CTX_TIMESTAMP] = ring->mmio_base + 0x3a8; populate_lr_context()
2326 reg_state[CTX_CTX_TIMESTAMP+1] = 0; populate_lr_context()
2327 reg_state[CTX_PDP3_UDW] = GEN8_RING_PDP_UDW(ring, 3); populate_lr_context()
2328 reg_state[CTX_PDP3_LDW] = GEN8_RING_PDP_LDW(ring, 3); populate_lr_context()
2329 reg_state[CTX_PDP2_UDW] = GEN8_RING_PDP_UDW(ring, 2); populate_lr_context()
2330 reg_state[CTX_PDP2_LDW] = GEN8_RING_PDP_LDW(ring, 2); populate_lr_context()
2331 reg_state[CTX_PDP1_UDW] = GEN8_RING_PDP_UDW(ring, 1); populate_lr_context()
2332 reg_state[CTX_PDP1_LDW] = GEN8_RING_PDP_LDW(ring, 1); populate_lr_context()
2333 reg_state[CTX_PDP0_UDW] = GEN8_RING_PDP_UDW(ring, 0); populate_lr_context()
2334 reg_state[CTX_PDP0_LDW] = GEN8_RING_PDP_LDW(ring, 0); populate_lr_context()
2341 ASSIGN_CTX_PML4(ppgtt, reg_state); populate_lr_context()
2348 ASSIGN_CTX_PDP(ppgtt, reg_state, 3); populate_lr_context()
2349 ASSIGN_CTX_PDP(ppgtt, reg_state, 2); populate_lr_context()
2350 ASSIGN_CTX_PDP(ppgtt, reg_state, 1); populate_lr_context()
2351 ASSIGN_CTX_PDP(ppgtt, reg_state, 0); populate_lr_context()
2355 reg_state[CTX_LRI_HEADER_2] = MI_LOAD_REGISTER_IMM(1); populate_lr_context()
2356 reg_state[CTX_R_PWR_CLK_STATE] = GEN8_R_PWR_CLK_STATE; populate_lr_context()
2357 reg_state[CTX_R_PWR_CLK_STATE+1] = make_rpcs(dev); populate_lr_context()
2360 kunmap_atomic(reg_state); populate_lr_context()
2537 uint32_t *reg_state; for_each_ring() local
2548 reg_state = kmap_atomic(page); for_each_ring()
2550 reg_state[CTX_RING_HEAD+1] = 0; for_each_ring()
2551 reg_state[CTX_RING_TAIL+1] = 0; for_each_ring()
2553 kunmap_atomic(reg_state); for_each_ring()
H A Di915_guc_submission.c574 uint32_t *reg_state; lr_context_update() local
581 reg_state = kmap_atomic(page); lr_context_update()
583 reg_state[CTX_RING_BUFFER_START+1] = i915_gem_obj_ggtt_offset(rb_obj); lr_context_update()
585 kunmap_atomic(reg_state); lr_context_update()
H A Di915_debugfs.c1976 uint32_t *reg_state; i915_dump_lrc_obj() local
2001 reg_state = kmap_atomic(page); i915_dump_lrc_obj()
2006 reg_state[j], reg_state[j + 1], i915_dump_lrc_obj()
2007 reg_state[j + 2], reg_state[j + 3]); i915_dump_lrc_obj()
2009 kunmap_atomic(reg_state); i915_dump_lrc_obj()
/linux-4.4.14/kernel/bpf/
H A Dverifier.c141 struct reg_state { struct
166 struct reg_state regs[MAX_BPF_REG];
168 struct reg_state spilled_regs[MAX_BPF_STACK / BPF_REG_SIZE];
463 static void init_reg_state(struct reg_state *regs) init_reg_state()
480 static void mark_reg_unknown_value(struct reg_state *regs, u32 regno) mark_reg_unknown_value()
494 static int check_reg_arg(struct reg_state *regs, u32 regno, check_reg_arg()
578 (struct reg_state) {}; check_stack_write()
738 struct reg_state *regs = env->cur_state.regs; check_xadd()
776 struct reg_state *regs = state->regs; check_stack_boundary()
803 struct reg_state *reg = env->cur_state.regs + regno; check_func_arg()
936 struct reg_state *regs = state->regs; check_call()
938 struct reg_state *reg; check_call()
1017 struct reg_state *regs = env->cur_state.regs; check_alu_op()
1178 struct reg_state *regs = env->cur_state.regs; check_cond_jmp_op()
1294 struct reg_state *regs = env->cur_state.regs; check_ld_imm()
1351 struct reg_state *regs = env->cur_state.regs; check_ld_abs()
1353 struct reg_state *reg; check_ld_abs()
1655 * (struct reg_state) {.type = PTR_TO_STACK, .imm = -8} states_equal()
1657 * (struct reg_state) {.type = PTR_TO_STACK, .imm = -16} states_equal()
1710 struct reg_state *regs = state->regs; do_check()
/linux-4.4.14/net/openvswitch/
H A Dvport-netdev.c187 if (vport->dev->reg_state == NETREG_REGISTERED) ovs_netdev_tunnel_destroy()
/linux-4.4.14/net/phonet/
H A Dpn_dev.c135 if ((dev->reg_state == NETREG_REGISTERED) && phonet_device_get()
231 if ((pnd->netdev->reg_state != NETREG_REGISTERED) || phonet_address_lookup()
/linux-4.4.14/drivers/infiniband/core/
H A Ddevice.c244 WARN_ON(device->reg_state != IB_DEV_UNREGISTERED && ib_dealloc_device()
245 device->reg_state != IB_DEV_UNINITIALIZED); ib_dealloc_device()
363 device->reg_state = IB_DEV_REGISTERED; ib_register_device()
418 device->reg_state = IB_DEV_UNREGISTERED; ib_unregister_device()
723 idev->reg_state >= NETREG_UNREGISTERED) { ib_enum_roce_netdev()
H A Droce_gid_mgmt.c261 if (ndev->reg_state >= NETREG_UNREGISTERING) enum_netdev_ipv4_ips()
307 if (ndev->reg_state >= NETREG_UNREGISTERING) enum_netdev_ipv6_ips()
597 if (ndev->reg_state < NETREG_UNREGISTERED) netdevice_event()
/linux-4.4.14/drivers/misc/mic/scif/
H A Dscif_rma.c167 window->reg_state = OP_IDLE; scif_create_window()
971 window->reg_state = OP_IN_PROGRESS; scif_send_scif_register()
978 window->reg_state != scif_send_scif_register()
984 if (window->reg_state == OP_FAILED) scif_send_scif_register()
1262 window->reg_state = OP_COMPLETED; scif_recv_reg_ack()
1281 window->reg_state = OP_FAILED; scif_recv_reg_nack()
H A Dscif_rma.h234 * @reg_state: Registration state
265 enum scif_msg_state reg_state; member in struct:scif_window::__anon6339::__anon6340
/linux-4.4.14/drivers/iio/light/
H A Dstk3310.c113 struct regmap_field *reg_state; member in struct:stk3310_data
433 ret = regmap_field_write(data->reg_state, state); stk3310_set_state()
/linux-4.4.14/net/core/
H A Ddev.c2167 if (dev->reg_state == NETREG_REGISTERED || netif_set_real_num_tx_queues()
2168 dev->reg_state == NETREG_UNREGISTERING) { netif_set_real_num_tx_queues()
2210 if (dev->reg_state == NETREG_REGISTERED) { netif_set_real_num_rx_queues()
6220 if (dev->reg_state == NETREG_UNINITIALIZED) { list_for_each_entry_safe()
6229 BUG_ON(dev->reg_state != NETREG_REGISTERED); list_for_each_entry_safe()
6241 dev->reg_state = NETREG_UNREGISTERING; list_for_each_entry()
6629 BUG_ON(dev->reg_state != NETREG_UNINITIALIZED); register_netdevice()
6695 dev->reg_state = NETREG_REGISTERED; register_netdevice()
6725 dev->reg_state = NETREG_UNREGISTERED; register_netdevice()
6767 dev->reg_state = NETREG_DUMMY; init_dummy_netdev()
6929 if (unlikely(dev->reg_state != NETREG_UNREGISTERING)) { netdev_run_todo()
6931 dev->name, dev->reg_state); netdev_run_todo()
6936 dev->reg_state = NETREG_UNREGISTERED; netdev_run_todo()
7199 if (dev->reg_state == NETREG_UNINITIALIZED) { free_netdev()
7204 BUG_ON(dev->reg_state != NETREG_UNREGISTERED); free_netdev()
7205 dev->reg_state = NETREG_RELEASED; free_netdev()
7320 if (dev->reg_state != NETREG_REGISTERED) dev_change_net_namespace()
7359 Note that dev->reg_state stays at NETREG_REGISTERED. dev_change_net_namespace()
H A Dnet-sysfs.c39 return dev->reg_state <= NETREG_REGISTERED; dev_isalive()
1447 BUG_ON(dev->reg_state != NETREG_RELEASED); netdev_release()
H A Drtnetlink.c2373 if (dev->reg_state == NETREG_UNINITIALIZED) rtnl_newlink()
2556 if (dev->reg_state != NETREG_REGISTERED) rtmsg_ifinfo()
/linux-4.4.14/net/sched/
H A Dsch_generic.c353 if (dev->reg_state == NETREG_UNINITIALIZED) netif_carrier_on()
372 if (dev->reg_state == NETREG_UNINITIALIZED) netif_carrier_off()
/linux-4.4.14/drivers/net/hyperv/
H A Dnetvsc_drv.c671 if (!net || net->reg_state != NETREG_REGISTERED) netvsc_linkstatus_callback()
697 if (!net || net->reg_state != NETREG_REGISTERED) { netvsc_recv_callback()
/linux-4.4.14/drivers/net/ipvlan/
H A Dipvlan_main.c577 if (dev->reg_state != NETREG_UNREGISTERING) ipvlan_device_event()
/linux-4.4.14/net/8021q/
H A Dvlan.c459 if (dev->reg_state != NETREG_UNREGISTERING)
/linux-4.4.14/include/linux/
H A Dnetdevice.h1485 * @reg_state: Register/unregister state machine
1745 } reg_state:8; member in struct:net_device
3910 switch (dev->reg_state) { netdev_reg_state()
3919 WARN_ONCE(1, "%s: unknown reg_state %d\n", dev->name, dev->reg_state); netdev_reg_state()
/linux-4.4.14/drivers/net/
H A Dtun.c547 tun->dev->reg_state == NETREG_REGISTERED) __tun_detach()
1049 if (tun->dev->reg_state != NETREG_REGISTERED) tun_chr_poll()
H A Dmacvlan.c1557 if (dev->reg_state != NETREG_UNREGISTERING) macvlan_device_event()
/linux-4.4.14/drivers/net/wireless/libertas/
H A Dmain.c1149 if (dev->reg_state != NETREG_REGISTERED) lbs_stop_card()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
H A Dcore.c732 if (ndev->reg_state == NETREG_REGISTERED) brcmf_net_detach()
/linux-4.4.14/drivers/net/wimax/i2400m/
H A Ddriver.c839 if (net_dev->reg_state == NETREG_REGISTERED) { i2400m_reset()
/linux-4.4.14/drivers/net/bonding/
H A Dbond_options.c675 else if (bond->dev->reg_state == NETREG_REGISTERED) __bond_opt_set()
/linux-4.4.14/drivers/net/ethernet/cavium/thunder/
H A Dnicvf_main.c1596 if (pnetdev && (pnetdev->reg_state == NETREG_REGISTERED)) nicvf_remove()
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/
H A Dhns_enet.c1595 if (ndev->reg_state != NETREG_UNINITIALIZED) hns_nic_dev_remove()
/linux-4.4.14/drivers/s390/net/
H A Dlcs.c2098 if (card->dev->reg_state != NETREG_UNINITIALIZED) lcs_register_netdev()
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_main.c1911 if (interface->netdev->reg_state != NETREG_UNINITIALIZED) { fm10k_init_reta()
H A Dfm10k_pci.c2004 if (netdev->reg_state == NETREG_REGISTERED) fm10k_remove()
/linux-4.4.14/drivers/net/ethernet/sfc/
H A Dnet_driver.h1067 return efx->net_dev->reg_state == NETREG_REGISTERED; efx_dev_registered()
/linux-4.4.14/drivers/net/wireless/mwifiex/
H A Dcfg80211.c2847 if (wdev->netdev->reg_state == NETREG_REGISTERED) mwifiex_del_virtual_intf()
/linux-4.4.14/include/rdma/
H A Dib_verbs.h1814 } reg_state; member in struct:ib_device
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_main.c6784 (adapter->netdev->reg_state == NETREG_REGISTERED)) { ixgbe_sfp_detection_subtask()
9074 if (netdev->reg_state == NETREG_REGISTERED) ixgbe_remove()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbevf/
H A Dixgbevf_main.c4122 if (netdev->reg_state == NETREG_REGISTERED) ixgbevf_remove()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_main.c5002 if (adapter->port[i]->reg_state == NETREG_REGISTERED) remove_one()

Completed in 2143 milliseconds