/linux/include/uapi/linux/ |
A D | virtio_ring.h | 190 #define vring_used_event(vr) ((vr)->avail->ring[(vr)->num]) argument 191 #define vring_avail_event(vr) (*(__virtio16 *)&(vr)->used->ring[(vr)->num]) argument 193 static inline void vring_init(struct vring *vr, unsigned int num, void *p, in vring_init() argument 196 vr->num = num; in vring_init() 197 vr->desc = p; in vring_init() 198 vr->avail = (struct vring_avail *)((char *)p + num * sizeof(struct vring_desc)); in vring_init() 199 vr->used = (void *)(((uintptr_t)&vr->avail->ring[num] + sizeof(__virtio16) in vring_init()
|
/linux/arch/x86/kernel/cpu/mtrr/ |
A D | generic.c | 317 rdmsr(MTRRphysBase_MSR(index), vr->base_lo, vr->base_hi); in get_mtrr_var_range() 318 rdmsr(MTRRphysMask_MSR(index), vr->mask_lo, vr->mask_hi); in get_mtrr_var_range() 325 struct mtrr_var_range *vr; in fill_mtrr_var_range() local 327 vr = mtrr_state.var_ranges; in fill_mtrr_var_range() 329 vr[index].base_lo = base_lo; in fill_mtrr_var_range() 330 vr[index].base_hi = base_hi; in fill_mtrr_var_range() 667 mtrr_wrmsr(MTRRphysBase_MSR(index), vr->base_lo, vr->base_hi); in set_mtrr_var_ranges() 676 mtrr_wrmsr(MTRRphysMask_MSR(index), vr->mask_lo, vr->mask_hi); in set_mtrr_var_ranges() 834 struct mtrr_var_range *vr; in generic_set_mtrr() local 854 mtrr_wrmsr(MTRRphysBase_MSR(reg), vr->base_lo, vr->base_hi); in generic_set_mtrr() [all …]
|
/linux/drivers/media/platform/ |
A D | fsl-viu.c | 242 struct viu_reg __iomem *vr = dev->vr; in viu_start_dma() local 253 struct viu_reg __iomem *vr = dev->vr; in viu_stop_dma() local 391 struct viu_reg __iomem *vr = dev->vr; in buffer_activate() local 980 ioread32be(&vr->status_cfg), ioread32be(&vr->field_base_addr)); in viu_default_settings() 985 struct viu_reg __iomem *vr = dev->vr; in viu_overlay_intr() local 1014 struct viu_reg __iomem *vr = dev->vr; in viu_capture_intr() local 1085 struct viu_reg __iomem *vr = dev->vr; in viu_intr() local 1099 &vr->status_cfg); in viu_intr() 1130 &vr->status_cfg); in viu_intr() 1162 vr = dev->vr; in viu_open() [all …]
|
/linux/net/llc/ |
A D | llc_c_ev.c | 61 return !llc_circular_between(vr, ns, in llc_util_ns_inside_rx_window() 200 const u8 vr = llc_sk(sk)->vR; in llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns() local 212 const u8 vr = llc_sk(sk)->vR; in llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns() local 224 const u8 vr = llc_sk(sk)->vR; in llc_conn_ev_rx_i_cmd_pbit_set_x_inval_ns() local 227 ns != vr && in llc_conn_ev_rx_i_cmd_pbit_set_x_inval_ns() 231 __func__, llc_sk(sk)->state, ns, vr); in llc_conn_ev_rx_i_cmd_pbit_set_x_inval_ns() 267 const u8 vr = llc_sk(sk)->vR; in llc_conn_ev_rx_i_rsp_fbit_set_0_unexpd_ns() local 279 const u8 vr = llc_sk(sk)->vR; in llc_conn_ev_rx_i_rsp_fbit_set_1_unexpd_ns() local 291 const u8 vr = llc_sk(sk)->vR; in llc_conn_ev_rx_i_rsp_fbit_set_x_unexpd_ns() local 302 const u8 vr = llc_sk(sk)->vR; in llc_conn_ev_rx_i_rsp_fbit_set_x_inval_ns() local [all …]
|
/linux/arch/mips/boot/dts/brcm/ |
A D | bcm63268-comtrend-vr-3032u.dts | 7 compatible = "comtrend,vr-3032u", "brcm,bcm63268"; 42 label = "vr-3032u:red:inet"; 47 label = "vr-3032u:green:dsl"; 52 label = "vr-3032u:green:usb"; 57 label = "vr-3032u:green:wps"; 62 label = "vr-3032u:green:inet"; 102 label = "vr-3032u:green:power";
|
/linux/net/rose/ |
A D | rose_in.c | 47 rose->vr = 0; in rose_state1_machine() 113 rose->vr = 0; in rose_state3_machine() 131 rose->vr = 0; in rose_state3_machine() 153 rose->vr = 0; in rose_state3_machine() 162 if (ns == rose->vr) { in rose_state3_machine() 166 rose->vr = (rose->vr + 1) % ROSE_MODULUS; in rose_state3_machine() 173 rose->vr = 0; in rose_state3_machine() 189 if (((rose->vl + sysctl_rose_window_size) % ROSE_MODULUS) == rose->vr) { in rose_state3_machine() 225 rose->vr = 0; in rose_state4_machine()
|
A D | rose_out.c | 37 skb->data[2] |= (rose->vr << 5) & 0xE0; in rose_send_iframe() 98 rose->vl = rose->vr; in rose_kick() 118 rose->vl = rose->vr; in rose_enquiry_response()
|
/linux/arch/openrisc/kernel/ |
A D | setup.c | 99 unsigned long vr = mfspr(SPR_VR); in print_cpuinfo() local 104 version = (vr & SPR_VR_VER) >> 24; in print_cpuinfo() 105 revision = (vr & SPR_VR_REV); in print_cpuinfo() 309 unsigned int vr, cpucfgr; in show_cpuinfo() local 314 vr = mfspr(SPR_VR); in show_cpuinfo() 320 if (vr & SPR_VR_UVRP) { in show_cpuinfo() 321 vr = mfspr(SPR_VR2); in show_cpuinfo() 322 version = vr & SPR_VR2_VER; in show_cpuinfo() 330 (vr & SPR_VR2_CPUID) >> 24); in show_cpuinfo() 333 version = (vr & SPR_VR_VER) >> 24; in show_cpuinfo() [all …]
|
/linux/net/x25/ |
A D | x25_in.c | 100 x25->vr = 0; in x25_state1_machine() 223 x25->vr = 0; in x25_state3_machine() 245 x25->vr = 0; in x25_state3_machine() 261 if ((ns != x25->vr) || !x25_validate_nr(sk, nr)) { in x25_state3_machine() 267 x25->vr = 0; in x25_state3_machine() 274 if (ns == x25->vr) { in x25_state3_machine() 276 x25->vr = (x25->vr + 1) % modulus; in x25_state3_machine() 285 x25->vr = 0; in x25_state3_machine() 299 if (((x25->vl + x25->facilities.winsize_in) % modulus) == x25->vr) { in x25_state3_machine() 357 x25->vr = 0; in x25_state4_machine()
|
A D | x25_out.c | 126 skb->data[3] |= (x25->vr << 1) & 0xFE; in x25_send_iframe() 130 skb->data[2] |= (x25->vr << 5) & 0xE0; in x25_send_iframe() 202 x25->vl = x25->vr; in x25_kick() 222 x25->vl = x25->vr; in x25_enquiry_response()
|
/linux/arch/csky/kernel/ |
A D | ptrace.c | 125 tmp.vr[i*4] = regs->vr[i*2]; in fpr_get() 126 tmp.vr[i*4 + 1] = regs->vr[i*2 + 1]; in fpr_get() 130 tmp.vr[64 + i] = regs->vr[32 + i]; in fpr_get() 155 regs->vr[i*2] = tmp.vr[i*4]; in fpr_set() 156 regs->vr[i*2 + 1] = tmp.vr[i*4 + 1]; in fpr_set() 160 regs->vr[32 + i] = tmp.vr[64 + i]; in fpr_set()
|
/linux/net/ax25/ |
A D | ax25_std_in.c | 66 ax25->vr = 0; in ax25_std_state1_machine() 163 ax25->vr = 0; in ax25_std_state3_machine() 223 if (ns == ax25->vr) { in ax25_std_state3_machine() 224 ax25->vr = (ax25->vr + 1) % ax25->modulus; in ax25_std_state3_machine() 227 ax25->vr = ns; /* ax25->vr - 1 */ in ax25_std_state3_machine() 288 ax25->vr = 0; in ax25_std_state4_machine() 378 if (ns == ax25->vr) { in ax25_std_state4_machine() 379 ax25->vr = (ax25->vr + 1) % ax25->modulus; in ax25_std_state4_machine() 382 ax25->vr = ns; /* ax25->vr - 1 */ in ax25_std_state4_machine()
|
A D | ax25_ds_in.c | 58 ax25->vr = 0; in ax25_ds_state1_machine() 166 ax25->vr = 0; in ax25_ds_state3_machine() 238 if (ns == ax25->vr) { in ax25_ds_state3_machine() 239 ax25->vr = (ax25->vr + 1) % ax25->modulus; in ax25_ds_state3_machine() 242 ax25->vr = ns; /* ax25->vr - 1 */ in ax25_ds_state3_machine()
|
/linux/drivers/infiniband/hw/cxgb4/ |
A D | device.c | 802 if (rdev->lldi.vr->qp.start != rdev->lldi.vr->cq.start || in c4iw_rdev_open() 803 rdev->lldi.vr->qp.size != rdev->lldi.vr->cq.size) { in c4iw_rdev_open() 806 rdev->lldi.vr->qp.size, rdev->lldi.vr->cq.size, in c4iw_rdev_open() 827 rdev->lldi.vr->pbl.size, rdev->lldi.vr->rq.start, in c4iw_rdev_open() 828 rdev->lldi.vr->rq.size, in c4iw_rdev_open() 829 rdev->lldi.vr->qp.start, in c4iw_rdev_open() 830 rdev->lldi.vr->qp.size, in c4iw_rdev_open() 832 rdev->lldi.vr->cq.size, in c4iw_rdev_open() 963 return infop->vr->stag.size > 0 && infop->vr->pbl.size > 0 && in rdma_supported() 964 infop->vr->rq.size > 0 && infop->vr->qp.size > 0 && in rdma_supported() [all …]
|
A D | resource.c | 43 rdev->lldi.vr->qp.start, in c4iw_init_qid_table() 44 rdev->lldi.vr->qp.size, in c4iw_init_qid_table() 45 rdev->lldi.vr->qp.size, 0)) in c4iw_init_qid_table() 48 for (i = rdev->lldi.vr->qp.start; in c4iw_init_qid_table() 49 i < rdev->lldi.vr->qp.start + rdev->lldi.vr->qp.size; i++) in c4iw_init_qid_table() 308 pbl_start = rdev->lldi.vr->pbl.start; in c4iw_pblpool_create() 309 pbl_chunk = rdev->lldi.vr->pbl.size; in c4iw_pblpool_create() 395 if (rdev->lldi.vr->srq.size) in c4iw_rqtpool_create() 399 rqt_chunk = rdev->lldi.vr->rq.size - skip; in c4iw_rqtpool_create() 489 start = rdev->lldi.vr->ocq.start; in c4iw_ocqp_pool_create() [all …]
|
/linux/net/netrom/ |
A D | nr_in.c | 84 nr->vr = 0; in nr_state1_machine() 231 save_vr = nrom->vr; in nr_state3_machine() 234 if (ns == nrom->vr) { in nr_state3_machine() 236 nrom->vr = (nrom->vr + 1) % NR_MODULUS; in nr_state3_machine() 250 } while (save_vr != nrom->vr); in nr_state3_machine() 254 if (((nrom->vl + nrom->window) % NR_MODULUS) == nrom->vr) { in nr_state3_machine()
|
A D | nr_out.c | 87 skb->data[3] = nr->vr; in nr_send_iframe() 109 skbn->data[3] = nr->vr; in nr_send_nak_frame() 117 nr->vl = nr->vr; in nr_send_nak_frame() 178 nr->vl = nr->vr; in nr_kick() 252 nr->vl = nr->vr; in nr_enquiry_response()
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum_router.c | 541 fib->vr = vr; in mlxsw_sp_fib_create() 772 return !!vr->fib4 || !!vr->fib6 || in mlxsw_sp_vr_is_used() 830 if (mlxsw_sp_vr_is_used(vr) && vr->tb_id == tb_id) in mlxsw_sp_vr_find() 844 if (!vr) { in mlxsw_sp_router_tb_id_vr_id() 877 if (!vr) { in mlxsw_sp_vr_create() 907 return vr; in mlxsw_sp_vr_create() 938 if (!vr) in mlxsw_sp_vr_get() 940 return vr; in mlxsw_sp_vr_get() 1298 if (!vr) in mlxsw_sp_router_ip2me_fib_entry_find() 6230 if (!vr) in mlxsw_sp_fib4_entry_lookup() [all …]
|
/linux/arch/s390/include/asm/ |
A D | vx-insn.h | 247 .macro VGBM vr imm2 248 VX_NUM v1, \vr 347 VX_NUM v3, \vr 352 .macro VLGVB gr, vr, disp, base="%r0" 353 VLGV \gr, \vr, \disp, \base, 0 355 .macro VLGVH gr, vr, disp, base="%r0" 356 VLGV \gr, \vr, \disp, \base, 1 358 .macro VLGVF gr, vr, disp, base="%r0" 359 VLGV \gr, \vr, \disp, \base, 2 361 .macro VLGVG gr, vr, disp, base="%r0" [all …]
|
/linux/net/lapb/ |
A D | lapb_out.c | 50 frame[1] |= lapb->vr << 1; in lapb_send_iframe() 56 *frame |= lapb->vr << 5; in lapb_send_iframe() 61 lapb->dev, lapb->state, poll_bit, lapb->vs, lapb->vr); in lapb_send_iframe() 173 lapb->dev, lapb->state, lapb->vr); in lapb_enquiry_response() 183 lapb->dev, lapb->state, lapb->vr); in lapb_timeout_response()
|
A D | lapb_in.c | 62 lapb->vr = 0; in lapb_state0_machine() 82 lapb->vr = 0; in lapb_state0_machine() 160 lapb->vr = 0; in lapb_state1_machine() 271 lapb->vr = 0; in lapb_state3_machine() 289 lapb->vr = 0; in lapb_state3_machine() 400 if (frame->ns == lapb->vr) { in lapb_state3_machine() 415 lapb->vr = (lapb->vr + 1) % modulus; in lapb_state3_machine() 432 lapb->dev, frame->pf, lapb->vr); in lapb_state3_machine() 495 lapb->vr = 0; in lapb_state4_machine() 515 lapb->vr = 0; in lapb_state4_machine()
|
/linux/drivers/platform/mellanox/ |
A D | mlxbf-tmfifo.c | 300 idx = vring->next_avail % vr->num; in mlxbf_tmfifo_get_next_desc() 301 head = virtio16_to_cpu(vdev, vr->avail->ring[idx]); in mlxbf_tmfifo_get_next_desc() 302 if (WARN_ON(head >= vr->num)) in mlxbf_tmfifo_get_next_desc() 307 return &vr->desc[head]; in mlxbf_tmfifo_get_next_desc() 318 vr_idx = virtio16_to_cpu(vdev, vr->used->idx); in mlxbf_tmfifo_release_desc() 319 idx = vr_idx % vr->num; in mlxbf_tmfifo_release_desc() 320 vr->used->ring[idx].id = cpu_to_virtio32(vdev, desc - vr->desc); in mlxbf_tmfifo_release_desc() 329 vr->used->idx = cpu_to_virtio16(vdev, vr_idx + 1); in mlxbf_tmfifo_release_desc() 345 desc = &vr->desc[idx]; in mlxbf_tmfifo_get_pkt_len() 442 desc = &vr->desc[idx]; in mlxbf_tmfifo_console_output_one() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
A D | gddr5.c | 37 int pd, lf, xd, vh, vr, vo, l3; in nvkm_gddr5_calc() local 48 vr = ram->next->bios.ramcfg_11_02_04; in nvkm_gddr5_calc() 109 if (NOTE00(vr)) { in nvkm_gddr5_calc() 111 ram->mr[7] |= (vr & 0x03) << 8; in nvkm_gddr5_calc()
|
/linux/arch/powerpc/include/asm/ |
A D | spu.h | 457 #define MFC_GET_VERSION_BITS(vr) (((vr) & MFC_VERSION_BITS) >> 16) argument 458 #define MFC_GET_REVISION_BITS(vr) ((vr) & MFC_REVISION_BITS) argument 462 #define SPU_GET_VERSION_BITS(vr) (vr & SPU_VERSION_BITS) >> 16 argument 463 #define SPU_GET_REVISION_BITS(vr) (vr & SPU_REVISION_BITS) argument
|
/linux/net/ipv6/ |
A D | ip6mr.c | 1857 struct sioc_mif_req6 vr; in ip6mr_ioctl() local 1869 if (copy_from_user(&vr, arg, sizeof(vr))) in ip6mr_ioctl() 1873 vr.mifi = array_index_nospec(vr.mifi, mrt->maxvif); in ip6mr_ioctl() 1877 vr.icount = vif->pkt_in; in ip6mr_ioctl() 1878 vr.ocount = vif->pkt_out; in ip6mr_ioctl() 1883 if (copy_to_user(arg, &vr, sizeof(vr))) in ip6mr_ioctl() 1944 if (copy_from_user(&vr, arg, sizeof(vr))) in ip6mr_compat_ioctl() 1948 vr.mifi = array_index_nospec(vr.mifi, mrt->maxvif); in ip6mr_compat_ioctl() 1952 vr.icount = vif->pkt_in; in ip6mr_compat_ioctl() 1953 vr.ocount = vif->pkt_out; in ip6mr_compat_ioctl() [all …]
|