| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | intel_lrc_reg.h | 33 #define ASSIGN_CTX_PDP(ppgtt, reg_state, n) do { \ argument 34 u32 *reg_state__ = (reg_state); \ 40 #define ASSIGN_CTX_PML4(ppgtt, reg_state) do { \ argument 41 u32 *reg_state__ = (reg_state); \
|
| /linux/drivers/infiniband/ulp/ipoib/ |
| H A D | ipoib_vlan.c | 114 WARN_ON(ppriv->dev->reg_state != NETREG_REGISTERED); in __ipoib_vlan_add() 181 if (pdev->reg_state != NETREG_REGISTERED) { in ipoib_vlan_add() 206 if (result && ndev->reg_state == NETREG_UNINITIALIZED) in ipoib_vlan_add() 239 if (dev->reg_state == NETREG_REGISTERED) { in ipoib_vlan_delete_task() 263 if (pdev->reg_state != NETREG_REGISTERED) { in ipoib_vlan_delete()
|
| /linux/drivers/net/can/rockchip/ |
| H A D | rockchip_canfd-core.c | 180 u32 reg_state; in rkcanfd_get_berr_counter_corrected() local 210 reg_state = rkcanfd_read(priv, RKCANFD_REG_STATE); in rkcanfd_get_berr_counter_corrected() 215 !!(reg_state & RKCANFD_REG_STATE_BUS_OFF_STATE), in rkcanfd_get_berr_counter_corrected() 216 !!(reg_state & RKCANFD_REG_STATE_ERROR_WARNING_STATE)); in rkcanfd_get_berr_counter_corrected() 413 u32 reg_state, reg_cmd; in rkcanfd_handle_error_int_reg_ec() local 417 reg_state = rkcanfd_read(priv, RKCANFD_REG_STATE); in rkcanfd_handle_error_int_reg_ec() 449 !!(reg_state & RKCANFD_REG_STATE_RX_PERIOD), in rkcanfd_handle_error_int_reg_ec() 450 !!(reg_state & RKCANFD_REG_STATE_TX_PERIOD), in rkcanfd_handle_error_int_reg_ec() 451 !!(reg_state & RKCANFD_REG_STATE_ERROR_WARNING_STATE), in rkcanfd_handle_error_int_reg_ec() 452 !!(reg_state & RKCANFD_REG_STATE_BUS_OFF_STATE)); in rkcanfd_handle_error_int_reg_ec()
|
| /linux/net/core/ |
| H A D | xdp.c | 139 if (xdp_rxq->reg_state != REG_STATE_REGISTERED) { in xdp_rxq_info_unreg_mem_model() 151 if (xdp_rxq->reg_state == REG_STATE_UNUSED) in xdp_rxq_info_unreg() 156 xdp_rxq->reg_state = REG_STATE_UNREGISTERED; in xdp_rxq_info_unreg() 176 if (xdp_rxq->reg_state == REG_STATE_UNUSED) { in __xdp_rxq_info_reg() 181 if (xdp_rxq->reg_state == REG_STATE_REGISTERED) { in __xdp_rxq_info_reg() 192 xdp_rxq->reg_state = REG_STATE_REGISTERED; in __xdp_rxq_info_reg() 199 xdp_rxq->reg_state = REG_STATE_UNUSED; in xdp_rxq_info_unused() 205 return (xdp_rxq->reg_state == REG_STATE_REGISTERED); in xdp_rxq_info_is_reg() 352 if (xdp_rxq->reg_state != REG_STATE_REGISTERED) { in xdp_rxq_info_reg_mem_model() 1008 if (dev->reg_state == NETREG_REGISTERED) in xdp_set_features_flag_locked()
|
| H A D | dev.c | 865 if (!napi || READ_ONCE(napi->dev->reg_state) != NETREG_REGISTERED) { in netdev_napi_by_id_lock() 1090 if (dev->reg_state > NETREG_REGISTERED || in netdev_put_lock() 1104 if (dev->reg_state > NETREG_REGISTERED || in __netdev_put_lock_ops_compat() 3246 if (dev->reg_state == NETREG_REGISTERED || in netif_set_real_num_tx_queues() 3247 dev->reg_state == NETREG_UNREGISTERING) { in netif_set_real_num_tx_queues() 3296 if (dev->reg_state == NETREG_REGISTERED) { in netif_set_real_num_rx_queues() 6567 if (READ_ONCE(skb->dev->reg_state) == NETREG_UNREGISTERING) { in flush_backlog() 6577 if (READ_ONCE(skb->dev->reg_state) == NETREG_UNREGISTERING) { in flush_backlog() 11397 BUG_ON(dev->reg_state != NETREG_UNINITIALIZED); in register_netdevice() 11506 WRITE_ONCE(dev->reg_state, ret ? NETREG_UNREGISTERED : NETREG_REGISTERED); in register_netdevice() [all …]
|
| H A D | dev.h | 414 return READ_ONCE(dev->reg_state) <= NETREG_REGISTERED; in dev_isalive()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | reg_bounds.c | 761 struct reg_state { in print_refinement() 766 static void print_reg_state(struct reg_state *r, const char *sfx) in reg_state_refine() 799 static void reg_state_refine(struct reg_state *r, enum num_t t, struct range x, const char *ctx) in reg_state_refine() 817 /* now see if we can derive anything new from updated reg_state's ranges */ in reg_state_cond() 837 static void reg_state_set_const(struct reg_state *rs, enum num_t t, u64 val) in reg_state_cond() 848 static void reg_state_cond(enum num_t t, struct reg_state *x, struct reg_state *y, enum op op, in reg_state_cond() 849 struct reg_state *newx, struct reg_state *newy, const char *ctx) in reg_state_cond() 853 struct reg_state x in reg_state_cond() 726 struct reg_state { global() struct 731 validreg_state print_reg_state() argument [all...] |
| /linux/drivers/infiniband/core/ |
| H A D | roce_gid_mgmt.c | 344 if (ndev->reg_state >= NETREG_UNREGISTERING) in enum_netdev_ipv4_ips() 389 if (ndev->reg_state >= NETREG_UNREGISTERING) in enum_netdev_ipv6_ips() 790 if (ndev->reg_state < NETREG_UNREGISTERED) in netdevice_event() 798 if (ndev->reg_state == NETREG_REGISTERED) { in netdevice_event()
|
| /linux/net/phonet/ |
| H A D | pn_dev.c | 126 if ((dev->reg_state == NETREG_REGISTERED) && in phonet_device_get() 226 if ((pnd->netdev->reg_state != NETREG_REGISTERED) || in phonet_address_lookup()
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | ipoib_tx.c | 94 if (unlikely(dev->reg_state != NETREG_REGISTERED)) in hfi1_ipoib_check_queue_stopped() 624 if (likely(txq->priv->netdev->reg_state == NETREG_REGISTERED)) { in hfi1_ipoib_sdma_sleep() 664 if (likely(txq->priv->netdev->reg_state == NETREG_REGISTERED)) in hfi1_ipoib_sdma_wakeup() 677 if (likely(dev->reg_state == NETREG_REGISTERED) && in hfi1_ipoib_flush_txq()
|
| /linux/net/openvswitch/ |
| H A D | vport-netdev.c | 89 if (vport->dev->reg_state != NETREG_REGISTERED) { in ovs_netdev_link()
|
| /linux/drivers/net/netdevsim/ |
| H A D | udp_tunnels.c | 110 if (dev->reg_state == NETREG_REGISTERED) { in nsim_udp_tunnels_info_reset_write()
|
| /linux/drivers/iio/light/ |
| H A D | stk3310.c | 132 struct regmap_field *reg_state; member 497 ret = regmap_field_write(data->reg_state, state); in stk3310_set_state()
|
| /linux/drivers/net/ethernet/intel/idpf/ |
| H A D | idpf_main.c | 149 if (adapter->netdevs[i]->reg_state != NETREG_UNINITIALIZED) in idpf_remove()
|
| /linux/net/sched/ |
| H A D | sch_generic.c | 637 if (dev->reg_state == NETREG_UNINITIALIZED) in netif_carrier_on() 654 if (dev->reg_state == NETREG_UNINITIALIZED) in netif_carrier_off() 672 if (dev->reg_state == NETREG_UNINITIALIZED) in netif_carrier_event()
|
| /linux/net/can/ |
| H A D | raw.c | 599 if (ro->bound && dev && dev->reg_state != NETREG_REGISTERED) { in raw_setsockopt_locked() 648 if (ro->bound && dev && dev->reg_state != NETREG_REGISTERED) in raw_setsockopt_locked()
|
| /linux/kernel/bpf/ |
| H A D | verifier.c | 3854 struct bpf_func_state *reg_state, in check_stack_read_fixed_off() argument 3864 int hist_spi = spi, hist_frame = reg_state->frameno; in check_stack_read_fixed_off() 3866 stype = reg_state->stack[spi].slot_type; in check_stack_read_fixed_off() 3867 reg = ®_state->stack[spi].spilled_ptr; in check_stack_read_fixed_off() 3878 if (bpf_is_spilled_reg(®_state->stack[spi])) { in check_stack_read_fixed_off() 3946 err = mark_reg_stack_read(env, reg_state, off, off + size, in check_stack_read_fixed_off() 3996 err = mark_reg_stack_read(env, reg_state, off, off + size, dst_regno); in check_stack_read_fixed_off() 4019 static struct bpf_reg_state *reg_state(struct bpf_verifier_env *env, int regno) in reg_state() function 4639 reg = reg_state(env, regno); in mark_uptr_ld_reg() 4694 val_reg = reg_state(env, value_regno); in check_map_kptr_access() [all …]
|
| /linux/include/linux/ |
| H A D | netdevice.h | 2449 u8 reg_state; member 2659 WARN_ON((dev)->reg_state != NETREG_UNINITIALIZED); \ 5716 u8 reg_state = READ_ONCE(dev->reg_state); in netdev_reg_state() local 5718 switch (reg_state) { in netdev_reg_state() 5727 WARN_ONCE(1, "%s: unknown reg_state %d\n", dev->name, reg_state); in netdev_reg_state()
|
| /linux/net/8021q/ |
| H A D | vlan_core.c | 363 if (err && dev->reg_state != NETREG_UNREGISTERING) in __vlan_vid_del()
|
| H A D | vlan.c | 442 if (dev->reg_state != NETREG_UNREGISTERING) in vlan_device_event()
|
| /linux/net/bridge/ |
| H A D | br_device.c | 232 if (dev->reg_state != NETREG_REGISTERED) in br_set_mac_address()
|
| /linux/drivers/net/ethernet/sfc/falcon/ |
| H A D | net_driver.h | 906 return efx->net_dev->reg_state == NETREG_REGISTERED; in ef4_dev_registered()
|
| /linux/drivers/net/bonding/ |
| H A D | bond_options.c | 853 if (!ret && (bond->dev->reg_state == NETREG_REGISTERED)) in __bond_opt_set_notify() 946 if (bond->dev->reg_state == NETREG_REGISTERED) { in bond_option_mode_set()
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | net_driver.h | 1118 return efx->net_dev->reg_state == NETREG_REGISTERED; in efx_dev_registered()
|
| /linux/drivers/infiniband/hw/hns/ |
| H A D | hns_roce_bond.c | 808 if (net_dev->reg_state >= NETREG_UNREGISTERING) { in hns_roce_bond_upper_event()
|