Home
last modified time | relevance | path

Searched refs:vr (Results 1 – 25 of 122) sorted by relevance

12345

/openbmc/qemu/pc-bios/s390-ccw/
H A Dvirtio.c109 static void vring_init(VRing *vr, VqInfo *info) in vring_init() argument
114 vr->id = info->index; in vring_init()
115 vr->num = info->num; in vring_init()
116 vr->desc = p; in vring_init()
117 vr->avail = p + info->num * sizeof(VRingDesc); in vring_init()
118 vr->used = (void *)(((unsigned long)&vr->avail->ring[info->num] in vring_init()
122 vr->avail->flags = 0; in vring_init()
123 vr->avail->idx = 0; in vring_init()
126 vr->used->flags = VRING_USED_F_NO_NOTIFY; in vring_init()
127 vr->used->idx = 0; in vring_init()
[all …]
H A Dvirtio-blkdev.c24 VRing *vr = &vdev->vrings[vdev->cmd_vr_idx]; in virtio_blk_read_many() local
31 vring_send_buf(vr, &out_hdr, sizeof(out_hdr), VRING_DESC_F_NEXT); in virtio_blk_read_many()
34 vring_send_buf(vr, load_addr, virtio_get_block_size() * sec_num, in virtio_blk_read_many()
39 vring_send_buf(vr, &status, sizeof(u8), in virtio_blk_read_many()
45 if (drain_irqs(vr->schid)) { in virtio_blk_read_many()
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_router_hw.c113 struct prestera_vr *vr; in __prestera_vr_find() local
115 list_for_each_entry(vr, &sw->router->vr_list, router_node) { in __prestera_vr_find()
116 if (vr->tb_id == tb_id) in __prestera_vr_find()
117 return vr; in __prestera_vr_find()
127 struct prestera_vr *vr; in __prestera_vr_create() local
130 vr = kzalloc(sizeof(*vr), GFP_KERNEL); in __prestera_vr_create()
131 if (!vr) { in __prestera_vr_create()
136 vr->tb_id = tb_id; in __prestera_vr_create()
138 err = prestera_hw_vr_create(sw, &vr->hw_vr_id); in __prestera_vr_create()
142 list_add(&vr->router_node, &sw->router->vr_list); in __prestera_vr_create()
[all …]
/openbmc/qemu/hw/display/
H A Dvirtio-gpu-rutabaga.c27 struct VirtIOGPURutabaga *vr; member
39 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in virtio_gpu_rutabaga_update_cursor() local
61 rutabaga_resource_transfer_read(vr->rutabaga, 0, in virtio_gpu_rutabaga_update_cursor()
82 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_create_resource_2d() local
99 result = rutabaga_resource_create_3d(vr->rutabaga, c2d.resource_id, &rc_3d); in rutabaga_cmd_create_resource_2d()
120 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_create_resource_3d() local
138 result = rutabaga_resource_create_3d(vr->rutabaga, c3d.resource_id, &rc_3d); in rutabaga_cmd_create_resource_3d()
156 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in virtio_gpu_rutabaga_resource_unref() local
158 result = rutabaga_resource_unref(vr->rutabaga, res->resource_id); in virtio_gpu_rutabaga_resource_unref()
208 VirtIOGPURutabaga *vr = VIRTIO_GPU_RUTABAGA(g); in rutabaga_cmd_context_create() local
[all …]
/openbmc/qemu/include/standard-headers/linux/
H A Dvirtio_ring.h194 #define vring_used_event(vr) ((vr)->avail->ring[(vr)->num]) argument
195 #define vring_avail_event(vr) (*(__virtio16 *)&(vr)->used->ring[(vr)->num]) argument
197 static inline void vring_init(struct vring *vr, unsigned int num, void *p, in vring_init() argument
200 vr->num = num; in vring_init()
201 vr->desc = p; in vring_init()
202 vr->avail = (struct vring_avail *)((char *)p + num * sizeof(struct vring_desc)); in vring_init()
203 vr->used = (void *)(((uintptr_t)&vr->avail->ring[num] + sizeof(__virtio16) in vring_init()
/openbmc/linux/include/uapi/linux/
H A Dvirtio_ring.h196 #define vring_used_event(vr) ((vr)->avail->ring[(vr)->num]) argument
197 #define vring_avail_event(vr) (*(__virtio16 *)&(vr)->used->ring[(vr)->num]) argument
199 static inline void vring_init(struct vring *vr, unsigned int num, void *p, in vring_init() argument
202 vr->num = num; in vring_init()
203 vr->desc = p; in vring_init()
204 vr->avail = (struct vring_avail *)((char *)p + num * sizeof(struct vring_desc)); in vring_init()
205 vr->used = (void *)(((uintptr_t)&vr->avail->ring[num] + sizeof(__virtio16) in vring_init()
/openbmc/u-boot/include/
H A Dvirtio_ring.h125 #define vring_used_event(vr) ((vr)->avail->ring[(vr)->num]) argument
126 #define vring_avail_event(vr) (*(__virtio16 *)&(vr)->used->ring[(vr)->num]) argument
128 static inline void vring_init(struct vring *vr, unsigned int num, void *p, in vring_init() argument
131 vr->num = num; in vring_init()
132 vr->desc = p; in vring_init()
133 vr->avail = p + num * sizeof(struct vring_desc); in vring_init()
134 vr->used = (void *)(((uintptr_t)&vr->avail->ring[num] + in vring_init()
/openbmc/linux/arch/x86/kernel/cpu/mtrr/
H A Dgeneric.c548 get_mtrr_var_range(unsigned int index, struct mtrr_var_range *vr) in get_mtrr_var_range() argument
550 rdmsr(MTRRphysBase_MSR(index), vr->base_lo, vr->base_hi); in get_mtrr_var_range()
551 rdmsr(MTRRphysMask_MSR(index), vr->mask_lo, vr->mask_hi); in get_mtrr_var_range()
558 struct mtrr_var_range *vr; in fill_mtrr_var_range() local
560 vr = mtrr_state.var_ranges; in fill_mtrr_var_range()
562 vr[index].base_lo = base_lo; in fill_mtrr_var_range()
563 vr[index].base_hi = base_hi; in fill_mtrr_var_range()
564 vr[index].mask_lo = mask_lo; in fill_mtrr_var_range()
565 vr[index].mask_hi = mask_hi; in fill_mtrr_var_range()
875 static bool set_mtrr_var_ranges(unsigned int index, struct mtrr_var_range *vr) in set_mtrr_var_ranges() argument
[all …]
/openbmc/linux/arch/mips/boot/dts/brcm/
H A Dbcm63268-comtrend-vr-3032u.dts7 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";
/openbmc/linux/net/llc/
H A Dllc_c_ev.c59 static u16 llc_util_ns_inside_rx_window(u8 ns, u8 vr, u8 rw) in llc_util_ns_inside_rx_window() argument
61 return !llc_circular_between(vr, ns, in llc_util_ns_inside_rx_window()
62 (vr + rw - 1) % LLC_2_SEQ_NBR_MODULO); 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
204 LLC_I_PF_IS_0(pdu) && ns != vr && in llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns()
205 !llc_util_ns_inside_rx_window(ns, vr, llc_sk(sk)->rw) ? 0 : 1; in llc_conn_ev_rx_i_cmd_pbit_set_0_unexpd_ns()
212 const u8 vr = llc_sk(sk)->vR; in llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns() local
216 LLC_I_PF_IS_1(pdu) && ns != vr && in llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns()
217 !llc_util_ns_inside_rx_window(ns, vr, llc_sk(sk)->rw) ? 0 : 1; in llc_conn_ev_rx_i_cmd_pbit_set_1_unexpd_ns()
224 const u8 vr = llc_sk(sk)->vR; in llc_conn_ev_rx_i_cmd_pbit_set_x_inval_ns() local
[all …]
/openbmc/linux/net/rose/
H A Drose_in.c48 rose->vr = 0; in rose_state1_machine()
114 rose->vr = 0; in rose_state3_machine()
132 rose->vr = 0; in rose_state3_machine()
154 rose->vr = 0; in rose_state3_machine()
163 if (ns == rose->vr) { in rose_state3_machine()
167 rose->vr = (rose->vr + 1) % ROSE_MODULUS; in rose_state3_machine()
174 rose->vr = 0; in rose_state3_machine()
190 if (((rose->vl + sysctl_rose_window_size) % ROSE_MODULUS) == rose->vr) { in rose_state3_machine()
226 rose->vr = 0; in rose_state4_machine()
/openbmc/linux/arch/openrisc/kernel/
H A Dsetup.c99 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()
294 unsigned int vr, cpucfgr; in show_cpuinfo() local
299 vr = mfspr(SPR_VR); in show_cpuinfo()
305 if (vr & SPR_VR_UVRP) { in show_cpuinfo()
306 vr = mfspr(SPR_VR2); in show_cpuinfo()
307 version = vr & SPR_VR2_VER; in show_cpuinfo()
315 (vr & SPR_VR2_CPUID) >> 24); in show_cpuinfo()
318 version = (vr & SPR_VR_VER) >> 24; in show_cpuinfo()
[all …]
/openbmc/linux/net/x25/
H A Dx25_in.c100 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()
/openbmc/qemu/target/s390x/tcg/
H A Dcc_helper.c349 uint64_t src, uint64_t dst, uint64_t vr) in do_calc_cc() argument
395 r = cc_calc_add_64(src, dst, vr); in do_calc_cc()
398 r = cc_calc_sub_64(src, dst, vr); in do_calc_cc()
414 r = cc_calc_add_32(src, dst, vr); in do_calc_cc()
417 r = cc_calc_sub_32(src, dst, vr); in do_calc_cc()
463 cc_name(cc_op), src, dst, vr, r); in do_calc_cc()
468 uint64_t vr) in calc_cc() argument
470 return do_calc_cc(env, cc_op, src, dst, vr); in calc_cc()
474 uint64_t dst, uint64_t vr) in HELPER()
476 return do_calc_cc(env, cc_op, src, dst, vr); in HELPER()
/openbmc/linux/arch/csky/kernel/
H A Dptrace.c124 tmp.vr[i*4] = regs->vr[i*2]; in fpr_get()
125 tmp.vr[i*4 + 1] = regs->vr[i*2 + 1]; in fpr_get()
129 tmp.vr[64 + i] = regs->vr[32 + i]; in fpr_get()
154 regs->vr[i*2] = tmp.vr[i*4]; in fpr_set()
155 regs->vr[i*2 + 1] = tmp.vr[i*4 + 1]; in fpr_set()
159 regs->vr[32 + i] = tmp.vr[64 + i]; in fpr_set()
/openbmc/u-boot/drivers/rtc/
H A Dat91sam9_rtt.c39 tim = readl(&rtt->vr); in rtc_get()
40 tim2 = readl(&rtt->vr); in rtc_get()
61 while (readl(&rtt->vr) != 0) in rtc_set()
76 while (readl(&rtt->vr) != 0) in rtc_reset()
/openbmc/linux/net/ax25/
H A Dax25_std_in.c66 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()
H A Dax25_ds_in.c58 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()
/openbmc/linux/net/netrom/
H A Dnr_in.c84 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()
/openbmc/linux/drivers/infiniband/hw/cxgb4/
H A Ddevice.c802 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()
805 pci_name(rdev->lldi.pdev), rdev->lldi.vr->qp.start, in c4iw_rdev_open()
806 rdev->lldi.vr->qp.size, rdev->lldi.vr->cq.size, in c4iw_rdev_open()
807 rdev->lldi.vr->cq.size); in c4iw_rdev_open()
824 pci_name(rdev->lldi.pdev), rdev->lldi.vr->stag.start, in c4iw_rdev_open()
825 rdev->lldi.vr->stag.size, c4iw_num_stags(rdev), in c4iw_rdev_open()
826 rdev->lldi.vr->pbl.start, 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()
[all …]
H A Dresource.c43 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()
398 rqt_start = rdev->lldi.vr->rq.start + skip; in c4iw_rqtpool_create()
399 rqt_chunk = rdev->lldi.vr->rq.size - skip; in c4iw_rqtpool_create()
[all …]
/openbmc/linux/net/lapb/
H A Dlapb_out.c50 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()
H A Dlapb_in.c62 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()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
H A Dgddr5.c37 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()
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_router.c513 struct mlxsw_sp_vr *vr; member
532 struct mlxsw_sp_vr *vr, in mlxsw_sp_fib_create() argument
548 fib->vr = vr; in mlxsw_sp_fib_create()
769 static bool mlxsw_sp_vr_is_used(const struct mlxsw_sp_vr *vr) in mlxsw_sp_vr_is_used() argument
771 return !!vr->fib4 || !!vr->fib6 || in mlxsw_sp_vr_is_used()
772 !!vr->mr_table[MLXSW_SP_L3_PROTO_IPV4] || in mlxsw_sp_vr_is_used()
773 !!vr->mr_table[MLXSW_SP_L3_PROTO_IPV6]; in mlxsw_sp_vr_is_used()
779 struct mlxsw_sp_vr *vr; in mlxsw_sp_vr_find_unused() local
783 vr = &mlxsw_sp->router->vrs[i]; in mlxsw_sp_vr_find_unused()
784 if (!mlxsw_sp_vr_is_used(vr)) in mlxsw_sp_vr_find_unused()
[all …]

12345